Files
go-mc/data/packetid/packetid.go
2025-06-16 12:46:46 +08:00

286 lines
7.2 KiB
Go

package packetid
//go:generate stringer -type ClientboundPacketID
//go:generate stringer -type ServerboundPacketID
type (
ClientboundPacketID int32
ServerboundPacketID int32
)
// Login Clientbound
const (
ClientboundLoginLoginDisconnect ClientboundPacketID = iota
ClientboundLoginHello
ClientboundLoginLoginFinished
ClientboundLoginLoginCompression
ClientboundLoginCustomQuery
ClientboundLoginCookieRequest
)
// Login Serverbound
const (
ServerboundLoginHello ServerboundPacketID = iota
ServerboundLoginKey
ServerboundLoginCustomQueryAnswer
ServerboundLoginLoginAcknowledged
ServerboundLoginCookieResponse
)
// Status Clientbound
const (
ClientboundStatusStatusResponse ClientboundPacketID = iota
ClientboundStatusPongResponse
)
// Status Serverbound
const (
ServerboundStatusStatusRequest ServerboundPacketID = iota
ServerboundStatusPingRequest
)
// Configuration Clientbound
const (
ClientboundConfigCookieRequest ClientboundPacketID = iota
ClientboundConfigCustomPayload
ClientboundConfigDisconnect
ClientboundConfigFinishConfiguration
ClientboundConfigKeepAlive
ClientboundConfigPing
ClientboundConfigResetChat
ClientboundConfigRegistryData
ClientboundConfigResourcePackPop
ClientboundConfigResourcePackPush
ClientboundConfigStoreCookie
ClientboundConfigTransfer
ClientboundConfigUpdateEnabledFeatures
ClientboundConfigUpdateTags
ClientboundConfigSelectKnownPacks
ClientboundConfigCustomReportDetails
ClientboundConfigServerLinks
ClientboundConfigClearDialog
ClientboundConfigShowDialog
)
// Configuration Serverbound
const (
ServerboundConfigClientInformation ServerboundPacketID = iota
ServerboundConfigCookieResponse
ServerboundConfigCustomPayload
ServerboundConfigFinishConfiguration
ServerboundConfigKeepAlive
ServerboundConfigPong
ServerboundConfigResourcePack
ServerboundConfigSelectKnownPacks
ServerboundConfigCustomClickAction
)
// Game Clientbound
const (
BundleDelimiter ClientboundPacketID = iota
ClientboundAddEntity
ClientboundAnimate
ClientboundAwardStats
ClientboundBlockChangedAck
ClientboundBlockDestruction
ClientboundBlockEntityData
ClientboundBlockEvent
ClientboundBlockUpdate
ClientboundBossEvent
ClientboundChangeDifficulty
ClientboundChunkBatchFinished
ClientboundChunkBatchStart
ClientboundChunksBiomes
ClientboundClearTitles
ClientboundCommandSuggestions
ClientboundCommands
ClientboundContainerClose
ClientboundContainerSetContent
ClientboundContainerSetData
ClientboundContainerSetSlot
ClientboundCookieRequest
ClientboundCooldown
ClientboundCustomChatCompletions
ClientboundCustomPayload
ClientboundDamageEvent
ClientboundDebugSample
ClientboundDeleteChat
ClientboundDisconnect
ClientboundDisguisedChat
ClientboundEntityEvent
ClientboundEntityPositionSync
ClientboundExplode
ClientboundForgetLevelChunk
ClientboundGameEvent
ClientboundHorseScreenOpen
ClientboundHurtAnimation
ClientboundInitializeBorder
ClientboundKeepAlive
ClientboundLevelChunkWithLight
ClientboundLevelEvent
ClientboundLevelParticles
ClientboundLightUpdate
ClientboundLogin
ClientboundMapItemData
ClientboundMerchantOffers
ClientboundMoveEntityPos
ClientboundMoveEntityPosRot
ClientboundMoveMinecartAlongTrack
ClientboundMoveEntityRot
ClientboundMoveVehicle
ClientboundOpenBook
ClientboundOpenScreen
ClientboundOpenSignEditor
ClientboundPing
ClientboundPongResponse
ClientboundPlaceGhostRecipe
ClientboundPlayerAbilities
ClientboundPlayerChat
ClientboundPlayerCombatEnd
ClientboundPlayerCombatEnter
ClientboundPlayerCombatKill
ClientboundPlayerInfoRemove
ClientboundPlayerInfoUpdate
ClientboundPlayerLookAt
ClientboundPlayerPosition
ClientboundPlayerRotation
ClientboundRecipeBookAdd
ClientboundRecipeBookRemove
ClientboundRecipeBookSettings
ClientboundRemoveEntities
ClientboundRemoveMobEffect
ClientboundResetScore
ClientboundResourcePackPop
ClientboundResourcePackPush
ClientboundRespawn
ClientboundRotateHead
ClientboundSectionBlocksUpdate
ClientboundSelectAdvancementsTab
ClientboundServerData
ClientboundSetActionBarText
ClientboundSetBorderCenter
ClientboundSetBorderLerpSize
ClientboundSetBorderSize
ClientboundSetBorderWarningDelay
ClientboundSetBorderWarningDistance
ClientboundSetCamera
ClientboundSetChunkCacheCenter
ClientboundSetChunkCacheRadius
ClientboundSetCursorItem
ClientboundSetDefaultSpawnPosition
ClientboundSetDisplayObjective
ClientboundSetEntityData
ClientboundSetEntityLink
ClientboundSetEntityMotion
ClientboundSetEquipment
ClientboundSetExperience
ClientboundSetHealth
ClientboundSetHeldSlot
ClientboundSetObjective
ClientboundSetPassengers
ClientboundSetPlayerInventory
ClientboundSetPlayerTeam
ClientboundSetScore
ClientboundSetSimulationDistance
ClientboundSetSubtitleText
ClientboundSetTime
ClientboundSetTitleText
ClientboundSetTitlesAnimation
ClientboundSoundEntity
ClientboundSound
ClientboundStartConfiguration
ClientboundStopSound
ClientboundStoreCookie
ClientboundSystemChat
ClientboundTabList
ClientboundTagQuery
ClientboundTakeItemEntity
ClientboundTeleportEntity
ClientboundTestInstanceBlockStatus
ClientboundTickingState
ClientboundTickingStep
ClientboundTransfer
ClientboundUpdateAdvancements
ClientboundUpdateAttributes
ClientboundUpdateMobEffect
ClientboundUpdateRecipes
ClientboundUpdateTags
ClientboundProjectilePower
ClientboundCustomReportDetails
ClientboundServerLinks
ClientboundWaypoint
ClientboundClearDialog
ClientboundShowDialog
ClientboundPacketIDGuard
)
// Game Serverbound
const (
ServerboundAcceptTeleportation ServerboundPacketID = iota
ServerboundBlockEntityTagQuery
ServerboundBundleItemSelected
ServerboundChangeDifficulty
ServerboundChangeGameMode
ServerboundChatAck
ServerboundChatCommand
ServerboundChatCommandSigned
ServerboundChat
ServerboundChatSessionUpdate
ServerboundChunkBatchReceived
ServerboundClientCommand
ServerboundClientTickEnd
ServerboundClientInformation
ServerboundCommandSuggestion
ServerboundConfigurationAcknowledged
ServerboundContainerButtonClick
ServerboundContainerClick
ServerboundContainerClose
ServerboundContainerSlotStateChanged
ServerboundCookieResponse
ServerboundCustomPayload
ServerboundDebugSampleSubscription
ServerboundEditBook
ServerboundEntityTagQuery
ServerboundInteract
ServerboundJigsawGenerate
ServerboundKeepAlive
ServerboundLockDifficulty
ServerboundMovePlayerPos
ServerboundMovePlayerPosRot
ServerboundMovePlayerRot
ServerboundMovePlayerStatusOnly
ServerboundMoveVehicle
ServerboundPaddleBoat
ServerboundPickItemFromBlock
ServerboundPickItemFromEntity
ServerboundPingRequest
ServerboundPlaceRecipe
ServerboundPlayerAbilities
ServerboundPlayerAction
ServerboundPlayerCommand
ServerboundPlayerInput
ServerboundPlayerLoaded
ServerboundPong
ServerboundRecipeBookChangeSettings
ServerboundRecipeBookSeenRecipe
ServerboundRenameItem
ServerboundResourcePack
ServerboundSeenAdvancements
ServerboundSelectTrade
ServerboundSetBeacon
ServerboundSetCarriedItem
ServerboundSetCommandBlock
ServerboundSetCommandMinecart
ServerboundSetCreativeModeSlot
ServerboundSetJigsawBlock
ServerboundSetStructureBlock
ServerboundSetTestBlock
ServerboundSignUpdate
ServerboundSwing
ServerboundTeleportToEntity
ServerboundTestInstanceBlockAction
ServerboundUseItemOn
ServerboundUseItem
ServerboundCustomClickAction
ServerboundPacketIDGuard
)