Class FoodProperties

java.lang.Object
net.minecraft.world.food.FoodProperties

public class FoodProperties extends Object
  • Field Details

    • nutrition

      private final int nutrition
    • saturationModifier

      private final float saturationModifier
    • isMeat

      private final boolean isMeat
    • canAlwaysEat

      private final boolean canAlwaysEat
    • fastFood

      private final boolean fastFood
    • effects

      private final List<com.mojang.datafixers.util.Pair<Supplier<MobEffectInstance>,​Float>> effects
  • Constructor Details

    • FoodProperties

      private FoodProperties(FoodProperties.Builder builder)
    • FoodProperties

      @Deprecated FoodProperties(int p_38730_, float p_38731_, boolean p_38732_, boolean p_38733_, boolean p_38734_, List<com.mojang.datafixers.util.Pair<MobEffectInstance,​Float>> p_38735_)
      Deprecated.
  • Method Details

    • getNutrition

      public int getNutrition()
    • getSaturationModifier

      public float getSaturationModifier()
    • isMeat

      public boolean isMeat()
    • canAlwaysEat

      public boolean canAlwaysEat()
    • isFastFood

      public boolean isFastFood()
    • getEffects

      public List<com.mojang.datafixers.util.Pair<MobEffectInstance,​Float>> getEffects()