mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 17:01:56 +01:00
Added Creature.getTarget
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
913e6d484a
commit
f0f2768937
1 changed files with 11 additions and 5 deletions
|
@ -1,17 +1,23 @@
|
||||||
package org.bukkit.entity;
|
package org.bukkit.entity;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a Creature. Any LivingEntity that is not human is a Creature.
|
* Represents a Creature. Creatures are non-intelligent monsters or animals which
|
||||||
* @author Cogito
|
* have very simple abilities.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
public interface Creature extends LivingEntity{
|
public interface Creature extends LivingEntity {
|
||||||
/**
|
/**
|
||||||
* Instructs this Creature to set the specified LivingEntity as its target.
|
* Instructs this Creature to set the specified LivingEntity as its target.
|
||||||
* Hostile creatures may attack their target, and friendly creatures may
|
* Hostile creatures may attack their target, and friendly creatures may
|
||||||
* follow their target.
|
* 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);
|
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…
Reference in a new issue