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.
Object
public
Fields
script
FieldScript
protected final
async
Fieldboolean
protected final
invoker
FieldMethodAccessor
protected
verifier
FieldMethodAccessor
protected
parameters
Fieldint
protected
Methods
invoke (Object...)
MethodInvokes this member directly.
This will not run on a script thread, so may not function properly. See run for the safe invocation method.
Index | Type | Name |
---|---|---|
1 | Object[] | arguments |
Object
public varargs
run (Object...)
MethodTriggers 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.
Index | Type | Name |
---|---|---|
1 | Object[] | arguments |
Future
public varargs
run (Skript, Object...)
MethodTriggers 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.
Index | Type | Name |
---|---|---|
1 | Skript | skript |
2 | Object[] | arguments |
Future
public varargs
verify ()
MethodTriggers 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.
void
public
getScript ()
MethodGets the script instance that provided this member.
Script
public