Class GuiLayout

java.lang.Object
dev.itsharshxd.zentrix.api.gui.GuiLayout

public final class GuiLayout extends Object
Immutable, fully resolved inventory layout.
  • Field Details

  • 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

      @NotNull public @NotNull String id()
    • size

      public int size()
    • rows

      public int rows()
    • hasExplicitSize

      public boolean hasExplicitSize()
    • elements

      @NotNull public @NotNull Map<String,Integer> elements()
    • slot

      public int slot(@NotNull @NotNull String elementId)
    • slot

      public int slot(@NotNull @NotNull String elementId, int automaticSlot)
    • has

      public boolean has(@NotNull @NotNull String elementId)
    • contentSlots

      @NotNull public @org.jetbrains.annotations.NotNull int[] contentSlots()
    • contentSlots

      @NotNull public @org.jetbrains.annotations.NotNull int[] contentSlots(@NotNull @NotNull String listId)
    • pageSize

      public int pageSize(@NotNull @NotNull String listId)
    • pageCount

      public int pageCount(int total)
    • pageCount

      public int pageCount(int total, @NotNull @NotNull String listId)
    • centerOf

      public int centerOf(@NotNull @NotNull String listId)
    • hasFiller

      public boolean hasFiller()
    • fillerMaterial

      @NotNull public @NotNull org.bukkit.Material fillerMaterial()
    • fillerSlots

      @NotNull public @org.jetbrains.annotations.NotNull int[] fillerSlots()