Package com.velocitypowered.api.command
Interface CommandMeta
-
public interface CommandMeta
Contains metadata for aCommand
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
CommandMeta.Builder
Provides a fluent interface to createCommandMeta
s.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<java.lang.String>
getAliases()
Returns a non-empty collection containing the case-insensitive aliases used to execute the command.java.util.Collection<com.mojang.brigadier.tree.CommandNode<CommandSource>>
getHints()
Returns a collection containing command nodes that provide additional argument metadata and tab-complete suggestions.
-
-
-
Method Detail
-
getAliases
java.util.Collection<java.lang.String> getAliases()
Returns a non-empty collection containing the case-insensitive aliases used to execute the command.- Returns:
- the command aliases
-
getHints
java.util.Collection<com.mojang.brigadier.tree.CommandNode<CommandSource>> getHints()
Returns a collection containing command nodes that provide additional argument metadata and tab-complete suggestions. Note someCommand
implementations may not support hinting.- Returns:
- the hinting command nodes
-
-