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