packetid

package
v0.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LoginDisconnect = iota
	LoginEncryptionRequest
	LoginSuccess
	LoginCompression
	LoginPluginRequest
)

Login Clientbound

View Source
const (
	LoginStart = iota
	LoginEncryptionResponse
	LoginPluginResponse
)

Login Serverbound

View Source
const (
	StatusResponse = iota
	StatusPongResponse
)

Status Clientbound

View Source
const (
	StatusRequest = iota
	StatusPingRequest
)

Status Serverbound

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientboundPacketID

type ClientboundPacketID int32
const (
	ClientboundLoginDisconnect        ClientboundPacketID = iota // LoginDisconnect
	ClientboundLoginEncryptionRequest                            // Hello
	ClientboundLoginSuccess                                      // GameProfile
	ClientboundLoginCompression                                  // LoginCompression
	ClientboundLoginPluginRequest                                // CustomQuery
)

Login Clientbound

const (
	ClientboundStatusResponse ClientboundPacketID = iota
	ClientboundStatusPongResponse
)

Status Clientbound

const (
	ClientboundConfigCustomPayload ClientboundPacketID = iota
	ClientboundConfigDisconnect
	ClientboundConfigFinishConfiguration
	ClientboundConfigKeepAlive
	ClientboundConfigPing
	ClientboundConfigRegistryData
	ClientboundConfigResourcePack
	ClientboundConfigUpdateEnabledFeatures
	ClientboundConfigUpdateTags
)

Configuration Clientbound

const (
	BundleDelimiter ClientboundPacketID = iota
	ClientboundAddEntity
	ClientboundAddExperienceOrb
	ClientboundAnimate
	ClientboundAwardStats
	ClientboundBlockChangedAck
	ClientboundBlockDestruction
	ClientboundBlockEntityData
	ClientboundBlockEvent
	ClientboundBlockUpdate
	ClientboundBossEvent
	ClientboundChangeDifficulty
	ClientboundChunkBatchFinished
	ClientboundChunkBatchStart
	ClientboundChunksBiomes
	ClientboundClearTitles
	ClientboundCommandSuggestions
	ClientboundCommands
	ClientboundContainerClose
	ClientboundContainerSetContent
	ClientboundContainerSetData
	ClientboundContainerSetSlot
	ClientboundCooldown
	ClientboundCustomChatCompletions
	ClientboundCustomPayload
	ClientboundDamageEvent
	ClientboundDeleteChat
	ClientboundDisconnect
	ClientboundDisguisedChat
	ClientboundEntityEvent
	ClientboundExplode
	ClientboundForgetLevelChunk
	ClientboundGameEvent
	ClientboundHorseScreenOpen
	ClientboundHurtAnimation
	ClientboundInitializeBorder
	ClientboundKeepAlive
	ClientboundLevelChunkWithLight
	ClientboundLevelEvent
	ClientboundLevelParticles
	ClientboundLightUpdate
	ClientboundLogin
	ClientboundMapItemData
	ClientboundMerchantOffers
	ClientboundMoveEntityPos
	ClientboundMoveEntityPosRot
	ClientboundMoveEntityRot
	ClientboundMoveVehicle
	ClientboundOpenBook
	ClientboundOpenScreen
	ClientboundOpenSignEditor
	ClientboundPing
	ClientboundPongResponse
	ClientboundPlaceGhostRecipe
	ClientboundPlayerAbilities
	ClientboundPlayerChat
	ClientboundPlayerCombatEnd
	ClientboundPlayerCombatEnter
	ClientboundPlayerCombatKill
	ClientboundPlayerInfoRemove
	ClientboundPlayerInfoUpdate
	ClientboundPlayerLookAt
	ClientboundPlayerPosition
	ClientboundRecipe
	ClientboundRemoveEntities
	ClientboundRemoveMobEffect
	ClientboundResourcePack
	ClientboundRespawn
	ClientboundRotateHead
	ClientboundSectionBlocksUpdate
	ClientboundSelectAdvancementsTab
	ClientboundServerData
	ClientboundSetActionBarText
	ClientboundSetBorderCenter
	ClientboundSetBorderLerpSize
	ClientboundSetBorderSize
	ClientboundSetBorderWarningDelay
	ClientboundSetBorderWarningDistance
	ClientboundSetCamera
	ClientboundSetCarriedItem
	ClientboundSetChunkCacheCenter
	ClientboundSetChunkCacheRadius
	ClientboundSetDefaultSpawnPosition
	ClientboundSetDisplayObjective
	ClientboundSetEntityData
	ClientboundSetEntityLink
	ClientboundSetEntityMotion
	ClientboundSetEquipment
	ClientboundSetExperience
	ClientboundSetHealth
	ClientboundSetObjective
	ClientboundSetPassengers
	ClientboundSetPlayerTeam
	ClientboundSetScore
	ClientboundSetSimulationDistance
	ClientboundSetSubtitleText
	ClientboundSetTime
	ClientboundSetTitleText
	ClientboundSetTitlesAnimation
	ClientboundSoundEntity
	ClientboundSound
	ClientboundStartConfiguration
	ClientboundStopSound
	ClientboundSystemChat
	ClientboundTabList
	ClientboundTagQuery
	ClientboundTakeItemEntity
	ClientboundTeleportEntity
	ClientboundUpdateAdvancements
	ClientboundUpdateAttributes
	ClientboundUpdateMobEffect
	ClientboundUpdateRecipes
	ClientboundUpdateTags
	ClientboundPacketIDGuard
)

Game Clientbound

func (ClientboundPacketID) String

func (i ClientboundPacketID) String() string

type ServerboundPacketID

type ServerboundPacketID int32
const (
	ServerboundLoginStart              ServerboundPacketID = iota // Hello
	ServerboundLoginEncryptionResponse                            // Key
	ServerboundLoginPluginResponse                                // CustomQueryAnswer
	ServerboundLoginAcknowledged                                  // LoginAcknowledged
)

Login Serverbound

const (
	ServerboundStatusRequest ServerboundPacketID = iota
	ServerboundStatusPingRequest
)

Status Serverbound

const (
	ServerboundConfigClientInformation ServerboundPacketID = iota
	ServerboundConfigCustomPayload
	ServerboundConfigFinishConfiguration
	ServerboundConfigKeepAlive
	ServerboundConfigPong
	ServerboundConfigResourcePack
)

Configuration Serverbound

const (
	ServerboundAcceptTeleportation ServerboundPacketID = iota
	ServerboundBlockEntityTagQuery
	ServerboundChangeDifficulty
	ServerboundChatAck
	ServerboundChatCommand
	ServerboundChat
	ServerboundChatSessionUpdate
	ServerboundChunkBatchReceived
	ServerboundClientCommand
	ServerboundClientInformation
	ServerboundCommandSuggestion
	ServerboundConfigurationAcknowledged
	ServerboundContainerButtonClick
	ServerboundContainerClick
	ServerboundContainerClose
	ServerboundCustomPayload
	ServerboundEditBook
	ServerboundEntityTagQuery
	ServerboundInteract
	ServerboundJigsawGenerate
	ServerboundKeepAlive
	ServerboundLockDifficulty
	ServerboundMovePlayerPos
	ServerboundMovePlayerPosRot
	ServerboundMovePlayerRot
	ServerboundMovePlayerStatusOnly
	ServerboundMoveVehicle
	ServerboundPaddleBoat
	ServerboundPickItem
	ServerboundPingRequest
	ServerboundPlaceRecipe
	ServerboundPlayerAbilities
	ServerboundPlayerAction
	ServerboundPlayerCommand
	ServerboundPlayerInput
	ServerboundPong
	ServerboundRecipeBookChangeSettings
	ServerboundRecipeBookSeenRecipe
	ServerboundRenameItem
	ServerboundResourcePack
	ServerboundSeenAdvancements
	ServerboundSelectTrade
	ServerboundSetBeacon
	ServerboundSetCarriedItem
	ServerboundSetCommandBlock
	ServerboundSetCommandMinecart
	ServerboundSetCreativeModeSlot
	ServerboundSetJigsawBlock
	ServerboundSetStructureBlock
	ServerboundSignUpdate
	ServerboundSwing
	ServerboundTeleportToEntity
	ServerboundUseItemOn
	ServerboundUseItem
	ServerboundPacketIDGuard
)

Game Serverbound

func (ServerboundPacketID) String

func (i ServerboundPacketID) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL