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).
-
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>
@Nullable MenuScreens.ScreenConstructor<T, ?> MenuScreens.getConstructor(MenuType<T> type) static <T extends AbstractContainerMenu>
Optional<MenuScreens.ScreenConstructor<T, ?>> MenuScreens.getScreenFactory(MenuType<T> type) 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>interfaceMenuAccess<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 container, int id, int value) voidItemCombinerScreen.dataChanged(AbstractContainerMenu container, int id, int value) voidCyclingSlotBackground.render(AbstractContainerMenu menu, GuiGraphics graphics, float a, int left, int top) voidAnvilScreen.slotChanged(AbstractContainerMenu container, int slotIndex, ItemStack itemStack) Sends the contents of an inventory slot to the client-side Container.voidCreativeInventoryListener.slotChanged(AbstractContainerMenu container, int slotIndex, ItemStack itemStack) Sends the contents of an inventory slot to the client-side Container.voidItemCombinerScreen.slotChanged(AbstractContainerMenu container, int slotIndex, ItemStack itemStack) Sends the contents of an inventory slot to the client-side Container.voidSmithingScreen.slotChanged(AbstractContainerMenu container, int slotIndex, ItemStack itemStack) -
Uses of AbstractContainerMenu in net.minecraft.server.level
Methods in net.minecraft.server.level with parameters of type AbstractContainerMenuModifier and TypeMethodDescriptionprivate voidServerPlayer.initMenu(AbstractContainerMenu container) -
Uses of AbstractContainerMenu in net.minecraft.world
Methods in net.minecraft.world that return AbstractContainerMenuModifier and TypeMethodDescriptionSimpleMenuProvider.createMenu(int containerId, Inventory inventory, 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.boat
Methods in net.minecraft.world.entity.vehicle.boat that return AbstractContainerMenuModifier and TypeMethodDescription@Nullable AbstractContainerMenuAbstractChestBoat.createMenu(int containerId, Inventory inventory, Player player) -
Uses of AbstractContainerMenu in net.minecraft.world.entity.vehicle.minecart
Methods in net.minecraft.world.entity.vehicle.minecart that return AbstractContainerMenuModifier and TypeMethodDescriptionprotected abstract AbstractContainerMenuAbstractMinecartContainer.createMenu(int containerId, Inventory inventory) @Nullable AbstractContainerMenuAbstractMinecartContainer.createMenu(int containerId, Inventory inventory, Player player) MinecartChest.createMenu(int containerId, Inventory inventory) MinecartHopper.createMenu(int containerId, Inventory inventory) -
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 TypeClassDescriptionclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassFields 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 name, MenuType.MenuSupplier<T> constructor) private static <T extends AbstractContainerMenu>
MenuType<T> MenuType.register(String name, MenuType.MenuSupplier<T> constructor, FeatureFlag... flags) Methods in net.minecraft.world.inventory that return AbstractContainerMenuModifier and TypeMethodDescription@Nullable AbstractContainerMenuMenuConstructor.createMenu(int containerId, Inventory inventory, Player player) Methods in net.minecraft.world.inventory with parameters of type AbstractContainerMenuModifier and TypeMethodDescriptionvoidContainerListener.dataChanged(AbstractContainerMenu container, int id, int value) voidCrafterMenu.dataChanged(AbstractContainerMenu container, int id, int value) voidContainerSynchronizer.sendCarriedChange(AbstractContainerMenu container, ItemStack itemStack) voidContainerSynchronizer.sendDataChange(AbstractContainerMenu container, int id, int value) voidContainerSynchronizer.sendInitialData(AbstractContainerMenu container, List<ItemStack> slotItems, ItemStack carried, int[] dataSlots) voidContainerSynchronizer.sendSlotChange(AbstractContainerMenu container, int slotIndex, ItemStack itemStack) voidContainerListener.slotChanged(AbstractContainerMenu container, int slotIndex, ItemStack itemStack) Sends the contents of an inventory slot to the client-side Container.voidCrafterMenu.slotChanged(AbstractContainerMenu container, int slotIndex, ItemStack itemStack) protected static voidCraftingMenu.slotChangedCraftingGrid(AbstractContainerMenu menu, ServerLevel level, Player player, CraftingContainer container, ResultContainer resultSlots, @Nullable RecipeHolder<CraftingRecipe> recipeHint) voidAbstractContainerMenu.transferState(AbstractContainerMenu otherContainer) Constructors in net.minecraft.world.inventory with parameters of type AbstractContainerMenuModifierConstructorDescriptionTransientCraftingContainer(AbstractContainerMenu menu, int width, int height) privateTransientCraftingContainer(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 containerId, Inventory inventory) protected abstract AbstractContainerMenuBaseContainerBlockEntity.createMenu(int containerId, Inventory inventory) @Nullable AbstractContainerMenuBaseContainerBlockEntity.createMenu(int containerId, Inventory inventory, Player player) @Nullable AbstractContainerMenuBeaconBlockEntity.createMenu(int containerId, Inventory inventory, Player player) protected AbstractContainerMenuBlastFurnaceBlockEntity.createMenu(int containerId, Inventory inventory) protected AbstractContainerMenuBrewingStandBlockEntity.createMenu(int containerId, Inventory inventory) protected AbstractContainerMenuChestBlockEntity.createMenu(int containerId, Inventory inventory) protected AbstractContainerMenuCrafterBlockEntity.createMenu(int containerId, Inventory inventory) protected AbstractContainerMenuDispenserBlockEntity.createMenu(int containerId, Inventory inventory) protected AbstractContainerMenuFurnaceBlockEntity.createMenu(int containerId, Inventory inventory) protected AbstractContainerMenuHopperBlockEntity.createMenu(int containerId, Inventory inventory) LecternBlockEntity.createMenu(int containerId, Inventory inventory, Player player) @Nullable AbstractContainerMenuRandomizableContainerBlockEntity.createMenu(int containerId, Inventory inventory, Player player) protected AbstractContainerMenuShulkerBoxBlockEntity.createMenu(int containerId, Inventory inventory) protected AbstractContainerMenuSmokerBlockEntity.createMenu(int containerId, Inventory inventory) -
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.network
Methods in net.neoforged.neoforge.client.network 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.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.Methods in net.neoforged.neoforge.common.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.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.transfer.access
Methods in net.neoforged.neoforge.transfer.access with parameters of type AbstractContainerMenuModifier and TypeMethodDescriptionstatic ItemAccessItemAccess.forPlayerCursor(Player player, AbstractContainerMenu menu) Creates an item access instance for a player's cursor in a menu. -
Uses of AbstractContainerMenu in net.neoforged.neoforge.transfer.item
Fields in net.neoforged.neoforge.transfer.item declared as AbstractContainerMenuFields in net.neoforged.neoforge.transfer.item with type parameters of type AbstractContainerMenuModifier and TypeFieldDescriptionprivate static final Map<AbstractContainerMenu, CarriedSlotWrapper> CarriedSlotWrapper.wrappersSeeVanillaContainerWrapper.wrapperswhich is similar.Methods in net.neoforged.neoforge.transfer.item with parameters of type AbstractContainerMenuModifier and TypeMethodDescriptionstatic ResourceHandler<ItemResource> CarriedSlotWrapper.of(AbstractContainerMenu menu) Return a wrapper around the carried slot of a menu, i.e. the stack that can be manipulated withAbstractContainerMenu.getCarried()andAbstractContainerMenu.setCarried(ItemStack).Constructors in net.neoforged.neoforge.transfer.item with parameters of type AbstractContainerMenu
RegisterMenuScreensEventinstead