- Jan 20, 2018
- 1,501
- 109
- 63
- 21
Collect
Syntax:
Creates an array containing the specified objects. Specifying a type determines the component type of the resulting array.
Spread
Syntax:
Returns the contents of a single array, iterable, iterator, or stream.
Array value
Syntax:
Represents the value at a certain index of an array.
This value may be read from and written to.
Null
Syntax:
Represents null in Java. This is different from Skript's <none>.
Bits
Syntax:
Represents a subset of bits from a number.
This value may be read from and written to.
Raw expression
Syntax:
Returns the underlying object of an expression.
Members
Syntax:
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:
Returns a list of the fields or methods of an object.
Is instance
Syntax:
Checks whether objects are instances of the given java types.
Syntax:
Code:
[%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:
Code:
...%object%
Returns the contents of a single array, iterable, iterator, or stream.
Array value
Syntax:
Code:
%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:
Code:
null
Bits
Syntax:
Code:
[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:
Code:
[the] raw %objects%
Returns the underlying object of an expression.
When used with the expression-expression, you can set it to a value, which will change the input value from that argument. This can be used to store data in variables in the calling trigger.
Code:
import:
ch.njol.skript.lang.Variable
effect put %objects% in %objects%:
parse:
expr-2 is an instance of Variable # to check if the second argument is a variable
continue
trigger:
set raw expr-2 to expr-1
Members
Syntax:
Code:
[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:
Code:
[the] (field|method) names of %objects%
%objects%'[s] (field|method) names
Returns a list of the fields or methods of an object.
Is instance
Syntax:
Code:
%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.