Class SkilltreeIcon
java.lang.Object
de.Keyle.MyPet.api.skill.skilltree.SkilltreeIcon
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull StringMaterial the icon is drawn as.booleanWhether the icon is drawn with the enchantment glint.setGlowing(boolean glowing) Whether the icon is drawn with the enchantment glint.setMaterial(@NonNull String material) Material the icon is drawn as.
-
Field Details
-
material
Material the icon is drawn as. -
glowing
protected boolean glowingWhether 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
Material the icon is drawn as.- Returns:
- the material name
-
setMaterial
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:
trueif the icon glows
-
setGlowing
Whether the icon is drawn with the enchantment glint.- Parameters:
glowing-trueto glow- Returns:
this.
-