public static class StructureVillagePieces.Church extends StructureComponent
StructureComponent.BlockSelector
Modifier and Type | Field and Description |
---|---|
protected int |
field_143015_k |
boundingBox, componentType, coordBaseMode
Constructor and Description |
---|
StructureVillagePieces.Church() |
StructureVillagePieces.Church(StructureVillagePieces.Start par1ComponentVillageStartPiece,
int par2,
java.util.Random par3Random,
StructureBoundingBox par4StructureBoundingBox,
int par5) |
Modifier and Type | Method and Description |
---|---|
boolean |
addComponentParts(World par1World,
java.util.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 boolean |
canVillageGoDeeper(StructureBoundingBox par0StructureBoundingBox) |
protected void |
fillWithBlocks(World p_151549_1_,
StructureBoundingBox p_151549_2_,
int p_151549_3_,
int p_151549_4_,
int p_151549_5_,
int p_151549_6_,
int p_151549_7_,
int p_151549_8_,
Block p_151549_9_,
Block p_151549_10_,
boolean p_151549_11_)
arguments: (World worldObj, StructureBoundingBox structBB, int minX, int minY, int minZ, int maxX, int
maxY, int maxZ, int placeBlock, int replaceBlock, boolean alwaysreplace)
|
protected void |
func_143011_b(NBTTagCompound par1NBTTagCompound) |
protected void |
func_143012_a(NBTTagCompound par1NBTTagCompound) |
protected void |
func_151554_b(World p_151554_1_,
Block p_151554_2_,
int p_151554_3_,
int p_151554_4_,
int p_151554_5_,
int p_151554_6_,
StructureBoundingBox p_151554_7_) |
protected int |
func_151557_c(Block p_151557_1_,
int p_151557_2_) |
protected Block |
func_151558_b(Block p_151558_1_,
int p_151558_2_) |
static StructureVillagePieces.Church |
func_74919_a(StructureVillagePieces.Start par0ComponentVillageStartPiece,
java.util.List par1List,
java.util.Random par2Random,
int par3,
int par4,
int par5,
int par6,
int par7) |
protected int |
getAverageGroundLevel(World par1World,
StructureBoundingBox par2StructureBoundingBox)
Discover the y coordinate that will serve as the ground level of the supplied BoundingBox.
|
protected StructureComponent |
getNextComponentNN(StructureVillagePieces.Start par1ComponentVillageStartPiece,
java.util.List par2List,
java.util.Random par3Random,
int par4,
int par5)
Gets the next village component, with the bounding box shifted -1 in the X and Z direction.
|
protected StructureComponent |
getNextComponentPP(StructureVillagePieces.Start par1ComponentVillageStartPiece,
java.util.List par2List,
java.util.Random par3Random,
int par4,
int par5)
Gets the next village component, with the bounding box shifted +1 in the X and Z direction.
|
protected int |
getVillagerType(int par1)
Returns the villager type to spawn in this component, based on the number of villagers already spawned.
|
protected void |
placeBlockAtCurrentPosition(World p_151550_1_,
Block p_151550_2_,
int p_151550_3_,
int p_151550_4_,
int p_151550_5_,
int p_151550_6_,
StructureBoundingBox p_151550_7_)
current Position depends on currently set Coordinates mode, is computed here
|
protected void |
spawnVillagers(World par1World,
StructureBoundingBox par2StructureBoundingBox,
int par3,
int par4,
int par5,
int par6)
Spawns a number of villagers in this component.
|
buildComponent, clearCurrentPositionBlocksUpwards, fillWithAir, fillWithMetadataBlocks, fillWithRandomizedBlocks, findIntersecting, func_143009_a, func_143010_b, func_151547_a, func_151552_a, func_151553_a, generateStructureChestContents, generateStructureDispenserContents, getBlockAtCurrentPosition, getBoundingBox, getComponentType, getMetadataWithOffset, getXWithOffset, getYWithOffset, getZWithOffset, isLiquidInStructureBoundingBox, placeDoorAtCurrentPosition, randomlyFillWithBlocks
public StructureVillagePieces.Church()
public StructureVillagePieces.Church(StructureVillagePieces.Start par1ComponentVillageStartPiece, int par2, java.util.Random par3Random, StructureBoundingBox par4StructureBoundingBox, int par5)
public static StructureVillagePieces.Church func_74919_a(StructureVillagePieces.Start par0ComponentVillageStartPiece, java.util.List par1List, java.util.Random par2Random, int par3, int par4, int par5, int par6, int par7)
public boolean addComponentParts(World par1World, java.util.Random par2Random, StructureBoundingBox par3StructureBoundingBox)
addComponentParts
in class StructureComponent
protected int getVillagerType(int par1)
protected void func_143012_a(NBTTagCompound par1NBTTagCompound)
func_143012_a
in class StructureComponent
protected void func_143011_b(NBTTagCompound par1NBTTagCompound)
func_143011_b
in class StructureComponent
protected StructureComponent getNextComponentNN(StructureVillagePieces.Start par1ComponentVillageStartPiece, java.util.List par2List, java.util.Random par3Random, int par4, int par5)
protected StructureComponent getNextComponentPP(StructureVillagePieces.Start par1ComponentVillageStartPiece, java.util.List par2List, java.util.Random par3Random, int par4, int par5)
protected int getAverageGroundLevel(World par1World, StructureBoundingBox par2StructureBoundingBox)
protected static boolean canVillageGoDeeper(StructureBoundingBox par0StructureBoundingBox)
protected void spawnVillagers(World par1World, StructureBoundingBox par2StructureBoundingBox, int par3, int par4, int par5, int par6)
protected int func_151557_c(Block p_151557_1_, int p_151557_2_)
protected void placeBlockAtCurrentPosition(World p_151550_1_, Block p_151550_2_, int p_151550_3_, int p_151550_4_, int p_151550_5_, int p_151550_6_, StructureBoundingBox p_151550_7_)
placeBlockAtCurrentPosition
in class StructureComponent
protected void fillWithBlocks(World p_151549_1_, StructureBoundingBox p_151549_2_, int p_151549_3_, int p_151549_4_, int p_151549_5_, int p_151549_6_, int p_151549_7_, int p_151549_8_, Block p_151549_9_, Block p_151549_10_, boolean p_151549_11_)
fillWithBlocks
in class StructureComponent
protected void func_151554_b(World p_151554_1_, Block p_151554_2_, int p_151554_3_, int p_151554_4_, int p_151554_5_, int p_151554_6_, StructureBoundingBox p_151554_7_)
func_151554_b
in class StructureComponent