upgrade packetid to 1.20.2

This commit is contained in:
Tnze
2023-11-17 00:03:23 +08:00
parent 5ae7ff14ca
commit a3e7d2df8d
3 changed files with 168 additions and 160 deletions

View File

@ -15,56 +15,58 @@ func _() {
_ = x[ServerboundChatCommand-4]
_ = x[ServerboundChat-5]
_ = x[ServerboundChatSessionUpdate-6]
_ = x[ServerboundClientCommand-7]
_ = x[ServerboundClientInformation-8]
_ = x[ServerboundCommandSuggestion-9]
_ = x[ServerboundContainerButtonClick-10]
_ = x[ServerboundContainerClick-11]
_ = x[ServerboundContainerClose-12]
_ = x[ServerboundCustomPayload-13]
_ = x[ServerboundEditBook-14]
_ = x[ServerboundEntityTagQuery-15]
_ = x[ServerboundInteract-16]
_ = x[ServerboundJigsawGenerate-17]
_ = x[ServerboundKeepAlive-18]
_ = x[ServerboundLockDifficulty-19]
_ = x[ServerboundMovePlayerPos-20]
_ = x[ServerboundMovePlayerPosRot-21]
_ = x[ServerboundMovePlayerRot-22]
_ = x[ServerboundMovePlayerStatusOnly-23]
_ = x[ServerboundMoveVehicle-24]
_ = x[ServerboundPaddleBoat-25]
_ = x[ServerboundPickItem-26]
_ = x[ServerboundPlaceRecipe-27]
_ = x[ServerboundPlayerAbilities-28]
_ = x[ServerboundPlayerAction-29]
_ = x[ServerboundPlayerCommand-30]
_ = x[ServerboundPlayerInput-31]
_ = x[ServerboundPong-32]
_ = x[ServerboundRecipeBookChangeSettings-33]
_ = x[ServerboundRecipeBookSeenRecipe-34]
_ = x[ServerboundRenameItem-35]
_ = x[ServerboundResourcePack-36]
_ = x[ServerboundSeenAdvancements-37]
_ = x[ServerboundSelectTrade-38]
_ = x[ServerboundSetBeacon-39]
_ = x[ServerboundSetCarriedItem-40]
_ = x[ServerboundSetCommandBlock-41]
_ = x[ServerboundSetCommandMinecart-42]
_ = x[ServerboundSetCreativeModeSlot-43]
_ = x[ServerboundSetJigsawBlock-44]
_ = x[ServerboundSetStructureBlock-45]
_ = x[ServerboundSignUpdate-46]
_ = x[ServerboundSwing-47]
_ = x[ServerboundTeleportToEntity-48]
_ = x[ServerboundUseItemOn-49]
_ = x[ServerboundUseItem-50]
_ = x[ServerboundPacketIDGuard-51]
_ = 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[ServerboundCustomPayload-15]
_ = x[ServerboundEditBook-16]
_ = x[ServerboundEntityTagQuery-17]
_ = x[ServerboundInteract-18]
_ = x[ServerboundJigsawGenerate-19]
_ = x[ServerboundKeepAlive-20]
_ = x[ServerboundLockDifficulty-21]
_ = x[ServerboundMovePlayerPos-22]
_ = x[ServerboundMovePlayerPosRot-23]
_ = x[ServerboundMovePlayerRot-24]
_ = x[ServerboundMovePlayerStatusOnly-25]
_ = x[ServerboundMoveVehicle-26]
_ = x[ServerboundPaddleBoat-27]
_ = x[ServerboundPickItem-28]
_ = x[ServerboundPingRequest-29]
_ = x[ServerboundPlaceRecipe-30]
_ = x[ServerboundPlayerAbilities-31]
_ = x[ServerboundPlayerAction-32]
_ = x[ServerboundPlayerCommand-33]
_ = x[ServerboundPlayerInput-34]
_ = x[ServerboundPong-35]
_ = x[ServerboundRecipeBookChangeSettings-36]
_ = x[ServerboundRecipeBookSeenRecipe-37]
_ = x[ServerboundRenameItem-38]
_ = x[ServerboundResourcePack-39]
_ = x[ServerboundSeenAdvancements-40]
_ = x[ServerboundSelectTrade-41]
_ = x[ServerboundSetBeacon-42]
_ = x[ServerboundSetCarriedItem-43]
_ = x[ServerboundSetCommandBlock-44]
_ = x[ServerboundSetCommandMinecart-45]
_ = x[ServerboundSetCreativeModeSlot-46]
_ = x[ServerboundSetJigsawBlock-47]
_ = x[ServerboundSetStructureBlock-48]
_ = x[ServerboundSignUpdate-49]
_ = x[ServerboundSwing-50]
_ = x[ServerboundTeleportToEntity-51]
_ = x[ServerboundUseItemOn-52]
_ = x[ServerboundUseItem-53]
}
const _ServerboundPacketID_name = "ServerboundAcceptTeleportationServerboundBlockEntityTagQueryServerboundChangeDifficultyServerboundChatAckServerboundChatCommandServerboundChatServerboundChatSessionUpdateServerboundClientCommandServerboundClientInformationServerboundCommandSuggestionServerboundContainerButtonClickServerboundContainerClickServerboundContainerCloseServerboundCustomPayloadServerboundEditBookServerboundEntityTagQueryServerboundInteractServerboundJigsawGenerateServerboundKeepAliveServerboundLockDifficultyServerboundMovePlayerPosServerboundMovePlayerPosRotServerboundMovePlayerRotServerboundMovePlayerStatusOnlyServerboundMoveVehicleServerboundPaddleBoatServerboundPickItemServerboundPlaceRecipeServerboundPlayerAbilitiesServerboundPlayerActionServerboundPlayerCommandServerboundPlayerInputServerboundPongServerboundRecipeBookChangeSettingsServerboundRecipeBookSeenRecipeServerboundRenameItemServerboundResourcePackServerboundSeenAdvancementsServerboundSelectTradeServerboundSetBeaconServerboundSetCarriedItemServerboundSetCommandBlockServerboundSetCommandMinecartServerboundSetCreativeModeSlotServerboundSetJigsawBlockServerboundSetStructureBlockServerboundSignUpdateServerboundSwingServerboundTeleportToEntityServerboundUseItemOnServerboundUseItemServerboundPacketIDGuard"
const _ServerboundPacketID_name = "ServerboundAcceptTeleportationServerboundBlockEntityTagQueryServerboundChangeDifficultyServerboundChatAckServerboundChatCommandServerboundChatServerboundChatSessionUpdateServerboundChunkBatchReceivedServerboundClientCommandServerboundClientInformationServerboundCommandSuggestionServerboundConfigurationAcknowledgedServerboundContainerButtonClickServerboundContainerClickServerboundContainerCloseServerboundCustomPayloadServerboundEditBookServerboundEntityTagQueryServerboundInteractServerboundJigsawGenerateServerboundKeepAliveServerboundLockDifficultyServerboundMovePlayerPosServerboundMovePlayerPosRotServerboundMovePlayerRotServerboundMovePlayerStatusOnlyServerboundMoveVehicleServerboundPaddleBoatServerboundPickItemServerboundPingRequestServerboundPlaceRecipeServerboundPlayerAbilitiesServerboundPlayerActionServerboundPlayerCommandServerboundPlayerInputServerboundPongServerboundRecipeBookChangeSettingsServerboundRecipeBookSeenRecipeServerboundRenameItemServerboundResourcePackServerboundSeenAdvancementsServerboundSelectTradeServerboundSetBeaconServerboundSetCarriedItemServerboundSetCommandBlockServerboundSetCommandMinecartServerboundSetCreativeModeSlotServerboundSetJigsawBlockServerboundSetStructureBlockServerboundSignUpdateServerboundSwingServerboundTeleportToEntityServerboundUseItemOnServerboundUseItem"
var _ServerboundPacketID_index = [...]uint16{0, 30, 60, 87, 105, 127, 142, 170, 194, 222, 250, 281, 306, 331, 355, 374, 399, 418, 443, 463, 488, 512, 539, 563, 594, 616, 637, 656, 678, 704, 727, 751, 773, 788, 823, 854, 875, 898, 925, 947, 967, 992, 1018, 1047, 1077, 1102, 1130, 1151, 1167, 1194, 1214, 1232, 1256}
var _ServerboundPacketID_index = [...]uint16{0, 30, 60, 87, 105, 127, 142, 170, 199, 223, 251, 279, 315, 346, 371, 396, 420, 439, 464, 483, 508, 528, 553, 577, 604, 628, 659, 681, 702, 721, 743, 765, 791, 814, 838, 860, 875, 910, 941, 962, 985, 1012, 1034, 1054, 1079, 1105, 1134, 1164, 1189, 1217, 1238, 1254, 1281, 1301, 1319}
func (i ServerboundPacketID) String() string {
if i < 0 || i >= ServerboundPacketID(len(_ServerboundPacketID_index)-1) {