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<A,B extends A>
voidaddCustomParameter(@NotNull String value, @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 value, @NotNull @NotNull Function<CommandArguments, B> function) -
getParameterArray
@NotNull public @NotNull Object[] getParameterArray(Method method, CommandArguments commandArguments) throws Exception - Throws:
Exception
-