Class GUIOption

java.lang.Object
org.kingdoms.gui.GUIOption

public class GUIOption extends Object
A GUI option that is finalized and is now inside the inventory.
See Also:
  • Field Details

    • name

      protected final String name
    • settings

      protected final GUIOptionObject settings
    • runnables

      protected Map<org.bukkit.event.inventory.ClickType,Runnable> runnables
    • conversation

      protected Consumer<String> conversation
    • slots

      protected int[] slots
  • Constructor Details

  • Method Details

    • defineVariables

      public void defineVariables(MessagePlaceholderProvider builder)
    • updateItem

      public void updateItem(org.kingdoms.gui.InteractiveGUI gui, org.bukkit.inventory.ItemStack item)
    • getSettings

      public GUIOptionObject getSettings()
    • getName

      public String getName()
    • clone

      public GUIOption clone()
      Overrides:
      clone in class Object
    • setSlots

      public void setSlots(int[] slots)
    • getSlots

      public int[] getSlots()
    • isReady

      public boolean isReady()
    • getItem

      public org.bukkit.inventory.ItemStack getItem()
    • getRunnables

      public Map<org.bukkit.event.inventory.ClickType,Runnable> getRunnables()
    • setRunnables

      public void setRunnables(Map<org.bukkit.event.inventory.ClickType,Runnable> runnables)
    • getConversation

      public Consumer<String> getConversation()
    • setConversation

      public void setConversation(Consumer<String> conversation)
    • toString

      public String toString()
      Overrides:
      toString in class Object