Package org.bukkit.event.entity

Examples of org.bukkit.event.entity.EntityRegainHealthEvent


    int currentHP = player.getHealth();
    if (currentHP < 20) {
      player.setHealth(++currentHP);
     
      // Raise an event so other plugins can keep in sync.
      EntityRegainHealthEvent event = new EntityRegainHealthEvent(player, ++currentHP, RegainReason.REGEN);
      Bukkit.getServer().getPluginManager().callEvent(event);
     
    }
  }
View Full Code Here

TOP

Related Classes of org.bukkit.event.entity.EntityRegainHealthEvent

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.