public final class FunnyCommandsConfiguration extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Collection<Bind> |
binds |
protected Collection<Class<?>> |
commandsClasses |
protected Collection<Object> |
commandsInstances |
protected Map<String,Completer> |
completes |
protected Map<Class<? extends Exception>,ExceptionHandler<? extends Exception>> |
exceptionHandlers |
protected PermissionHandler |
permissionHandler |
protected Map<String,Function<String,String>> |
placeholders |
protected Supplier<org.bukkit.plugin.java.JavaPlugin> |
plugin |
protected Map<Class<?>,ResponseHandler<?>> |
responseHandlers |
protected Map<String,TypeMapper<?>> |
typeMappers |
protected UsageHandler |
usageHandler |
protected Collection<Validator<?,?,?>> |
validators |
protected final Supplier<org.bukkit.plugin.java.JavaPlugin> plugin
protected final Collection<Class<?>> commandsClasses
protected final Collection<Object> commandsInstances
protected final Map<String,TypeMapper<?>> typeMappers
protected final Collection<Bind> binds
protected final Collection<Validator<?,?,?>> validators
protected final Map<Class<? extends Exception>,ExceptionHandler<? extends Exception>> exceptionHandlers
protected final Map<Class<?>,ResponseHandler<?>> responseHandlers
protected PermissionHandler permissionHandler
protected UsageHandler usageHandler
public FunnyCommands install()
public FunnyCommandsConfiguration registerDefaultComponents()
public FunnyCommandsConfiguration registerComponents(Object... components)
public FunnyCommandsConfiguration registerComponents(Iterable<? extends Object> components)
public FunnyCommandsConfiguration registerComponent(Object componentInstance)
public FunnyCommandsConfiguration placeholders(Map<String,Function<String,String>> placeholders)
public FunnyCommandsConfiguration commands(Collection<? extends Class<?>> commandsClasses)
public FunnyCommandsConfiguration command(Object command)
public FunnyCommandsConfiguration commands(Class<?>... commandsClasses)
public <T> FunnyCommandsConfiguration type(CommandDataType<T> commandDataType)
public <T> FunnyCommandsConfiguration type(String typeName, Class<T> type, org.panda_lang.utilities.commons.function.TriFunction<Context,org.panda_lang.utilities.inject.InjectorProperty,String,T> deserializer)
public FunnyCommandsConfiguration bind(Bind bind)
public <A extends Annotation,V,E extends Exception> FunnyCommandsConfiguration validator(@Nullable @Nullable Class<A> annotation, @Nullable @Nullable Class<V> type, org.panda_lang.utilities.commons.function.ThrowingQuadFunction<Context,A,org.panda_lang.utilities.inject.InjectorProperty,V,Boolean,E> function)
public <A extends Annotation,V,E extends Exception> FunnyCommandsConfiguration validator(Validator<A,V,E> validator)
public FunnyCommandsConfiguration completer(String name, org.panda_lang.utilities.commons.function.TriFunction<Context,String,Integer,List<String>> completer)
public FunnyCommandsConfiguration completer(Completer completer)
public <E extends Exception> FunnyCommandsConfiguration exceptionHandler(ExceptionHandler<E> exceptionHandler)
public <E extends Exception> FunnyCommandsConfiguration exceptionHandler(Class<E> exceptionType, Function<E,Boolean> exceptionConsumer)
public <R> FunnyCommandsConfiguration responseHandler(ResponseHandler<R> responseHandler)
public <R> FunnyCommandsConfiguration responseHandler(Class<R> responseType, BiFunction<Context,R,Boolean> responseHandler)
public FunnyCommandsConfiguration permissionHandler(PermissionHandler permissionHandler)
public FunnyCommandsConfiguration usageHandler(UsageHandler usageHandler)
Copyright © 2021. All rights reserved.