Documentation
¶
Index ¶
- Constants
- Variables
- type BossEventActionAddData
- type BossEventActionEnum
- type BossEventActionUpdateFlagsData
- type BossEventActionUpdateHealthData
- type BossEventActionUpdateStyleData
- type BossEventActionUpdateTitleData
- type C2SAcceptCodeOfConduct
- type C2SAcceptTeleportation
- type C2SBlockEntityTagQuery
- type C2SBundleItemSelected
- type C2SChangeDifficulty
- type C2SChangeGameMode
- type C2SChat
- type C2SChatAck
- type C2SChatCommand
- type C2SChatCommandSigned
- type C2SChatSessionUpdate
- type C2SChunkBatchReceived
- type C2SClientCommand
- type C2SClientInformationConfiguration
- func (p *C2SClientInformationConfiguration) Bound() jp.Bound
- func (p *C2SClientInformationConfiguration) ID() ns.VarInt
- func (p *C2SClientInformationConfiguration) Read(buf *ns.PacketBuffer) error
- func (p *C2SClientInformationConfiguration) State() jp.State
- func (p *C2SClientInformationConfiguration) Write(buf *ns.PacketBuffer) error
- type C2SClientInformationPlay
- type C2SClientTickEnd
- type C2SCommandSuggestion
- type C2SConfigurationAcknowledged
- func (p *C2SConfigurationAcknowledged) Bound() jp.Bound
- func (p *C2SConfigurationAcknowledged) ID() ns.VarInt
- func (p *C2SConfigurationAcknowledged) Read(*ns.PacketBuffer) error
- func (p *C2SConfigurationAcknowledged) State() jp.State
- func (p *C2SConfigurationAcknowledged) Write(*ns.PacketBuffer) error
- type C2SContainerButtonClick
- type C2SContainerClick
- type C2SContainerClose
- type C2SContainerSlotStateChanged
- func (p *C2SContainerSlotStateChanged) Bound() jp.Bound
- func (p *C2SContainerSlotStateChanged) ID() ns.VarInt
- func (p *C2SContainerSlotStateChanged) Read(buf *ns.PacketBuffer) error
- func (p *C2SContainerSlotStateChanged) State() jp.State
- func (p *C2SContainerSlotStateChanged) Write(buf *ns.PacketBuffer) error
- type C2SCookieResponseConfiguration
- func (p *C2SCookieResponseConfiguration) Bound() jp.Bound
- func (p *C2SCookieResponseConfiguration) ID() ns.VarInt
- func (p *C2SCookieResponseConfiguration) Read(buf *ns.PacketBuffer) error
- func (p *C2SCookieResponseConfiguration) State() jp.State
- func (p *C2SCookieResponseConfiguration) Write(buf *ns.PacketBuffer) error
- type C2SCookieResponseLogin
- type C2SCookieResponsePlay
- type C2SCustomClickActionConfiguration
- func (p *C2SCustomClickActionConfiguration) Bound() jp.Bound
- func (p *C2SCustomClickActionConfiguration) ID() ns.VarInt
- func (p *C2SCustomClickActionConfiguration) Read(buf *ns.PacketBuffer) error
- func (p *C2SCustomClickActionConfiguration) State() jp.State
- func (p *C2SCustomClickActionConfiguration) Write(buf *ns.PacketBuffer) error
- type C2SCustomClickActionPlay
- type C2SCustomPayloadConfiguration
- func (p *C2SCustomPayloadConfiguration) Bound() jp.Bound
- func (p *C2SCustomPayloadConfiguration) ID() ns.VarInt
- func (p *C2SCustomPayloadConfiguration) Read(buf *ns.PacketBuffer) error
- func (p *C2SCustomPayloadConfiguration) State() jp.State
- func (p *C2SCustomPayloadConfiguration) Write(buf *ns.PacketBuffer) error
- type C2SCustomPayloadPlay
- type C2SCustomQueryAnswer
- type C2SDebugSubscriptionRequest
- func (p *C2SDebugSubscriptionRequest) Bound() jp.Bound
- func (p *C2SDebugSubscriptionRequest) ID() ns.VarInt
- func (p *C2SDebugSubscriptionRequest) Read(buf *ns.PacketBuffer) error
- func (p *C2SDebugSubscriptionRequest) State() jp.State
- func (p *C2SDebugSubscriptionRequest) Write(buf *ns.PacketBuffer) error
- type C2SEditBook
- type C2SEntityTagQuery
- type C2SFinishConfiguration
- type C2SHello
- type C2SIntention
- type C2SInteract
- type C2SJigsawGenerate
- type C2SKeepAliveConfiguration
- type C2SKeepAlivePlay
- type C2SKey
- type C2SLockDifficulty
- type C2SLoginAcknowledged
- type C2SMovePlayerPos
- type C2SMovePlayerPosRot
- type C2SMovePlayerRot
- type C2SMovePlayerStatusOnly
- type C2SMoveVehicle
- type C2SPaddleBoat
- type C2SPickItemFromBlock
- type C2SPickItemFromEntity
- type C2SPingRequestPlay
- type C2SPingRequestStatus
- type C2SPlaceRecipe
- type C2SPlayerAbilities
- type C2SPlayerAction
- type C2SPlayerCommand
- type C2SPlayerInput
- type C2SPlayerLoaded
- type C2SPongConfiguration
- type C2SPongPlay
- type C2SRecipeBookChangeSettings
- func (p *C2SRecipeBookChangeSettings) Bound() jp.Bound
- func (p *C2SRecipeBookChangeSettings) ID() ns.VarInt
- func (p *C2SRecipeBookChangeSettings) Read(buf *ns.PacketBuffer) error
- func (p *C2SRecipeBookChangeSettings) State() jp.State
- func (p *C2SRecipeBookChangeSettings) Write(buf *ns.PacketBuffer) error
- type C2SRecipeBookSeenRecipe
- type C2SRenameItem
- type C2SResourcePackConfiguration
- func (p *C2SResourcePackConfiguration) Bound() jp.Bound
- func (p *C2SResourcePackConfiguration) ID() ns.VarInt
- func (p *C2SResourcePackConfiguration) Read(buf *ns.PacketBuffer) error
- func (p *C2SResourcePackConfiguration) State() jp.State
- func (p *C2SResourcePackConfiguration) Write(buf *ns.PacketBuffer) error
- type C2SResourcePackPlay
- type C2SSeenAdvancements
- type C2SSelectKnownPacks
- type C2SSelectTrade
- type C2SSetBeacon
- type C2SSetCarriedItem
- type C2SSetCommandBlock
- type C2SSetCommandMinecart
- type C2SSetCreativeModeSlot
- type C2SSetJigsawBlock
- type C2SSetStructureBlock
- type C2SSetTestBlock
- type C2SSignUpdate
- type C2SStatusRequest
- type C2SSwing
- type C2STeleportToEntity
- type C2STestInstanceBlockAction
- func (p *C2STestInstanceBlockAction) Bound() jp.Bound
- func (p *C2STestInstanceBlockAction) ID() ns.VarInt
- func (p *C2STestInstanceBlockAction) Read(buf *ns.PacketBuffer) error
- func (p *C2STestInstanceBlockAction) State() jp.State
- func (p *C2STestInstanceBlockAction) Write(buf *ns.PacketBuffer) error
- type C2SUseItem
- type C2SUseItemOn
- type ChangedSlot
- type ChatTypeBound
- type CustomReportDetail
- type FilterMask
- type FilterMaskType
- type GameProfile
- type GameProfileProperty
- type KnownPack
- type LastSeenMessagesPacked
- type MessageSignature
- type MessageSignaturePacked
- type PacketFactory
- type RegistryEntry
- type S2CAddEntity
- type S2CAnimate
- type S2CAwardStats
- type S2CBlockChangedAck
- type S2CBlockDestruction
- type S2CBlockEntityData
- type S2CBlockEvent
- type S2CBlockUpdate
- type S2CBossEvent
- func (p *S2CBossEvent) Bound() jp.Bound
- func (p *S2CBossEvent) DataActionAdd() (BossEventActionAddData, error)
- func (p *S2CBossEvent) DataActionUpdateFlags() (BossEventActionUpdateFlagsData, error)
- func (p *S2CBossEvent) DataActionUpdateHealth() (BossEventActionUpdateHealthData, error)
- func (p *S2CBossEvent) DataActionUpdateStyle() (BossEventActionUpdateStyleData, error)
- func (p *S2CBossEvent) DataActionUpdateTitle() (BossEventActionUpdateTitleData, error)
- func (p *S2CBossEvent) ID() ns.VarInt
- func (p *S2CBossEvent) Read(buf *ns.PacketBuffer) error
- func (p *S2CBossEvent) State() jp.State
- func (p *S2CBossEvent) Write(buf *ns.PacketBuffer) error
- type S2CBundleDelimiter
- type S2CChangeDifficulty
- type S2CChunkBatchFinished
- type S2CChunkBatchStart
- type S2CChunksBiomes
- type S2CClearDialogConfiguration
- type S2CClearDialogPlay
- type S2CClearTitles
- type S2CCodeOfConduct
- type S2CCommandSuggestions
- type S2CCommands
- type S2CContainerClose
- type S2CContainerSetContent
- type S2CContainerSetData
- type S2CContainerSetSlot
- type S2CCookieRequestConfiguration
- func (p *S2CCookieRequestConfiguration) Bound() jp.Bound
- func (p *S2CCookieRequestConfiguration) ID() ns.VarInt
- func (p *S2CCookieRequestConfiguration) Read(buf *ns.PacketBuffer) error
- func (p *S2CCookieRequestConfiguration) State() jp.State
- func (p *S2CCookieRequestConfiguration) Write(buf *ns.PacketBuffer) error
- type S2CCookieRequestLogin
- type S2CCookieRequestPlay
- type S2CCooldown
- type S2CCustomChatCompletions
- type S2CCustomPayloadConfiguration
- func (p *S2CCustomPayloadConfiguration) Bound() jp.Bound
- func (p *S2CCustomPayloadConfiguration) ID() ns.VarInt
- func (p *S2CCustomPayloadConfiguration) Read(buf *ns.PacketBuffer) error
- func (p *S2CCustomPayloadConfiguration) State() jp.State
- func (p *S2CCustomPayloadConfiguration) Write(buf *ns.PacketBuffer) error
- type S2CCustomPayloadPlay
- type S2CCustomQuery
- type S2CCustomReportDetailsConfiguration
- func (p *S2CCustomReportDetailsConfiguration) Bound() jp.Bound
- func (p *S2CCustomReportDetailsConfiguration) ID() ns.VarInt
- func (p *S2CCustomReportDetailsConfiguration) Read(buf *ns.PacketBuffer) error
- func (p *S2CCustomReportDetailsConfiguration) State() jp.State
- func (p *S2CCustomReportDetailsConfiguration) Write(buf *ns.PacketBuffer) error
- type S2CCustomReportDetailsPlay
- func (p *S2CCustomReportDetailsPlay) Bound() jp.Bound
- func (p *S2CCustomReportDetailsPlay) ID() ns.VarInt
- func (p *S2CCustomReportDetailsPlay) Read(buf *ns.PacketBuffer) error
- func (p *S2CCustomReportDetailsPlay) State() jp.State
- func (p *S2CCustomReportDetailsPlay) Write(buf *ns.PacketBuffer) error
- type S2CDamageEvent
- type S2CDebugBlockValue
- type S2CDebugChunkValue
- type S2CDebugEntityValue
- type S2CDebugEvent
- type S2CDebugSample
- type S2CDeleteChat
- type S2CDisconnectConfiguration
- func (p *S2CDisconnectConfiguration) Bound() jp.Bound
- func (p *S2CDisconnectConfiguration) ID() ns.VarInt
- func (p *S2CDisconnectConfiguration) Read(buf *ns.PacketBuffer) error
- func (p *S2CDisconnectConfiguration) State() jp.State
- func (p *S2CDisconnectConfiguration) Write(buf *ns.PacketBuffer) error
- type S2CDisconnectPlay
- type S2CDisguisedChat
- type S2CEntityEvent
- type S2CEntityPositionSync
- type S2CExplode
- type S2CFinishConfiguration
- type S2CForgetLevelChunk
- type S2CGameEvent
- type S2CGameTestHighlightPos
- type S2CHello
- type S2CHurtAnimation
- type S2CInitializeBorder
- type S2CKeepAliveConfiguration
- type S2CKeepAlivePlay
- type S2CLevelChunkWithLight
- type S2CLevelEvent
- type S2CLevelParticles
- type S2CLightUpdate
- type S2CLogin
- type S2CLoginCompression
- type S2CLoginDisconnectLogin
- type S2CLoginFinished
- type S2CMapItemData
- type S2CMerchantOffers
- type S2CMountScreenOpen
- type S2CMoveEntityPos
- type S2CMoveEntityPosRot
- type S2CMoveEntityRot
- type S2CMoveMinecartAlongTrack
- type S2CMoveVehicle
- type S2COpenBook
- type S2COpenScreen
- type S2COpenSignEditor
- type S2CPingConfiguration
- type S2CPingPlay
- type S2CPlaceGhostRecipe
- type S2CPlayerAbilities
- type S2CPlayerChat
- func (p *S2CPlayerChat) Bound() jp.Bound
- func (p *S2CPlayerChat) GetMessage() string
- func (p *S2CPlayerChat) GetSenderName() string
- func (p *S2CPlayerChat) ID() ns.VarInt
- func (p *S2CPlayerChat) Read(buf *ns.PacketBuffer) error
- func (p *S2CPlayerChat) State() jp.State
- func (p *S2CPlayerChat) Write(buf *ns.PacketBuffer) error
- type S2CPlayerCombatEnd
- type S2CPlayerCombatEnter
- type S2CPlayerCombatKill
- type S2CPlayerInfoRemove
- type S2CPlayerInfoUpdate
- type S2CPlayerLookAt
- type S2CPlayerPosition
- type S2CPlayerRotation
- type S2CPongResponsePlay
- type S2CPongResponseStatus
- type S2CProjectilePower
- type S2CRecipeBookAdd
- type S2CRecipeBookRemove
- type S2CRecipeBookSettings
- type S2CRegistryData
- type S2CRemoveEntities
- type S2CRemoveMobEffect
- type S2CResetChat
- type S2CResetScore
- type S2CResourcePackPopConfiguration
- func (p *S2CResourcePackPopConfiguration) Bound() jp.Bound
- func (p *S2CResourcePackPopConfiguration) ID() ns.VarInt
- func (p *S2CResourcePackPopConfiguration) Read(buf *ns.PacketBuffer) error
- func (p *S2CResourcePackPopConfiguration) State() jp.State
- func (p *S2CResourcePackPopConfiguration) Write(buf *ns.PacketBuffer) error
- type S2CResourcePackPopPlay
- type S2CResourcePackPushConfiguration
- func (p *S2CResourcePackPushConfiguration) Bound() jp.Bound
- func (p *S2CResourcePackPushConfiguration) ID() ns.VarInt
- func (p *S2CResourcePackPushConfiguration) Read(buf *ns.PacketBuffer) error
- func (p *S2CResourcePackPushConfiguration) State() jp.State
- func (p *S2CResourcePackPushConfiguration) Write(buf *ns.PacketBuffer) error
- type S2CResourcePackPushPlay
- type S2CRespawn
- type S2CRotateHead
- type S2CSectionBlocksUpdate
- type S2CSelectAdvancementsTab
- type S2CSelectKnownPacks
- type S2CServerData
- type S2CServerLinksConfiguration
- func (p *S2CServerLinksConfiguration) Bound() jp.Bound
- func (p *S2CServerLinksConfiguration) ID() ns.VarInt
- func (p *S2CServerLinksConfiguration) Read(buf *ns.PacketBuffer) error
- func (p *S2CServerLinksConfiguration) State() jp.State
- func (p *S2CServerLinksConfiguration) Write(buf *ns.PacketBuffer) error
- type S2CServerLinksPlay
- type S2CSetActionBarText
- type S2CSetBorderCenter
- type S2CSetBorderLerpSize
- type S2CSetBorderSize
- type S2CSetBorderWarningDelay
- type S2CSetBorderWarningDistance
- func (p *S2CSetBorderWarningDistance) Bound() jp.Bound
- func (p *S2CSetBorderWarningDistance) ID() ns.VarInt
- func (p *S2CSetBorderWarningDistance) Read(buf *ns.PacketBuffer) error
- func (p *S2CSetBorderWarningDistance) State() jp.State
- func (p *S2CSetBorderWarningDistance) Write(buf *ns.PacketBuffer) error
- type S2CSetCamera
- type S2CSetChunkCacheCenter
- type S2CSetChunkCacheRadius
- type S2CSetCursorItem
- type S2CSetDefaultSpawnPosition
- func (p *S2CSetDefaultSpawnPosition) Bound() jp.Bound
- func (p *S2CSetDefaultSpawnPosition) ID() ns.VarInt
- func (p *S2CSetDefaultSpawnPosition) Read(buf *ns.PacketBuffer) error
- func (p *S2CSetDefaultSpawnPosition) State() jp.State
- func (p *S2CSetDefaultSpawnPosition) Write(buf *ns.PacketBuffer) error
- type S2CSetDisplayObjective
- type S2CSetEntityData
- type S2CSetEntityLink
- type S2CSetEntityMotion
- type S2CSetEquipment
- type S2CSetExperience
- type S2CSetHealth
- type S2CSetHeldSlot
- type S2CSetObjective
- type S2CSetPassengers
- type S2CSetPlayerInventory
- type S2CSetPlayerTeam
- type S2CSetScore
- type S2CSetSimulationDistance
- type S2CSetSubtitleText
- type S2CSetTime
- type S2CSetTitleText
- type S2CSetTitlesAnimation
- type S2CShowDialogConfiguration
- func (p *S2CShowDialogConfiguration) Bound() jp.Bound
- func (p *S2CShowDialogConfiguration) ID() ns.VarInt
- func (p *S2CShowDialogConfiguration) Read(buf *ns.PacketBuffer) error
- func (p *S2CShowDialogConfiguration) State() jp.State
- func (p *S2CShowDialogConfiguration) Write(buf *ns.PacketBuffer) error
- type S2CShowDialogPlay
- type S2CSound
- type S2CSoundEntity
- type S2CStartConfiguration
- type S2CStatusResponse
- type S2CStopSound
- type S2CStoreCookieConfiguration
- func (p *S2CStoreCookieConfiguration) Bound() jp.Bound
- func (p *S2CStoreCookieConfiguration) ID() ns.VarInt
- func (p *S2CStoreCookieConfiguration) Read(buf *ns.PacketBuffer) error
- func (p *S2CStoreCookieConfiguration) State() jp.State
- func (p *S2CStoreCookieConfiguration) Write(buf *ns.PacketBuffer) error
- type S2CStoreCookiePlay
- type S2CSystemChat
- type S2CTabList
- type S2CTagQuery
- type S2CTakeItemEntity
- type S2CTeleportEntity
- type S2CTestInstanceBlockStatus
- func (p *S2CTestInstanceBlockStatus) Bound() jp.Bound
- func (p *S2CTestInstanceBlockStatus) ID() ns.VarInt
- func (p *S2CTestInstanceBlockStatus) Read(buf *ns.PacketBuffer) error
- func (p *S2CTestInstanceBlockStatus) State() jp.State
- func (p *S2CTestInstanceBlockStatus) Write(buf *ns.PacketBuffer) error
- type S2CTickingState
- type S2CTickingStep
- type S2CTransferConfiguration
- type S2CTransferPlay
- type S2CUpdateAdvancements
- type S2CUpdateAttributes
- type S2CUpdateEnabledFeatures
- type S2CUpdateMobEffect
- type S2CUpdateRecipes
- type S2CUpdateTagsConfiguration
- func (p *S2CUpdateTagsConfiguration) Bound() jp.Bound
- func (p *S2CUpdateTagsConfiguration) ID() ns.VarInt
- func (p *S2CUpdateTagsConfiguration) Read(buf *ns.PacketBuffer) error
- func (p *S2CUpdateTagsConfiguration) State() jp.State
- func (p *S2CUpdateTagsConfiguration) Write(buf *ns.PacketBuffer) error
- type S2CUpdateTagsPlay
- type S2CWaypoint
- type ServerLink
- type SignedMessageBody
- type Tag
- type TagRegistry
Constants ¶
const ( BossEventActionAdd = iota BossEventActionRemove BossEventActionUpdateHealth BossEventActionUpdateTitle BossEventActionUpdateStyle BossEventActionUpdateFlags )
Variables ¶
var PacketRegistries = map[string]map[int]PacketFactory{ "configuration_c2s": { int(packet_ids.C2SAcceptCodeOfConductID): func() jp.Packet { return &C2SAcceptCodeOfConduct{} }, int(packet_ids.C2SClientInformationConfigurationID): func() jp.Packet { return &C2SClientInformationConfiguration{} }, int(packet_ids.C2SCookieResponseConfigurationID): func() jp.Packet { return &C2SCookieResponseConfiguration{} }, int(packet_ids.C2SCustomClickActionConfigurationID): func() jp.Packet { return &C2SCustomClickActionConfiguration{} }, int(packet_ids.C2SCustomPayloadConfigurationID): func() jp.Packet { return &C2SCustomPayloadConfiguration{} }, int(packet_ids.C2SFinishConfigurationID): func() jp.Packet { return &C2SFinishConfiguration{} }, int(packet_ids.C2SKeepAliveConfigurationID): func() jp.Packet { return &C2SKeepAliveConfiguration{} }, int(packet_ids.C2SPongConfigurationID): func() jp.Packet { return &C2SPongConfiguration{} }, int(packet_ids.C2SResourcePackConfigurationID): func() jp.Packet { return &C2SResourcePackConfiguration{} }, int(packet_ids.C2SSelectKnownPacksID): func() jp.Packet { return &C2SSelectKnownPacks{} }, }, "configuration_s2c": { int(packet_ids.S2CClearDialogConfigurationID): func() jp.Packet { return &S2CClearDialogConfiguration{} }, int(packet_ids.S2CCodeOfConductID): func() jp.Packet { return &S2CCodeOfConduct{} }, int(packet_ids.S2CCookieRequestConfigurationID): func() jp.Packet { return &S2CCookieRequestConfiguration{} }, int(packet_ids.S2CCustomPayloadConfigurationID): func() jp.Packet { return &S2CCustomPayloadConfiguration{} }, int(packet_ids.S2CCustomReportDetailsConfigurationID): func() jp.Packet { return &S2CCustomReportDetailsConfiguration{} }, int(packet_ids.S2CDisconnectConfigurationID): func() jp.Packet { return &S2CDisconnectConfiguration{} }, int(packet_ids.S2CFinishConfigurationID): func() jp.Packet { return &S2CFinishConfiguration{} }, int(packet_ids.S2CKeepAliveConfigurationID): func() jp.Packet { return &S2CKeepAliveConfiguration{} }, int(packet_ids.S2CPingConfigurationID): func() jp.Packet { return &S2CPingConfiguration{} }, int(packet_ids.S2CRegistryDataID): func() jp.Packet { return &S2CRegistryData{} }, int(packet_ids.S2CResetChatID): func() jp.Packet { return &S2CResetChat{} }, int(packet_ids.S2CResourcePackPopConfigurationID): func() jp.Packet { return &S2CResourcePackPopConfiguration{} }, int(packet_ids.S2CResourcePackPushConfigurationID): func() jp.Packet { return &S2CResourcePackPushConfiguration{} }, int(packet_ids.S2CSelectKnownPacksID): func() jp.Packet { return &S2CSelectKnownPacks{} }, int(packet_ids.S2CServerLinksConfigurationID): func() jp.Packet { return &S2CServerLinksConfiguration{} }, int(packet_ids.S2CShowDialogConfigurationID): func() jp.Packet { return &S2CShowDialogConfiguration{} }, int(packet_ids.S2CStoreCookieConfigurationID): func() jp.Packet { return &S2CStoreCookieConfiguration{} }, int(packet_ids.S2CTransferConfigurationID): func() jp.Packet { return &S2CTransferConfiguration{} }, int(packet_ids.S2CUpdateEnabledFeaturesID): func() jp.Packet { return &S2CUpdateEnabledFeatures{} }, int(packet_ids.S2CUpdateTagsConfigurationID): func() jp.Packet { return &S2CUpdateTagsConfiguration{} }, }, "handshake_c2s": { int(packet_ids.C2SIntentionID): func() jp.Packet { return &C2SIntention{} }, }, "login_c2s": { int(packet_ids.C2SCookieResponseLoginID): func() jp.Packet { return &C2SCookieResponseLogin{} }, int(packet_ids.C2SCustomQueryAnswerID): func() jp.Packet { return &C2SCustomQueryAnswer{} }, int(packet_ids.C2SHelloID): func() jp.Packet { return &C2SHello{} }, int(packet_ids.C2SKeyID): func() jp.Packet { return &C2SKey{} }, int(packet_ids.C2SLoginAcknowledgedID): func() jp.Packet { return &C2SLoginAcknowledged{} }, }, "login_s2c": { int(packet_ids.S2CCookieRequestLoginID): func() jp.Packet { return &S2CCookieRequestLogin{} }, int(packet_ids.S2CCustomQueryID): func() jp.Packet { return &S2CCustomQuery{} }, int(packet_ids.S2CHelloID): func() jp.Packet { return &S2CHello{} }, int(packet_ids.S2CLoginCompressionID): func() jp.Packet { return &S2CLoginCompression{} }, int(packet_ids.S2CLoginDisconnectID): func() jp.Packet { return &S2CLoginDisconnectLogin{} }, int(packet_ids.S2CLoginFinishedID): func() jp.Packet { return &S2CLoginFinished{} }, }, "play_c2s": { int(packet_ids.C2SAcceptTeleportationID): func() jp.Packet { return &C2SAcceptTeleportation{} }, int(packet_ids.C2SBlockEntityTagQueryID): func() jp.Packet { return &C2SBlockEntityTagQuery{} }, int(packet_ids.C2SBundleItemSelectedID): func() jp.Packet { return &C2SBundleItemSelected{} }, int(packet_ids.C2SChangeDifficultyID): func() jp.Packet { return &C2SChangeDifficulty{} }, int(packet_ids.C2SChangeGameModeID): func() jp.Packet { return &C2SChangeGameMode{} }, int(packet_ids.C2SChatAckID): func() jp.Packet { return &C2SChatAck{} }, int(packet_ids.C2SChatCommandID): func() jp.Packet { return &C2SChatCommand{} }, int(packet_ids.C2SChatCommandSignedID): func() jp.Packet { return &C2SChatCommandSigned{} }, int(packet_ids.C2SChatID): func() jp.Packet { return &C2SChat{} }, int(packet_ids.C2SChatSessionUpdateID): func() jp.Packet { return &C2SChatSessionUpdate{} }, int(packet_ids.C2SChunkBatchReceivedID): func() jp.Packet { return &C2SChunkBatchReceived{} }, int(packet_ids.C2SClientCommandID): func() jp.Packet { return &C2SClientCommand{} }, int(packet_ids.C2SClientInformationPlayID): func() jp.Packet { return &C2SClientInformationPlay{} }, int(packet_ids.C2SClientTickEndID): func() jp.Packet { return &C2SClientTickEnd{} }, int(packet_ids.C2SCommandSuggestionID): func() jp.Packet { return &C2SCommandSuggestion{} }, int(packet_ids.C2SConfigurationAcknowledgedID): func() jp.Packet { return &C2SConfigurationAcknowledged{} }, int(packet_ids.C2SContainerButtonClickID): func() jp.Packet { return &C2SContainerButtonClick{} }, int(packet_ids.C2SContainerClickID): func() jp.Packet { return &C2SContainerClick{} }, int(packet_ids.C2SContainerCloseID): func() jp.Packet { return &C2SContainerClose{} }, int(packet_ids.C2SContainerSlotStateChangedID): func() jp.Packet { return &C2SContainerSlotStateChanged{} }, int(packet_ids.C2SCookieResponsePlayID): func() jp.Packet { return &C2SCookieResponsePlay{} }, int(packet_ids.C2SCustomClickActionPlayID): func() jp.Packet { return &C2SCustomClickActionPlay{} }, int(packet_ids.C2SCustomPayloadPlayID): func() jp.Packet { return &C2SCustomPayloadPlay{} }, int(packet_ids.C2SDebugSubscriptionRequestID): func() jp.Packet { return &C2SDebugSubscriptionRequest{} }, int(packet_ids.C2SEditBookID): func() jp.Packet { return &C2SEditBook{} }, int(packet_ids.C2SEntityTagQueryID): func() jp.Packet { return &C2SEntityTagQuery{} }, int(packet_ids.C2SInteractID): func() jp.Packet { return &C2SInteract{} }, int(packet_ids.C2SJigsawGenerateID): func() jp.Packet { return &C2SJigsawGenerate{} }, int(packet_ids.C2SKeepAlivePlayID): func() jp.Packet { return &C2SKeepAlivePlay{} }, int(packet_ids.C2SLockDifficultyID): func() jp.Packet { return &C2SLockDifficulty{} }, int(packet_ids.C2SMovePlayerPosID): func() jp.Packet { return &C2SMovePlayerPos{} }, int(packet_ids.C2SMovePlayerPosRotID): func() jp.Packet { return &C2SMovePlayerPosRot{} }, int(packet_ids.C2SMovePlayerRotID): func() jp.Packet { return &C2SMovePlayerRot{} }, int(packet_ids.C2SMovePlayerStatusOnlyID): func() jp.Packet { return &C2SMovePlayerStatusOnly{} }, int(packet_ids.C2SMoveVehicleID): func() jp.Packet { return &C2SMoveVehicle{} }, int(packet_ids.C2SPaddleBoatID): func() jp.Packet { return &C2SPaddleBoat{} }, int(packet_ids.C2SPickItemFromBlockID): func() jp.Packet { return &C2SPickItemFromBlock{} }, int(packet_ids.C2SPickItemFromEntityID): func() jp.Packet { return &C2SPickItemFromEntity{} }, int(packet_ids.C2SPingRequestPlayID): func() jp.Packet { return &C2SPingRequestPlay{} }, int(packet_ids.C2SPlaceRecipeID): func() jp.Packet { return &C2SPlaceRecipe{} }, int(packet_ids.C2SPlayerAbilitiesID): func() jp.Packet { return &C2SPlayerAbilities{} }, int(packet_ids.C2SPlayerActionID): func() jp.Packet { return &C2SPlayerAction{} }, int(packet_ids.C2SPlayerCommandID): func() jp.Packet { return &C2SPlayerCommand{} }, int(packet_ids.C2SPlayerInputID): func() jp.Packet { return &C2SPlayerInput{} }, int(packet_ids.C2SPlayerLoadedID): func() jp.Packet { return &C2SPlayerLoaded{} }, int(packet_ids.C2SPongPlayID): func() jp.Packet { return &C2SPongPlay{} }, int(packet_ids.C2SRecipeBookChangeSettingsID): func() jp.Packet { return &C2SRecipeBookChangeSettings{} }, int(packet_ids.C2SRecipeBookSeenRecipeID): func() jp.Packet { return &C2SRecipeBookSeenRecipe{} }, int(packet_ids.C2SRenameItemID): func() jp.Packet { return &C2SRenameItem{} }, int(packet_ids.C2SResourcePackPlayID): func() jp.Packet { return &C2SResourcePackPlay{} }, int(packet_ids.C2SSeenAdvancementsID): func() jp.Packet { return &C2SSeenAdvancements{} }, int(packet_ids.C2SSelectTradeID): func() jp.Packet { return &C2SSelectTrade{} }, int(packet_ids.C2SSetBeaconID): func() jp.Packet { return &C2SSetBeacon{} }, int(packet_ids.C2SSetCarriedItemID): func() jp.Packet { return &C2SSetCarriedItem{} }, int(packet_ids.C2SSetCommandBlockID): func() jp.Packet { return &C2SSetCommandBlock{} }, int(packet_ids.C2SSetCommandMinecartID): func() jp.Packet { return &C2SSetCommandMinecart{} }, int(packet_ids.C2SSetCreativeModeSlotID): func() jp.Packet { return &C2SSetCreativeModeSlot{} }, int(packet_ids.C2SSetJigsawBlockID): func() jp.Packet { return &C2SSetJigsawBlock{} }, int(packet_ids.C2SSetStructureBlockID): func() jp.Packet { return &C2SSetStructureBlock{} }, int(packet_ids.C2SSetTestBlockID): func() jp.Packet { return &C2SSetTestBlock{} }, int(packet_ids.C2SSignUpdateID): func() jp.Packet { return &C2SSignUpdate{} }, int(packet_ids.C2SSwingID): func() jp.Packet { return &C2SSwing{} }, int(packet_ids.C2STeleportToEntityID): func() jp.Packet { return &C2STeleportToEntity{} }, int(packet_ids.C2STestInstanceBlockActionID): func() jp.Packet { return &C2STestInstanceBlockAction{} }, int(packet_ids.C2SUseItemID): func() jp.Packet { return &C2SUseItem{} }, int(packet_ids.C2SUseItemOnID): func() jp.Packet { return &C2SUseItemOn{} }, }, "play_s2c": { int(packet_ids.S2CAddEntityID): func() jp.Packet { return &S2CAddEntity{} }, int(packet_ids.S2CAnimateID): func() jp.Packet { return &S2CAnimate{} }, int(packet_ids.S2CAwardStatsID): func() jp.Packet { return &S2CAwardStats{} }, int(packet_ids.S2CBlockChangedAckID): func() jp.Packet { return &S2CBlockChangedAck{} }, int(packet_ids.S2CBlockDestructionID): func() jp.Packet { return &S2CBlockDestruction{} }, int(packet_ids.S2CBlockEntityDataID): func() jp.Packet { return &S2CBlockEntityData{} }, int(packet_ids.S2CBlockEventID): func() jp.Packet { return &S2CBlockEvent{} }, int(packet_ids.S2CBlockUpdateID): func() jp.Packet { return &S2CBlockUpdate{} }, int(packet_ids.S2CBossEventID): func() jp.Packet { return &S2CBossEvent{} }, int(packet_ids.S2CBundleDelimiterID): func() jp.Packet { return &S2CBundleDelimiter{} }, int(packet_ids.S2CChangeDifficultyID): func() jp.Packet { return &S2CChangeDifficulty{} }, int(packet_ids.S2CChunkBatchFinishedID): func() jp.Packet { return &S2CChunkBatchFinished{} }, int(packet_ids.S2CChunkBatchStartID): func() jp.Packet { return &S2CChunkBatchStart{} }, int(packet_ids.S2CChunksBiomesID): func() jp.Packet { return &S2CChunksBiomes{} }, int(packet_ids.S2CClearDialogPlayID): func() jp.Packet { return &S2CClearDialogPlay{} }, int(packet_ids.S2CClearTitlesID): func() jp.Packet { return &S2CClearTitles{} }, int(packet_ids.S2CCommandSuggestionsID): func() jp.Packet { return &S2CCommandSuggestions{} }, int(packet_ids.S2CCommandsID): func() jp.Packet { return &S2CCommands{} }, int(packet_ids.S2CContainerCloseID): func() jp.Packet { return &S2CContainerClose{} }, int(packet_ids.S2CContainerSetContentID): func() jp.Packet { return &S2CContainerSetContent{} }, int(packet_ids.S2CContainerSetDataID): func() jp.Packet { return &S2CContainerSetData{} }, int(packet_ids.S2CContainerSetSlotID): func() jp.Packet { return &S2CContainerSetSlot{} }, int(packet_ids.S2CCookieRequestPlayID): func() jp.Packet { return &S2CCookieRequestPlay{} }, int(packet_ids.S2CCooldownID): func() jp.Packet { return &S2CCooldown{} }, int(packet_ids.S2CCustomChatCompletionsID): func() jp.Packet { return &S2CCustomChatCompletions{} }, int(packet_ids.S2CCustomPayloadPlayID): func() jp.Packet { return &S2CCustomPayloadPlay{} }, int(packet_ids.S2CCustomReportDetailsPlayID): func() jp.Packet { return &S2CCustomReportDetailsPlay{} }, int(packet_ids.S2CDamageEventID): func() jp.Packet { return &S2CDamageEvent{} }, int(packet_ids.S2CDebugBlockValueID): func() jp.Packet { return &S2CDebugBlockValue{} }, int(packet_ids.S2CDebugChunkValueID): func() jp.Packet { return &S2CDebugChunkValue{} }, int(packet_ids.S2CDebugEntityValueID): func() jp.Packet { return &S2CDebugEntityValue{} }, int(packet_ids.S2CDebugEventID): func() jp.Packet { return &S2CDebugEvent{} }, int(packet_ids.S2CDebugSampleID): func() jp.Packet { return &S2CDebugSample{} }, int(packet_ids.S2CDeleteChatID): func() jp.Packet { return &S2CDeleteChat{} }, int(packet_ids.S2CDisconnectPlayID): func() jp.Packet { return &S2CDisconnectPlay{} }, int(packet_ids.S2CDisguisedChatID): func() jp.Packet { return &S2CDisguisedChat{} }, int(packet_ids.S2CEntityEventID): func() jp.Packet { return &S2CEntityEvent{} }, int(packet_ids.S2CEntityPositionSyncID): func() jp.Packet { return &S2CEntityPositionSync{} }, int(packet_ids.S2CExplodeID): func() jp.Packet { return &S2CExplode{} }, int(packet_ids.S2CForgetLevelChunkID): func() jp.Packet { return &S2CForgetLevelChunk{} }, int(packet_ids.S2CGameEventID): func() jp.Packet { return &S2CGameEvent{} }, int(packet_ids.S2CGameTestHighlightPosID): func() jp.Packet { return &S2CGameTestHighlightPos{} }, int(packet_ids.S2CHurtAnimationID): func() jp.Packet { return &S2CHurtAnimation{} }, int(packet_ids.S2CInitializeBorderID): func() jp.Packet { return &S2CInitializeBorder{} }, int(packet_ids.S2CKeepAlivePlayID): func() jp.Packet { return &S2CKeepAlivePlay{} }, int(packet_ids.S2CLevelChunkWithLightID): func() jp.Packet { return &S2CLevelChunkWithLight{} }, int(packet_ids.S2CLevelEventID): func() jp.Packet { return &S2CLevelEvent{} }, int(packet_ids.S2CLevelParticlesID): func() jp.Packet { return &S2CLevelParticles{} }, int(packet_ids.S2CLightUpdateID): func() jp.Packet { return &S2CLightUpdate{} }, int(packet_ids.S2CLoginID): func() jp.Packet { return &S2CLogin{} }, int(packet_ids.S2CMapItemDataID): func() jp.Packet { return &S2CMapItemData{} }, int(packet_ids.S2CMerchantOffersID): func() jp.Packet { return &S2CMerchantOffers{} }, int(packet_ids.S2CMountScreenOpenID): func() jp.Packet { return &S2CMountScreenOpen{} }, int(packet_ids.S2CMoveEntityPosID): func() jp.Packet { return &S2CMoveEntityPos{} }, int(packet_ids.S2CMoveEntityPosRotID): func() jp.Packet { return &S2CMoveEntityPosRot{} }, int(packet_ids.S2CMoveEntityRotID): func() jp.Packet { return &S2CMoveEntityRot{} }, int(packet_ids.S2CMoveMinecartAlongTrackID): func() jp.Packet { return &S2CMoveMinecartAlongTrack{} }, int(packet_ids.S2CMoveVehicleID): func() jp.Packet { return &S2CMoveVehicle{} }, int(packet_ids.S2COpenBookID): func() jp.Packet { return &S2COpenBook{} }, int(packet_ids.S2COpenScreenID): func() jp.Packet { return &S2COpenScreen{} }, int(packet_ids.S2COpenSignEditorID): func() jp.Packet { return &S2COpenSignEditor{} }, int(packet_ids.S2CPingPlayID): func() jp.Packet { return &S2CPingPlay{} }, int(packet_ids.S2CPlaceGhostRecipeID): func() jp.Packet { return &S2CPlaceGhostRecipe{} }, int(packet_ids.S2CPlayerAbilitiesID): func() jp.Packet { return &S2CPlayerAbilities{} }, int(packet_ids.S2CPlayerChatID): func() jp.Packet { return &S2CPlayerChat{} }, int(packet_ids.S2CPlayerCombatEndID): func() jp.Packet { return &S2CPlayerCombatEnd{} }, int(packet_ids.S2CPlayerCombatEnterID): func() jp.Packet { return &S2CPlayerCombatEnter{} }, int(packet_ids.S2CPlayerCombatKillID): func() jp.Packet { return &S2CPlayerCombatKill{} }, int(packet_ids.S2CPlayerInfoRemoveID): func() jp.Packet { return &S2CPlayerInfoRemove{} }, int(packet_ids.S2CPlayerInfoUpdateID): func() jp.Packet { return &S2CPlayerInfoUpdate{} }, int(packet_ids.S2CPlayerLookAtID): func() jp.Packet { return &S2CPlayerLookAt{} }, int(packet_ids.S2CPlayerPositionID): func() jp.Packet { return &S2CPlayerPosition{} }, int(packet_ids.S2CPlayerRotationID): func() jp.Packet { return &S2CPlayerRotation{} }, int(packet_ids.S2CPongResponsePlayID): func() jp.Packet { return &S2CPongResponsePlay{} }, int(packet_ids.S2CProjectilePowerID): func() jp.Packet { return &S2CProjectilePower{} }, int(packet_ids.S2CRecipeBookAddID): func() jp.Packet { return &S2CRecipeBookAdd{} }, int(packet_ids.S2CRecipeBookRemoveID): func() jp.Packet { return &S2CRecipeBookRemove{} }, int(packet_ids.S2CRecipeBookSettingsID): func() jp.Packet { return &S2CRecipeBookSettings{} }, int(packet_ids.S2CRemoveEntitiesID): func() jp.Packet { return &S2CRemoveEntities{} }, int(packet_ids.S2CRemoveMobEffectID): func() jp.Packet { return &S2CRemoveMobEffect{} }, int(packet_ids.S2CResetScoreID): func() jp.Packet { return &S2CResetScore{} }, int(packet_ids.S2CResourcePackPopPlayID): func() jp.Packet { return &S2CResourcePackPopPlay{} }, int(packet_ids.S2CResourcePackPushPlayID): func() jp.Packet { return &S2CResourcePackPushPlay{} }, int(packet_ids.S2CRespawnID): func() jp.Packet { return &S2CRespawn{} }, int(packet_ids.S2CRotateHeadID): func() jp.Packet { return &S2CRotateHead{} }, int(packet_ids.S2CSectionBlocksUpdateID): func() jp.Packet { return &S2CSectionBlocksUpdate{} }, int(packet_ids.S2CSelectAdvancementsTabID): func() jp.Packet { return &S2CSelectAdvancementsTab{} }, int(packet_ids.S2CServerDataID): func() jp.Packet { return &S2CServerData{} }, int(packet_ids.S2CServerLinksPlayID): func() jp.Packet { return &S2CServerLinksPlay{} }, int(packet_ids.S2CSetActionBarTextID): func() jp.Packet { return &S2CSetActionBarText{} }, int(packet_ids.S2CSetBorderCenterID): func() jp.Packet { return &S2CSetBorderCenter{} }, int(packet_ids.S2CSetBorderLerpSizeID): func() jp.Packet { return &S2CSetBorderLerpSize{} }, int(packet_ids.S2CSetBorderSizeID): func() jp.Packet { return &S2CSetBorderSize{} }, int(packet_ids.S2CSetBorderWarningDelayID): func() jp.Packet { return &S2CSetBorderWarningDelay{} }, int(packet_ids.S2CSetBorderWarningDistanceID): func() jp.Packet { return &S2CSetBorderWarningDistance{} }, int(packet_ids.S2CSetCameraID): func() jp.Packet { return &S2CSetCamera{} }, int(packet_ids.S2CSetChunkCacheCenterID): func() jp.Packet { return &S2CSetChunkCacheCenter{} }, int(packet_ids.S2CSetChunkCacheRadiusID): func() jp.Packet { return &S2CSetChunkCacheRadius{} }, int(packet_ids.S2CSetCursorItemID): func() jp.Packet { return &S2CSetCursorItem{} }, int(packet_ids.S2CSetDefaultSpawnPositionID): func() jp.Packet { return &S2CSetDefaultSpawnPosition{} }, int(packet_ids.S2CSetDisplayObjectiveID): func() jp.Packet { return &S2CSetDisplayObjective{} }, int(packet_ids.S2CSetEntityDataID): func() jp.Packet { return &S2CSetEntityData{} }, int(packet_ids.S2CSetEntityLinkID): func() jp.Packet { return &S2CSetEntityLink{} }, int(packet_ids.S2CSetEntityMotionID): func() jp.Packet { return &S2CSetEntityMotion{} }, int(packet_ids.S2CSetEquipmentID): func() jp.Packet { return &S2CSetEquipment{} }, int(packet_ids.S2CSetExperienceID): func() jp.Packet { return &S2CSetExperience{} }, int(packet_ids.S2CSetHealthID): func() jp.Packet { return &S2CSetHealth{} }, int(packet_ids.S2CSetHeldSlotID): func() jp.Packet { return &S2CSetHeldSlot{} }, int(packet_ids.S2CSetObjectiveID): func() jp.Packet { return &S2CSetObjective{} }, int(packet_ids.S2CSetPassengersID): func() jp.Packet { return &S2CSetPassengers{} }, int(packet_ids.S2CSetPlayerInventoryID): func() jp.Packet { return &S2CSetPlayerInventory{} }, int(packet_ids.S2CSetPlayerTeamID): func() jp.Packet { return &S2CSetPlayerTeam{} }, int(packet_ids.S2CSetScoreID): func() jp.Packet { return &S2CSetScore{} }, int(packet_ids.S2CSetSimulationDistanceID): func() jp.Packet { return &S2CSetSimulationDistance{} }, int(packet_ids.S2CSetSubtitleTextID): func() jp.Packet { return &S2CSetSubtitleText{} }, int(packet_ids.S2CSetTimeID): func() jp.Packet { return &S2CSetTime{} }, int(packet_ids.S2CSetTitleTextID): func() jp.Packet { return &S2CSetTitleText{} }, int(packet_ids.S2CSetTitlesAnimationID): func() jp.Packet { return &S2CSetTitlesAnimation{} }, int(packet_ids.S2CShowDialogPlayID): func() jp.Packet { return &S2CShowDialogPlay{} }, int(packet_ids.S2CSoundEntityID): func() jp.Packet { return &S2CSoundEntity{} }, int(packet_ids.S2CSoundID): func() jp.Packet { return &S2CSound{} }, int(packet_ids.S2CStartConfigurationID): func() jp.Packet { return &S2CStartConfiguration{} }, int(packet_ids.S2CStopSoundID): func() jp.Packet { return &S2CStopSound{} }, int(packet_ids.S2CStoreCookiePlayID): func() jp.Packet { return &S2CStoreCookiePlay{} }, int(packet_ids.S2CSystemChatID): func() jp.Packet { return &S2CSystemChat{} }, int(packet_ids.S2CTabListID): func() jp.Packet { return &S2CTabList{} }, int(packet_ids.S2CTagQueryID): func() jp.Packet { return &S2CTagQuery{} }, int(packet_ids.S2CTakeItemEntityID): func() jp.Packet { return &S2CTakeItemEntity{} }, int(packet_ids.S2CTeleportEntityID): func() jp.Packet { return &S2CTeleportEntity{} }, int(packet_ids.S2CTestInstanceBlockStatusID): func() jp.Packet { return &S2CTestInstanceBlockStatus{} }, int(packet_ids.S2CTickingStateID): func() jp.Packet { return &S2CTickingState{} }, int(packet_ids.S2CTickingStepID): func() jp.Packet { return &S2CTickingStep{} }, int(packet_ids.S2CTransferPlayID): func() jp.Packet { return &S2CTransferPlay{} }, int(packet_ids.S2CUpdateAdvancementsID): func() jp.Packet { return &S2CUpdateAdvancements{} }, int(packet_ids.S2CUpdateAttributesID): func() jp.Packet { return &S2CUpdateAttributes{} }, int(packet_ids.S2CUpdateMobEffectID): func() jp.Packet { return &S2CUpdateMobEffect{} }, int(packet_ids.S2CUpdateRecipesID): func() jp.Packet { return &S2CUpdateRecipes{} }, int(packet_ids.S2CUpdateTagsPlayID): func() jp.Packet { return &S2CUpdateTagsPlay{} }, int(packet_ids.S2CWaypointID): func() jp.Packet { return &S2CWaypoint{} }, }, "status_c2s": { int(packet_ids.C2SPingRequestStatusID): func() jp.Packet { return &C2SPingRequestStatus{} }, int(packet_ids.C2SStatusRequestID): func() jp.Packet { return &C2SStatusRequest{} }, }, "status_s2c": { int(packet_ids.S2CPongResponseStatusID): func() jp.Packet { return &S2CPongResponseStatus{} }, int(packet_ids.S2CStatusResponseID): func() jp.Packet { return &S2CStatusResponse{} }, }, }
PacketRegistries maps phase+bound to a map of packet ID -> factory function. Keys are in format "phase_bound" like "configuration_c2s" or "play_s2c".
Functions ¶
This section is empty.
Types ¶
type BossEventActionAddData ¶
type BossEventActionAddData struct {
Title ns.TextComponent
Health ns.Float32
Color ns.VarInt
Division ns.VarInt
// bit mask: 0x01 darken sky, 0x02 dragon bar (boss music), 0x04 create fog
Flags ns.Uint8
}
func (*BossEventActionAddData) Read ¶
func (d *BossEventActionAddData) Read(buf *ns.PacketBuffer) error
func (*BossEventActionAddData) Write ¶
func (d *BossEventActionAddData) Write(buf *ns.PacketBuffer) error
type BossEventActionEnum ¶
type BossEventActionUpdateFlagsData ¶
type BossEventActionUpdateFlagsData struct {
// bit mask: 0x01 darken sky, 0x02 dragon bar (boss music), 0x04 create fog
Flags ns.Uint8
}
func (*BossEventActionUpdateFlagsData) Read ¶
func (d *BossEventActionUpdateFlagsData) Read(buf *ns.PacketBuffer) error
func (*BossEventActionUpdateFlagsData) Write ¶
func (d *BossEventActionUpdateFlagsData) Write(buf *ns.PacketBuffer) error
type BossEventActionUpdateHealthData ¶
func (*BossEventActionUpdateHealthData) Read ¶
func (d *BossEventActionUpdateHealthData) Read(buf *ns.PacketBuffer) error
func (*BossEventActionUpdateHealthData) Write ¶
func (d *BossEventActionUpdateHealthData) Write(buf *ns.PacketBuffer) error
type BossEventActionUpdateStyleData ¶
func (*BossEventActionUpdateStyleData) Read ¶
func (d *BossEventActionUpdateStyleData) Read(buf *ns.PacketBuffer) error
func (*BossEventActionUpdateStyleData) Write ¶
func (d *BossEventActionUpdateStyleData) Write(buf *ns.PacketBuffer) error
type BossEventActionUpdateTitleData ¶
type BossEventActionUpdateTitleData struct {
Title ns.TextComponent
}
func (*BossEventActionUpdateTitleData) Read ¶
func (d *BossEventActionUpdateTitleData) Read(buf *ns.PacketBuffer) error
func (*BossEventActionUpdateTitleData) Write ¶
func (d *BossEventActionUpdateTitleData) Write(buf *ns.PacketBuffer) error
type C2SAcceptCodeOfConduct ¶
type C2SAcceptCodeOfConduct struct{}
C2SAcceptCodeOfConduct represents "Accept Code of Conduct".
Sent by the client to accept the server's code of conduct.
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Accept_Code_Of_Conduct
func (*C2SAcceptCodeOfConduct) Bound ¶
func (p *C2SAcceptCodeOfConduct) Bound() jp.Bound
func (*C2SAcceptCodeOfConduct) ID ¶
func (p *C2SAcceptCodeOfConduct) ID() ns.VarInt
func (*C2SAcceptCodeOfConduct) Read ¶
func (p *C2SAcceptCodeOfConduct) Read(*ns.PacketBuffer) error
func (*C2SAcceptCodeOfConduct) State ¶
func (p *C2SAcceptCodeOfConduct) State() jp.State
func (*C2SAcceptCodeOfConduct) Write ¶
func (p *C2SAcceptCodeOfConduct) Write(*ns.PacketBuffer) error
type C2SAcceptTeleportation ¶
C2SAcceptTeleportation represents "Confirm Teleportation".
Sent by client as confirmation of Synchronize Player Position.
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Confirm_Teleportation
func (*C2SAcceptTeleportation) Bound ¶
func (p *C2SAcceptTeleportation) Bound() jp.Bound
func (*C2SAcceptTeleportation) ID ¶
func (p *C2SAcceptTeleportation) ID() ns.VarInt
func (*C2SAcceptTeleportation) Read ¶
func (p *C2SAcceptTeleportation) Read(buf *ns.PacketBuffer) error
func (*C2SAcceptTeleportation) State ¶
func (p *C2SAcceptTeleportation) State() jp.State
func (*C2SAcceptTeleportation) Write ¶
func (p *C2SAcceptTeleportation) Write(buf *ns.PacketBuffer) error
type C2SBlockEntityTagQuery ¶
C2SBlockEntityTagQuery represents "Query Block Entity Tag".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Query_Block_Entity_Tag
func (*C2SBlockEntityTagQuery) Bound ¶
func (p *C2SBlockEntityTagQuery) Bound() jp.Bound
func (*C2SBlockEntityTagQuery) ID ¶
func (p *C2SBlockEntityTagQuery) ID() ns.VarInt
func (*C2SBlockEntityTagQuery) Read ¶
func (p *C2SBlockEntityTagQuery) Read(buf *ns.PacketBuffer) error
func (*C2SBlockEntityTagQuery) State ¶
func (p *C2SBlockEntityTagQuery) State() jp.State
func (*C2SBlockEntityTagQuery) Write ¶
func (p *C2SBlockEntityTagQuery) Write(buf *ns.PacketBuffer) error
type C2SBundleItemSelected ¶
C2SBundleItemSelected represents "Bundle Item Selected".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Bundle_Item_Selected
func (*C2SBundleItemSelected) Bound ¶
func (p *C2SBundleItemSelected) Bound() jp.Bound
func (*C2SBundleItemSelected) ID ¶
func (p *C2SBundleItemSelected) ID() ns.VarInt
func (*C2SBundleItemSelected) Read ¶
func (p *C2SBundleItemSelected) Read(buf *ns.PacketBuffer) error
func (*C2SBundleItemSelected) State ¶
func (p *C2SBundleItemSelected) State() jp.State
func (*C2SBundleItemSelected) Write ¶
func (p *C2SBundleItemSelected) Write(buf *ns.PacketBuffer) error
type C2SChangeDifficulty ¶
C2SChangeDifficulty represents "Change Difficulty".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Change_Difficulty
func (*C2SChangeDifficulty) Bound ¶
func (p *C2SChangeDifficulty) Bound() jp.Bound
func (*C2SChangeDifficulty) ID ¶
func (p *C2SChangeDifficulty) ID() ns.VarInt
func (*C2SChangeDifficulty) Read ¶
func (p *C2SChangeDifficulty) Read(buf *ns.PacketBuffer) error
func (*C2SChangeDifficulty) State ¶
func (p *C2SChangeDifficulty) State() jp.State
func (*C2SChangeDifficulty) Write ¶
func (p *C2SChangeDifficulty) Write(buf *ns.PacketBuffer) error
type C2SChangeGameMode ¶
C2SChangeGameMode represents "Change Game Mode".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Change_Game_Mode
func (*C2SChangeGameMode) Bound ¶
func (p *C2SChangeGameMode) Bound() jp.Bound
func (*C2SChangeGameMode) ID ¶
func (p *C2SChangeGameMode) ID() ns.VarInt
func (*C2SChangeGameMode) Read ¶
func (p *C2SChangeGameMode) Read(buf *ns.PacketBuffer) error
func (*C2SChangeGameMode) State ¶
func (p *C2SChangeGameMode) State() jp.State
func (*C2SChangeGameMode) Write ¶
func (p *C2SChangeGameMode) Write(buf *ns.PacketBuffer) error
type C2SChat ¶
type C2SChat struct {
Message ns.String
Timestamp ns.Int64
Salt ns.Int64
Signature ns.PrefixedOptional[ns.ByteArray]
MessageCount ns.VarInt
Acknowledged *ns.FixedBitSet
Checksum ns.Int8
}
C2SChat represents "Chat Message".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Chat_Message
type C2SChatAck ¶
C2SChatAck represents "Acknowledge Message".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Acknowledge_Message
func (*C2SChatAck) Bound ¶
func (p *C2SChatAck) Bound() jp.Bound
func (*C2SChatAck) ID ¶
func (p *C2SChatAck) ID() ns.VarInt
func (*C2SChatAck) Read ¶
func (p *C2SChatAck) Read(buf *ns.PacketBuffer) error
func (*C2SChatAck) State ¶
func (p *C2SChatAck) State() jp.State
func (*C2SChatAck) Write ¶
func (p *C2SChatAck) Write(buf *ns.PacketBuffer) error
type C2SChatCommand ¶
C2SChatCommand represents "Chat Command".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Chat_Command
func (*C2SChatCommand) Bound ¶
func (p *C2SChatCommand) Bound() jp.Bound
func (*C2SChatCommand) ID ¶
func (p *C2SChatCommand) ID() ns.VarInt
func (*C2SChatCommand) Read ¶
func (p *C2SChatCommand) Read(buf *ns.PacketBuffer) error
func (*C2SChatCommand) State ¶
func (p *C2SChatCommand) State() jp.State
func (*C2SChatCommand) Write ¶
func (p *C2SChatCommand) Write(buf *ns.PacketBuffer) error
type C2SChatCommandSigned ¶
type C2SChatCommandSigned struct {
Command ns.String
Timestamp ns.Int64
Salt ns.Int64
Signature ns.ByteArray
MessageCount ns.VarInt
Acknowledged *ns.FixedBitSet
Checksum ns.Int8
}
C2SChatCommandSigned represents "Signed Chat Command".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Signed_Chat_Command
func (*C2SChatCommandSigned) Bound ¶
func (p *C2SChatCommandSigned) Bound() jp.Bound
func (*C2SChatCommandSigned) ID ¶
func (p *C2SChatCommandSigned) ID() ns.VarInt
func (*C2SChatCommandSigned) Read ¶
func (p *C2SChatCommandSigned) Read(buf *ns.PacketBuffer) error
func (*C2SChatCommandSigned) State ¶
func (p *C2SChatCommandSigned) State() jp.State
func (*C2SChatCommandSigned) Write ¶
func (p *C2SChatCommandSigned) Write(buf *ns.PacketBuffer) error
type C2SChatSessionUpdate ¶
type C2SChatSessionUpdate struct {
SessionId ns.UUID
ExpiresAt ns.Int64
PublicKey ns.ByteArray
KeySignature ns.ByteArray
}
C2SChatSessionUpdate represents "Player Session".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Player_Session
func (*C2SChatSessionUpdate) Bound ¶
func (p *C2SChatSessionUpdate) Bound() jp.Bound
func (*C2SChatSessionUpdate) ID ¶
func (p *C2SChatSessionUpdate) ID() ns.VarInt
func (*C2SChatSessionUpdate) Read ¶
func (p *C2SChatSessionUpdate) Read(buf *ns.PacketBuffer) error
func (*C2SChatSessionUpdate) State ¶
func (p *C2SChatSessionUpdate) State() jp.State
func (*C2SChatSessionUpdate) Write ¶
func (p *C2SChatSessionUpdate) Write(buf *ns.PacketBuffer) error
type C2SChunkBatchReceived ¶
C2SChunkBatchReceived represents "Chunk Batch Received".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Chunk_Batch_Received
func (*C2SChunkBatchReceived) Bound ¶
func (p *C2SChunkBatchReceived) Bound() jp.Bound
func (*C2SChunkBatchReceived) ID ¶
func (p *C2SChunkBatchReceived) ID() ns.VarInt
func (*C2SChunkBatchReceived) Read ¶
func (p *C2SChunkBatchReceived) Read(buf *ns.PacketBuffer) error
func (*C2SChunkBatchReceived) State ¶
func (p *C2SChunkBatchReceived) State() jp.State
func (*C2SChunkBatchReceived) Write ¶
func (p *C2SChunkBatchReceived) Write(buf *ns.PacketBuffer) error
type C2SClientCommand ¶
C2SClientCommand represents "Client Status".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Client_Status
func (*C2SClientCommand) Bound ¶
func (p *C2SClientCommand) Bound() jp.Bound
func (*C2SClientCommand) ID ¶
func (p *C2SClientCommand) ID() ns.VarInt
func (*C2SClientCommand) Read ¶
func (p *C2SClientCommand) Read(buf *ns.PacketBuffer) error
func (*C2SClientCommand) State ¶
func (p *C2SClientCommand) State() jp.State
func (*C2SClientCommand) Write ¶
func (p *C2SClientCommand) Write(buf *ns.PacketBuffer) error
type C2SClientInformationConfiguration ¶
type C2SClientInformationConfiguration struct {
// e.g. en_GB.
Locale ns.String
// Client-side render distance, in chunks.
ViewDistance ns.Int8
// 0: enabled, 1: commands only, 2: hidden.
ChatMode ns.VarInt
// "Colors" multiplayer setting.
ChatColors ns.Boolean
// Bit mask for displayed skin parts.
DisplayedSkinParts ns.Uint8
// 0: Left, 1: Right.
MainHand ns.VarInt
// Enables filtering of text on signs and written book titles.
EnableTextFiltering ns.Boolean
// Servers usually list online players; this option should let you not show up in that list.
AllowServerListings ns.Boolean
// 0: all, 1: decreased, 2: minimal.
ParticleStatus ns.VarInt
}
C2SClientInformationConfiguration represents "Client Information (configuration)".
Sent when the player connects, or when settings are changed.
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Client_Information_(Configuration)
func (*C2SClientInformationConfiguration) Bound ¶
func (p *C2SClientInformationConfiguration) Bound() jp.Bound
func (*C2SClientInformationConfiguration) ID ¶
func (p *C2SClientInformationConfiguration) ID() ns.VarInt
func (*C2SClientInformationConfiguration) Read ¶
func (p *C2SClientInformationConfiguration) Read(buf *ns.PacketBuffer) error
func (*C2SClientInformationConfiguration) State ¶
func (p *C2SClientInformationConfiguration) State() jp.State
func (*C2SClientInformationConfiguration) Write ¶
func (p *C2SClientInformationConfiguration) Write(buf *ns.PacketBuffer) error
type C2SClientInformationPlay ¶
type C2SClientInformationPlay struct {
Locale ns.String
ViewDistance ns.Int8
ChatMode ns.VarInt
ChatColors ns.Boolean
DisplayedSkinParts ns.Uint8
MainHand ns.VarInt
EnableTextFiltering ns.Boolean
AllowServerListings ns.Boolean
ParticleStatus ns.VarInt
}
C2SClientInformationPlay represents "Client Information (play)".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Client_Information_(Play)
func (*C2SClientInformationPlay) Bound ¶
func (p *C2SClientInformationPlay) Bound() jp.Bound
func (*C2SClientInformationPlay) ID ¶
func (p *C2SClientInformationPlay) ID() ns.VarInt
func (*C2SClientInformationPlay) Read ¶
func (p *C2SClientInformationPlay) Read(buf *ns.PacketBuffer) error
func (*C2SClientInformationPlay) State ¶
func (p *C2SClientInformationPlay) State() jp.State
func (*C2SClientInformationPlay) Write ¶
func (p *C2SClientInformationPlay) Write(buf *ns.PacketBuffer) error
type C2SClientTickEnd ¶
type C2SClientTickEnd struct{}
C2SClientTickEnd represents "Client Tick End".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Client_Tick_End
func (*C2SClientTickEnd) Bound ¶
func (p *C2SClientTickEnd) Bound() jp.Bound
func (*C2SClientTickEnd) ID ¶
func (p *C2SClientTickEnd) ID() ns.VarInt
func (*C2SClientTickEnd) Read ¶
func (p *C2SClientTickEnd) Read(*ns.PacketBuffer) error
func (*C2SClientTickEnd) State ¶
func (p *C2SClientTickEnd) State() jp.State
func (*C2SClientTickEnd) Write ¶
func (p *C2SClientTickEnd) Write(*ns.PacketBuffer) error
type C2SCommandSuggestion ¶
C2SCommandSuggestion represents "Command Suggestions Request".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Command_Suggestions_Request
func (*C2SCommandSuggestion) Bound ¶
func (p *C2SCommandSuggestion) Bound() jp.Bound
func (*C2SCommandSuggestion) ID ¶
func (p *C2SCommandSuggestion) ID() ns.VarInt
func (*C2SCommandSuggestion) Read ¶
func (p *C2SCommandSuggestion) Read(buf *ns.PacketBuffer) error
func (*C2SCommandSuggestion) State ¶
func (p *C2SCommandSuggestion) State() jp.State
func (*C2SCommandSuggestion) Write ¶
func (p *C2SCommandSuggestion) Write(buf *ns.PacketBuffer) error
type C2SConfigurationAcknowledged ¶
type C2SConfigurationAcknowledged struct{}
C2SConfigurationAcknowledged represents "Acknowledge Configuration".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Acknowledge_Configuration
func (*C2SConfigurationAcknowledged) Bound ¶
func (p *C2SConfigurationAcknowledged) Bound() jp.Bound
func (*C2SConfigurationAcknowledged) ID ¶
func (p *C2SConfigurationAcknowledged) ID() ns.VarInt
func (*C2SConfigurationAcknowledged) Read ¶
func (p *C2SConfigurationAcknowledged) Read(*ns.PacketBuffer) error
func (*C2SConfigurationAcknowledged) State ¶
func (p *C2SConfigurationAcknowledged) State() jp.State
func (*C2SConfigurationAcknowledged) Write ¶
func (p *C2SConfigurationAcknowledged) Write(*ns.PacketBuffer) error
type C2SContainerButtonClick ¶
C2SContainerButtonClick represents "Click Container Button".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Click_Container_Button
func (*C2SContainerButtonClick) Bound ¶
func (p *C2SContainerButtonClick) Bound() jp.Bound
func (*C2SContainerButtonClick) ID ¶
func (p *C2SContainerButtonClick) ID() ns.VarInt
func (*C2SContainerButtonClick) Read ¶
func (p *C2SContainerButtonClick) Read(buf *ns.PacketBuffer) error
func (*C2SContainerButtonClick) State ¶
func (p *C2SContainerButtonClick) State() jp.State
func (*C2SContainerButtonClick) Write ¶
func (p *C2SContainerButtonClick) Write(buf *ns.PacketBuffer) error
type C2SContainerClick ¶
type C2SContainerClick struct {
WindowId ns.VarInt
StateId ns.VarInt
Slot ns.Int16
Button ns.Int8
Mode ns.VarInt
ChangedSlots []ChangedSlot
CarriedItem ns.HashedSlot
}
C2SContainerClick represents "Click Container".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Click_Container
func (*C2SContainerClick) Bound ¶
func (p *C2SContainerClick) Bound() jp.Bound
func (*C2SContainerClick) ID ¶
func (p *C2SContainerClick) ID() ns.VarInt
func (*C2SContainerClick) Read ¶
func (p *C2SContainerClick) Read(buf *ns.PacketBuffer) error
func (*C2SContainerClick) State ¶
func (p *C2SContainerClick) State() jp.State
func (*C2SContainerClick) Write ¶
func (p *C2SContainerClick) Write(buf *ns.PacketBuffer) error
type C2SContainerClose ¶
C2SContainerClose represents "Close Container".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Close_Container
func (*C2SContainerClose) Bound ¶
func (p *C2SContainerClose) Bound() jp.Bound
func (*C2SContainerClose) ID ¶
func (p *C2SContainerClose) ID() ns.VarInt
func (*C2SContainerClose) Read ¶
func (p *C2SContainerClose) Read(buf *ns.PacketBuffer) error
func (*C2SContainerClose) State ¶
func (p *C2SContainerClose) State() jp.State
func (*C2SContainerClose) Write ¶
func (p *C2SContainerClose) Write(buf *ns.PacketBuffer) error
type C2SContainerSlotStateChanged ¶
type C2SContainerSlotStateChanged struct {
SlotId ns.VarInt
WindowId ns.VarInt
SlotEnabled ns.Boolean
}
C2SContainerSlotStateChanged represents "Change Container Slot State".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Change_Container_Slot_State
func (*C2SContainerSlotStateChanged) Bound ¶
func (p *C2SContainerSlotStateChanged) Bound() jp.Bound
func (*C2SContainerSlotStateChanged) ID ¶
func (p *C2SContainerSlotStateChanged) ID() ns.VarInt
func (*C2SContainerSlotStateChanged) Read ¶
func (p *C2SContainerSlotStateChanged) Read(buf *ns.PacketBuffer) error
func (*C2SContainerSlotStateChanged) State ¶
func (p *C2SContainerSlotStateChanged) State() jp.State
func (*C2SContainerSlotStateChanged) Write ¶
func (p *C2SContainerSlotStateChanged) Write(buf *ns.PacketBuffer) error
type C2SCookieResponseConfiguration ¶
type C2SCookieResponseConfiguration struct {
// The identifier of the cookie.
Key ns.Identifier
// The data of the cookie.
Payload ns.PrefixedOptional[ns.ByteArray]
}
C2SCookieResponseConfiguration represents "Cookie Response (configuration)".
Response to a Cookie Request (configuration) from the server. The vanilla server only accepts responses of up to 5 kiB in size.
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Cookie_Response_(Configuration)
func (*C2SCookieResponseConfiguration) Bound ¶
func (p *C2SCookieResponseConfiguration) Bound() jp.Bound
func (*C2SCookieResponseConfiguration) ID ¶
func (p *C2SCookieResponseConfiguration) ID() ns.VarInt
func (*C2SCookieResponseConfiguration) Read ¶
func (p *C2SCookieResponseConfiguration) Read(buf *ns.PacketBuffer) error
func (*C2SCookieResponseConfiguration) State ¶
func (p *C2SCookieResponseConfiguration) State() jp.State
func (*C2SCookieResponseConfiguration) Write ¶
func (p *C2SCookieResponseConfiguration) Write(buf *ns.PacketBuffer) error
type C2SCookieResponseLogin ¶
type C2SCookieResponseLogin struct {
// The identifier of the cookie.
Key ns.Identifier
// The data of the cookie.
Payload ns.PrefixedOptional[ns.ByteArray]
}
C2SCookieResponseLogin represents "Cookie Response (login)".
Response to a Cookie Request (login) from the server. The vanilla server only accepts responses of up to 5 kiB in size.
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Cookie_Response_(Login)
func (*C2SCookieResponseLogin) Bound ¶
func (p *C2SCookieResponseLogin) Bound() jp.Bound
func (*C2SCookieResponseLogin) ID ¶
func (p *C2SCookieResponseLogin) ID() ns.VarInt
func (*C2SCookieResponseLogin) Read ¶
func (p *C2SCookieResponseLogin) Read(buf *ns.PacketBuffer) error
func (*C2SCookieResponseLogin) State ¶
func (p *C2SCookieResponseLogin) State() jp.State
func (*C2SCookieResponseLogin) Write ¶
func (p *C2SCookieResponseLogin) Write(buf *ns.PacketBuffer) error
type C2SCookieResponsePlay ¶
type C2SCookieResponsePlay struct {
Key ns.Identifier
Payload ns.PrefixedOptional[ns.ByteArray]
}
C2SCookieResponsePlay represents "Cookie Response (play)".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Cookie_Response_(Play)
func (*C2SCookieResponsePlay) Bound ¶
func (p *C2SCookieResponsePlay) Bound() jp.Bound
func (*C2SCookieResponsePlay) ID ¶
func (p *C2SCookieResponsePlay) ID() ns.VarInt
func (*C2SCookieResponsePlay) Read ¶
func (p *C2SCookieResponsePlay) Read(buf *ns.PacketBuffer) error
func (*C2SCookieResponsePlay) State ¶
func (p *C2SCookieResponsePlay) State() jp.State
func (*C2SCookieResponsePlay) Write ¶
func (p *C2SCookieResponsePlay) Write(buf *ns.PacketBuffer) error
type C2SCustomClickActionConfiguration ¶
type C2SCustomClickActionConfiguration struct {
// The identifier for the click action.
Id ns.Identifier
// The data to send with the click action. May be a TAG_END (0).
Payload nbt.Tag
}
C2SCustomClickActionConfiguration represents "Custom Click Action (configuration)".
Sent when the client clicks a Text Component with the minecraft:custom click action.
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Custom_Click_Action_(Configuration)
func (*C2SCustomClickActionConfiguration) Bound ¶
func (p *C2SCustomClickActionConfiguration) Bound() jp.Bound
func (*C2SCustomClickActionConfiguration) ID ¶
func (p *C2SCustomClickActionConfiguration) ID() ns.VarInt
func (*C2SCustomClickActionConfiguration) Read ¶
func (p *C2SCustomClickActionConfiguration) Read(buf *ns.PacketBuffer) error
func (*C2SCustomClickActionConfiguration) State ¶
func (p *C2SCustomClickActionConfiguration) State() jp.State
func (*C2SCustomClickActionConfiguration) Write ¶
func (p *C2SCustomClickActionConfiguration) Write(buf *ns.PacketBuffer) error
type C2SCustomClickActionPlay ¶
type C2SCustomClickActionPlay struct {
Id ns.Identifier
Payload nbt.Tag
}
C2SCustomClickActionPlay represents "Custom Click Action (play)".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Custom_Click_Action_(Play)
func (*C2SCustomClickActionPlay) Bound ¶
func (p *C2SCustomClickActionPlay) Bound() jp.Bound
func (*C2SCustomClickActionPlay) ID ¶
func (p *C2SCustomClickActionPlay) ID() ns.VarInt
func (*C2SCustomClickActionPlay) Read ¶
func (p *C2SCustomClickActionPlay) Read(buf *ns.PacketBuffer) error
func (*C2SCustomClickActionPlay) State ¶
func (p *C2SCustomClickActionPlay) State() jp.State
func (*C2SCustomClickActionPlay) Write ¶
func (p *C2SCustomClickActionPlay) Write(buf *ns.PacketBuffer) error
type C2SCustomPayloadConfiguration ¶
type C2SCustomPayloadConfiguration struct {
// Name of the plugin channel used to send the data.
Channel ns.Identifier
// Any data, depending on the channel.
Data ns.ByteArray
}
C2SCustomPayloadConfiguration represents "Serverbound Plugin Message (configuration)".
Mods and plugins can use this to send their data.
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Serverbound_Plugin_Message_(Configuration)
func (*C2SCustomPayloadConfiguration) Bound ¶
func (p *C2SCustomPayloadConfiguration) Bound() jp.Bound
func (*C2SCustomPayloadConfiguration) ID ¶
func (p *C2SCustomPayloadConfiguration) ID() ns.VarInt
func (*C2SCustomPayloadConfiguration) Read ¶
func (p *C2SCustomPayloadConfiguration) Read(buf *ns.PacketBuffer) error
func (*C2SCustomPayloadConfiguration) State ¶
func (p *C2SCustomPayloadConfiguration) State() jp.State
func (*C2SCustomPayloadConfiguration) Write ¶
func (p *C2SCustomPayloadConfiguration) Write(buf *ns.PacketBuffer) error
type C2SCustomPayloadPlay ¶
type C2SCustomPayloadPlay struct {
Channel ns.Identifier
Data ns.ByteArray
}
C2SCustomPayloadPlay represents "Serverbound Plugin Message (play)".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Serverbound_Plugin_Message_(Play)
func (*C2SCustomPayloadPlay) Bound ¶
func (p *C2SCustomPayloadPlay) Bound() jp.Bound
func (*C2SCustomPayloadPlay) ID ¶
func (p *C2SCustomPayloadPlay) ID() ns.VarInt
func (*C2SCustomPayloadPlay) Read ¶
func (p *C2SCustomPayloadPlay) Read(buf *ns.PacketBuffer) error
func (*C2SCustomPayloadPlay) State ¶
func (p *C2SCustomPayloadPlay) State() jp.State
func (*C2SCustomPayloadPlay) Write ¶
func (p *C2SCustomPayloadPlay) Write(buf *ns.PacketBuffer) error
type C2SCustomQueryAnswer ¶
type C2SCustomQueryAnswer struct {
// Should match ID from server.
MessageId ns.VarInt
// Any data, depending on the channel. Only present if the client understood the request.
Data ns.PrefixedOptional[ns.ByteArray]
}
C2SCustomQueryAnswer represents "Login Plugin Response".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Login_Plugin_Response
func (*C2SCustomQueryAnswer) Bound ¶
func (p *C2SCustomQueryAnswer) Bound() jp.Bound
func (*C2SCustomQueryAnswer) ID ¶
func (p *C2SCustomQueryAnswer) ID() ns.VarInt
func (*C2SCustomQueryAnswer) Read ¶
func (p *C2SCustomQueryAnswer) Read(buf *ns.PacketBuffer) error
func (*C2SCustomQueryAnswer) State ¶
func (p *C2SCustomQueryAnswer) State() jp.State
func (*C2SCustomQueryAnswer) Write ¶
func (p *C2SCustomQueryAnswer) Write(buf *ns.PacketBuffer) error
type C2SDebugSubscriptionRequest ¶
C2SDebugSubscriptionRequest represents "Debug Subscription Request".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Debug_Subscription_Request
func (*C2SDebugSubscriptionRequest) Bound ¶
func (p *C2SDebugSubscriptionRequest) Bound() jp.Bound
func (*C2SDebugSubscriptionRequest) ID ¶
func (p *C2SDebugSubscriptionRequest) ID() ns.VarInt
func (*C2SDebugSubscriptionRequest) Read ¶
func (p *C2SDebugSubscriptionRequest) Read(buf *ns.PacketBuffer) error
func (*C2SDebugSubscriptionRequest) State ¶
func (p *C2SDebugSubscriptionRequest) State() jp.State
func (*C2SDebugSubscriptionRequest) Write ¶
func (p *C2SDebugSubscriptionRequest) Write(buf *ns.PacketBuffer) error
type C2SEditBook ¶
C2SEditBook represents "Edit Book".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Edit_Book
func (*C2SEditBook) Bound ¶
func (p *C2SEditBook) Bound() jp.Bound
func (*C2SEditBook) ID ¶
func (p *C2SEditBook) ID() ns.VarInt
func (*C2SEditBook) Read ¶
func (p *C2SEditBook) Read(buf *ns.PacketBuffer) error
func (*C2SEditBook) State ¶
func (p *C2SEditBook) State() jp.State
func (*C2SEditBook) Write ¶
func (p *C2SEditBook) Write(buf *ns.PacketBuffer) error
type C2SEntityTagQuery ¶
C2SEntityTagQuery represents "Query Entity Tag".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Query_Entity_Tag
func (*C2SEntityTagQuery) Bound ¶
func (p *C2SEntityTagQuery) Bound() jp.Bound
func (*C2SEntityTagQuery) ID ¶
func (p *C2SEntityTagQuery) ID() ns.VarInt
func (*C2SEntityTagQuery) Read ¶
func (p *C2SEntityTagQuery) Read(buf *ns.PacketBuffer) error
func (*C2SEntityTagQuery) State ¶
func (p *C2SEntityTagQuery) State() jp.State
func (*C2SEntityTagQuery) Write ¶
func (p *C2SEntityTagQuery) Write(buf *ns.PacketBuffer) error
type C2SFinishConfiguration ¶
type C2SFinishConfiguration struct{}
C2SFinishConfiguration represents "Acknowledge Finish Configuration".
Sent by the client to notify the server that the configuration process has finished. This packet switches the connection state to play.
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Acknowledge_Finish_Configuration
func (*C2SFinishConfiguration) Bound ¶
func (p *C2SFinishConfiguration) Bound() jp.Bound
func (*C2SFinishConfiguration) ID ¶
func (p *C2SFinishConfiguration) ID() ns.VarInt
func (*C2SFinishConfiguration) Read ¶
func (p *C2SFinishConfiguration) Read(*ns.PacketBuffer) error
func (*C2SFinishConfiguration) State ¶
func (p *C2SFinishConfiguration) State() jp.State
func (*C2SFinishConfiguration) Write ¶
func (p *C2SFinishConfiguration) Write(*ns.PacketBuffer) error
type C2SHello ¶
type C2SHello struct {
// Player's Username.
Name ns.String
// The UUID of the player logging in. Unused by the vanilla server.
PlayerUuid ns.UUID
}
C2SHello represents "Login Start".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Login_Start
type C2SIntention ¶
type C2SIntention struct {
// See protocol version numbers (currently 774 in Minecraft 1.21.11).
ProtocolVersion ns.VarInt
// Hostname or IP, e.g. localhost or 127.0.0.1, that was used to connect.
ServerAddress ns.String
// Default is 25565.
ServerPort ns.Uint16
// 1 for Status, 2 for Login, 3 for Transfer.
Intent ns.VarInt
}
C2SIntention represents "Handshake".
This packet causes the server to switch into the target state. It should be sent right after opening the TCP connection to prevent the server from disconnecting.
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Handshake
func (*C2SIntention) Bound ¶
func (p *C2SIntention) Bound() jp.Bound
func (*C2SIntention) ID ¶
func (p *C2SIntention) ID() ns.VarInt
func (*C2SIntention) Read ¶
func (p *C2SIntention) Read(buf *ns.PacketBuffer) error
func (*C2SIntention) State ¶
func (p *C2SIntention) State() jp.State
func (*C2SIntention) Write ¶
func (p *C2SIntention) Write(buf *ns.PacketBuffer) error
type C2SInteract ¶
type C2SInteract struct {
EntityId ns.VarInt
Type ns.VarInt
TargetX ns.Float32 // only if Type is 2 (interact at)
TargetY ns.Float32 // only if Type is 2
TargetZ ns.Float32 // only if Type is 2
Hand ns.VarInt // only if Type is 0 or 2
SneakKeyPressed ns.Boolean
}
C2SInteract represents "Interact".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Interact
func (*C2SInteract) Bound ¶
func (p *C2SInteract) Bound() jp.Bound
func (*C2SInteract) ID ¶
func (p *C2SInteract) ID() ns.VarInt
func (*C2SInteract) Read ¶
func (p *C2SInteract) Read(buf *ns.PacketBuffer) error
func (*C2SInteract) State ¶
func (p *C2SInteract) State() jp.State
func (*C2SInteract) Write ¶
func (p *C2SInteract) Write(buf *ns.PacketBuffer) error
type C2SJigsawGenerate ¶
C2SJigsawGenerate represents "Jigsaw Generate".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Jigsaw_Generate
func (*C2SJigsawGenerate) Bound ¶
func (p *C2SJigsawGenerate) Bound() jp.Bound
func (*C2SJigsawGenerate) ID ¶
func (p *C2SJigsawGenerate) ID() ns.VarInt
func (*C2SJigsawGenerate) Read ¶
func (p *C2SJigsawGenerate) Read(buf *ns.PacketBuffer) error
func (*C2SJigsawGenerate) State ¶
func (p *C2SJigsawGenerate) State() jp.State
func (*C2SJigsawGenerate) Write ¶
func (p *C2SJigsawGenerate) Write(buf *ns.PacketBuffer) error
type C2SKeepAliveConfiguration ¶
C2SKeepAliveConfiguration represents "Serverbound Keep Alive (configuration)".
The server will frequently send out a keep-alive, each containing a random ID. The client must respond with the same packet.
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Serverbound_Keep_Alive_(Configuration)
func (*C2SKeepAliveConfiguration) Bound ¶
func (p *C2SKeepAliveConfiguration) Bound() jp.Bound
func (*C2SKeepAliveConfiguration) ID ¶
func (p *C2SKeepAliveConfiguration) ID() ns.VarInt
func (*C2SKeepAliveConfiguration) Read ¶
func (p *C2SKeepAliveConfiguration) Read(buf *ns.PacketBuffer) error
func (*C2SKeepAliveConfiguration) State ¶
func (p *C2SKeepAliveConfiguration) State() jp.State
func (*C2SKeepAliveConfiguration) Write ¶
func (p *C2SKeepAliveConfiguration) Write(buf *ns.PacketBuffer) error
type C2SKeepAlivePlay ¶
C2SKeepAlivePlay represents "Serverbound Keep Alive (play)".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Serverbound_Keep_Alive_(Play)
func (*C2SKeepAlivePlay) Bound ¶
func (p *C2SKeepAlivePlay) Bound() jp.Bound
func (*C2SKeepAlivePlay) ID ¶
func (p *C2SKeepAlivePlay) ID() ns.VarInt
func (*C2SKeepAlivePlay) Read ¶
func (p *C2SKeepAlivePlay) Read(buf *ns.PacketBuffer) error
func (*C2SKeepAlivePlay) State ¶
func (p *C2SKeepAlivePlay) State() jp.State
func (*C2SKeepAlivePlay) Write ¶
func (p *C2SKeepAlivePlay) Write(buf *ns.PacketBuffer) error
type C2SKey ¶
type C2SKey struct {
SharedSecret ns.ByteArray
// Verify Token value, encrypted with the same public key as the shared secret.
VerifyToken ns.ByteArray
}
C2SKey represents "Encryption Response".
See protocol encryption for details.
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Encryption_Response
type C2SLockDifficulty ¶
C2SLockDifficulty represents "Lock Difficulty".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Lock_Difficulty
func (*C2SLockDifficulty) Bound ¶
func (p *C2SLockDifficulty) Bound() jp.Bound
func (*C2SLockDifficulty) ID ¶
func (p *C2SLockDifficulty) ID() ns.VarInt
func (*C2SLockDifficulty) Read ¶
func (p *C2SLockDifficulty) Read(buf *ns.PacketBuffer) error
func (*C2SLockDifficulty) State ¶
func (p *C2SLockDifficulty) State() jp.State
func (*C2SLockDifficulty) Write ¶
func (p *C2SLockDifficulty) Write(buf *ns.PacketBuffer) error
type C2SLoginAcknowledged ¶
type C2SLoginAcknowledged struct{}
C2SLoginAcknowledged represents "Login Acknowledged".
Acknowledgement to the Login Success packet sent by the server. This packet switches the connection state to configuration.
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Login_Acknowledged
func (*C2SLoginAcknowledged) Bound ¶
func (p *C2SLoginAcknowledged) Bound() jp.Bound
func (*C2SLoginAcknowledged) ID ¶
func (p *C2SLoginAcknowledged) ID() ns.VarInt
func (*C2SLoginAcknowledged) Read ¶
func (p *C2SLoginAcknowledged) Read(*ns.PacketBuffer) error
func (*C2SLoginAcknowledged) State ¶
func (p *C2SLoginAcknowledged) State() jp.State
func (*C2SLoginAcknowledged) Write ¶
func (p *C2SLoginAcknowledged) Write(*ns.PacketBuffer) error
type C2SMovePlayerPos ¶
C2SMovePlayerPos represents "Set Player Position".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Set_Player_Position
func (*C2SMovePlayerPos) Bound ¶
func (p *C2SMovePlayerPos) Bound() jp.Bound
func (*C2SMovePlayerPos) ID ¶
func (p *C2SMovePlayerPos) ID() ns.VarInt
func (*C2SMovePlayerPos) Read ¶
func (p *C2SMovePlayerPos) Read(buf *ns.PacketBuffer) error
func (*C2SMovePlayerPos) State ¶
func (p *C2SMovePlayerPos) State() jp.State
func (*C2SMovePlayerPos) Write ¶
func (p *C2SMovePlayerPos) Write(buf *ns.PacketBuffer) error
type C2SMovePlayerPosRot ¶
type C2SMovePlayerPosRot struct {
X ns.Float64
FeetY ns.Float64
Z ns.Float64
Yaw ns.Float32
Pitch ns.Float32
Flags ns.Int8
}
C2SMovePlayerPosRot represents "Set Player Position and Rotation".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Set_Player_Position_And_Rotation
func (*C2SMovePlayerPosRot) Bound ¶
func (p *C2SMovePlayerPosRot) Bound() jp.Bound
func (*C2SMovePlayerPosRot) ID ¶
func (p *C2SMovePlayerPosRot) ID() ns.VarInt
func (*C2SMovePlayerPosRot) Read ¶
func (p *C2SMovePlayerPosRot) Read(buf *ns.PacketBuffer) error
func (*C2SMovePlayerPosRot) State ¶
func (p *C2SMovePlayerPosRot) State() jp.State
func (*C2SMovePlayerPosRot) Write ¶
func (p *C2SMovePlayerPosRot) Write(buf *ns.PacketBuffer) error
type C2SMovePlayerRot ¶
C2SMovePlayerRot represents "Set Player Rotation".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Set_Player_Rotation
func (*C2SMovePlayerRot) Bound ¶
func (p *C2SMovePlayerRot) Bound() jp.Bound
func (*C2SMovePlayerRot) ID ¶
func (p *C2SMovePlayerRot) ID() ns.VarInt
func (*C2SMovePlayerRot) Read ¶
func (p *C2SMovePlayerRot) Read(buf *ns.PacketBuffer) error
func (*C2SMovePlayerRot) State ¶
func (p *C2SMovePlayerRot) State() jp.State
func (*C2SMovePlayerRot) Write ¶
func (p *C2SMovePlayerRot) Write(buf *ns.PacketBuffer) error
type C2SMovePlayerStatusOnly ¶
C2SMovePlayerStatusOnly represents "Set Player Movement Flags".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Set_Player_Movement_Flags
func (*C2SMovePlayerStatusOnly) Bound ¶
func (p *C2SMovePlayerStatusOnly) Bound() jp.Bound
func (*C2SMovePlayerStatusOnly) ID ¶
func (p *C2SMovePlayerStatusOnly) ID() ns.VarInt
func (*C2SMovePlayerStatusOnly) Read ¶
func (p *C2SMovePlayerStatusOnly) Read(buf *ns.PacketBuffer) error
func (*C2SMovePlayerStatusOnly) State ¶
func (p *C2SMovePlayerStatusOnly) State() jp.State
func (*C2SMovePlayerStatusOnly) Write ¶
func (p *C2SMovePlayerStatusOnly) Write(buf *ns.PacketBuffer) error
type C2SMoveVehicle ¶
type C2SMoveVehicle struct {
X ns.Float64
Y ns.Float64
Z ns.Float64
Yaw ns.Float32
Pitch ns.Float32
OnGround ns.Boolean
}
C2SMoveVehicle represents "Move Vehicle (serverbound)".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Move_Vehicle_(Serverbound)
func (*C2SMoveVehicle) Bound ¶
func (p *C2SMoveVehicle) Bound() jp.Bound
func (*C2SMoveVehicle) ID ¶
func (p *C2SMoveVehicle) ID() ns.VarInt
func (*C2SMoveVehicle) Read ¶
func (p *C2SMoveVehicle) Read(buf *ns.PacketBuffer) error
func (*C2SMoveVehicle) State ¶
func (p *C2SMoveVehicle) State() jp.State
func (*C2SMoveVehicle) Write ¶
func (p *C2SMoveVehicle) Write(buf *ns.PacketBuffer) error
type C2SPaddleBoat ¶
C2SPaddleBoat represents "Paddle Boat".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Paddle_Boat
func (*C2SPaddleBoat) Bound ¶
func (p *C2SPaddleBoat) Bound() jp.Bound
func (*C2SPaddleBoat) ID ¶
func (p *C2SPaddleBoat) ID() ns.VarInt
func (*C2SPaddleBoat) Read ¶
func (p *C2SPaddleBoat) Read(buf *ns.PacketBuffer) error
func (*C2SPaddleBoat) State ¶
func (p *C2SPaddleBoat) State() jp.State
func (*C2SPaddleBoat) Write ¶
func (p *C2SPaddleBoat) Write(buf *ns.PacketBuffer) error
type C2SPickItemFromBlock ¶
C2SPickItemFromBlock represents "Pick Item From Block".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Pick_Item_From_Block
func (*C2SPickItemFromBlock) Bound ¶
func (p *C2SPickItemFromBlock) Bound() jp.Bound
func (*C2SPickItemFromBlock) ID ¶
func (p *C2SPickItemFromBlock) ID() ns.VarInt
func (*C2SPickItemFromBlock) Read ¶
func (p *C2SPickItemFromBlock) Read(buf *ns.PacketBuffer) error
func (*C2SPickItemFromBlock) State ¶
func (p *C2SPickItemFromBlock) State() jp.State
func (*C2SPickItemFromBlock) Write ¶
func (p *C2SPickItemFromBlock) Write(buf *ns.PacketBuffer) error
type C2SPickItemFromEntity ¶
C2SPickItemFromEntity represents "Pick Item From Entity".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Pick_Item_From_Entity
func (*C2SPickItemFromEntity) Bound ¶
func (p *C2SPickItemFromEntity) Bound() jp.Bound
func (*C2SPickItemFromEntity) ID ¶
func (p *C2SPickItemFromEntity) ID() ns.VarInt
func (*C2SPickItemFromEntity) Read ¶
func (p *C2SPickItemFromEntity) Read(buf *ns.PacketBuffer) error
func (*C2SPickItemFromEntity) State ¶
func (p *C2SPickItemFromEntity) State() jp.State
func (*C2SPickItemFromEntity) Write ¶
func (p *C2SPickItemFromEntity) Write(buf *ns.PacketBuffer) error
type C2SPingRequestPlay ¶
C2SPingRequestPlay represents "Ping Request (play)".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Ping_Request_(Play)
func (*C2SPingRequestPlay) Bound ¶
func (p *C2SPingRequestPlay) Bound() jp.Bound
func (*C2SPingRequestPlay) ID ¶
func (p *C2SPingRequestPlay) ID() ns.VarInt
func (*C2SPingRequestPlay) Read ¶
func (p *C2SPingRequestPlay) Read(buf *ns.PacketBuffer) error
func (*C2SPingRequestPlay) State ¶
func (p *C2SPingRequestPlay) State() jp.State
func (*C2SPingRequestPlay) Write ¶
func (p *C2SPingRequestPlay) Write(buf *ns.PacketBuffer) error
type C2SPingRequestStatus ¶
type C2SPingRequestStatus struct {
// May be any number, but vanilla clients will always use the timestamp in milliseconds.
Timestamp ns.Int64
}
C2SPingRequestStatus represents "Ping Request (status)".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Ping_Request_(Status)
func (*C2SPingRequestStatus) Bound ¶
func (p *C2SPingRequestStatus) Bound() jp.Bound
func (*C2SPingRequestStatus) ID ¶
func (p *C2SPingRequestStatus) ID() ns.VarInt
func (*C2SPingRequestStatus) Read ¶
func (p *C2SPingRequestStatus) Read(buf *ns.PacketBuffer) error
func (*C2SPingRequestStatus) State ¶
func (p *C2SPingRequestStatus) State() jp.State
func (*C2SPingRequestStatus) Write ¶
func (p *C2SPingRequestStatus) Write(buf *ns.PacketBuffer) error
type C2SPlaceRecipe ¶
C2SPlaceRecipe represents "Place Recipe".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Place_Recipe
func (*C2SPlaceRecipe) Bound ¶
func (p *C2SPlaceRecipe) Bound() jp.Bound
func (*C2SPlaceRecipe) ID ¶
func (p *C2SPlaceRecipe) ID() ns.VarInt
func (*C2SPlaceRecipe) Read ¶
func (p *C2SPlaceRecipe) Read(buf *ns.PacketBuffer) error
func (*C2SPlaceRecipe) State ¶
func (p *C2SPlaceRecipe) State() jp.State
func (*C2SPlaceRecipe) Write ¶
func (p *C2SPlaceRecipe) Write(buf *ns.PacketBuffer) error
type C2SPlayerAbilities ¶
C2SPlayerAbilities represents "Player Abilities (serverbound)".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Player_Abilities_(Serverbound)
func (*C2SPlayerAbilities) Bound ¶
func (p *C2SPlayerAbilities) Bound() jp.Bound
func (*C2SPlayerAbilities) ID ¶
func (p *C2SPlayerAbilities) ID() ns.VarInt
func (*C2SPlayerAbilities) Read ¶
func (p *C2SPlayerAbilities) Read(buf *ns.PacketBuffer) error
func (*C2SPlayerAbilities) State ¶
func (p *C2SPlayerAbilities) State() jp.State
func (*C2SPlayerAbilities) Write ¶
func (p *C2SPlayerAbilities) Write(buf *ns.PacketBuffer) error
type C2SPlayerAction ¶
type C2SPlayerAction struct {
Status ns.VarInt
Location ns.Position
Face ns.Int8
Sequence ns.VarInt
}
C2SPlayerAction represents "Player Action".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Player_Action
func (*C2SPlayerAction) Bound ¶
func (p *C2SPlayerAction) Bound() jp.Bound
func (*C2SPlayerAction) ID ¶
func (p *C2SPlayerAction) ID() ns.VarInt
func (*C2SPlayerAction) Read ¶
func (p *C2SPlayerAction) Read(buf *ns.PacketBuffer) error
func (*C2SPlayerAction) State ¶
func (p *C2SPlayerAction) State() jp.State
func (*C2SPlayerAction) Write ¶
func (p *C2SPlayerAction) Write(buf *ns.PacketBuffer) error
type C2SPlayerCommand ¶
C2SPlayerCommand represents "Player Command".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Player_Command
func (*C2SPlayerCommand) Bound ¶
func (p *C2SPlayerCommand) Bound() jp.Bound
func (*C2SPlayerCommand) ID ¶
func (p *C2SPlayerCommand) ID() ns.VarInt
func (*C2SPlayerCommand) Read ¶
func (p *C2SPlayerCommand) Read(buf *ns.PacketBuffer) error
func (*C2SPlayerCommand) State ¶
func (p *C2SPlayerCommand) State() jp.State
func (*C2SPlayerCommand) Write ¶
func (p *C2SPlayerCommand) Write(buf *ns.PacketBuffer) error
type C2SPlayerInput ¶
C2SPlayerInput represents "Player Input".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Player_Input
func (*C2SPlayerInput) Bound ¶
func (p *C2SPlayerInput) Bound() jp.Bound
func (*C2SPlayerInput) ID ¶
func (p *C2SPlayerInput) ID() ns.VarInt
func (*C2SPlayerInput) Read ¶
func (p *C2SPlayerInput) Read(buf *ns.PacketBuffer) error
func (*C2SPlayerInput) State ¶
func (p *C2SPlayerInput) State() jp.State
func (*C2SPlayerInput) Write ¶
func (p *C2SPlayerInput) Write(buf *ns.PacketBuffer) error
type C2SPlayerLoaded ¶
type C2SPlayerLoaded struct{}
C2SPlayerLoaded represents "Player Loaded".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Player_Loaded
func (*C2SPlayerLoaded) Bound ¶
func (p *C2SPlayerLoaded) Bound() jp.Bound
func (*C2SPlayerLoaded) ID ¶
func (p *C2SPlayerLoaded) ID() ns.VarInt
func (*C2SPlayerLoaded) Read ¶
func (p *C2SPlayerLoaded) Read(*ns.PacketBuffer) error
func (*C2SPlayerLoaded) State ¶
func (p *C2SPlayerLoaded) State() jp.State
func (*C2SPlayerLoaded) Write ¶
func (p *C2SPlayerLoaded) Write(*ns.PacketBuffer) error
type C2SPongConfiguration ¶
C2SPongConfiguration represents "Pong (configuration)".
Response to the clientbound packet (Ping) with the same id.
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Pong_(Configuration)
func (*C2SPongConfiguration) Bound ¶
func (p *C2SPongConfiguration) Bound() jp.Bound
func (*C2SPongConfiguration) ID ¶
func (p *C2SPongConfiguration) ID() ns.VarInt
func (*C2SPongConfiguration) Read ¶
func (p *C2SPongConfiguration) Read(buf *ns.PacketBuffer) error
func (*C2SPongConfiguration) State ¶
func (p *C2SPongConfiguration) State() jp.State
func (*C2SPongConfiguration) Write ¶
func (p *C2SPongConfiguration) Write(buf *ns.PacketBuffer) error
type C2SPongPlay ¶
C2SPongPlay represents "Pong (play)".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Pong_(Play)
func (*C2SPongPlay) Bound ¶
func (p *C2SPongPlay) Bound() jp.Bound
func (*C2SPongPlay) ID ¶
func (p *C2SPongPlay) ID() ns.VarInt
func (*C2SPongPlay) Read ¶
func (p *C2SPongPlay) Read(buf *ns.PacketBuffer) error
func (*C2SPongPlay) State ¶
func (p *C2SPongPlay) State() jp.State
func (*C2SPongPlay) Write ¶
func (p *C2SPongPlay) Write(buf *ns.PacketBuffer) error
type C2SRecipeBookChangeSettings ¶
type C2SRecipeBookChangeSettings struct {
BookId ns.VarInt
BookOpen ns.Boolean
FilterActive ns.Boolean
}
C2SRecipeBookChangeSettings represents "Change Recipe Book Settings".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Change_Recipe_Book_Settings
func (*C2SRecipeBookChangeSettings) Bound ¶
func (p *C2SRecipeBookChangeSettings) Bound() jp.Bound
func (*C2SRecipeBookChangeSettings) ID ¶
func (p *C2SRecipeBookChangeSettings) ID() ns.VarInt
func (*C2SRecipeBookChangeSettings) Read ¶
func (p *C2SRecipeBookChangeSettings) Read(buf *ns.PacketBuffer) error
func (*C2SRecipeBookChangeSettings) State ¶
func (p *C2SRecipeBookChangeSettings) State() jp.State
func (*C2SRecipeBookChangeSettings) Write ¶
func (p *C2SRecipeBookChangeSettings) Write(buf *ns.PacketBuffer) error
type C2SRecipeBookSeenRecipe ¶
C2SRecipeBookSeenRecipe represents "Set Seen Recipe".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Set_Seen_Recipe
func (*C2SRecipeBookSeenRecipe) Bound ¶
func (p *C2SRecipeBookSeenRecipe) Bound() jp.Bound
func (*C2SRecipeBookSeenRecipe) ID ¶
func (p *C2SRecipeBookSeenRecipe) ID() ns.VarInt
func (*C2SRecipeBookSeenRecipe) Read ¶
func (p *C2SRecipeBookSeenRecipe) Read(buf *ns.PacketBuffer) error
func (*C2SRecipeBookSeenRecipe) State ¶
func (p *C2SRecipeBookSeenRecipe) State() jp.State
func (*C2SRecipeBookSeenRecipe) Write ¶
func (p *C2SRecipeBookSeenRecipe) Write(buf *ns.PacketBuffer) error
type C2SRenameItem ¶
C2SRenameItem represents "Rename Item".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Rename_Item
func (*C2SRenameItem) Bound ¶
func (p *C2SRenameItem) Bound() jp.Bound
func (*C2SRenameItem) ID ¶
func (p *C2SRenameItem) ID() ns.VarInt
func (*C2SRenameItem) Read ¶
func (p *C2SRenameItem) Read(buf *ns.PacketBuffer) error
func (*C2SRenameItem) State ¶
func (p *C2SRenameItem) State() jp.State
func (*C2SRenameItem) Write ¶
func (p *C2SRenameItem) Write(buf *ns.PacketBuffer) error
type C2SResourcePackConfiguration ¶
type C2SResourcePackConfiguration struct {
// The unique identifier of the resource pack received in the Add Resource Pack request.
Uuid ns.UUID
// Result ID (see protocol docs).
Result ns.VarInt
}
C2SResourcePackConfiguration represents "Resource Pack Response (configuration)".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Resource_Pack_Response_(Configuration)
func (*C2SResourcePackConfiguration) Bound ¶
func (p *C2SResourcePackConfiguration) Bound() jp.Bound
func (*C2SResourcePackConfiguration) ID ¶
func (p *C2SResourcePackConfiguration) ID() ns.VarInt
func (*C2SResourcePackConfiguration) Read ¶
func (p *C2SResourcePackConfiguration) Read(buf *ns.PacketBuffer) error
func (*C2SResourcePackConfiguration) State ¶
func (p *C2SResourcePackConfiguration) State() jp.State
func (*C2SResourcePackConfiguration) Write ¶
func (p *C2SResourcePackConfiguration) Write(buf *ns.PacketBuffer) error
type C2SResourcePackPlay ¶
C2SResourcePackPlay represents "Resource Pack Response (play)".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Resource_Pack_Response_(Play)
func (*C2SResourcePackPlay) Bound ¶
func (p *C2SResourcePackPlay) Bound() jp.Bound
func (*C2SResourcePackPlay) ID ¶
func (p *C2SResourcePackPlay) ID() ns.VarInt
func (*C2SResourcePackPlay) Read ¶
func (p *C2SResourcePackPlay) Read(buf *ns.PacketBuffer) error
func (*C2SResourcePackPlay) State ¶
func (p *C2SResourcePackPlay) State() jp.State
func (*C2SResourcePackPlay) Write ¶
func (p *C2SResourcePackPlay) Write(buf *ns.PacketBuffer) error
type C2SSeenAdvancements ¶
type C2SSeenAdvancements struct {
Action ns.VarInt
TabId ns.Identifier // only present if Action is 0
}
C2SSeenAdvancements represents "Seen Advancements".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Seen_Advancements
func (*C2SSeenAdvancements) Bound ¶
func (p *C2SSeenAdvancements) Bound() jp.Bound
func (*C2SSeenAdvancements) ID ¶
func (p *C2SSeenAdvancements) ID() ns.VarInt
func (*C2SSeenAdvancements) Read ¶
func (p *C2SSeenAdvancements) Read(buf *ns.PacketBuffer) error
func (*C2SSeenAdvancements) State ¶
func (p *C2SSeenAdvancements) State() jp.State
func (*C2SSeenAdvancements) Write ¶
func (p *C2SSeenAdvancements) Write(buf *ns.PacketBuffer) error
type C2SSelectKnownPacks ¶
type C2SSelectKnownPacks struct {
KnownPacks []KnownPack
}
C2SSelectKnownPacks represents "Serverbound Known Packs".
Informs the server of which data packs are present on the client.
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Serverbound_Known_Packs
func (*C2SSelectKnownPacks) Bound ¶
func (p *C2SSelectKnownPacks) Bound() jp.Bound
func (*C2SSelectKnownPacks) ID ¶
func (p *C2SSelectKnownPacks) ID() ns.VarInt
func (*C2SSelectKnownPacks) Read ¶
func (p *C2SSelectKnownPacks) Read(buf *ns.PacketBuffer) error
func (*C2SSelectKnownPacks) State ¶
func (p *C2SSelectKnownPacks) State() jp.State
func (*C2SSelectKnownPacks) Write ¶
func (p *C2SSelectKnownPacks) Write(buf *ns.PacketBuffer) error
type C2SSelectTrade ¶
C2SSelectTrade represents "Select Trade".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Select_Trade
func (*C2SSelectTrade) Bound ¶
func (p *C2SSelectTrade) Bound() jp.Bound
func (*C2SSelectTrade) ID ¶
func (p *C2SSelectTrade) ID() ns.VarInt
func (*C2SSelectTrade) Read ¶
func (p *C2SSelectTrade) Read(buf *ns.PacketBuffer) error
func (*C2SSelectTrade) State ¶
func (p *C2SSelectTrade) State() jp.State
func (*C2SSelectTrade) Write ¶
func (p *C2SSelectTrade) Write(buf *ns.PacketBuffer) error
type C2SSetBeacon ¶
type C2SSetBeacon struct {
PrimaryEffect ns.PrefixedOptional[ns.VarInt]
SecondaryEffect ns.PrefixedOptional[ns.VarInt]
}
C2SSetBeacon represents "Set Beacon Effect".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Set_Beacon_Effect
func (*C2SSetBeacon) Bound ¶
func (p *C2SSetBeacon) Bound() jp.Bound
func (*C2SSetBeacon) ID ¶
func (p *C2SSetBeacon) ID() ns.VarInt
func (*C2SSetBeacon) Read ¶
func (p *C2SSetBeacon) Read(buf *ns.PacketBuffer) error
func (*C2SSetBeacon) State ¶
func (p *C2SSetBeacon) State() jp.State
func (*C2SSetBeacon) Write ¶
func (p *C2SSetBeacon) Write(buf *ns.PacketBuffer) error
type C2SSetCarriedItem ¶
C2SSetCarriedItem represents "Set Held Item (serverbound)".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Set_Held_Item_(serverbound)
func (*C2SSetCarriedItem) Bound ¶
func (p *C2SSetCarriedItem) Bound() jp.Bound
func (*C2SSetCarriedItem) ID ¶
func (p *C2SSetCarriedItem) ID() ns.VarInt
func (*C2SSetCarriedItem) Read ¶
func (p *C2SSetCarriedItem) Read(buf *ns.PacketBuffer) error
func (*C2SSetCarriedItem) State ¶
func (p *C2SSetCarriedItem) State() jp.State
func (*C2SSetCarriedItem) Write ¶
func (p *C2SSetCarriedItem) Write(buf *ns.PacketBuffer) error
type C2SSetCommandBlock ¶
type C2SSetCommandBlock struct {
Location ns.Position
Command ns.String
Mode ns.VarInt
Flags ns.Int8
}
C2SSetCommandBlock represents "Program Command Block".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Program_Command_Block
func (*C2SSetCommandBlock) Bound ¶
func (p *C2SSetCommandBlock) Bound() jp.Bound
func (*C2SSetCommandBlock) ID ¶
func (p *C2SSetCommandBlock) ID() ns.VarInt
func (*C2SSetCommandBlock) Read ¶
func (p *C2SSetCommandBlock) Read(buf *ns.PacketBuffer) error
func (*C2SSetCommandBlock) State ¶
func (p *C2SSetCommandBlock) State() jp.State
func (*C2SSetCommandBlock) Write ¶
func (p *C2SSetCommandBlock) Write(buf *ns.PacketBuffer) error
type C2SSetCommandMinecart ¶
C2SSetCommandMinecart represents "Program Command Block Minecart".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Program_Command_Block_Minecart
func (*C2SSetCommandMinecart) Bound ¶
func (p *C2SSetCommandMinecart) Bound() jp.Bound
func (*C2SSetCommandMinecart) ID ¶
func (p *C2SSetCommandMinecart) ID() ns.VarInt
func (*C2SSetCommandMinecart) Read ¶
func (p *C2SSetCommandMinecart) Read(buf *ns.PacketBuffer) error
func (*C2SSetCommandMinecart) State ¶
func (p *C2SSetCommandMinecart) State() jp.State
func (*C2SSetCommandMinecart) Write ¶
func (p *C2SSetCommandMinecart) Write(buf *ns.PacketBuffer) error
type C2SSetCreativeModeSlot ¶
C2SSetCreativeModeSlot represents "Set Creative Mode Slot".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Set_Creative_Mode_Slot
func (*C2SSetCreativeModeSlot) Bound ¶
func (p *C2SSetCreativeModeSlot) Bound() jp.Bound
func (*C2SSetCreativeModeSlot) ID ¶
func (p *C2SSetCreativeModeSlot) ID() ns.VarInt
func (*C2SSetCreativeModeSlot) Read ¶
func (p *C2SSetCreativeModeSlot) Read(buf *ns.PacketBuffer) error
func (*C2SSetCreativeModeSlot) State ¶
func (p *C2SSetCreativeModeSlot) State() jp.State
func (*C2SSetCreativeModeSlot) Write ¶
func (p *C2SSetCreativeModeSlot) Write(buf *ns.PacketBuffer) error
type C2SSetJigsawBlock ¶
type C2SSetJigsawBlock struct {
Location ns.Position
Name ns.Identifier
Target ns.Identifier
Pool ns.Identifier
FinalState ns.String
JointType ns.String
SelectionPriority ns.VarInt
PlacementPriority ns.VarInt
}
C2SSetJigsawBlock represents "Program Jigsaw Block".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Program_Jigsaw_Block
func (*C2SSetJigsawBlock) Bound ¶
func (p *C2SSetJigsawBlock) Bound() jp.Bound
func (*C2SSetJigsawBlock) ID ¶
func (p *C2SSetJigsawBlock) ID() ns.VarInt
func (*C2SSetJigsawBlock) Read ¶
func (p *C2SSetJigsawBlock) Read(buf *ns.PacketBuffer) error
func (*C2SSetJigsawBlock) State ¶
func (p *C2SSetJigsawBlock) State() jp.State
func (*C2SSetJigsawBlock) Write ¶
func (p *C2SSetJigsawBlock) Write(buf *ns.PacketBuffer) error
type C2SSetStructureBlock ¶
type C2SSetStructureBlock struct {
Location ns.Position
Action ns.VarInt
Mode ns.VarInt
Name ns.String
OffsetX ns.Int8
OffsetY ns.Int8
OffsetZ ns.Int8
SizeX ns.Int8
SizeY ns.Int8
SizeZ ns.Int8
Mirror ns.VarInt
Rotation ns.VarInt
Metadata ns.String
Integrity ns.Float32
Seed ns.VarLong
Flags ns.Int8
}
C2SSetStructureBlock represents "Program Structure Block".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Program_Structure_Block
func (*C2SSetStructureBlock) Bound ¶
func (p *C2SSetStructureBlock) Bound() jp.Bound
func (*C2SSetStructureBlock) ID ¶
func (p *C2SSetStructureBlock) ID() ns.VarInt
func (*C2SSetStructureBlock) Read ¶
func (p *C2SSetStructureBlock) Read(buf *ns.PacketBuffer) error
func (*C2SSetStructureBlock) State ¶
func (p *C2SSetStructureBlock) State() jp.State
func (*C2SSetStructureBlock) Write ¶
func (p *C2SSetStructureBlock) Write(buf *ns.PacketBuffer) error
type C2SSetTestBlock ¶
C2SSetTestBlock represents "Set Test Block".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Set_Test_Block
func (*C2SSetTestBlock) Bound ¶
func (p *C2SSetTestBlock) Bound() jp.Bound
func (*C2SSetTestBlock) ID ¶
func (p *C2SSetTestBlock) ID() ns.VarInt
func (*C2SSetTestBlock) Read ¶
func (p *C2SSetTestBlock) Read(buf *ns.PacketBuffer) error
func (*C2SSetTestBlock) State ¶
func (p *C2SSetTestBlock) State() jp.State
func (*C2SSetTestBlock) Write ¶
func (p *C2SSetTestBlock) Write(buf *ns.PacketBuffer) error
type C2SSignUpdate ¶
type C2SSignUpdate struct {
Location ns.Position
IsFrontText ns.Boolean
Line1 ns.String
Line2 ns.String
Line3 ns.String
Line4 ns.String
}
C2SSignUpdate represents "Update Sign".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Update_Sign
func (*C2SSignUpdate) Bound ¶
func (p *C2SSignUpdate) Bound() jp.Bound
func (*C2SSignUpdate) ID ¶
func (p *C2SSignUpdate) ID() ns.VarInt
func (*C2SSignUpdate) Read ¶
func (p *C2SSignUpdate) Read(buf *ns.PacketBuffer) error
func (*C2SSignUpdate) State ¶
func (p *C2SSignUpdate) State() jp.State
func (*C2SSignUpdate) Write ¶
func (p *C2SSignUpdate) Write(buf *ns.PacketBuffer) error
type C2SStatusRequest ¶
type C2SStatusRequest struct{}
C2SStatusRequest represents "Status Request".
The status can only be requested once, immediately after the handshake, before any ping. The server won't respond otherwise.
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Status_Request
func (*C2SStatusRequest) Bound ¶
func (p *C2SStatusRequest) Bound() jp.Bound
func (*C2SStatusRequest) ID ¶
func (p *C2SStatusRequest) ID() ns.VarInt
func (*C2SStatusRequest) Read ¶
func (p *C2SStatusRequest) Read(*ns.PacketBuffer) error
func (*C2SStatusRequest) State ¶
func (p *C2SStatusRequest) State() jp.State
func (*C2SStatusRequest) Write ¶
func (p *C2SStatusRequest) Write(*ns.PacketBuffer) error
type C2SSwing ¶
C2SSwing represents "Swing Arm".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Swing_Arm
type C2STeleportToEntity ¶
C2STeleportToEntity represents "Teleport To Entity".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Teleport_To_Entity
func (*C2STeleportToEntity) Bound ¶
func (p *C2STeleportToEntity) Bound() jp.Bound
func (*C2STeleportToEntity) ID ¶
func (p *C2STeleportToEntity) ID() ns.VarInt
func (*C2STeleportToEntity) Read ¶
func (p *C2STeleportToEntity) Read(buf *ns.PacketBuffer) error
func (*C2STeleportToEntity) State ¶
func (p *C2STeleportToEntity) State() jp.State
func (*C2STeleportToEntity) Write ¶
func (p *C2STeleportToEntity) Write(buf *ns.PacketBuffer) error
type C2STestInstanceBlockAction ¶
type C2STestInstanceBlockAction struct {
Position ns.Position
Action ns.VarInt
Test ns.PrefixedOptional[ns.Identifier]
SizeX ns.VarInt
SizeY ns.VarInt
SizeZ ns.VarInt
Rotation ns.VarInt
IgnoreEntities ns.Boolean
Status ns.VarInt
ErrorMessage ns.PrefixedOptional[ns.TextComponent]
}
C2STestInstanceBlockAction represents "Test Instance Block Action".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Test_Instance_Block_Action
func (*C2STestInstanceBlockAction) Bound ¶
func (p *C2STestInstanceBlockAction) Bound() jp.Bound
func (*C2STestInstanceBlockAction) ID ¶
func (p *C2STestInstanceBlockAction) ID() ns.VarInt
func (*C2STestInstanceBlockAction) Read ¶
func (p *C2STestInstanceBlockAction) Read(buf *ns.PacketBuffer) error
func (*C2STestInstanceBlockAction) State ¶
func (p *C2STestInstanceBlockAction) State() jp.State
func (*C2STestInstanceBlockAction) Write ¶
func (p *C2STestInstanceBlockAction) Write(buf *ns.PacketBuffer) error
type C2SUseItem ¶
C2SUseItem represents "Use Item".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Use_Item
func (*C2SUseItem) Bound ¶
func (p *C2SUseItem) Bound() jp.Bound
func (*C2SUseItem) ID ¶
func (p *C2SUseItem) ID() ns.VarInt
func (*C2SUseItem) Read ¶
func (p *C2SUseItem) Read(buf *ns.PacketBuffer) error
func (*C2SUseItem) State ¶
func (p *C2SUseItem) State() jp.State
func (*C2SUseItem) Write ¶
func (p *C2SUseItem) Write(buf *ns.PacketBuffer) error
type C2SUseItemOn ¶
type C2SUseItemOn struct {
Hand ns.VarInt
Location ns.Position
Face ns.VarInt
CursorPositionX ns.Float32
CursorPositionY ns.Float32
CursorPositionZ ns.Float32
InsideBlock ns.Boolean
WorldBorderHit ns.Boolean
Sequence ns.VarInt
}
C2SUseItemOn represents "Use Item On".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Use_Item_On
func (*C2SUseItemOn) Bound ¶
func (p *C2SUseItemOn) Bound() jp.Bound
func (*C2SUseItemOn) ID ¶
func (p *C2SUseItemOn) ID() ns.VarInt
func (*C2SUseItemOn) Read ¶
func (p *C2SUseItemOn) Read(buf *ns.PacketBuffer) error
func (*C2SUseItemOn) State ¶
func (p *C2SUseItemOn) State() jp.State
func (*C2SUseItemOn) Write ¶
func (p *C2SUseItemOn) Write(buf *ns.PacketBuffer) error
type ChangedSlot ¶
type ChangedSlot struct {
SlotNum ns.Int16
Item ns.HashedSlot
}
ChangedSlot represents a slot that was modified by a container click.
type ChatTypeBound ¶
type ChatTypeBound struct {
// Registry ID. In vanilla: 1 = normal chat, 3 = whisper, 5 = /say, 2 = /me, ...
// TODO: accumulate the registry data in client store and reference in higher level funcs
ChatType ns.VarInt
Name ns.TextComponent // sender's display name
TargetName ns.PrefixedOptional[ns.TextComponent] // target's display name (for whispers)
}
ChatTypeBound contains the chat type and sender information.
type CustomReportDetail ¶
CustomReportDetail represents a single report detail entry.
type FilterMask ¶
type FilterMask struct {
Type FilterMaskType
Mask *ns.BitSet // only present if Type == FilterMaskPartiallyFiltered
}
FilterMask indicates how a message should be filtered.
type FilterMaskType ¶
FilterMaskType indicates the type of filter mask.
const ( FilterMaskPassThrough FilterMaskType = iota FilterMaskFullyFiltered FilterMaskPartiallyFiltered )
type GameProfile ¶
type GameProfile struct {
UUID ns.UUID
Name ns.String
Properties []GameProfileProperty
}
GameProfile represents a player's game profile.
type GameProfileProperty ¶
type GameProfileProperty struct {
Name ns.String
Value ns.String
Signature ns.PrefixedOptional[ns.String]
}
GameProfileProperty represents a single property in a GameProfile.
type LastSeenMessagesPacked ¶
type LastSeenMessagesPacked struct {
Entries ns.PrefixedArray[MessageSignaturePacked]
}
LastSeenMessagesPacked contains references to previously seen messages.
type MessageSignature ¶
type MessageSignature [256]byte
MessageSignature is a 256-byte cryptographic signature for chat messages.
type MessageSignaturePacked ¶
type MessageSignaturePacked struct {
ID ns.VarInt // id + 1; if 0, FullSignature follows
FullSignature *MessageSignature // only present if ID == 0
}
MessageSignaturePacked is either a cache index or a full signature.
type PacketFactory ¶
PacketFactory creates a new packet instance.
type RegistryEntry ¶
type RegistryEntry struct {
EntryId ns.Identifier
HasData ns.Boolean
Data nbt.Tag // only present if HasData is true
}
RegistryEntry represents a single registry entry.
type S2CAddEntity ¶
type S2CAddEntity struct {
EntityId ns.VarInt
EntityUuid ns.UUID
Type ns.VarInt
X ns.Float64
Y ns.Float64
Z ns.Float64
Velocity ns.LpVec3
Pitch ns.Angle
Yaw ns.Angle
HeadYaw ns.Angle
Data ns.VarInt
}
S2CAddEntity represents "Spawn Entity".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Spawn_Entity
func (*S2CAddEntity) Bound ¶
func (p *S2CAddEntity) Bound() jp.Bound
func (*S2CAddEntity) ID ¶
func (p *S2CAddEntity) ID() ns.VarInt
func (*S2CAddEntity) Read ¶
func (p *S2CAddEntity) Read(buf *ns.PacketBuffer) error
func (*S2CAddEntity) State ¶
func (p *S2CAddEntity) State() jp.State
func (*S2CAddEntity) Write ¶
func (p *S2CAddEntity) Write(buf *ns.PacketBuffer) error
type S2CAnimate ¶
S2CAnimate represents "Entity Animation".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Entity_Animation
func (*S2CAnimate) Bound ¶
func (p *S2CAnimate) Bound() jp.Bound
func (*S2CAnimate) ID ¶
func (p *S2CAnimate) ID() ns.VarInt
func (*S2CAnimate) Read ¶
func (p *S2CAnimate) Read(buf *ns.PacketBuffer) error
func (*S2CAnimate) State ¶
func (p *S2CAnimate) State() jp.State
func (*S2CAnimate) Write ¶
func (p *S2CAnimate) Write(buf *ns.PacketBuffer) error
type S2CAwardStats ¶
S2CAwardStats represents "Award Statistics".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Award_Statistics
func (*S2CAwardStats) Bound ¶
func (p *S2CAwardStats) Bound() jp.Bound
func (*S2CAwardStats) ID ¶
func (p *S2CAwardStats) ID() ns.VarInt
func (*S2CAwardStats) Read ¶
func (p *S2CAwardStats) Read(buf *ns.PacketBuffer) error
func (*S2CAwardStats) State ¶
func (p *S2CAwardStats) State() jp.State
func (*S2CAwardStats) Write ¶
func (p *S2CAwardStats) Write(buf *ns.PacketBuffer) error
type S2CBlockChangedAck ¶
S2CBlockChangedAck represents "Acknowledge Block Change".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Acknowledge_Block_Change
func (*S2CBlockChangedAck) Bound ¶
func (p *S2CBlockChangedAck) Bound() jp.Bound
func (*S2CBlockChangedAck) ID ¶
func (p *S2CBlockChangedAck) ID() ns.VarInt
func (*S2CBlockChangedAck) Read ¶
func (p *S2CBlockChangedAck) Read(buf *ns.PacketBuffer) error
func (*S2CBlockChangedAck) State ¶
func (p *S2CBlockChangedAck) State() jp.State
func (*S2CBlockChangedAck) Write ¶
func (p *S2CBlockChangedAck) Write(buf *ns.PacketBuffer) error
type S2CBlockDestruction ¶
S2CBlockDestruction represents "Set Block Destroy Stage".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Set_Block_Destroy_Stage
func (*S2CBlockDestruction) Bound ¶
func (p *S2CBlockDestruction) Bound() jp.Bound
func (*S2CBlockDestruction) ID ¶
func (p *S2CBlockDestruction) ID() ns.VarInt
func (*S2CBlockDestruction) Read ¶
func (p *S2CBlockDestruction) Read(buf *ns.PacketBuffer) error
func (*S2CBlockDestruction) State ¶
func (p *S2CBlockDestruction) State() jp.State
func (*S2CBlockDestruction) Write ¶
func (p *S2CBlockDestruction) Write(buf *ns.PacketBuffer) error
type S2CBlockEntityData ¶
S2CBlockEntityData represents "Block Entity Data".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Block_Entity_Data
func (*S2CBlockEntityData) Bound ¶
func (p *S2CBlockEntityData) Bound() jp.Bound
func (*S2CBlockEntityData) ID ¶
func (p *S2CBlockEntityData) ID() ns.VarInt
func (*S2CBlockEntityData) Read ¶
func (p *S2CBlockEntityData) Read(buf *ns.PacketBuffer) error
func (*S2CBlockEntityData) State ¶
func (p *S2CBlockEntityData) State() jp.State
func (*S2CBlockEntityData) Write ¶
func (p *S2CBlockEntityData) Write(buf *ns.PacketBuffer) error
type S2CBlockEvent ¶
type S2CBlockEvent struct {
Location ns.Position
ActionId ns.Uint8
ActionParameter ns.Uint8
BlockType ns.VarInt
}
S2CBlockEvent represents "Block Action".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Block_Action
func (*S2CBlockEvent) Bound ¶
func (p *S2CBlockEvent) Bound() jp.Bound
func (*S2CBlockEvent) ID ¶
func (p *S2CBlockEvent) ID() ns.VarInt
func (*S2CBlockEvent) Read ¶
func (p *S2CBlockEvent) Read(buf *ns.PacketBuffer) error
func (*S2CBlockEvent) State ¶
func (p *S2CBlockEvent) State() jp.State
func (*S2CBlockEvent) Write ¶
func (p *S2CBlockEvent) Write(buf *ns.PacketBuffer) error
type S2CBlockUpdate ¶
S2CBlockUpdate represents "Block Update".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Block_Update
func (*S2CBlockUpdate) Bound ¶
func (p *S2CBlockUpdate) Bound() jp.Bound
func (*S2CBlockUpdate) ID ¶
func (p *S2CBlockUpdate) ID() ns.VarInt
func (*S2CBlockUpdate) Read ¶
func (p *S2CBlockUpdate) Read(buf *ns.PacketBuffer) error
func (*S2CBlockUpdate) State ¶
func (p *S2CBlockUpdate) State() jp.State
func (*S2CBlockUpdate) Write ¶
func (p *S2CBlockUpdate) Write(buf *ns.PacketBuffer) error
type S2CBossEvent ¶
type S2CBossEvent struct {
Uuid ns.UUID
Action BossEventActionEnum
Data ns.ByteArray
}
S2CBossEvent represents "Boss Bar".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Boss_Bar
func (*S2CBossEvent) Bound ¶
func (p *S2CBossEvent) Bound() jp.Bound
func (*S2CBossEvent) DataActionAdd ¶
func (p *S2CBossEvent) DataActionAdd() (BossEventActionAddData, error)
DataActionAdd decodes Data assuming action 0 (Add).
func (*S2CBossEvent) DataActionUpdateFlags ¶
func (p *S2CBossEvent) DataActionUpdateFlags() (BossEventActionUpdateFlagsData, error)
DataActionUpdateFlags decodes Data assuming action 5 (Update Flags).
func (*S2CBossEvent) DataActionUpdateHealth ¶
func (p *S2CBossEvent) DataActionUpdateHealth() (BossEventActionUpdateHealthData, error)
DataActionUpdateHealth decodes Data assuming action 2 (Update Health).
func (*S2CBossEvent) DataActionUpdateStyle ¶
func (p *S2CBossEvent) DataActionUpdateStyle() (BossEventActionUpdateStyleData, error)
DataActionUpdateStyle decodes Data assuming action 4 (Update Style).
func (*S2CBossEvent) DataActionUpdateTitle ¶
func (p *S2CBossEvent) DataActionUpdateTitle() (BossEventActionUpdateTitleData, error)
DataActionUpdateTitle decodes Data assuming action 3 (Update Title).
func (*S2CBossEvent) ID ¶
func (p *S2CBossEvent) ID() ns.VarInt
func (*S2CBossEvent) Read ¶
func (p *S2CBossEvent) Read(buf *ns.PacketBuffer) error
func (*S2CBossEvent) State ¶
func (p *S2CBossEvent) State() jp.State
func (*S2CBossEvent) Write ¶
func (p *S2CBossEvent) Write(buf *ns.PacketBuffer) error
type S2CBundleDelimiter ¶
type S2CBundleDelimiter struct{}
S2CBundleDelimiter represents "Bundle Delimiter".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Bundle_Delimiter
func (*S2CBundleDelimiter) Bound ¶
func (p *S2CBundleDelimiter) Bound() jp.Bound
func (*S2CBundleDelimiter) ID ¶
func (p *S2CBundleDelimiter) ID() ns.VarInt
func (*S2CBundleDelimiter) Read ¶
func (p *S2CBundleDelimiter) Read(*ns.PacketBuffer) error
func (*S2CBundleDelimiter) State ¶
func (p *S2CBundleDelimiter) State() jp.State
func (*S2CBundleDelimiter) Write ¶
func (p *S2CBundleDelimiter) Write(*ns.PacketBuffer) error
type S2CChangeDifficulty ¶
S2CChangeDifficulty represents "Change Difficulty".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Change_Difficulty
func (*S2CChangeDifficulty) Bound ¶
func (p *S2CChangeDifficulty) Bound() jp.Bound
func (*S2CChangeDifficulty) ID ¶
func (p *S2CChangeDifficulty) ID() ns.VarInt
func (*S2CChangeDifficulty) Read ¶
func (p *S2CChangeDifficulty) Read(buf *ns.PacketBuffer) error
func (*S2CChangeDifficulty) State ¶
func (p *S2CChangeDifficulty) State() jp.State
func (*S2CChangeDifficulty) Write ¶
func (p *S2CChangeDifficulty) Write(buf *ns.PacketBuffer) error
type S2CChunkBatchFinished ¶
S2CChunkBatchFinished represents "Chunk Batch Finished".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Chunk_Batch_Finished
func (*S2CChunkBatchFinished) Bound ¶
func (p *S2CChunkBatchFinished) Bound() jp.Bound
func (*S2CChunkBatchFinished) ID ¶
func (p *S2CChunkBatchFinished) ID() ns.VarInt
func (*S2CChunkBatchFinished) Read ¶
func (p *S2CChunkBatchFinished) Read(buf *ns.PacketBuffer) error
func (*S2CChunkBatchFinished) State ¶
func (p *S2CChunkBatchFinished) State() jp.State
func (*S2CChunkBatchFinished) Write ¶
func (p *S2CChunkBatchFinished) Write(buf *ns.PacketBuffer) error
type S2CChunkBatchStart ¶
type S2CChunkBatchStart struct{}
S2CChunkBatchStart represents "Chunk Batch Start".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Chunk_Batch_Start
func (*S2CChunkBatchStart) Bound ¶
func (p *S2CChunkBatchStart) Bound() jp.Bound
func (*S2CChunkBatchStart) ID ¶
func (p *S2CChunkBatchStart) ID() ns.VarInt
func (*S2CChunkBatchStart) Read ¶
func (p *S2CChunkBatchStart) Read(*ns.PacketBuffer) error
func (*S2CChunkBatchStart) State ¶
func (p *S2CChunkBatchStart) State() jp.State
func (*S2CChunkBatchStart) Write ¶
func (p *S2CChunkBatchStart) Write(*ns.PacketBuffer) error
type S2CChunksBiomes ¶
S2CChunksBiomes represents "Chunk Biomes".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Chunk_Biomes
func (*S2CChunksBiomes) Bound ¶
func (p *S2CChunksBiomes) Bound() jp.Bound
func (*S2CChunksBiomes) ID ¶
func (p *S2CChunksBiomes) ID() ns.VarInt
func (*S2CChunksBiomes) Read ¶
func (p *S2CChunksBiomes) Read(buf *ns.PacketBuffer) error
func (*S2CChunksBiomes) State ¶
func (p *S2CChunksBiomes) State() jp.State
func (*S2CChunksBiomes) Write ¶
func (p *S2CChunksBiomes) Write(buf *ns.PacketBuffer) error
type S2CClearDialogConfiguration ¶
type S2CClearDialogConfiguration struct{}
S2CClearDialogConfiguration represents "Clear Dialog (configuration)".
Removes the current dialog screen and switches back to the previous one.
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Clear_Dialog_(Configuration)
func (*S2CClearDialogConfiguration) Bound ¶
func (p *S2CClearDialogConfiguration) Bound() jp.Bound
func (*S2CClearDialogConfiguration) ID ¶
func (p *S2CClearDialogConfiguration) ID() ns.VarInt
func (*S2CClearDialogConfiguration) Read ¶
func (p *S2CClearDialogConfiguration) Read(*ns.PacketBuffer) error
func (*S2CClearDialogConfiguration) State ¶
func (p *S2CClearDialogConfiguration) State() jp.State
func (*S2CClearDialogConfiguration) Write ¶
func (p *S2CClearDialogConfiguration) Write(*ns.PacketBuffer) error
type S2CClearDialogPlay ¶
type S2CClearDialogPlay struct{}
S2CClearDialogPlay represents "Clear Dialog (play)".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Clear_Dialog_(Play)
func (*S2CClearDialogPlay) Bound ¶
func (p *S2CClearDialogPlay) Bound() jp.Bound
func (*S2CClearDialogPlay) ID ¶
func (p *S2CClearDialogPlay) ID() ns.VarInt
func (*S2CClearDialogPlay) Read ¶
func (p *S2CClearDialogPlay) Read(*ns.PacketBuffer) error
func (*S2CClearDialogPlay) State ¶
func (p *S2CClearDialogPlay) State() jp.State
func (*S2CClearDialogPlay) Write ¶
func (p *S2CClearDialogPlay) Write(*ns.PacketBuffer) error
type S2CClearTitles ¶
S2CClearTitles represents "Clear Titles".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Clear_Titles
func (*S2CClearTitles) Bound ¶
func (p *S2CClearTitles) Bound() jp.Bound
func (*S2CClearTitles) ID ¶
func (p *S2CClearTitles) ID() ns.VarInt
func (*S2CClearTitles) Read ¶
func (p *S2CClearTitles) Read(buf *ns.PacketBuffer) error
func (*S2CClearTitles) State ¶
func (p *S2CClearTitles) State() jp.State
func (*S2CClearTitles) Write ¶
func (p *S2CClearTitles) Write(buf *ns.PacketBuffer) error
type S2CCodeOfConduct ¶
S2CCodeOfConduct represents "Code of Conduct".
Show the client the server Code of Conduct.
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Code_Of_Conduct
func (*S2CCodeOfConduct) Bound ¶
func (p *S2CCodeOfConduct) Bound() jp.Bound
func (*S2CCodeOfConduct) ID ¶
func (p *S2CCodeOfConduct) ID() ns.VarInt
func (*S2CCodeOfConduct) Read ¶
func (p *S2CCodeOfConduct) Read(buf *ns.PacketBuffer) error
func (*S2CCodeOfConduct) State ¶
func (p *S2CCodeOfConduct) State() jp.State
func (*S2CCodeOfConduct) Write ¶
func (p *S2CCodeOfConduct) Write(buf *ns.PacketBuffer) error
type S2CCommandSuggestions ¶
type S2CCommandSuggestions struct {
Id ns.VarInt
Start ns.VarInt
Length ns.VarInt
Matches ns.ByteArray
}
S2CCommandSuggestions represents "Command Suggestions Response".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Command_Suggestions_Response
func (*S2CCommandSuggestions) Bound ¶
func (p *S2CCommandSuggestions) Bound() jp.Bound
func (*S2CCommandSuggestions) ID ¶
func (p *S2CCommandSuggestions) ID() ns.VarInt
func (*S2CCommandSuggestions) Read ¶
func (p *S2CCommandSuggestions) Read(buf *ns.PacketBuffer) error
func (*S2CCommandSuggestions) State ¶
func (p *S2CCommandSuggestions) State() jp.State
func (*S2CCommandSuggestions) Write ¶
func (p *S2CCommandSuggestions) Write(buf *ns.PacketBuffer) error
type S2CCommands ¶
S2CCommands represents "Commands".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Commands
func (*S2CCommands) Bound ¶
func (p *S2CCommands) Bound() jp.Bound
func (*S2CCommands) ID ¶
func (p *S2CCommands) ID() ns.VarInt
func (*S2CCommands) Read ¶
func (p *S2CCommands) Read(buf *ns.PacketBuffer) error
func (*S2CCommands) State ¶
func (p *S2CCommands) State() jp.State
func (*S2CCommands) Write ¶
func (p *S2CCommands) Write(buf *ns.PacketBuffer) error
type S2CContainerClose ¶
S2CContainerClose represents "Close Container".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Close_Container
func (*S2CContainerClose) Bound ¶
func (p *S2CContainerClose) Bound() jp.Bound
func (*S2CContainerClose) ID ¶
func (p *S2CContainerClose) ID() ns.VarInt
func (*S2CContainerClose) Read ¶
func (p *S2CContainerClose) Read(buf *ns.PacketBuffer) error
func (*S2CContainerClose) State ¶
func (p *S2CContainerClose) State() jp.State
func (*S2CContainerClose) Write ¶
func (p *S2CContainerClose) Write(buf *ns.PacketBuffer) error
type S2CContainerSetContent ¶
type S2CContainerSetContent struct {
WindowId ns.VarInt
StateId ns.VarInt
Slots []ns.Slot
CarriedItem ns.Slot
}
S2CContainerSetContent represents "Set Container Content".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Set_Container_Content
func (*S2CContainerSetContent) Bound ¶
func (p *S2CContainerSetContent) Bound() jp.Bound
func (*S2CContainerSetContent) ID ¶
func (p *S2CContainerSetContent) ID() ns.VarInt
func (*S2CContainerSetContent) Read ¶
func (p *S2CContainerSetContent) Read(buf *ns.PacketBuffer) error
func (*S2CContainerSetContent) State ¶
func (p *S2CContainerSetContent) State() jp.State
func (*S2CContainerSetContent) Write ¶
func (p *S2CContainerSetContent) Write(buf *ns.PacketBuffer) error
type S2CContainerSetData ¶
S2CContainerSetData represents "Set Container Property".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Set_Container_Property
func (*S2CContainerSetData) Bound ¶
func (p *S2CContainerSetData) Bound() jp.Bound
func (*S2CContainerSetData) ID ¶
func (p *S2CContainerSetData) ID() ns.VarInt
func (*S2CContainerSetData) Read ¶
func (p *S2CContainerSetData) Read(buf *ns.PacketBuffer) error
func (*S2CContainerSetData) State ¶
func (p *S2CContainerSetData) State() jp.State
func (*S2CContainerSetData) Write ¶
func (p *S2CContainerSetData) Write(buf *ns.PacketBuffer) error
type S2CContainerSetSlot ¶
type S2CContainerSetSlot struct {
WindowId ns.VarInt
StateId ns.VarInt
Slot ns.Int16
SlotData ns.Slot
}
S2CContainerSetSlot represents "Set Container Slot".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Set_Container_Slot
func (*S2CContainerSetSlot) Bound ¶
func (p *S2CContainerSetSlot) Bound() jp.Bound
func (*S2CContainerSetSlot) ID ¶
func (p *S2CContainerSetSlot) ID() ns.VarInt
func (*S2CContainerSetSlot) Read ¶
func (p *S2CContainerSetSlot) Read(buf *ns.PacketBuffer) error
func (*S2CContainerSetSlot) State ¶
func (p *S2CContainerSetSlot) State() jp.State
func (*S2CContainerSetSlot) Write ¶
func (p *S2CContainerSetSlot) Write(buf *ns.PacketBuffer) error
type S2CCookieRequestConfiguration ¶
type S2CCookieRequestConfiguration struct {
// The identifier of the cookie.
Key ns.Identifier
}
S2CCookieRequestConfiguration represents "Cookie Request (configuration)".
Requests a cookie that was previously stored.
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Cookie_Request_(Configuration)
func (*S2CCookieRequestConfiguration) Bound ¶
func (p *S2CCookieRequestConfiguration) Bound() jp.Bound
func (*S2CCookieRequestConfiguration) ID ¶
func (p *S2CCookieRequestConfiguration) ID() ns.VarInt
func (*S2CCookieRequestConfiguration) Read ¶
func (p *S2CCookieRequestConfiguration) Read(buf *ns.PacketBuffer) error
func (*S2CCookieRequestConfiguration) State ¶
func (p *S2CCookieRequestConfiguration) State() jp.State
func (*S2CCookieRequestConfiguration) Write ¶
func (p *S2CCookieRequestConfiguration) Write(buf *ns.PacketBuffer) error
type S2CCookieRequestLogin ¶
type S2CCookieRequestLogin struct {
// The identifier of the cookie.
Key ns.Identifier
}
S2CCookieRequestLogin represents "Cookie Request (login)".
Requests a cookie that was previously stored.
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Cookie_Request_(Login)
func (*S2CCookieRequestLogin) Bound ¶
func (p *S2CCookieRequestLogin) Bound() jp.Bound
func (*S2CCookieRequestLogin) ID ¶
func (p *S2CCookieRequestLogin) ID() ns.VarInt
func (*S2CCookieRequestLogin) Read ¶
func (p *S2CCookieRequestLogin) Read(buf *ns.PacketBuffer) error
func (*S2CCookieRequestLogin) State ¶
func (p *S2CCookieRequestLogin) State() jp.State
func (*S2CCookieRequestLogin) Write ¶
func (p *S2CCookieRequestLogin) Write(buf *ns.PacketBuffer) error
type S2CCookieRequestPlay ¶
type S2CCookieRequestPlay struct {
Key ns.Identifier
}
S2CCookieRequestPlay represents "Cookie Request (play)".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Cookie_Request_(Play)
func (*S2CCookieRequestPlay) Bound ¶
func (p *S2CCookieRequestPlay) Bound() jp.Bound
func (*S2CCookieRequestPlay) ID ¶
func (p *S2CCookieRequestPlay) ID() ns.VarInt
func (*S2CCookieRequestPlay) Read ¶
func (p *S2CCookieRequestPlay) Read(buf *ns.PacketBuffer) error
func (*S2CCookieRequestPlay) State ¶
func (p *S2CCookieRequestPlay) State() jp.State
func (*S2CCookieRequestPlay) Write ¶
func (p *S2CCookieRequestPlay) Write(buf *ns.PacketBuffer) error
type S2CCooldown ¶
type S2CCooldown struct {
CooldownGroup ns.Identifier
CooldownTicks ns.VarInt
}
S2CCooldown represents "Set Cooldown".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Set_Cooldown
func (*S2CCooldown) Bound ¶
func (p *S2CCooldown) Bound() jp.Bound
func (*S2CCooldown) ID ¶
func (p *S2CCooldown) ID() ns.VarInt
func (*S2CCooldown) Read ¶
func (p *S2CCooldown) Read(buf *ns.PacketBuffer) error
func (*S2CCooldown) State ¶
func (p *S2CCooldown) State() jp.State
func (*S2CCooldown) Write ¶
func (p *S2CCooldown) Write(buf *ns.PacketBuffer) error
type S2CCustomChatCompletions ¶
S2CCustomChatCompletions represents "Chat Suggestions".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Chat_Suggestions
func (*S2CCustomChatCompletions) Bound ¶
func (p *S2CCustomChatCompletions) Bound() jp.Bound
func (*S2CCustomChatCompletions) ID ¶
func (p *S2CCustomChatCompletions) ID() ns.VarInt
func (*S2CCustomChatCompletions) Read ¶
func (p *S2CCustomChatCompletions) Read(buf *ns.PacketBuffer) error
func (*S2CCustomChatCompletions) State ¶
func (p *S2CCustomChatCompletions) State() jp.State
func (*S2CCustomChatCompletions) Write ¶
func (p *S2CCustomChatCompletions) Write(buf *ns.PacketBuffer) error
type S2CCustomPayloadConfiguration ¶
type S2CCustomPayloadConfiguration struct {
// Name of the plugin channel used to send the data.
Channel ns.Identifier
// Any data, depending on the channel.
Data ns.ByteArray
}
S2CCustomPayloadConfiguration represents "Clientbound Plugin Message (configuration)".
Mods and plugins can use this to send their data.
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Clientbound_Plugin_Message_(Configuration)
func (*S2CCustomPayloadConfiguration) Bound ¶
func (p *S2CCustomPayloadConfiguration) Bound() jp.Bound
func (*S2CCustomPayloadConfiguration) ID ¶
func (p *S2CCustomPayloadConfiguration) ID() ns.VarInt
func (*S2CCustomPayloadConfiguration) Read ¶
func (p *S2CCustomPayloadConfiguration) Read(buf *ns.PacketBuffer) error
func (*S2CCustomPayloadConfiguration) State ¶
func (p *S2CCustomPayloadConfiguration) State() jp.State
func (*S2CCustomPayloadConfiguration) Write ¶
func (p *S2CCustomPayloadConfiguration) Write(buf *ns.PacketBuffer) error
type S2CCustomPayloadPlay ¶
type S2CCustomPayloadPlay struct {
Channel ns.Identifier
Data ns.ByteArray
}
S2CCustomPayloadPlay represents "Clientbound Plugin Message (play)".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Clientbound_Plugin_Message_(Play)
func (*S2CCustomPayloadPlay) Bound ¶
func (p *S2CCustomPayloadPlay) Bound() jp.Bound
func (*S2CCustomPayloadPlay) ID ¶
func (p *S2CCustomPayloadPlay) ID() ns.VarInt
func (*S2CCustomPayloadPlay) Read ¶
func (p *S2CCustomPayloadPlay) Read(buf *ns.PacketBuffer) error
func (*S2CCustomPayloadPlay) State ¶
func (p *S2CCustomPayloadPlay) State() jp.State
func (*S2CCustomPayloadPlay) Write ¶
func (p *S2CCustomPayloadPlay) Write(buf *ns.PacketBuffer) error
type S2CCustomQuery ¶
type S2CCustomQuery struct {
// Generated by the server - should be unique to the connection.
MessageId ns.VarInt
// Name of the plugin channel used to send the data.
Channel ns.Identifier
// Any data, depending on the channel.
Data ns.ByteArray
}
S2CCustomQuery represents "Login Plugin Request".
Used to implement a custom handshaking flow together with Login Plugin Response.
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Login_Plugin_Request
func (*S2CCustomQuery) Bound ¶
func (p *S2CCustomQuery) Bound() jp.Bound
func (*S2CCustomQuery) ID ¶
func (p *S2CCustomQuery) ID() ns.VarInt
func (*S2CCustomQuery) Read ¶
func (p *S2CCustomQuery) Read(buf *ns.PacketBuffer) error
func (*S2CCustomQuery) State ¶
func (p *S2CCustomQuery) State() jp.State
func (*S2CCustomQuery) Write ¶
func (p *S2CCustomQuery) Write(buf *ns.PacketBuffer) error
type S2CCustomReportDetailsConfiguration ¶
type S2CCustomReportDetailsConfiguration struct {
Details []CustomReportDetail
}
S2CCustomReportDetailsConfiguration represents "Custom Report Details (configuration)".
Contains a list of key-value text entries that are included in any crash or disconnection report.
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Custom_Report_Details_(Configuration)
func (*S2CCustomReportDetailsConfiguration) Bound ¶
func (p *S2CCustomReportDetailsConfiguration) Bound() jp.Bound
func (*S2CCustomReportDetailsConfiguration) ID ¶
func (p *S2CCustomReportDetailsConfiguration) ID() ns.VarInt
func (*S2CCustomReportDetailsConfiguration) Read ¶
func (p *S2CCustomReportDetailsConfiguration) Read(buf *ns.PacketBuffer) error
func (*S2CCustomReportDetailsConfiguration) State ¶
func (p *S2CCustomReportDetailsConfiguration) State() jp.State
func (*S2CCustomReportDetailsConfiguration) Write ¶
func (p *S2CCustomReportDetailsConfiguration) Write(buf *ns.PacketBuffer) error
type S2CCustomReportDetailsPlay ¶
S2CCustomReportDetailsPlay represents "Custom Report Details (play)".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Custom_Report_Details
func (*S2CCustomReportDetailsPlay) Bound ¶
func (p *S2CCustomReportDetailsPlay) Bound() jp.Bound
func (*S2CCustomReportDetailsPlay) ID ¶
func (p *S2CCustomReportDetailsPlay) ID() ns.VarInt
func (*S2CCustomReportDetailsPlay) Read ¶
func (p *S2CCustomReportDetailsPlay) Read(buf *ns.PacketBuffer) error
func (*S2CCustomReportDetailsPlay) State ¶
func (p *S2CCustomReportDetailsPlay) State() jp.State
func (*S2CCustomReportDetailsPlay) Write ¶
func (p *S2CCustomReportDetailsPlay) Write(buf *ns.PacketBuffer) error
type S2CDamageEvent ¶
type S2CDamageEvent struct {
EntityId ns.VarInt
SourceTypeId ns.VarInt
SourceCauseId ns.VarInt
SourceDirectId ns.VarInt
SourcePosition ns.PrefixedOptional[ns.ByteArray]
}
S2CDamageEvent represents "Damage Event".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Damage_Event
func (*S2CDamageEvent) Bound ¶
func (p *S2CDamageEvent) Bound() jp.Bound
func (*S2CDamageEvent) ID ¶
func (p *S2CDamageEvent) ID() ns.VarInt
func (*S2CDamageEvent) Read ¶
func (p *S2CDamageEvent) Read(buf *ns.PacketBuffer) error
func (*S2CDamageEvent) State ¶
func (p *S2CDamageEvent) State() jp.State
func (*S2CDamageEvent) Write ¶
func (p *S2CDamageEvent) Write(buf *ns.PacketBuffer) error
type S2CDebugBlockValue ¶
S2CDebugBlockValue represents "Debug Block Value".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Debug_Block_Value
func (*S2CDebugBlockValue) Bound ¶
func (p *S2CDebugBlockValue) Bound() jp.Bound
func (*S2CDebugBlockValue) ID ¶
func (p *S2CDebugBlockValue) ID() ns.VarInt
func (*S2CDebugBlockValue) Read ¶
func (p *S2CDebugBlockValue) Read(buf *ns.PacketBuffer) error
func (*S2CDebugBlockValue) State ¶
func (p *S2CDebugBlockValue) State() jp.State
func (*S2CDebugBlockValue) Write ¶
func (p *S2CDebugBlockValue) Write(buf *ns.PacketBuffer) error
type S2CDebugChunkValue ¶
S2CDebugChunkValue represents "Debug Chunk Value".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Debug_Chunk_Value
func (*S2CDebugChunkValue) Bound ¶
func (p *S2CDebugChunkValue) Bound() jp.Bound
func (*S2CDebugChunkValue) ID ¶
func (p *S2CDebugChunkValue) ID() ns.VarInt
func (*S2CDebugChunkValue) Read ¶
func (p *S2CDebugChunkValue) Read(buf *ns.PacketBuffer) error
func (*S2CDebugChunkValue) State ¶
func (p *S2CDebugChunkValue) State() jp.State
func (*S2CDebugChunkValue) Write ¶
func (p *S2CDebugChunkValue) Write(buf *ns.PacketBuffer) error
type S2CDebugEntityValue ¶
S2CDebugEntityValue represents "Debug Entity Value".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Debug_Entity_Value
func (*S2CDebugEntityValue) Bound ¶
func (p *S2CDebugEntityValue) Bound() jp.Bound
func (*S2CDebugEntityValue) ID ¶
func (p *S2CDebugEntityValue) ID() ns.VarInt
func (*S2CDebugEntityValue) Read ¶
func (p *S2CDebugEntityValue) Read(buf *ns.PacketBuffer) error
func (*S2CDebugEntityValue) State ¶
func (p *S2CDebugEntityValue) State() jp.State
func (*S2CDebugEntityValue) Write ¶
func (p *S2CDebugEntityValue) Write(buf *ns.PacketBuffer) error
type S2CDebugEvent ¶
S2CDebugEvent represents "Debug Event".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Debug_Event
func (*S2CDebugEvent) Bound ¶
func (p *S2CDebugEvent) Bound() jp.Bound
func (*S2CDebugEvent) ID ¶
func (p *S2CDebugEvent) ID() ns.VarInt
func (*S2CDebugEvent) Read ¶
func (p *S2CDebugEvent) Read(buf *ns.PacketBuffer) error
func (*S2CDebugEvent) State ¶
func (p *S2CDebugEvent) State() jp.State
func (*S2CDebugEvent) Write ¶
func (p *S2CDebugEvent) Write(buf *ns.PacketBuffer) error
type S2CDebugSample ¶
S2CDebugSample represents "Debug Sample".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Debug_Sample
func (*S2CDebugSample) Bound ¶
func (p *S2CDebugSample) Bound() jp.Bound
func (*S2CDebugSample) ID ¶
func (p *S2CDebugSample) ID() ns.VarInt
func (*S2CDebugSample) Read ¶
func (p *S2CDebugSample) Read(buf *ns.PacketBuffer) error
func (*S2CDebugSample) State ¶
func (p *S2CDebugSample) State() jp.State
func (*S2CDebugSample) Write ¶
func (p *S2CDebugSample) Write(buf *ns.PacketBuffer) error
type S2CDeleteChat ¶
S2CDeleteChat represents "Delete Message".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Delete_Message
func (*S2CDeleteChat) Bound ¶
func (p *S2CDeleteChat) Bound() jp.Bound
func (*S2CDeleteChat) ID ¶
func (p *S2CDeleteChat) ID() ns.VarInt
func (*S2CDeleteChat) Read ¶
func (p *S2CDeleteChat) Read(buf *ns.PacketBuffer) error
func (*S2CDeleteChat) State ¶
func (p *S2CDeleteChat) State() jp.State
func (*S2CDeleteChat) Write ¶
func (p *S2CDeleteChat) Write(buf *ns.PacketBuffer) error
type S2CDisconnectConfiguration ¶
type S2CDisconnectConfiguration struct {
// The reason why the player was disconnected.
Reason ns.TextComponent
}
S2CDisconnectConfiguration represents "Disconnect (configuration)".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Disconnect_(Configuration)
func (*S2CDisconnectConfiguration) Bound ¶
func (p *S2CDisconnectConfiguration) Bound() jp.Bound
func (*S2CDisconnectConfiguration) ID ¶
func (p *S2CDisconnectConfiguration) ID() ns.VarInt
func (*S2CDisconnectConfiguration) Read ¶
func (p *S2CDisconnectConfiguration) Read(buf *ns.PacketBuffer) error
func (*S2CDisconnectConfiguration) State ¶
func (p *S2CDisconnectConfiguration) State() jp.State
func (*S2CDisconnectConfiguration) Write ¶
func (p *S2CDisconnectConfiguration) Write(buf *ns.PacketBuffer) error
type S2CDisconnectPlay ¶
type S2CDisconnectPlay struct {
Reason ns.TextComponent
}
S2CDisconnectPlay represents "Disconnect (play)".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Disconnect_(Play)
func (*S2CDisconnectPlay) Bound ¶
func (p *S2CDisconnectPlay) Bound() jp.Bound
func (*S2CDisconnectPlay) ID ¶
func (p *S2CDisconnectPlay) ID() ns.VarInt
func (*S2CDisconnectPlay) Read ¶
func (p *S2CDisconnectPlay) Read(buf *ns.PacketBuffer) error
func (*S2CDisconnectPlay) State ¶
func (p *S2CDisconnectPlay) State() jp.State
func (*S2CDisconnectPlay) Write ¶
func (p *S2CDisconnectPlay) Write(buf *ns.PacketBuffer) error
type S2CDisguisedChat ¶
type S2CDisguisedChat struct {
Message ns.TextComponent
ChatType ns.ByteArray
SenderName ns.TextComponent
TargetName ns.PrefixedOptional[ns.TextComponent]
}
S2CDisguisedChat represents "Disguised Chat Message".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Disguised_Chat_Message
func (*S2CDisguisedChat) Bound ¶
func (p *S2CDisguisedChat) Bound() jp.Bound
func (*S2CDisguisedChat) ID ¶
func (p *S2CDisguisedChat) ID() ns.VarInt
func (*S2CDisguisedChat) Read ¶
func (p *S2CDisguisedChat) Read(buf *ns.PacketBuffer) error
func (*S2CDisguisedChat) State ¶
func (p *S2CDisguisedChat) State() jp.State
func (*S2CDisguisedChat) Write ¶
func (p *S2CDisguisedChat) Write(buf *ns.PacketBuffer) error
type S2CEntityEvent ¶
S2CEntityEvent represents "Entity Event".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Entity_Event
func (*S2CEntityEvent) Bound ¶
func (p *S2CEntityEvent) Bound() jp.Bound
func (*S2CEntityEvent) ID ¶
func (p *S2CEntityEvent) ID() ns.VarInt
func (*S2CEntityEvent) Read ¶
func (p *S2CEntityEvent) Read(buf *ns.PacketBuffer) error
func (*S2CEntityEvent) State ¶
func (p *S2CEntityEvent) State() jp.State
func (*S2CEntityEvent) Write ¶
func (p *S2CEntityEvent) Write(buf *ns.PacketBuffer) error
type S2CEntityPositionSync ¶
type S2CEntityPositionSync struct {
EntityId ns.VarInt
X ns.Float64
Y ns.Float64
Z ns.Float64
VelocityX ns.Float64
VelocityY ns.Float64
VelocityZ ns.Float64
Yaw ns.Float32
Pitch ns.Float32
OnGround ns.Boolean
}
S2CEntityPositionSync represents "Teleport Entity".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Teleport_Entity
func (*S2CEntityPositionSync) Bound ¶
func (p *S2CEntityPositionSync) Bound() jp.Bound
func (*S2CEntityPositionSync) ID ¶
func (p *S2CEntityPositionSync) ID() ns.VarInt
func (*S2CEntityPositionSync) Read ¶
func (p *S2CEntityPositionSync) Read(buf *ns.PacketBuffer) error
func (*S2CEntityPositionSync) State ¶
func (p *S2CEntityPositionSync) State() jp.State
func (*S2CEntityPositionSync) Write ¶
func (p *S2CEntityPositionSync) Write(buf *ns.PacketBuffer) error
type S2CExplode ¶
S2CExplode represents "Explosion".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Explosion
func (*S2CExplode) Bound ¶
func (p *S2CExplode) Bound() jp.Bound
func (*S2CExplode) ID ¶
func (p *S2CExplode) ID() ns.VarInt
func (*S2CExplode) Read ¶
func (p *S2CExplode) Read(buf *ns.PacketBuffer) error
func (*S2CExplode) State ¶
func (p *S2CExplode) State() jp.State
func (*S2CExplode) Write ¶
func (p *S2CExplode) Write(buf *ns.PacketBuffer) error
type S2CFinishConfiguration ¶
type S2CFinishConfiguration struct{}
S2CFinishConfiguration represents "Finish Configuration".
Sent by the server to notify the client that the configuration process has finished. This packet switches the connection state to play.
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Finish_Configuration
func (*S2CFinishConfiguration) Bound ¶
func (p *S2CFinishConfiguration) Bound() jp.Bound
func (*S2CFinishConfiguration) ID ¶
func (p *S2CFinishConfiguration) ID() ns.VarInt
func (*S2CFinishConfiguration) Read ¶
func (p *S2CFinishConfiguration) Read(*ns.PacketBuffer) error
func (*S2CFinishConfiguration) State ¶
func (p *S2CFinishConfiguration) State() jp.State
func (*S2CFinishConfiguration) Write ¶
func (p *S2CFinishConfiguration) Write(*ns.PacketBuffer) error
type S2CForgetLevelChunk ¶
S2CForgetLevelChunk represents "Unload Chunk".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Unload_Chunk
func (*S2CForgetLevelChunk) Bound ¶
func (p *S2CForgetLevelChunk) Bound() jp.Bound
func (*S2CForgetLevelChunk) ID ¶
func (p *S2CForgetLevelChunk) ID() ns.VarInt
func (*S2CForgetLevelChunk) Read ¶
func (p *S2CForgetLevelChunk) Read(buf *ns.PacketBuffer) error
func (*S2CForgetLevelChunk) State ¶
func (p *S2CForgetLevelChunk) State() jp.State
func (*S2CForgetLevelChunk) Write ¶
func (p *S2CForgetLevelChunk) Write(buf *ns.PacketBuffer) error
type S2CGameEvent ¶
S2CGameEvent represents "Game Event".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Game_Event
func (*S2CGameEvent) Bound ¶
func (p *S2CGameEvent) Bound() jp.Bound
func (*S2CGameEvent) ID ¶
func (p *S2CGameEvent) ID() ns.VarInt
func (*S2CGameEvent) Read ¶
func (p *S2CGameEvent) Read(buf *ns.PacketBuffer) error
func (*S2CGameEvent) State ¶
func (p *S2CGameEvent) State() jp.State
func (*S2CGameEvent) Write ¶
func (p *S2CGameEvent) Write(buf *ns.PacketBuffer) error
type S2CGameTestHighlightPos ¶
S2CGameTestHighlightPos represents "Game Test Highlight Position" (debug packet).
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Hitboxes
func (*S2CGameTestHighlightPos) Bound ¶
func (p *S2CGameTestHighlightPos) Bound() jp.Bound
func (*S2CGameTestHighlightPos) ID ¶
func (p *S2CGameTestHighlightPos) ID() ns.VarInt
func (*S2CGameTestHighlightPos) Read ¶
func (p *S2CGameTestHighlightPos) Read(buf *ns.PacketBuffer) error
func (*S2CGameTestHighlightPos) State ¶
func (p *S2CGameTestHighlightPos) State() jp.State
func (*S2CGameTestHighlightPos) Write ¶
func (p *S2CGameTestHighlightPos) Write(buf *ns.PacketBuffer) error
type S2CHello ¶
type S2CHello struct {
// Always empty when sent by the vanilla server.
ServerId ns.String
// The server's public key, in bytes.
PublicKey ns.ByteArray
// A sequence of random bytes generated by the server.
VerifyToken ns.ByteArray
// Whether the client should attempt to authenticate through mojang servers.
ShouldAuthenticate ns.Boolean
}
S2CHello represents "Encryption Request".
See protocol encryption for details.
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Encryption_Request
type S2CHurtAnimation ¶
S2CHurtAnimation represents "Hurt Animation".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Hurt_Animation
func (*S2CHurtAnimation) Bound ¶
func (p *S2CHurtAnimation) Bound() jp.Bound
func (*S2CHurtAnimation) ID ¶
func (p *S2CHurtAnimation) ID() ns.VarInt
func (*S2CHurtAnimation) Read ¶
func (p *S2CHurtAnimation) Read(buf *ns.PacketBuffer) error
func (*S2CHurtAnimation) State ¶
func (p *S2CHurtAnimation) State() jp.State
func (*S2CHurtAnimation) Write ¶
func (p *S2CHurtAnimation) Write(buf *ns.PacketBuffer) error
type S2CInitializeBorder ¶
type S2CInitializeBorder struct {
X ns.Float64
Z ns.Float64
OldDiameter ns.Float64
NewDiameter ns.Float64
Speed ns.VarLong
PortalTeleportBoundary ns.VarInt
WarningBlocks ns.VarInt
WarningTime ns.VarInt
}
S2CInitializeBorder represents "Initialize World Border".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Initialize_World_Border
func (*S2CInitializeBorder) Bound ¶
func (p *S2CInitializeBorder) Bound() jp.Bound
func (*S2CInitializeBorder) ID ¶
func (p *S2CInitializeBorder) ID() ns.VarInt
func (*S2CInitializeBorder) Read ¶
func (p *S2CInitializeBorder) Read(buf *ns.PacketBuffer) error
func (*S2CInitializeBorder) State ¶
func (p *S2CInitializeBorder) State() jp.State
func (*S2CInitializeBorder) Write ¶
func (p *S2CInitializeBorder) Write(buf *ns.PacketBuffer) error
type S2CKeepAliveConfiguration ¶
S2CKeepAliveConfiguration represents "Clientbound Keep Alive (configuration)".
The server will frequently send out a keep-alive, each containing a random ID.
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Clientbound_Keep_Alive_(Configuration)
func (*S2CKeepAliveConfiguration) Bound ¶
func (p *S2CKeepAliveConfiguration) Bound() jp.Bound
func (*S2CKeepAliveConfiguration) ID ¶
func (p *S2CKeepAliveConfiguration) ID() ns.VarInt
func (*S2CKeepAliveConfiguration) Read ¶
func (p *S2CKeepAliveConfiguration) Read(buf *ns.PacketBuffer) error
func (*S2CKeepAliveConfiguration) State ¶
func (p *S2CKeepAliveConfiguration) State() jp.State
func (*S2CKeepAliveConfiguration) Write ¶
func (p *S2CKeepAliveConfiguration) Write(buf *ns.PacketBuffer) error
type S2CKeepAlivePlay ¶
S2CKeepAlivePlay represents "Clientbound Keep Alive (play)".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Clientbound_Keep_Alive_(Play)
func (*S2CKeepAlivePlay) Bound ¶
func (p *S2CKeepAlivePlay) Bound() jp.Bound
func (*S2CKeepAlivePlay) ID ¶
func (p *S2CKeepAlivePlay) ID() ns.VarInt
func (*S2CKeepAlivePlay) Read ¶
func (p *S2CKeepAlivePlay) Read(buf *ns.PacketBuffer) error
func (*S2CKeepAlivePlay) State ¶
func (p *S2CKeepAlivePlay) State() jp.State
func (*S2CKeepAlivePlay) Write ¶
func (p *S2CKeepAlivePlay) Write(buf *ns.PacketBuffer) error
type S2CLevelChunkWithLight ¶
type S2CLevelChunkWithLight struct {
ChunkX ns.Int32
ChunkZ ns.Int32
ChunkData ns.ChunkData
LightData ns.LightData
}
S2CLevelChunkWithLight represents "Chunk Data and Update Light".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Chunk_Data_And_Update_Light
func (*S2CLevelChunkWithLight) Bound ¶
func (p *S2CLevelChunkWithLight) Bound() jp.Bound
func (*S2CLevelChunkWithLight) ID ¶
func (p *S2CLevelChunkWithLight) ID() ns.VarInt
func (*S2CLevelChunkWithLight) Read ¶
func (p *S2CLevelChunkWithLight) Read(buf *ns.PacketBuffer) error
func (*S2CLevelChunkWithLight) State ¶
func (p *S2CLevelChunkWithLight) State() jp.State
func (*S2CLevelChunkWithLight) Write ¶
func (p *S2CLevelChunkWithLight) Write(buf *ns.PacketBuffer) error
type S2CLevelEvent ¶
type S2CLevelEvent struct {
Event ns.Int32
Location ns.Position
Data ns.Int32
DisableRelativeVolume ns.Boolean
}
S2CLevelEvent represents "World Event".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#World_Event
func (*S2CLevelEvent) Bound ¶
func (p *S2CLevelEvent) Bound() jp.Bound
func (*S2CLevelEvent) ID ¶
func (p *S2CLevelEvent) ID() ns.VarInt
func (*S2CLevelEvent) Read ¶
func (p *S2CLevelEvent) Read(buf *ns.PacketBuffer) error
func (*S2CLevelEvent) State ¶
func (p *S2CLevelEvent) State() jp.State
func (*S2CLevelEvent) Write ¶
func (p *S2CLevelEvent) Write(buf *ns.PacketBuffer) error
type S2CLevelParticles ¶
type S2CLevelParticles struct {
LongDistance ns.Boolean
AlwaysVisible ns.Boolean
X ns.Float64
Y ns.Float64
Z ns.Float64
OffsetX ns.Float32
OffsetY ns.Float32
OffsetZ ns.Float32
MaxSpeed ns.Float32
ParticleCount ns.Int32
ParticleId ns.VarInt
Data ns.ByteArray
}
S2CLevelParticles represents "Particle".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Particle
func (*S2CLevelParticles) Bound ¶
func (p *S2CLevelParticles) Bound() jp.Bound
func (*S2CLevelParticles) ID ¶
func (p *S2CLevelParticles) ID() ns.VarInt
func (*S2CLevelParticles) Read ¶
func (p *S2CLevelParticles) Read(buf *ns.PacketBuffer) error
func (*S2CLevelParticles) State ¶
func (p *S2CLevelParticles) State() jp.State
func (*S2CLevelParticles) Write ¶
func (p *S2CLevelParticles) Write(buf *ns.PacketBuffer) error
type S2CLightUpdate ¶
S2CLightUpdate represents "Update Light".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Update_Light
func (*S2CLightUpdate) Bound ¶
func (p *S2CLightUpdate) Bound() jp.Bound
func (*S2CLightUpdate) ID ¶
func (p *S2CLightUpdate) ID() ns.VarInt
func (*S2CLightUpdate) Read ¶
func (p *S2CLightUpdate) Read(buf *ns.PacketBuffer) error
func (*S2CLightUpdate) State ¶
func (p *S2CLightUpdate) State() jp.State
func (*S2CLightUpdate) Write ¶
func (p *S2CLightUpdate) Write(buf *ns.PacketBuffer) error
type S2CLogin ¶
type S2CLogin struct {
EntityId ns.Int32
IsHardcore ns.Boolean
DimensionNames ns.PrefixedArray[ns.Identifier]
MaxPlayers ns.VarInt
ViewDistance ns.VarInt
SimulationDistance ns.VarInt
ReducedDebugInfo ns.Boolean
EnableRespawnScreen ns.Boolean
DoLimitedCrafting ns.Boolean
DimensionType ns.VarInt
DimensionName ns.Identifier
HashedSeed ns.Int64
GameMode ns.Uint8
PreviousGameMode ns.Int8
IsDebug ns.Boolean
IsFlat ns.Boolean
DeathLocation ns.PrefixedOptional[ns.GlobalPos]
PortalCooldown ns.VarInt
SeaLevel ns.VarInt
EnforcesSecureChat ns.Boolean
}
S2CLogin represents "Login (play)".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Login_(Play)
type S2CLoginCompression ¶
type S2CLoginCompression struct {
// Maximum size of a packet before it is compressed.
Threshold ns.VarInt
}
S2CLoginCompression represents "Set Compression".
Enables compression. If compression is enabled, all following packets are encoded in the compressed packet format. Negative values will disable compression.
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Set_Compression
func (*S2CLoginCompression) Bound ¶
func (p *S2CLoginCompression) Bound() jp.Bound
func (*S2CLoginCompression) ID ¶
func (p *S2CLoginCompression) ID() ns.VarInt
func (*S2CLoginCompression) Read ¶
func (p *S2CLoginCompression) Read(buf *ns.PacketBuffer) error
func (*S2CLoginCompression) State ¶
func (p *S2CLoginCompression) State() jp.State
func (*S2CLoginCompression) Write ¶
func (p *S2CLoginCompression) Write(buf *ns.PacketBuffer) error
type S2CLoginDisconnectLogin ¶
type S2CLoginDisconnectLogin struct {
// The reason why the player was disconnected.
Reason ns.TextComponent
}
S2CLoginDisconnectLogin represents "Disconnect (login)". Unlike play/config disconnect (NBT), login uses JSON (ByteBufCodecs.lenientJson).
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Disconnect_(Login)
func (*S2CLoginDisconnectLogin) Bound ¶
func (p *S2CLoginDisconnectLogin) Bound() jp.Bound
func (*S2CLoginDisconnectLogin) ID ¶
func (p *S2CLoginDisconnectLogin) ID() ns.VarInt
func (*S2CLoginDisconnectLogin) Read ¶
func (p *S2CLoginDisconnectLogin) Read(buf *ns.PacketBuffer) error
func (*S2CLoginDisconnectLogin) State ¶
func (p *S2CLoginDisconnectLogin) State() jp.State
func (*S2CLoginDisconnectLogin) Write ¶
func (p *S2CLoginDisconnectLogin) Write(buf *ns.PacketBuffer) error
type S2CLoginFinished ¶
type S2CLoginFinished struct {
Profile GameProfile
}
S2CLoginFinished represents "Login Success".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Login_Success
func (*S2CLoginFinished) Bound ¶
func (p *S2CLoginFinished) Bound() jp.Bound
func (*S2CLoginFinished) ID ¶
func (p *S2CLoginFinished) ID() ns.VarInt
func (*S2CLoginFinished) Read ¶
func (p *S2CLoginFinished) Read(buf *ns.PacketBuffer) error
func (*S2CLoginFinished) State ¶
func (p *S2CLoginFinished) State() jp.State
func (*S2CLoginFinished) Write ¶
func (p *S2CLoginFinished) Write(buf *ns.PacketBuffer) error
type S2CMapItemData ¶
S2CMapItemData represents "Map Data".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Map_Data
func (*S2CMapItemData) Bound ¶
func (p *S2CMapItemData) Bound() jp.Bound
func (*S2CMapItemData) ID ¶
func (p *S2CMapItemData) ID() ns.VarInt
func (*S2CMapItemData) Read ¶
func (p *S2CMapItemData) Read(buf *ns.PacketBuffer) error
func (*S2CMapItemData) State ¶
func (p *S2CMapItemData) State() jp.State
func (*S2CMapItemData) Write ¶
func (p *S2CMapItemData) Write(buf *ns.PacketBuffer) error
type S2CMerchantOffers ¶
S2CMerchantOffers represents "Merchant Offers".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Merchant_Offers
func (*S2CMerchantOffers) Bound ¶
func (p *S2CMerchantOffers) Bound() jp.Bound
func (*S2CMerchantOffers) ID ¶
func (p *S2CMerchantOffers) ID() ns.VarInt
func (*S2CMerchantOffers) Read ¶
func (p *S2CMerchantOffers) Read(buf *ns.PacketBuffer) error
func (*S2CMerchantOffers) State ¶
func (p *S2CMerchantOffers) State() jp.State
func (*S2CMerchantOffers) Write ¶
func (p *S2CMerchantOffers) Write(buf *ns.PacketBuffer) error
type S2CMountScreenOpen ¶
type S2CMountScreenOpen struct {
WindowId ns.VarInt
InventoryColumnsCount ns.VarInt
EntityId ns.Int32
}
S2CMountScreenOpen represents "Open Mount Screen".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Open_Horse_Screen
func (*S2CMountScreenOpen) Bound ¶
func (p *S2CMountScreenOpen) Bound() jp.Bound
func (*S2CMountScreenOpen) ID ¶
func (p *S2CMountScreenOpen) ID() ns.VarInt
func (*S2CMountScreenOpen) Read ¶
func (p *S2CMountScreenOpen) Read(buf *ns.PacketBuffer) error
func (*S2CMountScreenOpen) State ¶
func (p *S2CMountScreenOpen) State() jp.State
func (*S2CMountScreenOpen) Write ¶
func (p *S2CMountScreenOpen) Write(buf *ns.PacketBuffer) error
type S2CMoveEntityPos ¶
type S2CMoveEntityPos struct {
EntityId ns.VarInt
DeltaX ns.Int16
DeltaY ns.Int16
DeltaZ ns.Int16
OnGround ns.Boolean
}
S2CMoveEntityPos represents "Update Entity Position".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Update_Entity_Position
func (*S2CMoveEntityPos) Bound ¶
func (p *S2CMoveEntityPos) Bound() jp.Bound
func (*S2CMoveEntityPos) ID ¶
func (p *S2CMoveEntityPos) ID() ns.VarInt
func (*S2CMoveEntityPos) Read ¶
func (p *S2CMoveEntityPos) Read(buf *ns.PacketBuffer) error
func (*S2CMoveEntityPos) State ¶
func (p *S2CMoveEntityPos) State() jp.State
func (*S2CMoveEntityPos) Write ¶
func (p *S2CMoveEntityPos) Write(buf *ns.PacketBuffer) error
type S2CMoveEntityPosRot ¶
type S2CMoveEntityPosRot struct {
EntityId ns.VarInt
DeltaX ns.Int16
DeltaY ns.Int16
DeltaZ ns.Int16
Yaw ns.Angle
Pitch ns.Angle
OnGround ns.Boolean
}
S2CMoveEntityPosRot represents "Update Entity Position and Rotation".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Update_Entity_Position_And_Rotation
func (*S2CMoveEntityPosRot) Bound ¶
func (p *S2CMoveEntityPosRot) Bound() jp.Bound
func (*S2CMoveEntityPosRot) ID ¶
func (p *S2CMoveEntityPosRot) ID() ns.VarInt
func (*S2CMoveEntityPosRot) Read ¶
func (p *S2CMoveEntityPosRot) Read(buf *ns.PacketBuffer) error
func (*S2CMoveEntityPosRot) State ¶
func (p *S2CMoveEntityPosRot) State() jp.State
func (*S2CMoveEntityPosRot) Write ¶
func (p *S2CMoveEntityPosRot) Write(buf *ns.PacketBuffer) error
type S2CMoveEntityRot ¶
S2CMoveEntityRot represents "Update Entity Rotation".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Update_Entity_Rotation
func (*S2CMoveEntityRot) Bound ¶
func (p *S2CMoveEntityRot) Bound() jp.Bound
func (*S2CMoveEntityRot) ID ¶
func (p *S2CMoveEntityRot) ID() ns.VarInt
func (*S2CMoveEntityRot) Read ¶
func (p *S2CMoveEntityRot) Read(buf *ns.PacketBuffer) error
func (*S2CMoveEntityRot) State ¶
func (p *S2CMoveEntityRot) State() jp.State
func (*S2CMoveEntityRot) Write ¶
func (p *S2CMoveEntityRot) Write(buf *ns.PacketBuffer) error
type S2CMoveMinecartAlongTrack ¶
S2CMoveMinecartAlongTrack represents "Move Minecart Along Track".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Move_Minecart_Along_Track
func (*S2CMoveMinecartAlongTrack) Bound ¶
func (p *S2CMoveMinecartAlongTrack) Bound() jp.Bound
func (*S2CMoveMinecartAlongTrack) ID ¶
func (p *S2CMoveMinecartAlongTrack) ID() ns.VarInt
func (*S2CMoveMinecartAlongTrack) Read ¶
func (p *S2CMoveMinecartAlongTrack) Read(buf *ns.PacketBuffer) error
func (*S2CMoveMinecartAlongTrack) State ¶
func (p *S2CMoveMinecartAlongTrack) State() jp.State
func (*S2CMoveMinecartAlongTrack) Write ¶
func (p *S2CMoveMinecartAlongTrack) Write(buf *ns.PacketBuffer) error
type S2CMoveVehicle ¶
type S2CMoveVehicle struct {
X ns.Float64
Y ns.Float64
Z ns.Float64
Yaw ns.Float32
Pitch ns.Float32
}
S2CMoveVehicle represents "Move Vehicle (clientbound)".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Move_Vehicle_(Clientbound)
func (*S2CMoveVehicle) Bound ¶
func (p *S2CMoveVehicle) Bound() jp.Bound
func (*S2CMoveVehicle) ID ¶
func (p *S2CMoveVehicle) ID() ns.VarInt
func (*S2CMoveVehicle) Read ¶
func (p *S2CMoveVehicle) Read(buf *ns.PacketBuffer) error
func (*S2CMoveVehicle) State ¶
func (p *S2CMoveVehicle) State() jp.State
func (*S2CMoveVehicle) Write ¶
func (p *S2CMoveVehicle) Write(buf *ns.PacketBuffer) error
type S2COpenBook ¶
S2COpenBook represents "Open Book".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Open_Book
func (*S2COpenBook) Bound ¶
func (p *S2COpenBook) Bound() jp.Bound
func (*S2COpenBook) ID ¶
func (p *S2COpenBook) ID() ns.VarInt
func (*S2COpenBook) Read ¶
func (p *S2COpenBook) Read(buf *ns.PacketBuffer) error
func (*S2COpenBook) State ¶
func (p *S2COpenBook) State() jp.State
func (*S2COpenBook) Write ¶
func (p *S2COpenBook) Write(buf *ns.PacketBuffer) error
type S2COpenScreen ¶
S2COpenScreen represents "Open Screen".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Open_Screen
func (*S2COpenScreen) Bound ¶
func (p *S2COpenScreen) Bound() jp.Bound
func (*S2COpenScreen) ID ¶
func (p *S2COpenScreen) ID() ns.VarInt
func (*S2COpenScreen) Read ¶
func (p *S2COpenScreen) Read(buf *ns.PacketBuffer) error
func (*S2COpenScreen) State ¶
func (p *S2COpenScreen) State() jp.State
func (*S2COpenScreen) Write ¶
func (p *S2COpenScreen) Write(buf *ns.PacketBuffer) error
type S2COpenSignEditor ¶
S2COpenSignEditor represents "Open Sign Editor".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Open_Sign_Editor
func (*S2COpenSignEditor) Bound ¶
func (p *S2COpenSignEditor) Bound() jp.Bound
func (*S2COpenSignEditor) ID ¶
func (p *S2COpenSignEditor) ID() ns.VarInt
func (*S2COpenSignEditor) Read ¶
func (p *S2COpenSignEditor) Read(buf *ns.PacketBuffer) error
func (*S2COpenSignEditor) State ¶
func (p *S2COpenSignEditor) State() jp.State
func (*S2COpenSignEditor) Write ¶
func (p *S2COpenSignEditor) Write(buf *ns.PacketBuffer) error
type S2CPingConfiguration ¶
S2CPingConfiguration represents "Ping (configuration)".
Packet is not used by the vanilla server.
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Ping_(Configuration)
func (*S2CPingConfiguration) Bound ¶
func (p *S2CPingConfiguration) Bound() jp.Bound
func (*S2CPingConfiguration) ID ¶
func (p *S2CPingConfiguration) ID() ns.VarInt
func (*S2CPingConfiguration) Read ¶
func (p *S2CPingConfiguration) Read(buf *ns.PacketBuffer) error
func (*S2CPingConfiguration) State ¶
func (p *S2CPingConfiguration) State() jp.State
func (*S2CPingConfiguration) Write ¶
func (p *S2CPingConfiguration) Write(buf *ns.PacketBuffer) error
type S2CPingPlay ¶
S2CPingPlay represents "Ping (play)".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Ping_(Play)
func (*S2CPingPlay) Bound ¶
func (p *S2CPingPlay) Bound() jp.Bound
func (*S2CPingPlay) ID ¶
func (p *S2CPingPlay) ID() ns.VarInt
func (*S2CPingPlay) Read ¶
func (p *S2CPingPlay) Read(buf *ns.PacketBuffer) error
func (*S2CPingPlay) State ¶
func (p *S2CPingPlay) State() jp.State
func (*S2CPingPlay) Write ¶
func (p *S2CPingPlay) Write(buf *ns.PacketBuffer) error
type S2CPlaceGhostRecipe ¶
S2CPlaceGhostRecipe represents "Place Ghost Recipe".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Place_Ghost_Recipe
func (*S2CPlaceGhostRecipe) Bound ¶
func (p *S2CPlaceGhostRecipe) Bound() jp.Bound
func (*S2CPlaceGhostRecipe) ID ¶
func (p *S2CPlaceGhostRecipe) ID() ns.VarInt
func (*S2CPlaceGhostRecipe) Read ¶
func (p *S2CPlaceGhostRecipe) Read(buf *ns.PacketBuffer) error
func (*S2CPlaceGhostRecipe) State ¶
func (p *S2CPlaceGhostRecipe) State() jp.State
func (*S2CPlaceGhostRecipe) Write ¶
func (p *S2CPlaceGhostRecipe) Write(buf *ns.PacketBuffer) error
type S2CPlayerAbilities ¶
type S2CPlayerAbilities struct {
Flags ns.Int8
FlyingSpeed ns.Float32
FieldOfViewModifier ns.Float32
}
S2CPlayerAbilities represents "Player Abilities (clientbound)".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Player_Abilities_(Clientbound)
func (*S2CPlayerAbilities) Bound ¶
func (p *S2CPlayerAbilities) Bound() jp.Bound
func (*S2CPlayerAbilities) ID ¶
func (p *S2CPlayerAbilities) ID() ns.VarInt
func (*S2CPlayerAbilities) Read ¶
func (p *S2CPlayerAbilities) Read(buf *ns.PacketBuffer) error
func (*S2CPlayerAbilities) State ¶
func (p *S2CPlayerAbilities) State() jp.State
func (*S2CPlayerAbilities) Write ¶
func (p *S2CPlayerAbilities) Write(buf *ns.PacketBuffer) error
type S2CPlayerChat ¶
type S2CPlayerChat struct {
GlobalIndex ns.VarInt
Sender ns.UUID
Index ns.VarInt
Signature ns.PrefixedOptional[MessageSignature]
Body SignedMessageBody
UnsignedContent ns.PrefixedOptional[ns.TextComponent]
FilterMask FilterMask
ChatType ChatTypeBound
}
S2CPlayerChat represents "Player Chat Message".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Player_Chat_Message
func (*S2CPlayerChat) Bound ¶
func (p *S2CPlayerChat) Bound() jp.Bound
func (*S2CPlayerChat) GetMessage ¶
func (p *S2CPlayerChat) GetMessage() string
GetMessage returns the chat message content. If there's unsigned content, it returns that; otherwise returns the signed body content.
func (*S2CPlayerChat) GetSenderName ¶
func (p *S2CPlayerChat) GetSenderName() string
GetSenderName returns the sender's display name as plain text.
func (*S2CPlayerChat) ID ¶
func (p *S2CPlayerChat) ID() ns.VarInt
func (*S2CPlayerChat) Read ¶
func (p *S2CPlayerChat) Read(buf *ns.PacketBuffer) error
func (*S2CPlayerChat) State ¶
func (p *S2CPlayerChat) State() jp.State
func (*S2CPlayerChat) Write ¶
func (p *S2CPlayerChat) Write(buf *ns.PacketBuffer) error
type S2CPlayerCombatEnd ¶
S2CPlayerCombatEnd represents "End Combat".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#End_Combat
func (*S2CPlayerCombatEnd) Bound ¶
func (p *S2CPlayerCombatEnd) Bound() jp.Bound
func (*S2CPlayerCombatEnd) ID ¶
func (p *S2CPlayerCombatEnd) ID() ns.VarInt
func (*S2CPlayerCombatEnd) Read ¶
func (p *S2CPlayerCombatEnd) Read(buf *ns.PacketBuffer) error
func (*S2CPlayerCombatEnd) State ¶
func (p *S2CPlayerCombatEnd) State() jp.State
func (*S2CPlayerCombatEnd) Write ¶
func (p *S2CPlayerCombatEnd) Write(buf *ns.PacketBuffer) error
type S2CPlayerCombatEnter ¶
type S2CPlayerCombatEnter struct{}
S2CPlayerCombatEnter represents "Enter Combat".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Enter_Combat
func (*S2CPlayerCombatEnter) Bound ¶
func (p *S2CPlayerCombatEnter) Bound() jp.Bound
func (*S2CPlayerCombatEnter) ID ¶
func (p *S2CPlayerCombatEnter) ID() ns.VarInt
func (*S2CPlayerCombatEnter) Read ¶
func (p *S2CPlayerCombatEnter) Read(*ns.PacketBuffer) error
func (*S2CPlayerCombatEnter) State ¶
func (p *S2CPlayerCombatEnter) State() jp.State
func (*S2CPlayerCombatEnter) Write ¶
func (p *S2CPlayerCombatEnter) Write(*ns.PacketBuffer) error
type S2CPlayerCombatKill ¶
type S2CPlayerCombatKill struct {
PlayerId ns.VarInt
Message ns.TextComponent
}
S2CPlayerCombatKill represents "Combat Death".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Combat_Death
func (*S2CPlayerCombatKill) Bound ¶
func (p *S2CPlayerCombatKill) Bound() jp.Bound
func (*S2CPlayerCombatKill) ID ¶
func (p *S2CPlayerCombatKill) ID() ns.VarInt
func (*S2CPlayerCombatKill) Read ¶
func (p *S2CPlayerCombatKill) Read(buf *ns.PacketBuffer) error
func (*S2CPlayerCombatKill) State ¶
func (p *S2CPlayerCombatKill) State() jp.State
func (*S2CPlayerCombatKill) Write ¶
func (p *S2CPlayerCombatKill) Write(buf *ns.PacketBuffer) error
type S2CPlayerInfoRemove ¶
S2CPlayerInfoRemove represents "Player Info Remove".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Player_Info_Remove
func (*S2CPlayerInfoRemove) Bound ¶
func (p *S2CPlayerInfoRemove) Bound() jp.Bound
func (*S2CPlayerInfoRemove) ID ¶
func (p *S2CPlayerInfoRemove) ID() ns.VarInt
func (*S2CPlayerInfoRemove) Read ¶
func (p *S2CPlayerInfoRemove) Read(buf *ns.PacketBuffer) error
func (*S2CPlayerInfoRemove) State ¶
func (p *S2CPlayerInfoRemove) State() jp.State
func (*S2CPlayerInfoRemove) Write ¶
func (p *S2CPlayerInfoRemove) Write(buf *ns.PacketBuffer) error
type S2CPlayerInfoUpdate ¶
S2CPlayerInfoUpdate represents "Player Info Update".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Player_Info_Update
func (*S2CPlayerInfoUpdate) Bound ¶
func (p *S2CPlayerInfoUpdate) Bound() jp.Bound
func (*S2CPlayerInfoUpdate) ID ¶
func (p *S2CPlayerInfoUpdate) ID() ns.VarInt
func (*S2CPlayerInfoUpdate) Read ¶
func (p *S2CPlayerInfoUpdate) Read(buf *ns.PacketBuffer) error
func (*S2CPlayerInfoUpdate) State ¶
func (p *S2CPlayerInfoUpdate) State() jp.State
func (*S2CPlayerInfoUpdate) Write ¶
func (p *S2CPlayerInfoUpdate) Write(buf *ns.PacketBuffer) error
type S2CPlayerLookAt ¶
type S2CPlayerLookAt struct {
FeetEyes ns.VarInt
TargetX ns.Float64
TargetY ns.Float64
TargetZ ns.Float64
IsEntity ns.Boolean
EntityId ns.VarInt
EntityFeetEyes ns.VarInt
}
S2CPlayerLookAt represents "Look At".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Look_At
func (*S2CPlayerLookAt) Bound ¶
func (p *S2CPlayerLookAt) Bound() jp.Bound
func (*S2CPlayerLookAt) ID ¶
func (p *S2CPlayerLookAt) ID() ns.VarInt
func (*S2CPlayerLookAt) Read ¶
func (p *S2CPlayerLookAt) Read(buf *ns.PacketBuffer) error
func (*S2CPlayerLookAt) State ¶
func (p *S2CPlayerLookAt) State() jp.State
func (*S2CPlayerLookAt) Write ¶
func (p *S2CPlayerLookAt) Write(buf *ns.PacketBuffer) error
type S2CPlayerPosition ¶
type S2CPlayerPosition struct {
TeleportId ns.VarInt
X ns.Float64
Y ns.Float64
Z ns.Float64
VelocityX ns.Float64
VelocityY ns.Float64
VelocityZ ns.Float64
Yaw ns.Float32
Pitch ns.Float32
Flags ns.Int32
}
S2CPlayerPosition represents "Synchronize Player Position".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Synchronize_Player_Position
func (*S2CPlayerPosition) Bound ¶
func (p *S2CPlayerPosition) Bound() jp.Bound
func (*S2CPlayerPosition) ID ¶
func (p *S2CPlayerPosition) ID() ns.VarInt
func (*S2CPlayerPosition) Read ¶
func (p *S2CPlayerPosition) Read(buf *ns.PacketBuffer) error
func (*S2CPlayerPosition) State ¶
func (p *S2CPlayerPosition) State() jp.State
func (*S2CPlayerPosition) Write ¶
func (p *S2CPlayerPosition) Write(buf *ns.PacketBuffer) error
type S2CPlayerRotation ¶
type S2CPlayerRotation struct {
Yaw ns.Float32
RelativeYaw ns.Boolean
Pitch ns.Float32
RelativePitch ns.Boolean
}
S2CPlayerRotation represents "Player Rotation".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Player_Rotation
func (*S2CPlayerRotation) Bound ¶
func (p *S2CPlayerRotation) Bound() jp.Bound
func (*S2CPlayerRotation) ID ¶
func (p *S2CPlayerRotation) ID() ns.VarInt
func (*S2CPlayerRotation) Read ¶
func (p *S2CPlayerRotation) Read(buf *ns.PacketBuffer) error
func (*S2CPlayerRotation) State ¶
func (p *S2CPlayerRotation) State() jp.State
func (*S2CPlayerRotation) Write ¶
func (p *S2CPlayerRotation) Write(buf *ns.PacketBuffer) error
type S2CPongResponsePlay ¶
S2CPongResponsePlay represents "Ping Response (play)".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Ping_Response_(Play)
func (*S2CPongResponsePlay) Bound ¶
func (p *S2CPongResponsePlay) Bound() jp.Bound
func (*S2CPongResponsePlay) ID ¶
func (p *S2CPongResponsePlay) ID() ns.VarInt
func (*S2CPongResponsePlay) Read ¶
func (p *S2CPongResponsePlay) Read(buf *ns.PacketBuffer) error
func (*S2CPongResponsePlay) State ¶
func (p *S2CPongResponsePlay) State() jp.State
func (*S2CPongResponsePlay) Write ¶
func (p *S2CPongResponsePlay) Write(buf *ns.PacketBuffer) error
type S2CPongResponseStatus ¶
type S2CPongResponseStatus struct {
// Should match the one sent by the client.
Timestamp ns.Int64
}
S2CPongResponseStatus represents "Pong Response (status)".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Pong_Response_(Status)
func (*S2CPongResponseStatus) Bound ¶
func (p *S2CPongResponseStatus) Bound() jp.Bound
func (*S2CPongResponseStatus) ID ¶
func (p *S2CPongResponseStatus) ID() ns.VarInt
func (*S2CPongResponseStatus) Read ¶
func (p *S2CPongResponseStatus) Read(buf *ns.PacketBuffer) error
func (*S2CPongResponseStatus) State ¶
func (p *S2CPongResponseStatus) State() jp.State
func (*S2CPongResponseStatus) Write ¶
func (p *S2CPongResponseStatus) Write(buf *ns.PacketBuffer) error
type S2CProjectilePower ¶
S2CProjectilePower represents "Projectile Power".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Projectile_Power
func (*S2CProjectilePower) Bound ¶
func (p *S2CProjectilePower) Bound() jp.Bound
func (*S2CProjectilePower) ID ¶
func (p *S2CProjectilePower) ID() ns.VarInt
func (*S2CProjectilePower) Read ¶
func (p *S2CProjectilePower) Read(buf *ns.PacketBuffer) error
func (*S2CProjectilePower) State ¶
func (p *S2CProjectilePower) State() jp.State
func (*S2CProjectilePower) Write ¶
func (p *S2CProjectilePower) Write(buf *ns.PacketBuffer) error
type S2CRecipeBookAdd ¶
S2CRecipeBookAdd represents "Recipe Book Add".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Recipe_Book_Add
func (*S2CRecipeBookAdd) Bound ¶
func (p *S2CRecipeBookAdd) Bound() jp.Bound
func (*S2CRecipeBookAdd) ID ¶
func (p *S2CRecipeBookAdd) ID() ns.VarInt
func (*S2CRecipeBookAdd) Read ¶
func (p *S2CRecipeBookAdd) Read(buf *ns.PacketBuffer) error
func (*S2CRecipeBookAdd) State ¶
func (p *S2CRecipeBookAdd) State() jp.State
func (*S2CRecipeBookAdd) Write ¶
func (p *S2CRecipeBookAdd) Write(buf *ns.PacketBuffer) error
type S2CRecipeBookRemove ¶
S2CRecipeBookRemove represents "Recipe Book Remove".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Recipe_Book_Remove
func (*S2CRecipeBookRemove) Bound ¶
func (p *S2CRecipeBookRemove) Bound() jp.Bound
func (*S2CRecipeBookRemove) ID ¶
func (p *S2CRecipeBookRemove) ID() ns.VarInt
func (*S2CRecipeBookRemove) Read ¶
func (p *S2CRecipeBookRemove) Read(buf *ns.PacketBuffer) error
func (*S2CRecipeBookRemove) State ¶
func (p *S2CRecipeBookRemove) State() jp.State
func (*S2CRecipeBookRemove) Write ¶
func (p *S2CRecipeBookRemove) Write(buf *ns.PacketBuffer) error
type S2CRecipeBookSettings ¶
type S2CRecipeBookSettings struct {
CraftingRecipeBookOpen ns.Boolean
CraftingRecipeBookFilterActive ns.Boolean
SmeltingRecipeBookOpen ns.Boolean
SmeltingRecipeBookFilterActive ns.Boolean
BlastFurnaceRecipeBookOpen ns.Boolean
BlastFurnaceRecipeBookFilterActive ns.Boolean
SmokerRecipeBookOpen ns.Boolean
SmokerRecipeBookFilterActive ns.Boolean
}
S2CRecipeBookSettings represents "Recipe Book Settings".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Recipe_Book_Settings
func (*S2CRecipeBookSettings) Bound ¶
func (p *S2CRecipeBookSettings) Bound() jp.Bound
func (*S2CRecipeBookSettings) ID ¶
func (p *S2CRecipeBookSettings) ID() ns.VarInt
func (*S2CRecipeBookSettings) Read ¶
func (p *S2CRecipeBookSettings) Read(buf *ns.PacketBuffer) error
func (*S2CRecipeBookSettings) State ¶
func (p *S2CRecipeBookSettings) State() jp.State
func (*S2CRecipeBookSettings) Write ¶
func (p *S2CRecipeBookSettings) Write(buf *ns.PacketBuffer) error
type S2CRegistryData ¶
type S2CRegistryData struct {
RegistryId ns.Identifier
Entries []RegistryEntry
}
S2CRegistryData represents "Registry Data".
Represents certain registries that are sent from the server.
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Registry_Data
func (*S2CRegistryData) Bound ¶
func (p *S2CRegistryData) Bound() jp.Bound
func (*S2CRegistryData) ID ¶
func (p *S2CRegistryData) ID() ns.VarInt
func (*S2CRegistryData) Read ¶
func (p *S2CRegistryData) Read(buf *ns.PacketBuffer) error
func (*S2CRegistryData) State ¶
func (p *S2CRegistryData) State() jp.State
func (*S2CRegistryData) Write ¶
func (p *S2CRegistryData) Write(buf *ns.PacketBuffer) error
type S2CRemoveEntities ¶
S2CRemoveEntities represents "Remove Entities".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Remove_Entities
func (*S2CRemoveEntities) Bound ¶
func (p *S2CRemoveEntities) Bound() jp.Bound
func (*S2CRemoveEntities) ID ¶
func (p *S2CRemoveEntities) ID() ns.VarInt
func (*S2CRemoveEntities) Read ¶
func (p *S2CRemoveEntities) Read(buf *ns.PacketBuffer) error
func (*S2CRemoveEntities) State ¶
func (p *S2CRemoveEntities) State() jp.State
func (*S2CRemoveEntities) Write ¶
func (p *S2CRemoveEntities) Write(buf *ns.PacketBuffer) error
type S2CRemoveMobEffect ¶
S2CRemoveMobEffect represents "Remove Entity Effect".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Remove_Entity_Effect
func (*S2CRemoveMobEffect) Bound ¶
func (p *S2CRemoveMobEffect) Bound() jp.Bound
func (*S2CRemoveMobEffect) ID ¶
func (p *S2CRemoveMobEffect) ID() ns.VarInt
func (*S2CRemoveMobEffect) Read ¶
func (p *S2CRemoveMobEffect) Read(buf *ns.PacketBuffer) error
func (*S2CRemoveMobEffect) State ¶
func (p *S2CRemoveMobEffect) State() jp.State
func (*S2CRemoveMobEffect) Write ¶
func (p *S2CRemoveMobEffect) Write(buf *ns.PacketBuffer) error
type S2CResetChat ¶
type S2CResetChat struct{}
S2CResetChat represents "Reset Chat".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Reset_Chat
func (*S2CResetChat) Bound ¶
func (p *S2CResetChat) Bound() jp.Bound
func (*S2CResetChat) ID ¶
func (p *S2CResetChat) ID() ns.VarInt
func (*S2CResetChat) Read ¶
func (p *S2CResetChat) Read(*ns.PacketBuffer) error
func (*S2CResetChat) State ¶
func (p *S2CResetChat) State() jp.State
func (*S2CResetChat) Write ¶
func (p *S2CResetChat) Write(*ns.PacketBuffer) error
type S2CResetScore ¶
S2CResetScore represents "Reset Score".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Reset_Score
func (*S2CResetScore) Bound ¶
func (p *S2CResetScore) Bound() jp.Bound
func (*S2CResetScore) ID ¶
func (p *S2CResetScore) ID() ns.VarInt
func (*S2CResetScore) Read ¶
func (p *S2CResetScore) Read(buf *ns.PacketBuffer) error
func (*S2CResetScore) State ¶
func (p *S2CResetScore) State() jp.State
func (*S2CResetScore) Write ¶
func (p *S2CResetScore) Write(buf *ns.PacketBuffer) error
type S2CResourcePackPopConfiguration ¶
type S2CResourcePackPopConfiguration struct {
// The UUID of the resource pack to be removed. If not present, every resource pack will be removed.
Uuid ns.PrefixedOptional[ns.UUID]
}
S2CResourcePackPopConfiguration represents "Remove Resource Pack (configuration)".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Remove_Resource_Pack_(Configuration)
func (*S2CResourcePackPopConfiguration) Bound ¶
func (p *S2CResourcePackPopConfiguration) Bound() jp.Bound
func (*S2CResourcePackPopConfiguration) ID ¶
func (p *S2CResourcePackPopConfiguration) ID() ns.VarInt
func (*S2CResourcePackPopConfiguration) Read ¶
func (p *S2CResourcePackPopConfiguration) Read(buf *ns.PacketBuffer) error
func (*S2CResourcePackPopConfiguration) State ¶
func (p *S2CResourcePackPopConfiguration) State() jp.State
func (*S2CResourcePackPopConfiguration) Write ¶
func (p *S2CResourcePackPopConfiguration) Write(buf *ns.PacketBuffer) error
type S2CResourcePackPopPlay ¶
type S2CResourcePackPopPlay struct {
Uuid ns.PrefixedOptional[ns.UUID]
}
S2CResourcePackPopPlay represents "Remove Resource Pack (play)".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Remove_Resource_Pack_(Play)
func (*S2CResourcePackPopPlay) Bound ¶
func (p *S2CResourcePackPopPlay) Bound() jp.Bound
func (*S2CResourcePackPopPlay) ID ¶
func (p *S2CResourcePackPopPlay) ID() ns.VarInt
func (*S2CResourcePackPopPlay) Read ¶
func (p *S2CResourcePackPopPlay) Read(buf *ns.PacketBuffer) error
func (*S2CResourcePackPopPlay) State ¶
func (p *S2CResourcePackPopPlay) State() jp.State
func (*S2CResourcePackPopPlay) Write ¶
func (p *S2CResourcePackPopPlay) Write(buf *ns.PacketBuffer) error
type S2CResourcePackPushConfiguration ¶
type S2CResourcePackPushConfiguration struct {
// The unique identifier of the resource pack.
Uuid ns.UUID
// The URL to the resource pack.
Url ns.String
// A 40 character hexadecimal SHA-1 hash of the resource pack file.
Hash ns.String
// The vanilla client will be forced to use the resource pack from the server.
Forced ns.Boolean
// This is shown in the prompt making the client accept or decline the resource pack.
PromptMessage ns.PrefixedOptional[ns.TextComponent]
}
S2CResourcePackPushConfiguration represents "Add Resource Pack (configuration)".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Add_Resource_Pack_(Configuration)
func (*S2CResourcePackPushConfiguration) Bound ¶
func (p *S2CResourcePackPushConfiguration) Bound() jp.Bound
func (*S2CResourcePackPushConfiguration) ID ¶
func (p *S2CResourcePackPushConfiguration) ID() ns.VarInt
func (*S2CResourcePackPushConfiguration) Read ¶
func (p *S2CResourcePackPushConfiguration) Read(buf *ns.PacketBuffer) error
func (*S2CResourcePackPushConfiguration) State ¶
func (p *S2CResourcePackPushConfiguration) State() jp.State
func (*S2CResourcePackPushConfiguration) Write ¶
func (p *S2CResourcePackPushConfiguration) Write(buf *ns.PacketBuffer) error
type S2CResourcePackPushPlay ¶
type S2CResourcePackPushPlay struct {
Uuid ns.UUID
Url ns.String
Hash ns.String
Forced ns.Boolean
PromptMessage ns.PrefixedOptional[ns.TextComponent]
}
S2CResourcePackPushPlay represents "Add Resource Pack (play)".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Add_Resource_Pack_(Play)
func (*S2CResourcePackPushPlay) Bound ¶
func (p *S2CResourcePackPushPlay) Bound() jp.Bound
func (*S2CResourcePackPushPlay) ID ¶
func (p *S2CResourcePackPushPlay) ID() ns.VarInt
func (*S2CResourcePackPushPlay) Read ¶
func (p *S2CResourcePackPushPlay) Read(buf *ns.PacketBuffer) error
func (*S2CResourcePackPushPlay) State ¶
func (p *S2CResourcePackPushPlay) State() jp.State
func (*S2CResourcePackPushPlay) Write ¶
func (p *S2CResourcePackPushPlay) Write(buf *ns.PacketBuffer) error
type S2CRespawn ¶
type S2CRespawn struct {
DimensionType ns.VarInt
DimensionName ns.Identifier
HashedSeed ns.Int64
GameMode ns.Uint8
PreviousGameMode ns.Int8
IsDebug ns.Boolean
IsFlat ns.Boolean
DeathLocation ns.PrefixedOptional[ns.ByteArray]
PortalCooldown ns.VarInt
SeaLevel ns.VarInt
DataKept ns.Int8
}
S2CRespawn represents "Respawn".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Respawn
func (*S2CRespawn) Bound ¶
func (p *S2CRespawn) Bound() jp.Bound
func (*S2CRespawn) ID ¶
func (p *S2CRespawn) ID() ns.VarInt
func (*S2CRespawn) Read ¶
func (p *S2CRespawn) Read(buf *ns.PacketBuffer) error
func (*S2CRespawn) State ¶
func (p *S2CRespawn) State() jp.State
func (*S2CRespawn) Write ¶
func (p *S2CRespawn) Write(buf *ns.PacketBuffer) error
type S2CRotateHead ¶
S2CRotateHead represents "Set Head Rotation".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Set_Head_Rotation
func (*S2CRotateHead) Bound ¶
func (p *S2CRotateHead) Bound() jp.Bound
func (*S2CRotateHead) ID ¶
func (p *S2CRotateHead) ID() ns.VarInt
func (*S2CRotateHead) Read ¶
func (p *S2CRotateHead) Read(buf *ns.PacketBuffer) error
func (*S2CRotateHead) State ¶
func (p *S2CRotateHead) State() jp.State
func (*S2CRotateHead) Write ¶
func (p *S2CRotateHead) Write(buf *ns.PacketBuffer) error
type S2CSectionBlocksUpdate ¶
type S2CSectionBlocksUpdate struct {
ChunkSectionPosition ns.Int64
Blocks ns.PrefixedArray[ns.VarLong]
}
S2CSectionBlocksUpdate represents "Update Section Blocks".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Update_Section_Blocks
func (*S2CSectionBlocksUpdate) Bound ¶
func (p *S2CSectionBlocksUpdate) Bound() jp.Bound
func (*S2CSectionBlocksUpdate) ID ¶
func (p *S2CSectionBlocksUpdate) ID() ns.VarInt
func (*S2CSectionBlocksUpdate) Read ¶
func (p *S2CSectionBlocksUpdate) Read(buf *ns.PacketBuffer) error
func (*S2CSectionBlocksUpdate) State ¶
func (p *S2CSectionBlocksUpdate) State() jp.State
func (*S2CSectionBlocksUpdate) Write ¶
func (p *S2CSectionBlocksUpdate) Write(buf *ns.PacketBuffer) error
type S2CSelectAdvancementsTab ¶
type S2CSelectAdvancementsTab struct {
Identifier ns.PrefixedOptional[ns.Identifier]
}
S2CSelectAdvancementsTab represents "Select Advancements Tab".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Select_Advancements_Tab
func (*S2CSelectAdvancementsTab) Bound ¶
func (p *S2CSelectAdvancementsTab) Bound() jp.Bound
func (*S2CSelectAdvancementsTab) ID ¶
func (p *S2CSelectAdvancementsTab) ID() ns.VarInt
func (*S2CSelectAdvancementsTab) Read ¶
func (p *S2CSelectAdvancementsTab) Read(buf *ns.PacketBuffer) error
func (*S2CSelectAdvancementsTab) State ¶
func (p *S2CSelectAdvancementsTab) State() jp.State
func (*S2CSelectAdvancementsTab) Write ¶
func (p *S2CSelectAdvancementsTab) Write(buf *ns.PacketBuffer) error
type S2CSelectKnownPacks ¶
type S2CSelectKnownPacks struct {
KnownPacks []KnownPack
}
S2CSelectKnownPacks represents "Clientbound Known Packs".
Informs the client of which data packs are present on the server.
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Clientbound_Known_Packs
func (*S2CSelectKnownPacks) Bound ¶
func (p *S2CSelectKnownPacks) Bound() jp.Bound
func (*S2CSelectKnownPacks) ID ¶
func (p *S2CSelectKnownPacks) ID() ns.VarInt
func (*S2CSelectKnownPacks) Read ¶
func (p *S2CSelectKnownPacks) Read(buf *ns.PacketBuffer) error
func (*S2CSelectKnownPacks) State ¶
func (p *S2CSelectKnownPacks) State() jp.State
func (*S2CSelectKnownPacks) Write ¶
func (p *S2CSelectKnownPacks) Write(buf *ns.PacketBuffer) error
type S2CServerData ¶
type S2CServerData struct {
Motd ns.TextComponent
Icon ns.PrefixedOptional[ns.ByteArray]
}
S2CServerData represents "Server Data".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Server_Data
func (*S2CServerData) Bound ¶
func (p *S2CServerData) Bound() jp.Bound
func (*S2CServerData) ID ¶
func (p *S2CServerData) ID() ns.VarInt
func (*S2CServerData) Read ¶
func (p *S2CServerData) Read(buf *ns.PacketBuffer) error
func (*S2CServerData) State ¶
func (p *S2CServerData) State() jp.State
func (*S2CServerData) Write ¶
func (p *S2CServerData) Write(buf *ns.PacketBuffer) error
type S2CServerLinksConfiguration ¶
type S2CServerLinksConfiguration struct {
Links []ServerLink
}
S2CServerLinksConfiguration represents "Server Links (configuration)".
Contains a list of links that the vanilla client will display in the pause menu.
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Server_Links_(Configuration)
func (*S2CServerLinksConfiguration) Bound ¶
func (p *S2CServerLinksConfiguration) Bound() jp.Bound
func (*S2CServerLinksConfiguration) ID ¶
func (p *S2CServerLinksConfiguration) ID() ns.VarInt
func (*S2CServerLinksConfiguration) Read ¶
func (p *S2CServerLinksConfiguration) Read(buf *ns.PacketBuffer) error
func (*S2CServerLinksConfiguration) State ¶
func (p *S2CServerLinksConfiguration) State() jp.State
func (*S2CServerLinksConfiguration) Write ¶
func (p *S2CServerLinksConfiguration) Write(buf *ns.PacketBuffer) error
type S2CServerLinksPlay ¶
S2CServerLinksPlay represents "Server Links (play)".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Server_Links
func (*S2CServerLinksPlay) Bound ¶
func (p *S2CServerLinksPlay) Bound() jp.Bound
func (*S2CServerLinksPlay) ID ¶
func (p *S2CServerLinksPlay) ID() ns.VarInt
func (*S2CServerLinksPlay) Read ¶
func (p *S2CServerLinksPlay) Read(buf *ns.PacketBuffer) error
func (*S2CServerLinksPlay) State ¶
func (p *S2CServerLinksPlay) State() jp.State
func (*S2CServerLinksPlay) Write ¶
func (p *S2CServerLinksPlay) Write(buf *ns.PacketBuffer) error
type S2CSetActionBarText ¶
type S2CSetActionBarText struct {
Text ns.TextComponent
}
S2CSetActionBarText represents "Set Action Bar Text".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Set_Action_Bar_Text
func (*S2CSetActionBarText) Bound ¶
func (p *S2CSetActionBarText) Bound() jp.Bound
func (*S2CSetActionBarText) ID ¶
func (p *S2CSetActionBarText) ID() ns.VarInt
func (*S2CSetActionBarText) Read ¶
func (p *S2CSetActionBarText) Read(buf *ns.PacketBuffer) error
func (*S2CSetActionBarText) State ¶
func (p *S2CSetActionBarText) State() jp.State
func (*S2CSetActionBarText) Write ¶
func (p *S2CSetActionBarText) Write(buf *ns.PacketBuffer) error
type S2CSetBorderCenter ¶
S2CSetBorderCenter represents "Set Border Center".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Set_Border_Center
func (*S2CSetBorderCenter) Bound ¶
func (p *S2CSetBorderCenter) Bound() jp.Bound
func (*S2CSetBorderCenter) ID ¶
func (p *S2CSetBorderCenter) ID() ns.VarInt
func (*S2CSetBorderCenter) Read ¶
func (p *S2CSetBorderCenter) Read(buf *ns.PacketBuffer) error
func (*S2CSetBorderCenter) State ¶
func (p *S2CSetBorderCenter) State() jp.State
func (*S2CSetBorderCenter) Write ¶
func (p *S2CSetBorderCenter) Write(buf *ns.PacketBuffer) error
type S2CSetBorderLerpSize ¶
S2CSetBorderLerpSize represents "Set Border Lerp Size".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Set_Border_Lerp_Size
func (*S2CSetBorderLerpSize) Bound ¶
func (p *S2CSetBorderLerpSize) Bound() jp.Bound
func (*S2CSetBorderLerpSize) ID ¶
func (p *S2CSetBorderLerpSize) ID() ns.VarInt
func (*S2CSetBorderLerpSize) Read ¶
func (p *S2CSetBorderLerpSize) Read(buf *ns.PacketBuffer) error
func (*S2CSetBorderLerpSize) State ¶
func (p *S2CSetBorderLerpSize) State() jp.State
func (*S2CSetBorderLerpSize) Write ¶
func (p *S2CSetBorderLerpSize) Write(buf *ns.PacketBuffer) error
type S2CSetBorderSize ¶
S2CSetBorderSize represents "Set Border Size".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Set_Border_Size
func (*S2CSetBorderSize) Bound ¶
func (p *S2CSetBorderSize) Bound() jp.Bound
func (*S2CSetBorderSize) ID ¶
func (p *S2CSetBorderSize) ID() ns.VarInt
func (*S2CSetBorderSize) Read ¶
func (p *S2CSetBorderSize) Read(buf *ns.PacketBuffer) error
func (*S2CSetBorderSize) State ¶
func (p *S2CSetBorderSize) State() jp.State
func (*S2CSetBorderSize) Write ¶
func (p *S2CSetBorderSize) Write(buf *ns.PacketBuffer) error
type S2CSetBorderWarningDelay ¶
S2CSetBorderWarningDelay represents "Set Border Warning Delay".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Set_Border_Warning_Delay
func (*S2CSetBorderWarningDelay) Bound ¶
func (p *S2CSetBorderWarningDelay) Bound() jp.Bound
func (*S2CSetBorderWarningDelay) ID ¶
func (p *S2CSetBorderWarningDelay) ID() ns.VarInt
func (*S2CSetBorderWarningDelay) Read ¶
func (p *S2CSetBorderWarningDelay) Read(buf *ns.PacketBuffer) error
func (*S2CSetBorderWarningDelay) State ¶
func (p *S2CSetBorderWarningDelay) State() jp.State
func (*S2CSetBorderWarningDelay) Write ¶
func (p *S2CSetBorderWarningDelay) Write(buf *ns.PacketBuffer) error
type S2CSetBorderWarningDistance ¶
S2CSetBorderWarningDistance represents "Set Border Warning Distance".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Set_Border_Warning_Distance
func (*S2CSetBorderWarningDistance) Bound ¶
func (p *S2CSetBorderWarningDistance) Bound() jp.Bound
func (*S2CSetBorderWarningDistance) ID ¶
func (p *S2CSetBorderWarningDistance) ID() ns.VarInt
func (*S2CSetBorderWarningDistance) Read ¶
func (p *S2CSetBorderWarningDistance) Read(buf *ns.PacketBuffer) error
func (*S2CSetBorderWarningDistance) State ¶
func (p *S2CSetBorderWarningDistance) State() jp.State
func (*S2CSetBorderWarningDistance) Write ¶
func (p *S2CSetBorderWarningDistance) Write(buf *ns.PacketBuffer) error
type S2CSetCamera ¶
S2CSetCamera represents "Set Camera".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Set_Camera
func (*S2CSetCamera) Bound ¶
func (p *S2CSetCamera) Bound() jp.Bound
func (*S2CSetCamera) ID ¶
func (p *S2CSetCamera) ID() ns.VarInt
func (*S2CSetCamera) Read ¶
func (p *S2CSetCamera) Read(buf *ns.PacketBuffer) error
func (*S2CSetCamera) State ¶
func (p *S2CSetCamera) State() jp.State
func (*S2CSetCamera) Write ¶
func (p *S2CSetCamera) Write(buf *ns.PacketBuffer) error
type S2CSetChunkCacheCenter ¶
S2CSetChunkCacheCenter represents "Set Center Chunk".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Set_Center_Chunk
func (*S2CSetChunkCacheCenter) Bound ¶
func (p *S2CSetChunkCacheCenter) Bound() jp.Bound
func (*S2CSetChunkCacheCenter) ID ¶
func (p *S2CSetChunkCacheCenter) ID() ns.VarInt
func (*S2CSetChunkCacheCenter) Read ¶
func (p *S2CSetChunkCacheCenter) Read(buf *ns.PacketBuffer) error
func (*S2CSetChunkCacheCenter) State ¶
func (p *S2CSetChunkCacheCenter) State() jp.State
func (*S2CSetChunkCacheCenter) Write ¶
func (p *S2CSetChunkCacheCenter) Write(buf *ns.PacketBuffer) error
type S2CSetChunkCacheRadius ¶
S2CSetChunkCacheRadius represents "Set Render Distance".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Set_Render_Distance
func (*S2CSetChunkCacheRadius) Bound ¶
func (p *S2CSetChunkCacheRadius) Bound() jp.Bound
func (*S2CSetChunkCacheRadius) ID ¶
func (p *S2CSetChunkCacheRadius) ID() ns.VarInt
func (*S2CSetChunkCacheRadius) Read ¶
func (p *S2CSetChunkCacheRadius) Read(buf *ns.PacketBuffer) error
func (*S2CSetChunkCacheRadius) State ¶
func (p *S2CSetChunkCacheRadius) State() jp.State
func (*S2CSetChunkCacheRadius) Write ¶
func (p *S2CSetChunkCacheRadius) Write(buf *ns.PacketBuffer) error
type S2CSetCursorItem ¶
S2CSetCursorItem represents "Set Cursor Item".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Set_Cursor_Item
func (*S2CSetCursorItem) Bound ¶
func (p *S2CSetCursorItem) Bound() jp.Bound
func (*S2CSetCursorItem) ID ¶
func (p *S2CSetCursorItem) ID() ns.VarInt
func (*S2CSetCursorItem) Read ¶
func (p *S2CSetCursorItem) Read(buf *ns.PacketBuffer) error
func (*S2CSetCursorItem) State ¶
func (p *S2CSetCursorItem) State() jp.State
func (*S2CSetCursorItem) Write ¶
func (p *S2CSetCursorItem) Write(buf *ns.PacketBuffer) error
type S2CSetDefaultSpawnPosition ¶
type S2CSetDefaultSpawnPosition struct {
DimensionName ns.Identifier
Location ns.Position
Yaw ns.Float32
Pitch ns.Float32
}
S2CSetDefaultSpawnPosition represents "Set Default Spawn Position".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Set_Default_Spawn_Position
func (*S2CSetDefaultSpawnPosition) Bound ¶
func (p *S2CSetDefaultSpawnPosition) Bound() jp.Bound
func (*S2CSetDefaultSpawnPosition) ID ¶
func (p *S2CSetDefaultSpawnPosition) ID() ns.VarInt
func (*S2CSetDefaultSpawnPosition) Read ¶
func (p *S2CSetDefaultSpawnPosition) Read(buf *ns.PacketBuffer) error
func (*S2CSetDefaultSpawnPosition) State ¶
func (p *S2CSetDefaultSpawnPosition) State() jp.State
func (*S2CSetDefaultSpawnPosition) Write ¶
func (p *S2CSetDefaultSpawnPosition) Write(buf *ns.PacketBuffer) error
type S2CSetDisplayObjective ¶
S2CSetDisplayObjective represents "Display Objective".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Display_Objective
func (*S2CSetDisplayObjective) Bound ¶
func (p *S2CSetDisplayObjective) Bound() jp.Bound
func (*S2CSetDisplayObjective) ID ¶
func (p *S2CSetDisplayObjective) ID() ns.VarInt
func (*S2CSetDisplayObjective) Read ¶
func (p *S2CSetDisplayObjective) Read(buf *ns.PacketBuffer) error
func (*S2CSetDisplayObjective) State ¶
func (p *S2CSetDisplayObjective) State() jp.State
func (*S2CSetDisplayObjective) Write ¶
func (p *S2CSetDisplayObjective) Write(buf *ns.PacketBuffer) error
type S2CSetEntityData ¶
S2CSetEntityData represents "Set Entity Metadata".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Set_Entity_Metadata
func (*S2CSetEntityData) Bound ¶
func (p *S2CSetEntityData) Bound() jp.Bound
func (*S2CSetEntityData) ID ¶
func (p *S2CSetEntityData) ID() ns.VarInt
func (*S2CSetEntityData) Read ¶
func (p *S2CSetEntityData) Read(buf *ns.PacketBuffer) error
func (*S2CSetEntityData) State ¶
func (p *S2CSetEntityData) State() jp.State
func (*S2CSetEntityData) Write ¶
func (p *S2CSetEntityData) Write(buf *ns.PacketBuffer) error
type S2CSetEntityLink ¶
S2CSetEntityLink represents "Link Entities".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Link_Entities
func (*S2CSetEntityLink) Bound ¶
func (p *S2CSetEntityLink) Bound() jp.Bound
func (*S2CSetEntityLink) ID ¶
func (p *S2CSetEntityLink) ID() ns.VarInt
func (*S2CSetEntityLink) Read ¶
func (p *S2CSetEntityLink) Read(buf *ns.PacketBuffer) error
func (*S2CSetEntityLink) State ¶
func (p *S2CSetEntityLink) State() jp.State
func (*S2CSetEntityLink) Write ¶
func (p *S2CSetEntityLink) Write(buf *ns.PacketBuffer) error
type S2CSetEntityMotion ¶
S2CSetEntityMotion represents "Set Entity Velocity".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Set_Entity_Velocity
func (*S2CSetEntityMotion) Bound ¶
func (p *S2CSetEntityMotion) Bound() jp.Bound
func (*S2CSetEntityMotion) ID ¶
func (p *S2CSetEntityMotion) ID() ns.VarInt
func (*S2CSetEntityMotion) Read ¶
func (p *S2CSetEntityMotion) Read(buf *ns.PacketBuffer) error
func (*S2CSetEntityMotion) State ¶
func (p *S2CSetEntityMotion) State() jp.State
func (*S2CSetEntityMotion) Write ¶
func (p *S2CSetEntityMotion) Write(buf *ns.PacketBuffer) error
type S2CSetEquipment ¶
S2CSetEquipment represents "Set Equipment".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Set_Equipment
func (*S2CSetEquipment) Bound ¶
func (p *S2CSetEquipment) Bound() jp.Bound
func (*S2CSetEquipment) ID ¶
func (p *S2CSetEquipment) ID() ns.VarInt
func (*S2CSetEquipment) Read ¶
func (p *S2CSetEquipment) Read(buf *ns.PacketBuffer) error
func (*S2CSetEquipment) State ¶
func (p *S2CSetEquipment) State() jp.State
func (*S2CSetEquipment) Write ¶
func (p *S2CSetEquipment) Write(buf *ns.PacketBuffer) error
type S2CSetExperience ¶
S2CSetExperience represents "Set Experience".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Set_Experience
func (*S2CSetExperience) Bound ¶
func (p *S2CSetExperience) Bound() jp.Bound
func (*S2CSetExperience) ID ¶
func (p *S2CSetExperience) ID() ns.VarInt
func (*S2CSetExperience) Read ¶
func (p *S2CSetExperience) Read(buf *ns.PacketBuffer) error
func (*S2CSetExperience) State ¶
func (p *S2CSetExperience) State() jp.State
func (*S2CSetExperience) Write ¶
func (p *S2CSetExperience) Write(buf *ns.PacketBuffer) error
type S2CSetHealth ¶
S2CSetHealth represents "Set Health".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Set_Health
func (*S2CSetHealth) Bound ¶
func (p *S2CSetHealth) Bound() jp.Bound
func (*S2CSetHealth) ID ¶
func (p *S2CSetHealth) ID() ns.VarInt
func (*S2CSetHealth) Read ¶
func (p *S2CSetHealth) Read(buf *ns.PacketBuffer) error
func (*S2CSetHealth) State ¶
func (p *S2CSetHealth) State() jp.State
func (*S2CSetHealth) Write ¶
func (p *S2CSetHealth) Write(buf *ns.PacketBuffer) error
type S2CSetHeldSlot ¶
S2CSetHeldSlot represents "Set Held Item (clientbound)".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Set_Held_Item_(Clientbound)
func (*S2CSetHeldSlot) Bound ¶
func (p *S2CSetHeldSlot) Bound() jp.Bound
func (*S2CSetHeldSlot) ID ¶
func (p *S2CSetHeldSlot) ID() ns.VarInt
func (*S2CSetHeldSlot) Read ¶
func (p *S2CSetHeldSlot) Read(buf *ns.PacketBuffer) error
func (*S2CSetHeldSlot) State ¶
func (p *S2CSetHeldSlot) State() jp.State
func (*S2CSetHeldSlot) Write ¶
func (p *S2CSetHeldSlot) Write(buf *ns.PacketBuffer) error
type S2CSetObjective ¶
S2CSetObjective represents "Update Objectives".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Update_Objectives
func (*S2CSetObjective) Bound ¶
func (p *S2CSetObjective) Bound() jp.Bound
func (*S2CSetObjective) ID ¶
func (p *S2CSetObjective) ID() ns.VarInt
func (*S2CSetObjective) Read ¶
func (p *S2CSetObjective) Read(buf *ns.PacketBuffer) error
func (*S2CSetObjective) State ¶
func (p *S2CSetObjective) State() jp.State
func (*S2CSetObjective) Write ¶
func (p *S2CSetObjective) Write(buf *ns.PacketBuffer) error
type S2CSetPassengers ¶
S2CSetPassengers represents "Set Passengers".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Set_Passengers
func (*S2CSetPassengers) Bound ¶
func (p *S2CSetPassengers) Bound() jp.Bound
func (*S2CSetPassengers) ID ¶
func (p *S2CSetPassengers) ID() ns.VarInt
func (*S2CSetPassengers) Read ¶
func (p *S2CSetPassengers) Read(buf *ns.PacketBuffer) error
func (*S2CSetPassengers) State ¶
func (p *S2CSetPassengers) State() jp.State
func (*S2CSetPassengers) Write ¶
func (p *S2CSetPassengers) Write(buf *ns.PacketBuffer) error
type S2CSetPlayerInventory ¶
S2CSetPlayerInventory represents "Set Player Inventory Slot".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Set_Player_Inventory_Slot
func (*S2CSetPlayerInventory) Bound ¶
func (p *S2CSetPlayerInventory) Bound() jp.Bound
func (*S2CSetPlayerInventory) ID ¶
func (p *S2CSetPlayerInventory) ID() ns.VarInt
func (*S2CSetPlayerInventory) Read ¶
func (p *S2CSetPlayerInventory) Read(buf *ns.PacketBuffer) error
func (*S2CSetPlayerInventory) State ¶
func (p *S2CSetPlayerInventory) State() jp.State
func (*S2CSetPlayerInventory) Write ¶
func (p *S2CSetPlayerInventory) Write(buf *ns.PacketBuffer) error
type S2CSetPlayerTeam ¶
S2CSetPlayerTeam represents "Update Teams".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Update_Teams
func (*S2CSetPlayerTeam) Bound ¶
func (p *S2CSetPlayerTeam) Bound() jp.Bound
func (*S2CSetPlayerTeam) ID ¶
func (p *S2CSetPlayerTeam) ID() ns.VarInt
func (*S2CSetPlayerTeam) Read ¶
func (p *S2CSetPlayerTeam) Read(buf *ns.PacketBuffer) error
func (*S2CSetPlayerTeam) State ¶
func (p *S2CSetPlayerTeam) State() jp.State
func (*S2CSetPlayerTeam) Write ¶
func (p *S2CSetPlayerTeam) Write(buf *ns.PacketBuffer) error
type S2CSetScore ¶
type S2CSetScore struct {
EntityName ns.String
ObjectiveName ns.String
Value ns.VarInt
Data ns.ByteArray
}
S2CSetScore represents "Update Score".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Update_Score
func (*S2CSetScore) Bound ¶
func (p *S2CSetScore) Bound() jp.Bound
func (*S2CSetScore) ID ¶
func (p *S2CSetScore) ID() ns.VarInt
func (*S2CSetScore) Read ¶
func (p *S2CSetScore) Read(buf *ns.PacketBuffer) error
func (*S2CSetScore) State ¶
func (p *S2CSetScore) State() jp.State
func (*S2CSetScore) Write ¶
func (p *S2CSetScore) Write(buf *ns.PacketBuffer) error
type S2CSetSimulationDistance ¶
S2CSetSimulationDistance represents "Set Simulation Distance".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Set_Simulation_Distance
func (*S2CSetSimulationDistance) Bound ¶
func (p *S2CSetSimulationDistance) Bound() jp.Bound
func (*S2CSetSimulationDistance) ID ¶
func (p *S2CSetSimulationDistance) ID() ns.VarInt
func (*S2CSetSimulationDistance) Read ¶
func (p *S2CSetSimulationDistance) Read(buf *ns.PacketBuffer) error
func (*S2CSetSimulationDistance) State ¶
func (p *S2CSetSimulationDistance) State() jp.State
func (*S2CSetSimulationDistance) Write ¶
func (p *S2CSetSimulationDistance) Write(buf *ns.PacketBuffer) error
type S2CSetSubtitleText ¶
type S2CSetSubtitleText struct {
SubtitleText ns.TextComponent
}
S2CSetSubtitleText represents "Set Subtitle Text".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Set_Subtitle_Text
func (*S2CSetSubtitleText) Bound ¶
func (p *S2CSetSubtitleText) Bound() jp.Bound
func (*S2CSetSubtitleText) ID ¶
func (p *S2CSetSubtitleText) ID() ns.VarInt
func (*S2CSetSubtitleText) Read ¶
func (p *S2CSetSubtitleText) Read(buf *ns.PacketBuffer) error
func (*S2CSetSubtitleText) State ¶
func (p *S2CSetSubtitleText) State() jp.State
func (*S2CSetSubtitleText) Write ¶
func (p *S2CSetSubtitleText) Write(buf *ns.PacketBuffer) error
type S2CSetTime ¶
S2CSetTime represents "Update Time".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Update_Time
func (*S2CSetTime) Bound ¶
func (p *S2CSetTime) Bound() jp.Bound
func (*S2CSetTime) ID ¶
func (p *S2CSetTime) ID() ns.VarInt
func (*S2CSetTime) Read ¶
func (p *S2CSetTime) Read(buf *ns.PacketBuffer) error
func (*S2CSetTime) State ¶
func (p *S2CSetTime) State() jp.State
func (*S2CSetTime) Write ¶
func (p *S2CSetTime) Write(buf *ns.PacketBuffer) error
type S2CSetTitleText ¶
type S2CSetTitleText struct {
TitleText ns.TextComponent
}
S2CSetTitleText represents "Set Title Text".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Set_Title_Text
func (*S2CSetTitleText) Bound ¶
func (p *S2CSetTitleText) Bound() jp.Bound
func (*S2CSetTitleText) ID ¶
func (p *S2CSetTitleText) ID() ns.VarInt
func (*S2CSetTitleText) Read ¶
func (p *S2CSetTitleText) Read(buf *ns.PacketBuffer) error
func (*S2CSetTitleText) State ¶
func (p *S2CSetTitleText) State() jp.State
func (*S2CSetTitleText) Write ¶
func (p *S2CSetTitleText) Write(buf *ns.PacketBuffer) error
type S2CSetTitlesAnimation ¶
S2CSetTitlesAnimation represents "Set Title Animation Times".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Set_Title_Animation_Times
func (*S2CSetTitlesAnimation) Bound ¶
func (p *S2CSetTitlesAnimation) Bound() jp.Bound
func (*S2CSetTitlesAnimation) ID ¶
func (p *S2CSetTitlesAnimation) ID() ns.VarInt
func (*S2CSetTitlesAnimation) Read ¶
func (p *S2CSetTitlesAnimation) Read(buf *ns.PacketBuffer) error
func (*S2CSetTitlesAnimation) State ¶
func (p *S2CSetTitlesAnimation) State() jp.State
func (*S2CSetTitlesAnimation) Write ¶
func (p *S2CSetTitlesAnimation) Write(buf *ns.PacketBuffer) error
type S2CShowDialogConfiguration ¶
type S2CShowDialogConfiguration struct {
// Inline definition as described at Java Edition protocol/Registry data#Dialog.
Dialog nbt.Tag
}
S2CShowDialogConfiguration represents "Show Dialog (configuration)".
Show a custom dialog screen to the client.
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Show_Dialog_(Configuration)
func (*S2CShowDialogConfiguration) Bound ¶
func (p *S2CShowDialogConfiguration) Bound() jp.Bound
func (*S2CShowDialogConfiguration) ID ¶
func (p *S2CShowDialogConfiguration) ID() ns.VarInt
func (*S2CShowDialogConfiguration) Read ¶
func (p *S2CShowDialogConfiguration) Read(buf *ns.PacketBuffer) error
func (*S2CShowDialogConfiguration) State ¶
func (p *S2CShowDialogConfiguration) State() jp.State
func (*S2CShowDialogConfiguration) Write ¶
func (p *S2CShowDialogConfiguration) Write(buf *ns.PacketBuffer) error
type S2CShowDialogPlay ¶
S2CShowDialogPlay represents "Show Dialog (play)".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Show_Dialog_(Play)
func (*S2CShowDialogPlay) Bound ¶
func (p *S2CShowDialogPlay) Bound() jp.Bound
func (*S2CShowDialogPlay) ID ¶
func (p *S2CShowDialogPlay) ID() ns.VarInt
func (*S2CShowDialogPlay) Read ¶
func (p *S2CShowDialogPlay) Read(buf *ns.PacketBuffer) error
func (*S2CShowDialogPlay) State ¶
func (p *S2CShowDialogPlay) State() jp.State
func (*S2CShowDialogPlay) Write ¶
func (p *S2CShowDialogPlay) Write(buf *ns.PacketBuffer) error
type S2CSound ¶
type S2CSound struct {
SoundEvent ns.ByteArray
SoundCategory ns.VarInt
EffectPositionX ns.Int32
EffectPositionY ns.Int32
EffectPositionZ ns.Int32
Volume ns.Float32
Pitch ns.Float32
Seed ns.Int64
}
S2CSound represents "Sound Effect".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Sound_Effect
type S2CSoundEntity ¶
type S2CSoundEntity struct {
SoundEvent ns.ByteArray
SoundCategory ns.VarInt
EntityId ns.VarInt
Volume ns.Float32
Pitch ns.Float32
Seed ns.Int64
}
S2CSoundEntity represents "Entity Sound Effect".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Entity_Sound_Effect
func (*S2CSoundEntity) Bound ¶
func (p *S2CSoundEntity) Bound() jp.Bound
func (*S2CSoundEntity) ID ¶
func (p *S2CSoundEntity) ID() ns.VarInt
func (*S2CSoundEntity) Read ¶
func (p *S2CSoundEntity) Read(buf *ns.PacketBuffer) error
func (*S2CSoundEntity) State ¶
func (p *S2CSoundEntity) State() jp.State
func (*S2CSoundEntity) Write ¶
func (p *S2CSoundEntity) Write(buf *ns.PacketBuffer) error
type S2CStartConfiguration ¶
type S2CStartConfiguration struct{}
S2CStartConfiguration represents "Start Configuration".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Start_Configuration
func (*S2CStartConfiguration) Bound ¶
func (p *S2CStartConfiguration) Bound() jp.Bound
func (*S2CStartConfiguration) ID ¶
func (p *S2CStartConfiguration) ID() ns.VarInt
func (*S2CStartConfiguration) Read ¶
func (p *S2CStartConfiguration) Read(*ns.PacketBuffer) error
func (*S2CStartConfiguration) State ¶
func (p *S2CStartConfiguration) State() jp.State
func (*S2CStartConfiguration) Write ¶
func (p *S2CStartConfiguration) Write(*ns.PacketBuffer) error
type S2CStatusResponse ¶
type S2CStatusResponse struct {
// See Server List Ping; as with all strings, this is prefixed by its length as a VarInt.
JsonResponse ns.String
}
S2CStatusResponse represents "Status Response".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Status_Response
func (*S2CStatusResponse) Bound ¶
func (p *S2CStatusResponse) Bound() jp.Bound
func (*S2CStatusResponse) ID ¶
func (p *S2CStatusResponse) ID() ns.VarInt
func (*S2CStatusResponse) Read ¶
func (p *S2CStatusResponse) Read(buf *ns.PacketBuffer) error
func (*S2CStatusResponse) State ¶
func (p *S2CStatusResponse) State() jp.State
func (*S2CStatusResponse) Write ¶
func (p *S2CStatusResponse) Write(buf *ns.PacketBuffer) error
type S2CStopSound ¶
S2CStopSound represents "Stop Sound".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Stop_Sound
func (*S2CStopSound) Bound ¶
func (p *S2CStopSound) Bound() jp.Bound
func (*S2CStopSound) ID ¶
func (p *S2CStopSound) ID() ns.VarInt
func (*S2CStopSound) Read ¶
func (p *S2CStopSound) Read(buf *ns.PacketBuffer) error
func (*S2CStopSound) State ¶
func (p *S2CStopSound) State() jp.State
func (*S2CStopSound) Write ¶
func (p *S2CStopSound) Write(buf *ns.PacketBuffer) error
type S2CStoreCookieConfiguration ¶
type S2CStoreCookieConfiguration struct {
// The identifier of the cookie.
Key ns.Identifier
// The data of the cookie.
Payload ns.ByteArray
}
S2CStoreCookieConfiguration represents "Store Cookie (configuration)".
Stores some arbitrary data on the client, which persists between server transfers.
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Store_Cookie_(Configuration)
func (*S2CStoreCookieConfiguration) Bound ¶
func (p *S2CStoreCookieConfiguration) Bound() jp.Bound
func (*S2CStoreCookieConfiguration) ID ¶
func (p *S2CStoreCookieConfiguration) ID() ns.VarInt
func (*S2CStoreCookieConfiguration) Read ¶
func (p *S2CStoreCookieConfiguration) Read(buf *ns.PacketBuffer) error
func (*S2CStoreCookieConfiguration) State ¶
func (p *S2CStoreCookieConfiguration) State() jp.State
func (*S2CStoreCookieConfiguration) Write ¶
func (p *S2CStoreCookieConfiguration) Write(buf *ns.PacketBuffer) error
type S2CStoreCookiePlay ¶
type S2CStoreCookiePlay struct {
Key ns.Identifier
Payload ns.ByteArray
}
S2CStoreCookiePlay represents "Store Cookie (play)".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Store_Cookie_(Play)
func (*S2CStoreCookiePlay) Bound ¶
func (p *S2CStoreCookiePlay) Bound() jp.Bound
func (*S2CStoreCookiePlay) ID ¶
func (p *S2CStoreCookiePlay) ID() ns.VarInt
func (*S2CStoreCookiePlay) Read ¶
func (p *S2CStoreCookiePlay) Read(buf *ns.PacketBuffer) error
func (*S2CStoreCookiePlay) State ¶
func (p *S2CStoreCookiePlay) State() jp.State
func (*S2CStoreCookiePlay) Write ¶
func (p *S2CStoreCookiePlay) Write(buf *ns.PacketBuffer) error
type S2CSystemChat ¶
type S2CSystemChat struct {
Content ns.TextComponent
Overlay ns.Boolean
}
S2CSystemChat represents "System Chat Message".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#System_Chat_Message
func (*S2CSystemChat) Bound ¶
func (p *S2CSystemChat) Bound() jp.Bound
func (*S2CSystemChat) ID ¶
func (p *S2CSystemChat) ID() ns.VarInt
func (*S2CSystemChat) Read ¶
func (p *S2CSystemChat) Read(buf *ns.PacketBuffer) error
func (*S2CSystemChat) State ¶
func (p *S2CSystemChat) State() jp.State
func (*S2CSystemChat) Write ¶
func (p *S2CSystemChat) Write(buf *ns.PacketBuffer) error
type S2CTabList ¶
type S2CTabList struct {
Header ns.TextComponent
}
S2CTabList represents "Set Tab List Header And Footer".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Set_Tab_List_Header_And_Footer
func (*S2CTabList) Bound ¶
func (p *S2CTabList) Bound() jp.Bound
func (*S2CTabList) ID ¶
func (p *S2CTabList) ID() ns.VarInt
func (*S2CTabList) Read ¶
func (p *S2CTabList) Read(buf *ns.PacketBuffer) error
func (*S2CTabList) State ¶
func (p *S2CTabList) State() jp.State
func (*S2CTabList) Write ¶
func (p *S2CTabList) Write(buf *ns.PacketBuffer) error
type S2CTagQuery ¶
S2CTagQuery represents "Tag Query Response".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Tag_Query_Response
func (*S2CTagQuery) Bound ¶
func (p *S2CTagQuery) Bound() jp.Bound
func (*S2CTagQuery) ID ¶
func (p *S2CTagQuery) ID() ns.VarInt
func (*S2CTagQuery) Read ¶
func (p *S2CTagQuery) Read(buf *ns.PacketBuffer) error
func (*S2CTagQuery) State ¶
func (p *S2CTagQuery) State() jp.State
func (*S2CTagQuery) Write ¶
func (p *S2CTagQuery) Write(buf *ns.PacketBuffer) error
type S2CTakeItemEntity ¶
type S2CTakeItemEntity struct {
CollectedEntityId ns.VarInt
CollectorEntityId ns.VarInt
PickupItemCount ns.VarInt
}
S2CTakeItemEntity represents "Pickup Item".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Pickup_Item
func (*S2CTakeItemEntity) Bound ¶
func (p *S2CTakeItemEntity) Bound() jp.Bound
func (*S2CTakeItemEntity) ID ¶
func (p *S2CTakeItemEntity) ID() ns.VarInt
func (*S2CTakeItemEntity) Read ¶
func (p *S2CTakeItemEntity) Read(buf *ns.PacketBuffer) error
func (*S2CTakeItemEntity) State ¶
func (p *S2CTakeItemEntity) State() jp.State
func (*S2CTakeItemEntity) Write ¶
func (p *S2CTakeItemEntity) Write(buf *ns.PacketBuffer) error
type S2CTeleportEntity ¶
type S2CTeleportEntity struct {
EntityId ns.VarInt
X ns.Float64
Y ns.Float64
Z ns.Float64
VelocityX ns.Float64
VelocityY ns.Float64
VelocityZ ns.Float64
Yaw ns.Float32
Pitch ns.Float32
Flags ns.Int8
OnGround ns.Boolean
}
S2CTeleportEntity represents "Synchronize Vehicle Position".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Synchronize_Vehicle_Position
func (*S2CTeleportEntity) Bound ¶
func (p *S2CTeleportEntity) Bound() jp.Bound
func (*S2CTeleportEntity) ID ¶
func (p *S2CTeleportEntity) ID() ns.VarInt
func (*S2CTeleportEntity) Read ¶
func (p *S2CTeleportEntity) Read(buf *ns.PacketBuffer) error
func (*S2CTeleportEntity) State ¶
func (p *S2CTeleportEntity) State() jp.State
func (*S2CTeleportEntity) Write ¶
func (p *S2CTeleportEntity) Write(buf *ns.PacketBuffer) error
type S2CTestInstanceBlockStatus ¶
type S2CTestInstanceBlockStatus struct {
Status ns.TextComponent
Size ns.PrefixedOptional[ns.ByteArray]
}
S2CTestInstanceBlockStatus represents "Test Instance Block Status".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Test_Instance_Block_Status
func (*S2CTestInstanceBlockStatus) Bound ¶
func (p *S2CTestInstanceBlockStatus) Bound() jp.Bound
func (*S2CTestInstanceBlockStatus) ID ¶
func (p *S2CTestInstanceBlockStatus) ID() ns.VarInt
func (*S2CTestInstanceBlockStatus) Read ¶
func (p *S2CTestInstanceBlockStatus) Read(buf *ns.PacketBuffer) error
func (*S2CTestInstanceBlockStatus) State ¶
func (p *S2CTestInstanceBlockStatus) State() jp.State
func (*S2CTestInstanceBlockStatus) Write ¶
func (p *S2CTestInstanceBlockStatus) Write(buf *ns.PacketBuffer) error
type S2CTickingState ¶
S2CTickingState represents "Set Ticking State".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Set_Ticking_State
func (*S2CTickingState) Bound ¶
func (p *S2CTickingState) Bound() jp.Bound
func (*S2CTickingState) ID ¶
func (p *S2CTickingState) ID() ns.VarInt
func (*S2CTickingState) Read ¶
func (p *S2CTickingState) Read(buf *ns.PacketBuffer) error
func (*S2CTickingState) State ¶
func (p *S2CTickingState) State() jp.State
func (*S2CTickingState) Write ¶
func (p *S2CTickingState) Write(buf *ns.PacketBuffer) error
type S2CTickingStep ¶
S2CTickingStep represents "Step Tick".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Step_Tick
func (*S2CTickingStep) Bound ¶
func (p *S2CTickingStep) Bound() jp.Bound
func (*S2CTickingStep) ID ¶
func (p *S2CTickingStep) ID() ns.VarInt
func (*S2CTickingStep) Read ¶
func (p *S2CTickingStep) Read(buf *ns.PacketBuffer) error
func (*S2CTickingStep) State ¶
func (p *S2CTickingStep) State() jp.State
func (*S2CTickingStep) Write ¶
func (p *S2CTickingStep) Write(buf *ns.PacketBuffer) error
type S2CTransferConfiguration ¶
type S2CTransferConfiguration struct {
// The hostname or IP of the server.
Host ns.String
// The port of the server.
Port ns.VarInt
}
S2CTransferConfiguration represents "Transfer (configuration)".
Notifies the client that it should transfer to the given server.
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Transfer_(Configuration)
func (*S2CTransferConfiguration) Bound ¶
func (p *S2CTransferConfiguration) Bound() jp.Bound
func (*S2CTransferConfiguration) ID ¶
func (p *S2CTransferConfiguration) ID() ns.VarInt
func (*S2CTransferConfiguration) Read ¶
func (p *S2CTransferConfiguration) Read(buf *ns.PacketBuffer) error
func (*S2CTransferConfiguration) State ¶
func (p *S2CTransferConfiguration) State() jp.State
func (*S2CTransferConfiguration) Write ¶
func (p *S2CTransferConfiguration) Write(buf *ns.PacketBuffer) error
type S2CTransferPlay ¶
S2CTransferPlay represents "Transfer (play)".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Transfer_(Play)
func (*S2CTransferPlay) Bound ¶
func (p *S2CTransferPlay) Bound() jp.Bound
func (*S2CTransferPlay) ID ¶
func (p *S2CTransferPlay) ID() ns.VarInt
func (*S2CTransferPlay) Read ¶
func (p *S2CTransferPlay) Read(buf *ns.PacketBuffer) error
func (*S2CTransferPlay) State ¶
func (p *S2CTransferPlay) State() jp.State
func (*S2CTransferPlay) Write ¶
func (p *S2CTransferPlay) Write(buf *ns.PacketBuffer) error
type S2CUpdateAdvancements ¶
S2CUpdateAdvancements represents "Update Advancements".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Update_Advancements
func (*S2CUpdateAdvancements) Bound ¶
func (p *S2CUpdateAdvancements) Bound() jp.Bound
func (*S2CUpdateAdvancements) ID ¶
func (p *S2CUpdateAdvancements) ID() ns.VarInt
func (*S2CUpdateAdvancements) Read ¶
func (p *S2CUpdateAdvancements) Read(buf *ns.PacketBuffer) error
func (*S2CUpdateAdvancements) State ¶
func (p *S2CUpdateAdvancements) State() jp.State
func (*S2CUpdateAdvancements) Write ¶
func (p *S2CUpdateAdvancements) Write(buf *ns.PacketBuffer) error
type S2CUpdateAttributes ¶
S2CUpdateAttributes represents "Update Attributes".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Update_Attributes
func (*S2CUpdateAttributes) Bound ¶
func (p *S2CUpdateAttributes) Bound() jp.Bound
func (*S2CUpdateAttributes) ID ¶
func (p *S2CUpdateAttributes) ID() ns.VarInt
func (*S2CUpdateAttributes) Read ¶
func (p *S2CUpdateAttributes) Read(buf *ns.PacketBuffer) error
func (*S2CUpdateAttributes) State ¶
func (p *S2CUpdateAttributes) State() jp.State
func (*S2CUpdateAttributes) Write ¶
func (p *S2CUpdateAttributes) Write(buf *ns.PacketBuffer) error
type S2CUpdateEnabledFeatures ¶
type S2CUpdateEnabledFeatures struct {
FeatureFlags []ns.Identifier
}
S2CUpdateEnabledFeatures represents "Feature Flags".
Used to enable and disable features on the client.
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Feature_Flags
func (*S2CUpdateEnabledFeatures) Bound ¶
func (p *S2CUpdateEnabledFeatures) Bound() jp.Bound
func (*S2CUpdateEnabledFeatures) ID ¶
func (p *S2CUpdateEnabledFeatures) ID() ns.VarInt
func (*S2CUpdateEnabledFeatures) Read ¶
func (p *S2CUpdateEnabledFeatures) Read(buf *ns.PacketBuffer) error
func (*S2CUpdateEnabledFeatures) State ¶
func (p *S2CUpdateEnabledFeatures) State() jp.State
func (*S2CUpdateEnabledFeatures) Write ¶
func (p *S2CUpdateEnabledFeatures) Write(buf *ns.PacketBuffer) error
type S2CUpdateMobEffect ¶
type S2CUpdateMobEffect struct {
EntityId ns.VarInt
EffectId ns.VarInt
Amplifier ns.VarInt
Duration ns.VarInt
Flags ns.Int8
}
S2CUpdateMobEffect represents "Entity Effect".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Entity_Effect
func (*S2CUpdateMobEffect) Bound ¶
func (p *S2CUpdateMobEffect) Bound() jp.Bound
func (*S2CUpdateMobEffect) ID ¶
func (p *S2CUpdateMobEffect) ID() ns.VarInt
func (*S2CUpdateMobEffect) Read ¶
func (p *S2CUpdateMobEffect) Read(buf *ns.PacketBuffer) error
func (*S2CUpdateMobEffect) State ¶
func (p *S2CUpdateMobEffect) State() jp.State
func (*S2CUpdateMobEffect) Write ¶
func (p *S2CUpdateMobEffect) Write(buf *ns.PacketBuffer) error
type S2CUpdateRecipes ¶
S2CUpdateRecipes represents "Update Recipes".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Update_Recipes
func (*S2CUpdateRecipes) Bound ¶
func (p *S2CUpdateRecipes) Bound() jp.Bound
func (*S2CUpdateRecipes) ID ¶
func (p *S2CUpdateRecipes) ID() ns.VarInt
func (*S2CUpdateRecipes) Read ¶
func (p *S2CUpdateRecipes) Read(buf *ns.PacketBuffer) error
func (*S2CUpdateRecipes) State ¶
func (p *S2CUpdateRecipes) State() jp.State
func (*S2CUpdateRecipes) Write ¶
func (p *S2CUpdateRecipes) Write(buf *ns.PacketBuffer) error
type S2CUpdateTagsConfiguration ¶
type S2CUpdateTagsConfiguration struct {
ArrayOfTags []TagRegistry
}
S2CUpdateTagsConfiguration represents "Update Tags (configuration)".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Update_Tags_(Configuration)
func (*S2CUpdateTagsConfiguration) Bound ¶
func (p *S2CUpdateTagsConfiguration) Bound() jp.Bound
func (*S2CUpdateTagsConfiguration) ID ¶
func (p *S2CUpdateTagsConfiguration) ID() ns.VarInt
func (*S2CUpdateTagsConfiguration) Read ¶
func (p *S2CUpdateTagsConfiguration) Read(buf *ns.PacketBuffer) error
func (*S2CUpdateTagsConfiguration) State ¶
func (p *S2CUpdateTagsConfiguration) State() jp.State
func (*S2CUpdateTagsConfiguration) Write ¶
func (p *S2CUpdateTagsConfiguration) Write(buf *ns.PacketBuffer) error
type S2CUpdateTagsPlay ¶
S2CUpdateTagsPlay represents "Update Tags (play)".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Update_Tags_(Play)
func (*S2CUpdateTagsPlay) Bound ¶
func (p *S2CUpdateTagsPlay) Bound() jp.Bound
func (*S2CUpdateTagsPlay) ID ¶
func (p *S2CUpdateTagsPlay) ID() ns.VarInt
func (*S2CUpdateTagsPlay) Read ¶
func (p *S2CUpdateTagsPlay) Read(buf *ns.PacketBuffer) error
func (*S2CUpdateTagsPlay) State ¶
func (p *S2CUpdateTagsPlay) State() jp.State
func (*S2CUpdateTagsPlay) Write ¶
func (p *S2CUpdateTagsPlay) Write(buf *ns.PacketBuffer) error
type S2CWaypoint ¶
S2CWaypoint represents "Waypoint".
https://minecraft.wiki/w/Java_Edition_protocol/Packets#Waypoint
func (*S2CWaypoint) Bound ¶
func (p *S2CWaypoint) Bound() jp.Bound
func (*S2CWaypoint) ID ¶
func (p *S2CWaypoint) ID() ns.VarInt
func (*S2CWaypoint) Read ¶
func (p *S2CWaypoint) Read(buf *ns.PacketBuffer) error
func (*S2CWaypoint) State ¶
func (p *S2CWaypoint) State() jp.State
func (*S2CWaypoint) Write ¶
func (p *S2CWaypoint) Write(buf *ns.PacketBuffer) error
type ServerLink ¶
type ServerLink struct {
IsBuiltIn ns.Boolean
// If IsBuiltIn is true, this is a VarInt for built-in label type.
// If IsBuiltIn is false, this is a TextComponent for custom label.
BuiltInLabel ns.VarInt
CustomLabel ns.TextComponent
Url ns.String
}
ServerLink represents a server link entry.
type SignedMessageBody ¶
type SignedMessageBody struct {
Content ns.String
Timestamp ns.Int64 // epoch milliseconds
Salt ns.Int64
LastSeen LastSeenMessagesPacked
}
SignedMessageBody contains the signed content of a chat message.
type Tag ¶
type Tag struct {
TagName ns.Identifier
Entries []ns.VarInt
}
Tag represents a single tag entry.
type TagRegistry ¶
type TagRegistry struct {
Registry ns.Identifier
Tags []Tag
}
TagRegistry represents a registry of tags.