Class MapPalette

java.lang.Object
org.bukkit.map.MapPalette

public final class MapPalette extends Object
Represents the palette that map items use.

These fields are hee base color ranges. Each entry corresponds to four colors of varying shades with values entry to entry + 3.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static interface 
    Holds cached information for matching map colors of a given RBG color.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final byte
    Deprecated.
    Magic value
    static final byte
    Deprecated.
    Magic value
    static final byte
    Deprecated.
    Magic value
    static final byte
    Deprecated.
    Magic value
    static final byte
    Deprecated.
    Magic value
    static final byte
    Deprecated.
    Magic value
    static final byte
    Deprecated.
    Magic value
    static final byte
    Deprecated.
    Magic value
    static final byte
    Deprecated.
    Magic value
    static final byte
    Deprecated.
    Magic value
    static final byte
    Deprecated.
    Magic value
    static final byte
    Deprecated.
    Magic value
    static final byte
    Deprecated.
    Magic value
    static final byte
    Deprecated.
    Magic value
  • Method Summary

    Modifier and Type
    Method
    Description
    getColor(byte index)
    Deprecated, for removal: This API element is subject to removal in a future version.
    use color directly
    static @org.jetbrains.annotations.NotNull byte[]
    Deprecated, for removal: This API element is subject to removal in a future version.
    use color-related methods
    static byte
    matchColor(int r, int g, int b)
    Deprecated, for removal: This API element is subject to removal in a future version.
    use color-related methods
    static byte
    Deprecated, for removal: This API element is subject to removal in a future version.
    use color-related methods
    Resize an image to 128x128.
    static void
    Sets the given MapColorCache.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait