public interface ExperienceHolderData extends DataManipulator<ExperienceHolderData,ImmutableExperienceHolderData>
Humanoid
s.Modifier and Type | Method and Description |
---|---|
MutableBoundedValue<Integer> |
experienceSinceLevel()
Gets the
MutableBoundedValue for the amount of experience
gained since the beginning of the current level() . |
ImmutableBoundedValue<Integer> |
getExperienceBetweenLevels()
Gets the
ImmutableBoundedValue for the amount of experience
required between the current level() and the next level. |
MutableBoundedValue<Integer> |
level()
Gets the
MutableBoundedValue for the current "level" of
experience deserved according to the totalExperience() and
a function from implementation defining how much experience required
per level. |
MutableBoundedValue<Integer> |
totalExperience()
Gets the total amount of experience stored.
|
asImmutable, copy, fill, fill, from, set, set, set, set, transform
getContentVersion, toContainer
MutableBoundedValue<Integer> experienceSinceLevel()
MutableBoundedValue
for the amount of experience
gained since the beginning of the current level()
. Normally,
the higher the level, the more "experience" required to gain another
level.Keys.EXPERIENCE_SINCE_LEVEL
ImmutableBoundedValue<Integer> getExperienceBetweenLevels()
ImmutableBoundedValue
for the amount of experience
required between the current level()
and the next level.
This can be presumed to be the supposed "maximum" for the
experienceSinceLevel()
amount.Keys.EXPERIENCE_FROM_START_OF_LEVEL
MutableBoundedValue<Integer> level()
MutableBoundedValue
for the current "level" of
experience deserved according to the totalExperience()
and
a function from implementation defining how much experience required
per level.Keys.EXPERIENCE_LEVEL
MutableBoundedValue<Integer> totalExperience()
Keys.TOTAL_EXPERIENCE