LeviLamina
Loading...
Searching...
No Matches
FollowOwnerGoal.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/actor/TempEPtr.h"
7#include "mc/world/actor/ai/goal/BaseGoal.h"
8
9// auto generated forward declare list
10// clang-format off
11class Mob;
13class Player;
14struct DimensionType;
15// clang-format on
16
17class FollowOwnerGoal : public ::BaseGoal {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
22 ::ll::TypedStorage<8, 40, ::TempEPtr<::Mob>> mOwner;
23 ::ll::TypedStorage<4, 4, int> mTimeToRecalculatePath;
24 ::ll::TypedStorage<4, 4, float> mSpeed;
25 ::ll::TypedStorage<4, 4, float> mStartDistance;
26 ::ll::TypedStorage<4, 4, float> mStopDistance;
27 ::ll::TypedStorage<4, 4, float> mMaxDistance;
28 ::ll::TypedStorage<1, 1, bool> mOldAvoidWater;
29 ::ll::TypedStorage<1, 1, bool> mOldAvoidPortals;
30 ::ll::TypedStorage<1, 1, bool> mCanTeleport;
31 ::ll::TypedStorage<1, 1, bool> mIgnoreVibrations;
32 ::ll::TypedStorage<4, 4, int> mPostTeleportDistance;
33 ::ll::TypedStorage<1, 1, bool> mRandomizeAndCheckForClearanceWhenTeleporting;
34 ::ll::TypedStorage<1, 1, bool> mKeepFollowingAfterTeleporting;
35 // NOLINTEND
36
37public:
38 // prevent constructor by default
39 FollowOwnerGoal& operator=(FollowOwnerGoal const&);
40 FollowOwnerGoal(FollowOwnerGoal const&);
41 FollowOwnerGoal();
42
43public:
44 // virtual functions
45 // NOLINTBEGIN
46 virtual bool canUse() /*override*/;
47
48 virtual bool canContinueToUse() /*override*/;
49
50 virtual void start() /*override*/;
51
52 virtual void stop() /*override*/;
53
54 virtual void tick() /*override*/;
55
56 virtual void appendDebugInfo(::std::string& str) const /*override*/;
57
58 virtual void
59 onPlayerDimensionChanged(::Player* player, ::DimensionType fromDimension, ::DimensionType toDimension) /*override*/;
60 // NOLINTEND
61
62public:
63 // member functions
64 // NOLINTBEGIN
65 MCAPI explicit FollowOwnerGoal(::Mob& mob);
66
67 MCAPI bool _canReachOwner(::Mob& owner, ::NavigationComponent& navigationComponent) const;
68
69 MCAPI void _tryToTeleport(::Mob& owner) const;
70 // NOLINTEND
71
72public:
73 // constructor thunks
74 // NOLINTBEGIN
75 MCAPI void* $ctor(::Mob& mob);
76 // NOLINTEND
77
78public:
79 // virtual function thunks
80 // NOLINTBEGIN
81 MCAPI bool $canUse();
82
83 MCAPI bool $canContinueToUse();
84
85 MCAPI void $start();
86
87 MCAPI void $stop();
88
89 MCAPI void $tick();
90
91 MCAPI void $appendDebugInfo(::std::string& str) const;
92
93 MCAPI void $onPlayerDimensionChanged(::Player* player, ::DimensionType fromDimension, ::DimensionType toDimension);
94
95
96 // NOLINTEND
97
98public:
99 // vftables
100 // NOLINTBEGIN
101 MCNAPI static void** $vftable();
102 // NOLINTEND
103};
static MCAPI void ** $vftable()
Definition Mob.h:57
Definition NavigationComponent.h:22
Definition Player.h:137
Definition DimensionType.h:5