public abstract class StructureStart
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected StructureBoundingBox |
boundingBox |
protected java.util.LinkedList |
components
List of all StructureComponents that are part of this structure
|
Constructor and Description |
---|
StructureStart() |
StructureStart(int par1,
int par2) |
Modifier and Type | Method and Description |
---|---|
void |
func_143017_b(NBTTagCompound par1NBTTagCompound) |
int |
func_143018_f() |
int |
func_143019_e() |
void |
func_143020_a(World par1World,
NBTTagCompound par2NBTTagCompound) |
NBTTagCompound |
func_143021_a(int par1,
int par2) |
void |
func_143022_a(NBTTagCompound par1NBTTagCompound) |
void |
generateStructure(World par1World,
java.util.Random par2Random,
StructureBoundingBox par3StructureBoundingBox)
Keeps iterating Structure Pieces and spawning them until the checks tell it to stop
|
StructureBoundingBox |
getBoundingBox() |
java.util.LinkedList |
getComponents() |
boolean |
isSizeableStructure()
currently only defined for Villages, returns true if Village has more than 2 non-road components
|
protected void |
markAvailableHeight(World par1World,
java.util.Random par2Random,
int par3)
offsets the structure Bounding Boxes up to a certain height, typically 63 - 10
|
protected void |
setRandomHeight(World par1World,
java.util.Random par2Random,
int par3,
int par4) |
protected void |
updateBoundingBox()
Calculates total bounding box based on components' bounding boxes and saves it to boundingBox
|
protected java.util.LinkedList components
protected StructureBoundingBox boundingBox
public StructureStart()
public StructureStart(int par1, int par2)
public StructureBoundingBox getBoundingBox()
public java.util.LinkedList getComponents()
public void generateStructure(World par1World, java.util.Random par2Random, StructureBoundingBox par3StructureBoundingBox)
protected void updateBoundingBox()
public NBTTagCompound func_143021_a(int par1, int par2)
public void func_143022_a(NBTTagCompound par1NBTTagCompound)
public void func_143020_a(World par1World, NBTTagCompound par2NBTTagCompound)
public void func_143017_b(NBTTagCompound par1NBTTagCompound)
protected void markAvailableHeight(World par1World, java.util.Random par2Random, int par3)
protected void setRandomHeight(World par1World, java.util.Random par2Random, int par3, int par4)
public boolean isSizeableStructure()
public int func_143019_e()
public int func_143018_f()