Filterable
Link to filterable
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 Copyimport 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
Static Methods
Link to static-methods
Name: of
Return Type: Filterable<T>
ZenScript CopyFilterable.of<T : Object>(raw as T, filtered as @org.openzen.zencode.java.ZenCodeType.Nullable T) as Filterable<T>
Parameter | Type | Optional |
---|---|---|
Parameter raw | Type T | Optional false |
Parameter filtered | Type @org.openzen.zencode.java.ZenCodeType.Nullable T | Optional true |
Parameter T | Type Object | Optional |
Methods
Link to methods
Name: filtered
Return Type: @org.openzen.zencode.java.ZenCodeType.Nullable T
ZenScript CopyFilterable.filtered<T : Object>() as @org.openzen.zencode.java.ZenCodeType.Nullable T
Parameter | Type |
---|---|
Parameter T | Type Object |
Name: getFiltered
Return Type: T
ZenScript CopyFilterable.getFiltered<T : Object>(filtered as boolean) as T
Parameter | Type |
---|---|
Parameter filtered | Type boolean |
Parameter T | Type Object |
Name: map
Return Type: Filterable<U>
ZenScript CopyFilterable.map<T : Object, U : Object>(mapper as Function<T,U>) as Filterable<U>
Parameter | Type |
---|---|
Parameter mapper | Type Function<T,U> |
Parameter T | Type Object |
Parameter U | Type Object |
Name: raw
Return Type: T
ZenScript CopyFilterable.raw<T : Object>() as T
Parameter | Type |
---|---|
Parameter T | Type Object |
Name: resolve
Return Type: invalid
ZenScript CopyFilterable.resolve<T : Object, U : Object>(resolver as Function) as invalid
Parameter | Type |
---|---|
Parameter resolver | Type Function |
Parameter T | Type Object |
Parameter U | Type Object |