public class MoveToGoal extends BehaviorGoalAdapter
Constructor and Description |
---|
MoveToGoal(NPC npc,
org.bukkit.Location target) |
Modifier and Type | Method and Description |
---|---|
void |
reset()
Resets the goal and any resources or state it is holding.
|
BehaviorStatus |
run()
Ticks the behavior, optionally changing the state that it is in.
|
boolean |
shouldExecute() |
create, run, shouldExecute
public MoveToGoal(NPC npc, org.bukkit.Location target)
public void reset()
Goal
public BehaviorStatus run()
Behavior
public boolean shouldExecute()
Copyright © 2021. All rights reserved.