public static class Food.Builder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
alwaysEdible |
private java.util.List<org.apache.commons.lang3.tuple.Pair<java.util.function.Supplier<EffectInstance>,java.lang.Float>> |
effects |
private boolean |
fastToEat |
private boolean |
meat |
private float |
saturation |
private int |
value |
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Food |
build() |
Food.Builder |
effect(EffectInstance effectIn,
float probability)
Deprecated.
|
Food.Builder |
effect(java.util.function.Supplier<EffectInstance> effectIn,
float probability) |
Food.Builder |
fastToEat() |
Food.Builder |
hunger(int hungerIn) |
Food.Builder |
meat() |
Food.Builder |
saturation(float saturationIn) |
Food.Builder |
setAlwaysEdible() |
private int value
private float saturation
private boolean meat
private boolean alwaysEdible
private boolean fastToEat
private final java.util.List<org.apache.commons.lang3.tuple.Pair<java.util.function.Supplier<EffectInstance>,java.lang.Float>> effects
public Food.Builder hunger(int hungerIn)
public Food.Builder saturation(float saturationIn)
public Food.Builder meat()
public Food.Builder setAlwaysEdible()
public Food.Builder fastToEat()
public Food.Builder effect(java.util.function.Supplier<EffectInstance> effectIn, float probability)
@Deprecated public Food.Builder effect(EffectInstance effectIn, float probability)
public Food build()