Package net.minecraft.src
Class MapGenStructure
java.lang.Object
net.minecraft.src.MapGenBase
net.minecraft.src.MapGenStructure
- Direct Known Subclasses:
MapGenMineshaft,MapGenNetherBridge,MapGenScatteredFeature,MapGenStronghold,MapGenVillage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected MapUsed to store a list of all structures that have been recursively generated.Fields inherited from class net.minecraft.src.MapGenBase
rand, range, worldObj -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncallGetSpawnStructureAtCoords(int var1, int var2) protected abstract booleancanSpawnStructureAtCoords(int var1, int var2) booleanfunc_142038_b(int par1, int par2, int par3) abstract Stringprotected StructureStartfunc_143028_c(int par1, int par2, int par3) booleangenerateStructuresInChunk(World par1World, Random par2Random, int par3, int par4) Generates structures in specified chunk next to existing structures.abstract intprotected ListReturns a list of other locations at which the structure generation has been run, or null if not relevant to this structure generator.getNearestInstance(World par1World, int par2, int par3, int par4) protected abstract ChunkPositiongetSpawnStructureAtCoords(int var1, int var2) protected abstract StructureStartgetStructureStart(int var1, int var2) booleanhasStructureAt(int par1, int par2, int par3) Returns true if the structure generator has generated a structure located at the given position tuple.protected final voidrecursiveGenerate(World par1World, int par2, int par3, int par4, int par5, short[] blockIDs, byte[] metadata) Recursively called by generate() (generate) and optionally by itself.Methods inherited from class net.minecraft.src.MapGenBase
generate, getRand
-
Field Details
-
structureMap
Used to store a list of all structures that have been recursively generated. Used so that during recursive generation, the structure generator can avoid generating structures that intersect ones that have already been placed.
-
-
Constructor Details
-
MapGenStructure
public MapGenStructure()
-
-
Method Details
-
func_143025_a
-
recursiveGenerate
protected final void recursiveGenerate(World par1World, int par2, int par3, int par4, int par5, short[] blockIDs, byte[] metadata) Recursively called by generate() (generate) and optionally by itself.- Overrides:
recursiveGeneratein classMapGenBase
-
generateStructuresInChunk
Generates structures in specified chunk next to existing structures. Does *not* generate StructureStarts. -
hasStructureAt
public boolean hasStructureAt(int par1, int par2, int par3) Returns true if the structure generator has generated a structure located at the given position tuple. -
func_143028_c
-
func_142038_b
public boolean func_142038_b(int par1, int par2, int par3) -
getNearestInstance
-
getCoordList
Returns a list of other locations at which the structure generation has been run, or null if not relevant to this structure generator. -
canSpawnStructureAtCoords
protected abstract boolean canSpawnStructureAtCoords(int var1, int var2) -
getStructureStart
-
callGetSpawnStructureAtCoords
-
getSpawnStructureAtCoords
-
getCheckRange
public abstract int getCheckRange()
-