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 ComponentStrongholdCorridor(
     int p_i412_1_, Random p_i412_2_, StructureBoundingBox p_i412_3_, int p_i412_4_) {
   super(p_i412_1_);
   this.field_35025_h = p_i412_4_;
   this.field_35024_g = p_i412_3_;
   this.field_35052_a =
       p_i412_4_ != 2 && p_i412_4_ != 0 ? p_i412_3_.func_35744_b() : p_i412_3_.func_35739_d();
 }
Exemplo n.º 3
0
  protected void placeTreasureAtCurrentPosition(
      World var1, Random var2, int var3, int var4, int var5, StructureBoundingBox var7) {
    int var8 = this.getXWithOffset(var3, var5);
    int var9 = this.getYWithOffset(var4);
    int var10 = this.getZWithOffset(var3, var5);

    if (var7.isVecInside(var8, var9, var10)
        && var1.getBlockId(var8, var9, var10) != Block.chest.blockID) {
      GCUtil.generateChestContents(var1, var2, var8, var9, var10);
    }
  }
 public static ComponentStrongholdStraight func_75018_a(
     List p_75018_0_,
     Random p_75018_1_,
     int p_75018_2_,
     int p_75018_3_,
     int p_75018_4_,
     int p_75018_5_,
     int p_75018_6_) {
   StructureBoundingBox var7 =
       StructureBoundingBox.func_78889_a(
           p_75018_2_, p_75018_3_, p_75018_4_, -1, -1, 0, 5, 5, 7, p_75018_5_);
   return func_74991_a(var7) && StructureComponent.func_74883_a(p_75018_0_, var7) == null
       ? new ComponentStrongholdStraight(p_75018_6_, p_75018_1_, var7, p_75018_5_)
       : null;
 }
 public static ComponentNetherBridgeCorridor func_74978_a(
     List p_74978_0_,
     Random p_74978_1_,
     int p_74978_2_,
     int p_74978_3_,
     int p_74978_4_,
     int p_74978_5_,
     int p_74978_6_) {
   StructureBoundingBox var7 =
       StructureBoundingBox.func_78889_a(
           p_74978_2_, p_74978_3_, p_74978_4_, -1, 0, 0, 5, 7, 5, p_74978_5_);
   return func_74964_a(var7) && StructureComponent.func_74883_a(p_74978_0_, var7) == null
       ? new ComponentNetherBridgeCorridor(p_74978_6_, p_74978_1_, var7, p_74978_5_)
       : 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;
 }
 public static ComponentVillageHouse1DayZ func_74898_a(
     ComponentVillageStartPiece par0ComponentVillageStartPiece,
     List par1List,
     Random par2Random,
     int par3,
     int par4,
     int par5,
     int par6,
     int par7) {
   StructureBoundingBox var8 =
       StructureBoundingBox.getComponentToAddBoundingBox(par3, par4, par5, 0, 0, 0, 9, 9, 6, par6);
   return canVillageGoDeeper(var8) && StructureComponent.findIntersecting(par1List, var8) == null
       ? new ComponentVillageHouse1DayZ(
           par0ComponentVillageStartPiece, par7, par2Random, var8, par6)
       : null;
 }
Exemplo n.º 8
0
  protected void placeSpawnerAtCurrentPosition(
      World var1,
      Random var2,
      int var3,
      int var4,
      int var5,
      String var6,
      StructureBoundingBox var7) {
    int var8 = this.getXWithOffset(var3, var5);
    int var9 = this.getYWithOffset(var4);
    int var10 = this.getZWithOffset(var3, var5);

    if (var7.isVecInside(var8, var9, var10)
        && var1.getBlockId(var8, var9, var10) != Block.mobSpawner.blockID) {
      var1.setBlockWithNotify(var8, var9, var10, Block.mobSpawner.blockID);
      TileEntityMobSpawner var11 =
          (TileEntityMobSpawner) var1.getBlockTileEntity(var8, var9, var10);

      if (var11 != null) {
        var11.setMobID(var6);
      }
    }
  }