Example #1
0
 public virtual void Func_22045_b(int i, int j, int k)
 {
     if (i == field_22054_g && j == field_22053_h && k == field_22052_i)
     {
         int l  = field_22051_j - field_22055_d;
         int i1 = thisWorld.GetBlockId(i, j, k);
         if (i1 != 0)
         {
             net.minecraft.src.Block block = net.minecraft.src.Block.blocksList[i1];
             float f = block.BlockStrength(thisPlayer) * (float)(l + 1);
             if (f >= 0.7F)
             {
                 Func_325_c(i, j, k);
             }
             else
             {
                 if (!field_22050_k)
                 {
                     field_22050_k = true;
                     field_22049_l = i;
                     field_22048_m = j;
                     field_22047_n = k;
                     field_22046_o = field_22055_d;
                 }
             }
         }
     }
     field_672_d = 0.0F;
 }
Example #2
0
 public virtual void Func_328_a()
 {
     field_22051_j++;
     if (field_22050_k)
     {
         int i = field_22051_j - field_22046_o;
         int j = thisWorld.GetBlockId(field_22049_l, field_22048_m, field_22047_n);
         if (j != 0)
         {
             net.minecraft.src.Block block = net.minecraft.src.Block.blocksList[j];
             float f = block.BlockStrength(thisPlayer) * (float)(i + 1);
             if (f >= 1.0F)
             {
                 field_22050_k = false;
                 Func_325_c(field_22049_l, field_22048_m, field_22047_n);
             }
         }
         else
         {
             field_22050_k = false;
         }
     }
 }