use of net.glowstone.net.message.play.game.HealthMessage in project Glowstone by GlowstoneMC.
the class GlowPlayer method sendHealth.
private void sendHealth() {
if (!hasJoined()) {
return;
}
float finalHealth = (float) (getHealth() / getMaxHealth() * getHealthScale());
session.send(new HealthMessage(finalHealth, getFoodLevel(), getSaturation()));
}
Aggregations