MapDecorationType

Link to mapdecorationtype

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.world.map.MapDecorationType;

MapDecorationType is an enum. It has 27 enum constants. They are accessible using the code below.

ZenScript
Copy
<constant:minecraft:world/map/decorationtype:player>
<constant:minecraft:world/map/decorationtype:frame>
<constant:minecraft:world/map/decorationtype:red_marker>
<constant:minecraft:world/map/decorationtype:blue_marker>
<constant:minecraft:world/map/decorationtype:target_x>
<constant:minecraft:world/map/decorationtype:target_point>
<constant:minecraft:world/map/decorationtype:player_off_map>
<constant:minecraft:world/map/decorationtype:player_off_limits>
<constant:minecraft:world/map/decorationtype:mansion>
<constant:minecraft:world/map/decorationtype:monument>
<constant:minecraft:world/map/decorationtype:banner_white>
<constant:minecraft:world/map/decorationtype:banner_orange>
<constant:minecraft:world/map/decorationtype:banner_magenta>
<constant:minecraft:world/map/decorationtype:banner_light_blue>
<constant:minecraft:world/map/decorationtype:banner_yellow>
<constant:minecraft:world/map/decorationtype:banner_lime>
<constant:minecraft:world/map/decorationtype:banner_pink>
<constant:minecraft:world/map/decorationtype:banner_gray>
<constant:minecraft:world/map/decorationtype:banner_light_gray>
<constant:minecraft:world/map/decorationtype:banner_cyan>
<constant:minecraft:world/map/decorationtype:banner_purple>
<constant:minecraft:world/map/decorationtype:banner_blue>
<constant:minecraft:world/map/decorationtype:banner_brown>
<constant:minecraft:world/map/decorationtype:banner_green>
<constant:minecraft:world/map/decorationtype:banner_red>
<constant:minecraft:world/map/decorationtype:banner_black>
<constant:minecraft:world/map/decorationtype:red_x>

Name: getIcon

Return Type: byte

ZenScript
Copy
// MapDecorationType.getIcon() as byte

myMapDecorationType.getIcon();

Name: getMapColor

Return Type: int

ZenScript
Copy
// MapDecorationType.getMapColor() as int

myMapDecorationType.getMapColor();

Name: hasMapColor

Return Type: boolean

ZenScript
Copy
// MapDecorationType.hasMapColor() as boolean

myMapDecorationType.hasMapColor();

Link to isRenderedOnFrame

Name: isRenderedOnFrame

Return Type: boolean

ZenScript
Copy
// MapDecorationType.isRenderedOnFrame() as boolean

myMapDecorationType.isRenderedOnFrame();

Link to shouldTrackCount

Name: shouldTrackCount

Return Type: boolean

ZenScript
Copy
// MapDecorationType.shouldTrackCount() as boolean

myMapDecorationType.shouldTrackCount();
NameTypeHas GetterHas Setter
Name
getMapColor
Type
int
Has Getter
true
Has Setter
false
Name
hasMapColor
Type
boolean
Has Getter
true
Has Setter
false
Name
icon
Type
byte
Has Getter
true
Has Setter
false
Name
isRenderedOnFrame
Type
boolean
Has Getter
true
Has Setter
false
Name
shouldTrackCount
Type
boolean
Has Getter
true
Has Setter
false