skript-mirror
GitHub
Search…
Primary version
skript-mirror
Getting Started
Basics
Reading Javadocs
Importing classes
Running Java code
Handling events
Utilities
Advanced
Code Conventions
Frequently Asked Questions
Powered By
GitBook
Utilities
Collect
Syntax
1
[%objects%]
2
[%objects% as %javatype%]
Copied!
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
1
...%object%
Copied!
Returns the contents of a single array, iterable, iterator, or stream.
Array Value
Syntax
1
%array%[%integer%]
Copied!
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
1
null
Copied!
Represents
null
in Java. This is different from Skript's
<none>
.
Bits
Syntax
1
[the] (bit %number%|bit(s| range) [from] %number%( to |[ ]-[ ])%number%) of %numbers%
2
%numbers%'[s] (bit %number%|1¦bit(s| range) [from] %number%( to |[ ]-[ ])%number%)
Copied!
Represents a subset of bits from a number.
This value may be read from and written to.
Raw Expression
Syntax
1
[the] raw %objects%
Copied!
Returns the underlying object of an expression.
Members
Syntax
1
[the] (fields|methods|constructors) of %objects%
2
%objects%'[s] (fields|methods|constructors)
Copied!
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
1
[the] (field|method) names of %objects%
2
%objects%'[s] (field|method) names
Copied!
Returns a list of the the fields or methods of an object.
Is Instance
Syntax
1
%objects% (is|are) [a[n]] instance[s] of %javatypes%
2
%objects% (is not|isn't|are not|aren't) [a[n]] instance[s] of %javatypes%
Copied!
Checks whether objects are instances of the given java types.
Previous
Handling events
Next
Advanced
Last modified
3yr ago
Copy link
Contents
Collect
Spread
Array Value
Null
Bits
Raw Expression
Members
Member Names
Is Instance