Package net.minecraft.item
Class Food
java.lang.Object
net.minecraft.item.Food
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
private final List<com.mojang.datafixers.util.Pair<Supplier<EffectInstance>,
Float>> private final boolean
private final boolean
private final int
private final float
-
Constructor Summary
ModifierConstructorDescriptionprivate
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.private
Food
(Food.Builder builder) -
Method Summary
Modifier and TypeMethodDescriptionboolean
List<com.mojang.datafixers.util.Pair<EffectInstance,
Float>> int
float
boolean
boolean
isMeat()
-
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
-
-
Constructor Details
-
Food
-
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
-