63 ::ll::TypedStorage<8, 8, ::GameCallbacks&> mGameCallbacks;
64 ::ll::TypedStorage<8, 8, ::IMinecraftEventing&> mEventing;
65 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ResourcePackManager>> mResourceLoader;
66 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::StructureManager>> mStructureManager;
67 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::GameModuleServer>> mGameModuleServer;
68 ::ll::TypedStorage<8, 8, ::PermissionsFile*> mPermissionsFile;
69 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PrivateKeyManager>> mServerKeys;
70 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::MinecraftServiceKeyManager>> mMinecraftServiceKeys;
71 ::ll::TypedStorage<8, 32, ::std::string const> mSaveGamePath;
72 ::ll::TypedStorage<8, 8, ::ServerMetrics*> mServerMetrics;
73 ::ll::TypedStorage<1, 1, bool const> mIsDedicatedServer;
74 ::ll::TypedStorage<1, 1, bool> mCorruptionDetected;
75 ::ll::TypedStorage<1, 1, bool> mFireOnLevelCorrupt;
76 ::ll::TypedStorage<8, 8, double> mFrameDuration;
77 ::ll::TypedStorage<8, 8, double> mLastFrameStart;
78 ::ll::TypedStorage<8, 8, ::std::chrono::seconds> mMaxPlayerIdleTime;
79 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::DefaultCommandsContextProvider>> mDefaultCommandsContextProvider;
80 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::MinecraftCommands>> mCommands;
81 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::GameSession>> mGameSession;
82 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::GameTestLevelListener>> mGameTestLevelListener;
83 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::MinecraftGameTest>> mGameTest;
84 ::ll::TypedStorage<8, 8, ::Timer&> mSimTimer;
85 ::ll::TypedStorage<8, 8, ::Timer&> mRealTimer;
86 ::ll::TypedStorage<8, 16, ::ClientOrServerNetworkSystemRef> mNetwork;
87 ::ll::TypedStorage<8, 8, ::PacketSender&> mPacketSender;
88 ::ll::TypedStorage<1, 1, ::SubClientId> mClientSubId;
89 ::ll::TypedStorage<8, 16, ::OwnerPtr<::EntityRegistry>> mEntityRegistry;
90 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ITickingSystem>> mAddMovementTickForCatchup;
103 mCreateServerNetworkHandler;
104 ::ll::TypedStorage<8, 64, ::brstd::move_only_function<::Bedrock::NotNullNonOwnerPtr<::FileArchiver>()
const>>
111 mCreateMinecraftCommands;
116 Minecraft& operator=(Minecraft
const&);
117 Minecraft(Minecraft
const&);
123 virtual ~Minecraft() ;
125 virtual void setSimTimePause(
bool pause);
127 virtual void setSimTimeScale(
float scale);
129 virtual bool getSimPaused()
const;
131 virtual bool isOnlineClient()
const;
133 virtual ::StackRefResult<::EntityRegistry> getEntityRegistry() ;
135 virtual ::StackRefResult<::EntityRegistry const> getEntityRegistry()
const ;
143 MCAPI
void _tryCatchupMovementTicks();
147 MCAPI
void disconnectClient(
::NetworkIdentifier const&
id, ::Connection::DisconnectFailReason disconnectReason);
150 MCAPI ::optional_ref<::MinecraftGameTest> getGameTest();
153 MCAPI ::Level* getLevel()
const;
156 MCAPI ::Bedrock::NonOwnerPointer<::NetEventCallback> getNetEventCallback();
159 MCAPI ::Bedrock::NonOwnerPointer<::ServerNetworkHandler> getServerNetworkHandler();
162 MCAPI ::ServerNetworkSystem& getServerNetworkSystem();
165 MCAPI ::Bedrock::NotNullNonOwnerPtr<::StructureManager> getStructureManager();
167 MCAPI
bool hostMultiplayer(
168 ::std::string
const& serverName,
170 ::std::string
const& hostPublicKey,
171 ::std::unique_ptr<::NetEventCallback> clientNetworkHandler,
175 ::std::unordered_map<::PackIdVersion, ::std::string>
const& packIdToContentKey,
179 ::std::shared_ptr<::ScriptPackSettingsCache> packSettingsCache,
186 MCAPI
void initCommands();
188 MCAPI ::Bedrock::PubSub::Subscription registerLevelListener(::std::function<
void(
::Level*)> callback)
const;
190 MCAPI
bool requestInGamePause(
bool status);
192 MCAPI
void resetGameSession();
194 MCAPI
void startClientGame(::std::unique_ptr<::NetEventCallback> legacyClientNetworkHandler);
197 MCAPI
void startLeaveGame(
bool stopNetwork);
199 MCAPI
void tickSimtime(
int nTick,
int maxTick);
207 MCAPI
static void _tryCatchupMovementTicks(
210 ::std::unique_ptr<::ITickingSystem>& addMovementTickForCatchup
229 MCAPI
void $setSimTimePause(
bool pause);
231 MCAPI
void $setSimTimeScale(
float scale);
233 MCAPI
bool $getSimPaused()
const;
235 MCAPI
bool $isOnlineClient()
const;
237 MCFOLD ::StackRefResult<::EntityRegistry> $getEntityRegistry();
239 MCFOLD ::StackRefResult<::EntityRegistry const> $getEntityRegistry()
const;
Definition EntityContext.h:16
Definition TextFilteringProcessor.h:18