Documentation
¶
Overview ¶
Package command provides utilities for handling and registering commands
Index ¶
- Constants
- type Arguments
- type Caller
- type Command
- type CommandCallContext
- type Manager
- type Node
- func NewBoolArgument(name string, nodes ...Node) Node
- func NewIntegerArgument(name string, min, max *int32, nodes ...Node) Node
- func NewLiteral(name string, nodes ...Node) Node
- func NewNode(n play.Node, children ...Node) Node
- func NewStringArgument(name string, typ int, nodes ...Node) Node
- func NewTimeArgument(name string, min int32, nodes ...Node) Node
Constants ¶
View Source
const ( Bool = iota Float Double Integer Long String Entity GameProfile BlockPos ColumnPos Vec3 Vec2 BlockState BlockPredicate ItemStack ItemPredicate Color Component Style Message NBT NBTTag NBTPath Objective ObjectiveCriteria Operation Particle Angle Rotation ScoreboardSlot ScoreHolder Swizzle Team ItemSlot ResourceLocation Function EntityAnchor IntRange FloatRange Dimension Gamemode Time ResourceOrTag ResourceOrTagKey Resource ResourceKey TemplateMirror TemplateRotation Heightmap UUID )
View Source
const ( StringSingleWord = iota StringQuotablePhrase StringGreedyPhrase )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Caller ¶
type Caller interface {
SystemMessage(text.TextComponent) error
}
type Command ¶
type Command struct { Node Node Aliases []string Namespace string Callback func(CommandCallContext) SuggestionCallback func() }
type CommandCallContext ¶
func (CommandCallContext) Reply ¶
func (c CommandCallContext) Reply(msg text.TextComponent) error
Click to show internal directories.
Click to hide internal directories.