ResourceState
Snapshot of a player's resource: how much they have and how much they can have. The maximum is the one that applies to this player now, so it may differ between players.
Values are read together and change all the time because of regeneration, so don't cache them. States are equal if all their values are equal.
Create it with ResourceState.of:
ResourceState.of(15.0, 20.0);Content copied to clipboard
Since
0.10.0