Files
DeltaZern/paper-api/src/main/java/org/bukkit/entity/Creature.java
T
Bukkit/Spigot 855f4133b6 Whitespace + general cleanup
By: Erik Broes <erikbroes@grum.nl>
2011-05-14 23:22:54 +02:00

25 lines
714 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.
* 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();
}