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 ;
130 ::std::string
const& name,
134 float maxDistToPlayers,
136 ::TickingAreaLoadMode loadMode
148 ::std::string
const& name,
152 float maxDistToPlayers,
154 ::TickingAreaLoadMode loadMode
161 MCNAPI ::mce::UUID
const&
$getId()
const;
214 MCNAPI ::std::optional<uint64>
const&
$getScope()
const;
MCAPI void * $ctor(::Dimension &dimension, ::mce::UUID uniqueId, ::std::string const &name, ::ActorUniqueID entityId, ::Bounds const &bounds, bool isCircle, float maxDistToPlayers, bool alwaysActive, ::TickingAreaLoadMode loadMode)
MCAPI TickingArea(::Dimension &dimension, ::mce::UUID uniqueId, ::std::string const &name, ::ActorUniqueID entityId, ::Bounds const &bounds, bool isCircle, float maxDistToPlayers, bool alwaysActive, ::TickingAreaLoadMode loadMode)