32 ::ll::TypedStorage<8, 16, ::mce::UUID> mUID;
33 ::ll::TypedStorage<8, 32, ::std::string> mName;
34 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mEntityId;
35 ::ll::TypedStorage<8, 16, ::std::optional<uint64>> mScope;
36 ::ll::TypedStorage<4, 4, float> mMaxDistToPlayers;
37 ::ll::TypedStorage<1, 1, bool> mAlwaysActive;
38 ::ll::TypedStorage<1, 1, bool> mEntityFound;
39 ::ll::TypedStorage<1, 1, bool> mSizeChanged;
40 ::ll::TypedStorage<1, 1, bool> mRemoved;
41 ::ll::TypedStorage<1, 1, bool> mIsDoneLoadingScoped;
42 ::ll::TypedStorage<1, 1, ::TickingAreaLoadMode> mLoadMode;
43 ::ll::TypedStorage<4, 12, ::Vec3> mLastChunkUpdatePos;
44 ::ll::TypedStorage<4, 12, ::Vec3> mLastPos;
45 ::ll::TypedStorage<4, 4, uint> mLastRadius;
46 ::ll::TypedStorage<8, 432, ::ChunkViewSource> mChunkSource;
47 ::ll::TypedStorage<8, 16, ::WeakRef<::BlockSource>> mBlockSource;
48 ::ll::TypedStorage<8, 32, ::TickingAreaView> mView;
58 virtual ~TickingArea() =
default;
60 virtual ::mce::UUID
const& getId()
const ;
62 virtual ::std::string
const& getName()
const ;
64 virtual ::ActorUniqueID
const& getEntityId()
const ;
66 virtual ::Bounds
const getBoundsCopy()
const ;
68 virtual bool isEntityOwned()
const ;
70 virtual bool isAlwaysActive()
const ;
72 virtual float getMaxDistToPlayers()
const ;
74 virtual ::ITickingAreaView
const& getView()
const ;
76 virtual ::ITickingAreaView& getView() ;
78 virtual ::WeakRef<::BlockSource>
const getBlockSource()
const ;
80 virtual ::WeakRef<::BlockSource> getBlockSource() ;
82 virtual ::TickingAreaDescription getDescription()
const ;
84 virtual ::TickingAreaLoadMode getLoadMode()
const ;
86 virtual void setLoadMode(::TickingAreaLoadMode loadMode,
::LevelStorage& levelStorage) ;
88 virtual bool isPreloadDone()
const ;
90 virtual void tick(
::Tick const& currentTick,
bool randomize) ;
92 virtual void tickSeasons(
::Random& random) ;
94 virtual void updatePosition(
::Vec3 const& pos) ;
98 virtual ::Actor* findOwner(uchar& pendingChunks) ;
100 virtual bool entityHasBeenFound()
const ;
102 virtual void setEntityFound() ;
104 virtual bool isRemoved() ;
108 virtual void onComponentChanged(
110 float maxDistToPlayers,
115 virtual bool isScoped()
const ;
117 virtual ::std::optional<uint64>
const& getScope()
const ;
119 virtual bool isDoneLoadingScoped()
const ;
121 virtual bool isStandalone()
const ;
131 ::std::string
const& name,
135 float maxDistToPlayers,
137 ::TickingAreaLoadMode loadMode
145 ::std::string
const& name,
149 float maxDistToPlayers,
151 ::TickingAreaLoadMode loadMode
165 ::std::string
const& name,
169 float maxDistToPlayers,
171 ::TickingAreaLoadMode loadMode
179 ::std::string
const& name,
183 float maxDistToPlayers,
185 ::TickingAreaLoadMode loadMode
193 MCFOLD ::mce::UUID
const& $getId()
const;
195 MCFOLD ::std::string
const& $getName()
const;
197 MCFOLD ::ActorUniqueID
const& $getEntityId()
const;
199 MCAPI ::Bounds
const $getBoundsCopy()
const;
201 MCAPI
bool $isEntityOwned()
const;
204 MCAPI
bool $isAlwaysActive()
const;
206 MCFOLD
bool $isAlwaysActive()
const;
209 MCAPI
float $getMaxDistToPlayers()
const;
211 MCAPI ::ITickingAreaView
const& $getView()
const;
213 MCAPI ::ITickingAreaView& $getView();
215 MCAPI ::WeakRef<::BlockSource>
const $getBlockSource()
const;
217 MCAPI ::WeakRef<::BlockSource> $getBlockSource();
219 MCAPI ::TickingAreaDescription $getDescription()
const;
221 MCAPI ::TickingAreaLoadMode $getLoadMode()
const;
223 MCAPI
void $setLoadMode(::TickingAreaLoadMode loadMode,
::LevelStorage& levelStorage);
225 MCAPI
bool $isPreloadDone()
const;
227 MCAPI
void $tick(
::Tick const& currentTick,
bool randomize);
229 MCAPI
void $tickSeasons(
::Random& random);
231 MCAPI
void $updatePosition(
::Vec3 const& pos);
235 MCAPI ::Actor* $findOwner(uchar& pendingChunks);
237 MCAPI
bool $entityHasBeenFound()
const;
239 MCAPI
void $setEntityFound();
241 MCAPI
bool $isRemoved();
246 $onComponentChanged(uint radius,
float maxDistToPlayers,
bool alwaysActive,
::LevelStorage& levelStorage);
248 MCFOLD
bool $isScoped()
const;
250 MCFOLD ::std::optional<uint64>
const& $getScope()
const;
252 MCFOLD
bool $isDoneLoadingScoped()
const;
254 MCAPI
bool $isStandalone()
const;