LeviLamina
Loading...
Searching...
No Matches
TickingArea.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/game_refs/WeakRef.h"
7#include "mc/world/level/ticking/ITickingArea.h"
8#include "mc/world/level/ticking/TickingAreaLoadMode.h"
9
10// auto generated forward declare list
11// clang-format off
12class Actor;
13class BlockSource;
14class Dimension;
16class LevelStorage;
17class Random;
18class Vec3;
19struct ActorUniqueID;
20struct Bounds;
21struct Tick;
23namespace mce { class UUID; }
24// clang-format on
25
27public:
28 // member variables
29 // NOLINTBEGIN
45 // NOLINTEND
46
47public:
48 // prevent constructor by default
49 TickingArea& operator=(TickingArea const&);
52
53public:
54 // virtual functions
55 // NOLINTBEGIN
56 // vIndex: 0
57 virtual ~TickingArea() /*override*/;
58
59 // vIndex: 1
60 virtual ::mce::UUID const& getId() const /*override*/;
61
62 // vIndex: 2
63 virtual ::std::string const& getName() const /*override*/;
64
65 // vIndex: 3
66 virtual ::ActorUniqueID const& getEntityId() const /*override*/;
67
68 // vIndex: 7
69 virtual ::Bounds const& getBounds() const /*override*/;
70
71 // vIndex: 4
72 virtual bool isEntityOwned() const /*override*/;
73
74 // vIndex: 8
75 virtual bool isAlwaysActive() const /*override*/;
76
77 // vIndex: 9
78 virtual float getMaxDistToPlayers() const /*override*/;
79
80 // vIndex: 11
81 virtual ::ITickingAreaView const& getView() const /*override*/;
82
83 // vIndex: 10
84 virtual ::ITickingAreaView& getView() /*override*/;
85
86 // vIndex: 6
87 virtual ::WeakRef<::BlockSource> const getBlockSource() const /*override*/;
88
89 // vIndex: 5
90 virtual ::WeakRef<::BlockSource> getBlockSource() /*override*/;
91
92 // vIndex: 12
93 virtual ::TickingAreaDescription getDescription() const /*override*/;
94
95 // vIndex: 13
96 virtual ::TickingAreaLoadMode getLoadMode() const /*override*/;
97
98 // vIndex: 14
99 virtual void setLoadMode(::TickingAreaLoadMode loadMode, ::LevelStorage& levelStorage) /*override*/;
100
101 // vIndex: 15
102 virtual bool isPreloadDone() const /*override*/;
103
104 // vIndex: 16
105 virtual void tick(::Tick const& currentTick, bool randomize) /*override*/;
106
107 // vIndex: 17
108 virtual void tickSeasons(::Random& random) /*override*/;
109
110 // vIndex: 18
111 virtual void updatePosition(::Vec3 const& pos) /*override*/;
112
113 // vIndex: 19
114 virtual void updateAndCenter(::LevelStorage& levelStorage, ::Tick currentLevelTick) /*override*/;
115
116 // vIndex: 20
117 virtual ::Actor* findOwner(uchar& pendingChunks) /*override*/;
118
119 // vIndex: 21
120 virtual bool entityHasBeenFound() const /*override*/;
121
122 // vIndex: 22
123 virtual void setEntityFound() /*override*/;
124
125 // vIndex: 23
126 virtual bool isRemoved() /*override*/;
127
128 // vIndex: 24
129 virtual void remove(::LevelStorage& levelStorage) /*override*/;
130
131 // vIndex: 25
132 virtual void onComponentChanged(
133 uint radius,
134 float maxDistToPlayers,
135 bool alwaysActive,
136 ::LevelStorage& levelStorage
137 ) /*override*/;
138
139 // vIndex: 26
140 virtual void updateBlockSourceCurrentTick(::Tick const& currentTick) /*override*/;
141 // NOLINTEND
142
143public:
144 // member functions
145 // NOLINTBEGIN
146 MCAPI TickingArea(
147 ::Dimension& dimension,
148 ::mce::UUID uniqueId,
149 ::std::string const& name,
150 ::ActorUniqueID entityId,
151 ::Bounds const& bounds,
152 bool isCircle,
153 float maxDistToPlayers,
154 bool alwaysActive,
155 ::TickingAreaLoadMode loadMode
156 );
157
158 MCAPI void _center(::LevelStorage& levelStorage);
159
160 MCAPI void _save(::LevelStorage& levelStorage);
161 // NOLINTEND
162
163public:
164 // constructor thunks
165 // NOLINTBEGIN
166 MCAPI void* $ctor(
167 ::Dimension& dimension,
168 ::mce::UUID uniqueId,
169 ::std::string const& name,
170 ::ActorUniqueID entityId,
171 ::Bounds const& bounds,
172 bool isCircle,
173 float maxDistToPlayers,
174 bool alwaysActive,
175 ::TickingAreaLoadMode loadMode
176 );
177 // NOLINTEND
178
179public:
180 // destructor thunk
181 // NOLINTBEGIN
182 MCAPI void $dtor();
183 // NOLINTEND
184
185public:
186 // virtual function thunks
187 // NOLINTBEGIN
188 MCFOLD ::mce::UUID const& $getId() const;
189
190 MCFOLD ::std::string const& $getName() const;
191
192 MCFOLD ::ActorUniqueID const& $getEntityId() const;
193
194 MCAPI ::Bounds const& $getBounds() const;
195
196 MCAPI bool $isEntityOwned() const;
197
198 MCAPI bool $isAlwaysActive() const;
199
200 MCAPI float $getMaxDistToPlayers() const;
201
202 MCFOLD ::ITickingAreaView const& $getView() const;
203
204 MCFOLD ::ITickingAreaView& $getView();
205
206 MCFOLD ::WeakRef<::BlockSource> const $getBlockSource() const;
207
208 MCFOLD ::WeakRef<::BlockSource> $getBlockSource();
209
210 MCAPI ::TickingAreaDescription $getDescription() const;
211
212 MCAPI void $setLoadMode(::TickingAreaLoadMode loadMode, ::LevelStorage& levelStorage);
213
214 MCAPI bool $isPreloadDone() const;
215
216 MCAPI void $tick(::Tick const& currentTick, bool randomize);
217
218 MCAPI void $tickSeasons(::Random& random);
219
220 MCAPI void $updatePosition(::Vec3 const& pos);
221
222 MCAPI void $updateAndCenter(::LevelStorage& levelStorage, ::Tick currentLevelTick);
223
224 MCAPI ::Actor* $findOwner(uchar& pendingChunks);
225
226 MCAPI bool $entityHasBeenFound() const;
227
228 MCAPI void $setEntityFound();
229
230 MCAPI bool $isRemoved();
231
232 MCAPI void $remove(::LevelStorage& levelStorage);
233
234 MCAPI void
235 $onComponentChanged(uint radius, float maxDistToPlayers, bool alwaysActive, ::LevelStorage& levelStorage);
236
237 MCAPI void $updateBlockSourceCurrentTick(::Tick const& currentTick);
238 // NOLINTEND
239
240public:
241 // vftables
242 // NOLINTBEGIN
243 MCAPI static void** $vftable();
244 // NOLINTEND
245};
Definition Actor.h:104
Definition BlockSource.h:67
Definition Dimension.h:83
Definition ITickingAreaView.h:20
Definition ITickingArea.h:25
Definition LevelStorage.h:24
Definition Random.h:16
Definition TickingArea.h:26
Definition Vec3.h:10
Definition UUID.h:7
Definition ActorUniqueID.h:5
Definition Bounds.h:10
Definition Tick.h:5
Definition TickingAreaDescription.h:5
Definition Alias.h:14