mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-01-10 02:17:35 +01:00
Implement new method
This commit is contained in:
parent
168ea380e2
commit
15a0319c89
@ -11,6 +11,7 @@ import net.citizensnpcs.api.ai.event.NavigationBeginEvent;
|
|||||||
import net.citizensnpcs.api.ai.event.NavigationCancelEvent;
|
import net.citizensnpcs.api.ai.event.NavigationCancelEvent;
|
||||||
import net.citizensnpcs.api.ai.event.NavigationCompleteEvent;
|
import net.citizensnpcs.api.ai.event.NavigationCompleteEvent;
|
||||||
import net.citizensnpcs.api.ai.event.NavigationReplaceEvent;
|
import net.citizensnpcs.api.ai.event.NavigationReplaceEvent;
|
||||||
|
import net.citizensnpcs.api.npc.NPC;
|
||||||
import net.citizensnpcs.api.util.DataKey;
|
import net.citizensnpcs.api.util.DataKey;
|
||||||
import net.citizensnpcs.npc.CitizensNPC;
|
import net.citizensnpcs.npc.CitizensNPC;
|
||||||
import net.citizensnpcs.util.NMS;
|
import net.citizensnpcs.util.NMS;
|
||||||
@ -57,6 +58,11 @@ public class CitizensNavigator implements Navigator {
|
|||||||
return localParams;
|
return localParams;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public NPC getNPC() {
|
||||||
|
return npc;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Location getTargetAsLocation() {
|
public Location getTargetAsLocation() {
|
||||||
return isNavigating() ? executing.getTargetAsLocation() : null;
|
return isNavigating() ? executing.getTargetAsLocation() : null;
|
||||||
|
Loading…
Reference in New Issue
Block a user