public interface ImmutableHealthScalingData extends ImmutableDataManipulator<ImmutableHealthScalingData,HealthScalingData>
Modifier and Type | Method and Description |
---|---|
ImmutableBoundedValue<Double> |
healthScale()
Defines the amount of health to show client-side (in hearts) such that
the maximum health is the value of this scale, and the current health
is scaled as a ratio.
|
asMutable, copy, with, with
getContentVersion, toContainer
ImmutableBoundedValue<Double> healthScale()
If the current maximum health is 400, and the player has 200, but the scale dictates 20, then the client will see 5 hearts (or 10 half hearts) out of 10 hearts.