3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/network/ClientNetworkPackDependencies.h"
7#include "mc/common/SubClientId.h"
8#include "mc/deps/core/math/PairHash.h"
9#include "mc/deps/core/math/TupleHash.h"
10#include "mc/deps/core/threading/MPMCQueue.h"
11#include "mc/deps/core/utility/NonOwnerPointer.h"
12#include "mc/deps/core/utility/pub_sub/Subscription.h"
13#include "mc/deps/shared_types/legacy/LevelEvent.h"
14#include "mc/network/IncomingPacketFilterResult.h"
15#include "mc/network/MinecraftPacketIds.h"
16#include "mc/network/NetEventCallback.h"
17#include "mc/network/OutgoingPacketFilterResult.h"
18#include "mc/network/PacketViolationResponse.h"
19#include "mc/network/connection/DisconnectFailReason.h"
20#include "mc/network/connection/DisconnectionStage.h"
21#include "mc/network/packet/ShowStoreOfferRedirectType.h"
22#include "mc/network/packet/SubChunkPacket.h"
177namespace ClientBlobCache {
class Cache; }
192 using ChunkKey = ::std::pair<::Dimension const*, ::ChunkPos>;
194 using ChunkCallbackKey = ::std::tuple<::NetworkIdentifier, ::Dimension const*, ::ChunkPos>;
199 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ClientBlobCache::Cache>> mBlobCache;
200 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::MPMCQueue<uint64>>> mCacheMisses;
201 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::MPMCQueue<uint64>>> mCacheHits;
202 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::SharedTypes::v1_21_20::JigsawStructureData>> mJigsawStructureData;
203 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::VoxelShapes::VoxelShapeRegistry>> mVoxelShapeRegistry;
204 ::ll::TypedStorage<8, 8, ::IClientInstance&> mClient;
205 ::ll::TypedStorage<8, 8, ::PacketSender&> mPacketSender;
206 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::IGameConnectionListener>> mGameConnectionListener;
207 ::ll::TypedStorage<8, 8, ::IGameServerStartup&> mGameServerStartup;
208 ::ll::TypedStorage<8, 8, ::ClientNetworkSystem&> mNetwork;
209 ::ll::TypedStorage<8, 8, ::PrivateKeyManager const&> mClientKeys;
210 ::ll::TypedStorage<8, 8, ::MinecraftCommands&> mMinecraftCommands;
211 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::ILevel>> mLevel;
212 ::ll::TypedStorage<1, 1, bool> mHasMessage;
213 ::ll::TypedStorage<1, 1, bool> mIsLoggedIn;
214 ::ll::TypedStorage<1, 1, bool> mHasHandshaked;
215 ::ll::TypedStorage<8, 16, ::std::shared_ptr<bool>> mExistenceTracker;
216 ::ll::TypedStorage<1, 1, bool> mPacketTelemetryEnabled;
217 ::ll::TypedStorage<1, 1, bool> mEventSynchronizationEnabled;
221 ::std::unordered_map<
222 ::std::pair<::Dimension const*, ::ChunkPos>,
224 ::mce::Math::PairHash,
225 ::std::equal_to<::std::pair<::Dimension const*, ::ChunkPos>>>>
230 ::std::unordered_map<
231 ::std::tuple<::NetworkIdentifier, ::Dimension const*, ::ChunkPos>,
232 ::std::function<void(::BlockSource&)>,
233 ::mce::Math::TupleHash,
234 ::std::equal_to<::std::tuple<::NetworkIdentifier, ::Dimension const*, ::ChunkPos>>>>
235 mConnectionPausedCallbacks;
236 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::TaskGroup>> mIOTaskGroup;
237 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::VideoCaptureSessionManager>> mVideoCaptureSessionManager;
238 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::TextureShiftManager>> mTextureShiftManager;
239 ::ll::TypedStorage<8, 128, ::ClientNetworkPackDependencies> mPackDependencies;
240 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::CachedHostPackIdProvider>> mCachedHostPackIdProvider;
241 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mHostPacksReceivedSub;
242 ::ll::TypedStorage<1, 1, bool> mAllowFurnaceRecipesUnlocking;
247 ClientNetworkHandler& operator=(ClientNetworkHandler
const&);
248 ClientNetworkHandler(ClientNetworkHandler
const&);
249 ClientNetworkHandler();
254 virtual ~ClientNetworkHandler() ;
256 virtual void handle(::NetworkIdentifier
const& packet, ::ActorEventPacket
const&) ;
258 virtual void handle(::NetworkIdentifier
const&, ::AddBehaviorTreePacket
const&) ;
260 virtual void handle(::NetworkIdentifier
const& packet, ::AnimateEntityPacket
const&) ;
262 virtual void handle(::NetworkIdentifier
const& packet, ::AvailableActorIdentifiersPacket
const&) ;
264 virtual void handle(::NetworkIdentifier
const& packet, ::AvailableCommandsPacket
const&) ;
266 virtual void handle(::NetworkIdentifier
const& packet, ::AutomationClientConnectPacket
const&) ;
268 virtual void handle(::NetworkIdentifier
const& source, ::BiomeDefinitionListPacket
const& packet) ;
270 virtual void handle(::NetworkIdentifier
const& packet, ::BossEventPacket
const&) ;
272 virtual void handle(::NetworkIdentifier
const& packet, ::CameraAimAssistPacket
const&) ;
274 virtual void handle(::NetworkIdentifier
const& packet, ::CameraAimAssistPresetsPacket
const&) ;
276 virtual void handle(::NetworkIdentifier
const& packet, ::CameraAimAssistActorPriorityPacket
const&) ;
278 virtual void handle(::NetworkIdentifier
const& packet, ::CameraInstructionPacket
const&) ;
280 virtual void handle(::NetworkIdentifier
const& packet, ::CameraPacket
const&) ;
282 virtual void handle(::NetworkIdentifier
const& packet, ::CameraPresetsPacket
const&) ;
284 virtual void handle(::NetworkIdentifier
const& packet, ::CameraShakePacket
const&) ;
286 virtual void handle(::NetworkIdentifier
const& packet, ::CameraSplinePacket
const&) ;
288 virtual void handle(::NetworkIdentifier
const& packet, ::ChunkRadiusUpdatedPacket
const&) ;
290 virtual void handle(::NetworkIdentifier
const& packet, ::ClientboundControlSchemeSetPacket
const&) ;
292 virtual void handle(::NetworkIdentifier
const& packet, ::ClientboundMapItemDataPacket
const&) ;
294 virtual void handle(::NetworkIdentifier
const& source, ::CommandOutputPacket
const& packet) ;
296 virtual void handle(::NetworkIdentifier
const&, ::CommandRequestPacket
const&) ;
298 virtual void handle(::NetworkIdentifier
const& packet, ::CompletedUsingItemPacket
const&) ;
300 virtual void handle(::NetworkIdentifier
const& packet, ::CraftingDataPacket
const&) ;
302 virtual void handle(::NetworkIdentifier
const& packet, ::EmoteListPacket
const&) ;
304 virtual void handle(::NetworkIdentifier
const&, ::DebugInfoPacket
const&) ;
306 virtual void handle(::NetworkIdentifier
const& packet, ::EmotePacket
const&) ;
308 virtual void handle(::NetworkIdentifier
const& packet, ::LegacyTelemetryEventPacket
const&) ;
310 virtual void handle(::NetworkIdentifier
const& packet, ::FeatureRegistryPacket
const&) ;
312 virtual void handle(::NetworkIdentifier
const& packet, ::LessonProgressPacket
const&) ;
314 virtual void handle(::NetworkIdentifier
const& packet, ::GuiDataPickItemPacket
const&) ;
316 virtual void handle(::NetworkIdentifier
const& packet, ::ItemStackResponsePacket
const&) ;
318 virtual void handle(::NetworkIdentifier
const& source, ::LabTablePacket
const& packet) ;
320 virtual void handle(::NetworkIdentifier
const& packet, ::LevelEventPacket
const&) ;
322 virtual void handle(::NetworkIdentifier
const& packet, ::LevelEventGenericPacket
const&) ;
324 virtual void handle(::NetworkIdentifier
const& packet, ::LevelSoundEventPacket
const&) ;
326 virtual void handle(::NetworkIdentifier
const& packet, ::ModalFormRequestPacket
const&) ;
328 virtual void handle(::NetworkIdentifier
const& packet, ::ToastRequestPacket
const&) ;
330 virtual void handle(::NetworkIdentifier
const& packet, ::OnScreenTextureAnimationPacket
const&) ;
332 virtual void handle(::NetworkIdentifier
const& packet, ::NetworkChunkPublisherUpdatePacket
const&) ;
334 virtual void handle(::NetworkIdentifier
const& packet, ::PhotoTransferPacket
const&) ;
336 virtual void handle(::NetworkIdentifier
const& packet, ::PlayerArmorDamagePacket
const&) ;
338 virtual void handle(::NetworkIdentifier
const& packet, ::PlayerStartItemCooldownPacket
const&) ;
340 virtual void handle(::NetworkIdentifier
const& packet, ::PlaySoundPacket
const&) ;
342 virtual void handle(::NetworkIdentifier
const& source, ::PlayStatusPacket
const& packet) ;
344 virtual void handle(::NetworkIdentifier
const& packet, ::PlayerFogPacket
const&) ;
347 handle(::NetworkIdentifier
const& packet, ::PositionTrackingDBServerBroadcastPacket
const&) ;
349 virtual void handle(::NetworkIdentifier
const& packet, ::RemoveObjectivePacket
const&) ;
351 virtual void handle(::NetworkIdentifier
const& packet, ::ResourcePackChunkDataPacket
const&) ;
353 virtual void handle(::NetworkIdentifier
const& source, ::ResourcePackDataInfoPacket
const& packet) ;
355 virtual void handle(::NetworkIdentifier
const& packet, ::ResourcePacksInfoPacket
const&) ;
357 virtual void handle(::NetworkIdentifier
const& source, ::ResourcePackStackPacket
const& packet) ;
359 virtual void handle(::NetworkIdentifier
const& packet, ::RespawnPacket
const&) ;
361 virtual void handle(::NetworkIdentifier
const& packet, ::ScriptMessagePacket
const&) ;
363 virtual void handle(::NetworkIdentifier
const&, ::ServerPlayerPostMovePositionPacket
const&) ;
365 virtual void handle(::NetworkIdentifier
const& packet, ::ServerSettingsResponsePacket
const&) ;
367 virtual void handle(::NetworkIdentifier
const& source, ::ServerToClientHandshakePacket
const& packet) ;
369 virtual void handle(::NetworkIdentifier
const& packet, ::SetDisplayObjectivePacket
const&) ;
371 virtual void handle(::NetworkIdentifier
const& packet, ::SetLastHurtByPacket
const&) ;
373 virtual void handle(::NetworkIdentifier
const& packet, ::SetPlayerGameTypePacket
const&) ;
375 virtual void handle(::NetworkIdentifier
const& source, ::UpdatePlayerGameTypePacket
const& packet) ;
377 virtual void handle(::NetworkIdentifier
const& packet, ::SetScoreboardIdentityPacket
const&) ;
379 virtual void handle(::NetworkIdentifier
const& packet, ::SetScorePacket
const&) ;
381 virtual void handle(::NetworkIdentifier
const& packet, ::SetTitlePacket
const&) ;
383 virtual void handle(::NetworkIdentifier
const& packet, ::ShowCreditsPacket
const&) ;
385 virtual void handle(::NetworkIdentifier
const& packet, ::ShowProfilePacket
const&) ;
387 virtual void handle(::NetworkIdentifier
const& packet, ::ShowStoreOfferPacket
const&) ;
389 virtual void handle(::NetworkIdentifier
const& packet, ::SimpleEventPacket
const&) ;
391 virtual void handle(::NetworkIdentifier
const& packet, ::StopSoundPacket
const&) ;
393 virtual void handle(::NetworkIdentifier
const& source, ::SubChunkPacket
const& packet) ;
395 virtual void handle(::NetworkIdentifier
const& packet, ::TakeItemActorPacket
const&) ;
397 virtual void handle(::NetworkIdentifier
const& packet, ::TextPacket
const&) ;
399 virtual void handle(::NetworkIdentifier
const& packet, ::TickingAreasLoadStatusPacket
const&) ;
401 virtual void handle(::NetworkIdentifier
const& packet, ::TransferPacket
const&) ;
403 virtual void handle(::NetworkIdentifier
const& packet, ::std::shared_ptr<::UpdateAttributesPacket>) ;
405 virtual void handle(::NetworkIdentifier
const& packet, ::UpdateEquipPacket
const&) ;
407 virtual void handle(::NetworkIdentifier
const& packet, ::UpdateSoftEnumPacket
const&) ;
409 virtual void handle(::NetworkIdentifier
const& packet, ::UpdateTradePacket
const&) ;
411 virtual void handle(::NetworkIdentifier
const& packet, ::StructureTemplateDataResponsePacket
const&) ;
413 virtual void handle(::NetworkIdentifier
const& packet, ::EducationSettingsPacket
const&) ;
415 virtual void handle(::NetworkIdentifier
const& packet, ::EduUriResourcePacket
const&) ;
417 virtual void handle(::NetworkIdentifier
const& packet, ::MultiplayerSettingsPacket
const&) ;
419 virtual void handle(::NetworkIdentifier
const& packet, ::PlayerEnchantOptionsPacket
const&) ;
421 virtual void handle(::NetworkIdentifier
const& packet, ::CodeBuilderPacket
const&) ;
423 virtual void handle(::NetworkIdentifier
const& packet, ::CorrectPlayerMovePredictionPacket
const&) ;
425 virtual void handle(::NetworkIdentifier
const& packet, ::SyncActorPropertyPacket
const&) ;
427 virtual void handle(::NetworkIdentifier
const& packet, ::NpcDialoguePacket
const&) ;
429 virtual void handle(::NetworkIdentifier
const&, ::ClientboundDebugRendererPacket
const&) ;
431 virtual void handle(::NetworkIdentifier
const& packet, ::AddVolumeEntityPacket
const&) ;
433 virtual void handle(::NetworkIdentifier
const& packet, ::RemoveVolumeEntityPacket
const&) ;
435 virtual void handle(::NetworkIdentifier
const& packet, ::SimulationTypePacket
const&) ;
437 virtual void handle(::NetworkIdentifier
const& packet, ::AgentActionEventPacket
const&) ;
439 virtual void handle(::NetworkIdentifier
const& source, ::UpdateSubChunkBlocksPacket
const& packet) ;
441 virtual void handle(::NetworkIdentifier
const& packet, ::DeathInfoPacket
const&) ;
443 virtual void handle(::NetworkIdentifier
const& packet, ::EditorNetworkPacket
const&) ;
445 virtual void handle(::NetworkIdentifier
const&, ::GameTestResultsPacket
const&) ;
447 virtual void handle(::NetworkIdentifier
const& packet, ::UpdateClientInputLocksPacket
const&) ;
449 virtual void handle(::NetworkIdentifier
const& packet, ::PlayerActionPacket
const&) ;
451 virtual void handle(::NetworkIdentifier
const& packet, ::UnlockedRecipesPacket
const&) ;
453 virtual void handle(::NetworkIdentifier
const& packet, ::TrimDataPacket
const&) ;
455 virtual void handle(::NetworkIdentifier
const& packet, ::OpenSignPacket
const&) ;
457 virtual void handle(::NetworkIdentifier
const& packet, ::AgentAnimationPacket
const&) ;
459 virtual void handle(::NetworkIdentifier
const&, ::RefreshEntitlementsPacket
const&) ;
461 virtual void handle(::NetworkIdentifier
const& packet, ::SetPlayerInventoryOptionsPacket
const&) ;
463 virtual void handle(::NetworkIdentifier
const& packet, ::AwardAchievementPacket
const&) ;
465 virtual void handle(::NetworkIdentifier
const&, ::ClientboundCloseFormPacket
const&) ;
467 virtual void handle(::NetworkIdentifier
const& packet, ::JigsawStructureDataPacket
const&) ;
469 virtual void handle(::NetworkIdentifier
const& packet, ::CurrentStructureFeaturePacket
const&) ;
471 virtual void handle(::NetworkIdentifier
const& packet, ::PlayerVideoCapturePacket
const&) ;
473 virtual void handle(::NetworkIdentifier
const& packet, ::PlayerLocationPacket
const&) ;
475 virtual void handle(::NetworkIdentifier
const& packet, ::PrimitiveShapesPacket
const&) ;
477 virtual void handle(::NetworkIdentifier
const& packet, ::ClientboundDataStorePacket
const&) ;
479 virtual void handle(::NetworkIdentifier
const& packet, ::GraphicsOverrideParameterPacket
const&) ;
482 handle(::NetworkIdentifier
const& packet, ::ClientboundDataDrivenUICloseScreenPacket
const&) ;
484 virtual void handle(::NetworkIdentifier
const&, ::ClientboundDataDrivenUIReloadPacket
const&) ;
487 handle(::NetworkIdentifier
const& packet, ::ClientboundDataDrivenUIShowScreenPacket
const&) ;
489 virtual void handle(::NetworkIdentifier
const& packet, ::ClientboundTextureShiftPacket
const&) ;
491 virtual void handle(::NetworkIdentifier
const& packet, ::VoxelShapesPacket
const&) ;
493 virtual void handle(::NetworkIdentifier
const& packet, ::LocatorBarPacket
const&) ;
495 virtual void handle(::NetworkIdentifier
const& packet, ::SyncWorldClocksPacket
const&) ;
497 virtual void handle(::NetworkIdentifier
const& packet, ::ClientboundAttributeLayerSyncPacket
const&) ;
499 virtual void handle(::NetworkIdentifier
const& packet, ::ServerStoreInfoPacket
const&) ;
501 virtual void handle(::NetworkIdentifier
const& packet, ::ServerPresenceInfoPacket
const&) ;
503 virtual void onOutgoingPacket(
504 ::NetworkIdentifier
const& netId,
505 ::MinecraftPacketIds packetId,
506 ::SubClientId recipientSubId,
510 virtual void onValidPacketReceived(
511 ::NetworkIdentifier
const& netId,
512 ::MinecraftPacketIds packetId,
513 ::SubClientId recipientSubId,
518 onStoreOfferReceive(::ShowStoreOfferRedirectType
const redirectType, ::std::string
const& offerID) ;
520 virtual void onDisconnect(
521 ::NetworkIdentifier
const& discoReason,
522 ::Connection::DisconnectFailReason
const disconnectStage,
523 ::Connection::DisconnectionStage
const messageFromServer,
524 ::std::string
const& messageBodyOverride,
525 ::std::string
const& skipMessage,
526 bool telemetryOverride,
530 virtual ::IncomingPacketFilterResult
531 allowIncomingPacketId(::NetworkIdentifierWithSubId
const& packetId, ::MinecraftPacketIds, uint64) ;
533 virtual ::OutgoingPacketFilterResult
534 allowOutgoingPacket(::std::vector<::NetworkIdentifierWithSubId>
const&, ::Packet
const&) ;
536 virtual void handlePacketViolation(
537 ::std::shared_ptr<::IPacketSecurityController>
const& packetSecurityController,
538 ::std::error_code
const& errorCode,
539 ::PacketViolationResponse
const response,
540 ::MinecraftPacketIds
const packetId,
541 ::std::string&& context,
542 ::NetworkIdentifier
const& netId,
543 ::SubClientId
const clientSubId,
544 ::SubClientId
const senderSubId,
545 uint
const packetSize
548 virtual void sendPacketViolationWarningPacket(
549 ::std::error_code
const& errorCode,
550 ::PacketViolationResponse violationResponse,
551 ::MinecraftPacketIds violatingPacketId,
552 ::std::string
const& context,
553 ::NetworkIdentifier
const& netId,
554 ::SubClientId clientSubId
557 virtual void onSuccessfulLogin(::NetworkIdentifier
const&);
563 MCAPI
explicit ClientNetworkHandler(::ClientNetworkHandlerArguments&& args);
565 MCAPI
void _disconnectFromServer(::NetworkIdentifier
const& source);
567 MCAPI
void _ensureVoxelShapeRegistryExists(::Experiments
const& experiments);
569 MCAPI
void _handleLevelEvent(::SharedTypes::Legacy::LevelEvent type, ::LevelEventGenericPacket
const& packet);
571 MCAPI
void _handleLevelEvent(::SharedTypes::Legacy::LevelEvent type, ::LevelEventPacket
const& packet);
573 MCAPI
void _handleLevelMusicEvent(::SharedTypes::Legacy::LevelEvent type, ::LevelEventGenericPacket
const& packet);
575 MCAPI
void _handleSubChunkData(
576 ::NetworkIdentifier
const& packet,
577 ::SubChunkPacket
const& subChunkData,
578 ::SubChunkPacket::SubChunkPacketData
const& localPlayer,
579 ::LocalPlayer
const* levelAndPlayerExists,
584 _handleUnlockedRecipes(::UnlockedRecipesPacket
const& packet, ::UnlockedRecipesClientComponent& component);
586 MCAPI
void _handleUnlockedRecipesByTag(
587 ::UnlockedRecipesClientComponent
const& component,
588 ::std::map<::HashedString, ::std::map<::std::string, ::std::shared_ptr<::Recipe>>>
const& allRecipes,
589 ::std::string
const& recipeId,
590 ::HashedString
const& tag,
591 ::std::vector<::ToastIconData>& newRecipeToastDataRef
594 MCAPI
void _respondBlobCacheStatusForSubChunk(::SubChunkPacket::SubChunkPacketData
const& subChunkData);
597 onChunkHandleCompleted(::NetworkIdentifier
const& source, ::ChunkPos
const& cp, ::Dimension
const& dimension);
599 MCAPI
void queueHandleWorldChangePacket(
600 ::NetworkIdentifier
const& source,
601 ::BlockPos
const& requiredPos,
602 ::std::function<
void(::BlockSource&)>&& handler
609 MCAPI static ::ClientNetworkHandler::SubscribedHostPacks
610 createHostPacks(::PackDownloadManager& downloadMaager, ::IContentManager& contentManager);
616 MCAPI
void* $ctor(::ClientNetworkHandlerArguments&& args);
628 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::ActorEventPacket
const&);
630 MCFOLD
void $handle(::NetworkIdentifier
const&, ::AddBehaviorTreePacket
const&);
632 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::AnimateEntityPacket
const&);
634 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::AvailableActorIdentifiersPacket
const&);
636 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::AvailableCommandsPacket
const&);
638 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::AutomationClientConnectPacket
const&);
640 MCAPI
void $handle(::NetworkIdentifier
const& source, ::BiomeDefinitionListPacket
const& packet);
642 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::BossEventPacket
const&);
644 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::CameraAimAssistPacket
const&);
646 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::CameraAimAssistPresetsPacket
const&);
648 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::CameraAimAssistActorPriorityPacket
const&);
650 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::CameraInstructionPacket
const&);
652 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::CameraPacket
const&);
654 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::CameraPresetsPacket
const&);
656 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::CameraShakePacket
const&);
658 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::CameraSplinePacket
const&);
660 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::ChunkRadiusUpdatedPacket
const&);
662 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::ClientboundControlSchemeSetPacket
const&);
664 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::ClientboundMapItemDataPacket
const&);
666 MCAPI
void $handle(::NetworkIdentifier
const& source, ::CommandOutputPacket
const& packet);
668 MCFOLD
void $handle(::NetworkIdentifier
const&, ::CommandRequestPacket
const&);
670 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::CompletedUsingItemPacket
const&);
672 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::CraftingDataPacket
const&);
674 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::EmoteListPacket
const&);
676 MCFOLD
void $handle(::NetworkIdentifier
const&, ::DebugInfoPacket
const&);
678 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::EmotePacket
const&);
680 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::LegacyTelemetryEventPacket
const&);
682 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::FeatureRegistryPacket
const&);
684 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::LessonProgressPacket
const&);
686 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::GuiDataPickItemPacket
const&);
688 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::ItemStackResponsePacket
const&);
690 MCAPI
void $handle(::NetworkIdentifier
const& source, ::LabTablePacket
const& packet);
692 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::LevelEventPacket
const&);
694 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::LevelEventGenericPacket
const&);
696 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::LevelSoundEventPacket
const&);
698 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::ModalFormRequestPacket
const&);
700 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::ToastRequestPacket
const&);
702 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::OnScreenTextureAnimationPacket
const&);
704 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::NetworkChunkPublisherUpdatePacket
const&);
706 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::PhotoTransferPacket
const&);
708 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::PlayerArmorDamagePacket
const&);
710 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::PlayerStartItemCooldownPacket
const&);
712 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::PlaySoundPacket
const&);
714 MCAPI
void $handle(::NetworkIdentifier
const& source, ::PlayStatusPacket
const& packet);
716 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::PlayerFogPacket
const&);
718 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::PositionTrackingDBServerBroadcastPacket
const&);
720 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::RemoveObjectivePacket
const&);
722 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::ResourcePackChunkDataPacket
const&);
724 MCAPI
void $handle(::NetworkIdentifier
const& source, ::ResourcePackDataInfoPacket
const& packet);
726 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::ResourcePacksInfoPacket
const&);
728 MCAPI
void $handle(::NetworkIdentifier
const& source, ::ResourcePackStackPacket
const& packet);
730 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::RespawnPacket
const&);
732 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::ScriptMessagePacket
const&);
734 MCAPI
void $handle(::NetworkIdentifier
const&, ::ServerPlayerPostMovePositionPacket
const&);
736 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::ServerSettingsResponsePacket
const&);
738 MCAPI
void $handle(::NetworkIdentifier
const& source, ::ServerToClientHandshakePacket
const& packet);
740 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::SetDisplayObjectivePacket
const&);
742 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::SetLastHurtByPacket
const&);
744 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::SetPlayerGameTypePacket
const&);
746 MCAPI
void $handle(::NetworkIdentifier
const& source, ::UpdatePlayerGameTypePacket
const& packet);
748 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::SetScoreboardIdentityPacket
const&);
750 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::SetScorePacket
const&);
752 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::SetTitlePacket
const&);
754 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::ShowCreditsPacket
const&);
756 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::ShowProfilePacket
const&);
758 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::ShowStoreOfferPacket
const&);
760 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::SimpleEventPacket
const&);
762 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::StopSoundPacket
const&);
764 MCAPI
void $handle(::NetworkIdentifier
const& source, ::SubChunkPacket
const& packet);
766 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::TakeItemActorPacket
const&);
768 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::TextPacket
const&);
770 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::TickingAreasLoadStatusPacket
const&);
772 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::TransferPacket
const&);
774 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::std::shared_ptr<::UpdateAttributesPacket>);
776 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::UpdateEquipPacket
const&);
778 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::UpdateSoftEnumPacket
const&);
780 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::UpdateTradePacket
const&);
782 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::StructureTemplateDataResponsePacket
const&);
784 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::EducationSettingsPacket
const&);
786 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::EduUriResourcePacket
const&);
788 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::MultiplayerSettingsPacket
const&);
790 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::PlayerEnchantOptionsPacket
const&);
792 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::CodeBuilderPacket
const&);
794 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::CorrectPlayerMovePredictionPacket
const&);
796 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::SyncActorPropertyPacket
const&);
798 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::NpcDialoguePacket
const&);
800 MCFOLD
void $handle(::NetworkIdentifier
const&, ::ClientboundDebugRendererPacket
const&);
802 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::AddVolumeEntityPacket
const&);
804 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::RemoveVolumeEntityPacket
const&);
806 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::SimulationTypePacket
const&);
808 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::AgentActionEventPacket
const&);
810 MCAPI
void $handle(::NetworkIdentifier
const& source, ::UpdateSubChunkBlocksPacket
const& packet);
812 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::DeathInfoPacket
const&);
814 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::EditorNetworkPacket
const&);
816 MCFOLD
void $handle(::NetworkIdentifier
const&, ::GameTestResultsPacket
const&);
818 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::UpdateClientInputLocksPacket
const&);
820 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::PlayerActionPacket
const&);
822 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::UnlockedRecipesPacket
const&);
824 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::TrimDataPacket
const&);
826 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::OpenSignPacket
const&);
828 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::AgentAnimationPacket
const&);
830 MCAPI
void $handle(::NetworkIdentifier
const&, ::RefreshEntitlementsPacket
const&);
832 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::SetPlayerInventoryOptionsPacket
const&);
834 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::AwardAchievementPacket
const&);
836 MCAPI
void $handle(::NetworkIdentifier
const&, ::ClientboundCloseFormPacket
const&);
838 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::JigsawStructureDataPacket
const&);
840 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::CurrentStructureFeaturePacket
const&);
842 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::PlayerVideoCapturePacket
const&);
844 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::PlayerLocationPacket
const&);
846 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::PrimitiveShapesPacket
const&);
848 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::ClientboundDataStorePacket
const&);
850 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::GraphicsOverrideParameterPacket
const&);
852 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::ClientboundDataDrivenUICloseScreenPacket
const&);
854 MCAPI
void $handle(::NetworkIdentifier
const&, ::ClientboundDataDrivenUIReloadPacket
const&);
856 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::ClientboundDataDrivenUIShowScreenPacket
const&);
858 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::ClientboundTextureShiftPacket
const&);
860 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::VoxelShapesPacket
const&);
862 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::LocatorBarPacket
const&);
864 MCFOLD
void $handle(::NetworkIdentifier
const& packet, ::SyncWorldClocksPacket
const&);
866 MCFOLD
void $handle(::NetworkIdentifier
const& packet, ::ClientboundAttributeLayerSyncPacket
const&);
868 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::ServerStoreInfoPacket
const&);
870 MCAPI
void $handle(::NetworkIdentifier
const& packet, ::ServerPresenceInfoPacket
const&);
872 MCAPI
void $onOutgoingPacket(
873 ::NetworkIdentifier
const& netId,
874 ::MinecraftPacketIds packetId,
875 ::SubClientId recipientSubId,
879 MCAPI
void $onValidPacketReceived(
880 ::NetworkIdentifier
const& netId,
881 ::MinecraftPacketIds packetId,
882 ::SubClientId recipientSubId,
886 MCAPI
void $onStoreOfferReceive(::ShowStoreOfferRedirectType
const redirectType, ::std::string
const& offerID);
888 MCAPI
void $onDisconnect(
889 ::NetworkIdentifier
const& discoReason,
890 ::Connection::DisconnectFailReason
const disconnectStage,
891 ::Connection::DisconnectionStage
const messageFromServer,
892 ::std::string
const& messageBodyOverride,
893 ::std::string
const& skipMessage,
894 bool telemetryOverride,
898 MCAPI ::IncomingPacketFilterResult
899 $allowIncomingPacketId(::NetworkIdentifierWithSubId
const& packetId, ::MinecraftPacketIds, uint64);
901 MCFOLD ::OutgoingPacketFilterResult
902 $allowOutgoingPacket(::std::vector<::NetworkIdentifierWithSubId>
const&, ::Packet
const&);
904 MCAPI
void $handlePacketViolation(
905 ::std::shared_ptr<::IPacketSecurityController>
const& packetSecurityController,
906 ::std::error_code
const& errorCode,
907 ::PacketViolationResponse
const response,
908 ::MinecraftPacketIds
const packetId,
909 ::std::string&& context,
910 ::NetworkIdentifier
const& netId,
911 ::SubClientId
const clientSubId,
912 ::SubClientId
const senderSubId,
913 uint
const packetSize
916 MCAPI
void $sendPacketViolationWarningPacket(
917 ::std::error_code
const& errorCode,
918 ::PacketViolationResponse violationResponse,
919 ::MinecraftPacketIds violatingPacketId,
920 ::std::string
const& context,
921 ::NetworkIdentifier
const& netId,
922 ::SubClientId clientSubId
925 MCAPI
void $onSuccessfulLogin(::NetworkIdentifier
const&);
Definition ActorEventPacket.h:19
Definition AddBehaviorTreePacket.h:19
Definition AddVolumeEntityPacket.h:19
Definition AgentActionEventPacket.h:19
Definition AgentAnimationPacket.h:19
Definition AnimateEntityPacket.h:19
Definition AutomationClientConnectPacket.h:19
Definition AvailableActorIdentifiersPacket.h:19
Definition AvailableCommandsPacket.h:19
Definition AwardAchievementPacket.h:19
Definition BiomeDefinitionListPacket.h:19
Definition BlockSource.h:73
Definition BossEventPacket.h:23
Definition CachedHostPackIdProvider.h:5
Definition CameraAimAssistActorPriorityPacket.h:19
Definition CameraAimAssistPacket.h:19
Definition CameraAimAssistPresetsPacket.h:19
Definition CameraInstructionPacket.h:19
Definition CameraPacket.h:19
Definition CameraPresetsPacket.h:19
Definition CameraShakePacket.h:19
Definition CameraSplinePacket.h:19
Definition ChunkRadiusUpdatedPacket.h:19
Definition ClientNetworkHandler.h:5
static MCAPI void ** $vftable()
Definition ClientNetworkSystem.h:39
Definition ClientboundAttributeLayerSyncPacket.h:19
Definition ClientboundControlSchemeSetPacket.h:19
Definition ClientboundDataDrivenUICloseScreenPacket.h:20
Definition ClientboundDataDrivenUIReloadPacket.h:19
Definition ClientboundDataDrivenUIShowScreenPacket.h:20
Definition ClientboundDataStorePacket.h:19
Definition ClientboundDebugRendererPacket.h:19
Definition ClientboundMapItemDataPacket.h:25
Definition ClientboundTextureShiftPacket.h:19
Definition CodeBuilderPacket.h:19
Definition CommandOutputPacket.h:19
Definition CommandRequestPacket.h:19
Definition CompletedUsingItemPacket.h:19
Definition CorrectPlayerMovePredictionPacket.h:19
Definition CraftingDataPacket.h:21
Definition CurrentStructureFeaturePacket.h:19
Definition DeathInfoPacket.h:19
Definition DebugInfoPacket.h:19
Definition Dimension.h:89
Definition EditorNetworkPacket.h:19
Definition EduUriResourcePacket.h:19
Definition EducationSettingsPacket.h:19
Definition EmoteListPacket.h:19
Definition EmotePacket.h:19
Definition Experiments.h:14
Definition FeatureRegistryPacket.h:19
Definition GameTestResultsPacket.h:19
Definition GraphicsOverrideParameterPacket.h:19
Definition GuiDataPickItemPacket.h:19
Definition HashedString.h:5
Definition IClientInstance.h:5
Definition IContentManager.h:5
Definition IGameConnectionListener.h:5
Definition IGameServerStartup.h:5
Definition IPacketSecurityController.h:22
Definition ItemStackResponsePacket.h:17
Definition JigsawStructureDataPacket.h:19
Definition LabTablePacket.h:19
Definition LegacyTelemetryEventPacket.h:19
Definition LessonProgressPacket.h:19
Definition LevelEventGenericPacket.h:19
Definition LevelEventPacket.h:19
Definition LevelSoundEventPacket.h:19
Definition LocalPlayer.h:5
Definition LocatorBarPacket.h:19
Definition MinecraftCommands.h:36
Definition MultiplayerSettingsPacket.h:19
Definition NetEventCallback.h:260
Definition NetworkChunkPublisherUpdatePacket.h:19
Definition NetworkIdentifier.h:10
Definition NpcDialoguePacket.h:19
Definition OnScreenTextureAnimationPacket.h:19
Definition OpenSignPacket.h:19
Definition PackDownloadManager.h:5
Definition PacketSender.h:17
Definition PhotoTransferPacket.h:19
Definition PlaySoundPacket.h:19
Definition PlayStatusPacket.h:19
Definition PlayerActionPacket.h:19
Definition PlayerArmorDamagePacket.h:19
Definition PlayerEnchantOptionsPacket.h:19
Definition PlayerFogPacket.h:19
Definition PlayerLocationPacket.h:18
Definition PlayerStartItemCooldownPacket.h:19
Definition PlayerVideoCapturePacket.h:19
Definition PositionTrackingDBServerBroadcastPacket.h:20
Definition PrimitiveShapesPacket.h:19
Definition PrivateKeyManager.h:9
Definition RefreshEntitlementsPacket.h:19
Definition RemoveObjectivePacket.h:19
Definition RemoveVolumeEntityPacket.h:19
Definition ResourcePackChunkDataPacket.h:19
Definition ResourcePackDataInfoPacket.h:19
Definition ResourcePackStackPacket.h:20
Definition ResourcePacksInfoPacket.h:19
Definition RespawnPacket.h:19
Definition ScriptMessagePacket.h:19
Definition ServerPlayerPostMovePositionPacket.h:19
Definition ServerPresenceInfoPacket.h:19
Definition ServerSettingsResponsePacket.h:19
Definition ServerStoreInfoPacket.h:19
Definition ServerToClientHandshakePacket.h:19
Definition SetDisplayObjectivePacket.h:19
Definition SetLastHurtByPacket.h:19
Definition SetPlayerGameTypePacket.h:19
Definition SetPlayerInventoryOptionsPacket.h:19
Definition SetScorePacket.h:20
Definition SetScoreboardIdentityPacket.h:20
Definition SetTitlePacket.h:19
Definition ShowCreditsPacket.h:19
Definition ShowProfilePacket.h:19
Definition ShowStoreOfferPacket.h:19
Definition SimpleEventPacket.h:19
Definition SimulationTypePacket.h:19
Definition StopSoundPacket.h:19
Definition StructureTemplateDataResponsePacket.h:19
Definition SubChunkPacket.h:18
Definition SyncActorPropertyPacket.h:19
Definition SyncWorldClocksPacket.h:19
Definition TakeItemActorPacket.h:19
Definition TaskGroup.h:55
Definition TextPacket.h:19
Definition TextureShiftManager.h:5
Definition TickingAreasLoadStatusPacket.h:19
Definition ToastRequestPacket.h:19
Definition TransferPacket.h:19
Definition TrimDataPacket.h:20
Definition UnlockedRecipesClientComponent.h:14
Definition UnlockedRecipesPacket.h:19
Definition UpdateAttributesPacket.h:22
Definition UpdateEquipPacket.h:19
Definition UpdatePlayerGameTypePacket.h:19
Definition UpdateSoftEnumPacket.h:19
Definition UpdateSubChunkBlocksPacket.h:19
Definition UpdateTradePacket.h:19
Definition VideoCaptureSessionManager.h:5
Definition VoxelShapesPacket.h:19
Definition VoxelShapeRegistry.h:14
Definition ClientNetworkHandlerArguments.h:5
Definition ClientNetworkHandler.h:13
Definition NetworkIdentifierWithSubId.h:10
Definition JigsawStructureData.h:16
Definition ToastIconData.h:5