57class ServerLevel :
public ::Level {
61 ::ll::TypedStorage<8, 8, ::ResourcePackManager&> mServerResourcePackManager;
62 ::ll::TypedStorage<8, 8, ::ResourcePackManager&> mClientResourcePackManager;
63 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::TradeTables>> mTradeTable;
64 ::ll::TypedStorage<8, 16, ::Bedrock::UniqueOwnerPointer<::CommandManager>> mCommandManager;
65 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::MobEvents>> mMobEvents;
66 ::ll::TypedStorage<8, 16, ::gsl::not_null<::Bedrock::UniqueOwnerPointer<::TagCacheManager>>> mTagCacheManager;
67 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::PositionTrackingDB::PositionTrackingDBServer>>
68 mServerPositionTrackerDB;
69 ::ll::TypedStorage<8, 64, ::BossbarManager> mBossbarManager;
70 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::VolumeEntityManagerServer>> mVolumeEntityManager;
71 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::DynamicPropertiesManager>> mDynamicPropertiesManager;
72 ::ll::TypedStorage<8, 72, ::DynamicPropertiesDefinition> mDynamicPropertiesDefinition;
73 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnActorEntityAdded;
74 ::ll::TypedStorage<8, 16, ::gsl::not_null<::Bedrock::UniqueOwnerPointer<::ChunkGenerationManager>>>
75 mChunkGenerationManager;
76 ::ll::TypedStorage<8, 16, ::gsl::not_null<::OwnerPtr<::TickTimeManagerServer>>> mTickTimeManager;
77 ::ll::TypedStorage<8, 16, ::gsl::not_null<::Bedrock::UniqueOwnerPointer<::ServerPlayerSleepManager>>>
78 mServerPlayerSleepManager;
79 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnPlayerWakeUpSubscription;
80 ::ll::TypedStorage<8, 168, ::PlayerDeathManager> mPlayerDeathManager;
81 ::ll::TypedStorage<8, 48, ::LevelChunkMetaDataManager> mLevelChunkMetaDataManager;
82 ::ll::TypedStorage<8, 16, ::gsl::not_null<::Bedrock::UniqueOwnerPointer<::ServerMapDataManager>>> mMapDataManager;
83 ::ll::TypedStorage<8, 8, ::std::chrono::steady_clock::time_point> mNextTelemetrySendTime;
84 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ServerSubChunkLighter>> mServerSubChunkLighter;
85 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ServerLevelStatCollectors>> mScriptStatCollectors;
90 ServerLevel& operator=(ServerLevel
const&);
91 ServerLevel(ServerLevel
const&);
97 virtual ~ServerLevel() =
default;
99 virtual bool initialize(
100 ::std::string
const& levelName,
103 ::std::string
const* levelId,
104 ::std::optional<::std::reference_wrapper<
105 ::std::unordered_map<::std::string, ::std::unique_ptr<::BiomeJsonDocumentGlueResolvedBiomeData>>>>
106 biomeIdToResolvedData
109 virtual ::PlayerSleepManager
const& getPlayerSleepManager()
const ;
111 virtual ::PlayerSleepManager& getPlayerSleepManager() ;
113 virtual ::Bedrock::NonOwnerPointer<::ServerPlayerSleepManager> getServerPlayerSleepManager() ;
115 virtual ::Bedrock::NonOwnerPointer<::ServerPlayerSleepManager const> getServerPlayerSleepManager()
const
118 virtual void setCommandsEnabled(
bool commandsEnabled) ;
120 virtual void setWorldTemplateOptionsUnlocked() ;
122 virtual ::ResourcePackManager* getClientResourcePackManager()
const ;
124 virtual ::ResourcePackManager* getServerResourcePackManager()
const ;
126 virtual ::TradeTables* getTradeTables() ;
128 virtual void runCommand(
131 ::CommandOriginSystem originSystem,
132 ::CurrentCmdVersion
const commandVersion
138 virtual void decrementTagCache(
139 ::std::string
const& tag,
143 virtual void incrementTagCache(
144 ::std::string
const& tag,
148 virtual ::Bedrock::NonOwnerPointer<::TagCacheManager> getTagCacheManager() ;
150 virtual ::LevelChunkMetaDataManager* getLevelChunkMetaDataManager() ;
152 virtual void loadFunctionManager() ;
154 virtual ::Random& getThreadRandom()
const ;
156 virtual ::PositionTrackingDB::PositionTrackingDBServer* getPositionTrackerDBServer()
const ;
158 virtual ::Bedrock::NonOwnerPointer<::VolumeEntityManagerServer> tryGetVolumeEntityManagerServer()
const
161 virtual void clearAllGenerationRequests(
::NetworkIdentifier const& player, ::SubClientId clientId) ;
163 virtual ::Bedrock::NonOwnerPointer<::ChunkGenerationManager> getChunkGenerationManager() ;
165 virtual ::Bedrock::NonOwnerPointer<::ChunkGenerationManager const> getChunkGenerationManager()
const ;
167 virtual ::Bedrock::NotNullNonOwnerPtr<::MapDataManager> getMapDataManager() ;
169 virtual ::GameModeExt::MessengerFactory createMessengerFactory()
const ;
171 virtual ::std::weak_ptr<::ISubChunkLighter> getSubChunkLighter()
const ;
173 virtual void _subTick() ;
175 virtual ::TickTimeManager
const& _getTickTimeManager()
const ;
177 virtual ::TickTimeManager& _getTickTimeManager() ;
179 virtual ::PlayerDeathManager* _getPlayerDeathManager() ;
181 virtual ::MapDataManager& _getMapDataManager() ;
183 virtual void _initializeMapDataManager() ;
189 MCAPI
void _onActorEntityAdded(
::Actor& actor);
191 MCAPI
void _onPlayerWakeUp(
::Player& player);
193 MCAPI ::Bedrock::NotNullNonOwnerPtr<::WorldClockRegistryServer> getWorldClockRegistryServer()
const;
199 MCAPI
bool $initialize(
200 ::std::string
const& levelName,
203 ::std::string
const* levelId,
204 ::std::optional<::std::reference_wrapper<
205 ::std::unordered_map<::std::string, ::std::unique_ptr<::BiomeJsonDocumentGlueResolvedBiomeData>>>>
206 biomeIdToResolvedData
209 MCAPI ::PlayerSleepManager
const& $getPlayerSleepManager()
const;
211 MCAPI ::PlayerSleepManager& $getPlayerSleepManager();
213 MCAPI ::Bedrock::NonOwnerPointer<::ServerPlayerSleepManager> $getServerPlayerSleepManager();
215 MCAPI ::Bedrock::NonOwnerPointer<::ServerPlayerSleepManager const> $getServerPlayerSleepManager()
const;
217 MCAPI
void $setCommandsEnabled(
bool commandsEnabled);
219 MCAPI
void $setWorldTemplateOptionsUnlocked();
221 MCAPI ::ResourcePackManager* $getClientResourcePackManager()
const;
223 MCAPI ::ResourcePackManager* $getServerResourcePackManager()
const;
225 MCAPI ::TradeTables* $getTradeTables();
227 MCAPI
void $runCommand(
230 ::CommandOriginSystem originSystem,
231 ::CurrentCmdVersion
const commandVersion
236 MCAPI
void $decrementTagCache(
237 ::std::string
const& tag,
241 MCAPI
void $incrementTagCache(
242 ::std::string
const& tag,
246 MCAPI ::Bedrock::NonOwnerPointer<::TagCacheManager> $getTagCacheManager();
248 MCAPI ::LevelChunkMetaDataManager* $getLevelChunkMetaDataManager();
250 MCAPI
void $loadFunctionManager();
253 MCAPI ::Random& $getThreadRandom()
const;
255 MCFOLD ::Random& $getThreadRandom()
const;
258 MCAPI ::PositionTrackingDB::PositionTrackingDBServer* $getPositionTrackerDBServer()
const;
260 MCAPI ::Bedrock::NonOwnerPointer<::VolumeEntityManagerServer> $tryGetVolumeEntityManagerServer()
const;
262 MCAPI
void $clearAllGenerationRequests(
::NetworkIdentifier const& player, ::SubClientId clientId);
264 MCAPI ::Bedrock::NonOwnerPointer<::ChunkGenerationManager> $getChunkGenerationManager();
266 MCAPI ::Bedrock::NonOwnerPointer<::ChunkGenerationManager const> $getChunkGenerationManager()
const;
268 MCAPI ::Bedrock::NotNullNonOwnerPtr<::MapDataManager> $getMapDataManager();
270 MCAPI ::GameModeExt::MessengerFactory $createMessengerFactory()
const;
272 MCAPI ::std::weak_ptr<::ISubChunkLighter> $getSubChunkLighter()
const;
274 MCAPI
void $_subTick();
276 MCAPI ::TickTimeManager
const& $_getTickTimeManager()
const;
278 MCAPI ::TickTimeManager& $_getTickTimeManager();
280 MCAPI ::PlayerDeathManager* $_getPlayerDeathManager();
282 MCAPI ::MapDataManager& $_getMapDataManager();
284 MCAPI
void $_initializeMapDataManager();