public static ItemStack getSmeltingRecipeForRequestedOutput ( String output ) { ItemStack target = MinecraftTypeHelper . getItemStackFromParameterString ( output ) ; Iterator < ? > furnaceIt = FurnaceRecipes . instance ( ) . getSmeltingList ( ) . keySet ( ) . iterator ( ) ; while ( furnaceIt . hasNext ( ) ) { ItemStack isInput = ( ItemStack ) furnaceIt . next ( ) ; ItemStack isOutput = ( ItemStack ) FurnaceRecipes . instance ( ) . getSmeltingList ( ) . get ( isInput ) ; if ( itemStackIngredientsMatch ( target , isOutput ) ) return isInput ; } return null ; }
Attempt to find a smelting recipe that results in the requested output .