Examples of canWrench()


Examples of buildcraft.api.tools.IToolWrench.canWrench()

      try
      {
        if ( eq.getItem() instanceof IToolWrench )
        {
          IToolWrench wrench = (IToolWrench) eq.getItem();
          return wrench.canWrench( player, x, y, z );
        }
      }
      catch (Throwable ignore)
      { // explodes without BC
View Full Code Here

Examples of buildcraft.api.tools.IToolWrench.canWrench()

      }

      if ( eq.getItem() instanceof IAEWrench )
      {
        IAEWrench wrench = (IAEWrench) eq.getItem();
        return wrench.canWrench( eq, player, x, y, z );
      }
    }
    return false;
  }
View Full Code Here

Examples of buildcraft.api.tools.IToolWrench.canWrench()

    public boolean blockActivated(EntityPlayer player, int side) {
        ItemStack current = player.inventory.getCurrentItem();
        if (current != null)
            if (current.getItem() instanceof IToolWrench) {
                IToolWrench wrench = (IToolWrench) current.getItem();
                if (wrench.canWrench(player, xCoord, yCoord, zCoord))
                    if (Game.isHost(worldObj) && getEnergyStage() == EnergyStage.OVERHEAT) {
                        resetEnergyStage();
                        wrench.wrenchUsed(player, xCoord, yCoord, zCoord);
                        return true;
                    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.