Enum Class MapColors

java.lang.Object
java.lang.Enum<MapColors>
net.minestom.server.map.MapColors
All Implemented Interfaces:
Serializable, Comparable<MapColors>, Constable

public enum MapColors extends Enum<MapColors>
  • Enum Constant Details

    • NONE

      public static final MapColors NONE
    • GRASS

      public static final MapColors GRASS
    • SAND

      public static final MapColors SAND
    • WOOL

      public static final MapColors WOOL
    • FIRE

      public static final MapColors FIRE
    • ICE

      public static final MapColors ICE
    • METAL

      public static final MapColors METAL
    • PLANT

      public static final MapColors PLANT
    • SNOW

      public static final MapColors SNOW
    • CLAY

      public static final MapColors CLAY
    • DIRT

      public static final MapColors DIRT
    • STONE

      public static final MapColors STONE
    • WATER

      public static final MapColors WATER
    • WOOD

      public static final MapColors WOOD
    • QUARTZ

      public static final MapColors QUARTZ
    • COLOR_ORANGE

      public static final MapColors COLOR_ORANGE
    • COLOR_MAGENTA

      public static final MapColors COLOR_MAGENTA
    • COLOR_LIGHT_BLUE

      public static final MapColors COLOR_LIGHT_BLUE
    • COLOR_YELLOW

      public static final MapColors COLOR_YELLOW
    • COLOR_LIGHT_GREEN

      public static final MapColors COLOR_LIGHT_GREEN
    • COLOR_PINK

      public static final MapColors COLOR_PINK
    • COLOR_GRAY

      public static final MapColors COLOR_GRAY
    • COLOR_LIGHT_GRAY

      public static final MapColors COLOR_LIGHT_GRAY
    • COLOR_CYAN

      public static final MapColors COLOR_CYAN
    • COLOR_PURPLE

      public static final MapColors COLOR_PURPLE
    • COLOR_BLUE

      public static final MapColors COLOR_BLUE
    • COLOR_BROWN

      public static final MapColors COLOR_BROWN
    • COLOR_GREEN

      public static final MapColors COLOR_GREEN
    • COLOR_RED

      public static final MapColors COLOR_RED
    • COLOR_BLACK

      public static final MapColors COLOR_BLACK
    • GOLD

      public static final MapColors GOLD
    • DIAMOND

      public static final MapColors DIAMOND
    • LAPIS

      public static final MapColors LAPIS
    • EMERALD

      public static final MapColors EMERALD
    • PODZOL

      public static final MapColors PODZOL
    • NETHER

      public static final MapColors NETHER
    • TERRACOTTA_WHITE

      public static final MapColors TERRACOTTA_WHITE
    • TERRACOTTA_ORANGE

      public static final MapColors TERRACOTTA_ORANGE
    • TERRACOTTA_MAGENTA

      public static final MapColors TERRACOTTA_MAGENTA
    • TERRACOTTA_LIGHT_BLUE

      public static final MapColors TERRACOTTA_LIGHT_BLUE
    • TERRACOTTA_YELLOW

      public static final MapColors TERRACOTTA_YELLOW
    • TERRACOTTA_LIGHT_GREEN

      public static final MapColors TERRACOTTA_LIGHT_GREEN
    • TERRACOTTA_PINK

      public static final MapColors TERRACOTTA_PINK
    • TERRACOTTA_GRAY

      public static final MapColors TERRACOTTA_GRAY
    • TERRACOTTA_LIGHT_GRAY

      public static final MapColors TERRACOTTA_LIGHT_GRAY
    • TERRACOTTA_CYAN

      public static final MapColors TERRACOTTA_CYAN
    • TERRACOTTA_PURPLE

      public static final MapColors TERRACOTTA_PURPLE
    • TERRACOTTA_BLUE

      public static final MapColors TERRACOTTA_BLUE
    • TERRACOTTA_BROWN

      public static final MapColors TERRACOTTA_BROWN
    • TERRACOTTA_GREEN

      public static final MapColors TERRACOTTA_GREEN
    • TERRACOTTA_RED

      public static final MapColors TERRACOTTA_RED
    • TERRACOTTA_BLACK

      public static final MapColors TERRACOTTA_BLACK
    • CRIMSON_NYLIUM

      public static final MapColors CRIMSON_NYLIUM
    • CRIMSON_STEM

      public static final MapColors CRIMSON_STEM
    • CRIMSON_HYPHAE

      public static final MapColors CRIMSON_HYPHAE
    • WARPED_NYLIUM

      public static final MapColors WARPED_NYLIUM
    • WARPED_STEM

      public static final MapColors WARPED_STEM
    • WARPED_HYPHAE

      public static final MapColors WARPED_HYPHAE
    • WARPED_WART_BLOCK

      public static final MapColors WARPED_WART_BLOCK
  • Method Details

    • values

      public static MapColors[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MapColors valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • multiply53

      public byte multiply53()
      Returns the color index with RGB multiplied by 0.53, to use on a map
    • multiply86

      public byte multiply86()
      Returns the color index with RGB multiplied by 0.86, to use on a map
    • multiply71

      public byte multiply71()
      Returns the color index with RGB multiplied by 0.71, to use on a map
    • baseColor

      public byte baseColor()
      Returns the color index to use on a map
    • red

      public int red()
    • green

      public int green()
    • blue

      public int blue()
    • closestColor

      public static MapColors.PreciseMapColor closestColor(int argb)