HardcodedColourScheme. Left here just in case we need it to complete that new implementation@Deprecated public final class DynMapColourScheme extends Object implements ColourScheme
ColourScheme which can read
Dynmap
"classic" colour scheme files, such as those included with Dynmap.DEFAULT| Constructor and Description |
|---|
DynMapColourScheme(InputStream in,
boolean bright)
Deprecated.
Create a new Dynmap colour scheme, reading the Dynamp "classic" colour scheme-formatted colour map from an input
stream.
|
DynMapColourScheme(@NonNls String name,
boolean bright)
Deprecated.
Create a new Dynmap colour scheme, reading the Dynamp "classic" colour scheme-formatted colour map from a file
on the classpath.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getColour(int blockType)
Deprecated.
Get the colour of a particular Minecraft block type.
|
int |
getColour(int blockType,
int dataValue)
Deprecated.
Get the colour of a particular Minecraft block type with a particular data value.
|
int |
getColour(Material material)
Deprecated.
Get the colour of a particular Minecraft material.
|
public DynMapColourScheme(InputStream in, boolean bright)
in - The input stream from which to read the colours.bright - Whether to use the brightest colours. When false the two block side colours are
averaged and used instead. The brightest colours usually most approximate the colours as
experienced in Minecraft, so when in doubt, use true.public DynMapColourScheme(@NonNls
@NonNls String name,
boolean bright)
<em>name</em>.txt and be in the
org.pepsoft.worldpainter.colourschemes package.name - The name of the Dynmap "classic" colour map file to read from the classpath, without
.txt extension.bright - Whether to use the brightest colours. When false the two block side colours are
averaged and used instead. The brightest colours usually most approximate the colours as
experienced in Minecraft, so when in doubt, use true.public int getColour(int blockType)
ColourSchemegetColour in interface ColourSchemeblockType - The block type ID for which to get the colour.public int getColour(int blockType,
int dataValue)
ColourSchemegetColour in interface ColourSchemeblockType - The block type ID for which to get the colour.dataValue - The data value for which to get the colour.public int getColour(Material material)
ColourSchemegetColour in interface ColourSchemematerial - The material for which to get the colour.