Documentation
¶
Index ¶
- type ChangeDifficulty
- type ChangeRecipeBookSettings
- type ChatCommand
- type ChatMessage
- type ChunkBatchReceived
- type ClickContainer
- type ClickContainerButton
- type ClientCommand
- type ClientInformation
- type CloseContainer
- type CommandSuggestionsRequest
- type ConfigurationAcknowledged
- type ConfirmTeleportation
- type EditBook
- type InteractEntity
- type JigsawGenerate
- type KeepAlive
- type LockDifficulty
- type MessageAcknowledgement
- type MoveVehicle
- type PaddleBoat
- type PickItem
- type PlaceRecipe
- type PlayerAbilities
- type PlayerAction
- type PlayerCommand
- type PlayerInput
- type PlayerSession
- type PluginMessage
- type Pong
- type ProgramCommandBlock
- type ProgramCommandBlockMinecart
- type ProgramJigsawBlock
- type ProgramStructureBlock
- type QueryBlockEntityTag
- type QueryEntityTag
- type RenameItem
- type ResourcePack
- type SeenAdvancements
- type SelectTrade
- type SetBeaconEffect
- type SetCreativeModeSlot
- type SetHeldItem
- type SetPlayerOnGround
- type SetPlayerPosition
- type SetPlayerPositionAndRotation
- type SetPlayerRotation
- type SetSeenRecipe
- type SwingArm
- type TeleportToEntity
- type UpdateSign
- type UseItem
- type UseItemOn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangeDifficulty ¶
type ChangeDifficulty struct {
NewDifficulty byte // TODO: Enum
}
func (*ChangeDifficulty) PacketType ¶ added in v1.0.36
func (*ChangeDifficulty) PacketType() string
type ChangeRecipeBookSettings ¶
type ChangeRecipeBookSettings struct {
BookID primitive.VarInt // TODO: Enum
BookOpen bool
FilterActive bool
}
func (*ChangeRecipeBookSettings) PacketType ¶ added in v1.0.36
func (*ChangeRecipeBookSettings) PacketType() string
type ChatCommand ¶
type ChatCommand struct {
Command string
Timestamp int64
Salt int64
SignatureCount primitive.VarInt
Signatures []common.ChatCommandSignature
MessageCount primitive.VarInt
Acknowledged primitive.BitSet
}
func (*ChatCommand) PacketType ¶ added in v1.0.36
func (*ChatCommand) PacketType() string
type ChatMessage ¶
type ChatMessage struct {
Message string
Timestamp int64
Salt int64
HasSignature bool
Signature []byte
MessageCount primitive.VarInt
Acknowledged primitive.BitSet
}
func (*ChatMessage) PacketType ¶ added in v1.0.36
func (*ChatMessage) PacketType() string
type ChunkBatchReceived ¶ added in v1.0.31
type ChunkBatchReceived struct {
ChunksPerTick float32
}
func (*ChunkBatchReceived) PacketType ¶ added in v1.0.36
func (*ChunkBatchReceived) PacketType() string
type ClickContainer ¶
type ClickContainer struct {
WindowID uint8
StateID primitive.VarInt
Slot int16
Button byte
Mode primitive.VarInt // TODO: Enum
SlotCount primitive.VarInt
Slots []common.Slot
CarriedItem common.Slot
}
func (*ClickContainer) PacketType ¶ added in v1.0.36
func (*ClickContainer) PacketType() string
type ClickContainerButton ¶
func (*ClickContainerButton) PacketType ¶ added in v1.0.36
func (*ClickContainerButton) PacketType() string
type ClientCommand ¶
func (*ClientCommand) PacketType ¶ added in v1.0.36
func (*ClientCommand) PacketType() string
type ClientInformation ¶
type ClientInformation struct {
Locale string
ViewDistance byte
ChatMode primitive.VarInt // TODO: Enum
ChatColors bool
DisplayedSkinParts uint8 // TODO: Enum
MainHand common.Hand
EnableTextFiltering bool
AllowServerListings bool
}
func (*ClientInformation) PacketType ¶ added in v1.0.36
func (*ClientInformation) PacketType() string
type CloseContainer ¶
type CloseContainer struct {
WindowID uint8
}
func (*CloseContainer) PacketType ¶ added in v1.0.36
func (*CloseContainer) PacketType() string
type CommandSuggestionsRequest ¶
func (*CommandSuggestionsRequest) PacketType ¶ added in v1.0.36
func (*CommandSuggestionsRequest) PacketType() string
type ConfigurationAcknowledged ¶ added in v1.0.31
type ConfigurationAcknowledged struct{}
func (*ConfigurationAcknowledged) PacketType ¶ added in v1.0.36
func (*ConfigurationAcknowledged) PacketType() string
type ConfirmTeleportation ¶
func (*ConfirmTeleportation) PacketType ¶ added in v1.0.36
func (*ConfirmTeleportation) PacketType() string
type EditBook ¶
type EditBook struct {
Slot primitive.VarInt
Count primitive.VarInt
Entries []string
HasTitle bool
Title *string
}
func (*EditBook) PacketType ¶ added in v1.0.36
type InteractEntity ¶
type InteractEntity struct {
EntityID primitive.VarInt
Type primitive.VarInt // TODO: Enum
TargetX float32
TargetY float32
TargetZ float32
Hand common.Hand
Sneaking bool
}
func (*InteractEntity) PacketType ¶ added in v1.0.36
func (*InteractEntity) PacketType() string
type JigsawGenerate ¶
type JigsawGenerate struct {
Location common.BlockPosition
Levels primitive.VarInt
KeepJigsaws bool
}
func (*JigsawGenerate) PacketType ¶ added in v1.0.36
func (*JigsawGenerate) PacketType() string
type KeepAlive ¶
type KeepAlive struct {
KeepAliveID int64
}
func (*KeepAlive) PacketType ¶ added in v1.0.36
type LockDifficulty ¶
type LockDifficulty struct {
Locked bool
}
func (*LockDifficulty) PacketType ¶ added in v1.0.36
func (*LockDifficulty) PacketType() string
type MessageAcknowledgement ¶
func (*MessageAcknowledgement) PacketType ¶ added in v1.0.36
func (*MessageAcknowledgement) PacketType() string
type MoveVehicle ¶
func (*MoveVehicle) PacketType ¶ added in v1.0.36
func (*MoveVehicle) PacketType() string
type PaddleBoat ¶
func (*PaddleBoat) PacketType ¶ added in v1.0.36
func (*PaddleBoat) PacketType() string
type PickItem ¶
func (*PickItem) PacketType ¶ added in v1.0.36
type PlaceRecipe ¶
type PlaceRecipe struct {
WindowID uint8
Recipe primitive.Identifier
MakeAll bool
}
func (*PlaceRecipe) PacketType ¶ added in v1.0.36
func (*PlaceRecipe) PacketType() string
type PlayerAbilities ¶
type PlayerAbilities struct {
Flags uint8 // TODO: Enum
}
func (*PlayerAbilities) PacketType ¶ added in v1.0.36
func (*PlayerAbilities) PacketType() string
type PlayerAction ¶
type PlayerAction struct {
Status primitive.VarInt // TODO: Enum
Location common.BlockPosition
Face byte // TODO: Enum
Sequence primitive.VarInt
}
func (*PlayerAction) PacketType ¶ added in v1.0.36
func (*PlayerAction) PacketType() string
type PlayerCommand ¶
type PlayerCommand struct {
EntityID primitive.VarInt
ActionID primitive.VarInt // TODO: Enum
JumpBoost primitive.VarInt
}
func (*PlayerCommand) PacketType ¶ added in v1.0.36
func (*PlayerCommand) PacketType() string
type PlayerInput ¶
func (*PlayerInput) PacketType ¶ added in v1.0.36
func (*PlayerInput) PacketType() string
type PlayerSession ¶
func (*PlayerSession) PacketType ¶ added in v1.0.36
func (*PlayerSession) PacketType() string
type PluginMessage ¶
type PluginMessage struct {
Channel primitive.Identifier
Data []byte
}
func (*PluginMessage) PacketType ¶ added in v1.0.36
func (*PluginMessage) PacketType() string
type ProgramCommandBlock ¶
type ProgramCommandBlock struct {
Location common.BlockPosition
Command string
Mode primitive.VarInt // TODO: Enum
Flags byte // TODO: Enum
}
func (*ProgramCommandBlock) PacketType ¶ added in v1.0.36
func (*ProgramCommandBlock) PacketType() string
type ProgramCommandBlockMinecart ¶
type ProgramCommandBlockMinecart struct {
EntityID primitive.VarInt
Command string
TrackOutput bool
}
func (*ProgramCommandBlockMinecart) PacketType ¶ added in v1.0.36
func (*ProgramCommandBlockMinecart) PacketType() string
type ProgramJigsawBlock ¶
type ProgramJigsawBlock struct {
Location common.BlockPosition
Name primitive.Identifier
Target primitive.Identifier
Pool primitive.Identifier
FinalState string
JointType string
}
func (*ProgramJigsawBlock) PacketType ¶ added in v1.0.36
func (*ProgramJigsawBlock) PacketType() string
type ProgramStructureBlock ¶
type ProgramStructureBlock struct {
Location common.BlockPosition
Action primitive.VarInt // TODO: Enum
Mode primitive.VarInt // TODO: Enum
Name string
OffsetX byte
OffsetY byte
OffsetZ byte
SizeX byte
SizeY byte
SizeZ byte
Mirror primitive.VarInt // TODO: Enum
Rotation primitive.VarInt // TODO: Enum
Metadata string
Integrity float32
Seed primitive.VarLong
Flags byte // TODO: Enum
}
func (*ProgramStructureBlock) PacketType ¶ added in v1.0.36
func (*ProgramStructureBlock) PacketType() string
type QueryBlockEntityTag ¶
type QueryBlockEntityTag struct {
TransactionID primitive.VarInt
Location common.BlockPosition
}
func (*QueryBlockEntityTag) PacketType ¶ added in v1.0.36
func (*QueryBlockEntityTag) PacketType() string
type QueryEntityTag ¶
func (*QueryEntityTag) PacketType ¶ added in v1.0.36
func (*QueryEntityTag) PacketType() string
type RenameItem ¶
type RenameItem struct {
ItemName string
}
func (*RenameItem) PacketType ¶ added in v1.0.36
func (*RenameItem) PacketType() string
type ResourcePack ¶
func (*ResourcePack) PacketType ¶ added in v1.0.36
func (*ResourcePack) PacketType() string
type SeenAdvancements ¶
type SeenAdvancements struct {
Action primitive.VarInt // TODO: Enum
TabID *primitive.Identifier
}
func (*SeenAdvancements) PacketType ¶ added in v1.0.36
func (*SeenAdvancements) PacketType() string
type SelectTrade ¶
func (*SelectTrade) PacketType ¶ added in v1.0.36
func (*SelectTrade) PacketType() string
type SetBeaconEffect ¶
type SetBeaconEffect struct {
HasPrimaryEffect bool
PrimaryEffect primitive.VarInt // TODO: Enum
HasSecondaryEffect bool
SecondaryEffect primitive.VarInt // TODO: Enum
}
func (*SetBeaconEffect) PacketType ¶ added in v1.0.36
func (*SetBeaconEffect) PacketType() string
type SetCreativeModeSlot ¶
func (*SetCreativeModeSlot) PacketType ¶ added in v1.0.36
func (*SetCreativeModeSlot) PacketType() string
type SetHeldItem ¶
type SetHeldItem struct {
Slot int16
}
func (*SetHeldItem) PacketType ¶ added in v1.0.36
func (*SetHeldItem) PacketType() string
type SetPlayerOnGround ¶
type SetPlayerOnGround struct {
OnGround bool
}
func (*SetPlayerOnGround) PacketType ¶ added in v1.0.36
func (*SetPlayerOnGround) PacketType() string
type SetPlayerPosition ¶
type SetPlayerPosition struct {
X float64
Y float64
Z float64
Yaw float32
Pitch float32
OnGround bool
}
func (*SetPlayerPosition) PacketType ¶ added in v1.0.36
func (*SetPlayerPosition) PacketType() string
type SetPlayerPositionAndRotation ¶
type SetPlayerPositionAndRotation struct {
X float64
FeetY float64
Z float64
Yaw float32
Pitch float32
OnGround bool
}
func (*SetPlayerPositionAndRotation) PacketType ¶ added in v1.0.36
func (*SetPlayerPositionAndRotation) PacketType() string
type SetPlayerRotation ¶
func (*SetPlayerRotation) PacketType ¶ added in v1.0.36
func (*SetPlayerRotation) PacketType() string
type SetSeenRecipe ¶
type SetSeenRecipe struct {
RecipeID primitive.Identifier
}
func (*SetSeenRecipe) PacketType ¶ added in v1.0.36
func (*SetSeenRecipe) PacketType() string
type SwingArm ¶
func (*SwingArm) PacketType ¶ added in v1.0.36
type TeleportToEntity ¶
func (*TeleportToEntity) PacketType ¶ added in v1.0.36
func (*TeleportToEntity) PacketType() string
type UpdateSign ¶
type UpdateSign struct {
Location common.BlockPosition
Line1 string
Line2 string
Line3 string
Line4 string
}
func (*UpdateSign) PacketType ¶ added in v1.0.36
func (*UpdateSign) PacketType() string
type UseItem ¶
func (*UseItem) PacketType ¶ added in v1.0.36
Click to show internal directories.
Click to hide internal directories.