Package net.dzikoysk.funnycommands
Class FunnyCommandsConfiguration
java.lang.Object
net.dzikoysk.funnycommands.FunnyCommandsConfiguration
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Collection<Bind>protected final Collection<Class<?>>protected final Collection<Object>protected final Map<Class<? extends Exception>,ExceptionHandler<? extends Exception>> protected org.panda_lang.utilities.inject.Injectorprotected PermissionHandlerprotected final Supplier<org.bukkit.plugin.java.JavaPlugin>protected final Map<Class<?>,ResponseHandler<?>> protected final Map<String,TypeMapper<?>> protected UsageHandlerprotected final Collection<Validator<?,?, ?>> -
Method Summary
Modifier and TypeMethodDescriptioncommands(Collection<? extends Class<?>> commandsClasses) completer(String name, panda.std.function.TriFunction<Context, String, Integer, List<String>> completer) <E extends Exception>
FunnyCommandsConfigurationexceptionHandler(Class<E> exceptionType, Function<E, Boolean> exceptionConsumer) <E extends Exception>
FunnyCommandsConfigurationexceptionHandler(ExceptionHandler<E> exceptionHandler) injector(org.panda_lang.utilities.inject.Injector injector) install()permissionHandler(PermissionHandler permissionHandler) registerComponent(Object componentInstance) registerComponents(Iterable<? extends Object> components) registerComponents(Object... components) responseHandler(Class<R> responseType, BiFunction<Context, R, Boolean> responseHandler) responseHandler(ResponseHandler<R> responseHandler) type(String typeName, Class<T> type, panda.std.function.TriFunction<Context, org.panda_lang.utilities.inject.Property, String, T> deserializer) type(CommandDataType<T> commandDataType) usageHandler(UsageHandler usageHandler) <A extends Annotation,V, E extends Exception>
FunnyCommandsConfigurationvalidator(@Nullable Class<A> annotation, @Nullable Class<V> type, panda.std.function.ThrowingQuadFunction<Context, A, org.panda_lang.utilities.inject.Property, V, Boolean, E> function) <A extends Annotation,V, E extends Exception>
FunnyCommandsConfiguration
-
Field Details
-
plugin
-
placeholders
-
commandsClasses
-
commandsInstances
-
completes
-
typeMappers
-
binds
-
validators
-
exceptionHandlers
protected final Map<Class<? extends Exception>,ExceptionHandler<? extends Exception>> exceptionHandlers -
responseHandlers
-
permissionHandler
-
usageHandler
-
injector
protected org.panda_lang.utilities.inject.Injector injector
-
-
Method Details
-
install
-
registerDefaultComponents
-
registerComponents
-
registerComponents
-
registerComponent
-
placeholders
-
commands
-
command
-
commands
-
type
-
type
public <T> FunnyCommandsConfiguration type(String typeName, Class<T> type, panda.std.function.TriFunction<Context, org.panda_lang.utilities.inject.Property, String, T> deserializer) -
bind
-
validator
public <A extends Annotation,V, FunnyCommandsConfiguration validatorE extends Exception> (@Nullable @Nullable Class<A> annotation, @Nullable @Nullable Class<V> type, panda.std.function.ThrowingQuadFunction<Context, A, org.panda_lang.utilities.inject.Property, V, Boolean, E> function) -
validator
public <A extends Annotation,V, FunnyCommandsConfiguration validatorE extends Exception> (Validator<A, V, E> validator) -
completer
-
completer
-
exceptionHandler
public <E extends Exception> FunnyCommandsConfiguration exceptionHandler(ExceptionHandler<E> exceptionHandler) -
exceptionHandler
public <E extends Exception> FunnyCommandsConfiguration exceptionHandler(Class<E> exceptionType, Function<E, Boolean> exceptionConsumer) -
responseHandler
-
responseHandler
public <R> FunnyCommandsConfiguration responseHandler(Class<R> responseType, BiFunction<Context, R, Boolean> responseHandler) -
permissionHandler
-
usageHandler
-
injector
-