Package net.minecraft.src
Class StructureStart
java.lang.Object
net.minecraft.src.StructureStart
- Direct Known Subclasses:
StructureMineshaftStart,StructureNetherBridgeStart,StructureScatteredFeatureStart,StructureStrongholdStart,StructureVillageStart
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected LinkedListList of all StructureComponents that are part of this structure -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfunc_143017_b(NBTTagCompound par1NBTTagCompound) intintvoidfunc_143020_a(World par1World, NBTTagCompound par2NBTTagCompound) func_143021_a(int par1, int par2) voidfunc_143022_a(NBTTagCompound par1NBTTagCompound) voidgenerateStructure(World par1World, Random par2Random, StructureBoundingBox par3StructureBoundingBox) Keeps iterating Structure Pieces and spawning them until the checks tell it to stopbooleancurrently only defined for Villages, returns true if Village has more than 2 non-road componentsprotected voidmarkAvailableHeight(World par1World, Random par2Random, int par3) offsets the structure Bounding Boxes up to a certain height, typically 63 - 10protected voidsetRandomHeight(World par1World, Random par2Random, int par3, int par4) protected voidCalculates total bounding box based on components' bounding boxes and saves it to boundingBox
-
Field Details
-
components
List of all StructureComponents that are part of this structure -
boundingBox
-
-
Constructor Details
-
StructureStart
public StructureStart() -
StructureStart
public StructureStart(int par1, int par2)
-
-
Method Details
-
getBoundingBox
-
getComponents
-
generateStructure
public void generateStructure(World par1World, Random par2Random, StructureBoundingBox par3StructureBoundingBox) Keeps iterating Structure Pieces and spawning them until the checks tell it to stop -
updateBoundingBox
protected void updateBoundingBox()Calculates total bounding box based on components' bounding boxes and saves it to boundingBox -
func_143021_a
-
func_143022_a
-
func_143020_a
-
func_143017_b
-
markAvailableHeight
offsets the structure Bounding Boxes up to a certain height, typically 63 - 10 -
setRandomHeight
-
isSizeableStructure
public boolean isSizeableStructure()currently only defined for Villages, returns true if Village has more than 2 non-road components -
func_143019_e
public int func_143019_e() -
func_143018_f
public int func_143018_f()
-