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 ContainerModifierConstructorDescriptionCustomCreativeSlot(Container p_98633_, int p_98634_, int p_98635_, int p_98636_) -
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 pSource, BlockPos pPos, com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType pException) private static ContainerLootCommand.getContainer(CommandSourceStack pSource, BlockPos pPos) Methods in net.minecraft.server.commands with parameters of type ContainerModifier and TypeMethodDescriptionprivate static booleanLootCommand.distributeToContainer(Container pContainer, ItemStack pItem) -
Uses of Container in net.minecraft.server.level
Methods in net.minecraft.server.level with parameters of type ContainerModifier and TypeMethodDescriptionvoidServerPlayer.openHorseInventory(AbstractHorse pHorse, Container pInventory) -
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 pTarget, int pSlot, ItemStack pStack) Returnstrueif the given stack can be extracted into the target inventory.static intContainerHelper.clearOrCountMatchingItems(Container pContainer, Predicate<ItemStack> pItemPredicate, int pMaxItems, boolean pSimulate) Clears items from the inventory matching a predicate.voidContainerListener.containerChanged(Container pContainer) Called byInventoryBasic.onInventoryChanged()on an array that is never filled.booleanReturn whether the given inventory is part of this large chest.private static voidContainers.dropContents(Level pLevel, double pX, double pY, double pZ, Container pInventory) static voidContainers.dropContents(Level pLevel, BlockPos pPos, Container pInventory) static voidContainers.dropContents(Level pLevel, Entity pEntityAt, Container pInventory) Constructors in net.minecraft.world with parameters of type ContainerModifierConstructorDescriptionCompoundContainer(Container pContainer1, Container pContainer2) ContainerIterator(Container pContainer) -
Uses of Container in net.minecraft.world.entity
Methods in net.minecraft.world.entity that return ContainerMethods in net.minecraft.world.entity with parameters of type ContainerModifier and TypeMethodDescriptionstatic SlotAccessSlotAccess.forContainer(Container pInventory, int pSlot) static SlotAccessSlotAccess.forContainer(Container pInventory, int pSlot, Predicate<ItemStack> pStackFilter) -
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 ContainerTransportItemsBetweenContainers.TransportItemTarget.getBlockEntityContainer(BlockEntity pBlockEntity, BlockState pState, Level pLevel, BlockPos pPos) 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 pInteractionState) Methods in net.minecraft.world.entity.ai.behavior with parameters of type ContainerModifier and TypeMethodDescriptionprivate static ItemStackTransportItemsBetweenContainers.addItemsToContainer(PathfinderMob pMob, Container pContainer) private voidTransportItemsBetweenContainers.doReachedTargetInteraction(PathfinderMob pMob, Container pContainer, BiConsumer<PathfinderMob, Container> pPickupItem, BiConsumer<PathfinderMob, Container> pPickupNoItem, BiConsumer<PathfinderMob, Container> pPlaceItem, BiConsumer<PathfinderMob, Container> pPlaceNoItem) private static booleanTransportItemsBetweenContainers.hasItemMatchingHandItem(PathfinderMob pMob, Container pContainer) private static booleanTransportItemsBetweenContainers.matchesGettingItemsRequirement(Container pContainer) private static booleanTransportItemsBetweenContainers.matchesLeavingItemsRequirement(PathfinderMob pMob, Container pContainer) private static ItemStackTransportItemsBetweenContainers.pickupItemFromContainer(Container pContainer) private voidTransportItemsBetweenContainers.pickUpItems(PathfinderMob pMob, Container pContainer) private voidTransportItemsBetweenContainers.putDownItem(PathfinderMob pMob, Container pContainer) Method parameters in net.minecraft.world.entity.ai.behavior with type arguments of type ContainerModifier and TypeMethodDescriptionprivate voidTransportItemsBetweenContainers.doReachedTargetInteraction(PathfinderMob pMob, Container pContainer, BiConsumer<PathfinderMob, Container> pPickupItem, BiConsumer<PathfinderMob, Container> pPickupNoItem, BiConsumer<PathfinderMob, Container> pPlaceItem, BiConsumer<PathfinderMob, Container> pPlaceNoItem) 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.horse
Methods in net.minecraft.world.entity.animal.horse that return ContainerMethods in net.minecraft.world.entity.animal.horse with parameters of type ContainerModifier and TypeMethodDescriptionbooleanAbstractHorse.hasInventoryChanged(Container pInventory) -
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> pStackPredicate, int pMaxCount, Container pInventory) voidPlayer.openHorseInventory(AbstractHorse pHorse, Container pInventory) -
Uses of Container in net.minecraft.world.entity.vehicle
Subinterfaces of Container in net.minecraft.world.entity.vehicleClasses in net.minecraft.world.entity.vehicle that implement ContainerModifier and TypeClassDescriptionclassclassclassclassclassclass -
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.brewingStand(package private) 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 ContainerHorseInventoryMenu.horseContainerprivate final ContainerLoomMenu.inputContainerprotected final ContainerItemCombinerMenu.inputSlotsprivate final ContainerLecternMenu.lecternprivate final ContainerLoomMenu.outputContainer(package private) 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 pContainer, int pX, int pY) private voidChestMenu.addChestGrid(Container pContainer, int pX, int pY) protected voidAbstractContainerMenu.addInventoryExtendedSlots(Container pContainer, int pX, int pY) protected voidAbstractContainerMenu.addInventoryHotbarSlots(Container pContainer, int pX, int pY) protected voidAbstractContainerMenu.addStandardInventorySlots(Container pContainer, int pX, int pY) protected static voidAbstractContainerMenu.checkContainerSize(Container pContainer, int pMinSize) protected voidAbstractContainerMenu.clearContainer(Player pPlayer, Container pContainer) static intAbstractContainerMenu.getRedstoneSignalFromContainer(Container pContainer) static ChestMenuvoidAbstractContainerMenu.slotsChanged(Container pContainer) Callback for when the crafting matrix is changed.voidCartographyTableMenu.slotsChanged(Container pInventory) Callback for when the crafting matrix is changed.voidCraftingMenu.slotsChanged(Container pInventory) Callback for when the crafting matrix is changed.voidEnchantmentMenu.slotsChanged(Container pInventory) Callback for when the crafting matrix is changed.voidGrindstoneMenu.slotsChanged(Container pInventory) Callback for when the crafting matrix is changed.voidInventoryMenu.slotsChanged(Container pInventory) Callback for when the crafting matrix is changed.voidItemCombinerMenu.slotsChanged(Container pInventory) Callback for when the crafting matrix is changed.voidLoomMenu.slotsChanged(Container pInventory) Callback for when the crafting matrix is changed.voidMerchantMenu.slotsChanged(Container pInventory) Callback for when the crafting matrix is changed.voidSmithingMenu.slotsChanged(Container p_381709_) voidStonecutterMenu.slotsChanged(Container pInventory) Callback for when the crafting matrix is changed.static ChestMenuConstructors in net.minecraft.world.inventory with parameters of type ContainerModifierConstructorDescriptionprotectedAbstractFurnaceMenu(MenuType<?> pMenuType, RecipeType<? extends AbstractCookingRecipe> pRecipeType, ResourceKey<RecipePropertySet> pAcceptedInputs, RecipeBookType pRecipeBookType, int pContainerId, Inventory pInventory, Container pContainer, ContainerData pData) ArmorSlot(Container pContainer, LivingEntity pOwner, EquipmentSlot pSlot, int pSlotIndex, int pX, int pY, ResourceLocation pEmptyIcon) BeaconMenu(int pContainerId, Container pContainer) BeaconMenu(int pContainerId, Container pContainer, ContainerData pBeaconData, ContainerLevelAccess pAccess) BlastFurnaceMenu(int pContainerId, Inventory pPlayerInventory, Container pBlastFurnaceContainer, ContainerData pBlastFurnaceData) BrewingStandMenu(int pContainerId, Inventory pPlayerInventory, Container pBrewingStandContainer, ContainerData pBrewingStandData) ChestMenu(MenuType<?> pType, int pContainerId, Inventory pPlayerInventory, Container pContainer, int pRows) CrafterSlot(Container pContainer, int pSlot, int pX, int pY, CrafterMenu pMenu) DispenserMenu(int pContainerId, Inventory pPlayerInventory, Container pContainer) FurnaceFuelSlot(AbstractFurnaceMenu pFurnaceMenu, Container pFurnaceContainer, int pSlot, int pXPosition, int pYPosition) FurnaceMenu(int pContainerId, Inventory pPlayerInventory, Container pFurnaceContainer, ContainerData pFurnaceData) FurnaceResultSlot(Player pPlayer, Container pContainer, int pSlot, int pXPosition, int pYPosition) HopperMenu(int pContainerId, Inventory pPlayerInventory, Container pContainer) HorseInventoryMenu(int pContainerId, Inventory pInventory, Container pHorseContainer, AbstractHorse pHorse, int pColumns) IngredientsSlot(PotionBrewing pPotionBrewing, Container pContainer, int pSlot, int pX, int pY) LecternMenu(int pContainerId, Container pLectern, ContainerData pLecternData) NonInteractiveResultSlot(Container p_307372_, int p_307687_, int p_307440_, int p_307347_) PaymentSlot(Container p_39071_, int p_39072_, int p_39073_, int p_39074_) PotionSlot(Container p_39123_, int p_39124_, int p_39125_, int p_39126_) PotionSlot(PotionBrewing potionBrewing, Container p_39123_, int p_39124_, int p_39125_, int p_39126_) ResultSlot(Player pPlayer, CraftingContainer pCraftSlots, Container pContainer, int pSlot, int pXPosition, int pYPosition) ShulkerBoxMenu(int pContainerId, Inventory pPlayerInventory, Container pContainer) ShulkerBoxSlot(Container p_40202_, int p_40203_, int p_40204_, int p_40205_) SmokerMenu(int pContainerId, Inventory pPlayerInventory, Container pSmokerContainer, ContainerData pSmokerData) -
Uses of Container in net.minecraft.world.level.block
Classes in net.minecraft.world.level.block that implement ContainerModifier and TypeClassDescription(package private) static class(package private) static class(package private) 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 ContainerChestBlock.getContainer(ChestBlock pChest, BlockState pState, Level pLevel, BlockPos pPos, boolean pOverride) -
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 ContainerHopperBlockEntity.getAttachedContainer(Level pLevel, BlockPos pPos, HopperBlockEntity pBlockEntity) private static ContainerHopperBlockEntity.getBlockContainer(Level pLevel, BlockPos pPos, BlockState pState) static ContainerHopperBlockEntity.getContainerAt(Level pLevel, BlockPos pPos) Deprecated.Use IItemHandler capability instead.private static ContainerHopperBlockEntity.getContainerAt(Level pLevel, BlockPos pPos, BlockState pState, double pX, double pY, double pZ) private static ContainerHopperBlockEntity.getEntityContainer(Level pLevel, double pX, double pY, double pZ) private static ContainerHopperBlockEntity.getSourceContainer(Level pLevel, Hopper pHopper, BlockPos pPos, BlockState pState) Methods in net.minecraft.world.level.block.entity with parameters of type ContainerModifier and TypeMethodDescriptionstatic ItemStackHopperBlockEntity.addItem(Container pSource, Container pDestination, ItemStack pStack, Direction pDirection) Attempts to place the passed stack in the container, using as many slots as required.static booleanHopperBlockEntity.addItem(Container pContainer, ItemEntity pItem) private static booleanHopperBlockEntity.canPlaceItemInContainer(Container pContainer, ItemStack pStack, int pSlot, Direction pDirection) booleanChiseledBookShelfBlockEntity.canTakeItem(Container p_437377_, int p_437398_, ItemStack p_437308_) booleanJukeboxBlockEntity.canTakeItem(Container p_273497_, int p_273168_, ItemStack p_273785_) private static booleanHopperBlockEntity.canTakeItemFromContainer(Container pSource, Container pDestination, ItemStack pStack, int pSlot, Direction pDirection) private static int[]private static booleanHopperBlockEntity.isFullContainer(Container pContainer, Direction pDirection) private static ItemStackHopperBlockEntity.tryMoveInItem(Container pSource, Container pDestination, ItemStack pStack, int pSlot, Direction pDirection) private static booleanHopperBlockEntity.tryTakeInItemFromSlot(Hopper pHopper, Container pContainer, int pSlot, Direction pDirection) 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 pContainer, LootParams pParams, long pSeed) LootTable.getAvailableSlots(Container pInventory, RandomSource pRandom) -
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