update packetid to 1.21
fix compile issue
This commit is contained in:
@ -13,17 +13,26 @@ func _() {
|
||||
_ = x[ClientboundLoginSuccess-2]
|
||||
_ = x[ClientboundLoginCompression-3]
|
||||
_ = x[ClientboundLoginPluginRequest-4]
|
||||
_ = x[ClientboundLoginCookieRequest-5]
|
||||
_ = x[ClientboundStatusResponse-0]
|
||||
_ = x[ClientboundStatusPongResponse-1]
|
||||
_ = x[ClientboundConfigCustomPayload-0]
|
||||
_ = x[ClientboundConfigDisconnect-1]
|
||||
_ = x[ClientboundConfigFinishConfiguration-2]
|
||||
_ = x[ClientboundConfigKeepAlive-3]
|
||||
_ = x[ClientboundConfigPing-4]
|
||||
_ = x[ClientboundConfigRegistryData-5]
|
||||
_ = x[ClientboundConfigResourcePack-6]
|
||||
_ = x[ClientboundConfigUpdateEnabledFeatures-7]
|
||||
_ = x[ClientboundConfigUpdateTags-8]
|
||||
_ = 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[BundleDelimiter-0]
|
||||
_ = x[ClientboundAddEntity-1]
|
||||
_ = x[ClientboundAddExperienceOrb-2]
|
||||
@ -46,107 +55,114 @@ func _() {
|
||||
_ = x[ClientboundContainerSetContent-19]
|
||||
_ = x[ClientboundContainerSetData-20]
|
||||
_ = x[ClientboundContainerSetSlot-21]
|
||||
_ = x[ClientboundCooldown-22]
|
||||
_ = x[ClientboundCustomChatCompletions-23]
|
||||
_ = x[ClientboundCustomPayload-24]
|
||||
_ = x[ClientboundDamageEvent-25]
|
||||
_ = x[ClientboundDeleteChat-26]
|
||||
_ = x[ClientboundDisconnect-27]
|
||||
_ = x[ClientboundDisguisedChat-28]
|
||||
_ = x[ClientboundEntityEvent-29]
|
||||
_ = x[ClientboundExplode-30]
|
||||
_ = x[ClientboundForgetLevelChunk-31]
|
||||
_ = x[ClientboundGameEvent-32]
|
||||
_ = x[ClientboundHorseScreenOpen-33]
|
||||
_ = x[ClientboundHurtAnimation-34]
|
||||
_ = x[ClientboundInitializeBorder-35]
|
||||
_ = x[ClientboundKeepAlive-36]
|
||||
_ = x[ClientboundLevelChunkWithLight-37]
|
||||
_ = x[ClientboundLevelEvent-38]
|
||||
_ = x[ClientboundLevelParticles-39]
|
||||
_ = x[ClientboundLightUpdate-40]
|
||||
_ = x[ClientboundLogin-41]
|
||||
_ = x[ClientboundMapItemData-42]
|
||||
_ = x[ClientboundMerchantOffers-43]
|
||||
_ = x[ClientboundMoveEntityPos-44]
|
||||
_ = x[ClientboundMoveEntityPosRot-45]
|
||||
_ = x[ClientboundMoveEntityRot-46]
|
||||
_ = x[ClientboundMoveVehicle-47]
|
||||
_ = x[ClientboundOpenBook-48]
|
||||
_ = x[ClientboundOpenScreen-49]
|
||||
_ = x[ClientboundOpenSignEditor-50]
|
||||
_ = x[ClientboundPing-51]
|
||||
_ = x[ClientboundPongResponse-52]
|
||||
_ = x[ClientboundPlaceGhostRecipe-53]
|
||||
_ = x[ClientboundPlayerAbilities-54]
|
||||
_ = x[ClientboundPlayerChat-55]
|
||||
_ = x[ClientboundPlayerCombatEnd-56]
|
||||
_ = x[ClientboundPlayerCombatEnter-57]
|
||||
_ = x[ClientboundPlayerCombatKill-58]
|
||||
_ = x[ClientboundPlayerInfoRemove-59]
|
||||
_ = x[ClientboundPlayerInfoUpdate-60]
|
||||
_ = x[ClientboundPlayerLookAt-61]
|
||||
_ = x[ClientboundPlayerPosition-62]
|
||||
_ = x[ClientboundRecipe-63]
|
||||
_ = x[ClientboundRemoveEntities-64]
|
||||
_ = x[ClientboundRemoveMobEffect-65]
|
||||
_ = x[ClientboundResetScore-66]
|
||||
_ = x[ClientboundResourcePackPop-67]
|
||||
_ = x[ClientboundResourcePackPush-68]
|
||||
_ = x[ClientboundRespawn-69]
|
||||
_ = x[ClientboundRotateHead-70]
|
||||
_ = x[ClientboundSectionBlocksUpdate-71]
|
||||
_ = x[ClientboundSelectAdvancementsTab-72]
|
||||
_ = x[ClientboundServerData-73]
|
||||
_ = x[ClientboundSetActionBarText-74]
|
||||
_ = x[ClientboundSetBorderCenter-75]
|
||||
_ = x[ClientboundSetBorderLerpSize-76]
|
||||
_ = x[ClientboundSetBorderSize-77]
|
||||
_ = x[ClientboundSetBorderWarningDelay-78]
|
||||
_ = x[ClientboundSetBorderWarningDistance-79]
|
||||
_ = x[ClientboundSetCamera-80]
|
||||
_ = x[ClientboundSetCarriedItem-81]
|
||||
_ = x[ClientboundSetChunkCacheCenter-82]
|
||||
_ = x[ClientboundSetChunkCacheRadius-83]
|
||||
_ = x[ClientboundSetDefaultSpawnPosition-84]
|
||||
_ = x[ClientboundSetDisplayObjective-85]
|
||||
_ = x[ClientboundSetEntityData-86]
|
||||
_ = x[ClientboundSetEntityLink-87]
|
||||
_ = x[ClientboundSetEntityMotion-88]
|
||||
_ = x[ClientboundSetEquipment-89]
|
||||
_ = x[ClientboundSetExperience-90]
|
||||
_ = x[ClientboundSetHealth-91]
|
||||
_ = x[ClientboundSetObjective-92]
|
||||
_ = x[ClientboundSetPassengers-93]
|
||||
_ = x[ClientboundSetPlayerTeam-94]
|
||||
_ = x[ClientboundSetScore-95]
|
||||
_ = x[ClientboundSetSimulationDistance-96]
|
||||
_ = x[ClientboundSetSubtitleText-97]
|
||||
_ = x[ClientboundSetTime-98]
|
||||
_ = x[ClientboundSetTitleText-99]
|
||||
_ = x[ClientboundSetTitlesAnimation-100]
|
||||
_ = x[ClientboundSoundEntity-101]
|
||||
_ = x[ClientboundSound-102]
|
||||
_ = x[ClientboundStartConfiguration-103]
|
||||
_ = x[ClientboundStopSound-104]
|
||||
_ = x[ClientboundSystemChat-105]
|
||||
_ = x[ClientboundTabList-106]
|
||||
_ = x[ClientboundTagQuery-107]
|
||||
_ = x[ClientboundTakeItemEntity-108]
|
||||
_ = x[ClientboundTeleportEntity-109]
|
||||
_ = x[ClientboundTickingState-110]
|
||||
_ = x[ClientboundTickingStep-111]
|
||||
_ = x[ClientboundUpdateAdvancements-112]
|
||||
_ = x[ClientboundUpdateAttributes-113]
|
||||
_ = x[ClientboundUpdateMobEffect-114]
|
||||
_ = x[ClientboundUpdateRecipes-115]
|
||||
_ = x[ClientboundUpdateTags-116]
|
||||
_ = x[ClientboundPacketIDGuard-117]
|
||||
_ = x[ClientboundCookieRequest-22]
|
||||
_ = x[ClientboundCooldown-23]
|
||||
_ = x[ClientboundCustomChatCompletions-24]
|
||||
_ = x[ClientboundCustomPayload-25]
|
||||
_ = x[ClientboundDamageEvent-26]
|
||||
_ = x[ClientboundDebugSample-27]
|
||||
_ = x[ClientboundDeleteChat-28]
|
||||
_ = x[ClientboundDisconnect-29]
|
||||
_ = x[ClientboundDisguisedChat-30]
|
||||
_ = x[ClientboundEntityEvent-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[ClientboundMoveEntityRot-48]
|
||||
_ = x[ClientboundMoveVehicle-49]
|
||||
_ = x[ClientboundOpenBook-50]
|
||||
_ = x[ClientboundOpenScreen-51]
|
||||
_ = x[ClientboundOpenSignEditor-52]
|
||||
_ = x[ClientboundPing-53]
|
||||
_ = x[ClientboundPongResponse-54]
|
||||
_ = x[ClientboundPlaceGhostRecipe-55]
|
||||
_ = x[ClientboundPlayerAbilities-56]
|
||||
_ = x[ClientboundPlayerChat-57]
|
||||
_ = x[ClientboundPlayerCombatEnd-58]
|
||||
_ = x[ClientboundPlayerCombatEnter-59]
|
||||
_ = x[ClientboundPlayerCombatKill-60]
|
||||
_ = x[ClientboundPlayerInfoRemove-61]
|
||||
_ = x[ClientboundPlayerInfoUpdate-62]
|
||||
_ = x[ClientboundPlayerLookAt-63]
|
||||
_ = x[ClientboundPlayerPosition-64]
|
||||
_ = x[ClientboundRecipe-65]
|
||||
_ = x[ClientboundRemoveEntities-66]
|
||||
_ = x[ClientboundRemoveMobEffect-67]
|
||||
_ = x[ClientboundResetScore-68]
|
||||
_ = x[ClientboundResourcePackPop-69]
|
||||
_ = x[ClientboundResourcePackPush-70]
|
||||
_ = x[ClientboundRespawn-71]
|
||||
_ = x[ClientboundRotateHead-72]
|
||||
_ = x[ClientboundSectionBlocksUpdate-73]
|
||||
_ = x[ClientboundSelectAdvancementsTab-74]
|
||||
_ = x[ClientboundServerData-75]
|
||||
_ = x[ClientboundSetActionBarText-76]
|
||||
_ = x[ClientboundSetBorderCenter-77]
|
||||
_ = x[ClientboundSetBorderLerpSize-78]
|
||||
_ = x[ClientboundSetBorderSize-79]
|
||||
_ = x[ClientboundSetBorderWarningDelay-80]
|
||||
_ = x[ClientboundSetBorderWarningDistance-81]
|
||||
_ = x[ClientboundSetCamera-82]
|
||||
_ = x[ClientboundSetCarriedItem-83]
|
||||
_ = x[ClientboundSetChunkCacheCenter-84]
|
||||
_ = x[ClientboundSetChunkCacheRadius-85]
|
||||
_ = x[ClientboundSetDefaultSpawnPosition-86]
|
||||
_ = x[ClientboundSetDisplayObjective-87]
|
||||
_ = x[ClientboundSetEntityData-88]
|
||||
_ = x[ClientboundSetEntityLink-89]
|
||||
_ = x[ClientboundSetEntityMotion-90]
|
||||
_ = x[ClientboundSetEquipment-91]
|
||||
_ = x[ClientboundSetExperience-92]
|
||||
_ = x[ClientboundSetHealth-93]
|
||||
_ = x[ClientboundSetObjective-94]
|
||||
_ = x[ClientboundSetPassengers-95]
|
||||
_ = x[ClientboundSetPlayerTeam-96]
|
||||
_ = x[ClientboundSetScore-97]
|
||||
_ = x[ClientboundSetSimulationDistance-98]
|
||||
_ = x[ClientboundSetSubtitleText-99]
|
||||
_ = x[ClientboundSetTime-100]
|
||||
_ = x[ClientboundSetTitleText-101]
|
||||
_ = x[ClientboundSetTitlesAnimation-102]
|
||||
_ = x[ClientboundSoundEntity-103]
|
||||
_ = x[ClientboundSound-104]
|
||||
_ = x[ClientboundStartConfiguration-105]
|
||||
_ = x[ClientboundStopSound-106]
|
||||
_ = x[ClientboundStoreCookie-107]
|
||||
_ = x[ClientboundSystemChat-108]
|
||||
_ = x[ClientboundTabList-109]
|
||||
_ = x[ClientboundTagQuery-110]
|
||||
_ = x[ClientboundTakeItemEntity-111]
|
||||
_ = x[ClientboundTeleportEntity-112]
|
||||
_ = x[ClientboundTickingState-113]
|
||||
_ = x[ClientboundTickingStep-114]
|
||||
_ = x[ClientboundTransfer-115]
|
||||
_ = x[ClientboundUpdateAdvancements-116]
|
||||
_ = x[ClientboundUpdateAttributes-117]
|
||||
_ = x[ClientboundUpdateMobEffect-118]
|
||||
_ = x[ClientboundUpdateRecipes-119]
|
||||
_ = x[ClientboundUpdateTags-120]
|
||||
_ = x[ClientboundProjectilePower-121]
|
||||
_ = x[ClientboundCustomReportDetails-122]
|
||||
_ = x[ClientboundServerLinks-123]
|
||||
_ = x[ClientboundPacketIDGuard-124]
|
||||
}
|
||||
|
||||
const _ClientboundPacketID_name = "ClientboundLoginDisconnectClientboundLoginEncryptionRequestClientboundLoginSuccessClientboundLoginCompressionClientboundLoginPluginRequestClientboundConfigRegistryDataClientboundConfigResourcePackClientboundConfigUpdateEnabledFeaturesClientboundConfigUpdateTagsClientboundBlockUpdateClientboundBossEventClientboundChangeDifficultyClientboundChunkBatchFinishedClientboundChunkBatchStartClientboundChunksBiomesClientboundClearTitlesClientboundCommandSuggestionsClientboundCommandsClientboundContainerCloseClientboundContainerSetContentClientboundContainerSetDataClientboundContainerSetSlotClientboundCooldownClientboundCustomChatCompletionsClientboundCustomPayloadClientboundDamageEventClientboundDeleteChatClientboundDisconnectClientboundDisguisedChatClientboundEntityEventClientboundExplodeClientboundForgetLevelChunkClientboundGameEventClientboundHorseScreenOpenClientboundHurtAnimationClientboundInitializeBorderClientboundKeepAliveClientboundLevelChunkWithLightClientboundLevelEventClientboundLevelParticlesClientboundLightUpdateClientboundLoginClientboundMapItemDataClientboundMerchantOffersClientboundMoveEntityPosClientboundMoveEntityPosRotClientboundMoveEntityRotClientboundMoveVehicleClientboundOpenBookClientboundOpenScreenClientboundOpenSignEditorClientboundPingClientboundPongResponseClientboundPlaceGhostRecipeClientboundPlayerAbilitiesClientboundPlayerChatClientboundPlayerCombatEndClientboundPlayerCombatEnterClientboundPlayerCombatKillClientboundPlayerInfoRemoveClientboundPlayerInfoUpdateClientboundPlayerLookAtClientboundPlayerPositionClientboundRecipeClientboundRemoveEntitiesClientboundRemoveMobEffectClientboundResetScoreClientboundResourcePackPopClientboundResourcePackPushClientboundRespawnClientboundRotateHeadClientboundSectionBlocksUpdateClientboundSelectAdvancementsTabClientboundServerDataClientboundSetActionBarTextClientboundSetBorderCenterClientboundSetBorderLerpSizeClientboundSetBorderSizeClientboundSetBorderWarningDelayClientboundSetBorderWarningDistanceClientboundSetCameraClientboundSetCarriedItemClientboundSetChunkCacheCenterClientboundSetChunkCacheRadiusClientboundSetDefaultSpawnPositionClientboundSetDisplayObjectiveClientboundSetEntityDataClientboundSetEntityLinkClientboundSetEntityMotionClientboundSetEquipmentClientboundSetExperienceClientboundSetHealthClientboundSetObjectiveClientboundSetPassengersClientboundSetPlayerTeamClientboundSetScoreClientboundSetSimulationDistanceClientboundSetSubtitleTextClientboundSetTimeClientboundSetTitleTextClientboundSetTitlesAnimationClientboundSoundEntityClientboundSoundClientboundStartConfigurationClientboundStopSoundClientboundSystemChatClientboundTabListClientboundTagQueryClientboundTakeItemEntityClientboundTeleportEntityClientboundTickingStateClientboundTickingStepClientboundUpdateAdvancementsClientboundUpdateAttributesClientboundUpdateMobEffectClientboundUpdateRecipesClientboundUpdateTagsClientboundPacketIDGuard"
|
||||
const _ClientboundPacketID_name = "ClientboundLoginDisconnectClientboundLoginEncryptionRequestClientboundLoginSuccessClientboundLoginCompressionClientboundLoginPluginRequestClientboundLoginCookieRequestClientboundConfigResetChatClientboundConfigRegistryDataClientboundConfigResourcePackPopClientboundConfigResourcePackPushClientboundConfigStoreCookieClientboundConfigTransferClientboundConfigUpdateEnabledFeaturesClientboundConfigUpdateTagsClientboundConfigSelectKnownPacksClientboundConfigCustomReportDetailsClientboundConfigServerLinksClientboundCommandsClientboundContainerCloseClientboundContainerSetContentClientboundContainerSetDataClientboundContainerSetSlotClientboundCookieRequestClientboundCooldownClientboundCustomChatCompletionsClientboundCustomPayloadClientboundDamageEventClientboundDebugSampleClientboundDeleteChatClientboundDisconnectClientboundDisguisedChatClientboundEntityEventClientboundExplodeClientboundForgetLevelChunkClientboundGameEventClientboundHorseScreenOpenClientboundHurtAnimationClientboundInitializeBorderClientboundKeepAliveClientboundLevelChunkWithLightClientboundLevelEventClientboundLevelParticlesClientboundLightUpdateClientboundLoginClientboundMapItemDataClientboundMerchantOffersClientboundMoveEntityPosClientboundMoveEntityPosRotClientboundMoveEntityRotClientboundMoveVehicleClientboundOpenBookClientboundOpenScreenClientboundOpenSignEditorClientboundPingClientboundPongResponseClientboundPlaceGhostRecipeClientboundPlayerAbilitiesClientboundPlayerChatClientboundPlayerCombatEndClientboundPlayerCombatEnterClientboundPlayerCombatKillClientboundPlayerInfoRemoveClientboundPlayerInfoUpdateClientboundPlayerLookAtClientboundPlayerPositionClientboundRecipeClientboundRemoveEntitiesClientboundRemoveMobEffectClientboundResetScoreClientboundResourcePackPopClientboundResourcePackPushClientboundRespawnClientboundRotateHeadClientboundSectionBlocksUpdateClientboundSelectAdvancementsTabClientboundServerDataClientboundSetActionBarTextClientboundSetBorderCenterClientboundSetBorderLerpSizeClientboundSetBorderSizeClientboundSetBorderWarningDelayClientboundSetBorderWarningDistanceClientboundSetCameraClientboundSetCarriedItemClientboundSetChunkCacheCenterClientboundSetChunkCacheRadiusClientboundSetDefaultSpawnPositionClientboundSetDisplayObjectiveClientboundSetEntityDataClientboundSetEntityLinkClientboundSetEntityMotionClientboundSetEquipmentClientboundSetExperienceClientboundSetHealthClientboundSetObjectiveClientboundSetPassengersClientboundSetPlayerTeamClientboundSetScoreClientboundSetSimulationDistanceClientboundSetSubtitleTextClientboundSetTimeClientboundSetTitleTextClientboundSetTitlesAnimationClientboundSoundEntityClientboundSoundClientboundStartConfigurationClientboundStopSoundClientboundStoreCookieClientboundSystemChatClientboundTabListClientboundTagQueryClientboundTakeItemEntityClientboundTeleportEntityClientboundTickingStateClientboundTickingStepClientboundTransferClientboundUpdateAdvancementsClientboundUpdateAttributesClientboundUpdateMobEffectClientboundUpdateRecipesClientboundUpdateTagsClientboundProjectilePowerClientboundCustomReportDetailsClientboundServerLinksClientboundPacketIDGuard"
|
||||
|
||||
var _ClientboundPacketID_index = [...]uint16{0, 26, 59, 82, 109, 138, 167, 196, 234, 261, 283, 303, 330, 359, 385, 408, 430, 459, 478, 503, 533, 560, 587, 606, 638, 662, 684, 705, 726, 750, 772, 790, 817, 837, 863, 887, 914, 934, 964, 985, 1010, 1032, 1048, 1070, 1095, 1119, 1146, 1170, 1192, 1211, 1232, 1257, 1272, 1295, 1322, 1348, 1369, 1395, 1423, 1450, 1477, 1504, 1527, 1552, 1569, 1594, 1620, 1641, 1667, 1694, 1712, 1733, 1763, 1795, 1816, 1843, 1869, 1897, 1921, 1953, 1988, 2008, 2033, 2063, 2093, 2127, 2157, 2181, 2205, 2231, 2254, 2278, 2298, 2321, 2345, 2369, 2388, 2420, 2446, 2464, 2487, 2516, 2538, 2554, 2583, 2603, 2624, 2642, 2661, 2686, 2711, 2734, 2756, 2785, 2812, 2838, 2862, 2883, 2907}
|
||||
var _ClientboundPacketID_index = [...]uint16{0, 26, 59, 82, 109, 138, 167, 193, 222, 254, 287, 315, 340, 378, 405, 438, 474, 502, 521, 546, 576, 603, 630, 654, 673, 705, 729, 751, 773, 794, 815, 839, 861, 879, 906, 926, 952, 976, 1003, 1023, 1053, 1074, 1099, 1121, 1137, 1159, 1184, 1208, 1235, 1259, 1281, 1300, 1321, 1346, 1361, 1384, 1411, 1437, 1458, 1484, 1512, 1539, 1566, 1593, 1616, 1641, 1658, 1683, 1709, 1730, 1756, 1783, 1801, 1822, 1852, 1884, 1905, 1932, 1958, 1986, 2010, 2042, 2077, 2097, 2122, 2152, 2182, 2216, 2246, 2270, 2294, 2320, 2343, 2367, 2387, 2410, 2434, 2458, 2477, 2509, 2535, 2553, 2576, 2605, 2627, 2643, 2672, 2692, 2714, 2735, 2753, 2772, 2797, 2822, 2845, 2867, 2886, 2915, 2942, 2968, 2992, 3013, 3039, 3069, 3091, 3115}
|
||||
|
||||
func (i ClientboundPacketID) String() string {
|
||||
if i < 0 || i >= ClientboundPacketID(len(_ClientboundPacketID_index)-1) {
|
||||
|
Reference in New Issue
Block a user