Interface InventorySize

All Known Implementing Classes:
BukkitInventorySize, MinestomInventorySize

public interface InventorySize
The size of the inventory
  • Method Details

    • getSize

      int getSize()
      Get the size of the inventory
      Returns:
      the size
    • getSlotPerRow

      default int getSlotPerRow()
      Get the slot per row
      Returns:
      the slot per row
    • getSlots

      default IntStream getSlots()
      Get the slots
      Returns:
      the slots
    • toPosition

      default InventoryPosition toPosition(int slot)
      Convert the slot to the position
      Parameters:
      slot - the slot
      Returns:
      the position
    • toSlots

      default IntStream toSlots(Stream<InventoryPosition> positions)
      Convert the position to the slot
      Parameters:
      positions - the positions
      Returns:
      the slots