mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-10 13:49:11 +01:00
Add setTarget and getTarget to Slime.
By: Senmori <thesenmori@gmail.com>
This commit is contained in:
parent
57b635b81d
commit
e57e2489b5
@ -14,4 +14,19 @@ public interface Slime extends LivingEntity {
|
|||||||
* @param sz The new size of the slime.
|
* @param sz The new size of the slime.
|
||||||
*/
|
*/
|
||||||
public void setSize(int sz);
|
public void setSize(int sz);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the {@link LivingEntity} target for this slime. Set to null to clear
|
||||||
|
* the target.
|
||||||
|
*
|
||||||
|
* @param target the entity to target
|
||||||
|
*/
|
||||||
|
public void setTarget(LivingEntity target);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the {@link LivingEntity} this slime is currently targeting.
|
||||||
|
*
|
||||||
|
* @return the current target, or null if no target exists.
|
||||||
|
*/
|
||||||
|
public LivingEntity getTarget();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user