From a1504799f44ba2debdfef06317f24e7f9c1129d6 Mon Sep 17 00:00:00 2001 From: aerospark Date: Tue, 23 Jun 2015 15:29:05 -0700 Subject: strip linenumbers --- main/java/gregtech/GT_Mod.java | 2112 +++++++++--------- .../interfaces/tileentity/IGregTechTileEntity.java | 4 +- main/java/gregtech/common/GT_Client.java | 16 +- main/java/gregtech/common/GT_DummyWorld.java | 290 +-- main/java/gregtech/common/GT_IteratorRandom.java | 36 +- .../gregtech/common/GT_MinableOreGenerator.java | 158 +- main/java/gregtech/common/GT_Network.java | 226 +- .../gregtech/common/GT_PlayerActivityLogger.java | 72 +- main/java/gregtech/common/GT_RecipeAdder.java | 1310 +++++------ main/java/gregtech/common/GT_Server.java | 72 +- .../gregtech/common/GT_Worldgen_GT_Ore_Layer.java | 182 +- .../common/GT_Worldgen_GT_Ore_SmallPieces.java | 98 +- main/java/gregtech/common/GT_Worldgen_Stone.java | 182 +- main/java/gregtech/common/GT_Worldgenerator.java | 260 +-- .../gregtech/common/blocks/GT_Block_Casings1.java | 178 +- .../gregtech/common/blocks/GT_Block_Casings2.java | 202 +- .../gregtech/common/blocks/GT_Block_Casings3.java | 184 +- .../gregtech/common/blocks/GT_Block_Casings4.java | 148 +- .../common/blocks/GT_Block_Casings_Abstract.java | 280 +-- .../gregtech/common/blocks/GT_Block_Concretes.java | 208 +- .../gregtech/common/blocks/GT_Block_Granites.java | 160 +- .../gregtech/common/blocks/GT_Block_Machines.java | 1142 +++++----- .../java/gregtech/common/blocks/GT_Block_Ores.java | 522 ++--- .../common/blocks/GT_Block_Stones_Abstract.java | 350 +-- .../gregtech/common/blocks/GT_Item_Casings1.java | 58 +- .../gregtech/common/blocks/GT_Item_Casings2.java | 50 +- .../gregtech/common/blocks/GT_Item_Casings3.java | 24 +- .../gregtech/common/blocks/GT_Item_Casings4.java | 24 +- .../common/blocks/GT_Item_Casings_Abstract.java | 90 +- .../gregtech/common/blocks/GT_Item_Concretes.java | 48 +- .../gregtech/common/blocks/GT_Item_Granites.java | 24 +- .../gregtech/common/blocks/GT_Item_Machines.java | 332 +-- main/java/gregtech/common/blocks/GT_Item_Ores.java | 108 +- .../common/blocks/GT_Item_Stones_Abstract.java | 82 +- .../common/blocks/GT_Material_Casings.java | 42 +- .../common/blocks/GT_Material_Machines.java | 42 +- .../gregtech/common/blocks/GT_Packet_Ores.java | 136 +- .../gregtech/common/blocks/GT_TileEntity_Ores.java | 488 ++-- main/java/gregtech/common/covers/GT_Cover_Arm.java | 224 +- .../common/covers/GT_Cover_Blastproof.java | 50 +- .../common/covers/GT_Cover_ControlsWork.java | 150 +- .../gregtech/common/covers/GT_Cover_Conveyor.java | 266 +-- .../gregtech/common/covers/GT_Cover_Crafting.java | 70 +- .../gregtech/common/covers/GT_Cover_DoesWork.java | 188 +- .../gregtech/common/covers/GT_Cover_Drain.java | 216 +- .../gregtech/common/covers/GT_Cover_EUMeter.java | 276 +-- .../common/covers/GT_Cover_EnergyOnly.java | 204 +- .../gregtech/common/covers/GT_Cover_ItemMeter.java | 186 +- .../java/gregtech/common/covers/GT_Cover_Lens.java | 40 +- .../common/covers/GT_Cover_LiquidMeter.java | 194 +- .../common/covers/GT_Cover_NeedMaintainance.java | 148 +- .../common/covers/GT_Cover_PlayerDetector.java | 106 +- .../java/gregtech/common/covers/GT_Cover_Pump.java | 374 ++-- .../common/covers/GT_Cover_RedstoneConductor.java | 168 +- .../covers/GT_Cover_RedstoneReceiverExternal.java | 50 +- .../covers/GT_Cover_RedstoneReceiverInternal.java | 48 +- .../common/covers/GT_Cover_RedstoneSignalizer.java | 162 +- .../GT_Cover_RedstoneTransmitterExternal.java | 50 +- .../GT_Cover_RedstoneTransmitterInternal.java | 50 +- .../covers/GT_Cover_RedstoneWirelessBase.java | 196 +- .../gregtech/common/covers/GT_Cover_Screen.java | 160 +- .../gregtech/common/covers/GT_Cover_Shutter.java | 92 +- .../common/covers/GT_Cover_SolarPanel.java | 82 +- .../java/gregtech/common/covers/GT_Cover_Vent.java | 80 +- .../gregtech/common/entities/GT_Entity_Arrow.java | 782 +++---- .../common/entities/GT_Entity_Arrow_Potion.java | 142 +- .../gregtech/common/gui/GT_Container_Boiler.java | 182 +- .../gui/GT_Container_BronzeBlastFurnace.java | 68 +- .../common/gui/GT_Container_ChestBuffer.java | 176 +- .../gregtech/common/gui/GT_Container_Filter.java | 286 +-- .../common/gui/GT_Container_Regulator.java | 348 +-- .../common/gui/GT_Container_SuperBuffer.java | 166 +- .../common/gui/GT_Container_TypeFilter.java | 246 +-- .../common/gui/GT_GUIContainer_Boiler.java | 94 +- .../gui/GT_GUIContainer_BronzeBlastFurnace.java | 66 +- .../common/gui/GT_GUIContainer_ChestBuffer.java | 44 +- .../common/gui/GT_GUIContainer_Filter.java | 44 +- .../common/gui/GT_GUIContainer_Regulator.java | 72 +- .../common/gui/GT_GUIContainer_SuperBuffer.java | 44 +- .../common/gui/GT_GUIContainer_TypeFilter.java | 44 +- .../gregtech/common/items/GT_FluidDisplayItem.java | 204 +- .../common/items/GT_IntegratedCircuit_Item.java | 250 +-- .../common/items/GT_MetaGenerated_Item_01.java | 1684 +++++++------- .../common/items/GT_MetaGenerated_Item_02.java | 894 ++++---- .../common/items/GT_MetaGenerated_Item_03.java | 44 +- .../common/items/GT_MetaGenerated_Tool_01.java | 338 +-- .../gregtech/common/items/GT_SensorCard_Item.java | 202 +- .../common/items/behaviors/Behaviour_Arrow.java | 258 +-- .../items/behaviors/Behaviour_Arrow_Potion.java | 132 +- .../common/items/behaviors/Behaviour_Crowbar.java | 126 +- .../common/items/behaviors/Behaviour_DataOrb.java | 230 +- .../items/behaviors/Behaviour_DataStick.java | 74 +- .../common/items/behaviors/Behaviour_Hoe.java | 136 +- .../common/items/behaviors/Behaviour_Lighter.java | 274 +-- .../common/items/behaviors/Behaviour_None.java | 164 +- .../behaviors/Behaviour_Plunger_Essentia.java | 106 +- .../items/behaviors/Behaviour_Plunger_Fluid.java | 112 +- .../items/behaviors/Behaviour_Plunger_Item.java | 152 +- .../items/behaviors/Behaviour_PrintedPages.java | 80 +- .../items/behaviors/Behaviour_Prospecting.java | 286 +-- .../common/items/behaviors/Behaviour_Scanner.java | 88 +- .../common/items/behaviors/Behaviour_Scoop.java | 114 +- .../items/behaviors/Behaviour_Screwdriver.java | 112 +- .../common/items/behaviors/Behaviour_Sense.java | 106 +- .../items/behaviors/Behaviour_SensorKit.java | 104 +- .../items/behaviors/Behaviour_SoftHammer.java | 250 +-- .../items/behaviors/Behaviour_Sonictron.java | 282 +-- .../items/behaviors/Behaviour_Spray_Color.java | 274 +-- .../items/behaviors/Behaviour_WrittenBook.java | 76 +- .../redstonecircuits/GT_Circuit_BasicLogic.java | 214 +- .../common/redstonecircuits/GT_Circuit_BitAnd.java | 158 +- .../GT_Circuit_CombinationLock.java | 234 +- .../common/redstonecircuits/GT_Circuit_Equals.java | 146 +- .../common/redstonecircuits/GT_Circuit_Pulser.java | 186 +- .../redstonecircuits/GT_Circuit_Randomizer.java | 188 +- .../redstonecircuits/GT_Circuit_RedstoneMeter.java | 194 +- .../redstonecircuits/GT_Circuit_Repeater.java | 194 +- .../common/redstonecircuits/GT_Circuit_Timer.java | 248 +-- .../gregtech/common/render/GT_CapeRenderer.java | 202 +- .../render/GT_MetaGenerated_Item_Renderer.java | 368 +-- .../render/GT_MetaGenerated_Tool_Renderer.java | 416 ++-- .../java/gregtech/common/render/GT_RenderUtil.java | 72 +- .../common/render/GT_Renderer_Entity_Arrow.java | 46 +- .../automation/GT_MetaTileEntity_ChestBuffer.java | 148 +- .../automation/GT_MetaTileEntity_Filter.java | 174 +- .../automation/GT_MetaTileEntity_Regulator.java | 208 +- .../automation/GT_MetaTileEntity_SuperBuffer.java | 88 +- .../automation/GT_MetaTileEntity_TypeFilter.java | 260 +-- .../boilers/GT_MetaTileEntity_Boiler_Lava.java | 318 +-- .../boilers/GT_MetaTileEntity_Boiler_Solar.java | 292 +-- .../boilers/GT_MetaTileEntity_Boiler_Steel.java | 350 +-- .../GT_MetaTileEntity_DieselGenerator.java | 224 +- .../GT_MetaTileEntity_FluidNaquadahReactor.java | 196 +- .../generators/GT_MetaTileEntity_GasTurbine.java | 198 +- .../GT_MetaTileEntity_MagicEnergyConverter.java | 194 +- .../GT_MetaTileEntity_MagicalEnergyAbsorber.java | 194 +- .../GT_MetaTileEntity_PlasmaGenerator.java | 194 +- .../GT_MetaTileEntity_SolidNaquadahReactor.java | 196 +- .../generators/GT_MetaTileEntity_SteamTurbine.java | 222 +- .../GT_MetaTileEntity_BasicHull_Bronze.java | 80 +- .../GT_MetaTileEntity_BasicHull_BronzeBricks.java | 80 +- .../GT_MetaTileEntity_BasicHull_Steel.java | 80 +- .../GT_MetaTileEntity_BasicHull_SteelBricks.java | 80 +- .../basic/GT_MetaTileEntity_Boxinator.java | 184 +- .../basic/GT_MetaTileEntity_Disassembler.java | 128 +- .../basic/GT_MetaTileEntity_Massfabricator.java | 152 +- .../basic/GT_MetaTileEntity_PotionBrewer.java | 314 +-- .../machines/basic/GT_MetaTileEntity_Printer.java | 124 +- .../basic/GT_MetaTileEntity_Replicator.java | 232 +- .../basic/GT_MetaTileEntity_RockBreaker.java | 160 +- .../machines/basic/GT_MetaTileEntity_Scanner.java | 400 ++-- .../GT_MetaTileEntity_BronzeBlastFurnace.java | 798 +++---- .../multi/GT_MetaTileEntity_DistillationTower.java | 326 +-- .../GT_MetaTileEntity_ElectricBlastFurnace.java | 480 ++-- .../multi/GT_MetaTileEntity_FusionComputer.java | 296 +-- .../multi/GT_MetaTileEntity_HeatExchanger.java | 300 +-- .../GT_MetaTileEntity_ImplosionCompressor.java | 342 +-- .../multi/GT_MetaTileEntity_LargeBoiler.java | 484 ++-- .../GT_MetaTileEntity_LargeBoiler_Bronze.java | 150 +- .../multi/GT_MetaTileEntity_LargeBoiler_Steel.java | 150 +- .../GT_MetaTileEntity_LargeBoiler_Titanium.java | 150 +- ...T_MetaTileEntity_LargeBoiler_TungstenSteel.java | 150 +- .../multi/GT_MetaTileEntity_MultiFurnace.java | 370 ++-- .../multi/GT_MetaTileEntity_ProcessingArray.java | 232 +- .../multi/GT_MetaTileEntity_VacuumFreezer.java | 332 +-- .../GT_MetaTileEntity_AlloySmelter_Bronze.java | 226 +- .../GT_MetaTileEntity_AlloySmelter_Steel.java | 226 +- .../steam/GT_MetaTileEntity_Compressor_Bronze.java | 216 +- .../steam/GT_MetaTileEntity_Compressor_Steel.java | 216 +- .../steam/GT_MetaTileEntity_Extractor_Bronze.java | 216 +- .../steam/GT_MetaTileEntity_Extractor_Steel.java | 216 +- .../GT_MetaTileEntity_ForgeHammer_Bronze.java | 226 +- .../steam/GT_MetaTileEntity_ForgeHammer_Steel.java | 226 +- .../steam/GT_MetaTileEntity_Furnace_Bronze.java | 216 +- .../steam/GT_MetaTileEntity_Furnace_Steel.java | 216 +- .../steam/GT_MetaTileEntity_Macerator_Steel.java | 240 +- .../storage/GT_MetaTileEntity_Locker.java | 384 ++-- main/java/gregtech/common/tools/GT_Tool.java | 334 +-- main/java/gregtech/common/tools/GT_Tool_Axe.java | 286 +-- .../common/tools/GT_Tool_BranchCutter.java | 192 +- .../common/tools/GT_Tool_ButcheryKnife.java | 196 +- .../gregtech/common/tools/GT_Tool_BuzzSaw.java | 156 +- .../gregtech/common/tools/GT_Tool_Chainsaw_HV.java | 108 +- .../gregtech/common/tools/GT_Tool_Chainsaw_LV.java | 210 +- .../gregtech/common/tools/GT_Tool_Chainsaw_MV.java | 108 +- .../gregtech/common/tools/GT_Tool_Crowbar.java | 284 +-- .../gregtech/common/tools/GT_Tool_Drill_HV.java | 118 +- .../gregtech/common/tools/GT_Tool_Drill_LV.java | 256 +-- .../gregtech/common/tools/GT_Tool_Drill_MV.java | 112 +- main/java/gregtech/common/tools/GT_Tool_File.java | 242 +- .../gregtech/common/tools/GT_Tool_HardHammer.java | 364 +-- main/java/gregtech/common/tools/GT_Tool_Hoe.java | 256 +-- .../gregtech/common/tools/GT_Tool_JackHammer.java | 226 +- main/java/gregtech/common/tools/GT_Tool_Knife.java | 116 +- .../java/gregtech/common/tools/GT_Tool_Mortar.java | 242 +- .../gregtech/common/tools/GT_Tool_Pickaxe.java | 254 +-- main/java/gregtech/common/tools/GT_Tool_Plow.java | 156 +- .../gregtech/common/tools/GT_Tool_Plunger.java | 174 +- .../gregtech/common/tools/GT_Tool_RollingPin.java | 128 +- main/java/gregtech/common/tools/GT_Tool_Saw.java | 276 +-- main/java/gregtech/common/tools/GT_Tool_Scoop.java | 262 +-- .../gregtech/common/tools/GT_Tool_Screwdriver.java | 282 +-- .../common/tools/GT_Tool_Screwdriver_LV.java | 62 +- main/java/gregtech/common/tools/GT_Tool_Sense.java | 154 +- .../java/gregtech/common/tools/GT_Tool_Shovel.java | 232 +- .../gregtech/common/tools/GT_Tool_SoftHammer.java | 270 +-- .../common/tools/GT_Tool_Soldering_Iron.java | 230 +- main/java/gregtech/common/tools/GT_Tool_Sword.java | 238 +- .../common/tools/GT_Tool_UniversalSpade.java | 266 +-- .../gregtech/common/tools/GT_Tool_WireCutter.java | 232 +- .../java/gregtech/common/tools/GT_Tool_Wrench.java | 282 +-- .../gregtech/common/tools/GT_Tool_Wrench_HV.java | 132 +- .../gregtech/common/tools/GT_Tool_Wrench_LV.java | 146 +- .../gregtech/common/tools/GT_Tool_Wrench_MV.java | 132 +- .../loaders/load/GT_CoverBehaviorLoader.java | 26 +- main/java/gregtech/loaders/load/GT_FuelLoader.java | 70 +- .../gregtech/loaders/load/GT_SonictronLoader.java | 320 +-- .../java/gregtech/loaders/misc/GT_CoverLoader.java | 50 +- .../loaders/oreprocessing/ProcessingAll.java | 38 +- .../loaders/oreprocessing/ProcessingArrows.java | 86 +- .../loaders/oreprocessing/ProcessingBattery.java | 50 +- .../loaders/oreprocessing/ProcessingBeans.java | 42 +- .../loaders/oreprocessing/ProcessingBlock.java | 134 +- .../loaders/oreprocessing/ProcessingBolt.java | 44 +- .../loaders/oreprocessing/ProcessingCell.java | 204 +- .../oreprocessing/ProcessingCellPlasma.java | 54 +- .../loaders/oreprocessing/ProcessingCircuit.java | 68 +- .../oreprocessing/ProcessingCompressed.java | 52 +- .../loaders/oreprocessing/ProcessingCrafting.java | 122 +- .../loaders/oreprocessing/ProcessingCrop.java | 102 +- .../ProcessingCrushedCentrifuged.java | 46 +- .../oreprocessing/ProcessingCrushedPurified.java | 48 +- .../oreprocessing/ProcessingCrystallized.java | 48 +- .../loaders/oreprocessing/ProcessingDirty.java | 72 +- .../loaders/oreprocessing/ProcessingDust.java | 282 +-- .../oreprocessing/ProcessingDustImpure.java | 130 +- .../loaders/oreprocessing/ProcessingDustSmall.java | 68 +- .../loaders/oreprocessing/ProcessingDustTiny.java | 78 +- .../loaders/oreprocessing/ProcessingDye.java | 68 +- .../loaders/oreprocessing/ProcessingFoil.java | 42 +- .../loaders/oreprocessing/ProcessingFood.java | 78 +- .../loaders/oreprocessing/ProcessingGear.java | 48 +- .../loaders/oreprocessing/ProcessingGearSmall.java | 44 +- .../loaders/oreprocessing/ProcessingGem.java | 112 +- .../oreprocessing/ProcessingGemChipped.java | 46 +- .../oreprocessing/ProcessingGemExquisite.java | 48 +- .../loaders/oreprocessing/ProcessingGemFlawed.java | 48 +- .../oreprocessing/ProcessingGemFlawless.java | 48 +- .../loaders/oreprocessing/ProcessingIngot1.java | 126 +- .../loaders/oreprocessing/ProcessingIngot2.java | 50 +- .../loaders/oreprocessing/ProcessingIngot3.java | 50 +- .../loaders/oreprocessing/ProcessingIngot4.java | 48 +- .../loaders/oreprocessing/ProcessingIngot5.java | 48 +- .../loaders/oreprocessing/ProcessingIngotHot.java | 42 +- .../loaders/oreprocessing/ProcessingItem.java | 140 +- .../loaders/oreprocessing/ProcessingLeaves.java | 30 +- .../loaders/oreprocessing/ProcessingLens.java | 46 +- .../loaders/oreprocessing/ProcessingLog.java | 170 +- .../loaders/oreprocessing/ProcessingNugget.java | 62 +- .../loaders/oreprocessing/ProcessingOre.java | 236 +- .../loaders/oreprocessing/ProcessingOrePoor.java | 72 +- .../oreprocessing/ProcessingOreSmelting.java | 84 +- .../loaders/oreprocessing/ProcessingPipeLarge.java | 50 +- .../oreprocessing/ProcessingPipeMedium.java | 50 +- .../oreprocessing/ProcessingPipeRestrictive.java | 42 +- .../loaders/oreprocessing/ProcessingPipeSmall.java | 50 +- .../loaders/oreprocessing/ProcessingPlank.java | 118 +- .../loaders/oreprocessing/ProcessingPlate1.java | 134 +- .../loaders/oreprocessing/ProcessingPlate2.java | 70 +- .../loaders/oreprocessing/ProcessingPlate3.java | 72 +- .../loaders/oreprocessing/ProcessingPlate4.java | 64 +- .../loaders/oreprocessing/ProcessingPlate5.java | 62 +- .../loaders/oreprocessing/ProcessingPlate9.java | 46 +- .../oreprocessing/ProcessingPlateAlloy.java | 66 +- .../loaders/oreprocessing/ProcessingPure.java | 50 +- .../loaders/oreprocessing/ProcessingRecycling.java | 42 +- .../loaders/oreprocessing/ProcessingSand.java | 54 +- .../loaders/oreprocessing/ProcessingSaplings.java | 46 +- .../loaders/oreprocessing/ProcessingShaping.java | 214 +- .../loaders/oreprocessing/ProcessingSlab.java | 46 +- .../loaders/oreprocessing/ProcessingStick.java | 52 +- .../loaders/oreprocessing/ProcessingStickLong.java | 50 +- .../loaders/oreprocessing/ProcessingStone.java | 144 +- .../oreprocessing/ProcessingStoneCobble.java | 56 +- .../oreprocessing/ProcessingStoneVarious.java | 64 +- .../oreprocessing/ProcessingToolHeadArrow.java | 44 +- .../oreprocessing/ProcessingToolHeadAxe.java | 40 +- .../oreprocessing/ProcessingToolHeadBuzzSaw.java | 48 +- .../oreprocessing/ProcessingToolHeadChainsaw.java | 60 +- .../oreprocessing/ProcessingToolHeadDrill.java | 68 +- .../oreprocessing/ProcessingToolHeadFile.java | 50 +- .../oreprocessing/ProcessingToolHeadHammer.java | 82 +- .../oreprocessing/ProcessingToolHeadHoe.java | 40 +- .../oreprocessing/ProcessingToolHeadPickaxe.java | 40 +- .../oreprocessing/ProcessingToolHeadPlow.java | 40 +- .../oreprocessing/ProcessingToolHeadSaw.java | 40 +- .../oreprocessing/ProcessingToolHeadSense.java | 40 +- .../oreprocessing/ProcessingToolHeadShovel.java | 40 +- .../oreprocessing/ProcessingToolHeadSword.java | 40 +- .../ProcessingToolHeadUniversalSpade.java | 42 +- .../oreprocessing/ProcessingToolHeadWrench.java | 68 +- .../oreprocessing/ProcessingTransforming.java | 90 +- .../loaders/oreprocessing/ProcessingWax.java | 40 +- .../loaders/oreprocessing/ProcessingWire01.java | 70 +- .../loaders/oreprocessing/ProcessingWire02.java | 52 +- .../loaders/oreprocessing/ProcessingWire04.java | 52 +- .../loaders/oreprocessing/ProcessingWire08.java | 52 +- .../loaders/oreprocessing/ProcessingWire12.java | 52 +- .../loaders/oreprocessing/ProcessingWire16.java | 46 +- .../loaders/postload/GT_BlockResistanceLoader.java | 108 +- .../loaders/postload/GT_BookAndLootLoader.java | 238 +- .../gregtech/loaders/postload/GT_CropLoader.java | 108 +- .../postload/GT_ItemMaxStacksizeLoader.java | 168 +- .../loaders/postload/GT_MinableRegistrator.java | 34 +- .../postload/GT_RecyclerBlacklistLoader.java | 122 +- .../loaders/postload/GT_ScrapboxDropLoader.java | 206 +- .../loaders/postload/GT_Worldgenloader.java | 272 +-- .../preload/GT_Loader_CircuitBehaviors.java | 66 +- .../loaders/preload/GT_Loader_ItemData.java | 358 +-- .../preload/GT_Loader_Item_Block_And_Fluid.java | 846 +++---- .../preload/GT_Loader_MetaTileEntities.java | 2336 ++++++++++---------- .../loaders/preload/GT_Loader_OreDictionary.java | 414 ++-- .../loaders/preload/GT_Loader_OreProcessing.java | 390 ++-- main/java/gregtech/nei/GT_NEI_DefaultHandler.java | 1642 +++++++------- main/java/gregtech/nei/NEI_GT_Config.java | 62 +- 325 files changed, 30713 insertions(+), 30715 deletions(-) (limited to 'main/java') diff --git a/main/java/gregtech/GT_Mod.java b/main/java/gregtech/GT_Mod.java index a89bc0a2ac..09473be84e 100644 --- a/main/java/gregtech/GT_Mod.java +++ b/main/java/gregtech/GT_Mod.java @@ -1,311 +1,311 @@ -/* 1: */ package gregtech; -/* 3: */ import cpw.mods.fml.common.FMLLog; -/* 4: */ import cpw.mods.fml.common.LoadController; -/* 5: */ import cpw.mods.fml.common.Loader; -/* 6: */ import cpw.mods.fml.common.Mod; -/* 7: */ import cpw.mods.fml.common.Mod.EventHandler; -/* 8: */ import cpw.mods.fml.common.Mod.Instance; -/* 9: */ import cpw.mods.fml.common.ModContainer; -/* 10: */ import cpw.mods.fml.common.SidedProxy; -/* 11: */ import cpw.mods.fml.common.event.FMLInitializationEvent; -/* 12: */ import cpw.mods.fml.common.event.FMLModIdMappingEvent; -/* 13: */ import cpw.mods.fml.common.event.FMLPostInitializationEvent; -/* 14: */ import cpw.mods.fml.common.event.FMLPreInitializationEvent; -/* 15: */ import cpw.mods.fml.common.event.FMLServerStartedEvent; -/* 16: */ import cpw.mods.fml.common.event.FMLServerStartingEvent; -/* 17: */ import cpw.mods.fml.common.event.FMLServerStoppingEvent; -/* 18: */ import cpw.mods.fml.common.registry.EntityRegistry; +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.registry.EntityRegistry; import forestry.factory.gadgets.MachineCentrifuge; -/* 20: */ import forestry.factory.gadgets.MachineCentrifuge.RecipeManager; +import forestry.factory.gadgets.MachineCentrifuge.RecipeManager; import forestry.factory.gadgets.MachineSqueezer; -/* 23: */ import gregtech.api.GregTech_API; -/* 24: */ import gregtech.api.enchants.Enchantment_EnderDamage; -/* 25: */ import gregtech.api.enchants.Enchantment_Radioactivity; -/* 26: */ import gregtech.api.enums.ConfigCategories.Recipes; +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.*; -/* 33: */ import gregtech.api.enums.Textures.BlockIcons; -/* 34: */ import gregtech.api.enums.Textures.ItemIcons; -/* 35: */ import gregtech.api.interfaces.internal.IGT_Mod; -/* 36: */ import gregtech.api.objects.GT_ItemStack; -/* 37: */ import gregtech.api.objects.ItemData; -/* 38: */ import gregtech.api.objects.MaterialStack; -/* 39: */ import gregtech.api.util.GT_Config; -/* 40: */ import gregtech.api.util.GT_ItsNotMyFaultException; -/* 41: */ import gregtech.api.util.GT_LanguageManager; -/* 42: */ import gregtech.api.util.GT_Log; -/* 43: */ import gregtech.api.util.GT_Log.LogBuffer; -/* 44: */ import gregtech.api.util.GT_ModHandler; -/* 45: */ import gregtech.api.util.GT_ModHandler.RecipeBits; -/* 46: */ import gregtech.api.util.GT_OreDictUnificator; -/* 47: */ import gregtech.api.util.GT_Recipe; -/* 48: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map; -/* 49: */ import gregtech.api.util.GT_RecipeRegistrator; +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; -/* 50: */ import gregtech.api.util.GT_Utility; -/* 51: */ import gregtech.common.GT_DummyWorld; -/* 52: */ import gregtech.common.GT_Network; -/* 53: */ import gregtech.common.GT_Proxy; -/* 54: */ import gregtech.common.GT_RecipeAdder; -/* 55: */ import gregtech.common.entities.GT_Entity_Arrow; -/* 56: */ import gregtech.common.entities.GT_Entity_Arrow_Potion; -/* 57: */ import gregtech.common.items.behaviors.Behaviour_DataOrb; -/* 58: */ import gregtech.loaders.load.GT_CoverBehaviorLoader; -/* 59: */ import gregtech.loaders.load.GT_FuelLoader; -/* 60: */ import gregtech.loaders.load.GT_ItemIterator; -/* 61: */ import gregtech.loaders.load.GT_SonictronLoader; +import gregtech.api.util.GT_Utility; +import gregtech.common.GT_DummyWorld; +import gregtech.common.GT_Network; +import gregtech.common.GT_Proxy; +import gregtech.common.GT_RecipeAdder; +import gregtech.common.entities.GT_Entity_Arrow; +import gregtech.common.entities.GT_Entity_Arrow_Potion; +import gregtech.common.items.behaviors.Behaviour_DataOrb; +import gregtech.loaders.load.GT_CoverBehaviorLoader; +import gregtech.loaders.load.GT_FuelLoader; +import gregtech.loaders.load.GT_ItemIterator; +import gregtech.loaders.load.GT_SonictronLoader; import gregtech.loaders.misc.GT_Achievements; -/* 62: */ import gregtech.loaders.misc.GT_CoverLoader; -/* 63: */ import gregtech.loaders.postload.GT_BlockResistanceLoader; -/* 64: */ import gregtech.loaders.postload.GT_BookAndLootLoader; -/* 65: */ import gregtech.loaders.postload.GT_CraftingRecipeLoader; -/* 66: */ import gregtech.loaders.postload.GT_CropLoader; -/* 67: */ import gregtech.loaders.postload.GT_ItemMaxStacksizeLoader; -/* 68: */ import gregtech.loaders.postload.GT_MachineRecipeLoader; -/* 69: */ import gregtech.loaders.postload.GT_MinableRegistrator; -/* 70: */ import gregtech.loaders.postload.GT_RecyclerBlacklistLoader; -/* 71: */ import gregtech.loaders.postload.GT_ScrapboxDropLoader; -/* 72: */ import gregtech.loaders.postload.GT_Worldgenloader; -/* 73: */ import gregtech.loaders.preload.GT_Loader_CircuitBehaviors; -/* 74: */ import gregtech.loaders.preload.GT_Loader_ItemData; -/* 75: */ import gregtech.loaders.preload.GT_Loader_Item_Block_And_Fluid; -/* 76: */ import gregtech.loaders.preload.GT_Loader_MetaTileEntities; -/* 77: */ import gregtech.loaders.preload.GT_Loader_OreDictionary; -/* 78: */ import gregtech.loaders.preload.GT_Loader_OreProcessing; -/* 79: */ import ic2.api.recipe.ICannerBottleRecipeManager; -/* 80: */ import ic2.api.recipe.IMachineRecipeManager; -/* 81: */ import ic2.api.recipe.IRecipeInput; -/* 82: */ import ic2.api.recipe.RecipeOutput; +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 ic2.api.recipe.IRecipeInput; +import ic2.api.recipe.RecipeOutput; -/* 84: */ import java.io.File; -/* 85: */ import java.io.FileNotFoundException; -/* 86: */ import java.io.PrintStream; -/* 87: */ import java.lang.reflect.Field; -/* 88: */ import java.util.ArrayList; -/* 89: */ import java.util.Arrays; -/* 90: */ import java.util.Calendar; -/* 91: */ import java.util.Collection; -/* 92: */ import java.util.HashMap; -/* 93: */ import java.util.HashSet; -/* 94: */ import java.util.Iterator; -/* 95: */ import java.util.List; -/* 96: */ import java.util.Map; -/* 97: */ import java.util.Map.Entry; -/* 98: */ import java.util.Random; -/* 99: */ import java.util.Set; +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; -/* 100: */ import net.minecraft.block.Block; -/* 101: */ import net.minecraft.entity.player.EntityPlayer; -/* 102: */ import net.minecraft.init.Blocks; -/* 103: */ import net.minecraft.init.Items; -/* 104: */ import net.minecraft.item.Item; -/* 105: */ import net.minecraft.item.ItemStack; -/* 106: */ import net.minecraft.item.crafting.CraftingManager; -/* 107: */ import net.minecraft.item.crafting.FurnaceRecipes; -/* 108: */ import net.minecraft.item.crafting.IRecipe; +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; -/* 109: */ import net.minecraft.util.WeightedRandomChestContent; -/* 110: */ import net.minecraft.world.World; -/* 111: */ import net.minecraft.world.biome.BiomeGenBase; -/* 112: */ import net.minecraftforge.common.ChestGenHooks; +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; -/* 113: */ import net.minecraftforge.common.config.Configuration; -/* 114: */ import net.minecraftforge.common.config.Property; -/* 115: */ import net.minecraftforge.fluids.FluidContainerRegistry; -/* 116: */ import net.minecraftforge.fluids.FluidContainerRegistry.FluidContainerData; -/* 117: */ import net.minecraftforge.fluids.FluidRegistry; -/* 118: */ import net.minecraftforge.fluids.FluidStack; -/* 119: */ import net.minecraftforge.oredict.OreDictionary; -/* 120: */ -/* 121: */ @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;") -/* 122: */ public class GT_Mod -/* 123: */ implements IGT_Mod -/* 124: */ { -/* 125: */ @Mod.Instance("gregtech") -/* 126: */ public static GT_Mod instance; -/* 127: */ @SidedProxy(modId="gregtech", clientSide="gregtech.common.GT_Client", serverSide="gregtech.common.GT_Server") -/* 128: */ public static GT_Proxy gregtechproxy; -/* 129: */ public static final int VERSION = 508; -/* 130: */ public static final int REQUIRED_IC2 = 624; -/* 131: 72 */ public static int MAX_IC2 = 2147483647; +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;") +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; -/* 132: */ -/* 133: */ static -/* 134: */ { -/* 135: 75 */ if ((508 != GregTech_API.VERSION) || (508 != GT_ModHandler.VERSION) || (508 != GT_OreDictUnificator.VERSION) || (508 != GT_Recipe.VERSION) || (508 != GT_Utility.VERSION) || (508 != GT_RecipeRegistrator.VERSION) || (508 != Element.VERSION) || (508 != Materials.VERSION) || (508 != OrePrefixes.VERSION)) { -/* 136: 84 */ 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."); -/* 137: */ } -/* 138: */ } -/* 139: */ -/* 140: */ public GT_Mod() -/* 141: */ { -/* 142: */ try -/* 143: */ { -/* 144: 89 */ Class.forName("ic2.core.IC2").getField("enableOreDictCircuit").set(null, Boolean.valueOf(true)); -/* 145: */ } -/* 146: */ catch (Throwable e) {} -/* 147: */ try -/* 148: */ { -/* 149: 90 */ Class.forName("ic2.core.IC2").getField("enableCraftingBucket").set(null, Boolean.valueOf(false)); -/* 150: */ } -/* 151: */ catch (Throwable e) {} -/* 152: */ try -/* 153: */ { -/* 154: 91 */ Class.forName("ic2.core.IC2").getField("enableEnergyInStorageBlockItems").set(null, Boolean.valueOf(false)); -/* 155: */ } -/* 156: */ catch (Throwable e) {} -/* 157: 92 */ GT_Values.GT = this; -/* 158: 93 */ GT_Values.DW = new GT_DummyWorld(); -/* 159: 94 */ GT_Values.NW = new GT_Network(); -/* 160: 95 */ GregTech_API.sRecipeAdder = GT_Values.RA = new GT_RecipeAdder(); -/* 161: */ -/* 162: 97 */ Textures.BlockIcons.VOID.name(); -/* 163: 98 */ Textures.ItemIcons.VOID.name(); -/* 164: */ } -/* 165: */ -/* 166: */ @Mod.EventHandler -/* 167: */ public void onPreLoad(FMLPreInitializationEvent aEvent) -/* 168: */ { -/* 169:103 */ if (GregTech_API.sPreloadStarted) { -/* 170:103 */ return; -/* 171: */ } -/* 172:105 */ for (Runnable tRunnable : GregTech_API.sBeforeGTPreload) { -/* 173: */ try -/* 174: */ { -/* 175:107 */ tRunnable.run(); -/* 176: */ } -/* 177: */ catch (Throwable e) -/* 178: */ { -/* 179:109 */ e.printStackTrace(GT_Log.err); -/* 180: */ } -/* 181: */ } -/* 182:113 */ File tFile = new File(new File(aEvent.getModConfigurationDirectory(), "GregTech"), "GregTech.cfg"); -/* 183:114 */ Configuration tMainConfig = new Configuration(tFile); -/* 184:115 */ tMainConfig.load(); -/* 185:116 */ tFile = new File(new File(aEvent.getModConfigurationDirectory(), "GregTech"), "IDs.cfg"); -/* 186:117 */ GT_Config.sConfigFileIDs = new Configuration(tFile); -/* 187:118 */ GT_Config.sConfigFileIDs.load(); -/* 188:119 */ GT_Config.sConfigFileIDs.save(); -/* 189:120 */ GregTech_API.sRecipeFile = new GT_Config(new Configuration(new File(new File(aEvent.getModConfigurationDirectory(), "GregTech"), "Recipes.cfg"))); -/* 190:121 */ GregTech_API.sMachineFile = new GT_Config(new Configuration(new File(new File(aEvent.getModConfigurationDirectory(), "GregTech"), "MachineStats.cfg"))); -/* 191:122 */ GregTech_API.sWorldgenFile = new GT_Config(new Configuration(new File(new File(aEvent.getModConfigurationDirectory(), "GregTech"), "WorldGeneration.cfg"))); -/* 192:123 */ GregTech_API.sMaterialProperties = new GT_Config(new Configuration(new File(new File(aEvent.getModConfigurationDirectory(), "GregTech"), "MaterialProperties.cfg"))); -/* 193:124 */ GregTech_API.sUnification = new GT_Config(new Configuration(new File(new File(aEvent.getModConfigurationDirectory(), "GregTech"), "Unification.cfg"))); -/* 194:125 */ GregTech_API.sSpecialFile = new GT_Config(new Configuration(new File(new File(aEvent.getModConfigurationDirectory(), "GregTech"), "Other.cfg"))); -/* 195:126 */ GregTech_API.sOPStuff = new GT_Config(new Configuration(new File(new File(aEvent.getModConfigurationDirectory(), "GregTech"), "OverpoweredStuff.cfg"))); -/* 196: */ -/* 197:128 */ GregTech_API.sClientDataFile = new GT_Config(new Configuration(new File(aEvent.getModConfigurationDirectory().getParentFile(), "GregTech.cfg"))); -/* 198: */ -/* 199:130 */ GT_Log.mLogFile = new File(aEvent.getModConfigurationDirectory().getParentFile(), "logs/GregTech.log"); -/* 200:131 */ if (!GT_Log.mLogFile.exists()) { -/* 201: */ try -/* 202: */ { -/* 203:131 */ GT_Log.mLogFile.createNewFile(); -/* 204: */ } -/* 205: */ catch (Throwable e) {} -/* 206: */ } -/* 207: */ try -/* 208: */ { -/* 209:132 */ GT_Log.out = GT_Log.err = new PrintStream(GT_Log.mLogFile); -/* 210: */ } -/* 211: */ catch (FileNotFoundException e) {} -/* 212:134 */ GT_Log.mOreDictLogFile = new File(aEvent.getModConfigurationDirectory().getParentFile(), "logs/OreDict.log"); -/* 213:135 */ if (!GT_Log.mOreDictLogFile.exists()) { -/* 214: */ try -/* 215: */ { -/* 216:135 */ GT_Log.mOreDictLogFile.createNewFile(); -/* 217: */ } -/* 218: */ catch (Throwable e) {} -/* 219: */ } -/* 220:137 */ if (tMainConfig.get("general", "LoggingPlayerActivity", true).getBoolean(true)) -/* 221: */ { -/* 222:138 */ GT_Log.mPlayerActivityLogFile = new File(aEvent.getModConfigurationDirectory().getParentFile(), "logs/PlayerActivity.log"); -/* 223:139 */ if (!GT_Log.mPlayerActivityLogFile.exists()) { -/* 224: */ try -/* 225: */ { -/* 226:139 */ GT_Log.mPlayerActivityLogFile.createNewFile(); -/* 227: */ } -/* 228: */ catch (Throwable e) {} -/* 229: */ } -/* 230: */ try -/* 231: */ { -/* 232:140 */ GT_Log.pal = new PrintStream(GT_Log.mPlayerActivityLogFile); -/* 233: */ } -/* 234: */ catch (Throwable e) {} -/* 235: */ } -/* 236: */ try -/* 237: */ { -/* 238:144 */ List tList = ((GT_Log.LogBuffer)GT_Log.ore).mBufferedOreDictLog; -/* 239:145 */ GT_Log.ore = new PrintStream(GT_Log.mOreDictLogFile); -/* 240:146 */ GT_Log.ore.println("**********************************************************************"); -/* 241:147 */ GT_Log.ore.println("* This is the complete Log of the GregTech OreDictionary Handler *"); -/* 242:148 */ GT_Log.ore.println("* Everything in the OreDict goes through it sometimes causing Errors *"); -/* 243:149 */ GT_Log.ore.println("* These Errors are getting logged aswell as properly registered Ores *"); -/* 244:150 */ GT_Log.ore.println("* If you see something fishy going on in this Log, such as improper *"); -/* 245:151 */ GT_Log.ore.println("* Items being registered, then mention it to the corresponding Mod *"); -/* 246:152 */ GT_Log.ore.println("* In case it mentions GregTech itself improperly registering Stuff *"); -/* 247:153 */ GT_Log.ore.println("* then please contact me about that immediatly *"); -/* 248:154 */ GT_Log.ore.println("* *"); -/* 249:155 */ GT_Log.ore.println("* In case of something being 'ignored properly', that one isnt a Bug *"); -/* 250:156 */ GT_Log.ore.println("**********************************************************************"); -/* 251: */ String tString; -/* 252:157 */ for (Iterator i$ = tList.iterator(); i$.hasNext(); GT_Log.ore.println(tString)) { -/* 253:157 */ tString = (String)i$.next(); -/* 254: */ } -/* 255: */ } -/* 256: */ catch (Throwable e) {} -/* 257:160 */ gregtechproxy.onPreLoad(); -/* 258: */ -/* 259:162 */ GT_Log.out.println("GT_Mod: Setting Configs"); -/* 260:163 */ GT_Values.D1 = tMainConfig.get("general", "Debug", false).getBoolean(false); -/* 261:164 */ GT_Values.D2 = tMainConfig.get("general", "Debug2", false).getBoolean(false); -/* 262: */ -/* 263:166 */ GregTech_API.TICKS_FOR_LAG_AVERAGING = tMainConfig.get("general", "TicksForLagAveragingWithScanner", 25).getInt(25); -/* 264:167 */ GregTech_API.MILLISECOND_THRESHOLD_UNTIL_LAG_WARNING = tMainConfig.get("general", "MillisecondsPassedInGTTileEntityUntilLagWarning", 100).getInt(100); -/* 265:169 */ if (tMainConfig.get("general", "disable_STDOUT", false).getBoolean(false)) { -/* 266:169 */ System.out.close(); -/* 267: */ } -/* 268:170 */ if (tMainConfig.get("general", "disable_STDERR", false).getBoolean(false)) { -/* 269:170 */ System.err.close(); -/* 270: */ } -/* 271:172 */ GregTech_API.sMachineExplosions = tMainConfig.get("machines", "machines_explosion_damage", true).getBoolean(false); -/* 272:173 */ GregTech_API.sMachineFlammable = tMainConfig.get("machines", "machines_flammable", true).getBoolean(false); -/* 273:174 */ GregTech_API.sMachineNonWrenchExplosions = tMainConfig.get("machines", "explosions_on_nonwrenching", true).getBoolean(false); -/* 274:175 */ GregTech_API.sMachineWireFire = tMainConfig.get("machines", "wirefire_on_explosion", true).getBoolean(false); -/* 275:176 */ GregTech_API.sMachineFireExplosions = tMainConfig.get("machines", "fire_causes_explosions", true).getBoolean(false); -/* 276:177 */ GregTech_API.sMachineRainExplosions = tMainConfig.get("machines", "rain_causes_explosions", true).getBoolean(false); -/* 277:178 */ GregTech_API.sMachineThunderExplosions = tMainConfig.get("machines", "lightning_causes_explosions", true).getBoolean(false); -/* 278:179 */ GregTech_API.sConstantEnergy = tMainConfig.get("machines", "constant_need_of_energy", true).getBoolean(false); -/* 279:180 */ GregTech_API.sColoredGUI = tMainConfig.get("machines", "colored_guis_when_painted", true).getBoolean(false); -/* 280: */ -/* 281:182 */ GregTech_API.sTimber = tMainConfig.get("general", "timber_axe", false).getBoolean(false); -/* 282:183 */ GregTech_API.sDrinksAlwaysDrinkable = tMainConfig.get("general", "drinks_always_drinkable", false).getBoolean(false); -/* 283:184 */ GregTech_API.sDoShowAllItemsInCreative = tMainConfig.get("general", "show_all_metaitems_in_creative_and_NEI", false).getBoolean(false); -/* 284:185 */ GregTech_API.sMultiThreadedSounds = tMainConfig.get("general", "sound_multi_threading", false).getBoolean(false); -/* 285:187 */ for (Dyes tDye : Dyes.values()) { -/* 286:187 */ if ((tDye != Dyes._NULL) && (tDye.mIndex < 0)) -/* 287: */ { -/* 288:188 */ tDye.mRGBa[0] = ((short)Math.min(255, Math.max(0, GregTech_API.sClientDataFile.get("ColorModulation." + tDye, "R", tDye.mRGBa[0])))); -/* 289:189 */ tDye.mRGBa[1] = ((short)Math.min(255, Math.max(0, GregTech_API.sClientDataFile.get("ColorModulation." + tDye, "G", tDye.mRGBa[1])))); -/* 290:190 */ tDye.mRGBa[2] = ((short)Math.min(255, Math.max(0, GregTech_API.sClientDataFile.get("ColorModulation." + tDye, "B", tDye.mRGBa[2])))); -/* 291: */ } -/* 292: */ } -/* 293:193 */ gregtechproxy.mMaxEqualEntitiesAtOneSpot = tMainConfig.get("general", "MaxEqualEntitiesAtOneSpot", 3).getInt(3); -/* 294:194 */ gregtechproxy.mSkeletonsShootGTArrows = tMainConfig.get("general", "SkeletonsShootGTArrows", 16).getInt(16); -/* 295:195 */ gregtechproxy.mFlintChance = tMainConfig.get("general", "FlintAndSteelChance", 30).getInt(30); -/* 296:196 */ gregtechproxy.mItemDespawnTime = tMainConfig.get("general", "ItemDespawnTime", 6000).getInt(6000); -/* 297:197 */ gregtechproxy.mDisableVanillaOres = tMainConfig.get("general", "DisableVanillaOres", true).getBoolean(true); -/* 298:198 */ gregtechproxy.mNerfDustCrafting = tMainConfig.get("general", "NerfDustCrafting", true).getBoolean(true); -/* 299:199 */ gregtechproxy.mIncreaseDungeonLoot = tMainConfig.get("general", "IncreaseDungeonLoot", true).getBoolean(true); -/* 300:200 */ gregtechproxy.mAxeWhenAdventure = tMainConfig.get("general", "AdventureModeStartingAxe", true).getBoolean(true); -/* 301:201 */ gregtechproxy.mHardcoreCables = tMainConfig.get("general", "HardCoreCableLoss", false).getBoolean(false); -/* 302:202 */ gregtechproxy.mSurvivalIntoAdventure = tMainConfig.get("general", "forceAdventureMode", false).getBoolean(false); -/* 303:203 */ gregtechproxy.mHungerEffect = tMainConfig.get("general", "AFK_Hunger", false).getBoolean(false); -/* 304:204 */ gregtechproxy.mHardRock = tMainConfig.get("general", "harderstone", false).getBoolean(false); -/* 305:205 */ gregtechproxy.mInventoryUnification = tMainConfig.get("general", "InventoryUnification", true).getBoolean(true); -/* 306:206 */ gregtechproxy.mCraftingUnification = tMainConfig.get("general", "CraftingUnification", true).getBoolean(true); -/* 307:207 */ gregtechproxy.mNerfedWoodPlank = tMainConfig.get("general", "WoodNeedsSawForCrafting", true).getBoolean(true); -/* 308:208 */ gregtechproxy.mNerfedVanillaTools = tMainConfig.get("general", "smallerVanillaToolDurability", true).getBoolean(true); -/* 309:209 */ gregtechproxy.mSortToTheEnd = tMainConfig.get("general", "EnsureToBeLoadedLast", true).getBoolean(true); + + static + { + if ((508 != GregTech_API.VERSION) || (508 != GT_ModHandler.VERSION) || (508 != GT_OreDictUnificator.VERSION) || (508 != GT_Recipe.VERSION) || (508 != GT_Utility.VERSION) || (508 != GT_RecipeRegistrator.VERSION) || (508 != Element.VERSION) || (508 != Materials.VERSION) || (508 != 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 = new PrintStream(GT_Log.mOreDictLogFile); + GT_Log.ore.println("**********************************************************************"); + GT_Log.ore.println("* This is the complete Log of the GregTech OreDictionary Handler *"); + GT_Log.ore.println("* Everything in the OreDict goes through it sometimes causing Errors *"); + GT_Log.ore.println("* These Errors are getting logged aswell as properly registered Ores *"); + GT_Log.ore.println("* If you see something fishy going on in this Log, such as improper *"); + GT_Log.ore.println("* Items being registered, then mention it to the corresponding Mod *"); + GT_Log.ore.println("* In case it mentions GregTech itself improperly registering Stuff *"); + GT_Log.ore.println("* then please contact me about that immediatly *"); + GT_Log.ore.println("* *"); + GT_Log.ore.println("* In case of something being 'ignored properly', that one isnt a Bug *"); + 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.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", false).getBoolean(false); gregtechproxy.mAchievements = tMainConfig.get("general", "EnableAchievements", true).getBoolean(true); @@ -317,655 +317,655 @@ GregTech_API.mRFExplosions = GregTech_API.sOPStuff.get(ConfigCategories.general, "RFExplosions", true); GregTech_API.meIOLoaded = Loader.isModLoaded("EnderIO"); -/* 310:211 */ if (tMainConfig.get("general", "hardermobspawners", true).getBoolean(true)) { -/* 311:211 */ Blocks.mob_spawner.setHardness(500.0F).setResistance(6000000.0F); -/* 312: */ } -/* 313:213 */ gregtechproxy.mOnline = tMainConfig.get("general", "online", true).getBoolean(false); -/* 314: */ -/* 315:215 */ gregtechproxy.mUpgradeCount = Math.min(64, Math.max(1, tMainConfig.get("features", "UpgradeStacksize", 4).getInt())); -/* 316:217 */ for (OrePrefixes tPrefix : OrePrefixes.values()) { -/* 317:218 */ if (tPrefix.mIsUsedForOreProcessing) { -/* 318:219 */ tPrefix.mDefaultStackSize = ((byte)Math.min(64, Math.max(1, tMainConfig.get("features", "MaxOreStackSize", 64).getInt()))); -/* 319:220 */ } else if (tPrefix == OrePrefixes.plank) { -/* 320:221 */ tPrefix.mDefaultStackSize = ((byte)Math.min(64, Math.max(16, tMainConfig.get("features", "MaxPlankStackSize", 64).getInt()))); -/* 321:222 */ } else if ((tPrefix == OrePrefixes.wood) || (tPrefix == OrePrefixes.treeLeaves) || (tPrefix == OrePrefixes.treeSapling) || (tPrefix == OrePrefixes.log)) { -/* 322:223 */ tPrefix.mDefaultStackSize = ((byte)Math.min(64, Math.max(16, tMainConfig.get("features", "MaxLogStackSize", 64).getInt()))); -/* 323:224 */ } else if (tPrefix.mIsUsedForBlocks) { -/* 324:225 */ tPrefix.mDefaultStackSize = ((byte)Math.min(64, Math.max(16, tMainConfig.get("features", "MaxOtherBlockStackSize", 64).getInt()))); -/* 325: */ } -/* 326: */ } -/* 327:229 */ //GT_Config.troll = (Calendar.getInstance().get(2) + 1 == 4) && (Calendar.getInstance().get(5) >= 1) && (Calendar.getInstance().get(5) <= 2); -/* 328: */ -/* 329:231 */ Materials.init(GregTech_API.sMaterialProperties); -/* 330: */ -/* 331:233 */ GT_Log.out.println("GT_Mod: Saving Main Config"); -/* 332:234 */ tMainConfig.save(); -/* 333: */ -/* 334:236 */ GT_Log.out.println("GT_Mod: Generating Lang-File"); -/* 335:237 */ GT_LanguageManager.sEnglishFile = new Configuration(new File(aEvent.getModConfigurationDirectory().getParentFile(), "GregTech.lang")); -/* 336:238 */ GT_LanguageManager.sEnglishFile.load(); -/* 337: */ -/* 338:240 */ GT_Log.out.println("GT_Mod: Removing all original Scrapbox Drops."); -/* 339: */ try -/* 340: */ { -/* 341:242 */ GT_Utility.getField("ic2.core.item.ItemScrapbox$Drop", "topChance", true, true).set(null, Integer.valueOf(0)); -/* 342:243 */ ((List)GT_Utility.getFieldContent(GT_Utility.getFieldContent("ic2.api.recipe.Recipes", "scrapboxDrops", true, true), "drops", true, true)).clear(); -/* 343: */ } -/* 344: */ catch (Throwable e) -/* 345: */ { -/* 346:245 */ if (GT_Values.D1) { -/* 347:245 */ e.printStackTrace(GT_Log.err); -/* 348: */ } -/* 349: */ } -/* 350:248 */ GT_Log.out.println("GT_Mod: Adding Scrap with a Weight of 200.0F to the Scrapbox Drops."); -/* 351:249 */ GT_ModHandler.addScrapboxDrop(200.0F, GT_ModHandler.getIC2Item("scrap", 1L)); -/* 352: */ -/* 353:251 */ EntityRegistry.registerModEntity(GT_Entity_Arrow.class, "GT_Entity_Arrow", 1, GT_Values.GT, 160, 1, true); -/* 354:252 */ EntityRegistry.registerModEntity(GT_Entity_Arrow_Potion.class, "GT_Entity_Arrow_Potion", 2, GT_Values.GT, 160, 1, true); -/* 355: */ -/* 356:254 */ new Enchantment_EnderDamage(); -/* 357:255 */ new Enchantment_Radioactivity(); -/* 358: */ -/* 359:257 */ new GT_Loader_OreProcessing().run(); -/* 360:258 */ new GT_Loader_OreDictionary().run(); -/* 361:259 */ new GT_Loader_ItemData().run(); -/* 362:260 */ new GT_Loader_Item_Block_And_Fluid().run(); -/* 363:261 */ new GT_Loader_MetaTileEntities().run(); -/* 364: */ -/* 365:263 */ new GT_Loader_CircuitBehaviors().run(); -/* 366:264 */ new GT_CoverBehaviorLoader().run(); -/* 367:265 */ new GT_SonictronLoader().run(); + 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()))); +