Implement new method

This commit is contained in:
fullwall 2012-09-09 10:36:50 +08:00
parent 8f1b6d7c33
commit 7abdca47a5

View File

@ -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;