Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.6.4] NPE which i can't solve myself [Solved]


larsgerrits
 Share

Recommended Posts

Hello, i have made some stuff in a minecraft mod and i changed some stuff around. Now i get a NPE which i can't solve myself.

 

Error:

feb 16, 2014 12:09:04 PM net.minecraft.launchwrapper.LogWrapper log
INFO: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
feb 16, 2014 12:09:04 PM net.minecraft.launchwrapper.LogWrapper log
INFO: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
feb 16, 2014 12:09:04 PM net.minecraft.launchwrapper.LogWrapper log
INFO: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
2014-02-16 12:09:04 [iNFO] [ForgeModLoader] Forge Mod Loader version 6.4.49.965 for Minecraft 1.6.4 loading
2014-02-16 12:09:04 [iNFO] [ForgeModLoader] Java is Java HotSpot(TM) Client VM, version 1.7.0_45, running on Windows 8:x86:6.2, installed at C:\Program Files (x86)\Java\jre7
2014-02-16 12:09:04 [iNFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
2014-02-16 12:09:04 [WARNING] [ForgeModLoader] The coremod codechicken.core.launch.DepLoader does not have a MCVersion annotation, it may cause issues with this version of Minecraft
2014-02-16 12:09:05 [WARNING] [ForgeModLoader] The coremod codechicken.core.launch.CodeChickenCorePlugin does not have a MCVersion annotation, it may cause issues with this version of Minecraft
2014-02-16 12:09:05 [WARNING] [ForgeModLoader] The coremod codechicken.nei.asm.NEICorePlugin does not have a MCVersion annotation, it may cause issues with this version of Minecraft
2014-02-16 12:09:05 [iNFO] [ForgeModLoader] Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
2014-02-16 12:09:05 [iNFO] [ForgeModLoader] Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
2014-02-16 12:09:05 [iNFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
2014-02-16 12:09:05 [iNFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
2014-02-16 12:09:05 [iNFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
2014-02-16 12:09:05 [iNFO] [sTDOUT] Loaded 40 rules from AccessTransformer config file fml_at.cfg
2014-02-16 12:09:05 [sEVERE] [ForgeModLoader] The binary patch set is missing. Either you are in a development environment, or things are not going to work!
2014-02-16 12:09:07 [iNFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
2014-02-16 12:09:07 [iNFO] [sTDOUT] Loaded 110 rules from AccessTransformer config file forge_at.cfg
2014-02-16 12:09:07 [iNFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
2014-02-16 12:09:07 [iNFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
2014-02-16 12:09:07 [iNFO] [sTDOUT] Loaded 40 rules from AccessTransformer config file fml_at.cfg
2014-02-16 12:09:07 [iNFO] [sTDOUT] Adding AccessTransformer: nei_at.cfg
2014-02-16 12:09:07 [iNFO] [sTDOUT] Adding Accesstransformer map: temp.dat
2014-02-16 12:09:07 [iNFO] [sTDOUT] Loaded 51 rules from AccessTransformer config file temp.dat
2014-02-16 12:09:07 [iNFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
2014-02-16 12:09:07 [iNFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
2014-02-16 12:09:08 [iNFO] [ForgeModLoader] Launching wrapped minecraft {net.minecraft.client.main.Main}
2014-02-16 12:09:09 [iNFO] [sTDOUT] Inserted super call into net.minecraft.client.gui.inventory.GuiInventory.updateScreen
2014-02-16 12:09:10 [iNFO] [sTDOUT] awy was overriden from NotEnoughItems 1.6.1.8 (1).jar
2014-02-16 12:09:11 [iNFO] [Minecraft-Client] Setting user: Larsg310
2014-02-16 12:09:12 [iNFO] [sTDOUT] Generated BlockMobSpawner helper method.
2014-02-16 12:09:15 [iNFO] [Minecraft-Client] LWJGL Version: 2.9.0
2014-02-16 12:09:17 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default
2014-02-16 12:09:19 [iNFO] [MinecraftForge] Attempting early MinecraftForge initialization
2014-02-16 12:09:19 [iNFO] [sTDOUT] MinecraftForge v9.11.1.965 Initialized
2014-02-16 12:09:19 [iNFO] [ForgeModLoader] MinecraftForge v9.11.1.965 Initialized
2014-02-16 12:09:19 [iNFO] [sTDOUT] Replaced 111 ore recipies
2014-02-16 12:09:20 [iNFO] [MinecraftForge] Completed early MinecraftForge initialization
2014-02-16 12:09:20 [iNFO] [ForgeModLoader] Reading custom logging properties from C:\Users\Lars\Desktop\Modding-Development\forge\mcp\jars\config\logging.properties
2014-02-16 12:09:20 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL
2014-02-16 12:09:20 [iNFO] [ForgeModLoader] Searching C:\Users\Lars\Desktop\Modding-Development\forge\mcp\jars\mods for mods
2014-02-16 12:09:20 [iNFO] [ForgeModLoader] Also searching C:\Users\Lars\Desktop\Modding-Development\forge\mcp\jars\mods\1.6.4 for mods
2014-02-16 12:09:31 [WARNING] [ForgeMicroblock] Mod ForgeMicroblock is missing the required element 'version' and a version.properties file could not be found. Falling back to metadata version 1.0.0.219
2014-02-16 12:09:31 [WARNING] [ForgeMultipart] Mod ForgeMultipart is missing the required element 'version' and a version.properties file could not be found. Falling back to metadata version 1.0.0.219
2014-02-16 12:09:31 [WARNING] [McMultipart] Mod McMultipart is missing the required element 'version' and a version.properties file could not be found. Falling back to metadata version 1.0.0.219
2014-02-16 12:09:31 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 16 mods to load
2014-02-16 12:09:31 [iNFO] [mcp] Activating mod mcp
2014-02-16 12:09:31 [iNFO] [FML] Activating mod FML
2014-02-16 12:09:31 [iNFO] [Forge] Activating mod Forge
2014-02-16 12:09:31 [iNFO] [CodeChickenCore] Activating mod CodeChickenCore
2014-02-16 12:09:31 [iNFO] [NotEnoughItems] Activating mod NotEnoughItems
2014-02-16 12:09:31 [iNFO] [chemistrycraft] Activating mod chemistrycraft
2014-02-16 12:09:31 [iNFO] [CoFHCore] Activating mod CoFHCore
2014-02-16 12:09:31 [iNFO] [CoFHLoot] Activating mod CoFHLoot
2014-02-16 12:09:31 [iNFO] [CoFHMasquerade] Activating mod CoFHMasquerade
2014-02-16 12:09:31 [iNFO] [CoFHSocial] Activating mod CoFHSocial
2014-02-16 12:09:31 [iNFO] [CoFHWorld] Activating mod CoFHWorld
2014-02-16 12:09:31 [iNFO] [Thaumcraft] Activating mod Thaumcraft
2014-02-16 12:09:31 [iNFO] [ThermalExpansion] Activating mod ThermalExpansion
2014-02-16 12:09:31 [iNFO] [ForgeMicroblock] Activating mod ForgeMicroblock
2014-02-16 12:09:31 [iNFO] [ForgeMultipart] Activating mod ForgeMultipart
2014-02-16 12:09:31 [iNFO] [McMultipart] Activating mod McMultipart
2014-02-16 12:09:31 [WARNING] [Forge Mod Loader] Mod Forge Mod Loader is missing a pack.mcmeta file, things may not work well
2014-02-16 12:09:31 [WARNING] [Minecraft Forge] Mod Minecraft Forge is missing a pack.mcmeta file, things may not work well
2014-02-16 12:09:31 [WARNING] [Not Enough Items] Mod Not Enough Items is missing a pack.mcmeta file, things may not work well
2014-02-16 12:09:31 [WARNING] [ChemistryCraft] Mod ChemistryCraft is missing a pack.mcmeta file, things may not work well
2014-02-16 12:09:31 [WARNING] [CoFH Core] Mod CoFH Core is missing a pack.mcmeta file, things may not work well
2014-02-16 12:09:31 [WARNING] [CoFH Loot] Mod CoFH Loot is missing a pack.mcmeta file, things may not work well
2014-02-16 12:09:31 [WARNING] [CoFH Masquerade] Mod CoFH Masquerade is missing a pack.mcmeta file, things may not work well
2014-02-16 12:09:31 [WARNING] [CoFH Social] Mod CoFH Social is missing a pack.mcmeta file, things may not work well
2014-02-16 12:09:31 [WARNING] [CoFH World] Mod CoFH World is missing a pack.mcmeta file, things may not work well
2014-02-16 12:09:31 [WARNING] [Thermal Expansion] Mod Thermal Expansion is missing a pack.mcmeta file, things may not work well
2014-02-16 12:09:31 [WARNING] [Forge Microblocks] Mod Forge Microblocks is missing a pack.mcmeta file, things may not work well
2014-02-16 12:09:31 [WARNING] [Forge Multipart] Mod Forge Multipart is missing a pack.mcmeta file, things may not work well
2014-02-16 12:09:31 [WARNING] [Minecraft Multipart Plugin] Mod Minecraft Multipart Plugin is missing a pack.mcmeta file, things may not work well
2014-02-16 12:09:31 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Not Enough Items, FMLFileResourcePack:ChemistryCraft, FMLFileResourcePack:CoFH Core, FMLFileResourcePack:CoFH Loot, FMLFileResourcePack:CoFH Masquerade, FMLFileResourcePack:CoFH Social, FMLFileResourcePack:CoFH World, FMLFileResourcePack:Thaumcraft, FMLFileResourcePack:Thermal Expansion, FMLFileResourcePack:Forge Microblocks, FMLFileResourcePack:Forge Multipart, FMLFileResourcePack:Minecraft Multipart Plugin
2014-02-16 12:09:32 [iNFO] [ForgeModLoader] FML has found a non-mod file CodeChickenLib-dev-1.6.4-1.0.0.45.jar in your mods directory. It will now be injected into your classpath. This could severe stability issues, it should be removed if possible.
2014-02-16 12:09:32 [iNFO] [ForgeModLoader] Registering Forge Packet Handler
2014-02-16 12:09:32 [iNFO] [ForgeModLoader] Succeeded registering Forge Packet Handler
2014-02-16 12:09:34 [iNFO] [ForgeModLoader] Configured a dormant chunk cache size of 0
2014-02-16 12:15:32 [WARNING] [ForgeModLoader] Version Check Failed: Server returned HTTP response code: 403 for URL: http://teamcofh.com/cofhcore/version/version.txt
2014-02-16 12:15:32 [iNFO] [sTDOUT] Inserted super call into cofh.gui.client.GuiFriendsList.updateScreen
2014-02-16 12:15:38 [WARNING] [ThermalExpansion] Version Check Failed: Server returned HTTP response code: 403 for URL: http://teamcofh.com/thermalexpansion/version/version.txt
2014-02-16 12:15:38 [iNFO] [ThermalExpansion] Loading Plugins...
2014-02-16 12:15:38 [iNFO] [ThermalExpansion] Finished Loading Plugins.
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.stone
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.dirt
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.stonebrick
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.wood
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.wood_1
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.wood_2
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.wood_3
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.log
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.log_1
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.log_2
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.log_3
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.leaves
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.leaves_1
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.leaves_2
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.leaves_3
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.sponge
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.glass
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.blockLapis
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.sandStone
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.sandStone_1
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.sandStone_2
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.cloth
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.cloth_1
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.cloth_2
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.cloth_3
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.cloth_4
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.cloth_5
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.cloth_6
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.cloth_7
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.cloth_8
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.cloth_9
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.cloth_10
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.cloth_11
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.cloth_12
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.cloth_13
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.cloth_14
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.cloth_15
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.blockGold
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.blockIron
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.brick
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.bookshelf
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.stoneMoss
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.obsidian
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.blockDiamond
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.ice
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.snow
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.clay
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.hellrock
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.hellsand
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.lightgem
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.stonebricksmooth
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.stonebricksmooth_1
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.stonebricksmooth_2
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.stonebricksmooth_3
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.netherBrick
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.whiteStone
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.blockEmerald
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.blockRedstone
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.quartzBlock
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.clayHardenedStained
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.clayHardenedStained_1
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.clayHardenedStained_2
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.clayHardenedStained_3
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.clayHardenedStained_4
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.clayHardenedStained_5
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.clayHardenedStained_6
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.clayHardenedStained_7
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.clayHardenedStained_8
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.clayHardenedStained_9
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.clayHardenedStained_10
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.clayHardenedStained_11
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.clayHardenedStained_12
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.clayHardenedStained_13
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.clayHardenedStained_14
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.clayHardenedStained_15
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.clayHardened
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.blockCoal
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.grass
2014-02-16 12:15:39 [iNFO] [sTDOUT] Registered micro material: tile.mycel
2014-02-16 12:15:39 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue
2014-02-16 12:15:39 [sEVERE] [ForgeModLoader] 
mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized
FML{6.4.49.965} [Forge Mod Loader] (bin) Unloaded->Constructed->Pre-initialized
Forge{9.11.1.965} [Minecraft Forge] (bin) Unloaded->Constructed->Pre-initialized
CodeChickenCore{0.9.0.7} [CodeChicken Core] (minecraft.jar) Unloaded->Constructed->Pre-initialized
NotEnoughItems{1.6.1.8} [Not Enough Items] (NotEnoughItems 1.6.1.8 (1).jar) Unloaded->Constructed->Pre-initialized
chemistrycraft{chemistrycraft} [ChemistryCraft] (bin) Unloaded->Constructed->Errored
CoFHCore{2.0.0.2} [CoFH Core] (CoFH-Core-2.0.0.2.jar) Unloaded->Constructed->Pre-initialized
CoFHLoot{2.0.0.2} [CoFH Loot] (CoFH-Core-2.0.0.2.jar) Unloaded->Constructed->Pre-initialized
CoFHMasquerade{2.0.0.2} [CoFH Masquerade] (CoFH-Core-2.0.0.2.jar) Unloaded->Constructed->Pre-initialized
CoFHSocial{2.0.0.2} [CoFH Social] (CoFH-Core-2.0.0.2.jar) Unloaded->Constructed->Pre-initialized
CoFHWorld{2.0.0.2} [CoFH World] (CoFH-Core-2.0.0.2.jar) Unloaded->Constructed->Pre-initialized
Thaumcraft{4.0.5b} [Thaumcraft] (Thaumcraft4.0.5b.zip) Unloaded->Constructed->Pre-initialized
ForgeMultipart{1.0.0.219} [Forge Multipart] (ForgeMultipart-dev-1.6.4-1.0.0.219.jar) Unloaded->Constructed->Pre-initialized
ThermalExpansion{3.0.0.0} [Thermal Expansion] (ThermalExpansion-3.0.0.0.jar) Unloaded->Constructed->Pre-initialized
McMultipart{1.0.0.219} [Minecraft Multipart Plugin] (ForgeMultipart-dev-1.6.4-1.0.0.219.jar) Unloaded->Constructed->Pre-initialized
ForgeMicroblock{1.0.0.219} [Forge Microblocks] (ForgeMultipart-dev-1.6.4-1.0.0.219.jar) Unloaded->Constructed->Pre-initialized
2014-02-16 12:15:39 [sEVERE] [ForgeModLoader] The following problems were captured during this phase
2014-02-16 12:15:39 [sEVERE] [ForgeModLoader] Caught exception from chemistrycraft
java.lang.ExceptionInInitializerError
at larsg310.mods.chemistrycraft.ChemistryCraft.preInit(ChemistryCraft.java:33)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:545)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:201)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:112)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:522)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:183)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:473)
at net.minecraft.client.Minecraft.run(Minecraft.java:808)
at net.minecraft.client.main.Main.main(Main.java:93)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
Caused by: java.lang.NullPointerException
at larsg310.mods.chemistrycraft.atom.Atom.<init>(Atom.java:142)
at larsg310.mods.chemistrycraft.atom.Atom.<clinit>(Atom.java:11)
... 37 more
2014-02-16 12:15:39 [iNFO] [sTDOUT] ---- Minecraft Crash Report ----
2014-02-16 12:15:39 [iNFO] [sTDOUT] // Everything's going to plan. No, really, that was supposed to happen.
2014-02-16 12:15:39 [iNFO] [sTDOUT] 
2014-02-16 12:15:39 [iNFO] [sTDOUT] Time: 16-2-14 12:15
2014-02-16 12:15:39 [iNFO] [sTDOUT] Description: There was a severe problem during mod loading that has caused the game to fail
2014-02-16 12:15:39 [iNFO] [sTDOUT] 
2014-02-16 12:15:39 [iNFO] [sTDOUT] cpw.mods.fml.common.LoaderException: java.lang.ExceptionInInitializerError
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	at cpw.mods.fml.common.LoadController.transition(LoadController.java:156)
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	at cpw.mods.fml.common.Loader.loadMods(Loader.java:523)
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:183)
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	at net.minecraft.client.Minecraft.startGame(Minecraft.java:473)
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	at net.minecraft.client.Minecraft.run(Minecraft.java:808)
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	at net.minecraft.client.main.Main.main(Main.java:93)
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	at java.lang.reflect.Method.invoke(Unknown Source)
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
2014-02-16 12:15:39 [iNFO] [sTDOUT] Caused by: java.lang.ExceptionInInitializerError
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	at larsg310.mods.chemistrycraft.ChemistryCraft.preInit(ChemistryCraft.java:33)
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	at java.lang.reflect.Method.invoke(Unknown Source)
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:545)
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	at java.lang.reflect.Method.invoke(Unknown Source)
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventBus.post(EventBus.java:267)
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:201)
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181)
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	at java.lang.reflect.Method.invoke(Unknown Source)
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventBus.post(EventBus.java:267)
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:112)
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	at cpw.mods.fml.common.Loader.loadMods(Loader.java:522)
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	... 10 more
2014-02-16 12:15:39 [iNFO] [sTDOUT] Caused by: java.lang.NullPointerException
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	at larsg310.mods.chemistrycraft.atom.Atom.<init>(Atom.java:142)
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	at larsg310.mods.chemistrycraft.atom.Atom.<clinit>(Atom.java:11)
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	... 37 more
2014-02-16 12:15:39 [iNFO] [sTDOUT] 
2014-02-16 12:15:39 [iNFO] [sTDOUT] 
2014-02-16 12:15:39 [iNFO] [sTDOUT] A detailed walkthrough of the error, its code path and all known details is as follows:
2014-02-16 12:15:39 [iNFO] [sTDOUT] ---------------------------------------------------------------------------------------
2014-02-16 12:15:39 [iNFO] [sTDOUT] 
2014-02-16 12:15:39 [iNFO] [sTDOUT] -- System Details --
2014-02-16 12:15:39 [iNFO] [sTDOUT] Details:
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	Minecraft Version: 1.6.4
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	Operating System: Windows 8 (x86) version 6.2
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	Java Version: 1.7.0_45, Oracle Corporation
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	Memory: 909969984 bytes (867 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB)
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	Suspicious classes: FML and Forge are installed
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	FML: MCP v8.11 FML v6.4.49.965 Minecraft Forge 9.11.1.965 16 mods loaded, 16 mods active
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	FML{6.4.49.965} [Forge Mod Loader] (bin) Unloaded->Constructed->Pre-initialized
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	Forge{9.11.1.965} [Minecraft Forge] (bin) Unloaded->Constructed->Pre-initialized
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	CodeChickenCore{0.9.0.7} [CodeChicken Core] (minecraft.jar) Unloaded->Constructed->Pre-initialized
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	NotEnoughItems{1.6.1.8} [Not Enough Items] (NotEnoughItems 1.6.1.8 (1).jar) Unloaded->Constructed->Pre-initialized
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	chemistrycraft{chemistrycraft} [ChemistryCraft] (bin) Unloaded->Constructed->Errored
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	CoFHCore{2.0.0.2} [CoFH Core] (CoFH-Core-2.0.0.2.jar) Unloaded->Constructed->Pre-initialized
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	CoFHLoot{2.0.0.2} [CoFH Loot] (CoFH-Core-2.0.0.2.jar) Unloaded->Constructed->Pre-initialized
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	CoFHMasquerade{2.0.0.2} [CoFH Masquerade] (CoFH-Core-2.0.0.2.jar) Unloaded->Constructed->Pre-initialized
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	CoFHSocial{2.0.0.2} [CoFH Social] (CoFH-Core-2.0.0.2.jar) Unloaded->Constructed->Pre-initialized
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	CoFHWorld{2.0.0.2} [CoFH World] (CoFH-Core-2.0.0.2.jar) Unloaded->Constructed->Pre-initialized
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	Thaumcraft{4.0.5b} [Thaumcraft] (Thaumcraft4.0.5b.zip) Unloaded->Constructed->Pre-initialized
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	ForgeMultipart{1.0.0.219} [Forge Multipart] (ForgeMultipart-dev-1.6.4-1.0.0.219.jar) Unloaded->Constructed->Pre-initialized
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	ThermalExpansion{3.0.0.0} [Thermal Expansion] (ThermalExpansion-3.0.0.0.jar) Unloaded->Constructed->Pre-initialized
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	McMultipart{1.0.0.219} [Minecraft Multipart Plugin] (ForgeMultipart-dev-1.6.4-1.0.0.219.jar) Unloaded->Constructed->Pre-initialized
2014-02-16 12:15:39 [iNFO] [sTDOUT] 	ForgeMicroblock{1.0.0.219} [Forge Microblocks] (ForgeMultipart-dev-1.6.4-1.0.0.219.jar) Unloaded->Constructed->Pre-initialized
2014-02-16 12:15:39 [iNFO] [sTDOUT] #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Lars\Desktop\Modding-Development\forge\mcp\jars\.\crash-reports\crash-2014-02-16_12.15.39-client.txt

 

Atom code

package larsg310.mods.chemistrycraft.atom;

import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;

import net.minecraft.util.StatCollector;

public class Atom
{
public static final Atom ACTINIUM = new Atom(StatCollector.translateToLocal("atom.actinium"), "Ac", 1);
public static final Atom ALUMINIUM = new Atom(StatCollector.translateToLocal("atom.aluminium"), "Al", 1);
public static final Atom AMERICIUM = new Atom(StatCollector.translateToLocal("atom.americium"), "Am", 1);
public static final Atom ANTIMONY = new Atom(StatCollector.translateToLocal("atom.antimony"), "Sb", 1);
public static final Atom ARGON = new Atom(StatCollector.translateToLocal("atom.argon"), "Ar", 1);
public static final Atom ARSENIC = new Atom(StatCollector.translateToLocal("atom.arsenic"), "As", 1);
public static final Atom ASTATINE = new Atom(StatCollector.translateToLocal("atom.astatine"), "At", 1);
public static final Atom BARIUM = new Atom(StatCollector.translateToLocal("atom.barium"), "Ba", 1);
public static final Atom BERKELIUM = new Atom(StatCollector.translateToLocal("atom.berkelium"), "Bk", 1);
public static final Atom BERYLLIUM = new Atom(StatCollector.translateToLocal("atom.beryllium"), "Be", 1);
public static final Atom BISMUTH = new Atom(StatCollector.translateToLocal("atom.bismuth"), "Bi", 1);
public static final Atom BOHRIUM = new Atom(StatCollector.translateToLocal("atom.bohrium"), "Bh", 1);
public static final Atom BORON = new Atom(StatCollector.translateToLocal("atom.boron"), "B", 1);
public static final Atom BROMINE = new Atom(StatCollector.translateToLocal("atom.bromine"), "Br", 2);
public static final Atom CADMIUM = new Atom(StatCollector.translateToLocal("atom.cadmium"), "Cd", 1);
public static final Atom CAESIUM = new Atom(StatCollector.translateToLocal("atom.caesium"), "Cs", 1);
public static final Atom CALCIUM = new Atom(StatCollector.translateToLocal("atom.calcium"), "Ca", 1);
public static final Atom CALIFORNIUM = new Atom(StatCollector.translateToLocal("atom.californium"), "Cf", 1);
public static final Atom CARBON = new Atom(StatCollector.translateToLocal("atom.carbon"), "C", 1);
public static final Atom CERIUM = new Atom(StatCollector.translateToLocal("atom.cerium"), "Ce", 1);
public static final Atom CHLORINE = new Atom(StatCollector.translateToLocal("atom.chlorine"), "Cl", 2);
public static final Atom CHROMIUM = new Atom(StatCollector.translateToLocal("atom.chromium"), "Cr", 1);
public static final Atom COBALT = new Atom(StatCollector.translateToLocal("atom.cobalt"), "Co", 1);
public static final Atom COPERNICIUM = new Atom(StatCollector.translateToLocal("atom.copernicium"), "Cn", 1);
public static final Atom COPPER = new Atom(StatCollector.translateToLocal("atom.copper"), "Cu", 1);
public static final Atom CURIUM = new Atom(StatCollector.translateToLocal("atom.curium"), "Cm", 1);
public static final Atom DARMSTADTIUM = new Atom(StatCollector.translateToLocal("atom.darmstadtium"), "Ds", 1);
public static final Atom DUBNIUM = new Atom(StatCollector.translateToLocal("atom.dubnium"), "Db", 1);
public static final Atom DYSPROSIUM = new Atom(StatCollector.translateToLocal("atom.dysprosium"), "Dy", 1);
public static final Atom EINSTEINIUM = new Atom(StatCollector.translateToLocal("atom.einsteinium"), "Es", 1);
public static final Atom ERBIUM = new Atom(StatCollector.translateToLocal("atom.erbium"), "Er", 1);
public static final Atom EUROPIUM = new Atom(StatCollector.translateToLocal("atom.europium"), "Eu", 1);
public static final Atom FERMIUM = new Atom(StatCollector.translateToLocal("atom.fermium"), "Fm", 1);
public static final Atom FLEROVIUM = new Atom(StatCollector.translateToLocal("atom.flerovium"), "Fl", 1);
public static final Atom FLUORINE = new Atom(StatCollector.translateToLocal("atom.fluorine"), "F", 2);
public static final Atom FRANCIUM = new Atom(StatCollector.translateToLocal("atom.francium"), "Fr", 1);
public static final Atom GADOLINIUM = new Atom(StatCollector.translateToLocal("atom.gadolinium"), "Gd", 1);
public static final Atom GALLIUM = new Atom(StatCollector.translateToLocal("atom.gallium"), "Ga", 1);
public static final Atom GERMANIUM = new Atom(StatCollector.translateToLocal("atom.germanium"), "Ge", 1);
public static final Atom GOLD = new Atom(StatCollector.translateToLocal("atom.gold"), "Au", 1);
public static final Atom HAFNIUM = new Atom(StatCollector.translateToLocal("atom.hafnium"), "Hf", 1);
public static final Atom HASSIUM = new Atom(StatCollector.translateToLocal("atom.hassium"), "Hs", 1);
public static final Atom HELIUM = new Atom(StatCollector.translateToLocal("atom.helium"), "He", 1);
public static final Atom HOLMIUM = new Atom(StatCollector.translateToLocal("atom.holmium"), "Ho", 1);
public static final Atom HYDROGEN = new Atom(StatCollector.translateToLocal("atom.hydrogen"), "H", 2);
public static final Atom INDIUM = new Atom(StatCollector.translateToLocal("atom.indium"), "In", 1);
public static final Atom IODINE = new Atom(StatCollector.translateToLocal("atom.iodine"), "I", 2);
public static final Atom IRIDIUM = new Atom(StatCollector.translateToLocal("atom.iridium"), "Ir", 1);
public static final Atom IRON = new Atom(StatCollector.translateToLocal("atom.iron"), "Fe", 1);
public static final Atom KRYPTON = new Atom(StatCollector.translateToLocal("atom.krypton"), "Kr", 1);
public static final Atom LANTHANUM = new Atom(StatCollector.translateToLocal("atom.lanthanum"), "La", 1);
public static final Atom LAWRENCIUM = new Atom(StatCollector.translateToLocal("atom.lawrencium"), "Lr", 1);
public static final Atom LEAD = new Atom(StatCollector.translateToLocal("atom.lead"), "Pb", 1);
public static final Atom LITHIUM = new Atom(StatCollector.translateToLocal("atom.lithium"), "Li", 1);
public static final Atom LIVERMORIUM = new Atom(StatCollector.translateToLocal("atom.livermorium"), "Lv", 1);
public static final Atom LUTETIUM = new Atom(StatCollector.translateToLocal("atom.lutetium"), "Lu", 1);
public static final Atom MAGNESIUM = new Atom(StatCollector.translateToLocal("atom.magnesium"), "Mg", 1);
public static final Atom MANGANESE = new Atom(StatCollector.translateToLocal("atom.manganese"), "Mn", 1);
public static final Atom MEITNERIUM = new Atom(StatCollector.translateToLocal("atom.meitnerium"), "Mt", 1);
public static final Atom MENDELEVIUM = new Atom(StatCollector.translateToLocal("atom.mendelevium"), "Md", 1);
public static final Atom MERCURY = new Atom(StatCollector.translateToLocal("atom.mercury"), "Hg", 1);
public static final Atom MOLYBDENUM = new Atom(StatCollector.translateToLocal("atom.molybdenum"), "Mo", 1);
public static final Atom NEODYNIUM = new Atom(StatCollector.translateToLocal("atom.neodynium"), "Nd", 1);
public static final Atom NEON = new Atom(StatCollector.translateToLocal("atom.neon"), "Ne", 1);
public static final Atom NEPTUNIUM = new Atom(StatCollector.translateToLocal("atom.neptunium"), "Np", 1);
public static final Atom NICKEL = new Atom(StatCollector.translateToLocal("atom.nickel"), "Ni", 1);
public static final Atom NIOBIUM = new Atom(StatCollector.translateToLocal("atom.niobium"), "Nb", 1);
public static final Atom NITROGEN = new Atom(StatCollector.translateToLocal("atom.nitrogen"), "N", 2);
public static final Atom NOBELIUM = new Atom(StatCollector.translateToLocal("atom.nobelium"), "No", 1);
public static final Atom OSMIUM = new Atom(StatCollector.translateToLocal("atom.osmium"), "Os", 1);
public static final Atom OXYGEN = new Atom(StatCollector.translateToLocal("atom.oxygen"), "O", 2);
public static final Atom PALLADIUM = new Atom(StatCollector.translateToLocal("atom.palladium"), "Pd", 1);
public static final Atom PHOSPHORUS = new Atom(StatCollector.translateToLocal("atom.phosphorus"), "P", 1);
public static final Atom PLATINUM = new Atom(StatCollector.translateToLocal("atom.platinum"), "Pt", 1);
public static final Atom PLUTONIUM = new Atom(StatCollector.translateToLocal("atom.plutonium"), "Pu", 1);
public static final Atom POLONIUM = new Atom(StatCollector.translateToLocal("atom.polonium"), "Po", 1);
public static final Atom POTASSIUM = new Atom(StatCollector.translateToLocal("atom.potassium"), "K", 1);
public static final Atom PRASEODYMIUM = new Atom(StatCollector.translateToLocal("atom.praseodymium"), "Pr", 1);
public static final Atom PROMETHIUM = new Atom(StatCollector.translateToLocal("atom.promethium"), "Pm", 1);
public static final Atom PROTACTINIUM = new Atom(StatCollector.translateToLocal("atom.protactinium"), "Pa", 1);
public static final Atom RADIUM = new Atom(StatCollector.translateToLocal("atom.radium"), "Ra", 1);
public static final Atom RADON = new Atom(StatCollector.translateToLocal("atom.radon"), "Rn", 1);
public static final Atom RHENIUM = new Atom(StatCollector.translateToLocal("atom.rhenium"), "Re", 1);
public static final Atom RHODIUM = new Atom(StatCollector.translateToLocal("atom.rhodium"), "Rh", 1);
public static final Atom ROENTGENIUM = new Atom(StatCollector.translateToLocal("atom.roentgenium"), "Rg", 1);
public static final Atom RUBIDIUM = new Atom(StatCollector.translateToLocal("atom.rubidium"), "Rb", 1);
public static final Atom RUTHENIUM = new Atom(StatCollector.translateToLocal("atom.ruthenium"), "Ru", 1);
public static final Atom RUTHERFORDIUM = new Atom(StatCollector.translateToLocal("atom.rutherfordium"), "Rf", 1);
public static final Atom SAMARIUM = new Atom(StatCollector.translateToLocal("atom.samarium"), "Sm", 1);
public static final Atom SCANDIUM = new Atom(StatCollector.translateToLocal("atom.scandium"), "Sc", 1);
public static final Atom SEABORGIUM = new Atom(StatCollector.translateToLocal("atom.seaborgium"), "Sg", 1);
public static final Atom SELENIUM = new Atom(StatCollector.translateToLocal("atom.selenium"), "Se", 1);
public static final Atom SILICON = new Atom(StatCollector.translateToLocal("atom.silicon"), "Si", 1);
public static final Atom SILVER = new Atom(StatCollector.translateToLocal("atom.silver"), "Ag", 1);
public static final Atom SODIUM = new Atom(StatCollector.translateToLocal("atom.sodium"), "Na", 1);
public static final Atom STRONTIUM = new Atom(StatCollector.translateToLocal("atom.strontium"), "Sr", 1);
public static final Atom SULFUR = new Atom(StatCollector.translateToLocal("atom.sulfur"), "S", 1);
public static final Atom TANTALUM = new Atom(StatCollector.translateToLocal("atom.tantalum"), "Ta", 1);
public static final Atom TECHNETIUM = new Atom(StatCollector.translateToLocal("atom.technetium"), "Tc", 1);
public static final Atom TELLURIUM = new Atom(StatCollector.translateToLocal("atom.tellurium"), "Te", 1);
public static final Atom TERBIUM = new Atom(StatCollector.translateToLocal("atom.terbium"), "Tb", 1);
public static final Atom THALLIUM = new Atom(StatCollector.translateToLocal("atom.thallium"), "Tl", 1);
public static final Atom THORIUM = new Atom(StatCollector.translateToLocal("atom.thorium"), "Th", 1);
public static final Atom THULIUM = new Atom(StatCollector.translateToLocal("atom.thulium"), "Tm", 1);
public static final Atom TIN = new Atom(StatCollector.translateToLocal("atom.tin"), "Sn", 1);
public static final Atom TITANIUM = new Atom(StatCollector.translateToLocal("atom.titanium"), "Ti", 1);
public static final Atom TUNGSTEN = new Atom(StatCollector.translateToLocal("atom.tungsten"), "W", 1);
public static final Atom UNUNOCTIUM = new Atom(StatCollector.translateToLocal("atom.ununoctium"), "Uuo", 1);
public static final Atom UNUNPENTIUM = new Atom(StatCollector.translateToLocal("atom.ununpentium"), "Uup", 1);
public static final Atom UNUNSEPTIUM = new Atom(StatCollector.translateToLocal("atom.ununseptium"), "Uus", 1);
public static final Atom UNUNTRIUM = new Atom(StatCollector.translateToLocal("atom.ununtrium"), "Uut", 1);
public static final Atom URANIUM = new Atom(StatCollector.translateToLocal("atom.uranium"), "U", 1);
public static final Atom VANADIUM = new Atom(StatCollector.translateToLocal("atom.vanadium"), "V", 1);
public static final Atom XENON = new Atom(StatCollector.translateToLocal("atom.xenon"), "Xe", 1);
public static final Atom YTTERBIUM = new Atom(StatCollector.translateToLocal("atom.ytterbium"), "Yb", 1);
public static final Atom YTTRIUM = new Atom(StatCollector.translateToLocal("atom.yttrium"), "Y", 1);
public static final Atom ZINC = new Atom(StatCollector.translateToLocal("atom.zinc"), "Zn", 1);
public static final Atom ZIRCONIUM = new Atom(StatCollector.translateToLocal("atom.zinc"), "Zr", 1);

private Map<String, String> atomSymbol = new HashMap<String, String>();
private Map<String, Integer> atomIndex = new HashMap<String, Integer>();
private static LinkedHashMap<String, Atom> atomList = new LinkedHashMap<String, Atom>();

private String name = "";
private String symbol = "";
private int index = 0;

private Atom(String name, String symbol, int index)
{
	atomSymbol.put(name, symbol);
	atomIndex.put(name, index);
	atomList.put(name, this);
	this.name = name;
	this.symbol = symbol;
	this.index = index;
}
public String getName()
{
	return name;
}
public String getSymbol()
{
	return symbol;
}
public int getIndex()
{
	return index;
}
public static LinkedHashMap<String, Atom> getAtomList()
{
	return atomList;
}
public static void init()
{

}
}

 

In the error it saysit's caused by line 142 of the Atom class, which is this line:

atomList.put(name, this);

 

And i don't know why that is.

 

If you need anymore code, i can provide that.

 

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Link to comment
Share on other sites

Well, you haven't finished constructing the Atom yet when you try to put it in the list:

private Atom(String name, String symbol, int index)
{
// here you are already trying to access 'this', which has not yet been initialized
atomSymbol.put(name, symbol);
atomIndex.put(name, index);
atomList.put(name, this);
// here is where your fields get initialized:
this.name = name;
this.symbol = symbol;
this.index = index;
}

Swap the order: initialize first, put in the list second.

Link to comment
Share on other sites

But i already initialized them above, so why are they null?

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Link to comment
Share on other sites

No. When you are initializing an Object, what happens? The constructor is called. Look at your constructor. You are trying to access the Object 'this' before it is finished initializing its fields. Just try my suggestion.

 

// just switch them around and see if it doesn't work
private Atom(String name, String symbol, int index) {
// here is where your fields get initialized:
this.name = name;
this.symbol = symbol;
this.index = index;

// here you are already trying to access 'this', which has not yet been initialized
atomSymbol.put(name, symbol);
atomIndex.put(name, index);
atomList.put(name, this);
}

Link to comment
Share on other sites

I now got this new error (i think it's the same):

feb 16, 2014 2:30:16 PM net.minecraft.launchwrapper.LogWrapper log
INFO: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
feb 16, 2014 2:30:16 PM net.minecraft.launchwrapper.LogWrapper log
INFO: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
feb 16, 2014 2:30:16 PM net.minecraft.launchwrapper.LogWrapper log
INFO: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
2014-02-16 14:30:16 [iNFO] [ForgeModLoader] Forge Mod Loader version 6.4.49.965 for Minecraft 1.6.4 loading
2014-02-16 14:30:16 [iNFO] [ForgeModLoader] Java is Java HotSpot(TM) Client VM, version 1.7.0_45, running on Windows 8:x86:6.2, installed at C:\Program Files (x86)\Java\jre7
2014-02-16 14:30:16 [iNFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
2014-02-16 14:30:17 [WARNING] [ForgeModLoader] The coremod codechicken.core.launch.DepLoader does not have a MCVersion annotation, it may cause issues with this version of Minecraft
2014-02-16 14:30:17 [WARNING] [ForgeModLoader] The coremod codechicken.core.launch.CodeChickenCorePlugin does not have a MCVersion annotation, it may cause issues with this version of Minecraft
2014-02-16 14:30:17 [WARNING] [ForgeModLoader] The coremod codechicken.nei.asm.NEICorePlugin does not have a MCVersion annotation, it may cause issues with this version of Minecraft
2014-02-16 14:30:17 [iNFO] [ForgeModLoader] Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
2014-02-16 14:30:17 [iNFO] [ForgeModLoader] Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
2014-02-16 14:30:17 [iNFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
2014-02-16 14:30:17 [iNFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
2014-02-16 14:30:17 [iNFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
2014-02-16 14:30:18 [iNFO] [sTDOUT] Loaded 40 rules from AccessTransformer config file fml_at.cfg
2014-02-16 14:30:18 [sEVERE] [ForgeModLoader] The binary patch set is missing. Either you are in a development environment, or things are not going to work!
2014-02-16 14:30:19 [iNFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
2014-02-16 14:30:19 [iNFO] [sTDOUT] Loaded 110 rules from AccessTransformer config file forge_at.cfg
2014-02-16 14:30:19 [iNFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
2014-02-16 14:30:19 [iNFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
2014-02-16 14:30:19 [iNFO] [sTDOUT] Loaded 40 rules from AccessTransformer config file fml_at.cfg
2014-02-16 14:30:19 [iNFO] [sTDOUT] Adding AccessTransformer: nei_at.cfg
2014-02-16 14:30:19 [iNFO] [sTDOUT] Adding Accesstransformer map: temp.dat
2014-02-16 14:30:19 [iNFO] [sTDOUT] Loaded 51 rules from AccessTransformer config file temp.dat
2014-02-16 14:30:19 [iNFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
2014-02-16 14:30:19 [iNFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
2014-02-16 14:30:19 [iNFO] [ForgeModLoader] Launching wrapped minecraft {net.minecraft.client.main.Main}
2014-02-16 14:30:20 [iNFO] [sTDOUT] Inserted super call into net.minecraft.client.gui.inventory.GuiInventory.updateScreen
2014-02-16 14:30:20 [iNFO] [sTDOUT] awy was overriden from NotEnoughItems 1.6.1.8 (1).jar
2014-02-16 14:30:21 [iNFO] [Minecraft-Client] Setting user: Larsg310
2014-02-16 14:30:22 [iNFO] [sTDOUT] Generated BlockMobSpawner helper method.
2014-02-16 14:30:24 [iNFO] [Minecraft-Client] LWJGL Version: 2.9.0
2014-02-16 14:30:25 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default
2014-02-16 14:30:26 [iNFO] [MinecraftForge] Attempting early MinecraftForge initialization
2014-02-16 14:30:26 [iNFO] [sTDOUT] MinecraftForge v9.11.1.965 Initialized
2014-02-16 14:30:26 [iNFO] [ForgeModLoader] MinecraftForge v9.11.1.965 Initialized
2014-02-16 14:30:26 [iNFO] [sTDOUT] Replaced 111 ore recipies
2014-02-16 14:30:26 [iNFO] [MinecraftForge] Completed early MinecraftForge initialization
2014-02-16 14:30:26 [iNFO] [ForgeModLoader] Reading custom logging properties from C:\Users\Lars\Desktop\Modding-Development\forge\mcp\jars\config\logging.properties
2014-02-16 14:30:26 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL
2014-02-16 14:30:26 [iNFO] [ForgeModLoader] Searching C:\Users\Lars\Desktop\Modding-Development\forge\mcp\jars\mods for mods
2014-02-16 14:30:26 [iNFO] [ForgeModLoader] Also searching C:\Users\Lars\Desktop\Modding-Development\forge\mcp\jars\mods\1.6.4 for mods
2014-02-16 14:30:32 [WARNING] [ForgeMicroblock] Mod ForgeMicroblock is missing the required element 'version' and a version.properties file could not be found. Falling back to metadata version 1.0.0.219
2014-02-16 14:30:32 [WARNING] [ForgeMultipart] Mod ForgeMultipart is missing the required element 'version' and a version.properties file could not be found. Falling back to metadata version 1.0.0.219
2014-02-16 14:30:32 [WARNING] [McMultipart] Mod McMultipart is missing the required element 'version' and a version.properties file could not be found. Falling back to metadata version 1.0.0.219
2014-02-16 14:30:32 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 16 mods to load
2014-02-16 14:30:32 [iNFO] [mcp] Activating mod mcp
2014-02-16 14:30:32 [iNFO] [FML] Activating mod FML
2014-02-16 14:30:32 [iNFO] [Forge] Activating mod Forge
2014-02-16 14:30:32 [iNFO] [CodeChickenCore] Activating mod CodeChickenCore
2014-02-16 14:30:32 [iNFO] [NotEnoughItems] Activating mod NotEnoughItems
2014-02-16 14:30:32 [iNFO] [chemistrycraft] Activating mod chemistrycraft
2014-02-16 14:30:32 [iNFO] [CoFHCore] Activating mod CoFHCore
2014-02-16 14:30:32 [iNFO] [CoFHLoot] Activating mod CoFHLoot
2014-02-16 14:30:32 [iNFO] [CoFHMasquerade] Activating mod CoFHMasquerade
2014-02-16 14:30:32 [iNFO] [CoFHSocial] Activating mod CoFHSocial
2014-02-16 14:30:32 [iNFO] [CoFHWorld] Activating mod CoFHWorld
2014-02-16 14:30:32 [iNFO] [Thaumcraft] Activating mod Thaumcraft
2014-02-16 14:30:32 [iNFO] [ThermalExpansion] Activating mod ThermalExpansion
2014-02-16 14:30:32 [iNFO] [ForgeMicroblock] Activating mod ForgeMicroblock
2014-02-16 14:30:32 [iNFO] [ForgeMultipart] Activating mod ForgeMultipart
2014-02-16 14:30:32 [iNFO] [McMultipart] Activating mod McMultipart
2014-02-16 14:30:32 [WARNING] [Forge Mod Loader] Mod Forge Mod Loader is missing a pack.mcmeta file, things may not work well
2014-02-16 14:30:32 [WARNING] [Minecraft Forge] Mod Minecraft Forge is missing a pack.mcmeta file, things may not work well
2014-02-16 14:30:32 [WARNING] [Not Enough Items] Mod Not Enough Items is missing a pack.mcmeta file, things may not work well
2014-02-16 14:30:32 [WARNING] [ChemistryCraft] Mod ChemistryCraft is missing a pack.mcmeta file, things may not work well
2014-02-16 14:30:32 [WARNING] [CoFH Core] Mod CoFH Core is missing a pack.mcmeta file, things may not work well
2014-02-16 14:30:32 [WARNING] [CoFH Loot] Mod CoFH Loot is missing a pack.mcmeta file, things may not work well
2014-02-16 14:30:32 [WARNING] [CoFH Masquerade] Mod CoFH Masquerade is missing a pack.mcmeta file, things may not work well
2014-02-16 14:30:32 [WARNING] [CoFH Social] Mod CoFH Social is missing a pack.mcmeta file, things may not work well
2014-02-16 14:30:32 [WARNING] [CoFH World] Mod CoFH World is missing a pack.mcmeta file, things may not work well
2014-02-16 14:30:32 [WARNING] [Thermal Expansion] Mod Thermal Expansion is missing a pack.mcmeta file, things may not work well
2014-02-16 14:30:32 [WARNING] [Forge Microblocks] Mod Forge Microblocks is missing a pack.mcmeta file, things may not work well
2014-02-16 14:30:32 [WARNING] [Forge Multipart] Mod Forge Multipart is missing a pack.mcmeta file, things may not work well
2014-02-16 14:30:32 [WARNING] [Minecraft Multipart Plugin] Mod Minecraft Multipart Plugin is missing a pack.mcmeta file, things may not work well
2014-02-16 14:30:32 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Not Enough Items, FMLFileResourcePack:ChemistryCraft, FMLFileResourcePack:CoFH Core, FMLFileResourcePack:CoFH Loot, FMLFileResourcePack:CoFH Masquerade, FMLFileResourcePack:CoFH Social, FMLFileResourcePack:CoFH World, FMLFileResourcePack:Thaumcraft, FMLFileResourcePack:Thermal Expansion, FMLFileResourcePack:Forge Microblocks, FMLFileResourcePack:Forge Multipart, FMLFileResourcePack:Minecraft Multipart Plugin
2014-02-16 14:30:33 [iNFO] [ForgeModLoader] FML has found a non-mod file CodeChickenLib-dev-1.6.4-1.0.0.45.jar in your mods directory. It will now be injected into your classpath. This could severe stability issues, it should be removed if possible.
2014-02-16 14:30:33 [iNFO] [ForgeModLoader] Registering Forge Packet Handler
2014-02-16 14:30:33 [iNFO] [ForgeModLoader] Succeeded registering Forge Packet Handler
2014-02-16 14:30:34 [iNFO] [ForgeModLoader] Configured a dormant chunk cache size of 0
2014-02-16 14:30:34 [WARNING] [ForgeModLoader] Version Check Failed: Server returned HTTP response code: 403 for URL: http://teamcofh.com/cofhcore/version/version.txt
2014-02-16 14:30:34 [iNFO] [sTDOUT] Inserted super call into cofh.gui.client.GuiFriendsList.updateScreen
2014-02-16 14:30:38 [WARNING] [ThermalExpansion] Version Check Failed: Server returned HTTP response code: 403 for URL: http://teamcofh.com/thermalexpansion/version/version.txt
2014-02-16 14:30:39 [iNFO] [ThermalExpansion] Loading Plugins...
2014-02-16 14:30:39 [iNFO] [ThermalExpansion] Finished Loading Plugins.
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.stone
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.dirt
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.stonebrick
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.wood
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.wood_1
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.wood_2
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.wood_3
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.log
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.log_1
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.log_2
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.log_3
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.leaves
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.leaves_1
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.leaves_2
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.leaves_3
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.sponge
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.glass
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.blockLapis
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.sandStone
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.sandStone_1
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.sandStone_2
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.cloth
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.cloth_1
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.cloth_2
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.cloth_3
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.cloth_4
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.cloth_5
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.cloth_6
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.cloth_7
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.cloth_8
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.cloth_9
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.cloth_10
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.cloth_11
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.cloth_12
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.cloth_13
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.cloth_14
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.cloth_15
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.blockGold
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.blockIron
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.brick
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.bookshelf
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.stoneMoss
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.obsidian
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.blockDiamond
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.ice
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.snow
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.clay
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.hellrock
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.hellsand
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.lightgem
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.stonebricksmooth
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.stonebricksmooth_1
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.stonebricksmooth_2
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.stonebricksmooth_3
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.netherBrick
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.whiteStone
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.blockEmerald
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.blockRedstone
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.quartzBlock
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.clayHardenedStained
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.clayHardenedStained_1
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.clayHardenedStained_2
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.clayHardenedStained_3
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.clayHardenedStained_4
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.clayHardenedStained_5
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.clayHardenedStained_6
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.clayHardenedStained_7
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.clayHardenedStained_8
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.clayHardenedStained_9
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.clayHardenedStained_10
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.clayHardenedStained_11
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.clayHardenedStained_12
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.clayHardenedStained_13
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.clayHardenedStained_14
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.clayHardenedStained_15
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.clayHardened
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.blockCoal
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.grass
2014-02-16 14:30:39 [iNFO] [sTDOUT] Registered micro material: tile.mycel
2014-02-16 14:30:39 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue
2014-02-16 14:30:39 [sEVERE] [ForgeModLoader] 
mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized
FML{6.4.49.965} [Forge Mod Loader] (bin) Unloaded->Constructed->Pre-initialized
Forge{9.11.1.965} [Minecraft Forge] (bin) Unloaded->Constructed->Pre-initialized
CodeChickenCore{0.9.0.7} [CodeChicken Core] (minecraft.jar) Unloaded->Constructed->Pre-initialized
NotEnoughItems{1.6.1.8} [Not Enough Items] (NotEnoughItems 1.6.1.8 (1).jar) Unloaded->Constructed->Pre-initialized
chemistrycraft{chemistrycraft} [ChemistryCraft] (bin) Unloaded->Constructed->Errored
CoFHCore{2.0.0.2} [CoFH Core] (CoFH-Core-2.0.0.2.jar) Unloaded->Constructed->Pre-initialized
CoFHLoot{2.0.0.2} [CoFH Loot] (CoFH-Core-2.0.0.2.jar) Unloaded->Constructed->Pre-initialized
CoFHMasquerade{2.0.0.2} [CoFH Masquerade] (CoFH-Core-2.0.0.2.jar) Unloaded->Constructed->Pre-initialized
CoFHSocial{2.0.0.2} [CoFH Social] (CoFH-Core-2.0.0.2.jar) Unloaded->Constructed->Pre-initialized
CoFHWorld{2.0.0.2} [CoFH World] (CoFH-Core-2.0.0.2.jar) Unloaded->Constructed->Pre-initialized
Thaumcraft{4.0.5b} [Thaumcraft] (Thaumcraft4.0.5b.zip) Unloaded->Constructed->Pre-initialized
ForgeMultipart{1.0.0.219} [Forge Multipart] (ForgeMultipart-dev-1.6.4-1.0.0.219.jar) Unloaded->Constructed->Pre-initialized
ThermalExpansion{3.0.0.0} [Thermal Expansion] (ThermalExpansion-3.0.0.0.jar) Unloaded->Constructed->Pre-initialized
McMultipart{1.0.0.219} [Minecraft Multipart Plugin] (ForgeMultipart-dev-1.6.4-1.0.0.219.jar) Unloaded->Constructed->Pre-initialized
ForgeMicroblock{1.0.0.219} [Forge Microblocks] (ForgeMultipart-dev-1.6.4-1.0.0.219.jar) Unloaded->Constructed->Pre-initialized
2014-02-16 14:30:39 [sEVERE] [ForgeModLoader] The following problems were captured during this phase
2014-02-16 14:30:39 [sEVERE] [ForgeModLoader] Caught exception from chemistrycraft
java.lang.ExceptionInInitializerError
at larsg310.mods.chemistrycraft.ChemistryCraft.preInit(ChemistryCraft.java:33)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:545)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:201)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:112)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:522)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:183)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:473)
at net.minecraft.client.Minecraft.run(Minecraft.java:808)
at net.minecraft.client.main.Main.main(Main.java:93)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
Caused by: java.lang.NullPointerException
at larsg310.mods.chemistrycraft.atom.Atom.<init>(Atom.java:145)
at larsg310.mods.chemistrycraft.atom.Atom.<clinit>(Atom.java:11)
... 37 more
2014-02-16 14:30:39 [iNFO] [sTDOUT] ---- Minecraft Crash Report ----
2014-02-16 14:30:39 [iNFO] [sTDOUT] // Quite honestly, I wouldn't worry myself about that.
2014-02-16 14:30:39 [iNFO] [sTDOUT] 
2014-02-16 14:30:39 [iNFO] [sTDOUT] Time: 16-2-14 14:30
2014-02-16 14:30:39 [iNFO] [sTDOUT] Description: There was a severe problem during mod loading that has caused the game to fail
2014-02-16 14:30:39 [iNFO] [sTDOUT] 
2014-02-16 14:30:39 [iNFO] [sTDOUT] cpw.mods.fml.common.LoaderException: java.lang.ExceptionInInitializerError
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	at cpw.mods.fml.common.LoadController.transition(LoadController.java:156)
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	at cpw.mods.fml.common.Loader.loadMods(Loader.java:523)
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:183)
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	at net.minecraft.client.Minecraft.startGame(Minecraft.java:473)
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	at net.minecraft.client.Minecraft.run(Minecraft.java:808)
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	at net.minecraft.client.main.Main.main(Main.java:93)
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	at java.lang.reflect.Method.invoke(Unknown Source)
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
2014-02-16 14:30:39 [iNFO] [sTDOUT] Caused by: java.lang.ExceptionInInitializerError
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	at larsg310.mods.chemistrycraft.ChemistryCraft.preInit(ChemistryCraft.java:33)
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	at java.lang.reflect.Method.invoke(Unknown Source)
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:545)
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	at java.lang.reflect.Method.invoke(Unknown Source)
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventBus.post(EventBus.java:267)
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:201)
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181)
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	at java.lang.reflect.Method.invoke(Unknown Source)
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventBus.post(EventBus.java:267)
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:112)
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	at cpw.mods.fml.common.Loader.loadMods(Loader.java:522)
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	... 10 more
2014-02-16 14:30:39 [iNFO] [sTDOUT] Caused by: java.lang.NullPointerException
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	at larsg310.mods.chemistrycraft.atom.Atom.<init>(Atom.java:145)
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	at larsg310.mods.chemistrycraft.atom.Atom.<clinit>(Atom.java:11)
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	... 37 more
2014-02-16 14:30:39 [iNFO] [sTDOUT] 
2014-02-16 14:30:39 [iNFO] [sTDOUT] 
2014-02-16 14:30:39 [iNFO] [sTDOUT] A detailed walkthrough of the error, its code path and all known details is as follows:
2014-02-16 14:30:39 [iNFO] [sTDOUT] ---------------------------------------------------------------------------------------
2014-02-16 14:30:39 [iNFO] [sTDOUT] 
2014-02-16 14:30:39 [iNFO] [sTDOUT] -- System Details --
2014-02-16 14:30:39 [iNFO] [sTDOUT] Details:
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	Minecraft Version: 1.6.4
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	Operating System: Windows 8 (x86) version 6.2
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	Java Version: 1.7.0_45, Oracle Corporation
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	Memory: 913618608 bytes (871 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB)
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	Suspicious classes: FML and Forge are installed
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	FML: MCP v8.11 FML v6.4.49.965 Minecraft Forge 9.11.1.965 16 mods loaded, 16 mods active
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	FML{6.4.49.965} [Forge Mod Loader] (bin) Unloaded->Constructed->Pre-initialized
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	Forge{9.11.1.965} [Minecraft Forge] (bin) Unloaded->Constructed->Pre-initialized
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	CodeChickenCore{0.9.0.7} [CodeChicken Core] (minecraft.jar) Unloaded->Constructed->Pre-initialized
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	NotEnoughItems{1.6.1.8} [Not Enough Items] (NotEnoughItems 1.6.1.8 (1).jar) Unloaded->Constructed->Pre-initialized
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	chemistrycraft{chemistrycraft} [ChemistryCraft] (bin) Unloaded->Constructed->Errored
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	CoFHCore{2.0.0.2} [CoFH Core] (CoFH-Core-2.0.0.2.jar) Unloaded->Constructed->Pre-initialized
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	CoFHLoot{2.0.0.2} [CoFH Loot] (CoFH-Core-2.0.0.2.jar) Unloaded->Constructed->Pre-initialized
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	CoFHMasquerade{2.0.0.2} [CoFH Masquerade] (CoFH-Core-2.0.0.2.jar) Unloaded->Constructed->Pre-initialized
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	CoFHSocial{2.0.0.2} [CoFH Social] (CoFH-Core-2.0.0.2.jar) Unloaded->Constructed->Pre-initialized
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	CoFHWorld{2.0.0.2} [CoFH World] (CoFH-Core-2.0.0.2.jar) Unloaded->Constructed->Pre-initialized
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	Thaumcraft{4.0.5b} [Thaumcraft] (Thaumcraft4.0.5b.zip) Unloaded->Constructed->Pre-initialized
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	ForgeMultipart{1.0.0.219} [Forge Multipart] (ForgeMultipart-dev-1.6.4-1.0.0.219.jar) Unloaded->Constructed->Pre-initialized
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	ThermalExpansion{3.0.0.0} [Thermal Expansion] (ThermalExpansion-3.0.0.0.jar) Unloaded->Constructed->Pre-initialized
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	McMultipart{1.0.0.219} [Minecraft Multipart Plugin] (ForgeMultipart-dev-1.6.4-1.0.0.219.jar) Unloaded->Constructed->Pre-initialized
2014-02-16 14:30:39 [iNFO] [sTDOUT] 	ForgeMicroblock{1.0.0.219} [Forge Microblocks] (ForgeMultipart-dev-1.6.4-1.0.0.219.jar) Unloaded->Constructed->Pre-initialized
2014-02-16 14:30:39 [iNFO] [sTDOUT] #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Lars\Desktop\Modding-Development\forge\mcp\jars\.\crash-reports\crash-2014-02-16_14.30.39-client.txt

 

Updated Constructor Code:

private Atom(String name, String symbol, int index)
{
	this.name = name;
	this.symbol = symbol;
	this.index = index;
	atomSymbol.put(name, symbol);
	atomIndex.put(name, index);
	atomList.put(name, this);
}

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Link to comment
Share on other sites

Line 145 points to the same line as before. Guess I was wrong about the cause, sorry, I don't know what it could be then...

 

One random thing, you may want to put the untranslated name as the key and translate it on the fly, so if the user changes the language once they've started the game, they won't be locked in to the first language's names.

Link to comment
Share on other sites

Atom.init();

And that refers to this:

public static void init()
{

}

But i don't know why that's causing a error.

 

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Link to comment
Share on other sites

Ok, so i took your suggestion about localizing them on the go, so if the player changes language, the name updates too, instead of being in the same language until you restart Minecraft. But that doesn't solve the error.

 

Updated code:

package larsg310.mods.chemistrycraft.atom;

import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;

public class Atom
{
public static final Atom ACTINIUM = new Atom("atom.actinium", "Ac", 1);
public static final Atom ALUMINIUM = new Atom("atom.aluminium", "Al", 1);
public static final Atom AMERICIUM = new Atom("atom.americium", "Am", 1);
public static final Atom ANTIMONY = new Atom("atom.antimony", "Sb", 1);
public static final Atom ARGON = new Atom("atom.argon", "Ar", 1);
public static final Atom ARSENIC = new Atom("atom.arsenic", "As", 1);
public static final Atom ASTATINE = new Atom("atom.astatine", "At", 1);
public static final Atom BARIUM = new Atom("atom.barium", "Ba", 1);
public static final Atom BERKELIUM = new Atom("atom.berkelium", "Bk", 1);
public static final Atom BERYLLIUM = new Atom("atom.beryllium", "Be", 1);
public static final Atom BISMUTH = new Atom("atom.bismuth", "Bi", 1);
public static final Atom BOHRIUM = new Atom("atom.bohrium", "Bh", 1);
public static final Atom BORON = new Atom("atom.boron", "B", 1);
public static final Atom BROMINE = new Atom("atom.bromine", "Br", 2);
public static final Atom CADMIUM = new Atom("atom.cadmium", "Cd", 1);
public static final Atom CAESIUM = new Atom("atom.caesium", "Cs", 1);
public static final Atom CALCIUM = new Atom("atom.calcium", "Ca", 1);
public static final Atom CALIFORNIUM = new Atom("atom.californium", "Cf", 1);
public static final Atom CARBON = new Atom("atom.carbon", "C", 1);
public static final Atom CERIUM = new Atom("atom.cerium", "Ce", 1);
public static final Atom CHLORINE = new Atom("atom.chlorine", "Cl", 2);
public static final Atom CHROMIUM = new Atom("atom.chromium", "Cr", 1);
public static final Atom COBALT = new Atom("atom.cobalt", "Co", 1);
public static final Atom COPERNICIUM = new Atom("atom.copernicium", "Cn", 1);
public static final Atom COPPER = new Atom("atom.copper", "Cu", 1);
public static final Atom CURIUM = new Atom("atom.curium", "Cm", 1);
public static final Atom DARMSTADTIUM = new Atom("atom.darmstadtium", "Ds", 1);
public static final Atom DUBNIUM = new Atom("atom.dubnium", "Db", 1);
public static final Atom DYSPROSIUM = new Atom("atom.dysprosium", "Dy", 1);
public static final Atom EINSTEINIUM = new Atom("atom.einsteinium", "Es", 1);
public static final Atom ERBIUM = new Atom("atom.erbium", "Er", 1);
public static final Atom EUROPIUM = new Atom("atom.europium", "Eu", 1);
public static final Atom FERMIUM = new Atom("atom.fermium", "Fm", 1);
public static final Atom FLEROVIUM = new Atom("atom.flerovium", "Fl", 1);
public static final Atom FLUORINE = new Atom("atom.fluorine", "F", 2);
public static final Atom FRANCIUM = new Atom("atom.francium", "Fr", 1);
public static final Atom GADOLINIUM = new Atom("atom.gadolinium", "Gd", 1);
public static final Atom GALLIUM = new Atom("atom.gallium", "Ga", 1);
public static final Atom GERMANIUM = new Atom("atom.germanium", "Ge", 1);
public static final Atom GOLD = new Atom("atom.gold", "Au", 1);
public static final Atom HAFNIUM = new Atom("atom.hafnium", "Hf", 1);
public static final Atom HASSIUM = new Atom("atom.hassium", "Hs", 1);
public static final Atom HELIUM = new Atom("atom.helium", "He", 1);
public static final Atom HOLMIUM = new Atom("atom.holmium", "Ho", 1);
public static final Atom HYDROGEN = new Atom("atom.hydrogen", "H", 2);
public static final Atom INDIUM = new Atom("atom.indium", "In", 1);
public static final Atom IODINE = new Atom("atom.iodine", "I", 2);
public static final Atom IRIDIUM = new Atom("atom.iridium", "Ir", 1);
public static final Atom IRON = new Atom("atom.iron", "Fe", 1);
public static final Atom KRYPTON = new Atom("atom.krypton", "Kr", 1);
public static final Atom LANTHANUM = new Atom("atom.lanthanum", "La", 1);
public static final Atom LAWRENCIUM = new Atom("atom.lawrencium", "Lr", 1);
public static final Atom LEAD = new Atom("atom.lead", "Pb", 1);
public static final Atom LITHIUM = new Atom("atom.lithium", "Li", 1);
public static final Atom LIVERMORIUM = new Atom("atom.livermorium", "Lv", 1);
public static final Atom LUTETIUM = new Atom("atom.lutetium", "Lu", 1);
public static final Atom MAGNESIUM = new Atom("atom.magnesium", "Mg", 1);
public static final Atom MANGANESE = new Atom("atom.manganese", "Mn", 1);
public static final Atom MEITNERIUM = new Atom("atom.meitnerium", "Mt", 1);
public static final Atom MENDELEVIUM = new Atom("atom.mendelevium", "Md", 1);
public static final Atom MERCURY = new Atom("atom.mercury", "Hg", 1);
public static final Atom MOLYBDENUM = new Atom("atom.molybdenum", "Mo", 1);
public static final Atom NEODYNIUM = new Atom("atom.neodynium", "Nd", 1);
public static final Atom NEON = new Atom("atom.neon", "Ne", 1);
public static final Atom NEPTUNIUM = new Atom("atom.neptunium", "Np", 1);
public static final Atom NICKEL = new Atom("atom.nickel", "Ni", 1);
public static final Atom NIOBIUM = new Atom("atom.niobium", "Nb", 1);
public static final Atom NITROGEN = new Atom("atom.nitrogen", "N", 2);
public static final Atom NOBELIUM = new Atom("atom.nobelium", "No", 1);
public static final Atom OSMIUM = new Atom("atom.osmium", "Os", 1);
public static final Atom OXYGEN = new Atom("atom.oxygen", "O", 2);
public static final Atom PALLADIUM = new Atom("atom.palladium", "Pd", 1);
public static final Atom PHOSPHORUS = new Atom("atom.phosphorus", "P", 1);
public static final Atom PLATINUM = new Atom("atom.platinum", "Pt", 1);
public static final Atom PLUTONIUM = new Atom("atom.plutonium", "Pu", 1);
public static final Atom POLONIUM = new Atom("atom.polonium", "Po", 1);
public static final Atom POTASSIUM = new Atom("atom.potassium", "K", 1);
public static final Atom PRASEODYMIUM = new Atom("atom.praseodymium", "Pr", 1);
public static final Atom PROMETHIUM = new Atom("atom.promethium", "Pm", 1);
public static final Atom PROTACTINIUM = new Atom("atom.protactinium", "Pa", 1);
public static final Atom RADIUM = new Atom("atom.radium", "Ra", 1);
public static final Atom RADON = new Atom("atom.radon", "Rn", 1);
public static final Atom RHENIUM = new Atom("atom.rhenium", "Re", 1);
public static final Atom RHODIUM = new Atom("atom.rhodium", "Rh", 1);
public static final Atom ROENTGENIUM = new Atom("atom.roentgenium", "Rg", 1);
public static final Atom RUBIDIUM = new Atom("atom.rubidium", "Rb", 1);
public static final Atom RUTHENIUM = new Atom("atom.ruthenium", "Ru", 1);
public static final Atom RUTHERFORDIUM = new Atom("atom.rutherfordium", "Rf", 1);
public static final Atom SAMARIUM = new Atom("atom.samarium", "Sm", 1);
public static final Atom SCANDIUM = new Atom("atom.scandium", "Sc", 1);
public static final Atom SEABORGIUM = new Atom("atom.seaborgium", "Sg", 1);
public static final Atom SELENIUM = new Atom("atom.selenium", "Se", 1);
public static final Atom SILICON = new Atom("atom.silicon", "Si", 1);
public static final Atom SILVER = new Atom("atom.silver", "Ag", 1);
public static final Atom SODIUM = new Atom("atom.sodium", "Na", 1);
public static final Atom STRONTIUM = new Atom("atom.strontium", "Sr", 1);
public static final Atom SULFUR = new Atom("atom.sulfur", "S", 1);
public static final Atom TANTALUM = new Atom("atom.tantalum", "Ta", 1);
public static final Atom TECHNETIUM = new Atom("atom.technetium", "Tc", 1);
public static final Atom TELLURIUM = new Atom("atom.tellurium", "Te", 1);
public static final Atom TERBIUM = new Atom("atom.terbium", "Tb", 1);
public static final Atom THALLIUM = new Atom("atom.thallium", "Tl", 1);
public static final Atom THORIUM = new Atom("atom.thorium", "Th", 1);
public static final Atom THULIUM = new Atom("atom.thulium", "Tm", 1);
public static final Atom TIN = new Atom("atom.tin", "Sn", 1);
public static final Atom TITANIUM = new Atom("atom.titanium", "Ti", 1);
public static final Atom TUNGSTEN = new Atom("atom.tungsten", "W", 1);
public static final Atom UNUNOCTIUM = new Atom("atom.ununoctium", "Uuo", 1);
public static final Atom UNUNPENTIUM = new Atom("atom.ununpentium", "Uup", 1);
public static final Atom UNUNSEPTIUM = new Atom("atom.ununseptium", "Uus", 1);
public static final Atom UNUNTRIUM = new Atom("atom.ununtrium", "Uut", 1);
public static final Atom URANIUM = new Atom("atom.uranium", "U", 1);
public static final Atom VANADIUM = new Atom("atom.vanadium", "V", 1);
public static final Atom XENON = new Atom("atom.xenon", "Xe", 1);
public static final Atom YTTERBIUM = new Atom("atom.ytterbium", "Yb", 1);
public static final Atom YTTRIUM = new Atom("atom.yttrium", "Y", 1);
public static final Atom ZINC = new Atom("atom.zinc", "Zn", 1);
public static final Atom ZIRCONIUM = new Atom("atom.zirconium", "Zr", 1);

private Map<String, String> atomSymbol = new HashMap<String, String>();
private Map<String, Integer> atomIndex = new HashMap<String, Integer>();
private static LinkedHashMap<String, Atom> atomList = new LinkedHashMap<String, Atom>();

private String name = "";
private String symbol = "";
private int index = 0;

private Atom(String name, String symbol, int index)
{
	this.name = name;
	this.symbol = symbol;
	this.index = index;
	atomSymbol.put(name, symbol);
	atomIndex.put(name, index);
	atomList.put(name, this);
}

public String getName()
{
	return name;
}

public String getSymbol()
{
	return symbol;
}

public int getIndex()
{
	return index;
}

public static LinkedHashMap<String, Atom> getAtomList()
{
	return atomList;
}

public static void init()
{

}
}

And the code that i use for the tooltip highlight to see what atoms are on a item.

@ForgeSubscribe
public void addInformation(ItemTooltipEvent event)
{
	Molecule molecule = MoleculeRegistry.getMolecule(event.itemStack.getItem());

	if (molecule != null)
	{
		CustomAtom[] customAtoms = molecule.getListOfCustomAtoms();

		if (Keyboard.isKeyDown(Keyboard.KEY_LSHIFT))
		{
			for (int i = 0; i < customAtoms.length; i++)
			{
				event.toolTip.add(customAtoms[i].getIndex() + " x " + StatCollector.translateToLocal(customAtoms[i].getAtom().getName()));
			}
		}
	}
}

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Link to comment
Share on other sites

I finally figured out the problem!

 

Solution:

At this line of code:

atomList.put(name, this);

the field "this" wasn't te one what was null, the actual LinkedHashMap was null. That's because when initializing the atoms, the LinkedHashMap wasn't initalized yet!

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.