public abstract class MapGenStructure extends MapGenBase
Modifier and Type | Field and Description |
---|---|
protected java.util.Map |
structureMap
Used to store a list of all structures that have been recursively generated.
|
rand, range, worldObj
Constructor and Description |
---|
MapGenStructure() |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
canSpawnStructureAtCoords(int i,
int j) |
boolean |
func_142038_b(int par1,
int par2,
int par3) |
abstract java.lang.String |
func_143025_a() |
protected StructureStart |
func_143028_c(int par1,
int par2,
int par3) |
boolean |
generateStructuresInChunk(World par1World,
java.util.Random par2Random,
int par3,
int par4)
Generates structures in specified chunk next to existing structures.
|
protected java.util.List |
getCoordList()
Returns a list of other locations at which the structure generation has been run, or null if not relevant to this
structure generator.
|
ChunkPosition |
getNearestInstance(World par1World,
int par2,
int par3,
int par4) |
protected abstract StructureStart |
getStructureStart(int i,
int j) |
boolean |
hasStructureAt(int par1,
int par2,
int par3)
Returns true if the structure generator has generated a structure located at the given position tuple.
|
protected void |
recursiveGenerate(World par1World,
int par2,
int par3,
int par4,
int par5,
byte[] par6ArrayOfByte)
Recursively called by generate() (generate) and optionally by itself.
|
generate
protected java.util.Map structureMap
public abstract java.lang.String func_143025_a()
protected final void recursiveGenerate(World par1World, int par2, int par3, int par4, int par5, byte[] par6ArrayOfByte)
recursiveGenerate
in class MapGenBase
public boolean generateStructuresInChunk(World par1World, java.util.Random par2Random, int par3, int par4)
public boolean hasStructureAt(int par1, int par2, int par3)
protected StructureStart func_143028_c(int par1, int par2, int par3)
public boolean func_142038_b(int par1, int par2, int par3)
public ChunkPosition getNearestInstance(World par1World, int par2, int par3, int par4)
protected java.util.List getCoordList()
protected abstract boolean canSpawnStructureAtCoords(int i, int j)
protected abstract StructureStart getStructureStart(int i, int j)