Represents the palette that map items use.
More...
|
| static BufferedImage | resizeImage (Image image) |
| | Resize an image to 128x128.
|
| |
| static byte[] | imageToBytes (Image image) |
| | Convert an Image to a byte[] using the palette.
|
| |
| static byte | matchColor (int r, int g, int b) |
| | Get the index of the closest matching color in the palette to the given color.
|
| |
| static byte | matchColor (Color color) |
| | Get the index of the closest matching color in the palette to the given color.
|
| |
| static Color | getColor (byte index) |
| | Get the value of the given color in the palette.
|
| |
Represents the palette that map items use.
Definition at line 11 of file MapPalette.java.
| static Color org.bukkit.map.MapPalette.getColor |
( |
byte |
index | ) |
|
|
static |
Get the value of the given color in the palette.
- Parameters
-
| index | The index in the palette. |
- Returns
- The Color of the palette entry.
Definition at line 146 of file MapPalette.java.
| static byte [] org.bukkit.map.MapPalette.imageToBytes |
( |
Image |
image | ) |
|
|
static |
| static byte org.bukkit.map.MapPalette.matchColor |
( |
int |
r, |
|
|
int |
g, |
|
|
int |
b |
|
) |
| |
|
static |
Get the index of the closest matching color in the palette to the given color.
- Parameters
-
| r | The red component of the color. |
| b | The blue component of the color. |
| g | The green component of the color. |
- Returns
- The index in the palette.
Definition at line 113 of file MapPalette.java.
Referenced by org.bukkit.map.MapPalette.imageToBytes().
| static byte org.bukkit.map.MapPalette.matchColor |
( |
Color |
color | ) |
|
|
static |
Get the index of the closest matching color in the palette to the given color.
- Parameters
-
- Returns
- The index in the palette.
Definition at line 123 of file MapPalette.java.
| static BufferedImage org.bukkit.map.MapPalette.resizeImage |
( |
Image |
image | ) |
|
|
static |
Resize an image to 128x128.
- Parameters
-
| image | The image to resize. |
- Returns
- The resized image.
Definition at line 75 of file MapPalette.java.
| final byte org.bukkit.map.MapPalette.BLUE = 48 |
|
static |
| final byte org.bukkit.map.MapPalette.BROWN = 40 |
|
static |
| final byte org.bukkit.map.MapPalette.DARK_BROWN = 52 |
|
static |
| final byte org.bukkit.map.MapPalette.DARK_GRAY = 44 |
|
static |
| final byte org.bukkit.map.MapPalette.DARK_GREEN = 28 |
|
static |
| final byte org.bukkit.map.MapPalette.GRAY_1 = 12 |
|
static |
| final byte org.bukkit.map.MapPalette.GRAY_2 = 24 |
|
static |
| final byte org.bukkit.map.MapPalette.LIGHT_BROWN = 8 |
|
static |
| final byte org.bukkit.map.MapPalette.LIGHT_GRAY = 36 |
|
static |
| final byte org.bukkit.map.MapPalette.LIGHT_GREEN = 4 |
|
static |
| final byte org.bukkit.map.MapPalette.PALE_BLUE = 20 |
|
static |
| final byte org.bukkit.map.MapPalette.RED = 16 |
|
static |
| final byte org.bukkit.map.MapPalette.TRANSPARENT = 0 |
|
static |
The base color ranges.
Each entry corresponds to four colors of varying shades with values entry to entry + 3.
Definition at line 54 of file MapPalette.java.
| final byte org.bukkit.map.MapPalette.WHITE = 32 |
|
static |
The documentation for this class was generated from the following file: