Package dev.cerus.maps.api.colormap
Class ColorMap
java.lang.Object
dev.cerus.maps.api.colormap.ColorMap
A container for map colors
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfromId(int id)
Find color by idgetById(int id)
Find color by idmapColorToRgb(byte color)
Find java color by idvoid
putColor(ColorMap.Color color)
rgbToMapColor(int r, int g, int b)
Find color by RGB
-
Constructor Details
-
ColorMap
public ColorMap()
-
-
Method Details
-
putColor
-
fromId
Find color by id- Parameters:
id
- Map color id- Returns:
- Color or null
-
getById
Find color by id- Parameters:
id
- Map color id- Returns:
- Color or null
-
mapColorToRgb
Find java color by id- Parameters:
color
- Map color id- Returns:
- Java color or java color id 0 (or null)
-
rgbToMapColor
Find color by RGB- Parameters:
r
- Redg
- Greenb
- Blue- Returns:
- Color or transparent color (0) (or null)
-
getColors
-