コード例 #1
0
 public int func_76628_c(int p_76628_1_, int p_76628_2_, int p_76628_3_) {
   if (p_76628_2_ >> 4 >= this.field_76652_q.length) {
     return 0;
   } else {
     ExtendedBlockStorage var4 = this.field_76652_q[p_76628_2_ >> 4];
     return var4 != null ? var4.func_76665_b(p_76628_1_, p_76628_2_ & 15, p_76628_3_) : 0;
   }
 }
コード例 #2
0
  public boolean func_76589_b(int p_76589_1_, int p_76589_2_, int p_76589_3_, int p_76589_4_) {
    ExtendedBlockStorage var5 = this.field_76652_q[p_76589_2_ >> 4];
    if (var5 == null) {
      return false;
    } else {
      int var6 = var5.func_76665_b(p_76589_1_, p_76589_2_ & 15, p_76589_3_);
      if (var6 == p_76589_4_) {
        return false;
      } else {
        this.field_76643_l = true;
        var5.func_76654_b(p_76589_1_, p_76589_2_ & 15, p_76589_3_, p_76589_4_);
        int var7 = var5.func_76656_a(p_76589_1_, p_76589_2_ & 15, p_76589_3_);
        if (var7 > 0 && Block.field_71973_m[var7] instanceof BlockContainer) {
          TileEntity var8 = this.func_76597_e(p_76589_1_, p_76589_2_, p_76589_3_);
          if (var8 != null) {
            var8.func_70321_h();
            var8.field_70325_p = p_76589_4_;
          }
        }

        return true;
      }
    }
  }