public abstract class AbstractPassiveJobSkill extends AbstractPassiveSkill
Modifier and Type | Field and Description |
---|---|
private static java.util.List<java.lang.Long> |
MILESTONES
The static list of experience milestones.
|
Constructor and Description |
---|
AbstractPassiveJobSkill()
Creates an empty instance of this passive skill.
|
AbstractPassiveJobSkill(long exp)
Creates a new instance of this passive skill.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.List<java.lang.Long> |
getMilestones()
Gets all experience milestones, marking where new levels are reached.
|
protected void |
onLevelUp(org.bukkit.entity.Player player)
Method that gets called when a new milestone has been reached.
|
getExp, getInstance, getLevel, getNextMilestone, getPassiveName, grantExperience, hasReachedMilestone
private static final java.util.List<java.lang.Long> MILESTONES
public AbstractPassiveJobSkill()
public AbstractPassiveJobSkill(long exp)
exp
- The current experience in this skill.protected java.util.List<java.lang.Long> getMilestones()
getMilestones
in class AbstractPassiveSkill
protected void onLevelUp(org.bukkit.entity.Player player)
onLevelUp
in class AbstractPassiveSkill
player
- The player who reached the milestone.