Uses of Interface
net.minecraft.inventory.Inventory
Packages that use Inventory
Package
Description
-
Uses of Inventory in net.minecraft.block
Classes in net.minecraft.block that implement InventoryModifier and TypeClassDescriptionprivate static classprivate static classprivate static classFields in net.minecraft.block with type parameters of type InventoryModifier and TypeFieldDescriptionprivate static DoubleBlockProperties.PropertyRetriever<ChestBlockEntity,Optional<Inventory>>ChestBlock.INVENTORY_RETRIEVERMethods in net.minecraft.block that return InventoryModifier and TypeMethodDescriptionChestBlock.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.entityClasses in net.minecraft.block.entity that implement InventoryModifier and TypeClassDescriptionclassclassclassclassclassclassclassclassclassclassclassclassclassclassFields in net.minecraft.block.entity declared as InventoryMethods in net.minecraft.block.entity that return InventoryModifier 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)Methods in net.minecraft.block.entity with parameters of type InventoryModifier and TypeMethodDescriptionprivate static booleanHopperBlockEntity.canExtract(Inventory inv, ItemStack stack, int slot, Direction facing)private static booleanHopperBlockEntity.canInsert(Inventory inventory, ItemStack stack, int slot, @Nullable Direction side)private static booleanstatic booleanHopperBlockEntity.extract(Inventory inventory, ItemEntity itemEntity)private static IntStreamHopperBlockEntity.getAvailableSlots(Inventory inventory, Direction side)private static intAbstractFurnaceBlockEntity.getCookTime(World world, RecipeType<? extends AbstractCookingRecipe> recipeType, Inventory inventory)private static booleanHopperBlockEntity.insert(World world, BlockPos pos, BlockState state, Inventory inventory)private static booleanHopperBlockEntity.isInventoryEmpty(Inventory inv, Direction facing)private static booleanHopperBlockEntity.isInventoryFull(Inventory inventory, Direction direction)private static ItemStackHopperBlockEntity.transfer(@Nullable Inventory from, Inventory to, ItemStack stack, int slot, @Nullable Direction direction)static ItemStackHopperBlockEntity.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 -
Uses of Inventory in net.minecraft.entity
Methods in net.minecraft.entity that return Inventory -
Uses of Inventory in net.minecraft.entity.mob
Methods in net.minecraft.entity.mob that return Inventory -
Uses of Inventory in net.minecraft.entity.passive
Methods in net.minecraft.entity.passive with parameters of type InventoryModifier and TypeMethodDescriptionbooleanHorseBaseEntity.method_33338(Inventory inventory)voidHorseBaseEntity.onInventoryChanged(Inventory sender)voidHorseEntity.onInventoryChanged(Inventory sender)voidLlamaEntity.onInventoryChanged(Inventory sender) -
Uses of Inventory in net.minecraft.entity.player
Classes in net.minecraft.entity.player that implement InventoryMethods in net.minecraft.entity.player with parameters of type InventoryModifier and TypeMethodDescriptionvoidPlayerEntity.openHorseInventory(HorseBaseEntity horse, Inventory inventory)intPlayerInventory.remove(Predicate<ItemStack> shouldRemove, int maxCount, Inventory craftingInventory) -
Uses of Inventory in net.minecraft.entity.vehicle
Classes in net.minecraft.entity.vehicle that implement InventoryModifier and TypeClassDescriptionclassclassclass -
Uses of Inventory in net.minecraft.inventory
Subinterfaces of Inventory in net.minecraft.inventoryModifier and TypeInterfaceDescriptioninterfaceA special inventory interface for inventories that expose different slots for different sides, such as hoppers.Classes in net.minecraft.inventory that implement InventoryModifier and TypeClassDescriptionclassclassclassclassclassFields in net.minecraft.inventory declared as InventoryModifier and TypeFieldDescriptionprivate InventoryDoubleInventory.firstprivate InventoryDoubleInventory.secondMethods in net.minecraft.inventory with parameters of type InventoryModifier and TypeMethodDescriptionbooleanstatic CommandItemSlotCreates a slot backed by an index within an inventory.static CommandItemSlotCreates a slot backed by an index within an inventory and guarded by a condition for setting stacks into the inventory.voidInventoryChangedListener.onInventoryChanged(Inventory sender)static intInventories.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 -
Uses of Inventory in net.minecraft.loot
Methods in net.minecraft.loot with parameters of type InventoryModifier and TypeMethodDescriptionLootTable.getFreeSlots(Inventory inventory, Random random)voidLootTable.supplyInventory(Inventory inventory, LootContext context) -
Uses of Inventory in net.minecraft.recipe
Classes in net.minecraft.recipe with type parameters of type InventoryMethods in net.minecraft.recipe with type parameters of type InventoryModifier 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.Methods in net.minecraft.recipe with parameters of type InventoryModifier and TypeMethodDescriptionCrafts this recipe.Crafts this recipe.Crafts this recipe.booleanDetermines whether this recipe matches the contents currently placed inside the available crafting grid.booleanDetermines whether this recipe matches the contents currently placed inside the available crafting grid.booleanDetermines whether this recipe matches the contents currently placed inside the available crafting grid. -
Uses of Inventory in net.minecraft.screen
Classes in net.minecraft.screen with type parameters of type InventoryFields in net.minecraft.screen declared as InventoryModifier and TypeFieldDescriptionprotected InventoryForgingScreenHandler.input(package private) InventoryGrindstoneScreenHandler.inputprivate InventoryLoomScreenHandler.inputStonecutterScreenHandler.inputprivate InventoryAbstractFurnaceScreenHandler.inventoryprivate InventoryBrewingStandScreenHandler.inventoryCartographyTableScreenHandler.inventoryprivate InventoryEnchantmentScreenHandler.inventoryprivate InventoryGeneric3x3ContainerScreenHandler.inventoryprivate InventoryGenericContainerScreenHandler.inventoryprivate InventoryHopperScreenHandler.inventoryprivate InventoryHorseScreenHandler.inventoryprivate InventoryLecternScreenHandler.inventoryprivate InventoryShulkerBoxScreenHandler.inventoryprivate InventoryLoomScreenHandler.outputprivate InventoryBeaconScreenHandler.paymentprivate InventoryGrindstoneScreenHandler.resultMethods in net.minecraft.screen that return InventoryMethods in net.minecraft.screen with parameters of type InventoryModifier and TypeMethodDescriptionstatic intScreenHandler.calculateComparatorOutput(@Nullable Inventory inventory)protected static voidChecks 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 voidScreenHandler.dropInventory(PlayerEntity player, Inventory inventory)voidCartographyTableScreenHandler.onContentChanged(Inventory inventory)voidCraftingScreenHandler.onContentChanged(Inventory inventory)voidEnchantmentScreenHandler.onContentChanged(Inventory inventory)voidForgingScreenHandler.onContentChanged(Inventory inventory)voidGrindstoneScreenHandler.onContentChanged(Inventory inventory)voidLoomScreenHandler.onContentChanged(Inventory inventory)voidMerchantScreenHandler.onContentChanged(Inventory inventory)voidPlayerScreenHandler.onContentChanged(Inventory inventory)voidScreenHandler.onContentChanged(Inventory inventory)voidStonecutterScreenHandler.onContentChanged(Inventory inventory)private voidStonecutterScreenHandler.updateInput(Inventory input, ItemStack stack)Method parameters in net.minecraft.screen with type arguments of type InventoryModifier and TypeMethodDescriptionbooleanConstructors in net.minecraft.screen with parameters of type InventoryModifierConstructorDescriptionprotectedAbstractFurnaceScreenHandler(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
Fields in net.minecraft.screen.slot declared as InventoryConstructors in net.minecraft.screen.slot with parameters of type InventoryModifierConstructorDescriptionCraftingResultSlot(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
Methods in net.minecraft.server.command that return InventoryModifier and TypeMethodDescriptionprivate static InventoryLootCommand.getBlockInventory(ServerCommandSource source, BlockPos pos)private static InventoryItemCommand.getInventoryAtPos(ServerCommandSource source, BlockPos pos, com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType exception)Methods in net.minecraft.server.command with parameters of type Inventory -
Uses of Inventory in net.minecraft.server.network
Methods in net.minecraft.server.network with parameters of type InventoryModifier and TypeMethodDescriptionvoidServerPlayerEntity.openHorseInventory(HorseBaseEntity horse, Inventory inventory) -
Uses of Inventory in net.minecraft.util
Methods in net.minecraft.util with parameters of type InventoryModifier and TypeMethodDescriptionprivate static voidstatic voidstatic void -
Uses of Inventory in net.minecraft.village
Classes in net.minecraft.village that implement Inventory