Documentation
¶
Index ¶
- type LoginDisconnectPkt
- type LoginEncryptionRequestPkt
- type LoginEncryptionResponsePkt
- type LoginPluginRequestPkt
- type LoginPluginResponsePkt
- type LoginSetCompressionPkt
- type LoginStartPkt
- type LoginSuccessPkt
- type PlayAcknowledgePlayerDiggingPkt
- type PlayAdvancementTabPkt
- type PlayAdvancementsPkt
- type PlayAnimationPkt
- type PlayAttachEntityPkt
- type PlayBlockActionPkt
- type PlayBlockBreakAnimationPkt
- type PlayBlockChangePkt
- type PlayBlockEntityDataPkt
- type PlayBossBarPkt
- type PlayCameraPkt
- type PlayChangeGameStatePkt
- type PlayChatMessageClientPkt
- type PlayChatMessageServerPkt
- type PlayChunkDataPkt
- type PlayClickWindowButtonPkt
- type PlayClickWindowPkt
- type PlayClientSettingsPkt
- type PlayClientStatusPkt
- type PlayCloseWindowClientPkt
- type PlayCloseWindowServerPkt
- type PlayCollectItemPkt
- type PlayCombatEventPkt
- type PlayCraftRecipeRequestPkt
- type PlayCraftRecipeResponsePkt
- type PlayCreativeInventoryActionPkt
- type PlayDeclareCommandsPkt
- type PlayDeclareRecipesPkt
- type PlayDestroyEntitiesPkt
- type PlayDisconnectPkt
- type PlayDisplayScoreboardPkt
- type PlayEditBookPkt
- type PlayEffectPkt
- type PlayEntityActionPkt
- type PlayEntityAnimationPkt
- type PlayEntityEffectPkt
- type PlayEntityEquipmentPkt
- type PlayEntityHeadLookPkt
- type PlayEntityMetadataPkt
- type PlayEntityMovementPkt
- type PlayEntityPositionAndRotationPkt
- type PlayEntityPositionPkt
- type PlayEntityPropertiesPkt
- type PlayEntityRotationPkt
- type PlayEntitySoundEffectPkt
- type PlayEntityStatusPkt
- type PlayEntityTeleportPkt
- type PlayEntityVelocityPkt
- type PlayExplosionPkt
- type PlayFacePlayerPkt
- type PlayHeldItemChangeClientPkt
- type PlayHeldItemChangeServerPkt
- type PlayInteractEntityPkt
- type PlayJoinGamePkt
- type PlayKeepAliveClientPkt
- type PlayKeepAliveServerPkt
- type PlayLockDifficultyPkt
- type PlayMapDataPkt
- type PlayMultiBlockChangePkt
- type PlayNBTQueryResponsePkt
- type PlayNameItemPkt
- type PlayNamedSoundEffectPkt
- type PlayOpenBookPkt
- type PlayOpenHorseWindowPkt
- type PlayOpenSignEditorPkt
- type PlayOpenWindowPkt
- type PlayParticlePkt
- type PlayPickItemPkt
- type PlayPluginMessageClientPkt
- type PlayPluginMessageServerPkt
- type PlayQueryBlockNBTPkt
- type PlayQueryEntityNBTPkt
- type PlayRecipeBookDataPkt
- type PlayRemoveEntityEffectPkt
- type PlayResourcePackSendPkt
- type PlayResourcePackStatusPkt
- type PlayRespawnPkt
- type PlayScoreboardObjectivePkt
- type PlaySelectAdvancementTabPkt
- type PlaySelectTradePkt
- type PlayServerDifficultyPkt
- type PlaySetBeaconEffectPkt
- type PlaySetCooldownPkt
- type PlaySetDifficultyPkt
- type PlaySetExperiencePkt
- type PlaySetPassengersPkt
- type PlaySetSlotPkt
- type PlaySoundEffectPkt
- type PlaySpawnEntityPkt
- type PlaySpawnExperienceOrbPkt
- type PlaySpawnLivingEntityPkt
- type PlaySpawnPaintingPkt
- type PlaySpawnPlayerPkt
- type PlaySpawnPositionPkt
- type PlaySpawnWeatherEntityPkt
- type PlaySpectatePkt
- type PlayStatisticsPkt
- type PlaySteerBoatPkt
- type PlaySteerVehiclePkt
- type PlayStopSoundPkt
- type PlayTabCompleteClientPkt
- type PlayTabCompleteServerPkt
- type PlayTagsPkt
- type PlayTeamsPkt
- type PlayTeleportConfirmPkt
- type PlayTimeUpdatePkt
- type PlayTitlePkt
- type PlayTradeListPkt
- type PlayUnloadChunkPkt
- type PlayUnlockRecipesPkt
- type PlayUpdateCommandBlockMinecartPkt
- type PlayUpdateCommandBlockPkt
- type PlayUpdateHealthPkt
- type PlayUpdateJigsawBlockPkt
- type PlayUpdateLightPkt
- type PlayUpdateScorePkt
- type PlayUpdateSignPkt
- type PlayUpdateStructureBlockPkt
- type PlayUpdateViewDistancePkt
- type PlayUpdateViewPositionPkt
- type PlayUseItemPkt
- type PlayVehicleMoveClientPkt
- type PlayVehicleMoveServerPkt
- type PlayWindowConfirmationClientPkt
- type PlayWindowConfirmationServerPkt
- type PlayWindowItemsPkt
- type PlayWindowPropertyPkt
- type PlayWorldBorderPkt
- type PlayerAbilitiesClientPkt
- type PlayerAbilitiesServerPkt
- type PlayerBlockPlacementPkt
- type PlayerDiggingPkt
- type PlayerInfoPkt
- type PlayerListHeaderAndFooterPkt
- type PlayerMovementPkt
- type PlayerPositionAndLookPkt
- type PlayerPositionAndRotationPkt
- type PlayerPositionPkt
- type PlayerRotationPkt
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 PlayAcknowledgePlayerDiggingPkt ¶
type PlayAcknowledgePlayerDiggingPkt = internal.PlayAcknowledgePlayerDigging_758_0
ID=0x8
type PlayBlockBreakAnimationPkt ¶
type PlayBlockBreakAnimationPkt = internal.PlayBlockBreakAnimation_758_0
ID=0x9
type PlayBlockEntityDataPkt ¶
type PlayBlockEntityDataPkt = internal.PlayBlockEntityData_756_1
ID=0xa
type PlayChangeGameStatePkt ¶
type PlayChangeGameStatePkt = internal.PlayChangeGameState_758_0
ID=0x1f
type PlayChatMessageClientPkt ¶
type PlayChatMessageClientPkt = internal.PlayChatMessage_578_4
ID=0xf
type PlayChatMessageServerPkt ¶
type PlayChatMessageServerPkt = internal.PlayChatMessageServer_758_0
ID=0x3
type PlayChunkDataPkt ¶
type PlayChunkDataPkt struct { /* Chunk coordinate (block coordinate divided by 16, rounded down) */ ChunkX Int // Int /* Chunk coordinate (block coordinate divided by 16, rounded down) */ ChunkZ Int // Int /* See Chunk Format */ FullChunk Bool // Boolean /* Bitmask with bits set to 1 for every 16×16×16 chunk section whose data is included in Data. The least significant bit represents the chunk section at the bottom of the chunk column (from y=0 to y=15). */ PrimaryBitMask VarInt // VarInt /* Compound containing one long array named MOTION_BLOCKING, which is a heightmap for the highest solid block at each position in the chunk (as a compacted long array with 256 entries at 9 bits per entry totaling 36 longs). The Notchian server also adds a WORLD_SURFACE long array, the purpose of which is unknown, but it's not required for the chunk to be accepted. */ Heightmaps nbt.NBT // NBT /* 1024 biome IDs, ordered by x then z then y, in 4×4×4 blocks. Not present if full chunk is false. */ Biomes Optional[[]Int] // Optional array of Integer /* Size of Data in bytes */ Size VarInt // VarInt /* See data structure in Chunk Format */ Data ByteArray // Byte array /* Number of elements in the following array */ NumberOfBlockEntities VarInt // VarInt /* All block entities in the chunk. Use the x, y, and z tags in the NBT to determine their positions. */ BlockEntities []nbt.NBT // Array of NBT Tag }
ID=0x22
func (*PlayChunkDataPkt) DecodeFrom ¶
func (p *PlayChunkDataPkt) DecodeFrom(r *PacketReader) error
func (PlayChunkDataPkt) Encode ¶
func (p PlayChunkDataPkt) Encode(b *PacketBuilder)
type PlayClickWindowButtonPkt ¶
type PlayClickWindowButtonPkt = internal.PlayClickWindowButton_758_0
ID=0x8
type PlayCloseWindowClientPkt ¶
type PlayCloseWindowClientPkt = internal.PlayCloseWindow_758_0
ID=0x14
type PlayCloseWindowServerPkt ¶
type PlayCloseWindowServerPkt = internal.PlayCloseWindowServer_758_0
ID=0xa
type PlayCraftRecipeRequestPkt ¶
type PlayCraftRecipeRequestPkt = internal.PlayCraftRecipeRequest_758_0
ID=0x18
type PlayCraftRecipeResponsePkt ¶
type PlayCraftRecipeResponsePkt = internal.PlayCraftRecipeResponse_758_0
ID=0x31
type PlayCreativeInventoryActionPkt ¶
type PlayCreativeInventoryActionPkt = internal.PlayCreativeInventoryAction_758_0
ID=0x26
type PlayDeclareCommandsPkt ¶
type PlayDeclareCommandsPkt = internal.PlayDeclareCommands_758_0
ID=0x12
type PlayDestroyEntitiesPkt ¶
type PlayDestroyEntitiesPkt = internal.PlayDestroyEntities_758_0
ID=0x38
type PlayDisplayScoreboardPkt ¶
type PlayDisplayScoreboardPkt = internal.PlayDisplayScoreboard_758_0
ID=0x43
type PlayEntityAnimationPkt ¶
type PlayEntityAnimationPkt = internal.PlayEntityAnimation_763_0
ID=0x6
type PlayEntityEquipmentPkt ¶
type PlayEntityEquipmentPkt = internal.PlayEntityEquipment_578_2
ID=0x47
type PlayEntityPositionAndRotationPkt ¶
type PlayEntityPositionAndRotationPkt = internal.PlayEntityPositionAndRotation_758_0
ID=0x2a
type PlayEntitySoundEffectPkt ¶
type PlayEntitySoundEffectPkt = internal.PlayEntitySoundEffect_760_1
ID=0x51
type PlayHeldItemChangeClientPkt ¶
type PlayHeldItemChangeClientPkt = internal.PlayHeldItemChange_758_0
ID=0x40
type PlayHeldItemChangeServerPkt ¶
type PlayHeldItemChangeServerPkt = internal.PlayHeldItemChangeServer_758_0
ID=0x23
type PlayJoinGamePkt ¶
type PlayJoinGamePkt struct { /* The player's Entity ID (EID) */ EntityID Int // Int /* 0: Survival, 1: Creative, 2: Adventure, 3: Spectator. Bit 3 (0x8) is the hardcore flag. */ Gamemode UByte // Unsigned Byte /* -1: Nether, 0: Overworld, 1: End; also, note that this is not a VarInt but instead a regular int. */ Dimension Int // Int Enum /* First 8 bytes of the SHA-256 hash of the world's seed. */ HashedSeed Long // Long /* Was once used by the client to draw the player list, but now is ignored */ MaxPlayers UByte // Unsigned Byte /* default, flat, largeBiomes, amplified, customized, buffet, default_1_1 */ LevelType String // String Enum (16) /* Render distance (2-32) */ ViewDistance 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 }
ID=0x26
func (*PlayJoinGamePkt) DecodeFrom ¶
func (p *PlayJoinGamePkt) DecodeFrom(r *PacketReader) error
func (PlayJoinGamePkt) Encode ¶
func (p PlayJoinGamePkt) Encode(b *PacketBuilder)
type PlayKeepAliveServerPkt ¶
type PlayKeepAliveServerPkt = internal.PlayKeepAliveServer_763_0
ID=0xf
type PlayNBTQueryResponsePkt ¶
type PlayNBTQueryResponsePkt = internal.PlayNBTQueryResponse_758_0
ID=0x55
type PlayNamedSoundEffectPkt ¶
type PlayNamedSoundEffectPkt = internal.PlayNamedSoundEffect_758_0
ID=0x1a
type PlayOpenHorseWindowPkt ¶
type PlayOpenHorseWindowPkt = internal.PlayOpenHorseWindow_756_1
ID=0x20
type PlayPluginMessageClientPkt ¶
type PlayPluginMessageClientPkt = internal.PlayPluginMessage_763_0
ID=0x19
type PlayPluginMessageServerPkt ¶
type PlayPluginMessageServerPkt = internal.PlayPluginMessageServer_763_0
ID=0xb
type PlayRemoveEntityEffectPkt ¶
type PlayRemoveEntityEffectPkt = internal.PlayRemoveEntityEffect_757_1
ID=0x39
type PlayResourcePackSendPkt ¶
type PlayResourcePackSendPkt = internal.PlayResourcePackSend_754_1
ID=0x3a
type PlayResourcePackStatusPkt ¶
type PlayResourcePackStatusPkt = internal.PlayResourcePackStatus_758_0
ID=0x1f
type PlayRespawnPkt ¶
type PlayRespawnPkt struct { /* -1: The Nether, 0: The Overworld, 1: The End */ Dimension Int // Int Enum /* First 8 bytes of the SHA-256 hash of the world's seed. */ HashedSeed Long // Long /* 0: survival, 1: creative, 2: adventure, 3: spectator. The hardcore flag is not included */ Gamemode UByte // Unsigned Byte /* Same as Join Game */ LevelType String // String (16) }
ID=0x3b
func (*PlayRespawnPkt) DecodeFrom ¶
func (p *PlayRespawnPkt) DecodeFrom(r *PacketReader) error
func (PlayRespawnPkt) Encode ¶
func (p PlayRespawnPkt) Encode(b *PacketBuilder)
type PlayScoreboardObjectivePkt ¶
type PlayScoreboardObjectivePkt = internal.PlayScoreboardObjective_758_0
ID=0x4a
type PlaySelectAdvancementTabPkt ¶
type PlaySelectAdvancementTabPkt = internal.PlaySelectAdvancementTab_758_0
ID=0x3d
type PlayServerDifficultyPkt ¶
type PlayServerDifficultyPkt = internal.PlayServerDifficulty_758_0
ID=0xe
type PlaySetBeaconEffectPkt ¶
type PlaySetBeaconEffectPkt = internal.PlaySetBeaconEffect_758_2
ID=0x22
type PlaySpawnExperienceOrbPkt ¶
type PlaySpawnExperienceOrbPkt = internal.PlaySpawnExperienceOrb_763_0
ID=0x1
type PlaySpawnLivingEntityPkt ¶
type PlaySpawnLivingEntityPkt = internal.PlaySpawnLivingEntity_757_1
ID=0x3
type PlaySpawnWeatherEntityPkt ¶
type PlaySpawnWeatherEntityPkt struct { /* The EID of the thunderbolt */ EntityID VarInt // VarInt /* The global entity type, currently always 1 for thunderbolt */ Type Byte // Byte Enum X Double // Double Y Double // Double Z Double // Double }
ID=0x2
func (*PlaySpawnWeatherEntityPkt) DecodeFrom ¶
func (p *PlaySpawnWeatherEntityPkt) DecodeFrom(r *PacketReader) error
func (PlaySpawnWeatherEntityPkt) Encode ¶
func (p PlaySpawnWeatherEntityPkt) Encode(b *PacketBuilder)
type PlayTabCompleteServerPkt ¶
type PlayTabCompleteServerPkt = internal.PlayTabCompleteServer_758_0
ID=0x6
type PlayTeleportConfirmPkt ¶
type PlayTeleportConfirmPkt = internal.PlayTeleportConfirm_758_0
ID=0x0
type PlayUpdateCommandBlockMinecartPkt ¶
type PlayUpdateCommandBlockMinecartPkt = internal.PlayUpdateCommandBlockMinecart_758_0
ID=0x25
type PlayUpdateCommandBlockPkt ¶
type PlayUpdateCommandBlockPkt = internal.PlayUpdateCommandBlock_758_0
ID=0x24
type PlayUpdateJigsawBlockPkt ¶
type PlayUpdateJigsawBlockPkt = internal.PlayUpdateJigsawBlock_578_1
ID=0x27
type PlayUpdateStructureBlockPkt ¶
type PlayUpdateStructureBlockPkt = internal.PlayUpdateStructureBlock_758_0
ID=0x28
type PlayUpdateViewDistancePkt ¶
type PlayUpdateViewDistancePkt = internal.PlayUpdateViewDistance_758_0
ID=0x42
type PlayUpdateViewPositionPkt ¶
type PlayUpdateViewPositionPkt = internal.PlayUpdateViewPosition_758_0
ID=0x41
type PlayVehicleMoveClientPkt ¶
type PlayVehicleMoveClientPkt = internal.PlayVehicleMove_758_0
ID=0x2d
type PlayVehicleMoveServerPkt ¶
type PlayVehicleMoveServerPkt = internal.PlayVehicleMoveServer_758_0
ID=0x15
type PlayWindowConfirmationClientPkt ¶
type PlayWindowConfirmationClientPkt = internal.PlayWindowConfirmation_754_0
ID=0x13
type PlayWindowConfirmationServerPkt ¶
type PlayWindowConfirmationServerPkt = internal.PlayWindowConfirmationServer_754_0
ID=0x7
type PlayerAbilitiesClientPkt ¶
type PlayerAbilitiesClientPkt = internal.PlayerAbilities_763_0
ID=0x32
type PlayerAbilitiesServerPkt ¶
type PlayerAbilitiesServerPkt = internal.PlayerAbilitiesServer_578_1
ID=0x19
type PlayerBlockPlacementPkt ¶
type PlayerBlockPlacementPkt = internal.PlayerBlockPlacement_758_0
ID=0x2c
type PlayerListHeaderAndFooterPkt ¶
type PlayerListHeaderAndFooterPkt = internal.PlayerListHeaderAndFooter_758_0
ID=0x54
type PlayerPositionAndLookPkt ¶
type PlayerPositionAndLookPkt = internal.PlayerPositionAndLook_754_1
ID=0x36
type PlayerPositionAndRotationPkt ¶
type PlayerPositionAndRotationPkt = internal.PlayerPositionAndRotation_758_0
ID=0x12
Click to show internal directories.
Click to hide internal directories.