Class Food

java.lang.Object
net.minecraft.item.Food

public class Food 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<EffectInstance>,Float>> effects
  • Constructor Details

    • Food

      private Food(Food.Builder builder)
    • Food

      @Deprecated private Food(int p_i50106_1_, float p_i50106_2_, boolean p_i50106_3_, boolean p_i50106_4_, boolean p_i50106_5_, List<com.mojang.datafixers.util.Pair<EffectInstance,Float>> p_i50106_6_)
      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<EffectInstance,Float>> getEffects()