Package net.minecraft.world.food
Class FoodProperties
java.lang.Object
net.minecraft.world.food.FoodProperties
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
private final List<com.mojang.datafixers.util.Pair<Supplier<MobEffectInstance>,
Float>> private final boolean
private final boolean
private final int
private final float
-
Constructor Summary
ModifierConstructorDescription(package private)
FoodProperties
(int p_38730_, float p_38731_, boolean p_38732_, boolean p_38733_, boolean p_38734_, List<com.mojang.datafixers.util.Pair<MobEffectInstance, Float>> p_38735_) Deprecated.private
FoodProperties
(FoodProperties.Builder builder) -
Method Summary
Modifier and TypeMethodDescriptionboolean
List<com.mojang.datafixers.util.Pair<MobEffectInstance,
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
-
FoodProperties
-
FoodProperties
@Deprecated FoodProperties(int p_38730_, float p_38731_, boolean p_38732_, boolean p_38733_, boolean p_38734_, List<com.mojang.datafixers.util.Pair<MobEffectInstance, Float>> p_38735_) Deprecated.
-
-
Method Details
-
getNutrition
public int getNutrition() -
getSaturationModifier
public float getSaturationModifier() -
isMeat
public boolean isMeat() -
canAlwaysEat
public boolean canAlwaysEat() -
isFastFood
public boolean isFastFood() -
getEffects
-