LeviLamina
Loading...
Searching...
No Matches
ServerNetworkHandler.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/common/SubClientId.h"
7#include "mc/comprehensive/ParticleType.h"
8#include "mc/deps/core/minecraft/threading/EnableQueueForMainThread.h"
9#include "mc/deps/core/threading/SharedAsync.h"
10#include "mc/deps/core/utility/NonOwnerPointer.h"
11#include "mc/deps/core/utility/ServiceReference.h"
12#include "mc/deps/core/utility/optional_ref.h"
13#include "mc/deps/game_refs/OwnerPtr.h"
14#include "mc/network/IncomingPacketFilterResult.h"
15#include "mc/network/MinecraftPacketIds.h"
16#include "mc/network/NetEventCallback.h"
17#include "mc/network/NetworkIdentifier.h"
18#include "mc/network/NetworkServerConfig.h"
19#include "mc/network/OutgoingPacketFilterResult.h"
20#include "mc/network/PacketViolationResponse.h"
21#include "mc/network/ServerNetworkHandlerDependencies.h"
22#include "mc/network/XboxLiveUserObserver.h"
23#include "mc/network/connection/DisconnectFailReason.h"
24#include "mc/network/connection/DisconnectionStage.h"
25#include "mc/platform/MultiplayerServiceObserver.h"
26#include "mc/platform/UUID.h"
27#include "mc/platform/threading/Mutex.h"
28#include "mc/server/DenyList.h"
29#include "mc/server/ServerTextEvent.h"
30#include "mc/server/commands/PlayerPermissionLevel.h"
31#include "mc/world/level/LevelListener.h"
32
33// auto generated forward declare list
34// clang-format off
35class Abilities;
36class ActorEventPacket;
37class ActorPickRequestPacket;
38class AllowList;
39class AnimatePacket;
40class AnvilDamagePacket;
41class AppConfigs;
44class BlockActorDataPacket;
45class BlockPickRequestPacket;
46class BlockSource;
47class BookEditPacket;
48class BossEventPacket;
49class ChangeMobPropertyPacket;
52class ClientCacheStatusPacket;
53class ClientCameraAimAssistPacket;
55class ClientToServerHandshakePacket;
56class CodeBuilderSourcePacket;
59class CompletedUsingItemPacket;
61class ContainerClosePacket;
62class CreatePhotoPacket;
64class DebugInfoPacket;
66class EditorNetworkPacket;
67class EmoteListPacket;
68class EmotePacket;
69class EntityContext;
70class GameCallbacks;
74class IEDUSystems;
75class ILevel;
76class IMinecraftApp;
78class InteractPacket;
81class LabTablePacket;
83class LevelSoundEventPacket;
84class LoginPacket;
85class MapCreateLockedCopyPacket;
86class MapInfoRequestPacket;
91class ModalFormResponsePacket;
92class MultiplayerSettingsPacket;
93class NetworkStackLatencyPacket;
94class NpcRequestPacket;
95class Packet;
96class PacketSender;
97class PermissionsFile;
99class PhotoTransferPacket;
100class Player;
101class PlayerActionPacket;
104class PlayerSkinPacket;
105class PlayerToggleCrafterSlotRequestPacket;
106class PositionTrackingDBClientRequestPacket;
109class RequestAbilityPacket;
110class RequestChunkRadiusPacket;
111class RequestNetworkSettingsPacket;
112class RequestPermissionsPacket;
113class ResourcePackChunkRequestPacket;
116class RespawnPacket;
117class Scheduler;
118class ScriptMessagePacket;
120class SerializedSkin;
121class ServerLocator;
123class ServerPlayer;
124class ServerboundDiagnosticsPacket;
125class ServerboundLoadingScreenPacket;
126class ServerboundPackSettingChangePacket;
127class SetDefaultGameTypePacket;
128class SetDifficultyPacket;
129class SetLocalPlayerAsInitializedPacket;
130class SetPlayerGameTypePacket;
131class SetPlayerInventoryOptionsPacket;
132class SettingsCommandPacket;
133class ShowCreditsPacket;
134class SimpleEventPacket;
135class SpawnExperienceOrbPacket;
137class StructureTemplateDataRequestPacket;
138class SubChunkPacket;
142class TaskGroup;
144class TextPacket;
145class UpdateClientOptionsPacket;
146class UpdatePlayerGameTypePacket;
148class Vec3;
149struct ActorUniqueID;
150struct AsyncJoinAllow;
151struct AsyncJoinDeny;
152struct ChatEvent;
154struct MessToken;
156struct PackIdVersion;
157namespace Automation { class AutomationClient; }
158namespace Bedrock::Safety { class RedactableString; }
159namespace ClientBlobCache::Server { class ActiveTransfersManager; }
160namespace ResourcePackPathLifetimeHelpers { class ResourcePackPathCache; }
161namespace Social { class GameConnectionInfo; }
162// clang-format on
163
165 public ::NetEventCallback,
166 public ::LevelListener,
169public:
170 // ServerNetworkHandler inner types declare
171 // clang-format off
172 class Client;
174 // clang-format on
175
176 // ServerNetworkHandler inner types define
178 public:
179 // member variables
180 // NOLINTBEGIN
182 // NOLINTEND
183
184 public:
185 // prevent constructor by default
189 };
190
191 class Client {
192 public:
193 // member variables
194 // NOLINTBEGIN
195 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ConnectionRequest>> mPrimaryRequest;
196 ::ll::TypedStorage<8, 64, ::std::unordered_map<::SubClientId, ::std::unique_ptr<::SubClientConnectionRequest>>>
197 mSubClientRequests;
198 // NOLINTEND
199
200 public:
201 // member functions
202 // NOLINTBEGIN
203 MCNAPI void removeSubClientRequest(::SubClientId subClientId);
204 // NOLINTEND
205 };
206
207public:
208 // member variables
209 // NOLINTBEGIN
210 ::ll::TypedStorage<
211 8,
212 64,
213 ::std::unordered_map<::NetworkIdentifier, ::std::unique_ptr<::ServerNetworkHandler::Client>>>
214 mClients;
215 ::ll::TypedStorage<8, 8, ::GameCallbacks&> mGameCallbacks;
216 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::ILevel>> mLevel;
217 ::ll::TypedStorage<8, 8, ::ServerNetworkSystem&> mNetwork;
218 ::ll::TypedStorage<8, 8, ::PrivateKeyManager&> mServerKeys;
219 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::MinecraftServiceKeyManager>> mMinecraftServiceKeys;
220 ::ll::TypedStorage<8, 8, ::ServerLocator&> mServerLocator;
221 ::ll::TypedStorage<8, 8, ::gsl::not_null<::PacketSender*>> mPacketSender;
222 ::ll::TypedStorage<1, 1, bool> mUseAllowList;
223 ::ll::TypedStorage<8, 8, ::AllowList&> mAllowList;
224 ::ll::TypedStorage<8, 8, ::PermissionsFile*> mPermissionsFile;
225 ::ll::TypedStorage<8, 104, ::DenyList> mServerDenyList;
226 ::ll::TypedStorage<8, 72, ::NetworkServerConfig> mNetworkServerConfig;
227 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ScriptPackSettingsCache>> mPackSettingsCache;
228 ::ll::TypedStorage<1, 1, bool> mHasDisplayedPackErrors;
229 ::ll::TypedStorage<8, 176, ::NetworkIdentifier> mMyId;
230 ::ll::TypedStorage<4, 4, int const> mMaxChunkRadius;
231 ::ll::TypedStorage<8, 8, ::MinecraftCommands&> mMinecraftCommands;
232 ::ll::TypedStorage<8, 8, ::IMinecraftApp&> mApp;
233 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::TextFilteringProcessor>> mTextFilteringProcessor;
234 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ClientBlobCache::Server::ActiveTransfersManager>> mClientCacheManager;
235 ::ll::TypedStorage<8, 64, ::std::unordered_map<uint64, ::std::string>> mServerStorageForClientsConnectingAttempt;
236 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ClassroomModeNetworkHandler>> mCompanionHandler;
237 ::ll::TypedStorage<8, 80, ::Bedrock::Threading::Mutex> mValidatePlayerMutex;
238 ::ll::TypedStorage<1, 1, bool> mAllowIncoming;
239 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::IServerNetworkController>> mServerNetworkController;
240 ::ll::TypedStorage<8, 32, ::std::string> mServerName;
241 ::ll::TypedStorage<8, 24, ::std::vector<::std::string>> mTrustedKeys;
242 ::ll::TypedStorage<4, 4, int> mMaxNumPlayers;
243 ::ll::TypedStorage<8, 64, ::std::unordered_set<::mce::UUID>> mKnownEmotePieceIdLookup;
244 ::ll::TypedStorage<8, 24, ::std::vector<::mce::UUID>> mKnownEmotePieceIds;
245 ::ll::TypedStorage<
246 8,
247 64,
248 ::std::unordered_map<
249 uint64,
250 ::std::unordered_map<::std::string, ::std::shared_ptr<::ResourcePackFileUploadManager>>>>
251 mResourceUploadManagers;
252 ::ll::TypedStorage<8, 16, ::gsl::not_null<::std::shared_ptr<::Bedrock::Threading::SharedAsync<void>>>>
253 mPreviousUpload;
254 ::ll::
255 TypedStorage<8, 8, ::gsl::not_null<::std::unique_ptr<::ResourcePackPathLifetimeHelpers::ResourcePackPathCache>>>
256 mResourcePackPathCache;
257 ::ll::TypedStorage<8, 8, ::gsl::not_null<::std::unique_ptr<::TaskGroup>>> mAsyncJoinTaskGroup;
258 ::ll::TypedStorage<8, 8, ::gsl::not_null<::std::unique_ptr<::AsyncJoinTaskManager>>> mAsyncJoinTaskManager;
259 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::TaskGroup>> mIOTaskGroup;
260 ::ll::TypedStorage<1, 1, bool> mIsTrial;
261 ::ll::TypedStorage<8, 64, ::std::unordered_map<::PackIdVersion, ::std::string>> mPackIdToContentKey;
262 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::GameSpecificNetEventCallback>> mGameSpecificNetEventCallback;
263 ::ll::TypedStorage<
264 8,
265 64,
266 ::std::unordered_map<::NetworkIdentifier, ::std::unique_ptr<::ServerNetworkHandler::TransferBuilderBatcher>>>
267 mTransferBuilderBatcher;
268 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::GameTestNetworkAdapter>> mGameTestAdapter;
269 ::ll::TypedStorage<8, 40, ::ServiceReference<::AppConfigs>> mAppConfigs;
270 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::BiomeDefinitionListPacket const>> mBiomeDefinitionListWithoutCSCG;
271 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::BiomeDefinitionListPacket const>> mBiomeDefinitionListWithCSCG;
272 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::IEDUSystems>> mEduSystems;
273 ::ll::TypedStorage<8, 32, ::std::string> mServerId;
274 ::ll::TypedStorage<8, 32, ::std::string> mScenarioId;
275 ::ll::TypedStorage<8, 32, ::std::string> mWorldId;
276 ::ll::TypedStorage<8, 32, ::std::string> mOwnerId;
277 ::ll::TypedStorage<8, 192, ::ServerNetworkHandlerDependencies const> mDependencies;
278 // NOLINTEND
279
280public:
281 // prevent constructor by default
285
286public:
287 // virtual functions
288 // NOLINTBEGIN
289 // vIndex: 0
290 virtual ~ServerNetworkHandler() /*override*/;
291
292 // vIndex: 5
293 virtual void onValidPacketReceived(
294 ::NetworkIdentifier const& netId,
295 ::MinecraftPacketIds packetId,
296 ::SubClientId senderSubId,
297 ::SubClientId
298 ) /*override*/;
299
300 // vIndex: 10
301 virtual void onWebsocketRequest(
302 ::std::string const& serverAddress,
303 ::std::string const& payload,
304 ::std::function<void()> errorCallback
305 ) /*override*/;
306
307 // vIndex: 2
308 virtual void onInvalidPlayerJoinedLobby(::mce::UUID const& uuid, ::std::string const& xuid) /*override*/;
309
310 // vIndex: 2
311 virtual void onXboxUserBlocked(::std::string const& xuid) /*override*/;
312
313 // vIndex: 3
314 virtual void onXboxUserUnblocked(::std::string const& xuid) /*override*/;
315
316 // vIndex: 1
317 virtual void onPlayerReady(::Player& player) /*override*/;
318
319 // vIndex: 11
320 virtual void handlePacketViolation(
321 ::std::shared_ptr<::IPacketSecurityController> const& packetSecurityController,
322 ::std::error_code const& errorCode,
323 ::PacketViolationResponse const response,
324 ::MinecraftPacketIds const packetId,
325 ::std::string&& context,
326 ::NetworkIdentifier const& netId,
327 ::SubClientId const clientSubId,
328 ::SubClientId const senderSubId,
329 uint const packetSize
330 ) /*override*/;
331
332 // vIndex: 12
333 virtual void sendPacketViolationWarningPacket(
334 ::std::error_code const& errorCode,
335 ::PacketViolationResponse violationResponse,
336 ::MinecraftPacketIds violatingPacketId,
337 ::std::string const& context,
338 ::NetworkIdentifier const& netId,
339 ::SubClientId clientSubId
340 ) /*override*/;
341
342 // vIndex: 10
343 virtual void sendServerLegacyParticle(::ParticleType name, ::Vec3 const& pos, ::Vec3 const&, int data) /*override*/;
344
345 // vIndex: 13
346 virtual void
347 onTransferRequest(::NetworkIdentifier const& id, ::Social::GameConnectionInfo const& destination) /*override*/;
348
349 // vIndex: 7
350 virtual void onDisconnect(
351 ::NetworkIdentifier const& id,
352 ::Connection::DisconnectFailReason const discoReason,
353 ::Connection::DisconnectionStage const disconnectStage,
354 ::std::string const& message,
355 bool skipMessage,
356 ::std::string const& telemetryOverride
357 ) /*override*/;
358
359 // vIndex: 8
360 virtual ::IncomingPacketFilterResult allowIncomingPacketId(
361 ::NetworkIdentifierWithSubId const& sender,
362 ::MinecraftPacketIds packetId,
363 uint64 packetSize
364 ) /*override*/;
365
366 // vIndex: 9
367 virtual ::OutgoingPacketFilterResult
368 allowOutgoingPacket(::std::vector<::NetworkIdentifierWithSubId> const& ids, ::Packet const& packet) /*override*/;
369
370 // vIndex: 192
371 virtual void handle(::NetworkIdentifier const& source, ::ActorEventPacket const& packet) /*override*/;
372
373 // vIndex: 194
374 virtual void handle(::NetworkIdentifier const& source, ::ActorPickRequestPacket const& packet) /*override*/;
375
376 // vIndex: 166
377 virtual void handle(::NetworkIdentifier const& source, ::AnimatePacket const& packet) /*override*/;
378
379 // vIndex: 165
380 virtual void
381 handle(::NetworkIdentifier const& source, ::std::shared_ptr<::BlockActorDataPacket> packet) /*override*/;
382
383 // vIndex: 195
384 virtual void handle(::NetworkIdentifier const& source, ::BlockPickRequestPacket const& packet) /*override*/;
385
386 // vIndex: 79
387 virtual void handle(::NetworkIdentifier const& source, ::LecternUpdatePacket const& packet) /*override*/;
388
389 // vIndex: 78
390 virtual void handle(::NetworkIdentifier const& source, ::BookEditPacket const& packet) /*override*/;
391
392 // vIndex: 140
393 virtual void handle(::NetworkIdentifier const& source, ::BossEventPacket const& packet) /*override*/;
394
395 // vIndex: 149
396 virtual void handle(::NetworkIdentifier const& source, ::ClientCameraAimAssistPacket const& packet) /*override*/;
397
398 // vIndex: 145
399 virtual void handle(::NetworkIdentifier const& source, ::ClientCacheStatusPacket const& packet) /*override*/;
400
401 // vIndex: 159
402 virtual void handle(::NetworkIdentifier const& source, ::ClientCacheBlobStatusPacket const& packet) /*override*/;
403
404 // vIndex: 163
405 virtual void
406 handle(::NetworkIdentifier const& source, ::ClientMovementPredictionSyncPacket const& packet) /*override*/;
407
408 // vIndex: 226
409 virtual void handle(::NetworkIdentifier const& source, ::ClientToServerHandshakePacket const& packet) /*override*/;
410
411 // vIndex: 134
412 virtual void handle(::NetworkIdentifier const& source, ::CommandBlockUpdatePacket const& packet) /*override*/;
413
414 // vIndex: 136
415 virtual void handle(::NetworkIdentifier const& source, ::CommandRequestPacket const& packet) /*override*/;
416
417 // vIndex: 133
418 virtual void handle(::NetworkIdentifier const& source, ::CompletedUsingItemPacket const& packet) /*override*/;
419
420 // vIndex: 173
421 virtual void handle(::NetworkIdentifier const& source, ::ContainerClosePacket const& packet) /*override*/;
422
423 // vIndex: 58
424 virtual void handle(::NetworkIdentifier const& source, ::DebugInfoPacket const& packet) /*override*/;
425
426 // vIndex: 47
427 virtual void handle(::NetworkIdentifier const& source, ::CreatePhotoPacket const& packet) /*override*/;
428
429 // vIndex: 231
430 virtual void handle(::NetworkIdentifier const& source, ::DisconnectPacket const& packet) /*override*/;
431
432 // vIndex: 230
433 virtual void handle(::NetworkIdentifier const& source, ::EmoteListPacket const& packet) /*override*/;
434
435 // vIndex: 229
436 virtual void handle(::NetworkIdentifier const& source, ::EmotePacket const& packet) /*override*/;
437
438 // vIndex: 181
439 virtual void handle(::NetworkIdentifier const& source, ::InteractPacket const& packet) /*override*/;
440
441 // vIndex: 112
442 virtual void
443 handle(::NetworkIdentifier const& source, ::std::shared_ptr<::InventoryTransactionPacket> packet) /*override*/;
444
445 // vIndex: 176
446 virtual void handle(::NetworkIdentifier const& source, ::ItemStackRequestPacket const& packet) /*override*/;
447
448 // vIndex: 73
449 virtual void handle(::NetworkIdentifier const& source, ::LabTablePacket const& packet) /*override*/;
450
451 // vIndex: 199
452 virtual void handle(::NetworkIdentifier const& source, ::LevelSoundEventPacket const& packet) /*override*/;
453
454 // vIndex: 228
455 virtual void handle(::NetworkIdentifier const& source, ::std::shared_ptr<::LoginPacket> packet) /*override*/;
456
457 // vIndex: 143
458 virtual void handle(::NetworkIdentifier const& source, ::MapCreateLockedCopyPacket const& packet) /*override*/;
459
460 // vIndex: 142
461 virtual void handle(::NetworkIdentifier const& source, ::MapInfoRequestPacket const& packet) /*override*/;
462
463 // vIndex: 189
464 virtual void handle(::NetworkIdentifier const& source, ::std::shared_ptr<::MobEquipmentPacket> packet) /*override*/;
465
466 // vIndex: 104
467 virtual void handle(::NetworkIdentifier const& source, ::ModalFormResponsePacket const& packet) /*override*/;
468
469 // vIndex: 71
470 virtual void handle(::NetworkIdentifier const& source, ::NetworkStackLatencyPacket const& packet) /*override*/;
471
472 // vIndex: 75
473 virtual void handle(::NetworkIdentifier const& source, ::NpcRequestPacket const& packet) /*override*/;
474
475 // vIndex: 74
476 virtual void handle(::NetworkIdentifier const& source, ::PhotoTransferPacket const& packet) /*override*/;
477
478 // vIndex: 180
479 virtual void handle(::NetworkIdentifier const& source, ::PlayerActionPacket const& packet) /*override*/;
480
481 // vIndex: 164
482 virtual void handle(::NetworkIdentifier const& source, ::PlayerAuthInputPacket const& packet) /*override*/;
483
484 // vIndex: 170
485 virtual void handle(::NetworkIdentifier const& source, ::PlayerHotbarPacket const& packet) /*override*/;
486
487 // vIndex: 85
488 virtual void handle(::NetworkIdentifier const& source, ::PlayerSkinPacket const& packet) /*override*/;
489
490 // vIndex: 83
491 virtual void
492 handle(::NetworkIdentifier const& source, ::PlayerToggleCrafterSlotRequestPacket const& packet) /*override*/;
493
494 // vIndex: 221
495 virtual void
496 handle(::NetworkIdentifier const& source, ::PositionTrackingDBClientRequestPacket const& packet) /*override*/;
497
498 // vIndex: 109
499 virtual void handle(::NetworkIdentifier const& source, ::PurchaseReceiptPacket const& packet) /*override*/;
500
501 // vIndex: 144
502 virtual void handle(::NetworkIdentifier const& source, ::RequestChunkRadiusPacket const& packet) /*override*/;
503
504 // vIndex: 121
505 virtual void handle(::NetworkIdentifier const& source, ::ResourcePackChunkRequestPacket const& packet) /*override*/;
506
507 // vIndex: 87
508 virtual void handle(::NetworkIdentifier const& source, ::RespawnPacket const& packet) /*override*/;
509
510 // vIndex: 203
511 virtual void handle(::NetworkIdentifier const& source, ::SetDefaultGameTypePacket const& packet) /*override*/;
512
513 // vIndex: 156
514 virtual void handle(::NetworkIdentifier const& source, ::SetDifficultyPacket const& packet) /*override*/;
515
516 // vIndex: 69
517 virtual void
518 handle(::NetworkIdentifier const& source, ::SetLocalPlayerAsInitializedPacket const& packet) /*override*/;
519
520 // vIndex: 205
521 virtual void handle(::NetworkIdentifier const& source, ::SetPlayerGameTypePacket const& packet) /*override*/;
522
523 // vIndex: 204
524 virtual void handle(::NetworkIdentifier const& source, ::UpdatePlayerGameTypePacket const& packet) /*override*/;
525
526 // vIndex: 68
527 virtual void handle(::NetworkIdentifier const& source, ::ScriptMessagePacket const& packet) /*override*/;
528
529 // vIndex: 86
530 virtual void handle(::NetworkIdentifier const& source, ::ShowCreditsPacket const& packet) /*override*/;
531
532 // vIndex: 155
533 virtual void handle(::NetworkIdentifier const& source, ::SimpleEventPacket const& packet) /*override*/;
534
535 // vIndex: 150
536 virtual void handle(::NetworkIdentifier const& source, ::SpawnExperienceOrbPacket const& packet) /*override*/;
537
538 // vIndex: 119
539 virtual void handle(::NetworkIdentifier const& source, ::StructureBlockUpdatePacket const& packet) /*override*/;
540
541 // vIndex: 118
542 virtual void
543 handle(::NetworkIdentifier const& source, ::StructureTemplateDataRequestPacket const& packet) /*override*/;
544
545 // vIndex: 227
546 virtual void
547 handle(::NetworkIdentifier const& source, ::std::shared_ptr<::SubClientLoginPacket> packet) /*override*/;
548
549 // vIndex: 217
550 virtual void handle(::NetworkIdentifier const& source, ::TextPacket const& packet) /*override*/;
551
552 // vIndex: 64
553 virtual void handle(::NetworkIdentifier const& source, ::MultiplayerSettingsPacket const& packet) /*override*/;
554
555 // vIndex: 63
556 virtual void handle(::NetworkIdentifier const& source, ::SettingsCommandPacket const& packet) /*override*/;
557
558 // vIndex: 62
559 virtual void handle(::NetworkIdentifier const& source, ::AnvilDamagePacket const& packet) /*override*/;
560
561 // vIndex: 160
562 virtual void handle(::NetworkIdentifier const& source, ::SubChunkRequestPacket const& packet) /*override*/;
563
564 // vIndex: 45
565 virtual void handle(::NetworkIdentifier const& source, ::CodeBuilderSourcePacket const& packet) /*override*/;
566
567 // vIndex: 57
568 virtual void handle(::NetworkIdentifier const&, ::ChangeMobPropertyPacket const& packet) /*override*/;
569
570 // vIndex: 42
571 virtual void handle(::NetworkIdentifier const& source, ::RequestAbilityPacket const& packet) /*override*/;
572
573 // vIndex: 38
574 virtual void handle(::NetworkIdentifier const& source, ::RequestNetworkSettingsPacket const& packet) /*override*/;
575
576 // vIndex: 41
577 virtual void handle(::NetworkIdentifier const& source, ::RequestPermissionsPacket const& packet) /*override*/;
578
579 // vIndex: 90
580 virtual void handle(::NetworkIdentifier const& source, ::EditorNetworkPacket const& packet) /*override*/;
581
582 // vIndex: 37
583 virtual void handle(::NetworkIdentifier const& source, ::GameTestRequestPacket const& packet) /*override*/;
584
585 // vIndex: 30
586 virtual void
587 handle(::NetworkIdentifier const& source, ::SetPlayerInventoryOptionsPacket const& packet) /*override*/;
588
589 // vIndex: 27
590 virtual void handle(::NetworkIdentifier const& source, ::ServerboundLoadingScreenPacket const& packet) /*override*/;
591
592 // vIndex: 26
593 virtual void handle(::NetworkIdentifier const& source, ::ServerboundDiagnosticsPacket const& packet) /*override*/;
594
595 // vIndex: 23
596 virtual void handle(::NetworkIdentifier const& source, ::UpdateClientOptionsPacket const& packet) /*override*/;
597
598 // vIndex: 18
599 virtual void
600 handle(::NetworkIdentifier const& source, ::ServerboundPackSettingChangePacket const& packet) /*override*/;
601
602 // vIndex: 17
603 virtual void handle(::NetworkIdentifier const& source, ::DataStoreSyncPacket const& packet) /*override*/;
604
605 // vIndex: 1
606 virtual void sendSubClientLoginMessageLocal(
607 ::NetworkIdentifier const& source,
608 ::SubClientConnectionRequest const& connectionRequest,
609 ::SubClientId subid
610 );
611
612 // vIndex: 4
613 virtual void onTick() /*override*/;
614
615 // vIndex: 15
616 virtual ::GameSpecificNetEventCallback* getGameSpecificNetEventCallback() /*override*/;
617
618 // vIndex: 2
619 virtual void onConnect(::NetworkIdentifier const& id) /*override*/;
620
621 // vIndex: 2
622 virtual void completeHandshake(::NetworkIdentifier const& source);
623
624 // vIndex: 3
625 virtual bool _validateLoginPacket(::NetworkIdentifier const& source, ::LoginPacket const& packet);
626
627 // vIndex: 4
628 virtual void _onClientAsyncAuthorized(
629 ::NetworkIdentifier const& source,
630 ::ConnectionRequest const& request,
631 ::std::optional<::MessToken> const& hostMessToken
632 );
633
634 // vIndex: 5
635 virtual ::ServerPlayer* _getServerPlayer(::NetworkIdentifier const& source, ::SubClientId subId);
636 // NOLINTEND
637
638public:
639 // member functions
640 // NOLINTBEGIN
642 ::GameCallbacks& gameCallbacks,
644 ::ServerNetworkSystem& network,
645 ::PrivateKeyManager& serverKeys,
646 ::Bedrock::NotNullNonOwnerPtr<::MinecraftServiceKeyManager> minecraftServiceKeys,
647 ::ServerLocator& serverLocator,
648 ::PacketSender& packetSender,
649 ::AllowList& allowList,
650 ::PermissionsFile* permissionsFile,
651 ::mce::UUID const& hostPlayerId,
652 int maxChunkRadius,
653 int maxNumPlayers,
654 ::MinecraftCommands& commandHandler,
655 ::IMinecraftApp& app,
656 ::std::unordered_map<::PackIdVersion, ::std::string> const& packIdToContentKey,
657 ::Scheduler& scheduler,
661 ::NetworkServerConfig networkServerConfig,
662 ::std::shared_ptr<::ScriptPackSettingsCache> packSettingsCache,
664 );
665
666 MCAPI void SetServerIdentifiers(
667 ::std::string const& serverId,
668 ::std::string const& worldId,
669 ::std::string const& scenarioId,
670 ::std::string const& ownerId
671 );
672
673 MCAPI void _buildSubChunkPacketData(
674 ::NetworkIdentifier const& source,
675 ::ServerPlayer const* player,
676 ::SubChunkRequestPacket const& packet,
677 ::SubChunkPacket& responsePacket,
678 uint requestCount,
679 bool clientCacheEnabled
680 );
681
682 MCAPI ::ServerPlayer& _createNewPlayer(
683 ::NetworkIdentifier const& source,
684 ::SubClientConnectionRequest const& connectionRequest,
685 ::SubClientId subid
686 );
687
688 MCAPI void _decideIfSkinIsTrusted(::SerializedSkin& skin);
689
690 MCAPI void _displayGameMessage(::Player const& sender, ::ChatEvent& chatEvent);
691
692 MCAPI ::std::string _extractFirstConnectionData(::NetworkIdentifier const& source);
693
694 MCAPI int _getActiveAndInProgressPlayerCount(::mce::UUID excludePlayer) const;
695
696 MCAPI ::std::optional<::MessToken> _getMessToken(::std::string const& eduTokenChain, bool isHostingPlayer);
697
698 MCAPI ::ResourcePackFileUploadManager&
699 _getResourcePackFileUploadManager(::NetworkIdentifier const& source, ::std::string const& resourceName);
700
701 MCAPI void _handleFinalVerdict(
702 ::std::variant<
703 ::std::reference_wrapper<::ConnectionRequest const>,
704 ::std::reference_wrapper<::SubClientConnectionRequest const>> const& connectionRequest,
705 ::NetworkIdentifier const& source,
706 ::SubClientId subClientId,
707 ::std::optional<::MessToken> messToken,
708 ::nonstd::expected<::AsyncJoinAllow, ::AsyncJoinDeny> finalVerdict
709 );
710
711 MCAPI void _handleSetDefaultGameType(
712 ::ServerPlayer const& playerSettingGameType,
713 ::SetDefaultGameTypePacket const& packet
714 ) const;
715
716 MCAPI void _handleSetDifficulty(::ServerPlayer const& player, ::SetDifficultyPacket const& packet) const;
717
718 MCAPI bool _isServerTextEnabled(::ServerTextEvent const& textEvent) const;
719
720 MCAPI bool _loadNewPlayer(::ServerPlayer& newPlayer, bool isXboxLive);
721
722 MCAPI void _onClientAuthenticated(::NetworkIdentifier const& source, ::ConnectionRequest const& request);
723
724 MCAPI void _onPlayerLeft(::ServerPlayer* player, bool skipMessage);
725
726 MCAPI void
727 _onSubClientAuthenticated(::NetworkIdentifier const& source, ::std::shared_ptr<::SubClientLoginPacket> packet);
728
729 MCAPI bool _playerHasPermissionToFly(
730 ::UserEntityIdentifierComponent const* userIdentifier,
731 ::ServerPlayer const* serverPlayer
732 ) const;
733
734 MCAPI void _processServerAuthPlayerActions(
735 ::ServerPlayer& player,
736 ::NetworkIdentifier const& source,
737 ::PlayerActionPacket const& packet
738 );
739
740 MCAPI void _processValidatedLoginPacket(
741 ::NetworkIdentifier const& source,
742 ::std::shared_ptr<::LoginPacket> packet,
743 ::std::optional<::MessToken> const& hostMessToken
744 );
745
746 MCAPI void _sendAdditionalLevelData(::ServerPlayer& newPlayer, ::NetworkIdentifier const& source);
747
748 MCAPI void _sendLevelData(::ServerPlayer& newPlayer, ::NetworkIdentifier const& source);
749
750 MCAPI bool _updatePermissions(
751 ::ServerPlayer const& requester,
752 ::RequestPermissionsPacket const& packet,
753 ::Abilities& abilities,
754 ::PermissionsHandler& permissions,
755 ::Player* player
756 );
757
758 MCAPI void addToDenyList(::mce::UUID const& uuid, ::std::string const& xuid);
759
760 MCAPI void allowIncomingConnections(::std::string const& serverName, bool shouldAnnounce);
761
762 MCAPI ::OwnerPtr<::EntityContext>
763 createNewPlayer(::NetworkIdentifier const& source, ::ConnectionRequest const& connectionRequest);
764
765 MCAPI ::OwnerPtr<::EntityContext> createSimulatedPlayer(
766 ::std::string const& name,
767 ::std::string const& xuid,
768 ::std::optional<::ActorUniqueID> idOverride
769 );
770
771 MCAPI void disallowIncomingConnections();
772
773 MCAPI void disconnectClient(
774 ::NetworkIdentifier const& id,
775 ::SubClientId subId,
776 ::Connection::DisconnectFailReason disconnectReason
777 );
778
779 MCAPI void disconnectClientWithMessage(
780 ::NetworkIdentifier const& id,
781 ::SubClientId subId,
782 ::Connection::DisconnectFailReason discoReason,
783 ::std::string const& message,
784 ::std::optional<::std::string> filteredMessage,
785 bool skipMessage
786 );
787
788 MCAPI void
789 disconnectPrimaryClient(::NetworkIdentifier const& id, ::Connection::DisconnectFailReason disconnectReason);
790
791 MCAPI void disconnectPrimaryClientWithMessage(
792 ::NetworkIdentifier const& id,
793 ::Connection::DisconnectFailReason discoReason,
794 ::std::string const& message,
795 ::std::optional<::std::string> filteredMessage,
796 bool skipMessage
797 );
798
799 MCAPI void
800 engineCancelResponseHelper(::NetworkIdentifier const& source, ::ResourcePackClientResponsePacket const& packet);
801
802 MCAPI void engineDownloadingFinishedResponseHelper(
803 ::NetworkIdentifier const& source,
805 );
806
807 MCAPI void onReady_ClientGeneration(::Player& newPlayer, ::NetworkIdentifier const& source);
808
809 MCAPI void persistPlayerPermissionsToDisk(
810 ::UserEntityIdentifierComponent const& userIdentifier,
811 ::PlayerPermissionLevel playerPermission
812 );
813
814 MCAPI void removeFromDenyList(::mce::UUID const& uuid, ::std::string const& xuid);
815
816 MCAPI void sendLoginMessageLocal(
817 ::NetworkIdentifier const& source,
818 ::ConnectionRequest const& connectionRequest,
819 ::ServerPlayer& player
820 );
821
822 MCAPI void setAutomationClient(::Bedrock::NonOwnerPointer<::Automation::AutomationClient> client);
823
824 MCAPI void setNewPlayerPermissions(::ServerPlayer& newPlayer);
825
826 MCAPI bool trytLoadPlayer(::ServerPlayer& player, ::ConnectionRequest const& connectionRequest);
827
828 MCAPI void updateServerAnnouncement();
829 // NOLINTEND
830
831public:
832 // static functions
833 // NOLINTBEGIN
834 MCAPI static void _updateCommandBlock(
835 ::BlockSource& region,
836 ::CommandBlockUpdatePacket const& packet,
837 ::Bedrock::Safety::RedactableString const* redactedName
838 );
839
840 MCAPI static void handle(::Player* player, ::PlayerAuthInputPacket const& packet);
841 // NOLINTEND
842
843public:
844 // constructor thunks
845 // NOLINTBEGIN
846 MCAPI void* $ctor(
847 ::GameCallbacks& gameCallbacks,
849 ::ServerNetworkSystem& network,
850 ::PrivateKeyManager& serverKeys,
851 ::Bedrock::NotNullNonOwnerPtr<::MinecraftServiceKeyManager> minecraftServiceKeys,
852 ::ServerLocator& serverLocator,
853 ::PacketSender& packetSender,
854 ::AllowList& allowList,
855 ::PermissionsFile* permissionsFile,
856 ::mce::UUID const& hostPlayerId,
857 int maxChunkRadius,
858 int maxNumPlayers,
859 ::MinecraftCommands& commandHandler,
860 ::IMinecraftApp& app,
861 ::std::unordered_map<::PackIdVersion, ::std::string> const& packIdToContentKey,
862 ::Scheduler& scheduler,
866 ::NetworkServerConfig networkServerConfig,
867 ::std::shared_ptr<::ScriptPackSettingsCache> packSettingsCache,
869 );
870 // NOLINTEND
871
872public:
873 // destructor thunk
874 // NOLINTBEGIN
875 MCAPI void $dtor();
876 // NOLINTEND
877
878public:
879 // virtual function thunks
880 // NOLINTBEGIN
881 MCAPI void $onValidPacketReceived(
882 ::NetworkIdentifier const& netId,
883 ::MinecraftPacketIds packetId,
884 ::SubClientId senderSubId,
885 ::SubClientId
886 );
887
888 MCAPI void $onWebsocketRequest(
889 ::std::string const& serverAddress,
890 ::std::string const& payload,
891 ::std::function<void()> errorCallback
892 );
893
894 MCAPI void $onInvalidPlayerJoinedLobby(::mce::UUID const& uuid, ::std::string const& xuid);
895
896 MCAPI void $onXboxUserBlocked(::std::string const& xuid);
897
898 MCAPI void $onXboxUserUnblocked(::std::string const& xuid);
899
900 MCFOLD void $onPlayerReady(::Player& player);
901
902 MCAPI void $handlePacketViolation(
903 ::std::shared_ptr<::IPacketSecurityController> const& packetSecurityController,
904 ::std::error_code const& errorCode,
905 ::PacketViolationResponse const response,
906 ::MinecraftPacketIds const packetId,
907 ::std::string&& context,
908 ::NetworkIdentifier const& netId,
909 ::SubClientId const clientSubId,
910 ::SubClientId const senderSubId,
911 uint const packetSize
912 );
913
914 MCAPI void $sendPacketViolationWarningPacket(
915 ::std::error_code const& errorCode,
916 ::PacketViolationResponse violationResponse,
917 ::MinecraftPacketIds violatingPacketId,
918 ::std::string const& context,
919 ::NetworkIdentifier const& netId,
920 ::SubClientId clientSubId
921 );
922
923 MCAPI void $sendServerLegacyParticle(::ParticleType name, ::Vec3 const& pos, ::Vec3 const&, int data);
924
925 MCAPI void $onTransferRequest(::NetworkIdentifier const& id, ::Social::GameConnectionInfo const& destination);
926
927 MCAPI void $onDisconnect(
928 ::NetworkIdentifier const& id,
929 ::Connection::DisconnectFailReason const discoReason,
930 ::Connection::DisconnectionStage const disconnectStage,
931 ::std::string const& message,
932 bool skipMessage,
933 ::std::string const& telemetryOverride
934 );
935
936 MCAPI ::IncomingPacketFilterResult $allowIncomingPacketId(
937 ::NetworkIdentifierWithSubId const& sender,
938 ::MinecraftPacketIds packetId,
939 uint64 packetSize
940 );
941
942 MCAPI ::OutgoingPacketFilterResult
943 $allowOutgoingPacket(::std::vector<::NetworkIdentifierWithSubId> const& ids, ::Packet const& packet);
944
945 MCAPI void $handle(::NetworkIdentifier const& source, ::ActorEventPacket const& packet);
946
947 MCAPI void $handle(::NetworkIdentifier const& source, ::ActorPickRequestPacket const& packet);
948
949 MCAPI void $handle(::NetworkIdentifier const& source, ::AnimatePacket const& packet);
950
951 MCAPI void $handle(::NetworkIdentifier const& source, ::std::shared_ptr<::BlockActorDataPacket> packet);
952
953 MCAPI void $handle(::NetworkIdentifier const& source, ::BlockPickRequestPacket const& packet);
954
955 MCAPI void $handle(::NetworkIdentifier const& source, ::LecternUpdatePacket const& packet);
956
957 MCAPI void $handle(::NetworkIdentifier const& source, ::BookEditPacket const& packet);
958
959 MCAPI void $handle(::NetworkIdentifier const& source, ::BossEventPacket const& packet);
960
961 MCAPI void $handle(::NetworkIdentifier const& source, ::ClientCameraAimAssistPacket const& packet);
962
963 MCAPI void $handle(::NetworkIdentifier const& source, ::ClientCacheStatusPacket const& packet);
964
965 MCAPI void $handle(::NetworkIdentifier const& source, ::ClientCacheBlobStatusPacket const& packet);
966
967 MCAPI void $handle(::NetworkIdentifier const& source, ::ClientMovementPredictionSyncPacket const& packet);
968
969 MCAPI void $handle(::NetworkIdentifier const& source, ::ClientToServerHandshakePacket const& packet);
970
971 MCAPI void $handle(::NetworkIdentifier const& source, ::CommandBlockUpdatePacket const& packet);
972
973 MCAPI void $handle(::NetworkIdentifier const& source, ::CommandRequestPacket const& packet);
974
975 MCFOLD void $handle(::NetworkIdentifier const& source, ::CompletedUsingItemPacket const& packet);
976
977 MCAPI void $handle(::NetworkIdentifier const& source, ::ContainerClosePacket const& packet);
978
979 MCAPI void $handle(::NetworkIdentifier const& source, ::DebugInfoPacket const& packet);
980
981 MCFOLD void $handle(::NetworkIdentifier const& source, ::CreatePhotoPacket const& packet);
982
983 MCAPI void $handle(::NetworkIdentifier const& source, ::DisconnectPacket const& packet);
984
985 MCAPI void $handle(::NetworkIdentifier const& source, ::EmoteListPacket const& packet);
986
987 MCAPI void $handle(::NetworkIdentifier const& source, ::EmotePacket const& packet);
988
989 MCAPI void $handle(::NetworkIdentifier const& source, ::InteractPacket const& packet);
990
991 MCAPI void $handle(::NetworkIdentifier const& source, ::std::shared_ptr<::InventoryTransactionPacket> packet);
992
993 MCAPI void $handle(::NetworkIdentifier const& source, ::ItemStackRequestPacket const& packet);
994
995 MCAPI void $handle(::NetworkIdentifier const& source, ::LabTablePacket const& packet);
996
997 MCAPI void $handle(::NetworkIdentifier const& source, ::LevelSoundEventPacket const& packet);
998
999 MCAPI void $handle(::NetworkIdentifier const& source, ::std::shared_ptr<::LoginPacket> packet);
1000
1001 MCAPI void $handle(::NetworkIdentifier const& source, ::MapCreateLockedCopyPacket const& packet);
1002
1003 MCAPI void $handle(::NetworkIdentifier const& source, ::MapInfoRequestPacket const& packet);
1004
1005 MCAPI void $handle(::NetworkIdentifier const& source, ::std::shared_ptr<::MobEquipmentPacket> packet);
1006
1007 MCAPI void $handle(::NetworkIdentifier const& source, ::ModalFormResponsePacket const& packet);
1008
1009 MCAPI void $handle(::NetworkIdentifier const& source, ::NetworkStackLatencyPacket const& packet);
1010
1011 MCAPI void $handle(::NetworkIdentifier const& source, ::NpcRequestPacket const& packet);
1012
1013 MCFOLD void $handle(::NetworkIdentifier const& source, ::PhotoTransferPacket const& packet);
1014
1015 MCAPI void $handle(::NetworkIdentifier const& source, ::PlayerActionPacket const& packet);
1016
1017 MCAPI void $handle(::NetworkIdentifier const& source, ::PlayerAuthInputPacket const& packet);
1018
1019 MCAPI void $handle(::NetworkIdentifier const& source, ::PlayerHotbarPacket const& packet);
1020
1021 MCAPI void $handle(::NetworkIdentifier const& source, ::PlayerSkinPacket const& packet);
1022
1023 MCAPI void $handle(::NetworkIdentifier const& source, ::PlayerToggleCrafterSlotRequestPacket const& packet);
1024
1025 MCAPI void $handle(::NetworkIdentifier const& source, ::PositionTrackingDBClientRequestPacket const& packet);
1026
1027 MCFOLD void $handle(::NetworkIdentifier const& source, ::PurchaseReceiptPacket const& packet);
1028
1029 MCAPI void $handle(::NetworkIdentifier const& source, ::RequestChunkRadiusPacket const& packet);
1030
1031 MCAPI void $handle(::NetworkIdentifier const& source, ::ResourcePackChunkRequestPacket const& packet);
1032
1033 MCAPI void $handle(::NetworkIdentifier const& source, ::RespawnPacket const& packet);
1034
1035 MCAPI void $handle(::NetworkIdentifier const& source, ::SetDefaultGameTypePacket const& packet);
1036
1037 MCAPI void $handle(::NetworkIdentifier const& source, ::SetDifficultyPacket const& packet);
1038
1039 MCAPI void $handle(::NetworkIdentifier const& source, ::SetLocalPlayerAsInitializedPacket const& packet);
1040
1041 MCAPI void $handle(::NetworkIdentifier const& source, ::SetPlayerGameTypePacket const& packet);
1042
1043 MCAPI void $handle(::NetworkIdentifier const& source, ::UpdatePlayerGameTypePacket const& packet);
1044
1045 MCAPI void $handle(::NetworkIdentifier const& source, ::ScriptMessagePacket const& packet);
1046
1047 MCAPI void $handle(::NetworkIdentifier const& source, ::ShowCreditsPacket const& packet);
1048
1049 MCAPI void $handle(::NetworkIdentifier const& source, ::SimpleEventPacket const& packet);
1050
1051 MCAPI void $handle(::NetworkIdentifier const& source, ::SpawnExperienceOrbPacket const& packet);
1052
1053 MCAPI void $handle(::NetworkIdentifier const& source, ::StructureBlockUpdatePacket const& packet);
1054
1055 MCAPI void $handle(::NetworkIdentifier const& source, ::StructureTemplateDataRequestPacket const& packet);
1056
1057 MCAPI void $handle(::NetworkIdentifier const& source, ::std::shared_ptr<::SubClientLoginPacket> packet);
1058
1059 MCAPI void $handle(::NetworkIdentifier const& source, ::TextPacket const& packet);
1060
1061 MCAPI void $handle(::NetworkIdentifier const& source, ::MultiplayerSettingsPacket const& packet);
1062
1063 MCAPI void $handle(::NetworkIdentifier const& source, ::SettingsCommandPacket const& packet);
1064
1065 MCAPI void $handle(::NetworkIdentifier const& source, ::AnvilDamagePacket const& packet);
1066
1067 MCAPI void $handle(::NetworkIdentifier const& source, ::SubChunkRequestPacket const& packet);
1068
1069 MCAPI void $handle(::NetworkIdentifier const& source, ::CodeBuilderSourcePacket const& packet);
1070
1071 MCFOLD void $handle(::NetworkIdentifier const&, ::ChangeMobPropertyPacket const& packet);
1072
1073 MCAPI void $handle(::NetworkIdentifier const& source, ::RequestAbilityPacket const& packet);
1074
1075 MCAPI void $handle(::NetworkIdentifier const& source, ::RequestNetworkSettingsPacket const& packet);
1076
1077 MCAPI void $handle(::NetworkIdentifier const& source, ::RequestPermissionsPacket const& packet);
1078
1079 MCAPI void $handle(::NetworkIdentifier const& source, ::EditorNetworkPacket const& packet);
1080
1081 MCAPI void $handle(::NetworkIdentifier const& source, ::GameTestRequestPacket const& packet);
1082
1083 MCAPI void $handle(::NetworkIdentifier const& source, ::SetPlayerInventoryOptionsPacket const& packet);
1084
1085 MCAPI void $handle(::NetworkIdentifier const& source, ::ServerboundLoadingScreenPacket const& packet);
1086
1087 MCAPI void $handle(::NetworkIdentifier const& source, ::ServerboundDiagnosticsPacket const& packet);
1088
1089 MCAPI void $handle(::NetworkIdentifier const& source, ::UpdateClientOptionsPacket const& packet);
1090
1091 MCAPI void $handle(::NetworkIdentifier const& source, ::ServerboundPackSettingChangePacket const& packet);
1092
1093 MCAPI void $handle(::NetworkIdentifier const& source, ::DataStoreSyncPacket const& packet);
1094
1095 MCAPI void $sendSubClientLoginMessageLocal(
1096 ::NetworkIdentifier const& source,
1097 ::SubClientConnectionRequest const& connectionRequest,
1098 ::SubClientId subid
1099 );
1100
1101 MCAPI void $onTick();
1102
1103 MCAPI ::GameSpecificNetEventCallback* $getGameSpecificNetEventCallback();
1104
1105 MCAPI void $onConnect(::NetworkIdentifier const& id);
1106
1107 MCAPI void $completeHandshake(::NetworkIdentifier const& source);
1108
1109 MCAPI bool $_validateLoginPacket(::NetworkIdentifier const& source, ::LoginPacket const& packet);
1110
1111 MCAPI void $_onClientAsyncAuthorized(
1112 ::NetworkIdentifier const& source,
1113 ::ConnectionRequest const& request,
1114 ::std::optional<::MessToken> const& hostMessToken
1115 );
1116
1117 MCAPI ::ServerPlayer* $_getServerPlayer(::NetworkIdentifier const& source, ::SubClientId subId);
1118 // NOLINTEND
1119
1120public:
1121 // vftables
1122 // NOLINTBEGIN
1123 MCNAPI static void** $vftableForNetEventCallback();
1124
1126
1127 MCNAPI static void** $vftableForXboxLiveUserObserver();
1128
1129 MCNAPI static void** $vftableForLevelListener();
1130
1132 // NOLINTEND
1133};
Definition Abilities.h:15
Definition AllowList.h:14
Definition AnimatePacket.h:17
Definition AppConfigs.h:23
Definition AsyncJoinTaskManager.h:23
Definition NonOwnerPointer.h:9
Definition RedactableString.h:10
Definition EnableQueueForMainThread.h:10
Definition BiomeDefinitionListPacket.h:18
Definition BlockSource.h:66
Definition BookEditPacket.h:18
Definition BossEventPacket.h:21
Definition ClassroomModeNetworkHandler.h:20
Definition ClientCacheBlobStatusPacket.h:16
Definition ClientMovementPredictionSyncPacket.h:20
Definition CommandBlockUpdatePacket.h:20
Definition CommandRequestPacket.h:18
Definition ConnectionRequest.h:27
Definition DataStoreSyncPacket.h:19
Definition DisconnectPacket.h:17
Definition EntityContext.h:16
Definition GameCallbacks.h:5
Definition GameSpecificNetEventCallback.h:11
Definition GameTestNetworkAdapter.h:16
Definition GameTestRequestPacket.h:15
Definition IEDUSystems.h:14
Definition ILevel.h:211
Definition IMinecraftApp.h:17
Definition IPacketSecurityController.h:22
Definition InteractPacket.h:18
Definition InventoryTransactionPacket.h:24
Definition ItemStackRequestPacket.h:17
Definition LabTablePacket.h:19
Definition LecternUpdatePacket.h:19
Definition LevelListener.h:28
Definition MinecraftCommands.h:33
Definition MinecraftGameTest.h:21
Definition MinecraftServiceKeyManager.h:17
Definition MobEquipmentPacket.h:24
Definition NetEventCallback.h:244
Definition NetworkIdentifier.h:10
Definition PacketSender.h:17
Definition Packet.h:43
Definition PermissionsFile.h:17
Definition PermissionsHandler.h:14
Definition PlayerAuthInputPacket.h:27
Definition PlayerHotbarPacket.h:19
Definition PlayerSkinPacket.h:18
Definition Player.h:123
Definition PrivateKeyManager.h:9
Definition PurchaseReceiptPacket.h:15
Definition ResourcePackClientResponsePacket.h:17
Definition ResourcePackFileUploadManager.h:25
Definition Scheduler.h:13
Definition ScriptPackSettingsCache.h:17
Definition SerializedSkin.h:21
Definition ServerLocator.h:19
Definition ServerNetworkHandler.h:191
MCAPI void removeSubClientRequest(::SubClientId subClientId)
Definition ServerNetworkHandler.h:177
Definition ServerNetworkHandler.h:168
static MCAPI void ** $vftableForMultiplayerServiceObserver()
static MCAPI void ** $vftableForLevelListener()
static MCAPI void ** $vftableForXboxLiveUserObserver()
static MCAPI void ** $vftableForNetEventCallback()
static MCAPI void ** $vftableForEnableQueueForMainThread()
Definition ServerNetworkSystem.h:31
Definition ServerPlayer.h:66
Definition ServiceReference.h:8
Definition GameConnectionInfo.h:7
Definition MultiplayerServiceObserver.h:17
Definition XboxLiveUserObserver.h:15
Definition StructureBlockUpdatePacket.h:18
Definition SubChunkPacket.h:19
Definition SubChunkRequestPacket.h:20
Definition SubClientConnectionRequest.h:20
Definition SubClientLoginPacket.h:17
Definition TaskGroup.h:53
Definition TextFilteringProcessor.h:18
Definition TextPacket.h:18
Definition UserEntityIdentifierComponent.h:12
Definition Vec3.h:10
Definition UUID.h:7
Definition optional_ref.h:10
Definition ActorUniqueID.h:5
Definition AsyncJoinAllow.h:5
Definition AsyncJoinDeny.h:5
Definition ChatEvent.h:14
Definition IServerNetworkController.h:11
Definition MessToken.h:11
Definition NetworkIdentifierWithSubId.h:10
Definition NetworkServerConfig.h:9
Definition PackIdVersion.h:10
Definition ServerNetworkHandlerDependencies.h:5
Definition context.h:5
Definition Alias.h:14