65 ::ll::TypedStorage<8, 8, ::GameCallbacks&> mGameCallbacks;
66 ::ll::TypedStorage<8, 8, ::IMinecraftEventing&> mEventing;
67 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ResourcePackManager>> mResourceLoader;
68 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::StructureManager>> mStructureManager;
69 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::GameModuleServer>> mGameModuleServer;
70 ::ll::TypedStorage<8, 8, ::PermissionsFile*> mPermissionsFile;
71 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PrivateKeyManager>> mServerKeys;
72 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::MinecraftServiceKeyManager>> mMinecraftServiceKeys;
73 ::ll::TypedStorage<8, 32, ::std::string const> mSaveGamePath;
74 ::ll::TypedStorage<8, 8, ::ServerMetrics*> mServerMetrics;
75 ::ll::TypedStorage<1, 1, bool const> mIsDedicatedServer;
76 ::ll::TypedStorage<1, 1, bool> mCorruptionDetected;
77 ::ll::TypedStorage<1, 1, bool> mFireOnLevelCorrupt;
78 ::ll::TypedStorage<8, 8, double> mFrameDuration;
79 ::ll::TypedStorage<8, 8, double> mLastFrameStart;
80 ::ll::TypedStorage<8, 8, ::std::chrono::seconds> mMaxPlayerIdleTime;
81 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::DefaultCommandsContextProvider>> mDefaultCommandsContextProvider;
82 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::MinecraftCommands>> mCommands;
83 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::GameSession>> mGameSession;
84 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::GameTestLevelListener>> mGameTestLevelListener;
85 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::MinecraftGameTest>> mGameTest;
86 ::ll::TypedStorage<8, 8, ::Timer&> mSimTimer;
87 ::ll::TypedStorage<8, 8, ::Timer&> mRealTimer;
88 ::ll::TypedStorage<8, 16, ::ClientOrServerNetworkSystemRef> mNetwork;
89 ::ll::TypedStorage<8, 8, ::PacketSender&> mPacketSender;
90 ::ll::TypedStorage<1, 1, ::SubClientId> mClientSubId;
91 ::ll::TypedStorage<8, 16, ::OwnerPtr<::EntityRegistry>> mEntityRegistry;
92 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ITickingSystem>> mAddMovementTickForCatchup;
105 mCreateServerNetworkHandler;
106 ::ll::TypedStorage<8, 64, ::brstd::move_only_function<::Bedrock::NotNullNonOwnerPtr<::FileArchiver>()
const>>
113 mCreateMinecraftCommands;
118 Minecraft& operator=(Minecraft
const&);
119 Minecraft(Minecraft
const&);
125 virtual ~Minecraft() ;
127 virtual void setSimTimePause(
bool pause);
129 virtual void setSimTimeScale(
float scale);
131 virtual bool getSimPaused()
const;
133 virtual bool isOnlineClient()
const;
135 virtual ::StackRefResult<::EntityRegistry> getEntityRegistry() ;
137 virtual ::StackRefResult<::EntityRegistry const> getEntityRegistry()
const ;
145 MCAPI
void _tryCatchupMovementTicks();
147 MCAPI
void clientReset();
151 MCAPI
void disconnectClient(
::NetworkIdentifier const&
id, ::Connection::DisconnectFailReason disconnectReason);
153 MCAPI
void earlyShutdownMainthread();
155 MCAPI ::ClientNetworkSystem& getClientNetworkSystem();
157 MCFOLD ::MinecraftCommands& getCommands();
159 MCFOLD ::IMinecraftEventing& getEventing()
const;
161 MCAPI ::Bedrock::NotNullNonOwnerPtr<::FileArchiver> getFileArchiver()
const;
163 MCFOLD ::GameModuleServer& getGameModuleServer();
165 MCAPI ::optional_ref<::MinecraftGameTest> getGameTest();
167 MCAPI
double getLastTimestep();
169 MCAPI ::Level* getLevel()
const;
172 MCAPI ::Bedrock::NonOwnerPointer<::MinecraftServiceKeyManager> getMinecraftServiceKeyManager();
176 MCAPI ::Bedrock::NonOwnerPointer<::NetEventCallback> getNetEventCallback();
179 MCFOLD ::ResourcePackManager& getResourceLoader();
181 MCAPI ::Bedrock::NonOwnerPointer<::ServerNetworkHandler> getServerNetworkHandler();
183 MCAPI ::ServerNetworkSystem& getServerNetworkSystem();
185 MCAPI ::Bedrock::NotNullNonOwnerPtr<::StructureManager> getStructureManager();
188 MCFOLD ::Timer
const& getTimer();
191 MCAPI
bool hasCommands();
193 MCAPI
bool hostMultiplayer(
194 ::std::string
const& serverName,
196 ::std::string
const& hostPublicKey,
197 ::std::unique_ptr<::NetEventCallback> clientNetworkHandler,
201 ::std::unordered_map<::PackIdVersion, ::std::string>
const& packIdToContentKey,
205 ::std::shared_ptr<::ScriptPackSettingsCache> packSettingsCache,
211 MCFOLD
void initAsDedicatedServer();
213 MCAPI
void initCommands();
215 MCFOLD
bool isDedicatedServer()
const;
217 MCAPI
bool isLeaveGameDone()
const;
220 MCFOLD
bool isModded();
224 MCAPI ::Bedrock::PubSub::Subscription registerLevelListener(::std::function<
void(
::Level*)> callback)
const;
226 MCAPI
bool requestInGamePause(
bool status);
229 MCAPI
void requestResourceReload();
232 MCAPI
void requestServerShutdown();
235 MCAPI
void resetGameSession();
238 MCAPI
void setGameModeReal(::GameType gameType);
240 MCAPI
void startClientGame(::std::unique_ptr<::NetEventCallback> legacyClientNetworkHandler);
243 MCAPI
void startLeaveGame(
bool stopNetwork);
248 MCAPI
void updateScreens();
255 MCAPI
static void _tryCatchupMovementTicks(
258 ::std::unique_ptr<::ITickingSystem>& addMovementTickForCatchup
277 MCAPI
void $setSimTimePause(
bool pause);
279 MCAPI
void $setSimTimeScale(
float scale);
281 MCAPI
bool $getSimPaused()
const;
283 MCAPI
bool $isOnlineClient()
const;
285 MCFOLD ::StackRefResult<::EntityRegistry> $getEntityRegistry();
287 MCFOLD ::StackRefResult<::EntityRegistry const> $getEntityRegistry()
const;