Package dev.rollczi.litecommands
Class LiteCommandsBaseBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings,B extends LiteCommandsBaseBuilder<SENDER,C,B>>
java.lang.Object
dev.rollczi.litecommands.LiteCommandsBaseBuilder<SENDER,C,B>
- All Implemented Interfaces:
LiteCommandsAdvanced<SENDER,,C, B> LiteCommandsBuilder<SENDER,,C, B> dev.rollczi.litecommands.LiteCommandsInternal<SENDER,C>
public class LiteCommandsBaseBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings,B extends LiteCommandsBaseBuilder<SENDER,C,B>>
extends Object
implements LiteCommandsBuilder<SENDER,C,B>, dev.rollczi.litecommands.LiteCommandsInternal<SENDER,C>, LiteCommandsAdvanced<SENDER,C,B>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final dev.rollczi.litecommands.bind.BindRegistryprotected final dev.rollczi.litecommands.command.builder.CommandBuilderCollector<SENDER> protected final List<LiteCommandsProviderExtension<SENDER, ?>> protected final dev.rollczi.litecommands.context.ContextRegistry<SENDER> protected final dev.rollczi.litecommands.cooldown.CooldownServiceprotected final dev.rollczi.litecommands.editor.EditorService<SENDER> protected final dev.rollczi.litecommands.event.EventPublisherprotected final List<LiteExtension<SENDER, ?>> protected final dev.rollczi.litecommands.message.MessageRegistry<SENDER> protected final dev.rollczi.litecommands.argument.parser.ParserRegistry<SENDER> protected final dev.rollczi.litecommands.permission.PermissionServiceImplprotected final Set<LiteBuilderAction<SENDER, C>> protected final Set<LiteBuilderAction<SENDER, C>> protected final dev.rollczi.litecommands.handler.result.ResultHandleService<SENDER> protected final dev.rollczi.litecommands.scheduler.SchedulerReferenceprotected final dev.rollczi.litecommands.schematic.SchematicGeneratorReference<SENDER> protected final dev.rollczi.litecommands.strict.StrictServiceprotected final dev.rollczi.litecommands.argument.suggester.SuggesterRegistry<SENDER> protected final dev.rollczi.litecommands.validator.ValidatorService<SENDER> -
Constructor Summary
ConstructorsConstructorDescriptionLiteCommandsBaseBuilder(Class<SENDER> senderClass, dev.rollczi.litecommands.platform.Platform<SENDER, C> platform) Constructor forLiteCommandsBaseBuilderLiteCommandsBaseBuilder(Class<SENDER> senderClass, dev.rollczi.litecommands.platform.PlatformFactory<SENDER, C> platform) Constructor forLiteCommandsBaseBuilderLiteCommandsBaseBuilder(Class<SENDER> senderClass, dev.rollczi.litecommands.platform.PlatformFactory<SENDER, C> platform, dev.rollczi.litecommands.editor.EditorService<SENDER> editorService, dev.rollczi.litecommands.permission.PermissionServiceImpl permissionService, dev.rollczi.litecommands.validator.ValidatorService<SENDER> validatorService, dev.rollczi.litecommands.argument.parser.ParserRegistry<SENDER> parserRegistry, dev.rollczi.litecommands.argument.suggester.SuggesterRegistry<SENDER> suggesterRegistry, dev.rollczi.litecommands.bind.BindRegistry bindRegistry, dev.rollczi.litecommands.context.ContextRegistry<SENDER> contextRegistry, dev.rollczi.litecommands.handler.result.ResultHandleService<SENDER> resultHandleService, dev.rollczi.litecommands.command.builder.CommandBuilderCollector<SENDER> commandBuilderCollector, dev.rollczi.litecommands.message.MessageRegistry<SENDER> messageRegistry, dev.rollczi.litecommands.strict.StrictService strictService) Copy constructor Unstable API -
Method Summary
Modifier and TypeMethodDescription<A extends LiteCommandsAdvanced<SENDER,C, A>>
Aadvanced()Returns advanced builder.afterBuild(LiteBuilderAction<SENDER, C> action) annotations(LiteConfigurator<AnnotationsExtension<SENDER>> configuration) [Experimental] Register extension for annotations processing/ Please note that this method is experimental and may be deprecated or removed in the future.<T> Bargument(dev.rollczi.litecommands.reflect.type.TypeRange<T> type, dev.rollczi.litecommands.argument.ArgumentKey key, dev.rollczi.litecommands.argument.resolver.ArgumentResolverBase<SENDER, T> resolver) <T> Bargument(dev.rollczi.litecommands.reflect.type.TypeRange<T> type, dev.rollczi.litecommands.argument.ArgumentKey key, dev.rollczi.litecommands.argument.resolver.ArgumentResolverBaseChained<SENDER, T> resolver) <T> Bargument(dev.rollczi.litecommands.reflect.type.TypeRange<T> type, dev.rollczi.litecommands.argument.resolver.ArgumentResolverBase<SENDER, T> resolver) <T> Bargument(dev.rollczi.litecommands.reflect.type.TypeRange<T> type, dev.rollczi.litecommands.argument.resolver.ArgumentResolverBaseChained<SENDER, T> resolver) <T> Bargument(Class<T> type, dev.rollczi.litecommands.argument.ArgumentKey key, dev.rollczi.litecommands.argument.resolver.ArgumentResolverBase<SENDER, T> resolver) [Keyed Argument Parser and Suggester] Register argument parser and suggester for a given type and key.<T> Bargument(Class<T> type, dev.rollczi.litecommands.argument.ArgumentKey key, dev.rollczi.litecommands.argument.resolver.ArgumentResolverBaseChained<SENDER, T> resolver) <T> Bargument(Class<T> type, dev.rollczi.litecommands.argument.resolver.ArgumentResolverBase<SENDER, T> resolver) [Argument Parser and Suggester] Register argument parser and suggester for given type.<T> Bargument(Class<T> type, dev.rollczi.litecommands.argument.resolver.ArgumentResolverBaseChained<SENDER, T> resolver) <PARSED> BargumentParser(dev.rollczi.litecommands.reflect.type.TypeRange<PARSED> type, dev.rollczi.litecommands.argument.ArgumentKey key, dev.rollczi.litecommands.argument.parser.Parser<SENDER, PARSED> parser) Type raged argument<PARSED> BargumentParser(dev.rollczi.litecommands.reflect.type.TypeRange<PARSED> type, dev.rollczi.litecommands.argument.ArgumentKey key, dev.rollczi.litecommands.argument.parser.ParserChained<SENDER, PARSED> parser) <PARSED> BargumentParser(Class<PARSED> type, dev.rollczi.litecommands.argument.ArgumentKey key, dev.rollczi.litecommands.argument.parser.Parser<SENDER, PARSED> parser) <PARSED> BargumentParser(Class<PARSED> type, dev.rollczi.litecommands.argument.ArgumentKey key, dev.rollczi.litecommands.argument.parser.ParserChained<SENDER, PARSED> parser) <T> BargumentParser(Class<T> type, dev.rollczi.litecommands.argument.parser.Parser<SENDER, T> parser) <T> BargumentParser(Class<T> type, dev.rollczi.litecommands.argument.parser.ParserChained<SENDER, T> parser) Chained argument<T> BargumentSuggester(dev.rollczi.litecommands.reflect.type.TypeRange<T> type, dev.rollczi.litecommands.argument.ArgumentKey key, dev.rollczi.litecommands.argument.suggester.Suggester<SENDER, T> suggester) <T> BargumentSuggester(dev.rollczi.litecommands.reflect.type.TypeRange<T> type, dev.rollczi.litecommands.argument.ArgumentKey key, dev.rollczi.litecommands.argument.suggester.SuggesterChained<SENDER, T> suggester) <T> BargumentSuggester(Class<T> type, dev.rollczi.litecommands.argument.ArgumentKey key, dev.rollczi.litecommands.argument.suggester.Suggester<SENDER, T> suggester) <T> BargumentSuggester(Class<T> type, dev.rollczi.litecommands.argument.ArgumentKey key, dev.rollczi.litecommands.argument.suggester.SuggesterChained<SENDER, T> suggester) <T> BargumentSuggester(Class<T> type, dev.rollczi.litecommands.argument.suggester.Suggester<SENDER, T> suggester) <T> BargumentSuggester(Class<T> type, dev.rollczi.litecommands.argument.suggester.SuggesterChained<SENDER, T> suggester) <T> BargumentSuggestion(dev.rollczi.litecommands.reflect.type.TypeRange<T> type, dev.rollczi.litecommands.argument.ArgumentKey key, dev.rollczi.litecommands.suggestion.SuggestionResult suggestion) <T> BargumentSuggestion(Class<T> type, dev.rollczi.litecommands.argument.ArgumentKey key, dev.rollczi.litecommands.suggestion.SuggestionResult suggestion) <T> BargumentSuggestion(Class<T> type, dev.rollczi.litecommands.suggestion.SuggestionResult suggestion) beforeBuild(LiteBuilderAction<SENDER, C> action) <T> BChained bind<T> BbindUnsafe(Class<?> on, Supplier<?> bind) dev.rollczi.litecommands.LiteCommands<SENDER> build()dev.rollczi.litecommands.LiteCommands<SENDER> build(boolean register) Register commands from given provider.This method is used to register additional commands.<T> BChained contextprotected dev.rollczi.litecommands.command.CommandManager<SENDER> editor(dev.rollczi.litecommands.scope.Scope scope, dev.rollczi.litecommands.editor.Editor<SENDER> editor) editorGlobal(dev.rollczi.litecommands.editor.Editor<SENDER> editor) exception(Class<E> exceptionType, dev.rollczi.litecommands.handler.exception.ExceptionHandler<SENDER, ? extends E> handler) exceptionUnexpected(dev.rollczi.litecommands.handler.exception.ExceptionHandler<SENDER, Throwable> handler) <CONFIGURATION>
Bextension(LiteExtension<SENDER, CONFIGURATION> extension) Register extension for this builder.<CONFIGURATION,E extends LiteExtension<SENDER, CONFIGURATION>>
Bextension(E extension, LiteConfigurator<CONFIGURATION> configurator) Register extension for this builder with configurator.dev.rollczi.litecommands.bind.BindRegistrydev.rollczi.litecommands.command.builder.CommandBuilderCollector<SENDER> dev.rollczi.litecommands.context.ContextRegistry<SENDER> dev.rollczi.litecommands.cooldown.CooldownServicedev.rollczi.litecommands.editor.EditorService<SENDER> dev.rollczi.litecommands.event.EventPublisherdev.rollczi.litecommands.message.MessageRegistry<SENDER> dev.rollczi.litecommands.argument.parser.ParserRegistry<SENDER> dev.rollczi.litecommands.permission.PermissionServicedev.rollczi.litecommands.handler.result.ResultHandleService<SENDER> dev.rollczi.litecommands.scheduler.Schedulerdev.rollczi.litecommands.schematic.SchematicGenerator<SENDER> Internal APIdev.rollczi.litecommands.strict.StrictServicedev.rollczi.litecommands.argument.suggester.SuggesterRegistry<SENDER> dev.rollczi.litecommands.validator.ValidatorService<SENDER> internal()invalidUsage(dev.rollczi.litecommands.invalidusage.InvalidUsageHandler<SENDER> handler) listener(dev.rollczi.litecommands.event.EventListener listener) Register event listener for the LiteCommands event system.<E extends dev.rollczi.litecommands.event.Event>
B<T,CONTEXT>
Bmessage(dev.rollczi.litecommands.message.MessageKey<CONTEXT> key, dev.rollczi.litecommands.message.InvokedMessage<SENDER, T, CONTEXT> message) <T,CONTEXT>
Bmessage(dev.rollczi.litecommands.message.MessageKey<CONTEXT> key, dev.rollczi.litecommands.message.Message<T, CONTEXT> message) <T,CONTEXT>
Bmessage(dev.rollczi.litecommands.message.MessageKey<CONTEXT> key, T message) missingPermission(dev.rollczi.litecommands.permission.MissingPermissionsHandler<SENDER> handler) permissionResolver(dev.rollczi.litecommands.permission.PermissionResolver permissionResolver) <T> Bresult(Class<T> resultType, dev.rollczi.litecommands.handler.result.ResultHandler<SENDER, ? extends T> handler) resultUnexpected(dev.rollczi.litecommands.handler.result.ResultHandler<SENDER, Object> handler) scheduler(dev.rollczi.litecommands.scheduler.Scheduler scheduler) schematicGenerator(dev.rollczi.litecommands.schematic.SchematicFastFormat format) schematicGenerator(dev.rollczi.litecommands.schematic.SchematicFormat format) schematicGenerator(dev.rollczi.litecommands.schematic.SchematicGenerator<SENDER> schematicGenerator) protected Bself()self(LiteBuilderAction<SENDER, C> action) Configure platform settings.strictMode(dev.rollczi.litecommands.strict.StrictMode strictMode) Set the default strict mode for all commands.validator(dev.rollczi.litecommands.scope.Scope scope, dev.rollczi.litecommands.validator.Validator<SENDER> validator) validatorGlobal(dev.rollczi.litecommands.validator.Validator<SENDER> validator) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.rollczi.litecommands.LiteCommandsBuilder
bind, context, postProcessor, preProcessor, selfProcessor, validatorMarked
-
Field Details
-
senderClass
-
platform
-
preProcessors
protected final Set<LiteBuilderAction<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings>> preProcessors -
postProcessors
protected final Set<LiteBuilderAction<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings>> postProcessors -
extensions
-
commandsProviderExtensions
-
editorService
-
permissionService
protected final dev.rollczi.litecommands.permission.PermissionServiceImpl permissionService -
validatorService
-
parserRegistry
-
suggesterRegistry
protected final dev.rollczi.litecommands.argument.suggester.SuggesterRegistry<SENDER> suggesterRegistry -
bindRegistry
protected final dev.rollczi.litecommands.bind.BindRegistry bindRegistry -
contextRegistry
-
resultHandleService
protected final dev.rollczi.litecommands.handler.result.ResultHandleService<SENDER> resultHandleService -
commandBuilderCollector
protected final dev.rollczi.litecommands.command.builder.CommandBuilderCollector<SENDER> commandBuilderCollector -
messageRegistry
-
strictService
protected final dev.rollczi.litecommands.strict.StrictService strictService -
scheduler
protected final dev.rollczi.litecommands.scheduler.SchedulerReference scheduler -
eventPublisher
protected final dev.rollczi.litecommands.event.EventPublisher eventPublisher -
schematicGenerator
protected final dev.rollczi.litecommands.schematic.SchematicGeneratorReference<SENDER> schematicGenerator -
cooldownService
protected final dev.rollczi.litecommands.cooldown.CooldownService cooldownService
-
-
Constructor Details
-
LiteCommandsBaseBuilder
public LiteCommandsBaseBuilder(Class<SENDER> senderClass, dev.rollczi.litecommands.platform.PlatformFactory<SENDER, C> platform) Constructor forLiteCommandsBaseBuilder- Parameters:
senderClass- class of senderplatform- platform
-
LiteCommandsBaseBuilder
public LiteCommandsBaseBuilder(Class<SENDER> senderClass, dev.rollczi.litecommands.platform.Platform<SENDER, C> platform) Constructor forLiteCommandsBaseBuilder- Parameters:
senderClass- class of senderplatform- platform
-
LiteCommandsBaseBuilder
@Experimental public LiteCommandsBaseBuilder(Class<SENDER> senderClass, dev.rollczi.litecommands.platform.PlatformFactory<SENDER, C> platform, dev.rollczi.litecommands.editor.EditorService<SENDER> editorService, dev.rollczi.litecommands.permission.PermissionServiceImpl permissionService, dev.rollczi.litecommands.validator.ValidatorService<SENDER> validatorService, dev.rollczi.litecommands.argument.parser.ParserRegistry<SENDER> parserRegistry, dev.rollczi.litecommands.argument.suggester.SuggesterRegistry<SENDER> suggesterRegistry, dev.rollczi.litecommands.bind.BindRegistry bindRegistry, dev.rollczi.litecommands.context.ContextRegistry<SENDER> contextRegistry, dev.rollczi.litecommands.handler.result.ResultHandleService<SENDER> resultHandleService, dev.rollczi.litecommands.command.builder.CommandBuilderCollector<SENDER> commandBuilderCollector, dev.rollczi.litecommands.message.MessageRegistry<SENDER> messageRegistry, dev.rollczi.litecommands.strict.StrictService strictService) Copy constructor Unstable API
-
-
Method Details
-
advanced
Description copied from interface:LiteCommandsBuilderReturns advanced builder. This builder is used to configure advanced settings.- Specified by:
advancedin interfaceLiteCommandsBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
settings
Description copied from interface:LiteCommandsBuilderConfigure platform settings.- Specified by:
settingsin interfaceLiteCommandsBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>> - Parameters:
configurator- configurator for platform settings- Returns:
- this builder
- See Also:
-
commands
Description copied from interface:LiteCommandsBuilderRegister commands from given provider.- Specified by:
commandsin interfaceLiteCommandsBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>> - Parameters:
commandsProvider- provider of commands- Returns:
- this builder
- See Also:
-
commands
Description copied from interface:LiteCommandsBuilderThis method is used to register additional commands. There are several types of objects that can be registered: Using annotations:- An instance annotated with
Command - An instance annotated with
RootCommand - A class annotated with
Command - A class annotated with
RootCommand
- An instance of
LiteCommand
- Specified by:
commandsin interfaceLiteCommandsBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>> - Parameters:
commands- commands to register- Returns:
- This method returns the current LiteCommand builder instance This allows you to chain multiple calls together, using the builder design pattern.
- See Also:
- An instance annotated with
-
argumentParser
public <T> B argumentParser(Class<T> type, dev.rollczi.litecommands.argument.parser.Parser<SENDER, T> parser) - Specified by:
argumentParserin interfaceLiteCommandsBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
argumentParser
public <T> B argumentParser(Class<T> type, dev.rollczi.litecommands.argument.parser.ParserChained<SENDER, T> parser) Description copied from interface:LiteCommandsAdvancedChained argument- Specified by:
argumentParserin interfaceLiteCommandsAdvanced<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
argumentParser
public <PARSED> B argumentParser(Class<PARSED> type, dev.rollczi.litecommands.argument.ArgumentKey key, dev.rollczi.litecommands.argument.parser.Parser<SENDER, PARSED> parser) - Specified by:
argumentParserin interfaceLiteCommandsBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
argumentParser
public <PARSED> B argumentParser(Class<PARSED> type, dev.rollczi.litecommands.argument.ArgumentKey key, dev.rollczi.litecommands.argument.parser.ParserChained<SENDER, PARSED> parser) - Specified by:
argumentParserin interfaceLiteCommandsAdvanced<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
argumentParser
public <PARSED> B argumentParser(dev.rollczi.litecommands.reflect.type.TypeRange<PARSED> type, dev.rollczi.litecommands.argument.ArgumentKey key, dev.rollczi.litecommands.argument.parser.Parser<SENDER, PARSED> parser) Description copied from interface:LiteCommandsAdvancedType raged argument- Specified by:
argumentParserin interfaceLiteCommandsAdvanced<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
argumentParser
public <PARSED> B argumentParser(dev.rollczi.litecommands.reflect.type.TypeRange<PARSED> type, dev.rollczi.litecommands.argument.ArgumentKey key, dev.rollczi.litecommands.argument.parser.ParserChained<SENDER, PARSED> parser) - Specified by:
argumentParserin interfaceLiteCommandsAdvanced<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
argumentSuggestion
public <T> B argumentSuggestion(Class<T> type, dev.rollczi.litecommands.suggestion.SuggestionResult suggestion) - Specified by:
argumentSuggestionin interfaceLiteCommandsBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
argumentSuggestion
public <T> B argumentSuggestion(Class<T> type, dev.rollczi.litecommands.argument.ArgumentKey key, dev.rollczi.litecommands.suggestion.SuggestionResult suggestion) - Specified by:
argumentSuggestionin interfaceLiteCommandsBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
argumentSuggestion
public <T> B argumentSuggestion(dev.rollczi.litecommands.reflect.type.TypeRange<T> type, dev.rollczi.litecommands.argument.ArgumentKey key, dev.rollczi.litecommands.suggestion.SuggestionResult suggestion) - Specified by:
argumentSuggestionin interfaceLiteCommandsAdvanced<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
argumentSuggester
public <T> B argumentSuggester(Class<T> type, dev.rollczi.litecommands.argument.suggester.Suggester<SENDER, T> suggester) - Specified by:
argumentSuggesterin interfaceLiteCommandsBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
argumentSuggester
public <T> B argumentSuggester(Class<T> type, dev.rollczi.litecommands.argument.suggester.SuggesterChained<SENDER, T> suggester) - Specified by:
argumentSuggesterin interfaceLiteCommandsAdvanced<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
argumentSuggester
public <T> B argumentSuggester(Class<T> type, dev.rollczi.litecommands.argument.ArgumentKey key, dev.rollczi.litecommands.argument.suggester.Suggester<SENDER, T> suggester) - Specified by:
argumentSuggesterin interfaceLiteCommandsBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
argumentSuggester
public <T> B argumentSuggester(Class<T> type, dev.rollczi.litecommands.argument.ArgumentKey key, dev.rollczi.litecommands.argument.suggester.SuggesterChained<SENDER, T> suggester) - Specified by:
argumentSuggesterin interfaceLiteCommandsAdvanced<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
argumentSuggester
public <T> B argumentSuggester(dev.rollczi.litecommands.reflect.type.TypeRange<T> type, dev.rollczi.litecommands.argument.ArgumentKey key, dev.rollczi.litecommands.argument.suggester.Suggester<SENDER, T> suggester) - Specified by:
argumentSuggesterin interfaceLiteCommandsAdvanced<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
argumentSuggester
public <T> B argumentSuggester(dev.rollczi.litecommands.reflect.type.TypeRange<T> type, dev.rollczi.litecommands.argument.ArgumentKey key, dev.rollczi.litecommands.argument.suggester.SuggesterChained<SENDER, T> suggester) - Specified by:
argumentSuggesterin interfaceLiteCommandsAdvanced<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
argument
public <T> B argument(Class<T> type, dev.rollczi.litecommands.argument.resolver.ArgumentResolverBase<SENDER, T> resolver) Description copied from interface:LiteCommandsBuilder[Argument Parser and Suggester] Register argument parser and suggester for given type.- Specified by:
argumentin interfaceLiteCommandsBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>> - Parameters:
type- type of argumentresolver- parser and suggester for a given type- Returns:
- this builder
-
argument
public <T> B argument(Class<T> type, dev.rollczi.litecommands.argument.resolver.ArgumentResolverBaseChained<SENDER, T> resolver) - Specified by:
argumentin interfaceLiteCommandsAdvanced<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
argument
public <T> B argument(Class<T> type, dev.rollczi.litecommands.argument.ArgumentKey key, dev.rollczi.litecommands.argument.resolver.ArgumentResolverBase<SENDER, T> resolver) Description copied from interface:LiteCommandsBuilder[Keyed Argument Parser and Suggester] Register argument parser and suggester for a given type and key. Key is used to define namespace for given parser. It is used to identify which parsers with same type should be used. Argument type is used to define what type is compatible with given parser.- Specified by:
argumentin interfaceLiteCommandsBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>> - Parameters:
type- type of argumentkey- key of argumentresolver- parser and suggester for a given type- Returns:
- this builder
-
argument
public <T> B argument(Class<T> type, dev.rollczi.litecommands.argument.ArgumentKey key, dev.rollczi.litecommands.argument.resolver.ArgumentResolverBaseChained<SENDER, T> resolver) - Specified by:
argumentin interfaceLiteCommandsAdvanced<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
argument
public <T> B argument(dev.rollczi.litecommands.reflect.type.TypeRange<T> type, dev.rollczi.litecommands.argument.resolver.ArgumentResolverBase<SENDER, T> resolver) - Specified by:
argumentin interfaceLiteCommandsAdvanced<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
argument
public <T> B argument(dev.rollczi.litecommands.reflect.type.TypeRange<T> type, dev.rollczi.litecommands.argument.resolver.ArgumentResolverBaseChained<SENDER, T> resolver) - Specified by:
argumentin interfaceLiteCommandsAdvanced<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
argument
public <T> B argument(dev.rollczi.litecommands.reflect.type.TypeRange<T> type, dev.rollczi.litecommands.argument.ArgumentKey key, dev.rollczi.litecommands.argument.resolver.ArgumentResolverBase<SENDER, T> resolver) - Specified by:
argumentin interfaceLiteCommandsAdvanced<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
argument
public <T> B argument(dev.rollczi.litecommands.reflect.type.TypeRange<T> type, dev.rollczi.litecommands.argument.ArgumentKey key, dev.rollczi.litecommands.argument.resolver.ArgumentResolverBaseChained<SENDER, T> resolver) - Specified by:
argumentin interfaceLiteCommandsAdvanced<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
context
public <T> B context(Class<T> on, dev.rollczi.litecommands.context.ContextChainedProvider<SENDER, T> bind) Description copied from interface:LiteCommandsAdvancedChained context- Specified by:
contextin interfaceLiteCommandsAdvanced<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
bind
Description copied from interface:LiteCommandsAdvancedChained bind- Specified by:
bindin interfaceLiteCommandsAdvanced<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
internal
- Specified by:
internalin interfaceLiteCommandsAdvanced<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
bind
- Specified by:
bindin interfaceLiteCommandsBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
bindUnsafe
- Specified by:
bindUnsafein interfaceLiteCommandsBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
scheduler
- Specified by:
schedulerin interfaceLiteCommandsBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
message
public <T,CONTEXT> B message(dev.rollczi.litecommands.message.MessageKey<CONTEXT> key, dev.rollczi.litecommands.message.Message<T, CONTEXT> message) - Specified by:
messagein interfaceLiteCommandsBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
message
public <T,CONTEXT> B message(dev.rollczi.litecommands.message.MessageKey<CONTEXT> key, dev.rollczi.litecommands.message.InvokedMessage<SENDER, T, CONTEXT> message) - Specified by:
messagein interfaceLiteCommandsBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
message
- Specified by:
messagein interfaceLiteCommandsBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
editorGlobal
- Specified by:
editorGlobalin interfaceLiteCommandsBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
editor
public B editor(dev.rollczi.litecommands.scope.Scope scope, dev.rollczi.litecommands.editor.Editor<SENDER> editor) - Specified by:
editorin interfaceLiteCommandsBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
validatorGlobal
- Specified by:
validatorGlobalin interfaceLiteCommandsBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
validator
public B validator(dev.rollczi.litecommands.scope.Scope scope, dev.rollczi.litecommands.validator.Validator<SENDER> validator) - Specified by:
validatorin interfaceLiteCommandsBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
result
public <T> B result(Class<T> resultType, dev.rollczi.litecommands.handler.result.ResultHandler<SENDER, ? extends T> handler) - Specified by:
resultin interfaceLiteCommandsBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
resultUnexpected
public B resultUnexpected(dev.rollczi.litecommands.handler.result.ResultHandler<SENDER, Object> handler) - Specified by:
resultUnexpectedin interfaceLiteCommandsBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
exception
public <E extends Throwable> B exception(Class<E> exceptionType, dev.rollczi.litecommands.handler.exception.ExceptionHandler<SENDER, ? extends E> handler) - Specified by:
exceptionin interfaceLiteCommandsBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
exceptionUnexpected
public B exceptionUnexpected(dev.rollczi.litecommands.handler.exception.ExceptionHandler<SENDER, Throwable> handler) - Specified by:
exceptionUnexpectedin interfaceLiteCommandsBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
missingPermission
public B missingPermission(dev.rollczi.litecommands.permission.MissingPermissionsHandler<SENDER> handler) - Specified by:
missingPermissionin interfaceLiteCommandsBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
invalidUsage
- Specified by:
invalidUsagein interfaceLiteCommandsBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
schematicGenerator
public B schematicGenerator(dev.rollczi.litecommands.schematic.SchematicGenerator<SENDER> schematicGenerator) - Specified by:
schematicGeneratorin interfaceLiteCommandsBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
schematicGenerator
- Specified by:
schematicGeneratorin interfaceLiteCommandsBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
schematicGenerator
- Specified by:
schematicGeneratorin interfaceLiteCommandsBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
strictMode
Description copied from interface:LiteCommandsBuilderSet the default strict mode for all commands. If strict mode is enabled, the command will fail if the user provides too many arguments.- Specified by:
strictModein interfaceLiteCommandsBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
listener
Description copied from interface:LiteCommandsBuilderRegister event listener for the LiteCommands event system. SeeEvent,SubscriberandEventListenerfor more information. Example listener:@public class MyListener implements EventListener { \@Subscriber public void onEvent(CommandPreExecutionEvent event) { // your code } \@Subscriber public void onEvent(CommandPostExecutionEvent event) { // your code } }- Specified by:
listenerin interfaceLiteCommandsBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
listener
public <E extends dev.rollczi.litecommands.event.Event> B listener(Class<E> event, Consumer<E> listener) - Specified by:
listenerin interfaceLiteCommandsBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
self
- Specified by:
selfin interfaceLiteCommandsBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
beforeBuild
- Specified by:
beforeBuildin interfaceLiteCommandsBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
afterBuild
- Specified by:
afterBuildin interfaceLiteCommandsBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
permissionResolver
public B permissionResolver(dev.rollczi.litecommands.permission.PermissionResolver permissionResolver) - Specified by:
permissionResolverin interfaceLiteCommandsBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
extension
Description copied from interface:LiteCommandsBuilderRegister extension for this builder.- Specified by:
extensionin interfaceLiteCommandsBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>> - Type Parameters:
CONFIGURATION- type of configuration- Parameters:
extension- extension to register Example:.extension(new LiteAdventureExtension<>())- Returns:
- this builder
-
extension
public <CONFIGURATION,E extends LiteExtension<SENDER, B extensionCONFIGURATION>> (E extension, LiteConfigurator<CONFIGURATION> configurator) Description copied from interface:LiteCommandsBuilderRegister extension for this builder with configurator.- Specified by:
extensionin interfaceLiteCommandsBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>> - Type Parameters:
CONFIGURATION- type of configuration- Parameters:
extension- extension to registerconfigurator- configurator for extension Example:.extension(new LiteAdventureExtension<>(), configuration -> configuration .colorizeArgument(true) .miniMessage(true) .legacyColor(true) .serializer(ComponentSerializer.miniMessage()) )- Returns:
- this builder
-
annotations
Description copied from interface:LiteCommandsBuilder[Experimental] Register extension for annotations processing/ Please note that this method is experimental and may be deprecated or removed in the future.- Specified by:
annotationsin interfaceLiteCommandsBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>> - Parameters:
configuration- configurator for extension- processor - register new annotation processor
- validator - register new validator for requirement
.extensionAnnotation(extension -> extension .processor(new MyAnnotationProcessor()) .validator(String.class, IsValid.class, new StringValidator()) )- Returns:
- this builder
-
build
- Specified by:
buildin interfaceLiteCommandsBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
build
- Specified by:
buildin interfaceLiteCommandsBuilder<SENDER,C extends dev.rollczi.litecommands.platform.PlatformSettings, B extends LiteCommandsBaseBuilder<SENDER, C, B>>
-
createCommandManager
-
getSenderClass
Internal API -
getPlatform
-
getScheduler
@Internal public dev.rollczi.litecommands.scheduler.Scheduler getScheduler() -
getEventPublisher
public dev.rollczi.litecommands.event.EventPublisher getEventPublisher() -
getSchematicGenerator
@Internal public dev.rollczi.litecommands.schematic.SchematicGenerator<SENDER> getSchematicGenerator() -
getEditorService
-
getPermissionService
public dev.rollczi.litecommands.permission.PermissionService getPermissionService() -
getValidatorService
-
getParserRegistry
@Internal public dev.rollczi.litecommands.argument.parser.ParserRegistry<SENDER> getParserRegistry() -
getSuggesterRegistry
@Internal public dev.rollczi.litecommands.argument.suggester.SuggesterRegistry<SENDER> getSuggesterRegistry() -
getBindRegistry
@Internal public dev.rollczi.litecommands.bind.BindRegistry getBindRegistry() -
getContextRegistry
-
getResultService
@Internal public dev.rollczi.litecommands.handler.result.ResultHandleService<SENDER> getResultService() -
getCommandBuilderCollector
@Internal public dev.rollczi.litecommands.command.builder.CommandBuilderCollector<SENDER> getCommandBuilderCollector() -
getMessageRegistry
-
getStrictService
@Internal public dev.rollczi.litecommands.strict.StrictService getStrictService() -
getCooldownService
public dev.rollczi.litecommands.cooldown.CooldownService getCooldownService() -
self
-