public final class MapPalette extends Object
These fields are hee base color ranges. Each entry corresponds to four colors of varying shades with values entry to entry + 3.
| Modifier and Type | Field and Description | 
|---|---|
static byte | 
BLUE
Deprecated. 
 
Magic value 
 | 
static byte | 
BROWN
Deprecated. 
 
Magic value 
 | 
static byte | 
DARK_BROWN
Deprecated. 
 
Magic value 
 | 
static byte | 
DARK_GRAY
Deprecated. 
 
Magic value 
 | 
static byte | 
DARK_GREEN
Deprecated. 
 
Magic value 
 | 
static byte | 
GRAY_1
Deprecated. 
 
Magic value 
 | 
static byte | 
GRAY_2
Deprecated. 
 
Magic value 
 | 
static byte | 
LIGHT_BROWN
Deprecated. 
 
Magic value 
 | 
static byte | 
LIGHT_GRAY
Deprecated. 
 
Magic value 
 | 
static byte | 
LIGHT_GREEN
Deprecated. 
 
Magic value 
 | 
static byte | 
PALE_BLUE
Deprecated. 
 
Magic value 
 | 
static byte | 
RED
Deprecated. 
 
Magic value 
 | 
static byte | 
TRANSPARENT
Deprecated. 
 
Magic value 
 | 
static byte | 
WHITE
Deprecated. 
 
Magic value 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static @NotNull Color | 
getColor(byte index)
Deprecated. 
 
Magic value 
 | 
static @NotNull byte[] | 
imageToBytes(@NotNull Image image)
Deprecated. 
 
Magic value 
 | 
static byte | 
matchColor(@NotNull Color color)
Deprecated. 
 
Magic value 
 | 
static byte | 
matchColor(int r,
          int g,
          int b)
Deprecated. 
 
Magic value 
 | 
static @NotNull BufferedImage | 
resizeImage(@Nullable Image image)
Resize an image to 128x128. 
 | 
@Deprecated public static final byte TRANSPARENT
@Deprecated public static final byte LIGHT_GREEN
@Deprecated public static final byte LIGHT_BROWN
@Deprecated public static final byte GRAY_1
@Deprecated public static final byte RED
@Deprecated public static final byte PALE_BLUE
@Deprecated public static final byte GRAY_2
@Deprecated public static final byte DARK_GREEN
@Deprecated public static final byte WHITE
@Deprecated public static final byte LIGHT_GRAY
@Deprecated public static final byte BROWN
@Deprecated public static final byte DARK_GRAY
@Deprecated public static final byte BLUE
@Deprecated public static final byte DARK_BROWN
@NotNull public static @NotNull BufferedImage resizeImage(@Nullable @Nullable Image image)
image - The image to resize.@Deprecated @NotNull public static @NotNull byte[] imageToBytes(@NotNull @NotNull Image image)
image - The image to convert.@Deprecated public static byte matchColor(int r, int g, int b)
r - The red component of the color.b - The blue component of the color.g - The green component of the color.@Deprecated public static byte matchColor(@NotNull @NotNull Color color)
color - The Color to match.@Deprecated @NotNull public static @NotNull Color getColor(byte index)
index - The index in the palette.Copyright © 2022. All rights reserved.