public boolean isItemStackRegisteredForName(ItemStack stack,String oreName){
  final int[] oreIDs=OreDictionary.getOreIDs(stack);
  for (  final int oreID : oreIDs) {
    if (oreName.equals(OreDictionary.getOreName(oreID))) {
      return true;
    }
  }
  return false;
}

public boolean isItemStackRegisteredForName ( ItemStack stack , String oreName ) { final int [ ] oreIDs = OreDictionary . getOreIDs ( stack ) ; for ( final int oreID : oreIDs ) { if ( oreName . equals ( OreDictionary . getOreName ( oreID ) ) ) { return true ; } } return false ; }
is the itemstack registered under the specified ore name ? < p > test for this thread : http : / / www . minecraftforge . net / forum / index . php / topic , 34118 . 0 . html
