Class CustomSource
java.lang.Object
dev.aurelium.auraskills.api.source.CustomSource
- All Implemented Interfaces:
XpSource
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDisplayName
(Locale locale) Gets the display name of the source.getId()
Gets the id of the source.getType()
@Nullable String
getUnitName
(Locale locale) double
getXp()
Gets the amount of xp the source gives.name()
Gets the name of the source in all caps without a namespace.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.aurelium.auraskills.api.source.XpSource
isVersionValid
-
Constructor Details
-
CustomSource
-
-
Method Details
-
getId
Description copied from interface:XpSource
Gets the id of the source. Any source set in the plugin config will use the auraskills namespace. Repeated sources in different skills will have the same NamespacedId but are different instances. -
getType
-
getDisplayName
Description copied from interface:XpSource
Gets the display name of the source. Different sources may return the same name.- Specified by:
getDisplayName
in interfaceXpSource
- Parameters:
locale
- The locale to get the name in- Returns:
- The display name
-
getUnitName
- Specified by:
getUnitName
in interfaceXpSource
-
name
Description copied from interface:XpSource
Gets the name of the source in all caps without a namespace. Different sources may return the same name. -
getXp
public double getXp()Description copied from interface:XpSource
Gets the amount of xp the source gives. The value is the base amount before any multipliers are applied. -
getValues
-