135 lines
7.8 KiB
Go
135 lines
7.8 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[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]
|
|
_ = x[ClientboundPacketIDGuard-111]
|
|
}
|
|
|
|
const _ClientboundPacketID_name = "BundleDelimiterClientboundAddEntityClientboundAddExperienceOrbClientboundAddPlayerClientboundAnimateClientboundAwardStatsClientboundBlockChangedAckClientboundBlockDestructionClientboundBlockEntityDataClientboundBlockEventClientboundBlockUpdateClientboundBossEventClientboundChangeDifficultyClientboundChunksBiomesClientboundClearTitlesClientboundCommandSuggestionsClientboundCommandsClientboundContainerCloseClientboundContainerSetContentClientboundContainerSetDataClientboundContainerSetSlotClientboundCooldownClientboundCustomChatCompletionsClientboundCustomPayloadClientboundDamageEventClientboundDeleteChatClientboundDisconnectClientboundDisguisedChatClientboundEntityEventClientboundExplodeClientboundForgetLevelChunkClientboundGameEventClientboundHorseScreenOpenClientboundHurtAnimationClientboundInitializeBorderClientboundKeepAliveClientboundLevelChunkWithLightClientboundLevelEventClientboundLevelParticlesClientboundLightUpdateClientboundLoginClientboundMapItemDataClientboundMerchantOffersClientboundMoveEntityPosClientboundMoveEntityPosRotClientboundMoveEntityRotClientboundMoveVehicleClientboundOpenBookClientboundOpenScreenClientboundOpenSignEditorClientboundPingClientboundPlaceGhostRecipeClientboundPlayerAbilitiesClientboundPlayerChatClientboundPlayerCombatEndClientboundPlayerCombatEnterClientboundPlayerCombatKillClientboundPlayerInfoRemoveClientboundPlayerInfoUpdateClientboundPlayerLookAtClientboundPlayerPositionClientboundRecipeClientboundRemoveEntitiesClientboundRemoveMobEffectClientboundResourcePackClientboundRespawnClientboundRotateHeadClientboundSectionBlocksUpdateClientboundSelectAdvancementsTabClientboundServerDataClientboundSetActionBarTextClientboundSetBorderCenterClientboundSetBorderLerpSizeClientboundSetBorderSizeClientboundSetBorderWarningDelayClientboundSetBorderWarningDistanceClientboundSetCameraClientboundSetCarriedItemClientboundSetChunkCacheCenterClientboundSetChunkCacheRadiusClientboundSetDefaultSpawnPositionClientboundSetDisplayObjectiveClientboundSetEntityDataClientboundSetEntityLinkClientboundSetEntityMotionClientboundSetEquipmentClientboundSetExperienceClientboundSetHealthClientboundSetObjectiveClientboundSetPassengersClientboundSetPlayerTeamClientboundSetScoreClientboundSetSimulationDistanceClientboundSetSubtitleTextClientboundSetTimeClientboundSetTitleTextClientboundSetTitlesAnimationClientboundSoundEntityClientboundSoundClientboundStopSoundClientboundSystemChatClientboundTabListClientboundTagQueryClientboundTakeItemEntityClientboundTeleportEntityClientboundUpdateAdvancementsClientboundUpdateAttributesClientboundUpdateEnabledFeaturesClientboundUpdateMobEffectClientboundUpdateRecipesClientboundUpdateTagsClientboundPacketIDGuard"
|
|
|
|
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, 2696}
|
|
|
|
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]]
|
|
}
|