Class ComponentNetherBridgeCorridor

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

public class ComponentNetherBridgeCorridor extends StructureComponent
  • Field Details

  • Constructor Details

    • ComponentNetherBridgeCorridor

      public ComponentNetherBridgeCorridor()
    • ComponentNetherBridgeCorridor

      public ComponentNetherBridgeCorridor(int par1, Random par2Random, StructureBoundingBox par3StructureBoundingBox, int par4)
  • Method Details

    • func_143011_b

      protected void func_143011_b(NBTTagCompound par1NBTTagCompound)
    • func_143012_a

      protected void func_143012_a(NBTTagCompound par1NBTTagCompound)
    • buildComponent

      public void buildComponent(StructureComponent par1StructureComponent, List par2List, Random par3Random)
      Initiates construction of the Structure Component picked, at the current Location of StructGen
      Overrides:
      buildComponent in class StructureComponent
    • createValidComponent

      public static ComponentNetherBridgeCorridor createValidComponent(List par0List, Random par1Random, int par2, int par3, int par4, int par5, int par6)
      Creates and returns a new component piece. Or null if it could not find enough room to place it.
    • 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
    • getNextComponentNormal

      protected StructureComponent getNextComponentNormal(ComponentNetherBridgeStartPiece par1ComponentNetherBridgeStartPiece, List par2List, Random par3Random, int par4, int par5, boolean par6)
      Gets the next component in any cardinal direction
    • getNextComponentX

      protected StructureComponent getNextComponentX(ComponentNetherBridgeStartPiece par1ComponentNetherBridgeStartPiece, List par2List, Random par3Random, int par4, int par5, boolean par6)
      Gets the next component in the +/- X direction
    • getNextComponentZ

      protected StructureComponent getNextComponentZ(ComponentNetherBridgeStartPiece par1ComponentNetherBridgeStartPiece, List par2List, Random par3Random, int par4, int par5, boolean par6)
      Gets the next component in the +/- Z direction
    • isAboveGround

      protected static boolean isAboveGround(StructureBoundingBox par0StructureBoundingBox)
      Checks if the bounding box's minY is > 10