19 std::vector<std::pair<Position, float>>
FindPath(
const BehaviourClient& client,
const Position& start,
const Position& end,
const int dist_tolerance,
const int min_end_dist,
const int min_end_dist_xz,
const bool allow_jump);
31 Status GoTo(BehaviourClient& client,
const Position& goal,
const int dist_tolerance = 0,
const int min_end_dist = 0,
const int min_end_dist_xz = 0,
const bool allow_jump =
true,
const bool sprint =
true,
const float speed_factor = 1.0f);
46 Status GoToDouble(BehaviourClient& client,
const Vector3<double>& goal,
const bool allow_jump =
true,
const bool sprint =
true,
const float speed_factor = 1.0f);
60 Status LookAt(BehaviourClient& client,
const Vector3<double>& target,
const bool set_pitch =
true,
const bool sync_to_server =
true);
Status GoToDouble(BehaviourClient &client, const Vector3< double > &goal, const bool allow_jump=true, const bool sprint=true, const float speed_factor=1.0f)
Find a path to a position and navigate to it.
Status GoTo(BehaviourClient &client, const Position &goal, const int dist_tolerance=0, const int min_end_dist=0, const int min_end_dist_xz=0, const bool allow_jump=true, const bool sprint=true, const float speed_factor=1.0f)
Find a path to a block position and navigate to it.
Status StartFlying(BehaviourClient &client)
Make the current player fly (as in creative/spectator mode, NOT WITH ELYTRA)
Status SyncPosRotToServer(BehaviourClient &client)
This task will make sure the current player position/orientation have been sent to the server This is...
Status LookAt(BehaviourClient &client, const Vector3< double > &target, const bool set_pitch=true, const bool sync_to_server=true)
Turn the camera to look at a given target and send the new rotation to the server.
std::vector< std::pair< Position, float > > FindPath(const BehaviourClient &client, const Position &start, const Position &end, const int dist_tolerance, const int min_end_dist, const int min_end_dist_xz, const bool allow_jump)
Not actually a task.
Status GoToDoubleBlackboard(BehaviourClient &client)
Same thing as GoToDouble, but reads its parameters from the blackboard.
Status GoToBlackboard(BehaviourClient &client)
Same thing as GoTo, but reads its parameters from the blackboard.
Status StopFlying(BehaviourClient &client)
Make the current player not fly (as in creative/spectator mode, NOT WITH ELYTRA)
Status LookAtBlackboard(BehaviourClient &client)
Same thing as LookAt, but reads its parameters from the blackboard.