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

  • 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()