Importing the class

Link to importing-the-class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

ZenScript
Copy
import crafttweaker.api.server.Filterable;

Extending Record

Link to extending-record

Filterable extends Record. That means all methods available in Record are also available in Filterable

Name: of

Return Type: Filterable<T>

ZenScript
Copy
Filterable.of<T : Object>(raw as T, filtered as @org.openzen.zencode.java.ZenCodeType.Nullable T) as Filterable<T>
ParameterTypeOptional
Parameter
raw
Type
T
Optional
false
Parameter
filtered
Type
@org.openzen.zencode.java.ZenCodeType.Nullable T
Optional
true
Parameter
T
Type
Object
Optional

Name: filtered

Return Type: @org.openzen.zencode.java.ZenCodeType.Nullable T

ZenScript
Copy
Filterable.filtered<T : Object>() as @org.openzen.zencode.java.ZenCodeType.Nullable T
ParameterType
Parameter
T
Type
Object

Name: getFiltered

Return Type: T

ZenScript
Copy
Filterable.getFiltered<T : Object>(filtered as boolean) as T
ParameterType
Parameter
filtered
Type
boolean
Parameter
T
Type
Object

Name: map

Return Type: Filterable<U>

ZenScript
Copy
Filterable.map<T : Object, U : Object>(mapper as Function<T,U>) as Filterable<U>
ParameterType
Parameter
mapper
Type
Function<T,U>
Parameter
T
Type
Object
Parameter
U
Type
Object

Name: raw

Return Type: T

ZenScript
Copy
Filterable.raw<T : Object>() as T
ParameterType
Parameter
T
Type
Object

Name: resolve

Return Type: invalid

ZenScript
Copy
Filterable.resolve<T : Object, U : Object>(resolver as Function) as invalid
ParameterType
Parameter
resolver
Type
Function
Parameter
T
Type
Object
Parameter
U
Type
Object