MapDecorationType
Link to mapdecorationtype
导入类
Link to 导入类
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.world.map.MapDecorationType;
Enum Constants
Link to enum-constants
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>
使用方式
Link to 使用方式
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();
Name: isRenderedOnFrame
Return Type: boolean
ZenScript Copy// MapDecorationType.isRenderedOnFrame() as boolean
myMapDecorationType.isRenderedOnFrame();
Name: shouldTrackCount
Return Type: boolean
ZenScript Copy// MapDecorationType.shouldTrackCount() as boolean
myMapDecorationType.shouldTrackCount();
名称 | 类型 | 可获得 | 可设置 |
---|---|---|---|
名称 getMapColor #获取地图颜色 | 类型 int | 可获得 true | 可设置 false |
名称 hasMapColor | 类型 布尔值 | 可获得 true | 可设置 false |
名称 icon | 类型 byte | 可获得 true | 可设置 false |
名称 isRenderedOnFrame | 类型 布尔值 | 可获得 true | 可设置 false |
名称 shouldTrackCount | 类型 布尔值 | 可获得 true | 可设置 false |