Enum Class DefaultTreeType

java.lang.Object
java.lang.Enum<DefaultTreeType>
studio.magemonkey.fabled.api.classes.DefaultTreeType
All Implemented Interfaces:
Serializable, Comparable<DefaultTreeType>, Constable, TreeType

public enum DefaultTreeType extends Enum<DefaultTreeType> implements TreeType
Types of SkillTrees that are available for classes/skills to use
  • Enum Constant Details

  • Method Details

    • values

      public static DefaultTreeType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DefaultTreeType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getTree

      public InventoryTree getTree(Fabled api, FabledClass parent)
      Retrieves the skill tree depending on the enum value
      Specified by:
      getTree in interface TreeType
      Parameters:
      api - - Fabled reference
      parent - - Parent class to organize
      Returns:
      skill tree instance
    • getByName

      public static DefaultTreeType getByName(String name)
      Retrieves a tree type by enum value name
      Parameters:
      name - enum value name
      Returns:
      corresponding tree type or the default REQUIREMENT if invalid