MapDecorations

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

script.zs
import crafttweaker.api.item.component.MapDecorations;

Members

Getter
script.zs
// MapDecorations.decorations as MapDecorationsEntry[string]
myMapDecorations.decorations

Return Type: MapDecorationsEntry[string]

static of(decorations as Entry[string]) as MapDecorations
script.zs
// MapDecorations.of(decorations as MapDecorationsEntry[string]) as MapDecorations;
MapDecorations.of(myMap);

Parameters:

decorations Type: MapDecorationsEntry[string]

Return Type: MapDecorations

withDecoration(name as string, entry as Entry) as MapDecorations
script.zs
// MapDecorations.withDecoration(name as string, entry as MapDecorationsEntry) as MapDecorations;
myMapDecorations.withDecoration(myString, myEntry);

Parameters:

name Type: string

Return Type: MapDecorations