Package studio.mevera.lotus.api.slot
Class Capacity
java.lang.Object
studio.mevera.lotus.api.slot.Capacity
Immutable description of a menu's grid dimensions.
Chest-style menus use 9 columns; other inventory types follow their fixed layout.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcolumns()booleancontains(int index) booleanstatic @NotNull Capacitygrowing(int furthestSlot) inthashCode()static @NotNull Capacityof(@NotNull org.bukkit.event.inventory.InventoryType type) static @NotNull CapacityofRows(int rows) introws()toString()int
-
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
-
of
@NotNull public static @NotNull Capacity of(@NotNull @NotNull org.bukkit.event.inventory.InventoryType type) -
growing
-
equals
-
hashCode
public int hashCode() -
toString
-