Interface SourceManager


public interface SourceManager
  • Method Details

    • getSourcesOfType

      @NotNull <T extends XpSource> @NotNull List<SkillSource<T>> getSourcesOfType(Class<T> typeClass)
      Gets a list of SkillSource of a specific type. Each list element contains the XpSource instance and the skill it belongs to.
      Type Parameters:
      T - an instance of XpSource
      Parameters:
      typeClass - the class of the XpSource type
      Returns:
      a list of sources
    • getSingleSourceOfType

      @Nullable <T extends XpSource> @Nullable SkillSource<T> getSingleSourceOfType(Class<T> typeClass)
      Gets the first loaded source found of a given source type. Used for sources where only one instance is expected due to having no variants.
      Type Parameters:
      T - an instance of XpSource
      Parameters:
      typeClass - the class of the XpSource type
      Returns:
      the SkillSource
    • getUnitName

      @Nullable @Nullable String getUnitName(XpSource source, Locale locale)