Uses of Interface
net.minecraft.inventory.Inventory
-
Uses of Inventory in net.minecraft.block
Classes in net.minecraft.block that implement Inventory Modifier and Type Class Description (package private) static class
ComposterBlock.ComposterInventory
(package private) static class
ComposterBlock.DummyInventory
(package private) static class
ComposterBlock.FullComposterInventory
Fields in net.minecraft.block with type parameters of type Inventory Modifier and Type Field Description private static DoubleBlockProperties.PropertyRetriever<ChestBlockEntity,Optional<Inventory>>
ChestBlock. INVENTORY_RETRIEVER
Methods in net.minecraft.block that return Inventory Modifier and Type Method Description static @Nullable Inventory
ChestBlock. getInventory(ChestBlock block, BlockState state, World world, BlockPos pos, boolean ignoreBlocked)
-
Uses of Inventory in net.minecraft.block.entity
Subinterfaces of Inventory in net.minecraft.block.entity Modifier and Type Interface Description interface
Hopper
Classes in net.minecraft.block.entity that implement Inventory Modifier and Type Class Description class
AbstractFurnaceBlockEntity
class
BarrelBlockEntity
class
BlastFurnaceBlockEntity
class
BrewingStandBlockEntity
class
ChestBlockEntity
class
DispenserBlockEntity
class
DropperBlockEntity
class
FurnaceBlockEntity
class
HopperBlockEntity
class
LockableContainerBlockEntity
class
LootableContainerBlockEntity
class
ShulkerBoxBlockEntity
class
SmokerBlockEntity
class
TrappedChestBlockEntity
Fields in net.minecraft.block.entity declared as Inventory Modifier and Type Field Description private Inventory
LecternBlockEntity. inventory
Methods in net.minecraft.block.entity that return Inventory Modifier and Type Method Description private static @Nullable Inventory
HopperBlockEntity. getInputInventory(World world, Hopper hopper)
private static @Nullable Inventory
HopperBlockEntity. getInventoryAt(World world, double x, double y, double z)
static @Nullable Inventory
HopperBlockEntity. getInventoryAt(World world, BlockPos pos)
private static @Nullable Inventory
HopperBlockEntity. getOutputInventory(World world, BlockPos pos, BlockState state)
Methods in net.minecraft.block.entity with parameters of type Inventory Modifier and Type Method Description private static boolean
HopperBlockEntity. canExtract(Inventory inv, ItemStack stack, int slot, Direction facing)
private static boolean
HopperBlockEntity. canInsert(Inventory inventory, ItemStack stack, int slot, @Nullable Direction side)
private static boolean
HopperBlockEntity. extract(Hopper hopper, Inventory inventory, int slot, Direction side)
static boolean
HopperBlockEntity. extract(Inventory inventory, ItemEntity itemEntity)
private static IntStream
HopperBlockEntity. getAvailableSlots(Inventory inventory, Direction side)
private static int
AbstractFurnaceBlockEntity. getCookTime(World world, RecipeType<? extends AbstractCookingRecipe> recipeType, Inventory inventory)
private static boolean
HopperBlockEntity. insert(World world, BlockPos pos, BlockState state, Inventory inventory)
private static boolean
HopperBlockEntity. isInventoryEmpty(Inventory inv, Direction facing)
private static boolean
HopperBlockEntity. isInventoryFull(Inventory inventory, Direction direction)
private static ItemStack
HopperBlockEntity. transfer(@Nullable Inventory from, Inventory to, ItemStack stack, int slot, @Nullable Direction direction)
static ItemStack
HopperBlockEntity. transfer(@Nullable Inventory from, Inventory to, ItemStack stack, @Nullable Direction side)
-
Uses of Inventory in net.minecraft.client.gui.screen.ingame
Constructors in net.minecraft.client.gui.screen.ingame with parameters of type Inventory Constructor Description LockableSlot(Inventory inventory, int index, int x, int y)
-
Uses of Inventory in net.minecraft.entity
Methods in net.minecraft.entity that return Inventory Modifier and Type Method Description Inventory
InventoryOwner. getInventory()
-
Uses of Inventory in net.minecraft.entity.mob
Methods in net.minecraft.entity.mob that return Inventory Modifier and Type Method Description Inventory
PiglinEntity. getInventory()
Inventory
PillagerEntity. getInventory()
-
Uses of Inventory in net.minecraft.entity.passive
Methods in net.minecraft.entity.passive with parameters of type Inventory Modifier and Type Method Description boolean
HorseBaseEntity. method_33338(Inventory inventory)
void
HorseBaseEntity. onInventoryChanged(Inventory sender)
void
HorseEntity. onInventoryChanged(Inventory sender)
void
LlamaEntity. onInventoryChanged(Inventory sender)
-
Uses of Inventory in net.minecraft.entity.player
Classes in net.minecraft.entity.player that implement Inventory Modifier and Type Class Description class
PlayerInventory
Methods in net.minecraft.entity.player with parameters of type Inventory Modifier and Type Method Description void
PlayerEntity. openHorseInventory(HorseBaseEntity horse, Inventory inventory)
int
PlayerInventory. remove(Predicate<ItemStack> shouldRemove, int maxCount, Inventory craftingInventory)
-
Uses of Inventory in net.minecraft.entity.vehicle
Classes in net.minecraft.entity.vehicle that implement Inventory Modifier and Type Class Description class
ChestMinecartEntity
class
HopperMinecartEntity
class
StorageMinecartEntity
-
Uses of Inventory in net.minecraft.inventory
Subinterfaces of Inventory in net.minecraft.inventory Modifier and Type Interface Description interface
SidedInventory
A special inventory interface for inventories that expose different slots for different sides, such as hoppers.Classes in net.minecraft.inventory that implement Inventory Modifier and Type Class Description class
CraftingInventory
class
CraftingResultInventory
class
DoubleInventory
class
EnderChestInventory
class
SimpleInventory
Fields in net.minecraft.inventory declared as Inventory Modifier and Type Field Description private Inventory
DoubleInventory. first
private Inventory
DoubleInventory. second
Methods in net.minecraft.inventory with parameters of type Inventory Modifier and Type Method Description boolean
DoubleInventory. isPart(Inventory inventory)
static CommandItemSlot
CommandItemSlot. of(Inventory inventory, int index)
Creates a slot backed by an index within an inventory.static CommandItemSlot
CommandItemSlot. of(Inventory inventory, int index, Predicate<ItemStack> stackFilter)
Creates a slot backed by an index within an inventory and guarded by a condition for setting stacks into the inventory.void
InventoryChangedListener. onInventoryChanged(Inventory sender)
static int
Inventories. remove(Inventory inventory, Predicate<ItemStack> shouldRemove, int maxCount, boolean dryRun)
Removes a number, not exceedingmaxCount
, of items from an inventory based on a predicate and returns that number.Constructors in net.minecraft.inventory with parameters of type Inventory Constructor Description DoubleInventory(Inventory first, Inventory second)
-
Uses of Inventory in net.minecraft.loot
Methods in net.minecraft.loot with parameters of type Inventory Modifier and Type Method Description private List<Integer>
LootTable. getFreeSlots(Inventory inventory, Random random)
void
LootTable. supplyInventory(Inventory inventory, LootContext context)
-
Uses of Inventory in net.minecraft.recipe
Classes in net.minecraft.recipe with type parameters of type Inventory Modifier and Type Class Description class
InputSlotFiller<C extends Inventory>
interface
Recipe<C extends Inventory>
Methods in net.minecraft.recipe with type parameters of type Inventory Modifier and Type Method Description default <C extends Inventory>
Optional<T>RecipeType. get(Recipe<C> recipe, World world, C inventory)
<C extends Inventory, T extends Recipe<C>>
List<T>RecipeManager. getAllMatches(RecipeType<T> type, C inventory, World world)
private <C extends Inventory, T extends Recipe<C>>
Map<Identifier,Recipe<C>>RecipeManager. getAllOfType(RecipeType<T> type)
<C extends Inventory, T extends Recipe<C>>
Optional<T>RecipeManager. getFirstMatch(RecipeType<T> type, C inventory, World world)
<C extends Inventory, T extends Recipe<C>>
DefaultedList<ItemStack>RecipeManager. getRemainingStacks(RecipeType<T> recipeType, C inventory, World world)
<C extends Inventory, T extends Recipe<C>>
List<T>RecipeManager. listAllOfType(RecipeType<T> recipeType)
Creates a list of all recipes of the given type.Methods in net.minecraft.recipe with parameters of type Inventory Modifier and Type Method Description ItemStack
AbstractCookingRecipe. craft(Inventory inv)
ItemStack
CuttingRecipe. craft(Inventory inv)
ItemStack
SmithingRecipe. craft(Inventory inv)
boolean
AbstractCookingRecipe. matches(Inventory inv, World world)
boolean
SmithingRecipe. matches(Inventory inv, World world)
boolean
StonecuttingRecipe. matches(Inventory inv, World world)
-
Uses of Inventory in net.minecraft.screen
Classes in net.minecraft.screen with type parameters of type Inventory Modifier and Type Class Description class
AbstractRecipeScreenHandler<C extends Inventory>
Fields in net.minecraft.screen declared as Inventory Modifier and Type Field Description protected Inventory
ForgingScreenHandler. input
private Inventory
GrindstoneScreenHandler. input
private Inventory
LoomScreenHandler. input
Inventory
StonecutterScreenHandler. input
private Inventory
AbstractFurnaceScreenHandler. inventory
private Inventory
BrewingStandScreenHandler. inventory
Inventory
CartographyTableScreenHandler. inventory
private Inventory
EnchantmentScreenHandler. inventory
private Inventory
Generic3x3ContainerScreenHandler. inventory
private Inventory
GenericContainerScreenHandler. inventory
private Inventory
HopperScreenHandler. inventory
private Inventory
HorseScreenHandler. inventory
private Inventory
LecternScreenHandler. inventory
private Inventory
ShulkerBoxScreenHandler. inventory
private Inventory
LoomScreenHandler. output
private Inventory
BeaconScreenHandler. payment
private Inventory
GrindstoneScreenHandler. result
Methods in net.minecraft.screen that return Inventory Modifier and Type Method Description Inventory
GenericContainerScreenHandler. getInventory()
Methods in net.minecraft.screen with parameters of type Inventory Modifier and Type Method Description static int
ScreenHandler. calculateComparatorOutput(@Nullable Inventory inventory)
protected static void
ScreenHandler. checkSize(Inventory inventory, int expectedSize)
Checks that the size of the provided inventory is at least as large as theexpectedSize
.static GenericContainerScreenHandler
GenericContainerScreenHandler. createGeneric9x3(int syncId, PlayerInventory playerInventory, Inventory inventory)
static GenericContainerScreenHandler
GenericContainerScreenHandler. createGeneric9x6(int syncId, PlayerInventory playerInventory, Inventory inventory)
protected void
ScreenHandler. dropInventory(PlayerEntity player, Inventory inventory)
void
CartographyTableScreenHandler. onContentChanged(Inventory inventory)
void
CraftingScreenHandler. onContentChanged(Inventory inventory)
void
EnchantmentScreenHandler. onContentChanged(Inventory inventory)
void
ForgingScreenHandler. onContentChanged(Inventory inventory)
void
GrindstoneScreenHandler. onContentChanged(Inventory inventory)
void
LoomScreenHandler. onContentChanged(Inventory inventory)
void
MerchantScreenHandler. onContentChanged(Inventory inventory)
void
PlayerScreenHandler. onContentChanged(Inventory inventory)
void
ScreenHandler. onContentChanged(Inventory inventory)
void
StonecutterScreenHandler. onContentChanged(Inventory inventory)
private void
StonecutterScreenHandler. updateInput(Inventory input, ItemStack stack)
Method parameters in net.minecraft.screen with type arguments of type Inventory Modifier and Type Method Description boolean
AbstractFurnaceScreenHandler. matches(Recipe<? super Inventory> recipe)
Constructors in net.minecraft.screen with parameters of type Inventory Constructor Description AbstractFurnaceScreenHandler(ScreenHandlerType<?> type, RecipeType<? extends AbstractCookingRecipe> recipeType, RecipeBookCategory recipeBookCategory, int int2, PlayerInventory playerInventory, Inventory inventory, PropertyDelegate propertyDelegate)
BeaconScreenHandler(int syncId, Inventory inventory)
BeaconScreenHandler(int syncId, Inventory inventory, PropertyDelegate propertyDelegate, ScreenHandlerContext context)
BlastFurnaceScreenHandler(int syncId, PlayerInventory playerInventory, Inventory inventory, PropertyDelegate propertyDelegate)
BrewingStandScreenHandler(int syncId, PlayerInventory playerInventory, Inventory inventory, PropertyDelegate propertyDelegate)
FuelSlot(Inventory inventory, int index, int x, int y)
FurnaceScreenHandler(int syncId, PlayerInventory playerInventory, Inventory inventory, PropertyDelegate propertyDelegate)
Generic3x3ContainerScreenHandler(int syncId, PlayerInventory playerInventory, Inventory inventory)
GenericContainerScreenHandler(ScreenHandlerType<?> type, int syncId, PlayerInventory playerInventory, Inventory inventory, int rows)
HopperScreenHandler(int syncId, PlayerInventory playerInventory, Inventory inventory)
HorseScreenHandler(int syncId, PlayerInventory playerInventory, Inventory inventory, HorseBaseEntity entity)
IngredientSlot(Inventory inventory, int index, int x, int y)
LecternScreenHandler(int syncId, Inventory inventory, PropertyDelegate propertyDelegate)
PaymentSlot(Inventory inventory, int index, int x, int y)
PotionSlot(Inventory inventory, int index, int x, int y)
ShulkerBoxScreenHandler(int syncId, PlayerInventory playerInventory, Inventory inventory)
SmokerScreenHandler(int syncId, PlayerInventory playerInventory, Inventory inventory, PropertyDelegate propertyDelegate)
-
Uses of Inventory in net.minecraft.screen.slot
Fields in net.minecraft.screen.slot declared as Inventory Modifier and Type Field Description Inventory
Slot. inventory
Constructors in net.minecraft.screen.slot with parameters of type Inventory Constructor Description CraftingResultSlot(PlayerEntity player, CraftingInventory input, Inventory inventory, int index, int x, int y)
FurnaceFuelSlot(AbstractFurnaceScreenHandler handler, Inventory inventory, int index, int x, int y)
FurnaceOutputSlot(PlayerEntity player, Inventory inventory, int index, int x, int y)
ShulkerBoxSlot(Inventory inventory, int index, int x, int y)
Slot(Inventory inventory, int index, int x, int y)
-
Uses of Inventory in net.minecraft.server.command
Methods in net.minecraft.server.command that return Inventory Modifier and Type Method Description private static Inventory
LootCommand. getBlockInventory(ServerCommandSource source, BlockPos pos)
private static Inventory
ItemCommand. getInventoryAtPos(ServerCommandSource source, BlockPos pos, com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType exception)
Methods in net.minecraft.server.command with parameters of type Inventory Modifier and Type Method Description private static boolean
LootCommand. insert(Inventory inventory, ItemStack stack)
-
Uses of Inventory in net.minecraft.server.network
Methods in net.minecraft.server.network with parameters of type Inventory Modifier and Type Method Description void
ServerPlayerEntity. openHorseInventory(HorseBaseEntity horse, Inventory inventory)
-
Uses of Inventory in net.minecraft.util
Methods in net.minecraft.util with parameters of type Inventory Modifier and Type Method Description private static void
ItemScatterer. spawn(World world, double x, double y, double z, Inventory inventory)
static void
ItemScatterer. spawn(World world, Entity entity, Inventory inventory)
static void
ItemScatterer. spawn(World world, BlockPos pos, Inventory inventory)
-
Uses of Inventory in net.minecraft.village
Classes in net.minecraft.village that implement Inventory Modifier and Type Class Description class
MerchantInventory