Constructor and Description |
---|
CitizensNavigator(net.citizensnpcs.api.npc.NPC npc) |
Modifier and Type | Method and Description |
---|---|
void |
cancelNavigation() |
net.citizensnpcs.api.ai.NavigatorParameters |
getDefaultParameters() |
net.citizensnpcs.api.ai.EntityTarget |
getEntityTarget() |
net.citizensnpcs.api.ai.NavigatorParameters |
getLocalParameters() |
net.citizensnpcs.api.npc.NPC |
getNPC() |
net.citizensnpcs.api.ai.PathStrategy |
getPathStrategy() |
Location |
getTargetAsLocation() |
net.citizensnpcs.api.ai.TargetType |
getTargetType() |
boolean |
isNavigating() |
boolean |
isPaused() |
void |
load(net.citizensnpcs.api.util.DataKey root) |
void |
onDespawn() |
void |
onSpawn() |
void |
run() |
void |
save(net.citizensnpcs.api.util.DataKey root) |
void |
setPaused(boolean paused) |
void |
setTarget(Entity target,
boolean aggressive) |
void |
setTarget(Iterable<Vector> path) |
void |
setTarget(Location target) |
public void cancelNavigation()
cancelNavigation
in interface net.citizensnpcs.api.ai.Navigator
public net.citizensnpcs.api.ai.NavigatorParameters getDefaultParameters()
getDefaultParameters
in interface net.citizensnpcs.api.ai.Navigator
public net.citizensnpcs.api.ai.EntityTarget getEntityTarget()
getEntityTarget
in interface net.citizensnpcs.api.ai.Navigator
public net.citizensnpcs.api.ai.NavigatorParameters getLocalParameters()
getLocalParameters
in interface net.citizensnpcs.api.ai.Navigator
public net.citizensnpcs.api.npc.NPC getNPC()
getNPC
in interface net.citizensnpcs.api.ai.Navigator
public net.citizensnpcs.api.ai.PathStrategy getPathStrategy()
getPathStrategy
in interface net.citizensnpcs.api.ai.Navigator
public Location getTargetAsLocation()
getTargetAsLocation
in interface net.citizensnpcs.api.ai.Navigator
public net.citizensnpcs.api.ai.TargetType getTargetType()
getTargetType
in interface net.citizensnpcs.api.ai.Navigator
public boolean isNavigating()
isNavigating
in interface net.citizensnpcs.api.ai.Navigator
public boolean isPaused()
isPaused
in interface net.citizensnpcs.api.ai.Navigator
public void load(net.citizensnpcs.api.util.DataKey root)
public void onDespawn()
public void onSpawn()
public void save(net.citizensnpcs.api.util.DataKey root)
public void setPaused(boolean paused)
setPaused
in interface net.citizensnpcs.api.ai.Navigator
public void setTarget(Entity target, boolean aggressive)
setTarget
in interface net.citizensnpcs.api.ai.Navigator
public void setTarget(Iterable<Vector> path)
setTarget
in interface net.citizensnpcs.api.ai.Navigator
public void setTarget(Location target)
setTarget
in interface net.citizensnpcs.api.ai.Navigator
Copyright © 2019. All rights reserved.