mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-31 22:22:49 +00:00
Added damage(int) and damage(int, Entity) for LivingEntity
This commit is contained in:
parent
4879aee1b5
commit
90460b879f
1 changed files with 15 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue