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/deps/core/utility/AutomaticID.h"
7#include "mc/world/actor/TempEPtr.h"
8#include "mc/world/actor/ai/goal/Goal.h"
9
10// auto generated forward declare list
11// clang-format off
12class Dimension;
13class Mob;
15class Player;
16// clang-format on
17
18class FollowOwnerGoal : public ::Goal {
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
23 ::ll::TypedStorage<8, 40, ::TempEPtr<::Mob>> mOwner;
24 ::ll::TypedStorage<4, 4, int> mTimeToRecalculatePath;
25 ::ll::TypedStorage<4, 4, float> mSpeed;
26 ::ll::TypedStorage<4, 4, float> mStartDistance;
27 ::ll::TypedStorage<4, 4, float> mStopDistance;
28 ::ll::TypedStorage<4, 4, float> mMaxDistance;
29 ::ll::TypedStorage<1, 1, bool> mOldAvoidWater;
30 ::ll::TypedStorage<1, 1, bool> mOldAvoidPortals;
31 ::ll::TypedStorage<1, 1, bool> mCanTeleport;
32 ::ll::TypedStorage<1, 1, bool> mIgnoreVibrations;
33 ::ll::TypedStorage<4, 4, int> mPostTeleportDistance;
34 ::ll::TypedStorage<1, 1, bool> mRandomizeAndCheckForClearanceWhenTeleporting;
35 ::ll::TypedStorage<1, 1, bool> mKeepFollowingAfterTeleporting;
36 // NOLINTEND
37
38public:
39 // virtual functions
40 // NOLINTBEGIN
41 // vIndex: 1
42 virtual bool canUse() /*override*/;
43
44 // vIndex: 2
45 virtual bool canContinueToUse() /*override*/;
46
47 // vIndex: 4
48 virtual void start() /*override*/;
49
50 // vIndex: 5
51 virtual void stop() /*override*/;
52
53 // vIndex: 6
54 virtual void tick() /*override*/;
55
56 // vIndex: 7
57 virtual void appendDebugInfo(::std::string& str) const /*override*/;
58
59 // vIndex: 9
60 virtual void
61 onPlayerDimensionChanged(::Player* player, ::DimensionType fromDimension, ::DimensionType toDimension) /*override*/;
62
63 // vIndex: 0
64 virtual ~FollowOwnerGoal() /*override*/ = default;
65 // NOLINTEND
66
67public:
68 // member functions
69 // NOLINTBEGIN
70 MCAPI FollowOwnerGoal(
71 ::Mob& mob,
72 float speed,
73 float startDistance,
74 float stopDistance,
75 bool canTeleport,
76 int postTeleportDistance,
77 bool ignoreVibrations,
78 float maxDistance
79 );
80
81 MCAPI bool _canReachOwner(::Mob& owner, ::NavigationComponent& navigationComponent) const;
82 // NOLINTEND
83
84public:
85 // constructor thunks
86 // NOLINTBEGIN
87 MCAPI void* $ctor(
88 ::Mob& mob,
89 float speed,
90 float startDistance,
91 float stopDistance,
92 bool canTeleport,
93 int postTeleportDistance,
94 bool ignoreVibrations,
95 float maxDistance
96 );
97 // NOLINTEND
98
99public:
100 // destructor thunk
101 // NOLINTBEGIN
102
103 // NOLINTEND
104
105public:
106 // virtual function thunks
107 // NOLINTBEGIN
108 MCAPI bool $canUse();
109
110 MCAPI bool $canContinueToUse();
111
112 MCAPI void $start();
113
114 MCAPI void $stop();
115
116 MCAPI void $tick();
117
118 MCAPI void $appendDebugInfo(::std::string& str) const;
119
120 MCAPI void $onPlayerDimensionChanged(::Player* player, ::DimensionType fromDimension, ::DimensionType toDimension);
121 // NOLINTEND
122
123public:
124 // vftables
125 // NOLINTBEGIN
126 MCAPI static void** $vftable();
127 // NOLINTEND
128};
Definition AutomaticID.h:6
Definition Dimension.h:83
Definition FollowOwnerGoal.h:18
Definition Goal.h:14
Definition Mob.h:47
Definition NavigationComponent.h:22
Definition Player.h:119