Interface Icon


public interface Icon
  • Method Details

    • getId

      String getId()
      Gets the id used for icon.
      Returns:
      The icon id
    • getTitle

      net.kyori.adventure.text.Component getTitle()
      Gets the icon title.
      Returns:
      The icon title
    • getLore

      net.kyori.adventure.text.Component getLore()
      Gets the icon lore.
      Returns:
      The icon lore
    • getSound

      @Nullable String getSound()
      Gets the icon sound.
      Returns:
      The icon sound
    • getModelData

      @Nullable Integer getModelData()
      Gets the icon model data.
      Returns:
      The icon model data, if available
    • getMeta

      int getMeta()
      Gets the icon meta.
      Returns:
      The icon meta
    • getQuantity

      int getQuantity()
      Gets the icon quantity.
      Returns:
      The icon quantity
    • isEnchanted

      boolean isEnchanted()
      Gets whether this icon is enchanted.
      Returns:
      whether icon is enchanted
    • getIconFlags

      List<IconFlag> getIconFlags()
      Gets the list of IconFlag's.
      Returns:
      An immutable list of icon flags
    • builder

      static Icon.Builder builder()
      Gets a new Icon builder instance for Icon.Builder.
      Returns:
      A new icon builder instance