Uses of Interface
net.minecraft.world.Container
Packages that use Container
Package
Description
-
Uses of Container in net.minecraft.client.gui.screens.inventory
Constructors in net.minecraft.client.gui.screens.inventory with parameters of type Container -
Uses of Container in net.minecraft.server.commands
Methods in net.minecraft.server.commands that return ContainerModifier and TypeMethodDescription(package private) static ContainerItemCommands.getContainer(CommandSourceStack source, BlockPos pos, com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType exceptionType) private static ContainerLootCommand.getContainer(CommandSourceStack source, BlockPos pos) Methods in net.minecraft.server.commands with parameters of type ContainerModifier and TypeMethodDescriptionprivate static booleanLootCommand.distributeToContainer(Container container, ItemStack itemStack) -
Uses of Container in net.minecraft.server.level
Methods in net.minecraft.server.level with parameters of type ContainerModifier and TypeMethodDescriptionvoidServerPlayer.openHorseInventory(AbstractHorse horse, Container container) voidServerPlayer.openNautilusInventory(AbstractNautilus nautilus, Container container) -
Uses of Container in net.minecraft.world
Subinterfaces of Container in net.minecraft.worldClasses in net.minecraft.world that implement ContainerFields in net.minecraft.world declared as ContainerModifier and TypeFieldDescriptionprivate final ContainerContainer.ContainerIterator.containerprivate final ContainerCompoundContainer.container1private final ContainerCompoundContainer.container2Methods in net.minecraft.world with parameters of type ContainerModifier and TypeMethodDescriptiondefault booleanContainer.canTakeItem(Container into, int slot, ItemStack itemStack) Returnstrueif the given stack can be extracted into the target inventory.static intContainerHelper.clearOrCountMatchingItems(Container container, Predicate<ItemStack> predicate, int amountToRemove, boolean countingOnly) Clears items from the inventory matching a predicate.booleanReturn whether the given inventory is part of this large chest.private static voidContainers.dropContents(Level level, double x, double y, double z, Container container) static voidContainers.dropContents(Level level, BlockPos pos, Container container) static voidContainers.dropContents(Level level, Entity entity, Container container) Constructors in net.minecraft.world with parameters of type ContainerModifierConstructorDescriptionCompoundContainer(Container container1, Container container2) ContainerIterator(Container container) -
Uses of Container in net.minecraft.world.entity
Methods in net.minecraft.world.entity that return Container -
Uses of Container in net.minecraft.world.entity.ai.behavior
Fields in net.minecraft.world.entity.ai.behavior declared as ContainerModifier and TypeFieldDescriptionprivate final ContainerTransportItemsBetweenContainers.TransportItemTarget.containerThe field for thecontainerrecord component.Methods in net.minecraft.world.entity.ai.behavior that return ContainerModifier and TypeMethodDescriptionTransportItemsBetweenContainers.TransportItemTarget.container()Returns the value of thecontainerrecord component.private static @Nullable ContainerTransportItemsBetweenContainers.TransportItemTarget.getBlockEntityContainer(BlockEntity blockEntity, BlockState blockState, Level level, BlockPos blockPos) Methods in net.minecraft.world.entity.ai.behavior that return types with arguments of type ContainerModifier and TypeMethodDescriptionprivate BiConsumer<PathfinderMob, Container> TransportItemsBetweenContainers.onReachedInteraction(TransportItemsBetweenContainers.ContainerInteractionState state) Methods in net.minecraft.world.entity.ai.behavior with parameters of type ContainerModifier and TypeMethodDescriptionprivate static ItemStackTransportItemsBetweenContainers.addItemsToContainer(PathfinderMob body, Container container) private voidTransportItemsBetweenContainers.doReachedTargetInteraction(PathfinderMob body, Container container, BiConsumer<PathfinderMob, Container> onPickupSuccess, BiConsumer<PathfinderMob, Container> onPickupFailure, BiConsumer<PathfinderMob, Container> onPlaceSuccess, BiConsumer<PathfinderMob, Container> onPlaceFailure) private static booleanTransportItemsBetweenContainers.hasItemMatchingHandItem(PathfinderMob body, Container container) private static booleanTransportItemsBetweenContainers.matchesGettingItemsRequirement(Container container) private static booleanTransportItemsBetweenContainers.matchesLeavingItemsRequirement(PathfinderMob body, Container container) private static ItemStackTransportItemsBetweenContainers.pickupItemFromContainer(Container container) private voidTransportItemsBetweenContainers.pickUpItems(PathfinderMob body, Container container) private voidTransportItemsBetweenContainers.putDownItem(PathfinderMob body, Container container) Method parameters in net.minecraft.world.entity.ai.behavior with type arguments of type ContainerModifier and TypeMethodDescriptionprivate voidTransportItemsBetweenContainers.doReachedTargetInteraction(PathfinderMob body, Container container, BiConsumer<PathfinderMob, Container> onPickupSuccess, BiConsumer<PathfinderMob, Container> onPickupFailure, BiConsumer<PathfinderMob, Container> onPlaceSuccess, BiConsumer<PathfinderMob, Container> onPlaceFailure) Constructors in net.minecraft.world.entity.ai.behavior with parameters of type ContainerModifierConstructorDescriptionTransportItemTarget(BlockPos pos, Container container, BlockEntity blockEntity, BlockState state) Creates an instance of aTransportItemTargetrecord class. -
Uses of Container in net.minecraft.world.entity.animal.equine
Methods in net.minecraft.world.entity.animal.equine that return ContainerMethods in net.minecraft.world.entity.animal.equine with parameters of type ContainerModifier and TypeMethodDescriptionbooleanAbstractHorse.hasInventoryChanged(Container oldInventory) -
Uses of Container in net.minecraft.world.entity.animal.nautilus
Methods in net.minecraft.world.entity.animal.nautilus with parameters of type ContainerModifier and TypeMethodDescriptionbooleanAbstractNautilus.hasInventoryChanged(Container oldInventory) -
Uses of Container in net.minecraft.world.entity.player
Classes in net.minecraft.world.entity.player that implement ContainerMethods in net.minecraft.world.entity.player with parameters of type ContainerModifier and TypeMethodDescriptionintInventory.clearOrCountMatchingItems(Predicate<ItemStack> predicate, int amountToRemove, Container craftSlots) voidPlayer.openHorseInventory(AbstractHorse horse, Container container) voidPlayer.openNautilusInventory(AbstractNautilus nautilus, Container container) -
Uses of Container in net.minecraft.world.entity.vehicle
Subinterfaces of Container in net.minecraft.world.entity.vehicle -
Uses of Container in net.minecraft.world.entity.vehicle.boat
Classes in net.minecraft.world.entity.vehicle.boat that implement Container -
Uses of Container in net.minecraft.world.entity.vehicle.minecart
Classes in net.minecraft.world.entity.vehicle.minecart that implement ContainerModifier and TypeClassDescriptionclassclassclass -
Uses of Container in net.minecraft.world.inventory
Subinterfaces of Container in net.minecraft.world.inventoryClasses in net.minecraft.world.inventory that implement ContainerModifier and TypeClassDescriptionclassclassclassclassFields in net.minecraft.world.inventory declared as ContainerModifier and TypeFieldDescriptionprivate final ContainerBeaconMenu.beaconprivate final ContainerBrewingStandMenu.brewingStandprivate final ContainerAbstractFurnaceMenu.containerfinal ContainerCartographyTableMenu.containerprivate final ContainerChestMenu.containerprivate final ContainerShulkerBoxMenu.containerfinal ContainerSlot.containerfinal ContainerStonecutterMenu.containerprivate final ContainerDispenserMenu.dispenserprivate final ContainerEnchantmentMenu.enchantSlotsprivate final ContainerHopperMenu.hopperprivate final ContainerLoomMenu.inputContainerprotected final ContainerItemCombinerMenu.inputSlotsprivate final ContainerLecternMenu.lecternprotected final ContainerAbstractMountInventoryMenu.mountContainerprivate final ContainerLoomMenu.outputContainerprivate final ContainerGrindstoneMenu.repairSlotsprivate final ContainerGrindstoneMenu.resultSlotsThe inventory slot that stores the output of the crafting recipe.Methods in net.minecraft.world.inventory that return ContainerMethods in net.minecraft.world.inventory with parameters of type ContainerModifier and TypeMethodDescriptionprotected voidDispenserMenu.add3x3GridSlots(Container container, int left, int top) private voidChestMenu.addChestGrid(Container container, int left, int top) protected voidAbstractContainerMenu.addInventoryExtendedSlots(Container inventory, int left, int top) protected voidAbstractContainerMenu.addInventoryHotbarSlots(Container inventory, int left, int top) protected voidAbstractContainerMenu.addStandardInventorySlots(Container container, int left, int top) protected static voidAbstractContainerMenu.checkContainerSize(Container container, int expected) protected voidAbstractContainerMenu.clearContainer(Player player, Container container) static intAbstractContainerMenu.getRedstoneSignalFromContainer(@Nullable Container container) protected abstract booleanAbstractMountInventoryMenu.hasInventoryChanged(Container container) protected booleanHorseInventoryMenu.hasInventoryChanged(Container container) protected booleanNautilusInventoryMenu.hasInventoryChanged(Container container) static ChestMenuvoidAbstractContainerMenu.slotsChanged(Container container) Callback for when the crafting matrix is changed.voidCartographyTableMenu.slotsChanged(Container container) Callback for when the crafting matrix is changed.voidCraftingMenu.slotsChanged(Container container) Callback for when the crafting matrix is changed.voidEnchantmentMenu.slotsChanged(Container container) Callback for when the crafting matrix is changed.voidGrindstoneMenu.slotsChanged(Container container) Callback for when the crafting matrix is changed.voidInventoryMenu.slotsChanged(Container container) Callback for when the crafting matrix is changed.voidItemCombinerMenu.slotsChanged(Container container) Callback for when the crafting matrix is changed.voidLoomMenu.slotsChanged(Container container) Callback for when the crafting matrix is changed.voidMerchantMenu.slotsChanged(Container container) Callback for when the crafting matrix is changed.voidSmithingMenu.slotsChanged(Container container) voidStonecutterMenu.slotsChanged(Container container) Callback for when the crafting matrix is changed.static ChestMenuConstructors in net.minecraft.world.inventory with parameters of type ContainerModifierConstructorDescriptionprotectedAbstractFurnaceMenu(MenuType<?> menuType, RecipeType<? extends AbstractCookingRecipe> recipeType, ResourceKey<RecipePropertySet> allowedInputs, RecipeBookType recipeBookType, int containerId, Inventory inventory, Container container, ContainerData data) protectedAbstractMountInventoryMenu(int containerId, Inventory playerInventory, Container mountInventory, LivingEntity mount) ArmorSlot(Container inventory, LivingEntity owner, EquipmentSlot slot, int slotIndex, int x, int y, @Nullable Identifier emptyIcon) BeaconMenu(int containerId, Container inventory) BeaconMenu(int containerId, Container inventory, ContainerData beaconData, ContainerLevelAccess access) BlastFurnaceMenu(int containerId, Inventory inventory, Container container, ContainerData data) BrewingStandMenu(int containerId, Inventory inventory, Container brewingStand, ContainerData brewingStandData) ChestMenu(MenuType<?> menuType, int containerId, Inventory inventory, Container container, int rows) CrafterSlot(Container container, int slot, int x, int y, CrafterMenu menu) DispenserMenu(int containerId, Inventory inventory, Container dispenser) FurnaceFuelSlot(AbstractFurnaceMenu menu, Container container, int slot, int x, int y) FurnaceMenu(int containerId, Inventory inventory, Container container, ContainerData data) FurnaceResultSlot(Player player, Container container, int slot, int x, int y) HopperMenu(int containerId, Inventory inventory, Container hopper) HorseInventoryMenu(int containerId, Inventory playerInventory, Container horseInventory, AbstractHorse horse, int inventoryColumns) IngredientsSlot(PotionBrewing potionBrewing, Container container, int slot, int x, int y) LecternMenu(int containerId, Container lectern, ContainerData lecternData) NautilusInventoryMenu(int containerId, Inventory playerInventory, Container nautilusInventory, AbstractNautilus nautilus, int inventoryColumns) NonInteractiveResultSlot(Container container, int id, int x, int y) PaymentSlot(Container container, int slot, int x, int y) PotionSlot(Container container, int slot, int x, int y) PotionSlot(PotionBrewing potionBrewing, Container container, int slot, int x, int y) ResultSlot(Player player, CraftingContainer craftSlots, Container container, int id, int x, int y) ShulkerBoxMenu(int containerId, Inventory inventory, Container container) ShulkerBoxSlot(Container container, int slot, int x, int y) SmokerMenu(int containerId, Inventory inventory, Container container, ContainerData data) -
Uses of Container in net.minecraft.world.level.block
Classes in net.minecraft.world.level.block that implement ContainerModifier and TypeClassDescriptionprivate static classprivate static classprivate static classFields in net.minecraft.world.level.block with type parameters of type ContainerModifier and TypeFieldDescriptionprivate static final DoubleBlockCombiner.Combiner<ChestBlockEntity, Optional<Container>> ChestBlock.CHEST_COMBINERMethods in net.minecraft.world.level.block that return ContainerModifier and TypeMethodDescriptionstatic @Nullable ContainerChestBlock.getContainer(ChestBlock block, BlockState state, Level level, BlockPos pos, boolean ignoreBeingBlocked) -
Uses of Container in net.minecraft.world.level.block.entity
Subinterfaces of Container in net.minecraft.world.level.block.entityClasses in net.minecraft.world.level.block.entity that implement ContainerModifier and TypeClassDescriptionclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassFields in net.minecraft.world.level.block.entity declared as ContainerMethods in net.minecraft.world.level.block.entity that return ContainerModifier and TypeMethodDescriptionprivate static @Nullable ContainerHopperBlockEntity.getAttachedContainer(Level level, BlockPos blockPos, HopperBlockEntity self) private static @Nullable ContainerHopperBlockEntity.getBlockContainer(Level level, BlockPos pos, BlockState state) static @Nullable ContainerHopperBlockEntity.getContainerAt(Level level, BlockPos pos) Deprecated.Use IItemHandler capability instead.private static @Nullable ContainerHopperBlockEntity.getContainerAt(Level level, BlockPos pos, BlockState state, double x, double y, double z) private static @Nullable ContainerHopperBlockEntity.getEntityContainer(Level level, double x, double y, double z) private static @Nullable ContainerHopperBlockEntity.getSourceContainer(Level level, Hopper hopper, BlockPos pos, BlockState state) Methods in net.minecraft.world.level.block.entity with parameters of type ContainerModifier and TypeMethodDescriptionstatic ItemStackHopperBlockEntity.addItem(@Nullable Container from, Container container, ItemStack itemStack, @Nullable Direction direction) Attempts to place the passed stack in the container, using as many slots as required.static booleanHopperBlockEntity.addItem(Container container, ItemEntity entity) private static booleanHopperBlockEntity.canPlaceItemInContainer(Container container, ItemStack itemStack, int slot, @Nullable Direction direction) booleanChiseledBookShelfBlockEntity.canTakeItem(Container into, int slot, ItemStack itemStack) booleanJukeboxBlockEntity.canTakeItem(Container into, int slot, ItemStack itemStack) private static booleanHopperBlockEntity.canTakeItemFromContainer(Container into, Container from, ItemStack itemStack, int slot, Direction direction) private static int[]private static booleanHopperBlockEntity.isFullContainer(Container container, Direction direction) private static ItemStackHopperBlockEntity.tryMoveInItem(@Nullable Container from, Container container, ItemStack itemStack, int slot, @Nullable Direction direction) private static booleanHopperBlockEntity.tryTakeInItemFromSlot(Hopper hopper, Container container, int slot, Direction direction) Pulls from the specified slot in the container and places in any available slot in the hopper. -
Uses of Container in net.minecraft.world.level.storage.loot
Methods in net.minecraft.world.level.storage.loot with parameters of type ContainerModifier and TypeMethodDescriptionvoidLootTable.fill(Container container, LootParams params, long optionalRandomSeed) LootTable.getAvailableSlots(Container container, RandomSource random) -
Uses of Container in net.minecraft.world.ticks
Subinterfaces of Container in net.minecraft.world.ticksModifier and TypeInterfaceDescriptioninterfacestatic interface -
Uses of Container in net.neoforged.neoforge.common
Methods in net.neoforged.neoforge.common with parameters of type ContainerModifier and TypeMethodDescriptionstatic voidCommonHooks.onAnvilUpdate(AnvilMenu menu, ItemStack leftInput, ItemStack rightInput, Container resultSlot, @Nullable String name, Player player) Called fromAnvilMenu.createResult()after the vanilla result has been computed.static intCommonHooks.onGrindstoneChange(ItemStack top, ItemStack bottom, Container outputSlot, int xp) static booleanCommonHooks.onGrindstoneTake(Container inputSlots, ContainerLevelAccess access, Player player, Function<Level, Integer> xpFunction) -
Uses of Container in net.neoforged.neoforge.common.extensions
Methods in net.neoforged.neoforge.common.extensions that return Container -
Uses of Container in net.neoforged.neoforge.common.util
Methods in net.neoforged.neoforge.common.util with parameters of type ContainerModifier and TypeMethodDescriptionvoidFakePlayer.openHorseInventory(AbstractHorse horse, Container container) -
Uses of Container in net.neoforged.neoforge.event
Methods in net.neoforged.neoforge.event with parameters of type ContainerModifier and TypeMethodDescriptionstatic voidEventHooks.firePlayerCraftingEvent(Player player, ItemStack crafted, Container craftMatrix) -
Uses of Container in net.neoforged.neoforge.event.entity.player
Fields in net.neoforged.neoforge.event.entity.player declared as ContainerModifier and TypeFieldDescriptionprivate final ContainerPlayerEvent.ItemCraftedEvent.craftMatrixMethods in net.neoforged.neoforge.event.entity.player that return ContainerConstructors in net.neoforged.neoforge.event.entity.player with parameters of type ContainerModifierConstructorDescriptionItemCraftedEvent(Player player, ItemStack crafting, Container craftMatrix) -
Uses of Container in net.neoforged.neoforge.items
Fields in net.neoforged.neoforge.items declared as ContainerModifier and TypeFieldDescriptionprivate static final ContainerSlotItemHandler.EMPTY_INVENTORYDeprecated, for removal: This API element is subject to removal in a future version. -
Uses of Container in net.neoforged.neoforge.items.wrapper
Fields in net.neoforged.neoforge.items.wrapper declared as ContainerModifier and TypeFieldDescriptionprivate final ContainerInvWrapper.invDeprecated, for removal: This API element is subject to removal in a future version.Methods in net.neoforged.neoforge.items.wrapper that return ContainerModifier and TypeMethodDescriptionInvWrapper.getInv()Deprecated, for removal: This API element is subject to removal in a future version.Constructors in net.neoforged.neoforge.items.wrapper with parameters of type ContainerModifierConstructorDescriptionInvWrapper(Container inv) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of Container in net.neoforged.neoforge.transfer.item
Fields in net.neoforged.neoforge.transfer.item declared as ContainerModifier and TypeFieldDescriptionprivate final @Nullable ContainerContainerOrHandler.containerThe field for thecontainerrecord component.private final ContainerVanillaContainerWrapper.containerFields in net.neoforged.neoforge.transfer.item with type parameters of type ContainerModifier and TypeFieldDescriptionprivate static final Map<Container, VanillaContainerWrapper> VanillaContainerWrapper.wrappersGlobal wrapper concurrent map.Methods in net.neoforged.neoforge.transfer.item that return ContainerModifier and TypeMethodDescription@Nullable ContainerContainerOrHandler.container()Returns the value of thecontainerrecord component.Methods in net.neoforged.neoforge.transfer.item with parameters of type ContainerModifier and TypeMethodDescription(package private) static VanillaContainerWrapperVanillaContainerWrapper.internalOf(Container container) static ResourceHandler<ItemResource> Wraps a vanilla container into aResourceHandlerofItemResources.Constructors in net.neoforged.neoforge.transfer.item with parameters of type ContainerModifierConstructorDescriptionContainerOrHandler(@Nullable Container container, @Nullable ResourceHandler<ItemResource> itemHandler) Creates an instance of aContainerOrHandlerrecord class.(package private)VanillaContainerWrapper(Container container) -
Uses of Container in net.neoforged.neoforge.world.inventory
Fields in net.neoforged.neoforge.world.inventory declared as Container