Added getKiller() method to LivingEntity, to determine the killer of an entity
This commit is contained in:
parent
e180d89b8f
commit
7f06f7ffa8
@ -215,4 +215,12 @@ public interface LivingEntity extends Entity {
|
|||||||
*/
|
*/
|
||||||
public void setNoDamageTicks(int ticks);
|
public void setNoDamageTicks(int ticks);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the player identified as the killer of this entity.
|
||||||
|
* <p>
|
||||||
|
* May be null.
|
||||||
|
*
|
||||||
|
* @return Killer player, or null if none found.
|
||||||
|
*/
|
||||||
|
public Player getKiller();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user