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 interfaceMenuScreens.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> type) 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> type, MenuScreens.ScreenConstructor<M, U> factory) 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 TypeClassDescriptionclassAbstractContainerScreen<T extends AbstractContainerMenu>classinterfaceMenuAccess<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 AbstractContainerMenuCreativeModeInventoryScreen.ItemPickerMenu.inventoryMenuprotected final TAbstractContainerScreen.menuA list of the players inventory slotsMethods in net.minecraft.client.gui.screens.inventory with parameters of type AbstractContainerMenuModifier and TypeMethodDescriptionvoidCreativeInventoryListener.dataChanged(AbstractContainerMenu containerMenu, int dataSlotIndex, int value) voidItemCombinerScreen.dataChanged(AbstractContainerMenu containerMenu, int dataSlotIndex, int value) voidCyclingSlotBackground.render(AbstractContainerMenu containerMenu, GuiGraphics guiGraphics, float partialTick, int x, int y) voidAnvilScreen.slotChanged(AbstractContainerMenu containerToSend, int slotInd, ItemStack stack) Sends the contents of an inventory slot to the client-side Container.voidCreativeInventoryListener.slotChanged(AbstractContainerMenu containerToSend, int slotInd, ItemStack stack) Sends the contents of an inventory slot to the client-side Container.voidItemCombinerScreen.slotChanged(AbstractContainerMenu containerToSend, int slotInd, ItemStack stack) Sends the contents of an inventory slot to the client-side Container.voidSmithingScreen.slotChanged(AbstractContainerMenu containerToSend, int slotInd, ItemStack stack) 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 AbstractContainerMenu -
Uses of AbstractContainerMenu in net.minecraft.world
Methods in net.minecraft.world that return AbstractContainerMenuModifier and TypeMethodDescriptionSimpleMenuProvider.createMenu(int containerId, Inventory playerInventory, Player player) -
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 AbstractContainerMenuAbstractMinecartContainer.createMenu(int containerId, Inventory playerInventory) AbstractMinecartContainer.createMenu(int containerId, Inventory playerInventory, Player player) ChestBoat.createMenu(int containerId, Inventory playerInventory, Player player) MinecartChest.createMenu(int id, Inventory playerInventory) MinecartHopper.createMenu(int id, Inventory playerInventory) -
Uses of AbstractContainerMenu in net.minecraft.world.inventory
Classes in net.minecraft.world.inventory with type parameters of type AbstractContainerMenuModifier and TypeClassDescriptionclassMenuType<T extends AbstractContainerMenu>static interfaceMenuType.MenuSupplier<T extends AbstractContainerMenu>Subclasses of AbstractContainerMenu in net.minecraft.world.inventoryModifier and TypeClassDescriptionclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassRecipeBookMenu<I extends RecipeInput,R extends Recipe<I>> classclassclassclassFields in net.minecraft.world.inventory declared as AbstractContainerMenuModifier and TypeFieldDescriptionprivate final AbstractContainerMenuTransientCraftingContainer.menuMethods in net.minecraft.world.inventory with type parameters of type AbstractContainerMenuModifier and TypeMethodDescriptionprivate static <T extends AbstractContainerMenu>
MenuType<T> MenuType.register(String key, MenuType.MenuSupplier<T> factory) private static <T extends AbstractContainerMenu>
MenuType<T> MenuType.register(String key, MenuType.MenuSupplier<T> factory, FeatureFlag... requiredFeatures) Methods in net.minecraft.world.inventory that return AbstractContainerMenuModifier and TypeMethodDescriptionMenuConstructor.createMenu(int containerId, Inventory playerInventory, Player player) Methods in net.minecraft.world.inventory with parameters of type AbstractContainerMenuModifier and TypeMethodDescriptionvoidContainerListener.dataChanged(AbstractContainerMenu containerMenu, int dataSlotIndex, int value) voidCrafterMenu.dataChanged(AbstractContainerMenu containerMenu, int dataSlotIndex, int value) voidContainerSynchronizer.sendCarriedChange(AbstractContainerMenu containerMenu, ItemStack stack) voidContainerSynchronizer.sendDataChange(AbstractContainerMenu container, int id, int value) voidContainerSynchronizer.sendInitialData(AbstractContainerMenu container, NonNullList<ItemStack> items, ItemStack carriedItem, int[] initialData) voidContainerSynchronizer.sendSlotChange(AbstractContainerMenu container, int slot, ItemStack itemStack) voidContainerListener.slotChanged(AbstractContainerMenu containerToSend, int dataSlotIndex, ItemStack stack) Sends the contents of an inventory slot to the client-side Container.voidCrafterMenu.slotChanged(AbstractContainerMenu containerToSend, int dataSlotIndex, ItemStack stack) Sends the contents of an inventory slot to the client-side Container.protected static voidCraftingMenu.slotChangedCraftingGrid(AbstractContainerMenu menu, Level level, Player player, CraftingContainer craftSlots, ResultContainer resultSlots, RecipeHolder<CraftingRecipe> recipe) voidAbstractContainerMenu.transferState(AbstractContainerMenu menu) Constructors in net.minecraft.world.inventory with parameters of type AbstractContainerMenuModifierConstructorDescriptionTransientCraftingContainer(AbstractContainerMenu menu, int width, int height) TransientCraftingContainer(AbstractContainerMenu menu, int width, int height, NonNullList<ItemStack> items) -
Uses of AbstractContainerMenu in net.minecraft.world.level.block.entity
Methods in net.minecraft.world.level.block.entity that return AbstractContainerMenuModifier and TypeMethodDescriptionprotected AbstractContainerMenuBarrelBlockEntity.createMenu(int id, Inventory player) protected abstract AbstractContainerMenuBaseContainerBlockEntity.createMenu(int containerId, Inventory inventory) BaseContainerBlockEntity.createMenu(int containerId, Inventory playerInventory, Player player) BeaconBlockEntity.createMenu(int containerId, Inventory playerInventory, Player player) protected AbstractContainerMenuBlastFurnaceBlockEntity.createMenu(int id, Inventory player) protected AbstractContainerMenuBrewingStandBlockEntity.createMenu(int id, Inventory player) protected AbstractContainerMenuChestBlockEntity.createMenu(int id, Inventory player) protected AbstractContainerMenuCrafterBlockEntity.createMenu(int containerId, Inventory inventory) protected AbstractContainerMenuDispenserBlockEntity.createMenu(int id, Inventory player) protected AbstractContainerMenuFurnaceBlockEntity.createMenu(int id, Inventory player) protected AbstractContainerMenuHopperBlockEntity.createMenu(int id, Inventory player) LecternBlockEntity.createMenu(int containerId, Inventory playerInventory, Player player) RandomizableContainerBlockEntity.createMenu(int containerId, Inventory playerInventory, Player player) protected AbstractContainerMenuShulkerBoxBlockEntity.createMenu(int id, Inventory player) protected AbstractContainerMenuSmokerBlockEntity.createMenu(int id, Inventory player) -
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 voidIMenuProviderExtension.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 AbstractContainerMenuPlayerContainerEvent.containerMethods 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 TypeInterfaceDescriptioninterfaceIContainerFactory<T extends AbstractContainerMenu>This extension ofMenuType.MenuSupplierallows 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)
RegisterMenuScreensEventinstead