Package net.minecraft.src
Class ComponentVillageStartPiece
java.lang.Object
net.minecraft.src.StructureComponent
net.minecraft.src.ComponentVillageWell
net.minecraft.src.ComponentVillageStartPiece
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected intbooleanBoolean that determines if the village is in a desert or not.protected ComponentVillageStartPieceContains List of all spawnable Structure Piece Weights.intWorld terrain type, 0 for normal, 1 for flap mapFields inherited from class net.minecraft.src.StructureComponent
boundingBox, componentType, coordBaseMode -
Constructor Summary
ConstructorsConstructorDescriptionComponentVillageStartPiece(WorldChunkManager par1WorldChunkManager, int par2, Random par3Random, int par4, int par5, List par6List, int par7) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddDesertBiome(BiomeGenBase biome) 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) intgetAbandonmentLevel(World world) 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.intgetPrimaryCropBlockID(World world) intgetSecondaryCropBlockID(World world) protected intgetVillagerType(int par1) Returns the villager type to spawn in this component, based on the number of villagers already spawned.static booleanisDesertBiome(BiomeGenBase biome) 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.ComponentVillageWell
addComponentParts, buildComponentMethods inherited from class net.minecraft.src.StructureComponent
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
-
worldChunkMngr
-
inDesert
public boolean inDesertBoolean that determines if the village is in a desert or not. -
terrainType
public int terrainTypeWorld terrain type, 0 for normal, 1 for flap map -
structVillagePieceWeight
-
structureVillageWeightedPieceList
Contains List of all spawnable Structure Piece Weights. If no more Pieces of a type can be spawned, they are removed from this list -
field_74932_i
-
field_74930_j
-
field_143015_k
protected int field_143015_k -
field_143014_b
protected boolean field_143014_b -
startPiece
-
-
Constructor Details
-
ComponentVillageStartPiece
public ComponentVillageStartPiece() -
ComponentVillageStartPiece
public ComponentVillageStartPiece(WorldChunkManager par1WorldChunkManager, int par2, Random par3Random, int par4, int par5, List par6List, int par7)
-
-
Method Details
-
getWorldChunkManager
-
addDesertBiome
-
isDesertBiome
-
getAbandonmentLevel
-
getPrimaryCropBlockID
-
getSecondaryCropBlockID
-
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
-