Package net.minecraft.world.food
Class FoodProperties.Builder
java.lang.Object
net.minecraft.world.food.FoodProperties.Builder
- Enclosing class:
- FoodProperties
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private final List<com.mojang.datafixers.util.Pair<Supplier<MobEffectInstance>,
Float>> private boolean
private boolean
private int
private float
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
effect
(Supplier<MobEffectInstance> effectIn, float probability) effect
(MobEffectInstance p_38763_, float p_38764_) Deprecated.fast()
meat()
nutrition
(int p_38761_) saturationMod
(float p_38759_)
-
Field Details
-
nutrition
private int nutrition -
saturationModifier
private float saturationModifier -
isMeat
private boolean isMeat -
canAlwaysEat
private boolean canAlwaysEat -
fastFood
private boolean fastFood -
effects
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
nutrition
-
saturationMod
-
meat
-
alwaysEat
-
fast
-
effect
-
effect
Deprecated. -
build
-