public boolean a(World var1, Random var2, int var3, int var4, int var5) {
    if (ExtrabiomesBlock.quickSand != null) {
      while (var1.isEmpty(var3, var4, var5) && var4 > 2) {
        --var4;
      }

      if (var1.getTypeId(var3, var4, var5) != Block.GRASS.id) {
        return false;
      }

      int var6;
      int var7;

      for (var6 = -2; var6 <= 2; ++var6) {
        for (var7 = -2; var7 <= 2; ++var7) {
          if (var1.isEmpty(var3 + var6, var4 - 1, var5 + var7)
              && var1.isEmpty(var3 + var6, var4 - 2, var5 + var7)) {
            return false;
          }
        }
      }

      for (var6 = -1; var6 <= 1; ++var6) {
        for (var7 = -1; var7 <= 1; ++var7) {
          for (int var8 = -2; var8 <= 0; ++var8) {
            var1.setRawTypeId(var3 + var6, var4 + var8, var5 + var7, ExtrabiomesBlock.quickSand.id);
          }
        }
      }
    }

    return true;
  }
Ejemplo n.º 2
0
  @Override
  public boolean a(
      World paramWorld, Random paramRandom, int paramInt1, int paramInt2, int paramInt3) {
    for (int i = 0; i < 10; i++) {
      int j = paramInt1 + paramRandom.nextInt(8) - paramRandom.nextInt(8);
      int k = paramInt2 + paramRandom.nextInt(4) - paramRandom.nextInt(4);
      int m = paramInt3 + paramRandom.nextInt(8) - paramRandom.nextInt(8);
      if (paramWorld.isEmpty(j, k, m)) {
        int n = 1 + paramRandom.nextInt(paramRandom.nextInt(3) + 1);
        for (int i1 = 0; i1 < n; i1++) {
          if (Block.CACTUS.f(paramWorld, j, k + i1, m)) {
            paramWorld.setRawTypeId(j, k + i1, m, Block.CACTUS.id);
          }
        }
      }
    }

    return true;
  }