Interface GlobalRegistry
public interface GlobalRegistry
-
Method Summary
Modifier and TypeMethodDescriptionGets a collection of all abilities registered.@Nullable Ability
Gets an ability in the registry with the given id.Gets a collection of all mana abilities registered.@Nullable ManaAbility
Gets a mana ability in the registry with the given id.@Nullable Skill
getSkill
(NamespacedId id) Gets a skill in the registry with the given id.Gets a collection of all skills registered.@Nullable Stat
getStat
(NamespacedId id) Gets a stat in the registry with the given id.getStats()
Gets a collection of all stats registered.@Nullable Trait
getTrait
(NamespacedId id) Gets a trait in the registry with the given id.Gets a collection of all traits registered.
-
Method Details
-
getSkill
Gets a skill in the registry with the given id. The skill must have been already registered before calling this method.- Parameters:
id
- TheNamespacedId
of the skill. UseNamespacedId.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, useSkill.isEnabled()
to check.- Returns:
- all skills
-
getStat
Gets a stat in the registry with the given id. The stat must have been already registered before calling this method.- Parameters:
id
- TheNamespacedId
of the stat. UseNamespacedId.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, useStat.isEnabled()
to check.- Returns:
- all stats
-
getTrait
Gets a trait in the registry with the given id. The trait must have been already registered before calling this method.- Parameters:
id
- TheNamespacedId
of the trait. UseNamespacedId.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, useTrait.isEnabled()
to check.- Returns:
- all traits
-
getAbility
Gets an ability in the registry with the given id. The ability must have been already registered before calling this method.- Parameters:
id
- TheNamespacedId
of the ability. UseNamespacedId.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, useAbility.isEnabled()
to check.- Returns:
- all abilities
-
getManaAbility
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
- TheNamespacedId
of the mana ability. UseNamespacedId.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, useManaAbilities.isEnabled()
to check.- Returns:
- all mana abilities
-