mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 05:47:45 +01:00
Implemented LivingEntity.damage
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
3cc43d44f5
commit
6168074191
@ -163,4 +163,12 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity {
|
|||||||
public void setMaximumAir(int ticks) {
|
public void setMaximumAir(int ticks) {
|
||||||
getHandle().maxAirTicks = 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 New Issue
Block a user