public class MCFoodStats
extends java.lang.Object
implements crafttweaker.api.player.IFoodStats
| Constructor and Description |
|---|
MCFoodStats(net.minecraft.util.FoodStats foodStats) |
| Modifier and Type | Method and Description |
|---|---|
void |
addExhaustion(float exhaustion) |
void |
addStats(int foodValue,
float saturationLevel) |
crafttweaker.api.data.IData |
asNBT() |
boolean |
equals(java.lang.Object o) |
int |
getFoodLevel() |
float |
getSaturationLevel() |
int |
hashCode() |
boolean |
needFood() |
void |
onUpdate(crafttweaker.api.player.IPlayer player) |
void |
setFootLevel(int foodLevel) |
void |
setSaturationLevel(float saturationLevel) |
public void addStats(int foodValue,
float saturationLevel)
addStats in interface crafttweaker.api.player.IFoodStatspublic void onUpdate(crafttweaker.api.player.IPlayer player)
onUpdate in interface crafttweaker.api.player.IFoodStatspublic crafttweaker.api.data.IData asNBT()
asNBT in interface crafttweaker.api.player.IFoodStatspublic int getFoodLevel()
getFoodLevel in interface crafttweaker.api.player.IFoodStatspublic void setFootLevel(int foodLevel)
setFootLevel in interface crafttweaker.api.player.IFoodStatspublic boolean needFood()
needFood in interface crafttweaker.api.player.IFoodStatspublic void addExhaustion(float exhaustion)
addExhaustion in interface crafttweaker.api.player.IFoodStatspublic float getSaturationLevel()
getSaturationLevel in interface crafttweaker.api.player.IFoodStatspublic void setSaturationLevel(float saturationLevel)
setSaturationLevel in interface crafttweaker.api.player.IFoodStatspublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object