Uses of Interface
net.minecraft.world.Container
Package
Description
-
Uses of Container in net.minecraft.client.gui.screens.inventory
ModifierConstructorDescriptionCustomCreativeSlot
(Container p_98633_, int p_98634_, int p_98635_, int p_98636_) -
Uses of Container in net.minecraft.recipebook
-
Uses of Container in net.minecraft.server.commands
Modifier and TypeMethodDescriptionprivate static Container
ItemCommands.getContainer
(CommandSourceStack p_180328_, BlockPos p_180329_, com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType p_180330_) private static Container
LootCommand.getContainer
(CommandSourceStack p_137951_, BlockPos p_137952_) Modifier and TypeMethodDescriptionprivate static boolean
LootCommand.distributeToContainer
(Container p_137886_, ItemStack p_137887_) -
Uses of Container in net.minecraft.server.level
Modifier and TypeMethodDescriptionvoid
ServerPlayer.openHorseInventory
(AbstractHorse p_9059_, Container p_9060_) -
Uses of Container in net.minecraft.world
Modifier and TypeFieldDescriptionprivate final Container
CompoundContainer.container1
private final Container
CompoundContainer.container2
Modifier and TypeMethodDescriptionstatic int
ContainerHelper.clearOrCountMatchingItems
(Container p_18957_, Predicate<ItemStack> p_18958_, int p_18959_, boolean p_18960_) void
ContainerListener.containerChanged
(Container p_18983_) boolean
private static void
Containers.dropContents
(Level p_18987_, double p_18988_, double p_18989_, double p_18990_, Container p_18991_) static void
Containers.dropContents
(Level p_19003_, BlockPos p_19004_, Container p_19005_) static void
Containers.dropContents
(Level p_18999_, Entity p_19000_, Container p_19001_) -
Uses of Container in net.minecraft.world.entity
Modifier and TypeMethodDescriptionstatic SlotAccess
SlotAccess.forContainer
(Container p_147293_, int p_147294_) static SlotAccess
SlotAccess.forContainer
(Container p_147296_, int p_147297_, Predicate<ItemStack> p_147298_) -
Uses of Container in net.minecraft.world.entity.animal.horse
Modifier and TypeMethodDescriptionvoid
AbstractHorse.containerChanged
(Container p_30548_) void
Horse.containerChanged
(Container p_30696_) void
Llama.containerChanged
(Container p_30760_) boolean
AbstractHorse.hasInventoryChanged
(Container p_149512_) -
Uses of Container in net.minecraft.world.entity.player
Modifier and TypeMethodDescriptionint
Inventory.clearOrCountMatchingItems
(Predicate<ItemStack> p_36023_, int p_36024_, Container p_36025_) void
Player.openHorseInventory
(AbstractHorse p_36167_, Container p_36168_) -
Uses of Container in net.minecraft.world.entity.vehicle
Modifier and TypeClassDescriptionclass
class
class
class
-
Uses of Container in net.minecraft.world.inventory
Modifier and TypeClassDescriptionclass
class
class
class
Modifier and TypeFieldDescriptionprivate 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
Modifier and TypeMethodDescriptionprotected static void
AbstractContainerMenu.checkContainerSize
(Container p_38870_, int p_38871_) protected void
AbstractContainerMenu.clearContainer
(Player p_150412_, Container p_150413_) static int
AbstractContainerMenu.getRedstoneSignalFromContainer
(Container p_38939_) private void
StonecutterMenu.setupRecipeList
(Container p_40304_, ItemStack p_40305_) static ChestMenu
void
AbstractContainerMenu.slotsChanged
(Container p_38868_) void
CartographyTableMenu.slotsChanged
(Container p_39147_) void
CraftingMenu.slotsChanged
(Container p_39366_) void
EnchantmentMenu.slotsChanged
(Container p_39461_) void
GrindstoneMenu.slotsChanged
(Container p_39570_) void
InventoryMenu.slotsChanged
(Container p_39710_) void
ItemCombinerMenu.slotsChanged
(Container p_39778_) void
LoomMenu.slotsChanged
(Container p_39863_) void
MerchantMenu.slotsChanged
(Container p_40040_) void
StonecutterMenu.slotsChanged
(Container p_40302_) static ChestMenu
Modifier and TypeMethodDescriptionboolean
AbstractFurnaceMenu.recipeMatches
(Recipe<? super Container> p_38980_) ModifierConstructorDescriptionprotected
AbstractFurnaceMenu
(MenuType<?> p_38966_, RecipeType<? extends AbstractCookingRecipe> p_38967_, RecipeBookType p_38968_, int p_38969_, Inventory p_38970_, Container p_38971_, ContainerData p_38972_) BeaconMenu
(int p_39036_, Container p_39037_) BeaconMenu
(int p_39039_, Container p_39040_, ContainerData p_39041_, ContainerLevelAccess p_39042_) BlastFurnaceMenu
(int p_39082_, Inventory p_39083_, Container p_39084_, ContainerData p_39085_) BrewingStandMenu
(int p_39093_, Inventory p_39094_, Container p_39095_, ContainerData p_39096_) DispenserMenu
(int p_39436_, Inventory p_39437_, Container p_39438_) FurnaceFuelSlot
(AbstractFurnaceMenu p_39520_, Container p_39521_, int p_39522_, int p_39523_, int p_39524_) FurnaceMenu
(int p_39535_, Inventory p_39536_, Container p_39537_, ContainerData p_39538_) FurnaceResultSlot
(Player p_39542_, Container p_39543_, int p_39544_, int p_39545_, int p_39546_) HopperMenu
(int p_39643_, Inventory p_39644_, Container p_39645_) HorseInventoryMenu
(int p_39656_, Inventory p_39657_, Container p_39658_, AbstractHorse p_39659_) IngredientsSlot
(Container p_39115_, int p_39116_, int p_39117_, int p_39118_) LecternMenu
(int p_39824_, Container p_39825_, ContainerData p_39826_) 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_) ResultSlot
(Player p_40166_, CraftingContainer p_40167_, Container p_40168_, int p_40169_, int p_40170_, int p_40171_) ShulkerBoxMenu
(int p_40191_, Inventory p_40192_, Container p_40193_) ShulkerBoxSlot
(Container p_40202_, int p_40203_, int p_40204_, int p_40205_) SmokerMenu
(int p_40277_, Inventory p_40278_, Container p_40279_, ContainerData p_40280_) -
Uses of Container in net.minecraft.world.item.crafting
Modifier and TypeInterfaceDescriptioninterface
static interface
RecipeManager.CachedCheck<C extends Container,
T extends Recipe<C>> Modifier and TypeMethodDescriptionprivate <C extends Container,
T extends Recipe<C>>
Map<ResourceLocation,T> RecipeManager.byType
(RecipeType<T> p_44055_) static <C extends Container,
T extends Recipe<C>>
RecipeManager.CachedCheck<C,T> RecipeManager.createCheck
(RecipeType<T> p_220268_) RecipeManager.getAllRecipesFor
(RecipeType<T> p_44014_) RecipeManager.getRecipeFor
(RecipeType<T> p_44016_, C p_44017_, Level p_44018_) <C extends Container,
T extends Recipe<C>>
Optional<com.mojang.datafixers.util.Pair<ResourceLocation,T>> RecipeManager.getRecipeFor
(RecipeType<T> p_220249_, C p_220250_, Level p_220251_, ResourceLocation p_220252_) RecipeManager.getRecipesFor
(RecipeType<T> p_44057_, C p_44058_, Level p_44059_) <C extends Container,
T extends Recipe<C>>
NonNullList<ItemStack>RecipeManager.getRemainingItemsFor
(RecipeType<T> p_44070_, C p_44071_, Level p_44072_) Modifier and TypeMethodDescriptionboolean
boolean
boolean
-
Uses of Container in net.minecraft.world.level.block
Modifier and TypeClassDescription(package private) static class
(package private) static class
(package private) static class
Modifier and TypeFieldDescriptionprivate static final DoubleBlockCombiner.Combiner<ChestBlockEntity,
Optional<Container>> ChestBlock.CHEST_COMBINER
Modifier and TypeMethodDescriptionstatic Container
ChestBlock.getContainer
(ChestBlock p_51512_, BlockState p_51513_, Level p_51514_, BlockPos p_51515_, boolean p_51516_) -
Uses of Container in net.minecraft.world.level.block.entity
Modifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
class
class
class
class
class
Modifier and TypeFieldDescriptionprivate final RecipeManager.CachedCheck<Container,
? extends AbstractCookingRecipe> AbstractFurnaceBlockEntity.quickCheck
private final RecipeManager.CachedCheck<Container,
CampfireCookingRecipe> CampfireBlockEntity.quickCheck
Modifier and TypeMethodDescriptionprivate static Container
HopperBlockEntity.getAttachedContainer
(Level p_155593_, BlockPos p_155594_, BlockState p_155595_) private static Container
HopperBlockEntity.getContainerAt
(Level p_59348_, double p_59349_, double p_59350_, double p_59351_) static Container
HopperBlockEntity.getContainerAt
(Level p_59391_, BlockPos p_59392_) private static Container
HopperBlockEntity.getSourceContainer
(Level p_155597_, Hopper p_155598_) Modifier and TypeMethodDescriptionstatic ItemStack
HopperBlockEntity.addItem
(Container p_59327_, Container p_59328_, ItemStack p_59329_, Direction p_59330_) static boolean
HopperBlockEntity.addItem
(Container p_59332_, ItemEntity p_59333_) private static boolean
HopperBlockEntity.canPlaceItemInContainer
(Container p_59335_, ItemStack p_59336_, int p_59337_, Direction p_59338_) private static boolean
HopperBlockEntity.canTakeItemFromContainer
(Container p_59381_, ItemStack p_59382_, int p_59383_, Direction p_59384_) private static IntStream
private static boolean
HopperBlockEntity.isEmptyContainer
(Container p_59398_, Direction p_59399_) private static boolean
HopperBlockEntity.isFullContainer
(Container p_59386_, Direction p_59387_) private static ItemStack
HopperBlockEntity.tryMoveInItem
(Container p_59321_, Container p_59322_, ItemStack p_59323_, int p_59324_, Direction p_59325_) private static boolean
HopperBlockEntity.tryTakeInItemFromSlot
(Hopper p_59355_, Container p_59356_, int p_59357_, Direction p_59358_) -
Uses of Container in net.minecraft.world.level.storage.loot
Modifier and TypeMethodDescriptionvoid
LootTable.fill
(Container p_79124_, LootContext p_79125_) LootTable.getAvailableSlots
(Container p_230920_, RandomSource p_230921_) -
Uses of Container in net.minecraftforge.common
Modifier and TypeMethodDescriptionstatic boolean
ForgeHooks.onAnvilChange
(AnvilMenu container, @NotNull ItemStack left, @NotNull ItemStack right, Container outputSlot, String name, int baseCost, Player player) static int
ForgeHooks.onGrindstoneChange
(@NotNull ItemStack top, @NotNull ItemStack bottom, Container outputSlot, int xp) static boolean
ForgeHooks.onGrindstoneTake
(Container inputSlots, ContainerLevelAccess access, Function<Level, Integer> xpFunction) -
Uses of Container in net.minecraftforge.common.crafting
Modifier and TypeInterfaceDescriptioninterface
IShapedRecipe<T extends Container>
Used to mark a recipe that shape matters so that the recipe book and auto crafting picks the correct shape. -
Uses of Container in net.minecraftforge.debug.recipe.recipebook
-
Uses of Container in net.minecraftforge.event
Modifier and TypeMethodDescriptionstatic void
ForgeEventFactory.firePlayerCraftingEvent
(Player player, ItemStack crafted, Container craftMatrix) -
Uses of Container in net.minecraftforge.event.entity.player
Modifier and TypeFieldDescriptionprivate final Container
PlayerEvent.ItemCraftedEvent.craftMatrix
ModifierConstructorDescriptionItemCraftedEvent
(Player player, @NotNull ItemStack crafting, Container craftMatrix) -
Uses of Container in net.minecraftforge.items
-
Uses of Container in net.minecraftforge.items.wrapper