Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-20 05:20:07 +01:00
Implemented LivingEntity.damage
Dieser Commit ist enthalten in:
Ursprung
03fae0a2f7
Commit
6a99d8c412
@ -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);
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren