FoodData
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
Members
addExhaustion(exhaustion as float)
Parameters:
exhaustion: float
Type: float
eat(foodLevelModifier as int, saturationLevelModifier as float)
Parameters:
foodLevelModifier: int
Type: int
saturationLevelModifier: float
Type: float
eat(stack as IItemStack)
Parameters:
stack: IItemStack
Type: IItemStack
getExhaustionLevel() as float
Return Type:
float
getFoodLevel() as int
Return Type:
int
getLastFoodLevel() as int
Return Type:
int
getSaturationLevel() as float
Return Type:
float
needsFood() as bool
Return Type:
bool
setExhaustion(exhaustionLevel as float)
Parameters:
exhaustionLevel: float
Type: float
setFoodLevel(foodLevel as int)
Parameters:
foodLevel: int
Type: int
setSaturation(saturationLevel as float)
Parameters:
saturationLevel: float
Type: float