Class NullMenuProvider

  • All Implemented Interfaces:
    net.minecraft.world.MenuProvider , net.minecraft.world.inventory.MenuConstructor , net.neoforged.neoforge.client.extensions.IMenuProviderExtension

    
    public final class NullMenuProvider<T extends AbstractContainerMenu>
     implements MenuProvider
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final String displayName
      private final BlockPos blockPos
      private final Function3<Integer, Inventory, FriendlyByteBuf, T> ctor
    • Constructor Summary

      Constructors 
      Constructor Description
      NullMenuProvider(String displayName, BlockPos blockPos, Function3<Integer, Inventory, FriendlyByteBuf, T> ctor)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String getDisplayName()
      final BlockPos getBlockPos()
      final Function3<Integer, Inventory, FriendlyByteBuf, T> getCtor()
      Component getDisplayName()
      AbstractContainerMenu createMenu(Integer id, Inventory inventory, Player player)
      • Methods inherited from class net.neoforged.neoforge.client.extensions.IMenuProviderExtension

        shouldTriggerClientSideContainerClosingOnOpen
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait