Utilities

Syntax
[%objects%]
[%objects% as %javatype%]
Creates an array containing the specified objects. Specifying a type determines the component type of the resulting array.
The brackets in this syntax are literal, not representing an optional group.

Syntax
...%object%
Returns the contents of a single array, iterable, iterator, or stream.

Syntax
%array%[%integer%]
Represents the value at a certain index of an array.
This value may be read from and written to.
The brackets in this syntax are literal, not representing an optional group.

Syntax
null
Represents null in Java. This is different from Skript's <none>.

Syntax
[the] (bit %number%|bit(s| range) [from] %number%( to |[ ]-[ ])%number%) of %numbers%
%numbers%'[s] (bit %number%|1¦bit(s| range) [from] %number%( to |[ ]-[ ])%number%)
Represents a subset of bits from a number.
This value may be read from and written to.

Syntax
[the] raw %objects%
Returns the underlying object of an expression.

Syntax
[the] (fields|methods|constructors) of %objects%
%objects%'[s] (fields|methods|constructors)
Returns a list of the fields, methods, or constructors of an object, including their modifiers and parameters.
If you need a list of field or method names without modifier or parameter details, see Member Names.

Syntax
[the] (field|method) names of %objects%
%objects%'[s] (field|method) names
Returns a list of the the fields or methods of an object.

Syntax
%objects% (is|are) [a[n]] instance[s] of %javatypes%
%objects% (is not|isn't|are not|aren't) [a[n]] instance[s] of %javatypes%
Checks whether objects are instances of the given java types.
Copy link
On this page
Collect
Spread
Array Value
Null
Bits
Raw Expression
Members
Member Names
Is Instance