From 15a0319c89316d86f4a04bc52502b0386ebc9d09 Mon Sep 17 00:00:00 2001 From: fullwall Date: Sun, 9 Sep 2012 10:36:50 +0800 Subject: [PATCH] Implement new method --- .../java/net/citizensnpcs/npc/ai/CitizensNavigator.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/net/citizensnpcs/npc/ai/CitizensNavigator.java b/src/main/java/net/citizensnpcs/npc/ai/CitizensNavigator.java index 1f88bb412..e3453a8ac 100644 --- a/src/main/java/net/citizensnpcs/npc/ai/CitizensNavigator.java +++ b/src/main/java/net/citizensnpcs/npc/ai/CitizensNavigator.java @@ -11,6 +11,7 @@ import net.citizensnpcs.api.ai.event.NavigationBeginEvent; import net.citizensnpcs.api.ai.event.NavigationCancelEvent; import net.citizensnpcs.api.ai.event.NavigationCompleteEvent; import net.citizensnpcs.api.ai.event.NavigationReplaceEvent; +import net.citizensnpcs.api.npc.NPC; import net.citizensnpcs.api.util.DataKey; import net.citizensnpcs.npc.CitizensNPC; import net.citizensnpcs.util.NMS; @@ -57,6 +58,11 @@ public class CitizensNavigator implements Navigator { return localParams; } + @Override + public NPC getNPC() { + return npc; + } + @Override public Location getTargetAsLocation() { return isNavigating() ? executing.getTargetAsLocation() : null;