Uses of Interface
net.minecraft.inventory.Inventory
Package
Description
-
Uses of Inventory in net.minecraft.block
Modifier and TypeClassDescriptionprivate static class
private static class
private static class
Modifier and TypeFieldDescriptionprivate static DoubleBlockProperties.PropertyRetriever<ChestBlockEntity,Optional<Inventory>>
ChestBlock.INVENTORY_RETRIEVER
Modifier and TypeMethodDescriptionChestBlock.getInventory(ChestBlock block, BlockState state, World world, BlockPos pos, boolean ignoreBlocked)
-
Uses of Inventory in net.minecraft.block.entity
Modifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
class
class
class
class
class
Modifier and TypeMethodDescriptionHopperBlockEntity.getInputInventory(World world, Hopper hopper)
HopperBlockEntity.getInventoryAt(World world, double x, double y, double z)
HopperBlockEntity.getInventoryAt(World world, BlockPos pos)
HopperBlockEntity.getOutputInventory(World world, BlockPos pos, BlockState state)
Modifier and TypeMethodDescriptionprivate 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
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
-
Uses of Inventory in net.minecraft.entity
-
Uses of Inventory in net.minecraft.entity.mob
-
Uses of Inventory in net.minecraft.entity.passive
Modifier and TypeMethodDescriptionboolean
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
Modifier and TypeMethodDescriptionvoid
PlayerEntity.openHorseInventory(HorseBaseEntity horse, Inventory inventory)
int
PlayerInventory.remove(Predicate<ItemStack> shouldRemove, int maxCount, Inventory craftingInventory)
-
Uses of Inventory in net.minecraft.entity.vehicle
Modifier and TypeClassDescriptionclass
class
class
-
Uses of Inventory in net.minecraft.inventory
Modifier and TypeInterfaceDescriptioninterface
A special inventory interface for inventories that expose different slots for different sides, such as hoppers.Modifier and TypeClassDescriptionclass
class
class
class
class
Modifier and TypeFieldDescriptionprivate Inventory
DoubleInventory.first
private Inventory
DoubleInventory.second
Modifier and TypeMethodDescriptionboolean
static CommandItemSlot
Creates a slot backed by an index within an inventory.static CommandItemSlot
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. -
Uses of Inventory in net.minecraft.loot
Modifier and TypeMethodDescriptionLootTable.getFreeSlots(Inventory inventory, Random random)
void
LootTable.supplyInventory(Inventory inventory, LootContext context)
-
Uses of Inventory in net.minecraft.recipe
Modifier and TypeMethodDescriptionRecipeManager.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)
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)
RecipeManager.listAllOfType(RecipeType<T> recipeType)
Creates a list of all recipes of the given type.Modifier and TypeMethodDescriptionCrafts this recipe.Crafts this recipe.Crafts this recipe.boolean
Determines whether this recipe matches the contents currently placed inside the available crafting grid.boolean
Determines whether this recipe matches the contents currently placed inside the available crafting grid.boolean
Determines whether this recipe matches the contents currently placed inside the available crafting grid. -
Uses of Inventory in net.minecraft.screen
Modifier and TypeFieldDescriptionprotected Inventory
ForgingScreenHandler.input
(package private) Inventory
GrindstoneScreenHandler.input
private Inventory
LoomScreenHandler.input
StonecutterScreenHandler.input
private Inventory
AbstractFurnaceScreenHandler.inventory
private Inventory
BrewingStandScreenHandler.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
Modifier and TypeMethodDescriptionstatic int
ScreenHandler.calculateComparatorOutput(@Nullable Inventory inventory)
protected static void
Checks that the size of the provided inventory is at least as large as theexpectedSize
.GenericContainerScreenHandler.createGeneric9x3(int syncId, PlayerInventory playerInventory, Inventory inventory)
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)
Modifier and TypeMethodDescriptionboolean
ModifierConstructorDescriptionprotected
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)
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
ModifierConstructorDescriptionCraftingResultSlot(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)
-
Uses of Inventory in net.minecraft.server.command
Modifier and TypeMethodDescriptionprivate static Inventory
LootCommand.getBlockInventory(ServerCommandSource source, BlockPos pos)
private static Inventory
ItemCommand.getInventoryAtPos(ServerCommandSource source, BlockPos pos, com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType exception)
-
Uses of Inventory in net.minecraft.server.network
Modifier and TypeMethodDescriptionvoid
ServerPlayerEntity.openHorseInventory(HorseBaseEntity horse, Inventory inventory)
-
Uses of Inventory in net.minecraft.util
Modifier and TypeMethodDescriptionprivate static void
static void
static void
-
Uses of Inventory in net.minecraft.village