Package net.minecraft.item
Class Food.Builder
java.lang.Object
net.minecraft.item.Food.Builder
- Enclosing class:
- Food
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private final List<com.mojang.datafixers.util.Pair<Supplier<EffectInstance>,
Float>> private boolean
private boolean
private int
private float
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
effect
(Supplier<EffectInstance> effectIn, float probability) effect
(EffectInstance p_221452_1_, float p_221452_2_) Deprecated.fast()
meat()
nutrition
(int p_221456_1_) saturationMod
(float p_221454_1_)
-
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
-