Package net.minecraft.src
Class ComponentVillageHouse3
java.lang.Object
net.minecraft.src.StructureComponent
net.minecraft.src.ComponentVillageHouse3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected intprotected ComponentVillageStartPieceFields inherited from class net.minecraft.src.StructureComponent
boundingBox, componentType, coordBaseMode -
Constructor Summary
ConstructorsConstructorDescriptionComponentVillageHouse3(ComponentVillageStartPiece par1ComponentVillageStartPiece, int par2, Random par3Random, StructureBoundingBox par4StructureBoundingBox, int par5) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddComponentParts(World par1World, Random par2Random, StructureBoundingBox par3StructureBoundingBox) second Part of Structure generating, this for example places Spiderwebs, Mob Spawners, it closes Mineshafts at the end, it adds Fences...protected static booleancanVillageGoDeeper(StructureBoundingBox par0StructureBoundingBox) protected voidfillCurrentPositionBlocksDownwards(World par1World, int par2, int par3, int par4, int par5, int par6, StructureBoundingBox par7StructureBoundingBox) Overwrites air and liquids from selected position downwards, stops at hitting anything else.protected voidfillWithBlocks(World par1World, StructureBoundingBox par2StructureBoundingBox, int par3, int par4, int par5, int par6, int par7, int par8, int par9, int par10, boolean par11) arguments: (World worldObj, StructureBoundingBox structBB, int minX, int minY, int minZ, int maxX, int maxY, int maxZ, int placeBlockId, int replaceBlockId, boolean alwaysreplace)protected voidfunc_143011_b(NBTTagCompound par1NBTTagCompound) protected voidfunc_143012_a(NBTTagCompound par1NBTTagCompound) static ComponentVillageHouse3func_74921_a(ComponentVillageStartPiece par0ComponentVillageStartPiece, List par1List, Random par2Random, int par3, int par4, int par5, int par6, int par7) protected intgetAverageGroundLevel(World par1World, StructureBoundingBox par2StructureBoundingBox) Discover the y coordinate that will serve as the ground level of the supplied BoundingBox.protected intgetBiomeSpecificBlock(int par1, int par2) Gets the replacement block for the current biomeprotected intgetBiomeSpecificBlockMetadata(int par1, int par2) Gets the replacement block metadata for the current biomeprotected StructureComponentgetNextComponentNN(ComponentVillageStartPiece par1ComponentVillageStartPiece, List par2List, Random par3Random, int par4, int par5) Gets the next village component, with the bounding box shifted -1 in the X and Z direction.protected StructureComponentgetNextComponentPP(ComponentVillageStartPiece par1ComponentVillageStartPiece, List par2List, Random par3Random, int par4, int par5) Gets the next village component, with the bounding box shifted +1 in the X and Z direction.protected intgetVillagerType(int par1) Returns the villager type to spawn in this component, based on the number of villagers already spawned.protected voidplaceBlockAtCurrentPosition(World par1World, int par2, int par3, int par4, int par5, int par6, StructureBoundingBox par7StructureBoundingBox) current Position depends on currently set Coordinates mode, is computed hereprotected voidspawnVillagers(World par1World, StructureBoundingBox par2StructureBoundingBox, int par3, int par4, int par5, int par6) Spawns a number of villagers in this component.Methods inherited from class net.minecraft.src.StructureComponent
buildComponent, clearCurrentPositionBlocksUpwards, damageContainerItems, fillWithAir, fillWithMetadataBlocks, fillWithRandomizedBlocks, findIntersecting, func_143009_a, func_143010_b, generateStructureChestContents, generateStructureContainerContents, generateStructureDispenserContents, getBlockIdAtCurrentPosition, getBoundingBox, getCenter, getComponentType, getMetadataTwistedWithGen, getMetadataWithOffset, getXWithOffset, getYWithOffset, getZWithOffset, isLiquidInStructureBoundingBox, placeDoorAtCurrentPosition, randomlyFillWithBlocks, randomlyPlaceBlock, randomlyRareFillWithBlocks
-
Field Details
-
field_143015_k
protected int field_143015_k -
field_143014_b
protected boolean field_143014_b -
startPiece
-
-
Constructor Details
-
ComponentVillageHouse3
public ComponentVillageHouse3() -
ComponentVillageHouse3
public ComponentVillageHouse3(ComponentVillageStartPiece par1ComponentVillageStartPiece, int par2, Random par3Random, StructureBoundingBox par4StructureBoundingBox, int par5)
-
-
Method Details
-
func_74921_a
public static ComponentVillageHouse3 func_74921_a(ComponentVillageStartPiece par0ComponentVillageStartPiece, List par1List, Random par2Random, int par3, int par4, int par5, int par6, int par7) -
addComponentParts
public boolean addComponentParts(World par1World, Random par2Random, StructureBoundingBox par3StructureBoundingBox) second Part of Structure generating, this for example places Spiderwebs, Mob Spawners, it closes Mineshafts at the end, it adds Fences...- Specified by:
addComponentPartsin classStructureComponent
-
func_143012_a
- Specified by:
func_143012_ain classStructureComponent
-
func_143011_b
- Specified by:
func_143011_bin classStructureComponent
-
getNextComponentNN
protected StructureComponent getNextComponentNN(ComponentVillageStartPiece par1ComponentVillageStartPiece, List par2List, Random par3Random, int par4, int par5) Gets the next village component, with the bounding box shifted -1 in the X and Z direction. -
getNextComponentPP
protected StructureComponent getNextComponentPP(ComponentVillageStartPiece par1ComponentVillageStartPiece, List par2List, Random par3Random, int par4, int par5) Gets the next village component, with the bounding box shifted +1 in the X and Z direction. -
getAverageGroundLevel
Discover the y coordinate that will serve as the ground level of the supplied BoundingBox. (A median of all the levels in the BB's horizontal rectangle). -
canVillageGoDeeper
-
spawnVillagers
protected void spawnVillagers(World par1World, StructureBoundingBox par2StructureBoundingBox, int par3, int par4, int par5, int par6) Spawns a number of villagers in this component. Parameters: world, component bounding box, x offset, y offset, z offset, number of villagers -
getVillagerType
protected int getVillagerType(int par1) Returns the villager type to spawn in this component, based on the number of villagers already spawned. -
getBiomeSpecificBlock
protected int getBiomeSpecificBlock(int par1, int par2) Gets the replacement block for the current biome -
getBiomeSpecificBlockMetadata
protected int getBiomeSpecificBlockMetadata(int par1, int par2) Gets the replacement block metadata for the current biome -
placeBlockAtCurrentPosition
protected void placeBlockAtCurrentPosition(World par1World, int par2, int par3, int par4, int par5, int par6, StructureBoundingBox par7StructureBoundingBox) current Position depends on currently set Coordinates mode, is computed here- Overrides:
placeBlockAtCurrentPositionin classStructureComponent
-
fillWithBlocks
protected void fillWithBlocks(World par1World, StructureBoundingBox par2StructureBoundingBox, int par3, int par4, int par5, int par6, int par7, int par8, int par9, int par10, boolean par11) arguments: (World worldObj, StructureBoundingBox structBB, int minX, int minY, int minZ, int maxX, int maxY, int maxZ, int placeBlockId, int replaceBlockId, boolean alwaysreplace)- Overrides:
fillWithBlocksin classStructureComponent
-
fillCurrentPositionBlocksDownwards
protected void fillCurrentPositionBlocksDownwards(World par1World, int par2, int par3, int par4, int par5, int par6, StructureBoundingBox par7StructureBoundingBox) Overwrites air and liquids from selected position downwards, stops at hitting anything else.- Overrides:
fillCurrentPositionBlocksDownwardsin classStructureComponent
-