Package studio.magemonkey.fabled.manager
Class RegistrationManager
java.lang.Object
studio.magemonkey.fabled.manager.RegistrationManager
Skill API Registration Manager.
This handles loading skill and class data from cofiguration files and fetching them from other plugins while validating everything to make sure it should be added.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
The registration modes used by the manager. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new Registration Manager for handling registering new classes or skills. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Initializes the registration manager, fetching skills and classes from configuration files and other plugins.boolean
validate
(FabledClass fabledClass) Validates a class, making sure it is being registered during the appropriate time, it isn't null, and it doesn't conflict with other registered classes.Validates a skill, making sure it is being registered during the appropriate time, it isn't null, and it doesn't conflict with other registered skills.
-
Constructor Details
-
RegistrationManager
Creates a new Registration Manager for handling registering new classes or skills.
- Parameters:
api
- Fabled reference
-
-
Method Details
-
initialize
public void initialize()Initializes the registration manager, fetching skills and classes from configuration files and other plugins. -
validate
Validates a skill, making sure it is being registered during the appropriate time, it isn't null, and it doesn't conflict with other registered skills.
- Parameters:
skill
- skill to validate- Returns:
- the class if valid, null otherwise
-
validate
Validates a class, making sure it is being registered during the appropriate time, it isn't null, and it doesn't conflict with other registered classes.
- Parameters:
fabledClass
- class to validate- Returns:
- the class if valid, null otherwise
-
isAddingDynamicSkills
public boolean isAddingDynamicSkills()- Returns:
- true if registering dynamic skills, false otherwise
-