Class ComponentVillageStartPiece


public class ComponentVillageStartPiece extends ComponentVillageWell
  • Field Details

    • worldChunkMngr

      public WorldChunkManager worldChunkMngr
    • inDesert

      public boolean inDesert
      Boolean that determines if the village is in a desert or not.
    • terrainType

      public int terrainType
      World terrain type, 0 for normal, 1 for flap map
    • structVillagePieceWeight

      public StructureVillagePieceWeight structVillagePieceWeight
    • structureVillageWeightedPieceList

      public List 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

      public List field_74932_i
    • field_74930_j

      public List field_74930_j
    • field_143015_k

      protected int field_143015_k
    • field_143014_b

      protected boolean field_143014_b
    • startPiece

      protected ComponentVillageStartPiece 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

      public WorldChunkManager getWorldChunkManager()
    • addDesertBiome

      public static void addDesertBiome(BiomeGenBase biome)
    • isDesertBiome

      public static boolean isDesertBiome(BiomeGenBase biome)
    • getAbandonmentLevel

      public int getAbandonmentLevel(World world)
    • getPrimaryCropBlockID

      public int getPrimaryCropBlockID(World world)
    • getSecondaryCropBlockID

      public int getSecondaryCropBlockID(World world)
    • 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
    • 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:
      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