001package net.minecraft.block.material;
002
003public class MapColor
004{
005    /**
006     * Holds all the 16 colors used on maps, very similar of a pallete system.
007     */
008    public static final MapColor[] mapColorArray = new MapColor[16];
009
010    /** The map color for Air blocks */
011    public static final MapColor airColor = new MapColor(0, 0);
012
013    /** this is the grass color in html format */
014    public static final MapColor grassColor = new MapColor(1, 8368696);
015
016    /** This is the color of the sand */
017    public static final MapColor sandColor = new MapColor(2, 16247203);
018
019    /** The map color for Cloth and Sponge blocks */
020    public static final MapColor clothColor = new MapColor(3, 10987431);
021
022    /** The map color for TNT blocks */
023    public static final MapColor tntColor = new MapColor(4, 16711680);
024
025    /** The map color for Ice blocks */
026    public static final MapColor iceColor = new MapColor(5, 10526975);
027
028    /** The map color for Iron blocks */
029    public static final MapColor ironColor = new MapColor(6, 10987431);
030
031    /** The map color for Leaf, Plant, Cactus, and Pumpkin blocks. */
032    public static final MapColor foliageColor = new MapColor(7, 31744);
033
034    /** The map color for Snow Cover and Snow blocks */
035    public static final MapColor snowColor = new MapColor(8, 16777215);
036
037    /** The map color for Clay blocks */
038    public static final MapColor clayColor = new MapColor(9, 10791096);
039
040    /** The map color for Dirt blocks */
041    public static final MapColor dirtColor = new MapColor(10, 12020271);
042
043    /** The map color for Stone blocks */
044    public static final MapColor stoneColor = new MapColor(11, 7368816);
045
046    /** The map color for Water blocks */
047    public static final MapColor waterColor = new MapColor(12, 4210943);
048
049    /** The map color for Wood blocks */
050    public static final MapColor woodColor = new MapColor(13, 6837042);
051
052    /** Holds the color in RGB value that will be rendered on maps. */
053    public final int colorValue;
054
055    /** Holds the index of the color used on map. */
056    public final int colorIndex;
057
058    private MapColor(int par1, int par2)
059    {
060        this.colorIndex = par1;
061        this.colorValue = par2;
062        mapColorArray[par1] = this;
063    }
064}