Program: 30807
Project: 30807
Buggy source:
public void PreInit(FMLPreInitializationEvent event){
  MinecraftForge.EVENT_BUS.register(OreDictionaryHandler.instance);
  Items items=appeng.core.Api.instance.items();
  Materials materials=appeng.core.Api.instance.materials();
  Parts parts=appeng.core.Api.instance.parts();
  Blocks blocks=appeng.core.Api.instance.blocks();
  AEItemDefinition materialItem=(AEFeatureHandler)addFeature(ItemMaterial.class);
  Class materialClass=materials.getClass();
  for (  MaterialType mat : MaterialType.values()) {
    try {
      Field f=materialClass.getField("String_Node_Str" + mat.name());
      ItemStack is=((ItemMaterial)materialItem.item()).createMaterial(mat);
      if (is != null)       f.set(materials,new DamagedItemDefinition(is));
 else       f.set(materials,new NullItemDefinition());
    }
 catch (    Throwable err) {
      AELog.severe("String_Node_Str" + mat.name());
      throw new RuntimeException(err);
    }
  }
  AEItemDefinition partItem=(AEFeatureHandler)addFeature(ItemPart.class);
  Class partClass=parts.getClass();
  for (  PartType type : PartType.values()) {
    try {
      Field f=partClass.getField("String_Node_Str" + type.name());
      Enum varients[]=type.getVarients();
      if (varients == null) {
        ItemStack is=((ItemPart)partItem.item()).createPart(type,null);
        if (is != null)         f.set(parts,new DamagedItemDefinition(is));
 else         f.set(parts,new NullItemDefinition());
      }
 else {
        if (varients[0] instanceof AEColor) {
          ColoredItemDefinition def=new ColoredItemDefinition();
          for (          Enum v : varients) {
            ItemStack is=((ItemPart)partItem.item()).createPart(type,v);
            if (is != null)             def.add((AEColor)v,is);
          }
          f.set(parts,def);
        }
      }
    }
 catch (    Throwable err) {
      AELog.severe("String_Node_Str" + type.name());
      throw new RuntimeException(err);
    }
  }
  blocks.blockMultiPart=addFeature(BlockCableBus.class);
  blocks.blockQuartzOre=addFeature(OreQuartz.class);
  blocks.blockQuartzOreCharged=addFeature(OreQuartzCharged.class);
  blocks.blockMatrixFrame=addFeature(BlockMatrixFrame.class);
  blocks.blockQuartz=addFeature(BlockQuartz.class);
  blocks.blockFluix=addFeature(BlockFluix.class);
  blocks.blockQuartzGlass=addFeature(BlockQuartzGlass.class);
  blocks.blockQuartzVibrantGlass=addFeature(BlockQuartzLamp.class);
  blocks.blockQuartzPiller=addFeature(BlockQuartzPillar.class);
  blocks.blockQuartzChiseled=addFeature(BlockQuartzChiseled.class);
  blocks.blockQuartzTorch=addFeature(BlockQuartzTorch.class);
  blocks.blockCharger=addFeature(BlockCharger.class);
  blocks.blockGrindStone=addFeature(BlockGrinder.class);
  blocks.blockCrankHandle=addFeature(BlockCrank.class);
  blocks.blockWireless=addFeature(BlockWireless.class);
  blocks.blockTinyTNT=addFeature(BlockTinyTNT.class);
  blocks.blockQuantumRing=addFeature(BlockQuantumRing.class);
  blocks.blockQuantumLink=addFeature(BlockQuantumLinkChamber.class);
  blocks.blockSpatialPylon=addFeature(BlockSpatialPylon.class);
  blocks.blockSpatialIOPort=addFeature(BlockSpatialIOPort.class);
  blocks.blockController=addFeature(BlockController.class);
  blocks.blockDrive=addFeature(BlockDrive.class);
  blocks.blockChest=addFeature(BlockChest.class);
  blocks.blockInterface=addFeature(BlockInterface.class);
  blocks.blockCellWorkbench=addFeature(BlockCellWorkbench.class);
  blocks.blockIOPort=addFeature(BlockIOPort.class);
  blocks.blockCondenser=addFeature(BlockCondenser.class);
  blocks.blockEnergyAcceptor=addFeature(BlockEnergyAcceptor.class);
  blocks.blockVibrationChamber=addFeature(BlockVibrationChamber.class);
  blocks.blockEnergyCell=addFeature(BlockEnergyCell.class);
  blocks.blockEnergyCellDense=addFeature(BlockDenseEnergyCell.class);
  blocks.blockEnergyCellCreative=addFeature(BlockCreativeEnergyCell.class);
  blocks.blockSecurity=addFeature(BlockSecurity.class);
  items.itemCellCreative=addFeature(ItemCreativeStorageCell.class);
  items.itemCell1k=addFeature(ItemBasicStorageCell.class,MaterialType.Cell1kPart,1);
  items.itemCell4k=addFeature(ItemBasicStorageCell.class,MaterialType.Cell4kPart,4);
  items.itemCell16k=addFeature(ItemBasicStorageCell.class,MaterialType.Cell16kPart,16);
  items.itemCell64k=addFeature(ItemBasicStorageCell.class,MaterialType.Cell64kPart,64);
  items.itemSpatialCell2=addFeature(ItemSpatialStorageCell.class,MaterialType.Cell2SpatialPart,2);
  items.itemSpatialCell16=addFeature(ItemSpatialStorageCell.class,MaterialType.Cell16SpatialPart,16);
  items.itemSpatialCell128=addFeature(ItemSpatialStorageCell.class,MaterialType.Cell128SpatialPart,128);
  items.itemCertusQuartzKnife=addFeature(ToolQuartzCuttingKnife.class,AEFeature.CertusQuartzTools);
  items.itemCertusQuartzWrench=addFeature(ToolQuartzWrench.class,AEFeature.CertusQuartzTools);
  items.itemCertusQuartzAxe=addFeature(ToolQuartzAxe.class,AEFeature.CertusQuartzTools);
  items.itemCertusQuartzHoe=addFeature(ToolQuartzHoe.class,AEFeature.CertusQuartzTools);
  items.itemCertusQuartzPick=addFeature(ToolQuartzPickaxe.class,AEFeature.CertusQuartzTools);
  items.itemCertusQuartzShovel=addFeature(ToolQuartzSpade.class,AEFeature.CertusQuartzTools);
  items.itemCertusQuartzSword=addFeature(ToolQuartzSword.class,AEFeature.CertusQuartzTools);
  items.itemNetherQuartzKnife=addFeature(ToolQuartzCuttingKnife.class,AEFeature.NetherQuartzTools);
  items.itemNetherQuartzWrench=addFeature(ToolQuartzWrench.class,AEFeature.NetherQuartzTools);
  items.itemNetherQuartzAxe=addFeature(ToolQuartzAxe.class,AEFeature.NetherQuartzTools);
  items.itemNetherQuartzHoe=addFeature(ToolQuartzHoe.class,AEFeature.NetherQuartzTools);
  items.itemNetherQuartzPick=addFeature(ToolQuartzPickaxe.class,AEFeature.NetherQuartzTools);
  items.itemNetherQuartzShovel=addFeature(ToolQuartzSpade.class,AEFeature.NetherQuartzTools);
  items.itemNetherQuartzSword=addFeature(ToolQuartzSword.class,AEFeature.NetherQuartzTools);
  items.itemMassCannon=addFeature(ToolMassCannon.class);
  items.itemMemoryCard=addFeature(ToolMemoryCard.class);
  items.itemChargedStaff=addFeature(ToolChargedStaff.class);
  items.itemEntropyManipulator=addFeature(ToolEntropyManipulator.class);
  items.itemWirelessTerminal=addFeature(ToolWirelessTerminal.class);
  items.itemNetworkTool=addFeature(ToolNetworkTool.class);
  items.itemPortableCell=addFeature(ToolPortableCell.class);
  items.itemBiometricCard=addFeature(ToolBiometricCard.class);
  items.itemFacade=addFeature(ItemFacade.class);
  addFeature(ToolDebugCard.class);
  addFeature(ToolReplicatorCard.class);
  addFeature(BlockItemGen.class);
  addFeature(BlockChunkloader.class);
}

Fixed version (ground truth):
public void PreInit(FMLPreInitializationEvent event){
  MinecraftForge.EVENT_BUS.register(OreDictionaryHandler.instance);
  Items items=appeng.core.Api.instance.items();
  Materials materials=appeng.core.Api.instance.materials();
  Parts parts=appeng.core.Api.instance.parts();
  Blocks blocks=appeng.core.Api.instance.blocks();
  AEItemDefinition materialItem=(AEFeatureHandler)addFeature(ItemMaterial.class);
  Class materialClass=materials.getClass();
  for (  MaterialType mat : MaterialType.values()) {
    try {
      Field f=materialClass.getField("String_Node_Str" + mat.name());
      ItemStackSrc is=((ItemMaterial)materialItem.item()).createMaterial(mat);
      if (is != null)       f.set(materials,new DamagedItemDefinition(is));
 else       f.set(materials,new NullItemDefinition());
    }
 catch (    Throwable err) {
      AELog.severe("String_Node_Str" + mat.name());
      throw new RuntimeException(err);
    }
  }
  AEItemDefinition partItem=(AEFeatureHandler)addFeature(ItemPart.class);
  Class partClass=parts.getClass();
  for (  PartType type : PartType.values()) {
    try {
      Field f=partClass.getField("String_Node_Str" + type.name());
      Enum varients[]=type.getVarients();
      if (varients == null) {
        ItemStackSrc is=((ItemPart)partItem.item()).createPart(type,null);
        if (is != null)         f.set(parts,new DamagedItemDefinition(is));
 else         f.set(parts,new NullItemDefinition());
      }
 else {
        if (varients[0] instanceof AEColor) {
          ColoredItemDefinition def=new ColoredItemDefinition();
          for (          Enum v : varients) {
            ItemStackSrc is=((ItemPart)partItem.item()).createPart(type,v);
            if (is != null)             def.add((AEColor)v,is);
          }
          f.set(parts,def);
        }
      }
    }
 catch (    Throwable err) {
      AELog.severe("String_Node_Str" + type.name());
      throw new RuntimeException(err);
    }
  }
  blocks.blockMultiPart=addFeature(BlockCableBus.class);
  blocks.blockQuartzOre=addFeature(OreQuartz.class);
  blocks.blockQuartzOreCharged=addFeature(OreQuartzCharged.class);
  blocks.blockMatrixFrame=addFeature(BlockMatrixFrame.class);
  blocks.blockQuartz=addFeature(BlockQuartz.class);
  blocks.blockFluix=addFeature(BlockFluix.class);
  blocks.blockQuartzGlass=addFeature(BlockQuartzGlass.class);
  blocks.blockQuartzVibrantGlass=addFeature(BlockQuartzLamp.class);
  blocks.blockQuartzPiller=addFeature(BlockQuartzPillar.class);
  blocks.blockQuartzChiseled=addFeature(BlockQuartzChiseled.class);
  blocks.blockQuartzTorch=addFeature(BlockQuartzTorch.class);
  blocks.blockCharger=addFeature(BlockCharger.class);
  blocks.blockGrindStone=addFeature(BlockGrinder.class);
  blocks.blockCrankHandle=addFeature(BlockCrank.class);
  blocks.blockWireless=addFeature(BlockWireless.class);
  blocks.blockTinyTNT=addFeature(BlockTinyTNT.class);
  blocks.blockQuantumRing=addFeature(BlockQuantumRing.class);
  blocks.blockQuantumLink=addFeature(BlockQuantumLinkChamber.class);
  blocks.blockSpatialPylon=addFeature(BlockSpatialPylon.class);
  blocks.blockSpatialIOPort=addFeature(BlockSpatialIOPort.class);
  blocks.blockController=addFeature(BlockController.class);
  blocks.blockDrive=addFeature(BlockDrive.class);
  blocks.blockChest=addFeature(BlockChest.class);
  blocks.blockInterface=addFeature(BlockInterface.class);
  blocks.blockCellWorkbench=addFeature(BlockCellWorkbench.class);
  blocks.blockIOPort=addFeature(BlockIOPort.class);
  blocks.blockCondenser=addFeature(BlockCondenser.class);
  blocks.blockEnergyAcceptor=addFeature(BlockEnergyAcceptor.class);
  blocks.blockVibrationChamber=addFeature(BlockVibrationChamber.class);
  blocks.blockEnergyCell=addFeature(BlockEnergyCell.class);
  blocks.blockEnergyCellDense=addFeature(BlockDenseEnergyCell.class);
  blocks.blockEnergyCellCreative=addFeature(BlockCreativeEnergyCell.class);
  blocks.blockSecurity=addFeature(BlockSecurity.class);
  items.itemCellCreative=addFeature(ItemCreativeStorageCell.class);
  items.itemCell1k=addFeature(ItemBasicStorageCell.class,MaterialType.Cell1kPart,1);
  items.itemCell4k=addFeature(ItemBasicStorageCell.class,MaterialType.Cell4kPart,4);
  items.itemCell16k=addFeature(ItemBasicStorageCell.class,MaterialType.Cell16kPart,16);
  items.itemCell64k=addFeature(ItemBasicStorageCell.class,MaterialType.Cell64kPart,64);
  items.itemSpatialCell2=addFeature(ItemSpatialStorageCell.class,MaterialType.Cell2SpatialPart,2);
  items.itemSpatialCell16=addFeature(ItemSpatialStorageCell.class,MaterialType.Cell16SpatialPart,16);
  items.itemSpatialCell128=addFeature(ItemSpatialStorageCell.class,MaterialType.Cell128SpatialPart,128);
  items.itemCertusQuartzKnife=addFeature(ToolQuartzCuttingKnife.class,AEFeature.CertusQuartzTools);
  items.itemCertusQuartzWrench=addFeature(ToolQuartzWrench.class,AEFeature.CertusQuartzTools);
  items.itemCertusQuartzAxe=addFeature(ToolQuartzAxe.class,AEFeature.CertusQuartzTools);
  items.itemCertusQuartzHoe=addFeature(ToolQuartzHoe.class,AEFeature.CertusQuartzTools);
  items.itemCertusQuartzPick=addFeature(ToolQuartzPickaxe.class,AEFeature.CertusQuartzTools);
  items.itemCertusQuartzShovel=addFeature(ToolQuartzSpade.class,AEFeature.CertusQuartzTools);
  items.itemCertusQuartzSword=addFeature(ToolQuartzSword.class,AEFeature.CertusQuartzTools);
  items.itemNetherQuartzKnife=addFeature(ToolQuartzCuttingKnife.class,AEFeature.NetherQuartzTools);
  items.itemNetherQuartzWrench=addFeature(ToolQuartzWrench.class,AEFeature.NetherQuartzTools);
  items.itemNetherQuartzAxe=addFeature(ToolQuartzAxe.class,AEFeature.NetherQuartzTools);
  items.itemNetherQuartzHoe=addFeature(ToolQuartzHoe.class,AEFeature.NetherQuartzTools);
  items.itemNetherQuartzPick=addFeature(ToolQuartzPickaxe.class,AEFeature.NetherQuartzTools);
  items.itemNetherQuartzShovel=addFeature(ToolQuartzSpade.class,AEFeature.NetherQuartzTools);
  items.itemNetherQuartzSword=addFeature(ToolQuartzSword.class,AEFeature.NetherQuartzTools);
  items.itemMassCannon=addFeature(ToolMassCannon.class);
  items.itemMemoryCard=addFeature(ToolMemoryCard.class);
  items.itemChargedStaff=addFeature(ToolChargedStaff.class);
  items.itemEntropyManipulator=addFeature(ToolEntropyManipulator.class);
  items.itemWirelessTerminal=addFeature(ToolWirelessTerminal.class);
  items.itemNetworkTool=addFeature(ToolNetworkTool.class);
  items.itemPortableCell=addFeature(ToolPortableCell.class);
  items.itemBiometricCard=addFeature(ToolBiometricCard.class);
  items.itemFacade=addFeature(ItemFacade.class);
  addFeature(ToolDebugCard.class);
  addFeature(ToolReplicatorCard.class);
  addFeature(BlockItemGen.class);
  addFeature(BlockChunkloader.class);
}