public interface BreathingData extends DataManipulator<BreathingData,ImmutableBreathingData>
Modifier and Type | Method and Description |
---|---|
MutableBoundedValue<Integer> |
maxAir()
Gets the
MutableBoundedValue for the maximum air capacity. |
MutableBoundedValue<Integer> |
remainingAir()
Gets the
MutableBoundedValue for the remaining air. |
asImmutable, copy, fill, fill, from, set, set, set, set, transform
getContentVersion, toContainer
MutableBoundedValue<Integer> remainingAir()
MutableBoundedValue
for the remaining air. Can be
changed to (air >= 0 && air <= maxAir)
.Keys.REMAINING_AIR
MutableBoundedValue<Integer> maxAir()
MutableBoundedValue
for the maximum air capacity.
The reasoning for it being bounded is that the air capacity must always
remain at least 1.Keys.MAX_AIR