public static StructureBoundingBox func_35051_a(
      List p_35051_0_,
      Random p_35051_1_,
      int p_35051_2_,
      int p_35051_3_,
      int p_35051_4_,
      int p_35051_5_) {
    StructureBoundingBox var7 =
        StructureBoundingBox.func_35747_a(
            p_35051_2_, p_35051_3_, p_35051_4_, -1, -1, 0, 5, 5, 4, p_35051_5_);
    StructureComponent var8 = StructureComponent.func_35020_a(p_35051_0_, var7);
    if (var8 == null) {
      return null;
    } else {
      if (var8.func_35021_b().field_35751_b == var7.field_35751_b) {
        for (int var9 = 3; var9 >= 1; --var9) {
          var7 =
              StructureBoundingBox.func_35747_a(
                  p_35051_2_, p_35051_3_, p_35051_4_, -1, -1, 0, 5, 5, var9 - 1, p_35051_5_);
          if (!var8.func_35021_b().func_35740_a(var7)) {
            return StructureBoundingBox.func_35747_a(
                p_35051_2_, p_35051_3_, p_35051_4_, -1, -1, 0, 5, 5, var9, p_35051_5_);
          }
        }
      }

      return null;
    }
  }
 public static ComponentStrongholdCrossing func_35039_a(
     List p_35039_0_,
     Random p_35039_1_,
     int p_35039_2_,
     int p_35039_3_,
     int p_35039_4_,
     int p_35039_5_,
     int p_35039_6_) {
   StructureBoundingBox var7 =
       StructureBoundingBox.func_35747_a(
           p_35039_2_, p_35039_3_, p_35039_4_, -4, -3, 0, 10, 9, 11, p_35039_5_);
   return func_35030_a(var7) && StructureComponent.func_35020_a(p_35039_0_, var7) == null
       ? new ComponentStrongholdCrossing(p_35039_6_, p_35039_1_, var7, p_35039_5_)
       : null;
 }