示例#1
0
  public void doTallImpact(
      World var1, ItemStack var2, EntityHuman var3, int var4, int var5, int var6, double var7) {
    cleanDroplist(var2);

    for (int var9 = -1; var9 <= 1; var9++) {
      int var10 = var4;
      int var11 = var5;
      int var12 = var6;

      if (var9 == 0) continue;
      if ((var7 != 0.0D) && (var7 != 1.0D)) {
        var11 = var5 + var9;
      } else if ((EEBase.heading(var3) != 2.0D) && (EEBase.heading(var3) != 4.0D)) {
        var10 = var4 + var9;
      } else {
        var12 = var6 + var9;
      }

      int var13 = var1.getTypeId(var10, var11, var12);
      int var14 = var1.getData(var10, var11, var12);

      if (!canBreak(var13, var14)) continue;
      scanBlockAndBreak(var3, var1, var2, var10, var11, var12);
    }

    ejectDropList(var1, var2, var4, var5 + 0.5D, var6);
  }
 public boolean a(ItemStack var1, int var2, int var3, int var4, int var5, EntityLiving var6) {
   EntityHuman var7 = null;
   if (var6 instanceof EntityHuman) {
     var7 = (EntityHuman) var6;
     if (EEBase.getHammerMode(var7))
       doMegaImpact(var7, var1, var3, var4, var5, EEBase.direction(var7));
     return true;
   } else {
     return true;
   }
 }
示例#3
0
  public boolean a(ItemStack var1, int var2, int var3, int var4, int var5, EntityLiving var6) {
    EntityHuman var7 = null;

    if ((var6 instanceof EntityHuman)) {
      var7 = (EntityHuman) var6;

      if (EEBase.getToolMode(var7) != 0) {
        if (EEBase.getToolMode(var7) == 1) {
          doTallImpact(var7.world, var1, var7, var3, var4, var5, EEBase.direction(var7));
        } else if (EEBase.getToolMode(var7) == 2) {
          doWideImpact(var7, var7.world, var1, var3, var4, var5, EEBase.heading(var7));
        } else if (EEBase.getToolMode(var7) == 3) {
          doLongImpact(var7, var7.world, var1, var3, var4, var5, EEBase.direction(var7));
        }
      }

      return true;
    }

    return true;
  }
 public void doAlternate(ItemStack var1, World var2, EntityHuman var3) {
   EEBase.updateHammerMode(var3, true);
 }
示例#5
0
 public void doAlternate(ItemStack var1, World var2, EntityHuman var3) {
   EEBase.updateToolMode(var3);
 }