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 pContainer, int pSlot, int pX, int pY) -
Uses of Container in net.minecraft.server.commands
Methods in net.minecraft.server.commands that return ContainerModifier and TypeMethodDescription(package private) static Container
ItemCommands.getContainer
(CommandSourceStack p_180328_, BlockPos p_180329_, com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType p_180330_) private static Container
LootCommand.getContainer
(CommandSourceStack pSource, BlockPos pPos) Methods in net.minecraft.server.commands with parameters of type ContainerModifier and TypeMethodDescriptionprivate static boolean
LootCommand.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 TypeMethodDescriptionvoid
ServerPlayer.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 Container
CompoundContainer.container1
private final Container
CompoundContainer.container2
Methods in net.minecraft.world with parameters of type ContainerModifier and TypeMethodDescriptiondefault boolean
Container.canTakeItem
(Container pTarget, int pSlot, ItemStack pStack) Returnstrue
if the given stack can be extracted into the target inventory.static int
ContainerHelper.clearOrCountMatchingItems
(Container pContainer, Predicate<ItemStack> pItemPredicate, int pMaxItems, boolean pSimulate) Clears items from the inventory matching a predicate.void
ContainerListener.containerChanged
(Container pContainer) Called byInventoryBasic.onInventoryChanged()
on an array that is never filled.boolean
Return whether the given inventory is part of this large chest.private static void
Containers.dropContents
(Level pLevel, double pX, double pY, double pZ, Container pInventory) static void
Containers.dropContents
(Level pLevel, BlockPos pPos, Container pInventory) static void
Containers.dropContents
(Level pLevel, Entity pEntityAt, Container pInventory) Constructors in net.minecraft.world with parameters of type Container -
Uses of Container in net.minecraft.world.entity
Methods in net.minecraft.world.entity with parameters of type ContainerModifier and TypeMethodDescriptionstatic SlotAccess
SlotAccess.forContainer
(Container pInventory, int pSlot) static SlotAccess
SlotAccess.forContainer
(Container pInventory, int pSlot, Predicate<ItemStack> pStackFilter) -
Uses of Container in net.minecraft.world.entity.animal.horse
Fields in net.minecraft.world.entity.animal.horse declared as ContainerMethods in net.minecraft.world.entity.animal.horse that return ContainerModifier and TypeMethodDescriptionfinal Container
AbstractHorse.getBodyArmorAccess()
AbstractHorse.getInventory()
Methods in net.minecraft.world.entity.animal.horse with parameters of type ContainerModifier and TypeMethodDescriptionvoid
AbstractHorse.containerChanged
(Container pInvBasic) Called byInventoryBasic.onInventoryChanged()
on an array that is never filled.void
Horse.containerChanged
(Container pInvBasic) Called byInventoryBasic.onInventoryChanged()
on an array that is never filled.boolean
AbstractHorse.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 TypeMethodDescriptionint
Inventory.clearOrCountMatchingItems
(Predicate<ItemStack> pStackPredicate, int pMaxCount, Container pInventory) void
Player.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 TypeClassDescriptionclass
class
class
class
-
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 TypeClassDescriptionclass
class
class
class
Fields in net.minecraft.world.inventory declared as ContainerModifier and TypeFieldDescriptionprivate final Container
HorseInventoryMenu.armorContainer
private final Container
BeaconMenu.beacon
private final Container
BrewingStandMenu.brewingStand
private final Container
AbstractFurnaceMenu.container
final Container
CartographyTableMenu.container
private final Container
ChestMenu.container
private final Container
ShulkerBoxMenu.container
final Container
Slot.container
final Container
StonecutterMenu.container
private final Container
DispenserMenu.dispenser
private final Container
EnchantmentMenu.enchantSlots
private final Container
HopperMenu.hopper
private final Container
HorseInventoryMenu.horseContainer
private final Container
LoomMenu.inputContainer
protected final Container
ItemCombinerMenu.inputSlots
private final Container
LecternMenu.lectern
private final Container
LoomMenu.outputContainer
(package private) final Container
GrindstoneMenu.repairSlots
private final Container
GrindstoneMenu.resultSlots
The 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 static void
AbstractContainerMenu.checkContainerSize
(Container pContainer, int pMinSize) protected void
AbstractContainerMenu.clearContainer
(Player pPlayer, Container pContainer) private static SingleRecipeInput
StonecutterMenu.createRecipeInput
(Container pContainer) static int
AbstractContainerMenu.getRedstoneSignalFromContainer
(Container pContainer) private void
StonecutterMenu.setupRecipeList
(Container pContainer, ItemStack pStack) static ChestMenu
void
AbstractContainerMenu.slotsChanged
(Container pContainer) Callback for when the crafting matrix is changed.void
CartographyTableMenu.slotsChanged
(Container pInventory) Callback for when the crafting matrix is changed.void
CraftingMenu.slotsChanged
(Container pInventory) Callback for when the crafting matrix is changed.void
EnchantmentMenu.slotsChanged
(Container pInventory) Callback for when the crafting matrix is changed.void
GrindstoneMenu.slotsChanged
(Container pInventory) Callback for when the crafting matrix is changed.void
InventoryMenu.slotsChanged
(Container pInventory) Callback for when the crafting matrix is changed.void
ItemCombinerMenu.slotsChanged
(Container pInventory) Callback for when the crafting matrix is changed.void
LoomMenu.slotsChanged
(Container pInventory) Callback for when the crafting matrix is changed.void
MerchantMenu.slotsChanged
(Container pInventory) Callback for when the crafting matrix is changed.void
StonecutterMenu.slotsChanged
(Container pInventory) Callback for when the crafting matrix is changed.static ChestMenu
Constructors in net.minecraft.world.inventory with parameters of type ContainerModifierConstructorDescriptionprotected
AbstractFurnaceMenu
(MenuType<?> pMenuType, RecipeType<? extends AbstractCookingRecipe> pRecipeType, RecipeBookType pRecipeBookType, int pContainerId, Inventory pPlayerInventory, 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 pContainer, int pContainerIndex, int pXPosition, int pYPosition) PotionSlot
(Container pContainer, int pSlot, int pX, int pY) 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 pContainer, int pSlot, int pX, int pY) 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 class
Fields in net.minecraft.world.level.block with type parameters of type ContainerModifier and TypeFieldDescriptionprivate static final DoubleBlockCombiner.Combiner
<ChestBlockEntity, Optional<Container>> ChestBlock.CHEST_COMBINER
Methods in net.minecraft.world.level.block that return ContainerModifier and TypeMethodDescriptionstatic Container
ChestBlock.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 TypeClassDescriptionclass
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
Fields in net.minecraft.world.level.block.entity declared as ContainerMethods in net.minecraft.world.level.block.entity that return ContainerModifier and TypeMethodDescriptionprivate static Container
HopperBlockEntity.getAttachedContainer
(Level pLevel, BlockPos pPos, HopperBlockEntity pBlockEntity) private static Container
HopperBlockEntity.getBlockContainer
(Level pLevel, BlockPos pPos, BlockState pState) static Container
HopperBlockEntity.getContainerAt
(Level pLevel, BlockPos pPos) private static Container
HopperBlockEntity.getContainerAt
(Level pLevel, BlockPos pPos, BlockState pState, double pX, double pY, double pZ) private static Container
HopperBlockEntity.getEntityContainer
(Level pLevel, double pX, double pY, double pZ) private static Container
HopperBlockEntity.getSourceContainer
(Level pLevel, Hopper pHopper, BlockPos pPos, BlockState pState) Methods in net.minecraft.world.level.block.entity with parameters of type ContainerModifier and TypeMethodDescriptionstatic ItemStack
HopperBlockEntity.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 boolean
HopperBlockEntity.addItem
(Container pContainer, ItemEntity pItem) private static boolean
HopperBlockEntity.canPlaceItemInContainer
(Container pContainer, ItemStack pStack, int pSlot, Direction pDirection) boolean
ChiseledBookShelfBlockEntity.canTakeItem
(Container pTarget, int pSlot, ItemStack pStack) Returnstrue
if the given stack can be extracted into the target inventory.boolean
JukeboxBlockEntity.canTakeItem
(Container pTarget, int pSlot, ItemStack pStack) Returnstrue
if the given stack can be extracted into the target inventory.private static boolean
HopperBlockEntity.canTakeItemFromContainer
(Container pSource, Container pDestination, ItemStack pStack, int pSlot, Direction pDirection) private static int[]
private static boolean
HopperBlockEntity.isFullContainer
(Container pContainer, Direction pDirection) private static ItemStack
HopperBlockEntity.tryMoveInItem
(Container pSource, Container pDestination, ItemStack pStack, int pSlot, Direction pDirection) private static boolean
HopperBlockEntity.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 TypeMethodDescriptionvoid
LootTable.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 TypeInterfaceDescriptioninterface
static interface
-
Uses of Container in net.neoforged.neoforge.common
Methods in net.neoforged.neoforge.common with parameters of type ContainerModifier and TypeMethodDescriptionstatic boolean
CommonHooks.onAnvilChange
(AnvilMenu container, ItemStack left, ItemStack right, Container outputSlot, String name, long baseCost, Player player) static int
CommonHooks.onGrindstoneChange
(ItemStack top, ItemStack bottom, Container outputSlot, int xp) static boolean
CommonHooks.onGrindstoneTake
(Container inputSlots, ContainerLevelAccess access, Function<Level, Integer> xpFunction) -
Uses of Container in net.neoforged.neoforge.common.util
Methods in net.neoforged.neoforge.common.util with parameters of type ContainerModifier and TypeMethodDescriptionvoid
FakePlayer.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 void
EventHooks.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 Container
PlayerEvent.ItemCraftedEvent.craftMatrix
Methods 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 Container
SlotItemHandler.emptyInventory
private static final Container
StackCopySlot.emptyInventory
-
Uses of Container in net.neoforged.neoforge.items.wrapper
Fields in net.neoforged.neoforge.items.wrapper declared as ContainerMethods in net.neoforged.neoforge.items.wrapper that return ContainerConstructors in net.neoforged.neoforge.items.wrapper with parameters of type Container -
Uses of Container in net.neoforged.neoforge.oldtest.recipebook
Classes in net.neoforged.neoforge.oldtest.recipebook that implement ContainerMethods in net.neoforged.neoforge.oldtest.recipebook with parameters of type Container