64 ::ll::TypedStorage<8, 8, ::GameCallbacks&> mGameCallbacks;
65 ::ll::TypedStorage<8, 8, ::IMinecraftEventing&> mEventing;
66 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ResourcePackManager>> mResourceLoader;
67 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::StructureManager>> mStructureManager;
68 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::GameModuleServer>> mGameModuleServer;
69 ::ll::TypedStorage<8, 8, ::PermissionsFile*> mPermissionsFile;
70 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PrivateKeyManager>> mServerKeys;
71 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::MinecraftServiceKeyManager>> mMinecraftServiceKeys;
72 ::ll::TypedStorage<8, 32, ::std::string const> mSaveGamePath;
73 ::ll::TypedStorage<8, 8, ::ServerMetrics*> mServerMetrics;
74 ::ll::TypedStorage<1, 1, bool const> mIsDedicatedServer;
75 ::ll::TypedStorage<1, 1, bool> mCorruptionDetected;
76 ::ll::TypedStorage<1, 1, bool> mFireOnLevelCorrupt;
77 ::ll::TypedStorage<8, 8, double> mFrameDuration;
78 ::ll::TypedStorage<8, 8, double> mLastFrameStart;
79 ::ll::TypedStorage<8, 8, ::std::chrono::seconds> mMaxPlayerIdleTime;
80 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::DefaultCommandsContextProvider>> mDefaultCommandsContextProvider;
81 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::MinecraftCommands>> mCommands;
82 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::GameSession>> mGameSession;
83 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::GameTestLevelListener>> mGameTestLevelListener;
84 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::MinecraftGameTest>> mGameTest;
85 ::ll::TypedStorage<8, 8, ::Timer&> mSimTimer;
86 ::ll::TypedStorage<8, 8, ::Timer&> mRealTimer;
87 ::ll::TypedStorage<8, 16, ::ClientOrServerNetworkSystemRef> mNetwork;
88 ::ll::TypedStorage<8, 8, ::PacketSender&> mPacketSender;
89 ::ll::TypedStorage<1, 1, ::SubClientId> mClientSubId;
90 ::ll::TypedStorage<8, 16, ::OwnerPtr<::EntityRegistry>> mEntityRegistry;
91 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ITickingSystem>> mAddMovementTickForCatchup;
104 mCreateServerNetworkHandler;
105 ::ll::TypedStorage<8, 64, ::brstd::move_only_function<::Bedrock::NotNullNonOwnerPtr<::FileArchiver>()
const>>
112 mCreateMinecraftCommands;
117 Minecraft& operator=(Minecraft
const&);
118 Minecraft(Minecraft
const&);
124 virtual ~Minecraft() ;
126 virtual void setSimTimePause(
bool pause);
128 virtual void setSimTimeScale(
float scale);
130 virtual bool getSimPaused()
const;
132 virtual bool isOnlineClient()
const;
134 virtual ::StackRefResult<::EntityRegistry> getEntityRegistry() ;
136 virtual ::StackRefResult<::EntityRegistry const> getEntityRegistry()
const ;
144 MCAPI
void _tryCatchupMovementTicks();
146 MCAPI_S
void activateAllowList();
150 MCAPI
void disconnectClient(
::NetworkIdentifier const&
id, ::Connection::DisconnectFailReason disconnectReason);
152 MCAPI_S ::optional_ref<::MinecraftGameTest> getGameTest();
154 MCAPI ::Level* getLevel()
const;
156 MCAPI_C ::Bedrock::NonOwnerPointer<::NetEventCallback> getNetEventCallback();
158 MCAPI ::Bedrock::NonOwnerPointer<::ServerNetworkHandler> getServerNetworkHandler();
160 MCAPI_C ::ServerNetworkSystem& getServerNetworkSystem();
162 MCAPI ::Bedrock::NotNullNonOwnerPtr<::StructureManager> getStructureManager();
164 MCAPI
bool hostMultiplayer(
165 ::std::string
const& serverName,
168 ::std::unique_ptr<::NetEventCallback> clientNetworkHandler,
172 ::std::unordered_map<::PackIdVersion, ::std::string>
const& packIdToContentKey,
176 ::std::shared_ptr<::ScriptPackSettingsCache> packSettingsCache,
182 MCAPI_C
void initCommands();
184 MCAPI_C ::Bedrock::PubSub::Subscription registerLevelListener(::std::function<
void(
::Level*)> callback)
const;
186 MCAPI_C
bool requestInGamePause(
bool status);
188 MCAPI_C
void resetGameSession();
190 MCAPI_C
void startClientGame(::std::unique_ptr<::NetEventCallback> legacyClientNetworkHandler);
192 MCAPI
void startLeaveGame(
bool stopNetwork);
194 MCAPI
void tickSimtime(
int nTick,
int maxTick);
202 MCAPI
static void _tryCatchupMovementTicks(
205 ::std::unique_ptr<::ITickingSystem>& addMovementTickForCatchup
224 MCAPI
void $setSimTimePause(
bool pause);
226 MCAPI
void $setSimTimeScale(
float scale);
228 MCAPI
bool $getSimPaused()
const;
230 MCAPI
bool $isOnlineClient()
const;
232 MCFOLD ::StackRefResult<::EntityRegistry> $getEntityRegistry();
234 MCFOLD ::StackRefResult<::EntityRegistry const> $getEntityRegistry()
const;
Definition EntityContext.h:16
Definition TextFilteringProcessor.h:18