Uses of Interface
net.minecraft.inventory.Inventory
Packages that use Inventory
Package
Description
Contains utility method classes, various enums, serialization helpers, and
miscellaneous classes.
-
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 final 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 TypeClassDescriptionclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassFields in net.minecraft.block.entity declared as InventoryMethods in net.minecraft.block.entity that return InventoryModifier and TypeMethodDescriptionHopperBlockEntity.getBlockInventoryAt(World world, BlockPos pos, BlockState state) HopperBlockEntity.getEntityInventoryAt(World world, double x, double y, double z) HopperBlockEntity.getInputInventory(World world, Hopper hopper, BlockPos pos, BlockState state) HopperBlockEntity.getInventoryAt(World world, BlockPos pos) HopperBlockEntity.getInventoryAt(World world, BlockPos pos, BlockState state, double x, double y, double z) HopperBlockEntity.getOutputInventory(World world, BlockPos pos, HopperBlockEntity blockEntity) Methods in net.minecraft.block.entity with parameters of type InventoryModifier and TypeMethodDescriptionprivate static booleanHopperBlockEntity.canExtract(Inventory hopperInventory, Inventory fromInventory, ItemStack stack, int slot, Direction facing) private static booleanHopperBlockEntity.canInsert(Inventory inventory, ItemStack stack, int slot, @Nullable Direction side) booleanChiseledBookshelfBlockEntity.canTransferTo(Inventory hopperInventory, int slot, ItemStack stack) Returns whether a hopper can transferstackfromslotto the hopper.booleanJukeboxBlockEntity.canTransferTo(Inventory hopperInventory, int slot, ItemStack stack) Returns whether a hopper can transferstackfromslotto the hopper.private static booleanstatic booleanHopperBlockEntity.extract(Inventory inventory, ItemEntity itemEntity) private static int[]HopperBlockEntity.getAvailableSlots(Inventory inventory, Direction side) private static booleanHopperBlockEntity.isInventoryFull(Inventory inventory, Direction direction) private static ItemStackHopperBlockEntity.transfer(@Nullable Inventory from, Inventory to, ItemStack stack, int slot, @Nullable Direction side) 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.passive
Fields in net.minecraft.entity.passive declared as InventoryMethods in net.minecraft.entity.passive that return InventoryMethods in net.minecraft.entity.passive with parameters of type InventoryModifier and TypeMethodDescriptionbooleanAbstractHorseEntity.areInventoriesDifferent(Inventory inventory) voidAbstractHorseEntity.onInventoryChanged(Inventory sender) voidHorseEntity.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(AbstractHorseEntity horse, Inventory inventory) intPlayerInventory.remove(Predicate<ItemStack> shouldRemove, int maxCount, Inventory craftingInventory) -
Uses of Inventory in net.minecraft.entity.vehicle
Subinterfaces of Inventory in net.minecraft.entity.vehicleClasses in net.minecraft.entity.vehicle that implement InventoryModifier and TypeClassDescriptionclassclassclassclass -
Uses of Inventory in net.minecraft.inventory
Subinterfaces of Inventory in net.minecraft.inventoryModifier and TypeInterfaceDescriptioninterfaceAn inventory whose contents can be supplied from a loot table.interfaceRepresents an inventory that is an input for a recipe, such as crafting table inputs.interfaceA special inventory interface for inventories that expose different slots for different sides, such as furnaces.interfaceAn inventory that holds exactly oneItemStack, at slot0.static interfaceClasses in net.minecraft.inventory that implement InventoryModifier and TypeClassDescriptionclassRepresents an inventory for crafting inputs.classRepresents an inventory for the crafting output slot.classRepresents a combined inventory that is backed by two inventories.classRepresents an inventory used for ender chests.classA generic implementation ofInventory.Fields in net.minecraft.inventory declared as InventoryModifier and TypeFieldDescriptionprivate final InventoryDoubleInventory.firstprivate final InventoryDoubleInventory.secondMethods in net.minecraft.inventory with parameters of type InventoryModifier and TypeMethodDescriptiondefault booleanInventory.canTransferTo(Inventory hopperInventory, int slot, ItemStack stack) Returns whether a hopper can transferstackfromslotto the hopper.booleanReturns whetherinventoryis part of the combined inventory.static StackReferenceCreates a stack reference backed by an index within an inventory.static StackReferenceCreates a stack reference 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, LootContextParameterSet parameters, long seed) -
Uses of Inventory in net.minecraft.screen
Fields in net.minecraft.screen declared as InventoryModifier and TypeFieldDescriptionprivate final InventoryHorseScreenHandler.horseArmorInventoryprotected final InventoryForgingScreenHandler.input(package private) final InventoryGrindstoneScreenHandler.inputprivate final InventoryLoomScreenHandler.inputfinal InventoryStonecutterScreenHandler.inputprivate final InventoryAbstractFurnaceScreenHandler.inventoryprivate final InventoryBrewingStandScreenHandler.inventoryfinal InventoryCartographyTableScreenHandler.inventoryprivate final InventoryEnchantmentScreenHandler.inventoryprivate final InventoryGeneric3x3ContainerScreenHandler.inventoryprivate final InventoryGenericContainerScreenHandler.inventoryprivate final InventoryHopperScreenHandler.inventoryprivate final InventoryHorseScreenHandler.inventoryprivate final InventoryLecternScreenHandler.inventoryprivate final InventoryShulkerBoxScreenHandler.inventoryprivate final InventoryLoomScreenHandler.outputprivate final InventoryBeaconScreenHandler.paymentprivate final InventoryGrindstoneScreenHandler.resultMethods in net.minecraft.screen that return InventoryModifier and TypeMethodDescriptionCrafterScreenHandler.getInputInventory()GenericContainerScreenHandler.getInventory()Methods 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) private static SingleStackRecipeInputStonecutterScreenHandler.createRecipeInput(Inventory inventory) protected voidScreenHandler.dropInventory(PlayerEntity player, Inventory inventory) ScreenHandler.getSlotIndex(Inventory inventory, int index) voidCartographyTableScreenHandler.onContentChanged(Inventory inventory) Called when a slot's content has changed.voidCraftingScreenHandler.onContentChanged(Inventory inventory) Called when a slot's content has changed.voidEnchantmentScreenHandler.onContentChanged(Inventory inventory) Called when a slot's content has changed.voidForgingScreenHandler.onContentChanged(Inventory inventory) Called when a slot's content has changed.voidGrindstoneScreenHandler.onContentChanged(Inventory inventory) Called when a slot's content has changed.voidLoomScreenHandler.onContentChanged(Inventory inventory) Called when a slot's content has changed.voidMerchantScreenHandler.onContentChanged(Inventory inventory) Called when a slot's content has changed.voidPlayerScreenHandler.onContentChanged(Inventory inventory) Called when a slot's content has changed.voidScreenHandler.onContentChanged(Inventory inventory) Called when a slot's content has changed.voidStonecutterScreenHandler.onContentChanged(Inventory inventory) Called when a slot's content has changed.private voidStonecutterScreenHandler.updateInput(Inventory input, ItemStack stack) Constructors in net.minecraft.screen with parameters of type InventoryModifierConstructorDescriptionprotectedAbstractFurnaceScreenHandler(ScreenHandlerType<?> type, RecipeType<? extends AbstractCookingRecipe> recipeType, RecipeBookCategory category, int syncId, 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, AbstractHorseEntity entity, int slotColumnCount) IngredientSlot(BrewingRecipeRegistry brewingRecipeRegistry, 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 InventoryModifierConstructorDescriptionArmorSlot(Inventory inventory, LivingEntity entity, EquipmentSlot equipmentSlot, int index, int x, int y, @Nullable Identifier backgroundSprite) CrafterInputSlot(Inventory inventory, int index, int x, int y, CrafterScreenHandler crafterScreenHandler) CrafterOutputSlot(Inventory inventory, int index, int x, int y) CraftingResultSlot(PlayerEntity player, RecipeInputInventory 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) (package 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(AbstractHorseEntity horse, Inventory inventory) -
Uses of Inventory in net.minecraft.util
Methods in net.minecraft.util with parameters of type InventoryModifier and TypeMethodDescriptionprivate static voidSpawns item entities frominventoryaround the given position.static voidSpawns item entities frominventoryaroundentity's position.static voidSpawns item entities frominventoryaroundpos. -
Uses of Inventory in net.minecraft.village
Classes in net.minecraft.village that implement Inventory