Class Tribe

java.lang.Object
org.woftnw.eof.Tribe

public class Tribe extends Object
Represents a dragon tribe.
  • Constructor Details

    • Tribe

      public Tribe(String tribeName, String simpleName, net.kyori.adventure.text.format.TextColor color)
  • Method Details

    • getTribeName

      public String getTribeName()
      Get the name of the tribe.

      Example: MUDWING.getTribeName() // "MudWing"

      Returns:
      The tribe name.
    • getSimpleName

      public String getSimpleName()
      Get the simple name of the tribe.

      Example: MUDWING.getSimpleName() // "Mud"

      Returns:
      The simple name.
    • getTextColor

      public net.kyori.adventure.text.format.TextColor getTextColor()
      Get the text color of a tribe to be used in a TextComponent.
      Returns:
      The TextColor of the tribe.
    • getPDCValue

      public String getPDCValue()
      Get the value that is used in the persistent data container.
      Returns:
      The value for the PDC.
    • getAttributes

      public Attribute[] getAttributes()
      Get the attributes of this tribe.
      Returns:
      The attributes this tribe has.
    • addAttribute

      public void addAttribute(Attribute attribute)
    • getAbilities

      public Ability[] getAbilities()
      Get the abilities of this tribe.
      Returns:
      The abilities this tribe has.
    • addAbility

      public void addAbility(Ability ability)
    • getActiveAbilities

      public List<ActiveAbility> getActiveAbilities()
      Get the active abilities of this tribe.
      Returns:
      The active abilities this tribe has.