Package dev.itsharshxd.zentrix.api.gui
Class GuiLayout
java.lang.Object
dev.itsharshxd.zentrix.api.gui.GuiLayout
Immutable, fully resolved inventory layout.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint@org.jetbrains.annotations.NotNull int[]@org.jetbrains.annotations.NotNull int[]contentSlots(@NotNull String listId) elements()@NotNull org.bukkit.Material@org.jetbrains.annotations.NotNull int[]booleanbooleanboolean@NotNull Stringid()intpageCount(int total) intintintrows()intsize()intint
-
Field Details
-
HIDDEN
public static final int HIDDEN- See Also:
-
AUTO
public static final int AUTO- See Also:
-
-
Constructor Details
-
GuiLayout
public GuiLayout(@NotNull @NotNull String id, int size, boolean explicitSize, @NotNull @NotNull Map<String, Integer> elements, @NotNull @NotNull Map<String, int[]> contentLists, boolean fillerEnabled, @NotNull @NotNull org.bukkit.Material fillerMaterial, @NotNull @org.jetbrains.annotations.NotNull int[] fillerSlots)
-
-
Method Details
-
id
-
size
public int size() -
rows
public int rows() -
hasExplicitSize
public boolean hasExplicitSize() -
elements
-
slot
-
slot
-
has
-
contentSlots
@NotNull public @org.jetbrains.annotations.NotNull int[] contentSlots() -
contentSlots
@NotNull public @org.jetbrains.annotations.NotNull int[] contentSlots(@NotNull @NotNull String listId) -
pageSize
-
pageCount
public int pageCount(int total) -
pageCount
-
centerOf
-
hasFiller
public boolean hasFiller() -
fillerMaterial
@NotNull public @NotNull org.bukkit.Material fillerMaterial() -
fillerSlots
@NotNull public @org.jetbrains.annotations.NotNull int[] fillerSlots()
-