Package ch.njol.skript.lang.function
Class SimpleJavaFunction<T>
java.lang.Object
ch.njol.skript.lang.function.Function<T>
ch.njol.skript.lang.function.JavaFunction<T>
ch.njol.skript.lang.function.SimpleJavaFunction<T>
- All Implemented Interfaces:
Documentable
,Function<T>
@Deprecated(since="2.13",
forRemoval=true)
public abstract class SimpleJavaFunction<T>
extends JavaFunction<T>
Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Summary
Fields inherited from class ch.njol.skript.lang.function.Function
executeWithNulls
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleJavaFunction
(Signature<T> sign) Deprecated, for removal: This API element is subject to removal in a future version.SimpleJavaFunction
(String name, Parameter<?>[] parameters, ClassInfo<T> returnType, boolean single) Deprecated, for removal: This API element is subject to removal in a future version.SimpleJavaFunction
(String name, Parameter<?>[] parameters, ClassInfo<T> returnType, boolean single, Contract contract) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionfinal T @Nullable []
execute
(FunctionEvent<?> event, Object[][] params) Deprecated, for removal: This API element is subject to removal in a future version.Executes this function with given parameters.abstract T @Nullable []
executeSimple
(Object[][] params) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class ch.njol.skript.lang.function.JavaFunction
description, description, examples, examples, getDescription, getExamples, getKeywords, getSince, keywords, keywords, name, requires, resetReturnValue, returnedKeys, setReturnedKeys, since, since
Methods inherited from class ch.njol.skript.lang.function.Function
execute, getName, getParameter, getParameters, getReturnType, getSignature, isSingle, signature, toString
-
Constructor Details
-
SimpleJavaFunction
Deprecated, for removal: This API element is subject to removal in a future version. -
SimpleJavaFunction
public SimpleJavaFunction(String name, Parameter<?>[] parameters, ClassInfo<T> returnType, boolean single) Deprecated, for removal: This API element is subject to removal in a future version. -
SimpleJavaFunction
public SimpleJavaFunction(String name, Parameter<?>[] parameters, ClassInfo<T> returnType, boolean single, Contract contract) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
execute
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:Function
Executes this function with given parameters. Usually, usingFunction.execute(Object[][])
is better; it handles optional and keyed arguments and function event creation automatically.- Specified by:
execute
in classJavaFunction<T>
- Parameters:
event
- Associated function event. This is usually created by Skript.params
- Function parameters. There must beSignature.getMaxParameters()
amount of them, and you need to manually handle default values.- Returns:
- Function return value(s).
-
executeSimple
Deprecated, for removal: This API element is subject to removal in a future version.
-
DefaultFunction
instead.