Class ExpandFoodData
java.lang.Object
com.blamejared.crafttweaker.natives.food.ExpandFoodData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddExhaustion(net.minecraft.world.food.FoodData internal, float exhaustion) static voideat(net.minecraft.world.food.FoodData internal, int foodLevelModifier, float saturationLevelModifier) static voideat(net.minecraft.world.food.FoodData internal, IItemStack stack) static floatgetExhaustionLevel(net.minecraft.world.food.FoodData internal) static intgetFoodLevel(net.minecraft.world.food.FoodData internal) static intgetLastFoodLevel(net.minecraft.world.food.FoodData internal) static floatgetSaturationLevel(net.minecraft.world.food.FoodData internal) static booleanneedsFood(net.minecraft.world.food.FoodData internal) static voidsetExhaustion(net.minecraft.world.food.FoodData internal, float exhaustionLevel) static voidsetFoodLevel(net.minecraft.world.food.FoodData internal, int foodLevel) static voidsetSaturation(net.minecraft.world.food.FoodData internal, float saturationLevel)
-
Constructor Details
-
ExpandFoodData
public ExpandFoodData()
-
-
Method Details
-
eat
public static void eat(net.minecraft.world.food.FoodData internal, int foodLevelModifier, float saturationLevelModifier) -
eat
-
getFoodLevel
public static int getFoodLevel(net.minecraft.world.food.FoodData internal) -
getLastFoodLevel
public static int getLastFoodLevel(net.minecraft.world.food.FoodData internal) -
needsFood
public static boolean needsFood(net.minecraft.world.food.FoodData internal) -
addExhaustion
public static void addExhaustion(net.minecraft.world.food.FoodData internal, float exhaustion) -
getExhaustionLevel
public static float getExhaustionLevel(net.minecraft.world.food.FoodData internal) -
getSaturationLevel
public static float getSaturationLevel(net.minecraft.world.food.FoodData internal) -
setFoodLevel
public static void setFoodLevel(net.minecraft.world.food.FoodData internal, int foodLevel) -
setSaturation
public static void setSaturation(net.minecraft.world.food.FoodData internal, float saturationLevel) -
setExhaustion
public static void setExhaustion(net.minecraft.world.food.FoodData internal, float exhaustionLevel)
-