Package net.minecraft.item
Class Food
- java.lang.Object
-
- net.minecraft.item.Food
-
public class Food extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Food.Builder
-
Field Summary
Fields Modifier and Type Field Description private boolean
canAlwaysEat
private java.util.List<com.mojang.datafixers.util.Pair<java.util.function.Supplier<EffectInstance>,java.lang.Float>>
effects
private boolean
fastFood
private boolean
isMeat
private int
nutrition
private float
saturationModifier
-
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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canAlwaysEat()
java.util.List<com.mojang.datafixers.util.Pair<EffectInstance,java.lang.Float>>
getEffects()
int
getNutrition()
float
getSaturationModifier()
boolean
isFastFood()
boolean
isMeat()
-
-
-
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
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_, 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()
-
-