mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 23:38:25 +01:00
LivingEntity#setKiller
This commit is contained in:
parent
8df1d2656c
commit
eb5ae9c077
1 changed files with 9 additions and 0 deletions
|
@ -365,6 +365,15 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource
|
||||||
@Nullable
|
@Nullable
|
||||||
public Player getKiller();
|
public Player getKiller();
|
||||||
|
|
||||||
|
// Paper start
|
||||||
|
/**
|
||||||
|
* Sets the player identified as the killer of the living entity.
|
||||||
|
*
|
||||||
|
* @param killer player
|
||||||
|
*/
|
||||||
|
public void setKiller(@Nullable Player killer);
|
||||||
|
// Paper end
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds the given {@link PotionEffect} to the living entity.
|
* Adds the given {@link PotionEffect} to the living entity.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue