Class FoodProperties
java.lang.Object
com.github.retrooper.packetevents.protocol.component.builtin.item.FoodProperties
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionFoodProperties
(int nutrition, float saturation, boolean canAlwaysEat, float eatSeconds, List<FoodProperties.PossibleEffect> effects) -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
float
int
float
int
hashCode()
boolean
static FoodProperties
read
(PacketWrapper<?> wrapper) void
setCanAlwaysEat
(boolean canAlwaysEat) void
setEatSeconds
(float eatSeconds) void
setEffects
(List<FoodProperties.PossibleEffect> effects) void
setNutrition
(int nutrition) void
setSaturation
(float saturation) static void
write
(PacketWrapper<?> wrapper, FoodProperties props)
-
Constructor Details
-
FoodProperties
public FoodProperties(int nutrition, float saturation, boolean canAlwaysEat, float eatSeconds, List<FoodProperties.PossibleEffect> effects)
-
-
Method Details
-
read
-
write
-
getNutrition
public int getNutrition() -
setNutrition
public void setNutrition(int nutrition) -
getSaturation
public float getSaturation() -
setSaturation
public void setSaturation(float saturation) -
isCanAlwaysEat
public boolean isCanAlwaysEat() -
setCanAlwaysEat
public void setCanAlwaysEat(boolean canAlwaysEat) -
getEatSeconds
public float getEatSeconds() -
setEatSeconds
public void setEatSeconds(float eatSeconds) -
addEffect
-
getEffects
-
setEffects
-
equals
-
hashCode
public int hashCode()
-