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();
Свойства
Link to свойства
Название | Тип | Имеет Getter | Имеет Setter |
---|---|---|---|
Название getMapColor | Тип int | Имеет Getter true | Имеет Setter false |
Название hasMapColor | Тип boolean | Имеет Getter true | Имеет Setter false |
Название icon | Тип byte | Имеет Getter true | Имеет Setter false |
Название isRenderedOnFrame | Тип boolean | Имеет Getter true | Имеет Setter false |
Название shouldTrackCount | Тип boolean | Имеет Getter true | Имеет Setter false |