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 // prevent constructor by default
40 FollowOwnerGoal& operator=(FollowOwnerGoal const&);
43
44public:
45 // virtual functions
46 // NOLINTBEGIN
47 // vIndex: 1
48 virtual bool canUse() /*override*/;
49
50 // vIndex: 2
51 virtual bool canContinueToUse() /*override*/;
52
53 // vIndex: 4
54 virtual void start() /*override*/;
55
56 // vIndex: 5
57 virtual void stop() /*override*/;
58
59 // vIndex: 6
60 virtual void tick() /*override*/;
61
62 // vIndex: 7
63 virtual void appendDebugInfo(::std::string& str) const /*override*/;
64
65 // vIndex: 9
66 virtual void
67 onPlayerDimensionChanged(::Player* player, ::DimensionType fromDimension, ::DimensionType toDimension) /*override*/;
68
69 // vIndex: 0
70 virtual ~FollowOwnerGoal() /*override*/ = default;
71 // NOLINTEND
72
73public:
74 // member functions
75 // NOLINTBEGIN
77 ::Mob& mob,
78 float speed,
79 float startDistance,
80 float stopDistance,
81 bool canTeleport,
82 int postTeleportDistance,
83 bool ignoreVibrations,
84 float maxDistance
85 );
86
87 MCNAPI bool _canReachOwner(::Mob& owner, ::NavigationComponent& navigationComponent) const;
88 // NOLINTEND
89
90public:
91 // constructor thunks
92 // NOLINTBEGIN
93 MCNAPI void* $ctor(
94 ::Mob& mob,
95 float speed,
96 float startDistance,
97 float stopDistance,
98 bool canTeleport,
99 int postTeleportDistance,
100 bool ignoreVibrations,
101 float maxDistance
102 );
103 // NOLINTEND
104
105public:
106 // virtual function thunks
107 // NOLINTBEGIN
108 MCNAPI bool $canUse();
109
110 MCNAPI bool $canContinueToUse();
111
112 MCNAPI void $start();
113
114 MCNAPI void $stop();
115
116 MCNAPI void $tick();
117
118 MCNAPI void $appendDebugInfo(::std::string& str) const;
119
120 MCNAPI void $onPlayerDimensionChanged(::Player* player, ::DimensionType fromDimension, ::DimensionType toDimension);
121 // NOLINTEND
122
123public:
124 // vftables
125 // NOLINTBEGIN
126 MCNAPI static void** $vftable();
127 // NOLINTEND
128};
Definition AutomaticID.h:6
Definition Dimension.h:83
Definition FollowOwnerGoal.h:18
MCAPI void $start()
MCAPI void * $ctor(::Mob &mob, float speed, float startDistance, float stopDistance, bool canTeleport, int postTeleportDistance, bool ignoreVibrations, float maxDistance)
MCAPI FollowOwnerGoal(::Mob &mob, float speed, float startDistance, float stopDistance, bool canTeleport, int postTeleportDistance, bool ignoreVibrations, float maxDistance)
MCAPI void $stop()
MCAPI bool _canReachOwner(::Mob &owner, ::NavigationComponent &navigationComponent) const
MCAPI void $onPlayerDimensionChanged(::Player *player, ::DimensionType fromDimension, ::DimensionType toDimension)
MCAPI bool $canContinueToUse()
MCAPI void $tick()
MCAPI void $appendDebugInfo(::std::string &str) const
static MCAPI void ** $vftable()
MCAPI bool $canUse()
Definition Goal.h:14
Definition Mob.h:47
Definition NavigationComponent.h:22
Definition Player.h:119