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