YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.world.gen.structure.StructureStart Class Reference
Inheritance diagram for net.minecraft.world.gen.structure.StructureStart:
net.minecraft.world.gen.structure.StructureMineshaftStart net.minecraft.world.gen.structure.StructureScatteredFeatureStart

Public Member Functions

StructureBoundingBox getBoundingBox ()
 
LinkedList getComponents ()
 
void generateStructure (World par1World, Random par2Random, StructureBoundingBox par3StructureBoundingBox)
 
boolean isSizeableStructure ()
 

Protected Member Functions

void updateBoundingBox ()
 
void markAvailableHeight (World par1World, Random par2Random, int par3)
 
void setRandomHeight (World par1World, Random par2Random, int par3, int par4)
 

Protected Attributes

LinkedList components = new LinkedList()
 
StructureBoundingBox boundingBox
 

Member Function Documentation

void net.minecraft.world.gen.structure.StructureStart.generateStructure ( World  par1World,
Random  par2Random,
StructureBoundingBox  par3StructureBoundingBox 
)

Keeps iterating Structure Pieces and spawning them until the checks tell it to stop

StructureBoundingBox net.minecraft.world.gen.structure.StructureStart.getBoundingBox ( )
LinkedList net.minecraft.world.gen.structure.StructureStart.getComponents ( )
boolean net.minecraft.world.gen.structure.StructureStart.isSizeableStructure ( )

currently only defined for Villages, returns true if Village has more than 2 non-road components

void net.minecraft.world.gen.structure.StructureStart.markAvailableHeight ( World  par1World,
Random  par2Random,
int  par3 
)
protected

offsets the structure Bounding Boxes up to a certain height, typically 63 - 10

void net.minecraft.world.gen.structure.StructureStart.setRandomHeight ( World  par1World,
Random  par2Random,
int  par3,
int  par4 
)
protected
void net.minecraft.world.gen.structure.StructureStart.updateBoundingBox ( )
protected

Calculates total bounding box based on components' bounding boxes and saves it to boundingBox

Member Data Documentation

StructureBoundingBox net.minecraft.world.gen.structure.StructureStart.boundingBox
protected
LinkedList net.minecraft.world.gen.structure.StructureStart.components = new LinkedList()
protected

List of all StructureComponents that are part of this structure


The documentation for this class was generated from the following file: