public interface ImmutableBreathingData extends ImmutableDataManipulator<ImmutableBreathingData,BreathingData>
ImmutableDataManipulator representing the current "air" quantity
that an Entity can have while "under water".| Modifier and Type | Method and Description |
|---|---|
ImmutableBoundedValue<Integer> |
maxAir()
Gets the
ImmutableBoundedValue for the maximum air capacity. |
ImmutableBoundedValue<Integer> |
remainingAir()
Gets the
ImmutableBoundedValue for the remaining air. |
asMutable, copy, with, withgetContentVersion, toContainerImmutableBoundedValue<Integer> remainingAir()
ImmutableBoundedValue for the remaining air. Can be
changed to (air >= 0 && air <= maxAir).ImmutableBoundedValue<Integer> maxAir()
ImmutableBoundedValue for the maximum air capacity.
The reasoning for it being bounded is that the air capacity must always
remain at least 1.