Class ModuleCommandController
java.lang.Object
net.flectone.pulse.platform.controller.ModuleCommandController
-
Constructor Summary
ConstructorsConstructorDescriptionModuleCommandController(com.google.inject.Provider<CommandRegistry> commandRegistryProvider, FileFacade fileFacade, ModuleController moduleController) -
Method Summary
Modifier and TypeMethodDescriptionaddPrompt(ModuleCommand<?> command, int index, Function<Localization.Command.Prompt, String> promptLocalization) voidclearPrompts(ModuleCommand<?> abstractModuleCommand) <V extends @NonNull Object>
VgetArgument(ModuleCommand<?> command, org.incendo.cloud.context.CommandContext<FPlayer> context, int promptIndex) getCommandName(ModuleCommand<?> command) getPrompt(ModuleCommand<?> command, int index) getPrompts(ModuleCommand<?> command) voidregisterCommand(ModuleCommand<?> command, UnaryOperator<org.incendo.cloud.Command.Builder<FPlayer>> builder) voidregisterSubCommand(ModuleCommand<?> command, String subName, UnaryOperator<org.incendo.cloud.Command.Builder<FPlayer>> builder)
-
Constructor Details
-
ModuleCommandController
@Inject public ModuleCommandController(com.google.inject.Provider<CommandRegistry> commandRegistryProvider, FileFacade fileFacade, ModuleController moduleController)
-
-
Method Details
-
registerCommand
public void registerCommand(ModuleCommand<?> command, UnaryOperator<org.incendo.cloud.Command.Builder<FPlayer>> builder) -
registerSubCommand
public void registerSubCommand(ModuleCommand<?> command, String subName, UnaryOperator<org.incendo.cloud.Command.Builder<FPlayer>> builder) -
clearPrompts
-
addPrompt
public String addPrompt(ModuleCommand<?> command, int index, Function<Localization.Command.Prompt, String> promptLocalization) -
getPrompt
-
getPrompts
-
getArgument
public <V extends @NonNull Object> V getArgument(ModuleCommand<?> command, org.incendo.cloud.context.CommandContext<FPlayer> context, int promptIndex) -
getCommandName
-