Update data to 1.19.4

This commit is contained in:
Tnze
2023-04-05 01:19:49 +08:00
parent 69f239550f
commit 4dfee51bfc
12 changed files with 8698 additions and 7581 deletions

View File

@ -8,119 +8,122 @@ 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[ClientboundAddEntity-0]
_ = x[ClientboundAddExperienceOrb-1]
_ = x[ClientboundAddPlayer-2]
_ = x[ClientboundAnimate-3]
_ = x[ClientboundAwardStats-4]
_ = x[ClientboundBlockChangedAck-5]
_ = x[ClientboundBlockDestruction-6]
_ = x[ClientboundBlockEntityData-7]
_ = x[ClientboundBlockEvent-8]
_ = x[ClientboundBlockUpdate-9]
_ = x[ClientboundBossEvent-10]
_ = x[ClientboundChangeDifficulty-11]
_ = x[ClientboundClearTitles-12]
_ = x[ClientboundCommandSuggestions-13]
_ = x[ClientboundCommands-14]
_ = x[ClientboundContainerClose-15]
_ = x[ClientboundContainerSetContent-16]
_ = x[ClientboundContainerSetData-17]
_ = x[ClientboundContainerSetSlot-18]
_ = x[ClientboundCooldown-19]
_ = x[ClientboundCustomChatCompletions-20]
_ = x[ClientboundCustomPayload-21]
_ = x[ClientboundDeleteChat-22]
_ = x[ClientboundDisconnect-23]
_ = x[ClientboundDisguisedChat-24]
_ = x[ClientboundEntityEvent-25]
_ = x[ClientboundExplode-26]
_ = x[ClientboundForgetLevelChunk-27]
_ = x[ClientboundGameEvent-28]
_ = x[ClientboundHorseScreenOpen-29]
_ = x[ClientboundInitializeBorder-30]
_ = x[ClientboundKeepAlive-31]
_ = x[ClientboundLevelChunkWithLight-32]
_ = x[ClientboundLevelEvent-33]
_ = x[ClientboundLevelParticles-34]
_ = x[ClientboundLightUpdate-35]
_ = x[ClientboundLogin-36]
_ = x[ClientboundMapItemData-37]
_ = x[ClientboundMerchantOffers-38]
_ = x[ClientboundMoveEntityPos-39]
_ = x[ClientboundMoveEntityPosRot-40]
_ = x[ClientboundMoveEntityRot-41]
_ = x[ClientboundMoveVehicle-42]
_ = x[ClientboundOpenBook-43]
_ = x[ClientboundOpenScreen-44]
_ = x[ClientboundOpenSignEditor-45]
_ = x[ClientboundPing-46]
_ = x[ClientboundPlaceGhostRecipe-47]
_ = x[ClientboundPlayerAbilities-48]
_ = x[ClientboundPlayerChat-49]
_ = x[ClientboundPlayerCombatEnd-50]
_ = x[ClientboundPlayerCombatEnter-51]
_ = x[ClientboundPlayerCombatKill-52]
_ = x[ClientboundPlayerInfoRemove-53]
_ = x[ClientboundPlayerInfoUpdate-54]
_ = x[ClientboundPlayerLookAt-55]
_ = x[ClientboundPlayerPosition-56]
_ = x[ClientboundRecipe-57]
_ = x[ClientboundRemoveEntities-58]
_ = x[ClientboundRemoveMobEffect-59]
_ = x[ClientboundResourcePack-60]
_ = x[ClientboundRespawn-61]
_ = x[ClientboundRotateHead-62]
_ = x[ClientboundSectionBlocksUpdate-63]
_ = x[ClientboundSelectAdvancementsTab-64]
_ = x[ClientboundServerData-65]
_ = x[ClientboundSetActionBarText-66]
_ = x[ClientboundSetBorderCenter-67]
_ = x[ClientboundSetBorderLerpSize-68]
_ = x[ClientboundSetBorderSize-69]
_ = x[ClientboundSetBorderWarningDelay-70]
_ = x[ClientboundSetBorderWarningDistance-71]
_ = x[ClientboundSetCamera-72]
_ = x[ClientboundSetCarriedItem-73]
_ = x[ClientboundSetChunkCacheCenter-74]
_ = x[ClientboundSetChunkCacheRadius-75]
_ = x[ClientboundSetDefaultSpawnPosition-76]
_ = x[ClientboundSetDisplayObjective-77]
_ = x[ClientboundSetEntityData-78]
_ = x[ClientboundSetEntityLink-79]
_ = x[ClientboundSetEntityMotion-80]
_ = x[ClientboundSetEquipment-81]
_ = x[ClientboundSetExperience-82]
_ = x[ClientboundSetHealth-83]
_ = x[ClientboundSetObjective-84]
_ = x[ClientboundSetPassengers-85]
_ = x[ClientboundSetPlayerTeam-86]
_ = x[ClientboundSetScore-87]
_ = x[ClientboundSetSimulationDistance-88]
_ = x[ClientboundSetSubtitleText-89]
_ = x[ClientboundSetTime-90]
_ = x[ClientboundSetTitleText-91]
_ = x[ClientboundSetTitlesAnimation-92]
_ = x[ClientboundSoundEntity-93]
_ = x[ClientboundSound-94]
_ = x[ClientboundStopSound-95]
_ = x[ClientboundSystemChat-96]
_ = x[ClientboundTabList-97]
_ = x[ClientboundTagQuery-98]
_ = x[ClientboundTakeItemEntity-99]
_ = x[ClientboundTeleportEntity-100]
_ = x[ClientboundUpdateAdvancements-101]
_ = x[ClientboundUpdateAttributes-102]
_ = x[ClientboundUpdateEnabledFeatures-103]
_ = x[ClientboundUpdateMobEffect-104]
_ = x[ClientboundUpdateRecipes-105]
_ = x[ClientboundUpdateTags-106]
_ = x[ClientboundPacketIDGuard-107]
_ = x[BundleDelimiter-0]
_ = x[ClientboundAddEntity-1]
_ = x[ClientboundAddExperienceOrb-2]
_ = x[ClientboundAddPlayer-3]
_ = x[ClientboundAnimate-4]
_ = x[ClientboundAwardStats-5]
_ = x[ClientboundBlockChangedAck-6]
_ = x[ClientboundBlockDestruction-7]
_ = x[ClientboundBlockEntityData-8]
_ = x[ClientboundBlockEvent-9]
_ = x[ClientboundBlockUpdate-10]
_ = x[ClientboundBossEvent-11]
_ = x[ClientboundChangeDifficulty-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[ClientboundCooldown-21]
_ = x[ClientboundCustomChatCompletions-22]
_ = x[ClientboundCustomPayload-23]
_ = x[ClientboundDamageEvent-24]
_ = x[ClientboundDeleteChat-25]
_ = x[ClientboundDisconnect-26]
_ = x[ClientboundDisguisedChat-27]
_ = x[ClientboundEntityEvent-28]
_ = x[ClientboundExplode-29]
_ = x[ClientboundForgetLevelChunk-30]
_ = x[ClientboundGameEvent-31]
_ = x[ClientboundHorseScreenOpen-32]
_ = x[ClientboundHurtAnimation-33]
_ = x[ClientboundInitializeBorder-34]
_ = x[ClientboundKeepAlive-35]
_ = x[ClientboundLevelChunkWithLight-36]
_ = x[ClientboundLevelEvent-37]
_ = x[ClientboundLevelParticles-38]
_ = x[ClientboundLightUpdate-39]
_ = x[ClientboundLogin-40]
_ = x[ClientboundMapItemData-41]
_ = x[ClientboundMerchantOffers-42]
_ = x[ClientboundMoveEntityPos-43]
_ = x[ClientboundMoveEntityPosRot-44]
_ = x[ClientboundMoveEntityRot-45]
_ = x[ClientboundMoveVehicle-46]
_ = x[ClientboundOpenBook-47]
_ = x[ClientboundOpenScreen-48]
_ = x[ClientboundOpenSignEditor-49]
_ = x[ClientboundPing-50]
_ = x[ClientboundPlaceGhostRecipe-51]
_ = x[ClientboundPlayerAbilities-52]
_ = x[ClientboundPlayerChat-53]
_ = x[ClientboundPlayerCombatEnd-54]
_ = x[ClientboundPlayerCombatEnter-55]
_ = x[ClientboundPlayerCombatKill-56]
_ = x[ClientboundPlayerInfoRemove-57]
_ = x[ClientboundPlayerInfoUpdate-58]
_ = x[ClientboundPlayerLookAt-59]
_ = x[ClientboundPlayerPosition-60]
_ = x[ClientboundRecipe-61]
_ = x[ClientboundRemoveEntities-62]
_ = x[ClientboundRemoveMobEffect-63]
_ = x[ClientboundResourcePack-64]
_ = x[ClientboundRespawn-65]
_ = x[ClientboundRotateHead-66]
_ = x[ClientboundSectionBlocksUpdate-67]
_ = x[ClientboundSelectAdvancementsTab-68]
_ = x[ClientboundServerData-69]
_ = x[ClientboundSetActionBarText-70]
_ = x[ClientboundSetBorderCenter-71]
_ = x[ClientboundSetBorderLerpSize-72]
_ = x[ClientboundSetBorderSize-73]
_ = x[ClientboundSetBorderWarningDelay-74]
_ = x[ClientboundSetBorderWarningDistance-75]
_ = x[ClientboundSetCamera-76]
_ = x[ClientboundSetCarriedItem-77]
_ = x[ClientboundSetChunkCacheCenter-78]
_ = x[ClientboundSetChunkCacheRadius-79]
_ = x[ClientboundSetDefaultSpawnPosition-80]
_ = x[ClientboundSetDisplayObjective-81]
_ = x[ClientboundSetEntityData-82]
_ = x[ClientboundSetEntityLink-83]
_ = x[ClientboundSetEntityMotion-84]
_ = x[ClientboundSetEquipment-85]
_ = x[ClientboundSetExperience-86]
_ = x[ClientboundSetHealth-87]
_ = x[ClientboundSetObjective-88]
_ = x[ClientboundSetPassengers-89]
_ = x[ClientboundSetPlayerTeam-90]
_ = x[ClientboundSetScore-91]
_ = x[ClientboundSetSimulationDistance-92]
_ = x[ClientboundSetSubtitleText-93]
_ = x[ClientboundSetTime-94]
_ = x[ClientboundSetTitleText-95]
_ = x[ClientboundSetTitlesAnimation-96]
_ = x[ClientboundSoundEntity-97]
_ = x[ClientboundSound-98]
_ = x[ClientboundStopSound-99]
_ = x[ClientboundSystemChat-100]
_ = x[ClientboundTabList-101]
_ = x[ClientboundTagQuery-102]
_ = x[ClientboundTakeItemEntity-103]
_ = x[ClientboundTeleportEntity-104]
_ = x[ClientboundUpdateAdvancements-105]
_ = x[ClientboundUpdateAttributes-106]
_ = x[ClientboundUpdateEnabledFeatures-107]
_ = x[ClientboundUpdateMobEffect-108]
_ = x[ClientboundUpdateRecipes-109]
_ = x[ClientboundUpdateTags-110]
}
const _ClientboundPacketID_name = "ClientboundAddEntityClientboundAddExperienceOrbClientboundAddPlayerClientboundAnimateClientboundAwardStatsClientboundBlockChangedAckClientboundBlockDestructionClientboundBlockEntityDataClientboundBlockEventClientboundBlockUpdateClientboundBossEventClientboundChangeDifficultyClientboundClearTitlesClientboundCommandSuggestionsClientboundCommandsClientboundContainerCloseClientboundContainerSetContentClientboundContainerSetDataClientboundContainerSetSlotClientboundCooldownClientboundCustomChatCompletionsClientboundCustomPayloadClientboundDeleteChatClientboundDisconnectClientboundDisguisedChatClientboundEntityEventClientboundExplodeClientboundForgetLevelChunkClientboundGameEventClientboundHorseScreenOpenClientboundInitializeBorderClientboundKeepAliveClientboundLevelChunkWithLightClientboundLevelEventClientboundLevelParticlesClientboundLightUpdateClientboundLoginClientboundMapItemDataClientboundMerchantOffersClientboundMoveEntityPosClientboundMoveEntityPosRotClientboundMoveEntityRotClientboundMoveVehicleClientboundOpenBookClientboundOpenScreenClientboundOpenSignEditorClientboundPingClientboundPlaceGhostRecipeClientboundPlayerAbilitiesClientboundPlayerChatClientboundPlayerCombatEndClientboundPlayerCombatEnterClientboundPlayerCombatKillClientboundPlayerInfoRemoveClientboundPlayerInfoUpdateClientboundPlayerLookAtClientboundPlayerPositionClientboundRecipeClientboundRemoveEntitiesClientboundRemoveMobEffectClientboundResourcePackClientboundRespawnClientboundRotateHeadClientboundSectionBlocksUpdateClientboundSelectAdvancementsTabClientboundServerDataClientboundSetActionBarTextClientboundSetBorderCenterClientboundSetBorderLerpSizeClientboundSetBorderSizeClientboundSetBorderWarningDelayClientboundSetBorderWarningDistanceClientboundSetCameraClientboundSetCarriedItemClientboundSetChunkCacheCenterClientboundSetChunkCacheRadiusClientboundSetDefaultSpawnPositionClientboundSetDisplayObjectiveClientboundSetEntityDataClientboundSetEntityLinkClientboundSetEntityMotionClientboundSetEquipmentClientboundSetExperienceClientboundSetHealthClientboundSetObjectiveClientboundSetPassengersClientboundSetPlayerTeamClientboundSetScoreClientboundSetSimulationDistanceClientboundSetSubtitleTextClientboundSetTimeClientboundSetTitleTextClientboundSetTitlesAnimationClientboundSoundEntityClientboundSoundClientboundStopSoundClientboundSystemChatClientboundTabListClientboundTagQueryClientboundTakeItemEntityClientboundTeleportEntityClientboundUpdateAdvancementsClientboundUpdateAttributesClientboundUpdateEnabledFeaturesClientboundUpdateMobEffectClientboundUpdateRecipesClientboundUpdateTagsClientboundPacketIDGuard"
const _ClientboundPacketID_name = "BundleDelimiterClientboundAddEntityClientboundAddExperienceOrbClientboundAddPlayerClientboundAnimateClientboundAwardStatsClientboundBlockChangedAckClientboundBlockDestructionClientboundBlockEntityDataClientboundBlockEventClientboundBlockUpdateClientboundBossEventClientboundChangeDifficultyClientboundChunksBiomesClientboundClearTitlesClientboundCommandSuggestionsClientboundCommandsClientboundContainerCloseClientboundContainerSetContentClientboundContainerSetDataClientboundContainerSetSlotClientboundCooldownClientboundCustomChatCompletionsClientboundCustomPayloadClientboundDamageEventClientboundDeleteChatClientboundDisconnectClientboundDisguisedChatClientboundEntityEventClientboundExplodeClientboundForgetLevelChunkClientboundGameEventClientboundHorseScreenOpenClientboundHurtAnimationClientboundInitializeBorderClientboundKeepAliveClientboundLevelChunkWithLightClientboundLevelEventClientboundLevelParticlesClientboundLightUpdateClientboundLoginClientboundMapItemDataClientboundMerchantOffersClientboundMoveEntityPosClientboundMoveEntityPosRotClientboundMoveEntityRotClientboundMoveVehicleClientboundOpenBookClientboundOpenScreenClientboundOpenSignEditorClientboundPingClientboundPlaceGhostRecipeClientboundPlayerAbilitiesClientboundPlayerChatClientboundPlayerCombatEndClientboundPlayerCombatEnterClientboundPlayerCombatKillClientboundPlayerInfoRemoveClientboundPlayerInfoUpdateClientboundPlayerLookAtClientboundPlayerPositionClientboundRecipeClientboundRemoveEntitiesClientboundRemoveMobEffectClientboundResourcePackClientboundRespawnClientboundRotateHeadClientboundSectionBlocksUpdateClientboundSelectAdvancementsTabClientboundServerDataClientboundSetActionBarTextClientboundSetBorderCenterClientboundSetBorderLerpSizeClientboundSetBorderSizeClientboundSetBorderWarningDelayClientboundSetBorderWarningDistanceClientboundSetCameraClientboundSetCarriedItemClientboundSetChunkCacheCenterClientboundSetChunkCacheRadiusClientboundSetDefaultSpawnPositionClientboundSetDisplayObjectiveClientboundSetEntityDataClientboundSetEntityLinkClientboundSetEntityMotionClientboundSetEquipmentClientboundSetExperienceClientboundSetHealthClientboundSetObjectiveClientboundSetPassengersClientboundSetPlayerTeamClientboundSetScoreClientboundSetSimulationDistanceClientboundSetSubtitleTextClientboundSetTimeClientboundSetTitleTextClientboundSetTitlesAnimationClientboundSoundEntityClientboundSoundClientboundStopSoundClientboundSystemChatClientboundTabListClientboundTagQueryClientboundTakeItemEntityClientboundTeleportEntityClientboundUpdateAdvancementsClientboundUpdateAttributesClientboundUpdateEnabledFeaturesClientboundUpdateMobEffectClientboundUpdateRecipesClientboundUpdateTags"
var _ClientboundPacketID_index = [...]uint16{0, 20, 47, 67, 85, 106, 132, 159, 185, 206, 228, 248, 275, 297, 326, 345, 370, 400, 427, 454, 473, 505, 529, 550, 571, 595, 617, 635, 662, 682, 708, 735, 755, 785, 806, 831, 853, 869, 891, 916, 940, 967, 991, 1013, 1032, 1053, 1078, 1093, 1120, 1146, 1167, 1193, 1221, 1248, 1275, 1302, 1325, 1350, 1367, 1392, 1418, 1441, 1459, 1480, 1510, 1542, 1563, 1590, 1616, 1644, 1668, 1700, 1735, 1755, 1780, 1810, 1840, 1874, 1904, 1928, 1952, 1978, 2001, 2025, 2045, 2068, 2092, 2116, 2135, 2167, 2193, 2211, 2234, 2263, 2285, 2301, 2321, 2342, 2360, 2379, 2404, 2429, 2458, 2485, 2517, 2543, 2567, 2588, 2612}
var _ClientboundPacketID_index = [...]uint16{0, 15, 35, 62, 82, 100, 121, 147, 174, 200, 221, 243, 263, 290, 313, 335, 364, 383, 408, 438, 465, 492, 511, 543, 567, 589, 610, 631, 655, 677, 695, 722, 742, 768, 792, 819, 839, 869, 890, 915, 937, 953, 975, 1000, 1024, 1051, 1075, 1097, 1116, 1137, 1162, 1177, 1204, 1230, 1251, 1277, 1305, 1332, 1359, 1386, 1409, 1434, 1451, 1476, 1502, 1525, 1543, 1564, 1594, 1626, 1647, 1674, 1700, 1728, 1752, 1784, 1819, 1839, 1864, 1894, 1924, 1958, 1988, 2012, 2036, 2062, 2085, 2109, 2129, 2152, 2176, 2200, 2219, 2251, 2277, 2295, 2318, 2347, 2369, 2385, 2405, 2426, 2444, 2463, 2488, 2513, 2542, 2569, 2601, 2627, 2651, 2672}
func (i ClientboundPacketID) String() string {
if i < 0 || i >= ClientboundPacketID(len(_ClientboundPacketID_index)-1) {

View File

@ -1,29 +1,35 @@
package me.tnze;
package pers.tnze.gomc.gen;
import it.unimi.dsi.fastutil.ints.Int2ObjectMap;
import net.minecraft.network.ConnectionProtocol;
import net.minecraft.network.protocol.Packet;
import net.minecraft.network.protocol.PacketFlow;
import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;
public class Main {
public static void main(String[] args) throws Exception {
handlePackets(ConnectionProtocol.LOGIN.getPacketsByIds(PacketFlow.CLIENTBOUND));
System.out.println();
handlePackets(ConnectionProtocol.LOGIN.getPacketsByIds(PacketFlow.SERVERBOUND));
System.out.println();
System.out.println();
handlePackets(ConnectionProtocol.STATUS.getPacketsByIds(PacketFlow.CLIENTBOUND));
System.out.println();
handlePackets(ConnectionProtocol.STATUS.getPacketsByIds(PacketFlow.SERVERBOUND));
System.out.println();
System.out.println();
handlePackets(ConnectionProtocol.PLAY.getPacketsByIds(PacketFlow.CLIENTBOUND));
System.out.println();
handlePackets(ConnectionProtocol.PLAY.getPacketsByIds(PacketFlow.SERVERBOUND));
try (FileWriter w = new FileWriter("packet_names.txt")) {
handlePackets(w, ConnectionProtocol.LOGIN.getPacketsByIds(PacketFlow.CLIENTBOUND));
System.out.println();
handlePackets(w, ConnectionProtocol.LOGIN.getPacketsByIds(PacketFlow.SERVERBOUND));
System.out.println();
System.out.println();
handlePackets(w, ConnectionProtocol.STATUS.getPacketsByIds(PacketFlow.CLIENTBOUND));
System.out.println();
handlePackets(w, ConnectionProtocol.STATUS.getPacketsByIds(PacketFlow.SERVERBOUND));
System.out.println();
System.out.println();
handlePackets(w, ConnectionProtocol.PLAY.getPacketsByIds(PacketFlow.CLIENTBOUND));
System.out.println();
handlePackets(w, ConnectionProtocol.PLAY.getPacketsByIds(PacketFlow.SERVERBOUND));
}
}
private static void handlePackets(Int2ObjectMap<Class<? extends Packet<?>>> packets) {
private static void handlePackets(Writer w, Int2ObjectMap<Class<? extends Packet<?>>> packets) throws IOException {
for (int i = 0; i < packets.size(); i++) {
Class<? extends Packet<?>> c = packets.get(i);
String className = c.getSimpleName();
@ -35,6 +41,8 @@ public class Main {
className = superClassName.substring(0, superClassName.length() - "Packet".length()) + className;
}
System.out.println(className);
w.write(className + "\n");
}
w.write('\n');
}
}

View File

@ -37,7 +37,8 @@ const (
// Game Clientbound
const (
ClientboundAddEntity ClientboundPacketID = iota
BundleDelimiter ClientboundPacketID = iota
ClientboundAddEntity
ClientboundAddExperienceOrb
ClientboundAddPlayer
ClientboundAnimate
@ -49,6 +50,7 @@ const (
ClientboundBlockUpdate
ClientboundBossEvent
ClientboundChangeDifficulty
ClientboundChunksBiomes
ClientboundClearTitles
ClientboundCommandSuggestions
ClientboundCommands
@ -59,6 +61,7 @@ const (
ClientboundCooldown
ClientboundCustomChatCompletions
ClientboundCustomPayload
ClientboundDamageEvent
ClientboundDeleteChat
ClientboundDisconnect
ClientboundDisguisedChat
@ -67,6 +70,7 @@ const (
ClientboundForgetLevelChunk
ClientboundGameEvent
ClientboundHorseScreenOpen
ClientboundHurtAnimation
ClientboundInitializeBorder
ClientboundKeepAlive
ClientboundLevelChunkWithLight
@ -144,7 +148,6 @@ const (
ClientboundUpdateMobEffect
ClientboundUpdateRecipes
ClientboundUpdateTags
ClientboundPacketIDGuard
)
// Game Serverbound
@ -155,6 +158,7 @@ const (
ServerboundChatAck
ServerboundChatCommand
ServerboundChat
ServerboundChatSessionUpdate
ServerboundClientCommand
ServerboundClientInformation
ServerboundCommandSuggestion
@ -181,7 +185,6 @@ const (
ServerboundPlayerCommand
ServerboundPlayerInput
ServerboundPong
ServerboundChatSessionUpdate
ServerboundRecipeBookChangeSettings
ServerboundRecipeBookSeenRecipe
ServerboundRenameItem
@ -200,5 +203,4 @@ const (
ServerboundTeleportToEntity
ServerboundUseItemOn
ServerboundUseItem
ServerboundPacketIDGuard
)

View File

@ -14,33 +14,33 @@ func _() {
_ = x[ServerboundChatAck-3]
_ = x[ServerboundChatCommand-4]
_ = x[ServerboundChat-5]
_ = x[ServerboundClientCommand-6]
_ = x[ServerboundClientInformation-7]
_ = x[ServerboundCommandSuggestion-8]
_ = x[ServerboundContainerButtonClick-9]
_ = x[ServerboundContainerClick-10]
_ = x[ServerboundContainerClose-11]
_ = x[ServerboundCustomPayload-12]
_ = x[ServerboundEditBook-13]
_ = x[ServerboundEntityTagQuery-14]
_ = x[ServerboundInteract-15]
_ = x[ServerboundJigsawGenerate-16]
_ = x[ServerboundKeepAlive-17]
_ = x[ServerboundLockDifficulty-18]
_ = x[ServerboundMovePlayerPos-19]
_ = x[ServerboundMovePlayerPosRot-20]
_ = x[ServerboundMovePlayerRot-21]
_ = x[ServerboundMovePlayerStatusOnly-22]
_ = x[ServerboundMoveVehicle-23]
_ = x[ServerboundPaddleBoat-24]
_ = x[ServerboundPickItem-25]
_ = x[ServerboundPlaceRecipe-26]
_ = x[ServerboundPlayerAbilities-27]
_ = x[ServerboundPlayerAction-28]
_ = x[ServerboundPlayerCommand-29]
_ = x[ServerboundPlayerInput-30]
_ = x[ServerboundPong-31]
_ = x[ServerboundChatSessionUpdate-32]
_ = 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]
@ -59,12 +59,11 @@ func _() {
_ = x[ServerboundTeleportToEntity-48]
_ = x[ServerboundUseItemOn-49]
_ = x[ServerboundUseItem-50]
_ = x[ServerboundPacketIDGuard-51]
}
const _ServerboundPacketID_name = "ServerboundAcceptTeleportationServerboundBlockEntityTagQueryServerboundChangeDifficultyServerboundChatAckServerboundChatCommandServerboundChatServerboundClientCommandServerboundClientInformationServerboundCommandSuggestionServerboundContainerButtonClickServerboundContainerClickServerboundContainerCloseServerboundCustomPayloadServerboundEditBookServerboundEntityTagQueryServerboundInteractServerboundJigsawGenerateServerboundKeepAliveServerboundLockDifficultyServerboundMovePlayerPosServerboundMovePlayerPosRotServerboundMovePlayerRotServerboundMovePlayerStatusOnlyServerboundMoveVehicleServerboundPaddleBoatServerboundPickItemServerboundPlaceRecipeServerboundPlayerAbilitiesServerboundPlayerActionServerboundPlayerCommandServerboundPlayerInputServerboundPongServerboundChatSessionUpdateServerboundRecipeBookChangeSettingsServerboundRecipeBookSeenRecipeServerboundRenameItemServerboundResourcePackServerboundSeenAdvancementsServerboundSelectTradeServerboundSetBeaconServerboundSetCarriedItemServerboundSetCommandBlockServerboundSetCommandMinecartServerboundSetCreativeModeSlotServerboundSetJigsawBlockServerboundSetStructureBlockServerboundSignUpdateServerboundSwingServerboundTeleportToEntityServerboundUseItemOnServerboundUseItemServerboundPacketIDGuard"
const _ServerboundPacketID_name = "ServerboundAcceptTeleportationServerboundBlockEntityTagQueryServerboundChangeDifficultyServerboundChatAckServerboundChatCommandServerboundChatServerboundChatSessionUpdateServerboundClientCommandServerboundClientInformationServerboundCommandSuggestionServerboundContainerButtonClickServerboundContainerClickServerboundContainerCloseServerboundCustomPayloadServerboundEditBookServerboundEntityTagQueryServerboundInteractServerboundJigsawGenerateServerboundKeepAliveServerboundLockDifficultyServerboundMovePlayerPosServerboundMovePlayerPosRotServerboundMovePlayerRotServerboundMovePlayerStatusOnlyServerboundMoveVehicleServerboundPaddleBoatServerboundPickItemServerboundPlaceRecipeServerboundPlayerAbilitiesServerboundPlayerActionServerboundPlayerCommandServerboundPlayerInputServerboundPongServerboundRecipeBookChangeSettingsServerboundRecipeBookSeenRecipeServerboundRenameItemServerboundResourcePackServerboundSeenAdvancementsServerboundSelectTradeServerboundSetBeaconServerboundSetCarriedItemServerboundSetCommandBlockServerboundSetCommandMinecartServerboundSetCreativeModeSlotServerboundSetJigsawBlockServerboundSetStructureBlockServerboundSignUpdateServerboundSwingServerboundTeleportToEntityServerboundUseItemOnServerboundUseItem"
var _ServerboundPacketID_index = [...]uint16{0, 30, 60, 87, 105, 127, 142, 166, 194, 222, 253, 278, 303, 327, 346, 371, 390, 415, 435, 460, 484, 511, 535, 566, 588, 609, 628, 650, 676, 699, 723, 745, 760, 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, 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}
func (i ServerboundPacketID) String() string {
if i < 0 || i >= ServerboundPacketID(len(_ServerboundPacketID_index)-1) {