Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct { Flags int8 // Flags for the node, contains type, and other configuration Children []int32 // Other command nodes that make up the rest of the commmand RedirectNode int32 // Optional, only if 0x08 of flags is set Name string // Optional, only for ARGUMENT and LITERAL nodes Parser string // Optional, only for ARGUMENT nodes Properties []interface{} // Currently unimplemented, only for ARGUMENT nodes SuggestionsType string // Optional, only if 0x10 of flags is set }
Node is a brigadier structure that defines a notchian command and how it connects to other commands. A node can be one of three types, ROOT, LITERAL, or ARGUMENT, and can be serialized as a go-mc packet. A Node's zero value is a ROOT node, with no options set. A reference for a node's structure can be found here: https://wiki.vg/Command_Data
Click to show internal directories.
Click to hide internal directories.