Versions in this module Expand all Collapse all v0 v0.0.1 Sep 18, 2024 Changes in this version + const InventoryTransactionTypeMismatch + const InventoryTransactionTypeNormal + const InventoryTransactionTypeReleaseItem + const InventoryTransactionTypeUseItem + const InventoryTransactionTypeUseItemOnEntity + const MoveModeNormal + const MoveModeReset + const MoveModeRotation + const MoveModeTeleport + const PlayerActionAbortBreak + const PlayerActionBuildDenied + const PlayerActionContinueBreak + const PlayerActionDimensionChangeDone + const PlayerActionDimensionChangeRequest + const PlayerActionDropItem + const PlayerActionGetUpdatedBlock + const PlayerActionJump + const PlayerActionRespawn + const PlayerActionSetEnchantmentSeed + const PlayerActionStartBreak + const PlayerActionStartGlide + const PlayerActionStartSleeping + const PlayerActionStartSneak + const PlayerActionStartSpinAttack + const PlayerActionStartSprint + const PlayerActionStartSwimming + const PlayerActionStopBreak + const PlayerActionStopGlide + const PlayerActionStopSleeping + const PlayerActionStopSneak + const PlayerActionStopSpinAttack + const PlayerActionStopSprint + const PlayerActionStopSwimming + const PlayerListActionAdd + const PlayerListActionRemove + const TeleportCauseBehaviour + const TeleportCauseChorusFruit + const TeleportCauseCommand + const TeleportCauseProjectile + const TeleportCauseUnknown + const TextTypeAnnouncement + const TextTypeChat + const TextTypeJSON + const TextTypeJukeboxPopup + const TextTypePopup + const TextTypeRaw + const TextTypeSystem + const TextTypeTip + const TextTypeTranslation + const TextTypeWhisper + func PlayerListRemoveEntry(r protocol.IO, x *PlayerListEntry) + type ActorPickRequest struct + EntityUniqueID int64 + HotBarSlot byte + func (*ActorPickRequest) ID() uint32 + func (pk *ActorPickRequest) Marshal(io protocol.IO) + type AddActor struct + Attributes []legacyprotocol.Attribute + EntityLinks []legacyprotocol.EntityLink + EntityMetadata map[uint32]any + EntityRuntimeID uint64 + EntityType string + EntityUniqueID int64 + HeadYaw float32 + Pitch float32 + Position mgl32.Vec3 + Velocity mgl32.Vec3 + Yaw float32 + func (*AddActor) ID() uint32 + func (pk *AddActor) Marshal(io protocol.IO) + type AddItemActor struct + EntityMetadata map[uint32]any + EntityRuntimeID uint64 + EntityUniqueID int64 + FromFishing bool + Item legacyprotocol.ItemStack + Position mgl32.Vec3 + Velocity mgl32.Vec3 + func (*AddItemActor) ID() uint32 + func (pk *AddItemActor) Marshal(io protocol.IO) + type AddPlayer struct + ActionPermissions uint32 + CommandPermissionLevel uint32 + CustomStoredPermissions uint32 + DeviceID string + EntityLinks []legacyprotocol.EntityLink + EntityMetadata map[uint32]any + EntityRuntimeID uint64 + EntityUniqueID int64 + Flags uint32 + HeadYaw float32 + HeldItem legacyprotocol.ItemStack + PermissionLevel uint32 + Pitch float32 + PlatformChatID string + PlayerUniqueID int64 + Position mgl32.Vec3 + UUID uuid.UUID + Username string + Velocity mgl32.Vec3 + Yaw float32 + func (*AddPlayer) ID() uint32 + func (pk *AddPlayer) Marshal(io protocol.IO) + type AvailableCommands struct + Commands []legacyprotocol.Command + func (*AvailableCommands) ID() uint32 + func (pk *AvailableCommands) Marshal(io protocol.IO) + type CommandRequest struct + CommandLine string + CommandOrigin protocol.CommandOrigin + Internal bool + func (*CommandRequest) ID() uint32 + func (pk *CommandRequest) Marshal(io protocol.IO) + type ContainerClose struct + WindowID byte + func (*ContainerClose) ID() uint32 + func (pk *ContainerClose) Marshal(io protocol.IO) + type Disconnect struct + HideDisconnectionScreen bool + Message string + func (*Disconnect) ID() uint32 + func (pk *Disconnect) Marshal(io protocol.IO) + type GameRulesChanged struct + GameRules map[string]any + func (*GameRulesChanged) ID() uint32 + func (pk *GameRulesChanged) Marshal(io protocol.IO) + type InventoryContent struct + Content []legacyprotocol.ItemStack + WindowID uint32 + func (*InventoryContent) ID() uint32 + func (pk *InventoryContent) Marshal(io protocol.IO) + type InventorySlot struct + NewItem legacyprotocol.ItemStack + Slot uint32 + WindowID uint32 + func (*InventorySlot) ID() uint32 + func (pk *InventorySlot) Marshal(io protocol.IO) + type InventoryTransaction struct + Actions []legacyprotocol.InventoryAction + TransactionData legacyprotocol.InventoryTransactionData + func (*InventoryTransaction) ID() uint32 + func (pk *InventoryTransaction) Marshal(io protocol.IO) + type LevelChunk struct + BlobHashes []uint64 + CacheEnabled bool + Position protocol.ChunkPos + RawPayload []byte + SubChunkCount uint32 + func (*LevelChunk) ID() uint32 + func (pk *LevelChunk) Marshal(io protocol.IO) + type MobArmourEquipment struct + Boots legacyprotocol.ItemStack + Chestplate legacyprotocol.ItemStack + EntityRuntimeID uint64 + Helmet legacyprotocol.ItemStack + Leggings legacyprotocol.ItemStack + func (*MobArmourEquipment) ID() uint32 + func (pk *MobArmourEquipment) Marshal(io protocol.IO) + type MobEquipment struct + EntityRuntimeID uint64 + HotBarSlot byte + InventorySlot byte + NewItem legacyprotocol.ItemStack + WindowID byte + func (*MobEquipment) ID() uint32 + func (pk *MobEquipment) Marshal(io protocol.IO) + type ModalFormResponse struct + FormID uint32 + ResponseData []byte + func (*ModalFormResponse) ID() uint32 + func (pk *ModalFormResponse) Marshal(io protocol.IO) + type MovePlayer struct + EntityRuntimeID uint64 + HeadYaw float32 + Mode byte + OnGround bool + Pitch float32 + Position mgl32.Vec3 + RiddenEntityRuntimeID uint64 + TeleportCause int32 + TeleportItem int32 + Yaw float32 + func (*MovePlayer) ID() uint32 + func (pk *MovePlayer) Marshal(r protocol.IO) + type NetworkChunkPublisherUpdate struct + Position protocol.BlockPos + Radius uint32 + func (*NetworkChunkPublisherUpdate) ID() uint32 + func (pk *NetworkChunkPublisherUpdate) Marshal(io protocol.IO) + type PlayerAction struct + ActionType int32 + BlockFace int32 + BlockPosition protocol.BlockPos + EntityRuntimeID uint64 + func (*PlayerAction) ID() uint32 + func (pk *PlayerAction) Marshal(io protocol.IO) + type PlayerList struct + ActionType byte + Entries []PlayerListEntry + func (*PlayerList) ID() uint32 + func (pk *PlayerList) Marshal(io protocol.IO) + type PlayerListEntry struct + CapeData []byte + EntityUniqueID int64 + PlatformChatID string + SkinData []byte + SkinGeometry []byte + SkinGeometryName string + SkinID string + UUID uuid.UUID + Username string + XUID string + func (x *PlayerListEntry) Marshal(r protocol.IO) + type PlayerSkin struct + CapeData []byte + NewSkinName string + OldSkinName string + PremiumSkin bool + SkinData []byte + SkinGeometry []byte + SkinGeometryName string + SkinID string + UUID uuid.UUID + func (*PlayerSkin) ID() uint32 + func (pk *PlayerSkin) Marshal(io protocol.IO) + type RequestChunkRadius struct + ChunkRadius int32 + func (*RequestChunkRadius) ID() uint32 + func (pk *RequestChunkRadius) Marshal(io protocol.IO) + type ResourcePackChunkData struct + ChunkIndex uint32 + Data []byte + DataOffset uint64 + UUID string + func (*ResourcePackChunkData) ID() uint32 + func (pk *ResourcePackChunkData) Marshal(io protocol.IO) + type ResourcePackStack struct + BehaviourPacks []protocol.StackResourcePack + Experimental bool + TexturePackRequired bool + TexturePacks []protocol.StackResourcePack + func (*ResourcePackStack) ID() uint32 + func (pk *ResourcePackStack) Marshal(io protocol.IO) + type ResourcePacksInfo struct + BehaviourPacks []legacyprotocol.ResourcePackInfo + HasScripts bool + TexturePackRequired bool + TexturePacks []legacyprotocol.ResourcePackInfo + func (*ResourcePacksInfo) ID() uint32 + func (pk *ResourcePacksInfo) Marshal(io protocol.IO) + type SetActorData struct + EntityMetadata map[uint32]any + EntityRuntimeID uint64 + func (*SetActorData) ID() uint32 + func (pk *SetActorData) Marshal(io protocol.IO) + type SetTitle struct + ActionType int32 + FadeInDuration int32 + FadeOutDuration int32 + RemainDuration int32 + Text string + func (*SetTitle) ID() uint32 + func (pk *SetTitle) Marshal(io protocol.IO) + type StartGame struct + AchievementsDisabled bool + Blocks []legacymappings.BlockEntry + BonusChestEnabled bool + CommandsEnabled bool + ConfirmedPlatformLockedContent bool + DayCycleLockTime int32 + Difficulty int32 + Dimension int32 + EducationFeaturesEnabled bool + EducationMode bool + EnchantmentSeed int32 + EntityRuntimeID uint64 + EntityUniqueID int64 + FromLockedWorldTemplate bool + FromWorldTemplate bool + GameRules map[string]any + Generator int32 + HasLockedBehaviourPack bool + HasLockedTexturePack bool + Items []legacymappings.ItemEntry + LANBroadcastEnabled bool + LevelID string + LightningLevel float32 + MSAGamerTagsOnly bool + MultiPlayerCorrelationID string + MultiPlayerGame bool + OnlySpawnV1Villagers bool + Pitch float32 + PlatformBroadcastMode int32 + PlayerGameMode int32 + PlayerPermissions int32 + PlayerPosition mgl32.Vec3 + PremiumWorldTemplateID string + RainLevel float32 + ServerChunkTickRadius int32 + StartWithMapEnabled bool + TexturePackRequired bool + Time int64 + Trial bool + WorldGameMode int32 + WorldName string + WorldSeed int32 + WorldSpawn protocol.BlockPos + WorldTemplateSettingsLocked bool + XBLBroadcastMode int32 + Yaw float32 + func (*StartGame) ID() uint32 + func (pk *StartGame) Marshal(io protocol.IO) + type StopSound struct + SoundName string + StopAll bool + func (*StopSound) ID() uint32 + func (pk *StopSound) Marshal(io protocol.IO) + type Text struct + Message string + NeedsTranslation bool + Parameters []string + PlatformChatID string + SourceName string + TextType byte + XUID string + func (*Text) ID() uint32 + func (pk *Text) Marshal(io protocol.IO) + type UpdateAttributes struct + Attributes []legacyprotocol.Attribute + EntityRuntimeID uint64 + func (*UpdateAttributes) ID() uint32 + func (pk *UpdateAttributes) Marshal(io protocol.IO)