public static boolean canHeadHarvestBlock(ItemStack head, Block block, int meta) {
if (head == null)
return false;
if (head.getItem() instanceof IBoreHead) {
IBoreHead boreHead = (IBoreHead) head.getItem();
boolean mappingExists = false;
int blockHarvestLevel = HarvestPlugin.getBlockHarvestLevel(block, meta, "pickaxe");
if (blockHarvestLevel > -1) {
if (boreHead.getHarvestLevel() >= blockHarvestLevel)
return true;
mappingExists = true;
}
blockHarvestLevel = HarvestPlugin.getBlockHarvestLevel(block, meta, "axe");
if (blockHarvestLevel > -1) {
if (boreHead.getHarvestLevel() >= blockHarvestLevel)
return true;
mappingExists = true;
}
blockHarvestLevel = HarvestPlugin.getBlockHarvestLevel(block, meta, "shovel");
if (blockHarvestLevel > -1) {
if (boreHead.getHarvestLevel() >= blockHarvestLevel)
return true;
mappingExists = true;
}
if (mappingExists)