Uses of Interface
dev.sympho.modular_commands.api.command.handler.ResultHandler
Packages that use ResultHandler
Package
Description
Handler interfaces used across the system.
Runtime system for executing commands defined through the API.
Collection of classes that provide assorted utilies for ease of use.
-
Uses of ResultHandler in dev.sympho.modular_commands.api.command.handler
Methods in dev.sympho.modular_commands.api.command.handler that return types with arguments of type ResultHandlerModifier and TypeMethodDescriptionList<? extends ResultHandler<?>>
Handlers.result()
The handlers to use to handle the result (in the order given).List<? extends ResultHandler<? super InteractionCommandContext>>
InteractionHandlers.Impl.result()
Returns the value of theresult
record component.List<? extends ResultHandler<? super InteractionCommandContext>>
InteractionHandlers.result()
List<? extends ResultHandler<? super MessageCommandContext>>
MessageHandlers.Impl.result()
Returns the value of theresult
record component.List<? extends ResultHandler<? super MessageCommandContext>>
MessageHandlers.result()
List<? extends ResultHandler<? super SlashCommandContext>>
SlashHandlers.Impl.result()
Returns the value of theresult
record component.List<? extends ResultHandler<? super SlashCommandContext>>
SlashHandlers.result()
List<? extends ResultHandler<CommandContext>>
TextHandlers.Impl.result()
Returns the value of theresult
record component.List<? extends ResultHandler<CommandContext>>
TextHandlers.result()
Methods in dev.sympho.modular_commands.api.command.handler with parameters of type ResultHandlerModifier and TypeMethodDescriptionstatic InteractionHandlers
Handlers.interaction
(InvocationHandler<? super InteractionCommandContext> invocation, ResultHandler<? super InteractionCommandContext>... result) Creates a handler set with the given handlers, with support for interaction-based commands.static MessageHandlers
Handlers.message
(InvocationHandler<? super MessageCommandContext> invocation, ResultHandler<? super MessageCommandContext>... result) Creates a handler set with the given handlers, with support only for message-based commands.static SlashHandlers
Handlers.slash
(InvocationHandler<? super SlashCommandContext> invocation, ResultHandler<? super SlashCommandContext>... result) Creates a handler set with the given handlers, with support only for slash-based commands.static TextHandlers
Handlers.text
(InvocationHandler<CommandContext> invocation, ResultHandler<CommandContext>... result) Creates a handler set with the given handlers, with support for text-based commands.Method parameters in dev.sympho.modular_commands.api.command.handler with type arguments of type ResultHandlerModifier and TypeMethodDescriptionstatic InteractionHandlers
Handlers.interaction
(InvocationHandler<? super InteractionCommandContext> invocation, List<? extends ResultHandler<? super InteractionCommandContext>> result) Creates a handler set with the given handlers, with support for interaction-based commands.static MessageHandlers
Handlers.message
(InvocationHandler<? super MessageCommandContext> invocation, List<? extends ResultHandler<? super MessageCommandContext>> result) Creates a handler set with the given handlers, with support only for message-based commands.static SlashHandlers
Handlers.slash
(InvocationHandler<? super SlashCommandContext> invocation, List<? extends ResultHandler<? super SlashCommandContext>> result) Creates a handler set with the given handlers, with support only for slash-based commands.static TextHandlers
Handlers.text
(InvocationHandler<CommandContext> invocation, List<? extends ResultHandler<CommandContext>> result) Creates a handler set with the given handlers, with support for text-based commands.Constructor parameters in dev.sympho.modular_commands.api.command.handler with type arguments of type ResultHandlerModifierConstructorDescriptionImpl
(InvocationHandler<? super InteractionCommandContext> invocation, List<? extends ResultHandler<? super InteractionCommandContext>> result) Creates an instance of aImpl
record class.Impl
(InvocationHandler<? super MessageCommandContext> invocation, List<? extends ResultHandler<? super MessageCommandContext>> result) Creates an instance of aImpl
record class.Impl
(InvocationHandler<? super SlashCommandContext> invocation, List<? extends ResultHandler<? super SlashCommandContext>> result) Creates an instance of aImpl
record class.Impl
(InvocationHandler<CommandContext> invocation, List<? extends ResultHandler<CommandContext>> result) Creates an instance of aImpl
record class. -
Uses of ResultHandler in dev.sympho.modular_commands.execute
Fields in dev.sympho.modular_commands.execute declared as ResultHandlerModifier and TypeFieldDescriptionstatic final ResultHandler<CommandContext>
BaseHandler.DEFAULT
The initial/default base handler.Methods in dev.sympho.modular_commands.execute that return ResultHandlerModifier and TypeMethodDescriptionstatic ResultHandler<CommandContext>
BaseHandler.get()
Retrieves the current base handler.Methods in dev.sympho.modular_commands.execute that return types with arguments of type ResultHandlerModifier and TypeMethodDescriptionprotected abstract List<? extends ResultHandler<? super CTX>>
PipelineBuilder.getResultHandlers
(H handlers) Retrieves the result handlers specified by the given hander set.Methods in dev.sympho.modular_commands.execute with parameters of type ResultHandlerModifier and TypeMethodDescriptionstatic void
BaseHandler.set
(ResultHandler<CommandContext> handler) Sets the base handler. -
Uses of ResultHandler in dev.sympho.modular_commands.utils
Method parameters in dev.sympho.modular_commands.utils with type arguments of type ResultHandlerModifier and TypeMethodDescriptionstatic void
CommandUtils.validateResultHandlers
(List<? extends ResultHandler<?>> handlers) Validates the result handlers of a command.