Added Creature.getTarget
This commit is contained in:
parent
3f60ba1f91
commit
f35b3e98f9
@ -1,9 +1,8 @@
|
||||
package org.bukkit.entity;
|
||||
|
||||
/**
|
||||
* Represents a Creature. Any LivingEntity that is not human is a Creature.
|
||||
* @author Cogito
|
||||
*
|
||||
* Represents a Creature. Creatures are non-intelligent monsters or animals which
|
||||
* have very simple abilities.
|
||||
*/
|
||||
public interface Creature extends LivingEntity {
|
||||
/**
|
||||
@ -11,7 +10,14 @@ public interface Creature extends LivingEntity{
|
||||
* Hostile creatures may attack their target, and friendly creatures may
|
||||
* follow their target.
|
||||
*
|
||||
* @param target New LivingEntity to target
|
||||
* @param target New LivingEntity to target, or null to clear the target
|
||||
*/
|
||||
public void setTarget(LivingEntity target);
|
||||
|
||||
/**
|
||||
* Gets the current target of this Creature
|
||||
*
|
||||
* @return Current target of this creature, or null if none exists
|
||||
*/
|
||||
public LivingEntity getTarget();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user