question: 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 ; }
target:  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