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 source, BlockPos pos, com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType exception) 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 item) -
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 inventory) -
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 target, int slot, ItemStack stack) Returnstrueif the given stack can be extracted into the target inventory.static intContainerHelper.clearOrCountMatchingItems(Container container, Predicate<ItemStack> itemPredicate, int maxItems, boolean simulate) Clears items from the inventory matching a predicate.voidContainerListener.containerChanged(Container container) 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 level, double x, double y, double z, Container inventory) static voidContainers.dropContents(Level level, BlockPos pos, Container inventory) static voidContainers.dropContents(Level level, Entity entityAt, Container inventory) Constructors in net.minecraft.world with parameters of type ContainerModifierConstructorDescriptionCompoundContainer(Container container1, Container container2) ContainerIterator(Container p_401886_) -
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 inventory, int slot) static SlotAccessSlotAccess.forContainer(Container inventory, int slot, Predicate<ItemStack> stackFilter) -
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 Container -
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> stackPredicate, int maxCount, Container inventory) voidPlayer.openHorseInventory(AbstractHorse horse, Container inventory) -
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 container, int x, int y) private voidChestMenu.addChestGrid(Container container, int x, int y) protected voidAbstractContainerMenu.addInventoryExtendedSlots(Container container, int x, int y) protected voidAbstractContainerMenu.addInventoryHotbarSlots(Container container, int x, int y) protected voidAbstractContainerMenu.addStandardInventorySlots(Container container, int x, int y) protected static voidAbstractContainerMenu.checkContainerSize(Container container, int minSize) protected voidAbstractContainerMenu.clearContainer(Player player, Container container) static intAbstractContainerMenu.getRedstoneSignalFromContainer(Container container) static ChestMenuvoidAbstractContainerMenu.slotsChanged(Container container) Callback for when the crafting matrix is changed.voidCartographyTableMenu.slotsChanged(Container inventory) Callback for when the crafting matrix is changed.voidCraftingMenu.slotsChanged(Container inventory) Callback for when the crafting matrix is changed.voidEnchantmentMenu.slotsChanged(Container inventory) Callback for when the crafting matrix is changed.voidGrindstoneMenu.slotsChanged(Container inventory) Callback for when the crafting matrix is changed.voidInventoryMenu.slotsChanged(Container inventory) Callback for when the crafting matrix is changed.voidItemCombinerMenu.slotsChanged(Container inventory) Callback for when the crafting matrix is changed.voidLoomMenu.slotsChanged(Container inventory) Callback for when the crafting matrix is changed.voidMerchantMenu.slotsChanged(Container inventory) Callback for when the crafting matrix is changed.voidSmithingMenu.slotsChanged(Container p_381709_) voidStonecutterMenu.slotsChanged(Container inventory) 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> acceptedInputs, RecipeBookType recipeBookType, int containerId, Inventory inventory, Container container, ContainerData data) ArmorSlot(Container container, LivingEntity owner, EquipmentSlot slot, int slotIndex, int x, int y, ResourceLocation emptyIcon) BeaconMenu(int containerId, Container container) BeaconMenu(int containerId, Container container, ContainerData beaconData, ContainerLevelAccess access) BlastFurnaceMenu(int containerId, Inventory playerInventory, Container blastFurnaceContainer, ContainerData blastFurnaceData) BrewingStandMenu(int containerId, Inventory playerInventory, Container brewingStandContainer, ContainerData brewingStandData) ChestMenu(MenuType<?> type, int containerId, Inventory playerInventory, Container container, int rows) CrafterSlot(Container container, int slot, int x, int y, CrafterMenu menu) DispenserMenu(int containerId, Inventory playerInventory, Container container) FurnaceFuelSlot(AbstractFurnaceMenu furnaceMenu, Container furnaceContainer, int slot, int xPosition, int yPosition) FurnaceMenu(int containerId, Inventory playerInventory, Container furnaceContainer, ContainerData furnaceData) FurnaceResultSlot(Player player, Container container, int slot, int xPosition, int yPosition) HopperMenu(int containerId, Inventory playerInventory, Container container) HorseInventoryMenu(int containerId, Inventory inventory, Container horseContainer, AbstractHorse horse, int columns) IngredientsSlot(PotionBrewing potionBrewing, Container container, int slot, int x, int y) LecternMenu(int containerId, Container lectern, ContainerData lecternData) 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 player, CraftingContainer craftSlots, Container container, int slot, int xPosition, int yPosition) ShulkerBoxMenu(int containerId, Inventory playerInventory, Container container) ShulkerBoxSlot(Container p_40202_, int p_40203_, int p_40204_, int p_40205_) SmokerMenu(int containerId, Inventory playerInventory, Container smokerContainer, ContainerData smokerData) -
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 chest, BlockState state, Level level, BlockPos pos, boolean override) -
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 TypeClassDescriptionclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassFields 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 level, BlockPos pos, HopperBlockEntity blockEntity) private static ContainerHopperBlockEntity.getBlockContainer(Level level, BlockPos pos, BlockState state) static ContainerHopperBlockEntity.getContainerAt(Level level, BlockPos pos) Deprecated.Use IItemHandler capability instead.private static ContainerHopperBlockEntity.getContainerAt(Level level, BlockPos pos, BlockState state, double x, double y, double z) private static ContainerHopperBlockEntity.getEntityContainer(Level level, double x, double y, double z) private static 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(Container source, Container destination, ItemStack stack, Direction direction) Attempts to place the passed stack in the container, using as many slots as required.static booleanHopperBlockEntity.addItem(Container container, ItemEntity item) private static booleanHopperBlockEntity.canPlaceItemInContainer(Container container, ItemStack stack, int slot, Direction direction) booleanChiseledBookShelfBlockEntity.canTakeItem(Container p_282172_, int p_281387_, ItemStack p_283257_) booleanJukeboxBlockEntity.canTakeItem(Container p_273497_, int p_273168_, ItemStack p_273785_) private static booleanHopperBlockEntity.canTakeItemFromContainer(Container source, Container destination, ItemStack stack, int slot, Direction direction) private static int[]private static booleanHopperBlockEntity.isFullContainer(Container container, Direction direction) private static ItemStackHopperBlockEntity.tryMoveInItem(Container source, Container destination, ItemStack stack, int slot, 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 seed) LootTable.getAvailableSlots(Container inventory, 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, 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 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 final @Nullable ContainerContainerOrHandler.containerThe field for thecontainerrecord component.private static ContainerSlotItemHandler.emptyInventoryprivate static final ContainerStackCopySlot.emptyInventoryMethods in net.neoforged.neoforge.items that return ContainerModifier and TypeMethodDescription@Nullable ContainerContainerOrHandler.container()Returns the value of thecontainerrecord component.Constructors in net.neoforged.neoforge.items with parameters of type ContainerModifierConstructorDescriptionContainerOrHandler(@Nullable Container container, @Nullable IItemHandler itemHandler) Creates an instance of aContainerOrHandlerrecord class. -
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