public static class Types_v1_21.Food
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CAN_ALWAYS_EAT |
static java.lang.String |
EAT_SECONDS |
static java.lang.String |
EFFECTS |
static java.lang.String |
NUTRITION |
static java.lang.String |
SATURATION |
static java.lang.String |
USING_CONVERTS_TO |
| Constructor and Description |
|---|
Food() |
Food(int nutrition,
float saturation) |
Food(int nutrition,
float saturation,
boolean canAlwaysEat,
float eatSeconds,
Types_v1_20_5.ItemStack usingConvertsTo,
java.util.List<Types_v1_20_5.Food.Effect> effects) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
float |
getEatSeconds() |
java.util.List<Types_v1_20_5.Food.Effect> |
getEffects() |
int |
getNutrition() |
float |
getSaturation() |
Types_v1_20_5.ItemStack |
getUsingConvertsTo() |
int |
hashCode() |
boolean |
isCanAlwaysEat() |
void |
setCanAlwaysEat(boolean canAlwaysEat) |
void |
setEatSeconds(float eatSeconds) |
void |
setEffects(java.util.List<Types_v1_20_5.Food.Effect> effects) |
void |
setNutrition(int nutrition) |
void |
setSaturation(float saturation) |
void |
setUsingConvertsTo(Types_v1_20_5.ItemStack usingConvertsTo) |
java.lang.String |
toString() |
public static final java.lang.String NUTRITION
public static final java.lang.String SATURATION
public static final java.lang.String CAN_ALWAYS_EAT
public static final java.lang.String EAT_SECONDS
public static final java.lang.String USING_CONVERTS_TO
public static final java.lang.String EFFECTS
public Food(int nutrition,
float saturation)
public Food()
public Food(int nutrition,
float saturation,
boolean canAlwaysEat,
float eatSeconds,
@Nullable
Types_v1_20_5.ItemStack usingConvertsTo,
java.util.List<Types_v1_20_5.Food.Effect> effects)
public int getNutrition()
public float getSaturation()
public boolean isCanAlwaysEat()
public float getEatSeconds()
@Nullable public Types_v1_20_5.ItemStack getUsingConvertsTo()
public java.util.List<Types_v1_20_5.Food.Effect> getEffects()
public void setNutrition(int nutrition)
public void setSaturation(float saturation)
public void setCanAlwaysEat(boolean canAlwaysEat)
public void setEatSeconds(float eatSeconds)
public void setUsingConvertsTo(@Nullable
Types_v1_20_5.ItemStack usingConvertsTo)
public void setEffects(java.util.List<Types_v1_20_5.Food.Effect> effects)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectprotected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object