public void HandleUpdateHealth(MinecraftClient client, IPacket packet) { var myPacket = (CBUpdateHealth)packet; if (client.ThisPlayer == null) client.ThisPlayer = new Player(); client.ThisPlayer.playerHealth = myPacket.Health; client.ThisPlayer.playerHunger = myPacket.Food; client.ThisPlayer.foodSaturation = myPacket.FoodSaturation; client.RaisePlayerHealthUpdate(myPacket.Health, myPacket.Food, myPacket.FoodSaturation); }