public class BiomeSchemeManager
extends java.lang.Object
Constructor and Description |
---|
BiomeSchemeManager() |
Modifier and Type | Method and Description |
---|---|
static java.awt.image.BufferedImage |
createImage(BiomeScheme biomeScheme,
int biome,
ColourScheme colourScheme) |
static java.util.SortedMap<org.pepsoft.util.Version,java.io.File> |
getAllMinecraftJars()
Get all found Minecraft jars.
|
static java.util.List<java.lang.Integer> |
getAvailableBiomeAlgorithms() |
static BiomeScheme |
getBiomeScheme(int biomeAlgorithm,
boolean shared) |
static java.io.File |
getLatestMinecraftJar()
Get the highest version Minecraft jar available.
|
static org.pepsoft.util.Version |
getLatestMinecraftVersion()
Get the most recent version of Minecraft this class has been able to find.
|
static java.io.File |
getMinecraftJar(org.pepsoft.util.Version version)
Get a Minecraft jar of a specific version.
|
static java.io.File |
getMinecraftJarNoNewerThan(org.pepsoft.util.Version version)
Get the highest version Minecraft jar available of the specified version
or lower.
|
static java.io.File |
getMinecraftJarNoOlderThan(org.pepsoft.util.Version version)
Get the highest version Minecraft jar available of the specified version
or higher.
|
static BiomeScheme |
getNewBiomeScheme(int biomeAlgorithm) |
static BiomeScheme |
getSharedBiomeScheme(int biomeAlgorithm) |
static void |
initialiseInBackground()
Starts background initialisation of the biome scheme manager, so that
subsequent invocations of the
getSharedBiomeScheme methods won't
have to wait for initialisation. |
public static BiomeScheme getNewBiomeScheme(int biomeAlgorithm)
public static BiomeScheme getSharedBiomeScheme(int biomeAlgorithm)
public static BiomeScheme getBiomeScheme(int biomeAlgorithm, boolean shared)
public static java.util.SortedMap<org.pepsoft.util.Version,java.io.File> getAllMinecraftJars()
public static org.pepsoft.util.Version getLatestMinecraftVersion()
null
if no Minecraft
jar is available.public static java.io.File getMinecraftJar(org.pepsoft.util.Version version)
version
- The Minecraft version for which to return a jar.null
if no Minecraft jar is available for the
specified version.public static java.io.File getLatestMinecraftJar()
null
if
no Minecraft jar is available.public static java.io.File getMinecraftJarNoNewerThan(org.pepsoft.util.Version version)
version
- The highest version to return.null
if no such Minecraft jar is
available.public static java.io.File getMinecraftJarNoOlderThan(org.pepsoft.util.Version version)
version
- The lowest version to return.null
if no such Minecraft jar is
available.public static java.awt.image.BufferedImage createImage(BiomeScheme biomeScheme, int biome, ColourScheme colourScheme)
public static java.util.List<java.lang.Integer> getAvailableBiomeAlgorithms()
public static void initialiseInBackground()
getSharedBiomeScheme
methods won't
have to wait for initialisation.