@Override
public PlayerHealthMessage decode(ByteBuf buffer) throws IOException {
float health = buffer.readFloat();
short food = buffer.readShort();
float foodSaturation = buffer.readFloat();
return new PlayerHealthMessage(health, food, foodSaturation);
}