Package net.minecraft.src
Class ComponentMineshaftCorridor
java.lang.Object
net.minecraft.src.StructureComponent
net.minecraft.src.ComponentMineshaftCorridor
-
Field Summary
Fields inherited from class net.minecraft.src.StructureComponent
boundingBox, componentType, coordBaseMode -
Constructor Summary
ConstructorsConstructorDescriptionComponentMineshaftCorridor(int par1, Random par2Random, StructureBoundingBox par3StructureBoundingBox, int par4) -
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...voidbuildComponent(StructureComponent par1StructureComponent, List par2List, Random par3Random) Initiates construction of the Structure Component picked, at the current Location of StructGenstatic StructureBoundingBoxfindValidPlacement(List par0List, Random par1Random, int par2, int par3, int par4, int par5) protected voidfunc_143011_b(NBTTagCompound par1NBTTagCompound) protected voidfunc_143012_a(NBTTagCompound par1NBTTagCompound) protected booleangenerateStructureChestContents(World par1World, StructureBoundingBox par2StructureBoundingBox, Random par3Random, int par4, int par5, int par6, WeightedRandomChestContent[] par7ArrayOfWeightedRandomChestContent, int par8) Used to generate chests with items in it. ex: Temple Chests, Village Blacksmith Chests, Mineshaft Chests.protected intgetMetadataWithOffset(int iBlockID, int iMetadata) Returns the direction-shifted metadata for blocks that require orientation, e.g. doors, stairs, ladders.Methods inherited from class net.minecraft.src.StructureComponent
clearCurrentPositionBlocksUpwards, damageContainerItems, fillCurrentPositionBlocksDownwards, fillWithAir, fillWithBlocks, fillWithMetadataBlocks, fillWithRandomizedBlocks, findIntersecting, func_143009_a, func_143010_b, generateStructureContainerContents, generateStructureDispenserContents, getBlockIdAtCurrentPosition, getBoundingBox, getCenter, getComponentType, getMetadataTwistedWithGen, getXWithOffset, getYWithOffset, getZWithOffset, isLiquidInStructureBoundingBox, placeBlockAtCurrentPosition, placeDoorAtCurrentPosition, randomlyFillWithBlocks, randomlyPlaceBlock, randomlyRareFillWithBlocks
-
Constructor Details
-
ComponentMineshaftCorridor
public ComponentMineshaftCorridor() -
ComponentMineshaftCorridor
public ComponentMineshaftCorridor(int par1, Random par2Random, StructureBoundingBox par3StructureBoundingBox, int par4)
-
-
Method Details
-
func_143012_a
- Specified by:
func_143012_ain classStructureComponent
-
func_143011_b
- Specified by:
func_143011_bin classStructureComponent
-
findValidPlacement
public static StructureBoundingBox findValidPlacement(List par0List, Random par1Random, int par2, int par3, int par4, int par5) -
buildComponent
public void buildComponent(StructureComponent par1StructureComponent, List par2List, Random par3Random) Initiates construction of the Structure Component picked, at the current Location of StructGen- Overrides:
buildComponentin classStructureComponent
-
generateStructureChestContents
protected boolean generateStructureChestContents(World par1World, StructureBoundingBox par2StructureBoundingBox, Random par3Random, int par4, int par5, int par6, WeightedRandomChestContent[] par7ArrayOfWeightedRandomChestContent, int par8) Used to generate chests with items in it. ex: Temple Chests, Village Blacksmith Chests, Mineshaft Chests.- Overrides:
generateStructureChestContentsin classStructureComponent
-
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
-
getMetadataWithOffset
protected int getMetadataWithOffset(int iBlockID, int iMetadata) Description copied from class:StructureComponentReturns the direction-shifted metadata for blocks that require orientation, e.g. doors, stairs, ladders. Parameters: block ID, original metadata- Overrides:
getMetadataWithOffsetin classStructureComponent
-