48 ::ll::TypedStorage<4, 4, int> mCount;
56 ::ll::TypedStorage<8, 32, ::std::string> mName;
57 ::ll::TypedStorage<4, 48, ::Bounds> mBounds;
58 ::ll::TypedStorage<8, 80, ::Scripting::Promise<void, ::Scripting::Error>> mPromise;
59 ::ll::TypedStorage<4, 4, ::DimensionType> mDimensionType;
60 ::ll::TypedStorage<1, 1, bool> mFinishedLoading;
82 ::std::unordered_map<::mce::UUID, ::ScriptModuleMinecraft::ScriptTickingAreaManager::PromiseContext>>
89 ::std::unordered_map<::ChunkPos, ::ScriptModuleMinecraft::ScriptTickingAreaManager::Counter>>>
91 ::ll::TypedStorage<4, 4, int const> mMaxNumberOfChunks;
92 ::ll::TypedStorage<8, 16, ::Scripting::WeakLifetimeScope> mScope;
93 ::ll::TypedStorage<8, 8, ::gsl::not_null<::ServerLevel*>> mLevel;
98 ScriptTickingAreaManager& operator=(ScriptTickingAreaManager
const&);
99 ScriptTickingAreaManager();
106 virtual ~ScriptTickingAreaManager() ;
114 MCAPI ::Bounds _getChunkBounds(
::Vec3 const& from,
::Vec3 const& to)
const;
116 MCAPI ::std::optional<::ScriptModuleMinecraft::ScriptTickingArea>
119 MCAPI
bool _hasCapacity(::DimensionType
const& dimensionId,
::Bounds const& bounds);
121 MCAPI
bool _removeTickingAreas(::std::vector<::mce::UUID>
const& uuids);
123 MCAPI
void _removeTickingChunksFromCache(::DimensionType
const& dimensionId,
::Bounds const& bounds);
125 MCAPI ::Scripting::Result<
132 ::std::string
const& identifier,
137 getAllTickingAreas()
const;
140 getTickingArea(::std::variant<::std::string, ::ScriptModuleMinecraft::ScriptTickingArea>
const& area)
const;
144 MCAPI ::Scripting::Result<void, ::Scripting::EngineError> removeAllTickingAreas();
146 MCAPI ::Scripting::Result<void, ::ScriptModuleMinecraft::ScriptTickingAreaError, ::Scripting::EngineError>
147 removeTickingArea(::std::variant<::std::string, ::ScriptModuleMinecraft::ScriptTickingArea>
const& area);
153 MCAPI static ::Scripting::ClassBinding bind();
Definition ScriptTickingAreaManager.h:52
Definition ContextConfig.h:20