play

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 28, 2023 License: MIT Imports: 2 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
}

type ChangeRecipeBookSettings

type ChangeRecipeBookSettings struct {
	BookID       common.VarInt // TODO: Enum
	BookOpen     bool
	FilterActive bool
}

type ChatCommand

type ChatCommand struct {
	Command        string
	Timestamp      int64
	Salt           int64
	SignatureCount common.VarInt
	Signatures     []common.ChatCommandSignature
	MessageCount   common.VarInt
	Acknowledged   common.BitSet
}

type ChatMessage

type ChatMessage struct {
	Message      string
	Timestamp    int64
	Salt         int64
	HasSignature bool
	Signature    []byte
	MessageCount common.VarInt
	Acknowledged common.BitSet
}

type ClickContainer

type ClickContainer struct {
	WindowID    uint8
	StateID     common.VarInt
	Slot        int16
	Button      byte
	Mode        common.VarInt // TODO: Enum
	SlotCount   common.VarInt
	Slots       []common.Slot
	CarriedItem common.Slot
}

type ClickContainerButton

type ClickContainerButton struct {
	WindowID byte
	ButtonID byte
}

type ClientCommand

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

type ClientInformation

type ClientInformation struct {
	Locale              string
	ViewDistance        byte
	ChatMode            common.VarInt // TODO: Enum
	ChatColors          bool
	DisplayedSkinParts  uint8 // TODO: Enum
	MainHand            common.Hand
	EnableTextFiltering bool
	AllowServerListings bool
}

type CloseContainer

type CloseContainer struct {
	WindowID uint8
}

type CommandSuggestionsRequest

type CommandSuggestionsRequest struct {
	TransactionID common.VarInt
	Text          string
}

type ConfirmTeleportation

type ConfirmTeleportation struct {
	TeleportID common.VarInt
}

type EditBook

type EditBook struct {
	Slot     common.VarInt
	Count    common.VarInt
	Entries  []string
	HasTitle bool
	Title    *string
}

type InteractEntity

type InteractEntity struct {
	EntityID common.VarInt
	Type     common.VarInt // TODO: Enum
	TargetX  float32
	TargetY  float32
	TargetZ  float32
	Hand     common.Hand
	Sneaking bool
}

type JigsawGenerate

type JigsawGenerate struct {
	Location    common.BlockPosition
	Levels      common.VarInt
	KeepJigsaws bool
}

type KeepAlive

type KeepAlive struct {
	KeepAliveID int64
}

type LockDifficulty

type LockDifficulty struct {
	Locked bool
}

type MessageAcknowledgement

type MessageAcknowledgement struct {
	MessageCount common.VarInt
}

type MoveVehicle

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

type PaddleBoat

type PaddleBoat struct {
	LeftPaddleTurning  bool
	RightPaddleTurning bool
}

type PickItem

type PickItem struct {
	Slot common.VarInt
}

type PlaceRecipe

type PlaceRecipe struct {
	WindowID uint8
	Recipe   common.Identifier
	MakeAll  bool
}

type PlayerAbilities

type PlayerAbilities struct {
	Flags uint8 // TODO: Enum
}

type PlayerAction

type PlayerAction struct {
	Status   common.VarInt // TODO: Enum
	Location common.BlockPosition
	Face     byte // TODO: Enum
	Sequence common.VarInt
}

type PlayerCommand

type PlayerCommand struct {
	EntityID  common.VarInt
	ActionID  common.VarInt // TODO: Enum
	JumpBoost common.VarInt
}

type PlayerInput

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

type PlayerSession

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

type PluginMessage

type PluginMessage struct {
	Channel common.Identifier
	Data    []byte
}

type Pong

type Pong struct {
	ID int32
}

type ProgramCommandBlock

type ProgramCommandBlock struct {
	Location common.BlockPosition
	Command  string
	Mode     common.VarInt // TODO: Enum
	Flags    byte          // TODO: Enum
}

type ProgramCommandBlockMinecart

type ProgramCommandBlockMinecart struct {
	EntityID    common.VarInt
	Command     string
	TrackOutput bool
}

type ProgramJigsawBlock

type ProgramJigsawBlock struct {
	Location   common.BlockPosition
	Name       common.Identifier
	Target     common.Identifier
	Pool       common.Identifier
	FinalState string
	JointType  string
}

type ProgramStructureBlock

type ProgramStructureBlock struct {
	Location  common.BlockPosition
	Action    common.VarInt // TODO: Enum
	Mode      common.VarInt // TODO: Enum
	Name      string
	OffsetX   byte
	OffsetY   byte
	OffsetZ   byte
	SizeX     byte
	SizeY     byte
	SizeZ     byte
	Mirror    common.VarInt // TODO: Enum
	Rotation  common.VarInt // TODO: Enum
	Metadata  string
	Integrity float32
	Seed      common.VarLong
	Flags     byte // TODO: Enum
}

type QueryBlockEntityTag

type QueryBlockEntityTag struct {
	TransactionID common.VarInt
	Location      common.BlockPosition
}

type QueryEntityTag

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

type RenameItem

type RenameItem struct {
	ItemName string
}

type ResourcePack

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

type SeenAdvancements

type SeenAdvancements struct {
	Action common.VarInt // TODO: Enum
	TabID  *common.Identifier
}

type SelectTrade

type SelectTrade struct {
	SelectedSlot common.VarInt
}

type SetBeaconEffect

type SetBeaconEffect struct {
	HasPrimaryEffect   bool
	PrimaryEffect      common.VarInt // TODO: Enum
	HasSecondaryEffect bool
	SecondaryEffect    common.VarInt // TODO: Enum
}

type SetCreativeModeSlot

type SetCreativeModeSlot struct {
	Slot        int16
	ClickedItem common.Slot
}

type SetHeldItem

type SetHeldItem struct {
	Slot int16
}

type SetPlayerOnGround

type SetPlayerOnGround struct {
	OnGround bool
}

type SetPlayerPosition

type SetPlayerPosition struct {
	X        float64
	Y        float64
	Z        float64
	Yaw      float32
	Pitch    float32
	OnGround bool
}

type SetPlayerPositionAndRotation

type SetPlayerPositionAndRotation struct {
	X        float64
	FeetY    float64
	Z        float64
	Yaw      float32
	Pitch    float32
	OnGround bool
}

type SetPlayerRotation

type SetPlayerRotation struct {
	Yaw      float32
	Pitch    float32
	OnGround bool
}

type SetSeenRecipe

type SetSeenRecipe struct {
	RecipeID common.Identifier
}

type SwingArm

type SwingArm struct {
	Hand common.Hand
}

type TeleportToEntity

type TeleportToEntity struct {
	TargetPlayer uuid.UUID
}

type UpdateSign

type UpdateSign struct {
	Location common.BlockPosition
	Line1    string
	Line2    string
	Line3    string
	Line4    string
}

type UseItem

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

type UseItemOn

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

Jump to

Keyboard shortcuts

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