Class RegistrationManager

java.lang.Object
studio.magemonkey.fabled.manager.RegistrationManager

public class RegistrationManager extends Object

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 Classes
    Modifier and Type
    Class
    Description
    static enum 
    The registration modes used by the manager.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new Registration Manager for handling registering new classes or skills.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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.
    validate(Skill skill)
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RegistrationManager

      public RegistrationManager(Fabled api)

      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

      public Skill validate(Skill skill)

      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

      public FabledClass 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.

      Parameters:
      fabledClass - class to validate
      Returns:
      the class if valid, null otherwise
    • isAddingDynamicSkills

      public boolean isAddingDynamicSkills()
      Returns:
      true if registering dynamic skills, false otherwise