diff options
author | Forsaken <darkmaster87@gmx.de> | 2011-02-04 01:01:48 +0100 |
---|---|---|
committer | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-03-07 16:01:57 +0000 |
commit | 90460b879f691ab5ba50c32dafd8d40d3c29538d (patch) | |
tree | 618b803a3bbc8c05ef9353f0f8a7dcb4669b6a43 /src/main | |
parent | 4879aee1b576addd69852bda06193ab7702f6006 (diff) | |
download | bukkit-90460b879f691ab5ba50c32dafd8d40d3c29538d.tar bukkit-90460b879f691ab5ba50c32dafd8d40d3c29538d.tar.gz bukkit-90460b879f691ab5ba50c32dafd8d40d3c29538d.tar.lz bukkit-90460b879f691ab5ba50c32dafd8d40d3c29538d.tar.xz bukkit-90460b879f691ab5ba50c32dafd8d40d3c29538d.zip |
Added damage(int) and damage(int, Entity) for LivingEntity
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/bukkit/entity/LivingEntity.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/LivingEntity.java b/src/main/java/org/bukkit/entity/LivingEntity.java index cdcf59c1..97cd6281 100644 --- a/src/main/java/org/bukkit/entity/LivingEntity.java +++ b/src/main/java/org/bukkit/entity/LivingEntity.java @@ -135,4 +135,19 @@ public interface LivingEntity extends Entity { * @param ticks Maximum amount of air */ public void setMaximumAir(int ticks); + + /** + * Deals the given amount of damage to this entity + * + * @param amount Amount of damage to deal + */ + public void damage(int amount); + + /** + * Deals the given amount of damage to this entity, from a specified entity + * + * @param amount Amount of damage to deal + * @param source Entity which to attribute this damage from + */ + public void damage(int amount, Entity source); } |