public GT_MetaGenerated_Item_X01(String aUnlocalized,OrePrefixes aGeneratedPrefix,int aIconSetIndex){
  super(aUnlocalized,(short)32000,(short)766);
  mPrefix=aGeneratedPrefix;
  mIconSetIndex=aIconSetIndex >= 0 ? aIconSetIndex : aGeneratedPrefix.mTextureIndex >= 0 ? aGeneratedPrefix.mTextureIndex : 0;
  for (int i=0; i < GregTech_API.sGeneratedMaterials.length; i++) {
    OrePrefixes tPrefix=mPrefix;
    if (tPrefix == null)     continue;
    Materials tMaterial=GregTech_API.sGeneratedMaterials[i];
    if (tMaterial == null)     continue;
    if (mPrefix.doGenerateItem(tMaterial)) {
      ItemStack tStack=new ItemStack(this,1,i);
      GT_LanguageManager.addStringLocalization(getUnlocalizedName(tStack) + ".name",getDefaultLocalization(tPrefix,tMaterial,i));
      GT_LanguageManager.addStringLocalization(getUnlocalizedName(tStack) + ".tooltip",tMaterial.getToolTip(tPrefix.mMaterialAmount / M));
      String tOreName=getOreDictString(tPrefix,tMaterial);
      tPrefix=OrePrefixes.getOrePrefix(tOreName);
      if (tPrefix != null && tPrefix.mIsUnificatable) {
        GT_OreDictUnificator.set(tPrefix,OrePrefixes.getMaterial(tOreName,tPrefix),tStack);
      }
 else {
        GT_OreDictUnificator.registerOre(tOreName,tStack);
      }
    }
  }
}

public GT_MetaGenerated_Item_X01 ( String aUnlocalized , OrePrefixes aGeneratedPrefix , int aIconSetIndex ) { super ( aUnlocalized , ( short ) 32000 , ( short ) 766 ) ; mPrefix = aGeneratedPrefix ; mIconSetIndex = aIconSetIndex >= 0 ? aIconSetIndex : aGeneratedPrefix . mTextureIndex >= 0 ? aGeneratedPrefix . mTextureIndex : 0 ; for ( int i = 0 ; i < GregTech_API . sGeneratedMaterials . length ; i ++ ) { OrePrefixes tPrefix = mPrefix ; if ( tPrefix == null ) continue ; Materials tMaterial = GregTech_API . sGeneratedMaterials [ i ] ; if ( tMaterial == null ) continue ; if ( mPrefix . doGenerateItem ( tMaterial ) ) { ItemStack tStack = new ItemStack ( this , 1 , i ) ; GT_LanguageManager . addStringLocalization ( getUnlocalizedName ( tStack ) + ".name" , getDefaultLocalization ( tPrefix , tMaterial , i ) ) ; GT_LanguageManager . addStringLocalization ( getUnlocalizedName ( tStack ) + ".tooltip" , tMaterial . getToolTip ( tPrefix . mMaterialAmount / M ) ) ; String tOreName = getOreDictString ( tPrefix , tMaterial ) ; tPrefix = OrePrefixes . getOrePrefix ( tOreName ) ; if ( tPrefix != null && tPrefix . mIsUnificatable ) { GT_OreDictUnificator . set ( tPrefix , OrePrefixes . getMaterial ( tOreName , tPrefix ) , tStack ) ; } else { GT_OreDictUnificator . registerOre ( tOreName , tStack ) ; } } } }
creates the item using these parameters . this is for the new 1 item = 1 prefix system .
