Implemented LivingEntity.damage

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
CraftBukkit/Spigot 2011-03-07 15:59:10 +00:00
parent 3cc43d44f5
commit 6168074191

View File

@ -163,4 +163,12 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity {
public void setMaximumAir(int ticks) {
getHandle().maxAirTicks = ticks;
}
public void damage(int amount) {
entity.a((Entity)null, amount);
}
public void damage(int amount, org.bukkit.entity.Entity source) {
entity.a(((CraftEntity)source).getHandle(), amount);
}
}