bb50f1a774
A special thanks goes to @aerouk for almost all of the changes found here. By: Wesley Wolfe <weswolf@aol.com>
27 lines
732 B
Java
27 lines
732 B
Java
package org.bukkit.entity;
|
|
|
|
/**
|
|
* Represents a Creature. Creatures are non-intelligent monsters or animals
|
|
* which have very simple abilities.
|
|
*/
|
|
public interface Creature extends LivingEntity {
|
|
|
|
/**
|
|
* Instructs this Creature to set the specified LivingEntity as its
|
|
* target.
|
|
* <p>
|
|
* Hostile creatures may attack their target, and friendly creatures may
|
|
* follow their 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();
|
|
}
|