Interface ICitizenExperienceHandler
- All Known Implementing Classes:
CitizenExperienceHandler
public interface ICitizenExperienceHandler
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddExperience(double xp) Add experience points to citizen.voidDrop some experience share depending on the experience and experienceLevel.voidgatherXp()Collect exp orbs around the entity.voidUpdates the level of the citizen.
-
Method Details
-
updateLevel
void updateLevel()Updates the level of the citizen. -
addExperience
void addExperience(double xp) Add experience points to citizen. Increases the citizen level if he has sufficient experience. This will reset the experience.- Parameters:
xp- the amount of points added.
-
dropExperience
void dropExperience()Drop some experience share depending on the experience and experienceLevel. -
gatherXp
void gatherXp()Collect exp orbs around the entity.
-