public interface FoodData extends DataManipulator<FoodData,ImmutableFoodData>
DataManipulator
handling the various aspects of "hunger"
which has various effects on health and speed of Humanoid
entities.Modifier and Type | Method and Description |
---|---|
MutableBoundedValue<Double> |
exhaustion()
Gets the
MutableBoundedValue for the "exhaustion" level. |
MutableBoundedValue<Integer> |
foodLevel()
Gets the current food level as an
MutableBoundedValue . |
MutableBoundedValue<Double> |
saturation()
Gets the
MutableBoundedValue for the "saturation" level. |
asImmutable, copy, fill, fill, from, set, set, set, set, transform
getContentVersion, toContainer
MutableBoundedValue<Integer> foodLevel()
MutableBoundedValue
.
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.
Keys.FOOD_LEVEL
MutableBoundedValue<Double> exhaustion()
MutableBoundedValue
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.
Keys.EXHAUSTION
MutableBoundedValue<Double> saturation()
MutableBoundedValue
for the "saturation" 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.
Keys.SATURATION