update packetid to 1.21

fix compile issue
This commit is contained in:
Tnze
2024-06-15 17:36:13 +08:00
parent 62c9d72851
commit fff914a786
6 changed files with 265 additions and 220 deletions

View File

@ -12,74 +12,81 @@ func _() {
_ = x[ServerboundLoginEncryptionResponse-1]
_ = x[ServerboundLoginPluginResponse-2]
_ = x[ServerboundLoginAcknowledged-3]
_ = x[ServerboundLoginCookieResponse-4]
_ = x[ServerboundStatusRequest-0]
_ = x[ServerboundStatusPingRequest-1]
_ = x[ServerboundConfigClientInformation-0]
_ = x[ServerboundConfigCustomPayload-1]
_ = x[ServerboundConfigFinishConfiguration-2]
_ = x[ServerboundConfigKeepAlive-3]
_ = x[ServerboundConfigPong-4]
_ = x[ServerboundConfigResourcePack-5]
_ = x[ServerboundConfigCookieResponse-1]
_ = x[ServerboundConfigCustomPayload-2]
_ = x[ServerboundConfigFinishConfiguration-3]
_ = x[ServerboundConfigKeepAlive-4]
_ = x[ServerboundConfigPong-5]
_ = x[ServerboundConfigResourcePack-6]
_ = x[ServerboundConfigSelectKnownPacks-7]
_ = x[ServerboundAcceptTeleportation-0]
_ = x[ServerboundBlockEntityTagQuery-1]
_ = x[ServerboundChangeDifficulty-2]
_ = x[ServerboundChatAck-3]
_ = x[ServerboundChatCommand-4]
_ = x[ServerboundChat-5]
_ = x[ServerboundChatSessionUpdate-6]
_ = x[ServerboundChunkBatchReceived-7]
_ = x[ServerboundClientCommand-8]
_ = x[ServerboundClientInformation-9]
_ = x[ServerboundCommandSuggestion-10]
_ = x[ServerboundConfigurationAcknowledged-11]
_ = x[ServerboundContainerButtonClick-12]
_ = x[ServerboundContainerClick-13]
_ = x[ServerboundContainerClose-14]
_ = x[ServerboundContainerSlotStateChanged-15]
_ = x[ServerboundCustomPayload-16]
_ = x[ServerboundEditBook-17]
_ = x[ServerboundEntityTagQuery-18]
_ = x[ServerboundInteract-19]
_ = x[ServerboundJigsawGenerate-20]
_ = x[ServerboundKeepAlive-21]
_ = x[ServerboundLockDifficulty-22]
_ = x[ServerboundMovePlayerPos-23]
_ = x[ServerboundMovePlayerPosRot-24]
_ = x[ServerboundMovePlayerRot-25]
_ = x[ServerboundMovePlayerStatusOnly-26]
_ = x[ServerboundMoveVehicle-27]
_ = x[ServerboundPaddleBoat-28]
_ = x[ServerboundPickItem-29]
_ = x[ServerboundPingRequest-30]
_ = x[ServerboundPlaceRecipe-31]
_ = x[ServerboundPlayerAbilities-32]
_ = x[ServerboundPlayerAction-33]
_ = x[ServerboundPlayerCommand-34]
_ = x[ServerboundPlayerInput-35]
_ = x[ServerboundPong-36]
_ = x[ServerboundRecipeBookChangeSettings-37]
_ = x[ServerboundRecipeBookSeenRecipe-38]
_ = x[ServerboundRenameItem-39]
_ = x[ServerboundResourcePack-40]
_ = x[ServerboundSeenAdvancements-41]
_ = x[ServerboundSelectTrade-42]
_ = x[ServerboundSetBeacon-43]
_ = x[ServerboundSetCarriedItem-44]
_ = x[ServerboundSetCommandBlock-45]
_ = x[ServerboundSetCommandMinecart-46]
_ = x[ServerboundSetCreativeModeSlot-47]
_ = x[ServerboundSetJigsawBlock-48]
_ = x[ServerboundSetStructureBlock-49]
_ = x[ServerboundSignUpdate-50]
_ = x[ServerboundSwing-51]
_ = x[ServerboundTeleportToEntity-52]
_ = x[ServerboundUseItemOn-53]
_ = x[ServerboundUseItem-54]
_ = x[ServerboundChatCommandSigned-5]
_ = x[ServerboundChat-6]
_ = x[ServerboundChatSessionUpdate-7]
_ = x[ServerboundChunkBatchReceived-8]
_ = x[ServerboundClientCommand-9]
_ = x[ServerboundClientInformation-10]
_ = x[ServerboundCommandSuggestion-11]
_ = x[ServerboundConfigurationAcknowledged-12]
_ = x[ServerboundContainerButtonClick-13]
_ = x[ServerboundContainerClick-14]
_ = x[ServerboundContainerClose-15]
_ = x[ServerboundContainerSlotStateChanged-16]
_ = x[ServerboundCookieResponse-17]
_ = x[ServerboundCustomPayload-18]
_ = x[ServerboundDebugSampleSubscription-19]
_ = x[ServerboundEditBook-20]
_ = x[ServerboundEntityTagQuery-21]
_ = x[ServerboundInteract-22]
_ = x[ServerboundJigsawGenerate-23]
_ = x[ServerboundKeepAlive-24]
_ = x[ServerboundLockDifficulty-25]
_ = x[ServerboundMovePlayerPos-26]
_ = x[ServerboundMovePlayerPosRot-27]
_ = x[ServerboundMovePlayerRot-28]
_ = x[ServerboundMovePlayerStatusOnly-29]
_ = x[ServerboundMoveVehicle-30]
_ = x[ServerboundPaddleBoat-31]
_ = x[ServerboundPickItem-32]
_ = x[ServerboundPingRequest-33]
_ = x[ServerboundPlaceRecipe-34]
_ = x[ServerboundPlayerAbilities-35]
_ = x[ServerboundPlayerAction-36]
_ = x[ServerboundPlayerCommand-37]
_ = x[ServerboundPlayerInput-38]
_ = x[ServerboundPong-39]
_ = x[ServerboundRecipeBookChangeSettings-40]
_ = x[ServerboundRecipeBookSeenRecipe-41]
_ = x[ServerboundRenameItem-42]
_ = x[ServerboundResourcePack-43]
_ = x[ServerboundSeenAdvancements-44]
_ = x[ServerboundSelectTrade-45]
_ = x[ServerboundSetBeacon-46]
_ = x[ServerboundSetCarriedItem-47]
_ = x[ServerboundSetCommandBlock-48]
_ = x[ServerboundSetCommandMinecart-49]
_ = x[ServerboundSetCreativeModeSlot-50]
_ = x[ServerboundSetJigsawBlock-51]
_ = x[ServerboundSetStructureBlock-52]
_ = x[ServerboundSignUpdate-53]
_ = x[ServerboundSwing-54]
_ = x[ServerboundTeleportToEntity-55]
_ = x[ServerboundUseItemOn-56]
_ = x[ServerboundUseItem-57]
_ = x[ServerboundPacketIDGuard-58]
}
const _ServerboundPacketID_name = "ServerboundLoginStartServerboundLoginEncryptionResponseServerboundLoginPluginResponseServerboundLoginAcknowledgedServerboundConfigPongServerboundConfigResourcePackServerboundChatSessionUpdateServerboundChunkBatchReceivedServerboundClientCommandServerboundClientInformationServerboundCommandSuggestionServerboundConfigurationAcknowledgedServerboundContainerButtonClickServerboundContainerClickServerboundContainerCloseServerboundContainerSlotStateChangedServerboundCustomPayloadServerboundEditBookServerboundEntityTagQueryServerboundInteractServerboundJigsawGenerateServerboundKeepAliveServerboundLockDifficultyServerboundMovePlayerPosServerboundMovePlayerPosRotServerboundMovePlayerRotServerboundMovePlayerStatusOnlyServerboundMoveVehicleServerboundPaddleBoatServerboundPickItemServerboundPingRequestServerboundPlaceRecipeServerboundPlayerAbilitiesServerboundPlayerActionServerboundPlayerCommandServerboundPlayerInputServerboundPongServerboundRecipeBookChangeSettingsServerboundRecipeBookSeenRecipeServerboundRenameItemServerboundResourcePackServerboundSeenAdvancementsServerboundSelectTradeServerboundSetBeaconServerboundSetCarriedItemServerboundSetCommandBlockServerboundSetCommandMinecartServerboundSetCreativeModeSlotServerboundSetJigsawBlockServerboundSetStructureBlockServerboundSignUpdateServerboundSwingServerboundTeleportToEntityServerboundUseItemOnServerboundUseItem"
const _ServerboundPacketID_name = "ServerboundLoginStartServerboundLoginEncryptionResponseServerboundLoginPluginResponseServerboundLoginAcknowledgedServerboundLoginCookieResponseServerboundConfigPongServerboundConfigResourcePackServerboundConfigSelectKnownPacksServerboundChunkBatchReceivedServerboundClientCommandServerboundClientInformationServerboundCommandSuggestionServerboundConfigurationAcknowledgedServerboundContainerButtonClickServerboundContainerClickServerboundContainerCloseServerboundContainerSlotStateChangedServerboundCookieResponseServerboundCustomPayloadServerboundDebugSampleSubscriptionServerboundEditBookServerboundEntityTagQueryServerboundInteractServerboundJigsawGenerateServerboundKeepAliveServerboundLockDifficultyServerboundMovePlayerPosServerboundMovePlayerPosRotServerboundMovePlayerRotServerboundMovePlayerStatusOnlyServerboundMoveVehicleServerboundPaddleBoatServerboundPickItemServerboundPingRequestServerboundPlaceRecipeServerboundPlayerAbilitiesServerboundPlayerActionServerboundPlayerCommandServerboundPlayerInputServerboundPongServerboundRecipeBookChangeSettingsServerboundRecipeBookSeenRecipeServerboundRenameItemServerboundResourcePackServerboundSeenAdvancementsServerboundSelectTradeServerboundSetBeaconServerboundSetCarriedItemServerboundSetCommandBlockServerboundSetCommandMinecartServerboundSetCreativeModeSlotServerboundSetJigsawBlockServerboundSetStructureBlockServerboundSignUpdateServerboundSwingServerboundTeleportToEntityServerboundUseItemOnServerboundUseItemServerboundPacketIDGuard"
var _ServerboundPacketID_index = [...]uint16{0, 21, 55, 85, 113, 134, 163, 191, 220, 244, 272, 300, 336, 367, 392, 417, 453, 477, 496, 521, 540, 565, 585, 610, 634, 661, 685, 716, 738, 759, 778, 800, 822, 848, 871, 895, 917, 932, 967, 998, 1019, 1042, 1069, 1091, 1111, 1136, 1162, 1191, 1221, 1246, 1274, 1295, 1311, 1338, 1358, 1376}
var _ServerboundPacketID_index = [...]uint16{0, 21, 55, 85, 113, 143, 164, 193, 226, 255, 279, 307, 335, 371, 402, 427, 452, 488, 513, 537, 571, 590, 615, 634, 659, 679, 704, 728, 755, 779, 810, 832, 853, 872, 894, 916, 942, 965, 989, 1011, 1026, 1061, 1092, 1113, 1136, 1163, 1185, 1205, 1230, 1256, 1285, 1315, 1340, 1368, 1389, 1405, 1432, 1452, 1470, 1494}
func (i ServerboundPacketID) String() string {
if i < 0 || i >= ServerboundPacketID(len(_ServerboundPacketID_index)-1) {