public interface HealthScalingData extends DataManipulator<HealthScalingData,ImmutableHealthScalingData>
Modifier and Type | Method and Description |
---|---|
BoundedValue<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.
|
asImmutable, copy, fill, fill, from, set, set, set, set, transform
getContentVersion, toContainer
BoundedValue<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.
Keys.HEALTH_SCALE