public interface ImmutableFoodData extends ImmutableDataManipulator<ImmutableFoodData,FoodData>
ImmutableDataManipulator
handling the various aspects of "hunger"
which has various effects on health and speed of Humanoid
entities.Modifier and Type | Method and Description |
---|---|
ImmutableBoundedValue<Double> |
exhaustion()
Gets the
ImmutableBoundedValue for the "exhaustion" level. |
ImmutableBoundedValue<Integer> |
foodLevel()
Gets the current food level as an
ImmutableBoundedValue . |
ImmutableBoundedValue<Double> |
saturation()
Gets the
ImmutableBoundedValue for the "exhaustion" level. |
asMutable, copy, with, with
getContentVersion, toContainer
ImmutableBoundedValue<Integer> foodLevel()
ImmutableBoundedValue
.
Food level has health effects, depending on game difficulty and hunger levels. If the food level is high enough, the human entity may heal. If the food level is at 0, the human entity may starve.
ImmutableBoundedValue<Double> exhaustion()
ImmutableBoundedValue
for the "exhaustion" level.
When the exhaustion level reaches 0, saturation is usually diminished
such that saturation is decreased and then exhaustion is reset to the
maximum. This type of effect occurs over time and can be modified by
movements and actions performed by the Humanoid
entity.
ImmutableBoundedValue<Double> saturation()
ImmutableBoundedValue
for the "exhaustion" level.
When the saturation level reaches 0, the food level is usually
diminished such that the food level is decreased by 1, then
saturation is reset to the maximum value. This type of effect occurs
over time and can be modified by movements and actions performed by the
Humanoid
entity.