set Max Health
Sets the maximum health this entity can have.
If the health of the entity is above the value provided it will be set to that value.
Note: An entity with getClassById health bar (Player, EnderDragon, Wither, etc...} will have their bar scaled accordingly.
Parameters
health
amount of health to set the maximum to