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 ofSkillSourceof a specific type.@Nullable StringgetUnitName(XpSource source, Locale locale) loadSourceIncome(ConfigNode source)
-
Method Details
-
getSourcesOfType
Gets a list ofSkillSourceof 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 theXpSourcetype- 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 theXpSourcetype- Returns:
- the
SkillSource
-
getUnitName
-
loadSourceIncome
-