Uses of Class
net.minecraft.world.inventory.AbstractContainerMenu
Packages that use AbstractContainerMenu
Package
Description
Events fired only on the client-side, chiefly related to rendering and user interfaces (screens and input).
Extension interfaces for
client
-only classes.-
Uses of AbstractContainerMenu in net.minecraft.client.gui.screens
Classes in net.minecraft.client.gui.screens with type parameters of type AbstractContainerMenuModifier and TypeInterfaceDescriptionstatic interface
MenuScreens.ScreenConstructor<T extends AbstractContainerMenu,
U extends Screen & MenuAccess<T>> Methods in net.minecraft.client.gui.screens with type parameters of type AbstractContainerMenuModifier and TypeMethodDescriptionstatic <T extends AbstractContainerMenu>
voidprivate static <T extends AbstractContainerMenu>
MenuScreens.ScreenConstructor<T, ?> MenuScreens.getConstructor
(MenuType<T> pType) static <T extends AbstractContainerMenu>
Optional<MenuScreens.ScreenConstructor<T, ?>> MenuScreens.getScreenFactory
(MenuType<T> p_96202_) private static <M extends AbstractContainerMenu,
U extends Screen & MenuAccess<M>>
voidMenuScreens.register
(MenuType<? extends M> pType, MenuScreens.ScreenConstructor<M, U> pFactory) Deprecated. -
Uses of AbstractContainerMenu in net.minecraft.client.gui.screens.inventory
Classes in net.minecraft.client.gui.screens.inventory with type parameters of type AbstractContainerMenuModifier and TypeClassDescriptionclass
AbstractContainerScreen<T extends AbstractContainerMenu>
class
interface
MenuAccess<T extends AbstractContainerMenu>
Subclasses of AbstractContainerMenu in net.minecraft.client.gui.screens.inventoryFields in net.minecraft.client.gui.screens.inventory declared as AbstractContainerMenuModifier and TypeFieldDescriptionprivate final AbstractContainerMenu
CreativeModeInventoryScreen.ItemPickerMenu.inventoryMenu
protected final T
AbstractContainerScreen.menu
A list of the players inventory slotsMethods in net.minecraft.client.gui.screens.inventory with parameters of type AbstractContainerMenuModifier and TypeMethodDescriptionvoid
CreativeInventoryListener.dataChanged
(AbstractContainerMenu pContainerMenu, int pDataSlotIndex, int pValue) void
ItemCombinerScreen.dataChanged
(AbstractContainerMenu pContainerMenu, int pDataSlotIndex, int pValue) void
CyclingSlotBackground.render
(AbstractContainerMenu pContainerMenu, GuiGraphics pGuiGraphics, float pPartialTick, int pX, int pY) void
AnvilScreen.slotChanged
(AbstractContainerMenu pContainerToSend, int pSlotInd, ItemStack pStack) Sends the contents of an inventory slot to the client-side Container.void
CreativeInventoryListener.slotChanged
(AbstractContainerMenu pContainerToSend, int pSlotInd, ItemStack pStack) Sends the contents of an inventory slot to the client-side Container.void
ItemCombinerScreen.slotChanged
(AbstractContainerMenu pContainerToSend, int pSlotInd, ItemStack pStack) Sends the contents of an inventory slot to the client-side Container.void
SmithingScreen.slotChanged
(AbstractContainerMenu pContainerToSend, int pSlotInd, ItemStack pStack) Sends the contents of an inventory slot to the client-side Container. -
Uses of AbstractContainerMenu in net.minecraft.server.level
Methods in net.minecraft.server.level with parameters of type AbstractContainerMenuModifier and TypeMethodDescriptionprivate void
ServerPlayer.initMenu
(AbstractContainerMenu pMenu) -
Uses of AbstractContainerMenu in net.minecraft.world
Methods in net.minecraft.world that return AbstractContainerMenuModifier and TypeMethodDescriptionSimpleMenuProvider.createMenu
(int pContainerId, Inventory pPlayerInventory, Player pPlayer) -
Uses of AbstractContainerMenu in net.minecraft.world.entity.player
Fields in net.minecraft.world.entity.player declared as AbstractContainerMenu -
Uses of AbstractContainerMenu in net.minecraft.world.entity.vehicle
Methods in net.minecraft.world.entity.vehicle that return AbstractContainerMenuModifier and TypeMethodDescriptionprotected abstract AbstractContainerMenu
AbstractMinecartContainer.createMenu
(int pContainerId, Inventory pPlayerInventory) AbstractMinecartContainer.createMenu
(int pContainerId, Inventory pPlayerInventory, Player pPlayer) ChestBoat.createMenu
(int pContainerId, Inventory pPlayerInventory, Player pPlayer) MinecartChest.createMenu
(int pId, Inventory pPlayerInventory) MinecartHopper.createMenu
(int pId, Inventory pPlayerInventory) -
Uses of AbstractContainerMenu in net.minecraft.world.inventory
Classes in net.minecraft.world.inventory with type parameters of type AbstractContainerMenuModifier and TypeClassDescriptionclass
MenuType<T extends AbstractContainerMenu>
static interface
MenuType.MenuSupplier<T extends AbstractContainerMenu>
Subclasses of AbstractContainerMenu in net.minecraft.world.inventoryModifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
RecipeBookMenu<I extends RecipeInput,
R extends Recipe<I>> class
class
class
class
Fields in net.minecraft.world.inventory declared as AbstractContainerMenuModifier and TypeFieldDescriptionprivate final AbstractContainerMenu
TransientCraftingContainer.menu
Methods in net.minecraft.world.inventory with type parameters of type AbstractContainerMenuModifier and TypeMethodDescriptionprivate static <T extends AbstractContainerMenu>
MenuType<T> MenuType.register
(String pKey, MenuType.MenuSupplier<T> pFactory) private static <T extends AbstractContainerMenu>
MenuType<T> MenuType.register
(String pKey, MenuType.MenuSupplier<T> pFactory, FeatureFlag... pRequiredFeatures) Methods in net.minecraft.world.inventory that return AbstractContainerMenuModifier and TypeMethodDescriptionMenuConstructor.createMenu
(int pContainerId, Inventory pPlayerInventory, Player pPlayer) Methods in net.minecraft.world.inventory with parameters of type AbstractContainerMenuModifier and TypeMethodDescriptionvoid
ContainerListener.dataChanged
(AbstractContainerMenu pContainerMenu, int pDataSlotIndex, int pValue) void
CrafterMenu.dataChanged
(AbstractContainerMenu pContainerMenu, int pDataSlotIndex, int pValue) void
ContainerSynchronizer.sendCarriedChange
(AbstractContainerMenu pContainerMenu, ItemStack pStack) void
ContainerSynchronizer.sendDataChange
(AbstractContainerMenu pContainer, int pId, int pValue) void
ContainerSynchronizer.sendInitialData
(AbstractContainerMenu pContainer, NonNullList<ItemStack> pItems, ItemStack pCarriedItem, int[] pInitialData) void
ContainerSynchronizer.sendSlotChange
(AbstractContainerMenu pContainer, int pSlot, ItemStack pItemStack) void
ContainerListener.slotChanged
(AbstractContainerMenu pContainerToSend, int pDataSlotIndex, ItemStack pStack) Sends the contents of an inventory slot to the client-side Container.void
CrafterMenu.slotChanged
(AbstractContainerMenu pContainerToSend, int pDataSlotIndex, ItemStack pStack) Sends the contents of an inventory slot to the client-side Container.protected static void
CraftingMenu.slotChangedCraftingGrid
(AbstractContainerMenu pMenu, Level pLevel, Player pPlayer, CraftingContainer pCraftSlots, ResultContainer pResultSlots, RecipeHolder<CraftingRecipe> pRecipe) void
AbstractContainerMenu.transferState
(AbstractContainerMenu pMenu) Constructors in net.minecraft.world.inventory with parameters of type AbstractContainerMenuModifierConstructorDescriptionTransientCraftingContainer
(AbstractContainerMenu pMenu, int pWidth, int pHeight) TransientCraftingContainer
(AbstractContainerMenu pMenu, int pWidth, int pHeight, NonNullList<ItemStack> pItems) -
Uses of AbstractContainerMenu in net.minecraft.world.level.block.entity
Methods in net.minecraft.world.level.block.entity that return AbstractContainerMenuModifier and TypeMethodDescriptionprotected AbstractContainerMenu
BarrelBlockEntity.createMenu
(int pId, Inventory pPlayer) protected abstract AbstractContainerMenu
BaseContainerBlockEntity.createMenu
(int pContainerId, Inventory pInventory) BaseContainerBlockEntity.createMenu
(int pContainerId, Inventory pPlayerInventory, Player pPlayer) BeaconBlockEntity.createMenu
(int pContainerId, Inventory pPlayerInventory, Player pPlayer) protected AbstractContainerMenu
BlastFurnaceBlockEntity.createMenu
(int pId, Inventory pPlayer) protected AbstractContainerMenu
BrewingStandBlockEntity.createMenu
(int pId, Inventory pPlayer) protected AbstractContainerMenu
ChestBlockEntity.createMenu
(int pId, Inventory pPlayer) protected AbstractContainerMenu
CrafterBlockEntity.createMenu
(int pContainerId, Inventory pInventory) protected AbstractContainerMenu
DispenserBlockEntity.createMenu
(int pId, Inventory pPlayer) protected AbstractContainerMenu
FurnaceBlockEntity.createMenu
(int pId, Inventory pPlayer) protected AbstractContainerMenu
HopperBlockEntity.createMenu
(int pId, Inventory pPlayer) LecternBlockEntity.createMenu
(int pContainerId, Inventory pPlayerInventory, Player pPlayer) RandomizableContainerBlockEntity.createMenu
(int pContainerId, Inventory pPlayerInventory, Player pPlayer) protected AbstractContainerMenu
ShulkerBoxBlockEntity.createMenu
(int pId, Inventory pPlayer) protected AbstractContainerMenu
SmokerBlockEntity.createMenu
(int pId, Inventory pPlayer) -
Uses of AbstractContainerMenu in net.neoforged.neoforge.client.event
Methods in net.neoforged.neoforge.client.event with type parameters of type AbstractContainerMenuModifier and TypeMethodDescription<M extends AbstractContainerMenu,
U extends Screen & MenuAccess<M>>
voidRegisterMenuScreensEvent.register
(MenuType<? extends M> menuType, MenuScreens.ScreenConstructor<M, U> screenConstructor) -
Uses of AbstractContainerMenu in net.neoforged.neoforge.client.extensions
Methods in net.neoforged.neoforge.client.extensions with parameters of type AbstractContainerMenuModifier and TypeMethodDescriptiondefault void
IMenuProviderExtension.writeClientSideData
(AbstractContainerMenu menu, RegistryFriendlyByteBuf buffer) Allows the menu provider to write additional data to be read byIContainerFactory.create(int, Inventory, RegistryFriendlyByteBuf)
when the menu is created on the client-side. -
Uses of AbstractContainerMenu in net.neoforged.neoforge.common.extensions
Methods in net.neoforged.neoforge.common.extensions with type parameters of type AbstractContainerMenuModifier and TypeMethodDescriptionstatic <T extends AbstractContainerMenu>
MenuType<T> IMenuTypeExtension.create
(IContainerFactory<T> factory) Use this method to create a menu type that uses additional data sent by the server when it creates the client-side instances of its menus. -
Uses of AbstractContainerMenu in net.neoforged.neoforge.event.entity.player
Fields in net.neoforged.neoforge.event.entity.player declared as AbstractContainerMenuModifier and TypeFieldDescriptionprivate final AbstractContainerMenu
PlayerContainerEvent.container
Methods in net.neoforged.neoforge.event.entity.player that return AbstractContainerMenuConstructors in net.neoforged.neoforge.event.entity.player with parameters of type AbstractContainerMenuModifierConstructorDescriptionClose
(Player player, AbstractContainerMenu container) Open
(Player player, AbstractContainerMenu container) PlayerContainerEvent
(Player player, AbstractContainerMenu container) -
Uses of AbstractContainerMenu in net.neoforged.neoforge.network
Classes in net.neoforged.neoforge.network with type parameters of type AbstractContainerMenuModifier and TypeInterfaceDescriptioninterface
IContainerFactory<T extends AbstractContainerMenu>
This extension ofMenuType.MenuSupplier
allows a mod to handle the extra data it sent to the client when creating the client-side copy of a menu. -
Uses of AbstractContainerMenu in net.neoforged.neoforge.network.handlers
Methods in net.neoforged.neoforge.network.handlers with type parameters of type AbstractContainerMenuModifier and TypeMethodDescriptionprivate static <T extends AbstractContainerMenu>
voidClientPayloadHandler.createMenuScreen
(Component name, MenuType<T> menuType, int windowId, RegistryFriendlyByteBuf buf) -
Uses of AbstractContainerMenu in net.neoforged.neoforge.oldtest.misc
Subclasses of AbstractContainerMenu in net.neoforged.neoforge.oldtest.misc -
Uses of AbstractContainerMenu in net.neoforged.neoforge.oldtest.recipebook
Subclasses of AbstractContainerMenu in net.neoforged.neoforge.oldtest.recipebook
RegisterMenuScreensEvent
instead