58class ServerLevel :
public ::Level {
62 ::ll::TypedStorage<8, 8, ::ResourcePackManager&> mServerResourcePackManager;
63 ::ll::TypedStorage<8, 8, ::ResourcePackManager&> mClientResourcePackManager;
64 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::TradeTables>> mTradeTable;
65 ::ll::TypedStorage<8, 16, ::Bedrock::UniqueOwnerPointer<::CommandManager>> mCommandManager;
66 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::MobEvents>> mMobEvents;
67 ::ll::TypedStorage<8, 16, ::gsl::not_null<::Bedrock::UniqueOwnerPointer<::TagCacheManager>>> mTagCacheManager;
68 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::PositionTrackingDB::PositionTrackingDBServer>>
69 mServerPositionTrackerDB;
70 ::ll::TypedStorage<8, 64, ::BossbarManager> mBossbarManager;
71 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::VolumeEntityManagerServer>> mVolumeEntityManager;
72 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::DynamicPropertiesManager>> mDynamicPropertiesManager;
73 ::ll::TypedStorage<8, 72, ::DynamicPropertiesDefinition> mDynamicPropertiesDefinition;
74 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnActorEntityAdded;
75 ::ll::TypedStorage<8, 16, ::gsl::not_null<::Bedrock::UniqueOwnerPointer<::ChunkGenerationManager>>>
76 mChunkGenerationManager;
77 ::ll::TypedStorage<8, 16, ::gsl::not_null<::OwnerPtr<::TickTimeManagerServer>>> mTickTimeManager;
78 ::ll::TypedStorage<8, 16, ::gsl::not_null<::Bedrock::UniqueOwnerPointer<::ServerPlayerSleepManager>>>
79 mServerPlayerSleepManager;
80 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnPlayerWakeUpSubscription;
81 ::ll::TypedStorage<8, 168, ::PlayerDeathManager> mPlayerDeathManager;
82 ::ll::TypedStorage<8, 48, ::LevelChunkMetaDataManager> mLevelChunkMetaDataManager;
83 ::ll::TypedStorage<8, 16, ::gsl::not_null<::Bedrock::UniqueOwnerPointer<::ServerMapDataManager>>> mMapDataManager;
84 ::ll::TypedStorage<8, 8, ::std::chrono::steady_clock::time_point> mNextTelemetrySendTime;
85 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ServerSubChunkLighter>> mServerSubChunkLighter;
86 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ServerLevelStatCollectors>> mScriptStatCollectors;
91 ServerLevel& operator=(ServerLevel
const&);
92 ServerLevel(ServerLevel
const&);
98 virtual ~ServerLevel() =
default;
100 virtual bool initialize(
101 ::std::string
const& levelName,
104 ::std::string
const* levelId,
105 ::std::optional<::std::reference_wrapper<
106 ::std::unordered_map<::std::string, ::std::unique_ptr<::BiomeJsonDocumentGlueResolvedBiomeData>>>>
107 biomeIdToResolvedData,
111 virtual ::PlayerSleepManager
const& getPlayerSleepManager()
const ;
113 virtual ::PlayerSleepManager& getPlayerSleepManager() ;
115 virtual ::Bedrock::NonOwnerPointer<::ServerPlayerSleepManager> getServerPlayerSleepManager() ;
117 virtual ::Bedrock::NonOwnerPointer<::ServerPlayerSleepManager const> getServerPlayerSleepManager()
const
120 virtual void setCommandsEnabled(
bool commandsEnabled) ;
122 virtual void setWorldTemplateOptionsUnlocked() ;
124 virtual ::ResourcePackManager* getClientResourcePackManager()
const ;
126 virtual ::ResourcePackManager* getServerResourcePackManager()
const ;
128 virtual ::TradeTables* getTradeTables() ;
130 virtual void runCommand(
133 ::CommandOriginSystem originSystem,
134 ::CurrentCmdVersion
const commandVersion
140 virtual void decrementTagCache(
141 ::std::string
const& tag,
145 virtual void incrementTagCache(
146 ::std::string
const& tag,
150 virtual ::Bedrock::NonOwnerPointer<::TagCacheManager> getTagCacheManager() ;
152 virtual ::LevelChunkMetaDataManager* getLevelChunkMetaDataManager() ;
154 virtual void loadFunctionManager() ;
156 virtual ::Random& getThreadRandom()
const ;
158 virtual ::PositionTrackingDB::PositionTrackingDBServer* getPositionTrackerDBServer()
const ;
160 virtual ::Bedrock::NonOwnerPointer<::VolumeEntityManagerServer> tryGetVolumeEntityManagerServer()
const
163 virtual void clearAllGenerationRequests(
::NetworkIdentifier const& player, ::SubClientId clientId) ;
165 virtual ::Bedrock::NonOwnerPointer<::ChunkGenerationManager> getChunkGenerationManager() ;
167 virtual ::Bedrock::NonOwnerPointer<::ChunkGenerationManager const> getChunkGenerationManager()
const ;
169 virtual ::Bedrock::NotNullNonOwnerPtr<::MapDataManager> getMapDataManager() ;
171 virtual ::GameModeExt::MessengerFactory createMessengerFactory()
const ;
173 virtual ::std::weak_ptr<::ISubChunkLighter> getSubChunkLighter()
const ;
175 virtual void _subTick() ;
177 virtual ::TickTimeManager
const& _getTickTimeManager()
const ;
179 virtual ::TickTimeManager& _getTickTimeManager() ;
181 virtual ::PlayerDeathManager* _getPlayerDeathManager() ;
183 virtual ::MapDataManager& _getMapDataManager() ;
185 virtual void _initializeMapDataManager() ;
201 MCAPI
bool $initialize(
202 ::std::string
const& levelName,
205 ::std::string
const* levelId,
206 ::std::optional<::std::reference_wrapper<
207 ::std::unordered_map<::std::string, ::std::unique_ptr<::BiomeJsonDocumentGlueResolvedBiomeData>>>>
208 biomeIdToResolvedData,
233 ::CommandOriginSystem originSystem,
234 ::CurrentCmdVersion
const commandVersion
240 ::std::string
const& tag,
245 ::std::string
const& tag,