Uses of Interface
com.velocitypowered.api.command.CommandSource
Packages that use CommandSource
Package
Description
Provides a command framework.
Provides an interface to interact with the proxy at a low level.
-
Uses of CommandSource in com.velocitypowered.api.command
Methods in com.velocitypowered.api.command that return CommandSourceModifier and TypeMethodDescriptionCommandInvocation.source()Returns the source to execute the command for.Methods in com.velocitypowered.api.command that return types with arguments of type CommandSourceModifier and TypeMethodDescriptionCollection<com.mojang.brigadier.tree.CommandNode<CommandSource>>CommandMeta.getHints()Returns an immutable collection containing command nodes that provide additional argument metadata and tab-complete suggestions.com.mojang.brigadier.tree.LiteralCommandNode<CommandSource>BrigadierCommand.getNode()Returns the literal node for this command.static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSource>BrigadierCommand.literalArgumentBuilder(@NotNull String name) Creates a new LiteralArgumentBuilder of the required name.static <T> com.mojang.brigadier.builder.RequiredArgumentBuilder<CommandSource,T> BrigadierCommand.requiredArgumentBuilder(@NotNull String name, @NotNull com.mojang.brigadier.arguments.ArgumentType<T> argumentType) Creates a new RequiredArgumentBuilder of the required name and type.Methods in com.velocitypowered.api.command with parameters of type CommandSourceModifier and TypeMethodDescriptionCommandManager.executeAsync(CommandSource source, String cmdLine) Attempts to asynchronously execute a command from the givencmdLine.CommandManager.executeImmediatelyAsync(CommandSource source, String cmdLine) Attempts to asynchronously execute a command from the givencmdLinewithout firing aCommandExecuteEvent.booleanCommandManager.hasCommand(String alias, CommandSource source) Returns whether the given alias is registered on this manager and can be used by the givenCommandSource.Method parameters in com.velocitypowered.api.command with type arguments of type CommandSourceModifier and TypeMethodDescriptionCommandMeta.Builder.hint(com.mojang.brigadier.tree.CommandNode<CommandSource> node) Specifies a command node providing additional argument metadata and tab-complete suggestions.Constructor parameters in com.velocitypowered.api.command with type arguments of type CommandSourceModifierConstructorDescriptionBrigadierCommand(@NotNull com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSource> builder) Constructs aBrigadierCommandfrom the node returned by the given builder.BrigadierCommand(@NotNull com.mojang.brigadier.tree.LiteralCommandNode<CommandSource> node) Constructs aBrigadierCommandfrom the given command node. -
Uses of CommandSource in com.velocitypowered.api.event.command
Methods in com.velocitypowered.api.event.command that return CommandSourceModifier and TypeMethodDescriptionCommandExecuteEvent.getCommandSource()Gets the source responsible for the execution of this command.@NotNull CommandSourcePostCommandInvocationEvent.getCommandSource()Get the source of this executed command.Constructors in com.velocitypowered.api.event.command with parameters of type CommandSourceModifierConstructorDescriptionCommandExecuteEvent(CommandSource commandSource, String command) Constructs a CommandExecuteEvent.CommandExecuteEvent(CommandSource commandSource, String command, CommandExecuteEvent.InvocationInfo invocationInfo) Constructs a CommandExecuteEvent.PostCommandInvocationEvent(@NotNull CommandSource commandSource, @NotNull String command, @NotNull CommandResult result) Constructs a PostCommandInvocationEvent. -
Uses of CommandSource in com.velocitypowered.api.proxy
Subinterfaces of CommandSource in com.velocitypowered.api.proxyModifier and TypeInterfaceDescriptioninterfaceIndicates that the executor of the command is the console.interfaceRepresents a player who is connected to the proxy.