Class ComponentVillageHall

java.lang.Object
net.minecraft.src.StructureComponent
net.minecraft.src.ComponentVillageHall

public class ComponentVillageHall extends StructureComponent
  • Field Details

    • field_143015_k

      protected int field_143015_k
    • field_143014_b

      protected boolean field_143014_b
    • startPiece

      protected ComponentVillageStartPiece startPiece
  • Constructor Details

  • Method Details

    • func_74906_a

      public static ComponentVillageHall func_74906_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:
      addComponentParts in class StructureComponent
    • getVillagerType

      protected int getVillagerType(int par1)
      Returns the villager type to spawn in this component, based on the number of villagers already spawned.
    • func_143012_a

      protected void func_143012_a(NBTTagCompound par1NBTTagCompound)
      Specified by:
      func_143012_a in class StructureComponent
    • func_143011_b

      protected void func_143011_b(NBTTagCompound par1NBTTagCompound)
      Specified by:
      func_143011_b in class StructureComponent
    • 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

      protected int getAverageGroundLevel(World par1World, StructureBoundingBox par2StructureBoundingBox)
      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

      protected static boolean canVillageGoDeeper(StructureBoundingBox par0StructureBoundingBox)
    • 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
    • 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:
      placeBlockAtCurrentPosition in class StructureComponent
    • 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:
      fillWithBlocks in class StructureComponent
    • 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:
      fillCurrentPositionBlocksDownwards in class StructureComponent