play

package
v1.0.41 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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

type ClickContainerButton struct {
	WindowID byte
	ButtonID byte
}

func (*ClickContainerButton) PacketType added in v1.0.36

func (*ClickContainerButton) PacketType() string

type ClientCommand

type ClientCommand struct {
	ActionID primitive.VarInt // TODO: Enum
}

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

type CommandSuggestionsRequest struct {
	TransactionID primitive.VarInt
	Text          string
}

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

type ConfirmTeleportation struct {
	TeleportID primitive.VarInt
}

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

func (*EditBook) PacketType() string

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

func (*KeepAlive) PacketType() string

type LockDifficulty

type LockDifficulty struct {
	Locked bool
}

func (*LockDifficulty) PacketType added in v1.0.36

func (*LockDifficulty) PacketType() string

type MessageAcknowledgement

type MessageAcknowledgement struct {
	MessageCount primitive.VarInt
}

func (*MessageAcknowledgement) PacketType added in v1.0.36

func (*MessageAcknowledgement) PacketType() string

type MoveVehicle

type MoveVehicle struct {
	X     float64
	Y     float64
	Z     float64
	Yaw   float32
	Pitch float32
}

func (*MoveVehicle) PacketType added in v1.0.36

func (*MoveVehicle) PacketType() string

type PaddleBoat

type PaddleBoat struct {
	LeftPaddleTurning  bool
	RightPaddleTurning bool
}

func (*PaddleBoat) PacketType added in v1.0.36

func (*PaddleBoat) PacketType() string

type PickItem

type PickItem struct {
	Slot primitive.VarInt
}

func (*PickItem) PacketType added in v1.0.36

func (*PickItem) PacketType() string

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

type PlayerInput struct {
	Sideways float32
	Forward  float32
	Flags    uint8 // TODO: Enum
}

func (*PlayerInput) PacketType added in v1.0.36

func (*PlayerInput) PacketType() string

type PlayerSession

type PlayerSession struct {
	SessionID uuid.UUID
	PublicKey common.PublicKey
}

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 Pong

type Pong struct {
	ID int32
}

func (*Pong) PacketType added in v1.0.36

func (*Pong) 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

type QueryEntityTag struct {
	TransactionID primitive.VarInt
	EntityID      primitive.VarInt
}

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

type ResourcePack struct {
	Result primitive.VarInt // TODO: Enum
}

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

type SelectTrade struct {
	SelectedSlot primitive.VarInt
}

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

type SetCreativeModeSlot struct {
	Slot        int16
	ClickedItem common.Slot
}

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

type SetPlayerRotation struct {
	Yaw      float32
	Pitch    float32
	OnGround bool
}

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

type SwingArm struct {
	Hand common.Hand
}

func (*SwingArm) PacketType added in v1.0.36

func (*SwingArm) PacketType() string

type TeleportToEntity

type TeleportToEntity struct {
	TargetPlayer uuid.UUID
}

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

type UseItem struct {
	Hand     common.Hand
	Sequence primitive.VarInt
}

func (*UseItem) PacketType added in v1.0.36

func (*UseItem) PacketType() string

type UseItemOn

type UseItemOn struct {
	Hand        common.Hand
	Location    common.BlockPosition
	Face        primitive.VarInt // TODO: Enum
	CursorX     float32
	CursorY     float32
	CursorZ     float32
	InsideBlock bool
	Sequence    primitive.VarInt
}

func (*UseItemOn) PacketType added in v1.0.36

func (*UseItemOn) PacketType() string

Jump to

Keyboard shortcuts

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