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