Skip to content

Commit

Permalink
Add setTarget(Entity) to Navigator
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Mar 30, 2013
1 parent 9fba2ab commit 23610ad
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/main/java/net/citizensnpcs/api/ai/Navigator.java
Expand Up @@ -3,6 +3,7 @@
import net.citizensnpcs.api.npc.NPC;

import org.bukkit.Location;
import org.bukkit.entity.Entity;
import org.bukkit.entity.LivingEntity;

/**
Expand Down Expand Up @@ -68,14 +69,26 @@ public interface Navigator {
*/
boolean isNavigating();

/**
* Sets the current navigation to an entity target.
*
* @param target
* The {@link Entity} to path towards
* @param aggressive
* Whether to attack the target when close enough
*/
void setTarget(Entity target, boolean aggressive);

/**
* Sets the current navigation to an entity target.
*
* @param target
* The {@link LivingEntity} to path towards
* @param aggressive
* Whether to attack the target when close enough
* @deprecated See {@link #setTarget(Entity, boolean)}
*/
@Deprecated
void setTarget(LivingEntity target, boolean aggressive);

/**
Expand Down

0 comments on commit 23610ad

Please sign in to comment.