MapDecorationType

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.

script.zs
import crafttweaker.api.world.map.MapDecorationType;

Enum Constants

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

script.zs
<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>

Methods

Return Type: byte

script.zs
// MapDecorationType.getIcon() as byte
myMapDecorationType.getIcon();

Return Type: int

script.zs
// MapDecorationType.getMapColor() as int
myMapDecorationType.getMapColor();

Return Type: boolean

script.zs
// MapDecorationType.hasMapColor() as boolean
myMapDecorationType.hasMapColor();

Return Type: boolean

script.zs
// MapDecorationType.isRenderedOnFrame() as boolean
myMapDecorationType.isRenderedOnFrame();

Return Type: boolean

script.zs
// MapDecorationType.shouldTrackCount() as boolean
myMapDecorationType.shouldTrackCount();

Properties

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