Class FoodProperties
java.lang.Object
org.geysermc.mcprotocollib.protocol.data.game.item.component.FoodProperties
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionFoodProperties(int nutrition, float saturationModifier, boolean canAlwaysEat) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull FoodProperties.FoodPropertiesBuilderbuilder()protected booleanbooleanintfloatinthashCode()boolean@NonNull FoodProperties.FoodPropertiesBuilder@NonNull StringtoString()
-
Constructor Details
-
FoodProperties
public FoodProperties(int nutrition, float saturationModifier, boolean canAlwaysEat)
-
-
Method Details
-
builder
-
toBuilder
-
getNutrition
public int getNutrition() -
getSaturationModifier
public float getSaturationModifier() -
isCanAlwaysEat
public boolean isCanAlwaysEat() -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-