Add food stats.
(int foodLevelIn, float foodSaturationModifier)
| 25 | * Add food stats. |
| 26 | */ |
| 27 | public void addStats(int foodLevelIn, float foodSaturationModifier) |
| 28 | { |
| 29 | this.foodLevel = Math.min(foodLevelIn + this.foodLevel, 20); |
| 30 | this.foodSaturationLevel = Math.min(this.foodSaturationLevel + (float)foodLevelIn * foodSaturationModifier * 2.0F, (float)this.foodLevel); |
| 31 | } |
| 32 | |
| 33 | public void addStats(ItemFood foodItem, ItemStack p_151686_2_) |
| 34 | { |
no test coverage detected