Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
Creature.java
1 package org.bukkit.entity;
2 
3 /**
4  * Represents a Creature. Creatures are non-intelligent monsters or animals
5  * which have very simple abilities.
6  */
7 public interface Creature extends LivingEntity {
8 
9  /**
10  * Instructs this Creature to set the specified LivingEntity as its
11  * target.
12  * <p>
13  * Hostile creatures may attack their target, and friendly creatures may
14  * follow their target.
15  *
16  * @param target New LivingEntity to target, or null to clear the target
17  */
18  public void setTarget(LivingEntity target);
19 
20  /**
21  * Gets the current target of this Creature
22  *
23  * @return Current target of this creature, or null if none exists
24  */
25  public LivingEntity getTarget();
26 }
LivingEntity getTarget()
void setTarget(LivingEntity target)