public class Annotations extends Layer
Value | Colour | Data value | Value | Colour | Data value |
---|---|---|---|---|---|
0 | - | - | 8 | Light Grey | 8 |
1 | White | 0 | 9 | Cyan | 9 |
2 | Orange | 1 | 10 | Purple | 10 |
3 | Magenta | 2 | 11 | Blue | 11 |
4 | Light Blue | 3 | 12 | Brown | 12 |
5 | Yellow | 4 | 13 | Green | 13 |
6 | Lime | 5 | 14 | Red | 14 |
7 | Pink | 6 | 15 | Black | 15 |
This also means that the layer values do not map 1:1 to indexes into the Material.WOOLS
array.
Layer.DataSize
Modifier and Type | Field and Description |
---|---|
static Annotations |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
static int |
getColour(int layerValue,
ColourScheme colourScheme)
Convenience method to get the appropriate colour for a particular layer value, as a packed RGB
int . |
static java.lang.String |
getColourName(int layerValue)
Convenience method to get the appropriate colour name for a particular layer value.
|
compareTo, equals, getDataSize, getDefaultValue, getDescription, getExporter, getExporterType, getIcon, getId, getMnemonic, getName, getPriority, getRenderer, hashCode, isExportableToFile, setDescription, setName, toString
public static final Annotations INSTANCE
public static int getColour(int layerValue, ColourScheme colourScheme)
int
.public static java.lang.String getColourName(int layerValue)