public int func_76629_c(int p_76629_1_, int p_76629_2_, int p_76629_3_, int p_76629_4_) {
    ExtendedBlockStorage var5 = this.field_76652_q[p_76629_2_ >> 4];
    if (var5 == null) {
      return !this.field_76637_e.field_73011_w.field_76576_e
              && p_76629_4_ < EnumSkyBlock.Sky.field_77198_c
          ? EnumSkyBlock.Sky.field_77198_c - p_76629_4_
          : 0;
    } else {
      int var6 =
          this.field_76637_e.field_73011_w.field_76576_e
              ? 0
              : var5.func_76670_c(p_76629_1_, p_76629_2_ & 15, p_76629_3_);
      if (var6 > 0) {
        field_76640_a = true;
      }

      var6 -= p_76629_4_;
      int var7 = var5.func_76674_d(p_76629_1_, p_76629_2_ & 15, p_76629_3_);
      if (var7 > var6) {
        var6 = var7;
      }

      return var6;
    }
  }
 public int func_76614_a(EnumSkyBlock p_76614_1_, int p_76614_2_, int p_76614_3_, int p_76614_4_) {
   ExtendedBlockStorage var5 = this.field_76652_q[p_76614_3_ >> 4];
   return var5 == null
       ? (this.func_76619_d(p_76614_2_, p_76614_3_, p_76614_4_) ? p_76614_1_.field_77198_c : 0)
       : (p_76614_1_ == EnumSkyBlock.Sky
           ? var5.func_76670_c(p_76614_2_, p_76614_3_ & 15, p_76614_4_)
           : (p_76614_1_ == EnumSkyBlock.Block
               ? var5.func_76674_d(p_76614_2_, p_76614_3_ & 15, p_76614_4_)
               : p_76614_1_.field_77198_c));
 }