From 9353aa711b1d750ff945acdfed2d3b956291b615 Mon Sep 17 00:00:00 2001 From: Shawn Buckley Date: Wed, 21 Oct 2015 22:06:25 -0400 Subject: Reformat code --- src/main/java/gregtech/GT_Mod.java | 1921 +++++------ src/main/java/gregtech/api/GregTech_API.java | 1067 +++--- .../api/damagesources/GT_DamageSources.java | 158 +- .../api/enchants/Enchantment_EnderDamage.java | 52 +- .../api/enchants/Enchantment_Radioactivity.java | 50 +- .../java/gregtech/api/enums/ConfigCategories.java | 118 +- src/main/java/gregtech/api/enums/Dyes.java | 195 +- src/main/java/gregtech/api/enums/Element.java | 599 ++-- src/main/java/gregtech/api/enums/GT_Values.java | 227 +- src/main/java/gregtech/api/enums/ItemList.java | 1497 ++++---- src/main/java/gregtech/api/enums/Materials.java | 3328 +++++++++--------- src/main/java/gregtech/api/enums/OreDictNames.java | 146 +- src/main/java/gregtech/api/enums/OrePrefixes.java | 1575 ++++----- src/main/java/gregtech/api/enums/SubTag.java | 523 ++- src/main/java/gregtech/api/enums/TC_Aspects.java | 155 +- src/main/java/gregtech/api/enums/TextureSet.java | 321 +- src/main/java/gregtech/api/enums/Textures.java | 1239 ++++--- src/main/java/gregtech/api/enums/Tier.java | 168 +- .../java/gregtech/api/enums/ToolDictNames.java | 56 +- .../gregtech/api/events/BlockScanningEvent.java | 62 +- src/main/java/gregtech/api/gui/GT_Container.java | 397 ++- .../api/gui/GT_ContainerMetaTile_Machine.java | 199 +- .../java/gregtech/api/gui/GT_Container_1by1.java | 26 +- .../java/gregtech/api/gui/GT_Container_2by2.java | 32 +- .../java/gregtech/api/gui/GT_Container_3by3.java | 42 +- .../java/gregtech/api/gui/GT_Container_4by4.java | 56 +- .../api/gui/GT_Container_BasicMachine.java | 415 +-- .../gregtech/api/gui/GT_Container_BasicTank.java | 76 +- .../api/gui/GT_Container_MaintenanceHatch.java | 32 +- .../api/gui/GT_Container_MultiMachine.java | 34 +- .../java/gregtech/api/gui/GT_GUIContainer.java | 55 +- .../api/gui/GT_GUIContainerMetaTile_Machine.java | 35 +- .../gregtech/api/gui/GT_GUIContainer_1by1.java | 17 +- .../gregtech/api/gui/GT_GUIContainer_2by2.java | 17 +- .../gregtech/api/gui/GT_GUIContainer_3by3.java | 17 +- .../gregtech/api/gui/GT_GUIContainer_4by4.java | 17 +- .../api/gui/GT_GUIContainer_BasicMachine.java | 127 +- .../api/gui/GT_GUIContainer_BasicTank.java | 17 +- .../api/gui/GT_GUIContainer_MaintenanceHatch.java | 15 +- .../api/gui/GT_GUIContainer_MultiMachine.java | 66 +- src/main/java/gregtech/api/gui/GT_Slot_Armor.java | 10 +- .../java/gregtech/api/gui/GT_Slot_DataOrb.java | 10 +- src/main/java/gregtech/api/gui/GT_Slot_Holo.java | 40 +- src/main/java/gregtech/api/gui/GT_Slot_Output.java | 10 +- src/main/java/gregtech/api/gui/GT_Slot_Render.java | 20 +- .../api/interfaces/IColorModulationContainer.java | 2 +- .../java/gregtech/api/interfaces/ICondition.java | 200 +- .../gregtech/api/interfaces/IDamagableItem.java | 2 +- .../gregtech/api/interfaces/IDebugableBlock.java | 35 +- .../java/gregtech/api/interfaces/IDescribable.java | 8 +- .../java/gregtech/api/interfaces/IFoodStat.java | 38 +- .../gregtech/api/interfaces/IIconContainer.java | 28 +- .../gregtech/api/interfaces/IItemBehaviour.java | 34 +- .../gregtech/api/interfaces/IItemContainer.java | 47 +- .../api/interfaces/IOreRecipeRegistrator.java | 15 +- .../gregtech/api/interfaces/IProjectileItem.java | 20 +- .../api/interfaces/IRedstoneCircuitBlock.java | 100 +- .../gregtech/api/interfaces/ISubTagContainer.java | 28 +- .../java/gregtech/api/interfaces/ITexture.java | 21 +- .../java/gregtech/api/interfaces/IToolStats.java | 264 +- .../api/interfaces/internal/IBCTileEntity.java | 2 +- .../interfaces/internal/IGT_CraftingRecipe.java | 2 +- .../gregtech/api/interfaces/internal/IGT_Mod.java | 56 +- .../api/interfaces/internal/IGT_RecipeAdder.java | 914 ++--- .../api/interfaces/internal/IIC2TileEntity.java | 2 +- .../api/interfaces/internal/IThaumcraftCompat.java | 55 +- .../api/interfaces/internal/IUETileEntity.java | 2 +- .../interfaces/metatileentity/IMetaTileEntity.java | 604 ++-- .../metatileentity/IMetaTileEntityCable.java | 4 +- .../metatileentity/IMetaTileEntityItemPipe.java | 145 +- .../tileentity/IBasicEnergyContainer.java | 185 +- .../interfaces/tileentity/IColoredTileEntity.java | 21 +- .../api/interfaces/tileentity/ICoverable.java | 65 +- .../api/interfaces/tileentity/IDigitalChest.java | 42 +- .../interfaces/tileentity/IEnergyConductor.java | 60 +- .../interfaces/tileentity/IEnergyConnected.java | 139 +- .../tileentity/IExperimentalEnergyTileEntity.java | 143 +- .../api/interfaces/tileentity/IFibreConnected.java | 48 +- .../tileentity/IGearEnergyTileEntity.java | 25 +- .../tileentity/IGregTechDeviceInformation.java | 27 +- .../interfaces/tileentity/IGregTechTileEntity.java | 181 +- .../api/interfaces/tileentity/IHasInventory.java | 50 +- .../tileentity/IHasWorldObjectAndCoords.java | 155 +- .../tileentity/IMachineBlockUpdateable.java | 14 +- .../interfaces/tileentity/IMachineProgress.java | 122 +- .../tileentity/IPipeRenderedTileEntity.java | 8 +- .../interfaces/tileentity/IRedstoneEmitter.java | 60 +- .../interfaces/tileentity/IRedstoneReceiver.java | 40 +- .../interfaces/tileentity/IRedstoneTileEntity.java | 20 +- .../interfaces/tileentity/ITexturedTileEntity.java | 8 +- .../api/interfaces/tileentity/ITurnable.java | 50 +- .../interfaces/tileentity/IUpgradableMachine.java | 68 +- .../gregtech/api/items/GT_CoolantCellIC_Item.java | 118 +- .../gregtech/api/items/GT_CoolantCell_Item.java | 118 +- .../gregtech/api/items/GT_EnergyArmor_Item.java | 412 +-- .../java/gregtech/api/items/GT_Generic_Block.java | 21 +- .../java/gregtech/api/items/GT_Generic_Item.java | 200 +- .../java/gregtech/api/items/GT_MetaBase_Item.java | 1103 +++--- .../gregtech/api/items/GT_MetaGenerated_Item.java | 568 ++-- .../api/items/GT_MetaGenerated_Item_X01.java | 267 +- .../api/items/GT_MetaGenerated_Item_X32.java | 275 +- .../gregtech/api/items/GT_MetaGenerated_Tool.java | 925 ++--- .../api/items/GT_RadioactiveCellIC_Item.java | 261 +- .../api/items/GT_RadioactiveCell_Item.java | 264 +- .../gregtech/api/items/GT_SolderingTool_Item.java | 44 +- .../java/gregtech/api/items/GT_Spray_Bug_Item.java | 79 +- .../gregtech/api/items/GT_Spray_Foam_Item.java | 239 +- .../gregtech/api/items/GT_Spray_Hardener_Item.java | 97 +- .../api/items/GT_Spray_Hydration_Item.java | 66 +- .../java/gregtech/api/items/GT_Spray_Ice_Item.java | 86 +- .../gregtech/api/items/GT_Spray_Pepper_Item.java | 47 +- src/main/java/gregtech/api/items/GT_Tool_Item.java | 32 +- .../api/metatileentity/BaseMetaPipeEntity.java | 2239 ++++++------ .../api/metatileentity/BaseMetaTileEntity.java | 3089 ++++++++++------- .../api/metatileentity/BaseMetaTileEntityUE.java | 12 +- .../api/metatileentity/BaseTileEntity.java | 526 ++- .../api/metatileentity/MetaPipeEntity.java | 1129 ++++--- .../api/metatileentity/MetaTileEntity.java | 1308 +++---- .../examples/GT_MetaTileEntity_E_Furnace.java | 72 +- .../implementations/GT_MetaPipeEntity_Cable.java | 458 +-- .../implementations/GT_MetaPipeEntity_Fluid.java | 651 ++-- .../implementations/GT_MetaPipeEntity_Frame.java | 121 +- .../implementations/GT_MetaPipeEntity_Item.java | 529 +-- .../GT_MetaTileEntity_BasicBatteryBuffer.java | 472 +-- .../GT_MetaTileEntity_BasicGenerator.java | 374 +- .../GT_MetaTileEntity_BasicHull.java | 235 +- .../GT_MetaTileEntity_BasicHull_NonElectric.java | 85 +- .../GT_MetaTileEntity_BasicMachine.java | 1314 ++++--- .../GT_MetaTileEntity_BasicMachine_Bronze.java | 380 ++- .../GT_MetaTileEntity_BasicMachine_GT_Recipe.java | 888 +++-- .../GT_MetaTileEntity_BasicMachine_Steel.java | 177 +- .../GT_MetaTileEntity_BasicTank.java | 415 ++- .../implementations/GT_MetaTileEntity_Buffer.java | 399 ++- .../implementations/GT_MetaTileEntity_Hatch.java | 159 +- .../GT_MetaTileEntity_Hatch_Dynamo.java | 122 +- .../GT_MetaTileEntity_Hatch_Energy.java | 128 +- .../GT_MetaTileEntity_Hatch_Input.java | 177 +- .../GT_MetaTileEntity_Hatch_InputBus.java | 193 +- .../GT_MetaTileEntity_Hatch_Maintenance.java | 189 +- .../GT_MetaTileEntity_Hatch_Muffler.java | 107 +- .../GT_MetaTileEntity_Hatch_Output.java | 303 +- .../GT_MetaTileEntity_Hatch_OutputBus.java | 150 +- .../GT_MetaTileEntity_MultiBlockBase.java | 1443 ++++---- .../GT_MetaTileEntity_TieredMachineBlock.java | 111 +- .../GT_MetaTileEntity_Transformer.java | 291 +- src/main/java/gregtech/api/net/GT_Packet.java | 46 +- .../gregtech/api/net/GT_Packet_Block_Event.java | 81 +- .../java/gregtech/api/net/GT_Packet_Sound.java | 79 +- .../gregtech/api/net/GT_Packet_TileEntity.java | 117 +- .../java/gregtech/api/net/IGT_NetworkHandler.java | 7 +- .../java/gregtech/api/objects/ElementStack.java | 71 +- .../java/gregtech/api/objects/GT_ArrayList.java | 72 +- .../api/objects/GT_CopiedBlockTexture.java | 160 +- .../gregtech/api/objects/GT_Cover_Default.java | 116 +- .../java/gregtech/api/objects/GT_Cover_None.java | 161 +- src/main/java/gregtech/api/objects/GT_Fluid.java | 36 +- .../java/gregtech/api/objects/GT_FluidStack.java | 80 +- src/main/java/gregtech/api/objects/GT_HashSet.java | 63 +- .../java/gregtech/api/objects/GT_ItemStack.java | 87 +- .../java/gregtech/api/objects/GT_MultiTexture.java | 88 +- .../gregtech/api/objects/GT_RenderedTexture.java | 200 +- .../java/gregtech/api/objects/GT_SidedTexture.java | 224 +- src/main/java/gregtech/api/objects/ItemData.java | 222 +- .../java/gregtech/api/objects/MaterialStack.java | 71 +- .../threads/GT_Runnable_MachineBlockUpdate.java | 61 +- .../gregtech/api/threads/GT_Runnable_Sound.java | 44 +- src/main/java/gregtech/api/util/GT_BaseCrop.java | 354 +- .../gregtech/api/util/GT_CircuitryBehavior.java | 321 +- src/main/java/gregtech/api/util/GT_Config.java | 152 +- .../java/gregtech/api/util/GT_CoverBehavior.java | 409 +-- .../java/gregtech/api/util/GT_CreativeTab.java | 22 +- src/main/java/gregtech/api/util/GT_FoodStat.java | 173 +- .../java/gregtech/api/util/GT_IBoxableWrapper.java | 8 +- .../api/util/GT_ItsNotMyFaultException.java | 24 +- .../java/gregtech/api/util/GT_LanguageManager.java | 166 +- src/main/java/gregtech/api/util/GT_Log.java | 33 +- src/main/java/gregtech/api/util/GT_ModHandler.java | 3317 +++++++++--------- .../gregtech/api/util/GT_OreDictUnificator.java | 549 +-- .../java/gregtech/api/util/GT_PlayedSound.java | 44 +- src/main/java/gregtech/api/util/GT_Recipe.java | 2255 +++++++------ .../gregtech/api/util/GT_RecipeRegistrator.java | 607 ++-- .../java/gregtech/api/util/GT_Shaped_Recipe.java | 165 +- .../gregtech/api/util/GT_Shapeless_Recipe.java | 165 +- .../gregtech/api/util/GT_SpawnEventHandler.java | 67 +- src/main/java/gregtech/api/util/GT_Utility.java | 3551 ++++++++++--------- src/main/java/gregtech/api/world/GT_Worldgen.java | 99 +- .../gregtech/api/world/GT_Worldgen_Boulder.java | 118 +- .../java/gregtech/api/world/GT_Worldgen_Ore.java | 40 +- .../gregtech/api/world/GT_Worldgen_Ore_Normal.java | 116 +- .../api/world/GT_Worldgen_Ore_SingleBlock.java | 40 +- .../GT_Worldgen_Ore_SingleBlock_UnderLava.java | 41 +- src/main/java/gregtech/common/GT_Client.java | 737 ++-- src/main/java/gregtech/common/GT_DummyWorld.java | 211 +- .../java/gregtech/common/GT_IteratorRandom.java | 20 +- .../gregtech/common/GT_MinableOreGenerator.java | 123 +- src/main/java/gregtech/common/GT_Network.java | 149 +- .../gregtech/common/GT_PlayerActivityLogger.java | 47 +- src/main/java/gregtech/common/GT_Proxy.java | 3570 ++++++++++---------- src/main/java/gregtech/common/GT_RecipeAdder.java | 1414 ++++---- src/main/java/gregtech/common/GT_Server.java | 51 +- .../java/gregtech/common/GT_ThaumcraftCompat.java | 398 ++- .../gregtech/common/GT_Worldgen_GT_Ore_Layer.java | 157 +- .../common/GT_Worldgen_GT_Ore_SmallPieces.java | 68 +- .../java/gregtech/common/GT_Worldgen_Stone.java | 131 +- .../java/gregtech/common/GT_Worldgenerator.java | 406 ++- .../gregtech/common/blocks/GT_Block_Casings1.java | 146 +- .../gregtech/common/blocks/GT_Block_Casings2.java | 165 +- .../gregtech/common/blocks/GT_Block_Casings3.java | 155 +- .../gregtech/common/blocks/GT_Block_Casings4.java | 856 +++-- .../common/blocks/GT_Block_Casings_Abstract.java | 215 +- .../gregtech/common/blocks/GT_Block_Concretes.java | 156 +- .../gregtech/common/blocks/GT_Block_Granites.java | 118 +- .../gregtech/common/blocks/GT_Block_Machines.java | 971 +++--- .../gregtech/common/blocks/GT_Block_Metal.java | 44 +- .../java/gregtech/common/blocks/GT_Block_Ores.java | 430 ++- .../common/blocks/GT_Block_Reinforced.java | 372 +- .../common/blocks/GT_Block_Stones_Abstract.java | 276 +- .../gregtech/common/blocks/GT_Block_Storage.java | 185 +- .../gregtech/common/blocks/GT_Item_Casings1.java | 39 +- .../gregtech/common/blocks/GT_Item_Casings2.java | 29 +- .../gregtech/common/blocks/GT_Item_Casings3.java | 10 +- .../gregtech/common/blocks/GT_Item_Casings4.java | 10 +- .../common/blocks/GT_Item_Casings_Abstract.java | 63 +- .../gregtech/common/blocks/GT_Item_Concretes.java | 28 +- .../gregtech/common/blocks/GT_Item_Granites.java | 10 +- .../gregtech/common/blocks/GT_Item_Machines.java | 252 +- .../java/gregtech/common/blocks/GT_Item_Ores.java | 69 +- .../common/blocks/GT_Item_Stones_Abstract.java | 54 +- .../gregtech/common/blocks/GT_Item_Storage.java | 51 +- .../common/blocks/GT_Material_Casings.java | 25 +- .../common/blocks/GT_Material_Machines.java | 25 +- .../gregtech/common/blocks/GT_Packet_Ores.java | 102 +- .../gregtech/common/blocks/GT_TileEntity_Ores.java | 401 ++- .../java/gregtech/common/covers/GT_Cover_Arm.java | 173 +- .../common/covers/GT_Cover_Blastproof.java | 32 +- .../common/covers/GT_Cover_ControlsWork.java | 125 +- .../gregtech/common/covers/GT_Cover_Conveyor.java | 200 +- .../gregtech/common/covers/GT_Cover_Crafting.java | 35 +- .../gregtech/common/covers/GT_Cover_DoesWork.java | 134 +- .../gregtech/common/covers/GT_Cover_Drain.java | 152 +- .../gregtech/common/covers/GT_Cover_EUMeter.java | 300 +- .../common/covers/GT_Cover_EnergyOnly.java | 153 +- .../gregtech/common/covers/GT_Cover_ItemMeter.java | 143 +- .../java/gregtech/common/covers/GT_Cover_Lens.java | 23 +- .../common/covers/GT_Cover_LiquidMeter.java | 142 +- .../common/covers/GT_Cover_NeedMaintainance.java | 211 +- .../common/covers/GT_Cover_PlayerDetector.java | 201 +- .../java/gregtech/common/covers/GT_Cover_Pump.java | 285 +- .../common/covers/GT_Cover_RedstoneConductor.java | 138 +- .../covers/GT_Cover_RedstoneReceiverExternal.java | 31 +- .../covers/GT_Cover_RedstoneReceiverInternal.java | 29 +- .../common/covers/GT_Cover_RedstoneSignalizer.java | 119 +- .../GT_Cover_RedstoneTransmitterExternal.java | 31 +- .../GT_Cover_RedstoneTransmitterInternal.java | 39 +- .../covers/GT_Cover_RedstoneWirelessBase.java | 153 +- .../gregtech/common/covers/GT_Cover_Screen.java | 127 +- .../gregtech/common/covers/GT_Cover_Shutter.java | 113 +- .../common/covers/GT_Cover_SolarPanel.java | 53 +- .../java/gregtech/common/covers/GT_Cover_Vent.java | 54 +- .../gregtech/common/entities/GT_Entity_Arrow.java | 635 ++-- .../common/entities/GT_Entity_Arrow_Potion.java | 103 +- .../gregtech/common/gui/GT_Container_Boiler.java | 142 +- .../gui/GT_Container_BronzeBlastFurnace.java | 43 +- .../common/gui/GT_Container_ChestBuffer.java | 127 +- .../gregtech/common/gui/GT_Container_Filter.java | 233 +- .../GT_Container_MicrowaveEnergyTransmitter.java | 310 +- .../common/gui/GT_Container_QuantumChest.java | 82 +- .../common/gui/GT_Container_Regulator.java | 285 +- .../common/gui/GT_Container_SuperBuffer.java | 119 +- .../common/gui/GT_Container_Teleporter.java | 310 +- .../common/gui/GT_Container_TypeFilter.java | 194 +- .../common/gui/GT_GUIContainer_Boiler.java | 70 +- .../gui/GT_GUIContainer_BronzeBlastFurnace.java | 42 +- .../common/gui/GT_GUIContainer_ChestBuffer.java | 25 +- .../common/gui/GT_GUIContainer_Filter.java | 25 +- .../common/gui/GT_GUIContainer_FusionReactor.java | 56 +- ...GT_GUIContainer_MicrowaveEnergyTransmitter.java | 54 +- .../common/gui/GT_GUIContainer_QuantumChest.java | 19 +- .../common/gui/GT_GUIContainer_Regulator.java | 51 +- .../common/gui/GT_GUIContainer_SuperBuffer.java | 25 +- .../common/gui/GT_GUIContainer_Teleporter.java | 56 +- .../common/gui/GT_GUIContainer_TypeFilter.java | 25 +- src/main/java/gregtech/common/items/CombType.java | 140 +- .../common/items/GT_DepletetCell_Item.java | 55 +- .../gregtech/common/items/GT_FluidDisplayItem.java | 141 +- .../common/items/GT_IntegratedCircuit_Item.java | 190 +- .../common/items/GT_MetaGenerated_Item_01.java | 1643 +++++---- .../common/items/GT_MetaGenerated_Item_02.java | 838 ++--- .../common/items/GT_MetaGenerated_Item_03.java | 25 +- .../common/items/GT_MetaGenerated_Tool_01.java | 313 +- .../common/items/GT_NeutronReflector_Item.java | 104 +- .../gregtech/common/items/GT_SensorCard_Item.java | 148 +- src/main/java/gregtech/common/items/ItemComb.java | 243 +- .../common/items/behaviors/Behaviour_Arrow.java | 189 +- .../items/behaviors/Behaviour_Arrow_Potion.java | 85 +- .../common/items/behaviors/Behaviour_Crowbar.java | 86 +- .../common/items/behaviors/Behaviour_DataOrb.java | 182 +- .../items/behaviors/Behaviour_DataStick.java | 53 +- .../common/items/behaviors/Behaviour_Hoe.java | 90 +- .../common/items/behaviors/Behaviour_Lighter.java | 203 +- .../common/items/behaviors/Behaviour_None.java | 116 +- .../behaviors/Behaviour_Plunger_Essentia.java | 63 +- .../items/behaviors/Behaviour_Plunger_Fluid.java | 67 +- .../items/behaviors/Behaviour_Plunger_Item.java | 95 +- .../items/behaviors/Behaviour_PrintedPages.java | 53 +- .../items/behaviors/Behaviour_Prospecting.java | 209 +- .../common/items/behaviors/Behaviour_Scanner.java | 51 +- .../common/items/behaviors/Behaviour_Scoop.java | 70 +- .../items/behaviors/Behaviour_Screwdriver.java | 72 +- .../common/items/behaviors/Behaviour_Sense.java | 66 +- .../items/behaviors/Behaviour_SensorKit.java | 62 +- .../items/behaviors/Behaviour_SoftHammer.java | 193 +- .../items/behaviors/Behaviour_Sonictron.java | 215 +- .../items/behaviors/Behaviour_Spray_Color.java | 209 +- .../common/items/behaviors/Behaviour_Wrench.java | 270 +- .../items/behaviors/Behaviour_WrittenBook.java | 38 +- .../redstonecircuits/GT_Circuit_BasicLogic.java | 181 +- .../common/redstonecircuits/GT_Circuit_BitAnd.java | 118 +- .../GT_Circuit_CombinationLock.java | 186 +- .../common/redstonecircuits/GT_Circuit_Equals.java | 113 +- .../common/redstonecircuits/GT_Circuit_Pulser.java | 146 +- .../redstonecircuits/GT_Circuit_Randomizer.java | 142 +- .../redstonecircuits/GT_Circuit_RedstoneMeter.java | 151 +- .../redstonecircuits/GT_Circuit_Repeater.java | 144 +- .../common/redstonecircuits/GT_Circuit_Timer.java | 193 +- .../gregtech/common/render/GT_CapeRenderer.java | 154 +- .../render/GT_MetaGenerated_Item_Renderer.java | 276 +- .../render/GT_MetaGenerated_Tool_Renderer.java | 332 +- .../java/gregtech/common/render/GT_RenderUtil.java | 50 +- .../gregtech/common/render/GT_Renderer_Block.java | 1167 +++---- .../common/render/GT_Renderer_Entity_Arrow.java | 25 +- .../automation/GT_MetaTileEntity_ChestBuffer.java | 104 +- .../automation/GT_MetaTileEntity_Filter.java | 123 +- .../automation/GT_MetaTileEntity_Regulator.java | 162 +- .../automation/GT_MetaTileEntity_SuperBuffer.java | 56 +- .../automation/GT_MetaTileEntity_TypeFilter.java | 244 +- .../boilers/GT_MetaTileEntity_Boiler.java | 532 ++- .../boilers/GT_MetaTileEntity_Boiler_Bronze.java | 266 +- .../boilers/GT_MetaTileEntity_Boiler_Lava.java | 237 +- .../boilers/GT_MetaTileEntity_Boiler_Solar.java | 227 +- .../boilers/GT_MetaTileEntity_Boiler_Steel.java | 275 +- .../GT_MetaTileEntity_DieselGenerator.java | 193 +- .../GT_MetaTileEntity_FluidNaquadahReactor.java | 170 +- .../generators/GT_MetaTileEntity_GasTurbine.java | 174 +- .../GT_MetaTileEntity_MagicEnergyConverter.java | 176 +- .../GT_MetaTileEntity_MagicalEnergyAbsorber.java | 487 +-- .../GT_MetaTileEntity_PlasmaGenerator.java | 176 +- .../GT_MetaTileEntity_SolidNaquadahReactor.java | 170 +- .../generators/GT_MetaTileEntity_SteamTurbine.java | 182 +- .../GT_MetaTileEntity_BasicHull_Bronze.java | 49 +- .../GT_MetaTileEntity_BasicHull_BronzeBricks.java | 57 +- .../GT_MetaTileEntity_BasicHull_Steel.java | 54 +- .../GT_MetaTileEntity_BasicHull_SteelBricks.java | 54 +- .../basic/GT_MetaTileEntity_Boxinator.java | 163 +- .../machines/basic/GT_MetaTileEntity_Charger.java | 121 +- .../basic/GT_MetaTileEntity_Disassembler.java | 85 +- .../basic/GT_MetaTileEntity_Massfabricator.java | 125 +- ..._MetaTileEntity_MicrowaveEnergyTransmitter.java | 595 ++-- .../basic/GT_MetaTileEntity_MonsterRepellent.java | 185 +- .../basic/GT_MetaTileEntity_PotionBrewer.java | 242 +- .../machines/basic/GT_MetaTileEntity_Printer.java | 82 +- .../machines/basic/GT_MetaTileEntity_Pump.java | 752 +++-- .../basic/GT_MetaTileEntity_Replicator.java | 172 +- .../basic/GT_MetaTileEntity_RockBreaker.java | 110 +- .../machines/basic/GT_MetaTileEntity_Scanner.java | 358 +- .../basic/GT_MetaTileEntity_SeismicProspector.java | 168 +- .../basic/GT_MetaTileEntity_Teleporter.java | 761 +++-- .../multi/GT_MetaTileEntity_AdvMiner2.java | 494 +-- .../GT_MetaTileEntity_BronzeBlastFurnace.java | 665 ++-- .../multi/GT_MetaTileEntity_Charcoal_Pit.java | 406 +-- .../multi/GT_MetaTileEntity_DistillationTower.java | 330 +- .../GT_MetaTileEntity_ElectricBlastFurnace.java | 398 +-- .../multi/GT_MetaTileEntity_FusionComputer.java | 832 +++-- .../multi/GT_MetaTileEntity_FusionComputer1.java | 100 +- .../multi/GT_MetaTileEntity_FusionComputer2.java | 99 +- .../multi/GT_MetaTileEntity_FusionComputer3.java | 99 +- .../multi/GT_MetaTileEntity_HeatExchanger.java | 557 ++- .../GT_MetaTileEntity_ImplosionCompressor.java | 275 +- .../multi/GT_MetaTileEntity_LargeBoiler.java | 407 ++- .../GT_MetaTileEntity_LargeBoiler_Bronze.java | 126 +- .../multi/GT_MetaTileEntity_LargeBoiler_Steel.java | 128 +- .../GT_MetaTileEntity_LargeBoiler_Titanium.java | 128 +- ...T_MetaTileEntity_LargeBoiler_TungstenSteel.java | 130 +- .../multi/GT_MetaTileEntity_LargeTurbine.java | 355 +- .../multi/GT_MetaTileEntity_LargeTurbine_Gas.java | 126 +- .../GT_MetaTileEntity_LargeTurbine_HPSteam.java | 120 +- .../GT_MetaTileEntity_LargeTurbine_Plasma.java | 130 +- .../GT_MetaTileEntity_LargeTurbine_Steam.java | 142 +- .../multi/GT_MetaTileEntity_MultiFurnace.java | 306 +- .../multi/GT_MetaTileEntity_OilCracker.java | 448 +-- .../machines/multi/GT_MetaTileEntity_OilDrill.java | 396 ++- .../multi/GT_MetaTileEntity_ProcessingArray.java | 581 ++-- .../multi/GT_MetaTileEntity_PyrolyseOven.java | 310 +- .../multi/GT_MetaTileEntity_VacuumFreezer.java | 267 +- .../GT_MetaTileEntity_AlloySmelter_Bronze.java | 171 +- .../GT_MetaTileEntity_AlloySmelter_Steel.java | 171 +- .../steam/GT_MetaTileEntity_Compressor_Bronze.java | 170 +- .../steam/GT_MetaTileEntity_Compressor_Steel.java | 170 +- .../steam/GT_MetaTileEntity_Extractor_Bronze.java | 170 +- .../steam/GT_MetaTileEntity_Extractor_Steel.java | 170 +- .../GT_MetaTileEntity_ForgeHammer_Bronze.java | 171 +- .../steam/GT_MetaTileEntity_ForgeHammer_Steel.java | 171 +- .../steam/GT_MetaTileEntity_Furnace_Bronze.java | 170 +- .../steam/GT_MetaTileEntity_Furnace_Steel.java | 170 +- .../steam/GT_MetaTileEntity_Macerator_Bronze.java | 208 +- .../steam/GT_MetaTileEntity_Macerator_Steel.java | 207 +- .../storage/GT_MetaTileEntity_Locker.java | 323 +- .../storage/GT_MetaTileEntity_QuantumChest.java | 359 +- .../storage/GT_MetaTileEntity_QuantumTank.java | 243 +- src/main/java/gregtech/common/tools/GT_Tool.java | 270 +- .../java/gregtech/common/tools/GT_Tool_Axe.java | 226 +- .../common/tools/GT_Tool_BranchCutter.java | 131 +- .../common/tools/GT_Tool_ButcheryKnife.java | 147 +- .../gregtech/common/tools/GT_Tool_BuzzSaw.java | 114 +- .../gregtech/common/tools/GT_Tool_Chainsaw_HV.java | 83 +- .../gregtech/common/tools/GT_Tool_Chainsaw_LV.java | 175 +- .../gregtech/common/tools/GT_Tool_Chainsaw_MV.java | 83 +- .../gregtech/common/tools/GT_Tool_Crowbar.java | 224 +- .../gregtech/common/tools/GT_Tool_Drill_HV.java | 96 +- .../gregtech/common/tools/GT_Tool_Drill_LV.java | 203 +- .../gregtech/common/tools/GT_Tool_Drill_MV.java | 84 +- .../java/gregtech/common/tools/GT_Tool_File.java | 193 +- .../gregtech/common/tools/GT_Tool_HardHammer.java | 297 +- .../java/gregtech/common/tools/GT_Tool_Hoe.java | 196 +- .../gregtech/common/tools/GT_Tool_JackHammer.java | 176 +- .../java/gregtech/common/tools/GT_Tool_Knife.java | 83 +- .../java/gregtech/common/tools/GT_Tool_Mortar.java | 191 +- .../gregtech/common/tools/GT_Tool_Pickaxe.java | 200 +- .../java/gregtech/common/tools/GT_Tool_Plow.java | 103 +- .../gregtech/common/tools/GT_Tool_Plunger.java | 122 +- .../gregtech/common/tools/GT_Tool_RollingPin.java | 89 +- .../java/gregtech/common/tools/GT_Tool_Saw.java | 216 +- .../java/gregtech/common/tools/GT_Tool_Scoop.java | 205 +- .../gregtech/common/tools/GT_Tool_Screwdriver.java | 219 +- .../common/tools/GT_Tool_Screwdriver_LV.java | 39 +- .../java/gregtech/common/tools/GT_Tool_Sense.java | 103 +- .../java/gregtech/common/tools/GT_Tool_Shovel.java | 181 +- .../gregtech/common/tools/GT_Tool_SoftHammer.java | 212 +- .../common/tools/GT_Tool_Soldering_Iron.java | 216 +- .../java/gregtech/common/tools/GT_Tool_Sword.java | 190 +- .../gregtech/common/tools/GT_Tool_Turbine.java | 47 +- .../common/tools/GT_Tool_Turbine_Huge.java | 23 +- .../common/tools/GT_Tool_Turbine_Large.java | 23 +- .../common/tools/GT_Tool_Turbine_Normal.java | 23 +- .../common/tools/GT_Tool_Turbine_Small.java | 23 +- .../common/tools/GT_Tool_UniversalSpade.java | 212 +- .../gregtech/common/tools/GT_Tool_WireCutter.java | 184 +- .../java/gregtech/common/tools/GT_Tool_Wrench.java | 231 +- .../gregtech/common/tools/GT_Tool_Wrench_HV.java | 102 +- .../gregtech/common/tools/GT_Tool_Wrench_LV.java | 111 +- .../gregtech/common/tools/GT_Tool_Wrench_MV.java | 102 +- .../loaders/load/GT_CoverBehaviorLoader.java | 11 +- .../java/gregtech/loaders/load/GT_FuelLoader.java | 34 +- .../gregtech/loaders/load/GT_ItemIterator.java | 517 ++- .../gregtech/loaders/load/GT_SonictronLoader.java | 295 +- .../gregtech/loaders/misc/GT_Achievements.java | 916 +++-- .../gregtech/loaders/misc/GT_BeeDefinition.java | 1316 ++++---- src/main/java/gregtech/loaders/misc/GT_Bees.java | 25 +- .../gregtech/loaders/misc/GT_BranchDefinition.java | 162 +- .../java/gregtech/loaders/misc/GT_CoverLoader.java | 23 +- .../loaders/oreprocessing/ProcessingAll.java | 21 +- .../loaders/oreprocessing/ProcessingArrows.java | 66 +- .../loaders/oreprocessing/ProcessingBattery.java | 22 +- .../loaders/oreprocessing/ProcessingBeans.java | 20 +- .../loaders/oreprocessing/ProcessingBlock.java | 119 +- .../loaders/oreprocessing/ProcessingBolt.java | 24 +- .../loaders/oreprocessing/ProcessingCell.java | 144 +- .../oreprocessing/ProcessingCellPlasma.java | 28 +- .../loaders/oreprocessing/ProcessingCircuit.java | 53 +- .../oreprocessing/ProcessingCompressed.java | 23 +- .../loaders/oreprocessing/ProcessingCrafting.java | 94 +- .../loaders/oreprocessing/ProcessingCrop.java | 73 +- .../ProcessingCrushedCentrifuged.java | 21 +- .../oreprocessing/ProcessingCrushedPurified.java | 24 +- .../oreprocessing/ProcessingCrystallized.java | 23 +- .../loaders/oreprocessing/ProcessingDirty.java | 48 +- .../loaders/oreprocessing/ProcessingDust.java | 314 +- .../oreprocessing/ProcessingDustImpure.java | 91 +- .../loaders/oreprocessing/ProcessingDustSmall.java | 37 +- .../loaders/oreprocessing/ProcessingDustTiny.java | 45 +- .../loaders/oreprocessing/ProcessingDye.java | 34 +- .../loaders/oreprocessing/ProcessingFoil.java | 19 +- .../loaders/oreprocessing/ProcessingFood.java | 46 +- .../loaders/oreprocessing/ProcessingGear.java | 23 +- .../loaders/oreprocessing/ProcessingGearSmall.java | 21 +- .../loaders/oreprocessing/ProcessingGem.java | 91 +- .../oreprocessing/ProcessingGemChipped.java | 24 +- .../oreprocessing/ProcessingGemExquisite.java | 26 +- .../loaders/oreprocessing/ProcessingGemFlawed.java | 26 +- .../oreprocessing/ProcessingGemFlawless.java | 26 +- .../loaders/oreprocessing/ProcessingIngot1.java | 99 +- .../loaders/oreprocessing/ProcessingIngot2.java | 24 +- .../loaders/oreprocessing/ProcessingIngot3.java | 24 +- .../loaders/oreprocessing/ProcessingIngot4.java | 21 +- .../loaders/oreprocessing/ProcessingIngot5.java | 21 +- .../loaders/oreprocessing/ProcessingIngotHot.java | 19 +- .../loaders/oreprocessing/ProcessingItem.java | 87 +- .../loaders/oreprocessing/ProcessingLeaves.java | 15 +- .../loaders/oreprocessing/ProcessingLens.java | 21 +- .../loaders/oreprocessing/ProcessingLog.java | 165 +- .../loaders/oreprocessing/ProcessingNugget.java | 46 +- .../loaders/oreprocessing/ProcessingOre.java | 216 +- .../loaders/oreprocessing/ProcessingOrePoor.java | 51 +- .../oreprocessing/ProcessingOreSmelting.java | 58 +- .../loaders/oreprocessing/ProcessingPipeLarge.java | 27 +- .../oreprocessing/ProcessingPipeMedium.java | 27 +- .../oreprocessing/ProcessingPipeRestrictive.java | 21 +- .../loaders/oreprocessing/ProcessingPipeSmall.java | 27 +- .../loaders/oreprocessing/ProcessingPlank.java | 83 +- .../loaders/oreprocessing/ProcessingPlate1.java | 127 +- .../loaders/oreprocessing/ProcessingPlate2.java | 39 +- .../loaders/oreprocessing/ProcessingPlate3.java | 40 +- .../loaders/oreprocessing/ProcessingPlate4.java | 35 +- .../loaders/oreprocessing/ProcessingPlate5.java | 32 +- .../loaders/oreprocessing/ProcessingPlate9.java | 21 +- .../oreprocessing/ProcessingPlateAlloy.java | 32 +- .../loaders/oreprocessing/ProcessingPure.java | 25 +- .../loaders/oreprocessing/ProcessingRecycling.java | 22 +- .../loaders/oreprocessing/ProcessingSand.java | 26 +- .../loaders/oreprocessing/ProcessingSaplings.java | 21 +- .../loaders/oreprocessing/ProcessingShaping.java | 207 +- .../loaders/oreprocessing/ProcessingSlab.java | 21 +- .../loaders/oreprocessing/ProcessingStick.java | 27 +- .../loaders/oreprocessing/ProcessingStickLong.java | 24 +- .../loaders/oreprocessing/ProcessingStone.java | 107 +- .../oreprocessing/ProcessingStoneCobble.java | 26 +- .../oreprocessing/ProcessingStoneVarious.java | 38 +- .../oreprocessing/ProcessingToolHeadArrow.java | 21 +- .../oreprocessing/ProcessingToolHeadAxe.java | 19 +- .../oreprocessing/ProcessingToolHeadBuzzSaw.java | 24 +- .../oreprocessing/ProcessingToolHeadChainsaw.java | 36 +- .../oreprocessing/ProcessingToolHeadDrill.java | 44 +- .../oreprocessing/ProcessingToolHeadFile.java | 24 +- .../oreprocessing/ProcessingToolHeadHammer.java | 73 +- .../oreprocessing/ProcessingToolHeadHoe.java | 19 +- .../oreprocessing/ProcessingToolHeadPickaxe.java | 19 +- .../oreprocessing/ProcessingToolHeadPlow.java | 19 +- .../oreprocessing/ProcessingToolHeadSaw.java | 19 +- .../oreprocessing/ProcessingToolHeadSense.java | 19 +- .../oreprocessing/ProcessingToolHeadShovel.java | 19 +- .../oreprocessing/ProcessingToolHeadSword.java | 19 +- .../ProcessingToolHeadUniversalSpade.java | 19 +- .../oreprocessing/ProcessingToolHeadWrench.java | 44 +- .../oreprocessing/ProcessingTransforming.java | 62 +- .../loaders/oreprocessing/ProcessingWax.java | 20 +- .../loaders/oreprocessing/ProcessingWire01.java | 70 +- .../loaders/oreprocessing/ProcessingWire02.java | 57 +- .../loaders/oreprocessing/ProcessingWire04.java | 53 +- .../loaders/oreprocessing/ProcessingWire08.java | 53 +- .../loaders/oreprocessing/ProcessingWire12.java | 55 +- .../loaders/oreprocessing/ProcessingWire16.java | 29 +- .../loaders/postload/GT_BlockResistanceLoader.java | 79 +- .../loaders/postload/GT_BookAndLootLoader.java | 216 +- .../loaders/postload/GT_CraftingRecipeLoader.java | 1383 ++++---- .../gregtech/loaders/postload/GT_CropLoader.java | 119 +- .../postload/GT_ItemMaxStacksizeLoader.java | 136 +- .../loaders/postload/GT_MachineRecipeLoader.java | 2968 ++++++++-------- .../loaders/postload/GT_MinableRegistrator.java | 15 +- .../postload/GT_RecyclerBlacklistLoader.java | 84 +- .../loaders/postload/GT_ScrapboxDropLoader.java | 180 +- .../loaders/postload/GT_UUMRecipeLoader.java | 6 +- .../loaders/postload/GT_Worldgenloader.java | 243 +- .../preload/GT_Loader_CircuitBehaviors.java | 43 +- .../loaders/preload/GT_Loader_ItemData.java | 319 +- .../preload/GT_Loader_Item_Block_And_Fluid.java | 1281 ++++--- .../preload/GT_Loader_MetaTileEntities.java | 2548 +++++++------- .../loaders/preload/GT_Loader_OreDictionary.java | 377 +-- .../loaders/preload/GT_Loader_OreProcessing.java | 285 +- .../java/gregtech/nei/GT_NEI_DefaultHandler.java | 1558 ++++----- src/main/java/gregtech/nei/NEI_GT_Config.java | 42 +- 570 files changed, 65698 insertions(+), 66210 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/gregtech/GT_Mod.java b/src/main/java/gregtech/GT_Mod.java index ec7a6e2286..f81abdaba4 100644 --- a/src/main/java/gregtech/GT_Mod.java +++ b/src/main/java/gregtech/GT_Mod.java @@ -1,19 +1,7 @@ package gregtech; -import cpw.mods.fml.common.FMLLog; -import cpw.mods.fml.common.LoadController; -import cpw.mods.fml.common.Loader; -import cpw.mods.fml.common.Mod; -import cpw.mods.fml.common.Mod.EventHandler; -import cpw.mods.fml.common.Mod.Instance; -import cpw.mods.fml.common.ModContainer; -import cpw.mods.fml.common.SidedProxy; -import cpw.mods.fml.common.event.FMLInitializationEvent; -import cpw.mods.fml.common.event.FMLModIdMappingEvent; -import cpw.mods.fml.common.event.FMLPostInitializationEvent; -import cpw.mods.fml.common.event.FMLPreInitializationEvent; -import cpw.mods.fml.common.event.FMLServerStartedEvent; -import cpw.mods.fml.common.event.FMLServerStartingEvent; -import cpw.mods.fml.common.event.FMLServerStoppingEvent; + +import cpw.mods.fml.common.*; +import cpw.mods.fml.common.event.*; import cpw.mods.fml.common.registry.EntityRegistry; import forestry.factory.recipes.ISqueezerRecipe; import forestry.factory.tiles.TileCentrifuge; @@ -21,27 +9,11 @@ import forestry.factory.tiles.TileSqueezer; import gregtech.api.GregTech_API; import gregtech.api.enchants.Enchantment_EnderDamage; import gregtech.api.enchants.Enchantment_Radioactivity; -import gregtech.api.enums.ConfigCategories.Recipes; import gregtech.api.enums.*; -import gregtech.api.enums.Textures.BlockIcons; -import gregtech.api.enums.Textures.ItemIcons; import gregtech.api.interfaces.internal.IGT_Mod; -import gregtech.api.objects.GT_ItemStack; import gregtech.api.objects.ItemData; import gregtech.api.objects.MaterialStack; -import gregtech.api.util.GT_Config; -import gregtech.api.util.GT_ItsNotMyFaultException; -import gregtech.api.util.GT_LanguageManager; -import gregtech.api.util.GT_Log; -import gregtech.api.util.GT_Log.LogBuffer; -import gregtech.api.util.GT_ModHandler; -import gregtech.api.util.GT_ModHandler.RecipeBits; -import gregtech.api.util.GT_OreDictUnificator; -import gregtech.api.util.GT_Recipe; -import gregtech.api.util.GT_Recipe.GT_Recipe_Map; -import gregtech.api.util.GT_RecipeRegistrator; -import gregtech.api.util.GT_SpawnEventHandler; -import gregtech.api.util.GT_Utility; +import gregtech.api.util.*; import gregtech.common.GT_DummyWorld; import gregtech.common.GT_Network; import gregtech.common.GT_Proxy; @@ -54,936 +26,817 @@ import gregtech.loaders.load.GT_FuelLoader; import gregtech.loaders.load.GT_ItemIterator; import gregtech.loaders.load.GT_SonictronLoader; import gregtech.loaders.misc.GT_Achievements; -//import gregtech.loaders.misc.GT_BeeDefinition; -//import gregtech.loaders.misc.GT_Bees; import gregtech.loaders.misc.GT_Bees; import gregtech.loaders.misc.GT_CoverLoader; -import gregtech.loaders.postload.GT_BlockResistanceLoader; -import gregtech.loaders.postload.GT_BookAndLootLoader; -import gregtech.loaders.postload.GT_CraftingRecipeLoader; -import gregtech.loaders.postload.GT_CropLoader; -import gregtech.loaders.postload.GT_ItemMaxStacksizeLoader; -import gregtech.loaders.postload.GT_MachineRecipeLoader; -import gregtech.loaders.postload.GT_MinableRegistrator; -import gregtech.loaders.postload.GT_RecyclerBlacklistLoader; -import gregtech.loaders.postload.GT_ScrapboxDropLoader; -import gregtech.loaders.postload.GT_Worldgenloader; -import gregtech.loaders.preload.GT_Loader_CircuitBehaviors; -import gregtech.loaders.preload.GT_Loader_ItemData; -import gregtech.loaders.preload.GT_Loader_Item_Block_And_Fluid; -import gregtech.loaders.preload.GT_Loader_MetaTileEntities; -import gregtech.loaders.preload.GT_Loader_OreDictionary; -import gregtech.loaders.preload.GT_Loader_OreProcessing; -import ic2.api.recipe.ICannerBottleRecipeManager; -import ic2.api.recipe.IMachineRecipeManager; +import gregtech.loaders.postload.*; +import gregtech.loaders.preload.*; import ic2.api.recipe.IRecipeInput; import ic2.api.recipe.RecipeOutput; - -import java.io.File; -import java.io.FileNotFoundException; -import java.io.PrintStream; -import java.lang.reflect.Field; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Calendar; -import java.util.Collection; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Random; -import java.util.Set; - -import net.minecraft.block.Block; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Blocks; import net.minecraft.init.Items; -import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.item.crafting.CraftingManager; import net.minecraft.item.crafting.FurnaceRecipes; import net.minecraft.item.crafting.IRecipe; -import net.minecraft.stats.Achievement; import net.minecraft.util.WeightedRandomChestContent; import net.minecraft.world.World; import net.minecraft.world.biome.BiomeGenBase; import net.minecraftforge.common.ChestGenHooks; -import net.minecraftforge.common.ForgeVersion; import net.minecraftforge.common.config.Configuration; -import net.minecraftforge.common.config.Property; import net.minecraftforge.fluids.FluidContainerRegistry; -import net.minecraftforge.fluids.FluidContainerRegistry.FluidContainerData; import net.minecraftforge.fluids.FluidRegistry; import net.minecraftforge.fluids.FluidStack; import net.minecraftforge.oredict.OreDictionary; -@Mod(modid="gregtech", name="GregTech", version="MC1710", useMetadata=false, dependencies="required-after:IC2; after:Forestry; after:PFAAGeologica; after:Thaumcraft; after:Railcraft; after:appliedenergistics2; after:ThermalExpansion; after:TwilightForest; after:harvestcraft; after:magicalcrops; after:BuildCraft|Transport; after:BuildCraft|Silicon; after:BuildCraft|Factory; after:BuildCraft|Energy; after:BuildCraft|Core; after:BuildCraft|Builders; after:GalacticraftCore; after:GalacticraftMars; after:GalacticraftPlanets; after:ThermalExpansion|Transport; after:ThermalExpansion|Energy; after:ThermalExpansion|Factory; after:RedPowerCore; after:RedPowerBase; after:RedPowerMachine; after:RedPowerCompat; after:RedPowerWiring; after:RedPowerLogic; after:RedPowerLighting; after:RedPowerWorld; after:RedPowerControl;") +import java.io.File; +import java.io.FileNotFoundException; +import java.io.PrintStream; +import java.util.*; +import java.util.Map.Entry; + +//import gregtech.loaders.misc.GT_BeeDefinition; +//import gregtech.loaders.misc.GT_Bees; + +@Mod(modid = "gregtech", name = "GregTech", version = "MC1710", useMetadata = false, dependencies = "required-after:IC2; after:Forestry; after:PFAAGeologica; after:Thaumcraft; after:Railcraft; after:appliedenergistics2; after:ThermalExpansion; after:TwilightForest; after:harvestcraft; after:magicalcrops; after:BuildCraft|Transport; after:BuildCraft|Silicon; after:BuildCraft|Factory; after:BuildCraft|Energy; after:BuildCraft|Core; after:BuildCraft|Builders; after:GalacticraftCore; after:GalacticraftMars; after:GalacticraftPlanets; after:ThermalExpansion|Transport; after:ThermalExpansion|Energy; after:ThermalExpansion|Factory; after:RedPowerCore; after:RedPowerBase; after:RedPowerMachine; after:RedPowerCompat; after:RedPowerWiring; after:RedPowerLogic; after:RedPowerLighting; after:RedPowerWorld; after:RedPowerControl;") public class GT_Mod - implements IGT_Mod -{ - @Mod.Instance("gregtech") - public static GT_Mod instance; - @SidedProxy(modId="gregtech", clientSide="gregtech.common.GT_Client", serverSide="gregtech.common.GT_Server") - public static GT_Proxy gregtechproxy; - public static final int VERSION = 508; - public static final int REQUIRED_IC2 = 624; - public static int MAX_IC2 = 2147483647; - public static GT_Achievements achievements; - - static - { - if ((509 != GregTech_API.VERSION) || (509 != GT_ModHandler.VERSION) || (509 != GT_OreDictUnificator.VERSION) || (509 != GT_Recipe.VERSION) || (509 != GT_Utility.VERSION) || (509 != GT_RecipeRegistrator.VERSION) || (509 != Element.VERSION) || (509 != Materials.VERSION) || (509 != OrePrefixes.VERSION)) { - throw new GT_ItsNotMyFaultException("One of your Mods included GregTech-API Files inside it's download, mention this to the Mod Author, who does this bad thing, and tell him/her to use reflection. I have added a Version check, to prevent Authors from breaking my Mod that way."); - } - } - - public GT_Mod() - { - try - { - Class.forName("ic2.core.IC2").getField("enableOreDictCircuit").set(null, Boolean.valueOf(true)); - } - catch (Throwable e) {} - try - { - Class.forName("ic2.core.IC2").getField("enableCraftingBucket").set(null, Boolean.valueOf(false)); - } - catch (Throwable e) {} - try - { - Class.forName("ic2.core.IC2").getField("enableEnergyInStorageBlockItems").set(null, Boolean.valueOf(false)); - } - catch (Throwable e) {} - GT_Values.GT = this; - GT_Values.DW = new GT_DummyWorld(); - GT_Values.NW = new GT_Network(); - GregTech_API.sRecipeAdder = GT_Values.RA = new GT_RecipeAdder(); - - Textures.BlockIcons.VOID.name(); - Textures.ItemIcons.VOID.name(); - } - - @Mod.EventHandler - public void onPreLoad(FMLPreInitializationEvent aEvent) - { - if (GregTech_API.sPreloadStarted) { - return; - } - for (Runnable tRunnable : GregTech_API.sBeforeGTPreload) { - try - { - tRunnable.run(); - } - catch (Throwable e) - { - e.printStackTrace(GT_Log.err); - } - } - File tFile = new File(new File(aEvent.getModConfigurationDirectory(), "GregTech"), "GregTech.cfg"); - Configuration tMainConfig = new Configuration(tFile); - tMainConfig.load(); - tFile = new File(new File(aEvent.getModConfigurationDirectory(), "GregTech"), "IDs.cfg"); - GT_Config.sConfigFileIDs = new Configuration(tFile); - GT_Config.sConfigFileIDs.load(); - GT_Config.sConfigFileIDs.save(); - GregTech_API.sRecipeFile = new GT_Config(new Configuration(new File(new File(aEvent.getModConfigurationDirectory(), "GregTech"), "Recipes.cfg"))); - GregTech_API.sMachineFile = new GT_Config(new Configuration(new File(new File(aEvent.getModConfigurationDirectory(), "GregTech"), "MachineStats.cfg"))); - GregTech_API.sWorldgenFile = new GT_Config(new Configuration(new File(new File(aEvent.getModConfigurationDirectory(), "GregTech"), "WorldGeneration.cfg"))); - GregTech_API.sMaterialProperties = new GT_Config(new Configuration(new File(new File(aEvent.getModConfigurationDirectory(), "GregTech"), "MaterialProperties.cfg"))); - GregTech_API.sUnification = new GT_Config(new Configuration(new File(new File(aEvent.getModConfigurationDirectory(), "GregTech"), "Unification.cfg"))); - GregTech_API.sSpecialFile = new GT_Config(new Configuration(new File(new File(aEvent.getModConfigurationDirectory(), "GregTech"), "Other.cfg"))); - GregTech_API.sOPStuff = new GT_Config(new Configuration(new File(new File(aEvent.getModConfigurationDirectory(), "GregTech"), "OverpoweredStuff.cfg"))); - - GregTech_API.sClientDataFile = new GT_Config(new Configuration(new File(aEvent.getModConfigurationDirectory().getParentFile(), "GregTech.cfg"))); - - GT_Log.mLogFile = new File(aEvent.getModConfigurationDirectory().getParentFile(), "logs/GregTech.log"); - if (!GT_Log.mLogFile.exists()) { - try - { - GT_Log.mLogFile.createNewFile(); - } - catch (Throwable e) {} - } - try - { - GT_Log.out = GT_Log.err = new PrintStream(GT_Log.mLogFile); - } - catch (FileNotFoundException e) {} - GT_Log.mOreDictLogFile = new File(aEvent.getModConfigurationDirectory().getParentFile(), "logs/OreDict.log"); - if (!GT_Log.mOreDictLogFile.exists()) { - try - { - GT_Log.mOreDictLogFile.createNewFile(); - } - catch (Throwable e) {} - } - if (tMainConfig.get("general", "LoggingPlayerActivity", true).getBoolean(true)) - { - GT_Log.mPlayerActivityLogFile = new File(aEvent.getModConfigurationDirectory().getParentFile(), "logs/PlayerActivity.log"); - if (!GT_Log.mPlayerActivityLogFile.exists()) { - try - { - GT_Log.mPlayerActivityLogFile.createNewFile(); - } - catch (Throwable e) {} - } - try - { - GT_Log.pal = new PrintStream(GT_Log.mPlayerActivityLogFile); - } - catch (Throwable e) {} - } - try - { - List tList = ((GT_Log.LogBuffer)GT_Log.ore).mBufferedOreDictLog; - GT_Log.ore.println("******************************************************************************"); - GT_Log.ore.println("* This is the complete log of the GT5-Unofficial OreDictionary Handler. It *"); - GT_Log.ore.println("* processes all OreDictionary entries and can sometimes cause errors. All *"); - GT_Log.ore.println("* entries and errors are being logged. If you see an error please raise an *"); - GT_Log.ore.println("* issue at https://github.com/Blood-Asp/GT5-Unofficial. *"); - GT_Log.ore.println("******************************************************************************"); - String tString; - for (Iterator i$ = tList.iterator(); i$.hasNext(); GT_Log.ore.println(tString)) { - tString = (String)i$.next(); - } - } - catch (Throwable e) {} - gregtechproxy.onPreLoad(); - - GT_Log.out.println("GT_Mod: Setting Configs"); - GT_Values.D1 = tMainConfig.get("general", "Debug", false).getBoolean(false); - GT_Values.D2 = tMainConfig.get("general", "Debug2", false).getBoolean(false); - - GregTech_API.TICKS_FOR_LAG_AVERAGING = tMainConfig.get("general", "TicksForLagAveragingWithScanner", 25).getInt(25); - GregTech_API.MILLISECOND_THRESHOLD_UNTIL_LAG_WARNING = tMainConfig.get("general", "MillisecondsPassedInGTTileEntityUntilLagWarning", 100).getInt(100); - if (tMainConfig.get("general", "disable_STDOUT", false).getBoolean(false)) { - System.out.close(); - } - if (tMainConfig.get("general", "disable_STDERR", false).getBoolean(false)) { - System.err.close(); - } - GregTech_API.sMachineExplosions = tMainConfig.get("machines", "machines_explosion_damage", true).getBoolean(false); - GregTech_API.sMachineFlammable = tMainConfig.get("machines", "machines_flammable", true).getBoolean(false); - GregTech_API.sMachineNonWrenchExplosions = tMainConfig.get("machines", "explosions_on_nonwrenching", true).getBoolean(false); - GregTech_API.sMachineWireFire = tMainConfig.get("machines", "wirefire_on_explosion", true).getBoolean(false); - GregTech_API.sMachineFireExplosions = tMainConfig.get("machines", "fire_causes_explosions", true).getBoolean(false); - GregTech_API.sMachineRainExplosions = tMainConfig.get("machines", "rain_causes_explosions", true).getBoolean(false); - GregTech_API.sMachineThunderExplosions = tMainConfig.get("machines", "lightning_causes_explosions", true).getBoolean(false); - GregTech_API.sConstantEnergy = tMainConfig.get("machines", "constant_need_of_energy", true).getBoolean(false); - GregTech_API.sColoredGUI = tMainConfig.get("machines", "colored_guis_when_painted", true).getBoolean(false); - - GregTech_API.sTimber = tMainConfig.get("general", "timber_axe", false).getBoolean(false); - GregTech_API.sDrinksAlwaysDrinkable = tMainConfig.get("general", "drinks_always_drinkable", false).getBoolean(false); - GregTech_API.sDoShowAllItemsInCreative = tMainConfig.get("general", "show_all_metaitems_in_creative_and_NEI", false).getBoolean(false); - GregTech_API.sMultiThreadedSounds = tMainConfig.get("general", "sound_multi_threading", false).getBoolean(false); - for (Dyes tDye : Dyes.values()) { - if ((tDye != Dyes._NULL) && (tDye.mIndex < 0)) - { - tDye.mRGBa[0] = ((short)Math.min(255, Math.max(0, GregTech_API.sClientDataFile.get("ColorModulation." + tDye, "R", tDye.mRGBa[0])))); - tDye.mRGBa[1] = ((short)Math.min(255, Math.max(0, GregTech_API.sClientDataFile.get("ColorModulation." + tDye, "G", tDye.mRGBa[1])))); - tDye.mRGBa[2] = ((short)Math.min(255, Math.max(0, GregTech_API.sClientDataFile.get("ColorModulation." + tDye, "B", tDye.mRGBa[2])))); - } - } - gregtechproxy.mMaxEqualEntitiesAtOneSpot = tMainConfig.get("general", "MaxEqualEntitiesAtOneSpot", 3).getInt(3); - gregtechproxy.mSkeletonsShootGTArrows = tMainConfig.get("general", "SkeletonsShootGTArrows", 16).getInt(16); - gregtechproxy.mFlintChance = tMainConfig.get("general", "FlintAndSteelChance", 30).getInt(30); - gregtechproxy.mItemDespawnTime = tMainConfig.get("general", "ItemDespawnTime", 6000).getInt(6000); - gregtechproxy.mDisableVanillaOres = tMainConfig.get("general", "DisableVanillaOres", true).getBoolean(true); - gregtechproxy.mNerfDustCrafting = tMainConfig.get("general", "NerfDustCrafting", true).getBoolean(true); - gregtechproxy.mIncreaseDungeonLoot = tMainConfig.get("general", "IncreaseDungeonLoot", true).getBoolean(true); - gregtechproxy.mAxeWhenAdventure = tMainConfig.get("general", "AdventureModeStartingAxe", true).getBoolean(true); - gregtechproxy.mHardcoreCables = tMainConfig.get("general", "HardCoreCableLoss", false).getBoolean(false); - gregtechproxy.mSurvivalIntoAdventure = tMainConfig.get("general", "forceAdventureMode", false).getBoolean(false); - gregtechproxy.mHungerEffect = tMainConfig.get("general", "AFK_Hunger", false).getBoolean(false); - gregtechproxy.mHardRock = tMainConfig.get("general", "harderstone", false).getBoolean(false); - gregtechproxy.mInventoryUnification = tMainConfig.get("general", "InventoryUnification", true).getBoolean(true); - gregtechproxy.mGTBees = tMainConfig.get("general", "GTBees", true).getBoolean(true); - gregtechproxy.mCraftingUnification = tMainConfig.get("general", "CraftingUnification", true).getBoolean(true); - gregtechproxy.mNerfedWoodPlank = tMainConfig.get("general", "WoodNeedsSawForCrafting", true).getBoolean(true); - gregtechproxy.mNerfedVanillaTools = tMainConfig.get("general", "smallerVanillaToolDurability", true).getBoolean(true); - gregtechproxy.mSortToTheEnd = tMainConfig.get("general", "EnsureToBeLoadedLast", true).getBoolean(true); - gregtechproxy.mDisableIC2Cables = tMainConfig.get("general", "DisableIC2Cables", true).getBoolean(true); - gregtechproxy.mAchievements = tMainConfig.get("general", "EnableAchievements", true).getBoolean(true); - gregtechproxy.mAE2Integration = tMainConfig.get("general", "EnableAE2Integration", Loader.isModLoaded("appliedenergistics2")).getBoolean(Loader.isModLoaded("appliedenergistics2")); - - - GregTech_API.mOutputRF =GregTech_API.sOPStuff.get(ConfigCategories.general, "OutputRF", true); - GregTech_API.mInputRF =GregTech_API.sOPStuff.get(ConfigCategories.general, "InputRF", false); - GregTech_API.mEUtoRF = GregTech_API.sOPStuff.get(ConfigCategories.general, "100EUtoRF", 360); - GregTech_API.mRFtoEU = GregTech_API.sOPStuff.get(ConfigCategories.general, "100RFtoEU", 20); - GregTech_API.mRFExplosions = GregTech_API.sOPStuff.get(ConfigCategories.general, "RFExplosions", false); - GregTech_API.meIOLoaded = Loader.isModLoaded("EnderIO"); - - if (tMainConfig.get("general", "hardermobspawners", true).getBoolean(true)) { - Blocks.mob_spawner.setHardness(500.0F).setResistance(6000000.0F); - } - gregtechproxy.mOnline = tMainConfig.get("general", "online", true).getBoolean(false); - - gregtechproxy.mUpgradeCount = Math.min(64, Math.max(1, tMainConfig.get("features", "UpgradeStacksize", 4).getInt())); - for (OrePrefixes tPrefix : OrePrefixes.values()) { - if (tPrefix.mIsUsedForOreProcessing) { - tPrefix.mDefaultStackSize = ((byte)Math.min(64, Math.max(1, tMainConfig.get("features", "MaxOreStackSize", 64).getInt()))); - } else if (tPrefix == OrePrefixes.plank) { - tPrefix.mDefaultStackSize = ((byte)Math.min(64, Math.max(16, tMainConfig.get("features", "MaxPlankStackSize", 64).getInt()))); - } else if ((tPrefix == OrePrefixes.wood) || (tPrefix == OrePrefixes.treeLeaves) || (tPrefix == OrePrefixes.treeSapling) || (tPrefix == OrePrefixes.log)) { - tPrefix.mDefaultStackSize = ((byte)Math.min(64, Math.max(16, tMainConfig.get("features", "MaxLogStackSize", 64).getInt()))); - } else if (tPrefix.mIsUsedForBlocks) { - tPrefix.mDefaultStackSize = ((byte)Math.min(64, Math.max(16, tMainConfig.get("features", "MaxOtherBlockStackSize", 64).getInt()))); - } - } - //GT_Config.troll = (Calendar.getInstance().get(2) + 1 == 4) && (Calendar.getInstance().get(5) >= 1) && (Calendar.getInstance().get(5) <= 2); - - Materials.init(GregTech_API.sMaterialProperties); - - GT_Log.out.println("GT_Mod: Saving Main Config"); - tMainConfig.save(); - - GT_Log.out.println("GT_Mod: Generating Lang-File"); - GT_LanguageManager.sEnglishFile = new Configuration(new File(aEvent.getModConfigurationDirectory().getParentFile(), "GregTech.lang")); - GT_LanguageManager.sEnglishFile.load(); - - GT_Log.out.println("GT_Mod: Removing all original Scrapbox Drops."); - try - { - GT_Utility.getField("ic2.core.item.ItemScrapbox$Drop", "topChance", true, true).set(null, Integer.valueOf(0)); - ((List)GT_Utility.getFieldContent(GT_Utility.getFieldContent("ic2.api.recipe.Recipes", "scrapboxDrops", true, true), "drops", true, true)).clear(); - } - catch (Throwable e) - { - if (GT_Values.D1) { - e.printStackTrace(GT_Log.err); - } - } - GT_Log.out.println("GT_Mod: Adding Scrap with a Weight of 200.0F to the Scrapbox Drops."); - GT_ModHandler.addScrapboxDrop(200.0F, GT_ModHandler.getIC2Item("scrap", 1L)); - - EntityRegistry.registerModEntity(GT_Entity_Arrow.class, "GT_Entity_Arrow", 1, GT_Values.GT, 160, 1, true); - EntityRegistry.registerModEntity(GT_Entity_Arrow_Potion.class, "GT_Entity_Arrow_Potion", 2, GT_Values.GT, 160, 1, true); - - new Enchantment_EnderDamage(); - new Enchantment_Radioactivity(); - - new GT_Loader_OreProcessing().run(); - new GT_Loader_OreDictionary().run(); - new GT_Loader_ItemData().run(); - new GT_Loader_Item_Block_And_Fluid().run(); - new GT_Loader_MetaTileEntities().run(); - - new GT_Loader_CircuitBehaviors().run(); - new GT_CoverBehaviorLoader().run(); - new GT_SonictronLoader().run(); - new GT_SpawnEventHandler(); - if (GregTech_API.sRecipeFile.get(ConfigCategories.Recipes.gregtechrecipes, "SolarPanel", true)) { - GT_ModHandler.addCraftingRecipe(ItemList.Cover_SolarPanel.get(1L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "SGS", "CPC", Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Basic), Character.valueOf('G'), new ItemStack(Blocks.glass_pane, 1), Character.valueOf('P'), OrePrefixes.plateAlloy.get(Materials.Carbon), Character.valueOf('S'), OrePrefixes.plate.get(Materials.Silicon) }); - } - if (GregTech_API.sOPStuff.get(ConfigCategories.Recipes.gregtechrecipes, "SolarPanel8V", false)) { - GT_ModHandler.addCraftingRecipe(ItemList.Cover_SolarPanel_8V.get(1L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "SSS", "STS", "SSS", Character.valueOf('S'), ItemList.Cover_SolarPanel, Character.valueOf('T'), OrePrefixes.circuit.get(Materials.Advanced) }); - } - if (GregTech_API.sOPStuff.get(ConfigCategories.Recipes.gregtechrecipes, "SolarPanelLV", false)) { - GT_ModHandler.addCraftingRecipe(ItemList.Cover_SolarPanel_LV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " S ", "STS", " S ", Character.valueOf('S'), ItemList.Cover_SolarPanel_8V, Character.valueOf('T'), ItemList.Transformer_LV_ULV }); - } - if (GregTech_API.sOPStuff.get(ConfigCategories.Recipes.gregtechrecipes, "SolarPanelMV", false)) { - GT_ModHandler.addCraftingRecipe(ItemList.Cover_SolarPanel_MV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " S ", "STS", " S ", Character.valueOf('S'), ItemList.Cover_SolarPanel_LV, Character.valueOf('T'), ItemList.Transformer_MV_LV }); - } - if (GregTech_API.sOPStuff.get(ConfigCategories.Recipes.gregtechrecipes, "SolarPanelHV", false)) { - GT_ModHandler.addCraftingRecipe(ItemList.Cover_SolarPanel_HV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " S ", "STS", " S ", Character.valueOf('S'), ItemList.Cover_SolarPanel_MV, Character.valueOf('T'), ItemList.Transformer_HV_MV }); - } - if (GregTech_API.sOPStuff.get(ConfigCategories.Recipes.gregtechrecipes, "SolarPanelEV", false)) { - GT_ModHandler.addCraftingRecipe(ItemList.Cover_SolarPanel_EV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " S ", "STS", " S ", Character.valueOf('S'), ItemList.Cover_SolarPanel_HV, Character.valueOf('T'), ItemList.Transformer_EV_HV }); - } - if (GregTech_API.sOPStuff.get(ConfigCategories.Recipes.gregtechrecipes, "SolarPanelIV", false)) { - GT_ModHandler.addCraftingRecipe(ItemList.Cover_SolarPanel_IV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " S ", "STS", " S ", Character.valueOf('S'), ItemList.Cover_SolarPanel_EV, Character.valueOf('T'), ItemList.Transformer_IV_EV }); + implements IGT_Mod { + public static final int VERSION = 508; + public static final int REQUIRED_IC2 = 624; + @Mod.Instance("gregtech") + public static GT_Mod instance; + @SidedProxy(modId = "gregtech", clientSide = "gregtech.common.GT_Client", serverSide = "gregtech.common.GT_Server") + public static GT_Proxy gregtechproxy; + public static int MAX_IC2 = 2147483647; + public static GT_Achievements achievements; + + static { + if ((509 != GregTech_API.VERSION) || (509 != GT_ModHandler.VERSION) || (509 != GT_OreDictUnificator.VERSION) || (509 != GT_Recipe.VERSION) || (509 != GT_Utility.VERSION) || (509 != GT_RecipeRegistrator.VERSION) || (509 != Element.VERSION) || (509 != Materials.VERSION) || (509 != OrePrefixes.VERSION)) { + throw new GT_ItsNotMyFaultException("One of your Mods included GregTech-API Files inside it's download, mention this to the Mod Author, who does this bad thing, and tell him/her to use reflection. I have added a Version check, to prevent Authors from breaking my Mod that way."); + } } - if (GregTech_API.sOPStuff.get(ConfigCategories.Recipes.gregtechrecipes, "SolarPanelLuV", false)) { - GT_ModHandler.addCraftingRecipe(ItemList.Cover_SolarPanel_LuV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " S ", "STS", " S ", Character.valueOf('S'), ItemList.Cover_SolarPanel_IV, Character.valueOf('T'), ItemList.Transformer_LuV_IV }); + + public GT_Mod() { + try { + Class.forName("ic2.core.IC2").getField("enableOreDictCircuit").set(null, Boolean.valueOf(true)); + } catch (Throwable e) { + } + try { + Class.forName("ic2.core.IC2").getField("enableCraftingBucket").set(null, Boolean.valueOf(false)); + } catch (Throwable e) { + } + try { + Class.forName("ic2.core.IC2").getField("enableEnergyInStorageBlockItems").set(null, Boolean.valueOf(false)); + } catch (Throwable e) { + } + GT_Values.GT = this; + GT_Values.DW = new GT_DummyWorld(); + GT_Values.NW = new GT_Network(); + GregTech_API.sRecipeAdder = GT_Values.RA = new GT_RecipeAdder(); + + Textures.BlockIcons.VOID.name(); + Textures.ItemIcons.VOID.name(); } - if (GregTech_API.sOPStuff.get(ConfigCategories.Recipes.gregtechrecipes, "SolarPanelZPM", false)) { - GT_ModHandler.addCraftingRecipe(ItemList.Cover_SolarPanel_ZPM.get(1L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " S ", "STS", " S ", Character.valueOf('S'), ItemList.Cover_SolarPanel_LuV, Character.valueOf('T'), ItemList.Transformer_ZPM_LuV }); + + @Mod.EventHandler + public void onPreLoad(FMLPreInitializationEvent aEvent) { + if (GregTech_API.sPreloadStarted) { + return; + } + for (Runnable tRunnable : GregTech_API.sBeforeGTPreload) { + try { + tRunnable.run(); + } catch (Throwable e) { + e.printStackTrace(GT_Log.err);