Package org.spout.vanilla.event.entity

Examples of org.spout.vanilla.event.entity.EntityMaxHealthChangeEvent


   */
  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());
        }
  }
View Full Code Here

TOP

Related Classes of org.spout.vanilla.event.entity.EntityMaxHealthChangeEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.