Interface GlobalRegistry


public interface GlobalRegistry
  • Method Details

    • getSkill

      @Nullable @Nullable Skill getSkill(NamespacedId id)
      Gets a skill in the registry with the given id. The skill must have been already registered before calling this method.
      Parameters:
      id - The NamespacedId of the skill. Use NamespacedId.fromDefault(String) to parse default skill names.
      Returns:
      the skill, or null if not found
    • getSkills

      Collection<Skill> getSkills()
      Gets a collection of all skills registered. Some skills may be not loaded or disabled, use Skill.isEnabled() to check.
      Returns:
      all skills
    • getStat

      @Nullable @Nullable Stat getStat(NamespacedId id)
      Gets a stat in the registry with the given id. The stat must have been already registered before calling this method.
      Parameters:
      id - The NamespacedId of the stat. Use NamespacedId.fromDefault(String) to parse default stat names.
      Returns:
      the stat, or null if not found
    • getStats

      Collection<Stat> getStats()
      Gets a collection of all stats registered. Some stats may be not loaded or disabled, use Stat.isEnabled() to check.
      Returns:
      all stats
    • getTrait

      @Nullable @Nullable Trait getTrait(NamespacedId id)
      Gets a trait in the registry with the given id. The trait must have been already registered before calling this method.
      Parameters:
      id - The NamespacedId of the trait. Use NamespacedId.fromDefault(String) to parse default trait names.
      Returns:
      the stat, or null if not found
    • getTraits

      Collection<Trait> getTraits()
      Gets a collection of all traits registered. Some traits may be not loaded or disabled, use Trait.isEnabled() to check.
      Returns:
      all traits
    • getAbility

      @Nullable @Nullable Ability getAbility(NamespacedId id)
      Gets an ability in the registry with the given id. The ability must have been already registered before calling this method.
      Parameters:
      id - The NamespacedId of the ability. Use NamespacedId.fromDefault(String) to parse default ability names.
      Returns:
      the ability, or null if not found
    • getAbilities

      Collection<Ability> getAbilities()
      Gets a collection of all abilities registered. Some abilities may be not loaded or disabled, use Ability.isEnabled() to check.
      Returns:
      all abilities
    • getManaAbility

      @Nullable @Nullable ManaAbility getManaAbility(NamespacedId id)
      Gets a mana ability in the registry with the given id. This mana ability must have been already registered before calling this method.
      Parameters:
      id - The NamespacedId of the mana ability. Use NamespacedId.fromDefault(String) to parse default mana ability names.
      Returns:
      the stat, or null if not found
    • getManaAbilities

      Collection<ManaAbility> getManaAbilities()
      Gets a collection of all mana abilities registered. Some mana abilities may be not loaded or disabled, use ManaAbilities.isEnabled() to check.
      Returns:
      all mana abilities