packet_1_15_2

package
v0.0.0-...-88676e2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginDisconnectPkt

type LoginDisconnectPkt = internal.LoginDisconnect_763_0

ID=0x0

type LoginEncryptionRequestPkt

type LoginEncryptionRequestPkt = internal.LoginEncryptionRequest_763_0

ID=0x1

type LoginEncryptionResponsePkt

type LoginEncryptionResponsePkt = internal.LoginEncryptionResponse_763_0

ID=0x1

type LoginPluginRequestPkt

type LoginPluginRequestPkt = internal.LoginPluginRequest_763_0

ID=0x4

type LoginPluginResponsePkt

type LoginPluginResponsePkt = internal.LoginPluginResponse_763_0

ID=0x2

type LoginSetCompressionPkt

type LoginSetCompressionPkt = internal.LoginSetCompression_763_0

ID=0x3

type LoginStartPkt

type LoginStartPkt = internal.LoginStart_758_2

ID=0x0

type LoginSuccessPkt

type LoginSuccessPkt = internal.LoginSuccess_578_2

ID=0x2

type PlayAcknowledgePlayerDiggingPkt

type PlayAcknowledgePlayerDiggingPkt = internal.PlayAcknowledgePlayerDigging_758_0

ID=0x8

type PlayAdvancementTabPkt

type PlayAdvancementTabPkt = internal.PlayAdvancementTab_758_0

ID=0x20

type PlayAdvancementsPkt

type PlayAdvancementsPkt struct {
}

ID=0x58

type PlayAnimationPkt

type PlayAnimationPkt = internal.PlayAnimation_758_0

ID=0x2a

type PlayAttachEntityPkt

type PlayAttachEntityPkt = internal.PlayAttachEntity_758_0

ID=0x45

type PlayBlockActionPkt

type PlayBlockActionPkt = internal.PlayBlockAction_758_1

ID=0xb

type PlayBlockBreakAnimationPkt

type PlayBlockBreakAnimationPkt = internal.PlayBlockBreakAnimation_758_0

ID=0x9

type PlayBlockChangePkt

type PlayBlockChangePkt = internal.PlayBlockChange_758_0

ID=0xc

type PlayBlockEntityDataPkt

type PlayBlockEntityDataPkt = internal.PlayBlockEntityData_756_1

ID=0xa

type PlayBossBarPkt

type PlayBossBarPkt struct {
}

ID=0xd

type PlayCameraPkt

type PlayCameraPkt = internal.PlayCamera_758_0

ID=0x3f

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 PlayClickWindowPkt

type PlayClickWindowPkt = internal.PlayClickWindow_754_4

ID=0x9

type PlayClientSettingsPkt

type PlayClientSettingsPkt = internal.PlayClientSettings_754_2

ID=0x5

type PlayClientStatusPkt

type PlayClientStatusPkt = internal.PlayClientStatus_758_0

ID=0x4

type PlayCloseWindowClientPkt

type PlayCloseWindowClientPkt = internal.PlayCloseWindow_758_0

ID=0x14

type PlayCloseWindowServerPkt

type PlayCloseWindowServerPkt = internal.PlayCloseWindowServer_758_0

ID=0xa

type PlayCollectItemPkt

type PlayCollectItemPkt = internal.PlayCollectItem_758_0

ID=0x56

type PlayCombatEventPkt

type PlayCombatEventPkt struct {
}

ID=0x33

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 PlayDeclareRecipesPkt

type PlayDeclareRecipesPkt struct {
}

ID=0x5b

type PlayDestroyEntitiesPkt

type PlayDestroyEntitiesPkt = internal.PlayDestroyEntities_758_0

ID=0x38

type PlayDisconnectPkt

type PlayDisconnectPkt = internal.PlayDisconnect_763_0

ID=0x1b

type PlayDisplayScoreboardPkt

type PlayDisplayScoreboardPkt = internal.PlayDisplayScoreboard_758_0

ID=0x43

type PlayEditBookPkt

type PlayEditBookPkt = internal.PlayEditBook_755_4

ID=0xc

type PlayEffectPkt

type PlayEffectPkt = internal.PlayEffect_758_0

ID=0x23

type PlayEntityActionPkt

type PlayEntityActionPkt = internal.PlayEntityAction_758_0

ID=0x1b

type PlayEntityAnimationPkt

type PlayEntityAnimationPkt = internal.PlayEntityAnimation_763_0

ID=0x6

type PlayEntityEffectPkt

type PlayEntityEffectPkt = internal.PlayEntityEffect_757_2

ID=0x5a

type PlayEntityEquipmentPkt

type PlayEntityEquipmentPkt = internal.PlayEntityEquipment_578_2

ID=0x47

type PlayEntityHeadLookPkt

type PlayEntityHeadLookPkt = internal.PlayEntityHeadLook_758_0

ID=0x3c

type PlayEntityMetadataPkt

type PlayEntityMetadataPkt = internal.PlayEntityMetadata_758_0

ID=0x44

type PlayEntityMovementPkt

type PlayEntityMovementPkt = internal.PlayEntityMovement_754_0

ID=0x2c

type PlayEntityPositionAndRotationPkt

type PlayEntityPositionAndRotationPkt = internal.PlayEntityPositionAndRotation_758_0

ID=0x2a

type PlayEntityPositionPkt

type PlayEntityPositionPkt = internal.PlayEntityPosition_758_0

ID=0x29

type PlayEntityPropertiesPkt

type PlayEntityPropertiesPkt struct {
}

ID=0x59

type PlayEntityRotationPkt

type PlayEntityRotationPkt = internal.PlayEntityRotation_758_0

ID=0x2b

type PlayEntitySoundEffectPkt

type PlayEntitySoundEffectPkt = internal.PlayEntitySoundEffect_760_1

ID=0x51

type PlayEntityStatusPkt

type PlayEntityStatusPkt = internal.PlayEntityStatus_758_0

ID=0x1c

type PlayEntityTeleportPkt

type PlayEntityTeleportPkt = internal.PlayEntityTeleport_758_0

ID=0x57

type PlayEntityVelocityPkt

type PlayEntityVelocityPkt = internal.PlayEntityVelocity_758_0

ID=0x46

type PlayExplosionPkt

type PlayExplosionPkt = internal.PlayExplosion_754_2

ID=0x1d

type PlayFacePlayerPkt

type PlayFacePlayerPkt = internal.PlayFacePlayer_757_0

ID=0x35

type PlayHeldItemChangeClientPkt

type PlayHeldItemChangeClientPkt = internal.PlayHeldItemChange_758_0

ID=0x40

type PlayHeldItemChangeServerPkt

type PlayHeldItemChangeServerPkt = internal.PlayHeldItemChangeServer_758_0

ID=0x23

type PlayInteractEntityPkt

type PlayInteractEntityPkt = internal.PlayInteractEntity_578_1

ID=0xe

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 PlayKeepAliveClientPkt

type PlayKeepAliveClientPkt = internal.PlayKeepAlive_763_0

ID=0x21

type PlayKeepAliveServerPkt

type PlayKeepAliveServerPkt = internal.PlayKeepAliveServer_763_0

ID=0xf

type PlayLockDifficultyPkt

type PlayLockDifficultyPkt = internal.PlayLockDifficulty_763_0

ID=0x10

type PlayMapDataPkt

type PlayMapDataPkt struct {
}

ID=0x27

type PlayMultiBlockChangePkt

type PlayMultiBlockChangePkt struct {
}

ID=0x10

type PlayNBTQueryResponsePkt

type PlayNBTQueryResponsePkt = internal.PlayNBTQueryResponse_758_0

ID=0x55

type PlayNameItemPkt

type PlayNameItemPkt = internal.PlayNameItem_758_0

ID=0x1e

type PlayNamedSoundEffectPkt

type PlayNamedSoundEffectPkt = internal.PlayNamedSoundEffect_758_0

ID=0x1a

type PlayOpenBookPkt

type PlayOpenBookPkt = internal.PlayOpenBook_763_0

ID=0x2e

type PlayOpenHorseWindowPkt

type PlayOpenHorseWindowPkt = internal.PlayOpenHorseWindow_756_1

ID=0x20

type PlayOpenSignEditorPkt

type PlayOpenSignEditorPkt = internal.PlayOpenSignEditor_762_1

ID=0x30

type PlayOpenWindowPkt

type PlayOpenWindowPkt = internal.PlayOpenWindow_758_0

ID=0x2f

type PlayParticlePkt

type PlayParticlePkt = internal.PlayParticle_758_1

ID=0x24

type PlayPickItemPkt

type PlayPickItemPkt = internal.PlayPickItem_763_0

ID=0x17

type PlayPluginMessageClientPkt

type PlayPluginMessageClientPkt = internal.PlayPluginMessage_763_0

ID=0x19

type PlayPluginMessageServerPkt

type PlayPluginMessageServerPkt = internal.PlayPluginMessageServer_763_0

ID=0xb

type PlayQueryBlockNBTPkt

type PlayQueryBlockNBTPkt = internal.PlayQueryBlockNBT_758_0

ID=0x1

type PlayQueryEntityNBTPkt

type PlayQueryEntityNBTPkt = internal.PlayQueryEntityNBT_758_0

ID=0xd

type PlayRecipeBookDataPkt

type PlayRecipeBookDataPkt struct {
}

ID=0x1d

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 PlaySelectTradePkt

type PlaySelectTradePkt = internal.PlaySelectTrade_763_0

ID=0x21

type PlayServerDifficultyPkt

type PlayServerDifficultyPkt = internal.PlayServerDifficulty_758_0

ID=0xe

type PlaySetBeaconEffectPkt

type PlaySetBeaconEffectPkt = internal.PlaySetBeaconEffect_758_2

ID=0x22

type PlaySetCooldownPkt

type PlaySetCooldownPkt = internal.PlaySetCooldown_763_0

ID=0x18

type PlaySetDifficultyPkt

type PlaySetDifficultyPkt = internal.PlaySetDifficulty_758_0

ID=0x2

type PlaySetExperiencePkt

type PlaySetExperiencePkt = internal.PlaySetExperience_760_1

ID=0x48

type PlaySetPassengersPkt

type PlaySetPassengersPkt = internal.PlaySetPassengers_763_0

ID=0x4b

type PlaySetSlotPkt

type PlaySetSlotPkt = internal.PlaySetSlot_755_1

ID=0x17

type PlaySoundEffectPkt

type PlaySoundEffectPkt = internal.PlaySoundEffect_758_2

ID=0x52

type PlaySpawnEntityPkt

type PlaySpawnEntityPkt = internal.PlaySpawnEntity_758_1

ID=0x0

type PlaySpawnExperienceOrbPkt

type PlaySpawnExperienceOrbPkt = internal.PlaySpawnExperienceOrb_763_0

ID=0x1

type PlaySpawnLivingEntityPkt

type PlaySpawnLivingEntityPkt = internal.PlaySpawnLivingEntity_757_1

ID=0x3

type PlaySpawnPaintingPkt

type PlaySpawnPaintingPkt = internal.PlaySpawnPainting_758_0

ID=0x4

type PlaySpawnPlayerPkt

type PlaySpawnPlayerPkt = internal.PlaySpawnPlayer_763_0

ID=0x5

type PlaySpawnPositionPkt

type PlaySpawnPositionPkt = internal.PlaySpawnPosition_754_1

ID=0x4e

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 PlaySpectatePkt

type PlaySpectatePkt = internal.PlaySpectate_758_0

ID=0x2b

type PlayStatisticsPkt

type PlayStatisticsPkt struct {
}

ID=0x7

type PlaySteerBoatPkt

type PlaySteerBoatPkt = internal.PlaySteerBoat_758_0

ID=0x16

type PlaySteerVehiclePkt

type PlaySteerVehiclePkt = internal.PlaySteerVehicle_758_0

ID=0x1c

type PlayStopSoundPkt

type PlayStopSoundPkt = internal.PlayStopSound_763_0

ID=0x53

type PlayTabCompleteClientPkt

type PlayTabCompleteClientPkt struct {
}

ID=0x11

type PlayTabCompleteServerPkt

type PlayTabCompleteServerPkt = internal.PlayTabCompleteServer_758_0

ID=0x6

type PlayTagsPkt

type PlayTagsPkt = internal.PlayTags_754_2

ID=0x5c

type PlayTeamsPkt

type PlayTeamsPkt = internal.PlayTeams_753_2

ID=0x4c

type PlayTeleportConfirmPkt

type PlayTeleportConfirmPkt = internal.PlayTeleportConfirm_758_0

ID=0x0

type PlayTimeUpdatePkt

type PlayTimeUpdatePkt = internal.PlayTimeUpdate_758_0

ID=0x4f

type PlayTitlePkt

type PlayTitlePkt struct {
}

ID=0x50

type PlayTradeListPkt

type PlayTradeListPkt struct {
}

ID=0x28

type PlayUnloadChunkPkt

type PlayUnloadChunkPkt = internal.PlayUnloadChunk_763_0

ID=0x1e

type PlayUnlockRecipesPkt

type PlayUnlockRecipesPkt = internal.PlayUnlockRecipes_578_2

ID=0x37

type PlayUpdateCommandBlockMinecartPkt

type PlayUpdateCommandBlockMinecartPkt = internal.PlayUpdateCommandBlockMinecart_758_0

ID=0x25

type PlayUpdateCommandBlockPkt

type PlayUpdateCommandBlockPkt = internal.PlayUpdateCommandBlock_758_0

ID=0x24

type PlayUpdateHealthPkt

type PlayUpdateHealthPkt = internal.PlayUpdateHealth_758_0

ID=0x49

type PlayUpdateJigsawBlockPkt

type PlayUpdateJigsawBlockPkt = internal.PlayUpdateJigsawBlock_578_1

ID=0x27

type PlayUpdateLightPkt

type PlayUpdateLightPkt struct {
}

ID=0x25

type PlayUpdateScorePkt

type PlayUpdateScorePkt = internal.PlayUpdateScore_757_1

ID=0x4d

type PlayUpdateSignPkt

type PlayUpdateSignPkt = internal.PlayUpdateSign_762_1

ID=0x29

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 PlayUseItemPkt

type PlayUseItemPkt = internal.PlayUseItem_758_1

ID=0x2d

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 PlayWindowItemsPkt

type PlayWindowItemsPkt = internal.PlayWindowItems_755_1

ID=0x15

type PlayWindowPropertyPkt

type PlayWindowPropertyPkt = internal.PlayWindowProperty_758_0

ID=0x16

type PlayWorldBorderPkt

type PlayWorldBorderPkt struct {
}

ID=0x3e

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 PlayerDiggingPkt

type PlayerDiggingPkt = internal.PlayerDigging_758_0

ID=0x1a

type PlayerInfoPkt

type PlayerInfoPkt struct {
}

ID=0x34

type PlayerListHeaderAndFooterPkt

type PlayerListHeaderAndFooterPkt = internal.PlayerListHeaderAndFooter_758_0

ID=0x54

type PlayerMovementPkt

type PlayerMovementPkt = internal.PlayerMovement_758_0

ID=0x14

type PlayerPositionAndLookPkt

type PlayerPositionAndLookPkt = internal.PlayerPositionAndLook_754_1

ID=0x36

type PlayerPositionAndRotationPkt

type PlayerPositionAndRotationPkt = internal.PlayerPositionAndRotation_758_0

ID=0x12

type PlayerPositionPkt

type PlayerPositionPkt = internal.PlayerPosition_758_0

ID=0x11

type PlayerRotationPkt

type PlayerRotationPkt = internal.PlayerRotation_758_0

ID=0x13

Jump to

Keyboard shortcuts

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