Examples of damage()


Examples of mage.players.Player.damage()

            permanent.damage(damage, source.getSourceId(), game, false, true);
        }
        for (UUID playerId: game.getPlayer(source.getControllerId()).getInRange()) {
            Player player = game.getPlayer(playerId);
            if (player != null) {
                player.damage(damage, source.getSourceId(), game, false, true);
            }
        }
        return true;
    }
}
View Full Code Here

Examples of org.bukkit.entity.LivingEntity.damage()

            this.getBukkitEntity().launchProjectile(Arrow.class);
        } else {
            this.performAction(Animation.SWING_ARM);
            LivingEntity other = (LivingEntity) entity.getBukkitEntity();
            other.damage(this.getAttributeInstance(GenericAttributes.e).getValue());
        }
        hasAttacked = true;

        if (this.attackTimesLimit == -1)
            return;
View Full Code Here

Examples of org.bukkit.entity.Player.damage()

    File treeFile = new File(treesDir + File.separator + player.getName()
        + ".tree");
    treeFile.delete();
    player.sendMessage(Text.getMessage("heart-destroyed"));
    player.getInventory().clear();
    player.damage(200);
    if ("logs".equals(TreeSpiritPlugin.getConfigInstance().getString(
        "co-op-type")))
      CoOpLogsHandler.remove(tree);
    return true;
  }
View Full Code Here

Examples of org.spout.vanilla.component.entity.misc.Health.damage()

  @Override
  public void onCollided(EntityCollideEvent event) {
    if (event instanceof EntityCollideEntityEvent) {
      Health health = ((EntityCollideEntityEvent) event).getCollided().get(Health.class);
      if (health != null) {
        health.damage(0);
      }
    }
    getOwner().remove();
  }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.