mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-07 23:52:11 -07:00
Added getKiller() method to LivingEntity, to determine the killer of an entity
By: Nathan Adams <dinnerbone@dinnerbone.com>
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user