Documentation ¶
Index ¶
- type LoginDisconnectPkt
- type LoginEncryptionRequestPkt
- type LoginEncryptionResponsePkt
- type LoginPluginRequestPkt
- type LoginPluginResponsePkt
- type LoginSetCompressionPkt
- type LoginStartPkt
- type LoginSuccessPkt
- type PlayAcknowledgeBlockChangePkt
- type PlayAwardStatisticsPkt
- type PlayBlockActionPkt
- type PlayBlockEntityDataPkt
- type PlayBlockUpdatePkt
- type PlayBossBarPkt
- type PlayChangeDifficultyClientPkt
- type PlayChangeDifficultyServerPkt
- type PlayChangeRecipeBookSettingsPkt
- type PlayChatCommandPkt
- type PlayChatMessagePkt
- type PlayChatSuggestionsPkt
- type PlayChunkDataAndUpdateLightPkt
- type PlayClearTitlesPkt
- type PlayClickContainerButtonPkt
- type PlayClickContainerPkt
- type PlayClientCommandPkt
- type PlayClientInformationPkt
- type PlayCloseContainerClientPkt
- type PlayCloseContainerServerPkt
- type PlayCombatDeathPkt
- type PlayCommandSuggestionsRequestPkt
- type PlayCommandSuggestionsResponsePkt
- type PlayCommandsPkt
- type PlayConfirmTeleportationPkt
- type PlayDeleteMessagePkt
- type PlayDisconnectPkt
- type PlayDisguisedChatMessagePkt
- type PlayDisplayObjectivePkt
- type PlayEditBookPkt
- type PlayEndCombatPkt
- type PlayEnterCombatPkt
- type PlayEntityAnimationPkt
- type PlayEntityEffectPkt
- type PlayEntityEventPkt
- type PlayEntitySoundEffectPkt
- type PlayExplosionPkt
- type PlayFeatureFlagsPkt
- type PlayGameEventPkt
- type PlayInitializeWorldBorderPkt
- type PlayInteractPkt
- type PlayJigsawGeneratePkt
- type PlayKeepAliveClientPkt
- type PlayKeepAliveServerPkt
- type PlayLinkEntitiesPkt
- type PlayLockDifficultyPkt
- type PlayLoginPkt
- type PlayLookAtPkt
- type PlayMapDataPkt
- type PlayMerchantOffersPkt
- type PlayMessageAcknowledgmentPkt
- type PlayMoveVehicleClientPkt
- type PlayMoveVehicleServerPkt
- type PlayOpenBookPkt
- type PlayOpenHorseScreenPkt
- type PlayOpenScreenPkt
- type PlayOpenSignEditorPkt
- type PlayPaddleBoatPkt
- type PlayParticlePkt
- type PlayPickItemPkt
- type PlayPickupItemPkt
- type PlayPingPkt
- type PlayPlaceGhostRecipePkt
- type PlayPlaceRecipePkt
- type PlayPluginMessageClientPkt
- type PlayPluginMessageServerPkt
- type PlayPongPkt
- type PlayProgramCommandBlockMinecartPkt
- type PlayProgramCommandBlockPkt
- type PlayProgramJigsawBlockPkt
- type PlayProgramStructureBlockPkt
- type PlayQueryBlockEntityTagPkt
- type PlayQueryEntityTagPkt
- type PlayRemoveEntitiesPkt
- type PlayRemoveEntityEffectPkt
- type PlayRenameItemPkt
- type PlayResourcePackClientPkt
- type PlayResourcePackServerPkt
- type PlayRespawnPkt
- type PlaySeenAdvancementsPkt
- type PlaySelectAdvancementsTabPkt
- type PlaySelectTradePkt
- type PlayServerDataPkt
- type PlaySetActionBarTextPkt
- type PlaySetBeaconEffectPkt
- type PlaySetBlockDestroyStagePkt
- type PlaySetBorderCenterPkt
- type PlaySetBorderLerpSizePkt
- type PlaySetBorderSizePkt
- type PlaySetBorderWarningDelayPkt
- type PlaySetBorderWarningDistancePkt
- type PlaySetCameraPkt
- type PlaySetCenterChunkPkt
- type PlaySetContainerContentPkt
- type PlaySetContainerPropertyPkt
- type PlaySetContainerSlotPkt
- type PlaySetCooldownPkt
- type PlaySetCreativeModeSlotPkt
- type PlaySetDefaultSpawnPositionPkt
- type PlaySetEntityMetadataPkt
- type PlaySetEntityVelocityPkt
- type PlaySetEquipmentPkt
- type PlaySetExperiencePkt
- type PlaySetHeadRotationPkt
- type PlaySetHealthPkt
- type PlaySetHeldItemClientPkt
- type PlaySetHeldItemServerPkt
- type PlaySetPassengersPkt
- type PlaySetPlayerOnGroundPkt
- type PlaySetPlayerPositionAndRotationPkt
- type PlaySetPlayerPositionPkt
- type PlaySetPlayerRotationPkt
- type PlaySetRenderDistancePkt
- type PlaySetSeenRecipePkt
- type PlaySetSimulationDistancePkt
- type PlaySetSubtitleTextPkt
- type PlaySetTabListHeaderAndFooterPkt
- type PlaySetTitleAnimationTimesPkt
- type PlaySetTitleTextPkt
- type PlaySoundEffectPkt
- type PlaySpawnEntityPkt
- type PlaySpawnExperienceOrbPkt
- type PlaySpawnPlayerPkt
- type PlayStopSoundPkt
- type PlaySwingArmPkt
- type PlaySynchronizePlayerPositionPkt
- type PlaySystemChatMessagePkt
- type PlayTagQueryResponsePkt
- type PlayTeleportEntityPkt
- type PlayTeleportToEntityPkt
- type PlayUnloadChunkPkt
- type PlayUpdateAdvancementsPkt
- type PlayUpdateAttributesPkt
- type PlayUpdateEntityPositionAndRotationPkt
- type PlayUpdateEntityPositionPkt
- type PlayUpdateEntityRotationPkt
- type PlayUpdateLightPkt
- type PlayUpdateObjectivesPkt
- type PlayUpdateRecipeBookPkt
- type PlayUpdateRecipesPkt
- type PlayUpdateScorePkt
- type PlayUpdateSectionBlocksPkt
- type PlayUpdateSignPkt
- type PlayUpdateTagsPkt
- type PlayUpdateTeamsPkt
- type PlayUpdateTimePkt
- type PlayUseItemOnPkt
- type PlayUseItemPkt
- type PlayWorldEventPkt
- type PlayerAbilitiesClientPkt
- type PlayerAbilitiesServerPkt
- type PlayerActionPkt
- type PlayerChatMessagePkt
- type PlayerCommandPkt
- type PlayerInfoRemovePkt
- type PlayerInfoUpdatePkt
- type PlayerInputPkt
- type PlayerSessionPkt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoginEncryptionRequestPkt ¶
type LoginEncryptionRequestPkt = internal.LoginEncryptionRequest_763_0
ID=0x1
type LoginEncryptionResponsePkt ¶
type LoginEncryptionResponsePkt = internal.LoginEncryptionResponse_763_0
ID=0x1
type LoginPluginResponsePkt ¶
type LoginPluginResponsePkt = internal.LoginPluginResponse_763_0
ID=0x2
type LoginSetCompressionPkt ¶
type LoginSetCompressionPkt = internal.LoginSetCompression_763_0
ID=0x3
type PlayAcknowledgeBlockChangePkt ¶
type PlayAcknowledgeBlockChangePkt = internal.PlayAcknowledgeBlockChange_763_0
ID=0x5
type PlayAwardStatisticsPkt ¶
type PlayAwardStatisticsPkt = internal.PlayAwardStatistics_761_1
ID=0x4
type PlayBlockEntityDataPkt ¶
type PlayBlockEntityDataPkt = internal.PlayBlockEntityData_763_0
ID=0x7
type PlayChangeDifficultyClientPkt ¶
type PlayChangeDifficultyClientPkt = internal.PlayChangeDifficulty_763_0
ID=0xb
type PlayChangeDifficultyServerPkt ¶
type PlayChangeDifficultyServerPkt = internal.PlayChangeDifficultyServer_763_0
ID=0x2
type PlayChangeRecipeBookSettingsPkt ¶
type PlayChangeRecipeBookSettingsPkt = internal.PlayChangeRecipeBookSettings_763_0
ID=0x21
type PlayChatSuggestionsPkt ¶
type PlayChatSuggestionsPkt = internal.PlayChatSuggestions_763_0
ID=0x14
type PlayClickContainerButtonPkt ¶
type PlayClickContainerButtonPkt = internal.PlayClickContainerButton_763_0
ID=0x9
type PlayClientInformationPkt ¶
type PlayClientInformationPkt = internal.PlayClientInformation_763_0
ID=0x7
type PlayCloseContainerClientPkt ¶
type PlayCloseContainerClientPkt = internal.PlayCloseContainer_763_0
ID=0xf
type PlayCloseContainerServerPkt ¶
type PlayCloseContainerServerPkt = internal.PlayCloseContainerServer_763_0
ID=0xb
type PlayCommandSuggestionsRequestPkt ¶
type PlayCommandSuggestionsRequestPkt = internal.PlayCommandSuggestionsRequest_763_0
ID=0x8
type PlayConfirmTeleportationPkt ¶
type PlayConfirmTeleportationPkt = internal.PlayConfirmTeleportation_763_0
ID=0x0
type PlayDisguisedChatMessagePkt ¶
type PlayDisguisedChatMessagePkt = internal.PlayDisguisedChatMessage_763_0
ID=0x18
type PlayDisplayObjectivePkt ¶
type PlayDisplayObjectivePkt = internal.PlayDisplayObjective_763_0
ID=0x4d
type PlayEntityAnimationPkt ¶
type PlayEntityAnimationPkt = internal.PlayEntityAnimation_763_0
ID=0x3
type PlayEntitySoundEffectPkt ¶
type PlayEntitySoundEffectPkt = internal.PlayEntitySoundEffect_763_0
ID=0x5d
type PlayInitializeWorldBorderPkt ¶
type PlayInitializeWorldBorderPkt = internal.PlayInitializeWorldBorder_763_0
ID=0x1e
type PlayKeepAliveServerPkt ¶
type PlayKeepAliveServerPkt = internal.PlayKeepAliveServer_763_0
ID=0x11
type PlayLoginPkt ¶
type PlayLoginPkt struct { /* The player's Entity ID (EID). */ EntityID Int // Int IsHardcore Bool // Boolean /* 0: Survival, 1: Creative, 2: Adventure, 3: Spectator. */ Gamemode UByte // Unsigned Byte /* -1: Undefined (null), 0: Survival, 1: Creative, 2: Adventure, 3: Spectator. The previous gamemode. Vanilla client uses this for the debug (F3 + N & F3 + F4) gamemode switch. (More information needed) */ PreviousGamemode Byte // Byte /* Size of the following array. */ DimensionCount VarInt // VarInt /* Identifiers for all dimensions on the server. */ DimensionNames []String // Array of Identifier /* Represents certain registries that are sent from the server and are applied on the client. */ RegistryCodec *nbt.NBTCompound // NBT Tag Compound /* Name of the dimension type being spawned into. */ DimensionType String // Identifier /* Name of the dimension being spawned into. */ DimensionName String // Identifier /* First 8 bytes of the SHA-256 hash of the world's seed. Used client side for biome noise */ HashedSeed Long // Long /* Was once used by the client to draw the player list, but now is ignored. */ MaxPlayers VarInt // VarInt /* Render distance (2-32). */ ViewDistance VarInt // VarInt /* The distance that the client will process specific things, such as entities. */ SimulationDistance VarInt // VarInt /* If true, a Notchian client shows reduced information on the debug screen. For servers in development, this should almost always be false. */ ReducedDebugInfo Bool // Boolean /* Set to false when the doImmediateRespawn gamerule is true. */ EnableRespawnScreen Bool // Boolean /* True if the world is a debug mode world; debug mode worlds cannot be modified and have predefined blocks. */ IsDebug Bool // Boolean /* True if the world is a superflat world; flat worlds have different void fog and a horizon at y=0 instead of y=63. */ IsFlat Bool // Boolean /* If true, then the next two fields are present. */ HasDeathLocation Bool // Boolean /* Name of the dimension the player died in. */ DeathDimensionName Optional[String] // Optional Identifier /* The location that the player died at. */ DeathLocation Optional[Position] // Optional Position }
ID=0x24
func (*PlayLoginPkt) DecodeFrom ¶
func (p *PlayLoginPkt) DecodeFrom(r *PacketReader) error
func (PlayLoginPkt) Encode ¶
func (p PlayLoginPkt) Encode(b *PacketBuilder)
type PlayMessageAcknowledgmentPkt ¶
type PlayMessageAcknowledgmentPkt = internal.PlayMessageAcknowledgment_763_0
ID=0x3
type PlayMoveVehicleClientPkt ¶
type PlayMoveVehicleClientPkt = internal.PlayMoveVehicle_763_0
ID=0x2a
type PlayMoveVehicleServerPkt ¶
type PlayMoveVehicleServerPkt = internal.PlayMoveVehicleServer_763_0
ID=0x17
type PlayOpenHorseScreenPkt ¶
type PlayOpenHorseScreenPkt = internal.PlayOpenHorseScreen_763_0
ID=0x1d
type PlayPlaceGhostRecipePkt ¶
type PlayPlaceGhostRecipePkt = internal.PlayPlaceGhostRecipe_763_0
ID=0x2f
type PlayPluginMessageClientPkt ¶
type PlayPluginMessageClientPkt = internal.PlayPluginMessage_763_0
ID=0x15
type PlayPluginMessageServerPkt ¶
type PlayPluginMessageServerPkt = internal.PlayPluginMessageServer_763_0
ID=0xc
type PlayProgramCommandBlockMinecartPkt ¶
type PlayProgramCommandBlockMinecartPkt = internal.PlayProgramCommandBlockMinecart_763_0
ID=0x2a
type PlayProgramCommandBlockPkt ¶
type PlayProgramCommandBlockPkt = internal.PlayProgramCommandBlock_763_0
ID=0x29
type PlayProgramJigsawBlockPkt ¶
type PlayProgramJigsawBlockPkt = internal.PlayProgramJigsawBlock_763_0
ID=0x2c
type PlayProgramStructureBlockPkt ¶
type PlayProgramStructureBlockPkt = internal.PlayProgramStructureBlock_763_0
ID=0x2d
type PlayQueryBlockEntityTagPkt ¶
type PlayQueryBlockEntityTagPkt = internal.PlayQueryBlockEntityTag_763_0
ID=0x1
type PlayRemoveEntityEffectPkt ¶
type PlayRemoveEntityEffectPkt = internal.PlayRemoveEntityEffect_763_0
ID=0x3b
type PlayResourcePackClientPkt ¶
type PlayResourcePackClientPkt = internal.PlayResourcePack_763_0
ID=0x3c
type PlayResourcePackServerPkt ¶
type PlayResourcePackServerPkt = internal.PlayResourcePackServer_763_0
ID=0x24
type PlayRespawnPkt ¶
type PlayRespawnPkt struct { /* Valid dimensions are defined per dimension registry sent in Login (play) */ DimensionType String // Identifier /* Name of the dimension being spawned into. */ DimensionName String // Identifier /* First 8 bytes of the SHA-256 hash of the world's seed. Used client side for biome noise */ HashedSeed Long // Long /* 0: Survival, 1: Creative, 2: Adventure, 3: Spectator. */ Gamemode UByte // Unsigned Byte /* -1: Undefined (null), 0: Survival, 1: Creative, 2: Adventure, 3: Spectator. The previous gamemode. Vanilla client uses this for the debug (F3 + N & F3 + F4) gamemode switch. (More information needed) */ PreviousGamemode Byte // Byte /* True if the world is a debug mode world; debug mode worlds cannot be modified and have predefined blocks. */ IsDebug Bool // Boolean /* True if the world is a superflat world; flat worlds have different void fog and a horizon at y=0 instead of y=63. */ IsFlat Bool // Boolean /* If false, metadata is reset on the respawned player entity. Set to true for dimension changes (including the dimension change triggered by sending client status perform respawn to exit the end poem/credits), and false for normal respawns. */ CopyMetadata Bool // Boolean /* If true, then the next two fields are present. */ HasDeathLocation Bool // Boolean /* Name of the dimension the player died in. */ DeathDimensionName Optional[String] // Optional Identifier /* The location that the player died at. */ DeathLocation Optional[Position] // Optional Position }
ID=0x3d
func (*PlayRespawnPkt) DecodeFrom ¶
func (p *PlayRespawnPkt) DecodeFrom(r *PacketReader) error
func (PlayRespawnPkt) Encode ¶
func (p PlayRespawnPkt) Encode(b *PacketBuilder)
type PlaySeenAdvancementsPkt ¶
type PlaySeenAdvancementsPkt = internal.PlaySeenAdvancements_763_0
ID=0x25
type PlaySelectAdvancementsTabPkt ¶
type PlaySelectAdvancementsTabPkt = internal.PlaySelectAdvancementsTab_763_0
ID=0x40
type PlayServerDataPkt ¶
type PlayServerDataPkt struct { HasMOTD Bool // Boolean MOTD Optional[Object] // Optional Chat HasIcon Bool // Boolean /* Icon PNG base64 String */ Icon Optional[String] // Optional String (32767) EnforcesSecureChat Bool // Boolean }
ID=0x41
func (*PlayServerDataPkt) DecodeFrom ¶
func (p *PlayServerDataPkt) DecodeFrom(r *PacketReader) error
func (PlayServerDataPkt) Encode ¶
func (p PlayServerDataPkt) Encode(b *PacketBuilder)
type PlaySetActionBarTextPkt ¶
type PlaySetActionBarTextPkt = internal.PlaySetActionBarText_763_0
ID=0x42
type PlaySetBeaconEffectPkt ¶
type PlaySetBeaconEffectPkt = internal.PlaySetBeaconEffect_763_0
ID=0x27
type PlaySetBlockDestroyStagePkt ¶
type PlaySetBlockDestroyStagePkt = internal.PlaySetBlockDestroyStage_763_0
ID=0x6
type PlaySetBorderCenterPkt ¶
type PlaySetBorderCenterPkt = internal.PlaySetBorderCenter_763_0
ID=0x43
type PlaySetBorderLerpSizePkt ¶
type PlaySetBorderLerpSizePkt = internal.PlaySetBorderLerpSize_763_0
ID=0x44
type PlaySetBorderWarningDelayPkt ¶
type PlaySetBorderWarningDelayPkt = internal.PlaySetBorderWarningDelay_763_0
ID=0x46
type PlaySetBorderWarningDistancePkt ¶
type PlaySetBorderWarningDistancePkt = internal.PlaySetBorderWarningDistance_763_0
ID=0x47
type PlaySetContainerContentPkt ¶
type PlaySetContainerContentPkt = internal.PlaySetContainerContent_763_0
ID=0x10
type PlaySetContainerPropertyPkt ¶
type PlaySetContainerPropertyPkt = internal.PlaySetContainerProperty_763_0
ID=0x11
type PlaySetContainerSlotPkt ¶
type PlaySetContainerSlotPkt = internal.PlaySetContainerSlot_763_0
ID=0x12
type PlaySetCreativeModeSlotPkt ¶
type PlaySetCreativeModeSlotPkt = internal.PlaySetCreativeModeSlot_763_0
ID=0x2b
type PlaySetDefaultSpawnPositionPkt ¶
type PlaySetDefaultSpawnPositionPkt = internal.PlaySetDefaultSpawnPosition_763_0
ID=0x4c
type PlaySetEntityMetadataPkt ¶
type PlaySetEntityMetadataPkt = internal.PlaySetEntityMetadata_763_0
ID=0x4e
type PlaySetEntityVelocityPkt ¶
type PlaySetEntityVelocityPkt = internal.PlaySetEntityVelocity_763_0
ID=0x50
type PlaySetHeadRotationPkt ¶
type PlaySetHeadRotationPkt = internal.PlaySetHeadRotation_763_0
ID=0x3e
type PlaySetHeldItemClientPkt ¶
type PlaySetHeldItemClientPkt = internal.PlaySetHeldItem_763_0
ID=0x49
type PlaySetHeldItemServerPkt ¶
type PlaySetHeldItemServerPkt = internal.PlaySetHeldItemServer_763_0
ID=0x28
type PlaySetPlayerOnGroundPkt ¶
type PlaySetPlayerOnGroundPkt = internal.PlaySetPlayerOnGround_763_0
ID=0x16
type PlaySetPlayerPositionAndRotationPkt ¶
type PlaySetPlayerPositionAndRotationPkt = internal.PlaySetPlayerPositionAndRotation_763_0
ID=0x14
type PlaySetPlayerPositionPkt ¶
type PlaySetPlayerPositionPkt = internal.PlaySetPlayerPosition_763_0
ID=0x13
type PlaySetPlayerRotationPkt ¶
type PlaySetPlayerRotationPkt = internal.PlaySetPlayerRotation_763_0
ID=0x15
type PlaySetRenderDistancePkt ¶
type PlaySetRenderDistancePkt = internal.PlaySetRenderDistance_763_0
ID=0x4b
type PlaySetSimulationDistancePkt ¶
type PlaySetSimulationDistancePkt = internal.PlaySetSimulationDistance_763_0
ID=0x58
type PlaySetSubtitleTextPkt ¶
type PlaySetSubtitleTextPkt = internal.PlaySetSubtitleText_763_0
ID=0x59
type PlaySetTabListHeaderAndFooterPkt ¶
type PlaySetTabListHeaderAndFooterPkt = internal.PlaySetTabListHeaderAndFooter_763_0
ID=0x61
type PlaySetTitleAnimationTimesPkt ¶
type PlaySetTitleAnimationTimesPkt = internal.PlaySetTitleAnimationTimes_763_0
ID=0x5c
type PlaySpawnExperienceOrbPkt ¶
type PlaySpawnExperienceOrbPkt = internal.PlaySpawnExperienceOrb_763_0
ID=0x1
type PlaySynchronizePlayerPositionPkt ¶
type PlaySynchronizePlayerPositionPkt = internal.PlaySynchronizePlayerPosition_761_1
ID=0x38
type PlaySystemChatMessagePkt ¶
type PlaySystemChatMessagePkt = internal.PlaySystemChatMessage_763_0
ID=0x60
type PlayTagQueryResponsePkt ¶
type PlayTagQueryResponsePkt = internal.PlayTagQueryResponse_763_0
ID=0x62
type PlayTeleportToEntityPkt ¶
type PlayTeleportToEntityPkt = internal.PlayTeleportToEntity_763_0
ID=0x30
type PlayUpdateEntityPositionAndRotationPkt ¶
type PlayUpdateEntityPositionAndRotationPkt = internal.PlayUpdateEntityPositionAndRotation_763_0
ID=0x28
type PlayUpdateEntityPositionPkt ¶
type PlayUpdateEntityPositionPkt = internal.PlayUpdateEntityPosition_763_0
ID=0x27
type PlayUpdateEntityRotationPkt ¶
type PlayUpdateEntityRotationPkt = internal.PlayUpdateEntityRotation_763_0
ID=0x29
type PlayUpdateObjectivesPkt ¶
type PlayUpdateObjectivesPkt = internal.PlayUpdateObjectives_763_0
ID=0x54
type PlayUpdateRecipeBookPkt ¶
type PlayUpdateRecipeBookPkt = internal.PlayUpdateRecipeBook_763_0
ID=0x39
type PlayUpdateSectionBlocksPkt ¶
type PlayUpdateSectionBlocksPkt = internal.PlayUpdateSectionBlocks_762_1
ID=0x3f
type PlayerAbilitiesClientPkt ¶
type PlayerAbilitiesClientPkt = internal.PlayerAbilities_763_0
ID=0x30
type PlayerAbilitiesServerPkt ¶
type PlayerAbilitiesServerPkt = internal.PlayerAbilitiesServer_763_0
ID=0x1b