public abstract class Minecraft1_8JarBiomeScheme extends AbstractMinecraft1_7BiomeScheme
BiomeScheme
s which can invoke Minecraft
code from a Minecraft jar file for version 1.8 and later to calculate biomes.Minecraft1_7Biomes.StaticInitialiser
BIOME_BEACH, BIOME_BIRCH_FOREST, BIOME_BIRCH_FOREST_HILLS, BIOME_BIRCH_FOREST_HILLS_M, BIOME_BIRCH_FOREST_M, BIOME_COLD_BEACH, BIOME_COLD_TAIGA, BIOME_COLD_TAIGA_HILLS, BIOME_COLD_TAIGA_M, BIOME_DEEP_OCEAN, BIOME_DESERT, BIOME_DESERT_HILLS, BIOME_DESERT_M, BIOME_EXTREME_HILLS, BIOME_EXTREME_HILLS_EDGE, BIOME_EXTREME_HILLS_M, BIOME_EXTREME_HILLS_PLUS, BIOME_EXTREME_HILLS_PLUS_M, BIOME_FLOWER_FOREST, BIOME_FOREST, BIOME_FOREST_HILLS, BIOME_FROZEN_OCEAN, BIOME_FROZEN_RIVER, BIOME_HELL, BIOME_ICE_MOUNTAINS, BIOME_ICE_PLAINS, BIOME_ICE_PLAINS_SPIKES, BIOME_JUNGLE, BIOME_JUNGLE_EDGE, BIOME_JUNGLE_EDGE_M, BIOME_JUNGLE_HILLS, BIOME_JUNGLE_M, BIOME_MEGA_SPRUCE_TAIGA, BIOME_MEGA_SPRUCE_TAIGA_HILLS, BIOME_MEGA_TAIGA, BIOME_MEGA_TAIGA_HILLS, BIOME_MESA, BIOME_MESA_BRYCE, BIOME_MESA_PLATEAU, BIOME_MESA_PLATEAU_F, BIOME_MESA_PLATEAU_F_M, BIOME_MESA_PLATEAU_M, BIOME_MUSHROOM_ISLAND, BIOME_MUSHROOM_ISLAND_SHORE, BIOME_NAMES, BIOME_OCEAN, BIOME_PATTERNS, BIOME_PLAINS, BIOME_RIVER, BIOME_ROOFED_FOREST, BIOME_ROOFED_FOREST_M, BIOME_SAVANNA, BIOME_SAVANNA_M, BIOME_SAVANNA_PLATEAU, BIOME_SAVANNA_PLATEAU_M, BIOME_SKY, BIOME_STONE_BEACH, BIOME_SUNFLOWER_PLAINS, BIOME_SWAMPLAND, BIOME_SWAMPLAND_M, BIOME_TAIGA, BIOME_TAIGA_HILLS, BIOME_TAIGA_M, FIRST_UNALLOCATED_ID, HIGHEST_BIOME_ID
Constructor and Description |
---|
Minecraft1_8JarBiomeScheme(java.io.File minecraftJar,
java.io.File libDir,
org.pepsoft.util.Checksum md5Sum,
java.util.Map<org.pepsoft.util.Checksum,java.lang.String[]> hashesToClassNames) |
Modifier and Type | Method and Description |
---|---|
void |
getBiomes(int x,
int y,
int width,
int height,
int[] buffer)
Get the biomes for a specific rectangular area of the world.
|
protected void |
init(java.lang.String[] classNames,
java.lang.ClassLoader classLoader) |
void |
setSeed(long seed)
Set the seed for which to determine the biomes.
|
getBiomeCount, getBiomeName, getColour, getPattern, isBiomePresent
getBiomes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getStringId
public Minecraft1_8JarBiomeScheme(java.io.File minecraftJar, java.io.File libDir, org.pepsoft.util.Checksum md5Sum, java.util.Map<org.pepsoft.util.Checksum,java.lang.String[]> hashesToClassNames)
public void setSeed(long seed)
BiomeScheme
seed
- The seed for which to determine the biomes.public final void getBiomes(int x, int y, int width, int height, int[] buffer)
BiomeScheme
x
- The X coordinate in the WorldPainter coordinate system.y
- The Y coordinate in the WorldPainter coordinate system.width
- The width along the X axis of the area.height
- The height along the Y axis of the area.buffer
- The array in which the biome information will be returned,
indexed first by X and then by Y coordinate.protected void init(java.lang.String[] classNames, java.lang.ClassLoader classLoader) throws java.lang.ClassNotFoundException, java.lang.NoSuchMethodException, java.lang.reflect.InvocationTargetException, java.lang.IllegalAccessException, java.lang.NoSuchFieldException
java.lang.ClassNotFoundException
java.lang.NoSuchMethodException
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
java.lang.NoSuchFieldException