public class PassiveNutrition 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 |
|---|
PassiveNutrition()
Creates an empty instance of this passive skill.
|
PassiveNutrition(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, hasReachedMilestonepublic static final java.lang.String PASSIVE_NAME
private static final java.util.List<java.lang.Long> MILESTONES
public PassiveNutrition()
public PassiveNutrition(long exp)
exp - The current experience in this skill.public AbstractPassiveSkill getInstance(long exp)
getInstance in class AbstractPassiveSkillexp - The current experience in this skill.public java.lang.String getPassiveName()
getPassiveName in class AbstractPassiveSkillprotected java.util.List<java.lang.Long> getMilestones()
getMilestones in class AbstractPassiveSkillprotected void onLevelUp(org.bukkit.entity.Player player)
onLevelUp in class AbstractPassiveSkillplayer - The player who reached the milestone.