Class GUIItem

java.lang.Object
de.marcely.bedwars.tools.gui.GUIItem
All Implemented Interfaces:
Cloneable

public class GUIItem extends Object implements Cloneable
Represents an interactable item that can be added to a GUI
  • Constructor Details

  • Method Details

    • getItem

      public ItemStack getItem()
      Get the item that will be displayed in the inventory.
      Returns:
      The item that this GUIItem wrap around
    • getListener

      public ClickListener getListener()
      Get the click listener of this item.
      Returns:
      The click listener
    • getAttachement

      @Nullable public @Nullable Object getAttachement()
      Get an optional attachement to this item.

      May hold additional useful information depending on the context.

      Returns:
      The optional attachement (maybe null)
    • setAttachement

      public void setAttachement(@Nullable @Nullable Object attachement)
      Set the optional attachement of this item.

      May hold additional useful information depending on the context.

      Parameters:
      attachement - The optional attachement (maybe null)
    • clone

      public GUIItem clone()
      Overrides:
      clone in class Object