Class ArcCommandManager<C>
java.lang.Object
org.incendo.cloud.CommandManager<C>
com.xpdustry.distributor.command.cloud.ArcCommandManager<C>
- All Implemented Interfaces:
com.xpdustry.distributor.plugin.PluginAware,org.incendo.cloud.CommandBuilderSource<C>,org.incendo.cloud.SenderMapperHolder<com.xpdustry.distributor.command.CommandSender,,C> org.incendo.cloud.state.Stateful<org.incendo.cloud.state.RegistrationState>
public class ArcCommandManager<C>
extends org.incendo.cloud.CommandManager<C>
implements com.xpdustry.distributor.plugin.PluginAware, org.incendo.cloud.SenderMapperHolder<com.xpdustry.distributor.command.CommandSender,C>
-
Constructor Summary
ConstructorsConstructorDescriptionArcCommandManager(com.xpdustry.distributor.plugin.MindustryPlugin plugin, org.incendo.cloud.execution.ExecutionCoordinator<C> coordinator, org.incendo.cloud.SenderMapper<com.xpdustry.distributor.command.CommandSender, C> senderMapper, com.xpdustry.distributor.command.DescriptionMapper<org.incendo.cloud.description.Description> descriptionMapper) -
Method Summary
Modifier and TypeMethodDescriptionfinal com.xpdustry.distributor.command.DescriptionMapper<org.incendo.cloud.description.Description>Returns theDescriptionMapperof this command manager.final com.xpdustry.distributor.plugin.MindustryPluginbooleanhasPermission(@NonNull C sender, String permission) final voidinitialize(arc.util.CommandHandler handler) Initializes the command manager with it's backing command handler.protected voidfinal @NonNull org.incendo.cloud.SenderMapper<com.xpdustry.distributor.command.CommandSender,C> Methods inherited from class org.incendo.cloud.CommandManager
appendSuggestionMapper, capabilities, captionFormatter, captionFormatter, captionRegistry, captionRegistry, command, command, command, commandExecutor, commandRegistrationHandler, commandRegistrationHandler, commands, commandSyntaxFormatter, commandSyntaxFormatter, commandTree, componentBuilder, createDefaultCommandMeta, createHelpHandler, createHelpHandler, decorateBuilder, deleteRootCommand, exceptionController, flagBuilder, hasCapability, helpHandlerFactory, helpHandlerFactory, isCommandRegistrationAllowed, lockRegistration, parameterInjectorRegistry, parserRegistry, postprocessContext, preprocessContext, registerCapability, registerCommandPostProcessor, registerCommandPreProcessor, registerDefaultExceptionHandlers, rootCommands, settings, state, suggestionFactory, suggestionMapper, suggestionMapper, suggestionProcessor, suggestionProcessor, testPermission, transitionIfPossibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.incendo.cloud.CommandBuilderSource
commandBuilder, commandBuilder, commandBuilder, commandBuilder, commandBuilder, commandBuilderMethods inherited from interface org.incendo.cloud.state.Stateful
requireState, transitionOrThrow
-
Constructor Details
-
ArcCommandManager
public ArcCommandManager(com.xpdustry.distributor.plugin.MindustryPlugin plugin, org.incendo.cloud.execution.ExecutionCoordinator<C> coordinator, org.incendo.cloud.SenderMapper<com.xpdustry.distributor.command.CommandSender, C> senderMapper, com.xpdustry.distributor.command.DescriptionMapper<org.incendo.cloud.description.Description> descriptionMapper)
-
-
Method Details
-
initialize
public final void initialize(arc.util.CommandHandler handler) Initializes the command manager with it's backing command handler.- Parameters:
handler- the backing command handler
-
descriptionMapper
public final com.xpdustry.distributor.command.DescriptionMapper<org.incendo.cloud.description.Description> descriptionMapper()Returns theDescriptionMapperof this command manager. -
hasPermission
- Specified by:
hasPermissionin classorg.incendo.cloud.CommandManager<C>
-
getPlugin
public final com.xpdustry.distributor.plugin.MindustryPlugin getPlugin()- Specified by:
getPluginin interfacecom.xpdustry.distributor.plugin.PluginAware
-
senderMapper
public final @NonNull org.incendo.cloud.SenderMapper<com.xpdustry.distributor.command.CommandSender,C> senderMapper()- Specified by:
senderMapperin interfaceorg.incendo.cloud.SenderMapperHolder<com.xpdustry.distributor.command.CommandSender,C>
-
registerDefaultExceptionHandlers
protected void registerDefaultExceptionHandlers()
-