Package dev.jorel.commandapi
Class CommandAPIVelocity
java.lang.Object
dev.jorel.commandapi.CommandAPIVelocity
- All Implemented Interfaces:
CommandAPIPlatform<Argument<?>,com.velocitypowered.api.command.CommandSource, com.velocitypowered.api.command.CommandSource>
public class CommandAPIVelocity
extends Object
implements CommandAPIPlatform<Argument<?>,com.velocitypowered.api.command.CommandSource,com.velocitypowered.api.command.CommandSource>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateDispatcherFile(File file, com.mojang.brigadier.CommandDispatcher<com.velocitypowered.api.command.CommandSource> brigadierDispatcher) static CommandAPIVelocityget()com.mojang.brigadier.CommandDispatcher<com.velocitypowered.api.command.CommandSource> com.velocitypowered.api.command.CommandSourcegetBrigadierSourceFromCommandSender(AbstractCommandSender<? extends com.velocitypowered.api.command.CommandSource> sender) VelocityCommandSender<? extends com.velocitypowered.api.command.CommandSource> getCommandSenderFromCommandSource(com.velocitypowered.api.command.CommandSource cs) static InternalVelocityConfigVelocityCommandSender<? extends com.velocitypowered.api.command.CommandSource> getSenderForCommand(com.mojang.brigadier.context.CommandContext<com.velocitypowered.api.command.CommandSource> cmdCtx, boolean forceNative) com.mojang.brigadier.suggestion.SuggestionProvider<com.velocitypowered.api.command.CommandSource> getSuggestionProvider(SuggestionProviders suggestionProvider) AbstractCommandAPICommand<?, Argument<?>, com.velocitypowered.api.command.CommandSource> newConcreteCommandAPICommand(dev.jorel.commandapi.CommandMetaData<com.velocitypowered.api.command.CommandSource> meta) newConcreteLiteralArgument(String nodeName, String literal) newConcreteMultiLiteralArgument(String nodeName, String[] literals) voidvoidonEnable()voidonLoad()voidpostCommandRegistration(RegisteredCommand registeredCommand, com.mojang.brigadier.tree.LiteralCommandNode<com.velocitypowered.api.command.CommandSource> resultantNode, List<com.mojang.brigadier.tree.LiteralCommandNode<com.velocitypowered.api.command.CommandSource>> aliasNodes) voidpreCommandRegistration(String commandName) com.mojang.brigadier.tree.LiteralCommandNode<com.velocitypowered.api.command.CommandSource> registerCommandNode(com.mojang.brigadier.builder.LiteralArgumentBuilder<com.velocitypowered.api.command.CommandSource> node, String namespace) voidregisterPermission(String string) voidvoidunregister(String commandName, boolean unregisterNamespaces) voidupdateRequirements(AbstractPlayer<?> playerWrapper) VelocityCommandSender<? extends com.velocitypowered.api.command.CommandSource> wrapCommandSender(com.velocitypowered.api.command.CommandSource commandSource)
-
Constructor Details
-
CommandAPIVelocity
-
-
Method Details
-
get
-
getConfiguration
-
onLoad
public void onLoad()- Specified by:
onLoadin interfaceCommandAPIPlatform<Argument<?>,com.velocitypowered.api.command.CommandSource, com.velocitypowered.api.command.CommandSource>
-
onEnable
public void onEnable()- Specified by:
onEnablein interfaceCommandAPIPlatform<Argument<?>,com.velocitypowered.api.command.CommandSource, com.velocitypowered.api.command.CommandSource>
-
onDisable
public void onDisable()- Specified by:
onDisablein interfaceCommandAPIPlatform<Argument<?>,com.velocitypowered.api.command.CommandSource, com.velocitypowered.api.command.CommandSource>
-
registerPermission
- Specified by:
registerPermissionin interfaceCommandAPIPlatform<Argument<?>,com.velocitypowered.api.command.CommandSource, com.velocitypowered.api.command.CommandSource>
-
unregister
- Specified by:
unregisterin interfaceCommandAPIPlatform<Argument<?>,com.velocitypowered.api.command.CommandSource, com.velocitypowered.api.command.CommandSource>
-
setupMessenger
- Specified by:
setupMessengerin interfaceCommandAPIPlatform<Argument<?>,com.velocitypowered.api.command.CommandSource, com.velocitypowered.api.command.CommandSource>
-
getMessenger
-
getBrigadierDispatcher
public com.mojang.brigadier.CommandDispatcher<com.velocitypowered.api.command.CommandSource> getBrigadierDispatcher()- Specified by:
getBrigadierDispatcherin interfaceCommandAPIPlatform<Argument<?>,com.velocitypowered.api.command.CommandSource, com.velocitypowered.api.command.CommandSource>
-
createDispatcherFile
public void createDispatcherFile(File file, com.mojang.brigadier.CommandDispatcher<com.velocitypowered.api.command.CommandSource> brigadierDispatcher) throws IOException - Specified by:
createDispatcherFilein interfaceCommandAPIPlatform<Argument<?>,com.velocitypowered.api.command.CommandSource, com.velocitypowered.api.command.CommandSource> - Throws:
IOException
-
getLogger
- Specified by:
getLoggerin interfaceCommandAPIPlatform<Argument<?>,com.velocitypowered.api.command.CommandSource, com.velocitypowered.api.command.CommandSource>
-
getSenderForCommand
public VelocityCommandSender<? extends com.velocitypowered.api.command.CommandSource> getSenderForCommand(com.mojang.brigadier.context.CommandContext<com.velocitypowered.api.command.CommandSource> cmdCtx, boolean forceNative) - Specified by:
getSenderForCommandin interfaceCommandAPIPlatform<Argument<?>,com.velocitypowered.api.command.CommandSource, com.velocitypowered.api.command.CommandSource>
-
getCommandSenderFromCommandSource
public VelocityCommandSender<? extends com.velocitypowered.api.command.CommandSource> getCommandSenderFromCommandSource(com.velocitypowered.api.command.CommandSource cs) - Specified by:
getCommandSenderFromCommandSourcein interfaceCommandAPIPlatform<Argument<?>,com.velocitypowered.api.command.CommandSource, com.velocitypowered.api.command.CommandSource>
-
wrapCommandSender
public VelocityCommandSender<? extends com.velocitypowered.api.command.CommandSource> wrapCommandSender(com.velocitypowered.api.command.CommandSource commandSource) - Specified by:
wrapCommandSenderin interfaceCommandAPIPlatform<Argument<?>,com.velocitypowered.api.command.CommandSource, com.velocitypowered.api.command.CommandSource>
-
getBrigadierSourceFromCommandSender
public com.velocitypowered.api.command.CommandSource getBrigadierSourceFromCommandSender(AbstractCommandSender<? extends com.velocitypowered.api.command.CommandSource> sender) - Specified by:
getBrigadierSourceFromCommandSenderin interfaceCommandAPIPlatform<Argument<?>,com.velocitypowered.api.command.CommandSource, com.velocitypowered.api.command.CommandSource>
-
getSuggestionProvider
public com.mojang.brigadier.suggestion.SuggestionProvider<com.velocitypowered.api.command.CommandSource> getSuggestionProvider(SuggestionProviders suggestionProvider) - Specified by:
getSuggestionProviderin interfaceCommandAPIPlatform<Argument<?>,com.velocitypowered.api.command.CommandSource, com.velocitypowered.api.command.CommandSource>
-
preCommandRegistration
- Specified by:
preCommandRegistrationin interfaceCommandAPIPlatform<Argument<?>,com.velocitypowered.api.command.CommandSource, com.velocitypowered.api.command.CommandSource>
-
postCommandRegistration
public void postCommandRegistration(RegisteredCommand registeredCommand, com.mojang.brigadier.tree.LiteralCommandNode<com.velocitypowered.api.command.CommandSource> resultantNode, List<com.mojang.brigadier.tree.LiteralCommandNode<com.velocitypowered.api.command.CommandSource>> aliasNodes) - Specified by:
postCommandRegistrationin interfaceCommandAPIPlatform<Argument<?>,com.velocitypowered.api.command.CommandSource, com.velocitypowered.api.command.CommandSource>
-
registerCommandNode
public com.mojang.brigadier.tree.LiteralCommandNode<com.velocitypowered.api.command.CommandSource> registerCommandNode(com.mojang.brigadier.builder.LiteralArgumentBuilder<com.velocitypowered.api.command.CommandSource> node, String namespace) - Specified by:
registerCommandNodein interfaceCommandAPIPlatform<Argument<?>,com.velocitypowered.api.command.CommandSource, com.velocitypowered.api.command.CommandSource>
-
reloadDataPacks
public void reloadDataPacks()- Specified by:
reloadDataPacksin interfaceCommandAPIPlatform<Argument<?>,com.velocitypowered.api.command.CommandSource, com.velocitypowered.api.command.CommandSource>
-
updateRequirements
- Specified by:
updateRequirementsin interfaceCommandAPIPlatform<Argument<?>,com.velocitypowered.api.command.CommandSource, com.velocitypowered.api.command.CommandSource>
-
newConcreteMultiLiteralArgument
- Specified by:
newConcreteMultiLiteralArgumentin interfaceCommandAPIPlatform<Argument<?>,com.velocitypowered.api.command.CommandSource, com.velocitypowered.api.command.CommandSource>
-
newConcreteLiteralArgument
- Specified by:
newConcreteLiteralArgumentin interfaceCommandAPIPlatform<Argument<?>,com.velocitypowered.api.command.CommandSource, com.velocitypowered.api.command.CommandSource>
-
newConcreteCommandAPICommand
public AbstractCommandAPICommand<?,Argument<?>, newConcreteCommandAPICommandcom.velocitypowered.api.command.CommandSource> (dev.jorel.commandapi.CommandMetaData<com.velocitypowered.api.command.CommandSource> meta) - Specified by:
newConcreteCommandAPICommandin interfaceCommandAPIPlatform<Argument<?>,com.velocitypowered.api.command.CommandSource, com.velocitypowered.api.command.CommandSource>
-