mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-19 23:33:49 +01:00
Adding Creature.setTarget() per jlogsdon
By: James Logsdon <dwarf@girsbrain.org>
This commit is contained in:
parent
290d9aedc9
commit
913e6d484a
1 changed files with 8 additions and 1 deletions
|
@ -6,5 +6,12 @@ package org.bukkit.entity;
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public interface Creature extends LivingEntity{
|
public interface Creature extends LivingEntity{
|
||||||
|
/**
|
||||||
|
* Instructs this Creature to set the specified LivingEntity as its target.
|
||||||
|
* Hostile creatures may attack their target, and friendly creatures may
|
||||||
|
* follow their target.
|
||||||
|
*
|
||||||
|
* @param target New LivingEntity to target
|
||||||
|
*/
|
||||||
|
public void setTarget(LivingEntity target);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue