157 lines
8.9 KiB
Go
157 lines
8.9 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[ClientboundLoginDisconnect-0]
|
|
_ = x[ClientboundLoginEncryptionRequest-1]
|
|
_ = x[ClientboundLoginSuccess-2]
|
|
_ = x[ClientboundLoginCompression-3]
|
|
_ = x[ClientboundLoginPluginRequest-4]
|
|
_ = x[ClientboundStatusResponse-0]
|
|
_ = x[ClientboundStatusPongResponse-1]
|
|
_ = x[ClientboundConfigCustomPayload-0]
|
|
_ = x[ClientboundConfigDisconnect-1]
|
|
_ = x[ClientboundConfigFinishConfiguration-2]
|
|
_ = x[ClientboundConfigKeepAlive-3]
|
|
_ = x[ClientboundConfigPing-4]
|
|
_ = x[ClientboundConfigRegistryData-5]
|
|
_ = x[ClientboundConfigResourcePack-6]
|
|
_ = x[ClientboundConfigUpdateEnabledFeatures-7]
|
|
_ = x[ClientboundConfigUpdateTags-8]
|
|
_ = x[BundleDelimiter-0]
|
|
_ = x[ClientboundAddEntity-1]
|
|
_ = x[ClientboundAddExperienceOrb-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[ClientboundChunkBatchFinished-12]
|
|
_ = x[ClientboundChunkBatchStart-13]
|
|
_ = x[ClientboundChunksBiomes-14]
|
|
_ = x[ClientboundClearTitles-15]
|
|
_ = x[ClientboundCommandSuggestions-16]
|
|
_ = x[ClientboundCommands-17]
|
|
_ = x[ClientboundContainerClose-18]
|
|
_ = x[ClientboundContainerSetContent-19]
|
|
_ = x[ClientboundContainerSetData-20]
|
|
_ = x[ClientboundContainerSetSlot-21]
|
|
_ = x[ClientboundCooldown-22]
|
|
_ = x[ClientboundCustomChatCompletions-23]
|
|
_ = x[ClientboundCustomPayload-24]
|
|
_ = x[ClientboundDamageEvent-25]
|
|
_ = x[ClientboundDeleteChat-26]
|
|
_ = x[ClientboundDisconnect-27]
|
|
_ = x[ClientboundDisguisedChat-28]
|
|
_ = x[ClientboundEntityEvent-29]
|
|
_ = x[ClientboundExplode-30]
|
|
_ = x[ClientboundForgetLevelChunk-31]
|
|
_ = x[ClientboundGameEvent-32]
|
|
_ = x[ClientboundHorseScreenOpen-33]
|
|
_ = x[ClientboundHurtAnimation-34]
|
|
_ = x[ClientboundInitializeBorder-35]
|
|
_ = x[ClientboundKeepAlive-36]
|
|
_ = x[ClientboundLevelChunkWithLight-37]
|
|
_ = x[ClientboundLevelEvent-38]
|
|
_ = x[ClientboundLevelParticles-39]
|
|
_ = x[ClientboundLightUpdate-40]
|
|
_ = x[ClientboundLogin-41]
|
|
_ = x[ClientboundMapItemData-42]
|
|
_ = x[ClientboundMerchantOffers-43]
|
|
_ = x[ClientboundMoveEntityPos-44]
|
|
_ = x[ClientboundMoveEntityPosRot-45]
|
|
_ = x[ClientboundMoveEntityRot-46]
|
|
_ = x[ClientboundMoveVehicle-47]
|
|
_ = x[ClientboundOpenBook-48]
|
|
_ = x[ClientboundOpenScreen-49]
|
|
_ = x[ClientboundOpenSignEditor-50]
|
|
_ = x[ClientboundPing-51]
|
|
_ = x[ClientboundPongResponse-52]
|
|
_ = x[ClientboundPlaceGhostRecipe-53]
|
|
_ = x[ClientboundPlayerAbilities-54]
|
|
_ = x[ClientboundPlayerChat-55]
|
|
_ = x[ClientboundPlayerCombatEnd-56]
|
|
_ = x[ClientboundPlayerCombatEnter-57]
|
|
_ = x[ClientboundPlayerCombatKill-58]
|
|
_ = x[ClientboundPlayerInfoRemove-59]
|
|
_ = x[ClientboundPlayerInfoUpdate-60]
|
|
_ = x[ClientboundPlayerLookAt-61]
|
|
_ = x[ClientboundPlayerPosition-62]
|
|
_ = x[ClientboundRecipe-63]
|
|
_ = x[ClientboundRemoveEntities-64]
|
|
_ = x[ClientboundRemoveMobEffect-65]
|
|
_ = x[ClientboundResetScore-66]
|
|
_ = x[ClientboundResourcePackPop-67]
|
|
_ = x[ClientboundResourcePackPush-68]
|
|
_ = x[ClientboundRespawn-69]
|
|
_ = x[ClientboundRotateHead-70]
|
|
_ = x[ClientboundSectionBlocksUpdate-71]
|
|
_ = x[ClientboundSelectAdvancementsTab-72]
|
|
_ = x[ClientboundServerData-73]
|
|
_ = x[ClientboundSetActionBarText-74]
|
|
_ = x[ClientboundSetBorderCenter-75]
|
|
_ = x[ClientboundSetBorderLerpSize-76]
|
|
_ = x[ClientboundSetBorderSize-77]
|
|
_ = x[ClientboundSetBorderWarningDelay-78]
|
|
_ = x[ClientboundSetBorderWarningDistance-79]
|
|
_ = x[ClientboundSetCamera-80]
|
|
_ = x[ClientboundSetCarriedItem-81]
|
|
_ = x[ClientboundSetChunkCacheCenter-82]
|
|
_ = x[ClientboundSetChunkCacheRadius-83]
|
|
_ = x[ClientboundSetDefaultSpawnPosition-84]
|
|
_ = x[ClientboundSetDisplayObjective-85]
|
|
_ = x[ClientboundSetEntityData-86]
|
|
_ = x[ClientboundSetEntityLink-87]
|
|
_ = x[ClientboundSetEntityMotion-88]
|
|
_ = x[ClientboundSetEquipment-89]
|
|
_ = x[ClientboundSetExperience-90]
|
|
_ = x[ClientboundSetHealth-91]
|
|
_ = x[ClientboundSetObjective-92]
|
|
_ = x[ClientboundSetPassengers-93]
|
|
_ = x[ClientboundSetPlayerTeam-94]
|
|
_ = x[ClientboundSetScore-95]
|
|
_ = x[ClientboundSetSimulationDistance-96]
|
|
_ = x[ClientboundSetSubtitleText-97]
|
|
_ = x[ClientboundSetTime-98]
|
|
_ = x[ClientboundSetTitleText-99]
|
|
_ = x[ClientboundSetTitlesAnimation-100]
|
|
_ = x[ClientboundSoundEntity-101]
|
|
_ = x[ClientboundSound-102]
|
|
_ = x[ClientboundStartConfiguration-103]
|
|
_ = x[ClientboundStopSound-104]
|
|
_ = x[ClientboundSystemChat-105]
|
|
_ = x[ClientboundTabList-106]
|
|
_ = x[ClientboundTagQuery-107]
|
|
_ = x[ClientboundTakeItemEntity-108]
|
|
_ = x[ClientboundTeleportEntity-109]
|
|
_ = x[ClientboundTickingState-110]
|
|
_ = x[ClientboundTickingStep-111]
|
|
_ = x[ClientboundUpdateAdvancements-112]
|
|
_ = x[ClientboundUpdateAttributes-113]
|
|
_ = x[ClientboundUpdateMobEffect-114]
|
|
_ = x[ClientboundUpdateRecipes-115]
|
|
_ = x[ClientboundUpdateTags-116]
|
|
_ = x[ClientboundPacketIDGuard-117]
|
|
}
|
|
|
|
const _ClientboundPacketID_name = "ClientboundLoginDisconnectClientboundLoginEncryptionRequestClientboundLoginSuccessClientboundLoginCompressionClientboundLoginPluginRequestClientboundConfigRegistryDataClientboundConfigResourcePackClientboundConfigUpdateEnabledFeaturesClientboundConfigUpdateTagsClientboundBlockUpdateClientboundBossEventClientboundChangeDifficultyClientboundChunkBatchFinishedClientboundChunkBatchStartClientboundChunksBiomesClientboundClearTitlesClientboundCommandSuggestionsClientboundCommandsClientboundContainerCloseClientboundContainerSetContentClientboundContainerSetDataClientboundContainerSetSlotClientboundCooldownClientboundCustomChatCompletionsClientboundCustomPayloadClientboundDamageEventClientboundDeleteChatClientboundDisconnectClientboundDisguisedChatClientboundEntityEventClientboundExplodeClientboundForgetLevelChunkClientboundGameEventClientboundHorseScreenOpenClientboundHurtAnimationClientboundInitializeBorderClientboundKeepAliveClientboundLevelChunkWithLightClientboundLevelEventClientboundLevelParticlesClientboundLightUpdateClientboundLoginClientboundMapItemDataClientboundMerchantOffersClientboundMoveEntityPosClientboundMoveEntityPosRotClientboundMoveEntityRotClientboundMoveVehicleClientboundOpenBookClientboundOpenScreenClientboundOpenSignEditorClientboundPingClientboundPongResponseClientboundPlaceGhostRecipeClientboundPlayerAbilitiesClientboundPlayerChatClientboundPlayerCombatEndClientboundPlayerCombatEnterClientboundPlayerCombatKillClientboundPlayerInfoRemoveClientboundPlayerInfoUpdateClientboundPlayerLookAtClientboundPlayerPositionClientboundRecipeClientboundRemoveEntitiesClientboundRemoveMobEffectClientboundResetScoreClientboundResourcePackPopClientboundResourcePackPushClientboundRespawnClientboundRotateHeadClientboundSectionBlocksUpdateClientboundSelectAdvancementsTabClientboundServerDataClientboundSetActionBarTextClientboundSetBorderCenterClientboundSetBorderLerpSizeClientboundSetBorderSizeClientboundSetBorderWarningDelayClientboundSetBorderWarningDistanceClientboundSetCameraClientboundSetCarriedItemClientboundSetChunkCacheCenterClientboundSetChunkCacheRadiusClientboundSetDefaultSpawnPositionClientboundSetDisplayObjectiveClientboundSetEntityDataClientboundSetEntityLinkClientboundSetEntityMotionClientboundSetEquipmentClientboundSetExperienceClientboundSetHealthClientboundSetObjectiveClientboundSetPassengersClientboundSetPlayerTeamClientboundSetScoreClientboundSetSimulationDistanceClientboundSetSubtitleTextClientboundSetTimeClientboundSetTitleTextClientboundSetTitlesAnimationClientboundSoundEntityClientboundSoundClientboundStartConfigurationClientboundStopSoundClientboundSystemChatClientboundTabListClientboundTagQueryClientboundTakeItemEntityClientboundTeleportEntityClientboundTickingStateClientboundTickingStepClientboundUpdateAdvancementsClientboundUpdateAttributesClientboundUpdateMobEffectClientboundUpdateRecipesClientboundUpdateTagsClientboundPacketIDGuard"
|
|
|
|
var _ClientboundPacketID_index = [...]uint16{0, 26, 59, 82, 109, 138, 167, 196, 234, 261, 283, 303, 330, 359, 385, 408, 430, 459, 478, 503, 533, 560, 587, 606, 638, 662, 684, 705, 726, 750, 772, 790, 817, 837, 863, 887, 914, 934, 964, 985, 1010, 1032, 1048, 1070, 1095, 1119, 1146, 1170, 1192, 1211, 1232, 1257, 1272, 1295, 1322, 1348, 1369, 1395, 1423, 1450, 1477, 1504, 1527, 1552, 1569, 1594, 1620, 1641, 1667, 1694, 1712, 1733, 1763, 1795, 1816, 1843, 1869, 1897, 1921, 1953, 1988, 2008, 2033, 2063, 2093, 2127, 2157, 2181, 2205, 2231, 2254, 2278, 2298, 2321, 2345, 2369, 2388, 2420, 2446, 2464, 2487, 2516, 2538, 2554, 2583, 2603, 2624, 2642, 2661, 2686, 2711, 2734, 2756, 2785, 2812, 2838, 2862, 2883, 2907}
|
|
|
|
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]]
|
|
}
|