MapDecorations
Link to mapdecorations
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.MapDecorations;
Extending Record
Link to extending-record
MapDecorations extends Record. That means all methods available in Record are also available in MapDecorations
Static Methods
Link to static-methods
Name: of
Return Type: MapDecorations
ZenScript CopyMapDecorations.of(decorations as MapDecorationsEntry[string]) as MapDecorations
Parameter | Type |
---|---|
Parameter decorations | Type MapDecorationsEntry[string] |
Methods
Link to methods
Name: withDecoration
Return Type: MapDecorations
ZenScript CopyMapDecorations.withDecoration(name as string, entry as MapDecorationsEntry) as MapDecorations
Parameter | Type |
---|---|
Parameter name | Type string |
Parameter entry | Type MapDecorationsEntry |
Properties
Link to properties
Name | Type | Has Getter | Has Setter |
---|---|---|---|
Name decorations | Type MapDecorationsEntry[string] | Has Getter true | Has Setter false |