Commits

Parker Hawke authored and md_5 committed 8cd1d01d33f
#996: Rename FoodMeta#get/setSaturationModifier() to #get/setSaturation()
No tags

src/main/java/org/bukkit/inventory/meta/components/FoodComponent.java

Modified
24 24 *
25 25 * @param nutrition new nutrition value, must be non-negative
26 26 */
27 27 void setNutrition(int nutrition);
28 28
29 29 /**
30 30 * Gets the saturation restored by this item when eaten.
31 31 *
32 32 * @return saturation value
33 33 */
34 - float getSaturationModifier();
34 + float getSaturation();
35 35
36 36 /**
37 37 * Sets the saturation restored by this item when eaten.
38 38 *
39 - * @param saturationModifier new saturation value
39 + * @param saturation new saturation value
40 40 */
41 - void setSaturationModifier(float saturationModifier);
41 + void setSaturation(float saturation);
42 42
43 43 /**
44 44 * Gets if this item can be eaten even when not hungry.
45 45 *
46 46 * @return true if always edible
47 47 */
48 48 boolean canAlwaysEat();
49 49
50 50 /**
51 51 * Sets if this item can be eaten even when not hungry.

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut