131 lines
7.6 KiB
Go
131 lines
7.6 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[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]
|
|
}
|
|
|
|
const _ClientboundPacketID_name = "ClientboundAddEntityClientboundAddExperienceOrbClientboundAddPlayerClientboundAnimateClientboundAwardStatsClientboundBlockChangedAckClientboundBlockDestructionClientboundBlockEntityDataClientboundBlockEventClientboundBlockUpdateClientboundBossEventClientboundChangeDifficultyClientboundClearTitlesClientboundCommandSuggestionsClientboundCommandsClientboundContainerCloseClientboundContainerSetContentClientboundContainerSetDataClientboundContainerSetSlotClientboundCooldownClientboundCustomChatCompletionsClientboundCustomPayloadClientboundDeleteChatClientboundDisconnectClientboundDisguisedChatClientboundEntityEventClientboundExplodeClientboundForgetLevelChunkClientboundGameEventClientboundHorseScreenOpenClientboundInitializeBorderClientboundKeepAliveClientboundLevelChunkWithLightClientboundLevelEventClientboundLevelParticlesClientboundLightUpdateClientboundLoginClientboundMapItemDataClientboundMerchantOffersClientboundMoveEntityPosClientboundMoveEntityPosRotClientboundMoveEntityRotClientboundMoveVehicleClientboundOpenBookClientboundOpenScreenClientboundOpenSignEditorClientboundPingClientboundPlaceGhostRecipeClientboundPlayerAbilitiesClientboundPlayerChatClientboundPlayerCombatEndClientboundPlayerCombatEnterClientboundPlayerCombatKillClientboundPlayerInfoRemoveClientboundPlayerInfoUpdateClientboundPlayerLookAtClientboundPlayerPositionClientboundRecipeClientboundRemoveEntitiesClientboundRemoveMobEffectClientboundResourcePackClientboundRespawnClientboundRotateHeadClientboundSectionBlocksUpdateClientboundSelectAdvancementsTabClientboundServerDataClientboundSetActionBarTextClientboundSetBorderCenterClientboundSetBorderLerpSizeClientboundSetBorderSizeClientboundSetBorderWarningDelayClientboundSetBorderWarningDistanceClientboundSetCameraClientboundSetCarriedItemClientboundSetChunkCacheCenterClientboundSetChunkCacheRadiusClientboundSetDefaultSpawnPositionClientboundSetDisplayObjectiveClientboundSetEntityDataClientboundSetEntityLinkClientboundSetEntityMotionClientboundSetEquipmentClientboundSetExperienceClientboundSetHealthClientboundSetObjectiveClientboundSetPassengersClientboundSetPlayerTeamClientboundSetScoreClientboundSetSimulationDistanceClientboundSetSubtitleTextClientboundSetTimeClientboundSetTitleTextClientboundSetTitlesAnimationClientboundSoundEntityClientboundSoundClientboundStopSoundClientboundSystemChatClientboundTabListClientboundTagQueryClientboundTakeItemEntityClientboundTeleportEntityClientboundUpdateAdvancementsClientboundUpdateAttributesClientboundUpdateEnabledFeaturesClientboundUpdateMobEffectClientboundUpdateRecipesClientboundUpdateTagsClientboundPacketIDGuard"
|
|
|
|
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}
|
|
|
|
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]]
|
|
}
|