blob: 5322092e745f30b745c6c1ae774926e9315a7b36 [file] [log] [blame] [raw]
package li.cil.oc.integration.appeng
import appeng.api.implementations.items.IAEWrench
import net.minecraft.entity.player.EntityPlayer
import net.minecraft.item.ItemStack
object EventHandlerAE2 {
def useWrench(player: EntityPlayer, x: Int, y: Int, z: Int, changeDurability: Boolean): Boolean = {
player.getHeldItem.getItem match {
case wrench: IAEWrench => wrench.canWrench(player.getHeldItem, player, x, y, z)
case _ => false
}
}
def isWrench(stack: ItemStack): Boolean = stack.getItem.isInstanceOf[IAEWrench]
}