mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-03 13:36:44 +01:00
Implemented LivingEntity.damage
This commit is contained in:
parent
03fae0a2f7
commit
6a99d8c412
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue