public class MCTargetStrategy extends Object implements net.citizensnpcs.api.ai.PathStrategy, net.citizensnpcs.api.ai.EntityTarget
Modifier and Type | Class and Description |
---|---|
static interface |
MCTargetStrategy.TargetNavigator |
Constructor and Description |
---|
MCTargetStrategy(net.citizensnpcs.api.npc.NPC npc,
Entity target,
boolean aggro,
net.citizensnpcs.api.ai.NavigatorParameters params) |
Modifier and Type | Method and Description |
---|---|
void |
clearCancelReason() |
net.citizensnpcs.api.ai.event.CancelReason |
getCancelReason() |
Iterable<Vector> |
getPath() |
Entity |
getTarget() |
Location |
getTargetAsLocation() |
net.citizensnpcs.api.ai.TargetType |
getTargetType() |
boolean |
isAggressive() |
void |
stop() |
String |
toString() |
boolean |
update() |
public MCTargetStrategy(net.citizensnpcs.api.npc.NPC npc, Entity target, boolean aggro, net.citizensnpcs.api.ai.NavigatorParameters params)
public void clearCancelReason()
clearCancelReason
in interface net.citizensnpcs.api.ai.PathStrategy
public net.citizensnpcs.api.ai.event.CancelReason getCancelReason()
getCancelReason
in interface net.citizensnpcs.api.ai.PathStrategy
public Iterable<Vector> getPath()
getPath
in interface net.citizensnpcs.api.ai.PathStrategy
public Entity getTarget()
getTarget
in interface net.citizensnpcs.api.ai.EntityTarget
public Location getTargetAsLocation()
getTargetAsLocation
in interface net.citizensnpcs.api.ai.PathStrategy
public net.citizensnpcs.api.ai.TargetType getTargetType()
getTargetType
in interface net.citizensnpcs.api.ai.PathStrategy
public boolean isAggressive()
isAggressive
in interface net.citizensnpcs.api.ai.EntityTarget
public void stop()
stop
in interface net.citizensnpcs.api.ai.PathStrategy
public boolean update()
update
in interface net.citizensnpcs.api.ai.PathStrategy
Copyright © 2019. All rights reserved.