Class Food


  • public class Food
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Food.Builder  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Food​(int p_i50106_1_, float p_i50106_2_, boolean p_i50106_3_, boolean p_i50106_4_, boolean p_i50106_5_, java.util.List<com.mojang.datafixers.util.Pair<EffectInstance,​java.lang.Float>> p_i50106_6_)
      Deprecated.
      private Food​(Food.Builder builder)  
    • Field Detail

      • 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 java.util.List<com.mojang.datafixers.util.Pair<java.util.function.Supplier<EffectInstance>,​java.lang.Float>> effects
    • Constructor Detail

      • Food

        @Deprecated
        private Food​(int p_i50106_1_,
                     float p_i50106_2_,
                     boolean p_i50106_3_,
                     boolean p_i50106_4_,
                     boolean p_i50106_5_,
                     java.util.List<com.mojang.datafixers.util.Pair<EffectInstance,​java.lang.Float>> p_i50106_6_)
        Deprecated.
    • Method Detail

      • getNutrition

        public int getNutrition()
      • getSaturationModifier

        public float getSaturationModifier()
      • isMeat

        public boolean isMeat()
      • canAlwaysEat

        public boolean canAlwaysEat()
      • isFastFood

        public boolean isFastFood()
      • getEffects

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