Class ExpandFoodData

java.lang.Object
com.blamejared.crafttweaker.natives.food.ExpandFoodData

@ZenRegister public class ExpandFoodData extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addExhaustion(net.minecraft.world.food.FoodData internal, float exhaustion)
     
    static void
    eat(net.minecraft.world.food.FoodData internal, int foodLevelModifier, float saturationLevelModifier)
     
    static void
    eat(net.minecraft.world.food.FoodData internal, IItemStack stack)
     
    static float
    getExhaustionLevel(net.minecraft.world.food.FoodData internal)
     
    static int
    getFoodLevel(net.minecraft.world.food.FoodData internal)
     
    static int
    getLastFoodLevel(net.minecraft.world.food.FoodData internal)
     
    static float
    getSaturationLevel(net.minecraft.world.food.FoodData internal)
     
    static boolean
    needsFood(net.minecraft.world.food.FoodData internal)
     
    static void
    setExhaustion(net.minecraft.world.food.FoodData internal, float exhaustionLevel)
     
    static void
    setFoodLevel(net.minecraft.world.food.FoodData internal, int foodLevel)
     
    static void
    setSaturation(net.minecraft.world.food.FoodData internal, float saturationLevel)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExpandFoodData

      public ExpandFoodData()
  • Method Details

    • eat

      public static void eat(net.minecraft.world.food.FoodData internal, int foodLevelModifier, float saturationLevelModifier)
    • eat

      public static void eat(net.minecraft.world.food.FoodData internal, IItemStack stack)
    • 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)