Primary version

Utilities

Collect

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.

Spread

Syntax
...%object%

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

Array Value

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.

Null

Syntax
null

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

Bits

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.

Raw Expression

Syntax
[the] raw %objects%

Returns the underlying object of an expression.

Members

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.

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.

Is Instance

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.

Last updated