public void handleUpdateHealth(SPacketUpdateHealth packetIn) { PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController); this.gameController.player.setPlayerSPHealth(packetIn.getHealth()); this.gameController.player.getFoodStats().setFoodLevel(packetIn.getFoodLevel()); this.gameController.player.getFoodStats().setFoodSaturationLevel(packetIn.getSaturationLevel()); }
public void handleUpdateHealth(SPacketUpdateHealth packetIn) { PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController); this.gameController.thePlayer.setPlayerSPHealth(packetIn.getHealth()); this.gameController.thePlayer.getFoodStats().setFoodLevel(packetIn.getFoodLevel()); this.gameController.thePlayer.getFoodStats().setFoodSaturationLevel(packetIn.getSaturationLevel()); }
void handleUpdateHealth(SPacketUpdateHealth packetIn);