public interface ImmutableExperienceHolderData extends ImmutableDataManipulator<ImmutableExperienceHolderData,ExperienceHolderData>
ImmutableDataManipulator
handling the "experience" held by a
DataHolder
. Usually the mechanics of "experience" is that it is
accumulated by a Humanoid
and can be spent on creating
Enchantment
s or renaming ItemStack
s.Modifier and Type | Method and Description |
---|---|
ImmutableBoundedValue<Integer> |
experienceBetweenLevels()
Gets the
ImmutableBoundedValue for the amount of experience
required between the current level() and the next level. |
ImmutableBoundedValue<Integer> |
experienceSinceLevel()
Gets the
ImmutableBoundedValue for the amount of experience
gained since the beginning of the current level() . |
ImmutableBoundedValue<Integer> |
level()
Gets the
ImmutableBoundedValue for the current "level" of
experience deserved according to the totalExperience() and
a function from implementation defining how much experience required
per level. |
ImmutableBoundedValue<Integer> |
totalExperience()
Gets the total amount of experience stored.
|
asMutable, copy, with, with
getContentVersion, toContainer
ImmutableBoundedValue<Integer> experienceSinceLevel()
ImmutableBoundedValue
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.ImmutableBoundedValue<Integer> experienceBetweenLevels()
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.ImmutableBoundedValue<Integer> level()
ImmutableBoundedValue
for the current "level" of
experience deserved according to the totalExperience()
and
a function from implementation defining how much experience required
per level.ImmutableBoundedValue<Integer> totalExperience()