Package com.velocitypowered.api.command
Interface CommandMeta.Builder
-
- Enclosing interface:
- CommandMeta
public static interface CommandMeta.BuilderProvides a fluent interface to createCommandMetas.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CommandMeta.Builderaliases(String... aliases)Specifies additional aliases that can be used to execute the command.CommandMetabuild()Returns a newly-createdCommandMetabased on the specified parameters.CommandMeta.Builderhint(com.mojang.brigadier.tree.CommandNode<CommandSource> node)Specifies a command node providing additional argument metadata and tab-complete suggestions.CommandMeta.Builderplugin(Object plugin)Specifies the plugin who registers theCommand.
-
-
-
Method Detail
-
aliases
CommandMeta.Builder aliases(String... aliases)
Specifies additional aliases that can be used to execute the command.- Parameters:
aliases- the command aliases- Returns:
- this builder, for chaining
-
hint
CommandMeta.Builder hint(com.mojang.brigadier.tree.CommandNode<CommandSource> node)
Specifies a command node providing additional argument metadata and tab-complete suggestions.- Parameters:
node- the command node- Returns:
- this builder, for chaining
- Throws:
IllegalArgumentException- if the node is executable, i.e. has a non-nullCommand, or has a redirect.
-
plugin
CommandMeta.Builder plugin(Object plugin)
Specifies the plugin who registers theCommand.- Parameters:
plugin- the registering plugin- Returns:
- this builder, for chaining
-
build
CommandMeta build()
Returns a newly-createdCommandMetabased on the specified parameters.- Returns:
- the built
CommandMeta
-
-