185 lines
11 KiB
Go
185 lines
11 KiB
Go
// Code generated by "stringer -type ClientboundPacketID"; DO NOT EDIT.
|
|
|
|
package packetid
|
|
|
|
import "strconv"
|
|
|
|
func _() {
|
|
// An "invalid array index" compiler error signifies that the constant values have changed.
|
|
// Re-run the stringer command to generate them again.
|
|
var x [1]struct{}
|
|
_ = x[ClientboundLoginLoginDisconnect-0]
|
|
_ = x[ClientboundLoginHello-1]
|
|
_ = x[ClientboundLoginLoginFinished-2]
|
|
_ = x[ClientboundLoginLoginCompression-3]
|
|
_ = x[ClientboundLoginCustomQuery-4]
|
|
_ = x[ClientboundLoginCookieRequest-5]
|
|
_ = x[ClientboundStatusStatusResponse-0]
|
|
_ = x[ClientboundStatusPongResponse-1]
|
|
_ = x[ClientboundConfigCookieRequest-0]
|
|
_ = x[ClientboundConfigCustomPayload-1]
|
|
_ = x[ClientboundConfigDisconnect-2]
|
|
_ = x[ClientboundConfigFinishConfiguration-3]
|
|
_ = x[ClientboundConfigKeepAlive-4]
|
|
_ = x[ClientboundConfigPing-5]
|
|
_ = x[ClientboundConfigResetChat-6]
|
|
_ = x[ClientboundConfigRegistryData-7]
|
|
_ = x[ClientboundConfigResourcePackPop-8]
|
|
_ = x[ClientboundConfigResourcePackPush-9]
|
|
_ = x[ClientboundConfigStoreCookie-10]
|
|
_ = x[ClientboundConfigTransfer-11]
|
|
_ = x[ClientboundConfigUpdateEnabledFeatures-12]
|
|
_ = x[ClientboundConfigUpdateTags-13]
|
|
_ = x[ClientboundConfigSelectKnownPacks-14]
|
|
_ = x[ClientboundConfigCustomReportDetails-15]
|
|
_ = x[ClientboundConfigServerLinks-16]
|
|
_ = x[ClientboundConfigClearDialog-17]
|
|
_ = x[ClientboundConfigShowDialog-18]
|
|
_ = x[BundleDelimiter-0]
|
|
_ = x[ClientboundAddEntity-1]
|
|
_ = x[ClientboundAnimate-2]
|
|
_ = x[ClientboundAwardStats-3]
|
|
_ = x[ClientboundBlockChangedAck-4]
|
|
_ = x[ClientboundBlockDestruction-5]
|
|
_ = x[ClientboundBlockEntityData-6]
|
|
_ = x[ClientboundBlockEvent-7]
|
|
_ = x[ClientboundBlockUpdate-8]
|
|
_ = x[ClientboundBossEvent-9]
|
|
_ = x[ClientboundChangeDifficulty-10]
|
|
_ = x[ClientboundChunkBatchFinished-11]
|
|
_ = x[ClientboundChunkBatchStart-12]
|
|
_ = x[ClientboundChunksBiomes-13]
|
|
_ = x[ClientboundClearTitles-14]
|
|
_ = x[ClientboundCommandSuggestions-15]
|
|
_ = x[ClientboundCommands-16]
|
|
_ = x[ClientboundContainerClose-17]
|
|
_ = x[ClientboundContainerSetContent-18]
|
|
_ = x[ClientboundContainerSetData-19]
|
|
_ = x[ClientboundContainerSetSlot-20]
|
|
_ = x[ClientboundCookieRequest-21]
|
|
_ = x[ClientboundCooldown-22]
|
|
_ = x[ClientboundCustomChatCompletions-23]
|
|
_ = x[ClientboundCustomPayload-24]
|
|
_ = x[ClientboundDamageEvent-25]
|
|
_ = x[ClientboundDebugSample-26]
|
|
_ = x[ClientboundDeleteChat-27]
|
|
_ = x[ClientboundDisconnect-28]
|
|
_ = x[ClientboundDisguisedChat-29]
|
|
_ = x[ClientboundEntityEvent-30]
|
|
_ = x[ClientboundEntityPositionSync-31]
|
|
_ = x[ClientboundExplode-32]
|
|
_ = x[ClientboundForgetLevelChunk-33]
|
|
_ = x[ClientboundGameEvent-34]
|
|
_ = x[ClientboundHorseScreenOpen-35]
|
|
_ = x[ClientboundHurtAnimation-36]
|
|
_ = x[ClientboundInitializeBorder-37]
|
|
_ = x[ClientboundKeepAlive-38]
|
|
_ = x[ClientboundLevelChunkWithLight-39]
|
|
_ = x[ClientboundLevelEvent-40]
|
|
_ = x[ClientboundLevelParticles-41]
|
|
_ = x[ClientboundLightUpdate-42]
|
|
_ = x[ClientboundLogin-43]
|
|
_ = x[ClientboundMapItemData-44]
|
|
_ = x[ClientboundMerchantOffers-45]
|
|
_ = x[ClientboundMoveEntityPos-46]
|
|
_ = x[ClientboundMoveEntityPosRot-47]
|
|
_ = x[ClientboundMoveMinecartAlongTrack-48]
|
|
_ = x[ClientboundMoveEntityRot-49]
|
|
_ = x[ClientboundMoveVehicle-50]
|
|
_ = x[ClientboundOpenBook-51]
|
|
_ = x[ClientboundOpenScreen-52]
|
|
_ = x[ClientboundOpenSignEditor-53]
|
|
_ = x[ClientboundPing-54]
|
|
_ = x[ClientboundPongResponse-55]
|
|
_ = x[ClientboundPlaceGhostRecipe-56]
|
|
_ = x[ClientboundPlayerAbilities-57]
|
|
_ = x[ClientboundPlayerChat-58]
|
|
_ = x[ClientboundPlayerCombatEnd-59]
|
|
_ = x[ClientboundPlayerCombatEnter-60]
|
|
_ = x[ClientboundPlayerCombatKill-61]
|
|
_ = x[ClientboundPlayerInfoRemove-62]
|
|
_ = x[ClientboundPlayerInfoUpdate-63]
|
|
_ = x[ClientboundPlayerLookAt-64]
|
|
_ = x[ClientboundPlayerPosition-65]
|
|
_ = x[ClientboundPlayerRotation-66]
|
|
_ = x[ClientboundRecipeBookAdd-67]
|
|
_ = x[ClientboundRecipeBookRemove-68]
|
|
_ = x[ClientboundRecipeBookSettings-69]
|
|
_ = x[ClientboundRemoveEntities-70]
|
|
_ = x[ClientboundRemoveMobEffect-71]
|
|
_ = x[ClientboundResetScore-72]
|
|
_ = x[ClientboundResourcePackPop-73]
|
|
_ = x[ClientboundResourcePackPush-74]
|
|
_ = x[ClientboundRespawn-75]
|
|
_ = x[ClientboundRotateHead-76]
|
|
_ = x[ClientboundSectionBlocksUpdate-77]
|
|
_ = x[ClientboundSelectAdvancementsTab-78]
|
|
_ = x[ClientboundServerData-79]
|
|
_ = x[ClientboundSetActionBarText-80]
|
|
_ = x[ClientboundSetBorderCenter-81]
|
|
_ = x[ClientboundSetBorderLerpSize-82]
|
|
_ = x[ClientboundSetBorderSize-83]
|
|
_ = x[ClientboundSetBorderWarningDelay-84]
|
|
_ = x[ClientboundSetBorderWarningDistance-85]
|
|
_ = x[ClientboundSetCamera-86]
|
|
_ = x[ClientboundSetChunkCacheCenter-87]
|
|
_ = x[ClientboundSetChunkCacheRadius-88]
|
|
_ = x[ClientboundSetCursorItem-89]
|
|
_ = x[ClientboundSetDefaultSpawnPosition-90]
|
|
_ = x[ClientboundSetDisplayObjective-91]
|
|
_ = x[ClientboundSetEntityData-92]
|
|
_ = x[ClientboundSetEntityLink-93]
|
|
_ = x[ClientboundSetEntityMotion-94]
|
|
_ = x[ClientboundSetEquipment-95]
|
|
_ = x[ClientboundSetExperience-96]
|
|
_ = x[ClientboundSetHealth-97]
|
|
_ = x[ClientboundSetHeldSlot-98]
|
|
_ = x[ClientboundSetObjective-99]
|
|
_ = x[ClientboundSetPassengers-100]
|
|
_ = x[ClientboundSetPlayerInventory-101]
|
|
_ = x[ClientboundSetPlayerTeam-102]
|
|
_ = x[ClientboundSetScore-103]
|
|
_ = x[ClientboundSetSimulationDistance-104]
|
|
_ = x[ClientboundSetSubtitleText-105]
|
|
_ = x[ClientboundSetTime-106]
|
|
_ = x[ClientboundSetTitleText-107]
|
|
_ = x[ClientboundSetTitlesAnimation-108]
|
|
_ = x[ClientboundSoundEntity-109]
|
|
_ = x[ClientboundSound-110]
|
|
_ = x[ClientboundStartConfiguration-111]
|
|
_ = x[ClientboundStopSound-112]
|
|
_ = x[ClientboundStoreCookie-113]
|
|
_ = x[ClientboundSystemChat-114]
|
|
_ = x[ClientboundTabList-115]
|
|
_ = x[ClientboundTagQuery-116]
|
|
_ = x[ClientboundTakeItemEntity-117]
|
|
_ = x[ClientboundTeleportEntity-118]
|
|
_ = x[ClientboundTestInstanceBlockStatus-119]
|
|
_ = x[ClientboundTickingState-120]
|
|
_ = x[ClientboundTickingStep-121]
|
|
_ = x[ClientboundTransfer-122]
|
|
_ = x[ClientboundUpdateAdvancements-123]
|
|
_ = x[ClientboundUpdateAttributes-124]
|
|
_ = x[ClientboundUpdateMobEffect-125]
|
|
_ = x[ClientboundUpdateRecipes-126]
|
|
_ = x[ClientboundUpdateTags-127]
|
|
_ = x[ClientboundProjectilePower-128]
|
|
_ = x[ClientboundCustomReportDetails-129]
|
|
_ = x[ClientboundServerLinks-130]
|
|
_ = x[ClientboundWaypoint-131]
|
|
_ = x[ClientboundClearDialog-132]
|
|
_ = x[ClientboundShowDialog-133]
|
|
_ = x[ClientboundPacketIDGuard-134]
|
|
}
|
|
|
|
const _ClientboundPacketID_name = "ClientboundLoginLoginDisconnectClientboundLoginHelloClientboundLoginLoginFinishedClientboundLoginLoginCompressionClientboundLoginCustomQueryClientboundLoginCookieRequestClientboundConfigResetChatClientboundConfigRegistryDataClientboundConfigResourcePackPopClientboundConfigResourcePackPushClientboundConfigStoreCookieClientboundConfigTransferClientboundConfigUpdateEnabledFeaturesClientboundConfigUpdateTagsClientboundConfigSelectKnownPacksClientboundConfigCustomReportDetailsClientboundConfigServerLinksClientboundConfigClearDialogClientboundConfigShowDialogClientboundContainerSetDataClientboundContainerSetSlotClientboundCookieRequestClientboundCooldownClientboundCustomChatCompletionsClientboundCustomPayloadClientboundDamageEventClientboundDebugSampleClientboundDeleteChatClientboundDisconnectClientboundDisguisedChatClientboundEntityEventClientboundEntityPositionSyncClientboundExplodeClientboundForgetLevelChunkClientboundGameEventClientboundHorseScreenOpenClientboundHurtAnimationClientboundInitializeBorderClientboundKeepAliveClientboundLevelChunkWithLightClientboundLevelEventClientboundLevelParticlesClientboundLightUpdateClientboundLoginClientboundMapItemDataClientboundMerchantOffersClientboundMoveEntityPosClientboundMoveEntityPosRotClientboundMoveMinecartAlongTrackClientboundMoveEntityRotClientboundMoveVehicleClientboundOpenBookClientboundOpenScreenClientboundOpenSignEditorClientboundPingClientboundPongResponseClientboundPlaceGhostRecipeClientboundPlayerAbilitiesClientboundPlayerChatClientboundPlayerCombatEndClientboundPlayerCombatEnterClientboundPlayerCombatKillClientboundPlayerInfoRemoveClientboundPlayerInfoUpdateClientboundPlayerLookAtClientboundPlayerPositionClientboundPlayerRotationClientboundRecipeBookAddClientboundRecipeBookRemoveClientboundRecipeBookSettingsClientboundRemoveEntitiesClientboundRemoveMobEffectClientboundResetScoreClientboundResourcePackPopClientboundResourcePackPushClientboundRespawnClientboundRotateHeadClientboundSectionBlocksUpdateClientboundSelectAdvancementsTabClientboundServerDataClientboundSetActionBarTextClientboundSetBorderCenterClientboundSetBorderLerpSizeClientboundSetBorderSizeClientboundSetBorderWarningDelayClientboundSetBorderWarningDistanceClientboundSetCameraClientboundSetChunkCacheCenterClientboundSetChunkCacheRadiusClientboundSetCursorItemClientboundSetDefaultSpawnPositionClientboundSetDisplayObjectiveClientboundSetEntityDataClientboundSetEntityLinkClientboundSetEntityMotionClientboundSetEquipmentClientboundSetExperienceClientboundSetHealthClientboundSetHeldSlotClientboundSetObjectiveClientboundSetPassengersClientboundSetPlayerInventoryClientboundSetPlayerTeamClientboundSetScoreClientboundSetSimulationDistanceClientboundSetSubtitleTextClientboundSetTimeClientboundSetTitleTextClientboundSetTitlesAnimationClientboundSoundEntityClientboundSoundClientboundStartConfigurationClientboundStopSoundClientboundStoreCookieClientboundSystemChatClientboundTabListClientboundTagQueryClientboundTakeItemEntityClientboundTeleportEntityClientboundTestInstanceBlockStatusClientboundTickingStateClientboundTickingStepClientboundTransferClientboundUpdateAdvancementsClientboundUpdateAttributesClientboundUpdateMobEffectClientboundUpdateRecipesClientboundUpdateTagsClientboundProjectilePowerClientboundCustomReportDetailsClientboundServerLinksClientboundWaypointClientboundClearDialogClientboundShowDialogClientboundPacketIDGuard"
|
|
|
|
var _ClientboundPacketID_index = [...]uint16{0, 31, 52, 81, 113, 140, 169, 195, 224, 256, 289, 317, 342, 380, 407, 440, 476, 504, 532, 559, 586, 613, 637, 656, 688, 712, 734, 756, 777, 798, 822, 844, 873, 891, 918, 938, 964, 988, 1015, 1035, 1065, 1086, 1111, 1133, 1149, 1171, 1196, 1220, 1247, 1280, 1304, 1326, 1345, 1366, 1391, 1406, 1429, 1456, 1482, 1503, 1529, 1557, 1584, 1611, 1638, 1661, 1686, 1711, 1735, 1762, 1791, 1816, 1842, 1863, 1889, 1916, 1934, 1955, 1985, 2017, 2038, 2065, 2091, 2119, 2143, 2175, 2210, 2230, 2260, 2290, 2314, 2348, 2378, 2402, 2426, 2452, 2475, 2499, 2519, 2541, 2564, 2588, 2617, 2641, 2660, 2692, 2718, 2736, 2759, 2788, 2810, 2826, 2855, 2875, 2897, 2918, 2936, 2955, 2980, 3005, 3039, 3062, 3084, 3103, 3132, 3159, 3185, 3209, 3230, 3256, 3286, 3308, 3327, 3349, 3370, 3394}
|
|
|
|
func (i ClientboundPacketID) String() string {
|
|
if i < 0 || i >= ClientboundPacketID(len(_ClientboundPacketID_index)-1) {
|
|
return "ClientboundPacketID(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
return _ClientboundPacketID_name[_ClientboundPacketID_index[i]:_ClientboundPacketID_index[i+1]]
|
|
}
|