72 ::ll::TypedStorage<8, 8, ::GameCallbacks&> mGameCallbacks;
73 ::ll::TypedStorage<8, 8, ::IMinecraftEventing&> mEventing;
74 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ResourcePackManager>> mResourceLoader;
75 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::StructureManager>> mStructureManager;
76 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::GameModuleServer>> mGameModuleServer;
77 ::ll::TypedStorage<8, 8, ::PermissionsFile*> mPermissionsFile;
78 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PrivateKeyManager>> mServerKeys;
79 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::MinecraftServiceKeyManager>> mMinecraftServiceKeys;
80 ::ll::TypedStorage<8, 32, ::std::string const> mSaveGamePath;
81 ::ll::TypedStorage<8, 8, ::ServerMetrics*> mServerMetrics;
82 ::ll::TypedStorage<1, 1, bool const> mIsDedicatedServer;
83 ::ll::TypedStorage<1, 1, bool> mCorruptionDetected;
84 ::ll::TypedStorage<1, 1, bool> mFireOnLevelCorrupt;
85 ::ll::TypedStorage<8, 8, double> mFrameDuration;
86 ::ll::TypedStorage<8, 8, double> mLastFrameStart;
87 ::ll::TypedStorage<8, 8, ::std::chrono::seconds> mMaxPlayerIdleTime;
88 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::DefaultCommandsContextProvider>> mDefaultCommandsContextProvider;
89 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::MinecraftCommands>> mCommands;
90 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::GameSession>> mGameSession;
91 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::GameTestLevelListener>> mGameTestLevelListener;
92 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::MinecraftGameTest>> mGameTest;
93 ::ll::TypedStorage<8, 8, ::Timer&> mSimTimer;
94 ::ll::TypedStorage<8, 8, ::Timer&> mRealTimer;
95 ::ll::TypedStorage<8, 16, ::ClientOrServerNetworkSystemRef> mNetwork;
96 ::ll::TypedStorage<8, 8, ::PacketSender&> mPacketSender;
97 ::ll::TypedStorage<1, 1, ::SubClientId> mClientSubId;
98 ::ll::TypedStorage<8, 8, ::gsl::not_null<::std::unique_ptr<::Minecraft::Impl>>> mImpl;
99 ::ll::TypedStorage<8, 16, ::gsl::not_null<::OwnerPtr<::EntityRegistry>>> mEntityRegistry;
100 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ITickingSystem>> mAddMovementTickForCatchup;
111 ::brstd::move_only_function<
113 mCreateServerNetworkHandler;
114 ::ll::TypedStorage<8, 64, ::brstd::move_only_function<::Bedrock::NotNullNonOwnerPtr<::
FileArchiver>() const>>
119 ::brstd::move_only_function<
121 mCreateMinecraftCommands;
125 LLAPI
Level* getLevel() const;
129 Minecraft& operator=(Minecraft const&);
130 Minecraft(Minecraft const&);
136 virtual ~Minecraft() = default;
138 virtual
void setSimTimePause(
bool pause);
140 virtual
void setSimTimeScale(
float scale);
142 virtual
bool getSimPaused() const;
144 virtual
bool isOnlineClient() const;
156 MCAPI
void _tryCatchupMovementTicks();
158 MCAPI
void configureGameTest(::
Level& level, ::
Experiments const& experiments);
160 MCAPI
void disconnectClient(::
NetworkIdentifier const&
id, ::Connection::DisconnectFailReason disconnectReason);
164 MCAPI ::Bedrock::NotNullNonOwnerPtr<::
StructureManager> getStructureManager();
166 MCAPI
bool hostMultiplayer(
167 ::
std::
string const& serverName,
183 MCFOLD
void initAsDedicatedServer();
185 MCAPI
void initCommands();
190 MCAPI ::Bedrock::PubSub::Subscription registerLevelListener(::std::function<
void(
::Level*)> callback)
const;
192 MCAPI
void resetGameSession();
194 MCAPI
void startClientGame(::std::unique_ptr<::NetEventCallback> legacyClientNetworkHandler);
197 MCAPI
void startLeaveGame(
bool stopNetwork);
205 MCAPI
static void _tryCatchupMovementTicks(
208 ::std::unique_ptr<::ITickingSystem>& addMovementTickForCatchup
221 MCAPI
void $setSimTimePause(
bool pause);
223 MCAPI
void $setSimTimeScale(
float scale);
225 MCAPI
bool $getSimPaused()
const;
227 MCAPI
bool $isOnlineClient()
const;
229 MCAPI ::StackRefResult<::EntityRegistry> $getEntityRegistry();
231 MCAPI ::StackRefResult<::EntityRegistry const> $getEntityRegistry()
const;
Definition EntityContext.h:15
Definition TextFilteringProcessor.h:19