Interface Inventory

All Known Subinterfaces:
ArmorPart, BasicEntityInventory<E>, BlockAttachedInventory, ChestInventory, CraftGrid, CraftingInventory, DispenserBasedInventory, DispenserInventory, DropperInventory, EntityInventorySnapshot<E>, FurnaceInventory, Grid2x2, Grid3x3, Hotbar, Inventory.Parent, InventoryPart, InventoryPartSnapshot, InventorySnapshot, LiveChestInventory, LiveDispenserBasedInventory, LiveDispenserInventory, LiveDropperInventory, LiveEntityInventory<E>, LiveFurnaceInventory, LiveInventory<S>, LiveInventory.LiveBlockInventory, LiveInventory.LiveExactInventory, LivePlayerInventory, LiveUnknownBlockAttachedInventory, LiveZombieInventory<Z>, MainPlayerInventory, PlayerInventory, PositionableInventory<N>, PositionableInventory.BlockPositionableInventory, PositionableInventory.ExactPositionableInventory, Slot, UnknownBlockAttachedInventory, UnknownBlockAttachedInventorySnapshot, ZombieInventory<Z>
All Known Implementing Classes:
ArmorPartSnapshot, ChestInventorySnapshot, CraftGridSnapshot, DispenserBasedInventorySnapshot, DispenserInventorySnapshot, DropperInventorySnapshot, FurnaceInventorySnapshot, Grid2x2Snapshot, Grid3x3Snapshot, HotbarSnapshot, MainPlayerInventorySnapshot, PlayerInventorySnapshot, SlotSnapshot, UnknownInventorySnapshot, ZombieInventorySnapshot

public interface Inventory
  • Method Details

    • getSlots

      @Deprecated(forRemoval=true) default Set<Slot> getSlots()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getItemSlots

      Stream<Slot> getItemSlots()
    • getSlot

      Optional<Slot> getSlot(int slotPos)
    • createSnapshot

      Inventory createSnapshot()
    • getSlotCount

      default int getSlotCount()