Class SkilltreeIcon

java.lang.Object
de.Keyle.MyPet.api.skill.skilltree.SkilltreeIcon

public class SkilltreeIcon extends Object
Represents the visual icon displayed for a Skilltree in inventory-based selection GUIs.

The icon is defined by a Bukkit Material name and an optional glowing enchantment effect. Both properties support Lombok's fluent chaining (via @Accessors(chain = true)).

Defaults to an oak sapling (Material.OAK_SAPLING) with no glow.

  • Field Details

    • material

      @NonNull protected @NonNull String material
      Material the icon is drawn as.
    • glowing

      protected boolean glowing
      Whether the icon is drawn with the enchantment glint.
  • Constructor Details

    • SkilltreeIcon

      public SkilltreeIcon()
      Creates an icon showing an oak sapling without a glint.
  • Method Details

    • getMaterial

      @NonNull public @NonNull String getMaterial()
      Material the icon is drawn as.
      Returns:
      the material name
    • setMaterial

      public SkilltreeIcon setMaterial(@NonNull @NonNull String material)
      Material the icon is drawn as.
      Parameters:
      material - the material name
      Returns:
      this.
    • isGlowing

      public boolean isGlowing()
      Whether the icon is drawn with the enchantment glint.
      Returns:
      true if the icon glows
    • setGlowing

      public SkilltreeIcon setGlowing(boolean glowing)
      Whether the icon is drawn with the enchantment glint.
      Parameters:
      glowing - true to glow
      Returns:
      this.