CustomData
Link to customdata
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.item.component.CustomData;
Static Methods
Link to static-methods
Name: of
Return Type: CustomData
ZenScript CopyCustomData.of(tag as MapData) as CustomData
Parameter | Type |
---|---|
Parameter tag | Type MapData |
Methods
Link to methods
Name: contains
Return Type: boolean
ZenScript CopyCustomData.contains(key as string) as boolean
Parameter | Type |
---|---|
Parameter key | Type string |
Name: matchedBy
Return Type: boolean
ZenScript CopyCustomData.matchedBy(tag as MapData) as boolean
Parameter | Type |
---|---|
Parameter tag | Type MapData |
Name: update
Return Type: CustomData
ZenScript CopyCustomData.update(updater as Consumer<MapData>) as CustomData
Parameter | Type |
---|---|
Parameter updater | Type Consumer<MapData> |
Properties
Link to properties
Name | Type | Has Getter | Has Setter |
---|---|---|---|
Name copyTag | Type invalid | Has Getter true | Has Setter false |
Name isEmpty | Type boolean | Has Getter true | Has Setter false |
Name size | Type int | Has Getter true | Has Setter false |