3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/common/SubClientId.h"
7#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
8#include "mc/network/IncomingPacketFilterResult.h"
9#include "mc/network/MinecraftPacketIds.h"
10#include "mc/network/OutgoingPacketFilterResult.h"
11#include "mc/network/PacketViolationResponse.h"
12#include "mc/network/connection/DisconnectFailReason.h"
13#include "mc/network/connection/DisconnectionStage.h"
14#include "mc/network/packet/ShowStoreOfferRedirectType.h"
265 virtual void onPlayerReady(
::Player&);
267 virtual void onPlayerReady(
::Player& player);
275 virtual void onUnableToConnect(::Connection::DisconnectFailReason, ::std::string
const&, ::std::string
const&);
277 virtual void onUnableToConnect(
278 ::Connection::DisconnectFailReason discoReason,
279 ::std::string
const& messageFromServer,
280 ::std::string
const& messageBodyOverride
284 virtual void onTick();
286 virtual void onOutgoingPacket(
::NetworkIdentifier const&, ::MinecraftPacketIds, ::SubClientId, ::SubClientId);
288 virtual void onValidPacketReceived(
::NetworkIdentifier const&, ::MinecraftPacketIds, ::SubClientId, ::SubClientId);
291 virtual void onStoreOfferReceive(::ShowStoreOfferRedirectType
const, ::std::string
const& offerID);
293 virtual void onStoreOfferReceive(::ShowStoreOfferRedirectType
const redirectType, ::std::string
const& offerID);
296 virtual void onDisconnect(
298 ::Connection::DisconnectFailReason
const,
299 ::Connection::DisconnectionStage
const,
300 ::std::string
const& messageFromServer,
301 ::std::string
const& messageBodyOverride,
303 ::std::string
const& telemetryOverride
306 virtual ::IncomingPacketFilterResult allowIncomingPacketId(
308 ::MinecraftPacketIds packetId,
312 virtual ::OutgoingPacketFilterResult
313 allowOutgoingPacket(::std::vector<::NetworkIdentifierWithSubId>
const& ids,
::Packet const& packet) = 0;
315 virtual void onWebsocketRequest(
316 ::std::string
const& serverAddress,
317 ::std::string
const& payload,
318 ::std::function<
void()> errorCallback
321 virtual void handlePacketViolation(
322 ::std::shared_ptr<::IPacketSecurityController>
const& packetSecurityController,
323 ::std::error_code
const& errorCode,
324 ::PacketViolationResponse
const response,
325 ::MinecraftPacketIds
const packetId,
328 ::SubClientId
const clientSubId,
329 ::SubClientId
const senderSubId,
330 uint
const packetSize
333 virtual void sendPacketViolationWarningPacket(
334 ::std::error_code
const& errorCode,
335 ::PacketViolationResponse violationResponse,
336 ::MinecraftPacketIds violatingPacketId,
339 ::SubClientId clientSubId
344 virtual bool getIsConnectedToApplicationLayer()
const;
346 virtual ::GameSpecificNetEventCallback* getGameSpecificNetEventCallback();
356 virtual void handle(
::NetworkIdentifier const& source, ::std::shared_ptr<::LoginPacket> packet);
360 virtual void handle(
::NetworkIdentifier const& source, ::std::shared_ptr<::SubClientLoginPacket> packet);
437 virtual void handle(
::NetworkIdentifier const& source, ::std::shared_ptr<::UpdateBlockPacket> packet);
441 virtual void handle(
::NetworkIdentifier const&, ::std::shared_ptr<::UpdateBlockSyncedPacket>);
443 virtual void handle(
::NetworkIdentifier const& source, ::std::shared_ptr<::UpdateBlockSyncedPacket> packet);
472 virtual void handle(
::NetworkIdentifier const& source, ::std::shared_ptr<::MobEquipmentPacket> packet);
524 virtual void handle(
::NetworkIdentifier const& source, ::std::shared_ptr<::BlockActorDataPacket> packet);
533 virtual void handle(
::NetworkIdentifier const& source, ::std::shared_ptr<::LevelChunkPacket> packet);
547 virtual void handle(
::NetworkIdentifier const&, ::std::shared_ptr<::ClientCacheMissResponsePacket>);
549 virtual void handle(
::NetworkIdentifier const& source, ::std::shared_ptr<::ClientCacheMissResponsePacket> packet);
560 virtual void handle(
::NetworkIdentifier const&, ::std::shared_ptr<::UpdateAttributesPacket>);
658 virtual void handle(
::NetworkIdentifier const& source, ::std::shared_ptr<::InventoryTransactionPacket> packet);
894 MCFOLD
void $onPlayerReady(
::Player&);
898 MCFOLD
void $onUnableToConnect(::Connection::DisconnectFailReason, ::std::string
const&, ::std::string
const&);
900 MCFOLD
void $onTick();
902 MCFOLD
void $onOutgoingPacket(
::NetworkIdentifier const&, ::MinecraftPacketIds, ::SubClientId, ::SubClientId);
904 MCFOLD
void $onValidPacketReceived(
::NetworkIdentifier const&, ::MinecraftPacketIds, ::SubClientId, ::SubClientId);
906 MCFOLD
void $onStoreOfferReceive(::ShowStoreOfferRedirectType
const, ::std::string
const& offerID);
908 MCFOLD
void $onDisconnect(
910 ::Connection::DisconnectFailReason
const,
911 ::Connection::DisconnectionStage
const,
912 ::std::string
const& messageFromServer,
913 ::std::string
const& messageBodyOverride,
915 ::std::string
const& telemetryOverride
918 MCFOLD
void $onWebsocketRequest(
919 ::std::string
const& serverAddress,
920 ::std::string
const& payload,
921 ::std::function<
void()> errorCallback
924 MCFOLD
void $handlePacketViolation(
925 ::std::shared_ptr<::IPacketSecurityController>
const& packetSecurityController,
926 ::std::error_code
const& errorCode,
927 ::PacketViolationResponse
const response,
928 ::MinecraftPacketIds
const packetId,
931 ::SubClientId
const clientSubId,
932 ::SubClientId
const senderSubId,
933 uint
const packetSize
936 MCFOLD
void $sendPacketViolationWarningPacket(
937 ::std::error_code
const& errorCode,
938 ::PacketViolationResponse violationResponse,
939 ::MinecraftPacketIds violatingPacketId,
942 ::SubClientId clientSubId
947 MCFOLD
bool $getIsConnectedToApplicationLayer()
const;
949 MCFOLD ::GameSpecificNetEventCallback* $getGameSpecificNetEventCallback();
959 MCFOLD
void $handle(
::NetworkIdentifier const& source, ::std::shared_ptr<::LoginPacket> packet);
963 MCFOLD
void $handle(
::NetworkIdentifier const& source, ::std::shared_ptr<::SubClientLoginPacket> packet);
1015 MCFOLD
void $handle(
::NetworkIdentifier const&, ::std::shared_ptr<::UpdateBlockSyncedPacket>);
1039 MCFOLD
void $handle(
::NetworkIdentifier const& source, ::std::shared_ptr<::MobEquipmentPacket> packet);
1087 MCFOLD
void $handle(
::NetworkIdentifier const& source, ::std::shared_ptr<::BlockActorDataPacket> packet);
1101 MCFOLD
void $handle(
::NetworkIdentifier const&, ::std::shared_ptr<::ClientCacheMissResponsePacket>);
1111 MCFOLD
void $handle(
::NetworkIdentifier const&, ::std::shared_ptr<::UpdateAttributesPacket>);
1201 MCFOLD
void $handle(
::NetworkIdentifier const& source, ::std::shared_ptr<::InventoryTransactionPacket> packet);
Definition ActorEventPacket.h:19
Definition ActorFallPacket.h:5
Definition ActorPickRequestPacket.h:19
Definition AddActorPacket.h:29
Definition AddBehaviorTreePacket.h:19
Definition AddItemActorPacket.h:23
Definition AddMobPacket.h:5
Definition AddPaintingPacket.h:20
Definition AddPlayerPacket.h:32
Definition AddVolumeEntityPacket.h:19
Definition AgentActionEventPacket.h:19
Definition AgentAnimationPacket.h:19
Definition AnimateEntityPacket.h:19
Definition AnimatePacket.h:19
Definition AnvilDamagePacket.h:19
Definition AutomationClientConnectPacket.h:19
Definition AvailableActorIdentifiersPacket.h:19
Definition AvailableCommandsPacket.h:19
Definition AwardAchievementPacket.h:19
Definition EnableNonOwnerReferences.h:7
static MCAPI void ** $vftable()
Definition BiomeDefinitionListPacket.h:19
Definition BlockActorDataPacket.h:19
Definition BlockEventPacket.h:19
Definition BlockPickRequestPacket.h:19
Definition BookAddPagePacket.h:5
Definition BookDeletePagePacket.h:5
Definition BookEditPacket.h:19
Definition BookSignPacket.h:5
Definition BookSwapPagesPacket.h:5
Definition BossEventPacket.h:23
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 ChangeDimensionPacket.h:19
Definition ChangeMobPropertyPacket.h:19
Definition ChunkRadiusUpdatedPacket.h:19
Definition ClientCacheBlobStatusPacket.h:16
Definition ClientCacheMissResponsePacket.h:19
Definition ClientCacheStatusPacket.h:19
Definition ClientCameraAimAssistPacket.h:19
Definition ClientMovementPredictionSyncPacket.h:19
Definition ClientToServerHandshakePacket.h:19
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:24
Definition ClientboundTextureShiftPacket.h:19
Definition CodeBuilderPacket.h:19
Definition CodeBuilderSourcePacket.h:19
Definition CommandBlockUpdatePacket.h:23
Definition CommandOutputPacket.h:19
Definition CommandRequestPacket.h:19
Definition CompletedUsingItemPacket.h:19
Definition ContainerClosePacket.h:19
Definition ContainerOpenPacket.h:19
Definition ContainerRegistryCleanupPacket.h:19
Definition ContainerSetDataPacket.h:19
Definition CorrectPlayerMovePredictionPacket.h:19
Definition CraftingDataPacket.h:21
Definition CreatePhotoPacket.h:19
Definition CreativeContentPacket.h:22
Definition CurrentStructureFeaturePacket.h:19
Definition DeathInfoPacket.h:19
Definition DebugInfoPacket.h:19
Definition DimensionDataPacket.h:17
Definition DisconnectPacket.h:19
Definition EditorNetworkPacket.h:19
Definition EduUriResourcePacket.h:19
Definition EducationSettingsPacket.h:19
Definition EmoteListPacket.h:19
Definition EmotePacket.h:19
Definition FeatureRegistryPacket.h:19
Definition GameRulesChangedPacket.h:19
Definition GameSpecificNetEventCallback.h:11
Definition GameTestRequestPacket.h:19
Definition GameTestResultsPacket.h:19
Definition GraphicsOverrideParameterPacket.h:19
Definition GuiDataPickItemPacket.h:19
Definition HurtArmorPacket.h:19
Definition IPacketSecurityController.h:22
Definition InteractPacket.h:19
Definition InventoryActionPacket.h:5
Definition InventoryContentPacket.h:21
Definition InventorySlotPacket.h:19
Definition InventoryTransactionPacket.h:22
Definition ItemRegistryPacket.h:19
Definition ItemStackRequestPacket.h:17
Definition ItemStackResponsePacket.h:17
Definition JigsawStructureDataPacket.h:19
Definition LabTablePacket.h:19
Definition LecternUpdatePacket.h:19
Definition LegacyTelemetryEventPacket.h:19
Definition LessonProgressPacket.h:19
Definition LevelChunkPacket.h:17
Definition LevelEventGenericPacket.h:19
Definition LevelEventPacket.h:19
Definition LevelSoundEventPacket.h:19
Definition LocatorBarPacket.h:19
Definition LoginPacket.h:19
Definition MapCreateLockedCopyPacket.h:19
Definition MapInfoRequestPacket.h:19
Definition MobArmorEquipmentPacket.h:19
Definition MobEffectPacket.h:19
Definition MobEquipmentPacket.h:19
Definition MotionPredictionHintsPacket.h:19
Definition MoveActorAbsolutePacket.h:19
Definition MoveActorDeltaPacket.h:17
Definition MovePlayerPacket.h:22
Definition MovementEffectPacket.h:19
Definition MultiplayerSettingsPacket.h:19
Definition NetEventCallback.h:260
Definition NetworkChunkPublisherUpdatePacket.h:19
Definition NetworkIdentifier.h:10
Definition NetworkSettingsPacket.h:19
Definition NetworkStackLatencyPacket.h:19
Definition NpcDialoguePacket.h:19
Definition NpcRequestPacket.h:19
Definition OnScreenTextureAnimationPacket.h:19
Definition OpenSignPacket.h:19
Definition PacketViolationWarningPacket.h:19
Definition PartyChangedPacket.h:19
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 PlayerHotbarPacket.h:19
Definition PlayerListPacket.h:18
Definition PlayerLocationPacket.h:18
Definition PlayerSkinPacket.h:19
Definition PlayerStartItemCooldownPacket.h:19
Definition PlayerToggleCrafterSlotRequestPacket.h:19
Definition PlayerUpdateEntityOverridesPacket.h:18
Definition PlayerVideoCapturePacket.h:19
Definition PositionTrackingDBClientRequestPacket.h:20
Definition PositionTrackingDBServerBroadcastPacket.h:20
Definition PrimitiveShapesPacket.h:19
Definition PurchaseReceiptPacket.h:19
Definition RefreshEntitlementsPacket.h:19
Definition RemoveActorPacket.h:19
Definition RemoveObjectivePacket.h:19
Definition RemoveVolumeEntityPacket.h:19
Definition RequestAbilityPacket.h:19
Definition RequestChunkRadiusPacket.h:19
Definition RequestNetworkSettingsPacket.h:19
Definition RequestPermissionsPacket.h:19
Definition ResourcePackChunkDataPacket.h:19
Definition ResourcePackChunkRequestPacket.h:19
Definition ResourcePackClientResponsePacket.h:17
Definition ResourcePackDataInfoPacket.h:19
Definition ResourcePackStackPacket.h:20
Definition ResourcePacksInfoPacket.h:19
Definition ResourcePacksReadyForValidationPacket.h:20
Definition RespawnPacket.h:19
Definition ScriptMessagePacket.h:19
Definition ServerPlayerPostMovePositionPacket.h:19
Definition ServerPresenceInfoPacket.h:19
Definition ServerSettingsRequestPacket.h:19
Definition ServerSettingsResponsePacket.h:19
Definition ServerStatsPacket.h:19
Definition ServerStoreInfoPacket.h:19
Definition ServerToClientHandshakePacket.h:19
Definition ServerboundDataDrivenScreenClosedPacket.h:20
Definition ServerboundDataStorePacket.h:19
Definition ServerboundDiagnosticsPacket.h:19
Definition ServerboundLoadingScreenPacket.h:19
Definition ServerboundPackSettingChangePacket.h:19
Definition SetActorDataPacket.h:26
Definition SetActorLinkPacket.h:19
Definition SetActorMotionPacket.h:19
Definition SetCommandsEnabledPacket.h:19
Definition SetDefaultGameTypePacket.h:19
Definition SetDifficultyPacket.h:19
Definition SetDisplayObjectivePacket.h:19
Definition SetHealthPacket.h:19
Definition SetHudPacket.h:19
Definition SetLastHurtByPacket.h:19
Definition SetLocalPlayerAsInitializedPacket.h:19
Definition SetPlayerGameTypePacket.h:19
Definition SetPlayerInventoryOptionsPacket.h:19
Definition SetScorePacket.h:20
Definition SetScoreboardIdentityPacket.h:20
Definition SetSpawnPositionPacket.h:19
Definition SetTimePacket.h:19
Definition SetTitlePacket.h:19
Definition SettingsCommandPacket.h:19
Definition ShowCreditsPacket.h:19
Definition ShowProfilePacket.h:19
Definition ShowStoreOfferPacket.h:19
Definition SimpleEventPacket.h:19
Definition SimulationTypePacket.h:19
Definition GameConnectionInfo.h:23
Definition SpawnExperienceOrbPacket.h:19
Definition SpawnParticleEffectPacket.h:19
Definition StartGamePacket.h:31
Definition StopSoundPacket.h:19
Definition StructureBlockUpdatePacket.h:18
Definition StructureTemplateDataRequestPacket.h:19
Definition StructureTemplateDataResponsePacket.h:19
Definition SubChunkPacket.h:17
Definition SubChunkRequestPacket.h:18
Definition SubClientLoginPacket.h:17
Definition SyncActorPropertyPacket.h:19
Definition SyncWorldClocksPacket.h:19
Definition TakeItemActorPacket.h:19
Definition TextPacket.h:19
Definition TickingAreasLoadStatusPacket.h:19
Definition ToastRequestPacket.h:19
Definition TransferPacket.h:19
Definition TrimDataPacket.h:20
Definition UnlockedRecipesPacket.h:19
Definition UpdateAbilitiesPacket.h:20
Definition UpdateAdventureSettingsPacket.h:19
Definition UpdateAttributesPacket.h:22
Definition UpdateBlockPacket.h:19
Definition UpdateBlockSyncedPacket.h:19
Definition UpdateClientOptionsPacket.h:19
Definition UpdateEquipPacket.h:19
Definition UpdatePlayerGameTypePacket.h:19
Definition UpdateSoftEnumPacket.h:19
Definition UpdateSubChunkBlocksPacket.h:19
Definition UpdateTradePacket.h:19
Definition VoxelShapesPacket.h:19
Definition NetworkIdentifierWithSubId.h:10