Documentation
¶
Index ¶
- type Angle
- type AwardStatistic
- type AwardStatistics
- type BlockEntity
- type BlockLightArray
- type BlockPosition
- type Chat
- type ChatClickEvent
- type ChatCommandSignature
- type ChatComponent
- type ChatHoverEvent
- type ChunkPosition
- type ChunkSection
- type CommandNode
- type DirectPalette
- type Hand
- type IndirectPalette
- type Palette
- type PalettedContainerStructure
- type PlayerInfoAction
- type PlayerInfoActionAddPlayer
- type PlayerInfoActionAddPlayerProperty
- type PlayerInfoActionUpdateDisplayName
- type PlayerInfoActionUpdateGameMode
- type PlayerInfoActionUpdateInitializeChat
- type PlayerInfoActionUpdateLatency
- type PlayerInfoActionUpdateListed
- type PublicKey
- type SingleValuedPalette
- type SkyLightArray
- type Slot
- type SuccessProperty
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AwardStatistic ¶
type AwardStatistics ¶
type AwardStatistics []AwardStatistic
type BlockEntity ¶
type BlockLightArray ¶
type BlockLightArray struct {
Data []byte
}
type BlockPosition ¶
type BlockPosition uint64
func NewBlockPosition ¶
func NewBlockPosition(x, y, z int32) BlockPosition
func (BlockPosition) GetChunkPosition ¶ added in v1.0.29
func (p BlockPosition) GetChunkPosition() *ChunkPosition
func (BlockPosition) X ¶
func (p BlockPosition) X() int32
func (BlockPosition) Y ¶
func (p BlockPosition) Y() int32
func (BlockPosition) Z ¶
func (p BlockPosition) Z() int32
type Chat ¶
type Chat struct {
*ChatComponent
Extra []ChatComponent `json:"extra"`
}
type ChatClickEvent ¶
type ChatClickEvent struct {
OpenURL string `json:"open_url"`
OpenFile string `json:"open_file"`
RunCommand string `json:"run_command"`
TwitchUserInfo string `json:"twitch_user_info"`
SuggestCommand string `json:"suggest_command"`
ChangePage string `json:"change_page"`
CopyToClipboard string `json:"copy_to_clipboard"`
}
type ChatCommandSignature ¶
type ChatComponent ¶
type ChatComponent struct {
Text string `json:"text"`
Bold bool `json:"bold"`
Italic bool `json:"italic"`
Underlined bool `json:"underlined"`
Strikethrough bool `json:"strikethrough"`
Obfuscated bool `json:"obfuscated"`
Font string `json:"font"`
Color string `json:"color"`
Insertion string `json:"insertion"`
ClickEvent ChatClickEvent `json:"clickEvent"`
HoverEvent ChatHoverEvent `json:"hoverEvent"`
}
type ChatHoverEvent ¶
type ChunkPosition ¶ added in v1.0.29
type ChunkSection ¶
type ChunkSection struct {
BlockCount uint16
BlockStates PalettedContainerStructure
Biomes PalettedContainerStructure
}
type CommandNode ¶
type CommandNode struct {
Flags byte // TODO: Enum
ChildrenCount primitive.VarInt
Children []primitive.VarInt
RedirectNode *primitive.VarInt
Name *string
ParserID *primitive.VarInt
//Properties *CommandNodeProperties // TODO: Figure out
SuggestionsType *primitive.Identifier
}
CommandNode is a node in a command tree. Refer to https://wiki.vg/Command_Data
type DirectPalette ¶
type DirectPalette struct{}
type IndirectPalette ¶
type Palette ¶
type Palette struct {
SingleValued *SingleValuedPalette
Indirect *IndirectPalette
Direct *DirectPalette
}
type PlayerInfoAction ¶
type PlayerInfoAction struct {
AddPlayer *PlayerInfoActionAddPlayer
InitializeChat *PlayerInfoActionUpdateInitializeChat
UpdateGameMode *PlayerInfoActionUpdateGameMode
UpdateListed *PlayerInfoActionUpdateListed
UpdateLatency *PlayerInfoActionUpdateLatency
UpdateDisplayName *PlayerInfoActionUpdateDisplayName
}
PlayerInfoAction is a player action. Refer to https://wiki.vg/Protocol#Player_Info_Update
type PlayerInfoActionAddPlayer ¶
type PlayerInfoActionAddPlayer struct {
Name string
Properties []PlayerInfoActionAddPlayerProperty
}
type PlayerInfoActionUpdateDisplayName ¶
type PlayerInfoActionUpdateDisplayName struct {
DisplayName *Chat
}
type PlayerInfoActionUpdateListed ¶
type PlayerInfoActionUpdateListed struct {
IsListed bool
}
type PublicKey ¶
type PublicKey struct {
ExpiresAt int64
PublicKeyLength primitive.VarInt
PublicKey []byte
KeySignatureLength primitive.VarInt
KeySignature []byte
}
PublicKey is a struct that represents a public key. Refer to https://wiki.vg/Protocol#Player_Session
type SingleValuedPalette ¶
type SkyLightArray ¶
type SkyLightArray struct {
Data []byte
}
Click to show internal directories.
Click to hide internal directories.