*/
public void setMaxHealth(float maxHealth) {
if (!VanillaConfiguration.PLAYER_SURVIVAL_ENABLE_HEALTH.getBoolean()) {
return;
}
EntityMaxHealthChangeEvent event = new EntityMaxHealthChangeEvent(getOwner(), maxHealth);
getEngine().getEventManager().callEvent(event);
if (!event.isCancelled()) {
getData().put(VanillaData.MAX_HEALTH, event.getMaxHealth());
}
}