Package net.minecraft.src
Class ChunkProviderGenerate
java.lang.Object
net.minecraft.src.ChunkProviderGenerate
- All Implemented Interfaces:
IChunkProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionA NoiseGeneratorOctaves used in generating terrainA NoiseGeneratorOctaves used in generating terrain -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanSave()Returns if the IChunkProvider supports saving.booleanchunkExists(int par1, int par2) Checks to see if a chunk exists at x, yfindClosestStructure(World par1World, String par2Str, int par3, int par4, int par5) Returns the location of the closest structure of the specified type.voidgenerateTerrain(int par1, int par2, short[] blockIDs, byte[] metadata) Generates the shape of the terrain for the chunk though its all stone though the water is frozen if the temperature is low enoughintgetPossibleCreatures(EnumCreatureType par1EnumCreatureType, int par2, int par3, int par4) Returns a list of creatures of the specified type that can spawn at the given location.loadChunk(int par1, int par2) loads or generates the chunk at the chunk location specifiedConverts the instance data to a readable string.voidpopulate(IChunkProvider par1IChunkProvider, int par2, int par3) Populates chunk with ores etc etcprovideChunk(int par1, int par2) Will return back a chunk, if it doesn't exist and its not a MP client it will generates all the blocks for the specified chunk from the map seed and chunk seedvoidrecreateStructures(int par1, int par2) voidreplaceBlocksForBiome(int par1, int par2, short[] blockIDs, byte[] metadata, BiomeGenBase[] par4ArrayOfBiomeGenBase) Replaces the stone that was placed in with blocks that match the biomebooleansaveChunks(boolean par1, IProgressUpdate par2IProgressUpdate) Two modes of operation: if passed true, save all Chunks in one go.voidSave extra data not associated with any Chunk.booleanUnloads chunks that are marked to be unloaded.
-
Field Details
-
noiseGen5
A NoiseGeneratorOctaves used in generating terrain -
noiseGen6
A NoiseGeneratorOctaves used in generating terrain -
mobSpawnerNoise
-
-
Constructor Details
-
ChunkProviderGenerate
-
-
Method Details
-
generateTerrain
public void generateTerrain(int par1, int par2, short[] blockIDs, byte[] metadata) Generates the shape of the terrain for the chunk though its all stone though the water is frozen if the temperature is low enough -
replaceBlocksForBiome
public void replaceBlocksForBiome(int par1, int par2, short[] blockIDs, byte[] metadata, BiomeGenBase[] par4ArrayOfBiomeGenBase) Replaces the stone that was placed in with blocks that match the biome -
loadChunk
loads or generates the chunk at the chunk location specified- Specified by:
loadChunkin interfaceIChunkProvider
-
provideChunk
Will return back a chunk, if it doesn't exist and its not a MP client it will generates all the blocks for the specified chunk from the map seed and chunk seed- Specified by:
provideChunkin interfaceIChunkProvider
-
chunkExists
public boolean chunkExists(int par1, int par2) Checks to see if a chunk exists at x, y- Specified by:
chunkExistsin interfaceIChunkProvider
-
populate
Populates chunk with ores etc etc- Specified by:
populatein interfaceIChunkProvider
-
saveChunks
Two modes of operation: if passed true, save all Chunks in one go. If passed false, save up to two chunks. Return true if all chunks have been saved.- Specified by:
saveChunksin interfaceIChunkProvider
-
saveExtraData
public void saveExtraData()Save extra data not associated with any Chunk. Not saved during autosave, only during world unload. Currently unimplemented.- Specified by:
saveExtraDatain interfaceIChunkProvider
-
unloadQueuedChunks
public boolean unloadQueuedChunks()Unloads chunks that are marked to be unloaded. This is not guaranteed to unload every such chunk.- Specified by:
unloadQueuedChunksin interfaceIChunkProvider
-
canSave
public boolean canSave()Returns if the IChunkProvider supports saving.- Specified by:
canSavein interfaceIChunkProvider
-
makeString
Converts the instance data to a readable string.- Specified by:
makeStringin interfaceIChunkProvider
-
getPossibleCreatures
public List getPossibleCreatures(EnumCreatureType par1EnumCreatureType, int par2, int par3, int par4) Returns a list of creatures of the specified type that can spawn at the given location.- Specified by:
getPossibleCreaturesin interfaceIChunkProvider
-
findClosestStructure
public ChunkPosition findClosestStructure(World par1World, String par2Str, int par3, int par4, int par5) Returns the location of the closest structure of the specified type. If not found returns null.- Specified by:
findClosestStructurein interfaceIChunkProvider
-
getLoadedChunkCount
public int getLoadedChunkCount()- Specified by:
getLoadedChunkCountin interfaceIChunkProvider
-
recreateStructures
public void recreateStructures(int par1, int par2) - Specified by:
recreateStructuresin interfaceIChunkProvider
-
getStrongholdGenerator
-
getVillageGenerator
-
getMineshaftGenerator
-
getScatteredFeatureGenerator
-