Reads the food data for the player.
(NBTTagCompound p_75112_1_)
| 92 | * Reads the food data for the player. |
| 93 | */ |
| 94 | public void readNBT(NBTTagCompound p_75112_1_) |
| 95 | { |
| 96 | if (p_75112_1_.hasKey("foodLevel", 99)) |
| 97 | { |
| 98 | this.foodLevel = p_75112_1_.getInteger("foodLevel"); |
| 99 | this.foodTimer = p_75112_1_.getInteger("foodTickTimer"); |
| 100 | this.foodSaturationLevel = p_75112_1_.getFloat("foodSaturationLevel"); |
| 101 | this.foodExhaustionLevel = p_75112_1_.getFloat("foodExhaustionLevel"); |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | /** |
| 106 | * Writes the food data for the player. |
no test coverage detected