Class CustomSource
java.lang.Object
dev.aurelium.auraskills.api.source.CustomSource
- All Implemented Interfaces:
XpSource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDisplayName
(Locale locale) Gets the display name of the source.getId()
Gets the id of the source.Gets the income data for this source that determines the money gained when the source is gained.getType()
@Nullable String
getUnitName
(Locale locale) Gets theSourceValues
object that contains data about the source.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. -
getIncome
Description copied from interface:XpSource
Gets the income data for this source that determines the money gained when the source is gained. Income is only gained if jobs are enabled. -
getValues
Description copied from interface:XpSource
Gets theSourceValues
object that contains data about the source. All the information in the source values is already accessible through other methods in this interface.
-