public class Food
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Food.Builder |
Modifier and Type | Field and Description |
---|---|
private boolean |
canEatWhenFull |
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 |
Modifier | Constructor and Description |
---|---|
private |
Food(Food.Builder builder) |
private |
Food(int healing,
float saturationIn,
boolean isMeat,
boolean alwaysEdible,
boolean fastEdible,
java.util.List<org.apache.commons.lang3.tuple.Pair<EffectInstance,java.lang.Float>> effectsIn)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canEatWhenFull() |
java.util.List<org.apache.commons.lang3.tuple.Pair<EffectInstance,java.lang.Float>> |
getEffects() |
int |
getHealing() |
float |
getSaturation() |
boolean |
isFastEating() |
boolean |
isMeat() |
private final int value
private final float saturation
private final boolean meat
private final boolean canEatWhenFull
private final boolean fastToEat
private final java.util.List<org.apache.commons.lang3.tuple.Pair<java.util.function.Supplier<EffectInstance>,java.lang.Float>> effects
private Food(Food.Builder builder)
@Deprecated private Food(int healing, float saturationIn, boolean isMeat, boolean alwaysEdible, boolean fastEdible, java.util.List<org.apache.commons.lang3.tuple.Pair<EffectInstance,java.lang.Float>> effectsIn)
public int getHealing()
public float getSaturation()
public boolean isMeat()
public boolean canEatWhenFull()
public boolean isFastEating()
public java.util.List<org.apache.commons.lang3.tuple.Pair<EffectInstance,java.lang.Float>> getEffects()