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() |
int |
getFoodLevel() |
float |
getSaturationLevel() |
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.IFoodStats
public void onUpdate(crafttweaker.api.player.IPlayer player)
onUpdate
in interface crafttweaker.api.player.IFoodStats
public crafttweaker.api.data.IData asNBT()
asNBT
in interface crafttweaker.api.player.IFoodStats
public int getFoodLevel()
getFoodLevel
in interface crafttweaker.api.player.IFoodStats
public void setFootLevel(int foodLevel)
setFootLevel
in interface crafttweaker.api.player.IFoodStats
public boolean needFood()
needFood
in interface crafttweaker.api.player.IFoodStats
public void addExhaustion(float exhaustion)
addExhaustion
in interface crafttweaker.api.player.IFoodStats
public float getSaturationLevel()
getSaturationLevel
in interface crafttweaker.api.player.IFoodStats
public void setSaturationLevel(float saturationLevel)
setSaturationLevel
in interface crafttweaker.api.player.IFoodStats