136 lines
7.9 KiB
Go
136 lines
7.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[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[ClientboundResourcePack-66]
|
|
_ = x[ClientboundRespawn-67]
|
|
_ = x[ClientboundRotateHead-68]
|
|
_ = x[ClientboundSectionBlocksUpdate-69]
|
|
_ = x[ClientboundSelectAdvancementsTab-70]
|
|
_ = x[ClientboundServerData-71]
|
|
_ = x[ClientboundSetActionBarText-72]
|
|
_ = x[ClientboundSetBorderCenter-73]
|
|
_ = x[ClientboundSetBorderLerpSize-74]
|
|
_ = x[ClientboundSetBorderSize-75]
|
|
_ = x[ClientboundSetBorderWarningDelay-76]
|
|
_ = x[ClientboundSetBorderWarningDistance-77]
|
|
_ = x[ClientboundSetCamera-78]
|
|
_ = x[ClientboundSetCarriedItem-79]
|
|
_ = x[ClientboundSetChunkCacheCenter-80]
|
|
_ = x[ClientboundSetChunkCacheRadius-81]
|
|
_ = x[ClientboundSetDefaultSpawnPosition-82]
|
|
_ = x[ClientboundSetDisplayObjective-83]
|
|
_ = x[ClientboundSetEntityData-84]
|
|
_ = x[ClientboundSetEntityLink-85]
|
|
_ = x[ClientboundSetEntityMotion-86]
|
|
_ = x[ClientboundSetEquipment-87]
|
|
_ = x[ClientboundSetExperience-88]
|
|
_ = x[ClientboundSetHealth-89]
|
|
_ = x[ClientboundSetObjective-90]
|
|
_ = x[ClientboundSetPassengers-91]
|
|
_ = x[ClientboundSetPlayerTeam-92]
|
|
_ = x[ClientboundSetScore-93]
|
|
_ = x[ClientboundSetSimulationDistance-94]
|
|
_ = x[ClientboundSetSubtitleText-95]
|
|
_ = x[ClientboundSetTime-96]
|
|
_ = x[ClientboundSetTitleText-97]
|
|
_ = x[ClientboundSetTitlesAnimation-98]
|
|
_ = x[ClientboundSoundEntity-99]
|
|
_ = x[ClientboundSound-100]
|
|
_ = x[ClientboundStartConfiguration-101]
|
|
_ = x[ClientboundStopSound-102]
|
|
_ = x[ClientboundSystemChat-103]
|
|
_ = x[ClientboundTabList-104]
|
|
_ = x[ClientboundTagQuery-105]
|
|
_ = x[ClientboundTakeItemEntity-106]
|
|
_ = x[ClientboundTeleportEntity-107]
|
|
_ = x[ClientboundUpdateAdvancements-108]
|
|
_ = x[ClientboundUpdateAttributes-109]
|
|
_ = x[ClientboundUpdateMobEffect-110]
|
|
_ = x[ClientboundUpdateRecipes-111]
|
|
_ = x[ClientboundUpdateTags-112]
|
|
}
|
|
|
|
const _ClientboundPacketID_name = "BundleDelimiterClientboundAddEntityClientboundAddExperienceOrbClientboundAnimateClientboundAwardStatsClientboundBlockChangedAckClientboundBlockDestructionClientboundBlockEntityDataClientboundBlockEventClientboundBlockUpdateClientboundBossEventClientboundChangeDifficultyClientboundChunkBatchFinishedClientboundChunkBatchStartClientboundChunksBiomesClientboundClearTitlesClientboundCommandSuggestionsClientboundCommandsClientboundContainerCloseClientboundContainerSetContentClientboundContainerSetDataClientboundContainerSetSlotClientboundCooldownClientboundCustomChatCompletionsClientboundCustomPayloadClientboundDamageEventClientboundDeleteChatClientboundDisconnectClientboundDisguisedChatClientboundEntityEventClientboundExplodeClientboundForgetLevelChunkClientboundGameEventClientboundHorseScreenOpenClientboundHurtAnimationClientboundInitializeBorderClientboundKeepAliveClientboundLevelChunkWithLightClientboundLevelEventClientboundLevelParticlesClientboundLightUpdateClientboundLoginClientboundMapItemDataClientboundMerchantOffersClientboundMoveEntityPosClientboundMoveEntityPosRotClientboundMoveEntityRotClientboundMoveVehicleClientboundOpenBookClientboundOpenScreenClientboundOpenSignEditorClientboundPingClientboundPongResponseClientboundPlaceGhostRecipeClientboundPlayerAbilitiesClientboundPlayerChatClientboundPlayerCombatEndClientboundPlayerCombatEnterClientboundPlayerCombatKillClientboundPlayerInfoRemoveClientboundPlayerInfoUpdateClientboundPlayerLookAtClientboundPlayerPositionClientboundRecipeClientboundRemoveEntitiesClientboundRemoveMobEffectClientboundResourcePackClientboundRespawnClientboundRotateHeadClientboundSectionBlocksUpdateClientboundSelectAdvancementsTabClientboundServerDataClientboundSetActionBarTextClientboundSetBorderCenterClientboundSetBorderLerpSizeClientboundSetBorderSizeClientboundSetBorderWarningDelayClientboundSetBorderWarningDistanceClientboundSetCameraClientboundSetCarriedItemClientboundSetChunkCacheCenterClientboundSetChunkCacheRadiusClientboundSetDefaultSpawnPositionClientboundSetDisplayObjectiveClientboundSetEntityDataClientboundSetEntityLinkClientboundSetEntityMotionClientboundSetEquipmentClientboundSetExperienceClientboundSetHealthClientboundSetObjectiveClientboundSetPassengersClientboundSetPlayerTeamClientboundSetScoreClientboundSetSimulationDistanceClientboundSetSubtitleTextClientboundSetTimeClientboundSetTitleTextClientboundSetTitlesAnimationClientboundSoundEntityClientboundSoundClientboundStartConfigurationClientboundStopSoundClientboundSystemChatClientboundTabListClientboundTagQueryClientboundTakeItemEntityClientboundTeleportEntityClientboundUpdateAdvancementsClientboundUpdateAttributesClientboundUpdateMobEffectClientboundUpdateRecipesClientboundUpdateTags"
|
|
|
|
var _ClientboundPacketID_index = [...]uint16{0, 15, 35, 62, 80, 101, 127, 154, 180, 201, 223, 243, 270, 299, 325, 348, 370, 399, 418, 443, 473, 500, 527, 546, 578, 602, 624, 645, 666, 690, 712, 730, 757, 777, 803, 827, 854, 874, 904, 925, 950, 972, 988, 1010, 1035, 1059, 1086, 1110, 1132, 1151, 1172, 1197, 1212, 1235, 1262, 1288, 1309, 1335, 1363, 1390, 1417, 1444, 1467, 1492, 1509, 1534, 1560, 1583, 1601, 1622, 1652, 1684, 1705, 1732, 1758, 1786, 1810, 1842, 1877, 1897, 1922, 1952, 1982, 2016, 2046, 2070, 2094, 2120, 2143, 2167, 2187, 2210, 2234, 2258, 2277, 2309, 2335, 2353, 2376, 2405, 2427, 2443, 2472, 2492, 2513, 2531, 2550, 2575, 2600, 2629, 2656, 2682, 2706, 2727}
|
|
|
|
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]]
|
|
}
|