Class Capacity

java.lang.Object
studio.mevera.lotus.api.slot.Capacity

public class Capacity extends Object
Immutable description of a menu's grid dimensions.

Chest-style menus use 9 columns; other inventory types follow their fixed layout.

  • Constructor Details

    • Capacity

      public Capacity(int rows, int columns)
  • Method Details

    • rows

      public int rows()
    • columns

      public int columns()
    • totalSize

      public int totalSize()
    • contains

      public boolean contains(int index)
    • ofRows

      @NotNull public static @NotNull Capacity ofRows(int rows)
    • of

      @NotNull public static @NotNull Capacity of(@NotNull @NotNull org.bukkit.event.inventory.InventoryType type)
    • growing

      @NotNull public static @NotNull Capacity growing(int furthestSlot)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object