Package net.minecraft.src
Class WorldChunkManager
java.lang.Object
net.minecraft.src.WorldChunkManager
- Direct Known Subclasses:
WorldChunkManagerHell
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedWorldChunkManager(long par1, WorldType par3WorldType) WorldChunkManager(World par1World) -
Method Summary
Modifier and TypeMethodDescriptionbooleanareBiomesViable(int par1, int par2, int par3, List par4List) checks given Chunk's Biomes against List of allowed onesvoidCalls the WorldChunkManager's biomeCache.cleanupCache()findBiomePosition(int par1, int par2, int par3, List par4List, Random par5Random) Finds a valid position within a range, that is in one of the listed biomes.getBiomeGenAt(int par1, int par2) Returns the BiomeGenBase related to the x, z position on the world.getBiomeGenAt(BiomeGenBase[] par1ArrayOfBiomeGenBase, int par2, int par3, int par4, int par5, boolean par6) Return a list of biomes for the specified blocks.getBiomesForGeneration(BiomeGenBase[] par1ArrayOfBiomeGenBase, int par2, int par3, int par4, int par5) Returns an array of biomes for the location input.Gets the list of valid biomes for the player to spawn in.float[]getRainfall(float[] par1ArrayOfFloat, int par2, int par3, int par4, int par5) Returns a list of rainfall values for the specified blocks.floatgetTemperatureAtHeight(float par1, int par2) Return an adjusted version of a given temperature based on the y heightfloat[]getTemperatures(float[] par1ArrayOfFloat, int par2, int par3, int par4, int par5) Returns a list of temperatures to use for the specified blocks.loadBlockGeneratorData(BiomeGenBase[] par1ArrayOfBiomeGenBase, int par2, int par3, int par4, int par5) Returns biomes to use for the blocks and loads the other data like temperature and humidity onto the WorldChunkManager Args: oldBiomeList, x, z, width, depth
-
Constructor Details
-
WorldChunkManager
protected WorldChunkManager() -
WorldChunkManager
-
WorldChunkManager
-
-
Method Details
-
getBiomesToSpawnIn
Gets the list of valid biomes for the player to spawn in. -
getBiomeGenAt
Returns the BiomeGenBase related to the x, z position on the world. -
getRainfall
public float[] getRainfall(float[] par1ArrayOfFloat, int par2, int par3, int par4, int par5) Returns a list of rainfall values for the specified blocks. Args: listToReuse, x, z, width, length. -
getTemperatureAtHeight
public float getTemperatureAtHeight(float par1, int par2) Return an adjusted version of a given temperature based on the y height -
getTemperatures
public float[] getTemperatures(float[] par1ArrayOfFloat, int par2, int par3, int par4, int par5) Returns a list of temperatures to use for the specified blocks. Args: listToReuse, x, y, width, length -
getBiomesForGeneration
public BiomeGenBase[] getBiomesForGeneration(BiomeGenBase[] par1ArrayOfBiomeGenBase, int par2, int par3, int par4, int par5) Returns an array of biomes for the location input. -
loadBlockGeneratorData
public BiomeGenBase[] loadBlockGeneratorData(BiomeGenBase[] par1ArrayOfBiomeGenBase, int par2, int par3, int par4, int par5) Returns biomes to use for the blocks and loads the other data like temperature and humidity onto the WorldChunkManager Args: oldBiomeList, x, z, width, depth -
getBiomeGenAt
public BiomeGenBase[] getBiomeGenAt(BiomeGenBase[] par1ArrayOfBiomeGenBase, int par2, int par3, int par4, int par5, boolean par6) Return a list of biomes for the specified blocks. Args: listToReuse, x, y, width, length, cacheFlag (if false, don't check biomeCache to avoid infinite loop in BiomeCacheBlock) -
areBiomesViable
checks given Chunk's Biomes against List of allowed ones -
findBiomePosition
public ChunkPosition findBiomePosition(int par1, int par2, int par3, List par4List, Random par5Random) Finds a valid position within a range, that is in one of the listed biomes. Searches {par1,par2} +-par3 blocks. Strongly favors positive y positions. -
cleanupCache
public void cleanupCache()Calls the WorldChunkManager's biomeCache.cleanupCache() -
getDifficulty
-