Member

Class

A handle for a function, event, etc. inside a script.

Keeping strong references to this is not advised, since it will prevent safe unloading. The member can be triggered safely from this.

Extends

Object

Modifiers

public

Fields


script

Field
No description is available for this element.
Type

Script

Modifiers

protected final

async

Field
No description is available for this element.
Type

boolean

Modifiers

protected final

invoker

Field
No description is available for this element.
Type

MethodAccessor

Modifiers

protected

verifier

Field
No description is available for this element.
Type

MethodAccessor

Modifiers

protected

parameters

Field
No description is available for this element.
Type

int

Modifiers

protected



Methods


invoke (Object...)

Method

Invokes this member directly.

This will not run on a script thread, so may not function properly. See run for the safe invocation method.

IndexTypeName
1Object[]arguments
Return Type

Object

Modifiers

public varargs

run (Object...)

Method

Triggers this member in a new script thread. This will be run in the runtime from which the member was originally loaded.

This is the safe and correct way to trigger a function from a Java process.

IndexTypeName
1Object[]arguments
Return Type

Future

Modifiers

public varargs

run (Skript, Object...)

Method

Triggers this member in a new script thread. This allows running in a different script runtime.

This is potentially unsafe - alternative class versions can bleed between runtimes.

IndexTypeName
1Skriptskript
2Object[]arguments
Return Type

Future

Modifiers

public varargs

verify ()

Method

Triggers this member's verifier with a set of null parameters. Rather than returning a boolean result, this will throw an error if the verifier fails.

Return Type

void

Modifiers

public

getScript ()

Method

Gets the script instance that provided this member.

Return Type

Script

Modifiers

public