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 float
private final com.google.common.collect.ImmutableList.Builder
<FoodProperties.PossibleEffect> 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()
nutrition
(int p_38761_) saturationModifier
(float p_38759_)
-
Field Details
-
nutrition
private int nutrition -
saturationModifier
private float saturationModifier -
canAlwaysEat
private boolean canAlwaysEat -
eatSeconds
private float eatSeconds -
effects
private final com.google.common.collect.ImmutableList.Builder<FoodProperties.PossibleEffect> effects
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
nutrition
-
saturationModifier
-
alwaysEdible
-
fast
-
effect
Deprecated. -
effect
-
build
-