Package org.spout.vanilla.event.player

Examples of org.spout.vanilla.event.player.PlayerDeathEvent


   */
  private void onDeath() {
    EntityDeathEvent event;
    Entity owner = getOwner();
    if (owner instanceof Player) {
      event = new PlayerDeathEvent((Player) owner, lastDamageCause, lastDamager);
    } else {
      event = new EntityDeathEvent(owner, lastDamageCause, lastDamager);
    }
    if (!getEngine().getEventManager().callEvent(event).isCancelled()) {
      if (!(owner instanceof Player)) {
View Full Code Here

TOP

Related Classes of org.spout.vanilla.event.player.PlayerDeathEvent

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.