Class 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.
Use DefaultFunction instead.
  • Constructor Details

    • SimpleJavaFunction

      public SimpleJavaFunction(Signature<T> sign)
      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

      public final T @Nullable [] execute(FunctionEvent<?> event, Object[][] params)
      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, using Function.execute(Object[][]) is better; it handles optional and keyed arguments and function event creation automatically.
      Specified by:
      execute in class JavaFunction<T>
      Parameters:
      event - Associated function event. This is usually created by Skript.
      params - Function parameters. There must be Signature.getMaxParameters() amount of them, and you need to manually handle default values.
      Returns:
      Function return value(s).
    • executeSimple

      public abstract T @Nullable [] executeSimple(Object[][] params)
      Deprecated, for removal: This API element is subject to removal in a future version.