mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 01:06:01 +01:00
Added getKiller() method to LivingEntity, to determine the killer of an entity
By: Nathan Adams <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
2a9dad1626
commit
c98c245890
1 changed files with 8 additions and 0 deletions
|
@ -215,4 +215,12 @@ public interface LivingEntity extends Entity {
|
|||
*/
|
||||
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…
Add table
Reference in a new issue