Interface SourceManager
public interface SourceManager
-
Method Summary
Modifier and TypeMethodDescription<T extends XpSource>
@Nullable SkillSource<T>getSingleSourceOfType
(Class<T> typeClass) Gets the first loaded source found of a given source type.<T extends XpSource>
@NotNull List<SkillSource<T>>getSourcesOfType
(Class<T> typeClass) Gets a list ofSkillSource
of a specific type.@Nullable String
getUnitName
(XpSource source, Locale locale)
-
Method Details
-
getSourcesOfType
Gets a list ofSkillSource
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 theXpSource
type- Returns:
- a list of sources
-
getSingleSourceOfType
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 theXpSource
type- Returns:
- the
SkillSource
-
getUnitName
-