Package me.despical.commandframework
Class ParameterHandler
java.lang.Object
me.despical.commandframework.ParameterHandler
- Author:
- Despical
Created at 18.07.2024
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> voidaddCustomParameter(@NotNull Class<T> clazz, @NotNull Function<CommandArguments, T> function) <A,B extends A>
voidaddCustomParameter(@NotNull String key, @NotNull Function<CommandArguments, B> function) @NotNull Object[]getParameterArray(Method method, CommandArguments commandArguments)
-
Constructor Details
-
ParameterHandler
public ParameterHandler()
-
-
Method Details
-
addCustomParameter
public <A,B extends A> void addCustomParameter(@NotNull @NotNull String key, @NotNull @NotNull Function<CommandArguments, B> function) -
addCustomParameter
public <T> void addCustomParameter(@NotNull @NotNull Class<T> clazz, @NotNull @NotNull Function<CommandArguments, T> function) -
getParameterArray
@NotNull public @NotNull Object[] getParameterArray(Method method, CommandArguments commandArguments) throws Exception - Throws:
Exception
-