From 8ac58626bd4caa9e49f58acc6b97ac031f6c2107 Mon Sep 17 00:00:00 2001 From: Raven Szewczyk Date: Mon, 10 Apr 2023 17:49:16 +0100 Subject: Update spotless config to 0.2.2 --- src/main/java/gregtech/GT_Mod.java | 433 +- src/main/java/gregtech/api/GregTech_API.java | 437 +- .../api/damagesources/GT_DamageSources.java | 10 +- .../api/enchants/Enchantment_EnderDamage.java | 28 +- .../api/enchants/Enchantment_Radioactivity.java | 10 +- src/main/java/gregtech/api/enums/Dyes.java | 2 +- src/main/java/gregtech/api/enums/Element.java | 2 +- src/main/java/gregtech/api/enums/FluidState.java | 2 +- .../gregtech/api/enums/GTNH_ExtraMaterials.java | 1144 +- .../java/gregtech/api/enums/GT_HatchElement.java | 6 +- src/main/java/gregtech/api/enums/GT_Values.java | 350 +- src/main/java/gregtech/api/enums/ItemList.java | 70 +- .../java/gregtech/api/enums/MaterialBuilder.java | 56 +- src/main/java/gregtech/api/enums/Materials.java | 1479 +- .../java/gregtech/api/enums/MaterialsBotania.java | 374 +- .../java/gregtech/api/enums/MaterialsKevlar.java | 1246 +- .../java/gregtech/api/enums/MaterialsOreAlum.java | 148 +- src/main/java/gregtech/api/enums/Mods.java | 2 +- src/main/java/gregtech/api/enums/OrePrefixes.java | 1218 +- .../java/gregtech/api/enums/SoundResource.java | 4 +- src/main/java/gregtech/api/enums/SubTag.java | 4 +- src/main/java/gregtech/api/enums/TextureSet.java | 104 +- src/main/java/gregtech/api/enums/Textures.java | 563 +- src/main/java/gregtech/api/enums/Tier.java | 856 +- .../java/gregtech/api/enums/ToolDictNames.java | 2 +- .../gregtech/api/events/BlockScanningEvent.java | 3 +- src/main/java/gregtech/api/fluid/FluidTankGT.java | 17 +- .../java/gregtech/api/fluid/GT_FluidFactory.java | 18 +- .../java/gregtech/api/graphs/GenerateNodeMap.java | 24 +- .../gregtech/api/graphs/GenerateNodeMapPower.java | 26 +- src/main/java/gregtech/api/graphs/Node.java | 2 +- src/main/java/gregtech/api/graphs/PowerNodes.java | 46 +- .../api/graphs/consumers/NodeEnergyConnected.java | 2 +- .../api/graphs/consumers/NodeEnergyReceiver.java | 17 +- .../api/graphs/consumers/NodeEnergySink.java | 4 +- .../api/graphs/consumers/NodeGTBaseMetaTile.java | 2 +- .../gregtech/api/graphs/paths/PowerNodePath.java | 5 +- src/main/java/gregtech/api/gui/GT_Container.java | 96 +- .../api/gui/GT_ContainerMetaTile_Machine.java | 19 +- .../api/gui/GT_Container_BasicMachine.java | 12 +- .../gregtech/api/gui/GT_Container_BasicTank.java | 10 +- .../api/gui/GT_Container_MultiMachine.java | 2 +- .../java/gregtech/api/gui/GT_GUIColorOverride.java | 37 +- .../api/gui/GT_GUIContainerMetaTile_Machine.java | 60 +- .../gregtech/api/gui/GT_GUIContainer_1by1.java | 10 +- .../gregtech/api/gui/GT_GUIContainer_2by2.java | 10 +- .../gregtech/api/gui/GT_GUIContainer_3by3.java | 10 +- .../gregtech/api/gui/GT_GUIContainer_4by4.java | 10 +- .../api/gui/GT_GUIContainer_BasicMachine.java | 137 +- .../api/gui/GT_GUIContainer_BasicTank.java | 23 +- .../api/gui/GT_GUIContainer_MultiMachine.java | 98 +- src/main/java/gregtech/api/gui/GT_GUICover.java | 14 +- .../gregtech/api/gui/GT_GUIDialogSelectItem.java | 32 +- src/main/java/gregtech/api/gui/GT_Slot_Armor.java | 4 +- src/main/java/gregtech/api/gui/GT_Slot_Holo.java | 2 +- .../gui/modularui/FallbackableSteamTexture.java | 4 +- .../api/gui/modularui/GT_CoverUIBuildContext.java | 2 +- .../gregtech/api/gui/modularui/GT_UIInfos.java | 173 +- .../gregtech/api/gui/modularui/GT_UITextures.java | 855 +- .../gregtech/api/gui/modularui/GUITextureSet.java | 66 +- .../gregtech/api/gui/modularui/SteamTexture.java | 32 +- .../api/gui/widgets/GT_GuiCoverTabLine.java | 42 +- .../api/gui/widgets/GT_GuiFakeItemButton.java | 14 +- .../java/gregtech/api/gui/widgets/GT_GuiIcon.java | 8 +- .../gregtech/api/gui/widgets/GT_GuiIconButton.java | 4 +- .../api/gui/widgets/GT_GuiIconCheckButton.java | 2 +- .../api/gui/widgets/GT_GuiIntegerTextBox.java | 18 +- .../java/gregtech/api/gui/widgets/GT_GuiTab.java | 32 +- .../gregtech/api/gui/widgets/GT_GuiTabLine.java | 24 +- .../api/gui/widgets/GT_GuiTooltipManager.java | 6 +- .../api/interfaces/IDragAndDropSupport.java | 2 +- .../api/interfaces/IGlobalWirelessEnergy.java | 10 +- .../gregtech/api/interfaces/IHatchElement.java | 50 +- .../gregtech/api/interfaces/IItemBehaviour.java | 8 +- .../gregtech/api/interfaces/IProjectileItem.java | 2 +- .../java/gregtech/api/interfaces/IToolStats.java | 4 +- .../api/interfaces/fluid/IGT_FluidBuilder.java | 2 +- .../api/interfaces/fluid/IGT_RegisteredFluid.java | 2 +- .../api/interfaces/internal/IGT_RecipeAdder.java | 206 +- .../api/interfaces/internal/IThaumcraftCompat.java | 26 +- .../interfaces/metatileentity/IMetaTileEntity.java | 12 +- .../metatileentity/IMetaTileEntityCable.java | 2 +- .../metatileentity/IMetaTileEntityItemPipe.java | 45 +- .../interfaces/tileentity/IColoredTileEntity.java | 4 +- .../api/interfaces/tileentity/ICoverable.java | 2 +- .../interfaces/tileentity/IEnergyConnected.java | 19 +- .../tileentity/IExperimentalEnergyTileEntity.java | 45 +- .../interfaces/tileentity/IGregTechTileEntity.java | 10 +- .../tileentity/IGregtechWailaProvider.java | 4 +- .../api/items/GT_Block_LongDistancePipe.java | 5 +- .../gregtech/api/items/GT_BreederCell_Item.java | 24 +- .../gregtech/api/items/GT_CoolantCellIC_Item.java | 2 +- .../gregtech/api/items/GT_CoolantCell_Item.java | 4 +- .../gregtech/api/items/GT_EnergyArmor_Item.java | 58 +- .../java/gregtech/api/items/GT_Generic_Item.java | 12 +- .../java/gregtech/api/items/GT_MetaBase_Item.java | 104 +- .../gregtech/api/items/GT_MetaGenerated_Item.java | 55 +- .../api/items/GT_MetaGenerated_Item_X01.java | 43 +- .../api/items/GT_MetaGenerated_Item_X32.java | 26 +- .../gregtech/api/items/GT_MetaGenerated_Tool.java | 415 +- .../api/items/GT_RadioactiveCellIC_Item.java | 45 +- .../api/items/GT_RadioactiveCell_Item.java | 10 +- .../gregtech/api/items/GT_SolderingTool_Item.java | 30 +- .../java/gregtech/api/items/GT_Spray_Bug_Item.java | 30 +- .../gregtech/api/items/GT_Spray_Foam_Item.java | 82 +- .../gregtech/api/items/GT_Spray_Hardener_Item.java | 35 +- .../api/items/GT_Spray_Hydration_Item.java | 22 +- .../java/gregtech/api/items/GT_Spray_Ice_Item.java | 38 +- .../gregtech/api/items/GT_Spray_Pepper_Item.java | 36 +- src/main/java/gregtech/api/items/GT_Tool_Item.java | 34 +- .../api/metatileentity/BaseMetaPipeEntity.java | 360 +- .../api/metatileentity/BaseMetaTileEntity.java | 804 +- .../api/metatileentity/BaseTileEntity.java | 203 +- .../api/metatileentity/CommonMetaTileEntity.java | 2 +- .../api/metatileentity/CoverableTileEntity.java | 226 +- .../api/metatileentity/MetaPipeEntity.java | 67 +- .../api/metatileentity/MetaTileEntity.java | 107 +- .../api/metatileentity/TileIC2EnergySink.java | 22 +- .../examples/GT_MetaTileEntity_E_Furnace.java | 124 +- .../implementations/GT_MetaPipeEntity_Cable.java | 275 +- .../implementations/GT_MetaPipeEntity_Fluid.java | 299 +- .../implementations/GT_MetaPipeEntity_Frame.java | 31 +- .../implementations/GT_MetaPipeEntity_Item.java | 170 +- .../GT_MetaTileEntity_BasicBatteryBuffer.java | 177 +- .../GT_MetaTileEntity_BasicGenerator.java | 55 +- .../GT_MetaTileEntity_BasicHull.java | 16 +- .../GT_MetaTileEntity_BasicHull_NonElectric.java | 8 +- .../GT_MetaTileEntity_BasicMachine.java | 624 +- .../GT_MetaTileEntity_BasicMachine_Bronze.java | 171 +- .../GT_MetaTileEntity_BasicMachine_GT_Recipe.java | 446 +- .../GT_MetaTileEntity_BasicMachine_Steel.java | 64 +- .../GT_MetaTileEntity_BasicTank.java | 134 +- .../implementations/GT_MetaTileEntity_Buffer.java | 214 +- .../GT_MetaTileEntity_CubicMultiBlockBase.java | 42 +- .../GT_MetaTileEntity_EnhancedMultiBlockBase.java | 188 +- ...MetaTileEntity_ExtendedPowerMultiBlockBase.java | 112 +- .../implementations/GT_MetaTileEntity_Hatch.java | 12 +- .../GT_MetaTileEntity_Hatch_DataAccess.java | 28 +- .../GT_MetaTileEntity_Hatch_Dynamo.java | 14 +- .../GT_MetaTileEntity_Hatch_Energy.java | 18 +- .../GT_MetaTileEntity_Hatch_Input.java | 44 +- .../GT_MetaTileEntity_Hatch_InputBus.java | 56 +- .../GT_MetaTileEntity_Hatch_Maintenance.java | 121 +- .../GT_MetaTileEntity_Hatch_Muffler.java | 51 +- .../GT_MetaTileEntity_Hatch_MultiInput.java | 63 +- .../GT_MetaTileEntity_Hatch_Output.java | 275 +- .../GT_MetaTileEntity_Hatch_OutputBus.java | 58 +- .../GT_MetaTileEntity_MultiBlockBase.java | 779 +- .../GT_MetaTileEntity_SpecialFilter.java | 144 +- .../GT_MetaTileEntity_TieredMachineBlock.java | 22 +- .../GT_MetaTileEntity_TooltipMultiBlockBase.java | 4 +- .../GT_MetaTileEntity_Transformer.java | 166 +- .../GT_MetaTileEntity_Wireless_Dynamo.java | 10 +- .../GT_MetaTileEntity_Wireless_Hatch.java | 12 +- .../api/multitileentity/MultiTileEntityBlock.java | 209 +- .../MultiTileEntityBlockInternal.java | 15 +- .../MultiTileEntityClassContainer.java | 14 +- .../MultiTileEntityItemInternal.java | 152 +- .../multitileentity/MultiTileEntityRegistry.java | 57 +- .../api/multitileentity/base/MultiTileEntity.java | 267 +- .../base/NonTickableMultiTileEntity.java | 2 +- .../interfaces/IMultiTileEntity.java | 12 +- .../machine/MultiTileBasicMachine.java | 110 +- .../multiblock/base/MultiBlockController.java | 571 +- .../multiblock/base/MultiBlockPart.java | 113 +- .../multiblock/base/MultiBlockPowerController.java | 2 +- .../gregtech/api/net/GT_Packet_Block_Event.java | 10 +- .../api/net/GT_Packet_ClientPreference.java | 2 +- .../api/net/GT_Packet_GtTileEntityGuiRequest.java | 40 +- .../api/net/GT_Packet_MultiTileEntity.java | 48 +- .../api/net/GT_Packet_RequestCoverData.java | 10 +- .../gregtech/api/net/GT_Packet_SendCoverData.java | 18 +- .../api/net/GT_Packet_SetConfigurationCircuit.java | 16 +- .../gregtech/api/net/GT_Packet_SetLockedFluid.java | 14 +- .../java/gregtech/api/net/GT_Packet_Sound.java | 12 +- .../gregtech/api/net/GT_Packet_TileEntity.java | 127 +- .../api/net/GT_Packet_TileEntityCover.java | 14 +- .../api/net/GT_Packet_TileEntityCoverGUI.java | 46 +- .../api/net/GT_Packet_TileEntityCoverNew.java | 20 +- .../api/net/GT_Packet_WirelessRedstoneCover.java | 23 +- .../api/objects/AE2DigitalChestHandler.java | 6 +- .../java/gregtech/api/objects/CollectorUtils.java | 2 +- .../java/gregtech/api/objects/ElementStack.java | 2 +- .../java/gregtech/api/objects/GT_ChunkManager.java | 75 +- .../gregtech/api/objects/GT_Cover_Default.java | 12 +- .../java/gregtech/api/objects/GT_Cover_None.java | 62 +- src/main/java/gregtech/api/objects/GT_Fluid.java | 2 +- .../java/gregtech/api/objects/GT_FluidStack.java | 16 +- src/main/java/gregtech/api/objects/GT_HashSet.java | 2 +- .../java/gregtech/api/objects/GT_ItemStack.java | 6 +- .../gregtech/api/objects/GT_RenderedTexture.java | 2 +- .../java/gregtech/api/objects/GT_SidedTexture.java | 8 +- .../api/objects/GT_StdRenderedTexture.java | 2 +- .../java/gregtech/api/objects/GT_UO_Dimension.java | 10 +- .../gregtech/api/objects/GT_UO_DimensionList.java | 37 +- .../java/gregtech/api/objects/GT_UO_Fluid.java | 20 +- src/main/java/gregtech/api/objects/ItemData.java | 10 +- .../java/gregtech/api/objects/MaterialStack.java | 3 +- src/main/java/gregtech/api/objects/ObjMap.java | 2 +- src/main/java/gregtech/api/objects/XSTR.java | 7 +- .../java/gregtech/api/render/TextureFactory.java | 42 +- .../api/threads/GT_Runnable_Cable_Update.java | 28 +- .../threads/GT_Runnable_MachineBlockUpdate.java | 40 +- .../gregtech/api/threads/GT_Runnable_Sound.java | 38 +- .../gregtech/api/util/ColorsMetadataSection.java | 4 +- .../api/util/ColorsMetadataSectionSerializer.java | 20 +- .../java/gregtech/api/util/GT_ApiaryUpgrade.java | 8 +- .../gregtech/api/util/GT_AssemblyLineUtils.java | 89 +- .../gregtech/api/util/GT_Assemblyline_Server.java | 475 +- src/main/java/gregtech/api/util/GT_BaseCrop.java | 95 +- src/main/java/gregtech/api/util/GT_CLS_Compat.java | 64 +- .../gregtech/api/util/GT_ChunkAssociatedData.java | 153 +- .../gregtech/api/util/GT_CircuitryBehavior.java | 74 +- .../gregtech/api/util/GT_ClientPreference.java | 8 +- src/main/java/gregtech/api/util/GT_Config.java | 50 +- .../java/gregtech/api/util/GT_CoverBehavior.java | 90 +- .../gregtech/api/util/GT_CoverBehaviorBase.java | 177 +- .../api/util/GT_ExoticEnergyInputHelper.java | 21 +- src/main/java/gregtech/api/util/GT_FoodStat.java | 38 +- .../java/gregtech/api/util/GT_Forestry_Compat.java | 224 +- src/main/java/gregtech/api/util/GT_GC_Compat.java | 16 +- .../gregtech/api/util/GT_HatchElementBuilder.java | 258 +- .../api/util/GT_ItsNotMyFaultException.java | 2 +- .../java/gregtech/api/util/GT_LanguageManager.java | 50 +- src/main/java/gregtech/api/util/GT_ModHandler.java | 938 +- .../api/util/GT_Multiblock_Tooltip_Builder.java | 65 +- .../gregtech/api/util/GT_OreDictUnificator.java | 44 +- .../gregtech/api/util/GT_OverclockCalculator.java | 8 +- .../gregtech/api/util/GT_PCBFactoryManager.java | 2 +- .../java/gregtech/api/util/GT_ParallelHelper.java | 22 +- .../java/gregtech/api/util/GT_PlayedSound.java | 4 +- src/main/java/gregtech/api/util/GT_Recipe.java | 6340 +++--- .../java/gregtech/api/util/GT_RecipeBuilder.java | 178 +- .../java/gregtech/api/util/GT_RecipeConstants.java | 186 +- .../java/gregtech/api/util/GT_RecipeMapUtil.java | 58 +- .../gregtech/api/util/GT_RecipeRegistrator.java | 641 +- .../java/gregtech/api/util/GT_RenderingWorld.java | 12 +- .../java/gregtech/api/util/GT_Shaped_Recipe.java | 40 +- .../gregtech/api/util/GT_Shapeless_Recipe.java | 40 +- .../gregtech/api/util/GT_Single_Recipe_Check.java | 112 +- .../GT_Single_Recipe_Check_Processing_Array.java | 46 +- .../gregtech/api/util/GT_SpawnEventHandler.java | 10 +- .../gregtech/api/util/GT_StructureUtility.java | 265 +- .../gregtech/api/util/GT_TooltipDataCache.java | 7 +- src/main/java/gregtech/api/util/GT_Util.java | 82 +- src/main/java/gregtech/api/util/GT_Utility.java | 2493 ++- .../java/gregtech/api/util/GT_UtilityClient.java | 19 +- .../java/gregtech/api/util/IGT_HatchAdder.java | 2 +- .../java/gregtech/api/util/LightingHelper.java | 1662 +- .../api/util/WorldSpawnedEventBuilder.java | 88 +- src/main/java/gregtech/api/world/GT_Worldgen.java | 30 +- .../java/gregtech/api/world/GT_Worldgen_Ore.java | 4 +- .../api/world/GT_Worldgen_Ore_SingleBlock.java | 44 +- .../GT_Worldgen_Ore_SingleBlock_UnderLava.java | 46 +- .../java/gregtech/client/GT_GUI_ClientConfig.java | 24 +- src/main/java/gregtech/client/GT_SoundLoop.java | 13 +- .../java/gregtech/client/GT_TooltipHandler.java | 270 +- src/main/java/gregtech/common/GT_Client.java | 495 +- src/main/java/gregtech/common/GT_DummyWorld.java | 2 +- src/main/java/gregtech/common/GT_Network.java | 88 +- src/main/java/gregtech/common/GT_Pollution.java | 114 +- src/main/java/gregtech/common/GT_Proxy.java | 2160 +- src/main/java/gregtech/common/GT_RecipeAdder.java | 2640 ++- .../java/gregtech/common/GT_ThaumcraftCompat.java | 131 +- .../java/gregtech/common/GT_UndergroundOil.java | 53 +- .../gregtech/common/GT_Worldgen_GT_Ore_Layer.java | 511 +- .../common/GT_Worldgen_GT_Ore_SmallPieces.java | 78 +- .../java/gregtech/common/GT_Worldgen_Stone.java | 224 +- .../java/gregtech/common/GT_Worldgenerator.java | 378 +- .../gregtech/common/bees/GT_AlleleBeeSpecies.java | 22 +- .../java/gregtech/common/bees/GT_AlleleHelper.java | 152 +- .../java/gregtech/common/bees/GT_Bee_Mutation.java | 6 +- .../gregtech/common/blocks/GT_Block_Casings1.java | 10 +- .../gregtech/common/blocks/GT_Block_Casings2.java | 16 +- .../gregtech/common/blocks/GT_Block_Casings3.java | 6 +- .../gregtech/common/blocks/GT_Block_Casings4.java | 86 +- .../gregtech/common/blocks/GT_Block_Casings6.java | 4 +- .../gregtech/common/blocks/GT_Block_Casings8.java | 63 +- .../gregtech/common/blocks/GT_Block_Casings9.java | 5 +- .../common/blocks/GT_Block_Casings_Abstract.java | 7 +- .../gregtech/common/blocks/GT_Block_Concretes.java | 4 +- .../gregtech/common/blocks/GT_Block_Machines.java | 104 +- .../gregtech/common/blocks/GT_Block_Metal.java | 4 +- .../java/gregtech/common/blocks/GT_Block_Ores.java | 34 +- .../common/blocks/GT_Block_Ores_Abstract.java | 58 +- .../gregtech/common/blocks/GT_Block_Ores_UB1.java | 14 +- .../gregtech/common/blocks/GT_Block_Ores_UB2.java | 14 +- .../gregtech/common/blocks/GT_Block_Ores_UB3.java | 14 +- .../common/blocks/GT_Block_Reinforced.java | 174 +- .../gregtech/common/blocks/GT_Block_Stones.java | 16 +- .../common/blocks/GT_Block_Stones_Abstract.java | 102 +- .../gregtech/common/blocks/GT_Block_Storage.java | 3 +- .../gregtech/common/blocks/GT_Cyclotron_Coils.java | 5 +- .../gregtech/common/blocks/GT_Item_Casings5.java | 10 +- .../common/blocks/GT_Item_Casings_Abstract.java | 60 +- .../gregtech/common/blocks/GT_Item_Concretes.java | 5 +- .../common/blocks/GT_Item_LongDistancePipe.java | 10 +- .../gregtech/common/blocks/GT_Item_Machines.java | 161 +- .../java/gregtech/common/blocks/GT_Item_Ores.java | 24 +- .../common/blocks/GT_Item_Stones_Abstract.java | 5 +- .../gregtech/common/blocks/GT_TileEntity_Ores.java | 203 +- .../java/gregtech/common/covers/CoverInfo.java | 43 +- .../java/gregtech/common/covers/GT_Cover_Arm.java | 330 +- .../common/covers/GT_Cover_ControlsWork.java | 139 +- .../gregtech/common/covers/GT_Cover_Conveyor.java | 207 +- .../gregtech/common/covers/GT_Cover_Crafting.java | 16 +- .../gregtech/common/covers/GT_Cover_DoesWork.java | 100 +- .../gregtech/common/covers/GT_Cover_Drain.java | 87 +- .../gregtech/common/covers/GT_Cover_EUMeter.java | 183 +- .../common/covers/GT_Cover_FacadeBase.java | 185 +- .../common/covers/GT_Cover_FluidLimiter.java | 38 +- .../common/covers/GT_Cover_FluidRegulator.java | 357 +- .../covers/GT_Cover_FluidStorageMonitor.java | 90 +- .../common/covers/GT_Cover_Fluidfilter.java | 251 +- .../common/covers/GT_Cover_ItemFilter.java | 127 +- .../gregtech/common/covers/GT_Cover_ItemMeter.java | 168 +- .../java/gregtech/common/covers/GT_Cover_Lens.java | 2 +- .../common/covers/GT_Cover_LiquidMeter.java | 142 +- .../common/covers/GT_Cover_NeedMaintainance.java | 251 +- .../common/covers/GT_Cover_PlayerDetector.java | 103 +- .../java/gregtech/common/covers/GT_Cover_Pump.java | 223 +- .../common/covers/GT_Cover_RedstoneConductor.java | 12 +- .../covers/GT_Cover_RedstoneReceiverExternal.java | 12 +- .../covers/GT_Cover_RedstoneReceiverInternal.java | 8 +- .../common/covers/GT_Cover_RedstoneSignalizer.java | 20 +- .../GT_Cover_RedstoneTransmitterExternal.java | 4 +- .../GT_Cover_RedstoneTransmitterInternal.java | 6 +- .../covers/GT_Cover_RedstoneWirelessBase.java | 94 +- .../gregtech/common/covers/GT_Cover_Screen.java | 10 +- .../gregtech/common/covers/GT_Cover_Shutter.java | 141 +- .../common/covers/GT_Cover_SolarPanel.java | 32 +- .../common/covers/GT_Cover_SteamValve.java | 2 +- .../java/gregtech/common/covers/GT_Cover_Vent.java | 6 +- .../GT_Cover_AdvancedRedstoneReceiverBase.java | 106 +- .../GT_Cover_AdvancedRedstoneReceiverExternal.java | 10 +- .../GT_Cover_AdvancedRedstoneReceiverInternal.java | 6 +- .../GT_Cover_AdvancedRedstoneTransmitterBase.java | 42 +- ..._Cover_AdvancedRedstoneTransmitterExternal.java | 8 +- ..._Cover_AdvancedRedstoneTransmitterInternal.java | 8 +- .../GT_Cover_AdvancedWirelessRedstoneBase.java | 114 +- .../redstone/GT_Cover_WirelessFluidDetector.java | 38 +- .../redstone/GT_Cover_WirelessItemDetector.java | 102 +- .../GT_Cover_WirelessMaintenanceDetector.java | 48 +- .../gregtech/common/entities/GT_Entity_Arrow.java | 219 +- .../common/entities/GT_Entity_Arrow_Potion.java | 28 +- src/main/java/gregtech/common/fluid/GT_Fluid.java | 18 +- .../gregtech/common/fluid/GT_FluidBuilder.java | 2 +- .../gregtech/common/gui/modularui/UIHelper.java | 69 +- .../modularui/uifactory/SelectItemUIFactory.java | 92 +- .../modularui/widget/CoverCycleButtonWidget.java | 21 +- .../widget/CoverDataControllerWidget.java | 36 +- .../CoverDataFollower_CycleButtonWidget.java | 2 +- .../widget/CoverDataFollower_SlotWidget.java | 2 +- .../widget/CoverDataFollower_TextFieldWidget.java | 8 +- .../CoverDataFollower_ToggleButtonWidget.java | 19 +- .../gui/modularui/widget/DataControllerWidget.java | 2 +- .../modularui/widget/FluidDisplaySlotWidget.java | 33 +- src/main/java/gregtech/common/items/CombType.java | 24 +- src/main/java/gregtech/common/items/DropType.java | 12 +- .../common/items/GT_DepletetCell_Item.java | 6 +- .../gregtech/common/items/GT_FluidDisplayItem.java | 44 +- .../common/items/GT_IntegratedCircuit_Item.java | 224 +- .../common/items/GT_MetaGenerated_Item_01.java | 6807 ++++--- .../common/items/GT_MetaGenerated_Item_02.java | 4779 +++-- .../common/items/GT_MetaGenerated_Item_03.java | 1324 +- .../common/items/GT_MetaGenerated_Item_98.java | 22 +- .../common/items/GT_MetaGenerated_Item_99.java | 36 +- .../common/items/GT_MetaGenerated_Tool_01.java | 1123 +- .../common/items/GT_NeutronReflector_Item.java | 13 +- .../gregtech/common/items/GT_SensorCard_Item.java | 12 +- .../gregtech/common/items/GT_VolumetricFlask.java | 71 +- src/main/java/gregtech/common/items/ItemComb.java | 2573 ++- src/main/java/gregtech/common/items/ItemDrop.java | 126 +- .../java/gregtech/common/items/ItemPropolis.java | 33 +- .../java/gregtech/common/items/PollenType.java | 8 +- .../java/gregtech/common/items/PropolisType.java | 10 +- .../common/items/behaviors/Behaviour_Arrow.java | 48 +- .../items/behaviors/Behaviour_Arrow_Potion.java | 16 +- .../items/behaviors/Behaviour_Cover_Tool.java | 65 +- .../common/items/behaviors/Behaviour_Crowbar.java | 2 +- .../items/behaviors/Behaviour_DataStick.java | 4 +- .../common/items/behaviors/Behaviour_Hoe.java | 19 +- .../common/items/behaviors/Behaviour_Lighter.java | 39 +- .../common/items/behaviors/Behaviour_None.java | 10 +- .../behaviors/Behaviour_Plunger_Essentia.java | 15 +- .../items/behaviors/Behaviour_Plunger_Fluid.java | 33 +- .../items/behaviors/Behaviour_Plunger_Item.java | 46 +- .../items/behaviors/Behaviour_Prospecting.java | 75 +- .../common/items/behaviors/Behaviour_Scanner.java | 13 +- .../common/items/behaviors/Behaviour_Scoop.java | 33 +- .../items/behaviors/Behaviour_Screwdriver.java | 2 +- .../common/items/behaviors/Behaviour_Sense.java | 13 +- .../items/behaviors/Behaviour_SensorKit.java | 8 +- .../items/behaviors/Behaviour_SoftHammer.java | 105 +- .../items/behaviors/Behaviour_Sonictron.java | 14 +- .../items/behaviors/Behaviour_Spray_Color.java | 48 +- .../items/behaviors/Behaviour_Switch_Metadata.java | 2 +- .../common/items/behaviors/Behaviour_Wrench.java | 77 +- .../items/behaviors/Behaviour_WrittenBook.java | 6 +- src/main/java/gregtech/common/misc/GT_Command.java | 224 +- .../common/misc/GT_DrillingLogicDelegate.java | 62 +- .../misc/spaceprojects/SpaceProjectManager.java | 38 +- .../spaceprojects/SpaceProjectWorldSavedData.java | 128 +- .../common/misc/spaceprojects/base/SP_Upgrade.java | 28 +- .../misc/spaceprojects/base/SpaceProject.java | 20 +- .../misc/spaceprojects/commands/SPM_Command.java | 46 +- .../misc/spaceprojects/commands/SP_Command.java | 22 +- .../java/gregtech/common/power/FusionPower.java | 6 +- .../redstonecircuits/GT_Circuit_BasicLogic.java | 38 +- .../common/redstonecircuits/GT_Circuit_BitAnd.java | 9 +- .../common/redstonecircuits/GT_Circuit_Equals.java | 7 +- .../common/redstonecircuits/GT_Circuit_Pulser.java | 8 +- .../redstonecircuits/GT_Circuit_Randomizer.java | 5 +- .../redstonecircuits/GT_Circuit_RedstoneMeter.java | 5 +- .../common/redstonecircuits/GT_Circuit_Timer.java | 4 +- .../gregtech/common/render/GT_CapeRenderer.java | 66 +- .../common/render/GT_CopiedBlockTexture.java | 12 +- .../common/render/GT_CopiedCTMBlockTexture.java | 24 +- .../gregtech/common/render/GT_FlaskRenderer.java | 20 +- .../render/GT_FluidDisplayStackRenderer.java | 16 +- .../render/GT_MetaGenerated_Tool_Renderer.java | 148 +- .../common/render/GT_PollutionRenderer.java | 34 +- .../java/gregtech/common/render/GT_RenderUtil.java | 4 +- .../gregtech/common/render/GT_RenderedTexture.java | 119 +- .../gregtech/common/render/GT_Renderer_Block.java | 740 +- .../gregtech/common/render/GT_SidedTexture.java | 8 +- .../gregtech/common/render/GT_TextureBuilder.java | 22 +- .../render/items/CosmicNeutroniumRenderer.java | 16 +- .../render/items/GT_GeneratedItem_Renderer.java | 58 +- .../items/GT_GeneratedMaterial_Renderer.java | 56 +- .../items/GT_MetaGenerated_Item_Renderer.java | 4 +- .../common/render/items/GaiaSpiritRenderer.java | 16 +- .../common/render/items/InfinityRenderer.java | 2 +- .../render/items/TranscendentMetalRenderer.java | 46 +- .../common/render/items/UniversiumRenderer.java | 61 +- .../automation/GT_MetaTileEntity_ChestBuffer.java | 48 +- .../automation/GT_MetaTileEntity_Filter.java | 156 +- .../GT_MetaTileEntity_ItemDistributor.java | 69 +- .../automation/GT_MetaTileEntity_RecipeFilter.java | 36 +- .../automation/GT_MetaTileEntity_Regulator.java | 135 +- .../automation/GT_MetaTileEntity_SuperBuffer.java | 46 +- .../automation/GT_MetaTileEntity_TypeFilter.java | 78 +- .../boilers/GT_MetaTileEntity_Boiler.java | 142 +- .../boilers/GT_MetaTileEntity_Boiler_Bronze.java | 281 +- .../boilers/GT_MetaTileEntity_Boiler_Lava.java | 232 +- .../boilers/GT_MetaTileEntity_Boiler_Solar.java | 116 +- .../GT_MetaTileEntity_Boiler_Solar_Steel.java | 24 +- .../boilers/GT_MetaTileEntity_Boiler_Steel.java | 35 +- .../casings/upgrade/InventoryUpgrade.java | 23 +- .../GT_MetaTileEntity_AdvDebugStructureWriter.java | 241 +- .../GT_MetaTileEntity_DieselGenerator.java | 178 +- .../generators/GT_MetaTileEntity_GasTurbine.java | 180 +- .../generators/GT_MetaTileEntity_LightningRod.java | 41 +- .../GT_MetaTileEntity_MagicEnergyConverter.java | 102 +- .../GT_MetaTileEntity_MagicalEnergyAbsorber.java | 227 +- .../GT_MetaTileEntity_NaquadahReactor.java | 113 +- .../GT_MetaTileEntity_PlasmaGenerator.java | 50 +- .../generators/GT_MetaTileEntity_SteamTurbine.java | 145 +- .../GT_MetaTileEntity_BasicHull_Bronze.java | 19 +- .../GT_MetaTileEntity_BasicHull_BronzeBricks.java | 29 +- .../GT_MetaTileEntity_BasicHull_Steel.java | 14 +- .../GT_MetaTileEntity_BasicHull_SteelBricks.java | 29 +- .../GT_MetaTileEntity_Hatch_InputBus_ME.java | 241 +- .../GT_MetaTileEntity_Hatch_OutputBus_ME.java | 83 +- .../GT_MetaTileEntity_Hatch_Output_ME.java | 70 +- .../GT_MetaTileEntity_AdvSeismicProspector.java | 245 +- .../basic/GT_MetaTileEntity_Boxinator.java | 185 +- .../machines/basic/GT_MetaTileEntity_Charger.java | 53 +- .../basic/GT_MetaTileEntity_CuringOven.java | 107 +- .../basic/GT_MetaTileEntity_IndustrialApiary.java | 651 +- .../basic/GT_MetaTileEntity_Massfabricator.java | 148 +- ..._MetaTileEntity_MicrowaveEnergyTransmitter.java | 197 +- .../machines/basic/GT_MetaTileEntity_Miner.java | 225 +- .../basic/GT_MetaTileEntity_MonsterRepellent.java | 74 +- .../basic/GT_MetaTileEntity_PotionBrewer.java | 159 +- .../machines/basic/GT_MetaTileEntity_Printer.java | 56 +- .../machines/basic/GT_MetaTileEntity_Pump.java | 285 +- .../basic/GT_MetaTileEntity_Replicator.java | 157 +- .../basic/GT_MetaTileEntity_RockBreaker.java | 156 +- .../machines/basic/GT_MetaTileEntity_Scanner.java | 271 +- .../basic/GT_MetaTileEntity_SeismicProspector.java | 301 +- .../basic/GT_MetaTileEntity_Teleporter.java | 294 +- ...GT_MetaTileEntity_LongDistancePipelineBase.java | 72 +- ...T_MetaTileEntity_LongDistancePipelineFluid.java | 16 +- ...GT_MetaTileEntity_LongDistancePipelineItem.java | 16 +- .../GT_MetaTileEntity_AbstractMultiFurnace.java | 8 +- .../multi/GT_MetaTileEntity_AssemblyLine.java | 363 +- .../GT_MetaTileEntity_BrickedBlastFurnace.java | 41 +- .../GT_MetaTileEntity_BronzeBlastFurnace.java | 10 +- .../multi/GT_MetaTileEntity_Charcoal_Pit.java | 112 +- .../multi/GT_MetaTileEntity_Cleanroom.java | 161 +- .../GT_MetaTileEntity_ConcreteBackfillerBase.java | 57 +- .../multi/GT_MetaTileEntity_DieselEngine.java | 228 +- .../multi/GT_MetaTileEntity_DistillationTower.java | 271 +- .../multi/GT_MetaTileEntity_DrillerBase.java | 200 +- .../GT_MetaTileEntity_ElectricBlastFurnace.java | 308 +- .../GT_MetaTileEntity_ExtremeDieselEngine.java | 170 +- .../multi/GT_MetaTileEntity_FusionComputer.java | 411 +- .../multi/GT_MetaTileEntity_FusionComputer1.java | 50 +- .../multi/GT_MetaTileEntity_FusionComputer2.java | 50 +- .../multi/GT_MetaTileEntity_FusionComputer3.java | 50 +- .../multi/GT_MetaTileEntity_HeatExchanger.java | 276 +- .../GT_MetaTileEntity_ImplosionCompressor.java | 76 +- .../GT_MetaTileEntity_IntegratedOreFactory.java | 429 +- .../multi/GT_MetaTileEntity_LargeBoiler.java | 217 +- .../GT_MetaTileEntity_LargeChemicalReactor.java | 229 +- .../multi/GT_MetaTileEntity_LargeTurbine.java | 242 +- .../multi/GT_MetaTileEntity_LargeTurbine_Gas.java | 58 +- ...GT_MetaTileEntity_LargeTurbine_GasAdvanced.java | 58 +- .../GT_MetaTileEntity_LargeTurbine_HPSteam.java | 82 +- .../GT_MetaTileEntity_LargeTurbine_Plasma.java | 210 +- .../GT_MetaTileEntity_LargeTurbine_Steam.java | 82 +- .../multi/GT_MetaTileEntity_MultiFurnace.java | 260 +- .../multi/GT_MetaTileEntity_NanoForge.java | 316 +- .../multi/GT_MetaTileEntity_OilCracker.java | 227 +- .../multi/GT_MetaTileEntity_OilDrillBase.java | 162 +- .../multi/GT_MetaTileEntity_OilDrillInfinite.java | 28 +- .../GT_MetaTileEntity_OreDrillingPlantBase.java | 132 +- .../multi/GT_MetaTileEntity_PCBFactory.java | 1442 +- .../multi/GT_MetaTileEntity_PlasmaForge.java | 1194 +- .../GT_MetaTileEntity_PrimitiveBlastFurnace.java | 253 +- .../multi/GT_MetaTileEntity_ProcessingArray.java | 325 +- .../multi/GT_MetaTileEntity_PyrolyseOven.java | 172 +- .../GT_MetaTileEntity_TranscendentPlasmaMixer.java | 134 +- .../multi/GT_MetaTileEntity_VacuumFreezer.java | 72 +- .../machines/multiblock/MultiBlock_CokeOven.java | 58 +- .../machines/multiblock/MultiBlock_Macerator.java | 157 +- .../GT_MetaTileEntity_AlloySmelter_Bronze.java | 88 +- .../GT_MetaTileEntity_AlloySmelter_Steel.java | 88 +- .../steam/GT_MetaTileEntity_Compressor_Bronze.java | 85 +- .../steam/GT_MetaTileEntity_Compressor_Steel.java | 85 +- .../steam/GT_MetaTileEntity_Extractor_Bronze.java | 82 +- .../steam/GT_MetaTileEntity_Extractor_Steel.java | 82 +- .../GT_MetaTileEntity_ForgeHammer_Bronze.java | 82 +- .../steam/GT_MetaTileEntity_ForgeHammer_Steel.java | 82 +- .../steam/GT_MetaTileEntity_Furnace_Bronze.java | 84 +- .../steam/GT_MetaTileEntity_Furnace_Steel.java | 83 +- .../steam/GT_MetaTileEntity_Macerator_Bronze.java | 117 +- .../steam/GT_MetaTileEntity_Macerator_Steel.java | 117 +- .../GT_MetaTileEntity_DigitalChestBase.java | 205 +- .../storage/GT_MetaTileEntity_DigitalTankBase.java | 418 +- .../storage/GT_MetaTileEntity_Locker.java | 6 +- .../storage/GT_MetaTileEntity_QuantumTank.java | 36 +- .../storage/GT_MetaTileEntity_SuperTank.java | 34 +- src/main/java/gregtech/common/tools/GT_Tool.java | 18 +- .../java/gregtech/common/tools/GT_Tool_Axe.java | 38 +- .../common/tools/GT_Tool_BranchCutter.java | 28 +- .../common/tools/GT_Tool_ButcheryKnife.java | 14 +- .../gregtech/common/tools/GT_Tool_BuzzSaw.java | 20 +- .../gregtech/common/tools/GT_Tool_Chainsaw_HV.java | 6 +- .../gregtech/common/tools/GT_Tool_Chainsaw_LV.java | 57 +- .../gregtech/common/tools/GT_Tool_Chainsaw_MV.java | 6 +- .../gregtech/common/tools/GT_Tool_Crowbar.java | 14 +- .../gregtech/common/tools/GT_Tool_Drill_HV.java | 6 +- .../gregtech/common/tools/GT_Tool_Drill_LV.java | 44 +- .../gregtech/common/tools/GT_Tool_Drill_MV.java | 6 +- .../java/gregtech/common/tools/GT_Tool_File.java | 20 +- .../gregtech/common/tools/GT_Tool_HardHammer.java | 59 +- .../java/gregtech/common/tools/GT_Tool_Hoe.java | 24 +- .../gregtech/common/tools/GT_Tool_JackHammer.java | 44 +- .../java/gregtech/common/tools/GT_Tool_Knife.java | 24 +- .../java/gregtech/common/tools/GT_Tool_Mortar.java | 12 +- .../gregtech/common/tools/GT_Tool_Pickaxe.java | 34 +- .../java/gregtech/common/tools/GT_Tool_Plow.java | 50 +- .../gregtech/common/tools/GT_Tool_Plunger.java | 24 +- .../gregtech/common/tools/GT_Tool_RollingPin.java | 12 +- .../java/gregtech/common/tools/GT_Tool_Saw.java | 59 +- .../java/gregtech/common/tools/GT_Tool_Scoop.java | 16 +- .../gregtech/common/tools/GT_Tool_Screwdriver.java | 40 +- .../common/tools/GT_Tool_Screwdriver_LV.java | 8 +- .../java/gregtech/common/tools/GT_Tool_Sense.java | 48 +- .../java/gregtech/common/tools/GT_Tool_Shovel.java | 36 +- .../gregtech/common/tools/GT_Tool_SoftHammer.java | 22 +- .../common/tools/GT_Tool_Soldering_Iron.java | 36 +- .../java/gregtech/common/tools/GT_Tool_Sword.java | 34 +- .../gregtech/common/tools/GT_Tool_Turbine.java | 16 +- .../common/tools/GT_Tool_UniversalSpade.java | 62 +- .../gregtech/common/tools/GT_Tool_WireCutter.java | 14 +- .../java/gregtech/common/tools/GT_Tool_Wrench.java | 25 +- .../gregtech/common/tools/GT_Tool_Wrench_HV.java | 8 +- .../gregtech/common/tools/GT_Tool_Wrench_LV.java | 10 +- .../gregtech/common/tools/GT_Tool_Wrench_MV.java | 8 +- .../crossmod/GregtechWailaDataProvider.java | 8 +- src/main/java/gregtech/loaders/ExtraIcons.java | 28 +- .../java/gregtech/loaders/load/GT_FuelLoader.java | 242 +- .../gregtech/loaders/load/GT_ItemIterator.java | 531 +- .../gregtech/loaders/load/GT_SonictronLoader.java | 4 +- .../materialprocessing/ProcessingConfig.java | 52 +- .../gregtech/loaders/misc/GT_Achievements.java | 1136 +- .../gregtech/loaders/misc/GT_BeeDefinition.java | 1368 +- src/main/java/gregtech/loaders/misc/GT_Bees.java | 8 +- .../gregtech/loaders/misc/GT_BranchDefinition.java | 6 +- .../java/gregtech/loaders/misc/GT_CoverLoader.java | 30 +- .../loaders/oreprocessing/ProcessingAll.java | 10 +- .../loaders/oreprocessing/ProcessingArrows.java | 133 +- .../loaders/oreprocessing/ProcessingBeans.java | 6 +- .../loaders/oreprocessing/ProcessingBlock.java | 110 +- .../loaders/oreprocessing/ProcessingBolt.java | 10 +- .../loaders/oreprocessing/ProcessingCell.java | 121 +- .../loaders/oreprocessing/ProcessingCircuit.java | 19 +- .../oreprocessing/ProcessingCompressed.java | 8 +- .../loaders/oreprocessing/ProcessingCrafting.java | 682 +- .../loaders/oreprocessing/ProcessingCrate.java | 108 +- .../loaders/oreprocessing/ProcessingCrop.java | 141 +- .../oreprocessing/ProcessingCrushedOre.java | 82 +- .../oreprocessing/ProcessingCrystallized.java | 20 +- .../loaders/oreprocessing/ProcessingDirty.java | 182 +- .../loaders/oreprocessing/ProcessingDust.java | 546 +- .../loaders/oreprocessing/ProcessingDye.java | 94 +- .../loaders/oreprocessing/ProcessingFineWire.java | 10 +- .../loaders/oreprocessing/ProcessingFoil.java | 16 +- .../loaders/oreprocessing/ProcessingFood.java | 103 +- .../loaders/oreprocessing/ProcessingGear.java | 70 +- .../loaders/oreprocessing/ProcessingGem.java | 344 +- .../loaders/oreprocessing/ProcessingIngot.java | 225 +- .../loaders/oreprocessing/ProcessingItem.java | 4 +- .../loaders/oreprocessing/ProcessingLens.java | 62 +- .../loaders/oreprocessing/ProcessingLog.java | 427 +- .../loaders/oreprocessing/ProcessingNugget.java | 56 +- .../loaders/oreprocessing/ProcessingOre.java | 296 +- .../loaders/oreprocessing/ProcessingOrePoor.java | 32 +- .../oreprocessing/ProcessingOreSmelting.java | 148 +- .../loaders/oreprocessing/ProcessingPipe.java | 124 +- .../loaders/oreprocessing/ProcessingPlank.java | 176 +- .../loaders/oreprocessing/ProcessingPlate.java | 440 +- .../loaders/oreprocessing/ProcessingPure.java | 34 +- .../loaders/oreprocessing/ProcessingRecycling.java | 16 +- .../loaders/oreprocessing/ProcessingRotor.java | 64 +- .../loaders/oreprocessing/ProcessingRound.java | 28 +- .../loaders/oreprocessing/ProcessingSand.java | 20 +- .../loaders/oreprocessing/ProcessingSaplings.java | 22 +- .../loaders/oreprocessing/ProcessingScrew.java | 18 +- .../loaders/oreprocessing/ProcessingShaping.java | 628 +- .../loaders/oreprocessing/ProcessingSlab.java | 18 +- .../loaders/oreprocessing/ProcessingStick.java | 70 +- .../loaders/oreprocessing/ProcessingStickLong.java | 44 +- .../loaders/oreprocessing/ProcessingStone.java | 264 +- .../oreprocessing/ProcessingStoneCobble.java | 44 +- .../oreprocessing/ProcessingStoneVarious.java | 22 +- .../loaders/oreprocessing/ProcessingToolHead.java | 1956 +- .../loaders/oreprocessing/ProcessingToolOther.java | 209 +- .../oreprocessing/ProcessingTransforming.java | 153 +- .../loaders/oreprocessing/ProcessingWax.java | 2 +- .../loaders/oreprocessing/ProcessingWire.java | 452 +- .../loaders/postload/GT_BookAndLootLoader.java | 802 +- .../loaders/postload/GT_CraftingRecipeLoader.java | 3396 ++-- .../gregtech/loaders/postload/GT_CropLoader.java | 1943 +- .../loaders/postload/GT_FakeRecipeLoader.java | 12 +- .../postload/GT_ItemMaxStacksizeLoader.java | 2 +- .../loaders/postload/GT_MachineRecipeLoader.java | 2 +- .../gregtech/loaders/postload/GT_PostLoad.java | 660 +- .../postload/GT_ProcessingArrayRecipeLoader.java | 155 +- .../postload/GT_RecyclerBlacklistLoader.java | 100 +- .../loaders/postload/GT_Worldgenloader.java | 4202 ++-- .../gregtech/loaders/postload/PartP2PGTPower.java | 2 +- .../postload/chains/GT_BauxiteRefineChain.java | 432 +- .../loaders/postload/chains/GT_NaniteChain.java | 260 +- .../postload/chains/GT_PCBFactoryRecipes.java | 769 +- .../postload/recipes/AlloySmelterRecipes.java | 172 +- .../postload/recipes/ArcFurnaceRecipes.java | 996 +- .../loaders/postload/recipes/AssemblerRecipes.java | 14226 +++++++------- .../postload/recipes/AssemblyLineRecipes.java | 1390 +- .../loaders/postload/recipes/AutoclaveRecipes.java | 464 +- .../loaders/postload/recipes/BenderRecipes.java | 712 +- .../postload/recipes/BlastFurnaceRecipes.java | 1166 +- .../loaders/postload/recipes/BreweryRecipes.java | 838 +- .../loaders/postload/recipes/CannerRecipes.java | 100 +- .../postload/recipes/CentrifugeRecipes.java | 1774 +- .../postload/recipes/ChemicalBathRecipes.java | 502 +- .../loaders/postload/recipes/ChemicalRecipes.java | 10433 +++++----- .../postload/recipes/CircuitAssemblerRecipes.java | 486 +- .../postload/recipes/CompressorRecipes.java | 290 +- .../postload/recipes/CropProcessingRecipes.java | 59 +- .../loaders/postload/recipes/CuttingRecipes.java | 357 +- .../postload/recipes/DistilleryRecipes.java | 2214 ++- .../postload/recipes/ElectrolyzerRecipes.java | 464 +- .../recipes/ElectromagneticSeparatorRecipes.java | 16 +- .../loaders/postload/recipes/ExtractorRecipes.java | 30 +- .../loaders/postload/recipes/ExtruderRecipes.java | 28 +- .../loaders/postload/recipes/FermenterRecipes.java | 788 +- .../postload/recipes/FluidCannerRecipes.java | 112 +- .../postload/recipes/FluidExtractorRecipes.java | 1210 +- .../postload/recipes/FluidHeaterRecipes.java | 128 +- .../postload/recipes/FluidSolidifierRecipes.java | 1026 +- .../postload/recipes/ForgeHammerRecipes.java | 312 +- .../postload/recipes/FormingPressRecipes.java | 334 +- .../loaders/postload/recipes/FuelRecipes.java | 366 +- .../postload/recipes/FusionReactorRecipes.java | 498 +- .../recipes/ImplosionCompressorRecipes.java | 96 +- .../postload/recipes/LaserEngraverRecipes.java | 64 +- .../loaders/postload/recipes/LatheRecipes.java | 36 +- .../postload/recipes/MatterAmplifierRecipes.java | 28 +- .../loaders/postload/recipes/MixerRecipes.java | 3288 ++-- .../loaders/postload/recipes/NEIHiding.java | 16 +- .../postload/recipes/OreDictUnification.java | 10 +- .../loaders/postload/recipes/PackagerRecipes.java | 68 +- .../postload/recipes/PlasmaForgeRecipes.java | 46 +- .../loaders/postload/recipes/PrinterRecipes.java | 76 +- .../loaders/postload/recipes/Pulverizer.java | 1158 +- .../loaders/postload/recipes/PyrolyseRecipes.java | 184 +- .../loaders/postload/recipes/RecipeRemover.java | 138 +- .../loaders/postload/recipes/SifterRecipes.java | 56 +- .../loaders/postload/recipes/SlicerRecipes.java | 56 +- .../loaders/postload/recipes/SmelterRecipes.java | 39 +- .../postload/recipes/ThaumcraftRecipes.java | 1643 +- .../postload/recipes/ThermalCentrifugeRecipes.java | 20 +- .../recipes/TranscendentPlasmaMixerRecipes.java | 164 +- .../postload/recipes/VacuumFreezerRecipes.java | 755 +- .../loaders/postload/recipes/WiremillRecipes.java | 356 +- .../loaders/preload/GT_Loader_ItemData.java | 623 +- .../preload/GT_Loader_Item_Block_And_Fluid.java | 3349 ++-- .../preload/GT_Loader_MetaTileEntities.java | 19669 +++++++++---------- .../preload/GT_Loader_MultiTileEntities.java | 126 +- .../loaders/preload/GT_Loader_OreDictionary.java | 531 +- .../java/gregtech/loaders/preload/GT_PreLoad.java | 843 +- .../java/gregtech/nei/GT_NEI_DefaultHandler.java | 403 +- src/main/java/gregtech/nei/NEIRecipeInfo.java | 2 +- src/main/java/gregtech/nei/NEI_GT_Config.java | 26 +- src/main/java/gregtech/nei/RecipeMapHandler.java | 7 +- .../java/gregtech/nei/dumper/GregTechIDDumper.java | 4 +- .../java/gregtech/nei/dumper/MaterialDumper.java | 4 +- .../java/gregtech/nei/dumper/MetaItemDumper.java | 6 +- .../gregtech/nei/dumper/MetaTileEntityDumper.java | 8 +- .../overclock/GT_OverclockCalculator_UnitTest.java | 254 +- 724 files changed, 91383 insertions(+), 98082 deletions(-) (limited to 'src') diff --git a/src/main/java/gregtech/GT_Mod.java b/src/main/java/gregtech/GT_Mod.java index f09bf563e8..cda731540b 100644 --- a/src/main/java/gregtech/GT_Mod.java +++ b/src/main/java/gregtech/GT_Mod.java @@ -94,49 +94,49 @@ import ic2.api.recipe.IRecipeInput; import ic2.api.recipe.RecipeOutput; @Mod( - modid = Mods.Names.GREG_TECH, - name = "GregTech", - version = "MC1710", - guiFactory = "gregtech.client.GT_GuiFactory", - dependencies = " required-after:IC2;" + " required-after:structurelib;" - + " required-after:gtnhlib@[0.0.8,);" - + " required-after:modularui;" - + " after:dreamcraft;" - + " after:Forestry;" - + " after:PFAAGeologica;" - + " after:Thaumcraft;" - + " after:Railcraft;" - + " required-after:appliedenergistics2;" - + " after:ThermalExpansion;" - + " after:TwilightForest;" - + " after:harvestcraft;" - + " after:magicalcrops;" - + " after:Botania;" - + " 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;" - + " after:UndergroundBiomes;" - + " after:TConstruct;" - + " after:Translocator;" - + " after:gendustry;") + modid = Mods.Names.GREG_TECH, + name = "GregTech", + version = "MC1710", + guiFactory = "gregtech.client.GT_GuiFactory", + dependencies = " required-after:IC2;" + " required-after:structurelib;" + + " required-after:gtnhlib@[0.0.8,);" + + " required-after:modularui;" + + " after:dreamcraft;" + + " after:Forestry;" + + " after:PFAAGeologica;" + + " after:Thaumcraft;" + + " after:Railcraft;" + + " required-after:appliedenergistics2;" + + " after:ThermalExpansion;" + + " after:TwilightForest;" + + " after:harvestcraft;" + + " after:magicalcrops;" + + " after:Botania;" + + " 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;" + + " after:UndergroundBiomes;" + + " after:TConstruct;" + + " after:Translocator;" + + " after:gendustry;") public class GT_Mod implements IGT_Mod { @Deprecated // Keep for use in BaseMetaTileEntity @@ -153,9 +153,9 @@ public class GT_Mod implements IGT_Mod { public static GT_Mod instance; @SidedProxy( - modId = Mods.Names.GREG_TECH, - clientSide = "gregtech.common.GT_Client", - serverSide = "gregtech.common.GT_Server") + modId = Mods.Names.GREG_TECH, + clientSide = "gregtech.common.GT_Client", + serverSide = "gregtech.common.GT_Server") public static GT_Proxy gregtechproxy; public static int MAX_IC2 = 2147483647; @@ -166,15 +166,15 @@ public class GT_Mod implements IGT_Mod { 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)) { + || (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."); + "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."); } } @@ -231,9 +231,9 @@ public class GT_Mod implements IGT_Mod { Configuration tMainConfig = GT_PreLoad.getConfiguration(aEvent.getModConfigurationDirectory()); GT_PreLoad.initCompat(); GT_PreLoad.createLogFiles( - aEvent.getModConfigurationDirectory() - .getParentFile(), - tMainConfig); + aEvent.getModConfigurationDirectory() + .getParentFile(), + tMainConfig); gregtechproxy.onPreLoad(); @@ -251,19 +251,13 @@ public class GT_Mod implements IGT_Mod { tMainConfig.save(); GT_PreLoad.initLocalization( - aEvent.getModConfigurationDirectory() - .getParentFile()); + aEvent.getModConfigurationDirectory() + .getParentFile()); GT_PreLoad.adjustScrap(); 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); + EntityRegistry + .registerModEntity(GT_Entity_Arrow_Potion.class, "GT_Entity_Arrow_Potion", 2, GT_Values.GT, 160, 1, true); GT_PreLoad.runMineTweakerCompat(); @@ -293,9 +287,8 @@ public class GT_Mod implements IGT_Mod { } if (FMLCommonHandler.instance() - .getEffectiveSide() - .isServer()) - GT_Assemblyline_Server.fillMap(aEvent); + .getEffectiveSide() + .isServer()) GT_Assemblyline_Server.fillMap(aEvent); } @Mod.EventHandler @@ -399,41 +392,41 @@ public class GT_Mod implements IGT_Mod { new GT_CoverLoader().run(); GT_RecipeRegistrator.registerUsagesForMaterials( - null, - false, - new ItemStack(Blocks.planks, 1), - new ItemStack(Blocks.cobblestone, 1), - new ItemStack(Blocks.stone, 1), - new ItemStack(Items.leather, 1)); + null, + false, + new ItemStack(Blocks.planks, 1), + new ItemStack(Blocks.cobblestone, 1), + new ItemStack(Blocks.stone, 1), + new ItemStack(Items.leather, 1)); GT_OreDictUnificator.addItemData( - GT_ModHandler.getRecipeOutput( - null, - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Tin, 1L), - null, - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Tin, 1L), - null, - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Tin, 1L), - null, - null, - null), - new ItemData(Materials.Tin, 10886400L)); + GT_ModHandler.getRecipeOutput( + null, + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Tin, 1L), + null, + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Tin, 1L), + null, + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Tin, 1L), + null, + null, + null), + new ItemData(Materials.Tin, 10886400L)); if (!GregTech_API.sRecipeFile.get(ConfigCategories.Recipes.storageblockcrafting, "tile.glowstone", false)) { GT_ModHandler.removeRecipe( - new ItemStack(Items.glowstone_dust, 1), - new ItemStack(Items.glowstone_dust, 1), - null, - new ItemStack(Items.glowstone_dust, 1), - new ItemStack(Items.glowstone_dust, 1)); + new ItemStack(Items.glowstone_dust, 1), + new ItemStack(Items.glowstone_dust, 1), + null, + new ItemStack(Items.glowstone_dust, 1), + new ItemStack(Items.glowstone_dust, 1)); } GT_ModHandler.removeRecipeDelayed( - new ItemStack(Blocks.wooden_slab, 1, 0), - new ItemStack(Blocks.wooden_slab, 1, 1), - new ItemStack(Blocks.wooden_slab, 1, 2)); + new ItemStack(Blocks.wooden_slab, 1, 0), + new ItemStack(Blocks.wooden_slab, 1, 1), + new ItemStack(Blocks.wooden_slab, 1, 2)); GT_ModHandler.addCraftingRecipe( - new ItemStack(Blocks.wooden_slab, 6, 0), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "WWW", 'W', new ItemStack(Blocks.planks, 1, 0) }); + new ItemStack(Blocks.wooden_slab, 6, 0), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "WWW", 'W', new ItemStack(Blocks.planks, 1, 0) }); // Save a copy of these list before activateOreDictHandler(), then loop over them. Map aMaceratorRecipeList = GT_ModHandler.getMaceratorRecipeList(); @@ -443,24 +436,24 @@ public class GT_Mod implements IGT_Mod { Map aThermalCentrifugeRecipeList = GT_ModHandler.getThermalCentrifugeRecipeList(); GT_Log.out.println( - "GT_Mod: Activating OreDictionary Handler, this can take some time, as it scans the whole OreDictionary"); + "GT_Mod: Activating OreDictionary Handler, this can take some time, as it scans the whole OreDictionary"); GT_FML_LOGGER.info( - "If your Log stops here, you were too impatient. Wait a bit more next time, before killing Minecraft with the Task Manager."); + "If your Log stops here, you were too impatient. Wait a bit more next time, before killing Minecraft with the Task Manager."); GT_PostLoad.activateOreDictHandler(); GT_PostLoad.replaceVanillaMaterials(); GT_PostLoad.removeIc2Recipes( - aMaceratorRecipeList, - aCompressorRecipeList, - aExtractorRecipeList, - aOreWashingRecipeList, - aThermalCentrifugeRecipeList); + aMaceratorRecipeList, + aCompressorRecipeList, + aExtractorRecipeList, + aOreWashingRecipeList, + aThermalCentrifugeRecipeList); if (GT_Values.D1) { GT_ModHandler.sSingleNonBlockDamagableRecipeList.forEach( - iRecipe -> GT_Log.out.println( - "=> " + iRecipe.getRecipeOutput() - .getDisplayName())); + iRecipe -> GT_Log.out.println( + "=> " + iRecipe.getRecipeOutput() + .getDisplayName())); } new GT_CraftingRecipeLoader().run(); if (GregTech_API.sRecipeFile.get(ConfigCategories.Recipes.disabledrecipes, "ic2forgehammer", true)) { @@ -468,10 +461,10 @@ public class GT_Mod implements IGT_Mod { } GT_ModHandler.removeRecipeByOutput(GT_ModHandler.getIC2Item("machine", 1L)); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("machine", 1L), - GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "RRR", "RwR", "RRR", 'R', OrePrefixes.plate.get(Materials.Iron) }); + GT_ModHandler.getIC2Item("machine", 1L), + GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "RRR", "RwR", "RRR", 'R', OrePrefixes.plate.get(Materials.Iron) }); GT_PostLoad.registerFluidCannerRecipes(); @@ -482,28 +475,26 @@ public class GT_Mod implements IGT_Mod { if (GregTech_API.mAE2) { GT_MetaTileEntity_DigitalChestBase.registerAEIntegration(); ItemStack facade = AEApi.instance() - .definitions() - .items() - .facade() - .maybeItem() - .transform(i -> new ItemStack(i, 1, GT_Values.W)) - .orNull(); + .definitions() + .items() + .facade() + .maybeItem() + .transform(i -> new ItemStack(i, 1, GT_Values.W)) + .orNull(); if (facade != null) { GregTech_API.registerCover(facade, null, new GT_Cover_FacadeAE()); } } - Arrays.stream( + Arrays + .stream( new String[] { "blastfurnace", "blockcutter", "inductionFurnace", "generator", "windMill", "waterMill", - "solarPanel", "centrifuge", "electrolyzer", "compressor", "electroFurnace", "extractor", - "macerator", "recycler", "metalformer", "orewashingplant", "massFabricator", "replicator", }) - .filter( - tName -> GregTech_API.sRecipeFile.get( - ConfigCategories.Recipes.disabledrecipes, - aTextIC2 + tName, - true)) - .map(tName -> GT_ModHandler.getIC2Item(tName, 1L)) - .forEach(GT_ModHandler::removeRecipeByOutputDelayed); + "solarPanel", "centrifuge", "electrolyzer", "compressor", "electroFurnace", "extractor", + "macerator", "recycler", "metalformer", "orewashingplant", "massFabricator", "replicator", }) + .filter( + tName -> GregTech_API.sRecipeFile.get(ConfigCategories.Recipes.disabledrecipes, aTextIC2 + tName, true)) + .map(tName -> GT_ModHandler.getIC2Item(tName, 1L)) + .forEach(GT_ModHandler::removeRecipeByOutputDelayed); GT_PostLoad.nerfVanillaTools(); new GT_ExtremeDieselFuelLoader().run(); @@ -585,143 +576,143 @@ public class GT_Mod implements IGT_Mod { gregtechproxy.onServerStarting(); // Check for more IC2 recipes on ServerStart to also catch MineTweaker additions GT_ModHandler.addIC2RecipesToGT( - GT_ModHandler.getMaceratorRecipeList(), - GT_Recipe.GT_Recipe_Map.sMaceratorRecipes, - true, - true, - true); + GT_ModHandler.getMaceratorRecipeList(), + GT_Recipe.GT_Recipe_Map.sMaceratorRecipes, + true, + true, + true); GT_ModHandler.addIC2RecipesToGT( - GT_ModHandler.getCompressorRecipeList(), - GT_Recipe.GT_Recipe_Map.sCompressorRecipes, - true, - true, - true); + GT_ModHandler.getCompressorRecipeList(), + GT_Recipe.GT_Recipe_Map.sCompressorRecipes, + true, + true, + true); GT_ModHandler.addIC2RecipesToGT( - GT_ModHandler.getExtractorRecipeList(), - GT_Recipe.GT_Recipe_Map.sExtractorRecipes, - true, - true, - true); + GT_ModHandler.getExtractorRecipeList(), + GT_Recipe.GT_Recipe_Map.sExtractorRecipes, + true, + true, + true); GT_ModHandler.addIC2RecipesToGT( - GT_ModHandler.getOreWashingRecipeList(), - GT_Recipe.GT_Recipe_Map.sOreWasherRecipes, - false, - true, - true); + GT_ModHandler.getOreWashingRecipeList(), + GT_Recipe.GT_Recipe_Map.sOreWasherRecipes, + false, + true, + true); GT_ModHandler.addIC2RecipesToGT( - GT_ModHandler.getThermalCentrifugeRecipeList(), - GT_Recipe.GT_Recipe_Map.sThermalCentrifugeRecipes, - true, - true, - true); + GT_ModHandler.getThermalCentrifugeRecipeList(), + GT_Recipe.GT_Recipe_Map.sThermalCentrifugeRecipes, + true, + true, + true); GT_Log.out.println("GT_Mod: Unificating outputs of all known Recipe Types."); ArrayList tStacks = new ArrayList<>(10000); GT_Log.out.println("GT_Mod: IC2 Machines"); ic2.api.recipe.Recipes.cannerBottle.getRecipes() - .values() - .stream() - .map(t -> t.items) - .forEach(tStacks::addAll); + .values() + .stream() + .map(t -> t.items) + .forEach(tStacks::addAll); ic2.api.recipe.Recipes.centrifuge.getRecipes() - .values() - .stream() - .map(t -> t.items) - .forEach(tStacks::addAll); + .values() + .stream() + .map(t -> t.items) + .forEach(tStacks::addAll); ic2.api.recipe.Recipes.compressor.getRecipes() - .values() - .stream() - .map(t -> t.items) - .forEach(tStacks::addAll); + .values() + .stream() + .map(t -> t.items) + .forEach(tStacks::addAll); ic2.api.recipe.Recipes.extractor.getRecipes() - .values() - .stream() - .map(t -> t.items) - .forEach(tStacks::addAll); + .values() + .stream() + .map(t -> t.items) + .forEach(tStacks::addAll); ic2.api.recipe.Recipes.macerator.getRecipes() - .values() - .stream() - .map(t -> t.items) - .forEach(tStacks::addAll); + .values() + .stream() + .map(t -> t.items) + .forEach(tStacks::addAll); ic2.api.recipe.Recipes.metalformerCutting.getRecipes() - .values() - .stream() - .map(t -> t.items) - .forEach(tStacks::addAll); + .values() + .stream() + .map(t -> t.items) + .forEach(tStacks::addAll); ic2.api.recipe.Recipes.metalformerExtruding.getRecipes() - .values() - .stream() - .map(t -> t.items) - .forEach(tStacks::addAll); + .values() + .stream() + .map(t -> t.items) + .forEach(tStacks::addAll); ic2.api.recipe.Recipes.metalformerRolling.getRecipes() - .values() - .stream() - .map(t -> t.items) - .forEach(tStacks::addAll); + .values() + .stream() + .map(t -> t.items) + .forEach(tStacks::addAll); ic2.api.recipe.Recipes.matterAmplifier.getRecipes() - .values() - .stream() - .map(t -> t.items) - .forEach(tStacks::addAll); + .values() + .stream() + .map(t -> t.items) + .forEach(tStacks::addAll); ic2.api.recipe.Recipes.oreWashing.getRecipes() - .values() - .stream() - .map(t -> t.items) - .forEach(tStacks::addAll); + .values() + .stream() + .map(t -> t.items) + .forEach(tStacks::addAll); GT_Log.out.println("GT_Mod: Dungeon Loot"); for (WeightedRandomChestContent tContent : ChestGenHooks.getInfo("dungeonChest") - .getItems(new XSTR())) { + .getItems(new XSTR())) { tStacks.add(tContent.theItemId); } for (WeightedRandomChestContent tContent : ChestGenHooks.getInfo("bonusChest") - .getItems(new XSTR())) { + .getItems(new XSTR())) { tStacks.add(tContent.theItemId); } for (WeightedRandomChestContent tContent : ChestGenHooks.getInfo("villageBlacksmith") - .getItems(new XSTR())) { + .getItems(new XSTR())) { tStacks.add(tContent.theItemId); } for (WeightedRandomChestContent tContent : ChestGenHooks.getInfo("strongholdCrossing") - .getItems(new XSTR())) { + .getItems(new XSTR())) { tStacks.add(tContent.theItemId); } for (WeightedRandomChestContent tContent : ChestGenHooks.getInfo("strongholdLibrary") - .getItems(new XSTR())) { + .getItems(new XSTR())) { tStacks.add(tContent.theItemId); } for (WeightedRandomChestContent tContent : ChestGenHooks.getInfo("strongholdCorridor") - .getItems(new XSTR())) { + .getItems(new XSTR())) { tStacks.add(tContent.theItemId); } for (WeightedRandomChestContent tContent : ChestGenHooks.getInfo("pyramidJungleDispenser") - .getItems(new XSTR())) { + .getItems(new XSTR())) { tStacks.add(tContent.theItemId); } for (WeightedRandomChestContent tContent : ChestGenHooks.getInfo("pyramidJungleChest") - .getItems(new XSTR())) { + .getItems(new XSTR())) { tStacks.add(tContent.theItemId); } for (WeightedRandomChestContent tContent : ChestGenHooks.getInfo("pyramidDesertyChest") - .getItems(new XSTR())) { + .getItems(new XSTR())) { tStacks.add(tContent.theItemId); } for (WeightedRandomChestContent tContent : ChestGenHooks.getInfo("mineshaftCorridor") - .getItems(new XSTR())) { + .getItems(new XSTR())) { tStacks.add(tContent.theItemId); } GT_Log.out.println("GT_Mod: Smelting"); // noinspection unchecked// Deal with legacy Minecraft raw types FurnaceRecipes.smelting() - .getSmeltingList() - .values() - .forEach(tStacks::add); + .getSmeltingList() + .values() + .forEach(tStacks::add); if (gregtechproxy.mCraftingUnification) { GT_Log.out.println("GT_Mod: Crafting Recipes"); for (IRecipe tRecipe : CraftingManager.getInstance() - .getRecipeList()) { + .getRecipeList()) { if ((tRecipe instanceof IRecipe)) { tStacks.add(tRecipe.getRecipeOutput()); } @@ -731,30 +722,30 @@ public class GT_Mod implements IGT_Mod { if (gregtechproxy.mRegisteredOres.contains(tOutput)) { GT_FML_LOGGER.error("GT-ERR-01: @ " + tOutput.getUnlocalizedName() + " " + tOutput.getDisplayName()); GT_FML_LOGGER.error( - "A Recipe used an OreDict Item as Output directly, without copying it before!!! This is a typical CallByReference/CallByValue Error"); + "A Recipe used an OreDict Item as Output directly, without copying it before!!! This is a typical CallByReference/CallByValue Error"); GT_FML_LOGGER.error( - "Said Item will be renamed to make the invalid Recipe visible, so that you can report it properly."); + "Said Item will be renamed to make the invalid Recipe visible, so that you can report it properly."); + GT_FML_LOGGER + .error("Please check all Recipes outputting this Item, and report the Recipes to their Owner."); GT_FML_LOGGER.error( - "Please check all Recipes outputting this Item, and report the Recipes to their Owner."); + "The Owner of the ==>RECIPE<==, NOT the Owner of the Item, which has been mentioned above!!!"); GT_FML_LOGGER.error( - "The Owner of the ==>RECIPE<==, NOT the Owner of the Item, which has been mentioned above!!!"); + "And ONLY Recipes which are ==>OUTPUTTING<== the Item, sorry but I don't want failed Bug Reports."); GT_FML_LOGGER.error( - "And ONLY Recipes which are ==>OUTPUTTING<== the Item, sorry but I don't want failed Bug Reports."); + "GregTech just reports this Error to you, so you can report it to the Mod causing the Problem."); GT_FML_LOGGER.error( - "GregTech just reports this Error to you, so you can report it to the Mod causing the Problem."); - GT_FML_LOGGER.error( - "Even though I make that Bug visible, I can not and will not fix that for you, that's for the causing Mod to fix."); + "Even though I make that Bug visible, I can not and will not fix that for you, that's for the causing Mod to fix."); GT_FML_LOGGER.error("And speaking of failed Reports:"); GT_FML_LOGGER.error( - "Both IC2 and GregTech CANNOT be the CAUSE of this Problem, so don't report it to either of them."); - GT_FML_LOGGER.error( - "I REPEAT, BOTH, IC2 and GregTech CANNOT be the source of THIS BUG. NO MATTER WHAT."); + "Both IC2 and GregTech CANNOT be the CAUSE of this Problem, so don't report it to either of them."); + GT_FML_LOGGER + .error("I REPEAT, BOTH, IC2 and GregTech CANNOT be the source of THIS BUG. NO MATTER WHAT."); GT_FML_LOGGER.error( - "Asking in the IC2 Forums, which Mod is causing that, won't help anyone, since it is not possible to determine, which Mod it is."); + "Asking in the IC2 Forums, which Mod is causing that, won't help anyone, since it is not possible to determine, which Mod it is."); GT_FML_LOGGER.error( - "If it would be possible, then I would have had added the Mod which is causing it to the Message already. But it is not possible."); + "If it would be possible, then I would have had added the Mod which is causing it to the Message already. But it is not possible."); GT_FML_LOGGER.error( - "Sorry, but this Error is serious enough to justify this Wall-O-Text and the partially allcapsed Language."); + "Sorry, but this Error is serious enough to justify this Wall-O-Text and the partially allcapsed Language."); GT_FML_LOGGER.error("Also it is a Ban Reason on the IC2-Forums to post this seriously."); tOutput.setStackDisplayName("ERROR! PLEASE CHECK YOUR LOG FOR 'GT-ERR-01'!"); } else { diff --git a/src/main/java/gregtech/api/GregTech_API.java b/src/main/java/gregtech/api/GregTech_API.java index 59fa6776c3..3e0f7fdabe 100644 --- a/src/main/java/gregtech/api/GregTech_API.java +++ b/src/main/java/gregtech/api/GregTech_API.java @@ -108,8 +108,8 @@ public class GregTech_API { * My Creative Tab */ public static final CreativeTabs TAB_GREGTECH = new GT_CreativeTab("Main", "Main"), - TAB_GREGTECH_MATERIALS = new GT_CreativeTab("Materials", "Materials"), - TAB_GREGTECH_ORES = new GT_CreativeTab("Ores", "Ores"); + TAB_GREGTECH_MATERIALS = new GT_CreativeTab("Materials", "Materials"), + TAB_GREGTECH_ORES = new GT_CreativeTab("Ores", "Ores"); /** * A List of all registered MetaTileEntities *

@@ -173,25 +173,23 @@ public class GregTech_API { * The List of Tools, which can be used. Accepts regular damageable Items and Electric Items */ public static final GT_HashSet sToolList = new GT_HashSet<>(), sCrowbarList = new GT_HashSet<>(), - sScrewdriverList = new GT_HashSet<>(), sWrenchList = new GT_HashSet<>(), - sSoftHammerList = new GT_HashSet<>(), sHardHammerList = new GT_HashSet<>(), - sWireCutterList = new GT_HashSet<>(), sSolderingToolList = new GT_HashSet<>(), - sSolderingMetalList = new GT_HashSet<>(); + sScrewdriverList = new GT_HashSet<>(), sWrenchList = new GT_HashSet<>(), sSoftHammerList = new GT_HashSet<>(), + sHardHammerList = new GT_HashSet<>(), sWireCutterList = new GT_HashSet<>(), + sSolderingToolList = new GT_HashSet<>(), sSolderingMetalList = new GT_HashSet<>(); /** * The List of Hazmat Armors */ public static final GT_HashSet sGasHazmatList = new GT_HashSet<>(), - sBioHazmatList = new GT_HashSet<>(), sFrostHazmatList = new GT_HashSet<>(), - sHeatHazmatList = new GT_HashSet<>(), sRadioHazmatList = new GT_HashSet<>(), - sElectroHazmatList = new GT_HashSet<>(); + sBioHazmatList = new GT_HashSet<>(), sFrostHazmatList = new GT_HashSet<>(), + sHeatHazmatList = new GT_HashSet<>(), sRadioHazmatList = new GT_HashSet<>(), + sElectroHazmatList = new GT_HashSet<>(); - private static final Multimap sRealConfigurationList = Multimaps.newListMultimap( - new TreeMap<>(), - ArrayList::new); + private static final Multimap sRealConfigurationList = Multimaps + .newListMultimap(new TreeMap<>(), ArrayList::new); private static final Map> sConfigurationLists = new ConcurrentHashMap<>(); private static final Map, BiFunction> sRealCircuitProgrammerList = new LinkedHashMap<>(); - public static final Map, BiFunction> sCircuitProgrammerList = Collections.unmodifiableMap( - sRealCircuitProgrammerList); + public static final Map, BiFunction> sCircuitProgrammerList = Collections + .unmodifiableMap(sRealCircuitProgrammerList); /** * The List of Dimensions, which are Whitelisted for the Teleporter. This list should not contain other Planets. @@ -233,11 +231,11 @@ public class GregTech_API { * Implement just the Method run() and everything should work */ public static List sBeforeGTPreload = new ArrayList<>(), sAfterGTPreload = new ArrayList<>(), - sBeforeGTLoad = new ArrayList<>(), sAfterGTLoad = new ArrayList<>(), sBeforeGTPostload = new ArrayList<>(), - sAfterGTPostload = new ArrayList<>(), sFirstWorldTick = new ArrayList<>(), - sBeforeGTServerstart = new ArrayList<>(), sAfterGTServerstart = new ArrayList<>(), - sBeforeGTServerstop = new ArrayList<>(), sAfterGTServerstop = new ArrayList<>(), - sGTBlockIconload = new ArrayList<>(), sGTItemIconload = new ArrayList<>(); + sBeforeGTLoad = new ArrayList<>(), sAfterGTLoad = new ArrayList<>(), sBeforeGTPostload = new ArrayList<>(), + sAfterGTPostload = new ArrayList<>(), sFirstWorldTick = new ArrayList<>(), + sBeforeGTServerstart = new ArrayList<>(), sAfterGTServerstart = new ArrayList<>(), + sBeforeGTServerstop = new ArrayList<>(), sAfterGTServerstop = new ArrayList<>(), + sGTBlockIconload = new ArrayList<>(), sGTItemIconload = new ArrayList<>(); /** * The Icon Registers from Blocks and Items. They will get set right before the corresponding Icon Load Phase as * executed in the Runnable List above. @@ -248,7 +246,7 @@ public class GregTech_API { * The Configuration Objects */ public static GT_Config sRecipeFile = null, sMachineFile = null, sWorldgenFile = null, sMaterialProperties = null, - sMaterialComponents = null, sUnification = null, sSpecialFile = null, sClientDataFile, sOPStuff = null; + sMaterialComponents = null, sUnification = null, sSpecialFile = null, sClientDataFile, sOPStuff = null; public static int TICKS_FOR_LAG_AVERAGING = 25, MILLISECOND_THRESHOLD_UNTIL_LAG_WARNING = 100; /** @@ -257,24 +255,24 @@ public class GregTech_API { public static Block sBlockMachines; public static Block sBlockOres1, sBlockOresUb1, sBlockOresUb2, sBlockOresUb3, - /* sBlockGem, */ - sBlockMetal1, sBlockMetal2, sBlockMetal3, sBlockMetal4, sBlockMetal5, sBlockMetal6, sBlockMetal7, - sBlockMetal8, sBlockMetal9, sBlockGem1, sBlockGem2, sBlockGem3, sBlockReinforced; + /* sBlockGem, */ + sBlockMetal1, sBlockMetal2, sBlockMetal3, sBlockMetal4, sBlockMetal5, sBlockMetal6, sBlockMetal7, sBlockMetal8, + sBlockMetal9, sBlockGem1, sBlockGem2, sBlockGem3, sBlockReinforced; public static Block sBlockGranites, sBlockConcretes, sBlockStones; public static Block sBlockCasings1, sBlockCasings2, sBlockCasings3, sBlockCasings4, sBlockCasings5, sBlockCasings6, - sBlockCasings8, sBlockCasings9, sSolenoidCoilCasings; + sBlockCasings8, sBlockCasings9, sSolenoidCoilCasings; public static Block sBlockLongDistancePipes; /** * Getting assigned by the Config */ public static boolean sTimber = true, sDrinksAlwaysDrinkable = false, sMultiThreadedSounds = false, - sDoShowAllItemsInCreative = false, sColoredGUI = true, sMachineMetalGUI = false, sConstantEnergy = true, - sMachineExplosions = true, sMachineFlammable = true, sMachineNonWrenchExplosions = true, - sMachineRainExplosions = true, sMachineThunderExplosions = true, sMachineFireExplosions = true, - sMachineWireFire = true, mOutputRF = false, mInputRF = false, meIOLoaded = false, mRFExplosions = false, - mServerStarted = false, mIC2Classic = false, mMagneticraft = false, mImmersiveEngineering = false, - mGTPlusPlus = false, mTranslocator = false, mTConstruct = false, mGalacticraft = false, mAE2 = false, - mHodgepodge = false, mEternalSingularity = false; + sDoShowAllItemsInCreative = false, sColoredGUI = true, sMachineMetalGUI = false, sConstantEnergy = true, + sMachineExplosions = true, sMachineFlammable = true, sMachineNonWrenchExplosions = true, + sMachineRainExplosions = true, sMachineThunderExplosions = true, sMachineFireExplosions = true, + sMachineWireFire = true, mOutputRF = false, mInputRF = false, meIOLoaded = false, mRFExplosions = false, + mServerStarted = false, mIC2Classic = false, mMagneticraft = false, mImmersiveEngineering = false, + mGTPlusPlus = false, mTranslocator = false, mTConstruct = false, mGalacticraft = false, mAE2 = false, + mHodgepodge = false, mEternalSingularity = false; public static int mEUtoRF = 360, mRFtoEU = 20; @@ -290,7 +288,7 @@ public class GregTech_API { * Getting assigned by the Mod loading */ public static boolean sUnificationEntriesRegistered = false, sPreloadStarted = false, sPreloadFinished = false, - sLoadStarted = false, sLoadFinished = false, sPostloadStarted = false, sPostloadFinished = false; + sLoadStarted = false, sLoadFinished = false, sPostloadStarted = false, sPostloadFinished = false; private static Class sBaseMetaTileEntityClass = null; @@ -348,10 +346,10 @@ public class GregTech_API { */ public static ItemStack getUnificatedOreDictStack(ItemStack aOreStack) { if (!GregTech_API.sPreloadFinished) GT_Log.err.println( - "GregTech_API ERROR: " + aOreStack.getItem() - + "." - + aOreStack.getItemDamage() - + " - OreDict Unification Entries are not registered now, please call it in the postload phase."); + "GregTech_API ERROR: " + aOreStack.getItem() + + "." + + aOreStack.getItemDamage() + + " - OreDict Unification Entries are not registered now, please call it in the postload phase."); return GT_OreDictUnificator.get(true, aOreStack); } @@ -443,335 +441,285 @@ public class GregTech_API { /* Do nothing */ } return new gregtech.api.items.GT_Generic_Item( - aUnlocalized, - aEnglish, - "Doesn't work as intended, this is a Bug", - false); + aUnlocalized, + aEnglish, + "Doesn't work as intended, this is a Bug", + false); } /** * Creates a new Energy Armor Item */ public static Item constructElectricArmorItem(String aUnlocalized, String aEnglish, int aCharge, int aTransfer, - int aTier, int aDamageEnergyCost, int aSpecials, double aArmorAbsorbtionPercentage, boolean aChargeProvider, - int aType, int aArmorIndex) { + int aTier, int aDamageEnergyCost, int aSpecials, double aArmorAbsorbtionPercentage, boolean aChargeProvider, + int aType, int aArmorIndex) { try { return (Item) Class.forName("gregtechmod.api.items.GT_EnergyArmorIC_Item") - .getConstructors()[0].newInstance( - aUnlocalized, - aEnglish, - aCharge, - aTransfer, - aTier, - aDamageEnergyCost, - aSpecials, - aArmorAbsorbtionPercentage, - aChargeProvider, - aType, - aArmorIndex); + .getConstructors()[0].newInstance( + aUnlocalized, + aEnglish, + aCharge, + aTransfer, + aTier, + aDamageEnergyCost, + aSpecials, + aArmorAbsorbtionPercentage, + aChargeProvider, + aType, + aArmorIndex); } catch (Throwable e) { /* Do nothing */ } try { return (Item) Class.forName("gregtechmod.api.items.GT_EnergyArmor_Item") - .getConstructors()[0].newInstance( - aUnlocalized, - aEnglish, - aCharge, - aTransfer, - aTier, - aDamageEnergyCost, - aSpecials, - aArmorAbsorbtionPercentage, - aChargeProvider, - aType, - aArmorIndex); + .getConstructors()[0].newInstance( + aUnlocalized, + aEnglish, + aCharge, + aTransfer, + aTier, + aDamageEnergyCost, + aSpecials, + aArmorAbsorbtionPercentage, + aChargeProvider, + aType, + aArmorIndex); } catch (Throwable e) { /* Do nothing */ } return new gregtech.api.items.GT_Generic_Item( - aUnlocalized, - aEnglish, - "Doesn't work as intended, this is a Bug", - false); + aUnlocalized, + aEnglish, + "Doesn't work as intended, this is a Bug", + false); } /** * Creates a new Energy Battery Item */ public static Item constructElectricEnergyStorageItem(String aUnlocalized, String aEnglish, int aCharge, - int aTransfer, int aTier, int aEmptyID, int aFullID) { + int aTransfer, int aTier, int aEmptyID, int aFullID) { try { return (Item) Class.forName("gregtechmod.api.items.GT_EnergyStoreIC_Item") - .getConstructors()[0].newInstance( - aUnlocalized, - aEnglish, - aCharge, - aTransfer, - aTier, - aEmptyID, - aFullID); + .getConstructors()[0].newInstance(aUnlocalized, aEnglish, aCharge, aTransfer, aTier, aEmptyID, aFullID); } catch (Throwable e) { /* Do nothing */ } try { return (Item) Class.forName("gregtechmod.api.items.GT_EnergyStore_Item") - .getConstructors()[0].newInstance( - aUnlocalized, - aEnglish, - aCharge, - aTransfer, - aTier, - aEmptyID, - aFullID); + .getConstructors()[0].newInstance(aUnlocalized, aEnglish, aCharge, aTransfer, aTier, aEmptyID, aFullID); } catch (Throwable e) { /* Do nothing */ } return new gregtech.api.items.GT_Generic_Item( - aUnlocalized, - aEnglish, - "Doesn't work as intended, this is a Bug", - false); + aUnlocalized, + aEnglish, + "Doesn't work as intended, this is a Bug", + false); } /** * Creates a new Hard Hammer Item */ public static GT_Tool_Item constructHardHammerItem(String aUnlocalized, String aEnglish, int aMaxDamage, - int aEntityDamage) { + int aEntityDamage) { try { return (GT_Tool_Item) Class.forName("gregtechmod.api.items.GT_HardHammer_Item") - .getConstructors()[0].newInstance( - aUnlocalized, - aEnglish, - aMaxDamage, - aEntityDamage); + .getConstructors()[0].newInstance(aUnlocalized, aEnglish, aMaxDamage, aEntityDamage); } catch (Throwable e) { /* Do nothing */ } return new gregtech.api.items.GT_Tool_Item( - aUnlocalized, - aEnglish, - "Doesn't work as intended, this is a Bug", - aMaxDamage, - aEntityDamage, - false); + aUnlocalized, + aEnglish, + "Doesn't work as intended, this is a Bug", + aMaxDamage, + aEntityDamage, + false); } /** * Creates a new Crowbar Item */ public static GT_Tool_Item constructCrowbarItem(String aUnlocalized, String aEnglish, int aMaxDamage, - int aEntityDamage) { + int aEntityDamage) { try { return (GT_Tool_Item) Class.forName("gregtechmod.api.items.GT_CrowbarRC_Item") - .getConstructors()[0].newInstance( - aUnlocalized, - aEnglish, - aMaxDamage, - aEntityDamage); + .getConstructors()[0].newInstance(aUnlocalized, aEnglish, aMaxDamage, aEntityDamage); } catch (Throwable e) { /* Do nothing */ } try { return (GT_Tool_Item) Class.forName("gregtechmod.api.items.GT_Crowbar_Item") - .getConstructors()[0].newInstance( - aUnlocalized, - aEnglish, - aMaxDamage, - aEntityDamage); + .getConstructors()[0].newInstance(aUnlocalized, aEnglish, aMaxDamage, aEntityDamage); } catch (Throwable e) { /* Do nothing */ } return new gregtech.api.items.GT_Tool_Item( - aUnlocalized, - aEnglish, - "Doesn't work as intended, this is a Bug", - aMaxDamage, - aEntityDamage, - false); + aUnlocalized, + aEnglish, + "Doesn't work as intended, this is a Bug", + aMaxDamage, + aEntityDamage, + false); } /** * Creates a new Wrench Item */ public static GT_Tool_Item constructWrenchItem(String aUnlocalized, String aEnglish, int aMaxDamage, - int aEntityDamage, int aDisChargedGTID) { + int aEntityDamage, int aDisChargedGTID) { try { return (GT_Tool_Item) Class.forName("gregtechmod.api.items.GT_Wrench_Item") - .getConstructors()[0].newInstance( - aUnlocalized, - aEnglish, - aMaxDamage, - aEntityDamage, - aDisChargedGTID); + .getConstructors()[0].newInstance(aUnlocalized, aEnglish, aMaxDamage, aEntityDamage, aDisChargedGTID); } catch (Throwable e) { /* Do nothing */ } return new gregtech.api.items.GT_Tool_Item( - aUnlocalized, - aEnglish, - "Doesn't work as intended, this is a Bug", - aMaxDamage, - aEntityDamage, - false); + aUnlocalized, + aEnglish, + "Doesn't work as intended, this is a Bug", + aMaxDamage, + aEntityDamage, + false); } /** * Creates a new electric Screwdriver Item */ public static GT_Tool_Item constructElectricScrewdriverItem(String aUnlocalized, String aEnglish, int aMaxDamage, - int aEntityDamage, int aDisChargedGTID) { + int aEntityDamage, int aDisChargedGTID) { try { return (GT_Tool_Item) Class.forName("gregtechmod.api.items.GT_ScrewdriverIC_Item") - .getConstructors()[0].newInstance( - aUnlocalized, - aEnglish, - aMaxDamage, - aEntityDamage, - aDisChargedGTID); + .getConstructors()[0].newInstance(aUnlocalized, aEnglish, aMaxDamage, aEntityDamage, aDisChargedGTID); } catch (Throwable e) { /* Do nothing */ } return new gregtech.api.items.GT_Tool_Item( - aUnlocalized, - aEnglish, - "Doesn't work as intended, this is a Bug", - aMaxDamage, - aEntityDamage, - false); + aUnlocalized, + aEnglish, + "Doesn't work as intended, this is a Bug", + aMaxDamage, + aEntityDamage, + false); } /** * Creates a new electric Wrench Item */ public static GT_Tool_Item constructElectricWrenchItem(String aUnlocalized, String aEnglish, int aMaxDamage, - int aEntityDamage, int aDisChargedGTID) { + int aEntityDamage, int aDisChargedGTID) { try { return (GT_Tool_Item) Class.forName("gregtechmod.api.items.GT_WrenchIC_Item") - .getConstructors()[0].newInstance( - aUnlocalized, - aEnglish, - aMaxDamage, - aEntityDamage, - aDisChargedGTID); + .getConstructors()[0].newInstance(aUnlocalized, aEnglish, aMaxDamage, aEntityDamage, aDisChargedGTID); } catch (Throwable e) { /* Do nothing */ } return new gregtech.api.items.GT_Tool_Item( - aUnlocalized, - aEnglish, - "Doesn't work as intended, this is a Bug", - aMaxDamage, - aEntityDamage, - false); + aUnlocalized, + aEnglish, + "Doesn't work as intended, this is a Bug", + aMaxDamage, + aEntityDamage, + false); } /** * Creates a new electric Saw Item */ public static GT_Tool_Item constructElectricSawItem(String aUnlocalized, String aEnglish, int aMaxDamage, - int aEntityDamage, int aToolQuality, float aToolStrength, int aEnergyConsumptionPerBlockBreak, - int aDisChargedGTID) { + int aEntityDamage, int aToolQuality, float aToolStrength, int aEnergyConsumptionPerBlockBreak, + int aDisChargedGTID) { try { return (GT_Tool_Item) Class.forName("gregtechmod.api.items.GT_SawIC_Item") - .getConstructors()[0].newInstance( - aUnlocalized, - aEnglish, - aMaxDamage, - aEntityDamage, - aToolQuality, - aToolStrength, - aEnergyConsumptionPerBlockBreak, - aDisChargedGTID); + .getConstructors()[0].newInstance( + aUnlocalized, + aEnglish, + aMaxDamage, + aEntityDamage, + aToolQuality, + aToolStrength, + aEnergyConsumptionPerBlockBreak, + aDisChargedGTID); } catch (Throwable e) { /* Do nothing */ } return new gregtech.api.items.GT_Tool_Item( - aUnlocalized, - aEnglish, - "Doesn't work as intended, this is a Bug", - aMaxDamage, - aEntityDamage, - false); + aUnlocalized, + aEnglish, + "Doesn't work as intended, this is a Bug", + aMaxDamage, + aEntityDamage, + false); } /** * Creates a new electric Drill Item */ public static GT_Tool_Item constructElectricDrillItem(String aUnlocalized, String aEnglish, int aMaxDamage, - int aEntityDamage, int aToolQuality, float aToolStrength, int aEnergyConsumptionPerBlockBreak, - int aDisChargedGTID) { + int aEntityDamage, int aToolQuality, float aToolStrength, int aEnergyConsumptionPerBlockBreak, + int aDisChargedGTID) { try { return (GT_Tool_Item) Class.forName("gregtechmod.api.items.GT_DrillIC_Item") - .getConstructors()[0].newInstance( - aUnlocalized, - aEnglish, - aMaxDamage, - aEntityDamage, - aToolQuality, - aToolStrength, - aEnergyConsumptionPerBlockBreak, - aDisChargedGTID); + .getConstructors()[0].newInstance( + aUnlocalized, + aEnglish, + aMaxDamage, + aEntityDamage, + aToolQuality, + aToolStrength, + aEnergyConsumptionPerBlockBreak, + aDisChargedGTID); } catch (Throwable e) { /* Do nothing */ } return new gregtech.api.items.GT_Tool_Item( - aUnlocalized, - aEnglish, - "Doesn't work as intended, this is a Bug", - aMaxDamage, - aEntityDamage, - false); + aUnlocalized, + aEnglish, + "Doesn't work as intended, this is a Bug", + aMaxDamage, + aEntityDamage, + false); } /** * Creates a new electric Soldering Tool */ public static GT_Tool_Item constructElectricSolderingToolItem(String aUnlocalized, String aEnglish, int aMaxDamage, - int aEntityDamage, int aDisChargedGTID) { + int aEntityDamage, int aDisChargedGTID) { try { return (GT_Tool_Item) Class.forName("gregtechmod.api.items.GT_SolderingToolIC_Item") - .getConstructors()[0].newInstance( - aUnlocalized, - aEnglish, - aMaxDamage, - aEntityDamage, - aDisChargedGTID); + .getConstructors()[0].newInstance(aUnlocalized, aEnglish, aMaxDamage, aEntityDamage, aDisChargedGTID); } catch (Throwable e) { /* Do nothing */ } return new gregtech.api.items.GT_Tool_Item( - aUnlocalized, - aEnglish, - "Doesn't work as intended, this is a Bug", - aMaxDamage, - aEntityDamage, - false); + aUnlocalized, + aEnglish, + "Doesn't work as intended, this is a Bug", + aMaxDamage, + aEntityDamage, + false); } /** * Creates a new empty electric Tool */ public static GT_Tool_Item constructEmptyElectricToolItem(String aUnlocalized, String aEnglish, int aMaxDamage, - int aChargedGTID) { + int aChargedGTID) { try { return (GT_Tool_Item) Class.forName("gregtechmod.api.items.GT_EmptyToolIC_Item") - .getConstructors()[0].newInstance( - aUnlocalized, - aEnglish, - aMaxDamage, - aChargedGTID); + .getConstructors()[0].newInstance(aUnlocalized, aEnglish, aMaxDamage, aChargedGTID); } catch (Throwable e) { /* Do nothing */ } return new gregtech.api.items.GT_Tool_Item( - aUnlocalized, - aEnglish, - "Doesn't work as intended, this is a Bug", - aMaxDamage, - 0, - false); + aUnlocalized, + aEnglish, + "Doesn't work as intended, this is a Bug", + aMaxDamage, + 0, + false); } /** @@ -818,9 +766,9 @@ public class GregTech_API { for (Map.Entry> e : sConfigurationLists.entrySet()) { if (e.getKey() >= minTier) { e.getValue() - .add(stack); + .add(stack); e.getValue() - .sort(getConfigurationCircuitsComparator()); + .sort(getConfigurationCircuitsComparator()); } } } @@ -834,14 +782,14 @@ public class GregTech_API { */ public static List getConfigurationCircuitList(int machineTier) { return Collections.unmodifiableList( - sConfigurationLists.computeIfAbsent( - machineTier, - (t) -> sRealConfigurationList.entries() - .stream() - .filter(e -> e.getKey() <= machineTier) - .map(Map.Entry::getValue) - .sorted(getConfigurationCircuitsComparator()) - .collect(Collectors.toList()))); + sConfigurationLists.computeIfAbsent( + machineTier, + (t) -> sRealConfigurationList.entries() + .stream() + .filter(e -> e.getKey() <= machineTier) + .map(Map.Entry::getValue) + .sorted(getConfigurationCircuitsComparator()) + .collect(Collectors.toList()))); } public static Comparator getConfigurationCircuitsComparator() { @@ -850,12 +798,11 @@ public class GregTech_API { // player is exposed if (GT_Mod.gregtechproxy.mCircuitsOrder.isEmpty()) return is.getItem() instanceof GT_IntegratedCircuit_Item ? 0 : 1; - return GT_Mod.gregtechproxy.mCircuitsOrder.getOrDefault( - String.valueOf(GameRegistry.findUniqueIdentifierFor(is.getItem())), - Integer.MAX_VALUE); + return GT_Mod.gregtechproxy.mCircuitsOrder + .getOrDefault(String.valueOf(GameRegistry.findUniqueIdentifierFor(is.getItem())), Integer.MAX_VALUE); }) - .thenComparing(ItemStack::getUnlocalizedName) - .thenComparing(ItemStack::getItemDamage); + .thenComparing(ItemStack::getUnlocalizedName) + .thenComparing(ItemStack::getItemDamage); } public static void registerCircuitProgrammer(ItemStack stack, boolean ignoreNBT, boolean useContainer) { @@ -864,14 +811,13 @@ public class GregTech_API { public static void registerCircuitProgrammer(Predicate predicate, boolean useContainer) { sRealCircuitProgrammerList.put( - predicate, - useContainer ? (s, p) -> s.getItem() - .getContainerItem(s) - : (s, p) -> s); + predicate, + useContainer ? (s, p) -> s.getItem() + .getContainerItem(s) : (s, p) -> s); } public static void registerCircuitProgrammer(Predicate predicate, - BiFunction doDamage) { + BiFunction doDamage) { sRealCircuitProgrammerList.put(predicate, doDamage); } @@ -881,8 +827,8 @@ public class GregTech_API { public static void registerCover(ItemStack aStack, ITexture aCover, GT_CoverBehaviorBase aBehavior) { if (!sCovers.containsKey(new GT_ItemStack(aStack))) sCovers.put( - new GT_ItemStack(aStack), - aCover == null || !aCover.isValidTexture() ? Textures.BlockIcons.ERROR_RENDERING[0] : aCover); + new GT_ItemStack(aStack), + aCover == null || !aCover.isValidTexture() ? Textures.BlockIcons.ERROR_RENDERING[0] : aCover); if (aBehavior != null) sCoverBehaviors.put(new GT_ItemStack(aStack), aBehavior); } @@ -909,7 +855,7 @@ public class GregTech_API { * @param aBehavior can be null */ public static void registerCover(Collection aStackList, ITexture aCover, - GT_CoverBehaviorBase aBehavior) { + GT_CoverBehaviorBase aBehavior) { if (aCover.isValidTexture()) aStackList.forEach(tStack -> GregTech_API.registerCover(tStack, aCover, aBehavior)); } @@ -1058,10 +1004,9 @@ public class GregTech_API { */ public static boolean registerTool(ItemStack aTool, Collection aToolList) { if (aTool == null || GT_Utility.isStackInList(aTool, sToolList) - || (!aTool.getItem() - .isDamageable() - && !GT_ModHandler.isElectricItem(aTool) - && !(aTool.getItem() instanceof IDamagableItem))) + || (!aTool.getItem() + .isDamageable() && !GT_ModHandler.isElectricItem(aTool) + && !(aTool.getItem() instanceof IDamagableItem))) return false; aToolList.add(new GT_ItemStack(GT_Utility.copyAmount(1, aTool))); sToolList.add(new GT_ItemStack(GT_Utility.copyAmount(1, aTool))); @@ -1091,7 +1036,7 @@ public class GregTech_API { public static void registerTileEntityConstructor(int meta, IntFunction constructor) { if (meta < 0 || meta > 15 || constructor == null) throw new IllegalArgumentException(); if (teCreators[meta] != null) throw new IllegalStateException( - "previous constructor: " + teCreators[meta] + " new constructor: " + constructor + " meta:" + meta); + "previous constructor: " + teCreators[meta] + " new constructor: " + constructor + " meta:" + meta); teCreators[meta] = constructor; } diff --git a/src/main/java/gregtech/api/damagesources/GT_DamageSources.java b/src/main/java/gregtech/api/damagesources/GT_DamageSources.java index fca4d7fe9f..b8d53f71fb 100644 --- a/src/main/java/gregtech/api/damagesources/GT_DamageSources.java +++ b/src/main/java/gregtech/api/damagesources/GT_DamageSources.java @@ -61,7 +61,7 @@ public class GT_DamageSources { @Override public IChatComponent func_151519_b(EntityLivingBase aTarget) { return new ChatComponentText( - EnumChatFormatting.RED + aTarget.getCommandSenderName() + EnumChatFormatting.WHITE + " got frozen"); + EnumChatFormatting.RED + aTarget.getCommandSenderName() + EnumChatFormatting.WHITE + " got frozen"); } } @@ -75,9 +75,9 @@ public class GT_DamageSources { @Override public IChatComponent func_151519_b(EntityLivingBase aTarget) { return new ChatComponentText( - EnumChatFormatting.RED + aTarget.getCommandSenderName() - + EnumChatFormatting.WHITE - + " was boiled alive"); + EnumChatFormatting.RED + aTarget.getCommandSenderName() + + EnumChatFormatting.WHITE + + " was boiled alive"); } } @@ -108,7 +108,7 @@ public class GT_DamageSources { @Override public IChatComponent func_151519_b(EntityLivingBase aTarget) { return new ChatComponentText( - EnumChatFormatting.RED + aTarget.getCommandSenderName() + EnumChatFormatting.WHITE + " exploded"); + EnumChatFormatting.RED + aTarget.getCommandSenderName() + EnumChatFormatting.WHITE + " exploded"); } } } diff --git a/src/main/java/gregtech/api/enchants/Enchantment_EnderDamage.java b/src/main/java/gregtech/api/enchants/Enchantment_EnderDamage.java index e48b3e5b19..07c13b3509 100644 --- a/src/main/java/gregtech/api/enchants/Enchantment_EnderDamage.java +++ b/src/main/java/gregtech/api/enchants/Enchantment_EnderDamage.java @@ -46,22 +46,22 @@ public class Enchantment_EnderDamage extends EnchantmentDamage { @Override public void func_151367_b(EntityLivingBase aHurtEntity, Entity aDamagingEntity, int aLevel) { if ((aHurtEntity instanceof EntityEnderman || aHurtEntity instanceof EntityDragon - || (aHurtEntity.getClass() - .getName() - .contains(".") - && aHurtEntity.getClass() - .getName() - .substring( - aHurtEntity.getClass() - .getName() - .lastIndexOf(".")) - .contains("Ender")))) { + || (aHurtEntity.getClass() + .getName() + .contains(".") + && aHurtEntity.getClass() + .getName() + .substring( + aHurtEntity.getClass() + .getName() + .lastIndexOf(".")) + .contains("Ender")))) { // Weakness causes Endermen to not be able to teleport with GT being installed. - aHurtEntity.addPotionEffect( - new PotionEffect(Potion.weakness.id, aLevel * 200, Math.max(1, (5 * aLevel) / 7))); + aHurtEntity + .addPotionEffect(new PotionEffect(Potion.weakness.id, aLevel * 200, Math.max(1, (5 * aLevel) / 7))); // They also get Poisoned. If you have this Enchant on an Arrow, you can kill the Ender Dragon easier. - aHurtEntity.addPotionEffect( - new PotionEffect(Potion.poison.id, aLevel * 200, Math.max(1, (5 * aLevel) / 7))); + aHurtEntity + .addPotionEffect(new PotionEffect(Potion.poison.id, aLevel * 200, Math.max(1, (5 * aLevel) / 7))); } } diff --git a/src/main/java/gregtech/api/enchants/Enchantment_Radioactivity.java b/src/main/java/gregtech/api/enchants/Enchantment_Radioactivity.java index bf4cc00be4..e68e55cd6a 100644 --- a/src/main/java/gregtech/api/enchants/Enchantment_Radioactivity.java +++ b/src/main/java/gregtech/api/enchants/Enchantment_Radioactivity.java @@ -19,15 +19,15 @@ public class Enchantment_Radioactivity extends EnchantmentDamage { super(GT_Config.addIDConfig(ConfigCategories.IDs.enchantments, "Radioactivity", 14), 0, -1); GT_LanguageManager.addStringLocalization(getName(), "Radioactivity"); Materials.Plutonium.setEnchantmentForTools(this, 1) - .setEnchantmentForArmors(this, 1); + .setEnchantmentForArmors(this, 1); Materials.Uranium235.setEnchantmentForTools(this, 2) - .setEnchantmentForArmors(this, 2); + .setEnchantmentForArmors(this, 2); Materials.Plutonium241.setEnchantmentForTools(this, 3) - .setEnchantmentForArmors(this, 3); + .setEnchantmentForArmors(this, 3); Materials.NaquadahEnriched.setEnchantmentForTools(this, 4) - .setEnchantmentForArmors(this, 4); + .setEnchantmentForArmors(this, 4); Materials.Naquadria.setEnchantmentForTools(this, 5) - .setEnchantmentForArmors(this, 5); + .setEnchantmentForArmors(this, 5); INSTANCE = this; } diff --git a/src/main/java/gregtech/api/enums/Dyes.java b/src/main/java/gregtech/api/enums/Dyes.java index 3b87e9ff67..2970219145 100644 --- a/src/main/java/gregtech/api/enums/Dyes.java +++ b/src/main/java/gregtech/api/enums/Dyes.java @@ -43,7 +43,7 @@ public enum Dyes implements IColorModulationContainer { MACHINE_METAL(-1, 210, 220, 255, "Machine Metal"); public static final Dyes[] VALUES = { dyeBlack, dyeRed, dyeGreen, dyeBrown, dyeBlue, dyePurple, dyeCyan, - dyeLightGray, dyeGray, dyePink, dyeLime, dyeYellow, dyeLightBlue, dyeMagenta, dyeOrange, dyeWhite }; + dyeLightGray, dyeGray, dyePink, dyeLime, dyeYellow, dyeLightBlue, dyeMagenta, dyeOrange, dyeWhite }; public final byte mIndex; public final String mName; diff --git a/src/main/java/gregtech/api/enums/Element.java b/src/main/java/gregtech/api/enums/Element.java index c66b9630a3..b4bcb01a41 100644 --- a/src/main/java/gregtech/api/enums/Element.java +++ b/src/main/java/gregtech/api/enums/Element.java @@ -296,7 +296,7 @@ public enum Element { * @param aName Name of the Element */ Element(long aProtons, long aNeutrons, long aAdditionalMass, long aHalfLifeSeconds, String aDecayTo, String aName, - boolean aIsIsotope) { + boolean aIsIsotope) { mProtons = aProtons; mNeutrons = aNeutrons; mAdditionalMass = aAdditionalMass; diff --git a/src/main/java/gregtech/api/enums/FluidState.java b/src/main/java/gregtech/api/enums/FluidState.java index e84657cc6a..5f6f8824f5 100644 --- a/src/main/java/gregtech/api/enums/FluidState.java +++ b/src/main/java/gregtech/api/enums/FluidState.java @@ -12,6 +12,6 @@ public enum FluidState { public static FluidState fromValue(int stateValue) { return stateValue >= 0 && stateValue < FluidState.VALID_STATES.length ? FluidState.VALID_STATES[stateValue] - : FluidState.LIQUID; + : FluidState.LIQUID; } } diff --git a/src/main/java/gregtech/api/enums/GTNH_ExtraMaterials.java b/src/main/java/gregtech/api/enums/GTNH_ExtraMaterials.java index c0a259197e..0b621d4461 100644 --- a/src/main/java/gregtech/api/enums/GTNH_ExtraMaterials.java +++ b/src/main/java/gregtech/api/enums/GTNH_ExtraMaterials.java @@ -15,604 +15,604 @@ public class GTNH_ExtraMaterials implements IMaterialHandler { * This Class is for adding new Materials since Java has a Limiation of 64kb per Method / Class header */ public static Materials Signalum = new Materials( - -1, - TextureSet.SET_NONE, - 1.0F, - 0, - 2, - 1 | 2, - 255, - 255, - 255, - 0, - "Signalum", - "Signalum", - 0, - 0, - -1, - 0, - false, - false, - 3, - 1, - 1, - Dyes._NULL); + -1, + TextureSet.SET_NONE, + 1.0F, + 0, + 2, + 1 | 2, + 255, + 255, + 255, + 0, + "Signalum", + "Signalum", + 0, + 0, + -1, + 0, + false, + false, + 3, + 1, + 1, + Dyes._NULL); public static Materials Lumium = new Materials( - -1, - TextureSet.SET_NONE, - 1.0F, - 0, - 2, - 1 | 2, - 255, - 255, - 255, - 0, - "Lumium", - "Lumium", - 0, - 0, - -1, - 0, - false, - false, - 3, - 1, - 1, - Dyes._NULL); + -1, + TextureSet.SET_NONE, + 1.0F, + 0, + 2, + 1 | 2, + 255, + 255, + 255, + 0, + "Lumium", + "Lumium", + 0, + 0, + -1, + 0, + false, + false, + 3, + 1, + 1, + Dyes._NULL); public static Materials EnrichedCopper = new Materials( - -1, - TextureSet.SET_NONE, - 1.0F, - 0, - 2, - 1 | 2, - 255, - 255, - 255, - 0, - "EnrichedCopper", - "Enriched Copper", - 0, - 0, - -1, - 0, - false, - false, - 3, - 1, - 1, - Dyes._NULL); + -1, + TextureSet.SET_NONE, + 1.0F, + 0, + 2, + 1 | 2, + 255, + 255, + 255, + 0, + "EnrichedCopper", + "Enriched Copper", + 0, + 0, + -1, + 0, + false, + false, + 3, + 1, + 1, + Dyes._NULL); public static Materials DiamondCopper = new Materials( - -1, - TextureSet.SET_NONE, - 1.0F, - 0, - 2, - 1 | 2, - 255, - 255, - 255, - 0, - "DiamondCopper", - "Diamond Copper", - 0, - 0, - -1, - 0, - false, - false, - 3, - 1, - 1, - Dyes._NULL); + -1, + TextureSet.SET_NONE, + 1.0F, + 0, + 2, + 1 | 2, + 255, + 255, + 255, + 0, + "DiamondCopper", + "Diamond Copper", + 0, + 0, + -1, + 0, + false, + false, + 3, + 1, + 1, + Dyes._NULL); public static Materials TarPitch = new Materials( - -1, - TextureSet.SET_NONE, - 1.0F, - 0, - 2, - 1 | 2, - 255, - 255, - 255, - 0, - "TarPitch", - "Tar Pitch", - 0, - 0, - -1, - 0, - false, - false, - 3, - 1, - 1, - Dyes._NULL); + -1, + TextureSet.SET_NONE, + 1.0F, + 0, + 2, + 1 | 2, + 255, + 255, + 255, + 0, + "TarPitch", + "Tar Pitch", + 0, + 0, + -1, + 0, + false, + false, + 3, + 1, + 1, + Dyes._NULL); public static Materials LimePure = new Materials( - -1, - TextureSet.SET_NONE, - 1.0F, - 0, - 0, - 0, - 255, - 255, - 255, - 0, - "LimePure", - "Pure Lime", - 0, - 0, - -1, - 0, - false, - false, - 1, - 1, - 1, - Dyes.dyeLime); + -1, + TextureSet.SET_NONE, + 1.0F, + 0, + 0, + 0, + 255, + 255, + 255, + 0, + "LimePure", + "Pure Lime", + 0, + 0, + -1, + 0, + false, + false, + 1, + 1, + 1, + Dyes.dyeLime); public static Materials Wimalite = new Materials( - -1, - TextureSet.SET_NONE, - 1.0F, - 0, - 2, - 8, - 255, - 255, - 255, - 0, - "Wimalite", - "Wimalite", - 0, - 0, - -1, - 0, - false, - false, - 3, - 1, - 1, - Dyes.dyeYellow); + -1, + TextureSet.SET_NONE, + 1.0F, + 0, + 2, + 8, + 255, + 255, + 255, + 0, + "Wimalite", + "Wimalite", + 0, + 0, + -1, + 0, + false, + false, + 3, + 1, + 1, + Dyes.dyeYellow); public static Materials Yellorite = new Materials( - -1, - TextureSet.SET_NONE, - 1.0F, - 0, - 2, - 8, - 255, - 255, - 255, - 0, - "Yellorite", - "Yellorite", - 0, - 0, - -1, - 0, - false, - false, - 3, - 1, - 1, - Dyes.dyeYellow); + -1, + TextureSet.SET_NONE, + 1.0F, + 0, + 2, + 8, + 255, + 255, + 255, + 0, + "Yellorite", + "Yellorite", + 0, + 0, + -1, + 0, + false, + false, + 3, + 1, + 1, + Dyes.dyeYellow); public static Materials Quantum = new Materials( - -1, - TextureSet.SET_NONE, - 1.0F, - 0, - 0, - 0, - 255, - 255, - 255, - 0, - "Quantum", - "Quantum", - 0, - 0, - -1, - 0, - false, - false, - 1, - 1, - 1, - Dyes.dyeWhite); + -1, + TextureSet.SET_NONE, + 1.0F, + 0, + 0, + 0, + 255, + 255, + 255, + 0, + "Quantum", + "Quantum", + 0, + 0, + -1, + 0, + false, + false, + 1, + 1, + 1, + Dyes.dyeWhite); public static Materials Turquoise = new Materials( - -1, - TextureSet.SET_NONE, - 1.0F, - 0, - 1, - 1, - 255, - 255, - 255, - 0, - "Turquoise", - "Turquoise", - 0, - 0, - -1, - 0, - false, - false, - 3, - 1, - 1, - Dyes._NULL); + -1, + TextureSet.SET_NONE, + 1.0F, + 0, + 1, + 1, + 255, + 255, + 255, + 0, + "Turquoise", + "Turquoise", + 0, + 0, + -1, + 0, + false, + false, + 3, + 1, + 1, + Dyes._NULL); public static Materials Tapazite = new Materials( - -1, - TextureSet.SET_NONE, - 1.0F, - 0, - 1, - 1, - 255, - 255, - 255, - 0, - "Tapazite", - "Tapazite", - 0, - 0, - -1, - 0, - false, - false, - 3, - 1, - 1, - Dyes.dyeGreen); + -1, + TextureSet.SET_NONE, + 1.0F, + 0, + 1, + 1, + 255, + 255, + 255, + 0, + "Tapazite", + "Tapazite", + 0, + 0, + -1, + 0, + false, + false, + 3, + 1, + 1, + Dyes.dyeGreen); public static Materials Thyrium = new Materials( - -1, - TextureSet.SET_NONE, - 1.0F, - 0, - 1, - 1 | 2 | 8, - 255, - 255, - 255, - 0, - "Thyrium", - "Thyrium", - 0, - 0, - -1, - 0, - false, - false, - 3, - 1, - 1, - Dyes._NULL); + -1, + TextureSet.SET_NONE, + 1.0F, + 0, + 1, + 1 | 2 | 8, + 255, + 255, + 255, + 0, + "Thyrium", + "Thyrium", + 0, + 0, + -1, + 0, + false, + false, + 3, + 1, + 1, + Dyes._NULL); public static Materials Tourmaline = new Materials( - -1, - TextureSet.SET_RUBY, - 1.0F, - 0, - 1, - 1, - 255, - 255, - 255, - 0, - "Tourmaline", - "Tourmaline", - 0, - 0, - -1, - 0, - false, - false, - 3, - 1, - 1, - Dyes._NULL); + -1, + TextureSet.SET_RUBY, + 1.0F, + 0, + 1, + 1, + 255, + 255, + 255, + 0, + "Tourmaline", + "Tourmaline", + 0, + 0, + -1, + 0, + false, + false, + 3, + 1, + 1, + Dyes._NULL); public static Materials Spinel = new Materials( - -1, - TextureSet.SET_NONE, - 1.0F, - 0, - 1, - 0, - 255, - 255, - 255, - 0, - "Spinel", - "Spinel", - 0, - 0, - -1, - 0, - false, - false, - 3, - 1, - 1, - Dyes._NULL); + -1, + TextureSet.SET_NONE, + 1.0F, + 0, + 1, + 0, + 255, + 255, + 255, + 0, + "Spinel", + "Spinel", + 0, + 0, + -1, + 0, + false, + false, + 3, + 1, + 1, + Dyes._NULL); public static Materials Starconium = new Materials( - -1, - TextureSet.SET_NONE, - 1.0F, - 0, - 1, - 1 | 2 | 8, - 255, - 255, - 255, - 0, - "Starconium", - "Starconium", - 0, - 0, - -1, - 0, - false, - false, - 3, - 1, - 1, - Dyes._NULL); + -1, + TextureSet.SET_NONE, + 1.0F, + 0, + 1, + 1 | 2 | 8, + 255, + 255, + 255, + 0, + "Starconium", + "Starconium", + 0, + 0, + -1, + 0, + false, + false, + 3, + 1, + 1, + Dyes._NULL); public static Materials Sugilite = new Materials( - -1, - TextureSet.SET_NONE, - 1.0F, - 0, - 1, - 1, - 255, - 255, - 255, - 0, - "Sugilite", - "Sugilite", - 0, - 0, - -1, - 0, - false, - false, - 3, - 1, - 1, - Dyes._NULL); + -1, + TextureSet.SET_NONE, + 1.0F, + 0, + 1, + 1, + 255, + 255, + 255, + 0, + "Sugilite", + "Sugilite", + 0, + 0, + -1, + 0, + false, + false, + 3, + 1, + 1, + Dyes._NULL); public static Materials Prismarine = new Materials( - -1, - TextureSet.SET_NONE, - 1.0F, - 0, - 2, - 1 | 4, - 255, - 255, - 255, - 0, - "Prismarine", - "Prismarine", - 0, - 0, - -1, - 0, - false, - false, - 3, - 1, - 1, - Dyes._NULL); + -1, + TextureSet.SET_NONE, + 1.0F, + 0, + 2, + 1 | 4, + 255, + 255, + 255, + 0, + "Prismarine", + "Prismarine", + 0, + 0, + -1, + 0, + false, + false, + 3, + 1, + 1, + Dyes._NULL); public static Materials GraveyardDirt = new Materials( - -1, - TextureSet.SET_NONE, - 1.0F, - 0, - 2, - 1, - 255, - 255, - 255, - 0, - "GraveyardDirt", - "Graveyard Dirt", - 0, - 0, - -1, - 0, - false, - false, - 3, - 1, - 1, - Dyes._NULL); + -1, + TextureSet.SET_NONE, + 1.0F, + 0, + 2, + 1, + 255, + 255, + 255, + 0, + "GraveyardDirt", + "Graveyard Dirt", + 0, + 0, + -1, + 0, + false, + false, + 3, + 1, + 1, + Dyes._NULL); public static Materials Tennantite = new Materials( - -1, - TextureSet.SET_NONE, - 1.0F, - 0, - 2, - 1, - 255, - 255, - 255, - 0, - "Tennantite", - "Tennantite", - 0, - 0, - -1, - 0, - false, - false, - 3, - 1, - 1, - Dyes._NULL); + -1, + TextureSet.SET_NONE, + 1.0F, + 0, + 2, + 1, + 255, + 255, + 255, + 0, + "Tennantite", + "Tennantite", + 0, + 0, + -1, + 0, + false, + false, + 3, + 1, + 1, + Dyes._NULL); public static Materials Fairy = new Materials( - -1, - TextureSet.SET_NONE, - 1.0F, - 0, - 2, - 1 | 2, - 255, - 255, - 255, - 0, - "Fairy", - "Fairy", - 0, - 0, - -1, - 0, - false, - false, - 3, - 1, - 1, - Dyes._NULL); + -1, + TextureSet.SET_NONE, + 1.0F, + 0, + 2, + 1 | 2, + 255, + 255, + 255, + 0, + "Fairy", + "Fairy", + 0, + 0, + -1, + 0, + false, + false, + 3, + 1, + 1, + Dyes._NULL); public static Materials Ludicrite = new Materials( - -1, - TextureSet.SET_NONE, - 1.0F, - 0, - 2, - 1 | 2, - 255, - 255, - 255, - 0, - "Ludicrite", - "Ludicrite", - 0, - 0, - -1, - 0, - false, - false, - 3, - 1, - 1, - Dyes._NULL); + -1, + TextureSet.SET_NONE, + 1.0F, + 0, + 2, + 1 | 2, + 255, + 255, + 255, + 0, + "Ludicrite", + "Ludicrite", + 0, + 0, + -1, + 0, + false, + false, + 3, + 1, + 1, + Dyes._NULL); public static Materials AquaRegia = new Materials( - -1, - TextureSet.SET_NONE, - 1.0F, - 0, - 2, - 0, - 255, - 255, - 255, - 0, - "AquaRegia", - "Aqua Regia", - 0, - 0, - -1, - 0, - false, - false, - 3, - 1, - 1, - Dyes._NULL); + -1, + TextureSet.SET_NONE, + 1.0F, + 0, + 2, + 0, + 255, + 255, + 255, + 0, + "AquaRegia", + "Aqua Regia", + 0, + 0, + -1, + 0, + false, + false, + 3, + 1, + 1, + Dyes._NULL); public static Materials SolutionBlueVitriol = new Materials( - -1, - TextureSet.SET_NONE, - 1.0F, - 0, - 2, - 0, - 255, - 255, - 255, - 0, - "SolutionBlueVitriol", - "Blue Vitriol Solution", - 0, - 0, - -1, - 0, - false, - false, - 3, - 1, - 1, - Dyes._NULL); + -1, + TextureSet.SET_NONE, + 1.0F, + 0, + 2, + 0, + 255, + 255, + 255, + 0, + "SolutionBlueVitriol", + "Blue Vitriol Solution", + 0, + 0, + -1, + 0, + false, + false, + 3, + 1, + 1, + Dyes._NULL); public static Materials SolutionNickelSulfate = new Materials( - -1, - TextureSet.SET_NONE, - 1.0F, - 0, - 2, - 0, - 255, - 255, - 255, - 0, - "SolutionNickelSulfate", - "Nickel Sulfate Solution", - 0, - 0, - -1, - 0, - false, - false, - 3, - 1, - 1, - Dyes._NULL); + -1, + TextureSet.SET_NONE, + 1.0F, + 0, + 2, + 0, + 255, + 255, + 255, + 0, + "SolutionNickelSulfate", + "Nickel Sulfate Solution", + 0, + 0, + -1, + 0, + false, + false, + 3, + 1, + 1, + Dyes._NULL); public static Materials Lodestone = new Materials( - -1, - TextureSet.SET_NONE, - 1.0F, - 0, - 1, - 1 | 8, - 255, - 255, - 255, - 0, - "Lodestone", - "Lodestone", - 0, - 0, - -1, - 0, - false, - false, - 1, - 1, - 1, - Dyes._NULL); + -1, + TextureSet.SET_NONE, + 1.0F, + 0, + 1, + 1 | 8, + 255, + 255, + 255, + 0, + "Lodestone", + "Lodestone", + 0, + 0, + -1, + 0, + false, + false, + 1, + 1, + 1, + Dyes._NULL); public static Materials Luminite = new Materials( - -1, - TextureSet.SET_NONE, - 1.0F, - 0, - 1, - 1 | 8, - 250, - 250, - 250, - 0, - "Luminite", - "Luminite", - 0, - 0, - -1, - 0, - false, - false, - 3, - 1, - 1, - Dyes.dyeWhite); + -1, + TextureSet.SET_NONE, + 1.0F, + 0, + 1, + 1 | 8, + 250, + 250, + 250, + 0, + "Luminite", + "Luminite", + 0, + 0, + -1, + 0, + false, + false, + 3, + 1, + 1, + Dyes.dyeWhite); private static void initSubTags() { SubTag.METAL.addTo(Signalum, Lumium, EnrichedCopper, DiamondCopper); diff --git a/src/main/java/gregtech/api/enums/GT_HatchElement.java b/src/main/java/gregtech/api/enums/GT_HatchElement.java index ac8dc7c4dd..3a21d5a2eb 100644 --- a/src/main/java/gregtech/api/enums/GT_HatchElement.java +++ b/src/main/java/gregtech/api/enums/GT_HatchElement.java @@ -28,7 +28,7 @@ public enum GT_HatchElement implements IHatchElement adder, - Class... mteClasses) { + Class... mteClasses) { this.mteClasses = Collections.unmodifiableList(Arrays.asList(mteClasses)); this.adder = adder; } diff --git a/src/main/java/gregtech/api/enums/GT_Values.java b/src/main/java/gregtech/api/enums/GT_Values.java index 8aca75c6e1..a6a7d6d45c 100644 --- a/src/main/java/gregtech/api/enums/GT_Values.java +++ b/src/main/java/gregtech/api/enums/GT_Values.java @@ -47,8 +47,8 @@ public class GT_Values { */ @SuppressWarnings("PointlessBitwiseExpression") // Nicer source layout this way public static final int[] B = new int[] { 1 << 0, 1 << 1, 1 << 2, 1 << 3, 1 << 4, 1 << 5, 1 << 6, 1 << 7, 1 << 8, - 1 << 9, 1 << 10, 1 << 11, 1 << 12, 1 << 13, 1 << 14, 1 << 15, 1 << 16, 1 << 17, 1 << 18, 1 << 19, 1 << 20, - 1 << 21, 1 << 22, 1 << 23, 1 << 24, 1 << 25, 1 << 26, 1 << 27, 1 << 28, 1 << 29, 1 << 30, 1 << 31 }; + 1 << 9, 1 << 10, 1 << 11, 1 << 12, 1 << 13, 1 << 14, 1 << 15, 1 << 16, 1 << 17, 1 << 18, 1 << 19, 1 << 20, + 1 << 21, 1 << 22, 1 << 23, 1 << 24, 1 << 25, 1 << 26, 1 << 27, 1 << 28, 1 << 29, 1 << 30, 1 << 31 }; /** * Renamed from "MATERIAL_UNIT" to just "M" @@ -78,9 +78,9 @@ public class GT_Values { * The Voltage Tiers. Use this Array instead of the old named Voltage Variables */ public static final long[] V = new long[] { 8L, 32L, 128L, 512L, 2048L, 8192L, 32_768L, 131_072L, 524_288L, - 2_097_152L, 8_388_608L, 33_554_432L, 134_217_728L, 536_870_912L, Integer.MAX_VALUE - 7, - // Error tier to prevent out of bounds errors. Not really a real tier (for now). - 8_589_934_592L }; + 2_097_152L, 8_388_608L, 33_554_432L, 134_217_728L, 536_870_912L, Integer.MAX_VALUE - 7, + // Error tier to prevent out of bounds errors. Not really a real tier (for now). + 8_589_934_592L }; /** * The Voltage Practical. These are recipe voltage you should use if you expect the recipe to use a full amp of that @@ -88,12 +88,12 @@ public class GT_Values { */ // this will correctly map ULV to 7. public static final long[] VP = Arrays.stream(V) - .map( - i -> BigInteger.valueOf(i) - .multiply(BigInteger.valueOf(30)) - .divide(BigInteger.valueOf(32)) - .longValueExact()) - .toArray(); + .map( + i -> BigInteger.valueOf(i) + .multiply(BigInteger.valueOf(30)) + .divide(BigInteger.valueOf(32)) + .longValueExact()) + .toArray(); // Why -7? Mystery of the universe. Something may break if you change this so please do not without extensive // testing. // TODO:Adding that in coremod!!! @@ -117,65 +117,65 @@ public class GT_Values { *

*/ public static final long[] AatV = new long[] { 268435455, 67108863, 16777215, 4194303, 1048575, 262143, 65535, - 16383, 4095, 1023, 255, 63, 15, 3, 1, 1 }; + 16383, 4095, 1023, 255, 63, 15, 3, 1, 1 }; /** * The short Names for the Voltages */ public static final String[] VN = new String[] { "ULV", // 0 - "LV", // 1 - "MV", // 2 - "HV", // 3 - "EV", // 4 - "IV", // 5 - "LuV", // 6 - "ZPM", // 7 - "UV", // 8 - "UHV", // 9 - "UEV", // 10 - "UIV", // 11 - "UMV", // 12 - "UXV", // 13 - "MAX", // 14 - "ERROR VOLTAGE" // 15 + "LV", // 1 + "MV", // 2 + "HV", // 3 + "EV", // 4 + "IV", // 5 + "LuV", // 6 + "ZPM", // 7 + "UV", // 8 + "UHV", // 9 + "UEV", // 10 + "UIV", // 11 + "UMV", // 12 + "UXV", // 13 + "MAX", // 14 + "ERROR VOLTAGE" // 15 }; /** * The long Names for the Voltages */ public static final String[] VOLTAGE_NAMES = new String[] { "Ultra Low Voltage", // 0 - "Low Voltage", // 1 - "Medium Voltage", // 2 - "High Voltage", // 3 - "Extreme Voltage", // 4 - "Insane Voltage", // 5 - "Ludicrous Voltage", // 6 - "ZPM Voltage", // 7 - "Ultimate Voltage", // 8 - "Ultimate High Voltage", // 9 - "Ultimate Extreme Voltage", // 10 - "Ultimate Insane Voltage", // 11 - "Ultimate Mega Voltage", // 12 - "Ultimate Extended Mega Voltage", // 13 - "Maximum Voltage", // 14 - "Error Voltage, report this" // 15 + "Low Voltage", // 1 + "Medium Voltage", // 2 + "High Voltage", // 3 + "Extreme Voltage", // 4 + "Insane Voltage", // 5 + "Ludicrous Voltage", // 6 + "ZPM Voltage", // 7 + "Ultimate Voltage", // 8 + "Ultimate High Voltage", // 9 + "Ultimate Extreme Voltage", // 10 + "Ultimate Insane Voltage", // 11 + "Ultimate Mega Voltage", // 12 + "Ultimate Extended Mega Voltage", // 13 + "Maximum Voltage", // 14 + "Error Voltage, report this" // 15 }; public static final String[] TIER_COLORS = new String[] { EnumChatFormatting.RED.toString(), // ULV, 0 - EnumChatFormatting.GRAY.toString(), // LV, 1 - EnumChatFormatting.GOLD.toString(), // MV, 2 - EnumChatFormatting.YELLOW.toString(), // HV, 3 - EnumChatFormatting.DARK_GRAY.toString(), // EV, 4 - EnumChatFormatting.GREEN.toString(), // IV, 5 - EnumChatFormatting.LIGHT_PURPLE.toString(), // LuV, 6 - EnumChatFormatting.AQUA.toString(), // ZPM, 7 - EnumChatFormatting.DARK_GREEN.toString(), // UV, 8 - EnumChatFormatting.DARK_RED.toString(), // UHV, 9 - EnumChatFormatting.DARK_PURPLE.toString(), // UEV, 10 - EnumChatFormatting.DARK_BLUE.toString() + EnumChatFormatting.BOLD, // UIV, 11 - EnumChatFormatting.RED.toString() + EnumChatFormatting.BOLD + EnumChatFormatting.UNDERLINE, // UMV, 12 - EnumChatFormatting.DARK_RED.toString() + EnumChatFormatting.BOLD + EnumChatFormatting.UNDERLINE, // UXV, 13 - EnumChatFormatting.WHITE.toString() + EnumChatFormatting.BOLD + EnumChatFormatting.UNDERLINE, // MAX, 14 - EnumChatFormatting.OBFUSCATED.toString() // ~~~, 15 + EnumChatFormatting.GRAY.toString(), // LV, 1 + EnumChatFormatting.GOLD.toString(), // MV, 2 + EnumChatFormatting.YELLOW.toString(), // HV, 3 + EnumChatFormatting.DARK_GRAY.toString(), // EV, 4 + EnumChatFormatting.GREEN.toString(), // IV, 5 + EnumChatFormatting.LIGHT_PURPLE.toString(), // LuV, 6 + EnumChatFormatting.AQUA.toString(), // ZPM, 7 + EnumChatFormatting.DARK_GREEN.toString(), // UV, 8 + EnumChatFormatting.DARK_RED.toString(), // UHV, 9 + EnumChatFormatting.DARK_PURPLE.toString(), // UEV, 10 + EnumChatFormatting.DARK_BLUE.toString() + EnumChatFormatting.BOLD, // UIV, 11 + EnumChatFormatting.RED.toString() + EnumChatFormatting.BOLD + EnumChatFormatting.UNDERLINE, // UMV, 12 + EnumChatFormatting.DARK_RED.toString() + EnumChatFormatting.BOLD + EnumChatFormatting.UNDERLINE, // UXV, 13 + EnumChatFormatting.WHITE.toString() + EnumChatFormatting.BOLD + EnumChatFormatting.UNDERLINE, // MAX, 14 + EnumChatFormatting.OBFUSCATED.toString() // ~~~, 15 }; /** @@ -285,64 +285,64 @@ public class GT_Values { public static final class NBT { public static final String COLOR = "gt.color", // Integer - COVERS = "gt.covers", // String - CUSTOM_NAME = "name", // String - DISPAY = "gt.display", // String - TIER = "gt.tier", // Number - FACING = "gt.facing", // Byte - LOCK_UPGRADE = "gt.locked", // Boolean - MATERIAL = "gt.material", // String containing the Material Name. - MODE = "gt.mode", // Number - ALLOWED_MODES = "gt.amode", // Number - MTE_ID = "gt.mte.id", // Containing the MTE ID - MTE_REG = "gt.mte.reg", // Containing the MTE Registry ID - OWNER = "gt.owner", // String - OWNER_UUID = "gt.ownerUuid", // UUID (String) - - // Machines - ACTIVE = "gt.active", // Boolean - FLUID_OUT = "gt.fluidout", // Output Fluid - ITEM_OUT = "gt.itemout", // Output Item - PARALLEL = "gt.parallel", // Number - TANK_CAPACITY = "gt.tankcap", // Number - TANK_IN = "gt.tank.in.", // FluidStack - TANK_OUT = "gt.tank.out.", // FluidStack - TEXTURE = "gt.texture", // String - INV_INPUT_SIZE = "gt.invsize.in", // Number - INV_OUTPUT_SIZE = "gt.invsize.out", // Number - INV_INPUT_LIST = "gt.invlist.in", // NBT List - INV_OUTPUT_LIST = "gt.invlist.out", // NBT List - VOLTAGE = "gt.voltage", // Number - AMPERAGE = "gt.amperage", // Number - STORED_ENERGY = "gt.stored.energy", // Number - MAXIMUM_ENERGY = "gt.maximum.energy", // Number - EUT_CONSUMPTION = "gt.eut.consumption", // Number - BURN_TIME_LEFT = "gt.burn.time.left", // Number - TOTAL_BURN_TIME = "gt.total.burn.time", // Number - ALLOWED_WORK = "gt.allowed.work", // Boolean - - // MultiBlock - STRUCTURE_OK = "gt.structure.ok", ROTATION = "gt.eRotation", FLIP = "gt.eFlip", TARGET = "gt.target", // Boolean - TARGET_X = "gt.target.x", // Number - TARGET_Y = "gt.target.y", // Number - TARGET_Z = "gt.target.z", // Number - LOCKED_INVENTORY = "gt.locked.inventory", // String - LOCKED_INVENTORY_INDEX = "gt.locked.inventory.index", // Number - UPGRADE_INVENTORY_SIZE = "gt.invsize.upg", // String - UPGRADE_INVENTORY_UUID = "gt.invuuid.upg", // String - UPGRADE_INVENTORY_NAME = "gt.invname.upg", // String - UPGRADE_INVENTORIES_INPUT = "gt.invlist.upg.in", // NBT List - UPGRADE_INVENTORIES_OUTPUT = "gt.invlist.upg.out", // NBT List - SEPARATE_INPUTS = "gt.separate.inputs", // Boolean - - // Logic - POWER_LOGIC = "gt.power.logic", // NBT Tag - POWER_LOGIC_STORED_ENERGY = "gt.power.logic.stored.energy", // Number - POWER_LOGIC_ENERGY_CAPACITY = "gt.power.logic.energy.capacity", // Number - POWER_LOGIC_VOLTAGE = "gt.power.logic.voltage", // Number - POWER_LOGIC_AMPERAGE = "gt.power.logic.voltage", // Number - POWER_LOGIC_TYPE = "gt.power.logic.type", // Number - empty_ = ""; + COVERS = "gt.covers", // String + CUSTOM_NAME = "name", // String + DISPAY = "gt.display", // String + TIER = "gt.tier", // Number + FACING = "gt.facing", // Byte + LOCK_UPGRADE = "gt.locked", // Boolean + MATERIAL = "gt.material", // String containing the Material Name. + MODE = "gt.mode", // Number + ALLOWED_MODES = "gt.amode", // Number + MTE_ID = "gt.mte.id", // Containing the MTE ID + MTE_REG = "gt.mte.reg", // Containing the MTE Registry ID + OWNER = "gt.owner", // String + OWNER_UUID = "gt.ownerUuid", // UUID (String) + + // Machines + ACTIVE = "gt.active", // Boolean + FLUID_OUT = "gt.fluidout", // Output Fluid + ITEM_OUT = "gt.itemout", // Output Item + PARALLEL = "gt.parallel", // Number + TANK_CAPACITY = "gt.tankcap", // Number + TANK_IN = "gt.tank.in.", // FluidStack + TANK_OUT = "gt.tank.out.", // FluidStack + TEXTURE = "gt.texture", // String + INV_INPUT_SIZE = "gt.invsize.in", // Number + INV_OUTPUT_SIZE = "gt.invsize.out", // Number + INV_INPUT_LIST = "gt.invlist.in", // NBT List + INV_OUTPUT_LIST = "gt.invlist.out", // NBT List + VOLTAGE = "gt.voltage", // Number + AMPERAGE = "gt.amperage", // Number + STORED_ENERGY = "gt.stored.energy", // Number + MAXIMUM_ENERGY = "gt.maximum.energy", // Number + EUT_CONSUMPTION = "gt.eut.consumption", // Number + BURN_TIME_LEFT = "gt.burn.time.left", // Number + TOTAL_BURN_TIME = "gt.total.burn.time", // Number + ALLOWED_WORK = "gt.allowed.work", // Boolean + + // MultiBlock + STRUCTURE_OK = "gt.structure.ok", ROTATION = "gt.eRotation", FLIP = "gt.eFlip", TARGET = "gt.target", // Boolean + TARGET_X = "gt.target.x", // Number + TARGET_Y = "gt.target.y", // Number + TARGET_Z = "gt.target.z", // Number + LOCKED_INVENTORY = "gt.locked.inventory", // String + LOCKED_INVENTORY_INDEX = "gt.locked.inventory.index", // Number + UPGRADE_INVENTORY_SIZE = "gt.invsize.upg", // String + UPGRADE_INVENTORY_UUID = "gt.invuuid.upg", // String + UPGRADE_INVENTORY_NAME = "gt.invname.upg", // String + UPGRADE_INVENTORIES_INPUT = "gt.invlist.upg.in", // NBT List + UPGRADE_INVENTORIES_OUTPUT = "gt.invlist.upg.out", // NBT List + SEPARATE_INPUTS = "gt.separate.inputs", // Boolean + + // Logic + POWER_LOGIC = "gt.power.logic", // NBT Tag + POWER_LOGIC_STORED_ENERGY = "gt.power.logic.stored.energy", // Number + POWER_LOGIC_ENERGY_CAPACITY = "gt.power.logic.energy.capacity", // Number + POWER_LOGIC_VOLTAGE = "gt.power.logic.voltage", // Number + POWER_LOGIC_AMPERAGE = "gt.power.logic.voltage", // Number + POWER_LOGIC_TYPE = "gt.power.logic.type", // Number + empty_ = ""; } /** The Color White as RGB Short Array. */ @@ -358,8 +358,8 @@ public class GT_Values { // stupidly // mirrored // Texture - SIDE_SOUTH = 3, SIDE_WEST = 4, SIDE_EAST = 5, // Also a Side with a stupidly mirrored Texture - SIDE_ANY = 6, SIDE_UNKNOWN = 6, SIDE_INVALID = 6, SIDE_INSIDE = 6, SIDE_UNDEFINED = 6; + SIDE_SOUTH = 3, SIDE_WEST = 4, SIDE_EAST = 5, // Also a Side with a stupidly mirrored Texture + SIDE_ANY = 6, SIDE_UNKNOWN = 6, SIDE_INVALID = 6, SIDE_INSIDE = 6, SIDE_UNDEFINED = 6; /** Compass alike Array for the proper ordering of North, East, South and West. */ public static final byte[] COMPASS_DIRECTIONS = { SIDE_NORTH, SIDE_EAST, SIDE_SOUTH, SIDE_WEST }; @@ -373,13 +373,13 @@ public class GT_Values { * For Facing Checks. */ public static final boolean[] INVALID_SIDES = { false, false, false, false, false, false, true }, - VALID_SIDES = { true, true, true, true, true, true, false }; + VALID_SIDES = { true, true, true, true, true, true, false }; /** * Side->Offset Mappings. */ public static final byte[] OFFX = { 0, 0, 0, 0, -1, +1, 0 }, OFFY = { -1, +1, 0, 0, 0, 0, 0 }, - OFFZ = { 0, 0, -1, +1, 0, 0, 0 }; + OFFZ = { 0, 0, -1, +1, 0, 0, 0 }; /** * Side->Opposite Mappings. @@ -391,8 +391,8 @@ public class GT_Values { * front, 4 = right, 5 = back, 6 = undefined. */ public static final byte[][] FACING_ROTATIONS = { { 0, 1, 2, 3, 4, 5, 6 }, { 0, 1, 2, 3, 4, 5, 6 }, - { 0, 1, 3, 5, 4, 2, 6 }, { 0, 1, 5, 3, 2, 4, 6 }, { 0, 1, 2, 4, 3, 5, 6 }, { 0, 1, 4, 2, 5, 3, 6 }, - { 0, 1, 2, 3, 4, 5, 6 } }; + { 0, 1, 3, 5, 4, 2, 6 }, { 0, 1, 5, 3, 2, 4, 6 }, { 0, 1, 2, 4, 3, 5, 6 }, { 0, 1, 4, 2, 5, 3, 6 }, + { 0, 1, 2, 3, 4, 5, 6 } }; /** * The Mod Object itself. That is the GT_Mod-Object. It's needed to open GUI's and similar. @@ -530,63 +530,63 @@ public class GT_Values { * Pretty formatting for author names. */ public static final String Colen = "" + EnumChatFormatting.DARK_RED - + EnumChatFormatting.BOLD - + EnumChatFormatting.ITALIC - + EnumChatFormatting.UNDERLINE - + "C" - + EnumChatFormatting.GOLD - + EnumChatFormatting.BOLD - + EnumChatFormatting.ITALIC - + EnumChatFormatting.UNDERLINE - + "o" - + EnumChatFormatting.GREEN - + EnumChatFormatting.BOLD - + EnumChatFormatting.ITALIC - + EnumChatFormatting.UNDERLINE - + "l" - + EnumChatFormatting.DARK_AQUA - + EnumChatFormatting.BOLD - + EnumChatFormatting.ITALIC - + EnumChatFormatting.UNDERLINE - + "e" - + EnumChatFormatting.DARK_PURPLE - + EnumChatFormatting.BOLD - + EnumChatFormatting.ITALIC - + EnumChatFormatting.UNDERLINE - + "n"; + + EnumChatFormatting.BOLD + + EnumChatFormatting.ITALIC + + EnumChatFormatting.UNDERLINE + + "C" + + EnumChatFormatting.GOLD + + EnumChatFormatting.BOLD + + EnumChatFormatting.ITALIC + + EnumChatFormatting.UNDERLINE + + "o" + + EnumChatFormatting.GREEN + + EnumChatFormatting.BOLD + + EnumChatFormatting.ITALIC + + EnumChatFormatting.UNDERLINE + + "l" + + EnumChatFormatting.DARK_AQUA + + EnumChatFormatting.BOLD + + EnumChatFormatting.ITALIC + + EnumChatFormatting.UNDERLINE + + "e" + + EnumChatFormatting.DARK_PURPLE + + EnumChatFormatting.BOLD + + EnumChatFormatting.ITALIC + + EnumChatFormatting.UNDERLINE + + "n"; public static final String AuthorColen = "Author: " + Colen; public static final String AuthorKuba = "Author: " + EnumChatFormatting.DARK_RED - + EnumChatFormatting.BOLD - + "k" - + EnumChatFormatting.RED - + EnumChatFormatting.BOLD - + "u" - + EnumChatFormatting.GOLD - + EnumChatFormatting.BOLD - + "b" - + EnumChatFormatting.YELLOW - + EnumChatFormatting.BOLD - + "a" - + EnumChatFormatting.DARK_GREEN - + EnumChatFormatting.BOLD - + "6" - + EnumChatFormatting.GREEN - + EnumChatFormatting.BOLD - + "0" - + EnumChatFormatting.AQUA - + EnumChatFormatting.BOLD - + "0" - + EnumChatFormatting.DARK_AQUA - + EnumChatFormatting.BOLD - + "0"; + + EnumChatFormatting.BOLD + + "k" + + EnumChatFormatting.RED + + EnumChatFormatting.BOLD + + "u" + + EnumChatFormatting.GOLD + + EnumChatFormatting.BOLD + + "b" + + EnumChatFormatting.YELLOW + + EnumChatFormatting.BOLD + + "a" + + EnumChatFormatting.DARK_GREEN + + EnumChatFormatting.BOLD + + "6" + + EnumChatFormatting.GREEN + + EnumChatFormatting.BOLD + + "0" + + EnumChatFormatting.AQUA + + EnumChatFormatting.BOLD + + "0" + + EnumChatFormatting.DARK_AQUA + + EnumChatFormatting.BOLD + + "0"; public static final String AuthorBlueWeabo = "Author: " + EnumChatFormatting.BLUE - + EnumChatFormatting.BOLD - + "Blue" - + EnumChatFormatting.AQUA - + EnumChatFormatting.BOLD - + "Weabo"; + + EnumChatFormatting.BOLD + + "Blue" + + EnumChatFormatting.AQUA + + EnumChatFormatting.BOLD + + "Weabo"; // 7.5F comes from GT_Tool_Turbine_Large#getBaseDamage() given huge turbines are the most efficient now. public static double getMaxPlasmaTurbineEfficiencyFromMaterial(Materials material) { @@ -613,9 +613,9 @@ public class GT_Values { } private static final long[] EXPLOSION_LOOKUP_V = new long[] { V[0], V[1], V[2], V[3], V[4], V[4] * 2, V[5], V[6], - V[7], V[8], V[8] * 2, V[9], V[10], V[11], V[12], V[12] * 2, V[13], V[14], V[15] }; + V[7], V[8], V[8] * 2, V[9], V[10], V[11], V[12], V[12] * 2, V[13], V[14], V[15] }; private static final float[] EXPLOSION_LOOKUP_POWER = new float[] { 1.0F, 2.0F, 3.0F, 4.0F, 5.0F, 6.0F, 7.0F, 8.0F, - 9.0F, 10.0F, 11.0F, 12.0F, 13.0F, 14.0F, 15.0F, 16.0F, 17.0F, 18.0F, 19.0F, 20.0F }; + 9.0F, 10.0F, 11.0F, 12.0F, 13.0F, 14.0F, 15.0F, 16.0F, 17.0F, 18.0F, 19.0F, 20.0F }; public static float getExplosionPowerForVoltage(long voltage) { for (int i = 0; i < EXPLOSION_LOOKUP_V.length; i++) { diff --git a/src/main/java/gregtech/api/enums/ItemList.java b/src/main/java/gregtech/api/enums/ItemList.java index b855dbc211..59b094c4c0 100644 --- a/src/main/java/gregtech/api/enums/ItemList.java +++ b/src/main/java/gregtech/api/enums/ItemList.java @@ -2023,39 +2023,37 @@ public enum ItemList implements IItemContainer { Machine_Multi_TranscendentPlasmaMixer; public static final ItemList[] DYE_ONLY_ITEMS = { Color_00, Color_01, Color_02, Color_03, Color_04, Color_05, - Color_06, Color_07, Color_08, Color_09, Color_10, Color_11, Color_12, Color_13, Color_14, Color_15 }, - SPRAY_CAN_DYES = { Spray_Color_00, Spray_Color_01, Spray_Color_02, Spray_Color_03, Spray_Color_04, - Spray_Color_05, Spray_Color_06, Spray_Color_07, Spray_Color_08, Spray_Color_09, Spray_Color_10, - Spray_Color_11, Spray_Color_12, Spray_Color_13, Spray_Color_14, Spray_Color_15 }, - SPRAY_CAN_DYES_USED = { Spray_Color_Used_00, Spray_Color_Used_01, Spray_Color_Used_02, Spray_Color_Used_03, - Spray_Color_Used_04, Spray_Color_Used_05, Spray_Color_Used_06, Spray_Color_Used_07, - Spray_Color_Used_08, Spray_Color_Used_09, Spray_Color_Used_10, Spray_Color_Used_11, - Spray_Color_Used_12, Spray_Color_Used_13, Spray_Color_Used_14, Spray_Color_Used_15 }, - TRANSFORMERS = { Transformer_LV_ULV, Transformer_MV_LV, Transformer_HV_MV, Transformer_EV_HV, - Transformer_IV_EV, Transformer_LuV_IV, Transformer_ZPM_LuV, Transformer_UV_ZPM, - Transformer_MAX_UV }, - MACHINE_HULLS = { Hull_ULV, Hull_LV, Hull_MV, Hull_HV, Hull_EV, Hull_IV, Hull_LuV, Hull_ZPM, Hull_UV, - Hull_MAX }, - HATCHES_DYNAMO = { Hatch_Dynamo_ULV, Hatch_Dynamo_LV, Hatch_Dynamo_MV, Hatch_Dynamo_HV, Hatch_Dynamo_EV, - Hatch_Dynamo_IV, Hatch_Dynamo_LuV, Hatch_Dynamo_ZPM, Hatch_Dynamo_UV, Hatch_Dynamo_MAX }, - HATCHES_ENERGY = { Hatch_Energy_ULV, Hatch_Energy_LV, Hatch_Energy_MV, Hatch_Energy_HV, Hatch_Energy_EV, - Hatch_Energy_IV, Hatch_Energy_LuV, Hatch_Energy_ZPM, Hatch_Energy_UV, Hatch_Energy_MAX }, - HATCHES_INPUT = { Hatch_Input_ULV, Hatch_Input_LV, Hatch_Input_MV, Hatch_Input_HV, Hatch_Input_EV, - Hatch_Input_IV, Hatch_Input_LuV, Hatch_Input_ZPM, Hatch_Input_UV, Hatch_Input_MAX }, - HATCHES_INPUT_BUS = { Hatch_Input_Bus_ULV, Hatch_Input_Bus_LV, Hatch_Input_Bus_MV, Hatch_Input_Bus_HV, - Hatch_Input_Bus_EV, Hatch_Input_Bus_IV, Hatch_Input_Bus_LuV, Hatch_Input_Bus_ZPM, - Hatch_Input_Bus_UV, Hatch_Input_Bus_MAX }, - HATCHES_OUTPUT = { Hatch_Output_ULV, Hatch_Output_LV, Hatch_Output_MV, Hatch_Output_HV, Hatch_Output_EV, - Hatch_Output_IV, Hatch_Output_LuV, Hatch_Output_ZPM, Hatch_Output_UV, Hatch_Output_MAX }, - HATCHES_OUTPUT_BUS = { Hatch_Output_Bus_ULV, Hatch_Output_Bus_LV, Hatch_Output_Bus_MV, Hatch_Output_Bus_HV, - Hatch_Output_Bus_EV, Hatch_Output_Bus_IV, Hatch_Output_Bus_LuV, Hatch_Output_Bus_ZPM, - Hatch_Output_Bus_UV, Hatch_Output_Bus_MAX }, - HATCHES_MUFFLER = { Hatch_Muffler_LV, Hatch_Muffler_LV, Hatch_Muffler_MV, Hatch_Muffler_HV, - Hatch_Muffler_EV, Hatch_Muffler_IV, Hatch_Muffler_LuV, Hatch_Muffler_ZPM, Hatch_Muffler_UV, - Hatch_Muffler_MAX }; + Color_06, Color_07, Color_08, Color_09, Color_10, Color_11, Color_12, Color_13, Color_14, Color_15 }, + SPRAY_CAN_DYES = { Spray_Color_00, Spray_Color_01, Spray_Color_02, Spray_Color_03, Spray_Color_04, + Spray_Color_05, Spray_Color_06, Spray_Color_07, Spray_Color_08, Spray_Color_09, Spray_Color_10, + Spray_Color_11, Spray_Color_12, Spray_Color_13, Spray_Color_14, Spray_Color_15 }, + SPRAY_CAN_DYES_USED = { Spray_Color_Used_00, Spray_Color_Used_01, Spray_Color_Used_02, Spray_Color_Used_03, + Spray_Color_Used_04, Spray_Color_Used_05, Spray_Color_Used_06, Spray_Color_Used_07, Spray_Color_Used_08, + Spray_Color_Used_09, Spray_Color_Used_10, Spray_Color_Used_11, Spray_Color_Used_12, Spray_Color_Used_13, + Spray_Color_Used_14, Spray_Color_Used_15 }, + TRANSFORMERS = { Transformer_LV_ULV, Transformer_MV_LV, Transformer_HV_MV, Transformer_EV_HV, Transformer_IV_EV, + Transformer_LuV_IV, Transformer_ZPM_LuV, Transformer_UV_ZPM, Transformer_MAX_UV }, + MACHINE_HULLS = { Hull_ULV, Hull_LV, Hull_MV, Hull_HV, Hull_EV, Hull_IV, Hull_LuV, Hull_ZPM, Hull_UV, + Hull_MAX }, + HATCHES_DYNAMO = { Hatch_Dynamo_ULV, Hatch_Dynamo_LV, Hatch_Dynamo_MV, Hatch_Dynamo_HV, Hatch_Dynamo_EV, + Hatch_Dynamo_IV, Hatch_Dynamo_LuV, Hatch_Dynamo_ZPM, Hatch_Dynamo_UV, Hatch_Dynamo_MAX }, + HATCHES_ENERGY = { Hatch_Energy_ULV, Hatch_Energy_LV, Hatch_Energy_MV, Hatch_Energy_HV, Hatch_Energy_EV, + Hatch_Energy_IV, Hatch_Energy_LuV, Hatch_Energy_ZPM, Hatch_Energy_UV, Hatch_Energy_MAX }, + HATCHES_INPUT = { Hatch_Input_ULV, Hatch_Input_LV, Hatch_Input_MV, Hatch_Input_HV, Hatch_Input_EV, + Hatch_Input_IV, Hatch_Input_LuV, Hatch_Input_ZPM, Hatch_Input_UV, Hatch_Input_MAX }, + HATCHES_INPUT_BUS = { Hatch_Input_Bus_ULV, Hatch_Input_Bus_LV, Hatch_Input_Bus_MV, Hatch_Input_Bus_HV, + Hatch_Input_Bus_EV, Hatch_Input_Bus_IV, Hatch_Input_Bus_LuV, Hatch_Input_Bus_ZPM, Hatch_Input_Bus_UV, + Hatch_Input_Bus_MAX }, + HATCHES_OUTPUT = { Hatch_Output_ULV, Hatch_Output_LV, Hatch_Output_MV, Hatch_Output_HV, Hatch_Output_EV, + Hatch_Output_IV, Hatch_Output_LuV, Hatch_Output_ZPM, Hatch_Output_UV, Hatch_Output_MAX }, + HATCHES_OUTPUT_BUS = { Hatch_Output_Bus_ULV, Hatch_Output_Bus_LV, Hatch_Output_Bus_MV, Hatch_Output_Bus_HV, + Hatch_Output_Bus_EV, Hatch_Output_Bus_IV, Hatch_Output_Bus_LuV, Hatch_Output_Bus_ZPM, Hatch_Output_Bus_UV, + Hatch_Output_Bus_MAX }, + HATCHES_MUFFLER = { Hatch_Muffler_LV, Hatch_Muffler_LV, Hatch_Muffler_MV, Hatch_Muffler_HV, Hatch_Muffler_EV, + Hatch_Muffler_IV, Hatch_Muffler_LuV, Hatch_Muffler_ZPM, Hatch_Muffler_UV, Hatch_Muffler_MAX }; public static Fluid sOilExtraHeavy, sEpichlorhydrin, sDrillingFluid, sBlueVitriol, sNickelSulfate, sGreenVitriol, - sToluene, sNitrationMixture, sRocketFuel, sHydricSulfur, sIndiumConcentrate, sLeadZincSolution, - sHydrochloricAcid; + sToluene, sNitrationMixture, sRocketFuel, sHydricSulfur, sIndiumConcentrate, sLeadZincSolution, + sHydrochloricAcid; private ItemStack mStack; private boolean mHasNotBeenSet; private boolean mDeprecated; @@ -2164,11 +2162,11 @@ public enum ItemList implements IItemContainer { final String[] tDisplayNameWords = aDisplayName.split("\\W"); for (String tWord : tDisplayNameWords) { if (tWord.length() > 0) tCamelCasedDisplayNameBuilder.append( - tWord.substring(0, 1) - .toUpperCase(Locale.US)); + tWord.substring(0, 1) + .toUpperCase(Locale.US)); if (tWord.length() > 1) tCamelCasedDisplayNameBuilder.append( - tWord.substring(1) - .toLowerCase(Locale.US)); + tWord.substring(1) + .toLowerCase(Locale.US)); } if (tCamelCasedDisplayNameBuilder.length() == 0) { // CamelCased DisplayName is empty, so use hash of aDisplayName diff --git a/src/main/java/gregtech/api/enums/MaterialBuilder.java b/src/main/java/gregtech/api/enums/MaterialBuilder.java index fd131bbc8c..92ae7c07c3 100644 --- a/src/main/java/gregtech/api/enums/MaterialBuilder.java +++ b/src/main/java/gregtech/api/enums/MaterialBuilder.java @@ -43,39 +43,39 @@ public class MaterialBuilder { this.metaItemSubID = metaItemSubID; this.iconSet = iconSet; this.name = defaultLocalName.replace(" ", "") - .replace("-", ""); + .replace("-", ""); this.defaultLocalName = defaultLocalName; } public Materials constructMaterial() { return new Materials( - metaItemSubID, - iconSet, - toolSpeed, - durability, - toolQuality, - types, - r, - g, - b, - a, - name, - defaultLocalName, - fuelType, - fuelPower, - meltingPoint, - blastFurnaceTemp, - blastFurnaceRequired, - transparent, - oreValue, - densityMultiplier, - densityDivider, - color, - extraData, - materialList, - aspects).setHasCorrespondingFluid(hasCorrespondingFluid) - .setHasCorrespondingGas(hasCorrespondingGas) - .setCanBeCracked(canBeCracked); + metaItemSubID, + iconSet, + toolSpeed, + durability, + toolQuality, + types, + r, + g, + b, + a, + name, + defaultLocalName, + fuelType, + fuelPower, + meltingPoint, + blastFurnaceTemp, + blastFurnaceRequired, + transparent, + oreValue, + densityMultiplier, + densityDivider, + color, + extraData, + materialList, + aspects).setHasCorrespondingFluid(hasCorrespondingFluid) + .setHasCorrespondingGas(hasCorrespondingGas) + .setCanBeCracked(canBeCracked); } public MaterialBuilder setName(String name) { diff --git a/src/main/java/gregtech/api/enums/Materials.java b/src/main/java/gregtech/api/enums/Materials.java index 3547f8633b..6429756039 100644 --- a/src/main/java/gregtech/api/enums/Materials.java +++ b/src/main/java/gregtech/api/enums/Materials.java @@ -980,8 +980,8 @@ public class Materials implements IColorModulationContainer, ISubTagContainer { public Collection mSubTags = new LinkedHashSet<>(); public Enchantment mEnchantmentTools = null, mEnchantmentArmors = null; public boolean mUnificatable, mBlastFurnaceRequired = false, mAutoGenerateBlastFurnaceRecipes = true, - mAutoGenerateVacuumFreezerRecipes = true, mAutoGenerateRecycleRecipes = true, mTransparent = false, - mHasParentMod = true, mHasPlasma = false, mHasGas = false, mCustomOre = false; + mAutoGenerateVacuumFreezerRecipes = true, mAutoGenerateRecycleRecipes = true, mTransparent = false, + mHasParentMod = true, mHasPlasma = false, mHasGas = false, mCustomOre = false; public byte mEnchantmentToolsLevel = 0, mEnchantmentArmorsLevel = 0, mToolQuality = 0; public short mBlastFurnaceTemp = 0; public int mMeltingPoint = 0; @@ -1011,13 +1011,13 @@ public class Materials implements IColorModulationContainer, ISubTagContainer { public int processingMaterialTierEU = 0; public long mDensity = M; public float mToolSpeed = 1.0F, mHeatDamage = 0.0F, mSteamMultiplier = 1.0F, mGasMultiplier = 1.0F, - mPlasmaMultiplier = 1.0F; + mPlasmaMultiplier = 1.0F; public String mChemicalFormula = "?", mName, mDefaultLocalName, mCustomID = "null", mConfigSection = "null", - mLocalizedName = "null"; + mLocalizedName = "null"; public Dyes mColor = Dyes._NULL; public Element mElement = null; public Materials mDirectSmelting = this, mOreReplacement = this, mMacerateInto = this, mSmeltInto = this, - mArcSmeltInto = this, mHandleMaterial = this, mMaterialInto; + mArcSmeltInto = this, mHandleMaterial = this, mMaterialInto; public Fluid mSolid = null, mFluid = null, mGas = null, mPlasma = null; /** * This Fluid is used as standard Unit for Molten Materials. 1296 is a Molten Block, that means 144 is one Material @@ -1029,24 +1029,24 @@ public class Materials implements IColorModulationContainer, ISubTagContainer { private Fluid[] hydroCrackedFluids = new Fluid[3], steamCrackedFluids = new Fluid[3]; public Materials(int aMetaItemSubID, TextureSet aIconSet, float aToolSpeed, int aDurability, int aToolQuality, - boolean aUnificatable, String aName, String aDefaultLocalName) { + boolean aUnificatable, String aName, String aDefaultLocalName) { this( - aMetaItemSubID, - aIconSet, - aToolSpeed, - aDurability, - aToolQuality, - aUnificatable, - aName, - aDefaultLocalName, - "ore", - false, - "null"); + aMetaItemSubID, + aIconSet, + aToolSpeed, + aDurability, + aToolQuality, + aUnificatable, + aName, + aDefaultLocalName, + "ore", + false, + "null"); } public Materials(int aMetaItemSubID, TextureSet aIconSet, float aToolSpeed, int aDurability, int aToolQuality, - boolean aUnificatable, String aName, String aDefaultLocalName, String aConfigSection, boolean aCustomOre, - String aCustomID) { + boolean aUnificatable, String aName, String aDefaultLocalName, String aConfigSection, boolean aCustomOre, + String aCustomID) { mMetaItemSubID = aMetaItemSubID; mDefaultLocalName = aDefaultLocalName; mName = aName; @@ -1074,68 +1074,67 @@ public class Materials implements IColorModulationContainer, ISubTagContainer { } public Materials(int aMetaItemSubID, TextureSet aIconSet, float aToolSpeed, int aDurability, int aToolQuality, - int aTypes, int aR, int aG, int aB, int aA, String aName, String aDefaultLocalName, int aFuelType, - int aFuelPower, int aMeltingPoint, int aBlastFurnaceTemp, boolean aBlastFurnaceRequired, - boolean aTransparent, int aOreValue, int aDensityMultiplier, int aDensityDivider, Dyes aColor) { + int aTypes, int aR, int aG, int aB, int aA, String aName, String aDefaultLocalName, int aFuelType, + int aFuelPower, int aMeltingPoint, int aBlastFurnaceTemp, boolean aBlastFurnaceRequired, boolean aTransparent, + int aOreValue, int aDensityMultiplier, int aDensityDivider, Dyes aColor) { this( - aMetaItemSubID, - aIconSet, - aToolSpeed, - aDurability, - aToolQuality, - aTypes, - aR, - aG, - aB, - aA, - aName, - aDefaultLocalName, - aFuelType, - aFuelPower, - aMeltingPoint, - aBlastFurnaceTemp, - aBlastFurnaceRequired, - aTransparent, - aOreValue, - aDensityMultiplier, - aDensityDivider, - aColor, - "ore", - false, - "null"); + aMetaItemSubID, + aIconSet, + aToolSpeed, + aDurability, + aToolQuality, + aTypes, + aR, + aG, + aB, + aA, + aName, + aDefaultLocalName, + aFuelType, + aFuelPower, + aMeltingPoint, + aBlastFurnaceTemp, + aBlastFurnaceRequired, + aTransparent, + aOreValue, + aDensityMultiplier, + aDensityDivider, + aColor, + "ore", + false, + "null"); } public Materials(int aMetaItemSubID, TextureSet aIconSet, float aToolSpeed, int aDurability, int aToolQuality, - int aTypes, int aR, int aG, int aB, int aA, String aName, String aDefaultLocalName, int aFuelType, - int aFuelPower, int aMeltingPoint, int aBlastFurnaceTemp, boolean aBlastFurnaceRequired, - boolean aTransparent, int aOreValue, int aDensityMultiplier, int aDensityDivider, Dyes aColor, - String aConfigSection) { + int aTypes, int aR, int aG, int aB, int aA, String aName, String aDefaultLocalName, int aFuelType, + int aFuelPower, int aMeltingPoint, int aBlastFurnaceTemp, boolean aBlastFurnaceRequired, boolean aTransparent, + int aOreValue, int aDensityMultiplier, int aDensityDivider, Dyes aColor, String aConfigSection) { this( - aMetaItemSubID, - aIconSet, - aToolSpeed, - aDurability, - aToolQuality, - aTypes, - aR, - aG, - aB, - aA, - aName, - aDefaultLocalName, - aFuelType, - aFuelPower, - aMeltingPoint, - aBlastFurnaceTemp, - aBlastFurnaceRequired, - aTransparent, - aOreValue, - aDensityMultiplier, - aDensityDivider, - aColor, - aConfigSection, - false, - "null"); + aMetaItemSubID, + aIconSet, + aToolSpeed, + aDurability, + aToolQuality, + aTypes, + aR, + aG, + aB, + aA, + aName, + aDefaultLocalName, + aFuelType, + aFuelPower, + aMeltingPoint, + aBlastFurnaceTemp, + aBlastFurnaceRequired, + aTransparent, + aOreValue, + aDensityMultiplier, + aDensityDivider, + aColor, + aConfigSection, + false, + "null"); } /** @@ -1159,22 +1158,22 @@ public class Materials implements IColorModulationContainer, ISubTagContainer { * @param aColor Vanilla MC Wool Color which comes the closest to this. */ public Materials(int aMetaItemSubID, TextureSet aIconSet, float aToolSpeed, int aDurability, int aToolQuality, - int aTypes, int aR, int aG, int aB, int aA, String aName, String aDefaultLocalName, int aFuelType, - int aFuelPower, int aMeltingPoint, int aBlastFurnaceTemp, boolean aBlastFurnaceRequired, - boolean aTransparent, int aOreValue, int aDensityMultiplier, int aDensityDivider, Dyes aColor, - String aConfigSection, boolean aCustomOre, String aCustomID) { + int aTypes, int aR, int aG, int aB, int aA, String aName, String aDefaultLocalName, int aFuelType, + int aFuelPower, int aMeltingPoint, int aBlastFurnaceTemp, boolean aBlastFurnaceRequired, boolean aTransparent, + int aOreValue, int aDensityMultiplier, int aDensityDivider, Dyes aColor, String aConfigSection, + boolean aCustomOre, String aCustomID) { this( - aMetaItemSubID, - aIconSet, - aToolSpeed, - aDurability, - aToolQuality, - true, - aName, - aDefaultLocalName, - aConfigSection, - aCustomOre, - aCustomID); + aMetaItemSubID, + aIconSet, + aToolSpeed, + aDurability, + aToolQuality, + true, + aName, + aDefaultLocalName, + aConfigSection, + aCustomOre, + aCustomID); mMeltingPoint = aMeltingPoint; mBlastFurnaceRequired = aBlastFurnaceRequired; mBlastFurnaceTemp = (short) aBlastFurnaceTemp; @@ -1197,64 +1196,64 @@ public class Materials implements IColorModulationContainer, ISubTagContainer { } public Materials(int aMetaItemSubID, TextureSet aIconSet, float aToolSpeed, int aDurability, int aToolQuality, - int aTypes, int aR, int aG, int aB, int aA, String aName, String aDefaultLocalName, int aFuelType, - int aFuelPower, int aMeltingPoint, int aBlastFurnaceTemp, boolean aBlastFurnaceRequired, - boolean aTransparent, int aOreValue, int aDensityMultiplier, int aDensityDivider, Dyes aColor, - List aAspects) { + int aTypes, int aR, int aG, int aB, int aA, String aName, String aDefaultLocalName, int aFuelType, + int aFuelPower, int aMeltingPoint, int aBlastFurnaceTemp, boolean aBlastFurnaceRequired, boolean aTransparent, + int aOreValue, int aDensityMultiplier, int aDensityDivider, Dyes aColor, + List aAspects) { this( - aMetaItemSubID, - aIconSet, - aToolSpeed, - aDurability, - aToolQuality, - aTypes, - aR, - aG, - aB, - aA, - aName, - aDefaultLocalName, - aFuelType, - aFuelPower, - aMeltingPoint, - aBlastFurnaceTemp, - aBlastFurnaceRequired, - aTransparent, - aOreValue, - aDensityMultiplier, - aDensityDivider, - aColor); + aMetaItemSubID, + aIconSet, + aToolSpeed, + aDurability, + aToolQuality, + aTypes, + aR, + aG, + aB, + aA, + aName, + aDefaultLocalName, + aFuelType, + aFuelPower, + aMeltingPoint, + aBlastFurnaceTemp, + aBlastFurnaceRequired, + aTransparent, + aOreValue, + aDensityMultiplier, + aDensityDivider, + aColor); mAspects.addAll(aAspects); } public Materials(int aMetaItemSubID, TextureSet aIconSet, float aToolSpeed, int aDurability, int aToolQuality, - int aTypes, int aR, int aG, int aB, int aA, String aName, String aDefaultLocalName, int aFuelType, - int aFuelPower, int aMeltingPoint, int aBlastFurnaceTemp, boolean aBlastFurnaceRequired, - boolean aTransparent, int aOreValue, int aDensityMultiplier, int aDensityDivider, Dyes aColor, - Element aElement, List aAspects) { + int aTypes, int aR, int aG, int aB, int aA, String aName, String aDefaultLocalName, int aFuelType, + int aFuelPower, int aMeltingPoint, int aBlastFurnaceTemp, boolean aBlastFurnaceRequired, boolean aTransparent, + int aOreValue, int aDensityMultiplier, int aDensityDivider, Dyes aColor, Element aElement, + List aAspects) { this( - aMetaItemSubID, - aIconSet, - aToolSpeed, - aDurability, - aToolQuality, - aTypes, - aR, - aG, - aB, - aA, - aName, - aDefaultLocalName, - aFuelType, - aFuelPower, - aMeltingPoint, - aBlastFurnaceTemp, - aBlastFurnaceRequired, - aTransparent, - aOreValue, - aDensityMultiplier, - aDensityDivider, - aColor); + aMetaItemSubID, + aIconSet, + aToolSpeed, + aDurability, + aToolQuality, + aTypes, + aR, + aG, + aB, + aA, + aName, + aDefaultLocalName, + aFuelType, + aFuelPower, + aMeltingPoint, + aBlastFurnaceTemp, + aBlastFurnaceRequired, + aTransparent, + aOreValue, + aDensityMultiplier, + aDensityDivider, + aColor); mElement = aElement; mElement.mLinkedMaterials.add(this); if (aElement == Element._NULL) { @@ -1267,74 +1266,74 @@ public class Materials implements IColorModulationContainer, ISubTagContainer { } public Materials(int aMetaItemSubID, TextureSet aIconSet, float aToolSpeed, int aDurability, int aToolQuality, - int aTypes, int aR, int aG, int aB, int aA, String aName, String aDefaultLocalName, int aFuelType, - int aFuelPower, int aMeltingPoint, int aBlastFurnaceTemp, boolean aBlastFurnaceRequired, - boolean aTransparent, int aOreValue, int aDensityMultiplier, int aDensityDivider, Dyes aColor, - int aExtraData, List aMaterialList) { + int aTypes, int aR, int aG, int aB, int aA, String aName, String aDefaultLocalName, int aFuelType, + int aFuelPower, int aMeltingPoint, int aBlastFurnaceTemp, boolean aBlastFurnaceRequired, boolean aTransparent, + int aOreValue, int aDensityMultiplier, int aDensityDivider, Dyes aColor, int aExtraData, + List aMaterialList) { this( - aMetaItemSubID, - aIconSet, - aToolSpeed, - aDurability, - aToolQuality, - aTypes, - aR, - aG, - aB, - aA, - aName, - aDefaultLocalName, - aFuelType, - aFuelPower, - aMeltingPoint, - aBlastFurnaceTemp, - aBlastFurnaceRequired, - aTransparent, - aOreValue, - aDensityMultiplier, - aDensityDivider, - aColor, - aExtraData, - aMaterialList, - null); + aMetaItemSubID, + aIconSet, + aToolSpeed, + aDurability, + aToolQuality, + aTypes, + aR, + aG, + aB, + aA, + aName, + aDefaultLocalName, + aFuelType, + aFuelPower, + aMeltingPoint, + aBlastFurnaceTemp, + aBlastFurnaceRequired, + aTransparent, + aOreValue, + aDensityMultiplier, + aDensityDivider, + aColor, + aExtraData, + aMaterialList, + null); } public Materials(int aMetaItemSubID, TextureSet aIconSet, float aToolSpeed, int aDurability, int aToolQuality, - int aTypes, int aR, int aG, int aB, int aA, String aName, String aDefaultLocalName, int aFuelType, - int aFuelPower, int aMeltingPoint, int aBlastFurnaceTemp, boolean aBlastFurnaceRequired, - boolean aTransparent, int aOreValue, int aDensityMultiplier, int aDensityDivider, Dyes aColor, - int aExtraData, List aMaterialList, List aAspects) { + int aTypes, int aR, int aG, int aB, int aA, String aName, String aDefaultLocalName, int aFuelType, + int aFuelPower, int aMeltingPoint, int aBlastFurnaceTemp, boolean aBlastFurnaceRequired, boolean aTransparent, + int aOreValue, int aDensityMultiplier, int aDensityDivider, Dyes aColor, int aExtraData, + List aMaterialList, List aAspects) { this( - aMetaItemSubID, - aIconSet, - aToolSpeed, - aDurability, - aToolQuality, - aTypes, - aR, - aG, - aB, - aA, - aName, - aDefaultLocalName, - aFuelType, - aFuelPower, - aMeltingPoint, - aBlastFurnaceTemp, - aBlastFurnaceRequired, - aTransparent, - aOreValue, - aDensityMultiplier, - aDensityDivider, - aColor); + aMetaItemSubID, + aIconSet, + aToolSpeed, + aDurability, + aToolQuality, + aTypes, + aR, + aG, + aB, + aA, + aName, + aDefaultLocalName, + aFuelType, + aFuelPower, + aMeltingPoint, + aBlastFurnaceTemp, + aBlastFurnaceRequired, + aTransparent, + aOreValue, + aDensityMultiplier, + aDensityDivider, + aColor); mExtraData = aExtraData; mMaterialList.addAll(aMaterialList); if (mMaterialList.size() == 1) mChemicalFormula = mMaterialList.get(0) - .toString(true); + .toString(true); else mChemicalFormula = mMaterialList.stream() - .map(MaterialStack::toString) - .collect(Collectors.joining()) - .replaceAll("_", "-"); + .map(MaterialStack::toString) + .collect(Collectors.joining()) + .replaceAll("_", "-"); int tAmountOfComponents = 0, tMeltingPoint = 0; for (MaterialStack tMaterial : mMaterialList) { @@ -1356,38 +1355,38 @@ public class Materials implements IColorModulationContainer, ISubTagContainer { private static void setSmeltingInto() { SamariumMagnetic.setSmeltingInto(Samarium) - .setMaceratingInto(Samarium) - .setArcSmeltingInto(Samarium); + .setMaceratingInto(Samarium) + .setArcSmeltingInto(Samarium); NeodymiumMagnetic.setSmeltingInto(Neodymium) - .setMaceratingInto(Neodymium) - .setArcSmeltingInto(Neodymium); + .setMaceratingInto(Neodymium) + .setArcSmeltingInto(Neodymium); SteelMagnetic.setSmeltingInto(Steel) - .setMaceratingInto(Steel) - .setArcSmeltingInto(Steel); + .setMaceratingInto(Steel) + .setArcSmeltingInto(Steel); Iron.setSmeltingInto(Iron) .setMaceratingInto(Iron) .setArcSmeltingInto(WroughtIron); AnyIron.setSmeltingInto(Iron) - .setMaceratingInto(Iron) - .setArcSmeltingInto(WroughtIron); + .setMaceratingInto(Iron) + .setArcSmeltingInto(WroughtIron); PigIron.setSmeltingInto(Iron) - .setMaceratingInto(Iron) - .setArcSmeltingInto(WroughtIron); + .setMaceratingInto(Iron) + .setArcSmeltingInto(WroughtIron); WroughtIron.setSmeltingInto(WroughtIron) - .setMaceratingInto(WroughtIron) - .setArcSmeltingInto(WroughtIron); + .setMaceratingInto(WroughtIron) + .setArcSmeltingInto(WroughtIron); IronMagnetic.setSmeltingInto(Iron) - .setMaceratingInto(Iron) - .setArcSmeltingInto(WroughtIron); + .setMaceratingInto(Iron) + .setArcSmeltingInto(WroughtIron); Copper.setSmeltingInto(Copper) - .setMaceratingInto(Copper) - .setArcSmeltingInto(AnnealedCopper); + .setMaceratingInto(Copper) + .setArcSmeltingInto(AnnealedCopper); AnyCopper.setSmeltingInto(Copper) - .setMaceratingInto(Copper) - .setArcSmeltingInto(AnnealedCopper); + .setMaceratingInto(Copper) + .setArcSmeltingInto(AnnealedCopper); AnnealedCopper.setSmeltingInto(AnnealedCopper) - .setMaceratingInto(AnnealedCopper) - .setArcSmeltingInto(AnnealedCopper); + .setMaceratingInto(AnnealedCopper) + .setArcSmeltingInto(AnnealedCopper); Netherrack.setSmeltingInto(NetherBrick); MeatRaw.setSmeltingInto(MeatCooked); Sand.setSmeltingInto(Glass); @@ -1403,28 +1402,28 @@ public class Materials implements IColorModulationContainer, ISubTagContainer { private static void setDirectSmelting() { Cinnabar.setDirectSmelting(Mercury) - .add(SubTag.INDUCTIONSMELTING_LOW_OUTPUT) - .add(SubTag.SMELTING_TO_GEM); + .add(SubTag.INDUCTIONSMELTING_LOW_OUTPUT) + .add(SubTag.SMELTING_TO_GEM); Tetrahedrite.setDirectSmelting(Copper) - .add(SubTag.INDUCTIONSMELTING_LOW_OUTPUT) - .add(SubTag.DONT_ADD_DEFAULT_BBF_RECIPE); + .add(SubTag.INDUCTIONSMELTING_LOW_OUTPUT) + .add(SubTag.DONT_ADD_DEFAULT_BBF_RECIPE); Chalcopyrite.setDirectSmelting(Copper) - .add(SubTag.INDUCTIONSMELTING_LOW_OUTPUT) - .add(SubTag.DONT_ADD_DEFAULT_BBF_RECIPE); + .add(SubTag.INDUCTIONSMELTING_LOW_OUTPUT) + .add(SubTag.DONT_ADD_DEFAULT_BBF_RECIPE); Malachite.setDirectSmelting(Copper) - .add(SubTag.INDUCTIONSMELTING_LOW_OUTPUT); + .add(SubTag.INDUCTIONSMELTING_LOW_OUTPUT); Pentlandite.setDirectSmelting(Nickel) - .add(SubTag.INDUCTIONSMELTING_LOW_OUTPUT); + .add(SubTag.INDUCTIONSMELTING_LOW_OUTPUT); Sphalerite.setDirectSmelting(Zinc) - .add(SubTag.INDUCTIONSMELTING_LOW_OUTPUT); + .add(SubTag.INDUCTIONSMELTING_LOW_OUTPUT); Pyrite.setDirectSmelting(Iron) - .add(SubTag.INDUCTIONSMELTING_LOW_OUTPUT); + .add(SubTag.INDUCTIONSMELTING_LOW_OUTPUT); BasalticMineralSand.setDirectSmelting(Iron) - .add(SubTag.INDUCTIONSMELTING_LOW_OUTPUT); + .add(SubTag.INDUCTIONSMELTING_LOW_OUTPUT); GraniticMineralSand.setDirectSmelting(Iron) - .add(SubTag.INDUCTIONSMELTING_LOW_OUTPUT); + .add(SubTag.INDUCTIONSMELTING_LOW_OUTPUT); YellowLimonite.setDirectSmelting(Iron) - .add(SubTag.INDUCTIONSMELTING_LOW_OUTPUT); + .add(SubTag.INDUCTIONSMELTING_LOW_OUTPUT); BrownLimonite.setDirectSmelting(Iron); BandedIron.setDirectSmelting(Iron); Magnetite.setDirectSmelting(Iron); @@ -1435,9 +1434,9 @@ public class Materials implements IColorModulationContainer, ISubTagContainer { Cobaltite.setDirectSmelting(Cobalt); Stibnite.setDirectSmelting(Antimony); Cooperite.setDirectSmelting(Platinum) - .add(SubTag.DONT_ADD_DEFAULT_BBF_RECIPE); + .add(SubTag.DONT_ADD_DEFAULT_BBF_RECIPE); Molybdenite.setDirectSmelting(Molybdenum) - .add(SubTag.DONT_ADD_DEFAULT_BBF_RECIPE); + .add(SubTag.DONT_ADD_DEFAULT_BBF_RECIPE); Galena.setDirectSmelting(Lead); RoastedIron.setDirectSmelting(Iron); RoastedAntimony.setDirectSmelting(Antimony); @@ -1451,68 +1450,68 @@ public class Materials implements IColorModulationContainer, ISubTagContainer { private static void setMultipliers() { Amber.setOreMultiplier(2) - .setSmeltingMultiplier(2); + .setSmeltingMultiplier(2); InfusedAir.setOreMultiplier(2) - .setSmeltingMultiplier(2); + .setSmeltingMultiplier(2); InfusedFire.setOreMultiplier(2) - .setSmeltingMultiplier(2); + .setSmeltingMultiplier(2); InfusedEarth.setOreMultiplier(2) - .setSmeltingMultiplier(2); + .setSmeltingMultiplier(2); InfusedWater.setOreMultiplier(2) - .setSmeltingMultiplier(2); + .setSmeltingMultiplier(2); InfusedEntropy.setOreMultiplier(2) - .setSmeltingMultiplier(2); + .setSmeltingMultiplier(2); InfusedOrder.setOreMultiplier(2) - .setSmeltingMultiplier(2); + .setSmeltingMultiplier(2); InfusedVis.setOreMultiplier(2) - .setSmeltingMultiplier(2); + .setSmeltingMultiplier(2); InfusedDull.setOreMultiplier(2) - .setSmeltingMultiplier(2); + .setSmeltingMultiplier(2); Salt.setOreMultiplier(2) .setSmeltingMultiplier(2); RockSalt.setOreMultiplier(2) - .setSmeltingMultiplier(2); + .setSmeltingMultiplier(2); Scheelite.setOreMultiplier(2) - .setSmeltingMultiplier(2); + .setSmeltingMultiplier(2); Tungstate.setOreMultiplier(2) - .setSmeltingMultiplier(2); + .setSmeltingMultiplier(2); Cassiterite.setOreMultiplier(2) - .setSmeltingMultiplier(2); + .setSmeltingMultiplier(2); CassiteriteSand.setOreMultiplier(2) - .setSmeltingMultiplier(2); + .setSmeltingMultiplier(2); NetherQuartz.setOreMultiplier(2) - .setSmeltingMultiplier(2); + .setSmeltingMultiplier(2); CertusQuartz.setOreMultiplier(2) - .setSmeltingMultiplier(2); + .setSmeltingMultiplier(2); TricalciumPhosphate.setOreMultiplier(3) - .setSmeltingMultiplier(3); + .setSmeltingMultiplier(3); Saltpeter.setOreMultiplier(4) - .setSmeltingMultiplier(4); + .setSmeltingMultiplier(4); Apatite.setOreMultiplier(4) - .setSmeltingMultiplier(4) - .setByProductMultiplier(2); + .setSmeltingMultiplier(4) + .setByProductMultiplier(2); Electrotine.setOreMultiplier(5) - .setSmeltingMultiplier(5); + .setSmeltingMultiplier(5); Teslatite.setOreMultiplier(5) - .setSmeltingMultiplier(5); + .setSmeltingMultiplier(5); Redstone.setOreMultiplier(5) - .setSmeltingMultiplier(5); + .setSmeltingMultiplier(5); Glowstone.setOreMultiplier(5) - .setSmeltingMultiplier(5); + .setSmeltingMultiplier(5); Lapis.setOreMultiplier(6) - .setSmeltingMultiplier(6) - .setByProductMultiplier(4); + .setSmeltingMultiplier(6) + .setByProductMultiplier(4); Sodalite.setOreMultiplier(6) - .setSmeltingMultiplier(6) - .setByProductMultiplier(4); + .setSmeltingMultiplier(6) + .setByProductMultiplier(4); Lazurite.setOreMultiplier(6) - .setSmeltingMultiplier(6) - .setByProductMultiplier(4); + .setSmeltingMultiplier(6) + .setByProductMultiplier(4); Monazite.setOreMultiplier(8) - .setSmeltingMultiplier(8) - .setByProductMultiplier(2); + .setSmeltingMultiplier(8) + .setByProductMultiplier(2); Cryolite.setOreMultiplier(4) - .setByProductMultiplier(4); + .setByProductMultiplier(4); } private static void setEnchantmentKnockbackTools() { @@ -1702,7 +1701,7 @@ public class Materials implements IColorModulationContainer, ISubTagContainer { Lepidolite.addOreByProducts(Lithium, Caesium); Andradite.addOreByProducts(GarnetYellow, Iron); Pyrolusite.addOreByProducts(Manganese, Tantalite, Niobium) - .add(SubTag.DONT_ADD_DEFAULT_BBF_RECIPE); + .add(SubTag.DONT_ADD_DEFAULT_BBF_RECIPE); TricalciumPhosphate.addOreByProducts(Apatite, Phosphate, Pyrochlore); Apatite.addOreByProducts(TricalciumPhosphate, Phosphate, Pyrochlore); Pyrochlore.addOreByProducts(Apatite, Calcite, Niobium); @@ -1910,39 +1909,31 @@ public class Materials implements IColorModulationContainer, ISubTagContainer { private static void initSubTags() { SubTag.ELECTROMAGNETIC_SEPERATION_NEODYMIUM.addTo(Bastnasite, Monazite, Forcicium, Forcillium); - SubTag.ELECTROMAGNETIC_SEPERATION_GOLD.addTo( - Magnetite, - VanadiumMagnetite, - BasalticMineralSand, - GraniticMineralSand); + SubTag.ELECTROMAGNETIC_SEPERATION_GOLD + .addTo(Magnetite, VanadiumMagnetite, BasalticMineralSand, GraniticMineralSand); SubTag.NO_RECIPES.addTo(MagnetohydrodynamicallyConstrainedStarMatter); SubTag.ELECTROMAGNETIC_SEPERATION_IRON.addTo( - YellowLimonite, - BrownLimonite, - Pyrite, - BandedIron, - Nickel, - Vermiculite, - Glauconite, - GlauconiteSand, - Pentlandite, - Tin, - Antimony, - Ilmenite, - Manganese, - Chrome, - Chromite, - Andradite); - - SubTag.BLASTFURNACE_CALCITE_DOUBLE.addTo( - Pyrite, - BrownLimonite, - YellowLimonite, - BasalticMineralSand, - GraniticMineralSand, - Magnetite); + YellowLimonite, + BrownLimonite, + Pyrite, + BandedIron, + Nickel, + Vermiculite, + Glauconite, + GlauconiteSand, + Pentlandite, + Tin, + Antimony, + Ilmenite, + Manganese, + Chrome, + Chromite, + Andradite); + + SubTag.BLASTFURNACE_CALCITE_DOUBLE + .addTo(Pyrite, BrownLimonite, YellowLimonite, BasalticMineralSand, GraniticMineralSand, Magnetite); SubTag.BLASTFURNACE_CALCITE_TRIPLE.addTo(Iron, PigIron, DeepIron, ShadowIron, WroughtIron, MeteoricIron); @@ -1952,259 +1943,259 @@ public class Materials implements IColorModulationContainer, ISubTagContainer { SubTag.WASHING_SODIUMPERSULFATE.addTo(Zinc, Nickel, Copper, Cobalt, Cobaltite, Tetrahedrite); SubTag.METAL.addTo( - AnyIron, - AnyCopper, - AnyBronze, - Metal, - Aluminium, - Americium, - Antimony, - Beryllium, - Bismuth, - Caesium, - Cerium, - Chrome, - Cobalt, - Copper, - Dysprosium, - Erbium, - Europium, - Gadolinium, - Gallium, - Gold, - Holmium, - Indium, - Iridium, - Iron, - Lanthanum, - Lead, - Lutetium, - Magnesium, - Manganese, - Mercury, - Niobium, - Molybdenum, - Neodymium, - Neutronium, - Nickel, - Osmium, - Palladium, - Platinum, - Plutonium, - Plutonium241, - Praseodymium, - Promethium, - Rubidium, - Samarium, - Scandium, - Silicon, - Silver, - Tantalum, - Tellurium, - Terbium, - Thorium, - Thulium, - Tin, - Titanium, - Tungsten, - Uranium, - Uranium235, - Vanadium, - Ytterbium, - Yttrium, - Zinc, - Flerovium, - PhasedIron, - PhasedGold, - DarkSteel, - TinAlloy, - ConductiveIron, - ElectricalSteel, - EnergeticAlloy, - VibrantAlloy, - MelodicAlloy, - StellarAlloy, - VividAlloy, - EnergeticSilver, - CrystallinePinkSlime, - CrystallineAlloy, - CrudeSteel, - EndSteel, - PulsatingIron, - DarkThaumium, - Adamantium, - Amordrine, - Angmallen, - Ardite, - Aredrite, - Atlarus, - Carmot, - Celenegil, - Ceruclase, - DarkIron, - Desh, - Desichalkos, - Duranium, - ElectrumFlux, - Enderium, - EnderiumBase, - Eximite, - FierySteel, - Force, - Haderoth, - Hematite, - Hepatizon, - HSLA, - Infuscolium, - InfusedGold, - Inolashite, - Mercassium, - MeteoricIron, - BloodInfusedIron, - Universium, - MagnetohydrodynamicallyConstrainedStarMatter, - MeteoricSteel, - Naquadah, - NaquadahAlloy, - NaquadahEnriched, - Naquadria, - ObsidianFlux, - Orichalcum, - Osmonium, - Oureclase, - Phoenixite, - Prometheum, - Sanguinite, - CosmicNeutronium, - Tartarite, - Ichorium, - Tritanium, - Vulcanite, - Vyroxeres, - Yellorium, - Zectium, - AluminiumBrass, - Osmiridium, - Sunnarium, - AnnealedCopper, - BatteryAlloy, - Brass, - Bronze, - ChromiumDioxide, - Cupronickel, - DeepIron, - Electrum, - Invar, - Kanthal, - Magnalium, - Nichrome, - NiobiumNitride, - NiobiumTitanium, - PigIron, - SolderingAlloy, - StainlessSteel, - Steel, - Ultimet, - VanadiumGallium, - WroughtIron, - YttriumBariumCuprate, - IronWood, - Alumite, - Manyullyn, - ShadowIron, - Shadow, - ShadowSteel, - Steeleaf, - SterlingSilver, - RoseGold, - BlackBronze, - BismuthBronze, - BlackSteel, - RedSteel, - BlueSteel, - DamascusSteel, - TungstenSteel, - TPV, - AstralSilver, - Mithril, - BlueAlloy, - RedAlloy, - CobaltBrass, - Thaumium, - Void, - IronMagnetic, - SteelMagnetic, - NeodymiumMagnetic, - SamariumMagnetic, - Knightmetal, - HSSG, - HSSE, - HSSS, - TungstenCarbide, - HeeEndium, - VanadiumSteel, - Kalendrite, - Ignatius, - Trinium, - Infinity, - InfinityCatalyst, - Realgar, - Chrysotile, - BlackPlutonium, - Alduorite, - Adluorite, - Vinteum, - Rubracium, - Draconium, - DraconiumAwakened, - Pentacadmiummagnesiumhexaoxid, - Titaniumonabariumdecacoppereikosaoxid, - Uraniumtriplatinid, - Vanadiumtriindinid, - Tetraindiumditindibariumtitaniumheptacoppertetrakaidekaoxid, - Tetranaquadahdiindiumhexaplatiumosminid, - Longasssuperconductornameforuvwire, - Longasssuperconductornameforuhvwire, - SuperconductorUEVBase, - SuperconductorUIVBase, - SuperconductorUMVBase, - Quantium, - RedstoneAlloy, - Bedrockium, - EnrichedHolmium); + AnyIron, + AnyCopper, + AnyBronze, + Metal, + Aluminium, + Americium, + Antimony, + Beryllium, + Bismuth, + Caesium, + Cerium, + Chrome, + Cobalt, + Copper, + Dysprosium, + Erbium, + Europium, + Gadolinium, + Gallium, + Gold, + Holmium, + Indium, + Iridium, + Iron, + Lanthanum, + Lead, + Lutetium, + Magnesium, + Manganese, + Mercury, + Niobium, + Molybdenum, + Neodymium, + Neutronium, + Nickel, + Osmium, + Palladium, + Platinum, + Plutonium, + Plutonium241, + Praseodymium, + Promethium, + Rubidium, + Samarium, + Scandium, + Silicon, + Silver, + Tantalum, + Tellurium, + Terbium, + Thorium, + Thulium, + Tin, + Titanium, + Tungsten, + Uranium, + Uranium235, + Vanadium, + Ytterbium, + Yttrium, + Zinc, + Flerovium, + PhasedIron, + PhasedGold, + DarkSteel, + TinAlloy, + ConductiveIron, + ElectricalSteel, + EnergeticAlloy, + VibrantAlloy, + MelodicAlloy, + StellarAlloy, + VividAlloy, + EnergeticSilver, + CrystallinePinkSlime, + CrystallineAlloy, + CrudeSteel, + EndSteel, + PulsatingIron, + DarkThaumium, + Adamantium, + Amordrine, + Angmallen, + Ardite, + Aredrite, + Atlarus, + Carmot, + Celenegil, + Ceruclase, + DarkIron, + Desh, + Desichalkos, + Duranium, + ElectrumFlux, + Enderium, + EnderiumBase, + Eximite, + FierySteel, + Force, + Haderoth, + Hematite, + Hepatizon, + HSLA, + Infuscolium, + InfusedGold, + Inolashite, + Mercassium, + MeteoricIron, + BloodInfusedIron, + Universium, + MagnetohydrodynamicallyConstrainedStarMatter, + MeteoricSteel, + Naquadah, + NaquadahAlloy, + NaquadahEnriched, + Naquadria, + ObsidianFlux, + Orichalcum, + Osmonium, + Oureclase, + Phoenixite, + Prometheum, + Sanguinite, + CosmicNeutronium, + Tartarite, + Ichorium, + Tritanium, + Vulcanite, + Vyroxeres, + Yellorium, + Zectium, + AluminiumBrass, + Osmiridium, + Sunnarium, + AnnealedCopper, + BatteryAlloy, + Brass, + Bronze, + ChromiumDioxide, + Cupronickel, + DeepIron, + Electrum, + Invar, + Kanthal, + Magnalium, + Nichrome, + NiobiumNitride, + NiobiumTitanium, + PigIron, + SolderingAlloy, + StainlessSteel, + Steel, + Ultimet, + VanadiumGallium, + WroughtIron, + YttriumBariumCuprate, + IronWood, + Alumite, + Manyullyn, + ShadowIron, + Shadow, + ShadowSteel, + Steeleaf, + SterlingSilver, + RoseGold, + BlackBronze, + BismuthBronze, + BlackSteel, + RedSteel, + BlueSteel, + DamascusSteel, + TungstenSteel, + TPV, + AstralSilver, + Mithril, + BlueAlloy, + RedAlloy, + CobaltBrass, + Thaumium, + Void, + IronMagnetic, + SteelMagnetic, + NeodymiumMagnetic, + SamariumMagnetic, + Knightmetal, + HSSG, + HSSE, + HSSS, + TungstenCarbide, + HeeEndium, + VanadiumSteel, + Kalendrite, + Ignatius, + Trinium, + Infinity, + InfinityCatalyst, + Realgar, + Chrysotile, + BlackPlutonium, + Alduorite, + Adluorite, + Vinteum, + Rubracium, + Draconium, + DraconiumAwakened, + Pentacadmiummagnesiumhexaoxid, + Titaniumonabariumdecacoppereikosaoxid, + Uraniumtriplatinid, + Vanadiumtriindinid, + Tetraindiumditindibariumtitaniumheptacoppertetrakaidekaoxid, + Tetranaquadahdiindiumhexaplatiumosminid, + Longasssuperconductornameforuvwire, + Longasssuperconductornameforuhvwire, + SuperconductorUEVBase, + SuperconductorUIVBase, + SuperconductorUMVBase, + Quantium, + RedstoneAlloy, + Bedrockium, + EnrichedHolmium); SubTag.FOOD.addTo( - MeatRaw, - MeatCooked, - Ice, - Water, - Salt, - Chili, - Cocoa, - Cheese, - Coffee, - Chocolate, - Milk, - Honey, - FryingOilHot, - FishOil, - SeedOil, - SeedOilLin, - SeedOilHemp, - Wheat, - Sugar, - FreshWater); + MeatRaw, + MeatCooked, + Ice, + Water, + Salt, + Chili, + Cocoa, + Cheese, + Coffee, + Chocolate, + Milk, + Honey, + FryingOilHot, + FishOil, + SeedOil, + SeedOilLin, + SeedOilHemp, + Wheat, + Sugar, + FreshWater); Wood.add(SubTag.WOOD, SubTag.FLAMMABLE, SubTag.NO_SMELTING, SubTag.NO_SMASHING); WoodSealed.add(SubTag.WOOD, SubTag.FLAMMABLE, SubTag.NO_SMELTING, SubTag.NO_SMASHING, SubTag.NO_WORKING); Peanutwood.add(SubTag.WOOD, SubTag.FLAMMABLE, SubTag.NO_SMELTING, SubTag.NO_SMASHING); LiveRoot.add( - SubTag.WOOD, - SubTag.FLAMMABLE, - SubTag.NO_SMELTING, - SubTag.NO_SMASHING, - SubTag.MAGICAL, - SubTag.MORTAR_GRINDABLE); + SubTag.WOOD, + SubTag.FLAMMABLE, + SubTag.NO_SMELTING, + SubTag.NO_SMASHING, + SubTag.MAGICAL, + SubTag.MORTAR_GRINDABLE); IronWood.add(SubTag.WOOD, SubTag.FLAMMABLE, SubTag.MAGICAL, SubTag.MORTAR_GRINDABLE); Steeleaf.add(SubTag.WOOD, SubTag.FLAMMABLE, SubTag.MAGICAL, SubTag.MORTAR_GRINDABLE, SubTag.NO_SMELTING); @@ -2248,11 +2239,11 @@ public class Materials implements IColorModulationContainer, ISubTagContainer { ConstructionFoam.add(SubTag.STONE, SubTag.NO_SMASHING, SubTag.EXPLOSIVE, SubTag.NO_SMELTING); ReinforceGlass.add(SubTag.CRYSTAL, SubTag.NO_SMASHING, SubTag.SMELTING_TO_FLUID); Redstone.add( - SubTag.STONE, - SubTag.NO_SMASHING, - SubTag.UNBURNABLE, - SubTag.SMELTING_TO_FLUID, - SubTag.PULVERIZING_CINNABAR); + SubTag.STONE, + SubTag.NO_SMASHING, + SubTag.UNBURNABLE, + SubTag.SMELTING_TO_FLUID, + SubTag.PULVERIZING_CINNABAR); Glowstone.add(SubTag.STONE, SubTag.NO_SMASHING, SubTag.UNBURNABLE, SubTag.SMELTING_TO_FLUID); Electrotine.add(SubTag.STONE, SubTag.NO_SMASHING, SubTag.UNBURNABLE, SubTag.SMELTING_TO_FLUID); Teslatite.add(SubTag.STONE, SubTag.NO_SMASHING, SubTag.UNBURNABLE, SubTag.SMELTING_TO_FLUID); @@ -2320,22 +2311,14 @@ public class Materials implements IColorModulationContainer, ISubTagContainer { Monazite.add(SubTag.CRYSTAL, SubTag.NO_SMASHING, SubTag.NO_SMELTING, SubTag.CRYSTALLISABLE); Quartzite.add(SubTag.CRYSTAL, SubTag.NO_SMASHING, SubTag.NO_SMELTING, SubTag.CRYSTALLISABLE, SubTag.QUARTZ); Quartz.add(SubTag.CRYSTAL, SubTag.NO_SMASHING, SubTag.NO_SMELTING, SubTag.CRYSTALLISABLE, SubTag.QUARTZ); - SiliconDioxide.add( - SubTag.CRYSTAL, - SubTag.NO_SMASHING, - SubTag.NO_SMELTING, - SubTag.CRYSTALLISABLE, - SubTag.QUARTZ); + SiliconDioxide + .add(SubTag.CRYSTAL, SubTag.NO_SMASHING, SubTag.NO_SMELTING, SubTag.CRYSTALLISABLE, SubTag.QUARTZ); Dilithium.add(SubTag.CRYSTAL, SubTag.NO_SMASHING, SubTag.NO_SMELTING, SubTag.CRYSTALLISABLE, SubTag.QUARTZ); NetherQuartz.add(SubTag.CRYSTAL, SubTag.NO_SMASHING, SubTag.NO_SMELTING, SubTag.CRYSTALLISABLE, SubTag.QUARTZ); CertusQuartz.add(SubTag.CRYSTAL, SubTag.NO_SMASHING, SubTag.NO_SMELTING, SubTag.CRYSTALLISABLE, SubTag.QUARTZ); Fluix.add(SubTag.CRYSTAL, SubTag.NO_SMASHING, SubTag.NO_SMELTING, SubTag.CRYSTALLISABLE, SubTag.QUARTZ); - TricalciumPhosphate.add( - SubTag.CRYSTAL, - SubTag.NO_SMASHING, - SubTag.NO_SMELTING, - SubTag.FLAMMABLE, - SubTag.EXPLOSIVE); + TricalciumPhosphate + .add(SubTag.CRYSTAL, SubTag.NO_SMASHING, SubTag.NO_SMELTING, SubTag.FLAMMABLE, SubTag.EXPLOSIVE); Phosphate.add(SubTag.CRYSTAL, SubTag.NO_SMASHING, SubTag.NO_SMELTING, SubTag.FLAMMABLE, SubTag.EXPLOSIVE); InfusedAir.add(SubTag.CRYSTAL, SubTag.NO_SMASHING, SubTag.NO_SMELTING, SubTag.MAGICAL, SubTag.UNBURNABLE); InfusedFire.add(SubTag.CRYSTAL, SubTag.NO_SMASHING, SubTag.NO_SMELTING, SubTag.MAGICAL, SubTag.UNBURNABLE); @@ -2349,14 +2332,14 @@ public class Materials implements IColorModulationContainer, ISubTagContainer { EnderPearl.add(SubTag.CRYSTAL, SubTag.NO_SMASHING, SubTag.NO_SMELTING, SubTag.MAGICAL, SubTag.PEARL); EnderEye.add(SubTag.CRYSTAL, SubTag.NO_SMASHING, SubTag.NO_SMELTING, SubTag.MAGICAL, SubTag.PEARL); Firestone.add( - SubTag.CRYSTAL, - SubTag.NO_SMASHING, - SubTag.NO_SMELTING, - SubTag.CRYSTALLISABLE, - SubTag.MAGICAL, - SubTag.QUARTZ, - SubTag.UNBURNABLE, - SubTag.BURNING); + SubTag.CRYSTAL, + SubTag.NO_SMASHING, + SubTag.NO_SMELTING, + SubTag.CRYSTALLISABLE, + SubTag.MAGICAL, + SubTag.QUARTZ, + SubTag.UNBURNABLE, + SubTag.BURNING); Forcicium.add(SubTag.CRYSTAL, SubTag.NO_SMASHING, SubTag.NO_SMELTING, SubTag.CRYSTALLISABLE, SubTag.MAGICAL); Forcillium.add(SubTag.CRYSTAL, SubTag.NO_SMASHING, SubTag.NO_SMELTING, SubTag.CRYSTALLISABLE, SubTag.MAGICAL); Force.add(SubTag.CRYSTAL, SubTag.MAGICAL, SubTag.UNBURNABLE); @@ -2402,18 +2385,18 @@ public class Materials implements IColorModulationContainer, ISubTagContainer { // materials initMaterialProperties(); // No more material addition or manipulation should be done past this point! MATERIALS_ARRAY = MATERIALS_MAP.values() - .toArray(new Materials[0]); // Generate standard object array. This is a - // lot faster to loop over. + .toArray(new Materials[0]); // Generate standard object array. This is a + // lot faster to loop over. VALUES = Arrays.asList(MATERIALS_ARRAY); if (!NewHorizonsCoreMod.isModLoaded() && !GT_Mod.gregtechproxy.mEnableAllComponents) OrePrefixes.initMaterialComponents(); else { OrePrefixes.ingotHot.mDisabledItems.addAll( - Arrays.stream(Materials.values()) - .parallel() - .filter(OrePrefixes.ingotHot::doGenerateItem) - .filter(m -> m.mBlastFurnaceTemp < 1750 && m.mAutoGenerateBlastFurnaceRecipes) - .collect(Collectors.toSet())); + Arrays.stream(Materials.values()) + .parallel() + .filter(OrePrefixes.ingotHot::doGenerateItem) + .filter(m -> m.mBlastFurnaceTemp < 1750 && m.mAutoGenerateBlastFurnaceRecipes) + .collect(Collectors.toSet())); OrePrefixes.ingotHot.disableComponent(Materials.Reinforced); OrePrefixes.ingotHot.disableComponent(Materials.ConductiveIron); OrePrefixes.ingotHot.disableComponent(Materials.FierySteel); @@ -2455,16 +2438,16 @@ public class Materials implements IColorModulationContainer, ISubTagContainer { if (GregTech_API.sGeneratedMaterials[aMaterial.mMetaItemSubID] == null) { GregTech_API.sGeneratedMaterials[aMaterial.mMetaItemSubID] = aMaterial; } else throw new IllegalArgumentException( - "The Material Index " + aMaterial.mMetaItemSubID - + " for " - + aMaterial.mName - + " is already used!"); - } - } else throw new IllegalArgumentException( - "The Material Index " + aMaterial.mMetaItemSubID + "The Material Index " + aMaterial.mMetaItemSubID + " for " + aMaterial.mName - + " is/over the maximum of 1000"); + + " is already used!"); + } + } else throw new IllegalArgumentException( + "The Material Index " + aMaterial.mMetaItemSubID + + " for " + + aMaterial.mName + + " is/over the maximum of 1000"); } } } @@ -2475,60 +2458,40 @@ public class Materials implements IColorModulationContainer, ISubTagContainer { } private static void addTemperatureValues(Materials aMaterial, String aConfigPath) { - aMaterial.mMeltingPoint = GregTech_API.sMaterialProperties.get( - aConfigPath, - "MeltingPoint", - aMaterial.mMeltingPoint); - aMaterial.mBlastFurnaceRequired = GregTech_API.sMaterialProperties.get( - aConfigPath, - "BlastFurnaceRequired", - aMaterial.mBlastFurnaceRequired); - aMaterial.mBlastFurnaceTemp = (short) GregTech_API.sMaterialProperties.get( - aConfigPath, - "BlastFurnaceTemp", - aMaterial.mBlastFurnaceTemp); + aMaterial.mMeltingPoint = GregTech_API.sMaterialProperties + .get(aConfigPath, "MeltingPoint", aMaterial.mMeltingPoint); + aMaterial.mBlastFurnaceRequired = GregTech_API.sMaterialProperties + .get(aConfigPath, "BlastFurnaceRequired", aMaterial.mBlastFurnaceRequired); + aMaterial.mBlastFurnaceTemp = (short) GregTech_API.sMaterialProperties + .get(aConfigPath, "BlastFurnaceTemp", aMaterial.mBlastFurnaceTemp); aMaterial.mGasTemp = GregTech_API.sMaterialProperties.get(aConfigPath, "GasTemp", aMaterial.mGasTemp); aMaterial.setHeatDamage( - (float) GregTech_API.sMaterialProperties.get(aConfigPath, "HeatDamage", aMaterial.mHeatDamage)); + (float) GregTech_API.sMaterialProperties.get(aConfigPath, "HeatDamage", aMaterial.mHeatDamage)); } private static void addDensityValues(Materials aMaterial, String aConfigPath) { - aMaterial.mDensityMultiplier = GregTech_API.sMaterialProperties.get( - aConfigPath, - "DensityMultiplier", - aMaterial.mDensityMultiplier); - aMaterial.mDensityDivider = GregTech_API.sMaterialProperties.get( - aConfigPath, - "DensityDivider", - aMaterial.mDensityDivider); + aMaterial.mDensityMultiplier = GregTech_API.sMaterialProperties + .get(aConfigPath, "DensityMultiplier", aMaterial.mDensityMultiplier); + aMaterial.mDensityDivider = GregTech_API.sMaterialProperties + .get(aConfigPath, "DensityDivider", aMaterial.mDensityDivider); aMaterial.mDensity = (long) GregTech_API.sMaterialProperties.get( - aConfigPath, - "Density", - ((double) M * aMaterial.mDensityMultiplier) - / (aMaterial.mDensityDivider != 0 ? aMaterial.mDensityDivider : 1)); + aConfigPath, + "Density", + ((double) M * aMaterial.mDensityMultiplier) + / (aMaterial.mDensityDivider != 0 ? aMaterial.mDensityDivider : 1)); } private static void addColorValues(Materials aMaterial, String aConfigPath) { - aMaterial.mTransparent = GregTech_API.sMaterialProperties.get( - aConfigPath, - "Transparent", - aMaterial.mTransparent); - String aColor = GregTech_API.sMaterialProperties.get( - aConfigPath, - "DyeColor", - aMaterial.mColor == Dyes._NULL ? "None" : aMaterial.mColor.toString()); + aMaterial.mTransparent = GregTech_API.sMaterialProperties + .get(aConfigPath, "Transparent", aMaterial.mTransparent); + String aColor = GregTech_API.sMaterialProperties + .get(aConfigPath, "DyeColor", aMaterial.mColor == Dyes._NULL ? "None" : aMaterial.mColor.toString()); aMaterial.mColor = aColor.equals("None") ? Dyes._NULL : Dyes.get(aColor); String[] aRGBA = GregTech_API.sMaterialProperties.get( - aConfigPath, - "MatRGBA", - aMaterial.mRGBa[0] + "," - + aMaterial.mRGBa[1] - + "," - + aMaterial.mRGBa[2] - + "," - + aMaterial.mRGBa[3] - + ",") - .split(","); + aConfigPath, + "MatRGBA", + aMaterial.mRGBa[0] + "," + aMaterial.mRGBa[1] + "," + aMaterial.mRGBa[2] + "," + aMaterial.mRGBa[3] + ",") + .split(","); aMaterial.mRGBa[0] = Short.parseShort(aRGBA[0]); aMaterial.mRGBa[1] = Short.parseShort(aRGBA[1]); aMaterial.mRGBa[2] = Short.parseShort(aRGBA[2]); @@ -2536,26 +2499,20 @@ public class Materials implements IColorModulationContainer, ISubTagContainer { } private static void addToolValues(Materials aMaterial, String aConfigPath) { - aMaterial.mDurability = GregTech_API.sMaterialProperties.get( - aConfigPath, - "ToolDurability", - aMaterial.mDurability); - aMaterial.mToolSpeed = (float) GregTech_API.sMaterialProperties.get( - aConfigPath, - "ToolSpeed", - aMaterial.mToolSpeed); - aMaterial.mToolQuality = (byte) GregTech_API.sMaterialProperties.get( - aConfigPath, - "ToolQuality", - aMaterial.mToolQuality); + aMaterial.mDurability = GregTech_API.sMaterialProperties + .get(aConfigPath, "ToolDurability", aMaterial.mDurability); + aMaterial.mToolSpeed = (float) GregTech_API.sMaterialProperties + .get(aConfigPath, "ToolSpeed", aMaterial.mToolSpeed); + aMaterial.mToolQuality = (byte) GregTech_API.sMaterialProperties + .get(aConfigPath, "ToolQuality", aMaterial.mToolQuality); // Moved from GT_Proxy? (Not sure) aMaterial.mHandleMaterial = (aMaterial == Desh ? aMaterial.mHandleMaterial - : aMaterial == Diamond || aMaterial == Thaumium ? Wood - : aMaterial.contains(SubTag.BURNING) ? Blaze - : aMaterial.contains(SubTag.MAGICAL) && aMaterial.contains(SubTag.CRYSTAL) - && Thaumcraft.isModLoaded() ? Thaumium - : aMaterial.getMass() > Element.Tc.getMass() * 2 ? TungstenSteel - : aMaterial.getMass() > Element.Tc.getMass() ? Steel : Wood); + : aMaterial == Diamond || aMaterial == Thaumium ? Wood + : aMaterial.contains(SubTag.BURNING) ? Blaze + : aMaterial.contains(SubTag.MAGICAL) && aMaterial.contains(SubTag.CRYSTAL) + && Thaumcraft.isModLoaded() ? Thaumium + : aMaterial.getMass() > Element.Tc.getMass() * 2 ? TungstenSteel + : aMaterial.getMass() > Element.Tc.getMass() ? Steel : Wood); if (aMaterial == Materials.SpaceTime) { aMaterial.mHandleMaterial = Materials.Infinity; @@ -2567,58 +2524,41 @@ public class Materials implements IColorModulationContainer, ISubTagContainer { } private static void addEnchantmentValues(Materials aMaterial, String aConfigPath) { - aMaterial.mEnchantmentToolsLevel = (byte) GregTech_API.sMaterialProperties.get( - aConfigPath, - "EnchantmentLevel", - aMaterial.mEnchantmentToolsLevel); + aMaterial.mEnchantmentToolsLevel = (byte) GregTech_API.sMaterialProperties + .get(aConfigPath, "EnchantmentLevel", aMaterial.mEnchantmentToolsLevel); String aEnchantmentName = GregTech_API.sMaterialProperties.get( - aConfigPath, - "Enchantment", - aMaterial.mEnchantmentTools != null ? aMaterial.mEnchantmentTools.getName() : ""); + aConfigPath, + "Enchantment", + aMaterial.mEnchantmentTools != null ? aMaterial.mEnchantmentTools.getName() : ""); if (aMaterial.mEnchantmentTools != null && !aEnchantmentName.equals(aMaterial.mEnchantmentTools.getName())) IntStream.range(0, Enchantment.enchantmentsList.length) - .filter(i -> aEnchantmentName.equals(Enchantment.enchantmentsList[i].getName())) - .forEach(i -> aMaterial.mEnchantmentTools = Enchantment.enchantmentsList[i]); + .filter(i -> aEnchantmentName.equals(Enchantment.enchantmentsList[i].getName())) + .forEach(i -> aMaterial.mEnchantmentTools = Enchantment.enchantmentsList[i]); } private static void addProcessingIntoValues(Materials aMaterial, String aConfigPath) { - aMaterial.mSmeltInto = MATERIALS_MAP.get( - GregTech_API.sMaterialProperties.get(aConfigPath, "MaterialSmeltInto", aMaterial.mSmeltInto.mName)); + aMaterial.mSmeltInto = MATERIALS_MAP + .get(GregTech_API.sMaterialProperties.get(aConfigPath, "MaterialSmeltInto", aMaterial.mSmeltInto.mName)); aMaterial.mMacerateInto = MATERIALS_MAP.get( - GregTech_API.sMaterialProperties.get( - aConfigPath, - "MaterialMacerateInto", - aMaterial.mMacerateInto.mName)); + GregTech_API.sMaterialProperties.get(aConfigPath, "MaterialMacerateInto", aMaterial.mMacerateInto.mName)); aMaterial.mArcSmeltInto = MATERIALS_MAP.get( - GregTech_API.sMaterialProperties.get( - aConfigPath, - "MaterialArcSmeltInto", - aMaterial.mArcSmeltInto.mName)); + GregTech_API.sMaterialProperties.get(aConfigPath, "MaterialArcSmeltInto", aMaterial.mArcSmeltInto.mName)); aMaterial.mDirectSmelting = MATERIALS_MAP.get( - GregTech_API.sMaterialProperties.get( - aConfigPath, - "MaterialDirectSmeltInto", - aMaterial.mDirectSmelting.mName)); - aMaterial.mAutoGenerateBlastFurnaceRecipes = GregTech_API.sMaterialProperties.get( - aConfigPath, - "AutoGenerateBlastFurnaceRecipes", - aMaterial.mAutoGenerateBlastFurnaceRecipes); + GregTech_API.sMaterialProperties + .get(aConfigPath, "MaterialDirectSmeltInto", aMaterial.mDirectSmelting.mName)); + aMaterial.mAutoGenerateBlastFurnaceRecipes = GregTech_API.sMaterialProperties + .get(aConfigPath, "AutoGenerateBlastFurnaceRecipes", aMaterial.mAutoGenerateBlastFurnaceRecipes); } private static void addMultiplierValues(Materials aMaterial, String aConfigPath) { aMaterial.mOreValue = GregTech_API.sMaterialProperties.get(aConfigPath, "OreValue", aMaterial.mOreValue); aMaterial.setOreMultiplier( - GregTech_API.sMaterialProperties.get(aConfigPath, "OreMultiplier", aMaterial.mOreMultiplier)); + GregTech_API.sMaterialProperties.get(aConfigPath, "OreMultiplier", aMaterial.mOreMultiplier)); aMaterial.setSmeltingMultiplier( - GregTech_API.sMaterialProperties.get( - aConfigPath, - "OreSmeltingMultiplier", - aMaterial.mSmeltingMultiplier)); + GregTech_API.sMaterialProperties.get(aConfigPath, "OreSmeltingMultiplier", aMaterial.mSmeltingMultiplier)); aMaterial.setByProductMultiplier( - GregTech_API.sMaterialProperties.get( - aConfigPath, - "OreByProductMultiplier", - aMaterial.mByProductMultiplier)); + GregTech_API.sMaterialProperties + .get(aConfigPath, "OreByProductMultiplier", aMaterial.mByProductMultiplier)); } private static void addHasGasFluid(Materials aMaterial, String aConfigPath) { @@ -2630,44 +2570,32 @@ public class Materials implements IColorModulationContainer, ISubTagContainer { } aMaterial.mHasGas = GregTech_API.sMaterialProperties.get(aConfigPath, "AddGas", aMaterial.mHasGas); if (aMaterial.mHasGas) { - GT_FluidFactory.of( - aMaterial.mName.toLowerCase(), - aMaterial.mDefaultLocalName, - aMaterial, - GAS, - aMaterial.mGasTemp); + GT_FluidFactory + .of(aMaterial.mName.toLowerCase(), aMaterial.mDefaultLocalName, aMaterial, GAS, aMaterial.mGasTemp); } } } private static void addInternalStuff(Materials aMaterial, String aConfigPath) { - aMaterial.mMetaItemSubID = GregTech_API.sMaterialProperties.get( - aConfigPath, - "MaterialID", - aMaterial.mCustomOre ? -1 : aMaterial.mMetaItemSubID); + aMaterial.mMetaItemSubID = GregTech_API.sMaterialProperties + .get(aConfigPath, "MaterialID", aMaterial.mCustomOre ? -1 : aMaterial.mMetaItemSubID); aMaterial.mTypes = GregTech_API.sMaterialProperties.get( - aConfigPath, - "MaterialTypes", - aMaterial.mCustomOre ? 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128 : aMaterial.mTypes); - aMaterial.mUnificatable = GregTech_API.sMaterialProperties.get( - aConfigPath, - "Unificatable", - aMaterial.mUnificatable); - aMaterial.mHasParentMod = GregTech_API.sMaterialProperties.get( - aConfigPath, - "HasParentMod", - aMaterial.mHasParentMod); + aConfigPath, + "MaterialTypes", + aMaterial.mCustomOre ? 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128 : aMaterial.mTypes); + aMaterial.mUnificatable = GregTech_API.sMaterialProperties + .get(aConfigPath, "Unificatable", aMaterial.mUnificatable); + aMaterial.mHasParentMod = GregTech_API.sMaterialProperties + .get(aConfigPath, "HasParentMod", aMaterial.mHasParentMod); } private static void addLocalisation(Materials aMaterial, String aConfigPath) { aMaterial.mDefaultLocalName = GregTech_API.sMaterialProperties.get( - aConfigPath, - "MaterialName", - aMaterial.mCustomOre ? "CustomOre" + aMaterial.mCustomID : aMaterial.mDefaultLocalName); - aMaterial.mChemicalFormula = GregTech_API.sMaterialProperties.get( - aConfigPath, - "ChemicalFormula", - aMaterial.mChemicalFormula); + aConfigPath, + "MaterialName", + aMaterial.mCustomOre ? "CustomOre" + aMaterial.mCustomID : aMaterial.mDefaultLocalName); + aMaterial.mChemicalFormula = GregTech_API.sMaterialProperties + .get(aConfigPath, "ChemicalFormula", aMaterial.mChemicalFormula); } private static String getConfigPath(Materials aMaterial) { @@ -2678,27 +2606,20 @@ public class Materials implements IColorModulationContainer, ISubTagContainer { private static void addHarvestLevelNerfs(Materials aMaterial, String aConfigPath) { /* Moved the harvest level changes from GT_Mod to have fewer things iterating over MATERIALS_ARRAY */ if (GT_Mod.gregtechproxy.mChangeHarvestLevels && aMaterial.mToolQuality > 0 - && aMaterial.mMetaItemSubID < GT_Mod.gregtechproxy.mHarvestLevel.length - && aMaterial.mMetaItemSubID >= 0) { - GT_Mod.gregtechproxy.mHarvestLevel[aMaterial.mMetaItemSubID] = GregTech_API.sMaterialProperties.get( - aConfigPath, - "HarvestLevel", - aMaterial.mToolQuality); + && aMaterial.mMetaItemSubID < GT_Mod.gregtechproxy.mHarvestLevel.length + && aMaterial.mMetaItemSubID >= 0) { + GT_Mod.gregtechproxy.mHarvestLevel[aMaterial.mMetaItemSubID] = GregTech_API.sMaterialProperties + .get(aConfigPath, "HarvestLevel", aMaterial.mToolQuality); } } private static void addHarvestLevels() { - GT_Mod.gregtechproxy.mChangeHarvestLevels = GregTech_API.sMaterialProperties.get( - "harvestlevel", - "ActivateHarvestLevelChange", - false); - GT_Mod.gregtechproxy.mMaxHarvestLevel = Math.min( - 15, - GregTech_API.sMaterialProperties.get("harvestlevel", "MaxHarvestLevel", 7)); - GT_Mod.gregtechproxy.mGraniteHavestLevel = GregTech_API.sMaterialProperties.get( - "harvestlevel", - "GraniteHarvestLevel", - 3); + GT_Mod.gregtechproxy.mChangeHarvestLevels = GregTech_API.sMaterialProperties + .get("harvestlevel", "ActivateHarvestLevelChange", false); + GT_Mod.gregtechproxy.mMaxHarvestLevel = Math + .min(15, GregTech_API.sMaterialProperties.get("harvestlevel", "MaxHarvestLevel", 7)); + GT_Mod.gregtechproxy.mGraniteHavestLevel = GregTech_API.sMaterialProperties + .get("harvestlevel", "GraniteHarvestLevel", 3); } public static void initMaterialProperties() { @@ -2731,23 +2652,19 @@ public class Materials implements IColorModulationContainer, ISubTagContainer { private static void aspectCalculation(Materials aMaterial, String aConfigPath) { String aDefaultAspectString = aMaterial.mAspects.stream() - .map(aAspectStack -> aAspectStack.mAspect.toString()) - .collect(Collectors.joining(",", ",", "")); + .map(aAspectStack -> aAspectStack.mAspect.toString()) + .collect(Collectors.joining(",", ",", "")); String aDefaultAspectAmountString = aMaterial.mAspects.stream() - .map(aAspectStack -> String.valueOf(aAspectStack.mAmount)) - .collect(Collectors.joining(",", ",", "")); - - String aConfigAspectString = GregTech_API.sMaterialProperties.get( - aConfigPath, - "ListTCAspects", - aDefaultAspectString); - String aConfigAspectAmountString = GregTech_API.sMaterialProperties.get( - aConfigPath, - "ListTCAspectAmounts", - aDefaultAspectAmountString); + .map(aAspectStack -> String.valueOf(aAspectStack.mAmount)) + .collect(Collectors.joining(",", ",", "")); + + String aConfigAspectString = GregTech_API.sMaterialProperties + .get(aConfigPath, "ListTCAspects", aDefaultAspectString); + String aConfigAspectAmountString = GregTech_API.sMaterialProperties + .get(aConfigPath, "ListTCAspectAmounts", aDefaultAspectAmountString); if (!aConfigAspectString.equals(aDefaultAspectString) - || !aConfigAspectAmountString.equals(aDefaultAspectAmountString)) { + || !aConfigAspectAmountString.equals(aDefaultAspectAmountString)) { aMaterial.mAspects.clear(); if (aConfigAspectString.length() > 0) { String[] aAspects = aConfigAspectString.split(","); @@ -2764,38 +2681,34 @@ public class Materials implements IColorModulationContainer, ISubTagContainer { private static void OreReRegistrationsCalculation(Materials aMaterial, String aConfigPath) { String aDefaultMatReRegString = aMaterial.mOreReRegistrations.stream() - .map(aTag -> aTag.mName) - .collect(Collectors.joining(",", ",", "")); - String aConfigMatMatReRegString = GregTech_API.sMaterialProperties.get( - aConfigPath, - "ListMaterialReRegistrations", - aDefaultMatReRegString); + .map(aTag -> aTag.mName) + .collect(Collectors.joining(",", ",", "")); + String aConfigMatMatReRegString = GregTech_API.sMaterialProperties + .get(aConfigPath, "ListMaterialReRegistrations", aDefaultMatReRegString); if (!aConfigMatMatReRegString.equals(aDefaultMatReRegString)) { aMaterial.mOreReRegistrations.clear(); if (aConfigMatMatReRegString.length() > 0) { Arrays.stream(aConfigMatMatReRegString.split(",")) - .map(MATERIALS_MAP::get) - .filter(Objects::nonNull) - .forEach(aMat -> aMaterial.mOreReRegistrations.add(aMat)); + .map(MATERIALS_MAP::get) + .filter(Objects::nonNull) + .forEach(aMat -> aMaterial.mOreReRegistrations.add(aMat)); } } } private static void OreByProductsCalculation(Materials aMaterial, String aConfigPath) { String aDefaultMatByProString = aMaterial.mOreByProducts.stream() - .map(aTag -> aTag.mName) - .collect(Collectors.joining(",", ",", "")); - String aConfigMatByProString = GregTech_API.sMaterialProperties.get( - aConfigPath, - "ListMaterialByProducts", - aDefaultMatByProString); + .map(aTag -> aTag.mName) + .collect(Collectors.joining(",", ",", "")); + String aConfigMatByProString = GregTech_API.sMaterialProperties + .get(aConfigPath, "ListMaterialByProducts", aDefaultMatByProString); if (!aConfigMatByProString.equals(aDefaultMatByProString)) { aMaterial.mOreByProducts.clear(); if (aConfigMatByProString.length() > 0) { Arrays.stream(aConfigMatByProString.split(",")) - .map(MATERIALS_MAP::get) - .filter(Objects::nonNull) - .forEach(aMat -> aMaterial.mOreByProducts.add(aMat)); + .map(MATERIALS_MAP::get) + .filter(Objects::nonNull) + .forEach(aMat -> aMaterial.mOreByProducts.add(aMat)); } } } @@ -2808,16 +2721,16 @@ public class Materials implements IColorModulationContainer, ISubTagContainer { */ private static void SubTagCalculation(Materials aMaterial, String aConfigPath) { String aDefaultTagString = aMaterial.mSubTags.stream() - .map(aTag -> aTag.mName) - .collect(Collectors.joining(",", ",", "")); + .map(aTag -> aTag.mName) + .collect(Collectors.joining(",", ",", "")); String aConfigTagString = GregTech_API.sMaterialProperties.get(aConfigPath, "ListSubTags", aDefaultTagString); if (!aConfigTagString.equals(aDefaultTagString)) { aMaterial.mSubTags.clear(); if (aConfigTagString.length() > 0) { Arrays.stream(aConfigTagString.split(",")) - .map(SubTag.sSubTags::get) - .filter(Objects::nonNull) - .forEach(aTag -> aMaterial.mSubTags.add(aTag)); + .map(SubTag.sSubTags::get) + .filter(Objects::nonNull) + .forEach(aTag -> aMaterial.mSubTags.add(aTag)); } } } @@ -2911,8 +2824,8 @@ public class Materials implements IColorModulationContainer, ISubTagContainer { if (mElement != null) return mElement.mHalfLifeSeconds >= 0; return mMaterialList.stream() - .map(stack -> stack.mMaterial) - .anyMatch(Materials::isRadioactive); + .map(stack -> stack.mMaterial) + .anyMatch(Materials::isRadioactive); } public long getProtons() { @@ -2968,8 +2881,8 @@ public class Materials implements IColorModulationContainer, ISubTagContainer { if (!aShowQuestionMarks && mChemicalFormula.equals("?")) return ""; if (aMultiplier >= M * 2 && !mMaterialList.isEmpty()) { return ((mElement != null || (mMaterialList.size() < 2 && mMaterialList.get(0).mAmount == 1)) - ? mChemicalFormula - : "(" + mChemicalFormula + ")") + aMultiplier; + ? mChemicalFormula + : "(" + mChemicalFormula + ")") + aMultiplier; } return mChemicalFormula; } @@ -2988,13 +2901,9 @@ public class Materials implements IColorModulationContainer, ISubTagContainer { public boolean contains(ItemStack... aStacks) { if (aStacks == null || aStacks.length == 0) return false; return mMaterialItems.stream() - .anyMatch( - tStack -> Arrays.stream(aStacks) - .anyMatch( - aStack -> GT_Utility.areStacksEqual( - aStack, - tStack, - !tStack.hasTagCompound()))); + .anyMatch( + tStack -> Arrays.stream(aStacks) + .anyMatch(aStack -> GT_Utility.areStacksEqual(aStack, tStack, !tStack.hasTagCompound()))); } /** @@ -3185,18 +3094,18 @@ public class Materials implements IColorModulationContainer, ISubTagContainer { public String getDefaultLocalizedNameForItem(String aFormat) { return String.format( - aFormat.replace("%s", "%temp") - .replace("%material", "%s"), - this.mDefaultLocalName) - .replace("%temp", "%s"); + aFormat.replace("%s", "%temp") + .replace("%material", "%s"), + this.mDefaultLocalName) + .replace("%temp", "%s"); } public String getLocalizedNameForItem(String aFormat) { return String.format( - aFormat.replace("%s", "%temp") - .replace("%material", "%s"), - this.mLocalizedName) - .replace("%temp", "%s"); + aFormat.replace("%s", "%temp") + .replace("%material", "%s"), + this.mLocalizedName) + .replace("%temp", "%s"); } public boolean hasCorrespondingFluid() { @@ -3303,7 +3212,7 @@ public class Materials implements IColorModulationContainer, ISubTagContainer { */ public boolean isProperSolderingFluid() { return mStandardMoltenFluid != null && contains(SubTag.SOLDERING_MATERIAL) - && !(GregTech_API.mUseOnlyGoodSolderingMaterials && !contains(SubTag.SOLDERING_MATERIAL_GOOD)); + && !(GregTech_API.mUseOnlyGoodSolderingMaterials && !contains(SubTag.SOLDERING_MATERIAL_GOOD)); } public ItemStack getCells(int amount) { diff --git a/src/main/java/gregtech/api/enums/MaterialsBotania.java b/src/main/java/gregtech/api/enums/MaterialsBotania.java index d93b941e39..b82d810a19 100644 --- a/src/main/java/gregtech/api/enums/MaterialsBotania.java +++ b/src/main/java/gregtech/api/enums/MaterialsBotania.java @@ -9,207 +9,187 @@ import gregtech.api.enums.TC_Aspects.TC_AspectStack; public class MaterialsBotania { // Botania materials. - public static Materials Manasteel = new MaterialBuilder( - 201, - TextureSet.SET_METALLIC, - "Manasteel").setName("Manasteel") - .setRGBA(150, 219, 252, 255) - .addDustItems() - .addMetalItems() - .addToolHeadItems() - .addGearItems() - .setToolSpeed(8.0F) - .setDurability(5120) - .setToolQuality(4) - .setMeltingPoint(1500) - .setBlastFurnaceTemp(1500) - .setBlastFurnaceRequired(true) - .setAspects( - Arrays.asList( - new TC_AspectStack(TC_Aspects.METALLUM, 3), - new TC_AspectStack(TC_Aspects.PRAECANTATIO, 1))) - .constructMaterial(); - public static Materials Terrasteel = new MaterialBuilder( - 202, - TextureSet.SET_METALLIC, - "Terrasteel").setName("Terrasteel") - .setRGBA(76, 191, 38, 255) - .addDustItems() - .addMetalItems() - .addToolHeadItems() - .addGearItems() - .setToolSpeed(32.0F) - .setDurability(10240) - .setToolQuality(5) - .setMeltingPoint(5400) - .setBlastFurnaceTemp(5400) - .setBlastFurnaceRequired(true) - .setAspects( - Arrays.asList( - new TC_AspectStack(TC_Aspects.METALLUM, 2), - new TC_AspectStack(TC_Aspects.TERRA, 1), - new TC_AspectStack(TC_Aspects.PRAECANTATIO, 1))) - .constructMaterial(); - public static Materials ElvenElementium = new MaterialBuilder( - 203, - TextureSet.SET_METALLIC, - "Elven Elementium").setName("ElvenElementium") - .setRGBA(219, 37, 205, 255) - .addDustItems() - .addMetalItems() - .addToolHeadItems() - .addGearItems() - .setToolSpeed(20.0F) - .setDurability(32768) - .setToolQuality(7) - .setMeltingPoint(7200) - .setBlastFurnaceTemp(7200) - .setBlastFurnaceRequired(true) - .setAspects( - Arrays.asList( - new TC_AspectStack(TC_Aspects.METALLUM, 3), - new TC_AspectStack(TC_Aspects.PRAECANTATIO, 2), - new TC_AspectStack(TC_Aspects.AURAM, 1))) - .constructMaterial(); - public static Materials Livingrock = new MaterialBuilder( - 204, - new TextureSet("Livingrock", true), - "Livingrock").setName("Livingrock") - .addDustItems() - .addToolHeadItems() - .addGearItems() - .setToolSpeed(1.0F) - .setDurability(0) - .setToolQuality(3) - .setOreValue(3) - .setDensityMultiplier(1) - .setDensityDivider(1) - .setAspects( - Arrays.asList( - new TC_AspectStack(TC_Aspects.TERRA, 2), - new TC_AspectStack(TC_Aspects.VICTUS, 2))) - .constructMaterial(); + public static Materials Manasteel = new MaterialBuilder(201, TextureSet.SET_METALLIC, "Manasteel") + .setName("Manasteel") + .setRGBA(150, 219, 252, 255) + .addDustItems() + .addMetalItems() + .addToolHeadItems() + .addGearItems() + .setToolSpeed(8.0F) + .setDurability(5120) + .setToolQuality(4) + .setMeltingPoint(1500) + .setBlastFurnaceTemp(1500) + .setBlastFurnaceRequired(true) + .setAspects( + Arrays.asList(new TC_AspectStack(TC_Aspects.METALLUM, 3), new TC_AspectStack(TC_Aspects.PRAECANTATIO, 1))) + .constructMaterial(); + public static Materials Terrasteel = new MaterialBuilder(202, TextureSet.SET_METALLIC, "Terrasteel") + .setName("Terrasteel") + .setRGBA(76, 191, 38, 255) + .addDustItems() + .addMetalItems() + .addToolHeadItems() + .addGearItems() + .setToolSpeed(32.0F) + .setDurability(10240) + .setToolQuality(5) + .setMeltingPoint(5400) + .setBlastFurnaceTemp(5400) + .setBlastFurnaceRequired(true) + .setAspects( + Arrays.asList( + new TC_AspectStack(TC_Aspects.METALLUM, 2), + new TC_AspectStack(TC_Aspects.TERRA, 1), + new TC_AspectStack(TC_Aspects.PRAECANTATIO, 1))) + .constructMaterial(); + public static Materials ElvenElementium = new MaterialBuilder(203, TextureSet.SET_METALLIC, "Elven Elementium") + .setName("ElvenElementium") + .setRGBA(219, 37, 205, 255) + .addDustItems() + .addMetalItems() + .addToolHeadItems() + .addGearItems() + .setToolSpeed(20.0F) + .setDurability(32768) + .setToolQuality(7) + .setMeltingPoint(7200) + .setBlastFurnaceTemp(7200) + .setBlastFurnaceRequired(true) + .setAspects( + Arrays.asList( + new TC_AspectStack(TC_Aspects.METALLUM, 3), + new TC_AspectStack(TC_Aspects.PRAECANTATIO, 2), + new TC_AspectStack(TC_Aspects.AURAM, 1))) + .constructMaterial(); + public static Materials Livingrock = new MaterialBuilder(204, new TextureSet("Livingrock", true), "Livingrock") + .setName("Livingrock") + .addDustItems() + .addToolHeadItems() + .addGearItems() + .setToolSpeed(1.0F) + .setDurability(0) + .setToolQuality(3) + .setOreValue(3) + .setDensityMultiplier(1) + .setDensityDivider(1) + .setAspects(Arrays.asList(new TC_AspectStack(TC_Aspects.TERRA, 2), new TC_AspectStack(TC_Aspects.VICTUS, 2))) + .constructMaterial(); public static Materials GaiaSpirit = new Materials( - 205, - TextureSet.SET_METALLIC.withBlockTextures("GaiaSpirit"), - 32.0F, - 850000, - 12, - 1 | 2 | 64 | 128, - 255, - 255, - 255, - 0, - "GaiaSpirit", - "Gaia Spirit", - -1, - -1, - 0, - 0, - false, - true, - 2, - 1, - 1, - Dyes._NULL, + 205, + TextureSet.SET_METALLIC.withBlockTextures("GaiaSpirit"), + 32.0F, + 850000, + 12, + 1 | 2 | 64 | 128, + 255, + 255, + 255, + 0, + "GaiaSpirit", + "Gaia Spirit", + -1, + -1, + 0, + 0, + false, + true, + 2, + 1, + 1, + Dyes._NULL, + Arrays.asList( + new TC_AspectStack(TC_Aspects.PRAECANTATIO, 27), + new TC_AspectStack(TC_Aspects.AURAM, 24), + new TC_AspectStack(TC_Aspects.VICTUS, 24), + new TC_AspectStack(TC_Aspects.METALLUM, 1))); + public static Materials Livingwood = new MaterialBuilder(206, new TextureSet("Livingwood", true), "Livingwood") + .setName("Livingwood") + .addDustItems() + .addMetalItems() + .addToolHeadItems() + .addGearItems() + .setToolSpeed(1.0F) + .setDurability(0) + .setToolQuality(3) + .setOreValue(3) + .setDensityMultiplier(1) + .setDensityDivider(1) + .setAspects(Arrays.asList(new TC_AspectStack(TC_Aspects.ARBOR, 4), new TC_AspectStack(TC_Aspects.VICTUS, 2))) + .constructMaterial(); + public static Materials Dreamwood = new MaterialBuilder(207, new TextureSet("Dreamwood", true), "Dreamwood") + .setName("Dreamwood") + .addDustItems() + .addMetalItems() + .addToolHeadItems() + .addGearItems() + .setToolSpeed(1.0F) + .setDurability(0) + .setToolQuality(3) + .setOreValue(3) + .setDensityMultiplier(1) + .setDensityDivider(1) + .setAspects( Arrays.asList( - new TC_AspectStack(TC_Aspects.PRAECANTATIO, 27), - new TC_AspectStack(TC_Aspects.AURAM, 24), - new TC_AspectStack(TC_Aspects.VICTUS, 24), - new TC_AspectStack(TC_Aspects.METALLUM, 1))); - public static Materials Livingwood = new MaterialBuilder( - 206, - new TextureSet("Livingwood", true), - "Livingwood").setName("Livingwood") - .addDustItems() - .addMetalItems() - .addToolHeadItems() - .addGearItems() - .setToolSpeed(1.0F) - .setDurability(0) - .setToolQuality(3) - .setOreValue(3) - .setDensityMultiplier(1) - .setDensityDivider(1) - .setAspects( - Arrays.asList( - new TC_AspectStack(TC_Aspects.ARBOR, 4), - new TC_AspectStack(TC_Aspects.VICTUS, 2))) - .constructMaterial(); - public static Materials Dreamwood = new MaterialBuilder( - 207, - new TextureSet("Dreamwood", true), - "Dreamwood").setName("Dreamwood") - .addDustItems() - .addMetalItems() - .addToolHeadItems() - .addGearItems() - .setToolSpeed(1.0F) - .setDurability(0) - .setToolQuality(3) - .setOreValue(3) - .setDensityMultiplier(1) - .setDensityDivider(1) - .setAspects( - Arrays.asList( - new TC_AspectStack(TC_Aspects.ARBOR, 4), - new TC_AspectStack(TC_Aspects.AURAM, 2), - new TC_AspectStack(TC_Aspects.PRAECANTATIO, 1))) - .constructMaterial(); + new TC_AspectStack(TC_Aspects.ARBOR, 4), + new TC_AspectStack(TC_Aspects.AURAM, 2), + new TC_AspectStack(TC_Aspects.PRAECANTATIO, 1))) + .constructMaterial(); public static Materials ManaDiamond = new Materials( - 208, - TextureSet.SET_DIAMOND, - 16.0F, - 2560, - 8, - 1 | 4, - 38, - 237, - 224, - 255, - "ManaDiamond", - "Mana Diamond", - -1, - -1, - 0, - 0, - false, - true, - 2, - 1, - 1, - Dyes._NULL, - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.PRAECANTATIO, 4), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 4), - new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 4))); + 208, + TextureSet.SET_DIAMOND, + 16.0F, + 2560, + 8, + 1 | 4, + 38, + 237, + 224, + 255, + "ManaDiamond", + "Mana Diamond", + -1, + -1, + 0, + 0, + false, + true, + 2, + 1, + 1, + Dyes._NULL, + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.PRAECANTATIO, 4), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 4), + new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 4))); public static Materials BotaniaDragonstone = new Materials( - 209, - TextureSet.SET_DIAMOND, - 24.0F, - 3840, - 12, - 1 | 4, - 242, - 44, - 239, - 255, - "BotaniaDragonstone", - "Dragonstone", - -1, - -1, - 0, - 0, - false, - true, - 2, - 1, - 1, - Dyes._NULL, - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.PRAECANTATIO, 6), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 6), - new TC_Aspects.TC_AspectStack(TC_Aspects.AURAM, 4))); + 209, + TextureSet.SET_DIAMOND, + 24.0F, + 3840, + 12, + 1 | 4, + 242, + 44, + 239, + 255, + "BotaniaDragonstone", + "Dragonstone", + -1, + -1, + 0, + 0, + false, + true, + 2, + 1, + 1, + Dyes._NULL, + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.PRAECANTATIO, 6), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 6), + new TC_Aspects.TC_AspectStack(TC_Aspects.AURAM, 4))); public static void init() { GaiaSpirit.mChemicalFormula = "Gs"; diff --git a/src/main/java/gregtech/api/enums/MaterialsKevlar.java b/src/main/java/gregtech/api/enums/MaterialsKevlar.java index a5c38b0f7a..647fe08ef4 100644 --- a/src/main/java/gregtech/api/enums/MaterialsKevlar.java +++ b/src/main/java/gregtech/api/enums/MaterialsKevlar.java @@ -7,690 +7,590 @@ import gregtech.api.objects.MaterialStack; public class MaterialsKevlar { public static Materials DiphenylmethaneDiisocyanate = new MaterialBuilder( - 796, - TextureSet.SET_DULL, - "4,4'-Diphenylmethane Diisocyanate").setName("DiphenylmethaneDiisocyanate") - .addDustItems() - .setRGB(255, 230, 50) - .setColor(Dyes.dyeYellow) - .setMeltingPoint(310) - .setMaterialList( - new MaterialStack(Materials.Carbon, 15), - new MaterialStack(Materials.Hydrogen, 10), - new MaterialStack(Materials.Nitrogen, 2), - new MaterialStack(Materials.Oxygen, 2)) - .setAspects( - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.TERRA, 1), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1))) - .constructMaterial(); // C15H10N2O2 + 796, + TextureSet.SET_DULL, + "4,4'-Diphenylmethane Diisocyanate").setName("DiphenylmethaneDiisocyanate") + .addDustItems() + .setRGB(255, 230, 50) + .setColor(Dyes.dyeYellow) + .setMeltingPoint(310) + .setMaterialList( + new MaterialStack(Materials.Carbon, 15), + new MaterialStack(Materials.Hydrogen, 10), + new MaterialStack(Materials.Nitrogen, 2), + new MaterialStack(Materials.Oxygen, 2)) + .setAspects( + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.TERRA, 1), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1))) + .constructMaterial(); // C15H10N2O2 public static Materials DiaminodiphenylmethanMixture = new MaterialBuilder( - 795, - TextureSet.SET_FLUID, - "Diaminodiphenylmethane Mixture").setName("DiaminodiphenylmethanMixture") - .addCell() - .addFluid() - .setRGB(255, 243, 122) - .setColor(Dyes.dyeYellow) - .setMeltingPoint(365) - .setMaterialList( - new MaterialStack(Materials.Carbon, 13), - new MaterialStack(Materials.Hydrogen, 14), - new MaterialStack(Materials.Nitrogen, 2)) - .setAspects( - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1))) - .constructMaterial(); // C13H14N2 + 795, + TextureSet.SET_FLUID, + "Diaminodiphenylmethane Mixture").setName("DiaminodiphenylmethanMixture") + .addCell() + .addFluid() + .setRGB(255, 243, 122) + .setColor(Dyes.dyeYellow) + .setMeltingPoint(365) + .setMaterialList( + new MaterialStack(Materials.Carbon, 13), + new MaterialStack(Materials.Hydrogen, 14), + new MaterialStack(Materials.Nitrogen, 2)) + .setAspects( + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1))) + .constructMaterial(); // C13H14N2 public static Materials DiphenylmethaneDiisocyanateMixture = new MaterialBuilder( - 794, - TextureSet.SET_FLUID, - "Diphenylmethane Diisocyanate Mixture").setName("DiphenylmethaneDiisocyanateMixture") - .addCell() - .addFluid() - .setRGB(255, 230, 50) - .setColor(Dyes.dyeYellow) - .setMeltingPoint(310) - .setMaterialList( - new MaterialStack(Materials.Carbon, 15), - new MaterialStack(Materials.Hydrogen, 10), - new MaterialStack(Materials.Nitrogen, 2), - new MaterialStack(Materials.Oxygen, 2)) - .setAspects( - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1), - new TC_Aspects.TC_AspectStack( - TC_Aspects.VENENUM, - 1))) - .constructMaterial(); // C15H10N2O2 - public static Materials Butyraldehyde = new MaterialBuilder( - 793, - TextureSet.SET_FLUID, - "Butyraldehyde").setName("Butyraldehyde") - .addCell() - .addFluid() - .setRGB(255, 255, 255) - .setColor(Dyes.dyeWhite) - .setMeltingPoint(176) - .setMaterialList( - new MaterialStack(Materials.Carbon, 4), - new MaterialStack(Materials.Hydrogen, 8), - new MaterialStack(Materials.Oxygen, 1)) - .setAspects( - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1))) - .constructMaterial(); // C4H8O - public static Materials Isobutyraldehyde = new MaterialBuilder( - 792, - TextureSet.SET_FLUID, - "Isobutyraldehyde").setName("Isobutyraldehyde") - .addCell() - .addFluid() - .setRGB(255, 255, 255) - .setColor(Dyes.dyeWhite) - .setMeltingPoint(208) - .setExtraData(1) - .setMaterialList( - new MaterialStack(Materials.Carbon, 4), - new MaterialStack(Materials.Hydrogen, 8), - new MaterialStack(Materials.Oxygen, 1)) - .setAspects( - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1))) - .constructMaterial(); // C4H8O - public static Materials NickelTetracarbonyl = new MaterialBuilder( - 791, - TextureSet.SET_FLUID, - "Nickel Tetracarbonyl").setName("NickelTetracarbonyl") - .addCell() - .addFluid() - .setRGB(255, 255, 255) - .setColor(Dyes.dyeWhite) - .setMeltingPoint(256) - .setMaterialList( - new MaterialStack(Materials.Carbon, 4), - new MaterialStack(Materials.Nickel, 1), - new MaterialStack(Materials.Oxygen, 4)) - .setAspects( - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1), - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1))) - .constructMaterial(); // C4NiO4 - public static Materials KevlarCatalyst = new MaterialBuilder( - 790, - TextureSet.SET_DULL, - "Polyurethane Catalyst A").setName("PolyurethaneCatalystADust") - .addDustItems() - .setRGB(50, 50, 50) - .setColor(Dyes.dyeBlack) - .setMeltingPoint(300) - .setAspects( - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1), - new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 1))) - .constructMaterial(); - public static Materials EthyleneOxide = new MaterialBuilder( - 789, - TextureSet.SET_FLUID, - "Ethylene Oxide").setName("EthyleneOxide") - .addCell() - .addGas() - .setRGB(255, 255, 255) - .setColor(Dyes.dyeWhite) - .setMeltingPoint(160) - .setMaterialList( - new MaterialStack(Materials.Carbon, 2), - new MaterialStack(Materials.Hydrogen, 4), - new MaterialStack(Materials.Oxygen, 1)) - .setAspects( - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1))) - .constructMaterial(); // C2H4O - public static Materials SiliconOil = new MaterialBuilder( - 788, - TextureSet.SET_FLUID, - "Silicon Oil").setName("SiliconOil") - .addCell() - .addFluid() - .setRGB(255, 255, 255) - .setColor(Dyes.dyeWhite) - .setMeltingPoint(473) - .setAspects( - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1))) - .constructMaterial(); - public static Materials Ethyleneglycol = new MaterialBuilder( - 787, - TextureSet.SET_FLUID, - "Ethylene Glycol").setName("EthyleneGlycol") - .addCell() - .addFluid() - .setRGB(255, 255, 255) - .setColor(Dyes.dyeWhite) - .setMeltingPoint(260) - .setMaterialList( - new MaterialStack(Materials.Carbon, 2), - new MaterialStack(Materials.Hydrogen, 6), - new MaterialStack(Materials.Oxygen, 2)) - .setAspects( - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1))) - .constructMaterial(); // C2H6O2 - public static Materials Acetaldehyde = new MaterialBuilder( - 786, - TextureSet.SET_FLUID, - "Acetaldehyde").setName("Acetaldehyde") - .addCell() - .addGas() - .setRGB(255, 255, 255) - .setColor(Dyes.dyeWhite) - .setMeltingPoint(150) - .setMaterialList( - new MaterialStack(Materials.Carbon, 2), - new MaterialStack(Materials.Hydrogen, 4), - new MaterialStack(Materials.Oxygen, 1)) - .setAspects( - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1))) - .constructMaterial(); // C2H4O - public static Materials Pentaerythritol = new MaterialBuilder( - 785, - TextureSet.SET_DULL, - "Pentaerythritol").setName("Pentaerythritol") - .addDustItems() - .setRGB(255, 255, 255) - .setColor(Dyes.dyeWhite) - .setMeltingPoint(533) - .setMaterialList( - new MaterialStack(Materials.Carbon, 5), - new MaterialStack(Materials.Hydrogen, 12), - new MaterialStack(Materials.Oxygen, 4)) - .setAspects( - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.TERRA, 1), - new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 1))) - .constructMaterial(); // C5H12O4 - public static Materials PolyurethaneResin = new MaterialBuilder( - 784, - TextureSet.SET_FLUID, - "Polyurethane Resin").setName("PolyurethaneResin") - .addCell() - .addFluid() - .setRGB(230, 230, 120) - .setColor(Dyes.dyeYellow) - .constructMaterial(); + 794, + TextureSet.SET_FLUID, + "Diphenylmethane Diisocyanate Mixture").setName("DiphenylmethaneDiisocyanateMixture") + .addCell() + .addFluid() + .setRGB(255, 230, 50) + .setColor(Dyes.dyeYellow) + .setMeltingPoint(310) + .setMaterialList( + new MaterialStack(Materials.Carbon, 15), + new MaterialStack(Materials.Hydrogen, 10), + new MaterialStack(Materials.Nitrogen, 2), + new MaterialStack(Materials.Oxygen, 2)) + .setAspects( + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1))) + .constructMaterial(); // C15H10N2O2 + public static Materials Butyraldehyde = new MaterialBuilder(793, TextureSet.SET_FLUID, "Butyraldehyde") + .setName("Butyraldehyde") + .addCell() + .addFluid() + .setRGB(255, 255, 255) + .setColor(Dyes.dyeWhite) + .setMeltingPoint(176) + .setMaterialList( + new MaterialStack(Materials.Carbon, 4), + new MaterialStack(Materials.Hydrogen, 8), + new MaterialStack(Materials.Oxygen, 1)) + .setAspects( + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1))) + .constructMaterial(); // C4H8O + public static Materials Isobutyraldehyde = new MaterialBuilder(792, TextureSet.SET_FLUID, "Isobutyraldehyde") + .setName("Isobutyraldehyde") + .addCell() + .addFluid() + .setRGB(255, 255, 255) + .setColor(Dyes.dyeWhite) + .setMeltingPoint(208) + .setExtraData(1) + .setMaterialList( + new MaterialStack(Materials.Carbon, 4), + new MaterialStack(Materials.Hydrogen, 8), + new MaterialStack(Materials.Oxygen, 1)) + .setAspects( + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1))) + .constructMaterial(); // C4H8O + public static Materials NickelTetracarbonyl = new MaterialBuilder(791, TextureSet.SET_FLUID, "Nickel Tetracarbonyl") + .setName("NickelTetracarbonyl") + .addCell() + .addFluid() + .setRGB(255, 255, 255) + .setColor(Dyes.dyeWhite) + .setMeltingPoint(256) + .setMaterialList( + new MaterialStack(Materials.Carbon, 4), + new MaterialStack(Materials.Nickel, 1), + new MaterialStack(Materials.Oxygen, 4)) + .setAspects( + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1), + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1))) + .constructMaterial(); // C4NiO4 + public static Materials KevlarCatalyst = new MaterialBuilder(790, TextureSet.SET_DULL, "Polyurethane Catalyst A") + .setName("PolyurethaneCatalystADust") + .addDustItems() + .setRGB(50, 50, 50) + .setColor(Dyes.dyeBlack) + .setMeltingPoint(300) + .setAspects( + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1), + new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 1))) + .constructMaterial(); + public static Materials EthyleneOxide = new MaterialBuilder(789, TextureSet.SET_FLUID, "Ethylene Oxide") + .setName("EthyleneOxide") + .addCell() + .addGas() + .setRGB(255, 255, 255) + .setColor(Dyes.dyeWhite) + .setMeltingPoint(160) + .setMaterialList( + new MaterialStack(Materials.Carbon, 2), + new MaterialStack(Materials.Hydrogen, 4), + new MaterialStack(Materials.Oxygen, 1)) + .setAspects( + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1))) + .constructMaterial(); // C2H4O + public static Materials SiliconOil = new MaterialBuilder(788, TextureSet.SET_FLUID, "Silicon Oil") + .setName("SiliconOil") + .addCell() + .addFluid() + .setRGB(255, 255, 255) + .setColor(Dyes.dyeWhite) + .setMeltingPoint(473) + .setAspects( + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1))) + .constructMaterial(); + public static Materials Ethyleneglycol = new MaterialBuilder(787, TextureSet.SET_FLUID, "Ethylene Glycol") + .setName("EthyleneGlycol") + .addCell() + .addFluid() + .setRGB(255, 255, 255) + .setColor(Dyes.dyeWhite) + .setMeltingPoint(260) + .setMaterialList( + new MaterialStack(Materials.Carbon, 2), + new MaterialStack(Materials.Hydrogen, 6), + new MaterialStack(Materials.Oxygen, 2)) + .setAspects( + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1))) + .constructMaterial(); // C2H6O2 + public static Materials Acetaldehyde = new MaterialBuilder(786, TextureSet.SET_FLUID, "Acetaldehyde") + .setName("Acetaldehyde") + .addCell() + .addGas() + .setRGB(255, 255, 255) + .setColor(Dyes.dyeWhite) + .setMeltingPoint(150) + .setMaterialList( + new MaterialStack(Materials.Carbon, 2), + new MaterialStack(Materials.Hydrogen, 4), + new MaterialStack(Materials.Oxygen, 1)) + .setAspects( + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1))) + .constructMaterial(); // C2H4O + public static Materials Pentaerythritol = new MaterialBuilder(785, TextureSet.SET_DULL, "Pentaerythritol") + .setName("Pentaerythritol") + .addDustItems() + .setRGB(255, 255, 255) + .setColor(Dyes.dyeWhite) + .setMeltingPoint(533) + .setMaterialList( + new MaterialStack(Materials.Carbon, 5), + new MaterialStack(Materials.Hydrogen, 12), + new MaterialStack(Materials.Oxygen, 4)) + .setAspects( + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.TERRA, 1), + new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 1))) + .constructMaterial(); // C5H12O4 + public static Materials PolyurethaneResin = new MaterialBuilder(784, TextureSet.SET_FLUID, "Polyurethane Resin") + .setName("PolyurethaneResin") + .addCell() + .addFluid() + .setRGB(230, 230, 120) + .setColor(Dyes.dyeYellow) + .constructMaterial(); public static Materials NMethylIIPyrrolidone = new MaterialBuilder( - 783, - TextureSet.SET_FLUID, - "N-Methyl-2-pyrrolidone").setName("NMethylpyrolidone") - .addCell() - .addFluid() - .setRGB(255, 255, 255) - .setColor(Dyes.dyeWhite) - .setMeltingPoint(249) - .setMaterialList( - new MaterialStack(Materials.Carbon, 5), - new MaterialStack(Materials.Hydrogen, 9), - new MaterialStack(Materials.Nitrogen, 1), - new MaterialStack(Materials.Oxygen, 1)) - .setAspects( - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.TERRA, 1), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1))) - .constructMaterial(); // C5H9NO + 783, + TextureSet.SET_FLUID, + "N-Methyl-2-pyrrolidone").setName("NMethylpyrolidone") + .addCell() + .addFluid() + .setRGB(255, 255, 255) + .setColor(Dyes.dyeWhite) + .setMeltingPoint(249) + .setMaterialList( + new MaterialStack(Materials.Carbon, 5), + new MaterialStack(Materials.Hydrogen, 9), + new MaterialStack(Materials.Nitrogen, 1), + new MaterialStack(Materials.Oxygen, 1)) + .setAspects( + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.TERRA, 1), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1))) + .constructMaterial(); // C5H9NO public static Materials TerephthaloylChloride = new MaterialBuilder( - 782, - TextureSet.SET_POWDER, - "Terephthaloyl Chloride").setName("TerephthaloylChloride") - .addDustItems() - .setRGB(0, 255, 12) - .setColor(Dyes.dyeGreen) - .setMeltingPoint(355) - .setMaterialList( - new MaterialStack(Materials.Carbon, 8), - new MaterialStack(Materials.Hydrogen, 4), - new MaterialStack(Materials.Chlorine, 2), - new MaterialStack(Materials.Oxygen, 2)) - .setAspects( - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.TERRA, 1), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1))) - .constructMaterial(); // C8H4Cl2O2 + 782, + TextureSet.SET_POWDER, + "Terephthaloyl Chloride").setName("TerephthaloylChloride") + .addDustItems() + .setRGB(0, 255, 12) + .setColor(Dyes.dyeGreen) + .setMeltingPoint(355) + .setMaterialList( + new MaterialStack(Materials.Carbon, 8), + new MaterialStack(Materials.Hydrogen, 4), + new MaterialStack(Materials.Chlorine, 2), + new MaterialStack(Materials.Oxygen, 2)) + .setAspects( + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.TERRA, 1), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1))) + .constructMaterial(); // C8H4Cl2O2 public static Materials Acetylene = new MaterialBuilder(781, TextureSet.SET_FLUID, "Acetylene").setName("Acetylene") - .addCell() - .addGas() - .setRGB( - 255, - 255, - 255) - .setColor( - Dyes.dyeWhite) - .setMeltingPoint(192) - .setMaterialList( - new MaterialStack( - Materials.Carbon, - 2), - new MaterialStack( - Materials.Hydrogen, - 2)) - .constructMaterial(); // C2H2 - // TODO - // Add - // to - // JUPITER - // Athmosphere - // and - // Enceladus - // and - // to - // moon - // of - // Saturn - public static Materials IVNitroaniline = new MaterialBuilder( - 780, - TextureSet.SET_FLUID, - "4-Nitroaniline").setName("4Nitroaniline") - .addCell() - .addFluid() - .setRGB(255, 135, 51) - .setColor(Dyes.dyeOrange) - .setMeltingPoint(420) - .setMaterialList( - new MaterialStack(Materials.Carbon, 6), - new MaterialStack(Materials.Hydrogen, 6), - new MaterialStack(Materials.Nitrogen, 2), - new MaterialStack(Materials.Oxygen, 2)) - .setAspects( - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.TERRA, 1), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1))) - .constructMaterial(); // C6H6N2O2 + .addCell() + .addGas() + .setRGB(255, 255, 255) + .setColor(Dyes.dyeWhite) + .setMeltingPoint(192) + .setMaterialList(new MaterialStack(Materials.Carbon, 2), new MaterialStack(Materials.Hydrogen, 2)) + .constructMaterial(); // C2H2 + // TODO + // Add + // to + // JUPITER + // Athmosphere + // and + // Enceladus + // and + // to + // moon + // of + // Saturn + public static Materials IVNitroaniline = new MaterialBuilder(780, TextureSet.SET_FLUID, "4-Nitroaniline") + .setName("4Nitroaniline") + .addCell() + .addFluid() + .setRGB(255, 135, 51) + .setColor(Dyes.dyeOrange) + .setMeltingPoint(420) + .setMaterialList( + new MaterialStack(Materials.Carbon, 6), + new MaterialStack(Materials.Hydrogen, 6), + new MaterialStack(Materials.Nitrogen, 2), + new MaterialStack(Materials.Oxygen, 2)) + .setAspects( + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.TERRA, 1), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1))) + .constructMaterial(); // C6H6N2O2 public static Materials ParaPhenylenediamine = new MaterialBuilder( - 779, - TextureSet.SET_POWDER, - "para-Phenylenediamine").setName("pPhenylenediamine") - .addDustItems() - .setRGB(251, 236, 93) - .setColor(Dyes.dyeYellow) - .setMeltingPoint(293) - .setMaterialList( - new MaterialStack(Materials.Carbon, 6), - new MaterialStack(Materials.Hydrogen, 8), - new MaterialStack(Materials.Nitrogen, 2)) - .setAspects( - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.TERRA, 1), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1))) - .constructMaterial(); // C6H6N2 - public static Materials Methylamine = new MaterialBuilder( - 778, - TextureSet.SET_FLUID, - "Methylamine").setName("Methylamine") - .addCell() - .addGas() - .setRGB(65, 68, 105) - .setColor(Dyes.dyeGray) - .setMeltingPoint(180) - .setExtraData(1) - .setMaterialList( - new MaterialStack(Materials.Carbon, 1), - new MaterialStack(Materials.Hydrogen, 5), - new MaterialStack(Materials.Nitrogen, 1)) - .constructMaterial(); // CH5N - public static Materials Trimethylamine = new MaterialBuilder( - 777, - TextureSet.SET_FLUID, - "Trimethylamine").setName("Trimethylamine") - .addCell() - .addGas() - .setRGB(105, 68, 105) - .setColor(Dyes.dyeGray) - .setMeltingPoint(156) - .setExtraData(1) - .setMaterialList( - new MaterialStack(Materials.Carbon, 3), - new MaterialStack(Materials.Hydrogen, 9), - new MaterialStack(Materials.Nitrogen, 1)) - .constructMaterial(); // C3H9N - public static Materials GammaButyrolactone = new MaterialBuilder( - 776, - TextureSet.SET_FLUID, - "gamma-Butyrolactone").setName("GammaButyrolactone") - .addCell() - .addFluid() - .setRGB(255, 255, 151) - .setColor(Dyes.dyeYellow) - .setMeltingPoint(229) - .setMaterialList( - new MaterialStack(Materials.Carbon, 4), - new MaterialStack(Materials.Hydrogen, 6), - new MaterialStack(Materials.Oxygen, 2)) - .constructMaterial(); // C4H6O2 - public static Materials CalciumCarbide = new MaterialBuilder( - 775, - TextureSet.SET_DULL, - "Calcium Carbide").setName("CacliumCarbide") - .addDustItems() - .setRGB(235, 235, 235) - .setColor(Dyes.dyeGray) - .setMeltingPoint(2430) - .setMaterialList( - new MaterialStack(Materials.Calcium, 1), - new MaterialStack(Materials.Carbon, 2)) - .constructMaterial(); // CaC2 + 779, + TextureSet.SET_POWDER, + "para-Phenylenediamine").setName("pPhenylenediamine") + .addDustItems() + .setRGB(251, 236, 93) + .setColor(Dyes.dyeYellow) + .setMeltingPoint(293) + .setMaterialList( + new MaterialStack(Materials.Carbon, 6), + new MaterialStack(Materials.Hydrogen, 8), + new MaterialStack(Materials.Nitrogen, 2)) + .setAspects( + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.TERRA, 1), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1))) + .constructMaterial(); // C6H6N2 + public static Materials Methylamine = new MaterialBuilder(778, TextureSet.SET_FLUID, "Methylamine") + .setName("Methylamine") + .addCell() + .addGas() + .setRGB(65, 68, 105) + .setColor(Dyes.dyeGray) + .setMeltingPoint(180) + .setExtraData(1) + .setMaterialList( + new MaterialStack(Materials.Carbon, 1), + new MaterialStack(Materials.Hydrogen, 5), + new MaterialStack(Materials.Nitrogen, 1)) + .constructMaterial(); // CH5N + public static Materials Trimethylamine = new MaterialBuilder(777, TextureSet.SET_FLUID, "Trimethylamine") + .setName("Trimethylamine") + .addCell() + .addGas() + .setRGB(105, 68, 105) + .setColor(Dyes.dyeGray) + .setMeltingPoint(156) + .setExtraData(1) + .setMaterialList( + new MaterialStack(Materials.Carbon, 3), + new MaterialStack(Materials.Hydrogen, 9), + new MaterialStack(Materials.Nitrogen, 1)) + .constructMaterial(); // C3H9N + public static Materials GammaButyrolactone = new MaterialBuilder(776, TextureSet.SET_FLUID, "gamma-Butyrolactone") + .setName("GammaButyrolactone") + .addCell() + .addFluid() + .setRGB(255, 255, 151) + .setColor(Dyes.dyeYellow) + .setMeltingPoint(229) + .setMaterialList( + new MaterialStack(Materials.Carbon, 4), + new MaterialStack(Materials.Hydrogen, 6), + new MaterialStack(Materials.Oxygen, 2)) + .constructMaterial(); // C4H6O2 + public static Materials CalciumCarbide = new MaterialBuilder(775, TextureSet.SET_DULL, "Calcium Carbide") + .setName("CacliumCarbide") + .addDustItems() + .setRGB(235, 235, 235) + .setColor(Dyes.dyeGray) + .setMeltingPoint(2430) + .setMaterialList(new MaterialStack(Materials.Calcium, 1), new MaterialStack(Materials.Carbon, 2)) + .constructMaterial(); // CaC2 public static Materials LiquidCrystalKevlar = new MaterialBuilder( - 774, - TextureSet.SET_FLUID, - "Liquid Crystal Kevlar").setName("LiquidCrystalKevlar") - .addCell() - .addFluid() - .setRGB(240, 240, 120) - .setColor(Dyes.dyeYellow) - .constructMaterial(); // [-CO-C6H4-CO-NH-C6H4-NH-]n - public static Materials IIButinIIVdiol = new MaterialBuilder( - 773, - TextureSet.SET_POWDER, - "2-Butin-1,4-diol").setName("2Butin14diol") - .addDustItems() - .setRGB(247, 247, 180) - .setColor(Dyes.dyeYellow) - .setMeltingPoint(331) - .setMaterialList( - new MaterialStack(Materials.Carbon, 4), - new MaterialStack(Materials.Hydrogen, 6), - new MaterialStack(Materials.Oxygen, 2)) - .constructMaterial(); // C4H6O2 - public static Materials NickelAluminide = new MaterialBuilder( - 772, - TextureSet.SET_METALLIC, - "Nickel Aluminide").setName("NickelAluminide") - .addDustItems() - .addMetalItems() - .setRGB(230, 230, 230) - .setColor(Dyes.dyeGray) - .setMeltingPoint(1668) - .setBlastFurnaceTemp(1668) - .setBlastFurnaceRequired(true) - .setMaterialList( - new MaterialStack(Materials.Nickel, 1), - new MaterialStack(Materials.Aluminium, 3)) - .constructMaterial() - .disableAutoGeneratedBlastFurnaceRecipes(); // NiAl3 - public static Materials RaneyNickelActivated = new MaterialBuilder( - 771, - TextureSet.SET_POWDER, - "Raney Nickel").setName("RaneyNickelActivated") - .addDustItems() - .setRGB(230, 230, 230) - .setColor(Dyes.dyeGray) - .setMeltingPoint(1955) - .setMaterialList( - new MaterialStack(Materials.Nickel, 1), - new MaterialStack(Materials.Aluminium, 1)) - .constructMaterial(); // NiAl - public static Materials BismuthIIIOxide = new MaterialBuilder( - 769, - TextureSet.SET_POWDER, - "Bismuth Oxide").setName("BismuthIIIOxide") - .addDustItems() - .setRGB(50, 50, 50) - .setColor(Dyes.dyeBlack) - .setMeltingPoint(1090) - .setMaterialList( - new MaterialStack(Materials.Bismuth, 2), - new MaterialStack(Materials.Oxygen, 3)) - .constructMaterial(); // Bi2O3 - public static Materials ThionylChloride = new MaterialBuilder( - 768, - TextureSet.SET_FLUID, - "Thionyl Chloride").setName("ThionylChloride") - .addCell() - .addFluid() - .setRGB(255, 255, 255) - .setColor(Dyes.dyeWhite) - .constructMaterial(); // SOCl2 - public static Materials SulfurDichloride = new MaterialBuilder( - 767, - TextureSet.SET_FLUID, - "Sulfur Dichloride").setName("SulfurDichloride") - .addCell() - .addFluid() - .setRGB(200, 0, 0) - .setColor(Dyes.dyeRed) - .constructMaterial(); // SCl2 + 774, + TextureSet.SET_FLUID, + "Liquid Crystal Kevlar").setName("LiquidCrystalKevlar") + .addCell() + .addFluid() + .setRGB(240, 240, 120) + .setColor(Dyes.dyeYellow) + .constructMaterial(); // [-CO-C6H4-CO-NH-C6H4-NH-]n + public static Materials IIButinIIVdiol = new MaterialBuilder(773, TextureSet.SET_POWDER, "2-Butin-1,4-diol") + .setName("2Butin14diol") + .addDustItems() + .setRGB(247, 247, 180) + .setColor(Dyes.dyeYellow) + .setMeltingPoint(331) + .setMaterialList( + new MaterialStack(Materials.Carbon, 4), + new MaterialStack(Materials.Hydrogen, 6), + new MaterialStack(Materials.Oxygen, 2)) + .constructMaterial(); // C4H6O2 + public static Materials NickelAluminide = new MaterialBuilder(772, TextureSet.SET_METALLIC, "Nickel Aluminide") + .setName("NickelAluminide") + .addDustItems() + .addMetalItems() + .setRGB(230, 230, 230) + .setColor(Dyes.dyeGray) + .setMeltingPoint(1668) + .setBlastFurnaceTemp(1668) + .setBlastFurnaceRequired(true) + .setMaterialList(new MaterialStack(Materials.Nickel, 1), new MaterialStack(Materials.Aluminium, 3)) + .constructMaterial() + .disableAutoGeneratedBlastFurnaceRecipes(); // NiAl3 + public static Materials RaneyNickelActivated = new MaterialBuilder(771, TextureSet.SET_POWDER, "Raney Nickel") + .setName("RaneyNickelActivated") + .addDustItems() + .setRGB(230, 230, 230) + .setColor(Dyes.dyeGray) + .setMeltingPoint(1955) + .setMaterialList(new MaterialStack(Materials.Nickel, 1), new MaterialStack(Materials.Aluminium, 1)) + .constructMaterial(); // NiAl + public static Materials BismuthIIIOxide = new MaterialBuilder(769, TextureSet.SET_POWDER, "Bismuth Oxide") + .setName("BismuthIIIOxide") + .addDustItems() + .setRGB(50, 50, 50) + .setColor(Dyes.dyeBlack) + .setMeltingPoint(1090) + .setMaterialList(new MaterialStack(Materials.Bismuth, 2), new MaterialStack(Materials.Oxygen, 3)) + .constructMaterial(); // Bi2O3 + public static Materials ThionylChloride = new MaterialBuilder(768, TextureSet.SET_FLUID, "Thionyl Chloride") + .setName("ThionylChloride") + .addCell() + .addFluid() + .setRGB(255, 255, 255) + .setColor(Dyes.dyeWhite) + .constructMaterial(); // SOCl2 + public static Materials SulfurDichloride = new MaterialBuilder(767, TextureSet.SET_FLUID, "Sulfur Dichloride") + .setName("SulfurDichloride") + .addCell() + .addFluid() + .setRGB(200, 0, 0) + .setColor(Dyes.dyeRed) + .constructMaterial(); // SCl2 public static Materials DimethylTerephthalate = new MaterialBuilder( - 766, - TextureSet.SET_FLUID, - "Dimethyl Terephthalate").setName("DimethylTerephthalate") - .addCell() - .addFluid() - .setRGB(255, 255, 255) - .setColor(Dyes.dyeWhite) - .setMeltingPoint(415) - .setMaterialList( - new MaterialStack(Materials.Carbon, 10), - new MaterialStack(Materials.Hydrogen, 10), - new MaterialStack(Materials.Oxygen, 4)) - .constructMaterial(); // C10H10O4 + 766, + TextureSet.SET_FLUID, + "Dimethyl Terephthalate").setName("DimethylTerephthalate") + .addCell() + .addFluid() + .setRGB(255, 255, 255) + .setColor(Dyes.dyeWhite) + .setMeltingPoint(415) + .setMaterialList( + new MaterialStack(Materials.Carbon, 10), + new MaterialStack(Materials.Hydrogen, 10), + new MaterialStack(Materials.Oxygen, 4)) + .constructMaterial(); // C10H10O4 public static Materials Kevlar = new MaterialBuilder(765, TextureSet.SET_DULL, "Kevlar").setName("Kevlar") - .addDustItems() - .addMetalItems() - .addGearItems() - .setRGB(240, 240, 120) - .setColor(Dyes.dyeYellow) - .constructMaterial(); - public static Materials TerephthalicAcid = new MaterialBuilder( - 764, - TextureSet.SET_FLUID, - "Terephthalic Acid").setName("TerephthalicAcid") - .addCell() - .addFluid() - .setRGB(255, 255, 255) - .setColor(Dyes.dyeWhite) - .setMeltingPoint(480) - .setMaterialList( - new MaterialStack(Materials.Carbon, 8L), - new MaterialStack(Materials.Hydrogen, 6), - new MaterialStack(Materials.Oxygen, 4)) - .constructMaterial(); // C9H6O6 - public static Materials IIIDimethylbenzene = new MaterialBuilder( - 763, - TextureSet.SET_FLUID, - "1,3-Dimethylbenzen").addCell() - .addFluid() - .setRGB(112, 146, 74) - .setColor(Dyes.dyeLime) - .setMeltingPoint(225) - .setMaterialList( - new MaterialStack(Materials.Carbon, 8), - new MaterialStack(Materials.Hydrogen, 10)) - .addElectrolyzerRecipe() - .constructMaterial(); // C8H10 - public static Materials IVDimethylbenzene = new MaterialBuilder( - 762, - TextureSet.SET_FLUID, - "1,4-Dimethylbenzen").addCell() - .addFluid() - .setRGB(122, 136, 84) - .setColor(Dyes.dyeLime) - .setMeltingPoint(286) - .setMaterialList( - new MaterialStack(Materials.Carbon, 8), - new MaterialStack(Materials.Hydrogen, 10)) - .addElectrolyzerRecipe() - .constructMaterial(); // C8H10 - public static Materials CobaltIINaphthenate = new MaterialBuilder( - 761, - TextureSet.SET_DULL, - "Cobalt II Naphthenate").setName("Cobalt(II)Naphthenate") - .addDustItems() - .setRGB(143, 95, 39) - .setColor(Dyes.dyeBrown) - .setMeltingPoint(413) - .setMaterialList( - new MaterialStack(Materials.Cobalt, 1), - new MaterialStack(Materials.Carbon, 22), - new MaterialStack(Materials.Hydrogen, 14), - new MaterialStack(Materials.Oxygen, 4)) - .constructMaterial(); // CoC22H14O4 - public static Materials NaphthenicAcid = new MaterialBuilder( - 760, - TextureSet.SET_FLUID, - "Naphthenic Acid").setName("NaphthenicAcid") - .addCell() - .addFluid() - .setRGB(255, 255, 255) - .setColor(Dyes.dyeWhite) - .setFuelType(MaterialBuilder.SEMIFLUID) - .setFuelPower(80) - .constructMaterial(); - public static Materials CobaltIIHydroxide = new MaterialBuilder( - 759, - TextureSet.SET_POWDER, - "Cobalt II Hydroxide").setName("CobaltIIHydroxide") - .addDustItems() - .setRGB(229, 140, 239) - .setColor(Dyes.dyePurple) - .setMeltingPoint(441) - .setMaterialList( - new MaterialStack(Materials.Cobalt, 1), - new MaterialStack(Materials.Hydrogen, 2), - new MaterialStack(Materials.Oxygen, 2)) - .constructMaterial(); // CoH2O2 - public static Materials CobaltIIAcetate = new MaterialBuilder( - 758, - TextureSet.SET_POWDER, - "Cobalt II Acetate").setName("Cobalt(II)Acetate") - .addDustItems() - .setRGB(219, 162, 229) - .setColor(Dyes.dyePurple) - .setMeltingPoint(413) - .setMaterialList( - new MaterialStack(Materials.Carbon, 4L), - new MaterialStack(Materials.Hydrogen, 6), - new MaterialStack(Materials.Cobalt, 1), - new MaterialStack(Materials.Oxygen, 4)) - .constructMaterial(); // C4H6CoO4 - public static Materials CobaltIINitrate = new MaterialBuilder( - 757, - TextureSet.SET_POWDER, - "Cobalt II Nitrate").setName("Cobalt(II)Nitrate") - .addDustItems() - .setRGB(170, 0, 0) - .setColor(Dyes.dyeRed) - .setMeltingPoint(373) - .setMaterialList( - new MaterialStack(Materials.Cobalt, 1), - new MaterialStack(Materials.Nitrogen, 2), - new MaterialStack(Materials.Oxygen, 6)) - .constructMaterial(); // Co(NO3)2 + .addDustItems() + .addMetalItems() + .addGearItems() + .setRGB(240, 240, 120) + .setColor(Dyes.dyeYellow) + .constructMaterial(); + public static Materials TerephthalicAcid = new MaterialBuilder(764, TextureSet.SET_FLUID, "Terephthalic Acid") + .setName("TerephthalicAcid") + .addCell() + .addFluid() + .setRGB(255, 255, 255) + .setColor(Dyes.dyeWhite) + .setMeltingPoint(480) + .setMaterialList( + new MaterialStack(Materials.Carbon, 8L), + new MaterialStack(Materials.Hydrogen, 6), + new MaterialStack(Materials.Oxygen, 4)) + .constructMaterial(); // C9H6O6 + public static Materials IIIDimethylbenzene = new MaterialBuilder(763, TextureSet.SET_FLUID, "1,3-Dimethylbenzen") + .addCell() + .addFluid() + .setRGB(112, 146, 74) + .setColor(Dyes.dyeLime) + .setMeltingPoint(225) + .setMaterialList(new MaterialStack(Materials.Carbon, 8), new MaterialStack(Materials.Hydrogen, 10)) + .addElectrolyzerRecipe() + .constructMaterial(); // C8H10 + public static Materials IVDimethylbenzene = new MaterialBuilder(762, TextureSet.SET_FLUID, "1,4-Dimethylbenzen") + .addCell() + .addFluid() + .setRGB(122, 136, 84) + .setColor(Dyes.dyeLime) + .setMeltingPoint(286) + .setMaterialList(new MaterialStack(Materials.Carbon, 8), new MaterialStack(Materials.Hydrogen, 10)) + .addElectrolyzerRecipe() + .constructMaterial(); // C8H10 + public static Materials CobaltIINaphthenate = new MaterialBuilder(761, TextureSet.SET_DULL, "Cobalt II Naphthenate") + .setName("Cobalt(II)Naphthenate") + .addDustItems() + .setRGB(143, 95, 39) + .setColor(Dyes.dyeBrown) + .setMeltingPoint(413) + .setMaterialList( + new MaterialStack(Materials.Cobalt, 1), + new MaterialStack(Materials.Carbon, 22), + new MaterialStack(Materials.Hydrogen, 14), + new MaterialStack(Materials.Oxygen, 4)) + .constructMaterial(); // CoC22H14O4 + public static Materials NaphthenicAcid = new MaterialBuilder(760, TextureSet.SET_FLUID, "Naphthenic Acid") + .setName("NaphthenicAcid") + .addCell() + .addFluid() + .setRGB(255, 255, 255) + .setColor(Dyes.dyeWhite) + .setFuelType(MaterialBuilder.SEMIFLUID) + .setFuelPower(80) + .constructMaterial(); + public static Materials CobaltIIHydroxide = new MaterialBuilder(759, TextureSet.SET_POWDER, "Cobalt II Hydroxide") + .setName("CobaltIIHydroxide") + .addDustItems() + .setRGB(229, 140, 239) + .setColor(Dyes.dyePurple) + .setMeltingPoint(441) + .setMaterialList( + new MaterialStack(Materials.Cobalt, 1), + new MaterialStack(Materials.Hydrogen, 2), + new MaterialStack(Materials.Oxygen, 2)) + .constructMaterial(); // CoH2O2 + public static Materials CobaltIIAcetate = new MaterialBuilder(758, TextureSet.SET_POWDER, "Cobalt II Acetate") + .setName("Cobalt(II)Acetate") + .addDustItems() + .setRGB(219, 162, 229) + .setColor(Dyes.dyePurple) + .setMeltingPoint(413) + .setMaterialList( + new MaterialStack(Materials.Carbon, 4L), + new MaterialStack(Materials.Hydrogen, 6), + new MaterialStack(Materials.Cobalt, 1), + new MaterialStack(Materials.Oxygen, 4)) + .constructMaterial(); // C4H6CoO4 + public static Materials CobaltIINitrate = new MaterialBuilder(757, TextureSet.SET_POWDER, "Cobalt II Nitrate") + .setName("Cobalt(II)Nitrate") + .addDustItems() + .setRGB(170, 0, 0) + .setColor(Dyes.dyeRed) + .setMeltingPoint(373) + .setMaterialList( + new MaterialStack(Materials.Cobalt, 1), + new MaterialStack(Materials.Nitrogen, 2), + new MaterialStack(Materials.Oxygen, 6)) + .constructMaterial(); // Co(NO3)2 public static Materials OrganorhodiumCatalyst = new MaterialBuilder( - 756, - TextureSet.SET_POWDER, - "Organorhodium Catalyst").setName("OrganorhodiumCatalyst") - .addDustItems() - .setRGB(170, 0, 0) - .setColor(Dyes.dyeRed) - .setMeltingPoint(373) - .setMaterialList( - new MaterialStack(Materials.Cobalt, 1), - new MaterialStack(Materials.NitricAcid, 2)) - .constructMaterial(); // RhHCO(P(C6H5)3)3 - public static Materials SodiumBorohydride = new MaterialBuilder( - 755, - TextureSet.SET_POWDER, - "Sodium Borohydride").setName("SodiumBorohydride") - .addDustItems() - .setRGB(255, 255, 255) - .setColor(Dyes.dyeWhite) - .setMeltingPoint(673) - .setMaterialList( - new MaterialStack(Materials.Sodium, 1), - new MaterialStack(Materials.Boron, 1), - new MaterialStack(Materials.Hydrogen, 4)) - .constructMaterial(); // NaBH4 - public static Materials RhodiumChloride = new MaterialBuilder( - 754, - TextureSet.SET_POWDER, - "Rhodium Chloride").setName("RhodiumChloride") - .addDustItems() - .setRGB(128, 0, 0) - .setColor(Dyes.dyeRed) - .setMeltingPoint(723) - .constructMaterial(); // RHCL3 - public static Materials Triphenylphosphene = new MaterialBuilder( - 753, - TextureSet.SET_POWDER, - "Triphenylphosphine").setName("Triphenylphosphene") - .addDustItems() - .setRGB(255, 255, 255) - .setColor(Dyes.dyeWhite) - .setMeltingPoint(353) - .setMaterialList( - new MaterialStack(Materials.Carbon, 18L), - new MaterialStack(Materials.Hydrogen, 15L), - new MaterialStack(Materials.Phosphorus, 1L)) - .constructMaterial(); // C18H15P + 756, + TextureSet.SET_POWDER, + "Organorhodium Catalyst").setName("OrganorhodiumCatalyst") + .addDustItems() + .setRGB(170, 0, 0) + .setColor(Dyes.dyeRed) + .setMeltingPoint(373) + .setMaterialList(new MaterialStack(Materials.Cobalt, 1), new MaterialStack(Materials.NitricAcid, 2)) + .constructMaterial(); // RhHCO(P(C6H5)3)3 + public static Materials SodiumBorohydride = new MaterialBuilder(755, TextureSet.SET_POWDER, "Sodium Borohydride") + .setName("SodiumBorohydride") + .addDustItems() + .setRGB(255, 255, 255) + .setColor(Dyes.dyeWhite) + .setMeltingPoint(673) + .setMaterialList( + new MaterialStack(Materials.Sodium, 1), + new MaterialStack(Materials.Boron, 1), + new MaterialStack(Materials.Hydrogen, 4)) + .constructMaterial(); // NaBH4 + public static Materials RhodiumChloride = new MaterialBuilder(754, TextureSet.SET_POWDER, "Rhodium Chloride") + .setName("RhodiumChloride") + .addDustItems() + .setRGB(128, 0, 0) + .setColor(Dyes.dyeRed) + .setMeltingPoint(723) + .constructMaterial(); // RHCL3 + public static Materials Triphenylphosphene = new MaterialBuilder(753, TextureSet.SET_POWDER, "Triphenylphosphine") + .setName("Triphenylphosphene") + .addDustItems() + .setRGB(255, 255, 255) + .setColor(Dyes.dyeWhite) + .setMeltingPoint(353) + .setMaterialList( + new MaterialStack(Materials.Carbon, 18L), + new MaterialStack(Materials.Hydrogen, 15L), + new MaterialStack(Materials.Phosphorus, 1L)) + .constructMaterial(); // C18H15P public static Materials PhosphorusTrichloride = new MaterialBuilder( - 752, - TextureSet.SET_FLUID, - "Phosphorus Trichloride").setName("PhosphorusTrichloride") - .addCell() - .addFluid() - .setRGB(255, 255, 255) - .setColor(Dyes.dyeWhite) - .setMeltingPoint(179) - .setMaterialList( - new MaterialStack(Materials.Phosphorus, 1L), - new MaterialStack(Materials.Chlorine, 3L)) - .constructMaterial(); // PCL3 - public static Materials SodiumHydride = new MaterialBuilder( - 751, - TextureSet.SET_POWDER, - "Sodium Hydride").setName("SodiumHydride") - .addDustItems() - .setRGB(192, 192, 192) - .setColor(Dyes.dyeLightGray) - .setMeltingPoint(911) - .setMaterialList( - new MaterialStack(Materials.Sodium, 1L), - new MaterialStack(Materials.Hydrogen, 1L)) - .constructMaterial(); // NaH - public static Materials TrimethylBorate = new MaterialBuilder( - 750, - TextureSet.SET_FLUID, - "Trimethyl Borate").setName("TrimethylBorate") - .addCell() - .addFluid() - .setRGB(255, 255, 255) - .setColor(Dyes.dyeWhite) - .setMeltingPoint(239) - .setMaterialList( - new MaterialStack(Materials.Carbon, 3L), - new MaterialStack(Materials.Hydrogen, 9L), - new MaterialStack(Materials.Boron, 1L), - new MaterialStack(Materials.Oxygen, 3L)) - .constructMaterial(); // C3H9BO3 - public static Materials SodiumMethoxide = new MaterialBuilder( - 749, - TextureSet.SET_POWDER, - "Sodium Methoxide").setName("SodiumMethoxide") - .addDustItems() - .setRGB(255, 255, 255) - .setColor(Dyes.dyeWhite) - .setMeltingPoint(400) - .setMaterialList( - new MaterialStack(Materials.Carbon, 1L), - new MaterialStack(Materials.Hydrogen, 3L), - new MaterialStack(Materials.Oxygen, 1L), - new MaterialStack(Materials.Sodium, 1L)) - .constructMaterial(); // CH3NaO + 752, + TextureSet.SET_FLUID, + "Phosphorus Trichloride").setName("PhosphorusTrichloride") + .addCell() + .addFluid() + .setRGB(255, 255, 255) + .setColor(Dyes.dyeWhite) + .setMeltingPoint(179) + .setMaterialList(new MaterialStack(Materials.Phosphorus, 1L), new MaterialStack(Materials.Chlorine, 3L)) + .constructMaterial(); // PCL3 + public static Materials SodiumHydride = new MaterialBuilder(751, TextureSet.SET_POWDER, "Sodium Hydride") + .setName("SodiumHydride") + .addDustItems() + .setRGB(192, 192, 192) + .setColor(Dyes.dyeLightGray) + .setMeltingPoint(911) + .setMaterialList(new MaterialStack(Materials.Sodium, 1L), new MaterialStack(Materials.Hydrogen, 1L)) + .constructMaterial(); // NaH + public static Materials TrimethylBorate = new MaterialBuilder(750, TextureSet.SET_FLUID, "Trimethyl Borate") + .setName("TrimethylBorate") + .addCell() + .addFluid() + .setRGB(255, 255, 255) + .setColor(Dyes.dyeWhite) + .setMeltingPoint(239) + .setMaterialList( + new MaterialStack(Materials.Carbon, 3L), + new MaterialStack(Materials.Hydrogen, 9L), + new MaterialStack(Materials.Boron, 1L), + new MaterialStack(Materials.Oxygen, 3L)) + .constructMaterial(); // C3H9BO3 + public static Materials SodiumMethoxide = new MaterialBuilder(749, TextureSet.SET_POWDER, "Sodium Methoxide") + .setName("SodiumMethoxide") + .addDustItems() + .setRGB(255, 255, 255) + .setColor(Dyes.dyeWhite) + .setMeltingPoint(400) + .setMaterialList( + new MaterialStack(Materials.Carbon, 1L), + new MaterialStack(Materials.Hydrogen, 3L), + new MaterialStack(Materials.Oxygen, 1L), + new MaterialStack(Materials.Sodium, 1L)) + .constructMaterial(); // CH3NaO // H3RhCl6 diff --git a/src/main/java/gregtech/api/enums/MaterialsOreAlum.java b/src/main/java/gregtech/api/enums/MaterialsOreAlum.java index 12c03396fc..270d794f94 100644 --- a/src/main/java/gregtech/api/enums/MaterialsOreAlum.java +++ b/src/main/java/gregtech/api/enums/MaterialsOreAlum.java @@ -2,89 +2,73 @@ package gregtech.api.enums; public class MaterialsOreAlum { - public static Materials BauxiteSlurry = new MaterialBuilder( - 409, - TextureSet.SET_FLUID, - "Bauxite Slurry").setName("BauxiteSlurry") - .addCell() - .addFluid() - .setRGB(37, 67, 168) - .setMeltingPoint(295) - .setColor(Dyes.dyeBlue) - .constructMaterial(); + public static Materials BauxiteSlurry = new MaterialBuilder(409, TextureSet.SET_FLUID, "Bauxite Slurry") + .setName("BauxiteSlurry") + .addCell() + .addFluid() + .setRGB(37, 67, 168) + .setMeltingPoint(295) + .setColor(Dyes.dyeBlue) + .constructMaterial(); public static Materials HeatedBauxiteSlurry = new MaterialBuilder( - 410, - TextureSet.SET_FLUID, - "Heated Bauxite Slurry").setName("HeadedBauxiteSlurry") - .addCell() - .addFluid() - .setRGB(55, 92, 212) - .setLiquidTemperature(533) - .setMeltingPoint(295) - .setColor(Dyes.dyeBlue) - .constructMaterial(); - public static Materials SluiceJuice = new MaterialBuilder( - 411, - TextureSet.SET_FLUID, - "Sluice Juice").setName("SluiceJuice") - .addCell() - .addFluid() - .setRGB(92, 60, 36) - .setLiquidTemperature(295) - .setMeltingPoint(295) - .setColor(Dyes.dyeGray) - .constructMaterial(); - public static Materials SluiceSand = new MaterialBuilder( - 412, - TextureSet.SET_FINE, - "Sluice Sand").setName("SluiceSand") - .addDustItems() - .setRGB(165, 165, 120) - .setColor(Dyes.dyeGray) - .constructMaterial(); - public static Materials BauxiteSlag = new MaterialBuilder( - 413, - TextureSet.SET_FINE, - "Bauxite Slag").setName("BauxiteSlag") - .addDustItems() - .setRGB(110, 31, 31) - .setColor(Dyes.dyeRed) - .constructMaterial(); - public static Materials IlmeniteSlag = new MaterialBuilder( - 414, - TextureSet.SET_FINE, - "Ilmenite Slag").setName("IlmeniteSlag") - .addDustItems() - .setRGB(163, 38, 38) - .setColor(Dyes.dyeBrown) - .constructMaterial(); - public static Materials GreenSapphireJuice = new MaterialBuilder( - 415, - TextureSet.SET_FLUID, - "Green Sapphire Juice").setName("GreenSapphireJuice") - .addCell() - .addFluid() - .setRGB(100, 200, 130) - .setColor(Dyes.dyeGreen) - .constructMaterial(); - public static Materials SapphireJuice = new MaterialBuilder( - 416, - TextureSet.SET_FLUID, - "Sapphire Juice").setName("SapphireJuice") - .addCell() - .addFluid() - .setRGB(100, 100, 200) - .setColor(Dyes.dyeBlue) - .constructMaterial(); - public static Materials RubyJuice = new MaterialBuilder( - 417, - TextureSet.SET_FLUID, - "Ruby Juice").setName("RubyJuice") - .addCell() - .addFluid() - .setRGB(255, 100, 100) - .setColor(Dyes.dyeRed) - .constructMaterial(); + 410, + TextureSet.SET_FLUID, + "Heated Bauxite Slurry").setName("HeadedBauxiteSlurry") + .addCell() + .addFluid() + .setRGB(55, 92, 212) + .setLiquidTemperature(533) + .setMeltingPoint(295) + .setColor(Dyes.dyeBlue) + .constructMaterial(); + public static Materials SluiceJuice = new MaterialBuilder(411, TextureSet.SET_FLUID, "Sluice Juice") + .setName("SluiceJuice") + .addCell() + .addFluid() + .setRGB(92, 60, 36) + .setLiquidTemperature(295) + .setMeltingPoint(295) + .setColor(Dyes.dyeGray) + .constructMaterial(); + public static Materials SluiceSand = new MaterialBuilder(412, TextureSet.SET_FINE, "Sluice Sand") + .setName("SluiceSand") + .addDustItems() + .setRGB(165, 165, 120) + .setColor(Dyes.dyeGray) + .constructMaterial(); + public static Materials BauxiteSlag = new MaterialBuilder(413, TextureSet.SET_FINE, "Bauxite Slag") + .setName("BauxiteSlag") + .addDustItems() + .setRGB(110, 31, 31) + .setColor(Dyes.dyeRed) + .constructMaterial(); + public static Materials IlmeniteSlag = new MaterialBuilder(414, TextureSet.SET_FINE, "Ilmenite Slag") + .setName("IlmeniteSlag") + .addDustItems() + .setRGB(163, 38, 38) + .setColor(Dyes.dyeBrown) + .constructMaterial(); + public static Materials GreenSapphireJuice = new MaterialBuilder(415, TextureSet.SET_FLUID, "Green Sapphire Juice") + .setName("GreenSapphireJuice") + .addCell() + .addFluid() + .setRGB(100, 200, 130) + .setColor(Dyes.dyeGreen) + .constructMaterial(); + public static Materials SapphireJuice = new MaterialBuilder(416, TextureSet.SET_FLUID, "Sapphire Juice") + .setName("SapphireJuice") + .addCell() + .addFluid() + .setRGB(100, 100, 200) + .setColor(Dyes.dyeBlue) + .constructMaterial(); + public static Materials RubyJuice = new MaterialBuilder(417, TextureSet.SET_FLUID, "Ruby Juice") + .setName("RubyJuice") + .addCell() + .addFluid() + .setRGB(255, 100, 100) + .setColor(Dyes.dyeRed) + .constructMaterial(); /** * called by Materials. Can be safely called multiple times. exists to allow Materials ensure this class is diff --git a/src/main/java/gregtech/api/enums/Mods.java b/src/main/java/gregtech/api/enums/Mods.java index fa0b9ed910..cb380cca48 100644 --- a/src/main/java/gregtech/api/enums/Mods.java +++ b/src/main/java/gregtech/api/enums/Mods.java @@ -302,7 +302,7 @@ public enum Mods { public String getResourcePath(String... path) { return this.getResourceLocation(path) - .toString(); + .toString(); } public ResourceLocation getResourceLocation(String... path) { diff --git a/src/main/java/gregtech/api/enums/OrePrefixes.java b/src/main/java/gregtech/api/enums/OrePrefixes.java index 8d3201f6ca..3e5f694d2a 100644 --- a/src/main/java/gregtech/api/enums/OrePrefixes.java +++ b/src/main/java/gregtech/api/enums/OrePrefixes.java @@ -27,310 +27,310 @@ public enum OrePrefixes { @Deprecated pulp("Pulps", "", "", false, false, false, false, false, false, false, false, false, false, - B[0] | B[1] | B[2] | B[3], -1, 64, -1), + B[0] | B[1] | B[2] | B[3], -1, 64, -1), @Deprecated leaves("Leaves", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, -1), @Deprecated sapling("Saplings", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, -1), @Deprecated itemDust("Dusts", "", "", false, false, false, false, false, false, false, false, false, false, - B[0] | B[1] | B[2] | B[3], -1, 64, -1), + B[0] | B[1] | B[2] | B[3], -1, 64, -1), /** In case of an End-Ores Mod. Ore -> Material is a Oneway Operation! */ oreBlackgranite("Black Granite Ores", "Granite ", " Ore", true, true, false, false, false, true, false, false, - false, true, B[3], -1, 64, -1), + false, true, B[3], -1, 64, -1), /** In case of an End-Ores Mod. Ore -> Material is a Oneway Operation! */ oreRedgranite("Red Granite Ores", "Granite ", " Ore", true, true, false, false, false, true, false, false, false, - true, B[3], -1, 64, -1), + true, B[3], -1, 64, -1), /** In case of an End-Ores Mod. Ore -> Material is a Oneway Operation! */ oreMarble("Marble Ores", "Marble ", " Ore", true, true, false, false, false, true, false, false, false, true, B[3], - -1, 64, -1), + -1, 64, -1), /** In case of an End-Ores Mod. Ore -> Material is a Oneway Operation! */ oreBasalt("Basalt Ores", "Basalt ", " Ore", true, true, false, false, false, true, false, false, false, true, B[3], - -1, 64, -1), + -1, 64, -1), /** Prefix of the Nether-Ores Mod. Causes Ores to double. Ore -> Material is a Oneway Operation! */ oreNetherrack("Netherrack Ores", "Nether ", " Ore", true, true, false, false, false, true, false, false, false, - true, B[3], -1, 64, -1), + true, B[3], -1, 64, -1), /** Prefix of the Nether-Ores Mod. Causes Ores to double. Ore -> Material is a Oneway Operation! */ oreNether("Nether Ores", "Nether ", " Ore", true, true, false, false, false, true, false, false, false, true, B[3], - -1, 64, -1), + -1, 64, -1), @Deprecated denseore("Dense Ores", "", "", false, false, false, false, false, true, false, false, false, true, B[3], -1, 64, - -1), + -1), /** Prefix of the Dense-Ores Mod. Causes Ores to double. Ore -> Material is a Oneway Operation! */ oreDense("Dense Ores", "Dense ", " Ore", true, true, false, false, false, true, false, false, false, true, B[3], -1, - 64, -1), + 64, -1), /** Prefix of TFC */ oreRich("Rich Ores", "Rich ", " Ore", true, true, false, false, false, true, false, false, false, true, B[3], -1, - 64, -1), + 64, -1), /** Prefix of TFC */ oreNormal("Normal Ores", "Normal ", " Ore", true, true, false, false, false, true, false, false, false, true, B[3], - -1, 64, -1), + -1, 64, -1), /** Prefix of Railcraft. */ oreSmall("Small Ores", "Small ", " Ore", true, true, false, false, false, true, false, false, false, true, B[3], -1, - 64, 67), + 64, 67), /** Prefix of Railcraft. */ orePoor("Poor Ores", "Poor ", " Ore", true, true, false, false, false, true, false, false, false, true, B[3], -1, - 64, -1), + 64, -1), /** In case of an End-Ores Mod. Ore -> Material is a Oneway Operation! */ oreEndstone("Endstone Ores", "End ", " Ore", true, true, false, false, false, true, false, false, false, true, B[3], - -1, 64, -1), + -1, 64, -1), /** In case of an End-Ores Mod. Ore -> Material is a Oneway Operation! */ oreEnd("End Ores", "End ", " Ore", true, true, false, false, false, true, false, false, false, true, B[3], -1, 64, - -1), + -1), @Deprecated oreGem("Ores", "", "", false, false, false, false, false, true, false, false, false, true, B[3], -1, 64, -1), /** Regular Ore Prefix. Ore -> Material is a Oneway Operation! Introduced by Eloraam */ ore("Ores", "", " Ore", true, true, false, false, false, true, false, false, false, true, B[3], -1, 64, 68), crushedCentrifuged("Centrifuged Ores", "Centrifuged ", " Ore", true, true, false, false, false, false, false, true, - false, true, B[3], -1, 64, 7), + false, true, B[3], -1, 64, 7), crushedPurified("Purified Ores", "Purified ", " Ore", true, true, false, false, false, false, false, true, false, - true, B[3], -1, 64, 6), + true, B[3], -1, 64, 6), crushed("Crushed Ores", "Crushed ", " Ore", true, true, false, false, false, false, false, true, false, true, B[3], - -1, 64, 5), + -1, 64, 5), /** Introduced by Mekanism */ shard("Crystallised Shards", "", "", true, true, false, false, false, false, false, false, false, true, B[3], -1, - 64, -1), + 64, -1), clump("Clumps", "", "", true, true, false, false, false, false, false, false, false, true, B[3], -1, 64, -1), reduced("Reduced Gravels", "", "", true, true, false, false, false, false, false, false, false, true, B[3], -1, 64, - -1), + -1), crystalline("Crystallised Metals", "", "", true, true, false, false, false, false, false, false, false, true, B[3], - -1, 64, -1), + -1, 64, -1), cleanGravel("Clean Gravels", "", "", true, true, false, false, false, false, false, false, false, true, B[3], -1, - 64, -1), + 64, -1), dirtyGravel("Dirty Gravels", "", "", true, true, false, false, false, false, false, false, false, true, B[3], -1, - 64, -1), + 64, -1), /** A quintuple Ingot. */ ingotQuintuple("5x Ingots", "Quintuple ", " Ingot", true, true, false, false, false, false, true, true, false, - false, B[1], M * 5, 64, 16), + false, B[1], M * 5, 64, 16), /** A quadruple Ingot. */ ingotQuadruple("4x Ingots", "Quadruple ", " Ingot", true, true, false, false, false, false, true, true, false, - false, B[1], M * 4, 64, 15), + false, B[1], M * 4, 64, 15), @Deprecated ingotQuad("4x Ingots", "Quadruple ", " Ingot", false, false, false, false, false, false, false, false, false, false, - B[1], -1, 64, 15), + B[1], -1, 64, 15), /** A triple Ingot. */ ingotTriple("3x Ingots", "Triple ", " Ingot", true, true, false, false, false, false, true, false, false, false, - B[1], M * 3, 64, 14), + B[1], M * 3, 64, 14), /** A double Ingot. Introduced by TerraFirmaCraft */ ingotDouble("2x Ingots", "Double ", " Ingot", true, true, false, false, false, false, true, true, false, false, - B[1], M * 2, 64, 13), + B[1], M * 2, 64, 13), /** A hot Ingot, which has to be cooled down by a Vacuum Freezer. */ ingotHot("Hot Ingots", "Hot ", " Ingot", true, true, false, false, false, false, false, true, false, false, B[1], - M * 1, 64, 12), + M * 1, 64, 12), /** A regular Ingot. Introduced by Eloraam */ ingot("Ingots", "", " Ingot", true, true, false, false, false, false, false, true, false, false, B[1], M * 1, 64, - 11), + 11), /** A regular Gem worth one small Dust. Introduced by TerraFirmaCraft */ gemChipped("Chipped Gemstones", "Chipped ", "", true, true, true, false, false, false, true, true, false, false, - B[2], M / 4, 64, 59), + B[2], M / 4, 64, 59), /** A regular Gem worth two small Dusts. Introduced by TerraFirmaCraft */ gemFlawed("Flawed Gemstones", "Flawed ", "", true, true, true, false, false, false, true, true, false, false, B[2], - M / 2, 64, 60), + M / 2, 64, 60), /** A regular Gem worth two Dusts. Introduced by TerraFirmaCraft */ gemFlawless("Flawless Gemstones", "Flawless ", "", true, true, true, false, false, false, true, true, false, false, - B[2], M * 2, 64, 61), + B[2], M * 2, 64, 61), /** A regular Gem worth four Dusts. Introduced by TerraFirmaCraft */ gemExquisite("Exquisite Gemstones", "Exquisite ", "", true, true, true, false, false, false, true, true, false, - false, B[2], M * 4, 64, 62), + false, B[2], M * 4, 64, 62), /** A regular Gem worth one Dust. Introduced by Eloraam */ gem("Gemstones", "", "", true, true, true, false, false, false, true, true, false, false, B[2], M * 1, 64, 8), @Deprecated dustDirty("Impure Dusts", "", "", false, false, false, false, false, false, false, false, false, true, B[3], -1, 64, - 3), + 3), /** 1/9th of a Dust. */ dustTiny("Tiny Dusts", "Tiny Pile of ", " Dust", true, true, false, false, false, false, false, true, false, false, - B[0] | B[1] | B[2] | B[3], M / 9, 64, 0), + B[0] | B[1] | B[2] | B[3], M / 9, 64, 0), /** 1/4th of a Dust. */ dustSmall("Small Dusts", "Small Pile of ", " Dust", true, true, false, false, false, false, false, true, false, - false, B[0] | B[1] | B[2] | B[3], M / 4, 64, 1), + false, B[0] | B[1] | B[2] | B[3], M / 4, 64, 1), /** Dust with impurities. 1 Unit of Main Material and 1/9 - 1/4 Unit of secondary Material */ dustImpure("Impure Dusts", "Impure Pile of ", " Dust", true, true, false, false, false, false, false, true, false, - true, B[3], M * 1, 64, 3), + true, B[3], M * 1, 64, 3), dustRefined("Refined Dusts", "Refined Pile of ", " Dust", true, true, false, false, false, false, false, true, - false, true, B[3], M * 1, 64, 2), + false, true, B[3], M * 1, 64, 2), dustPure("Purified Dusts", "Purified Pile of ", " Dust", true, true, false, false, false, false, false, true, false, - true, B[3], M * 1, 64, 4), + true, B[3], M * 1, 64, 4), /** Pure Dust worth of one Ingot or Gem. Introduced by Alblaka. */ dust("Dusts", "", " Dust", true, true, false, false, false, false, false, true, false, false, - B[0] | B[1] | B[2] | B[3], M * 1, 64, 2), + B[0] | B[1] | B[2] | B[3], M * 1, 64, 2), /** A Nugget. Introduced by Eloraam */ nugget("Nuggets", "", " Nugget", true, true, false, false, false, false, false, true, false, false, B[1], M / 9, 64, - 9), + 9), /** Special Alloys have this prefix. */ plateAlloy("Alloy Plates", "", "", true, false, false, false, false, false, false, false, false, false, B[1], -1, - 64, 17), + 64, 17), plateSteamcraft("Steamcraft Plates", "", "", false, false, false, false, false, false, false, false, false, false, - B[1], -1, 64, 17), + B[1], -1, 64, 17), /** 9 Plates combined in one Item. */ plateDense("Dense Plates", "Dense ", " Plate", true, true, false, false, false, false, true, true, false, false, - B[1], M * 9, 64, 22), + B[1], M * 9, 64, 22), plateQuintuple("5x Plates", "Quintuple ", " Plate", true, true, false, false, false, false, true, true, false, - false, B[1], M * 5, 64, 21), + false, B[1], M * 5, 64, 21), plateQuadruple("4x Plates", "Quadruple ", " Plate", true, true, false, false, false, false, true, true, false, - false, B[1], M * 4, 64, 20), + false, B[1], M * 4, 64, 20), @Deprecated plateQuad("4x Plates", "", "", false, false, false, false, false, false, false, false, false, false, B[1], -1, 64, - 20), + 20), plateTriple("3x Plates", "Triple ", " Plate", true, true, false, false, false, false, true, true, false, false, - B[1], M * 3, 64, 19), + B[1], M * 3, 64, 19), plateDouble("2x Plates", "Double ", " Plate", true, true, false, false, false, false, true, true, false, false, - B[1], M * 2, 64, 18), + B[1], M * 2, 64, 18), /** Regular Plate made of one Ingot/Dust. Introduced by Calclavia */ plate("Plates", "", " Plate", true, true, false, false, false, false, true, true, false, false, B[1] | B[2], M * 1, - 64, 17), + 64, 17), /** Casing made of 1/2 Ingot/Dust */ itemCasing("Casings", "", " Casing", true, true, false, false, false, false, true, true, false, false, B[1] | B[2], - M / 2, 64, 10), + M / 2, 64, 10), /** Foil made of 1/4 Ingot/Dust. */ foil("Foils", "", " Foil", true, true, false, false, false, false, true, true, false, false, B[1], M / 4, 64, 29), /** Stick made of an Ingot. */ stickLong("Long Sticks/Rods", "Long ", " Rod", true, true, false, false, false, false, true, true, false, false, - B[1] | B[2], M * 1, 64, 54), + B[1] | B[2], M * 1, 64, 54), /** Stick made of half an Ingot. Introduced by Eloraam */ stick("Sticks/Rods", "", " Rod", true, true, false, false, false, false, true, true, false, false, B[1] | B[2], - M / 2, 64, 23), + M / 2, 64, 23), /** consisting out of one Nugget. */ round("Rounds", "", " Round", true, true, false, false, false, false, true, true, false, false, B[1], M / 9, 64, - 25), + 25), /** consisting out of 1/8 Ingot or 1/4 Stick. */ bolt("Bolts", "", " Bolt", true, true, false, false, false, false, true, true, false, false, B[1] | B[2], M / 8, 64, - 26), + 26), /** contain dusts */ comb("Combs", "", " Comb", false, false, false, false, false, false, false, true, false, false, B[1] | B[2], M, 64, - 101), + 101), /** consisting out of a Bolt. */ screw("Screws", "", " Screw", true, true, false, false, false, false, true, true, false, false, B[1] | B[2], M / 9, - 64, 27), + 64, 27), /** consisting out of 1/2 Stick. */ ring("Rings", "", " Ring", true, true, false, false, false, false, true, true, false, false, B[1], M / 4, 64, 28), /** consisting out of 1 Fine Wire. */ springSmall("Small Springs", "Small ", " Spring", true, true, false, false, false, false, true, true, false, false, - B[1], M / 4, 64, 55), + B[1], M / 4, 64, 55), /** consisting out of 2 Sticks. */ spring("Springs", "", " Spring", true, true, false, false, false, false, true, true, false, false, B[1], M * 1, 64, - 56), + 56), /** consisting out of 1/8 Ingot or 1/4 Wire. */ wireFine("Fine Wires", "Fine ", " Wire", true, true, false, false, false, false, true, true, false, false, B[1], - M / 8, 64, 51), + M / 8, 64, 51), /** consisting out of 4 Plates, 1 Ring and 1 Screw. */ rotor("Rotors", "", " Rotor", true, true, false, false, false, false, true, true, false, false, B[7], M * 4 + M / 4, - 64, 53), + 64, 53), gearGtSmall("Small Gears", "Small ", " Gear", true, true, false, false, false, false, true, true, false, false, - B[7], M * 1, 64, 52), + B[7], M * 1, 64, 52), /** Introduced by me because BuildCraft has ruined the gear Prefix... */ gearGt("Gears", "", " Gear", true, true, false, false, false, false, true, true, false, false, B[7], M * 4, 16, 63), /** 3/4 of a Plate or Gem used to shape a Lense. Normally only used on Transparent Materials. */ lens("Lenses", "", " Lens", true, true, false, false, false, false, true, true, false, false, B[2], (M * 3) / 4, 64, - 24), + 24), /** consisting out of 16 Dusts. */ crateGtDust("Crates of Dust", "Crate of ", " Dust", true, true, false, true, false, false, false, true, false, - false, B[0] | B[1] | B[2] | B[3], -1, 64, 96), + false, B[0] | B[1] | B[2] | B[3], -1, 64, 96), /** consisting out of 16 Plates. */ crateGtPlate("Crates of Plates", "Crate of ", " Plate", true, true, false, true, false, false, false, true, false, - false, B[1] | B[2], -1, 64, 99), + false, B[1] | B[2], -1, 64, 99), /** consisting out of 16 Ingots. */ crateGtIngot("Crates of Ingots", "Crate of ", " Ingot", true, true, false, true, false, false, false, true, false, - false, B[1], -1, 64, 97), + false, B[1], -1, 64, 97), /** consisting out of 16 Gems. */ crateGtGem("Crates of Gems", "Crate of ", " Gem", true, true, false, true, false, false, false, true, false, false, - B[2], -1, 64, 98), + B[2], -1, 64, 98), /** Hot Cell full of Plasma, which can be used in the Plasma Generator. */ cellPlasma("Cells of Plasma", "", " Plasma Cell", true, true, true, true, false, false, false, true, false, false, - B[5], M * 1, 64, 31), + B[5], M * 1, 64, 31), /** Hot Cell full of molten stuff, which can be used in the Plasma Generator. */ cellMolten("Cells of Molten stuff", "Molten ", " Cell", true, true, true, true, false, false, false, true, false, - false, 0, M * 1, 64, 31), + false, 0, M * 1, 64, 31), /** Regular Gas/Fluid Cell. Introduced by Calclavia */ cell("Cells", "", " Cell", true, true, true, true, false, false, true, true, false, false, B[4] | B[8], M * 1, 64, - 30), + 30), /** A vanilla Iron Bucket filled with the Material. */ bucket("Buckets", "", " Bucket", true, true, true, true, false, false, true, false, false, false, B[4] | B[8], - M * 1, 64, -1), + M * 1, 64, -1), /** An Iguana Tweaks Clay Bucket filled with the Material. */ bucketClay("Clay Buckets", "", " Clay Bucket", true, true, true, true, false, false, true, false, false, false, - B[4] | B[8], M * 1, 64, -1), + B[4] | B[8], M * 1, 64, -1), /** Glass Bottle containing a Fluid. */ bottle("Bottles", "", " Bottle", true, true, true, true, false, false, false, false, false, false, B[4] | B[8], -1, - 64, -1), + 64, -1), capsule("Capsules", "", " Capsule", false, true, true, true, false, false, false, false, false, false, B[4] | B[8], - M * 1, 64, -1), + M * 1, 64, -1), crystal("Crystals", "", " Crystal", false, true, false, false, false, false, true, false, false, false, B[2], M * 1, - 64, -1), + 64, -1), bulletGtSmall("Small Bullets", "Small ", " Bullet", true, true, false, false, true, false, true, false, true, false, - B[6] | B[8], M / 9, 64, -1), + B[6] | B[8], M / 9, 64, -1), bulletGtMedium("Medium Bullets", "Medium ", " Bullet", true, true, false, false, true, false, true, false, true, - false, B[6] | B[8], M / 6, 64, -1), + false, B[6] | B[8], M / 6, 64, -1), bulletGtLarge("Large Bullets", "Large ", " Bullet", true, true, false, false, true, false, true, false, true, false, - B[6] | B[8], M / 3, 64, -1), + B[6] | B[8], M / 3, 64, -1), /** Arrow made of 1/4 Ingot/Dust + Wooden Stick. */ arrowGtWood("Regular Arrows", "", " Arrow", true, true, false, false, true, false, true, false, true, false, B[6], - M / 4, 64, 57), + M / 4, 64, 57), /** Arrow made of 1/4 Ingot/Dust + Plastic Stick. */ arrowGtPlastic("Light Arrows", "Light ", " Arrow", true, true, false, false, true, false, true, false, true, false, - B[6], M / 4, 64, 58), + B[6], M / 4, 64, 58), arrow("Arrows", "", "", false, false, true, false, false, false, false, false, true, false, B[6], -1, 64, 57), /** consisting out of 1/4 Ingot. */ toolHeadArrow("Arrow Heads", "", " Arrow Head", true, true, false, false, false, false, true, true, false, false, - B[6], M / 4, 64, 46), + B[6], M / 4, 64, 46), /** consisting out of 2 Ingots. */ toolHeadSword("Sword Blades", "", " Sword Blade", true, true, false, false, false, false, true, true, false, false, - B[6], M * 2, 64, 32), + B[6], M * 2, 64, 32), /** consisting out of 3 Ingots. */ toolHeadPickaxe("Pickaxe Heads", "", " Pickaxe Head", true, true, false, false, false, false, true, true, false, - false, B[6], M * 3, 64, 33), + false, B[6], M * 3, 64, 33), /** consisting out of 1 Ingots. */ toolHeadShovel("Shovel Heads", "", " Shovel Head", true, true, false, false, false, false, true, true, false, false, - B[6], M * 1, 64, 34), + B[6], M * 1, 64, 34), /** consisting out of 1 Ingots. */ toolHeadUniversalSpade("Universal Spade Heads", "", " Universal Spade Head", true, true, false, false, false, false, - true, true, false, false, B[6], M * 1, 64, 43), + true, true, false, false, B[6], M * 1, 64, 43), /** consisting out of 3 Ingots. */ toolHeadAxe("Axe Heads", "", " Axe Head", true, true, false, false, false, false, true, true, false, false, B[6], - M * 3, 64, 35), + M * 3, 64, 35), /** consisting out of 2 Ingots. */ toolHeadHoe("Hoe Heads", "", " Hoe Head", true, true, false, false, false, false, true, true, false, false, B[6], - M * 2, 64, 36), + M * 2, 64, 36), /** consisting out of 3 Ingots. */ toolHeadSense("Sense Blades", "", " Sense Blade", true, true, false, false, false, false, true, true, false, false, - B[6], M * 3, 64, 44), + B[6], M * 3, 64, 44), /** consisting out of 2 Ingots. */ toolHeadFile("File Heads", "", " File Head", true, true, false, false, false, false, true, true, false, false, B[6], - M * 2, 64, 38), + M * 2, 64, 38), /** consisting out of 6 Ingots. */ toolHeadHammer("Hammer Heads", "", " Hammer Head", true, true, false, false, false, false, true, true, false, false, - B[6], M * 6, 64, 37), + B[6], M * 6, 64, 37), /** consisting out of 4 Ingots. */ toolHeadPlow("Plow Heads", "", " Plow Head", true, true, false, false, false, false, true, true, false, false, B[6], - M * 4, 64, 45), + M * 4, 64, 45), /** consisting out of 2 Ingots. */ toolHeadSaw("Saw Blades", "", " Saw Blade", true, true, false, false, false, false, true, true, false, false, B[6], - M * 2, 64, 39), + M * 2, 64, 39), /** consisting out of 4 Ingots. */ toolHeadBuzzSaw("Buzzsaw Blades", "", " Buzzsaw Blade", true, true, false, false, false, false, true, true, false, - false, B[6], M * 4, 64, 48), + false, B[6], M * 4, 64, 48), /** consisting out of 1 Ingots. */ toolHeadScrewdriver("Screwdriver Tips", "", " Screwdriver Tip", true, true, false, false, false, false, true, false, - false, false, B[6], M * 1, 64, 47), + false, false, B[6], M * 1, 64, 47), /** consisting out of 4 Ingots. */ toolHeadDrill("Drill Tips", "", " Drill Tip", true, true, false, false, false, false, true, true, false, false, - B[6], M * 4, 64, 40), + B[6], M * 4, 64, 40), /** consisting out of 2 Ingots. */ toolHeadChainsaw("Chainsaw Tips", "", " Chainsaw Tip", true, true, false, false, false, false, true, true, false, - false, B[6], M * 2, 64, 41), + false, B[6], M * 2, 64, 41), /** consisting out of 4 Ingots. */ toolHeadWrench("Wrench Tips", "", " Wrench Tip", true, true, false, false, false, false, true, true, false, false, - B[6], M * 4, 64, 42), + B[6], M * 4, 64, 42), /** consisting out of 6 Ingots. */ turbineBlade("Turbine Blades", "", " Turbine Blade", true, true, false, false, false, false, true, true, false, - false, B[6], M * 6, 64, 100), + false, B[6], M * 6, 64, 100), /** vanilly Sword */ toolSword("Swords", "", "", false, true, false, false, false, false, true, false, true, false, B[6], M * 2, 1, -1), /** vanilly Pickaxe */ toolPickaxe("Pickaxes", "", "", false, true, false, false, false, false, true, false, true, false, B[6], M * 3, 1, - -1), + -1), /** vanilly Shovel */ toolShovel("Shovels", "", "", false, true, false, false, false, false, true, false, true, false, B[6], M * 1, 1, - -1), + -1), /** vanilly Axe */ toolAxe("Axes", "", "", false, true, false, false, false, false, true, false, true, false, B[6], M * 3, 1, -1), /** vanilly Hoe */ @@ -343,37 +343,37 @@ public enum OrePrefixes { */ tool("Tools", "", "", false, false, false, false, false, false, false, false, true, false, B[6], -1, 1, -1), compressedCobblestone("9^X Compressed Cobblestones", "", "", false, false, false, false, false, false, false, false, - false, false, 0, -1, 64, -1), + false, false, 0, -1, 64, -1), compressedStone("9^X Compressed Stones", "", "", false, false, false, false, false, false, false, false, false, - false, 0, -1, 64, -1), + false, 0, -1, 64, -1), compressedDirt("9^X Compressed Dirt", "", "", false, false, false, false, false, false, false, false, false, false, - 0, -1, 64, -1), + 0, -1, 64, -1), compressedGravel("9^X Compressed Gravel", "", "", false, false, false, false, false, false, false, false, false, - false, 0, -1, 64, -1), + false, 0, -1, 64, -1), compressedSand("9^X Compressed Sand", "", "", false, false, false, false, false, false, false, false, false, false, - 0, -1, 64, -1), + 0, -1, 64, -1), /** Compressed Material, worth 1 Unit. Introduced by Galacticraft */ compressed("Compressed Materials", "Compressed ", "", true, true, false, false, false, false, true, false, false, - false, 0, M * 3, 64, -1), + false, 0, M * 3, 64, -1), glass("Glasses", "", "", false, false, true, false, true, false, false, false, false, false, 0, -1, 64, -1), paneGlass("Glass Panes", "", "", false, false, true, false, false, true, false, false, false, false, 0, -1, 64, -1), blockGlass("Glass Blocks", "", "", false, false, true, false, false, true, false, false, false, false, 0, -1, 64, - -1), + -1), blockWool("Wool Blocks", "", "", false, false, true, false, false, true, false, false, false, false, 0, -1, 64, -1), /** IGNORE */ block_("Random Blocks", "", "", false, false, false, false, false, true, false, false, false, false, 0, -1, 64, -1), /** Storage Block consisting out of 9 Ingots/Gems/Dusts. Introduced by CovertJaguar */ block("Storage Blocks", "Block of ", "", true, true, false, false, false, true, true, false, false, false, 0, M * 9, - 64, 71), + 64, 71), /** Special Prefix used mainly for the Crafting Handler. */ craftingTool("Crafting Tools", "", "", false, false, false, false, false, false, false, false, true, false, 0, -1, - 64, -1), + 64, -1), /** Special Prefix used mainly for the Crafting Handler. */ crafting("Crafting Ingredients", "", "", false, false, false, false, false, false, false, false, false, false, 0, - -1, 64, -1), + -1, 64, -1), /** Special Prefix used mainly for the Crafting Handler. */ craft("Crafting Stuff?", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, - -1), + -1), /** Prefix used for Logs. Usually as "logWood". Introduced by Eloraam */ log("Logs", "", "", false, false, false, false, false, true, false, false, false, false, 0, -1, 64, -1), /** Prefix used for Slabs. Usually as "slabWood" or "slabStone". Introduced by SirSengir */ @@ -392,35 +392,35 @@ public enum OrePrefixes { tree("Tree Parts", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, -1), /** Cobblestone Prefix for all Cobblestones. */ stoneCobble("Cobblestones", "", "", false, false, true, false, false, true, false, false, false, false, 0, -1, 64, - -1), + -1), /** Smoothstone Prefix. */ stoneSmooth("Smoothstones", "", "", false, false, true, false, false, true, false, false, false, false, 0, -1, 64, - -1), + -1), /** Mossy Stone Bricks. */ stoneMossyBricks("mossy Stone Bricks", "", "", false, false, true, false, false, true, false, false, false, false, - 0, -1, 64, -1), + 0, -1, 64, -1), /** Mossy Cobble. */ stoneMossy("Mossy Stones", "", "", false, false, true, false, false, true, false, false, false, false, 0, -1, 64, - -1), + -1), @Deprecated stoneBricksMossy("Mossy Stone Bricks", "", "", false, false, false, false, false, true, false, false, false, false, - 0, -1, 64, -1), + 0, -1, 64, -1), /** Stone Bricks. */ stoneBricks("Stone Bricks", "", "", false, false, true, false, false, true, false, false, false, false, 0, -1, 64, - -1), + -1), @Deprecated stoneBrick("Stone Bricks", "", "", false, false, false, false, false, true, false, false, false, false, 0, -1, 64, - -1), + -1), /** Cracked Bricks. */ stoneCracked("Cracked Stones", "", "", false, false, true, false, false, true, false, false, false, false, 0, -1, - 64, -1), + 64, -1), /** Chiseled Stone. */ stoneChiseled("Chiseled Stones", "", "", false, false, true, false, false, true, false, false, false, false, 0, -1, - 64, -1), + 64, -1), /** Prefix to determine which kind of Rock this is. */ stone("Stones", "", "", false, true, true, false, true, true, false, false, false, false, 0, -1, 64, -1), cobblestone("Cobblestones", "", "", false, true, true, false, false, true, false, false, false, false, 0, -1, 64, - -1), + -1), /** Prefix to determine which kind of Rock this is. */ rock("Rocks", "", "", false, true, true, false, true, true, false, false, false, false, 0, -1, 64, -1), record("Records", "", "", false, false, true, false, false, false, false, false, false, false, 0, -1, 1, -1), @@ -439,69 +439,69 @@ public enum OrePrefixes { dye("Dyes", "", "", false, false, true, false, false, false, false, false, false, false, 0, -1, 64, -1), /** Used for the 16 colors of Stained Clay. Introduced by Forge */ stainedClay("Stained Clays", "", "", false, false, true, false, false, true, false, false, false, false, 0, -1, 64, - -1), + -1), /** vanilly Helmet */ armorHelmet("Helmets", "", "", false, true, false, false, false, false, true, false, true, false, B[6], M * 5, 1, - -1), + -1), /** vanilly Chestplate */ armorChestplate("Chestplates", "", "", false, true, false, false, false, false, true, false, true, false, B[6], - M * 8, 1, -1), + M * 8, 1, -1), /** vanilly Pants */ armorLeggings("Leggings", "", "", false, true, false, false, false, false, true, false, true, false, B[6], M * 7, 1, - -1), + -1), /** vanilly Boots */ armorBoots("Boots", "", "", false, true, false, false, false, false, true, false, true, false, B[6], M * 4, 1, -1), armor("Armor Parts", "", "", false, false, false, false, false, false, false, false, true, false, B[6], -1, 1, -1), frameGt("Frame Boxes", "", "", true, true, false, false, true, false, true, false, false, false, 0, M * 2, 64, 83), pipeTiny("Tiny Pipes", "Tiny ", " Pipe", true, true, false, false, true, false, true, false, false, false, 0, M / 2, - 64, 78), + 64, 78), pipeSmall("Small Pipes", "Small ", " Pipe", true, true, false, false, true, false, true, false, false, false, 0, - M * 1, 64, 79), + M * 1, 64, 79), pipeMedium("Medium Pipes", "Medium ", " Pipe", true, true, false, false, true, false, true, false, false, false, 0, - M * 3, 64, 80), + M * 3, 64, 80), pipeLarge("Large pipes", "Large ", " Pipe", true, true, false, false, true, false, true, false, false, false, 0, - M * 6, 64, 81), + M * 6, 64, 81), pipeHuge("Huge Pipes", "Huge ", " Pipe", true, true, false, false, true, false, true, false, false, false, 0, - M * 12, 64, 82), + M * 12, 64, 82), pipeQuadruple("Quadruple Pipes", "Quadruple ", " Pipe", true, true, false, false, true, false, true, false, false, - false, 0, M * 12, 64, 84), + false, 0, M * 12, 64, 84), pipeNonuple("Nonuple Pipes", "Nonuple ", " Pipe", true, true, false, false, true, false, true, false, false, false, - 0, M * 9, 64, 85), + 0, M * 9, 64, 85), pipeRestrictiveTiny("Tiny Restrictive Pipes", "Tiny Restrictive ", " Pipe", true, true, false, false, true, false, - true, false, false, false, 0, M / 2, 64, 78), + true, false, false, false, 0, M / 2, 64, 78), pipeRestrictiveSmall("Small Restrictive Pipes", "Small Restrictive ", " Pipe", true, true, false, false, true, - false, true, false, false, false, 0, M * 1, 64, 79), + false, true, false, false, false, 0, M * 1, 64, 79), pipeRestrictiveMedium("Medium Restrictive Pipes", "Medium Restrictive ", " Pipe", true, true, false, false, true, - false, true, false, false, false, 0, M * 3, 64, 80), + false, true, false, false, false, 0, M * 3, 64, 80), pipeRestrictiveLarge("Large Restrictive Pipes", "Large Restrictive ", " Pipe", true, true, false, false, true, - false, true, false, false, false, 0, M * 6, 64, 81), + false, true, false, false, false, 0, M * 6, 64, 81), pipeRestrictiveHuge("Huge Restrictive Pipes", "Huge Restrictive ", " Pipe", true, true, false, false, true, false, - true, false, false, false, 0, M * 12, 64, 82), + true, false, false, false, 0, M * 12, 64, 82), pipe("Pipes", "", " Pipe", true, false, false, false, false, false, false, false, false, false, 0, -1, 64, 77), wireGt16("16x Wires", "16x ", " Wire", true, true, false, false, false, false, true, false, false, false, 0, M * 8, - 64, -1), + 64, -1), wireGt12("12x Wires", "12x ", " Wire", true, true, false, false, false, false, true, false, false, false, 0, M * 6, - 64, -1), + 64, -1), wireGt08("8x Wires", "8x ", " Wire", true, true, false, false, false, false, true, false, false, false, 0, M * 4, - 64, -1), + 64, -1), wireGt04("4x Wires", "4x ", " Wire", true, true, false, false, false, false, true, false, false, false, 0, M * 2, - 64, -1), + 64, -1), wireGt02("2x Wires", "2x ", " Wire", true, true, false, false, false, false, true, false, false, false, 0, M * 1, - 64, -1), + 64, -1), wireGt01("1x Wires", "1x ", " Wire", true, true, false, false, false, false, true, false, false, false, 0, M / 2, - 64, -1), + 64, -1), cableGt16("16x Cables", "16x ", " Cable", true, true, false, false, false, false, true, false, false, false, 0, - M * 8, 64, -1), + M * 8, 64, -1), cableGt12("12x Cables", "12x ", " Cable", true, true, false, false, false, false, true, false, false, false, 0, - M * 6, 64, -1), + M * 6, 64, -1), cableGt08("8x Cables", "8x ", " Cable", true, true, false, false, false, false, true, false, false, false, 0, M * 4, - 64, -1), + 64, -1), cableGt04("4x Cables", "4x ", " Cable", true, true, false, false, false, false, true, false, false, false, 0, M * 2, - 64, -1), + 64, -1), cableGt02("2x Cables", "2x ", " Cable", true, true, false, false, false, false, true, false, false, false, 0, M * 1, - 64, -1), + 64, -1), cableGt01("1x Cables", "1x ", " Cable", true, true, false, false, false, false, true, false, false, false, 0, M / 2, - 64, -1), + 64, -1), /* * Electric Components. usual Materials for this are: Primitive (Tier 1) Basic (Tier 2) as used by UE as well : IC2 @@ -511,10 +511,10 @@ public enum OrePrefixes { * and Lapotronic Energy Orb Infinite (Cheaty) */ batterySingleuse("Single Use Batteries", "", "", false, true, false, false, false, false, false, false, false, - false, 0, -1, 64, -1), + false, 0, -1, 64, -1), /** Introduced by Calclavia */ battery("Reusable Batteries", "", "", false, true, false, false, false, false, false, false, false, false, 0, -1, - 64, -1), + 64, -1), /** Introduced by Calclavia */ circuit("Circuits", "", "", true, true, false, false, false, false, false, false, false, false, 0, -1, 64, -1), /** Introduced by Buildcraft */ @@ -527,7 +527,7 @@ public enum OrePrefixes { plating("Platings", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, -1), dinosaur("Dinosaurs", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, -1), travelgear("Travel Gear", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, - -1), + -1), bauble("Baubles", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, -1), cluster("Clusters", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, -1), grafter("Grafters", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, -1), @@ -553,17 +553,17 @@ public enum OrePrefixes { seed("Seeds", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, -1), reed("Reeds", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, -1), sheetDouble("2x Sheets", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, - -1), + -1), sheet("Sheets", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, -1), crop("Crops", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, -1), plant("Plants", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, -1), coin("Coins", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, -1), lumar("Lumars", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, -1), ground("Grounded Stuff", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, - -1), + -1), cable("Cables", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, -1), component("Components", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, - -1), + -1), wax("Waxes", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, -1), wall("Walls", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, -1), tube("Tubes", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, -1), @@ -588,11 +588,11 @@ public enum OrePrefixes { shears("Shears", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, -1), turbine("Turbines", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, -1), fertilizer("Fertilizers", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, - -1), + -1), chest("Chests", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, -1), raw("Raw Things", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, -1), stainedGlass("Stained Glasses", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, - 64, -1), + 64, -1), mystic("Mystic Stuff", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, -1), mana("Mana Stuff", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, -1), rune("Runes", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, -1), @@ -602,13 +602,13 @@ public enum OrePrefixes { soulsand("Soulsands", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, -1), obsidian("Obsidians", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, -1), glowstone("Glowstones", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, - -1), + -1), beans("Beans", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, -1), br("br", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, -1), essence("Essences", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, -1), alloy("Alloys", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, -1), cooking("Cooked Things", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, - -1), + -1), elven("Elven Stuff", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, -1), reactor("Reactors", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, -1), mffs("MFFS", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, -1), @@ -619,53 +619,53 @@ public enum OrePrefixes { bar("Bars", "", "", false, false, false, false, false, false, false, false, false, false, 0, -1, 64, -1), /** Reverse Head consisting out of 6 Ingots. */ toolHeadMallet("Mallet Heads", "", " Mallet Head", true, true, false, false, false, false, true, true, false, false, - B[6], M * 6, 64, 127), + B[6], M * 6, 64, 127), /** Reverse Stick made of half an Ingot. Introduced by Eloraam */ handleMallet("Mallet Handle", "", " Handle", true, true, false, false, false, false, true, true, false, false, - B[1] | B[2], M / 2, 64, 126), + B[1] | B[2], M / 2, 64, 126), // Cracked fluids cellHydroCracked1("Cells", "Lightly Hydro-Cracked ", " Cell", true, true, true, true, false, false, false, true, - false, false, 0, M * 1, 64, 30), + false, false, 0, M * 1, 64, 30), cellHydroCracked2("Cells", "Moderately Hydro-Cracked ", " Cell", true, true, true, true, false, false, false, true, - false, false, 0, M * 1, 64, 30), + false, false, 0, M * 1, 64, 30), cellHydroCracked3("Cells", "Severely Hydro-Cracked ", " Cell", true, true, true, true, false, false, false, true, - false, false, 0, M * 1, 64, 30), + false, false, 0, M * 1, 64, 30), cellSteamCracked1("Cells", "Lightly Steam-Cracked ", " Cell", true, true, true, true, false, false, false, true, - false, false, 0, M * 1, 64, 30), + false, false, 0, M * 1, 64, 30), cellSteamCracked2("Cells", "Moderately Steam-Cracked ", " Cell", true, true, true, true, false, false, false, true, - false, false, 0, M * 1, 64, 30), + false, false, 0, M * 1, 64, 30), cellSteamCracked3("Cells", "Severely Steam-Cracked ", " Cell", true, true, true, true, false, false, false, true, - false, false, 0, M * 1, 64, 30), + false, false, 0, M * 1, 64, 30), componentCircuit("Circuit Parts", "", "", true, true, false, false, false, false, false, false, false, false, 0, -1, - 64, -1), + 64, -1), apiaryUpgrade("Industrial Apiary Upgrade", "", "", false, false, true, false, false, false, false, false, false, - false, 0, -1, 64, -1), + false, 0, -1, 64, -1), beeComb("Bee Combs", "", "", true, false, true, false, false, false, false, false, false, false, 0, -1, 64, -1), nanite("Nanites", "", " Nanites", true, true, true, false, false, false, false, false, false, false, 0, -1, 64, 50), // migrated from GT++ milled("Milled Ores", "Milled ", " Ore", true, true, false, false, false, false, false, false, false, true, B[3], - -1, 64, -1), + -1, 64, -1), // migrated from bartworks blockCasing("A Casing block for a Multiblock-Machine", "Bolted ", " Casing", true, true, true, true, false, true, - false, true, false, false, 0, M * 9, 64, -1), + false, true, false, false, 0, M * 9, 64, -1), blockCasingAdvanced("An Advanced Casing block for a Multiblock-Machine", "Rebolted ", " Casing", true, true, true, - true, false, true, false, true, false, false, 0, M * 9, 64, -1), + true, false, true, false, true, false, false, 0, M * 9, 64, -1), capsuleMolten("Capsule of Molten stuff", "Molten ", " Capsule", true, true, true, true, false, false, false, true, - false, false, 0, M * 1, 64, -1); + false, false, 0, M * 1, 64, -1); public static final ImmutableList CELL_TYPES = ImmutableList.of( - cell, - cellMolten, - cellPlasma, - cellHydroCracked1, - cellHydroCracked2, - cellHydroCracked3, - cellSteamCracked1, - cellSteamCracked2, - cellSteamCracked3); + cell, + cellMolten, + cellPlasma, + cellHydroCracked1, + cellHydroCracked2, + cellHydroCracked3, + cellSteamCracked1, + cellSteamCracked2, + cellSteamCracked3); public static volatile int VERSION = 509; @@ -687,16 +687,16 @@ public enum OrePrefixes { cellPlasma.mHeatDamage = 6.0F; block.ignoreMaterials( - Materials.Ice, - Materials.Snow, - Materials.Concrete, - Materials.Glass, - Materials.Glowstone, - Materials.DarkIron, - Materials.Marble, - Materials.Quartz, - Materials.CertusQuartz, - Materials.Limestone); + Materials.Ice, + Materials.Snow, + Materials.Concrete, + Materials.Glass, + Materials.Glowstone, + Materials.DarkIron, + Materials.Marble, + Materials.Quartz, + Materials.CertusQuartz, + Materials.Limestone); ingot.ignoreMaterials(Materials.Brick, Materials.NetherBrick); dust.addFamiliarPrefix(dustTiny); @@ -710,10 +710,9 @@ public enum OrePrefixes { nugget.addFamiliarPrefix(ingot); for (OrePrefixes tPrefix1 : values()) if (tPrefix1.name() - .startsWith("ore")) + .startsWith("ore")) for (OrePrefixes tPrefix2 : values()) if (tPrefix2.name() - .startsWith("ore")) - tPrefix1.addFamiliarPrefix(tPrefix2); + .startsWith("ore")) tPrefix1.addFamiliarPrefix(tPrefix2); // These are only the important ones. gem.mNotGeneratedItems.add(Materials.Coal); @@ -864,66 +863,66 @@ public enum OrePrefixes { // ----- toolHeadFile.mCondition = new ICondition.And<>( - new ICondition.Not<>(SubTag.NO_SMASHING), - new ICondition.Not<>(SubTag.BOUNCY)); + new ICondition.Not<>(SubTag.NO_SMASHING), + new ICondition.Not<>(SubTag.BOUNCY)); toolHeadSaw.mCondition = new ICondition.And<>( - new ICondition.Not<>(SubTag.NO_SMASHING), - new ICondition.Not<>(SubTag.BOUNCY)); + new ICondition.Not<>(SubTag.NO_SMASHING), + new ICondition.Not<>(SubTag.BOUNCY)); toolHeadDrill.mCondition = new ICondition.And<>( - new ICondition.Not<>(SubTag.NO_SMASHING), - new ICondition.Not<>(SubTag.BOUNCY)); + new ICondition.Not<>(SubTag.NO_SMASHING), + new ICondition.Not<>(SubTag.BOUNCY)); toolHeadChainsaw.mCondition = new ICondition.And<>( - new ICondition.Not<>(SubTag.NO_SMASHING), - new ICondition.Not<>(SubTag.BOUNCY)); + new ICondition.Not<>(SubTag.NO_SMASHING), + new ICondition.Not<>(SubTag.BOUNCY)); toolHeadWrench.mCondition = new ICondition.And<>( - new ICondition.Not<>(SubTag.NO_SMASHING), - new ICondition.Not<>(SubTag.BOUNCY)); + new ICondition.Not<>(SubTag.NO_SMASHING), + new ICondition.Not<>(SubTag.BOUNCY)); toolHeadBuzzSaw.mCondition = new ICondition.And<>( - new ICondition.Not<>(SubTag.NO_SMASHING), - new ICondition.Not<>(SubTag.BOUNCY)); + new ICondition.Not<>(SubTag.NO_SMASHING), + new ICondition.Not<>(SubTag.BOUNCY)); turbineBlade.mCondition = new ICondition.And<>( - new ICondition.Not<>(SubTag.NO_SMASHING), - new ICondition.Not<>(SubTag.BOUNCY)); + new ICondition.Not<>(SubTag.NO_SMASHING), + new ICondition.Not<>(SubTag.BOUNCY)); rotor.mCondition = new ICondition.Nor<>(SubTag.CRYSTAL, SubTag.STONE, SubTag.BOUNCY); spring.mCondition = new ICondition.Or<>( - SubTag.STRETCHY, - SubTag.BOUNCY, - new ICondition.Not<>(SubTag.NO_SMASHING)); + SubTag.STRETCHY, + SubTag.BOUNCY, + new ICondition.Not<>(SubTag.NO_SMASHING)); springSmall.mCondition = new ICondition.Or<>( - SubTag.STRETCHY, - SubTag.BOUNCY, - new ICondition.Not<>(SubTag.NO_SMASHING)); + SubTag.STRETCHY, + SubTag.BOUNCY, + new ICondition.Not<>(SubTag.NO_SMASHING)); gemChipped.mCondition = new ICondition.And<>( - SubTag.TRANSPARENT, - SubTag.CRYSTAL, - new ICondition.Not<>(SubTag.QUARTZ), - new ICondition.Not<>(SubTag.PEARL), - new ICondition.Not<>(SubTag.MAGICAL)); + SubTag.TRANSPARENT, + SubTag.CRYSTAL, + new ICondition.Not<>(SubTag.QUARTZ), + new ICondition.Not<>(SubTag.PEARL), + new ICondition.Not<>(SubTag.MAGICAL)); gemFlawed.mCondition = new ICondition.And<>( - SubTag.TRANSPARENT, - SubTag.CRYSTAL, - new ICondition.Not<>(SubTag.QUARTZ), - new ICondition.Not<>(SubTag.PEARL), - new ICondition.Not<>(SubTag.MAGICAL)); + SubTag.TRANSPARENT, + SubTag.CRYSTAL, + new ICondition.Not<>(SubTag.QUARTZ), + new ICondition.Not<>(SubTag.PEARL), + new ICondition.Not<>(SubTag.MAGICAL)); gemFlawless.mCondition = new ICondition.And<>( - SubTag.TRANSPARENT, - SubTag.CRYSTAL, - new ICondition.Not<>(SubTag.QUARTZ), - new ICondition.Not<>(SubTag.PEARL), - new ICondition.Not<>(SubTag.MAGICAL)); + SubTag.TRANSPARENT, + SubTag.CRYSTAL, + new ICondition.Not<>(SubTag.QUARTZ), + new ICondition.Not<>(SubTag.PEARL), + new ICondition.Not<>(SubTag.MAGICAL)); gemExquisite.mCondition = new ICondition.And<>( - SubTag.TRANSPARENT, - SubTag.CRYSTAL, - new ICondition.Not<>(SubTag.QUARTZ), - new ICondition.Not<>(SubTag.PEARL), - new ICondition.Not<>(SubTag.MAGICAL)); + SubTag.TRANSPARENT, + SubTag.CRYSTAL, + new ICondition.Not<>(SubTag.QUARTZ), + new ICondition.Not<>(SubTag.PEARL), + new ICondition.Not<>(SubTag.MAGICAL)); lens.mCondition = new ICondition.Or<>( - SubTag.MAGICAL, - new ICondition.And<>(SubTag.TRANSPARENT, SubTag.HAS_COLOR)); + SubTag.MAGICAL, + new ICondition.And<>(SubTag.TRANSPARENT, SubTag.HAS_COLOR)); plateDouble.mCondition = new ICondition.Or<>(SubTag.PAPER, new ICondition.Not<>(SubTag.NO_SMASHING)); plateTriple.mCondition = new ICondition.Or<>(SubTag.PAPER, new ICondition.Not<>(SubTag.NO_SMASHING)); @@ -954,8 +953,8 @@ public enum OrePrefixes { cableGt01.mSecondaryMaterial = new MaterialStack(Materials.Rubber, plate.mMaterialAmount); bucket.mSecondaryMaterial = new MaterialStack(Materials.Iron, ingot.mMaterialAmount * 3); bucketClay.mSecondaryMaterial = new MaterialStack(Materials.Clay, dust.mMaterialAmount * 5); - CELL_TYPES.forEach( - prefix -> prefix.mSecondaryMaterial = new MaterialStack(Materials.Tin, plate.mMaterialAmount * 2)); + CELL_TYPES + .forEach(prefix -> prefix.mSecondaryMaterial = new MaterialStack(Materials.Tin, plate.mMaterialAmount * 2)); oreRedgranite.mSecondaryMaterial = new MaterialStack(Materials.GraniteRed, dust.mMaterialAmount); oreBlackgranite.mSecondaryMaterial = new MaterialStack(Materials.GraniteBlack, dust.mMaterialAmount); oreNetherrack.mSecondaryMaterial = new MaterialStack(Materials.Netherrack, dust.mMaterialAmount); @@ -973,11 +972,11 @@ public enum OrePrefixes { crushed.mSecondaryMaterial = new MaterialStack(Materials.Stone, dust.mMaterialAmount); toolHeadDrill.mSecondaryMaterial = new MaterialStack(Materials.Steel, plate.mMaterialAmount * 4); toolHeadChainsaw.mSecondaryMaterial = new MaterialStack( - Materials.Steel, - plate.mMaterialAmount * 4 + ring.mMaterialAmount * 2); + Materials.Steel, + plate.mMaterialAmount * 4 + ring.mMaterialAmount * 2); toolHeadWrench.mSecondaryMaterial = new MaterialStack( - Materials.Steel, - ring.mMaterialAmount + screw.mMaterialAmount * 2); + Materials.Steel, + ring.mMaterialAmount + screw.mMaterialAmount * 2); arrowGtWood.mSecondaryMaterial = new MaterialStack(Materials.Wood, stick.mMaterialAmount); arrowGtPlastic.mSecondaryMaterial = new MaterialStack(Materials.Plastic, stick.mMaterialAmount); bulletGtSmall.mSecondaryMaterial = new MaterialStack(Materials.Brass, ingot.mMaterialAmount / 9); @@ -989,7 +988,7 @@ public enum OrePrefixes { public final short mTextureIndex; public final String mRegularLocalName, mLocalizedMaterialPre, mLocalizedMaterialPost; public final boolean mIsUsedForOreProcessing, mIsEnchantable, mIsUnificatable, mIsMaterialBased, mIsSelfReferencing, - mIsContainer, mDontUnificateActively, mIsUsedForBlocks, mAllowNormalRecycling, mGenerateDefaultItem; + mIsContainer, mDontUnificateActively, mIsUsedForBlocks, mAllowNormalRecycling, mGenerateDefaultItem; public final List mAspects = new ArrayList<>(); public final Collection mFamiliarPrefixes = new HashSet<>(); /** @@ -999,7 +998,7 @@ public enum OrePrefixes { public final long mMaterialAmount; public final Collection mDisabledItems = new HashSet<>(), mNotGeneratedItems = new HashSet<>(), - mIgnoredMaterials = new HashSet<>(), mGeneratedItems = new HashSet<>(); + mIgnoredMaterials = new HashSet<>(), mGeneratedItems = new HashSet<>(); private final ArrayList mOreProcessing = new ArrayList<>(); public ItemStack mContainerItem = null; public ICondition mCondition = null; @@ -1009,71 +1008,71 @@ public enum OrePrefixes { public float mHeatDamage = 0.0F; // Negative for Frost Damage private final GT_HashSet mContainsTestCache = new GT_HashSet<>(512, 0.5f); public static List mPreventableComponents = new LinkedList<>( - Arrays.asList( - OrePrefixes.gem, - OrePrefixes.ingotHot, - OrePrefixes.ingotDouble, - OrePrefixes.ingotTriple, - OrePrefixes.ingotQuadruple, - OrePrefixes.ingotQuintuple, - OrePrefixes.plate, - OrePrefixes.plateDouble, - OrePrefixes.plateTriple, - OrePrefixes.plateQuadruple, - OrePrefixes.plateQuintuple, - OrePrefixes.plateDense, - OrePrefixes.stick, - OrePrefixes.round, - OrePrefixes.bolt, - OrePrefixes.screw, - OrePrefixes.ring, - OrePrefixes.foil, - OrePrefixes.toolHeadSword, - OrePrefixes.toolHeadPickaxe, - OrePrefixes.toolHeadShovel, - OrePrefixes.toolHeadAxe, - OrePrefixes.toolHeadHoe, - OrePrefixes.toolHeadHammer, - OrePrefixes.toolHeadFile, - OrePrefixes.toolHeadSaw, - OrePrefixes.toolHeadDrill, - OrePrefixes.toolHeadChainsaw, - OrePrefixes.toolHeadWrench, - OrePrefixes.toolHeadUniversalSpade, - OrePrefixes.toolHeadSense, - OrePrefixes.toolHeadPlow, - OrePrefixes.toolHeadArrow, - OrePrefixes.toolHeadBuzzSaw, - OrePrefixes.turbineBlade, - OrePrefixes.wireFine, - OrePrefixes.gearGtSmall, - OrePrefixes.rotor, - OrePrefixes.stickLong, - OrePrefixes.springSmall, - OrePrefixes.spring, - OrePrefixes.arrowGtWood, - OrePrefixes.arrowGtPlastic, - OrePrefixes.gemChipped, - OrePrefixes.gemFlawed, - OrePrefixes.gemFlawless, - OrePrefixes.gemExquisite, - OrePrefixes.gearGt, - OrePrefixes.crateGtDust, - OrePrefixes.crateGtIngot, - OrePrefixes.crateGtGem, - OrePrefixes.crateGtPlate, - OrePrefixes.itemCasing, - OrePrefixes.nanite)); + Arrays.asList( + OrePrefixes.gem, + OrePrefixes.ingotHot, + OrePrefixes.ingotDouble, + OrePrefixes.ingotTriple, + OrePrefixes.ingotQuadruple, + OrePrefixes.ingotQuintuple, + OrePrefixes.plate, + OrePrefixes.plateDouble, + OrePrefixes.plateTriple, + OrePrefixes.plateQuadruple, + OrePrefixes.plateQuintuple, + OrePrefixes.plateDense, + OrePrefixes.stick, + OrePrefixes.round, + OrePrefixes.bolt, + OrePrefixes.screw, + OrePrefixes.ring, + OrePrefixes.foil, + OrePrefixes.toolHeadSword, + OrePrefixes.toolHeadPickaxe, + OrePrefixes.toolHeadShovel, + OrePrefixes.toolHeadAxe, + OrePrefixes.toolHeadHoe, + OrePrefixes.toolHeadHammer, + OrePrefixes.toolHeadFile, + OrePrefixes.toolHeadSaw, + OrePrefixes.toolHeadDrill, + OrePrefixes.toolHeadChainsaw, + OrePrefixes.toolHeadWrench, + OrePrefixes.toolHeadUniversalSpade, + OrePrefixes.toolHeadSense, + OrePrefixes.toolHeadPlow, + OrePrefixes.toolHeadArrow, + OrePrefixes.toolHeadBuzzSaw, + OrePrefixes.turbineBlade, + OrePrefixes.wireFine, + OrePrefixes.gearGtSmall, + OrePrefixes.rotor, + OrePrefixes.stickLong, + OrePrefixes.springSmall, + OrePrefixes.spring, + OrePrefixes.arrowGtWood, + OrePrefixes.arrowGtPlastic, + OrePrefixes.gemChipped, + OrePrefixes.gemFlawed, + OrePrefixes.gemFlawless, + OrePrefixes.gemExquisite, + OrePrefixes.gearGt, + OrePrefixes.crateGtDust, + OrePrefixes.crateGtIngot, + OrePrefixes.crateGtGem, + OrePrefixes.crateGtPlate, + OrePrefixes.itemCasing, + OrePrefixes.nanite)); /** * Yes this Value can be changed to add Bits for the MetaGenerated-Item-Check. */ public int mMaterialGenerationBits = 0; OrePrefixes(String aRegularLocalName, String aLocalizedMaterialPre, String aLocalizedMaterialPost, - boolean aIsUnificatable, boolean aIsMaterialBased, boolean aIsSelfReferencing, boolean aIsContainer, - boolean aDontUnificateActively, boolean aIsUsedForBlocks, boolean aAllowNormalRecycling, - boolean aGenerateDefaultItem, boolean aIsEnchantable, boolean aIsUsedForOreProcessing, - int aMaterialGenerationBits, long aMaterialAmount, int aDefaultStackSize, int aTextureindex) { + boolean aIsUnificatable, boolean aIsMaterialBased, boolean aIsSelfReferencing, boolean aIsContainer, + boolean aDontUnificateActively, boolean aIsUsedForBlocks, boolean aAllowNormalRecycling, + boolean aGenerateDefaultItem, boolean aIsEnchantable, boolean aIsUsedForOreProcessing, + int aMaterialGenerationBits, long aMaterialAmount, int aDefaultStackSize, int aTextureindex) { mIsUnificatable = aIsUnificatable; mIsMaterialBased = aIsMaterialBased; mIsSelfReferencing = aIsSelfReferencing; @@ -1130,109 +1129,59 @@ public enum OrePrefixes { public static void initMaterialComponents() { boolean enablePerItemSettings = GregTech_API.sMaterialComponents.get("general", "enablePerItemSettings", false); - boolean enableUnusedIngotHot = GregTech_API.sMaterialComponents.get( - "globalcomponents", - "enableUnusedIngotHot", - false); - boolean enableUnusedPlates = GregTech_API.sMaterialComponents.get( - "globalcomponents", - "enableUnusedPlates", - false); - boolean enableUnusedDoubleIngots = GregTech_API.sMaterialComponents.get( - "globalcomponents", - "enableUnusedDoubleIngots", - false); - boolean enableUnusedTripleIngots = GregTech_API.sMaterialComponents.get( - "globalcomponents", - "enableUnusedTripleIngots", - false); - boolean enableUnusedQuadIngots = GregTech_API.sMaterialComponents.get( - "globalcomponents", - "enableUnusedQuadIngots", - false); - boolean enableUnusedQuinIngots = GregTech_API.sMaterialComponents.get( - "globalcomponents", - "enableUnusedQuinIngots", - false); - boolean enableUnusedDoublePlates = GregTech_API.sMaterialComponents.get( - "globalcomponents", - "enableUnusedDoublePlates", - false); - boolean enableUnusedTriplePlates = GregTech_API.sMaterialComponents.get( - "globalcomponents", - "enableUnusedTriplePlates", - false); - boolean enableUnusedQuadPlates = GregTech_API.sMaterialComponents.get( - "globalcomponents", - "enableUnusedQuadPlates", - false); - boolean enableUnusedQuinPlates = GregTech_API.sMaterialComponents.get( - "globalcomponents", - "enableUnusedQuinPlates", - false); - boolean enableUnusedDensePlates = GregTech_API.sMaterialComponents.get( - "globalcomponents", - "enableUnusedDensePlates", - false); - boolean enableUnusedGears = GregTech_API.sMaterialComponents.get( - "globalcomponents", - "enableUnusedGears", - false); - boolean enableUnusedSmallGears = GregTech_API.sMaterialComponents.get( - "globalcomponents", - "enableUnusedSmallGears", - false); - boolean enableUnusedRings = GregTech_API.sMaterialComponents.get( - "globalcomponents", - "enableUnusedRings", - false); - boolean enableUnusedSprings = GregTech_API.sMaterialComponents.get( - "globalcomponents", - "enableUnusedSprings", - false); - boolean enableUnusedSmallSprings = GregTech_API.sMaterialComponents.get( - "globalcomponents", - "enableUnusedSmallSprings", - false); - boolean enableUnusedRounds = GregTech_API.sMaterialComponents.get( - "globalcomponents", - "enableUnusedRounds", - false); - boolean enableUnusedRotors = GregTech_API.sMaterialComponents.get( - "globalcomponents", - "enableUnusedRotors", - false); - boolean enableUnusedFineWires = GregTech_API.sMaterialComponents.get( - "globalcomponents", - "enableUnusedFineWires", - false); + boolean enableUnusedIngotHot = GregTech_API.sMaterialComponents + .get("globalcomponents", "enableUnusedIngotHot", false); + boolean enableUnusedPlates = GregTech_API.sMaterialComponents + .get("globalcomponents", "enableUnusedPlates", false); + boolean enableUnusedDoubleIngots = GregTech_API.sMaterialComponents + .get("globalcomponents", "enableUnusedDoubleIngots", false); + boolean enableUnusedTripleIngots = GregTech_API.sMaterialComponents + .get("globalcomponents", "enableUnusedTripleIngots", false); + boolean enableUnusedQuadIngots = GregTech_API.sMaterialComponents + .get("globalcomponents", "enableUnusedQuadIngots", false); + boolean enableUnusedQuinIngots = GregTech_API.sMaterialComponents + .get("globalcomponents", "enableUnusedQuinIngots", false); + boolean enableUnusedDoublePlates = GregTech_API.sMaterialComponents + .get("globalcomponents", "enableUnusedDoublePlates", false); + boolean enableUnusedTriplePlates = GregTech_API.sMaterialComponents + .get("globalcomponents", "enableUnusedTriplePlates", false); + boolean enableUnusedQuadPlates = GregTech_API.sMaterialComponents + .get("globalcomponents", "enableUnusedQuadPlates", false); + boolean enableUnusedQuinPlates = GregTech_API.sMaterialComponents + .get("globalcomponents", "enableUnusedQuinPlates", false); + boolean enableUnusedDensePlates = GregTech_API.sMaterialComponents + .get("globalcomponents", "enableUnusedDensePlates", false); + boolean enableUnusedGears = GregTech_API.sMaterialComponents + .get("globalcomponents", "enableUnusedGears", false); + boolean enableUnusedSmallGears = GregTech_API.sMaterialComponents + .get("globalcomponents", "enableUnusedSmallGears", false); + boolean enableUnusedRings = GregTech_API.sMaterialComponents + .get("globalcomponents", "enableUnusedRings", false); + boolean enableUnusedSprings = GregTech_API.sMaterialComponents + .get("globalcomponents", "enableUnusedSprings", false); + boolean enableUnusedSmallSprings = GregTech_API.sMaterialComponents + .get("globalcomponents", "enableUnusedSmallSprings", false); + boolean enableUnusedRounds = GregTech_API.sMaterialComponents + .get("globalcomponents", "enableUnusedRounds", false); + boolean enableUnusedRotors = GregTech_API.sMaterialComponents + .get("globalcomponents", "enableUnusedRotors", false); + boolean enableUnusedFineWires = GregTech_API.sMaterialComponents + .get("globalcomponents", "enableUnusedFineWires", false); boolean enableUnusedFoil = GregTech_API.sMaterialComponents.get("globalcomponents", "enableUnusedFoil", false); - boolean enableUnusedArrows = GregTech_API.sMaterialComponents.get( - "globalcomponents", - "enableUnusedArrowHeads", - false); - boolean enableUnusedCrates = GregTech_API.sMaterialComponents.get( - "globalcomponents", - "enableUnusedCrates", - false); - boolean enableUnusedBolts = GregTech_API.sMaterialComponents.get( - "globalcomponents", - "enableUnusedBolts", - false); - boolean enableUnusedScrews = GregTech_API.sMaterialComponents.get( - "globalcomponents", - "enableUnusedScrews", - false); + boolean enableUnusedArrows = GregTech_API.sMaterialComponents + .get("globalcomponents", "enableUnusedArrowHeads", false); + boolean enableUnusedCrates = GregTech_API.sMaterialComponents + .get("globalcomponents", "enableUnusedCrates", false); + boolean enableUnusedBolts = GregTech_API.sMaterialComponents + .get("globalcomponents", "enableUnusedBolts", false); + boolean enableUnusedScrews = GregTech_API.sMaterialComponents + .get("globalcomponents", "enableUnusedScrews", false); boolean enableUnusedRods = GregTech_API.sMaterialComponents.get("globalcomponents", "enableUnusedRods", false); - boolean enableUnusedLongRods = GregTech_API.sMaterialComponents.get( - "globalcomponents", - "enableUnusedLongRods", - false); + boolean enableUnusedLongRods = GregTech_API.sMaterialComponents + .get("globalcomponents", "enableUnusedLongRods", false); boolean enableUnusedGems = GregTech_API.sMaterialComponents.get("globalcomponents", "enableUnusedGems", false); - boolean enableUnusedItemCasing = GregTech_API.sMaterialComponents.get( - "globalcomponents", - "enableUnusedItemCasing", - false); + boolean enableUnusedItemCasing = GregTech_API.sMaterialComponents + .get("globalcomponents", "enableUnusedItemCasing", false); // TODO possibly use OrePrefix mNotGeneratedItems/mGeneratedItems instead of a static List for every material // instance? @@ -1248,13 +1197,11 @@ public enum OrePrefixes { if (!enableUnusedSprings && (aMaterial != Materials.Titanium)) spring.mDisabledItems.add(aMaterial); if (!enableUnusedSmallSprings) springSmall.mDisabledItems.add(aMaterial); if (!enableUnusedRounds && !(aMaterial == Materials.HSSE || aMaterial == Materials.Neutronium - || aMaterial == Materials.HSSG)) - round.mDisabledItems.add(aMaterial); + || aMaterial == Materials.HSSG)) round.mDisabledItems.add(aMaterial); if (!enableUnusedCrates) { if (!(aMaterial == Materials.DamascusSteel || aMaterial == Materials.Steel - || aMaterial == Materials.Bronze - || aMaterial == Materials.Manganese)) - crateGtIngot.mDisabledItems.add(aMaterial); + || aMaterial == Materials.Bronze + || aMaterial == Materials.Manganese)) crateGtIngot.mDisabledItems.add(aMaterial); if (!(aMaterial == Materials.Neodymium || aMaterial == Materials.Chrome)) crateGtDust.mDisabledItems.add(aMaterial); crateGtGem.mDisabledItems.add(aMaterial); @@ -1268,36 +1215,36 @@ public enum OrePrefixes { } // Plates if (!enableUnusedPlates && ((aMaterial.mTypes & 0x40) == 0) - && !(aMaterial == Materials.Silicon || aMaterial == Materials.Zinc - || aMaterial == Materials.Europium - || aMaterial == Materials.Americium - || aMaterial == Materials.RedAlloy - || aMaterial == Materials.SolderingAlloy - || aMaterial == Materials.BatteryAlloy - || aMaterial == Materials.AnnealedCopper - || aMaterial == Materials.Firestone - || aMaterial == Materials.VanadiumGallium - || aMaterial == Materials.YttriumBariumCuprate - || aMaterial == Materials.NiobiumTitanium - || aMaterial == Materials.CertusQuartz - || aMaterial == Materials.NetherQuartz - || aMaterial == Materials.Lazurite - || aMaterial == Materials.Lapis - || aMaterial == Materials.Paper - || aMaterial == Materials.Jasper - || aMaterial == Materials.Dilithium - || aMaterial == Materials.Forcicium - || aMaterial == Materials.Forcillium - || aMaterial == Materials.EnderPearl - || aMaterial == Materials.EnderEye - || aMaterial == Materials.Glass - || aMaterial == Materials.Copper - || aMaterial == Materials.Tin - || aMaterial == Materials.Redstone - || aMaterial == Materials.Sodalite - || aMaterial == Materials.Gallium - || aMaterial == Materials.GalliumArsenide - || aMaterial == Materials.IndiumGalliumPhosphide)) + && !(aMaterial == Materials.Silicon || aMaterial == Materials.Zinc + || aMaterial == Materials.Europium + || aMaterial == Materials.Americium + || aMaterial == Materials.RedAlloy + || aMaterial == Materials.SolderingAlloy + || aMaterial == Materials.BatteryAlloy + || aMaterial == Materials.AnnealedCopper + || aMaterial == Materials.Firestone + || aMaterial == Materials.VanadiumGallium + || aMaterial == Materials.YttriumBariumCuprate + || aMaterial == Materials.NiobiumTitanium + || aMaterial == Materials.CertusQuartz + || aMaterial == Materials.NetherQuartz + || aMaterial == Materials.Lazurite + || aMaterial == Materials.Lapis + || aMaterial == Materials.Paper + || aMaterial == Materials.Jasper + || aMaterial == Materials.Dilithium + || aMaterial == Materials.Forcicium + || aMaterial == Materials.Forcillium + || aMaterial == Materials.EnderPearl + || aMaterial == Materials.EnderEye + || aMaterial == Materials.Glass + || aMaterial == Materials.Copper + || aMaterial == Materials.Tin + || aMaterial == Materials.Redstone + || aMaterial == Materials.Sodalite + || aMaterial == Materials.Gallium + || aMaterial == Materials.GalliumArsenide + || aMaterial == Materials.IndiumGalliumPhosphide)) plate.mDisabledItems.add(aMaterial); if (!enableUnusedIngotHot) { ingotHot.mDisabledItems.add(aMaterial); @@ -1308,9 +1255,9 @@ public enum OrePrefixes { if (!enableUnusedQuadIngots) ingotQuadruple.mDisabledItems.add(aMaterial); if (!enableUnusedQuinIngots) ingotQuintuple.mDisabledItems.add(aMaterial); if (!enableUnusedDoublePlates && ((aMaterial.mTypes & 0x40) == 0) - && !(aMaterial == Materials.Paper || aMaterial == Materials.Aluminium - || aMaterial == Materials.Steel - || aMaterial == Materials.TungstenSteel)) + && !(aMaterial == Materials.Paper || aMaterial == Materials.Aluminium + || aMaterial == Materials.Steel + || aMaterial == Materials.TungstenSteel)) plateDouble.mDisabledItems.add(aMaterial); if (!enableUnusedTriplePlates && !(aMaterial == Materials.Paper)) plateTriple.mDisabledItems.add(aMaterial); @@ -1319,217 +1266,212 @@ public enum OrePrefixes { if (!enableUnusedQuinPlates && !(aMaterial == Materials.Paper)) plateQuintuple.mDisabledItems.add(aMaterial); if (!(enableUnusedDensePlates || GregTech_API.mGTPlusPlus) - && !(aMaterial == Materials.Iron || aMaterial == Materials.Copper - || aMaterial == Materials.Lead - || aMaterial == Materials.Paper - || aMaterial == Materials.Thaumium - || aMaterial == Materials.Titanium)) + && !(aMaterial == Materials.Iron || aMaterial == Materials.Copper + || aMaterial == Materials.Lead + || aMaterial == Materials.Paper + || aMaterial == Materials.Thaumium + || aMaterial == Materials.Titanium)) plateDense.mDisabledItems.add(aMaterial); // Rotors if (!enableUnusedRotors && !(aMaterial == Materials.Titanium || aMaterial == Materials.Chrome + || aMaterial == Materials.Tin + || aMaterial == Materials.Osmium + || aMaterial == Materials.Iridium + || aMaterial == Materials.Bronze + || aMaterial == Materials.Steel + || aMaterial == Materials.StainlessSteel + || aMaterial == Materials.TungstenSteel + || aMaterial == Materials.HSSG + || aMaterial == Materials.HSSE + || aMaterial == Materials.Neutronium)) rotor.mDisabledItems.add(aMaterial); + // Rings + if (!enableUnusedRings && !(aMaterial == Materials.Titanium || aMaterial == Materials.Chrome + || aMaterial == Materials.Iron + || aMaterial == Materials.Tin + || aMaterial == Materials.Osmium + || aMaterial == Materials.Iridium + || aMaterial == Materials.Bronze + || aMaterial == Materials.WroughtIron + || aMaterial == Materials.Steel + || aMaterial == Materials.StainlessSteel + || aMaterial == Materials.PigIron + || aMaterial == Materials.TungstenSteel + || aMaterial == Materials.Rubber + || aMaterial == Materials.HSSE + || aMaterial == Materials.Neutronium + || aMaterial == Materials.HSSG + || aMaterial == Materials.Aluminium + || aMaterial == Materials.Invar + || aMaterial == Materials.Brass + || aMaterial == Materials.Paper + || aMaterial == Materials.Silicone + || aMaterial == Materials.StyreneButadieneRubber)) ring.mDisabledItems.add(aMaterial); + // Foil + if (!enableUnusedFoil && !(aMaterial == Materials.Zinc || aMaterial == Materials.Aluminium + || aMaterial == Materials.Silicon + || aMaterial == Materials.Gold + || aMaterial == Materials.Electrum + || aMaterial == Materials.Platinum + || aMaterial == Materials.Osmiridium + || aMaterial == Materials.Osmium + || aMaterial == Materials.AnnealedCopper + || aMaterial == Materials.Steel + || aMaterial == Materials.Copper + || aMaterial == Materials.YttriumBariumCuprate + || aMaterial == Materials.VanadiumGallium + || aMaterial == Materials.NiobiumTitanium + || aMaterial == Materials.Naquadah + || aMaterial == Materials.Manganese + || aMaterial == Materials.Plastic + || aMaterial == Materials.Silicone + || aMaterial == Materials.PolyvinylChloride + || aMaterial == Materials.PolyphenyleneSulfide + || aMaterial == Materials.Nichrome + || aMaterial == Materials.BlackSteel + || aMaterial == Materials.Titanium + || aMaterial == Materials.TungstenSteel + || aMaterial == Materials.Tungsten + || aMaterial == Materials.HSSG + || aMaterial == Materials.NaquadahAlloy + || aMaterial == Materials.Duranium + || aMaterial == Materials.Europium + || aMaterial == Materials.Bedrockium)) foil.mDisabledItems.add(aMaterial); + // Fine Wire + if (!enableUnusedFineWires && !(aMaterial == Materials.Steel || aMaterial == Materials.AnnealedCopper + || aMaterial == Materials.Platinum + || aMaterial == Materials.Osmium + || aMaterial == Materials.Tin + || aMaterial == Materials.Lead + || aMaterial == Materials.SolderingAlloy + || aMaterial == Materials.Copper + || aMaterial == Materials.Electrum + || aMaterial == Materials.Gold + || aMaterial == Materials.RedAlloy + || aMaterial == Materials.Graphene + || aMaterial == Materials.NiobiumTitanium + || aMaterial == Materials.YttriumBariumCuprate + || aMaterial == Materials.BloodInfusedIron + || aMaterial == Materials.Universium + || aMaterial == Materials.MagnetohydrodynamicallyConstrainedStarMatter)) + wireFine.mDisabledItems.add(aMaterial); + // Gears + if (!enableUnusedGears && !(aMaterial == Materials.Aluminium || aMaterial == Materials.Titanium + || aMaterial == Materials.Iron + || aMaterial == Materials.Copper + || aMaterial == Materials.Tin + || aMaterial == Materials.Gold + || aMaterial == Materials.Stone + || aMaterial == Materials.Bronze + || aMaterial == Materials.Steel + || aMaterial == Materials.StainlessSteel + || aMaterial == Materials.TungstenSteel + || aMaterial == Materials.CobaltBrass + || aMaterial == Materials.Diamond + || aMaterial == Materials.Wood + || aMaterial == Materials.HSSG + || aMaterial == Materials.HSSE + || aMaterial == Materials.Neutronium)) gearGt.mDisabledItems.add(aMaterial); + // Small Gears + if (!enableUnusedSmallGears && !(aMaterial == Materials.Aluminium || aMaterial == Materials.Titanium + || aMaterial == Materials.Steel + || aMaterial == Materials.StainlessSteel + || aMaterial == Materials.TungstenSteel + || aMaterial == Materials.HSSG + || aMaterial == Materials.HSSE + || aMaterial == Materials.Neutronium + || aMaterial == Materials.VanadiumGallium + || aMaterial == Materials.Naquadah)) gearGtSmall.mDisabledItems.add(aMaterial); + // Bolts + if (!enableUnusedBolts && ((aMaterial.mTypes & 0x40) == 0) + && !(aMaterial == Materials.Titanium || aMaterial == Materials.Chrome + || aMaterial == Materials.Iron || aMaterial == Materials.Tin || aMaterial == Materials.Osmium || aMaterial == Materials.Iridium + || aMaterial == Materials.Neutronium || aMaterial == Materials.Bronze + || aMaterial == Materials.WroughtIron || aMaterial == Materials.Steel || aMaterial == Materials.StainlessSteel + || aMaterial == Materials.PigIron || aMaterial == Materials.TungstenSteel - || aMaterial == Materials.HSSG + || aMaterial == Materials.Tungsten || aMaterial == Materials.HSSE - || aMaterial == Materials.Neutronium)) - rotor.mDisabledItems.add(aMaterial); - // Rings - if (!enableUnusedRings && !(aMaterial == Materials.Titanium || aMaterial == Materials.Chrome + || aMaterial == Materials.HSSG)) + bolt.mDisabledItems.add(aMaterial); + // Screws + if (!enableUnusedScrews && ((aMaterial.mTypes & 0x40) == 0) + && !(aMaterial == Materials.Titanium || aMaterial == Materials.Chrome || aMaterial == Materials.Iron || aMaterial == Materials.Tin || aMaterial == Materials.Osmium || aMaterial == Materials.Iridium + || aMaterial == Materials.Neutronium || aMaterial == Materials.Bronze || aMaterial == Materials.WroughtIron || aMaterial == Materials.Steel || aMaterial == Materials.StainlessSteel || aMaterial == Materials.PigIron || aMaterial == Materials.TungstenSteel - || aMaterial == Materials.Rubber || aMaterial == Materials.HSSE - || aMaterial == Materials.Neutronium - || aMaterial == Materials.HSSG - || aMaterial == Materials.Aluminium - || aMaterial == Materials.Invar - || aMaterial == Materials.Brass - || aMaterial == Materials.Paper - || aMaterial == Materials.Silicone - || aMaterial == Materials.StyreneButadieneRubber)) - ring.mDisabledItems.add(aMaterial); - // Foil - if (!enableUnusedFoil && !(aMaterial == Materials.Zinc || aMaterial == Materials.Aluminium - || aMaterial == Materials.Silicon - || aMaterial == Materials.Gold - || aMaterial == Materials.Electrum - || aMaterial == Materials.Platinum - || aMaterial == Materials.Osmiridium + || aMaterial == Materials.HSSG)) + screw.mDisabledItems.add(aMaterial); + // Rods + if (!enableUnusedRods && ((aMaterial.mTypes & 0x40) == 0) + && !(aMaterial == Materials.Titanium || aMaterial == Materials.Chrome + || aMaterial == Materials.Iron + || aMaterial == Materials.Tin || aMaterial == Materials.Osmium - || aMaterial == Materials.AnnealedCopper + || aMaterial == Materials.Iridium + || aMaterial == Materials.Neutronium + || aMaterial == Materials.Bronze + || aMaterial == Materials.WroughtIron || aMaterial == Materials.Steel - || aMaterial == Materials.Copper - || aMaterial == Materials.YttriumBariumCuprate - || aMaterial == Materials.VanadiumGallium - || aMaterial == Materials.NiobiumTitanium - || aMaterial == Materials.Naquadah - || aMaterial == Materials.Manganese - || aMaterial == Materials.Plastic - || aMaterial == Materials.Silicone - || aMaterial == Materials.PolyvinylChloride - || aMaterial == Materials.PolyphenyleneSulfide - || aMaterial == Materials.Nichrome - || aMaterial == Materials.BlackSteel - || aMaterial == Materials.Titanium + || aMaterial == Materials.StainlessSteel + || aMaterial == Materials.PigIron || aMaterial == Materials.TungstenSteel - || aMaterial == Materials.Tungsten + || aMaterial == Materials.HSSE || aMaterial == Materials.HSSG - || aMaterial == Materials.NaquadahAlloy - || aMaterial == Materials.Duranium + || aMaterial == Materials.Aluminium + || aMaterial == Materials.Copper + || aMaterial == Materials.Neodymium || aMaterial == Materials.Europium - || aMaterial == Materials.Bedrockium)) - foil.mDisabledItems.add(aMaterial); - // Fine Wire - if (!enableUnusedFineWires && !(aMaterial == Materials.Steel || aMaterial == Materials.AnnealedCopper || aMaterial == Materials.Platinum - || aMaterial == Materials.Osmium - || aMaterial == Materials.Tin - || aMaterial == Materials.Lead - || aMaterial == Materials.SolderingAlloy - || aMaterial == Materials.Copper - || aMaterial == Materials.Electrum || aMaterial == Materials.Gold - || aMaterial == Materials.RedAlloy - || aMaterial == Materials.Graphene - || aMaterial == Materials.NiobiumTitanium - || aMaterial == Materials.YttriumBariumCuprate - || aMaterial == Materials.BloodInfusedIron - || aMaterial == Materials.Universium - || aMaterial == Materials.MagnetohydrodynamicallyConstrainedStarMatter)) - wireFine.mDisabledItems.add(aMaterial); - // Gears - if (!enableUnusedGears && !(aMaterial == Materials.Aluminium || aMaterial == Materials.Titanium - || aMaterial == Materials.Iron - || aMaterial == Materials.Copper - || aMaterial == Materials.Tin - || aMaterial == Materials.Gold - || aMaterial == Materials.Stone - || aMaterial == Materials.Bronze - || aMaterial == Materials.Steel - || aMaterial == Materials.StainlessSteel - || aMaterial == Materials.TungstenSteel + || aMaterial == Materials.Uranium235 + || aMaterial == Materials.Plutonium241 + || aMaterial == Materials.Americium + || aMaterial == Materials.Brass + || aMaterial == Materials.Electrum + || aMaterial == Materials.NaquadahEnriched || aMaterial == Materials.CobaltBrass + || aMaterial == Materials.IronMagnetic + || aMaterial == Materials.SteelMagnetic + || aMaterial == Materials.NeodymiumMagnetic + || aMaterial == Materials.Samarium + || aMaterial == Materials.SamariumMagnetic + || aMaterial == Materials.VanadiumGallium || aMaterial == Materials.Diamond || aMaterial == Materials.Wood - || aMaterial == Materials.HSSG - || aMaterial == Materials.HSSE - || aMaterial == Materials.Neutronium)) - gearGt.mDisabledItems.add(aMaterial); - // Small Gears - if (!enableUnusedSmallGears && !(aMaterial == Materials.Aluminium || aMaterial == Materials.Titanium - || aMaterial == Materials.Steel - || aMaterial == Materials.StainlessSteel - || aMaterial == Materials.TungstenSteel - || aMaterial == Materials.HSSG - || aMaterial == Materials.HSSE - || aMaterial == Materials.Neutronium - || aMaterial == Materials.VanadiumGallium - || aMaterial == Materials.Naquadah)) - gearGtSmall.mDisabledItems.add(aMaterial); - // Bolts - if (!enableUnusedBolts && ((aMaterial.mTypes & 0x40) == 0) - && !(aMaterial == Materials.Titanium || aMaterial == Materials.Chrome - || aMaterial == Materials.Iron - || aMaterial == Materials.Tin - || aMaterial == Materials.Osmium - || aMaterial == Materials.Iridium - || aMaterial == Materials.Neutronium - || aMaterial == Materials.Bronze - || aMaterial == Materials.WroughtIron - || aMaterial == Materials.Steel - || aMaterial == Materials.StainlessSteel - || aMaterial == Materials.PigIron - || aMaterial == Materials.TungstenSteel - || aMaterial == Materials.Tungsten - || aMaterial == Materials.HSSE - || aMaterial == Materials.HSSG)) - bolt.mDisabledItems.add(aMaterial); - // Screws - if (!enableUnusedScrews && ((aMaterial.mTypes & 0x40) == 0) - && !(aMaterial == Materials.Titanium || aMaterial == Materials.Chrome - || aMaterial == Materials.Iron - || aMaterial == Materials.Tin - || aMaterial == Materials.Osmium - || aMaterial == Materials.Iridium - || aMaterial == Materials.Neutronium - || aMaterial == Materials.Bronze - || aMaterial == Materials.WroughtIron - || aMaterial == Materials.Steel - || aMaterial == Materials.StainlessSteel - || aMaterial == Materials.PigIron - || aMaterial == Materials.TungstenSteel - || aMaterial == Materials.HSSE - || aMaterial == Materials.HSSG)) - screw.mDisabledItems.add(aMaterial); - // Rods - if (!enableUnusedRods && ((aMaterial.mTypes & 0x40) == 0) - && !(aMaterial == Materials.Titanium || aMaterial == Materials.Chrome - || aMaterial == Materials.Iron - || aMaterial == Materials.Tin - || aMaterial == Materials.Osmium - || aMaterial == Materials.Iridium - || aMaterial == Materials.Neutronium - || aMaterial == Materials.Bronze - || aMaterial == Materials.WroughtIron - || aMaterial == Materials.Steel - || aMaterial == Materials.StainlessSteel - || aMaterial == Materials.PigIron - || aMaterial == Materials.TungstenSteel - || aMaterial == Materials.HSSE - || aMaterial == Materials.HSSG - || aMaterial == Materials.Aluminium - || aMaterial == Materials.Copper - || aMaterial == Materials.Neodymium - || aMaterial == Materials.Europium - || aMaterial == Materials.Platinum - || aMaterial == Materials.Gold - || aMaterial == Materials.Uranium235 - || aMaterial == Materials.Plutonium241 - || aMaterial == Materials.Americium - || aMaterial == Materials.Brass - || aMaterial == Materials.Electrum - || aMaterial == Materials.NaquadahEnriched - || aMaterial == Materials.CobaltBrass - || aMaterial == Materials.IronMagnetic - || aMaterial == Materials.SteelMagnetic - || aMaterial == Materials.NeodymiumMagnetic - || aMaterial == Materials.Samarium - || aMaterial == Materials.SamariumMagnetic - || aMaterial == Materials.VanadiumGallium - || aMaterial == Materials.Diamond - || aMaterial == Materials.Wood - || aMaterial == Materials.Plastic - || aMaterial == Materials.Lead - || aMaterial == Materials.SolderingAlloy - || aMaterial == Materials.Lapis - || aMaterial == Materials.Lazurite - || aMaterial == Materials.Sodalite - || aMaterial == Materials.PolyvinylChloride)) + || aMaterial == Materials.Plastic + || aMaterial == Materials.Lead + || aMaterial == Materials.SolderingAlloy + || aMaterial == Materials.Lapis + || aMaterial == Materials.Lazurite + || aMaterial == Materials.Sodalite + || aMaterial == Materials.PolyvinylChloride)) stick.mDisabledItems.add(aMaterial); // Long Rods if (!enableUnusedLongRods && ((aMaterial.mTypes & 0x40) == 0) - && !(aMaterial == Materials.Titanium || aMaterial == Materials.NeodymiumMagnetic - || aMaterial == Materials.SamariumMagnetic - || aMaterial == Materials.HSSG - || aMaterial == Materials.HSSE - || aMaterial == Materials.Neutronium - || aMaterial == Materials.Americium - || aMaterial == Materials.WroughtIron - || aMaterial == Materials.Magnalium - || aMaterial == Materials.TungstenSteel)) + && !(aMaterial == Materials.Titanium || aMaterial == Materials.NeodymiumMagnetic + || aMaterial == Materials.SamariumMagnetic + || aMaterial == Materials.HSSG + || aMaterial == Materials.HSSE + || aMaterial == Materials.Neutronium + || aMaterial == Materials.Americium + || aMaterial == Materials.WroughtIron + || aMaterial == Materials.Magnalium + || aMaterial == Materials.TungstenSteel)) stickLong.mDisabledItems.add(aMaterial); if (!enableUnusedGems && ((aMaterial.mTypes & 0x04) == 0)) { @@ -1554,15 +1496,13 @@ public enum OrePrefixes { if (enablePerItemSettings) { StringBuilder aConfigPathSB = new StringBuilder(); aConfigPathSB.append("materialcomponents.") - .append(aMaterial.mConfigSection) - .append(".") - .append(aMaterial.mName); + .append(aMaterial.mConfigSection) + .append(".") + .append(aMaterial.mName); String aConfigPath = aConfigPathSB.toString(); for (OrePrefixes aPrefix : mPreventableComponents) { - boolean aEnableComponent = GregTech_API.sMaterialComponents.get( - aConfigPath, - aPrefix.toString(), - !aPrefix.mDisabledItems.contains(aMaterial)); + boolean aEnableComponent = GregTech_API.sMaterialComponents + .get(aConfigPath, aPrefix.toString(), !aPrefix.mDisabledItems.contains(aMaterial)); if (!aEnableComponent) { // Disable component if false and is not already in disabled list aPrefix.disableComponent(aMaterial); } else { // Enable component if true and is not already in enabled list @@ -1665,10 +1605,10 @@ public enum OrePrefixes { public boolean doGenerateItem(Materials aMaterial) { return aMaterial != null && aMaterial != Materials._NULL - && ((aMaterial.mTypes & mMaterialGenerationBits) != 0 || mGeneratedItems.contains(aMaterial)) - && !mNotGeneratedItems.contains(aMaterial) - && !mDisabledItems.contains(aMaterial) - && (mCondition == null || mCondition.isTrue(aMaterial)); + && ((aMaterial.mTypes & mMaterialGenerationBits) != 0 || mGeneratedItems.contains(aMaterial)) + && !mNotGeneratedItems.contains(aMaterial) + && !mDisabledItems.contains(aMaterial) + && (mCondition == null || mCondition.isTrue(aMaterial)); } public boolean ignoreMaterials(Materials... aMaterials) { @@ -1702,17 +1642,17 @@ public enum OrePrefixes { } if ((aMaterial != Materials._NULL || mIsSelfReferencing || !mIsMaterialBased) - && GT_Utility.isStackValid(aStack)) { + && GT_Utility.isStackValid(aStack)) { // if (Materials.mPreventableComponents.contains(this) && !this.mDynamicItems.contains(aMaterial)) return; for (IOreRecipeRegistrator tRegistrator : mOreProcessing) { if (D2) GT_Log.ore.println( - "Processing '" + aOreDictName - + "' with the Prefix '" - + name() - + "' and the Material '" - + aMaterial.mName - + "' at " - + GT_Utility.getClassName(tRegistrator)); + "Processing '" + aOreDictName + + "' with the Prefix '" + + name() + + "' and the Material '" + + aMaterial.mName + + "' at " + + GT_Utility.getClassName(tRegistrator)); tRegistrator.registerOre(this, aMaterial, aOreDictName, aModName, GT_Utility.copyAmount(1, aStack)); } } diff --git a/src/main/java/gregtech/api/enums/SoundResource.java b/src/main/java/gregtech/api/enums/SoundResource.java index 5d24abaea0..23887aebbf 100644 --- a/src/main/java/gregtech/api/enums/SoundResource.java +++ b/src/main/java/gregtech/api/enums/SoundResource.java @@ -305,9 +305,9 @@ public enum SoundResource { static { EnumSet.allOf(SoundResource.class) - .forEach(sound -> { if (sound.id >= 0) ID_SOUND_MAP.put(sound.id, sound); }); + .forEach(sound -> { if (sound.id >= 0) ID_SOUND_MAP.put(sound.id, sound); }); EnumSet.allOf(SoundResource.class) - .forEach(sound -> RESOURCE_STR_SOUND_MAP.put(sound.resourceLocation.toString(), sound)); + .forEach(sound -> RESOURCE_STR_SOUND_MAP.put(sound.resourceLocation.toString(), sound)); } /** diff --git a/src/main/java/gregtech/api/enums/SubTag.java b/src/main/java/gregtech/api/enums/SubTag.java index 1298e74f34..337a171d57 100644 --- a/src/main/java/gregtech/api/enums/SubTag.java +++ b/src/main/java/gregtech/api/enums/SubTag.java @@ -32,7 +32,7 @@ public final class SubTag implements ICondition { * listed are: Iron, Pyrite, PigIron, DeepIron, ShadowIron, WroughtIron and MeteoricIron. */ public static final SubTag BLASTFURNACE_CALCITE_DOUBLE = getNewSubTag("BLASTFURNACE_CALCITE_DOUBLE"), - BLASTFURNACE_CALCITE_TRIPLE = getNewSubTag("BLASTFURNACE_CALCITE_TRIPLE"); + BLASTFURNACE_CALCITE_TRIPLE = getNewSubTag("BLASTFURNACE_CALCITE_TRIPLE"); /** * Add this to a material with Direct Smelting to prevent the automatic generation of a Bricked/Bronze Blast Furnace @@ -72,7 +72,7 @@ public final class SubTag implements ICondition { * Add this to your Material if you want to have its Ore electromagnetically separated to give Neodymium. */ public static final SubTag ELECTROMAGNETIC_SEPERATION_NEODYMIUM = getNewSubTag( - "ELECTROMAGNETIC_SEPERATION_NEODYMIUM"); + "ELECTROMAGNETIC_SEPERATION_NEODYMIUM"); /** * Add this to your Material if you want to have its Ore giving Cinnabar Crystals on Pulverization. Already listed * are: Redstone diff --git a/src/main/java/gregtech/api/enums/TextureSet.java b/src/main/java/gregtech/api/enums/TextureSet.java index 78829ca01f..3fb15656e5 100644 --- a/src/main/java/gregtech/api/enums/TextureSet.java +++ b/src/main/java/gregtech/api/enums/TextureSet.java @@ -8,70 +8,66 @@ public class TextureSet { private static final String aTextVoidDir = "/void"; private static final TextureType[] IS_BLOCK_TEXTURE = new TextureType[] { TextureType.ITEM, TextureType.ITEM, - TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, - TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, - TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, - TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, - TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, - TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, - TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, - TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, - TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, - TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, - TextureType.ITEM, TextureType.ITEM, TextureType.BLOCK, TextureType.BLOCK, TextureType.BLOCK, - TextureType.BLOCK, TextureType.BLOCK, TextureType.BLOCK, TextureType.BLOCK, TextureType.BLOCK, - TextureType.BLOCK, TextureType.BLOCK, TextureType.BLOCK, TextureType.BLOCK, TextureType.BLOCK, - TextureType.BLOCK, TextureType.BLOCK, TextureType.BLOCK, TextureType.BLOCK, TextureType.BLOCK, - TextureType.BLOCK, TextureType.BLOCK, TextureType.BLOCK, TextureType.BLOCK, TextureType.BLOCK, - TextureType.BLOCK, TextureType.BLOCK, TextureType.BLOCK, TextureType.BLOCK, TextureType.BLOCK, - TextureType.BLOCK, TextureType.BLOCK, TextureType.BLOCK, TextureType.BLOCK, TextureType.ITEM, - TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, - TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, - TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, - TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, - TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, - TextureType.ITEM, }; + TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, + TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, + TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, + TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, + TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, + TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, + TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, + TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, + TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, + TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, + TextureType.ITEM, TextureType.ITEM, TextureType.BLOCK, TextureType.BLOCK, TextureType.BLOCK, TextureType.BLOCK, + TextureType.BLOCK, TextureType.BLOCK, TextureType.BLOCK, TextureType.BLOCK, TextureType.BLOCK, + TextureType.BLOCK, TextureType.BLOCK, TextureType.BLOCK, TextureType.BLOCK, TextureType.BLOCK, + TextureType.BLOCK, TextureType.BLOCK, TextureType.BLOCK, TextureType.BLOCK, TextureType.BLOCK, + TextureType.BLOCK, TextureType.BLOCK, TextureType.BLOCK, TextureType.BLOCK, TextureType.BLOCK, + TextureType.BLOCK, TextureType.BLOCK, TextureType.BLOCK, TextureType.BLOCK, TextureType.BLOCK, + TextureType.BLOCK, TextureType.BLOCK, TextureType.BLOCK, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, + TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, + TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, + TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, + TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, + TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, TextureType.ITEM, }; private static final String[] SUFFIXES = new String[] { "/dustTiny", "/dustSmall", "/dust", "/dustImpure", - "/dustPure", "/crushed", "/crushedPurified", "/crushedCentrifuged", "/gem", "/nugget", "/casingSmall", - "/ingot", "/ingotHot", "/ingotDouble", "/ingotTriple", "/ingotQuadruple", "/ingotQuintuple", "/plate", - "/plateDouble", "/plateTriple", "/plateQuadruple", "/plateQuintuple", "/plateDense", "/stick", "/lens", - "/round", "/bolt", "/screw", "/ring", "/foil", "/cell", "/cellPlasma", "/toolHeadSword", "/toolHeadPickaxe", - "/toolHeadShovel", "/toolHeadAxe", "/toolHeadHoe", "/toolHeadHammer", "/toolHeadFile", "/toolHeadSaw", - "/toolHeadDrill", "/toolHeadChainsaw", "/toolHeadWrench", "/toolHeadUniversalSpade", "/toolHeadSense", - "/toolHeadPlow", "/toolHeadArrow", "/toolHeadScrewdriver", "/toolHeadBuzzSaw", "/toolHeadSoldering", - "/nanites", "/wireFine", "/gearGtSmall", "/rotor", "/stickLong", "/springSmall", "/spring", "/arrowGtWood", - "/arrowGtPlastic", "/gemChipped", "/gemFlawed", "/gemFlawless", "/gemExquisite", "/gearGt", aTextVoidDir, - aTextVoidDir, aTextVoidDir, "/oreSmall", "/ore", "/wire", "/foil", "/block1", "/block2", "/block3", - "/block4", "/block5", "/block6", "/pipeSide", "/pipeTiny", "/pipeSmall", "/pipeMedium", "/pipeLarge", - "/pipeHuge", "/frameGt", "/pipeQuadruple", "/pipeNonuple", aTextVoidDir, aTextVoidDir, aTextVoidDir, - aTextVoidDir, aTextVoidDir, aTextVoidDir, aTextVoidDir, aTextVoidDir, aTextVoidDir, aTextVoidDir, - "/crateGtDust", "/crateGtIngot", "/crateGtGem", "/crateGtPlate", "/turbineBlade", aTextVoidDir, - aTextVoidDir, aTextVoidDir, aTextVoidDir, aTextVoidDir, aTextVoidDir, aTextVoidDir, aTextVoidDir, - aTextVoidDir, aTextVoidDir, aTextVoidDir, aTextVoidDir, aTextVoidDir, aTextVoidDir, aTextVoidDir, - aTextVoidDir, aTextVoidDir, aTextVoidDir, aTextVoidDir, aTextVoidDir, aTextVoidDir, aTextVoidDir, - aTextVoidDir, aTextVoidDir, aTextVoidDir, "/handleMallet", "/toolHeadMallet", }; + "/dustPure", "/crushed", "/crushedPurified", "/crushedCentrifuged", "/gem", "/nugget", "/casingSmall", "/ingot", + "/ingotHot", "/ingotDouble", "/ingotTriple", "/ingotQuadruple", "/ingotQuintuple", "/plate", "/plateDouble", + "/plateTriple", "/plateQuadruple", "/plateQuintuple", "/plateDense", "/stick", "/lens", "/round", "/bolt", + "/screw", "/ring", "/foil", "/cell", "/cellPlasma", "/toolHeadSword", "/toolHeadPickaxe", "/toolHeadShovel", + "/toolHeadAxe", "/toolHeadHoe", "/toolHeadHammer", "/toolHeadFile", "/toolHeadSaw", "/toolHeadDrill", + "/toolHeadChainsaw", "/toolHeadWrench", "/toolHeadUniversalSpade", "/toolHeadSense", "/toolHeadPlow", + "/toolHeadArrow", "/toolHeadScrewdriver", "/toolHeadBuzzSaw", "/toolHeadSoldering", "/nanites", "/wireFine", + "/gearGtSmall", "/rotor", "/stickLong", "/springSmall", "/spring", "/arrowGtWood", "/arrowGtPlastic", + "/gemChipped", "/gemFlawed", "/gemFlawless", "/gemExquisite", "/gearGt", aTextVoidDir, aTextVoidDir, + aTextVoidDir, "/oreSmall", "/ore", "/wire", "/foil", "/block1", "/block2", "/block3", "/block4", "/block5", + "/block6", "/pipeSide", "/pipeTiny", "/pipeSmall", "/pipeMedium", "/pipeLarge", "/pipeHuge", "/frameGt", + "/pipeQuadruple", "/pipeNonuple", aTextVoidDir, aTextVoidDir, aTextVoidDir, aTextVoidDir, aTextVoidDir, + aTextVoidDir, aTextVoidDir, aTextVoidDir, aTextVoidDir, aTextVoidDir, "/crateGtDust", "/crateGtIngot", + "/crateGtGem", "/crateGtPlate", "/turbineBlade", aTextVoidDir, aTextVoidDir, aTextVoidDir, aTextVoidDir, + aTextVoidDir, aTextVoidDir, aTextVoidDir, aTextVoidDir, aTextVoidDir, aTextVoidDir, aTextVoidDir, aTextVoidDir, + aTextVoidDir, aTextVoidDir, aTextVoidDir, aTextVoidDir, aTextVoidDir, aTextVoidDir, aTextVoidDir, aTextVoidDir, + aTextVoidDir, aTextVoidDir, aTextVoidDir, aTextVoidDir, aTextVoidDir, "/handleMallet", "/toolHeadMallet", }; public boolean is_custom = false; public static final TextureSet SET_NONE = new TextureSet("NONE"), SET_DULL = new TextureSet("DULL"), - SET_RUBY = new TextureSet("RUBY"), SET_OPAL = new TextureSet("OPAL"), SET_LEAF = new TextureSet("LEAF"), - SET_WOOD = new TextureSet("WOOD"), SET_SAND = new TextureSet("SAND"), SET_FINE = new TextureSet("FINE"), - SET_FIERY = new TextureSet("FIERY"), SET_FLUID = new TextureSet("FLUID"), - SET_ROUGH = new TextureSet("ROUGH"), SET_PAPER = new TextureSet("PAPER"), - SET_GLASS = new TextureSet("GLASS"), SET_FLINT = new TextureSet("FLINT"), - SET_LAPIS = new TextureSet("LAPIS"), SET_SHINY = new TextureSet("SHINY"), - SET_SHARDS = new TextureSet("SHARDS"), SET_POWDER = new TextureSet("POWDER"), - SET_QUARTZ = new TextureSet("QUARTZ"), SET_EMERALD = new TextureSet("EMERALD"), - SET_DIAMOND = new TextureSet("DIAMOND"), SET_LIGNITE = new TextureSet("LIGNITE"), - SET_MAGNETIC = new TextureSet("MAGNETIC"), SET_METALLIC = new TextureSet("METALLIC"), - SET_NETHERSTAR = new TextureSet("NETHERSTAR"), SET_GEM_VERTICAL = new TextureSet("GEM_VERTICAL"), - SET_GEM_HORIZONTAL = new TextureSet("GEM_HORIZONTAL"); + SET_RUBY = new TextureSet("RUBY"), SET_OPAL = new TextureSet("OPAL"), SET_LEAF = new TextureSet("LEAF"), + SET_WOOD = new TextureSet("WOOD"), SET_SAND = new TextureSet("SAND"), SET_FINE = new TextureSet("FINE"), + SET_FIERY = new TextureSet("FIERY"), SET_FLUID = new TextureSet("FLUID"), SET_ROUGH = new TextureSet("ROUGH"), + SET_PAPER = new TextureSet("PAPER"), SET_GLASS = new TextureSet("GLASS"), SET_FLINT = new TextureSet("FLINT"), + SET_LAPIS = new TextureSet("LAPIS"), SET_SHINY = new TextureSet("SHINY"), SET_SHARDS = new TextureSet("SHARDS"), + SET_POWDER = new TextureSet("POWDER"), SET_QUARTZ = new TextureSet("QUARTZ"), + SET_EMERALD = new TextureSet("EMERALD"), SET_DIAMOND = new TextureSet("DIAMOND"), + SET_LIGNITE = new TextureSet("LIGNITE"), SET_MAGNETIC = new TextureSet("MAGNETIC"), + SET_METALLIC = new TextureSet("METALLIC"), SET_NETHERSTAR = new TextureSet("NETHERSTAR"), + SET_GEM_VERTICAL = new TextureSet("GEM_VERTICAL"), SET_GEM_HORIZONTAL = new TextureSet("GEM_HORIZONTAL"); /** * For the Indices of OrePrefixes you need to look into the OrePrefix Enum. */ public static final short INDEX_wire = 69, INDEX_foil = 70, INDEX_block1 = 71, INDEX_block2 = 72, INDEX_block3 = 73, - INDEX_block4 = 74, INDEX_block5 = 75, INDEX_block6 = 76; + INDEX_block4 = 74, INDEX_block5 = 75, INDEX_block6 = 76; public final IIconContainer[] mTextures = new IIconContainer[128]; public final String mSetName; diff --git a/src/main/java/gregtech/api/enums/Textures.java b/src/main/java/gregtech/api/enums/Textures.java index f554ee852c..fc2f0bb8e0 100644 --- a/src/main/java/gregtech/api/enums/Textures.java +++ b/src/main/java/gregtech/api/enums/Textures.java @@ -1354,302 +1354,295 @@ public class Textures { * Icons for Hardened CFoam 0 = No Color 1 - 16 = Colors */ public static final ITexture[][] HARDENEDFOAMS = { - new ITexture[] { TextureFactory.of(CFOAM_HARDENED, Dyes.CONSTRUCTION_FOAM.mRGBa) }, - new ITexture[] { TextureFactory.of(CFOAM_HARDENED, Dyes.VALUES[0].mRGBa) }, - new ITexture[] { TextureFactory.of(CFOAM_HARDENED, Dyes.VALUES[1].mRGBa) }, - new ITexture[] { TextureFactory.of(CFOAM_HARDENED, Dyes.VALUES[2].mRGBa) }, - new ITexture[] { TextureFactory.of(CFOAM_HARDENED, Dyes.VALUES[3].mRGBa) }, - new ITexture[] { TextureFactory.of(CFOAM_HARDENED, Dyes.VALUES[4].mRGBa) }, - new ITexture[] { TextureFactory.of(CFOAM_HARDENED, Dyes.VALUES[5].mRGBa) }, - new ITexture[] { TextureFactory.of(CFOAM_HARDENED, Dyes.VALUES[6].mRGBa) }, - new ITexture[] { TextureFactory.of(CFOAM_HARDENED, Dyes.VALUES[7].mRGBa) }, - new ITexture[] { TextureFactory.of(CFOAM_HARDENED, Dyes.VALUES[8].mRGBa) }, - new ITexture[] { TextureFactory.of(CFOAM_HARDENED, Dyes.VALUES[9].mRGBa) }, - new ITexture[] { TextureFactory.of(CFOAM_HARDENED, Dyes.VALUES[10].mRGBa) }, - new ITexture[] { TextureFactory.of(CFOAM_HARDENED, Dyes.VALUES[11].mRGBa) }, - new ITexture[] { TextureFactory.of(CFOAM_HARDENED, Dyes.VALUES[12].mRGBa) }, - new ITexture[] { TextureFactory.of(CFOAM_HARDENED, Dyes.VALUES[13].mRGBa) }, - new ITexture[] { TextureFactory.of(CFOAM_HARDENED, Dyes.VALUES[14].mRGBa) }, - new ITexture[] { TextureFactory.of(CFOAM_HARDENED, Dyes.VALUES[15].mRGBa) } }; + new ITexture[] { TextureFactory.of(CFOAM_HARDENED, Dyes.CONSTRUCTION_FOAM.mRGBa) }, + new ITexture[] { TextureFactory.of(CFOAM_HARDENED, Dyes.VALUES[0].mRGBa) }, + new ITexture[] { TextureFactory.of(CFOAM_HARDENED, Dyes.VALUES[1].mRGBa) }, + new ITexture[] { TextureFactory.of(CFOAM_HARDENED, Dyes.VALUES[2].mRGBa) }, + new ITexture[] { TextureFactory.of(CFOAM_HARDENED, Dyes.VALUES[3].mRGBa) }, + new ITexture[] { TextureFactory.of(CFOAM_HARDENED, Dyes.VALUES[4].mRGBa) }, + new ITexture[] { TextureFactory.of(CFOAM_HARDENED, Dyes.VALUES[5].mRGBa) }, + new ITexture[] { TextureFactory.of(CFOAM_HARDENED, Dyes.VALUES[6].mRGBa) }, + new ITexture[] { TextureFactory.of(CFOAM_HARDENED, Dyes.VALUES[7].mRGBa) }, + new ITexture[] { TextureFactory.of(CFOAM_HARDENED, Dyes.VALUES[8].mRGBa) }, + new ITexture[] { TextureFactory.of(CFOAM_HARDENED, Dyes.VALUES[9].mRGBa) }, + new ITexture[] { TextureFactory.of(CFOAM_HARDENED, Dyes.VALUES[10].mRGBa) }, + new ITexture[] { TextureFactory.of(CFOAM_HARDENED, Dyes.VALUES[11].mRGBa) }, + new ITexture[] { TextureFactory.of(CFOAM_HARDENED, Dyes.VALUES[12].mRGBa) }, + new ITexture[] { TextureFactory.of(CFOAM_HARDENED, Dyes.VALUES[13].mRGBa) }, + new ITexture[] { TextureFactory.of(CFOAM_HARDENED, Dyes.VALUES[14].mRGBa) }, + new ITexture[] { TextureFactory.of(CFOAM_HARDENED, Dyes.VALUES[15].mRGBa) } }; /** * Machine Casings by Tier 0 = 8V, 1 = LV, 2 = MV, 3 = HV, 4 = EV, 5 = IV, 6 = IV, 7 = IV, 8 = IV, 9 = IV */ public static final IIconContainer[] MACHINECASINGS_SIDE = { MACHINE_8V_SIDE, MACHINE_LV_SIDE, MACHINE_MV_SIDE, - MACHINE_HV_SIDE, MACHINE_EV_SIDE, MACHINE_IV_SIDE, MACHINE_LuV_SIDE, MACHINE_ZPM_SIDE, MACHINE_UV_SIDE, - MACHINE_MAX_SIDE, MACHINE_UEV_SIDE, MACHINE_UIV_SIDE, MACHINE_UMV_SIDE, MACHINE_UXV_SIDE, - MACHINE_MAXV_SIDE, }, - MACHINECASINGS_TOP = { MACHINE_8V_TOP, MACHINE_LV_TOP, MACHINE_MV_TOP, MACHINE_HV_TOP, MACHINE_EV_TOP, - MACHINE_IV_TOP, MACHINE_LuV_TOP, MACHINE_ZPM_TOP, MACHINE_UV_TOP, MACHINE_MAX_TOP, - MACHINE_UEV_TOP, MACHINE_UIV_TOP, MACHINE_UMV_TOP, MACHINE_UXV_TOP, MACHINE_MAXV_TOP, }, - MACHINECASINGS_BOTTOM = { MACHINE_8V_BOTTOM, MACHINE_LV_BOTTOM, MACHINE_MV_BOTTOM, MACHINE_HV_BOTTOM, - MACHINE_EV_BOTTOM, MACHINE_IV_BOTTOM, MACHINE_LuV_BOTTOM, MACHINE_ZPM_BOTTOM, MACHINE_UV_BOTTOM, - MACHINE_MAX_BOTTOM, MACHINE_UEV_BOTTOM, MACHINE_UIV_BOTTOM, MACHINE_UMV_BOTTOM, - MACHINE_UXV_BOTTOM, MACHINE_MAXV_BOTTOM, }, - GRANITES = { GRANITE_BLACK_STONE, GRANITE_BLACK_COBBLE, GRANITE_BLACK_COBBLE_MOSSY, - GRANITE_BLACK_BRICKS, GRANITE_BLACK_BRICKS_CRACKED, GRANITE_BLACK_BRICKS_MOSSY, - GRANITE_BLACK_BRICKS_CHISELED, GRANITE_BLACK_SMOOTH, GRANITE_RED_STONE, GRANITE_RED_COBBLE, - GRANITE_RED_COBBLE_MOSSY, GRANITE_RED_BRICKS, GRANITE_RED_BRICKS_CRACKED, - GRANITE_RED_BRICKS_MOSSY, GRANITE_RED_BRICKS_CHISELED, GRANITE_RED_SMOOTH, }, - CONCRETES = { CONCRETE_DARK_STONE, CONCRETE_DARK_COBBLE, CONCRETE_DARK_COBBLE_MOSSY, - CONCRETE_DARK_BRICKS, CONCRETE_DARK_BRICKS_CRACKED, CONCRETE_DARK_BRICKS_MOSSY, - CONCRETE_DARK_BRICKS_CHISELED, CONCRETE_DARK_SMOOTH, CONCRETE_LIGHT_STONE, - CONCRETE_LIGHT_COBBLE, CONCRETE_LIGHT_COBBLE_MOSSY, CONCRETE_LIGHT_BRICKS, - CONCRETE_LIGHT_BRICKS_CRACKED, CONCRETE_LIGHT_BRICKS_MOSSY, CONCRETE_LIGHT_BRICKS_CHISELED, - CONCRETE_LIGHT_SMOOTH, }, - STONES = { MARBLE_STONE, MARBLE_COBBLE, MARBLE_COBBLE_MOSSY, MARBLE_BRICKS, MARBLE_BRICKS_CRACKED, - MARBLE_BRICKS_MOSSY, MARBLE_BRICKS_CHISELED, MARBLE_SMOOTH, BASALT_STONE, BASALT_COBBLE, - BASALT_COBBLE_MOSSY, BASALT_BRICKS, BASALT_BRICKS_CRACKED, BASALT_BRICKS_MOSSY, - BASALT_BRICKS_CHISELED, BASALT_SMOOTH, }, - TURBINE = { LARGETURBINE_ST1, LARGETURBINE_ST2, LARGETURBINE_ST3, LARGETURBINE_ST4, LARGETURBINE_ST5, - LARGETURBINE_ST6, LARGETURBINE_ST7, LARGETURBINE_ST8, LARGETURBINE_ST9 }, - TURBINE_ACTIVE = { LARGETURBINE_ST_ACTIVE1, LARGETURBINE_ST_ACTIVE2, LARGETURBINE_ST_ACTIVE3, - LARGETURBINE_ST_ACTIVE4, LARGETURBINE_ST_ACTIVE5, LARGETURBINE_ST_ACTIVE6, - LARGETURBINE_ST_ACTIVE7, LARGETURBINE_ST_ACTIVE8, LARGETURBINE_ST_ACTIVE9 }, - TURBINE_EMPTY = { LARGETURBINE_ST_EMPTY1, LARGETURBINE_ST_EMPTY2, LARGETURBINE_ST_EMPTY3, - LARGETURBINE_ST_EMPTY4, LARGETURBINE_ST_EMPTY5, LARGETURBINE_ST_EMPTY6, LARGETURBINE_ST_EMPTY7, - LARGETURBINE_ST_EMPTY8, LARGETURBINE_ST_EMPTY9 }, - TURBINE_NEW = { LARGETURBINE_NEW1, LARGETURBINE_NEW2, LARGETURBINE_NEW3, LARGETURBINE_NEW4, - LARGETURBINE_NEW5, LARGETURBINE_NEW6, LARGETURBINE_NEW7, LARGETURBINE_NEW8, LARGETURBINE_NEW9 }, - TURBINE_NEW_ACTIVE = { LARGETURBINE_NEW_ACTIVE1, LARGETURBINE_NEW_ACTIVE2, LARGETURBINE_NEW_ACTIVE3, - LARGETURBINE_NEW_ACTIVE4, LARGETURBINE_NEW_ACTIVE5, LARGETURBINE_NEW_ACTIVE6, - LARGETURBINE_NEW_ACTIVE7, LARGETURBINE_NEW_ACTIVE8, LARGETURBINE_NEW_ACTIVE9 }, - TURBINE_NEW_EMPTY = { LARGETURBINE_NEW_EMPTY1, LARGETURBINE_NEW_EMPTY2, LARGETURBINE_NEW_EMPTY3, - LARGETURBINE_NEW_EMPTY4, LARGETURBINE_NEW_EMPTY5, LARGETURBINE_NEW_EMPTY6, - LARGETURBINE_NEW_EMPTY7, LARGETURBINE_NEW_EMPTY8, LARGETURBINE_NEW_EMPTY9 }, - TURBINE1 = { LARGETURBINE_SS1, LARGETURBINE_SS2, LARGETURBINE_SS3, LARGETURBINE_SS4, LARGETURBINE_SS5, - LARGETURBINE_SS6, LARGETURBINE_SS7, LARGETURBINE_SS8, LARGETURBINE_SS9 }, - TURBINE_ACTIVE1 = { LARGETURBINE_SS_ACTIVE1, LARGETURBINE_SS_ACTIVE2, LARGETURBINE_SS_ACTIVE3, - LARGETURBINE_SS_ACTIVE4, LARGETURBINE_SS_ACTIVE5, LARGETURBINE_SS_ACTIVE6, - LARGETURBINE_SS_ACTIVE7, LARGETURBINE_SS_ACTIVE8, LARGETURBINE_SS_ACTIVE9 }, - TURBINE_EMPTY1 = { LARGETURBINE_SS_EMPTY1, LARGETURBINE_SS_EMPTY2, LARGETURBINE_SS_EMPTY3, - LARGETURBINE_SS_EMPTY4, LARGETURBINE_SS_EMPTY5, LARGETURBINE_SS_EMPTY6, LARGETURBINE_SS_EMPTY7, - LARGETURBINE_SS_EMPTY8, LARGETURBINE_SS_EMPTY9 }, - TURBINE2 = { LARGETURBINE_TI1, LARGETURBINE_TI2, LARGETURBINE_TI3, LARGETURBINE_TI4, LARGETURBINE_TI5, - LARGETURBINE_TI6, LARGETURBINE_TI7, LARGETURBINE_TI8, LARGETURBINE_TI9 }, - TURBINE_ACTIVE2 = { LARGETURBINE_TI_ACTIVE1, LARGETURBINE_TI_ACTIVE2, LARGETURBINE_TI_ACTIVE3, - LARGETURBINE_TI_ACTIVE4, LARGETURBINE_TI_ACTIVE5, LARGETURBINE_TI_ACTIVE6, - LARGETURBINE_TI_ACTIVE7, LARGETURBINE_TI_ACTIVE8, LARGETURBINE_TI_ACTIVE9 }, - TURBINE_EMPTY2 = { LARGETURBINE_TI_EMPTY1, LARGETURBINE_TI_EMPTY2, LARGETURBINE_TI_EMPTY3, - LARGETURBINE_TI_EMPTY4, LARGETURBINE_TI_EMPTY5, LARGETURBINE_TI_EMPTY6, LARGETURBINE_TI_EMPTY7, - LARGETURBINE_TI_EMPTY8, LARGETURBINE_TI_EMPTY9 }, - TURBINE3 = { LARGETURBINE_TU1, LARGETURBINE_TU2, LARGETURBINE_TU3, LARGETURBINE_TU4, LARGETURBINE_TU5, - LARGETURBINE_TU6, LARGETURBINE_TU7, LARGETURBINE_TU8, LARGETURBINE_TU9 }, - TURBINE_ACTIVE3 = { LARGETURBINE_TU_ACTIVE1, LARGETURBINE_TU_ACTIVE2, LARGETURBINE_TU_ACTIVE3, - LARGETURBINE_TU_ACTIVE4, LARGETURBINE_TU_ACTIVE5, LARGETURBINE_TU_ACTIVE6, - LARGETURBINE_TU_ACTIVE7, LARGETURBINE_TU_ACTIVE8, LARGETURBINE_TU_ACTIVE9 }, - TURBINE_EMPTY3 = { LARGETURBINE_TU_EMPTY1, LARGETURBINE_TU_EMPTY2, LARGETURBINE_TU_EMPTY3, - LARGETURBINE_TU_EMPTY4, LARGETURBINE_TU_EMPTY5, LARGETURBINE_TU_EMPTY6, LARGETURBINE_TU_EMPTY7, - LARGETURBINE_TU_EMPTY8, LARGETURBINE_TU_EMPTY9 }, - TURBINEADVGAS = { LARGETURBINE_ADVGAS1, LARGETURBINE_ADVGAS2, LARGETURBINE_ADVGAS3, - LARGETURBINE_ADVGAS4, LARGETURBINE_ADVGAS5, LARGETURBINE_ADVGAS6, LARGETURBINE_ADVGAS7, - LARGETURBINE_ADVGAS8, LARGETURBINE_ADVGAS9 }, - TURBINE_ADVGASACTIVE = { LARGETURBINE_ADVGAS_ACTIVE1, LARGETURBINE_ADVGAS_ACTIVE2, - LARGETURBINE_ADVGAS_ACTIVE3, LARGETURBINE_ADVGAS_ACTIVE4, LARGETURBINE_ADVGAS_ACTIVE5, - LARGETURBINE_ADVGAS_ACTIVE6, LARGETURBINE_ADVGAS_ACTIVE7, LARGETURBINE_ADVGAS_ACTIVE8, - LARGETURBINE_ADVGAS_ACTIVE9 }, - TURBINE_ADVGASEMPTY = { LARGETURBINE_ADVGAS_EMPTY1, LARGETURBINE_ADVGAS_EMPTY2, - LARGETURBINE_ADVGAS_EMPTY3, LARGETURBINE_ADVGAS_EMPTY4, LARGETURBINE_ADVGAS_EMPTY5, - LARGETURBINE_ADVGAS_EMPTY6, LARGETURBINE_ADVGAS_EMPTY7, LARGETURBINE_ADVGAS_EMPTY8, - LARGETURBINE_ADVGAS_EMPTY9 }, - CONNECTED_HULLS = { CONCRETE_DARK_STONE, FUSIONI_1, FUSIONI_2, FUSIONI_3, FUSIONI_4, FUSIONI_5, - FUSIONI_6, FUSIONI_7, FUSIONI_8, FUSIONI_9, FUSIONI_10, FUSIONI_11, FUSIONI_12, FUSIONII_1, - FUSIONII_2, FUSIONII_3, FUSIONII_4, FUSIONII_5, FUSIONII_6, FUSIONII_7, FUSIONII_8, FUSIONII_9, - FUSIONII_10, FUSIONII_11, FUSIONII_12, }, - STORAGE_BLOCKS1 = { BLOCK_ADAMANTIUM, BLOCK_ALUMINIUM, BLOCK_AMERICIUM, BLOCK_ANNEALEDCOPPER, - BLOCK_ANTIMONY, BLOCK_ARSENIC, BLOCK_ASTRALSILVER, BLOCK_BATTERYALLOY, BLOCK_BERYLLIUM, - BLOCK_BISMUTH, BLOCK_BISMUTHBRONZE, BLOCK_BLACKBRONZE, BLOCK_BLACKSTEEL, BLOCK_BLUEALLOY, - BLOCK_BLUESTEEL, BLOCK_BRASS }, - STORAGE_BLOCKS2 = { BLOCK_BRONZE, BLOCK_CAESIUM, BLOCK_CERIUM, BLOCK_CHROME, BLOCK_CHROMIUMDIOXIDE, - BLOCK_COBALT, BLOCK_COBALTBRASS, BLOCK_COPPER, BLOCK_CUPRONICKEL, BLOCK_DAMASCUSSTEEL, - BLOCK_DARKIRON, BLOCK_DEEPIRON, BLOCK_DESH, BLOCK_DURANIUM, BLOCK_DYSPROSIUM, BLOCK_ELECTRUM }, - STORAGE_BLOCKS3 = { BLOCK_ELECTRUMFLUX, BLOCK_ENDERIUM, BLOCK_ERBIUM, BLOCK_EUROPIUM, BLOCK_FIERYSTEEL, - BLOCK_GADOLINIUM, BLOCK_GALLIUM, BLOCK_HOLMIUM, BLOCK_HSLA, BLOCK_INDIUM, BLOCK_INFUSEDGOLD, - BLOCK_INVAR, BLOCK_IRIDIUM, BLOCK_IRONMAGNETIC, BLOCK_IRONWOOD, BLOCK_KANTHAL }, - STORAGE_BLOCKS4 = { BLOCK_KNIGHTMETAL, BLOCK_LANTHANUM, BLOCK_LEAD, BLOCK_LUTETIUM, BLOCK_MAGNALIUM, - BLOCK_MAGNESIUM, BLOCK_MANGANESE, BLOCK_METEORICIRON, BLOCK_METEORICSTEEL, BLOCK_TRINIUM, - BLOCK_MITHRIL, BLOCK_MOLYBDENUM, BLOCK_NAQUADAH, BLOCK_NAQUADAHALLOY, BLOCK_NAQUADAHENRICHED, - BLOCK_NAQUADRIA }, - STORAGE_BLOCKS5 = { BLOCK_NEODYMIUM, BLOCK_NEODYMIUMMAGNETIC, BLOCK_NEUTRONIUM, BLOCK_NICHROME, - BLOCK_NICKEL, BLOCK_NIOBIUM, BLOCK_NIOBIUMNITRIDE, BLOCK_NIOBIUMTITANIUM, BLOCK_OSMIRIDIUM, - BLOCK_OSMIUM, BLOCK_PALLADIUM, BLOCK_PIGIRON, BLOCK_PLATINUM, BLOCK_PLUTONIUM, - BLOCK_PLUTONIUM241, BLOCK_PRASEODYMIUM }, - STORAGE_BLOCKS6 = { BLOCK_PROMETHIUM, BLOCK_REDALLOY, BLOCK_REDSTEEL, BLOCK_ROSEGOLD, BLOCK_RUBIDIUM, - BLOCK_SAMARIUM, BLOCK_SCANDIUM, BLOCK_SHADOWIRON, BLOCK_SHADOWSTEEL, BLOCK_SILICON, - BLOCK_SILVER, BLOCK_SOLDERINGALLOY, BLOCK_STAINLESSSTEEL, BLOCK_STEEL, BLOCK_STEELMAGNETIC, - BLOCK_STERLINGSILVER }, - STORAGE_BLOCKS7 = { BLOCK_SUNNARIUM, BLOCK_TANTALUM, BLOCK_TELLURIUM, BLOCK_TERBIUM, BLOCK_THAUMIUM, - BLOCK_THORIUM, BLOCK_THULIUM, BLOCK_TIN, BLOCK_TINALLOY, BLOCK_TITANIUM, BLOCK_TRITANIUM, - BLOCK_TUNGSTEN, BLOCK_TUNGSTENSTEEL, BLOCK_ULTIMET, BLOCK_URANIUM, BLOCK_URANIUM235 }, - STORAGE_BLOCKS8 = { BLOCK_VANADIUM, BLOCK_VANADIUMGALLIUM, BLOCK_WROUGHTIRON, BLOCK_YTTRBIUM, - BLOCK_YTTRIUM, BLOCK_YTTRIUMBARIUMCUPRATE, BLOCK_ZINC, BLOCK_TUNGSTENCARBIDE, - BLOCK_VANADIUMSTEEL, BLOCK_HSSG, BLOCK_HSSE, BLOCK_HSSS, BLOCK_STEELEAF, BLOCK_ICHORIUM, - BLOCK_FIRESTONE, BLOCK_SHADOW }, - STORAGE_BLOCKS9 = { BLOCK_AERCRYSTAL, BLOCK_AMBER, BLOCK_AMETHYST, BLOCK_AQUACRYSTAL, BLOCK_BLUETOPAZ, - BLOCK_CERTUSQUARTZ, BLOCK_DILITHIUM, BLOCK_ENDEREYE, BLOCK_ENDERPEARL, BLOCK_FOOLSRUBY, - BLOCK_FORCE, BLOCK_FORCICIUM, BLOCK_FORCILLIUM, BLOCK_GREENSAPPHIRE, BLOCK_IGNISCRYSTAL, - BLOCK_JASPER }, - STORAGE_BLOCKS10 = { BLOCK_LAZURITE, BLOCK_LIGNITE, BLOCK_MONAZITE, BLOCK_NITER, BLOCK_OLIVINE, - BLOCK_OPAL, BLOCK_ORDOCRYSTAL, BLOCK_PERDITIOCRYSTAL, BLOCK_PHOSPHORUS, BLOCK_QUARTZITE, - BLOCK_REDGARNET, BLOCK_RUBY, BLOCK_SAPPHIRE, BLOCK_SODALITE, BLOCK_TANZANITE, - BLOCK_TERRACRYSTAL }, - STORAGE_BLOCKS11 = { BLOCK_TOPAZ, BLOCK_VINTEUM, BLOCK_YELLOWGARNET, BLOCK_NETHERSTAR, BLOCK_CHARCOAL, - BLOCK_BLAZE }, - STORAGE_BLOCKS12 = { BLOCK_CRYOLITE, BLOCK_SILICONSG, BLOCK_NICKELALUMINIUM, BLOCK_SPACETIME, - BLOCK_TRANSCENDENTMETAL, BLOCK_ORIHARUKON, BLOCK_WHITEDWARFMATTER, BLOCK_BLACKDWARFMATTER, - BLOCK_UNIVERSIUM }; + MACHINE_HV_SIDE, MACHINE_EV_SIDE, MACHINE_IV_SIDE, MACHINE_LuV_SIDE, MACHINE_ZPM_SIDE, MACHINE_UV_SIDE, + MACHINE_MAX_SIDE, MACHINE_UEV_SIDE, MACHINE_UIV_SIDE, MACHINE_UMV_SIDE, MACHINE_UXV_SIDE, + MACHINE_MAXV_SIDE, }, + MACHINECASINGS_TOP = { MACHINE_8V_TOP, MACHINE_LV_TOP, MACHINE_MV_TOP, MACHINE_HV_TOP, MACHINE_EV_TOP, + MACHINE_IV_TOP, MACHINE_LuV_TOP, MACHINE_ZPM_TOP, MACHINE_UV_TOP, MACHINE_MAX_TOP, MACHINE_UEV_TOP, + MACHINE_UIV_TOP, MACHINE_UMV_TOP, MACHINE_UXV_TOP, MACHINE_MAXV_TOP, }, + MACHINECASINGS_BOTTOM = { MACHINE_8V_BOTTOM, MACHINE_LV_BOTTOM, MACHINE_MV_BOTTOM, MACHINE_HV_BOTTOM, + MACHINE_EV_BOTTOM, MACHINE_IV_BOTTOM, MACHINE_LuV_BOTTOM, MACHINE_ZPM_BOTTOM, MACHINE_UV_BOTTOM, + MACHINE_MAX_BOTTOM, MACHINE_UEV_BOTTOM, MACHINE_UIV_BOTTOM, MACHINE_UMV_BOTTOM, MACHINE_UXV_BOTTOM, + MACHINE_MAXV_BOTTOM, }, + GRANITES = { GRANITE_BLACK_STONE, GRANITE_BLACK_COBBLE, GRANITE_BLACK_COBBLE_MOSSY, GRANITE_BLACK_BRICKS, + GRANITE_BLACK_BRICKS_CRACKED, GRANITE_BLACK_BRICKS_MOSSY, GRANITE_BLACK_BRICKS_CHISELED, + GRANITE_BLACK_SMOOTH, GRANITE_RED_STONE, GRANITE_RED_COBBLE, GRANITE_RED_COBBLE_MOSSY, + GRANITE_RED_BRICKS, GRANITE_RED_BRICKS_CRACKED, GRANITE_RED_BRICKS_MOSSY, GRANITE_RED_BRICKS_CHISELED, + GRANITE_RED_SMOOTH, }, + CONCRETES = { CONCRETE_DARK_STONE, CONCRETE_DARK_COBBLE, CONCRETE_DARK_COBBLE_MOSSY, CONCRETE_DARK_BRICKS, + CONCRETE_DARK_BRICKS_CRACKED, CONCRETE_DARK_BRICKS_MOSSY, CONCRETE_DARK_BRICKS_CHISELED, + CONCRETE_DARK_SMOOTH, CONCRETE_LIGHT_STONE, CONCRETE_LIGHT_COBBLE, CONCRETE_LIGHT_COBBLE_MOSSY, + CONCRETE_LIGHT_BRICKS, CONCRETE_LIGHT_BRICKS_CRACKED, CONCRETE_LIGHT_BRICKS_MOSSY, + CONCRETE_LIGHT_BRICKS_CHISELED, CONCRETE_LIGHT_SMOOTH, }, + STONES = { MARBLE_STONE, MARBLE_COBBLE, MARBLE_COBBLE_MOSSY, MARBLE_BRICKS, MARBLE_BRICKS_CRACKED, + MARBLE_BRICKS_MOSSY, MARBLE_BRICKS_CHISELED, MARBLE_SMOOTH, BASALT_STONE, BASALT_COBBLE, + BASALT_COBBLE_MOSSY, BASALT_BRICKS, BASALT_BRICKS_CRACKED, BASALT_BRICKS_MOSSY, BASALT_BRICKS_CHISELED, + BASALT_SMOOTH, }, + TURBINE = { LARGETURBINE_ST1, LARGETURBINE_ST2, LARGETURBINE_ST3, LARGETURBINE_ST4, LARGETURBINE_ST5, + LARGETURBINE_ST6, LARGETURBINE_ST7, LARGETURBINE_ST8, LARGETURBINE_ST9 }, + TURBINE_ACTIVE = { LARGETURBINE_ST_ACTIVE1, LARGETURBINE_ST_ACTIVE2, LARGETURBINE_ST_ACTIVE3, + LARGETURBINE_ST_ACTIVE4, LARGETURBINE_ST_ACTIVE5, LARGETURBINE_ST_ACTIVE6, LARGETURBINE_ST_ACTIVE7, + LARGETURBINE_ST_ACTIVE8, LARGETURBINE_ST_ACTIVE9 }, + TURBINE_EMPTY = { LARGETURBINE_ST_EMPTY1, LARGETURBINE_ST_EMPTY2, LARGETURBINE_ST_EMPTY3, + LARGETURBINE_ST_EMPTY4, LARGETURBINE_ST_EMPTY5, LARGETURBINE_ST_EMPTY6, LARGETURBINE_ST_EMPTY7, + LARGETURBINE_ST_EMPTY8, LARGETURBINE_ST_EMPTY9 }, + TURBINE_NEW = { LARGETURBINE_NEW1, LARGETURBINE_NEW2, LARGETURBINE_NEW3, LARGETURBINE_NEW4, + LARGETURBINE_NEW5, LARGETURBINE_NEW6, LARGETURBINE_NEW7, LARGETURBINE_NEW8, LARGETURBINE_NEW9 }, + TURBINE_NEW_ACTIVE = { LARGETURBINE_NEW_ACTIVE1, LARGETURBINE_NEW_ACTIVE2, LARGETURBINE_NEW_ACTIVE3, + LARGETURBINE_NEW_ACTIVE4, LARGETURBINE_NEW_ACTIVE5, LARGETURBINE_NEW_ACTIVE6, LARGETURBINE_NEW_ACTIVE7, + LARGETURBINE_NEW_ACTIVE8, LARGETURBINE_NEW_ACTIVE9 }, + TURBINE_NEW_EMPTY = { LARGETURBINE_NEW_EMPTY1, LARGETURBINE_NEW_EMPTY2, LARGETURBINE_NEW_EMPTY3, + LARGETURBINE_NEW_EMPTY4, LARGETURBINE_NEW_EMPTY5, LARGETURBINE_NEW_EMPTY6, LARGETURBINE_NEW_EMPTY7, + LARGETURBINE_NEW_EMPTY8, LARGETURBINE_NEW_EMPTY9 }, + TURBINE1 = { LARGETURBINE_SS1, LARGETURBINE_SS2, LARGETURBINE_SS3, LARGETURBINE_SS4, LARGETURBINE_SS5, + LARGETURBINE_SS6, LARGETURBINE_SS7, LARGETURBINE_SS8, LARGETURBINE_SS9 }, + TURBINE_ACTIVE1 = { LARGETURBINE_SS_ACTIVE1, LARGETURBINE_SS_ACTIVE2, LARGETURBINE_SS_ACTIVE3, + LARGETURBINE_SS_ACTIVE4, LARGETURBINE_SS_ACTIVE5, LARGETURBINE_SS_ACTIVE6, LARGETURBINE_SS_ACTIVE7, + LARGETURBINE_SS_ACTIVE8, LARGETURBINE_SS_ACTIVE9 }, + TURBINE_EMPTY1 = { LARGETURBINE_SS_EMPTY1, LARGETURBINE_SS_EMPTY2, LARGETURBINE_SS_EMPTY3, + LARGETURBINE_SS_EMPTY4, LARGETURBINE_SS_EMPTY5, LARGETURBINE_SS_EMPTY6, LARGETURBINE_SS_EMPTY7, + LARGETURBINE_SS_EMPTY8, LARGETURBINE_SS_EMPTY9 }, + TURBINE2 = { LARGETURBINE_TI1, LARGETURBINE_TI2, LARGETURBINE_TI3, LARGETURBINE_TI4, LARGETURBINE_TI5, + LARGETURBINE_TI6, LARGETURBINE_TI7, LARGETURBINE_TI8, LARGETURBINE_TI9 }, + TURBINE_ACTIVE2 = { LARGETURBINE_TI_ACTIVE1, LARGETURBINE_TI_ACTIVE2, LARGETURBINE_TI_ACTIVE3, + LARGETURBINE_TI_ACTIVE4, LARGETURBINE_TI_ACTIVE5, LARGETURBINE_TI_ACTIVE6, LARGETURBINE_TI_ACTIVE7, + LARGETURBINE_TI_ACTIVE8, LARGETURBINE_TI_ACTIVE9 }, + TURBINE_EMPTY2 = { LARGETURBINE_TI_EMPTY1, LARGETURBINE_TI_EMPTY2, LARGETURBINE_TI_EMPTY3, + LARGETURBINE_TI_EMPTY4, LARGETURBINE_TI_EMPTY5, LARGETURBINE_TI_EMPTY6, LARGETURBINE_TI_EMPTY7, + LARGETURBINE_TI_EMPTY8, LARGETURBINE_TI_EMPTY9 }, + TURBINE3 = { LARGETURBINE_TU1, LARGETURBINE_TU2, LARGETURBINE_TU3, LARGETURBINE_TU4, LARGETURBINE_TU5, + LARGETURBINE_TU6, LARGETURBINE_TU7, LARGETURBINE_TU8, LARGETURBINE_TU9 }, + TURBINE_ACTIVE3 = { LARGETURBINE_TU_ACTIVE1, LARGETURBINE_TU_ACTIVE2, LARGETURBINE_TU_ACTIVE3, + LARGETURBINE_TU_ACTIVE4, LARGETURBINE_TU_ACTIVE5, LARGETURBINE_TU_ACTIVE6, LARGETURBINE_TU_ACTIVE7, + LARGETURBINE_TU_ACTIVE8, LARGETURBINE_TU_ACTIVE9 }, + TURBINE_EMPTY3 = { LARGETURBINE_TU_EMPTY1, LARGETURBINE_TU_EMPTY2, LARGETURBINE_TU_EMPTY3, + LARGETURBINE_TU_EMPTY4, LARGETURBINE_TU_EMPTY5, LARGETURBINE_TU_EMPTY6, LARGETURBINE_TU_EMPTY7, + LARGETURBINE_TU_EMPTY8, LARGETURBINE_TU_EMPTY9 }, + TURBINEADVGAS = { LARGETURBINE_ADVGAS1, LARGETURBINE_ADVGAS2, LARGETURBINE_ADVGAS3, LARGETURBINE_ADVGAS4, + LARGETURBINE_ADVGAS5, LARGETURBINE_ADVGAS6, LARGETURBINE_ADVGAS7, LARGETURBINE_ADVGAS8, + LARGETURBINE_ADVGAS9 }, + TURBINE_ADVGASACTIVE = { LARGETURBINE_ADVGAS_ACTIVE1, LARGETURBINE_ADVGAS_ACTIVE2, + LARGETURBINE_ADVGAS_ACTIVE3, LARGETURBINE_ADVGAS_ACTIVE4, LARGETURBINE_ADVGAS_ACTIVE5, + LARGETURBINE_ADVGAS_ACTIVE6, LARGETURBINE_ADVGAS_ACTIVE7, LARGETURBINE_ADVGAS_ACTIVE8, + LARGETURBINE_ADVGAS_ACTIVE9 }, + TURBINE_ADVGASEMPTY = { LARGETURBINE_ADVGAS_EMPTY1, LARGETURBINE_ADVGAS_EMPTY2, LARGETURBINE_ADVGAS_EMPTY3, + LARGETURBINE_ADVGAS_EMPTY4, LARGETURBINE_ADVGAS_EMPTY5, LARGETURBINE_ADVGAS_EMPTY6, + LARGETURBINE_ADVGAS_EMPTY7, LARGETURBINE_ADVGAS_EMPTY8, LARGETURBINE_ADVGAS_EMPTY9 }, + CONNECTED_HULLS = { CONCRETE_DARK_STONE, FUSIONI_1, FUSIONI_2, FUSIONI_3, FUSIONI_4, FUSIONI_5, FUSIONI_6, + FUSIONI_7, FUSIONI_8, FUSIONI_9, FUSIONI_10, FUSIONI_11, FUSIONI_12, FUSIONII_1, FUSIONII_2, FUSIONII_3, + FUSIONII_4, FUSIONII_5, FUSIONII_6, FUSIONII_7, FUSIONII_8, FUSIONII_9, FUSIONII_10, FUSIONII_11, + FUSIONII_12, }, + STORAGE_BLOCKS1 = { BLOCK_ADAMANTIUM, BLOCK_ALUMINIUM, BLOCK_AMERICIUM, BLOCK_ANNEALEDCOPPER, + BLOCK_ANTIMONY, BLOCK_ARSENIC, BLOCK_ASTRALSILVER, BLOCK_BATTERYALLOY, BLOCK_BERYLLIUM, BLOCK_BISMUTH, + BLOCK_BISMUTHBRONZE, BLOCK_BLACKBRONZE, BLOCK_BLACKSTEEL, BLOCK_BLUEALLOY, BLOCK_BLUESTEEL, + BLOCK_BRASS }, + STORAGE_BLOCKS2 = { BLOCK_BRONZE, BLOCK_CAESIUM, BLOCK_CERIUM, BLOCK_CHROME, BLOCK_CHROMIUMDIOXIDE, + BLOCK_COBALT, BLOCK_COBALTBRASS, BLOCK_COPPER, BLOCK_CUPRONICKEL, BLOCK_DAMASCUSSTEEL, BLOCK_DARKIRON, + BLOCK_DEEPIRON, BLOCK_DESH, BLOCK_DURANIUM, BLOCK_DYSPROSIUM, BLOCK_ELECTRUM }, + STORAGE_BLOCKS3 = { BLOCK_ELECTRUMFLUX, BLOCK_ENDERIUM, BLOCK_ERBIUM, BLOCK_EUROPIUM, BLOCK_FIERYSTEEL, + BLOCK_GADOLINIUM, BLOCK_GALLIUM, BLOCK_HOLMIUM, BLOCK_HSLA, BLOCK_INDIUM, BLOCK_INFUSEDGOLD, + BLOCK_INVAR, BLOCK_IRIDIUM, BLOCK_IRONMAGNETIC, BLOCK_IRONWOOD, BLOCK_KANTHAL }, + STORAGE_BLOCKS4 = { BLOCK_KNIGHTMETAL, BLOCK_LANTHANUM, BLOCK_LEAD, BLOCK_LUTETIUM, BLOCK_MAGNALIUM, + BLOCK_MAGNESIUM, BLOCK_MANGANESE, BLOCK_METEORICIRON, BLOCK_METEORICSTEEL, BLOCK_TRINIUM, BLOCK_MITHRIL, + BLOCK_MOLYBDENUM, BLOCK_NAQUADAH, BLOCK_NAQUADAHALLOY, BLOCK_NAQUADAHENRICHED, BLOCK_NAQUADRIA }, + STORAGE_BLOCKS5 = { BLOCK_NEODYMIUM, BLOCK_NEODYMIUMMAGNETIC, BLOCK_NEUTRONIUM, BLOCK_NICHROME, + BLOCK_NICKEL, BLOCK_NIOBIUM, BLOCK_NIOBIUMNITRIDE, BLOCK_NIOBIUMTITANIUM, BLOCK_OSMIRIDIUM, + BLOCK_OSMIUM, BLOCK_PALLADIUM, BLOCK_PIGIRON, BLOCK_PLATINUM, BLOCK_PLUTONIUM, BLOCK_PLUTONIUM241, + BLOCK_PRASEODYMIUM }, + STORAGE_BLOCKS6 = { BLOCK_PROMETHIUM, BLOCK_REDALLOY, BLOCK_REDSTEEL, BLOCK_ROSEGOLD, BLOCK_RUBIDIUM, + BLOCK_SAMARIUM, BLOCK_SCANDIUM, BLOCK_SHADOWIRON, BLOCK_SHADOWSTEEL, BLOCK_SILICON, BLOCK_SILVER, + BLOCK_SOLDERINGALLOY, BLOCK_STAINLESSSTEEL, BLOCK_STEEL, BLOCK_STEELMAGNETIC, BLOCK_STERLINGSILVER }, + STORAGE_BLOCKS7 = { BLOCK_SUNNARIUM, BLOCK_TANTALUM, BLOCK_TELLURIUM, BLOCK_TERBIUM, BLOCK_THAUMIUM, + BLOCK_THORIUM, BLOCK_THULIUM, BLOCK_TIN, BLOCK_TINALLOY, BLOCK_TITANIUM, BLOCK_TRITANIUM, + BLOCK_TUNGSTEN, BLOCK_TUNGSTENSTEEL, BLOCK_ULTIMET, BLOCK_URANIUM, BLOCK_URANIUM235 }, + STORAGE_BLOCKS8 = { BLOCK_VANADIUM, BLOCK_VANADIUMGALLIUM, BLOCK_WROUGHTIRON, BLOCK_YTTRBIUM, BLOCK_YTTRIUM, + BLOCK_YTTRIUMBARIUMCUPRATE, BLOCK_ZINC, BLOCK_TUNGSTENCARBIDE, BLOCK_VANADIUMSTEEL, BLOCK_HSSG, + BLOCK_HSSE, BLOCK_HSSS, BLOCK_STEELEAF, BLOCK_ICHORIUM, BLOCK_FIRESTONE, BLOCK_SHADOW }, + STORAGE_BLOCKS9 = { BLOCK_AERCRYSTAL, BLOCK_AMBER, BLOCK_AMETHYST, BLOCK_AQUACRYSTAL, BLOCK_BLUETOPAZ, + BLOCK_CERTUSQUARTZ, BLOCK_DILITHIUM, BLOCK_ENDEREYE, BLOCK_ENDERPEARL, BLOCK_FOOLSRUBY, BLOCK_FORCE, + BLOCK_FORCICIUM, BLOCK_FORCILLIUM, BLOCK_GREENSAPPHIRE, BLOCK_IGNISCRYSTAL, BLOCK_JASPER }, + STORAGE_BLOCKS10 = { BLOCK_LAZURITE, BLOCK_LIGNITE, BLOCK_MONAZITE, BLOCK_NITER, BLOCK_OLIVINE, BLOCK_OPAL, + BLOCK_ORDOCRYSTAL, BLOCK_PERDITIOCRYSTAL, BLOCK_PHOSPHORUS, BLOCK_QUARTZITE, BLOCK_REDGARNET, + BLOCK_RUBY, BLOCK_SAPPHIRE, BLOCK_SODALITE, BLOCK_TANZANITE, BLOCK_TERRACRYSTAL }, + STORAGE_BLOCKS11 = { BLOCK_TOPAZ, BLOCK_VINTEUM, BLOCK_YELLOWGARNET, BLOCK_NETHERSTAR, BLOCK_CHARCOAL, + BLOCK_BLAZE }, + STORAGE_BLOCKS12 = { BLOCK_CRYOLITE, BLOCK_SILICONSG, BLOCK_NICKELALUMINIUM, BLOCK_SPACETIME, + BLOCK_TRANSCENDENTMETAL, BLOCK_ORIHARUKON, BLOCK_WHITEDWARFMATTER, BLOCK_BLACKDWARFMATTER, + BLOCK_UNIVERSIUM }; public static final ITexture[] HIDDEN_TEXTURE = { TextureFactory.builder() - .addIcon(HIDDEN_FACE) - .stdOrient() - .build() }; + .addIcon(HIDDEN_FACE) + .stdOrient() + .build() }; public static final ITexture[] ERROR_RENDERING = { TextureFactory.of(RENDERING_ERROR) }; public static final ITexture[] OVERLAYS_ENERGY_IN = { - TextureFactory.of(OVERLAY_ENERGY_IN, new short[] { 180, 180, 180, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN, new short[] { 220, 220, 220, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN, new short[] { 255, 100, 0, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN, new short[] { 255, 255, 30, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN, new short[] { 128, 128, 128, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN, new short[] { 240, 240, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN, new short[] { 220, 220, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN, new short[] { 200, 200, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN, new short[] { 180, 180, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN, new short[] { 160, 160, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN, new short[] { 140, 140, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN, new short[] { 120, 120, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN, new short[] { 100, 100, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN, new short[] { 80, 80, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN, new short[] { 60, 60, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN, new short[] { 40, 40, 245, 0 }), }; + TextureFactory.of(OVERLAY_ENERGY_IN, new short[] { 180, 180, 180, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN, new short[] { 220, 220, 220, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN, new short[] { 255, 100, 0, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN, new short[] { 255, 255, 30, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN, new short[] { 128, 128, 128, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN, new short[] { 240, 240, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN, new short[] { 220, 220, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN, new short[] { 200, 200, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN, new short[] { 180, 180, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN, new short[] { 160, 160, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN, new short[] { 140, 140, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN, new short[] { 120, 120, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN, new short[] { 100, 100, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN, new short[] { 80, 80, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN, new short[] { 60, 60, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN, new short[] { 40, 40, 245, 0 }), }; public static ITexture[] OVERLAYS_ENERGY_OUT = { - TextureFactory.of(OVERLAY_ENERGY_OUT, new short[] { 180, 180, 180, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT, new short[] { 220, 220, 220, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT, new short[] { 255, 100, 0, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT, new short[] { 255, 255, 30, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT, new short[] { 128, 128, 128, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT, new short[] { 240, 240, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT, new short[] { 220, 220, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT, new short[] { 200, 200, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT, new short[] { 180, 180, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT, new short[] { 160, 160, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT, new short[] { 140, 140, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT, new short[] { 120, 120, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT, new short[] { 100, 100, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT, new short[] { 80, 80, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT, new short[] { 60, 60, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT, new short[] { 40, 40, 245, 0 }), }; + TextureFactory.of(OVERLAY_ENERGY_OUT, new short[] { 180, 180, 180, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT, new short[] { 220, 220, 220, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT, new short[] { 255, 100, 0, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT, new short[] { 255, 255, 30, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT, new short[] { 128, 128, 128, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT, new short[] { 240, 240, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT, new short[] { 220, 220, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT, new short[] { 200, 200, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT, new short[] { 180, 180, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT, new short[] { 160, 160, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT, new short[] { 140, 140, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT, new short[] { 120, 120, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT, new short[] { 100, 100, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT, new short[] { 80, 80, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT, new short[] { 60, 60, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT, new short[] { 40, 40, 245, 0 }), }; public static final ITexture[] OVERLAYS_ENERGY_IN_MULTI = { - TextureFactory.of(OVERLAY_ENERGY_IN_MULTI, new short[] { 180, 180, 180, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN_MULTI, new short[] { 220, 220, 220, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN_MULTI, new short[] { 255, 100, 0, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN_MULTI, new short[] { 255, 255, 30, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN_MULTI, new short[] { 128, 128, 128, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN_MULTI, new short[] { 240, 240, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN_MULTI, new short[] { 220, 220, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN_MULTI, new short[] { 200, 200, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN_MULTI, new short[] { 180, 180, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN_MULTI, new short[] { 160, 160, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN_MULTI, new short[] { 140, 140, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN_MULTI, new short[] { 120, 120, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN_MULTI, new short[] { 100, 100, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN_MULTI, new short[] { 80, 80, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN_MULTI, new short[] { 60, 60, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN_MULTI, new short[] { 40, 40, 245, 0 }), }; + TextureFactory.of(OVERLAY_ENERGY_IN_MULTI, new short[] { 180, 180, 180, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN_MULTI, new short[] { 220, 220, 220, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN_MULTI, new short[] { 255, 100, 0, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN_MULTI, new short[] { 255, 255, 30, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN_MULTI, new short[] { 128, 128, 128, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN_MULTI, new short[] { 240, 240, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN_MULTI, new short[] { 220, 220, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN_MULTI, new short[] { 200, 200, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN_MULTI, new short[] { 180, 180, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN_MULTI, new short[] { 160, 160, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN_MULTI, new short[] { 140, 140, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN_MULTI, new short[] { 120, 120, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN_MULTI, new short[] { 100, 100, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN_MULTI, new short[] { 80, 80, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN_MULTI, new short[] { 60, 60, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN_MULTI, new short[] { 40, 40, 245, 0 }), }; public static final ITexture[] OVERLAYS_ENERGY_IN_MULTI_WIRELESS_ON = { - TextureFactory.of(OVERLAY_ENERGY_ON_WIRELESS, new short[] { 255, 255, 255, 0 }), - TextureFactory.of(OVERLAY_ENERGY_ON_WIRELESS, new short[] { 255, 255, 255, 0 }), - TextureFactory.of(OVERLAY_ENERGY_ON_WIRELESS, new short[] { 255, 255, 255, 0 }), - TextureFactory.of(OVERLAY_ENERGY_ON_WIRELESS, new short[] { 255, 255, 255, 0 }), - TextureFactory.of(OVERLAY_ENERGY_ON_WIRELESS, new short[] { 255, 255, 255, 0 }), - TextureFactory.of(OVERLAY_ENERGY_ON_WIRELESS, new short[] { 255, 255, 255, 0 }), - TextureFactory.of(OVERLAY_ENERGY_ON_WIRELESS, new short[] { 255, 255, 255, 0 }), - TextureFactory.of(OVERLAY_ENERGY_ON_WIRELESS, new short[] { 255, 255, 255, 0 }), - TextureFactory.of(OVERLAY_ENERGY_ON_WIRELESS, new short[] { 255, 255, 255, 0 }), - TextureFactory.of(OVERLAY_ENERGY_ON_WIRELESS, new short[] { 255, 255, 255, 0 }), - TextureFactory.of(OVERLAY_ENERGY_ON_WIRELESS, new short[] { 255, 255, 255, 0 }), - TextureFactory.of(OVERLAY_ENERGY_ON_WIRELESS, new short[] { 255, 255, 255, 0 }), - TextureFactory.of(OVERLAY_ENERGY_ON_WIRELESS, new short[] { 255, 255, 255, 0 }), - TextureFactory.of(OVERLAY_ENERGY_ON_WIRELESS, new short[] { 255, 255, 255, 0 }), - TextureFactory.of(OVERLAY_ENERGY_ON_WIRELESS, new short[] { 255, 255, 255, 0 }), - TextureFactory.of(OVERLAY_ENERGY_ON_WIRELESS, new short[] { 255, 255, 255, 0 }), }; + TextureFactory.of(OVERLAY_ENERGY_ON_WIRELESS, new short[] { 255, 255, 255, 0 }), + TextureFactory.of(OVERLAY_ENERGY_ON_WIRELESS, new short[] { 255, 255, 255, 0 }), + TextureFactory.of(OVERLAY_ENERGY_ON_WIRELESS, new short[] { 255, 255, 255, 0 }), + TextureFactory.of(OVERLAY_ENERGY_ON_WIRELESS, new short[] { 255, 255, 255, 0 }), + TextureFactory.of(OVERLAY_ENERGY_ON_WIRELESS, new short[] { 255, 255, 255, 0 }), + TextureFactory.of(OVERLAY_ENERGY_ON_WIRELESS, new short[] { 255, 255, 255, 0 }), + TextureFactory.of(OVERLAY_ENERGY_ON_WIRELESS, new short[] { 255, 255, 255, 0 }), + TextureFactory.of(OVERLAY_ENERGY_ON_WIRELESS, new short[] { 255, 255, 255, 0 }), + TextureFactory.of(OVERLAY_ENERGY_ON_WIRELESS, new short[] { 255, 255, 255, 0 }), + TextureFactory.of(OVERLAY_ENERGY_ON_WIRELESS, new short[] { 255, 255, 255, 0 }), + TextureFactory.of(OVERLAY_ENERGY_ON_WIRELESS, new short[] { 255, 255, 255, 0 }), + TextureFactory.of(OVERLAY_ENERGY_ON_WIRELESS, new short[] { 255, 255, 255, 0 }), + TextureFactory.of(OVERLAY_ENERGY_ON_WIRELESS, new short[] { 255, 255, 255, 0 }), + TextureFactory.of(OVERLAY_ENERGY_ON_WIRELESS, new short[] { 255, 255, 255, 0 }), + TextureFactory.of(OVERLAY_ENERGY_ON_WIRELESS, new short[] { 255, 255, 255, 0 }), + TextureFactory.of(OVERLAY_ENERGY_ON_WIRELESS, new short[] { 255, 255, 255, 0 }), }; public static final ITexture[] OVERLAYS_ENERGY_IN_MULTI_WIRELESS_OFF = { - TextureFactory.of(OVERLAY_ENERGY_OFF_WIRELESS, new short[] { 0, 0, 0, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OFF_WIRELESS, new short[] { 0, 0, 0, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OFF_WIRELESS, new short[] { 0, 0, 0, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OFF_WIRELESS, new short[] { 0, 0, 0, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OFF_WIRELESS, new short[] { 0, 0, 0, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OFF_WIRELESS, new short[] { 0, 0, 0, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OFF_WIRELESS, new short[] { 0, 0, 0, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OFF_WIRELESS, new short[] { 0, 0, 0, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OFF_WIRELESS, new short[] { 0, 0, 0, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OFF_WIRELESS, new short[] { 0, 0, 0, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OFF_WIRELESS, new short[] { 0, 0, 0, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OFF_WIRELESS, new short[] { 0, 0, 0, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OFF_WIRELESS, new short[] { 0, 0, 0, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OFF_WIRELESS, new short[] { 0, 0, 0, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OFF_WIRELESS, new short[] { 0, 0, 0, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OFF_WIRELESS, new short[] { 0, 0, 0, 0 }), }; + TextureFactory.of(OVERLAY_ENERGY_OFF_WIRELESS, new short[] { 0, 0, 0, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OFF_WIRELESS, new short[] { 0, 0, 0, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OFF_WIRELESS, new short[] { 0, 0, 0, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OFF_WIRELESS, new short[] { 0, 0, 0, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OFF_WIRELESS, new short[] { 0, 0, 0, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OFF_WIRELESS, new short[] { 0, 0, 0, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OFF_WIRELESS, new short[] { 0, 0, 0, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OFF_WIRELESS, new short[] { 0, 0, 0, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OFF_WIRELESS, new short[] { 0, 0, 0, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OFF_WIRELESS, new short[] { 0, 0, 0, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OFF_WIRELESS, new short[] { 0, 0, 0, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OFF_WIRELESS, new short[] { 0, 0, 0, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OFF_WIRELESS, new short[] { 0, 0, 0, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OFF_WIRELESS, new short[] { 0, 0, 0, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OFF_WIRELESS, new short[] { 0, 0, 0, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OFF_WIRELESS, new short[] { 0, 0, 0, 0 }), }; public static final ITexture[] OVERLAYS_ENERGY_OUT_MULTI = { - TextureFactory.of(OVERLAY_ENERGY_OUT_MULTI, new short[] { 180, 180, 180, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT_MULTI, new short[] { 220, 220, 220, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT_MULTI, new short[] { 255, 100, 0, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT_MULTI, new short[] { 255, 255, 30, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT_MULTI, new short[] { 128, 128, 128, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT_MULTI, new short[] { 240, 240, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT_MULTI, new short[] { 220, 220, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT_MULTI, new short[] { 200, 200, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT_MULTI, new short[] { 180, 180, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT_MULTI, new short[] { 160, 160, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT_MULTI, new short[] { 140, 140, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT_MULTI, new short[] { 120, 120, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT_MULTI, new short[] { 100, 100, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT_MULTI, new short[] { 80, 80, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT_MULTI, new short[] { 60, 60, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT_MULTI, new short[] { 40, 40, 245, 0 }), }; + TextureFactory.of(OVERLAY_ENERGY_OUT_MULTI, new short[] { 180, 180, 180, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT_MULTI, new short[] { 220, 220, 220, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT_MULTI, new short[] { 255, 100, 0, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT_MULTI, new short[] { 255, 255, 30, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT_MULTI, new short[] { 128, 128, 128, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT_MULTI, new short[] { 240, 240, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT_MULTI, new short[] { 220, 220, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT_MULTI, new short[] { 200, 200, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT_MULTI, new short[] { 180, 180, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT_MULTI, new short[] { 160, 160, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT_MULTI, new short[] { 140, 140, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT_MULTI, new short[] { 120, 120, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT_MULTI, new short[] { 100, 100, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT_MULTI, new short[] { 80, 80, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT_MULTI, new short[] { 60, 60, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT_MULTI, new short[] { 40, 40, 245, 0 }), }; public static final ITexture[] OVERLAYS_ENERGY_IN_POWER = { - TextureFactory.of(OVERLAY_ENERGY_IN_POWER, new short[] { 180, 180, 180, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN_POWER, new short[] { 220, 220, 220, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN_POWER, new short[] { 255, 100, 0, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN_POWER, new short[] { 255, 255, 30, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN_POWER, new short[] { 128, 128, 128, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN_POWER, new short[] { 240, 240, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN_POWER, new short[] { 220, 220, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN_POWER, new short[] { 200, 200, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN_POWER, new short[] { 180, 180, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN_POWER, new short[] { 160, 160, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN_POWER, new short[] { 140, 140, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN_POWER, new short[] { 120, 120, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN_POWER, new short[] { 100, 100, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN_POWER, new short[] { 80, 80, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN_POWER, new short[] { 60, 60, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_IN_POWER, new short[] { 40, 40, 245, 0 }), }; + TextureFactory.of(OVERLAY_ENERGY_IN_POWER, new short[] { 180, 180, 180, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN_POWER, new short[] { 220, 220, 220, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN_POWER, new short[] { 255, 100, 0, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN_POWER, new short[] { 255, 255, 30, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN_POWER, new short[] { 128, 128, 128, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN_POWER, new short[] { 240, 240, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN_POWER, new short[] { 220, 220, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN_POWER, new short[] { 200, 200, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN_POWER, new short[] { 180, 180, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN_POWER, new short[] { 160, 160, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN_POWER, new short[] { 140, 140, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN_POWER, new short[] { 120, 120, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN_POWER, new short[] { 100, 100, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN_POWER, new short[] { 80, 80, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN_POWER, new short[] { 60, 60, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_IN_POWER, new short[] { 40, 40, 245, 0 }), }; public static final ITexture[] OVERLAYS_ENERGY_OUT_POWER = { - TextureFactory.of(OVERLAY_ENERGY_OUT_POWER, new short[] { 180, 180, 180, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT_POWER, new short[] { 220, 220, 220, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT_POWER, new short[] { 255, 100, 0, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT_POWER, new short[] { 255, 255, 30, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT_POWER, new short[] { 128, 128, 128, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT_POWER, new short[] { 240, 240, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT_POWER, new short[] { 220, 220, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT_POWER, new short[] { 200, 200, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT_POWER, new short[] { 180, 180, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT_POWER, new short[] { 160, 160, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT_POWER, new short[] { 140, 140, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT_POWER, new short[] { 120, 120, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT_POWER, new short[] { 100, 100, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT_POWER, new short[] { 80, 80, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT_POWER, new short[] { 60, 60, 245, 0 }), - TextureFactory.of(OVERLAY_ENERGY_OUT_POWER, new short[] { 40, 40, 245, 0 }), }; + TextureFactory.of(OVERLAY_ENERGY_OUT_POWER, new short[] { 180, 180, 180, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT_POWER, new short[] { 220, 220, 220, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT_POWER, new short[] { 255, 100, 0, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT_POWER, new short[] { 255, 255, 30, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT_POWER, new short[] { 128, 128, 128, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT_POWER, new short[] { 240, 240, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT_POWER, new short[] { 220, 220, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT_POWER, new short[] { 200, 200, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT_POWER, new short[] { 180, 180, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT_POWER, new short[] { 160, 160, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT_POWER, new short[] { 140, 140, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT_POWER, new short[] { 120, 120, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT_POWER, new short[] { 100, 100, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT_POWER, new short[] { 80, 80, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT_POWER, new short[] { 60, 60, 245, 0 }), + TextureFactory.of(OVERLAY_ENERGY_OUT_POWER, new short[] { 40, 40, 245, 0 }), }; public static final ITexture[] LOCKERS = { TextureFactory.of(OVERLAY_LOCKER_000), - TextureFactory.of(OVERLAY_LOCKER_001), TextureFactory.of(OVERLAY_LOCKER_002), - TextureFactory.of(OVERLAY_LOCKER_003), TextureFactory.of(OVERLAY_LOCKER_004), - TextureFactory.of(OVERLAY_LOCKER_005), TextureFactory.of(OVERLAY_LOCKER_006), - TextureFactory.of(OVERLAY_LOCKER_007), TextureFactory.of(OVERLAY_LOCKER_008), - TextureFactory.of(OVERLAY_LOCKER_009), TextureFactory.of(OVERLAY_LOCKER_010), - TextureFactory.of(OVERLAY_LOCKER_011), TextureFactory.of(OVERLAY_LOCKER_012), - TextureFactory.of(OVERLAY_LOCKER_013), }; + TextureFactory.of(OVERLAY_LOCKER_001), TextureFactory.of(OVERLAY_LOCKER_002), + TextureFactory.of(OVERLAY_LOCKER_003), TextureFactory.of(OVERLAY_LOCKER_004), + TextureFactory.of(OVERLAY_LOCKER_005), TextureFactory.of(OVERLAY_LOCKER_006), + TextureFactory.of(OVERLAY_LOCKER_007), TextureFactory.of(OVERLAY_LOCKER_008), + TextureFactory.of(OVERLAY_LOCKER_009), TextureFactory.of(OVERLAY_LOCKER_010), + TextureFactory.of(OVERLAY_LOCKER_011), TextureFactory.of(OVERLAY_LOCKER_012), + TextureFactory.of(OVERLAY_LOCKER_013), }; /** * USE casingTexturePages[page] instead of CASING_BLOCKS since it is casingTexturePages[0] */ @@ -1671,10 +1664,10 @@ public class Textures { static { for (byte i = 0; i < MACHINE_CASINGS.length; i++) for (byte j = 0; j < MACHINE_CASINGS[i].length; j++) MACHINE_CASINGS[i][j] = TextureFactory.of( - MACHINECASINGS_BOTTOM[i], - MACHINECASINGS_TOP[i], - MACHINECASINGS_SIDE[i], - Dyes.getModulation(j - 1, Dyes.MACHINE_METAL.mRGBa)); + MACHINECASINGS_BOTTOM[i], + MACHINECASINGS_TOP[i], + MACHINECASINGS_SIDE[i], + Dyes.getModulation(j - 1, Dyes.MACHINE_METAL.mRGBa)); casingTexturePages[0] = new ITexture[128]; // adds some known pages, modders also can do it... GT_Utility.addTexturePage((byte) 1); @@ -1820,10 +1813,10 @@ public class Textures { HALO_FUZZY; public static final IIconContainer[] DURABILITY_BAR = { DURABILITY_BAR_0, DURABILITY_BAR_1, DURABILITY_BAR_2, - DURABILITY_BAR_3, DURABILITY_BAR_4, DURABILITY_BAR_5, DURABILITY_BAR_6, DURABILITY_BAR_7, - DURABILITY_BAR_8, }, - ENERGY_BAR = { ENERGY_BAR_0, ENERGY_BAR_1, ENERGY_BAR_2, ENERGY_BAR_3, ENERGY_BAR_4, ENERGY_BAR_5, - ENERGY_BAR_6, ENERGY_BAR_7, ENERGY_BAR_8, }; + DURABILITY_BAR_3, DURABILITY_BAR_4, DURABILITY_BAR_5, DURABILITY_BAR_6, DURABILITY_BAR_7, + DURABILITY_BAR_8, }, + ENERGY_BAR = { ENERGY_BAR_0, ENERGY_BAR_1, ENERGY_BAR_2, ENERGY_BAR_3, ENERGY_BAR_4, ENERGY_BAR_5, + ENERGY_BAR_6, ENERGY_BAR_7, ENERGY_BAR_8, }; public static final ITexture[] ERROR_RENDERING = { TextureFactory.of(RENDERING_ERROR) }; diff --git a/src/main/java/gregtech/api/enums/Tier.java b/src/main/java/gregtech/api/enums/Tier.java index 3af005750b..870e8dafbb 100644 --- a/src/main/java/gregtech/api/enums/Tier.java +++ b/src/main/java/gregtech/api/enums/Tier.java @@ -8,440 +8,440 @@ import static gregtech.api.enums.GT_Values.V; public class Tier { public static final Tier[] ELECTRIC = new Tier[] { - new Tier( - SubTag.ENERGY_ELECTRICITY, - 0, - V[0], - 1, - 1, - 1, - Materials.WroughtIron, - ItemList.Hull_ULV, - OrePrefixes.cableGt01.get(Materials.Lead), - OrePrefixes.cableGt04.get(Materials.Lead), - OrePrefixes.circuit.get(Materials.Primitive), - OrePrefixes.circuit.get(Materials.Basic)), - new Tier( - SubTag.ENERGY_ELECTRICITY, - 1, - V[1], - 1, - 1, - 1, - Materials.Steel, - ItemList.Hull_LV, - OrePrefixes.cableGt01.get(Materials.Tin), - OrePrefixes.cableGt04.get(Materials.Tin), - OrePrefixes.circuit.get(Materials.Basic), - OrePrefixes.circuit.get(Materials.Good)), - new Tier( - SubTag.ENERGY_ELECTRICITY, - 2, - V[2], - 1, - 1, - 1, - Materials.Aluminium, - ItemList.Hull_MV, - OrePrefixes.cableGt01.get(Materials.AnyCopper), - OrePrefixes.cableGt04.get(Materials.AnyCopper), - OrePrefixes.circuit.get(Materials.Good), - OrePrefixes.circuit.get(Materials.Advanced)), - new Tier( - SubTag.ENERGY_ELECTRICITY, - 3, - V[3], - 1, - 1, - 1, - Materials.StainlessSteel, - ItemList.Hull_HV, - OrePrefixes.cableGt01.get(Materials.Gold), - OrePrefixes.cableGt04.get(Materials.Gold), - OrePrefixes.circuit.get(Materials.Advanced), - OrePrefixes.circuit.get(Materials.Data)), - new Tier( - SubTag.ENERGY_ELECTRICITY, - 4, - V[4], - 1, - 1, - 1, - Materials.Titanium, - ItemList.Hull_EV, - OrePrefixes.cableGt01.get(Materials.Aluminium), - OrePrefixes.cableGt04.get(Materials.Aluminium), - OrePrefixes.circuit.get(Materials.Data), - OrePrefixes.circuit.get(Materials.Elite)), - new Tier( - SubTag.ENERGY_ELECTRICITY, - 5, - V[5], - 1, - 1, - 1, - Materials.TungstenSteel, - ItemList.Hull_IV, - OrePrefixes.cableGt01.get(Materials.Platinum), - OrePrefixes.cableGt04.get(Materials.Platinum), - OrePrefixes.circuit.get(Materials.Elite), - OrePrefixes.circuit.get(Materials.Master)), - new Tier( - SubTag.ENERGY_ELECTRICITY, - 6, - V[6], - 1, - 1, - 1, - Materials.Chrome, - ItemList.Hull_LuV, - OrePrefixes.cableGt01.get(Materials.NiobiumTitanium), - OrePrefixes.cableGt04.get(Materials.NiobiumTitanium), - OrePrefixes.circuit.get(Materials.Master), - OrePrefixes.circuit.get(Materials.Ultimate)), - new Tier( - SubTag.ENERGY_ELECTRICITY, - 7, - V[7], - 1, - 1, - 1, - Materials.Iridium, - ItemList.Hull_ZPM, - OrePrefixes.cableGt01.get(Materials.Naquadah), - OrePrefixes.cableGt04.get(Materials.Naquadah), - OrePrefixes.circuit.get(Materials.Ultimate), - OrePrefixes.circuit.get(Materials.Superconductor)), - new Tier( - SubTag.ENERGY_ELECTRICITY, - 8, - V[8], - 1, - 1, - 1, - Materials.Osmium, - ItemList.Hull_UV, - OrePrefixes.cableGt04.get(Materials.NaquadahAlloy), - OrePrefixes.wireGt01.get(Materials.SuperconductorUHV), - OrePrefixes.circuit.get(Materials.Superconductor), - OrePrefixes.circuit.get(Materials.Infinite)), - new Tier( - SubTag.ENERGY_ELECTRICITY, - 9, - V[9], - 1, - 1, - 1, - Materials.Neutronium, - ItemList.Hull_MAX, - OrePrefixes.wireGt01.get(Materials.SuperconductorUHV), - OrePrefixes.wireGt04.get(Materials.SuperconductorUHV), - OrePrefixes.circuit.get(Materials.Infinite), - OrePrefixes.circuit.get(Materials.Infinite)), - new Tier( - SubTag.ENERGY_ELECTRICITY, - 10, - V[10], - 1, - 1, - 1, - Materials.Neutronium, - ItemList.Hull_MAX, - OrePrefixes.wireGt01.get(Materials.SuperconductorUHV), - OrePrefixes.wireGt04.get(Materials.SuperconductorUHV), - OrePrefixes.circuit.get(Materials.Infinite), - OrePrefixes.circuit.get(Materials.Infinite)), - new Tier( - SubTag.ENERGY_ELECTRICITY, - 11, - V[11], - 1, - 1, - 1, - Materials.Neutronium, - ItemList.Hull_MAX, - OrePrefixes.wireGt01.get(Materials.SuperconductorUHV), - OrePrefixes.wireGt04.get(Materials.SuperconductorUHV), - OrePrefixes.circuit.get(Materials.Infinite), - OrePrefixes.circuit.get(Materials.Infinite)), - new Tier( - SubTag.ENERGY_ELECTRICITY, - 12, - V[12], - 1, - 1, - 1, - Materials.Neutronium, - ItemList.Hull_MAX, - OrePrefixes.wireGt01.get(Materials.SuperconductorUHV), - OrePrefixes.wireGt04.get(Materials.SuperconductorUHV), - OrePrefixes.circuit.get(Materials.Infinite), - OrePrefixes.circuit.get(Materials.Infinite)), - new Tier( - SubTag.ENERGY_ELECTRICITY, - 13, - V[13], - 1, - 1, - 1, - Materials.Neutronium, - ItemList.Hull_MAX, - OrePrefixes.wireGt01.get(Materials.SuperconductorUHV), - OrePrefixes.wireGt04.get(Materials.SuperconductorUHV), - OrePrefixes.circuit.get(Materials.Infinite), - OrePrefixes.circuit.get(Materials.Infinite)), - new Tier( - SubTag.ENERGY_ELECTRICITY, - 14, - V[14], - 1, - 1, - 1, - Materials.Neutronium, - ItemList.Hull_MAX, - OrePrefixes.wireGt01.get(Materials.SuperconductorUHV), - OrePrefixes.wireGt04.get(Materials.SuperconductorUHV), - OrePrefixes.circuit.get(Materials.Infinite), - OrePrefixes.circuit.get(Materials.Infinite)), - new Tier( - SubTag.ENERGY_ELECTRICITY, - 15, - V[15], - 1, - 1, - 1, - Materials.Neutronium, - ItemList.Hull_MAX, - OrePrefixes.wireGt01.get(Materials.SuperconductorUHV), - OrePrefixes.wireGt04.get(Materials.SuperconductorUHV), - OrePrefixes.circuit.get(Materials.Infinite), - OrePrefixes.circuit.get(Materials.Infinite)), + new Tier( + SubTag.ENERGY_ELECTRICITY, + 0, + V[0], + 1, + 1, + 1, + Materials.WroughtIron, + ItemList.Hull_ULV, + OrePrefixes.cableGt01.get(Materials.Lead), + OrePrefixes.cableGt04.get(Materials.Lead), + OrePrefixes.circuit.get(Materials.Primitive), + OrePrefixes.circuit.get(Materials.Basic)), + new Tier( + SubTag.ENERGY_ELECTRICITY, + 1, + V[1], + 1, + 1, + 1, + Materials.Steel, + ItemList.Hull_LV, + OrePrefixes.cableGt01.get(Materials.Tin), + OrePrefixes.cableGt04.get(Materials.Tin), + OrePrefixes.circuit.get(Materials.Basic), + OrePrefixes.circuit.get(Materials.Good)), + new Tier( + SubTag.ENERGY_ELECTRICITY, + 2, + V[2], + 1, + 1, + 1, + Materials.Aluminium, + ItemList.Hull_MV, + OrePrefixes.cableGt01.get(Materials.AnyCopper), + OrePrefixes.cableGt04.get(Materials.AnyCopper), + OrePrefixes.circuit.get(Materials.Good), + OrePrefixes.circuit.get(Materials.Advanced)), + new Tier( + SubTag.ENERGY_ELECTRICITY, + 3, + V[3], + 1, + 1, + 1, + Materials.StainlessSteel, + ItemList.Hull_HV, + OrePrefixes.cableGt01.get(Materials.Gold), + OrePrefixes.cableGt04.get(Materials.Gold), + OrePrefixes.circuit.get(Materials.Advanced), + OrePrefixes.circuit.get(Materials.Data)), + new Tier( + SubTag.ENERGY_ELECTRICITY, + 4, + V[4], + 1, + 1, + 1, + Materials.Titanium, + ItemList.Hull_EV, + OrePrefixes.cableGt01.get(Materials.Aluminium), + OrePrefixes.cableGt04.get(Materials.Aluminium), + OrePrefixes.circuit.get(Materials.Data), + OrePrefixes.circuit.get(Materials.Elite)), + new Tier( + SubTag.ENERGY_ELECTRICITY, + 5, + V[5], + 1, + 1, + 1, + Materials.TungstenSteel, + ItemList.Hull_IV, + OrePrefixes.cableGt01.get(Materials.Platinum), + OrePrefixes.cableGt04.get(Materials.Platinum), + OrePrefixes.circuit.get(Materials.Elite), + OrePrefixes.circuit.get(Materials.Master)), + new Tier( + SubTag.ENERGY_ELECTRICITY, + 6, + V[6], + 1, + 1, + 1, + Materials.Chrome, + ItemList.Hull_LuV, + OrePrefixes.cableGt01.get(Materials.NiobiumTitanium), + OrePrefixes.cableGt04.get(Materials.NiobiumTitanium), + OrePrefixes.circuit.get(Materials.Master), + OrePrefixes.circuit.get(Materials.Ultimate)), + new Tier( + SubTag.ENERGY_ELECTRICITY, + 7, + V[7], + 1, + 1, + 1, + Materials.Iridium, + ItemList.Hull_ZPM, + OrePrefixes.cableGt01.get(Materials.Naquadah), + OrePrefixes.cableGt04.get(Materials.Naquadah), + OrePrefixes.circuit.get(Materials.Ultimate), + OrePrefixes.circuit.get(Materials.Superconductor)), + new Tier( + SubTag.ENERGY_ELECTRICITY, + 8, + V[8], + 1, + 1, + 1, + Materials.Osmium, + ItemList.Hull_UV, + OrePrefixes.cableGt04.get(Materials.NaquadahAlloy), + OrePrefixes.wireGt01.get(Materials.SuperconductorUHV), + OrePrefixes.circuit.get(Materials.Superconductor), + OrePrefixes.circuit.get(Materials.Infinite)), + new Tier( + SubTag.ENERGY_ELECTRICITY, + 9, + V[9], + 1, + 1, + 1, + Materials.Neutronium, + ItemList.Hull_MAX, + OrePrefixes.wireGt01.get(Materials.SuperconductorUHV), + OrePrefixes.wireGt04.get(Materials.SuperconductorUHV), + OrePrefixes.circuit.get(Materials.Infinite), + OrePrefixes.circuit.get(Materials.Infinite)), + new Tier( + SubTag.ENERGY_ELECTRICITY, + 10, + V[10], + 1, + 1, + 1, + Materials.Neutronium, + ItemList.Hull_MAX, + OrePrefixes.wireGt01.get(Materials.SuperconductorUHV), + OrePrefixes.wireGt04.get(Materials.SuperconductorUHV), + OrePrefixes.circuit.get(Materials.Infinite), + OrePrefixes.circuit.get(Materials.Infinite)), + new Tier( + SubTag.ENERGY_ELECTRICITY, + 11, + V[11], + 1, + 1, + 1, + Materials.Neutronium, + ItemList.Hull_MAX, + OrePrefixes.wireGt01.get(Materials.SuperconductorUHV), + OrePrefixes.wireGt04.get(Materials.SuperconductorUHV), + OrePrefixes.circuit.get(Materials.Infinite), + OrePrefixes.circuit.get(Materials.Infinite)), + new Tier( + SubTag.ENERGY_ELECTRICITY, + 12, + V[12], + 1, + 1, + 1, + Materials.Neutronium, + ItemList.Hull_MAX, + OrePrefixes.wireGt01.get(Materials.SuperconductorUHV), + OrePrefixes.wireGt04.get(Materials.SuperconductorUHV), + OrePrefixes.circuit.get(Materials.Infinite), + OrePrefixes.circuit.get(Materials.Infinite)), + new Tier( + SubTag.ENERGY_ELECTRICITY, + 13, + V[13], + 1, + 1, + 1, + Materials.Neutronium, + ItemList.Hull_MAX, + OrePrefixes.wireGt01.get(Materials.SuperconductorUHV), + OrePrefixes.wireGt04.get(Materials.SuperconductorUHV), + OrePrefixes.circuit.get(Materials.Infinite), + OrePrefixes.circuit.get(Materials.Infinite)), + new Tier( + SubTag.ENERGY_ELECTRICITY, + 14, + V[14], + 1, + 1, + 1, + Materials.Neutronium, + ItemList.Hull_MAX, + OrePrefixes.wireGt01.get(Materials.SuperconductorUHV), + OrePrefixes.wireGt04.get(Materials.SuperconductorUHV), + OrePrefixes.circuit.get(Materials.Infinite), + OrePrefixes.circuit.get(Materials.Infinite)), + new Tier( + SubTag.ENERGY_ELECTRICITY, + 15, + V[15], + 1, + 1, + 1, + Materials.Neutronium, + ItemList.Hull_MAX, + OrePrefixes.wireGt01.get(Materials.SuperconductorUHV), + OrePrefixes.wireGt04.get(Materials.SuperconductorUHV), + OrePrefixes.circuit.get(Materials.Infinite), + OrePrefixes.circuit.get(Materials.Infinite)), - // READ GT_VALUES CLASS BEFORE YOU START ADDING STUFF TO TIERS 8+ - and probably dont do it in - // GT but in GTNH core mod - that way we shouldnt need to set the tier class + // READ GT_VALUES CLASS BEFORE YOU START ADDING STUFF TO TIERS 8+ - and probably dont do it in + // GT but in GTNH core mod - that way we shouldnt need to set the tier class }, ROTATIONAL = new Tier[] { + new Tier( + SubTag.ENERGY_ROTATIONAL, + 1, + 32, + 1, + 1, + 1, + Materials.Wood, + OrePrefixes.frameGt.get(Materials.Wood), + OrePrefixes.stick.get(Materials.Wood), + OrePrefixes.ingot.get(Materials.Wood), + OrePrefixes.gearGt.get(Materials.Wood), + OrePrefixes.gearGt.get(Materials.Stone)), + new Tier( + SubTag.ENERGY_ROTATIONAL, + 1, + 32, + 1, + 2, + 2, + Materials.WoodSealed, + OrePrefixes.frameGt.get(Materials.WoodSealed), + OrePrefixes.stick.get(Materials.WoodSealed), + OrePrefixes.ingot.get(Materials.WoodSealed), + OrePrefixes.gearGt.get(Materials.WoodSealed), + OrePrefixes.gearGt.get(Materials.Stone)), + new Tier( + SubTag.ENERGY_ROTATIONAL, + 2, + 128, + 1, + 1, + 1, + Materials.Stone, + OrePrefixes.frameGt.get(Materials.Stone), + OrePrefixes.stick.get(Materials.Stone), + OrePrefixes.ingot.get(Materials.Stone), + OrePrefixes.gearGt.get(Materials.Stone), + OrePrefixes.gearGt.get(Materials.Bronze)), + new Tier( + SubTag.ENERGY_ROTATIONAL, + 2, + 128, + 1, + 2, + 2, + Materials.IronWood, + OrePrefixes.frameGt.get(Materials.IronWood), + OrePrefixes.stick.get(Materials.IronWood), + OrePrefixes.ingot.get(Materials.IronWood), + OrePrefixes.gearGt.get(Materials.IronWood), + OrePrefixes.gearGt.get(Materials.Bronze)), + new Tier( + SubTag.ENERGY_ROTATIONAL, + 3, + 512, + 1, + 1, + 1, + Materials.Bronze, + OrePrefixes.frameGt.get(Materials.Bronze), + OrePrefixes.stick.get(Materials.Bronze), + OrePrefixes.ingot.get(Materials.Bronze), + OrePrefixes.gearGt.get(Materials.Bronze), + OrePrefixes.gearGt.get(Materials.Steel)), + new Tier( + SubTag.ENERGY_ROTATIONAL, + 3, + 512, + 1, + 2, + 2, + Materials.Brass, + OrePrefixes.frameGt.get(Materials.Brass), + OrePrefixes.stick.get(Materials.Brass), + OrePrefixes.ingot.get(Materials.Brass), + OrePrefixes.gearGt.get(Materials.Brass), + OrePrefixes.gearGt.get(Materials.Steel)), + new Tier( + SubTag.ENERGY_ROTATIONAL, + 4, + 2048, + 1, + 1, + 1, + Materials.Steel, + OrePrefixes.frameGt.get(Materials.Steel), + OrePrefixes.stick.get(Materials.Steel), + OrePrefixes.ingot.get(Materials.Steel), + OrePrefixes.gearGt.get(Materials.Steel), + OrePrefixes.gearGt.get(Materials.TungstenSteel)), + new Tier( + SubTag.ENERGY_ROTATIONAL, + 4, + 2048, + 1, + 2, + 2, + Materials.Titanium, + OrePrefixes.frameGt.get(Materials.Titanium), + OrePrefixes.stick.get(Materials.Titanium), + OrePrefixes.ingot.get(Materials.Titanium), + OrePrefixes.gearGt.get(Materials.Titanium), + OrePrefixes.gearGt.get(Materials.TungstenSteel)), + new Tier( + SubTag.ENERGY_ROTATIONAL, + 5, + 8192, + 1, + 1, + 1, + Materials.TungstenSteel, + OrePrefixes.frameGt.get(Materials.TungstenSteel), + OrePrefixes.stick.get(Materials.TungstenSteel), + OrePrefixes.ingot.get(Materials.TungstenSteel), + OrePrefixes.gearGt.get(Materials.TungstenSteel), + OrePrefixes.gearGt.get(Materials.Iridium)), + new Tier( + SubTag.ENERGY_ROTATIONAL, + 6, + 32768, + 1, + 1, + 1, + Materials.Iridium, + OrePrefixes.frameGt.get(Materials.Iridium), + OrePrefixes.stick.get(Materials.Iridium), + OrePrefixes.ingot.get(Materials.Iridium), + OrePrefixes.gearGt.get(Materials.Iridium), + OrePrefixes.gearGt.get(Materials.Neutronium)), + new Tier( + SubTag.ENERGY_ROTATIONAL, + 9, + Integer.MAX_VALUE - 7, + 1, + 1, + 1, + Materials.Neutronium, + OrePrefixes.frameGt.get(Materials.Neutronium), + OrePrefixes.stick.get(Materials.Neutronium), + OrePrefixes.ingot.get(Materials.Neutronium), + OrePrefixes.gearGt.get(Materials.Neutronium), + OrePrefixes.gearGt.get(Materials.Neutronium)), }, + STEAM = new Tier[] { new Tier( - SubTag.ENERGY_ROTATIONAL, - 1, - 32, - 1, - 1, - 1, - Materials.Wood, - OrePrefixes.frameGt.get(Materials.Wood), - OrePrefixes.stick.get(Materials.Wood), - OrePrefixes.ingot.get(Materials.Wood), - OrePrefixes.gearGt.get(Materials.Wood), - OrePrefixes.gearGt.get(Materials.Stone)), - new Tier( - SubTag.ENERGY_ROTATIONAL, - 1, - 32, - 1, - 2, - 2, - Materials.WoodSealed, - OrePrefixes.frameGt.get(Materials.WoodSealed), - OrePrefixes.stick.get(Materials.WoodSealed), - OrePrefixes.ingot.get(Materials.WoodSealed), - OrePrefixes.gearGt.get(Materials.WoodSealed), - OrePrefixes.gearGt.get(Materials.Stone)), - new Tier( - SubTag.ENERGY_ROTATIONAL, - 2, - 128, - 1, - 1, - 1, - Materials.Stone, - OrePrefixes.frameGt.get(Materials.Stone), - OrePrefixes.stick.get(Materials.Stone), - OrePrefixes.ingot.get(Materials.Stone), - OrePrefixes.gearGt.get(Materials.Stone), - OrePrefixes.gearGt.get(Materials.Bronze)), - new Tier( - SubTag.ENERGY_ROTATIONAL, - 2, - 128, - 1, - 2, - 2, - Materials.IronWood, - OrePrefixes.frameGt.get(Materials.IronWood), - OrePrefixes.stick.get(Materials.IronWood), - OrePrefixes.ingot.get(Materials.IronWood), - OrePrefixes.gearGt.get(Materials.IronWood), - OrePrefixes.gearGt.get(Materials.Bronze)), - new Tier( - SubTag.ENERGY_ROTATIONAL, - 3, - 512, - 1, - 1, - 1, - Materials.Bronze, - OrePrefixes.frameGt.get(Materials.Bronze), - OrePrefixes.stick.get(Materials.Bronze), - OrePrefixes.ingot.get(Materials.Bronze), - OrePrefixes.gearGt.get(Materials.Bronze), - OrePrefixes.gearGt.get(Materials.Steel)), - new Tier( - SubTag.ENERGY_ROTATIONAL, - 3, - 512, - 1, - 2, - 2, - Materials.Brass, - OrePrefixes.frameGt.get(Materials.Brass), - OrePrefixes.stick.get(Materials.Brass), - OrePrefixes.ingot.get(Materials.Brass), - OrePrefixes.gearGt.get(Materials.Brass), - OrePrefixes.gearGt.get(Materials.Steel)), + SubTag.ENERGY_STEAM, + 1, + 32, + 1, + 1, + 1, + Materials.Bronze, + OrePrefixes.frameGt.get(Materials.Bronze), + OrePrefixes.pipeMedium.get(Materials.Bronze), + OrePrefixes.pipeHuge.get(Materials.Bronze), + OrePrefixes.pipeMedium.get(Materials.Bronze), + OrePrefixes.pipeLarge.get(Materials.Bronze)), new Tier( - SubTag.ENERGY_ROTATIONAL, - 4, - 2048, - 1, - 1, - 1, - Materials.Steel, - OrePrefixes.frameGt.get(Materials.Steel), - OrePrefixes.stick.get(Materials.Steel), - OrePrefixes.ingot.get(Materials.Steel), - OrePrefixes.gearGt.get(Materials.Steel), - OrePrefixes.gearGt.get(Materials.TungstenSteel)), + SubTag.ENERGY_STEAM, + 2, + 128, + 1, + 1, + 1, + Materials.Steel, + OrePrefixes.frameGt.get(Materials.Steel), + OrePrefixes.pipeMedium.get(Materials.Steel), + OrePrefixes.pipeHuge.get(Materials.Steel), + OrePrefixes.pipeMedium.get(Materials.Steel), + OrePrefixes.pipeLarge.get(Materials.Steel)), new Tier( - SubTag.ENERGY_ROTATIONAL, - 4, - 2048, - 1, - 2, - 2, - Materials.Titanium, - OrePrefixes.frameGt.get(Materials.Titanium), - OrePrefixes.stick.get(Materials.Titanium), - OrePrefixes.ingot.get(Materials.Titanium), - OrePrefixes.gearGt.get(Materials.Titanium), - OrePrefixes.gearGt.get(Materials.TungstenSteel)), + SubTag.ENERGY_STEAM, + 3, + 512, + 1, + 1, + 1, + Materials.Titanium, + OrePrefixes.frameGt.get(Materials.Titanium), + OrePrefixes.pipeMedium.get(Materials.Titanium), + OrePrefixes.pipeHuge.get(Materials.Titanium), + OrePrefixes.pipeMedium.get(Materials.Titanium), + OrePrefixes.pipeLarge.get(Materials.Titanium)), new Tier( - SubTag.ENERGY_ROTATIONAL, - 5, - 8192, - 1, - 1, - 1, - Materials.TungstenSteel, - OrePrefixes.frameGt.get(Materials.TungstenSteel), - OrePrefixes.stick.get(Materials.TungstenSteel), - OrePrefixes.ingot.get(Materials.TungstenSteel), - OrePrefixes.gearGt.get(Materials.TungstenSteel), - OrePrefixes.gearGt.get(Materials.Iridium)), + SubTag.ENERGY_STEAM, + 4, + 2048, + 1, + 1, + 1, + Materials.TungstenSteel, + OrePrefixes.frameGt.get(Materials.TungstenSteel), + OrePrefixes.pipeMedium.get(Materials.TungstenSteel), + OrePrefixes.pipeHuge.get(Materials.TungstenSteel), + OrePrefixes.pipeMedium.get(Materials.TungstenSteel), + OrePrefixes.pipeLarge.get(Materials.TungstenSteel)), new Tier( - SubTag.ENERGY_ROTATIONAL, - 6, - 32768, - 1, - 1, - 1, - Materials.Iridium, - OrePrefixes.frameGt.get(Materials.Iridium), - OrePrefixes.stick.get(Materials.Iridium), - OrePrefixes.ingot.get(Materials.Iridium), - OrePrefixes.gearGt.get(Materials.Iridium), - OrePrefixes.gearGt.get(Materials.Neutronium)), + SubTag.ENERGY_STEAM, + 5, + 8192, + 1, + 1, + 1, + Materials.Iridium, + OrePrefixes.frameGt.get(Materials.Iridium), + OrePrefixes.pipeMedium.get(Materials.Iridium), + OrePrefixes.pipeHuge.get(Materials.Iridium), + OrePrefixes.pipeMedium.get(Materials.Iridium), + OrePrefixes.pipeLarge.get(Materials.Iridium)), new Tier( - SubTag.ENERGY_ROTATIONAL, - 9, - Integer.MAX_VALUE - 7, - 1, - 1, - 1, - Materials.Neutronium, - OrePrefixes.frameGt.get(Materials.Neutronium), - OrePrefixes.stick.get(Materials.Neutronium), - OrePrefixes.ingot.get(Materials.Neutronium), - OrePrefixes.gearGt.get(Materials.Neutronium), - OrePrefixes.gearGt.get(Materials.Neutronium)), }, - STEAM = new Tier[] { - new Tier( - SubTag.ENERGY_STEAM, - 1, - 32, - 1, - 1, - 1, - Materials.Bronze, - OrePrefixes.frameGt.get(Materials.Bronze), - OrePrefixes.pipeMedium.get(Materials.Bronze), - OrePrefixes.pipeHuge.get(Materials.Bronze), - OrePrefixes.pipeMedium.get(Materials.Bronze), - OrePrefixes.pipeLarge.get(Materials.Bronze)), - new Tier( - SubTag.ENERGY_STEAM, - 2, - 128, - 1, - 1, - 1, - Materials.Steel, - OrePrefixes.frameGt.get(Materials.Steel), - OrePrefixes.pipeMedium.get(Materials.Steel), - OrePrefixes.pipeHuge.get(Materials.Steel), - OrePrefixes.pipeMedium.get(Materials.Steel), - OrePrefixes.pipeLarge.get(Materials.Steel)), - new Tier( - SubTag.ENERGY_STEAM, - 3, - 512, - 1, - 1, - 1, - Materials.Titanium, - OrePrefixes.frameGt.get(Materials.Titanium), - OrePrefixes.pipeMedium.get(Materials.Titanium), - OrePrefixes.pipeHuge.get(Materials.Titanium), - OrePrefixes.pipeMedium.get(Materials.Titanium), - OrePrefixes.pipeLarge.get(Materials.Titanium)), - new Tier( - SubTag.ENERGY_STEAM, - 4, - 2048, - 1, - 1, - 1, - Materials.TungstenSteel, - OrePrefixes.frameGt.get(Materials.TungstenSteel), - OrePrefixes.pipeMedium.get(Materials.TungstenSteel), - OrePrefixes.pipeHuge.get(Materials.TungstenSteel), - OrePrefixes.pipeMedium.get(Materials.TungstenSteel), - OrePrefixes.pipeLarge.get(Materials.TungstenSteel)), - new Tier( - SubTag.ENERGY_STEAM, - 5, - 8192, - 1, - 1, - 1, - Materials.Iridium, - OrePrefixes.frameGt.get(Materials.Iridium), - OrePrefixes.pipeMedium.get(Materials.Iridium), - OrePrefixes.pipeHuge.get(Materials.Iridium), - OrePrefixes.pipeMedium.get(Materials.Iridium), - OrePrefixes.pipeLarge.get(Materials.Iridium)), - new Tier( - SubTag.ENERGY_STEAM, - 9, - Integer.MAX_VALUE - 7, - 1, - 1, - 1, - Materials.Neutronium, - OrePrefixes.frameGt.get(Materials.Neutronium), - OrePrefixes.pipeMedium.get(Materials.Neutronium), - OrePrefixes.pipeHuge.get(Materials.Neutronium), - OrePrefixes.pipeMedium.get(Materials.Neutronium), - OrePrefixes.pipeLarge.get(Materials.Neutronium)), }; + SubTag.ENERGY_STEAM, + 9, + Integer.MAX_VALUE - 7, + 1, + 1, + 1, + Materials.Neutronium, + OrePrefixes.frameGt.get(Materials.Neutronium), + OrePrefixes.pipeMedium.get(Materials.Neutronium), + OrePrefixes.pipeHuge.get(Materials.Neutronium), + OrePrefixes.pipeMedium.get(Materials.Neutronium), + OrePrefixes.pipeLarge.get(Materials.Neutronium)), }; /** * Used for Crafting Recipes */ @@ -453,8 +453,8 @@ public class Tier { private final Materials mMaterial; public Tier(SubTag aType, int aRank, long aPrimaryValue, long aSecondaryValue, long aSpeedMultiplier, - long aEnergyCostMultiplier, Materials aMaterial, Object aHullObject, Object aConductingObject, - Object aLargerConductingObject, Object aManagingObject, Object aBetterManagingObject) { + long aEnergyCostMultiplier, Materials aMaterial, Object aHullObject, Object aConductingObject, + Object aLargerConductingObject, Object aManagingObject, Object aBetterManagingObject) { mType = aType; mRank = (byte) aRank; mPrimaryValue = aPrimaryValue; diff --git a/src/main/java/gregtech/api/enums/ToolDictNames.java b/src/main/java/gregtech/api/enums/ToolDictNames.java index bc27fe6923..e4a8ee8444 100644 --- a/src/main/java/gregtech/api/enums/ToolDictNames.java +++ b/src/main/java/gregtech/api/enums/ToolDictNames.java @@ -35,7 +35,7 @@ public enum ToolDictNames { if (!aName.startsWith("craftingTool")) return false; for (ToolDictNames tool : ToolDictNames.values()) { if (tool.toString() - .equals(aName)) { + .equals(aName)) { return true; } } diff --git a/src/main/java/gregtech/api/events/BlockScanningEvent.java b/src/main/java/gregtech/api/events/BlockScanningEvent.java index 9d7500a8b0..27eb375a6f 100644 --- a/src/main/java/gregtech/api/events/BlockScanningEvent.java +++ b/src/main/java/gregtech/api/events/BlockScanningEvent.java @@ -27,8 +27,7 @@ public class BlockScanningEvent extends WorldEvent { public int mEUCost = 0; public BlockScanningEvent(World aWorld, EntityPlayer aPlayer, int aX, int aY, int aZ, byte aSide, int aScanLevel, - Block aBlock, TileEntity aTileEntity, ArrayList aList, float aClickX, float aClickY, - float aClickZ) { + Block aBlock, TileEntity aTileEntity, ArrayList aList, float aClickX, float aClickY, float aClickZ) { super(aWorld); mPlayer = aPlayer; mScanLevel = aScanLevel; diff --git a/src/main/java/gregtech/api/fluid/FluidTankGT.java b/src/main/java/gregtech/api/fluid/FluidTankGT.java index 0d21d7dd49..801354ac86 100644 --- a/src/main/java/gregtech/api/fluid/FluidTankGT.java +++ b/src/main/java/gregtech/api/fluid/FluidTankGT.java @@ -194,16 +194,15 @@ public class FluidTankGT implements IFluidTank { return mVoidExcess ? aFluid.amount : (int) tFilled; } return saturatedCast( - isEmpty() ? mVoidExcess ? aFluid.amount : Math.min(capacity(aFluid), aFluid.amount) - : contains(aFluid) - ? mVoidExcess ? aFluid.amount : Math.min(capacity(aFluid) - mAmount, aFluid.amount) - : 0); + isEmpty() ? mVoidExcess ? aFluid.amount : Math.min(capacity(aFluid), aFluid.amount) + : contains(aFluid) ? mVoidExcess ? aFluid.amount : Math.min(capacity(aFluid) - mAmount, aFluid.amount) + : 0); } public boolean canFillAll(FluidStack aFluid) { return aFluid == null || aFluid.amount <= 0 - || (isEmpty() ? mVoidExcess || aFluid.amount <= capacity(aFluid) - : contains(aFluid) && (mVoidExcess || mAmount + aFluid.amount <= capacity(aFluid))); + || (isEmpty() ? mVoidExcess || aFluid.amount <= capacity(aFluid) + : contains(aFluid) && (mVoidExcess || mAmount + aFluid.amount <= capacity(aFluid))); } public boolean canFillAll(long aAmount) { @@ -366,7 +365,7 @@ public class FluidTankGT implements IFluidTank { final Long tSize = mAdjustableCapacity.get(aFluid); return tSize == null ? Math.max(mAmount, mCapacity) - : Math.max(tSize * mAdjustableMultiplier, Math.max(mAmount, mCapacity)); + : Math.max(tSize * mAdjustableMultiplier, Math.max(mAmount, mCapacity)); } public boolean isHalf() { @@ -419,8 +418,8 @@ public class FluidTankGT implements IFluidTank { public String name() { return mFluid == null ? null - : mFluid.getFluid() - .getName(); + : mFluid.getFluid() + .getName(); } public FluidStack get() { diff --git a/src/main/java/gregtech/api/fluid/GT_FluidFactory.java b/src/main/java/gregtech/api/fluid/GT_FluidFactory.java index ae57f47430..7ffc824a79 100644 --- a/src/main/java/gregtech/api/fluid/GT_FluidFactory.java +++ b/src/main/java/gregtech/api/fluid/GT_FluidFactory.java @@ -53,12 +53,12 @@ public class GT_FluidFactory { * @return the registered {@link Fluid} */ public static Fluid of(final String fluidName, final String localizedName, final Materials material, - final FluidState state, final int temperature) { + final FluidState state, final int temperature) { return builder(fluidName).withLocalizedName(localizedName) - .withStateAndTemperature(state, temperature) - .buildAndRegister() - .configureMaterials(material) - .asFluid(); + .withStateAndTemperature(state, temperature) + .buildAndRegister() + .configureMaterials(material) + .asFluid(); } /** @@ -71,11 +71,11 @@ public class GT_FluidFactory { * @return the registered {@link Fluid} */ public static Fluid of(final String fluidName, final String localizedName, final FluidState state, - final int temperature) { + final int temperature) { return builder(fluidName).withLocalizedName(localizedName) - .withStateAndTemperature(state, temperature) - .buildAndRegister() - .asFluid(); + .withStateAndTemperature(state, temperature) + .buildAndRegister() + .asFluid(); } /** diff --git a/src/main/java/gregtech/api/graphs/GenerateNodeMap.java b/src/main/java/gregtech/api/graphs/GenerateNodeMap.java index b64020f33d..bbdfa40a10 100644 --- a/src/main/java/gregtech/api/graphs/GenerateNodeMap.java +++ b/src/main/java/gregtech/api/graphs/GenerateNodeMap.java @@ -50,7 +50,7 @@ public abstract class GenerateNodeMap { // gets the next node protected void generateNextNode(BaseMetaPipeEntity aPipe, Node aPipeNode, byte aInvalidSide, int aNextNodeValue, - ArrayList tConsumers, HashSet tNodeMap) { + ArrayList tConsumers, HashSet tNodeMap) { final MetaPipeEntity tMetaPipe = (MetaPipeEntity) aPipe.getMetaTileEntity(); for (byte side : ALL_VALID_SIDES) { if (side == aInvalidSide) { @@ -62,13 +62,13 @@ public abstract class GenerateNodeMap { final Pair nextTileEntity = getNextValidTileEntity(tNextTileEntity, tNewPipes, side, tNodeMap); if (nextTileEntity != null) { final Node tNextNode = generateNode( - nextTileEntity.mTileEntity, - aPipeNode, - aNextNodeValue + 1, - tNewPipes, - nextTileEntity.mSide, - tConsumers, - tNodeMap); + nextTileEntity.mTileEntity, + aPipeNode, + aNextNodeValue + 1, + tNewPipes, + nextTileEntity.mSide, + tConsumers, + tNodeMap); if (tNextNode != null) { aNextNodeValue = tNextNode.mHighestNodeValue; aPipeNode.mHighestNodeValue = tNextNode.mHighestNodeValue; @@ -84,7 +84,7 @@ public abstract class GenerateNodeMap { // on a valid tile entity create a new node protected Node generateNode(TileEntity aTileEntity, Node aPreviousNode, int aNextNodeValue, - ArrayList aPipes, int aSide, ArrayList aConsumers, HashSet aNodeMap) { + ArrayList aPipes, int aSide, ArrayList aConsumers, HashSet aNodeMap) { if (aTileEntity.isInvalid()) return null; final byte tSideOp = getOppositeSide(aSide); final byte tInvalidSide = aPreviousNode == null ? -1 : tSideOp; @@ -130,7 +130,7 @@ public abstract class GenerateNodeMap { // go over the pipes until we see a valid tile entity that needs a node protected Pair getNextValidTileEntity(TileEntity aTileEntity, ArrayList aPipes, byte aSide, - HashSet aNodeMap) { + HashSet aNodeMap) { if (isPipe(aTileEntity)) { final BaseMetaPipeEntity tPipe = (BaseMetaPipeEntity) aTileEntity; final MetaPipeEntity tMetaPipe = (MetaPipeEntity) tPipe.getMetaTileEntity(); @@ -168,14 +168,14 @@ public abstract class GenerateNodeMap { // checks if the tile entity is a consumer and add to the list protected abstract boolean addConsumer(TileEntity aTileEntity, byte aSide, int aNodeValue, - ArrayList aConsumers); + ArrayList aConsumers); // get correct pathClass that you need for your node network protected abstract NodePath getNewPath(MetaPipeEntity[] aPipes); // used for if you need to use dead ends for something can be null protected Node getEmptyNode(int aNodeValue, byte aSide, TileEntity aTileEntity, - ArrayList aConsumers) { + ArrayList aConsumers) { return null; } diff --git a/src/main/java/gregtech/api/graphs/GenerateNodeMapPower.java b/src/main/java/gregtech/api/graphs/GenerateNodeMapPower.java index 67591040e9..f2a2e95df8 100644 --- a/src/main/java/gregtech/api/graphs/GenerateNodeMapPower.java +++ b/src/main/java/gregtech/api/graphs/GenerateNodeMapPower.java @@ -33,12 +33,12 @@ public class GenerateNodeMapPower extends GenerateNodeMap { @Override protected boolean isPipe(TileEntity aTileEntity) { return super.isPipe(aTileEntity) - && ((BaseMetaPipeEntity) aTileEntity).getMetaTileEntity() instanceof GT_MetaPipeEntity_Cable; + && ((BaseMetaPipeEntity) aTileEntity).getMetaTileEntity() instanceof GT_MetaPipeEntity_Cable; } @Override protected boolean addConsumer(TileEntity aTileEntity, byte aSide, int aNodeValue, - ArrayList aConsumers) { + ArrayList aConsumers) { if (aTileEntity instanceof BaseMetaTileEntity tBaseTileEntity) { if (tBaseTileEntity.inputEnergyFrom(aSide, false)) { ConsumerNode tConsumerNode = new NodeGTBaseMetaTile(aNodeValue, tBaseTileEntity, aSide, aConsumers); @@ -61,25 +61,25 @@ public class GenerateNodeMapPower extends GenerateNodeMap { boolean crossesChuncks = dX >> 4 != aTileEntity.xCoord >> 4 || dZ >> 4 != aTileEntity.zCoord >> 4; TileEntity tNextTo = null; if (!crossesChuncks || !aTileEntity.getWorldObj() - .blockExists(dX, dY, dZ)) + .blockExists(dX, dY, dZ)) tNextTo = aTileEntity.getWorldObj() - .getTileEntity(dX, dY, dZ); + .getTileEntity(dX, dY, dZ); if (((IEnergySink) aTileEntity).acceptsEnergyFrom(tNextTo, ForgeDirection.getOrientation(aSide))) { ConsumerNode tConsumerNode = new NodeEnergySink( - aNodeValue, - (IEnergySink) aTileEntity, - aSide, - aConsumers); + aNodeValue, + (IEnergySink) aTileEntity, + aSide, + aConsumers); aConsumers.add(tConsumerNode); return true; } } else if (GregTech_API.mOutputRF && aTileEntity instanceof IEnergyReceiver) { ConsumerNode tConsumerNode = new NodeEnergyReceiver( - aNodeValue, - (IEnergyReceiver) aTileEntity, - aSide, - aConsumers); + aNodeValue, + (IEnergyReceiver) aTileEntity, + aSide, + aConsumers); aConsumers.add(tConsumerNode); return true; } @@ -94,7 +94,7 @@ public class GenerateNodeMapPower extends GenerateNodeMap { // used to apply voltage on dead ends @Override protected Node getEmptyNode(int aNodeValue, byte aSide, TileEntity aTileEntity, - ArrayList aConsumers) { + ArrayList aConsumers) { ConsumerNode tNode = new EmptyPowerConsumer(aNodeValue, aTileEntity, aSide, aConsumers); aConsumers.add(tNode); return tNode; diff --git a/src/main/java/gregtech/api/graphs/Node.java b/src/main/java/gregtech/api/graphs/Node.java index 005b32a5b7..9afe009d3e 100644 --- a/src/main/java/gregtech/api/graphs/Node.java +++ b/src/main/java/gregtech/api/graphs/Node.java @@ -18,7 +18,7 @@ public class Node { mHighestNodeValue = aNodeValue; // you don't want to generate map multiple times in the same tick mCreationTime = MinecraftServer.getServer() - .getTickCounter(); + .getTickCounter(); } public final TileEntity mTileEntity; diff --git a/src/main/java/gregtech/api/graphs/PowerNodes.java b/src/main/java/gregtech/api/graphs/PowerNodes.java index 22f1e02add..be94d2312a 100644 --- a/src/main/java/gregtech/api/graphs/PowerNodes.java +++ b/src/main/java/gregtech/api/graphs/PowerNodes.java @@ -16,7 +16,7 @@ public class PowerNodes { // check if the looked for node is next to or get the next node that is closer to it public static long powerNode(Node aCurrentNode, Node aPreviousNode, NodeList aConsumers, long aVoltage, - long aMaxAmps) { + long aMaxAmps) { long tAmpsUsed = 0; ConsumerNode tConsumer = (ConsumerNode) aConsumers.getNode(); int tLoopProtection = 0; @@ -33,12 +33,12 @@ public class PowerNodes { } else { if (aPreviousNode == tNextNode) return tAmpsUsed; tAmpsUsed += processNextNode( - aCurrentNode, - tNextNode, - aConsumers, - j, - aMaxAmps - tAmpsUsed, - aVoltage); + aCurrentNode, + tNextNode, + aConsumers, + j, + aMaxAmps - tAmpsUsed, + aVoltage); tConsumer = (ConsumerNode) aConsumers.getNode(); } break; @@ -52,12 +52,12 @@ public class PowerNodes { if (tNextNode.mNodeValue > aCurrentNode.mNodeValue && tNextNode.mNodeValue < tTargetNodeValue) { if (tNextNode == aPreviousNode) return tAmpsUsed; tAmpsUsed += processNextNodeAbove( - aCurrentNode, - tNextNode, - aConsumers, - side, - aMaxAmps - tAmpsUsed, - aVoltage); + aCurrentNode, + tNextNode, + aConsumers, + side, + aMaxAmps - tAmpsUsed, + aVoltage); tConsumer = (ConsumerNode) aConsumers.getNode(); break; } else if (tNextNode.mNodeValue == tTargetNodeValue) { @@ -80,7 +80,7 @@ public class PowerNodes { // checking if target node is next to it or has a higher value then current node value // these functions are different to either go down or up the stack protected static long powerNodeAbove(Node aCurrentNode, Node aPreviousNode, NodeList aConsumers, long aVoltage, - long aMaxAmps) { + long aMaxAmps) { long tAmpsUsed = 0; int tLoopProtection = 0; ConsumerNode tConsumer = (ConsumerNode) aConsumers.getNode(); @@ -95,12 +95,12 @@ public class PowerNodes { if (tNextNode.mNodeValue > aCurrentNode.mNodeValue && tNextNode.mNodeValue < tTargetNodeValue) { if (tNextNode == aPreviousNode) return tAmpsUsed; tAmpsUsed += processNextNodeAbove( - aCurrentNode, - tNextNode, - aConsumers, - side, - aMaxAmps - tAmpsUsed, - aVoltage); + aCurrentNode, + tNextNode, + aConsumers, + side, + aMaxAmps - tAmpsUsed, + aVoltage); tConsumer = (ConsumerNode) aConsumers.getNode(); break; } else if (tNextNode.mNodeValue == tTargetNodeValue) { @@ -121,7 +121,7 @@ public class PowerNodes { } protected static long processNextNode(Node aCurrentNode, Node aNextNode, NodeList aConsumers, int aSide, - long aMaxAmps, long aVoltage) { + long aMaxAmps, long aVoltage) { if (aCurrentNode.locks[aSide].isLocked()) { aConsumers.getNextNode(); return 0; @@ -142,7 +142,7 @@ public class PowerNodes { } protected static long processNextNodeAbove(Node aCurrentNode, Node aNextNode, NodeList aConsumers, int aSide, - long aMaxAmps, long aVoltage) { + long aMaxAmps, long aVoltage) { if (aCurrentNode.locks[aSide].isLocked()) { aConsumers.getNextNode(); return 0; @@ -163,7 +163,7 @@ public class PowerNodes { } protected static long processNodeInject(Node aCurrentNode, ConsumerNode aConsumer, int aSide, long aMaxAmps, - long aVoltage) { + long aVoltage) { if (aCurrentNode.locks[aSide].isLocked()) return 0; final PowerNodePath tPath = (PowerNodePath) aCurrentNode.mNodePaths[aSide]; final PowerNodePath tSelfPath = (PowerNodePath) aCurrentNode.mSelfPath; diff --git a/src/main/java/gregtech/api/graphs/consumers/NodeEnergyConnected.java b/src/main/java/gregtech/api/graphs/consumers/NodeEnergyConnected.java index bd2087de84..65dd50f9df 100644 --- a/src/main/java/gregtech/api/graphs/consumers/NodeEnergyConnected.java +++ b/src/main/java/gregtech/api/graphs/consumers/NodeEnergyConnected.java @@ -9,7 +9,7 @@ import gregtech.api.interfaces.tileentity.IEnergyConnected; public class NodeEnergyConnected extends ConsumerNode { public NodeEnergyConnected(int aNodeValue, IEnergyConnected aTileEntity, byte aSide, - ArrayList aConsumers) { + ArrayList aConsumers) { super(aNodeValue, (TileEntity) aTileEntity, aSide, aConsumers); } diff --git a/src/main/java/gregtech/api/graphs/consumers/NodeEnergyReceiver.java b/src/main/java/gregtech/api/graphs/consumers/NodeEnergyReceiver.java index fec34c9d66..4e84b04e2a 100644 --- a/src/main/java/gregtech/api/graphs/consumers/NodeEnergyReceiver.java +++ b/src/main/java/gregtech/api/graphs/consumers/NodeEnergyReceiver.java @@ -22,7 +22,7 @@ public class NodeEnergyReceiver extends ConsumerNode { int mRestRF = 0; public NodeEnergyReceiver(int aNodeValue, IEnergyReceiver aTileEntity, byte aSide, - ArrayList aConsumers) { + ArrayList aConsumers) { super(aNodeValue, (TileEntity) aTileEntity, aSide, aConsumers); } @@ -41,7 +41,7 @@ public class NodeEnergyReceiver extends ConsumerNode { return ampsUsed; } if (GregTech_API.mRFExplosions && GregTech_API.sMachineExplosions - && ((IEnergyReceiver) mTileEntity).getMaxEnergyStored(tDirection) < rfOut * 600L) { + && ((IEnergyReceiver) mTileEntity).getMaxEnergyStored(tDirection) < rfOut * 600L) { explode(rfOut); } return 0; @@ -55,15 +55,14 @@ public class NodeEnergyReceiver extends ConsumerNode { World tWorld = mTileEntity.getWorldObj(); GT_Utility.sendSoundToPlayers(tWorld, SoundResource.IC2_MACHINES_MACHINE_OVERLOAD, 1.0F, -1, tX, tY, tZ); tWorld.setBlock(tX, tY, tZ, Blocks.air); - if (GregTech_API.sMachineExplosions) if (GT_Mod.gregtechproxy.mPollution) GT_Pollution.addPollution( - tWorld.getChunkFromBlockCoords(tX, tZ), - GT_Mod.gregtechproxy.mPollutionOnExplosion); + if (GregTech_API.sMachineExplosions) if (GT_Mod.gregtechproxy.mPollution) GT_Pollution + .addPollution(tWorld.getChunkFromBlockCoords(tX, tZ), GT_Mod.gregtechproxy.mPollutionOnExplosion); new WorldSpawnedEventBuilder.ExplosionEffectEventBuilder().setStrength(tStrength) - .setSmoking(true) - .setPosition(tX + 0.5, tY + 0.5, tZ + 0.5) - .setWorld(tWorld) - .run(); + .setSmoking(true) + .setPosition(tX + 0.5, tY + 0.5, tZ + 0.5) + .setWorld(tWorld) + .run(); } } } diff --git a/src/main/java/gregtech/api/graphs/consumers/NodeEnergySink.java b/src/main/java/gregtech/api/graphs/consumers/NodeEnergySink.java index 16b8f99939..d978a99d0b 100644 --- a/src/main/java/gregtech/api/graphs/consumers/NodeEnergySink.java +++ b/src/main/java/gregtech/api/graphs/consumers/NodeEnergySink.java @@ -23,8 +23,8 @@ public class NodeEnergySink extends ConsumerNode { public int injectEnergy(long aVoltage, long aMaxAmps) { int tUsedAmps = 0; while (aMaxAmps > tUsedAmps && ((IEnergySink) mTileEntity).getDemandedEnergy() > 0 - && ((IEnergySink) mTileEntity).injectEnergy(ForgeDirection.getOrientation(mSide), aVoltage, aVoltage) - < aVoltage) + && ((IEnergySink) mTileEntity).injectEnergy(ForgeDirection.getOrientation(mSide), aVoltage, aVoltage) + < aVoltage) tUsedAmps++; return tUsedAmps; } diff --git a/src/main/java/gregtech/api/graphs/consumers/NodeGTBaseMetaTile.java b/src/main/java/gregtech/api/graphs/consumers/NodeGTBaseMetaTile.java index 19a2478c07..ec75468db5 100644 --- a/src/main/java/gregtech/api/graphs/consumers/NodeGTBaseMetaTile.java +++ b/src/main/java/gregtech/api/graphs/consumers/NodeGTBaseMetaTile.java @@ -9,7 +9,7 @@ import gregtech.api.metatileentity.BaseMetaTileEntity; public class NodeGTBaseMetaTile extends ConsumerNode { public NodeGTBaseMetaTile(int aNodeValue, BaseMetaTileEntity aTileEntity, byte aSide, - ArrayList aConsumers) { + ArrayList aConsumers) { super(aNodeValue, aTileEntity, aSide, aConsumers); } diff --git a/src/main/java/gregtech/api/graphs/paths/PowerNodePath.java b/src/main/java/gregtech/api/graphs/paths/PowerNodePath.java index 97edd5757c..a232822b26 100644 --- a/src/main/java/gregtech/api/graphs/paths/PowerNodePath.java +++ b/src/main/java/gregtech/api/graphs/paths/PowerNodePath.java @@ -28,7 +28,7 @@ public class PowerNodePath extends NodePath { public void applyVoltage(long aVoltage, boolean aCountUp) { int tNewTime = MinecraftServer.getServer() - .getTickCounter(); + .getTickCounter(); if (mTick != tNewTime) { reset(tNewTime - mTick); mTick = tNewTime; @@ -78,8 +78,7 @@ public class PowerNodePath extends NodePath { // but still allow the player to see if activity is happening public long getAmps() { int tTime = MinecraftServer.getServer() - .getTickCounter() - - 10; + .getTickCounter() - 10; if (mTick < tTime) { reset(tTime - mTick); mTick = tTime; diff --git a/src/main/java/gregtech/api/gui/GT_Container.java b/src/main/java/gregtech/api/gui/GT_Container.java index 819171ae02..e2ef6fd658 100644 --- a/src/main/java/gregtech/api/gui/GT_Container.java +++ b/src/main/java/gregtech/api/gui/GT_Container.java @@ -140,9 +140,9 @@ public class GT_Container extends Container { } if (aMouseclick == 1) { aPlayer.dropPlayerItemWithRandomChoice( - aPlayerInventory.getItemStack() - .splitStack(1), - true); + aPlayerInventory.getItemStack() + .splitStack(1), + true); if (aPlayerInventory.getItemStack().stackSize == 0) { aPlayerInventory.setItemStack(null); } @@ -155,8 +155,7 @@ public class GT_Container extends Container { if (tTempStack != null) { rStack = GT_Utility.copyOrNull(tTempStack); if (aSlot.getStack() != null && aSlot.getStack() - .getItem() - == tTempStack.getItem()) { + .getItem() == tTempStack.getItem()) { slotClick(aSlotIndex, aMouseclick, aShifthold, aPlayer); } } @@ -195,8 +194,8 @@ public class GT_Container extends Container { aSlot.onPickupFromSlot(aPlayer, aPlayerInventory.getItemStack()); } else if (aSlot.isItemValid(mouseStack)) { if (tTempStack.getItem() == mouseStack.getItem() - && tTempStack.getItemDamage() == mouseStack.getItemDamage() - && ItemStack.areItemStackTagsEqual(tTempStack, mouseStack)) { + && tTempStack.getItemDamage() == mouseStack.getItemDamage() + && ItemStack.areItemStackTagsEqual(tTempStack, mouseStack)) { tTempStackSize = aMouseclick == 0 ? mouseStack.stackSize : 1; if (tTempStackSize > aSlot.getSlotStackLimit() - tTempStack.stackSize) { tTempStackSize = aSlot.getSlotStackLimit() - tTempStack.stackSize; @@ -214,23 +213,23 @@ public class GT_Container extends Container { aPlayerInventory.setItemStack(tTempStack); } } else if (tTempStack.getItem() == mouseStack.getItem() && mouseStack.getMaxStackSize() > 1 - && (!tTempStack.getHasSubtypes() - || tTempStack.getItemDamage() == mouseStack.getItemDamage()) - && ItemStack.areItemStackTagsEqual(tTempStack, mouseStack)) { - tTempStackSize = tTempStack.stackSize; - - if (tTempStackSize > 0 - && tTempStackSize + mouseStack.stackSize <= mouseStack.getMaxStackSize()) { - mouseStack.stackSize += tTempStackSize; - tTempStack = aSlot.decrStackSize(tTempStackSize); - - if (tTempStack.stackSize == 0) { - aSlot.putStack(null); - } - - aSlot.onPickupFromSlot(aPlayer, aPlayerInventory.getItemStack()); + && (!tTempStack.getHasSubtypes() + || tTempStack.getItemDamage() == mouseStack.getItemDamage()) + && ItemStack.areItemStackTagsEqual(tTempStack, mouseStack)) { + tTempStackSize = tTempStack.stackSize; + + if (tTempStackSize > 0 + && tTempStackSize + mouseStack.stackSize <= mouseStack.getMaxStackSize()) { + mouseStack.stackSize += tTempStackSize; + tTempStack = aSlot.decrStackSize(tTempStackSize); + + if (tTempStack.stackSize == 0) { + aSlot.putStack(null); } + + aSlot.onPickupFromSlot(aPlayer, aPlayerInventory.getItemStack()); } + } } aSlot.onSlotChanged(); } @@ -245,7 +244,7 @@ public class GT_Container extends Container { // get the stack at the specified hotbar slot. tTempStack = aPlayerInventory.getStackInSlot(aMouseclick); boolean canSwap = tTempStack == null - || aSlot.inventory == aPlayerInventory && aSlot.isItemValid(tTempStack); + || aSlot.inventory == aPlayerInventory && aSlot.isItemValid(tTempStack); tTempStackSize = -1; if (!canSwap) { @@ -275,15 +274,15 @@ public class GT_Container extends Container { } } } else if (aShifthold == 3 && aPlayer.capabilities.isCreativeMode - && aPlayerInventory.getItemStack() == null - && aSlotIndex >= 0) { - aSlot = this.inventorySlots.get(aSlotIndex); - if (aSlot != null && aSlot.getHasStack()) { - tTempStack = GT_Utility.copyOrNull(aSlot.getStack()); - tTempStack.stackSize = tTempStack.getMaxStackSize(); - aPlayerInventory.setItemStack(tTempStack); - } + && aPlayerInventory.getItemStack() == null + && aSlotIndex >= 0) { + aSlot = this.inventorySlots.get(aSlotIndex); + if (aSlot != null && aSlot.getHasStack()) { + tTempStack = GT_Utility.copyOrNull(aSlot.getStack()); + tTempStack.stackSize = tTempStack.getMaxStackSize(); + aPlayerInventory.setItemStack(tTempStack); } + } return rStack; } @@ -296,8 +295,8 @@ public class GT_Container extends Container { // null checks and checks if the item can be stacked (maxStackSize > 1) if (getSlotCount() > 0 && slotObject != null - && slotObject.getHasStack() - && !(slotObject instanceof GT_Slot_Holo)) { + && slotObject.getHasStack() + && !(slotObject instanceof GT_Slot_Holo)) { ItemStack stackInSlot = slotObject.getStack(); stack = GT_Utility.copyOrNull(stackInSlot); @@ -309,12 +308,12 @@ public class GT_Container extends Container { } // Player -> TileEntity } else if (!mergeItemStack( - stackInSlot, - getShiftClickStartIndex(), - getShiftClickStartIndex() + getShiftClickSlotCount(), - false)) { - return null; - } + stackInSlot, + getShiftClickStartIndex(), + getShiftClickStartIndex() + getShiftClickSlotCount(), + false)) { + return null; + } if (stackInSlot.stackSize == 0) { slotObject.putStack(null); @@ -344,15 +343,15 @@ public class GT_Container extends Container { if (aStack.isStackable()) { while (aStack.stackSize > 0 - && (!reverseOrder && slotIndex < aSlotCount || reverseOrder && slotIndex >= aStartIndex)) { + && (!reverseOrder && slotIndex < aSlotCount || reverseOrder && slotIndex >= aStartIndex)) { slot = this.inventorySlots.get(slotIndex); itemStack = slot.getStack(); if (!(slot instanceof GT_Slot_Holo) && !(slot instanceof GT_Slot_Output) - && slot.isItemValid(aStack) - && itemStack != null - && itemStack.getItem() == aStack.getItem() - && (!aStack.getHasSubtypes() || aStack.getItemDamage() == itemStack.getItemDamage()) - && ItemStack.areItemStackTagsEqual(aStack, itemStack)) { + && slot.isItemValid(aStack) + && itemStack != null + && itemStack.getItem() == aStack.getItem() + && (!aStack.getHasSubtypes() || aStack.getItemDamage() == itemStack.getItemDamage()) + && ItemStack.areItemStackTagsEqual(aStack, itemStack)) { int combinedStackSize = itemStack.stackSize + aStack.stackSize; if (itemStack.stackSize < mTileEntity.getInventoryStackLimit()) { if (combinedStackSize <= aStack.getMaxStackSize()) { @@ -598,7 +597,7 @@ public class GT_Container extends Container { } protected static ItemStack handleFluidSlotClick(IFluidAccess aFluidAccess, EntityPlayer aPlayer, - boolean aProcessFullStack, boolean aCanDrain, boolean aCanFill) { + boolean aProcessFullStack, boolean aCanDrain, boolean aCanFill) { ItemStack tStackHeld = aPlayer.inventory.getItemStack(); ItemStack tStackSizedOne = GT_Utility.copyAmount(1, tStackHeld); if (tStackSizedOne == null || tStackHeld.stackSize == 0) return null; @@ -669,11 +668,10 @@ public class GT_Container extends Container { } protected static ItemStack fillFluid(IFluidAccess aFluidAccess, EntityPlayer aPlayer, FluidStack aFluidHeld, - boolean aProcessFullStack) { + boolean aProcessFullStack) { // we are not using aMachine.fill() here any more, so we need to check for fluid type here ourselves if (aFluidAccess.get() != null && !aFluidAccess.get() - .isFluidEqual(aFluidHeld)) - return null; + .isFluidEqual(aFluidHeld)) return null; ItemStack tStackHeld = aPlayer.inventory.getItemStack(); ItemStack tStackSizedOne = GT_Utility.copyAmount(1, tStackHeld); if (tStackSizedOne == null) return null; diff --git a/src/main/java/gregtech/api/gui/GT_ContainerMetaTile_Machine.java b/src/main/java/gregtech/api/gui/GT_ContainerMetaTile_Machine.java index 3f2b45064d..af1393cbfb 100644 --- a/src/main/java/gregtech/api/gui/GT_ContainerMetaTile_Machine.java +++ b/src/main/java/gregtech/api/gui/GT_ContainerMetaTile_Machine.java @@ -22,10 +22,10 @@ import gregtech.api.util.GT_Utility; public class GT_ContainerMetaTile_Machine extends GT_Container { public int mActive = 0, mMaxProgressTime = 0, mProgressTime = 0, mEnergy = 0, mSteam = 0, mSteamStorage = 0, - mStorage = 0, mOutput = 0, mInput = 0, mID = 0, mDisplayErrorCode = 0; + mStorage = 0, mOutput = 0, mInput = 0, mID = 0, mDisplayErrorCode = 0; public long mEnergyLong = 0, mStorageLong = 0; private int oActive = 0, oMaxProgressTime = 0, oProgressTime = 0, oEnergy = 0, oSteam = 0, oSteamStorage = 0, - oStorage = 0, oOutput = 0, oInput = 0, oID = 0, oDisplayErrorCode = 0; + oStorage = 0, oOutput = 0, oInput = 0, oID = 0, oDisplayErrorCode = 0; private long oEnergyLong = 0, oStorageLong = 0; protected int mTimer = 0; protected Runnable circuitSlotClickCallback; @@ -45,7 +45,7 @@ public class GT_ContainerMetaTile_Machine extends GT_Container { } public GT_ContainerMetaTile_Machine(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity, - boolean doesBindInventory) { + boolean doesBindInventory) { super(aInventoryPlayer, aTileEntity); mTileEntity = aTileEntity; @@ -61,10 +61,10 @@ public class GT_ContainerMetaTile_Machine extends GT_Container { protected void addCircuitSlot() { if (mTileEntity.getMetaTileEntity() instanceof IConfigurationCircuitSupport ccs) { GT_Slot_Render slotCircuit = new GT_Slot_Render( - mTileEntity, - ccs.getCircuitSlot(), - ccs.getCircuitSlotX(), - ccs.getCircuitSlotY()); + mTileEntity, + ccs.getCircuitSlot(), + ccs.getCircuitSlotX(), + ccs.getCircuitSlotY()); addSlotToContainer(slotCircuit); slotCircuit.setEnabled(ccs.allowSelectCircuit()); } @@ -222,9 +222,8 @@ public class GT_ContainerMetaTile_Machine extends GT_Container { List tCircuits = ccs.getConfigurationCircuits(); int index = GT_Utility.findMatchingStackInList(tCircuits, cursorStack); if (index < 0) { - int curIndex = GT_Utility.findMatchingStackInList( - tCircuits, - machine.getStackInSlot(ccs.getCircuitSlot())) + 1; + int curIndex = GT_Utility + .findMatchingStackInList(tCircuits, machine.getStackInSlot(ccs.getCircuitSlot())) + 1; if (aMouseclick == 0) { curIndex += 1; } else { diff --git a/src/main/java/gregtech/api/gui/GT_Container_BasicMachine.java b/src/main/java/gregtech/api/gui/GT_Container_BasicMachine.java index 976d7e8127..479c021d89 100644 --- a/src/main/java/gregtech/api/gui/GT_Container_BasicMachine.java +++ b/src/main/java/gregtech/api/gui/GT_Container_BasicMachine.java @@ -217,7 +217,7 @@ public class GT_Container_BasicMachine extends GT_Container_BasicTank { } default -> { if (aSlotNumber == OTHER_SLOT_COUNT + 1 + machine.mInputSlotCount + machine.mOutputItems.length - && aMouseclick < 2) { + && aMouseclick < 2) { GT_MetaTileEntity_BasicTank tTank = (GT_MetaTileEntity_BasicTank) mTileEntity.getMetaTileEntity(); if (mTileEntity.isClientSide()) { // see parent class slotClick for an explanation on why doing this @@ -228,11 +228,11 @@ public class GT_Container_BasicMachine extends GT_Container_BasicTank { GT_Recipe_Map recipes = machine.getRecipeList(); // If the machine has recipes but no fluid inputs, disallow filling this slot with fluids. ItemStack tToken = handleFluidSlotClick( - tFillableAccess, - aPlayer, - aMouseclick == 0, - true, - (recipes == null || recipes.hasFluidInputs())); + tFillableAccess, + aPlayer, + aMouseclick == 0, + true, + (recipes == null || recipes.hasFluidInputs())); if (mTileEntity.isServerSide() && tToken != null) mTileEntity.markInventoryBeenModified(); return tToken; } else { diff --git a/src/main/java/gregtech/api/gui/GT_Container_BasicTank.java b/src/main/java/gregtech/api/gui/GT_Container_BasicTank.java index f463b35f7c..08e8e6eb00 100644 --- a/src/main/java/gregtech/api/gui/GT_Container_BasicTank.java +++ b/src/main/java/gregtech/api/gui/GT_Container_BasicTank.java @@ -56,11 +56,11 @@ public class GT_Container_BasicTank extends GT_ContainerMetaTile_Machine { } IFluidAccess tDrainableAccess = constructFluidAccess(tTank, false); return handleFluidSlotClick( - tDrainableAccess, - aPlayer, - aMouseclick == 0, - true, - !tTank.isDrainableStackSeparate()); + tDrainableAccess, + aPlayer, + aMouseclick == 0, + true, + !tTank.isDrainableStackSeparate()); } return super.slotClick(aSlotIndex, aMouseclick, aShifthold, aPlayer); } diff --git a/src/main/java/gregtech/api/gui/GT_Container_MultiMachine.java b/src/main/java/gregtech/api/gui/GT_Container_MultiMachine.java index bcc9219d5e..142b84e008 100644 --- a/src/main/java/gregtech/api/gui/GT_Container_MultiMachine.java +++ b/src/main/java/gregtech/api/gui/GT_Container_MultiMachine.java @@ -18,7 +18,7 @@ public class GT_Container_MultiMachine extends GT_ContainerMetaTile_Machine { } public GT_Container_MultiMachine(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity, - boolean bindInventory) { + boolean bindInventory) { super(aInventoryPlayer, aTileEntity, bindInventory); } diff --git a/src/main/java/gregtech/api/gui/GT_GUIColorOverride.java b/src/main/java/gregtech/api/gui/GT_GUIColorOverride.java index 7c6328bb34..85e56d9b52 100644 --- a/src/main/java/gregtech/api/gui/GT_GUIColorOverride.java +++ b/src/main/java/gregtech/api/gui/GT_GUIColorOverride.java @@ -22,27 +22,22 @@ public class GT_GUIColorOverride { private static final Object NOT_FOUND = new Object(); private static final LoadingCache cache = CacheBuilder.newBuilder() - .softValues() - .build(new CacheLoader<>() { - - @Override - public Object load( - @Nonnull ResourceLocation key) - throws Exception { - IResource ir = Minecraft.getMinecraft() - .getResourceManager() - .getResource( - key); - if (ir.hasMetadata()) - return ir.getMetadata( - "colors"); - // return a dummy - // object because - // LoadingCache - // doesn't like null - return NOT_FOUND; - } - }); + .softValues() + .build(new CacheLoader<>() { + + @Override + public Object load(@Nonnull ResourceLocation key) throws Exception { + IResource ir = Minecraft.getMinecraft() + .getResourceManager() + .getResource(key); + if (ir.hasMetadata()) return ir.getMetadata("colors"); + // return a dummy + // object because + // LoadingCache + // doesn't like null + return NOT_FOUND; + } + }); private static final GT_GUIColorOverride FALLBACK = new GT_GUIColorOverride(); private ColorsMetadataSection cmSection; diff --git a/src/main/java/gregtech/api/gui/GT_GUIContainerMetaTile_Machine.java b/src/main/java/gregtech/api/gui/GT_GUIContainerMetaTile_Machine.java index cbccdc5385..a72e9737ee 100644 --- a/src/main/java/gregtech/api/gui/GT_GUIContainerMetaTile_Machine.java +++ b/src/main/java/gregtech/api/gui/GT_GUIContainerMetaTile_Machine.java @@ -47,20 +47,20 @@ public class GT_GUIContainerMetaTile_Machine extends GT_GUIContainer implements // Cover Tabs support. Subclasses can override display position, style and visuals by overriding setupCoverTabs public GT_GuiCoverTabLine coverTabs; private static final int COVER_TAB_LEFT = -16, COVER_TAB_TOP = 1, COVER_TAB_HEIGHT = 20, COVER_TAB_WIDTH = 18, - COVER_TAB_SPACING = 2; + COVER_TAB_SPACING = 2; private static final DisplayStyle COVER_TAB_X_DIR = DisplayStyle.NONE, COVER_TAB_Y_DIR = DisplayStyle.NORMAL; private static final GT_GuiTabIconSet TAB_ICONSET = new GT_GuiTabIconSet( - GT_GuiIcon.TAB_NORMAL, - GT_GuiIcon.TAB_HIGHLIGHT, - GT_GuiIcon.TAB_DISABLED); + GT_GuiIcon.TAB_NORMAL, + GT_GuiIcon.TAB_HIGHLIGHT, + GT_GuiIcon.TAB_DISABLED); public GT_GUIContainerMetaTile_Machine(GT_ContainerMetaTile_Machine aContainer, String aGUIbackground) { super(aContainer, aGUIbackground); mContainer = aContainer; DisplayStyle preferredDisplayStyle = GT_Mod.gregtechproxy.mCoverTabsVisible - ? (GT_Mod.gregtechproxy.mCoverTabsFlipped ? DisplayStyle.INVERSE : DisplayStyle.NORMAL) - : DisplayStyle.NONE; + ? (GT_Mod.gregtechproxy.mCoverTabsFlipped ? DisplayStyle.INVERSE : DisplayStyle.NORMAL) + : DisplayStyle.NONE; setupCoverTabs(preferredDisplayStyle); // Only setup tooltips if they're currently enabled. @@ -73,7 +73,7 @@ public class GT_GUIContainerMetaTile_Machine extends GT_GUIContainer implements } public GT_GUIContainerMetaTile_Machine(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity, - String aGUIbackground) { + String aGUIbackground) { this(new GT_ContainerMetaTile_Machine(aInventoryPlayer, aTileEntity), aGUIbackground); } @@ -82,18 +82,18 @@ public class GT_GUIContainerMetaTile_Machine extends GT_GUIContainer implements */ protected void setupCoverTabs(DisplayStyle preferredDisplayStyle) { coverTabs = new GT_GuiCoverTabLine( - this, - COVER_TAB_LEFT, - COVER_TAB_TOP, - COVER_TAB_HEIGHT, - COVER_TAB_WIDTH, - COVER_TAB_SPACING, - COVER_TAB_X_DIR, - COVER_TAB_Y_DIR, - preferredDisplayStyle, - getTabBackground(), - getMachine().getBaseMetaTileEntity(), - getColorization()); + this, + COVER_TAB_LEFT, + COVER_TAB_TOP, + COVER_TAB_HEIGHT, + COVER_TAB_WIDTH, + COVER_TAB_SPACING, + COVER_TAB_X_DIR, + COVER_TAB_Y_DIR, + preferredDisplayStyle, + getTabBackground(), + getMachine().getBaseMetaTileEntity(), + getColorization()); } @Override @@ -182,9 +182,9 @@ public class GT_GUIContainerMetaTile_Machine extends GT_GUIContainer implements protected void setupTooltips() { if (mContainer.mTileEntity.getMetaTileEntity() instanceof IConfigurationCircuitSupport ccs) { if (ccs.allowSelectCircuit()) addToolTip( - new GT_GuiSlotTooltip( - mContainer.getSlot(ccs.getCircuitGUISlot()), - mTooltipCache.getData(GHOST_CIRCUIT_TOOLTIP))); + new GT_GuiSlotTooltip( + mContainer.getSlot(ccs.getCircuitGUISlot()), + mTooltipCache.getData(GHOST_CIRCUIT_TOOLTIP))); } } @@ -234,7 +234,7 @@ public class GT_GUIContainerMetaTile_Machine extends GT_GUIContainer implements if (mContainer.mTileEntity.getMetaTileEntity() instanceof IConfigurationCircuitSupport ccs) { Slot slotCircuit = mContainer.getSlot(ccs.getCircuitGUISlot()); if (slotCircuit != null - && func_146978_c(slotCircuit.xDisplayPosition, slotCircuit.yDisplayPosition, 16, 16, mx, my)) { + && func_146978_c(slotCircuit.xDisplayPosition, slotCircuit.yDisplayPosition, 16, 16, mx, my)) { // emulate click handleMouseClick(slotCircuit, -1, delta > 0 ? 1 : 0, 0); return; @@ -248,13 +248,13 @@ public class GT_GUIContainerMetaTile_Machine extends GT_GUIContainer implements IConfigurationCircuitSupport ccs = (IConfigurationCircuitSupport) machine; List circuits = ccs.getConfigurationCircuits(); mc.displayGuiScreen( - new GT_GUIDialogSelectItem( - StatCollector.translateToLocal("GT5U.machines.select_circuit"), - machine.getStackForm(0), - this, - this::onCircuitSelected, - circuits, - GT_Utility.findMatchingStackInList(circuits, machine.getStackInSlot(ccs.getCircuitSlot())))); + new GT_GUIDialogSelectItem( + StatCollector.translateToLocal("GT5U.machines.select_circuit"), + machine.getStackForm(0), + this, + this::onCircuitSelected, + circuits, + GT_Utility.findMatchingStackInList(circuits, machine.getStackInSlot(ccs.getCircuitSlot())))); } private void onCircuitSelected(ItemStack selected) { diff --git a/src/main/java/gregtech/api/gui/GT_GUIContainer_1by1.java b/src/main/java/gregtech/api/gui/GT_GUIContainer_1by1.java index 1d82fa8274..5bd44668c5 100644 --- a/src/main/java/gregtech/api/gui/GT_GUIContainer_1by1.java +++ b/src/main/java/gregtech/api/gui/GT_GUIContainer_1by1.java @@ -14,16 +14,16 @@ public class GT_GUIContainer_1by1 extends GT_GUIContainerMetaTile_Machine { public GT_GUIContainer_1by1(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity, String aName) { super( - new GT_Container_1by1(aInventoryPlayer, aTileEntity), - GregTech.getResourcePath("textures", "gui", "1by1.png")); + new GT_Container_1by1(aInventoryPlayer, aTileEntity), + GregTech.getResourcePath("textures", "gui", "1by1.png")); mName = aName; } public GT_GUIContainer_1by1(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity, String aName, - String aBackground) { + String aBackground) { super( - new GT_Container_1by1(aInventoryPlayer, aTileEntity), - GregTech.getResourcePath("textures", "gui", aBackground + "1by1.png")); + new GT_Container_1by1(aInventoryPlayer, aTileEntity), + GregTech.getResourcePath("textures", "gui", aBackground + "1by1.png")); mName = aName; } diff --git a/src/main/java/gregtech/api/gui/GT_GUIContainer_2by2.java b/src/main/java/gregtech/api/gui/GT_GUIContainer_2by2.java index 5d65ca1344..107bcc3859 100644 --- a/src/main/java/gregtech/api/gui/GT_GUIContainer_2by2.java +++ b/src/main/java/gregtech/api/gui/GT_GUIContainer_2by2.java @@ -14,16 +14,16 @@ public class GT_GUIContainer_2by2 extends GT_GUIContainerMetaTile_Machine { public GT_GUIContainer_2by2(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity, String aName) { super( - new GT_Container_2by2(aInventoryPlayer, aTileEntity), - GregTech.getResourcePath("textures", "gui", "2by2.png")); + new GT_Container_2by2(aInventoryPlayer, aTileEntity), + GregTech.getResourcePath("textures", "gui", "2by2.png")); mName = aName; } public GT_GUIContainer_2by2(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity, String aName, - String aBackground) { + String aBackground) { super( - new GT_Container_2by2(aInventoryPlayer, aTileEntity), - GregTech.getResourcePath("textures", "gui", aBackground + "2by2.png")); + new GT_Container_2by2(aInventoryPlayer, aTileEntity), + GregTech.getResourcePath("textures", "gui", aBackground + "2by2.png")); mName = aName; } diff --git a/src/main/java/gregtech/api/gui/GT_GUIContainer_3by3.java b/src/main/java/gregtech/api/gui/GT_GUIContainer_3by3.java index 2ba68decf6..0c8b63664a 100644 --- a/src/main/java/gregtech/api/gui/GT_GUIContainer_3by3.java +++ b/src/main/java/gregtech/api/gui/GT_GUIContainer_3by3.java @@ -14,16 +14,16 @@ public class GT_GUIContainer_3by3 extends GT_GUIContainerMetaTile_Machine { public GT_GUIContainer_3by3(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity, String aName) { super( - new GT_Container_3by3(aInventoryPlayer, aTileEntity), - GregTech.getResourcePath("textures", "gui", "3by3.png")); + new GT_Container_3by3(aInventoryPlayer, aTileEntity), + GregTech.getResourcePath("textures", "gui", "3by3.png")); mName = aName; } public GT_GUIContainer_3by3(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity, String aName, - String aBackground) { + String aBackground) { super( - new GT_Container_3by3(aInventoryPlayer, aTileEntity), - GregTech.getResourcePath("textures", "gui", aBackground + "3by3.png")); + new GT_Container_3by3(aInventoryPlayer, aTileEntity), + GregTech.getResourcePath("textures", "gui", aBackground + "3by3.png")); mName = aName; } diff --git a/src/main/java/gregtech/api/gui/GT_GUIContainer_4by4.java b/src/main/java/gregtech/api/gui/GT_GUIContainer_4by4.java index f1933897c7..9e5d7f7155 100644 --- a/src/main/java/gregtech/api/gui/GT_GUIContainer_4by4.java +++ b/src/main/java/gregtech/api/gui/GT_GUIContainer_4by4.java @@ -14,16 +14,16 @@ public class GT_GUIContainer_4by4 extends GT_GUIContainerMetaTile_Machine { public GT_GUIContainer_4by4(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity, String aName) { super( - new GT_Container_4by4(aInventoryPlayer, aTileEntity), - GregTech.getResourcePath("textures", "gui", "4by4.png")); + new GT_Container_4by4(aInventoryPlayer, aTileEntity), + GregTech.getResourcePath("textures", "gui", "4by4.png")); mName = aName; } public GT_GUIContainer_4by4(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity, String aName, - String aBackground) { + String aBackground) { super( - new GT_Container_4by4(aInventoryPlayer, aTileEntity), - GregTech.getResourcePath("textures", "gui", aBackground + "4by4.png")); + new GT_Container_4by4(aInventoryPlayer, aTileEntity), + GregTech.getResourcePath("textures", "gui", aBackground + "4by4.png")); mName = aName; } diff --git a/src/main/java/gregtech/api/gui/GT_GUIContainer_BasicMachine.java b/src/main/java/gregtech/api/gui/GT_GUIContainer_BasicMachine.java index 6e6ce4c1d0..f610f6cf14 100644 --- a/src/main/java/gregtech/api/gui/GT_GUIContainer_BasicMachine.java +++ b/src/main/java/gregtech/api/gui/GT_GUIContainer_BasicMachine.java @@ -28,40 +28,39 @@ public class GT_GUIContainer_BasicMachine extends GT_GUIContainerMetaTile_Machin private static final int NEEDS_STEAM_VENTING = 64; private static final GT_GuiTabIconSet TAB_ICONSET_BRONZE = new GT_GuiTabIconSet( - GT_GuiIcon.TAB_NORMAL_BRONZE, - GT_GuiIcon.TAB_HIGHLIGHT_BRONZE, - GT_GuiIcon.TAB_DISABLED_BRONZE); + GT_GuiIcon.TAB_NORMAL_BRONZE, + GT_GuiIcon.TAB_HIGHLIGHT_BRONZE, + GT_GuiIcon.TAB_DISABLED_BRONZE); private static final GT_GuiTabIconSet TAB_ICONSET_STEEL = new GT_GuiTabIconSet( - GT_GuiIcon.TAB_NORMAL_STEEL, - GT_GuiIcon.TAB_HIGHLIGHT_STEEL, - GT_GuiIcon.TAB_DISABLED_STEEL); + GT_GuiIcon.TAB_NORMAL_STEEL, + GT_GuiIcon.TAB_HIGHLIGHT_STEEL, + GT_GuiIcon.TAB_DISABLED_STEEL); private final int textColor = this.getTextColorOrDefault("title", 0x404040); public final String mName, mNEI; public final byte mProgressBarDirection, mProgressBarAmount; // Tooltip localization keys private static final String BATTERY_SLOT_TOOLTIP = "GT5U.machines.battery_slot.tooltip", - BATTERY_SLOT_TOOLTIP_ALT = "GT5U.machines.battery_slot.tooltip.alternative", - UNUSED_SLOT_TOOLTIP = "GT5U.machines.unused_slot.tooltip", - SPECIAL_SLOT_TOOLTIP = "GT5U.machines.special_slot.tooltip", - FLUID_INPUT_TOOLTIP = "GT5U.machines.fluid_input_slot.tooltip", - FLUID_OUTPUT_TOOLTIP = "GT5U.machines.fluid_output_slot.tooltip", - STALLED_STUTTERING_TOOLTIP = "GT5U.machines.stalled_stuttering.tooltip", - STALLED_VENT_TOOLTIP = "GT5U.machines.stalled_vent.tooltip", - FLUID_TRANSFER_TOOLTIP = "GT5U.machines.fluid_transfer.tooltip", - ITEM_TRANSFER_TOOLTIP = "GT5U.machines.item_transfer.tooltip", - POWER_SOURCE_KEY = "GT5U.machines.powersource."; + BATTERY_SLOT_TOOLTIP_ALT = "GT5U.machines.battery_slot.tooltip.alternative", + UNUSED_SLOT_TOOLTIP = "GT5U.machines.unused_slot.tooltip", + SPECIAL_SLOT_TOOLTIP = "GT5U.machines.special_slot.tooltip", + FLUID_INPUT_TOOLTIP = "GT5U.machines.fluid_input_slot.tooltip", + FLUID_OUTPUT_TOOLTIP = "GT5U.machines.fluid_output_slot.tooltip", + STALLED_STUTTERING_TOOLTIP = "GT5U.machines.stalled_stuttering.tooltip", + STALLED_VENT_TOOLTIP = "GT5U.machines.stalled_vent.tooltip", + FLUID_TRANSFER_TOOLTIP = "GT5U.machines.fluid_transfer.tooltip", + ITEM_TRANSFER_TOOLTIP = "GT5U.machines.item_transfer.tooltip", POWER_SOURCE_KEY = "GT5U.machines.powersource."; public GT_GUIContainer_BasicMachine(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity, String aName, - String aTextureFile, String aNEI) { + String aTextureFile, String aNEI) { this(aInventoryPlayer, aTileEntity, aName, aTextureFile, aNEI, (byte) 0, (byte) 1); } public GT_GUIContainer_BasicMachine(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity, String aName, - String aTextureFile, String aNEI, byte aProgressBarDirection, byte aProgressBarAmount) { + String aTextureFile, String aNEI, byte aProgressBarDirection, byte aProgressBarAmount) { super( - new GT_Container_BasicMachine(aInventoryPlayer, aTileEntity), - GregTech.getResourcePath("textures", "gui", "basicmachines", aTextureFile)); + new GT_Container_BasicMachine(aInventoryPlayer, aTileEntity), + GregTech.getResourcePath("textures", "gui", "basicmachines", aTextureFile)); mProgressBarDirection = aProgressBarDirection; mProgressBarAmount = (byte) Math.max(1, aProgressBarAmount); mName = aName; @@ -84,10 +83,10 @@ public class GT_GUIContainer_BasicMachine extends GT_GUIContainerMetaTile_Machin batterySlotTooltipKey = UNUSED_SLOT_TOOLTIP; batterySlotTooltipArgs = new String[0]; addToolTip( - new GT_GuiSmartTooltip( - tProblemArea, - () -> hasErrorCode(NEEDS_STEAM_VENTING), - mTooltipCache.getData(STALLED_VENT_TOOLTIP))); + new GT_GuiSmartTooltip( + tProblemArea, + () -> hasErrorCode(NEEDS_STEAM_VENTING), + mTooltipCache.getData(STALLED_VENT_TOOLTIP))); } else { String pTier1 = powerTierName(machine.mTier); if (machine.mTier == GT_Values.VN.length - 1) { @@ -98,44 +97,41 @@ public class GT_GUIContainer_BasicMachine extends GT_GUIContainerMetaTile_Machin batterySlotTooltipArgs = new String[] { pTier1, powerTierName((byte) (machine.mTier + 1)) }; } addToolTip( - new GT_GuiSlotTooltip( - container.slotFluidTransferToggle, - mTooltipCache.getData(FLUID_TRANSFER_TOOLTIP))); + new GT_GuiSlotTooltip( + container.slotFluidTransferToggle, + mTooltipCache.getData(FLUID_TRANSFER_TOOLTIP))); addToolTip( - new GT_GuiSlotTooltip( - container.slotItemTransferToggle, - mTooltipCache.getData(ITEM_TRANSFER_TOOLTIP))); + new GT_GuiSlotTooltip(container.slotItemTransferToggle, mTooltipCache.getData(ITEM_TRANSFER_TOOLTIP))); } if (recipes != null && recipes.hasFluidInputs()) { addToolTip( - new GT_GuiSlotTooltip( - container.slotFluidInput, - mTooltipCache.getData(FLUID_INPUT_TOOLTIP, machine.getCapacity()))); + new GT_GuiSlotTooltip( + container.slotFluidInput, + mTooltipCache.getData(FLUID_INPUT_TOOLTIP, machine.getCapacity()))); } if (recipes != null && recipes.hasFluidOutputs()) { addToolTip( - new GT_GuiSlotTooltip( - container.slotFluidOutput, - mTooltipCache.getData(FLUID_OUTPUT_TOOLTIP, machine.getCapacity()))); + new GT_GuiSlotTooltip( + container.slotFluidOutput, + mTooltipCache.getData(FLUID_OUTPUT_TOOLTIP, machine.getCapacity()))); } addToolTip( - new GT_GuiSlotTooltip( - getContainer().slotBattery, - mTooltipCache.getData(batterySlotTooltipKey, batterySlotTooltipArgs))); + new GT_GuiSlotTooltip( + getContainer().slotBattery, + mTooltipCache.getData(batterySlotTooltipKey, batterySlotTooltipArgs))); addToolTip( - new GT_GuiSlotTooltip( - container.slotSpecial, - mTooltipCache.getData( - recipes != null && recipes.usesSpecialSlot() ? SPECIAL_SLOT_TOOLTIP - : UNUSED_SLOT_TOOLTIP))); + new GT_GuiSlotTooltip( + container.slotSpecial, + mTooltipCache.getData( + recipes != null && recipes.usesSpecialSlot() ? SPECIAL_SLOT_TOOLTIP : UNUSED_SLOT_TOOLTIP))); addToolTip( - new GT_GuiSmartTooltip( - tProblemArea, - () -> container.mStuttering && !hasErrorCode(NEEDS_STEAM_VENTING), - mTooltipCache.getData( - STALLED_STUTTERING_TOOLTIP, - StatCollector.translateToLocal( - POWER_SOURCE_KEY + (machine.isSteampowered() ? "steam" : "power"))))); + new GT_GuiSmartTooltip( + tProblemArea, + () -> container.mStuttering && !hasErrorCode(NEEDS_STEAM_VENTING), + mTooltipCache.getData( + STALLED_STUTTERING_TOOLTIP, + StatCollector + .translateToLocal(POWER_SOURCE_KEY + (machine.isSteampowered() ? "steam" : "power"))))); } /** @@ -174,31 +170,30 @@ public class GT_GUIContainer_BasicMachine extends GT_GUIContainerMetaTile_Machin if (mContainer.mMaxProgressTime > 0) { int tSize = mProgressBarDirection < 2 ? 20 : 18; int tProgress = Math.max( - 1, - Math.min( - tSize * mProgressBarAmount, - (mContainer.mProgressTime > 0 ? 1 : 0) + mContainer.mProgressTime * tSize - * mProgressBarAmount - / mContainer.mMaxProgressTime)) - % (tSize + 1); + 1, + Math.min( + tSize * mProgressBarAmount, + (mContainer.mProgressTime > 0 ? 1 : 0) + + mContainer.mProgressTime * tSize * mProgressBarAmount / mContainer.mMaxProgressTime)) + % (tSize + 1); switch (mProgressBarDirection) { // yes, my OCD was mad at me before I did the Tabs. case 0 -> drawTexturedModalRect(x + 78, y + 24, 176, 0, tProgress, 18); case 1 -> drawTexturedModalRect( - x + 78 + 20 - tProgress, - y + 24, - 176 + 20 - tProgress, - 0, - tProgress, - 18); + x + 78 + 20 - tProgress, + y + 24, + 176 + 20 - tProgress, + 0, + tProgress, + 18); case 2 -> drawTexturedModalRect(x + 78, y + 24, 176, 0, 20, tProgress); case 3 -> drawTexturedModalRect( - x + 78, - y + 24 + 18 - tProgress, - 176, - 18 - tProgress, - 20, - tProgress); + x + 78, + y + 24 + 18 - tProgress, + 176, + 18 - tProgress, + 20, + tProgress); case 4 -> { tProgress = 20 - tProgress; drawTexturedModalRect(x + 78, y + 24, 176, 0, tProgress, 18); @@ -224,7 +219,7 @@ public class GT_GUIContainer_BasicMachine extends GT_GUIContainerMetaTile_Machin protected GT_GuiTabIconSet getTabBackground() { if (getMachine().isSteampowered()) { return getMachine() instanceof GT_MetaTileEntity_BasicMachine_Steel ? TAB_ICONSET_STEEL - : TAB_ICONSET_BRONZE; + : TAB_ICONSET_BRONZE; } return super.getTabBackground(); } diff --git a/src/main/java/gregtech/api/gui/GT_GUIContainer_BasicTank.java b/src/main/java/gregtech/api/gui/GT_GUIContainer_BasicTank.java index a8e965cf28..54aa42d2a3 100644 --- a/src/main/java/gregtech/api/gui/GT_GUIContainer_BasicTank.java +++ b/src/main/java/gregtech/api/gui/GT_GUIContainer_BasicTank.java @@ -12,31 +12,28 @@ public class GT_GUIContainer_BasicTank extends GT_GUIContainerMetaTile_Machine { private final String mName; private final int textColor = this.getTextColorOrDefault("text", 0xFAFAFF), - textColorTitle = this.getTextColorOrDefault("title", 0x404040), - textColorValue = this.getTextColorOrDefault("value", 0xFAFAFF); + textColorTitle = this.getTextColorOrDefault("title", 0x404040), + textColorValue = this.getTextColorOrDefault("value", 0xFAFAFF); public GT_GUIContainer_BasicTank(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity, String aName) { super( - new GT_Container_BasicTank(aInventoryPlayer, aTileEntity), - GregTech.getResourcePath("textures", "gui", "BasicTank.png")); + new GT_Container_BasicTank(aInventoryPlayer, aTileEntity), + GregTech.getResourcePath("textures", "gui", "BasicTank.png")); mName = aName; } @Override protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY) { - fontRendererObj.drawString( - StatCollector.translateToLocal("container.inventory"), - 8, - ySize - 96 + 2, - textColorTitle); + fontRendererObj + .drawString(StatCollector.translateToLocal("container.inventory"), 8, ySize - 96 + 2, textColorTitle); fontRendererObj.drawString(mName, 8, 6, textColorTitle); if (mContainer != null) { fontRendererObj.drawString("Liquid Amount", 10, 20, textColor); fontRendererObj.drawString( - GT_Utility.parseNumberToString(((GT_Container_BasicTank) mContainer).mContent), - 10, - 30, - textColorValue); + GT_Utility.parseNumberToString(((GT_Container_BasicTank) mContainer).mContent), + 10, + 30, + textColorValue); } } diff --git a/src/main/java/gregtech/api/gui/GT_GUIContainer_MultiMachine.java b/src/main/java/gregtech/api/gui/GT_GUIContainer_MultiMachine.java index 8378c5e8cf..66c5156190 100644 --- a/src/main/java/gregtech/api/gui/GT_GUIContainer_MultiMachine.java +++ b/src/main/java/gregtech/api/gui/GT_GUIContainer_MultiMachine.java @@ -22,17 +22,17 @@ public class GT_GUIContainer_MultiMachine extends GT_GUIContainerMetaTile_Machin String mName; private final int textColor = this.getTextColorOrDefault("text", 0xFAFAFF), - textColorTitle = this.getTextColorOrDefault("title", 0xFAFAFF); + textColorTitle = this.getTextColorOrDefault("title", 0xFAFAFF); public GT_GUIContainer_MultiMachine(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity, String aName, - String aTextureFile) { + String aTextureFile) { super( - new GT_Container_MultiMachine(aInventoryPlayer, aTileEntity), - GregTech.getResourcePath( - "textures", - "gui", - "multimachines", - aTextureFile == null ? "MultiblockDisplay" : aTextureFile)); + new GT_Container_MultiMachine(aInventoryPlayer, aTileEntity), + GregTech.getResourcePath( + "textures", + "gui", + "multimachines", + aTextureFile == null ? "MultiblockDisplay" : aTextureFile)); mName = aName; } @@ -69,7 +69,7 @@ public class GT_GUIContainer_MultiMachine extends GT_GUIContainerMetaTile_Machin current_line.append(str); } else { current_line.append(" ") - .append(str); + .append(str); } index++; } @@ -98,90 +98,60 @@ public class GT_GUIContainer_MultiMachine extends GT_GUIContainerMetaTile_Machin } if ((mContainer.mDisplayErrorCode & 8) != 0) { - fontRendererObj.drawString( - GT_Utility.trans("135", "Platings are dented."), - 10, - line_counter, - textColor); + fontRendererObj + .drawString(GT_Utility.trans("135", "Platings are dented."), 10, line_counter, textColor); line_counter += 8; } if ((mContainer.mDisplayErrorCode & 16) != 0) { - fontRendererObj.drawString( - GT_Utility.trans("136", "Circuitry burned out."), - 10, - line_counter, - textColor); + fontRendererObj + .drawString(GT_Utility.trans("136", "Circuitry burned out."), 10, line_counter, textColor); line_counter += 8; } if ((mContainer.mDisplayErrorCode & 32) != 0) { - fontRendererObj.drawString( - GT_Utility.trans("137", "That doesn't belong there."), - 10, - line_counter, - textColor); + fontRendererObj + .drawString(GT_Utility.trans("137", "That doesn't belong there."), 10, line_counter, textColor); line_counter += 8; } if ((mContainer.mDisplayErrorCode & 64) != 0) { - fontRendererObj.drawString( - GT_Utility.trans("138", "Incomplete Structure."), - 10, - line_counter, - textColor); + fontRendererObj + .drawString(GT_Utility.trans("138", "Incomplete Structure."), 10, line_counter, textColor); line_counter += 8; } if (mContainer.mDisplayErrorCode == 0) { if (mContainer.mActive == 0) { - fontRendererObj.drawString( - GT_Utility.trans("139", "Hit with Soft Mallet"), - 10, - line_counter, - textColor); + fontRendererObj + .drawString(GT_Utility.trans("139", "Hit with Soft Mallet"), 10, line_counter, textColor); line_counter += 8; - fontRendererObj.drawString( - GT_Utility.trans("140", "to (re-)start the Machine"), - 10, - line_counter, - textColor); + fontRendererObj + .drawString(GT_Utility.trans("140", "to (re-)start the Machine"), 10, line_counter, textColor); line_counter += 8; - fontRendererObj.drawString( - GT_Utility.trans("141", "if it doesn't start."), - 10, - line_counter, - textColor); + fontRendererObj + .drawString(GT_Utility.trans("141", "if it doesn't start."), 10, line_counter, textColor); } else { - fontRendererObj.drawString( - GT_Utility.trans("142", "Running perfectly."), - 10, - line_counter, - textColor); + fontRendererObj + .drawString(GT_Utility.trans("142", "Running perfectly."), 10, line_counter, textColor); } line_counter += 8; if (mContainer.mTileEntity.getMetaTileEntity() instanceof GT_MetaTileEntity_DrillerBase) { ItemStack tItem = mContainer.mTileEntity.getMetaTileEntity() - .getStackInSlot(1); + .getStackInSlot(1); if (tItem == null - || !GT_Utility.areStacksEqual(tItem, GT_ModHandler.getIC2Item("miningPipe", 1L))) { - fontRendererObj.drawString( - GT_Utility.trans("143", "Missing Mining Pipe"), - 10, - line_counter, - textColor); + || !GT_Utility.areStacksEqual(tItem, GT_ModHandler.getIC2Item("miningPipe", 1L))) { + fontRendererObj + .drawString(GT_Utility.trans("143", "Missing Mining Pipe"), 10, line_counter, textColor); } } else if (mContainer.mTileEntity.getMetaTileEntity() instanceof GT_MetaTileEntity_LargeTurbine) { ItemStack tItem = mContainer.mTileEntity.getMetaTileEntity() - .getStackInSlot(1); + .getStackInSlot(1); if (tItem == null - || !(tItem.getItem() == GT_MetaGenerated_Tool_01.INSTANCE && tItem.getItemDamage() >= 170 - && tItem.getItemDamage() <= 177)) { - fontRendererObj.drawString( - GT_Utility.trans("144", "Missing Turbine Rotor"), - 10, - line_counter, - textColor); + || !(tItem.getItem() == GT_MetaGenerated_Tool_01.INSTANCE && tItem.getItemDamage() >= 170 + && tItem.getItemDamage() <= 177)) { + fontRendererObj + .drawString(GT_Utility.trans("144", "Missing Turbine Rotor"), 10, line_counter, textColor); } } } diff --git a/src/main/java/gregtech/api/gui/GT_GUICover.java b/src/main/java/gregtech/api/gui/GT_GUICover.java index 2bd981c6b1..791bcc0c73 100644 --- a/src/main/java/gregtech/api/gui/GT_GUICover.java +++ b/src/main/java/gregtech/api/gui/GT_GUICover.java @@ -40,13 +40,13 @@ public abstract class GT_GUICover extends GT_GUIScreen { // If this cover was given a guiId, tell the server to open it for us when this GUI closes. if (parentGuiId != -1 && tile.isUseableByPlayer(mc.thePlayer)) { GT_Values.NW.sendToServer( - new GT_Packet_GtTileEntityGuiRequest( - tile.getXCoord(), - tile.getYCoord(), - tile.getZCoord(), - parentGuiId, - tile.getWorld().provider.dimensionId, - mc.thePlayer.getEntityId())); + new GT_Packet_GtTileEntityGuiRequest( + tile.getXCoord(), + tile.getYCoord(), + tile.getZCoord(), + parentGuiId, + tile.getWorld().provider.dimensionId, + mc.thePlayer.getEntityId())); } else { this.mc.displayGuiScreen(null); this.mc.setIngameFocus(); diff --git a/src/main/java/gregtech/api/gui/GT_GUIDialogSelectItem.java b/src/main/java/gregtech/api/gui/GT_GUIDialogSelectItem.java index 1f95def197..03a6fb2a70 100644 --- a/src/main/java/gregtech/api/gui/GT_GUIDialogSelectItem.java +++ b/src/main/java/gregtech/api/gui/GT_GUIDialogSelectItem.java @@ -28,11 +28,8 @@ public class GT_GUIDialogSelectItem extends GT_GUIScreen { // all slots not including btnCurrent private final List slots = new ArrayList<>(); // the currently selected slot content - private final GT_GuiFakeItemButton btnCurrent = new GT_GuiFakeItemButton( - this, - 8, - 25, - GT_GuiIcon.SLOT_DARKGRAY).setMimicSlot(true); + private final GT_GuiFakeItemButton btnCurrent = new GT_GuiFakeItemButton(this, 8, 25, GT_GuiIcon.SLOT_DARKGRAY) + .setMimicSlot(true); private final boolean noDeselect; private int selected; private int scroll = 0; @@ -40,12 +37,12 @@ public class GT_GUIDialogSelectItem extends GT_GUIScreen { private GT_GuiIconButton btnDown; public GT_GUIDialogSelectItem(String header, ItemStack headerItem, GuiScreen parent, - Consumer selectedCallback, List stacks) { + Consumer selectedCallback, List stacks) { this(header, headerItem, parent, selectedCallback, stacks, UNSELECTED); } public GT_GUIDialogSelectItem(String header, ItemStack headerItem, GuiScreen parent, - Consumer selectedCallback, List stacks, int selected) { + Consumer selectedCallback, List stacks, int selected) { this(header, headerItem, parent, selectedCallback, stacks, selected, false); } @@ -64,7 +61,7 @@ public class GT_GUIDialogSelectItem extends GT_GUIScreen { * is guaranteed to be called with a nonnull stack */ public GT_GUIDialogSelectItem(String header, ItemStack headerItem, GuiScreen parent, - Consumer selectedCallback, List stacks, int selected, boolean noDeselect) { + Consumer selectedCallback, List stacks, int selected, boolean noDeselect) { super(176, 107, header); this.noDeselect = noDeselect; if (headerItem != null) this.headerIcon.setItem(headerItem); @@ -80,8 +77,7 @@ public class GT_GUIDialogSelectItem extends GT_GUIScreen { for (int i = 0; i < rows; i++) { for (int j = 0; j < cols; j++) { slots.add( - new GT_GuiFakeItemButton(this, 8 + 18 * j, 44 + 18 * i, GT_GuiIcon.SLOT_GRAY).setMimicSlot( - true)); + new GT_GuiFakeItemButton(this, 8 + 18 * j, 44 + 18 * i, GT_GuiIcon.SLOT_GRAY).setMimicSlot(true)); } } @@ -91,8 +87,8 @@ public class GT_GUIDialogSelectItem extends GT_GUIScreen { @Override protected void onInitGui(int guiLeft, int guiTop, int gui_width, int gui_height) { - btnCurrent.setX( - 8 + 2 + fontRendererObj.getStringWidth(StatCollector.translateToLocal("GT5U.gui.select.current"))); + btnCurrent + .setX(8 + 2 + fontRendererObj.getStringWidth(StatCollector.translateToLocal("GT5U.gui.select.current"))); } @Override @@ -129,7 +125,7 @@ public class GT_GUIDialogSelectItem extends GT_GUIScreen { int mx = x - guiLeft, my = y - guiTop; if (button == 0) { if (btnCurrent.getBounds() - .contains(mx, my)) { + .contains(mx, my)) { ensureSelectedDisplayed(); return; } @@ -137,20 +133,20 @@ public class GT_GUIDialogSelectItem extends GT_GUIScreen { for (int i = 0, slotsSize = slots.size(); i < slotsSize; i++) { GT_GuiFakeItemButton slot = slots.get(i); if (slot.getBounds() - .contains(mx, my)) { + .contains(mx, my)) { setSelected(slotIndexToListIndex(i)); return; } } } else if (button == 1 && getSelected() >= 0) { if (btnCurrent.getBounds() - .contains(mx, my)) { + .contains(mx, my)) { setSelected(UNSELECTED); return; } GT_GuiFakeItemButton slot = getSlot(listIndexToSlotIndex(getSelected())); if (slot != null && slot.getBounds() - .contains(mx, my)) { + .contains(mx, my)) { setSelected(UNSELECTED); } } @@ -166,8 +162,8 @@ public class GT_GUIDialogSelectItem extends GT_GUIScreen { private void fillSlots() { for (int i = 0, j = scroll * cols; i < slots.size(); i++, j++) { slots.get(i) - .setItem(getCandidate(j)) - .setBgIcon(j == getSelected() ? GT_GuiIcon.SLOT_DARKGRAY : GT_GuiIcon.SLOT_GRAY); + .setItem(getCandidate(j)) + .setBgIcon(j == getSelected() ? GT_GuiIcon.SLOT_DARKGRAY : GT_GuiIcon.SLOT_GRAY); } } diff --git a/src/main/java/gregtech/api/gui/GT_Slot_Armor.java b/src/main/java/gregtech/api/gui/GT_Slot_Armor.java index 9b4b81a31d..1c48b01430 100644 --- a/src/main/java/gregtech/api/gui/GT_Slot_Armor.java +++ b/src/main/java/gregtech/api/gui/GT_Slot_Armor.java @@ -24,7 +24,7 @@ public class GT_Slot_Armor extends Slot { @Override public boolean isItemValid(ItemStack aStack) { return aStack != null && aStack.getItem() != null - && aStack.getItem() - .isValidArmor(aStack, mArmorType, mPlayer); + && aStack.getItem() + .isValidArmor(aStack, mArmorType, mPlayer); } } diff --git a/src/main/java/gregtech/api/gui/GT_Slot_Holo.java b/src/main/java/gregtech/api/gui/GT_Slot_Holo.java index a01b91cefb..47bd5ceef3 100644 --- a/src/main/java/gregtech/api/gui/GT_Slot_Holo.java +++ b/src/main/java/gregtech/api/gui/GT_Slot_Holo.java @@ -16,7 +16,7 @@ public class GT_Slot_Holo extends Slot { public int mMaxStacksize = 127; public GT_Slot_Holo(IInventory inventory, int slotIndex, int xPos, int yPos, boolean aCanInsertItem, - boolean aCanStackItem, int aMaxStacksize) { + boolean aCanStackItem, int aMaxStacksize) { super(inventory, slotIndex, xPos, yPos); mCanInsertItem = aCanInsertItem; mCanStackItem = aCanStackItem; diff --git a/src/main/java/gregtech/api/gui/modularui/FallbackableSteamTexture.java b/src/main/java/gregtech/api/gui/modularui/FallbackableSteamTexture.java index 43b7210758..83a9d0f725 100644 --- a/src/main/java/gregtech/api/gui/modularui/FallbackableSteamTexture.java +++ b/src/main/java/gregtech/api/gui/modularui/FallbackableSteamTexture.java @@ -56,8 +56,8 @@ public class FallbackableSteamTexture { } else { try { Minecraft.getMinecraft() - .getResourceManager() - .getResource(candidate.get(steamVariant).location); + .getResourceManager() + .getResource(candidate.get(steamVariant).location); useFallback = false; } catch (IOException e) { useFallback = true; diff --git a/src/main/java/gregtech/api/gui/modularui/GT_CoverUIBuildContext.java b/src/main/java/gregtech/api/gui/modularui/GT_CoverUIBuildContext.java index 65a61ad951..62a933cfa6 100644 --- a/src/main/java/gregtech/api/gui/modularui/GT_CoverUIBuildContext.java +++ b/src/main/java/gregtech/api/gui/modularui/GT_CoverUIBuildContext.java @@ -23,7 +23,7 @@ public class GT_CoverUIBuildContext extends UIBuildContext { * @param guiColorization The color used to render machine's GUI */ public GT_CoverUIBuildContext(EntityPlayer player, int coverID, byte side, ICoverable tile, boolean anotherWindow, - int guiColorization) { + int guiColorization) { super(player); this.coverID = coverID; this.side = side; diff --git a/src/main/java/gregtech/api/gui/modularui/GT_UIInfos.java b/src/main/java/gregtech/api/gui/modularui/GT_UIInfos.java index 4d004429b0..b132f33d63 100644 --- a/src/main/java/gregtech/api/gui/modularui/GT_UIInfos.java +++ b/src/main/java/gregtech/api/gui/modularui/GT_UIInfos.java @@ -36,46 +36,31 @@ public class GT_UIInfos { * Do NOT run {@link UIBuilder#build} on-the-fly, otherwise MP client won't register UIs. Instead, store to static * field, just like {@link #GTTileEntityDefaultUI}. Such mistake can be easily overlooked by testing only SP. */ - public static final Function> GTTileEntityUIFactory = containerConstructor -> UIBuilder.of() - .container( - (player, world, - x, - y, - z) -> { - TileEntity te = world.getTileEntity( - x, - y, - z); - if (te instanceof ITileWithModularUI) { - return createTileEntityContainer( - player, - ((ITileWithModularUI) te)::createWindow, - te::markDirty, - containerConstructor); - } - return null; - }) - .gui( - ((player, - world, - x, - y, - z) -> { - if (!world.isRemote) - return null; - TileEntity te = world.getTileEntity( - x, - y, - z); - if (te instanceof ITileWithModularUI) { - return createTileEntityGuiContainer( - player, - ((ITileWithModularUI) te)::createWindow, - containerConstructor); - } - return null; - })) - .build(); + public static final Function> GTTileEntityUIFactory = containerConstructor -> UIBuilder + .of() + .container((player, world, x, y, z) -> { + TileEntity te = world.getTileEntity(x, y, z); + if (te instanceof ITileWithModularUI) { + return createTileEntityContainer( + player, + ((ITileWithModularUI) te)::createWindow, + te::markDirty, + containerConstructor); + } + return null; + }) + .gui(((player, world, x, y, z) -> { + if (!world.isRemote) return null; + TileEntity te = world.getTileEntity(x, y, z); + if (te instanceof ITileWithModularUI) { + return createTileEntityGuiContainer( + player, + ((ITileWithModularUI) te)::createWindow, + containerConstructor); + } + return null; + })) + .build(); private static final UIInfo GTTileEntityDefaultUI = GTTileEntityUIFactory.apply(ModularUIContainer::new); @@ -85,33 +70,33 @@ public class GT_UIInfos { for (byte i = 0; i < ForgeDirection.VALID_DIRECTIONS.length; i++) { final byte side = i; coverUI.put( - side, - UIBuilder.of() - .container((player, world, x, y, z) -> { - final TileEntity te = world.getTileEntity(x, y, z); - if (!(te instanceof ICoverable gtTileEntity)) return null; - GT_CoverBehaviorBase cover = gtTileEntity.getCoverBehaviorAtSideNew(side); - return createCoverContainer( - player, - cover::createWindow, - te::markDirty, - gtTileEntity.getCoverIDAtSide(side), - side, - gtTileEntity); - }) - .gui((player, world, x, y, z) -> { - if (!world.isRemote) return null; - final TileEntity te = world.getTileEntity(x, y, z); - if (!(te instanceof ICoverable gtTileEntity)) return null; - final GT_CoverBehaviorBase cover = gtTileEntity.getCoverBehaviorAtSideNew(side); - return createCoverGuiContainer( - player, - cover::createWindow, - gtTileEntity.getCoverIDAtSide(side), - side, - gtTileEntity); - }) - .build()); + side, + UIBuilder.of() + .container((player, world, x, y, z) -> { + final TileEntity te = world.getTileEntity(x, y, z); + if (!(te instanceof ICoverable gtTileEntity)) return null; + GT_CoverBehaviorBase cover = gtTileEntity.getCoverBehaviorAtSideNew(side); + return createCoverContainer( + player, + cover::createWindow, + te::markDirty, + gtTileEntity.getCoverIDAtSide(side), + side, + gtTileEntity); + }) + .gui((player, world, x, y, z) -> { + if (!world.isRemote) return null; + final TileEntity te = world.getTileEntity(x, y, z); + if (!(te instanceof ICoverable gtTileEntity)) return null; + final GT_CoverBehaviorBase cover = gtTileEntity.getCoverBehaviorAtSideNew(side); + return createCoverGuiContainer( + player, + cover::createWindow, + gtTileEntity.getCoverIDAtSide(side), + side, + gtTileEntity); + }) + .build()); } } @@ -121,11 +106,11 @@ public class GT_UIInfos { public static void openGTTileEntityUI(IHasWorldObjectAndCoords aTileEntity, EntityPlayer aPlayer) { if (aTileEntity.isClientSide()) return; GTTileEntityDefaultUI.open( - aPlayer, - aTileEntity.getWorld(), - aTileEntity.getXCoord(), - aTileEntity.getYCoord(), - aTileEntity.getZCoord()); + aPlayer, + aTileEntity.getWorld(), + aTileEntity.getXCoord(), + aTileEntity.getYCoord(), + aTileEntity.getZCoord()); } /** @@ -135,20 +120,20 @@ public class GT_UIInfos { if (tileEntity.isClientSide()) return; GT_Values.NW.sendToPlayer( - new GT_Packet_SendCoverData( - side, - tileEntity.getCoverIDAtSide(side), - tileEntity.getComplexCoverDataAtSide(side), - tileEntity), - (EntityPlayerMP) player); + new GT_Packet_SendCoverData( + side, + tileEntity.getCoverIDAtSide(side), + tileEntity.getComplexCoverDataAtSide(side), + tileEntity), + (EntityPlayerMP) player); coverUI.get(side) - .open( - player, - tileEntity.getWorld(), - tileEntity.getXCoord(), - tileEntity.getYCoord(), - tileEntity.getZCoord()); + .open( + player, + tileEntity.getWorld(), + tileEntity.getXCoord(), + tileEntity.getYCoord(), + tileEntity.getZCoord()); } /** @@ -161,8 +146,8 @@ public class GT_UIInfos { } private static ModularUIContainer createTileEntityContainer(EntityPlayer player, - Function windowCreator, Runnable onWidgetUpdate, - ContainerConstructor containerCreator) { + Function windowCreator, Runnable onWidgetUpdate, + ContainerConstructor containerCreator) { final UIBuildContext buildContext = new UIBuildContext(player); final ModularWindow window = windowCreator.apply(buildContext); if (window == null) return null; @@ -171,19 +156,19 @@ public class GT_UIInfos { @SideOnly(Side.CLIENT) private static ModularGui createTileEntityGuiContainer(EntityPlayer player, - Function windowCreator, ContainerConstructor containerConstructor) { + Function windowCreator, ContainerConstructor containerConstructor) { final ModularUIContainer container = createTileEntityContainer( - player, - windowCreator, - null, - containerConstructor); + player, + windowCreator, + null, + containerConstructor); if (container == null) return null; return new ModularGui(container); } private static ModularUIContainer createCoverContainer(EntityPlayer player, - Function windowCreator, Runnable onWidgetUpdate, int coverID, - byte side, ICoverable tile) { + Function windowCreator, Runnable onWidgetUpdate, int coverID, byte side, + ICoverable tile) { final GT_CoverUIBuildContext buildContext = new GT_CoverUIBuildContext(player, coverID, side, tile, false); final ModularWindow window = windowCreator.apply(buildContext); if (window == null) return null; @@ -192,7 +177,7 @@ public class GT_UIInfos { @SideOnly(Side.CLIENT) private static ModularGui createCoverGuiContainer(EntityPlayer player, - Function windowCreator, int coverID, byte side, ICoverable tile) { + Function windowCreator, int coverID, byte side, ICoverable tile) { final ModularUIContainer container = createCoverContainer(player, windowCreator, null, coverID, side, tile); if (container == null) { return null; diff --git a/src/main/java/gregtech/api/gui/modularui/GT_UITextures.java b/src/main/java/gregtech/api/gui/modularui/GT_UITextures.java index ff05f23d25..e8c9f192a6 100644 --- a/src/main/java/gregtech/api/gui/modularui/GT_UITextures.java +++ b/src/main/java/gregtech/api/gui/modularui/GT_UITextures.java @@ -13,182 +13,120 @@ public class GT_UITextures { public static final UITexture TRANSPARENT = UITexture.fullImage(GregTech.ID, "gui/picture/transparent"); - public static final AdaptableUITexture BACKGROUND_SINGLEBLOCK_DEFAULT = AdaptableUITexture.of( - GregTech.ID, - "gui/background/singleblock_default", - 176, - 166, - 4); - public static final SteamTexture BACKGROUND_STEAM = SteamTexture.adaptableTexture( - GregTech.ID, - "gui/background/%s", - 176, - 166, - 4); - public static final UITexture BACKGROUND_FUSION_COMPUTER = UITexture.fullImage( - GregTech.ID, - "gui/background/fusion_computer"); - public static final AdaptableUITexture BACKGROUND_TEXT_FIELD = AdaptableUITexture.of( - GregTech.ID, - "gui/background/text_field", - 142, - 28, - 1); - public static final AdaptableUITexture BACKGROUND_TEXT_FIELD_LIGHT_GRAY = AdaptableUITexture.of( - GregTech.ID, - "gui/background/text_field_light_gray", - 61, - 12, - 1); + public static final AdaptableUITexture BACKGROUND_SINGLEBLOCK_DEFAULT = AdaptableUITexture + .of(GregTech.ID, "gui/background/singleblock_default", 176, 166, 4); + public static final SteamTexture BACKGROUND_STEAM = SteamTexture + .adaptableTexture(GregTech.ID, "gui/background/%s", 176, 166, 4); + public static final UITexture BACKGROUND_FUSION_COMPUTER = UITexture + .fullImage(GregTech.ID, "gui/background/fusion_computer"); + public static final AdaptableUITexture BACKGROUND_TEXT_FIELD = AdaptableUITexture + .of(GregTech.ID, "gui/background/text_field", 142, 28, 1); + public static final AdaptableUITexture BACKGROUND_TEXT_FIELD_LIGHT_GRAY = AdaptableUITexture + .of(GregTech.ID, "gui/background/text_field_light_gray", 61, 12, 1); public static final SteamTexture SLOT_ITEM_STEAM = SteamTexture.fullImage(GregTech.ID, "gui/slot/item_%s"); public static final SteamTexture SLOT_FLUID_STEAM = SteamTexture.fullImage(GregTech.ID, "gui/slot/fluid_%s"); - public static final AdaptableUITexture SLOT_DARK_GRAY = AdaptableUITexture.of( - GregTech.ID, - "gui/slot/dark_gray", - 18, - 18, - 1); - public static final AdaptableUITexture SLOT_MAINTENANCE = AdaptableUITexture.of( - GregTech.ID, - "gui/slot/maintenance", - 20, - 20, - 1); - public static final AdaptableUITexture SLOT_UPLIFTED = AdaptableUITexture.of( - GregTech.ID, - "gui/slot/uplifted", - 18, - 18, - 1); + public static final AdaptableUITexture SLOT_DARK_GRAY = AdaptableUITexture + .of(GregTech.ID, "gui/slot/dark_gray", 18, 18, 1); + public static final AdaptableUITexture SLOT_MAINTENANCE = AdaptableUITexture + .of(GregTech.ID, "gui/slot/maintenance", 20, 20, 1); + public static final AdaptableUITexture SLOT_UPLIFTED = AdaptableUITexture + .of(GregTech.ID, "gui/slot/uplifted", 18, 18, 1); public static final UITexture OVERLAY_SLOT_ARROW_ME = UITexture.fullImage(GregTech.ID, "gui/overlay_slot/arrow_me"); public static final UITexture OVERLAY_SLOT_BEAKER_1 = UITexture.fullImage(GregTech.ID, "gui/overlay_slot/beaker_1"); public static final UITexture OVERLAY_SLOT_BEAKER_2 = UITexture.fullImage(GregTech.ID, "gui/overlay_slot/beaker_2"); - public static final UITexture OVERLAY_SLOT_BEE_DRONE = UITexture.fullImage( - GregTech.ID, - "gui/overlay_slot/bee_drone"); - public static final UITexture OVERLAY_SLOT_BEE_QUEEN = UITexture.fullImage( - GregTech.ID, - "gui/overlay_slot/bee_queen"); + public static final UITexture OVERLAY_SLOT_BEE_DRONE = UITexture + .fullImage(GregTech.ID, "gui/overlay_slot/bee_drone"); + public static final UITexture OVERLAY_SLOT_BEE_QUEEN = UITexture + .fullImage(GregTech.ID, "gui/overlay_slot/bee_queen"); public static final UITexture OVERLAY_SLOT_BENDER = UITexture.fullImage(GregTech.ID, "gui/overlay_slot/bender"); public static final UITexture OVERLAY_SLOT_BOX = UITexture.fullImage(GregTech.ID, "gui/overlay_slot/box"); public static final UITexture OVERLAY_SLOT_BOXED = UITexture.fullImage(GregTech.ID, "gui/overlay_slot/boxed"); public static final UITexture OVERLAY_SLOT_CANISTER = UITexture.fullImage(GregTech.ID, "gui/overlay_slot/canister"); - public static final SteamTexture OVERLAY_SLOT_CANISTER_STEAM = SteamTexture.fullImage( - GregTech.ID, - "gui/overlay_slot/canister_%s"); + public static final SteamTexture OVERLAY_SLOT_CANISTER_STEAM = SteamTexture + .fullImage(GregTech.ID, "gui/overlay_slot/canister_%s"); public static final UITexture OVERLAY_SLOT_CANNER = UITexture.fullImage(GregTech.ID, "gui/overlay_slot/canner"); public static final UITexture OVERLAY_SLOT_CAULDRON = UITexture.fullImage(GregTech.ID, "gui/overlay_slot/cauldron"); - public static final UITexture OVERLAY_SLOT_CENTRIFUGE = UITexture.fullImage( - GregTech.ID, - "gui/overlay_slot/centrifuge"); - public static final UITexture OVERLAY_SLOT_CENTRIFUGE_FLUID = UITexture.fullImage( - GregTech.ID, - "gui/overlay_slot/centrifuge_fluid"); - public static final SteamTexture OVERLAY_SLOT_CENTRIFUGE_STEAM = SteamTexture.fullImage( - GregTech.ID, - "gui/overlay_slot/centrifuge_%s"); + public static final UITexture OVERLAY_SLOT_CENTRIFUGE = UITexture + .fullImage(GregTech.ID, "gui/overlay_slot/centrifuge"); + public static final UITexture OVERLAY_SLOT_CENTRIFUGE_FLUID = UITexture + .fullImage(GregTech.ID, "gui/overlay_slot/centrifuge_fluid"); + public static final SteamTexture OVERLAY_SLOT_CENTRIFUGE_STEAM = SteamTexture + .fullImage(GregTech.ID, "gui/overlay_slot/centrifuge_%s"); public static final UITexture OVERLAY_SLOT_CHARGER = UITexture.fullImage(GregTech.ID, "gui/overlay_slot/charger"); - public static final UITexture OVERLAY_SLOT_CHARGER_FLUID = UITexture.fullImage( - GregTech.ID, - "gui/overlay_slot/charger_fluid"); + public static final UITexture OVERLAY_SLOT_CHARGER_FLUID = UITexture + .fullImage(GregTech.ID, "gui/overlay_slot/charger_fluid"); public static final UITexture OVERLAY_SLOT_CIRCUIT = UITexture.fullImage(GregTech.ID, "gui/overlay_slot/circuit"); - public static final SteamTexture OVERLAY_SLOT_COAL_STEAM = SteamTexture.fullImage( - GregTech.ID, - "gui/overlay_slot/coal_%s"); - public static final UITexture OVERLAY_SLOT_COMPRESSOR = UITexture.fullImage( - GregTech.ID, - "gui/overlay_slot/compressor"); - public static final SteamTexture OVERLAY_SLOT_COMPRESSOR_STEAM = SteamTexture.fullImage( - GregTech.ID, - "gui/overlay_slot/compressor_%s"); - public static final UITexture OVERLAY_SLOT_CRUSHED_ORE = UITexture.fullImage( - GregTech.ID, - "gui/overlay_slot/crushed_ore"); - public static final SteamTexture OVERLAY_SLOT_CRUSHED_ORE_STEAM = SteamTexture.fullImage( - GregTech.ID, - "gui/overlay_slot/crushed_ore_%s"); - public static final UITexture OVERLAY_SLOT_CUTTER_SLICED = UITexture.fullImage( - GregTech.ID, - "gui/overlay_slot/cutter_sliced"); + public static final SteamTexture OVERLAY_SLOT_COAL_STEAM = SteamTexture + .fullImage(GregTech.ID, "gui/overlay_slot/coal_%s"); + public static final UITexture OVERLAY_SLOT_COMPRESSOR = UITexture + .fullImage(GregTech.ID, "gui/overlay_slot/compressor"); + public static final SteamTexture OVERLAY_SLOT_COMPRESSOR_STEAM = SteamTexture + .fullImage(GregTech.ID, "gui/overlay_slot/compressor_%s"); + public static final UITexture OVERLAY_SLOT_CRUSHED_ORE = UITexture + .fullImage(GregTech.ID, "gui/overlay_slot/crushed_ore"); + public static final SteamTexture OVERLAY_SLOT_CRUSHED_ORE_STEAM = SteamTexture + .fullImage(GregTech.ID, "gui/overlay_slot/crushed_ore_%s"); + public static final UITexture OVERLAY_SLOT_CUTTER_SLICED = UITexture + .fullImage(GregTech.ID, "gui/overlay_slot/cutter_sliced"); public static final UITexture OVERLAY_SLOT_DATA_ORB = UITexture.fullImage(GregTech.ID, "gui/overlay_slot/data_orb"); - public static final UITexture OVERLAY_SLOT_DATA_STICK = UITexture.fullImage( - GregTech.ID, - "gui/overlay_slot/data_stick"); + public static final UITexture OVERLAY_SLOT_DATA_STICK = UITexture + .fullImage(GregTech.ID, "gui/overlay_slot/data_stick"); public static final UITexture OVERLAY_SLOT_DUST = UITexture.fullImage(GregTech.ID, "gui/overlay_slot/dust"); - public static final SteamTexture OVERLAY_SLOT_DUST_STEAM = SteamTexture.fullImage( - GregTech.ID, - "gui/overlay_slot/dust_%s"); - public static final SteamTexture OVERLAY_SLOT_BLOCK_STEAM = SteamTexture.fullImage( - GregTech.ID, - "gui/overlay_slot/block_%s"); - public static final UITexture OVERLAY_SLOT_EXPLOSIVE = UITexture.fullImage( - GregTech.ID, - "gui/overlay_slot/explosive"); - public static final UITexture OVERLAY_SLOT_EXTRUDER_SHAPE = UITexture.fullImage( - GregTech.ID, - "gui/overlay_slot/extruder_shape"); + public static final SteamTexture OVERLAY_SLOT_DUST_STEAM = SteamTexture + .fullImage(GregTech.ID, "gui/overlay_slot/dust_%s"); + public static final SteamTexture OVERLAY_SLOT_BLOCK_STEAM = SteamTexture + .fullImage(GregTech.ID, "gui/overlay_slot/block_%s"); + public static final UITexture OVERLAY_SLOT_EXPLOSIVE = UITexture + .fullImage(GregTech.ID, "gui/overlay_slot/explosive"); + public static final UITexture OVERLAY_SLOT_EXTRUDER_SHAPE = UITexture + .fullImage(GregTech.ID, "gui/overlay_slot/extruder_shape"); public static final UITexture OVERLAY_SLOT_FURNACE = UITexture.fullImage(GregTech.ID, "gui/overlay_slot/furnace"); - public static final SteamTexture OVERLAY_SLOT_FURNACE_STEAM = SteamTexture.fullImage( - GregTech.ID, - "gui/overlay_slot/furnace_%s"); + public static final SteamTexture OVERLAY_SLOT_FURNACE_STEAM = SteamTexture + .fullImage(GregTech.ID, "gui/overlay_slot/furnace_%s"); public static final UITexture OVERLAY_SLOT_GEM = UITexture.fullImage(GregTech.ID, "gui/overlay_slot/gem"); public static final UITexture OVERLAY_SLOT_HAMMER = UITexture.fullImage(GregTech.ID, "gui/overlay_slot/hammer"); - public static final SteamTexture OVERLAY_SLOT_HAMMER_STEAM = SteamTexture.fullImage( - GregTech.ID, - "gui/overlay_slot/hammer_%s"); + public static final SteamTexture OVERLAY_SLOT_HAMMER_STEAM = SteamTexture + .fullImage(GregTech.ID, "gui/overlay_slot/hammer_%s"); public static final UITexture OVERLAY_SLOT_HEATER_1 = UITexture.fullImage(GregTech.ID, "gui/overlay_slot/heater_1"); public static final UITexture OVERLAY_SLOT_HEATER_2 = UITexture.fullImage(GregTech.ID, "gui/overlay_slot/heater_2"); - public static final UITexture OVERLAY_SLOT_IMPLOSION = UITexture.fullImage( - GregTech.ID, - "gui/overlay_slot/implosion"); + public static final UITexture OVERLAY_SLOT_IMPLOSION = UITexture + .fullImage(GregTech.ID, "gui/overlay_slot/implosion"); public static final UITexture OVERLAY_SLOT_IN = UITexture.fullImage(GregTech.ID, "gui/overlay_slot/in"); - public static final SteamTexture OVERLAY_SLOT_IN_STEAM = SteamTexture.fullImage( - GregTech.ID, - "gui/overlay_slot/in_%s"); - public static final SteamTexture OVERLAY_SLOT_INGOT_STEAM = SteamTexture.fullImage( - GregTech.ID, - "gui/overlay_slot/ingot_%s"); - public static final UITexture OVERLAY_SLOT_INT_CIRCUIT = UITexture.fullImage( - GregTech.ID, - "gui/overlay_slot/int_circuit"); + public static final SteamTexture OVERLAY_SLOT_IN_STEAM = SteamTexture + .fullImage(GregTech.ID, "gui/overlay_slot/in_%s"); + public static final SteamTexture OVERLAY_SLOT_INGOT_STEAM = SteamTexture + .fullImage(GregTech.ID, "gui/overlay_slot/ingot_%s"); + public static final UITexture OVERLAY_SLOT_INT_CIRCUIT = UITexture + .fullImage(GregTech.ID, "gui/overlay_slot/int_circuit"); public static final UITexture OVERLAY_SLOT_LENS = UITexture.fullImage(GregTech.ID, "gui/overlay_slot/lens"); - public static final UITexture OVERLAY_SLOT_MICROSCOPE = UITexture.fullImage( - GregTech.ID, - "gui/overlay_slot/microscope"); + public static final UITexture OVERLAY_SLOT_MICROSCOPE = UITexture + .fullImage(GregTech.ID, "gui/overlay_slot/microscope"); public static final UITexture OVERLAY_SLOT_MOLD = UITexture.fullImage(GregTech.ID, "gui/overlay_slot/mold"); - public static final UITexture OVERLAY_SLOT_MOLECULAR_1 = UITexture.fullImage( - GregTech.ID, - "gui/overlay_slot/molecular_1"); - public static final UITexture OVERLAY_SLOT_MOLECULAR_2 = UITexture.fullImage( - GregTech.ID, - "gui/overlay_slot/molecular_2"); - public static final UITexture OVERLAY_SLOT_MOLECULAR_3 = UITexture.fullImage( - GregTech.ID, - "gui/overlay_slot/molecular_3"); + public static final UITexture OVERLAY_SLOT_MOLECULAR_1 = UITexture + .fullImage(GregTech.ID, "gui/overlay_slot/molecular_1"); + public static final UITexture OVERLAY_SLOT_MOLECULAR_2 = UITexture + .fullImage(GregTech.ID, "gui/overlay_slot/molecular_2"); + public static final UITexture OVERLAY_SLOT_MOLECULAR_3 = UITexture + .fullImage(GregTech.ID, "gui/overlay_slot/molecular_3"); public static final UITexture OVERLAY_SLOT_OUT = UITexture.fullImage(GregTech.ID, "gui/overlay_slot/out"); - public static final SteamTexture OVERLAY_SLOT_OUT_STEAM = SteamTexture.fullImage( - GregTech.ID, - "gui/overlay_slot/out_%s"); - public static final UITexture OVERLAY_SLOT_PAGE_BLANK = UITexture.fullImage( - GregTech.ID, - "gui/overlay_slot/page_blank"); - public static final UITexture OVERLAY_SLOT_PAGE_PRINTED = UITexture.fullImage( - GregTech.ID, - "gui/overlay_slot/page_printed"); + public static final SteamTexture OVERLAY_SLOT_OUT_STEAM = SteamTexture + .fullImage(GregTech.ID, "gui/overlay_slot/out_%s"); + public static final UITexture OVERLAY_SLOT_PAGE_BLANK = UITexture + .fullImage(GregTech.ID, "gui/overlay_slot/page_blank"); + public static final UITexture OVERLAY_SLOT_PAGE_PRINTED = UITexture + .fullImage(GregTech.ID, "gui/overlay_slot/page_printed"); public static final UITexture OVERLAY_SLOT_PRESS_1 = UITexture.fullImage(GregTech.ID, "gui/overlay_slot/press_1"); public static final UITexture OVERLAY_SLOT_PRESS_2 = UITexture.fullImage(GregTech.ID, "gui/overlay_slot/press_2"); public static final UITexture OVERLAY_SLOT_PRESS_3 = UITexture.fullImage(GregTech.ID, "gui/overlay_slot/press_3"); public static final UITexture OVERLAY_SLOT_RECYCLE = UITexture.fullImage(GregTech.ID, "gui/overlay_slot/recycle"); public static final UITexture OVERLAY_SLOT_ROD_1 = UITexture.fullImage(GregTech.ID, "gui/overlay_slot/rod_1"); public static final UITexture OVERLAY_SLOT_ROD_2 = UITexture.fullImage(GregTech.ID, "gui/overlay_slot/rod_2"); - public static final UITexture OVERLAY_SLOT_SLICE_SHAPE = UITexture.fullImage( - GregTech.ID, - "gui/overlay_slot/slice_shape"); - public static final UITexture OVERLAY_SLOT_SLICER_SLICED = UITexture.fullImage( - GregTech.ID, - "gui/overlay_slot/slicer_sliced"); + public static final UITexture OVERLAY_SLOT_SLICE_SHAPE = UITexture + .fullImage(GregTech.ID, "gui/overlay_slot/slice_shape"); + public static final UITexture OVERLAY_SLOT_SLICER_SLICED = UITexture + .fullImage(GregTech.ID, "gui/overlay_slot/slicer_sliced"); public static final UITexture OVERLAY_SLOT_SQUARE = UITexture.fullImage(GregTech.ID, "gui/overlay_slot/square"); public static final UITexture OVERLAY_SLOT_UUA = UITexture.fullImage(GregTech.ID, "gui/overlay_slot/uua"); public static final UITexture OVERLAY_SLOT_UUM = UITexture.fullImage(GregTech.ID, "gui/overlay_slot/uum"); @@ -197,82 +135,60 @@ public class GT_UITextures { public static final UITexture OVERLAY_SLOT_WIREMILL = UITexture.fullImage(GregTech.ID, "gui/overlay_slot/wiremill"); public static final UITexture OVERLAY_SLOT_WRENCH = UITexture.fullImage(GregTech.ID, "gui/overlay_slot/wrench"); public static final UITexture[] OVERLAY_SLOTS_NUMBER = IntStream.range(0, 12) - .mapToObj( - i -> UITexture.fullImage( - GregTech.ID, - "gui/overlay_slot/number_" + i)) - .collect(Collectors.toList()) - .toArray(new UITexture[0]); + .mapToObj(i -> UITexture.fullImage(GregTech.ID, "gui/overlay_slot/number_" + i)) + .collect(Collectors.toList()) + .toArray(new UITexture[0]); public static final UITexture PROGRESSBAR_ARROW = UITexture.fullImage(GregTech.ID, "gui/progressbar/arrow"); - public static final SteamTexture PROGRESSBAR_ARROW_STEAM = SteamTexture.fullImage( - GregTech.ID, - "gui/progressbar/arrow_%s"); - public static final SteamTexture PROGRESSBAR_ARROW_2_STEAM = SteamTexture.fullImage( - GregTech.ID, - "gui/progressbar/arrow_2_%s"); - public static final UITexture PROGRESSBAR_ARROW_MULTIPLE = UITexture.fullImage( - GregTech.ID, - "gui/progressbar/arrow_multiple"); + public static final SteamTexture PROGRESSBAR_ARROW_STEAM = SteamTexture + .fullImage(GregTech.ID, "gui/progressbar/arrow_%s"); + public static final SteamTexture PROGRESSBAR_ARROW_2_STEAM = SteamTexture + .fullImage(GregTech.ID, "gui/progressbar/arrow_2_%s"); + public static final UITexture PROGRESSBAR_ARROW_MULTIPLE = UITexture + .fullImage(GregTech.ID, "gui/progressbar/arrow_multiple"); public static final UITexture PROGRESSBAR_ASSEMBLE = UITexture.fullImage(GregTech.ID, "gui/progressbar/assemble"); - public static final UITexture PROGRESSBAR_ASSEMBLY_LINE_1 = UITexture.fullImage( - GregTech.ID, - "gui/progressbar/assemblyline_1"); - public static final UITexture PROGRESSBAR_ASSEMBLY_LINE_2 = UITexture.fullImage( - GregTech.ID, - "gui/progressbar/assemblyline_2"); - public static final UITexture PROGRESSBAR_ASSEMBLY_LINE_3 = UITexture.fullImage( - GregTech.ID, - "gui/progressbar/assemblyline_3"); + public static final UITexture PROGRESSBAR_ASSEMBLY_LINE_1 = UITexture + .fullImage(GregTech.ID, "gui/progressbar/assemblyline_1"); + public static final UITexture PROGRESSBAR_ASSEMBLY_LINE_2 = UITexture + .fullImage(GregTech.ID, "gui/progressbar/assemblyline_2"); + public static final UITexture PROGRESSBAR_ASSEMBLY_LINE_3 = UITexture + .fullImage(GregTech.ID, "gui/progressbar/assemblyline_3"); public static final UITexture PROGRESSBAR_BATH = UITexture.fullImage(GregTech.ID, "gui/progressbar/bath"); public static final UITexture PROGRESSBAR_BENDING = UITexture.fullImage(GregTech.ID, "gui/progressbar/bending"); - public static final SteamTexture PROGRESSBAR_BOILER_EMPTY_STEAM = SteamTexture.fullImage( - GregTech.ID, - "gui/progressbar/boiler_empty_%s"); - public static final UITexture PROGRESSBAR_BOILER_HEAT = UITexture.fullImage( - GregTech.ID, - "gui/progressbar/boiler_heat"); - public static final UITexture PROGRESSBAR_BOILER_STEAM = UITexture.fullImage( - GregTech.ID, - "gui/progressbar/boiler_steam"); - public static final UITexture PROGRESSBAR_BOILER_WATER = UITexture.fullImage( - GregTech.ID, - "gui/progressbar/boiler_water"); + public static final SteamTexture PROGRESSBAR_BOILER_EMPTY_STEAM = SteamTexture + .fullImage(GregTech.ID, "gui/progressbar/boiler_empty_%s"); + public static final UITexture PROGRESSBAR_BOILER_HEAT = UITexture + .fullImage(GregTech.ID, "gui/progressbar/boiler_heat"); + public static final UITexture PROGRESSBAR_BOILER_STEAM = UITexture + .fullImage(GregTech.ID, "gui/progressbar/boiler_steam"); + public static final UITexture PROGRESSBAR_BOILER_WATER = UITexture + .fullImage(GregTech.ID, "gui/progressbar/boiler_water"); public static final UITexture PROGRESSBAR_CANNER = UITexture.fullImage(GregTech.ID, "gui/progressbar/canner"); - public static final UITexture PROGRESSBAR_CIRCUIT_ASSEMBLER = UITexture.fullImage( - GregTech.ID, - "gui/progressbar/circuit_assembler"); + public static final UITexture PROGRESSBAR_CIRCUIT_ASSEMBLER = UITexture + .fullImage(GregTech.ID, "gui/progressbar/circuit_assembler"); public static final UITexture PROGRESSBAR_COMPRESS = UITexture.fullImage(GregTech.ID, "gui/progressbar/compress"); - public static final SteamTexture PROGRESSBAR_COMPRESS_STEAM = SteamTexture.fullImage( - GregTech.ID, - "gui/progressbar/compress_%s"); + public static final SteamTexture PROGRESSBAR_COMPRESS_STEAM = SteamTexture + .fullImage(GregTech.ID, "gui/progressbar/compress_%s"); public static final UITexture PROGRESSBAR_CUT = UITexture.fullImage(GregTech.ID, "gui/progressbar/cut"); public static final UITexture PROGRESSBAR_EXTRACT = UITexture.fullImage(GregTech.ID, "gui/progressbar/extract"); - public static final SteamTexture PROGRESSBAR_EXTRACT_STEAM = SteamTexture.fullImage( - GregTech.ID, - "gui/progressbar/extract_%s"); + public static final SteamTexture PROGRESSBAR_EXTRACT_STEAM = SteamTexture + .fullImage(GregTech.ID, "gui/progressbar/extract_%s"); public static final UITexture PROGRESSBAR_EXTRUDE = UITexture.fullImage(GregTech.ID, "gui/progressbar/extrude"); - public static final SteamTexture PROGRESSBAR_FUEL_STEAM = SteamTexture.fullImage( - GregTech.ID, - "gui/progressbar/fuel_%s"); + public static final SteamTexture PROGRESSBAR_FUEL_STEAM = SteamTexture + .fullImage(GregTech.ID, "gui/progressbar/fuel_%s"); public static final UITexture PROGRESSBAR_HAMMER = UITexture.fullImage(GregTech.ID, "gui/progressbar/hammer"); - public static final UITexture PROGRESSBAR_HAMMER_BASE = UITexture.fullImage( - GregTech.ID, - "gui/progressbar/hammer_base"); - public static final SteamTexture PROGRESSBAR_HAMMER_STEAM = SteamTexture.fullImage( - GregTech.ID, - "gui/progressbar/hammer_%s"); - public static final SteamTexture PROGRESSBAR_HAMMER_BASE_STEAM = SteamTexture.fullImage( - GregTech.ID, - "gui/progressbar/hammer_base_%s"); + public static final UITexture PROGRESSBAR_HAMMER_BASE = UITexture + .fullImage(GregTech.ID, "gui/progressbar/hammer_base"); + public static final SteamTexture PROGRESSBAR_HAMMER_STEAM = SteamTexture + .fullImage(GregTech.ID, "gui/progressbar/hammer_%s"); + public static final SteamTexture PROGRESSBAR_HAMMER_BASE_STEAM = SteamTexture + .fullImage(GregTech.ID, "gui/progressbar/hammer_base_%s"); public static final UITexture PROGRESSBAR_LATHE = UITexture.fullImage(GregTech.ID, "gui/progressbar/lathe"); - public static final UITexture PROGRESSBAR_LATHE_BASE = UITexture.fullImage( - GregTech.ID, - "gui/progressbar/lathe_base"); + public static final UITexture PROGRESSBAR_LATHE_BASE = UITexture + .fullImage(GregTech.ID, "gui/progressbar/lathe_base"); public static final UITexture PROGRESSBAR_MACERATE = UITexture.fullImage(GregTech.ID, "gui/progressbar/macerate"); - public static final SteamTexture PROGRESSBAR_MACERATE_STEAM = SteamTexture.fullImage( - GregTech.ID, - "gui/progressbar/macerate_%s"); + public static final SteamTexture PROGRESSBAR_MACERATE_STEAM = SteamTexture + .fullImage(GregTech.ID, "gui/progressbar/macerate_%s"); public static final UITexture PROGRESSBAR_MAGNET = UITexture.fullImage(GregTech.ID, "gui/progressbar/magnet"); public static final UITexture PROGRESSBAR_MIXER = UITexture.fullImage(GregTech.ID, "gui/progressbar/mixer"); public static final UITexture PROGRESSBAR_RECYCLE = UITexture.fullImage(GregTech.ID, "gui/progressbar/recycle"); @@ -284,347 +200,242 @@ public class GT_UITextures { public static final UITexture TAB_COVER_NORMAL = UITexture.fullImage(GregTech.ID, "gui/tab/cover_normal"); public static final UITexture TAB_COVER_HIGHLIGHT = UITexture.fullImage(GregTech.ID, "gui/tab/cover_highlight"); public static final UITexture TAB_COVER_DISABLED = UITexture.fullImage(GregTech.ID, "gui/tab/cover_disabled"); - public static final SteamTexture TAB_COVER_STEAM_NORMAL = SteamTexture.fullImage( - GregTech.ID, - "gui/tab/cover_%s_normal"); - public static final SteamTexture TAB_COVER_STEAM_HIGHLIGHT = SteamTexture.fullImage( - GregTech.ID, - "gui/tab/cover_%s_highlight"); - public static final SteamTexture TAB_COVER_STEAM_DISABLED = SteamTexture.fullImage( - GregTech.ID, - "gui/tab/cover_%s_disabled"); + public static final SteamTexture TAB_COVER_STEAM_NORMAL = SteamTexture + .fullImage(GregTech.ID, "gui/tab/cover_%s_normal"); + public static final SteamTexture TAB_COVER_STEAM_HIGHLIGHT = SteamTexture + .fullImage(GregTech.ID, "gui/tab/cover_%s_highlight"); + public static final SteamTexture TAB_COVER_STEAM_DISABLED = SteamTexture + .fullImage(GregTech.ID, "gui/tab/cover_%s_disabled"); public static final AdaptableUITexture TAB_TITLE = AdaptableUITexture.of(GregTech.ID, "gui/tab/title", 28, 28, 4); - public static final AdaptableUITexture TAB_TITLE_DARK = AdaptableUITexture.of( - GregTech.ID, - "gui/tab/title_dark", - 28, - 28, - 4); - public static final SteamTexture TAB_TITLE_STEAM = SteamTexture.adaptableTexture( - GregTech.ID, - "gui/tab/title_%s", - 28, - 28, - 4); - public static final SteamTexture TAB_TITLE_DARK_STEAM = SteamTexture.adaptableTexture( - GregTech.ID, - "gui/tab/title_dark_%s", - 28, - 28, - 4); - public static final AdaptableUITexture TAB_TITLE_ANGULAR = AdaptableUITexture.of( - GregTech.ID, - "gui/tab/title_angular", - 28, - 28, - 4); - public static final SteamTexture TAB_TITLE_ANGULAR_STEAM = SteamTexture.adaptableTexture( - GregTech.ID, - "gui/tab/title_angular_%s", - 28, - 28, - 4); + public static final AdaptableUITexture TAB_TITLE_DARK = AdaptableUITexture + .of(GregTech.ID, "gui/tab/title_dark", 28, 28, 4); + public static final SteamTexture TAB_TITLE_STEAM = SteamTexture + .adaptableTexture(GregTech.ID, "gui/tab/title_%s", 28, 28, 4); + public static final SteamTexture TAB_TITLE_DARK_STEAM = SteamTexture + .adaptableTexture(GregTech.ID, "gui/tab/title_dark_%s", 28, 28, 4); + public static final AdaptableUITexture TAB_TITLE_ANGULAR = AdaptableUITexture + .of(GregTech.ID, "gui/tab/title_angular", 28, 28, 4); + public static final SteamTexture TAB_TITLE_ANGULAR_STEAM = SteamTexture + .adaptableTexture(GregTech.ID, "gui/tab/title_angular_%s", 28, 28, 4); - public static final UITexture BUTTON_STANDARD = AdaptableUITexture.of( - GregTech.ID, - "gui/button/standard", - 18, - 18, - 1); - public static final UITexture BUTTON_STANDARD_DISABLED = AdaptableUITexture.of( - GregTech.ID, - "gui/button/standard_disabled", - 18, - 18, - 1); - public static final UITexture BUTTON_STANDARD_TOGGLE = AdaptableUITexture.of( - GregTech.ID, - "gui/button/standard_toggle", - 18, - 18, - 1); - public static final UITexture BUTTON_STANDARD_TOGGLE_DISABLED = AdaptableUITexture.of( - GregTech.ID, - "gui/button/standard_toggle_disabled", - 18, - 18, - 1); + public static final UITexture BUTTON_STANDARD = AdaptableUITexture + .of(GregTech.ID, "gui/button/standard", 18, 18, 1); + public static final UITexture BUTTON_STANDARD_DISABLED = AdaptableUITexture + .of(GregTech.ID, "gui/button/standard_disabled", 18, 18, 1); + public static final UITexture BUTTON_STANDARD_TOGGLE = AdaptableUITexture + .of(GregTech.ID, "gui/button/standard_toggle", 18, 18, 1); + public static final UITexture BUTTON_STANDARD_TOGGLE_DISABLED = AdaptableUITexture + .of(GregTech.ID, "gui/button/standard_toggle_disabled", 18, 18, 1); public static final UITexture BUTTON_COVER_NORMAL = UITexture.fullImage(GregTech.ID, "gui/button/cover_normal"); - public static final UITexture BUTTON_COVER_NORMAL_HOVERED = UITexture.fullImage( - GregTech.ID, - "gui/button/cover_normal_hovered"); - public static final UITexture BUTTON_COVER_NORMAL_DISABLED = UITexture.fullImage( - GregTech.ID, - "gui/button/cover_normal_disabled"); + public static final UITexture BUTTON_COVER_NORMAL_HOVERED = UITexture + .fullImage(GregTech.ID, "gui/button/cover_normal_hovered"); + public static final UITexture BUTTON_COVER_NORMAL_DISABLED = UITexture + .fullImage(GregTech.ID, "gui/button/cover_normal_disabled"); - public static final UITexture OVERLAY_BUTTON_DISABLE = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/disable"); - public static final UITexture OVERLAY_BUTTON_REDSTONE_OFF = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/redstone_off"); - public static final UITexture OVERLAY_BUTTON_REDSTONE_ON = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/redstone_on"); - public static final UITexture OVERLAY_BUTTON_POWER_SWITCH_ON = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/power_switch_on"); - public static final UITexture OVERLAY_BUTTON_POWER_SWITCH_OFF = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/power_switch_off"); - public static final UITexture OVERLAY_BUTTON_VOID_EXCESS_ON = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/void_excess_on"); - public static final UITexture OVERLAY_BUTTON_VOID_EXCESS_ON_DISABLED = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/void_excess_on_disabled"); - public static final UITexture OVERLAY_BUTTON_VOID_EXCESS_OFF = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/void_excess_off"); - public static final UITexture OVERLAY_BUTTON_VOID_EXCESS_OFF_DISABLED = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/void_excess_off_disabled"); - public static final UITexture OVERLAY_BUTTON_INPUT_SEPARATION_ON = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/input_separation_on"); - public static final UITexture OVERLAY_BUTTON_INPUT_SEPARATION_ON_DISABLED = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/input_separation_on_disabled"); - public static final UITexture OVERLAY_BUTTON_INPUT_SEPARATION_OFF = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/input_separation_off"); - public static final UITexture OVERLAY_BUTTON_INPUT_SEPARATION_OFF_DISABLED = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/input_separation_off_disabled"); - public static final UITexture OVERLAY_BUTTON_RECIPE_LOCKED = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/recipe_locked"); - public static final UITexture OVERLAY_BUTTON_RECIPE_LOCKED_DISABLED = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/recipe_locked_disabled"); - public static final UITexture OVERLAY_BUTTON_RECIPE_UNLOCKED = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/recipe_unlocked"); - public static final UITexture OVERLAY_BUTTON_RECIPE_UNLOCKED_DISABLED = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/recipe_unlocked_disabled"); - public static final UITexture OVERLAY_BUTTON_BATCH_MODE_ON = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/batch_mode_on"); - public static final UITexture OVERLAY_BUTTON_BATCH_MODE_ON_DISABLED = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/batch_mode_on_disabled"); - public static final UITexture OVERLAY_BUTTON_BATCH_MODE_OFF = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/batch_mode_off"); - public static final UITexture OVERLAY_BUTTON_BATCH_MODE_OFF_DISABLED = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/batch_mode_off_disabled"); - public static final UITexture OVERLAY_BUTTON_DOWN_TIERING_ON = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/down_tiering_on"); - public static final UITexture OVERLAY_BUTTON_DOWN_TIERING_OFF = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/down_tiering_off"); - public static final UITexture OVERLAY_BUTTON_CHECKMARK = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/checkmark"); + public static final UITexture OVERLAY_BUTTON_DISABLE = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/disable"); + public static final UITexture OVERLAY_BUTTON_REDSTONE_OFF = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/redstone_off"); + public static final UITexture OVERLAY_BUTTON_REDSTONE_ON = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/redstone_on"); + public static final UITexture OVERLAY_BUTTON_POWER_SWITCH_ON = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/power_switch_on"); + public static final UITexture OVERLAY_BUTTON_POWER_SWITCH_OFF = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/power_switch_off"); + public static final UITexture OVERLAY_BUTTON_VOID_EXCESS_ON = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/void_excess_on"); + public static final UITexture OVERLAY_BUTTON_VOID_EXCESS_ON_DISABLED = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/void_excess_on_disabled"); + public static final UITexture OVERLAY_BUTTON_VOID_EXCESS_OFF = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/void_excess_off"); + public static final UITexture OVERLAY_BUTTON_VOID_EXCESS_OFF_DISABLED = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/void_excess_off_disabled"); + public static final UITexture OVERLAY_BUTTON_INPUT_SEPARATION_ON = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/input_separation_on"); + public static final UITexture OVERLAY_BUTTON_INPUT_SEPARATION_ON_DISABLED = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/input_separation_on_disabled"); + public static final UITexture OVERLAY_BUTTON_INPUT_SEPARATION_OFF = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/input_separation_off"); + public static final UITexture OVERLAY_BUTTON_INPUT_SEPARATION_OFF_DISABLED = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/input_separation_off_disabled"); + public static final UITexture OVERLAY_BUTTON_RECIPE_LOCKED = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/recipe_locked"); + public static final UITexture OVERLAY_BUTTON_RECIPE_LOCKED_DISABLED = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/recipe_locked_disabled"); + public static final UITexture OVERLAY_BUTTON_RECIPE_UNLOCKED = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/recipe_unlocked"); + public static final UITexture OVERLAY_BUTTON_RECIPE_UNLOCKED_DISABLED = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/recipe_unlocked_disabled"); + public static final UITexture OVERLAY_BUTTON_BATCH_MODE_ON = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/batch_mode_on"); + public static final UITexture OVERLAY_BUTTON_BATCH_MODE_ON_DISABLED = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/batch_mode_on_disabled"); + public static final UITexture OVERLAY_BUTTON_BATCH_MODE_OFF = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/batch_mode_off"); + public static final UITexture OVERLAY_BUTTON_BATCH_MODE_OFF_DISABLED = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/batch_mode_off_disabled"); + public static final UITexture OVERLAY_BUTTON_DOWN_TIERING_ON = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/down_tiering_on"); + public static final UITexture OVERLAY_BUTTON_DOWN_TIERING_OFF = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/down_tiering_off"); + public static final UITexture OVERLAY_BUTTON_CHECKMARK = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/checkmark"); public static final UITexture OVERLAY_BUTTON_CROSS = UITexture.fullImage(GregTech.ID, "gui/overlay_button/cross"); - public static final UITexture OVERLAY_BUTTON_WHITELIST = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/whitelist"); - public static final UITexture OVERLAY_BUTTON_BLACKLIST = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/blacklist"); - public static final UITexture OVERLAY_BUTTON_PROGRESS = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/progress"); + public static final UITexture OVERLAY_BUTTON_WHITELIST = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/whitelist"); + public static final UITexture OVERLAY_BUTTON_BLACKLIST = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/blacklist"); + public static final UITexture OVERLAY_BUTTON_PROGRESS = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/progress"); public static final UITexture OVERLAY_BUTTON_EXPORT = UITexture.fullImage(GregTech.ID, "gui/overlay_button/export"); public static final UITexture OVERLAY_BUTTON_IMPORT = UITexture.fullImage(GregTech.ID, "gui/overlay_button/import"); - public static final UITexture OVERLAY_BUTTON_AUTOOUTPUT_ITEM = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/autooutput_item"); - public static final UITexture OVERLAY_BUTTON_AUTOOUTPUT_FLUID = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/autooutput_fluid"); - public static final UITexture OVERLAY_BUTTON_ALLOW_INPUT = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/allow_input"); - public static final UITexture OVERLAY_BUTTON_AUTOPULL_ME = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/auto_pull_me"); - public static final UITexture OVERLAY_BUTTON_AUTOPULL_ME_DISABLED = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/auto_pull_me_disabled"); - public static final UITexture OVERLAY_BUTTON_BLOCK_INPUT = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/block_input"); - public static final UITexture OVERLAY_BUTTON_ARROW_GREEN_UP = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/arrow_green_up"); - public static final UITexture OVERLAY_BUTTON_ARROW_GREEN_DOWN = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/arrow_green_down"); + public static final UITexture OVERLAY_BUTTON_AUTOOUTPUT_ITEM = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/autooutput_item"); + public static final UITexture OVERLAY_BUTTON_AUTOOUTPUT_FLUID = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/autooutput_fluid"); + public static final UITexture OVERLAY_BUTTON_ALLOW_INPUT = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/allow_input"); + public static final UITexture OVERLAY_BUTTON_AUTOPULL_ME = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/auto_pull_me"); + public static final UITexture OVERLAY_BUTTON_AUTOPULL_ME_DISABLED = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/auto_pull_me_disabled"); + public static final UITexture OVERLAY_BUTTON_BLOCK_INPUT = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/block_input"); + public static final UITexture OVERLAY_BUTTON_ARROW_GREEN_UP = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/arrow_green_up"); + public static final UITexture OVERLAY_BUTTON_ARROW_GREEN_DOWN = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/arrow_green_down"); public static final UITexture OVERLAY_BUTTON_CYCLIC = UITexture.fullImage(GregTech.ID, "gui/overlay_button/cyclic"); - public static final UITexture OVERLAY_BUTTON_EMIT_ENERGY = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/emit_energy"); - public static final UITexture OVERLAY_BUTTON_EMIT_REDSTONE = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/emit_redstone"); - public static final UITexture OVERLAY_BUTTON_INVERT_REDSTONE = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/invert_redstone"); - public static final UITexture OVERLAY_BUTTON_STOCKING_MODE = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/stocking_mode"); - public static final UITexture OVERLAY_BUTTON_INVERT_FILTER = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/invert_filter"); + public static final UITexture OVERLAY_BUTTON_EMIT_ENERGY = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/emit_energy"); + public static final UITexture OVERLAY_BUTTON_EMIT_REDSTONE = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/emit_redstone"); + public static final UITexture OVERLAY_BUTTON_INVERT_REDSTONE = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/invert_redstone"); + public static final UITexture OVERLAY_BUTTON_STOCKING_MODE = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/stocking_mode"); + public static final UITexture OVERLAY_BUTTON_INVERT_FILTER = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/invert_filter"); public static final UITexture OVERLAY_BUTTON_NBT = UITexture.fullImage(GregTech.ID, "gui/overlay_button/nbt"); public static final UITexture OVERLAY_BUTTON_PRINT = UITexture.fullImage(GregTech.ID, "gui/overlay_button/print"); - public static final UITexture OVERLAY_BUTTON_TRANSPOSE = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/transpose"); - public static final UITexture OVERLAY_BUTTON_BOUNDING_BOX = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/bounding_box"); - public static final UITexture OVERLAY_BUTTON_MINUS_SMALL = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/minus_small"); - public static final UITexture OVERLAY_BUTTON_MINUS_LARGE = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/minus_large"); - public static final UITexture OVERLAY_BUTTON_PLUS_SMALL = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/plus_small"); - public static final UITexture OVERLAY_BUTTON_PLUS_LARGE = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/plus_large"); - public static final UITexture OVERLAY_BUTTON_GATE_AND = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/gate_and"); - public static final UITexture OVERLAY_BUTTON_GATE_NAND = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/gate_nand"); - public static final UITexture OVERLAY_BUTTON_GATE_OR = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/gate_or"); - public static final UITexture OVERLAY_BUTTON_GATE_NOR = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/gate_nor"); + public static final UITexture OVERLAY_BUTTON_TRANSPOSE = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/transpose"); + public static final UITexture OVERLAY_BUTTON_BOUNDING_BOX = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/bounding_box"); + public static final UITexture OVERLAY_BUTTON_MINUS_SMALL = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/minus_small"); + public static final UITexture OVERLAY_BUTTON_MINUS_LARGE = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/minus_large"); + public static final UITexture OVERLAY_BUTTON_PLUS_SMALL = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/plus_small"); + public static final UITexture OVERLAY_BUTTON_PLUS_LARGE = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/plus_large"); + public static final UITexture OVERLAY_BUTTON_GATE_AND = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/gate_and"); + public static final UITexture OVERLAY_BUTTON_GATE_NAND = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/gate_nand"); + public static final UITexture OVERLAY_BUTTON_GATE_OR = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/gate_or"); + public static final UITexture OVERLAY_BUTTON_GATE_NOR = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/gate_nor"); public static final UITexture OVERLAY_BUTTON_ANALOG = UITexture.fullImage(GregTech.ID, "gui/overlay_button/analog"); public static final UITexture OVERLAY_BUTTON_LOCK = UITexture.fullImage(GregTech.ID, "gui/overlay_button/lock"); - public static final UITexture OVERLAY_BUTTON_INPUT_FROM_OUTPUT_SIDE = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/input_from_output_side"); - public static final UITexture OVERLAY_BUTTON_VOID_EXCESS = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/void_excess"); - public static final UITexture OVERLAY_BUTTON_VOID_ALL = UITexture.fullImage( - GregTech.ID, - "gui/overlay_button/void_all"); + public static final UITexture OVERLAY_BUTTON_INPUT_FROM_OUTPUT_SIDE = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/input_from_output_side"); + public static final UITexture OVERLAY_BUTTON_VOID_EXCESS = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/void_excess"); + public static final UITexture OVERLAY_BUTTON_VOID_ALL = UITexture + .fullImage(GregTech.ID, "gui/overlay_button/void_all"); public static final UITexture OVERLAY_BUTTON_NEI = UITexture.fullImage(GregTech.ID, "gui/overlay_button/nei"); /** * Can adjust size as needed. */ - public static final AdaptableUITexture PICTURE_SCREEN_BLACK = AdaptableUITexture.of( - GregTech.ID, - "gui/picture/screen_black", - 16, - 16, - 2); + public static final AdaptableUITexture PICTURE_SCREEN_BLACK = AdaptableUITexture + .of(GregTech.ID, "gui/picture/screen_black", 16, 16, 2); - public static final UITexture PICTURE_RADIATION_WARNING = UITexture.fullImage( - GregTech.ID, - "gui/picture/radiation_warning"); - public static final UITexture PICTURE_GT_LOGO_17x17_TRANSPARENT = UITexture.fullImage( - GregTech.ID, - "gui/picture/gt_logo_17x17_transparent"); - public static final UITexture PICTURE_GT_LOGO_17x17_TRANSPARENT_GRAY = UITexture.fullImage( - GregTech.ID, - "gui/picture/gt_logo_17x17_transparent_gray"); - public static final SteamTexture PICTURE_GT_LOGO_17x17_TRANSPARENT_STEAM = SteamTexture.fullImage( - GregTech.ID, - "gui/picture/gt_logo_17x17_transparent_%s"); + public static final UITexture PICTURE_RADIATION_WARNING = UITexture + .fullImage(GregTech.ID, "gui/picture/radiation_warning"); + public static final UITexture PICTURE_GT_LOGO_17x17_TRANSPARENT = UITexture + .fullImage(GregTech.ID, "gui/picture/gt_logo_17x17_transparent"); + public static final UITexture PICTURE_GT_LOGO_17x17_TRANSPARENT_GRAY = UITexture + .fullImage(GregTech.ID, "gui/picture/gt_logo_17x17_transparent_gray"); + public static final SteamTexture PICTURE_GT_LOGO_17x17_TRANSPARENT_STEAM = SteamTexture + .fullImage(GregTech.ID, "gui/picture/gt_logo_17x17_transparent_%s"); public static final UITexture PICTURE_GT_LOGO_18x18 = UITexture.fullImage(GregTech.ID, "gui/picture/gt_logo_18x18"); public static final UITexture PICTURE_GT_LOGO_19x19 = UITexture.fullImage(GregTech.ID, "gui/picture/gt_logo_19x19"); public static final UITexture PICTURE_INFORMATION = UITexture.fullImage(GregTech.ID, "gui/picture/information"); - public static final UITexture PICTURE_STALLED_ELECTRICITY = UITexture.fullImage( - GregTech.ID, - "gui/picture/stalled_electricity"); + public static final UITexture PICTURE_STALLED_ELECTRICITY = UITexture + .fullImage(GregTech.ID, "gui/picture/stalled_electricity"); public static final UITexture PICTURE_STALLED_STEAM = UITexture.fullImage(GregTech.ID, "gui/picture/stalled_steam"); - public static final BiFunction PICTURE_ARROW_22_RED = (width, - fromRight) -> UITexture.partly( - GregTech.ID, - "gui/picture/arrow_22_red", - 87, - 22, - fromRight ? 87 - width : 0, - 0, - fromRight ? 87 : width, - 22); - public static final BiFunction PICTURE_ARROW_22_BLUE = (width, - fromRight) -> UITexture.partly( - GregTech.ID, - "gui/picture/arrow_22_blue", - 87, - 22, - fromRight ? 87 - width : 0, - 0, - fromRight ? 87 : width, - 22); - public static final BiFunction PICTURE_ARROW_22_WHITE = (width, - fromRight) -> UITexture.partly( - GregTech.ID, - "gui/picture/arrow_22_white", - 87, - 22, - fromRight ? 87 - width : 0, - 0, - fromRight ? 87 : width, - 22); - public static final BiFunction PICTURE_ARROW_24_RED = (width, - fromRight) -> UITexture.partly( - GregTech.ID, - "gui/picture/arrow_24_red", - 69, - 24, - fromRight ? 69 - width : 0, - 0, - fromRight ? 69 : width, - 24); - public static final BiFunction PICTURE_ARROW_24_BLUE = (width, - fromRight) -> UITexture.partly( - GregTech.ID, - "gui/picture/arrow_24_blue", - 69, - 24, - fromRight ? 69 - width : 0, - 0, - fromRight ? 69 : width, - 24); - public static final BiFunction PICTURE_ARROW_24_WHITE = (width, - fromRight) -> UITexture.partly( - GregTech.ID, - "gui/picture/arrow_24_white", - 69, - 24, - fromRight ? 69 - width : 0, - 0, - fromRight ? 69 : width, - 24); + public static final BiFunction PICTURE_ARROW_22_RED = (width, fromRight) -> UITexture + .partly( + GregTech.ID, + "gui/picture/arrow_22_red", + 87, + 22, + fromRight ? 87 - width : 0, + 0, + fromRight ? 87 : width, + 22); + public static final BiFunction PICTURE_ARROW_22_BLUE = (width, fromRight) -> UITexture + .partly( + GregTech.ID, + "gui/picture/arrow_22_blue", + 87, + 22, + fromRight ? 87 - width : 0, + 0, + fromRight ? 87 : width, + 22); + public static final BiFunction PICTURE_ARROW_22_WHITE = (width, fromRight) -> UITexture + .partly( + GregTech.ID, + "gui/picture/arrow_22_white", + 87, + 22, + fromRight ? 87 - width : 0, + 0, + fromRight ? 87 : width, + 22); + public static final BiFunction PICTURE_ARROW_24_RED = (width, fromRight) -> UITexture + .partly( + GregTech.ID, + "gui/picture/arrow_24_red", + 69, + 24, + fromRight ? 69 - width : 0, + 0, + fromRight ? 69 : width, + 24); + public static final BiFunction PICTURE_ARROW_24_BLUE = (width, fromRight) -> UITexture + .partly( + GregTech.ID, + "gui/picture/arrow_24_blue", + 69, + 24, + fromRight ? 69 - width : 0, + 0, + fromRight ? 69 : width, + 24); + public static final BiFunction PICTURE_ARROW_24_WHITE = (width, fromRight) -> UITexture + .partly( + GregTech.ID, + "gui/picture/arrow_24_white", + 69, + 24, + fromRight ? 69 - width : 0, + 0, + fromRight ? 69 : width, + 24); public static final UITexture PICTURE_FLUID_WINDOW = UITexture.fullImage(GregTech.ID, "gui/picture/fluid_window"); public static final UITexture PICTURE_FLUID_TANK = UITexture.fullImage(GregTech.ID, "gui/picture/fluid_tank"); - public static final UITexture PICTURE_SLOTS_HOLO_3BY3 = UITexture.fullImage( - GregTech.ID, - "gui/picture/slots_holo_3by3"); + public static final UITexture PICTURE_SLOTS_HOLO_3BY3 = UITexture + .fullImage(GregTech.ID, "gui/picture/slots_holo_3by3"); public static final UITexture PICTURE_ARROW_DOUBLE = UITexture.fullImage(GregTech.ID, "gui/picture/arrow_double"); public static final UITexture PICTURE_SUPER_BUFFER = UITexture.fullImage(GregTech.ID, "gui/picture/super_buffer"); - public static final UITexture PICTURE_SQUARE_LIGHT_GRAY = UITexture.fullImage( - GregTech.ID, - "gui/picture/square_light_gray"); + public static final UITexture PICTURE_SQUARE_LIGHT_GRAY = UITexture + .fullImage(GregTech.ID, "gui/picture/square_light_gray"); public static final UITexture PICTURE_GAUGE = UITexture.fullImage(GregTech.ID, "gui/picture/gauge"); public static final UITexture PICTURE_ITEM_IN = UITexture.fullImage(GregTech.ID, "gui/picture/item_in"); public static final UITexture PICTURE_ITEM_OUT = UITexture.fullImage(GregTech.ID, "gui/picture/item_out"); diff --git a/src/main/java/gregtech/api/gui/modularui/GUITextureSet.java b/src/main/java/gregtech/api/gui/modularui/GUITextureSet.java index 2799738344..09f31d9c69 100644 --- a/src/main/java/gregtech/api/gui/modularui/GUITextureSet.java +++ b/src/main/java/gregtech/api/gui/modularui/GUITextureSet.java @@ -28,46 +28,30 @@ public class GUITextureSet { private AdaptableUITexture titleTabAngular; private UITexture gregtechLogo; - public static final GUITextureSet DEFAULT = new GUITextureSet().setMainBackground( - GT_UITextures.BACKGROUND_SINGLEBLOCK_DEFAULT) - .setItemSlot(ModularUITextures.ITEM_SLOT) - .setFluidSlot(ModularUITextures.FLUID_SLOT) - .setCoverTab( - GT_UITextures.TAB_COVER_NORMAL, - GT_UITextures.TAB_COVER_HIGHLIGHT, - GT_UITextures.TAB_COVER_DISABLED) - .setTitleTab( - GT_UITextures.TAB_TITLE, - GT_UITextures.TAB_TITLE_DARK, - GT_UITextures.TAB_TITLE_ANGULAR) - .setGregTechLogo( - GT_UITextures.PICTURE_GT_LOGO_17x17_TRANSPARENT); - - public static final Function STEAM = steamVariant -> new GUITextureSet().setMainBackground( - GT_UITextures.BACKGROUND_STEAM.get(steamVariant)) - .setItemSlot( - GT_UITextures.SLOT_ITEM_STEAM.get( - steamVariant)) - .setFluidSlot( - GT_UITextures.SLOT_FLUID_STEAM.get( - steamVariant)) - .setCoverTab( - GT_UITextures.TAB_COVER_STEAM_NORMAL.get( - steamVariant), - GT_UITextures.TAB_COVER_STEAM_HIGHLIGHT.get( - steamVariant), - GT_UITextures.TAB_COVER_STEAM_DISABLED.get( - steamVariant)) - .setTitleTab( - GT_UITextures.TAB_TITLE_STEAM.getAdaptable( - steamVariant), - GT_UITextures.TAB_TITLE_DARK_STEAM.getAdaptable( - steamVariant), - GT_UITextures.TAB_TITLE_ANGULAR_STEAM.getAdaptable( - steamVariant)) - .setGregTechLogo( - GT_UITextures.PICTURE_GT_LOGO_17x17_TRANSPARENT_STEAM.get( - steamVariant)); + public static final GUITextureSet DEFAULT = new GUITextureSet() + .setMainBackground(GT_UITextures.BACKGROUND_SINGLEBLOCK_DEFAULT) + .setItemSlot(ModularUITextures.ITEM_SLOT) + .setFluidSlot(ModularUITextures.FLUID_SLOT) + .setCoverTab( + GT_UITextures.TAB_COVER_NORMAL, + GT_UITextures.TAB_COVER_HIGHLIGHT, + GT_UITextures.TAB_COVER_DISABLED) + .setTitleTab(GT_UITextures.TAB_TITLE, GT_UITextures.TAB_TITLE_DARK, GT_UITextures.TAB_TITLE_ANGULAR) + .setGregTechLogo(GT_UITextures.PICTURE_GT_LOGO_17x17_TRANSPARENT); + + public static final Function STEAM = steamVariant -> new GUITextureSet() + .setMainBackground(GT_UITextures.BACKGROUND_STEAM.get(steamVariant)) + .setItemSlot(GT_UITextures.SLOT_ITEM_STEAM.get(steamVariant)) + .setFluidSlot(GT_UITextures.SLOT_FLUID_STEAM.get(steamVariant)) + .setCoverTab( + GT_UITextures.TAB_COVER_STEAM_NORMAL.get(steamVariant), + GT_UITextures.TAB_COVER_STEAM_HIGHLIGHT.get(steamVariant), + GT_UITextures.TAB_COVER_STEAM_DISABLED.get(steamVariant)) + .setTitleTab( + GT_UITextures.TAB_TITLE_STEAM.getAdaptable(steamVariant), + GT_UITextures.TAB_TITLE_DARK_STEAM.getAdaptable(steamVariant), + GT_UITextures.TAB_TITLE_ANGULAR_STEAM.getAdaptable(steamVariant)) + .setGregTechLogo(GT_UITextures.PICTURE_GT_LOGO_17x17_TRANSPARENT_STEAM.get(steamVariant)); public GUITextureSet() {} @@ -99,7 +83,7 @@ public class GUITextureSet { } public GUITextureSet setTitleTab(AdaptableUITexture titleNormal, AdaptableUITexture titleDark, - AdaptableUITexture titleTabAngular) { + AdaptableUITexture titleTabAngular) { this.titleTabNormal = titleNormal; this.titleTabDark = titleDark; this.titleTabAngular = titleTabAngular; diff --git a/src/main/java/gregtech/api/gui/modularui/SteamTexture.java b/src/main/java/gregtech/api/gui/modularui/SteamTexture.java index 7cebd957f2..1d713bc9b8 100644 --- a/src/main/java/gregtech/api/gui/modularui/SteamTexture.java +++ b/src/main/java/gregtech/api/gui/modularui/SteamTexture.java @@ -21,32 +21,20 @@ public class SteamTexture { public static SteamTexture fullImage(String mod, String location) { return new SteamTexture( - UITexture.fullImage(mod, String.format(location, SteamVariant.BRONZE)), - UITexture.fullImage(mod, String.format(location, SteamVariant.STEEL)), - UITexture.fullImage(mod, String.format(location, SteamVariant.PRIMITIVE))); + UITexture.fullImage(mod, String.format(location, SteamVariant.BRONZE)), + UITexture.fullImage(mod, String.format(location, SteamVariant.STEEL)), + UITexture.fullImage(mod, String.format(location, SteamVariant.PRIMITIVE))); } public static SteamTexture adaptableTexture(String mod, String location, int imageWidth, int imageHeight, - int borderWidthPixel) { + int borderWidthPixel) { return new SteamTexture( - AdaptableUITexture.of( - mod, - String.format(location, SteamVariant.BRONZE), - imageWidth, - imageHeight, - borderWidthPixel), - AdaptableUITexture.of( - mod, - String.format(location, SteamVariant.STEEL), - imageWidth, - imageHeight, - borderWidthPixel), - AdaptableUITexture.of( - mod, - String.format(location, SteamVariant.PRIMITIVE), - imageWidth, - imageHeight, - borderWidthPixel)); + AdaptableUITexture + .of(mod, String.format(location, SteamVariant.BRONZE), imageWidth, imageHeight, borderWidthPixel), + AdaptableUITexture + .of(mod, String.format(location, SteamVariant.STEEL), imageWidth, imageHeight, borderWidthPixel), + AdaptableUITexture + .of(mod, String.format(location, SteamVariant.PRIMITIVE), imageWidth, imageHeight, borderWidthPixel)); } public UITexture get(SteamVariant variant) { diff --git a/src/main/java/gregtech/api/gui/widgets/GT_GuiCoverTabLine.java b/src/main/java/gregtech/api/gui/widgets/GT_GuiCoverTabLine.java index 5cbee74335..9694316bee 100644 --- a/src/main/java/gregtech/api/gui/widgets/GT_GuiCoverTabLine.java +++ b/src/main/java/gregtech/api/gui/widgets/GT_GuiCoverTabLine.java @@ -26,8 +26,8 @@ public class GT_GuiCoverTabLine extends GT_GuiTabLine { // Names of the block a cover could be on private static final String[] SIDES = new String[] { "GT5U.interface.coverTabs.down", "GT5U.interface.coverTabs.up", - "GT5U.interface.coverTabs.north", "GT5U.interface.coverTabs.south", "GT5U.interface.coverTabs.west", - "GT5U.interface.coverTabs.east" }; + "GT5U.interface.coverTabs.north", "GT5U.interface.coverTabs.south", "GT5U.interface.coverTabs.west", + "GT5U.interface.coverTabs.east" }; // Not sure there's a point in JIT translation but that's what this is private String[] translatedSides; @@ -53,8 +53,8 @@ public class GT_GuiCoverTabLine extends GT_GuiTabLine { * @param colorization The colorization of the GUI we are adding tabs to */ public GT_GuiCoverTabLine(GT_GUIContainerMetaTile_Machine gui, int tabLineLeft, int tabLineTop, int tabHeight, - int tabWidth, int tabSpacing, DisplayStyle xDir, DisplayStyle yDir, DisplayStyle displayMode, - GT_GuiTabIconSet tabBackground, IGregTechTileEntity tile, int colorization) { + int tabWidth, int tabSpacing, DisplayStyle xDir, DisplayStyle yDir, DisplayStyle displayMode, + GT_GuiTabIconSet tabBackground, IGregTechTileEntity tile, int colorization) { super(gui, 6, tabLineLeft, tabLineTop, tabHeight, tabWidth, tabSpacing, xDir, yDir, displayMode, tabBackground); this.tile = tile; this.colorization = colorization; @@ -78,9 +78,9 @@ public class GT_GuiCoverTabLine extends GT_GuiTabLine { protected void drawBackground(float parTicks, int mouseX, int mouseY) { // Apply this tile's coloration to draw the background GL11.glColor3ub( - (byte) ((colorization >> 16) & 0xFF), - (byte) ((colorization >> 8) & 0xFF), - (byte) (colorization & 0xFF)); + (byte) ((colorization >> 16) & 0xFF), + (byte) ((colorization >> 8) & 0xFF), + (byte) (colorization & 0xFF)); super.drawBackground(parTicks, mouseX, mouseY); } @@ -88,14 +88,14 @@ public class GT_GuiCoverTabLine extends GT_GuiTabLine { protected void tabClicked(int tabId, int mouseButton) { if (mouseButton == 0 && mTabs[tabId].enabled) { GT_Values.NW.sendToServer( - new GT_Packet_GtTileEntityGuiRequest( - this.tile.getXCoord(), - this.tile.getYCoord(), - this.tile.getZCoord(), - tabId + GT_Proxy.GUI_ID_COVER_SIDE_BASE, - this.tile.getWorld().provider.dimensionId, - Minecraft.getMinecraft().thePlayer.getEntityId(), - 0)); + new GT_Packet_GtTileEntityGuiRequest( + this.tile.getXCoord(), + this.tile.getYCoord(), + this.tile.getZCoord(), + tabId + GT_Proxy.GUI_ID_COVER_SIDE_BASE, + this.tile.getWorld().provider.dimensionId, + Minecraft.getMinecraft().thePlayer.getEntityId(), + 0)); } } @@ -107,7 +107,7 @@ public class GT_GuiCoverTabLine extends GT_GuiTabLine { */ private void addCoverToTabs(byte side, ItemStack cover) { final boolean enabled = this.tile.getCoverBehaviorAtSideNew(side) - .hasCoverGUI(); + .hasCoverGUI(); this.setTab(side, cover, null, getTooltipForCoverTab(side, cover, enabled)); this.setTabEnabled(side, enabled); } @@ -123,10 +123,10 @@ public class GT_GuiCoverTabLine extends GT_GuiTabLine { private String[] getTooltipForCoverTab(byte side, ItemStack cover, boolean enabled) { final List tooltip = cover.getTooltip(Minecraft.getMinecraft().thePlayer, true); tooltip.set( - 0, - (enabled ? EnumChatFormatting.UNDERLINE : EnumChatFormatting.DARK_GRAY) + getSideDescription(side) - + (enabled ? EnumChatFormatting.RESET + ": " : ": " + EnumChatFormatting.RESET) - + tooltip.get(0)); + 0, + (enabled ? EnumChatFormatting.UNDERLINE : EnumChatFormatting.DARK_GRAY) + getSideDescription(side) + + (enabled ? EnumChatFormatting.RESET + ": " : ": " + EnumChatFormatting.RESET) + + tooltip.get(0)); return tooltip.toArray(new String[0]); } @@ -161,7 +161,7 @@ public class GT_GuiCoverTabLine extends GT_GuiTabLine { } for (int i = 0; i < tabLine.mTabs.length; i++) { if (tabLine.mTabs[i] != null && tabLine.mTabs[i].getBounds() - .intersects(neiSlotArea)) { + .intersects(neiSlotArea)) { return true; } } diff --git a/src/main/java/gregtech/api/gui/widgets/GT_GuiFakeItemButton.java b/src/main/java/gregtech/api/gui/widgets/GT_GuiFakeItemButton.java index 6d9b1c5db3..0f6a1c9f41 100644 --- a/src/main/java/gregtech/api/gui/widgets/GT_GuiFakeItemButton.java +++ b/src/main/java/gregtech/api/gui/widgets/GT_GuiFakeItemButton.java @@ -117,13 +117,13 @@ public class GT_GuiFakeItemButton implements IGuiScreen.IGuiElement { GL11.glEnable(GL12.GL_RESCALE_NORMAL); } gui.getItemRenderer() - .renderItemAndEffectIntoGUI( - gui.getFontRenderer(), - Minecraft.getMinecraft() - .getTextureManager(), - item, - xPosition, - yPosition); + .renderItemAndEffectIntoGUI( + gui.getFontRenderer(), + Minecraft.getMinecraft() + .getTextureManager(), + item, + xPosition, + yPosition); if (item.getItem() instanceof ItemBlock) GL11.glPopAttrib(); } diff --git a/src/main/java/gregtech/api/gui/widgets/GT_GuiIcon.java b/src/main/java/gregtech/api/gui/widgets/GT_GuiIcon.java index a1876dcc8f..46d213f0f6 100644 --- a/src/main/java/gregtech/api/gui/widgets/GT_GuiIcon.java +++ b/src/main/java/gregtech/api/gui/widgets/GT_GuiIcon.java @@ -61,8 +61,8 @@ public enum GT_GuiIcon implements IGuiIcon { private static final int T_SIZE = 256; private static ResourceLocation[] TEXTURES = { new ResourceLocation(GregTech.ID, "textures/gui/GuiButtons.png"), - new ResourceLocation(GregTech.ID, "textures/gui/GuiCover.png"), - new ResourceLocation(GregTech.ID, "textures/gui/GuiTabs.png"), }; + new ResourceLocation(GregTech.ID, "textures/gui/GuiCover.png"), + new ResourceLocation(GregTech.ID, "textures/gui/GuiTabs.png"), }; public final int x, y, width, height; public final IGuiIcon overlay; @@ -86,12 +86,12 @@ public enum GT_GuiIcon implements IGuiIcon { } public static void render(IGuiIcon icon, double x, double y, double width, double height, double zLevel, - boolean doDraw) { + boolean doDraw) { render(icon, x, y, width, height, zLevel, doDraw, false); } public static void render(IGuiIcon icon, double x, double y, double width, double height, double zLevel, - boolean doDraw, boolean flipHoritontally) { + boolean doDraw, boolean flipHoritontally) { Tessellator tess = Tessellator.instance; if (doDraw) { Minecraft.getMinecraft().renderEngine.bindTexture(TEXTURES[icon.getTexId()]); diff --git a/src/main/java/gregtech/api/gui/widgets/GT_GuiIconButton.java b/src/main/java/gregtech/api/gui/widgets/GT_GuiIconButton.java index 01bbccc599..555d063a3b 100644 --- a/src/main/java/gregtech/api/gui/widgets/GT_GuiIconButton.java +++ b/src/main/java/gregtech/api/gui/widgets/GT_GuiIconButton.java @@ -48,8 +48,8 @@ public class GT_GuiIconButton extends GuiButton implements IGuiScreen.IGuiElemen if (this.visible) { // moused over this.field_146123_n = mouseX >= this.xPosition && mouseY >= this.yPosition - && mouseX < this.xPosition + width - && mouseY < this.yPosition + height; + && mouseX < this.xPosition + width + && mouseY < this.yPosition + height; mouseDragged(mc, mouseX, mouseY); diff --git a/src/main/java/gregtech/api/gui/widgets/GT_GuiIconCheckButton.java b/src/main/java/gregtech/api/gui/widgets/GT_GuiIconCheckButton.java index 636ff0bc26..5b5007fef3 100644 --- a/src/main/java/gregtech/api/gui/widgets/GT_GuiIconCheckButton.java +++ b/src/main/java/gregtech/api/gui/widgets/GT_GuiIconCheckButton.java @@ -15,7 +15,7 @@ public class GT_GuiIconCheckButton extends GT_GuiIconButton { } public GT_GuiIconCheckButton(IGuiScreen gui, int id, int x, int y, GT_GuiIcon checkedIcon, GT_GuiIcon normalIcon, - String checkedTooltip, String normalTooltip) { + String checkedTooltip, String normalTooltip) { super(gui, id, x, y, normalIcon); this.checkedIcon = checkedIcon; this.normalIcon = normalIcon; diff --git a/src/main/java/gregtech/api/gui/widgets/GT_GuiIntegerTextBox.java b/src/main/java/gregtech/api/gui/widgets/GT_GuiIntegerTextBox.java index b2430f7b76..ef5348cf77 100644 --- a/src/main/java/gregtech/api/gui/widgets/GT_GuiIntegerTextBox.java +++ b/src/main/java/gregtech/api/gui/widgets/GT_GuiIntegerTextBox.java @@ -47,15 +47,15 @@ public class GT_GuiIntegerTextBox extends GuiTextField implements IGuiScreen.IGu @Override public boolean textboxKeyTyped(char c, int key) { if (validChar(c, key) || c == 1 - || c == 3 - || c == 22 - || c == 24 - || key == 14 - || key == 199 - || key == 203 - || key == 205 - || key == 207 - || key == 211) { + || c == 3 + || c == 22 + || c == 24 + || key == 14 + || key == 199 + || key == 203 + || key == 205 + || key == 207 + || key == 211) { return super.textboxKeyTyped(c, key); } return false; diff --git a/src/main/java/gregtech/api/gui/widgets/GT_GuiTab.java b/src/main/java/gregtech/api/gui/widgets/GT_GuiTab.java index a434be47d3..556de34395 100644 --- a/src/main/java/gregtech/api/gui/widgets/GT_GuiTab.java +++ b/src/main/java/gregtech/api/gui/widgets/GT_GuiTab.java @@ -43,7 +43,7 @@ public class GT_GuiTab { * @param flipHorizontally whether to draw this tab on the right side of the IGregTechTileEntity */ public GT_GuiTab(GT_ITabRenderer gui, int id, Rectangle bounds, GT_GuiTabIconSet tabBackground, ItemStack item, - IGuiIcon overlay, String[] tooltipText, boolean flipHorizontally) { + IGuiIcon overlay, String[] tooltipText, boolean flipHorizontally) { this.gui = gui; this.bounds = bounds; this.item = item; @@ -92,14 +92,14 @@ public class GT_GuiTab { public void drawBackground(int mouseX, int mouseY, float parTicks) { if (this.visible) { GT_GuiIcon.render( - getBackgroundTexture(), - bounds.x, - bounds.y, - bounds.width, - bounds.height, - 1, - true, - this.flipHorizontally); + getBackgroundTexture(), + bounds.x, + bounds.y, + bounds.width, + bounds.height, + 1, + true, + this.flipHorizontally); } } @@ -131,13 +131,13 @@ public class GT_GuiTab { } int margin = (bounds.height - SLOT_SIZE); gui.getItemRenderer() - .renderItemAndEffectIntoGUI( - gui.getFontRenderer(), - Minecraft.getMinecraft() - .getTextureManager(), - item, - bounds.x + (this.flipHorizontally ? 0 : margin), - bounds.y + margin); + .renderItemAndEffectIntoGUI( + gui.getFontRenderer(), + Minecraft.getMinecraft() + .getTextureManager(), + item, + bounds.x + (this.flipHorizontally ? 0 : margin), + bounds.y + margin); if (item.getItem() instanceof ItemBlock) GL11.glPopAttrib(); diff --git a/src/main/java/gregtech/api/gui/widgets/GT_GuiTabLine.java b/src/main/java/gregtech/api/gui/widgets/GT_GuiTabLine.java index 01a0f3c8b1..bc9f4437d7 100644 --- a/src/main/java/gregtech/api/gui/widgets/GT_GuiTabLine.java +++ b/src/main/java/gregtech/api/gui/widgets/GT_GuiTabLine.java @@ -104,8 +104,8 @@ public class GT_GuiTabLine { * @param tabBackground the set of textures used to draw this tab line's tab backgrounds */ public GT_GuiTabLine(GT_ITabRenderer gui, int numTabs, int tabLineLeft, int tabLineTop, int tabHeight, int tabWidth, - int tabSpacing, DisplayStyle xDir, DisplayStyle yDir, DisplayStyle displayMode, - GT_GuiTabIconSet tabBackground) { + int tabSpacing, DisplayStyle xDir, DisplayStyle yDir, DisplayStyle displayMode, + GT_GuiTabIconSet tabBackground) { this.gui = gui; this.mTabs = new GT_GuiTab[numTabs]; this.tabLineLeft = tabLineLeft; @@ -130,14 +130,14 @@ public class GT_GuiTabLine { */ public void setTab(int tabId, ItemStack item, IGuiIcon overlay, String[] text) { mTabs[tabId] = new GT_GuiTab( - this.gui, - tabId, - getBoundsForTab(tabId), - this.tabBackground, - item, - overlay, - text, - this.flipHorizontally); + this.gui, + tabId, + getBoundsForTab(tabId), + this.tabBackground, + item, + overlay, + text, + this.flipHorizontally); } /** @@ -221,7 +221,7 @@ public class GT_GuiTabLine { public void onMouseClicked(int mouseX, int mouseY, int mouseButton) { for (int tabId = 0; tabId < mTabs.length; tabId++) { if (mTabs[tabId] != null && mTabs[tabId].getBounds() - .contains(mouseX, mouseY)) { + .contains(mouseX, mouseY)) { tabClicked(tabId, mouseButton); return; } @@ -255,7 +255,7 @@ public class GT_GuiTabLine { */ private int getTabX(int tabId) { return this.gui.getGuiLeft() + (flipHorizontally ? (gui.getXSize() - tabLineLeft - tabWidth) : tabLineLeft) - + (tabId * (tabWidth + tabSpacing) * xDir.getValue()); + + (tabId * (tabWidth + tabSpacing) * xDir.getValue()); } /** diff --git a/src/main/java/gregtech/api/gui/widgets/GT_GuiTooltipManager.java b/src/main/java/gregtech/api/gui/widgets/GT_GuiTooltipManager.java index 81566de014..4304ca14fc 100644 --- a/src/main/java/gregtech/api/gui/widgets/GT_GuiTooltipManager.java +++ b/src/main/java/gregtech/api/gui/widgets/GT_GuiTooltipManager.java @@ -50,8 +50,8 @@ public class GT_GuiTooltipManager { // Give the tooltip the opportunity to decide whether they should be enabled tip.onTick(); if (tip.enabled && (!tip.isDelayed() || mouseStopped > DELAY) - && tip.getBounds() - .contains(mouseX, mouseY)) { + && tip.getBounds() + .contains(mouseX, mouseY)) { tip.updateText(); drawTooltip(tip, mouseX, mouseY, render); break; @@ -67,7 +67,7 @@ public class GT_GuiTooltipManager { int maxWidth = 0; for (String s : text) { int w = render.getFontRenderer() - .getStringWidth(s); + .getStringWidth(s); if (w > maxWidth) { maxWidth = w; } diff --git a/src/main/java/gregtech/api/interfaces/IDragAndDropSupport.java b/src/main/java/gregtech/api/interfaces/IDragAndDropSupport.java index 7364dec050..b516db5bad 100644 --- a/src/main/java/gregtech/api/interfaces/IDragAndDropSupport.java +++ b/src/main/java/gregtech/api/interfaces/IDragAndDropSupport.java @@ -34,7 +34,7 @@ public interface IDragAndDropSupport extends INEIGuiHandler { * @return True if success */ boolean handleDragAndDropGT(GuiContainer gui, int mousex, int mousey, ItemStack draggedStack, int button, - boolean isGhost); + boolean isGhost); default boolean handleDragNDrop(GuiContainer gui, int mousex, int mousey, ItemStack draggedStack, int button) { return handleDragAndDropGT(gui, mousex, mousey, draggedStack, button, NEIClientUtils.getHeldItem() == null); diff --git a/src/main/java/gregtech/api/interfaces/IGlobalWirelessEnergy.java b/src/main/java/gregtech/api/interfaces/IGlobalWirelessEnergy.java index 970b536a2c..98fe106f24 100644 --- a/src/main/java/gregtech/api/interfaces/IGlobalWirelessEnergy.java +++ b/src/main/java/gregtech/api/interfaces/IGlobalWirelessEnergy.java @@ -26,9 +26,9 @@ public interface IGlobalWirelessEnergy { default void strongCheckOrAddUser(EntityPlayer user) { strongCheckOrAddUser( - user.getUniqueID() - .toString(), - user.getDisplayName()); + user.getUniqueID() + .toString(), + user.getDisplayName()); } default void strongCheckOrAddUser(UUID user_uuid, String user_name) { @@ -46,7 +46,7 @@ public interface IGlobalWirelessEnergy { // If the username linked to the users fixed uuid is not equal to their current name then remove it. // This indicates that their username has changed. if (!(GlobalEnergyName.getOrDefault(user_uuid, "") - .equals(user_name))) { + .equals(user_name))) { String old_name = GlobalEnergyName.get(user_uuid); GlobalEnergyName.remove(old_name); } @@ -146,7 +146,7 @@ public interface IGlobalWirelessEnergy { // UUID and username of the owner. final String UUID = machine.getOwnerUuid() - .toString(); + .toString(); final String name = machine.getOwnerName(); strongCheckOrAddUser(UUID, name); diff --git a/src/main/java/gregtech/api/interfaces/IHatchElement.java b/src/main/java/gregtech/api/interfaces/IHatchElement.java index 5b825880ae..09f3385729 100644 --- a/src/main/java/gregtech/api/interfaces/IHatchElement.java +++ b/src/main/java/gregtech/api/interfaces/IHatchElement.java @@ -60,34 +60,34 @@ public interface IHatchElement { default IStructureElement newAny(int aCasingIndex, int aDot) { if (aCasingIndex < 0 || aDot < 0) throw new IllegalArgumentException(); return GT_StructureUtility.buildHatchAdder() - .anyOf(this) - .casingIndex(aCasingIndex) - .dot(aDot) - .continueIfSuccess() - .build(); + .anyOf(this) + .casingIndex(aCasingIndex) + .dot(aDot) + .continueIfSuccess() + .build(); } default IStructureElement newAny(int aCasingIndex, int aDot, ForgeDirection... allowedFacings) { if (aCasingIndex < 0 || aDot < 0) throw new IllegalArgumentException(); return GT_StructureUtility.buildHatchAdder() - .anyOf(this) - .casingIndex(aCasingIndex) - .dot(aDot) - .continueIfSuccess() - .allowOnly(allowedFacings) - .build(); + .anyOf(this) + .casingIndex(aCasingIndex) + .dot(aDot) + .continueIfSuccess() + .allowOnly(allowedFacings) + .build(); } default IStructureElement newAny(int aCasingIndex, int aDot, - BiPredicate aShouldSkip) { + BiPredicate aShouldSkip) { if (aCasingIndex < 0 || aDot < 0 || aShouldSkip == null) throw new IllegalArgumentException(); return GT_StructureUtility.buildHatchAdder() - .anyOf(this) - .casingIndex(aCasingIndex) - .dot(aDot) - .shouldSkip(aShouldSkip) - .continueIfSuccess() - .build(); + .anyOf(this) + .casingIndex(aCasingIndex) + .dot(aDot) + .shouldSkip(aShouldSkip) + .continueIfSuccess() + .build(); } default IHatchElement or(IHatchElement fallback) { @@ -109,18 +109,18 @@ class HatchElementEither implements IHatchElement { @Override public List> mteClasses() { if (mMteClasses == null) mMteClasses = ImmutableList.>builder() - .addAll(first.mteClasses()) - .addAll(second.mteClasses()) - .build(); + .addAll(first.mteClasses()) + .addAll(second.mteClasses()) + .build(); return mMteClasses; } @Override public IGT_HatchAdder adder() { return ((t, te, i) -> first.adder() - .apply(t, te, i) - || second.adder() - .apply(t, te, i)); + .apply(t, te, i) + || second.adder() + .apply(t, te, i)); } @Override @@ -144,7 +144,7 @@ class HatchElement implements IHatchElement { private final ToLongFunction mCount; public HatchElement(List> aMteClasses, IGT_HatchAdder aAdder, - String aName, ToLongFunction aCount, IHatchElement aBacking) { + String aName, ToLongFunction aCount, IHatchElement aBacking) { this.mClasses = aMteClasses; this.mAdder = aAdder; this.mName = aName; diff --git a/src/main/java/gregtech/api/interfaces/IItemBehaviour.java b/src/main/java/gregtech/api/interfaces/IItemBehaviour.java index 33e5db783a..1f67b9c1a8 100644 --- a/src/main/java/gregtech/api/interfaces/IItemBehaviour.java +++ b/src/main/java/gregtech/api/interfaces/IItemBehaviour.java @@ -19,10 +19,10 @@ public interface IItemBehaviour { boolean onLeftClickEntity(E aItem, ItemStack aStack, EntityPlayer aPlayer, Entity aEntity); boolean onItemUse(E aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int aSide, - float hitX, float hitY, float hitZ); + float hitX, float hitY, float hitZ); boolean onItemUseFirst(E aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, - int aSide, float hitX, float hitY, float hitZ); + int aSide, float hitX, float hitY, float hitZ); ItemStack onItemRightClick(E aItem, ItemStack aStack, World aWorld, EntityPlayer aPlayer); @@ -39,8 +39,8 @@ public interface IItemBehaviour { boolean hasProjectile(GT_MetaBase_Item aItem, SubTag aProjectileType, ItemStack aStack); EntityArrow getProjectile(E aItem, SubTag aProjectileType, ItemStack aStack, World aWorld, double aX, double aY, - double aZ); + double aZ); EntityArrow getProjectile(E aItem, SubTag aProjectileType, ItemStack aStack, World aWorld, EntityLivingBase aEntity, - float aSpeed); + float aSpeed); } diff --git a/src/main/java/gregtech/api/interfaces/IProjectileItem.java b/src/main/java/gregtech/api/interfaces/IProjectileItem.java index a1cfb7f4d1..64782bf04c 100644 --- a/src/main/java/gregtech/api/interfaces/IProjectileItem.java +++ b/src/main/java/gregtech/api/interfaces/IProjectileItem.java @@ -25,5 +25,5 @@ public interface IProjectileItem { * EntityArrow */ EntityArrow getProjectile(SubTag aProjectileType, ItemStack aStack, World aWorld, EntityLivingBase aEntity, - float aSpeed); + float aSpeed); } diff --git a/src/main/java/gregtech/api/interfaces/IToolStats.java b/src/main/java/gregtech/api/interfaces/IToolStats.java index 91c8564a51..4d9a4f0775 100644 --- a/src/main/java/gregtech/api/interfaces/IToolStats.java +++ b/src/main/java/gregtech/api/interfaces/IToolStats.java @@ -153,7 +153,7 @@ public interface IToolStats { * @return the Amount of modified Items. */ int convertBlockDrops(List aDrops, ItemStack aStack, EntityPlayer aPlayer, Block aBlock, int aX, int aY, - int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent); + int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent); /** * @return Returns a broken Version of the Item. @@ -175,5 +175,5 @@ public interface IToolStats { short[] getRGBa(boolean aIsToolHead, ItemStack aStack); float getMiningSpeed(Block aBlock, byte aMetaData, float aDefault, EntityPlayer aPlayer, World worldObj, int aX, - int aY, int aZ); + int aY, int aZ); } diff --git a/src/main/java/gregtech/api/interfaces/fluid/IGT_FluidBuilder.java b/src/main/java/gregtech/api/interfaces/fluid/IGT_FluidBuilder.java index 00bfd6dbe8..f15b148fcb 100644 --- a/src/main/java/gregtech/api/interfaces/fluid/IGT_FluidBuilder.java +++ b/src/main/java/gregtech/api/interfaces/fluid/IGT_FluidBuilder.java @@ -76,7 +76,7 @@ public interface IGT_FluidBuilder { */ @SuppressWarnings("UnusedReturnValue") // Last call in chain, may not use this returned value IGT_FluidBuilder withTextures(final ResourceLocation stillIconResourceLocation, - final ResourceLocation flowingIconResourceLocation); + final ResourceLocation flowingIconResourceLocation); /** * Builds the {@link IGT_Fluid} diff --git a/src/main/java/gregtech/api/interfaces/fluid/IGT_RegisteredFluid.java b/src/main/java/gregtech/api/interfaces/fluid/IGT_RegisteredFluid.java index e7c220607a..181824874c 100644 --- a/src/main/java/gregtech/api/interfaces/fluid/IGT_RegisteredFluid.java +++ b/src/main/java/gregtech/api/interfaces/fluid/IGT_RegisteredFluid.java @@ -19,7 +19,7 @@ public interface IGT_RegisteredFluid { */ @SuppressWarnings("UnusedReturnValue") // Last call in chain, may not use this returned value IGT_RegisteredFluid registerContainers(final ItemStack fullContainer, final ItemStack emptyContainer, - final int containerSize); + final int containerSize); /** * Registers the bucket-sized 1000L containers in the {@link FluidContainerRegistry} for this diff --git a/src/main/java/gregtech/api/interfaces/internal/IGT_RecipeAdder.java b/src/main/java/gregtech/api/interfaces/internal/IGT_RecipeAdder.java index 149600b426..f43159568b 100644 --- a/src/main/java/gregtech/api/interfaces/internal/IGT_RecipeAdder.java +++ b/src/main/java/gregtech/api/interfaces/internal/IGT_RecipeAdder.java @@ -14,7 +14,7 @@ public interface IGT_RecipeAdder { */ @Deprecated boolean addFusionReactorRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, int aFusionDurationInTicks, - int aFusionEnergyPerTick, int aEnergyNeededForStartingFusion); + int aFusionEnergyPerTick, int aEnergyNeededForStartingFusion); /** * Adds a FusionreactorRecipe @@ -29,7 +29,7 @@ public interface IGT_RecipeAdder { */ @Deprecated boolean addFusionReactorRecipe(FluidStack aInput1, FluidStack aInput2, FluidStack aOutput1, - int aFusionDurationInTicks, int aFusionEnergyPerTick, int aEnergyNeededForStartingFusion); + int aFusionDurationInTicks, int aFusionEnergyPerTick, int aEnergyNeededForStartingFusion); /** * Adds a Fusion Reactor Recipe @@ -42,7 +42,7 @@ public interface IGT_RecipeAdder { * @return true if the recipe got added, otherwise false. */ boolean addFusionReactorRecipe(FluidStack[] FluidInputArray, FluidStack[] FluidOutputArray, - int aFusionDurationInTicks, int aFusionEnergyPerTick, int aEnergyNeededForStartingFusion); + int aFusionDurationInTicks, int aFusionEnergyPerTick, int aEnergyNeededForStartingFusion); /** * Adds a Centrifuge Recipe @@ -55,10 +55,10 @@ public interface IGT_RecipeAdder { * @param aDuration must be > 0 */ boolean addCentrifugeRecipe(ItemStack aInput1, int aInput2, ItemStack aOutput1, ItemStack aOutput2, - ItemStack aOutput3, ItemStack aOutput4, ItemStack aOutput5, ItemStack aOutput6, int aDuration); + ItemStack aOutput3, ItemStack aOutput4, ItemStack aOutput5, ItemStack aOutput6, int aDuration); boolean addCentrifugeRecipe(ItemStack aInput1, int aInput2, ItemStack aOutput1, ItemStack aOutput2, - ItemStack aOutput3, ItemStack aOutput4, ItemStack aOutput5, ItemStack aOutput6, int aDuration, int aEUt); + ItemStack aOutput3, ItemStack aOutput4, ItemStack aOutput5, ItemStack aOutput6, int aDuration, int aEUt); /** * Adds a Centrifuge Recipe @@ -71,12 +71,12 @@ public interface IGT_RecipeAdder { * @param aDuration must be > 0 */ boolean addCentrifugeRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, FluidStack aFluidOutput, - ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, ItemStack aOutput4, ItemStack aOutput5, - ItemStack aOutput6, int[] aChances, int aDuration, int aEUt); + ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, ItemStack aOutput4, ItemStack aOutput5, + ItemStack aOutput6, int[] aChances, int aDuration, int aEUt); boolean addCentrifugeRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, FluidStack aFluidOutput, - ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, ItemStack aOutput4, ItemStack aOutput5, - ItemStack aOutput6, int[] aChances, int aDuration, int aEUt, boolean aCleanroom); + ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, ItemStack aOutput4, ItemStack aOutput5, + ItemStack aOutput6, int[] aChances, int aDuration, int aEUt, boolean aCleanroom); /** * @param aInput1 must be != null @@ -98,7 +98,7 @@ public interface IGT_RecipeAdder { * @param aEUt should be > 0 */ boolean addElectrolyzerRecipe(ItemStack aInput1, int aInput2, ItemStack aOutput1, ItemStack aOutput2, - ItemStack aOutput3, ItemStack aOutput4, ItemStack aOutput5, ItemStack aOutput6, int aDuration, int aEUt); + ItemStack aOutput3, ItemStack aOutput4, ItemStack aOutput5, ItemStack aOutput6, int aDuration, int aEUt); /** * Adds a Electrolyzer Recipe @@ -112,8 +112,8 @@ public interface IGT_RecipeAdder { * @param aEUt should be > 0 */ boolean addElectrolyzerRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, FluidStack aFluidOutput, - ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, ItemStack aOutput4, ItemStack aOutput5, - ItemStack aOutput6, int[] aChances, int aDuration, int aEUt); + ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, ItemStack aOutput4, ItemStack aOutput5, + ItemStack aOutput6, int[] aChances, int aDuration, int aEUt); /** * Adds a Chemical Recipe @@ -136,7 +136,7 @@ public interface IGT_RecipeAdder { * @param aDuration must be > 0 */ boolean addChemicalRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, FluidStack aFluidOutput, - ItemStack aOutput, int aDuration); + ItemStack aOutput, int aDuration); /** * Adds a Chemical Recipe Only use this when the recipe conflicts in MultiBlock! @@ -148,7 +148,7 @@ public interface IGT_RecipeAdder { * @param aDuration must be > 0 */ boolean addChemicalRecipeForBasicMachineOnly(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, - FluidStack aFluidOutput, ItemStack aOutput, ItemStack aOutput2, int aDuration, int aEUtick); + FluidStack aFluidOutput, ItemStack aOutput, ItemStack aOutput2, int aDuration, int aEUtick); /** * Adds a Chemical Recipe @@ -160,7 +160,7 @@ public interface IGT_RecipeAdder { * @param aDuration must be > 0 */ boolean addChemicalRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, FluidStack aFluidOutput, - ItemStack aOutput, ItemStack aOutput2, int aDuration); + ItemStack aOutput, ItemStack aOutput2, int aDuration); /** * Adds Recipes for creating a radically polymerized polymer from a base Material (for example Ethylene -> @@ -182,10 +182,10 @@ public interface IGT_RecipeAdder { * @param aEUtick must be > 0 */ boolean addChemicalRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, FluidStack aFluidOutput, - ItemStack aOutput, int aDuration, int aEUtick); + ItemStack aOutput, int aDuration, int aEUtick); boolean addChemicalRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, FluidStack aFluidOutput, - ItemStack aOutput, ItemStack aOutput2, int aDuration, int aEUtick, boolean aCleanroom); + ItemStack aOutput, ItemStack aOutput2, int aDuration, int aEUtick, boolean aCleanroom); /** * Adds a Chemical Recipe @@ -198,7 +198,7 @@ public interface IGT_RecipeAdder { * @param aEUtick must be > 0 */ boolean addChemicalRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, FluidStack aFluidOutput, - ItemStack aOutput, ItemStack aOutput2, int aDuration, int aEUtick); + ItemStack aOutput, ItemStack aOutput2, int aDuration, int aEUtick); /** * Adds a Chemical Recipe that only exists in the Large Chemical Reactor @@ -214,7 +214,7 @@ public interface IGT_RecipeAdder { * */ boolean addMultiblockChemicalRecipe(ItemStack[] aInputs, FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs, - ItemStack[] aOutputs, int aDuration, int aEUtick); + ItemStack[] aOutputs, int aDuration, int aEUtick); /** * Adds a Blast Furnace Recipe @@ -229,7 +229,7 @@ public interface IGT_RecipeAdder { */ @Deprecated boolean addBlastRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, ItemStack aOutput2, int aDuration, - int aEUt, int aLevel); + int aEUt, int aLevel); /** * Adds a Blast Furnace Recipe @@ -243,11 +243,11 @@ public interface IGT_RecipeAdder { * @param aLevel should be > 0 is the minimum Heat Level needed for this Recipe */ boolean addBlastRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, FluidStack aFluidOutput, - ItemStack aOutput1, ItemStack aOutput2, int aDuration, int aEUt, int aLevel); + ItemStack aOutput1, ItemStack aOutput2, int aDuration, int aEUt, int aLevel); boolean addBlastRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aInput3, ItemStack aInput4, - FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, - ItemStack aOutput4, int aDuration, int aEUt, int aLevel); + FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, + ItemStack aOutput4, int aDuration, int aEUt, int aLevel); /** * Adds a Plasma Forge Recipe @@ -261,10 +261,10 @@ public interface IGT_RecipeAdder { * @param coil_heat_level Should be > 0. Heat of the coils used. */ boolean addPlasmaForgeRecipe(ItemStack[] ItemInputArray, FluidStack[] FluidInputArray, ItemStack[] OutputItemArray, - FluidStack[] FluidOutputArray, int aDuration, int aEUt, int coil_heat_level); + FluidStack[] FluidOutputArray, int aDuration, int aEUt, int coil_heat_level); boolean addPrimitiveBlastRecipe(ItemStack aInput1, ItemStack aInput2, int aCoalAmount, ItemStack aOutput1, - ItemStack aOutput2, int aDuration); + ItemStack aOutput2, int aDuration); /** * Adds a Canning Machine Recipe @@ -275,7 +275,7 @@ public interface IGT_RecipeAdder { * @param aEUt should be > 0, 1 EU/t is standard. */ boolean addCannerRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, ItemStack aOutput2, int aDuration, - int aEUt); + int aEUt); /** * Adds an Alloy Smelter Recipe @@ -289,7 +289,7 @@ public interface IGT_RecipeAdder { boolean addAlloySmelterRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, int aDuration, int aEUt); boolean addAlloySmelterRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, int aDuration, int aEUt, - boolean hidden); + boolean hidden); /** * Adds a CNC-Machine Recipe @@ -322,7 +322,7 @@ public interface IGT_RecipeAdder { * */ boolean addAssemblerRecipe(ItemStack[] aInputs, FluidStack aFluidInput, ItemStack aOutput1, int aDuration, - int aEUt); + int aEUt); /** * Adds an Assembler Recipe @@ -333,19 +333,19 @@ public interface IGT_RecipeAdder { * @param aEUt should be > 0 */ boolean addAssemblerRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, ItemStack aOutput1, - int aDuration, int aEUt); + int aDuration, int aEUt); boolean addAssemblerRecipe(ItemStack aInput1, Object aOreDict, int aAmount, FluidStack aFluidInput, - ItemStack aOutput1, int aDuration, int aEUt); + ItemStack aOutput1, int aDuration, int aEUt); boolean addAssemblerRecipe(ItemStack[] aInputs, Object aOreDict, int aAmount, FluidStack aFluidInput, - ItemStack aOutput1, int aDuration, int aEUt); + ItemStack aOutput1, int aDuration, int aEUt); boolean addAssemblerRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, ItemStack aOutput1, - int aDuration, int aEUt, boolean aCleanroom); + int aDuration, int aEUt, boolean aCleanroom); boolean addAssemblerRecipe(ItemStack[] aInputs, FluidStack aFluidInput, ItemStack aOutput1, int aDuration, int aEUt, - boolean aCleanroom); + boolean aCleanroom); /** * Adds an Circuit Assembler Recipe @@ -357,10 +357,10 @@ public interface IGT_RecipeAdder { * @param aEUt should be > 0 */ boolean addCircuitAssemblerRecipe(ItemStack[] aInputs, FluidStack aFluidInput, ItemStack aOutput, int aDuration, - int aEUt); + int aEUt); boolean addCircuitAssemblerRecipe(ItemStack[] aInputs, FluidStack aFluidInput, ItemStack aOutput, int aDuration, - int aEUt, boolean aCleanroom); + int aEUt, boolean aCleanroom); /** * Adds an Assemblyline Recipe @@ -372,7 +372,7 @@ public interface IGT_RecipeAdder { * @param aEUt should be > 0 */ boolean addAssemblylineRecipe(ItemStack aResearchItem, int aResearchTime, ItemStack[] aInputs, - FluidStack[] aFluidInputs, ItemStack aOutput1, int aDuration, int aEUt); + FluidStack[] aFluidInputs, ItemStack aOutput1, int aDuration, int aEUt); /** * Adds a Assemblyline Recipe @@ -381,7 +381,7 @@ public interface IGT_RecipeAdder { * {OreDict, amount} for oredict. */ boolean addAssemblylineRecipe(ItemStack aResearchItem, int aResearchTime, Object[] aInputs, - FluidStack[] aFluidInputs, ItemStack aOutput1, int aDuration, int aEUt); + FluidStack[] aFluidInputs, ItemStack aOutput1, int aDuration, int aEUt); /** * Adds a Forge Hammer Recipe @@ -395,7 +395,7 @@ public interface IGT_RecipeAdder { // Allows fluids as well as multiple items. boolean addForgeHammerRecipe(ItemStack[] ItemInputArray, FluidStack[] FluidInputArray, ItemStack[] ItemOutputArray, - FluidStack[] FluidOutputArray, int aDuration, int aEUt); + FluidStack[] FluidOutputArray, int aDuration, int aEUt); /** * Adds a Wiremill Recipe @@ -462,10 +462,10 @@ public interface IGT_RecipeAdder { * @return */ boolean addOreWasherRecipe(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, - FluidStack aFluidInput, int aDuration, int aEUt); + FluidStack aFluidInput, int aDuration, int aEUt); boolean addOreWasherRecipe(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, - FluidStack aFluidInput, int[] aChances, int aDuration, int aEUt); + FluidStack aFluidInput, int[] aChances, int aDuration, int aEUt); /** * Adds an Implosion Compressor Recipe @@ -488,7 +488,7 @@ public interface IGT_RecipeAdder { * @param aOutput4 can be null */ boolean addGrinderRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, ItemStack aOutput2, - ItemStack aOutput3, ItemStack aOutput4); + ItemStack aOutput3, ItemStack aOutput4); /** * Adds a Distillation Tower Recipe @@ -498,25 +498,25 @@ public interface IGT_RecipeAdder { * @param aOutput2 can be null */ boolean addDistillationTowerRecipe(FluidStack aInput, FluidStack[] aOutputs, ItemStack aOutput2, int aDuration, - int aEUt); + int aEUt); boolean addDistillationTowerRecipe(FluidStack aInput, ItemStack[] aCircuit, FluidStack[] aOutputs, - ItemStack aOutput2, int aDuration, int aEUt); + ItemStack aOutput2, int aDuration, int aEUt); boolean addSimpleArcFurnaceRecipe(ItemStack aInput, FluidStack aFluidInput, ItemStack[] aOutputs, int[] aChances, - int aDuration, int aEUt); + int aDuration, int aEUt); boolean addPlasmaArcFurnaceRecipe(ItemStack aInput, FluidStack aFluidInput, ItemStack[] aOutputs, int[] aChances, - int aDuration, int aEUt); + int aDuration, int aEUt); boolean addPlasmaArcFurnaceRecipe(ItemStack aInput, FluidStack aFluidInput, ItemStack[] aOutputs, - FluidStack aFluidPutput, int[] aChances, int aDuration, int aEUt); + FluidStack aFluidPutput, int[] aChances, int aDuration, int aEUt); /** * Adds a Distillation Tower Recipe */ boolean addDistillationRecipe(ItemStack aInput1, int aInput2, ItemStack aOutput1, ItemStack aOutput2, - ItemStack aOutput3, ItemStack aOutput4, int aDuration, int aEUt); + ItemStack aOutput3, ItemStack aOutput4, int aDuration, int aEUt); /** * Adds a Lathe Machine Recipe @@ -527,7 +527,7 @@ public interface IGT_RecipeAdder { * Adds a Cutter Recipe */ boolean addCutterRecipe(ItemStack aInput, FluidStack aLubricant, ItemStack aOutput1, ItemStack aOutput2, - int aDuration, int aEUt); + int aDuration, int aEUt); /** * Adds Cutter Recipes with default Lubricants @@ -535,13 +535,13 @@ public interface IGT_RecipeAdder { boolean addCutterRecipe(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2, int aDuration, int aEUt); boolean addCutterRecipe(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2, int aDuration, int aEUt, - boolean aCleanroom); + boolean aCleanroom); boolean addCutterRecipe(ItemStack aInput, ItemStack aCircuit, ItemStack aOutput1, ItemStack aOutput2, int aDuration, - int aEUt); + int aEUt); boolean addCutterRecipe(ItemStack aInput, ItemStack aCircuit, ItemStack aOutput1, ItemStack aOutput2, int aDuration, - int aEUt, boolean aCleanroom); + int aEUt, boolean aCleanroom); boolean addCutterRecipe(ItemStack[] aInputs, ItemStack[] aOutputs, int aDuration, int aEUt, int aSpecial); @@ -560,16 +560,16 @@ public interface IGT_RecipeAdder { * @return */ boolean addThermalCentrifugeRecipe(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, - int aDuration, int aEUt); + int aDuration, int aEUt); boolean addThermalCentrifugeRecipe(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, - int[] aChances, int aDuration, int aEUt); + int[] aChances, int aDuration, int aEUt); /** * Adds an Unboxing Recipe */ boolean addUnboxingRecipe(ItemStack aFullBox, ItemStack aContainedItem, ItemStack aEmptyBox, int aDuration, - int aEUt); + int aEUt); /** * Adds a Vacuum Freezer Recipe @@ -585,7 +585,7 @@ public interface IGT_RecipeAdder { boolean addVacuumFreezerRecipe(FluidStack aInput1, FluidStack aOutput1, int aDuration, int aEUt); boolean addVacuumFreezerRecipe(ItemStack[] aItemInput, FluidStack[] aFluidInput, ItemStack[] aItemOutput, - FluidStack[] aFluidOutput, int aDuration, int aEUt); + FluidStack[] aFluidOutput, int aDuration, int aEUt); /** * Adds a Fuel for My Generators @@ -610,10 +610,10 @@ public interface IGT_RecipeAdder { boolean addBrewingRecipe(ItemStack aIngredient, Fluid aInput, Fluid aOutput, boolean aHidden); boolean addBrewingRecipe(ItemStack aIngredient, Fluid aInput, Fluid aOutput, int aDuration, int aEUt, - boolean aHidden); + boolean aHidden); boolean addBrewingRecipeCustom(ItemStack aIngredient, FluidStack aInput, FluidStack aOutput, int aDuration, - int aEUt, boolean aHidden); + int aEUt, boolean aHidden); /** * Adds a Recipe for the Fermenter @@ -633,16 +633,16 @@ public interface IGT_RecipeAdder { * Adds a Recipe for the Distillery */ boolean addDistilleryRecipe(ItemStack aCircuit, FluidStack aInput, FluidStack aOutput, ItemStack aSolidOutput, - int aDuration, int aEUt, boolean aHidden); + int aDuration, int aEUt, boolean aHidden); boolean addDistilleryRecipe(ItemStack aCircuit, FluidStack aInput, FluidStack aOutput, int aDuration, int aEUt, - boolean aHidden); + boolean aHidden); boolean addDistilleryRecipe(int circuitConfig, FluidStack aInput, FluidStack aOutput, ItemStack aSolidOutput, - int aDuration, int aEUt, boolean aHidden); + int aDuration, int aEUt, boolean aHidden); boolean addDistilleryRecipe(int aCircuit, FluidStack aInput, FluidStack aOutput, int aDuration, int aEUt, - boolean aHidden); + boolean aHidden); /** * Adds a Recipe for the Fluid Solidifier @@ -653,26 +653,26 @@ public interface IGT_RecipeAdder { * Adds a Recipe for the Fluid Solidifier */ boolean addFluidSolidifierRecipe(final ItemStack[] itemInputs, final FluidStack[] fluidInputs, - final ItemStack[] itemOutputs, final FluidStack[] fluidOutputs, final int EUPerTick, - final int aDurationInTicks); + final ItemStack[] itemOutputs, final FluidStack[] fluidOutputs, final int EUPerTick, + final int aDurationInTicks); /** * Adds a Recipe for Fluid Smelting */ boolean addFluidSmelterRecipe(ItemStack aInput, ItemStack aRemains, FluidStack aOutput, int aChance, int aDuration, - int aEUt); + int aEUt); /** * Adds a Recipe for Fluid Smelting */ boolean addFluidSmelterRecipe(ItemStack aInput, ItemStack aRemains, FluidStack aOutput, int aChance, int aDuration, - int aEUt, boolean hidden); + int aEUt, boolean hidden); /** * Adds a Recipe for Fluid Extraction */ boolean addFluidExtractionRecipe(ItemStack aInput, ItemStack aRemains, FluidStack aOutput, int aChance, - int aDuration, int aEUt); + int aDuration, int aEUt); /** * Adds a Recipe for the Fluid Canner @@ -680,22 +680,22 @@ public interface IGT_RecipeAdder { boolean addFluidCannerRecipe(ItemStack aInput, ItemStack aOutput, FluidStack aFluidInput, FluidStack aFluidOutput); boolean addFluidCannerRecipe(ItemStack aInput, ItemStack aOutput, FluidStack aFluidInput, FluidStack aFluidOutput, - int aDuration, int aEUt); + int aDuration, int aEUt); /** * Adds a Recipe for the Chemical Bath */ boolean addChemicalBathRecipe(ItemStack aInput, FluidStack aBathingFluid, ItemStack aOutput1, ItemStack aOutput2, - ItemStack aOutput3, int[] aChances, int aDuration, int aEUt); + ItemStack aOutput3, int[] aChances, int aDuration, int aEUt); boolean addChemicalBathRecipe(ItemStack aInput, FluidStack aBathingFluid, FluidStack aFluidOutput, - ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, int[] aChances, int aDuration, int aEUt); + ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, int[] aChances, int aDuration, int aEUt); /** * Adds a Recipe for the Electromagnetic Separator */ boolean addElectromagneticSeparatorRecipe(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2, - ItemStack aOutput3, int[] aChances, int aDuration, int aEUt); + ItemStack aOutput3, int[] aChances, int aDuration, int aEUt); /** * Adds a Recipe for the Extractor @@ -706,72 +706,72 @@ public interface IGT_RecipeAdder { * Adds a Recipe for the Printer */ boolean addPrinterRecipe(ItemStack aInput, FluidStack aFluid, ItemStack aSpecialSlot, ItemStack aOutput, - int aDuration, int aEUt); + int aDuration, int aEUt); /** * Adds a Recipe for the Autoclave */ boolean addAutoclaveRecipe(ItemStack aInput, FluidStack aFluid, ItemStack aOutput, int aChance, int aDuration, - int aEUt); + int aEUt); boolean addAutoclaveRecipe(ItemStack aInput, FluidStack aFluid, ItemStack aOutput, int aChance, int aDuration, - int aEUt, boolean aCleanroom); + int aEUt, boolean aCleanroom); boolean addAutoclaveRecipe(ItemStack aInput, ItemStack aCircuit, FluidStack aFluid, ItemStack aOutput, int aChance, - int aDuration, int aEUt, boolean aCleanroom); + int aDuration, int aEUt, boolean aCleanroom); boolean addAutoclaveRecipe(ItemStack aInput, ItemStack aCircuit, FluidStack aFluidIn, FluidStack aFluidOut, - ItemStack aOutput, int aChance, int aDuration, int aEUt, boolean aCleanroom); + ItemStack aOutput, int aChance, int aDuration, int aEUt, boolean aCleanroom); boolean addAutoclaveSpaceRecipe(ItemStack aInput, FluidStack aFluid, ItemStack aOutput, int aChance, int aDuration, - int aEUt, boolean aCleanroom); + int aEUt, boolean aCleanroom); boolean addAutoclaveSpaceRecipe(ItemStack aInput, ItemStack aCircuit, FluidStack aFluid, ItemStack aOutput, - int aChance, int aDuration, int aEUt, boolean aCleanroom); + int aChance, int aDuration, int aEUt, boolean aCleanroom); boolean addAutoclave4Recipe(ItemStack aInput, ItemStack aCircuit, FluidStack aFluidIn, FluidStack aFluidOut, - ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUt, boolean aCleanroom); + ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUt, boolean aCleanroom); /** * Adds a Recipe for the Mixer */ @Deprecated boolean addMixerRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aInput3, ItemStack aInput4, - FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput, int aDuration, int aEUt); + FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput, int aDuration, int aEUt); @Deprecated boolean addMixerRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aInput3, ItemStack aInput4, - ItemStack aInput5, ItemStack aInput6, FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput, - int aDuration, int aEUt); + ItemStack aInput5, ItemStack aInput6, FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput, + int aDuration, int aEUt); @Deprecated boolean addMixerRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aInput3, ItemStack aInput4, - ItemStack aInput5, ItemStack aInput6, ItemStack aInput7, ItemStack aInput8, ItemStack aInput9, - FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput, int aDuration, int aEUt); + ItemStack aInput5, ItemStack aInput6, ItemStack aInput7, ItemStack aInput8, ItemStack aInput9, + FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput, int aDuration, int aEUt); @Deprecated boolean addMixerRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aInput3, ItemStack aInput4, - ItemStack aInput5, ItemStack aInput6, ItemStack aInput7, ItemStack aInput8, ItemStack aInput9, - FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, - ItemStack aOutput4, int aDuration, int aEUt); + ItemStack aInput5, ItemStack aInput6, ItemStack aInput7, ItemStack aInput8, ItemStack aInput9, + FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, + ItemStack aOutput4, int aDuration, int aEUt); // Use me only from now on! boolean addMixerRecipe(ItemStack[] ItemInputArray, FluidStack[] FluidInputArray, ItemStack[] ItemOutputArray, - FluidStack[] FluidOutputArray, int aDuration, int aEUt); + FluidStack[] FluidOutputArray, int aDuration, int aEUt); /** * Adds a Recipe for the Laser Engraver. */ @Deprecated boolean addLaserEngraverRecipe(ItemStack aItemToEngrave, ItemStack aLens, ItemStack aEngravedItem, int aDuration, - int aEUt); + int aEUt); /** * Adds a Recipe for the Laser Engraver. */ @Deprecated boolean addLaserEngraverRecipe(ItemStack aItemToEngrave, ItemStack aLens, ItemStack aEngravedItem, int aDuration, - int aEUt, boolean aCleanroom); + int aEUt, boolean aCleanroom); /** * Adds a Generalised Laser Engraver Recipe. @@ -785,13 +785,13 @@ public interface IGT_RecipeAdder { * @param aCleanroom Boolean for usage of cleanroom in recipe. */ boolean addLaserEngraverRecipe(ItemStack[] ItemInputArray, FluidStack[] FluidInputArray, - ItemStack[] OutputItemArray, FluidStack[] FluidOutputArray, int aDuration, int aEUt, boolean aCleanroom); + ItemStack[] OutputItemArray, FluidStack[] FluidOutputArray, int aDuration, int aEUt, boolean aCleanroom); /** * Adds a Recipe for the Forming Press */ boolean addFormingPressRecipe(ItemStack aItemToImprint, ItemStack aForm, ItemStack aImprintedItem, int aDuration, - int aEUt); + int aEUt); // Allows more than 2 inputs and multiple outputs boolean addFormingPressRecipe(ItemStack[] ItemInputArray, ItemStack[] OutputItemArray, int aDuration, int aEUt); @@ -814,7 +814,7 @@ public interface IGT_RecipeAdder { * @param aCleanroom Boolean for usage of cleanroom in recipe. */ boolean addSifterRecipe(ItemStack[] ItemInputArray, FluidStack[] FluidInputArray, ItemStack[] OutputItemArray, - FluidStack[] FluidOutputArray, int[] aChances, int aDuration, int aEUt, boolean aCleanroom); + FluidStack[] FluidOutputArray, int[] aChances, int aDuration, int aEUt, boolean aCleanroom); /** * Adds a Recipe for the Arc Furnace. (up to 4 Outputs) @@ -825,7 +825,7 @@ public interface IGT_RecipeAdder { * Adds a Recipe for the Arc Furnace. (up to 4 Outputs) */ boolean addArcFurnaceRecipe(ItemStack aInput, ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUt, - boolean hidden); + boolean hidden); /** * Adds a Recipe for the GT Pulveriser. (up to 4 Outputs) @@ -836,7 +836,7 @@ public interface IGT_RecipeAdder { * Adds a Recipe for the GT Pulveriser. (up to 4 Outputs) */ boolean addPulveriserRecipe(ItemStack aInput, ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUt, - boolean hidden); + boolean hidden); /** * Adds a Distillation Tower Recipe Every Fluid also gets separate distillation recipes @@ -846,10 +846,10 @@ public interface IGT_RecipeAdder { * @param aOutput2 can be null */ boolean addUniversalDistillationRecipe(FluidStack aInput, FluidStack[] aOutputs, ItemStack aOutput2, int aDuration, - int aEUt); + int aEUt); boolean addUniversalDistillationRecipewithCircuit(FluidStack aInput, ItemStack[] aCircuit, FluidStack[] aOutputs, - ItemStack aOutput2, int aDuration, int aEUt); + ItemStack aOutput2, int aDuration, int aEUt); /** * Adds Pyrolyse Recipe @@ -862,7 +862,7 @@ public interface IGT_RecipeAdder { * @param aEUt */ boolean addPyrolyseRecipe(ItemStack aInput, FluidStack aFluidInput, int intCircuit, ItemStack aOutput, - FluidStack aFluidOutput, int aDuration, int aEUt); + FluidStack aFluidOutput, int aDuration, int aEUt); /** * Adds Oil Cracking Recipe @@ -886,7 +886,7 @@ public interface IGT_RecipeAdder { * @param aEUt */ boolean addCrackingRecipe(int circuitConfig, FluidStack aInput, FluidStack aInput2, FluidStack aOutput, - int aDuration, int aEUt); + int aDuration, int aEUt); /** * Adds a Sound to the Sonictron9001 you should NOT call this in the preInit-Phase! @@ -898,7 +898,7 @@ public interface IGT_RecipeAdder { boolean addSonictronSound(ItemStack aItemStack, String aSoundName); boolean addChemicalBathRecipe(ItemStack aInput, FluidStack aBathingFluid, ItemStack aOutput1, ItemStack aOutput2, - ItemStack aOutput3, FluidStack aFluidOutput, int[] aChances, int aDuration, int aEUt); + ItemStack aOutput3, FluidStack aFluidOutput, int[] aChances, int aDuration, int aEUt); /** * Add a Nano Forge Recipe. The Nano Forge's main use is to make nanites/nanorobots. Tier 1 Nano Forge - Can make @@ -916,7 +916,7 @@ public interface IGT_RecipeAdder { * */ boolean addNanoForgeRecipe(ItemStack[] aInputs, FluidStack[] aFluidInputs, ItemStack[] aOutputs, - FluidStack[] aFluidOutputs, int[] aChances, int aDuration, int aEUt, int aSpecialValue); + FluidStack[] aFluidOutputs, int[] aChances, int aDuration, int aEUt, int aSpecialValue); /** * Add a Board Manufacturer Recipe. The Board Manufacturer's main use is to make the circuit boards needed to make @@ -930,7 +930,7 @@ public interface IGT_RecipeAdder { * @param aSpecialValue = defines the tier of the board manufacturer required. */ boolean addPCBFactoryRecipe(ItemStack[] aInputs, FluidStack[] aFluidInputs, ItemStack[] aOutputs, int aDuration, - int aEUt, int aSpecialValue); + int aEUt, int aSpecialValue); /** * Add a breeder cell. @@ -944,7 +944,7 @@ public interface IGT_RecipeAdder { * @return added fake recipe */ GT_Recipe addIC2ReactorBreederCell(ItemStack input, ItemStack output, boolean reflector, int heatStep, - int heatMultiplier, int requiredPulses); + int heatMultiplier, int requiredPulses); /** * Add a fuel cell. @@ -960,7 +960,7 @@ public interface IGT_RecipeAdder { * @return added fake recipe */ GT_Recipe addIC2ReactorFuelCell(ItemStack input, ItemStack output, boolean aMox, float aHeat, float aEnergy, - int aCells); + int aCells); GT_RecipeBuilder stdBuilder(); } diff --git a/src/main/java/gregtech/api/interfaces/internal/IThaumcraftCompat.java b/src/main/java/gregtech/api/interfaces/internal/IThaumcraftCompat.java index 1178d87298..5d99f83689 100644 --- a/src/main/java/gregtech/api/interfaces/internal/IThaumcraftCompat.java +++ b/src/main/java/gregtech/api/interfaces/internal/IThaumcraftCompat.java @@ -12,21 +12,19 @@ import gregtech.api.enums.TC_Aspects.TC_AspectStack; public interface IThaumcraftCompat { int RESEARCH_TYPE_NORMAL = 0, RESEARCH_TYPE_SECONDARY = 1, RESEARCH_TYPE_FREE = 2, RESEARCH_TYPE_HIDDEN = 4, - RESEARCH_TYPE_VIRTUAL = 8, RESEARCH_TYPE_ROUND = 16, RESEARCH_TYPE_SPECIAL = 32, - RESEARCH_TYPE_AUTOUNLOCK = 64; + RESEARCH_TYPE_VIRTUAL = 8, RESEARCH_TYPE_ROUND = 16, RESEARCH_TYPE_SPECIAL = 32, RESEARCH_TYPE_AUTOUNLOCK = 64; /** * The Research Keys of GT */ String IRON_TO_STEEL = "GT_IRON_TO_STEEL", FILL_WATER_BUCKET = "GT_FILL_WATER_BUCKET", - WOOD_TO_CHARCOAL = "GT_WOOD_TO_CHARCOAL", TRANSZINC = "GT_TRANSZINC", TRANSNICKEL = "GT_TRANSNICKEL", - TRANSCOBALT = "GT_TRANSCOBALT", TRANSBISMUTH = "GT_TRANSBISMUTH", TRANSANTIMONY = "GT_TRANSANTIMONY", - TRANSCUPRONICKEL = "GT_TRANSCUPRONICKEL", TRANSBATTERYALLOY = "GT_TRANSBATTERYALLOY", - TRANSSOLDERINGALLOY = "GT_TRANSSOLDERINGALLOY", TRANSBRASS = "GT_TRANSBRASS", - TRANSBRONZE = "GT_TRANSBRONZE", TRANSINVAR = "GT_TRANSINVAR", TRANSELECTRUM = "GT_TRANSELECTRUM", - TRANSALUMINIUM = "GT_TRANSALUMINIUM", CRYSTALLISATION = "GT_CRYSTALLISATION", - ADVANCEDENTROPICPROCESSING = "GT_ADVANCEDENTROPICPROCESSING", // unused - ADVANCEDMETALLURGY = "GT_ADVANCEDMETALLURGY"; + WOOD_TO_CHARCOAL = "GT_WOOD_TO_CHARCOAL", TRANSZINC = "GT_TRANSZINC", TRANSNICKEL = "GT_TRANSNICKEL", + TRANSCOBALT = "GT_TRANSCOBALT", TRANSBISMUTH = "GT_TRANSBISMUTH", TRANSANTIMONY = "GT_TRANSANTIMONY", + TRANSCUPRONICKEL = "GT_TRANSCUPRONICKEL", TRANSBATTERYALLOY = "GT_TRANSBATTERYALLOY", + TRANSSOLDERINGALLOY = "GT_TRANSSOLDERINGALLOY", TRANSBRASS = "GT_TRANSBRASS", TRANSBRONZE = "GT_TRANSBRONZE", + TRANSINVAR = "GT_TRANSINVAR", TRANSELECTRUM = "GT_TRANSELECTRUM", TRANSALUMINIUM = "GT_TRANSALUMINIUM", + CRYSTALLISATION = "GT_CRYSTALLISATION", ADVANCEDENTROPICPROCESSING = "GT_ADVANCEDENTROPICPROCESSING", // unused + ADVANCEDMETALLURGY = "GT_ADVANCEDMETALLURGY"; boolean registerPortholeBlacklistedBlock(Block aBlock); @@ -37,12 +35,12 @@ public interface IThaumcraftCompat { Object addCrucibleRecipe(String aResearch, Object aInput, ItemStack aOutput, List aAspects); Object addInfusionRecipe(String aResearch, ItemStack aMainInput, ItemStack[] aSideInputs, ItemStack aOutput, - int aInstability, List aAspects); + int aInstability, List aAspects); Object addInfusionEnchantmentRecipe(String aResearch, Enchantment aEnchantment, int aInstability, - List aAspects, ItemStack[] aSideInputs); + List aAspects, ItemStack[] aSideInputs); Object addResearch(String aResearch, String aName, String aText, String[] aParentResearches, String aCategory, - ItemStack aIcon, int aComplexity, int aType, int aX, int aY, List aAspects, - ItemStack[] aResearchTriggers, Object[] aPages); + ItemStack aIcon, int aComplexity, int aType, int aX, int aY, List aAspects, + ItemStack[] aResearchTriggers, Object[] aPages); } diff --git a/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntity.java b/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntity.java index 67dc9927cd..a24e05f1a2 100644 --- a/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntity.java +++ b/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntity.java @@ -42,7 +42,7 @@ import gregtech.common.power.Power; * Don't implement this yourself and expect it to work. Extend @MetaTileEntity itself. */ public interface IMetaTileEntity extends ISidedInventory, IFluidTank, IFluidHandler, IGearEnergyTileEntity, - IMachineBlockUpdateable, IGregtechWailaProvider, IGetGUITextureSet { + IMachineBlockUpdateable, IGregtechWailaProvider, IGetGUITextureSet { /** * This determines the BaseMetaTileEntity belonging to this MetaTileEntity by using the Meta ID of the Block itself. @@ -146,7 +146,7 @@ public interface IMetaTileEntity extends ISidedInventory, IFluidTank, IFluidHand * When a Player rightclicks the Facing with a soldering iron. */ boolean onSolderingToolRightClick(byte aSide, byte aWrenchingSide, EntityPlayer aPlayer, float aX, float aY, - float aZ); + float aZ); /** * Called right before this Machine explodes @@ -266,7 +266,7 @@ public interface IMetaTileEntity extends ISidedInventory, IFluidTank, IFluidHand * @return */ boolean onRightclick(IGregTechTileEntity aBaseMetaTileEntity, EntityPlayer aPlayer, byte aSide, float aX, float aY, - float aZ); + float aZ); /** * a Player leftclicks the Machine Sneaky leftclicks are getting passed to this unlike with the rightclicks. @@ -342,7 +342,7 @@ public interface IMetaTileEntity extends ISidedInventory, IFluidTank, IFluidHand * returns the DebugLog */ ArrayList getSpecialDebugInfo(IGregTechTileEntity aBaseMetaTileEntity, EntityPlayer aPlayer, int aLogLevel, - ArrayList aList); + ArrayList aList); /** * get a small Description @@ -374,7 +374,7 @@ public interface IMetaTileEntity extends ISidedInventory, IFluidTank, IFluidHand * mBaseMetaTileEntity.mRedstone!!!) */ ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone); + boolean aActive, boolean aRedstone); /** * The Textures used for the Item rendering. Return null if you want the regular 3D Block Rendering. @@ -437,7 +437,7 @@ public interface IMetaTileEntity extends ISidedInventory, IFluidTank, IFluidHand boolean allowGeneralRedstoneOutput(); void addCollisionBoxesToList(World aWorld, int aX, int aY, int aZ, AxisAlignedBB inputAABB, - List outputAABB, Entity collider); + List outputAABB, Entity collider); AxisAlignedBB getCollisionBoundingBoxFromPool(World aWorld, int aX, int aY, int aZ); diff --git a/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntityCable.java b/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntityCable.java index 62df2e713f..3f7bc73383 100644 --- a/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntityCable.java +++ b/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntityCable.java @@ -9,7 +9,7 @@ public interface IMetaTileEntityCable extends IMetaTileEntity { @Deprecated long transferElectricity(byte aSide, long aVoltage, long aAmperage, - ArrayList aAlreadyPassedTileEntityList); + ArrayList aAlreadyPassedTileEntityList); default long transferElectricity(byte aSide, long aVoltage, long aAmperage, HashSet aAlreadyPassedSet) { return transferElectricity(aSide, aVoltage, aAmperage, new ArrayList<>(aAlreadyPassedSet)); diff --git a/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntityItemPipe.java b/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntityItemPipe.java index bc80eea1ad..76d3f56e74 100644 --- a/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntityItemPipe.java +++ b/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntityItemPipe.java @@ -53,7 +53,7 @@ public interface IMetaTileEntityItemPipe extends IMetaTileEntity { * @return a List of connected Item Pipes */ public static Map scanPipes(IMetaTileEntityItemPipe aMetaTileEntity, - Map aMap, long aStep, boolean aSuckItems, boolean aIgnoreCapacity) { + Map aMap, long aStep, boolean aSuckItems, boolean aIgnoreCapacity) { aStep += aMetaTileEntity.getStepSize(); if (aIgnoreCapacity || aMetaTileEntity.pipeCapacityCheck()) if (aMap.get(aMetaTileEntity) == null || aMap.get(aMetaTileEntity) > aStep) { @@ -62,14 +62,13 @@ public interface IMetaTileEntityItemPipe extends IMetaTileEntity { byte oppositeSide; for (byte side : ALL_VALID_SIDES) { if (aMetaTileEntity instanceof IConnectable - && !((IConnectable) aMetaTileEntity).isConnectedAtSide(side)) - continue; + && !((IConnectable) aMetaTileEntity).isConnectedAtSide(side)) continue; oppositeSide = GT_Utility.getOppositeSide(side); if (aSuckItems) { if (aBaseMetaTileEntity.getCoverInfoAtSide(side) - .letsItemsIn(-2)) { - final IGregTechTileEntity tItemPipe = aBaseMetaTileEntity.getIGregTechTileEntityAtSide( - side); + .letsItemsIn(-2)) { + final IGregTechTileEntity tItemPipe = aBaseMetaTileEntity + .getIGregTechTileEntityAtSide(side); if (aBaseMetaTileEntity.getColorization() >= 0) { final byte tColor = tItemPipe.getColorization(); if (tColor >= 0 && tColor != aBaseMetaTileEntity.getColorization()) { @@ -79,22 +78,22 @@ public interface IMetaTileEntityItemPipe extends IMetaTileEntity { if (tItemPipe instanceof BaseMetaPipeEntity) { final IMetaTileEntity tMetaTileEntity = tItemPipe.getMetaTileEntity(); if (tMetaTileEntity instanceof IMetaTileEntityItemPipe - && tItemPipe.getCoverInfoAtSide(oppositeSide) - .letsItemsOut(-2)) { + && tItemPipe.getCoverInfoAtSide(oppositeSide) + .letsItemsOut(-2)) { scanPipes( - (IMetaTileEntityItemPipe) tMetaTileEntity, - aMap, - aStep, - aSuckItems, - aIgnoreCapacity); + (IMetaTileEntityItemPipe) tMetaTileEntity, + aMap, + aStep, + aSuckItems, + aIgnoreCapacity); } } } } else { if (aBaseMetaTileEntity.getCoverInfoAtSide(side) - .letsItemsOut(-2)) { - final IGregTechTileEntity tItemPipe = aBaseMetaTileEntity.getIGregTechTileEntityAtSide( - side); + .letsItemsOut(-2)) { + final IGregTechTileEntity tItemPipe = aBaseMetaTileEntity + .getIGregTechTileEntityAtSide(side); if (tItemPipe != null) { if (aBaseMetaTileEntity.getColorization() >= 0) { final byte tColor = tItemPipe.getColorization(); @@ -105,14 +104,14 @@ public interface IMetaTileEntityItemPipe extends IMetaTileEntity { if (tItemPipe instanceof BaseMetaPipeEntity) { final IMetaTileEntity tMetaTileEntity = tItemPipe.getMetaTileEntity(); if (tMetaTileEntity instanceof IMetaTileEntityItemPipe - && tItemPipe.getCoverInfoAtSide(oppositeSide) - .letsItemsIn(-2)) { + && tItemPipe.getCoverInfoAtSide(oppositeSide) + .letsItemsIn(-2)) { scanPipes( - (IMetaTileEntityItemPipe) tMetaTileEntity, - aMap, - aStep, - aSuckItems, - aIgnoreCapacity); + (IMetaTileEntityItemPipe) tMetaTileEntity, + aMap, + aStep, + aSuckItems, + aIgnoreCapacity); } } } diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IColoredTileEntity.java b/src/main/java/gregtech/api/interfaces/tileentity/IColoredTileEntity.java index d79367d252..ec760dd346 100644 --- a/src/main/java/gregtech/api/interfaces/tileentity/IColoredTileEntity.java +++ b/src/main/java/gregtech/api/interfaces/tileentity/IColoredTileEntity.java @@ -21,7 +21,7 @@ public interface IColoredTileEntity { * @return Actual color shown on GUI */ default int getGUIColorization() { - return GT_Util.getRGBInt( - (getColorization() != -1 ? Dyes.get(getColorization()) : Dyes.MACHINE_METAL).getRGBA()); + return GT_Util + .getRGBInt((getColorization() != -1 ? Dyes.get(getColorization()) : Dyes.MACHINE_METAL).getRGBA()); } } diff --git a/src/main/java/gregtech/api/interfaces/tileentity/ICoverable.java b/src/main/java/gregtech/api/interfaces/tileentity/ICoverable.java index f23c5a64c9..d3186258ef 100644 --- a/src/main/java/gregtech/api/interfaces/tileentity/ICoverable.java +++ b/src/main/java/gregtech/api/interfaces/tileentity/ICoverable.java @@ -82,7 +82,7 @@ public interface ICoverable extends IRedstoneTileEntity, IHasInventory, IBasicEn * @param aPlayer the player who made the change */ default void receiveCoverData(byte aCoverSide, int aCoverID, ISerializableObject aCoverData, - EntityPlayerMP aPlayer) { + EntityPlayerMP aPlayer) { if (aCoverData instanceof ISerializableObject.LegacyCoverData) receiveCoverData(aCoverSide, aCoverID, ((ISerializableObject.LegacyCoverData) aCoverData).get()); } diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IEnergyConnected.java b/src/main/java/gregtech/api/interfaces/tileentity/IEnergyConnected.java index 1affdb0d74..14ead4e4ee 100644 --- a/src/main/java/gregtech/api/interfaces/tileentity/IEnergyConnected.java +++ b/src/main/java/gregtech/api/interfaces/tileentity/IEnergyConnected.java @@ -84,25 +84,20 @@ public interface IEnergyConnected extends IColoredTileEntity { final byte tColor = ((IEnergyConnected) tTileEntity).getColorization(); if (tColor >= 0 && tColor != aEmitter.getColorization()) continue; } - rUsedAmperes += ((IEnergyConnected) tTileEntity).injectEnergyUnits( - j, - aVoltage, - aAmperage - rUsedAmperes); + rUsedAmperes += ((IEnergyConnected) tTileEntity) + .injectEnergyUnits(j, aVoltage, aAmperage - rUsedAmperes); } else if (tTileEntity instanceof IEnergySink) { - if (((IEnergySink) tTileEntity).acceptsEnergyFrom( - (TileEntity) aEmitter, - ForgeDirection.getOrientation(j))) { + if (((IEnergySink) tTileEntity) + .acceptsEnergyFrom((TileEntity) aEmitter, ForgeDirection.getOrientation(j))) { while (aAmperage > rUsedAmperes && ((IEnergySink) tTileEntity).getDemandedEnergy() > 0 - && ((IEnergySink) tTileEntity).injectEnergy( - ForgeDirection.getOrientation(j), - aVoltage, - aVoltage) < aVoltage) + && ((IEnergySink) tTileEntity) + .injectEnergy(ForgeDirection.getOrientation(j), aVoltage, aVoltage) < aVoltage) rUsedAmperes++; } } else if (GregTech_API.mOutputRF && tTileEntity instanceof IEnergyReceiver) { final ForgeDirection tDirection = ForgeDirection.getOrientation(i) - .getOpposite(); + .getOpposite(); final int rfOut = GT_Utility.safeInt(aVoltage * GregTech_API.mEUtoRF / 100); if (((IEnergyReceiver) tTileEntity).receiveEnergy(tDirection, rfOut, true) == rfOut) { ((IEnergyReceiver) tTileEntity).receiveEnergy(tDirection, rfOut, false); diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IExperimentalEnergyTileEntity.java b/src/main/java/gregtech/api/interfaces/tileentity/IExperimentalEnergyTileEntity.java index 1f0c7f4b1c..aa1b9a11c6 100644 --- a/src/main/java/gregtech/api/interfaces/tileentity/IExperimentalEnergyTileEntity.java +++ b/src/main/java/gregtech/api/interfaces/tileentity/IExperimentalEnergyTileEntity.java @@ -75,7 +75,7 @@ public interface IExperimentalEnergyTileEntity extends IColoredTileEntity, IHasW * @return the amount of used secondary value. */ public static final long emitEnergyToNetwork(SubTag aEnergyType, long aPrimary, long aSecondary, - IExperimentalEnergyTileEntity aEmitter) { + IExperimentalEnergyTileEntity aEmitter) { long rUsedSecondary = 0; checkAvailabilities(); for (byte i = 0, j = 0; i < 6 && aSecondary > rUsedSecondary; i++) @@ -87,33 +87,24 @@ public interface IExperimentalEnergyTileEntity extends IColoredTileEntity, IHasW byte tColor = ((IExperimentalEnergyTileEntity) tTileEntity).getColorization(); if (tColor >= 0 && tColor != aEmitter.getColorization()) continue; } - rUsedSecondary += ((IExperimentalEnergyTileEntity) tTileEntity).injectEnergy( - aEnergyType, - j, - aPrimary, - aSecondary - rUsedSecondary); + rUsedSecondary += ((IExperimentalEnergyTileEntity) tTileEntity) + .injectEnergy(aEnergyType, j, aPrimary, aSecondary - rUsedSecondary); } else if (IC_ENERGY && aEnergyType == SubTag.ENERGY_ELECTRICITY - && tTileEntity instanceof IEnergySink) { - if (((IEnergySink) tTileEntity).acceptsEnergyFrom( - (TileEntity) aEmitter, - ForgeDirection.getOrientation(j))) { - while (aSecondary > rUsedSecondary - && ((IEnergySink) tTileEntity).getDemandedEnergy() > 0 - && ((IEnergySink) tTileEntity).injectEnergy( - ForgeDirection.getOrientation(j), - aPrimary, - aPrimary) < aPrimary) - rUsedSecondary++; - } - } else - if (RF_ENERGY && aEnergyType == SubTag.ENERGY_REDSTONE_FLUX - && tTileEntity instanceof IEnergyReceiver - && ((IEnergyReceiver) tTileEntity).canConnectEnergy(ForgeDirection.getOrientation(j))) { - rUsedSecondary += ((IEnergyReceiver) tTileEntity).receiveEnergy( - ForgeDirection.getOrientation(j), - (int) aSecondary, - false); - } + && tTileEntity instanceof IEnergySink) { + if (((IEnergySink) tTileEntity) + .acceptsEnergyFrom((TileEntity) aEmitter, ForgeDirection.getOrientation(j))) { + while (aSecondary > rUsedSecondary + && ((IEnergySink) tTileEntity).getDemandedEnergy() > 0 + && ((IEnergySink) tTileEntity) + .injectEnergy(ForgeDirection.getOrientation(j), aPrimary, aPrimary) < aPrimary) + rUsedSecondary++; + } + } else if (RF_ENERGY && aEnergyType == SubTag.ENERGY_REDSTONE_FLUX + && tTileEntity instanceof IEnergyReceiver + && ((IEnergyReceiver) tTileEntity).canConnectEnergy(ForgeDirection.getOrientation(j))) { + rUsedSecondary += ((IEnergyReceiver) tTileEntity) + .receiveEnergy(ForgeDirection.getOrientation(j), (int) aSecondary, false); + } } return rUsedSecondary; } diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IGregTechTileEntity.java b/src/main/java/gregtech/api/interfaces/tileentity/IGregTechTileEntity.java index a561c3ebe1..23e4d662c9 100644 --- a/src/main/java/gregtech/api/interfaces/tileentity/IGregTechTileEntity.java +++ b/src/main/java/gregtech/api/interfaces/tileentity/IGregTechTileEntity.java @@ -28,8 +28,8 @@ import gregtech.common.blocks.GT_Block_Machines; * It can cause Problems to include this Interface! */ public interface IGregTechTileEntity extends ITexturedTileEntity, IGearEnergyTileEntity, ICoverable, IFluidHandler, - ITurnable, IGregTechDeviceInformation, IUpgradableMachine, IDigitalChest, IDescribable, IMachineBlockUpdateable, - IGregtechWailaProvider, IGetGUITextureSet, IAddInventorySlots { + ITurnable, IGregTechDeviceInformation, IUpgradableMachine, IDigitalChest, IDescribable, IMachineBlockUpdateable, + IGregtechWailaProvider, IGetGUITextureSet, IAddInventorySlots { /** * gets the Error displayed on the GUI @@ -150,7 +150,7 @@ public interface IGregTechTileEntity extends ITexturedTileEntity, IGearEnergyTil int getLightOpacity(); void addCollisionBoxesToList(World aWorld, int aX, int aY, int aZ, AxisAlignedBB inputAABB, - List outputAABB, Entity collider); + List outputAABB, Entity collider); AxisAlignedBB getCollisionBoundingBoxFromPool(World aWorld, int aX, int aY, int aZ); @@ -172,8 +172,8 @@ public interface IGregTechTileEntity extends ITexturedTileEntity, IGearEnergyTil @Override default boolean isMachineBlockUpdateRecursive() { return !isDead() && getMetaTileEntity() != null - && getMetaTileEntity().getBaseMetaTileEntity() == this - && getMetaTileEntity().isMachineBlockUpdateRecursive(); + && getMetaTileEntity().getBaseMetaTileEntity() == this + && getMetaTileEntity().isMachineBlockUpdateRecursive(); } default void setShutdownStatus(boolean newStatus) { diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IGregtechWailaProvider.java b/src/main/java/gregtech/api/interfaces/tileentity/IGregtechWailaProvider.java index 19835cd03c..e40e837ade 100644 --- a/src/main/java/gregtech/api/interfaces/tileentity/IGregtechWailaProvider.java +++ b/src/main/java/gregtech/api/interfaces/tileentity/IGregtechWailaProvider.java @@ -14,8 +14,8 @@ import net.minecraft.world.World; public interface IGregtechWailaProvider { default void getWailaBody(ItemStack itemStack, List currenttip, IWailaDataAccessor accessor, - IWailaConfigHandler config) {} + IWailaConfigHandler config) {} default void getWailaNBTData(final EntityPlayerMP player, final TileEntity tile, final NBTTagCompound tag, - final World world, int x, int y, int z) {} + final World world, int x, int y, int z) {} } diff --git a/src/main/java/gregtech/api/items/GT_Block_LongDistancePipe.java b/src/main/java/gregtech/api/items/GT_Block_LongDistancePipe.java index 36dff21cb0..dbd8ffecf6 100644 --- a/src/main/java/gregtech/api/items/GT_Block_LongDistancePipe.java +++ b/src/main/java/gregtech/api/items/GT_Block_LongDistancePipe.java @@ -42,7 +42,7 @@ public class GT_Block_LongDistancePipe extends GT_Generic_Block { ItemList.Long_Distance_Pipeline_Fluid_Pipe.set(new ItemStack(this, 1, 0)); ItemList.Long_Distance_Pipeline_Item_Pipe.set(new ItemStack(this, 1, 1)); mIcons = new IIconContainer[] { Textures.BlockIcons.LONG_DISTANCE_PIPE_FLUID, - Textures.BlockIcons.LONG_DISTANCE_PIPE_ITEM }; + Textures.BlockIcons.LONG_DISTANCE_PIPE_ITEM }; } @Override @@ -119,8 +119,7 @@ public class GT_Block_LongDistancePipe extends GT_Generic_Block { for (int i = 0; i < 3; i++) { ItemStack aStack = new ItemStack(aItem, 1, i); if (!aStack.getDisplayName() - .contains(".name")) - aList.add(aStack); + .contains(".name")) aList.add(aStack); } } } diff --git a/src/main/java/gregtech/api/items/GT_BreederCell_Item.java b/src/main/java/gregtech/api/items/GT_BreederCell_Item.java index 144fc0d39e..587d469017 100644 --- a/src/main/java/gregtech/api/items/GT_BreederCell_Item.java +++ b/src/main/java/gregtech/api/items/GT_BreederCell_Item.java @@ -34,7 +34,7 @@ public class GT_BreederCell_Item extends GT_Generic_Item implements IReactorComp protected boolean neiAdded = false; public GT_BreederCell_Item(String aUnlocalized, String aEnglish, String aEnglishTooltip, int aHeatBonusStep, - int aHeatBonusMultiplier, int aRequiredPulse, Supplier aProduct) { + int aHeatBonusMultiplier, int aRequiredPulse, Supplier aProduct) { super(aUnlocalized, aEnglish, aEnglishTooltip); this.mHeatBonusStep = aHeatBonusStep; this.mHeatBonusMultiplier = aHeatBonusMultiplier; @@ -44,12 +44,12 @@ public class GT_BreederCell_Item extends GT_Generic_Item implements IReactorComp mProduct = aProduct.get(); if (!hidden && !neiAdded) { GT_Values.RA.addIC2ReactorBreederCell( - new ItemStack(this), - mProduct, - deflector, - mHeatBonusStep, - mHeatBonusMultiplier, - getMaxDamage()); + new ItemStack(this), + mProduct, + deflector, + mHeatBonusStep, + mHeatBonusMultiplier, + getMaxDamage()); neiAdded = true; } }); @@ -84,10 +84,10 @@ public class GT_BreederCell_Item extends GT_Generic_Item implements IReactorComp default -> EnumChatFormatting.WHITE; }; aList.add( - String.format( - transItem("020", "Progress: %s/%s"), - "" + color2 + formatNumbers(aStack.getItemDamage()) + EnumChatFormatting.RESET, - "" + formatNumbers(getMaxDamage()))); + String.format( + transItem("020", "Progress: %s/%s"), + "" + color2 + formatNumbers(aStack.getItemDamage()) + EnumChatFormatting.RESET, + "" + formatNumbers(getMaxDamage()))); if (aStack.getItemDamage() > 0) aList.add(EnumChatFormatting.RED + transItem("021", "Radiation Hazard")); } @@ -101,7 +101,7 @@ public class GT_BreederCell_Item extends GT_Generic_Item implements IReactorComp @Override public boolean acceptUraniumPulse(IReactor reactor, ItemStack yourStack, ItemStack pulsingStack, int youX, int youY, - int pulseX, int pulseY, boolean heatrun) { + int pulseX, int pulseY, boolean heatrun) { if (heatrun) { int myLevel = getNewDamage(reactor, yourStack); if (myLevel >= getMaxDamage()) reactor.setItemAt(youX, youY, mProduct.copy()); diff --git a/src/main/java/gregtech/api/items/GT_CoolantCellIC_Item.java b/src/main/java/gregtech/api/items/GT_CoolantCellIC_Item.java index 492d009364..1fcda9d84d 100644 --- a/src/main/java/gregtech/api/items/GT_CoolantCellIC_Item.java +++ b/src/main/java/gregtech/api/items/GT_CoolantCellIC_Item.java @@ -16,7 +16,7 @@ public class GT_CoolantCellIC_Item extends GT_CoolantCell_Item implements IReact @Override public boolean acceptUraniumPulse(IReactor aReactor, ItemStack aStack, ItemStack pulsingStack, int youX, int youY, - int pulseX, int pulseY, boolean aHeatRun) { + int pulseX, int pulseY, boolean aHeatRun) { return false; } diff --git a/src/main/java/gregtech/api/items/GT_CoolantCell_Item.java b/src/main/java/gregtech/api/items/GT_CoolantCell_Item.java index 1b9a6de98a..352448b6b1 100644 --- a/src/main/java/gregtech/api/items/GT_CoolantCell_Item.java +++ b/src/main/java/gregtech/api/items/GT_CoolantCell_Item.java @@ -62,8 +62,8 @@ public class GT_CoolantCell_Item extends GT_Generic_Item { default -> EnumChatFormatting.DARK_RED; }; aList.add( - EnumChatFormatting.WHITE - + String.format(transItem("000", "Stored Heat: %s"), "" + color + getHeatOfStack(aStack))); + EnumChatFormatting.WHITE + + String.format(transItem("000", "Stored Heat: %s"), "" + color + getHeatOfStack(aStack))); if (getControlTagOfStack(aStack) == 1) { aList.add(StatCollector.translateToLocal("ic2.reactoritem.heatwarning.line1")); aList.add(StatCollector.translateToLocal("ic2.reactoritem.heatwarning.line2")); diff --git a/src/main/java/gregtech/api/items/GT_EnergyArmor_Item.java b/src/main/java/gregtech/api/items/GT_EnergyArmor_Item.java index 2ddf82c342..cec7a86240 100644 --- a/src/main/java/gregtech/api/items/GT_EnergyArmor_Item.java +++ b/src/main/java/gregtech/api/items/GT_EnergyArmor_Item.java @@ -38,8 +38,8 @@ public class GT_EnergyArmor_Item extends ItemArmor implements ISpecialArmor { public double mArmorAbsorbtionPercentage; public GT_EnergyArmor_Item(int aID, String aUnlocalized, String aEnglish, int aCharge, int aTransfer, int aTier, - int aDamageEnergyCost, int aSpecials, double aArmorAbsorbtionPercentage, boolean aChargeProvider, int aType, - int aArmorIndex) { + int aDamageEnergyCost, int aSpecials, double aArmorAbsorbtionPercentage, boolean aChargeProvider, int aType, + int aArmorIndex) { super(ArmorMaterial.DIAMOND, aArmorIndex, aType); setMaxStackSize(1); setMaxDamage(100); @@ -117,9 +117,9 @@ public class GT_EnergyArmor_Item extends ItemArmor implements ISpecialArmor { if (!aPlayer.worldObj.isRemote && (mSpecials & 4) != 0) { if (GT_ModHandler.canUseElectricItem(aStack, 50000) && aPlayer.getFoodStats() - .needFood()) { + .needFood()) { aPlayer.getFoodStats() - .addStats(1, 0.0F); + .addStats(1, 0.0F); GT_ModHandler.useElectricItem(aStack, 50000, aPlayer); } } @@ -166,8 +166,8 @@ public class GT_EnergyArmor_Item extends ItemArmor implements ISpecialArmor { if ((mSpecials & 256) != 0) { if (GT_ModHandler.canUseElectricItem(aStack, 100) && aPlayer.isSprinting() - && (aPlayer.onGround && Math.abs(aPlayer.motionX) + Math.abs(aPlayer.motionZ) > 0.10000000149011612D - || aPlayer.isInWater())) { + && (aPlayer.onGround && Math.abs(aPlayer.motionX) + Math.abs(aPlayer.motionZ) > 0.10000000149011612D + || aPlayer.isInWater())) { GT_ModHandler.useElectricItem(aStack, 100, aPlayer); float bonus = 0.22F; @@ -201,7 +201,7 @@ public class GT_EnergyArmor_Item extends ItemArmor implements ISpecialArmor { tTargetChargeItem = aPlayer.inventory.armorInventory[2]; } if (GT_ModHandler.dischargeElectricItem(tTargetDechargeItem, 10, Integer.MAX_VALUE, true, true, true) - < 10) { + < 10) { tTargetDechargeItem = aPlayer.inventory.armorInventory[2]; } @@ -210,9 +210,9 @@ public class GT_EnergyArmor_Item extends ItemArmor implements ISpecialArmor { } if (aPlayer.worldObj.isDaytime() && aPlayer.worldObj.canBlockSeeTheSky( - MathHelper.floor_double(aPlayer.posX), - MathHelper.floor_double(aPlayer.posY + 1), - MathHelper.floor_double(aPlayer.posZ))) { + MathHelper.floor_double(aPlayer.posX), + MathHelper.floor_double(aPlayer.posY + 1), + MathHelper.floor_double(aPlayer.posZ))) { if ((mSpecials & 32) != 0 && tTargetChargeItem != null) { GT_ModHandler.chargeElectricItem(tTargetChargeItem, 20, Integer.MAX_VALUE, true, false); } @@ -296,13 +296,8 @@ public class GT_EnergyArmor_Item extends ItemArmor implements ISpecialArmor { if (armor != null && armor.getItem() == this && (mSpecials & 2) != 0) { int distanceFactor = (int) event.distance - 3; int energyCost = (this.mDamageEnergyCost * distanceFactor) / 4; - if (energyCost <= GT_ModHandler.dischargeElectricItem( - armor, - Integer.MAX_VALUE, - Integer.MAX_VALUE, - true, - true, - true)) { + if (energyCost <= GT_ModHandler + .dischargeElectricItem(armor, Integer.MAX_VALUE, Integer.MAX_VALUE, true, true, true)) { GT_ModHandler.dischargeElectricItem(armor, energyCost, Integer.MAX_VALUE, true, false, true); event.setCanceled(true); break; @@ -314,19 +309,13 @@ public class GT_EnergyArmor_Item extends ItemArmor implements ISpecialArmor { @Override public ISpecialArmor.ArmorProperties getProperties(EntityLivingBase player, ItemStack armor, DamageSource source, - double damage, int slotIndex) { + double damage, int slotIndex) { return new ISpecialArmor.ArmorProperties( - (source == DamageSource.fall && (mSpecials & 2) != 0) ? 10 : 0, - getBaseAbsorptionRatio() * mArmorAbsorbtionPercentage, - mDamageEnergyCost > 0 - ? 25 * GT_ModHandler.dischargeElectricItem( - armor, - Integer.MAX_VALUE, - Integer.MAX_VALUE, - true, - true, - true) / mDamageEnergyCost - : 0); + (source == DamageSource.fall && (mSpecials & 2) != 0) ? 10 : 0, + getBaseAbsorptionRatio() * mArmorAbsorbtionPercentage, + mDamageEnergyCost > 0 ? 25 + * GT_ModHandler.dischargeElectricItem(armor, Integer.MAX_VALUE, Integer.MAX_VALUE, true, true, true) + / mDamageEnergyCost : 0); } @Override @@ -336,14 +325,9 @@ public class GT_EnergyArmor_Item extends ItemArmor implements ISpecialArmor { @Override public void damageArmor(EntityLivingBase entity, ItemStack itemStack, DamageSource source, int damage, - int slotIndex) { - GT_ModHandler.dischargeElectricItem( - itemStack, - damage * mDamageEnergyCost, - Integer.MAX_VALUE, - true, - false, - true); + int slotIndex) { + GT_ModHandler + .dischargeElectricItem(itemStack, damage * mDamageEnergyCost, Integer.MAX_VALUE, true, false, true); } private double getBaseAbsorptionRatio() { diff --git a/src/main/java/gregtech/api/items/GT_Generic_Item.java b/src/main/java/gregtech/api/items/GT_Generic_Item.java index 66b19d9ddf..26eafe5130 100644 --- a/src/main/java/gregtech/api/items/GT_Generic_Item.java +++ b/src/main/java/gregtech/api/items/GT_Generic_Item.java @@ -44,14 +44,12 @@ public class GT_Generic_Item extends Item implements IProjectileItem { } public GT_Generic_Item(String aUnlocalized, String aEnglish, String aEnglishTooltip, - boolean aWriteToolTipIntoLangFile) { + boolean aWriteToolTipIntoLangFile) { super(); mName = "gt." + aUnlocalized; GT_LanguageManager.addStringLocalization(mName + ".name", aEnglish); - if (GT_Utility.isStringValid(aEnglishTooltip)) GT_LanguageManager.addStringLocalization( - mTooltip = mName + ".tooltip_main", - aEnglishTooltip, - aWriteToolTipIntoLangFile); + if (GT_Utility.isStringValid(aEnglishTooltip)) GT_LanguageManager + .addStringLocalization(mTooltip = mName + ".tooltip_main", aEnglishTooltip, aWriteToolTipIntoLangFile); else mTooltip = null; setCreativeTab(GregTech_API.TAB_GREGTECH); GameRegistry.registerItem(this, mName, GregTech.ID); @@ -126,13 +124,13 @@ public class GT_Generic_Item extends Item implements IProjectileItem { @Override public EntityArrow getProjectile(SubTag aProjectileType, ItemStack aStack, World aWorld, double aX, double aY, - double aZ) { + double aZ) { return null; } @Override public EntityArrow getProjectile(SubTag aProjectileType, ItemStack aStack, World aWorld, EntityLivingBase aEntity, - float aSpeed) { + float aSpeed) { return null; } diff --git a/src/main/java/gregtech/api/items/GT_MetaBase_Item.java b/src/main/java/gregtech/api/items/GT_MetaBase_Item.java index c829f563b1..f1646529ea 100644 --- a/src/main/java/gregtech/api/items/GT_MetaBase_Item.java +++ b/src/main/java/gregtech/api/items/GT_MetaBase_Item.java @@ -34,7 +34,7 @@ import ic2.api.item.IElectricItemManager; import ic2.api.item.ISpecialElectricItem; public abstract class GT_MetaBase_Item extends GT_Generic_Item - implements ISpecialElectricItem, IElectricItemManager, IFluidContainerItem { + implements ISpecialElectricItem, IElectricItemManager, IFluidContainerItem { /* ---------- CONSTRUCTOR AND MEMBER VARIABLES ---------- */ private final ConcurrentHashMap>> mItemBehaviors = new ConcurrentHashMap<>(); @@ -61,9 +61,8 @@ public abstract class GT_MetaBase_Item extends GT_Generic_Item */ public final GT_MetaBase_Item addItemBehavior(int aMetaValue, IItemBehaviour aBehavior) { if (aMetaValue < 0 || aMetaValue >= 32766 || aBehavior == null) return this; - ArrayList> tList = mItemBehaviors.computeIfAbsent( - (short) aMetaValue, - k -> new ArrayList<>(1)); + ArrayList> tList = mItemBehaviors + .computeIfAbsent((short) aMetaValue, k -> new ArrayList<>(1)); tList.add(aBehavior); return this; } @@ -82,7 +81,7 @@ public abstract class GT_MetaBase_Item extends GT_Generic_Item @Override public EntityArrow getProjectile(SubTag aProjectileType, ItemStack aStack, World aWorld, double aX, double aY, - double aZ) { + double aZ) { ArrayList> tList = mItemBehaviors.get((short) getDamage(aStack)); if (tList != null) for (IItemBehaviour tBehavior : tList) { EntityArrow rArrow = tBehavior.getProjectile(this, aProjectileType, aStack, aWorld, aX, aY, aZ); @@ -93,7 +92,7 @@ public abstract class GT_MetaBase_Item extends GT_Generic_Item @Override public EntityArrow getProjectile(SubTag aProjectileType, ItemStack aStack, World aWorld, EntityLivingBase aEntity, - float aSpeed) { + float aSpeed) { ArrayList> tList = mItemBehaviors.get((short) getDamage(aStack)); if (tList != null) for (IItemBehaviour tBehavior : tList) { EntityArrow rArrow = tBehavior.getProjectile(this, aProjectileType, aStack, aWorld, aEntity, aSpeed); @@ -141,7 +140,7 @@ public abstract class GT_MetaBase_Item extends GT_Generic_Item @Override public boolean onItemUse(ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int aSide, - float hitX, float hitY, float hitZ) { + float hitX, float hitY, float hitZ) { use(aStack, 0, aPlayer); isItemStackUsable(aStack); ArrayList> tList = mItemBehaviors.get((short) getDamage(aStack)); @@ -163,7 +162,7 @@ public abstract class GT_MetaBase_Item extends GT_Generic_Item @Override public boolean onItemUseFirst(ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, - int aSide, float hitX, float hitY, float hitZ) { + int aSide, float hitX, float hitY, float hitZ) { use(aStack, 0, aPlayer); isItemStackUsable(aStack); ArrayList> tList = mItemBehaviors.get((short) getDamage(aStack)); @@ -201,7 +200,7 @@ public abstract class GT_MetaBase_Item extends GT_Generic_Item public final void addInformation(ItemStack aStack, EntityPlayer aPlayer, List aList, boolean aF3_H) { String tKey = getUnlocalizedName(aStack) + ".tooltip"; String[] tStrings = GT_LanguageManager.getTranslation(tKey) - .split("/n "); + .split("/n "); for (String tString : tStrings) if (GT_Utility.isStringValid(tString) && !tKey.equals(tString)) aList.add(tString); @@ -209,29 +208,25 @@ public abstract class GT_MetaBase_Item extends GT_Generic_Item if (tStats != null) { if (tStats[3] > 0) { aList.add( - EnumChatFormatting.AQUA - + String.format( - transItem("009", "Contains %s EU Tier: %s"), - formatNumbers(tStats[3]), - "" + (tStats[2] >= 0 ? tStats[2] : 0)) - + EnumChatFormatting.GRAY); + EnumChatFormatting.AQUA + String.format( + transItem("009", "Contains %s EU Tier: %s"), + formatNumbers(tStats[3]), + "" + (tStats[2] >= 0 ? tStats[2] : 0)) + EnumChatFormatting.GRAY); } else { long tCharge = getRealCharge(aStack); if (tStats[3] == -2 && tCharge <= 0) { aList.add( - EnumChatFormatting.AQUA + transItem("010", "Empty. You should recycle it properly.") - + EnumChatFormatting.GRAY); + EnumChatFormatting.AQUA + transItem("010", "Empty. You should recycle it properly.") + + EnumChatFormatting.GRAY); } else { aList.add( - EnumChatFormatting.AQUA - + String.format( - transItem("011", "%s / %s EU - Voltage: %s"), - formatNumbers(tCharge), - formatNumbers(Math.abs(tStats[0])), - "" + V[(int) (tStats[2] >= 0 - ? tStats[2] < V.length ? tStats[2] : V.length - 1 - : 1)]) - + EnumChatFormatting.GRAY); + EnumChatFormatting.AQUA + + String.format( + transItem("011", "%s / %s EU - Voltage: %s"), + formatNumbers(tCharge), + formatNumbers(Math.abs(tStats[0])), + "" + V[(int) (tStats[2] >= 0 ? tStats[2] < V.length ? tStats[2] : V.length - 1 : 1)]) + + EnumChatFormatting.GRAY); } } } @@ -240,15 +235,13 @@ public abstract class GT_MetaBase_Item extends GT_Generic_Item if (tStats != null && tStats[0] > 0) { FluidStack tFluid = getFluidContent(aStack); aList.add( - EnumChatFormatting.BLUE + ((tFluid == null ? transItem("012", "No Fluids Contained") - : GT_Utility.getFluidName(tFluid, true))) + EnumChatFormatting.GRAY); + EnumChatFormatting.BLUE + ((tFluid == null ? transItem("012", "No Fluids Contained") + : GT_Utility.getFluidName(tFluid, true))) + EnumChatFormatting.GRAY); aList.add( - EnumChatFormatting.BLUE - + String.format( - transItem("013", "%sL / %sL"), - "" + (tFluid == null ? 0 : formatNumbers(tFluid.amount)), - "" + formatNumbers(tStats[0])) - + EnumChatFormatting.GRAY); + EnumChatFormatting.BLUE + String.format( + transItem("013", "%sL / %sL"), + "" + (tFluid == null ? 0 : formatNumbers(tFluid.amount)), + "" + formatNumbers(tStats[0])) + EnumChatFormatting.GRAY); } ArrayList> tList = mItemBehaviors.get((short) getDamage(aStack)); @@ -288,27 +281,26 @@ public abstract class GT_MetaBase_Item extends GT_Generic_Item @Override public final double charge(ItemStack aStack, double aCharge, int aTier, boolean aIgnoreTransferLimit, - boolean aSimulate) { + boolean aSimulate) { Long[] tStats = getElectricStats(aStack); if (tStats == null || tStats[2] > aTier - || !(tStats[3] == -1 || tStats[3] == -3 || (tStats[3] < 0 && aCharge == Integer.MAX_VALUE)) - || aStack.stackSize != 1) - return 0; + || !(tStats[3] == -1 || tStats[3] == -3 || (tStats[3] < 0 && aCharge == Integer.MAX_VALUE)) + || aStack.stackSize != 1) return 0; // REALLY?? THIS IS THE CULPRIT THAT CHARGES ITEMS AT INSTANT!!! // long tChargeBefore = getRealCharge(aStack), tNewCharge = aCharge == Integer.MAX_VALUE ? Long.MAX_VALUE : // Math.min(Math.abs(tStats[0]), tChargeBefore + (aIgnoreTransferLimit ? (long) aCharge : Math.min(tStats[1], // (long) aCharge))); long tTransfer = aIgnoreTransferLimit ? (long) aCharge : Math.min(tStats[1], (long) aCharge); long tChargeBefore = getRealCharge(aStack), tNewCharge = Math.min( - Math.abs(tStats[0]), - Long.MAX_VALUE - tTransfer >= tChargeBefore ? tChargeBefore + tTransfer : Long.MAX_VALUE); + Math.abs(tStats[0]), + Long.MAX_VALUE - tTransfer >= tChargeBefore ? tChargeBefore + tTransfer : Long.MAX_VALUE); if (!aSimulate) setCharge(aStack, tNewCharge); return tNewCharge - tChargeBefore; } @Override public final double discharge(ItemStack aStack, double aCharge, int aTier, boolean aIgnoreTransferLimit, - boolean aBatteryAlike, boolean aSimulate) { + boolean aBatteryAlike, boolean aSimulate) { Long[] tStats = getElectricStats(aStack); if (tStats == null || tStats[2] > aTier) return 0; if (aBatteryAlike && !canProvideEnergy(aStack)) return 0; @@ -317,9 +309,8 @@ public abstract class GT_MetaBase_Item extends GT_Generic_Item if (!aSimulate) aStack.stackSize--; return tStats[3]; } - long tChargeBefore = getRealCharge(aStack), tNewCharge = Math.max( - 0, - tChargeBefore - (aIgnoreTransferLimit ? (long) aCharge : Math.min(tStats[1], (long) aCharge))); + long tChargeBefore = getRealCharge(aStack), tNewCharge = Math + .max(0, tChargeBefore - (aIgnoreTransferLimit ? (long) aCharge : Math.min(tStats[1], (long) aCharge))); if (!aSimulate) setCharge(aStack, tNewCharge); return tChargeBefore - tNewCharge; } @@ -358,12 +349,12 @@ public abstract class GT_MetaBase_Item extends GT_Generic_Item IElectricItem tArmorItem = (IElectricItem) tArmor.getItem(); if (tArmorItem.canProvideEnergy(tArmor) && tArmorItem.getTier(tArmor) >= getTier(aStack)) { double tCharge = ElectricItem.manager.discharge( - tArmor, - charge(aStack, Integer.MAX_VALUE - 1, Integer.MAX_VALUE, true, true), - Integer.MAX_VALUE, - true, - true, - false); + tArmor, + charge(aStack, Integer.MAX_VALUE - 1, Integer.MAX_VALUE, true, true), + Integer.MAX_VALUE, + true, + true, + false); if (tCharge > 0) { charge(aStack, tCharge, Integer.MAX_VALUE, true, false); if (aPlayer instanceof EntityPlayer) { @@ -471,18 +462,15 @@ public abstract class GT_MetaBase_Item extends GT_Generic_Item Long[] tStats = getFluidContainerStats(aStack); if (tStats == null || tStats[0] <= 0 - || aFluid == null - || aFluid.getFluid() - .getID() - <= 0 - || aFluid.amount <= 0) - return 0; + || aFluid == null + || aFluid.getFluid() + .getID() <= 0 + || aFluid.amount <= 0) return 0; FluidStack tFluid = getFluidContent(aStack); if (tFluid == null || tFluid.getFluid() - .getID() - <= 0) { + .getID() <= 0) { if (aFluid.amount <= tStats[0]) { if (doFill) { setFluidContent(aStack, aFluid); diff --git a/src/main/java/gregtech/api/items/GT_MetaGenerated_Item.java b/src/main/java/gregtech/api/items/GT_MetaGenerated_Item.java index 74cda91f44..a852d5f400 100644 --- a/src/main/java/gregtech/api/items/GT_MetaGenerated_Item.java +++ b/src/main/java/gregtech/api/items/GT_MetaGenerated_Item.java @@ -117,7 +117,7 @@ public abstract class GT_MetaGenerated_Item extends GT_MetaBase_Item implements ItemStack rStack = new ItemStack(this, 1, mOffset + aID); if (mEnabledItems.get(aID)) { throw new IllegalArgumentException( - String.format("ID %s is already reserved for %s!", aID, rStack.getDisplayName())); + String.format("ID %s is already reserved for %s!", aID, rStack.getDisplayName())); } mEnabledItems.set(aID); mVisibleItems.set(aID); @@ -143,14 +143,14 @@ public abstract class GT_MetaGenerated_Item extends GT_MetaBase_Item implements if (((IFoodStat) tRandomData).getFoodAction(this, rStack) == EnumAction.eat) { int tFoodValue = ((IFoodStat) tRandomData).getFoodLevel(this, rStack, null); if (tFoodValue > 0) RA.addCannerRecipe( - rStack, - ItemList.IC2_Food_Can_Empty.get(tFoodValue), - ((IFoodStat) tRandomData).isRotten(this, rStack, null) - ? ItemList.IC2_Food_Can_Spoiled.get(tFoodValue) - : ItemList.IC2_Food_Can_Filled.get(tFoodValue), - null, - tFoodValue * 100, - 1); + rStack, + ItemList.IC2_Food_Can_Empty.get(tFoodValue), + ((IFoodStat) tRandomData).isRotten(this, rStack, null) + ? ItemList.IC2_Food_Can_Spoiled.get(tFoodValue) + : ItemList.IC2_Food_Can_Filled.get(tFoodValue), + null, + tFoodValue * 100, + 1); } tUseOreDict = false; } @@ -226,16 +226,15 @@ public abstract class GT_MetaGenerated_Item extends GT_MetaBase_Item implements * @return the Item itself for convenience in constructing. */ public final GT_MetaGenerated_Item setElectricStats(int aMetaValue, long aMaxCharge, long aTransferLimit, - long aTier, long aSpecialData, boolean aUseAnimations) { + long aTier, long aSpecialData, boolean aUseAnimations) { if (aMetaValue < 0 || aMetaValue >= mOffset + mEnabledItems.length()) return this; if (aMaxCharge == 0) mElectricStats.remove((short) aMetaValue); else { mElectricStats.put( - (short) aMetaValue, - new Long[] { aMaxCharge, Math.max(0, aTransferLimit), Math.max(-1, aTier), aSpecialData }); - if (aMetaValue >= mOffset && aUseAnimations) mIconList[aMetaValue - mOffset] = Arrays.copyOf( - mIconList[aMetaValue - mOffset], - Math.max(9, mIconList[aMetaValue - mOffset].length)); + (short) aMetaValue, + new Long[] { aMaxCharge, Math.max(0, aTransferLimit), Math.max(-1, aTier), aSpecialData }); + if (aMetaValue >= mOffset && aUseAnimations) mIconList[aMetaValue - mOffset] = Arrays + .copyOf(mIconList[aMetaValue - mOffset], Math.max(9, mIconList[aMetaValue - mOffset].length)); } return this; } @@ -327,17 +326,17 @@ public abstract class GT_MetaGenerated_Item extends GT_MetaBase_Item implements if (tStat != null) { if (AppleCore.isModLoaded()) { aPlayer.getFoodStats() - .func_151686_a( - (ItemFood) GT_Utility.callConstructor( - "squeek.applecore.api.food.ItemFoodProxy.ItemFoodProxy", - 0, - null, - true, - this), - aStack); + .func_151686_a( + (ItemFood) GT_Utility.callConstructor( + "squeek.applecore.api.food.ItemFoodProxy.ItemFoodProxy", + 0, + null, + true, + this), + aStack); } else { aPlayer.getFoodStats() - .addStats(tStat.getFoodLevel(this, aStack, aPlayer), tStat.getSaturation(this, aStack, aPlayer)); + .addStats(tStat.getFoodLevel(this, aStack, aPlayer), tStat.getSaturation(this, aStack, aPlayer)); } tStat.onEaten(this, aStack, aPlayer); } @@ -349,7 +348,7 @@ public abstract class GT_MetaGenerated_Item extends GT_MetaBase_Item implements public FoodValues getFoodValues(ItemStack aStack) { IFoodStat tStat = mFoodStats.get((short) getDamage(aStack)); return tStat == null ? null - : new FoodValues(tStat.getFoodLevel(this, aStack, null), tStat.getSaturation(this, aStack, null)); + : new FoodValues(tStat.getFoodLevel(this, aStack, null), tStat.getSaturation(this, aStack, null)); } @Override @@ -379,10 +378,10 @@ public abstract class GT_MetaGenerated_Item extends GT_MetaBase_Item implements for (short i = 0; i < j; i++) if (mEnabledItems.get(i)) { for (byte k = 1; k < mIconList[i].length; k++) { mIconList[i][k] = aIconRegister.registerIcon( - GregTech.getResourcePath(GT_Config.troll ? "troll" : getUnlocalizedName() + "/" + i + "/" + k)); + GregTech.getResourcePath(GT_Config.troll ? "troll" : getUnlocalizedName() + "/" + i + "/" + k)); } - mIconList[i][0] = aIconRegister.registerIcon( - GregTech.getResourcePath(GT_Config.troll ? "troll" : getUnlocalizedName() + "/" + i)); + mIconList[i][0] = aIconRegister + .registerIcon(GregTech.getResourcePath(GT_Config.troll ? "troll" : getUnlocalizedName() + "/" + i)); } } diff --git a/src/main/java/gregtech/api/items/GT_MetaGenerated_Item_X01.java b/src/main/java/gregtech/api/items/GT_MetaGenerated_Item_X01.java index f32c326afa..db41a3c35b 100644 --- a/src/main/java/gregtech/api/items/GT_MetaGenerated_Item_X01.java +++ b/src/main/java/gregtech/api/items/GT_MetaGenerated_Item_X01.java @@ -51,7 +51,7 @@ public abstract class GT_MetaGenerated_Item_X01 extends GT_MetaGenerated_Item { super(aUnlocalized, (short) 32000, (short) 766); mPrefix = aGeneratedPrefix; mIconSetIndex = aIconSetIndex >= 0 ? aIconSetIndex - : aGeneratedPrefix.mTextureIndex >= 0 ? aGeneratedPrefix.mTextureIndex : 0; + : aGeneratedPrefix.mTextureIndex >= 0 ? aGeneratedPrefix.mTextureIndex : 0; for (int i = 0; i < GregTech_API.sGeneratedMaterials.length; i++) { OrePrefixes tPrefix = mPrefix; @@ -61,12 +61,12 @@ public abstract class GT_MetaGenerated_Item_X01 extends GT_MetaGenerated_Item { if (mPrefix.doGenerateItem(tMaterial)) { ItemStack tStack = new ItemStack(this, 1, i); GT_LanguageManager.addStringLocalization( - getUnlocalizedName(tStack) + ".name", - GT_LanguageManager.i18nPlaceholder ? getDefaultLocalizationFormat(tPrefix, tMaterial, i) - : getDefaultLocalization(tPrefix, tMaterial, i)); + getUnlocalizedName(tStack) + ".name", + GT_LanguageManager.i18nPlaceholder ? getDefaultLocalizationFormat(tPrefix, tMaterial, i) + : getDefaultLocalization(tPrefix, tMaterial, i)); GT_LanguageManager.addStringLocalization( - getUnlocalizedName(tStack) + ".tooltip", - tMaterial.getToolTip(tPrefix.mMaterialAmount / M)); + getUnlocalizedName(tStack) + ".tooltip", + tMaterial.getToolTip(tPrefix.mMaterialAmount / M)); String tOreName = getOreDictString(tPrefix, tMaterial); tPrefix = OrePrefixes.getOrePrefix(tOreName); if (tPrefix != null && tPrefix.mIsUnificatable) { @@ -116,7 +116,7 @@ public abstract class GT_MetaGenerated_Item_X01 extends GT_MetaGenerated_Item { */ public String getOreDictString(OrePrefixes aPrefix, Materials aMaterial) { return aPrefix.get(aMaterial) - .toString(); + .toString(); } public IIconContainer getIconContainer(int aMetaData, Materials aMaterial) { @@ -149,17 +149,16 @@ public abstract class GT_MetaGenerated_Item_X01 extends GT_MetaGenerated_Item { public short[] getRGBa(ItemStack aStack) { int aMetaData = getDamage(aStack); return aMetaData < GregTech_API.sGeneratedMaterials.length - && GregTech_API.sGeneratedMaterials[aMetaData] != null - ? GregTech_API.sGeneratedMaterials[aMetaData].mRGBa - : Materials._NULL.mRGBa; + && GregTech_API.sGeneratedMaterials[aMetaData] != null ? GregTech_API.sGeneratedMaterials[aMetaData].mRGBa + : Materials._NULL.mRGBa; } @Override public final IIconContainer getIconContainer(int aMetaData) { return aMetaData < GregTech_API.sGeneratedMaterials.length - && GregTech_API.sGeneratedMaterials[aMetaData] != null - ? getIconContainer(aMetaData, GregTech_API.sGeneratedMaterials[aMetaData]) - : null; + && GregTech_API.sGeneratedMaterials[aMetaData] != null + ? getIconContainer(aMetaData, GregTech_API.sGeneratedMaterials[aMetaData]) + : null; } @Override @@ -167,13 +166,13 @@ public abstract class GT_MetaGenerated_Item_X01 extends GT_MetaGenerated_Item { public final void getSubItems(Item aItem, CreativeTabs aCreativeTab, List aList) { for (int i = 0; i < GregTech_API.sGeneratedMaterials.length; i++) if (mPrefix.doGenerateItem(GregTech_API.sGeneratedMaterials[i]) && doesShowInCreative( - mPrefix, - GregTech_API.sGeneratedMaterials[i], - GregTech_API.sDoShowAllItemsInCreative)) { - ItemStack tStack = new ItemStack(this, 1, i); - isItemStackUsable(tStack); - aList.add(tStack); - } + mPrefix, + GregTech_API.sGeneratedMaterials[i], + GregTech_API.sDoShowAllItemsInCreative)) { + ItemStack tStack = new ItemStack(this, 1, i); + isItemStackUsable(tStack); + aList.add(tStack); + } super.getSubItems(aItem, aCreativeTab, aList); } @@ -188,13 +187,13 @@ public abstract class GT_MetaGenerated_Item_X01 extends GT_MetaGenerated_Item { return null; } return aMetaData >= mOffset && aMetaData - mOffset < mIconList.length ? mIconList[aMetaData - mOffset][0] - : null; + : null; } @Override public int getItemStackLimit(ItemStack aStack) { return getDamage(aStack) < mOffset ? Math.min(super.getItemStackLimit(aStack), mPrefix.mDefaultStackSize) - : super.getItemStackLimit(aStack); + : super.getItemStackLimit(aStack); } @Override diff --git a/src/main/java/gregtech/api/items/GT_MetaGenerated_Item_X32.java b/src/main/java/gregtech/api/items/GT_MetaGenerated_Item_X32.java index 58368ba05b..ac5af06ef4 100644 --- a/src/main/java/gregtech/api/items/GT_MetaGenerated_Item_X32.java +++ b/src/main/java/gregtech/api/items/GT_MetaGenerated_Item_X32.java @@ -59,20 +59,20 @@ public abstract class GT_MetaGenerated_Item_X32 extends GT_MetaGenerated_Item { if (doesMaterialAllowGeneration(tPrefix, tMaterial)) { ItemStack tStack = new ItemStack(this, 1, i); GT_LanguageManager.addStringLocalization( - getUnlocalizedName(tStack) + ".name", - GT_LanguageManager.i18nPlaceholder ? getDefaultLocalizationFormat(tPrefix, tMaterial, i) - : getDefaultLocalization(tPrefix, tMaterial, i)); + getUnlocalizedName(tStack) + ".name", + GT_LanguageManager.i18nPlaceholder ? getDefaultLocalizationFormat(tPrefix, tMaterial, i) + : getDefaultLocalization(tPrefix, tMaterial, i)); GT_LanguageManager.addStringLocalization( - getUnlocalizedName(tStack) + ".tooltip", - tMaterial.getToolTip(tPrefix.mMaterialAmount / M)); + getUnlocalizedName(tStack) + ".tooltip", + tMaterial.getToolTip(tPrefix.mMaterialAmount / M)); if (tPrefix.mIsUnificatable) { GT_OreDictUnificator.set(tPrefix, tMaterial, tStack); } else { GT_OreDictUnificator.registerOre(tPrefix.get(tMaterial), tStack); } if ((tPrefix == OrePrefixes.stick || tPrefix == OrePrefixes.wireFine || tPrefix == OrePrefixes.ingot) - && (tMaterial == Materials.Lead || tMaterial == Materials.Tin - || tMaterial == Materials.SolderingAlloy)) { + && (tMaterial == Materials.Lead || tMaterial == Materials.Tin + || tMaterial == Materials.SolderingAlloy)) { GregTech_API.sSolderingMetalList.add(tStack); GT_ModHandler.registerBoxableItemToToolBox(tStack); } @@ -132,9 +132,9 @@ public abstract class GT_MetaGenerated_Item_X32 extends GT_MetaGenerated_Item { */ public final IIconContainer getIconContainer(int aMetaData, Materials aMaterial) { return mGeneratedPrefixList[aMetaData / 1000] != null - && mGeneratedPrefixList[aMetaData / 1000].mTextureIndex >= 0 - ? aMaterial.mIconSet.mTextures[mGeneratedPrefixList[aMetaData / 1000].mTextureIndex] - : null; + && mGeneratedPrefixList[aMetaData / 1000].mTextureIndex >= 0 + ? aMaterial.mIconSet.mTextures[mGeneratedPrefixList[aMetaData / 1000].mTextureIndex] + : null; } /** @@ -174,13 +174,13 @@ public abstract class GT_MetaGenerated_Item_X32 extends GT_MetaGenerated_Item { @Override public final IIconContainer getIconContainer(int aMetaData) { return GregTech_API.sGeneratedMaterials[aMetaData % 1000] == null ? null - : getIconContainer(aMetaData, GregTech_API.sGeneratedMaterials[aMetaData % 1000]); + : getIconContainer(aMetaData, GregTech_API.sGeneratedMaterials[aMetaData % 1000]); } @Override public GT_GeneratedMaterial_Renderer getMaterialRenderer(int aMetaData) { return GregTech_API.sGeneratedMaterials[aMetaData % 1000] == null ? null - : GregTech_API.sGeneratedMaterials[aMetaData % 1000].renderer; + : GregTech_API.sGeneratedMaterials[aMetaData % 1000].renderer; } @Override @@ -191,7 +191,7 @@ public abstract class GT_MetaGenerated_Item_X32 extends GT_MetaGenerated_Item { Materials aMaterial = GregTech_API.sGeneratedMaterials[i % 1000]; if (aPrefix != null && aMaterial != null) { if (doesMaterialAllowGeneration(aPrefix, aMaterial) - && doesShowInCreative(aPrefix, aMaterial, GregTech_API.sDoShowAllItemsInCreative)) { + && doesShowInCreative(aPrefix, aMaterial, GregTech_API.sDoShowAllItemsInCreative)) { ItemStack tStack = new ItemStack(this, 1, i); isItemStackUsable(tStack); aList.add(tStack); diff --git a/src/main/java/gregtech/api/items/GT_MetaGenerated_Tool.java b/src/main/java/gregtech/api/items/GT_MetaGenerated_Tool.java index 5243a7bb07..ac376098ed 100644 --- a/src/main/java/gregtech/api/items/GT_MetaGenerated_Tool.java +++ b/src/main/java/gregtech/api/items/GT_MetaGenerated_Tool.java @@ -64,16 +64,14 @@ import gregtech.common.tools.GT_Tool_Turbine; * Materials.Bismuth, Materials.Bismuth, null); */ @Optional.InterfaceList( - value = { - @Optional.Interface( - iface = "forestry.api.arboriculture.IToolGrafter", - modid = "ForestryAPI|arboriculture"), - @Optional.Interface(iface = "mods.railcraft.api.core.items.IToolCrowbar", modid = "RailcraftAPI|items"), - @Optional.Interface(iface = "buildcraft.api.tools.IToolWrench", modid = "BuildCraftAPI|tools"), - @Optional.Interface(iface = "crazypants.enderio.api.tool.ITool", modid = "EnderIOAPI|Tools"), - @Optional.Interface(iface = "mrtjp.projectred.api.IScrewdriver", modid = "ProjRed|Core"), }) + value = { + @Optional.Interface(iface = "forestry.api.arboriculture.IToolGrafter", modid = "ForestryAPI|arboriculture"), + @Optional.Interface(iface = "mods.railcraft.api.core.items.IToolCrowbar", modid = "RailcraftAPI|items"), + @Optional.Interface(iface = "buildcraft.api.tools.IToolWrench", modid = "BuildCraftAPI|tools"), + @Optional.Interface(iface = "crazypants.enderio.api.tool.ITool", modid = "EnderIOAPI|Tools"), + @Optional.Interface(iface = "mrtjp.projectred.api.IScrewdriver", modid = "ProjRed|Core"), }) public abstract class GT_MetaGenerated_Tool extends GT_MetaBase_Item - implements IDamagableItem, IToolGrafter, IToolCrowbar, IToolWrench, ITool, IScrewdriver { + implements IDamagableItem, IToolGrafter, IToolCrowbar, IToolWrench, ITool, IScrewdriver { /** * All instances of this Item Class are listed here. This gets used to register the Renderer to all Items of this @@ -165,17 +163,15 @@ public abstract class GT_MetaGenerated_Tool extends GT_MetaBase_Item * @return An ItemStack containing the newly created Item, but without specific Stats. */ public final ItemStack addTool(int aID, String aEnglish, String aToolTip, IToolStats aToolStats, - Object... aOreDictNamesAndAspects) { + Object... aOreDictNamesAndAspects) { if (aToolTip == null) aToolTip = ""; if (aID >= 0 && aID < 32766 && aID % 2 == 0) { GT_LanguageManager.addStringLocalization(getUnlocalizedName() + "." + aID + ".name", aEnglish); GT_LanguageManager.addStringLocalization(getUnlocalizedName() + "." + aID + ".tooltip", aToolTip); - GT_LanguageManager.addStringLocalization( - getUnlocalizedName() + "." + (aID + 1) + ".name", - aEnglish + " (Empty)"); - GT_LanguageManager.addStringLocalization( - getUnlocalizedName() + "." + (aID + 1) + ".tooltip", - "You need to recharge it"); + GT_LanguageManager + .addStringLocalization(getUnlocalizedName() + "." + (aID + 1) + ".name", aEnglish + " (Empty)"); + GT_LanguageManager + .addStringLocalization(getUnlocalizedName() + "." + (aID + 1) + ".tooltip", "You need to recharge it"); mToolStats.put((short) aID, aToolStats); mToolStats.put((short) (aID + 1), aToolStats); aToolStats.onStatsAddedToTool(this, aID); @@ -204,7 +200,7 @@ public abstract class GT_MetaGenerated_Tool extends GT_MetaBase_Item * @param aElectricArray The Electric Stats of this Tool (or null if not electric) */ public final ItemStack getToolWithStats(int aToolID, int aAmount, Materials aPrimaryMaterial, - Materials aSecondaryMaterial, long[] aElectricArray) { + Materials aSecondaryMaterial, long[] aElectricArray) { ItemStack rStack = new ItemStack(this, aAmount, aToolID); IToolStats tToolStats = getToolStats(rStack); if (tToolStats != null) { @@ -212,8 +208,8 @@ public abstract class GT_MetaGenerated_Tool extends GT_MetaBase_Item if (aPrimaryMaterial != null) { tToolNBT.setString("PrimaryMaterial", aPrimaryMaterial.mName); tToolNBT.setLong( - "MaxDamage", - 100L * (long) (aPrimaryMaterial.mDurability * tToolStats.getMaxDurabilityMultiplier())); + "MaxDamage", + 100L * (long) (aPrimaryMaterial.mDurability * tToolStats.getMaxDurabilityMultiplier())); } if (aSecondaryMaterial != null) tToolNBT.setString("SecondaryMaterial", aSecondaryMaterial.mName); @@ -237,31 +233,21 @@ public abstract class GT_MetaGenerated_Tool extends GT_MetaBase_Item */ @Mod.EventHandler public void onHarvestBlockEvent(ArrayList aDrops, ItemStack aStack, EntityPlayer aPlayer, Block aBlock, - int aX, int aY, int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, - BlockEvent.HarvestDropsEvent aEvent) { + int aX, int aY, int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent) { IToolStats tStats = getToolStats(aStack); if (isItemStackUsable(aStack) && getDigSpeed(aStack, aBlock, aMetaData) > 0.0F) doDamage( - aStack, - tStats.convertBlockDrops( - aDrops, - aStack, - aPlayer, - aBlock, - aX, - aY, - aZ, - aMetaData, - aFortune, - aSilkTouch, - aEvent) * tStats.getToolDamagePerDropConversion()); + aStack, + tStats + .convertBlockDrops(aDrops, aStack, aPlayer, aBlock, aX, aY, aZ, aMetaData, aFortune, aSilkTouch, aEvent) + * tStats.getToolDamagePerDropConversion()); } @Mod.EventHandler public float onBlockBreakSpeedEvent(float aDefault, ItemStack aStack, EntityPlayer aPlayer, Block aBlock, int aX, - int aY, int aZ, byte aMetaData, PlayerEvent.BreakSpeed aEvent) { + int aY, int aZ, byte aMetaData, PlayerEvent.BreakSpeed aEvent) { IToolStats tStats = getToolStats(aStack); return tStats == null ? aDefault - : tStats.getMiningSpeed(aBlock, aMetaData, aDefault, aPlayer, aPlayer.worldObj, aX, aY, aZ); + : tStats.getMiningSpeed(aBlock, aMetaData, aDefault, aPlayer, aPlayer.worldObj, aX, aY, aZ); } @Override @@ -274,12 +260,12 @@ public abstract class GT_MetaGenerated_Tool extends GT_MetaBase_Item if (tStats.isChainsaw() && (aBlock instanceof IShearable target)) { if ((target.isShearable(aStack, aPlayer.worldObj, aX, aY, aZ))) { ArrayList drops = target.onSheared( - aStack, - aPlayer.worldObj, - aX, - aY, - aZ, - EnchantmentHelper.getEnchantmentLevel(Enchantment.fortune.effectId, aStack)); + aStack, + aPlayer.worldObj, + aX, + aY, + aZ, + EnchantmentHelper.getEnchantmentLevel(Enchantment.fortune.effectId, aStack)); for (ItemStack stack : drops) { float f = 0.7F; double d = itemRand.nextFloat() * f + (1.0F - f) * 0.5D; @@ -305,39 +291,38 @@ public abstract class GT_MetaGenerated_Tool extends GT_MetaBase_Item if (super.onLeftClickEntity(aStack, aPlayer, aEntity)) return true; if (aEntity.canAttackWithItem() && !aEntity.hitByEntity(aPlayer)) { float tMagicDamage = tStats.getMagicDamageAgainstEntity( - aEntity instanceof EntityLivingBase - ? EnchantmentHelper.getEnchantmentModifierLiving(aPlayer, (EntityLivingBase) aEntity) - : 0.0F, + aEntity instanceof EntityLivingBase + ? EnchantmentHelper.getEnchantmentModifierLiving(aPlayer, (EntityLivingBase) aEntity) + : 0.0F, + aEntity, + aStack, + aPlayer), + tDamage = tStats.getNormalDamageAgainstEntity( + (float) aPlayer.getEntityAttribute(SharedMonsterAttributes.attackDamage) + .getAttributeValue() + getToolCombatDamage(aStack), aEntity, aStack, - aPlayer), - tDamage = tStats.getNormalDamageAgainstEntity( - (float) aPlayer.getEntityAttribute(SharedMonsterAttributes.attackDamage) - .getAttributeValue() - + getToolCombatDamage(aStack), - aEntity, - aStack, - aPlayer); + aPlayer); if (tDamage + tMagicDamage > 0.0F) { boolean tCriticalHit = aPlayer.fallDistance > 0.0F && !aPlayer.onGround - && !aPlayer.isOnLadder() - && !aPlayer.isInWater() - && !aPlayer.isPotionActive(Potion.blindness) - && aPlayer.ridingEntity == null - && aEntity instanceof EntityLivingBase; + && !aPlayer.isOnLadder() + && !aPlayer.isInWater() + && !aPlayer.isPotionActive(Potion.blindness) + && aPlayer.ridingEntity == null + && aEntity instanceof EntityLivingBase; if (tCriticalHit && tDamage > 0.0F) tDamage *= 1.5F; tDamage += tMagicDamage; if (aEntity.attackEntityFrom(tStats.getDamageSource(aPlayer, aEntity), tDamage)) { if (aEntity instanceof EntityLivingBase) aEntity.setFire(EnchantmentHelper.getFireAspectModifier(aPlayer) * 4); int tKnockcack = (aPlayer.isSprinting() ? 1 : 0) + (aEntity instanceof EntityLivingBase - ? EnchantmentHelper.getKnockbackModifier(aPlayer, (EntityLivingBase) aEntity) - : 0); + ? EnchantmentHelper.getKnockbackModifier(aPlayer, (EntityLivingBase) aEntity) + : 0); if (tKnockcack > 0) { aEntity.addVelocity( - -MathHelper.sin(aPlayer.rotationYaw * (float) Math.PI / 180.0F) * tKnockcack * 0.5F, - 0.1D, - MathHelper.cos(aPlayer.rotationYaw * (float) Math.PI / 180.0F) * tKnockcack * 0.5F); + -MathHelper.sin(aPlayer.rotationYaw * (float) Math.PI / 180.0F) * tKnockcack * 0.5F, + 0.1D, + MathHelper.cos(aPlayer.rotationYaw * (float) Math.PI / 180.0F) * tKnockcack * 0.5F); aPlayer.motionX *= 0.6D; aPlayer.motionZ *= 0.6D; aPlayer.setSprinting(false); @@ -351,9 +336,8 @@ public abstract class GT_MetaGenerated_Tool extends GT_MetaBase_Item EnchantmentHelper.func_151385_b(aPlayer, aEntity); if (aEntity instanceof EntityLivingBase) aPlayer.addStat(StatList.damageDealtStat, Math.round(tDamage * 10.0F)); - aEntity.hurtResistantTime = Math.max( - 1, - tStats.getHurtResistanceTime(aEntity.hurtResistantTime, aEntity)); + aEntity.hurtResistantTime = Math + .max(1, tStats.getHurtResistanceTime(aEntity.hurtResistantTime, aEntity)); aPlayer.addExhaustion(0.3F); doDamage(aStack, tStats.getToolDamagePerEntityAttack()); } @@ -422,133 +406,120 @@ public abstract class GT_MetaGenerated_Tool extends GT_MetaBase_Item // Overflow Tier -> toolQuality float aBaseEff = (5f + getToolCombatDamage(aStack)) * 1000f; float aOptFlow = (Math.max( - Float.MIN_NORMAL, - ((GT_MetaGenerated_Tool) aStack.getItem()).getToolStats(aStack) - .getSpeedMultiplier() - * ((GT_MetaGenerated_Tool) aStack.getItem()).getPrimaryMaterial(aStack).mToolSpeed - * 50F)); + Float.MIN_NORMAL, + ((GT_MetaGenerated_Tool) aStack.getItem()).getToolStats(aStack) + .getSpeedMultiplier() + * ((GT_MetaGenerated_Tool) aStack.getItem()).getPrimaryMaterial(aStack).mToolSpeed + * 50F)); aList.add( - tOffset + 0, - EnumChatFormatting.GRAY + String.format( - transItem("001", "Durability: %s/%s"), - "" + EnumChatFormatting.GREEN + formatNumbers(tMaxDamage - getToolDamage(aStack)) + " ", - " " + formatNumbers(tMaxDamage)) + EnumChatFormatting.GRAY); + tOffset + 0, + EnumChatFormatting.GRAY + String.format( + transItem("001", "Durability: %s/%s"), + "" + EnumChatFormatting.GREEN + formatNumbers(tMaxDamage - getToolDamage(aStack)) + " ", + " " + formatNumbers(tMaxDamage)) + EnumChatFormatting.GRAY); aList.add( - tOffset + 1, - EnumChatFormatting.GRAY - + String.format( - transItem("002", "%s lvl %s"), - tMaterial.mLocalizedName + EnumChatFormatting.YELLOW, - "" + getHarvestLevel(aStack, "")) - + EnumChatFormatting.GRAY); + tOffset + 1, + EnumChatFormatting.GRAY + String.format( + transItem("002", "%s lvl %s"), + tMaterial.mLocalizedName + EnumChatFormatting.YELLOW, + "" + getHarvestLevel(aStack, "")) + EnumChatFormatting.GRAY); aList.add( - tOffset + 2, - EnumChatFormatting.WHITE - + String.format( - transItem("005", "Turbine Efficiency: %s"), - "" + EnumChatFormatting.BLUE + (50.0F + (10.0F * getToolCombatDamage(aStack)))) - + "%" - + EnumChatFormatting.GRAY); + tOffset + 2, + EnumChatFormatting.WHITE + + String.format( + transItem("005", "Turbine Efficiency: %s"), + "" + EnumChatFormatting.BLUE + (50.0F + (10.0F * getToolCombatDamage(aStack)))) + + "%" + + EnumChatFormatting.GRAY); aList.add( - tOffset + 3, - EnumChatFormatting.WHITE + String.format( - transItem("006", "Optimal Steam flow: %s L/t"), - "" + EnumChatFormatting.GOLD - + formatNumbers( - GT_Utility.safeInt( - (long) (Math.max( - Float.MIN_NORMAL, - tStats.getSpeedMultiplier() - * getPrimaryMaterial(aStack).mToolSpeed - * (1000 * getPrimaryMaterial( - aStack).mSteamMultiplier / 20))))) - + EnumChatFormatting.GRAY)); + tOffset + 3, + EnumChatFormatting.WHITE + String.format( + transItem("006", "Optimal Steam flow: %s L/t"), + "" + EnumChatFormatting.GOLD + + formatNumbers( + GT_Utility.safeInt( + (long) (Math.max( + Float.MIN_NORMAL, + tStats.getSpeedMultiplier() * getPrimaryMaterial(aStack).mToolSpeed + * (1000 * getPrimaryMaterial(aStack).mSteamMultiplier / 20))))) + + EnumChatFormatting.GRAY)); aList.add( - tOffset + 4, - EnumChatFormatting.WHITE + String.format( - transItem("900", "Energy from Optimal Steam Flow: %s EU/t"), - "" + EnumChatFormatting.GOLD - + formatNumbers( - GT_Utility.safeInt( - (long) (Math.max( - Float.MIN_NORMAL, - tStats.getSpeedMultiplier() - * getPrimaryMaterial(aStack).mToolSpeed - * (1000 * getPrimaryMaterial( - aStack).mSteamMultiplier / 20)) - * (50.0F + (10.0F * getToolCombatDamage(aStack))) - / 200))) - + EnumChatFormatting.GRAY)); + tOffset + 4, + EnumChatFormatting.WHITE + String.format( + transItem("900", "Energy from Optimal Steam Flow: %s EU/t"), + "" + EnumChatFormatting.GOLD + + formatNumbers( + GT_Utility.safeInt( + (long) (Math.max( + Float.MIN_NORMAL, + tStats.getSpeedMultiplier() * getPrimaryMaterial(aStack).mToolSpeed + * (1000 * getPrimaryMaterial(aStack).mSteamMultiplier / 20)) + * (50.0F + (10.0F * getToolCombatDamage(aStack))) + / 200))) + + EnumChatFormatting.GRAY)); { float[] calculatedFlow = calculateLooseFlow(aOptFlow, aBaseEff); float aOptFlowLoose = calculatedFlow[0]; float aBaseEffLoose = calculatedFlow[1]; aList.add( - tOffset + 5, - EnumChatFormatting.AQUA + String.format( - transItem("500", "Turbine Efficiency (Loose): %s"), - "" + EnumChatFormatting.BLUE - + (long) aBaseEffLoose / 100 - + "%" - + EnumChatFormatting.GRAY)); + tOffset + 5, + EnumChatFormatting.AQUA + String.format( + transItem("500", "Turbine Efficiency (Loose): %s"), + "" + EnumChatFormatting.BLUE + (long) aBaseEffLoose / 100 + "%" + EnumChatFormatting.GRAY)); aList.add( - tOffset + 6, - EnumChatFormatting.AQUA + String.format( - transItem("501", "Optimal Steam flow (Loose): %s L/t"), - "" + EnumChatFormatting.GOLD - + formatNumbers( - ((long) aOptFlowLoose - * getPrimaryMaterial(aStack).mSteamMultiplier)) - + EnumChatFormatting.GRAY)); + tOffset + 6, + EnumChatFormatting.AQUA + String.format( + transItem("501", "Optimal Steam flow (Loose): %s L/t"), + "" + EnumChatFormatting.GOLD + + formatNumbers(((long) aOptFlowLoose * getPrimaryMaterial(aStack).mSteamMultiplier)) + + EnumChatFormatting.GRAY)); aList.add( - tOffset + 7, - EnumChatFormatting.AQUA + String.format( - transItem("901", "Energy from Optimal Steam Flow (Loose): %s EU/t"), - "" + EnumChatFormatting.GOLD - + formatNumbers( - ((long) aOptFlowLoose * getPrimaryMaterial(aStack).mSteamMultiplier - / 10000) * ((long) aBaseEffLoose / 2)) - + EnumChatFormatting.GRAY)); + tOffset + 7, + EnumChatFormatting.AQUA + String.format( + transItem("901", "Energy from Optimal Steam Flow (Loose): %s EU/t"), + "" + EnumChatFormatting.GOLD + + formatNumbers( + ((long) aOptFlowLoose * getPrimaryMaterial(aStack).mSteamMultiplier / 10000) + * ((long) aBaseEffLoose / 2)) + + EnumChatFormatting.GRAY)); aList.add( - tOffset + 8, - EnumChatFormatting.GRAY + "(Superheated Steam EU values are 2x those of Steam)"); + tOffset + 8, + EnumChatFormatting.GRAY + "(Superheated Steam EU values are 2x those of Steam)"); } aList.add( - tOffset + 9, - EnumChatFormatting.LIGHT_PURPLE + String.format( - transItem("007", "Energy from Optimal Gas Flow: %s EU/t"), - "" + EnumChatFormatting.GOLD - + formatNumbers( - GT_Utility.safeInt( - (long) (Math.max( - Float.MIN_NORMAL, - tStats.getSpeedMultiplier() - * getPrimaryMaterial(aStack).mToolSpeed - * 50 - * getPrimaryMaterial(aStack).mGasMultiplier) - * (50.0F + (10.0F * getToolCombatDamage(aStack))) - / 100))) - + EnumChatFormatting.GRAY)); + tOffset + 9, + EnumChatFormatting.LIGHT_PURPLE + String.format( + transItem("007", "Energy from Optimal Gas Flow: %s EU/t"), + "" + EnumChatFormatting.GOLD + + formatNumbers( + GT_Utility.safeInt( + (long) (Math.max( + Float.MIN_NORMAL, + tStats.getSpeedMultiplier() * getPrimaryMaterial(aStack).mToolSpeed + * 50 + * getPrimaryMaterial(aStack).mGasMultiplier) + * (50.0F + (10.0F * getToolCombatDamage(aStack))) + / 100))) + + EnumChatFormatting.GRAY)); aList.add( - tOffset + 10, - EnumChatFormatting.LIGHT_PURPLE + String.format( - transItem("008", "Energy from Optimal Plasma Flow: %s EU/t"), - "" + EnumChatFormatting.GOLD - + formatNumbers( - GT_Utility.safeInt( - (long) (Math.max( - Float.MIN_NORMAL, - tStats.getSpeedMultiplier() - * getPrimaryMaterial(aStack).mToolSpeed - * 2000 - * getPrimaryMaterial(aStack).mPlasmaMultiplier) - * (50.0F + (10.0F * getToolCombatDamage(aStack))) - * (1.05 / 100)))) - + EnumChatFormatting.GRAY)); + tOffset + 10, + EnumChatFormatting.LIGHT_PURPLE + String.format( + transItem("008", "Energy from Optimal Plasma Flow: %s EU/t"), + "" + EnumChatFormatting.GOLD + + formatNumbers( + GT_Utility.safeInt( + (long) (Math.max( + Float.MIN_NORMAL, + tStats.getSpeedMultiplier() * getPrimaryMaterial(aStack).mToolSpeed + * 2000 + * getPrimaryMaterial(aStack).mPlasmaMultiplier) + * (50.0F + (10.0F * getToolCombatDamage(aStack))) + * (1.05 / 100)))) + + EnumChatFormatting.GRAY)); aList.add( - tOffset + 12, - EnumChatFormatting.GRAY + "(EU/t values include efficiency and are not 100% accurate)"); + tOffset + 12, + EnumChatFormatting.GRAY + "(EU/t values include efficiency and are not 100% accurate)"); int toolQualityLevel = GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mToolQuality; int overflowMultiplier = 0; if (toolQualityLevel >= 6) { @@ -559,51 +530,46 @@ public abstract class GT_MetaGenerated_Tool extends GT_MetaBase_Item overflowMultiplier = 1; } aList.add( - tOffset + 11, - EnumChatFormatting.LIGHT_PURPLE + String.format( - transItem("502", "Overflow Efficiency Tier: %s"), - "" + EnumChatFormatting.GOLD + overflowMultiplier + EnumChatFormatting.GRAY)); + tOffset + 11, + EnumChatFormatting.LIGHT_PURPLE + String.format( + transItem("502", "Overflow Efficiency Tier: %s"), + "" + EnumChatFormatting.GOLD + overflowMultiplier + EnumChatFormatting.GRAY)); } else { aList.add( - tOffset, - EnumChatFormatting.WHITE + String.format( - transItem("001", "Durability: %s/%s"), - "" + EnumChatFormatting.GREEN + formatNumbers(tMaxDamage - getToolDamage(aStack)) + " ", - " " + formatNumbers(tMaxDamage)) + EnumChatFormatting.GRAY); + tOffset, + EnumChatFormatting.WHITE + String.format( + transItem("001", "Durability: %s/%s"), + "" + EnumChatFormatting.GREEN + formatNumbers(tMaxDamage - getToolDamage(aStack)) + " ", + " " + formatNumbers(tMaxDamage)) + EnumChatFormatting.GRAY); aList.add( - tOffset + 1, - EnumChatFormatting.WHITE - + String.format( - transItem("002", "%s lvl %s"), - tMaterial.mLocalizedName + EnumChatFormatting.YELLOW, - "" + getHarvestLevel(aStack, "")) - + EnumChatFormatting.GRAY); + tOffset + 1, + EnumChatFormatting.WHITE + String.format( + transItem("002", "%s lvl %s"), + tMaterial.mLocalizedName + EnumChatFormatting.YELLOW, + "" + getHarvestLevel(aStack, "")) + EnumChatFormatting.GRAY); aList.add( - tOffset + 2, - EnumChatFormatting.WHITE - + String.format( - transItem("003", "Attack Damage: %s"), - "" + EnumChatFormatting.BLUE + getToolCombatDamage(aStack)) - + EnumChatFormatting.GRAY); + tOffset + 2, + EnumChatFormatting.WHITE + String.format( + transItem("003", "Attack Damage: %s"), + "" + EnumChatFormatting.BLUE + getToolCombatDamage(aStack)) + EnumChatFormatting.GRAY); aList.add( - tOffset + 3, - EnumChatFormatting.WHITE - + String.format( - transItem("004", "Mining Speed: %s"), - "" + EnumChatFormatting.GOLD - + Math.max( - Float.MIN_NORMAL, - tStats.getSpeedMultiplier() - * getPrimaryMaterial(aStack).mToolSpeed)) - + EnumChatFormatting.GRAY); + tOffset + 3, + EnumChatFormatting.WHITE + + String.format( + transItem("004", "Mining Speed: %s"), + "" + EnumChatFormatting.GOLD + + Math.max( + Float.MIN_NORMAL, + tStats.getSpeedMultiplier() * getPrimaryMaterial(aStack).mToolSpeed)) + + EnumChatFormatting.GRAY); NBTTagCompound aNBT = aStack.getTagCompound(); if (aNBT != null) { aNBT = aNBT.getCompoundTag("GT.ToolStats"); if (aNBT != null && aNBT.hasKey("Heat")) { int tHeat = aNBT.getInteger("Heat"); long tWorldTime = aPlayer.getEntityWorld() - .getWorldTime(); + .getWorldTime(); if (aNBT.hasKey("HeatTime")) { long tHeatTime = aNBT.getLong("HeatTime"); if (tWorldTime > (tHeatTime + 10)) { @@ -615,11 +581,11 @@ public abstract class GT_MetaGenerated_Tool extends GT_MetaBase_Item } aList.add( - tOffset + 3, - EnumChatFormatting.RED + "Heat: " - + aNBT.getInteger("Heat") - + " K" - + EnumChatFormatting.GRAY); + tOffset + 3, + EnumChatFormatting.RED + "Heat: " + + aNBT.getInteger("Heat") + + " K" + + EnumChatFormatting.GRAY); } } } @@ -637,7 +603,7 @@ public abstract class GT_MetaGenerated_Tool extends GT_MetaBase_Item if (aNBT != null) { aNBT = aNBT.getCompoundTag("GT.ToolStats"); if (aNBT != null && aNBT.getBoolean("Electric")) return new Long[] { aNBT.getLong("MaxCharge"), - aNBT.getLong("Voltage"), aNBT.getLong("Tier"), aNBT.getLong("SpecialData") }; + aNBT.getLong("Voltage"), aNBT.getLong("Tier"), aNBT.getLong("SpecialData") }; } return null; } @@ -670,8 +636,7 @@ public abstract class GT_MetaGenerated_Tool extends GT_MetaBase_Item } if (use(aStack, (int) aAmount, null)) { if (java.util.concurrent.ThreadLocalRandom.current() - .nextInt(0, 25) - == 0) { + .nextInt(0, 25) == 0) { long tNewDamage = getToolDamage(aStack) + aAmount; setToolDamage(aStack, tNewDamage); if (tNewDamage >= getToolMaxDamage(aStack)) { @@ -693,8 +658,8 @@ public abstract class GT_MetaGenerated_Tool extends GT_MetaBase_Item IToolStats tStats = getToolStats(aStack); if (tStats == null || Math.max(0, getHarvestLevel(aStack, "")) < aBlock.getHarvestLevel(aMetaData)) return 0.0F; return tStats.isMinableBlock(aBlock, (byte) aMetaData) - ? Math.max(Float.MIN_NORMAL, tStats.getSpeedMultiplier() * getPrimaryMaterial(aStack).mToolSpeed) - : 0.0F; + ? Math.max(Float.MIN_NORMAL, tStats.getSpeedMultiplier() * getPrimaryMaterial(aStack).mToolSpeed) + : 0.0F; } @Override @@ -710,14 +675,14 @@ public abstract class GT_MetaGenerated_Tool extends GT_MetaBase_Item @Override public boolean onBlockDestroyed(ItemStack aStack, World aWorld, Block aBlock, int aX, int aY, int aZ, - EntityLivingBase aPlayer) { + EntityLivingBase aPlayer) { if (!isItemStackUsable(aStack)) return false; IToolStats tStats = getToolStats(aStack); if (tStats == null) return false; GT_Utility.doSoundAtClient(tStats.getMiningSound(), 1, 1.0F); doDamage( - aStack, - (int) Math.max(1, aBlock.getBlockHardness(aWorld, aX, aY, aZ) * tStats.getToolDamagePerBlockBreak())); + aStack, + (int) Math.max(1, aBlock.getBlockHardness(aWorld, aX, aY, aZ) * tStats.getToolDamagePerBlockBreak())); return getDigSpeed(aStack, aBlock, aWorld.getBlockMetadata(aX, aY, aZ)) > 0.0F; } @@ -759,7 +724,7 @@ public abstract class GT_MetaGenerated_Tool extends GT_MetaBase_Item public float getSaplingModifier(ItemStack aStack, World aWorld, EntityPlayer aPlayer, int aX, int aY, int aZ) { IToolStats tStats = getToolStats(aStack); return tStats != null && tStats.isGrafter() ? Math.min(100.0F, (1 + getHarvestLevel(aStack, "")) * 20.0F) - : 0.0F; + : 0.0F; } @Override @@ -900,12 +865,12 @@ public abstract class GT_MetaGenerated_Tool extends GT_MetaBase_Item for (int i = 0; i < tEnchants.length; i++) if (tLevels[i] > 0) { Integer tLevel = tMap.get(tEnchants[i].effectId); tMap.put( - tEnchants[i].effectId, - tLevel == null ? tLevels[i] : tLevel == tLevels[i] ? tLevel + 1 : Math.max(tLevel, tLevels[i])); + tEnchants[i].effectId, + tLevel == null ? tLevels[i] : tLevel == tLevels[i] ? tLevel + 1 : Math.max(tLevel, tLevels[i])); } for (Entry tEntry : tMap.entrySet()) { if (tEntry.getKey() == 33 || (tEntry.getKey() == 20 && tEntry.getValue() > 2) - || tEntry.getKey() == Enchantment_Radioactivity.INSTANCE.effectId) + || tEntry.getKey() == Enchantment_Radioactivity.INSTANCE.effectId) tResult.put(tEntry.getKey(), tEntry.getValue()); else switch (Enchantment.enchantmentsList[tEntry.getKey()].type) { case weapon: diff --git a/src/main/java/gregtech/api/items/GT_RadioactiveCellIC_Item.java b/src/main/java/gregtech/api/items/GT_RadioactiveCellIC_Item.java index 617e02cfe6..c38510f750 100644 --- a/src/main/java/gregtech/api/items/GT_RadioactiveCellIC_Item.java +++ b/src/main/java/gregtech/api/items/GT_RadioactiveCellIC_Item.java @@ -25,7 +25,7 @@ public class GT_RadioactiveCellIC_Item extends GT_RadioactiveCell_Item implement public final boolean sMox; public GT_RadioactiveCellIC_Item(String aUnlocalized, String aEnglish, int aCellcount, int maxDamage, float aEnergy, - int aRadiation, float aHeat, ItemStack aDepleted, boolean aMox) { + int aRadiation, float aHeat, ItemStack aDepleted, boolean aMox) { super(aUnlocalized, aEnglish, aCellcount); setMaxStackSize(64); this.maxDmg = maxDamage; @@ -38,27 +38,20 @@ public class GT_RadioactiveCellIC_Item extends GT_RadioactiveCell_Item implement if (aDepleted != null && aEnergy > 0 && aHeat > 0) { // avoid adding depleted cells to recipe map GT_Values.RA.addIC2ReactorFuelCell( - new ItemStack(this), - aDepleted, - aMox, - aHeat * MYSTERIOUS_MULTIPLIER_HEAT, - aEnergy, - aCellcount); + new ItemStack(this), + aDepleted, + aMox, + aHeat * MYSTERIOUS_MULTIPLIER_HEAT, + aEnergy, + aCellcount); } } private static int checkPulseable(IReactor reactor, int x, int y, ItemStack me, int mex, int mey, boolean heatrun) { ItemStack other = reactor.getItemAt(x, y); if ((other != null) && ((other.getItem() instanceof IReactorComponent)) - && (((IReactorComponent) other.getItem()).acceptUraniumPulse( - reactor, - other, - me, - x, - y, - mex, - mey, - heatrun))) { + && (((IReactorComponent) other.getItem()) + .acceptUraniumPulse(reactor, other, me, x, y, mex, mey, heatrun))) { return 1; } return 0; @@ -81,9 +74,9 @@ public class GT_RadioactiveCellIC_Item extends GT_RadioactiveCell_Item implement checkPulseable(reactor, x, y + 1, yourStack, x, y, heatrun); } else { pulses += checkPulseable(reactor, x - 1, y, yourStack, x, y, heatrun) - + checkPulseable(reactor, x + 1, y, yourStack, x, y, heatrun) - + checkPulseable(reactor, x, y - 1, yourStack, x, y, heatrun) - + checkPulseable(reactor, x, y + 1, yourStack, x, y, heatrun); + + checkPulseable(reactor, x + 1, y, yourStack, x, y, heatrun) + + checkPulseable(reactor, x, y - 1, yourStack, x, y, heatrun) + + checkPulseable(reactor, x, y + 1, yourStack, x, y, heatrun); // int heat = sumUp(pulses) * 4; @@ -102,11 +95,11 @@ public class GT_RadioactiveCellIC_Item extends GT_RadioactiveCell_Item implement int dheat = heat / heatAcceptors.size(); heat -= dheat; dheat = ((IReactorComponent) heatAcceptors.get(0).stack.getItem()).alterHeat( - reactor, - heatAcceptors.get(0).stack, - heatAcceptors.get(0).x, - heatAcceptors.get(0).y, - dheat); + reactor, + heatAcceptors.get(0).stack, + heatAcceptors.get(0).x, + heatAcceptors.get(0).y, + dheat); heat += dheat; heatAcceptors.remove(0); } @@ -135,14 +128,14 @@ public class GT_RadioactiveCellIC_Item extends GT_RadioactiveCell_Item implement private void checkHeatAcceptor(IReactor reactor, int x, int y, ArrayList heatAcceptors) { ItemStack thing = reactor.getItemAt(x, y); if ((thing != null) && ((thing.getItem() instanceof IReactorComponent)) - && (((IReactorComponent) thing.getItem()).canStoreHeat(reactor, thing, x, y))) { + && (((IReactorComponent) thing.getItem()).canStoreHeat(reactor, thing, x, y))) { heatAcceptors.add(new ItemStackCoord(thing, x, y)); } } @Override public boolean acceptUraniumPulse(IReactor reactor, ItemStack yourStack, ItemStack pulsingStack, int youX, int youY, - int pulseX, int pulseY, boolean heatrun) { + int pulseX, int pulseY, boolean heatrun) { if (!heatrun) { if (sMox) { float breedereffectiveness = (float) reactor.getHeat() / (float) reactor.getMaxHeat(); diff --git a/src/main/java/gregtech/api/items/GT_RadioactiveCell_Item.java b/src/main/java/gregtech/api/items/GT_RadioactiveCell_Item.java index 34492b6220..c927737889 100644 --- a/src/main/java/gregtech/api/items/GT_RadioactiveCell_Item.java +++ b/src/main/java/gregtech/api/items/GT_RadioactiveCell_Item.java @@ -144,12 +144,12 @@ public class GT_RadioactiveCell_Item extends GT_Generic_Item implements IBoxable default -> EnumChatFormatting.DARK_GRAY; }; EnumChatFormatting color1 = this instanceof GT_DepletetCell_Item ? color2 = EnumChatFormatting.DARK_GRAY - : EnumChatFormatting.WHITE; + : EnumChatFormatting.WHITE; aList.add( - color1 + String.format( - transItem("001", "Durability: %s/%s"), - "" + color2 + formatNumbers(this.maxDmg - getDurabilityOfStack(aStack)) + color1, - "" + formatNumbers(this.maxDmg))); + color1 + String.format( + transItem("001", "Durability: %s/%s"), + "" + color2 + formatNumbers(this.maxDmg - getDurabilityOfStack(aStack)) + color1, + "" + formatNumbers(this.maxDmg))); } @Override diff --git a/src/main/java/gregtech/api/items/GT_SolderingTool_Item.java b/src/main/java/gregtech/api/items/GT_SolderingTool_Item.java index 8d8db6a52a..07a0c3bd9b 100644 --- a/src/main/java/gregtech/api/items/GT_SolderingTool_Item.java +++ b/src/main/java/gregtech/api/items/GT_SolderingTool_Item.java @@ -16,16 +16,16 @@ import gregtech.api.util.GT_OreDictUnificator; public class GT_SolderingTool_Item extends GT_Tool_Item { public GT_SolderingTool_Item(String aUnlocalized, String aEnglish, int aMaxDamage, int aEntityDamage, - int aDischargedGTID) { + int aDischargedGTID) { super( - aUnlocalized, - aEnglish, - "To repair and construct Circuitry", - aMaxDamage, - aEntityDamage, - true, - -1, - aDischargedGTID); + aUnlocalized, + aEnglish, + "To repair and construct Circuitry", + aMaxDamage, + aEntityDamage, + true, + -1, + aDischargedGTID); GT_OreDictUnificator.registerOre(ToolDictNames.craftingToolSolderingIron, new ItemStack(this, 1, W)); GregTech_API.registerSolderingTool(new ItemStack(this, 1, W)); // setCraftingSound(GregTech_API.sSoundList.get(103)); @@ -37,18 +37,16 @@ public class GT_SolderingTool_Item extends GT_Tool_Item { @Override public void addAdditionalToolTips(List aList, ItemStack aStack, EntityPlayer aPlayer) { aList.add( - GT_LanguageManager.addStringLocalization( - getUnlocalizedName() + ".tooltip_1", - "Sets the Strength of outputted Redstone")); + GT_LanguageManager + .addStringLocalization(getUnlocalizedName() + ".tooltip_1", "Sets the Strength of outputted Redstone")); aList.add( - GT_LanguageManager.addStringLocalization( - getUnlocalizedName() + ".tooltip_2", - "Needs Soldering Metal in Inventory!")); + GT_LanguageManager + .addStringLocalization(getUnlocalizedName() + ".tooltip_2", "Needs Soldering Metal in Inventory!")); } @Override public boolean onItemUseFirst(ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, - int aSide, float hitX, float hitY, float hitZ) { + int aSide, float hitX, float hitY, float hitZ) { super.onItemUseFirst(aStack, aPlayer, aWorld, aX, aY, aZ, aSide, hitX, hitY, hitZ); return false; } diff --git a/src/main/java/gregtech/api/items/GT_Spray_Bug_Item.java b/src/main/java/gregtech/api/items/GT_Spray_Bug_Item.java index 7614ea2fe9..29df584326 100644 --- a/src/main/java/gregtech/api/items/GT_Spray_Bug_Item.java +++ b/src/main/java/gregtech/api/items/GT_Spray_Bug_Item.java @@ -14,20 +14,20 @@ public class GT_Spray_Bug_Item extends GT_Tool_Item { public GT_Spray_Bug_Item(String aUnlocalized, String aEnglish, int aMaxDamage, int aEntityDamage) { super( - aUnlocalized, - aEnglish, - "A very 'buggy' Spray", - aMaxDamage, - aEntityDamage, - true); /* - * addToEffectiveList(EntityCaveSpider.class.getName()); - * addToEffectiveList(EntitySpider.class.getName()); addToEffectiveList("EntityTFHedgeSpider"); - * addToEffectiveList("EntityTFKingSpider"); addToEffectiveList("EntityTFSwarmSpider"); - * addToEffectiveList("EntityTFTowerBroodling"); addToEffectiveList("EntityTFFireBeetle"); - * addToEffectiveList("EntityTFSlimeBeetle"); setCraftingSound(Sounds.IC2_TOOLS_PAINTER); - * setBreakingSound(Sounds.IC2_TOOLS_PAINTER); setEntityHitSound(Sounds.IC2_TOOLS_PAINTER); - * setUsageAmounts(8, 4, 1); - */ + aUnlocalized, + aEnglish, + "A very 'buggy' Spray", + aMaxDamage, + aEntityDamage, + true); /* + * addToEffectiveList(EntityCaveSpider.class.getName()); + * addToEffectiveList(EntitySpider.class.getName()); addToEffectiveList("EntityTFHedgeSpider"); + * addToEffectiveList("EntityTFKingSpider"); addToEffectiveList("EntityTFSwarmSpider"); + * addToEffectiveList("EntityTFTowerBroodling"); addToEffectiveList("EntityTFFireBeetle"); + * addToEffectiveList("EntityTFSlimeBeetle"); setCraftingSound(Sounds.IC2_TOOLS_PAINTER); + * setBreakingSound(Sounds.IC2_TOOLS_PAINTER); setEntityHitSound(Sounds.IC2_TOOLS_PAINTER); + * setUsageAmounts(8, 4, 1); + */ } /* @@ -38,7 +38,7 @@ public class GT_Spray_Bug_Item extends GT_Tool_Item { */ @Override public boolean onItemUseFirst(ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, - int aSide, float hitX, float hitY, float hitZ) { + int aSide, float hitX, float hitY, float hitZ) { super.onItemUseFirst(aStack, aPlayer, aWorld, aX, aY, aZ, aSide, hitX, hitY, hitZ); if (aWorld.isRemote) { return false; diff --git a/src/main/java/gregtech/api/items/GT_Spray_Foam_Item.java b/src/main/java/gregtech/api/items/GT_Spray_Foam_Item.java index fcd291fa01..0a68e222f8 100644 --- a/src/main/java/gregtech/api/items/GT_Spray_Foam_Item.java +++ b/src/main/java/gregtech/api/items/GT_Spray_Foam_Item.java @@ -21,15 +21,15 @@ public class GT_Spray_Foam_Item extends GT_Tool_Item { public GT_Spray_Foam_Item(String aUnlocalized, String aEnglish, int aMaxDamage, int aEntityDamage) { super( - aUnlocalized, - aEnglish, - "Precision Spray", - aMaxDamage, - aEntityDamage, - true); /* - * setCraftingSound(Sounds.IC2_TOOLS_PAINTER); setBreakingSound(Sounds.IC2_TOOLS_PAINTER); - * setEntityHitSound(Sounds.IC2_TOOLS_PAINTER); setUsageAmounts(25, 3, 1); - */ + aUnlocalized, + aEnglish, + "Precision Spray", + aMaxDamage, + aEntityDamage, + true); /* + * setCraftingSound(Sounds.IC2_TOOLS_PAINTER); setBreakingSound(Sounds.IC2_TOOLS_PAINTER); + * setEntityHitSound(Sounds.IC2_TOOLS_PAINTER); setUsageAmounts(25, 3, 1); + */ } /* @@ -46,7 +46,7 @@ public class GT_Spray_Foam_Item extends GT_Tool_Item { */ @Override public boolean onItemUseFirst(ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, - int aSide, float hitX, float hitY, float hitZ) { + int aSide, float hitX, float hitY, float hitZ) { super.onItemUseFirst(aStack, aPlayer, aWorld, aX, aY, aZ, aSide, hitX, hitY, hitZ); if (aPlayer.isSneaking()) return false; if (aWorld.isRemote) { @@ -59,10 +59,9 @@ public class GT_Spray_Foam_Item extends GT_Tool_Item { try { if (GT_Utility.getClassName(aTileEntity) - .startsWith("TileEntityCable")) { + .startsWith("TileEntityCable")) { if (GT_Utility.getPublicField(aTileEntity, "foamed") - .getByte(aTileEntity) - == 0) { + .getByte(aTileEntity) == 0) { if (GT_ModHandler.damageOrDechargeItem(aStack, 1, 1000, aPlayer)) { GT_Utility.sendSoundToPlayers(aWorld, SoundResource.IC2_TOOLS_PAINTER, 1.0F, -1, aX, aY, aZ); GT_Utility.callPublicMethod(aTileEntity, "changeFoam", (byte) 1); @@ -107,7 +106,7 @@ public class GT_Spray_Foam_Item extends GT_Tool_Item { switch (0) { case 0 -> { if (GT_Utility.isBlockAir(aWorld, aX, aY, aZ) - && GT_ModHandler.damageOrDechargeItem(aStack, 1, 1000, aPlayer)) { + && GT_ModHandler.damageOrDechargeItem(aStack, 1, 1000, aPlayer)) { GT_Utility.sendSoundToPlayers(aWorld, SoundResource.IC2_TOOLS_PAINTER, 1.0F, -1, aX, aY, aZ); aWorld.setBlock(aX, aY, aZ, GT_Utility.getBlockFromStack(tStack), tStack.getItemDamage(), 3); return true; @@ -116,22 +115,11 @@ public class GT_Spray_Foam_Item extends GT_Tool_Item { case 1 -> { for (byte i = 0; i < 4; i++) { if (GT_Utility.isBlockAir(aWorld, aX, aY, aZ) - && GT_ModHandler.damageOrDechargeItem(aStack, 1, 1000, aPlayer)) { - GT_Utility.sendSoundToPlayers( - aWorld, - SoundResource.IC2_TOOLS_PAINTER, - 1.0F, - -1, - aX, - aY, - aZ); - aWorld.setBlock( - aX, - aY, - aZ, - GT_Utility.getBlockFromStack(tStack), - tStack.getItemDamage(), - 3); + && GT_ModHandler.damageOrDechargeItem(aStack, 1, 1000, aPlayer)) { + GT_Utility + .sendSoundToPlayers(aWorld, SoundResource.IC2_TOOLS_PAINTER, 1.0F, -1, aX, aY, aZ); + aWorld + .setBlock(aX, aY, aZ, GT_Utility.getBlockFromStack(tStack), tStack.getItemDamage(), 3); } else { if (i == 0) return false; break; @@ -144,33 +132,27 @@ public class GT_Spray_Foam_Item extends GT_Tool_Item { } case 2 -> { boolean temp = false, tXFactor = (ForgeDirection.getOrientation(tSide).offsetX == 0), - tYFactor = (ForgeDirection.getOrientation(tSide).offsetY == 0), - tZFactor = (ForgeDirection.getOrientation(tSide).offsetZ == 0); + tYFactor = (ForgeDirection.getOrientation(tSide).offsetY == 0), + tZFactor = (ForgeDirection.getOrientation(tSide).offsetZ == 0); aX -= (tXFactor ? 1 : 0); aY -= (tYFactor ? 1 : 0); aZ -= (tZFactor ? 1 : 0); for (byte i = 0; i < 3; i++) for (byte j = 0; j < 3; j++) { if (GT_Utility.isBlockAir( - aWorld, - aX + (tXFactor ? i : 0), - aY + (!tXFactor && tYFactor ? i : 0) + (!tZFactor && tYFactor ? j : 0), - aZ + (tZFactor ? j : 0))) { + aWorld, + aX + (tXFactor ? i : 0), + aY + (!tXFactor && tYFactor ? i : 0) + (!tZFactor && tYFactor ? j : 0), + aZ + (tZFactor ? j : 0))) { if (GT_ModHandler.damageOrDechargeItem(aStack, 1, 1000, aPlayer)) { - GT_Utility.sendSoundToPlayers( - aWorld, - SoundResource.IC2_TOOLS_PAINTER, - 1.0F, - -1, - aX, - aY, - aZ); + GT_Utility + .sendSoundToPlayers(aWorld, SoundResource.IC2_TOOLS_PAINTER, 1.0F, -1, aX, aY, aZ); aWorld.setBlock( - aX + (tXFactor ? i : 0), - aY + (!tXFactor && tYFactor ? i : 0) + (!tZFactor && tYFactor ? j : 0), - aZ + (tZFactor ? j : 0), - GT_Utility.getBlockFromStack(tStack), - tStack.getItemDamage(), - 3); + aX + (tXFactor ? i : 0), + aY + (!tXFactor && tYFactor ? i : 0) + (!tZFactor && tYFactor ? j : 0), + aZ + (tZFactor ? j : 0), + GT_Utility.getBlockFromStack(tStack), + tStack.getItemDamage(), + 3); temp = true; } else { break; diff --git a/src/main/java/gregtech/api/items/GT_Spray_Hardener_Item.java b/src/main/java/gregtech/api/items/GT_Spray_Hardener_Item.java index ae6dcdc5f8..1f6d49e8da 100644 --- a/src/main/java/gregtech/api/items/GT_Spray_Hardener_Item.java +++ b/src/main/java/gregtech/api/items/GT_Spray_Hardener_Item.java @@ -19,20 +19,20 @@ public class GT_Spray_Hardener_Item extends GT_Tool_Item { public GT_Spray_Hardener_Item(String aUnlocalized, String aEnglish, int aMaxDamage, int aEntityDamage) { super( - aUnlocalized, - aEnglish, - "Construction Foam Hardener", - aMaxDamage, - aEntityDamage, - true); /* - * setCraftingSound(Sounds.IC2_TOOLS_PAINTER); setBreakingSound(Sounds.IC2_TOOLS_PAINTER); - * setEntityHitSound(Sounds.IC2_TOOLS_PAINTER); setUsageAmounts(16, 3, 1); - */ + aUnlocalized, + aEnglish, + "Construction Foam Hardener", + aMaxDamage, + aEntityDamage, + true); /* + * setCraftingSound(Sounds.IC2_TOOLS_PAINTER); setBreakingSound(Sounds.IC2_TOOLS_PAINTER); + * setEntityHitSound(Sounds.IC2_TOOLS_PAINTER); setUsageAmounts(16, 3, 1); + */ } @Override public boolean onItemUseFirst(ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, - int aSide, float hitX, float hitY, float hitZ) { + int aSide, float hitX, float hitY, float hitZ) { super.onItemUseFirst(aStack, aPlayer, aWorld, aX, aY, aZ, aSide, hitX, hitY, hitZ); if (aWorld.isRemote) { return false; @@ -44,10 +44,9 @@ public class GT_Spray_Hardener_Item extends GT_Tool_Item { try { if (GT_Utility.getClassName(aTileEntity) - .startsWith("TileEntityCable")) { + .startsWith("TileEntityCable")) { if (GT_Utility.getPublicField(aTileEntity, "foamed") - .getByte(aTileEntity) - == 1) { + .getByte(aTileEntity) == 1) { if (GT_ModHandler.damageOrDechargeItem(aStack, 1, 1000, aPlayer)) { GT_Utility.sendSoundToPlayers(aWorld, SoundResource.IC2_TOOLS_PAINTER, 1.0F, -1, aX, aY, aZ); GT_Utility.callPublicMethod(aTileEntity, "changeFoam", (byte) 2); @@ -61,10 +60,10 @@ public class GT_Spray_Hardener_Item extends GT_Tool_Item { } ItemStack tStack1 = GT_ModHandler.getIC2Item("constructionFoam", 1), - tStack2 = GT_ModHandler.getIC2Item("constructionFoamWall", 1); + tStack2 = GT_ModHandler.getIC2Item("constructionFoamWall", 1); if (tStack1 != null && tStack1.isItemEqual(new ItemStack(aBlock)) - && tStack2 != null - && tStack2.getItem() instanceof ItemBlock) { + && tStack2 != null + && tStack2.getItem() instanceof ItemBlock) { if (GT_ModHandler.damageOrDechargeItem(aStack, 1, 1000, aPlayer)) { GT_Utility.sendSoundToPlayers(aWorld, SoundResource.IC2_TOOLS_PAINTER, 1.0F, -1, aX, aY, aZ); aWorld.setBlock(aX, aY, aZ, GT_Utility.getBlockFromStack(tStack2), 7, 3); @@ -73,11 +72,11 @@ public class GT_Spray_Hardener_Item extends GT_Tool_Item { } if (aTileEntity instanceof BaseMetaPipeEntity - && (((BaseMetaPipeEntity) aTileEntity).mConnections & -64) == 64) { + && (((BaseMetaPipeEntity) aTileEntity).mConnections & -64) == 64) { if (GT_ModHandler.damageOrDechargeItem(aStack, 1, 1000, aPlayer)) { GT_Utility.sendSoundToPlayers(aWorld, SoundResource.IC2_TOOLS_PAINTER, 1.0F, -1, aX, aY, aZ); ((BaseMetaPipeEntity) aTileEntity).mConnections = (byte) ((((BaseMetaPipeEntity) aTileEntity).mConnections - & ~64) | -128); + & ~64) | -128); } return true; } diff --git a/src/main/java/gregtech/api/items/GT_Spray_Hydration_Item.java b/src/main/java/gregtech/api/items/GT_Spray_Hydration_Item.java index 9056a6a90d..dd10b419d4 100644 --- a/src/main/java/gregtech/api/items/GT_Spray_Hydration_Item.java +++ b/src/main/java/gregtech/api/items/GT_Spray_Hydration_Item.java @@ -15,20 +15,20 @@ public class GT_Spray_Hydration_Item extends GT_Tool_Item { public GT_Spray_Hydration_Item(String aUnlocalized, String aEnglish, int aMaxDamage, int aEntityDamage) { super( - aUnlocalized, - aEnglish, - "To hydrate Crops and similar", - aMaxDamage, - aEntityDamage, - true); /* - * setCraftingSound(Sounds.IC2_TOOLS_PAINTER); setBreakingSound(Sounds.IC2_TOOLS_PAINTER); - * setEntityHitSound(Sounds.IC2_TOOLS_PAINTER); setUsageAmounts(20, 3, 1); - */ + aUnlocalized, + aEnglish, + "To hydrate Crops and similar", + aMaxDamage, + aEntityDamage, + true); /* + * setCraftingSound(Sounds.IC2_TOOLS_PAINTER); setBreakingSound(Sounds.IC2_TOOLS_PAINTER); + * setEntityHitSound(Sounds.IC2_TOOLS_PAINTER); setUsageAmounts(20, 3, 1); + */ } @Override public boolean onItemUseFirst(ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, - int aSide, float hitX, float hitY, float hitZ) { + int aSide, float hitX, float hitY, float hitZ) { super.onItemUseFirst(aStack, aPlayer, aWorld, aX, aY, aZ, aSide, hitX, hitY, hitZ); if (aWorld.isRemote) { return false; @@ -53,7 +53,7 @@ public class GT_Spray_Hydration_Item extends GT_Tool_Item { if (aTileEntity instanceof IGregTechTileEntity) { if (((IGregTechTileEntity) aTileEntity).getColorization() >= 0 - && GT_ModHandler.damageOrDechargeItem(aStack, 1, 1000, aPlayer)) { + && GT_ModHandler.damageOrDechargeItem(aStack, 1, 1000, aPlayer)) { ((IGregTechTileEntity) aTileEntity).setColorization((byte) -1); GT_Utility.sendSoundToPlayers(aWorld, SoundResource.IC2_TOOLS_PAINTER, 1.0F, -1, aX, aY, aZ); } diff --git a/src/main/java/gregtech/api/items/GT_Spray_Ice_Item.java b/src/main/java/gregtech/api/items/GT_Spray_Ice_Item.java index 9ccc442b53..402b655692 100644 --- a/src/main/java/gregtech/api/items/GT_Spray_Ice_Item.java +++ b/src/main/java/gregtech/api/items/GT_Spray_Ice_Item.java @@ -21,27 +21,27 @@ public class GT_Spray_Ice_Item extends GT_Tool_Item { public GT_Spray_Ice_Item(String aUnlocalized, String aEnglish, int aMaxDamage, int aEntityDamage) { super( - aUnlocalized, - aEnglish, - "Very effective against Slimes", - aMaxDamage, - aEntityDamage, - true); /* - * addToEffectiveList(EntitySlime.class.getName()); addToEffectiveList("BlueSlime"); - * addToEffectiveList("SlimeClone"); addToEffectiveList("MetalSlime"); - * addToEffectiveList("EntityTFFireBeetle"); addToEffectiveList("EntityTFMazeSlime"); - * addToEffectiveList("EntityTFSlimeBeetle"); setCraftingSound(Sounds.IC2_TOOLS_PAINTER); - * setBreakingSound(Sounds.IC2_TOOLS_PAINTER); setEntityHitSound(Sounds.IC2_TOOLS_PAINTER); - * setUsageAmounts(4, 16, 1); - */ + aUnlocalized, + aEnglish, + "Very effective against Slimes", + aMaxDamage, + aEntityDamage, + true); /* + * addToEffectiveList(EntitySlime.class.getName()); addToEffectiveList("BlueSlime"); + * addToEffectiveList("SlimeClone"); addToEffectiveList("MetalSlime"); + * addToEffectiveList("EntityTFFireBeetle"); addToEffectiveList("EntityTFMazeSlime"); + * addToEffectiveList("EntityTFSlimeBeetle"); setCraftingSound(Sounds.IC2_TOOLS_PAINTER); + * setBreakingSound(Sounds.IC2_TOOLS_PAINTER); setEntityHitSound(Sounds.IC2_TOOLS_PAINTER); + * setUsageAmounts(4, 16, 1); + */ for (Object tName : Arrays.asList( - OrePrefixes.bucket.get(Materials.Water), - OrePrefixes.cell.get(Materials.Water), - OrePrefixes.capsule.get(Materials.Water))) { + OrePrefixes.bucket.get(Materials.Water), + OrePrefixes.cell.get(Materials.Water), + OrePrefixes.capsule.get(Materials.Water))) { GT_ModHandler.addShapelessCraftingRecipe( - new ItemStack(Blocks.ice, 1, 0), - new Object[] { new ItemStack(this, 1, W), tName }); + new ItemStack(Blocks.ice, 1, 0), + new Object[] { new ItemStack(this, 1, W), tName }); } } /* @@ -52,7 +52,7 @@ public class GT_Spray_Ice_Item extends GT_Tool_Item { @Override public boolean onItemUseFirst(ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, - int aSide, float hitX, float hitY, float hitZ) { + int aSide, float hitX, float hitY, float hitZ) { super.onItemUseFirst(aStack, aPlayer, aWorld, aX, aY, aZ, aSide, hitX, hitY, hitZ); if (aWorld.isRemote) { return false; diff --git a/src/main/java/gregtech/api/items/GT_Spray_Pepper_Item.java b/src/main/java/gregtech/api/items/GT_Spray_Pepper_Item.java index e4e03083f5..1607ae7d5b 100644 --- a/src/main/java/gregtech/api/items/GT_Spray_Pepper_Item.java +++ b/src/main/java/gregtech/api/items/GT_Spray_Pepper_Item.java @@ -13,32 +13,28 @@ public class GT_Spray_Pepper_Item extends GT_Tool_Item { public GT_Spray_Pepper_Item(String aUnlocalized, String aEnglish, int aMaxDamage, int aEntityDamage) { super( - aUnlocalized, - aEnglish, - "To defend yourself against Bears", - aMaxDamage, - aEntityDamage, - true); /* - * setCraftingSound(GregTech_API.sSoundList.get(102)); - * setBreakingSound(GregTech_API.sSoundList.get(102)); - * setEntityHitSound(GregTech_API.sSoundList.get(102)); setUsageAmounts(1, 8, 1); - */ + aUnlocalized, + aEnglish, + "To defend yourself against Bears", + aMaxDamage, + aEntityDamage, + true); /* + * setCraftingSound(GregTech_API.sSoundList.get(102)); + * setBreakingSound(GregTech_API.sSoundList.get(102)); + * setEntityHitSound(GregTech_API.sSoundList.get(102)); setUsageAmounts(1, 8, 1); + */ } @Override public void addAdditionalToolTips(List aList, ItemStack aStack, EntityPlayer aPlayer) { aList.add( - GT_LanguageManager.addStringLocalization( - getUnlocalizedName() + ".tooltip_1", - "especially Pedobears, Care Bears,")); + GT_LanguageManager + .addStringLocalization(getUnlocalizedName() + ".tooltip_1", "especially Pedobears, Care Bears,")); aList.add( - GT_LanguageManager.addStringLocalization( - getUnlocalizedName() + ".tooltip_2", - "Confession Bears, Bear Grylls")); + GT_LanguageManager + .addStringLocalization(getUnlocalizedName() + ".tooltip_2", "Confession Bears, Bear Grylls")); aList.add( - GT_LanguageManager.addStringLocalization( - getUnlocalizedName() + ".tooltip_3", - "And ofcourse Man-Bear-Pig")); + GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".tooltip_3", "And ofcourse Man-Bear-Pig")); } /* * @Override public void onHitEntity(Entity aEntity) { if (aEntity instanceof EntityLiving) { @@ -50,7 +46,7 @@ public class GT_Spray_Pepper_Item extends GT_Tool_Item { @Override public boolean onItemUseFirst(ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, - int aSide, float hitX, float hitY, float hitZ) { + int aSide, float hitX, float hitY, float hitZ) { super.onItemUseFirst(aStack, aPlayer, aWorld, aX, aY, aZ, aSide, hitX, hitY, hitZ); if (aWorld.isRemote) { return false; diff --git a/src/main/java/gregtech/api/items/GT_Tool_Item.java b/src/main/java/gregtech/api/items/GT_Tool_Item.java index 9689964396..be38896685 100644 --- a/src/main/java/gregtech/api/items/GT_Tool_Item.java +++ b/src/main/java/gregtech/api/items/GT_Tool_Item.java @@ -10,32 +10,32 @@ import gregtech.api.util.GT_ModHandler; public class GT_Tool_Item extends GT_Generic_Item { public GT_Tool_Item(String aUnlocalized, String aEnglish, String aTooltip, int aMaxDamage, int aEntityDamage, - boolean aSwingIfUsed) { + boolean aSwingIfUsed) { this(aUnlocalized, aEnglish, aTooltip, aMaxDamage, aEntityDamage, aSwingIfUsed, -1, -1); } public GT_Tool_Item(String aUnlocalized, String aEnglish, String aTooltip, int aMaxDamage, int aEntityDamage, - boolean aSwingIfUsed, int aChargedGTID, int aDisChargedGTID) { + boolean aSwingIfUsed, int aChargedGTID, int aDisChargedGTID) { this( - aUnlocalized, - aEnglish, - aTooltip, - aMaxDamage, - aEntityDamage, - aSwingIfUsed, - aChargedGTID, - aDisChargedGTID, - 0, - 0.0F); + aUnlocalized, + aEnglish, + aTooltip, + aMaxDamage, + aEntityDamage, + aSwingIfUsed, + aChargedGTID, + aDisChargedGTID, + 0, + 0.0F); } public GT_Tool_Item(String aUnlocalized, String aEnglish, String aTooltip, int aMaxDamage, int aEntityDamage, - boolean aSwingIfUsed, int aChargedGTID, int aDisChargedGTID, int aToolQuality, float aToolStrength) { + boolean aSwingIfUsed, int aChargedGTID, int aDisChargedGTID, int aToolQuality, float aToolStrength) { super( - aUnlocalized, - aEnglish, - aTooltip, - aTooltip != null && !aTooltip.equals("Doesn't work as intended, this is a Bug")); + aUnlocalized, + aEnglish, + aTooltip, + aTooltip != null && !aTooltip.equals("Doesn't work as intended, this is a Bug")); setMaxDamage(aMaxDamage); setMaxStackSize(1); setNoRepair(); diff --git a/src/main/java/gregtech/api/metatileentity/BaseMetaPipeEntity.java b/src/main/java/gregtech/api/metatileentity/BaseMetaPipeEntity.java index 0bc1201827..36d4aadcd5 100644 --- a/src/main/java/gregtech/api/metatileentity/BaseMetaPipeEntity.java +++ b/src/main/java/gregtech/api/metatileentity/BaseMetaPipeEntity.java @@ -48,14 +48,14 @@ import gregtech.common.covers.CoverInfo; * This is the main TileEntity for EVERYTHING. */ public class BaseMetaPipeEntity extends CommonMetaTileEntity - implements IGregTechTileEntity, IPipeRenderedTileEntity, IDebugableTileEntity { + implements IGregTechTileEntity, IPipeRenderedTileEntity, IDebugableTileEntity { public byte mConnections = IConnectable.NO_CONNECTION; protected MetaPipeEntity mMetaTileEntity; private final int[] mTimeStatistics = new int[GregTech_API.TICKS_FOR_LAG_AVERAGING]; private boolean mWorkUpdate = false, mWorks = true; private byte mColor = 0, oColor = 0, oStrongRedstone = 0, oRedstoneData = 63, oTextureData = 0, oUpdateData = 0, - mLagWarningCount = 0; + mLagWarningCount = 0; private int oX = 0, oY = 0, oZ = 0, mTimeStatisticsIndex = 0; protected Node node; protected NodePath nodePath; @@ -196,9 +196,9 @@ public class BaseMetaPipeEntity extends CommonMetaTileEntity mConnections = (byte) (mMetaTileEntity.mConnections | (mConnections & ~IConnectable.CONNECTED_ALL)); // If foam not hardened, tries roll chance to harden if ((mConnections & IConnectable.HAS_FOAM) == IConnectable.HAS_FRESHFOAM - && getRandomNumber(1000) == 0) { + && getRandomNumber(1000) == 0) { mConnections = (byte) ((mConnections & ~IConnectable.HAS_FRESHFOAM) - | IConnectable.HAS_HARDENEDFOAM); + | IConnectable.HAS_HARDENEDFOAM); } if (mTickTimer > 12 && oldConnections != mConnections) GregTech_API.causeCableUpdate(worldObj, xCoord, yCoord, zCoord); @@ -235,10 +235,10 @@ public class BaseMetaPipeEntity extends CommonMetaTileEntity if (tData != oUpdateData) sendBlockEvent((byte) 1, oUpdateData = tData); if (mColor != oColor) sendBlockEvent((byte) 2, oColor = mColor); tData = (byte) (((mSidedRedstone[0] > 0) ? 1 : 0) | ((mSidedRedstone[1] > 0) ? 2 : 0) - | ((mSidedRedstone[2] > 0) ? 4 : 0) - | ((mSidedRedstone[3] > 0) ? 8 : 0) - | ((mSidedRedstone[4] > 0) ? 16 : 0) - | ((mSidedRedstone[5] > 0) ? 32 : 0)); + | ((mSidedRedstone[2] > 0) ? 4 : 0) + | ((mSidedRedstone[3] > 0) ? 8 : 0) + | ((mSidedRedstone[4] > 0) ? 16 : 0) + | ((mSidedRedstone[5] > 0) ? 32 : 0)); if (tData != oRedstoneData) sendBlockEvent((byte) 3, oRedstoneData = tData); } @@ -257,23 +257,23 @@ public class BaseMetaPipeEntity extends CommonMetaTileEntity if (isServerSide() && hasValidMetaTileEntity()) { tTime = System.nanoTime() - tTime; if (mTimeStatistics.length > 0) mTimeStatistics[mTimeStatisticsIndex = (mTimeStatisticsIndex + 1) - % mTimeStatistics.length] = (int) tTime; + % mTimeStatistics.length] = (int) tTime; if (tTime > 0 && tTime > (GregTech_API.MILLISECOND_THRESHOLD_UNTIL_LAG_WARNING * 1000000L) - && mTickTimer > 1000 - && getMetaTileEntity().doTickProfilingMessageDuringThisTick() - && mLagWarningCount++ < 10) + && mTickTimer > 1000 + && getMetaTileEntity().doTickProfilingMessageDuringThisTick() + && mLagWarningCount++ < 10) GT_FML_LOGGER.warn( - "WARNING: Possible Lag Source at [" + xCoord - + "," - + yCoord - + "," - + zCoord - + "] in Dimension " - + worldObj.provider.dimensionId - + " with " - + tTime - + " ns caused by an instance of " - + getMetaTileEntity().getClass()); + "WARNING: Possible Lag Source at [" + xCoord + + "," + + yCoord + + "," + + zCoord + + "] in Dimension " + + worldObj.provider.dimensionId + + " with " + + tTime + + " ns caused by an instance of " + + getMetaTileEntity().getClass()); } mWorkUpdate = mInventoryChanged = false; @@ -282,36 +282,35 @@ public class BaseMetaPipeEntity extends CommonMetaTileEntity private void sendClientData() { if (mSendClientData) { NW.sendPacketToAllPlayersInRange( - worldObj, - new GT_Packet_TileEntity( - xCoord, - (short) yCoord, - zCoord, - mID, - getCoverInfoAtSide((byte) 0).getCoverID(), - getCoverInfoAtSide((byte) 1).getCoverID(), - getCoverInfoAtSide((byte) 2).getCoverID(), - getCoverInfoAtSide((byte) 3).getCoverID(), - getCoverInfoAtSide((byte) 4).getCoverID(), - getCoverInfoAtSide((byte) 5).getCoverID(), - oTextureData = mConnections, - oUpdateData = hasValidMetaTileEntity() ? mMetaTileEntity.getUpdateData() : 0, - oRedstoneData = (byte) (((mSidedRedstone[0] > 0) ? 1 : 0) - | ((mSidedRedstone[1] > 0) ? 2 : 0) - | ((mSidedRedstone[2] > 0) ? 4 : 0) - | ((mSidedRedstone[3] > 0) ? 8 : 0) - | ((mSidedRedstone[4] > 0) ? 16 : 0) - | ((mSidedRedstone[5] > 0) ? 32 : 0)), - oColor = mColor), + worldObj, + new GT_Packet_TileEntity( xCoord, - zCoord); + (short) yCoord, + zCoord, + mID, + getCoverInfoAtSide((byte) 0).getCoverID(), + getCoverInfoAtSide((byte) 1).getCoverID(), + getCoverInfoAtSide((byte) 2).getCoverID(), + getCoverInfoAtSide((byte) 3).getCoverID(), + getCoverInfoAtSide((byte) 4).getCoverID(), + getCoverInfoAtSide((byte) 5).getCoverID(), + oTextureData = mConnections, + oUpdateData = hasValidMetaTileEntity() ? mMetaTileEntity.getUpdateData() : 0, + oRedstoneData = (byte) (((mSidedRedstone[0] > 0) ? 1 : 0) | ((mSidedRedstone[1] > 0) ? 2 : 0) + | ((mSidedRedstone[2] > 0) ? 4 : 0) + | ((mSidedRedstone[3] > 0) ? 8 : 0) + | ((mSidedRedstone[4] > 0) ? 16 : 0) + | ((mSidedRedstone[5] > 0) ? 32 : 0)), + oColor = mColor), + xCoord, + zCoord); mSendClientData = false; } sendCoverDataIfNeeded(); } public final void receiveMetaTileEntityData(short aID, int aCover0, int aCover1, int aCover2, int aCover3, - int aCover4, int aCover5, byte aTextureData, byte aUpdateData, byte aRedstoneData, byte aColorData) { + int aCover4, int aCover5, byte aTextureData, byte aUpdateData, byte aRedstoneData, byte aColorData) { issueTextureUpdate(); if (aID > 0 && mID != aID) { mID = aID; @@ -384,14 +383,14 @@ public class BaseMetaPipeEntity extends CommonMetaTileEntity final ArrayList tList = new ArrayList<>(); if (aLogLevel > 3) { tList.add( - "Meta-ID: " + EnumChatFormatting.BLUE - + mID - + EnumChatFormatting.RESET - + (hasValidMetaTileEntity() ? EnumChatFormatting.GREEN + " valid" + EnumChatFormatting.RESET - : EnumChatFormatting.RED + " invalid" + EnumChatFormatting.RESET) - + (mMetaTileEntity == null - ? EnumChatFormatting.RED + " MetaTileEntity == null!" + EnumChatFormatting.RESET - : " ")); + "Meta-ID: " + EnumChatFormatting.BLUE + + mID + + EnumChatFormatting.RESET + + (hasValidMetaTileEntity() ? EnumChatFormatting.GREEN + " valid" + EnumChatFormatting.RESET + : EnumChatFormatting.RED + " invalid" + EnumChatFormatting.RESET) + + (mMetaTileEntity == null + ? EnumChatFormatting.RED + " MetaTileEntity == null!" + EnumChatFormatting.RESET + : " ")); } if (aLogLevel > 1) { if (mTimeStatistics.length > 0) { @@ -404,30 +403,30 @@ public class BaseMetaPipeEntity extends CommonMetaTileEntity } } tList.add( - "Average CPU-load of ~" + (tAverageTime / mTimeStatistics.length) - + "ns since " - + mTimeStatistics.length - + " ticks with worst time of " - + tWorstTime - + "ns."); + "Average CPU-load of ~" + (tAverageTime / mTimeStatistics.length) + + "ns since " + + mTimeStatistics.length + + " ticks with worst time of " + + tWorstTime + + "ns."); } if (mLagWarningCount > 0) { tList.add( - "Caused " + (mLagWarningCount >= 10 ? "more than 10" : mLagWarningCount) - + " Lag Spike Warnings (anything taking longer than " - + GregTech_API.MILLISECOND_THRESHOLD_UNTIL_LAG_WARNING - + "ms) on the Server."); + "Caused " + (mLagWarningCount >= 10 ? "more than 10" : mLagWarningCount) + + " Lag Spike Warnings (anything taking longer than " + + GregTech_API.MILLISECOND_THRESHOLD_UNTIL_LAG_WARNING + + "ms) on the Server."); } if (mMetaTileEntity != null) { tList.add( - "Is" + (mMetaTileEntity.isAccessAllowed(aPlayer) ? " " - : EnumChatFormatting.RED + " not " + EnumChatFormatting.RESET) + "accessible for you"); + "Is" + (mMetaTileEntity.isAccessAllowed(aPlayer) ? " " + : EnumChatFormatting.RED + " not " + EnumChatFormatting.RESET) + "accessible for you"); } } if (joinedIc2Enet) tList.add("Joined IC2 ENet"); return mMetaTileEntity != null ? mMetaTileEntity.getSpecialDebugInfo(this, aPlayer, aLogLevel, tList) - : new ArrayList<>(); + : new ArrayList<>(); } @Override @@ -467,9 +466,8 @@ public class BaseMetaPipeEntity extends CommonMetaTileEntity public void setInventorySlotContents(int aIndex, ItemStack aStack) { markDirty(); mInventoryChanged = true; - if (canAccessData()) mMetaTileEntity.setInventorySlotContents( - aIndex, - worldObj.isRemote ? aStack : GT_OreDictUnificator.setStack(true, aStack)); + if (canAccessData()) mMetaTileEntity + .setInventorySlotContents(aIndex, worldObj.isRemote ? aStack : GT_OreDictUnificator.setStack(true, aStack)); } @Override @@ -498,9 +496,9 @@ public class BaseMetaPipeEntity extends CommonMetaTileEntity @Override public boolean isUseableByPlayer(EntityPlayer aPlayer) { return hasValidMetaTileEntity() && mTickTimer > 40 - && getTileEntityOffset(0, 0, 0) == this - && aPlayer.getDistanceSq(xCoord + 0.5, yCoord + 0.5, zCoord + 0.5) < 64 - && mMetaTileEntity.isAccessAllowed(aPlayer); + && getTileEntityOffset(0, 0, 0) == this + && aPlayer.getDistanceSq(xCoord + 0.5, yCoord + 0.5, zCoord + 0.5) < 64 + && mMetaTileEntity.isAccessAllowed(aPlayer); } @Override @@ -735,12 +733,12 @@ public class BaseMetaPipeEntity extends CommonMetaTileEntity else if (tConnections == IConnectable.CONNECTED_NORTH || tConnections == IConnectable.CONNECTED_SOUTH) tConnections = (byte) (IConnectable.CONNECTED_NORTH | IConnectable.CONNECTED_SOUTH); if (hasValidMetaTileEntity()) return mMetaTileEntity.getTexture( - this, - aSide, - tConnections, - (byte) (mColor - 1), - tConnections == 0 || (tConnections & (1 << aSide)) != 0, - getOutputRedstoneSignal(aSide) > 0); + this, + aSide, + tConnections, + (byte) (mColor - 1), + tConnections == 0 || (tConnections & (1 << aSide)) != 0, + getOutputRedstoneSignal(aSide) > 0); return Textures.BlockIcons.ERROR_RENDERING; } @@ -782,7 +780,7 @@ public class BaseMetaPipeEntity extends CommonMetaTileEntity // Configure Cover, sneak can also be: screwdriver, wrench, side cutter, soldering iron if (aPlayer.isSneaking()) { final byte tSide = (getCoverIDAtSide(aSide) == 0) ? GT_Utility.determineWrenchingSide(aSide, aX, aY, aZ) - : aSide; + : aSide; return (getCoverInfoAtSide(tSide).hasCoverGUI()); } else if (getCoverBehaviorAtSideNew(aSide).onCoverRightclickClient(aSide, this, aPlayer, aX, aY, aZ)) { return true; @@ -792,7 +790,7 @@ public class BaseMetaPipeEntity extends CommonMetaTileEntity final ItemStack tCurrentItem = aPlayer.inventory.getCurrentItem(); if (tCurrentItem != null) { if (getColorization() >= 0 - && GT_Utility.areStacksEqual(new ItemStack(Items.water_bucket, 1), tCurrentItem)) { + && GT_Utility.areStacksEqual(new ItemStack(Items.water_bucket, 1), tCurrentItem)) { mMetaTileEntity.markDirty(); tCurrentItem.func_150996_a(Items.bucket); setColorization((byte) -1); @@ -804,13 +802,13 @@ public class BaseMetaPipeEntity extends CommonMetaTileEntity mMetaTileEntity.markDirty(); GT_ModHandler.damageOrDechargeItem(tCurrentItem, 1, 1000, aPlayer); GT_Utility.sendSoundToPlayers( - worldObj, - SoundResource.IC2_TOOLS_WRENCH, - 1.0F, - -1, - xCoord, - yCoord, - zCoord); + worldObj, + SoundResource.IC2_TOOLS_WRENCH, + 1.0F, + -1, + xCoord, + yCoord, + zCoord); } return true; } @@ -818,34 +816,34 @@ public class BaseMetaPipeEntity extends CommonMetaTileEntity if (getCoverIDAtSide(aSide) == 0 && getCoverIDAtSide(tSide) != 0) { if (GT_ModHandler.damageOrDechargeItem(tCurrentItem, 1, 200, aPlayer)) { setCoverDataAtSide( - tSide, - getCoverInfoAtSide(tSide).onCoverScrewdriverClick(aPlayer, 0.5F, 0.5F, 0.5F)); + tSide, + getCoverInfoAtSide(tSide).onCoverScrewdriverClick(aPlayer, 0.5F, 0.5F, 0.5F)); mMetaTileEntity.onScrewdriverRightClick(tSide, aPlayer, aX, aY, aZ); mMetaTileEntity.markDirty(); GT_Utility.sendSoundToPlayers( - worldObj, - SoundResource.IC2_TOOLS_WRENCH, - 1.0F, - -1, - xCoord, - yCoord, - zCoord); + worldObj, + SoundResource.IC2_TOOLS_WRENCH, + 1.0F, + -1, + xCoord, + yCoord, + zCoord); } } else { if (GT_ModHandler.damageOrDechargeItem(tCurrentItem, 1, 1000, aPlayer)) { setCoverDataAtSide( - aSide, - getCoverInfoAtSide(aSide).onCoverScrewdriverClick(aPlayer, aX, aY, aZ)); + aSide, + getCoverInfoAtSide(aSide).onCoverScrewdriverClick(aPlayer, aX, aY, aZ)); mMetaTileEntity.onScrewdriverRightClick(aSide, aPlayer, aX, aY, aZ); mMetaTileEntity.markDirty(); GT_Utility.sendSoundToPlayers( - worldObj, - SoundResource.IC2_TOOLS_WRENCH, - 1.0F, - -1, - xCoord, - yCoord, - zCoord); + worldObj, + SoundResource.IC2_TOOLS_WRENCH, + 1.0F, + -1, + xCoord, + yCoord, + zCoord); } } return true; @@ -865,18 +863,18 @@ public class BaseMetaPipeEntity extends CommonMetaTileEntity else enableWorking(); mMetaTileEntity.markDirty(); GT_Utility.sendChatToPlayer( - aPlayer, - GT_Utility.trans("090", "Machine Processing: ") - + (isAllowedToWork() ? GT_Utility.trans("088", "Enabled") - : GT_Utility.trans("087", "Disabled"))); + aPlayer, + GT_Utility.trans("090", "Machine Processing: ") + + (isAllowedToWork() ? GT_Utility.trans("088", "Enabled") + : GT_Utility.trans("087", "Disabled"))); GT_Utility.sendSoundToPlayers( - worldObj, - SoundResource.IC2_TOOLS_RUBBER_TRAMPOLINE, - 1.0F, - -1, - xCoord, - yCoord, - zCoord); + worldObj, + SoundResource.IC2_TOOLS_RUBBER_TRAMPOLINE, + 1.0F, + -1, + xCoord, + yCoord, + zCoord); } return true; } @@ -886,13 +884,13 @@ public class BaseMetaPipeEntity extends CommonMetaTileEntity mMetaTileEntity.markDirty(); // logic handled internally GT_Utility.sendSoundToPlayers( - worldObj, - SoundResource.IC2_TOOLS_WRENCH, - 1.0F, - -1, - xCoord, - yCoord, - zCoord); + worldObj, + SoundResource.IC2_TOOLS_WRENCH, + 1.0F, + -1, + xCoord, + yCoord, + zCoord); } doEnetUpdate(); return true; @@ -903,30 +901,30 @@ public class BaseMetaPipeEntity extends CommonMetaTileEntity mMetaTileEntity.markDirty(); // logic handled internally GT_Utility.sendSoundToPlayers( - worldObj, - SoundResource.IC2_TOOLS_BATTERY_USE, - 1.0F, - -1, - xCoord, - yCoord, - zCoord); + worldObj, + SoundResource.IC2_TOOLS_BATTERY_USE, + 1.0F, + -1, + xCoord, + yCoord, + zCoord); } else if (GT_ModHandler.useSolderingIron(tCurrentItem, aPlayer)) { mMetaTileEntity.markDirty(); mStrongRedstone ^= (1 << tSide); GT_Utility.sendChatToPlayer( - aPlayer, - GT_Utility.trans("091", "Redstone Output at Side ") + tSide - + GT_Utility.trans("092", " set to: ") - + ((mStrongRedstone & (1 << tSide)) != 0 ? GT_Utility.trans("093", "Strong") - : GT_Utility.trans("094", "Weak"))); + aPlayer, + GT_Utility.trans("091", "Redstone Output at Side ") + tSide + + GT_Utility.trans("092", " set to: ") + + ((mStrongRedstone & (1 << tSide)) != 0 ? GT_Utility.trans("093", "Strong") + : GT_Utility.trans("094", "Weak"))); GT_Utility.sendSoundToPlayers( - worldObj, - SoundResource.IC2_TOOLS_BATTERY_USE, - 3.0F, - -1, - xCoord, - yCoord, - zCoord); + worldObj, + SoundResource.IC2_TOOLS_BATTERY_USE, + 3.0F, + -1, + xCoord, + yCoord, + zCoord); issueBlockUpdate(); } doEnetUpdate(); @@ -941,19 +939,19 @@ public class BaseMetaPipeEntity extends CommonMetaTileEntity if (coverInfo.getCoverID() == 0) { if (GT_Utility.isStackInList(tCurrentItem, GregTech_API.sCovers.keySet())) { if (GregTech_API.getCoverBehaviorNew(tCurrentItem) - .isCoverPlaceable(coverSide, tCurrentItem, this) - && mMetaTileEntity.allowCoverOnSide(coverSide, new GT_ItemStack(tCurrentItem))) { + .isCoverPlaceable(coverSide, tCurrentItem, this) + && mMetaTileEntity.allowCoverOnSide(coverSide, new GT_ItemStack(tCurrentItem))) { setCoverItemAtSide(coverSide, tCurrentItem); mMetaTileEntity.markDirty(); if (!aPlayer.capabilities.isCreativeMode) tCurrentItem.stackSize--; GT_Utility.sendSoundToPlayers( - worldObj, - SoundResource.IC2_TOOLS_WRENCH, - 1.0F, - -1, - xCoord, - yCoord, - zCoord); + worldObj, + SoundResource.IC2_TOOLS_WRENCH, + 1.0F, + -1, + xCoord, + yCoord, + zCoord); } return true; } @@ -961,13 +959,13 @@ public class BaseMetaPipeEntity extends CommonMetaTileEntity if (GT_Utility.isStackInList(tCurrentItem, GregTech_API.sCrowbarList)) { if (GT_ModHandler.damageOrDechargeItem(tCurrentItem, 1, 1000, aPlayer)) { GT_Utility.sendSoundToPlayers( - worldObj, - SoundResource.RANDOM_BREAK, - 1.0F, - -1, - xCoord, - yCoord, - zCoord); + worldObj, + SoundResource.RANDOM_BREAK, + 1.0F, + -1, + xCoord, + yCoord, + zCoord); dropCover(coverSide, aSide, false); mMetaTileEntity.markDirty(); } @@ -1055,7 +1053,7 @@ public class BaseMetaPipeEntity extends CommonMetaTileEntity @Override public boolean canInsertItem(int aIndex, ItemStack aStack, int aSide) { return canAccessData() && getCoverInfoAtSide((byte) aSide).letsItemsIn(aIndex) - && mMetaTileEntity.canInsertItem(aIndex, aStack, aSide); + && mMetaTileEntity.canInsertItem(aIndex, aStack, aSide); } /** @@ -1064,11 +1062,11 @@ public class BaseMetaPipeEntity extends CommonMetaTileEntity @Override public boolean canExtractItem(int aIndex, ItemStack aStack, int aSide) { return canAccessData() && getCoverBehaviorAtSideNew((byte) aSide).letsItemsOut( - (byte) aSide, - getCoverIDAtSide((byte) aSide), - getComplexCoverDataAtSide((byte) aSide), - aIndex, - this) && mMetaTileEntity.canExtractItem(aIndex, aStack, aSide); + (byte) aSide, + getCoverIDAtSide((byte) aSide), + getComplexCoverDataAtSide((byte) aSide), + aIndex, + this) && mMetaTileEntity.canExtractItem(aIndex, aStack, aSide); } @Override @@ -1199,12 +1197,10 @@ public class BaseMetaPipeEntity extends CommonMetaTileEntity if (tTileEntity != null && !mMetaTileEntity.isConnectedAtSide((byte) aSide.ordinal())) return false; if (isFill && mMetaTileEntity.isLiquidInput((byte) aSide.ordinal()) - && getCoverInfoAtSide((byte) aSide.ordinal()).letsFluidIn(aFluid)) - return true; + && getCoverInfoAtSide((byte) aSide.ordinal()).letsFluidIn(aFluid)) return true; if (!isFill && mMetaTileEntity.isLiquidOutput((byte) aSide.ordinal()) - && getCoverInfoAtSide((byte) aSide.ordinal()).letsFluidOut(aFluid)) - return true; + && getCoverInfoAtSide((byte) aSide.ordinal()).letsFluidOut(aFluid)) return true; return false; } @@ -1212,7 +1208,7 @@ public class BaseMetaPipeEntity extends CommonMetaTileEntity @Override public int fill(ForgeDirection aSide, FluidStack aFluidStack, boolean doFill) { if (mTickTimer > 5 && canAccessData() - && canMoveFluidOnSide(aSide, aFluidStack == null ? null : aFluidStack.getFluid(), true)) + && canMoveFluidOnSide(aSide, aFluidStack == null ? null : aFluidStack.getFluid(), true)) return mMetaTileEntity.fill(aSide, aFluidStack, doFill); return 0; } @@ -1220,12 +1216,12 @@ public class BaseMetaPipeEntity extends CommonMetaTileEntity @Override public FluidStack drain(ForgeDirection aSide, int maxDrain, boolean doDrain) { if (mTickTimer > 5 && canAccessData() - && canMoveFluidOnSide( - aSide, - mMetaTileEntity.getFluid() == null ? null - : mMetaTileEntity.getFluid() - .getFluid(), - false)) + && canMoveFluidOnSide( + aSide, + mMetaTileEntity.getFluid() == null ? null + : mMetaTileEntity.getFluid() + .getFluid(), + false)) return mMetaTileEntity.drain(aSide, maxDrain, doDrain); return null; } @@ -1233,7 +1229,7 @@ public class BaseMetaPipeEntity extends CommonMetaTileEntity @Override public FluidStack drain(ForgeDirection aSide, FluidStack aFluidStack, boolean doDrain) { if (mTickTimer > 5 && canAccessData() - && canMoveFluidOnSide(aSide, aFluidStack == null ? null : aFluidStack.getFluid(), false)) + && canMoveFluidOnSide(aSide, aFluidStack == null ? null : aFluidStack.getFluid(), false)) return mMetaTileEntity.drain(aSide, aFluidStack, doDrain); return null; } @@ -1256,8 +1252,8 @@ public class BaseMetaPipeEntity extends CommonMetaTileEntity public FluidTankInfo[] getTankInfo(ForgeDirection aSide) { final CoverInfo coverInfo = getCoverInfoAtSide((byte) aSide.ordinal()); if (canAccessData() && (aSide == ForgeDirection.UNKNOWN - || (mMetaTileEntity.isLiquidInput((byte) aSide.ordinal()) && coverInfo.letsFluidIn(null)) - || (mMetaTileEntity.isLiquidOutput((byte) aSide.ordinal()) && coverInfo.letsFluidOut(null)) + || (mMetaTileEntity.isLiquidInput((byte) aSide.ordinal()) && coverInfo.letsFluidIn(null)) + || (mMetaTileEntity.isLiquidOutput((byte) aSide.ordinal()) && coverInfo.letsFluidOut(null)) // Doesn't need to be connected to get Tank Info -- otherwise things can't connect )) return mMetaTileEntity.getTankInfo(aSide); return new FluidTankInfo[] {}; @@ -1273,8 +1269,8 @@ public class BaseMetaPipeEntity extends CommonMetaTileEntity return true; } aStack = GT_OreDictUnificator.get(aStack); - if (GT_Utility.areStacksEqual(tStack, aStack) && tStack.stackSize + aStack.stackSize - <= Math.min(aStack.getMaxStackSize(), getInventoryStackLimit())) { + if (GT_Utility.areStacksEqual(tStack, aStack) + && tStack.stackSize + aStack.stackSize <= Math.min(aStack.getMaxStackSize(), getInventoryStackLimit())) { markDirty(); tStack.stackSize += aStack.stackSize; return true; @@ -1374,7 +1370,7 @@ public class BaseMetaPipeEntity extends CommonMetaTileEntity @Override public void addCollisionBoxesToList(World aWorld, int aX, int aY, int aZ, AxisAlignedBB inputAABB, - List outputAABB, Entity collider) { + List outputAABB, Entity collider) { mMetaTileEntity.addCollisionBoxesToList(aWorld, aX, aY, aZ, inputAABB, outputAABB, collider); } diff --git a/src/main/java/gregtech/api/metatileentity/BaseMetaTileEntity.java b/src/main/java/gregtech/api/metatileentity/BaseMetaTileEntity.java index c6d74a1b35..6c18d00c8c 100644 --- a/src/main/java/gregtech/api/metatileentity/BaseMetaTileEntity.java +++ b/src/main/java/gregtech/api/metatileentity/BaseMetaTileEntity.java @@ -80,12 +80,10 @@ import ic2.api.Direction; * This is the main TileEntity for EVERYTHING. */ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTechTileEntity, IActionHost, - IGridProxyable, IAlignmentProvider, IConstructableProvider, IDebugableTileEntity, IGregtechWailaProvider { + IGridProxyable, IAlignmentProvider, IConstructableProvider, IDebugableTileEntity, IGregtechWailaProvider { - private static final Field ENTITY_ITEM_HEALTH_FIELD = ReflectionHelper.findField( - EntityItem.class, - "health", - "field_70291_e"); + private static final Field ENTITY_ITEM_HEALTH_FIELD = ReflectionHelper + .findField(EntityItem.class, "health", "field_70291_e"); private final boolean[] mActiveEUInputs = new boolean[] { false, false, false, false, false, false }; private final boolean[] mActiveEUOutputs = new boolean[] { false, false, false, false, false, false }; private final int[] mTimeStatistics = new int[GregTech_API.TICKS_FOR_LAG_AVERAGING]; @@ -97,13 +95,13 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec protected boolean mReleaseEnergy = false; protected long[] mAverageEUInput = new long[] { 0, 0, 0, 0, 0 }, mAverageEUOutput = new long[] { 0, 0, 0, 0, 0 }; private boolean mHasEnoughEnergy = true, mRunningThroughTick = false, mInputDisabled = false, - mOutputDisabled = false, mMuffler = false, mLockUpgrade = false; + mOutputDisabled = false, mMuffler = false, mLockUpgrade = false; private boolean mActive = false, mWorkUpdate = false, mSteamConverter = false, mWorks = true; private boolean oRedstone = false; private byte mColor = 0, oColor = 0, oStrongRedstone = 0, oRedstoneData = 63, oTextureData = 0, oUpdateData = 0, - oTexturePage = 0; + oTexturePage = 0; private byte oLightValueClient = 0, oLightValue = -1, mLightValue = 0, mOtherUpgrades = 0, mFacing = 0, oFacing = 0, - mWorkData = 0; + mWorkData = 0; private int mDisplayErrorCode = 0, oX = 0, oY = 0, oZ = 0, mTimeStatisticsIndex = 0, mLagWarningCount = 0; private long oOutput = 0, mAcceptedAmperes = Long.MAX_VALUE; private long mLastCheckTick = 0; @@ -160,8 +158,8 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec else mID = mID > 0 ? mID : 0; if (mID != 0) createNewMetatileEntity(mID); mSidedRedstone = (hasValidMetaTileEntity() && mMetaTileEntity.hasSidedRedstoneOutputBehavior() - ? new byte[] { 0, 0, 0, 0, 0, 0 } - : new byte[] { 15, 15, 15, 15, 15, 15 }); + ? new byte[] { 0, 0, 0, 0, 0, 0 } + : new byte[] { 15, 15, 15, 15, 15, 15 }); } else { if (aID <= 0) mID = (short) aNBT.getInteger("mID"); else mID = aID; @@ -185,7 +183,7 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec mInputDisabled = aNBT.getBoolean("mInputDisabled"); mOutputDisabled = aNBT.getBoolean("mOutputDisabled"); mOtherUpgrades = (byte) (aNBT.getByte("mOtherUpgrades") + aNBT.getByte("mBatteries") - + aNBT.getByte("mLiBatteries")); + + aNBT.getByte("mLiBatteries")); mRecipeStuff = aNBT.getCompoundTag("GT.CraftingComponents"); final int nbtVersion = aNBT.getInteger("nbtVersion"); @@ -214,13 +212,13 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec */ public void chargeItem(ItemStack aStack) { decreaseStoredEU( - GT_ModHandler.chargeElectricItem( - aStack, - (int) Math.min(Integer.MAX_VALUE, getStoredEU()), - (int) Math.min(Integer.MAX_VALUE, mMetaTileEntity.getOutputTier()), - false, - false), - true); + GT_ModHandler.chargeElectricItem( + aStack, + (int) Math.min(Integer.MAX_VALUE, getStoredEU()), + (int) Math.min(Integer.MAX_VALUE, mMetaTileEntity.getOutputTier()), + false, + false), + true); } /** @@ -228,14 +226,14 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec */ public void dischargeItem(ItemStack aStack) { increaseStoredEnergyUnits( - GT_ModHandler.dischargeElectricItem( - aStack, - (int) Math.min(Integer.MAX_VALUE, getEUCapacity() - getStoredEU()), - (int) Math.min(Integer.MAX_VALUE, mMetaTileEntity.getInputTier()), - false, - false, - false), - true); + GT_ModHandler.dischargeElectricItem( + aStack, + (int) Math.min(Integer.MAX_VALUE, getEUCapacity() - getStoredEU()), + (int) Math.min(Integer.MAX_VALUE, mMetaTileEntity.getInputTier()), + false, + false, + false), + true); } protected boolean isRainPossible() { @@ -255,14 +253,14 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec final int precipitationHeightAtSide4 = worldObj.getPrecipitationHeight(xCoord - 1, zCoord); final int precipitationHeightAtSide5 = worldObj.getPrecipitationHeight(xCoord + 1, zCoord); return (getCoverIDAtSide((byte) 1) == 0 && worldObj.getPrecipitationHeight(xCoord, zCoord) - 2 < yCoord) - || (getCoverIDAtSide((byte) 2) == 0 && precipitationHeightAtSide2 - 1 < yCoord - && precipitationHeightAtSide2 > -1) - || (getCoverIDAtSide((byte) 3) == 0 && precipitationHeightAtSide3 - 1 < yCoord - && precipitationHeightAtSide3 > -1) - || (getCoverIDAtSide((byte) 4) == 0 && precipitationHeightAtSide4 - 1 < yCoord - && precipitationHeightAtSide4 > -1) - || (getCoverIDAtSide((byte) 5) == 0 && precipitationHeightAtSide5 - 1 < yCoord - && precipitationHeightAtSide5 > -1); + || (getCoverIDAtSide((byte) 2) == 0 && precipitationHeightAtSide2 - 1 < yCoord + && precipitationHeightAtSide2 > -1) + || (getCoverIDAtSide((byte) 3) == 0 && precipitationHeightAtSide3 - 1 < yCoord + && precipitationHeightAtSide3 > -1) + || (getCoverIDAtSide((byte) 4) == 0 && precipitationHeightAtSide4 - 1 < yCoord + && precipitationHeightAtSide4 > -1) + || (getCoverIDAtSide((byte) 5) == 0 && precipitationHeightAtSide5 - 1 < yCoord + && precipitationHeightAtSide5 > -1); } @Override @@ -385,15 +383,14 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec } if (mMetaTileEntity.isEnetOutput() && oOutput > 0) { - final long tOutputVoltage = Math.max( - oOutput, - oOutput + (1L << Math.max(0, GT_Utility.getTier(oOutput) - 1))); + final long tOutputVoltage = Math + .max(oOutput, oOutput + (1L << Math.max(0, GT_Utility.getTier(oOutput) - 1))); final long tUsableAmperage = Math.min( - getOutputAmperage(), - (getStoredEU() - mMetaTileEntity.getMinimumStoredEU()) / tOutputVoltage); + getOutputAmperage(), + (getStoredEU() - mMetaTileEntity.getMinimumStoredEU()) / tOutputVoltage); if (tUsableAmperage > 0) { final long tEU = tOutputVoltage - * Util.emitEnergyToNetwork(oOutput, tUsableAmperage, this); + * Util.emitEnergyToNetwork(oOutput, tUsableAmperage, this); mAverageEUOutput[mAverageEUOutputIndex] += tEU; decreaseStoredEU(tEU, true); } @@ -417,30 +414,30 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec if (getRandomNumber(10) == 0) { try { GT_Mod.achievements.issueAchievement( - this.getWorldObj() - .getPlayerEntityByName(mOwnerName), - "badweather"); + this.getWorldObj() + .getPlayerEntityByName(mOwnerName), + "badweather"); } catch (Exception ignored) {} GT_Log.exp.println( - "Machine at: " + this.getXCoord() - + " | " - + this.getYCoord() - + " | " - + this.getZCoord() - + " DIMID: " - + this.worldObj.provider.dimensionId - + " explosion due to rain!"); + "Machine at: " + this.getXCoord() + + " | " + + this.getYCoord() + + " | " + + this.getZCoord() + + " DIMID: " + + this.worldObj.provider.dimensionId + + " explosion due to rain!"); doEnergyExplosion(); } else { GT_Log.exp.println( - "Machine at: " + this.getXCoord() - + " | " - + this.getYCoord() - + " | " - + this.getZCoord() - + " DIMID: " - + this.worldObj.provider.dimensionId - + " set to Fire due to rain!"); + "Machine at: " + this.getXCoord() + + " | " + + this.getYCoord() + + " | " + + this.getZCoord() + + " DIMID: " + + this.worldObj.provider.dimensionId + + " set to Fire due to rain!"); setOnFire(); } } @@ -449,22 +446,22 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec return; } if (GregTech_API.sMachineThunderExplosions && worldObj.isThundering() - && getRandomNumber(3) == 0) { + && getRandomNumber(3) == 0) { try { GT_Mod.achievements.issueAchievement( - this.getWorldObj() - .getPlayerEntityByName(mOwnerName), - "badweather"); + this.getWorldObj() + .getPlayerEntityByName(mOwnerName), + "badweather"); } catch (Exception ignored) {} GT_Log.exp.println( - "Machine at: " + this.getXCoord() - + " | " - + this.getYCoord() - + " | " - + this.getZCoord() - + " DIMID: " - + this.worldObj.provider.dimensionId - + " explosion due to Thunderstorm!"); + "Machine at: " + this.getXCoord() + + " | " + + this.getYCoord() + + " | " + + this.getZCoord() + + " DIMID: " + + this.worldObj.provider.dimensionId + + " explosion due to Thunderstorm!"); doEnergyExplosion(); } } @@ -482,16 +479,17 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec if (aSideServer) { if (mMetaTileEntity.dechargerSlotCount() > 0 && getStoredEU() < getEUCapacity()) { for (int i = mMetaTileEntity.dechargerSlotStartIndex(), - k = mMetaTileEntity.dechargerSlotCount() + i; i < k; i++) { + k = mMetaTileEntity.dechargerSlotCount() + i; i < k; i++) { if (mMetaTileEntity.mInventory[i] != null && getStoredEU() < getEUCapacity()) { dischargeItem(mMetaTileEntity.mInventory[i]); if (ic2.api.info.Info.itemEnergy.getEnergyValue(mMetaTileEntity.mInventory[i]) > 0) { - if ((getStoredEU() + ic2.api.info.Info.itemEnergy.getEnergyValue( - mMetaTileEntity.mInventory[i])) < getEUCapacity()) { + if ((getStoredEU() + + ic2.api.info.Info.itemEnergy.getEnergyValue(mMetaTileEntity.mInventory[i])) + < getEUCapacity()) { increaseStoredEnergyUnits( - (long) ic2.api.info.Info.itemEnergy.getEnergyValue( - mMetaTileEntity.mInventory[i]), - false); + (long) ic2.api.info.Info.itemEnergy + .getEnergyValue(mMetaTileEntity.mInventory[i]), + false); mMetaTileEntity.mInventory[i].stackSize--; mInventoryChanged = true; } @@ -507,7 +505,7 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec if (aSideServer) { if (mMetaTileEntity.rechargerSlotCount() > 0 && getStoredEU() > 0) { for (int i = mMetaTileEntity.rechargerSlotStartIndex(), - k = mMetaTileEntity.rechargerSlotCount() + i; i < k; i++) { + k = mMetaTileEntity.rechargerSlotCount() + i; i < k; i++) { if (getStoredEU() > 0 && mMetaTileEntity.mInventory[i] != null) { chargeItem(mMetaTileEntity.mInventory[i]); if (mMetaTileEntity.mInventory[i].stackSize <= 0) { @@ -539,9 +537,9 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec if (mTickTimer > 10) { byte tData = (byte) ((mFacing & 7) | (mActive ? 8 : 0) - | (mRedstone ? 16 : 0) - | (mLockUpgrade ? 32 : 0) - | (mWorks ? 64 : 0)); + | (mRedstone ? 16 : 0) + | (mLockUpgrade ? 32 : 0) + | (mWorks ? 64 : 0)); if (tData != oTextureData) sendBlockEvent(GregTechTileClientEvents.CHANGE_COMMON_DATA, oTextureData = tData); @@ -551,15 +549,15 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec if (mMetaTileEntity instanceof GT_MetaTileEntity_Hatch) { tData = ((GT_MetaTileEntity_Hatch) mMetaTileEntity).getTexturePage(); if (tData != oTexturePage) sendBlockEvent( - GregTechTileClientEvents.CHANGE_CUSTOM_DATA, - (byte) ((oTexturePage = tData) | 0x80)); // set last bit as a flag for page + GregTechTileClientEvents.CHANGE_CUSTOM_DATA, + (byte) ((oTexturePage = tData) | 0x80)); // set last bit as a flag for page } if (mColor != oColor) sendBlockEvent(GregTechTileClientEvents.CHANGE_COLOR, oColor = mColor); tData = (byte) (((mSidedRedstone[0] > 0) ? 1 : 0) | ((mSidedRedstone[1] > 0) ? 2 : 0) - | ((mSidedRedstone[2] > 0) ? 4 : 0) - | ((mSidedRedstone[3] > 0) ? 8 : 0) - | ((mSidedRedstone[4] > 0) ? 16 : 0) - | ((mSidedRedstone[5] > 0) ? 32 : 0)); + | ((mSidedRedstone[2] > 0) ? 4 : 0) + | ((mSidedRedstone[3] > 0) ? 8 : 0) + | ((mSidedRedstone[4] > 0) ? 16 : 0) + | ((mSidedRedstone[5] > 0) ? 32 : 0)); if (tData != oRedstoneData) sendBlockEvent(GregTechTileClientEvents.CHANGE_REDSTONE_OUTPUT, oRedstoneData = tData); if (mLightValue != oLightValue) { @@ -591,23 +589,23 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec if (aSideServer && hasValidMetaTileEntity()) { tTime = System.nanoTime() - tTime; if (mTimeStatistics.length > 0) mTimeStatistics[mTimeStatisticsIndex = (mTimeStatisticsIndex + 1) - % mTimeStatistics.length] = (int) tTime; + % mTimeStatistics.length] = (int) tTime; if (tTime > 0 && tTime > (GregTech_API.MILLISECOND_THRESHOLD_UNTIL_LAG_WARNING * 1_000_000L) - && mTickTimer > 1000 - && getMetaTileEntity().doTickProfilingMessageDuringThisTick() - && mLagWarningCount++ < 10) + && mTickTimer > 1000 + && getMetaTileEntity().doTickProfilingMessageDuringThisTick() + && mLagWarningCount++ < 10) GT_FML_LOGGER.warn( - "WARNING: Possible Lag Source at [" + xCoord - + ", " - + yCoord - + ", " - + zCoord - + "] in Dimension " - + worldObj.provider.dimensionId - + " with " - + tTime - + "ns caused by an instance of " - + getMetaTileEntity().getClass()); + "WARNING: Possible Lag Source at [" + xCoord + + ", " + + yCoord + + ", " + + zCoord + + "] in Dimension " + + worldObj.provider.dimensionId + + " with " + + tTime + + "ns caused by an instance of " + + getMetaTileEntity().getClass()); } mWorkUpdate = mInventoryChanged = mRunningThroughTick = false; @@ -615,7 +613,7 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec @Override public void getWailaBody(ItemStack itemStack, List currenttip, IWailaDataAccessor accessor, - IWailaConfigHandler config) { + IWailaConfigHandler config) { if (hasValidMetaTileEntity()) { getMetaTileEntity().getWailaBody(itemStack, currenttip, accessor, config); } @@ -624,7 +622,7 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec @Override public void getWailaNBTData(EntityPlayerMP player, TileEntity tile, NBTTagCompound tag, World world, int x, int y, - int z) { + int z) { super.getWailaNBTData(player, tile, tag, world, x, y, z); if (hasValidMetaTileEntity()) { getMetaTileEntity().getWailaNBTData(player, tile, tag, world, x, y, z); @@ -634,44 +632,42 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec private void sendClientData() { if (mSendClientData) { NW.sendPacketToAllPlayersInRange( - worldObj, - new GT_Packet_TileEntity( - xCoord, - (short) yCoord, - zCoord, - mID, - getCoverInfoAtSide((byte) 0).getCoverID(), - getCoverInfoAtSide((byte) 1).getCoverID(), - getCoverInfoAtSide((byte) 2).getCoverID(), - getCoverInfoAtSide((byte) 3).getCoverID(), - getCoverInfoAtSide((byte) 4).getCoverID(), - getCoverInfoAtSide((byte) 5).getCoverID(), - oTextureData = (byte) ((mFacing & 7) | (mActive ? 8 : 0) - | (mRedstone ? 16 : 0) - | (mLockUpgrade ? 32 : 0) - | (mWorks ? 64 : 0)), - oTexturePage = (hasValidMetaTileEntity() - && mMetaTileEntity instanceof GT_MetaTileEntity_Hatch) - ? ((GT_MetaTileEntity_Hatch) mMetaTileEntity).getTexturePage() - : 0, - oUpdateData = hasValidMetaTileEntity() ? mMetaTileEntity.getUpdateData() : 0, - oRedstoneData = (byte) (((mSidedRedstone[0] > 0) ? 1 : 0) - | ((mSidedRedstone[1] > 0) ? 2 : 0) - | ((mSidedRedstone[2] > 0) ? 4 : 0) - | ((mSidedRedstone[3] > 0) ? 8 : 0) - | ((mSidedRedstone[4] > 0) ? 16 : 0) - | ((mSidedRedstone[5] > 0) ? 32 : 0)), - oColor = mColor), + worldObj, + new GT_Packet_TileEntity( xCoord, - zCoord); + (short) yCoord, + zCoord, + mID, + getCoverInfoAtSide((byte) 0).getCoverID(), + getCoverInfoAtSide((byte) 1).getCoverID(), + getCoverInfoAtSide((byte) 2).getCoverID(), + getCoverInfoAtSide((byte) 3).getCoverID(), + getCoverInfoAtSide((byte) 4).getCoverID(), + getCoverInfoAtSide((byte) 5).getCoverID(), + oTextureData = (byte) ((mFacing & 7) | (mActive ? 8 : 0) + | (mRedstone ? 16 : 0) + | (mLockUpgrade ? 32 : 0) + | (mWorks ? 64 : 0)), + oTexturePage = (hasValidMetaTileEntity() && mMetaTileEntity instanceof GT_MetaTileEntity_Hatch) + ? ((GT_MetaTileEntity_Hatch) mMetaTileEntity).getTexturePage() + : 0, + oUpdateData = hasValidMetaTileEntity() ? mMetaTileEntity.getUpdateData() : 0, + oRedstoneData = (byte) (((mSidedRedstone[0] > 0) ? 1 : 0) | ((mSidedRedstone[1] > 0) ? 2 : 0) + | ((mSidedRedstone[2] > 0) ? 4 : 0) + | ((mSidedRedstone[3] > 0) ? 8 : 0) + | ((mSidedRedstone[4] > 0) ? 16 : 0) + | ((mSidedRedstone[5] > 0) ? 32 : 0)), + oColor = mColor), + xCoord, + zCoord); mSendClientData = false; } sendCoverDataIfNeeded(); } public final void receiveMetaTileEntityData(short aID, int aCover0, int aCover1, int aCover2, int aCover3, - int aCover4, int aCover5, byte aTextureData, byte aTexturePage, byte aUpdateData, byte aRedstoneData, - byte aColorData) { + int aCover4, int aCover5, byte aTextureData, byte aTexturePage, byte aUpdateData, byte aRedstoneData, + byte aColorData) { issueTextureUpdate(); if (mID != aID && aID > 0) { mID = aID; @@ -694,20 +690,20 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec @Deprecated public final void receiveMetaTileEntityData(short aID, int aCover0, int aCover1, int aCover2, int aCover3, - int aCover4, int aCover5, byte aTextureData, byte aUpdateData, byte aRedstoneData, byte aColorData) { + int aCover4, int aCover5, byte aTextureData, byte aUpdateData, byte aRedstoneData, byte aColorData) { receiveMetaTileEntityData( - aID, - aCover0, - aCover1, - aCover2, - aCover3, - aCover4, - aCover5, - aTextureData, - (byte) 0, - aUpdateData, - aRedstoneData, - aColorData); + aID, + aCover0, + aCover1, + aCover2, + aCover3, + aCover4, + aCover5, + aTextureData, + (byte) 0, + aUpdateData, + aRedstoneData, + aColorData); } @Override @@ -719,7 +715,7 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec mMetaTileEntity.receiveClientEvent((byte) aEventID, (byte) aValue); } catch (Throwable e) { GT_Log.err.println( - "Encountered Exception while receiving Data from the Server, the Client should've been crashed by now, but I prevented that. Please report immediately to GregTech Intergalactical!!!"); + "Encountered Exception while receiving Data from the Server, the Client should've been crashed by now, but I prevented that. Please report immediately to GregTech Intergalactical!!!"); e.printStackTrace(GT_Log.err); } } @@ -777,14 +773,14 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec final ArrayList tList = new ArrayList<>(); if (aLogLevel > 2) { tList.add( - "Meta-ID: " + EnumChatFormatting.BLUE - + mID - + EnumChatFormatting.RESET - + (canAccessData() ? EnumChatFormatting.GREEN + " valid" + EnumChatFormatting.RESET - : EnumChatFormatting.RED + " invalid" + EnumChatFormatting.RESET) - + (mMetaTileEntity == null - ? EnumChatFormatting.RED + " MetaTileEntity == null!" + EnumChatFormatting.RESET - : " ")); + "Meta-ID: " + EnumChatFormatting.BLUE + + mID + + EnumChatFormatting.RESET + + (canAccessData() ? EnumChatFormatting.GREEN + " valid" + EnumChatFormatting.RESET + : EnumChatFormatting.RED + " invalid" + EnumChatFormatting.RESET) + + (mMetaTileEntity == null + ? EnumChatFormatting.RED + " MetaTileEntity == null!" + EnumChatFormatting.RESET + : " ")); } if (aLogLevel > 1) { if (mTimeStatistics.length > 0) { @@ -799,41 +795,41 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec // tList.add("tTime " + tTime); } tList.add( - "Average CPU load of ~" + GT_Utility.formatNumbers(tAverageTime / mTimeStatistics.length) - + "ns over " - + GT_Utility.formatNumbers(mTimeStatistics.length) - + " ticks with worst time of " - + GT_Utility.formatNumbers(tWorstTime) - + "ns."); + "Average CPU load of ~" + GT_Utility.formatNumbers(tAverageTime / mTimeStatistics.length) + + "ns over " + + GT_Utility.formatNumbers(mTimeStatistics.length) + + " ticks with worst time of " + + GT_Utility.formatNumbers(tWorstTime) + + "ns."); tList.add( - "Recorded " + GT_Utility.formatNumbers(mMetaTileEntity.mSoundRequests) - + " sound requests in " - + GT_Utility.formatNumbers(mTickTimer - mLastCheckTick) - + " ticks."); + "Recorded " + GT_Utility.formatNumbers(mMetaTileEntity.mSoundRequests) + + " sound requests in " + + GT_Utility.formatNumbers(mTickTimer - mLastCheckTick) + + " ticks."); mLastCheckTick = mTickTimer; mMetaTileEntity.mSoundRequests = 0; } if (mLagWarningCount > 0) { tList.add( - "Caused " + (mLagWarningCount >= 10 ? "more than 10" : mLagWarningCount) - + " Lag Spike Warnings (anything taking longer than " - + GregTech_API.MILLISECOND_THRESHOLD_UNTIL_LAG_WARNING - + "ms) on the Server."); + "Caused " + (mLagWarningCount >= 10 ? "more than 10" : mLagWarningCount) + + " Lag Spike Warnings (anything taking longer than " + + GregTech_API.MILLISECOND_THRESHOLD_UNTIL_LAG_WARNING + + "ms) on the Server."); } tList.add( - "Is" + (mMetaTileEntity.isAccessAllowed(aPlayer) ? " " - : EnumChatFormatting.RED + " not " + EnumChatFormatting.RESET) + "accessible for you"); + "Is" + (mMetaTileEntity.isAccessAllowed(aPlayer) ? " " + : EnumChatFormatting.RED + " not " + EnumChatFormatting.RESET) + "accessible for you"); } if (aLogLevel > 0) { if (getSteamCapacity() > 0 && hasSteamEngineUpgrade()) tList.add( - GT_Utility.formatNumbers(getStoredSteam()) + " of " - + GT_Utility.formatNumbers(getSteamCapacity()) - + " Steam"); + GT_Utility.formatNumbers(getStoredSteam()) + " of " + + GT_Utility.formatNumbers(getSteamCapacity()) + + " Steam"); tList.add( - "Machine is " + (mActive ? EnumChatFormatting.GREEN + "active" + EnumChatFormatting.RESET - : EnumChatFormatting.RED + "inactive" + EnumChatFormatting.RESET)); - if (!mHasEnoughEnergy) tList.add( - EnumChatFormatting.RED + "ATTENTION: This Device needs more power." + EnumChatFormatting.RESET); + "Machine is " + (mActive ? EnumChatFormatting.GREEN + "active" + EnumChatFormatting.RESET + : EnumChatFormatting.RED + "inactive" + EnumChatFormatting.RESET)); + if (!mHasEnoughEnergy) tList + .add(EnumChatFormatting.RED + "ATTENTION: This Device needs more power." + EnumChatFormatting.RESET); } if (joinedIc2Enet) tList.add("Joined IC2 ENet"); return mMetaTileEntity.getSpecialDebugInfo(this, aPlayer, aLogLevel, tList); @@ -892,8 +888,8 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec if (canAccessData()) { markDirty(); mMetaTileEntity.setInventorySlotContents( - aIndex, - worldObj.isRemote ? aStack : GT_OreDictUnificator.setStack(true, aStack)); + aIndex, + worldObj.isRemote ? aStack : GT_OreDictUnificator.setStack(true, aStack)); } } @@ -923,10 +919,10 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec @Override public boolean isUseableByPlayer(EntityPlayer aPlayer) { return canAccessData() && playerOwnsThis(aPlayer, false) - && mTickTimer > 40 - && getTileEntityOffset(0, 0, 0) == this - && aPlayer.getDistanceSq(xCoord + 0.5, yCoord + 0.5, zCoord + 0.5) < 64 - && mMetaTileEntity.isAccessAllowed(aPlayer); + && mTickTimer > 40 + && getTileEntityOffset(0, 0, 0) == this + && aPlayer.getDistanceSq(xCoord + 0.5, yCoord + 0.5, zCoord + 0.5) < 64 + && mMetaTileEntity.isAccessAllowed(aPlayer); } @Override @@ -1063,7 +1059,7 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec public boolean decreaseStoredEnergyUnits(long aEnergy, boolean aIgnoreTooLessEnergy) { if (!canAccessData()) return false; return mHasEnoughEnergy = decreaseStoredEU(aEnergy, aIgnoreTooLessEnergy) || decreaseStoredSteam(aEnergy, false) - || (aIgnoreTooLessEnergy && (decreaseStoredSteam(aEnergy, true))); + || (aIgnoreTooLessEnergy && (decreaseStoredSteam(aEnergy, true))); } @Override @@ -1115,7 +1111,7 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec public void generatePowerNodes() { if (isServerSide() && (isEnetInput() || isEnetOutput())) { final int time = MinecraftServer.getServer() - .getTickCounter(); + .getTickCounter(); for (byte i : ALL_VALID_SIDES) { if (outputsEnergyTo(i, false) || inputEnergyFrom(i, false)) { final IGregTechTileEntity TE = getIGregTechTileEntityAtSide(i); @@ -1206,14 +1202,9 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec public ITexture[] getTexture(Block aBlock, byte aSide) { final ITexture coverTexture = getCoverTexture(aSide); final ITexture[] textureUncovered = hasValidMetaTileEntity() - ? mMetaTileEntity.getTexture( - this, - aSide, - mFacing, - (byte) (mColor - 1), - mActive, - getOutputRedstoneSignal(aSide) > 0) - : Textures.BlockIcons.ERROR_RENDERING; + ? mMetaTileEntity + .getTexture(this, aSide, mFacing, (byte) (mColor - 1), mActive, getOutputRedstoneSignal(aSide) > 0) + : Textures.BlockIcons.ERROR_RENDERING; final ITexture[] textureCovered; if (coverTexture != null) { textureCovered = Arrays.copyOf(textureUncovered, textureUncovered.length + 1); @@ -1303,9 +1294,7 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec setOwnerName(aPlayer.getDisplayName()); setOwnerUuid(aPlayer.getUniqueID()); } else return !privateAccess() || aPlayer.getDisplayName() - .equals("Player") - || mOwnerName.equals("Player") - || mOwnerName.equals(aPlayer.getDisplayName()); + .equals("Player") || mOwnerName.equals("Player") || mOwnerName.equals(aPlayer.getDisplayName()); return true; } @@ -1317,18 +1306,18 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec public void doEnergyExplosion() { if (getUniversalEnergyCapacity() > 0 && getUniversalEnergyStored() >= getUniversalEnergyCapacity() / 5) { GT_Log.exp.println( - "Energy Explosion, injected " + getUniversalEnergyStored() - + "EU >= " - + getUniversalEnergyCapacity() / 5D - + "Capacity of the Machine!"); + "Energy Explosion, injected " + getUniversalEnergyStored() + + "EU >= " + + getUniversalEnergyCapacity() / 5D + + "Capacity of the Machine!"); doExplosion( - oOutput * (getUniversalEnergyStored() >= getUniversalEnergyCapacity() ? 4 - : getUniversalEnergyStored() >= getUniversalEnergyCapacity() / 2 ? 2 : 1)); + oOutput * (getUniversalEnergyStored() >= getUniversalEnergyCapacity() ? 4 + : getUniversalEnergyStored() >= getUniversalEnergyCapacity() / 2 ? 2 : 1)); GT_Mod.achievements.issueAchievement( - this.getWorldObj() - .getPlayerEntityByName(mOwnerName), - "electricproblems"); + this.getWorldObj() + .getPlayerEntityByName(mOwnerName), + "electricproblems"); } } @@ -1370,16 +1359,16 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec public void dropItems(ItemStack tItem) { if (tItem == null) return; final EntityItem tItemEntity = new EntityItem( - this.worldObj, - this.xCoord + XSTR_INSTANCE.nextFloat() * 0.8F + 0.1F, - this.yCoord + XSTR_INSTANCE.nextFloat() * 0.8F + 0.1F, - this.zCoord + XSTR_INSTANCE.nextFloat() * 0.8F + 0.1F, - new ItemStack(tItem.getItem(), tItem.stackSize, tItem.getItemDamage())); + this.worldObj, + this.xCoord + XSTR_INSTANCE.nextFloat() * 0.8F + 0.1F, + this.yCoord + XSTR_INSTANCE.nextFloat() * 0.8F + 0.1F, + this.zCoord + XSTR_INSTANCE.nextFloat() * 0.8F + 0.1F, + new ItemStack(tItem.getItem(), tItem.stackSize, tItem.getItemDamage())); if (tItem.hasTagCompound()) { tItemEntity.getEntityItem() - .setTagCompound( - (NBTTagCompound) tItem.getTagCompound() - .copy()); + .setTagCompound( + (NBTTagCompound) tItem.getTagCompound() + .copy()); } tItemEntity.motionX = (XSTR_INSTANCE.nextGaussian() * 0.0500000007450581D); tItemEntity.motionY = (XSTR_INSTANCE.nextGaussian() * 0.0500000007450581D + 0.2000000029802322D); @@ -1428,7 +1417,7 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec // Configure Cover, sneak can also be: screwdriver, wrench, side cutter, soldering iron if (aPlayer.isSneaking()) { final byte tSide = (getCoverIDAtSide(aSide) == 0) ? GT_Utility.determineWrenchingSide(aSide, aX, aY, aZ) - : aSide; + : aSide; return (getCoverBehaviorAtSideNew(tSide).hasCoverGUI()); } else if (getCoverBehaviorAtSideNew(aSide).onCoverRightclickClient(aSide, this, aPlayer, aX, aY, aZ)) { return true; @@ -1439,21 +1428,38 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec if (isServerSide()) { if (!privateAccess() || aPlayer.getDisplayName() - .equalsIgnoreCase(getOwnerName())) { + .equalsIgnoreCase(getOwnerName())) { final ItemStack tCurrentItem = aPlayer.inventory.getCurrentItem(); if (tCurrentItem != null) { if (getColorization() >= 0 - && GT_Utility.areStacksEqual(new ItemStack(Items.water_bucket, 1), tCurrentItem)) { + && GT_Utility.areStacksEqual(new ItemStack(Items.water_bucket, 1), tCurrentItem)) { tCurrentItem.func_150996_a(Items.bucket); setColorization((byte) (getColorization() >= 16 ? -2 : -1)); return true; } if (GT_Utility.isStackInList(tCurrentItem, GregTech_API.sWrenchList)) { if (aPlayer.isSneaking() && mMetaTileEntity instanceof GT_MetaTileEntity_BasicMachine - && ((GT_MetaTileEntity_BasicMachine) mMetaTileEntity).setMainFacing( - GT_Utility.determineWrenchingSide(aSide, aX, aY, aZ))) { + && ((GT_MetaTileEntity_BasicMachine) mMetaTileEntity) + .setMainFacing(GT_Utility.determineWrenchingSide(aSide, aX, aY, aZ))) { GT_ModHandler.damageOrDechargeItem(tCurrentItem, 1, 1000, aPlayer); GT_Utility.sendSoundToPlayers( + worldObj, + SoundResource.IC2_TOOLS_WRENCH, + 1.0F, + -1, + xCoord, + yCoord, + zCoord); + cableUpdateDelay = 10; + } else if (mMetaTileEntity.onWrenchRightClick( + aSide, + GT_Utility.determineWrenchingSide(aSide, aX, aY, aZ), + aPlayer, + aX, + aY, + aZ)) { + GT_ModHandler.damageOrDechargeItem(tCurrentItem, 1, 1000, aPlayer); + GT_Utility.sendSoundToPlayers( worldObj, SoundResource.IC2_TOOLS_WRENCH, 1.0F, @@ -1461,50 +1467,33 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec xCoord, yCoord, zCoord); - cableUpdateDelay = 10; - } else if (mMetaTileEntity.onWrenchRightClick( - aSide, - GT_Utility.determineWrenchingSide(aSide, aX, aY, aZ), - aPlayer, - aX, - aY, - aZ)) { - GT_ModHandler.damageOrDechargeItem(tCurrentItem, 1, 1000, aPlayer); - GT_Utility.sendSoundToPlayers( - worldObj, - SoundResource.IC2_TOOLS_WRENCH, - 1.0F, - -1, - xCoord, - yCoord, - zCoord); - cableUpdateDelay = 10; - } + cableUpdateDelay = 10; + } return true; } if (GT_Utility.isStackInList(tCurrentItem, GregTech_API.sScrewdriverList)) { if (GT_ModHandler.damageOrDechargeItem(tCurrentItem, 1, 200, aPlayer)) { setCoverDataAtSide( + aSide, + getCoverBehaviorAtSideNew(aSide).onCoverScrewdriverClick( aSide, - getCoverBehaviorAtSideNew(aSide).onCoverScrewdriverClick( - aSide, - getCoverIDAtSide(aSide), - getComplexCoverDataAtSide(aSide), - this, - aPlayer, - aX, - aY, - aZ)); + getCoverIDAtSide(aSide), + getComplexCoverDataAtSide(aSide), + this, + aPlayer, + aX, + aY, + aZ)); mMetaTileEntity.onScrewdriverRightClick(aSide, aPlayer, aX, aY, aZ); GT_Utility.sendSoundToPlayers( - worldObj, - SoundResource.IC2_TOOLS_WRENCH, - 1.0F, - -1, - xCoord, - yCoord, - zCoord); + worldObj, + SoundResource.IC2_TOOLS_WRENCH, + 1.0F, + -1, + xCoord, + yCoord, + zCoord); } return true; } @@ -1514,21 +1503,20 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec mInputDisabled = !mInputDisabled; if (mInputDisabled) mOutputDisabled = !mOutputDisabled; GT_Utility.sendChatToPlayer( - aPlayer, - GT_Utility.trans("086", "Auto-Input: ") - + (mInputDisabled ? GT_Utility.trans("087", "Disabled") - : GT_Utility.trans("088", "Enabled") - + GT_Utility.trans("089", " Auto-Output: ") - + (mOutputDisabled ? GT_Utility.trans("087", "Disabled") - : GT_Utility.trans("088", "Enabled")))); + aPlayer, + GT_Utility.trans("086", "Auto-Input: ") + (mInputDisabled + ? GT_Utility.trans("087", "Disabled") + : GT_Utility.trans("088", "Enabled") + GT_Utility.trans("089", " Auto-Output: ") + + (mOutputDisabled ? GT_Utility.trans("087", "Disabled") + : GT_Utility.trans("088", "Enabled")))); GT_Utility.sendSoundToPlayers( - worldObj, - SoundResource.RANDOM_ANVIL_USE, - 1.0F, - -1, - xCoord, - yCoord, - zCoord); + worldObj, + SoundResource.RANDOM_ANVIL_USE, + 1.0F, + -1, + xCoord, + yCoord, + zCoord); } return true; } @@ -1539,20 +1527,20 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec else enableWorking(); { String tChat = GT_Utility.trans("090", "Machine Processing: ") - + (isAllowedToWork() ? GT_Utility.trans("088", "Enabled") - : GT_Utility.trans("087", "Disabled")); + + (isAllowedToWork() ? GT_Utility.trans("088", "Enabled") + : GT_Utility.trans("087", "Disabled")); if (getMetaTileEntity() != null && getMetaTileEntity().hasAlternativeModeText()) tChat = getMetaTileEntity().getAlternativeModeText(); GT_Utility.sendChatToPlayer(aPlayer, tChat); } GT_Utility.sendSoundToPlayers( - worldObj, - SoundResource.IC2_TOOLS_RUBBER_TRAMPOLINE, - 1.0F, - -1, - xCoord, - yCoord, - zCoord); + worldObj, + SoundResource.IC2_TOOLS_RUBBER_TRAMPOLINE, + 1.0F, + -1, + xCoord, + yCoord, + zCoord); } return true; } @@ -1562,29 +1550,29 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec if (mMetaTileEntity.onSolderingToolRightClick(aSide, tSide, aPlayer, aX, aY, aZ)) { // logic handled internally GT_Utility.sendSoundToPlayers( - worldObj, - SoundResource.IC2_TOOLS_BATTERY_USE, - 1.0F, - -1, - xCoord, - yCoord, - zCoord); + worldObj, + SoundResource.IC2_TOOLS_BATTERY_USE, + 1.0F, + -1, + xCoord, + yCoord, + zCoord); } else if (GT_ModHandler.useSolderingIron(tCurrentItem, aPlayer)) { mStrongRedstone ^= (1 << tSide); GT_Utility.sendChatToPlayer( - aPlayer, - GT_Utility.trans("091", "Redstone Output at Side ") + tSide - + GT_Utility.trans("092", " set to: ") - + ((mStrongRedstone & (1 << tSide)) != 0 ? GT_Utility.trans("093", "Strong") - : GT_Utility.trans("094", "Weak"))); + aPlayer, + GT_Utility.trans("091", "Redstone Output at Side ") + tSide + + GT_Utility.trans("092", " set to: ") + + ((mStrongRedstone & (1 << tSide)) != 0 ? GT_Utility.trans("093", "Strong") + : GT_Utility.trans("094", "Weak"))); GT_Utility.sendSoundToPlayers( - worldObj, - SoundResource.IC2_TOOLS_BATTERY_USE, - 3.0F, - -1, - xCoord, - yCoord, - zCoord); + worldObj, + SoundResource.IC2_TOOLS_BATTERY_USE, + 3.0F, + -1, + xCoord, + yCoord, + zCoord); issueBlockUpdate(); } doEnetUpdate(); @@ -1597,13 +1585,13 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec if (mMetaTileEntity.onWireCutterRightClick(aSide, tSide, aPlayer, aX, aY, aZ)) { // logic handled internally GT_Utility.sendSoundToPlayers( - worldObj, - SoundResource.IC2_TOOLS_WRENCH, - 1.0F, - -1, - xCoord, - yCoord, - zCoord); + worldObj, + SoundResource.IC2_TOOLS_WRENCH, + 1.0F, + -1, + xCoord, + yCoord, + zCoord); } doEnetUpdate(); cableUpdateDelay = 10; @@ -1616,18 +1604,18 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec if (getCoverIDAtSide(coverSide) == 0) { if (GT_Utility.isStackInList(tCurrentItem, GregTech_API.sCovers.keySet())) { if (GregTech_API.getCoverBehaviorNew(tCurrentItem) - .isCoverPlaceable(coverSide, tCurrentItem, this) - && mMetaTileEntity.allowCoverOnSide(coverSide, new GT_ItemStack(tCurrentItem))) { + .isCoverPlaceable(coverSide, tCurrentItem, this) + && mMetaTileEntity.allowCoverOnSide(coverSide, new GT_ItemStack(tCurrentItem))) { setCoverItemAtSide(coverSide, tCurrentItem); if (!aPlayer.capabilities.isCreativeMode) tCurrentItem.stackSize--; GT_Utility.sendSoundToPlayers( - worldObj, - SoundResource.IC2_TOOLS_WRENCH, - 1.0F, - -1, - xCoord, - yCoord, - zCoord); + worldObj, + SoundResource.IC2_TOOLS_WRENCH, + 1.0F, + -1, + xCoord, + yCoord, + zCoord); sendClientData(); } return true; @@ -1636,13 +1624,13 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec if (GT_Utility.isStackInList(tCurrentItem, GregTech_API.sCrowbarList)) { if (GT_ModHandler.damageOrDechargeItem(tCurrentItem, 1, 1000, aPlayer)) { GT_Utility.sendSoundToPlayers( - worldObj, - SoundResource.RANDOM_BREAK, - 1.0F, - -1, - xCoord, - yCoord, - zCoord); + worldObj, + SoundResource.RANDOM_BREAK, + 1.0F, + -1, + xCoord, + yCoord, + zCoord); dropCover(coverSide, aSide, false); } return true; @@ -1651,25 +1639,24 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec // End item != null } else if (aPlayer.isSneaking()) { // Sneak click, no tool -> open cover config if possible. aSide = (getCoverIDAtSide(aSide) == 0) ? GT_Utility.determineWrenchingSide(aSide, aX, aY, aZ) - : aSide; + : aSide; return getCoverIDAtSide(aSide) > 0 && getCoverBehaviorAtSideNew(aSide).onCoverShiftRightClick( - aSide, - getCoverIDAtSide(aSide), - getComplexCoverDataAtSide(aSide), - this, - aPlayer); - } - - if (getCoverBehaviorAtSideNew(aSide).onCoverRightClick( aSide, getCoverIDAtSide(aSide), getComplexCoverDataAtSide(aSide), this, - aPlayer, - aX, - aY, - aZ)) - return true; + aPlayer); + } + + if (getCoverBehaviorAtSideNew(aSide).onCoverRightClick( + aSide, + getCoverIDAtSide(aSide), + getComplexCoverDataAtSide(aSide), + this, + aPlayer, + aX, + aY, + aZ)) return true; if (!getCoverInfoAtSide(aSide).isGUIClickable()) return false; @@ -1677,13 +1664,13 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec if (ItemList.Upgrade_Muffler.isStackEqual(aPlayer.inventory.getCurrentItem())) { if (addMufflerUpgrade()) { GT_Utility.sendSoundToPlayers( - worldObj, - SoundResource.RANDOM_CLICK, - 1.0F, - -1, - xCoord, - yCoord, - zCoord); + worldObj, + SoundResource.RANDOM_CLICK, + 1.0F, + -1, + xCoord, + yCoord, + zCoord); if (!aPlayer.capabilities.isCreativeMode) aPlayer.inventory.getCurrentItem().stackSize--; } return true; @@ -1694,13 +1681,13 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec setOwnerName(aPlayer.getDisplayName()); setOwnerUuid(aPlayer.getUniqueID()); GT_Utility.sendSoundToPlayers( - worldObj, - SoundResource.RANDOM_CLICK, - 1.0F, - -1, - xCoord, - yCoord, - zCoord); + worldObj, + SoundResource.RANDOM_CLICK, + 1.0F, + -1, + xCoord, + yCoord, + zCoord); if (!aPlayer.capabilities.isCreativeMode) aPlayer.inventory.getCurrentItem().stackSize--; } return true; @@ -1714,7 +1701,7 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec return mMetaTileEntity.onRightclick(this, aPlayer, aSide, aX, aY, aZ); } catch (Throwable e) { GT_Log.err.println( - "Encountered Exception while rightclicking TileEntity, the Game should've crashed now, but I prevented that. Please report immediately to GregTech Intergalactical!!!"); + "Encountered Exception while rightclicking TileEntity, the Game should've crashed now, but I prevented that. Please report immediately to GregTech Intergalactical!!!"); e.printStackTrace(GT_Log.err); e.printStackTrace(); } @@ -1728,7 +1715,7 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec if (aPlayer != null && hasValidMetaTileEntity()) mMetaTileEntity.onLeftclick(this, aPlayer); } catch (Throwable e) { GT_Log.err.println( - "Encountered Exception while leftclicking TileEntity, the Game should've crashed now, but I prevented that. Please report immediately to GregTech Intergalactical!!!"); + "Encountered Exception while leftclicking TileEntity, the Game should've crashed now, but I prevented that. Please report immediately to GregTech Intergalactical!!!"); e.printStackTrace(GT_Log.err); } } @@ -1782,8 +1769,8 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec @Override public boolean canInsertItem(int aIndex, ItemStack aStack, int aSide) { return canAccessData() && (mRunningThroughTick || !mInputDisabled) - && getCoverInfoAtSide((byte) aSide).letsItemsIn(aIndex) - && mMetaTileEntity.canInsertItem(aIndex, aStack, aSide); + && getCoverInfoAtSide((byte) aSide).letsItemsIn(aIndex) + && mMetaTileEntity.canInsertItem(aIndex, aStack, aSide); } /** @@ -1792,13 +1779,13 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec @Override public boolean canExtractItem(int aIndex, ItemStack aStack, int aSide) { return canAccessData() && (mRunningThroughTick || !mOutputDisabled) - && getCoverBehaviorAtSideNew((byte) aSide).letsItemsOut( - (byte) aSide, - getCoverIDAtSide((byte) aSide), - getComplexCoverDataAtSide((byte) aSide), - aIndex, - this) - && mMetaTileEntity.canExtractItem(aIndex, aStack, aSide); + && getCoverBehaviorAtSideNew((byte) aSide).letsItemsOut( + (byte) aSide, + getCoverIDAtSide((byte) aSide), + getComplexCoverDataAtSide((byte) aSide), + aIndex, + this) + && mMetaTileEntity.canExtractItem(aIndex, aStack, aSide); } @Override @@ -1875,9 +1862,9 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec mMetaTileEntity = (MetaTileEntity) aMetaTileEntity; else { GT_FML_LOGGER.error( - "Unknown meta tile entity set! Class {}, inventory name {}.", - aMetaTileEntity.getClass(), - aMetaTileEntity.getInventoryName()); + "Unknown meta tile entity set! Class {}, inventory name {}.", + aMetaTileEntity.getClass(), + aMetaTileEntity.getInventoryName()); } } @@ -1952,25 +1939,24 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec @Override public long injectEnergyUnits(byte aSide, long aVoltage, long aAmperage) { if (!canAccessData() || !mMetaTileEntity.isElectric() - || !inputEnergyFrom(aSide) - || aAmperage <= 0 - || aVoltage <= 0 - || getStoredEU() >= getEUCapacity() - || mMetaTileEntity.maxAmperesIn() <= mAcceptedAmperes) - return 0; + || !inputEnergyFrom(aSide) + || aAmperage <= 0 + || aVoltage <= 0 + || getStoredEU() >= getEUCapacity() + || mMetaTileEntity.maxAmperesIn() <= mAcceptedAmperes) return 0; if (aVoltage > getInputVoltage()) { - GT_Log.exp.println( - "Energy Explosion, injected " + aVoltage + "EU/t in a " + getInputVoltage() + "EU/t Machine!"); + GT_Log.exp + .println("Energy Explosion, injected " + aVoltage + "EU/t in a " + getInputVoltage() + "EU/t Machine!"); doExplosion(aVoltage); return 0; } if (increaseStoredEnergyUnits( - aVoltage * (aAmperage = Math.min( - aAmperage, - Math.min( - mMetaTileEntity.maxAmperesIn() - mAcceptedAmperes, - 1 + ((getEUCapacity() - getStoredEU()) / aVoltage)))), - true)) { + aVoltage * (aAmperage = Math.min( + aAmperage, + Math.min( + mMetaTileEntity.maxAmperesIn() - mAcceptedAmperes, + 1 + ((getEUCapacity() - getStoredEU()) / aVoltage)))), + true)) { mAverageEUInput[mAverageEUInputIndex] += aVoltage * aAmperage; mAcceptedAmperes += aAmperage; return aAmperage; @@ -1981,9 +1967,8 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec @Override public boolean drainEnergyUnits(byte aSide, long aVoltage, long aAmperage) { if (!canAccessData() || !mMetaTileEntity.isElectric() - || !outputsEnergyTo(aSide) - || getStoredEU() - (aVoltage * aAmperage) < mMetaTileEntity.getMinimumStoredEU()) - return false; + || !outputsEnergyTo(aSide) + || getStoredEU() - (aVoltage * aAmperage) < mMetaTileEntity.getMinimumStoredEU()) return false; if (decreaseStoredEU(aVoltage * aAmperage, false)) { mAverageEUOutput[mAverageEUOutputIndex] += aVoltage * aAmperage; return true; @@ -2006,10 +1991,9 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec @Override public int fill(ForgeDirection aSide, FluidStack aFluid, boolean doFill) { if (mTickTimer > 5 && canAccessData() - && (mRunningThroughTick || !mInputDisabled) - && (aSide == ForgeDirection.UNKNOWN || (mMetaTileEntity.isLiquidInput((byte) aSide.ordinal()) - && getCoverInfoAtSide((byte) aSide.ordinal()).letsFluidIn( - aFluid == null ? null : aFluid.getFluid())))) + && (mRunningThroughTick || !mInputDisabled) + && (aSide == ForgeDirection.UNKNOWN || (mMetaTileEntity.isLiquidInput((byte) aSide.ordinal()) + && getCoverInfoAtSide((byte) aSide.ordinal()).letsFluidIn(aFluid == null ? null : aFluid.getFluid())))) return mMetaTileEntity.fill(aSide, aFluid, doFill); return 0; } @@ -2017,12 +2001,12 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec @Override public FluidStack drain(ForgeDirection aSide, int maxDrain, boolean doDrain) { if (mTickTimer > 5 && canAccessData() - && (mRunningThroughTick || !mOutputDisabled) - && (aSide == ForgeDirection.UNKNOWN || (mMetaTileEntity.isLiquidOutput((byte) aSide.ordinal()) - && getCoverInfoAtSide((byte) aSide.ordinal()).letsFluidOut( - mMetaTileEntity.getFluid() == null ? null - : mMetaTileEntity.getFluid() - .getFluid())))) + && (mRunningThroughTick || !mOutputDisabled) + && (aSide == ForgeDirection.UNKNOWN || (mMetaTileEntity.isLiquidOutput((byte) aSide.ordinal()) + && getCoverInfoAtSide((byte) aSide.ordinal()).letsFluidOut( + mMetaTileEntity.getFluid() == null ? null + : mMetaTileEntity.getFluid() + .getFluid())))) return mMetaTileEntity.drain(aSide, maxDrain, doDrain); return null; } @@ -2030,10 +2014,9 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec @Override public FluidStack drain(ForgeDirection aSide, FluidStack aFluid, boolean doDrain) { if (mTickTimer > 5 && canAccessData() - && (mRunningThroughTick || !mOutputDisabled) - && (aSide == ForgeDirection.UNKNOWN || (mMetaTileEntity.isLiquidOutput((byte) aSide.ordinal()) - && getCoverInfoAtSide((byte) aSide.ordinal()).letsFluidOut( - aFluid == null ? null : aFluid.getFluid())))) + && (mRunningThroughTick || !mOutputDisabled) + && (aSide == ForgeDirection.UNKNOWN || (mMetaTileEntity.isLiquidOutput((byte) aSide.ordinal()) + && getCoverInfoAtSide((byte) aSide.ordinal()).letsFluidOut(aFluid == null ? null : aFluid.getFluid())))) return mMetaTileEntity.drain(aSide, aFluid, doDrain); return null; } @@ -2041,9 +2024,9 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec @Override public boolean canFill(ForgeDirection aSide, Fluid aFluid) { if (mTickTimer > 5 && canAccessData() - && (mRunningThroughTick || !mInputDisabled) - && (aSide == ForgeDirection.UNKNOWN || (mMetaTileEntity.isLiquidInput((byte) aSide.ordinal()) - && getCoverInfoAtSide((byte) aSide.ordinal()).letsFluidIn(aFluid)))) + && (mRunningThroughTick || !mInputDisabled) + && (aSide == ForgeDirection.UNKNOWN || (mMetaTileEntity.isLiquidInput((byte) aSide.ordinal()) + && getCoverInfoAtSide((byte) aSide.ordinal()).letsFluidIn(aFluid)))) return mMetaTileEntity.canFill(aSide, aFluid); return false; } @@ -2051,9 +2034,9 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec @Override public boolean canDrain(ForgeDirection aSide, Fluid aFluid) { if (mTickTimer > 5 && canAccessData() - && (mRunningThroughTick || !mOutputDisabled) - && (aSide == ForgeDirection.UNKNOWN || (mMetaTileEntity.isLiquidOutput((byte) aSide.ordinal()) - && getCoverInfoAtSide((byte) aSide.ordinal()).letsFluidOut(aFluid)))) + && (mRunningThroughTick || !mOutputDisabled) + && (aSide == ForgeDirection.UNKNOWN || (mMetaTileEntity.isLiquidOutput((byte) aSide.ordinal()) + && getCoverInfoAtSide((byte) aSide.ordinal()).letsFluidOut(aFluid)))) return mMetaTileEntity.canDrain(aSide, aFluid); return false; } @@ -2063,8 +2046,8 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec final byte tSide = (byte) aSide.ordinal(); if (canAccessData() && (aSide == ForgeDirection.UNKNOWN - || (mMetaTileEntity.isLiquidInput(tSide) && getCoverInfoAtSide(tSide).letsFluidIn(null)) - || (mMetaTileEntity.isLiquidOutput(tSide) && getCoverInfoAtSide(tSide).letsFluidOut(null)))) + || (mMetaTileEntity.isLiquidInput(tSide) && getCoverInfoAtSide(tSide).letsFluidIn(null)) + || (mMetaTileEntity.isLiquidOutput(tSide) && getCoverInfoAtSide(tSide).letsFluidOut(null)))) return mMetaTileEntity.getTankInfo(aSide); return new FluidTankInfo[] {}; } @@ -2096,8 +2079,8 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec public double getOfferedEnergy() { return (canAccessData() && getStoredEU() - mMetaTileEntity.getMinimumStoredEU() >= oOutput) - ? Math.max(0, oOutput) - : 0; + ? Math.max(0, oOutput) + : 0; } public void drawEnergy(double amount) { @@ -2176,8 +2159,8 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec return true; } aStack = GT_OreDictUnificator.get(aStack); - if (GT_Utility.areStacksEqual(tStack, aStack) && tStack.stackSize + aStack.stackSize - <= Math.min(aStack.getMaxStackSize(), getInventoryStackLimit())) { + if (GT_Utility.areStacksEqual(tStack, aStack) + && tStack.stackSize + aStack.stackSize <= Math.min(aStack.getMaxStackSize(), getInventoryStackLimit())) { tStack.stackSize += aStack.stackSize; markDirty(); return true; @@ -2235,7 +2218,7 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec @Override public void addCollisionBoxesToList(World aWorld, int aX, int aY, int aZ, AxisAlignedBB inputAABB, - List outputAABB, Entity collider) { + List outputAABB, Entity collider) { mMetaTileEntity.addCollisionBoxesToList(aWorld, aX, aY, aZ, inputAABB, outputAABB, collider); } @@ -2271,8 +2254,7 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec if (nbtVersion < 1000000) nbtVersion *= 1000; // 4 is old GT_MetaTileEntity_BasicMachine.OTHER_SLOT_COUNT if (nbtVersion < configCircuitAdditionVersion && getMetaTileEntity() instanceof GT_MetaTileEntity_BasicMachine - && slotIndex >= 4) - slotIndex += 1; + && slotIndex >= 4) slotIndex += 1; if (mID >= 211 && mID <= 218) { // Assembler if (nbtVersion < chemistryUpdateVersion) { oldInputSize = 2; @@ -2417,8 +2399,8 @@ public class BaseMetaTileEntity extends CommonMetaTileEntity implements IGregTec @Override public IAlignment getAlignment() { return getMetaTileEntity() instanceof IAlignmentProvider - ? ((IAlignmentProvider) getMetaTileEntity()).getAlignment() - : getMetaTileEntity() instanceof IAlignment ? (IAlignment) getMetaTileEntity() : null; + ? ((IAlignmentProvider) getMetaTileEntity()).getAlignment() + : getMetaTileEntity() instanceof IAlignment ? (IAlignment) getMetaTileEntity() : null; } @Nullable diff --git a/src/main/java/gregtech/api/metatileentity/BaseTileEntity.java b/src/main/java/gregtech/api/metatileentity/BaseTileEntity.java index 3ef732b1c8..a73481d89f 100644 --- a/src/main/java/gregtech/api/metatileentity/BaseTileEntity.java +++ b/src/main/java/gregtech/api/metatileentity/BaseTileEntity.java @@ -78,7 +78,7 @@ import ic2.api.energy.event.EnergyTileUnloadEvent; * Basically everything a TileEntity should have. */ public abstract class BaseTileEntity extends TileEntity implements IHasWorldObjectAndCoords, IIC2Enet, IGTEnet, - ITileWithModularUI, IAddGregtechLogo, IGetGUITextureSet, IAddInventorySlots { + ITileWithModularUI, IAddGregtechLogo, IGetGUITextureSet, IAddInventorySlots { protected boolean mInventoryChanged = false; @@ -108,7 +108,7 @@ public abstract class BaseTileEntity extends TileEntity implements IHasWorldObje if (aPlayer.rotationPitch >= 65 && aAllowedFacings[SIDE_UP]) return SIDE_UP; if (aPlayer.rotationPitch <= -65 && aAllowedFacings[SIDE_DOWN]) return SIDE_DOWN; final byte rFacing = COMPASS_DIRECTIONS[MathHelper.floor_double(0.5D + 4.0F * aPlayer.rotationYaw / 360.0F) - & 0x3]; + & 0x3]; if (aAllowedFacings[rFacing]) return rFacing; } for (final byte tSide : ALL_VALID_SIDES) if (aAllowedFacings[tSide]) return tSide; @@ -202,7 +202,7 @@ public abstract class BaseTileEntity extends TileEntity implements IHasWorldObje @Override public int getRandomNumber(int aRange) { return ThreadLocalRandom.current() - .nextInt(aRange); + .nextInt(aRange); } @Override @@ -409,8 +409,7 @@ public abstract class BaseTileEntity extends TileEntity implements IHasWorldObje public Block getBlock(ChunkCoordinates aCoords) { if (worldObj == null) return Blocks.air; if (ignoreUnloadedChunks && crossedChunkBorder(aCoords) - && !worldObj.blockExists(aCoords.posX, aCoords.posY, aCoords.posZ)) - return Blocks.air; + && !worldObj.blockExists(aCoords.posX, aCoords.posY, aCoords.posZ)) return Blocks.air; return worldObj.getBlock(aCoords.posX, aCoords.posY, aCoords.posZ); } @@ -473,7 +472,7 @@ public abstract class BaseTileEntity extends TileEntity implements IHasWorldObje return getTileEntityAtSide(aSide); } if (mBufferedTileEntities[aSide].xCoord == tX && mBufferedTileEntities[aSide].yCoord == tY - && mBufferedTileEntities[aSide].zCoord == tZ) { + && mBufferedTileEntities[aSide].zCoord == tZ) { return mBufferedTileEntities[aSide]; } return null; @@ -530,10 +529,10 @@ public abstract class BaseTileEntity extends TileEntity implements IHasWorldObje // update if it was / is strong powered. if (((((mStrongRedstone | oStrongRedstone) >>> dir.ordinal()) & 1) != 0) - && getBlock(x1, y1, z1).isNormalCube()) { + && getBlock(x1, y1, z1).isNormalCube()) { final int skipUpdateSide = dir.getOpposite() - .ordinal(); // Don't update this block. Still updates - // diagonal blocks twice if conditions + .ordinal(); // Don't update this block. Still updates + // diagonal blocks twice if conditions // meet. for (final ForgeDirection dir2 : ForgeDirection.VALID_DIRECTIONS) { @@ -549,10 +548,10 @@ public abstract class BaseTileEntity extends TileEntity implements IHasWorldObje @Override public final void sendBlockEvent(byte aID, byte aValue) { NW.sendPacketToAllPlayersInRange( - worldObj, - new GT_Packet_Block_Event(xCoord, (short) yCoord, zCoord, aID, aValue), - xCoord, - zCoord); + worldObj, + new GT_Packet_Block_Event(xCoord, (short) yCoord, zCoord, aID, aValue), + xCoord, + zCoord); } protected boolean crossedChunkBorder(int aX, int aZ) { @@ -662,18 +661,17 @@ public abstract class BaseTileEntity extends TileEntity implements IHasWorldObje // Tooltip localization keys public static final String BATTERY_SLOT_TOOLTIP = "GT5U.machines.battery_slot.tooltip", - BATTERY_SLOT_TOOLTIP_ALT = "GT5U.machines.battery_slot.tooltip.alternative", - UNUSED_SLOT_TOOLTIP = "GT5U.machines.unused_slot.tooltip", - SPECIAL_SLOT_TOOLTIP = "GT5U.machines.special_slot.tooltip", - FLUID_INPUT_TOOLTIP = "GT5U.machines.fluid_input_slot.tooltip", - FLUID_OUTPUT_TOOLTIP = "GT5U.machines.fluid_output_slot.tooltip", - STALLED_STUTTERING_TOOLTIP = "GT5U.machines.stalled_stuttering.tooltip", - STALLED_VENT_TOOLTIP = "GT5U.machines.stalled_vent.tooltip", - FLUID_TRANSFER_TOOLTIP = "GT5U.machines.fluid_transfer.tooltip", - ITEM_TRANSFER_TOOLTIP = "GT5U.machines.item_transfer.tooltip", - POWER_SOURCE_KEY = "GT5U.machines.powersource.", - NEI_TRANSFER_STEAM_TOOLTIP = "GT5U.machines.nei_transfer.steam.tooltip", - NEI_TRANSFER_VOLTAGE_TOOLTIP = "GT5U.machines.nei_transfer.voltage.tooltip"; + BATTERY_SLOT_TOOLTIP_ALT = "GT5U.machines.battery_slot.tooltip.alternative", + UNUSED_SLOT_TOOLTIP = "GT5U.machines.unused_slot.tooltip", + SPECIAL_SLOT_TOOLTIP = "GT5U.machines.special_slot.tooltip", + FLUID_INPUT_TOOLTIP = "GT5U.machines.fluid_input_slot.tooltip", + FLUID_OUTPUT_TOOLTIP = "GT5U.machines.fluid_output_slot.tooltip", + STALLED_STUTTERING_TOOLTIP = "GT5U.machines.stalled_stuttering.tooltip", + STALLED_VENT_TOOLTIP = "GT5U.machines.stalled_vent.tooltip", + FLUID_TRANSFER_TOOLTIP = "GT5U.machines.fluid_transfer.tooltip", + ITEM_TRANSFER_TOOLTIP = "GT5U.machines.item_transfer.tooltip", POWER_SOURCE_KEY = "GT5U.machines.powersource.", + NEI_TRANSFER_STEAM_TOOLTIP = "GT5U.machines.nei_transfer.steam.tooltip", + NEI_TRANSFER_VOLTAGE_TOOLTIP = "GT5U.machines.nei_transfer.voltage.tooltip"; public static final int TOOLTIP_DELAY = 5; @@ -709,46 +707,45 @@ public abstract class BaseTileEntity extends TileEntity implements IHasWorldObje if (NetworkUtils.isClient()) { final FontRenderer fontRenderer = Minecraft.getMinecraft().fontRenderer; // noinspection unchecked - final List titleLines = fontRenderer.listFormattedStringToWidth( - title, - getGUIWidth() - (TAB_PADDING + TITLE_PADDING) * 2); + final List titleLines = fontRenderer + .listFormattedStringToWidth(title, getGUIWidth() - (TAB_PADDING + TITLE_PADDING) * 2); titleWidth = titleLines.size() > 1 ? getGUIWidth() - (TAB_PADDING + TITLE_PADDING) * 2 - : fontRenderer.getStringWidth(title); + : fontRenderer.getStringWidth(title); // noinspection PointlessArithmeticExpression titleHeight = titleLines.size() * fontRenderer.FONT_HEIGHT + (titleLines.size() - 1) * 1; } final DrawableWidget tab = new DrawableWidget(); final TextWidget text = new TextWidget(title).setDefaultColor(getTitleColor()) - .setTextAlignment(Alignment.CenterLeft) - .setMaxWidth(titleWidth); + .setTextAlignment(Alignment.CenterLeft) + .setMaxWidth(titleWidth); if (GT_Mod.gregtechproxy.mTitleTabStyle == 1) { tab.setDrawable(getGUITextureSet().getTitleTabAngular()) - .setPos(0, -(titleHeight + TAB_PADDING) + 1) - .setSize(getGUIWidth(), titleHeight + TAB_PADDING * 2); + .setPos(0, -(titleHeight + TAB_PADDING) + 1) + .setSize(getGUIWidth(), titleHeight + TAB_PADDING * 2); text.setPos(TAB_PADDING + TITLE_PADDING, -titleHeight + TAB_PADDING); } else { tab.setDrawable(getGUITextureSet().getTitleTabDark()) - .setPos(0, -(titleHeight + TAB_PADDING * 2) + 1) - .setSize(titleWidth + (TAB_PADDING + TITLE_PADDING) * 2, titleHeight + TAB_PADDING * 2 - 1); + .setPos(0, -(titleHeight + TAB_PADDING * 2) + 1) + .setSize(titleWidth + (TAB_PADDING + TITLE_PADDING) * 2, titleHeight + TAB_PADDING * 2 - 1); text.setPos(TAB_PADDING + TITLE_PADDING, -titleHeight); } builder.widget(tab) - .widget(text); + .widget(text); } protected void addTitleItemIconStyle(ModularWindow.Builder builder, String title) { builder.widget( - new MultiChildWidget().addChild( - new DrawableWidget().setDrawable(getGUITextureSet().getTitleTabNormal()) - .setPos(0, 0) - .setSize(24, 24)) - .addChild( - new ItemDrawable(getStackForm(1)).asWidget() - .setPos(4, 4)) - .addTooltip(title) - .setTooltipShowUpDelay(TOOLTIP_DELAY) - .setPos(0, -24 + 3)); + new MultiChildWidget().addChild( + new DrawableWidget().setDrawable(getGUITextureSet().getTitleTabNormal()) + .setPos(0, 0) + .setSize(24, 24)) + .addChild( + new ItemDrawable(getStackForm(1)).asWidget() + .setPos(4, 4)) + .addTooltip(title) + .setTooltipShowUpDelay(TOOLTIP_DELAY) + .setPos(0, -24 + 3)); } @Override @@ -763,9 +760,9 @@ public abstract class BaseTileEntity extends TileEntity implements IHasWorldObje @Override public void addGregTechLogo(ModularWindow.Builder builder) { builder.widget( - new DrawableWidget().setDrawable(getGUITextureSet().getGregTechLogo()) - .setSize(17, 17) - .setPos(152, 63)); + new DrawableWidget().setDrawable(getGUITextureSet().getGregTechLogo()) + .setSize(17, 17) + .setPos(152, 63)); } protected int getGUIWidth() { @@ -789,12 +786,12 @@ public abstract class BaseTileEntity extends TileEntity implements IHasWorldObje background = new IDrawable[] { getGUITextureSet().getItemSlot() }; } builder.widget( - SlotGroup.ofItemHandler(inventoryHandler, 1) - .startFromSlot(0) - .endAtSlot(0) - .background(background) - .build() - .setPos(79, 34)); + SlotGroup.ofItemHandler(inventoryHandler, 1) + .startFromSlot(0) + .endAtSlot(0) + .background(background) + .build() + .setPos(79, 34)); } @Override @@ -806,12 +803,12 @@ public abstract class BaseTileEntity extends TileEntity implements IHasWorldObje background = new IDrawable[] { getGUITextureSet().getItemSlot() }; } builder.widget( - SlotGroup.ofItemHandler(inventoryHandler, 2) - .startFromSlot(0) - .endAtSlot(3) - .background(background) - .build() - .setPos(70, 25)); + SlotGroup.ofItemHandler(inventoryHandler, 2) + .startFromSlot(0) + .endAtSlot(3) + .background(background) + .build() + .setPos(70, 25)); } @Override @@ -823,12 +820,12 @@ public abstract class BaseTileEntity extends TileEntity implements IHasWorldObje background = new IDrawable[] { getGUITextureSet().getItemSlot() }; } builder.widget( - SlotGroup.ofItemHandler(inventoryHandler, 3) - .startFromSlot(0) - .endAtSlot(8) - .background(background) - .build() - .setPos(61, 16)); + SlotGroup.ofItemHandler(inventoryHandler, 3) + .startFromSlot(0) + .endAtSlot(8) + .background(background) + .build() + .setPos(61, 16)); } @Override @@ -840,12 +837,12 @@ public abstract class BaseTileEntity extends TileEntity implements IHasWorldObje background = new IDrawable[] { getGUITextureSet().getItemSlot() }; } builder.widget( - SlotGroup.ofItemHandler(inventoryHandler, 4) - .startFromSlot(0) - .endAtSlot(15) - .background(background) - .build() - .setPos(52, 7)); + SlotGroup.ofItemHandler(inventoryHandler, 4) + .startFromSlot(0) + .endAtSlot(15) + .background(background) + .build() + .setPos(52, 7)); } public void addCoverTabs(ModularWindow.Builder builder, UIBuildContext buildContext) { @@ -885,9 +882,8 @@ public abstract class BaseTileEntity extends TileEntity implements IHasWorldObje final List tCircuits = ccs.getConfigurationCircuits(); final int index = GT_Utility.findMatchingStackInList(tCircuits, cursorStack); if (index < 0) { - int curIndex = GT_Utility.findMatchingStackInList( - tCircuits, - inv.getStackInSlot(ccs.getCircuitSlot())) + 1; + int curIndex = GT_Utility + .findMatchingStackInList(tCircuits, inv.getStackInSlot(ccs.getCircuitSlot())) + 1; if (clickData.mouseButton == 0) { curIndex += 1; } else { @@ -911,25 +907,25 @@ public abstract class BaseTileEntity extends TileEntity implements IHasWorldObje @Override public List getExtraTooltip() { return Arrays.asList( - EnumChatFormatting.DARK_GRAY + EnumChatFormatting.getTextWithoutFormattingCodes( - StatCollector.translateToLocal("GT5U.machines.select_circuit.tooltip.1")), - EnumChatFormatting.DARK_GRAY + EnumChatFormatting.getTextWithoutFormattingCodes( - StatCollector.translateToLocal("GT5U.machines.select_circuit.tooltip.2")), - EnumChatFormatting.DARK_GRAY + EnumChatFormatting.getTextWithoutFormattingCodes( - StatCollector.translateToLocal("GT5U.machines.select_circuit.tooltip.3"))); + EnumChatFormatting.DARK_GRAY + EnumChatFormatting.getTextWithoutFormattingCodes( + StatCollector.translateToLocal("GT5U.machines.select_circuit.tooltip.1")), + EnumChatFormatting.DARK_GRAY + EnumChatFormatting.getTextWithoutFormattingCodes( + StatCollector.translateToLocal("GT5U.machines.select_circuit.tooltip.2")), + EnumChatFormatting.DARK_GRAY + EnumChatFormatting.getTextWithoutFormattingCodes( + StatCollector.translateToLocal("GT5U.machines.select_circuit.tooltip.3"))); } }.setOverwriteItemStackTooltip(list -> { list.removeIf( - line -> line.contains(StatCollector.translateToLocal("gt.integrated_circuit.tooltip.0")) - || line.contains(StatCollector.translateToLocal("gt.integrated_circuit.tooltip.1"))); + line -> line.contains(StatCollector.translateToLocal("gt.integrated_circuit.tooltip.0")) + || line.contains(StatCollector.translateToLocal("gt.integrated_circuit.tooltip.1"))); return list; }) - .disableShiftInsert() - .setHandlePhantomActionClient(true) - .setBackground(getGUITextureSet().getItemSlot(), GT_UITextures.OVERLAY_SLOT_INT_CIRCUIT) - .setGTTooltip(() -> mTooltipCache.getData("GT5U.machines.select_circuit.tooltip")) - .setTooltipShowUpDelay(TOOLTIP_DELAY) - .setPos(ccs.getCircuitSlotX() - 1, ccs.getCircuitSlotY() - 1)); + .disableShiftInsert() + .setHandlePhantomActionClient(true) + .setBackground(getGUITextureSet().getItemSlot(), GT_UITextures.OVERLAY_SLOT_INT_CIRCUIT) + .setGTTooltip(() -> mTooltipCache.getData("GT5U.machines.select_circuit.tooltip")) + .setTooltipShowUpDelay(TOOLTIP_DELAY) + .setPos(ccs.getCircuitSlotX() - 1, ccs.getCircuitSlotY() - 1)); } protected void openSelectCircuitDialog(ModularUIContext uiContext, AtomicBoolean dialogOpened) { @@ -940,23 +936,16 @@ public abstract class BaseTileEntity extends TileEntity implements IHasWorldObje final List circuits = ccs.getConfigurationCircuits(); uiContext.openClientWindow( - player -> new SelectItemUIFactory( - StatCollector.translateToLocal("GT5U.machines.select_circuit"), - getStackForm(0), - this::onCircuitSelected, - circuits, - GT_Utility.findMatchingStackInList(circuits, inv.getStackInSlot(ccs.getCircuitSlot()))) - .setAnotherWindow( - true, - dialogOpened) - .setGuiTint( - getGUIColorization()) - .setCurrentGetter( - () -> inv.getStackInSlot( - ccs.getCircuitSlot())) - .createWindow( - new UIBuildContext( - player))); + player -> new SelectItemUIFactory( + StatCollector.translateToLocal("GT5U.machines.select_circuit"), + getStackForm(0), + this::onCircuitSelected, + circuits, + GT_Utility.findMatchingStackInList(circuits, inv.getStackInSlot(ccs.getCircuitSlot()))) + .setAnotherWindow(true, dialogOpened) + .setGuiTint(getGUIColorization()) + .setCurrentGetter(() -> inv.getStackInSlot(ccs.getCircuitSlot())) + .createWindow(new UIBuildContext(player))); } protected void onCircuitSelected(ItemStack selected) { diff --git a/src/main/java/gregtech/api/metatileentity/CommonMetaTileEntity.java b/src/main/java/gregtech/api/metatileentity/CommonMetaTileEntity.java index 9bbc853963..5fa9cbfaee 100644 --- a/src/main/java/gregtech/api/metatileentity/CommonMetaTileEntity.java +++ b/src/main/java/gregtech/api/metatileentity/CommonMetaTileEntity.java @@ -35,7 +35,7 @@ public abstract class CommonMetaTileEntity extends CoverableTileEntity implement } else { if (hasValidMetaTileEntity()) getMetaTileEntity().setBaseMetaTileEntity(null); GregTech_API.METATILEENTITIES[aID].newMetaEntity(this) - .setBaseMetaTileEntity(this); + .setBaseMetaTileEntity(this); mTickTimer = 0; mID = aID; return true; diff --git a/src/main/java/gregtech/api/metatileentity/CoverableTileEntity.java b/src/main/java/gregtech/api/metatileentity/CoverableTileEntity.java index 4167bf1701..f2cd7e3019 100644 --- a/src/main/java/gregtech/api/metatileentity/CoverableTileEntity.java +++ b/src/main/java/gregtech/api/metatileentity/CoverableTileEntity.java @@ -64,9 +64,9 @@ import gregtech.common.covers.GT_Cover_Fluidfilter; public abstract class CoverableTileEntity extends BaseTileEntity implements ICoverable, IGregtechWailaProvider { public static final String[] COVER_DATA_NBT_KEYS = Arrays.stream(ForgeDirection.VALID_DIRECTIONS) - .mapToInt(Enum::ordinal) - .mapToObj(i -> "mCoverData" + i) - .toArray(String[]::new); + .mapToInt(Enum::ordinal) + .mapToObj(i -> "mCoverData" + i) + .toArray(String[]::new); // New Cover Information protected final CoverInfo[] coverInfos = new CoverInfo[] { null, null, null, null, null, null }; @@ -78,8 +78,8 @@ public abstract class CoverableTileEntity extends BaseTileEntity implements ICov /* Deprecated Cover Variables */ @Deprecated protected final GT_CoverBehaviorBase[] mCoverBehaviors = new GT_CoverBehaviorBase[] { - GregTech_API.sNoBehavior, GregTech_API.sNoBehavior, GregTech_API.sNoBehavior, GregTech_API.sNoBehavior, - GregTech_API.sNoBehavior, GregTech_API.sNoBehavior }; + GregTech_API.sNoBehavior, GregTech_API.sNoBehavior, GregTech_API.sNoBehavior, GregTech_API.sNoBehavior, + GregTech_API.sNoBehavior, GregTech_API.sNoBehavior }; @Deprecated protected int[] mCoverSides = new int[] { 0, 0, 0, 0, 0, 0 }; @@ -105,9 +105,9 @@ public abstract class CoverableTileEntity extends BaseTileEntity implements ICov // Backwards compat, in case of a revert... for now tList.appendTag(coverInfo.writeToNBT(new NBTTagCompound())); aNBT.setTag( - COVER_DATA_NBT_KEYS[i], - coverInfo.getCoverData() - .saveDataToNBT()); + COVER_DATA_NBT_KEYS[i], + coverInfo.getCoverData() + .saveDataToNBT()); } if (tList.tagCount() > 0) { aNBT.setTag(GT_Values.NBT.COVERS, tList); @@ -126,7 +126,7 @@ public abstract class CoverableTileEntity extends BaseTileEntity implements ICov protected void readCoverNBT(NBTTagCompound aNBT) { mRedstone = aNBT.getBoolean("mRedstone"); mSidedRedstone = aNBT.hasKey("mRedstoneSided") ? aNBT.getByteArray("mRedstoneSided") - : new byte[] { 15, 15, 15, 15, 15, 15 }; + : new byte[] { 15, 15, 15, 15, 15, 15 }; mStrongRedstone = aNBT.getByte("mStrongRedstone"); if (aNBT.hasKey(GT_Values.NBT.COVERS)) { @@ -148,7 +148,7 @@ public abstract class CoverableTileEntity extends BaseTileEntity implements ICov public void readLegacyCoverInfoNBT(NBTTagCompound aNBT) { final int[] coverIDs = aNBT.hasKey("mCoverSides") ? aNBT.getIntArray("mCoverSides") - : new int[] { 0, 0, 0, 0, 0, 0 }; + : new int[] { 0, 0, 0, 0, 0, 0 }; final boolean hasOldCoverData = (aNBT.hasKey("mCoverData", 11) && aNBT.getIntArray("mCoverData").length == 6); final int[] tOldData = hasOldCoverData ? aNBT.getIntArray("mCoverData") : new int[] {}; @@ -165,10 +165,8 @@ public abstract class CoverableTileEntity extends BaseTileEntity implements ICov final String filterKey = String.format("fluidFilter%d", i); if (aNBT.hasKey(filterKey)) { coverData = coverInfo.getCoverBehavior() - .createDataObject( - (tOldData[i] & 7) - | (FluidRegistry.getFluidID(aNBT.getString(filterKey)) - << 3)); + .createDataObject( + (tOldData[i] & 7) | (FluidRegistry.getFluidID(aNBT.getString(filterKey)) << 3)); } } else { coverData = coverBehavior.createDataObject(tOldData[i]); @@ -245,10 +243,10 @@ public abstract class CoverableTileEntity extends BaseTileEntity implements ICov return Textures.BlockIcons.HIDDEN_TEXTURE[0]; // See through } final ITexture coverTexture = (!(this instanceof BaseMetaPipeEntity)) ? coverInfo.getSpecialCoverFGTexture() - : coverInfo.getSpecialCoverTexture(); + : coverInfo.getSpecialCoverTexture(); return coverTexture != null ? coverTexture - : GregTech_API.sCovers.get(new GT_ItemStack(getCoverIDAtSide(aSide))); + : GregTech_API.sCovers.get(new GT_ItemStack(getCoverIDAtSide(aSide))); } protected void requestCoverDataIfNeeded() { @@ -299,9 +297,7 @@ public abstract class CoverableTileEntity extends BaseTileEntity implements ICov public void setCoverDataAtSide(byte aSide, ISerializableObject aData) { final CoverInfo coverInfo = getCoverInfoAtSide(aSide); if (coverInfo.isValid() && coverInfo.getCoverBehavior() - .cast(aData) - != null) - coverInfo.setCoverData(aData); + .cast(aData) != null) coverInfo.setCoverData(aData); } @Override @@ -315,7 +311,7 @@ public abstract class CoverableTileEntity extends BaseTileEntity implements ICov @Override public void setCoverItemAtSide(byte aSide, ItemStack aCover) { GregTech_API.getCoverBehaviorNew(aCover) - .placeCover(aSide, aCover, this); + .placeCover(aSide, aCover, this); } @Override @@ -386,11 +382,11 @@ public abstract class CoverableTileEntity extends BaseTileEntity implements ICov if (tStack != null) { coverInfo.onDropped(); final EntityItem tEntity = new EntityItem( - worldObj, - getOffsetX(aDroppedSide, 1) + 0.5, - getOffsetY(aDroppedSide, 1) + 0.5, - getOffsetZ(aDroppedSide, 1) + 0.5, - tStack); + worldObj, + getOffsetX(aDroppedSide, 1) + 0.5, + getOffsetY(aDroppedSide, 1) + 0.5, + getOffsetZ(aDroppedSide, 1) + 0.5, + tStack); tEntity.motionX = 0; tEntity.motionY = 0; tEntity.motionZ = 0; @@ -438,18 +434,15 @@ public abstract class CoverableTileEntity extends BaseTileEntity implements ICov @Override public void setInternalOutputRedstoneSignal(byte aSide, byte aStrength) { - if (!getCoverBehaviorAtSideNew(aSide).manipulatesSidedRedstoneOutput( - aSide, - getCoverIDAtSide(aSide), - getComplexCoverDataAtSide(aSide), - this)) + if (!getCoverBehaviorAtSideNew(aSide) + .manipulatesSidedRedstoneOutput(aSide, getCoverIDAtSide(aSide), getComplexCoverDataAtSide(aSide), this)) setOutputRedstoneSignal(aSide, aStrength); } @Override public boolean getRedstone() { return IntStream.range(1, 6) - .anyMatch(i -> getRedstone((byte) i)); + .anyMatch(i -> getRedstone((byte) i)); } @Override @@ -460,15 +453,15 @@ public abstract class CoverableTileEntity extends BaseTileEntity implements ICov @Override public byte getStrongestRedstone() { return (byte) IntStream.range(1, 6) - .map(i -> getInternalInputRedstoneSignal((byte) i)) - .max() - .orElse(0); + .map(i -> getInternalInputRedstoneSignal((byte) i)) + .max() + .orElse(0); } @Override public byte getStrongOutputRedstoneSignal(byte aSide) { return aSide >= 0 && aSide < 6 && (mStrongRedstone & (1 << aSide)) != 0 ? (byte) (mSidedRedstone[aSide] & 15) - : 0; + : 0; } @Override @@ -479,29 +472,25 @@ public abstract class CoverableTileEntity extends BaseTileEntity implements ICov @Override public byte getInternalInputRedstoneSignal(byte aSide) { return (byte) (getCoverBehaviorAtSideNew(aSide).getRedstoneInput( - aSide, - getInputRedstoneSignal(aSide), - getCoverIDAtSide(aSide), - getComplexCoverDataAtSide(aSide), - this) & 15); + aSide, + getInputRedstoneSignal(aSide), + getCoverIDAtSide(aSide), + getComplexCoverDataAtSide(aSide), + this) & 15); } @Override public byte getInputRedstoneSignal(byte aSide) { - return (byte) (worldObj.getIndirectPowerLevelTo( - getOffsetX(aSide, 1), - getOffsetY(aSide, 1), - getOffsetZ(aSide, 1), - aSide) & 15); + return (byte) (worldObj + .getIndirectPowerLevelTo(getOffsetX(aSide, 1), getOffsetY(aSide, 1), getOffsetZ(aSide, 1), aSide) & 15); } @Override public byte getOutputRedstoneSignal(byte aSide) { - return getCoverBehaviorAtSideNew(aSide).manipulatesSidedRedstoneOutput( - aSide, - getCoverIDAtSide(aSide), - getComplexCoverDataAtSide(aSide), - this) ? mSidedRedstone[aSide] : getGeneralRS(aSide); + return getCoverBehaviorAtSideNew(aSide) + .manipulatesSidedRedstoneOutput(aSide, getCoverIDAtSide(aSide), getComplexCoverDataAtSide(aSide), this) + ? mSidedRedstone[aSide] + : getGeneralRS(aSide); } protected void updateOutputRedstoneSignal(byte aSide) { @@ -520,7 +509,7 @@ public abstract class CoverableTileEntity extends BaseTileEntity implements ICov @Override public void receiveCoverData(byte aCoverSide, int aCoverID, ISerializableObject aCoverData, - EntityPlayerMP aPlayer) { + EntityPlayerMP aPlayer) { if (aCoverSide < 0 || aCoverSide >= 6) return; final CoverInfo oldCoverInfo = getCoverInfoAtSide(aCoverSide); @@ -541,10 +530,10 @@ public abstract class CoverableTileEntity extends BaseTileEntity implements ICov final CoverInfo coverInfo = getCoverInfoAtSide(i); if (coverInfo.needsUpdate()) { NW.sendPacketToAllPlayersInRange( - worldObj, - new GT_Packet_SendCoverData(coverInfo, this), - xCoord, - zCoord); + worldObj, + new GT_Packet_SendCoverData(coverInfo, this), + xCoord, + zCoord); coverInfo.setNeedsUpdate(false); } } @@ -552,10 +541,10 @@ public abstract class CoverableTileEntity extends BaseTileEntity implements ICov @Override public void getWailaBody(ItemStack itemStack, List currenttip, IWailaDataAccessor accessor, - IWailaConfigHandler config) { + IWailaConfigHandler config) { final NBTTagCompound tag = accessor.getNBTData(); final byte currentFacing = (byte) accessor.getSide() - .ordinal(); + .ordinal(); final NBTTagList tList = tag.getTagList(GT_Values.NBT.COVERS, 10); for (byte i = 0; i < tList.tagCount(); i++) { @@ -566,16 +555,15 @@ public abstract class CoverableTileEntity extends BaseTileEntity implements ICov final ItemStack coverStack = coverInfo.getDisplayStack(); if (coverStack != null) { currenttip.add( - StatCollector.translateToLocalFormatted( - "GT5U.waila.cover", - currentFacing == coverInfo.getSide() - ? StatCollector.translateToLocal("GT5U.waila.cover.current_facing") - : StatCollector.translateToLocal( - "GT5U.interface.coverTabs." - + ForgeDirection.getOrientation(coverInfo.getSide()) - .toString() - .toLowerCase()), - coverStack.getDisplayName())); + StatCollector.translateToLocalFormatted( + "GT5U.waila.cover", + currentFacing == coverInfo.getSide() + ? StatCollector.translateToLocal("GT5U.waila.cover.current_facing") + : StatCollector.translateToLocal( + "GT5U.interface.coverTabs." + ForgeDirection.getOrientation(coverInfo.getSide()) + .toString() + .toLowerCase()), + coverStack.getDisplayName())); final String behaviorDesc = coverInfo.getBehaviorDescription(); if (!Objects.equals(behaviorDesc, E)) currenttip.add(behaviorDesc); } @@ -587,7 +575,7 @@ public abstract class CoverableTileEntity extends BaseTileEntity implements ICov @Override public void getWailaNBTData(EntityPlayerMP player, TileEntity tile, NBTTagCompound tag, World world, int x, int y, - int z) { + int z) { // No super implementation // super.getWailaNBTData(player, tile, tag, world, x, y, z); @@ -612,10 +600,10 @@ public abstract class CoverableTileEntity extends BaseTileEntity implements ICov final ItemStack coverStack = coverInfo.getDisplayStack(); if (coverStack != null) { aList.add( - String.format( - "Cover on %s side: %s", - getTranslation(FACES[coverInfo.getSide()]), - coverStack.getDisplayName())); + String.format( + "Cover on %s side: %s", + getTranslation(FACES[coverInfo.getSide()]), + coverStack.getDisplayName())); } } @@ -628,15 +616,15 @@ public abstract class CoverableTileEntity extends BaseTileEntity implements ICov final GT_CoverBehaviorBase behavior = GregTech_API.getCoverBehaviorNew(coverId); if (behavior == null || behavior == GregTech_API.sNoBehavior) continue; if (!aNBT.hasKey(CoverableTileEntity.COVER_DATA_NBT_KEYS[tSide])) continue; - final ISerializableObject dataObject = behavior.createDataObject( - aNBT.getTag(CoverableTileEntity.COVER_DATA_NBT_KEYS[tSide])); + final ISerializableObject dataObject = behavior + .createDataObject(aNBT.getTag(CoverableTileEntity.COVER_DATA_NBT_KEYS[tSide])); final ItemStack coverStack = behavior.getDisplayStack(coverId, dataObject); if (coverStack != null) { aList.add( - String.format( - "Cover on %s side: %s", - getTranslation(FACES[tSide]), - coverStack.getDisplayName())); + String.format( + "Cover on %s side: %s", + getTranslation(FACES[tSide]), + coverStack.getDisplayName())); } } } @@ -652,7 +640,7 @@ public abstract class CoverableTileEntity extends BaseTileEntity implements ICov @Override public void addCoverTabs(ModularWindow.Builder builder, UIBuildContext buildContext) { final int COVER_TAB_LEFT = -16, COVER_TAB_TOP = 1, COVER_TAB_HEIGHT = 20, COVER_TAB_WIDTH = 18, - COVER_TAB_SPACING = 2, ICON_SIZE = 16; + COVER_TAB_SPACING = 2, ICON_SIZE = 16; final boolean flipHorizontally = GT_Mod.gregtechproxy.mCoverTabsFlipped; final Column columnWidget = new Column(); @@ -660,15 +648,15 @@ public abstract class CoverableTileEntity extends BaseTileEntity implements ICov final int xPos = flipHorizontally ? (getGUIWidth() - COVER_TAB_LEFT - COVER_TAB_WIDTH) : COVER_TAB_LEFT; if (GT_Mod.gregtechproxy.mCoverTabsVisible) { columnWidget.setPos(xPos, COVER_TAB_TOP) - .setEnabled( - widget -> ((Column) widget).getChildren() - .stream() - .anyMatch(Widget::isEnabled)); + .setEnabled( + widget -> ((Column) widget).getChildren() + .stream() + .anyMatch(Widget::isEnabled)); } else { columnWidget.setEnabled(false); } columnWidget.setAlignment(MainAxisAlignment.SPACE_BETWEEN) - .setSpace(COVER_TAB_SPACING); + .setSpace(COVER_TAB_SPACING); for (ForgeDirection direction : ForgeDirection.VALID_DIRECTIONS) { final byte side = (byte) direction.ordinal(); @@ -683,45 +671,37 @@ public abstract class CoverableTileEntity extends BaseTileEntity implements ICov if (getCoverBehaviorAtSideNew(side).hasCoverGUI()) { if (isHovering()) { backgrounds.add( - flipHorizontally ? tabIconSet.getCoverTabHighlightFlipped() - : tabIconSet.getCoverTabHighlight()); + flipHorizontally ? tabIconSet.getCoverTabHighlightFlipped() + : tabIconSet.getCoverTabHighlight()); } else { backgrounds.add( - flipHorizontally ? tabIconSet.getCoverTabNormalFlipped() - : tabIconSet.getCoverTabNormal()); + flipHorizontally ? tabIconSet.getCoverTabNormalFlipped() + : tabIconSet.getCoverTabNormal()); } } else { backgrounds.add( - flipHorizontally ? tabIconSet.getCoverTabDisabledFlipped() - : tabIconSet.getCoverTabDisabled()); + flipHorizontally ? tabIconSet.getCoverTabDisabledFlipped() + : tabIconSet.getCoverTabDisabled()); } return backgrounds.toArray(new IDrawable[] {}); } }.setOnClick((clickData, widget) -> onTabClicked(clickData, widget, side)) - .dynamicTooltip(() -> getCoverTabTooltip(side)) - .setSize(COVER_TAB_WIDTH, COVER_TAB_HEIGHT)) - .addChild( - new ItemDrawable( - () -> getCoverItemAtSide(side)).asWidget() - .setPos( - (COVER_TAB_WIDTH - - ICON_SIZE) - / 2 - + (flipHorizontally - ? -1 - : 1), - (COVER_TAB_HEIGHT - - ICON_SIZE) - / 2)) - .setEnabled(widget -> getCoverItemAtSide(side) != null)); + .dynamicTooltip(() -> getCoverTabTooltip(side)) + .setSize(COVER_TAB_WIDTH, COVER_TAB_HEIGHT)) + .addChild( + new ItemDrawable(() -> getCoverItemAtSide(side)).asWidget() + .setPos( + (COVER_TAB_WIDTH - ICON_SIZE) / 2 + (flipHorizontally ? -1 : 1), + (COVER_TAB_HEIGHT - ICON_SIZE) / 2)) + .setEnabled(widget -> getCoverItemAtSide(side) != null)); } } @SideOnly(Side.CLIENT) protected List getCoverTabTooltip(byte side) { final String[] SIDE_TOOLTIPS = new String[] { "GT5U.interface.coverTabs.down", "GT5U.interface.coverTabs.up", - "GT5U.interface.coverTabs.north", "GT5U.interface.coverTabs.south", "GT5U.interface.coverTabs.west", - "GT5U.interface.coverTabs.east" }; + "GT5U.interface.coverTabs.north", "GT5U.interface.coverTabs.south", "GT5U.interface.coverTabs.west", + "GT5U.interface.coverTabs.east" }; final CoverInfo coverInfo = getCoverInfoAtSide(side); final ItemStack coverItem = coverInfo.getDisplayStack(); if (coverItem == null) return Collections.emptyList(); @@ -732,11 +712,11 @@ public abstract class CoverableTileEntity extends BaseTileEntity implements ICov for (int i = 0; i < tooltip.size(); i++) { if (i == 0) { tooltip.set( - 0, - (coverHasGUI ? EnumChatFormatting.UNDERLINE : EnumChatFormatting.DARK_GRAY) - + StatCollector.translateToLocal(SIDE_TOOLTIPS[side]) - + (coverHasGUI ? EnumChatFormatting.RESET + ": " : ": " + EnumChatFormatting.RESET) - + tooltip.get(0)); + 0, + (coverHasGUI ? EnumChatFormatting.UNDERLINE : EnumChatFormatting.DARK_GRAY) + + StatCollector.translateToLocal(SIDE_TOOLTIPS[side]) + + (coverHasGUI ? EnumChatFormatting.RESET + ": " : ": " + EnumChatFormatting.RESET) + + tooltip.get(0)); } else { tooltip.set(i, EnumChatFormatting.GRAY + tooltip.get(i)); } @@ -749,19 +729,19 @@ public abstract class CoverableTileEntity extends BaseTileEntity implements ICov final CoverInfo coverInfo = getCoverInfoAtSide(side); if (coverInfo.useModularUI()) { widget.getContext() - .openSyncedWindow(side + COVER_WINDOW_ID_START); + .openSyncedWindow(side + COVER_WINDOW_ID_START); } else { final GT_Packet_TileEntityCoverGUI packet = new GT_Packet_TileEntityCoverGUI( - coverInfo, - getWorld().provider.dimensionId, - widget.getContext() - .getPlayer() - .getEntityId(), - 0); + coverInfo, + getWorld().provider.dimensionId, + widget.getContext() + .getPlayer() + .getEntityId(), + 0); GT_Values.NW.sendToPlayer( - packet, - (EntityPlayerMP) widget.getContext() - .getPlayer()); + packet, + (EntityPlayerMP) widget.getContext() + .getPlayer()); } } } diff --git a/src/main/java/gregtech/api/metatileentity/MetaPipeEntity.java b/src/main/java/gregtech/api/metatileentity/MetaPipeEntity.java index a42525ae45..c8657fbcff 100644 --- a/src/main/java/gregtech/api/metatileentity/MetaPipeEntity.java +++ b/src/main/java/gregtech/api/metatileentity/MetaPipeEntity.java @@ -99,7 +99,7 @@ public abstract class MetaPipeEntity implements IMetaTileEntity, IConnectable { throw new IllegalArgumentException("MetaMachine-Slot Nr. " + aID + " is already occupied!"); } mName = aBasicName.replaceAll(" ", "_") - .toLowerCase(Locale.ENGLISH); + .toLowerCase(Locale.ENGLISH); setBaseMetaTileEntity(new BaseMetaPipeEntity()); getBaseMetaTileEntity().setMetaTileID((short) aID); GT_LanguageManager.addStringLocalization("gt.blockmachines." + mName + ".name", aRegionalName); @@ -115,7 +115,7 @@ public abstract class MetaPipeEntity implements IMetaTileEntity, IConnectable { ItemStack tStack = new ItemStack(GregTech_API.sBlockMachines, 1, aID); tStack.getItem() - .addInformation(tStack, null, new ArrayList<>(), true); + .addInformation(tStack, null, new ArrayList<>(), true); } /** @@ -149,7 +149,7 @@ public abstract class MetaPipeEntity implements IMetaTileEntity, IConnectable { public void setBaseMetaTileEntity(IGregTechTileEntity aBaseMetaTileEntity) { if (mBaseMetaTileEntity != null && aBaseMetaTileEntity == null) { mBaseMetaTileEntity.getMetaTileEntity() - .inValidate(); + .inValidate(); mBaseMetaTileEntity.setMetaTileEntity(null); } mBaseMetaTileEntity = aBaseMetaTileEntity; @@ -241,19 +241,19 @@ public abstract class MetaPipeEntity implements IMetaTileEntity, IConnectable { @Override public boolean onWrenchRightClick(byte aSide, byte aWrenchingSide, EntityPlayer aPlayer, float aX, float aY, - float aZ) { + float aZ) { return false; } @Override public boolean onWireCutterRightClick(byte aSide, byte aWrenchingSide, EntityPlayer aPlayer, float aX, float aY, - float aZ) { + float aZ) { return false; } @Override public boolean onSolderingToolRightClick(byte aSide, byte aWrenchingSide, EntityPlayer aPlayer, float aX, float aY, - float aZ) { + float aZ) { return false; } @@ -318,7 +318,7 @@ public abstract class MetaPipeEntity implements IMetaTileEntity, IConnectable { */ @Override public boolean onRightclick(IGregTechTileEntity aBaseMetaTileEntity, EntityPlayer aPlayer, byte aSide, float aX, - float aY, float aZ) { + float aY, float aZ) { return false; } @@ -397,7 +397,7 @@ public abstract class MetaPipeEntity implements IMetaTileEntity, IConnectable { @Override public ArrayList getSpecialDebugInfo(IGregTechTileEntity aBaseMetaTileEntity, EntityPlayer aPlayer, - int aLogLevel, ArrayList aList) { + int aLogLevel, ArrayList aList) { return aList; } @@ -598,16 +598,16 @@ public abstract class MetaPipeEntity implements IMetaTileEntity, IConnectable { @Override public boolean canInsertItem(int aIndex, ItemStack aStack, int aSide) { return isValidSlot(aIndex) && aStack != null - && aIndex < mInventory.length - && (mInventory[aIndex] == null || GT_Utility.areStacksEqual(aStack, mInventory[aIndex])) - && allowPutStack(getBaseMetaTileEntity(), aIndex, (byte) aSide, aStack); + && aIndex < mInventory.length + && (mInventory[aIndex] == null || GT_Utility.areStacksEqual(aStack, mInventory[aIndex])) + && allowPutStack(getBaseMetaTileEntity(), aIndex, (byte) aSide, aStack); } @Override public boolean canExtractItem(int aIndex, ItemStack aStack, int aSide) { return isValidSlot(aIndex) && aStack != null - && aIndex < mInventory.length - && allowPullStack(getBaseMetaTileEntity(), aIndex, (byte) aSide, aStack); + && aIndex < mInventory.length + && allowPullStack(getBaseMetaTileEntity(), aIndex, (byte) aSide, aStack); } @Override @@ -756,15 +756,15 @@ public abstract class MetaPipeEntity implements IMetaTileEntity, IConnectable { public void doExplosion(long aExplosionPower) { float tStrength = GT_Values.getExplosionPowerForVoltage(aExplosionPower); int tX = getBaseMetaTileEntity().getXCoord(), tY = getBaseMetaTileEntity().getYCoord(), - tZ = getBaseMetaTileEntity().getZCoord(); + tZ = getBaseMetaTileEntity().getZCoord(); World tWorld = getBaseMetaTileEntity().getWorld(); tWorld.setBlock(tX, tY, tZ, Blocks.air); if (GregTech_API.sMachineExplosions) { new WorldSpawnedEventBuilder.ExplosionEffectEventBuilder().setStrength(tStrength) - .setSmoking(true) - .setPosition(tX + 0.5, tY + 0.5, tZ + 0.5) - .setWorld(tWorld) - .run(); + .setSmoking(true) + .setPosition(tX + 0.5, tY + 0.5, tZ + 0.5) + .setWorld(tWorld) + .run(); } } @@ -775,7 +775,7 @@ public abstract class MetaPipeEntity implements IMetaTileEntity, IConnectable { @Override public void addCollisionBoxesToList(World aWorld, int aX, int aY, int aZ, AxisAlignedBB inputAABB, - List outputAABB, Entity collider) { + List outputAABB, Entity collider) { AxisAlignedBB axisalignedbb1 = getCollisionBoundingBoxFromPool(aWorld, aX, aY, aZ); if (axisalignedbb1 != null && inputAABB.intersectsWith(axisalignedbb1)) outputAABB.add(axisalignedbb1); } @@ -850,10 +850,10 @@ public abstract class MetaPipeEntity implements IMetaTileEntity, IConnectable { if ((alwaysLookConnected || letsIn || letsOut)) { // Are we trying to connect to a pipe? let's do it! final IMetaTileEntity tPipe = tTileEntity instanceof IGregTechTileEntity - ? ((IGregTechTileEntity) tTileEntity).getMetaTileEntity() - : null; + ? ((IGregTechTileEntity) tTileEntity).getMetaTileEntity() + : null; if (getClass().isInstance(tPipe) || (tPipe != null && tPipe.getClass() - .isInstance(this))) { + .isInstance(this))) { connectAtSide(aSide); if (!((MetaPipeEntity) tPipe).isConnectedAtSide(tSide)) { // Make sure pipes all get together -- connect back to us if we're connecting to a pipe @@ -869,10 +869,8 @@ public abstract class MetaPipeEntity implements IMetaTileEntity, IConnectable { return 1; } if (!baseMetaTile.getWorld() - .getChunkProvider() - .chunkExists( - baseMetaTile.getOffsetX(aSide, 1) >> 4, - baseMetaTile.getOffsetZ(aSide, 1) >> 4)) { + .getChunkProvider() + .chunkExists(baseMetaTile.getOffsetX(aSide, 1) >> 4, baseMetaTile.getOffsetZ(aSide, 1) >> 4)) { // Target chunk unloaded return -1; } @@ -903,11 +901,10 @@ public abstract class MetaPipeEntity implements IMetaTileEntity, IConnectable { IGregTechTileEntity tTileEntity = getBaseMetaTileEntity().getIGregTechTileEntityAtSide(aSide); IMetaTileEntity tPipe = tTileEntity == null ? null : tTileEntity.getMetaTileEntity(); if ((this.getClass() - .isInstance(tPipe) - || (tPipe != null && tPipe.getClass() - .isInstance(this))) - && ((MetaPipeEntity) tPipe).isConnectedAtSide(tSide)) - ((MetaPipeEntity) tPipe).disconnect(tSide); + .isInstance(tPipe) + || (tPipe != null && tPipe.getClass() + .isInstance(this))) + && ((MetaPipeEntity) tPipe).isConnectedAtSide(tSide)) ((MetaPipeEntity) tPipe).disconnect(tSide); } @Override @@ -916,7 +913,7 @@ public abstract class MetaPipeEntity implements IMetaTileEntity, IConnectable { } public boolean letsIn(GT_CoverBehavior coverBehavior, byte aSide, int aCoverID, int aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return false; } @@ -925,7 +922,7 @@ public abstract class MetaPipeEntity implements IMetaTileEntity, IConnectable { } public boolean letsOut(GT_CoverBehavior coverBehavior, byte aSide, int aCoverID, int aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return false; } @@ -934,12 +931,12 @@ public abstract class MetaPipeEntity implements IMetaTileEntity, IConnectable { } public boolean letsIn(GT_CoverBehaviorBase coverBehavior, byte aSide, int aCoverID, - ISerializableObject aCoverVariable, ICoverable aTileEntity) { + ISerializableObject aCoverVariable, ICoverable aTileEntity) { return false; } public boolean letsOut(GT_CoverBehaviorBase coverBehavior, byte aSide, int aCoverID, - ISerializableObject aCoverVariable, ICoverable aTileEntity) { + ISerializableObject aCoverVariable, ICoverable aTileEntity) { return false; } diff --git a/src/main/java/gregtech/api/metatileentity/MetaTileEntity.java b/src/main/java/gregtech/api/metatileentity/MetaTileEntity.java index c929bd5677..3acbb2ce2d 100644 --- a/src/main/java/gregtech/api/metatileentity/MetaTileEntity.java +++ b/src/main/java/gregtech/api/metatileentity/MetaTileEntity.java @@ -129,7 +129,7 @@ public abstract class MetaTileEntity implements IMetaTileEntity, IMachineCallbac throw new IllegalArgumentException("MetaMachine-Slot Nr. " + aID + " is already occupied!"); } mName = aBasicName.replace(" ", "_") - .toLowerCase(Locale.ENGLISH); + .toLowerCase(Locale.ENGLISH); setBaseMetaTileEntity(GregTech_API.constructBaseMetaTileEntity()); getBaseMetaTileEntity().setMetaTileID((short) aID); GT_LanguageManager.addStringLocalization("gt.blockmachines." + mName + ".name", aRegionalName); @@ -166,7 +166,7 @@ public abstract class MetaTileEntity implements IMetaTileEntity, IMachineCallbac public void setBaseMetaTileEntity(IGregTechTileEntity aBaseMetaTileEntity) { if (mBaseMetaTileEntity != null && aBaseMetaTileEntity == null) { mBaseMetaTileEntity.getMetaTileEntity() - .inValidate(); + .inValidate(); mBaseMetaTileEntity.setMetaTileEntity(null); } mBaseMetaTileEntity = aBaseMetaTileEntity; @@ -228,7 +228,7 @@ public abstract class MetaTileEntity implements IMetaTileEntity, IMachineCallbac @Override public boolean onWrenchRightClick(byte aSide, byte aWrenchingSide, EntityPlayer aPlayer, float aX, float aY, - float aZ) { + float aZ) { if (getBaseMetaTileEntity().isValidFacing(aWrenchingSide)) { getBaseMetaTileEntity().setFrontFacing(aWrenchingSide); return true; @@ -238,42 +238,30 @@ public abstract class MetaTileEntity implements IMetaTileEntity, IMachineCallbac @Override public boolean onWireCutterRightClick(byte aSide, byte aWrenchingSide, EntityPlayer aPlayer, float aX, float aY, - float aZ) { + float aZ) { if (!aPlayer.isSneaking()) return false; byte tSide = GT_Utility.getOppositeSide(aWrenchingSide); TileEntity tTileEntity = getBaseMetaTileEntity().getTileEntityAtSide(aWrenchingSide); if ((tTileEntity instanceof IGregTechTileEntity) - && (((IGregTechTileEntity) tTileEntity).getMetaTileEntity() instanceof GT_MetaPipeEntity_Cable)) { + && (((IGregTechTileEntity) tTileEntity).getMetaTileEntity() instanceof GT_MetaPipeEntity_Cable)) { // The tile entity we're facing is a cable, let's try to connect to it return ((IGregTechTileEntity) tTileEntity).getMetaTileEntity() - .onWireCutterRightClick( - aWrenchingSide, - tSide, - aPlayer, - aX, - aY, - aZ); + .onWireCutterRightClick(aWrenchingSide, tSide, aPlayer, aX, aY, aZ); } return false; } @Override public boolean onSolderingToolRightClick(byte aSide, byte aWrenchingSide, EntityPlayer aPlayer, float aX, float aY, - float aZ) { + float aZ) { if (!aPlayer.isSneaking()) return false; byte tSide = GT_Utility.getOppositeSide(aWrenchingSide); TileEntity tTileEntity = getBaseMetaTileEntity().getTileEntityAtSide(aWrenchingSide); if ((tTileEntity instanceof IGregTechTileEntity) - && (((IGregTechTileEntity) tTileEntity).getMetaTileEntity() instanceof GT_MetaPipeEntity_Cable)) { + && (((IGregTechTileEntity) tTileEntity).getMetaTileEntity() instanceof GT_MetaPipeEntity_Cable)) { // The tile entity we're facing is a cable, let's try to connect to it return ((IGregTechTileEntity) tTileEntity).getMetaTileEntity() - .onSolderingToolRightClick( - aWrenchingSide, - tSide, - aPlayer, - aX, - aY, - aZ); + .onSolderingToolRightClick(aWrenchingSide, tSide, aPlayer, aX, aY, aZ); } return false; } @@ -281,18 +269,18 @@ public abstract class MetaTileEntity implements IMetaTileEntity, IMachineCallbac @Override public void onExplosion() { GT_Log.exp.println( - "Machine at " + this.getBaseMetaTileEntity() - .getXCoord() - + " | " - + this.getBaseMetaTileEntity() - .getYCoord() - + " | " - + this.getBaseMetaTileEntity() - .getZCoord() - + " DIMID: " - + this.getBaseMetaTileEntity() - .getWorld().provider.dimensionId - + " exploded."); + "Machine at " + this.getBaseMetaTileEntity() + .getXCoord() + + " | " + + this.getBaseMetaTileEntity() + .getYCoord() + + " | " + + this.getBaseMetaTileEntity() + .getZCoord() + + " DIMID: " + + this.getBaseMetaTileEntity() + .getWorld().provider.dimensionId + + " exploded."); } @Override @@ -355,7 +343,7 @@ public abstract class MetaTileEntity implements IMetaTileEntity, IMachineCallbac @Override public boolean onRightclick(IGregTechTileEntity aBaseMetaTileEntity, EntityPlayer aPlayer, byte aSide, float aX, - float aY, float aZ) { + float aY, float aZ) { return onRightclick(aBaseMetaTileEntity, aPlayer); } @@ -647,7 +635,7 @@ public abstract class MetaTileEntity implements IMetaTileEntity, IMachineCallbac @Override public ArrayList getSpecialDebugInfo(IGregTechTileEntity aBaseMetaTileEntity, EntityPlayer aPlayer, - int aLogLevel, ArrayList aList) { + int aLogLevel, ArrayList aList) { return aList; } @@ -770,7 +758,7 @@ public abstract class MetaTileEntity implements IMetaTileEntity, IMachineCallbac */ public boolean isTeleporterCompatible() { return isEnetOutput() && getBaseMetaTileEntity().getOutputVoltage() >= 128 - && getBaseMetaTileEntity().getUniversalEnergyCapacity() >= 500000; + && getBaseMetaTileEntity().getUniversalEnergyCapacity() >= 500000; } /** @@ -907,16 +895,16 @@ public abstract class MetaTileEntity implements IMetaTileEntity, IMachineCallbac @Override public boolean canInsertItem(int aIndex, ItemStack aStack, int aSide) { return isValidSlot(aIndex) && aStack != null - && aIndex < mInventory.length - && (mInventory[aIndex] == null || GT_Utility.areStacksEqual(aStack, mInventory[aIndex])) - && allowPutStack(getBaseMetaTileEntity(), aIndex, (byte) aSide, aStack); + && aIndex < mInventory.length + && (mInventory[aIndex] == null || GT_Utility.areStacksEqual(aStack, mInventory[aIndex])) + && allowPutStack(getBaseMetaTileEntity(), aIndex, (byte) aSide, aStack); } @Override public boolean canExtractItem(int aIndex, ItemStack aStack, int aSide) { return isValidSlot(aIndex) && aStack != null - && aIndex < mInventory.length - && allowPullStack(getBaseMetaTileEntity(), aIndex, (byte) aSide, aStack); + && aIndex < mInventory.length + && allowPullStack(getBaseMetaTileEntity(), aIndex, (byte) aSide, aStack); } @Override @@ -944,10 +932,10 @@ public abstract class MetaTileEntity implements IMetaTileEntity, IMachineCallbac public int fill(ForgeDirection aSide, FluidStack aFluid, boolean doFill) { if (getBaseMetaTileEntity().hasSteamEngineUpgrade() && GT_ModHandler.isSteam(aFluid) && aFluid.amount > 1) { int tSteam = (int) Math.min( - Integer.MAX_VALUE, - Math.min( - aFluid.amount / 2, - getBaseMetaTileEntity().getSteamCapacity() - getBaseMetaTileEntity().getStoredSteam())); + Integer.MAX_VALUE, + Math.min( + aFluid.amount / 2, + getBaseMetaTileEntity().getSteamCapacity() - getBaseMetaTileEntity().getStoredSteam())); if (tSteam > 0) { markDirty(); if (doFill) getBaseMetaTileEntity().increaseStoredSteam(tSteam, true); @@ -1106,7 +1094,7 @@ public abstract class MetaTileEntity implements IMetaTileEntity, IMachineCallbac @Override public void addCollisionBoxesToList(World aWorld, int aX, int aY, int aZ, AxisAlignedBB inputAABB, - List outputAABB, Entity collider) { + List outputAABB, Entity collider) { AxisAlignedBB axisalignedbb1 = getCollisionBoundingBoxFromPool(aWorld, aX, aY, aZ); if (axisalignedbb1 != null && inputAABB.intersectsWith(axisalignedbb1)) outputAABB.add(axisalignedbb1); } @@ -1171,12 +1159,12 @@ public abstract class MetaTileEntity implements IMetaTileEntity, IMachineCallbac @Override public void getWailaBody(ItemStack itemStack, List currenttip, IWailaDataAccessor accessor, - IWailaConfigHandler config) { + IWailaConfigHandler config) { currenttip.add( - String.format( - "Facing: %s", - ForgeDirection.getOrientation(mBaseMetaTileEntity.getFrontFacing()) - .name())); + String.format( + "Facing: %s", + ForgeDirection.getOrientation(mBaseMetaTileEntity.getFrontFacing()) + .name())); if (this instanceof IPowerChannelState state) { // adapted from PowerStateWailaDataProvider @@ -1199,7 +1187,7 @@ public abstract class MetaTileEntity implements IMetaTileEntity, IMachineCallbac @Override public void getWailaNBTData(EntityPlayerMP player, TileEntity tile, NBTTagCompound tag, World world, int x, int y, - int z) { + int z) { if (this instanceof IPowerChannelState state) { // adapted from PowerStateWailaDataProvider final boolean isActive = state.isActive(); @@ -1216,19 +1204,16 @@ public abstract class MetaTileEntity implements IMetaTileEntity, IMachineCallbac if (getProxy() == null) return "(proxy)"; if (getProxy().getNode() == null) return "(node)"; if (getProxy().getNode() - .getGrid() - == null) - return "(grid)"; + .getGrid() == null) return "(grid)"; if (!getProxy().getNode() - .meetsChannelRequirements()) - return "(channels)"; + .meetsChannelRequirements()) return "(channels)"; IPathingGrid pg = getProxy().getNode() - .getGrid() - .getCache(IPathingGrid.class); + .getGrid() + .getCache(IPathingGrid.class); if (!pg.isNetworkBooting()) return "(booting)"; IEnergyGrid eg = getProxy().getNode() - .getGrid() - .getCache(IEnergyGrid.class); + .getGrid() + .getCache(IEnergyGrid.class); if (!eg.isNetworkPowered()) return "(power)"; } catch (Throwable ex) { ex.printStackTrace(); diff --git a/src/main/java/gregtech/api/metatileentity/TileIC2EnergySink.java b/src/main/java/gregtech/api/metatileentity/TileIC2EnergySink.java index 674ced4535..da86635fea 100644 --- a/src/main/java/gregtech/api/metatileentity/TileIC2EnergySink.java +++ b/src/main/java/gregtech/api/metatileentity/TileIC2EnergySink.java @@ -82,9 +82,8 @@ public class TileIC2EnergySink extends TileEntity implements IEnergySink { @Override public double injectEnergy(ForgeDirection directionFrom, double amount, double voltage) { - final long amps = (long) Math.max( - amount / (cableMeta != null ? cableMeta.mVoltage : myMeta.getInputVoltage() * 1.0), - 1.0); + final long amps = (long) Math + .max(amount / (cableMeta != null ? cableMeta.mVoltage : myMeta.getInputVoltage() * 1.0), 1.0); final long euPerAmp = (long) (amount / (amps * 1.0)); final IMetaTileEntity metaTile = myMeta.getMetaTileEntity(); @@ -93,15 +92,13 @@ public class TileIC2EnergySink extends TileEntity implements IEnergySink { final long usedAmps; if (cableMeta != null) { usedAmps = ((IMetaTileEntityCable) metaTile).transferElectricity( - (byte) directionFrom.ordinal(), - Math.min(euPerAmp, cableMeta.mVoltage), - amps, - Sets.newHashSet((TileEntity) myMeta)); - - } else usedAmps = myMeta.injectEnergyUnits( (byte) directionFrom.ordinal(), - Math.min(euPerAmp, myMeta.getInputVoltage()), - amps); + Math.min(euPerAmp, cableMeta.mVoltage), + amps, + Sets.newHashSet((TileEntity) myMeta)); + + } else usedAmps = myMeta + .injectEnergyUnits((byte) directionFrom.ordinal(), Math.min(euPerAmp, myMeta.getInputVoltage()), amps); return amount - (usedAmps * euPerAmp); // transferElectricity for cables @@ -120,8 +117,7 @@ public class TileIC2EnergySink extends TileEntity implements IEnergySink { public boolean acceptsEnergyFrom(TileEntity emitter, ForgeDirection direction) { final IMetaTileEntity metaTile = myMeta.getMetaTileEntity(); if (metaTile instanceof IMetaTileEntityCable && (direction == ForgeDirection.UNKNOWN - || ((IConnectable) metaTile).isConnectedAtSide(direction.ordinal()))) - return true; + || ((IConnectable) metaTile).isConnectedAtSide(direction.ordinal()))) return true; else return myMeta.inputEnergyFrom((byte) direction.ordinal(), false); } } diff --git a/src/main/java/gregtech/api/metatileentity/examples/GT_MetaTileEntity_E_Furnace.java b/src/main/java/gregtech/api/metatileentity/examples/GT_MetaTileEntity_E_Furnace.java index e8e313141d..83cebbb08d 100644 --- a/src/main/java/gregtech/api/metatileentity/examples/GT_MetaTileEntity_E_Furnace.java +++ b/src/main/java/gregtech/api/metatileentity/examples/GT_MetaTileEntity_E_Furnace.java @@ -20,73 +20,73 @@ public class GT_MetaTileEntity_E_Furnace extends GT_MetaTileEntity_BasicMachine public GT_MetaTileEntity_E_Furnace(int aID, String aName, String aNameRegional, int aTier) { super( - aID, - aName, - aNameRegional, - aTier, - 1, - "Not like using a Commodore 64", - 1, - 1, - "E_Furnace.png", - "smelting", - TextureFactory.of( - TextureFactory.of(OVERLAY_SIDE_STEAM_FURNACE_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_SIDE_STEAM_FURNACE_ACTIVE_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_SIDE_STEAM_FURNACE), - TextureFactory.builder() - .addIcon(OVERLAY_SIDE_STEAM_FURNACE_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_FRONT_STEAM_FURNACE_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_STEAM_FURNACE_ACTIVE_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_FRONT_STEAM_FURNACE), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_STEAM_FURNACE_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_TOP_STEAM_FURNACE_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_TOP_STEAM_FURNACE_ACTIVE_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_TOP_STEAM_FURNACE), - TextureFactory.builder() - .addIcon(OVERLAY_TOP_STEAM_FURNACE_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_BOTTOM_STEAM_FURNACE_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_BOTTOM_STEAM_FURNACE_ACTIVE_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_BOTTOM_STEAM_FURNACE), - TextureFactory.builder() - .addIcon(OVERLAY_BOTTOM_STEAM_FURNACE_GLOW) - .glow() - .build())); + aID, + aName, + aNameRegional, + aTier, + 1, + "Not like using a Commodore 64", + 1, + 1, + "E_Furnace.png", + "smelting", + TextureFactory.of( + TextureFactory.of(OVERLAY_SIDE_STEAM_FURNACE_ACTIVE), + TextureFactory.builder() + .addIcon(OVERLAY_SIDE_STEAM_FURNACE_ACTIVE_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_SIDE_STEAM_FURNACE), + TextureFactory.builder() + .addIcon(OVERLAY_SIDE_STEAM_FURNACE_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_FRONT_STEAM_FURNACE_ACTIVE), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_STEAM_FURNACE_ACTIVE_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_FRONT_STEAM_FURNACE), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_STEAM_FURNACE_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_TOP_STEAM_FURNACE_ACTIVE), + TextureFactory.builder() + .addIcon(OVERLAY_TOP_STEAM_FURNACE_ACTIVE_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_TOP_STEAM_FURNACE), + TextureFactory.builder() + .addIcon(OVERLAY_TOP_STEAM_FURNACE_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_BOTTOM_STEAM_FURNACE_ACTIVE), + TextureFactory.builder() + .addIcon(OVERLAY_BOTTOM_STEAM_FURNACE_ACTIVE_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_BOTTOM_STEAM_FURNACE), + TextureFactory.builder() + .addIcon(OVERLAY_BOTTOM_STEAM_FURNACE_GLOW) + .glow() + .build())); } public GT_MetaTileEntity_E_Furnace(String aName, int aTier, String aDescription, ITexture[][][] aTextures, - String aGUIName, String aNEIName) { + String aGUIName, String aNEIName) { super(aName, aTier, 1, aDescription, aTextures, 1, 1, aGUIName, aNEIName); } public GT_MetaTileEntity_E_Furnace(String aName, int aTier, String[] aDescription, ITexture[][][] aTextures, - String aGUIName, String aNEIName) { + String aGUIName, String aNEIName) { super(aName, aTier, 1, aDescription, aTextures, 1, 1, aGUIName, aNEIName); } @@ -108,9 +108,9 @@ public class GT_MetaTileEntity_E_Furnace extends GT_MetaTileEntity_BasicMachine @Override protected boolean allowPutStackValidated(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, - ItemStack aStack) { + ItemStack aStack) { return super.allowPutStackValidated(aBaseMetaTileEntity, aIndex, aSide, aStack) - && GT_ModHandler.getSmeltingOutput(GT_Utility.copyAmount(64, aStack), false, null) != null; + && GT_ModHandler.getSmeltingOutput(GT_Utility.copyAmount(64, aStack), false, null) != null; } @Override diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaPipeEntity_Cable.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaPipeEntity_Cable.java index ee610d2631..132c48e77d 100644 --- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaPipeEntity_Cable.java +++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaPipeEntity_Cable.java @@ -57,9 +57,9 @@ public class GT_MetaPipeEntity_Cable extends MetaPipeEntity implements IMetaTile public final long mCableLossPerMeter, mAmperage, mVoltage; public final boolean mInsulated, mCanShock; public int mTransferredAmperage = 0, mTransferredAmperageLast20 = 0, mTransferredAmperageLast20OK = 0, - mTransferredAmperageOK = 0; + mTransferredAmperageOK = 0; public long mTransferredVoltageLast20 = 0, mTransferredVoltage = 0, mTransferredVoltageLast20OK = 0, - mTransferredVoltageOK = 0; + mTransferredVoltageOK = 0; public long mRestRF; public int mOverheat; public static short mMaxOverheat = (short) (GT_Mod.gregtechproxy.mWireHeatingTicks * 100); @@ -68,7 +68,7 @@ public class GT_MetaPipeEntity_Cable extends MetaPipeEntity implements IMetaTile private long lastWorldTick; public GT_MetaPipeEntity_Cable(int aID, String aName, String aNameRegional, float aThickNess, Materials aMaterial, - long aCableLossPerMeter, long aAmperage, long aVoltage, boolean aInsulated, boolean aCanShock) { + long aCableLossPerMeter, long aAmperage, long aVoltage, boolean aInsulated, boolean aCanShock) { super(aID, aName, aNameRegional, 0); mThickNess = aThickNess; mMaterial = aMaterial; @@ -80,7 +80,7 @@ public class GT_MetaPipeEntity_Cable extends MetaPipeEntity implements IMetaTile } public GT_MetaPipeEntity_Cable(String aName, float aThickNess, Materials aMaterial, long aCableLossPerMeter, - long aAmperage, long aVoltage, boolean aInsulated, boolean aCanShock) { + long aAmperage, long aVoltage, boolean aInsulated, boolean aCanShock) { super(aName, 0); mThickNess = aThickNess; mMaterial = aMaterial; @@ -99,77 +99,76 @@ public class GT_MetaPipeEntity_Cable extends MetaPipeEntity implements IMetaTile @Override public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) { return new GT_MetaPipeEntity_Cable( - mName, - mThickNess, - mMaterial, - mCableLossPerMeter, - mAmperage, - mVoltage, - mInsulated, - mCanShock); + mName, + mThickNess, + mMaterial, + mCableLossPerMeter, + mAmperage, + mVoltage, + mInsulated, + mCanShock); } @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aConnections, - byte aColorIndex, boolean aConnected, boolean aRedstone) { + byte aColorIndex, boolean aConnected, boolean aRedstone) { if (!mInsulated) return new ITexture[] { TextureFactory.of( - mMaterial.mIconSet.mTextures[TextureSet.INDEX_wire], - Dyes.getModulation(aColorIndex, mMaterial.mRGBa)) }; + mMaterial.mIconSet.mTextures[TextureSet.INDEX_wire], + Dyes.getModulation(aColorIndex, mMaterial.mRGBa)) }; if (aConnected) { float tThickNess = getThickNess(); if (tThickNess < 0.124F) return new ITexture[] { TextureFactory.of( - Textures.BlockIcons.INSULATION_FULL, - Dyes.getModulation(aColorIndex, Dyes.CABLE_INSULATION.mRGBa)) }; + Textures.BlockIcons.INSULATION_FULL, + Dyes.getModulation(aColorIndex, Dyes.CABLE_INSULATION.mRGBa)) }; if (tThickNess < 0.374F) // 0.375 x1 return new ITexture[] { - TextureFactory.of(mMaterial.mIconSet.mTextures[TextureSet.INDEX_wire], mMaterial.mRGBa), - TextureFactory.of( - Textures.BlockIcons.INSULATION_TINY, - Dyes.getModulation(aColorIndex, Dyes.CABLE_INSULATION.mRGBa)) }; + TextureFactory.of(mMaterial.mIconSet.mTextures[TextureSet.INDEX_wire], mMaterial.mRGBa), + TextureFactory.of( + Textures.BlockIcons.INSULATION_TINY, + Dyes.getModulation(aColorIndex, Dyes.CABLE_INSULATION.mRGBa)) }; if (tThickNess < 0.499F) // 0.500 x2 return new ITexture[] { - TextureFactory.of(mMaterial.mIconSet.mTextures[TextureSet.INDEX_wire], mMaterial.mRGBa), - TextureFactory.of( - Textures.BlockIcons.INSULATION_SMALL, - Dyes.getModulation(aColorIndex, Dyes.CABLE_INSULATION.mRGBa)) }; + TextureFactory.of(mMaterial.mIconSet.mTextures[TextureSet.INDEX_wire], mMaterial.mRGBa), + TextureFactory.of( + Textures.BlockIcons.INSULATION_SMALL, + Dyes.getModulation(aColorIndex, Dyes.CABLE_INSULATION.mRGBa)) }; if (tThickNess < 0.624F) // 0.625 x4 return new ITexture[] { - TextureFactory.of(mMaterial.mIconSet.mTextures[TextureSet.INDEX_wire], mMaterial.mRGBa), - TextureFactory.of( - Textures.BlockIcons.INSULATION_MEDIUM, - Dyes.getModulation(aColorIndex, Dyes.CABLE_INSULATION.mRGBa)) }; + TextureFactory.of(mMaterial.mIconSet.mTextures[TextureSet.INDEX_wire], mMaterial.mRGBa), + TextureFactory.of( + Textures.BlockIcons.INSULATION_MEDIUM, + Dyes.getModulation(aColorIndex, Dyes.CABLE_INSULATION.mRGBa)) }; if (tThickNess < 0.749F) // 0.750 x8 return new ITexture[] { - TextureFactory.of(mMaterial.mIconSet.mTextures[TextureSet.INDEX_wire], mMaterial.mRGBa), - TextureFactory.of( - Textures.BlockIcons.INSULATION_MEDIUM_PLUS, - Dyes.getModulation(aColorIndex, Dyes.CABLE_INSULATION.mRGBa)) }; + TextureFactory.of(mMaterial.mIconSet.mTextures[TextureSet.INDEX_wire], mMaterial.mRGBa), + TextureFactory.of( + Textures.BlockIcons.INSULATION_MEDIUM_PLUS, + Dyes.getModulation(aColorIndex, Dyes.CABLE_INSULATION.mRGBa)) }; if (tThickNess < 0.874F) // 0.825 x12 return new ITexture[] { - TextureFactory.of(mMaterial.mIconSet.mTextures[TextureSet.INDEX_wire], mMaterial.mRGBa), - TextureFactory.of( - Textures.BlockIcons.INSULATION_LARGE, - Dyes.getModulation(aColorIndex, Dyes.CABLE_INSULATION.mRGBa)) }; - return new ITexture[] { TextureFactory.of(mMaterial.mIconSet.mTextures[TextureSet.INDEX_wire], mMaterial.mRGBa), TextureFactory.of( - Textures.BlockIcons.INSULATION_HUGE, - Dyes.getModulation(aColorIndex, Dyes.CABLE_INSULATION.mRGBa)) }; + Textures.BlockIcons.INSULATION_LARGE, + Dyes.getModulation(aColorIndex, Dyes.CABLE_INSULATION.mRGBa)) }; + return new ITexture[] { + TextureFactory.of(mMaterial.mIconSet.mTextures[TextureSet.INDEX_wire], mMaterial.mRGBa), + TextureFactory.of( + Textures.BlockIcons.INSULATION_HUGE, + Dyes.getModulation(aColorIndex, Dyes.CABLE_INSULATION.mRGBa)) }; } - return new ITexture[] { TextureFactory.of( - Textures.BlockIcons.INSULATION_FULL, - Dyes.getModulation(aColorIndex, Dyes.CABLE_INSULATION.mRGBa)) }; + return new ITexture[] { TextureFactory + .of(Textures.BlockIcons.INSULATION_FULL, Dyes.getModulation(aColorIndex, Dyes.CABLE_INSULATION.mRGBa)) }; } @Override public void onEntityCollidedWithBlock(World aWorld, int aX, int aY, int aZ, Entity aEntity) { if (mCanShock && (((BaseMetaPipeEntity) getBaseMetaTileEntity()).mConnections & -128) == 0 - && aEntity instanceof EntityLivingBase - && !isCoverOnSide((BaseMetaPipeEntity) getBaseMetaTileEntity(), (EntityLivingBase) aEntity)) + && aEntity instanceof EntityLivingBase + && !isCoverOnSide((BaseMetaPipeEntity) getBaseMetaTileEntity(), (EntityLivingBase) aEntity)) GT_Utility.applyElectricityDamage( - (EntityLivingBase) aEntity, - mTransferredVoltageLast20, - mTransferredAmperageLast20); + (EntityLivingBase) aEntity, + mTransferredVoltageLast20, + mTransferredAmperageLast20); } @Override @@ -206,8 +205,7 @@ public class GT_MetaPipeEntity_Cable extends MetaPipeEntity implements IMetaTile public long injectEnergyUnits(byte aSide, long aVoltage, long aAmperage) { if (!isConnectedAtSide(aSide) && aSide != 6) return 0; if (!getBaseMetaTileEntity().getCoverInfoAtSide(aSide) - .letsEnergyIn()) - return 0; + .letsEnergyIn()) return 0; final HashSet nul = null; return transferElectricity(aSide, aVoltage, aAmperage, nul); } @@ -215,7 +213,7 @@ public class GT_MetaPipeEntity_Cable extends MetaPipeEntity implements IMetaTile @Override @Deprecated public long transferElectricity(byte aSide, long aVoltage, long aAmperage, - ArrayList aAlreadyPassedTileEntityList) { + ArrayList aAlreadyPassedTileEntityList) { return transferElectricity(aSide, aVoltage, aAmperage, new HashSet<>(aAlreadyPassedTileEntityList)); } @@ -247,10 +245,9 @@ public class GT_MetaPipeEntity_Cable extends MetaPipeEntity implements IMetaTile if (aBaseMetaTileEntity.isServerSide()) { lastAmperage = new int[16]; lastWorldTick = aBaseMetaTileEntity.getWorld() - .getTotalWorldTime() - - 1; // sets initial value -1 since it is - // in the same tick as first on post - // tick + .getTotalWorldTime() - 1; // sets initial value -1 since it is + // in the same tick as first on post + // tick } } @@ -258,16 +255,16 @@ public class GT_MetaPipeEntity_Cable extends MetaPipeEntity implements IMetaTile public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) { super.onPostTick(aBaseMetaTileEntity, aTick); if (aTick % 20 == 0 && aBaseMetaTileEntity.isServerSide() - && (!GT_Mod.gregtechproxy.gt6Cable || mCheckConnections)) { + && (!GT_Mod.gregtechproxy.gt6Cable || mCheckConnections)) { checkConnections(); } } @Override public boolean onWireCutterRightClick(byte aSide, byte aWrenchingSide, EntityPlayer aPlayer, float aX, float aY, - float aZ) { + float aZ) { if (GT_Mod.gregtechproxy.gt6Cable - && GT_ModHandler.damageOrDechargeItem(aPlayer.inventory.getCurrentItem(), 1, 500, aPlayer)) { + && GT_ModHandler.damageOrDechargeItem(aPlayer.inventory.getCurrentItem(), 1, 500, aPlayer)) { if (isConnectedAtSide(aWrenchingSide)) { disconnect(aWrenchingSide); GT_Utility.sendChatToPlayer(aPlayer, GT_Utility.trans("215", "Disconnected")); @@ -282,9 +279,9 @@ public class GT_MetaPipeEntity_Cable extends MetaPipeEntity implements IMetaTile @Override public boolean onSolderingToolRightClick(byte aSide, byte aWrenchingSide, EntityPlayer aPlayer, float aX, float aY, - float aZ) { + float aZ) { if (GT_Mod.gregtechproxy.gt6Cable - && GT_ModHandler.damageOrDechargeItem(aPlayer.inventory.getCurrentItem(), 1, 500, aPlayer)) { + && GT_ModHandler.damageOrDechargeItem(aPlayer.inventory.getCurrentItem(), 1, 500, aPlayer)) { if (isConnectedAtSide(aWrenchingSide)) { disconnect(aWrenchingSide); GT_Utility.sendChatToPlayer(aPlayer, GT_Utility.trans("215", "Disconnected")); @@ -299,25 +296,25 @@ public class GT_MetaPipeEntity_Cable extends MetaPipeEntity implements IMetaTile @Override public boolean letsIn(GT_CoverBehavior coverBehavior, byte aSide, int aCoverID, int aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return coverBehavior.letsEnergyIn(aSide, aCoverID, aCoverVariable, aTileEntity); } @Override public boolean letsOut(GT_CoverBehavior coverBehavior, byte aSide, int aCoverID, int aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return coverBehavior.letsEnergyOut(aSide, aCoverID, aCoverVariable, aTileEntity); } @Override public boolean letsIn(GT_CoverBehaviorBase coverBehavior, byte aSide, int aCoverID, - ISerializableObject aCoverVariable, ICoverable aTileEntity) { + ISerializableObject aCoverVariable, ICoverable aTileEntity) { return coverBehavior.letsEnergyIn(aSide, aCoverID, aCoverVariable, aTileEntity); } @Override public boolean letsOut(GT_CoverBehaviorBase coverBehavior, byte aSide, int aCoverID, - ISerializableObject aCoverVariable, ICoverable aTileEntity) { + ISerializableObject aCoverVariable, ICoverable aTileEntity) { return coverBehavior.letsEnergyOut(aSide, aCoverID, aCoverVariable, aTileEntity); } @@ -340,8 +337,7 @@ public class GT_MetaPipeEntity_Cable extends MetaPipeEntity implements IMetaTile // GT Machine handling if ((tTileEntity instanceof IEnergyConnected) && (((IEnergyConnected) tTileEntity).inputEnergyFrom(tSide, false) - || ((IEnergyConnected) tTileEntity).outputsEnergyTo(tSide, false))) - return true; + || ((IEnergyConnected) tTileEntity).outputsEnergyTo(tSide, false))) return true; // Solar Panel Compat if (coverBehavior instanceof GT_Cover_SolarPanel) return true; @@ -353,7 +349,7 @@ public class GT_MetaPipeEntity_Cable extends MetaPipeEntity implements IMetaTile // AE2-p2p Compat if (GT_Mod.gregtechproxy.mAE2Integration) { if (tTileEntity instanceof appeng.tile.powersink.IC2 - && ((appeng.tile.powersink.IC2) tTileEntity).acceptsEnergyFrom((TileEntity) baseMetaTile, tDir)) + && ((appeng.tile.powersink.IC2) tTileEntity).acceptsEnergyFrom((TileEntity) baseMetaTile, tDir)) return true; } @@ -364,17 +360,16 @@ public class GT_MetaPipeEntity_Cable extends MetaPipeEntity implements IMetaTile if (tTileEntity instanceof IReactorChamber) ic2Energy = (TileEntity) ((IReactorChamber) tTileEntity).getReactor(); else ic2Energy = (tTileEntity == null || tTileEntity instanceof IEnergyTile || EnergyNet.instance == null) - ? tTileEntity - : EnergyNet.instance.getTileEntity( - tTileEntity.getWorldObj(), - tTileEntity.xCoord, - tTileEntity.yCoord, - tTileEntity.zCoord); + ? tTileEntity + : EnergyNet.instance.getTileEntity( + tTileEntity.getWorldObj(), + tTileEntity.xCoord, + tTileEntity.yCoord, + tTileEntity.zCoord); // IC2 Sink Compat if ((ic2Energy instanceof IEnergySink) - && ((IEnergySink) ic2Energy).acceptsEnergyFrom((TileEntity) baseMetaTile, tDir)) - return true; + && ((IEnergySink) ic2Energy).acceptsEnergyFrom((TileEntity) baseMetaTile, tDir)) return true; // IC2 Source Compat if (GT_Mod.gregtechproxy.ic2EnergySourceCompat && (ic2Energy instanceof IEnergySource)) { @@ -385,12 +380,11 @@ public class GT_MetaPipeEntity_Cable extends MetaPipeEntity implements IMetaTile } // RF Output Compat if (GregTech_API.mOutputRF && tTileEntity instanceof IEnergyReceiver - && ((IEnergyReceiver) tTileEntity).canConnectEnergy(tDir)) - return true; + && ((IEnergyReceiver) tTileEntity).canConnectEnergy(tDir)) return true; // RF Input Compat return GregTech_API.mInputRF && (tTileEntity instanceof IEnergyEmitter - && ((IEnergyEmitter) tTileEntity).emitsEnergyTo((TileEntity) baseMetaTile, tDir)); + && ((IEnergyEmitter) tTileEntity).emitsEnergyTo((TileEntity) baseMetaTile, tDir)); } @Override @@ -412,24 +406,24 @@ public class GT_MetaPipeEntity_Cable extends MetaPipeEntity implements IMetaTile @Override public String[] getDescription() { return new String[] { - StatCollector.translateToLocal("GT5U.item.cable.max_voltage") + ": %%%" - + EnumChatFormatting.GREEN - + GT_Utility.formatNumbers(mVoltage) - + " (" - + GT_Utility.getColoredTierNameFromVoltage(mVoltage) - + EnumChatFormatting.GREEN - + ")" - + EnumChatFormatting.GRAY, - StatCollector.translateToLocal("GT5U.item.cable.max_amperage") + ": %%%" - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(mAmperage) - + EnumChatFormatting.GRAY, - StatCollector.translateToLocal("GT5U.item.cable.loss") + ": %%%" - + EnumChatFormatting.RED - + GT_Utility.formatNumbers(mCableLossPerMeter) - + EnumChatFormatting.GRAY - + "%%% " - + StatCollector.translateToLocal("GT5U.item.cable.eu_volt") }; + StatCollector.translateToLocal("GT5U.item.cable.max_voltage") + ": %%%" + + EnumChatFormatting.GREEN + + GT_Utility.formatNumbers(mVoltage) + + " (" + + GT_Utility.getColoredTierNameFromVoltage(mVoltage) + + EnumChatFormatting.GREEN + + ")" + + EnumChatFormatting.GRAY, + StatCollector.translateToLocal("GT5U.item.cable.max_amperage") + ": %%%" + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(mAmperage) + + EnumChatFormatting.GRAY, + StatCollector.translateToLocal("GT5U.item.cable.loss") + ": %%%" + + EnumChatFormatting.RED + + GT_Utility.formatNumbers(mCableLossPerMeter) + + EnumChatFormatting.GRAY + + "%%% " + + StatCollector.translateToLocal("GT5U.item.cable.eu_volt") }; } @Override @@ -466,38 +460,38 @@ public class GT_MetaPipeEntity_Cable extends MetaPipeEntity implements IMetaTile volts = path.getVoltage(this); } return new String[] { - // EnumChatFormatting.BLUE + mName + EnumChatFormatting.RESET, - "Heat: " + EnumChatFormatting.RED - + GT_Utility.formatNumbers(mOverheat) - + EnumChatFormatting.RESET - + " / " - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(mMaxOverheat) - + EnumChatFormatting.RESET, - "Max Load (1t):", - EnumChatFormatting.GREEN + GT_Utility.formatNumbers(amps) - + EnumChatFormatting.RESET - + " A / " - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(mAmperage) - + EnumChatFormatting.RESET - + " A", - "Max EU/p (1t):", - EnumChatFormatting.GREEN + GT_Utility.formatNumbers(volts) - + EnumChatFormatting.RESET - + " EU / " - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(mVoltage) - + EnumChatFormatting.RESET - + " EU", - "Max Load (20t): " + EnumChatFormatting.GREEN - + GT_Utility.formatNumbers(mTransferredAmperageLast20OK) - + EnumChatFormatting.RESET - + " A", - "Max EU/p (20t): " + EnumChatFormatting.GREEN - + GT_Utility.formatNumbers(mTransferredVoltageLast20OK) - + EnumChatFormatting.RESET - + " EU" }; + // EnumChatFormatting.BLUE + mName + EnumChatFormatting.RESET, + "Heat: " + EnumChatFormatting.RED + + GT_Utility.formatNumbers(mOverheat) + + EnumChatFormatting.RESET + + " / " + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(mMaxOverheat) + + EnumChatFormatting.RESET, + "Max Load (1t):", + EnumChatFormatting.GREEN + GT_Utility.formatNumbers(amps) + + EnumChatFormatting.RESET + + " A / " + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(mAmperage) + + EnumChatFormatting.RESET + + " A", + "Max EU/p (1t):", + EnumChatFormatting.GREEN + GT_Utility.formatNumbers(volts) + + EnumChatFormatting.RESET + + " EU / " + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(mVoltage) + + EnumChatFormatting.RESET + + " EU", + "Max Load (20t): " + EnumChatFormatting.GREEN + + GT_Utility.formatNumbers(mTransferredAmperageLast20OK) + + EnumChatFormatting.RESET + + " A", + "Max EU/p (20t): " + EnumChatFormatting.GREEN + + GT_Utility.formatNumbers(mTransferredVoltageLast20OK) + + EnumChatFormatting.RESET + + " EU" }; } @Override @@ -549,18 +543,13 @@ public class GT_MetaPipeEntity_Cable extends MetaPipeEntity implements IMetaTile if ((tConn & (1 << ForgeDirection.WEST.ordinal())) != 0) tSide4 = 0f; if ((tConn & (1 << ForgeDirection.EAST.ordinal())) != 0) tSide5 = 1f; - return AxisAlignedBB.getBoundingBox( - aX + tSide4, - aY + tSide0, - aZ + tSide2, - aX + tSide5, - aY + tSide1, - aZ + tSide3); + return AxisAlignedBB + .getBoundingBox(aX + tSide4, aY + tSide0, aZ + tSide2, aX + tSide5, aY + tSide1, aZ + tSide3); } @Override public void addCollisionBoxesToList(World aWorld, int aX, int aY, int aZ, AxisAlignedBB inputAABB, - List outputAABB, Entity collider) { + List outputAABB, Entity collider) { super.addCollisionBoxesToList(aWorld, aX, aY, aZ, inputAABB, outputAABB, collider); if (GT_Mod.instance.isClientSide() && (GT_Client.hideValue & 0x2) != 0) { final AxisAlignedBB aabb = getActualCollisionBoundingBoxFromPool(aWorld, aX, aY, aZ); @@ -577,13 +566,13 @@ public class GT_MetaPipeEntity_Cable extends MetaPipeEntity implements IMetaTile for (byte aSide = 0; aSide < 6; aSide++) if (isConnectedAtSide(aSide)) { final TileEntity tTileEntity = baseMeta.getTileEntityAtSide(aSide); final TileEntity tEmitter = (tTileEntity == null || tTileEntity instanceof IEnergyTile - || EnergyNet.instance == null) - ? tTileEntity - : EnergyNet.instance.getTileEntity( - tTileEntity.getWorldObj(), - tTileEntity.xCoord, - tTileEntity.yCoord, - tTileEntity.zCoord); + || EnergyNet.instance == null) + ? tTileEntity + : EnergyNet.instance.getTileEntity( + tTileEntity.getWorldObj(), + tTileEntity.xCoord, + tTileEntity.yCoord, + tTileEntity.zCoord); if (tEmitter instanceof IEnergyEmitter) return true; } diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaPipeEntity_Fluid.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaPipeEntity_Fluid.java index c8718d0e52..76c7f418e9 100644 --- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaPipeEntity_Fluid.java +++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaPipeEntity_Fluid.java @@ -55,12 +55,12 @@ public class GT_MetaPipeEntity_Fluid extends MetaPipeEntity { public byte mDisableInput = 0; public GT_MetaPipeEntity_Fluid(int aID, String aName, String aNameRegional, float aThickNess, Materials aMaterial, - int aCapacity, int aHeatResistance, boolean aGasProof) { + int aCapacity, int aHeatResistance, boolean aGasProof) { this(aID, aName, aNameRegional, aThickNess, aMaterial, aCapacity, aHeatResistance, aGasProof, 1); } public GT_MetaPipeEntity_Fluid(int aID, String aName, String aNameRegional, float aThickNess, Materials aMaterial, - int aCapacity, int aHeatResistance, boolean aGasProof, int aFluidTypes) { + int aCapacity, int aHeatResistance, boolean aGasProof, int aFluidTypes) { super(aID, aName, aNameRegional, 0, false); mThickNess = aThickNess; mMaterial = aMaterial; @@ -74,12 +74,12 @@ public class GT_MetaPipeEntity_Fluid extends MetaPipeEntity { @Deprecated public GT_MetaPipeEntity_Fluid(String aName, float aThickNess, Materials aMaterial, int aCapacity, - int aHeatResistance, boolean aGasProof) { + int aHeatResistance, boolean aGasProof) { this(aName, aThickNess, aMaterial, aCapacity, aHeatResistance, aGasProof, 1); } public GT_MetaPipeEntity_Fluid(String aName, float aThickNess, Materials aMaterial, int aCapacity, - int aHeatResistance, boolean aGasProof, int aFluidTypes) { + int aHeatResistance, boolean aGasProof, int aFluidTypes) { super(aName, 0); mThickNess = aThickNess; mMaterial = aMaterial; @@ -98,64 +98,64 @@ public class GT_MetaPipeEntity_Fluid extends MetaPipeEntity { @Override public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) { return new GT_MetaPipeEntity_Fluid( - mName, - mThickNess, - mMaterial, - mCapacity, - mHeatResistance, - mGasProof, - mPipeAmount); + mName, + mThickNess, + mMaterial, + mCapacity, + mHeatResistance, + mGasProof, + mPipeAmount); } @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aConnections, - byte aColorIndex, boolean aConnected, boolean aRedstone) { + byte aColorIndex, boolean aConnected, boolean aRedstone) { final float tThickNess = getThickNess(); if (mDisableInput == 0) return new ITexture[] { aConnected ? getBaseTexture(tThickNess, mPipeAmount, mMaterial, aColorIndex) - : TextureFactory.of( - mMaterial.mIconSet.mTextures[OrePrefixes.pipe.mTextureIndex], - Dyes.getModulation(aColorIndex, mMaterial.mRGBa)) }; + : TextureFactory.of( + mMaterial.mIconSet.mTextures[OrePrefixes.pipe.mTextureIndex], + Dyes.getModulation(aColorIndex, mMaterial.mRGBa)) }; byte tMask = 0; final byte[][] sRestrictionArray = { { 2, 3, 5, 4 }, { 2, 3, 4, 5 }, { 1, 0, 4, 5 }, { 1, 0, 4, 5 }, - { 1, 0, 2, 3 }, { 1, 0, 2, 3 } }; + { 1, 0, 2, 3 }, { 1, 0, 2, 3 } }; if (aSide >= 0 && aSide < 6) { for (byte i = 0; i < 4; i++) if (isInputDisabledAtSide(sRestrictionArray[aSide][i])) tMask |= 1 << i; // Full block size renderer flips side 5 and 2 textures, flip restrictor textures to compensate if (aSide == 5 || aSide == 2) if (tMask > 3 && tMask < 12) tMask = (byte) (tMask ^ 12); } return new ITexture[] { aConnected ? getBaseTexture(tThickNess, mPipeAmount, mMaterial, aColorIndex) - : TextureFactory.of( - mMaterial.mIconSet.mTextures[OrePrefixes.pipe.mTextureIndex], - Dyes.getModulation(aColorIndex, mMaterial.mRGBa)), - getRestrictorTexture(tMask) }; + : TextureFactory.of( + mMaterial.mIconSet.mTextures[OrePrefixes.pipe.mTextureIndex], + Dyes.getModulation(aColorIndex, mMaterial.mRGBa)), + getRestrictorTexture(tMask) }; } protected static ITexture getBaseTexture(float aThickNess, int aPipeAmount, Materials aMaterial, byte aColorIndex) { if (aPipeAmount >= 9) return TextureFactory.of( - aMaterial.mIconSet.mTextures[OrePrefixes.pipeNonuple.mTextureIndex], - Dyes.getModulation(aColorIndex, aMaterial.mRGBa)); + aMaterial.mIconSet.mTextures[OrePrefixes.pipeNonuple.mTextureIndex], + Dyes.getModulation(aColorIndex, aMaterial.mRGBa)); if (aPipeAmount >= 4) return TextureFactory.of( - aMaterial.mIconSet.mTextures[OrePrefixes.pipeQuadruple.mTextureIndex], - Dyes.getModulation(aColorIndex, aMaterial.mRGBa)); + aMaterial.mIconSet.mTextures[OrePrefixes.pipeQuadruple.mTextureIndex], + Dyes.getModulation(aColorIndex, aMaterial.mRGBa)); if (aThickNess < 0.124F) return TextureFactory.of( - aMaterial.mIconSet.mTextures[OrePrefixes.pipe.mTextureIndex], - Dyes.getModulation(aColorIndex, aMaterial.mRGBa)); + aMaterial.mIconSet.mTextures[OrePrefixes.pipe.mTextureIndex], + Dyes.getModulation(aColorIndex, aMaterial.mRGBa)); if (aThickNess < 0.374F) return TextureFactory.of( - aMaterial.mIconSet.mTextures[OrePrefixes.pipeTiny.mTextureIndex], - Dyes.getModulation(aColorIndex, aMaterial.mRGBa)); + aMaterial.mIconSet.mTextures[OrePrefixes.pipeTiny.mTextureIndex], + Dyes.getModulation(aColorIndex, aMaterial.mRGBa)); if (aThickNess < 0.499F) return TextureFactory.of( - aMaterial.mIconSet.mTextures[OrePrefixes.pipeSmall.mTextureIndex], - Dyes.getModulation(aColorIndex, aMaterial.mRGBa)); + aMaterial.mIconSet.mTextures[OrePrefixes.pipeSmall.mTextureIndex], + Dyes.getModulation(aColorIndex, aMaterial.mRGBa)); if (aThickNess < 0.749F) return TextureFactory.of( - aMaterial.mIconSet.mTextures[OrePrefixes.pipeMedium.mTextureIndex], - Dyes.getModulation(aColorIndex, aMaterial.mRGBa)); + aMaterial.mIconSet.mTextures[OrePrefixes.pipeMedium.mTextureIndex], + Dyes.getModulation(aColorIndex, aMaterial.mRGBa)); if (aThickNess < 0.874F) return TextureFactory.of( - aMaterial.mIconSet.mTextures[OrePrefixes.pipeLarge.mTextureIndex], - Dyes.getModulation(aColorIndex, aMaterial.mRGBa)); + aMaterial.mIconSet.mTextures[OrePrefixes.pipeLarge.mTextureIndex], + Dyes.getModulation(aColorIndex, aMaterial.mRGBa)); return TextureFactory.of( - aMaterial.mIconSet.mTextures[OrePrefixes.pipeHuge.mTextureIndex], - Dyes.getModulation(aColorIndex, aMaterial.mRGBa)); + aMaterial.mIconSet.mTextures[OrePrefixes.pipeHuge.mTextureIndex], + Dyes.getModulation(aColorIndex, aMaterial.mRGBa)); } protected static ITexture getRestrictorTexture(byte aMask) { @@ -244,22 +244,20 @@ public class GT_MetaPipeEntity_Fluid extends MetaPipeEntity { @Override public void onEntityCollidedWithBlock(World aWorld, int aX, int aY, int aZ, Entity aEntity) { if ((((BaseMetaPipeEntity) getBaseMetaTileEntity()).mConnections & -128) == 0 - && aEntity instanceof EntityLivingBase) { + && aEntity instanceof EntityLivingBase) { for (FluidStack tFluid : mFluids) { if (tFluid != null) { final int tTemperature = tFluid.getFluid() - .getTemperature(tFluid); - if (tTemperature > 320 && !isCoverOnSide( - (BaseMetaPipeEntity) getBaseMetaTileEntity(), - (EntityLivingBase) aEntity)) { + .getTemperature(tFluid); + if (tTemperature > 320 + && !isCoverOnSide((BaseMetaPipeEntity) getBaseMetaTileEntity(), (EntityLivingBase) aEntity)) { GT_Utility.applyHeatDamage((EntityLivingBase) aEntity, (tTemperature - 300) / 50.0F); break; - } else if (tTemperature < 260 && !isCoverOnSide( - (BaseMetaPipeEntity) getBaseMetaTileEntity(), - (EntityLivingBase) aEntity)) { - GT_Utility.applyFrostDamage((EntityLivingBase) aEntity, (270 - tTemperature) / 25.0F); - break; - } + } else if (tTemperature < 260 + && !isCoverOnSide((BaseMetaPipeEntity) getBaseMetaTileEntity(), (EntityLivingBase) aEntity)) { + GT_Utility.applyFrostDamage((EntityLivingBase) aEntity, (270 - tTemperature) / 25.0F); + break; + } } } } @@ -300,55 +298,48 @@ public class GT_MetaPipeEntity_Fluid extends MetaPipeEntity { if (tFluid != null && tFluid.amount > 0) { final int tTemperature = tFluid.getFluid() - .getTemperature(tFluid); + .getTemperature(tFluid); if (tTemperature > mHeatResistance) { if (aBaseMetaTileEntity.getRandomNumber(100) == 0) { // Poof GT_Log.exp.println( - "Set Pipe to Fire due to to low heat resistance at " + aBaseMetaTileEntity.getXCoord() - + " | " - + aBaseMetaTileEntity.getYCoord() - + " | " - + aBaseMetaTileEntity.getZCoord() - + " DIMID: " - + aBaseMetaTileEntity.getWorld().provider.dimensionId); + "Set Pipe to Fire due to to low heat resistance at " + aBaseMetaTileEntity.getXCoord() + + " | " + + aBaseMetaTileEntity.getYCoord() + + " | " + + aBaseMetaTileEntity.getZCoord() + + " DIMID: " + + aBaseMetaTileEntity.getWorld().provider.dimensionId); aBaseMetaTileEntity.setToFire(); return true; } // Mmhmm, Fire aBaseMetaTileEntity.setOnFire(); GT_Log.exp.println( - "Set Blocks around Pipe to Fire due to to low heat resistance at " - + aBaseMetaTileEntity.getXCoord() - + " | " - + aBaseMetaTileEntity.getYCoord() - + " | " - + aBaseMetaTileEntity.getZCoord() - + " DIMID: " - + aBaseMetaTileEntity.getWorld().provider.dimensionId); + "Set Blocks around Pipe to Fire due to to low heat resistance at " + aBaseMetaTileEntity.getXCoord() + + " | " + + aBaseMetaTileEntity.getYCoord() + + " | " + + aBaseMetaTileEntity.getZCoord() + + " DIMID: " + + aBaseMetaTileEntity.getWorld().provider.dimensionId); } if (!mGasProof && tFluid.getFluid() - .isGaseous(tFluid)) { + .isGaseous(tFluid)) { tFluid.amount -= 5; sendSound((byte) 9); if (tTemperature > 320) { try { for (EntityLivingBase tLiving : getBaseMetaTileEntity().getWorld() - .getEntitiesWithinAABB( - EntityLivingBase.class, - AxisAlignedBB.getBoundingBox( - getBaseMetaTileEntity().getXCoord() - - 2, - getBaseMetaTileEntity().getYCoord() - - 2, - getBaseMetaTileEntity().getZCoord() - - 2, - getBaseMetaTileEntity().getXCoord() - + 3, - getBaseMetaTileEntity().getYCoord() - + 3, - getBaseMetaTileEntity().getZCoord() - + 3))) { + .getEntitiesWithinAABB( + EntityLivingBase.class, + AxisAlignedBB.getBoundingBox( + getBaseMetaTileEntity().getXCoord() - 2, + getBaseMetaTileEntity().getYCoord() - 2, + getBaseMetaTileEntity().getZCoord() - 2, + getBaseMetaTileEntity().getXCoord() + 3, + getBaseMetaTileEntity().getYCoord() + 3, + getBaseMetaTileEntity().getZCoord() + 3))) { GT_Utility.applyHeatDamage(tLiving, (tTemperature - 300) / 25.0F); } } catch (Throwable e) { @@ -357,21 +348,15 @@ public class GT_MetaPipeEntity_Fluid extends MetaPipeEntity { } else if (tTemperature < 260) { try { for (EntityLivingBase tLiving : getBaseMetaTileEntity().getWorld() - .getEntitiesWithinAABB( - EntityLivingBase.class, - AxisAlignedBB.getBoundingBox( - getBaseMetaTileEntity().getXCoord() - - 2, - getBaseMetaTileEntity().getYCoord() - - 2, - getBaseMetaTileEntity().getZCoord() - - 2, - getBaseMetaTileEntity().getXCoord() - + 3, - getBaseMetaTileEntity().getYCoord() - + 3, - getBaseMetaTileEntity().getZCoord() - + 3))) { + .getEntitiesWithinAABB( + EntityLivingBase.class, + AxisAlignedBB.getBoundingBox( + getBaseMetaTileEntity().getXCoord() - 2, + getBaseMetaTileEntity().getYCoord() - 2, + getBaseMetaTileEntity().getZCoord() - 2, + getBaseMetaTileEntity().getXCoord() + 3, + getBaseMetaTileEntity().getYCoord() + 3, + getBaseMetaTileEntity().getZCoord() + 3))) { GT_Utility.applyFrostDamage(tLiving, (270 - tTemperature) / 12.5F); } } catch (Throwable e) { @@ -400,11 +385,11 @@ public class GT_MetaPipeEntity_Fluid extends MetaPipeEntity { final IGregTechTileEntity gTank = tTank instanceof IGregTechTileEntity ? (IGregTechTileEntity) tTank : null; if (isConnectedAtSide(aSide) && tTank != null - && (mLastReceivedFrom & (1 << aSide)) == 0 - && getBaseMetaTileEntity().getCoverInfoAtSide(aSide) - .letsFluidOut(tFluid.getFluid()) - && (gTank == null || gTank.getCoverInfoAtSide(tSide) - .letsFluidIn(tFluid.getFluid()))) { + && (mLastReceivedFrom & (1 << aSide)) == 0 + && getBaseMetaTileEntity().getCoverInfoAtSide(aSide) + .letsFluidOut(tFluid.getFluid()) + && (gTank == null || gTank.getCoverInfoAtSide(tSide) + .letsFluidIn(tFluid.getFluid()))) { if (tTank.fill(ForgeDirection.getOrientation(tSide), tFluid, false) > 0) { tTanks.add(new MutableTriple<>(tTank, ForgeDirection.getOrientation(tSide), 0)); } @@ -436,10 +421,8 @@ public class GT_MetaPipeEntity_Fluid extends MetaPipeEntity { if (tEntry.right <= 0) continue; - final int tFilledAmount = tEntry.left.fill( - tEntry.middle, - drainFromIndex(tEntry.right, false, index), - false); + final int tFilledAmount = tEntry.left + .fill(tEntry.middle, drainFromIndex(tEntry.right, false, index), false); if (tFilledAmount > 0) tEntry.left.fill(tEntry.middle, drainFromIndex(tFilledAmount, true, index), true); @@ -449,7 +432,7 @@ public class GT_MetaPipeEntity_Fluid extends MetaPipeEntity { @Override public boolean onWrenchRightClick(byte aSide, byte aWrenchingSide, EntityPlayer aPlayer, float aX, float aY, - float aZ) { + float aZ) { if (GT_Mod.gregtechproxy.gt6Pipe) { final byte tSide = GT_Utility.determineWrenchingSide(aSide, aX, aY, aZ); final byte tMask = (byte) (1 << tSide); @@ -477,25 +460,25 @@ public class GT_MetaPipeEntity_Fluid extends MetaPipeEntity { @Override public boolean letsIn(GT_CoverBehavior coverBehavior, byte aSide, int aCoverID, int aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return coverBehavior.letsFluidIn(aSide, aCoverID, aCoverVariable, null, aTileEntity); } @Override public boolean letsOut(GT_CoverBehavior coverBehavior, byte aSide, int aCoverID, int aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return coverBehavior.letsFluidOut(aSide, aCoverID, aCoverVariable, null, aTileEntity); } @Override public boolean letsIn(GT_CoverBehaviorBase coverBehavior, byte aSide, int aCoverID, - ISerializableObject aCoverVariable, ICoverable aTileEntity) { + ISerializableObject aCoverVariable, ICoverable aTileEntity) { return coverBehavior.letsFluidIn(aSide, aCoverID, aCoverVariable, null, aTileEntity); } @Override public boolean letsOut(GT_CoverBehaviorBase coverBehavior, byte aSide, int aCoverID, - ISerializableObject aCoverVariable, ICoverable aTileEntity) { + ISerializableObject aCoverVariable, ICoverable aTileEntity) { return coverBehavior.letsFluidOut(aSide, aCoverID, aCoverVariable, null, aTileEntity); } @@ -514,15 +497,15 @@ public class GT_MetaPipeEntity_Fluid extends MetaPipeEntity { if (tTileEntity == null) return false; final byte tSide = (byte) ForgeDirection.getOrientation(aSide) - .getOpposite() - .ordinal(); + .getOpposite() + .ordinal(); final IGregTechTileEntity baseMetaTile = getBaseMetaTileEntity(); if (baseMetaTile == null) return false; final GT_CoverBehaviorBase coverBehavior = baseMetaTile.getCoverBehaviorAtSideNew(aSide); final IGregTechTileEntity gTileEntity = (tTileEntity instanceof IGregTechTileEntity) - ? (IGregTechTileEntity) tTileEntity - : null; + ? (IGregTechTileEntity) tTileEntity + : null; if (coverBehavior instanceof GT_Cover_Drain || (GregTech_API.mTConstruct && isTConstructFaucet(tTileEntity))) return true; @@ -533,8 +516,8 @@ public class GT_MetaPipeEntity_Fluid extends MetaPipeEntity { final FluidTankInfo[] tInfo = fTileEntity.getTankInfo(ForgeDirection.getOrientation(tSide)); if (tInfo != null) { return tInfo.length > 0 || (GregTech_API.mTranslocator && isTranslocator(tTileEntity)) - || gTileEntity != null - && gTileEntity.getCoverBehaviorAtSideNew(tSide) instanceof GT_Cover_FluidRegulator; + || gTileEntity != null + && gTileEntity.getCoverBehaviorAtSideNew(tSide) instanceof GT_Cover_FluidRegulator; } } return false; @@ -565,18 +548,19 @@ public class GT_MetaPipeEntity_Fluid extends MetaPipeEntity { GT_Utility.doSoundAtClient(SoundResource.RANDOM_FIZZ, 5, 1.0F, aX, aY, aZ); new ParticleEventBuilder().setIdentifier(ParticleFX.CLOUD) - .setWorld(getBaseMetaTileEntity().getWorld()) - .times( - 6, - (x, i) -> x.setMotion( - ForgeDirection.getOrientation(i).offsetX / 5.0, - ForgeDirection.getOrientation(i).offsetY / 5.0, - ForgeDirection.getOrientation(i).offsetZ / 5.0) - .setPosition( - aX - 0.5 + XSTR_INSTANCE.nextFloat(), - aY - 0.5 + XSTR_INSTANCE.nextFloat(), - aZ - 0.5 + XSTR_INSTANCE.nextFloat()) - .run()); + .setWorld(getBaseMetaTileEntity().getWorld()) + .times( + 6, + (x, i) -> x + .setMotion( + ForgeDirection.getOrientation(i).offsetX / 5.0, + ForgeDirection.getOrientation(i).offsetY / 5.0, + ForgeDirection.getOrientation(i).offsetZ / 5.0) + .setPosition( + aX - 0.5 + XSTR_INSTANCE.nextFloat(), + aY - 0.5 + XSTR_INSTANCE.nextFloat(), + aZ - 0.5 + XSTR_INSTANCE.nextFloat()) + .run()); } } @@ -631,9 +615,7 @@ public class GT_MetaPipeEntity_Fluid extends MetaPipeEntity { @Override public final int fill_default(ForgeDirection aSide, FluidStack aFluid, boolean doFill) { if (aFluid == null || aFluid.getFluid() - .getID() - <= 0) - return 0; + .getID() <= 0) return 0; int index = -1; for (int i = 0; i < mPipeAmount; i++) { @@ -641,10 +623,9 @@ public class GT_MetaPipeEntity_Fluid extends MetaPipeEntity { index = i; break; } else if ((mFluids[i] == null || mFluids[i].getFluid() - .getID() - <= 0) && index < 0) { - index = i; - } + .getID() <= 0) && index < 0) { + index = i; + } } return fill_default_intoIndex(aSide, aFluid, doFill, index); @@ -653,13 +634,10 @@ public class GT_MetaPipeEntity_Fluid extends MetaPipeEntity { private int fill_default_intoIndex(ForgeDirection aSide, FluidStack aFluid, boolean doFill, int index) { if (index < 0 || index >= mPipeAmount) return 0; if (aFluid == null || aFluid.getFluid() - .getID() - <= 0) - return 0; + .getID() <= 0) return 0; if (mFluids[index] == null || mFluids[index].getFluid() - .getID() - <= 0) { + .getID() <= 0) { if (aFluid.amount * mPipeAmount <= getCapacity()) { if (doFill) { mFluids[index] = aFluid.copy(); @@ -735,25 +713,25 @@ public class GT_MetaPipeEntity_Fluid extends MetaPipeEntity { public String[] getDescription() { if (mPipeAmount == 1) { return new String[] { - EnumChatFormatting.BLUE + "Fluid Capacity: %%%" - + GT_Utility.formatNumbers(mCapacity * 20L) - + "%%% L/sec" - + EnumChatFormatting.GRAY, - EnumChatFormatting.RED + "Heat Limit: %%%" - + GT_Utility.formatNumbers(mHeatResistance) - + "%%% K" - + EnumChatFormatting.GRAY }; + EnumChatFormatting.BLUE + "Fluid Capacity: %%%" + + GT_Utility.formatNumbers(mCapacity * 20L) + + "%%% L/sec" + + EnumChatFormatting.GRAY, + EnumChatFormatting.RED + "Heat Limit: %%%" + + GT_Utility.formatNumbers(mHeatResistance) + + "%%% K" + + EnumChatFormatting.GRAY }; } else { return new String[] { - EnumChatFormatting.BLUE + "Fluid Capacity: %%%" - + GT_Utility.formatNumbers(mCapacity * 20L) - + "%%% L/sec" - + EnumChatFormatting.GRAY, - EnumChatFormatting.RED + "Heat Limit: %%%" - + GT_Utility.formatNumbers(mHeatResistance) - + "%%% K" - + EnumChatFormatting.GRAY, - EnumChatFormatting.AQUA + "Pipe Amount: %%%" + mPipeAmount + EnumChatFormatting.GRAY }; + EnumChatFormatting.BLUE + "Fluid Capacity: %%%" + + GT_Utility.formatNumbers(mCapacity * 20L) + + "%%% L/sec" + + EnumChatFormatting.GRAY, + EnumChatFormatting.RED + "Heat Limit: %%%" + + GT_Utility.formatNumbers(mHeatResistance) + + "%%% K" + + EnumChatFormatting.GRAY, + EnumChatFormatting.AQUA + "Pipe Amount: %%%" + mPipeAmount + EnumChatFormatting.GRAY }; } } @@ -826,18 +804,13 @@ public class GT_MetaPipeEntity_Fluid extends MetaPipeEntity { if ((tConn & (1 << ForgeDirection.WEST.ordinal())) != 0) tSide4 = 0f; if ((tConn & (1 << ForgeDirection.EAST.ordinal())) != 0) tSide5 = 1f; - return AxisAlignedBB.getBoundingBox( - aX + tSide4, - aY + tSide0, - aZ + tSide2, - aX + tSide5, - aY + tSide1, - aZ + tSide3); + return AxisAlignedBB + .getBoundingBox(aX + tSide4, aY + tSide0, aZ + tSide2, aX + tSide5, aY + tSide1, aZ + tSide3); } @Override public void addCollisionBoxesToList(World aWorld, int aX, int aY, int aZ, AxisAlignedBB inputAABB, - List outputAABB, Entity collider) { + List outputAABB, Entity collider) { super.addCollisionBoxesToList(aWorld, aX, aY, aZ, inputAABB, outputAABB, collider); if (GT_Mod.instance.isClientSide() && (GT_Client.hideValue & 0x2) != 0) { final AxisAlignedBB aabb = getActualCollisionBoundingBoxFromPool(aWorld, aX, aY, aZ); diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaPipeEntity_Frame.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaPipeEntity_Frame.java index 302155a186..9ccb43e733 100644 --- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaPipeEntity_Frame.java +++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaPipeEntity_Frame.java @@ -19,9 +19,8 @@ import gregtech.api.util.GT_OreDictUnificator; public class GT_MetaPipeEntity_Frame extends MetaPipeEntity { - private static final String localizedDescFormat = GT_LanguageManager.addStringLocalization( - "gt.blockmachines.gt_frame.desc.format", - "Just something you can put covers on."); + private static final String localizedDescFormat = GT_LanguageManager + .addStringLocalization("gt.blockmachines.gt_frame.desc.format", "Just something you can put covers on."); public final Materials mMaterial; public GT_MetaPipeEntity_Frame(int aID, String aName, String aNameRegional, Materials aMaterial) { @@ -31,19 +30,19 @@ public class GT_MetaPipeEntity_Frame extends MetaPipeEntity { GT_OreDictUnificator.registerOre(OrePrefixes.frameGt, aMaterial, getStackForm(1)); if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { GT_ModHandler.addCraftingRecipe( - getStackForm(2), - RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "SSS", "SwS", "SSS", 'S', OrePrefixes.stick.get(mMaterial) }); + getStackForm(2), + RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "SSS", "SwS", "SSS", 'S', OrePrefixes.stick.get(mMaterial) }); } if (!aMaterial.contains(SubTag.NO_RECIPES)) { // Auto generate frame box recipe in an assembler. RA.addAssemblerRecipe( - GT_OreDictUnificator.get(OrePrefixes.stick, aMaterial, 4), - ItemList.Circuit_Integrated.getWithDamage(0, 4), - getStackForm(1), - 64, - calculateRecipeEU(aMaterial, 7)); + GT_OreDictUnificator.get(OrePrefixes.stick, aMaterial, 4), + ItemList.Circuit_Integrated.getWithDamage(0, 4), + getStackForm(1), + 64, + calculateRecipeEU(aMaterial, 7)); } } @@ -64,10 +63,10 @@ public class GT_MetaPipeEntity_Frame extends MetaPipeEntity { @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aConnections, - byte aColorIndex, boolean aConnected, boolean aRedstone) { + byte aColorIndex, boolean aConnected, boolean aRedstone) { return new ITexture[] { TextureFactory.of( - mMaterial.mIconSet.mTextures[OrePrefixes.frameGt.mTextureIndex], - Dyes.getModulation(aColorIndex, mMaterial.mRGBa)) }; + mMaterial.mIconSet.mTextures[OrePrefixes.frameGt.mTextureIndex], + Dyes.getModulation(aColorIndex, mMaterial.mRGBa)) }; } @Override @@ -112,13 +111,13 @@ public class GT_MetaPipeEntity_Frame extends MetaPipeEntity { @Override public final boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, - ItemStack aStack) { + ItemStack aStack) { return false; } @Override public final boolean allowPullStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, - ItemStack aStack) { + ItemStack aStack) { return false; } diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaPipeEntity_Item.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaPipeEntity_Item.java index 9e55aa94c7..f69170b83e 100644 --- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaPipeEntity_Item.java +++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaPipeEntity_Item.java @@ -52,7 +52,7 @@ public class GT_MetaPipeEntity_Item extends MetaPipeEntity implements IMetaTileE private int[] cacheSides; public GT_MetaPipeEntity_Item(int aID, String aName, String aNameRegional, float aThickNess, Materials aMaterial, - int aInvSlotCount, int aStepSize, boolean aIsRestrictive, int aTickTime) { + int aInvSlotCount, int aStepSize, boolean aIsRestrictive, int aTickTime) { super(aID, aName, aNameRegional, aInvSlotCount, false); mIsRestrictive = aIsRestrictive; mThickNess = aThickNess; @@ -63,12 +63,12 @@ public class GT_MetaPipeEntity_Item extends MetaPipeEntity implements IMetaTileE } public GT_MetaPipeEntity_Item(int aID, String aName, String aNameRegional, float aThickNess, Materials aMaterial, - int aInvSlotCount, int aStepSize, boolean aIsRestrictive) { + int aInvSlotCount, int aStepSize, boolean aIsRestrictive) { this(aID, aName, aNameRegional, aThickNess, aMaterial, aInvSlotCount, aStepSize, aIsRestrictive, 20); } public GT_MetaPipeEntity_Item(String aName, float aThickNess, Materials aMaterial, int aInvSlotCount, int aStepSize, - boolean aIsRestrictive, int aTickTime) { + boolean aIsRestrictive, int aTickTime) { super(aName, aInvSlotCount); mIsRestrictive = aIsRestrictive; mThickNess = aThickNess; @@ -85,87 +85,76 @@ public class GT_MetaPipeEntity_Item extends MetaPipeEntity implements IMetaTileE @Override public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) { return new GT_MetaPipeEntity_Item( - mName, - mThickNess, - mMaterial, - mInventory.length, - mStepSize, - mIsRestrictive, - mTickTime); + mName, + mThickNess, + mMaterial, + mInventory.length, + mStepSize, + mIsRestrictive, + mTickTime); } @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aConnections, - byte aColorIndex, boolean aConnected, boolean aRedstone) { + byte aColorIndex, boolean aConnected, boolean aRedstone) { if (mIsRestrictive) { if (aConnected) { float tThickNess = getThickNess(); - if (tThickNess < 0.124F) - return new ITexture[] { - TextureFactory.of( - mMaterial.mIconSet.mTextures[OrePrefixes.pipe.mTextureIndex], - Dyes.getModulation(aColorIndex, mMaterial.mRGBa)), - TextureFactory.of(PIPE_RESTRICTOR) }; + if (tThickNess < 0.124F) return new ITexture[] { TextureFactory.of( + mMaterial.mIconSet.mTextures[OrePrefixes.pipe.mTextureIndex], + Dyes.getModulation(aColorIndex, mMaterial.mRGBa)), TextureFactory.of(PIPE_RESTRICTOR) }; if (tThickNess < 0.374F) // 0.375 - return new ITexture[] { - TextureFactory.of( - mMaterial.mIconSet.mTextures[OrePrefixes.pipeTiny.mTextureIndex], - Dyes.getModulation(aColorIndex, mMaterial.mRGBa)), - TextureFactory.of(PIPE_RESTRICTOR) }; + return new ITexture[] { TextureFactory.of( + mMaterial.mIconSet.mTextures[OrePrefixes.pipeTiny.mTextureIndex], + Dyes.getModulation(aColorIndex, mMaterial.mRGBa)), TextureFactory.of(PIPE_RESTRICTOR) }; if (tThickNess < 0.499F) // 0.500 - return new ITexture[] { - TextureFactory.of( - mMaterial.mIconSet.mTextures[OrePrefixes.pipeSmall.mTextureIndex], - Dyes.getModulation(aColorIndex, mMaterial.mRGBa)), - TextureFactory.of(PIPE_RESTRICTOR) }; + return new ITexture[] { TextureFactory.of( + mMaterial.mIconSet.mTextures[OrePrefixes.pipeSmall.mTextureIndex], + Dyes.getModulation(aColorIndex, mMaterial.mRGBa)), TextureFactory.of(PIPE_RESTRICTOR) }; if (tThickNess < 0.749F) // 0.750 - return new ITexture[] { - TextureFactory.of( - mMaterial.mIconSet.mTextures[OrePrefixes.pipeMedium.mTextureIndex], - Dyes.getModulation(aColorIndex, mMaterial.mRGBa)), - TextureFactory.of(PIPE_RESTRICTOR) }; + return new ITexture[] { TextureFactory.of( + mMaterial.mIconSet.mTextures[OrePrefixes.pipeMedium.mTextureIndex], + Dyes.getModulation(aColorIndex, mMaterial.mRGBa)), TextureFactory.of(PIPE_RESTRICTOR) }; if (tThickNess < 0.874F) // 0.825 - return new ITexture[] { - TextureFactory.of( - mMaterial.mIconSet.mTextures[OrePrefixes.pipeLarge.mTextureIndex], - Dyes.getModulation(aColorIndex, mMaterial.mRGBa)), - TextureFactory.of(PIPE_RESTRICTOR) }; - return new ITexture[] { TextureFactory.of( - mMaterial.mIconSet.mTextures[OrePrefixes.pipeHuge.mTextureIndex], + return new ITexture[] { TextureFactory.of( + mMaterial.mIconSet.mTextures[OrePrefixes.pipeLarge.mTextureIndex], Dyes.getModulation(aColorIndex, mMaterial.mRGBa)), TextureFactory.of(PIPE_RESTRICTOR) }; + return new ITexture[] { TextureFactory.of( + mMaterial.mIconSet.mTextures[OrePrefixes.pipeHuge.mTextureIndex], + Dyes.getModulation(aColorIndex, mMaterial.mRGBa)), TextureFactory.of(PIPE_RESTRICTOR) }; } return new ITexture[] { TextureFactory.of( - mMaterial.mIconSet.mTextures[OrePrefixes.pipe.mTextureIndex], - Dyes.getModulation(aColorIndex, mMaterial.mRGBa)), TextureFactory.of(PIPE_RESTRICTOR) }; + mMaterial.mIconSet.mTextures[OrePrefixes.pipe.mTextureIndex], + Dyes.getModulation(aColorIndex, mMaterial.mRGBa)), TextureFactory.of(PIPE_RESTRICTOR) }; } if (aConnected) { float tThickNess = getThickNess(); if (tThickNess < 0.124F) return new ITexture[] { TextureFactory.of( - mMaterial.mIconSet.mTextures[OrePrefixes.pipe.mTextureIndex], - Dyes.getModulation(aColorIndex, mMaterial.mRGBa)) }; + mMaterial.mIconSet.mTextures[OrePrefixes.pipe.mTextureIndex], + Dyes.getModulation(aColorIndex, mMaterial.mRGBa)) }; if (tThickNess < 0.374F) // 0.375 return new ITexture[] { TextureFactory.of( - mMaterial.mIconSet.mTextures[OrePrefixes.pipeTiny.mTextureIndex], - Dyes.getModulation(aColorIndex, mMaterial.mRGBa)) }; + mMaterial.mIconSet.mTextures[OrePrefixes.pipeTiny.mTextureIndex], + Dyes.getModulation(aColorIndex, mMaterial.mRGBa)) }; if (tThickNess < 0.499F) // 0.500 return new ITexture[] { TextureFactory.of( - mMaterial.mIconSet.mTextures[OrePrefixes.pipeSmall.mTextureIndex], - Dyes.getModulation(aColorIndex, mMaterial.mRGBa)) }; + mMaterial.mIconSet.mTextures[OrePrefixes.pipeSmall.mTextureIndex], + Dyes.getModulation(aColorIndex, mMaterial.mRGBa)) }; if (tThickNess < 0.749F) // 0.750 return new ITexture[] { TextureFactory.of( - mMaterial.mIconSet.mTextures[OrePrefixes.pipeMedium.mTextureIndex], - Dyes.getModulation(aColorIndex, mMaterial.mRGBa)) }; + mMaterial.mIconSet.mTextures[OrePrefixes.pipeMedium.mTextureIndex], + Dyes.getModulation(aColorIndex, mMaterial.mRGBa)) }; if (tThickNess < 0.874F) // 0.825 return new ITexture[] { TextureFactory.of( - mMaterial.mIconSet.mTextures[OrePrefixes.pipeLarge.mTextureIndex], - Dyes.getModulation(aColorIndex, mMaterial.mRGBa)) }; - return new ITexture[] { TextureFactory.of( - mMaterial.mIconSet.mTextures[OrePrefixes.pipeHuge.mTextureIndex], + mMaterial.mIconSet.mTextures[OrePrefixes.pipeLarge.mTextureIndex], Dyes.getModulation(aColorIndex, mMaterial.mRGBa)) }; + return new ITexture[] { TextureFactory.of( + mMaterial.mIconSet.mTextures[OrePrefixes.pipeHuge.mTextureIndex], + Dyes.getModulation(aColorIndex, mMaterial.mRGBa)) }; } return new ITexture[] { TextureFactory.of( - mMaterial.mIconSet.mTextures[OrePrefixes.pipe.mTextureIndex], - Dyes.getModulation(aColorIndex, mMaterial.mRGBa)) }; + mMaterial.mIconSet.mTextures[OrePrefixes.pipe.mTextureIndex], + Dyes.getModulation(aColorIndex, mMaterial.mRGBa)) }; } @Override @@ -228,9 +217,10 @@ public class GT_MetaPipeEntity_Item extends MetaPipeEntity implements IMetaTileE for (boolean temp = true; temp && !isInventoryEmpty() && pipeCapacityCheck();) { temp = false; tPipeList.clear(); - for (IMetaTileEntityItemPipe tTileEntity : GT_Utility.sortMapByValuesAcending( + for (IMetaTileEntityItemPipe tTileEntity : GT_Utility + .sortMapByValuesAcending( IMetaTileEntityItemPipe.Util.scanPipes(this, new HashMap<>(), 0, false, false)) - .keySet()) { + .keySet()) { if (temp) break; tPipeList.add(tTileEntity); while (!temp && !isInventoryEmpty() && tTileEntity.sendItemStack(aBaseMetaTileEntity)) @@ -247,7 +237,7 @@ public class GT_MetaPipeEntity_Item extends MetaPipeEntity implements IMetaTileE @Override public boolean onWrenchRightClick(byte aSide, byte aWrenchingSide, EntityPlayer aPlayer, float aX, float aY, - float aZ) { + float aZ) { if (GT_Mod.gregtechproxy.gt6Pipe) { final byte tSide = GT_Utility.determineWrenchingSide(aSide, aX, aY, aZ); if (isConnectedAtSide(tSide)) { @@ -263,25 +253,25 @@ public class GT_MetaPipeEntity_Item extends MetaPipeEntity implements IMetaTileE @Override public boolean letsIn(GT_CoverBehavior coverBehavior, byte aSide, int aCoverID, int aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return coverBehavior.letsItemsIn(aSide, aCoverID, aCoverVariable, -1, aTileEntity); } @Override public boolean letsOut(GT_CoverBehavior coverBehavior, byte aSide, int aCoverID, int aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return coverBehavior.letsItemsOut(aSide, aCoverID, aCoverVariable, -1, aTileEntity); } @Override public boolean letsIn(GT_CoverBehaviorBase coverBehavior, byte aSide, int aCoverID, - ISerializableObject aCoverVariable, ICoverable aTileEntity) { + ISerializableObject aCoverVariable, ICoverable aTileEntity) { return coverBehavior.letsItemsIn(aSide, aCoverID, aCoverVariable, -1, aTileEntity); } @Override public boolean letsOut(GT_CoverBehaviorBase coverBehavior, byte aSide, int aCoverID, - ISerializableObject aCoverVariable, ICoverable aTileEntity) { + ISerializableObject aCoverVariable, ICoverable aTileEntity) { return coverBehavior.letsItemsOut(aSide, aCoverID, aCoverVariable, -1, aTileEntity); } @@ -303,13 +293,12 @@ public class GT_MetaPipeEntity_Item extends MetaPipeEntity implements IMetaTileE boolean connectable = GT_Utility.isConnectableNonInventoryPipe(tTileEntity, tSide); final IGregTechTileEntity gTileEntity = (tTileEntity instanceof IGregTechTileEntity) - ? (IGregTechTileEntity) tTileEntity - : null; + ? (IGregTechTileEntity) tTileEntity + : null; if (gTileEntity != null) { if (gTileEntity.getMetaTileEntity() == null) return false; if (gTileEntity.getMetaTileEntity() - .connectsToItemPipe(tSide)) - return true; + .connectsToItemPipe(tSide)) return true; connectable = true; } @@ -346,7 +335,7 @@ public class GT_MetaPipeEntity_Item extends MetaPipeEntity implements IMetaTileE for (byte i : ALL_VALID_SIDES) { tSide = (byte) ((i + tOffset) % 6); if (isConnectedAtSide(tSide) - && (isInventoryEmpty() || (tSide != mLastReceivedFrom || aSender != getBaseMetaTileEntity()))) { + && (isInventoryEmpty() || (tSide != mLastReceivedFrom || aSender != getBaseMetaTileEntity()))) { if (insertItemStackIntoTileEntity(aSender, tSide)) return true; } } @@ -357,23 +346,23 @@ public class GT_MetaPipeEntity_Item extends MetaPipeEntity implements IMetaTileE @Override public boolean insertItemStackIntoTileEntity(Object aSender, byte aSide) { if (getBaseMetaTileEntity().getCoverInfoAtSide(aSide) - .letsItemsOut(-1)) { + .letsItemsOut(-1)) { final TileEntity tInventory = getBaseMetaTileEntity().getTileEntityAtSide(aSide); if (tInventory != null && !(tInventory instanceof BaseMetaPipeEntity)) { if ((!(tInventory instanceof TileEntityHopper) && !(tInventory instanceof TileEntityDispenser)) - || getBaseMetaTileEntity().getMetaIDAtSide(aSide) != GT_Utility.getOppositeSide(aSide)) { + || getBaseMetaTileEntity().getMetaIDAtSide(aSide) != GT_Utility.getOppositeSide(aSide)) { return GT_Utility.moveMultipleItemStacks( - aSender, - tInventory, - (byte) 6, - GT_Utility.getOppositeSide(aSide), - null, - false, - (byte) 64, - (byte) 1, - (byte) 64, - (byte) 1, - 1) > 0; + aSender, + tInventory, + (byte) 6, + GT_Utility.getOppositeSide(aSide), + null, + false, + (byte) 64, + (byte) 1, + (byte) 64, + (byte) 1, + 1) > 0; } } } @@ -443,13 +432,13 @@ public class GT_MetaPipeEntity_Item extends MetaPipeEntity implements IMetaTileE @Override public String[] getDescription() { if (mTickTime == 20) return new String[] { "Item Capacity: %%%" + getMaxPipeCapacity() + "%%% Stacks/sec", - "Routing Value: %%%" + GT_Utility.formatNumbers(mStepSize) }; + "Routing Value: %%%" + GT_Utility.formatNumbers(mStepSize) }; else if (mTickTime % 20 == 0) return new String[] { - "Item Capacity: %%%" + getMaxPipeCapacity() + "%%% Stacks/%%%" + (mTickTime / 20) + "%%% sec", - "Routing Value: %%%" + GT_Utility.formatNumbers(mStepSize) }; + "Item Capacity: %%%" + getMaxPipeCapacity() + "%%% Stacks/%%%" + (mTickTime / 20) + "%%% sec", + "Routing Value: %%%" + GT_Utility.formatNumbers(mStepSize) }; else return new String[] { - "Item Capacity: %%%" + getMaxPipeCapacity() + "%%% Stacks/%%%" + mTickTime + "%%% ticks", - "Routing Value: %%%" + GT_Utility.formatNumbers(mStepSize) }; + "Item Capacity: %%%" + getMaxPipeCapacity() + "%%% Stacks/%%%" + mTickTime + "%%% ticks", + "Routing Value: %%%" + GT_Utility.formatNumbers(mStepSize) }; } private boolean isInventoryEmpty() { @@ -512,18 +501,13 @@ public class GT_MetaPipeEntity_Item extends MetaPipeEntity implements IMetaTileE if ((tConn & (1 << ForgeDirection.WEST.ordinal())) != 0) tSide4 = 0f; if ((tConn & (1 << ForgeDirection.EAST.ordinal())) != 0) tSide5 = 1f; - return AxisAlignedBB.getBoundingBox( - aX + tSide4, - aY + tSide0, - aZ + tSide2, - aX + tSide5, - aY + tSide1, - aZ + tSide3); + return AxisAlignedBB + .getBoundingBox(aX + tSide4, aY + tSide0, aZ + tSide2, aX + tSide5, aY + tSide1, aZ + tSide3); } @Override public void addCollisionBoxesToList(World aWorld, int aX, int aY, int aZ, AxisAlignedBB inputAABB, - List outputAABB, Entity collider) { + List outputAABB, Entity collider) { super.addCollisionBoxesToList(aWorld, aX, aY, aZ, inputAABB, outputAABB, collider); if (GT_Mod.instance.isClientSide() && (GT_Client.hideValue & 0x2) != 0) { final AxisAlignedBB aabb = getActualCollisionBoundingBoxFromPool(aWorld, aX, aY, aZ); diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_BasicBatteryBuffer.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_BasicBatteryBuffer.java index bae070f6dd..ad6a730863 100644 --- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_BasicBatteryBuffer.java +++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_BasicBatteryBuffer.java @@ -39,7 +39,7 @@ import ic2.api.item.IElectricItem; * Machine */ public class GT_MetaTileEntity_BasicBatteryBuffer extends GT_MetaTileEntity_TieredMachineBlock - implements IAddUIWidgets { + implements IAddUIWidgets { public boolean mCharge = false, mDecharge = false; public int mBatteryCount = 0, mChargeableCount = 0; @@ -48,17 +48,17 @@ public class GT_MetaTileEntity_BasicBatteryBuffer extends GT_MetaTileEntity_Tier private long mMax = 0; public GT_MetaTileEntity_BasicBatteryBuffer(int aID, String aName, String aNameRegional, int aTier, - String aDescription, int aSlotCount) { + String aDescription, int aSlotCount) { super(aID, aName, aNameRegional, aTier, aSlotCount, aDescription); } public GT_MetaTileEntity_BasicBatteryBuffer(String aName, int aTier, String aDescription, ITexture[][][] aTextures, - int aSlotCount) { + int aSlotCount) { super(aName, aTier, aSlotCount, aDescription, aTextures); } public GT_MetaTileEntity_BasicBatteryBuffer(String aName, int aTier, String[] aDescription, - ITexture[][][] aTextures, int aSlotCount) { + ITexture[][][] aTextures, int aSlotCount) { super(aName, aTier, aSlotCount, aDescription, aTextures); } @@ -76,16 +76,16 @@ public class GT_MetaTileEntity_BasicBatteryBuffer extends GT_MetaTileEntity_Tier for (byte i = -1; i < 16; i++) { rTextures[0][i + 1] = new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[mTier][i + 1] }; rTextures[1][i + 1] = new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[mTier][i + 1], - mInventory.length == 16 ? Textures.BlockIcons.OVERLAYS_ENERGY_OUT_POWER[mTier] - : mInventory.length > 4 ? Textures.BlockIcons.OVERLAYS_ENERGY_OUT_MULTI[mTier] - : Textures.BlockIcons.OVERLAYS_ENERGY_OUT[mTier] }; + mInventory.length == 16 ? Textures.BlockIcons.OVERLAYS_ENERGY_OUT_POWER[mTier] + : mInventory.length > 4 ? Textures.BlockIcons.OVERLAYS_ENERGY_OUT_MULTI[mTier] + : Textures.BlockIcons.OVERLAYS_ENERGY_OUT[mTier] }; } return rTextures; } @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { return mTextures[aSide == aFacing ? 1 : 0][aColorIndex + 1]; } @@ -238,13 +238,13 @@ public class GT_MetaTileEntity_BasicBatteryBuffer extends GT_MetaTileEntity_Tier @Override public boolean allowPullStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack) { if (GT_ModHandler.isElectricItem(aStack) && aStack.getUnlocalizedName() - .startsWith("gt.metaitem.01.")) { + .startsWith("gt.metaitem.01.")) { String name = aStack.getUnlocalizedName(); if (name.equals("gt.metaitem.01.32510") || name.equals("gt.metaitem.01.32511") - || name.equals("gt.metaitem.01.32520") - || name.equals("gt.metaitem.01.32521") - || name.equals("gt.metaitem.01.32530") - || name.equals("gt.metaitem.01.32531")) { + || name.equals("gt.metaitem.01.32520") + || name.equals("gt.metaitem.01.32521") + || name.equals("gt.metaitem.01.32530") + || name.equals("gt.metaitem.01.32531")) { if (ic2.api.item.ElectricItem.manager.getCharge(aStack) == 0) { return true; } @@ -313,16 +313,15 @@ public class GT_MetaTileEntity_BasicBatteryBuffer extends GT_MetaTileEntity_Tier updateStorageInfo(); return new String[] { EnumChatFormatting.BLUE + getLocalName() + EnumChatFormatting.RESET, "Stored Items:", - EnumChatFormatting.GREEN + GT_Utility.formatNumbers(mStored) - + EnumChatFormatting.RESET - + " EU / " - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(mMax) - + EnumChatFormatting.RESET - + " EU", - "Average input:", GT_Utility.formatNumbers(getBaseMetaTileEntity().getAverageElectricInput()) + " EU/t", - "Average output:", - GT_Utility.formatNumbers(getBaseMetaTileEntity().getAverageElectricOutput()) + " EU/t" }; + EnumChatFormatting.GREEN + GT_Utility.formatNumbers(mStored) + + EnumChatFormatting.RESET + + " EU / " + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(mMax) + + EnumChatFormatting.RESET + + " EU", + "Average input:", GT_Utility.formatNumbers(getBaseMetaTileEntity().getAverageElectricInput()) + " EU/t", + "Average output:", GT_Utility.formatNumbers(getBaseMetaTileEntity().getAverageElectricOutput()) + " EU/t" }; } private void updateStorageInfo() { @@ -336,31 +335,31 @@ public class GT_MetaTileEntity_BasicBatteryBuffer extends GT_MetaTileEntity_Tier @Override public void getWailaBody(ItemStack itemStack, List currenttip, IWailaDataAccessor accessor, - IWailaConfigHandler config) { + IWailaConfigHandler config) { NBTTagCompound tag = accessor.getNBTData(); currenttip.add( - StatCollector.translateToLocalFormatted( - "GT5U.waila.energy.stored", - GT_Utility.formatNumbers(tag.getLong("mStored")), - GT_Utility.formatNumbers(tag.getLong("mMax")))); + StatCollector.translateToLocalFormatted( + "GT5U.waila.energy.stored", + GT_Utility.formatNumbers(tag.getLong("mStored")), + GT_Utility.formatNumbers(tag.getLong("mMax")))); long avgIn = tag.getLong("AvgIn"); long avgOut = tag.getLong("AvgOut"); currenttip.add( - StatCollector.translateToLocalFormatted( - "GT5U.waila.energy.avg_in", - GT_Utility.formatNumbers(avgIn), - GT_Utility.getColoredTierNameFromVoltage(avgIn))); + StatCollector.translateToLocalFormatted( + "GT5U.waila.energy.avg_in", + GT_Utility.formatNumbers(avgIn), + GT_Utility.getColoredTierNameFromVoltage(avgIn))); currenttip.add( - StatCollector.translateToLocalFormatted( - "GT5U.waila.energy.avg_out", - GT_Utility.formatNumbers(avgOut), - GT_Utility.getColoredTierNameFromVoltage(avgOut))); + StatCollector.translateToLocalFormatted( + "GT5U.waila.energy.avg_out", + GT_Utility.formatNumbers(avgOut), + GT_Utility.getColoredTierNameFromVoltage(avgOut))); super.getWailaBody(itemStack, currenttip, accessor, config); } @Override public void getWailaNBTData(EntityPlayerMP player, TileEntity tile, NBTTagCompound tag, World world, int x, int y, - int z) { + int z) { updateStorageInfo(); super.getWailaNBTData(player, tile, tag, world, x, y, z); tag.setLong("mStored", mStored); @@ -383,61 +382,61 @@ public class GT_MetaTileEntity_BasicBatteryBuffer extends GT_MetaTileEntity_Tier public void addUIWidgets(ModularWindow.Builder builder, UIBuildContext buildContext) { switch (mInventory.length) { case 4 -> builder.widget( - SlotGroup.ofItemHandler(inventoryHandler, 2) - .startFromSlot(0) - .endAtSlot(3) - .slotCreator(index -> new BaseSlot(inventoryHandler, index) { - - @Override - public int getSlotStackLimit() { - return 1; - } - }) - .background(getGUITextureSet().getItemSlot()) - .build() - .setPos(70, 25)); + SlotGroup.ofItemHandler(inventoryHandler, 2) + .startFromSlot(0) + .endAtSlot(3) + .slotCreator(index -> new BaseSlot(inventoryHandler, index) { + + @Override + public int getSlotStackLimit() { + return 1; + } + }) + .background(getGUITextureSet().getItemSlot()) + .build() + .setPos(70, 25)); case 9 -> builder.widget( - SlotGroup.ofItemHandler(inventoryHandler, 3) - .startFromSlot(0) - .endAtSlot(8) - .slotCreator(index -> new BaseSlot(inventoryHandler, index) { - - @Override - public int getSlotStackLimit() { - return 1; - } - }) - .background(getGUITextureSet().getItemSlot()) - .build() - .setPos(61, 16)); + SlotGroup.ofItemHandler(inventoryHandler, 3) + .startFromSlot(0) + .endAtSlot(8) + .slotCreator(index -> new BaseSlot(inventoryHandler, index) { + + @Override + public int getSlotStackLimit() { + return 1; + } + }) + .background(getGUITextureSet().getItemSlot()) + .build() + .setPos(61, 16)); case 16 -> builder.widget( - SlotGroup.ofItemHandler(inventoryHandler, 4) - .startFromSlot(0) - .endAtSlot(15) - .slotCreator(index -> new BaseSlot(inventoryHandler, index) { - - @Override - public int getSlotStackLimit() { - return 1; - } - }) - .background(getGUITextureSet().getItemSlot()) - .build() - .setPos(52, 7)); + SlotGroup.ofItemHandler(inventoryHandler, 4) + .startFromSlot(0) + .endAtSlot(15) + .slotCreator(index -> new BaseSlot(inventoryHandler, index) { + + @Override + public int getSlotStackLimit() { + return 1; + } + }) + .background(getGUITextureSet().getItemSlot()) + .build() + .setPos(52, 7)); default -> builder.widget( - SlotGroup.ofItemHandler(inventoryHandler, 1) - .startFromSlot(0) - .endAtSlot(0) - .slotCreator(index -> new BaseSlot(inventoryHandler, index) { - - @Override - public int getSlotStackLimit() { - return 1; - } - }) - .background(getGUITextureSet().getItemSlot()) - .build() - .setPos(79, 34)); + SlotGroup.ofItemHandler(inventoryHandler, 1) + .startFromSlot(0) + .endAtSlot(0) + .slotCreator(index -> new BaseSlot(inventoryHandler, index) { + + @Override + public int getSlotStackLimit() { + return 1; + } + }) + .background(getGUITextureSet().getItemSlot()) + .build() + .setPos(79, 34)); } } } diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_BasicGenerator.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_BasicGenerator.java index 182b25fb92..ef7242b420 100644 --- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_BasicGenerator.java +++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_BasicGenerator.java @@ -25,12 +25,12 @@ import gregtech.common.GT_Pollution; public abstract class GT_MetaTileEntity_BasicGenerator extends GT_MetaTileEntity_BasicTank { public GT_MetaTileEntity_BasicGenerator(int aID, String aName, String aNameRegional, int aTier, String aDescription, - ITexture... aTextures) { + ITexture... aTextures) { super(aID, aName, aNameRegional, aTier, 3, aDescription, aTextures); } public GT_MetaTileEntity_BasicGenerator(int aID, String aName, String aNameRegional, int aTier, - String[] aDescription, ITexture... aTextures) { + String[] aDescription, ITexture... aTextures) { super(aID, aName, aNameRegional, aTier, 3, aDescription, aTextures); } @@ -62,10 +62,9 @@ public abstract class GT_MetaTileEntity_BasicGenerator extends GT_MetaTileEntity @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { return mTextures[(aActive ? 5 : 0) + (aSide == aFacing ? 0 - : aSide == GT_Utility.getOppositeSide(aFacing) ? 1 : aSide == 0 ? 2 : aSide == 1 ? 3 : 4)][aColorIndex - + 1]; + : aSide == GT_Utility.getOppositeSide(aFacing) ? 1 : aSide == 0 ? 2 : aSide == 1 ? 3 : 4)][aColorIndex + 1]; } @Override @@ -214,21 +213,21 @@ public abstract class GT_MetaTileEntity_BasicGenerator extends GT_MetaTileEntity if (mInventory[getStackDisplaySlot()] == null) mInventory[getStackDisplaySlot()] = new ItemStack(Blocks.fire, 1); mInventory[getStackDisplaySlot()].setStackDisplayName( - "Draining internal buffer: " - + GT_Utility.formatNumbers( - aBaseMetaTileEntity.getUniversalEnergyStored() - getMinimumStoredEU()) - + " EU"); + "Draining internal buffer: " + + GT_Utility.formatNumbers( + aBaseMetaTileEntity.getUniversalEnergyStored() - getMinimumStoredEU()) + + " EU"); } } else { long tFuelValue = getFuelValue(mFluid), tConsumed = consumedFluidPerOperation(mFluid); if (tFuelValue > 0 && tConsumed > 0 && mFluid.amount >= tConsumed) { long tFluidAmountToUse = Math.min( - mFluid.amount / tConsumed, - (maxEUStore() - aBaseMetaTileEntity.getUniversalEnergyStored()) / tFuelValue); + mFluid.amount / tConsumed, + (maxEUStore() - aBaseMetaTileEntity.getUniversalEnergyStored()) / tFuelValue); // long tFluidAmountToUse = Math.min(mFluid.amount / tConsumed, (maxEUOutput() * 20 + // getMinimumStoredEU() - aBaseMetaTileEntity.getUniversalEnergyStored()) / tFuelValue);//TODO CHECK if (tFluidAmountToUse > 0 - && aBaseMetaTileEntity.increaseStoredEnergyUnits(tFluidAmountToUse * tFuelValue, true)) { + && aBaseMetaTileEntity.increaseStoredEnergyUnits(tFluidAmountToUse * tFuelValue, true)) { // divided by two because this is called every 10 ticks, not 20 GT_Pollution.addPollution(getBaseMetaTileEntity(), getPollution() / 2); mFluid.amount -= tFluidAmountToUse * tConsumed; @@ -237,9 +236,9 @@ public abstract class GT_MetaTileEntity_BasicGenerator extends GT_MetaTileEntity } if (mInventory[getInputSlot()] != null - && aBaseMetaTileEntity.getUniversalEnergyStored() < (maxEUOutput() * 20 + getMinimumStoredEU()) - && ((GT_Utility.getFluidForFilledItem(mInventory[getInputSlot()], true) != null) - || solidFuelOverride(mInventory[getInputSlot()]))) { + && aBaseMetaTileEntity.getUniversalEnergyStored() < (maxEUOutput() * 20 + getMinimumStoredEU()) + && ((GT_Utility.getFluidForFilledItem(mInventory[getInputSlot()], true) != null) + || solidFuelOverride(mInventory[getInputSlot()]))) { long tFuelValue = getFuelValue(mInventory[getInputSlot()]); if (tFuelValue <= 0) tFuelValue = getFuelValue(mInventory[getInputSlot()], true); // System.out.println(" tFuelValue : " + tFuelValue ); @@ -256,8 +255,8 @@ public abstract class GT_MetaTileEntity_BasicGenerator extends GT_MetaTileEntity } if (aBaseMetaTileEntity.isServerSide()) aBaseMetaTileEntity.setActive( - aBaseMetaTileEntity.isAllowedToWork() - && aBaseMetaTileEntity.getUniversalEnergyStored() >= maxEUOutput() + getMinimumStoredEU()); + aBaseMetaTileEntity.isAllowedToWork() + && aBaseMetaTileEntity.getUniversalEnergyStored() >= maxEUOutput() + getMinimumStoredEU()); } /** @@ -270,18 +269,18 @@ public abstract class GT_MetaTileEntity_BasicGenerator extends GT_MetaTileEntity // if it is a gregtech Item, make sure its not a VOLUMETRIC_FLASK or any type of cell, else do vanilla checks if (association != null) { return !OrePrefixes.CELL_TYPES.contains(association.mPrefix) - && !GT_Utility.areStacksEqual(ItemList.VOLUMETRIC_FLASK.get(1L), stack, true); + && !GT_Utility.areStacksEqual(ItemList.VOLUMETRIC_FLASK.get(1L), stack, true); } else { return stack != null && // when the stack is null its not a solid - stack.getItem() != null && // when the item in the stack is null its not a solid - !(stack.getItem() instanceof IFluidContainerItem) && // when the item is a fluid container its not a - // solid... - !(stack.getItem() instanceof IFluidHandler) && // when the item is a fluid handler its not a - // solid... - !stack.getItem() - .getUnlocalizedName() - .contains("bucket"); // since we cant really check for - // buckets... + stack.getItem() != null && // when the item in the stack is null its not a solid + !(stack.getItem() instanceof IFluidContainerItem) && // when the item is a fluid container its not a + // solid... + !(stack.getItem() instanceof IFluidHandler) && // when the item is a fluid handler its not a + // solid... + !stack.getItem() + .getUnlocalizedName() + .contains("bucket"); // since we cant really check for + // buckets... } } @@ -333,7 +332,7 @@ public abstract class GT_MetaTileEntity_BasicGenerator extends GT_MetaTileEntity @Override public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack) { return super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack) && (getFuelValue(aStack, true) > 0 - || getFuelValue(GT_Utility.getFluidForFilledItem(aStack, true), true) > 0); + || getFuelValue(GT_Utility.getFluidForFilledItem(aStack, true), true) > 0); } @Override diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_BasicHull.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_BasicHull.java index cb9c670f05..ff1365a735 100644 --- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_BasicHull.java +++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_BasicHull.java @@ -13,22 +13,22 @@ import gregtech.api.interfaces.tileentity.IGregTechTileEntity; public class GT_MetaTileEntity_BasicHull extends GT_MetaTileEntity_BasicTank { public GT_MetaTileEntity_BasicHull(int aID, String aName, String aNameRegional, int aTier, String aDescription, - ITexture... aTextures) { + ITexture... aTextures) { super(aID, aName, aNameRegional, aTier, 1, aDescription, aTextures); } public GT_MetaTileEntity_BasicHull(int aID, String aName, String aNameRegional, int aTier, int aInvSlotCount, - String aDescription, ITexture... aTextures) { + String aDescription, ITexture... aTextures) { super(aID, aName, aNameRegional, aTier, aInvSlotCount, aDescription, aTextures); } public GT_MetaTileEntity_BasicHull(String aName, int aTier, int aInvSlotCount, String aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, aInvSlotCount, aDescription, aTextures); } public GT_MetaTileEntity_BasicHull(String aName, int aTier, int aInvSlotCount, String[] aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, aInvSlotCount, aDescription, aTextures); } @@ -114,7 +114,7 @@ public class GT_MetaTileEntity_BasicHull extends GT_MetaTileEntity_BasicTank { @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aConnected, boolean aRedstone) { + boolean aConnected, boolean aRedstone) { return mTextures[Math.min(2, aSide) + (aSide == aFacing ? 3 : 0)][aColorIndex + 1]; } @@ -126,11 +126,11 @@ public class GT_MetaTileEntity_BasicHull extends GT_MetaTileEntity_BasicTank { rTextures[1][i + 1] = new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[mTier][i + 1] }; rTextures[2][i + 1] = new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[mTier][i + 1] }; rTextures[3][i + 1] = new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[mTier][i + 1], - Textures.BlockIcons.OVERLAYS_ENERGY_OUT[mTier] }; + Textures.BlockIcons.OVERLAYS_ENERGY_OUT[mTier] }; rTextures[4][i + 1] = new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[mTier][i + 1], - Textures.BlockIcons.OVERLAYS_ENERGY_OUT[mTier] }; + Textures.BlockIcons.OVERLAYS_ENERGY_OUT[mTier] }; rTextures[5][i + 1] = new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[mTier][i + 1], - Textures.BlockIcons.OVERLAYS_ENERGY_OUT[mTier] }; + Textures.BlockIcons.OVERLAYS_ENERGY_OUT[mTier] }; } return rTextures; } diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_BasicHull_NonElectric.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_BasicHull_NonElectric.java index 1296d846af..c9b66e6baf 100644 --- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_BasicHull_NonElectric.java +++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_BasicHull_NonElectric.java @@ -6,23 +6,23 @@ import gregtech.api.interfaces.tileentity.IGregTechTileEntity; public abstract class GT_MetaTileEntity_BasicHull_NonElectric extends GT_MetaTileEntity_BasicHull { public GT_MetaTileEntity_BasicHull_NonElectric(int aID, String aName, String aNameRegional, int aTier, - String aDescription) { + String aDescription) { super(aID, aName, aNameRegional, aTier, aDescription); } public GT_MetaTileEntity_BasicHull_NonElectric(String aName, int aTier, String aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, 1, aDescription, aTextures); } public GT_MetaTileEntity_BasicHull_NonElectric(String aName, int aTier, String[] aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, 1, aDescription, aTextures); } @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aConnections, - byte aColorIndex, boolean aConnected, boolean aRedstone) { + byte aColorIndex, boolean aConnected, boolean aRedstone) { return mTextures[Math.min(2, aSide)][aColorIndex + 1]; } diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_BasicMachine.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_BasicMachine.java index 49b76b1579..4868200bf1 100644 --- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_BasicMachine.java +++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_BasicMachine.java @@ -87,19 +87,19 @@ import gregtech.common.tileentities.machines.multi.GT_MetaTileEntity_Cleanroom; * Machine */ public abstract class GT_MetaTileEntity_BasicMachine extends GT_MetaTileEntity_BasicTank - implements IConfigurationCircuitSupport, IAddGregtechLogo, IAddUIWidgets { + implements IConfigurationCircuitSupport, IAddGregtechLogo, IAddUIWidgets { /** * return values for checkRecipe() */ protected static final int DID_NOT_FIND_RECIPE = 0, FOUND_RECIPE_BUT_DID_NOT_MEET_REQUIREMENTS = 1, - FOUND_AND_SUCCESSFULLY_USED_RECIPE = 2; + FOUND_AND_SUCCESSFULLY_USED_RECIPE = 2; public static final int OTHER_SLOT_COUNT = 5; public final ItemStack[] mOutputItems; public final int mInputSlotCount, mAmperage; public boolean mAllowInputFromOutputSide = false, mFluidTransfer = false, mItemTransfer = false, - mHasBeenUpdated = false, mStuttering = false, mCharge = false, mDecharge = false; + mHasBeenUpdated = false, mStuttering = false, mCharge = false, mDecharge = false; public boolean mDisableFilter = true; public boolean mDisableMultiStack = true; public int mMainFacing = -1, mProgresstime = 0, mMaxProgresstime = 0, mEUt = 0, mOutputBlocked = 0; @@ -124,16 +124,16 @@ public abstract class GT_MetaTileEntity_BasicMachine extends GT_MetaTileEntity_B * SideFacingPipeInactive */ public GT_MetaTileEntity_BasicMachine(int aID, String aName, String aNameRegional, int aTier, int aAmperage, - String aDescription, int aInputSlotCount, int aOutputSlotCount, String aGUIName, String aNEIName, - ITexture... aOverlays) { + String aDescription, int aInputSlotCount, int aOutputSlotCount, String aGUIName, String aNEIName, + ITexture... aOverlays) { super( - aID, - aName, - aNameRegional, - aTier, - OTHER_SLOT_COUNT + aInputSlotCount + aOutputSlotCount + 1, - aDescription, - aOverlays); + aID, + aName, + aNameRegional, + aTier, + OTHER_SLOT_COUNT + aInputSlotCount + aOutputSlotCount + 1, + aDescription, + aOverlays); mInputSlotCount = Math.max(0, aInputSlotCount); mOutputItems = new ItemStack[Math.max(0, aOutputSlotCount)]; mAmperage = aAmperage; @@ -143,16 +143,16 @@ public abstract class GT_MetaTileEntity_BasicMachine extends GT_MetaTileEntity_B } public GT_MetaTileEntity_BasicMachine(int aID, String aName, String aNameRegional, int aTier, int aAmperage, - String[] aDescription, int aInputSlotCount, int aOutputSlotCount, String aGUIName, String aNEIName, - ITexture... aOverlays) { + String[] aDescription, int aInputSlotCount, int aOutputSlotCount, String aGUIName, String aNEIName, + ITexture... aOverlays) { super( - aID, - aName, - aNameRegional, - aTier, - OTHER_SLOT_COUNT + aInputSlotCount + aOutputSlotCount + 1, - aDescription, - aOverlays); + aID, + aName, + aNameRegional, + aTier, + OTHER_SLOT_COUNT + aInputSlotCount + aOutputSlotCount + 1, + aDescription, + aOverlays); mInputSlotCount = Math.max(0, aInputSlotCount); mOutputItems = new ItemStack[Math.max(0, aOutputSlotCount)]; mAmperage = aAmperage; @@ -162,7 +162,7 @@ public abstract class GT_MetaTileEntity_BasicMachine extends GT_MetaTileEntity_B } public GT_MetaTileEntity_BasicMachine(String aName, int aTier, int aAmperage, String aDescription, - ITexture[][][] aTextures, int aInputSlotCount, int aOutputSlotCount, String aGUIName, String aNEIName) { + ITexture[][][] aTextures, int aInputSlotCount, int aOutputSlotCount, String aGUIName, String aNEIName) { super(aName, aTier, OTHER_SLOT_COUNT + aInputSlotCount + aOutputSlotCount + 1, aDescription, aTextures); mInputSlotCount = Math.max(0, aInputSlotCount); mOutputItems = new ItemStack[Math.max(0, aOutputSlotCount)]; @@ -173,7 +173,7 @@ public abstract class GT_MetaTileEntity_BasicMachine extends GT_MetaTileEntity_B } public GT_MetaTileEntity_BasicMachine(String aName, int aTier, int aAmperage, String[] aDescription, - ITexture[][][] aTextures, int aInputSlotCount, int aOutputSlotCount, String aGUIName, String aNEIName) { + ITexture[][][] aTextures, int aInputSlotCount, int aOutputSlotCount, String aGUIName, String aNEIName) { super(aName, aTier, OTHER_SLOT_COUNT + aInputSlotCount + aOutputSlotCount + 1, aDescription, aTextures); mInputSlotCount = Math.max(0, aInputSlotCount); mOutputItems = new ItemStack[Math.max(0, aOutputSlotCount)]; @@ -236,7 +236,7 @@ public abstract class GT_MetaTileEntity_BasicMachine extends GT_MetaTileEntity_B @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { final int textureIndex; if (mMainFacing < 2) { if (aSide == aFacing) { @@ -293,8 +293,8 @@ public abstract class GT_MetaTileEntity_BasicMachine extends GT_MetaTileEntity_B @Override public boolean isValidSlot(int aIndex) { return aIndex > 0 && super.isValidSlot(aIndex) - && aIndex != getCircuitSlot() - && aIndex != OTHER_SLOT_COUNT + mInputSlotCount + mOutputItems.length; + && aIndex != getCircuitSlot() + && aIndex != OTHER_SLOT_COUNT + mInputSlotCount + mOutputItems.length; } @Override @@ -514,20 +514,20 @@ public abstract class GT_MetaTileEntity_BasicMachine extends GT_MetaTileEntity_B @Override public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity) { return new GT_GUIContainer_BasicMachine( - aPlayerInventory, - aBaseMetaTileEntity, - getLocalName(), - mGUIName, - GT_Utility.isStringValid(mNEIName) ? mNEIName - : getRecipeList() != null ? getRecipeList().mUnlocalizedName : ""); + aPlayerInventory, + aBaseMetaTileEntity, + getLocalName(), + mGUIName, + GT_Utility.isStringValid(mNEIName) ? mNEIName + : getRecipeList() != null ? getRecipeList().mUnlocalizedName : ""); } @Override public void initDefaultModes(NBTTagCompound aNBT) { mMainFacing = -1; if (!getBaseMetaTileEntity().getWorld().isRemote) { - GT_ClientPreference tPreference = GT_Mod.gregtechproxy.getClientPreference( - getBaseMetaTileEntity().getOwnerUuid()); + GT_ClientPreference tPreference = GT_Mod.gregtechproxy + .getClientPreference(getBaseMetaTileEntity().getOwnerUuid()); if (tPreference != null) { mDisableFilter = !tPreference.isSingleBlockInitialFilterEnabled(); mDisableMultiStack = !tPreference.isSingleBlockInitialMultiStackEnabled(); @@ -592,9 +592,8 @@ public abstract class GT_MetaTileEntity_BasicMachine extends GT_MetaTileEntity_B if (mProgresstime < 0 || drainEnergyForProcess(mEUt)) { if (++mProgresstime >= mMaxProgresstime) { for (int i = 0; i < mOutputItems.length; i++) - for (int j = 0; j < mOutputItems.length; j++) if (aBaseMetaTileEntity.addStackToSlot( - getOutputSlot() + ((j + i) % mOutputItems.length), - mOutputItems[i])) + for (int j = 0; j < mOutputItems.length; j++) if (aBaseMetaTileEntity + .addStackToSlot(getOutputSlot() + ((j + i) % mOutputItems.length), mOutputItems[i])) break; if (mOutputFluid != null) if (getDrainableStack() == null) setDrainableStack(mOutputFluid.copy()); @@ -629,47 +628,45 @@ public abstract class GT_MetaTileEntity_BasicMachine extends GT_MetaTileEntity_B boolean tRemovedOutputFluid = false; if (doesAutoOutputFluids() && getDrainableStack() != null - && aBaseMetaTileEntity.getFrontFacing() != mMainFacing - && (tSucceeded || aTick % 20 == 0)) { + && aBaseMetaTileEntity.getFrontFacing() != mMainFacing + && (tSucceeded || aTick % 20 == 0)) { IFluidHandler tTank = aBaseMetaTileEntity.getITankContainerAtSide(aBaseMetaTileEntity.getFrontFacing()); if (tTank != null) { FluidStack tDrained = drain(1000, false); if (tDrained != null) { - int tFilledAmount = tTank.fill( - ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()), - tDrained, - false); + int tFilledAmount = tTank + .fill(ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()), tDrained, false); if (tFilledAmount > 0) tTank.fill( - ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()), - drain(tFilledAmount, true), - true); + ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()), + drain(tFilledAmount, true), + true); } } if (getDrainableStack() == null) tRemovedOutputFluid = true; } if (doesAutoOutput() && !isOutputEmpty() - && aBaseMetaTileEntity.getFrontFacing() != mMainFacing - && (tSucceeded || mOutputBlocked % 300 == 1 - || aBaseMetaTileEntity.hasInventoryBeenModified() - || aTick % 600 == 0)) { + && aBaseMetaTileEntity.getFrontFacing() != mMainFacing + && (tSucceeded || mOutputBlocked % 300 == 1 + || aBaseMetaTileEntity.hasInventoryBeenModified() + || aTick % 600 == 0)) { TileEntity tTileEntity2 = aBaseMetaTileEntity.getTileEntityAtSide(aBaseMetaTileEntity.getFrontFacing()); long tStoredEnergy = aBaseMetaTileEntity.getUniversalEnergyStored(); int tMaxStacks = (int) (tStoredEnergy / 64L); if (tMaxStacks > mOutputItems.length) tMaxStacks = mOutputItems.length; moveMultipleItemStacks( - aBaseMetaTileEntity, - tTileEntity2, - aBaseMetaTileEntity.getFrontFacing(), - aBaseMetaTileEntity.getBackFacing(), - null, - false, - (byte) 64, - (byte) 1, - (byte) 64, - (byte) 1, - tMaxStacks); + aBaseMetaTileEntity, + tTileEntity2, + aBaseMetaTileEntity.getFrontFacing(), + aBaseMetaTileEntity.getBackFacing(), + null, + false, + (byte) 64, + (byte) 1, + (byte) 64, + (byte) 1, + tMaxStacks); // for (int i = 0, tCosts = 1; i < mOutputItems.length && tCosts > 0 && // aBaseMetaTileEntity.isUniversalEnergyStored(128); i++) { // tCosts = GT_Utility.moveOneItemStack(aBaseMetaTileEntity, tTileEntity2, @@ -684,11 +681,11 @@ public abstract class GT_MetaTileEntity_BasicMachine extends GT_MetaTileEntity_B if (allowToCheckRecipe()) { if (mMaxProgresstime <= 0 && aBaseMetaTileEntity.isAllowedToWork() - && (tRemovedOutputFluid || tSucceeded - || aBaseMetaTileEntity.hasInventoryBeenModified() - || aTick % 600 == 0 - || aBaseMetaTileEntity.hasWorkJustBeenEnabled()) - && hasEnoughEnergyToCheckRecipe()) { + && (tRemovedOutputFluid || tSucceeded + || aBaseMetaTileEntity.hasInventoryBeenModified() + || aTick % 600 == 0 + || aBaseMetaTileEntity.hasWorkJustBeenEnabled()) + && hasEnoughEnergyToCheckRecipe()) { if (checkRecipe() == FOUND_AND_SUCCESSFULLY_USED_RECIPE) { if (getSpecialSlot() != null && getSpecialSlot().stackSize <= 0) mInventory[getSpecialSlotIndex()] = null; @@ -755,10 +752,8 @@ public abstract class GT_MetaTileEntity_BasicMachine extends GT_MetaTileEntity_B if (ItemList.Display_Fluid.isStackEqual(mInventory[tDisplayStackSlot], true, true)) mInventory[tDisplayStackSlot] = null; } else { - mInventory[tDisplayStackSlot] = GT_Utility.getFluidDisplayStack( - getFillableStack(), - true, - !displaysStackSize()); + mInventory[tDisplayStackSlot] = GT_Utility + .getFluidDisplayStack(getFillableStack(), true, !displaysStackSize()); } } } @@ -803,7 +798,7 @@ public abstract class GT_MetaTileEntity_BasicMachine extends GT_MetaTileEntity_B protected boolean canOutput(GT_Recipe aRecipe) { return aRecipe != null && (aRecipe.mNeedsEmptyOutput ? isOutputEmpty() && getDrainableStack() == null - : canOutput(aRecipe.getFluidOutput(0)) && canOutput(aRecipe.mOutputs)); + : canOutput(aRecipe.getFluidOutput(0)) && canOutput(aRecipe.mOutputs)); } protected boolean canOutput(ItemStack... aOutputs) { @@ -811,11 +806,11 @@ public abstract class GT_MetaTileEntity_BasicMachine extends GT_MetaTileEntity_B ItemStack[] tOutputSlots = getAllOutputs(); for (int i = 0; i < tOutputSlots.length && i < aOutputs.length; i++) if (tOutputSlots[i] != null && aOutputs[i] != null - && (!GT_Utility.areStacksEqual(tOutputSlots[i], aOutputs[i], false) - || tOutputSlots[i].stackSize + aOutputs[i].stackSize > tOutputSlots[i].getMaxStackSize())) { - mOutputBlocked++; - return false; - } + && (!GT_Utility.areStacksEqual(tOutputSlots[i], aOutputs[i], false) + || tOutputSlots[i].stackSize + aOutputs[i].stackSize > tOutputSlots[i].getMaxStackSize())) { + mOutputBlocked++; + return false; + } return true; } @@ -929,29 +924,29 @@ public abstract class GT_MetaTileEntity_BasicMachine extends GT_MetaTileEntity_B @Override public String[] getInfoData() { return new String[] { EnumChatFormatting.BLUE + mNEIName + EnumChatFormatting.RESET, "Progress:", - EnumChatFormatting.GREEN + GT_Utility.formatNumbers((mProgresstime / 20)) - + EnumChatFormatting.RESET - + " s / " - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(mMaxProgresstime / 20) - + EnumChatFormatting.RESET - + " s", - "Stored Energy:", - EnumChatFormatting.GREEN + GT_Utility.formatNumbers(getBaseMetaTileEntity().getStoredEU()) - + EnumChatFormatting.RESET - + " EU / " - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(getBaseMetaTileEntity().getEUCapacity()) - + EnumChatFormatting.RESET - + " EU", - "Probably uses: " + EnumChatFormatting.RED - + GT_Utility.formatNumbers(mEUt) - + EnumChatFormatting.RESET - + " EU/t at " - + EnumChatFormatting.RED - + GT_Utility.formatNumbers(mEUt == 0 ? 0 : mAmperage) - + EnumChatFormatting.RESET - + " A" }; + EnumChatFormatting.GREEN + GT_Utility.formatNumbers((mProgresstime / 20)) + + EnumChatFormatting.RESET + + " s / " + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(mMaxProgresstime / 20) + + EnumChatFormatting.RESET + + " s", + "Stored Energy:", + EnumChatFormatting.GREEN + GT_Utility.formatNumbers(getBaseMetaTileEntity().getStoredEU()) + + EnumChatFormatting.RESET + + " EU / " + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(getBaseMetaTileEntity().getEUCapacity()) + + EnumChatFormatting.RESET + + " EU", + "Probably uses: " + EnumChatFormatting.RED + + GT_Utility.formatNumbers(mEUt) + + EnumChatFormatting.RESET + + " EU/t at " + + EnumChatFormatting.RED + + GT_Utility.formatNumbers(mEUt == 0 ? 0 : mAmperage) + + EnumChatFormatting.RESET + + " A" }; } @Override @@ -965,29 +960,29 @@ public abstract class GT_MetaTileEntity_BasicMachine extends GT_MetaTileEntity_B if (aPlayer.isSneaking()) { mDisableFilter = !mDisableFilter; GT_Utility.sendChatToPlayer( - aPlayer, - StatCollector.translateToLocal("GT5U.hatch.disableFilter." + mDisableFilter)); + aPlayer, + StatCollector.translateToLocal("GT5U.hatch.disableFilter." + mDisableFilter)); } else { mAllowInputFromOutputSide = !mAllowInputFromOutputSide; GT_Utility.sendChatToPlayer( - aPlayer, - mAllowInputFromOutputSide ? GT_Utility.trans("095", "Input from Output Side allowed") - : GT_Utility.trans("096", "Input from Output Side forbidden")); + aPlayer, + mAllowInputFromOutputSide ? GT_Utility.trans("095", "Input from Output Side allowed") + : GT_Utility.trans("096", "Input from Output Side forbidden")); } } } @Override public boolean onSolderingToolRightClick(byte aSide, byte aWrenchingSide, EntityPlayer aPlayer, float aX, float aY, - float aZ) { + float aZ) { if (!aPlayer.isSneaking()) return false; boolean click = super.onSolderingToolRightClick(aSide, aWrenchingSide, aPlayer, aX, aY, aZ); if (click) return true; if (aWrenchingSide != mMainFacing) return false; mDisableMultiStack = !mDisableMultiStack; GT_Utility.sendChatToPlayer( - aPlayer, - StatCollector.translateToLocal("GT5U.hatch.disableMultiStack." + mDisableMultiStack)); + aPlayer, + StatCollector.translateToLocal("GT5U.hatch.disableMultiStack." + mDisableMultiStack)); return true; } @@ -996,10 +991,10 @@ public abstract class GT_MetaTileEntity_BasicMachine extends GT_MetaTileEntity_B if (aSide != mMainFacing) return true; GT_CoverBehaviorBase tBehavior = GregTech_API.getCoverBehaviorNew(aCoverID.toStack()); return tBehavior.isGUIClickable( - aSide, - GT_Utility.stackToInt(aCoverID.toStack()), - tBehavior.createDataObject(), - getBaseMetaTileEntity()); + aSide, + GT_Utility.stackToInt(aCoverID.toStack()), + tBehavior.createDataObject(), + getBaseMetaTileEntity()); } @Override @@ -1010,9 +1005,8 @@ public abstract class GT_MetaTileEntity_BasicMachine extends GT_MetaTileEntity_B @Override public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack) { if (aSide == mMainFacing || aIndex < getInputSlot() - || aIndex >= getInputSlot() + mInputSlotCount - || (!mAllowInputFromOutputSide && aSide == aBaseMetaTileEntity.getFrontFacing())) - return false; + || aIndex >= getInputSlot() + mInputSlotCount + || (!mAllowInputFromOutputSide && aSide == aBaseMetaTileEntity.getFrontFacing())) return false; for (int i = getInputSlot(), j = i + mInputSlotCount; i < j; i++) if (GT_Utility.areStacksEqual(GT_OreDictUnificator.get(aStack), mInventory[i]) && mDisableMultiStack) return i == aIndex; @@ -1025,7 +1019,7 @@ public abstract class GT_MetaTileEntity_BasicMachine extends GT_MetaTileEntity_B * check for it anyway. */ protected boolean allowPutStackValidated(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, - ItemStack aStack) { + ItemStack aStack) { return !mDisableMultiStack || mInventory[aIndex] == null; } @@ -1085,25 +1079,25 @@ public abstract class GT_MetaTileEntity_BasicMachine extends GT_MetaTileEntity_B public static boolean isValidForLowGravity(GT_Recipe tRecipe, int dimId) { return // TODO check or get a better solution DimensionManager.getProvider(dimId) - .getClass() - .getName() - .contains("Orbit") - || DimensionManager.getProvider(dimId) - .getClass() - .getName() - .endsWith("Space") - || DimensionManager.getProvider(dimId) - .getClass() - .getName() - .endsWith("Asteroids") - || DimensionManager.getProvider(dimId) - .getClass() - .getName() - .endsWith("SS") - || DimensionManager.getProvider(dimId) - .getClass() - .getName() - .contains("SpaceStation"); + .getClass() + .getName() + .contains("Orbit") + || DimensionManager.getProvider(dimId) + .getClass() + .getName() + .endsWith("Space") + || DimensionManager.getProvider(dimId) + .getClass() + .getName() + .endsWith("Asteroids") + || DimensionManager.getProvider(dimId) + .getClass() + .getName() + .endsWith("SS") + || DimensionManager.getProvider(dimId) + .getClass() + .getName() + .contains("SpaceStation"); } /** @@ -1116,17 +1110,17 @@ public abstract class GT_MetaTileEntity_BasicMachine extends GT_MetaTileEntity_B GT_Recipe_Map tMap = getRecipeList(); if (tMap == null) return DID_NOT_FIND_RECIPE; GT_Recipe tRecipe = tMap.findRecipe( - getBaseMetaTileEntity(), - mLastRecipe, - false, - V[mTier], - new FluidStack[] { getFillableStack() }, - getSpecialSlot(), - getAllInputs()); + getBaseMetaTileEntity(), + mLastRecipe, + false, + V[mTier], + new FluidStack[] { getFillableStack() }, + getSpecialSlot(), + getAllInputs()); if (tRecipe == null) return DID_NOT_FIND_RECIPE; if (GT_Mod.gregtechproxy.mLowGravProcessing && (tRecipe.mSpecialValue == -100 || tRecipe.mSpecialValue == -300) - && !isValidForLowGravity(tRecipe, getBaseMetaTileEntity().getWorld().provider.dimensionId)) + && !isValidForLowGravity(tRecipe, getBaseMetaTileEntity().getWorld().provider.dimensionId)) return FOUND_RECIPE_BUT_DID_NOT_MEET_REQUIREMENTS; if (tRecipe.mCanBeBuffered) mLastRecipe = tRecipe; if (!canOutput(tRecipe)) { @@ -1134,8 +1128,8 @@ public abstract class GT_MetaTileEntity_BasicMachine extends GT_MetaTileEntity_B return FOUND_RECIPE_BUT_DID_NOT_MEET_REQUIREMENTS; } if (tRecipe.mSpecialValue == -200 - && (getCallbackBase() == null || !(getCallbackBase() instanceof GT_MetaTileEntity_Cleanroom) - || ((GT_MetaTileEntity_Cleanroom) getCallbackBase()).mEfficiency == 0)) + && (getCallbackBase() == null || !(getCallbackBase() instanceof GT_MetaTileEntity_Cleanroom) + || ((GT_MetaTileEntity_Cleanroom) getCallbackBase()).mEfficiency == 0)) return FOUND_RECIPE_BUT_DID_NOT_MEET_REQUIREMENTS; if (!tRecipe.isRecipeInputEqual(true, new FluidStack[] { getFillableStack() }, getAllInputs())) return FOUND_RECIPE_BUT_DID_NOT_MEET_REQUIREMENTS; @@ -1145,14 +1139,14 @@ public abstract class GT_MetaTileEntity_BasicMachine extends GT_MetaTileEntity_B if (tRecipe.mSpecialValue == -200 || tRecipe.mSpecialValue == -300) for (int i = 0; i < mOutputItems.length; i++) if (mOutputItems[i] != null && getBaseMetaTileEntity().getRandomNumber(10000) - > ((GT_MetaTileEntity_Cleanroom) getCallbackBase()).mEfficiency) { - if (debugCleanroom) { - GT_Log.out.println( - "BasicMachine: Voiding output due to efficiency failure. mEfficiency = " - + ((GT_MetaTileEntity_Cleanroom) getCallbackBase()).mEfficiency); - } - mOutputItems[i] = null; + > ((GT_MetaTileEntity_Cleanroom) getCallbackBase()).mEfficiency) { + if (debugCleanroom) { + GT_Log.out.println( + "BasicMachine: Voiding output due to efficiency failure. mEfficiency = " + + ((GT_MetaTileEntity_Cleanroom) getCallbackBase()).mEfficiency); } + mOutputItems[i] = null; + } mOutputFluid = tRecipe.getFluidOutput(0); if (!skipOC) { calculateOverclockedNess(tRecipe); @@ -1221,7 +1215,7 @@ public abstract class GT_MetaTileEntity_BasicMachine extends GT_MetaTileEntity_B @Override public void getWailaBody(ItemStack itemStack, List currenttip, IWailaDataAccessor accessor, - IWailaConfigHandler config) { + IWailaConfigHandler config) { final NBTTagCompound tag = accessor.getNBTData(); if (tag.getBoolean("stutteringSingleBlock")) { @@ -1232,41 +1226,41 @@ public abstract class GT_MetaTileEntity_BasicMachine extends GT_MetaTileEntity_B int mEUt = tag.getInteger("eut"); if (mEUt > 0) { currenttip.add( - StatCollector.translateToLocalFormatted( - "GT5U.waila.energy.use", - GT_Utility.formatNumbers(mEUt), - GT_Utility.getColoredTierNameFromVoltage(mEUt))); + StatCollector.translateToLocalFormatted( + "GT5U.waila.energy.use", + GT_Utility.formatNumbers(mEUt), + GT_Utility.getColoredTierNameFromVoltage(mEUt))); } else if (mEUt < 0) { currenttip.add( - StatCollector.translateToLocalFormatted( - "GT5U.waila.energy.produce", - GT_Utility.formatNumbers(-mEUt), - GT_Utility.getColoredTierNameFromVoltage(-mEUt))); + StatCollector.translateToLocalFormatted( + "GT5U.waila.energy.produce", + GT_Utility.formatNumbers(-mEUt), + GT_Utility.getColoredTierNameFromVoltage(-mEUt))); } } currenttip.add( - GT_Waila.getMachineProgressString( - isActive, - tag.getInteger("maxProgressSingleBlock"), - tag.getInteger("progressSingleBlock"))); + GT_Waila.getMachineProgressString( + isActive, + tag.getInteger("maxProgressSingleBlock"), + tag.getInteger("progressSingleBlock"))); } currenttip.add( - String.format( - "Machine Facing: %s", - ForgeDirection.getOrientation(tag.getInteger("mainFacingSingleBlock")) - .name())); + String.format( + "Machine Facing: %s", + ForgeDirection.getOrientation(tag.getInteger("mainFacingSingleBlock")) + .name())); currenttip.add( - String.format( - "Output Facing: %s", - ForgeDirection.getOrientation(tag.getInteger("outputFacingSingleBlock")) - .name())); + String.format( + "Output Facing: %s", + ForgeDirection.getOrientation(tag.getInteger("outputFacingSingleBlock")) + .name())); } @Override public void getWailaNBTData(EntityPlayerMP player, TileEntity tile, NBTTagCompound tag, World world, int x, int y, - int z) { + int z) { super.getWailaNBTData(player, tile, tag, world, x, y, z); tag.setInteger("progressSingleBlock", mProgresstime); @@ -1310,9 +1304,9 @@ public abstract class GT_MetaTileEntity_BasicMachine extends GT_MetaTileEntity_B getRecipeList().addGregTechLogoUI(builder, new Pos2d(0, 0)); } else { builder.widget( - new DrawableWidget().setDrawable(getGUITextureSet().getGregTechLogo()) - .setSize(17, 17) - .setPos(152, 63)); + new DrawableWidget().setDrawable(getGUITextureSet().getGregTechLogo()) + .setSize(17, 17) + .setPos(152, 63)); } } @@ -1328,22 +1322,21 @@ public abstract class GT_MetaTileEntity_BasicMachine extends GT_MetaTileEntity_B builder.widget(createChargerSlot(79, 62)); if (getRecipeList() != null) { builder.widget( - setNEITransferRect( - createProgressBar( - isSteampowered() ? getRecipeList().getProgressBarTextureSteam(getSteamVariant()) - : getRecipeList().getProgressBarTexture(), - getRecipeList().getProgressBarImageSize(), - getRecipeList().progressBarDirection, - getRecipeList().progressBarPos, - getRecipeList().progressBarSize), - getRecipeList().mNEIName)); + setNEITransferRect( + createProgressBar( + isSteampowered() ? getRecipeList().getProgressBarTextureSteam(getSteamVariant()) + : getRecipeList().getProgressBarTexture(), + getRecipeList().getProgressBarImageSize(), + getRecipeList().progressBarDirection, + getRecipeList().progressBarPos, + getRecipeList().progressBarSize), + getRecipeList().mNEIName)); addProgressBarSpecialTextures(builder); } builder.widget( - createErrorStatusArea( - builder, - isSteampowered() ? GT_UITextures.PICTURE_STALLED_STEAM - : GT_UITextures.PICTURE_STALLED_ELECTRICITY)); + createErrorStatusArea( + builder, + isSteampowered() ? GT_UITextures.PICTURE_STALLED_STEAM : GT_UITextures.PICTURE_STALLED_ELECTRICITY)); } /** @@ -1351,23 +1344,23 @@ public abstract class GT_MetaTileEntity_BasicMachine extends GT_MetaTileEntity_B */ protected void addIOSlots(ModularWindow.Builder builder) { final boolean hasFluidInput = getRecipeList() != null ? (getRecipeList().hasFluidInputs()) - : (getCapacity() != 0); + : (getCapacity() != 0); final boolean hasFluidOutput = getRecipeList() != null && getRecipeList().hasFluidOutputs(); UIHelper.forEachSlots( - (i, backgrounds, pos) -> builder.widget(createItemInputSlot(i, backgrounds, pos)), - (i, backgrounds, pos) -> builder.widget(createItemOutputSlot(i, backgrounds, pos)), - (i, backgrounds, pos) -> builder.widget(createSpecialSlot(backgrounds, pos)), - (i, backgrounds, pos) -> builder.widget(createFluidInputSlot(backgrounds, pos)), - (i, backgrounds, pos) -> builder.widget(createFluidOutputSlot(backgrounds, pos)), - getGUITextureSet().getItemSlot(), - getGUITextureSet().getFluidSlot(), - getRecipeList(), - mInputSlotCount, - mOutputItems.length, - hasFluidInput ? 1 : 0, - hasFluidOutput ? 1 : 0, - getSteamVariant(), - Pos2d.ZERO); + (i, backgrounds, pos) -> builder.widget(createItemInputSlot(i, backgrounds, pos)), + (i, backgrounds, pos) -> builder.widget(createItemOutputSlot(i, backgrounds, pos)), + (i, backgrounds, pos) -> builder.widget(createSpecialSlot(backgrounds, pos)), + (i, backgrounds, pos) -> builder.widget(createFluidInputSlot(backgrounds, pos)), + (i, backgrounds, pos) -> builder.widget(createFluidOutputSlot(backgrounds, pos)), + getGUITextureSet().getItemSlot(), + getGUITextureSet().getFluidSlot(), + getRecipeList(), + mInputSlotCount, + mOutputItems.length, + hasFluidInput ? 1 : 0, + hasFluidOutput ? 1 : 0, + getSteamVariant(), + Pos2d.ZERO); } /** @@ -1375,8 +1368,8 @@ public abstract class GT_MetaTileEntity_BasicMachine extends GT_MetaTileEntity_B */ protected SlotWidget createItemInputSlot(int index, IDrawable[] backgrounds, Pos2d pos) { return (SlotWidget) new SlotWidget(inventoryHandler, getInputSlot() + index).setAccess(true, true) - .setBackground(backgrounds) - .setPos(pos); + .setBackground(backgrounds) + .setPos(pos); } /** @@ -1384,8 +1377,8 @@ public abstract class GT_MetaTileEntity_BasicMachine extends GT_MetaTileEntity_B */ protected SlotWidget createItemOutputSlot(int index, IDrawable[] backgrounds, Pos2d pos) { return (SlotWidget) new SlotWidget(inventoryHandler, getOutputSlot() + index).setAccess(true, false) - .setBackground(backgrounds) - .setPos(pos); + .setBackground(backgrounds) + .setPos(pos); } /** @@ -1393,71 +1386,57 @@ public abstract class GT_MetaTileEntity_BasicMachine extends GT_MetaTileEntity_B */ protected SlotWidget createSpecialSlot(IDrawable[] backgrounds, Pos2d pos) { return (SlotWidget) new SlotWidget(inventoryHandler, getSpecialSlotIndex()).setAccess(true, true) - .disableShiftInsert() - .setGTTooltip( - () -> mTooltipCache.getData( - getRecipeList() - != null - && getRecipeList().usesSpecialSlot() - ? SPECIAL_SLOT_TOOLTIP - : UNUSED_SLOT_TOOLTIP)) - .setTooltipShowUpDelay(TOOLTIP_DELAY) - .setBackground(backgrounds) - .setPos(pos); + .disableShiftInsert() + .setGTTooltip( + () -> mTooltipCache.getData( + getRecipeList() != null && getRecipeList().usesSpecialSlot() ? SPECIAL_SLOT_TOOLTIP + : UNUSED_SLOT_TOOLTIP)) + .setTooltipShowUpDelay(TOOLTIP_DELAY) + .setBackground(backgrounds) + .setPos(pos); } protected FluidDisplaySlotWidget createFluidInputSlot(IDrawable[] backgrounds, Pos2d pos) { return (FluidDisplaySlotWidget) new FluidDisplaySlotWidget( - inventoryHandler, - OTHER_SLOT_COUNT + mInputSlotCount + mOutputItems.length) - .setFluidAccessConstructor( - () -> constructFluidAccess(true)) - .setIHasFluidDisplay(this) - .setCanDrain(true) - .setCanFill(true) - .setActionRealClick( - FluidDisplaySlotWidget.Action.TRANSFER) - .setBeforeRealClick((clickData, widget) -> { - if (NetworkUtils.isClient()) { - // propagate display item content to - // actual fluid stored in this tank - setFillableStack( - GT_Utility.getFluidFromDisplayStack( - widget.getMcSlot() - .getStack())); - } - return true; - }) - .setUpdateFluidDisplayItem( - this::updateFluidInputDisplayItem) - .setGTTooltip( - () -> mTooltipCache.getData( - FLUID_INPUT_TOOLTIP, - GT_Utility.formatNumbers( - getCapacity()))) - .setTooltipShowUpDelay(TOOLTIP_DELAY) - .setBackground(backgrounds) - .setPos(pos); + inventoryHandler, + OTHER_SLOT_COUNT + mInputSlotCount + mOutputItems.length) + .setFluidAccessConstructor(() -> constructFluidAccess(true)) + .setIHasFluidDisplay(this) + .setCanDrain(true) + .setCanFill(true) + .setActionRealClick(FluidDisplaySlotWidget.Action.TRANSFER) + .setBeforeRealClick((clickData, widget) -> { + if (NetworkUtils.isClient()) { + // propagate display item content to + // actual fluid stored in this tank + setFillableStack( + GT_Utility.getFluidFromDisplayStack( + widget.getMcSlot() + .getStack())); + } + return true; + }) + .setUpdateFluidDisplayItem(this::updateFluidInputDisplayItem) + .setGTTooltip(() -> mTooltipCache.getData(FLUID_INPUT_TOOLTIP, GT_Utility.formatNumbers(getCapacity()))) + .setTooltipShowUpDelay(TOOLTIP_DELAY) + .setBackground(backgrounds) + .setPos(pos); } protected FluidDisplaySlotWidget createFluidOutputSlot(IDrawable[] backgrounds, Pos2d pos) { - return (FluidDisplaySlotWidget) createDrainableFluidSlot().setUpdateFluidDisplayItem( - this::updateFluidOutputDisplayItem) - .setGTTooltip( - () -> mTooltipCache.getData( - FLUID_OUTPUT_TOOLTIP, - GT_Utility.formatNumbers( - getCapacity()))) - .setTooltipShowUpDelay(TOOLTIP_DELAY) - .setBackground(backgrounds) - .setPos(pos); + return (FluidDisplaySlotWidget) createDrainableFluidSlot() + .setUpdateFluidDisplayItem(this::updateFluidOutputDisplayItem) + .setGTTooltip(() -> mTooltipCache.getData(FLUID_OUTPUT_TOOLTIP, GT_Utility.formatNumbers(getCapacity()))) + .setTooltipShowUpDelay(TOOLTIP_DELAY) + .setBackground(backgrounds) + .setPos(pos); } @Override protected SlotWidget createChargerSlot(int x, int y) { if (isSteampowered()) { - return (SlotWidget) createChargerSlot(x, y, UNUSED_SLOT_TOOLTIP, new String[0]).setBackground( - getGUITextureSet().getItemSlot()); + return (SlotWidget) createChargerSlot(x, y, UNUSED_SLOT_TOOLTIP, new String[0]) + .setBackground(getGUITextureSet().getItemSlot()); } else { return super.createChargerSlot(x, y); } @@ -1465,36 +1444,32 @@ public abstract class GT_MetaTileEntity_BasicMachine extends GT_MetaTileEntity_B protected CycleButtonWidget createItemAutoOutputButton() { return (CycleButtonWidget) new CycleButtonWidget().setToggle(() -> mItemTransfer, val -> mItemTransfer = val) - .setStaticTexture( - GT_UITextures.OVERLAY_BUTTON_AUTOOUTPUT_ITEM) - .setVariableBackground(GT_UITextures.BUTTON_STANDARD_TOGGLE) - .setGTTooltip( - () -> mTooltipCache.getData(ITEM_TRANSFER_TOOLTIP)) - .setTooltipShowUpDelay(TOOLTIP_DELAY) - .setPos(25, 62) - .setSize(18, 18); + .setStaticTexture(GT_UITextures.OVERLAY_BUTTON_AUTOOUTPUT_ITEM) + .setVariableBackground(GT_UITextures.BUTTON_STANDARD_TOGGLE) + .setGTTooltip(() -> mTooltipCache.getData(ITEM_TRANSFER_TOOLTIP)) + .setTooltipShowUpDelay(TOOLTIP_DELAY) + .setPos(25, 62) + .setSize(18, 18); } protected CycleButtonWidget createFluidAutoOutputButton() { return (CycleButtonWidget) new CycleButtonWidget().setToggle(() -> mFluidTransfer, val -> mFluidTransfer = val) - .setStaticTexture( - GT_UITextures.OVERLAY_BUTTON_AUTOOUTPUT_FLUID) - .setVariableBackground(GT_UITextures.BUTTON_STANDARD_TOGGLE) - .setGTTooltip( - () -> mTooltipCache.getData(FLUID_TRANSFER_TOOLTIP)) - .setTooltipShowUpDelay(TOOLTIP_DELAY) - .setPos(7, 62) - .setSize(18, 18); + .setStaticTexture(GT_UITextures.OVERLAY_BUTTON_AUTOOUTPUT_FLUID) + .setVariableBackground(GT_UITextures.BUTTON_STANDARD_TOGGLE) + .setGTTooltip(() -> mTooltipCache.getData(FLUID_TRANSFER_TOOLTIP)) + .setTooltipShowUpDelay(TOOLTIP_DELAY) + .setPos(7, 62) + .setSize(18, 18); } protected ProgressBar createProgressBar(UITexture texture, int imageSize, ProgressBar.Direction direction, - Pos2d pos, Size size) { + Pos2d pos, Size size) { final ProgressBar ret = new ProgressBar(); ret.setProgress(() -> maxProgresstime() != 0 ? (float) getProgresstime() / maxProgresstime() : 0) - .setTexture(texture, imageSize) - .setDirection(direction) - .setPos(pos) - .setSize(size); + .setTexture(texture, imageSize) + .setDirection(direction) + .setPos(pos) + .setSize(size); return ret; } @@ -1507,13 +1482,11 @@ public abstract class GT_MetaTileEntity_BasicMachine extends GT_MetaTileEntity_B final Power powerInfo = getPower(); final String transferRectTooltip; if (isSteampowered()) { - transferRectTooltip = StatCollector.translateToLocalFormatted( - NEI_TRANSFER_STEAM_TOOLTIP, - powerInfo.getTierString()); + transferRectTooltip = StatCollector + .translateToLocalFormatted(NEI_TRANSFER_STEAM_TOOLTIP, powerInfo.getTierString()); } else { - transferRectTooltip = StatCollector.translateToLocalFormatted( - NEI_TRANSFER_VOLTAGE_TOOLTIP, - powerInfo.getTierString()); + transferRectTooltip = StatCollector + .translateToLocalFormatted(NEI_TRANSFER_VOLTAGE_TOOLTIP, powerInfo.getTierString()); } widget.setNEITransferRect(transferRectID, new Object[] { powerInfo }, transferRectTooltip); } @@ -1524,53 +1497,50 @@ public abstract class GT_MetaTileEntity_BasicMachine extends GT_MetaTileEntity_B if (isSteampowered()) { for (Pair> specialTexture : getRecipeList().specialTexturesSteam) { builder.widget( - new DrawableWidget().setDrawable( - specialTexture.getLeft() - .get(getSteamVariant())) - .setSize( - specialTexture.getRight() - .getLeft()) - .setPos( - specialTexture.getRight() - .getRight())); + new DrawableWidget().setDrawable( + specialTexture.getLeft() + .get(getSteamVariant())) + .setSize( + specialTexture.getRight() + .getLeft()) + .setPos( + specialTexture.getRight() + .getRight())); } } else { for (Pair> specialTexture : getRecipeList().specialTextures) { builder.widget( - new DrawableWidget().setDrawable(specialTexture.getLeft()) - .setSize( - specialTexture.getRight() - .getLeft()) - .setPos( - specialTexture.getRight() - .getRight())); + new DrawableWidget().setDrawable(specialTexture.getLeft()) + .setSize( + specialTexture.getRight() + .getLeft()) + .setPos( + specialTexture.getRight() + .getRight())); } } } protected DrawableWidget createErrorStatusArea(ModularWindow.Builder builder, IDrawable picture) { return (DrawableWidget) new DrawableWidget().setDrawable(picture) - .setTooltipShowUpDelay(TOOLTIP_DELAY) - .setEnabled( - widget -> !widget.getTooltip() - .isEmpty()) - .dynamicTooltip(this::getErrorDescriptions) - .dynamicTooltipShift(this::getErrorDescriptionsShift) - .setPos(79, 44) - .setSize(18, 18) - .attachSyncer( - new FakeSyncWidget.BooleanSyncer( - () -> mStuttering, - val -> mStuttering = val), - builder, - (widget, val) -> widget.notifyTooltipChange()) - .attachSyncer( - new FakeSyncWidget.IntegerSyncer( - () -> getBaseMetaTileEntity().getErrorDisplayID(), - val -> getBaseMetaTileEntity().setErrorDisplayID( - val)), - builder, - (widget, val) -> widget.notifyTooltipChange()); + .setTooltipShowUpDelay(TOOLTIP_DELAY) + .setEnabled( + widget -> !widget.getTooltip() + .isEmpty()) + .dynamicTooltip(this::getErrorDescriptions) + .dynamicTooltipShift(this::getErrorDescriptionsShift) + .setPos(79, 44) + .setSize(18, 18) + .attachSyncer( + new FakeSyncWidget.BooleanSyncer(() -> mStuttering, val -> mStuttering = val), + builder, + (widget, val) -> widget.notifyTooltipChange()) + .attachSyncer( + new FakeSyncWidget.IntegerSyncer( + () -> getBaseMetaTileEntity().getErrorDisplayID(), + val -> getBaseMetaTileEntity().setErrorDisplayID(val)), + builder, + (widget, val) -> widget.notifyTooltipChange()); } protected List getErrorDescriptions() { @@ -1591,8 +1561,8 @@ public abstract class GT_MetaTileEntity_BasicMachine extends GT_MetaTileEntity_B } if (mStuttering) { return mTooltipCache.getData( - STALLED_STUTTERING_TOOLTIP, - StatCollector.translateToLocal(POWER_SOURCE_KEY + (isSteampowered() ? "steam" : "power"))); + STALLED_STUTTERING_TOOLTIP, + StatCollector.translateToLocal(POWER_SOURCE_KEY + (isSteampowered() ? "steam" : "power"))); } return null; } diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_BasicMachine_Bronze.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_BasicMachine_Bronze.java index d2433e04e6..38fce53658 100644 --- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_BasicMachine_Bronze.java +++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_BasicMachine_Bronze.java @@ -44,27 +44,27 @@ public abstract class GT_MetaTileEntity_BasicMachine_Bronze extends GT_MetaTileE public boolean mNeedsSteamVenting = false; public GT_MetaTileEntity_BasicMachine_Bronze(int aID, String aName, String aNameRegional, String aDescription, - int aInputSlotCount, int aOutputSlotCount, boolean aHighPressure) { + int aInputSlotCount, int aOutputSlotCount, boolean aHighPressure) { super( - aID, - aName, - aNameRegional, - aHighPressure ? 2 : 1, - 0, - aDescription, - aInputSlotCount, - aOutputSlotCount, - "", - ""); + aID, + aName, + aNameRegional, + aHighPressure ? 2 : 1, + 0, + aDescription, + aInputSlotCount, + aOutputSlotCount, + "", + ""); } public GT_MetaTileEntity_BasicMachine_Bronze(String aName, String aDescription, ITexture[][][] aTextures, - int aInputSlotCount, int aOutputSlotCount, boolean aHighPressure) { + int aInputSlotCount, int aOutputSlotCount, boolean aHighPressure) { super(aName, aHighPressure ? 2 : 1, 0, aDescription, aTextures, aInputSlotCount, aOutputSlotCount, "", ""); } public GT_MetaTileEntity_BasicMachine_Bronze(String aName, String[] aDescription, ITexture[][][] aTextures, - int aInputSlotCount, int aOutputSlotCount, boolean aHighPressure) { + int aInputSlotCount, int aOutputSlotCount, boolean aHighPressure) { super(aName, aHighPressure ? 2 : 1, 0, aDescription, aTextures, aInputSlotCount, aOutputSlotCount, "", ""); } @@ -162,37 +162,25 @@ public abstract class GT_MetaTileEntity_BasicMachine_Bronze extends GT_MetaTileE @Override public boolean allowToCheckRecipe() { if (mNeedsSteamVenting - && getBaseMetaTileEntity().getCoverIDAtSide(getBaseMetaTileEntity().getFrontFacing()) == 0 - && !GT_Utility.hasBlockHitBox( - getBaseMetaTileEntity().getWorld(), - getBaseMetaTileEntity().getOffsetX(getBaseMetaTileEntity().getFrontFacing(), 1), - getBaseMetaTileEntity().getOffsetY(getBaseMetaTileEntity().getFrontFacing(), 1), - getBaseMetaTileEntity().getOffsetZ(getBaseMetaTileEntity().getFrontFacing(), 1))) { + && getBaseMetaTileEntity().getCoverIDAtSide(getBaseMetaTileEntity().getFrontFacing()) == 0 + && !GT_Utility.hasBlockHitBox( + getBaseMetaTileEntity().getWorld(), + getBaseMetaTileEntity().getOffsetX(getBaseMetaTileEntity().getFrontFacing(), 1), + getBaseMetaTileEntity().getOffsetY(getBaseMetaTileEntity().getFrontFacing(), 1), + getBaseMetaTileEntity().getOffsetZ(getBaseMetaTileEntity().getFrontFacing(), 1))) { sendSound((byte) 9); mNeedsSteamVenting = false; try { for (EntityLivingBase tLiving : getBaseMetaTileEntity().getWorld() - .getEntitiesWithinAABB( - EntityLivingBase.class, - AxisAlignedBB.getBoundingBox( - getBaseMetaTileEntity().getOffsetX( - getBaseMetaTileEntity().getFrontFacing(), - 1), - getBaseMetaTileEntity().getOffsetY( - getBaseMetaTileEntity().getFrontFacing(), - 1), - getBaseMetaTileEntity().getOffsetZ( - getBaseMetaTileEntity().getFrontFacing(), - 1), - getBaseMetaTileEntity().getOffsetX( - getBaseMetaTileEntity().getFrontFacing(), - 1) + 1, - getBaseMetaTileEntity().getOffsetY( - getBaseMetaTileEntity().getFrontFacing(), - 1) + 1, - getBaseMetaTileEntity().getOffsetZ( - getBaseMetaTileEntity().getFrontFacing(), - 1) + 1))) { + .getEntitiesWithinAABB( + EntityLivingBase.class, + AxisAlignedBB.getBoundingBox( + getBaseMetaTileEntity().getOffsetX(getBaseMetaTileEntity().getFrontFacing(), 1), + getBaseMetaTileEntity().getOffsetY(getBaseMetaTileEntity().getFrontFacing(), 1), + getBaseMetaTileEntity().getOffsetZ(getBaseMetaTileEntity().getFrontFacing(), 1), + getBaseMetaTileEntity().getOffsetX(getBaseMetaTileEntity().getFrontFacing(), 1) + 1, + getBaseMetaTileEntity().getOffsetY(getBaseMetaTileEntity().getFrontFacing(), 1) + 1, + getBaseMetaTileEntity().getOffsetZ(getBaseMetaTileEntity().getFrontFacing(), 1) + 1))) { GT_Utility.applyHeatDamage(tLiving, getSteamDamage()); } } catch (Throwable e) { @@ -204,14 +192,10 @@ public abstract class GT_MetaTileEntity_BasicMachine_Bronze extends GT_MetaTileE @Override public int checkRecipe() { - GT_Recipe tRecipe = getRecipeList().findRecipe( - getBaseMetaTileEntity(), - false, - gregtech.api.enums.GT_Values.V[mTier], - null, - getAllInputs()); + GT_Recipe tRecipe = getRecipeList() + .findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[mTier], null, getAllInputs()); if ((tRecipe != null) && (canOutput(tRecipe.mOutputs)) - && (tRecipe.isRecipeInputEqual(true, null, getAllInputs()))) { + && (tRecipe.isRecipeInputEqual(true, null, getAllInputs()))) { this.mOutputItems[0] = tRecipe.getOutput(0); calculateOverclockedNess(tRecipe); return 2; @@ -238,21 +222,19 @@ public abstract class GT_MetaTileEntity_BasicMachine_Bronze extends GT_MetaTileE GT_Utility.doSoundAtClient(SoundResource.RANDOM_FIZZ, 5, 1.0F, aX, aY, aZ); new ParticleEventBuilder().setIdentifier(ParticleFX.CLOUD) - .setWorld(getBaseMetaTileEntity().getWorld()) - .setMotion( - ForgeDirection.getOrientation( - getBaseMetaTileEntity().getFrontFacing()).offsetX / 5.0, - ForgeDirection.getOrientation( - getBaseMetaTileEntity().getFrontFacing()).offsetY / 5.0, - ForgeDirection.getOrientation( - getBaseMetaTileEntity().getFrontFacing()).offsetZ / 5.0) - .times( - 8, - x -> x.setPosition( - aX - 0.5 + XSTR_INSTANCE.nextFloat(), - aY - 0.5 + XSTR_INSTANCE.nextFloat(), - aZ - 0.5 + XSTR_INSTANCE.nextFloat()) - .run()); + .setWorld(getBaseMetaTileEntity().getWorld()) + .setMotion( + ForgeDirection.getOrientation(getBaseMetaTileEntity().getFrontFacing()).offsetX / 5.0, + ForgeDirection.getOrientation(getBaseMetaTileEntity().getFrontFacing()).offsetY / 5.0, + ForgeDirection.getOrientation(getBaseMetaTileEntity().getFrontFacing()).offsetZ / 5.0) + .times( + 8, + x -> x + .setPosition( + aX - 0.5 + XSTR_INSTANCE.nextFloat(), + aY - 0.5 + XSTR_INSTANCE.nextFloat(), + aZ - 0.5 + XSTR_INSTANCE.nextFloat()) + .run()); } } @@ -264,8 +246,7 @@ public abstract class GT_MetaTileEntity_BasicMachine_Bronze extends GT_MetaTileE @Override public boolean allowCoverOnSide(byte aSide, GT_ItemStack aCoverID) { return GregTech_API.getCoverBehaviorNew(aCoverID.toStack()) - .isSimpleCover() - && super.allowCoverOnSide(aSide, aCoverID); + .isSimpleCover() && super.allowCoverOnSide(aSide, aCoverID); } public float getSteamDamage() { @@ -275,99 +256,99 @@ public abstract class GT_MetaTileEntity_BasicMachine_Bronze extends GT_MetaTileE @Override public ITexture[] getSideFacingActive(byte aColor) { return new ITexture[] { TextureFactory.of( - isBricked() ? MACHINE_BRONZEBRICKS_SIDE : MACHINE_BRONZE_SIDE, - Dyes.getModulation(aColor, Dyes._NULL.mRGBa)) }; + isBricked() ? MACHINE_BRONZEBRICKS_SIDE : MACHINE_BRONZE_SIDE, + Dyes.getModulation(aColor, Dyes._NULL.mRGBa)) }; } @Override public ITexture[] getSideFacingInactive(byte aColor) { return new ITexture[] { TextureFactory.of( - isBricked() ? MACHINE_BRONZEBRICKS_SIDE : MACHINE_BRONZE_SIDE, - Dyes.getModulation(aColor, Dyes._NULL.mRGBa)) }; + isBricked() ? MACHINE_BRONZEBRICKS_SIDE : MACHINE_BRONZE_SIDE, + Dyes.getModulation(aColor, Dyes._NULL.mRGBa)) }; } @Override public ITexture[] getFrontFacingActive(byte aColor) { return new ITexture[] { TextureFactory.of( - isBricked() ? MACHINE_BRONZEBRICKS_SIDE : MACHINE_BRONZE_SIDE, - Dyes.getModulation(aColor, Dyes._NULL.mRGBa)) }; + isBricked() ? MACHINE_BRONZEBRICKS_SIDE : MACHINE_BRONZE_SIDE, + Dyes.getModulation(aColor, Dyes._NULL.mRGBa)) }; } @Override public ITexture[] getFrontFacingInactive(byte aColor) { return new ITexture[] { TextureFactory.of( - isBricked() ? MACHINE_BRONZEBRICKS_SIDE : MACHINE_BRONZE_SIDE, - Dyes.getModulation(aColor, Dyes._NULL.mRGBa)) }; + isBricked() ? MACHINE_BRONZEBRICKS_SIDE : MACHINE_BRONZE_SIDE, + Dyes.getModulation(aColor, Dyes._NULL.mRGBa)) }; } @Override public ITexture[] getTopFacingActive(byte aColor) { return new ITexture[] { TextureFactory.of( - isBricked() ? MACHINE_BRONZEBRICKS_TOP : MACHINE_BRONZE_TOP, - Dyes.getModulation(aColor, Dyes._NULL.mRGBa)) }; + isBricked() ? MACHINE_BRONZEBRICKS_TOP : MACHINE_BRONZE_TOP, + Dyes.getModulation(aColor, Dyes._NULL.mRGBa)) }; } @Override public ITexture[] getTopFacingInactive(byte aColor) { return new ITexture[] { TextureFactory.of( - isBricked() ? MACHINE_BRONZEBRICKS_TOP : MACHINE_BRONZE_TOP, - Dyes.getModulation(aColor, Dyes._NULL.mRGBa)) }; + isBricked() ? MACHINE_BRONZEBRICKS_TOP : MACHINE_BRONZE_TOP, + Dyes.getModulation(aColor, Dyes._NULL.mRGBa)) }; } @Override public ITexture[] getBottomFacingActive(byte aColor) { return new ITexture[] { TextureFactory.of( - isBricked() ? MACHINE_BRONZEBRICKS_BOTTOM : MACHINE_BRONZE_BOTTOM, - Dyes.getModulation(aColor, Dyes._NULL.mRGBa)) }; + isBricked() ? MACHINE_BRONZEBRICKS_BOTTOM : MACHINE_BRONZE_BOTTOM, + Dyes.getModulation(aColor, Dyes._NULL.mRGBa)) }; } @Override public ITexture[] getBottomFacingInactive(byte aColor) { return new ITexture[] { TextureFactory.of( - isBricked() ? MACHINE_BRONZEBRICKS_BOTTOM : MACHINE_BRONZE_BOTTOM, - Dyes.getModulation(aColor, Dyes._NULL.mRGBa)) }; + isBricked() ? MACHINE_BRONZEBRICKS_BOTTOM : MACHINE_BRONZE_BOTTOM, + Dyes.getModulation(aColor, Dyes._NULL.mRGBa)) }; } @Override public ITexture[] getBottomFacingPipeActive(byte aColor) { return new ITexture[] { TextureFactory.of( - isBricked() ? MACHINE_BRONZEBRICKS_BOTTOM : MACHINE_BRONZE_BOTTOM, - Dyes.getModulation(aColor, Dyes._NULL.mRGBa)), TextureFactory.of(OVERLAY_PIPE_OUT) }; + isBricked() ? MACHINE_BRONZEBRICKS_BOTTOM : MACHINE_BRONZE_BOTTOM, + Dyes.getModulation(aColor, Dyes._NULL.mRGBa)), TextureFactory.of(OVERLAY_PIPE_OUT) }; } @Override public ITexture[] getBottomFacingPipeInactive(byte aColor) { return new ITexture[] { TextureFactory.of( - isBricked() ? MACHINE_BRONZEBRICKS_BOTTOM : MACHINE_BRONZE_BOTTOM, - Dyes.getModulation(aColor, Dyes._NULL.mRGBa)), TextureFactory.of(OVERLAY_PIPE_OUT) }; + isBricked() ? MACHINE_BRONZEBRICKS_BOTTOM : MACHINE_BRONZE_BOTTOM, + Dyes.getModulation(aColor, Dyes._NULL.mRGBa)), TextureFactory.of(OVERLAY_PIPE_OUT) }; } @Override public ITexture[] getTopFacingPipeActive(byte aColor) { return new ITexture[] { TextureFactory.of( - isBricked() ? MACHINE_BRONZEBRICKS_TOP : MACHINE_BRONZE_TOP, - Dyes.getModulation(aColor, Dyes._NULL.mRGBa)), TextureFactory.of(OVERLAY_PIPE_OUT) }; + isBricked() ? MACHINE_BRONZEBRICKS_TOP : MACHINE_BRONZE_TOP, + Dyes.getModulation(aColor, Dyes._NULL.mRGBa)), TextureFactory.of(OVERLAY_PIPE_OUT) }; } @Override public ITexture[] getTopFacingPipeInactive(byte aColor) { return new ITexture[] { TextureFactory.of( - isBricked() ? MACHINE_BRONZEBRICKS_TOP : MACHINE_BRONZE_TOP, - Dyes.getModulation(aColor, Dyes._NULL.mRGBa)), TextureFactory.of(OVERLAY_PIPE_OUT) }; + isBricked() ? MACHINE_BRONZEBRICKS_TOP : MACHINE_BRONZE_TOP, + Dyes.getModulation(aColor, Dyes._NULL.mRGBa)), TextureFactory.of(OVERLAY_PIPE_OUT) }; } @Override public ITexture[] getSideFacingPipeActive(byte aColor) { return new ITexture[] { TextureFactory.of( - isBricked() ? MACHINE_BRONZEBRICKS_SIDE : MACHINE_BRONZE_SIDE, - Dyes.getModulation(aColor, Dyes._NULL.mRGBa)), TextureFactory.of(OVERLAY_PIPE_OUT) }; + isBricked() ? MACHINE_BRONZEBRICKS_SIDE : MACHINE_BRONZE_SIDE, + Dyes.getModulation(aColor, Dyes._NULL.mRGBa)), TextureFactory.of(OVERLAY_PIPE_OUT) }; } @Override public ITexture[] getSideFacingPipeInactive(byte aColor) { return new ITexture[] { TextureFactory.of( - isBricked() ? MACHINE_BRONZEBRICKS_SIDE : MACHINE_BRONZE_SIDE, - Dyes.getModulation(aColor, Dyes._NULL.mRGBa)), TextureFactory.of(OVERLAY_PIPE_OUT) }; + isBricked() ? MACHINE_BRONZEBRICKS_SIDE : MACHINE_BRONZE_SIDE, + Dyes.getModulation(aColor, Dyes._NULL.mRGBa)), TextureFactory.of(OVERLAY_PIPE_OUT) }; } @Override @@ -383,9 +364,9 @@ public abstract class GT_MetaTileEntity_BasicMachine_Bronze extends GT_MetaTileE @Override public void addGregTechLogo(ModularWindow.Builder builder) { builder.widget( - new DrawableWidget().setDrawable(getGUITextureSet().getGregTechLogo()) - .setSize(17, 17) - .setPos(152, 63)); + new DrawableWidget().setDrawable(getGUITextureSet().getGregTechLogo()) + .setSize(17, 17) + .setPos(152, 63)); } @Override diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_BasicMachine_GT_Recipe.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_BasicMachine_GT_Recipe.java index 70afd35f57..0dc019ae5c 100644 --- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_BasicMachine_GT_Recipe.java +++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_BasicMachine_GT_Recipe.java @@ -61,112 +61,93 @@ public class GT_MetaTileEntity_BasicMachine_GT_Recipe extends GT_MetaTileEntity_ private FallbackableUITexture progressBarTexture; public GT_MetaTileEntity_BasicMachine_GT_Recipe(int aID, String aName, String aNameRegional, int aTier, - String aDescription, GT_Recipe.GT_Recipe_Map aRecipes, int aInputSlots, int aOutputSlots, int aTankCapacity, - int aGUIParameterA, int aGUIParameterB, String aGUIName, ResourceLocation aSound, boolean aSharedTank, - boolean aRequiresFluidForFiltering, SpecialEffects aSpecialEffect, String aOverlays, Object[] aRecipe) { + String aDescription, GT_Recipe.GT_Recipe_Map aRecipes, int aInputSlots, int aOutputSlots, int aTankCapacity, + int aGUIParameterA, int aGUIParameterB, String aGUIName, ResourceLocation aSound, boolean aSharedTank, + boolean aRequiresFluidForFiltering, SpecialEffects aSpecialEffect, String aOverlays, Object[] aRecipe) { super( - aID, - aName, - aNameRegional, - aTier, - aRecipes.mAmperage, - aDescription, - aInputSlots, - aOutputSlots, - aGUIName, - aRecipes.mNEIName, + aID, + aName, + aNameRegional, + aTier, + aRecipes.mAmperage, + aDescription, + aInputSlots, + aOutputSlots, + aGUIName, + aRecipes.mNEIName, + TextureFactory.of( TextureFactory.of( - TextureFactory.of( - new CustomIcon( - "basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) - + "/OVERLAY_SIDE_ACTIVE")), - TextureFactory.builder() - .addIcon( - (new CustomIcon( - "basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) - + "/OVERLAY_SIDE_ACTIVE_GLOW"))) - .glow() - .build()), + new CustomIcon("basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_SIDE_ACTIVE")), + TextureFactory.builder() + .addIcon( + (new CustomIcon( + "basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_SIDE_ACTIVE_GLOW"))) + .glow() + .build()), + TextureFactory.of( + TextureFactory + .of(new CustomIcon("basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_SIDE")), + TextureFactory.builder() + .addIcon( + (new CustomIcon( + "basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_SIDE_GLOW"))) + .glow() + .build()), + TextureFactory.of( TextureFactory.of( - TextureFactory.of( - new CustomIcon( - "basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_SIDE")), - TextureFactory.builder() - .addIcon( - (new CustomIcon( - "basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) - + "/OVERLAY_SIDE_GLOW"))) - .glow() - .build()), + new CustomIcon("basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_FRONT_ACTIVE")), + TextureFactory.builder() + .addIcon( + (new CustomIcon( + "basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_FRONT_ACTIVE_GLOW"))) + .glow() + .build()), + TextureFactory.of( + TextureFactory + .of(new CustomIcon("basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_FRONT")), + TextureFactory.builder() + .addIcon( + (new CustomIcon( + "basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_FRONT_GLOW"))) + .glow() + .build()), + TextureFactory.of( TextureFactory.of( - TextureFactory.of( - new CustomIcon( - "basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) - + "/OVERLAY_FRONT_ACTIVE")), - TextureFactory.builder() - .addIcon( - (new CustomIcon( - "basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) - + "/OVERLAY_FRONT_ACTIVE_GLOW"))) - .glow() - .build()), + new CustomIcon("basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_TOP_ACTIVE")), + TextureFactory.builder() + .addIcon( + (new CustomIcon( + "basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_TOP_ACTIVE_GLOW"))) + .glow() + .build()), + TextureFactory.of( + TextureFactory + .of(new CustomIcon("basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_TOP")), + TextureFactory.builder() + .addIcon( + (new CustomIcon( + "basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_TOP_GLOW"))) + .glow() + .build()), + TextureFactory.of( TextureFactory.of( - TextureFactory.of( - new CustomIcon( - "basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_FRONT")), - TextureFactory.builder() - .addIcon( - (new CustomIcon( - "basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) - + "/OVERLAY_FRONT_GLOW"))) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of( - new CustomIcon( - "basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) - + "/OVERLAY_TOP_ACTIVE")), - TextureFactory.builder() - .addIcon( - (new CustomIcon( - "basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) - + "/OVERLAY_TOP_ACTIVE_GLOW"))) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of( - new CustomIcon( - "basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_TOP")), - TextureFactory.builder() - .addIcon( - (new CustomIcon( - "basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) - + "/OVERLAY_TOP_GLOW"))) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of( - new CustomIcon( - "basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) - + "/OVERLAY_BOTTOM_ACTIVE")), - TextureFactory.builder() - .addIcon( - (new CustomIcon( - "basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) - + "/OVERLAY_BOTTOM_ACTIVE_GLOW"))) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of( - new CustomIcon( - "basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_BOTTOM")), - TextureFactory.builder() - .addIcon( - (new CustomIcon( - "basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) - + "/OVERLAY_BOTTOM_GLOW"))) - .glow() - .build())); + new CustomIcon( + "basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_BOTTOM_ACTIVE")), + TextureFactory.builder() + .addIcon( + (new CustomIcon( + "basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_BOTTOM_ACTIVE_GLOW"))) + .glow() + .build()), + TextureFactory.of( + TextureFactory + .of(new CustomIcon("basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_BOTTOM")), + TextureFactory.builder() + .addIcon( + (new CustomIcon( + "basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_BOTTOM_GLOW"))) + .glow() + .build())); this.mSharedTank = aSharedTank; this.mTankCapacity = aTankCapacity; this.mSpecialEffect = aSpecialEffect; @@ -518,39 +499,39 @@ public class GT_MetaTileEntity_BasicMachine_GT_Recipe extends GT_MetaTileEntity_ } if (!GT_ModHandler.addCraftingRecipe( - getStackForm(1), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.BUFFERED - | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - aRecipe)) { + getStackForm(1), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.BUFFERED + | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + aRecipe)) { throw new IllegalArgumentException("INVALID CRAFTING RECIPE FOR: " + getStackForm(1).getDisplayName()); } } } public GT_MetaTileEntity_BasicMachine_GT_Recipe(int aID, String aName, String aNameRegional, int aTier, - String aDescription, GT_Recipe.GT_Recipe_Map aRecipes, int aInputSlots, int aOutputSlots, int aTankCapacity, - int aGUIParameterA, int aGUIParameterB, String aGUIName, SoundResource aSound, boolean aSharedTank, - boolean aRequiresFluidForFiltering, SpecialEffects aSpecialEffect, String aOverlays, Object[] aRecipe) { + String aDescription, GT_Recipe.GT_Recipe_Map aRecipes, int aInputSlots, int aOutputSlots, int aTankCapacity, + int aGUIParameterA, int aGUIParameterB, String aGUIName, SoundResource aSound, boolean aSharedTank, + boolean aRequiresFluidForFiltering, SpecialEffects aSpecialEffect, String aOverlays, Object[] aRecipe) { this( - aID, - aName, - aNameRegional, - aTier, - aDescription, - aRecipes, - aInputSlots, - aOutputSlots, - aTankCapacity, - aGUIParameterA, - aGUIParameterB, - aGUIName, - aSound.resourceLocation, - aSharedTank, - aRequiresFluidForFiltering, - aSpecialEffect, - aOverlays, - aRecipe); + aID, + aName, + aNameRegional, + aTier, + aDescription, + aRecipes, + aInputSlots, + aOutputSlots, + aTankCapacity, + aGUIParameterA, + aGUIParameterB, + aGUIName, + aSound.resourceLocation, + aSharedTank, + aRequiresFluidForFiltering, + aSpecialEffect, + aOverlays, + aRecipe); } /** @@ -561,34 +542,34 @@ public class GT_MetaTileEntity_BasicMachine_GT_Recipe extends GT_MetaTileEntity_ */ @Deprecated public GT_MetaTileEntity_BasicMachine_GT_Recipe(int aID, String aName, String aNameRegional, int aTier, - String aDescription, GT_Recipe.GT_Recipe_Map aRecipes, int aInputSlots, int aOutputSlots, int aTankCapacity, - int aGUIParameterA, int aGUIParameterB, String aGUIName, String aSound, boolean aSharedTank, - boolean aRequiresFluidForFiltering, int aSpecialEffect, String aOverlays, Object[] aRecipe) { + String aDescription, GT_Recipe.GT_Recipe_Map aRecipes, int aInputSlots, int aOutputSlots, int aTankCapacity, + int aGUIParameterA, int aGUIParameterB, String aGUIName, String aSound, boolean aSharedTank, + boolean aRequiresFluidForFiltering, int aSpecialEffect, String aOverlays, Object[] aRecipe) { this( - aID, - aName, - aNameRegional, - aTier, - aDescription, - aRecipes, - aInputSlots, - aOutputSlots, - aTankCapacity, - aGUIParameterA, - aGUIParameterB, - aGUIName, - new ResourceLocation(aSound), - aSharedTank, - aRequiresFluidForFiltering, - SpecialEffects.fromId(aSpecialEffect), - aOverlays, - aRecipe); + aID, + aName, + aNameRegional, + aTier, + aDescription, + aRecipes, + aInputSlots, + aOutputSlots, + aTankCapacity, + aGUIParameterA, + aGUIParameterB, + aGUIName, + new ResourceLocation(aSound), + aSharedTank, + aRequiresFluidForFiltering, + SpecialEffects.fromId(aSpecialEffect), + aOverlays, + aRecipe); } public GT_MetaTileEntity_BasicMachine_GT_Recipe(String aName, int aTier, String aDescription, - GT_Recipe.GT_Recipe_Map aRecipes, int aInputSlots, int aOutputSlots, int aTankCapacity, int aAmperage, - int aGUIParameterA, int aGUIParameterB, ITexture[][][] aTextures, String aGUIName, String aNEIName, - String aSound, boolean aSharedTank, boolean aRequiresFluidForFiltering, int aSpecialEffect) { + GT_Recipe.GT_Recipe_Map aRecipes, int aInputSlots, int aOutputSlots, int aTankCapacity, int aAmperage, + int aGUIParameterA, int aGUIParameterB, ITexture[][][] aTextures, String aGUIName, String aNEIName, + String aSound, boolean aSharedTank, boolean aRequiresFluidForFiltering, int aSpecialEffect) { super(aName, aTier, aAmperage, aDescription, aTextures, aInputSlots, aOutputSlots, aGUIName, aNEIName); this.mSharedTank = aSharedTank; this.mTankCapacity = aTankCapacity; @@ -601,9 +582,9 @@ public class GT_MetaTileEntity_BasicMachine_GT_Recipe extends GT_MetaTileEntity_ } public GT_MetaTileEntity_BasicMachine_GT_Recipe(String aName, int aTier, String[] aDescription, - GT_Recipe.GT_Recipe_Map aRecipes, int aInputSlots, int aOutputSlots, int aTankCapacity, int aAmperage, - int aGUIParameterA, int aGUIParameterB, ITexture[][][] aTextures, String aGUIName, String aNEIName, - String aSound, boolean aSharedTank, boolean aRequiresFluidForFiltering, int aSpecialEffect) { + GT_Recipe.GT_Recipe_Map aRecipes, int aInputSlots, int aOutputSlots, int aTankCapacity, int aAmperage, + int aGUIParameterA, int aGUIParameterB, ITexture[][][] aTextures, String aGUIName, String aNEIName, + String aSound, boolean aSharedTank, boolean aRequiresFluidForFiltering, int aSpecialEffect) { super(aName, aTier, aAmperage, aDescription, aTextures, aInputSlots, aOutputSlots, aGUIName, aNEIName); this.mSharedTank = aSharedTank; this.mTankCapacity = aTankCapacity; @@ -618,23 +599,23 @@ public class GT_MetaTileEntity_BasicMachine_GT_Recipe extends GT_MetaTileEntity_ @Override public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) { return new GT_MetaTileEntity_BasicMachine_GT_Recipe( - this.mName, - this.mTier, - this.mDescriptionArray, - this.mRecipes, - this.mInputSlotCount, - this.mOutputItems == null ? 0 : this.mOutputItems.length, - this.mTankCapacity, - this.mAmperage, - this.mGUIParameterA, - this.mGUIParameterB, - this.mTextures, - this.mGUIName, - this.mNEIName, - this.mSoundResourceLocation.toString(), - this.mSharedTank, - this.mRequiresFluidForFiltering, - this.mSpecialEffect.ordinal()).setProgressBarTexture(this.progressBarTexture); + this.mName, + this.mTier, + this.mDescriptionArray, + this.mRecipes, + this.mInputSlotCount, + this.mOutputItems == null ? 0 : this.mOutputItems.length, + this.mTankCapacity, + this.mAmperage, + this.mGUIParameterA, + this.mGUIParameterB, + this.mTextures, + this.mGUIName, + this.mNEIName, + this.mSoundResourceLocation.toString(), + this.mSharedTank, + this.mRequiresFluidForFiltering, + this.mSpecialEffect.ordinal()).setProgressBarTexture(this.progressBarTexture); } public GT_MetaTileEntity_BasicMachine_GT_Recipe setProgressBarTexture(FallbackableUITexture progressBarTexture) { @@ -644,7 +625,7 @@ public class GT_MetaTileEntity_BasicMachine_GT_Recipe extends GT_MetaTileEntity_ public GT_MetaTileEntity_BasicMachine_GT_Recipe setProgressBarTextureName(String name, UITexture fallback) { return setProgressBarTexture( - new FallbackableUITexture(UITexture.fullImage(GregTech.ID, "gui/progressbar/" + name), fallback)); + new FallbackableUITexture(UITexture.fullImage(GregTech.ID, "gui/progressbar/" + name), fallback)); } public GT_MetaTileEntity_BasicMachine_GT_Recipe setProgressBarTextureName(String name) { @@ -659,19 +640,19 @@ public class GT_MetaTileEntity_BasicMachine_GT_Recipe extends GT_MetaTileEntity_ @Override public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity) { return new GT_GUIContainer_BasicMachine( - aPlayerInventory, - aBaseMetaTileEntity, - this.getLocalName(), - this.mGUIName, - GT_Utility.isStringValid(this.mNEIName) ? this.mNEIName - : this.getRecipeList() != null ? this.getRecipeList().mUnlocalizedName : "", - this.mGUIParameterA, - this.mGUIParameterB); + aPlayerInventory, + aBaseMetaTileEntity, + this.getLocalName(), + this.mGUIName, + GT_Utility.isStringValid(this.mNEIName) ? this.mNEIName + : this.getRecipeList() != null ? this.getRecipeList().mUnlocalizedName : "", + this.mGUIParameterA, + this.mGUIParameterB); } @Override protected boolean allowPutStackValidated(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, - ItemStack aStack) { + ItemStack aStack) { if (!super.allowPutStackValidated(aBaseMetaTileEntity, aIndex, aSide, aStack)) return false; switch (this.mInputSlotCount) { case 0 -> { @@ -679,10 +660,28 @@ public class GT_MetaTileEntity_BasicMachine_GT_Recipe extends GT_MetaTileEntity_ } case 1 -> { if (this.getFillableStack() == null) return !this.mRequiresFluidForFiltering && this.getRecipeList() - .containsInput( - aStack); + .containsInput(aStack); else return this.getRecipeList() - .findRecipe( + .findRecipe( + this.getBaseMetaTileEntity(), + this.mLastRecipe, + true, + true, + V[this.mTier], + new FluidStack[] { this.getFillableStack() }, + this.getSpecialSlot(), + appendSelectedCircuit(aStack)) + != null; + } + case 2 -> { + return (!this.mRequiresFluidForFiltering || this.getFillableStack() != null) + && (((this.getInputAt(0) != null && this.getInputAt(1) != null) + || (this.getInputAt(0) == null && this.getInputAt(1) == null ? this.getRecipeList() + .containsInput(aStack) + : (this.getRecipeList() + .containsInput(aStack) + && this.getRecipeList() + .findRecipe( this.getBaseMetaTileEntity(), this.mLastRecipe, true, @@ -690,33 +689,14 @@ public class GT_MetaTileEntity_BasicMachine_GT_Recipe extends GT_MetaTileEntity_ V[this.mTier], new FluidStack[] { this.getFillableStack() }, this.getSpecialSlot(), - appendSelectedCircuit(aStack)) - != null; - } - case 2 -> { - return (!this.mRequiresFluidForFiltering || this.getFillableStack() != null) && (((this.getInputAt(0) - != null && this.getInputAt(1) != null) - || (this.getInputAt(0) == null && this.getInputAt(1) == null ? this.getRecipeList() - .containsInput(aStack) - : (this.getRecipeList() - .containsInput(aStack) - && this.getRecipeList() - .findRecipe( - this.getBaseMetaTileEntity(), - this.mLastRecipe, - true, - true, - V[this.mTier], - new FluidStack[] { this.getFillableStack() }, - this.getSpecialSlot(), - aIndex == this.getInputSlot() - ? appendSelectedCircuit(aStack, this.getInputAt(1)) - : appendSelectedCircuit(this.getInputAt(0), aStack)) - != null)))); + aIndex == this.getInputSlot() + ? appendSelectedCircuit(aStack, this.getInputAt(1)) + : appendSelectedCircuit(this.getInputAt(0), aStack)) + != null)))); } default -> { int tID = this.getBaseMetaTileEntity() - .getMetaTileID(); + .getMetaTileID(); if (tID >= 211 && tID <= 218 || tID >= 1180 && tID <= 1187 || tID >= 10780 && tID <= 10786) { // assembler // lv-iv; // circuit @@ -727,12 +707,11 @@ public class GT_MetaTileEntity_BasicMachine_GT_Recipe extends GT_MetaTileEntity_ // luv-uev if (GT_Utility.isStackValid(aStack)) for (int oreID : OreDictionary.getOreIDs(aStack)) { if (OreDictionary.getOreName(oreID) - .startsWith("circuit")) - return true; + .startsWith("circuit")) return true; } } return this.getRecipeList() - .containsInput(aStack); + .containsInput(aStack); } } } @@ -751,20 +730,17 @@ public class GT_MetaTileEntity_BasicMachine_GT_Recipe extends GT_MetaTileEntity_ case TOP_SMOKE -> { final byte topFacing = (byte) ForgeDirection.UP.ordinal(); if (aBaseMetaTileEntity.getFrontFacing() != topFacing - && aBaseMetaTileEntity.getCoverIDAtSide(topFacing) == 0 - && !aBaseMetaTileEntity.getOpacityAtSide(topFacing)) { + && aBaseMetaTileEntity.getCoverIDAtSide(topFacing) == 0 + && !aBaseMetaTileEntity.getOpacityAtSide(topFacing)) { new ParticleEventBuilder().setMotion(0.0D, 0.0D, 0.0D) - .setIdentifier(ParticleFX.SMOKE) - .setPosition( - aBaseMetaTileEntity.getXCoord() + 0.8F - - XSTR_INSTANCE.nextFloat() * 0.6F, - aBaseMetaTileEntity.getYCoord() + 0.9F - + XSTR_INSTANCE.nextFloat() * 0.2F, - aBaseMetaTileEntity.getZCoord() + 0.8F - - XSTR_INSTANCE.nextFloat() * 0.6F) - .setWorld(aBaseMetaTileEntity.getWorld()) - .run(); + .setIdentifier(ParticleFX.SMOKE) + .setPosition( + aBaseMetaTileEntity.getXCoord() + 0.8F - XSTR_INSTANCE.nextFloat() * 0.6F, + aBaseMetaTileEntity.getYCoord() + 0.9F + XSTR_INSTANCE.nextFloat() * 0.2F, + aBaseMetaTileEntity.getZCoord() + 0.8F - XSTR_INSTANCE.nextFloat() * 0.6F) + .setWorld(aBaseMetaTileEntity.getWorld()) + .run(); } } default -> {} @@ -790,7 +766,7 @@ public class GT_MetaTileEntity_BasicMachine_GT_Recipe extends GT_MetaTileEntity_ final byte mainFacing = (byte) this.mMainFacing; if (mainFacing > 1 && aBaseMetaTileEntity.getCoverIDAtSide(mainFacing) == 0 - && !aBaseMetaTileEntity.getOpacityAtSide(mainFacing)) { + && !aBaseMetaTileEntity.getOpacityAtSide(mainFacing)) { final double oX = aBaseMetaTileEntity.getXCoord(); final double oY = aBaseMetaTileEntity.getYCoord(); @@ -826,11 +802,10 @@ public class GT_MetaTileEntity_BasicMachine_GT_Recipe extends GT_MetaTileEntity_ } ParticleEventBuilder particleEventBuilder = (new ParticleEventBuilder()).setMotion(mX, 0, mZ) - .setPosition(x, y, z) - .setWorld( - getBaseMetaTileEntity().getWorld()); + .setPosition(x, y, z) + .setWorld(getBaseMetaTileEntity().getWorld()); particleEventBuilder.setIdentifier(ParticleFX.LAVA) - .run(); + .run(); } } } @@ -852,8 +827,8 @@ public class GT_MetaTileEntity_BasicMachine_GT_Recipe extends GT_MetaTileEntity_ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ) { super.startSoundLoop(aIndex, aX, aY, aZ); if (aIndex == 1 && this.mSoundResourceLocation != null - && GT_Utility.isStringValid(this.mSoundResourceLocation.getResourceDomain()) - && GT_Utility.isStringValid(this.mSoundResourceLocation.getResourcePath())) + && GT_Utility.isStringValid(this.mSoundResourceLocation.getResourceDomain()) + && GT_Utility.isStringValid(this.mSoundResourceLocation.getResourcePath())) GT_Utility.doSoundAtClient(this.mSoundResourceLocation, 100, 1.0F, aX, aY, aZ); } @@ -863,8 +838,8 @@ public class GT_MetaTileEntity_BasicMachine_GT_Recipe extends GT_MetaTileEntity_ // Added to throttle sounds. To reduce lag, this is on the server side so BlockUpdate packets aren't sent. if (myMetaTileEntity.mTickTimer > (myMetaTileEntity.mLastSoundTick + ticksBetweenSounds)) { if (this.mSoundResourceLocation != null - && GT_Utility.isStringValid(this.mSoundResourceLocation.getResourceDomain()) - && GT_Utility.isStringValid(this.mSoundResourceLocation.getResourcePath())) + && GT_Utility.isStringValid(this.mSoundResourceLocation.getResourceDomain()) + && GT_Utility.isStringValid(this.mSoundResourceLocation.getResourcePath())) this.sendLoopStart((byte) 1); // Does not have overflow protection, but they are longs. myMetaTileEntity.mLastSoundTick = myMetaTileEntity.mTickTimer; @@ -888,10 +863,9 @@ public class GT_MetaTileEntity_BasicMachine_GT_Recipe extends GT_MetaTileEntity_ @Override protected ProgressBar createProgressBar(UITexture texture, int imageSize, ProgressBar.Direction direction, - Pos2d pos, Size size) { - return super.createProgressBar(texture, imageSize, direction, pos, size).setTexture( - progressBarTexture.get(), - mRecipes.getProgressBarImageSize()); + Pos2d pos, Size size) { + return super.createProgressBar(texture, imageSize, direction, pos, size) + .setTexture(progressBarTexture.get(), mRecipes.getProgressBarImageSize()); } public enum X { diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_BasicMachine_Steel.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_BasicMachine_Steel.java index 3488ab25c1..8a8f63cdb9 100644 --- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_BasicMachine_Steel.java +++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_BasicMachine_Steel.java @@ -23,20 +23,20 @@ import gregtech.common.power.SteamPower; * Machine */ public abstract class GT_MetaTileEntity_BasicMachine_Steel extends GT_MetaTileEntity_BasicMachine_Bronze - implements IGetTitleColor { + implements IGetTitleColor { public GT_MetaTileEntity_BasicMachine_Steel(int aID, String aName, String aNameRegional, String aDescription, - int aInputSlotCount, int aOutputSlotCount, boolean aHighPressure) { + int aInputSlotCount, int aOutputSlotCount, boolean aHighPressure) { super(aID, aName, aNameRegional, aDescription, aInputSlotCount, aOutputSlotCount, aHighPressure); } public GT_MetaTileEntity_BasicMachine_Steel(String aName, String aDescription, ITexture[][][] aTextures, - int aInputSlotCount, int aOutputSlotCount, boolean aHighPressure) { + int aInputSlotCount, int aOutputSlotCount, boolean aHighPressure) { super(aName, aDescription, aTextures, aInputSlotCount, aOutputSlotCount, aHighPressure); } public GT_MetaTileEntity_BasicMachine_Steel(String aName, String[] aDescription, ITexture[][][] aTextures, - int aInputSlotCount, int aOutputSlotCount, boolean aHighPressure) { + int aInputSlotCount, int aOutputSlotCount, boolean aHighPressure) { super(aName, aDescription, aTextures, aInputSlotCount, aOutputSlotCount, aHighPressure); } @@ -48,99 +48,99 @@ public abstract class GT_MetaTileEntity_BasicMachine_Steel extends GT_MetaTileEn @Override public ITexture[] getSideFacingActive(byte aColor) { return new ITexture[] { TextureFactory.of( - isBricked() ? MACHINE_STEELBRICKS_SIDE : MACHINE_STEEL_SIDE, - Dyes.getModulation(aColor, Dyes._NULL.mRGBa)) }; + isBricked() ? MACHINE_STEELBRICKS_SIDE : MACHINE_STEEL_SIDE, + Dyes.getModulation(aColor, Dyes._NULL.mRGBa)) }; } @Override public ITexture[] getSideFacingInactive(byte aColor) { return new ITexture[] { TextureFactory.of( - isBricked() ? MACHINE_STEELBRICKS_SIDE : MACHINE_STEEL_SIDE, - Dyes.getModulation(aColor, Dyes._NULL.mRGBa)) }; + isBricked() ? MACHINE_STEELBRICKS_SIDE : MACHINE_STEEL_SIDE, + Dyes.getModulation(aColor, Dyes._NULL.mRGBa)) }; } @Override public ITexture[] getFrontFacingActive(byte aColor) { return new ITexture[] { TextureFactory.of( - isBricked() ? MACHINE_STEELBRICKS_SIDE : MACHINE_STEEL_SIDE, - Dyes.getModulation(aColor, Dyes._NULL.mRGBa)) }; + isBricked() ? MACHINE_STEELBRICKS_SIDE : MACHINE_STEEL_SIDE, + Dyes.getModulation(aColor, Dyes._NULL.mRGBa)) }; } @Override public ITexture[] getFrontFacingInactive(byte aColor) { return new ITexture[] { TextureFactory.of( - isBricked() ? MACHINE_STEELBRICKS_SIDE : MACHINE_STEEL_SIDE, - Dyes.getModulation(aColor, Dyes._NULL.mRGBa)) }; + isBricked() ? MACHINE_STEELBRICKS_SIDE : MACHINE_STEEL_SIDE, + Dyes.getModulation(aColor, Dyes._NULL.mRGBa)) }; } @Override public ITexture[] getTopFacingActive(byte aColor) { return new ITexture[] { TextureFactory.of( - isBricked() ? MACHINE_STEELBRICKS_TOP : MACHINE_STEEL_TOP, - Dyes.getModulation(aColor, Dyes._NULL.mRGBa)) }; + isBricked() ? MACHINE_STEELBRICKS_TOP : MACHINE_STEEL_TOP, + Dyes.getModulation(aColor, Dyes._NULL.mRGBa)) }; } @Override public ITexture[] getTopFacingInactive(byte aColor) { return new ITexture[] { TextureFactory.of( - isBricked() ? MACHINE_STEELBRICKS_TOP : MACHINE_STEEL_TOP, - Dyes.getModulation(aColor, Dyes._NULL.mRGBa)) }; + isBricked() ? MACHINE_STEELBRICKS_TOP : MACHINE_STEEL_TOP, + Dyes.getModulation(aColor, Dyes._NULL.mRGBa)) }; } @Override public ITexture[] getBottomFacingActive(byte aColor) { return new ITexture[] { TextureFactory.of( - isBricked() ? MACHINE_STEELBRICKS_BOTTOM : MACHINE_STEEL_BOTTOM, - Dyes.getModulation(aColor, Dyes._NULL.mRGBa)) }; + isBricked() ? MACHINE_STEELBRICKS_BOTTOM : MACHINE_STEEL_BOTTOM, + Dyes.getModulation(aColor, Dyes._NULL.mRGBa)) }; } @Override public ITexture[] getBottomFacingInactive(byte aColor) { return new ITexture[] { TextureFactory.of( - isBricked() ? MACHINE_STEELBRICKS_BOTTOM : MACHINE_STEEL_BOTTOM, - Dyes.getModulation(aColor, Dyes._NULL.mRGBa)) }; + isBricked() ? MACHINE_STEELBRICKS_BOTTOM : MACHINE_STEEL_BOTTOM, + Dyes.getModulation(aColor, Dyes._NULL.mRGBa)) }; } @Override public ITexture[] getBottomFacingPipeActive(byte aColor) { return new ITexture[] { TextureFactory.of( - isBricked() ? MACHINE_STEELBRICKS_BOTTOM : MACHINE_STEEL_BOTTOM, - Dyes.getModulation(aColor, Dyes._NULL.mRGBa)), TextureFactory.of(OVERLAY_PIPE_OUT) }; + isBricked() ? MACHINE_STEELBRICKS_BOTTOM : MACHINE_STEEL_BOTTOM, + Dyes.getModulation(aColor, Dyes._NULL.mRGBa)), TextureFactory.of(OVERLAY_PIPE_OUT) }; } @Override public ITexture[] getBottomFacingPipeInactive(byte aColor) { return new ITexture[] { TextureFactory.of( - isBricked() ? MACHINE_STEELBRICKS_BOTTOM : MACHINE_STEEL_BOTTOM, - Dyes.getModulation(aColor, Dyes._NULL.mRGBa)), TextureFactory.of(OVERLAY_PIPE_OUT) }; + isBricked() ? MACHINE_STEELBRICKS_BOTTOM : MACHINE_STEEL_BOTTOM, + Dyes.getModulation(aColor, Dyes._NULL.mRGBa)), TextureFactory.of(OVERLAY_PIPE_OUT) }; } @Override public ITexture[] getTopFacingPipeActive(byte aColor) { return new ITexture[] { TextureFactory.of( - isBricked() ? MACHINE_STEELBRICKS_TOP : MACHINE_STEEL_TOP, - Dyes.getModulation(aColor, Dyes._NULL.mRGBa)), TextureFactory.of(OVERLAY_PIPE_OUT) }; + isBricked() ? MACHINE_STEELBRICKS_TOP : MACHINE_STEEL_TOP, + Dyes.getModulation(aColor, Dyes._NULL.mRGBa)), TextureFactory.of(OVERLAY_PIPE_OUT) }; } @Override public ITexture[] getTopFacingPipeInactive(byte aColor) { return new ITexture[] { TextureFactory.of( - isBricked() ? MACHINE_STEELBRICKS_TOP : MACHINE_STEEL_TOP, - Dyes.getModulation(aColor, Dyes._NULL.mRGBa)), TextureFactory.of(OVERLAY_PIPE_OUT) }; + isBricked() ? MACHINE_STEELBRICKS_TOP : MACHINE_STEEL_TOP, + Dyes.getModulation(aColor, Dyes._NULL.mRGBa)), TextureFactory.of(OVERLAY_PIPE_OUT) }; } @Override public ITexture[] getSideFacingPipeActive(byte aColor) { return new ITexture[] { TextureFactory.of( - isBricked() ? MACHINE_STEELBRICKS_SIDE : MACHINE_STEEL_SIDE, - Dyes.getModulation(aColor, Dyes._NULL.mRGBa)), TextureFactory.of(OVERLAY_PIPE_OUT) }; + isBricked() ? MACHINE_STEELBRICKS_SIDE : MACHINE_STEEL_SIDE, + Dyes.getModulation(aColor, Dyes._NULL.mRGBa)), TextureFactory.of(OVERLAY_PIPE_OUT) }; } @Override public ITexture[] getSideFacingPipeInactive(byte aColor) { return new ITexture[] { TextureFactory.of( - isBricked() ? MACHINE_STEELBRICKS_SIDE : MACHINE_STEEL_SIDE, - Dyes.getModulation(aColor, Dyes._NULL.mRGBa)), TextureFactory.of(OVERLAY_PIPE_OUT) }; + isBricked() ? MACHINE_STEELBRICKS_SIDE : MACHINE_STEEL_SIDE, + Dyes.getModulation(aColor, Dyes._NULL.mRGBa)), TextureFactory.of(OVERLAY_PIPE_OUT) }; } @Override diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_BasicTank.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_BasicTank.java index 193d654af6..7d4723d4f6 100644 --- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_BasicTank.java +++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_BasicTank.java @@ -32,7 +32,7 @@ import gregtech.common.gui.modularui.widget.FluidDisplaySlotWidget; * This is the main construct for my generic Tanks. Filling and emptying behavior have to be implemented manually */ public abstract class GT_MetaTileEntity_BasicTank extends GT_MetaTileEntity_TieredMachineBlock - implements IHasFluidDisplayItem, IAddUIWidgets { + implements IHasFluidDisplayItem, IAddUIWidgets { public FluidStack mFluid; protected int mOpenerCount; @@ -41,22 +41,22 @@ public abstract class GT_MetaTileEntity_BasicTank extends GT_MetaTileEntity_Tier * @param aInvSlotCount should be 3 */ public GT_MetaTileEntity_BasicTank(int aID, String aName, String aNameRegional, int aTier, int aInvSlotCount, - String aDescription, ITexture... aTextures) { + String aDescription, ITexture... aTextures) { super(aID, aName, aNameRegional, aTier, aInvSlotCount, aDescription, aTextures); } public GT_MetaTileEntity_BasicTank(int aID, String aName, String aNameRegional, int aTier, int aInvSlotCount, - String[] aDescription, ITexture... aTextures) { + String[] aDescription, ITexture... aTextures) { super(aID, aName, aNameRegional, aTier, aInvSlotCount, aDescription, aTextures); } public GT_MetaTileEntity_BasicTank(String aName, int aTier, int aInvSlotCount, String aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, aInvSlotCount, aDescription, aTextures); } public GT_MetaTileEntity_BasicTank(String aName, int aTier, int aInvSlotCount, String[] aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, aInvSlotCount, aDescription, aTextures); } @@ -184,9 +184,9 @@ public abstract class GT_MetaTileEntity_BasicTank extends GT_MetaTileEntity_Tier if (getFillableStack() == null) { if (isFluidInputAllowed(tFluid) && tFluid.amount <= getCapacity()) { if (aBaseMetaTileEntity.addStackToSlot( - getOutputSlot(), - GT_Utility.getContainerForFilledItem(mInventory[getInputSlot()], true), - 1)) { + getOutputSlot(), + GT_Utility.getContainerForFilledItem(mInventory[getInputSlot()], true), + 1)) { setFillableStack(tFluid.copy()); this.onEmptyingContainerWhenEmpty(); aBaseMetaTileEntity.decrStackSize(getInputSlot(), 1); @@ -194,11 +194,11 @@ public abstract class GT_MetaTileEntity_BasicTank extends GT_MetaTileEntity_Tier } } else { if (tFluid.isFluidEqual(getFillableStack()) - && ((long) tFluid.amount + getFillableStack().amount) <= (long) getCapacity()) { + && ((long) tFluid.amount + getFillableStack().amount) <= (long) getCapacity()) { if (aBaseMetaTileEntity.addStackToSlot( - getOutputSlot(), - GT_Utility.getContainerForFilledItem(mInventory[getInputSlot()], true), - 1)) { + getOutputSlot(), + GT_Utility.getContainerForFilledItem(mInventory[getInputSlot()], true), + 1)) { getFillableStack().amount += tFluid.amount; aBaseMetaTileEntity.decrStackSize(getInputSlot(), 1); } @@ -208,11 +208,8 @@ public abstract class GT_MetaTileEntity_BasicTank extends GT_MetaTileEntity_Tier } if (doesFillContainers()) { - ItemStack tOutput = GT_Utility.fillFluidContainer( - getDrainableStack(), - mInventory[getInputSlot()], - false, - true); + ItemStack tOutput = GT_Utility + .fillFluidContainer(getDrainableStack(), mInventory[getInputSlot()], false, true); if (tOutput != null && aBaseMetaTileEntity.addStackToSlot(getOutputSlot(), tOutput, 1)) { FluidStack tFluid = GT_Utility.getFluidForFilledItem(tOutput, true); aBaseMetaTileEntity.decrStackSize(getInputSlot(), 1); @@ -230,10 +227,8 @@ public abstract class GT_MetaTileEntity_BasicTank extends GT_MetaTileEntity_Tier if (ItemList.Display_Fluid.isStackEqual(mInventory[getStackDisplaySlot()], true, true)) mInventory[getStackDisplaySlot()] = null; } else { - mInventory[getStackDisplaySlot()] = GT_Utility.getFluidDisplayStack( - getDisplayedFluid(), - true, - !displaysStackSize()); + mInventory[getStackDisplaySlot()] = GT_Utility + .getFluidDisplayStack(getDisplayedFluid(), true, !displaysStackSize()); } } } @@ -251,13 +246,10 @@ public abstract class GT_MetaTileEntity_BasicTank extends GT_MetaTileEntity_Tier @Override public int fill(FluidStack aFluid, boolean doFill) { if (aFluid == null || aFluid.getFluid() - .getID() - <= 0 || aFluid.amount <= 0 || !canTankBeFilled() || !isFluidInputAllowed(aFluid)) - return 0; + .getID() <= 0 || aFluid.amount <= 0 || !canTankBeFilled() || !isFluidInputAllowed(aFluid)) return 0; if (getFillableStack() == null || getFillableStack().getFluid() - .getID() - <= 0) { + .getID() <= 0) { if (aFluid.amount <= getCapacity()) { if (doFill) { setFillableStack(aFluid.copy()); @@ -320,7 +312,7 @@ public abstract class GT_MetaTileEntity_BasicTank extends GT_MetaTileEntity_Tier if (getCapacity() <= 0 && !getBaseMetaTileEntity().hasSteamEngineUpgrade()) return new FluidTankInfo[] {}; if (isDrainableStackSeparate()) { return new FluidTankInfo[] { new FluidTankInfo(getFillableStack(), getCapacity()), - new FluidTankInfo(getDrainableStack(), getCapacity()) }; + new FluidTankInfo(getDrainableStack(), getCapacity()) }; } else { return new FluidTankInfo[] { new FluidTankInfo(this) }; } @@ -343,56 +335,50 @@ public abstract class GT_MetaTileEntity_BasicTank extends GT_MetaTileEntity_Tier @Override public void addUIWidgets(ModularWindow.Builder builder, UIBuildContext buildContext) { builder.widget( - new DrawableWidget().setDrawable(GT_UITextures.PICTURE_SCREEN_BLACK) - .setPos(7, 16) - .setSize(71, 45)) - .widget( - new DrawableWidget().setDrawable(GT_UITextures.PICTURE_GAUGE) - .setPos(79, 34) - .setSize(18, 18)) - .widget( - new SlotWidget(inventoryHandler, getInputSlot()) - .setBackground( - getGUITextureSet().getItemSlot(), - GT_UITextures.OVERLAY_SLOT_IN) - .setPos(79, 16)) - .widget( - new SlotWidget(inventoryHandler, getOutputSlot()) - .setBackground( - getGUITextureSet().getItemSlot(), - GT_UITextures.OVERLAY_SLOT_OUT) - .setPos(79, 52)) - .widget( - createDrainableFluidSlot().setBackground(GT_UITextures.TRANSPARENT) - .setPos(58, 41)) - .widget( - new TextWidget("Liquid Amount").setDefaultColor(COLOR_TEXT_WHITE.get()) - .setPos(10, 20)) - .widget( - TextWidget.dynamicString( - () -> GT_Utility.parseNumberToString(mFluid != null ? mFluid.amount : 0)) - .setDefaultColor(COLOR_TEXT_WHITE.get()) - .setPos(10, 30)); + new DrawableWidget().setDrawable(GT_UITextures.PICTURE_SCREEN_BLACK) + .setPos(7, 16) + .setSize(71, 45)) + .widget( + new DrawableWidget().setDrawable(GT_UITextures.PICTURE_GAUGE) + .setPos(79, 34) + .setSize(18, 18)) + .widget( + new SlotWidget(inventoryHandler, getInputSlot()) + .setBackground(getGUITextureSet().getItemSlot(), GT_UITextures.OVERLAY_SLOT_IN) + .setPos(79, 16)) + .widget( + new SlotWidget(inventoryHandler, getOutputSlot()) + .setBackground(getGUITextureSet().getItemSlot(), GT_UITextures.OVERLAY_SLOT_OUT) + .setPos(79, 52)) + .widget( + createDrainableFluidSlot().setBackground(GT_UITextures.TRANSPARENT) + .setPos(58, 41)) + .widget( + new TextWidget("Liquid Amount").setDefaultColor(COLOR_TEXT_WHITE.get()) + .setPos(10, 20)) + .widget( + TextWidget.dynamicString(() -> GT_Utility.parseNumberToString(mFluid != null ? mFluid.amount : 0)) + .setDefaultColor(COLOR_TEXT_WHITE.get()) + .setPos(10, 30)); } protected FluidDisplaySlotWidget createDrainableFluidSlot() { - return new FluidDisplaySlotWidget( - inventoryHandler, - getStackDisplaySlot()).setFluidAccessConstructor(() -> constructFluidAccess(false)) - .setIHasFluidDisplay(this) - .setCanDrain(true) - .setCanFill(!isDrainableStackSeparate()) - .setActionRealClick(FluidDisplaySlotWidget.Action.TRANSFER) - .setBeforeRealClick((clickData, widget) -> { - if (NetworkUtils.isClient()) { - // propagate display item content to actual fluid stored in this tank - setDrainableStack( - GT_Utility.getFluidFromDisplayStack( - widget.getMcSlot() - .getStack())); - } - return true; - }); + return new FluidDisplaySlotWidget(inventoryHandler, getStackDisplaySlot()) + .setFluidAccessConstructor(() -> constructFluidAccess(false)) + .setIHasFluidDisplay(this) + .setCanDrain(true) + .setCanFill(!isDrainableStackSeparate()) + .setActionRealClick(FluidDisplaySlotWidget.Action.TRANSFER) + .setBeforeRealClick((clickData, widget) -> { + if (NetworkUtils.isClient()) { + // propagate display item content to actual fluid stored in this tank + setDrainableStack( + GT_Utility.getFluidFromDisplayStack( + widget.getMcSlot() + .getStack())); + } + return true; + }); } protected IFluidAccess constructFluidAccess(boolean aIsFillableStack) { diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Buffer.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Buffer.java index 1b451f3108..f7f69ae924 100644 --- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Buffer.java +++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Buffer.java @@ -33,26 +33,26 @@ public abstract class GT_MetaTileEntity_Buffer extends GT_MetaTileEntity_TieredM public int mMaxStackSize = 64; public static int MAX = 8; public boolean bOutput = false, bRedstoneIfFull = false, bInvert = false, bStockingMode = false, - bSortStacks = false; + bSortStacks = false; public int mSuccess = 0, mTargetStackSize = 0; public GT_MetaTileEntity_Buffer(int aID, String aName, String aNameRegional, int aTier, int aInvSlotCount, - String aDescription) { + String aDescription) { super(aID, aName, aNameRegional, aTier, aInvSlotCount, aDescription); } public GT_MetaTileEntity_Buffer(int aID, String aName, String aNameRegional, int aTier, int aInvSlotCount, - String[] aDescription) { + String[] aDescription) { super(aID, aName, aNameRegional, aTier, aInvSlotCount, aDescription); } public GT_MetaTileEntity_Buffer(String aName, int aTier, int aInvSlotCount, String aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, aInvSlotCount, aDescription, aTextures); } public GT_MetaTileEntity_Buffer(String aName, int aTier, int aInvSlotCount, String[] aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, aInvSlotCount, aDescription, aTextures); } @@ -62,29 +62,29 @@ public abstract class GT_MetaTileEntity_Buffer extends GT_MetaTileEntity_TieredM ITexture tIcon = getOverlayIcon(); ITexture tOut = TextureFactory.of(OVERLAY_PIPE_OUT); ITexture tUp = TextureFactory.of( - TextureFactory.of(ARROW_UP), - TextureFactory.builder() - .addIcon(ARROW_UP_GLOW) - .glow() - .build()); + TextureFactory.of(ARROW_UP), + TextureFactory.builder() + .addIcon(ARROW_UP_GLOW) + .glow() + .build()); ITexture tDown = TextureFactory.of( - TextureFactory.of(ARROW_DOWN), - TextureFactory.builder() - .addIcon(ARROW_DOWN_GLOW) - .glow() - .build()); + TextureFactory.of(ARROW_DOWN), + TextureFactory.builder() + .addIcon(ARROW_DOWN_GLOW) + .glow() + .build()); ITexture tLeft = TextureFactory.of( - TextureFactory.of(ARROW_LEFT), - TextureFactory.builder() - .addIcon(ARROW_LEFT_GLOW) - .glow() - .build()); + TextureFactory.of(ARROW_LEFT), + TextureFactory.builder() + .addIcon(ARROW_LEFT_GLOW) + .glow() + .build()); ITexture tRight = TextureFactory.of( - TextureFactory.of(ARROW_RIGHT), - TextureFactory.builder() - .addIcon(ARROW_RIGHT_GLOW) - .glow() - .build()); + TextureFactory.of(ARROW_RIGHT), + TextureFactory.builder() + .addIcon(ARROW_RIGHT_GLOW) + .glow() + .build()); for (int i = 0; i < rTextures[0].length; i++) { rTextures[OUTPUT_INDEX][i] = new ITexture[] { MACHINE_CASINGS[mTier][i], tOut }; rTextures[ARROW_RIGHT_INDEX][i] = new ITexture[] { MACHINE_CASINGS[mTier][i], tRight, tIcon }; @@ -98,7 +98,7 @@ public abstract class GT_MetaTileEntity_Buffer extends GT_MetaTileEntity_TieredM @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { int colorIndex = aColorIndex + 1; ForgeDirection side = ForgeDirection.VALID_DIRECTIONS[aSide]; ForgeDirection facing = ForgeDirection.VALID_DIRECTIONS[aFacing]; @@ -292,15 +292,15 @@ public abstract class GT_MetaTileEntity_Buffer extends GT_MetaTileEntity_TieredM GT_Utility.sendChatToPlayer(aPlayer, GT_Utility.trans("098", "Do not regulate Item Stack Size")); } else { GT_Utility.sendChatToPlayer( - aPlayer, - GT_Utility.trans("099", "Regulate Item Stack Size to: ") + mTargetStackSize); + aPlayer, + GT_Utility.trans("099", "Regulate Item Stack Size to: ") + mTargetStackSize); } } } @Override public boolean onWrenchRightClick(byte aSide, byte aWrenchingSide, EntityPlayer aPlayer, float aX, float aY, - float aZ) { + float aZ) { aWrenchingSide = GT_Utility.getOppositeSide(aWrenchingSide); if (getBaseMetaTileEntity().isValidFacing(aWrenchingSide)) { getBaseMetaTileEntity().setFrontFacing(aWrenchingSide); @@ -329,9 +329,9 @@ public abstract class GT_MetaTileEntity_Buffer extends GT_MetaTileEntity_TieredM @Override public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTimer) { if (aBaseMetaTileEntity.isAllowedToWork() && aBaseMetaTileEntity.isServerSide() - && (aBaseMetaTileEntity.hasWorkJustBeenEnabled() || aBaseMetaTileEntity.hasInventoryBeenModified() - || aTimer % 200 == 0 - || mSuccess > 0)) { + && (aBaseMetaTileEntity.hasWorkJustBeenEnabled() || aBaseMetaTileEntity.hasInventoryBeenModified() + || aTimer % 200 == 0 + || mSuccess > 0)) { mSuccess--; updateSlots(); moveItems(aBaseMetaTileEntity, aTimer); @@ -351,29 +351,29 @@ public abstract class GT_MetaTileEntity_Buffer extends GT_MetaTileEntity_TieredM protected void moveItems(IGregTechTileEntity aBaseMetaTileEntity, long aTimer, int stacks) { int tCost; if (bStockingMode) tCost = GT_Utility.moveMultipleItemStacks( - aBaseMetaTileEntity, - aBaseMetaTileEntity.getTileEntityAtSide(aBaseMetaTileEntity.getBackFacing()), - aBaseMetaTileEntity.getBackFacing(), - aBaseMetaTileEntity.getFrontFacing(), - null, - false, - mTargetStackSize == 0 ? 64 : (byte) mTargetStackSize, - mTargetStackSize == 0 ? 1 : (byte) mTargetStackSize, - (byte) 64, - (byte) 1, - stacks); + aBaseMetaTileEntity, + aBaseMetaTileEntity.getTileEntityAtSide(aBaseMetaTileEntity.getBackFacing()), + aBaseMetaTileEntity.getBackFacing(), + aBaseMetaTileEntity.getFrontFacing(), + null, + false, + mTargetStackSize == 0 ? 64 : (byte) mTargetStackSize, + mTargetStackSize == 0 ? 1 : (byte) mTargetStackSize, + (byte) 64, + (byte) 1, + stacks); else tCost = GT_Utility.moveMultipleItemStacks( - aBaseMetaTileEntity, - aBaseMetaTileEntity.getTileEntityAtSide(aBaseMetaTileEntity.getBackFacing()), - aBaseMetaTileEntity.getBackFacing(), - aBaseMetaTileEntity.getFrontFacing(), - null, - false, - (byte) 64, - (byte) 1, - mTargetStackSize == 0 ? 64 : (byte) mTargetStackSize, - mTargetStackSize == 0 ? 1 : (byte) mTargetStackSize, - stacks); + aBaseMetaTileEntity, + aBaseMetaTileEntity.getTileEntityAtSide(aBaseMetaTileEntity.getBackFacing()), + aBaseMetaTileEntity.getBackFacing(), + aBaseMetaTileEntity.getFrontFacing(), + null, + false, + (byte) 64, + (byte) 1, + mTargetStackSize == 0 ? 64 : (byte) mTargetStackSize, + mTargetStackSize == 0 ? 1 : (byte) mTargetStackSize, + stacks); if (tCost > 0 || aBaseMetaTileEntity.hasInventoryBeenModified()) { mSuccess = 50; @@ -424,7 +424,7 @@ public abstract class GT_MetaTileEntity_Buffer extends GT_MetaTileEntity_TieredM int slot = validSlots.get(slotindex); slotindex++; mInventory[slot] = stacks.get(sID) - .copy(); + .copy(); toSet = Math.min(toSet, mInventory[slot].getMaxStackSize()); mInventory[slot].stackSize = toSet; slots.merge(sID, toSet, (a, b) -> a - b); @@ -433,14 +433,14 @@ public abstract class GT_MetaTileEntity_Buffer extends GT_MetaTileEntity_TieredM @Override public boolean onSolderingToolRightClick(byte aSide, byte aWrenchingSide, EntityPlayer aPlayer, float aX, float aY, - float aZ) { + float aZ) { if (aPlayer.isSneaking()) { // I was so proud of all this but I literally just copied code from OutputBus bSortStacks = !bSortStacks; GT_Utility.sendChatToPlayer( - aPlayer, - GT_Utility.trans("200", "Sort mode: ") - + (bSortStacks ? GT_Utility.trans("088", "Enabled") : GT_Utility.trans("087", "Disabled"))); + aPlayer, + GT_Utility.trans("200", "Sort mode: ") + + (bSortStacks ? GT_Utility.trans("088", "Enabled") : GT_Utility.trans("087", "Disabled"))); return true; } return super.onSolderingToolRightClick(aSide, aWrenchingSide, aPlayer, aX, aY, aZ); @@ -456,21 +456,19 @@ public abstract class GT_MetaTileEntity_Buffer extends GT_MetaTileEntity_TieredM bOutput = !bOutput; if (bOutput) { GT_Utility.sendChatToPlayer( - widget.getContext() - .getPlayer(), - GT_Utility.trans("116", "Emit Energy to Outputside")); + widget.getContext() + .getPlayer(), + GT_Utility.trans("116", "Emit Energy to Outputside")); } else { GT_Utility.sendChatToPlayer( - widget.getContext() - .getPlayer(), - GT_Utility.trans("117", "Don't emit Energy")); + widget.getContext() + .getPlayer(), + GT_Utility.trans("117", "Don't emit Energy")); } }) - .setBackground( - GT_UITextures.BUTTON_STANDARD, - GT_UITextures.OVERLAY_BUTTON_EMIT_ENERGY) - .setPos(7, 62) - .setSize(18, 18)); + .setBackground(GT_UITextures.BUTTON_STANDARD, GT_UITextures.OVERLAY_BUTTON_EMIT_ENERGY) + .setPos(7, 62) + .setSize(18, 18)); } protected void addEmitRedstoneButton(ModularWindow.Builder builder) { @@ -478,21 +476,19 @@ public abstract class GT_MetaTileEntity_Buffer extends GT_MetaTileEntity_TieredM bRedstoneIfFull = !bRedstoneIfFull; if (bRedstoneIfFull) { GT_Utility.sendChatToPlayer( - widget.getContext() - .getPlayer(), - GT_Utility.trans("118", "Emit Redstone if no Slot is free")); + widget.getContext() + .getPlayer(), + GT_Utility.trans("118", "Emit Redstone if no Slot is free")); } else { GT_Utility.sendChatToPlayer( - widget.getContext() - .getPlayer(), - GT_Utility.trans("119", "Don't emit Redstone")); + widget.getContext() + .getPlayer(), + GT_Utility.trans("119", "Don't emit Redstone")); } }) - .setBackground( - GT_UITextures.BUTTON_STANDARD, - GT_UITextures.OVERLAY_BUTTON_EMIT_REDSTONE) - .setPos(25, 62) - .setSize(18, 18)); + .setBackground(GT_UITextures.BUTTON_STANDARD, GT_UITextures.OVERLAY_BUTTON_EMIT_REDSTONE) + .setPos(25, 62) + .setSize(18, 18)); } protected void addInvertRedstoneButton(ModularWindow.Builder builder) { @@ -500,21 +496,19 @@ public abstract class GT_MetaTileEntity_Buffer extends GT_MetaTileEntity_TieredM bInvert = !bInvert; if (bInvert) { GT_Utility.sendChatToPlayer( - widget.getContext() - .getPlayer(), - GT_Utility.trans("120", "Invert Redstone")); + widget.getContext() + .getPlayer(), + GT_Utility.trans("120", "Invert Redstone")); } else { GT_Utility.sendChatToPlayer( - widget.getContext() - .getPlayer(), - GT_Utility.trans("121", "Don't invert Redstone")); + widget.getContext() + .getPlayer(), + GT_Utility.trans("121", "Don't invert Redstone")); } }) - .setBackground( - GT_UITextures.BUTTON_STANDARD, - GT_UITextures.OVERLAY_BUTTON_INVERT_REDSTONE) - .setPos(43, 62) - .setSize(18, 18)); + .setBackground(GT_UITextures.BUTTON_STANDARD, GT_UITextures.OVERLAY_BUTTON_INVERT_REDSTONE) + .setPos(43, 62) + .setSize(18, 18)); } protected void addStockingModeButton(ModularWindow.Builder builder) { @@ -522,32 +516,30 @@ public abstract class GT_MetaTileEntity_Buffer extends GT_MetaTileEntity_TieredM bStockingMode = !bStockingMode; if (bStockingMode) { GT_Utility.sendChatToPlayer( - widget.getContext() - .getPlayer(), - GT_Utility.trans( - "217", - "Stocking mode. Keeps this many items in destination input slots. This mode can be server unfriendly.")); + widget.getContext() + .getPlayer(), + GT_Utility.trans( + "217", + "Stocking mode. Keeps this many items in destination input slots. This mode can be server unfriendly.")); } else { GT_Utility.sendChatToPlayer( - widget.getContext() - .getPlayer(), - GT_Utility.trans( - "218", - "Transfer size mode. Add exactly this many items in destination input slots as long as there is room.")); + widget.getContext() + .getPlayer(), + GT_Utility.trans( + "218", + "Transfer size mode. Add exactly this many items in destination input slots as long as there is room.")); } }) - .setBackground( - GT_UITextures.BUTTON_STANDARD, - GT_UITextures.OVERLAY_BUTTON_STOCKING_MODE) - .setPos(61, 62) - .setSize(18, 18)); + .setBackground(GT_UITextures.BUTTON_STANDARD, GT_UITextures.OVERLAY_BUTTON_STOCKING_MODE) + .setPos(61, 62) + .setSize(18, 18)); } protected void addInventorySlots(ModularWindow.Builder builder) { builder.widget( - SlotGroup.ofItemHandler(inventoryHandler, 9) - .endAtSlot(26) - .build() - .setPos(7, 4)); + SlotGroup.ofItemHandler(inventoryHandler, 9) + .endAtSlot(26) + .build() + .setPos(7, 4)); } } diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_CubicMultiBlockBase.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_CubicMultiBlockBase.java index 700732f033..a4456e056c 100644 --- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_CubicMultiBlockBase.java +++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_CubicMultiBlockBase.java @@ -36,7 +36,7 @@ import gregtech.api.util.GT_StructureUtility; * @param */ public abstract class GT_MetaTileEntity_CubicMultiBlockBase> - extends GT_MetaTileEntity_EnhancedMultiBlockBase implements ISurvivalConstructable { + extends GT_MetaTileEntity_EnhancedMultiBlockBase implements ISurvivalConstructable { protected static final String STRUCTURE_PIECE_MAIN = "main"; protected static final ClassValue>> STRUCTURE_DEFINITION = new ClassValue<>() { @@ -44,27 +44,23 @@ public abstract class GT_MetaTileEntity_CubicMultiBlockBase> computeValue(Class type) { return StructureDefinition.>builder() - .addShape( - STRUCTURE_PIECE_MAIN, - transpose( - new String[][] { { "hhh", "hhh", "hhh" }, { "h~h", "h-h", "hhh" }, - { "hhh", "hhh", "hhh" }, })) - .addElement( - 'h', - ofChain( - lazy( - t -> GT_StructureUtility.>buildHatchAdder() - .atLeastList( - t.getAllowedHatches()) - .casingIndex( - t.getHatchTextureIndex()) - .dot(1) - .build()), - onElementPass( - GT_MetaTileEntity_CubicMultiBlockBase::onCorrectCasingAdded, - lazy( - GT_MetaTileEntity_CubicMultiBlockBase::getCasingElement)))) - .build(); + .addShape( + STRUCTURE_PIECE_MAIN, + transpose( + new String[][] { { "hhh", "hhh", "hhh" }, { "h~h", "h-h", "hhh" }, { "hhh", "hhh", "hhh" }, })) + .addElement( + 'h', + ofChain( + lazy( + t -> GT_StructureUtility.>buildHatchAdder() + .atLeastList(t.getAllowedHatches()) + .casingIndex(t.getHatchTextureIndex()) + .dot(1) + .build()), + onElementPass( + GT_MetaTileEntity_CubicMultiBlockBase::onCorrectCasingAdded, + lazy(GT_MetaTileEntity_CubicMultiBlockBase::getCasingElement)))) + .build(); } }; private int mCasingAmount = 0; @@ -104,7 +100,7 @@ public abstract class GT_MetaTileEntity_CubicMultiBlockBase= getRequiredCasingCount() - && checkHatches(aBaseMetaTileEntity, aStack); + && checkHatches(aBaseMetaTileEntity, aStack); } /** diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_EnhancedMultiBlockBase.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_EnhancedMultiBlockBase.java index bd6facceee..6fdfa53a14 100644 --- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_EnhancedMultiBlockBase.java +++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_EnhancedMultiBlockBase.java @@ -32,7 +32,7 @@ import gregtech.api.util.GT_Multiblock_Tooltip_Builder; * @param type of this */ public abstract class GT_MetaTileEntity_EnhancedMultiBlockBase> - extends GT_MetaTileEntity_TooltipMultiBlockBase implements IAlignment, IConstructable { + extends GT_MetaTileEntity_TooltipMultiBlockBase implements IAlignment, IConstructable { private ExtendedFacing mExtendedFacing = ExtendedFacing.DEFAULT; private IAlignmentLimits mLimits = getInitialAlignmentLimits(); @@ -60,15 +60,15 @@ public abstract class GT_MetaTileEntity_EnhancedMultiBlockBase 0) checkStructure(true, getBaseMetaTileEntity()); return built; } protected final int survivialBuildPiece(String piece, ItemStack trigger, int horizontalOffset, int verticalOffset, - int depthOffset, int elementsBudget, ISurvivalBuildEnvironment env, boolean check, boolean checkIfPlaced) { + int depthOffset, int elementsBudget, ISurvivalBuildEnvironment env, boolean check, boolean checkIfPlaced) { int built = survivialBuildPiece( - piece, - trigger, - horizontalOffset, - verticalOffset, - depthOffset, - elementsBudget, - env, - check); + piece, + trigger, + horizontalOffset, + verticalOffset, + depthOffset, + elementsBudget, + env, + check); if (checkIfPlaced && built > 0) checkStructure(true, getBaseMetaTileEntity()); return built; } diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_ExtendedPowerMultiBlockBase.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_ExtendedPowerMultiBlockBase.java index 99b5c6c550..b5eb13b385 100644 --- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_ExtendedPowerMultiBlockBase.java +++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_ExtendedPowerMultiBlockBase.java @@ -21,7 +21,7 @@ import gregtech.api.util.GT_Utility; * Multiblock base class that allows machine to use power over int. */ public abstract class GT_MetaTileEntity_ExtendedPowerMultiBlockBase> - extends GT_MetaTileEntity_EnhancedMultiBlockBase { + extends GT_MetaTileEntity_EnhancedMultiBlockBase { public long lEUt; @@ -48,7 +48,7 @@ public abstract class GT_MetaTileEntity_ExtendedPowerMultiBlockBase= 2 ? "s" : ""))); + id, + name, + nameRegional, + tier, + slots, + ArrayExt.of( + "Item Input for Multiblocks", + "Shift + right click with screwdriver to turn Sort mode on/off", + "Capacity: " + getSlots(tier) + " stack" + (getSlots(tier) >= 2 ? "s" : ""))); } @Deprecated @@ -70,22 +70,22 @@ public class GT_MetaTileEntity_Hatch_InputBus extends GT_MetaTileEntity_Hatch } public GT_MetaTileEntity_Hatch_InputBus(String aName, int aTier, int aSlots, String[] aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, aSlots, aDescription, aTextures); } @Override public ITexture[] getTexturesActive(ITexture aBaseTexture) { return GT_Mod.gregtechproxy.mRenderIndicatorsOnHatch - ? new ITexture[] { aBaseTexture, TextureFactory.of(OVERLAY_PIPE_IN), TextureFactory.of(ITEM_IN_SIGN) } - : new ITexture[] { aBaseTexture, TextureFactory.of(OVERLAY_PIPE_IN) }; + ? new ITexture[] { aBaseTexture, TextureFactory.of(OVERLAY_PIPE_IN), TextureFactory.of(ITEM_IN_SIGN) } + : new ITexture[] { aBaseTexture, TextureFactory.of(OVERLAY_PIPE_IN) }; } @Override public ITexture[] getTexturesInactive(ITexture aBaseTexture) { return GT_Mod.gregtechproxy.mRenderIndicatorsOnHatch - ? new ITexture[] { aBaseTexture, TextureFactory.of(OVERLAY_PIPE_IN), TextureFactory.of(ITEM_IN_SIGN) } - : new ITexture[] { aBaseTexture, TextureFactory.of(OVERLAY_PIPE_IN) }; + ? new ITexture[] { aBaseTexture, TextureFactory.of(OVERLAY_PIPE_IN), TextureFactory.of(ITEM_IN_SIGN) } + : new ITexture[] { aBaseTexture, TextureFactory.of(OVERLAY_PIPE_IN) }; } @Override @@ -132,8 +132,8 @@ public class GT_MetaTileEntity_Hatch_InputBus extends GT_MetaTileEntity_Hatch @Override public void initDefaultModes(NBTTagCompound aNBT) { if (!getBaseMetaTileEntity().getWorld().isRemote) { - GT_ClientPreference tPreference = GT_Mod.gregtechproxy.getClientPreference( - getBaseMetaTileEntity().getOwnerUuid()); + GT_ClientPreference tPreference = GT_Mod.gregtechproxy + .getClientPreference(getBaseMetaTileEntity().getOwnerUuid()); if (tPreference != null) disableFilter = !tPreference.isInputBusInitialFilterEnabled(); } } @@ -175,7 +175,7 @@ public class GT_MetaTileEntity_Hatch_InputBus extends GT_MetaTileEntity_Hatch int slot = validSlots.get(slotindex); slotindex++; mInventory[slot] = stacks.get(sID) - .copy(); + .copy(); toSet = Math.min(toSet, mInventory[slot].getMaxStackSize()); mInventory[slot].stackSize = toSet; slots.merge(sID, toSet, (a, b) -> a - b); @@ -203,8 +203,7 @@ public class GT_MetaTileEntity_Hatch_InputBus extends GT_MetaTileEntity_Hatch @Override public void onScrewdriverRightClick(byte aSide, EntityPlayer aPlayer, float aX, float aY, float aZ) { if (!getBaseMetaTileEntity().getCoverInfoAtSide(aSide) - .isGUIClickable()) - return; + .isGUIClickable()) return; if (aPlayer.isSneaking()) { if (disableSort) { disableSort = false; @@ -217,14 +216,13 @@ public class GT_MetaTileEntity_Hatch_InputBus extends GT_MetaTileEntity_Hatch } } GT_Utility.sendChatToPlayer( - aPlayer, - StatCollector.translateToLocal("GT5U.hatch.disableSort." + disableSort) + " " - + StatCollector.translateToLocal("GT5U.hatch.disableLimited." + disableLimited)); + aPlayer, + StatCollector.translateToLocal("GT5U.hatch.disableSort." + disableSort) + " " + + StatCollector.translateToLocal("GT5U.hatch.disableLimited." + disableLimited)); } else { disableFilter = !disableFilter; - GT_Utility.sendChatToPlayer( - aPlayer, - StatCollector.translateToLocal("GT5U.hatch.disableFilter." + disableFilter)); + GT_Utility + .sendChatToPlayer(aPlayer, StatCollector.translateToLocal("GT5U.hatch.disableFilter." + disableFilter)); } } @@ -237,8 +235,8 @@ public class GT_MetaTileEntity_Hatch_InputBus extends GT_MetaTileEntity_Hatch @Override public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack) { return aSide == getBaseMetaTileEntity().getFrontFacing() && aIndex != getCircuitSlot() - && (mRecipeMap == null || disableFilter || mRecipeMap.containsInput(aStack)) - && (disableLimited || limitedAllowPutStack(aIndex, aStack)); + && (mRecipeMap == null || disableFilter || mRecipeMap.containsInput(aStack)) + && (disableLimited || limitedAllowPutStack(aIndex, aStack)); } protected boolean limitedAllowPutStack(int aIndex, ItemStack aStack) { diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Maintenance.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Maintenance.java index a2d30a9d72..12a55d097c 100644 --- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Maintenance.java +++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Maintenance.java @@ -44,7 +44,7 @@ public class GT_MetaTileEntity_Hatch_Maintenance extends GT_MetaTileEntity_Hatch private static ItemStack[] sAutoMaintenanceInputs; public boolean mWrench = false, mScrewdriver = false, mSoftHammer = false, mHardHammer = false, - mSolderingTool = false, mCrowbar = false, mAuto; + mSolderingTool = false, mCrowbar = false, mAuto; public GT_MetaTileEntity_Hatch_Maintenance(int aID, String aName, String aNameRegional, int aTier) { super(aID, aName, aNameRegional, aTier, 1, "For maintaining Multiblocks"); @@ -57,22 +57,22 @@ public class GT_MetaTileEntity_Hatch_Maintenance extends GT_MetaTileEntity_Hatch } public GT_MetaTileEntity_Hatch_Maintenance(String aName, int aTier, String aDescription, ITexture[][][] aTextures, - boolean aAuto) { + boolean aAuto) { super(aName, aTier, aAuto ? 4 : 1, aDescription, aTextures); mAuto = aAuto; } public GT_MetaTileEntity_Hatch_Maintenance(String aName, int aTier, String[] aDescription, ITexture[][][] aTextures, - boolean aAuto) { + boolean aAuto) { super(aName, aTier, aAuto ? 4 : 1, aDescription, aTextures); mAuto = aAuto; } private static ItemStack[] getAutoMaintenanceInputs() { if (sAutoMaintenanceInputs == null) sAutoMaintenanceInputs = new ItemStack[] { ItemList.Duct_Tape.get(4), - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Lubricant, 2), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Steel, 4), - GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Advanced, 2) }; + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Lubricant, 2), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Steel, 4), + GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Advanced, 2) }; return sAutoMaintenanceInputs; } @@ -96,22 +96,22 @@ public class GT_MetaTileEntity_Hatch_Maintenance extends GT_MetaTileEntity_Hatch @Override public ITexture[] getTexturesActive(ITexture aBaseTexture) { if (mAuto) return new ITexture[] { aBaseTexture, TextureFactory.of(OVERLAY_AUTOMAINTENANCE_IDLE), - TextureFactory.builder() - .addIcon(OVERLAY_AUTOMAINTENANCE_IDLE_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(OVERLAY_AUTOMAINTENANCE_IDLE_GLOW) + .glow() + .build() }; return new ITexture[] { aBaseTexture, TextureFactory.of(OVERLAY_MAINTENANCE) }; } @Override public ITexture[] getTexturesInactive(ITexture aBaseTexture) { if (mAuto) return new ITexture[] { aBaseTexture, TextureFactory.of(OVERLAY_AUTOMAINTENANCE), - TextureFactory.builder() - .addIcon(OVERLAY_AUTOMAINTENANCE_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(OVERLAY_AUTOMAINTENANCE_GLOW) + .glow() + .build() }; return new ITexture[] { aBaseTexture, TextureFactory.of(OVERLAY_MAINTENANCE), - TextureFactory.of(OVERLAY_DUCTTAPE) }; + TextureFactory.of(OVERLAY_DUCTTAPE) }; } @Override @@ -148,14 +148,13 @@ public class GT_MetaTileEntity_Hatch_Maintenance extends GT_MetaTileEntity_Hatch @Override public boolean onRightclick(IGregTechTileEntity aBaseMetaTileEntity, EntityPlayer aPlayer, byte aSide, float aX, - float aY, float aZ) { + float aY, float aZ) { if (aBaseMetaTileEntity.isClientSide()) return true; if (aSide == aBaseMetaTileEntity.getFrontFacing()) { // only allow OC robot fake player if (aPlayer instanceof FakePlayer && !aPlayer.getGameProfile() - .getName() - .endsWith(".robot")) - return false; + .getName() + .endsWith(".robot")) return false; ItemStack tStack = aPlayer.getCurrentEquippedItem(); if (tStack != null) { if (tStack.getItem() instanceof ItemToolbox) { @@ -202,10 +201,8 @@ public class GT_MetaTileEntity_Hatch_Maintenance extends GT_MetaTileEntity_Hatch amt = tStack.stackSize; boolean temp = true; for (ItemStack aStack : mInventory) { - if ((GT_Utility.areUnificationsEqual(aStack, tStack, true) || GT_Utility.areUnificationsEqual( - GT_OreDictUnificator.get(false, aStack), - tStack, - true))) { + if ((GT_Utility.areUnificationsEqual(aStack, tStack, true) + || GT_Utility.areUnificationsEqual(GT_OreDictUnificator.get(false, aStack), tStack, true))) { amt -= aStack.stackSize; if (amt < 1) { temp = false; @@ -222,10 +219,8 @@ public class GT_MetaTileEntity_Hatch_Maintenance extends GT_MetaTileEntity_Hatch if (tStack != null) { amt = tStack.stackSize; for (ItemStack aStack : mInventory) { - if ((GT_Utility.areUnificationsEqual(aStack, tStack, true) || GT_Utility.areUnificationsEqual( - GT_OreDictUnificator.get(false, aStack), - tStack, - true))) { + if ((GT_Utility.areUnificationsEqual(aStack, tStack, true) || GT_Utility + .areUnificationsEqual(GT_OreDictUnificator.get(false, aStack), tStack, true))) { if (aStack.stackSize < amt) { amt -= aStack.stackSize; aStack.stackSize = 0; @@ -259,20 +254,15 @@ public class GT_MetaTileEntity_Hatch_Maintenance extends GT_MetaTileEntity_Hatch } if (GT_Utility.isStackInList(aStack, GregTech_API.sWrenchList) && !mWrench - && GT_ModHandler.damageOrDechargeItem(aStack, 1, 1000, aPlayer)) - mWrench = true; + && GT_ModHandler.damageOrDechargeItem(aStack, 1, 1000, aPlayer)) mWrench = true; if (GT_Utility.isStackInList(aStack, GregTech_API.sScrewdriverList) && !mScrewdriver - && GT_ModHandler.damageOrDechargeItem(aStack, 1, 1000, aPlayer)) - mScrewdriver = true; + && GT_ModHandler.damageOrDechargeItem(aStack, 1, 1000, aPlayer)) mScrewdriver = true; if (GT_Utility.isStackInList(aStack, GregTech_API.sSoftHammerList) && !mSoftHammer - && GT_ModHandler.damageOrDechargeItem(aStack, 1, 1000, aPlayer)) - mSoftHammer = true; + && GT_ModHandler.damageOrDechargeItem(aStack, 1, 1000, aPlayer)) mSoftHammer = true; if (GT_Utility.isStackInList(aStack, GregTech_API.sHardHammerList) && !mHardHammer - && GT_ModHandler.damageOrDechargeItem(aStack, 1, 1000, aPlayer)) - mHardHammer = true; + && GT_ModHandler.damageOrDechargeItem(aStack, 1, 1000, aPlayer)) mHardHammer = true; if (GT_Utility.isStackInList(aStack, GregTech_API.sCrowbarList) && !mCrowbar - && GT_ModHandler.damageOrDechargeItem(aStack, 1, 1000, aPlayer)) - mCrowbar = true; + && GT_ModHandler.damageOrDechargeItem(aStack, 1, 1000, aPlayer)) mCrowbar = true; if (!mSolderingTool && GT_ModHandler.useSolderingIron(aStack, aPlayer, aToolboxInventory)) mSolderingTool = true; if (GT_OreDictUnificator.isItemStackInstanceOf(aStack, "craftingDuctTape")) { @@ -312,12 +302,11 @@ public class GT_MetaTileEntity_Hatch_Maintenance extends GT_MetaTileEntity_Hatch public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack) { if (mAuto && GT_Mod.gregtechproxy.mAMHInteraction) { for (int i = 0; i < getSizeInventory(); i++) if (GT_Utility.areStacksEqual( - GT_OreDictUnificator.get(false, aStack), - GT_OreDictUnificator.get(false, getStackInSlot(i)))) - return i == aIndex; + GT_OreDictUnificator.get(false, aStack), + GT_OreDictUnificator.get(false, getStackInSlot(i)))) return i == aIndex; for (ItemStack tInput : getAutoMaintenanceInputs()) if (GT_Utility.areUnificationsEqual(tInput, aStack, true) - || GT_Utility.areUnificationsEqual(GT_OreDictUnificator.get(false, aStack), tInput, true)) + || GT_Utility.areUnificationsEqual(GT_OreDictUnificator.get(false, aStack), tInput, true)) return true; } return false; @@ -334,33 +323,33 @@ public class GT_MetaTileEntity_Hatch_Maintenance extends GT_MetaTileEntity_Hatch getBaseMetaTileEntity().add2by2Slots(builder); } else { builder.widget( - new DrawableWidget().setDrawable(GT_UITextures.SLOT_MAINTENANCE) - .setPos(78, 33) - .setSize(20, 20)) - .widget(new SlotWidget(BaseSlot.empty()) { - - @Override - public boolean handleDragAndDrop(ItemStack draggedStack, int button) { - return false; - } - - @Override - protected void phantomClick(ClickData clickData, ItemStack cursorStack) { - if (cursorStack == null) return; - onToolClick(cursorStack, getContext().getPlayer()); - if (cursorStack.stackSize < 1) { - getContext().getPlayer().inventory.setItemStack(null); - } - if (getContext().getPlayer() instanceof EntityPlayerMP) { - ((EntityPlayerMP) getContext().getPlayer()).updateHeldItem(); - } - } - }.disableShiftInsert() + new DrawableWidget().setDrawable(GT_UITextures.SLOT_MAINTENANCE) + .setPos(78, 33) + .setSize(20, 20)) + .widget(new SlotWidget(BaseSlot.empty()) { + + @Override + public boolean handleDragAndDrop(ItemStack draggedStack, int button) { + return false; + } + + @Override + protected void phantomClick(ClickData clickData, ItemStack cursorStack) { + if (cursorStack == null) return; + onToolClick(cursorStack, getContext().getPlayer()); + if (cursorStack.stackSize < 1) { + getContext().getPlayer().inventory.setItemStack(null); + } + if (getContext().getPlayer() instanceof EntityPlayerMP) { + ((EntityPlayerMP) getContext().getPlayer()).updateHeldItem(); + } + } + }.disableShiftInsert() .setBackground(GT_UITextures.TRANSPARENT) .setPos(79, 34)) - .widget( - new TextWidget("Click with Tool to repair.").setDefaultColor(COLOR_TEXT_GRAY.get()) - .setPos(8, 12)); + .widget( + new TextWidget("Click with Tool to repair.").setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(8, 12)); } } } diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Muffler.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Muffler.java index f0f1705b1f..1fdafd7f35 100644 --- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Muffler.java +++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Muffler.java @@ -27,14 +27,14 @@ import gregtech.common.tileentities.machines.multi.GT_MetaTileEntity_Cleanroom; public class GT_MetaTileEntity_Hatch_Muffler extends GT_MetaTileEntity_Hatch { private static final String localizedDescFormat = GT_LanguageManager.addStringLocalization( - "gt.blockmachines.hatch.muffler.desc.format", - "Outputs the Pollution (Might cause ... things)%n" + "DO NOT OBSTRUCT THE OUTPUT!%n" - + "Reduces Pollution to %d%%%n" - + "Recovers %d%% of CO2/CO/SO2"); + "gt.blockmachines.hatch.muffler.desc.format", + "Outputs the Pollution (Might cause ... things)%n" + "DO NOT OBSTRUCT THE OUTPUT!%n" + + "Reduces Pollution to %d%%%n" + + "Recovers %d%% of CO2/CO/SO2"); private final int pollutionReduction = calculatePollutionReduction(100); private final int pollutionRecover = 100 - pollutionReduction; private final String[] description = String.format(localizedDescFormat, pollutionReduction, pollutionRecover) - .split("\\R"); + .split("\\R"); private final boolean[] facings = new boolean[ForgeDirection.VALID_DIRECTIONS.length]; public GT_MetaTileEntity_Hatch_Muffler(int aID, String aName, String aNameRegional, int aTier) { @@ -42,7 +42,7 @@ public class GT_MetaTileEntity_Hatch_Muffler extends GT_MetaTileEntity_Hatch { } public GT_MetaTileEntity_Hatch_Muffler(int aID, String aName, String aNameRegional, int aTier, int aInvSlotCount, - String[] aDescription, ITexture... aTextures) { + String[] aDescription, ITexture... aTextures) { super(aID, aName, aNameRegional, aTier, aInvSlotCount, aDescription, aTextures); } @@ -55,7 +55,7 @@ public class GT_MetaTileEntity_Hatch_Muffler extends GT_MetaTileEntity_Hatch { } public GT_MetaTileEntity_Hatch_Muffler(String aName, int aTier, int aInvSlotCount, String[] aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, aInvSlotCount, aDescription, aTextures); setInValidFacings(ForgeDirection.DOWN); } @@ -104,11 +104,11 @@ public class GT_MetaTileEntity_Hatch_Muffler extends GT_MetaTileEntity_Hatch { public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) { super.onPostTick(aBaseMetaTileEntity, aTick); if (aBaseMetaTileEntity.isClientSide() && this.getBaseMetaTileEntity() - .isActive()) { + .isActive()) { pollutionParticles( - this.getBaseMetaTileEntity() - .getWorld(), - ParticleFX.LARGE_SMOKE.toString()); + this.getBaseMetaTileEntity() + .getWorld(), + ParticleFX.LARGE_SMOKE.toString()); } } @@ -163,35 +163,34 @@ public class GT_MetaTileEntity_Hatch_Muffler extends GT_MetaTileEntity_Hatch { zSpd = aDir.offsetZ * (0.1F + 0.2F * XSTR_INSTANCE.nextFloat()); } - WorldSpawnedEventBuilder.ParticleEventBuilder events = new WorldSpawnedEventBuilder.ParticleEventBuilder().setIdentifier( - name) - .setWorld( - aWorld) - .setMotion( - xSpd, - ySpd, - zSpd); + WorldSpawnedEventBuilder.ParticleEventBuilder events = new WorldSpawnedEventBuilder.ParticleEventBuilder() + .setIdentifier(name) + .setWorld(aWorld) + .setMotion(xSpd, ySpd, zSpd); if (chk1) { - events.setPosition( + events + .setPosition( xPos + ran1 * 0.5F, yPos + XSTR_INSTANCE.nextFloat() * 0.5F, zPos + XSTR_INSTANCE.nextFloat() * 0.5F) - .run(); + .run(); } if (chk2) { - events.setPosition( + events + .setPosition( xPos + ran2 * 0.5F, yPos + XSTR_INSTANCE.nextFloat() * 0.5F, zPos + XSTR_INSTANCE.nextFloat() * 0.5F) - .run(); + .run(); } if (chk3) { - events.setPosition( + events + .setPosition( xPos + ran3 * 0.5F, yPos + XSTR_INSTANCE.nextFloat() * 0.5F, zPos + XSTR_INSTANCE.nextFloat() * 0.5F) - .run(); + .run(); } } @@ -231,6 +230,6 @@ public class GT_MetaTileEntity_Hatch_Muffler extends GT_MetaTileEntity_Hatch { public void setInValidFacings(ForgeDirection... aFacings) { Arrays.fill(facings, true); Arrays.stream(aFacings) - .forEach(face -> facings[face.ordinal()] = false); + .forEach(face -> facings[face.ordinal()] = false); } } diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_MultiInput.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_MultiInput.java index 1b7fedce22..48d6569f42 100644 --- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_MultiInput.java +++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_MultiInput.java @@ -36,7 +36,7 @@ public class GT_MetaTileEntity_Hatch_MultiInput extends GT_MetaTileEntity_Hatch_ } public GT_MetaTileEntity_Hatch_MultiInput(String aName, int aSlot, int aTier, String[] aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aSlot, aTier, aDescription, aTextures); this.mStoredFluid = new FluidStack[aSlot]; mCapacityPer = 8000 * (1 << aTier) / aSlot; @@ -172,9 +172,7 @@ public class GT_MetaTileEntity_Hatch_MultiInput extends GT_MetaTileEntity_Hatch_ @Override public int fill(FluidStack aFluid, boolean doFill) { if (aFluid == null || aFluid.getFluid() - .getID() - <= 0 || aFluid.amount <= 0 || !canTankBeFilled() || !isFluidInputAllowed(aFluid)) - return 0; + .getID() <= 0 || aFluid.amount <= 0 || !canTankBeFilled() || !isFluidInputAllowed(aFluid)) return 0; if (!hasFluid(aFluid) && getFirstEmptySlot() != -1) { int tFilled = Math.min(aFluid.amount, mCapacityPer); if (doFill) { @@ -297,42 +295,35 @@ public class GT_MetaTileEntity_Hatch_MultiInput extends GT_MetaTileEntity_Hatch_ public void addUIWidgets(ModularWindow.Builder builder, UIBuildContext buildContext) { final int SLOT_NUMBER = 4; final Pos2d[] positions = new Pos2d[] { new Pos2d(70, 25), new Pos2d(88, 25), new Pos2d(70, 43), - new Pos2d(88, 43), }; + new Pos2d(88, 43), }; for (int i = 0; i < SLOT_NUMBER; i++) { final int slotId = i; builder.widget( - new FluidDisplaySlotWidget(inventoryHandler, slotId) - .setFluidAccessConstructor( - () -> constructFluidAccess(slotId)) - .setIHasFluidDisplay(this) - .setCanDrain(true) - .setCanFill(!isDrainableStackSeparate()) - .setActionRealClick( - FluidDisplaySlotWidget.Action.TRANSFER) - .setBeforeRealClick((clickData, widget) -> { - if (NetworkUtils.isClient()) { - // propagate display item content to - // actual fluid stored in this tank - setFluid( - GT_Utility.getFluidFromDisplayStack( - widget.getMcSlot() - .getStack()), - slotId); - } - ItemStack tStackHeld = widget.getContext() - .getPlayer().inventory.getItemStack(); - FluidStack tFluidHeld = GT_Utility.getFluidForFilledItem( - tStackHeld, - true); - return constructFluidAccess(slotId).isMatch( - tFluidHeld, - slotId); - }) - .setUpdateFluidDisplayItem( - () -> updateFluidDisplayItem(slotId)) - .setBackground(ModularUITextures.FLUID_SLOT) - .setPos(positions[slotId])); + new FluidDisplaySlotWidget(inventoryHandler, slotId) + .setFluidAccessConstructor(() -> constructFluidAccess(slotId)) + .setIHasFluidDisplay(this) + .setCanDrain(true) + .setCanFill(!isDrainableStackSeparate()) + .setActionRealClick(FluidDisplaySlotWidget.Action.TRANSFER) + .setBeforeRealClick((clickData, widget) -> { + if (NetworkUtils.isClient()) { + // propagate display item content to + // actual fluid stored in this tank + setFluid( + GT_Utility.getFluidFromDisplayStack( + widget.getMcSlot() + .getStack()), + slotId); + } + ItemStack tStackHeld = widget.getContext() + .getPlayer().inventory.getItemStack(); + FluidStack tFluidHeld = GT_Utility.getFluidForFilledItem(tStackHeld, true); + return constructFluidAccess(slotId).isMatch(tFluidHeld, slotId); + }) + .setUpdateFluidDisplayItem(() -> updateFluidDisplayItem(slotId)) + .setBackground(ModularUITextures.FLUID_SLOT) + .setPos(positions[slotId])); } } diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Output.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Output.java index b55350a97e..c3cc1edc9b 100644 --- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Output.java +++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Output.java @@ -42,16 +42,16 @@ public class GT_MetaTileEntity_Hatch_Output extends GT_MetaTileEntity_Hatch impl public GT_MetaTileEntity_Hatch_Output(int aID, String aName, String aNameRegional, int aTier) { super( - aID, - aName, - aNameRegional, - aTier, - 4, - new String[] { "Fluid Output for Multiblocks", - "Capacity: " + GT_Utility.formatNumbers(8000 * (1 << aTier)) + "L", - "Right click with screwdriver to restrict output", - "Can be restricted to put out Items and/or Steam/No Steam/1 specific Fluid", - "Restricted Output Hatches are given priority for Multiblock Fluid output" }); + aID, + aName, + aNameRegional, + aTier, + 4, + new String[] { "Fluid Output for Multiblocks", + "Capacity: " + GT_Utility.formatNumbers(8000 * (1 << aTier)) + "L", + "Right click with screwdriver to restrict output", + "Can be restricted to put out Items and/or Steam/No Steam/1 specific Fluid", + "Restricted Output Hatches are given priority for Multiblock Fluid output" }); } public GT_MetaTileEntity_Hatch_Output(String aName, int aTier, String aDescription, ITexture[][][] aTextures) { @@ -63,29 +63,27 @@ public class GT_MetaTileEntity_Hatch_Output extends GT_MetaTileEntity_Hatch impl } public GT_MetaTileEntity_Hatch_Output(int aID, String aName, String aNameRegional, int aTier, String[] aDescription, - int inventorySize) { + int inventorySize) { super(aID, aName, aNameRegional, aTier, inventorySize, aDescription); } public GT_MetaTileEntity_Hatch_Output(String name, int tier, int slots, String[] description, - ITexture[][][] textures) { + ITexture[][][] textures) { super(name, tier, slots, description, textures); } @Override public ITexture[] getTexturesActive(ITexture aBaseTexture) { return GT_Mod.gregtechproxy.mRenderIndicatorsOnHatch - ? new ITexture[] { aBaseTexture, TextureFactory.of(OVERLAY_PIPE_OUT), - TextureFactory.of(FLUID_OUT_SIGN) } - : new ITexture[] { aBaseTexture, TextureFactory.of(OVERLAY_PIPE_OUT) }; + ? new ITexture[] { aBaseTexture, TextureFactory.of(OVERLAY_PIPE_OUT), TextureFactory.of(FLUID_OUT_SIGN) } + : new ITexture[] { aBaseTexture, TextureFactory.of(OVERLAY_PIPE_OUT) }; } @Override public ITexture[] getTexturesInactive(ITexture aBaseTexture) { return GT_Mod.gregtechproxy.mRenderIndicatorsOnHatch - ? new ITexture[] { aBaseTexture, TextureFactory.of(OVERLAY_PIPE_OUT), - TextureFactory.of(FLUID_OUT_SIGN) } - : new ITexture[] { aBaseTexture, TextureFactory.of(OVERLAY_PIPE_OUT) }; + ? new ITexture[] { aBaseTexture, TextureFactory.of(OVERLAY_PIPE_OUT), TextureFactory.of(FLUID_OUT_SIGN) } + : new ITexture[] { aBaseTexture, TextureFactory.of(OVERLAY_PIPE_OUT) }; } @Override @@ -123,26 +121,24 @@ public class GT_MetaTileEntity_Hatch_Output extends GT_MetaTileEntity_Hatch impl public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) { super.onPostTick(aBaseMetaTileEntity, aTick); if (aBaseMetaTileEntity.isServerSide() && aBaseMetaTileEntity.isAllowedToWork() && mFluid != null) { - IFluidHandler tTileEntity = aBaseMetaTileEntity.getITankContainerAtSide( - aBaseMetaTileEntity.getFrontFacing()); + IFluidHandler tTileEntity = aBaseMetaTileEntity + .getITankContainerAtSide(aBaseMetaTileEntity.getFrontFacing()); if (tTileEntity != null) { FluidStack tDrained = aBaseMetaTileEntity.drain( - ForgeDirection.getOrientation(aBaseMetaTileEntity.getFrontFacing()), - Math.max(1, mFluid.amount), - false); + ForgeDirection.getOrientation(aBaseMetaTileEntity.getFrontFacing()), + Math.max(1, mFluid.amount), + false); if (tDrained != null) { - int tFilledAmount = tTileEntity.fill( - ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()), - tDrained, - false); + int tFilledAmount = tTileEntity + .fill(ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()), tDrained, false); if (tFilledAmount > 0) { tTileEntity.fill( - ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()), - aBaseMetaTileEntity.drain( - ForgeDirection.getOrientation(aBaseMetaTileEntity.getFrontFacing()), - tFilledAmount, - true), - true); + ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()), + aBaseMetaTileEntity.drain( + ForgeDirection.getOrientation(aBaseMetaTileEntity.getFrontFacing()), + tFilledAmount, + true), + true); } } } @@ -166,7 +162,7 @@ public class GT_MetaTileEntity_Hatch_Output extends GT_MetaTileEntity_Hatch impl lockedFluidName = lockedFluidName.length() == 0 ? null : lockedFluidName; if (GT_Utility.getFluidFromUnlocalizedName(lockedFluidName) != null) { lockedFluidName = GT_Utility.getFluidFromUnlocalizedName(lockedFluidName) - .getName(); + .getName(); } } @@ -243,8 +239,7 @@ public class GT_MetaTileEntity_Hatch_Output extends GT_MetaTileEntity_Hatch impl @Override public void onScrewdriverRightClick(byte aSide, EntityPlayer aPlayer, float aX, float aY, float aZ) { if (!getBaseMetaTileEntity().getCoverInfoAtSide(aSide) - .isGUIClickable()) - return; + .isGUIClickable()) return; if (aPlayer.isSneaking()) { mMode = (byte) ((mMode + 9) % 10); } else { @@ -289,49 +284,48 @@ public class GT_MetaTileEntity_Hatch_Output extends GT_MetaTileEntity_Hatch impl if (mFluid == null) { this.setLockedFluidName(null); inBrackets = GT_Utility.trans( - "115.3", - "currently none, will be locked to the next that is put in (or use fluid cell to lock)"); + "115.3", + "currently none, will be locked to the next that is put in (or use fluid cell to lock)"); } else { this.setLockedFluidName( - this.getDrainableStack() - .getFluid() - .getName()); + this.getDrainableStack() + .getFluid() + .getName()); inBrackets = this.getDrainableStack() - .getLocalizedName(); + .getLocalizedName(); } GT_Utility.sendChatToPlayer( - aPlayer, - String.format( - "%s (%s)", - GT_Utility.trans("151.1", "Outputs items and 1 specific Fluid"), - inBrackets)); + aPlayer, + String.format( + "%s (%s)", + GT_Utility.trans("151.1", "Outputs items and 1 specific Fluid"), + inBrackets)); } case 9 -> { playerThatLockedfluid = new WeakReference<>(aPlayer); if (mFluid == null) { this.setLockedFluidName(null); inBrackets = GT_Utility.trans( - "115.3", - "currently none, will be locked to the next that is put in (or use fluid cell to lock)"); + "115.3", + "currently none, will be locked to the next that is put in (or use fluid cell to lock)"); } else { this.setLockedFluidName( - this.getDrainableStack() - .getFluid() - .getName()); + this.getDrainableStack() + .getFluid() + .getName()); inBrackets = this.getDrainableStack() - .getLocalizedName(); + .getLocalizedName(); } GT_Utility.sendChatToPlayer( - aPlayer, - String.format("%s (%s)", GT_Utility.trans("151.2", "Outputs 1 specific Fluid"), inBrackets)); + aPlayer, + String.format("%s (%s)", GT_Utility.trans("151.2", "Outputs 1 specific Fluid"), inBrackets)); } } } private boolean tryToLockHatch(EntityPlayer aPlayer, byte aSide) { if (!getBaseMetaTileEntity().getCoverInfoAtSide(aSide) - .isGUIClickable()) - return false; + .isGUIClickable()) return false; if (!isFluidLocked()) return false; final ItemStack tCurrentItem = aPlayer.inventory.getCurrentItem(); if (tCurrentItem == null) return false; @@ -340,32 +334,32 @@ public class GT_MetaTileEntity_Hatch_Output extends GT_MetaTileEntity_Hatch impl tFluid = ((IFluidContainerItem) tCurrentItem.getItem()).getFluid(tCurrentItem); if (tFluid != null) { if (getLockedFluidName() != null && !getLockedFluidName().equals( - tFluid.getFluid() - .getName())) { + tFluid.getFluid() + .getName())) { GT_Utility.sendChatToPlayer( - aPlayer, - String.format( - "%s %s", - GT_Utility.trans( - "151.3", - "Hatch is locked to a different fluid. To change the locking, empty it and made it locked to the next fluid with a screwdriver. Currently locked to"), - StatCollector.translateToLocal(getLockedFluidName()))); + aPlayer, + String.format( + "%s %s", + GT_Utility.trans( + "151.3", + "Hatch is locked to a different fluid. To change the locking, empty it and made it locked to the next fluid with a screwdriver. Currently locked to"), + StatCollector.translateToLocal(getLockedFluidName()))); } else { setLockedFluidName( - tFluid.getFluid() - .getName()); + tFluid.getFluid() + .getName()); if (mMode == 8) GT_Utility.sendChatToPlayer( - aPlayer, - String.format( - "%s (%s)", - GT_Utility.trans("151.1", "Outputs items and 1 specific Fluid"), - tFluid.getLocalizedName())); + aPlayer, + String.format( + "%s (%s)", + GT_Utility.trans("151.1", "Outputs items and 1 specific Fluid"), + tFluid.getLocalizedName())); else GT_Utility.sendChatToPlayer( - aPlayer, - String.format( - "%s (%s)", - GT_Utility.trans("151.2", "Outputs 1 specific Fluid"), - tFluid.getLocalizedName())); + aPlayer, + String.format( + "%s (%s)", + GT_Utility.trans("151.2", "Outputs 1 specific Fluid"), + tFluid.getLocalizedName())); } return true; } @@ -378,7 +372,7 @@ public class GT_MetaTileEntity_Hatch_Output extends GT_MetaTileEntity_Hatch impl @Override public boolean onRightclick(IGregTechTileEntity aBaseMetaTileEntity, EntityPlayer aPlayer, byte aSide, float aX, - float aY, float aZ) { + float aY, float aZ) { if (tryToLockHatch(aPlayer, aSide)) return true; return super.onRightclick(aBaseMetaTileEntity, aPlayer, aSide, aX, aY, aZ); } @@ -447,15 +441,13 @@ public class GT_MetaTileEntity_Hatch_Output extends GT_MetaTileEntity_Hatch impl protected void onEmptyingContainerWhenEmpty() { if (this.lockedFluidName == null && this.mFluid != null && isFluidLocked()) { this.setLockedFluidName( - this.mFluid.getFluid() - .getName()); + this.mFluid.getFluid() + .getName()); final EntityPlayer player; if (playerThatLockedfluid == null || (player = playerThatLockedfluid.get()) == null) return; GT_Utility.sendChatToPlayer( - player, - String.format( - GT_Utility.trans("151.4", "Successfully locked Fluid to %s"), - mFluid.getLocalizedName())); + player, + String.format(GT_Utility.trans("151.4", "Successfully locked Fluid to %s"), mFluid.getLocalizedName())); playerThatLockedfluid = null; } } @@ -468,20 +460,20 @@ public class GT_MetaTileEntity_Hatch_Output extends GT_MetaTileEntity_Hatch impl @Override public String[] getInfoData() { return new String[] { EnumChatFormatting.BLUE + "Output Hatch" + EnumChatFormatting.RESET, "Stored Fluid:", - EnumChatFormatting.GOLD + (mFluid == null ? "No Fluid" : mFluid.getLocalizedName()) - + EnumChatFormatting.RESET, - EnumChatFormatting.GREEN + GT_Utility.formatNumbers(mFluid == null ? 0 : mFluid.amount) - + " L" - + EnumChatFormatting.RESET - + " " - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(getCapacity()) - + " L" - + EnumChatFormatting.RESET, - (!isFluidLocked() || lockedFluidName == null) ? "Not Locked" - : ("Locked to " + StatCollector.translateToLocal( - FluidRegistry.getFluidStack(lockedFluidName, 1) - .getUnlocalizedName())) }; + EnumChatFormatting.GOLD + (mFluid == null ? "No Fluid" : mFluid.getLocalizedName()) + + EnumChatFormatting.RESET, + EnumChatFormatting.GREEN + GT_Utility.formatNumbers(mFluid == null ? 0 : mFluid.amount) + + " L" + + EnumChatFormatting.RESET + + " " + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(getCapacity()) + + " L" + + EnumChatFormatting.RESET, + (!isFluidLocked() || lockedFluidName == null) ? "Not Locked" + : ("Locked to " + StatCollector.translateToLocal( + FluidRegistry.getFluidStack(lockedFluidName, 1) + .getUnlocalizedName())) }; } @Override @@ -493,51 +485,44 @@ public class GT_MetaTileEntity_Hatch_Output extends GT_MetaTileEntity_Hatch impl public void addUIWidgets(ModularWindow.Builder builder, UIBuildContext buildContext) { super.addUIWidgets(builder, buildContext); builder.widget( - new DrawableWidget().setDrawable(GT_UITextures.PICTURE_SCREEN_BLACK) - .setPos(98, 16) - .setSize(71, 45)) - .widget( - new FluidDisplaySlotWidget(inventoryHandler, getLockedDisplaySlot()).setIHasFluidDisplay(this) - .setActionRealClick( - FluidDisplaySlotWidget.Action.LOCK) - .setActionDragAndDrop( - FluidDisplaySlotWidget.Action.LOCK) - .setBeforeClick( - (clickData, - widget) -> { - if (NetworkUtils.isClient()) { - // propagate - // display - // item - // content to - // actual - // fluid - // stored in - // this tank - setDrainableStack( - GT_Utility.getFluidFromDisplayStack( - mInventory[getStackDisplaySlot()])); - } - return true; - }) - .setBackground( - GT_UITextures.TRANSPARENT) - .setPos(149, 41)) - .widget( - new TextWidget("Locked Fluid").setDefaultColor(COLOR_TEXT_WHITE.get()) - .setPos(101, 20)) - .widget(TextWidget.dynamicString(() -> { - final ItemStack lockedDisplayStack = mInventory[getLockedDisplaySlot()]; - return lockedDisplayStack == null ? "None" : lockedDisplayStack.getDisplayName(); - }) - .setSynced(false) - .setDefaultColor(COLOR_TEXT_WHITE.get()) - .setTextAlignment(Alignment.CenterLeft) - .setMaxWidth(65) - .setPos(101, 30)) - // #updateFluidDisplayItem invalidates locked fluid slot - // if lockedFluidName == null or mMode is incorrect - .widget(new FakeSyncWidget.StringSyncer(() -> lockedFluidName, val -> lockedFluidName = val)) - .widget(new FakeSyncWidget.ByteSyncer(() -> mMode, val -> mMode = val)); + new DrawableWidget().setDrawable(GT_UITextures.PICTURE_SCREEN_BLACK) + .setPos(98, 16) + .setSize(71, 45)) + .widget( + new FluidDisplaySlotWidget(inventoryHandler, getLockedDisplaySlot()).setIHasFluidDisplay(this) + .setActionRealClick(FluidDisplaySlotWidget.Action.LOCK) + .setActionDragAndDrop(FluidDisplaySlotWidget.Action.LOCK) + .setBeforeClick((clickData, widget) -> { + if (NetworkUtils.isClient()) { + // propagate + // display + // item + // content to + // actual + // fluid + // stored in + // this tank + setDrainableStack(GT_Utility.getFluidFromDisplayStack(mInventory[getStackDisplaySlot()])); + } + return true; + }) + .setBackground(GT_UITextures.TRANSPARENT) + .setPos(149, 41)) + .widget( + new TextWidget("Locked Fluid").setDefaultColor(COLOR_TEXT_WHITE.get()) + .setPos(101, 20)) + .widget(TextWidget.dynamicString(() -> { + final ItemStack lockedDisplayStack = mInventory[getLockedDisplaySlot()]; + return lockedDisplayStack == null ? "None" : lockedDisplayStack.getDisplayName(); + }) + .setSynced(false) + .setDefaultColor(COLOR_TEXT_WHITE.get()) + .setTextAlignment(Alignment.CenterLeft) + .setMaxWidth(65) + .setPos(101, 30)) + // #updateFluidDisplayItem invalidates locked fluid slot + // if lockedFluidName == null or mMode is incorrect + .widget(new FakeSyncWidget.StringSyncer(() -> lockedFluidName, val -> lockedFluidName = val)) + .widget(new FakeSyncWidget.ByteSyncer(() -> mMode, val -> mMode = val)); } } diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_OutputBus.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_OutputBus.java index 633d82566c..f04840d7d3 100644 --- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_OutputBus.java +++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_OutputBus.java @@ -29,23 +29,23 @@ public class GT_MetaTileEntity_Hatch_OutputBus extends GT_MetaTileEntity_Hatch i public GT_MetaTileEntity_Hatch_OutputBus(int id, String name, String nameRegional, int tier, int slots) { super( - id, - name, - nameRegional, - tier, - slots, - ArrayExt.of( - "Item Output for Multiblocks", - "Capacity: " + getSlots(tier) + " stack" + (getSlots(tier) >= 2 ? "s" : ""))); + id, + name, + nameRegional, + tier, + slots, + ArrayExt.of( + "Item Output for Multiblocks", + "Capacity: " + getSlots(tier) + " stack" + (getSlots(tier) >= 2 ? "s" : ""))); } public GT_MetaTileEntity_Hatch_OutputBus(int aID, String aName, String aNameRegional, int aTier, - String[] aDescription) { + String[] aDescription) { super(aID, aName, aNameRegional, aTier, getSlots(aTier), aDescription); } public GT_MetaTileEntity_Hatch_OutputBus(int aID, String aName, String aNameRegional, int aTier, - String[] aDescription, int inventorySize) { + String[] aDescription, int inventorySize) { super(aID, aName, aNameRegional, aTier, inventorySize, aDescription); } @@ -61,22 +61,22 @@ public class GT_MetaTileEntity_Hatch_OutputBus extends GT_MetaTileEntity_Hatch i } public GT_MetaTileEntity_Hatch_OutputBus(String name, int tier, int slots, String[] description, - ITexture[][][] textures) { + ITexture[][][] textures) { super(name, tier, slots, description, textures); } @Override public ITexture[] getTexturesActive(ITexture aBaseTexture) { return GT_Mod.gregtechproxy.mRenderIndicatorsOnHatch - ? new ITexture[] { aBaseTexture, TextureFactory.of(OVERLAY_PIPE_OUT), TextureFactory.of(ITEM_OUT_SIGN) } - : new ITexture[] { aBaseTexture, TextureFactory.of(OVERLAY_PIPE_OUT) }; + ? new ITexture[] { aBaseTexture, TextureFactory.of(OVERLAY_PIPE_OUT), TextureFactory.of(ITEM_OUT_SIGN) } + : new ITexture[] { aBaseTexture, TextureFactory.of(OVERLAY_PIPE_OUT) }; } @Override public ITexture[] getTexturesInactive(ITexture aBaseTexture) { return GT_Mod.gregtechproxy.mRenderIndicatorsOnHatch - ? new ITexture[] { aBaseTexture, TextureFactory.of(OVERLAY_PIPE_OUT), TextureFactory.of(ITEM_OUT_SIGN) } - : new ITexture[] { aBaseTexture, TextureFactory.of(OVERLAY_PIPE_OUT) }; + ? new ITexture[] { aBaseTexture, TextureFactory.of(OVERLAY_PIPE_OUT), TextureFactory.of(ITEM_OUT_SIGN) } + : new ITexture[] { aBaseTexture, TextureFactory.of(OVERLAY_PIPE_OUT) }; } @Override @@ -131,7 +131,7 @@ public class GT_MetaTileEntity_Hatch_OutputBus extends GT_MetaTileEntity_Hatch i } else { int tRealStackLimit = Math.min(getInventoryStackLimit(), tSlot.getMaxStackSize()); if (tSlot.stackSize < tRealStackLimit && tSlot.isItemEqual(aStack) - && ItemStack.areItemStackTagsEqual(tSlot, aStack)) { + && ItemStack.areItemStackTagsEqual(tSlot, aStack)) { if (aStack.stackSize + tSlot.stackSize <= tRealStackLimit) { mInventory[i].stackSize += aStack.stackSize; return true; @@ -160,21 +160,21 @@ public class GT_MetaTileEntity_Hatch_OutputBus extends GT_MetaTileEntity_Hatch i public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) { super.onPostTick(aBaseMetaTileEntity, aTick); if (aBaseMetaTileEntity.isServerSide() && aBaseMetaTileEntity.isAllowedToWork() && (aTick & 0x7) == 0) { - final IInventory tTileEntity = aBaseMetaTileEntity.getIInventoryAtSide( - aBaseMetaTileEntity.getFrontFacing()); + final IInventory tTileEntity = aBaseMetaTileEntity + .getIInventoryAtSide(aBaseMetaTileEntity.getFrontFacing()); if (tTileEntity != null) { moveMultipleItemStacks( - aBaseMetaTileEntity, - tTileEntity, - aBaseMetaTileEntity.getFrontFacing(), - aBaseMetaTileEntity.getBackFacing(), - null, - false, - (byte) 64, - (byte) 1, - (byte) 64, - (byte) 1, - mInventory.length); + aBaseMetaTileEntity, + tTileEntity, + aBaseMetaTileEntity.getFrontFacing(), + aBaseMetaTileEntity.getBackFacing(), + null, + false, + (byte) 64, + (byte) 1, + (byte) 64, + (byte) 1, + mInventory.length); for (int i = 0; i < mInventory.length; i++) if (mInventory[i] != null && mInventory[i].stackSize <= 0) mInventory[i] = null; // GT_Utility.moveOneItemStack(aBaseMetaTileEntity, tTileEntity, diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_MultiBlockBase.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_MultiBlockBase.java index e26029b629..0f5f5dcc85 100644 --- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_MultiBlockBase.java +++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_MultiBlockBase.java @@ -62,14 +62,14 @@ import gregtech.common.tileentities.machines.multi.GT_MetaTileEntity_DrillerBase import gregtech.common.tileentities.machines.multi.GT_MetaTileEntity_LargeTurbine; public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity - implements IAddGregtechLogo, IAddUIWidgets, IBindPlayerInventoryUI { + implements IAddGregtechLogo, IAddUIWidgets, IBindPlayerInventoryUI { public static boolean disableMaintenance; public boolean mMachine = false, mWrench = false, mScrewdriver = false, mSoftHammer = false, mHardHammer = false, - mSolderingTool = false, mCrowbar = false, mRunningOnLoad = false; + mSolderingTool = false, mCrowbar = false, mRunningOnLoad = false; public boolean mStructureChanged = false; public int mPollution = 0, mProgresstime = 0, mMaxProgresstime = 0, mEUt = 0, mEfficiencyIncrease = 0, - mStartUpCheck = 100, mRuntime = 0, mEfficiency = 0; + mStartUpCheck = 100, mRuntime = 0, mEfficiency = 0; public volatile boolean mUpdated = false; public int mUpdate = 0; public ItemStack[] mOutputItems = null; @@ -104,43 +104,30 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity public GT_MetaTileEntity_MultiBlockBase(int aID, String aName, String aNameRegional) { super(aID, aName, aNameRegional, 2); - GT_MetaTileEntity_MultiBlockBase.disableMaintenance = GregTech_API.sMachineFile.get( - ConfigCategories.machineconfig, - "MultiBlockMachines.disableMaintenance", - false); - this.damageFactorLow = GregTech_API.sMachineFile.get( - ConfigCategories.machineconfig, - "MultiBlockMachines.damageFactorLow", - 5); - this.damageFactorHigh = (float) GregTech_API.sMachineFile.get( - ConfigCategories.machineconfig, - "MultiBlockMachines.damageFactorHigh", - 0.6f); + GT_MetaTileEntity_MultiBlockBase.disableMaintenance = GregTech_API.sMachineFile + .get(ConfigCategories.machineconfig, "MultiBlockMachines.disableMaintenance", false); + this.damageFactorLow = GregTech_API.sMachineFile + .get(ConfigCategories.machineconfig, "MultiBlockMachines.damageFactorLow", 5); + this.damageFactorHigh = (float) GregTech_API.sMachineFile + .get(ConfigCategories.machineconfig, "MultiBlockMachines.damageFactorHigh", 0.6f); this.mNEI = ""; } public GT_MetaTileEntity_MultiBlockBase(String aName) { super(aName, 2); - GT_MetaTileEntity_MultiBlockBase.disableMaintenance = GregTech_API.sMachineFile.get( - ConfigCategories.machineconfig, - "MultiBlockMachines.disableMaintenance", - false); - this.damageFactorLow = GregTech_API.sMachineFile.get( - ConfigCategories.machineconfig, - "MultiBlockMachines.damageFactorLow", - 5); - this.damageFactorHigh = (float) GregTech_API.sMachineFile.get( - ConfigCategories.machineconfig, - "MultiBlockMachines.damageFactorHigh", - 0.6f); + GT_MetaTileEntity_MultiBlockBase.disableMaintenance = GregTech_API.sMachineFile + .get(ConfigCategories.machineconfig, "MultiBlockMachines.disableMaintenance", false); + this.damageFactorLow = GregTech_API.sMachineFile + .get(ConfigCategories.machineconfig, "MultiBlockMachines.damageFactorLow", 5); + this.damageFactorHigh = (float) GregTech_API.sMachineFile + .get(ConfigCategories.machineconfig, "MultiBlockMachines.damageFactorHigh", 0.6f); } public static boolean isValidMetaTileEntity(MetaTileEntity aMetaTileEntity) { return aMetaTileEntity.getBaseMetaTileEntity() != null && aMetaTileEntity.getBaseMetaTileEntity() - .getMetaTileEntity() - == aMetaTileEntity - && !aMetaTileEntity.getBaseMetaTileEntity() - .isDead(); + .getMetaTileEntity() == aMetaTileEntity + && !aMetaTileEntity.getBaseMetaTileEntity() + .isDead(); } @Override @@ -164,8 +151,8 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity mLockedToSingleRecipe = !mLockedToSingleRecipe; if (mLockedToSingleRecipe) { GT_Utility.sendChatToPlayer( - aPlayer, - GT_Utility.trans("223", "Single recipe locking enabled. Will lock to next recipe.")); + aPlayer, + GT_Utility.trans("223", "Single recipe locking enabled. Will lock to next recipe.")); } else { GT_Utility.sendChatToPlayer(aPlayer, GT_Utility.trans("220", "Single recipe locking disabled.")); mSingleRecipeCheck = null; @@ -377,13 +364,13 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity } } aBaseMetaTileEntity.setErrorDisplayID( - (aBaseMetaTileEntity.getErrorDisplayID() & ~127) | (mWrench ? 0 : 1) - | (mScrewdriver ? 0 : 2) - | (mSoftHammer ? 0 : 4) - | (mHardHammer ? 0 : 8) - | (mSolderingTool ? 0 : 16) - | (mCrowbar ? 0 : 32) - | (mMachine ? 0 : 64)); + (aBaseMetaTileEntity.getErrorDisplayID() & ~127) | (mWrench ? 0 : 1) + | (mScrewdriver ? 0 : 2) + | (mSoftHammer ? 0 : 4) + | (mHardHammer ? 0 : 8) + | (mSolderingTool ? 0 : 16) + | (mCrowbar ? 0 : 32) + | (mMachine ? 0 : 64)); aBaseMetaTileEntity.setActive(mMaxProgresstime > 0); boolean active = aBaseMetaTileEntity.isActive() && mPollution > 0; setMufflers(active); @@ -406,7 +393,7 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity for (GT_MetaTileEntity_Hatch_Maintenance tHatch : mMaintenanceHatches) { if (isValidMetaTileEntity(tHatch)) { if (tHatch.mAuto - && !(mWrench && mScrewdriver && mSoftHammer && mHardHammer && mSolderingTool && mCrowbar)) + && !(mWrench && mScrewdriver && mSoftHammer && mHardHammer && mSolderingTool && mCrowbar)) tHatch.autoMaintainance(); if (tHatch.mWrench) mWrench = true; if (tHatch.mScrewdriver) mScrewdriver = true; @@ -446,9 +433,9 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity if (mOutputItems != null) for (ItemStack tStack : mOutputItems) if (tStack != null) { try { GT_Mod.achievements.issueAchivementHatch( - aBaseMetaTileEntity.getWorld() - .getPlayerEntityByName(aBaseMetaTileEntity.getOwnerName()), - tStack); + aBaseMetaTileEntity.getWorld() + .getPlayerEntityByName(aBaseMetaTileEntity.getOwnerName()), + tStack); } catch (Exception ignored) {} addOutput(tStack); } @@ -456,10 +443,10 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity addFluidOutputs(mOutputFluids); } mEfficiency = Math.max( - 0, - Math.min( - mEfficiency + mEfficiencyIncrease, - getMaxEfficiency(mInventory[1]) - ((getIdealStatus() - getRepairStatus()) * 1000))); + 0, + Math.min( + mEfficiency + mEfficiencyIncrease, + getMaxEfficiency(mInventory[1]) - ((getIdealStatus() - getRepairStatus()) * 1000))); mOutputItems = null; mProgresstime = 0; mMaxProgresstime = 0; @@ -471,9 +458,9 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity if (mOutputFluids.length > 1) { try { GT_Mod.achievements.issueAchievement( - aBaseMetaTileEntity.getWorld() - .getPlayerEntityByName(aBaseMetaTileEntity.getOwnerName()), - "oilplant"); + aBaseMetaTileEntity.getWorld() + .getPlayerEntityByName(aBaseMetaTileEntity.getOwnerName()), + "oilplant"); } catch (Exception ignored) {} } } @@ -481,7 +468,7 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity } } else { if (aTick % 100 == 0 || aBaseMetaTileEntity.hasWorkJustBeenEnabled() - || aBaseMetaTileEntity.hasInventoryBeenModified()) { + || aBaseMetaTileEntity.hasInventoryBeenModified()) { if (aBaseMetaTileEntity.isAllowedToWork()) { if (checkRecipe()) { @@ -517,13 +504,8 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity if (getProcessStartSound() != null) GT_Utility.doSoundAtClient(getProcessStartSound(), getTimeBetweenProcessSounds(), 1.0F, aX, aY, aZ); } - case INTERRUPT_SOUND_INDEX -> GT_Utility.doSoundAtClient( - SoundResource.IC2_MACHINES_INTERRUPT_ONE, - 100, - 1.0F, - aX, - aY, - aZ); + case INTERRUPT_SOUND_INDEX -> GT_Utility + .doSoundAtClient(SoundResource.IC2_MACHINES_INTERRUPT_ONE, 100, 1.0F, aX, aY, aZ); } } @@ -542,8 +524,8 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity if (activitySoundLoop == null) { activitySoundLoop = new GT_SoundLoop(activitySound, getBaseMetaTileEntity(), false, true); Minecraft.getMinecraft() - .getSoundHandler() - .playSound(activitySoundLoop); + .getSoundHandler() + .playSound(activitySoundLoop); } } else { if (activitySoundLoop != null) { @@ -658,10 +640,10 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity public int getRepairStatus() { return (mWrench ? 1 : 0) + (mScrewdriver ? 1 : 0) - + (mSoftHammer ? 1 : 0) - + (mHardHammer ? 1 : 0) - + (mSolderingTool ? 1 : 0) - + (mCrowbar ? 1 : 0); + + (mSoftHammer ? 1 : 0) + + (mHardHammer ? 1 : 0) + + (mSolderingTool ? 1 : 0) + + (mCrowbar ? 1 : 0); } public int getIdealStatus() { @@ -691,15 +673,14 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity } } if (mInventory[1] != null && getBaseMetaTileEntity().getRandomNumber(2) == 0 - && !mInventory[1].getUnlocalizedName() - .startsWith("gt.blockmachines.basicmachine.")) { + && !mInventory[1].getUnlocalizedName() + .startsWith("gt.blockmachines.basicmachine.")) { if (mInventory[1].getItem() instanceof GT_MetaGenerated_Tool_01) { NBTTagCompound tNBT = mInventory[1].getTagCompound(); ((GT_MetaGenerated_Tool) mInventory[1].getItem()).doDamage( - mInventory[1], - (long) getDamageToComponent(mInventory[1]) * (long) Math.min( - mEUt / this.damageFactorLow, - Math.pow(mEUt, this.damageFactorHigh))); + mInventory[1], + (long) getDamageToComponent(mInventory[1]) + * (long) Math.min(mEUt / this.damageFactorLow, Math.pow(mEUt, this.damageFactorHigh))); if (mInventory[1].stackSize == 0) mInventory[1] = null; } } @@ -710,34 +691,34 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity public void explodeMultiblock() { GT_Log.exp.println( - "MultiBlockExplosion at: " + this.getBaseMetaTileEntity() - .getXCoord() - + " | " - + this.getBaseMetaTileEntity() - .getYCoord() - + " | " - + this.getBaseMetaTileEntity() - .getZCoord() - + " DIMID: " - + this.getBaseMetaTileEntity() - .getWorld().provider.dimensionId - + "."); + "MultiBlockExplosion at: " + this.getBaseMetaTileEntity() + .getXCoord() + + " | " + + this.getBaseMetaTileEntity() + .getYCoord() + + " | " + + this.getBaseMetaTileEntity() + .getZCoord() + + " DIMID: " + + this.getBaseMetaTileEntity() + .getWorld().provider.dimensionId + + "."); GT_Pollution.addPollution(getBaseMetaTileEntity(), GT_Mod.gregtechproxy.mPollutionOnExplosion); mInventory[1] = null; Iterable allHatches = Iterables.concat( - mInputBusses, - mOutputBusses, - mInputHatches, - mOutputHatches, - mDynamoHatches, - mMufflerHatches, - mEnergyHatches, - mMaintenanceHatches); + mInputBusses, + mOutputBusses, + mInputHatches, + mOutputHatches, + mDynamoHatches, + mMufflerHatches, + mEnergyHatches, + mMaintenanceHatches); for (MetaTileEntity tTileEntity : allHatches) { if (tTileEntity != null && tTileEntity.getBaseMetaTileEntity() != null) { tTileEntity.getBaseMetaTileEntity() - .doExplosion(V[8]); + .doExplosion(V[8]); } } getBaseMetaTileEntity().doExplosion(V[8]); @@ -796,12 +777,12 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity ampsOnCurrentHatch = (int) Math.min(aDynamo.maxAmperesOut(), aAmpsToInject); for (int i = 0; i < ampsOnCurrentHatch; i++) { aDynamo.getBaseMetaTileEntity() - .increaseStoredEnergyUnits(aVoltage, false); + .increaseStoredEnergyUnits(aVoltage, false); } injected += aVoltage * ampsOnCurrentHatch; if (aRemainder > 0 && ampsOnCurrentHatch < aDynamo.maxAmperesOut()) { aDynamo.getBaseMetaTileEntity() - .increaseStoredEnergyUnits(aRemainder, false); + .increaseStoredEnergyUnits(aRemainder, false); injected += aRemainder; } } @@ -813,7 +794,7 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity long rVoltage = 0; for (GT_MetaTileEntity_Hatch_Energy tHatch : mEnergyHatches) if (isValidMetaTileEntity(tHatch)) rVoltage += tHatch.getBaseMetaTileEntity() - .getInputVoltage(); + .getInputVoltage(); return rVoltage; } @@ -827,7 +808,7 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity * @param perfectOC - If the Multiblock OCs perfectly, i.e. the large Chemical Reactor */ protected void calculateOverclockedNessMultiInternal(long aEUt, int aDuration, int mAmperage, long maxInputVoltage, - boolean perfectOC) { + boolean perfectOC) { byte mTier = (byte) Math.max(0, GT_Utility.getTier(maxInputVoltage)); if (mTier == 0) { // Long time calculation @@ -896,14 +877,13 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity if (aEU <= 0) return true; for (GT_MetaTileEntity_Hatch_Energy tHatch : mEnergyHatches) if (isValidMetaTileEntity(tHatch)) { if (tHatch.getBaseMetaTileEntity() - .decreaseStoredEnergyUnits(aEU, false)) - return true; + .decreaseStoredEnergyUnits(aEU, false)) return true; } return false; } protected static boolean dumpFluid(List aOutputHatches, FluidStack copiedFluidStack, - boolean restrictiveHatchesOnly) { + boolean restrictiveHatchesOnly) { for (GT_MetaTileEntity_Hatch_Output tHatch : aOutputHatches) { if (!isValidMetaTileEntity(tHatch) || (restrictiveHatchesOnly && tHatch.mMode == 0)) { continue; @@ -967,8 +947,7 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity for (GT_MetaTileEntity_Hatch_Output tHatch : mOutputHatches) { if (!outputSuccess && isValidMetaTileEntity(tHatch) && tHatch.outputsItems()) { if (tHatch.getBaseMetaTileEntity() - .addStackToSlot(1, single)) - outputSuccess = true; + .addStackToSlot(1, single)) outputSuccess = true; } } } @@ -983,14 +962,13 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity tHatch.mRecipeMap = getRecipeMap(); if (isValidMetaTileEntity(tHatch)) { if (GT_Utility.areStacksEqual( - aStack, - tHatch.getBaseMetaTileEntity() - .getStackInSlot(0))) { + aStack, + tHatch.getBaseMetaTileEntity() + .getStackInSlot(0))) { if (tHatch.getBaseMetaTileEntity() - .getStackInSlot(0).stackSize - >= aStack.stackSize) { + .getStackInSlot(0).stackSize >= aStack.stackSize) { tHatch.getBaseMetaTileEntity() - .decrStackSize(0, aStack.stackSize); + .decrStackSize(0, aStack.stackSize); return true; } } @@ -1000,17 +978,15 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity tHatch.mRecipeMap = getRecipeMap(); if (isValidMetaTileEntity(tHatch)) { for (int i = tHatch.getBaseMetaTileEntity() - .getSizeInventory() - - 1; i >= 0; i--) { + .getSizeInventory() - 1; i >= 0; i--) { if (GT_Utility.areStacksEqual( - aStack, - tHatch.getBaseMetaTileEntity() - .getStackInSlot(i))) { + aStack, + tHatch.getBaseMetaTileEntity() + .getStackInSlot(i))) { if (tHatch.getBaseMetaTileEntity() - .getStackInSlot(i).stackSize - >= aStack.stackSize) { + .getStackInSlot(i).stackSize >= aStack.stackSize) { tHatch.getBaseMetaTileEntity() - .decrStackSize(i, aStack.stackSize); + .decrStackSize(i, aStack.stackSize); return true; } } @@ -1030,11 +1006,10 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity for (GT_MetaTileEntity_Hatch_OutputBus tHatch : mOutputBusses) { if (isValidMetaTileEntity(tHatch)) { for (int i = tHatch.getBaseMetaTileEntity() - .getSizeInventory() - - 1; i >= 0; i--) { + .getSizeInventory() - 1; i >= 0; i--) { rList.add( - tHatch.getBaseMetaTileEntity() - .getStackInSlot(i)); + tHatch.getBaseMetaTileEntity() + .getStackInSlot(i)); } } } @@ -1070,20 +1045,17 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity tHatch.mRecipeMap = getRecipeMap(); if (isValidMetaTileEntity(tHatch)) { for (int i = tHatch.getBaseMetaTileEntity() - .getSizeInventory() - - 1; i >= 0; i--) { + .getSizeInventory() - 1; i >= 0; i--) { if (tHatch.getBaseMetaTileEntity() - .getStackInSlot(i) - != null) + .getStackInSlot(i) != null) rList.add( - tHatch.getBaseMetaTileEntity() - .getStackInSlot(i)); + tHatch.getBaseMetaTileEntity() + .getStackInSlot(i)); } } } if (getStackInSlot(1) != null && getStackInSlot(1).getUnlocalizedName() - .startsWith("gt.integrated_circuit")) - rList.add(getStackInSlot(1)); + .startsWith("gt.integrated_circuit")) rList.add(getStackInSlot(1)); return rList; } @@ -1109,7 +1081,7 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity } protected static T identifyHatch(IGregTechTileEntity aTileEntity, - int aBaseCasingIndex, Class clazz) { + int aBaseCasingIndex, Class clazz) { if (aTileEntity == null) return null; IMetaTileEntity aMetaTileEntity = aTileEntity.getMetaTileEntity(); if (!clazz.isInstance(aMetaTileEntity)) return null; @@ -1177,7 +1149,7 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity IMetaTileEntity aMetaTileEntity = aTileEntity.getMetaTileEntity(); if (aMetaTileEntity == null) return false; if (aMetaTileEntity instanceof GT_MetaTileEntity_Hatch hatch - && GT_ExoticEnergyInputHelper.isExoticEnergyInput(aMetaTileEntity)) { + && GT_ExoticEnergyInputHelper.isExoticEnergyInput(aMetaTileEntity)) { hatch.updateTexture(aBaseCasingIndex); return mExoticEnergyHatches.add(hatch); } @@ -1208,12 +1180,12 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity public boolean addInputToMachineList(IGregTechTileEntity aTileEntity, int aBaseCasingIndex) { return addInputBusToMachineList(aTileEntity, aBaseCasingIndex) - || addInputHatchToMachineList(aTileEntity, aBaseCasingIndex); + || addInputHatchToMachineList(aTileEntity, aBaseCasingIndex); } public boolean addOutputToMachineList(IGregTechTileEntity aTileEntity, int aBaseCasingIndex) { return addOutputBusToMachineList(aTileEntity, aBaseCasingIndex) - || addOutputHatchToMachineList(aTileEntity, aBaseCasingIndex); + || addOutputHatchToMachineList(aTileEntity, aBaseCasingIndex); } public boolean addInputBusToMachineList(IGregTechTileEntity aTileEntity, int aBaseCasingIndex) { @@ -1276,62 +1248,62 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity for (GT_MetaTileEntity_Hatch_Energy tHatch : mEnergyHatches) { if (isValidMetaTileEntity(tHatch)) { storedEnergy += tHatch.getBaseMetaTileEntity() - .getStoredEU(); + .getStoredEU(); maxEnergy += tHatch.getBaseMetaTileEntity() - .getEUCapacity(); + .getEUCapacity(); } } return new String[] { - /* 1 */ StatCollector.translateToLocal("GT5U.multiblock.Progress") + ": " - + EnumChatFormatting.GREEN - + GT_Utility.formatNumbers(mProgresstime / 20) - + EnumChatFormatting.RESET - + " s / " - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(mMaxProgresstime / 20) - + EnumChatFormatting.RESET - + " s", - /* 2 */ StatCollector.translateToLocal("GT5U.multiblock.energy") + ": " - + EnumChatFormatting.GREEN - + GT_Utility.formatNumbers(storedEnergy) - + EnumChatFormatting.RESET - + " EU / " - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(maxEnergy) - + EnumChatFormatting.RESET - + " EU", - /* 3 */ StatCollector.translateToLocal("GT5U.multiblock.usage") + ": " - + EnumChatFormatting.RED - + GT_Utility.formatNumbers(getActualEnergyUsage()) - + EnumChatFormatting.RESET - + " EU/t", - /* 4 */ StatCollector.translateToLocal("GT5U.multiblock.mei") + ": " - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(getMaxInputVoltage()) - + EnumChatFormatting.RESET - + " EU/t(*2A) " - + StatCollector.translateToLocal("GT5U.machines.tier") - + ": " - + EnumChatFormatting.YELLOW - + VN[GT_Utility.getTier(getMaxInputVoltage())] - + EnumChatFormatting.RESET, - /* 5 */ StatCollector.translateToLocal("GT5U.multiblock.problems") + ": " - + EnumChatFormatting.RED - + (getIdealStatus() - getRepairStatus()) - + EnumChatFormatting.RESET - + " " - + StatCollector.translateToLocal("GT5U.multiblock.efficiency") - + ": " - + EnumChatFormatting.YELLOW - + mEfficiency / 100.0F - + EnumChatFormatting.RESET - + " %", - /* 6 */ StatCollector.translateToLocal("GT5U.multiblock.pollution") + ": " - + EnumChatFormatting.GREEN - + mPollutionReduction - + EnumChatFormatting.RESET - + " %" }; + /* 1 */ StatCollector.translateToLocal("GT5U.multiblock.Progress") + ": " + + EnumChatFormatting.GREEN + + GT_Utility.formatNumbers(mProgresstime / 20) + + EnumChatFormatting.RESET + + " s / " + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(mMaxProgresstime / 20) + + EnumChatFormatting.RESET + + " s", + /* 2 */ StatCollector.translateToLocal("GT5U.multiblock.energy") + ": " + + EnumChatFormatting.GREEN + + GT_Utility.formatNumbers(storedEnergy) + + EnumChatFormatting.RESET + + " EU / " + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(maxEnergy) + + EnumChatFormatting.RESET + + " EU", + /* 3 */ StatCollector.translateToLocal("GT5U.multiblock.usage") + ": " + + EnumChatFormatting.RED + + GT_Utility.formatNumbers(getActualEnergyUsage()) + + EnumChatFormatting.RESET + + " EU/t", + /* 4 */ StatCollector.translateToLocal("GT5U.multiblock.mei") + ": " + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(getMaxInputVoltage()) + + EnumChatFormatting.RESET + + " EU/t(*2A) " + + StatCollector.translateToLocal("GT5U.machines.tier") + + ": " + + EnumChatFormatting.YELLOW + + VN[GT_Utility.getTier(getMaxInputVoltage())] + + EnumChatFormatting.RESET, + /* 5 */ StatCollector.translateToLocal("GT5U.multiblock.problems") + ": " + + EnumChatFormatting.RED + + (getIdealStatus() - getRepairStatus()) + + EnumChatFormatting.RESET + + " " + + StatCollector.translateToLocal("GT5U.multiblock.efficiency") + + ": " + + EnumChatFormatting.YELLOW + + mEfficiency / 100.0F + + EnumChatFormatting.RESET + + " %", + /* 6 */ StatCollector.translateToLocal("GT5U.multiblock.pollution") + ": " + + EnumChatFormatting.GREEN + + mPollutionReduction + + EnumChatFormatting.RESET + + " %" }; } @Override @@ -1392,44 +1364,44 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity @Override public void getWailaBody(ItemStack itemStack, List currentTip, IWailaDataAccessor accessor, - IWailaConfigHandler config) { + IWailaConfigHandler config) { final NBTTagCompound tag = accessor.getNBTData(); if (tag.getBoolean("incompleteStructure")) { currentTip.add(RED + "** INCOMPLETE STRUCTURE **" + RESET); } currentTip.add( - (tag.getBoolean("hasProblems") ? (RED + "** HAS PROBLEMS **") : GREEN + "Running Fine") + RESET - + " Efficiency: " - + tag.getFloat("efficiency") - + "%"); + (tag.getBoolean("hasProblems") ? (RED + "** HAS PROBLEMS **") : GREEN + "Running Fine") + RESET + + " Efficiency: " + + tag.getFloat("efficiency") + + "%"); boolean isActive = tag.getBoolean("isActive"); if (isActive) { long actualEnergyUsage = tag.getLong("energyUsage"); if (actualEnergyUsage > 0) { currentTip.add( - StatCollector.translateToLocalFormatted( - "GT5U.waila.energy.use", - GT_Utility.formatNumbers(actualEnergyUsage), - GT_Utility.getColoredTierNameFromVoltage(actualEnergyUsage))); + StatCollector.translateToLocalFormatted( + "GT5U.waila.energy.use", + GT_Utility.formatNumbers(actualEnergyUsage), + GT_Utility.getColoredTierNameFromVoltage(actualEnergyUsage))); } else if (actualEnergyUsage < 0) { currentTip.add( - StatCollector.translateToLocalFormatted( - "GT5U.waila.energy.produce", - GT_Utility.formatNumbers(-actualEnergyUsage), - GT_Utility.getColoredTierNameFromVoltage(-actualEnergyUsage))); + StatCollector.translateToLocalFormatted( + "GT5U.waila.energy.produce", + GT_Utility.formatNumbers(-actualEnergyUsage), + GT_Utility.getColoredTierNameFromVoltage(-actualEnergyUsage))); } } currentTip.add( - GT_Waila.getMachineProgressString(isActive, tag.getInteger("maxProgress"), tag.getInteger("progress"))); + GT_Waila.getMachineProgressString(isActive, tag.getInteger("maxProgress"), tag.getInteger("progress"))); super.getWailaBody(itemStack, currentTip, accessor, config); } @Override public void getWailaNBTData(EntityPlayerMP player, TileEntity tile, NBTTagCompound tag, World world, int x, int y, - int z) { + int z) { super.getWailaNBTData(player, tile, tag, world, x, y, z); tag.setBoolean("hasProblems", (getIdealStatus() - getRepairStatus()) > 0); @@ -1567,38 +1539,35 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity @Override public void addUIWidgets(ModularWindow.Builder builder, UIBuildContext buildContext) { builder.widget( - new DrawableWidget().setDrawable(GT_UITextures.PICTURE_SCREEN_BLACK) - .setPos(4, 4) - .setSize(190, 85)); + new DrawableWidget().setDrawable(GT_UITextures.PICTURE_SCREEN_BLACK) + .setPos(4, 4) + .setSize(190, 85)); final SlotWidget inventorySlot = new SlotWidget(inventoryHandler, 1); builder.widget( - inventorySlot.setPos(173, 167) - .setBackground(GT_UITextures.SLOT_DARK_GRAY)); + inventorySlot.setPos(173, 167) + .setBackground(GT_UITextures.SLOT_DARK_GRAY)); final DynamicPositionedColumn screenElements = new DynamicPositionedColumn(); drawTexts(screenElements, inventorySlot); builder.widget(screenElements); builder.widget(createPowerSwitchButton()) - .widget(new FakeSyncWidget.BooleanSyncer(() -> getBaseMetaTileEntity().isAllowedToWork(), val -> { - if (val) getBaseMetaTileEntity().enableWorking(); - else getBaseMetaTileEntity().disableWorking(); - })); + .widget(new FakeSyncWidget.BooleanSyncer(() -> getBaseMetaTileEntity().isAllowedToWork(), val -> { + if (val) getBaseMetaTileEntity().enableWorking(); + else getBaseMetaTileEntity().disableWorking(); + })); builder.widget(createVoidExcessButton()) - .widget(new FakeSyncWidget.BooleanSyncer(() -> voidExcess, val -> voidExcess = val)); + .widget(new FakeSyncWidget.BooleanSyncer(() -> voidExcess, val -> voidExcess = val)); builder.widget(createInputSeparationButton()) - .widget(new FakeSyncWidget.BooleanSyncer(() -> inputSeparation, val -> inputSeparation = val)); + .widget(new FakeSyncWidget.BooleanSyncer(() -> inputSeparation, val -> inputSeparation = val)); builder.widget(createBatchModeButton()) - .widget(new FakeSyncWidget.BooleanSyncer(() -> batchMode, val -> batchMode = val)); + .widget(new FakeSyncWidget.BooleanSyncer(() -> batchMode, val -> batchMode = val)); builder.widget(createLockToSingleRecipeButton()) - .widget( - new FakeSyncWidget.BooleanSyncer( - () -> mLockedToSingleRecipe, - val -> mLockedToSingleRecipe = val)); + .widget(new FakeSyncWidget.BooleanSyncer(() -> mLockedToSingleRecipe, val -> mLockedToSingleRecipe = val)); } @Override @@ -1606,119 +1575,102 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity protected void drawTexts(DynamicPositionedColumn screenElements, SlotWidget inventorySlot) { screenElements.setSynced(false) - .setSpace(0) - .setPos(10, 7); + .setSpace(0) + .setPos(10, 7); - screenElements.widget( + screenElements + .widget( new TextWidget(GT_Utility.trans("132", "Pipe is loose.")).setDefaultColor(COLOR_TEXT_WHITE.get()) - .setEnabled(widget -> !mWrench)) - .widget(new FakeSyncWidget.BooleanSyncer(() -> mWrench, val -> mWrench = val)); - screenElements.widget( + .setEnabled(widget -> !mWrench)) + .widget(new FakeSyncWidget.BooleanSyncer(() -> mWrench, val -> mWrench = val)); + screenElements + .widget( new TextWidget(GT_Utility.trans("133", "Screws are loose.")).setDefaultColor(COLOR_TEXT_WHITE.get()) - .setEnabled(widget -> !mScrewdriver)) - .widget(new FakeSyncWidget.BooleanSyncer(() -> mScrewdriver, val -> mScrewdriver = val)); - screenElements.widget( + .setEnabled(widget -> !mScrewdriver)) + .widget(new FakeSyncWidget.BooleanSyncer(() -> mScrewdriver, val -> mScrewdriver = val)); + screenElements + .widget( new TextWidget(GT_Utility.trans("134", "Something is stuck.")).setDefaultColor(COLOR_TEXT_WHITE.get()) - .setEnabled(widget -> !mSoftHammer)) - .widget(new FakeSyncWidget.BooleanSyncer(() -> mSoftHammer, val -> mSoftHammer = val)); - screenElements.widget( + .setEnabled(widget -> !mSoftHammer)) + .widget(new FakeSyncWidget.BooleanSyncer(() -> mSoftHammer, val -> mSoftHammer = val)); + screenElements + .widget( new TextWidget(GT_Utility.trans("135", "Platings are dented.")).setDefaultColor(COLOR_TEXT_WHITE.get()) - .setEnabled(widget -> !mHardHammer)) - .widget(new FakeSyncWidget.BooleanSyncer(() -> mHardHammer, val -> mHardHammer = val)); - screenElements.widget( + .setEnabled(widget -> !mHardHammer)) + .widget(new FakeSyncWidget.BooleanSyncer(() -> mHardHammer, val -> mHardHammer = val)); + screenElements + .widget( new TextWidget(GT_Utility.trans("136", "Circuitry burned out.")).setDefaultColor(COLOR_TEXT_WHITE.get()) - .setEnabled(widget -> !mSolderingTool)) - .widget(new FakeSyncWidget.BooleanSyncer(() -> mSolderingTool, val -> mSolderingTool = val)); - screenElements.widget( + .setEnabled(widget -> !mSolderingTool)) + .widget(new FakeSyncWidget.BooleanSyncer(() -> mSolderingTool, val -> mSolderingTool = val)); + screenElements + .widget( new TextWidget(GT_Utility.trans("137", "That doesn't belong there.")) - .setDefaultColor( - COLOR_TEXT_WHITE.get()) - .setEnabled(widget -> !mCrowbar)) - .widget(new FakeSyncWidget.BooleanSyncer(() -> mCrowbar, val -> mCrowbar = val)); - screenElements.widget( + .setDefaultColor(COLOR_TEXT_WHITE.get()) + .setEnabled(widget -> !mCrowbar)) + .widget(new FakeSyncWidget.BooleanSyncer(() -> mCrowbar, val -> mCrowbar = val)); + screenElements + .widget( new TextWidget(GT_Utility.trans("138", "Incomplete Structure.")).setDefaultColor(COLOR_TEXT_WHITE.get()) - .setEnabled(widget -> !mMachine)) - .widget(new FakeSyncWidget.BooleanSyncer(() -> mMachine, val -> mMachine = val)); + .setEnabled(widget -> !mMachine)) + .widget(new FakeSyncWidget.BooleanSyncer(() -> mMachine, val -> mMachine = val)); screenElements.widget( - new TextWidget("Too Uncertain.").setDefaultColor(COLOR_TEXT_WHITE.get()) - .setEnabled( - widget -> (getBaseMetaTileEntity().getErrorDisplayID() & 128) - != 0)); + new TextWidget("Too Uncertain.").setDefaultColor(COLOR_TEXT_WHITE.get()) + .setEnabled(widget -> (getBaseMetaTileEntity().getErrorDisplayID() & 128) != 0)); screenElements.widget( - new TextWidget("Invalid Parameters.").setDefaultColor(COLOR_TEXT_WHITE.get()) - .setEnabled( - widget -> (getBaseMetaTileEntity().getErrorDisplayID() - & 256) != 0)); + new TextWidget("Invalid Parameters.").setDefaultColor(COLOR_TEXT_WHITE.get()) + .setEnabled(widget -> (getBaseMetaTileEntity().getErrorDisplayID() & 256) != 0)); screenElements.widget( - new TextWidget(GT_Utility.trans("139", "Hit with Soft Mallet")).setDefaultColor(COLOR_TEXT_WHITE.get()) - .setEnabled( - widget -> getBaseMetaTileEntity().getErrorDisplayID() - == 0 - && !getBaseMetaTileEntity().isActive())) - .widget( - new FakeSyncWidget.IntegerSyncer( - () -> getBaseMetaTileEntity().getErrorDisplayID(), - val -> getBaseMetaTileEntity().setErrorDisplayID(val))) - .widget( - new FakeSyncWidget.BooleanSyncer( - () -> getBaseMetaTileEntity().isActive(), - val -> getBaseMetaTileEntity().setActive(val))); + new TextWidget(GT_Utility.trans("139", "Hit with Soft Mallet")).setDefaultColor(COLOR_TEXT_WHITE.get()) + .setEnabled( + widget -> getBaseMetaTileEntity().getErrorDisplayID() == 0 && !getBaseMetaTileEntity().isActive())) + .widget( + new FakeSyncWidget.IntegerSyncer( + () -> getBaseMetaTileEntity().getErrorDisplayID(), + val -> getBaseMetaTileEntity().setErrorDisplayID(val))) + .widget( + new FakeSyncWidget.BooleanSyncer( + () -> getBaseMetaTileEntity().isActive(), + val -> getBaseMetaTileEntity().setActive(val))); screenElements.widget( - new TextWidget( - GT_Utility.trans("140", "to (re-)start the Machine")).setDefaultColor(COLOR_TEXT_WHITE.get()) - .setEnabled( - widget -> getBaseMetaTileEntity().getErrorDisplayID() - == 0 - && !getBaseMetaTileEntity().isActive())); + new TextWidget(GT_Utility.trans("140", "to (re-)start the Machine")).setDefaultColor(COLOR_TEXT_WHITE.get()) + .setEnabled( + widget -> getBaseMetaTileEntity().getErrorDisplayID() == 0 && !getBaseMetaTileEntity().isActive())); screenElements.widget( - new TextWidget(GT_Utility.trans("141", "if it doesn't start.")).setDefaultColor(COLOR_TEXT_WHITE.get()) - .setEnabled( - widget -> getBaseMetaTileEntity().getErrorDisplayID() - == 0 - && !getBaseMetaTileEntity().isActive())); + new TextWidget(GT_Utility.trans("141", "if it doesn't start.")).setDefaultColor(COLOR_TEXT_WHITE.get()) + .setEnabled( + widget -> getBaseMetaTileEntity().getErrorDisplayID() == 0 && !getBaseMetaTileEntity().isActive())); screenElements.widget( - new TextWidget(GT_Utility.trans("142", "Running perfectly.")).setDefaultColor(COLOR_TEXT_WHITE.get()) - .setEnabled( - widget -> getBaseMetaTileEntity().getErrorDisplayID() - == 0 - && getBaseMetaTileEntity().isActive())); + new TextWidget(GT_Utility.trans("142", "Running perfectly.")).setDefaultColor(COLOR_TEXT_WHITE.get()) + .setEnabled( + widget -> getBaseMetaTileEntity().getErrorDisplayID() == 0 && getBaseMetaTileEntity().isActive())); screenElements.widget( - new TextWidget(GT_Utility.trans("143", "Missing Mining Pipe")).setDefaultColor(COLOR_TEXT_WHITE.get()) - .setEnabled(widget -> { - if (getBaseMetaTileEntity().getErrorDisplayID() - == 0 - && this instanceof GT_MetaTileEntity_DrillerBase) { - final ItemStack tItem = inventorySlot.getMcSlot() - .getStack(); - return tItem == null - || !GT_Utility.areStacksEqual( - tItem, - GT_ModHandler.getIC2Item( - "miningPipe", - 1L)); - } - return false; - })); + new TextWidget(GT_Utility.trans("143", "Missing Mining Pipe")).setDefaultColor(COLOR_TEXT_WHITE.get()) + .setEnabled(widget -> { + if (getBaseMetaTileEntity().getErrorDisplayID() == 0 + && this instanceof GT_MetaTileEntity_DrillerBase) { + final ItemStack tItem = inventorySlot.getMcSlot() + .getStack(); + return tItem == null + || !GT_Utility.areStacksEqual(tItem, GT_ModHandler.getIC2Item("miningPipe", 1L)); + } + return false; + })); screenElements.widget( - new TextWidget(GT_Utility.trans("144", "Missing Turbine Rotor")).setDefaultColor(COLOR_TEXT_WHITE.get()) - .setEnabled(widget -> { - if (getBaseMetaTileEntity().getErrorDisplayID() - == 0 - && this instanceof GT_MetaTileEntity_LargeTurbine) { - final ItemStack tItem = inventorySlot.getMcSlot() - .getStack(); - return tItem == null || !(tItem - .getItem() - == GT_MetaGenerated_Tool_01.INSTANCE - && tItem.getItemDamage() - >= 170 - && tItem.getItemDamage() - <= 177); - } - return false; - })); + new TextWidget(GT_Utility.trans("144", "Missing Turbine Rotor")).setDefaultColor(COLOR_TEXT_WHITE.get()) + .setEnabled(widget -> { + if (getBaseMetaTileEntity().getErrorDisplayID() == 0 + && this instanceof GT_MetaTileEntity_LargeTurbine) { + final ItemStack tItem = inventorySlot.getMcSlot() + .getStack(); + return tItem == null + || !(tItem.getItem() == GT_MetaGenerated_Tool_01.INSTANCE && tItem.getItemDamage() >= 170 + && tItem.getItemDamage() <= 177); + } + return false; + })); } protected ButtonWidget createPowerSwitchButton() { @@ -1729,24 +1681,23 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity getBaseMetaTileEntity().enableWorking(); } }) - .setPlayClickSoundResource( - () -> getBaseMetaTileEntity().isAllowedToWork() - ? SoundResource.GUI_BUTTON_UP.resourceLocation - : SoundResource.GUI_BUTTON_DOWN.resourceLocation) - .setBackground(() -> { - List ret = new ArrayList<>(); - ret.add(GT_UITextures.BUTTON_STANDARD); - if (getBaseMetaTileEntity().isAllowedToWork()) { - ret.add(GT_UITextures.OVERLAY_BUTTON_POWER_SWITCH_ON); - } else { - ret.add(GT_UITextures.OVERLAY_BUTTON_POWER_SWITCH_OFF); - } - return ret.toArray(new IDrawable[0]); - }) - .setPos(174, 148) - .setSize(16, 16); + .setPlayClickSoundResource( + () -> getBaseMetaTileEntity().isAllowedToWork() ? SoundResource.GUI_BUTTON_UP.resourceLocation + : SoundResource.GUI_BUTTON_DOWN.resourceLocation) + .setBackground(() -> { + List ret = new ArrayList<>(); + ret.add(GT_UITextures.BUTTON_STANDARD); + if (getBaseMetaTileEntity().isAllowedToWork()) { + ret.add(GT_UITextures.OVERLAY_BUTTON_POWER_SWITCH_ON); + } else { + ret.add(GT_UITextures.OVERLAY_BUTTON_POWER_SWITCH_OFF); + } + return ret.toArray(new IDrawable[0]); + }) + .setPos(174, 148) + .setSize(16, 16); button.addTooltip(StatCollector.translateToLocal("GT5U.gui.button.power_switch")) - .setTooltipShowUpDelay(TOOLTIP_DELAY); + .setTooltipShowUpDelay(TOOLTIP_DELAY); return (ButtonWidget) button; } @@ -1756,29 +1707,29 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity voidExcess = !voidExcess; } }) - .setPlayClickSound(true) - .setBackground(() -> { - List ret = new ArrayList<>(); - ret.add(GT_UITextures.BUTTON_STANDARD); - if (isVoidExcessButtonEnabled()) { - if (isVoidExcessEnabled()) { - ret.add(GT_UITextures.OVERLAY_BUTTON_VOID_EXCESS_ON); - } else { - ret.add(GT_UITextures.OVERLAY_BUTTON_VOID_EXCESS_OFF); - } - } else { - if (isVoidExcessEnabled()) { - ret.add(GT_UITextures.OVERLAY_BUTTON_VOID_EXCESS_ON_DISABLED); - } else { - ret.add(GT_UITextures.OVERLAY_BUTTON_VOID_EXCESS_OFF_DISABLED); - } - } - return ret.toArray(new IDrawable[0]); - }) - .setPos(8, 91) - .setSize(16, 16); + .setPlayClickSound(true) + .setBackground(() -> { + List ret = new ArrayList<>(); + ret.add(GT_UITextures.BUTTON_STANDARD); + if (isVoidExcessButtonEnabled()) { + if (isVoidExcessEnabled()) { + ret.add(GT_UITextures.OVERLAY_BUTTON_VOID_EXCESS_ON); + } else { + ret.add(GT_UITextures.OVERLAY_BUTTON_VOID_EXCESS_OFF); + } + } else { + if (isVoidExcessEnabled()) { + ret.add(GT_UITextures.OVERLAY_BUTTON_VOID_EXCESS_ON_DISABLED); + } else { + ret.add(GT_UITextures.OVERLAY_BUTTON_VOID_EXCESS_OFF_DISABLED); + } + } + return ret.toArray(new IDrawable[0]); + }) + .setPos(8, 91) + .setSize(16, 16); button.addTooltip(StatCollector.translateToLocal("GT5U.gui.button.void_excess")) - .setTooltipShowUpDelay(TOOLTIP_DELAY); + .setTooltipShowUpDelay(TOOLTIP_DELAY); return (ButtonWidget) button; } @@ -1788,31 +1739,29 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity inputSeparation = !inputSeparation; } }) - .setPlayClickSound(true) - .setBackground(() -> { - List ret = new ArrayList<>(); - ret.add(GT_UITextures.BUTTON_STANDARD); - if (isInputSeparationButtonEnabled()) { - if (isInputSeparationEnabled()) { - ret.add(GT_UITextures.OVERLAY_BUTTON_INPUT_SEPARATION_ON); - } else { - ret.add(GT_UITextures.OVERLAY_BUTTON_INPUT_SEPARATION_OFF); - } - } else { - if (isInputSeparationEnabled()) { - ret.add( - GT_UITextures.OVERLAY_BUTTON_INPUT_SEPARATION_ON_DISABLED); - } else { - ret.add( - GT_UITextures.OVERLAY_BUTTON_INPUT_SEPARATION_OFF_DISABLED); - } - } - return ret.toArray(new IDrawable[0]); - }) - .setPos(26, 91) - .setSize(16, 16); + .setPlayClickSound(true) + .setBackground(() -> { + List ret = new ArrayList<>(); + ret.add(GT_UITextures.BUTTON_STANDARD); + if (isInputSeparationButtonEnabled()) { + if (isInputSeparationEnabled()) { + ret.add(GT_UITextures.OVERLAY_BUTTON_INPUT_SEPARATION_ON); + } else { + ret.add(GT_UITextures.OVERLAY_BUTTON_INPUT_SEPARATION_OFF); + } + } else { + if (isInputSeparationEnabled()) { + ret.add(GT_UITextures.OVERLAY_BUTTON_INPUT_SEPARATION_ON_DISABLED); + } else { + ret.add(GT_UITextures.OVERLAY_BUTTON_INPUT_SEPARATION_OFF_DISABLED); + } + } + return ret.toArray(new IDrawable[0]); + }) + .setPos(26, 91) + .setSize(16, 16); button.addTooltip(StatCollector.translateToLocal("GT5U.gui.button.input_separation")) - .setTooltipShowUpDelay(TOOLTIP_DELAY); + .setTooltipShowUpDelay(TOOLTIP_DELAY); return (ButtonWidget) button; } @@ -1822,29 +1771,29 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity batchMode = !batchMode; } }) - .setPlayClickSound(true) - .setBackground(() -> { - List ret = new ArrayList<>(); - ret.add(GT_UITextures.BUTTON_STANDARD); - if (isBatchModeButtonEnabled()) { - if (isBatchModeEnabled()) { - ret.add(GT_UITextures.OVERLAY_BUTTON_BATCH_MODE_ON); - } else { - ret.add(GT_UITextures.OVERLAY_BUTTON_BATCH_MODE_OFF); - } - } else { - if (isBatchModeEnabled()) { - ret.add(GT_UITextures.OVERLAY_BUTTON_BATCH_MODE_ON_DISABLED); - } else { - ret.add(GT_UITextures.OVERLAY_BUTTON_BATCH_MODE_OFF_DISABLED); - } - } - return ret.toArray(new IDrawable[0]); - }) - .setPos(44, 91) - .setSize(16, 16); + .setPlayClickSound(true) + .setBackground(() -> { + List ret = new ArrayList<>(); + ret.add(GT_UITextures.BUTTON_STANDARD); + if (isBatchModeButtonEnabled()) { + if (isBatchModeEnabled()) { + ret.add(GT_UITextures.OVERLAY_BUTTON_BATCH_MODE_ON); + } else { + ret.add(GT_UITextures.OVERLAY_BUTTON_BATCH_MODE_OFF); + } + } else { + if (isBatchModeEnabled()) { + ret.add(GT_UITextures.OVERLAY_BUTTON_BATCH_MODE_ON_DISABLED); + } else { + ret.add(GT_UITextures.OVERLAY_BUTTON_BATCH_MODE_OFF_DISABLED); + } + } + return ret.toArray(new IDrawable[0]); + }) + .setPos(44, 91) + .setSize(16, 16); button.addTooltip(StatCollector.translateToLocal("GT5U.gui.button.batch_mode")) - .setTooltipShowUpDelay(TOOLTIP_DELAY); + .setTooltipShowUpDelay(TOOLTIP_DELAY); return (ButtonWidget) button; } @@ -1854,29 +1803,29 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity mLockedToSingleRecipe = !mLockedToSingleRecipe; } }) - .setPlayClickSound(true) - .setBackground(() -> { - List ret = new ArrayList<>(); - ret.add(GT_UITextures.BUTTON_STANDARD); - if (supportsSingleRecipeLocking()) { - if (isRecipeLockingEnabled()) { - ret.add(GT_UITextures.OVERLAY_BUTTON_RECIPE_LOCKED); - } else { - ret.add(GT_UITextures.OVERLAY_BUTTON_RECIPE_UNLOCKED); - } - } else { - if (isRecipeLockingEnabled()) { - ret.add(GT_UITextures.OVERLAY_BUTTON_RECIPE_LOCKED_DISABLED); - } else { - ret.add(GT_UITextures.OVERLAY_BUTTON_RECIPE_UNLOCKED_DISABLED); - } - } - return ret.toArray(new IDrawable[0]); - }) - .setPos(62, 91) - .setSize(16, 16); + .setPlayClickSound(true) + .setBackground(() -> { + List ret = new ArrayList<>(); + ret.add(GT_UITextures.BUTTON_STANDARD); + if (supportsSingleRecipeLocking()) { + if (isRecipeLockingEnabled()) { + ret.add(GT_UITextures.OVERLAY_BUTTON_RECIPE_LOCKED); + } else { + ret.add(GT_UITextures.OVERLAY_BUTTON_RECIPE_UNLOCKED); + } + } else { + if (isRecipeLockingEnabled()) { + ret.add(GT_UITextures.OVERLAY_BUTTON_RECIPE_LOCKED_DISABLED); + } else { + ret.add(GT_UITextures.OVERLAY_BUTTON_RECIPE_UNLOCKED_DISABLED); + } + } + return ret.toArray(new IDrawable[0]); + }) + .setPos(62, 91) + .setSize(16, 16); button.addTooltip(StatCollector.translateToLocal("GT5U.gui.button.lock_recipe")) - .setTooltipShowUpDelay(TOOLTIP_DELAY); + .setTooltipShowUpDelay(TOOLTIP_DELAY); return (ButtonWidget) button; } } diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_SpecialFilter.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_SpecialFilter.java index 890733e363..9672c87f40 100644 --- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_SpecialFilter.java +++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_SpecialFilter.java @@ -29,18 +29,18 @@ public abstract class GT_MetaTileEntity_SpecialFilter extends GT_MetaTileEntity_ public boolean bInvertFilter = false; public GT_MetaTileEntity_SpecialFilter(int aID, String aName, String aNameRegional, int aTier, - String[] aDescription) { + String[] aDescription) { // 9 buffer slot, 1 representation slot, 1 holo slot. last seems not needed... super(aID, aName, aNameRegional, aTier, 11, aDescription); } public GT_MetaTileEntity_SpecialFilter(String aName, int aTier, int aInvSlotCount, String aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, aInvSlotCount, aDescription, aTextures); } public GT_MetaTileEntity_SpecialFilter(String aName, int aTier, int aInvSlotCount, String[] aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, aInvSlotCount, aDescription, aTextures); } @@ -68,8 +68,8 @@ public abstract class GT_MetaTileEntity_SpecialFilter extends GT_MetaTileEntity_ @Override public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack) { return (super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) - && ((this.bNBTAllowed) || (!aStack.hasTagCompound())) - && (this.isStackAllowed(aStack) != this.bInvertFilter); + && ((this.bNBTAllowed) || (!aStack.hasTagCompound())) + && (this.isStackAllowed(aStack) != this.bInvertFilter); } protected abstract boolean isStackAllowed(ItemStack aStack); @@ -91,79 +91,77 @@ public abstract class GT_MetaTileEntity_SpecialFilter extends GT_MetaTileEntity_ bInvertFilter = !bInvertFilter; if (bInvertFilter) { GT_Utility.sendChatToPlayer( - widget.getContext() - .getPlayer(), - GT_Utility.trans("124", "Invert Filter")); + widget.getContext() + .getPlayer(), + GT_Utility.trans("124", "Invert Filter")); } else { GT_Utility.sendChatToPlayer( - widget.getContext() - .getPlayer(), - GT_Utility.trans("125", "Don't invert Filter")); + widget.getContext() + .getPlayer(), + GT_Utility.trans("125", "Don't invert Filter")); } }) - .setBackground( - GT_UITextures.BUTTON_STANDARD, - GT_UITextures.OVERLAY_BUTTON_INVERT_FILTER) - .setPos(61, 62) - .setSize(18, 18)) - .widget(new ButtonWidget().setOnClick((clickData, widget) -> { - bNBTAllowed = !bNBTAllowed; - if (bNBTAllowed) { - GT_Utility.sendChatToPlayer( - widget.getContext() - .getPlayer(), - GT_Utility.trans("126", "Ignore NBT")); - } else { - GT_Utility.sendChatToPlayer( - widget.getContext() - .getPlayer(), - GT_Utility.trans("127", "NBT has to match")); - } - }) - .setBackground(GT_UITextures.BUTTON_STANDARD, GT_UITextures.OVERLAY_BUTTON_NBT) - .setPos(79, 62) - .setSize(18, 18)) - .widget( - new DrawableWidget().setDrawable(GT_UITextures.PICTURE_ARROW_24_WHITE.apply(27, false)) - .setPos(6, 19) - .setSize(27, 24)) - .widget( - new DrawableWidget().setDrawable(GT_UITextures.PICTURE_ARROW_24_BLUE.apply(42, true)) - .setPos(53, 19) - .setSize(42, 24)) - .widget( - new DrawableWidget().setDrawable(GT_UITextures.PICTURE_ARROW_24_RED.apply(19, true)) - .setPos(152, 19) - .setSize(19, 24)) - .widget(new SlotWidget(BaseSlot.phantom(inventoryHandler, 9)) { - - @Override - protected void phantomClick(ClickData clickData, ItemStack cursorStack) { - clickTypeIcon(clickData.mouseButton != 0, cursorStack); - } - - @Override - public void buildTooltip(List tooltip) { - if (getEmptySlotTooltip() != null) { - tooltip.addAll(getEmptySlotTooltip()); - } - super.buildTooltip(tooltip); - } - - @Override - public List getExtraTooltip() { - if (getItemExtraTooltip() != null) { - return getItemExtraTooltip(); - } - return Collections.emptyList(); - } - }.disableShiftInsert() + .setBackground(GT_UITextures.BUTTON_STANDARD, GT_UITextures.OVERLAY_BUTTON_INVERT_FILTER) + .setPos(61, 62) + .setSize(18, 18)) + .widget(new ButtonWidget().setOnClick((clickData, widget) -> { + bNBTAllowed = !bNBTAllowed; + if (bNBTAllowed) { + GT_Utility.sendChatToPlayer( + widget.getContext() + .getPlayer(), + GT_Utility.trans("126", "Ignore NBT")); + } else { + GT_Utility.sendChatToPlayer( + widget.getContext() + .getPlayer(), + GT_Utility.trans("127", "NBT has to match")); + } + }) + .setBackground(GT_UITextures.BUTTON_STANDARD, GT_UITextures.OVERLAY_BUTTON_NBT) + .setPos(79, 62) + .setSize(18, 18)) + .widget( + new DrawableWidget().setDrawable(GT_UITextures.PICTURE_ARROW_24_WHITE.apply(27, false)) + .setPos(6, 19) + .setSize(27, 24)) + .widget( + new DrawableWidget().setDrawable(GT_UITextures.PICTURE_ARROW_24_BLUE.apply(42, true)) + .setPos(53, 19) + .setSize(42, 24)) + .widget( + new DrawableWidget().setDrawable(GT_UITextures.PICTURE_ARROW_24_RED.apply(19, true)) + .setPos(152, 19) + .setSize(19, 24)) + .widget(new SlotWidget(BaseSlot.phantom(inventoryHandler, 9)) { + + @Override + protected void phantomClick(ClickData clickData, ItemStack cursorStack) { + clickTypeIcon(clickData.mouseButton != 0, cursorStack); + } + + @Override + public void buildTooltip(List tooltip) { + if (getEmptySlotTooltip() != null) { + tooltip.addAll(getEmptySlotTooltip()); + } + super.buildTooltip(tooltip); + } + + @Override + public List getExtraTooltip() { + if (getItemExtraTooltip() != null) { + return getItemExtraTooltip(); + } + return Collections.emptyList(); + } + }.disableShiftInsert() .setPos(34, 22) .setBackground(GT_UITextures.BUTTON_STANDARD)) - .widget( - SlotGroup.ofItemHandler(inventoryHandler, 3) - .endAtSlot(8) - .build() - .setPos(97, 4)); + .widget( + SlotGroup.ofItemHandler(inventoryHandler, 3) + .endAtSlot(8) + .build() + .setPos(97, 4)); } } diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_TieredMachineBlock.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_TieredMachineBlock.java index 3424baca8b..765cd047ad 100644 --- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_TieredMachineBlock.java +++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_TieredMachineBlock.java @@ -35,7 +35,7 @@ public abstract class GT_MetaTileEntity_TieredMachineBlock extends MetaTileEntit public final ITexture[][][] mTextures; public GT_MetaTileEntity_TieredMachineBlock(int aID, String aName, String aNameRegional, int aTier, - int aInvSlotCount, String aDescription, ITexture... aTextures) { + int aInvSlotCount, String aDescription, ITexture... aTextures) { super(aID, aName, aNameRegional, aInvSlotCount); mTier = (byte) Math.max(0, Math.min(aTier, 14)); mDescriptionArray = aDescription == null ? new String[0] : new String[] { aDescription }; @@ -46,7 +46,7 @@ public abstract class GT_MetaTileEntity_TieredMachineBlock extends MetaTileEntit } public GT_MetaTileEntity_TieredMachineBlock(int aID, String aName, String aNameRegional, int aTier, - int aInvSlotCount, String[] aDescription, ITexture... aTextures) { + int aInvSlotCount, String[] aDescription, ITexture... aTextures) { super(aID, aName, aNameRegional, aInvSlotCount); mTier = (byte) Math.max(0, Math.min(aTier, 15)); mDescriptionArray = aDescription == null ? new String[0] : aDescription; @@ -63,7 +63,7 @@ public abstract class GT_MetaTileEntity_TieredMachineBlock extends MetaTileEntit } public GT_MetaTileEntity_TieredMachineBlock(String aName, int aTier, int aInvSlotCount, String aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aInvSlotCount); mTier = (byte) aTier; mDescriptionArray = aDescription == null ? new String[0] : new String[] { aDescription }; @@ -72,7 +72,7 @@ public abstract class GT_MetaTileEntity_TieredMachineBlock extends MetaTileEntit } public GT_MetaTileEntity_TieredMachineBlock(String aName, int aTier, int aInvSlotCount, String[] aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aInvSlotCount); mTier = (byte) aTier; mDescriptionArray = aDescription == null ? new String[0] : aDescription; @@ -124,15 +124,9 @@ public abstract class GT_MetaTileEntity_TieredMachineBlock extends MetaTileEntit protected SlotWidget createChargerSlot(int x, int y, String tooltipKey, Object[] tooltipArgs) { return (SlotWidget) new SlotWidget(inventoryHandler, rechargerSlotStartIndex()).disableShiftInsert() - .setGTTooltip( - () -> mTooltipCache.getData( - tooltipKey, - tooltipArgs)) - .setTooltipShowUpDelay( - TOOLTIP_DELAY) - .setBackground( - getGUITextureSet().getItemSlot(), - GT_UITextures.OVERLAY_SLOT_CHARGER) - .setPos(x, y); + .setGTTooltip(() -> mTooltipCache.getData(tooltipKey, tooltipArgs)) + .setTooltipShowUpDelay(TOOLTIP_DELAY) + .setBackground(getGUITextureSet().getItemSlot(), GT_UITextures.OVERLAY_SLOT_CHARGER) + .setPos(x, y); } } diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_TooltipMultiBlockBase.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_TooltipMultiBlockBase.java index a4c42dd14d..c12c7c1442 100644 --- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_TooltipMultiBlockBase.java +++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_TooltipMultiBlockBase.java @@ -12,10 +12,10 @@ import gregtech.api.util.GT_Multiblock_Tooltip_Builder; * A multiblock with tooltip {@link GT_Multiblock_Tooltip_Builder} */ public abstract class GT_MetaTileEntity_TooltipMultiBlockBase extends GT_MetaTileEntity_MultiBlockBase - implements ISecondaryDescribable { + implements ISecondaryDescribable { private static final AtomicReferenceArray tooltips = new AtomicReferenceArray<>( - GregTech_API.METATILEENTITIES.length); + GregTech_API.METATILEENTITIES.length); public GT_MetaTileEntity_TooltipMultiBlockBase(int aID, String aName, String aNameRegional) { super(aID, aName, aNameRegional); diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Transformer.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Transformer.java index c7b9c66b70..ae70607416 100644 --- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Transformer.java +++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Transformer.java @@ -58,38 +58,38 @@ public class GT_MetaTileEntity_Transformer extends GT_MetaTileEntity_TieredMachi ITexture[][][] rTextures = new ITexture[12][17][]; for (byte i = -1; i < 16; i++) { rTextures[0][i + 1] = new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[mTier][i + 1], - Textures.BlockIcons.OVERLAYS_ENERGY_OUT[mTier] }; + Textures.BlockIcons.OVERLAYS_ENERGY_OUT[mTier] }; rTextures[1][i + 1] = new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[mTier][i + 1], - Textures.BlockIcons.OVERLAYS_ENERGY_OUT[mTier] }; + Textures.BlockIcons.OVERLAYS_ENERGY_OUT[mTier] }; rTextures[2][i + 1] = new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[mTier][i + 1], - Textures.BlockIcons.OVERLAYS_ENERGY_OUT[mTier] }; + Textures.BlockIcons.OVERLAYS_ENERGY_OUT[mTier] }; rTextures[3][i + 1] = new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[mTier][i + 1], - Textures.BlockIcons.OVERLAYS_ENERGY_IN_MULTI[mTier] }; + Textures.BlockIcons.OVERLAYS_ENERGY_IN_MULTI[mTier] }; rTextures[4][i + 1] = new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[mTier][i + 1], - Textures.BlockIcons.OVERLAYS_ENERGY_IN_MULTI[mTier] }; + Textures.BlockIcons.OVERLAYS_ENERGY_IN_MULTI[mTier] }; rTextures[5][i + 1] = new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[mTier][i + 1], - Textures.BlockIcons.OVERLAYS_ENERGY_IN_MULTI[mTier] }; + Textures.BlockIcons.OVERLAYS_ENERGY_IN_MULTI[mTier] }; rTextures[6][i + 1] = new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[mTier][i + 1], - Textures.BlockIcons.OVERLAYS_ENERGY_IN[mTier] }; + Textures.BlockIcons.OVERLAYS_ENERGY_IN[mTier] }; rTextures[7][i + 1] = new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[mTier][i + 1], - Textures.BlockIcons.OVERLAYS_ENERGY_IN[mTier] }; + Textures.BlockIcons.OVERLAYS_ENERGY_IN[mTier] }; rTextures[8][i + 1] = new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[mTier][i + 1], - Textures.BlockIcons.OVERLAYS_ENERGY_IN[mTier] }; + Textures.BlockIcons.OVERLAYS_ENERGY_IN[mTier] }; rTextures[9][i + 1] = new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[mTier][i + 1], - Textures.BlockIcons.OVERLAYS_ENERGY_OUT_MULTI[mTier] }; + Textures.BlockIcons.OVERLAYS_ENERGY_OUT_MULTI[mTier] }; rTextures[10][i + 1] = new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[mTier][i + 1], - Textures.BlockIcons.OVERLAYS_ENERGY_OUT_MULTI[mTier] }; + Textures.BlockIcons.OVERLAYS_ENERGY_OUT_MULTI[mTier] }; rTextures[11][i + 1] = new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[mTier][i + 1], - Textures.BlockIcons.OVERLAYS_ENERGY_OUT_MULTI[mTier] }; + Textures.BlockIcons.OVERLAYS_ENERGY_OUT_MULTI[mTier] }; } return rTextures; } @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { return mTextures[Math.min(2, aSide) + (aSide == aFacing ? 3 : 0) - + (aBaseMetaTileEntity.isAllowedToWork() ? 0 : 6)][aColorIndex + 1]; + + (aBaseMetaTileEntity.isAllowedToWork() ? 0 : 6)][aColorIndex + 1]; } @Override @@ -125,7 +125,7 @@ public class GT_MetaTileEntity_Transformer extends GT_MetaTileEntity_TieredMachi @Override public boolean isInputFacing(byte aSide) { return getBaseMetaTileEntity().isAllowedToWork() ? aSide == getBaseMetaTileEntity().getFrontFacing() - : aSide != getBaseMetaTileEntity().getFrontFacing(); + : aSide != getBaseMetaTileEntity().getFrontFacing(); } @Override @@ -175,51 +175,46 @@ public class GT_MetaTileEntity_Transformer extends GT_MetaTileEntity_TieredMachi for (byte i = 0; i < 6 && aBaseMetaTileEntity.getStoredEU() < aBaseMetaTileEntity.getEUCapacity(); i++) if (aBaseMetaTileEntity.inputEnergyFrom(i)) { TileEntity tTileEntity = aBaseMetaTileEntity.getTileEntityAtSide(i); - if (tTileEntity instanceof IEnergyProvider && ((IEnergyProvider) tTileEntity).extractEnergy( - ForgeDirection.getOrientation(GT_Utility.getOppositeSide(i)), - 1, - true) == 1) { + if (tTileEntity instanceof IEnergyProvider && ((IEnergyProvider) tTileEntity) + .extractEnergy(ForgeDirection.getOrientation(GT_Utility.getOppositeSide(i)), 1, true) == 1) { long tEU = ((IEnergyProvider) tTileEntity).extractEnergy( - ForgeDirection.getOrientation(GT_Utility.getOppositeSide(i)), - GT_Utility.safeInt(maxEUInput() * 100L / GregTech_API.mRFtoEU), - false); + ForgeDirection.getOrientation(GT_Utility.getOppositeSide(i)), + GT_Utility.safeInt(maxEUInput() * 100L / GregTech_API.mRFtoEU), + false); tEU = tEU * GregTech_API.mRFtoEU / 100; aBaseMetaTileEntity.injectEnergyUnits((byte) 6, Math.min(tEU, maxEUInput()), 1); } else if (tTileEntity instanceof IEnergyStorage - && ((IEnergyStorage) tTileEntity).extractEnergy(1, true) == 1) { - long tEU = ((IEnergyStorage) tTileEntity).extractEnergy( - GT_Utility.safeInt(maxEUInput() * 100L / GregTech_API.mRFtoEU), - false); - tEU = tEU * GregTech_API.mRFtoEU / 100; - aBaseMetaTileEntity.injectEnergyUnits((byte) 6, Math.min(tEU, maxEUInput()), 1); - } else - if (GregTech_API.meIOLoaded && tTileEntity instanceof IPowerContainer - && ((IPowerContainer) tTileEntity).getEnergyStored() > 0) { - int storedRF = ((IPowerContainer) tTileEntity).getEnergyStored(); - int extractRF = GT_Utility.safeInt(maxEUInput() * 100L / GregTech_API.mRFtoEU); - long tEU = 0; - if (tTileEntity instanceof TileCapBank) { - ICapBankNetwork network = ((TileCapBank) tTileEntity).getNetwork(); - if (network != null && network.getEnergyStoredL() > 0) { - tEU = Math.min( - (Math.min( - Math.min(network.getEnergyStoredL(), storedRF - extractRF), - network.getMaxOutput())) * (long) GregTech_API.mRFtoEU - / 100L, - maxEUInput()); - network.addEnergy(GT_Utility.safeInt(-(tEU * 100 / GregTech_API.mRFtoEU))); - } + && ((IEnergyStorage) tTileEntity).extractEnergy(1, true) == 1) { + long tEU = ((IEnergyStorage) tTileEntity) + .extractEnergy(GT_Utility.safeInt(maxEUInput() * 100L / GregTech_API.mRFtoEU), false); + tEU = tEU * GregTech_API.mRFtoEU / 100; + aBaseMetaTileEntity.injectEnergyUnits((byte) 6, Math.min(tEU, maxEUInput()), 1); + } else if (GregTech_API.meIOLoaded && tTileEntity instanceof IPowerContainer + && ((IPowerContainer) tTileEntity).getEnergyStored() > 0) { + int storedRF = ((IPowerContainer) tTileEntity).getEnergyStored(); + int extractRF = GT_Utility.safeInt(maxEUInput() * 100L / GregTech_API.mRFtoEU); + long tEU = 0; + if (tTileEntity instanceof TileCapBank) { + ICapBankNetwork network = ((TileCapBank) tTileEntity).getNetwork(); + if (network != null && network.getEnergyStoredL() > 0) { + tEU = Math.min( + (Math.min( + Math.min(network.getEnergyStoredL(), storedRF - extractRF), + network.getMaxOutput())) * (long) GregTech_API.mRFtoEU / 100L, + maxEUInput()); + network.addEnergy(GT_Utility.safeInt(-(tEU * 100 / GregTech_API.mRFtoEU))); + } + } else { + if (storedRF > extractRF) { + ((IPowerContainer) tTileEntity).setEnergyStored(storedRF - extractRF); + tEU = maxEUInput(); } else { - if (storedRF > extractRF) { - ((IPowerContainer) tTileEntity).setEnergyStored(storedRF - extractRF); - tEU = maxEUInput(); - } else { - ((IPowerContainer) tTileEntity).setEnergyStored(0); - tEU = storedRF * (long) GregTech_API.mRFtoEU / 100L; - } + ((IPowerContainer) tTileEntity).setEnergyStored(0); + tEU = storedRF * (long) GregTech_API.mRFtoEU / 100L; } - aBaseMetaTileEntity.injectEnergyUnits((byte) 6, Math.min(tEU, maxEUInput()), 1); } + aBaseMetaTileEntity.injectEnergyUnits((byte) 6, Math.min(tEU, maxEUInput()), 1); + } } } } @@ -252,14 +247,14 @@ public class GT_MetaTileEntity_Transformer extends GT_MetaTileEntity_TieredMachi @Override public String getAlternativeModeText() { return (getBaseMetaTileEntity().isAllowedToWork() ? GT_Utility.trans("145", "Step Down, In: ") - : GT_Utility.trans("146", "Step Up, In: ")) + maxEUInput() - + GT_Utility.trans("148", "V ") - + maxAmperesIn() - + GT_Utility.trans("147", "A, Out: ") - + maxEUOutput() - + GT_Utility.trans("148", "V ") - + maxAmperesOut() - + GT_Utility.trans("149", "A"); + : GT_Utility.trans("146", "Step Up, In: ")) + maxEUInput() + + GT_Utility.trans("148", "V ") + + maxAmperesIn() + + GT_Utility.trans("147", "A, Out: ") + + maxEUOutput() + + GT_Utility.trans("148", "V ") + + maxAmperesOut() + + GT_Utility.trans("149", "A"); } @Override @@ -269,45 +264,42 @@ public class GT_MetaTileEntity_Transformer extends GT_MetaTileEntity_TieredMachi @Override public void getWailaBody(ItemStack itemStack, List currenttip, IWailaDataAccessor accessor, - IWailaConfigHandler config) { + IWailaConfigHandler config) { final int facing = getBaseMetaTileEntity().getFrontFacing(); final NBTTagCompound tag = accessor.getNBTData(); final int side = (byte) accessor.getSide() - .ordinal(); + .ordinal(); final boolean allowedToWork = tag.getBoolean("isAllowedToWork"); final byte inputTier = GT_Utility.getTier(tag.getLong("maxEUInput")); final byte outputTier = GT_Utility.getTier(tag.getLong("maxEUOutput")); currenttip.add( - String.format( - "%s %s(%dA) -> %s(%dA)", - (allowedToWork ? (GREEN + "Step Down") : (RED + "Step Up")) + RESET, - GT_Mod.gregtechproxy.mWailaTransformerVoltageTier - ? GT_Utility.getColoredTierNameFromTier(inputTier) - : tag.getLong("maxEUInput"), - tag.getLong("maxAmperesIn"), - GT_Mod.gregtechproxy.mWailaTransformerVoltageTier - ? GT_Utility.getColoredTierNameFromTier(outputTier) - : tag.getLong("maxEUOutput"), - tag.getLong("maxAmperesOut"))); + String.format( + "%s %s(%dA) -> %s(%dA)", + (allowedToWork ? (GREEN + "Step Down") : (RED + "Step Up")) + RESET, + GT_Mod.gregtechproxy.mWailaTransformerVoltageTier ? GT_Utility.getColoredTierNameFromTier(inputTier) + : tag.getLong("maxEUInput"), + tag.getLong("maxAmperesIn"), + GT_Mod.gregtechproxy.mWailaTransformerVoltageTier ? GT_Utility.getColoredTierNameFromTier(outputTier) + : tag.getLong("maxEUOutput"), + tag.getLong("maxAmperesOut"))); if ((side == facing && allowedToWork) || (side != facing && !allowedToWork)) { currenttip.add( - String.format( - GOLD + "Input:" + RESET + " %s(%dA)", - GT_Mod.gregtechproxy.mWailaTransformerVoltageTier - ? GT_Utility.getColoredTierNameFromTier(inputTier) - : tag.getLong("maxEUInput"), - tag.getLong("maxAmperesIn"))); + String.format( + GOLD + "Input:" + RESET + " %s(%dA)", + GT_Mod.gregtechproxy.mWailaTransformerVoltageTier ? GT_Utility.getColoredTierNameFromTier(inputTier) + : tag.getLong("maxEUInput"), + tag.getLong("maxAmperesIn"))); } else { currenttip.add( - String.format( - BLUE + "Output:" + RESET + " %s(%dA)", - GT_Mod.gregtechproxy.mWailaTransformerVoltageTier - ? GT_Utility.getColoredTierNameFromTier(outputTier) - : tag.getLong("maxEUOutput"), - tag.getLong("maxAmperesOut"))); + String.format( + BLUE + "Output:" + RESET + " %s(%dA)", + GT_Mod.gregtechproxy.mWailaTransformerVoltageTier + ? GT_Utility.getColoredTierNameFromTier(outputTier) + : tag.getLong("maxEUOutput"), + tag.getLong("maxAmperesOut"))); } super.getWailaBody(itemStack, currenttip, accessor, config); @@ -315,7 +307,7 @@ public class GT_MetaTileEntity_Transformer extends GT_MetaTileEntity_TieredMachi @Override public void getWailaNBTData(EntityPlayerMP player, TileEntity tile, NBTTagCompound tag, World world, int x, int y, - int z) { + int z) { super.getWailaNBTData(player, tile, tag, world, x, y, z); tag.setBoolean("isAllowedToWork", getBaseMetaTileEntity().isAllowedToWork()); tag.setLong("maxEUInput", maxEUInput()); diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Wireless_Dynamo.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Wireless_Dynamo.java index 1c61f9ffa7..0e313a4c00 100644 --- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Wireless_Dynamo.java +++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Wireless_Dynamo.java @@ -14,13 +14,13 @@ import gregtech.api.interfaces.tileentity.IWirelessEnergyHatchInformation; import gregtech.api.metatileentity.MetaTileEntity; public class GT_MetaTileEntity_Wireless_Dynamo extends GT_MetaTileEntity_Hatch_Dynamo - implements IGlobalWirelessEnergy, IWirelessEnergyHatchInformation { + implements IGlobalWirelessEnergy, IWirelessEnergyHatchInformation { private String owner_uuid; private String owner_name; public GT_MetaTileEntity_Wireless_Dynamo(String aName, byte aTier, String[] aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, aDescription, aTextures); } @@ -86,8 +86,8 @@ public class GT_MetaTileEntity_Wireless_Dynamo extends GT_MetaTileEntity_Hatch_D @Override public String[] getDescription() { return new String[] { EnumChatFormatting.GRAY + "Stores energy globally in a network, up to 2^(2^31) EU.", - EnumChatFormatting.GRAY + "Does not connect to wires. This block accepts EU into the network.", - AuthorColen }; + EnumChatFormatting.GRAY + "Does not connect to wires. This block accepts EU into the network.", + AuthorColen }; } @Override @@ -126,7 +126,7 @@ public class GT_MetaTileEntity_Wireless_Dynamo extends GT_MetaTileEntity_Hatch_D // UUID and username of the owner. owner_uuid = aBaseMetaTileEntity.getOwnerUuid() - .toString(); + .toString(); owner_name = aBaseMetaTileEntity.getOwnerName(); strongCheckOrAddUser(owner_uuid, owner_name); diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Wireless_Hatch.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Wireless_Hatch.java index e17cc6fbfb..c363bb6eb0 100644 --- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Wireless_Hatch.java +++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Wireless_Hatch.java @@ -16,10 +16,10 @@ import gregtech.api.interfaces.tileentity.IWirelessEnergyHatchInformation; import gregtech.api.metatileentity.MetaTileEntity; public class GT_MetaTileEntity_Wireless_Hatch extends GT_MetaTileEntity_Hatch_Energy - implements IGlobalWirelessEnergy, IWirelessEnergyHatchInformation { + implements IGlobalWirelessEnergy, IWirelessEnergyHatchInformation { - private final BigInteger eu_transferred_per_operation = BigInteger.valueOf( - 2 * V[mTier] * ticks_between_energy_addition); + private final BigInteger eu_transferred_per_operation = BigInteger + .valueOf(2 * V[mTier] * ticks_between_energy_addition); private final long eu_transferred_per_operation_long = eu_transferred_per_operation.longValue(); private String owner_uuid; @@ -36,8 +36,8 @@ public class GT_MetaTileEntity_Wireless_Hatch extends GT_MetaTileEntity_Hatch_En @Override public String[] getDescription() { return new String[] { EnumChatFormatting.GRAY + "Stores energy globally in a network, up to 2^(2^31) EU.", - EnumChatFormatting.GRAY + "Does not connect to wires. This block withdraws EU from the network.", - AuthorColen }; + EnumChatFormatting.GRAY + "Does not connect to wires. This block withdraws EU from the network.", + AuthorColen }; } @Override @@ -132,7 +132,7 @@ public class GT_MetaTileEntity_Wireless_Hatch extends GT_MetaTileEntity_Hatch_En // UUID and username of the owner. owner_uuid = aBaseMetaTileEntity.getOwnerUuid() - .toString(); + .toString(); owner_name = aBaseMetaTileEntity.getOwnerName(); strongCheckOrAddUser(owner_uuid, owner_name); diff --git a/src/main/java/gregtech/api/multitileentity/MultiTileEntityBlock.java b/src/main/java/gregtech/api/multitileentity/MultiTileEntityBlock.java index 2e6bdca647..55edf332bd 100644 --- a/src/main/java/gregtech/api/multitileentity/MultiTileEntityBlock.java +++ b/src/main/java/gregtech/api/multitileentity/MultiTileEntityBlock.java @@ -77,7 +77,7 @@ import gregtech.common.render.IRenderedBlock; */ @Optional.Interface(iface = "com.cricketcraft.chisel.api.IFacade", modid = "ChiselAPI") public class MultiTileEntityBlock extends Block - implements IDebugableBlock, ITileEntityProvider, IRenderedBlock, IFacade { + implements IDebugableBlock, ITileEntityProvider, IRenderedBlock, IFacade { protected static final Map MULTI_BLOCK_MAP = new HashMap<>(); private static boolean LOCK = false; @@ -87,22 +87,22 @@ public class MultiTileEntityBlock extends Block protected final boolean mOpaque, mNormalCube; public static String getName(String aMaterialName, SoundType aSoundType, String aTool, int aHarvestLevelOffset, - int aHarvestLevelMinimum, int aHarvestLevelMaximum, boolean aOpaque, boolean aNormalCube) { + int aHarvestLevelMinimum, int aHarvestLevelMaximum, boolean aOpaque, boolean aNormalCube) { return "gt.block.multiblock." + aMaterialName - + "." - + aSoundType.soundName - + "." - + aTool - + "." - + aHarvestLevelOffset - + "." - + aHarvestLevelMinimum - + "." - + aHarvestLevelMaximum - + "." - + aOpaque - + "." - + aNormalCube; + + "." + + aSoundType.soundName + + "." + + aTool + + "." + + aHarvestLevelOffset + + "." + + aHarvestLevelMinimum + + "." + + aHarvestLevelMaximum + + "." + + aOpaque + + "." + + aNormalCube; } /** @@ -118,50 +118,50 @@ public class MultiTileEntityBlock extends Block * @param aNormalCube if this Block is a normal Cube (for Redstone Stuff). */ public static MultiTileEntityBlock getOrCreate(String aModID, String aMaterialName, Material aMaterial, - SoundType aSoundType, String aTool, int aHarvestLevelOffset, int aHarvestLevelMinimum, - int aHarvestLevelMaximum, boolean aOpaque, boolean aNormalCube) { + SoundType aSoundType, String aTool, int aHarvestLevelOffset, int aHarvestLevelMinimum, int aHarvestLevelMaximum, + boolean aOpaque, boolean aNormalCube) { final MultiTileEntityBlock rBlock = MULTI_BLOCK_MAP.get( - aModID + ":" - + getName( - aMaterialName, - aSoundType, - aTool = aTool.toLowerCase(), - aHarvestLevelOffset, - aHarvestLevelMinimum, - aHarvestLevelMaximum, - aOpaque, - aNormalCube)); + aModID + ":" + + getName( + aMaterialName, + aSoundType, + aTool = aTool.toLowerCase(), + aHarvestLevelOffset, + aHarvestLevelMinimum, + aHarvestLevelMaximum, + aOpaque, + aNormalCube)); return rBlock == null - ? new MultiTileEntityBlock( - aModID, - aMaterialName, - aMaterial, - aSoundType, - aTool, - aHarvestLevelOffset, - aHarvestLevelMinimum, - aHarvestLevelMaximum, - aOpaque, - aNormalCube) - : rBlock; + ? new MultiTileEntityBlock( + aModID, + aMaterialName, + aMaterial, + aSoundType, + aTool, + aHarvestLevelOffset, + aHarvestLevelMinimum, + aHarvestLevelMaximum, + aOpaque, + aNormalCube) + : rBlock; } protected MultiTileEntityBlock(String aModID, String aMaterialName, Material aMaterial, SoundType aSoundType, - String aTool, int aHarvestLevelOffset, int aHarvestLevelMinimum, int aHarvestLevelMaximum, boolean aOpaque, - boolean aNormalCube) { + String aTool, int aHarvestLevelOffset, int aHarvestLevelMinimum, int aHarvestLevelMaximum, boolean aOpaque, + boolean aNormalCube) { super(aMaterial); if (GregTech_API.sPreloadFinished) throw new IllegalStateException("Blocks can only be initialized within preInit!"); mNameInternal = getName( - aMaterialName, - aSoundType, - aTool, - aHarvestLevelOffset, - aHarvestLevelMinimum, - aHarvestLevelMaximum, - aOpaque, - aNormalCube); + aMaterialName, + aSoundType, + aTool, + aHarvestLevelOffset, + aHarvestLevelMinimum, + aHarvestLevelMaximum, + aOpaque, + aNormalCube); GameRegistry.registerBlock(this, ItemBlock.class, mNameInternal); MULTI_BLOCK_MAP.put(aModID + ":" + mNameInternal, this); @@ -187,7 +187,7 @@ public class MultiTileEntityBlock extends Block return; if (aTileEntity instanceof IMTE_BreakBlock && ((IMTE_BreakBlock) aTileEntity).breakBlock()) return; if (aTileEntity instanceof IMTE_HasMultiBlockMachineRelevantData - && ((IMTE_HasMultiBlockMachineRelevantData) aTileEntity).hasMultiBlockMachineRelevantData()) + && ((IMTE_HasMultiBlockMachineRelevantData) aTileEntity).hasMultiBlockMachineRelevantData()) GregTech_API.causeMachineUpdate(aWorld, aX, aY, aZ); aWorld.removeTileEntity(aX, aY, aZ); @@ -226,7 +226,7 @@ public class MultiTileEntityBlock extends Block public final float getBlockHardness(World aWorld, int aX, int aY, int aZ) { final TileEntity aTileEntity = aWorld.getTileEntity(aX, aY, aZ); return aTileEntity instanceof IMTE_GetBlockHardness ? ((IMTE_GetBlockHardness) aTileEntity).getBlockHardness() - : 1.0F; + : 1.0F; } @SideOnly(Side.CLIENT) @@ -244,7 +244,7 @@ public class MultiTileEntityBlock extends Block @Override @SuppressWarnings("unchecked") public final void addCollisionBoxesToList(World aWorld, int aX, int aY, int aZ, AxisAlignedBB aAABB, - List aList, Entity aEntity) { + List aList, Entity aEntity) { final TileEntity aTileEntity = aWorld.getTileEntity(aX, aY, aZ); if (aTileEntity instanceof IMultiTileEntity) ((IMultiTileEntity) aTileEntity).addCollisionBoxesToList(aAABB, aList, aEntity); @@ -255,16 +255,16 @@ public class MultiTileEntityBlock extends Block public final AxisAlignedBB getCollisionBoundingBoxFromPool(World aWorld, int aX, int aY, int aZ) { final TileEntity aTileEntity = aWorld.getTileEntity(aX, aY, aZ); return aTileEntity instanceof IMultiTileEntity - ? ((IMultiTileEntity) aTileEntity).getCollisionBoundingBoxFromPool() - : aTileEntity == null ? null : super.getCollisionBoundingBoxFromPool(aWorld, aX, aY, aZ); + ? ((IMultiTileEntity) aTileEntity).getCollisionBoundingBoxFromPool() + : aTileEntity == null ? null : super.getCollisionBoundingBoxFromPool(aWorld, aX, aY, aZ); } @Override public final AxisAlignedBB getSelectedBoundingBoxFromPool(World aWorld, int aX, int aY, int aZ) { final TileEntity aTileEntity = aWorld.getTileEntity(aX, aY, aZ); return aTileEntity instanceof IMultiTileEntity - ? ((IMultiTileEntity) aTileEntity).getSelectedBoundingBoxFromPool() - : super.getSelectedBoundingBoxFromPool(aWorld, aX, aY, aZ); + ? ((IMultiTileEntity) aTileEntity).getSelectedBoundingBoxFromPool() + : super.getSelectedBoundingBoxFromPool(aWorld, aX, aY, aZ); } @Override @@ -284,7 +284,7 @@ public class MultiTileEntityBlock extends Block @Override public final void onNeighborChange(IBlockAccess aWorld, int aX, int aY, int aZ, int aTileX, int aTileY, - int aTileZ) { + int aTileZ) { final TileEntity aTileEntity = aWorld.getTileEntity(aX, aY, aZ); if (!LOCK) { LOCK = true; @@ -317,8 +317,8 @@ public class MultiTileEntityBlock extends Block public float getPlayerRelativeBlockHardness(EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ) { final TileEntity aTileEntity = aWorld.getTileEntity(aX, aY, aZ); return aTileEntity instanceof IMultiTileEntity && ((IMultiTileEntity) aTileEntity).privateAccess() - && !((IMultiTileEntity) aTileEntity).playerOwnsThis(aPlayer, true) ? -1.0F - : super.getPlayerRelativeBlockHardness(aPlayer, aWorld, aX, aY, aZ); + && !((IMultiTileEntity) aTileEntity).playerOwnsThis(aPlayer, true) ? -1.0F + : super.getPlayerRelativeBlockHardness(aPlayer, aWorld, aX, aY, aZ); } @Override @@ -330,42 +330,42 @@ public class MultiTileEntityBlock extends Block @Override public boolean onBlockActivated(World aWorld, int aX, int aY, int aZ, EntityPlayer aPlayer, int aSide, float aHitX, - float aHitY, float aHitZ) { + float aHitY, float aHitZ) { final TileEntity aTileEntity = aWorld.getTileEntity(aX, aY, aZ); if (aPlayer != null && ItemList.TC_Thaumometer.isStackEqual(aPlayer.getHeldItem(), true, true)) return false; return aTileEntity instanceof IMultiTileEntity - && ((IMultiTileEntity) aTileEntity).onBlockActivated(aPlayer, (byte) aSide, aHitX, aHitY, aHitZ); + && ((IMultiTileEntity) aTileEntity).onBlockActivated(aPlayer, (byte) aSide, aHitX, aHitY, aHitZ); } @Override public final int isProvidingWeakPower(IBlockAccess aWorld, int aX, int aY, int aZ, int aSide) { final TileEntity aTileEntity = aWorld.getTileEntity(aX, aY, aZ); return aTileEntity instanceof IMTE_IsProvidingWeakPower - ? ((IMTE_IsProvidingWeakPower) aTileEntity).isProvidingWeakPower((byte) aSide) - : super.isProvidingWeakPower(aWorld, aX, aY, aZ, aSide); + ? ((IMTE_IsProvidingWeakPower) aTileEntity).isProvidingWeakPower((byte) aSide) + : super.isProvidingWeakPower(aWorld, aX, aY, aZ, aSide); } @Override public final int isProvidingStrongPower(IBlockAccess aWorld, int aX, int aY, int aZ, int aSide) { final TileEntity aTileEntity = aWorld.getTileEntity(aX, aY, aZ); return aTileEntity instanceof IMTE_IsProvidingStrongPower - ? ((IMTE_IsProvidingStrongPower) aTileEntity).isProvidingStrongPower((byte) aSide) - : super.isProvidingStrongPower(aWorld, aX, aY, aZ, aSide); + ? ((IMTE_IsProvidingStrongPower) aTileEntity).isProvidingStrongPower((byte) aSide) + : super.isProvidingStrongPower(aWorld, aX, aY, aZ, aSide); } @Override public final boolean shouldCheckWeakPower(IBlockAccess aWorld, int aX, int aY, int aZ, int aSide) { final TileEntity aTileEntity = aWorld.getTileEntity(aX, aY, aZ); return aTileEntity instanceof IMTE_ShouldCheckWeakPower - ? ((IMTE_ShouldCheckWeakPower) aTileEntity).shouldCheckWeakPower((byte) aSide) - : isNormalCube(aWorld, aX, aY, aZ); + ? ((IMTE_ShouldCheckWeakPower) aTileEntity).shouldCheckWeakPower((byte) aSide) + : isNormalCube(aWorld, aX, aY, aZ); } @Override public final boolean getWeakChanges(IBlockAccess aWorld, int aX, int aY, int aZ) { final TileEntity aTileEntity = aWorld.getTileEntity(aX, aY, aZ); return aTileEntity instanceof IMTE_GetWeakChanges ? ((IMTE_GetWeakChanges) aTileEntity).getWeakChanges() - : super.getWeakChanges(aWorld, aX, aY, aZ); + : super.getWeakChanges(aWorld, aX, aY, aZ); } @Override @@ -379,18 +379,8 @@ public class MultiTileEntityBlock extends Block final TileEntity aTileEntity = getTileEntity(aWorld, aX, aY, aZ, true); if (aTileEntity instanceof IMultiTileEntity) { final ArrayList tList = ((IMultiTileEntity) aTileEntity).getDrops(aFortune, aSilkTouch); - aChance = ForgeEventFactory.fireBlockHarvesting( - tList, - aWorld, - this, - aX, - aY, - aZ, - aMeta, - aFortune, - aChance, - aSilkTouch, - aPlayer); + aChance = ForgeEventFactory + .fireBlockHarvesting(tList, aWorld, this, aX, aY, aZ, aMeta, aFortune, aChance, aSilkTouch, aPlayer); for (ItemStack tStack : tList) if (XSTR.XSTR_INSTANCE.nextFloat() <= aChance) dropBlockAsItem(aWorld, aX, aY, aZ, tStack); } @@ -437,8 +427,8 @@ public class MultiTileEntityBlock extends Block public final boolean shouldSideBeRendered(IBlockAccess aWorld, int aX, int aY, int aZ, int aSide) { final TileEntity aTileEntity = aWorld.getTileEntity(aX - OFFX[aSide], aY - OFFY[aSide], aZ - OFFZ[aSide]); return aTileEntity instanceof IMultiTileEntity - ? ((IMultiTileEntity) aTileEntity).shouldSideBeRendered((byte) aSide) - : super.shouldSideBeRendered(aWorld, aX, aY, aZ, aSide); + ? ((IMultiTileEntity) aTileEntity).shouldSideBeRendered((byte) aSide) + : super.shouldSideBeRendered(aWorld, aX, aY, aZ, aSide); } @Override @@ -448,14 +438,14 @@ public class MultiTileEntityBlock extends Block final byte aSide = (byte) side; if (side != -1) { final Block facadeBlock = tile.getCoverInfoAtSide(aSide) - .getFacadeBlock(); + .getFacadeBlock(); if (facadeBlock != null) return facadeBlock; } else { // we do not allow more than one type of facade per block, so no need to check every side // see comment in gregtech.common.covers.GT_Cover_FacadeBase.isCoverPlaceable for (byte tSide : ALL_VALID_SIDES) { final Block facadeBlock = tile.getCoverInfoAtSide(tSide) - .getFacadeBlock(); + .getFacadeBlock(); if (facadeBlock != null) { return facadeBlock; } @@ -529,11 +519,10 @@ public class MultiTileEntityBlock extends Block public final int getComparatorInputOverride(World aWorld, int aX, int aY, int aZ, int aSide) { final TileEntity aTileEntity = aWorld.getTileEntity(aX, aY, aZ); return aTileEntity instanceof IMTE_GetComparatorInputOverride - ? ((IMTE_GetComparatorInputOverride) aTileEntity).getComparatorInputOverride((byte) aSide) - : aTileEntity instanceof IMTE_IsProvidingWeakPower - ? ((IMTE_IsProvidingWeakPower) aTileEntity).isProvidingWeakPower( - GT_Utility.getOppositeSide(aSide)) - : super.getComparatorInputOverride(aWorld, aX, aY, aZ, aSide); + ? ((IMTE_GetComparatorInputOverride) aTileEntity).getComparatorInputOverride((byte) aSide) + : aTileEntity instanceof IMTE_IsProvidingWeakPower + ? ((IMTE_IsProvidingWeakPower) aTileEntity).isProvidingWeakPower(GT_Utility.getOppositeSide(aSide)) + : super.getComparatorInputOverride(aWorld, aX, aY, aZ, aSide); } @Override @@ -550,9 +539,9 @@ public class MultiTileEntityBlock extends Block public final boolean isSideSolid(IBlockAccess aWorld, int aX, int aY, int aZ, ForgeDirection aSide) { final TileEntity aTileEntity = aWorld.getTileEntity(aX, aY, aZ); return aTileEntity instanceof IMultiTileEntity - ? ((IMultiTileEntity) aTileEntity).isSideSolid( - (byte) (aSide != null ? aSide.ordinal() : GT_Values.SIDE_UNKNOWN)) - : mOpaque; + ? ((IMultiTileEntity) aTileEntity) + .isSideSolid((byte) (aSide != null ? aSide.ordinal() : GT_Values.SIDE_UNKNOWN)) + : mOpaque; } @Override @@ -579,7 +568,7 @@ public class MultiTileEntityBlock extends Block @Override public final ArrayList getDrops(World aWorld, int aX, int aY, int aZ, int aUnusableMetaData, - int aFortune) { + int aFortune) { final TileEntity aTileEntity = getTileEntity(aWorld, aX, aY, aZ, true); if (aTileEntity instanceof IMultiTileEntity) return ((IMultiTileEntity) aTileEntity).getDrops(aFortune, false); return new ArrayList<>(); @@ -592,15 +581,11 @@ public class MultiTileEntityBlock extends Block @Override public final float getExplosionResistance(Entity aExploder, World aWorld, int aX, int aY, int aZ, - double aExplosionX, double aExplosionY, double aExplosionZ) { + double aExplosionX, double aExplosionY, double aExplosionZ) { final TileEntity aTileEntity = aWorld.getTileEntity(aX, aY, aZ); return aTileEntity instanceof IMultiTileEntity - ? ((IMultiTileEntity) aTileEntity).getExplosionResistance( - aExploder, - aExplosionX, - aExplosionY, - aExplosionZ) - : 1.0F; + ? ((IMultiTileEntity) aTileEntity).getExplosionResistance(aExploder, aExplosionX, aExplosionY, aExplosionZ) + : 1.0F; } @Override @@ -610,11 +595,11 @@ public class MultiTileEntityBlock extends Block if (aTileEntity != null) LAST_BROKEN_TILEENTITY.set(aTileEntity); if (aTileEntity instanceof IMultiTileEntity) { GT_Log.exp.printf( - "Explosion at : %d | %d | %d DIMID: %s due to near explosion!%n", - aX, - aY, - aZ, - aWorld.provider.dimensionId); + "Explosion at : %d | %d | %d DIMID: %s due to near explosion!%n", + aX, + aY, + aZ, + aWorld.provider.dimensionId); ((IMultiTileEntity) aTileEntity).onExploded(aExplosion); } else aWorld.setBlockToAir(aX, aY, aZ); } @@ -628,7 +613,7 @@ public class MultiTileEntityBlock extends Block public final boolean recolourBlock(World aWorld, int aX, int aY, int aZ, ForgeDirection aSide, int aColor) { final TileEntity aTileEntity = aWorld.getTileEntity(aX, aY, aZ); return aTileEntity instanceof IMultiTileEntity - && ((IMultiTileEntity) aTileEntity).recolourBlock((byte) aSide.ordinal(), (byte) aColor); + && ((IMultiTileEntity) aTileEntity).recolourBlock((byte) aSide.ordinal(), (byte) aColor); } @Override @@ -648,7 +633,7 @@ public class MultiTileEntityBlock extends Block @Override public final ItemStack getPickBlock(MovingObjectPosition aTarget, World aWorld, int aX, int aY, int aZ, - EntityPlayer aPlayer) { + EntityPlayer aPlayer) { final TileEntity aTileEntity = aWorld.getTileEntity(aX, aY, aZ); return aTileEntity instanceof IMultiTileEntity ? ((IMultiTileEntity) aTileEntity).getPickBlock(aTarget) : null; } @@ -660,13 +645,13 @@ public class MultiTileEntityBlock extends Block } public final IMultiTileEntity receiveMultiTileEntityData(IBlockAccess aWorld, int aX, short aY, int aZ, short aRID, - short aID) { + short aID) { if (!(aWorld instanceof World)) return null; TileEntity aTileEntity = aWorld.getTileEntity(aX, aY, aZ); if (!(aTileEntity instanceof IMultiTileEntity) - || ((IMultiTileEntity) aTileEntity).getMultiTileEntityRegistryID() != aRID - || ((IMultiTileEntity) aTileEntity).getMultiTileEntityID() != aID) { + || ((IMultiTileEntity) aTileEntity).getMultiTileEntityRegistryID() != aRID + || ((IMultiTileEntity) aTileEntity).getMultiTileEntityID() != aID) { final MultiTileEntityRegistry tRegistry = MultiTileEntityRegistry.getRegistry(aRID); if (tRegistry == null) return null; @@ -679,7 +664,7 @@ public class MultiTileEntityBlock extends Block } public void receiveCoverData(IMultiTileEntity mte, int aCover0, int aCover1, int aCover2, int aCover3, int aCover4, - int aCover5) { + int aCover5) { boolean updated; updated = mte.setCoverIDAtSideNoUpdate((byte) 0, aCover0); updated |= mte.setCoverIDAtSideNoUpdate((byte) 1, aCover1); diff --git a/src/main/java/gregtech/api/multitileentity/MultiTileEntityBlockInternal.java b/src/main/java/gregtech/api/multitileentity/MultiTileEntityBlockInternal.java index 91855aae55..ec24654a1c 100644 --- a/src/main/java/gregtech/api/multitileentity/MultiTileEntityBlockInternal.java +++ b/src/main/java/gregtech/api/multitileentity/MultiTileEntityBlockInternal.java @@ -50,14 +50,9 @@ public class MultiTileEntityBlockInternal extends Block implements IRenderedBloc } public boolean placeBlock(World aWorld, int aX, int aY, int aZ, byte aSide, short aMetaData, NBTTagCompound aNBT, - boolean aCauseBlockUpdates, boolean aForcePlacement) { - final MultiTileEntityContainer aMTEContainer = mMultiTileEntityRegistry.getNewTileEntityContainer( - aWorld, - aX, - aY, - aZ, - aMetaData, - aNBT); + boolean aCauseBlockUpdates, boolean aForcePlacement) { + final MultiTileEntityContainer aMTEContainer = mMultiTileEntityRegistry + .getNewTileEntityContainer(aWorld, aX, aY, aZ, aMetaData, aNBT); if (aMTEContainer == null) return false; final Block tReplacedBlock = aWorld.getBlock(aX, aY, aZ); @@ -90,8 +85,8 @@ public class MultiTileEntityBlockInternal extends Block implements IRenderedBloc try { if (aMTEContainer.mTileEntity instanceof IMTE_HasMultiBlockMachineRelevantData) { - if (((IMTE_HasMultiBlockMachineRelevantData) aMTEContainer.mTileEntity).hasMultiBlockMachineRelevantData()) - GregTech_API.causeMachineUpdate(aWorld, aX, aY, aZ); + if (((IMTE_HasMultiBlockMachineRelevantData) aMTEContainer.mTileEntity) + .hasMultiBlockMachineRelevantData()) GregTech_API.causeMachineUpdate(aWorld, aX, aY, aZ); } } catch (Throwable e) { GT_FML_LOGGER.error("causeMachineUpdate", e); diff --git a/src/main/java/gregtech/api/multitileentity/MultiTileEntityClassContainer.java b/src/main/java/gregtech/api/multitileentity/MultiTileEntityClassContainer.java index 593a3c46e7..4e4be793b1 100644 --- a/src/main/java/gregtech/api/multitileentity/MultiTileEntityClassContainer.java +++ b/src/main/java/gregtech/api/multitileentity/MultiTileEntityClassContainer.java @@ -32,7 +32,7 @@ public class MultiTileEntityClassContainer { public boolean mHidden = false; public MultiTileEntityClassContainer(MultiTileEntityRegistry aRegistry, int aID, - Class aClass) { + Class aClass) { /* Start the Builder */ mRegistry = new WeakReference<>(aRegistry); mID = (short) aID; @@ -45,10 +45,10 @@ public class MultiTileEntityClassContainer { final MultiTileEntityRegistry registry = mRegistry.get(); if (mParameters.hasKey(NBT.MATERIAL) && !mParameters.hasKey(NBT.COLOR)) mParameters.setInteger( - NBT.COLOR, - GT_Util.getRGBInt( - Materials.get(mParameters.getString(NBT.MATERIAL)) - .getRGBA())); + NBT.COLOR, + GT_Util.getRGBInt( + Materials.get(mParameters.getString(NBT.MATERIAL)) + .getRGBA())); try { mCanonicalTileEntity = mClass.newInstance(); @@ -162,7 +162,7 @@ public class MultiTileEntityClassContainer { // Check if cls is extended by mClass if (!cls.isAssignableFrom(mClass)) { throw new IllegalArgumentException( - "Expected a descendent of " + cls.getName() + " got " + mClass.getName() + " instead."); + "Expected a descendent of " + cls.getName() + " got " + mClass.getName() + " instead."); } } @@ -183,7 +183,7 @@ public class MultiTileEntityClassContainer { if (!atLeastOne) { throw new IllegalArgumentException( - "Expected a descendent of any of these " + classNames + " got " + mClass.getName() + " instead."); + "Expected a descendent of any of these " + classNames + " got " + mClass.getName() + " instead."); } } } diff --git a/src/main/java/gregtech/api/multitileentity/MultiTileEntityItemInternal.java b/src/main/java/gregtech/api/multitileentity/MultiTileEntityItemInternal.java index 1f3c2dd5ca..a37fa9956e 100644 --- a/src/main/java/gregtech/api/multitileentity/MultiTileEntityItemInternal.java +++ b/src/main/java/gregtech/api/multitileentity/MultiTileEntityItemInternal.java @@ -50,8 +50,8 @@ public class MultiTileEntityItemInternal extends ItemBlock implements IFluidCont @Override @SuppressWarnings("unchecked") public void addInformation(ItemStack aStack, EntityPlayer aPlayer, List aList, boolean aF3_H) { - final MultiTileEntityContainer tTileEntityContainer = mBlock.mMultiTileEntityRegistry.getNewTileEntityContainer( - aStack); + final MultiTileEntityContainer tTileEntityContainer = mBlock.mMultiTileEntityRegistry + .getNewTileEntityContainer(aStack); if (tTileEntityContainer == null) { aList.add("INVALID ITEM!"); return; @@ -74,12 +74,8 @@ public class MultiTileEntityItemInternal extends ItemBlock implements IFluidCont public void getSubItems(Item aItem, CreativeTabs aTab, List aList) { for (MultiTileEntityClassContainer tClass : mBlock.mMultiTileEntityRegistry.mRegistrations) { if (!tClass.mHidden) { - if (((IMultiTileEntity) tClass.mCanonicalTileEntity).getSubItems( - mBlock, - aItem, - aTab, - aList, - tClass.mID)) { + if (((IMultiTileEntity) tClass.mCanonicalTileEntity) + .getSubItems(mBlock, aItem, aTab, aList, tClass.mID)) { aList.add(mBlock.mMultiTileEntityRegistry.getItem(tClass.mID)); } } @@ -88,91 +84,70 @@ public class MultiTileEntityItemInternal extends ItemBlock implements IFluidCont @Override public boolean onItemUse(ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int aSide, - float aHitX, float aHitY, float aHitZ) { + float aHitX, float aHitY, float aHitZ) { if (aY < 0 || aY > aWorld.getHeight()) return false; try { final Block tClickedBlock = aWorld.getBlock(aX, aY, aZ); if (tClickedBlock instanceof BlockSnow && (aWorld.getBlockMetadata(aX, aY, aZ) & 7) < 1) { aSide = SIDE_TOP; } else if (tClickedBlock != Blocks.vine && tClickedBlock != Blocks.tallgrass - && tClickedBlock != Blocks.deadbush - && !tClickedBlock.isReplaceable(aWorld, aX, aY, aZ)) { - aX += GT_Values.OFFX[aSide]; - aY += GT_Values.OFFY[aSide]; - aZ += GT_Values.OFFZ[aSide]; - } + && tClickedBlock != Blocks.deadbush + && !tClickedBlock.isReplaceable(aWorld, aX, aY, aZ)) { + aX += GT_Values.OFFX[aSide]; + aY += GT_Values.OFFY[aSide]; + aZ += GT_Values.OFFZ[aSide]; + } final Block tReplacedBlock = aWorld.getBlock(aX, aY, aZ); if (!tReplacedBlock.isReplaceable(aWorld, aX, aY, aZ) - || !mBlock.canReplace(aWorld, aX, aY, aZ, aSide, aStack)) - return false; + || !mBlock.canReplace(aWorld, aX, aY, aZ, aSide, aStack)) return false; if (aStack.stackSize == 0 || (aPlayer != null && !aPlayer.canPlayerEdit(aX, aY, aZ, aSide, aStack))) return false; - final MultiTileEntityContainer aMTEContainer = mBlock.mMultiTileEntityRegistry.getNewTileEntityContainer( - aWorld, - aX, - aY, - aZ, - aStack); + final MultiTileEntityContainer aMTEContainer = mBlock.mMultiTileEntityRegistry + .getNewTileEntityContainer(aWorld, aX, aY, aZ, aStack); - if (aMTEContainer != null && (aPlayer == null || aPlayer.isSneaking() + if (aMTEContainer != null + && (aPlayer == null || aPlayer.isSneaking() || !(aMTEContainer.mTileEntity instanceof IMTE_OnlyPlaceableWhenSneaking) || !((IMTE_OnlyPlaceableWhenSneaking) aMTEContainer.mTileEntity).onlyPlaceableWhenSneaking()) - && (aWorld.checkNoEntityCollision(AxisAlignedBB.getBoundingBox(aX, aY, aZ, aX + 1, aY + 1, aZ + 1)) - || (aMTEContainer.mTileEntity instanceof IMTE_IgnoreEntityCollisionWhenPlacing - && ((IMTE_IgnoreEntityCollisionWhenPlacing) aMTEContainer.mTileEntity).ignoreEntityCollisionWhenPlacing( - aStack, - aPlayer, - aWorld, - aX, - aY, - aZ, - (byte) aSide, - aHitX, - aHitY, - aHitZ))) - && (!(aMTEContainer.mTileEntity instanceof IMTE_CanPlace) - || ((IMTE_CanPlace) aMTEContainer.mTileEntity).canPlace( - aStack, - aPlayer, - aWorld, - aX, - aY, - aZ, - (byte) aSide, - aHitX, - aHitY, - aHitZ)) - && aWorld.setBlock(aX, aY, aZ, aMTEContainer.mBlock, 15 - aMTEContainer.mBlockMetaData, 2)) { + && (aWorld.checkNoEntityCollision(AxisAlignedBB.getBoundingBox(aX, aY, aZ, aX + 1, aY + 1, aZ + 1)) + || (aMTEContainer.mTileEntity instanceof IMTE_IgnoreEntityCollisionWhenPlacing + && ((IMTE_IgnoreEntityCollisionWhenPlacing) aMTEContainer.mTileEntity) + .ignoreEntityCollisionWhenPlacing( + aStack, + aPlayer, + aWorld, + aX, + aY, + aZ, + (byte) aSide, + aHitX, + aHitY, + aHitZ))) + && (!(aMTEContainer.mTileEntity instanceof IMTE_CanPlace) || ((IMTE_CanPlace) aMTEContainer.mTileEntity) + .canPlace(aStack, aPlayer, aWorld, aX, aY, aZ, (byte) aSide, aHitX, aHitY, aHitZ)) + && aWorld.setBlock(aX, aY, aZ, aMTEContainer.mBlock, 15 - aMTEContainer.mBlockMetaData, 2)) { aMTEContainer.setMultiTile(aWorld, aX, aY, aZ); try { - if (((IMultiTileEntity) aMTEContainer.mTileEntity).onPlaced( - aStack, - aPlayer, - aWorld, - aX, - aY, - aZ, - (byte) aSide, - aHitX, - aHitY, - aHitZ)) { + if (((IMultiTileEntity) aMTEContainer.mTileEntity) + .onPlaced(aStack, aPlayer, aWorld, aX, aY, aZ, (byte) aSide, aHitX, aHitY, aHitZ)) { aWorld.playSoundEffect( - aX + 0.5, - aY + 0.5, - aZ + 0.5, - aMTEContainer.mBlock.stepSound.func_150496_b(), - (aMTEContainer.mBlock.stepSound.getVolume() + 1) / 2, - aMTEContainer.mBlock.stepSound.getPitch() * 0.8F); + aX + 0.5, + aY + 0.5, + aZ + 0.5, + aMTEContainer.mBlock.stepSound.func_150496_b(), + (aMTEContainer.mBlock.stepSound.getVolume() + 1) / 2, + aMTEContainer.mBlock.stepSound.getPitch() * 0.8F); } } catch (Throwable e) { GT_FML_LOGGER.error("onPlaced", e); } try { if (aMTEContainer.mTileEntity instanceof IMTE_HasMultiBlockMachineRelevantData - && (((IMTE_HasMultiBlockMachineRelevantData) aMTEContainer.mTileEntity).hasMultiBlockMachineRelevantData())) { + && (((IMTE_HasMultiBlockMachineRelevantData) aMTEContainer.mTileEntity) + .hasMultiBlockMachineRelevantData())) { GregTech_API.causeMachineUpdate(aWorld, aX, aY, aZ); } } catch (Throwable e) { @@ -210,8 +185,8 @@ public class MultiTileEntityItemInternal extends ItemBlock implements IFluidCont public void updateItemStack(ItemStack aStack) { final MultiTileEntityClassContainer tContainer = mBlock.mMultiTileEntityRegistry.getClassContainer(aStack); if (tContainer == null) return; - final MultiTileEntityContainer tTileEntityContainer = mBlock.mMultiTileEntityRegistry.getNewTileEntityContainer( - aStack); + final MultiTileEntityContainer tTileEntityContainer = mBlock.mMultiTileEntityRegistry + .getNewTileEntityContainer(aStack); if (tTileEntityContainer != null && tTileEntityContainer.mTileEntity instanceof IItemUpdatable) { ((IItemUpdatable) tTileEntityContainer.mTileEntity).updateItemStack(aStack); } @@ -221,8 +196,8 @@ public class MultiTileEntityItemInternal extends ItemBlock implements IFluidCont public void updateItemStack(ItemStack aStack, World aWorld, int aX, int aY, int aZ) { final MultiTileEntityClassContainer tContainer = mBlock.mMultiTileEntityRegistry.getClassContainer(aStack); if (tContainer == null) return; - final MultiTileEntityContainer tTileEntityContainer = mBlock.mMultiTileEntityRegistry.getNewTileEntityContainer( - aStack); + final MultiTileEntityContainer tTileEntityContainer = mBlock.mMultiTileEntityRegistry + .getNewTileEntityContainer(aStack); if (tTileEntityContainer != null && tTileEntityContainer.mTileEntity instanceof IItemUpdatable) { ((IItemUpdatable) tTileEntityContainer.mTileEntity).updateItemStack(aStack, aWorld, aX, aY, aZ); } @@ -232,12 +207,11 @@ public class MultiTileEntityItemInternal extends ItemBlock implements IFluidCont public int getItemStackLimit(ItemStack aStack) { final MultiTileEntityClassContainer tContainer = mBlock.mMultiTileEntityRegistry.getClassContainer(aStack); if (tContainer == null) return 1; - final MultiTileEntityContainer tTileEntityContainer = mBlock.mMultiTileEntityRegistry.getNewTileEntityContainer( - aStack); + final MultiTileEntityContainer tTileEntityContainer = mBlock.mMultiTileEntityRegistry + .getNewTileEntityContainer(aStack); if (tTileEntityContainer != null && tTileEntityContainer.mTileEntity instanceof IMTE_GetMaxStackSize) { - return ((IMTE_GetMaxStackSize) tTileEntityContainer.mTileEntity).getMaxStackSize( - aStack, - tContainer.mStackSize); + return ((IMTE_GetMaxStackSize) tTileEntityContainer.mTileEntity) + .getMaxStackSize(aStack, tContainer.mStackSize); } return tContainer.mStackSize; } @@ -249,8 +223,8 @@ public class MultiTileEntityItemInternal extends ItemBlock implements IFluidCont @Override public FluidStack getFluid(ItemStack aStack) { - final MultiTileEntityContainer tTileEntityContainer = mBlock.mMultiTileEntityRegistry.getNewTileEntityContainer( - aStack); + final MultiTileEntityContainer tTileEntityContainer = mBlock.mMultiTileEntityRegistry + .getNewTileEntityContainer(aStack); if (tTileEntityContainer != null && tTileEntityContainer.mTileEntity instanceof IFluidContainerItem) { final FluidStack rFluid = ((IFluidContainerItem) tTileEntityContainer.mTileEntity).getFluid(aStack); updateItemStack(aStack); @@ -261,8 +235,8 @@ public class MultiTileEntityItemInternal extends ItemBlock implements IFluidCont @Override public int getCapacity(ItemStack aStack) { - final MultiTileEntityContainer tTileEntityContainer = mBlock.mMultiTileEntityRegistry.getNewTileEntityContainer( - aStack); + final MultiTileEntityContainer tTileEntityContainer = mBlock.mMultiTileEntityRegistry + .getNewTileEntityContainer(aStack); if (tTileEntityContainer != null && tTileEntityContainer.mTileEntity instanceof IFluidContainerItem) { final int rCapacity = ((IFluidContainerItem) tTileEntityContainer.mTileEntity).getCapacity(aStack); updateItemStack(aStack); @@ -273,8 +247,8 @@ public class MultiTileEntityItemInternal extends ItemBlock implements IFluidCont @Override public int fill(ItemStack aStack, FluidStack aFluid, boolean aDoFill) { - final MultiTileEntityContainer tTileEntityContainer = mBlock.mMultiTileEntityRegistry.getNewTileEntityContainer( - aStack); + final MultiTileEntityContainer tTileEntityContainer = mBlock.mMultiTileEntityRegistry + .getNewTileEntityContainer(aStack); if (tTileEntityContainer != null && tTileEntityContainer.mTileEntity instanceof IFluidContainerItem) { final int tFilled = ((IFluidContainerItem) tTileEntityContainer.mTileEntity).fill(aStack, aFluid, aDoFill); updateItemStack(aStack); @@ -285,13 +259,11 @@ public class MultiTileEntityItemInternal extends ItemBlock implements IFluidCont @Override public FluidStack drain(ItemStack aStack, int aMaxDrain, boolean aDoDrain) { - final MultiTileEntityContainer tTileEntityContainer = mBlock.mMultiTileEntityRegistry.getNewTileEntityContainer( - aStack); + final MultiTileEntityContainer tTileEntityContainer = mBlock.mMultiTileEntityRegistry + .getNewTileEntityContainer(aStack); if (tTileEntityContainer != null && tTileEntityContainer.mTileEntity instanceof IFluidContainerItem) { - final FluidStack rFluid = ((IFluidContainerItem) tTileEntityContainer.mTileEntity).drain( - aStack, - aMaxDrain, - aDoDrain); + final FluidStack rFluid = ((IFluidContainerItem) tTileEntityContainer.mTileEntity) + .drain(aStack, aMaxDrain, aDoDrain); updateItemStack(aStack); return rFluid; } @@ -300,7 +272,7 @@ public class MultiTileEntityItemInternal extends ItemBlock implements IFluidCont @Override public boolean func_150936_a /* canPlaceAtSide */(World aWorld, int aX, int aY, int aZ, int aSide, - EntityPlayer aPlayer, ItemStack aStack) { + EntityPlayer aPlayer, ItemStack aStack) { return true; } diff --git a/src/main/java/gregtech/api/multitileentity/MultiTileEntityRegistry.java b/src/main/java/gregtech/api/multitileentity/MultiTileEntityRegistry.java index 1aeed1b3de..1c425106b5 100644 --- a/src/main/java/gregtech/api/multitileentity/MultiTileEntityRegistry.java +++ b/src/main/java/gregtech/api/multitileentity/MultiTileEntityRegistry.java @@ -47,7 +47,7 @@ public class MultiTileEntityRegistry { public final MultiTileEntityBlockInternal mBlock; private static MultiTileEntityBlockInternal regblock(String aNameInternal, MultiTileEntityBlockInternal aBlock, - Class aItemClass) { + Class aItemClass) { GameRegistry.registerBlock(aBlock, aItemClass == null ? ItemBlock.class : aItemClass, aNameInternal); return aBlock; } @@ -63,7 +63,7 @@ public class MultiTileEntityRegistry { * @param aNameInternal the internal Name of the Item */ public MultiTileEntityRegistry(String aNameInternal, MultiTileEntityBlockInternal aBlock, - Class aItemClass) { + Class aItemClass) { this(aNameInternal, regblock(aNameInternal, aBlock, aItemClass)); } @@ -72,7 +72,7 @@ public class MultiTileEntityRegistry { */ public MultiTileEntityRegistry(String aNameInternal, MultiTileEntityBlockInternal aBlock) { if (!GregTech_API.sPreloadStarted || GregTech_API.sPreloadFinished) throw new IllegalStateException( - "The MultiTileEntity Registry must be initialised during Preload Phase and not before"); + "The MultiTileEntity Registry must be initialised during Preload Phase and not before"); mNameInternal = aNameInternal; mBlock = aBlock; GT_FML_LOGGER.info(aNameInternal + " " + Block.getIdFromBlock(aBlock) + "This is the answer"); @@ -129,8 +129,7 @@ public class MultiTileEntityRegistry { } if (mRegistry.containsKey(aClassContainer.mID)) { GT_FML_LOGGER.error( - "MULTI-TILE REGISTRY ERROR: Class Container uses occupied MetaData! (" + aClassContainer.mID - + ")"); + "MULTI-TILE REGISTRY ERROR: Class Container uses occupied MetaData! (" + aClassContainer.mID + ")"); tFailed = true; } } @@ -138,18 +137,14 @@ public class MultiTileEntityRegistry { GT_FML_LOGGER.error("MULTI-TILE REGISTRY ERROR: STACKTRACE START"); int i = 0; for (StackTraceElement tElement : new Exception().getStackTrace()) if (i++ < 5 && !tElement.getClassName() - .startsWith( - "sun")) - GT_FML_LOGGER.error("\tat " + tElement); + .startsWith("sun")) GT_FML_LOGGER.error("\tat " + tElement); else break; GT_FML_LOGGER.error("MULTI-TILE REGISTRY ERROR: STACKTRACE END"); return null; } - GT_LanguageManager.addStringLocalization( - mNameInternal + "." + aClassContainer.mID + ".name", - aLocalised, - false); + GT_LanguageManager + .addStringLocalization(mNameInternal + "." + aClassContainer.mID + ".name", aLocalised, false); mRegistry.put(aClassContainer.mID, aClassContainer); mLastRegisteredID = aClassContainer.mID; mRegistrations.add(aClassContainer); @@ -223,22 +218,22 @@ public class MultiTileEntityRegistry { } public MultiTileEntityContainer getNewTileEntityContainer(World aWorld, int aX, int aY, int aZ, int aID, - NBTTagCompound aNBT) { + NBTTagCompound aNBT) { final MultiTileEntityClassContainer tClass = mRegistry.get((short) aID); if (tClass == null || tClass.mBlock == null) return null; final MultiTileEntityContainer rContainer = new MultiTileEntityContainer( - (TileEntity) GT_Utility.callConstructor(tClass.mClass, -1, null, true), - tClass.mBlock, - tClass.mBlockMetaData); + (TileEntity) GT_Utility.callConstructor(tClass.mClass, -1, null, true), + tClass.mBlock, + tClass.mBlockMetaData); if (rContainer.mTileEntity == null) return null; rContainer.mTileEntity.setWorldObj(aWorld); rContainer.mTileEntity.xCoord = aX; rContainer.mTileEntity.yCoord = aY; rContainer.mTileEntity.zCoord = aZ; ((IMultiTileEntity) rContainer.mTileEntity).initFromNBT( - aNBT == null || aNBT.hasNoTags() ? tClass.mParameters : GT_Util.fuseNBT(aNBT, tClass.mParameters), - (short) aID, - (short) Block.getIdFromBlock(mBlock)); + aNBT == null || aNBT.hasNoTags() ? tClass.mParameters : GT_Util.fuseNBT(aNBT, tClass.mParameters), + (short) aID, + (short) Block.getIdFromBlock(mBlock)); return rContainer; } @@ -249,23 +244,23 @@ public class MultiTileEntityRegistry { public TileEntity getNewTileEntity(ItemStack aStack) { final MultiTileEntityContainer tContainer = getNewTileEntityContainer( - null, - 0, - 0, - 0, - Items.feather.getDamage(aStack), - aStack.getTagCompound()); + null, + 0, + 0, + 0, + Items.feather.getDamage(aStack), + aStack.getTagCompound()); return tContainer == null ? null : tContainer.mTileEntity; } public TileEntity getNewTileEntity(World aWorld, int aX, int aY, int aZ, ItemStack aStack) { final MultiTileEntityContainer tContainer = getNewTileEntityContainer( - aWorld, - aX, - aY, - aZ, - Items.feather.getDamage(aStack), - aStack.getTagCompound()); + aWorld, + aX, + aY, + aZ, + Items.feather.getDamage(aStack), + aStack.getTagCompound()); return tContainer == null ? null : tContainer.mTileEntity; } diff --git a/src/main/java/gregtech/api/multitileentity/base/MultiTileEntity.java b/src/main/java/gregtech/api/multitileentity/base/MultiTileEntity.java index bff998aa89..2ef1042a01 100644 --- a/src/main/java/gregtech/api/multitileentity/base/MultiTileEntity.java +++ b/src/main/java/gregtech/api/multitileentity/base/MultiTileEntity.java @@ -129,17 +129,16 @@ public abstract class MultiTileEntity extends CoverableTileEntity implements IMu // Loading the registry final String textureName = nbt.getString(NBT.TEXTURE); textures = new IIconContainer[] { - new Textures.BlockIcons.CustomIcon("multitileentity/base/" + textureName + "/bottom"), - new Textures.BlockIcons.CustomIcon("multitileentity/base/" + textureName + "/top"), - new Textures.BlockIcons.CustomIcon("multitileentity/base/" + textureName + "/side"), }; + new Textures.BlockIcons.CustomIcon("multitileentity/base/" + textureName + "/bottom"), + new Textures.BlockIcons.CustomIcon("multitileentity/base/" + textureName + "/top"), + new Textures.BlockIcons.CustomIcon("multitileentity/base/" + textureName + "/side"), }; } @Override public void copyTextures() { // Loading an instance - final TileEntity tCanonicalTileEntity = MultiTileEntityRegistry.getCanonicalTileEntity( - getMultiTileEntityRegistryID(), - getMultiTileEntityID()); + final TileEntity tCanonicalTileEntity = MultiTileEntityRegistry + .getCanonicalTileEntity(getMultiTileEntityRegistryID(), getMultiTileEntityID()); if (tCanonicalTileEntity instanceof MultiTileEntity) textures = ((MultiTileEntity) tCanonicalTileEntity).textures; } @@ -168,7 +167,7 @@ public abstract class MultiTileEntity extends CoverableTileEntity implements IMu if (nbt.hasKey("z")) zCoord = nbt.getInteger("z"); // read the custom Name. if (nbt.hasKey(NBT.DISPAY)) customName = nbt.getCompoundTag(NBT.DISPAY) - .getString(NBT.CUSTOM_NAME); + .getString(NBT.CUSTOM_NAME); // And now everything else. try { @@ -267,8 +266,7 @@ public abstract class MultiTileEntity extends CoverableTileEntity implements IMu @Override public TileEntity getTileEntity(int aX, int aY, int aZ) { if (worldObj == null - || (ignoreUnloadedChunks && crossedChunkBorder(aX, aZ) && !worldObj.blockExists(aX, aY, aZ))) - return null; + || (ignoreUnloadedChunks && crossedChunkBorder(aX, aZ) && !worldObj.blockExists(aX, aY, aZ))) return null; return GT_Util.getTileEntity(worldObj, aX, aY, aZ, true); } @@ -279,7 +277,7 @@ public abstract class MultiTileEntity extends CoverableTileEntity implements IMu @Override public boolean shouldRefresh(Block aOldBlock, Block aNewBlock, int aOldMeta, int aNewMeta, World aWorld, int aX, - int aY, int aZ) { + int aY, int aZ) { return shouldRefresh || aOldBlock != aNewBlock; } @@ -294,16 +292,16 @@ public abstract class MultiTileEntity extends CoverableTileEntity implements IMu worldObj.notifyBlocksOfNeighborChange(xCoord, yCoord, zCoord, tBlock); if (this instanceof IMTE_IsProvidingStrongPower) for (byte tSide : GT_Values.ALL_VALID_SIDES) { if (getBlockAtSide(tSide).isNormalCube( - worldObj, + worldObj, + xCoord + GT_Values.OFFX[tSide], + yCoord + GT_Values.OFFY[tSide], + zCoord + GT_Values.OFFZ[tSide])) { + worldObj.notifyBlocksOfNeighborChange( xCoord + GT_Values.OFFX[tSide], yCoord + GT_Values.OFFY[tSide], - zCoord + GT_Values.OFFZ[tSide])) { - worldObj.notifyBlocksOfNeighborChange( - xCoord + GT_Values.OFFX[tSide], - yCoord + GT_Values.OFFY[tSide], - zCoord + GT_Values.OFFZ[tSide], - tBlock, - OPOS[tSide]); + zCoord + GT_Values.OFFZ[tSide], + tBlock, + OPOS[tSide]); } } needsBlockUpdate = false; @@ -315,7 +313,7 @@ public abstract class MultiTileEntity extends CoverableTileEntity implements IMu // TODO: check to an interface // if (getBlockAtSide(aSide) == Blocks.glass) return false; return tTileEntity instanceof IMultiTileEntity ? !((IMultiTileEntity) tTileEntity).isSurfaceOpaque(OPOS[aSide]) - : !getBlockAtSide(aSide).isOpaqueCube(); + : !getBlockAtSide(aSide).isOpaqueCube(); } @Override @@ -487,16 +485,16 @@ public abstract class MultiTileEntity extends CoverableTileEntity implements IMu public AxisAlignedBB box(double[] aBox) { return AxisAlignedBB.getBoundingBox( - xCoord + aBox[0], - yCoord + aBox[1], - zCoord + aBox[2], - xCoord + aBox[3], - yCoord + aBox[4], - zCoord + aBox[5]); + xCoord + aBox[0], + yCoord + aBox[1], + zCoord + aBox[2], + xCoord + aBox[3], + yCoord + aBox[4], + zCoord + aBox[5]); } public boolean box(AxisAlignedBB aAABB, List aList, double aMinX, double aMinY, double aMinZ, - double aMaxX, double aMaxY, double aMaxZ) { + double aMaxX, double aMaxY, double aMaxZ) { final AxisAlignedBB tBox = box(aMinX, aMinY, aMinZ, aMaxX, aMaxY, aMaxZ); return tBox.intersectsWith(aAABB) && aList.add(tBox); } @@ -508,12 +506,12 @@ public abstract class MultiTileEntity extends CoverableTileEntity implements IMu public AxisAlignedBB box(double aMinX, double aMinY, double aMinZ, double aMaxX, double aMaxY, double aMaxZ) { return AxisAlignedBB.getBoundingBox( - xCoord + aMinX, - yCoord + aMinY, - zCoord + aMinZ, - xCoord + aMaxX, - yCoord + aMaxY, - zCoord + aMaxZ); + xCoord + aMinX, + yCoord + aMinY, + zCoord + aMinZ, + xCoord + aMaxX, + yCoord + aMaxY, + zCoord + aMaxZ); } @Override @@ -543,12 +541,12 @@ public abstract class MultiTileEntity extends CoverableTileEntity implements IMu public AxisAlignedBB box(float[] aBox) { return AxisAlignedBB.getBoundingBox( - xCoord + aBox[0], - yCoord + aBox[1], - zCoord + aBox[2], - xCoord + aBox[3], - yCoord + aBox[4], - zCoord + aBox[5]); + xCoord + aBox[0], + yCoord + aBox[1], + zCoord + aBox[2], + xCoord + aBox[3], + yCoord + aBox[4], + zCoord + aBox[5]); } public boolean box(Block aBlock) { @@ -572,12 +570,12 @@ public abstract class MultiTileEntity extends CoverableTileEntity implements IMu public boolean box(Block aBlock, double[] aBox) { aBlock.setBlockBounds( - (float) aBox[0], - (float) aBox[1], - (float) aBox[2], - (float) aBox[3], - (float) aBox[4], - (float) aBox[5]); + (float) aBox[0], + (float) aBox[1], + (float) aBox[2], + (float) aBox[3], + (float) aBox[4], + (float) aBox[5]); return true; } @@ -598,7 +596,7 @@ public abstract class MultiTileEntity extends CoverableTileEntity implements IMu } public boolean box(Block aBlock, double aMinX, double aMinY, double aMinZ, double aMaxX, double aMaxY, - double aMaxZ) { + double aMaxZ) { aBlock.setBlockBounds((float) aMinX, (float) aMinY, (float) aMinZ, (float) aMaxX, (float) aMaxY, (float) aMaxZ); return true; } @@ -701,7 +699,7 @@ public abstract class MultiTileEntity extends CoverableTileEntity implements IMu @Override public boolean onPlaced(ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, byte aSide, - float aHitX, float aHitY, float aHitZ) { + float aHitX, float aHitY, float aHitZ) { facing = getSideForPlayerPlacing(aPlayer, facing, getValidFacings()); onFacingChange(); return true; @@ -733,7 +731,7 @@ public abstract class MultiTileEntity extends CoverableTileEntity implements IMu // Configure Cover, sneak can also be: screwdriver, wrench, side cutter, soldering iron if (aPlayer.isSneaking()) { final byte tSide = (getCoverIDAtSide(aSide) == 0) ? GT_Utility.determineWrenchingSide(aSide, aX, aY, aZ) - : aSide; + : aSide; return (getCoverBehaviorAtSideNew(tSide).hasCoverGUI()); } else if (getCoverBehaviorAtSideNew(aSide).onCoverRightclickClient(aSide, this, aPlayer, aX, aY, aZ)) { return true; @@ -743,13 +741,13 @@ public abstract class MultiTileEntity extends CoverableTileEntity implements IMu } if (isServerSide()) { if (!privateAccess() || aPlayer.getDisplayName() - .equalsIgnoreCase(getOwnerName())) { + .equalsIgnoreCase(getOwnerName())) { final ItemStack tCurrentItem = aPlayer.inventory.getCurrentItem(); final byte wrenchSide = GT_Utility.determineWrenchingSide(aSide, aX, aY, aZ); if (tCurrentItem != null) { if (getColorization() >= 0 - && GT_Utility.areStacksEqual(new ItemStack(Items.water_bucket, 1), tCurrentItem)) { + && GT_Utility.areStacksEqual(new ItemStack(Items.water_bucket, 1), tCurrentItem)) { // TODO (Colorization) } if (GT_Utility.isStackInList(tCurrentItem, GregTech_API.sWrenchList)) @@ -770,18 +768,18 @@ public abstract class MultiTileEntity extends CoverableTileEntity implements IMu if (getCoverIDAtSide(coverSide) == 0) { if (GT_Utility.isStackInList(tCurrentItem, GregTech_API.sCovers.keySet())) { if (GregTech_API.getCoverBehaviorNew(tCurrentItem) - .isCoverPlaceable(coverSide, tCurrentItem, this) - && allowCoverOnSide(coverSide, new GT_ItemStack(tCurrentItem))) { + .isCoverPlaceable(coverSide, tCurrentItem, this) + && allowCoverOnSide(coverSide, new GT_ItemStack(tCurrentItem))) { setCoverItemAtSide(coverSide, tCurrentItem); if (!aPlayer.capabilities.isCreativeMode) tCurrentItem.stackSize--; GT_Utility.sendSoundToPlayers( - worldObj, - SoundResource.IC2_TOOLS_WRENCH, - 1.0F, - -1, - xCoord, - yCoord, - zCoord); + worldObj, + SoundResource.IC2_TOOLS_WRENCH, + 1.0F, + -1, + xCoord, + yCoord, + zCoord); issueClientUpdate(); } sendCoverDataIfNeeded(); @@ -791,13 +789,13 @@ public abstract class MultiTileEntity extends CoverableTileEntity implements IMu if (GT_Utility.isStackInList(tCurrentItem, GregTech_API.sCrowbarList)) { if (GT_ModHandler.damageOrDechargeItem(tCurrentItem, 1, 1000, aPlayer)) { GT_Utility.sendSoundToPlayers( - worldObj, - SoundResource.RANDOM_BREAK, - 1.0F, - -1, - xCoord, - yCoord, - zCoord); + worldObj, + SoundResource.RANDOM_BREAK, + 1.0F, + -1, + xCoord, + yCoord, + zCoord); dropCover(coverSide, aSide, false); } sendCoverDataIfNeeded(); @@ -806,25 +804,24 @@ public abstract class MultiTileEntity extends CoverableTileEntity implements IMu } } else if (aPlayer.isSneaking()) { // Sneak click, no tool -> open cover config if possible. aSide = (getCoverIDAtSide(aSide) == 0) ? GT_Utility.determineWrenchingSide(aSide, aX, aY, aZ) - : aSide; + : aSide; return getCoverIDAtSide(aSide) > 0 && getCoverBehaviorAtSideNew(aSide).onCoverShiftRightClick( - aSide, - getCoverIDAtSide(aSide), - getComplexCoverDataAtSide(aSide), - this, - aPlayer); - } - - if (getCoverBehaviorAtSideNew(aSide).onCoverRightClick( aSide, getCoverIDAtSide(aSide), getComplexCoverDataAtSide(aSide), this, - aPlayer, - aX, - aY, - aZ)) - return true; + aPlayer); + } + + if (getCoverBehaviorAtSideNew(aSide).onCoverRightClick( + aSide, + getCoverIDAtSide(aSide), + getComplexCoverDataAtSide(aSide), + this, + aPlayer, + aX, + aY, + aZ)) return true; if (!getCoverInfoAtSide(aSide).isGUIClickable()) return false; @@ -850,7 +847,7 @@ public abstract class MultiTileEntity extends CoverableTileEntity implements IMu } public boolean onWrenchRightClick(EntityPlayer aPlayer, ItemStack tCurrentItem, byte wrenchSide, float aX, float aY, - float aZ) { + float aZ) { if (setMainFacing(wrenchSide)) { GT_ModHandler.damageOrDechargeItem(tCurrentItem, 1, 1000, aPlayer); GT_Utility.sendSoundToPlayers(worldObj, SoundResource.IC2_TOOLS_WRENCH, 1.0F, -1, xCoord, yCoord, zCoord); @@ -859,19 +856,19 @@ public abstract class MultiTileEntity extends CoverableTileEntity implements IMu } public boolean onScrewdriverRightClick(EntityPlayer aPlayer, ItemStack tCurrentItem, byte wrenchSide, float aX, - float aY, float aZ) { + float aY, float aZ) { if (GT_ModHandler.damageOrDechargeItem(tCurrentItem, 1, 200, aPlayer)) { setCoverDataAtSide( + wrenchSide, + getCoverBehaviorAtSideNew(wrenchSide).onCoverScrewdriverClick( wrenchSide, - getCoverBehaviorAtSideNew(wrenchSide).onCoverScrewdriverClick( - wrenchSide, - getCoverIDAtSide(wrenchSide), - getComplexCoverDataAtSide(wrenchSide), - this, - aPlayer, - aX, - aY, - aZ)); + getCoverIDAtSide(wrenchSide), + getComplexCoverDataAtSide(wrenchSide), + this, + aPlayer, + aX, + aY, + aZ)); // TODO: Update connections! GT_Utility.sendSoundToPlayers(worldObj, SoundResource.IC2_TOOLS_WRENCH, 1.0F, -1, xCoord, yCoord, zCoord); } @@ -879,25 +876,25 @@ public abstract class MultiTileEntity extends CoverableTileEntity implements IMu } public boolean onHammerRightClick(EntityPlayer aPlayer, ItemStack tCurrentItem, byte wrenchSide, float aX, float aY, - float aZ) { + float aZ) { return true; } public boolean onMalletRightClick(EntityPlayer aPlayer, ItemStack tCurrentItem, byte wrenchSide, float aX, float aY, - float aZ) { + float aZ) { return true; } public boolean onSolderingRightClick(EntityPlayer aPlayer, ItemStack tCurrentItem, byte wrenchSide, float aX, - float aY, float aZ) { + float aY, float aZ) { return true; } public boolean onWireCutterRightClick(EntityPlayer aPlayer, ItemStack tCurrentItem, byte wrenchSide, float aX, - float aY, float aZ) { + float aY, float aZ) { return true; } @@ -932,7 +929,7 @@ public abstract class MultiTileEntity extends CoverableTileEntity implements IMu @Override public boolean getSubItems(MultiTileEntityBlockInternal aBlock, Item aItem, CreativeTabs aTab, - List aList, short aID) { + List aList, short aID) { return true; } @@ -957,9 +954,7 @@ public abstract class MultiTileEntity extends CoverableTileEntity implements IMu setOwnerName(aPlayer.getDisplayName()); setOwnerUuid(aPlayer.getUniqueID()); } else return !privateAccess() || aPlayer.getDisplayName() - .equals("Player") - || ownerName.equals("Player") - || ownerName.equals(aPlayer.getDisplayName()); + .equals("Player") || ownerName.equals("Player") || ownerName.equals(aPlayer.getDisplayName()); return true; } @@ -974,29 +969,29 @@ public abstract class MultiTileEntity extends CoverableTileEntity implements IMu public GT_Packet_MultiTileEntity getClientDataPacket() { final GT_Packet_MultiTileEntity packet = new GT_Packet_MultiTileEntity( - 0, - xCoord, - (short) yCoord, - zCoord, - getMultiTileEntityRegistryID(), - getMultiTileEntityID(), - (byte) ((facing & 7) | (mRedstone ? 16 : 0)), - color); + 0, + xCoord, + (short) yCoord, + zCoord, + getMultiTileEntityRegistryID(), + getMultiTileEntityID(), + (byte) ((facing & 7) | (mRedstone ? 16 : 0)), + color); packet.setCoverData( - getCoverInfoAtSide((byte) 0).getCoverID(), - getCoverInfoAtSide((byte) 1).getCoverID(), - getCoverInfoAtSide((byte) 2).getCoverID(), - getCoverInfoAtSide((byte) 3).getCoverID(), - getCoverInfoAtSide((byte) 4).getCoverID(), - getCoverInfoAtSide((byte) 5).getCoverID()); + getCoverInfoAtSide((byte) 0).getCoverID(), + getCoverInfoAtSide((byte) 1).getCoverID(), + getCoverInfoAtSide((byte) 2).getCoverID(), + getCoverInfoAtSide((byte) 3).getCoverID(), + getCoverInfoAtSide((byte) 4).getCoverID(), + getCoverInfoAtSide((byte) 5).getCoverID()); packet.setRedstoneData( - (byte) (((mSidedRedstone[0] > 0) ? 1 : 0) | ((mSidedRedstone[1] > 0) ? 2 : 0) - | ((mSidedRedstone[2] > 0) ? 4 : 0) - | ((mSidedRedstone[3] > 0) ? 8 : 0) - | ((mSidedRedstone[4] > 0) ? 16 : 0) - | ((mSidedRedstone[5] > 0) ? 32 : 0))); + (byte) (((mSidedRedstone[0] > 0) ? 1 : 0) | ((mSidedRedstone[1] > 0) ? 2 : 0) + | ((mSidedRedstone[2] > 0) ? 4 : 0) + | ((mSidedRedstone[3] > 0) ? 8 : 0) + | ((mSidedRedstone[4] > 0) ? 16 : 0) + | ((mSidedRedstone[5] > 0) ? 32 : 0))); return packet; } @@ -1068,18 +1063,18 @@ public abstract class MultiTileEntity extends CoverableTileEntity implements IMu @Override public void getWailaBody(ItemStack itemStack, List currenttip, IWailaDataAccessor accessor, - IWailaConfigHandler config) { + IWailaConfigHandler config) { super.getWailaBody(itemStack, currenttip, accessor, config); currenttip.add( - String.format( - "Facing: %s", - ForgeDirection.getOrientation(getFrontFacing()) - .name())); + String.format( + "Facing: %s", + ForgeDirection.getOrientation(getFrontFacing()) + .name())); } @Override public void getWailaNBTData(EntityPlayerMP player, TileEntity tile, NBTTagCompound tag, World world, int x, int y, - int z) { + int z) { super.getWailaNBTData(player, tile, tag, world, x, y, z); } @@ -1093,13 +1088,13 @@ public abstract class MultiTileEntity extends CoverableTileEntity implements IMu final ArrayList tList = new ArrayList<>(); if (aLogLevel > 2) { tList.add( - "MultiTileRegistry-ID: " + EnumChatFormatting.BLUE - + mteRegistry - + EnumChatFormatting.RESET - + " MultiTile-ID: " - + EnumChatFormatting.BLUE - + mteID - + EnumChatFormatting.RESET); + "MultiTileRegistry-ID: " + EnumChatFormatting.BLUE + + mteRegistry + + EnumChatFormatting.RESET + + " MultiTile-ID: " + + EnumChatFormatting.BLUE + + mteID + + EnumChatFormatting.RESET); } if (joinedIc2Enet) tList.add("Joined IC2 ENet"); @@ -1150,9 +1145,9 @@ public abstract class MultiTileEntity extends CoverableTileEntity implements IMu if (aFluid == null || aFluid.amount <= 0) return null; final IFluidTank tTank = getFluidTankDrainable((byte) aDirection.ordinal(), aFluid); if (tTank == null || tTank.getFluid() == null - || tTank.getFluidAmount() == 0 - || !tTank.getFluid() - .isFluidEqual(aFluid)) + || tTank.getFluidAmount() == 0 + || !tTank.getFluid() + .isFluidEqual(aFluid)) return null; return tTank.drain(aFluid.amount, aDoDrain); } @@ -1170,8 +1165,7 @@ public abstract class MultiTileEntity extends CoverableTileEntity implements IMu if (aFluid == null) return false; final IFluidTank tTank = getFluidTankFillable((byte) aDirection.ordinal(), new FluidStack(aFluid, 0)); return tTank != null && (tTank.getFluid() == null || tTank.getFluid() - .getFluid() - == aFluid); + .getFluid() == aFluid); } @Override @@ -1179,8 +1173,7 @@ public abstract class MultiTileEntity extends CoverableTileEntity implements IMu if (aFluid == null) return false; final IFluidTank tTank = getFluidTankDrainable((byte) aDirection.ordinal(), new FluidStack(aFluid, 0)); return tTank != null && (tTank.getFluid() != null && tTank.getFluid() - .getFluid() - == aFluid); + .getFluid() == aFluid); } @Override diff --git a/src/main/java/gregtech/api/multitileentity/base/NonTickableMultiTileEntity.java b/src/main/java/gregtech/api/multitileentity/base/NonTickableMultiTileEntity.java index a4007ec85e..90c931239a 100644 --- a/src/main/java/gregtech/api/multitileentity/base/NonTickableMultiTileEntity.java +++ b/src/main/java/gregtech/api/multitileentity/base/NonTickableMultiTileEntity.java @@ -50,7 +50,7 @@ public abstract class NonTickableMultiTileEntity extends MultiTileEntity { @Override public void receiveCoverData(byte aCoverSide, int aCoverID, ISerializableObject aCoverData, - EntityPlayerMP aPlayer) { + EntityPlayerMP aPlayer) { super.receiveCoverData(aCoverSide, aCoverID, aCoverData, aPlayer); // We don't get ticked so issue the texture update right away issueTextureUpdate(); diff --git a/src/main/java/gregtech/api/multitileentity/interfaces/IMultiTileEntity.java b/src/main/java/gregtech/api/multitileentity/interfaces/IMultiTileEntity.java index 37a3749c8f..b42aa35195 100644 --- a/src/main/java/gregtech/api/multitileentity/interfaces/IMultiTileEntity.java +++ b/src/main/java/gregtech/api/multitileentity/interfaces/IMultiTileEntity.java @@ -29,8 +29,8 @@ import gregtech.api.multitileentity.MultiTileEntityRegistry; * Heavily inspired by GT6 */ public interface IMultiTileEntity - extends IHasWorldObjectAndCoords, ICoverable, ITurnable, IHasInventory, IEnergyConnected, IBasicEnergyContainer, - IFluidHandler, ITexturedTileEntity, IDebugableTileEntity, IColoredTileEntity { + extends IHasWorldObjectAndCoords, ICoverable, ITurnable, IHasInventory, IEnergyConnected, IBasicEnergyContainer, + IFluidHandler, ITexturedTileEntity, IDebugableTileEntity, IColoredTileEntity { /** * Those two IDs HAVE to be saved inside the NBT of the TileEntity itself. They get set by the Registry itself, when @@ -173,7 +173,7 @@ public interface IMultiTileEntity /** Adds to the Creative Tab. return false to prevent it from being added. */ boolean getSubItems(MultiTileEntityBlockInternal aBlock, Item aItem, CreativeTabs aTab, List aList, - short aID); + short aID); ItemStack getPickBlock(MovingObjectPosition aTarget); @@ -182,7 +182,7 @@ public interface IMultiTileEntity boolean isSurfaceOpaque(byte aSide); boolean onPlaced(ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, byte aSide, - float aHitX, float aHitY, float aHitZ); + float aHitX, float aHitY, float aHitZ); // ItemStack getPickBlock(MovingObjectPosition aTarget); @@ -258,14 +258,14 @@ public interface IMultiTileEntity * pipes/wires. */ boolean ignoreEntityCollisionWhenPlacing(ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, - int aZ, byte aSide, float aHitX, float aHitY, float aHitZ); + int aZ, byte aSide, float aHitX, float aHitY, float aHitZ); } interface IMTE_CanPlace extends IMultiTileEntity { /** Return false if this TileEntity cannot be placed at that Location. */ boolean canPlace(ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, byte aSide, - float aHitX, float aHitY, float aHitZ); + float aHitX, float aHitY, float aHitZ); } interface IMTE_GetMaxStackSize extends IMultiTileEntity { diff --git a/src/main/java/gregtech/api/multitileentity/machine/MultiTileBasicMachine.java b/src/main/java/gregtech/api/multitileentity/machine/MultiTileBasicMachine.java index 740496a8b6..680116e95a 100644 --- a/src/main/java/gregtech/api/multitileentity/machine/MultiTileBasicMachine.java +++ b/src/main/java/gregtech/api/multitileentity/machine/MultiTileBasicMachine.java @@ -218,7 +218,7 @@ public abstract class MultiTileBasicMachine extends TickableMultiTileEntity impl // `setCapacityMultiplier` for (int i = 0; i < inputTanks.length; i++) { inputTanks[i] = new FluidTankGT(capacity).setCapacityMultiplier(maxParallel * 2L) - .readFromNBT(nbt, NBT.TANK_IN + i); + .readFromNBT(nbt, NBT.TANK_IN + i); } for (int i = 0; i < outputTanks.length; i++) { outputTanks[i] = new FluidTankGT().readFromNBT(nbt, NBT.TANK_OUT + i); @@ -262,34 +262,33 @@ public abstract class MultiTileBasicMachine extends TickableMultiTileEntity impl // Loading the registry final String textureName = aNBT.getString(NBT.TEXTURE); textures = new IIconContainer[] { - new Textures.BlockIcons.CustomIcon(TEXTURE_LOCATION + textureName + "/bottom"), - new Textures.BlockIcons.CustomIcon(TEXTURE_LOCATION + textureName + "/top"), - new Textures.BlockIcons.CustomIcon(TEXTURE_LOCATION + textureName + "/left"), - new Textures.BlockIcons.CustomIcon(TEXTURE_LOCATION + textureName + "/front"), - new Textures.BlockIcons.CustomIcon(TEXTURE_LOCATION + textureName + "/right"), - new Textures.BlockIcons.CustomIcon(TEXTURE_LOCATION + textureName + "/side") }; + new Textures.BlockIcons.CustomIcon(TEXTURE_LOCATION + textureName + "/bottom"), + new Textures.BlockIcons.CustomIcon(TEXTURE_LOCATION + textureName + "/top"), + new Textures.BlockIcons.CustomIcon(TEXTURE_LOCATION + textureName + "/left"), + new Textures.BlockIcons.CustomIcon(TEXTURE_LOCATION + textureName + "/front"), + new Textures.BlockIcons.CustomIcon(TEXTURE_LOCATION + textureName + "/right"), + new Textures.BlockIcons.CustomIcon(TEXTURE_LOCATION + textureName + "/side") }; texturesInactive = new IIconContainer[] { - new Textures.BlockIcons.CustomIcon(TEXTURE_LOCATION + textureName + "/overlay/inactive/bottom"), - new Textures.BlockIcons.CustomIcon(TEXTURE_LOCATION + textureName + "/overlay/inactive/top"), - new Textures.BlockIcons.CustomIcon(TEXTURE_LOCATION + textureName + "/overlay/inactive/left"), - new Textures.BlockIcons.CustomIcon(TEXTURE_LOCATION + textureName + "/overlay/inactive/front"), - new Textures.BlockIcons.CustomIcon(TEXTURE_LOCATION + textureName + "/overlay/inactive/right"), - new Textures.BlockIcons.CustomIcon(TEXTURE_LOCATION + textureName + "/overlay/inactive/back") }; + new Textures.BlockIcons.CustomIcon(TEXTURE_LOCATION + textureName + "/overlay/inactive/bottom"), + new Textures.BlockIcons.CustomIcon(TEXTURE_LOCATION + textureName + "/overlay/inactive/top"), + new Textures.BlockIcons.CustomIcon(TEXTURE_LOCATION + textureName + "/overlay/inactive/left"), + new Textures.BlockIcons.CustomIcon(TEXTURE_LOCATION + textureName + "/overlay/inactive/front"), + new Textures.BlockIcons.CustomIcon(TEXTURE_LOCATION + textureName + "/overlay/inactive/right"), + new Textures.BlockIcons.CustomIcon(TEXTURE_LOCATION + textureName + "/overlay/inactive/back") }; texturesActive = new IIconContainer[] { - new Textures.BlockIcons.CustomIcon(TEXTURE_LOCATION + textureName + "/overlay/active/bottom"), - new Textures.BlockIcons.CustomIcon(TEXTURE_LOCATION + textureName + "/overlay/active/top"), - new Textures.BlockIcons.CustomIcon(TEXTURE_LOCATION + textureName + "/overlay/active/left"), - new Textures.BlockIcons.CustomIcon(TEXTURE_LOCATION + textureName + "/overlay/active/front"), - new Textures.BlockIcons.CustomIcon(TEXTURE_LOCATION + textureName + "/overlay/active/right"), - new Textures.BlockIcons.CustomIcon(TEXTURE_LOCATION + textureName + "/overlay/active/back") }; + new Textures.BlockIcons.CustomIcon(TEXTURE_LOCATION + textureName + "/overlay/active/bottom"), + new Textures.BlockIcons.CustomIcon(TEXTURE_LOCATION + textureName + "/overlay/active/top"), + new Textures.BlockIcons.CustomIcon(TEXTURE_LOCATION + textureName + "/overlay/active/left"), + new Textures.BlockIcons.CustomIcon(TEXTURE_LOCATION + textureName + "/overlay/active/front"), + new Textures.BlockIcons.CustomIcon(TEXTURE_LOCATION + textureName + "/overlay/active/right"), + new Textures.BlockIcons.CustomIcon(TEXTURE_LOCATION + textureName + "/overlay/active/back") }; } @Override public void copyTextures() { // Loading an instance - final TileEntity tCanonicalTileEntity = MultiTileEntityRegistry.getCanonicalTileEntity( - getMultiTileEntityRegistryID(), - getMultiTileEntityID()); + final TileEntity tCanonicalTileEntity = MultiTileEntityRegistry + .getCanonicalTileEntity(getMultiTileEntityRegistryID(), getMultiTileEntityID()); if (tCanonicalTileEntity instanceof MultiTileBasicMachine) { textures = ((MultiTileBasicMachine) tCanonicalTileEntity).textures; texturesInactive = ((MultiTileBasicMachine) tCanonicalTileEntity).texturesInactive; @@ -302,14 +301,13 @@ public abstract class MultiTileBasicMachine extends TickableMultiTileEntity impl @Override public ITexture[] getTexture(Block aBlock, byte aSide, boolean isActive, int aRenderPass) { if (aSide != facing) { - return new ITexture[] { TextureFactory.of( - textures[GT_Values.FACING_ROTATIONS[facing][aSide]], - GT_Util.getRGBaArray(rgba)) }; + return new ITexture[] { + TextureFactory.of(textures[GT_Values.FACING_ROTATIONS[facing][aSide]], GT_Util.getRGBaArray(rgba)) }; } return new ITexture[] { - TextureFactory.of(textures[GT_Values.FACING_ROTATIONS[facing][aSide]], GT_Util.getRGBaArray(rgba)), - TextureFactory.of( - (active ? texturesActive : texturesInactive)[GT_Values.FACING_ROTATIONS[facing][aSide]]) }; + TextureFactory.of(textures[GT_Values.FACING_ROTATIONS[facing][aSide]], GT_Util.getRGBaArray(rgba)), + TextureFactory + .of((active ? texturesActive : texturesInactive)[GT_Values.FACING_ROTATIONS[facing][aSide]]) }; } @Override @@ -353,9 +351,9 @@ public abstract class MultiTileBasicMachine extends TickableMultiTileEntity impl @Override public boolean isUseableByPlayer(EntityPlayer aPlayer) { return playerOwnsThis(aPlayer, false) && mTickTimer > 40 - && getTileEntityOffset(0, 0, 0) == this - && aPlayer.getDistanceSq(xCoord + 0.5, yCoord + 0.5, zCoord + 0.5) < 64 - && allowInteraction(aPlayer); + && getTileEntityOffset(0, 0, 0) == this + && aPlayer.getDistanceSq(xCoord + 0.5, yCoord + 0.5, zCoord + 0.5) < 64 + && allowInteraction(aPlayer); } @Override @@ -521,12 +519,12 @@ public abstract class MultiTileBasicMachine extends TickableMultiTileEntity impl ProcessingLogic logic = ((ProcessingLogicHost) this).getProcessingLogic(); logic.clear(); boolean result = logic.setInputItems( - inputInventory.getStacks() - .toArray(new ItemStack[0])) - .setCurrentOutputItems( - outputInventory.getStacks() - .toArray(new ItemStack[0])) - .process(); + inputInventory.getStacks() + .toArray(new ItemStack[0])) + .setCurrentOutputItems( + outputInventory.getStacks() + .toArray(new ItemStack[0])) + .process(); setDuration(logic.getDuration()); setEut(logic.getEut()); setItemOutputs(logic.getOutputItems()); @@ -573,13 +571,8 @@ public abstract class MultiTileBasicMachine extends TickableMultiTileEntity impl if (getProcessStartSound() != null) GT_Utility.doSoundAtClient(getProcessStartSound(), getTimeBetweenProcessSounds(), 1.0F, aX, aY, aZ); } - case INTERRUPT_SOUND_INDEX -> GT_Utility.doSoundAtClient( - SoundResource.IC2_MACHINES_INTERRUPT_ONE, - 100, - 1.0F, - aX, - aY, - aZ); + case INTERRUPT_SOUND_INDEX -> GT_Utility + .doSoundAtClient(SoundResource.IC2_MACHINES_INTERRUPT_ONE, 100, 1.0F, aX, aY, aZ); } } @@ -603,8 +596,8 @@ public abstract class MultiTileBasicMachine extends TickableMultiTileEntity impl if (activitySoundLoop == null) { activitySoundLoop = new GT_SoundLoop(activitySound, this, false, true); Minecraft.getMinecraft() - .getSoundHandler() - .playSound(activitySoundLoop); + .getSoundHandler() + .playSound(activitySoundLoop); } } else { if (activitySoundLoop != null) { @@ -765,10 +758,7 @@ public abstract class MultiTileBasicMachine extends TickableMultiTileEntity impl protected void addDebugInfo(EntityPlayer player, int logLevel, ArrayList list) { if (isElectric()) { list.add( - "Energy: " + EnumChatFormatting.GOLD - + getUniversalEnergyStored() - + "/" - + getUniversalEnergyCapacity()); + "Energy: " + EnumChatFormatting.GOLD + getUniversalEnergyStored() + "/" + getUniversalEnergyCapacity()); } if (acceptsFuel()) { @@ -860,20 +850,20 @@ public abstract class MultiTileBasicMachine extends TickableMultiTileEntity impl switch (soundEventValue) { case PROCESS_START_SOUND_INDEX -> { if (getProcessStartSound() != null) GT_Utility.doSoundAtClient( - getProcessStartSound(), - getTimeBetweenProcessSounds(), - 1.0F, - getXCoord(), - getYCoord(), - getZCoord()); - } - case INTERRUPT_SOUND_INDEX -> GT_Utility.doSoundAtClient( - SoundResource.IC2_MACHINES_INTERRUPT_ONE, - 100, + getProcessStartSound(), + getTimeBetweenProcessSounds(), 1.0F, getXCoord(), getYCoord(), getZCoord()); + } + case INTERRUPT_SOUND_INDEX -> GT_Utility.doSoundAtClient( + SoundResource.IC2_MACHINES_INTERRUPT_ONE, + 100, + 1.0F, + getXCoord(), + getYCoord(), + getZCoord()); } } } diff --git a/src/main/java/gregtech/api/multitileentity/multiblock/base/MultiBlockController.java b/src/main/java/gregtech/api/multitileentity/multiblock/base/MultiBlockController.java index b76dc1b4bc..088b640dbd 100644 --- a/src/main/java/gregtech/api/multitileentity/multiblock/base/MultiBlockController.java +++ b/src/main/java/gregtech/api/multitileentity/multiblock/base/MultiBlockController.java @@ -94,7 +94,7 @@ import gregtech.api.util.GT_Utility; import gregtech.common.tileentities.casings.upgrade.InventoryUpgrade; public abstract class MultiBlockController> extends MultiTileBasicMachine implements - IAlignment, IConstructable, IMultiBlockController, IDescribable, IMTE_AddToolTips, ISurvivalConstructable { + IAlignment, IConstructable, IMultiBlockController, IDescribable, IMTE_AddToolTips, ISurvivalConstructable { private static final Map tooltip = new ConcurrentHashMap<>(); private final List upgradeCasings = new ArrayList<>(); @@ -125,12 +125,12 @@ public abstract class MultiBlockController> ex // A list of sides // Each side has a list of parts that have a cover that need to be ticked protected List>> registeredCoveredParts = Arrays.asList( - new LinkedList<>(), - new LinkedList<>(), - new LinkedList<>(), - new LinkedList<>(), - new LinkedList<>(), - new LinkedList<>()); + new LinkedList<>(), + new LinkedList<>(), + new LinkedList<>(), + new LinkedList<>(), + new LinkedList<>(), + new LinkedList<>()); /** Registry ID of the required casing */ public abstract short getCasingRegistryID(); @@ -177,13 +177,13 @@ public abstract class MultiBlockController> ex nbt.setBoolean(NBT.STRUCTURE_OK, structureOkay); nbt.setByte( - NBT.ROTATION, - (byte) extendedFacing.getRotation() - .getIndex()); + NBT.ROTATION, + (byte) extendedFacing.getRotation() + .getIndex()); nbt.setByte( - NBT.FLIP, - (byte) extendedFacing.getFlip() - .getIndex()); + NBT.FLIP, + (byte) extendedFacing.getFlip() + .getIndex()); saveUpgradeInventoriesToNBT(nbt); } @@ -226,9 +226,9 @@ public abstract class MultiBlockController> ex structureOkay = nbt.getBoolean(NBT.STRUCTURE_OK); extendedFacing = ExtendedFacing.of( - ForgeDirection.getOrientation(getFrontFacing()), - Rotation.byIndex(nbt.getByte(NBT.ROTATION)), - Flip.byIndex(nbt.getByte(NBT.FLIP))); + ForgeDirection.getOrientation(getFrontFacing()), + Rotation.byIndex(nbt.getByte(NBT.ROTATION)), + Flip.byIndex(nbt.getByte(NBT.FLIP))); loadUpgradeInventoriesFromNBT(nbt); } @@ -322,17 +322,17 @@ public abstract class MultiBlockController> ex */ protected final boolean checkPiece(String piece, int horizontalOffset, int verticalOffset, int depthOffset) { return getCastedStructureDefinition().check( - this, - piece, - getWorld(), - getExtendedFacing(), - getXCoord(), - getYCoord(), - getZCoord(), - horizontalOffset, - verticalOffset, - depthOffset, - !structureOkay); + this, + piece, + getWorld(), + getExtendedFacing(), + getXCoord(), + getYCoord(), + getZCoord(), + horizontalOffset, + verticalOffset, + depthOffset, + !structureOkay); } public final boolean buildPiece(String piece, ItemStack trigger, boolean hintsOnly, Vec3Impl offset) { @@ -340,52 +340,52 @@ public abstract class MultiBlockController> ex } protected final boolean buildPiece(String piece, ItemStack trigger, boolean hintOnly, int horizontalOffset, - int verticalOffset, int depthOffset) { + int verticalOffset, int depthOffset) { return getCastedStructureDefinition().buildOrHints( - this, - trigger, - piece, - getWorld(), - getExtendedFacing(), - getXCoord(), - getYCoord(), - getZCoord(), - horizontalOffset, - verticalOffset, - depthOffset, - hintOnly); + this, + trigger, + piece, + getWorld(), + getExtendedFacing(), + getXCoord(), + getYCoord(), + getZCoord(), + horizontalOffset, + verticalOffset, + depthOffset, + hintOnly); } protected final int survivalBuildPiece(String piece, ItemStack trigger, Vec3Impl offset, int elementBudget, - ISurvivalBuildEnvironment env, boolean check) { + ISurvivalBuildEnvironment env, boolean check) { return survivalBuildPiece( - piece, - trigger, - offset.get0(), - offset.get1(), - offset.get2(), - elementBudget, - env, - check); + piece, + trigger, + offset.get0(), + offset.get1(), + offset.get2(), + elementBudget, + env, + check); } protected final Integer survivalBuildPiece(String piece, ItemStack trigger, int horizontalOffset, - int verticalOffset, int depthOffset, int elementBudget, ISurvivalBuildEnvironment env, boolean check) { + int verticalOffset, int depthOffset, int elementBudget, ISurvivalBuildEnvironment env, boolean check) { return getCastedStructureDefinition().survivalBuild( - this, - trigger, - piece, - getWorld(), - getExtendedFacing(), - getXCoord(), - getYCoord(), - getZCoord(), - horizontalOffset, - verticalOffset, - depthOffset, - elementBudget, - env, - check); + this, + trigger, + piece, + getWorld(), + getExtendedFacing(), + getXCoord(), + getYCoord(), + getZCoord(), + horizontalOffset, + verticalOffset, + depthOffset, + elementBudget, + env, + check); } @SuppressWarnings("unchecked") @@ -407,13 +407,13 @@ public abstract class MultiBlockController> ex structureOkay = false; if (isServerSide()) { StructureLibAPI.sendAlignment( - this, - new NetworkRegistry.TargetPoint( - getWorld().provider.dimensionId, - getXCoord(), - getYCoord(), - getZCoord(), - 512)); + this, + new NetworkRegistry.TargetPoint( + getWorld().provider.dimensionId, + getXCoord(), + getYCoord(), + getZCoord(), + 512)); } else { issueTextureUpdate(); } @@ -422,7 +422,7 @@ public abstract class MultiBlockController> ex @Override public boolean onWrenchRightClick(EntityPlayer aPlayer, ItemStack tCurrentItem, byte wrenchSide, float aX, float aY, - float aZ) { + float aZ) { if (wrenchSide != getFrontFacing()) return super.onWrenchRightClick(aPlayer, tCurrentItem, wrenchSide, aX, aY, aZ); if (aPlayer.isSneaking()) { @@ -689,13 +689,8 @@ public abstract class MultiBlockController> ex @Override public boolean placeBlock(S t, World world, int x, int y, int z, ItemStack trigger) { final MultiTileEntityRegistry tRegistry = MultiTileEntityRegistry.getRegistry(registryID); - final MultiTileEntityContainer tContainer = tRegistry.getNewTileEntityContainer( - world, - x, - y, - z, - meta, - null); + final MultiTileEntityContainer tContainer = tRegistry + .getNewTileEntityContainer(world, x, y, z, meta, null); if (tContainer == null) { GT_FML_LOGGER.error("NULL CONTAINER"); return false; @@ -760,9 +755,9 @@ public abstract class MultiBlockController> ex if (aFluid == null || aFluid.amount <= 0) return null; final IFluidTank tTank = getFluidTankDrainable(aPart, (byte) aDirection.ordinal(), aFluid); if (tTank == null || tTank.getFluid() == null - || tTank.getFluidAmount() == 0 - || !tTank.getFluid() - .isFluidEqual(aFluid)) + || tTank.getFluidAmount() == 0 + || !tTank.getFluid() + .isFluidEqual(aFluid)) return null; final FluidStack rDrained = tTank.drain(aFluid.amount, aDoDrain); if (rDrained != null && aDoDrain) markInventoryBeenModified(); @@ -784,8 +779,7 @@ public abstract class MultiBlockController> ex if (aFluid == null) return false; final IFluidTank tTank = getFluidTankFillable(aPart, (byte) aDirection.ordinal(), new FluidStack(aFluid, 0)); return tTank != null && (tTank.getFluid() == null || tTank.getFluid() - .getFluid() - == aFluid); + .getFluid() == aFluid); } @Override @@ -793,8 +787,7 @@ public abstract class MultiBlockController> ex if (aFluid == null) return false; final IFluidTank tTank = getFluidTankDrainable(aPart, (byte) aDirection.ordinal(), new FluidStack(aFluid, 0)); return tTank != null && (tTank.getFluid() != null && tTank.getFluid() - .getFluid() - == aFluid); + .getFluid() == aFluid); } @Override @@ -848,12 +841,12 @@ public abstract class MultiBlockController> ex @Override public void unregisterInventory(String aName, String aID, int aType) { if ((aType == InventoryUpgrade.INPUT || aType == InventoryUpgrade.BOTH) - && multiBlockInputInventory.containsKey(aID)) { + && multiBlockInputInventory.containsKey(aID)) { multiBlockInputInventory.remove(aID, multiBlockInputInventory.get(aID)); multiBlockInputInventoryNames.remove(aID, aName); } if ((aType == InventoryUpgrade.OUTPUT || aType == InventoryUpgrade.BOTH) - && multiBlockOutputInventory.containsKey(aID)) { + && multiBlockOutputInventory.containsKey(aID)) { multiBlockOutputInventory.remove(aID, multiBlockOutputInventory.get(aID)); multiBlockOutputInventoryNames.remove(aID, aName); } @@ -862,11 +855,11 @@ public abstract class MultiBlockController> ex @Override public void changeInventoryName(String aName, String aID, int aType) { if ((aType == InventoryUpgrade.INPUT || aType == InventoryUpgrade.BOTH) - && multiBlockInputInventoryNames.containsKey(aID)) { + && multiBlockInputInventoryNames.containsKey(aID)) { multiBlockInputInventoryNames.put(aID, aName); } if ((aType == InventoryUpgrade.OUTPUT || aType == InventoryUpgrade.BOTH) - && multiBlockOutputInventoryNames.containsKey(aID)) { + && multiBlockOutputInventoryNames.containsKey(aID)) { multiBlockOutputInventoryNames.put(aID, aName); } } @@ -1093,8 +1086,8 @@ public abstract class MultiBlockController> ex final String lockedInventory = aPart.getLockedInventory(); if (lockedInventory != null && !lockedInventory.equals("")) { str.append(" [Locked: ") - .append(lockedInventory) - .append("]"); + .append(lockedInventory) + .append("]"); } return str.toString(); @@ -1145,24 +1138,24 @@ public abstract class MultiBlockController> ex protected ItemStack[] getAllItemInputs() { return getInventoriesForInput().getStacks() - .toArray(new ItemStack[0]); + .toArray(new ItemStack[0]); } protected ItemStack[] getAllOutputItems() { return getInventoriesForOutput().getStacks() - .toArray(new ItemStack[0]); + .toArray(new ItemStack[0]); } protected Iterable> getItemInputsForEachInventory() { return multiBlockInputInventory.entrySet() - .stream() - .map( - (entry) -> Pair.of( - entry.getValue() - .getStacks() - .toArray(new ItemStack[0]), - entry.getKey())) - .collect(Collectors.toList()); + .stream() + .map( + (entry) -> Pair.of( + entry.getValue() + .getStacks() + .toArray(new ItemStack[0]), + entry.getKey())) + .collect(Collectors.toList()); } protected void setItemOutputs(String inventory, ItemStack... itemOutputs) { @@ -1219,7 +1212,7 @@ public abstract class MultiBlockController> ex int index = 0; while (fluid != null && fluid.amount > 0 && index < tanks.size()) { int filled = tanks.get(index++) - .fill(fluid, true); + .fill(fluid, true); fluid.amount -= filled; } } @@ -1245,15 +1238,13 @@ public abstract class MultiBlockController> ex boolean result = false; if (isSeparateInputs()) { for (Pair inventory : getItemInputsForEachInventory()) { - IItemHandlerModifiable outputInventory = multiBlockOutputInventory.getOrDefault( - inventory.getLeft(), - null); + IItemHandlerModifiable outputInventory = multiBlockOutputInventory + .getOrDefault(inventory.getLeft(), null); result = logic.setInputItems(inventory.getLeft()) - .setCurrentOutputItems( - outputInventory != null ? outputInventory.getStacks() - .toArray(new ItemStack[0]) - : null) - .process(); + .setCurrentOutputItems( + outputInventory != null ? outputInventory.getStacks() + .toArray(new ItemStack[0]) : null) + .process(); if (result) { inventoryName = inventory.getRight(); break; @@ -1262,8 +1253,8 @@ public abstract class MultiBlockController> ex } } else { result = logic.setInputItems(getAllItemInputs()) - .setCurrentOutputItems(getAllOutputItems()) - .process(); + .setCurrentOutputItems(getAllOutputItems()) + .process(); } setDuration(logic.getDuration()); setEut(logic.getEut()); @@ -1315,7 +1306,7 @@ public abstract class MultiBlockController> ex protected Widget getGregTechLogo() { return new DrawableWidget().setDrawable(getGUITextureSet().getGregTechLogo()) - .setSize(17, 17); + .setSize(17, 17); } @Override @@ -1329,98 +1320,98 @@ public abstract class MultiBlockController> ex int page = 0; TabContainer tabs = new TabContainer().setButtonSize(20, 24); tabs.addTabButton( - new TabButton(page++) - .setBackground( - false, - ModularUITextures.VANILLA_TAB_TOP_START.getSubArea(0, 0, 1f, 0.5f), - new ItemDrawable(getStackForm(1)).withFixedSize(16, 16) - .withOffset(2, 4)) - .setBackground( - true, - ModularUITextures.VANILLA_TAB_TOP_START.getSubArea(0, 0.5f, 1f, 1f), - new ItemDrawable(getStackForm(1)).withFixedSize(16, 16) - .withOffset(2, 4)) - .addTooltip(getLocalName()) - .setPos(20 * (page - 1), -20)) + new TabButton(page++) + .setBackground( + false, + ModularUITextures.VANILLA_TAB_TOP_START.getSubArea(0, 0, 1f, 0.5f), + new ItemDrawable(getStackForm(1)).withFixedSize(16, 16) + .withOffset(2, 4)) + .setBackground( + true, + ModularUITextures.VANILLA_TAB_TOP_START.getSubArea(0, 0.5f, 1f, 1f), + new ItemDrawable(getStackForm(1)).withFixedSize(16, 16) + .withOffset(2, 4)) + .addTooltip(getLocalName()) + .setPos(20 * (page - 1), -20)) .addPage(createMainPage().setSize(getGUIWidth(), getGUIHeight())); if (hasItemInput()) { tabs.addTabButton( - new TabButton(page++) - .setBackground( - false, - ModularUITextures.VANILLA_TAB_TOP_START.getSubArea(0, 0, 1f, 0.5f), - GT_UITextures.PICTURE_ITEM_IN.withFixedSize(16, 16) - .withOffset(2, 4)) - .setBackground( - true, - ModularUITextures.VANILLA_TAB_TOP_START.getSubArea(0, 0.5f, 1f, 1f), - GT_UITextures.PICTURE_ITEM_IN.withFixedSize(16, 16) - .withOffset(2, 4)) - .setPos(20 * (page - 1), -20)) + new TabButton(page++) + .setBackground( + false, + ModularUITextures.VANILLA_TAB_TOP_START.getSubArea(0, 0, 1f, 0.5f), + GT_UITextures.PICTURE_ITEM_IN.withFixedSize(16, 16) + .withOffset(2, 4)) + .setBackground( + true, + ModularUITextures.VANILLA_TAB_TOP_START.getSubArea(0, 0.5f, 1f, 1f), + GT_UITextures.PICTURE_ITEM_IN.withFixedSize(16, 16) + .withOffset(2, 4)) + .setPos(20 * (page - 1), -20)) .addPage( - new MultiChildWidget().addChild(getItemInventoryInputGUI()) - .addChild(getGregTechLogo().setPos(147, 86)) - .setSize(getGUIWidth(), getGUIHeight())); + new MultiChildWidget().addChild(getItemInventoryInputGUI()) + .addChild(getGregTechLogo().setPos(147, 86)) + .setSize(getGUIWidth(), getGUIHeight())); } if (hasItemOutput()) { tabs.addTabButton( - new TabButton(page++) - .setBackground( - false, - ModularUITextures.VANILLA_TAB_TOP_START.getSubArea(0, 0, 1f, 0.5f), - GT_UITextures.PICTURE_ITEM_OUT.withFixedSize(16, 16) - .withOffset(2, 4)) - .setBackground( - true, - ModularUITextures.VANILLA_TAB_TOP_START.getSubArea(0, 0.5f, 1f, 1f), - GT_UITextures.PICTURE_ITEM_OUT.withFixedSize(16, 16) - .withOffset(2, 4)) - .setPos(20 * (page - 1), -20)) + new TabButton(page++) + .setBackground( + false, + ModularUITextures.VANILLA_TAB_TOP_START.getSubArea(0, 0, 1f, 0.5f), + GT_UITextures.PICTURE_ITEM_OUT.withFixedSize(16, 16) + .withOffset(2, 4)) + .setBackground( + true, + ModularUITextures.VANILLA_TAB_TOP_START.getSubArea(0, 0.5f, 1f, 1f), + GT_UITextures.PICTURE_ITEM_OUT.withFixedSize(16, 16) + .withOffset(2, 4)) + .setPos(20 * (page - 1), -20)) .addPage( - new MultiChildWidget().addChild(getItemInventoryOutputGUI()) - .addChild(getGregTechLogo().setPos(147, 86)) - .setSize(getGUIWidth(), getGUIHeight())); + new MultiChildWidget().addChild(getItemInventoryOutputGUI()) + .addChild(getGregTechLogo().setPos(147, 86)) + .setSize(getGUIWidth(), getGUIHeight())); } if (hasFluidInput()) { tabs.addTabButton( - new TabButton(page++) - .setBackground( - false, - ModularUITextures.VANILLA_TAB_TOP_START.getSubArea(0, 0, 1f, 0.5f), - GT_UITextures.PICTURE_FLUID_IN.withFixedSize(16, 16) - .withOffset(2, 4)) - .setBackground( - true, - ModularUITextures.VANILLA_TAB_TOP_START.getSubArea(0, 0.5f, 1f, 1f), - GT_UITextures.PICTURE_FLUID_IN.withFixedSize(16, 16) - .withOffset(2, 4)) - .setPos(20 * (page - 1), -20)) + new TabButton(page++) + .setBackground( + false, + ModularUITextures.VANILLA_TAB_TOP_START.getSubArea(0, 0, 1f, 0.5f), + GT_UITextures.PICTURE_FLUID_IN.withFixedSize(16, 16) + .withOffset(2, 4)) + .setBackground( + true, + ModularUITextures.VANILLA_TAB_TOP_START.getSubArea(0, 0.5f, 1f, 1f), + GT_UITextures.PICTURE_FLUID_IN.withFixedSize(16, 16) + .withOffset(2, 4)) + .setPos(20 * (page - 1), -20)) .addPage( - new MultiChildWidget().addChild(getFluidInventoryInputGUI()) - .addChild(getGregTechLogo().setPos(147, 86)) - .setSize(getGUIWidth(), getGUIHeight())); + new MultiChildWidget().addChild(getFluidInventoryInputGUI()) + .addChild(getGregTechLogo().setPos(147, 86)) + .setSize(getGUIWidth(), getGUIHeight())); } if (hasFluidOutput()) { tabs.addTabButton( - new TabButton(page++) - .setBackground( - false, - ModularUITextures.VANILLA_TAB_TOP_START.getSubArea(0, 0, 1f, 0.5f), - GT_UITextures.PICTURE_FLUID_OUT.withFixedSize(16, 16) - .withOffset(2, 4)) - .setBackground( - true, - ModularUITextures.VANILLA_TAB_TOP_START.getSubArea(0, 0.5f, 1f, 1f), - GT_UITextures.PICTURE_FLUID_OUT.withFixedSize(16, 16) - .withOffset(2, 4)) - .setPos(20 * (page - 1), -20)) + new TabButton(page++) + .setBackground( + false, + ModularUITextures.VANILLA_TAB_TOP_START.getSubArea(0, 0, 1f, 0.5f), + GT_UITextures.PICTURE_FLUID_OUT.withFixedSize(16, 16) + .withOffset(2, 4)) + .setBackground( + true, + ModularUITextures.VANILLA_TAB_TOP_START.getSubArea(0, 0.5f, 1f, 1f), + GT_UITextures.PICTURE_FLUID_OUT.withFixedSize(16, 16) + .withOffset(2, 4)) + .setPos(20 * (page - 1), -20)) .addPage( - new MultiChildWidget().addChild(getFluidInventoryOutputGUI()) - .addChild(getGregTechLogo().setPos(147, 86)) - .setSize(getGUIWidth(), getGUIHeight())); + new MultiChildWidget().addChild(getFluidInventoryOutputGUI()) + .addChild(getGregTechLogo().setPos(147, 86)) + .setSize(getGUIWidth(), getGUIHeight())); } builder.widget(tabs); } @@ -1428,9 +1419,9 @@ public abstract class MultiBlockController> ex protected MultiChildWidget createMainPage() { MultiChildWidget page = new MultiChildWidget(); page.addChild( - new DrawableWidget().setDrawable(GT_UITextures.PICTURE_SCREEN_BLACK) - .setPos(7, 4) - .setSize(160, 75)) + new DrawableWidget().setDrawable(GT_UITextures.PICTURE_SCREEN_BLACK) + .setPos(7, 4) + .setSize(160, 75)) .addChild(createButtons()); return page; } @@ -1438,20 +1429,20 @@ public abstract class MultiBlockController> ex protected MultiChildWidget createButtons() { MultiChildWidget buttons = new MultiChildWidget(); buttons.setSize(16, 167) - .setPos(7, 86); + .setPos(7, 86); buttons.addChild(createPowerSwitchButton()) - .addChild(new FakeSyncWidget.BooleanSyncer(this::isAllowedToWork, val -> { - if (val) enableWorking(); - else disableWorking(); - })) - .addChild(createVoidExcessButton()) - .addChild(new FakeSyncWidget.BooleanSyncer(() -> voidExcess, val -> voidExcess = val)) - .addChild(createInputSeparationButton()) - .addChild(new FakeSyncWidget.BooleanSyncer(() -> separateInputs, val -> separateInputs = val)) - .addChild(createBatchModeButton()) - .addChild(new FakeSyncWidget.BooleanSyncer(() -> batchMode, val -> batchMode = val)) - .addChild(createLockToSingleRecipeButton()) - .addChild(new FakeSyncWidget.BooleanSyncer(() -> recipeLock, val -> recipeLock = val)); + .addChild(new FakeSyncWidget.BooleanSyncer(this::isAllowedToWork, val -> { + if (val) enableWorking(); + else disableWorking(); + })) + .addChild(createVoidExcessButton()) + .addChild(new FakeSyncWidget.BooleanSyncer(() -> voidExcess, val -> voidExcess = val)) + .addChild(createInputSeparationButton()) + .addChild(new FakeSyncWidget.BooleanSyncer(() -> separateInputs, val -> separateInputs = val)) + .addChild(createBatchModeButton()) + .addChild(new FakeSyncWidget.BooleanSyncer(() -> batchMode, val -> batchMode = val)) + .addChild(createLockToSingleRecipeButton()) + .addChild(new FakeSyncWidget.BooleanSyncer(() -> recipeLock, val -> recipeLock = val)); return buttons; } @@ -1463,12 +1454,12 @@ public abstract class MultiBlockController> ex final int columnsToMake = Math.min(Math.min(inv.getSlots(), 128) - rows * 4, 4); for (int column = 0; column < columnsToMake; column++) { scrollable.widget( - new SlotWidget(inv, rows * 4 + column).setPos(column * 18, rows * 18) - .setSize(18, 18)); + new SlotWidget(inv, rows * 4 + column).setPos(column * 18, rows * 18) + .setSize(18, 18)); } } return scrollable.setSize(18 * 4 + 4, 18 * 5) - .setPos(52, 7); + .setPos(52, 7); } protected Widget getItemInventoryOutputGUI() { @@ -1478,12 +1469,12 @@ public abstract class MultiBlockController> ex final int columnsToMake = Math.min(Math.min(inv.getSlots(), 128) - rows * 4, 4); for (int column = 0; column < columnsToMake; column++) { scrollable.widget( - new SlotWidget(inv, rows * 4 + column).setPos(column * 18, rows * 18) - .setSize(18, 18)); + new SlotWidget(inv, rows * 4 + column).setPos(column * 18, rows * 18) + .setSize(18, 18)); } } return scrollable.setSize(18 * 4 + 4, 18 * 5) - .setPos(52, 7); + .setPos(52, 7); } protected IItemHandlerModifiable getInventoriesForInput() { @@ -1502,12 +1493,12 @@ public abstract class MultiBlockController> ex for (int column = 0; column < columnsToMake; column++) { final FluidSlotWidget fluidSlot = new FluidSlotWidget(tanks[rows * 4 + column]); scrollable.widget( - fluidSlot.setPos(column * 18, rows * 18) - .setSize(18, 18)); + fluidSlot.setPos(column * 18, rows * 18) + .setSize(18, 18)); } } return scrollable.setSize(18 * 4 + 4, 18 * 4) - .setPos(52, 7); + .setPos(52, 7); } protected Widget getFluidInventoryOutputGUI() { @@ -1519,12 +1510,12 @@ public abstract class MultiBlockController> ex final FluidSlotWidget fluidSlot = new FluidSlotWidget(tanks[rows * 4 + column]); fluidSlot.setInteraction(true, false); scrollable.widget( - fluidSlot.setPos(column * 18, rows * 18) - .setSize(18, 18)); + fluidSlot.setPos(column * 18, rows * 18) + .setSize(18, 18)); } } return scrollable.setSize(18 * 4 + 4, 18 * 5) - .setPos(52, 7); + .setPos(52, 7); } protected ButtonWidget createPowerSwitchButton() { @@ -1535,7 +1526,7 @@ public abstract class MultiBlockController> ex enableWorking(); } }) - .setPlayClickSound(true); + .setPlayClickSound(true); button.setBackground(() -> { List ret = new ArrayList<>(); ret.add(GT_UITextures.BUTTON_STANDARD); @@ -1546,10 +1537,10 @@ public abstract class MultiBlockController> ex } return ret.toArray(new IDrawable[0]); }) - .setPos(144, 0) - .setSize(16, 16); + .setPos(144, 0) + .setSize(16, 16); button.addTooltip(StatCollector.translateToLocal("GT5U.gui.button.power_switch")) - .setTooltipShowUpDelay(TOOLTIP_DELAY); + .setTooltipShowUpDelay(TOOLTIP_DELAY); return button; } @@ -1559,7 +1550,7 @@ public abstract class MultiBlockController> ex voidExcess = !voidExcess; } }) - .setPlayClickSound(true); + .setPlayClickSound(true); button.setBackground(() -> { List ret = new ArrayList<>(); ret.add(GT_UITextures.BUTTON_STANDARD); @@ -1578,10 +1569,10 @@ public abstract class MultiBlockController> ex } return ret.toArray(new IDrawable[0]); }) - .setPos(54, 0) - .setSize(16, 16); + .setPos(54, 0) + .setSize(16, 16); button.addTooltip(StatCollector.translateToLocal("GT5U.gui.button.void_excess")) - .setTooltipShowUpDelay(TOOLTIP_DELAY); + .setTooltipShowUpDelay(TOOLTIP_DELAY); return button; } @@ -1599,31 +1590,29 @@ public abstract class MultiBlockController> ex separateInputs = !separateInputs; } }) - .setPlayClickSound(true) - .setBackground(() -> { - List ret = new ArrayList<>(); - ret.add(GT_UITextures.BUTTON_STANDARD); - if (isInputSeparationButtonEnabled()) { - if (isInputSeparationEnabled()) { - ret.add(GT_UITextures.OVERLAY_BUTTON_INPUT_SEPARATION_ON); - } else { - ret.add(GT_UITextures.OVERLAY_BUTTON_INPUT_SEPARATION_OFF); - } - } else { - if (isInputSeparationEnabled()) { - ret.add( - GT_UITextures.OVERLAY_BUTTON_INPUT_SEPARATION_ON_DISABLED); - } else { - ret.add( - GT_UITextures.OVERLAY_BUTTON_INPUT_SEPARATION_OFF_DISABLED); - } - } - return ret.toArray(new IDrawable[0]); - }) - .setPos(36, 0) - .setSize(16, 16); + .setPlayClickSound(true) + .setBackground(() -> { + List ret = new ArrayList<>(); + ret.add(GT_UITextures.BUTTON_STANDARD); + if (isInputSeparationButtonEnabled()) { + if (isInputSeparationEnabled()) { + ret.add(GT_UITextures.OVERLAY_BUTTON_INPUT_SEPARATION_ON); + } else { + ret.add(GT_UITextures.OVERLAY_BUTTON_INPUT_SEPARATION_OFF); + } + } else { + if (isInputSeparationEnabled()) { + ret.add(GT_UITextures.OVERLAY_BUTTON_INPUT_SEPARATION_ON_DISABLED); + } else { + ret.add(GT_UITextures.OVERLAY_BUTTON_INPUT_SEPARATION_OFF_DISABLED); + } + } + return ret.toArray(new IDrawable[0]); + }) + .setPos(36, 0) + .setSize(16, 16); button.addTooltip(StatCollector.translateToLocal("GT5U.gui.button.input_separation")) - .setTooltipShowUpDelay(TOOLTIP_DELAY); + .setTooltipShowUpDelay(TOOLTIP_DELAY); return (ButtonWidget) button; } @@ -1641,29 +1630,29 @@ public abstract class MultiBlockController> ex batchMode = !batchMode; } }) - .setPlayClickSound(true) - .setBackground(() -> { - List ret = new ArrayList<>(); - ret.add(GT_UITextures.BUTTON_STANDARD); - if (isBatchModeButtonEnabled()) { - if (isBatchModeEnabled()) { - ret.add(GT_UITextures.OVERLAY_BUTTON_BATCH_MODE_ON); - } else { - ret.add(GT_UITextures.OVERLAY_BUTTON_BATCH_MODE_OFF); - } - } else { - if (isBatchModeEnabled()) { - ret.add(GT_UITextures.OVERLAY_BUTTON_BATCH_MODE_ON_DISABLED); - } else { - ret.add(GT_UITextures.OVERLAY_BUTTON_BATCH_MODE_OFF_DISABLED); - } - } - return ret.toArray(new IDrawable[0]); - }) - .setPos(18, 0) - .setSize(16, 16); + .setPlayClickSound(true) + .setBackground(() -> { + List ret = new ArrayList<>(); + ret.add(GT_UITextures.BUTTON_STANDARD); + if (isBatchModeButtonEnabled()) { + if (isBatchModeEnabled()) { + ret.add(GT_UITextures.OVERLAY_BUTTON_BATCH_MODE_ON); + } else { + ret.add(GT_UITextures.OVERLAY_BUTTON_BATCH_MODE_OFF); + } + } else { + if (isBatchModeEnabled()) { + ret.add(GT_UITextures.OVERLAY_BUTTON_BATCH_MODE_ON_DISABLED); + } else { + ret.add(GT_UITextures.OVERLAY_BUTTON_BATCH_MODE_OFF_DISABLED); + } + } + return ret.toArray(new IDrawable[0]); + }) + .setPos(18, 0) + .setSize(16, 16); button.addTooltip(StatCollector.translateToLocal("GT5U.gui.button.batch_mode")) - .setTooltipShowUpDelay(TOOLTIP_DELAY); + .setTooltipShowUpDelay(TOOLTIP_DELAY); return (ButtonWidget) button; } @@ -1681,29 +1670,29 @@ public abstract class MultiBlockController> ex recipeLock = !recipeLock; } }) - .setPlayClickSound(true) - .setBackground(() -> { - List ret = new ArrayList<>(); - ret.add(GT_UITextures.BUTTON_STANDARD); - if (supportsSingleRecipeLocking()) { - if (isRecipeLockingEnabled()) { - ret.add(GT_UITextures.OVERLAY_BUTTON_RECIPE_LOCKED); - } else { - ret.add(GT_UITextures.OVERLAY_BUTTON_RECIPE_UNLOCKED); - } - } else { - if (isRecipeLockingEnabled()) { - ret.add(GT_UITextures.OVERLAY_BUTTON_RECIPE_LOCKED_DISABLED); - } else { - ret.add(GT_UITextures.OVERLAY_BUTTON_RECIPE_UNLOCKED_DISABLED); - } - } - return ret.toArray(new IDrawable[0]); - }) - .setPos(0, 0) - .setSize(16, 16); + .setPlayClickSound(true) + .setBackground(() -> { + List ret = new ArrayList<>(); + ret.add(GT_UITextures.BUTTON_STANDARD); + if (supportsSingleRecipeLocking()) { + if (isRecipeLockingEnabled()) { + ret.add(GT_UITextures.OVERLAY_BUTTON_RECIPE_LOCKED); + } else { + ret.add(GT_UITextures.OVERLAY_BUTTON_RECIPE_UNLOCKED); + } + } else { + if (isRecipeLockingEnabled()) { + ret.add(GT_UITextures.OVERLAY_BUTTON_RECIPE_LOCKED_DISABLED); + } else { + ret.add(GT_UITextures.OVERLAY_BUTTON_RECIPE_UNLOCKED_DISABLED); + } + } + return ret.toArray(new IDrawable[0]); + }) + .setPos(0, 0) + .setSize(16, 16); button.addTooltip(StatCollector.translateToLocal("GT5U.gui.button.lock_recipe")) - .setTooltipShowUpDelay(TOOLTIP_DELAY); + .setTooltipShowUpDelay(TOOLTIP_DELAY); return (ButtonWidget) button; } diff --git a/src/main/java/gregtech/api/multitileentity/multiblock/base/MultiBlockPart.java b/src/main/java/gregtech/api/multitileentity/multiblock/base/MultiBlockPart.java index 953fc42f56..936145daa8 100644 --- a/src/main/java/gregtech/api/multitileentity/multiblock/base/MultiBlockPart.java +++ b/src/main/java/gregtech/api/multitileentity/multiblock/base/MultiBlockPart.java @@ -64,13 +64,13 @@ import gregtech.api.util.GT_Utility; import gregtech.common.covers.CoverInfo; public abstract class MultiBlockPart extends NonTickableMultiTileEntity - implements IMultiBlockPart, IMTE_BreakBlock, IMTE_HasModes, PowerLogicHost { + implements IMultiBlockPart, IMTE_BreakBlock, IMTE_HasModes, PowerLogicHost { public static final int NOTHING = 0, ENERGY_IN = B[0], ENERGY_OUT = B[1], FLUID_IN = B[2], FLUID_OUT = B[3], - ITEM_IN = B[4], ITEM_OUT = B[5]; + ITEM_IN = B[4], ITEM_OUT = B[5]; protected final List BASIC_MODES = new ArrayList<>( - Arrays.asList(NOTHING, ENERGY_IN, ENERGY_OUT, FLUID_IN, FLUID_OUT, ITEM_IN, ITEM_OUT)); + Arrays.asList(NOTHING, ENERGY_IN, ENERGY_OUT, FLUID_IN, FLUID_OUT, ITEM_IN, ITEM_OUT)); protected ChunkCoordinates mTargetPos = null; protected IMultiBlockController target = null; @@ -121,7 +121,7 @@ public abstract class MultiBlockPart extends NonTickableMultiTileEntity @Override public void getWailaBody(ItemStack itemStack, List currenttip, IWailaDataAccessor accessor, - IWailaConfigHandler config) { + IWailaConfigHandler config) { super.getWailaBody(itemStack, currenttip, accessor, config); currenttip.add(String.format("Mode: %s", getModeName(mMode))); } @@ -192,9 +192,9 @@ public abstract class MultiBlockPart extends NonTickableMultiTileEntity if (aNBT.hasKey(NBT.MODE)) mMode = aNBT.getByte(NBT.MODE); if (aNBT.hasKey(NBT.TARGET)) { mTargetPos = new ChunkCoordinates( - aNBT.getInteger(NBT.TARGET_X), - aNBT.getShort(NBT.TARGET_Y), - aNBT.getInteger(NBT.TARGET_Z)); + aNBT.getInteger(NBT.TARGET_X), + aNBT.getShort(NBT.TARGET_Y), + aNBT.getInteger(NBT.TARGET_Z)); } if (aNBT.hasKey(NBT.LOCKED_INVENTORY)) { mLockedInventory = aNBT.getString(NBT.LOCKED_INVENTORY); @@ -322,22 +322,19 @@ public abstract class MultiBlockPart extends NonTickableMultiTileEntity // Loading the registry final String textureName = aNBT.getString(NBT.TEXTURE); textures = new IIconContainer[] { - new Textures.BlockIcons.CustomIcon("multitileentity/multiblockparts/" + textureName + "/bottom"), - new Textures.BlockIcons.CustomIcon("multitileentity/multiblockparts/" + textureName + "/top"), - new Textures.BlockIcons.CustomIcon("multitileentity/multiblockparts/" + textureName + "/side"), - new Textures.BlockIcons.CustomIcon( - "multitileentity/multiblockparts/" + textureName + "/overlay/bottom"), - new Textures.BlockIcons.CustomIcon("multitileentity/multiblockparts/" + textureName + "/overlay/top"), - new Textures.BlockIcons.CustomIcon( - "multitileentity/multiblockparts/" + textureName + "/overlay/side") }; + new Textures.BlockIcons.CustomIcon("multitileentity/multiblockparts/" + textureName + "/bottom"), + new Textures.BlockIcons.CustomIcon("multitileentity/multiblockparts/" + textureName + "/top"), + new Textures.BlockIcons.CustomIcon("multitileentity/multiblockparts/" + textureName + "/side"), + new Textures.BlockIcons.CustomIcon("multitileentity/multiblockparts/" + textureName + "/overlay/bottom"), + new Textures.BlockIcons.CustomIcon("multitileentity/multiblockparts/" + textureName + "/overlay/top"), + new Textures.BlockIcons.CustomIcon("multitileentity/multiblockparts/" + textureName + "/overlay/side") }; } @Override public void copyTextures() { // Loading an instance - final TileEntity tCanonicalTileEntity = MultiTileEntityRegistry.getCanonicalTileEntity( - getMultiTileEntityRegistryID(), - getMultiTileEntityID()); + final TileEntity tCanonicalTileEntity = MultiTileEntityRegistry + .getCanonicalTileEntity(getMultiTileEntityRegistryID(), getMultiTileEntityID()); if (tCanonicalTileEntity instanceof MultiBlockPart) textures = ((MultiBlockPart) tCanonicalTileEntity).textures; } @@ -348,13 +345,13 @@ public abstract class MultiBlockPart extends NonTickableMultiTileEntity final ITexture baseTexture = TextureFactory.of(super.getTexture(aBlock, aSide, isActive, aRenderPass)); if (mMode != 0 && aSide == facing) { if (mMode == getModeOrdinal(ITEM_IN)) return new ITexture[] { baseTexture, - TextureFactory.of(OVERLAY_PIPE_IN), TextureFactory.of(ITEM_IN_SIGN) }; + TextureFactory.of(OVERLAY_PIPE_IN), TextureFactory.of(ITEM_IN_SIGN) }; if (mMode == getModeOrdinal(ITEM_OUT)) return new ITexture[] { baseTexture, - TextureFactory.of(OVERLAY_PIPE_OUT), TextureFactory.of(ITEM_OUT_SIGN) }; + TextureFactory.of(OVERLAY_PIPE_OUT), TextureFactory.of(ITEM_OUT_SIGN) }; if (mMode == getModeOrdinal(FLUID_IN)) return new ITexture[] { baseTexture, - TextureFactory.of(OVERLAY_PIPE_IN), TextureFactory.of(FLUID_IN_SIGN) }; + TextureFactory.of(OVERLAY_PIPE_IN), TextureFactory.of(FLUID_IN_SIGN) }; if (mMode == getModeOrdinal(FLUID_OUT)) return new ITexture[] { baseTexture, - TextureFactory.of(OVERLAY_PIPE_OUT), TextureFactory.of(FLUID_OUT_SIGN) }; + TextureFactory.of(OVERLAY_PIPE_OUT), TextureFactory.of(FLUID_OUT_SIGN) }; if (mMode == getModeOrdinal(ENERGY_IN)) return new ITexture[] { baseTexture, TextureFactory.of(OVERLAY_ENERGY_IN_MULTI) }; if (mMode == getModeOrdinal(ENERGY_OUT)) @@ -399,7 +396,7 @@ public abstract class MultiBlockPart extends NonTickableMultiTileEntity @Override public boolean onMalletRightClick(EntityPlayer aPlayer, ItemStack tCurrentItem, byte wrenchSide, float aX, float aY, - float aZ) { + float aZ) { if (mAllowedModes == NOTHING) return true; mMode = getNextAllowedMode(BASIC_MODES); @@ -434,7 +431,7 @@ public abstract class MultiBlockPart extends NonTickableMultiTileEntity if (!modeSelected(FLUID_IN)) return 0; final byte aSide = (byte) aDirection.ordinal(); if (aDirection != ForgeDirection.UNKNOWN - && (aSide != facing || !coverLetsFluidIn(aSide, aFluidStack == null ? null : aFluidStack.getFluid()))) + && (aSide != facing || !coverLetsFluidIn(aSide, aFluidStack == null ? null : aFluidStack.getFluid()))) return 0; final IMultiBlockController controller = getTarget(true); return controller == null ? 0 : controller.fill(this, aDirection, aFluidStack, aDoFill); @@ -445,7 +442,7 @@ public abstract class MultiBlockPart extends NonTickableMultiTileEntity if (!modeSelected(FLUID_OUT)) return null; final byte aSide = (byte) aDirection.ordinal(); if (aDirection != ForgeDirection.UNKNOWN - && (aSide != facing || !coverLetsFluidOut(aSide, aFluidStack == null ? null : aFluidStack.getFluid()))) + && (aSide != facing || !coverLetsFluidOut(aSide, aFluidStack == null ? null : aFluidStack.getFluid()))) return null; final IMultiBlockController controller = getTarget(true); return controller == null ? null : controller.drain(this, aDirection, aFluidStack, aDoDrain); @@ -459,7 +456,7 @@ public abstract class MultiBlockPart extends NonTickableMultiTileEntity if (controller == null) return null; final FluidStack aFluidStack = controller.getDrainableFluid(aSide); if (aDirection != ForgeDirection.UNKNOWN - && (aSide != facing || !coverLetsFluidOut(aSide, aFluidStack == null ? null : aFluidStack.getFluid()))) + && (aSide != facing || !coverLetsFluidOut(aSide, aFluidStack == null ? null : aFluidStack.getFluid()))) return null; return controller.drain(this, aDirection, aAmountToDrain, aDoDrain); } @@ -494,7 +491,7 @@ public abstract class MultiBlockPart extends NonTickableMultiTileEntity final CoverInfo coverInfo = getCoverInfoAtSide(aSide); if ((controller.isLiquidInput(aSide) && coverInfo.letsFluidIn(null, controller)) - || (controller.isLiquidOutput(aSide) && coverInfo.letsFluidOut(null, controller))) + || (controller.isLiquidOutput(aSide) && coverInfo.letsFluidOut(null, controller))) return controller.getTankInfo(this, aDirection); return GT_Values.emptyFluidTankInfo; @@ -560,8 +557,7 @@ public abstract class MultiBlockPart extends NonTickableMultiTileEntity @Override public boolean canInsertItem(int aSlot, ItemStack aStack, int aSide) { if (!modeSelected(ITEM_IN, ITEM_OUT) - || (facing != SIDE_UNKNOWN && (facing != aSide || !coverLetsItemsIn((byte) aSide, aSlot)))) - return false; + || (facing != SIDE_UNKNOWN && (facing != aSide || !coverLetsItemsIn((byte) aSide, aSlot)))) return false; final IMultiBlockController controller = getTarget(true); return (controller != null && controller.canInsertItem(this, aSlot, aStack, (byte) aSide)); } @@ -569,8 +565,7 @@ public abstract class MultiBlockPart extends NonTickableMultiTileEntity @Override public boolean canExtractItem(int aSlot, ItemStack aStack, int aSide) { if (!modeSelected(ITEM_IN, ITEM_OUT) - || (facing != SIDE_UNKNOWN && (facing != aSide || !coverLetsItemsOut((byte) aSide, aSlot)))) - return false; + || (facing != SIDE_UNKNOWN && (facing != aSide || !coverLetsItemsOut((byte) aSide, aSlot)))) return false; final IMultiBlockController controller = getTarget(true); return (controller != null && controller.canExtractItem(this, aSlot, aStack, (byte) aSide)); } @@ -664,33 +659,33 @@ public abstract class MultiBlockPart extends NonTickableMultiTileEntity int columnsToMake = Math.min(Math.min(inv.getSlots(), 128) - rows * 4, 4); for (int column = 0; column < columnsToMake; column++) { scrollable.widget( - new SlotWidget(inv, rows * 4 + column).setPos(column * 18, rows * 18) - .setSize(18, 18)); + new SlotWidget(inv, rows * 4 + column).setPos(column * 18, rows * 18) + .setSize(18, 18)); } } builder.widget( - scrollable.setSize(18 * 4 + 4, 18 * 4) - .setPos(52, 18)); + scrollable.setSize(18 * 4 + 4, 18 * 4) + .setPos(52, 18)); DropDownWidget dropDown = new DropDownWidget(); dropDown.addDropDownItemsSimple( - controller.getInventoryNames(this), - (buttonWidget, index, label, setSelected) -> buttonWidget.setOnClick((clickData, widget) -> { - if (getNameOfInventoryFromIndex(controller, index).equals("all")) { - mLockedInventory = GT_Values.E; - mLockedInventoryIndex = 0; - } else { - mLockedInventory = getNameOfInventoryFromIndex(controller, index); - mLockedInventoryIndex = index; - } - setSelected.run(); - }), - true); + controller.getInventoryNames(this), + (buttonWidget, index, label, setSelected) -> buttonWidget.setOnClick((clickData, widget) -> { + if (getNameOfInventoryFromIndex(controller, index).equals("all")) { + mLockedInventory = GT_Values.E; + mLockedInventoryIndex = 0; + } else { + mLockedInventory = getNameOfInventoryFromIndex(controller, index); + mLockedInventoryIndex = index; + } + setSelected.run(); + }), + true); builder.widget( - dropDown.setSelected(mLockedInventoryIndex) - .setExpandedMaxHeight(60) - .setDirection(DropDownWidget.Direction.DOWN) - .setPos(53, 5) - .setSize(70, 11)); + dropDown.setSelected(mLockedInventoryIndex) + .setExpandedMaxHeight(60) + .setDirection(DropDownWidget.Direction.DOWN) + .setPos(53, 5) + .setSize(70, 11)); } protected String getNameOfInventoryFromIndex(final IMultiBlockController controller, int index) { @@ -716,13 +711,13 @@ public abstract class MultiBlockPart extends NonTickableMultiTileEntity fluidSlot.setInteraction(true, false); } scrollable.widget( - fluidSlot.setPos(column * 18, rows * 18) - .setSize(18, 18)); + fluidSlot.setPos(column * 18, rows * 18) + .setSize(18, 18)); } } builder.widget( - scrollable.setSize(18 * 4 + 4, 18 * 4) - .setPos(52, 7)); + scrollable.setSize(18 * 4 + 4, 18 * 4) + .setPos(52, 7)); } @Override @@ -756,9 +751,9 @@ public abstract class MultiBlockPart extends NonTickableMultiTileEntity public void addGregTechLogo(Builder builder) { if (modeSelected(ITEM_IN, ITEM_OUT)) { builder.widget( - new DrawableWidget().setDrawable(getGUITextureSet().getGregTechLogo()) - .setSize(17, 17) - .setPos(152, 74)); + new DrawableWidget().setDrawable(getGUITextureSet().getGregTechLogo()) + .setSize(17, 17) + .setPos(152, 74)); } else { super.addGregTechLogo(builder); } diff --git a/src/main/java/gregtech/api/multitileentity/multiblock/base/MultiBlockPowerController.java b/src/main/java/gregtech/api/multitileentity/multiblock/base/MultiBlockPowerController.java index 0834c64b75..7f202ec5a4 100644 --- a/src/main/java/gregtech/api/multitileentity/multiblock/base/MultiBlockPowerController.java +++ b/src/main/java/gregtech/api/multitileentity/multiblock/base/MultiBlockPowerController.java @@ -7,7 +7,7 @@ import gregtech.api.logic.PowerLogic; import gregtech.api.logic.interfaces.PowerLogicHost; public abstract class MultiBlockPowerController> extends MultiBlockController - implements PowerLogicHost { + implements PowerLogicHost { public MultiBlockPowerController() { super(); diff --git a/src/main/java/gregtech/api/net/GT_Packet_Block_Event.java b/src/main/java/gregtech/api/net/GT_Packet_Block_Event.java index 74876ef2bc..b0b33492f7 100644 --- a/src/main/java/gregtech/api/net/GT_Packet_Block_Event.java +++ b/src/main/java/gregtech/api/net/GT_Packet_Block_Event.java @@ -40,11 +40,11 @@ public class GT_Packet_Block_Event extends GT_Packet_New { @Override public GT_Packet_New decode(ByteArrayDataInput aData) { return new GT_Packet_Block_Event( - aData.readInt(), - aData.readShort(), - aData.readInt(), - aData.readByte(), - aData.readByte()); + aData.readInt(), + aData.readShort(), + aData.readInt(), + aData.readByte(), + aData.readByte()); } @Override diff --git a/src/main/java/gregtech/api/net/GT_Packet_ClientPreference.java b/src/main/java/gregtech/api/net/GT_Packet_ClientPreference.java index 7322339167..6108802862 100644 --- a/src/main/java/gregtech/api/net/GT_Packet_ClientPreference.java +++ b/src/main/java/gregtech/api/net/GT_Packet_ClientPreference.java @@ -52,6 +52,6 @@ public class GT_Packet_ClientPreference extends GT_Packet_New { @Override public GT_Packet_New decode(ByteArrayDataInput aData) { return new GT_Packet_ClientPreference( - new GT_ClientPreference(aData.readBoolean(), aData.readBoolean(), aData.readBoolean())); + new GT_ClientPreference(aData.readBoolean(), aData.readBoolean(), aData.readBoolean())); } } diff --git a/src/main/java/gregtech/api/net/GT_Packet_GtTileEntityGuiRequest.java b/src/main/java/gregtech/api/net/GT_Packet_GtTileEntityGuiRequest.java index bf1a7e4af7..bccb4b2b76 100644 --- a/src/main/java/gregtech/api/net/GT_Packet_GtTileEntityGuiRequest.java +++ b/src/main/java/gregtech/api/net/GT_Packet_GtTileEntityGuiRequest.java @@ -34,7 +34,7 @@ public class GT_Packet_GtTileEntityGuiRequest extends GT_Packet_New { } public GT_Packet_GtTileEntityGuiRequest(int mX, short mY, int mZ, int guiId, int dimID, int playerID, - int parentGuiId) { + int parentGuiId) { super(false); this.mX = mX; this.mY = mY; @@ -69,13 +69,13 @@ public class GT_Packet_GtTileEntityGuiRequest extends GT_Packet_New { @Override public GT_Packet_New decode(ByteArrayDataInput aData) { return new GT_Packet_GtTileEntityGuiRequest( - aData.readInt(), - aData.readShort(), - aData.readInt(), - aData.readInt(), - aData.readInt(), - aData.readInt(), - aData.readInt()); + aData.readInt(), + aData.readShort(), + aData.readInt(), + aData.readInt(), + aData.readInt(), + aData.readInt(), + aData.readInt()); } @Override @@ -92,22 +92,22 @@ public class GT_Packet_GtTileEntityGuiRequest extends GT_Packet_New { final EntityPlayerMP player = (EntityPlayerMP) world.getEntityByID(playerId); final CoverableTileEntity coverableTile = (baseTile instanceof CoverableTileEntity) - ? (CoverableTileEntity) baseTile - : null; + ? (CoverableTileEntity) baseTile + : null; // If the requested Gui ID corresponds to a cover, send the cover data to the client so they can open it. if (GT_Proxy.GUI_ID_COVER_SIDE_BASE <= guiId && guiId < GT_Proxy.GUI_ID_COVER_SIDE_BASE + 6 - && coverableTile != null) { + && coverableTile != null) { final byte coverSide = (byte) (guiId - GT_Proxy.GUI_ID_COVER_SIDE_BASE); final GT_Packet_TileEntityCoverGUI packet = new GT_Packet_TileEntityCoverGUI( - this.mX, - this.mY, - this.mZ, - coverSide, - coverableTile.getCoverIDAtSide(coverSide), - coverableTile.getComplexCoverDataAtSide(coverSide), - this.dimId, - this.playerId, - parentGuiId); + this.mX, + this.mY, + this.mZ, + coverSide, + coverableTile.getCoverIDAtSide(coverSide), + coverableTile.getComplexCoverDataAtSide(coverSide), + this.dimId, + this.playerId, + parentGuiId); GT_Values.NW.sendToPlayer(packet, player); } else if (guiId == 0) { if (baseTile.useModularUI()) { diff --git a/src/main/java/gregtech/api/net/GT_Packet_MultiTileEntity.java b/src/main/java/gregtech/api/net/GT_Packet_MultiTileEntity.java index b31355adad..6c67dbe6b7 100644 --- a/src/main/java/gregtech/api/net/GT_Packet_MultiTileEntity.java +++ b/src/main/java/gregtech/api/net/GT_Packet_MultiTileEntity.java @@ -21,7 +21,7 @@ import io.netty.buffer.ByteBuf; public class GT_Packet_MultiTileEntity extends GT_Packet_New { public static final int COVERS = B[0], REDSTONE = B[1], MODES = B[2], CONTROLLER = B[3], INVENTORY_INDEX = B[4], - INVENTORY_NAME = B[5], BOOLEANS = B[6], SOUND = B[7]; + INVENTORY_NAME = B[5], BOOLEANS = B[6], SOUND = B[7]; private int features = 0; @@ -47,7 +47,7 @@ public class GT_Packet_MultiTileEntity extends GT_Packet_New { // For multi tiles public GT_Packet_MultiTileEntity(int aFeatures, int aX, short aY, int aZ, short aRID, short aID, byte aCommonData, - byte aColor) { + byte aColor) { super(false); features = aFeatures; @@ -179,25 +179,25 @@ public class GT_Packet_MultiTileEntity extends GT_Packet_New { final int packetFeatures = aData.readInt(); final GT_Packet_MultiTileEntity packet = new GT_Packet_MultiTileEntity( - packetFeatures, - // Coords - aData.readInt(), - aData.readShort(), - aData.readInt(), - // Registry & ID - aData.readShort(), - aData.readShort(), - // Common Data - aData.readByte(), - aData.readByte()); + packetFeatures, + // Coords + aData.readInt(), + aData.readShort(), + aData.readInt(), + // Registry & ID + aData.readShort(), + aData.readShort(), + // Common Data + aData.readByte(), + aData.readByte()); if ((packetFeatures & COVERS) == COVERS) { packet.setCoverData( - aData.readInt(), - aData.readInt(), - aData.readInt(), - aData.readInt(), - aData.readInt(), - aData.readInt()); + aData.readInt(), + aData.readInt(), + aData.readInt(), + aData.readInt(), + aData.readInt(), + aData.readInt()); } if ((packetFeatures & REDSTONE) == REDSTONE) { packet.setRedstoneData(aData.readByte()); @@ -288,11 +288,11 @@ public class GT_Packet_MultiTileEntity extends GT_Packet_New { } } catch (Exception e) { GT_Mod.GT_FML_LOGGER.error( - "Exception setting tile entity data for tile entity {} at ({}, {}, {})", - tTileEntity, - mX, - mY, - mZ); + "Exception setting tile entity data for tile entity {} at ({}, {}, {})", + tTileEntity, + mX, + mY, + mZ); } } diff --git a/src/main/java/gregtech/api/net/GT_Packet_RequestCoverData.java b/src/main/java/gregtech/api/net/GT_Packet_RequestCoverData.java index e1ac057aa4..3f919dacd4 100644 --- a/src/main/java/gregtech/api/net/GT_Packet_RequestCoverData.java +++ b/src/main/java/gregtech/api/net/GT_Packet_RequestCoverData.java @@ -81,11 +81,11 @@ public class GT_Packet_RequestCoverData extends GT_Packet_New { @Override public GT_Packet_New decode(ByteArrayDataInput aData) { return new GT_Packet_RequestCoverData( - aData.readInt(), - aData.readShort(), - aData.readInt(), - aData.readByte(), - aData.readInt()); + aData.readInt(), + aData.readShort(), + aData.readInt(), + aData.readByte(), + aData.readInt()); } @Override diff --git a/src/main/java/gregtech/api/net/GT_Packet_SendCoverData.java b/src/main/java/gregtech/api/net/GT_Packet_SendCoverData.java index 971ed66aec..b348cbb9e3 100644 --- a/src/main/java/gregtech/api/net/GT_Packet_SendCoverData.java +++ b/src/main/java/gregtech/api/net/GT_Packet_SendCoverData.java @@ -30,7 +30,7 @@ public class GT_Packet_SendCoverData extends GT_Packet_New { } public GT_Packet_SendCoverData(int mX, short mY, int mZ, byte coverSide, int coverID, - ISerializableObject coverData) { + ISerializableObject coverData) { super(false); this.mX = mX; this.mY = mY; @@ -83,14 +83,14 @@ public class GT_Packet_SendCoverData extends GT_Packet_New { public GT_Packet_New decode(ByteArrayDataInput aData) { final int coverId; return new GT_Packet_SendCoverData( - aData.readInt(), - aData.readShort(), - aData.readInt(), - aData.readByte(), - coverId = aData.readInt(), - GregTech_API.getCoverBehaviorNew(coverId) - .createDataObject() - .readFromPacket(aData, null)); + aData.readInt(), + aData.readShort(), + aData.readInt(), + aData.readByte(), + coverId = aData.readInt(), + GregTech_API.getCoverBehaviorNew(coverId) + .createDataObject() + .readFromPacket(aData, null)); } @Override diff --git a/src/main/java/gregtech/api/net/GT_Packet_SetConfigurationCircuit.java b/src/main/java/gregtech/api/net/GT_Packet_SetConfigurationCircuit.java index ac72730705..b2d9a59438 100644 --- a/src/main/java/gregtech/api/net/GT_Packet_SetConfigurationCircuit.java +++ b/src/main/java/gregtech/api/net/GT_Packet_SetConfigurationCircuit.java @@ -84,10 +84,10 @@ public class GT_Packet_SetConfigurationCircuit extends GT_Packet_New { @Override public GT_Packet_New decode(ByteArrayDataInput aData) { return new GT_Packet_SetConfigurationCircuit( - aData.readInt(), - aData.readShort(), - aData.readInt(), - ISerializableObject.readItemStackFromGreggyByteBuf(aData)); + aData.readInt(), + aData.readShort(), + aData.readInt(), + ISerializableObject.readItemStackFromGreggyByteBuf(aData)); } @Override @@ -102,9 +102,9 @@ public class GT_Packet_SetConfigurationCircuit extends GT_Packet_New { if (machine == null) return; if (!machine.allowSelectCircuit()) return; machine.getConfigurationCircuits() - .stream() - .filter(stack -> GT_Utility.areStacksEqual(stack, circuit)) - .findFirst() - .ifPresent(stack -> ((IHasInventory) tile).setInventorySlotContents(machine.getCircuitSlot(), stack)); + .stream() + .filter(stack -> GT_Utility.areStacksEqual(stack, circuit)) + .findFirst() + .ifPresent(stack -> ((IHasInventory) tile).setInventorySlotContents(machine.getCircuitSlot(), stack)); } } diff --git a/src/main/java/gregtech/api/net/GT_Packet_SetLockedFluid.java b/src/main/java/gregtech/api/net/GT_Packet_SetLockedFluid.java index 0252201ba3..04f147b208 100644 --- a/src/main/java/gregtech/api/net/GT_Packet_SetLockedFluid.java +++ b/src/main/java/gregtech/api/net/GT_Packet_SetLockedFluid.java @@ -88,13 +88,13 @@ public class GT_Packet_SetLockedFluid extends GT_Packet_New { mteToLock.lockFluid(true); mteToLock.setLockedFluidName(tFluid.getName()); GT_Utility.sendChatToPlayer( - mPlayer, - String.format( - GT_LanguageManager.addStringLocalization( - "Interaction_DESCRIPTION_Index_151.4", - "Successfully locked Fluid to %s", - false), - new FluidStack(tFluid, 1).getLocalizedName())); + mPlayer, + String.format( + GT_LanguageManager.addStringLocalization( + "Interaction_DESCRIPTION_Index_151.4", + "Successfully locked Fluid to %s", + false), + new FluidStack(tFluid, 1).getLocalizedName())); mteToLock.onFluidLockPacketReceived(tFluid.getName()); } diff --git a/src/main/java/gregtech/api/net/GT_Packet_Sound.java b/src/main/java/gregtech/api/net/GT_Packet_Sound.java index 808ddc218c..f742c39dba 100644 --- a/src/main/java/gregtech/api/net/GT_Packet_Sound.java +++ b/src/main/java/gregtech/api/net/GT_Packet_Sound.java @@ -52,12 +52,12 @@ public class GT_Packet_Sound extends GT_Packet_New { @Override public GT_Packet_New decode(ByteArrayDataInput aData) { return new GT_Packet_Sound( - aData.readUTF(), - aData.readFloat(), - aData.readFloat(), - aData.readInt(), - aData.readShort(), - aData.readInt()); + aData.readUTF(), + aData.readFloat(), + aData.readFloat(), + aData.readInt(), + aData.readShort(), + aData.readInt()); } @Override diff --git a/src/main/java/gregtech/api/net/GT_Packet_TileEntity.java b/src/main/java/gregtech/api/net/GT_Packet_TileEntity.java index 99a5c55dc6..29562e9b4d 100644 --- a/src/main/java/gregtech/api/net/GT_Packet_TileEntity.java +++ b/src/main/java/gregtech/api/net/GT_Packet_TileEntity.java @@ -23,7 +23,7 @@ public class GT_Packet_TileEntity extends GT_Packet_New { // For multi tiles public GT_Packet_TileEntity(int aX, short aY, int aZ, short aRID, short aID, int aC0, int aC1, int aC2, int aC3, - int aC4, int aC5, byte aTexture, byte aTexturePage, byte aUpdate, byte aRedstone, byte aColor) { + int aC4, int aC5, byte aTexture, byte aTexturePage, byte aUpdate, byte aRedstone, byte aColor) { super(false); mX = aX; mY = aY; @@ -45,29 +45,29 @@ public class GT_Packet_TileEntity extends GT_Packet_New { // For meta tiles public GT_Packet_TileEntity(int aX, short aY, int aZ, short aID, int aC0, int aC1, int aC2, int aC3, int aC4, - int aC5, byte aTexture, byte aTexturePage, byte aUpdate, byte aRedstone, byte aColor) { + int aC5, byte aTexture, byte aTexturePage, byte aUpdate, byte aRedstone, byte aColor) { this( - aX, - aY, - aZ, - (short) 0, - aID, - aC0, - aC1, - aC2, - aC3, - aC4, - aC5, - aTexture, - aTexturePage, - aUpdate, - aRedstone, - aColor); + aX, + aY, + aZ, + (short) 0, + aID, + aC0, + aC1, + aC2, + aC3, + aC4, + aC5, + aTexture, + aTexturePage, + aUpdate, + aRedstone, + aColor); } // For pipes public GT_Packet_TileEntity(int aX, short aY, int aZ, short aID, int aC0, int aC1, int aC2, int aC3, int aC4, - int aC5, byte aTexture, byte aUpdate, byte aRedstone, byte aColor) { + int aC5, byte aTexture, byte aUpdate, byte aRedstone, byte aColor) { this(aX, aY, aZ, (short) 0, aID, aC0, aC1, aC2, aC3, aC4, aC5, aTexture, (byte) 0, aUpdate, aRedstone, aColor); } @@ -97,26 +97,26 @@ public class GT_Packet_TileEntity extends GT_Packet_New { @Override public GT_Packet_New decode(ByteArrayDataInput aData) { return new GT_Packet_TileEntity( - // Coords - aData.readInt(), - aData.readShort(), - aData.readInt(), - // Registry & ID - aData.readShort(), - aData.readShort(), - // Covers - aData.readInt(), - aData.readInt(), - aData.readInt(), - aData.readInt(), - aData.readInt(), - aData.readInt(), - // Everything else - aData.readByte(), - aData.readByte(), - aData.readByte(), - aData.readByte(), - aData.readByte()); + // Coords + aData.readInt(), + aData.readShort(), + aData.readInt(), + // Registry & ID + aData.readShort(), + aData.readShort(), + // Covers + aData.readInt(), + aData.readInt(), + aData.readInt(), + aData.readInt(), + aData.readInt(), + aData.readInt(), + // Everything else + aData.readByte(), + aData.readByte(), + aData.readByte(), + aData.readByte(), + aData.readByte()); } @Override @@ -126,38 +126,27 @@ public class GT_Packet_TileEntity extends GT_Packet_New { try { final Block tBlock; if (tTileEntity instanceof BaseMetaTileEntity) ((BaseMetaTileEntity) tTileEntity).receiveMetaTileEntityData( - mID, - mC0, - mC1, - mC2, - mC3, - mC4, - mC5, - mTexture, - mTexturePage, - mUpdate, - mRedstone, - mColor); - else if (tTileEntity instanceof BaseMetaPipeEntity) - ((BaseMetaPipeEntity) tTileEntity).receiveMetaTileEntityData( - mID, - mC0, - mC1, - mC2, - mC3, - mC4, - mC5, - mTexture, - mUpdate, - mRedstone, - mColor); + mID, + mC0, + mC1, + mC2, + mC3, + mC4, + mC5, + mTexture, + mTexturePage, + mUpdate, + mRedstone, + mColor); + else if (tTileEntity instanceof BaseMetaPipeEntity) ((BaseMetaPipeEntity) tTileEntity) + .receiveMetaTileEntityData(mID, mC0, mC1, mC2, mC3, mC4, mC5, mTexture, mUpdate, mRedstone, mColor); } catch (Exception e) { GT_Mod.GT_FML_LOGGER.error( - "Exception setting tile entity data for tile entity {} at ({}, {}, {})", - tTileEntity, - mX, - mY, - mZ); + "Exception setting tile entity data for tile entity {} at ({}, {}, {})", + tTileEntity, + mX, + mY, + mZ); } } diff --git a/src/main/java/gregtech/api/net/GT_Packet_TileEntityCover.java b/src/main/java/gregtech/api/net/GT_Packet_TileEntityCover.java index 07d99a3896..0e4bedc16e 100644 --- a/src/main/java/gregtech/api/net/GT_Packet_TileEntityCover.java +++ b/src/main/java/gregtech/api/net/GT_Packet_TileEntityCover.java @@ -74,13 +74,13 @@ public class GT_Packet_TileEntityCover extends GT_Packet_New { @Override public GT_Packet_New decode(ByteArrayDataInput aData) { return new GT_Packet_TileEntityCover( - aData.readInt(), - aData.readShort(), - aData.readInt(), - aData.readByte(), - aData.readInt(), - aData.readInt(), - aData.readInt()); + aData.readInt(), + aData.readShort(), + aData.readInt(), + aData.readByte(), + aData.readInt(), + aData.readInt(), + aData.readInt()); } @Override diff --git a/src/main/java/gregtech/api/net/GT_Packet_TileEntityCoverGUI.java b/src/main/java/gregtech/api/net/GT_Packet_TileEntityCoverGUI.java index 25d4adf8e1..79156e4223 100644 --- a/src/main/java/gregtech/api/net/GT_Packet_TileEntityCoverGUI.java +++ b/src/main/java/gregtech/api/net/GT_Packet_TileEntityCoverGUI.java @@ -39,7 +39,7 @@ public class GT_Packet_TileEntityCoverGUI extends GT_Packet_New { } public GT_Packet_TileEntityCoverGUI(int mX, short mY, int mZ, byte coverSide, int coverID, int coverData, int dimID, - int playerID) { + int playerID) { super(false); this.mX = mX; this.mY = mY; @@ -55,7 +55,7 @@ public class GT_Packet_TileEntityCoverGUI extends GT_Packet_New { } public GT_Packet_TileEntityCoverGUI(int mX, short mY, int mZ, byte coverSide, int coverID, - ISerializableObject coverData, int dimID, int playerID) { + ISerializableObject coverData, int dimID, int playerID) { super(false); this.mX = mX; this.mY = mY; @@ -86,7 +86,7 @@ public class GT_Packet_TileEntityCoverGUI extends GT_Packet_New { } public GT_Packet_TileEntityCoverGUI(int mX, short mY, int mZ, byte coverSide, int coverID, - ISerializableObject coverData, int dimID, int playerID, int parentGuiId) { + ISerializableObject coverData, int dimID, int playerID, int parentGuiId) { super(false); this.mX = mX; this.mY = mY; @@ -101,7 +101,7 @@ public class GT_Packet_TileEntityCoverGUI extends GT_Packet_New { } public GT_Packet_TileEntityCoverGUI(byte side, int coverID, int coverData, ICoverable tile, - EntityPlayerMP aPlayer) { + EntityPlayerMP aPlayer) { super(false); this.mX = tile.getXCoord(); @@ -132,7 +132,7 @@ public class GT_Packet_TileEntityCoverGUI extends GT_Packet_New { } public GT_Packet_TileEntityCoverGUI(byte side, int coverID, ISerializableObject coverData, ICoverable tile, - EntityPlayerMP aPlayer) { + EntityPlayerMP aPlayer) { super(false); this.mX = tile.getXCoord(); this.mY = tile.getYCoord(); @@ -172,17 +172,17 @@ public class GT_Packet_TileEntityCoverGUI extends GT_Packet_New { public GT_Packet_New decode(ByteArrayDataInput aData) { int coverID; return new GT_Packet_TileEntityCoverGUI( - aData.readInt(), - aData.readShort(), - aData.readInt(), - aData.readByte(), - coverID = aData.readInt(), - GregTech_API.getCoverBehaviorNew(coverID) - .createDataObject() - .readFromPacket(aData, null), - aData.readInt(), - aData.readInt(), - aData.readInt()); + aData.readInt(), + aData.readShort(), + aData.readInt(), + aData.readByte(), + coverID = aData.readInt(), + GregTech_API.getCoverBehaviorNew(coverID) + .createDataObject() + .readFromPacket(aData, null), + aData.readInt(), + aData.readInt(), + aData.readInt()); } @Override @@ -197,19 +197,19 @@ public class GT_Packet_TileEntityCoverGUI extends GT_Packet_New { GT_CoverBehaviorBase cover = gtTile.getCoverBehaviorAtSideNew(side); if (cover.hasCoverGUI()) { final GuiScreen gui = (GuiScreen) cover.getClientGUI( - side, - gtTile.getCoverIDAtSide(side), - gtTile.getComplexCoverDataAtSide(side), - gtTile, - thePlayer, - thePlayer.worldObj); + side, + gtTile.getCoverIDAtSide(side), + gtTile.getComplexCoverDataAtSide(side), + gtTile, + thePlayer, + thePlayer.worldObj); // If it's one of this mod's covers, tell it to exit to the GUI with the specified ID (-1 is // ignored) if (gui instanceof GT_GUICover) { ((GT_GUICover) gui).setParentGuiId(parentGuiId); } Minecraft.getMinecraft() - .displayGuiScreen(gui); + .displayGuiScreen(gui); } } } diff --git a/src/main/java/gregtech/api/net/GT_Packet_TileEntityCoverNew.java b/src/main/java/gregtech/api/net/GT_Packet_TileEntityCoverNew.java index 453ed88e60..89201710f3 100644 --- a/src/main/java/gregtech/api/net/GT_Packet_TileEntityCoverNew.java +++ b/src/main/java/gregtech/api/net/GT_Packet_TileEntityCoverNew.java @@ -36,7 +36,7 @@ public class GT_Packet_TileEntityCoverNew extends GT_Packet_New { } public GT_Packet_TileEntityCoverNew(int mX, short mY, int mZ, byte coverSide, int coverID, - ISerializableObject coverData, int dimID) { + ISerializableObject coverData, int dimID) { super(false); this.mX = mX; this.mY = mY; @@ -91,15 +91,15 @@ public class GT_Packet_TileEntityCoverNew extends GT_Packet_New { public GT_Packet_New decode(ByteArrayDataInput aData) { int coverId; return new GT_Packet_TileEntityCoverNew( - aData.readInt(), - aData.readShort(), - aData.readInt(), - aData.readByte(), - coverId = aData.readInt(), - GregTech_API.getCoverBehaviorNew(coverId) - .createDataObject() - .readFromPacket(aData, mPlayer), - aData.readInt()); + aData.readInt(), + aData.readShort(), + aData.readInt(), + aData.readByte(), + coverId = aData.readInt(), + GregTech_API.getCoverBehaviorNew(coverId) + .createDataObject() + .readFromPacket(aData, mPlayer), + aData.readInt()); } @Override diff --git a/src/main/java/gregtech/api/net/GT_Packet_WirelessRedstoneCover.java b/src/main/java/gregtech/api/net/GT_Packet_WirelessRedstoneCover.java index 6f0f8d215d..5121ce03df 100644 --- a/src/main/java/gregtech/api/net/GT_Packet_WirelessRedstoneCover.java +++ b/src/main/java/gregtech/api/net/GT_Packet_WirelessRedstoneCover.java @@ -29,14 +29,14 @@ public class GT_Packet_WirelessRedstoneCover extends GT_Packet_TileEntityCover { } public GT_Packet_WirelessRedstoneCover(int mX, short mY, int mZ, byte coverSide, int coverID, int dimID, - int publicChannel, int checkBoxValue) { + int publicChannel, int checkBoxValue) { super(mX, mY, mZ, coverSide, coverID, 0, dimID); mPublicChannel = publicChannel; mCheckBoxValue = checkBoxValue; } public GT_Packet_WirelessRedstoneCover(byte coverSide, int coverID, ICoverable tile, int publicChannel, - int checkBoxValue) { + int checkBoxValue) { super(coverSide, coverID, 0, tile); mPublicChannel = publicChannel; mCheckBoxValue = checkBoxValue; @@ -72,14 +72,14 @@ public class GT_Packet_WirelessRedstoneCover extends GT_Packet_TileEntityCover { @Override public GT_Packet_New decode(ByteArrayDataInput aData) { return new GT_Packet_WirelessRedstoneCover( - aData.readInt(), - aData.readShort(), - aData.readInt(), - aData.readByte(), - aData.readInt(), - aData.readInt(), - aData.readInt(), - aData.readInt()); + aData.readInt(), + aData.readShort(), + aData.readInt(), + aData.readByte(), + aData.readInt(), + aData.readInt(), + aData.readInt(), + aData.readInt()); } @Override @@ -89,8 +89,7 @@ public class GT_Packet_WirelessRedstoneCover extends GT_Packet_TileEntityCover { TileEntity tile = world.getTileEntity(mX, mY, mZ); if (tile instanceof IGregTechTileEntity && !((IGregTechTileEntity) tile).isDead()) { int tPrivateChannel = (mCheckBoxValue > 0) ? mPlayer.getUniqueID() - .hashCode() - & PRIVATE_MASK : 0; + .hashCode() & PRIVATE_MASK : 0; int tCoverData = tPrivateChannel | (mCheckBoxValue & CHECKBOX_MASK) | (mPublicChannel & PUBLIC_MASK); ((IGregTechTileEntity) tile).receiveCoverData(side, coverID, tCoverData); } diff --git a/src/main/java/gregtech/api/objects/AE2DigitalChestHandler.java b/src/main/java/gregtech/api/objects/AE2DigitalChestHandler.java index 6bbab251ba..c2e0556de9 100644 --- a/src/main/java/gregtech/api/objects/AE2DigitalChestHandler.java +++ b/src/main/java/gregtech/api/objects/AE2DigitalChestHandler.java @@ -10,14 +10,14 @@ public class AE2DigitalChestHandler implements appeng.api.storage.IExternalStora @Override public boolean canHandle(final TileEntity te, final ForgeDirection d, final appeng.api.storage.StorageChannel chan, - final appeng.api.networking.security.BaseActionSource mySrc) { + final appeng.api.networking.security.BaseActionSource mySrc) { return chan == appeng.api.storage.StorageChannel.ITEMS && te instanceof BaseMetaTileEntity - && ((BaseMetaTileEntity) te).getMetaTileEntity() instanceof GT_MetaTileEntity_DigitalChestBase; + && ((BaseMetaTileEntity) te).getMetaTileEntity() instanceof GT_MetaTileEntity_DigitalChestBase; } @Override public appeng.api.storage.IMEInventory getInventory(final TileEntity te, final ForgeDirection d, - final appeng.api.storage.StorageChannel chan, final appeng.api.networking.security.BaseActionSource src) { + final appeng.api.storage.StorageChannel chan, final appeng.api.networking.security.BaseActionSource src) { if (chan == appeng.api.storage.StorageChannel.ITEMS) { return ((GT_MetaTileEntity_DigitalChestBase) (((BaseMetaTileEntity) te).getMetaTileEntity())); } diff --git a/src/main/java/gregtech/api/objects/CollectorUtils.java b/src/main/java/gregtech/api/objects/CollectorUtils.java index 178ea0d5e8..7265076683 100644 --- a/src/main/java/gregtech/api/objects/CollectorUtils.java +++ b/src/main/java/gregtech/api/objects/CollectorUtils.java @@ -24,7 +24,7 @@ public class CollectorUtils { } public static , M extends Map> Collector entriesToMap( - Supplier mapSupplier) { + Supplier mapSupplier) { return Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue, CollectorUtils.throwingMerger(), mapSupplier); } } diff --git a/src/main/java/gregtech/api/objects/ElementStack.java b/src/main/java/gregtech/api/objects/ElementStack.java index 4f71c6efee..58fffd475a 100644 --- a/src/main/java/gregtech/api/objects/ElementStack.java +++ b/src/main/java/gregtech/api/objects/ElementStack.java @@ -31,7 +31,7 @@ public class ElementStack implements Cloneable { if (aObject == null) return false; if (aObject instanceof Element) return aObject == mElement; if (aObject instanceof ElementStack) return ((ElementStack) aObject).mElement == mElement - && (mAmount < 0 || ((ElementStack) aObject).mAmount < 0 || ((ElementStack) aObject).mAmount == mAmount); + && (mAmount < 0 || ((ElementStack) aObject).mAmount < 0 || ((ElementStack) aObject).mAmount == mAmount); return false; } diff --git a/src/main/java/gregtech/api/objects/GT_ChunkManager.java b/src/main/java/gregtech/api/objects/GT_ChunkManager.java index 6101deedbc..6dbabe2535 100644 --- a/src/main/java/gregtech/api/objects/GT_ChunkManager.java +++ b/src/main/java/gregtech/api/objects/GT_ChunkManager.java @@ -23,7 +23,7 @@ import gregtech.api.util.GT_Log; // This class handles re-initializing chunks after a server restart public class GT_ChunkManager - implements ForgeChunkManager.OrderedLoadingCallback, ForgeChunkManager.PlayerOrderedLoadingCallback { + implements ForgeChunkManager.OrderedLoadingCallback, ForgeChunkManager.PlayerOrderedLoadingCallback { private Map registeredTickets = new HashMap<>(); public static GT_ChunkManager instance = new GT_ChunkManager(); @@ -47,22 +47,22 @@ public class GT_ChunkManager if (GT_Values.alwaysReloadChunkloaders) { for (Ticket ticket : tickets) { int x = ticket.getModData() - .getInteger("OwnerX"); + .getInteger("OwnerX"); int y = ticket.getModData() - .getInteger("OwnerY"); + .getInteger("OwnerY"); int z = ticket.getModData() - .getInteger("OwnerZ"); + .getInteger("OwnerZ"); if (y > 0) { TileEntity tile = world.getTileEntity(x, y, z); if (tile != null && tile instanceof IGregTechTileEntity - && ((IGregTechTileEntity) tile).isAllowedToWork()) { + && ((IGregTechTileEntity) tile).isAllowedToWork()) { ForgeChunkManager.forceChunk(ticket, new ChunkCoordIntPair(x >> 4, z >> 4)); if (!registeredTickets.containsKey(tile)) { registeredTickets.put(tile, ticket); if (((IGregTechTileEntity) tile).getMetaTileEntity() instanceof IChunkLoader) ForgeChunkManager.forceChunk( - ticket, - ((IChunkLoader) ((IGregTechTileEntity) tile).getMetaTileEntity()).getActiveChunk()); + ticket, + ((IChunkLoader) ((IGregTechTileEntity) tile).getMetaTileEntity()).getActiveChunk()); validTickets.add(ticket); } } @@ -88,33 +88,28 @@ public class GT_ChunkManager public static boolean requestPlayerChunkLoad(TileEntity owner, ChunkCoordIntPair chunkXZ, String player) { if (!GT_Values.enableChunkloaders) return false; if (!GT_Values.alwaysReloadChunkloaders && chunkXZ == null) return false; - if (GT_Values.debugChunkloaders && chunkXZ != null) GT_Log.out.println( - "GT_ChunkManager: Chunk request: (" + chunkXZ.chunkXPos + ", " + chunkXZ.chunkZPos + ")"); + if (GT_Values.debugChunkloaders && chunkXZ != null) GT_Log.out + .println("GT_ChunkManager: Chunk request: (" + chunkXZ.chunkXPos + ", " + chunkXZ.chunkZPos + ")"); if (instance.registeredTickets.containsKey(owner)) { ForgeChunkManager.forceChunk(instance.registeredTickets.get(owner), chunkXZ); } else { Ticket ticket; - if (player.equals("")) ticket = ForgeChunkManager.requestTicket( - GT_Mod.instance, - owner.getWorldObj(), - ForgeChunkManager.Type.NORMAL); - else ticket = ForgeChunkManager.requestPlayerTicket( - GT_Mod.instance, - player, - owner.getWorldObj(), - ForgeChunkManager.Type.NORMAL); + if (player.equals("")) ticket = ForgeChunkManager + .requestTicket(GT_Mod.instance, owner.getWorldObj(), ForgeChunkManager.Type.NORMAL); + else ticket = ForgeChunkManager + .requestPlayerTicket(GT_Mod.instance, player, owner.getWorldObj(), ForgeChunkManager.Type.NORMAL); if (ticket == null) { if (GT_Values.debugChunkloaders) GT_Log.out.println("GT_ChunkManager: ForgeChunkManager.requestTicket failed"); return false; } if (GT_Values.debugChunkloaders) GT_Log.out.println( - "GT_ChunkManager: ticket issued for machine at: (" + owner.xCoord - + ", " - + owner.yCoord - + ", " - + owner.zCoord - + ")"); + "GT_ChunkManager: ticket issued for machine at: (" + owner.xCoord + + ", " + + owner.yCoord + + ", " + + owner.zCoord + + ")"); NBTTagCompound tag = ticket.getModData(); tag.setInteger("OwnerX", owner.xCoord); tag.setInteger("OwnerY", owner.yCoord); @@ -135,8 +130,8 @@ public class GT_ChunkManager if (!GT_Values.enableChunkloaders) return; Ticket ticket = instance.registeredTickets.get(owner); if (ticket != null) { - if (GT_Values.debugChunkloaders) GT_Log.out.println( - "GT_ChunkManager: Chunk release: (" + chunkXZ.chunkXPos + ", " + chunkXZ.chunkZPos + ")"); + if (GT_Values.debugChunkloaders) GT_Log.out + .println("GT_ChunkManager: Chunk release: (" + chunkXZ.chunkXPos + ", " + chunkXZ.chunkZPos + ")"); ForgeChunkManager.unforceChunk(ticket, chunkXZ); } } @@ -147,14 +142,14 @@ public class GT_ChunkManager if (ticket != null) { if (GT_Values.debugChunkloaders) { GT_Log.out.println( - "GT_ChunkManager: ticket released by machine at: (" + owner.xCoord - + ", " - + owner.yCoord - + ", " - + owner.zCoord - + ")"); - for (ChunkCoordIntPair chunk : ticket.getChunkList()) GT_Log.out.println( - "GT_ChunkManager: Chunk release: (" + chunk.chunkXPos + ", " + chunk.chunkZPos + ")"); + "GT_ChunkManager: ticket released by machine at: (" + owner.xCoord + + ", " + + owner.yCoord + + ", " + + owner.zCoord + + ")"); + for (ChunkCoordIntPair chunk : ticket.getChunkList()) GT_Log.out + .println("GT_ChunkManager: Chunk release: (" + chunk.chunkXPos + ", " + chunk.chunkZPos + ")"); } ForgeChunkManager.releaseTicket(ticket); instance.registeredTickets.remove(owner); @@ -165,12 +160,12 @@ public class GT_ChunkManager GT_Log.out.println("GT_ChunkManager: Start forced chunks dump:"); instance.registeredTickets.forEach((machine, ticket) -> { GT_Log.out.print( - "GT_ChunkManager: Chunks forced by the machine at (" + machine.xCoord - + ", " - + machine.yCoord - + ", " - + machine.zCoord - + ")"); + "GT_ChunkManager: Chunks forced by the machine at (" + machine.xCoord + + ", " + + machine.yCoord + + ", " + + machine.zCoord + + ")"); if (ticket.isPlayerTicket()) GT_Log.out.print(" Owner: " + ticket.getPlayerName()); GT_Log.out.print(" :"); for (ChunkCoordIntPair c : ticket.getChunkList()) { diff --git a/src/main/java/gregtech/api/objects/GT_Cover_Default.java b/src/main/java/gregtech/api/objects/GT_Cover_Default.java index 04659d584f..b6259a9366 100644 --- a/src/main/java/gregtech/api/objects/GT_Cover_Default.java +++ b/src/main/java/gregtech/api/objects/GT_Cover_Default.java @@ -23,14 +23,14 @@ public class GT_Cover_Default extends GT_CoverBehavior { @Override public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - EntityPlayer aPlayer, float aX, float aY, float aZ) { + EntityPlayer aPlayer, float aX, float aY, float aZ) { aCoverVariable = ((aCoverVariable + 1) & 15); GT_Utility.sendChatToPlayer( - aPlayer, - ((aCoverVariable & 1) != 0 ? GT_Utility.trans("128.1", "Redstone ") : "") - + ((aCoverVariable & 2) != 0 ? GT_Utility.trans("129.1", "Energy ") : "") - + ((aCoverVariable & 4) != 0 ? GT_Utility.trans("130.1", "Fluids ") : "") - + ((aCoverVariable & 8) != 0 ? GT_Utility.trans("131.1", "Items ") : "")); + aPlayer, + ((aCoverVariable & 1) != 0 ? GT_Utility.trans("128.1", "Redstone ") : "") + + ((aCoverVariable & 2) != 0 ? GT_Utility.trans("129.1", "Energy ") : "") + + ((aCoverVariable & 4) != 0 ? GT_Utility.trans("130.1", "Fluids ") : "") + + ((aCoverVariable & 8) != 0 ? GT_Utility.trans("131.1", "Items ") : "")); return aCoverVariable; } diff --git a/src/main/java/gregtech/api/objects/GT_Cover_None.java b/src/main/java/gregtech/api/objects/GT_Cover_None.java index 58d43476ef..e0b1adf66e 100644 --- a/src/main/java/gregtech/api/objects/GT_Cover_None.java +++ b/src/main/java/gregtech/api/objects/GT_Cover_None.java @@ -69,25 +69,25 @@ public class GT_Cover_None extends GT_CoverBehavior { @Override public boolean manipulatesSidedRedstoneOutput(byte aSide, int aCoverID, int aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return false; } @Override public boolean onCoverRightclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - EntityPlayer aPlayer, float aX, float aY, float aZ) { + EntityPlayer aPlayer, float aX, float aY, float aZ) { return false; } @Override public boolean onCoverRemoval(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - boolean aForced) { + boolean aForced) { return true; } @Override public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - long aTimer) { + long aTimer) { return 0; } @@ -98,153 +98,153 @@ public class GT_Cover_None extends GT_CoverBehavior { @Override protected boolean isRedstoneSensitiveImpl(byte aSide, int aCoverID, - ISerializableObject.LegacyCoverData aCoverVariable, ICoverable aTileEntity, long aTimer) { + ISerializableObject.LegacyCoverData aCoverVariable, ICoverable aTileEntity, long aTimer) { return false; } @Override protected ISerializableObject.LegacyCoverData doCoverThingsImpl(byte aSide, byte aInputRedstone, int aCoverID, - ISerializableObject.LegacyCoverData aCoverVariable, ICoverable aTileEntity, long aTimer) { + ISerializableObject.LegacyCoverData aCoverVariable, ICoverable aTileEntity, long aTimer) { return aCoverVariable; } @Override protected boolean onCoverRightClickImpl(byte aSide, int aCoverID, - ISerializableObject.LegacyCoverData aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, - float aY, float aZ) { + ISerializableObject.LegacyCoverData aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, + float aY, float aZ) { return false; } @Override protected ISerializableObject.LegacyCoverData onCoverScrewdriverClickImpl(byte aSide, int aCoverID, - ISerializableObject.LegacyCoverData aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, - float aY, float aZ) { + ISerializableObject.LegacyCoverData aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, + float aY, float aZ) { return aCoverVariable; } @Override protected boolean onCoverShiftRightClickImpl(byte aSide, int aCoverID, - ISerializableObject.LegacyCoverData aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer) { + ISerializableObject.LegacyCoverData aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer) { return false; } @Override protected boolean onCoverRemovalImpl(byte aSide, int aCoverID, ISerializableObject.LegacyCoverData aCoverVariable, - ICoverable aTileEntity, boolean aForced) { + ICoverable aTileEntity, boolean aForced) { return true; } @Override protected String getDescriptionImpl(byte aSide, int aCoverID, ISerializableObject.LegacyCoverData aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return E; } @Override protected float getBlastProofLevelImpl(byte aSide, int aCoverID, ISerializableObject.LegacyCoverData aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return 10.0F; } @Override protected boolean letsRedstoneGoInImpl(byte aSide, int aCoverID, ISerializableObject.LegacyCoverData aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return true; } @Override protected boolean letsRedstoneGoOutImpl(byte aSide, int aCoverID, - ISerializableObject.LegacyCoverData aCoverVariable, ICoverable aTileEntity) { + ISerializableObject.LegacyCoverData aCoverVariable, ICoverable aTileEntity) { return true; } @Override protected boolean letsFibreGoInImpl(byte aSide, int aCoverID, ISerializableObject.LegacyCoverData aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return true; } @Override protected boolean letsFibreGoOutImpl(byte aSide, int aCoverID, ISerializableObject.LegacyCoverData aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return true; } @Override protected boolean letsEnergyInImpl(byte aSide, int aCoverID, ISerializableObject.LegacyCoverData aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return true; } @Override protected boolean letsEnergyOutImpl(byte aSide, int aCoverID, ISerializableObject.LegacyCoverData aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return true; } @Override protected boolean letsFluidInImpl(byte aSide, int aCoverID, ISerializableObject.LegacyCoverData aCoverVariable, - Fluid aFluid, ICoverable aTileEntity) { + Fluid aFluid, ICoverable aTileEntity) { return true; } @Override protected boolean letsFluidOutImpl(byte aSide, int aCoverID, ISerializableObject.LegacyCoverData aCoverVariable, - Fluid aFluid, ICoverable aTileEntity) { + Fluid aFluid, ICoverable aTileEntity) { return true; } @Override protected boolean letsItemsInImpl(byte aSide, int aCoverID, ISerializableObject.LegacyCoverData aCoverVariable, - int aSlot, ICoverable aTileEntity) { + int aSlot, ICoverable aTileEntity) { return true; } @Override protected boolean letsItemsOutImpl(byte aSide, int aCoverID, ISerializableObject.LegacyCoverData aCoverVariable, - int aSlot, ICoverable aTileEntity) { + int aSlot, ICoverable aTileEntity) { return true; } @Override protected boolean isGUIClickableImpl(byte aSide, int aCoverID, ISerializableObject.LegacyCoverData aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return true; } @Override protected boolean manipulatesSidedRedstoneOutputImpl(byte aSide, int aCoverID, - ISerializableObject.LegacyCoverData aCoverVariable, ICoverable aTileEntity) { + ISerializableObject.LegacyCoverData aCoverVariable, ICoverable aTileEntity) { return false; } @Override protected boolean alwaysLookConnectedImpl(byte aSide, int aCoverID, - ISerializableObject.LegacyCoverData aCoverVariable, ICoverable aTileEntity) { + ISerializableObject.LegacyCoverData aCoverVariable, ICoverable aTileEntity) { return false; } @Override protected byte getRedstoneInputImpl(byte aSide, byte aInputRedstone, int aCoverID, - ISerializableObject.LegacyCoverData aCoverVariable, ICoverable aTileEntity) { + ISerializableObject.LegacyCoverData aCoverVariable, ICoverable aTileEntity) { return aInputRedstone; } @Override protected int getTickRateImpl(byte aSide, int aCoverID, ISerializableObject.LegacyCoverData aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return 0; } @Override protected byte getLensColorImpl(byte aSide, int aCoverID, ISerializableObject.LegacyCoverData aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return -1; } @Override protected ItemStack getDropImpl(byte aSide, int aCoverID, ISerializableObject.LegacyCoverData aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return null; } } diff --git a/src/main/java/gregtech/api/objects/GT_Fluid.java b/src/main/java/gregtech/api/objects/GT_Fluid.java index 1f82f412e5..10824d6327 100644 --- a/src/main/java/gregtech/api/objects/GT_Fluid.java +++ b/src/main/java/gregtech/api/objects/GT_Fluid.java @@ -26,7 +26,7 @@ public class GT_Fluid extends Fluid implements Runnable { @Override public int getColor() { return (Math.max(0, Math.min(255, mRGBa[0])) << 16) | (Math.max(0, Math.min(255, mRGBa[1])) << 8) - | Math.max(0, Math.min(255, mRGBa[2])); + | Math.max(0, Math.min(255, mRGBa[2])); } @Override diff --git a/src/main/java/gregtech/api/objects/GT_FluidStack.java b/src/main/java/gregtech/api/objects/GT_FluidStack.java index b5b6f6ff19..779f3a732a 100644 --- a/src/main/java/gregtech/api/objects/GT_FluidStack.java +++ b/src/main/java/gregtech/api/objects/GT_FluidStack.java @@ -18,8 +18,8 @@ import gregtech.api.util.GT_Utility; */ public class GT_FluidStack extends FluidStack { - private static final Collection sAllFluidStacks = Collections.newSetFromMap( - new WeakHashMap<>(10000)); + private static final Collection sAllFluidStacks = Collections + .newSetFromMap(new WeakHashMap<>(10000)); private static volatile boolean lock = false; private Fluid mFluid; @@ -58,7 +58,7 @@ public class GT_FluidStack extends FluidStack { int fluidID; try { fluidID = this.getFluid() - .getID(); + .getID(); } catch (Throwable e) { System.err.println(e); } @@ -81,10 +81,10 @@ public class GT_FluidStack extends FluidStack { @Override public String toString() { return String.format( - "GT_FluidStack: %s x %s, ID:%s", - this.amount, - this.getFluid() - .getName(), - this.getFluidID()); + "GT_FluidStack: %s x %s, ID:%s", + this.amount, + this.getFluid() + .getName(), + this.getFluidID()); } } diff --git a/src/main/java/gregtech/api/objects/GT_HashSet.java b/src/main/java/gregtech/api/objects/GT_HashSet.java index 64ff0f10b0..6442631035 100644 --- a/src/main/java/gregtech/api/objects/GT_HashSet.java +++ b/src/main/java/gregtech/api/objects/GT_HashSet.java @@ -45,7 +45,7 @@ public class GT_HashSet extends AbstractSet { @Override public Iterator iterator() { return (Iterator) map.keySet() - .iterator(); + .iterator(); } @Override diff --git a/src/main/java/gregtech/api/objects/GT_ItemStack.java b/src/main/java/gregtech/api/objects/GT_ItemStack.java index 21dffd1945..27e79a3e96 100644 --- a/src/main/java/gregtech/api/objects/GT_ItemStack.java +++ b/src/main/java/gregtech/api/objects/GT_ItemStack.java @@ -25,9 +25,9 @@ public class GT_ItemStack { public GT_ItemStack(ItemStack aStack, boolean wildcard) { this( - aStack == null ? null : aStack.getItem(), - aStack == null ? 0 : aStack.stackSize, - aStack == null ? 0 : wildcard ? GT_Values.W : Items.feather.getDamage(aStack)); + aStack == null ? null : aStack.getItem(), + aStack == null ? 0 : aStack.stackSize, + aStack == null ? 0 : wildcard ? GT_Values.W : Items.feather.getDamage(aStack)); } public GT_ItemStack(int aHashCode) { diff --git a/src/main/java/gregtech/api/objects/GT_RenderedTexture.java b/src/main/java/gregtech/api/objects/GT_RenderedTexture.java index 330d72b88a..bbb22e7d36 100644 --- a/src/main/java/gregtech/api/objects/GT_RenderedTexture.java +++ b/src/main/java/gregtech/api/objects/GT_RenderedTexture.java @@ -7,7 +7,7 @@ import gregtech.api.interfaces.ITexture; @Deprecated public class GT_RenderedTexture extends gregtech.common.render.GT_RenderedTexture - implements ITexture, IColorModulationContainer { + implements ITexture, IColorModulationContainer { @Deprecated public short[] mRGBa; diff --git a/src/main/java/gregtech/api/objects/GT_SidedTexture.java b/src/main/java/gregtech/api/objects/GT_SidedTexture.java index 8ceb6a9a6d..d042ebede9 100644 --- a/src/main/java/gregtech/api/objects/GT_SidedTexture.java +++ b/src/main/java/gregtech/api/objects/GT_SidedTexture.java @@ -10,13 +10,13 @@ import gregtech.api.interfaces.ITexture; */ @Deprecated public class GT_SidedTexture extends gregtech.common.render.GT_SidedTexture - implements ITexture, IColorModulationContainer { + implements ITexture, IColorModulationContainer { @Deprecated public short[] mRGBa; public GT_SidedTexture(IIconContainer aIcon0, IIconContainer aIcon1, IIconContainer aIcon2, IIconContainer aIcon3, - IIconContainer aIcon4, IIconContainer aIcon5, short[] aRGBa, boolean aAllowAlpha) { + IIconContainer aIcon4, IIconContainer aIcon5, short[] aRGBa, boolean aAllowAlpha) { super(aIcon0, aIcon1, aIcon2, aIcon3, aIcon4, aIcon5, aRGBa, aAllowAlpha); // Backwards Compat @@ -24,12 +24,12 @@ public class GT_SidedTexture extends gregtech.common.render.GT_SidedTexture } public GT_SidedTexture(IIconContainer aIcon0, IIconContainer aIcon1, IIconContainer aIcon2, IIconContainer aIcon3, - IIconContainer aIcon4, IIconContainer aIcon5, short[] aRGBa) { + IIconContainer aIcon4, IIconContainer aIcon5, short[] aRGBa) { this(aIcon0, aIcon1, aIcon2, aIcon3, aIcon4, aIcon5, aRGBa, true); } public GT_SidedTexture(IIconContainer aIcon0, IIconContainer aIcon1, IIconContainer aIcon2, IIconContainer aIcon3, - IIconContainer aIcon4, IIconContainer aIcon5) { + IIconContainer aIcon4, IIconContainer aIcon5) { this(aIcon0, aIcon1, aIcon2, aIcon3, aIcon4, aIcon5, Dyes._NULL.mRGBa); } diff --git a/src/main/java/gregtech/api/objects/GT_StdRenderedTexture.java b/src/main/java/gregtech/api/objects/GT_StdRenderedTexture.java index e40fb96ef2..cc7410a481 100644 --- a/src/main/java/gregtech/api/objects/GT_StdRenderedTexture.java +++ b/src/main/java/gregtech/api/objects/GT_StdRenderedTexture.java @@ -36,7 +36,7 @@ public class GT_StdRenderedTexture extends GT_RenderedTexture { public void renderYNeg(RenderBlocks aRenderer, Block aBlock, int aX, int aY, int aZ) { LightingHelper lighting = new LightingHelper(aRenderer); lighting.setupLightingYNeg(aBlock, aX, aY, aZ) - .setupColor(ForgeDirection.DOWN.ordinal(), mRGBa); + .setupColor(ForgeDirection.DOWN.ordinal(), mRGBa); aRenderer.renderFaceYNeg(aBlock, aX, aY, aZ, mIconContainer.getIcon()); if (mIconContainer.getOverlayIcon() != null) { lighting.setupColor(ForgeDirection.DOWN.ordinal(), 0xffffff); diff --git a/src/main/java/gregtech/api/objects/GT_UO_Dimension.java b/src/main/java/gregtech/api/objects/GT_UO_Dimension.java index 4f534956c7..8578f32228 100644 --- a/src/main/java/gregtech/api/objects/GT_UO_Dimension.java +++ b/src/main/java/gregtech/api/objects/GT_UO_Dimension.java @@ -18,15 +18,15 @@ public class GT_UO_Dimension { if (aConfigCategory.containsKey("Dimension")) { aConfigCategory.get("Dimension").comment = "Dimension ID or Class Name"; Dimension = aConfigCategory.get("Dimension") - .getString(); + .getString(); } maxChance = 0; // GT_FML_LOGGER.info("GT UO "+aConfigCategory.getName()+" Dimension:"+Dimension); for (int i = 0; i < aConfigCategory.getChildren() - .size(); i++) { + .size(); i++) { GT_UO_Fluid fluid = new GT_UO_Fluid( - (ConfigCategory) aConfigCategory.getChildren() - .toArray()[i]); + (ConfigCategory) aConfigCategory.getChildren() + .toArray()[i]); fFluids.put(fluid.Registry, fluid); maxChance += fluid.Chance; } @@ -45,7 +45,7 @@ public class GT_UO_Dimension { public String getUOFluidKey(GT_UO_Fluid uoFluid) { return fFluids.inverse() - .get(uoFluid); + .get(uoFluid); } public GT_UO_Fluid getUOFluid(String key) { diff --git a/src/main/java/gregtech/api/objects/GT_UO_DimensionList.java b/src/main/java/gregtech/api/objects/GT_UO_DimensionList.java index cd03380d8d..6beb8263e0 100644 --- a/src/main/java/gregtech/api/objects/GT_UO_DimensionList.java +++ b/src/main/java/gregtech/api/objects/GT_UO_DimensionList.java @@ -25,10 +25,9 @@ public class GT_UO_DimensionList { return fDimensionList.get(Integer.toString(aDimension)); for (BiMap.Entry dl : fDimensionList.entrySet()) if (DimensionManager.getProvider(aDimension) - .getClass() - .getName() - .contains(dl.getValue().Dimension)) - return dl.getValue(); + .getClass() + .getName() + .contains(dl.getValue().Dimension)) return dl.getValue(); return fDimensionList.get("Default"); } @@ -42,21 +41,21 @@ public class GT_UO_DimensionList { } public void SetConfigValues(String aDimensionName, String aDimension, String aName, String aRegistry, - int aMinAmount, int aMaxAmount, int aChance, int aDecreasePerOperationAmount) { + int aMinAmount, int aMaxAmount, int aChance, int aDecreasePerOperationAmount) { String Category = fCategory + "." + aDimensionName; fConfig.get(Category, "Dimension", aDimension) - .getString(); + .getString(); Category += "." + aName; fConfig.get(Category, "Registry", aRegistry) - .getString(); + .getString(); fConfig.get(Category, "MinAmount", aMinAmount) - .getInt(aMinAmount); + .getInt(aMinAmount); fConfig.get(Category, "MaxAmount", aMaxAmount) - .getInt(aMaxAmount); + .getInt(aMaxAmount); fConfig.get(Category, "Chance", aChance) - .getInt(aChance); + .getInt(aChance); fConfig.get(Category, "DecreasePerOperationAmount", aDecreasePerOperationAmount) - .getInt(aDecreasePerOperationAmount); + .getInt(aDecreasePerOperationAmount); // IT IS IN BUCKETS!!! } @@ -76,23 +75,23 @@ public class GT_UO_DimensionList { fConfig.setCategoryComment(fCategory, "Config Underground Fluids (Delete this Category for regenerate)"); fConfig.setCategoryComment( - fCategory + ".Default", - "Set Default Generating (Use this Category for Default settings)"); + fCategory + ".Default", + "Set Default Generating (Use this Category for Default settings)"); fConfig.setCategoryComment(fCategory + ".Overworld", "Set Overworld Generating"); fConfig.setCategoryComment(fCategory + ".Moon", "Set Moon Generating"); blackList = new int[] { -1, 1 }; blackList = aConfig.get(fCategory, "DimBlackList", blackList, "Dimension IDs Black List") - .getIntList(); + .getIntList(); java.util.Arrays.sort(blackList); for (int i = 0; i < fConfig.getCategory(fCategory) - .getChildren() - .size(); i++) { + .getChildren() + .size(); i++) { GT_UO_Dimension Dimension = new GT_UO_Dimension( - (ConfigCategory) fConfig.getCategory(fCategory) - .getChildren() - .toArray()[i]); + (ConfigCategory) fConfig.getCategory(fCategory) + .getChildren() + .toArray()[i]); fDimensionList.put(Dimension.Dimension, Dimension); } } diff --git a/src/main/java/gregtech/api/objects/GT_UO_Fluid.java b/src/main/java/gregtech/api/objects/GT_UO_Fluid.java index 555d8856b2..7f9898e02e 100644 --- a/src/main/java/gregtech/api/objects/GT_UO_Fluid.java +++ b/src/main/java/gregtech/api/objects/GT_UO_Fluid.java @@ -20,30 +20,30 @@ public class GT_UO_Fluid { if (aConfigCategory.containsKey("Registry")) { aConfigCategory.get("Registry").comment = "Fluid registry name"; Registry = aConfigCategory.get("Registry") - .getString(); + .getString(); } if (aConfigCategory.containsKey("MaxAmount")) { - aConfigCategory.get( - "MaxAmount").comment = "Max amount generation (per operation, sets the VeinData) 80000 MAX"; + aConfigCategory + .get("MaxAmount").comment = "Max amount generation (per operation, sets the VeinData) 80000 MAX"; MaxAmount = aConfigCategory.get("MaxAmount") - .getInt(0); + .getInt(0); } if (aConfigCategory.containsKey("MinAmount")) { aConfigCategory.get("MinAmount").comment = "Min amount generation (per operation, sets the VeinData) 0 MIN"; MinAmount = aConfigCategory.get("MinAmount") - .getInt(0); + .getInt(0); } if (aConfigCategory.containsKey("Chance")) { - aConfigCategory.get( - "Chance").comment = "Chance generating (weighted chance!, there will be a fluid in chunk always!)"; + aConfigCategory + .get("Chance").comment = "Chance generating (weighted chance!, there will be a fluid in chunk always!)"; Chance = aConfigCategory.get("Chance") - .getInt(0); + .getInt(0); } if (aConfigCategory.containsKey("DecreasePerOperationAmount")) { aConfigCategory.get( - "DecreasePerOperationAmount").comment = "Decrease per operation (actual fluid gained works like (Litre)VeinData/5000)"; + "DecreasePerOperationAmount").comment = "Decrease per operation (actual fluid gained works like (Litre)VeinData/5000)"; DecreasePerOperationAmount = aConfigCategory.get("DecreasePerOperationAmount") - .getInt(5); + .getInt(5); } // GT_FML_LOGGER.info("GT UO "+aConfigCategory.getName()+" Fluid:"+Registry+" Max:"+MaxAmount+" // Min:"+MinAmount+" Chance:"+Chance); diff --git a/src/main/java/gregtech/api/objects/ItemData.java b/src/main/java/gregtech/api/objects/ItemData.java index 4fe0320ca7..c6a04bbb7e 100644 --- a/src/main/java/gregtech/api/objects/ItemData.java +++ b/src/main/java/gregtech/api/objects/ItemData.java @@ -23,8 +23,8 @@ public class ItemData { mMaterial = aMaterial == null ? null : new MaterialStack(aMaterial, aPrefix.mMaterialAmount); mBlackListed = aBlackListed; mByProducts = aPrefix.mSecondaryMaterial == null || aPrefix.mSecondaryMaterial.mMaterial == null - ? EMPTY_MATERIALSTACK_ARRAY - : new MaterialStack[] { aPrefix.mSecondaryMaterial.clone() }; + ? EMPTY_MATERIALSTACK_ARRAY + : new MaterialStack[] { aPrefix.mSecondaryMaterial.clone() }; } public ItemData(OrePrefixes aPrefix, Materials aMaterial) { @@ -39,7 +39,7 @@ public class ItemData { mByProducts = EMPTY_MATERIALSTACK_ARRAY; } else { MaterialStack[] tByProducts = aByProducts.length < 1 ? EMPTY_MATERIALSTACK_ARRAY - : new MaterialStack[aByProducts.length]; + : new MaterialStack[aByProducts.length]; int j = 0; for (MaterialStack aByProduct : aByProducts) if (aByProduct != null && aByProduct.mMaterial != null) tByProducts[j++] = aByProduct.clone(); @@ -116,7 +116,7 @@ public class ItemData { public String toString() { if (mPrefix == null || mMaterial == null || mMaterial.mMaterial == null) return ""; return String.valueOf( - new StringBuilder().append(mPrefix.name()) - .append(mMaterial.mMaterial.mName)); + new StringBuilder().append(mPrefix.name()) + .append(mMaterial.mMaterial.mName)); } } diff --git a/src/main/java/gregtech/api/objects/MaterialStack.java b/src/main/java/gregtech/api/objects/MaterialStack.java index c2ce2f951a..0a433e0d99 100644 --- a/src/main/java/gregtech/api/objects/MaterialStack.java +++ b/src/main/java/gregtech/api/objects/MaterialStack.java @@ -32,8 +32,7 @@ public class MaterialStack implements Cloneable { if (aObject == null) return false; if (aObject instanceof Materials) return aObject == mMaterial; if (aObject instanceof MaterialStack) return ((MaterialStack) aObject).mMaterial == mMaterial - && (mAmount < 0 || ((MaterialStack) aObject).mAmount < 0 - || ((MaterialStack) aObject).mAmount == mAmount); + && (mAmount < 0 || ((MaterialStack) aObject).mAmount < 0 || ((MaterialStack) aObject).mAmount == mAmount); return false; } diff --git a/src/main/java/gregtech/api/objects/ObjMap.java b/src/main/java/gregtech/api/objects/ObjMap.java index 05205b92c4..bb15aab0d7 100644 --- a/src/main/java/gregtech/api/objects/ObjMap.java +++ b/src/main/java/gregtech/api/objects/ObjMap.java @@ -225,7 +225,7 @@ public class ObjMap { public static int arraySize(final int expected, final float f) { final long s = Math.max(2, nextPowerOfTwo((long) Math.ceil(expected / f))); if (s > (1 << 30)) throw new IllegalArgumentException( - "Too large (" + expected + " expected elements with load factor " + f + ")"); + "Too large (" + expected + " expected elements with load factor " + f + ")"); return (int) s; } diff --git a/src/main/java/gregtech/api/objects/XSTR.java b/src/main/java/gregtech/api/objects/XSTR.java index d9c0b4bdb1..3a71e9afab 100644 --- a/src/main/java/gregtech/api/objects/XSTR.java +++ b/src/main/java/gregtech/api/objects/XSTR.java @@ -40,8 +40,8 @@ public class XSTR extends Random { @Override public synchronized void setSeed(long seed) { if (!Thread.currentThread() - .getStackTrace()[2].getClassName() - .equals(Random.class.getName())) + .getStackTrace()[2].getClassName() + .equals(Random.class.getName())) throw new NoSuchMethodError("This is meant to be shared!, leave seed state alone!"); } }; @@ -245,7 +245,6 @@ public class XSTR extends Random { public void nextBytes(byte[] bytes_arr) { for (int iba = 0, lenba = bytes_arr.length; iba < lenba;) for (int rndba = nextInt(), nba = Math.min(lenba - iba, Integer.SIZE / Byte.SIZE); nba-- - > 0; rndba >>= Byte.SIZE) - bytes_arr[iba++] = (byte) rndba; + > 0; rndba >>= Byte.SIZE) bytes_arr[iba++] = (byte) rndba; } } diff --git a/src/main/java/gregtech/api/render/TextureFactory.java b/src/main/java/gregtech/api/render/TextureFactory.java index 06a883bd1c..6a49165ad4 100644 --- a/src/main/java/gregtech/api/render/TextureFactory.java +++ b/src/main/java/gregtech/api/render/TextureFactory.java @@ -49,7 +49,7 @@ public final class TextureFactory { */ public static ITexture of(final ITexture... textures) { return builder().addLayer(textures) - .build(); + .build(); } /** @@ -65,11 +65,11 @@ public final class TextureFactory { * @return The instance of an {@link ITexture} implementation */ public static ITexture of(final IIconContainer bottom, final IIconContainer top, final IIconContainer north, - final IIconContainer south, final IIconContainer west, final IIconContainer east, final short[] rgba) { + final IIconContainer south, final IIconContainer west, final IIconContainer east, final short[] rgba) { return builder().addIcon(bottom, top, north, south, west, east) - .setRGBA(rgba) - .setAllowAlpha(true) - .build(); + .setRGBA(rgba) + .setAllowAlpha(true) + .build(); } /** @@ -82,11 +82,11 @@ public final class TextureFactory { * @return The instance of an {@link ITexture} implementation */ public static ITexture of(final IIconContainer bottom, final IIconContainer top, final IIconContainer sides, - final short[] rgba) { + final short[] rgba) { return builder().addIcon(bottom, top, sides, sides, sides, sides) - .setRGBA(rgba) - .setAllowAlpha(true) - .build(); + .setRGBA(rgba) + .setAllowAlpha(true) + .build(); } /** @@ -99,20 +99,20 @@ public final class TextureFactory { */ public static ITexture of(final IIconContainer iconContainer, final short[] rgba, final boolean allowAlpha) { return builder().addIcon(iconContainer) - .setRGBA(rgba) - .setAllowAlpha(allowAlpha) - .build(); + .setRGBA(rgba) + .setAllowAlpha(allowAlpha) + .build(); } public static ITexture of(final IIconContainer iconContainer, final short[] rgba) { return builder().addIcon(iconContainer) - .setRGBA(rgba) - .build(); + .setRGBA(rgba) + .build(); } public static ITexture of(final IIconContainer iconContainer) { return builder().addIcon(iconContainer) - .build(); + .build(); } /** @@ -126,20 +126,20 @@ public final class TextureFactory { */ public static ITexture of(final Block block, final int meta, final ForgeDirection side, final short[] rgba) { return builder().setFromBlock(block, meta) - .setFromSide(side) - .setRGBA(rgba) - .build(); + .setFromSide(side) + .setRGBA(rgba) + .build(); } public static ITexture of(final Block block, final int meta, final ForgeDirection side) { return builder().setFromBlock(block, meta) - .setFromSide(side) - .build(); + .setFromSide(side) + .build(); } public static ITexture of(final Block block, final int meta) { return builder().setFromBlock(block, meta) - .build(); + .build(); } public static ITexture of(final Block block) { diff --git a/src/main/java/gregtech/api/threads/GT_Runnable_Cable_Update.java b/src/main/java/gregtech/api/threads/GT_Runnable_Cable_Update.java index e4febba51f..c670307b5d 100644 --- a/src/main/java/gregtech/api/threads/GT_Runnable_Cable_Update.java +++ b/src/main/java/gregtech/api/threads/GT_Runnable_Cable_Update.java @@ -52,17 +52,17 @@ public class GT_Runnable_Cable_Update extends GT_Runnable_MachineBlockUpdate { // Now see if we should add the nearby blocks to the queue: // only add blocks the cable is connected to if (tTileEntity instanceof BaseMetaPipeEntity - && ((BaseMetaPipeEntity) tTileEntity).getMetaTileEntity() instanceof GT_MetaPipeEntity_Cable) { + && ((BaseMetaPipeEntity) tTileEntity).getMetaTileEntity() instanceof GT_MetaPipeEntity_Cable) { ChunkCoordinates tCoords; for (byte tSide : ALL_VALID_SIDES) { - if (((GT_MetaPipeEntity_Cable) ((BaseMetaPipeEntity) tTileEntity).getMetaTileEntity()).isConnectedAtSide( - tSide)) { + if (((GT_MetaPipeEntity_Cable) ((BaseMetaPipeEntity) tTileEntity).getMetaTileEntity()) + .isConnectedAtSide(tSide)) { final ForgeDirection offset = ForgeDirection.getOrientation(tSide); if (visited.add( - tCoords = new ChunkCoordinates( - aCoords.posX + offset.offsetX, - aCoords.posY + offset.offsetY, - aCoords.posZ + offset.offsetZ))) + tCoords = new ChunkCoordinates( + aCoords.posX + offset.offsetX, + aCoords.posY + offset.offsetY, + aCoords.posZ + offset.offsetZ))) tQueue.add(tCoords); } } @@ -70,13 +70,13 @@ public class GT_Runnable_Cable_Update extends GT_Runnable_MachineBlockUpdate { } } catch (Exception e) { GT_Mod.GT_FML_LOGGER.error( - "Well this update was broken... " + mCoords - + ", mWorld={" - + world.getProviderName() - + " @dimId " - + world.provider.dimensionId - + "}", - e); + "Well this update was broken... " + mCoords + + ", mWorld={" + + world.getProviderName() + + " @dimId " + + world.provider.dimensionId + + "}", + e); } } } diff --git a/src/main/java/gregtech/api/threads/GT_Runnable_MachineBlockUpdate.java b/src/main/java/gregtech/api/threads/GT_Runnable_MachineBlockUpdate.java index f06c3ac06b..ceb6adfa7a 100644 --- a/src/main/java/gregtech/api/threads/GT_Runnable_MachineBlockUpdate.java +++ b/src/main/java/gregtech/api/threads/GT_Runnable_MachineBlockUpdate.java @@ -77,12 +77,12 @@ public class GT_Runnable_MachineBlockUpdate implements Runnable { public static void initExecutorService() { EXECUTOR_SERVICE = Executors.newFixedThreadPool( - Math.max( - 1, - (Runtime.getRuntime() - .availableProcessors() * 2 - / 3)), - THREAD_FACTORY); + Math.max( + 1, + (Runtime.getRuntime() + .availableProcessors() * 2 + / 3)), + THREAD_FACTORY); } public static void shutdownExecutorService() { @@ -95,7 +95,7 @@ public class GT_Runnable_MachineBlockUpdate implements Runnable { // Wait a while for tasks to respond to being cancelled if (!EXECUTOR_SERVICE.awaitTermination(60, TimeUnit.SECONDS)) { GT_Mod.GT_FML_LOGGER.error( - "Well this didn't terminated well... GT_Runnable_MachineBlockUpdate.shutdownExecutorService"); + "Well this didn't terminated well... GT_Runnable_MachineBlockUpdate.shutdownExecutorService"); } } } catch (InterruptedException ie) { @@ -104,7 +104,7 @@ public class GT_Runnable_MachineBlockUpdate implements Runnable { EXECUTOR_SERVICE.shutdownNow(); // Preserve interrupt status Thread.currentThread() - .interrupt(); + .interrupt(); } catch (Exception e) { GT_Mod.GT_FML_LOGGER.error("Well this didn't terminated well...", e); // (Re-)Cancel in case @@ -130,8 +130,8 @@ public class GT_Runnable_MachineBlockUpdate implements Runnable { try { tTileEntity = world.getTileEntity(aCoords.posX, aCoords.posY, aCoords.posZ); isMachineBlock = GregTech_API.isMachineBlock( - world.getBlock(aCoords.posX, aCoords.posY, aCoords.posZ), - world.getBlockMetadata(aCoords.posX, aCoords.posY, aCoords.posZ)); + world.getBlock(aCoords.posX, aCoords.posY, aCoords.posZ), + world.getBlockMetadata(aCoords.posX, aCoords.posY, aCoords.posZ)); } finally { GT_Proxy.TICK_LOCK.unlock(); } @@ -145,9 +145,9 @@ public class GT_Runnable_MachineBlockUpdate implements Runnable { // 2) If the tile says we should recursively updated (pipes don't, machine blocks do) // 3) If the block at the coordinates is marked as a machine block if (visited.size() < 5 - || (tTileEntity instanceof IMachineBlockUpdateable - && ((IMachineBlockUpdateable) tTileEntity).isMachineBlockUpdateRecursive()) - || isMachineBlock) { + || (tTileEntity instanceof IMachineBlockUpdateable + && ((IMachineBlockUpdateable) tTileEntity).isMachineBlockUpdateRecursive()) + || isMachineBlock) { ChunkCoordinates tCoords; if (visited.add(tCoords = new ChunkCoordinates(aCoords.posX + 1, aCoords.posY, aCoords.posZ))) @@ -166,13 +166,13 @@ public class GT_Runnable_MachineBlockUpdate implements Runnable { } } catch (Exception e) { GT_Mod.GT_FML_LOGGER.error( - "Well this update was broken... " + mCoords - + ", mWorld={" - + world.getProviderName() - + " @dimId " - + world.provider.dimensionId - + "}", - e); + "Well this update was broken... " + mCoords + + ", mWorld={" + + world.getProviderName() + + " @dimId " + + world.provider.dimensionId + + "}", + e); } } } diff --git a/src/main/java/gregtech/api/threads/GT_Runnable_Sound.java b/src/main/java/gregtech/api/threads/GT_Runnable_Sound.java index dfee28cf47..b3c04bc233 100644 --- a/src/main/java/gregtech/api/threads/GT_Runnable_Sound.java +++ b/src/main/java/gregtech/api/threads/GT_Runnable_Sound.java @@ -15,7 +15,7 @@ public class GT_Runnable_Sound implements Runnable { private final float mSoundStrength, mSoundModulation; public GT_Runnable_Sound(World aWorld, double aX, double aY, double aZ, int aTimeUntilNextSound, - ResourceLocation aSoundResourceLocation, float aSoundStrength, float aSoundModulation) { + ResourceLocation aSoundResourceLocation, float aSoundStrength, float aSoundModulation) { mWorld = aWorld; mX = aX; mY = aY; @@ -30,16 +30,16 @@ public class GT_Runnable_Sound implements Runnable { * @deprecated Use {@link #GT_Runnable_Sound(World, double, double, double, int, ResourceLocation, float, float)} */ public GT_Runnable_Sound(World aWorld, int aX, int aY, int aZ, int aTimeUntilNextSound, - ResourceLocation aSoundResourceLocation, float aSoundStrength, float aSoundModulation) { + ResourceLocation aSoundResourceLocation, float aSoundStrength, float aSoundModulation) { this( - aWorld, - (double) aX + 0.5D, - (double) aY + 0.5D, - (double) aZ + 0.5D, - aTimeUntilNextSound, - aSoundResourceLocation, - aSoundStrength, - aSoundModulation); + aWorld, + (double) aX + 0.5D, + (double) aY + 0.5D, + (double) aZ + 0.5D, + aTimeUntilNextSound, + aSoundResourceLocation, + aSoundStrength, + aSoundModulation); } /** @@ -47,16 +47,16 @@ public class GT_Runnable_Sound implements Runnable { */ @Deprecated public GT_Runnable_Sound(World aWorld, int aX, int aY, int aZ, int aTimeUntilNextSound, String aSoundName, - float aSoundStrength, float aSoundModulation) { + float aSoundStrength, float aSoundModulation) { this( - aWorld, - (double) aX + 0.5D, - (double) aY + 0.5D, - (double) aZ + 0.5D, - aTimeUntilNextSound, - new ResourceLocation(aSoundName), - aSoundStrength, - aSoundModulation); + aWorld, + (double) aX + 0.5D, + (double) aY + 0.5D, + (double) aZ + 0.5D, + aTimeUntilNextSound, + new ResourceLocation(aSoundName), + aSoundStrength, + aSoundModulation); } @Override diff --git a/src/main/java/gregtech/api/util/ColorsMetadataSection.java b/src/main/java/gregtech/api/util/ColorsMetadataSection.java index 05d0bd4059..fb9cc6dd56 100644 --- a/src/main/java/gregtech/api/util/ColorsMetadataSection.java +++ b/src/main/java/gregtech/api/util/ColorsMetadataSection.java @@ -18,7 +18,7 @@ public class ColorsMetadataSection implements IMetadataSection { private final boolean guiTintEnabled; public ColorsMetadataSection(Map hexTextColorMap, Map hexGuiTintMap, - boolean guiTintEnabled) { + boolean guiTintEnabled) { this.hexTextColors = hexTextColorMap; this.textColors = convertHexMapToIntMap(hexTextColorMap); @@ -54,7 +54,7 @@ public class ColorsMetadataSection implements IMetadataSection { private boolean isColorInMap(String key, Map hexMap) { return hexMap.containsKey(key) && !hexMap.get(key) - .isEmpty(); + .isEmpty(); } public boolean sGuiTintingEnabled() { diff --git a/src/main/java/gregtech/api/util/ColorsMetadataSectionSerializer.java b/src/main/java/gregtech/api/util/ColorsMetadataSectionSerializer.java index ae480343b2..f898049e46 100644 --- a/src/main/java/gregtech/api/util/ColorsMetadataSectionSerializer.java +++ b/src/main/java/gregtech/api/util/ColorsMetadataSectionSerializer.java @@ -22,7 +22,7 @@ import gregtech.api.enums.Dyes; public class ColorsMetadataSectionSerializer extends BaseMetadataSectionSerializer { public ColorsMetadataSection deserialize(JsonElement metadataColors, Type type, - JsonDeserializationContext context) { + JsonDeserializationContext context) { // Default values boolean enableGuiTint = GregTech_API.sColoredGUI; Map hexGuiTintMap = new HashMap<>(); @@ -33,11 +33,11 @@ public class ColorsMetadataSectionSerializer extends BaseMetadataSectionSerializ JsonObject textColors = JsonUtils.func_152754_s(jsonObject, "textColor"); for (Map.Entry entry : textColors.entrySet()) { if (entry.getValue() - .isJsonPrimitive()) { + .isJsonPrimitive()) { hexTextColorMap.put( - entry.getKey(), - entry.getValue() - .getAsString()); + entry.getKey(), + entry.getValue() + .getAsString()); } else { GT_Mod.GT_FML_LOGGER.warn("ColorOverride expects primitive value for key `textColor`"); } @@ -46,10 +46,8 @@ public class ColorsMetadataSectionSerializer extends BaseMetadataSectionSerializ if (jsonObject.has("guiTint")) { JsonObject guiTints = JsonUtils.func_152754_s(jsonObject, "guiTint"); - enableGuiTint = JsonUtils.getJsonObjectBooleanFieldValueOrDefault( - guiTints, - "enableGuiTintWhenPainted", - true); + enableGuiTint = JsonUtils + .getJsonObjectBooleanFieldValueOrDefault(guiTints, "enableGuiTintWhenPainted", true); for (Dyes dye : Dyes.values()) { hexGuiTintMap.put(dye.mName, GT_Util.toHexString(dye.getRGBA())); @@ -58,8 +56,8 @@ public class ColorsMetadataSectionSerializer extends BaseMetadataSectionSerializ for (String key : hexGuiTintMap.keySet()) { if (enableGuiTint) { hexGuiTintMap.replace( - key, - JsonUtils.getJsonObjectStringFieldValueOrDefault(guiTints, key, hexGuiTintMap.get(key))); + key, + JsonUtils.getJsonObjectStringFieldValueOrDefault(guiTints, key, hexGuiTintMap.get(key))); } else { hexGuiTintMap.replace(key, GT_Util.toHexString(Dyes.dyeWhite.getRGBA())); } diff --git a/src/main/java/gregtech/api/util/GT_ApiaryUpgrade.java b/src/main/java/gregtech/api/util/GT_ApiaryUpgrade.java index 71c1e4716b..de46309a9f 100644 --- a/src/main/java/gregtech/api/util/GT_ApiaryUpgrade.java +++ b/src/main/java/gregtech/api/util/GT_ApiaryUpgrade.java @@ -141,12 +141,12 @@ public enum GT_ApiaryUpgrade { void apply(Consumer fn) { UNIQUE_UPGRADE_LIST.get(this) - .forEach(fn); + .forEach(fn); } } private static final EnumMap> UNIQUE_UPGRADE_LIST = new EnumMap<>( - UNIQUE_INDEX.class); + UNIQUE_INDEX.class); private int meta = 0; private int maxnumber = 1; @@ -158,7 +158,7 @@ public enum GT_ApiaryUpgrade { private final HashSet blacklistedUpgrades = new HashSet<>(); GT_ApiaryUpgrade(UNIQUE_INDEX unique_index, int meta, int maxnumber, - BiConsumer applier) { + BiConsumer applier) { this.unique_index = unique_index; this.meta = meta; this.maxnumber = maxnumber; @@ -211,7 +211,7 @@ public enum GT_ApiaryUpgrade { static { EnumSet.allOf(GT_ApiaryUpgrade.class) - .forEach(GT_ApiaryUpgrade::setup_static_variables); + .forEach(GT_ApiaryUpgrade::setup_static_variables); speed8upgraded.blacklistedUpgrades.add(production.id); production.blacklistedUpgrades.add(speed8upgraded.id); } diff --git a/src/main/java/gregtech/api/util/GT_AssemblyLineUtils.java b/src/main/java/gregtech/api/util/GT_AssemblyLineUtils.java index 7dc15f994d..b53cc4ba07 100644 --- a/src/main/java/gregtech/api/util/GT_AssemblyLineUtils.java +++ b/src/main/java/gregtech/api/util/GT_AssemblyLineUtils.java @@ -137,9 +137,9 @@ public class GT_AssemblyLineUtils { } } if (!aTag.hasKey("output") || !aTag.hasKey("time") - || aTag.getInteger("time") <= 0 - || !aTag.hasKey("eu") - || !GT_Utility.isStackValid(aOutput)) { + || aTag.getInteger("time") <= 0 + || !aTag.hasKey("eu") + || !GT_Utility.isStackValid(aOutput)) { return LookupResultType.INVALID_STICK.getResult(); } if (GT_Values.D1) { @@ -152,14 +152,14 @@ public class GT_AssemblyLineUtils { // Try build a recipe instance if (aReturnBuiltRecipe) { return LookupResultType.VALID_STACK_AND_VALID_HASH.getResult( - new GT_Recipe_AssemblyLine( - null, - 0, - aInputs.toArray(new ItemStack[0]), - aFluidInputs.toArray(new FluidStack[0]), - aOutput, - aTime, - aEU)); + new GT_Recipe_AssemblyLine( + null, + 0, + aInputs.toArray(new ItemStack[0]), + aFluidInputs.toArray(new FluidStack[0]), + aOutput, + aTime, + aEU)); } for (GT_Recipe_AssemblyLine aRecipe : GT_Recipe.GT_Recipe_AssemblyLine.sAssemblylineRecipes) { @@ -192,7 +192,7 @@ public class GT_AssemblyLineUtils { private static boolean areStacksEqual(ItemStack[] lhs, List rhs) { return lhs == null ? rhs.isEmpty() - : !rhs.isEmpty() && GT_Utility.areStackListsEqual(Arrays.asList(lhs), rhs, false, true); + : !rhs.isEmpty() && GT_Utility.areStackListsEqual(Arrays.asList(lhs), rhs, false, true); } /** @@ -279,8 +279,8 @@ public class GT_AssemblyLineUtils { */ public static boolean doesDataStickHaveOutput(ItemStack aDataStick) { if (isItemDataStick(aDataStick) && aDataStick.hasTagCompound() - && aDataStick.getTagCompound() - .hasKey("output")) { + && aDataStick.getTagCompound() + .hasKey("output")) { return true; } return false; @@ -312,7 +312,7 @@ public class GT_AssemblyLineUtils { if (isItemDataStick(aDataStick) && aDataStick.hasTagCompound()) { NBTTagCompound aNBT = aDataStick.getTagCompound(); if (aNBT.hasKey("Data.Recipe.Hash") && !aNBT.getString("Data.Recipe.Hash") - .equals("Hash.0")) { + .equals("Hash.0")) { return true; } } @@ -378,8 +378,8 @@ public class GT_AssemblyLineUtils { if (isItemDataStick(aDataStick)) { String s = aNewRecipe.mOutput.getDisplayName(); if (FMLCommonHandler.instance() - .getEffectiveSide() - .isServer()) { + .getEffectiveSide() + .isServer()) { s = GT_Assemblyline_Server.lServerNames.get(aNewRecipe.mOutput.getDisplayName()); if (s == null) { s = aNewRecipe.mOutput.getDisplayName(); @@ -390,11 +390,11 @@ public class GT_AssemblyLineUtils { if (GT_Values.D1) { GT_Recipe_AssemblyLine aOldRecipe = findAssemblyLineRecipeFromDataStick(aDataStick, true).recipe; GT_FML_LOGGER.info( - "Updating data stick: " + aDataStick.getDisplayName() - + " | Old Recipe Hash: " - + generateRecipeHash(aOldRecipe) - + ", New Recipe Hash: " - + aHash); + "Updating data stick: " + aDataStick.getDisplayName() + + " | Old Recipe Hash: " + + generateRecipeHash(aOldRecipe) + + ", New Recipe Hash: " + + aHash); } String author = "Assembling Line Recipe Generator"; @@ -445,20 +445,20 @@ public class GT_AssemblyLineUtils { NBTTagList tNBTList = new NBTTagList(); s = aNewRecipe.mOutput.getDisplayName(); if (FMLCommonHandler.instance() - .getEffectiveSide() - .isServer()) { + .getEffectiveSide() + .isServer()) { s = GT_Assemblyline_Server.lServerNames.get(aNewRecipe.mOutput.getDisplayName()); if (s == null) s = aNewRecipe.mOutput.getDisplayName(); } tNBTList.appendTag( - new NBTTagString( - "Construction plan for " + aNewRecipe.mOutput.stackSize - + " " - + s - + ". Needed EU/t: " - + aNewRecipe.mEUt - + " Production time: " - + (aNewRecipe.mDuration / 20))); + new NBTTagString( + "Construction plan for " + aNewRecipe.mOutput.stackSize + + " " + + s + + ". Needed EU/t: " + + aNewRecipe.mEUt + + " Production time: " + + (aNewRecipe.mDuration / 20))); for (int i = 0; i < aNewRecipe.mInputs.length; i++) { if (aNewRecipe.mOreDictAlt[i] != null) { int count = 0; @@ -467,16 +467,16 @@ public class GT_AssemblyLineUtils { if (tStack != null) { s = tStack.getDisplayName(); if (FMLCommonHandler.instance() - .getEffectiveSide() - .isServer()) { + .getEffectiveSide() + .isServer()) { s = GT_Assemblyline_Server.lServerNames.get(tStack.getDisplayName()); if (s == null) s = tStack.getDisplayName(); } tBuilder.append(count == 0 ? "" : "\nOr ") - .append(tStack.stackSize) - .append(" ") - .append(s); + .append(tStack.stackSize) + .append(" ") + .append(s); count++; } } @@ -484,28 +484,27 @@ public class GT_AssemblyLineUtils { } else if (aNewRecipe.mInputs[i] != null) { s = aNewRecipe.mInputs[i].getDisplayName(); if (FMLCommonHandler.instance() - .getEffectiveSide() - .isServer()) { + .getEffectiveSide() + .isServer()) { s = GT_Assemblyline_Server.lServerNames.get(aNewRecipe.mInputs[i].getDisplayName()); if (s == null) s = aNewRecipe.mInputs[i].getDisplayName(); } tNBTList.appendTag( - new NBTTagString( - "Input Bus " + (i + 1) + ": " + aNewRecipe.mInputs[i].stackSize + " " + s)); + new NBTTagString("Input Bus " + (i + 1) + ": " + aNewRecipe.mInputs[i].stackSize + " " + s)); } } for (int i = 0; i < aNewRecipe.mFluidInputs.length; i++) { if (aNewRecipe.mFluidInputs[i] != null) { s = aNewRecipe.mFluidInputs[i].getLocalizedName(); if (FMLCommonHandler.instance() - .getEffectiveSide() - .isServer()) { + .getEffectiveSide() + .isServer()) { s = GT_Assemblyline_Server.lServerNames.get(aNewRecipe.mFluidInputs[i].getLocalizedName()); if (s == null) s = aNewRecipe.mFluidInputs[i].getLocalizedName(); } tNBTList.appendTag( - new NBTTagString( - "Input Hatch " + (i + 1) + ": " + aNewRecipe.mFluidInputs[i].amount + "L " + s)); + new NBTTagString( + "Input Hatch " + (i + 1) + ": " + aNewRecipe.mFluidInputs[i].amount + "L " + s)); } } tNBT.setTag("pages", tNBTList); diff --git a/src/main/java/gregtech/api/util/GT_Assemblyline_Server.java b/src/main/java/gregtech/api/util/GT_Assemblyline_Server.java index 7a1515ec0c..e5889a6442 100644 --- a/src/main/java/gregtech/api/util/GT_Assemblyline_Server.java +++ b/src/main/java/gregtech/api/util/GT_Assemblyline_Server.java @@ -18,19 +18,19 @@ public class GT_Assemblyline_Server { public static LinkedHashMap lServerNames = new LinkedHashMap<>(); private static LinkedHashMap internal2 = new LinkedHashMap<>(), internal3 = new LinkedHashMap<>(), - internal4 = new LinkedHashMap<>(); + internal4 = new LinkedHashMap<>(); private static HashMap internal = new HashMap<>(); public static void fillMap(FMLPreInitializationEvent aEvent) { String s = new String( - aEvent.getModConfigurationDirectory() - .getAbsolutePath()); + aEvent.getModConfigurationDirectory() + .getAbsolutePath()); s = s.substring( - 0, - aEvent.getModConfigurationDirectory() - .getAbsolutePath() - .length() - 6); + 0, + aEvent.getModConfigurationDirectory() + .getAbsolutePath() + .length() - 6); s = s + "GregTech.lang"; File f = new File(s); s = ""; @@ -41,43 +41,38 @@ public class GT_Assemblyline_Server { for (Map.Entry entry : internal.entrySet()) { try { s = entry.getValue() - .getString() - .replaceAll("%", ""); + .getString() + .replaceAll("%", ""); if (entry.getKey() - .contains("metaitem") - && s.contains("material")) - internal2.put(entry.getKey(), s); + .contains("metaitem") && s.contains("material")) internal2.put(entry.getKey(), s); else if (entry.getKey() - .contains("blockmachines") - && s.contains("material")) - internal3.put(entry.getKey(), s); + .contains("blockmachines") && s.contains("material")) internal3.put(entry.getKey(), s); else if ((entry.getKey() - .contains("blockores") - || (entry.getKey() - .contains("blockmetal") - || entry.getKey() - .contains("blockgem"))) - && s.contains("material")) - internal4.put(entry.getKey(), s); + .contains("blockores") + || (entry.getKey() + .contains("blockmetal") + || entry.getKey() + .contains("blockgem"))) + && s.contains("material")) internal4.put(entry.getKey(), s); else lServerNames.put(entry.getKey(), s); } catch (Exception ignored) {} } for (Map.Entry entry : internal2.entrySet()) { try { if (entry.getKey() - .contains("name")) { + .contains("name")) { int i = Integer.parseInt( - entry.getKey() - .substring( - "gt.metaitem.01.".length(), - entry.getKey() - .length() - ".name".length())); + entry.getKey() + .substring( + "gt.metaitem.01.".length(), + entry.getKey() + .length() - ".name".length())); i = i % 1000; if (GregTech_API.sGeneratedMaterials[i] != null) lServerNames.put( - entry.getKey(), - entry.getValue() - .replace("material", GregTech_API.sGeneratedMaterials[i].toString())); + entry.getKey(), + entry.getValue() + .replace("material", GregTech_API.sGeneratedMaterials[i].toString())); else lServerNames.put(entry.getKey(), null); } } catch (Exception ignored) {} @@ -85,237 +80,225 @@ public class GT_Assemblyline_Server { for (Map.Entry entry : internal3.entrySet()) { try { if (entry.getKey() - .contains("cable")) + .contains("cable")) lServerNames.put( - entry.getKey(), - entry.getValue() - .replace( - "material", - entry.getKey() - .substring( - "gt.blockmachines.cable.".length(), - entry.getKey() - .length() - ".01.name".length()))); + entry.getKey(), + entry.getValue() + .replace( + "material", + entry.getKey() + .substring( + "gt.blockmachines.cable.".length(), + entry.getKey() + .length() - ".01.name".length()))); else if (entry.getKey() - .contains("gt_frame_")) + .contains("gt_frame_")) lServerNames.put( - entry.getKey(), - entry.getValue() - .replace( - "material", - entry.getKey() - .substring( - "gt.blockmachines.gt_frame_".length(), - entry.getKey() - .length() - ".name".length()))); + entry.getKey(), + entry.getValue() + .replace( + "material", + entry.getKey() + .substring( + "gt.blockmachines.gt_frame_".length(), + entry.getKey() + .length() - ".name".length()))); else if (entry.getKey() - .contains("gt_pipe_")) { - if (!entry.getKey() - .contains("_huge") - && !entry.getKey() - .contains("_large") - && !entry.getKey() - .contains("_nonuple") - && !entry.getKey() - .contains("_quadruple") - && !entry.getKey() - .contains("_small") - && !entry.getKey() - .contains("_tiny")) - lServerNames.put( - entry.getKey(), - entry.getValue() - .replace( - "material", - entry.getKey() - .substring( - "gt.blockmachines.gt_pipe_".length(), - entry.getKey() - .length() - ".name".length()))); - else if (entry.getKey() - .contains("_huge") - || entry.getKey() - .contains("_tiny")) - lServerNames.put( - entry.getKey(), - entry.getValue() - .replace( - "material", - entry.getKey() - .substring( - "gt.blockmachines.gt_pipe_".length(), - entry.getKey() - .length() - "_tiny.name".length()))); - else if (entry.getKey() - .contains("_large") - || entry.getKey() - .contains("_small")) - lServerNames.put( - entry.getKey(), - entry.getValue() - .replace( - "material", - entry.getKey() - .substring( - "gt.blockmachines.gt_pipe_".length(), - entry.getKey() - .length() - "_large.name".length()))); - else if (entry.getKey() - .contains("_nonuple")) - lServerNames.put( - entry.getKey(), - entry.getValue() - .replace( - "material", - entry.getKey() - .substring( - "gt.blockmachines.gt_pipe_".length(), - entry.getKey() - .length() - "_nonuple.name".length()))); - else if (entry.getKey() - .contains("_quadruple")) - lServerNames.put( - entry.getKey(), - entry.getValue() - .replace( - "material", - entry.getKey() - .substring( - "gt.blockmachines.gt_pipe_".length(), - entry.getKey() - .length() - "_quadruple.name".length()))); - } else - if (entry.getKey() - .contains("wire")) - lServerNames.put( + .contains("gt_pipe_")) { + if (!entry.getKey() + .contains("_huge") + && !entry.getKey() + .contains("_large") + && !entry.getKey() + .contains("_nonuple") + && !entry.getKey() + .contains("_quadruple") + && !entry.getKey() + .contains("_small") + && !entry.getKey() + .contains("_tiny")) + lServerNames.put( + entry.getKey(), + entry.getValue() + .replace( + "material", + entry.getKey() + .substring( + "gt.blockmachines.gt_pipe_".length(), + entry.getKey() + .length() - ".name".length()))); + else if (entry.getKey() + .contains("_huge") + || entry.getKey() + .contains("_tiny")) + lServerNames.put( + entry.getKey(), + entry.getValue() + .replace( + "material", + entry.getKey() + .substring( + "gt.blockmachines.gt_pipe_".length(), + entry.getKey() + .length() - "_tiny.name".length()))); + else if (entry.getKey() + .contains("_large") + || entry.getKey() + .contains("_small")) + lServerNames.put( + entry.getKey(), + entry.getValue() + .replace( + "material", + entry.getKey() + .substring( + "gt.blockmachines.gt_pipe_".length(), + entry.getKey() + .length() - "_large.name".length()))); + else if (entry.getKey() + .contains("_nonuple")) + lServerNames.put( + entry.getKey(), + entry.getValue() + .replace( + "material", + entry.getKey() + .substring( + "gt.blockmachines.gt_pipe_".length(), + entry.getKey() + .length() - "_nonuple.name".length()))); + else if (entry.getKey() + .contains("_quadruple")) + lServerNames.put( entry.getKey(), entry.getValue() - .replace( - "material", - entry.getKey() - .substring( - "gt.blockmachines.wire.".length(), - entry.getKey() - .length() - ".01.name".length()))); - else lServerNames.put(entry.getKey(), entry.getValue()); + .replace( + "material", + entry.getKey() + .substring( + "gt.blockmachines.gt_pipe_".length(), + entry.getKey() + .length() - "_quadruple.name".length()))); + } else if (entry.getKey() + .contains("wire")) + lServerNames.put( + entry.getKey(), + entry.getValue() + .replace( + "material", + entry.getKey() + .substring( + "gt.blockmachines.wire.".length(), + entry.getKey() + .length() - ".01.name".length()))); + else lServerNames.put(entry.getKey(), entry.getValue()); } catch (Exception ignored) {} } for (Map.Entry entry : internal4.entrySet()) { try { if (entry.getKey() - .contains("blockores")) { + .contains("blockores")) { int i = Integer.parseInt( - entry.getKey() - .substring( - "gt.blockores.".length(), - entry.getKey() - .length() - ".name".length())); + entry.getKey() + .substring( + "gt.blockores.".length(), + entry.getKey() + .length() - ".name".length())); i = i % 1000; if (GregTech_API.sGeneratedMaterials[i] != null) lServerNames.put( - entry.getKey(), - entry.getValue() - .replace("material", GregTech_API.sGeneratedMaterials[i].toString())); + entry.getKey(), + entry.getValue() + .replace("material", GregTech_API.sGeneratedMaterials[i].toString())); else lServerNames.put(entry.getKey(), null); } else if (entry.getKey() - .contains("blockmetal")) { - Materials[] mMats = null; - String t = entry.getKey() - .substring("gt.blockmetal".length()); - t = t.substring(0, 1); - int i = Integer.parseInt(t); - switch (i) { - case 1 -> mMats = new Materials[] { Materials.Adamantium, Materials.Aluminium, - Materials.Americium, Materials.AnnealedCopper, Materials.Antimony, - Materials.Arsenic, Materials.AstralSilver, Materials.BatteryAlloy, - Materials.Beryllium, Materials.Bismuth, Materials.BismuthBronze, - Materials.BlackBronze, Materials.BlackSteel, Materials.BlueAlloy, - Materials.BlueSteel, Materials.Brass }; - case 2 -> mMats = new Materials[] { Materials.Bronze, Materials.Caesium, - Materials.Cerium, Materials.Chrome, Materials.ChromiumDioxide, - Materials.Cobalt, Materials.CobaltBrass, Materials.Copper, - Materials.Cupronickel, Materials.DamascusSteel, Materials.DarkIron, - Materials.DeepIron, Materials.Desh, Materials.Duranium, - Materials.Dysprosium, Materials.Electrum }; - case 3 -> mMats = new Materials[] { Materials.ElectrumFlux, Materials.Enderium, - Materials.Erbium, Materials.Europium, Materials.FierySteel, - Materials.Gadolinium, Materials.Gallium, Materials.Holmium, - Materials.HSLA, Materials.Indium, Materials.InfusedGold, - Materials.Invar, Materials.Iridium, Materials.IronMagnetic, - Materials.IronWood, Materials.Kanthal }; - case 4 -> mMats = new Materials[] { Materials.Knightmetal, Materials.Lanthanum, - Materials.Lead, Materials.Lutetium, Materials.Magnalium, - Materials.Magnesium, Materials.Manganese, Materials.MeteoricIron, - Materials.MeteoricSteel, Materials.Trinium, Materials.Mithril, - Materials.Molybdenum, Materials.Naquadah, Materials.NaquadahAlloy, - Materials.NaquadahEnriched, Materials.Naquadria }; - case 5 -> mMats = new Materials[] { Materials.Neodymium, - Materials.NeodymiumMagnetic, Materials.Neutronium, Materials.Nichrome, - Materials.Nickel, Materials.Niobium, Materials.NiobiumNitride, - Materials.NiobiumTitanium, Materials.Osmiridium, Materials.Osmium, - Materials.Palladium, Materials.PigIron, Materials.Platinum, - Materials.Plutonium, Materials.Plutonium241, Materials.Praseodymium }; - case 6 -> mMats = new Materials[] { Materials.Promethium, Materials.RedAlloy, - Materials.RedSteel, Materials.RoseGold, Materials.Rubidium, - Materials.Samarium, Materials.Scandium, Materials.ShadowIron, - Materials.ShadowSteel, Materials.Silicon, Materials.Silver, - Materials.SolderingAlloy, Materials.StainlessSteel, Materials.Steel, - Materials.SteelMagnetic, Materials.SterlingSilver }; - case 7 -> mMats = new Materials[] { Materials.Sunnarium, Materials.Tantalum, - Materials.Tellurium, Materials.Terbium, Materials.Thaumium, - Materials.Thorium, Materials.Thulium, Materials.Tin, Materials.TinAlloy, - Materials.Titanium, Materials.Tritanium, Materials.Tungsten, - Materials.TungstenSteel, Materials.Ultimet, Materials.Uranium, - Materials.Uranium235 }; - case 8 -> mMats = new Materials[] { Materials.Vanadium, - Materials.VanadiumGallium, Materials.WroughtIron, Materials.Ytterbium, - Materials.Yttrium, Materials.YttriumBariumCuprate, Materials.Zinc, - Materials.TungstenCarbide, Materials.VanadiumSteel, Materials.HSSG, - Materials.HSSE, Materials.HSSS, Materials.Steeleaf, Materials.Ichorium, - Materials.Firestone }; - } - t = entry.getKey() - .substring( - "gt.blockmetal1.".length(), - entry.getKey() - .length() - ".name".length()); - i = Integer.parseInt(t); - lServerNames.put(entry.getKey(), "Block of " + mMats[i].toString()); - mMats = null; - } else - if (entry.getKey() - .contains("blockgem")) { - Materials[] mMats = null; - String t = entry.getKey() - .substring("gt.blockgem".length()); - t = t.substring(0, 1); - int i = Integer.parseInt(t); - switch (i) { - case 1 -> mMats = new Materials[] { Materials.InfusedAir, Materials.Amber, - Materials.Amethyst, Materials.InfusedWater, Materials.BlueTopaz, - Materials.CertusQuartz, Materials.Dilithium, Materials.EnderEye, - Materials.EnderPearl, Materials.FoolsRuby, Materials.Force, - Materials.Forcicium, Materials.Forcillium, Materials.GreenSapphire, - Materials.InfusedFire, Materials.Jasper, MaterialsBotania.ManaDiamond, - MaterialsBotania.BotaniaDragonstone }; - case 2 -> mMats = new Materials[] { Materials.Lazurite, Materials.Lignite, - Materials.Monazite, Materials.Niter, Materials.Olivine, Materials.Opal, - Materials.InfusedOrder, Materials.InfusedEntropy, Materials.Phosphorus, - Materials.Quartzite, Materials.GarnetRed, Materials.Ruby, - Materials.Sapphire, Materials.Sodalite, Materials.Tanzanite, - Materials.InfusedEarth }; - case 3 -> mMats = new Materials[] { Materials.Topaz, Materials.Vinteum, - Materials.GarnetYellow, Materials.NetherStar, Materials.Charcoal, - Materials.Blaze }; - } - t = entry.getKey() - .substring( - "gt.blockgem1.".length(), - entry.getKey() - .length() - ".name".length()); - i = Integer.parseInt(t); - lServerNames.put(entry.getKey(), "Block of " + mMats[i].toString()); - mMats = null; - } + .contains("blockmetal")) { + Materials[] mMats = null; + String t = entry.getKey() + .substring("gt.blockmetal".length()); + t = t.substring(0, 1); + int i = Integer.parseInt(t); + switch (i) { + case 1 -> mMats = new Materials[] { Materials.Adamantium, Materials.Aluminium, + Materials.Americium, Materials.AnnealedCopper, Materials.Antimony, Materials.Arsenic, + Materials.AstralSilver, Materials.BatteryAlloy, Materials.Beryllium, Materials.Bismuth, + Materials.BismuthBronze, Materials.BlackBronze, Materials.BlackSteel, + Materials.BlueAlloy, Materials.BlueSteel, Materials.Brass }; + case 2 -> mMats = new Materials[] { Materials.Bronze, Materials.Caesium, Materials.Cerium, + Materials.Chrome, Materials.ChromiumDioxide, Materials.Cobalt, Materials.CobaltBrass, + Materials.Copper, Materials.Cupronickel, Materials.DamascusSteel, Materials.DarkIron, + Materials.DeepIron, Materials.Desh, Materials.Duranium, Materials.Dysprosium, + Materials.Electrum }; + case 3 -> mMats = new Materials[] { Materials.ElectrumFlux, Materials.Enderium, + Materials.Erbium, Materials.Europium, Materials.FierySteel, Materials.Gadolinium, + Materials.Gallium, Materials.Holmium, Materials.HSLA, Materials.Indium, + Materials.InfusedGold, Materials.Invar, Materials.Iridium, Materials.IronMagnetic, + Materials.IronWood, Materials.Kanthal }; + case 4 -> mMats = new Materials[] { Materials.Knightmetal, Materials.Lanthanum, + Materials.Lead, Materials.Lutetium, Materials.Magnalium, Materials.Magnesium, + Materials.Manganese, Materials.MeteoricIron, Materials.MeteoricSteel, Materials.Trinium, + Materials.Mithril, Materials.Molybdenum, Materials.Naquadah, Materials.NaquadahAlloy, + Materials.NaquadahEnriched, Materials.Naquadria }; + case 5 -> mMats = new Materials[] { Materials.Neodymium, Materials.NeodymiumMagnetic, + Materials.Neutronium, Materials.Nichrome, Materials.Nickel, Materials.Niobium, + Materials.NiobiumNitride, Materials.NiobiumTitanium, Materials.Osmiridium, + Materials.Osmium, Materials.Palladium, Materials.PigIron, Materials.Platinum, + Materials.Plutonium, Materials.Plutonium241, Materials.Praseodymium }; + case 6 -> mMats = new Materials[] { Materials.Promethium, Materials.RedAlloy, + Materials.RedSteel, Materials.RoseGold, Materials.Rubidium, Materials.Samarium, + Materials.Scandium, Materials.ShadowIron, Materials.ShadowSteel, Materials.Silicon, + Materials.Silver, Materials.SolderingAlloy, Materials.StainlessSteel, Materials.Steel, + Materials.SteelMagnetic, Materials.SterlingSilver }; + case 7 -> mMats = new Materials[] { Materials.Sunnarium, Materials.Tantalum, + Materials.Tellurium, Materials.Terbium, Materials.Thaumium, Materials.Thorium, + Materials.Thulium, Materials.Tin, Materials.TinAlloy, Materials.Titanium, + Materials.Tritanium, Materials.Tungsten, Materials.TungstenSteel, Materials.Ultimet, + Materials.Uranium, Materials.Uranium235 }; + case 8 -> mMats = new Materials[] { Materials.Vanadium, Materials.VanadiumGallium, + Materials.WroughtIron, Materials.Ytterbium, Materials.Yttrium, + Materials.YttriumBariumCuprate, Materials.Zinc, Materials.TungstenCarbide, + Materials.VanadiumSteel, Materials.HSSG, Materials.HSSE, Materials.HSSS, + Materials.Steeleaf, Materials.Ichorium, Materials.Firestone }; + } + t = entry.getKey() + .substring( + "gt.blockmetal1.".length(), + entry.getKey() + .length() - ".name".length()); + i = Integer.parseInt(t); + lServerNames.put(entry.getKey(), "Block of " + mMats[i].toString()); + mMats = null; + } else if (entry.getKey() + .contains("blockgem")) { + Materials[] mMats = null; + String t = entry.getKey() + .substring("gt.blockgem".length()); + t = t.substring(0, 1); + int i = Integer.parseInt(t); + switch (i) { + case 1 -> mMats = new Materials[] { Materials.InfusedAir, Materials.Amber, + Materials.Amethyst, Materials.InfusedWater, Materials.BlueTopaz, + Materials.CertusQuartz, Materials.Dilithium, Materials.EnderEye, + Materials.EnderPearl, Materials.FoolsRuby, Materials.Force, Materials.Forcicium, + Materials.Forcillium, Materials.GreenSapphire, Materials.InfusedFire, + Materials.Jasper, MaterialsBotania.ManaDiamond, + MaterialsBotania.BotaniaDragonstone }; + case 2 -> mMats = new Materials[] { Materials.Lazurite, Materials.Lignite, + Materials.Monazite, Materials.Niter, Materials.Olivine, Materials.Opal, + Materials.InfusedOrder, Materials.InfusedEntropy, Materials.Phosphorus, + Materials.Quartzite, Materials.GarnetRed, Materials.Ruby, Materials.Sapphire, + Materials.Sodalite, Materials.Tanzanite, Materials.InfusedEarth }; + case 3 -> mMats = new Materials[] { Materials.Topaz, Materials.Vinteum, + Materials.GarnetYellow, Materials.NetherStar, Materials.Charcoal, Materials.Blaze }; + } + t = entry.getKey() + .substring( + "gt.blockgem1.".length(), + entry.getKey() + .length() - ".name".length()); + i = Integer.parseInt(t); + lServerNames.put(entry.getKey(), "Block of " + mMats[i].toString()); + mMats = null; + } } catch (Exception ignored) {} } diff --git a/src/main/java/gregtech/api/util/GT_BaseCrop.java b/src/main/java/gregtech/api/util/GT_BaseCrop.java index 12e6b86019..f3337a8c0a 100644 --- a/src/main/java/gregtech/api/util/GT_BaseCrop.java +++ b/src/main/java/gregtech/api/util/GT_BaseCrop.java @@ -57,28 +57,27 @@ public class GT_BaseCrop extends CropCard implements ICropCardInfo { * @param aHarvestSize the size the Crop needs to be harvested. forced to be between 2 and max size */ public GT_BaseCrop(int aID, String aCropName, String aDiscoveredBy, ItemStack aBaseSeed, int aTier, int aMaxSize, - int aGrowthSpeed, int aAfterHarvestSize, int aHarvestSize, int aStatChemical, int aStatFood, - int aStatDefensive, int aStatColor, int aStatWeed, String[] aAttributes, ItemStack aDrop, - ItemStack[] aSpecialDrops) { + int aGrowthSpeed, int aAfterHarvestSize, int aHarvestSize, int aStatChemical, int aStatFood, int aStatDefensive, + int aStatColor, int aStatWeed, String[] aAttributes, ItemStack aDrop, ItemStack[] aSpecialDrops) { new GT_BaseCrop( - aID, - aCropName, - aDiscoveredBy, - aBaseSeed, - aTier, - aMaxSize, - aGrowthSpeed, - aAfterHarvestSize, - aHarvestSize, - aStatChemical, - aStatFood, - aStatDefensive, - aStatColor, - aStatWeed, - aAttributes, - null, - aDrop, - aSpecialDrops); + aID, + aCropName, + aDiscoveredBy, + aBaseSeed, + aTier, + aMaxSize, + aGrowthSpeed, + aAfterHarvestSize, + aHarvestSize, + aStatChemical, + aStatFood, + aStatDefensive, + aStatColor, + aStatWeed, + aAttributes, + null, + aDrop, + aSpecialDrops); } /** @@ -96,9 +95,9 @@ public class GT_BaseCrop extends CropCard implements ICropCardInfo { * @param aBlock the block below needed for crop to grow. If null no block needed */ public GT_BaseCrop(int aID, String aCropName, String aDiscoveredBy, ItemStack aBaseSeed, int aTier, int aMaxSize, - int aGrowthSpeed, int aAfterHarvestSize, int aHarvestSize, int aStatChemical, int aStatFood, - int aStatDefensive, int aStatColor, int aStatWeed, String[] aAttributes, Materials aBlock, ItemStack aDrop, - ItemStack[] aSpecialDrops) { + int aGrowthSpeed, int aAfterHarvestSize, int aHarvestSize, int aStatChemical, int aStatFood, int aStatDefensive, + int aStatColor, int aStatWeed, String[] aAttributes, Materials aBlock, ItemStack aDrop, + ItemStack[] aSpecialDrops) { mName = aCropName; aID = GT_Config.addIDConfig(ConfigCategories.IDs.crops, mName.replaceAll(" ", "_"), aID); if (aDiscoveredBy != null && !aDiscoveredBy.equals(E)) mDiscoveredBy = aDiscoveredBy; @@ -126,13 +125,13 @@ public class GT_BaseCrop extends CropCard implements ICropCardInfo { if (bIc2NeiLoaded) { try { Class.forName("speiger.src.crops.api.CropPluginAPI") - .getMethod("registerCropInfo", Class.forName("speiger.src.crops.api.ICropCardInfo")) - .invoke( - Class.forName("speiger.src.crops.api.CropPluginAPI") - .getField("instance"), - this); + .getMethod("registerCropInfo", Class.forName("speiger.src.crops.api.ICropCardInfo")) + .invoke( + Class.forName("speiger.src.crops.api.CropPluginAPI") + .getField("instance"), + this); } catch (IllegalAccessException | ClassNotFoundException | SecurityException | NoSuchMethodException - | NoSuchFieldException | InvocationTargetException | IllegalArgumentException ex) { + | NoSuchFieldException | InvocationTargetException | IllegalArgumentException ex) { bIc2NeiLoaded = false; } } @@ -207,11 +206,7 @@ public class GT_BaseCrop extends CropCard implements ICropCardInfo { public ItemStack getGain(ICropTile aCrop) { int tDrop = 0; if (mSpecialDrops != null && (tDrop = java.util.concurrent.ThreadLocalRandom.current() - .nextInt( - 0, - (mSpecialDrops.length * 2) - + 2)) - < mSpecialDrops.length && mSpecialDrops[tDrop] != null) { + .nextInt(0, (mSpecialDrops.length * 2) + 2)) < mSpecialDrops.length && mSpecialDrops[tDrop] != null) { return GT_Utility.copyOrNull(mSpecialDrops[tDrop]); } return GT_Utility.copyOrNull(mDrop); @@ -234,19 +229,13 @@ public class GT_BaseCrop extends CropCard implements ICropCardInfo { } for (int i = 1; i < this.getrootslength(aCrop); i++) { Block tBlock = aCrop.getWorld() - .getBlock( - aCrop.getLocation().posX, - aCrop.getLocation().posY - i, - aCrop.getLocation().posZ); + .getBlock(aCrop.getLocation().posX, aCrop.getLocation().posY - i, aCrop.getLocation().posZ); if ((tBlock instanceof GT_Block_Ores_Abstract)) { TileEntity tTileEntity = aCrop.getWorld() - .getTileEntity( - aCrop.getLocation().posX, - aCrop.getLocation().posY - i, - aCrop.getLocation().posZ); + .getTileEntity(aCrop.getLocation().posX, aCrop.getLocation().posY - i, aCrop.getLocation().posZ); if ((tTileEntity instanceof GT_TileEntity_Ores)) { Materials tMaterial = GregTech_API.sGeneratedMaterials[(((GT_TileEntity_Ores) tTileEntity).mMetaData - % 1000)]; + % 1000)]; if ((tMaterial != null) && (tMaterial != Materials._NULL)) { if (tMaterial == mBlock) { return true; @@ -257,18 +246,14 @@ public class GT_BaseCrop extends CropCard implements ICropCardInfo { } } else { int tMetaID = aCrop.getWorld() - .getBlockMetadata( - aCrop.getLocation().posX, - aCrop.getLocation().posY - i, - aCrop.getLocation().posZ); + .getBlockMetadata(aCrop.getLocation().posX, aCrop.getLocation().posY - i, aCrop.getLocation().posZ); ItemData tAssotiation = GT_OreDictUnificator.getAssociation(new ItemStack(tBlock, 1, tMetaID)); if ((tAssotiation != null) && (tAssotiation.mPrefix.toString() - .startsWith("ore")) - && (tAssotiation.mMaterial.mMaterial == mBlock)) { + .startsWith("ore")) && (tAssotiation.mMaterial.mMaterial == mBlock)) { return true; } if ((tAssotiation != null) && (tAssotiation.mPrefix == OrePrefixes.block) - && (tAssotiation.mMaterial.mMaterial == mBlock)) { + && (tAssotiation.mMaterial.mMaterial == mBlock)) { return true; } } @@ -293,10 +278,10 @@ public class GT_BaseCrop extends CropCard implements ICropCardInfo { if (mBlock != null) { ArrayList result = new ArrayList<>(1); result.add( - String.format( - "Requires %s Ore or Block of %s as soil block to reach full growth.", - mBlock.mName, - mBlock.mName)); + String.format( + "Requires %s Ore or Block of %s as soil block to reach full growth.", + mBlock.mName, + mBlock.mName)); return result; } return null; diff --git a/src/main/java/gregtech/api/util/GT_CLS_Compat.java b/src/main/java/gregtech/api/util/GT_CLS_Compat.java index 4dff5f65f9..0d3864e26f 100644 --- a/src/main/java/gregtech/api/util/GT_CLS_Compat.java +++ b/src/main/java/gregtech/api/util/GT_CLS_Compat.java @@ -45,24 +45,24 @@ public class GT_CLS_Compat { } Optional.ofNullable(alexiilMinecraftDisplayer) - .ifPresent(e -> { - try { - getLastPercent = e.getMethod("getLastPercent"); - isReplacingVanillaMaterials = e.getField("isReplacingVanillaMaterials"); - isRegisteringGTmaterials = e.getField("isRegisteringGTmaterials"); - } catch (NoSuchMethodException | NoSuchFieldException ex) { - GT_Mod.GT_FML_LOGGER.catching(ex); - } - }); + .ifPresent(e -> { + try { + getLastPercent = e.getMethod("getLastPercent"); + isReplacingVanillaMaterials = e.getField("isReplacingVanillaMaterials"); + isRegisteringGTmaterials = e.getField("isRegisteringGTmaterials"); + } catch (NoSuchMethodException | NoSuchFieldException ex) { + GT_Mod.GT_FML_LOGGER.catching(ex); + } + }); Optional.ofNullable(alexiilProgressDisplayer) - .ifPresent(e -> { - try { - displayProgress = e.getMethod("displayProgress", String.class, float.class); - } catch (NoSuchMethodException ex) { - GT_Mod.GT_FML_LOGGER.catching(ex); - } - }); + .ifPresent(e -> { + try { + displayProgress = e.getMethod("displayProgress", String.class, float.class); + } catch (NoSuchMethodException ex) { + GT_Mod.GT_FML_LOGGER.catching(ex); + } + }); try { progressBarStep = cpwProgressBar.getDeclaredField("step"); @@ -75,7 +75,7 @@ public class GT_CLS_Compat { private GT_CLS_Compat() {} private static void registerAndReportProgression(String materialsType, Collection materials, - ProgressManager.ProgressBar progressBar, Function getName, Consumer action) { + ProgressManager.ProgressBar progressBar, Function getName, Consumer action) { int sizeStep = materials.size(); final long progressionReportsEvery = 100; final long bakingMsgEvery = 1000; @@ -89,7 +89,7 @@ public class GT_CLS_Compat { if (nextProgressionReportAt < now) { nextProgressionReportAt = now + progressionReportsEvery; String materialName = getName.apply(m) - .toString(); + .toString(); try { displayProgress.invoke(null, materialName, (float) currentStep / sizeStep); } catch (IllegalAccessException | InvocationTargetException iae) { @@ -104,8 +104,8 @@ public class GT_CLS_Compat { } if (nextBakingMsgAt < now) { nextBakingMsgAt = now + bakingMsgEvery; - GT_Mod.GT_FML_LOGGER.info( - String.format("%s - Baking: %d%%", materialsType, currentStep * 100 / sizeStep)); + GT_Mod.GT_FML_LOGGER + .info(String.format("%s - Baking: %d%%", materialsType, currentStep * 100 / sizeStep)); } action.accept(m); currentStep += 1; @@ -119,35 +119,35 @@ public class GT_CLS_Compat { } public static void stepMaterialsCLS(Collection mEvents, - ProgressManager.ProgressBar progressBar) throws IllegalAccessException, InvocationTargetException { + ProgressManager.ProgressBar progressBar) throws IllegalAccessException, InvocationTargetException { try { isRegisteringGTmaterials.set(null, true); } catch (IllegalArgumentException | IllegalAccessException e) { GT_Mod.GT_FML_LOGGER.catching(e); } registerAndReportProgression( - "GregTech materials", - mEvents, - progressBar, - m -> m.mMaterial, - GT_Proxy::registerRecipes); + "GregTech materials", + mEvents, + progressBar, + m -> m.mMaterial, + GT_Proxy::registerRecipes); ProgressManager.pop(progressBar); isRegisteringGTmaterials.set(null, false); } public static void doActualRegistrationCLS(ProgressManager.ProgressBar progressBar, - Set replacedVanillaItemsSet) throws InvocationTargetException, IllegalAccessException { + Set replacedVanillaItemsSet) throws InvocationTargetException, IllegalAccessException { try { isReplacingVanillaMaterials.set(null, true); } catch (IllegalArgumentException | IllegalAccessException e) { GT_Mod.GT_FML_LOGGER.catching(e); } registerAndReportProgression( - "Vanilla materials", - replacedVanillaItemsSet, - progressBar, - m -> m.mDefaultLocalName, - GT_PostLoad::doActualRegistration); + "Vanilla materials", + replacedVanillaItemsSet, + progressBar, + m -> m.mDefaultLocalName, + GT_PostLoad::doActualRegistration); } public static void pushToDisplayProgress() throws InvocationTargetException, IllegalAccessException { diff --git a/src/main/java/gregtech/api/util/GT_ChunkAssociatedData.java b/src/main/java/gregtech/api/util/GT_ChunkAssociatedData.java index bfc6daf45f..bb73cf77ed 100644 --- a/src/main/java/gregtech/api/util/GT_ChunkAssociatedData.java +++ b/src/main/java/gregtech/api/util/GT_ChunkAssociatedData.java @@ -67,12 +67,12 @@ public abstract class GT_ChunkAssociatedData> instances = new ConcurrentHashMap<>(); private static final int IO_PARALLELISM = Math.min( - 8, - Math.max( - 1, - Runtime.getRuntime() - .availableProcessors() * 2 - / 3)); + 8, + Math.max( + 1, + Runtime.getRuntime() + .availableProcessors() * 2 + / 3)); private static final ExecutorService IO_WORKERS = Executors.newWorkStealingPool(IO_PARALLELISM); private static final Pattern FILE_PATTERN = Pattern.compile("(.+)\\.(-?\\d+)\\.(-?\\d+)\\.dat"); @@ -103,7 +103,7 @@ public abstract class GT_ChunkAssociatedData elementType, int regionLength, byte version, - boolean saveDefaults) { + boolean saveDefaults) { if (regionLength * regionLength > Short.MAX_VALUE || regionLength <= 0) throw new IllegalArgumentException("Region invalid: " + regionLength); if (!IData.class.isAssignableFrom(elementType)) throw new IllegalArgumentException("Data type invalid"); @@ -138,13 +138,13 @@ public abstract class GT_ChunkAssociatedData new ConcurrentHashMap<>()) - .computeIfAbsent(getRegionID(chunkX, chunkZ), c -> new SuperRegion(world, c)); + .computeIfAbsent(getRegionID(chunkX, chunkZ), c -> new SuperRegion(world, c)); return region.get(Math.floorMod(chunkX, regionLength), Math.floorMod(chunkZ, regionLength)); } protected final void set(World world, int chunkX, int chunkZ, T data) { SuperRegion region = masterMap.computeIfAbsent(world.provider.dimensionId, ignored -> new ConcurrentHashMap<>()) - .computeIfAbsent(getRegionID(chunkX, chunkZ), c -> new SuperRegion(world, c)); + .computeIfAbsent(getRegionID(chunkX, chunkZ), c -> new SuperRegion(world, c)); region.set(Math.floorMod(chunkX, regionLength), Math.floorMod(chunkZ, regionLength), data); } @@ -161,55 +161,54 @@ public abstract class GT_ChunkAssociatedData m.values() - .stream()) - .filter(SuperRegion::isDirty) - .count(); + .stream() + .flatMap( + m -> m.values() + .stream()) + .filter(SuperRegion::isDirty) + .count(); if (dirtyRegionCount > 0) GT_Log.out.println( - "Clearing ChunkAssociatedData with " + dirtyRegionCount - + " regions dirty. Data might have been lost!"); + "Clearing ChunkAssociatedData with " + dirtyRegionCount + " regions dirty. Data might have been lost!"); } masterMap.clear(); } public void save() { saveRegions( - masterMap.values() - .stream() - .flatMap( - m -> m.values() - .stream())); + masterMap.values() + .stream() + .flatMap( + m -> m.values() + .stream())); } public void save(World world) { Map map = masterMap.get(world.provider.dimensionId); if (map != null) saveRegions( - map.values() - .stream()); + map.values() + .stream()); } private void saveRegions(Stream stream) { stream.filter(SuperRegion::isDirty) - .map(c -> (Runnable) c::save) - .map(r -> CompletableFuture.runAsync(r, IO_WORKERS)) - .reduce(CompletableFuture::allOf) - .ifPresent(f -> { - try { - f.get(); - } catch (Exception e) { - GT_Log.err.println("Data save error: " + mId); - e.printStackTrace(GT_Log.err); - } - }); + .map(c -> (Runnable) c::save) + .map(r -> CompletableFuture.runAsync(r, IO_WORKERS)) + .reduce(CompletableFuture::allOf) + .ifPresent(f -> { + try { + f.get(); + } catch (Exception e) { + GT_Log.err.println("Data save error: " + mId); + e.printStackTrace(GT_Log.err); + } + }); } protected abstract void writeElement(DataOutput output, T element, World world, int chunkX, int chunkZ) - throws IOException; + throws IOException; protected abstract T readElement(DataInput input, int version, World world, int chunkX, int chunkZ) - throws IOException; + throws IOException; protected abstract T createElement(World world, int chunkX, int chunkZ); @@ -235,43 +234,34 @@ public abstract class GT_ChunkAssociatedData stream = Files.list(getSaveDirectory(w).toPath())) { Map worldData = stream.map(f -> { Matcher matcher = FILE_PATTERN.matcher( - f.getFileName() - .toString()); + f.getFileName() + .toString()); return matcher.matches() ? matcher : null; }) - .filter(Objects::nonNull) - .filter(m -> mId.equals(m.group(1))) - .map( - m -> CompletableFuture.supplyAsync( - () -> new SuperRegion( - w, - Integer.parseInt(m.group(2)), - Integer.parseInt(m.group(3))), - IO_WORKERS)) - .map(f -> { - try { - return f.get(); - } catch (Exception e) { - GT_Log.err.println("Error loading region"); - e.printStackTrace(GT_Log.err); - return null; - } - }) - .filter(Objects::nonNull) - .collect( - Collectors.toMap( - SuperRegion::getCoord, - Function.identity())); + .filter(Objects::nonNull) + .filter(m -> mId.equals(m.group(1))) + .map( + m -> CompletableFuture.supplyAsync( + () -> new SuperRegion(w, Integer.parseInt(m.group(2)), Integer.parseInt(m.group(3))), + IO_WORKERS)) + .map(f -> { + try { + return f.get(); + } catch (Exception e) { + GT_Log.err.println("Error loading region"); + e.printStackTrace(GT_Log.err); + return null; + } + }) + .filter(Objects::nonNull) + .collect(Collectors.toMap(SuperRegion::getCoord, Function.identity())); masterMap.put(w.provider.dimensionId, worldData); } catch (IOException | UncheckedIOException e) { GT_Log.err.println("Error loading all region"); @@ -282,11 +272,11 @@ public abstract class GT_ChunkAssociatedData(world); this.coord = regionCoord; backingStorage = new File( - getSaveDirectory(world), - String.format("%s.%d.%d.dat", mId, regionCoord.chunkXPos, regionCoord.chunkZPos)); + getSaveDirectory(world), + String.format("%s.%d.%d.dat", mId, regionCoord.chunkXPos, regionCoord.chunkZPos)); if (backingStorage.isFile()) load(); } @@ -335,9 +325,9 @@ public abstract class GT_ChunkAssociatedData 0) { return true; } @@ -58,13 +56,11 @@ public abstract class GT_CircuitryBehavior { public static boolean getAllRedstone(IRedstoneCircuitBlock aRedstoneCircuitBlock) { for (byte side : ALL_VALID_SIDES) { if (side != aRedstoneCircuitBlock.getOutputFacing() && aRedstoneCircuitBlock.getCover(side) - .letsRedstoneGoIn( - side, - aRedstoneCircuitBlock.getCoverID( - side), - aRedstoneCircuitBlock.getCoverVariable( - side), - aRedstoneCircuitBlock.getOwnTileEntity())) { + .letsRedstoneGoIn( + side, + aRedstoneCircuitBlock.getCoverID(side), + aRedstoneCircuitBlock.getCoverVariable(side), + aRedstoneCircuitBlock.getOwnTileEntity())) { if (aRedstoneCircuitBlock.getInputRedstone(side) == 0) { return false; } @@ -80,13 +76,11 @@ public abstract class GT_CircuitryBehavior { int tRedstoneAmount = 0; for (byte side : ALL_VALID_SIDES) { if (side != aRedstoneCircuitBlock.getOutputFacing() && aRedstoneCircuitBlock.getCover(side) - .letsRedstoneGoIn( - side, - aRedstoneCircuitBlock.getCoverID( - side), - aRedstoneCircuitBlock.getCoverVariable( - side), - aRedstoneCircuitBlock.getOwnTileEntity())) { + .letsRedstoneGoIn( + side, + aRedstoneCircuitBlock.getCoverID(side), + aRedstoneCircuitBlock.getCoverVariable(side), + aRedstoneCircuitBlock.getOwnTileEntity())) { if (aRedstoneCircuitBlock.getInputRedstone(side) > 0) { tRedstoneAmount++; } @@ -102,13 +96,11 @@ public abstract class GT_CircuitryBehavior { byte tRedstoneAmount = 0; for (byte side : ALL_VALID_SIDES) { if (side != aRedstoneCircuitBlock.getOutputFacing() && aRedstoneCircuitBlock.getCover(side) - .letsRedstoneGoIn( - side, - aRedstoneCircuitBlock.getCoverID( - side), - aRedstoneCircuitBlock.getCoverVariable( - side), - aRedstoneCircuitBlock.getOwnTileEntity())) { + .letsRedstoneGoIn( + side, + aRedstoneCircuitBlock.getCoverID(side), + aRedstoneCircuitBlock.getCoverVariable(side), + aRedstoneCircuitBlock.getOwnTileEntity())) { tRedstoneAmount = (byte) Math.max(tRedstoneAmount, aRedstoneCircuitBlock.getInputRedstone(side)); } } @@ -127,13 +119,11 @@ public abstract class GT_CircuitryBehavior { byte tRedstoneAmount = 15; for (byte side : ALL_VALID_SIDES) { if (side != aRedstoneCircuitBlock.getOutputFacing() && aRedstoneCircuitBlock.getCover(side) - .letsRedstoneGoIn( - side, - aRedstoneCircuitBlock.getCoverID( - side), - aRedstoneCircuitBlock.getCoverVariable( - side), - aRedstoneCircuitBlock.getOwnTileEntity())) { + .letsRedstoneGoIn( + side, + aRedstoneCircuitBlock.getCoverID(side), + aRedstoneCircuitBlock.getCoverVariable(side), + aRedstoneCircuitBlock.getOwnTileEntity())) { if (aRedstoneCircuitBlock.getInputRedstone(side) > 0) tRedstoneAmount = (byte) Math.min(tRedstoneAmount, aRedstoneCircuitBlock.getInputRedstone(side)); } @@ -149,13 +139,11 @@ public abstract class GT_CircuitryBehavior { byte tRedstoneAmount = 15; for (byte side : ALL_VALID_SIDES) { if (side != aRedstoneCircuitBlock.getOutputFacing() && aRedstoneCircuitBlock.getCover(side) - .letsRedstoneGoIn( - side, - aRedstoneCircuitBlock.getCoverID( - side), - aRedstoneCircuitBlock.getCoverVariable( - side), - aRedstoneCircuitBlock.getOwnTileEntity())) { + .letsRedstoneGoIn( + side, + aRedstoneCircuitBlock.getCoverID(side), + aRedstoneCircuitBlock.getCoverVariable(side), + aRedstoneCircuitBlock.getOwnTileEntity())) { tRedstoneAmount = (byte) Math.min(tRedstoneAmount, aRedstoneCircuitBlock.getInputRedstone(side)); } } @@ -195,7 +183,7 @@ public abstract class GT_CircuitryBehavior { * If the ItemStack should be displayed. Parameters are between 0 and 3. */ public abstract boolean displayItemStack(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock, - int aIndex); + int aIndex); /** * The Name of the Gate for the GUI diff --git a/src/main/java/gregtech/api/util/GT_ClientPreference.java b/src/main/java/gregtech/api/util/GT_ClientPreference.java index 0d5e39c1a8..e48af386cb 100644 --- a/src/main/java/gregtech/api/util/GT_ClientPreference.java +++ b/src/main/java/gregtech/api/util/GT_ClientPreference.java @@ -7,7 +7,7 @@ public class GT_ClientPreference { private final boolean mInputBusInitialFilter; public GT_ClientPreference(boolean mSingleBlockInitialFilter, boolean mSingleBlockInitialMultiStack, - boolean mInputBusInitialFilter) { + boolean mInputBusInitialFilter) { this.mSingleBlockInitialFilter = mSingleBlockInitialFilter; this.mSingleBlockInitialMultiStack = mSingleBlockInitialMultiStack; this.mInputBusInitialFilter = mInputBusInitialFilter; @@ -15,10 +15,8 @@ public class GT_ClientPreference { public GT_ClientPreference(GT_Config aClientDataFile) { this.mSingleBlockInitialFilter = aClientDataFile.get("preference", "mSingleBlockInitialFilter", false); - this.mSingleBlockInitialMultiStack = aClientDataFile.get( - "preference", - "mSingleBlockInitialAllowMultiStack", - false); + this.mSingleBlockInitialMultiStack = aClientDataFile + .get("preference", "mSingleBlockInitialAllowMultiStack", false); this.mInputBusInitialFilter = aClientDataFile.get("preference", "mInputBusInitialFilter", true); } diff --git a/src/main/java/gregtech/api/util/GT_Config.java b/src/main/java/gregtech/api/util/GT_Config.java index 40bff73ac7..36585559c2 100644 --- a/src/main/java/gregtech/api/util/GT_Config.java +++ b/src/main/java/gregtech/api/util/GT_Config.java @@ -33,10 +33,10 @@ public class GT_Config implements Runnable { public static int addIDConfig(Object aCategory, String aName, int aDefault) { if (GT_Utility.isStringInvalid(aName)) return aDefault; Property tProperty = sConfigFileIDs.get( - aCategory.toString() - .replaceAll("\\|", "."), - aName.replaceAll("\\|", "."), - aDefault); + aCategory.toString() + .replaceAll("\\|", "."), + aName.replaceAll("\\|", "."), + aDefault); int rResult = tProperty.getInt(aDefault); if (!tProperty.wasRead() && shouldSave()) sConfigFileIDs.save(); return rResult; @@ -52,7 +52,7 @@ public class GT_Config implements Runnable { /* Do nothing */ } String sName = aStack.getItem() - .toString(); + .toString(); String[] tmp = sName.split("@"); if (tmp.length > 0) sName = tmp[0]; return sName + "." + aStack.getItemDamage(); @@ -66,10 +66,10 @@ public class GT_Config implements Runnable { public boolean get(Object aCategory, String aName, boolean aDefault) { if (GT_Utility.isStringInvalid(aName)) return aDefault; Property tProperty = mConfig.get( - aCategory.toString() - .replaceAll("\\|", "_"), - (aName + "_" + aDefault).replaceAll("\\|", "_"), - aDefault); + aCategory.toString() + .replaceAll("\\|", "_"), + (aName + "_" + aDefault).replaceAll("\\|", "_"), + aDefault); boolean rResult = tProperty.getBoolean(aDefault); if (!tProperty.wasRead() && shouldSave()) mConfig.save(); return rResult; @@ -82,10 +82,10 @@ public class GT_Config implements Runnable { public int get(Object aCategory, String aName, int aDefault) { if (GT_Utility.isStringInvalid(aName)) return aDefault; Property tProperty = mConfig.get( - aCategory.toString() - .replaceAll("\\|", "_"), - (aName + "_" + aDefault).replaceAll("\\|", "_"), - aDefault); + aCategory.toString() + .replaceAll("\\|", "_"), + (aName + "_" + aDefault).replaceAll("\\|", "_"), + aDefault); int rResult = tProperty.getInt(aDefault); if (!tProperty.wasRead() && shouldSave()) mConfig.save(); return rResult; @@ -98,10 +98,10 @@ public class GT_Config implements Runnable { public double get(Object aCategory, String aName, double aDefault) { if (GT_Utility.isStringInvalid(aName)) return aDefault; Property tProperty = mConfig.get( - aCategory.toString() - .replaceAll("\\|", "_"), - (aName + "_" + aDefault).replaceAll("\\|", "_"), - aDefault); + aCategory.toString() + .replaceAll("\\|", "_"), + (aName + "_" + aDefault).replaceAll("\\|", "_"), + aDefault); double rResult = tProperty.getDouble(aDefault); if (!tProperty.wasRead() && shouldSave()) mConfig.save(); return rResult; @@ -114,10 +114,10 @@ public class GT_Config implements Runnable { public String get(Object aCategory, String aName, String aDefault) { if (GT_Utility.isStringInvalid(aName)) return aDefault; Property tProperty = mConfig.get( - aCategory.toString() - .replaceAll("\\|", "_"), - (aName + "_" + aDefault).replaceAll("\\|", "_"), - aDefault); + aCategory.toString() + .replaceAll("\\|", "_"), + (aName + "_" + aDefault).replaceAll("\\|", "_"), + aDefault); String rResult = tProperty.getString(); if (!tProperty.wasRead() && shouldSave()) mConfig.save(); return rResult; @@ -130,10 +130,10 @@ public class GT_Config implements Runnable { public String[] get(Object aCategory, String aName, String... aDefault) { if (GT_Utility.isStringInvalid(aName)) return aDefault; Property tProperty = mConfig.get( - aCategory.toString() - .replaceAll("\\|", "_"), - aName.replaceAll("\\|", "_"), - aDefault); + aCategory.toString() + .replaceAll("\\|", "_"), + aName.replaceAll("\\|", "_"), + aDefault); String[] rResult = tProperty.getStringList(); if (!tProperty.wasRead() && GregTech_API.sPostloadFinished) mConfig.save(); return rResult; diff --git a/src/main/java/gregtech/api/util/GT_CoverBehavior.java b/src/main/java/gregtech/api/util/GT_CoverBehavior.java index f12da42700..60196bd236 100644 --- a/src/main/java/gregtech/api/util/GT_CoverBehavior.java +++ b/src/main/java/gregtech/api/util/GT_CoverBehavior.java @@ -48,13 +48,13 @@ public abstract class GT_CoverBehavior extends GT_CoverBehaviorBase { * @return null if none, otherwise return facade target block */ public final Block getFacadeBlock(byte aSide, int aCoverID, ISerializableObject aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return getFacadeBlockImpl(aSide, aCoverID, forceCast(aCoverVariable), aTileEntity); } @@ -104,7 +104,7 @@ public abstract class GT_CoverBehaviorBase { * @return 0 if none, otherwise return facade target meta */ public final int getFacadeMeta(byte aSide, int aCoverID, ISerializableObject aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return getFacadeMetaImpl(aSide, aCoverID, forceCast(aCoverVariable), aTileEntity); } @@ -121,7 +121,7 @@ public abstract class GT_CoverBehaviorBase { * overloads. */ public final ITexture getSpecialCoverFGTexture(byte aSide, int aCoverID, ISerializableObject aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return getSpecialCoverFGTextureImpl(aSide, aCoverID, forceCast(aCoverVariable), aTileEntity); } @@ -130,7 +130,7 @@ public abstract class GT_CoverBehaviorBase { * {@link gregtech.api.GregTech_API#registerCover(ItemStack, ITexture, GT_CoverBehaviorBase)} or its overloads. */ public final ITexture getSpecialCoverTexture(byte aSide, int aCoverID, ISerializableObject aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return getSpecialCoverTextureImpl(aSide, aCoverID, forceCast(aCoverVariable), aTileEntity); } @@ -141,7 +141,7 @@ public abstract class GT_CoverBehaviorBase { * {@link ICoverable#issueCoverUpdate(byte)} This option only affects the initial sync. */ public final boolean isDataNeededOnClient(byte aSide, int aCoverID, ISerializableObject aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return isDataNeededOnClientImpl(aSide, aCoverID, forceCast(aCoverVariable), aTileEntity); } @@ -149,7 +149,7 @@ public abstract class GT_CoverBehaviorBase { * Called upon receiving data from network. Use {@link ICoverable#isClientSide()} to determine the side. */ public final void onDataChanged(byte aSide, int aCoverID, ISerializableObject aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { onDataChangedImpl(aSide, aCoverID, forceCast(aCoverVariable), aTileEntity); } @@ -157,14 +157,14 @@ public abstract class GT_CoverBehaviorBase { * Called before receiving data from network. Use {@link ICoverable#isClientSide()} to determine the side. */ public final void preDataChanged(byte aSide, int aCoverID, int aNewCoverId, ISerializableObject aCoverVariable, - ISerializableObject aNewCoverVariable, ICoverable aTileEntity) { + ISerializableObject aNewCoverVariable, ICoverable aTileEntity) { preDataChangedImpl( - aSide, - aCoverID, - aNewCoverId, - forceCast(aCoverVariable), - forceCast(aNewCoverVariable), - aTileEntity); + aSide, + aCoverID, + aNewCoverId, + forceCast(aCoverVariable), + forceCast(aNewCoverVariable), + aTileEntity); } /** @@ -175,7 +175,7 @@ public abstract class GT_CoverBehaviorBase { } public final boolean isRedstoneSensitive(byte aSide, int aCoverID, ISerializableObject aCoverVariable, - ICoverable aTileEntity, long aTimer) { + ICoverable aTileEntity, long aTimer) { return isRedstoneSensitiveImpl(aSide, aCoverID, forceCast(aCoverVariable), aTileEntity, aTimer); } @@ -183,7 +183,7 @@ public abstract class GT_CoverBehaviorBase { * Called by updateEntity inside the covered TileEntity. aCoverVariable is the Value you returned last time. */ public final T doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, ISerializableObject aCoverVariable, - ICoverable aTileEntity, long aTimer) { + ICoverable aTileEntity, long aTimer) { return doCoverThingsImpl(aSide, aInputRedstone, aCoverID, forceCast(aCoverVariable), aTileEntity, aTimer); } @@ -193,7 +193,7 @@ public abstract class GT_CoverBehaviorBase { * return true, if something actually happens. */ public final boolean onCoverRightClick(byte aSide, int aCoverID, ISerializableObject aCoverVariable, - ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ) { + ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ) { return onCoverRightClickImpl(aSide, aCoverID, forceCast(aCoverVariable), aTileEntity, aPlayer, aX, aY, aZ); } @@ -203,29 +203,29 @@ public abstract class GT_CoverBehaviorBase { * return the new Value of the Cover Variable */ public final T onCoverScrewdriverClick(byte aSide, int aCoverID, ISerializableObject aCoverVariable, - ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ) { + ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ) { return onCoverScrewdriverClickImpl( - aSide, - aCoverID, - forceCast(aCoverVariable), - aTileEntity, - aPlayer, - aX, - aY, - aZ); + aSide, + aCoverID, + forceCast(aCoverVariable), + aTileEntity, + aPlayer, + aX, + aY, + aZ); } /** * Called when someone shift-rightclicks this Cover with no tool. Doesn't call @onCoverRightclick in this Case. */ public final boolean onCoverShiftRightClick(byte aSide, int aCoverID, ISerializableObject aCoverVariable, - ICoverable aTileEntity, EntityPlayer aPlayer) { + ICoverable aTileEntity, EntityPlayer aPlayer) { return onCoverShiftRightClickImpl(aSide, aCoverID, forceCast(aCoverVariable), aTileEntity, aPlayer); } @Deprecated public final Object getClientGUI(byte aSide, int aCoverID, ISerializableObject aCoverVariable, - ICoverable aTileEntity, EntityPlayer aPlayer, World aWorld) { + ICoverable aTileEntity, EntityPlayer aPlayer, World aWorld) { return getClientGUIImpl(aSide, aCoverID, forceCast(aCoverVariable), aTileEntity, aPlayer, aWorld); } @@ -234,7 +234,7 @@ public abstract class GT_CoverBehaviorBase { * getting broken, only if you break the Cover away from the Machine. */ public final boolean onCoverRemoval(byte aSide, int aCoverID, ISerializableObject aCoverVariable, - ICoverable aTileEntity, boolean aForced) { + ICoverable aTileEntity, boolean aForced) { return onCoverRemovalImpl(aSide, aCoverID, forceCast(aCoverVariable), aTileEntity, aForced); } @@ -243,7 +243,7 @@ public abstract class GT_CoverBehaviorBase { * survival. */ public final void onBaseTEDestroyed(byte aSide, int aCoverID, ISerializableObject aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { onBaseTEDestroyedImpl(aSide, aCoverID, forceCast(aCoverVariable), aTileEntity); } @@ -251,7 +251,7 @@ public abstract class GT_CoverBehaviorBase { * Gives a small Text for the status of the Cover. */ public final String getDescription(byte aSide, int aCoverID, ISerializableObject aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return getDescriptionImpl(aSide, aCoverID, forceCast(aCoverVariable), aTileEntity); } @@ -259,7 +259,7 @@ public abstract class GT_CoverBehaviorBase { * How Blast Proof the Cover is. 30 is normal. */ public final float getBlastProofLevel(byte aSide, int aCoverID, ISerializableObject aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return getBlastProofLevelImpl(aSide, aCoverID, forceCast(aCoverVariable), aTileEntity); } @@ -269,7 +269,7 @@ public abstract class GT_CoverBehaviorBase { * This is just Informative so that Machines know if their Redstone Input is blocked or not */ public final boolean letsRedstoneGoIn(byte aSide, int aCoverID, ISerializableObject aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return letsRedstoneGoInImpl(aSide, aCoverID, forceCast(aCoverVariable), aTileEntity); } @@ -277,7 +277,7 @@ public abstract class GT_CoverBehaviorBase { * If it lets RS-Signals out of the Block */ public final boolean letsRedstoneGoOut(byte aSide, int aCoverID, ISerializableObject aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return letsRedstoneGoOutImpl(aSide, aCoverID, forceCast(aCoverVariable), aTileEntity); } @@ -287,7 +287,7 @@ public abstract class GT_CoverBehaviorBase { * This is just Informative so that Machines know if their Redstone Input is blocked or not */ public final boolean letsFibreGoIn(byte aSide, int aCoverID, ISerializableObject aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return letsFibreGoInImpl(aSide, aCoverID, forceCast(aCoverVariable), aTileEntity); } @@ -295,7 +295,7 @@ public abstract class GT_CoverBehaviorBase { * If it lets Fibre-Signals out of the Block */ public final boolean letsFibreGoOut(byte aSide, int aCoverID, ISerializableObject aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return letsFibreGoOutImpl(aSide, aCoverID, forceCast(aCoverVariable), aTileEntity); } @@ -303,7 +303,7 @@ public abstract class GT_CoverBehaviorBase { * If it lets Energy into the Block */ public final boolean letsEnergyIn(byte aSide, int aCoverID, ISerializableObject aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return letsEnergyInImpl(aSide, aCoverID, forceCast(aCoverVariable), aTileEntity); } @@ -311,7 +311,7 @@ public abstract class GT_CoverBehaviorBase { * If it lets Energy out of the Block */ public final boolean letsEnergyOut(byte aSide, int aCoverID, ISerializableObject aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return letsEnergyOutImpl(aSide, aCoverID, forceCast(aCoverVariable), aTileEntity); } @@ -319,7 +319,7 @@ public abstract class GT_CoverBehaviorBase { * If it lets Liquids into the Block, aFluid can be null meaning if this is generally allowing Fluids or not. */ public final boolean letsFluidIn(byte aSide, int aCoverID, ISerializableObject aCoverVariable, Fluid aFluid, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return letsFluidInImpl(aSide, aCoverID, forceCast(aCoverVariable), aFluid, aTileEntity); } @@ -327,7 +327,7 @@ public abstract class GT_CoverBehaviorBase { * If it lets Liquids out of the Block, aFluid can be null meaning if this is generally allowing Fluids or not. */ public final boolean letsFluidOut(byte aSide, int aCoverID, ISerializableObject aCoverVariable, Fluid aFluid, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return letsFluidOutImpl(aSide, aCoverID, forceCast(aCoverVariable), aFluid, aTileEntity); } @@ -337,7 +337,7 @@ public abstract class GT_CoverBehaviorBase { * Slot). */ public final boolean letsItemsIn(byte aSide, int aCoverID, ISerializableObject aCoverVariable, int aSlot, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return letsItemsInImpl(aSide, aCoverID, forceCast(aCoverVariable), aSlot, aTileEntity); } @@ -347,7 +347,7 @@ public abstract class GT_CoverBehaviorBase { * Slot). */ public final boolean letsItemsOut(byte aSide, int aCoverID, ISerializableObject aCoverVariable, int aSlot, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return letsItemsOutImpl(aSide, aCoverID, forceCast(aCoverVariable), aSlot, aTileEntity); } @@ -355,7 +355,7 @@ public abstract class GT_CoverBehaviorBase { * If it lets you rightclick the Machine normally */ public final boolean isGUIClickable(byte aSide, int aCoverID, ISerializableObject aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return isGUIClickableImpl(aSide, aCoverID, forceCast(aCoverVariable), aTileEntity); } @@ -363,7 +363,7 @@ public abstract class GT_CoverBehaviorBase { * Needs to return true for Covers, which have a Redstone Output on their Facing. */ public final boolean manipulatesSidedRedstoneOutput(byte aSide, int aCoverID, ISerializableObject aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return manipulatesSidedRedstoneOutputImpl(aSide, aCoverID, forceCast(aCoverVariable), aTileEntity); } @@ -371,7 +371,7 @@ public abstract class GT_CoverBehaviorBase { * if this Cover should let Pipe Connections look connected even if it is not the case. */ public final boolean alwaysLookConnected(byte aSide, int aCoverID, ISerializableObject aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return alwaysLookConnectedImpl(aSide, aCoverID, forceCast(aCoverVariable), aTileEntity); } @@ -380,7 +380,7 @@ public abstract class GT_CoverBehaviorBase { * Cover should @letsRedstoneGoIn or the aInputRedstone Parameter is always 0. */ public final byte getRedstoneInput(byte aSide, byte aInputRedstone, int aCoverID, - ISerializableObject aCoverVariable, ICoverable aTileEntity) { + ISerializableObject aCoverVariable, ICoverable aTileEntity) { return getRedstoneInputImpl(aSide, aInputRedstone, aCoverID, forceCast(aCoverVariable), aTileEntity); } @@ -397,7 +397,7 @@ public abstract class GT_CoverBehaviorBase { * The MC Color of this Lens. -1 for no Color (meaning this isn't a Lens then). */ public final byte getLensColor(byte aSide, int aCoverID, ISerializableObject aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return getLensColorImpl(aSide, aCoverID, forceCast(aCoverVariable), aTileEntity); } @@ -405,7 +405,7 @@ public abstract class GT_CoverBehaviorBase { * @return the ItemStack dropped by this Cover */ public final ItemStack getDrop(byte aSide, int aCoverID, ISerializableObject aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return getDropImpl(aSide, aCoverID, forceCast(aCoverVariable), aTileEntity); } // endregion @@ -450,8 +450,8 @@ public abstract class GT_CoverBehaviorBase { addUIWidgets(builder); if (getUIBuildContext().isAnotherWindow()) { builder.widget( - ButtonWidget.closeWindowButton(true) - .setPos(getGUIWidth() - 15, 3)); + ButtonWidget.closeWindowButton(true) + .setPos(getGUIWidth() - 15, 3)); } return builder.build(); } @@ -472,8 +472,8 @@ public abstract class GT_CoverBehaviorBase { public T getCoverData() { if (isCoverValid()) { return forceCast( - getUIBuildContext().getTile() - .getComplexCoverDataAtSide(getUIBuildContext().getCoverSide())); + getUIBuildContext().getTile() + .getComplexCoverDataAtSide(getUIBuildContext().getCoverSide())); } else { return null; } @@ -482,13 +482,13 @@ public abstract class GT_CoverBehaviorBase { public boolean setCoverData(T data) { if (isCoverValid()) { getUIBuildContext().getTile() - .receiveCoverData( - getUIBuildContext().getCoverSide(), - getUIBuildContext().getCoverID(), - data, - getUIBuildContext().getPlayer() instanceof EntityPlayerMP - ? (EntityPlayerMP) getUIBuildContext().getPlayer() - : null); + .receiveCoverData( + getUIBuildContext().getCoverSide(), + getUIBuildContext().getCoverID(), + data, + getUIBuildContext().getPlayer() instanceof EntityPlayerMP + ? (EntityPlayerMP) getUIBuildContext().getPlayer() + : null); return true; } else { return false; @@ -497,22 +497,21 @@ public abstract class GT_CoverBehaviorBase { public boolean isCoverValid() { return !getUIBuildContext().getTile() - .isDead() - && getUIBuildContext().getTile() - .getCoverBehaviorAtSideNew(getUIBuildContext().getCoverSide()) - != GregTech_API.sNoBehavior; + .isDead() + && getUIBuildContext().getTile() + .getCoverBehaviorAtSideNew(getUIBuildContext().getCoverSide()) != GregTech_API.sNoBehavior; } protected void addTitleToUI(ModularWindow.Builder builder) { ItemStack coverItem = GT_Utility.intToStack(getUIBuildContext().getCoverID()); if (coverItem != null) { builder.widget( - new ItemDrawable(coverItem).asWidget() - .setPos(5, 5) - .setSize(16, 16)) - .widget( - new TextWidget(coverItem.getDisplayName()).setDefaultColor(COLOR_TITLE.get()) - .setPos(25, 9)); + new ItemDrawable(coverItem).asWidget() + .setPos(5, 5) + .setSize(16, 16)) + .widget( + new TextWidget(coverItem.getDisplayName()).setDefaultColor(COLOR_TITLE.get()) + .setPos(25, 9)); } } @@ -554,7 +553,7 @@ public abstract class GT_CoverBehaviorBase { } protected ITexture getSpecialCoverFGTextureImpl(byte aSide, int aCoverID, T aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return coverFGTexture; } @@ -569,14 +568,14 @@ public abstract class GT_CoverBehaviorBase { protected void onDataChangedImpl(byte aSide, int aCoverID, T aCoverVariable, ICoverable aTileEntity) {} protected void preDataChangedImpl(byte aSide, int aCoverID, int aNewCoverId, T aCoverVariable, T aNewCoverVariable, - ICoverable aTileEntity) {} + ICoverable aTileEntity) {} protected void onDroppedImpl(byte aSide, int aCoverID, T aCoverVariable, ICoverable aTileEntity) {} protected void onBaseTEDestroyedImpl(byte aSide, int aCoverID, T aCoverVariable, ICoverable aTileEntity) {} protected boolean isRedstoneSensitiveImpl(byte aSide, int aCoverID, T aCoverVariable, ICoverable aTileEntity, - long aTimer) { + long aTimer) { return false; } @@ -584,7 +583,7 @@ public abstract class GT_CoverBehaviorBase { * Called by updateEntity inside the covered TileEntity. aCoverVariable is the Value you returned last time. */ protected T doCoverThingsImpl(byte aSide, byte aInputRedstone, int aCoverID, T aCoverVariable, - ICoverable aTileEntity, long aTimer) { + ICoverable aTileEntity, long aTimer) { return aCoverVariable; } @@ -594,7 +593,7 @@ public abstract class GT_CoverBehaviorBase { * return true, if something actually happens. */ protected boolean onCoverRightClickImpl(byte aSide, int aCoverID, T aCoverVariable, ICoverable aTileEntity, - EntityPlayer aPlayer, float aX, float aY, float aZ) { + EntityPlayer aPlayer, float aX, float aY, float aZ) { return false; } @@ -604,7 +603,7 @@ public abstract class GT_CoverBehaviorBase { * return the new Value of the Cover Variable */ protected T onCoverScrewdriverClickImpl(byte aSide, int aCoverID, T aCoverVariable, ICoverable aTileEntity, - EntityPlayer aPlayer, float aX, float aY, float aZ) { + EntityPlayer aPlayer, float aX, float aY, float aZ) { return aCoverVariable; } @@ -612,20 +611,20 @@ public abstract class GT_CoverBehaviorBase { * Called when someone shift-rightclicks this Cover with no tool. Doesn't call @onCoverRightclick in this Case. */ protected boolean onCoverShiftRightClickImpl(byte aSide, int aCoverID, T aCoverVariable, ICoverable aTileEntity, - EntityPlayer aPlayer) { + EntityPlayer aPlayer) { if (hasCoverGUI() && aPlayer instanceof EntityPlayerMP) { lastPlayer = aPlayer; if (useModularUI()) { GT_UIInfos.openCoverUI(aTileEntity, aPlayer, aSide); } else { GT_Values.NW.sendToPlayer( - new GT_Packet_TileEntityCoverGUI( - aSide, - aCoverID, - aCoverVariable, - aTileEntity, - (EntityPlayerMP) aPlayer), - (EntityPlayerMP) aPlayer); + new GT_Packet_TileEntityCoverGUI( + aSide, + aCoverID, + aCoverVariable, + aTileEntity, + (EntityPlayerMP) aPlayer), + (EntityPlayerMP) aPlayer); } return true; } @@ -634,7 +633,7 @@ public abstract class GT_CoverBehaviorBase { @Deprecated protected Object getClientGUIImpl(byte aSide, int aCoverID, T aCoverVariable, ICoverable aTileEntity, - EntityPlayer aPlayer, World aWorld) { + EntityPlayer aPlayer, World aWorld) { return null; } @@ -643,7 +642,7 @@ public abstract class GT_CoverBehaviorBase { * getting broken, only if you break the Cover away from the Machine. */ protected boolean onCoverRemovalImpl(byte aSide, int aCoverID, T aCoverVariable, ICoverable aTileEntity, - boolean aForced) { + boolean aForced) { return true; } @@ -711,7 +710,7 @@ public abstract class GT_CoverBehaviorBase { * If it lets Liquids into the Block, aFluid can be null meaning if this is generally allowing Fluids or not. */ protected boolean letsFluidInImpl(byte aSide, int aCoverID, T aCoverVariable, Fluid aFluid, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return false; } @@ -719,7 +718,7 @@ public abstract class GT_CoverBehaviorBase { * If it lets Liquids out of the Block, aFluid can be null meaning if this is generally allowing Fluids or not. */ protected boolean letsFluidOutImpl(byte aSide, int aCoverID, T aCoverVariable, Fluid aFluid, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return false; } @@ -752,7 +751,7 @@ public abstract class GT_CoverBehaviorBase { * Needs to return true for Covers, which have a Redstone Output on their Facing. */ protected boolean manipulatesSidedRedstoneOutputImpl(byte aSide, int aCoverID, T aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return false; } @@ -768,7 +767,7 @@ public abstract class GT_CoverBehaviorBase { * Cover should @letsRedstoneGoIn or the aInputRedstone Parameter is always 0. */ protected byte getRedstoneInputImpl(byte aSide, byte aInputRedstone, int aCoverID, T aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return letsRedstoneGoIn(aSide, aCoverID, aCoverVariable, aTileEntity) ? aInputRedstone : 0; } @@ -825,7 +824,7 @@ public abstract class GT_CoverBehaviorBase { * return true, if something actually happens. */ public boolean onCoverRightclickClient(byte aSide, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, - float aZ) { + float aZ) { return false; } diff --git a/src/main/java/gregtech/api/util/GT_ExoticEnergyInputHelper.java b/src/main/java/gregtech/api/util/GT_ExoticEnergyInputHelper.java index 9ca7a16031..dbb14222c0 100644 --- a/src/main/java/gregtech/api/util/GT_ExoticEnergyInputHelper.java +++ b/src/main/java/gregtech/api/util/GT_ExoticEnergyInputHelper.java @@ -24,7 +24,7 @@ public class GT_ExoticEnergyInputHelper { public static void register(Class clazz) { if (!GT_MetaTileEntity_Hatch.class.isAssignableFrom(clazz)) throw new IllegalArgumentException( - clazz.getName() + " is not a subclass of " + GT_MetaTileEntity_Hatch.class.getName()); + clazz.getName() + " is not a subclass of " + GT_MetaTileEntity_Hatch.class.getName()); sExoticEnergyHatchType.add(clazz); } @@ -37,18 +37,18 @@ public class GT_ExoticEnergyInputHelper { return; } if (!GT_MetaTileEntity_Hatch.class.isAssignableFrom(clazz)) throw new IllegalArgumentException( - clazz.getName() + " is not a subclass of " + GT_MetaTileEntity_Hatch.class.getName()); + clazz.getName() + " is not a subclass of " + GT_MetaTileEntity_Hatch.class.getName()); sExoticEnergyHatchType.add((Class) clazz); } public static boolean drainEnergy(long aEU, Collection hatches) { for (GT_MetaTileEntity_Hatch tHatch : hatches) { long tDrain = Math.min( - tHatch.getBaseMetaTileEntity() - .getStoredEU(), - aEU); + tHatch.getBaseMetaTileEntity() + .getStoredEU(), + aEU); tHatch.getBaseMetaTileEntity() - .decreaseStoredEnergyUnits(tDrain, false); + .decreaseStoredEnergyUnits(tDrain, false); aEU -= tDrain; } return aEU <= 0; @@ -65,8 +65,7 @@ public class GT_ExoticEnergyInputHelper { long rEU = 0L; for (GT_MetaTileEntity_Hatch tHatch : hatches) if (isValidMetaTileEntity(tHatch)) rEU += tHatch.getBaseMetaTileEntity() - .getInputVoltage() - * tHatch.maxWorkingAmperesIn(); + .getInputVoltage() * tHatch.maxWorkingAmperesIn(); return rEU; } @@ -74,7 +73,7 @@ public class GT_ExoticEnergyInputHelper { long rVoltage = 0; for (GT_MetaTileEntity_Hatch tHatch : hatches) if (isValidMetaTileEntity(tHatch)) rVoltage += tHatch.getBaseMetaTileEntity() - .getInputVoltage(); + .getInputVoltage(); return rVoltage; } @@ -85,7 +84,7 @@ public class GT_ExoticEnergyInputHelper { } for (GT_MetaTileEntity_Hatch tHatch : hatches) if (isValidMetaTileEntity(tHatch)) rVoltage += tHatch.getBaseMetaTileEntity() - .getInputVoltage(); + .getInputVoltage(); return rVoltage / hatches.size(); } @@ -93,7 +92,7 @@ public class GT_ExoticEnergyInputHelper { long rAmp = 0; for (GT_MetaTileEntity_Hatch tHatch : hatches) if (isValidMetaTileEntity(tHatch)) rAmp += tHatch.getBaseMetaTileEntity() - .getInputAmperage(); + .getInputAmperage(); return rAmp; } diff --git a/src/main/java/gregtech/api/util/GT_FoodStat.java b/src/main/java/gregtech/api/util/GT_FoodStat.java index b658f3abe5..5eda76f9d0 100644 --- a/src/main/java/gregtech/api/util/GT_FoodStat.java +++ b/src/main/java/gregtech/api/util/GT_FoodStat.java @@ -33,7 +33,7 @@ public class GT_FoodStat implements IFoodStat { * III] The likelihood that this Potion Effect takes place upon being eaten [1 - 100] */ public GT_FoodStat(int aFoodLevel, float aSaturation, EnumAction aAction, ItemStack aEmptyContainer, - boolean aAlwaysEdible, boolean aInvisibleParticles, boolean aIsRotten, int... aPotionEffects) { + boolean aAlwaysEdible, boolean aInvisibleParticles, boolean aIsRotten, int... aPotionEffects) { mFoodLevel = aFoodLevel; mSaturation = aSaturation; mAction = aAction == null ? EnumAction.eat : aAction; @@ -72,12 +72,11 @@ public class GT_FoodStat implements IFoodStat { aPlayer.dropPlayerItemWithRandomChoice(tStack, true); new WorldSpawnedEventBuilder.SoundAtEntityEventBuilder().setIdentifier(SoundResource.RANDOM_BURP) - .setVolume(0.5F) - .setPitch( - aPlayer.worldObj.rand.nextFloat() * 0.1F + 0.9F) - .setEntity(aPlayer) - .setWorld(aPlayer.worldObj) - .run(); + .setVolume(0.5F) + .setPitch(aPlayer.worldObj.rand.nextFloat() * 0.1F + 0.9F) + .setEntity(aPlayer) + .setWorld(aPlayer.worldObj) + .run(); if (!aPlayer.worldObj.isRemote) { if (mMilk) { @@ -86,24 +85,21 @@ public class GT_FoodStat implements IFoodStat { for (int i = 3; i < mPotionEffects.length; i += 4) { if (aPlayer.worldObj.rand.nextInt(100) < mPotionEffects[i]) { aPlayer.addPotionEffect( - new PotionEffect( - mPotionEffects[i - 3], - mPotionEffects[i - 2], - mPotionEffects[i - 1], - mInvisibleParticles)); + new PotionEffect( + mPotionEffects[i - 3], + mPotionEffects[i - 2], + mPotionEffects[i - 1], + mInvisibleParticles)); } } if (mExplosive) { new WorldSpawnedEventBuilder.ExplosionEffectEventBuilder().setSmoking(true) - .setFlaming(true) - .setStrength(4f) - .setPosition( - aPlayer.posX, - aPlayer.posY, - aPlayer.posZ) - .setEntity(aPlayer) - .setWorld(aPlayer.worldObj) - .run(); + .setFlaming(true) + .setStrength(4f) + .setPosition(aPlayer.posX, aPlayer.posY, aPlayer.posZ) + .setEntity(aPlayer) + .setWorld(aPlayer.worldObj) + .run(); aPlayer.attackEntityFrom(GT_DamageSources.getExplodingDamage(), Float.MAX_VALUE); } } diff --git a/src/main/java/gregtech/api/util/GT_Forestry_Compat.java b/src/main/java/gregtech/api/util/GT_Forestry_Compat.java index 95efdf40f0..933c379db1 100644 --- a/src/main/java/gregtech/api/util/GT_Forestry_Compat.java +++ b/src/main/java/gregtech/api/util/GT_Forestry_Compat.java @@ -17,111 +17,111 @@ public class GT_Forestry_Compat { public static void populateFakeNeiRecipes() { if (ItemList.FR_Bee_Drone.get(1L) != null) { GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes.addFakeRecipe( - false, - new ItemStack[] { ItemList.FR_Bee_Drone.getWildcard(1L) }, - new ItemStack[] { ItemList.FR_Bee_Drone.getWithName(1L, "Scanned Drone") }, - null, - new FluidStack[] { Materials.Honey.getFluid(100L) }, - null, - 500, - 2, - 0); + false, + new ItemStack[] { ItemList.FR_Bee_Drone.getWildcard(1L) }, + new ItemStack[] { ItemList.FR_Bee_Drone.getWithName(1L, "Scanned Drone") }, + null, + new FluidStack[] { Materials.Honey.getFluid(100L) }, + null, + 500, + 2, + 0); } if (ItemList.FR_Bee_Princess.get(1L) != null) { GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes.addFakeRecipe( - false, - new ItemStack[] { ItemList.FR_Bee_Princess.getWildcard(1L) }, - new ItemStack[] { ItemList.FR_Bee_Princess.getWithName(1L, "Scanned Princess") }, - null, - new FluidStack[] { Materials.Honey.getFluid(100L) }, - null, - 500, - 2, - 0); + false, + new ItemStack[] { ItemList.FR_Bee_Princess.getWildcard(1L) }, + new ItemStack[] { ItemList.FR_Bee_Princess.getWithName(1L, "Scanned Princess") }, + null, + new FluidStack[] { Materials.Honey.getFluid(100L) }, + null, + 500, + 2, + 0); } if (ItemList.FR_Bee_Queen.get(1L) != null) { GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes.addFakeRecipe( - false, - new ItemStack[] { ItemList.FR_Bee_Queen.getWildcard(1L) }, - new ItemStack[] { ItemList.FR_Bee_Queen.getWithName(1L, "Scanned Queen") }, - null, - new FluidStack[] { Materials.Honey.getFluid(100L) }, - null, - 500, - 2, - 0); + false, + new ItemStack[] { ItemList.FR_Bee_Queen.getWildcard(1L) }, + new ItemStack[] { ItemList.FR_Bee_Queen.getWithName(1L, "Scanned Queen") }, + null, + new FluidStack[] { Materials.Honey.getFluid(100L) }, + null, + 500, + 2, + 0); } if (ItemList.FR_Tree_Sapling.get(1L) != null) { GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes.addFakeRecipe( - false, - new ItemStack[] { ItemList.FR_Tree_Sapling.getWildcard(1L) }, - new ItemStack[] { ItemList.FR_Tree_Sapling.getWithName(1L, "Scanned Sapling") }, - null, - new FluidStack[] { Materials.Honey.getFluid(100L) }, - null, - 500, - 2, - 0); + false, + new ItemStack[] { ItemList.FR_Tree_Sapling.getWildcard(1L) }, + new ItemStack[] { ItemList.FR_Tree_Sapling.getWithName(1L, "Scanned Sapling") }, + null, + new FluidStack[] { Materials.Honey.getFluid(100L) }, + null, + 500, + 2, + 0); } if (ItemList.FR_Butterfly.get(1L) != null) { GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes.addFakeRecipe( - false, - new ItemStack[] { ItemList.FR_Butterfly.getWildcard(1L) }, - new ItemStack[] { ItemList.FR_Butterfly.getWithName(1L, "Scanned Butterfly") }, - null, - new FluidStack[] { Materials.Honey.getFluid(100L) }, - null, - 500, - 2, - 0); + false, + new ItemStack[] { ItemList.FR_Butterfly.getWildcard(1L) }, + new ItemStack[] { ItemList.FR_Butterfly.getWithName(1L, "Scanned Butterfly") }, + null, + new FluidStack[] { Materials.Honey.getFluid(100L) }, + null, + 500, + 2, + 0); } if (ItemList.FR_Larvae.get(1L) != null) { GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes.addFakeRecipe( - false, - new ItemStack[] { ItemList.FR_Larvae.getWildcard(1L) }, - new ItemStack[] { ItemList.FR_Larvae.getWithName(1L, "Scanned Larvae") }, - null, - new FluidStack[] { Materials.Honey.getFluid(100L) }, - null, - 500, - 2, - 0); + false, + new ItemStack[] { ItemList.FR_Larvae.getWildcard(1L) }, + new ItemStack[] { ItemList.FR_Larvae.getWithName(1L, "Scanned Larvae") }, + null, + new FluidStack[] { Materials.Honey.getFluid(100L) }, + null, + 500, + 2, + 0); } if (ItemList.FR_Serum.get(1L) != null) { GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes.addFakeRecipe( - false, - new ItemStack[] { ItemList.FR_Serum.getWildcard(1L) }, - new ItemStack[] { ItemList.FR_Serum.getWithName(1L, "Scanned Serum") }, - null, - new FluidStack[] { Materials.Honey.getFluid(100L) }, - null, - 500, - 2, - 0); + false, + new ItemStack[] { ItemList.FR_Serum.getWildcard(1L) }, + new ItemStack[] { ItemList.FR_Serum.getWithName(1L, "Scanned Serum") }, + null, + new FluidStack[] { Materials.Honey.getFluid(100L) }, + null, + 500, + 2, + 0); } if (ItemList.FR_Caterpillar.get(1L) != null) { GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes.addFakeRecipe( - false, - new ItemStack[] { ItemList.FR_Caterpillar.getWildcard(1L) }, - new ItemStack[] { ItemList.FR_Caterpillar.getWithName(1L, "Scanned Caterpillar") }, - null, - new FluidStack[] { Materials.Honey.getFluid(100L) }, - null, - 500, - 2, - 0); + false, + new ItemStack[] { ItemList.FR_Caterpillar.getWildcard(1L) }, + new ItemStack[] { ItemList.FR_Caterpillar.getWithName(1L, "Scanned Caterpillar") }, + null, + new FluidStack[] { Materials.Honey.getFluid(100L) }, + null, + 500, + 2, + 0); } if (ItemList.FR_PollenFertile.get(1L) != null) { GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes.addFakeRecipe( - false, - new ItemStack[] { ItemList.FR_PollenFertile.getWildcard(1L) }, - new ItemStack[] { ItemList.FR_PollenFertile.getWithName(1L, "Scanned Pollen") }, - null, - new FluidStack[] { Materials.Honey.getFluid(100L) }, - null, - 500, - 2, - 0); + false, + new ItemStack[] { ItemList.FR_PollenFertile.getWildcard(1L) }, + new ItemStack[] { ItemList.FR_PollenFertile.getWithName(1L, "Scanned Pollen") }, + null, + new FluidStack[] { Materials.Honey.getFluid(100L) }, + null, + 500, + 2, + 0); } } @@ -135,31 +135,31 @@ public class GT_Forestry_Compat { for (Map.Entry entry : outputs.entrySet()) { tChances[i] = (int) (entry.getValue() * 10000); tOutputs[i] = entry.getKey() - .copy(); + .copy(); i++; } GT_Recipe.GT_Recipe_Map.sCentrifugeRecipes.addRecipe( - true, - new ItemStack[] { tRecipe.getInput() }, - tOutputs, - null, - tChances, - null, - null, - 128, - 5, - 0); + true, + new ItemStack[] { tRecipe.getInput() }, + tOutputs, + null, + tChances, + null, + null, + 128, + 5, + 0); GT_Recipe.GT_Recipe_Map.sMultiblockCentrifugeRecipes.addRecipe( - true, - new ItemStack[] { tRecipe.getInput() }, - tOutputs, - null, - tChances, - null, - null, - 128, - 5, - 0); + true, + new ItemStack[] { tRecipe.getInput() }, + tOutputs, + null, + tChances, + null, + null, + 128, + 5, + 0); } } catch (Throwable e) { if (GT_Values.D1) { @@ -173,16 +173,16 @@ public class GT_Forestry_Compat { for (ISqueezerRecipe tRecipe : RecipeManagers.squeezerManager.recipes()) { if ((tRecipe.getResources().length == 1) && (tRecipe.getFluidOutput() != null)) { GT_Recipe.GT_Recipe_Map.sFluidExtractionRecipes.addRecipe( - true, - new ItemStack[] { tRecipe.getResources()[0] }, - new ItemStack[] { tRecipe.getRemnants() }, - null, - new int[] { (int) (tRecipe.getRemnantsChance() * 10000) }, - null, - new FluidStack[] { tRecipe.getFluidOutput() }, - 32, - 8, - 0); + true, + new ItemStack[] { tRecipe.getResources()[0] }, + new ItemStack[] { tRecipe.getRemnants() }, + null, + new int[] { (int) (tRecipe.getRemnantsChance() * 10000) }, + null, + new FluidStack[] { tRecipe.getFluidOutput() }, + 32, + 8, + 0); } } } catch (Throwable e) { diff --git a/src/main/java/gregtech/api/util/GT_GC_Compat.java b/src/main/java/gregtech/api/util/GT_GC_Compat.java index 23b4a42930..3b9bd5bda9 100644 --- a/src/main/java/gregtech/api/util/GT_GC_Compat.java +++ b/src/main/java/gregtech/api/util/GT_GC_Compat.java @@ -18,21 +18,19 @@ public class GT_GC_Compat { // GC Compat if (GregTech_API.mGalacticraft && tTileEntity instanceof IEnergyHandlerGC) { if (!(tTileEntity instanceof IConnector) - || ((IConnector) tTileEntity).canConnect(tDirection, NetworkType.POWER)) { + || ((IConnector) tTileEntity).canConnect(tDirection, NetworkType.POWER)) { EnergySource eSource = new EnergySourceAdjacent(tDirection); float tSizeToReceive = aVoltage * EnergyConfigHandler.IC2_RATIO, - tStored = ((IEnergyHandlerGC) tTileEntity).getEnergyStoredGC(eSource); + tStored = ((IEnergyHandlerGC) tTileEntity).getEnergyStoredGC(eSource); if (tSizeToReceive >= tStored - || tSizeToReceive <= ((IEnergyHandlerGC) tTileEntity).getMaxEnergyStoredGC(eSource) - tStored) { + || tSizeToReceive <= ((IEnergyHandlerGC) tTileEntity).getMaxEnergyStoredGC(eSource) - tStored) { float tReceived = ((IEnergyHandlerGC) tTileEntity).receiveEnergyGC(eSource, tSizeToReceive, false); if (tReceived > 0) { tSizeToReceive -= tReceived; while (tSizeToReceive > 0) { - tReceived = ((IEnergyHandlerGC) tTileEntity).receiveEnergyGC( - eSource, - tSizeToReceive, - false); + tReceived = ((IEnergyHandlerGC) tTileEntity) + .receiveEnergyGC(eSource, tSizeToReceive, false); if (tReceived < 1) break; tSizeToReceive -= tReceived; } @@ -48,8 +46,8 @@ public class GT_GC_Compat { public static boolean canConnect(TileEntity tTileEntity, ForgeDirection tDirection) { // GC Compat if (GregTech_API.mGalacticraft && tTileEntity instanceof IEnergyHandlerGC - && (!(tTileEntity instanceof IConnector) - || ((IConnector) tTileEntity).canConnect(tDirection, NetworkType.POWER))) + && (!(tTileEntity instanceof IConnector) + || ((IConnector) tTileEntity).canConnect(tDirection, NetworkType.POWER))) return true; return false; } diff --git a/src/main/java/gregtech/api/util/GT_HatchElementBuilder.java b/src/main/java/gregtech/api/util/GT_HatchElementBuilder.java index c3057f3caa..ba9e3b9773 100644 --- a/src/main/java/gregtech/api/util/GT_HatchElementBuilder.java +++ b/src/main/java/gregtech/api/util/GT_HatchElementBuilder.java @@ -58,21 +58,21 @@ public class GT_HatchElementBuilder { public final GT_HatchElementBuilder anyOf(IHatchElement... elements) { if (elements == null || elements.length == 0) throw new IllegalArgumentException(); return adder( - Arrays.stream(elements) - .map( - e -> e.adder() - .rebrand()) - .reduce(IGT_HatchAdder::orElse) - .get()).hatchClasses( - Arrays.stream(elements) - .map(IHatchElement::mteClasses) - .flatMap(Collection::stream) - .collect(Collectors.toList())) - .cacheHint( - () -> Arrays.stream(elements) - .map(IHatchElement::name) - .sorted() - .collect(Collectors.joining(" or ", "of type ", ""))); + Arrays.stream(elements) + .map( + e -> e.adder() + .rebrand()) + .reduce(IGT_HatchAdder::orElse) + .get()).hatchClasses( + Arrays.stream(elements) + .map(IHatchElement::mteClasses) + .flatMap(Collection::stream) + .collect(Collectors.toList())) + .cacheHint( + () -> Arrays.stream(elements) + .map(IHatchElement::name) + .sorted() + .collect(Collectors.joining(" or ", "of type ", ""))); } /** @@ -84,8 +84,8 @@ public class GT_HatchElementBuilder { public final GT_HatchElementBuilder atLeast(IHatchElement... elements) { if (elements == null || elements.length == 0) throw new IllegalArgumentException(); return atLeast( - Arrays.stream(elements) - .collect(Collectors.groupingBy(Function.identity(), LinkedHashMap::new, Collectors.counting()))); + Arrays.stream(elements) + .collect(Collectors.groupingBy(Function.identity(), LinkedHashMap::new, Collectors.counting()))); } /** @@ -96,9 +96,8 @@ public class GT_HatchElementBuilder { public final GT_HatchElementBuilder atLeastList(List> elements) { if (elements == null || elements.isEmpty()) throw new IllegalArgumentException(); return atLeast( - elements.stream() - .collect( - Collectors.groupingBy(Function.identity(), LinkedHashMap::new, Collectors.counting()))); + elements.stream() + .collect(Collectors.groupingBy(Function.identity(), LinkedHashMap::new, Collectors.counting()))); } /** @@ -108,57 +107,51 @@ public class GT_HatchElementBuilder { if (elements == null || elements.isEmpty() || elements.containsKey(null) || elements.containsValue(null)) throw new IllegalArgumentException(); List> list = elements.keySet() - .stream() - .map(IHatchElement::mteClasses) - .flatMap(Collection::stream) - .collect(Collectors.toList()); + .stream() + .map(IHatchElement::mteClasses) + .flatMap(Collection::stream) + .collect(Collectors.toList()); // map cannot be null or empty, so assert Optional isPresent return adder( - elements.keySet() - .stream() - .map( - e -> e.adder() - .rebrand()) - .reduce(IGT_HatchAdder::orElse) - .orElseThrow(AssertionError::new)) - .hatchItemFilter( - obj -> GT_StructureUtility.filterByMTEClass( - elements.entrySet() - .stream() - .filter( - entry -> entry.getKey() - .count(obj) - < entry.getValue() - .longValue()) - .flatMap( - entry -> entry.getKey() - .mteClasses() - .stream()) - .collect(Collectors.toList()))) - .shouldReject( - obj -> elements.entrySet() - .stream() - .allMatch( - e -> e.getKey() - .count(obj) - >= e.getValue() - .longValue())) - .shouldSkip( - (BiPredicate & Builtin) ( - c, t) -> t != null && list.stream() - .anyMatch( - clazz -> clazz.isInstance( - t.getMetaTileEntity()))) - .cacheHint( - () -> elements.keySet() - .stream() - .map(IHatchElement::name) - .sorted() - .collect( - Collectors.joining( - " or ", - "of type ", - ""))); + elements.keySet() + .stream() + .map( + e -> e.adder() + .rebrand()) + .reduce(IGT_HatchAdder::orElse) + .orElseThrow(AssertionError::new)) + .hatchItemFilter( + obj -> GT_StructureUtility.filterByMTEClass( + elements.entrySet() + .stream() + .filter( + entry -> entry.getKey() + .count(obj) + < entry.getValue() + .longValue()) + .flatMap( + entry -> entry.getKey() + .mteClasses() + .stream()) + .collect(Collectors.toList()))) + .shouldReject( + obj -> elements.entrySet() + .stream() + .allMatch( + e -> e.getKey() + .count(obj) + >= e.getValue() + .longValue())) + .shouldSkip( + (BiPredicate & Builtin) (c, + t) -> t != null && list.stream() + .anyMatch(clazz -> clazz.isInstance(t.getMetaTileEntity()))) + .cacheHint( + () -> elements.keySet() + .stream() + .map(IHatchElement::name) + .sorted() + .collect(Collectors.joining(" or ", "of type ", ""))); } // endregion @@ -198,34 +191,34 @@ public class GT_HatchElementBuilder { } public GT_HatchElementBuilder hatchItemFilter( - Function> aHatchItemFilter) { + Function> aHatchItemFilter) { if (aHatchItemFilter == null) throw new IllegalArgumentException(); mHatchItemFilter = (t, s) -> aHatchItemFilter.apply(t); return this; } public GT_HatchElementBuilder hatchItemFilterAnd( - Function> aHatchItemFilter) { + Function> aHatchItemFilter) { if (aHatchItemFilter == null) throw new IllegalArgumentException(); BiFunction> tOldFilter = mHatchItemFilter; mHatchItemFilter = (t, s) -> tOldFilter.apply(t, s) - .and(aHatchItemFilter.apply(t)); + .and(aHatchItemFilter.apply(t)); return this; } public GT_HatchElementBuilder hatchItemFilter( - BiFunction> aHatchItemFilter) { + BiFunction> aHatchItemFilter) { if (aHatchItemFilter == null) throw new IllegalArgumentException(); mHatchItemFilter = aHatchItemFilter; return this; } public GT_HatchElementBuilder hatchItemFilterAnd( - BiFunction> aHatchItemFilter) { + BiFunction> aHatchItemFilter) { if (aHatchItemFilter == null) throw new IllegalArgumentException(); BiFunction> tOldFilter = mHatchItemFilter; mHatchItemFilter = (t, s) -> tOldFilter.apply(t, s) - .and(aHatchItemFilter.apply(t, s)); + .and(aHatchItemFilter.apply(t, s)); return this; } @@ -297,14 +290,11 @@ public class GT_HatchElementBuilder { // region intermediate public GT_HatchElementBuilder hatchClass(Class clazz) { - return hatchItemFilter( - c -> is -> clazz.isInstance(GT_Item_Machines.getMetaTileEntity(is))).cacheHint( - () -> "of class " + clazz.getSimpleName()) - .shouldSkip( - (BiPredicate & Builtin) ( - c, - t) -> clazz.isInstance( - t.getMetaTileEntity())); + return hatchItemFilter(c -> is -> clazz.isInstance(GT_Item_Machines.getMetaTileEntity(is))) + .cacheHint(() -> "of class " + clazz.getSimpleName()) + .shouldSkip( + (BiPredicate & Builtin) (c, t) -> clazz + .isInstance(t.getMetaTileEntity())); } @SafeVarargs @@ -315,26 +305,22 @@ public class GT_HatchElementBuilder { public final GT_HatchElementBuilder hatchClasses(List> classes) { List> list = new ArrayList<>(classes); return hatchItemFilter(obj -> GT_StructureUtility.filterByMTEClass(list)).cacheHint( - () -> list.stream() - .map(Class::getSimpleName) - .sorted() - .collect(Collectors.joining(" or ", "of class ", ""))) - .shouldSkip( - (BiPredicate & Builtin) ( - c, t) -> t != null - && list.stream() - .anyMatch( - clazz -> clazz.isInstance( - t.getMetaTileEntity()))); + () -> list.stream() + .map(Class::getSimpleName) + .sorted() + .collect(Collectors.joining(" or ", "of class ", ""))) + .shouldSkip( + (BiPredicate & Builtin) (c, t) -> t != null && list.stream() + .anyMatch(clazz -> clazz.isInstance(t.getMetaTileEntity()))); } public GT_HatchElementBuilder hatchId(int aId) { return hatchItemFilter( - c -> is -> GT_Utility.isStackValid(is) && is.getItem() instanceof GT_Item_Machines - && is.getItemDamage() == aId).cacheHint(() -> "of id " + aId) - .shouldSkip( - (BiPredicate & Builtin) ( - c, t) -> t != null && t.getMetaTileID() == aId); + c -> is -> GT_Utility.isStackValid(is) && is.getItem() instanceof GT_Item_Machines + && is.getItemDamage() == aId).cacheHint(() -> "of id " + aId) + .shouldSkip( + (BiPredicate & Builtin) (c, t) -> t != null + && t.getMetaTileID() == aId); } public GT_HatchElementBuilder hatchIds(int... aIds) { @@ -342,16 +328,15 @@ public class GT_HatchElementBuilder { if (aIds.length == 1) return hatchId(aIds[0]); TIntCollection coll = aIds.length < 16 ? new TIntArrayList(aIds) : new TIntHashSet(aIds); return hatchItemFilter( - c -> is -> GT_Utility.isStackValid(is) && is.getItem() instanceof GT_Item_Machines - && coll.contains(is.getItemDamage())).cacheHint( - () -> Arrays.stream(coll.toArray()) - .sorted() - .mapToObj(String::valueOf) - .collect(Collectors.joining(" or ", "of id ", ""))) - .shouldSkip( - (BiPredicate & Builtin) ( - c, t) -> t != null && coll.contains( - t.getMetaTileID())); + c -> is -> GT_Utility.isStackValid(is) && is.getItem() instanceof GT_Item_Machines + && coll.contains(is.getItemDamage())).cacheHint( + () -> Arrays.stream(coll.toArray()) + .sorted() + .mapToObj(String::valueOf) + .collect(Collectors.joining(" or ", "of id ", ""))) + .shouldSkip( + (BiPredicate & Builtin) (c, t) -> t != null + && coll.contains(t.getMetaTileID())); } // endregion @@ -382,7 +367,7 @@ public class GT_HatchElementBuilder { public boolean check(T t, World world, int x, int y, int z) { TileEntity tileEntity = world.getTileEntity(x, y, z); return tileEntity instanceof IGregTechTileEntity - && mAdder.apply(t, (IGregTechTileEntity) tileEntity, (short) mCasingIndex); + && mAdder.apply(t, (IGregTechTileEntity) tileEntity, (short) mCasingIndex); } @Override @@ -400,7 +385,7 @@ public class GT_HatchElementBuilder { public boolean check(T t, World world, int x, int y, int z) { TileEntity tileEntity = world.getTileEntity(x, y, z); return tileEntity instanceof IGregTechTileEntity - && mAdder.apply(t, (IGregTechTileEntity) tileEntity, (short) mCasingIndex); + && mAdder.apply(t, (IGregTechTileEntity) tileEntity, (short) mCasingIndex); } @Override @@ -432,55 +417,54 @@ public class GT_HatchElementBuilder { @Override public BlocksToPlace getBlocksToPlace(T t, World world, int x, int y, int z, ItemStack trigger, - AutoPlaceEnvironment env) { + AutoPlaceEnvironment env) { return BlocksToPlace.create(mHatchItemFilter.apply(t, trigger)); } @Deprecated @Override public PlaceResult survivalPlaceBlock(T t, World world, int x, int y, int z, ItemStack trigger, - IItemSource s, EntityPlayerMP actor, Consumer chatter) { + IItemSource s, EntityPlayerMP actor, Consumer chatter) { return survivalPlaceBlock( - t, - world, - x, - y, - z, - trigger, - AutoPlaceEnvironment.fromLegacy(s, actor, chatter)); + t, + world, + x, + y, + z, + trigger, + AutoPlaceEnvironment.fromLegacy(s, actor, chatter)); } @Override public PlaceResult survivalPlaceBlock(T t, World world, int x, int y, int z, ItemStack trigger, - AutoPlaceEnvironment env) { + AutoPlaceEnvironment env) { if (mShouldSkip != null) { TileEntity tileEntity = world.getTileEntity(x, y, z); if (tileEntity instanceof IGregTechTileEntity - && mShouldSkip.test(t, (IGregTechTileEntity) tileEntity)) - return PlaceResult.SKIP; + && mShouldSkip.test(t, (IGregTechTileEntity) tileEntity)) return PlaceResult.SKIP; } if (!StructureLibAPI.isBlockTriviallyReplaceable(world, x, y, z, env.getActor())) return PlaceResult.REJECT; if (mReject != null && mReject.test(t)) return PlaceResult.REJECT; ItemStack taken = env.getSource() - .takeOne(mHatchItemFilter.apply(t, trigger), true); + .takeOne(mHatchItemFilter.apply(t, trigger), true); if (GT_Utility.isStackInvalid(taken)) { String type = getHint(); env.getChatter() - .accept(new ChatComponentTranslation("GT5U.autoplace.error.no_hatch", type)); + .accept(new ChatComponentTranslation("GT5U.autoplace.error.no_hatch", type)); return PlaceResult.REJECT; } if (StructureUtility.survivalPlaceBlock( - taken, - ItemStackPredicate.NBTMode.IGNORE, - null, - true, - world, - x, - y, - z, - env.getSource(), - env.getActor()) != PlaceResult.ACCEPT) { + taken, + ItemStackPredicate.NBTMode.IGNORE, + null, + true, + world, + x, + y, + z, + env.getSource(), + env.getActor()) != PlaceResult.ACCEPT) { return PlaceResult.REJECT; } // try to infer facing @@ -497,9 +481,7 @@ public class GT_HatchElementBuilder { // explicitly rejected, probably obstructed by another slice if (mDisallowedDirection.contains(direction)) continue; ForgeDirection rotated = env.getFacing() - .getWorldDirection( - direction.offsetY != 0 ? direction.getOpposite() - : direction); + .getWorldDirection(direction.offsetY != 0 ? direction.getOpposite() : direction); allowed.add(rotated); } } diff --git a/src/main/java/gregtech/api/util/GT_ItsNotMyFaultException.java b/src/main/java/gregtech/api/util/GT_ItsNotMyFaultException.java index 7097e877bd..d6b41e69b0 100644 --- a/src/main/java/gregtech/api/util/GT_ItsNotMyFaultException.java +++ b/src/main/java/gregtech/api/util/GT_ItsNotMyFaultException.java @@ -13,6 +13,6 @@ public class GT_ItsNotMyFaultException extends RuntimeException { @Override public String toString() { return "The GregTech-Addon has a Problem.\nIT'S NOT MY FAULT!!! Below is how to fix it.\n" + mError - + "\nDO NOT COME TO ME WITH THIS CRASH. YOU CAUSED IT YOURSELF, AND I TOLD YOU HOW TO FIX IT!!!"; + + "\nDO NOT COME TO ME WITH THIS CRASH. YOU CAUSED IT YOURSELF, AND I TOLD YOU HOW TO FIX IT!!!"; } } diff --git a/src/main/java/gregtech/api/util/GT_LanguageManager.java b/src/main/java/gregtech/api/util/GT_LanguageManager.java index 26651b42a3..eeaa12a9ed 100644 --- a/src/main/java/gregtech/api/util/GT_LanguageManager.java +++ b/src/main/java/gregtech/api/util/GT_LanguageManager.java @@ -20,15 +20,15 @@ import gregtech.api.GregTech_API; public class GT_LanguageManager { public static final HashMap TEMPMAP = new HashMap<>(), BUFFERMAP = new HashMap<>(), - LANGMAP = new HashMap<>(); + LANGMAP = new HashMap<>(); public static Configuration sEnglishFile; public static String sLanguage = "en_US"; public static boolean sUseEnglishFile = false; public static boolean i18nPlaceholder = true; public static String FACE_ANY = "gt.lang.face.any", FACE_BOTTOM = "gt.lang.face.bottom", - FACE_TOP = "gt.lang.face.top", FACE_LEFT = "gt.lang.face.left", FACE_FRONT = "gt.lang.face.front", - FACE_RIGHT = "gt.lang.face.right", FACE_BACK = "gt.lang.face.back", FACE_NONE = "gt.lang.face.none"; + FACE_TOP = "gt.lang.face.top", FACE_LEFT = "gt.lang.face.left", FACE_FRONT = "gt.lang.face.front", + FACE_RIGHT = "gt.lang.face.right", FACE_BACK = "gt.lang.face.back", FACE_NONE = "gt.lang.face.none"; public static String[] FACES = { FACE_BOTTOM, FACE_TOP, FACE_LEFT, FACE_FRONT, FACE_RIGHT, FACE_BACK, FACE_NONE }; @@ -36,17 +36,13 @@ public class GT_LanguageManager { static { try { - Field fieldStringTranslateLanguageList = ReflectionHelper.findField( - net.minecraft.util.StringTranslate.class, - "languageList", - "field_74816_c"); - Field fieldStringTranslateInstance = ReflectionHelper.findField( - net.minecraft.util.StringTranslate.class, - "instance", - "field_74817_a"); + Field fieldStringTranslateLanguageList = ReflectionHelper + .findField(net.minecraft.util.StringTranslate.class, "languageList", "field_74816_c"); + Field fieldStringTranslateInstance = ReflectionHelper + .findField(net.minecraft.util.StringTranslate.class, "instance", "field_74817_a"); // noinspection unchecked - stringTranslateLanguageList = (Map) fieldStringTranslateLanguageList.get( - fieldStringTranslateInstance.get(null)); + stringTranslateLanguageList = (Map) fieldStringTranslateLanguageList + .get(fieldStringTranslateInstance.get(null)); } catch (Exception e) { e.printStackTrace(); } @@ -67,7 +63,7 @@ public class GT_LanguageManager { } TEMPMAP.put(aKey.trim(), aEnglish); LanguageRegistry.instance() - .injectLanguage(sLanguage, TEMPMAP); + .injectLanguage(sLanguage, TEMPMAP); TEMPMAP.clear(); if (sUseEnglishFile && !aWriteIntoLangFile) { if (!LANGMAP.containsKey(aKey)) { @@ -95,7 +91,7 @@ public class GT_LanguageManager { Property tProperty = sEnglishFile.get("LanguageFile", aKey.trim(), aEnglish); if (!tProperty.wasRead() && GregTech_API.sPostloadFinished) sEnglishFile.save(); if (sEnglishFile.get("EnableLangFile", "UseThisFileAsLanguageFile", false) - .getBoolean(false)) { + .getBoolean(false)) { aEnglish = tProperty.getString(); sUseEnglishFile = true; } @@ -108,7 +104,7 @@ public class GT_LanguageManager { String tTrimmedKey = aKey.trim(), rTranslation; if (sUseEnglishFile) { rTranslation = LanguageRegistry.instance() - .getStringLocalization(tTrimmedKey); + .getStringLocalization(tTrimmedKey); } else { rTranslation = StatCollector.translateToLocal(tTrimmedKey); } @@ -148,7 +144,7 @@ public class GT_LanguageManager { NBTTagCompound tNBT = aStack.getTagCompound(); if (tNBT != null && tNBT.hasKey("display")) { String tName = tNBT.getCompoundTag("display") - .getString("Name"); + .getString("Name"); if (GT_Utility.isStringValid(tName)) { return tName; } @@ -219,13 +215,13 @@ public class GT_LanguageManager { addStringLocalization("Interaction_DESCRIPTION_Index_065", "Emit if 5 Maintenance Needed(inverted)"); addStringLocalization("Interaction_DESCRIPTION_Index_066", "Emit if rotor needs maintenance low accuracy mod"); addStringLocalization( - "Interaction_DESCRIPTION_Index_067", - "Emit if rotor needs maintenance low accuracy mod(inverted)"); + "Interaction_DESCRIPTION_Index_067", + "Emit if rotor needs maintenance low accuracy mod(inverted)"); addStringLocalization("Interaction_DESCRIPTION_Index_068", "Emit if rotor needs maintenance high accuracy mod"); addStringLocalization("Interaction_DESCRIPTION_Index_068.1", "Emit if any Player is close"); addStringLocalization( - "Interaction_DESCRIPTION_Index_069", - "Emit if rotor needs maintenance high accuracy mod(inverted)"); + "Interaction_DESCRIPTION_Index_069", + "Emit if rotor needs maintenance high accuracy mod(inverted)"); addStringLocalization("Interaction_DESCRIPTION_Index_069.1", "Emit if other Player is close"); addStringLocalization("Interaction_DESCRIPTION_Index_070", "Emit if you are close"); addStringLocalization("Interaction_DESCRIPTION_Index_071", "Conducts strongest Input"); @@ -373,8 +369,8 @@ public class GT_LanguageManager { addStringLocalization("Interaction_DESCRIPTION_Index_204", "No Pollution in Chunk! HAYO!"); addStringLocalization("Interaction_DESCRIPTION_Index_206", "Scan for Assembly Line"); addStringLocalization( - "Interaction_DESCRIPTION_Index_207", - "Pump speed: %dL every %d ticks, %.2f L/sec on average"); + "Interaction_DESCRIPTION_Index_207", + "Pump speed: %dL every %d ticks, %.2f L/sec on average"); addStringLocalization("Interaction_DESCRIPTION_Index_208", " L"); addStringLocalization("Interaction_DESCRIPTION_Index_209", " ticks"); addStringLocalization("Interaction_DESCRIPTION_Index_209.1", " tick"); @@ -391,8 +387,8 @@ public class GT_LanguageManager { addStringLocalization("Interaction_DESCRIPTION_Index_222", "Fluid threshold"); addStringLocalization("Interaction_DESCRIPTION_Index_222.1", "Energy threshold"); addStringLocalization( - "Interaction_DESCRIPTION_Index_223", - "Single recipe locking enabled. Will lock to next recipe."); + "Interaction_DESCRIPTION_Index_223", + "Single recipe locking enabled. Will lock to next recipe."); addStringLocalization("Interaction_DESCRIPTION_Index_224", "Always On"); addStringLocalization("Interaction_DESCRIPTION_Index_225", "Active with Redstone Signal"); addStringLocalization("Interaction_DESCRIPTION_Index_226", "Inactive with Redstone Signal"); @@ -436,8 +432,8 @@ public class GT_LanguageManager { addStringLocalization("Interaction_DESCRIPTION_Index_262", "Fluid Auto Output Disabled"); addStringLocalization("Interaction_DESCRIPTION_Index_263", "Fluid Auto Output Enabled"); addStringLocalization( - "Interaction_DESCRIPTION_Index_264", - "currently none, will be locked to the next that is put in"); + "Interaction_DESCRIPTION_Index_264", + "currently none, will be locked to the next that is put in"); addStringLocalization("Interaction_DESCRIPTION_Index_265", "1 specific Fluid"); addStringLocalization("Interaction_DESCRIPTION_Index_266", "Lock Fluid Mode Disabled"); addStringLocalization("Interaction_DESCRIPTION_Index_267", "Overflow Voiding Mode Disabled"); diff --git a/src/main/java/gregtech/api/util/GT_ModHandler.java b/src/main/java/gregtech/api/util/GT_ModHandler.java index 3ed707822a..58cadd9d7d 100644 --- a/src/main/java/gregtech/api/util/GT_ModHandler.java +++ b/src/main/java/gregtech/api/util/GT_ModHandler.java @@ -84,7 +84,7 @@ public class GT_ModHandler { private static final Map sIC2ItemMap = new HashMap<>(); private static final List sAllRecipeList = new ArrayList<>(5000), - sBufferRecipeList = new ArrayList<>(1000); + sBufferRecipeList = new ArrayList<>(1000); private static final List delayedRemovalByOutput = new ArrayList<>(); private static final List delayedRemovalByRecipe = new ArrayList<>(); @@ -106,50 +106,50 @@ public class GT_ModHandler { private static final ItemStack sMt1 = new ItemStack(Blocks.dirt, 1, 0), sMt2 = new ItemStack(Blocks.dirt, 1, 0); private static final String s_H = "h", s_F = "f", s_I = "I", s_P = "P", s_R = "R"; private static final ItemStack[][] sShapes1 = new ItemStack[][] { - { sMt1, null, sMt1, sMt1, sMt1, sMt1, null, sMt1, null }, - { sMt1, null, sMt1, sMt1, null, sMt1, sMt1, sMt1, sMt1 }, - { null, sMt1, null, sMt1, sMt1, sMt1, sMt1, null, sMt1 }, - { sMt1, sMt1, sMt1, sMt1, null, sMt1, null, null, null }, - { sMt1, null, sMt1, sMt1, sMt1, sMt1, sMt1, sMt1, sMt1 }, - { sMt1, sMt1, sMt1, sMt1, null, sMt1, sMt1, null, sMt1 }, - { null, null, null, sMt1, null, sMt1, sMt1, null, sMt1 }, - { null, sMt1, null, null, sMt1, null, null, sMt2, null }, - { sMt1, sMt1, sMt1, null, sMt2, null, null, sMt2, null }, - { null, sMt1, null, null, sMt2, null, null, sMt2, null }, - { sMt1, sMt1, null, sMt1, sMt2, null, null, sMt2, null }, - { null, sMt1, sMt1, null, sMt2, sMt1, null, sMt2, null }, - { sMt1, sMt1, null, null, sMt2, null, null, sMt2, null }, - { null, sMt1, sMt1, null, sMt2, null, null, sMt2, null }, - { null, sMt1, null, sMt1, null, null, null, sMt1, sMt2 }, - { null, sMt1, null, null, null, sMt1, sMt2, sMt1, null }, - { null, sMt1, null, sMt1, null, sMt1, null, null, sMt2 }, - { null, sMt1, null, sMt1, null, sMt1, sMt2, null, null }, - { null, sMt2, null, null, sMt1, null, null, sMt1, null }, - { null, sMt2, null, null, sMt2, null, sMt1, sMt1, sMt1 }, - { null, sMt2, null, null, sMt2, null, null, sMt1, null }, - { null, sMt2, null, sMt1, sMt2, null, sMt1, sMt1, null }, - { null, sMt2, null, null, sMt2, sMt1, null, sMt1, sMt1 }, - { null, sMt2, null, null, sMt2, null, sMt1, sMt1, null }, - { sMt1, null, null, null, sMt2, null, null, null, sMt2 }, - { null, null, sMt1, null, sMt2, null, sMt2, null, null }, - { sMt1, null, null, null, sMt2, null, null, null, null }, - { null, null, sMt1, null, sMt2, null, null, null, null }, - { sMt1, sMt2, null, null, null, null, null, null, null }, - { sMt2, sMt1, null, null, null, null, null, null, null }, - { sMt1, null, null, sMt2, null, null, null, null, null }, - { sMt2, null, null, sMt1, null, null, null, null, null }, - { sMt1, sMt1, sMt1, sMt1, sMt1, sMt1, null, sMt2, null }, - { sMt1, sMt1, null, sMt1, sMt1, sMt2, sMt1, sMt1, null }, - { null, sMt1, sMt1, sMt2, sMt1, sMt1, null, sMt1, sMt1 }, - { null, sMt2, null, sMt1, sMt1, sMt1, sMt1, sMt1, sMt1 }, - { sMt1, sMt1, sMt1, sMt1, sMt2, sMt1, null, sMt2, null }, - { sMt1, sMt1, null, sMt1, sMt2, sMt2, sMt1, sMt1, null }, - { null, sMt1, sMt1, sMt2, sMt2, sMt1, null, sMt1, sMt1 }, - { null, sMt2, null, sMt1, sMt2, sMt1, sMt1, sMt1, sMt1 }, - { sMt1, null, null, null, sMt1, null, null, null, null }, - { null, sMt1, null, sMt1, null, null, null, null, null }, - { sMt1, sMt1, null, sMt2, null, sMt1, sMt2, null, null }, - { null, sMt1, sMt1, sMt1, null, sMt2, null, null, sMt2 } }; + { sMt1, null, sMt1, sMt1, sMt1, sMt1, null, sMt1, null }, + { sMt1, null, sMt1, sMt1, null, sMt1, sMt1, sMt1, sMt1 }, + { null, sMt1, null, sMt1, sMt1, sMt1, sMt1, null, sMt1 }, + { sMt1, sMt1, sMt1, sMt1, null, sMt1, null, null, null }, + { sMt1, null, sMt1, sMt1, sMt1, sMt1, sMt1, sMt1, sMt1 }, + { sMt1, sMt1, sMt1, sMt1, null, sMt1, sMt1, null, sMt1 }, + { null, null, null, sMt1, null, sMt1, sMt1, null, sMt1 }, + { null, sMt1, null, null, sMt1, null, null, sMt2, null }, + { sMt1, sMt1, sMt1, null, sMt2, null, null, sMt2, null }, + { null, sMt1, null, null, sMt2, null, null, sMt2, null }, + { sMt1, sMt1, null, sMt1, sMt2, null, null, sMt2, null }, + { null, sMt1, sMt1, null, sMt2, sMt1, null, sMt2, null }, + { sMt1, sMt1, null, null, sMt2, null, null, sMt2, null }, + { null, sMt1, sMt1, null, sMt2, null, null, sMt2, null }, + { null, sMt1, null, sMt1, null, null, null, sMt1, sMt2 }, + { null, sMt1, null, null, null, sMt1, sMt2, sMt1, null }, + { null, sMt1, null, sMt1, null, sMt1, null, null, sMt2 }, + { null, sMt1, null, sMt1, null, sMt1, sMt2, null, null }, + { null, sMt2, null, null, sMt1, null, null, sMt1, null }, + { null, sMt2, null, null, sMt2, null, sMt1, sMt1, sMt1 }, + { null, sMt2, null, null, sMt2, null, null, sMt1, null }, + { null, sMt2, null, sMt1, sMt2, null, sMt1, sMt1, null }, + { null, sMt2, null, null, sMt2, sMt1, null, sMt1, sMt1 }, + { null, sMt2, null, null, sMt2, null, sMt1, sMt1, null }, + { sMt1, null, null, null, sMt2, null, null, null, sMt2 }, + { null, null, sMt1, null, sMt2, null, sMt2, null, null }, + { sMt1, null, null, null, sMt2, null, null, null, null }, + { null, null, sMt1, null, sMt2, null, null, null, null }, + { sMt1, sMt2, null, null, null, null, null, null, null }, + { sMt2, sMt1, null, null, null, null, null, null, null }, + { sMt1, null, null, sMt2, null, null, null, null, null }, + { sMt2, null, null, sMt1, null, null, null, null, null }, + { sMt1, sMt1, sMt1, sMt1, sMt1, sMt1, null, sMt2, null }, + { sMt1, sMt1, null, sMt1, sMt1, sMt2, sMt1, sMt1, null }, + { null, sMt1, sMt1, sMt2, sMt1, sMt1, null, sMt1, sMt1 }, + { null, sMt2, null, sMt1, sMt1, sMt1, sMt1, sMt1, sMt1 }, + { sMt1, sMt1, sMt1, sMt1, sMt2, sMt1, null, sMt2, null }, + { sMt1, sMt1, null, sMt1, sMt2, sMt2, sMt1, sMt1, null }, + { null, sMt1, sMt1, sMt2, sMt2, sMt1, null, sMt1, sMt1 }, + { null, sMt2, null, sMt1, sMt2, sMt1, sMt1, sMt1, sMt1 }, + { sMt1, null, null, null, sMt1, null, null, null, null }, + { null, sMt1, null, sMt1, null, null, null, null, null }, + { sMt1, sMt1, null, sMt2, null, sMt1, sMt2, null, null }, + { null, sMt1, sMt1, sMt1, null, sMt2, null, null, sMt2 } }; public static List sSingleNonBlockDamagableRecipeList_validsShapes1 = new ArrayList<>(44); public static boolean sSingleNonBlockDamagableRecipeList_validsShapes1_update = false; public static List sSingleNonBlockDamagableRecipeList_warntOutput = new ArrayList<>(50); @@ -397,10 +397,8 @@ public class GT_ModHandler { if (GT_Utility.isStringInvalid(aItem) || !GregTech_API.sPreloadStarted) { result = null; } else { - result = GT_Utility.copyAmount( - aAmount, - GameRegistry.findItemStack(aModID, aItem, (int) aAmount), - aReplacement); + result = GT_Utility + .copyAmount(aAmount, GameRegistry.findItemStack(aModID, aItem, (int) aAmount), aReplacement); } if (result == null) { @@ -413,10 +411,10 @@ public class GT_ModHandler { reason = "the item was not found in the game registry"; } String log_message = "getModItem call: object \"" + aItem - + "\" with mod id \"" - + aModID - + "\" has returned null because " - + reason; + + "\" with mod id \"" + + aModID + + "\" has returned null because " + + reason; GT_Log.out.println(log_message); new Exception().printStackTrace(GT_Log.out); } @@ -472,8 +470,8 @@ public class GT_ModHandler { if (aValue <= 0) return false; try { Class.forName("ic2.core.IC2") - .getMethod("addValuableOre", IRecipeInput.class, int.class) - .invoke(null, new RecipeInputItemStack(new ItemStack(aBlock, 1, aMeta)), aValue); + .getMethod("addValuableOre", IRecipeInput.class, int.class) + .invoke(null, new RecipeInputItemStack(new ItemStack(aBlock, 1, aMeta)), aValue); } catch (Throwable e) { /* Do nothing */ } @@ -492,21 +490,21 @@ public class GT_ModHandler { if (aChance <= 0) return false; try { GT_Utility.callMethod( - GT_Utility.getFieldContent("ic2.api.recipe.Recipes", "scrapboxDrops", true, true), - "addDrop", - true, - false, - true, - GT_Utility.copyOrNull(aOutput), - aChance); + GT_Utility.getFieldContent("ic2.api.recipe.Recipes", "scrapboxDrops", true, true), + "addDrop", + true, + false, + true, + GT_Utility.copyOrNull(aOutput), + aChance); GT_Utility.callMethod( - GT_Utility.getFieldContent("ic2.api.recipe.Recipes", "scrapboxDrops", true, true), - "addRecipe", - true, - true, - false, - GT_Utility.copyOrNull(aOutput), - aChance); + GT_Utility.getFieldContent("ic2.api.recipe.Recipes", "scrapboxDrops", true, true), + "addRecipe", + true, + true, + false, + GT_Utility.copyOrNull(aOutput), + aChance); } catch (Throwable e) { /* Do nothing */ } @@ -534,7 +532,7 @@ public class GT_ModHandler { if (aInput == null || aOutput == null || GT_Utility.getContainerItem(aInput, false) != null) return false; if (!GregTech_API.sRecipeFile.get(ConfigCategories.Machines.smelting, aInput, true)) return false; FurnaceRecipes.smelting() - .func_151394_a(aInput, GT_Utility.copyOrNull(aOutput), 0.0F); + .func_151394_a(aInput, GT_Utility.copyOrNull(aOutput), 0.0F); return true; } @@ -546,21 +544,21 @@ public class GT_ModHandler { boolean temp = false; if (aInput.stackSize == 1 && addSmeltingRecipe(aInput, aOutput)) temp = true; return (RA.addAlloySmelterRecipe( - aInput, - OrePrefixes.ingot.contains(aOutput) ? ItemList.Shape_Mold_Ingot.get(0) - : OrePrefixes.block.contains(aOutput) ? ItemList.Shape_Mold_Block.get(0) - : OrePrefixes.nugget.contains(aOutput) ? ItemList.Shape_Mold_Nugget.get(0) : null, - aOutput, - 130, - 3, - hidden)); + aInput, + OrePrefixes.ingot.contains(aOutput) ? ItemList.Shape_Mold_Ingot.get(0) + : OrePrefixes.block.contains(aOutput) ? ItemList.Shape_Mold_Block.get(0) + : OrePrefixes.nugget.contains(aOutput) ? ItemList.Shape_Mold_Nugget.get(0) : null, + aOutput, + 130, + 3, + hidden)); } /** * LiquidTransposer Recipe for both directions */ public static boolean addLiquidTransposerRecipe(ItemStack aEmptyContainer, FluidStack aLiquid, - ItemStack aFullContainer, int aMJ) { + ItemStack aFullContainer, int aMJ) { return true; } @@ -568,7 +566,7 @@ public class GT_ModHandler { * LiquidTransposer Recipe for filling Containers */ public static boolean addLiquidTransposerFillRecipe(ItemStack aEmptyContainer, FluidStack aLiquid, - ItemStack aFullContainer, int aMJ) { + ItemStack aFullContainer, int aMJ) { return true; } @@ -576,7 +574,7 @@ public class GT_ModHandler { * LiquidTransposer Recipe for emptying Containers */ public static boolean addLiquidTransposerEmptyRecipe(ItemStack aFullContainer, FluidStack aLiquid, - ItemStack aEmptyContainer, int aMJ) { + ItemStack aEmptyContainer, int aMJ) { return true; } @@ -608,7 +606,7 @@ public class GT_ModHandler { } public static boolean addPulverisationRecipe(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2, - int aChance) { + int aChance) { return addPulverisationRecipe(aInput, aOutput1, aOutput2, aChance, false); } @@ -617,12 +615,12 @@ public class GT_ModHandler { } public static boolean addPulverisationRecipe(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2, - boolean aOverwrite) { + boolean aOverwrite) { return addPulverisationRecipe(aInput, aOutput1, aOutput2, 100, aOverwrite); } public static boolean addPulverisationRecipe(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2, int aChance, - boolean aOverwrite) { + boolean aOverwrite) { return addPulverisationRecipe(aInput, aOutput1, aOutput2, aChance, null, 0, aOverwrite); } @@ -630,24 +628,24 @@ public class GT_ModHandler { * Adds Several Pulverizer-Type Recipes. */ public static boolean addPulverisationRecipe(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2, int aChance2, - ItemStack aOutput3, int aChance3, boolean aOverwrite) { + ItemStack aOutput3, int aChance3, boolean aOverwrite) { aOutput1 = GT_OreDictUnificator.get(true, aOutput1); aOutput2 = GT_OreDictUnificator.get(true, aOutput2); if (GT_Utility.isStackInvalid(aInput) || GT_Utility.isStackInvalid(aOutput1)) return false; if (GT_Utility.getContainerItem(aInput, false) == null) { RA.addPulveriserRecipe( - aInput, - new ItemStack[] { aOutput1, aOutput2, aOutput3 }, - new int[] { 10000, aChance2 <= 0 ? 1000 : 100 * aChance2, aChance3 <= 0 ? 1000 : 100 * aChance3 }, - 400, - 2); + aInput, + new ItemStack[] { aOutput1, aOutput2, aOutput3 }, + new int[] { 10000, aChance2 <= 0 ? 1000 : 100 * aChance2, aChance3 <= 0 ? 1000 : 100 * aChance3 }, + 400, + 2); } return true; } public static boolean addPulverisationRecipe(ItemStack aInputItem, ItemStack[] aOutputArray, int[] aChanceArray, - int aEUt, int aRecipeDurationInTicks) { + int aEUt, int aRecipeDurationInTicks) { ItemStack[] aUnifiedOutputArray = new ItemStack[aOutputArray.length]; int counter = 0; @@ -663,12 +661,12 @@ public class GT_ModHandler { } public static boolean addImmersiveEngineeringRecipe(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2, - int aChance2, ItemStack aOutput3, int aChance3) { + int aChance2, ItemStack aOutput3, int aChance3) { return true; } public static boolean addMagneticraftRecipe(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2, int aChance2, - ItemStack aOutput3, int aChance3) { + ItemStack aOutput3, int aChance3) { return true; } @@ -683,7 +681,7 @@ public class GT_ModHandler { * Induction Smelter Recipes and Alloy Smelter Recipes */ public static boolean addAlloySmelterRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, int aDuration, - int aEUt, boolean aAllowSecondaryInputEmpty) { + int aEUt, boolean aAllowSecondaryInputEmpty) { if (aInput1 == null || (aInput2 == null && !aAllowSecondaryInputEmpty) || aOutput1 == null) return false; aOutput1 = GT_OreDictUnificator.get(true, aOutput1); return RA.addAlloySmelterRecipe(aInput1, aInput2, aOutput1, aDuration, aEUt); @@ -693,7 +691,7 @@ public class GT_ModHandler { * Induction Smelter Recipes for TE */ public static boolean addInductionSmelterRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, - ItemStack aOutput2, int aEnergy, int aChance) { + ItemStack aOutput2, int aEnergy, int aChance) { return true; } @@ -704,7 +702,7 @@ public class GT_ModHandler { aOutput = GT_OreDictUnificator.get(true, aOutput); if (aInput == null || aOutput == null) return false; FurnaceRecipes.smelting() - .func_151394_a(aInput, GT_Utility.copyOrNull(aOutput), 0.0F); + .func_151394_a(aInput, GT_Utility.copyOrNull(aOutput), 0.0F); return true; } @@ -712,32 +710,33 @@ public class GT_ModHandler { * Adds GT versions of the IC2 recipes from the supplied IC2RecipeList. */ public static void addIC2RecipesToGT(Map aIC2RecipeList, - GT_Recipe.GT_Recipe_Map aGTRecipeMap, boolean aAddGTRecipe, boolean aRemoveIC2Recipe, - boolean aExcludeGTIC2Items) { + GT_Recipe.GT_Recipe_Map aGTRecipeMap, boolean aAddGTRecipe, boolean aRemoveIC2Recipe, + boolean aExcludeGTIC2Items) { Map aRecipesToRemove = new HashMap<>(); for (Entry iRecipeInputRecipeOutputEntry : aIC2RecipeList.entrySet()) { if (!iRecipeInputRecipeOutputEntry.getValue().items.isEmpty()) { for (ItemStack tStack : (iRecipeInputRecipeOutputEntry.getKey()).getInputs()) { if (GT_Utility.isStackValid(tStack)) { if (aAddGTRecipe - && (aGTRecipeMap.findRecipe(null, false, Long.MAX_VALUE, null, tStack) == null)) { + && (aGTRecipeMap.findRecipe(null, false, Long.MAX_VALUE, null, tStack) == null)) { try { if (aExcludeGTIC2Items && ((tStack.getUnlocalizedName() - .contains("gt.metaitem.01") - || tStack.getUnlocalizedName() - .contains("gt.blockores") - || tStack.getUnlocalizedName() - .contains("ic2.itemCrushed") - || tStack.getUnlocalizedName() - .contains("ic2.itemPurifiedCrushed")))) + .contains("gt.metaitem.01") + || tStack.getUnlocalizedName() + .contains("gt.blockores") + || tStack.getUnlocalizedName() + .contains("ic2.itemCrushed") + || tStack.getUnlocalizedName() + .contains("ic2.itemPurifiedCrushed")))) continue; switch (aGTRecipeMap.mUnlocalizedName) { - case "gt.recipe.macerator", "gt.recipe.extractor", "gt.recipe.compressor" -> aGTRecipeMap.addRecipe( + case "gt.recipe.macerator", "gt.recipe.extractor", "gt.recipe.compressor" -> aGTRecipeMap + .addRecipe( true, new ItemStack[] { GT_Utility.copyAmount( - iRecipeInputRecipeOutputEntry.getKey() - .getAmount(), - tStack) }, + iRecipeInputRecipeOutputEntry.getKey() + .getAmount(), + tStack) }, iRecipeInputRecipeOutputEntry.getValue().items.toArray(new ItemStack[0]), null, null, @@ -747,19 +746,19 @@ public class GT_ModHandler { 2, 0); case "gt.recipe.thermalcentrifuge" -> aGTRecipeMap.addRecipe( - true, - new ItemStack[] { GT_Utility.copyAmount( - iRecipeInputRecipeOutputEntry.getKey() - .getAmount(), - tStack) }, - iRecipeInputRecipeOutputEntry.getValue().items.toArray(new ItemStack[0]), - null, - null, - null, - null, - 500, - 48, - 0); + true, + new ItemStack[] { GT_Utility.copyAmount( + iRecipeInputRecipeOutputEntry.getKey() + .getAmount(), + tStack) }, + iRecipeInputRecipeOutputEntry.getValue().items.toArray(new ItemStack[0]), + null, + null, + null, + null, + 500, + 48, + 0); } } catch (Exception e) { System.err.println(e); @@ -835,13 +834,13 @@ public class GT_ModHandler { if (aInput == null || aOutput == null || aOutput.length <= 0 || aOutput[0] == null) return false; if (!GregTech_API.sRecipeFile.get(ConfigCategories.Machines.thermalcentrifuge, aInput, true)) return false; RA.addThermalCentrifugeRecipe( - aInput, - aOutput.length >= 1 ? (ItemStack) aOutput[0] : null, - aOutput.length >= 2 ? (ItemStack) aOutput[1] : null, - aOutput.length >= 3 ? (ItemStack) aOutput[2] : null, - aChances, - 500, - 48); + aInput, + aOutput.length >= 1 ? (ItemStack) aOutput[0] : null, + aOutput.length >= 2 ? (ItemStack) aOutput[1] : null, + aOutput.length >= 3 ? (ItemStack) aOutput[2] : null, + aChances, + 500, + 48); return true; } @@ -849,12 +848,12 @@ public class GT_ModHandler { if (aInput == null || aOutput == null || aOutput.length <= 0 || aOutput[0] == null) return false; if (!GregTech_API.sRecipeFile.get(ConfigCategories.Machines.thermalcentrifuge, aInput, true)) return false; RA.addThermalCentrifugeRecipe( - aInput, - aOutput.length >= 1 ? (ItemStack) aOutput[0] : null, - aOutput.length >= 2 ? (ItemStack) aOutput[1] : null, - aOutput.length >= 3 ? (ItemStack) aOutput[2] : null, - 500, - 48); + aInput, + aOutput.length >= 1 ? (ItemStack) aOutput[0] : null, + aOutput.length >= 2 ? (ItemStack) aOutput[1] : null, + aOutput.length >= 3 ? (ItemStack) aOutput[2] : null, + 500, + 48); return true; } @@ -865,23 +864,23 @@ public class GT_ModHandler { if (aInput == null || aOutput == null || aOutput.length <= 0 || aOutput[0] == null) return false; if (!GregTech_API.sRecipeFile.get(ConfigCategories.Machines.orewashing, aInput, true)) return false; RA.addOreWasherRecipe( - aInput, - (ItemStack) aOutput[0], - (ItemStack) aOutput[1], - (ItemStack) aOutput[2], - GT_ModHandler.getWater(aWaterAmount), - aChances, - 500, - 16); + aInput, + (ItemStack) aOutput[0], + (ItemStack) aOutput[1], + (ItemStack) aOutput[2], + GT_ModHandler.getWater(aWaterAmount), + aChances, + 500, + 16); RA.addOreWasherRecipe( - aInput, - (ItemStack) aOutput[0], - (ItemStack) aOutput[1], - (ItemStack) aOutput[2], - GT_ModHandler.getDistilledWater(aWaterAmount / 5), - aChances, - 300, - 16); + aInput, + (ItemStack) aOutput[0], + (ItemStack) aOutput[1], + (ItemStack) aOutput[2], + GT_ModHandler.getDistilledWater(aWaterAmount / 5), + aChances, + 300, + 16); return true; } @@ -889,21 +888,21 @@ public class GT_ModHandler { if (aInput == null || aOutput == null || aOutput.length <= 0 || aOutput[0] == null) return false; if (!GregTech_API.sRecipeFile.get(ConfigCategories.Machines.orewashing, aInput, true)) return false; RA.addOreWasherRecipe( - aInput, - (ItemStack) aOutput[0], - (ItemStack) aOutput[1], - (ItemStack) aOutput[2], - GT_ModHandler.getWater(aWaterAmount), - 500, - 16); + aInput, + (ItemStack) aOutput[0], + (ItemStack) aOutput[1], + (ItemStack) aOutput[2], + GT_ModHandler.getWater(aWaterAmount), + 500, + 16); RA.addOreWasherRecipe( - aInput, - (ItemStack) aOutput[0], - (ItemStack) aOutput[1], - (ItemStack) aOutput[2], - GT_ModHandler.getDistilledWater(aWaterAmount / 5), - 300, - 16); + aInput, + (ItemStack) aOutput[0], + (ItemStack) aOutput[1], + (ItemStack) aOutput[2], + GT_ModHandler.getDistilledWater(aWaterAmount / 5), + 300, + 16); return true; } @@ -934,14 +933,8 @@ public class GT_ModHandler { try { NBTTagCompound tNBT = new NBTTagCompound(); tNBT.setInteger("amplification", aValue); - GT_Utility.callMethod( - ic2.api.recipe.Recipes.matterAmplifier, - "addRecipe", - false, - false, - false, - aAmplifier, - tNBT); + GT_Utility + .callMethod(ic2.api.recipe.Recipes.matterAmplifier, "addRecipe", false, false, false, aAmplifier, tNBT); } catch (Throwable e) { /* Do nothing */ } @@ -956,11 +949,7 @@ public class GT_ModHandler { if (aResult == null || aRecipe == null || aResult.stackSize <= 0) return false; try { mods.railcraft.api.crafting.RailcraftCraftingManager.rollingMachine.getRecipeList() - .add( - new ShapedOreRecipe( - GT_Utility.copyOrNull( - aResult), - aRecipe)); + .add(new ShapedOreRecipe(GT_Utility.copyOrNull(aResult), aRecipe)); } catch (Throwable e) { return addCraftingRecipe(GT_Utility.copyOrNull(aResult), aRecipe); } @@ -983,25 +972,25 @@ public class GT_ModHandler { * Shapeless Crafting Recipes. Deletes conflicting Recipes too. */ public static boolean addCraftingRecipe(ItemStack aResult, Enchantment[] aEnchantmentsAdded, - int[] aEnchantmentLevelsAdded, Object[] aRecipe) { + int[] aEnchantmentLevelsAdded, Object[] aRecipe) { return addCraftingRecipe( - aResult, - aEnchantmentsAdded, - aEnchantmentLevelsAdded, - false, - true, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - true, - aRecipe); + aResult, + aEnchantmentsAdded, + aEnchantmentLevelsAdded, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + aRecipe); } /** @@ -1046,34 +1035,34 @@ public class GT_ModHandler { */ public static boolean addCraftingRecipe(ItemStack aResult, long aBitMask, Object[] aRecipe) { return addCraftingRecipe( - aResult, - new Enchantment[0], - new int[0], - (aBitMask & RecipeBits.MIRRORED) != 0, - (aBitMask & RecipeBits.BUFFERED) != 0, - (aBitMask & RecipeBits.KEEPNBT) != 0, - (aBitMask & RecipeBits.DISMANTLEABLE) != 0, - (aBitMask & RecipeBits.NOT_REMOVABLE) == 0, - (aBitMask & RecipeBits.REVERSIBLE) != 0, - (aBitMask & RecipeBits.DELETE_ALL_OTHER_RECIPES) != 0, - (aBitMask & RecipeBits.DELETE_ALL_OTHER_RECIPES_IF_SAME_NBT) != 0, - (aBitMask & RecipeBits.DELETE_ALL_OTHER_SHAPED_RECIPES) != 0, - (aBitMask & RecipeBits.DELETE_ALL_OTHER_NATIVE_RECIPES) != 0, - (aBitMask & RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS) == 0, - (aBitMask & RecipeBits.ONLY_ADD_IF_THERE_IS_ANOTHER_RECIPE_FOR_IT) != 0, - (aBitMask & RecipeBits.ONLY_ADD_IF_RESULT_IS_NOT_NULL) != 0, - aRecipe); + aResult, + new Enchantment[0], + new int[0], + (aBitMask & RecipeBits.MIRRORED) != 0, + (aBitMask & RecipeBits.BUFFERED) != 0, + (aBitMask & RecipeBits.KEEPNBT) != 0, + (aBitMask & RecipeBits.DISMANTLEABLE) != 0, + (aBitMask & RecipeBits.NOT_REMOVABLE) == 0, + (aBitMask & RecipeBits.REVERSIBLE) != 0, + (aBitMask & RecipeBits.DELETE_ALL_OTHER_RECIPES) != 0, + (aBitMask & RecipeBits.DELETE_ALL_OTHER_RECIPES_IF_SAME_NBT) != 0, + (aBitMask & RecipeBits.DELETE_ALL_OTHER_SHAPED_RECIPES) != 0, + (aBitMask & RecipeBits.DELETE_ALL_OTHER_NATIVE_RECIPES) != 0, + (aBitMask & RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS) == 0, + (aBitMask & RecipeBits.ONLY_ADD_IF_THERE_IS_ANOTHER_RECIPE_FOR_IT) != 0, + (aBitMask & RecipeBits.ONLY_ADD_IF_RESULT_IS_NOT_NULL) != 0, + aRecipe); } /** * Internal realisation of the Crafting Recipe adding Process. */ private static boolean addCraftingRecipe(ItemStack aResult, Enchantment[] aEnchantmentsAdded, - int[] aEnchantmentLevelsAdded, boolean aMirrored, boolean aBuffered, boolean aKeepNBT, - boolean aDismantleable, boolean aRemovable, boolean aReversible, boolean aRemoveAllOthersWithSameOutput, - boolean aRemoveAllOthersWithSameOutputIfTheyHaveSameNBT, boolean aRemoveAllOtherShapedsWithSameOutput, - boolean aRemoveAllOtherNativeRecipes, boolean aCheckForCollisions, - boolean aOnlyAddIfThereIsAnyRecipeOutputtingThis, boolean aOnlyAddIfResultIsNotNull, Object[] aRecipe) { + int[] aEnchantmentLevelsAdded, boolean aMirrored, boolean aBuffered, boolean aKeepNBT, boolean aDismantleable, + boolean aRemovable, boolean aReversible, boolean aRemoveAllOthersWithSameOutput, + boolean aRemoveAllOthersWithSameOutputIfTheyHaveSameNBT, boolean aRemoveAllOtherShapedsWithSameOutput, + boolean aRemoveAllOtherNativeRecipes, boolean aCheckForCollisions, + boolean aOnlyAddIfThereIsAnyRecipeOutputtingThis, boolean aOnlyAddIfResultIsNotNull, Object[] aRecipe) { aResult = GT_OreDictUnificator.get(true, aResult); if (aOnlyAddIfResultIsNotNull && aResult == null) return false; if (aResult != null && Items.feather.getDamage(aResult) == W) Items.feather.setDamage(aResult, 0); @@ -1086,10 +1075,9 @@ public class GT_ModHandler { if (aRecipe[i] instanceof IItemContainer) aRecipe[i] = ((IItemContainer) aRecipe[i]).get(1); else if (aRecipe[i] instanceof Enum) aRecipe[i] = ((Enum) aRecipe[i]).name(); else if (!(aRecipe[i] == null || aRecipe[i] instanceof ItemStack - || aRecipe[i] instanceof ItemData - || aRecipe[i] instanceof String - || aRecipe[i] instanceof Character)) - aRecipe[i] = aRecipe[i].toString(); + || aRecipe[i] instanceof ItemData + || aRecipe[i] instanceof String + || aRecipe[i] instanceof Character)) aRecipe[i] = aRecipe[i].toString(); } try { @@ -1108,7 +1096,7 @@ public class GT_ModHandler { if (s.length() > 3) throw new IllegalArgumentException(); for (char c : s.toString() - .toCharArray()) { + .toCharArray()) { switch (c) { case 'b' -> { tRecipeList.add(c); @@ -1185,8 +1173,8 @@ public class GT_ModHandler { if (aRecipe[idx] == null || aRecipe[idx + 1] == null) { if (D1) { GT_Log.err.println( - "WARNING: Missing Item for shaped Recipe: " - + (aResult == null ? "null" : aResult.getDisplayName())); + "WARNING: Missing Item for shaped Recipe: " + + (aResult == null ? "null" : aResult.getDisplayName())); for (Object tContent : aRecipe) GT_Log.err.println(tContent); } return false; @@ -1234,8 +1222,7 @@ public class GT_ModHandler { ItemData[] tData = new ItemData[9]; int x = -1; for (char chr : shape.toString() - .toCharArray()) - tData[++x] = tItemDataMap.get(chr); + .toCharArray()) tData[++x] = tItemDataMap.get(chr); if (GT_Utility.arrayContainsNonNull(tData)) GT_OreDictUnificator.addItemData(aResult, new ItemData(tData)); } @@ -1244,7 +1231,7 @@ public class GT_ModHandler { ItemStack[] tRecipe = new ItemStack[9]; int x = -1; for (char chr : shape.toString() - .toCharArray()) { + .toCharArray()) { tRecipe[++x] = tItemStackMap.get(chr); if (tRecipe[x] != null && Items.feather.getDamage(tRecipe[x]) == W) Items.feather.setDamage(tRecipe[x], 0); @@ -1260,25 +1247,25 @@ public class GT_ModHandler { if (aResult == null || aResult.stackSize <= 0) return false; if (aRemoveAllOthersWithSameOutput || aRemoveAllOthersWithSameOutputIfTheyHaveSameNBT - || aRemoveAllOtherShapedsWithSameOutput - || aRemoveAllOtherNativeRecipes) { + || aRemoveAllOtherShapedsWithSameOutput + || aRemoveAllOtherNativeRecipes) { if (tDoWeCareIfThereWasARecipe || !aBuffered) tThereWasARecipe = removeRecipeByOutput( - aResult, - !aRemoveAllOthersWithSameOutputIfTheyHaveSameNBT, - aRemoveAllOtherShapedsWithSameOutput, - aRemoveAllOtherNativeRecipes) || tThereWasARecipe; + aResult, + !aRemoveAllOthersWithSameOutputIfTheyHaveSameNBT, + aRemoveAllOtherShapedsWithSameOutput, + aRemoveAllOtherNativeRecipes) || tThereWasARecipe; else removeRecipeByOutputDelayed(aResult); } if (aOnlyAddIfThereIsAnyRecipeOutputtingThis && !tDoWeCareIfThereWasARecipe && !tThereWasARecipe) { ArrayList tList = (ArrayList) CraftingManager.getInstance() - .getRecipeList(); + .getRecipeList(); int tList_sS = tList.size(); for (int i = 0; i < tList_sS && !tThereWasARecipe; i++) { IRecipe tRecipe = tList.get(i); if (sSpecialRecipeClasses.contains( - tRecipe.getClass() - .getName())) + tRecipe.getClass() + .getName())) continue; if (GT_Utility.areStacksEqual(GT_OreDictUnificator.get(tRecipe.getRecipeOutput()), aResult, true)) { tList.remove(i--); @@ -1295,23 +1282,23 @@ public class GT_ModHandler { if (tThereWasARecipe || !aOnlyAddIfThereIsAnyRecipeOutputtingThis) { if (sBufferCraftingRecipes && aBuffered) sBufferRecipeList.add( - new GT_Shaped_Recipe( - GT_Utility.copyOrNull(aResult), - aDismantleable, - aRemovable, - aKeepNBT, - aEnchantmentsAdded, - aEnchantmentLevelsAdded, - aRecipe).setMirrored(aMirrored)); + new GT_Shaped_Recipe( + GT_Utility.copyOrNull(aResult), + aDismantleable, + aRemovable, + aKeepNBT, + aEnchantmentsAdded, + aEnchantmentLevelsAdded, + aRecipe).setMirrored(aMirrored)); else GameRegistry.addRecipe( - new GT_Shaped_Recipe( - GT_Utility.copyOrNull(aResult), - aDismantleable, - aRemovable, - aKeepNBT, - aEnchantmentsAdded, - aEnchantmentLevelsAdded, - aRecipe).setMirrored(aMirrored)); + new GT_Shaped_Recipe( + GT_Utility.copyOrNull(aResult), + aDismantleable, + aRemovable, + aKeepNBT, + aEnchantmentsAdded, + aEnchantmentLevelsAdded, + aRecipe).setMirrored(aMirrored)); } return true; } @@ -1320,16 +1307,16 @@ public class GT_ModHandler { * Shapeless Crafting Recipes. Deletes conflicting Recipes too. */ public static boolean addShapelessEnchantingRecipe(ItemStack aResult, Enchantment[] aEnchantmentsAdded, - int[] aEnchantmentLevelsAdded, Object[] aRecipe) { + int[] aEnchantmentLevelsAdded, Object[] aRecipe) { return addShapelessCraftingRecipe( - aResult, - aEnchantmentsAdded, - aEnchantmentLevelsAdded, - true, - false, - false, - false, - aRecipe); + aResult, + aEnchantmentsAdded, + aEnchantmentLevelsAdded, + true, + false, + false, + false, + aRecipe); } /** @@ -1337,9 +1324,9 @@ public class GT_ModHandler { */ public static boolean addShapelessCraftingRecipe(ItemStack aResult, Object[] aRecipe) { return addShapelessCraftingRecipe( - aResult, - RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | RecipeBits.BUFFERED, - aRecipe); + aResult, + RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | RecipeBits.BUFFERED, + aRecipe); } /** @@ -1347,31 +1334,30 @@ public class GT_ModHandler { */ public static boolean addShapelessCraftingRecipe(ItemStack aResult, long aBitMask, Object[] aRecipe) { return addShapelessCraftingRecipe( - aResult, - new Enchantment[0], - new int[0], - (aBitMask & RecipeBits.BUFFERED) != 0, - (aBitMask & RecipeBits.KEEPNBT) != 0, - (aBitMask & RecipeBits.DISMANTLEABLE) != 0, - (aBitMask & RecipeBits.NOT_REMOVABLE) == 0, - aRecipe); + aResult, + new Enchantment[0], + new int[0], + (aBitMask & RecipeBits.BUFFERED) != 0, + (aBitMask & RecipeBits.KEEPNBT) != 0, + (aBitMask & RecipeBits.DISMANTLEABLE) != 0, + (aBitMask & RecipeBits.NOT_REMOVABLE) == 0, + aRecipe); } /** * Shapeless Crafting Recipes. Deletes conflicting Recipes too. */ private static boolean addShapelessCraftingRecipe(ItemStack aResult, Enchantment[] aEnchantmentsAdded, - int[] aEnchantmentLevelsAdded, boolean aBuffered, boolean aKeepNBT, boolean aDismantleable, - boolean aRemovable, Object[] aRecipe) { + int[] aEnchantmentLevelsAdded, boolean aBuffered, boolean aKeepNBT, boolean aDismantleable, boolean aRemovable, + Object[] aRecipe) { aResult = GT_OreDictUnificator.get(true, aResult); if (aRecipe == null || aRecipe.length <= 0) return false; for (byte i = 0; i < aRecipe.length; i++) { if (aRecipe[i] instanceof IItemContainer) aRecipe[i] = ((IItemContainer) aRecipe[i]).get(1); else if (aRecipe[i] instanceof Enum) aRecipe[i] = ((Enum) aRecipe[i]).name(); else if (!(aRecipe[i] == null || aRecipe[i] instanceof ItemStack - || aRecipe[i] instanceof String - || aRecipe[i] instanceof Character)) - aRecipe[i] = aRecipe[i].toString(); + || aRecipe[i] instanceof String + || aRecipe[i] instanceof Character)) aRecipe[i] = aRecipe[i].toString(); } try { ItemStack[] tRecipe = new ItemStack[9]; @@ -1379,8 +1365,8 @@ public class GT_ModHandler { for (Object tObject : aRecipe) { if (tObject == null) { if (D1) GT_Log.err.println( - "WARNING: Missing Item for shapeless Recipe: " - + (aResult == null ? "null" : aResult.getDisplayName())); + "WARNING: Missing Item for shapeless Recipe: " + + (aResult == null ? "null" : aResult.getDisplayName())); for (Object tContent : aRecipe) GT_Log.err.println(tContent); return false; } @@ -1406,23 +1392,23 @@ public class GT_ModHandler { GT_Utility.updateItemStack(aResult); if (sBufferCraftingRecipes && aBuffered) sBufferRecipeList.add( - new GT_Shapeless_Recipe( - GT_Utility.copyOrNull(aResult), - aDismantleable, - aRemovable, - aKeepNBT, - aEnchantmentsAdded, - aEnchantmentLevelsAdded, - aRecipe)); + new GT_Shapeless_Recipe( + GT_Utility.copyOrNull(aResult), + aDismantleable, + aRemovable, + aKeepNBT, + aEnchantmentsAdded, + aEnchantmentLevelsAdded, + aRecipe)); else GameRegistry.addRecipe( - new GT_Shapeless_Recipe( - GT_Utility.copyOrNull(aResult), - aDismantleable, - aRemovable, - aKeepNBT, - aEnchantmentsAdded, - aEnchantmentLevelsAdded, - aRecipe)); + new GT_Shapeless_Recipe( + GT_Utility.copyOrNull(aResult), + aDismantleable, + aRemovable, + aKeepNBT, + aEnchantmentsAdded, + aEnchantmentLevelsAdded, + aRecipe)); return true; } @@ -1432,12 +1418,12 @@ public class GT_ModHandler { public static boolean removeFurnaceSmelting(ItemStack aInput) { if (aInput != null) { for (ItemStack tInput : FurnaceRecipes.smelting() - .getSmeltingList() - .keySet()) { + .getSmeltingList() + .keySet()) { if (GT_Utility.isStackValid(tInput) && GT_Utility.areStacksEqual(aInput, tInput, true)) { FurnaceRecipes.smelting() - .getSmeltingList() - .remove(tInput); + .getSmeltingList() + .remove(tInput); return true; } } @@ -1451,11 +1437,10 @@ public class GT_ModHandler { public static boolean removeFurnaceSmeltingByOutput(ItemStack aOutput) { if (aOutput != null) { return FurnaceRecipes.smelting() - .getSmeltingList() - .values() - .removeIf( - tOutput -> GT_Utility.isStackValid(tOutput) - && GT_Utility.areStacksEqual(aOutput, tOutput, true)); + .getSmeltingList() + .values() + .removeIf( + tOutput -> GT_Utility.isStackValid(tOutput) && GT_Utility.areStacksEqual(aOutput, tOutput, true)); } return false; } @@ -1469,8 +1454,7 @@ public class GT_ModHandler { public static ItemStack removeRecipe(ItemStack... aRecipe) { if (aRecipe == null) return null; if (Arrays.stream(aRecipe) - .noneMatch(Objects::nonNull)) - return null; + .noneMatch(Objects::nonNull)) return null; ItemStack rReturn = null; InventoryCrafting aCrafting = new InventoryCrafting(new Container() { @@ -1482,16 +1466,16 @@ public class GT_ModHandler { }, 3, 3); for (int i = 0; i < aRecipe.length && i < 9; i++) aCrafting.setInventorySlotContents(i, aRecipe[i]); ArrayList tList = (ArrayList) CraftingManager.getInstance() - .getRecipeList(); + .getRecipeList(); int tList_sS = tList.size(); try { for (int i = 0; i < tList_sS; i++) { for (; i < tList_sS; i++) { if ((!(tList.get(i) instanceof IGT_CraftingRecipe) - || ((IGT_CraftingRecipe) tList.get(i)).isRemovable()) && tList.get(i) - .matches(aCrafting, DW)) { + || ((IGT_CraftingRecipe) tList.get(i)).isRemovable()) && tList.get(i) + .matches(aCrafting, DW)) { rReturn = tList.get(i) - .getCraftingResult(aCrafting); + .getCraftingResult(aCrafting); if (rReturn != null) tList.remove(i--); tList_sS = tList.size(); } @@ -1511,8 +1495,7 @@ public class GT_ModHandler { if (aRecipe == null) return; if (Arrays.stream(aRecipe) - .noneMatch(Objects::nonNull)) - return; + .noneMatch(Objects::nonNull)) return; InventoryCrafting aCrafting = new InventoryCrafting(new Container() { @@ -1528,18 +1511,17 @@ public class GT_ModHandler { @SuppressWarnings("unchecked") public static void bulkRemoveByRecipe(List toRemove) { ArrayList tList = (ArrayList) CraftingManager.getInstance() - .getRecipeList(); + .getRecipeList(); GT_FML_LOGGER.info("BulkRemoveByRecipe: tList: " + tList.size() + " toRemove: " + toRemove.size()); Set tListToRemove = tList.parallelStream() - .filter(tRecipe -> { - if ((tRecipe instanceof IGT_CraftingRecipe) - && !((IGT_CraftingRecipe) tRecipe).isRemovable()) - return false; - return toRemove.stream() - .anyMatch(aCrafting -> tRecipe.matches(aCrafting, DW)); - }) - .collect(Collectors.toSet()); + .filter(tRecipe -> { + if ((tRecipe instanceof IGT_CraftingRecipe) && !((IGT_CraftingRecipe) tRecipe).isRemovable()) + return false; + return toRemove.stream() + .anyMatch(aCrafting -> tRecipe.matches(aCrafting, DW)); + }) + .collect(Collectors.toSet()); tList.removeIf(tListToRemove::contains); } @@ -1550,7 +1532,7 @@ public class GT_ModHandler { } public static boolean removeRecipeByOutputDelayed(ItemStack aOutput, boolean aIgnoreNBT, - boolean aNotRemoveShapelessRecipes, boolean aOnlyRemoveNativeHandlers) { + boolean aNotRemoveShapelessRecipes, boolean aOnlyRemoveNativeHandlers) { if (sBufferCraftingRecipes && (aIgnoreNBT && !aNotRemoveShapelessRecipes && !aOnlyRemoveNativeHandlers)) // Too lazy to handle deferred versions of the parameters that aren't used very often return delayedRemovalByOutput.add(aOutput); @@ -1568,32 +1550,31 @@ public class GT_ModHandler { * @return if it has removed at least one Recipe. */ public static boolean removeRecipeByOutput(ItemStack aOutput, boolean aIgnoreNBT, - boolean aNotRemoveShapelessRecipes, boolean aOnlyRemoveNativeHandlers) { + boolean aNotRemoveShapelessRecipes, boolean aOnlyRemoveNativeHandlers) { if (aOutput == null) return false; boolean rReturn = false; ArrayList tList = (ArrayList) CraftingManager.getInstance() - .getRecipeList(); + .getRecipeList(); aOutput = GT_OreDictUnificator.get(aOutput); int tList_sS = tList.size(); for (int i = 0; i < tList_sS; i++) { IRecipe tRecipe = tList.get(i); if (aNotRemoveShapelessRecipes - && (tRecipe instanceof ShapelessRecipes || tRecipe instanceof ShapelessOreRecipe)) - continue; + && (tRecipe instanceof ShapelessRecipes || tRecipe instanceof ShapelessOreRecipe)) continue; if (aOnlyRemoveNativeHandlers) { if (!sNativeRecipeClasses.contains( - tRecipe.getClass() - .getName())) + tRecipe.getClass() + .getName())) continue; } else { if (sSpecialRecipeClasses.contains( - tRecipe.getClass() - .getName())) + tRecipe.getClass() + .getName())) continue; } ItemStack tStack = tRecipe.getRecipeOutput(); if ((!(tRecipe instanceof IGT_CraftingRecipe) || ((IGT_CraftingRecipe) tRecipe).isRemovable()) - && GT_Utility.areStacksEqual(GT_OreDictUnificator.get(tStack), aOutput, aIgnoreNBT)) { + && GT_Utility.areStacksEqual(GT_OreDictUnificator.get(tStack), aOutput, aIgnoreNBT)) { tList.remove(i--); tList_sS = tList.size(); rReturn = true; @@ -1604,33 +1585,27 @@ public class GT_ModHandler { public static boolean bulkRemoveRecipeByOutput(List toRemove) { ArrayList tList = (ArrayList) CraftingManager.getInstance() - .getRecipeList(); + .getRecipeList(); Set setToRemove = toRemove.parallelStream() - .map(GT_OreDictUnificator::get_nocopy) - .collect(Collectors.toSet()); + .map(GT_OreDictUnificator::get_nocopy) + .collect(Collectors.toSet()); GT_FML_LOGGER.info("BulkRemoveRecipeByOutput: tList: " + tList.size() + " setToRemove: " + setToRemove.size()); Set tListToRemove = tList.parallelStream() - .filter(tRecipe -> { - if ((tRecipe instanceof IGT_CraftingRecipe) - && !((IGT_CraftingRecipe) tRecipe).isRemovable()) - return false; - if (sSpecialRecipeClasses.contains( - tRecipe.getClass() - .getName())) - return false; - final ItemStack tStack = GT_OreDictUnificator.get_nocopy( - tRecipe.getRecipeOutput()); - return setToRemove.stream() - .anyMatch( - aOutput -> GT_Utility.areStacksEqual( - tStack, - aOutput, - true)); - }) - .collect(Collectors.toSet()); + .filter(tRecipe -> { + if ((tRecipe instanceof IGT_CraftingRecipe) && !((IGT_CraftingRecipe) tRecipe).isRemovable()) + return false; + if (sSpecialRecipeClasses.contains( + tRecipe.getClass() + .getName())) + return false; + final ItemStack tStack = GT_OreDictUnificator.get_nocopy(tRecipe.getRecipeOutput()); + return setToRemove.stream() + .anyMatch(aOutput -> GT_Utility.areStacksEqual(tStack, aOutput, true)); + }) + .collect(Collectors.toSet()); tList.removeIf(tListToRemove::contains); return true; @@ -1661,7 +1636,7 @@ public class GT_ModHandler { }, 3, 3); for (int i = 0; i < 9 && i < aRecipe.length; i++) aCrafting.setInventorySlotContents(i, aRecipe[i]); List tList = CraftingManager.getInstance() - .getRecipeList(); + .getRecipeList(); synchronized (sAllRecipeList) { if (sAllRecipeList.size() != tList.size()) { sAllRecipeList.clear(); @@ -1693,12 +1668,12 @@ public class GT_ModHandler { if (tIndex == 2) { assert tStack1 != null && tStack2 != null; if (tStack1.getItem() == tStack2.getItem() && tStack1.stackSize == 1 - && tStack2.stackSize == 1 - && tStack1.getItem() - .isRepairable()) { + && tStack2.stackSize == 1 + && tStack1.getItem() + .isRepairable()) { int tNewDamage = tStack1.getMaxDamage() + tStack1.getItemDamage() - - tStack2.getItemDamage() - + tStack1.getMaxDamage() / 20; + - tStack2.getItemDamage() + + tStack1.getMaxDamage() / 20; return new ItemStack(tStack1.getItem(), 1, Math.max(tNewDamage, 0)); } } @@ -1727,8 +1702,7 @@ public class GT_ModHandler { @SuppressWarnings("unchecked") public static ItemStack getRecipeOutput(boolean aUncopiedStack, boolean allowOreDict, ItemStack... aRecipe) { if (aRecipe == null || Arrays.stream(aRecipe) - .noneMatch(Objects::nonNull)) - return null; + .noneMatch(Objects::nonNull)) return null; InventoryCrafting aCrafting = new InventoryCrafting(new Container() { @@ -1739,7 +1713,7 @@ public class GT_ModHandler { }, 3, 3); for (int i = 0; i < 9 && i < aRecipe.length; i++) aCrafting.setInventorySlotContents(i, aRecipe[i]); ArrayList tList = (ArrayList) CraftingManager.getInstance() - .getRecipeList(); + .getRecipeList(); boolean found = false; for (IRecipe iRecipe : tList) { @@ -1756,7 +1730,7 @@ public class GT_ModHandler { if (tOutput == null || tOutput.stackSize <= 0) { // Seriously, who would ever do that shit? if (!GregTech_API.sPostloadFinished) throw new GT_ItsNotMyFaultException( - "Seems another Mod added a Crafting Recipe with null Output. Tell the Developer of said Mod to fix that."); + "Seems another Mod added a Crafting Recipe with null Output. Tell the Developer of said Mod to fix that."); } else { if (aUncopiedStack) return tOutput; return GT_Utility.copyOrNull(tOutput); @@ -1775,22 +1749,22 @@ public class GT_ModHandler { sSingleNonBlockDamagableRecipeList.clear(); if (sSingleNonBlockDamagableRecipeList.isEmpty()) { for (IRecipe tRecipe : CraftingManager.getInstance() - .getRecipeList()) { + .getRecipeList()) { ItemStack tStack = tRecipe.getRecipeOutput(); if (GT_Utility.isStackValid(tStack) && tStack.getMaxStackSize() == 1 - && tStack.getMaxDamage() > 0 - && !(tStack.getItem() instanceof ItemBlock) - && !(tStack.getItem() instanceof IReactorComponent) - && !isElectricItem(tStack) - && !GT_Utility.isStackInList(tStack, sNonReplaceableItems)) { + && tStack.getMaxDamage() > 0 + && !(tStack.getItem() instanceof ItemBlock) + && !(tStack.getItem() instanceof IReactorComponent) + && !isElectricItem(tStack) + && !GT_Utility.isStackInList(tStack, sNonReplaceableItems)) { if (!(tRecipe instanceof ShapelessRecipes || tRecipe instanceof ShapelessOreRecipe)) { if (tRecipe instanceof ShapedOreRecipe) { boolean temp = true; for (Object tObject : ((ShapedOreRecipe) tRecipe).getInput()) if (tObject != null) { if (tObject instanceof ItemStack && (((ItemStack) tObject).getItem() == null - || ((ItemStack) tObject).getMaxStackSize() < 2 - || ((ItemStack) tObject).getMaxDamage() > 0 - || ((ItemStack) tObject).getItem() instanceof ItemBlock)) { + || ((ItemStack) tObject).getMaxStackSize() < 2 + || ((ItemStack) tObject).getMaxDamage() > 0 + || ((ItemStack) tObject).getItem() instanceof ItemBlock)) { temp = false; break; } @@ -1804,8 +1778,8 @@ public class GT_ModHandler { boolean temp = true; for (ItemStack tObject : ((ShapedRecipes) tRecipe).recipeItems) { if (tObject != null && (tObject.getItem() == null || tObject.getMaxStackSize() < 2 - || tObject.getMaxDamage() > 0 - || tObject.getItem() instanceof ItemBlock)) { + || tObject.getMaxDamage() > 0 + || tObject.getItem() instanceof ItemBlock)) { temp = false; break; } @@ -1818,11 +1792,11 @@ public class GT_ModHandler { } } GT_Log.out.println( - "GT_Mod: Created a List of Tool Recipes containing " + sSingleNonBlockDamagableRecipeList.size() - + " Recipes for recycling." - + (sSingleNonBlockDamagableRecipeList.size() > 1024 - ? " Scanning all these Recipes is the reason for the startup Lag you receive right now." - : E)); + "GT_Mod: Created a List of Tool Recipes containing " + sSingleNonBlockDamagableRecipeList.size() + + " Recipes for recycling." + + (sSingleNonBlockDamagableRecipeList.size() > 1024 + ? " Scanning all these Recipes is the reason for the startup Lag you receive right now." + : E)); } List rList = getRecipeOutputs(sSingleNonBlockDamagableRecipeList, true, aRecipe); if (!GregTech_API.sPostloadStarted || GregTech_API.sPostloadFinished) @@ -1836,10 +1810,10 @@ public class GT_ModHandler { */ public static List getRecipeOutputs(ItemStack... aRecipe) { return getRecipeOutputs( - CraftingManager.getInstance() - .getRecipeList(), - false, - aRecipe); + CraftingManager.getInstance() + .getRecipeList(), + false, + aRecipe); } private static List bufferedRecipes = null; @@ -1851,25 +1825,21 @@ public class GT_ModHandler { public static List getRecipeOutputsBuffered(ItemStack... aRecipe) { if (bufferedRecipes == null) bufferedRecipes = CraftingManager.getInstance() - .getRecipeList() - .stream() - .filter( - tRecipe -> !(tRecipe instanceof ShapelessRecipes) - && !(tRecipe instanceof ShapelessOreRecipe) - && !(tRecipe instanceof IGT_CraftingRecipe)) - .filter(tRecipe -> { - try { - ItemStack tOutput = tRecipe.getRecipeOutput(); - if (tOutput.stackSize == 1 - && tOutput.getMaxDamage() > 0 - && tOutput.getMaxStackSize() - == 1) { - return true; - } - } catch (Exception ignored) {} - return false; - }) - .collect(Collectors.toList()); + .getRecipeList() + .stream() + .filter( + tRecipe -> !(tRecipe instanceof ShapelessRecipes) && !(tRecipe instanceof ShapelessOreRecipe) + && !(tRecipe instanceof IGT_CraftingRecipe)) + .filter(tRecipe -> { + try { + ItemStack tOutput = tRecipe.getRecipeOutput(); + if (tOutput.stackSize == 1 && tOutput.getMaxDamage() > 0 && tOutput.getMaxStackSize() == 1) { + return true; + } + } catch (Exception ignored) {} + return false; + }) + .collect(Collectors.toList()); return getRecipeOutputs(bufferedRecipes, false, aRecipe); } @@ -1880,8 +1850,7 @@ public class GT_ModHandler { public static List getRecipeOutputs(List aList, boolean aDeleteFromList, ItemStack... aRecipe) { List rList = new ArrayList<>(); if (aRecipe == null || Arrays.stream(aRecipe) - .noneMatch(Objects::nonNull)) - return rList; + .noneMatch(Objects::nonNull)) return rList; InventoryCrafting aCrafting = new InventoryCrafting(new Container() { @Override @@ -1893,23 +1862,21 @@ public class GT_ModHandler { if (!aDeleteFromList) { HashSet stacks = new HashSet<>(); aList.stream() - .filter(tRecipe -> { - if (tRecipe instanceof ShapelessRecipes || tRecipe instanceof ShapelessOreRecipe - || tRecipe instanceof IGT_CraftingRecipe) - return false; - try { - return tRecipe.matches(aCrafting, DW); - } catch (Throwable e) { - e.printStackTrace(GT_Log.err); - return false; - } - }) - .forEach(tRecipe -> stacks.add(tRecipe.getCraftingResult(aCrafting))); + .filter(tRecipe -> { + if (tRecipe instanceof ShapelessRecipes || tRecipe instanceof ShapelessOreRecipe + || tRecipe instanceof IGT_CraftingRecipe) return false; + try { + return tRecipe.matches(aCrafting, DW); + } catch (Throwable e) { + e.printStackTrace(GT_Log.err); + return false; + } + }) + .forEach(tRecipe -> stacks.add(tRecipe.getCraftingResult(aCrafting))); rList = stacks.stream() - .filter( - tOutput -> tOutput.stackSize == 1 && tOutput.getMaxDamage() > 0 - && tOutput.getMaxStackSize() == 1) - .collect(Collectors.toList()); + .filter( + tOutput -> tOutput.stackSize == 1 && tOutput.getMaxDamage() > 0 && tOutput.getMaxStackSize() == 1) + .collect(Collectors.toList()); } else for (Iterator iterator = aList.iterator(); iterator.hasNext();) { IRecipe tRecipe = iterator.next(); boolean matched = false; @@ -1925,7 +1892,7 @@ public class GT_ModHandler { if (tOutput == null || tOutput.stackSize <= 0) { // Seriously, who would ever do that shit? if (!GregTech_API.sPostloadFinished) throw new GT_ItsNotMyFaultException( - "Seems another Mod added a Crafting Recipe with null Output. Tell the Developer of said Mod to fix that."); + "Seems another Mod added a Crafting Recipe with null Output. Tell the Developer of said Mod to fix that."); continue; } if (tOutput.stackSize != 1) continue; @@ -1947,7 +1914,7 @@ public class GT_ModHandler { @Deprecated public static ItemStack getMaceratorOutput(ItemStack aInput, boolean aRemoveInput, ItemStack aOutputSlot) { return GT_Utility.copyOrNull( - getMachineOutput(aInput, getMaceratorRecipeList(), aRemoveInput, new NBTTagCompound(), aOutputSlot)[0]); + getMachineOutput(aInput, getMaceratorRecipeList(), aRemoveInput, new NBTTagCompound(), aOutputSlot)[0]); } /** @@ -1956,7 +1923,7 @@ public class GT_ModHandler { @Deprecated public static ItemStack getExtractorOutput(ItemStack aInput, boolean aRemoveInput, ItemStack aOutputSlot) { return GT_Utility.copyOrNull( - getMachineOutput(aInput, getExtractorRecipeList(), aRemoveInput, new NBTTagCompound(), aOutputSlot)[0]); + getMachineOutput(aInput, getExtractorRecipeList(), aRemoveInput, new NBTTagCompound(), aOutputSlot)[0]); } /** @@ -1965,12 +1932,7 @@ public class GT_ModHandler { @Deprecated public static ItemStack getCompressorOutput(ItemStack aInput, boolean aRemoveInput, ItemStack aOutputSlot) { return GT_Utility.copyOrNull( - getMachineOutput( - aInput, - getCompressorRecipeList(), - aRemoveInput, - new NBTTagCompound(), - aOutputSlot)[0]); + getMachineOutput(aInput, getCompressorRecipeList(), aRemoveInput, new NBTTagCompound(), aOutputSlot)[0]); } /** @@ -1979,11 +1941,11 @@ public class GT_ModHandler { public static ItemStack getSmeltingOutput(ItemStack aInput, boolean aRemoveInput, ItemStack aOutputSlot) { if (aInput == null || aInput.stackSize < 1) return null; ItemStack rStack = GT_OreDictUnificator.get( - FurnaceRecipes.smelting() - .getSmeltingResult(aInput)); + FurnaceRecipes.smelting() + .getSmeltingResult(aInput)); if (rStack != null && (aOutputSlot == null || (GT_Utility.areStacksEqual(rStack, aOutputSlot) - && rStack.stackSize + aOutputSlot.stackSize <= aOutputSlot.getMaxStackSize()))) { + && rStack.stackSize + aOutputSlot.stackSize <= aOutputSlot.getMaxStackSize()))) { if (aRemoveInput) aInput.stackSize--; return rStack; } @@ -1996,16 +1958,15 @@ public class GT_ModHandler { * Checks also if there is enough Space in the Output Slots. */ public static ItemStack[] getMachineOutput(ItemStack aInput, Map aRecipeList, - boolean aRemoveInput, NBTTagCompound rRecipeMetaData, ItemStack... aOutputSlots) { + boolean aRemoveInput, NBTTagCompound rRecipeMetaData, ItemStack... aOutputSlots) { if (aOutputSlots == null || aOutputSlots.length <= 0) return new ItemStack[0]; if (aInput == null) return new ItemStack[aOutputSlots.length]; try { for (Entry tEntry : aRecipeList.entrySet()) { if (tEntry.getKey() - .matches(aInput)) { + .matches(aInput)) { if (tEntry.getKey() - .getAmount() - <= aInput.stackSize) { + .getAmount() <= aInput.stackSize) { ItemStack[] tList = tEntry.getValue().items.toArray(new ItemStack[0]); if (tList.length == 0) break; ItemStack[] rList = new ItemStack[aOutputSlots.length]; @@ -2013,8 +1974,8 @@ public class GT_ModHandler { for (byte i = 0; i < aOutputSlots.length && i < tList.length; i++) { if (tList[i] != null) { if (aOutputSlots[i] == null || (GT_Utility.areStacksEqual(tList[i], aOutputSlots[i]) - && tList[i].stackSize + aOutputSlots[i].stackSize - <= aOutputSlots[i].getMaxStackSize())) { + && tList[i].stackSize + aOutputSlots[i].stackSize + <= aOutputSlots[i].getMaxStackSize())) { rList[i] = GT_Utility.copyOrNull(tList[i]); } else { return new ItemStack[aOutputSlots.length]; @@ -2023,7 +1984,7 @@ public class GT_ModHandler { } if (aRemoveInput) aInput.stackSize -= tEntry.getKey() - .getAmount(); + .getAmount(); return rList; } break; @@ -2073,7 +2034,7 @@ public class GT_ModHandler { * @return the actually used Energy. */ public static int chargeElectricItem(ItemStack aStack, int aCharge, int aTier, boolean aIgnoreLimit, - boolean aSimulate) { + boolean aSimulate) { try { if (isElectricItem(aStack)) { int tTier = ((ic2.api.item.IElectricItem) aStack.getItem()).getTier(aStack); @@ -2082,8 +2043,8 @@ public class GT_ModHandler { aCharge = (int) Math.min(aCharge, V[Math.max(0, Math.min(V.length - 1, tTier))]); if (aCharge > 0) { int rCharge = (int) Math.max( - 0.0, - ic2.api.item.ElectricItem.manager.charge(aStack, aCharge, tTier, true, aSimulate)); + 0.0, + ic2.api.item.ElectricItem.manager.charge(aStack, aCharge, tTier, true, aSimulate)); return rCharge + (rCharge * 4 > aTier ? aTier : 0); } } @@ -2102,7 +2063,7 @@ public class GT_ModHandler { * @return the Energy got from the Item. */ public static int dischargeElectricItem(ItemStack aStack, int aCharge, int aTier, boolean aIgnoreLimit, - boolean aSimulate, boolean aIgnoreDischargability) { + boolean aSimulate, boolean aIgnoreDischargability) { try { // if (isElectricItem(aStack) && (aIgnoreDischargability || // ((ic2.api.item.IElectricItem)aStack.getItem()).canProvideEnergy(aStack))) { @@ -2110,21 +2071,20 @@ public class GT_ModHandler { int tTier = ((ic2.api.item.IElectricItem) aStack.getItem()).getTier(aStack); if (tTier < 0 || tTier == aTier || aTier == Integer.MAX_VALUE) { if (!aIgnoreLimit && tTier >= 0) aCharge = (int) Math.min( - aCharge, - V[Math.max(0, Math.min(V.length - 1, tTier))] - + B[Math.max(0, Math.min(V.length - 1, tTier))]); + aCharge, + V[Math.max(0, Math.min(V.length - 1, tTier))] + B[Math.max(0, Math.min(V.length - 1, tTier))]); if (aCharge > 0) { // int rCharge = Math.max(0, ic2.api.item.ElectricItem.manager.discharge(aStack, aCharge + // (aCharge * 4 > aTier ? aTier : 0), tTier, T, aSimulate)); int rCharge = (int) Math.max( - 0, - ic2.api.item.ElectricItem.manager.discharge( - aStack, - aCharge + (aCharge * 4 > aTier ? aTier : 0), - tTier, - true, - !aIgnoreDischargability, - aSimulate)); + 0, + ic2.api.item.ElectricItem.manager.discharge( + aStack, + aCharge + (aCharge * 4 > aTier ? aTier : 0), + tTier, + true, + !aIgnoreDischargability, + aSimulate)); return rCharge - (rCharge * 4 > aTier ? aTier : 0); } } @@ -2185,27 +2145,27 @@ public class GT_ModHandler { return GT_ModHandler.useElectricItem(aStack, aDecharge, (EntityPlayer) aPlayer); } return GT_ModHandler.dischargeElectricItem(aStack, aDecharge, Integer.MAX_VALUE, true, false, true) - >= aDecharge; + >= aDecharge; } } else if (aStack.getItem() - .isDamageable()) { - if (aPlayer == null) { - aStack.setItemDamage(aStack.getItemDamage() + aDamage); - } else { - aStack.damageItem(aDamage, aPlayer); - } - if (aStack.getItemDamage() >= aStack.getMaxDamage()) { - aStack.setItemDamage(aStack.getMaxDamage() + 1); - ItemStack tStack = GT_Utility.getContainerItem(aStack, true); - if (tStack != null) { - aStack.func_150996_a(tStack.getItem()); - aStack.setItemDamage(tStack.getItemDamage()); - aStack.stackSize = tStack.stackSize; - aStack.setTagCompound(tStack.getTagCompound()); - } - } - return true; - } + .isDamageable()) { + if (aPlayer == null) { + aStack.setItemDamage(aStack.getItemDamage() + aDamage); + } else { + aStack.damageItem(aDamage, aPlayer); + } + if (aStack.getItemDamage() >= aStack.getMaxDamage()) { + aStack.setItemDamage(aStack.getMaxDamage() + 1); + ItemStack tStack = GT_Utility.getContainerItem(aStack, true); + if (tStack != null) { + aStack.func_150996_a(tStack.getItem()); + aStack.setItemDamage(tStack.getItemDamage()); + aStack.stackSize = tStack.stackSize; + aStack.setTagCompound(tStack.getTagCompound()); + } + } + return true; + } return false; } @@ -2219,14 +2179,14 @@ public class GT_ModHandler { if (tPlayer.capabilities.isCreativeMode) return true; if (isElectricItem(aStack) && ic2.api.item.ElectricItem.manager.getCharge(aStack) > 1000.0d) { if (consumeSolderingMaterial(tPlayer) - || (aExternalInventory != null && consumeSolderingMaterial(aExternalInventory))) { + || (aExternalInventory != null && consumeSolderingMaterial(aExternalInventory))) { if (canUseElectricItem(aStack, 10000)) { return GT_ModHandler.useElectricItem(aStack, 10000, (EntityPlayer) aPlayer); } GT_ModHandler.useElectricItem( - aStack, - (int) ic2.api.item.ElectricItem.manager.getCharge(aStack), - (EntityPlayer) aPlayer); + aStack, + (int) ic2.api.item.ElectricItem.manager.getCharge(aStack), + (EntityPlayer) aPlayer); return false; } } @@ -2294,7 +2254,7 @@ public class GT_ModHandler { public static boolean isElectricItem(ItemStack aStack) { try { return aStack != null && aStack.getItem() instanceof ic2.api.item.IElectricItem - && ((IElectricItem) aStack.getItem()).getTier(aStack) < Integer.MAX_VALUE; + && ((IElectricItem) aStack.getItem()).getTier(aStack) < Integer.MAX_VALUE; } catch (Throwable e) { /* Do nothing */ } @@ -2304,7 +2264,7 @@ public class GT_ModHandler { public static boolean isElectricItem(ItemStack aStack, byte aTier) { try { return aStack != null && aStack.getItem() instanceof ic2.api.item.IElectricItem - && ((IElectricItem) aStack.getItem()).getTier(aStack) == aTier; + && ((IElectricItem) aStack.getItem()).getTier(aStack) == aTier; } catch (Throwable e) { /* Do nothing */ } @@ -2429,37 +2389,37 @@ public class GT_ModHandler { public static void addPulverizerRecipe(int energy, ItemStack input, ItemStack primaryOutput) {} public static void addPulverizerRecipe(int energy, ItemStack input, ItemStack primaryOutput, - ItemStack secondaryOutput) {} + ItemStack secondaryOutput) {} public static void addPulverizerRecipe(int energy, ItemStack input, ItemStack primaryOutput, - ItemStack secondaryOutput, int secondaryChance) {} + ItemStack secondaryOutput, int secondaryChance) {} public static void addSawmillRecipe(int energy, ItemStack input, ItemStack primaryOutput) {} public static void addSawmillRecipe(int energy, ItemStack input, ItemStack primaryOutput, - ItemStack secondaryOutput) {} + ItemStack secondaryOutput) {} public static void addSawmillRecipe(int energy, ItemStack input, ItemStack primaryOutput, - ItemStack secondaryOutput, int secondaryChance) {} + ItemStack secondaryOutput, int secondaryChance) {} public static void addSmelterRecipe(int energy, ItemStack primaryInput, ItemStack secondaryInput, - ItemStack primaryOutput) {} + ItemStack primaryOutput) {} public static void addSmelterRecipe(int energy, ItemStack primaryInput, ItemStack secondaryInput, - ItemStack primaryOutput, ItemStack secondaryOutput) {} + ItemStack primaryOutput, ItemStack secondaryOutput) {} public static void addSmelterRecipe(int energy, ItemStack primaryInput, ItemStack secondaryInput, - ItemStack primaryOutput, ItemStack secondaryOutput, int secondaryChance) {} + ItemStack primaryOutput, ItemStack secondaryOutput, int secondaryChance) {} public static void addSmelterBlastOre(Materials aMaterial) {} public static void addCrucibleRecipe(int energy, ItemStack input, FluidStack output) {} public static void addTransposerFill(int energy, ItemStack input, ItemStack output, FluidStack fluid, - boolean reversible) {} + boolean reversible) {} public static void addTransposerExtract(int energy, ItemStack input, ItemStack output, FluidStack fluid, - int chance, boolean reversible) {} + int chance, boolean reversible) {} public static void addMagmaticFuel(String fluidName, int energy) {} diff --git a/src/main/java/gregtech/api/util/GT_Multiblock_Tooltip_Builder.java b/src/main/java/gregtech/api/util/GT_Multiblock_Tooltip_Builder.java index db997c3640..750bf91c6c 100644 --- a/src/main/java/gregtech/api/util/GT_Multiblock_Tooltip_Builder.java +++ b/src/main/java/gregtech/api/util/GT_Multiblock_Tooltip_Builder.java @@ -75,10 +75,8 @@ public class GT_Multiblock_Tooltip_Builder { private static final String TT_mod = StatCollector.translateToLocal("GT5U.MBTT.Mod"); private static final String TT_air = StatCollector.translateToLocal("GT5U.MBTT.Air"); private static final String[] TT_dots = IntStream.range(0, 16) - .mapToObj( - i -> StatCollector.translateToLocal( - "structurelib.blockhint." + i + ".name")) - .toArray(String[]::new); + .mapToObj(i -> StatCollector.translateToLocal("structurelib.blockhint." + i + ".name")) + .toArray(String[]::new); public GT_Multiblock_Tooltip_Builder() { iLines = new LinkedList<>(); @@ -132,12 +130,7 @@ public class GT_Multiblock_Tooltip_Builder { */ public GT_Multiblock_Tooltip_Builder addPollutionAmount(int pollution) { iLines.add( - TT_causes + COLON - + EnumChatFormatting.DARK_PURPLE - + pollution - + " " - + EnumChatFormatting.GRAY - + TT_pps); + TT_causes + COLON + EnumChatFormatting.DARK_PURPLE + pollution + " " + EnumChatFormatting.GRAY + TT_pps); return this; } @@ -175,19 +168,19 @@ public class GT_Multiblock_Tooltip_Builder { * @return Instance this method was called on. */ public GT_Multiblock_Tooltip_Builder beginVariableStructureBlock(int wmin, int wmax, int hmin, int hmax, int lmin, - int lmax, boolean hollow) { + int lmax, boolean hollow) { sLines.add( - TT_dimensions + COLON - + wmin - + (wmin != wmax ? "-" + wmax : "") - + "x" - + hmin - + (hmin != hmax ? "-" + hmax : "") - + "x" - + lmin - + (lmin != lmax ? "-" + lmax : "") - + " (WxHxL) " - + (hollow ? TT_hollow : "")); + TT_dimensions + COLON + + wmin + + (wmin != wmax ? "-" + wmax : "") + + "x" + + hmin + + (hmin != hmax ? "-" + hmax : "") + + "x" + + lmin + + (lmin != lmax ? "-" + lmax : "") + + " (WxHxL) " + + (hollow ? TT_hollow : "")); sLines.add(TT_structure + COLON); return this; } @@ -258,7 +251,7 @@ public class GT_Multiblock_Tooltip_Builder { * @return Instance this method was called on. */ public GT_Multiblock_Tooltip_Builder addCasingInfoRange(String casingName, int minCount, int maxCount, - boolean isTiered) { + boolean isTiered) { sLines.add(TAB + minCount + "x - " + maxCount + "x " + casingName + (isTiered ? " " + TT_tiered : "")); return this; } @@ -557,25 +550,25 @@ public class GT_Multiblock_Tooltip_Builder { */ public void toolTipFinisher(String mod) { iLines.add( - TT_hold + " " - + EnumChatFormatting.BOLD - + "[LSHIFT]" - + EnumChatFormatting.RESET - + EnumChatFormatting.GRAY - + " " - + TT_todisplay); + TT_hold + " " + + EnumChatFormatting.BOLD + + "[LSHIFT]" + + EnumChatFormatting.RESET + + EnumChatFormatting.GRAY + + " " + + TT_todisplay); iLines.add(TT_mod + COLON + EnumChatFormatting.GREEN + mod + EnumChatFormatting.GRAY); hLines.add(TT_structurehint); iArray = iLines.toArray(new String[0]); sArray = sLines.toArray(new String[0]); // e.getKey() - 1 because 1 dot is meta 0. hArray = Stream.concat( - hLines.stream(), - hBlocks.asMap() - .entrySet() - .stream() - .map(e -> TT_dots[e.getKey() - 1] + COLON + String.join(SEPARATOR, e.getValue()))) - .toArray(String[]::new); + hLines.stream(), + hBlocks.asMap() + .entrySet() + .stream() + .map(e -> TT_dots[e.getKey() - 1] + COLON + String.join(SEPARATOR, e.getValue()))) + .toArray(String[]::new); } public String[] getInformation() { diff --git a/src/main/java/gregtech/api/util/GT_OreDictUnificator.java b/src/main/java/gregtech/api/util/GT_OreDictUnificator.java index b8072f7b3b..85e423b032 100644 --- a/src/main/java/gregtech/api/util/GT_OreDictUnificator.java +++ b/src/main/java/gregtech/api/util/GT_OreDictUnificator.java @@ -75,23 +75,22 @@ public class GT_OreDictUnificator { } public static void set(OrePrefixes aPrefix, Materials aMaterial, ItemStack aStack, boolean aOverwrite, - boolean aAlreadyRegistered) { + boolean aAlreadyRegistered) { if (aMaterial == null || aPrefix == null - || GT_Utility.isStackInvalid(aStack) - || Items.feather.getDamage(aStack) == W) - return; + || GT_Utility.isStackInvalid(aStack) + || Items.feather.getDamage(aStack) == W) return; isAddingOre++; aStack = GT_Utility.copyAmount(1, aStack); if (!aAlreadyRegistered) registerOre(aPrefix.get(aMaterial), aStack); addAssociation(aPrefix, aMaterial, aStack, isBlacklisted(aStack)); if (aOverwrite || GT_Utility.isStackInvalid( - sName2StackMap.get( - aPrefix.get(aMaterial) - .toString()))) + sName2StackMap.get( + aPrefix.get(aMaterial) + .toString()))) sName2StackMap.put( - aPrefix.get(aMaterial) - .toString(), - aStack); + aPrefix.get(aMaterial) + .toString(), + aStack); isAddingOre--; } @@ -131,7 +130,7 @@ public class GT_OreDictUnificator { } public static ItemStack get(Object aName, ItemStack aReplacement, long aAmount, boolean aMentionPossibleTypos, - boolean aNoInvalidAmounts) { + boolean aNoInvalidAmounts) { if (aNoInvalidAmounts && aAmount < 1) return null; final ItemStack stackFromName = sName2StackMap.get(aName.toString()); if (stackFromName != null) return GT_Utility.copyAmount(aAmount, stackFromName); @@ -183,8 +182,7 @@ public class GT_OreDictUnificator { if (GT_Utility.isStackInvalid(aStack)) return null; ItemData tPrefixMaterial = getAssociation(aStack); if (tPrefixMaterial == null || !tPrefixMaterial.hasValidPrefixMaterialData() - || (aUseBlackList && tPrefixMaterial.mBlackListed)) - return GT_Utility.copyOrNull(aStack); + || (aUseBlackList && tPrefixMaterial.mBlackListed)) return GT_Utility.copyOrNull(aStack); if (aUseBlackList && !GregTech_API.sUnificationEntriesRegistered && isBlacklisted(aStack)) { tPrefixMaterial.mBlackListed = true; return GT_Utility.copyOrNull(aStack); @@ -220,8 +218,7 @@ public class GT_OreDictUnificator { if (GT_Utility.isStackInvalid(aStack)) return null; ItemData tPrefixMaterial = getAssociation(aStack); if (tPrefixMaterial == null || !tPrefixMaterial.hasValidPrefixMaterialData() - || (aUseBlackList && tPrefixMaterial.mBlackListed)) - return aStack; + || (aUseBlackList && tPrefixMaterial.mBlackListed)) return aStack; if (aUseBlackList && !GregTech_API.sUnificationEntriesRegistered && isBlacklisted(aStack)) { tPrefixMaterial.mBlackListed = true; return aStack; @@ -339,22 +336,21 @@ public class GT_OreDictUnificator { sItemStack2DataMap.put(new GT_ItemStack2(aStack), aData); if (aData.hasValidMaterialData()) { long tValidMaterialAmount = aData.mMaterial.mMaterial.contains(SubTag.NO_RECYCLING) ? 0 - : aData.mMaterial.mAmount >= 0 ? aData.mMaterial.mAmount : M; + : aData.mMaterial.mAmount >= 0 ? aData.mMaterial.mAmount : M; for (MaterialStack tMaterial : aData.mByProducts) tValidMaterialAmount += tMaterial.mMaterial.contains(SubTag.NO_RECYCLING) ? 0 - : tMaterial.mAmount >= 0 ? tMaterial.mAmount : M; + : tMaterial.mAmount >= 0 ? tMaterial.mAmount : M; if (tValidMaterialAmount < M) GT_ModHandler.addToRecyclerBlackList(aStack); } if (mRunThroughTheList) { if (GregTech_API.sLoadStarted) { mRunThroughTheList = false; for (Entry tEntry : sItemStack2DataMap.entrySet()) if (!tEntry.getValue() - .hasValidPrefixData() - || tEntry.getValue().mPrefix.mAllowNormalRecycling) + .hasValidPrefixData() || tEntry.getValue().mPrefix.mAllowNormalRecycling) GT_RecipeRegistrator.registerMaterialRecycling( - tEntry.getKey() - .toStack(), - tEntry.getValue()); + tEntry.getKey() + .toStack(), + tEntry.getValue()); } } else { if (!aData.hasValidPrefixData() || aData.mPrefix.mAllowNormalRecycling) @@ -367,7 +363,7 @@ public class GT_OreDictUnificator { } public static void addAssociation(OrePrefixes aPrefix, Materials aMaterial, ItemStack aStack, - boolean aBlackListed) { + boolean aBlackListed) { if (aPrefix == null || aMaterial == null || GT_Utility.isStackInvalid(aStack)) return; if (Items.feather.getDamage(aStack) == W) for (byte i = 0; i < 16; i++) setItemData(GT_Utility.copyAmountAndMetaData(1, i, aStack), new ItemData(aPrefix, aMaterial, aBlackListed)); @@ -546,6 +542,6 @@ public class GT_OreDictUnificator { String aName = aOreName == null ? E : aOreName.toString(); return GT_Utility.isStringValid(aName) ? Collections.unmodifiableList(OreDictionary.getOres(aName)) - : Collections.emptyList(); + : Collections.emptyList(); } } diff --git a/src/main/java/gregtech/api/util/GT_OverclockCalculator.java b/src/main/java/gregtech/api/util/GT_OverclockCalculator.java index e19c8c904b..3555b8938d 100644 --- a/src/main/java/gregtech/api/util/GT_OverclockCalculator.java +++ b/src/main/java/gregtech/api/util/GT_OverclockCalculator.java @@ -29,7 +29,7 @@ public class GT_OverclockCalculator { * duration) */ private int mEUtIncreasePerOC = 2, mDurationDecreasePerOC = 1, mDuration = 0, mParallel = 1, mRecipeHeat = 0, - mMultiHeat = 0, mHeatPerfectOC = 2; + mMultiHeat = 0, mHeatPerfectOC = 2; /** * @mHeatOC - Whether to enable overclocking with heat like the EBF every 1800 heat difference * @mOneTickDiscount - Whether to give EUt Discount when the duration goes below one tick @@ -213,7 +213,7 @@ public class GT_OverclockCalculator { mDuration = (int) Math.ceil(mDuration * mSpeedBoost); if (mHeatOC) { while (mRecipeHeat + HEAT_PERFECT_OVERCLOCK_THRESHOLD <= mMultiHeat - && mRecipeEUt * mParallel * mRecipeAmps << 2 < mEUt * mAmps) { + && mRecipeEUt * mParallel * mRecipeAmps << 2 < mEUt * mAmps) { if (mDuration < 1) { break; } @@ -228,7 +228,7 @@ public class GT_OverclockCalculator { int tTier = GT_Utility.getTier(mEUt); int tTierDifference = tTier - 1; long tNextConsumption = ((long) Math.ceil(mRecipeEUt * mParallel * mRecipeAmps * mEUtDiscount)) - << mEUtIncreasePerOC; + << mEUtIncreasePerOC; while (tTierDifference > 0 && tNextConsumption < mEUt * mAmps) { mRecipeEUt <<= mEUtIncreasePerOC; mDuration >>= mDurationDecreasePerOC; @@ -237,7 +237,7 @@ public class GT_OverclockCalculator { } } else { long tNextConsumption = ((long) Math.ceil(mRecipeEUt * mParallel * mRecipeAmps * mEUtDiscount)) - << mEUtIncreasePerOC; + << mEUtIncreasePerOC; while (tNextConsumption < mEUt * mAmps) { if (mDuration <= 1) { break; diff --git a/src/main/java/gregtech/api/util/GT_PCBFactoryManager.java b/src/main/java/gregtech/api/util/GT_PCBFactoryManager.java index 52561a063d..17e46aebf2 100644 --- a/src/main/java/gregtech/api/util/GT_PCBFactoryManager.java +++ b/src/main/java/gregtech/api/util/GT_PCBFactoryManager.java @@ -19,6 +19,6 @@ public class GT_PCBFactoryManager { public static Materials getPlasticMaterialFromTier(int aTier) { return mPlasticTiers.inverse() - .get(aTier); + .get(aTier); } } diff --git a/src/main/java/gregtech/api/util/GT_ParallelHelper.java b/src/main/java/gregtech/api/util/GT_ParallelHelper.java index 0914d2be29..4ae33cd48d 100644 --- a/src/main/java/gregtech/api/util/GT_ParallelHelper.java +++ b/src/main/java/gregtech/api/util/GT_ParallelHelper.java @@ -209,7 +209,7 @@ public class GT_ParallelHelper { public ItemStack[] getItemOutputs() { if (!mBuilt || !mCalculateOutputs) { throw new IllegalStateException( - "Tried to get item outputs before building or without enabling calculation of outputs"); + "Tried to get item outputs before building or without enabling calculation of outputs"); } return mItemOutputs; } @@ -220,7 +220,7 @@ public class GT_ParallelHelper { public FluidStack[] getFluidOutputs() { if (!mBuilt || !mCalculateOutputs) { throw new IllegalStateException( - "Tried to get fluid outputs before building or without enabling calculation of outputs"); + "Tried to get fluid outputs before building or without enabling calculation of outputs"); } return mFluidOutputs; } @@ -290,7 +290,7 @@ public class GT_ParallelHelper { float tRecipeEUt = mRecipe.mEUt * mEUtModifier; // Consume inputs to determine normal parallel for (; mCurrentParallel < mMaxParallel / mBatchModifier - && tCurrentUsage < (mAvailableEUt - tRecipeEUt); mCurrentParallel++) { + && tCurrentUsage < (mAvailableEUt - tRecipeEUt); mCurrentParallel++) { if (mRecipe.isRecipeInputEqual(true, false, tFluidInputs, tItemInputs)) { tCurrentUsage += tRecipeEUt; } else { @@ -302,7 +302,7 @@ public class GT_ParallelHelper { if (mBatchMode) { int tExtraParallels = 0; while (tExtraParallels < mCurrentParallel * (mBatchModifier - 1) - && mRecipe.isRecipeInputEqual(false, false, tFluidInputs, tItemInputs)) { + && mRecipe.isRecipeInputEqual(false, false, tFluidInputs, tItemInputs)) { mRecipe.isRecipeInputEqual(true, false, tFluidInputs, tItemInputs); tExtraParallels++; } @@ -320,7 +320,7 @@ public class GT_ParallelHelper { mItemOutputs[i] = null; } else { ItemStack tItem = mRecipe.getOutput(i) - .copy(); + .copy(); tItem.stackSize *= mCurrentParallel; mItemOutputs[i] = tItem; } @@ -334,7 +334,7 @@ public class GT_ParallelHelper { mFluidOutputs[i] = null; } else { FluidStack tFluid = mRecipe.getFluidOutput(i) - .copy(); + .copy(); tFluid.amount *= mCurrentParallel; mFluidOutputs[i] = tFluid; } @@ -394,9 +394,9 @@ public class GT_ParallelHelper { continue; } if (tHatch.isFluidLocked() && tLockedFluidName != null - && !tLockedFluidName.equals( - tFluidOutput.getFluid() - .getName())) { + && !tLockedFluidName.equals( + tFluidOutput.getFluid() + .getName())) { continue; } } @@ -412,7 +412,7 @@ public class GT_ParallelHelper { // now that all partial/restricted hatches have been counted, create a priority queue for our outputs // the lowest priority fluid is the number of complete parallel crafts we can support PriorityQueue> aParallelQueue = new PriorityQueue<>( - Comparator.comparing(MutableTriple::getLeft)); + Comparator.comparing(MutableTriple::getLeft)); for (Entry> entry : tParallels.entrySet()) { aParallelQueue.add(new MutableTriple<>(entry.getValue().left, entry.getValue().right, entry.getKey())); } @@ -491,7 +491,7 @@ public class GT_ParallelHelper { // now that all partial stacks have been counted, create a priority queue for our outputs // the lowest priority item is the number of complete parallel crafts we can support PriorityQueue> aParallelQueue = new PriorityQueue<>( - Comparator.comparing(MutableTriple::getLeft)); + Comparator.comparing(MutableTriple::getLeft)); for (Entry> entry : tParallels.entrySet()) { aParallelQueue.add(new MutableTriple<>(entry.getValue().left, entry.getValue().right, entry.getKey())); } diff --git a/src/main/java/gregtech/api/util/GT_PlayedSound.java b/src/main/java/gregtech/api/util/GT_PlayedSound.java index cdafc010d7..05d61e9833 100644 --- a/src/main/java/gregtech/api/util/GT_PlayedSound.java +++ b/src/main/java/gregtech/api/util/GT_PlayedSound.java @@ -29,8 +29,8 @@ public class GT_PlayedSound { public boolean equals(Object aObject) { if (aObject instanceof GT_PlayedSound) { return ((GT_PlayedSound) aObject).mX == mX && ((GT_PlayedSound) aObject).mY == mY - && ((GT_PlayedSound) aObject).mZ == mZ - && ((GT_PlayedSound) aObject).mSoundName.equals(mSoundName); + && ((GT_PlayedSound) aObject).mZ == mZ + && ((GT_PlayedSound) aObject).mSoundName.equals(mSoundName); } return false; } diff --git a/src/main/java/gregtech/api/util/GT_Recipe.java b/src/main/java/gregtech/api/util/GT_Recipe.java index 6d4dda838a..aa8956c504 100644 --- a/src/main/java/gregtech/api/util/GT_Recipe.java +++ b/src/main/java/gregtech/api/util/GT_Recipe.java @@ -193,8 +193,8 @@ public class GT_Recipe implements Comparable { // only used for GT_RecipeBuilder. Should not be called otherwise GT_Recipe(ItemStack[] mInputs, ItemStack[] mOutputs, FluidStack[] mFluidInputs, FluidStack[] mFluidOutputs, - int[] mChances, Object mSpecialItems, int mDuration, int mEUt, int mSpecialValue, boolean mEnabled, - boolean mHidden, boolean mFakeRecipe, boolean mCanBeBuffered, boolean mNeedsEmptyOutput, String[] neiDesc) { + int[] mChances, Object mSpecialItems, int mDuration, int mEUt, int mSpecialValue, boolean mEnabled, + boolean mHidden, boolean mFakeRecipe, boolean mCanBeBuffered, boolean mNeedsEmptyOutput, String[] neiDesc) { this.mInputs = mInputs; this.mOutputs = mOutputs; this.mFluidInputs = mFluidInputs; @@ -215,7 +215,7 @@ public class GT_Recipe implements Comparable { } public GT_Recipe(boolean aOptimize, ItemStack[] aInputs, ItemStack[] aOutputs, Object aSpecialItems, int[] aChances, - FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs, int aDuration, int aEUt, int aSpecialValue) { + FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs, int aDuration, int aEUt, int aSpecialValue) { if (aInputs == null) aInputs = new ItemStack[0]; if (aOutputs == null) aOutputs = new ItemStack[0]; if (aFluidInputs == null) aFluidInputs = new FluidStack[0]; @@ -302,18 +302,18 @@ public class GT_Recipe implements Comparable { // aSpecialValue = EU per Liter! If there is no Liquid for this Object, then it gets multiplied with 1000! public GT_Recipe(ItemStack aInput1, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, ItemStack aOutput4, - int aSpecialValue, int aType) { + int aSpecialValue, int aType) { this( - true, - new ItemStack[] { aInput1 }, - new ItemStack[] { aOutput1, aOutput2, aOutput3, aOutput4 }, - null, - null, - null, - null, - 0, - 0, - Math.max(1, aSpecialValue)); + true, + new ItemStack[] { aInput1 }, + new ItemStack[] { aOutput1, aOutput2, aOutput3, aOutput4 }, + null, + null, + null, + null, + 0, + 0, + Math.max(1, aSpecialValue)); if (mInputs.length > 0 && aSpecialValue > 0) { switch (aType) { @@ -344,18 +344,18 @@ public class GT_Recipe implements Comparable { } public GT_Recipe(FluidStack aInput1, FluidStack aInput2, FluidStack aOutput1, int aDuration, int aEUt, - int aSpecialValue) { + int aSpecialValue) { this( - true, - null, - null, - null, - null, - new FluidStack[] { aInput1, aInput2 }, - new FluidStack[] { aOutput1 }, - Math.max(aDuration, 1), - aEUt, - Math.max(Math.min(aSpecialValue, 160000000), 0)); + true, + null, + null, + null, + null, + new FluidStack[] { aInput1, aInput2 }, + new FluidStack[] { aOutput1 }, + Math.max(aDuration, 1), + aEUt, + Math.max(Math.min(aSpecialValue, 160000000), 0)); if (mInputs.length > 1) { GT_Recipe_Map.sFusionRecipes.addRecipe(this); } @@ -363,35 +363,35 @@ public class GT_Recipe implements Comparable { public GT_Recipe(ItemStack aInput1, ItemStack aOutput1, ItemStack aOutput2, int aDuration, int aEUt) { this( - true, - new ItemStack[] { aInput1 }, - new ItemStack[] { aOutput1, aOutput2 }, - null, - null, - null, - null, - aDuration, - aEUt, - 0); + true, + new ItemStack[] { aInput1 }, + new ItemStack[] { aOutput1, aOutput2 }, + null, + null, + null, + null, + aDuration, + aEUt, + 0); if (mInputs.length > 0 && mOutputs[0] != null) { GT_Recipe_Map.sLatheRecipes.addRecipe(this); } } public GT_Recipe(ItemStack aInput1, int aCellAmount, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, - ItemStack aOutput4, int aDuration, int aEUt) { + ItemStack aOutput4, int aDuration, int aEUt) { this( - true, - new ItemStack[] { aInput1, - aCellAmount > 0 ? ItemList.Cell_Empty.get(Math.min(64, Math.max(1, aCellAmount))) : null }, - new ItemStack[] { aOutput1, aOutput2, aOutput3, aOutput4 }, - null, - null, - null, - null, - Math.max(aDuration, 1), - Math.max(aEUt, 1), - 0); + true, + new ItemStack[] { aInput1, + aCellAmount > 0 ? ItemList.Cell_Empty.get(Math.min(64, Math.max(1, aCellAmount))) : null }, + new ItemStack[] { aOutput1, aOutput2, aOutput3, aOutput4 }, + null, + null, + null, + null, + Math.max(aDuration, 1), + Math.max(aEUt, 1), + 0); if (mInputs.length > 0 && mOutputs[0] != null) { GT_Recipe_Map.sDistillationRecipes.addRecipe(this); } @@ -399,20 +399,20 @@ public class GT_Recipe implements Comparable { public GT_Recipe(ItemStack aInput1, int aInput2, ItemStack aOutput1, ItemStack aOutput2) { this( - true, - new ItemStack[] { aInput1, - GT_ModHandler.getIC2Item( - "industrialTnt", - aInput2 > 0 ? Math.min(aInput2, 64) : 1, - new ItemStack(Blocks.tnt, aInput2 > 0 ? Math.min(aInput2, 64) : 1)) }, - new ItemStack[] { aOutput1, aOutput2 }, - null, - null, - null, - null, - 20, - 30, - 0); + true, + new ItemStack[] { aInput1, + GT_ModHandler.getIC2Item( + "industrialTnt", + aInput2 > 0 ? Math.min(aInput2, 64) : 1, + new ItemStack(Blocks.tnt, aInput2 > 0 ? Math.min(aInput2, 64) : 1)) }, + new ItemStack[] { aOutput1, aOutput2 }, + null, + null, + null, + null, + 20, + 30, + 0); if (mInputs.length > 0 && mOutputs[0] != null) { GT_Recipe_Map.sImplosionRecipes.addRecipe(this); } @@ -420,16 +420,16 @@ public class GT_Recipe implements Comparable { public GT_Recipe(int aEUt, int aDuration, ItemStack aInput1, ItemStack aOutput1) { this( - true, - new ItemStack[] { aInput1, ItemList.Circuit_Integrated.getWithDamage(0, aInput1.stackSize) }, - new ItemStack[] { aOutput1 }, - null, - null, - null, - null, - Math.max(aDuration, 1), - Math.max(aEUt, 1), - 0); + true, + new ItemStack[] { aInput1, ItemList.Circuit_Integrated.getWithDamage(0, aInput1.stackSize) }, + new ItemStack[] { aOutput1 }, + null, + null, + null, + null, + Math.max(aDuration, 1), + Math.max(aEUt, 1), + 0); if (mInputs.length > 0 && mOutputs[0] != null) { GT_Recipe_Map.sBenderRecipes.addRecipe(this); } @@ -437,34 +437,34 @@ public class GT_Recipe implements Comparable { public GT_Recipe(ItemStack aInput1, ItemStack aInput2, int aEUt, int aDuration, ItemStack aOutput1) { this( - true, - aInput2 == null ? new ItemStack[] { aInput1 } : new ItemStack[] { aInput1, aInput2 }, - new ItemStack[] { aOutput1 }, - null, - null, - null, - null, - Math.max(aDuration, 1), - Math.max(aEUt, 1), - 0); + true, + aInput2 == null ? new ItemStack[] { aInput1 } : new ItemStack[] { aInput1, aInput2 }, + new ItemStack[] { aOutput1 }, + null, + null, + null, + null, + Math.max(aDuration, 1), + Math.max(aEUt, 1), + 0); if (mInputs.length > 0 && mOutputs[0] != null) { GT_Recipe_Map.sAlloySmelterRecipes.addRecipe(this); } } public GT_Recipe(ItemStack aInput1, int aEUt, ItemStack aInput2, int aDuration, ItemStack aOutput1, - ItemStack aOutput2) { + ItemStack aOutput2) { this( - true, - aInput2 == null ? new ItemStack[] { aInput1 } : new ItemStack[] { aInput1, aInput2 }, - new ItemStack[] { aOutput1, aOutput2 }, - null, - null, - null, - null, - Math.max(aDuration, 1), - Math.max(aEUt, 1), - 0); + true, + aInput2 == null ? new ItemStack[] { aInput1 } : new ItemStack[] { aInput1, aInput2 }, + new ItemStack[] { aOutput1, aOutput2 }, + null, + null, + null, + null, + Math.max(aDuration, 1), + Math.max(aEUt, 1), + 0); if (mInputs.length > 0 && mOutputs[0] != null) { GT_Recipe_Map.sCannerRecipes.addRecipe(this); } @@ -472,16 +472,16 @@ public class GT_Recipe implements Comparable { public GT_Recipe(ItemStack aInput1, ItemStack aOutput1, int aDuration) { this( - true, - new ItemStack[] { aInput1 }, - new ItemStack[] { aOutput1 }, - null, - null, - null, - null, - Math.max(aDuration, 1), - 120, - 0); + true, + new ItemStack[] { aInput1 }, + new ItemStack[] { aOutput1 }, + null, + null, + null, + null, + Math.max(aDuration, 1), + 120, + 0); if (mInputs.length > 0 && mOutputs[0] != null) { GT_Recipe_Map.sVacuumRecipes.addRecipe(this); } @@ -489,16 +489,16 @@ public class GT_Recipe implements Comparable { public GT_Recipe(ItemStack aInput1, ItemStack aOutput1, int aDuration, int aEUt, int VACUUM) { this( - true, - new ItemStack[] { aInput1 }, - new ItemStack[] { aOutput1 }, - null, - null, - null, - null, - Math.max(aDuration, 1), - aEUt, - 0); + true, + new ItemStack[] { aInput1 }, + new ItemStack[] { aOutput1 }, + null, + null, + null, + null, + Math.max(aDuration, 1), + aEUt, + 0); if (mInputs.length > 0 && mOutputs[0] != null) { GT_Recipe_Map.sVacuumRecipes.addRecipe(this); } @@ -506,16 +506,16 @@ public class GT_Recipe implements Comparable { public GT_Recipe(FluidStack aInput1, FluidStack aOutput1, int aDuration, int aEUt) { this( - false, - null, - null, - null, - null, - new FluidStack[] { aInput1 }, - new FluidStack[] { aOutput1 }, - Math.max(aDuration, 1), - aEUt, - 0); + false, + null, + null, + null, + null, + new FluidStack[] { aInput1 }, + new FluidStack[] { aOutput1 }, + Math.max(aDuration, 1), + aEUt, + 0); if (mFluidInputs.length > 0 && mFluidOutputs[0] != null) { GT_Recipe_Map.sVacuumRecipes.addRecipe(this); } @@ -523,18 +523,18 @@ public class GT_Recipe implements Comparable { // Dummy GT_Recipe maker... public GT_Recipe(ItemStack[] aInputs, ItemStack[] aOutputs, Object aSpecialItems, int[] aChances, - FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs, int aDuration, int aEUt, int aSpecialValue) { + FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs, int aDuration, int aEUt, int aSpecialValue) { this( - true, - aInputs, - aOutputs, - aSpecialItems, - aChances, - aFluidInputs, - aFluidOutputs, - aDuration, - aEUt, - aSpecialValue); + true, + aInputs, + aOutputs, + aSpecialItems, + aChances, + aFluidInputs, + aFluidOutputs, + aDuration, + aEUt, + aSpecialValue); } public static void reInit() { @@ -600,13 +600,13 @@ public class GT_Recipe implements Comparable { } public boolean isRecipeInputEqual(boolean aDecreaseStacksizeBySuccess, FluidStack[] aFluidInputs, - ItemStack... aInputs) { + ItemStack... aInputs) { return isRecipeInputEqual(aDecreaseStacksizeBySuccess, false, 1, aFluidInputs, aInputs); } // For non-multiplied recipe amount values public boolean isRecipeInputEqual(boolean aDecreaseStacksizeBySuccess, boolean aDontCheckStackSizes, - FluidStack[] aFluidInputs, ItemStack... aInputs) { + FluidStack[] aFluidInputs, ItemStack... aInputs) { return isRecipeInputEqual(aDecreaseStacksizeBySuccess, aDontCheckStackSizes, 1, aFluidInputs, aInputs); } @@ -632,7 +632,7 @@ public class GT_Recipe implements Comparable { * set to {@code true}! You'll get weird behavior. */ public boolean isRecipeInputEqual(boolean aDecreaseStacksizeBySuccess, boolean aDontCheckStackSizes, - int amountMultiplier, FluidStack[] aFluidInputs, ItemStack... aInputs) { + int amountMultiplier, FluidStack[] aFluidInputs, ItemStack... aInputs) { if (mInputs.length > 0 && aInputs == null) return false; if (mFluidInputs.length > 0 && aFluidInputs == null) return false; @@ -695,14 +695,8 @@ public class GT_Recipe implements Comparable { if (GT_OreDictUnificator.isInputStackEqual(providedItem, unifiedItemCost)) { if (GTppRecipeHelper) { // Please see JavaDoc on GTppRecipeHelper for why this is here. if (GT_Utility.areStacksEqual(providedItem, Ic2Items.FluidCell.copy(), true) - || GT_Utility.areStacksEqual( - providedItem, - ItemList.Tool_DataStick.get(1L), - true) - || GT_Utility.areStacksEqual( - providedItem, - ItemList.Tool_DataOrb.get(1L), - true)) { + || GT_Utility.areStacksEqual(providedItem, ItemList.Tool_DataStick.get(1L), true) + || GT_Utility.areStacksEqual(providedItem, ItemList.Tool_DataOrb.get(1L), true)) { if (!GT_Utility.areStacksEqual(providedItem, recipeItemCost, false)) continue; } } @@ -808,23 +802,23 @@ public class GT_Recipe implements Comparable { public void reloadOwner() { setOwner( - Loader.instance() - .activeModContainer()); + Loader.instance() + .activeModContainer()); final List excludedClasses = Arrays.asList( - "java.lang.Thread", - "gregtech.api.util.GT_Recipe", - "gregtech.api.util.GT_RecipeBuilder", - "gregtech.api.util.GT_Recipe$GT_Recipe_Map", - "gregtech.common.GT_RecipeAdder"); + "java.lang.Thread", + "gregtech.api.util.GT_Recipe", + "gregtech.api.util.GT_RecipeBuilder", + "gregtech.api.util.GT_Recipe$GT_Recipe_Map", + "gregtech.common.GT_RecipeAdder"); if (GT_Mod.gregtechproxy.mNEIRecipeOwnerStackTrace) { List toAdd = new ArrayList<>(); for (StackTraceElement stackTrace : Thread.currentThread() - .getStackTrace()) { + .getStackTrace()) { if (excludedClasses.stream() - .noneMatch( - c -> stackTrace.getClassName() - .equals(c))) { + .noneMatch( + c -> stackTrace.getClassName() + .equals(c))) { toAdd.add(stackTrace); } } @@ -844,9 +838,9 @@ public class GT_Recipe implements Comparable { */ public void setOwner(String modId) { for (ModContainer mod : Loader.instance() - .getModList()) { + .getModList()) { if (mod.getModId() - .equals(modId)) { + .equals(modId)) { setOwner(mod); return; } @@ -904,7 +898,7 @@ public class GT_Recipe implements Comparable { } } if (invalidCount > 0) throw new RuntimeException( - "There are " + invalidCount + " invalid assembly line recipe(s)! Check GregTech.log for details!"); + "There are " + invalidCount + " invalid assembly line recipe(s)! Check GregTech.log for details!"); } public ItemStack mResearchItem; @@ -923,16 +917,16 @@ public class GT_Recipe implements Comparable { * if you set one yourself, it will give you one of the RunetimeExceptions! */ public GT_Recipe_AssemblyLine(ItemStack aResearchItem, int aResearchTime, ItemStack[] aInputs, - FluidStack[] aFluidInputs, ItemStack aOutput, int aDuration, int aEUt) { + FluidStack[] aFluidInputs, ItemStack aOutput, int aDuration, int aEUt) { this( - aResearchItem, - aResearchTime, - aInputs, - aFluidInputs, - aOutput, - aDuration, - aEUt, - new ItemStack[aInputs.length][]); + aResearchItem, + aResearchTime, + aInputs, + aFluidInputs, + aOutput, + aDuration, + aEUt, + new ItemStack[aInputs.length][]); int tPersistentHash = 1; for (ItemStack tInput : aInputs) tPersistentHash = tPersistentHash * 31 + GT_Utility.persistentHash(tInput, true, false); @@ -952,7 +946,7 @@ public class GT_Recipe implements Comparable { * if you don't set one yourself, it will break a lot of stuff! */ public GT_Recipe_AssemblyLine(ItemStack aResearchItem, int aResearchTime, ItemStack[] aInputs, - FluidStack[] aFluidInputs, ItemStack aOutput, int aDuration, int aEUt, ItemStack[][] aAlt) { + FluidStack[] aFluidInputs, ItemStack aOutput, int aDuration, int aEUt, ItemStack[][] aAlt) { mResearchItem = aResearchItem; mResearchTime = aResearchTime; mInputs = aInputs; @@ -978,7 +972,7 @@ public class GT_Recipe implements Comparable { GT_ItemStack thisOutput = new GT_ItemStack(mOutput); GT_ItemStack thisResearch = new GT_ItemStack(mResearchItem); int miscRecipeDataHash = Arrays.deepHashCode( - new Object[] { totalInputStackSize, mDuration, mEUt, thisOutput, thisResearch, mResearchTime }); + new Object[] { totalInputStackSize, mDuration, mEUt, thisOutput, thisResearch, mResearchTime }); result = prime * result + inputFluidHash; result = prime * result + inputHash; result = prime * result + miscRecipeDataHash; @@ -1031,7 +1025,7 @@ public class GT_Recipe implements Comparable { } return this.mDuration == other.mDuration && this.mEUt == other.mEUt - && this.mResearchTime == other.mResearchTime; + && this.mResearchTime == other.mResearchTime; } public int getPersistentHash() { @@ -1043,22 +1037,22 @@ public class GT_Recipe implements Comparable { @Override public String toString() { return "GT_Recipe_AssemblyLine{" + "mResearchItem=" - + mResearchItem - + ", mResearchTime=" - + mResearchTime - + ", mInputs=" - + Arrays.toString(mInputs) - + ", mFluidInputs=" - + Arrays.toString(mFluidInputs) - + ", mOutput=" - + mOutput - + ", mDuration=" - + mDuration - + ", mEUt=" - + mEUt - + ", mOreDictAlt=" - + Arrays.toString(mOreDictAlt) - + '}'; + + mResearchItem + + ", mResearchTime=" + + mResearchTime + + ", mInputs=" + + Arrays.toString(mInputs) + + ", mFluidInputs=" + + Arrays.toString(mFluidInputs) + + ", mOutput=" + + mOutput + + ", mDuration=" + + mDuration + + ", mEUt=" + + mEUt + + ", mOreDictAlt=" + + Arrays.toString(mOreDictAlt) + + '}'; } /** @@ -1088,893 +1082,891 @@ public class GT_Recipe implements Comparable { static final String TEXTURES_GUI_BASICMACHINES = "textures/gui/basicmachines"; public static final GT_Recipe_Map sOreWasherRecipes = new GT_Recipe_Map( - new HashSet<>(500), - "gt.recipe.orewasher", - "Ore Washing Plant", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "OreWasher"), - 1, - 3, - 1, - 1, - 1, - E, - 1, - E, - true, - true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_CRUSHED_ORE) - .setSlotOverlay(false, true, GT_UITextures.OVERLAY_SLOT_DUST) - .setRecipeConfigFile("orewasher", FIRST_ITEM_INPUT) - .setProgressBar(GT_UITextures.PROGRESSBAR_BATH, ProgressBar.Direction.CIRCULAR_CW); + new HashSet<>(500), + "gt.recipe.orewasher", + "Ore Washing Plant", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "OreWasher"), + 1, + 3, + 1, + 1, + 1, + E, + 1, + E, + true, + true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_CRUSHED_ORE) + .setSlotOverlay(false, true, GT_UITextures.OVERLAY_SLOT_DUST) + .setRecipeConfigFile("orewasher", FIRST_ITEM_INPUT) + .setProgressBar(GT_UITextures.PROGRESSBAR_BATH, ProgressBar.Direction.CIRCULAR_CW); public static final GT_Recipe_Map sThermalCentrifugeRecipes = new GT_Recipe_Map( - new HashSet<>(1000), - "gt.recipe.thermalcentrifuge", - "Thermal Centrifuge", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "ThermalCentrifuge"), - 1, - 3, - 1, - 0, - 2, - E, - 1, - E, - true, - true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_CRUSHED_ORE) - .setSlotOverlay(false, true, GT_UITextures.OVERLAY_SLOT_DUST) - .setRecipeConfigFile("thermalcentrifuge", FIRST_ITEM_INPUT) - .setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); + new HashSet<>(1000), + "gt.recipe.thermalcentrifuge", + "Thermal Centrifuge", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "ThermalCentrifuge"), + 1, + 3, + 1, + 0, + 2, + E, + 1, + E, + true, + true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_CRUSHED_ORE) + .setSlotOverlay(false, true, GT_UITextures.OVERLAY_SLOT_DUST) + .setRecipeConfigFile("thermalcentrifuge", FIRST_ITEM_INPUT) + .setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); public static final GT_Recipe_Map sCompressorRecipes = new GT_Recipe_Map( - new HashSet<>(750), - "gt.recipe.compressor", - "Compressor", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Compressor"), - 1, - 1, - 1, - 0, - 1, - E, - 1, - E, - true, - true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_COMPRESSOR) - .setRecipeConfigFile("compressor", FIRST_ITEM_INPUT) - .setProgressBar(GT_UITextures.PROGRESSBAR_COMPRESS, ProgressBar.Direction.RIGHT) - .setSlotOverlaySteam(false, GT_UITextures.OVERLAY_SLOT_COMPRESSOR_STEAM) - .setProgressBarSteam(GT_UITextures.PROGRESSBAR_COMPRESS_STEAM); + new HashSet<>(750), + "gt.recipe.compressor", + "Compressor", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Compressor"), + 1, + 1, + 1, + 0, + 1, + E, + 1, + E, + true, + true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_COMPRESSOR) + .setRecipeConfigFile("compressor", FIRST_ITEM_INPUT) + .setProgressBar(GT_UITextures.PROGRESSBAR_COMPRESS, ProgressBar.Direction.RIGHT) + .setSlotOverlaySteam(false, GT_UITextures.OVERLAY_SLOT_COMPRESSOR_STEAM) + .setProgressBarSteam(GT_UITextures.PROGRESSBAR_COMPRESS_STEAM); public static final GT_Recipe_Map sExtractorRecipes = new GT_Recipe_Map( - new HashSet<>(250), - "gt.recipe.extractor", - "Extractor", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Extractor"), - 1, - 1, - 1, - 0, - 1, - E, - 1, - E, - true, - true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_CENTRIFUGE) - .setRecipeConfigFile("extractor", FIRST_ITEM_INPUT) - .setProgressBar(GT_UITextures.PROGRESSBAR_EXTRACT, ProgressBar.Direction.RIGHT) - .setSlotOverlaySteam(false, GT_UITextures.OVERLAY_SLOT_CENTRIFUGE_STEAM) - .setProgressBarSteam(GT_UITextures.PROGRESSBAR_EXTRACT_STEAM); + new HashSet<>(250), + "gt.recipe.extractor", + "Extractor", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Extractor"), + 1, + 1, + 1, + 0, + 1, + E, + 1, + E, + true, + true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_CENTRIFUGE) + .setRecipeConfigFile("extractor", FIRST_ITEM_INPUT) + .setProgressBar(GT_UITextures.PROGRESSBAR_EXTRACT, ProgressBar.Direction.RIGHT) + .setSlotOverlaySteam(false, GT_UITextures.OVERLAY_SLOT_CENTRIFUGE_STEAM) + .setProgressBarSteam(GT_UITextures.PROGRESSBAR_EXTRACT_STEAM); public static final GT_Recipe_Map sRecyclerRecipes = new GT_Recipe_Map_Recycler( - new HashSet<>(0), - "ic.recipe.recycler", - "Recycler", - "ic2.recycler", - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Recycler"), - 1, - 1, - 1, - 0, - 1, - E, - 1, - E, - true, - false).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_RECYCLE) - .setProgressBar(GT_UITextures.PROGRESSBAR_RECYCLE, ProgressBar.Direction.CIRCULAR_CW); + new HashSet<>(0), + "ic.recipe.recycler", + "Recycler", + "ic2.recycler", + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Recycler"), + 1, + 1, + 1, + 0, + 1, + E, + 1, + E, + true, + false).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_RECYCLE) + .setProgressBar(GT_UITextures.PROGRESSBAR_RECYCLE, ProgressBar.Direction.CIRCULAR_CW); public static final GT_Recipe_Map sFurnaceRecipes = new GT_Recipe_Map_Furnace( - new HashSet<>(0), - "mc.recipe.furnace", - "Furnace", - "smelting", - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "E_Furnace"), - 1, - 1, - 1, - 0, - 1, - E, - 1, - E, - true, - false).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_FURNACE) - .setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT) - .setSlotOverlaySteam(false, GT_UITextures.OVERLAY_SLOT_FURNACE_STEAM) - .setProgressBarSteam(GT_UITextures.PROGRESSBAR_ARROW_STEAM); + new HashSet<>(0), + "mc.recipe.furnace", + "Furnace", + "smelting", + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "E_Furnace"), + 1, + 1, + 1, + 0, + 1, + E, + 1, + E, + true, + false).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_FURNACE) + .setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT) + .setSlotOverlaySteam(false, GT_UITextures.OVERLAY_SLOT_FURNACE_STEAM) + .setProgressBarSteam(GT_UITextures.PROGRESSBAR_ARROW_STEAM); public static final GT_Recipe_Map sMicrowaveRecipes = new GT_Recipe_Map_Microwave( - new HashSet<>(0), - "gt.recipe.microwave", - "Microwave", - "smelting", - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "E_Furnace"), - 1, - 1, - 1, - 0, - 1, - E, - 1, - E, - true, - false).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_FURNACE) - .setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); + new HashSet<>(0), + "gt.recipe.microwave", + "Microwave", + "smelting", + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "E_Furnace"), + 1, + 1, + 1, + 0, + 1, + E, + 1, + E, + true, + false).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_FURNACE) + .setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); public static final GT_Recipe_Map sScannerFakeRecipes = new GT_Recipe_Map( - new HashSet<>(300), - "gt.recipe.scanner", - "Scanner", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Scanner"), - 1, - 1, - 1, - 0, - 1, - E, - 1, - E, - true, - true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_MICROSCOPE) - .setSlotOverlay(false, false, true, true, GT_UITextures.OVERLAY_SLOT_DATA_ORB) - .setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); + new HashSet<>(300), + "gt.recipe.scanner", + "Scanner", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Scanner"), + 1, + 1, + 1, + 0, + 1, + E, + 1, + E, + true, + true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_MICROSCOPE) + .setSlotOverlay(false, false, true, true, GT_UITextures.OVERLAY_SLOT_DATA_ORB) + .setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); public static final GT_Recipe_Map sRockBreakerFakeRecipes = new GT_Recipe_Map( - new HashSet<>(200), - "gt.recipe.rockbreaker", - "Rock Breaker", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "RockBreaker"), - 2, - 1, - 0, - 0, - 1, - E, - 1, - E, - true, - true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_DUST) - .setSlotOverlay(false, true, GT_UITextures.OVERLAY_SLOT_CRUSHED_ORE) - .setProgressBar(GT_UITextures.PROGRESSBAR_MACERATE, ProgressBar.Direction.RIGHT); + new HashSet<>(200), + "gt.recipe.rockbreaker", + "Rock Breaker", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "RockBreaker"), + 2, + 1, + 0, + 0, + 1, + E, + 1, + E, + true, + true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_DUST) + .setSlotOverlay(false, true, GT_UITextures.OVERLAY_SLOT_CRUSHED_ORE) + .setProgressBar(GT_UITextures.PROGRESSBAR_MACERATE, ProgressBar.Direction.RIGHT); public static final GT_Recipe_Map sByProductList = new GT_Recipe_Map( - new HashSet<>(1000), - "gt.recipe.byproductlist", - "Ore Byproduct List", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), - 1, - 6, - 1, - 0, - 1, - E, - 1, - E, - true, - true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); + new HashSet<>(1000), + "gt.recipe.byproductlist", + "Ore Byproduct List", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), + 1, + 6, + 1, + 0, + 1, + E, + 1, + E, + true, + true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); public static final GT_Recipe_Map sReplicatorFakeRecipes = new ReplicatorFakeMap( - new HashSet<>(100), - "gt.recipe.replicator", - "Replicator", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Replicator"), - 0, - 1, - 0, - 1, - 1, - E, - 1, - E, - true, - true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_CANISTER) - .setSlotOverlay(true, false, GT_UITextures.OVERLAY_SLOT_UUM) - .setSlotOverlay(false, false, true, true, GT_UITextures.OVERLAY_SLOT_DATA_ORB) - .setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); + new HashSet<>(100), + "gt.recipe.replicator", + "Replicator", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Replicator"), + 0, + 1, + 0, + 1, + 1, + E, + 1, + E, + true, + true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_CANISTER) + .setSlotOverlay(true, false, GT_UITextures.OVERLAY_SLOT_UUM) + .setSlotOverlay(false, false, true, true, GT_UITextures.OVERLAY_SLOT_DATA_ORB) + .setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); // public static final GT_Recipe_Map sAssemblylineFakeRecipes = new GT_Recipe_Map(new HashSet<>(30), // "gt.recipe.scanner", "Scanner", null, Mods.GregTech.getResourcePath(BASIC_MACHINES, "Default"), 1, 1, 1, 0, // 1, E, 1, E, true, // true); public static final GT_Recipe_Map sAssemblylineVisualRecipes = new GT_Recipe_Map_AssemblyLineFake( - new HashSet<>(110), - "gt.recipe.fakeAssemblylineProcess", - "Assemblyline Process", - null, - GregTech.getResourcePath("textures", "gui", "FakeAssemblyline"), - 16, - 1, - 1, - 0, - 1, - E, - 1, - E, - true, - true).setSlotOverlay(false, false, true, true, GT_UITextures.OVERLAY_SLOT_DATA_ORB) - .setUsualFluidInputCount(4) - .setDisableOptimize(true); + new HashSet<>(110), + "gt.recipe.fakeAssemblylineProcess", + "Assemblyline Process", + null, + GregTech.getResourcePath("textures", "gui", "FakeAssemblyline"), + 16, + 1, + 1, + 0, + 1, + E, + 1, + E, + true, + true).setSlotOverlay(false, false, true, true, GT_UITextures.OVERLAY_SLOT_DATA_ORB) + .setUsualFluidInputCount(4) + .setDisableOptimize(true); /** * Usually, but not always, you should use {@link GT_RecipeConstants#UniversalArcFurnace} instead. */ public static final GT_Recipe_Map sPlasmaArcFurnaceRecipes = new GT_Recipe_Map( - new HashSet<>(20000), - "gt.recipe.plasmaarcfurnace", - "Plasma Arc Furnace", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "PlasmaArcFurnace"), - 1, - 9, - 1, - 1, - 1, - E, - 1, - E, - true, - true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT) - .setRecipeConfigFile("arcfurnace", FIRST_ITEM_INPUT); + new HashSet<>(20000), + "gt.recipe.plasmaarcfurnace", + "Plasma Arc Furnace", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "PlasmaArcFurnace"), + 1, + 9, + 1, + 1, + 1, + E, + 1, + E, + true, + true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT) + .setRecipeConfigFile("arcfurnace", FIRST_ITEM_INPUT); /** * Usually, but not always, you should use {@link GT_RecipeConstants#UniversalArcFurnace} instead. */ public static final GT_Recipe_Map sArcFurnaceRecipes = new GT_Recipe_Map( - new HashSet<>(20000), - "gt.recipe.arcfurnace", - "Arc Furnace", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "ArcFurnace"), - 1, - 9, - 1, - 1, - 3, - E, - 1, - E, - true, - true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT) - .setRecipeConfigFile("arcfurnace", FIRST_ITEM_INPUT); + new HashSet<>(20000), + "gt.recipe.arcfurnace", + "Arc Furnace", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "ArcFurnace"), + 1, + 9, + 1, + 1, + 3, + E, + 1, + E, + true, + true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT) + .setRecipeConfigFile("arcfurnace", FIRST_ITEM_INPUT); public static final GT_Recipe_Map sPrinterRecipes = new GT_Recipe_Map_Printer( - new HashSet<>(5), - "gt.recipe.printer", - "Printer", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Printer"), - 1, - 1, - 1, - 1, - 1, - E, - 1, - E, - true, - true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_PAGE_BLANK) - .setSlotOverlay(false, true, GT_UITextures.OVERLAY_SLOT_PAGE_PRINTED) - .setSlotOverlay(false, false, true, true, GT_UITextures.OVERLAY_SLOT_DATA_STICK) - .setRecipeConfigFile("printer", FIRST_ITEM_INPUT) - .setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); + new HashSet<>(5), + "gt.recipe.printer", + "Printer", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Printer"), + 1, + 1, + 1, + 1, + 1, + E, + 1, + E, + true, + true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_PAGE_BLANK) + .setSlotOverlay(false, true, GT_UITextures.OVERLAY_SLOT_PAGE_PRINTED) + .setSlotOverlay(false, false, true, true, GT_UITextures.OVERLAY_SLOT_DATA_STICK) + .setRecipeConfigFile("printer", FIRST_ITEM_INPUT) + .setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); public static final GT_Recipe_Map sSifterRecipes = new GT_Recipe_Map( - new HashSet<>(105), - "gt.recipe.sifter", - "Sifter", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Sifter"), - 1, - 9, - 0, - 0, - 1, - E, - 1, - E, - true, - true).setProgressBar(GT_UITextures.PROGRESSBAR_SIFT, ProgressBar.Direction.DOWN) - .setRecipeConfigFile("sifter", FIRST_ITEM_INPUT); + new HashSet<>(105), + "gt.recipe.sifter", + "Sifter", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Sifter"), + 1, + 9, + 0, + 0, + 1, + E, + 1, + E, + true, + true).setProgressBar(GT_UITextures.PROGRESSBAR_SIFT, ProgressBar.Direction.DOWN) + .setRecipeConfigFile("sifter", FIRST_ITEM_INPUT); public static final GT_Recipe_Map sPressRecipes = new GT_Recipe_Map_FormingPress( - new HashSet<>(300), - "gt.recipe.press", - "Forming Press", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Press3"), - 6, - 1, - 2, - 0, - 1, - E, - 1, - E, - true, - true).setSlotOverlay(false, false, true, GT_UITextures.OVERLAY_SLOT_PRESS_1) - .setSlotOverlay(false, false, false, GT_UITextures.OVERLAY_SLOT_PRESS_2) - .setSlotOverlay(false, true, GT_UITextures.OVERLAY_SLOT_PRESS_3) - .setRecipeConfigFile("press", FIRST_ITEM_OUTPUT) - .setProgressBar(GT_UITextures.PROGRESSBAR_COMPRESS, ProgressBar.Direction.RIGHT); + new HashSet<>(300), + "gt.recipe.press", + "Forming Press", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Press3"), + 6, + 1, + 2, + 0, + 1, + E, + 1, + E, + true, + true).setSlotOverlay(false, false, true, GT_UITextures.OVERLAY_SLOT_PRESS_1) + .setSlotOverlay(false, false, false, GT_UITextures.OVERLAY_SLOT_PRESS_2) + .setSlotOverlay(false, true, GT_UITextures.OVERLAY_SLOT_PRESS_3) + .setRecipeConfigFile("press", FIRST_ITEM_OUTPUT) + .setProgressBar(GT_UITextures.PROGRESSBAR_COMPRESS, ProgressBar.Direction.RIGHT); public static final GT_Recipe_Map sLaserEngraverRecipes = new GT_Recipe_Map( - new HashSet<>(810), - "gt.recipe.laserengraver", - "Precision Laser Engraver", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "LaserEngraver2"), - 4, - 4, - 0, - 0, - 1, - E, - 1, - E, - true, - true).setSlotOverlay(false, false, false, GT_UITextures.OVERLAY_SLOT_LENS) - .setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT) - .setRecipeConfigFile("laserengraving", FIRST_ITEM_OUTPUT) - .setUsualFluidInputCount(2) - .setUsualFluidOutputCount(2); + new HashSet<>(810), + "gt.recipe.laserengraver", + "Precision Laser Engraver", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "LaserEngraver2"), + 4, + 4, + 0, + 0, + 1, + E, + 1, + E, + true, + true).setSlotOverlay(false, false, false, GT_UITextures.OVERLAY_SLOT_LENS) + .setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT) + .setRecipeConfigFile("laserengraving", FIRST_ITEM_OUTPUT) + .setUsualFluidInputCount(2) + .setUsualFluidOutputCount(2); public static final GT_Recipe_Map sMixerRecipes = new GT_Recipe_Map( - new HashSet<>(900), - "gt.recipe.mixer", - "Mixer", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Mixer6"), - 9, - 4, - 1, - 0, - 1, - E, - 1, - E, - true, - true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_DUST) - .setSlotOverlay(false, true, GT_UITextures.OVERLAY_SLOT_DUST) - .setRecipeConfigFile("mixer", FIRST_ITEM_OR_FLUID_OUTPUT) - .setProgressBar(GT_UITextures.PROGRESSBAR_MIXER, ProgressBar.Direction.CIRCULAR_CW); + new HashSet<>(900), + "gt.recipe.mixer", + "Mixer", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Mixer6"), + 9, + 4, + 1, + 0, + 1, + E, + 1, + E, + true, + true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_DUST) + .setSlotOverlay(false, true, GT_UITextures.OVERLAY_SLOT_DUST) + .setRecipeConfigFile("mixer", FIRST_ITEM_OR_FLUID_OUTPUT) + .setProgressBar(GT_UITextures.PROGRESSBAR_MIXER, ProgressBar.Direction.CIRCULAR_CW); public static final GT_Recipe_Map sAutoclaveRecipes = new GT_Recipe_Map( - new HashSet<>(300), - "gt.recipe.autoclave", - "Autoclave", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Autoclave4"), - 2, - 4, - 1, - 1, - 1, - E, - 1, - E, - true, - true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_DUST) - .setSlotOverlay(false, true, true, GT_UITextures.OVERLAY_SLOT_GEM) - .setSlotOverlay(false, true, false, GT_UITextures.OVERLAY_SLOT_DUST) - .setRecipeConfigFile("autoclave", FIRST_ITEM_INPUT) - .setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); + new HashSet<>(300), + "gt.recipe.autoclave", + "Autoclave", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Autoclave4"), + 2, + 4, + 1, + 1, + 1, + E, + 1, + E, + true, + true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_DUST) + .setSlotOverlay(false, true, true, GT_UITextures.OVERLAY_SLOT_GEM) + .setSlotOverlay(false, true, false, GT_UITextures.OVERLAY_SLOT_DUST) + .setRecipeConfigFile("autoclave", FIRST_ITEM_INPUT) + .setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); public static final GT_Recipe_Map sElectroMagneticSeparatorRecipes = new GT_Recipe_Map( - new HashSet<>(50), - "gt.recipe.electromagneticseparator", - "Electromagnetic Separator", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "ElectromagneticSeparator"), - 1, - 3, - 1, - 0, - 1, - E, - 1, - E, - true, - true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_CRUSHED_ORE) - .setSlotOverlay(false, true, GT_UITextures.OVERLAY_SLOT_DUST) - .setRecipeConfigFile("electromagneticseparator", FIRST_ITEM_INPUT) - .setProgressBar(GT_UITextures.PROGRESSBAR_MAGNET, ProgressBar.Direction.RIGHT); + new HashSet<>(50), + "gt.recipe.electromagneticseparator", + "Electromagnetic Separator", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "ElectromagneticSeparator"), + 1, + 3, + 1, + 0, + 1, + E, + 1, + E, + true, + true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_CRUSHED_ORE) + .setSlotOverlay(false, true, GT_UITextures.OVERLAY_SLOT_DUST) + .setRecipeConfigFile("electromagneticseparator", FIRST_ITEM_INPUT) + .setProgressBar(GT_UITextures.PROGRESSBAR_MAGNET, ProgressBar.Direction.RIGHT); public static final GT_Recipe_Map sPolarizerRecipes = new GT_Recipe_Map( - new HashSet<>(300), - "gt.recipe.polarizer", - "Electromagnetic Polarizer", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Polarizer"), - 1, - 1, - 1, - 0, - 1, - E, - 1, - E, - true, - true).setProgressBar(GT_UITextures.PROGRESSBAR_MAGNET, ProgressBar.Direction.RIGHT) - .setRecipeConfigFile("polarizer", FIRST_ITEM_INPUT); + new HashSet<>(300), + "gt.recipe.polarizer", + "Electromagnetic Polarizer", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Polarizer"), + 1, + 1, + 1, + 0, + 1, + E, + 1, + E, + true, + true).setProgressBar(GT_UITextures.PROGRESSBAR_MAGNET, ProgressBar.Direction.RIGHT) + .setRecipeConfigFile("polarizer", FIRST_ITEM_INPUT); public static final GT_Recipe_Map sMaceratorRecipes = new GT_Recipe_Map_Macerator( - new HashSet<>(16600), - "gt.recipe.macerator", - "Pulverization", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Macerator4"), - 1, - 4, - 1, - 0, - 1, - E, - 1, - E, - true, - true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_CRUSHED_ORE) - .setSlotOverlay(false, true, GT_UITextures.OVERLAY_SLOT_DUST) - .setProgressBar(GT_UITextures.PROGRESSBAR_MACERATE, ProgressBar.Direction.RIGHT) - .setRecipeConfigFile("pulveriser", FIRST_ITEM_INPUT) - .setSlotOverlaySteam(false, GT_UITextures.OVERLAY_SLOT_CRUSHED_ORE_STEAM) - .setSlotOverlaySteam(true, GT_UITextures.OVERLAY_SLOT_DUST_STEAM) - .setProgressBarSteam(GT_UITextures.PROGRESSBAR_MACERATE_STEAM); + new HashSet<>(16600), + "gt.recipe.macerator", + "Pulverization", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Macerator4"), + 1, + 4, + 1, + 0, + 1, + E, + 1, + E, + true, + true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_CRUSHED_ORE) + .setSlotOverlay(false, true, GT_UITextures.OVERLAY_SLOT_DUST) + .setProgressBar(GT_UITextures.PROGRESSBAR_MACERATE, ProgressBar.Direction.RIGHT) + .setRecipeConfigFile("pulveriser", FIRST_ITEM_INPUT) + .setSlotOverlaySteam(false, GT_UITextures.OVERLAY_SLOT_CRUSHED_ORE_STEAM) + .setSlotOverlaySteam(true, GT_UITextures.OVERLAY_SLOT_DUST_STEAM) + .setProgressBarSteam(GT_UITextures.PROGRESSBAR_MACERATE_STEAM); public static final GT_Recipe_Map sChemicalBathRecipes = new GT_Recipe_Map( - new HashSet<>(2550), - "gt.recipe.chemicalbath", - "Chemical Bath", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "ChemicalBath"), - 1, - 3, - 1, - 1, - 1, - E, - 1, - E, - true, - true).setProgressBar(GT_UITextures.PROGRESSBAR_BATH, ProgressBar.Direction.CIRCULAR_CW) - .setRecipeConfigFile("chemicalbath", FIRST_ITEM_INPUT); + new HashSet<>(2550), + "gt.recipe.chemicalbath", + "Chemical Bath", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "ChemicalBath"), + 1, + 3, + 1, + 1, + 1, + E, + 1, + E, + true, + true).setProgressBar(GT_UITextures.PROGRESSBAR_BATH, ProgressBar.Direction.CIRCULAR_CW) + .setRecipeConfigFile("chemicalbath", FIRST_ITEM_INPUT); public static final GT_Recipe_Map sFluidCannerRecipes = new GT_Recipe_Map_FluidCanner( - new HashSet<>(2100), - "gt.recipe.fluidcanner", - "Fluid Canning Machine", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "FluidCanner"), - 1, - 1, - 1, - 0, - 1, - E, - 1, - E, - true, - true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_CANISTER) - .setSlotOverlay(false, true, GT_UITextures.OVERLAY_SLOT_CANISTER) - .setRecipeConfigFile("canning", FIRST_ITEM_INPUT) - .setProgressBar(GT_UITextures.PROGRESSBAR_CANNER, ProgressBar.Direction.RIGHT); + new HashSet<>(2100), + "gt.recipe.fluidcanner", + "Fluid Canning Machine", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "FluidCanner"), + 1, + 1, + 1, + 0, + 1, + E, + 1, + E, + true, + true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_CANISTER) + .setSlotOverlay(false, true, GT_UITextures.OVERLAY_SLOT_CANISTER) + .setRecipeConfigFile("canning", FIRST_ITEM_INPUT) + .setProgressBar(GT_UITextures.PROGRESSBAR_CANNER, ProgressBar.Direction.RIGHT); public static final GT_Recipe_Map sBrewingRecipes = new GT_Recipe_Map( - new HashSet<>(450), - "gt.recipe.brewer", - "Brewing Machine", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "PotionBrewer"), - 1, - 0, - 1, - 1, - 1, - E, - 1, - E, - true, - true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_CAULDRON) - .setRecipeConfigFile("brewing", FIRST_FLUIDSTACK_OUTPUT) - .setProgressBar(GT_UITextures.PROGRESSBAR_ARROW_MULTIPLE, ProgressBar.Direction.RIGHT); + new HashSet<>(450), + "gt.recipe.brewer", + "Brewing Machine", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "PotionBrewer"), + 1, + 0, + 1, + 1, + 1, + E, + 1, + E, + true, + true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_CAULDRON) + .setRecipeConfigFile("brewing", FIRST_FLUIDSTACK_OUTPUT) + .setProgressBar(GT_UITextures.PROGRESSBAR_ARROW_MULTIPLE, ProgressBar.Direction.RIGHT); public static final GT_Recipe_Map sFluidHeaterRecipes = new GT_Recipe_Map( - new HashSet<>(10), - "gt.recipe.fluidheater", - "Fluid Heater", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "FluidHeater"), - 1, - 0, - 0, - 0, - 1, - E, - 1, - E, - true, - true).setSlotOverlay(true, false, GT_UITextures.OVERLAY_SLOT_HEATER_1) - .setSlotOverlay(true, true, GT_UITextures.OVERLAY_SLOT_HEATER_2) - .setRecipeConfigFile("fluidheater", FIRST_FLUIDSTACK_OUTPUT) - .setProgressBar(GT_UITextures.PROGRESSBAR_ARROW_MULTIPLE, ProgressBar.Direction.RIGHT); + new HashSet<>(10), + "gt.recipe.fluidheater", + "Fluid Heater", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "FluidHeater"), + 1, + 0, + 0, + 0, + 1, + E, + 1, + E, + true, + true).setSlotOverlay(true, false, GT_UITextures.OVERLAY_SLOT_HEATER_1) + .setSlotOverlay(true, true, GT_UITextures.OVERLAY_SLOT_HEATER_2) + .setRecipeConfigFile("fluidheater", FIRST_FLUIDSTACK_OUTPUT) + .setProgressBar(GT_UITextures.PROGRESSBAR_ARROW_MULTIPLE, ProgressBar.Direction.RIGHT); public static final GT_Recipe_Map sDistilleryRecipes = new GT_Recipe_Map( - new HashSet<>(400), - "gt.recipe.distillery", - "Distillery", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Distillery"), - 1, - 1, - 1, - 1, - 1, - E, - 1, - E, - true, - true).setSlotOverlay(true, false, GT_UITextures.OVERLAY_SLOT_BEAKER_1) - .setSlotOverlay(true, true, GT_UITextures.OVERLAY_SLOT_BEAKER_2) - .setRecipeConfigFile("distillery", FIRST_FLUIDSTACK_OUTPUT) - .setRecipeSpecialHandler(r -> { - int aInput = r.mFluidInputs[0].amount, aOutput = r.mFluidOutputs[0].amount, - aDuration = r.mDuration; - - // reduce the batch size if fluid amount is exceeding - int tScale = (Math.max(aInput, aOutput) + 999) / 1000; - if (tScale <= 0) tScale = 1; - if (tScale > 1) { - // trying to find whether there is a better factor - for (int i = tScale; i <= 5; i++) { - if (aInput % i == 0 && aDuration % i == 0) { - tScale = i; - break; - } - } - for (int i = tScale; i <= 5; i++) { - if (aInput % i == 0 && aDuration % i == 0 && aOutput % i == 0) { - tScale = i; - break; - } - } - aInput = (aInput + tScale - 1) / tScale; - aOutput = aOutput / tScale; - if (!isArrayEmptyOrNull(r.mOutputs)) { - ItemData tData = GT_OreDictUnificator.getItemData(r.mOutputs[0]); - if (tData != null && (tData.mPrefix == OrePrefixes.dust - || OrePrefixes.dust.mFamiliarPrefixes.contains(tData.mPrefix))) { - r.mOutputs[0] = GT_OreDictUnificator.getDust( - tData.mMaterial.mMaterial, - tData.mMaterial.mAmount * r.mOutputs[0].stackSize / tScale); - } else { - if (r.mOutputs[0].stackSize / tScale == 0) r.mOutputs[0] = GT_Values.NI; - else r.mOutputs[0] = GT_Utility.copyAmount( - r.mOutputs[0].stackSize / tScale, - r.mOutputs[0]); - } - } - aDuration = (aDuration + tScale - 1) / tScale; - r.mFluidInputs[0] = GT_Utility.copyAmount(aInput, r.mFluidInputs[0]); - r.mFluidOutputs[0] = GT_Utility.copyAmount(aOutput, r.mFluidOutputs[0]); - r.mDuration = aDuration; - } - }) - .setProgressBar(GT_UITextures.PROGRESSBAR_ARROW_MULTIPLE, ProgressBar.Direction.RIGHT); + new HashSet<>(400), + "gt.recipe.distillery", + "Distillery", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Distillery"), + 1, + 1, + 1, + 1, + 1, + E, + 1, + E, + true, + true).setSlotOverlay(true, false, GT_UITextures.OVERLAY_SLOT_BEAKER_1) + .setSlotOverlay(true, true, GT_UITextures.OVERLAY_SLOT_BEAKER_2) + .setRecipeConfigFile("distillery", FIRST_FLUIDSTACK_OUTPUT) + .setRecipeSpecialHandler(r -> { + int aInput = r.mFluidInputs[0].amount, aOutput = r.mFluidOutputs[0].amount, aDuration = r.mDuration; + + // reduce the batch size if fluid amount is exceeding + int tScale = (Math.max(aInput, aOutput) + 999) / 1000; + if (tScale <= 0) tScale = 1; + if (tScale > 1) { + // trying to find whether there is a better factor + for (int i = tScale; i <= 5; i++) { + if (aInput % i == 0 && aDuration % i == 0) { + tScale = i; + break; + } + } + for (int i = tScale; i <= 5; i++) { + if (aInput % i == 0 && aDuration % i == 0 && aOutput % i == 0) { + tScale = i; + break; + } + } + aInput = (aInput + tScale - 1) / tScale; + aOutput = aOutput / tScale; + if (!isArrayEmptyOrNull(r.mOutputs)) { + ItemData tData = GT_OreDictUnificator.getItemData(r.mOutputs[0]); + if (tData != null && (tData.mPrefix == OrePrefixes.dust + || OrePrefixes.dust.mFamiliarPrefixes.contains(tData.mPrefix))) { + r.mOutputs[0] = GT_OreDictUnificator.getDust( + tData.mMaterial.mMaterial, + tData.mMaterial.mAmount * r.mOutputs[0].stackSize / tScale); + } else { + if (r.mOutputs[0].stackSize / tScale == 0) r.mOutputs[0] = GT_Values.NI; + else r.mOutputs[0] = GT_Utility + .copyAmount(r.mOutputs[0].stackSize / tScale, r.mOutputs[0]); + } + } + aDuration = (aDuration + tScale - 1) / tScale; + r.mFluidInputs[0] = GT_Utility.copyAmount(aInput, r.mFluidInputs[0]); + r.mFluidOutputs[0] = GT_Utility.copyAmount(aOutput, r.mFluidOutputs[0]); + r.mDuration = aDuration; + } + }) + .setProgressBar(GT_UITextures.PROGRESSBAR_ARROW_MULTIPLE, ProgressBar.Direction.RIGHT); public static final GT_Recipe_Map sFermentingRecipes = new GT_Recipe_Map( - new HashSet<>(50), - "gt.recipe.fermenter", - "Fermenter", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Fermenter"), - 0, - 0, - 0, - 1, - 1, - E, - 1, - E, - true, - true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW_MULTIPLE, ProgressBar.Direction.RIGHT) - .setRecipeConfigFile("fermenting", FIRST_FLUIDSTACK_OUTPUT); + new HashSet<>(50), + "gt.recipe.fermenter", + "Fermenter", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Fermenter"), + 0, + 0, + 0, + 1, + 1, + E, + 1, + E, + true, + true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW_MULTIPLE, ProgressBar.Direction.RIGHT) + .setRecipeConfigFile("fermenting", FIRST_FLUIDSTACK_OUTPUT); public static final GT_Recipe_Map sFluidSolidficationRecipes = new GT_Recipe_Map( - new HashSet<>(35000), - "gt.recipe.fluidsolidifier", - "Fluid Solidifier", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "FluidSolidifier"), - 1, - 1, - 1, - 1, - 1, - E, - 1, - E, - true, - true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_MOLD) - .setRecipeConfigFile("fluidsolidifier", FIRST_ITEM_OUTPUT) - .setRecipeSpecialHandler(r -> { - if (ArrayUtils.isNotEmpty(r.mFluidInputs)) { - if (Materials.PhasedGold.getMolten(1) - .isFluidEqual(r.mFluidInputs[0])) - r.mFluidInputs = new FluidStack[] { - Materials.VibrantAlloy.getMolten(r.mFluidInputs[0].amount) }; - else if (Materials.PhasedIron.getMolten(1) - .isFluidEqual(r.mFluidInputs[0])) - r.mFluidInputs = new FluidStack[] { - Materials.PulsatingIron.getMolten(r.mFluidInputs[0].amount) }; - } - }) - .setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); + new HashSet<>(35000), + "gt.recipe.fluidsolidifier", + "Fluid Solidifier", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "FluidSolidifier"), + 1, + 1, + 1, + 1, + 1, + E, + 1, + E, + true, + true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_MOLD) + .setRecipeConfigFile("fluidsolidifier", FIRST_ITEM_OUTPUT) + .setRecipeSpecialHandler(r -> { + if (ArrayUtils.isNotEmpty(r.mFluidInputs)) { + if (Materials.PhasedGold.getMolten(1) + .isFluidEqual(r.mFluidInputs[0])) + r.mFluidInputs = new FluidStack[] { + Materials.VibrantAlloy.getMolten(r.mFluidInputs[0].amount) }; + else if (Materials.PhasedIron.getMolten(1) + .isFluidEqual(r.mFluidInputs[0])) + r.mFluidInputs = new FluidStack[] { + Materials.PulsatingIron.getMolten(r.mFluidInputs[0].amount) }; + } + }) + .setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); public static final GT_Recipe_Map sFluidExtractionRecipes = new GT_Recipe_Map( - new HashSet<>(15000), - "gt.recipe.fluidextractor", - "Fluid Extractor", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "FluidExtractor"), - 1, - 1, - 1, - 0, - 1, - E, - 1, - E, - true, - true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_CENTRIFUGE) - .setRecipeConfigFile("fluidextractor", FIRST_ITEM_INPUT) - .setRecipeSpecialHandler(r -> { - if (ArrayUtils.isNotEmpty(r.mFluidInputs)) { - if (Materials.PhasedGold.getMolten(1) - .isFluidEqual(r.mFluidInputs[0])) - r.mFluidInputs = new FluidStack[] { - Materials.VibrantAlloy.getMolten(r.mFluidInputs[0].amount) }; - else if (Materials.PhasedIron.getMolten(1) - .isFluidEqual(r.mFluidInputs[0])) - r.mFluidInputs = new FluidStack[] { - Materials.PulsatingIron.getMolten(r.mFluidInputs[0].amount) }; - } - }) - .setProgressBar(GT_UITextures.PROGRESSBAR_EXTRACT, ProgressBar.Direction.RIGHT); + new HashSet<>(15000), + "gt.recipe.fluidextractor", + "Fluid Extractor", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "FluidExtractor"), + 1, + 1, + 1, + 0, + 1, + E, + 1, + E, + true, + true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_CENTRIFUGE) + .setRecipeConfigFile("fluidextractor", FIRST_ITEM_INPUT) + .setRecipeSpecialHandler(r -> { + if (ArrayUtils.isNotEmpty(r.mFluidInputs)) { + if (Materials.PhasedGold.getMolten(1) + .isFluidEqual(r.mFluidInputs[0])) + r.mFluidInputs = new FluidStack[] { + Materials.VibrantAlloy.getMolten(r.mFluidInputs[0].amount) }; + else if (Materials.PhasedIron.getMolten(1) + .isFluidEqual(r.mFluidInputs[0])) + r.mFluidInputs = new FluidStack[] { + Materials.PulsatingIron.getMolten(r.mFluidInputs[0].amount) }; + } + }) + .setProgressBar(GT_UITextures.PROGRESSBAR_EXTRACT, ProgressBar.Direction.RIGHT); public static final GT_Recipe_Map sBoxinatorRecipes = new GT_Recipe_Map( - new HashSet<>(2500), - "gt.recipe.packager", - "Packager", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Packager"), - 2, - 1, - 2, - 0, - 1, - E, - 1, - E, - true, - true).setSlotOverlay(false, false, false, GT_UITextures.OVERLAY_SLOT_BOX) - .setRecipeConfigFile("boxing", FIRST_ITEM_OUTPUT) - .setSlotOverlay(false, true, GT_UITextures.OVERLAY_SLOT_BOXED) - .setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); + new HashSet<>(2500), + "gt.recipe.packager", + "Packager", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Packager"), + 2, + 1, + 2, + 0, + 1, + E, + 1, + E, + true, + true).setSlotOverlay(false, false, false, GT_UITextures.OVERLAY_SLOT_BOX) + .setRecipeConfigFile("boxing", FIRST_ITEM_OUTPUT) + .setSlotOverlay(false, true, GT_UITextures.OVERLAY_SLOT_BOXED) + .setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); public static final GT_Recipe_Map sUnboxinatorRecipes = new GT_Recipe_Map_Unboxinator( - new HashSet<>(2500), - "gt.recipe.unpackager", - "Unpackager", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Unpackager"), - 1, - 2, - 1, - 0, - 1, - E, - 1, - E, - true, - true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_BOXED) - .setRecipeConfigFile("unboxing", FIRST_ITEM_OUTPUT) - .setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); + new HashSet<>(2500), + "gt.recipe.unpackager", + "Unpackager", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Unpackager"), + 1, + 2, + 1, + 0, + 1, + E, + 1, + E, + true, + true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_BOXED) + .setRecipeConfigFile("unboxing", FIRST_ITEM_OUTPUT) + .setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); /** * Usually, but not always, you should use {@link GT_RecipeConstants#Fusion} instead. */ public static final GT_Recipe_Map sFusionRecipes = new GT_Recipe_Map_FluidOnly( - new HashSet<>(50), - "gt.recipe.fusionreactor", - "Fusion Reactor", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "FusionReactor"), - 0, - 0, - 0, - 2, - 1, - "Start: ", - 1, - " EU", - true, - true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT) - .useComparatorForNEI(true) - .setUsualFluidInputCount(2) - .setRecipeConfigFile("fusion", FIRST_FLUID_OUTPUT) - .setDisableOptimize(true) - .setNEISpecialInfoFormatter(FusionSpecialValueFormatter.INSTANCE); + new HashSet<>(50), + "gt.recipe.fusionreactor", + "Fusion Reactor", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "FusionReactor"), + 0, + 0, + 0, + 2, + 1, + "Start: ", + 1, + " EU", + true, + true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT) + .useComparatorForNEI(true) + .setUsualFluidInputCount(2) + .setRecipeConfigFile("fusion", FIRST_FLUID_OUTPUT) + .setDisableOptimize(true) + .setNEISpecialInfoFormatter(FusionSpecialValueFormatter.INSTANCE); /** * Usually, but not always, you should use {@link GT_RecipeConstants#Fusion} instead. */ public static final GT_Recipe_Map sComplexFusionRecipes = new GT_Recipe_Map_ComplexFusion( - new HashSet<>(50), - "gt.recipe.complexfusionreactor", - "Complex Fusion Reactor", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "ComplexFusionReactor"), - 3, - 0, - 0, - 2, - 1, - "Start: ", - 1, - " EU", - true, - true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT) - .setUsualFluidInputCount(16) - .setUsualFluidOutputCount(16) - .setNEITransferRect(new Rectangle(79, 34, 18, 18)) - .setLogoPos(80, 61) - .setNEISpecialInfoFormatter(FusionSpecialValueFormatter.INSTANCE) - .setDisableOptimize(true); + new HashSet<>(50), + "gt.recipe.complexfusionreactor", + "Complex Fusion Reactor", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "ComplexFusionReactor"), + 3, + 0, + 0, + 2, + 1, + "Start: ", + 1, + " EU", + true, + true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT) + .setUsualFluidInputCount(16) + .setUsualFluidOutputCount(16) + .setNEITransferRect(new Rectangle(79, 34, 18, 18)) + .setLogoPos(80, 61) + .setNEISpecialInfoFormatter(FusionSpecialValueFormatter.INSTANCE) + .setDisableOptimize(true); public static final GT_Recipe_Map sCentrifugeRecipes = new GT_Recipe_Map( - new HashSet<>(1200), - "gt.recipe.centrifuge", - "Centrifuge", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Centrifuge"), - 2, - 6, - 0, - 0, - 1, - E, - 1, - E, - true, - true).setSlotOverlay(false, false, true, GT_UITextures.OVERLAY_SLOT_CENTRIFUGE) - .setRecipeConfigFile("centrifuge", FIRST_ITEM_OR_FLUID_INPUT) - .setSlotOverlay(false, false, false, GT_UITextures.OVERLAY_SLOT_CANISTER) - .setSlotOverlay(true, false, GT_UITextures.OVERLAY_SLOT_CENTRIFUGE_FLUID) - .setProgressBar(GT_UITextures.PROGRESSBAR_EXTRACT, ProgressBar.Direction.RIGHT); + new HashSet<>(1200), + "gt.recipe.centrifuge", + "Centrifuge", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Centrifuge"), + 2, + 6, + 0, + 0, + 1, + E, + 1, + E, + true, + true).setSlotOverlay(false, false, true, GT_UITextures.OVERLAY_SLOT_CENTRIFUGE) + .setRecipeConfigFile("centrifuge", FIRST_ITEM_OR_FLUID_INPUT) + .setSlotOverlay(false, false, false, GT_UITextures.OVERLAY_SLOT_CANISTER) + .setSlotOverlay(true, false, GT_UITextures.OVERLAY_SLOT_CENTRIFUGE_FLUID) + .setProgressBar(GT_UITextures.PROGRESSBAR_EXTRACT, ProgressBar.Direction.RIGHT); public static final GT_Recipe_Map sElectrolyzerRecipes = new GT_Recipe_Map( - new HashSet<>(300), - "gt.recipe.electrolyzer", - "Electrolyzer", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Electrolyzer"), - 2, - 6, - 0, - 0, - 1, - E, - 1, - E, - true, - true).setSlotOverlay(false, false, true, GT_UITextures.OVERLAY_SLOT_CHARGER) - .setRecipeConfigFile("electrolyzer", FIRST_ITEM_OR_FLUID_INPUT) - .setSlotOverlay(false, false, false, GT_UITextures.OVERLAY_SLOT_CANISTER) - .setSlotOverlay(true, false, GT_UITextures.OVERLAY_SLOT_CHARGER_FLUID) - .setProgressBar(GT_UITextures.PROGRESSBAR_EXTRACT, ProgressBar.Direction.RIGHT); + new HashSet<>(300), + "gt.recipe.electrolyzer", + "Electrolyzer", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Electrolyzer"), + 2, + 6, + 0, + 0, + 1, + E, + 1, + E, + true, + true).setSlotOverlay(false, false, true, GT_UITextures.OVERLAY_SLOT_CHARGER) + .setRecipeConfigFile("electrolyzer", FIRST_ITEM_OR_FLUID_INPUT) + .setSlotOverlay(false, false, false, GT_UITextures.OVERLAY_SLOT_CANISTER) + .setSlotOverlay(true, false, GT_UITextures.OVERLAY_SLOT_CHARGER_FLUID) + .setProgressBar(GT_UITextures.PROGRESSBAR_EXTRACT, ProgressBar.Direction.RIGHT); /** * Use {@link GT_RecipeConstants#COIL_HEAT} as heat level. */ public static final GT_Recipe_Map sBlastRecipes = new GT_Recipe_Map( - new HashSet<>(800), - "gt.recipe.blastfurnace", - "Blast Furnace", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), - 6, - 6, - 1, - 0, - 1, - "Heat Capacity: ", - 1, - " K", - false, - true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT) - .setRecipeConfigFile("blastfurnace", FIRST_ITEM_INPUT) - .setNEISpecialInfoFormatter(HeatingCoilSpecialValueFormatter.INSTANCE); + new HashSet<>(800), + "gt.recipe.blastfurnace", + "Blast Furnace", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), + 6, + 6, + 1, + 0, + 1, + "Heat Capacity: ", + 1, + " K", + false, + true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT) + .setRecipeConfigFile("blastfurnace", FIRST_ITEM_INPUT) + .setNEISpecialInfoFormatter(HeatingCoilSpecialValueFormatter.INSTANCE); /** * Use {@link GT_RecipeConstants#COIL_HEAT} as heat level. */ public static final GT_Recipe_Map sPlasmaForgeRecipes = new GT_Recipe_Map_LargeNEI( - new HashSet<>(20), - "gt.recipe.plasmaforge", - "DTPF", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "PlasmaForge"), - 9, - 9, - 0, - 0, - 1, - "Heat Capacity: ", - 1, - " K", - false, - true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT) - .setUsualFluidInputCount(9) - .setUsualFluidOutputCount(9) - .setDisableOptimize(true) - .setNEISpecialInfoFormatter(HeatingCoilSpecialValueFormatter.INSTANCE); + new HashSet<>(20), + "gt.recipe.plasmaforge", + "DTPF", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "PlasmaForge"), + 9, + 9, + 0, + 0, + 1, + "Heat Capacity: ", + 1, + " K", + false, + true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT) + .setUsualFluidInputCount(9) + .setUsualFluidOutputCount(9) + .setDisableOptimize(true) + .setNEISpecialInfoFormatter(HeatingCoilSpecialValueFormatter.INSTANCE); public static final GT_Recipe_Map sTranscendentPlasmaMixerRecipes = new TranscendentPlasmaMixerRecipeMap( - new HashSet<>(20), - "gt.recipe.transcendentplasmamixerrecipes", - "Transcendent Plasma Mixer", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "PlasmaForge"), - 1, - 0, - 0, - 0, - 1, - "", - 0, - "", - false, - true).setDisableOptimize(true); + new HashSet<>(20), + "gt.recipe.transcendentplasmamixerrecipes", + "Transcendent Plasma Mixer", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "PlasmaForge"), + 1, + 0, + 0, + 0, + 1, + "", + 0, + "", + false, + true).setDisableOptimize(true); public static class GT_FakeSpaceProjectRecipe extends GT_Recipe { public final String projectName; public GT_FakeSpaceProjectRecipe(boolean aOptimize, ItemStack[] aInputs, FluidStack[] aFluidInputs, - int aDuration, int aEUt, int aSpecialValue, String projectName) { + int aDuration, int aEUt, int aSpecialValue, String projectName) { super(aOptimize, aInputs, null, null, null, aFluidInputs, null, aDuration, aEUt, aSpecialValue); this.projectName = projectName; } } public static final GT_Recipe_Map sFakeSpaceProjectRecipes = new GT_Recipe_Map( - new HashSet<>(20), - "gt.recipe.fakespaceprojects", - "Space Projects", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), - 12, - 0, - 0, - 0, - 1, - translateToLocal("gt.specialvalue.stages") + " ", - 1, - "", - false, - true) { + new HashSet<>(20), + "gt.recipe.fakespaceprojects", + "Space Projects", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), + 12, + 0, + 0, + 0, + 1, + translateToLocal("gt.specialvalue.stages") + " ", + 1, + "", + false, + true) { IDrawable projectTexture; @Override public ModularWindow.Builder createNEITemplate(IItemHandlerModifiable itemInputsInventory, - IItemHandlerModifiable itemOutputsInventory, IItemHandlerModifiable specialSlotInventory, - IItemHandlerModifiable fluidInputsInventory, IItemHandlerModifiable fluidOutputsInventory, - Supplier progressSupplier, Pos2d windowOffset) { + IItemHandlerModifiable itemOutputsInventory, IItemHandlerModifiable specialSlotInventory, + IItemHandlerModifiable fluidInputsInventory, IItemHandlerModifiable fluidOutputsInventory, + Supplier progressSupplier, Pos2d windowOffset) { ModularWindow.Builder builder = super.createNEITemplate( - itemInputsInventory, - itemOutputsInventory, - specialSlotInventory, - fluidInputsInventory, - fluidOutputsInventory, - progressSupplier, - windowOffset); + itemInputsInventory, + itemOutputsInventory, + specialSlotInventory, + fluidInputsInventory, + fluidOutputsInventory, + progressSupplier, + windowOffset); addRecipeSpecificDrawable( - builder, - windowOffset, - () -> projectTexture, - new Pos2d(124, 28), - new Size(18, 18)); + builder, + windowOffset, + () -> projectTexture, + new Pos2d(124, 28), + new Size(18, 18)); return builder; } @@ -1990,7 +1982,7 @@ public class GT_Recipe implements Comparable { @Override protected List handleNEIItemInputTooltip(List currentTip, - GT_NEI_DefaultHandler.FixedPositionedStack pStack) { + GT_NEI_DefaultHandler.FixedPositionedStack pStack) { super.handleNEIItemOutputTooltip(currentTip, pStack); if (pStack.item != null && pStack.item.getItem() instanceof GT_FluidDisplayItem) return currentTip; currentTip.add(GRAY + translateToLocal("Item Count: ") + formatNumbers(pStack.realStackSize)); @@ -2001,7 +1993,7 @@ public class GT_Recipe implements Comparable { public void drawNEIOverlays(GT_NEI_DefaultHandler.CachedDefaultRecipe neiCachedRecipe) { for (PositionedStack stack : neiCachedRecipe.mInputs) { if (stack instanceof GT_NEI_DefaultHandler.FixedPositionedStack && stack.item != null - && !(stack.item.getItem() instanceof GT_FluidDisplayItem)) { + && !(stack.item.getItem() instanceof GT_FluidDisplayItem)) { int stackSize = ((GT_NEI_DefaultHandler.FixedPositionedStack) stack).realStackSize; String displayString; if (stack.item.stackSize > 9999) { @@ -2013,86 +2005,79 @@ public class GT_Recipe implements Comparable { } } if (neiCachedRecipe.mRecipe instanceof GT_FakeSpaceProjectRecipe) { - ISpaceProject project = SpaceProjectManager.getProject( - ((GT_FakeSpaceProjectRecipe) neiCachedRecipe.mRecipe).projectName); + ISpaceProject project = SpaceProjectManager + .getProject(((GT_FakeSpaceProjectRecipe) neiCachedRecipe.mRecipe).projectName); if (project != null) { projectTexture = project.getTexture(); - GuiDraw.drawStringC( - EnumChatFormatting.BOLD + project.getLocalizedName(), - 85, - 0, - 0x404040, - false); + GuiDraw + .drawStringC(EnumChatFormatting.BOLD + project.getLocalizedName(), 85, 0, 0x404040, false); } } } @Override public void addProgressBarUI(ModularWindow.Builder builder, Supplier progressSupplier, - Pos2d windowOffset) { + Pos2d windowOffset) { int bar1Width = 17; int bar2Width = 18; builder.widget( - new ProgressBar().setTexture(GT_UITextures.PROGRESSBAR_ASSEMBLY_LINE_1, 17) - .setDirection(ProgressBar.Direction.RIGHT) - .setProgress( - () -> progressSupplier.get() - * ((float) (bar1Width + bar2Width) / bar1Width)) - .setSynced(false, false) - .setPos(new Pos2d(70, 28).add(windowOffset)) - .setSize(bar1Width, 72)); + new ProgressBar().setTexture(GT_UITextures.PROGRESSBAR_ASSEMBLY_LINE_1, 17) + .setDirection(ProgressBar.Direction.RIGHT) + .setProgress(() -> progressSupplier.get() * ((float) (bar1Width + bar2Width) / bar1Width)) + .setSynced(false, false) + .setPos(new Pos2d(70, 28).add(windowOffset)) + .setSize(bar1Width, 72)); builder.widget( - new ProgressBar().setTexture(GT_UITextures.PROGRESSBAR_ASSEMBLY_LINE_2, 18) - .setDirection(ProgressBar.Direction.RIGHT) - .setProgress( - () -> (progressSupplier.get() - - ((float) bar1Width / (bar1Width + bar2Width))) - * ((float) (bar1Width + bar2Width) / bar2Width)) - .setSynced(false, false) - .setPos(new Pos2d(106, 28).add(windowOffset)) - .setSize(bar2Width, 72)); + new ProgressBar().setTexture(GT_UITextures.PROGRESSBAR_ASSEMBLY_LINE_2, 18) + .setDirection(ProgressBar.Direction.RIGHT) + .setProgress( + () -> (progressSupplier.get() - ((float) bar1Width / (bar1Width + bar2Width))) + * ((float) (bar1Width + bar2Width) / bar2Width)) + .setSynced(false, false) + .setPos(new Pos2d(106, 28).add(windowOffset)) + .setSize(bar2Width, 72)); } }.useModularUI(true) - .setRenderRealStackSizes(false) - .setUsualFluidInputCount(4) - .setNEIBackgroundOffset(2, 23) - .setLogoPos(152, 83) - .setDisableOptimize(true); + .setRenderRealStackSizes(false) + .setUsualFluidInputCount(4) + .setNEIBackgroundOffset(2, 23) + .setLogoPos(152, 83) + .setDisableOptimize(true); public static class TranscendentPlasmaMixerRecipeMap extends GT_Recipe_Map { public TranscendentPlasmaMixerRecipeMap(Collection aRecipeList, String aUnlocalizedName, - String aLocalName, String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, - int aMinimalInputItems, int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, - int aNEISpecialValueMultiplier, String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, - boolean aNEIAllowed) { + String aLocalName, String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, + int aMinimalInputItems, int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, + int aNEISpecialValueMultiplier, String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, + boolean aNEIAllowed) { super( - aRecipeList, - aUnlocalizedName, - aLocalName, - aNEIName, - aNEIGUIPath, - aUsualInputCount, - aUsualOutputCount, - aMinimalInputItems, - aMinimalInputFluids, - aAmperage, - aNEISpecialValuePre, - aNEISpecialValueMultiplier, - aNEISpecialValuePost, - aShowVoltageAmperageInNEI, - aNEIAllowed); - useModularUI(true); - setUsualFluidInputCount(16); - setUsualFluidOutputCount(1); - setProgressBarPos(86, 44); - setLogoPos(87, 81); - setNEIBackgroundSize(172, 100); - } - - @Override - public List getItemInputPositions(int itemInputCount) { - return UIHelper.getGridPositions(itemInputCount, 60, 8, 1); + aRecipeList, + aUnlocalizedName, + aLocalName, + aNEIName, + aNEIGUIPath, + aUsualInputCount, + aUsualOutputCount, + aMinimalInputItems, + aMinimalInputFluids, + aAmperage, + aNEISpecialValuePre, + aNEISpecialValueMultiplier, + aNEISpecialValuePost, + aShowVoltageAmperageInNEI, + aNEIAllowed); + useModularUI(true); + setUsualFluidInputCount(16); + setUsualFluidOutputCount(1); + setProgressBarPos(86, 44); + setLogoPos(87, 81); + setNEIBackgroundSize(172, 100); + } + + @Override + public List getItemInputPositions(int itemInputCount) { + return UIHelper.getGridPositions(itemInputCount, 60, 8, 1); } @Override @@ -2110,8 +2095,8 @@ public class GT_Recipe implements Comparable { // These look odd because recipeInfo.recipe.mEUt is actually the EU per litre of fluid processed, not // the EU/t. drawNEIText( - recipeInfo, - GT_Utility.trans("152", "Total: ") + formatNumbers(1000L * recipeInfo.recipe.mEUt) + " EU"); + recipeInfo, + GT_Utility.trans("152", "Total: ") + formatNumbers(1000L * recipeInfo.recipe.mEUt) + " EU"); // 1000 / (20 ticks * 5 seconds) = 10L/t. 10L/t * x EU/L = 10 * x EU/t. drawNEIText(recipeInfo, "Average: " + formatNumbers(10L * recipeInfo.recipe.mEUt) + " EU/t"); } @@ -2121,247 +2106,236 @@ public class GT_Recipe implements Comparable { * Uses {@link GT_RecipeConstants#ADDITIVE_AMOUNT} for coal/charcoal amount. */ public static final GT_Recipe_Map sPrimitiveBlastRecipes = new GT_Recipe_Map( - new HashSet<>(200), - "gt.recipe.primitiveblastfurnace", - "Primitive Blast Furnace", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), - 3, - 3, - 1, - 0, - 1, - E, - 1, - E, - false, - true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT) - .setRecipeEmitter(builder -> { - Optional rr = builder.validateInputCount(1, 2) - .validateOutputCount(1, 2) - .validateNoInputFluid() - .validateNoOutputFluid() - .noOptimize() - .build(); - if (!rr.isPresent()) return Collections.emptyList(); - ItemStack aInput1 = builder.getItemInputBasic(0); - ItemStack aInput2 = builder.getItemInputBasic(1); - ItemStack aOutput1 = builder.getItemOutput(0); - ItemStack aOutput2 = builder.getItemOutput(1); - if ((aInput1 == null && aInput2 == null) || (aOutput1 == null && aOutput2 == null)) - return Collections.emptyList(); - int aCoalAmount = builder.getMetadata(ADDITIVE_AMOUNT); - if (aCoalAmount <= 0) return Collections.emptyList(); - GT_RecipeTemplate coll = asTemplate(rr.get()); - for (Materials coal : new Materials[] { Materials.Coal, Materials.Charcoal }) { - coll.derive() - .setInputs(aInput1, aInput2, coal.getGems(aCoalAmount)) - .setOutputs(aOutput1, aOutput2, Materials.DarkAsh.getDustTiny(aCoalAmount)); - coll.derive() - .setInputs(aInput1, aInput2, coal.getDust(aCoalAmount)) - .setOutputs(aOutput1, aOutput2, Materials.DarkAsh.getDustTiny(aCoalAmount)); - } - int aDuration = builder.duration; - if (Railcraft.isModLoaded()) { - coll.derive() - .setInputs(aInput1, aInput2, RailcraftToolItems.getCoalCoke(aCoalAmount / 2)) - .setOutputs(aOutput1, aOutput2, Materials.Ash.getDustTiny(aCoalAmount / 2)) - .setDuration(aDuration * 2 / 3); - } - if (GTPlusPlus.isModLoaded()) { - ItemStack cactusCoke = GT_ModHandler.getModItem( - GTPlusPlus.ID, - "itemCactusCoke", - aCoalAmount * 2L); - ItemStack sugarCoke = GT_ModHandler.getModItem( - GTPlusPlus.ID, - "itemSugarCoke", - aCoalAmount * 2L); - coll.derive() - .setInputs(aInput1, aInput2, cactusCoke) - .setOutputs(aOutput1, aOutput2, Materials.Ash.getDustTiny(aCoalAmount * 2)) - .setDuration(aDuration * 2 / 3); - coll.derive() - .setInputs(aInput1, aInput2, sugarCoke) - .setOutputs(aOutput1, aOutput2, Materials.Ash.getDustTiny(aCoalAmount * 2)) - .setDuration(aDuration * 2 / 3); - } - if ((aInput1 == null || aInput1.stackSize <= 6) && (aInput2 == null || aInput2.stackSize <= 6) - && (aOutput1 == null || aOutput1.stackSize <= 6) - && (aOutput2 == null || aOutput2.stackSize <= 6)) { - // we don't use GT_Utility.mul() here. It does not have the truncating we need here. - aInput1 = GT_Utility.multiplyStack(10L, aInput1); - aInput2 = GT_Utility.multiplyStack(10L, aInput2); - aOutput1 = GT_Utility.multiplyStack(10L, aOutput1); - aOutput2 = GT_Utility.multiplyStack(10L, aOutput2); - for (Materials coal : new Materials[] { Materials.Coal, Materials.Charcoal }) { - coll.derive() - .setInputs(aInput1, aInput2, coal.getBlocks(aCoalAmount)) - .setOutputs(aOutput1, aOutput2, Materials.DarkAsh.getDust(aCoalAmount)) - .setDuration(aDuration * 10); - coll.derive() - .setInputs(aInput1, aInput2, coal.getBlocks(aCoalAmount)) - .setOutputs(aOutput1, aOutput2, Materials.DarkAsh.getDust(aCoalAmount)) - .setDuration(aDuration * 10); - } - if (Railcraft.isModLoaded()) { - coll.derive() - .setInputs(aInput1, aInput2, EnumCube.COKE_BLOCK.getItem(aCoalAmount / 2)) - .setOutputs(aOutput1, aOutput2, Materials.Ash.getDust(aCoalAmount / 2)) - .setDuration(aDuration * 20 / 3); - } - } - return coll.getAll(); - }) - .setRecipeConfigFile("primitiveblastfurnace", FIRST_ITEM_INPUT); + new HashSet<>(200), + "gt.recipe.primitiveblastfurnace", + "Primitive Blast Furnace", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), + 3, + 3, + 1, + 0, + 1, + E, + 1, + E, + false, + true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT) + .setRecipeEmitter(builder -> { + Optional rr = builder.validateInputCount(1, 2) + .validateOutputCount(1, 2) + .validateNoInputFluid() + .validateNoOutputFluid() + .noOptimize() + .build(); + if (!rr.isPresent()) return Collections.emptyList(); + ItemStack aInput1 = builder.getItemInputBasic(0); + ItemStack aInput2 = builder.getItemInputBasic(1); + ItemStack aOutput1 = builder.getItemOutput(0); + ItemStack aOutput2 = builder.getItemOutput(1); + if ((aInput1 == null && aInput2 == null) || (aOutput1 == null && aOutput2 == null)) + return Collections.emptyList(); + int aCoalAmount = builder.getMetadata(ADDITIVE_AMOUNT); + if (aCoalAmount <= 0) return Collections.emptyList(); + GT_RecipeTemplate coll = asTemplate(rr.get()); + for (Materials coal : new Materials[] { Materials.Coal, Materials.Charcoal }) { + coll.derive() + .setInputs(aInput1, aInput2, coal.getGems(aCoalAmount)) + .setOutputs(aOutput1, aOutput2, Materials.DarkAsh.getDustTiny(aCoalAmount)); + coll.derive() + .setInputs(aInput1, aInput2, coal.getDust(aCoalAmount)) + .setOutputs(aOutput1, aOutput2, Materials.DarkAsh.getDustTiny(aCoalAmount)); + } + int aDuration = builder.duration; + if (Railcraft.isModLoaded()) { + coll.derive() + .setInputs(aInput1, aInput2, RailcraftToolItems.getCoalCoke(aCoalAmount / 2)) + .setOutputs(aOutput1, aOutput2, Materials.Ash.getDustTiny(aCoalAmount / 2)) + .setDuration(aDuration * 2 / 3); + } + if (GTPlusPlus.isModLoaded()) { + ItemStack cactusCoke = GT_ModHandler + .getModItem(GTPlusPlus.ID, "itemCactusCoke", aCoalAmount * 2L); + ItemStack sugarCoke = GT_ModHandler + .getModItem(GTPlusPlus.ID, "itemSugarCoke", aCoalAmount * 2L); + coll.derive() + .setInputs(aInput1, aInput2, cactusCoke) + .setOutputs(aOutput1, aOutput2, Materials.Ash.getDustTiny(aCoalAmount * 2)) + .setDuration(aDuration * 2 / 3); + coll.derive() + .setInputs(aInput1, aInput2, sugarCoke) + .setOutputs(aOutput1, aOutput2, Materials.Ash.getDustTiny(aCoalAmount * 2)) + .setDuration(aDuration * 2 / 3); + } + if ((aInput1 == null || aInput1.stackSize <= 6) && (aInput2 == null || aInput2.stackSize <= 6) + && (aOutput1 == null || aOutput1.stackSize <= 6) + && (aOutput2 == null || aOutput2.stackSize <= 6)) { + // we don't use GT_Utility.mul() here. It does not have the truncating we need here. + aInput1 = GT_Utility.multiplyStack(10L, aInput1); + aInput2 = GT_Utility.multiplyStack(10L, aInput2); + aOutput1 = GT_Utility.multiplyStack(10L, aOutput1); + aOutput2 = GT_Utility.multiplyStack(10L, aOutput2); + for (Materials coal : new Materials[] { Materials.Coal, Materials.Charcoal }) { + coll.derive() + .setInputs(aInput1, aInput2, coal.getBlocks(aCoalAmount)) + .setOutputs(aOutput1, aOutput2, Materials.DarkAsh.getDust(aCoalAmount)) + .setDuration(aDuration * 10); + coll.derive() + .setInputs(aInput1, aInput2, coal.getBlocks(aCoalAmount)) + .setOutputs(aOutput1, aOutput2, Materials.DarkAsh.getDust(aCoalAmount)) + .setDuration(aDuration * 10); + } + if (Railcraft.isModLoaded()) { + coll.derive() + .setInputs(aInput1, aInput2, EnumCube.COKE_BLOCK.getItem(aCoalAmount / 2)) + .setOutputs(aOutput1, aOutput2, Materials.Ash.getDust(aCoalAmount / 2)) + .setDuration(aDuration * 20 / 3); + } + } + return coll.getAll(); + }) + .setRecipeConfigFile("primitiveblastfurnace", FIRST_ITEM_INPUT); /** * Uses {@link GT_RecipeConstants#ADDITIVE_AMOUNT} for TNT/ITNT/... amount. Value is truncated to [0, 64] */ public static final GT_Recipe_Map sImplosionRecipes = new GT_Recipe_Map( - new HashSet<>(900), - "gt.recipe.implosioncompressor", - "Implosion Compressor", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), - 2, - 2, - 2, - 0, - 1, - E, - 1, - E, - true, - true).setSlotOverlay(false, false, true, GT_UITextures.OVERLAY_SLOT_IMPLOSION) - .setSlotOverlay(false, false, false, GT_UITextures.OVERLAY_SLOT_EXPLOSIVE) - .setRecipeConfigFile("implosion", FIRST_ITEM_INPUT) - .setRecipeEmitter(b -> { - switch (b.getItemInputsBasic().length) { - case 0: - return Collections.emptyList(); - case 1: - break; - default: - return b.build() - .map(Collections::singletonList) - .orElse(Collections.emptyList()); - } - Optional t = b.noOptimize() - .duration(20) - .eut(30) - .validateInputCount(1, 1) - .validateOutputCount(1, 1) - .build(); - if (!t.isPresent()) return Collections.emptyList(); - ItemStack input = b.getItemInputBasic(0); - GT_RecipeTemplate coll = asTemplate(t.get()); - int tExplosives = Math.min(b.getMetadata(ADDITIVE_AMOUNT), 64); - int tGunpowder = tExplosives << 1; // Worst - int tDynamite = Math.max(1, tExplosives >> 1); // good - int tTNT = tExplosives; // Slightly better - int tITNT = Math.max(1, tExplosives >> 2); // the best - if (tGunpowder < 65) coll.derive() - .setInputs(input, ItemList.Block_Powderbarrel.get(tGunpowder)); - if (tDynamite < 17) coll.derive() - .setInputs( - input, - GT_ModHandler.getIC2Item("dynamite", tDynamite, null)); - coll.derive() - .setInputs(input, new ItemStack(Blocks.tnt, tTNT)); - coll.derive() - .setInputs(input, GT_ModHandler.getIC2Item("industrialTnt", tITNT, null)); - return coll.getAll(); - }) - .setDisableOptimize(true) - .setProgressBar(GT_UITextures.PROGRESSBAR_COMPRESS, ProgressBar.Direction.RIGHT); + new HashSet<>(900), + "gt.recipe.implosioncompressor", + "Implosion Compressor", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), + 2, + 2, + 2, + 0, + 1, + E, + 1, + E, + true, + true).setSlotOverlay(false, false, true, GT_UITextures.OVERLAY_SLOT_IMPLOSION) + .setSlotOverlay(false, false, false, GT_UITextures.OVERLAY_SLOT_EXPLOSIVE) + .setRecipeConfigFile("implosion", FIRST_ITEM_INPUT) + .setRecipeEmitter(b -> { + switch (b.getItemInputsBasic().length) { + case 0: + return Collections.emptyList(); + case 1: + break; + default: + return b.build() + .map(Collections::singletonList) + .orElse(Collections.emptyList()); + } + Optional t = b.noOptimize() + .duration(20) + .eut(30) + .validateInputCount(1, 1) + .validateOutputCount(1, 1) + .build(); + if (!t.isPresent()) return Collections.emptyList(); + ItemStack input = b.getItemInputBasic(0); + GT_RecipeTemplate coll = asTemplate(t.get()); + int tExplosives = Math.min(b.getMetadata(ADDITIVE_AMOUNT), 64); + int tGunpowder = tExplosives << 1; // Worst + int tDynamite = Math.max(1, tExplosives >> 1); // good + int tTNT = tExplosives; // Slightly better + int tITNT = Math.max(1, tExplosives >> 2); // the best + if (tGunpowder < 65) coll.derive() + .setInputs(input, ItemList.Block_Powderbarrel.get(tGunpowder)); + if (tDynamite < 17) coll.derive() + .setInputs(input, GT_ModHandler.getIC2Item("dynamite", tDynamite, null)); + coll.derive() + .setInputs(input, new ItemStack(Blocks.tnt, tTNT)); + coll.derive() + .setInputs(input, GT_ModHandler.getIC2Item("industrialTnt", tITNT, null)); + return coll.getAll(); + }) + .setDisableOptimize(true) + .setProgressBar(GT_UITextures.PROGRESSBAR_COMPRESS, ProgressBar.Direction.RIGHT); public static final GT_Recipe_Map sVacuumRecipes = new GT_Recipe_Map( - new HashSet<>(305), - "gt.recipe.vacuumfreezer", - "Vacuum Freezer", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), - 1, - 1, - 0, - 0, - 1, - E, - 1, - E, - false, - true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT) - .setRecipeConfigFile("vacuumfreezer", FIRST_ITEM_INPUT) - .setRecipeEmitter(b -> { - b.noOptimize(); - FluidStack in, out; - if (isArrayOfLength(b.getItemInputsBasic(), 1) && isArrayOfLength(b.getItemOutputs(), 1) - && isArrayEmptyOrNull(b.getFluidInputs()) - && isArrayEmptyOrNull(b.getFluidOutputs()) - && (in = GT_Utility.getFluidForFilledItem(b.getItemInputBasic(0), true)) != null - && (out = GT_Utility.getFluidForFilledItem(b.getItemOutput(0), true)) != null) { - return Arrays.asList( - b.build() - .get(), - b.fluidInputs(in) - .fluidOutputs(out) - .noItemInputs() - .noItemOutputs() - .build() - .get()); - } - return buildOrEmpty(b); - }) - .setUsualFluidInputCount(2); + new HashSet<>(305), + "gt.recipe.vacuumfreezer", + "Vacuum Freezer", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), + 1, + 1, + 0, + 0, + 1, + E, + 1, + E, + false, + true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT) + .setRecipeConfigFile("vacuumfreezer", FIRST_ITEM_INPUT) + .setRecipeEmitter(b -> { + b.noOptimize(); + FluidStack in, out; + if (isArrayOfLength(b.getItemInputsBasic(), 1) && isArrayOfLength(b.getItemOutputs(), 1) + && isArrayEmptyOrNull(b.getFluidInputs()) + && isArrayEmptyOrNull(b.getFluidOutputs()) + && (in = GT_Utility.getFluidForFilledItem(b.getItemInputBasic(0), true)) != null + && (out = GT_Utility.getFluidForFilledItem(b.getItemOutput(0), true)) != null) { + return Arrays.asList( + b.build() + .get(), + b.fluidInputs(in) + .fluidOutputs(out) + .noItemInputs() + .noItemOutputs() + .build() + .get()); + } + return buildOrEmpty(b); + }) + .setUsualFluidInputCount(2); /** * using {@code .addTo(sChemicalRecipes)} will cause the recipe to be added to single block recipe map ONLY! * use {@link GT_RecipeConstants#UniversalChemical} to add to both. */ public static final GT_Recipe_Map sChemicalRecipes = new GT_Recipe_Map( - new HashSet<>(1170), - "gt.recipe.chemicalreactor", - "Chemical Reactor", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "ChemicalReactor"), - 2, - 2, - 1, - 0, - 1, - E, - 1, - E, - true, - true).setSlotOverlay(false, false, true, GT_UITextures.OVERLAY_SLOT_MOLECULAR_1) - .setSlotOverlay(false, false, false, GT_UITextures.OVERLAY_SLOT_MOLECULAR_2) - .setSlotOverlay(true, false, GT_UITextures.OVERLAY_SLOT_MOLECULAR_3) - .setSlotOverlay(false, true, GT_UITextures.OVERLAY_SLOT_VIAL_1) - .setSlotOverlay(true, true, GT_UITextures.OVERLAY_SLOT_VIAL_2) - .setRecipeConfigFile("chemicalreactor", FIRST_ITEM_OR_FLUID_OUTPUT) - .setProgressBar(GT_UITextures.PROGRESSBAR_ARROW_MULTIPLE, ProgressBar.Direction.RIGHT); + new HashSet<>(1170), + "gt.recipe.chemicalreactor", + "Chemical Reactor", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "ChemicalReactor"), + 2, + 2, + 1, + 0, + 1, + E, + 1, + E, + true, + true).setSlotOverlay(false, false, true, GT_UITextures.OVERLAY_SLOT_MOLECULAR_1) + .setSlotOverlay(false, false, false, GT_UITextures.OVERLAY_SLOT_MOLECULAR_2) + .setSlotOverlay(true, false, GT_UITextures.OVERLAY_SLOT_MOLECULAR_3) + .setSlotOverlay(false, true, GT_UITextures.OVERLAY_SLOT_VIAL_1) + .setSlotOverlay(true, true, GT_UITextures.OVERLAY_SLOT_VIAL_2) + .setRecipeConfigFile("chemicalreactor", FIRST_ITEM_OR_FLUID_OUTPUT) + .setProgressBar(GT_UITextures.PROGRESSBAR_ARROW_MULTIPLE, ProgressBar.Direction.RIGHT); /** * using {@code .addTo(sChemicalRecipes)} will cause the recipe to be added to multiblock recipe map ONLY! * use {@link GT_RecipeConstants#UniversalChemical} to add to both. */ public static final GT_Recipe_Map sMultiblockChemicalRecipes = // - new GT_Recipe_Map_LargeChemicalReactor().setProgressBar( - GT_UITextures.PROGRESSBAR_ARROW_MULTIPLE, - ProgressBar.Direction.RIGHT) - .setUsualFluidInputCount(6) - .setUsualFluidOutputCount(6) - .setDisableOptimize(true); + new GT_Recipe_Map_LargeChemicalReactor() + .setProgressBar(GT_UITextures.PROGRESSBAR_ARROW_MULTIPLE, ProgressBar.Direction.RIGHT) + .setUsualFluidInputCount(6) + .setUsualFluidOutputCount(6) + .setDisableOptimize(true); public static final GT_Recipe_Map sDistillationRecipes = // - new GT_Recipe_Map_DistillationTower().setRecipeConfigFile("distillation", FIRST_FLUIDSTACK_INPUT) - .setProgressBar( - GT_UITextures.PROGRESSBAR_ARROW_MULTIPLE, - ProgressBar.Direction.RIGHT) - .setUsualFluidOutputCount(11) - .setDisableOptimize(true); + new GT_Recipe_Map_DistillationTower().setRecipeConfigFile("distillation", FIRST_FLUIDSTACK_INPUT) + .setProgressBar(GT_UITextures.PROGRESSBAR_ARROW_MULTIPLE, ProgressBar.Direction.RIGHT) + .setUsualFluidOutputCount(11) + .setDisableOptimize(true); public static final GT_Recipe_Map_OilCracker sCrackingRecipes = (GT_Recipe_Map_OilCracker) // new GT_Recipe_Map_OilCracker().setRecipeConfigFile("cracking", FIRST_FLUIDSTACK_INPUT) - .setProgressBar( - GT_UITextures.PROGRESSBAR_ARROW_MULTIPLE, - ProgressBar.Direction.RIGHT) - .setUsualFluidInputCount(2); + .setProgressBar(GT_UITextures.PROGRESSBAR_ARROW_MULTIPLE, ProgressBar.Direction.RIGHT) + .setUsualFluidInputCount(2); /** * @deprecated Use sCrackingRecipes instead */ @@ -2369,676 +2343,672 @@ public class GT_Recipe implements Comparable { public static final GT_Recipe_Map sCrakingRecipes = sCrackingRecipes; public static final GT_Recipe_Map sPyrolyseRecipes = new GT_Recipe_Map( - new HashSet<>(150), - "gt.recipe.pyro", - "Pyrolyse Oven", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), - 2, - 1, - 1, - 0, - 1, - E, - 1, - E, - true, - true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT) - .setDisableOptimize(true) - .setRecipeConfigFile("pyrolyse", FIRST_ITEM_INPUT); + new HashSet<>(150), + "gt.recipe.pyro", + "Pyrolyse Oven", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), + 2, + 1, + 1, + 0, + 1, + E, + 1, + E, + true, + true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT) + .setDisableOptimize(true) + .setRecipeConfigFile("pyrolyse", FIRST_ITEM_INPUT); public static final GT_Recipe_Map sWiremillRecipes = new GT_Recipe_Map( - new HashSet<>(450), - "gt.recipe.wiremill", - "Wiremill", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Wiremill"), - 2, - 1, - 1, - 0, - 1, - E, - 1, - E, - true, - true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_WIREMILL) - .setRecipeConfigFile("wiremill", FIRST_ITEM_INPUT) - .setProgressBar(GT_UITextures.PROGRESSBAR_WIREMILL, ProgressBar.Direction.RIGHT); + new HashSet<>(450), + "gt.recipe.wiremill", + "Wiremill", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Wiremill"), + 2, + 1, + 1, + 0, + 1, + E, + 1, + E, + true, + true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_WIREMILL) + .setRecipeConfigFile("wiremill", FIRST_ITEM_INPUT) + .setProgressBar(GT_UITextures.PROGRESSBAR_WIREMILL, ProgressBar.Direction.RIGHT); public static final GT_Recipe_Map sBenderRecipes = new GT_Recipe_Map( - new HashSet<>(5000), - "gt.recipe.metalbender", - "Bending Machine", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Bender"), - 2, - 1, - 2, - 0, - 1, - E, - 1, - E, - true, - true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_BENDER) - .setRecipeConfigFile("bender", FIRST_ITEM_INPUT) - .setProgressBar(GT_UITextures.PROGRESSBAR_BENDING, ProgressBar.Direction.RIGHT); + new HashSet<>(5000), + "gt.recipe.metalbender", + "Bending Machine", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Bender"), + 2, + 1, + 2, + 0, + 1, + E, + 1, + E, + true, + true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_BENDER) + .setRecipeConfigFile("bender", FIRST_ITEM_INPUT) + .setProgressBar(GT_UITextures.PROGRESSBAR_BENDING, ProgressBar.Direction.RIGHT); public static final GT_Recipe_Map sAlloySmelterRecipes = new GT_Recipe_Map( - new HashSet<>(12000), - "gt.recipe.alloysmelter", - "Alloy Smelter", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "AlloySmelter"), - 2, - 1, - 2, - 0, - 1, - E, - 1, - E, - true, - true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_FURNACE) - .setRecipeEmitter(b -> { - if (Materials.Graphite.contains(b.getItemInputBasic(0))) return Collections.emptyList(); - if (GT_Utility.isArrayOfLength(b.getItemInputsBasic(), 1)) { - ItemStack aInput1 = b.getItemInputBasic(0); - if (((OrePrefixes.ingot.contains(aInput1)) || (OrePrefixes.dust.contains(aInput1)) - || (OrePrefixes.gem.contains(aInput1)))) - return Collections.emptyList(); - } - return buildOrEmpty( - b.validateNoInputFluid() - .validateNoOutputFluid() - .validateInputCount(1, 2) - .validateOutputCount(1, 1)); - }) - .setRecipeConfigFile( - "alloysmelting", - r -> GT_Config.getStackConfigName( - GT_Utility.isArrayOfLength(r.mInputs, 1) ? r.mInputs[0] : r.mOutputs[0])) - .setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT) - .setSlotOverlaySteam(false, GT_UITextures.OVERLAY_SLOT_FURNACE_STEAM) - .setProgressBarSteam(GT_UITextures.PROGRESSBAR_ARROW_STEAM); + new HashSet<>(12000), + "gt.recipe.alloysmelter", + "Alloy Smelter", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "AlloySmelter"), + 2, + 1, + 2, + 0, + 1, + E, + 1, + E, + true, + true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_FURNACE) + .setRecipeEmitter(b -> { + if (Materials.Graphite.contains(b.getItemInputBasic(0))) return Collections.emptyList(); + if (GT_Utility.isArrayOfLength(b.getItemInputsBasic(), 1)) { + ItemStack aInput1 = b.getItemInputBasic(0); + if (((OrePrefixes.ingot.contains(aInput1)) || (OrePrefixes.dust.contains(aInput1)) + || (OrePrefixes.gem.contains(aInput1)))) return Collections.emptyList(); + } + return buildOrEmpty( + b.validateNoInputFluid() + .validateNoOutputFluid() + .validateInputCount(1, 2) + .validateOutputCount(1, 1)); + }) + .setRecipeConfigFile( + "alloysmelting", + r -> GT_Config + .getStackConfigName(GT_Utility.isArrayOfLength(r.mInputs, 1) ? r.mInputs[0] : r.mOutputs[0])) + .setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT) + .setSlotOverlaySteam(false, GT_UITextures.OVERLAY_SLOT_FURNACE_STEAM) + .setProgressBarSteam(GT_UITextures.PROGRESSBAR_ARROW_STEAM); public static final GT_Recipe_Map sAssemblerRecipes = new GT_Recipe_Map_Assembler( - new HashSet<>(8200), - "gt.recipe.assembler", - "Assembler", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Assembler2"), - 9, - 1, - 1, - 0, - 1, - E, - 1, - E, - true, - true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_CIRCUIT) - .setRecipeConfigFile("assembling", FIRST_ITEM_OUTPUT) - .setProgressBar(GT_UITextures.PROGRESSBAR_ASSEMBLE, ProgressBar.Direction.RIGHT); + new HashSet<>(8200), + "gt.recipe.assembler", + "Assembler", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Assembler2"), + 9, + 1, + 1, + 0, + 1, + E, + 1, + E, + true, + true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_CIRCUIT) + .setRecipeConfigFile("assembling", FIRST_ITEM_OUTPUT) + .setProgressBar(GT_UITextures.PROGRESSBAR_ASSEMBLE, ProgressBar.Direction.RIGHT); public static final GT_Recipe_Map sCircuitAssemblerRecipes = new GT_Recipe_Map_Assembler( - new HashSet<>(605), - "gt.recipe.circuitassembler", - "Circuit Assembler", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "CircuitAssembler"), - 6, - 1, - 1, - 0, - 1, - E, - 1, - E, - true, - true).setNEIUnificateOutput(!NEICustomDiagrams.isModLoaded()) - .setRecipeConfigFile("circuitassembler", FIRST_ITEM_OUTPUT) - .setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_CIRCUIT) - .setProgressBar(GT_UITextures.PROGRESSBAR_CIRCUIT_ASSEMBLER, ProgressBar.Direction.RIGHT); + new HashSet<>(605), + "gt.recipe.circuitassembler", + "Circuit Assembler", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "CircuitAssembler"), + 6, + 1, + 1, + 0, + 1, + E, + 1, + E, + true, + true).setNEIUnificateOutput(!NEICustomDiagrams.isModLoaded()) + .setRecipeConfigFile("circuitassembler", FIRST_ITEM_OUTPUT) + .setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_CIRCUIT) + .setProgressBar(GT_UITextures.PROGRESSBAR_CIRCUIT_ASSEMBLER, ProgressBar.Direction.RIGHT); public static final GT_Recipe_Map sCannerRecipes = new GT_Recipe_Map( - new HashSet<>(900), - "gt.recipe.canner", - "Canning Machine", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Canner"), - 2, - 2, - 1, - 0, - 1, - E, - 1, - E, - true, - true).setSlotOverlay(false, false, true, GT_UITextures.OVERLAY_SLOT_CANNER) - .setRecipeConfigFile("canning", FIRST_ITEM_INPUT) - .setSlotOverlay(false, false, false, GT_UITextures.OVERLAY_SLOT_CANISTER) - .setProgressBar(GT_UITextures.PROGRESSBAR_CANNER, ProgressBar.Direction.RIGHT); + new HashSet<>(900), + "gt.recipe.canner", + "Canning Machine", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Canner"), + 2, + 2, + 1, + 0, + 1, + E, + 1, + E, + true, + true).setSlotOverlay(false, false, true, GT_UITextures.OVERLAY_SLOT_CANNER) + .setRecipeConfigFile("canning", FIRST_ITEM_INPUT) + .setSlotOverlay(false, false, false, GT_UITextures.OVERLAY_SLOT_CANISTER) + .setProgressBar(GT_UITextures.PROGRESSBAR_CANNER, ProgressBar.Direction.RIGHT); @Deprecated public static final GT_Recipe_Map sCNCRecipes = new GT_Recipe_Map( - new HashSet<>(100), - "gt.recipe.cncmachine", - "CNC Machine", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), - 2, - 1, - 2, - 1, - 1, - E, - 1, - E, - true, - true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); + new HashSet<>(100), + "gt.recipe.cncmachine", + "CNC Machine", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), + 2, + 1, + 2, + 1, + 1, + E, + 1, + E, + true, + true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); public static final GT_Recipe_Map sLatheRecipes = new GT_Recipe_Map( - new HashSet<>(1150), - "gt.recipe.lathe", - "Lathe", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Lathe"), - 1, - 2, - 1, - 0, - 1, - E, - 1, - E, - true, - true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_ROD_1) - .setSlotOverlay(false, true, true, GT_UITextures.OVERLAY_SLOT_ROD_2) - .setSlotOverlay(false, true, false, GT_UITextures.OVERLAY_SLOT_DUST) - .setRecipeConfigFile("lathe", FIRST_ITEM_INPUT) - .setProgressBar(GT_UITextures.PROGRESSBAR_LATHE, ProgressBar.Direction.RIGHT) - .addSpecialTexture(5, 18, 98, 24, GT_UITextures.PROGRESSBAR_LATHE_BASE); + new HashSet<>(1150), + "gt.recipe.lathe", + "Lathe", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Lathe"), + 1, + 2, + 1, + 0, + 1, + E, + 1, + E, + true, + true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_ROD_1) + .setSlotOverlay(false, true, true, GT_UITextures.OVERLAY_SLOT_ROD_2) + .setSlotOverlay(false, true, false, GT_UITextures.OVERLAY_SLOT_DUST) + .setRecipeConfigFile("lathe", FIRST_ITEM_INPUT) + .setProgressBar(GT_UITextures.PROGRESSBAR_LATHE, ProgressBar.Direction.RIGHT) + .addSpecialTexture(5, 18, 98, 24, GT_UITextures.PROGRESSBAR_LATHE_BASE); public static final GT_Recipe_Map sCutterRecipes = new GT_Recipe_Map( - new HashSet<>(5125), - "gt.recipe.cuttingsaw", - "Cutting Machine", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Cutter4"), - 2, - 4, - 1, - 1, - 1, - E, - 1, - E, - true, - true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_BOX) - .setSlotOverlay(false, true, true, GT_UITextures.OVERLAY_SLOT_CUTTER_SLICED) - .setSlotOverlay(false, true, false, GT_UITextures.OVERLAY_SLOT_DUST) - .setRecipeEmitter(b -> { - b.validateInputCount(1, 2) - .validateOutputCount(1, 4) - .validateNoOutputFluid(); - if (b.getFluidInputs() != null || !b.isValid()) - return buildOrEmpty(b.validateInputFluidCount(1, 1)); - int aDuration = b.getDuration(), aEUt = b.getEUt(); - Collection ret = new ArrayList<>(); - b.copy() - .fluidInputs(Materials.Water.getFluid(GT_Utility.clamp(aDuration * aEUt / 320, 4, 1000))) - .duration(aDuration * 2) - .build() - .ifPresent(ret::add); - b.copy() - .fluidInputs( - GT_ModHandler.getDistilledWater(GT_Utility.clamp(aDuration * aEUt / 426, 3, 750))) - .duration(aDuration * 2) - .build() - .ifPresent(ret::add); - b.fluidInputs(Materials.Lubricant.getFluid(GT_Utility.clamp(aDuration * aEUt / 1280, 1, 250))) - .duration(aDuration) - .build() - .ifPresent(ret::add); - return ret; - }) - .setRecipeConfigFile("cutting", FIRST_ITEM_INPUT) - .setProgressBar(GT_UITextures.PROGRESSBAR_CUT, ProgressBar.Direction.RIGHT); + new HashSet<>(5125), + "gt.recipe.cuttingsaw", + "Cutting Machine", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Cutter4"), + 2, + 4, + 1, + 1, + 1, + E, + 1, + E, + true, + true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_BOX) + .setSlotOverlay(false, true, true, GT_UITextures.OVERLAY_SLOT_CUTTER_SLICED) + .setSlotOverlay(false, true, false, GT_UITextures.OVERLAY_SLOT_DUST) + .setRecipeEmitter(b -> { + b.validateInputCount(1, 2) + .validateOutputCount(1, 4) + .validateNoOutputFluid(); + if (b.getFluidInputs() != null || !b.isValid()) + return buildOrEmpty(b.validateInputFluidCount(1, 1)); + int aDuration = b.getDuration(), aEUt = b.getEUt(); + Collection ret = new ArrayList<>(); + b.copy() + .fluidInputs(Materials.Water.getFluid(GT_Utility.clamp(aDuration * aEUt / 320, 4, 1000))) + .duration(aDuration * 2) + .build() + .ifPresent(ret::add); + b.copy() + .fluidInputs(GT_ModHandler.getDistilledWater(GT_Utility.clamp(aDuration * aEUt / 426, 3, 750))) + .duration(aDuration * 2) + .build() + .ifPresent(ret::add); + b.fluidInputs(Materials.Lubricant.getFluid(GT_Utility.clamp(aDuration * aEUt / 1280, 1, 250))) + .duration(aDuration) + .build() + .ifPresent(ret::add); + return ret; + }) + .setRecipeConfigFile("cutting", FIRST_ITEM_INPUT) + .setProgressBar(GT_UITextures.PROGRESSBAR_CUT, ProgressBar.Direction.RIGHT); public static final GT_Recipe_Map sSlicerRecipes = new GT_Recipe_Map( - new HashSet<>(20), - "gt.recipe.slicer", - "Slicing Machine", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Slicer"), - 2, - 1, - 2, - 0, - 1, - E, - 1, - E, - true, - true).setSlotOverlay(false, false, true, GT_UITextures.OVERLAY_SLOT_SQUARE) - .setSlotOverlay(false, false, false, GT_UITextures.OVERLAY_SLOT_SLICE_SHAPE) - .setSlotOverlay(false, true, GT_UITextures.OVERLAY_SLOT_SLICER_SLICED) - .setRecipeConfigFile("slicer", FIRST_ITEM_OUTPUT) - .setProgressBar(GT_UITextures.PROGRESSBAR_SLICE, ProgressBar.Direction.RIGHT); + new HashSet<>(20), + "gt.recipe.slicer", + "Slicing Machine", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Slicer"), + 2, + 1, + 2, + 0, + 1, + E, + 1, + E, + true, + true).setSlotOverlay(false, false, true, GT_UITextures.OVERLAY_SLOT_SQUARE) + .setSlotOverlay(false, false, false, GT_UITextures.OVERLAY_SLOT_SLICE_SHAPE) + .setSlotOverlay(false, true, GT_UITextures.OVERLAY_SLOT_SLICER_SLICED) + .setRecipeConfigFile("slicer", FIRST_ITEM_OUTPUT) + .setProgressBar(GT_UITextures.PROGRESSBAR_SLICE, ProgressBar.Direction.RIGHT); public static final GT_Recipe_Map sExtruderRecipes = new GT_Recipe_Map( - new HashSet<>(13000), - "gt.recipe.extruder", - "Extruder", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Extruder"), - 2, - 1, - 2, - 0, - 1, - E, - 1, - E, - true, - true).setSlotOverlay(false, false, false, GT_UITextures.OVERLAY_SLOT_EXTRUDER_SHAPE) - .setRecipeConfigFile("extruder", FIRST_ITEM_OUTPUT) - .setProgressBar(GT_UITextures.PROGRESSBAR_EXTRUDE, ProgressBar.Direction.RIGHT); + new HashSet<>(13000), + "gt.recipe.extruder", + "Extruder", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Extruder"), + 2, + 1, + 2, + 0, + 1, + E, + 1, + E, + true, + true).setSlotOverlay(false, false, false, GT_UITextures.OVERLAY_SLOT_EXTRUDER_SHAPE) + .setRecipeConfigFile("extruder", FIRST_ITEM_OUTPUT) + .setProgressBar(GT_UITextures.PROGRESSBAR_EXTRUDE, ProgressBar.Direction.RIGHT); public static final GT_Recipe_Map sHammerRecipes = new GT_Recipe_Map( - new HashSet<>(3800), - "gt.recipe.hammer", - "Forge Hammer", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Hammer"), - 2, - 2, - 1, - 0, - 1, - E, - 1, - E, - true, - true).setUsualFluidInputCount(2) - .setUsualFluidOutputCount(2) - .setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_HAMMER) - .setRecipeConfigFile("forgehammer", FIRST_ITEM_OUTPUT) - .setProgressBar(GT_UITextures.PROGRESSBAR_HAMMER, ProgressBar.Direction.DOWN) - .addSpecialTexture(20, 6, 78, 42, GT_UITextures.PROGRESSBAR_HAMMER_BASE) - .setSlotOverlaySteam(false, GT_UITextures.OVERLAY_SLOT_HAMMER_STEAM) - .setProgressBarSteam(GT_UITextures.PROGRESSBAR_HAMMER_STEAM) - .addSpecialTextureSteam(20, 6, 78, 42, GT_UITextures.PROGRESSBAR_HAMMER_BASE_STEAM); + new HashSet<>(3800), + "gt.recipe.hammer", + "Forge Hammer", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Hammer"), + 2, + 2, + 1, + 0, + 1, + E, + 1, + E, + true, + true).setUsualFluidInputCount(2) + .setUsualFluidOutputCount(2) + .setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_HAMMER) + .setRecipeConfigFile("forgehammer", FIRST_ITEM_OUTPUT) + .setProgressBar(GT_UITextures.PROGRESSBAR_HAMMER, ProgressBar.Direction.DOWN) + .addSpecialTexture(20, 6, 78, 42, GT_UITextures.PROGRESSBAR_HAMMER_BASE) + .setSlotOverlaySteam(false, GT_UITextures.OVERLAY_SLOT_HAMMER_STEAM) + .setProgressBarSteam(GT_UITextures.PROGRESSBAR_HAMMER_STEAM) + .addSpecialTextureSteam(20, 6, 78, 42, GT_UITextures.PROGRESSBAR_HAMMER_BASE_STEAM); public static final GT_Recipe_Map sAmplifiers = new GT_Recipe_Map( - new HashSet<>(2), - "gt.recipe.uuamplifier", - "Amplifabricator", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Amplifabricator"), - 1, - 0, - 1, - 0, - 1, - E, - 1, - E, - true, - true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_CENTRIFUGE) - .setSlotOverlay(true, true, GT_UITextures.OVERLAY_SLOT_UUA) - .setRecipeConfigFile("amplifier", FIRST_ITEM_INPUT) - .setProgressBar(GT_UITextures.PROGRESSBAR_EXTRACT, ProgressBar.Direction.RIGHT); + new HashSet<>(2), + "gt.recipe.uuamplifier", + "Amplifabricator", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Amplifabricator"), + 1, + 0, + 1, + 0, + 1, + E, + 1, + E, + true, + true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_CENTRIFUGE) + .setSlotOverlay(true, true, GT_UITextures.OVERLAY_SLOT_UUA) + .setRecipeConfigFile("amplifier", FIRST_ITEM_INPUT) + .setProgressBar(GT_UITextures.PROGRESSBAR_EXTRACT, ProgressBar.Direction.RIGHT); public static final GT_Recipe_Map sMassFabFakeRecipes = new GT_Recipe_Map( - new HashSet<>(2), - "gt.recipe.massfab", - "Mass Fabrication", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Massfabricator"), - 1, - 0, - 1, - 0, - 8, - E, - 1, - E, - true, - true).setSlotOverlay(true, false, GT_UITextures.OVERLAY_SLOT_UUA) - .setSlotOverlay(true, true, GT_UITextures.OVERLAY_SLOT_UUM) - .setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); + new HashSet<>(2), + "gt.recipe.massfab", + "Mass Fabrication", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Massfabricator"), + 1, + 0, + 1, + 0, + 8, + E, + 1, + E, + true, + true).setSlotOverlay(true, false, GT_UITextures.OVERLAY_SLOT_UUA) + .setSlotOverlay(true, true, GT_UITextures.OVERLAY_SLOT_UUM) + .setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); public static final GT_Recipe_Map_Fuel sDieselFuels = (GT_Recipe_Map_Fuel) new GT_Recipe_Map_Fuel( - new HashSet<>(20), - "gt.recipe.dieselgeneratorfuel", - "Combustion Generator Fuels", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), - 1, - 1, - 0, - 0, - 1, - "Fuel Value: ", - 1000, - " EU", - true, - true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); + new HashSet<>(20), + "gt.recipe.dieselgeneratorfuel", + "Combustion Generator Fuels", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), + 1, + 1, + 0, + 0, + 1, + "Fuel Value: ", + 1000, + " EU", + true, + true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); public static final GT_Recipe_Map_Fuel sExtremeDieselFuels = (GT_Recipe_Map_Fuel) new GT_Recipe_Map_Fuel( - new HashSet<>(20), - "gt.recipe.extremedieselgeneratorfuel", - "Extreme Diesel Engine Fuel", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), - 1, - 1, - 0, - 0, - 1, - "Fuel Value: ", - 1000, - " EU", - true, - true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); + new HashSet<>(20), + "gt.recipe.extremedieselgeneratorfuel", + "Extreme Diesel Engine Fuel", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), + 1, + 1, + 0, + 0, + 1, + "Fuel Value: ", + 1000, + " EU", + true, + true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); public static final GT_Recipe_Map_Fuel sTurbineFuels = (GT_Recipe_Map_Fuel) new GT_Recipe_Map_Fuel( - new HashSet<>(25), - "gt.recipe.gasturbinefuel", - "Gas Turbine Fuel", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), - 1, - 1, - 0, - 0, - 1, - "Fuel Value: ", - 1000, - " EU", - true, - true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); + new HashSet<>(25), + "gt.recipe.gasturbinefuel", + "Gas Turbine Fuel", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), + 1, + 1, + 0, + 0, + 1, + "Fuel Value: ", + 1000, + " EU", + true, + true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); public static final GT_Recipe_Map_Fuel sHotFuels = new GT_Recipe_Map_Fuel( - new HashSet<>(10), - "gt.recipe.thermalgeneratorfuel", - "Thermal Generator Fuels", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), - 1, - 1, - 0, - 0, - 1, - "Fuel Value: ", - 1000, - " EU", - true, - false); + new HashSet<>(10), + "gt.recipe.thermalgeneratorfuel", + "Thermal Generator Fuels", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), + 1, + 1, + 0, + 0, + 1, + "Fuel Value: ", + 1000, + " EU", + true, + false); public static final GT_Recipe_Map_Fuel sDenseLiquidFuels = (GT_Recipe_Map_Fuel) new GT_Recipe_Map_Fuel( - new HashSet<>(15), - "gt.recipe.semifluidboilerfuels", - "Semifluid Boiler Fuels", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), - 1, - 1, - 0, - 0, - 1, - "Fuel Value: ", - 1000, - " EU", - true, - true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); + new HashSet<>(15), + "gt.recipe.semifluidboilerfuels", + "Semifluid Boiler Fuels", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), + 1, + 1, + 0, + 0, + 1, + "Fuel Value: ", + 1000, + " EU", + true, + true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); public static final GT_Recipe_Map_Fuel sPlasmaFuels = (GT_Recipe_Map_Fuel) new GT_Recipe_Map_Fuel( - new HashSet<>(100), - "gt.recipe.plasmageneratorfuels", - "Plasma Generator Fuels", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), - 1, - 1, - 0, - 0, - 1, - "Fuel Value: ", - 1000, - " EU", - true, - true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); - public static final GT_Recipe_Map_Fuel sMagicFuels = (GT_Recipe_Map_Fuel) new GT_Recipe_Map_Fuel( - new HashSet<>(100), - "gt.recipe.magicfuels", - "Magic Energy Absorber Fuels", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), - 1, - 1, - 0, - 0, - 1, - "Fuel Value: ", - 1000, - " EU", - true, - true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); - public static final GT_Recipe_Map_Fuel sSmallNaquadahReactorFuels = (GT_Recipe_Map_Fuel) new GT_Recipe_Map_Fuel( - new HashSet<>(1), - "gt.recipe.smallnaquadahreactor", - "Naquadah Reactor MkI", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), - 1, - 1, - 0, - 0, - 1, - "Fuel Value: ", - 1000, - " EU", - true, - true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); - public static final GT_Recipe_Map_Fuel sLargeNaquadahReactorFuels = (GT_Recipe_Map_Fuel) new GT_Recipe_Map_Fuel( - new HashSet<>(1), - "gt.recipe.largenaquadahreactor", - "Naquadah Reactor MkII", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), - 1, - 1, - 0, - 0, - 1, - "Fuel Value: ", - 1000, - " EU", - true, - true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); - public static final GT_Recipe_Map_Fuel sHugeNaquadahReactorFuels = (GT_Recipe_Map_Fuel) new GT_Recipe_Map_Fuel( - new HashSet<>(1), - "gt.recipe.fluidnaquadahreactor", - "Naquadah Reactor MkIII", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), - 1, - 1, - 0, - 0, - 1, - "Fuel Value: ", - 1000, - " EU", - true, - true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); + new HashSet<>(100), + "gt.recipe.plasmageneratorfuels", + "Plasma Generator Fuels", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), + 1, + 1, + 0, + 0, + 1, + "Fuel Value: ", + 1000, + " EU", + true, + true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); + public static final GT_Recipe_Map_Fuel sMagicFuels = (GT_Recipe_Map_Fuel) new GT_Recipe_Map_Fuel( + new HashSet<>(100), + "gt.recipe.magicfuels", + "Magic Energy Absorber Fuels", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), + 1, + 1, + 0, + 0, + 1, + "Fuel Value: ", + 1000, + " EU", + true, + true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); + public static final GT_Recipe_Map_Fuel sSmallNaquadahReactorFuels = (GT_Recipe_Map_Fuel) new GT_Recipe_Map_Fuel( + new HashSet<>(1), + "gt.recipe.smallnaquadahreactor", + "Naquadah Reactor MkI", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), + 1, + 1, + 0, + 0, + 1, + "Fuel Value: ", + 1000, + " EU", + true, + true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); + public static final GT_Recipe_Map_Fuel sLargeNaquadahReactorFuels = (GT_Recipe_Map_Fuel) new GT_Recipe_Map_Fuel( + new HashSet<>(1), + "gt.recipe.largenaquadahreactor", + "Naquadah Reactor MkII", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), + 1, + 1, + 0, + 0, + 1, + "Fuel Value: ", + 1000, + " EU", + true, + true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); + public static final GT_Recipe_Map_Fuel sHugeNaquadahReactorFuels = (GT_Recipe_Map_Fuel) new GT_Recipe_Map_Fuel( + new HashSet<>(1), + "gt.recipe.fluidnaquadahreactor", + "Naquadah Reactor MkIII", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), + 1, + 1, + 0, + 0, + 1, + "Fuel Value: ", + 1000, + " EU", + true, + true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); public static final GT_Recipe_Map_Fuel sExtremeNaquadahReactorFuels = (GT_Recipe_Map_Fuel) new GT_Recipe_Map_Fuel( - new HashSet<>(1), - "gt.recipe.hugenaquadahreactor", - "Naquadah Reactor MkIV", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), - 1, - 1, - 0, - 0, - 1, - "Fuel Value: ", - 1000, - " EU", - true, - true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); + new HashSet<>(1), + "gt.recipe.hugenaquadahreactor", + "Naquadah Reactor MkIV", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), + 1, + 1, + 0, + 0, + 1, + "Fuel Value: ", + 1000, + " EU", + true, + true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); public static final GT_Recipe_Map_Fuel sUltraHugeNaquadahReactorFuels = (GT_Recipe_Map_Fuel) new GT_Recipe_Map_Fuel( - new HashSet<>(1), - "gt.recipe.extrahugenaquadahreactor", - "Naquadah Reactor MkV", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), - 1, - 1, - 0, - 0, - 1, - "Fuel Value: ", - 1000, - " EU", - true, - true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); + new HashSet<>(1), + "gt.recipe.extrahugenaquadahreactor", + "Naquadah Reactor MkV", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), + 1, + 1, + 0, + 0, + 1, + "Fuel Value: ", + 1000, + " EU", + true, + true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); public static final GT_Recipe_Map_Fuel sFluidNaquadahReactorFuels = (GT_Recipe_Map_Fuel) new GT_Recipe_Map_Fuel( - new HashSet<>(1), - "gt.recipe.fluidfuelnaquadahreactor", - "Fluid Naquadah Reactor", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), - 1, - 1, - 0, - 0, - 1, - "Fuel Value: ", - 1000, - " EU", - true, - true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); + new HashSet<>(1), + "gt.recipe.fluidfuelnaquadahreactor", + "Fluid Naquadah Reactor", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), + 1, + 1, + 0, + 0, + 1, + "Fuel Value: ", + 1000, + " EU", + true, + true).setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT); public static final GT_Recipe_Map sMultiblockElectrolyzerRecipes = new GT_Recipe_Map( - new HashSet<>(300), - "gt.recipe.largeelectrolyzer", - "Large(PA) Electrolyzer", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "LCRNEI"), - 1, - 9, - 0, - 0, - 1, - "", - 0, - "", - true, - false).setRecipeEmitter(GT_RecipeMapUtil::buildRecipeForMultiblockNoCircuit); + new HashSet<>(300), + "gt.recipe.largeelectrolyzer", + "Large(PA) Electrolyzer", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "LCRNEI"), + 1, + 9, + 0, + 0, + 1, + "", + 0, + "", + true, + false).setRecipeEmitter(GT_RecipeMapUtil::buildRecipeForMultiblockNoCircuit); public static final GT_Recipe_Map sMultiblockCentrifugeRecipes = new GT_Recipe_Map( - new HashSet<>(1200), - "gt.recipe.largecentrifuge", - "Large(PA) Centrifuge", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "LCRNEI"), - 1, - 9, - 0, - 0, - 1, - "", - 0, - "", - true, - false).setRecipeEmitter(GT_RecipeMapUtil::buildRecipeForMultiblock) - .setDisableOptimize(true); + new HashSet<>(1200), + "gt.recipe.largecentrifuge", + "Large(PA) Centrifuge", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "LCRNEI"), + 1, + 9, + 0, + 0, + 1, + "", + 0, + "", + true, + false).setRecipeEmitter(GT_RecipeMapUtil::buildRecipeForMultiblock) + .setDisableOptimize(true); public static final GT_Recipe_Map sMultiblockMixerRecipes = new GT_Recipe_Map( - new HashSet<>(900), - "gt.recipe.largemixer", - "Large(PA) Mixer", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "LCRNEI"), - 9, - 3, - 0, - 0, - 1, - "", - 0, - "", - true, - false).setRecipeEmitter(GT_RecipeMapUtil::buildRecipeForMultiblock) - .setDisableOptimize(true); - public static final GT_Recipe_Map_LargeBoilerFakeFuels sLargeBoilerFakeFuels = (GT_Recipe_Map_LargeBoilerFakeFuels) new GT_Recipe_Map_LargeBoilerFakeFuels().setProgressBar( - GT_UITextures.PROGRESSBAR_ARROW, - ProgressBar.Direction.RIGHT) - .setDisableOptimize( - true); + new HashSet<>(900), + "gt.recipe.largemixer", + "Large(PA) Mixer", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "LCRNEI"), + 9, + 3, + 0, + 0, + 1, + "", + 0, + "", + true, + false).setRecipeEmitter(GT_RecipeMapUtil::buildRecipeForMultiblock) + .setDisableOptimize(true); + public static final GT_Recipe_Map_LargeBoilerFakeFuels sLargeBoilerFakeFuels = (GT_Recipe_Map_LargeBoilerFakeFuels) new GT_Recipe_Map_LargeBoilerFakeFuels() + .setProgressBar(GT_UITextures.PROGRESSBAR_ARROW, ProgressBar.Direction.RIGHT) + .setDisableOptimize(true); public static final GT_Recipe_Map sNanoForge = new GT_Recipe_Map( - new HashSet<>(10), - "gt.recipe.nanoforge", - "Nano Forge", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "LCRNEI"), - 6, - 2, - 2, - 1, - 1, - "Tier: ", - 1, - "", - false, - true).useModularUI(true) - .setUsualFluidInputCount(3) - .setDisableOptimize(true) - .setSlotOverlay(false, false, true, GT_UITextures.OVERLAY_SLOT_LENS) - .setProgressBar(GT_UITextures.PROGRESSBAR_ASSEMBLE, ProgressBar.Direction.RIGHT); + new HashSet<>(10), + "gt.recipe.nanoforge", + "Nano Forge", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "LCRNEI"), + 6, + 2, + 2, + 1, + 1, + "Tier: ", + 1, + "", + false, + true).useModularUI(true) + .setUsualFluidInputCount(3) + .setDisableOptimize(true) + .setSlotOverlay(false, false, true, GT_UITextures.OVERLAY_SLOT_LENS) + .setProgressBar(GT_UITextures.PROGRESSBAR_ASSEMBLE, ProgressBar.Direction.RIGHT); public static final GT_Recipe_Map sPCBFactory = new GT_Recipe_Map( - new HashSet<>(10), - "gt.recipe.pcbfactory", - "PCB Factory", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "LCRNEI"), - 6, - 9, - 3, - 1, - 1, - E, - 0, - E, - true, - true).useModularUI(true) - .setUsualFluidInputCount(3) - .setUsualFluidOutputCount(0) - .setDisableOptimize(true) - .setProgressBar(GT_UITextures.PROGRESSBAR_ASSEMBLE, ProgressBar.Direction.RIGHT) - .setNEISpecialInfoFormatter((recipeInfo, applyPrefixAndSuffix) -> { - List result = new ArrayList<>(); - int bitmap = recipeInfo.recipe.mSpecialValue; - if ((bitmap & 0b1) > 0) { - result.add(GT_Utility.trans("336", "PCB Factory Tier: ") + 1); - } else if ((bitmap & 0b10) > 0) { - result.add(GT_Utility.trans("336", "PCB Factory Tier: ") + 2); - } else if ((bitmap & 0b100) > 0) { - result.add(GT_Utility.trans("336", "PCB Factory Tier: ") + 3); - } - if ((bitmap & 0b1000) > 0) { - result.add(GT_Utility.trans("337", "Upgrade Required: ") + GT_Utility.trans("338", "Bio")); - } - return result; - }); - - public static final GT_Recipe_Map_IC2NuclearFake sIC2NuclearFakeRecipe = (GT_Recipe_Map_IC2NuclearFake) new GT_Recipe_Map_IC2NuclearFake().setDisableOptimize( - true); + new HashSet<>(10), + "gt.recipe.pcbfactory", + "PCB Factory", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "LCRNEI"), + 6, + 9, + 3, + 1, + 1, + E, + 0, + E, + true, + true).useModularUI(true) + .setUsualFluidInputCount(3) + .setUsualFluidOutputCount(0) + .setDisableOptimize(true) + .setProgressBar(GT_UITextures.PROGRESSBAR_ASSEMBLE, ProgressBar.Direction.RIGHT) + .setNEISpecialInfoFormatter((recipeInfo, applyPrefixAndSuffix) -> { + List result = new ArrayList<>(); + int bitmap = recipeInfo.recipe.mSpecialValue; + if ((bitmap & 0b1) > 0) { + result.add(GT_Utility.trans("336", "PCB Factory Tier: ") + 1); + } else if ((bitmap & 0b10) > 0) { + result.add(GT_Utility.trans("336", "PCB Factory Tier: ") + 2); + } else if ((bitmap & 0b100) > 0) { + result.add(GT_Utility.trans("336", "PCB Factory Tier: ") + 3); + } + if ((bitmap & 0b1000) > 0) { + result.add(GT_Utility.trans("337", "Upgrade Required: ") + GT_Utility.trans("338", "Bio")); + } + return result; + }); + + public static final GT_Recipe_Map_IC2NuclearFake sIC2NuclearFakeRecipe = (GT_Recipe_Map_IC2NuclearFake) new GT_Recipe_Map_IC2NuclearFake() + .setDisableOptimize(true); static { sCentrifugeRecipes.addDownstream(sMultiblockCentrifugeRecipes.deepCopyInput()); sMixerRecipes.addDownstream(sMultiblockMixerRecipes.deepCopyInput()); sElectrolyzerRecipes.addDownstream(sMultiblockElectrolyzerRecipes.deepCopyInput()); sDieselFuels.addDownstream( - IGT_RecipeMap.newRecipeMap( - b -> b.build() - .map(sLargeBoilerFakeFuels::addDieselRecipe) - .map(Collections::singletonList) - .orElse(Collections.emptyList()))); + IGT_RecipeMap.newRecipeMap( + b -> b.build() + .map(sLargeBoilerFakeFuels::addDieselRecipe) + .map(Collections::singletonList) + .orElse(Collections.emptyList()))); sDenseLiquidFuels.addDownstream( - IGT_RecipeMap.newRecipeMap( - b -> b.build() - .map(sLargeBoilerFakeFuels::addDenseLiquidRecipe) - .map(Collections::singletonList) - .orElse(Collections.emptyList()))); + IGT_RecipeMap.newRecipeMap( + b -> b.build() + .map(sLargeBoilerFakeFuels::addDenseLiquidRecipe) + .map(Collections::singletonList) + .orElse(Collections.emptyList()))); } /** @@ -3070,7 +3040,7 @@ public class GT_Recipe implements Comparable { public final String mNEISpecialValuePre, mNEISpecialValuePost; public final int mUsualInputCount, mUsualOutputCount, mNEISpecialValueMultiplier, mMinimalInputItems, - mMinimalInputFluids, mAmperage; + mMinimalInputFluids, mAmperage; public final boolean mNEIAllowed, mShowVoltageAmperageInNEI; /** @@ -3144,10 +3114,10 @@ public class GT_Recipe implements Comparable { public Pos2d progressBarPos = new Pos2d(78, 24); public Rectangle neiTransferRect = new Rectangle( - progressBarPos.x - (16 / 2), - progressBarPos.y, - progressBarSize.width + 16, - progressBarSize.height); + progressBarPos.x - (16 / 2), + progressBarPos.y, + progressBarSize.width + 16, + progressBarSize.height); /** * Image size in direction of progress. Used for non-smooth rendering. @@ -3214,10 +3184,9 @@ public class GT_Recipe implements Comparable { * @param aNEIAllowed if NEI is allowed to display this Recipe Handler in general. */ public GT_Recipe_Map(Collection aRecipeList, String aUnlocalizedName, String aLocalName, - String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, - int aMinimalInputItems, int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, - int aNEISpecialValueMultiplier, String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, - boolean aNEIAllowed) { + String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, int aMinimalInputItems, + int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, int aNEISpecialValueMultiplier, + String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, boolean aNEIAllowed) { sMappings.add(this); mNEIAllowed = aNEIAllowed; mShowVoltageAmperageInNEI = aShowVoltageAmperageInNEI; @@ -3236,16 +3205,16 @@ public class GT_Recipe implements Comparable { GregTech_API.sItemStackMappings.add(mRecipeItemMap); GT_LanguageManager.addStringLocalization(mUnlocalizedName = aUnlocalizedName, aLocalName); mUniqueIdentifier = String.format( - "%s_%d_%d_%d_%d_%d", - aUnlocalizedName, - aAmperage, - aUsualInputCount, - aUsualOutputCount, - aMinimalInputFluids, - aMinimalInputItems); + "%s_%d_%d_%d_%d_%d", + aUnlocalizedName, + aAmperage, + aUsualInputCount, + aUsualOutputCount, + aMinimalInputFluids, + aMinimalInputItems); progressBarTexture = new FallbackableUITexture( - UITexture.fullImage(GregTech.ID, "gui/progressbar/" + mUnlocalizedName), - GT_UITextures.PROGRESSBAR_ARROW); + UITexture.fullImage(GregTech.ID, "gui/progressbar/" + mUnlocalizedName), + GT_UITextures.PROGRESSBAR_ARROW); colorOverride = GT_GUIColorOverride.get(ModularUITextures.VANILLA_BACKGROUND.location); if (sIndexedMappings.put(mUniqueIdentifier, this) != null) throw new IllegalArgumentException("Duplicate recipe map registered: " + mUniqueIdentifier); @@ -3253,26 +3222,26 @@ public class GT_Recipe implements Comparable { @Deprecated public GT_Recipe_Map(Collection aRecipeList, String aUnlocalizedName, String aLocalName, - String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, - int aMinimalInputItems, int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, - int aNEISpecialValueMultiplier, String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, - boolean aNEIAllowed, boolean aNEIUnificateOutput) { + String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, int aMinimalInputItems, + int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, int aNEISpecialValueMultiplier, + String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, boolean aNEIAllowed, + boolean aNEIUnificateOutput) { this( - aRecipeList, - aUnlocalizedName, - aLocalName, - aNEIName, - aNEIGUIPath, - aUsualInputCount, - aUsualOutputCount, - aMinimalInputItems, - aMinimalInputFluids, - aAmperage, - aNEISpecialValuePre, - aNEISpecialValueMultiplier, - aNEISpecialValuePost, - aShowVoltageAmperageInNEI, - aNEIAllowed); + aRecipeList, + aUnlocalizedName, + aLocalName, + aNEIName, + aNEIGUIPath, + aUsualInputCount, + aUsualOutputCount, + aMinimalInputItems, + aMinimalInputFluids, + aAmperage, + aNEISpecialValuePre, + aNEISpecialValueMultiplier, + aNEISpecialValuePost, + aShowVoltageAmperageInNEI, + aNEIAllowed); setNEIUnificateOutput(aNEIUnificateOutput); } @@ -3302,11 +3271,11 @@ public class GT_Recipe implements Comparable { } public GT_Recipe_Map setSlotOverlay(boolean isFluid, boolean isOutput, boolean isFirst, boolean isSpecial, - IDrawable slotOverlay) { + IDrawable slotOverlay) { useModularUI(true); this.slotOverlays.put( - (byte) ((isFluid ? 1 : 0) + (isOutput ? 2 : 0) + (isFirst ? 4 : 0) + (isSpecial ? 8 : 0)), - slotOverlay); + (byte) ((isFluid ? 1 : 0) + (isOutput ? 2 : 0) + (isFirst ? 4 : 0) + (isSpecial ? 8 : 0)), + slotOverlay); return this; } @@ -3315,19 +3284,16 @@ public class GT_Recipe implements Comparable { } public GT_Recipe_Map setSlotOverlay(boolean isFluid, boolean isOutput, IDrawable slotOverlay) { - return setSlotOverlay(isFluid, isOutput, true, slotOverlay).setSlotOverlay( - isFluid, - isOutput, - false, - slotOverlay); + return setSlotOverlay(isFluid, isOutput, true, slotOverlay) + .setSlotOverlay(isFluid, isOutput, false, slotOverlay); } public GT_Recipe_Map setSlotOverlaySteam(boolean isFluid, boolean isOutput, boolean isFirst, boolean isSpecial, - SteamTexture slotOverlay) { + SteamTexture slotOverlay) { useModularUI(true); this.slotOverlaysSteam.put( - (byte) ((isFluid ? 1 : 0) + (isOutput ? 2 : 0) + (isFirst ? 4 : 0) + (isSpecial ? 8 : 0)), - slotOverlay); + (byte) ((isFluid ? 1 : 0) + (isOutput ? 2 : 0) + (isFirst ? 4 : 0) + (isSpecial ? 8 : 0)), + slotOverlay); return this; } @@ -3336,20 +3302,16 @@ public class GT_Recipe implements Comparable { } public GT_Recipe_Map setSlotOverlaySteam(boolean isOutput, SteamTexture slotOverlay) { - return setSlotOverlaySteam(false, isOutput, true, false, slotOverlay).setSlotOverlaySteam( - false, - isOutput, - false, - false, - slotOverlay); + return setSlotOverlaySteam(false, isOutput, true, false, slotOverlay) + .setSlotOverlaySteam(false, isOutput, false, false, slotOverlay); } public GT_Recipe_Map setProgressBar(UITexture progressBarTexture, ProgressBar.Direction progressBarDirection) { return setProgressBarWithFallback( - new FallbackableUITexture( - UITexture.fullImage(GregTech.ID, "gui/progressbar/" + mUnlocalizedName), - progressBarTexture), - progressBarDirection); + new FallbackableUITexture( + UITexture.fullImage(GregTech.ID, "gui/progressbar/" + mUnlocalizedName), + progressBarTexture), + progressBarDirection); } public GT_Recipe_Map setProgressBar(UITexture progressBarTexture) { @@ -3361,7 +3323,7 @@ public class GT_Recipe implements Comparable { * add unique textures, yet other packs don't need to make textures for every recipemap. */ public GT_Recipe_Map setProgressBarWithFallback(FallbackableUITexture progressBarTexture, - ProgressBar.Direction progressBarDirection) { + ProgressBar.Direction progressBarDirection) { useModularUI(true); this.progressBarTexture = progressBarTexture; this.progressBarDirection = progressBarDirection; @@ -3370,9 +3332,9 @@ public class GT_Recipe implements Comparable { public GT_Recipe_Map setProgressBarSteam(SteamTexture progressBarTexture) { return setProgressBarSteamWithFallback( - new FallbackableSteamTexture( - SteamTexture.fullImage(GregTech.ID, "gui/progressbar/" + mUnlocalizedName + "_%s"), - progressBarTexture)); + new FallbackableSteamTexture( + SteamTexture.fullImage(GregTech.ID, "gui/progressbar/" + mUnlocalizedName + "_%s"), + progressBarTexture)); } public GT_Recipe_Map setProgressBarSteamWithFallback(FallbackableSteamTexture progressBarTexture) { @@ -3406,15 +3368,15 @@ public class GT_Recipe implements Comparable { public GT_Recipe_Map addSpecialTexture(int width, int height, int x, int y, IDrawable texture) { useModularUI(true); - specialTextures.add( - new ImmutablePair<>(texture, new ImmutablePair<>(new Size(width, height), new Pos2d(x, y)))); + specialTextures + .add(new ImmutablePair<>(texture, new ImmutablePair<>(new Size(width, height), new Pos2d(x, y)))); return this; } public GT_Recipe_Map addSpecialTextureSteam(int width, int height, int x, int y, SteamTexture texture) { useModularUI(true); - specialTexturesSteam.add( - new ImmutablePair<>(texture, new ImmutablePair<>(new Size(width, height), new Pos2d(x, y)))); + specialTexturesSteam + .add(new ImmutablePair<>(texture, new ImmutablePair<>(new Size(width, height), new Pos2d(x, y)))); return this; } @@ -3469,7 +3431,7 @@ public class GT_Recipe implements Comparable { * Change how recipes are emitted by a particular recipe builder. Can emit multiple recipe per builder. */ public GT_Recipe_Map setRecipeEmitter( - Function> func) { + Function> func) { this.recipeEmitter = func; return this; } @@ -3480,7 +3442,7 @@ public class GT_Recipe implements Comparable { * Unlike {@link #setRecipeEmitter(Function)}, this one does not clear the existing recipe being emitted, if any */ public GT_Recipe_Map combineRecipeEmitter( - Function> func) { + Function> func) { // move recipeEmitter to local variable, so lambda capture the function itself instead of this Function> cur = recipeEmitter; this.recipeEmitter = b -> Iterables.concat(cur.apply(b), func.apply(b)); @@ -3572,55 +3534,55 @@ public class GT_Recipe implements Comparable { } public GT_Recipe addRecipe(boolean aOptimize, ItemStack[] aInputs, ItemStack[] aOutputs, Object aSpecial, - int[] aOutputChances, FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs, int aDuration, int aEUt, - int aSpecialValue) { + int[] aOutputChances, FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs, int aDuration, int aEUt, + int aSpecialValue) { return addRecipe( - new GT_Recipe( - aOptimize, - aInputs, - aOutputs, - aSpecial, - aOutputChances, - aFluidInputs, - aFluidOutputs, - aDuration, - aEUt, - aSpecialValue)); + new GT_Recipe( + aOptimize, + aInputs, + aOutputs, + aSpecial, + aOutputChances, + aFluidInputs, + aFluidOutputs, + aDuration, + aEUt, + aSpecialValue)); } public GT_Recipe addRecipe(int[] aOutputChances, FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs, - int aDuration, int aEUt, int aSpecialValue) { + int aDuration, int aEUt, int aSpecialValue) { return addRecipe( - new GT_Recipe( - false, - null, - null, - null, - aOutputChances, - aFluidInputs, - aFluidOutputs, - aDuration, - aEUt, - aSpecialValue), + new GT_Recipe( false, - false, - false); + null, + null, + null, + aOutputChances, + aFluidInputs, + aFluidOutputs, + aDuration, + aEUt, + aSpecialValue), + false, + false, + false); } public GT_Recipe addRecipe(boolean aOptimize, ItemStack[] aInputs, ItemStack[] aOutputs, Object aSpecial, - FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs, int aDuration, int aEUt, int aSpecialValue) { + FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs, int aDuration, int aEUt, int aSpecialValue) { return addRecipe( - new GT_Recipe( - aOptimize, - aInputs, - aOutputs, - aSpecial, - null, - aFluidInputs, - aFluidOutputs, - aDuration, - aEUt, - aSpecialValue)); + new GT_Recipe( + aOptimize, + aInputs, + aOutputs, + aSpecial, + null, + aFluidInputs, + aFluidOutputs, + aDuration, + aEUt, + aSpecialValue)); } public GT_Recipe addRecipe(GT_Recipe aRecipe) { @@ -3628,13 +3590,13 @@ public class GT_Recipe implements Comparable { } protected GT_Recipe addRecipe(GT_Recipe aRecipe, boolean aCheckForCollisions, boolean aFakeRecipe, - boolean aHidden) { + boolean aHidden) { aRecipe.mHidden = aHidden; aRecipe.mFakeRecipe = aFakeRecipe; if (aRecipe.mFluidInputs.length < mMinimalInputFluids && aRecipe.mInputs.length < mMinimalInputItems) return null; if (aCheckForCollisions - && findRecipe(null, false, true, Long.MAX_VALUE, aRecipe.mFluidInputs, aRecipe.mInputs) != null) + && findRecipe(null, false, true, Long.MAX_VALUE, aRecipe.mFluidInputs, aRecipe.mInputs) != null) return null; return add(aRecipe); } @@ -3644,21 +3606,21 @@ public class GT_Recipe implements Comparable { * findRecipe wont find fake Recipes, containsInput WILL find fake Recipes */ public GT_Recipe addFakeRecipe(boolean aCheckForCollisions, ItemStack[] aInputs, ItemStack[] aOutputs, - Object aSpecial, int[] aOutputChances, FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs, - int aDuration, int aEUt, int aSpecialValue) { + Object aSpecial, int[] aOutputChances, FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs, int aDuration, + int aEUt, int aSpecialValue) { return addFakeRecipe( - aCheckForCollisions, - new GT_Recipe( - false, - aInputs, - aOutputs, - aSpecial, - aOutputChances, - aFluidInputs, - aFluidOutputs, - aDuration, - aEUt, - aSpecialValue)); + aCheckForCollisions, + new GT_Recipe( + false, + aInputs, + aOutputs, + aSpecial, + aOutputChances, + aFluidInputs, + aFluidOutputs, + aDuration, + aEUt, + aSpecialValue)); } /** @@ -3666,60 +3628,60 @@ public class GT_Recipe implements Comparable { * findRecipe wont find fake Recipes, containsInput WILL find fake Recipes */ public GT_Recipe addFakeRecipe(boolean aCheckForCollisions, ItemStack[] aInputs, ItemStack[] aOutputs, - Object aSpecial, FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs, int aDuration, int aEUt, - int aSpecialValue) { + Object aSpecial, FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs, int aDuration, int aEUt, + int aSpecialValue) { return addFakeRecipe( - aCheckForCollisions, - new GT_Recipe( - false, - aInputs, - aOutputs, - aSpecial, - null, - aFluidInputs, - aFluidOutputs, - aDuration, - aEUt, - aSpecialValue)); + aCheckForCollisions, + new GT_Recipe( + false, + aInputs, + aOutputs, + aSpecial, + null, + aFluidInputs, + aFluidOutputs, + aDuration, + aEUt, + aSpecialValue)); } public GT_Recipe addFakeRecipe(boolean aCheckForCollisions, ItemStack[] aInputs, ItemStack[] aOutputs, - Object aSpecial, FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs, int aDuration, int aEUt, - int aSpecialValue, boolean hidden) { + Object aSpecial, FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs, int aDuration, int aEUt, + int aSpecialValue, boolean hidden) { return addFakeRecipe( - aCheckForCollisions, - new GT_Recipe( - false, - aInputs, - aOutputs, - aSpecial, - null, - aFluidInputs, - aFluidOutputs, - aDuration, - aEUt, - aSpecialValue), - hidden); + aCheckForCollisions, + new GT_Recipe( + false, + aInputs, + aOutputs, + aSpecial, + null, + aFluidInputs, + aFluidOutputs, + aDuration, + aEUt, + aSpecialValue), + hidden); } public GT_Recipe addFakeRecipe(boolean aCheckForCollisions, ItemStack[] aInputs, ItemStack[] aOutputs, - Object aSpecial, FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs, int aDuration, int aEUt, - int aSpecialValue, ItemStack[][] aAlt, boolean hidden) { + Object aSpecial, FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs, int aDuration, int aEUt, + int aSpecialValue, ItemStack[][] aAlt, boolean hidden) { return addFakeRecipe( - aCheckForCollisions, - new GT_Recipe_WithAlt( - false, - aInputs, - aOutputs, - aSpecial, - null, - aFluidInputs, - aFluidOutputs, - aDuration, - aEUt, - aSpecialValue, - aAlt), - hidden); + aCheckForCollisions, + new GT_Recipe_WithAlt( + false, + aInputs, + aOutputs, + aSpecial, + null, + aFluidInputs, + aFluidOutputs, + aDuration, + aEUt, + aSpecialValue, + aAlt), + hidden); } /** @@ -3741,10 +3703,9 @@ public class GT_Recipe implements Comparable { for (GT_Recipe r : recipes) { if (recipeConfigCategory != null) { String configKey = recipeConfigKeyConvertor.apply(r); - if (configKey != null && (r.mDuration = GregTech_API.sRecipeFile.get( - recipeConfigCategory, - configKey, - r.mDuration)) <= 0) { + if (configKey != null + && (r.mDuration = GregTech_API.sRecipeFile.get(recipeConfigCategory, configKey, r.mDuration)) + <= 0) { continue; } } @@ -3766,8 +3727,7 @@ public class GT_Recipe implements Comparable { if (specialHandler != null) r = specialHandler.apply(r); if (r == null) continue; if (checkForCollision - && findRecipe(null, false, true, Long.MAX_VALUE, r.mFluidInputs, r.mInputs) != null) - continue; + && findRecipe(null, false, true, Long.MAX_VALUE, r.mFluidInputs, r.mInputs) != null) continue; ret.add(add(r)); } if (!ret.isEmpty()) { @@ -3796,13 +3756,12 @@ public class GT_Recipe implements Comparable { mRecipeList.add(aRecipe); for (FluidStack aFluid : aRecipe.mFluidInputs) { if (aFluid != null) { - Collection tList = mRecipeFluidMap.computeIfAbsent( - aFluid.getFluid(), - k -> new HashSet<>(1)); + Collection tList = mRecipeFluidMap + .computeIfAbsent(aFluid.getFluid(), k -> new HashSet<>(1)); tList.add(aRecipe); mRecipeFluidNameMap.add( - aFluid.getFluid() - .getName()); + aFluid.getFluid() + .getName()); } } if (aRecipe.mFluidOutputs.length != 0) { @@ -3828,7 +3787,7 @@ public class GT_Recipe implements Comparable { */ public boolean containsInput(ItemStack aStack) { return aStack != null && (mRecipeItemMap.containsKey(new GT_ItemStack(aStack)) - || mRecipeItemMap.containsKey(new GT_ItemStack(aStack, true))); + || mRecipeItemMap.containsKey(new GT_ItemStack(aStack, true))); } /** @@ -3846,43 +3805,43 @@ public class GT_Recipe implements Comparable { } public GT_Recipe findRecipe(IHasWorldObjectAndCoords aTileEntity, boolean aNotUnificated, long aVoltage, - FluidStack[] aFluids, ItemStack... aInputs) { + FluidStack[] aFluids, ItemStack... aInputs) { return findRecipe(aTileEntity, null, aNotUnificated, aVoltage, aFluids, null, aInputs); } public GT_Recipe findRecipe(IHasWorldObjectAndCoords aTileEntity, boolean aNotUnificated, - boolean aDontCheckStackSizes, long aVoltage, FluidStack[] aFluids, ItemStack... aInputs) { + boolean aDontCheckStackSizes, long aVoltage, FluidStack[] aFluids, ItemStack... aInputs) { return findRecipe( - aTileEntity, - null, - aNotUnificated, - aDontCheckStackSizes, - aVoltage, - aFluids, - null, - aInputs); + aTileEntity, + null, + aNotUnificated, + aDontCheckStackSizes, + aVoltage, + aFluids, + null, + aInputs); } public GT_Recipe findRecipe(IHasWorldObjectAndCoords aTileEntity, GT_Recipe aRecipe, boolean aNotUnificated, - long aVoltage, FluidStack[] aFluids, ItemStack... aInputs) { + long aVoltage, FluidStack[] aFluids, ItemStack... aInputs) { return findRecipe(aTileEntity, aRecipe, aNotUnificated, aVoltage, aFluids, null, aInputs); } public GT_Recipe findRecipe(IHasWorldObjectAndCoords aTileEntity, GT_Recipe aRecipe, boolean aNotUnificated, - boolean aDontCheckStackSizes, long aVoltage, FluidStack[] aFluids, ItemStack... aInputs) { + boolean aDontCheckStackSizes, long aVoltage, FluidStack[] aFluids, ItemStack... aInputs) { return findRecipe( - aTileEntity, - aRecipe, - aNotUnificated, - aDontCheckStackSizes, - aVoltage, - aFluids, - null, - aInputs); + aTileEntity, + aRecipe, + aNotUnificated, + aDontCheckStackSizes, + aVoltage, + aFluids, + null, + aInputs); } public GT_Recipe findRecipe(IHasWorldObjectAndCoords aTileEntity, GT_Recipe aRecipe, boolean aNotUnificated, - long aVoltage, FluidStack[] aFluids, ItemStack aSpecialSlot, ItemStack... aInputs) { + long aVoltage, FluidStack[] aFluids, ItemStack aSpecialSlot, ItemStack... aInputs) { return findRecipe(aTileEntity, aRecipe, aNotUnificated, false, aVoltage, aFluids, aSpecialSlot, aInputs); } @@ -3904,8 +3863,8 @@ public class GT_Recipe implements Comparable { * @return the Recipe it has found or null for no matching Recipe */ public GT_Recipe findRecipe(IHasWorldObjectAndCoords aTileEntity, GT_Recipe aRecipe, boolean aNotUnificated, - boolean aDontCheckStackSizes, long aVoltage, FluidStack[] aFluids, ItemStack aSpecialSlot, - ItemStack... aInputs) { + boolean aDontCheckStackSizes, long aVoltage, FluidStack[] aFluids, ItemStack aSpecialSlot, + ItemStack... aInputs) { // No Recipes? Well, nothing to be found then. if (mRecipeList.isEmpty()) return null; @@ -3933,18 +3892,18 @@ public class GT_Recipe implements Comparable { // Check the Recipe which has been used last time in order to not have to search for it again, if possible. if (aRecipe != null) if (!aRecipe.mFakeRecipe && aRecipe.mCanBeBuffered - && aRecipe.isRecipeInputEqual(false, aDontCheckStackSizes, aFluids, aInputs)) + && aRecipe.isRecipeInputEqual(false, aDontCheckStackSizes, aFluids, aInputs)) return aRecipe.mEnabled && aVoltage * mAmperage >= aRecipe.mEUt ? aRecipe : null; // Now look for the Recipes inside the Item HashMaps, but only when the Recipes usually have Items. if (mUsualInputCount > 0 && aInputs != null) for (ItemStack tStack : aInputs) if (tStack != null) { Collection tRecipes = mRecipeItemMap.get(new GT_ItemStack(tStack)); if (tRecipes != null) for (GT_Recipe tRecipe : tRecipes) if (!tRecipe.mFakeRecipe - && tRecipe.isRecipeInputEqual(false, aDontCheckStackSizes, aFluids, aInputs)) + && tRecipe.isRecipeInputEqual(false, aDontCheckStackSizes, aFluids, aInputs)) return tRecipe.mEnabled && aVoltage * mAmperage >= tRecipe.mEUt ? tRecipe : null; tRecipes = mRecipeItemMap.get(new GT_ItemStack(tStack, true)); if (tRecipes != null) for (GT_Recipe tRecipe : tRecipes) if (!tRecipe.mFakeRecipe - && tRecipe.isRecipeInputEqual(false, aDontCheckStackSizes, aFluids, aInputs)) + && tRecipe.isRecipeInputEqual(false, aDontCheckStackSizes, aFluids, aInputs)) return tRecipe.mEnabled && aVoltage * mAmperage >= tRecipe.mEUt ? tRecipe : null; } @@ -3953,7 +3912,7 @@ public class GT_Recipe implements Comparable { if (mMinimalInputItems == 0 && aFluids != null) for (FluidStack aFluid : aFluids) if (aFluid != null) { Collection tRecipes = mRecipeFluidMap.get(aFluid.getFluid()); if (tRecipes != null) for (GT_Recipe tRecipe : tRecipes) if (!tRecipe.mFakeRecipe - && tRecipe.isRecipeInputEqual(false, aDontCheckStackSizes, aFluids, aInputs)) + && tRecipe.isRecipeInputEqual(false, aDontCheckStackSizes, aFluids, aInputs)) return tRecipe.mEnabled && aVoltage * mAmperage >= tRecipe.mEUt ? tRecipe : null; } @@ -4002,8 +3961,8 @@ public class GT_Recipe implements Comparable { @Nullable public IDrawable getOverlayForSlot(boolean isFluid, boolean isOutput, int index, boolean isSpecial) { byte overlayKey = (byte) ((isFluid ? 1 : 0) + (isOutput ? 2 : 0) - + (index == 0 ? 4 : 0) - + (isSpecial ? 8 : 0)); + + (index == 0 ? 4 : 0) + + (isSpecial ? 8 : 0)); if (slotOverlays.containsKey(overlayKey)) { return slotOverlays.get(overlayKey); } @@ -4013,8 +3972,8 @@ public class GT_Recipe implements Comparable { @Nullable public SteamTexture getOverlayForSlotSteam(boolean isFluid, boolean isOutput, int index, boolean isSpecial) { byte overlayKey = (byte) ((isFluid ? 1 : 0) + (isOutput ? 2 : 0) - + (index == 0 ? 4 : 0) - + (isSpecial ? 8 : 0)); + + (index == 0 ? 4 : 0) + + (isSpecial ? 8 : 0)); if (slotOverlaysSteam.containsKey(overlayKey)) { return slotOverlaysSteam.get(overlayKey); } @@ -4057,92 +4016,92 @@ public class GT_Recipe implements Comparable { * Adds slot backgrounds, progressBar, etc. */ public ModularWindow.Builder createNEITemplate(IItemHandlerModifiable itemInputsInventory, - IItemHandlerModifiable itemOutputsInventory, IItemHandlerModifiable specialSlotInventory, - IItemHandlerModifiable fluidInputsInventory, IItemHandlerModifiable fluidOutputsInventory, - Supplier progressSupplier, Pos2d windowOffset) { + IItemHandlerModifiable itemOutputsInventory, IItemHandlerModifiable specialSlotInventory, + IItemHandlerModifiable fluidInputsInventory, IItemHandlerModifiable fluidOutputsInventory, + Supplier progressSupplier, Pos2d windowOffset) { ModularWindow.Builder builder = ModularWindow.builder(neiBackgroundSize) - .setBackground(ModularUITextures.VANILLA_BACKGROUND); + .setBackground(ModularUITextures.VANILLA_BACKGROUND); UIHelper.forEachSlots( - (i, backgrounds, pos) -> builder.widget( - SlotWidget.phantom(itemInputsInventory, i) - .setBackground(backgrounds) - .setPos(pos) - .setSize(18, 18)), - (i, backgrounds, pos) -> builder.widget( - SlotWidget.phantom(itemOutputsInventory, i) - .setBackground(backgrounds) - .setPos(pos) - .setSize(18, 18)), - (i, backgrounds, pos) -> { - if (usesSpecialSlot()) builder.widget( - SlotWidget.phantom(specialSlotInventory, 0) - .setBackground(backgrounds) - .setPos(pos) - .setSize(18, 18)); - }, - (i, backgrounds, pos) -> builder.widget( - SlotWidget.phantom(fluidInputsInventory, i) - .setBackground(backgrounds) - .setPos(pos) - .setSize(18, 18)), - (i, backgrounds, pos) -> builder.widget( - SlotWidget.phantom(fluidOutputsInventory, i) - .setBackground(backgrounds) - .setPos(pos) - .setSize(18, 18)), - ModularUITextures.ITEM_SLOT, - ModularUITextures.FLUID_SLOT, - this, - mUsualInputCount, - mUsualOutputCount, - getUsualFluidInputCount(), - getUsualFluidOutputCount(), - SteamVariant.NONE, - windowOffset); + (i, backgrounds, pos) -> builder.widget( + SlotWidget.phantom(itemInputsInventory, i) + .setBackground(backgrounds) + .setPos(pos) + .setSize(18, 18)), + (i, backgrounds, pos) -> builder.widget( + SlotWidget.phantom(itemOutputsInventory, i) + .setBackground(backgrounds) + .setPos(pos) + .setSize(18, 18)), + (i, backgrounds, pos) -> { + if (usesSpecialSlot()) builder.widget( + SlotWidget.phantom(specialSlotInventory, 0) + .setBackground(backgrounds) + .setPos(pos) + .setSize(18, 18)); + }, + (i, backgrounds, pos) -> builder.widget( + SlotWidget.phantom(fluidInputsInventory, i) + .setBackground(backgrounds) + .setPos(pos) + .setSize(18, 18)), + (i, backgrounds, pos) -> builder.widget( + SlotWidget.phantom(fluidOutputsInventory, i) + .setBackground(backgrounds) + .setPos(pos) + .setSize(18, 18)), + ModularUITextures.ITEM_SLOT, + ModularUITextures.FLUID_SLOT, + this, + mUsualInputCount, + mUsualOutputCount, + getUsualFluidInputCount(), + getUsualFluidOutputCount(), + SteamVariant.NONE, + windowOffset); addProgressBarUI(builder, progressSupplier, windowOffset); addGregTechLogoUI(builder, windowOffset); for (Pair> specialTexture : specialTextures) { builder.widget( - new DrawableWidget().setDrawable(specialTexture.getLeft()) - .setSize( - specialTexture.getRight() - .getLeft()) - .setPos( - specialTexture.getRight() - .getRight() - .add(windowOffset))); + new DrawableWidget().setDrawable(specialTexture.getLeft()) + .setSize( + specialTexture.getRight() + .getLeft()) + .setPos( + specialTexture.getRight() + .getRight() + .add(windowOffset))); } return builder; } public void addProgressBarUI(ModularWindow.Builder builder, Supplier progressSupplier, - Pos2d windowOffset) { + Pos2d windowOffset) { builder.widget( - new ProgressBar().setTexture(getProgressBarTexture(), 20) - .setDirection(progressBarDirection) - .setProgress(progressSupplier) - .setSynced(false, false) - .setPos(progressBarPos.add(windowOffset)) - .setSize(progressBarSize)); + new ProgressBar().setTexture(getProgressBarTexture(), 20) + .setDirection(progressBarDirection) + .setProgress(progressSupplier) + .setSynced(false, false) + .setPos(progressBarPos.add(windowOffset)) + .setSize(progressBarSize)); } public void addGregTechLogoUI(ModularWindow.Builder builder, Pos2d windowOffset) { builder.widget( - new DrawableWidget().setDrawable(logo) - .setSize(logoSize) - .setPos(logoPos.add(windowOffset))); + new DrawableWidget().setDrawable(logo) + .setSize(logoSize) + .setPos(logoPos.add(windowOffset))); } public void addRecipeSpecificDrawable(ModularWindow.Builder builder, Pos2d windowOffset, - Supplier supplier, Pos2d pos, Size size) { + Supplier supplier, Pos2d pos, Size size) { builder.widget( - new DrawableWidget().setDrawable(supplier) - .setSize(size) - .setPos(pos.add(windowOffset))); + new DrawableWidget().setDrawable(supplier) + .setSize(size) + .setPos(pos.add(windowOffset))); } /** @@ -4202,8 +4161,8 @@ public class GT_Recipe implements Comparable { if (!(originalPower instanceof UnspecifiedEUPower)) { originalPower.computePowerUsageAndDuration(recipe.mEUt, recipe.mDuration); drawNEIText( - recipeInfo, - GT_Utility.trans("275", "Original voltage: ") + originalPower.getVoltageString()); + recipeInfo, + GT_Utility.trans("275", "Original voltage: ") + originalPower.getVoltageString()); } } if (amperage != null && !amperage.equals("unspecified") && !amperage.equals("1")) { @@ -4243,8 +4202,8 @@ public class GT_Recipe implements Comparable { } } else if (neiSpecialInfoFormatter != null) { drawNEITextMultipleLines( - recipeInfo, - neiSpecialInfoFormatter.format(recipeInfo, this::formatSpecialValue)); + recipeInfo, + neiSpecialInfoFormatter.format(recipeInfo, this::formatSpecialValue)); } else { drawOptionalNEIText(recipeInfo, getNEISpecialInfo(recipeInfo.recipe.mSpecialValue)); } @@ -4273,7 +4232,7 @@ public class GT_Recipe implements Comparable { protected String formatSpecialValue(int specialValue) { return mNEISpecialValuePre + formatNumbers((long) specialValue * mNEISpecialValueMultiplier) - + mNEISpecialValuePost; + + mNEISpecialValuePost; } protected void drawNEIRecipeOwnerInfo(NEIRecipeInfo recipeInfo) { @@ -4281,27 +4240,27 @@ public class GT_Recipe implements Comparable { if (GT_Mod.gregtechproxy.mNEIRecipeOwner) { if (recipe.owners.size() > 1) { drawNEIText( - recipeInfo, - EnumChatFormatting.ITALIC + GT_Utility.trans("273", "Original Recipe by: ") - + recipe.owners.get(0) - .getName()); + recipeInfo, + EnumChatFormatting.ITALIC + GT_Utility.trans("273", "Original Recipe by: ") + + recipe.owners.get(0) + .getName()); for (int i = 1; i < recipe.owners.size(); i++) { drawNEIText( - recipeInfo, - EnumChatFormatting.ITALIC + GT_Utility.trans("274", "Modified by: ") - + recipe.owners.get(i) - .getName()); + recipeInfo, + EnumChatFormatting.ITALIC + GT_Utility.trans("274", "Modified by: ") + + recipe.owners.get(i) + .getName()); } } else if (recipe.owners.size() > 0) { drawNEIText( - recipeInfo, - EnumChatFormatting.ITALIC + GT_Utility.trans("272", "Recipe by: ") - + recipe.owners.get(0) - .getName()); + recipeInfo, + EnumChatFormatting.ITALIC + GT_Utility.trans("272", "Recipe by: ") + + recipe.owners.get(0) + .getName()); } } if (GT_Mod.gregtechproxy.mNEIRecipeOwnerStackTrace && recipe.stackTraces != null - && !recipe.stackTraces.isEmpty()) { + && !recipe.stackTraces.isEmpty()) { drawNEIText(recipeInfo, "stackTrace:"); // todo: good way to show all stacktraces for (StackTraceElement stackTrace : recipe.stackTraces.get(0)) { @@ -4333,10 +4292,10 @@ public class GT_Recipe implements Comparable { @SuppressWarnings("SameParameterValue") protected void drawNEIText(NEIRecipeInfo recipeInfo, String text, int xStart, int yShift) { Minecraft.getMinecraft().fontRenderer.drawString( - text, - xStart, - recipeInfo.yPos, - neiTextColorOverride != -1 ? neiTextColorOverride : 0x000000); + text, + xStart, + recipeInfo.yPos, + neiTextColorOverride != -1 ? neiTextColorOverride : 0x000000); recipeInfo.yPos += yShift; } @@ -4353,13 +4312,13 @@ public class GT_Recipe implements Comparable { } public List handleNEIItemTooltip(ItemStack stack, List currentTip, - GT_NEI_DefaultHandler.CachedDefaultRecipe neiCachedRecipe) { + GT_NEI_DefaultHandler.CachedDefaultRecipe neiCachedRecipe) { for (PositionedStack pStack : neiCachedRecipe.mInputs) { if (stack == pStack.item) { if (pStack instanceof GT_NEI_DefaultHandler.FixedPositionedStack) { currentTip = handleNEIItemInputTooltip( - currentTip, - (GT_NEI_DefaultHandler.FixedPositionedStack) pStack); + currentTip, + (GT_NEI_DefaultHandler.FixedPositionedStack) pStack); } break; } @@ -4368,8 +4327,8 @@ public class GT_Recipe implements Comparable { if (stack == pStack.item) { if (pStack instanceof GT_NEI_DefaultHandler.FixedPositionedStack) { currentTip = handleNEIItemOutputTooltip( - currentTip, - (GT_NEI_DefaultHandler.FixedPositionedStack) pStack); + currentTip, + (GT_NEI_DefaultHandler.FixedPositionedStack) pStack); } break; } @@ -4378,7 +4337,7 @@ public class GT_Recipe implements Comparable { } protected List handleNEIItemInputTooltip(List currentTip, - GT_NEI_DefaultHandler.FixedPositionedStack pStack) { + GT_NEI_DefaultHandler.FixedPositionedStack pStack) { if (pStack.isNotConsumed()) { currentTip.add(GRAY + GT_Utility.trans("151", "Does not get consumed in the process")); } @@ -4386,7 +4345,7 @@ public class GT_Recipe implements Comparable { } protected List handleNEIItemOutputTooltip(List currentTip, - GT_NEI_DefaultHandler.FixedPositionedStack pStack) { + GT_NEI_DefaultHandler.FixedPositionedStack pStack) { if (pStack.isChanceBased()) { currentTip.add(GRAY + GT_Utility.trans("150", "Chance: ") + pStack.getChanceText()); } @@ -4420,13 +4379,13 @@ public class GT_Recipe implements Comparable { @SuppressWarnings("SameParameterValue") protected void drawNEIOverlayText(String text, PositionedStack stack, int color, float scale, boolean shadow, - Alignment alignment) { + Alignment alignment) { FontRenderer fontRenderer = Minecraft.getMinecraft().fontRenderer; int width = fontRenderer.getStringWidth(text); int x = (int) ((stack.relx + 8 + 8 * alignment.x) / scale) - (width / 2 * (alignment.x + 1)); int y = (int) ((stack.rely + 8 + 8 * alignment.y) / scale) - - (fontRenderer.FONT_HEIGHT / 2 * (alignment.y + 1)) - - (alignment.y - 1) / 2; + - (fontRenderer.FONT_HEIGHT / 2 * (alignment.y + 1)) + - (alignment.y - 1) / 2; GlStateManager.pushMatrix(); GlStateManager.scale(scale, scale, 1); @@ -4436,12 +4395,12 @@ public class GT_Recipe implements Comparable { protected void drawNEIOverlayText(String text, PositionedStack stack) { drawNEIOverlayText( - text, - stack, - colorOverride.getTextColorOrDefault("nei_overlay_yellow", 0xFDD835), - 0.5f, - false, - Alignment.TopLeft); + text, + stack, + colorOverride.getTextColorOrDefault("nei_overlay_yellow", 0xFDD835), + 0.5f, + false, + Alignment.TopLeft); } public void updateNEITextColorOverride() { @@ -4494,26 +4453,25 @@ public class GT_Recipe implements Comparable { private static final int yOrigin = 8; public GT_Recipe_Map_LargeNEI(Collection aRecipeList, String aUnlocalizedName, String aLocalName, - String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, - int aMinimalInputItems, int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, - int aNEISpecialValueMultiplier, String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, - boolean aNEIAllowed) { + String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, int aMinimalInputItems, + int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, int aNEISpecialValueMultiplier, + String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, boolean aNEIAllowed) { super( - aRecipeList, - aUnlocalizedName, - aLocalName, - aNEIName, - aNEIGUIPath, - aUsualInputCount, - aUsualOutputCount, - aMinimalInputItems, - aMinimalInputFluids, - aAmperage, - aNEISpecialValuePre, - aNEISpecialValueMultiplier, - aNEISpecialValuePost, - aShowVoltageAmperageInNEI, - aNEIAllowed); + aRecipeList, + aUnlocalizedName, + aLocalName, + aNEIName, + aNEIGUIPath, + aUsualInputCount, + aUsualOutputCount, + aMinimalInputItems, + aMinimalInputFluids, + aAmperage, + aNEISpecialValuePre, + aNEISpecialValueMultiplier, + aNEISpecialValuePost, + aShowVoltageAmperageInNEI, + aNEIAllowed); useModularUI(true); setLogoPos(80, 62); } @@ -4540,19 +4498,19 @@ public class GT_Recipe implements Comparable { @Override public ModularWindow.Builder createNEITemplate(IItemHandlerModifiable itemInputsInventory, - IItemHandlerModifiable itemOutputsInventory, IItemHandlerModifiable specialSlotInventory, - IItemHandlerModifiable fluidInputsInventory, IItemHandlerModifiable fluidOutputsInventory, - Supplier progressSupplier, Pos2d windowOffset) { + IItemHandlerModifiable itemOutputsInventory, IItemHandlerModifiable specialSlotInventory, + IItemHandlerModifiable fluidInputsInventory, IItemHandlerModifiable fluidOutputsInventory, + Supplier progressSupplier, Pos2d windowOffset) { // Delay setter so that calls to #setUsualFluidInputCount and #setUsualFluidOutputCount are considered setNEIBackgroundSize(172, 82 + (Math.max(getItemRowCount() + getFluidRowCount() - 4, 0)) * 18); return super.createNEITemplate( - itemInputsInventory, - itemOutputsInventory, - specialSlotInventory, - fluidInputsInventory, - fluidOutputsInventory, - progressSupplier, - windowOffset); + itemInputsInventory, + itemOutputsInventory, + specialSlotInventory, + fluidInputsInventory, + fluidOutputsInventory, + progressSupplier, + windowOffset); } private int getItemRowCount() { @@ -4564,32 +4522,31 @@ public class GT_Recipe implements Comparable { } } - /** - * Display fluids where normally items are placed on NEI. - */ - public static class GT_Recipe_Map_FluidOnly extends GT_Recipe_Map { - - public GT_Recipe_Map_FluidOnly(Collection aRecipeList, String aUnlocalizedName, String aLocalName, - String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, - int aMinimalInputItems, int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, - int aNEISpecialValueMultiplier, String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, - boolean aNEIAllowed) { - super( - aRecipeList, - aUnlocalizedName, - aLocalName, - aNEIName, - aNEIGUIPath, - aUsualInputCount, - aUsualOutputCount, - aMinimalInputItems, - aMinimalInputFluids, - aAmperage, - aNEISpecialValuePre, - aNEISpecialValueMultiplier, - aNEISpecialValuePost, - aShowVoltageAmperageInNEI, - aNEIAllowed); + /** + * Display fluids where normally items are placed on NEI. + */ + public static class GT_Recipe_Map_FluidOnly extends GT_Recipe_Map { + + public GT_Recipe_Map_FluidOnly(Collection aRecipeList, String aUnlocalizedName, String aLocalName, + String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, int aMinimalInputItems, + int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, int aNEISpecialValueMultiplier, + String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, boolean aNEIAllowed) { + super( + aRecipeList, + aUnlocalizedName, + aLocalName, + aNEIName, + aNEIGUIPath, + aUsualInputCount, + aUsualOutputCount, + aMinimalInputItems, + aMinimalInputFluids, + aAmperage, + aNEISpecialValuePre, + aNEISpecialValueMultiplier, + aNEISpecialValuePost, + aShowVoltageAmperageInNEI, + aNEIAllowed); useModularUI(true); } @@ -4610,26 +4567,25 @@ public class GT_Recipe implements Comparable { public abstract static class GT_Recipe_Map_NonGTRecipes extends GT_Recipe_Map { public GT_Recipe_Map_NonGTRecipes(Collection aRecipeList, String aUnlocalizedName, String aLocalName, - String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, - int aMinimalInputItems, int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, - int aNEISpecialValueMultiplier, String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, - boolean aNEIAllowed) { + String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, int aMinimalInputItems, + int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, int aNEISpecialValueMultiplier, + String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, boolean aNEIAllowed) { super( - aRecipeList, - aUnlocalizedName, - aLocalName, - aNEIName, - aNEIGUIPath, - aUsualInputCount, - aUsualOutputCount, - aMinimalInputItems, - aMinimalInputFluids, - aAmperage, - aNEISpecialValuePre, - aNEISpecialValueMultiplier, - aNEISpecialValuePost, - aShowVoltageAmperageInNEI, - aNEIAllowed); + aRecipeList, + aUnlocalizedName, + aLocalName, + aNEIName, + aNEIGUIPath, + aUsualInputCount, + aUsualOutputCount, + aMinimalInputItems, + aMinimalInputFluids, + aAmperage, + aNEISpecialValuePre, + aNEISpecialValueMultiplier, + aNEISpecialValuePost, + aShowVoltageAmperageInNEI, + aNEIAllowed); } @Override @@ -4649,14 +4605,14 @@ public class GT_Recipe implements Comparable { @Override public GT_Recipe addRecipe(boolean aOptimize, ItemStack[] aInputs, ItemStack[] aOutputs, Object aSpecial, - int[] aOutputChances, FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs, int aDuration, int aEUt, - int aSpecialValue) { + int[] aOutputChances, FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs, int aDuration, int aEUt, + int aSpecialValue) { return null; } @Override public GT_Recipe addRecipe(boolean aOptimize, ItemStack[] aInputs, ItemStack[] aOutputs, Object aSpecial, - FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs, int aDuration, int aEUt, int aSpecialValue) { + FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs, int aDuration, int aEUt, int aSpecialValue) { return null; } @@ -4667,22 +4623,22 @@ public class GT_Recipe implements Comparable { @Override public GT_Recipe addFakeRecipe(boolean aCheckForCollisions, ItemStack[] aInputs, ItemStack[] aOutputs, - Object aSpecial, int[] aOutputChances, FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs, - int aDuration, int aEUt, int aSpecialValue) { + Object aSpecial, int[] aOutputChances, FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs, int aDuration, + int aEUt, int aSpecialValue) { return null; } @Override public GT_Recipe addFakeRecipe(boolean aCheckForCollisions, ItemStack[] aInputs, ItemStack[] aOutputs, - Object aSpecial, FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs, int aDuration, int aEUt, - int aSpecialValue) { + Object aSpecial, FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs, int aDuration, int aEUt, + int aSpecialValue) { return null; } @Override public GT_Recipe addFakeRecipe(boolean aCheckForCollisions, ItemStack[] aInputs, ItemStack[] aOutputs, - Object aSpecial, FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs, int aDuration, int aEUt, - int aSpecialValue, boolean hidden) { + Object aSpecial, FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs, int aDuration, int aEUt, + int aSpecialValue, boolean hidden) { return null; } @@ -4715,26 +4671,25 @@ public class GT_Recipe implements Comparable { private final Map mRecipesByFluidInput = new HashMap<>(); public GT_Recipe_Map_Fuel(Collection aRecipeList, String aUnlocalizedName, String aLocalName, - String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, - int aMinimalInputItems, int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, - int aNEISpecialValueMultiplier, String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, - boolean aNEIAllowed) { + String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, int aMinimalInputItems, + int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, int aNEISpecialValueMultiplier, + String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, boolean aNEIAllowed) { super( - aRecipeList, - aUnlocalizedName, - aLocalName, - aNEIName, - aNEIGUIPath, - aUsualInputCount, - aUsualOutputCount, - aMinimalInputItems, - aMinimalInputFluids, - aAmperage, - aNEISpecialValuePre, - aNEISpecialValueMultiplier, - aNEISpecialValuePost, - aShowVoltageAmperageInNEI, - aNEIAllowed); + aRecipeList, + aUnlocalizedName, + aLocalName, + aNEIName, + aNEIGUIPath, + aUsualInputCount, + aUsualOutputCount, + aMinimalInputItems, + aMinimalInputFluids, + aAmperage, + aNEISpecialValuePre, + aNEISpecialValueMultiplier, + aNEISpecialValuePost, + aShowVoltageAmperageInNEI, + aNEIAllowed); setDisableOptimize(true); } @@ -4751,41 +4706,41 @@ public class GT_Recipe implements Comparable { } public GT_Recipe addFuel(ItemStack aInput, ItemStack aOutput, FluidStack aFluidInput, FluidStack aFluidOutput, - int aFuelValueInEU) { + int aFuelValueInEU) { return addFuel(aInput, aOutput, aFluidInput, aFluidOutput, 10000, aFuelValueInEU); } public GT_Recipe addFuel(ItemStack aInput, ItemStack aOutput, FluidStack aFluidInput, FluidStack aFluidOutput, - int aChance, int aFuelValueInEU) { + int aChance, int aFuelValueInEU) { return addRecipe( - true, - new ItemStack[] { aInput }, - new ItemStack[] { aOutput }, - null, - new int[] { aChance }, - new FluidStack[] { aFluidInput }, - new FluidStack[] { aFluidOutput }, - 0, - 0, - aFuelValueInEU); + true, + new ItemStack[] { aInput }, + new ItemStack[] { aOutput }, + null, + new int[] { aChance }, + new FluidStack[] { aFluidInput }, + new FluidStack[] { aFluidOutput }, + 0, + 0, + aFuelValueInEU); } @Override public GT_Recipe add(GT_Recipe aRecipe) { aRecipe = super.add(aRecipe); if (aRecipe.mInputs != null && GT_Utility.getNonnullElementCount(aRecipe.mInputs) == 1 - && (aRecipe.mFluidInputs == null || GT_Utility.getNonnullElementCount(aRecipe.mFluidInputs) == 0)) { + && (aRecipe.mFluidInputs == null || GT_Utility.getNonnullElementCount(aRecipe.mFluidInputs) == 0)) { FluidStack tFluid = GT_Utility.getFluidForFilledItem(aRecipe.mInputs[0], true); if (tFluid != null) { tFluid.amount = 0; mRecipesByFluidInput.put(tFluid.getUnlocalizedName(), aRecipe); } } else if ((aRecipe.mInputs == null || GT_Utility.getNonnullElementCount(aRecipe.mInputs) == 0) - && aRecipe.mFluidInputs != null - && GT_Utility.getNonnullElementCount(aRecipe.mFluidInputs) == 1 - && aRecipe.mFluidInputs[0] != null) { - mRecipesByFluidInput.put(aRecipe.mFluidInputs[0].getUnlocalizedName(), aRecipe); - } + && aRecipe.mFluidInputs != null + && GT_Utility.getNonnullElementCount(aRecipe.mFluidInputs) == 1 + && aRecipe.mFluidInputs[0] != null) { + mRecipesByFluidInput.put(aRecipe.mFluidInputs[0].getUnlocalizedName(), aRecipe); + } return aRecipe; } @@ -4800,46 +4755,45 @@ public class GT_Recipe implements Comparable { public static class GT_Recipe_Map_Furnace extends GT_Recipe_Map_NonGTRecipes { public GT_Recipe_Map_Furnace(Collection aRecipeList, String aUnlocalizedName, String aLocalName, - String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, - int aMinimalInputItems, int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, - int aNEISpecialValueMultiplier, String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, - boolean aNEIAllowed) { + String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, int aMinimalInputItems, + int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, int aNEISpecialValueMultiplier, + String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, boolean aNEIAllowed) { super( - aRecipeList, - aUnlocalizedName, - aLocalName, - aNEIName, - aNEIGUIPath, - aUsualInputCount, - aUsualOutputCount, - aMinimalInputItems, - aMinimalInputFluids, - aAmperage, - aNEISpecialValuePre, - aNEISpecialValueMultiplier, - aNEISpecialValuePost, - aShowVoltageAmperageInNEI, - aNEIAllowed); + aRecipeList, + aUnlocalizedName, + aLocalName, + aNEIName, + aNEIGUIPath, + aUsualInputCount, + aUsualOutputCount, + aMinimalInputItems, + aMinimalInputFluids, + aAmperage, + aNEISpecialValuePre, + aNEISpecialValueMultiplier, + aNEISpecialValuePost, + aShowVoltageAmperageInNEI, + aNEIAllowed); } @Override public GT_Recipe findRecipe(IHasWorldObjectAndCoords aTileEntity, GT_Recipe aRecipe, boolean aNotUnificated, - long aVoltage, FluidStack[] aFluids, ItemStack aSpecialSlot, ItemStack... aInputs) { + long aVoltage, FluidStack[] aFluids, ItemStack aSpecialSlot, ItemStack... aInputs) { if (aInputs == null || aInputs.length <= 0 || aInputs[0] == null) return null; if (aRecipe != null && aRecipe.isRecipeInputEqual(false, true, aFluids, aInputs)) return aRecipe; ItemStack tOutput = GT_ModHandler.getSmeltingOutput(aInputs[0], false, null); return tOutput == null ? null - : new GT_Recipe( - false, - new ItemStack[] { GT_Utility.copyAmount(1, aInputs[0]) }, - new ItemStack[] { tOutput }, - null, - null, - null, - null, - 128, - 4, - 0); + : new GT_Recipe( + false, + new ItemStack[] { GT_Utility.copyAmount(1, aInputs[0]) }, + new ItemStack[] { tOutput }, + null, + null, + null, + null, + 128, + 4, + 0); } @Override @@ -4854,64 +4808,61 @@ public class GT_Recipe implements Comparable { public static class GT_Recipe_Map_Microwave extends GT_Recipe_Map_NonGTRecipes { public GT_Recipe_Map_Microwave(Collection aRecipeList, String aUnlocalizedName, String aLocalName, - String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, - int aMinimalInputItems, int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, - int aNEISpecialValueMultiplier, String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, - boolean aNEIAllowed) { + String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, int aMinimalInputItems, + int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, int aNEISpecialValueMultiplier, + String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, boolean aNEIAllowed) { super( - aRecipeList, - aUnlocalizedName, - aLocalName, - aNEIName, - aNEIGUIPath, - aUsualInputCount, - aUsualOutputCount, - aMinimalInputItems, - aMinimalInputFluids, - aAmperage, - aNEISpecialValuePre, - aNEISpecialValueMultiplier, - aNEISpecialValuePost, - aShowVoltageAmperageInNEI, - aNEIAllowed); + aRecipeList, + aUnlocalizedName, + aLocalName, + aNEIName, + aNEIGUIPath, + aUsualInputCount, + aUsualOutputCount, + aMinimalInputItems, + aMinimalInputFluids, + aAmperage, + aNEISpecialValuePre, + aNEISpecialValueMultiplier, + aNEISpecialValuePost, + aShowVoltageAmperageInNEI, + aNEIAllowed); } @Override public GT_Recipe findRecipe(IHasWorldObjectAndCoords aTileEntity, GT_Recipe aRecipe, boolean aNotUnificated, - long aVoltage, FluidStack[] aFluids, ItemStack aSpecialSlot, ItemStack... aInputs) { + long aVoltage, FluidStack[] aFluids, ItemStack aSpecialSlot, ItemStack... aInputs) { if (aInputs == null || aInputs.length <= 0 || aInputs[0] == null) return null; if (aRecipe != null && aRecipe.isRecipeInputEqual(false, true, aFluids, aInputs)) return aRecipe; ItemStack tOutput = GT_ModHandler.getSmeltingOutput(aInputs[0], false, null); if (GT_Utility.areStacksEqual(aInputs[0], new ItemStack(Items.book, 1, W))) { return new GT_Recipe( - false, - new ItemStack[] { GT_Utility.copyAmount(1, aInputs[0]) }, - new ItemStack[] { - GT_Utility.getWrittenBook("Manual_Microwave", ItemList.Book_Written_03.get(1)) }, - null, - null, - null, - null, - 32, - 4, - 0); + false, + new ItemStack[] { GT_Utility.copyAmount(1, aInputs[0]) }, + new ItemStack[] { GT_Utility.getWrittenBook("Manual_Microwave", ItemList.Book_Written_03.get(1)) }, + null, + null, + null, + null, + 32, + 4, + 0); } // Check Container Item of Input since it is around the Input, then the Input itself, then Container Item of // Output and last check the Output itself for (ItemStack tStack : new ItemStack[] { GT_Utility.getContainerItem(aInputs[0], true), aInputs[0], - GT_Utility.getContainerItem(tOutput, true), tOutput }) - if (tStack != null) { + GT_Utility.getContainerItem(tOutput, true), tOutput }) if (tStack != null) { if (GT_Utility.areStacksEqual(tStack, new ItemStack(Blocks.netherrack, 1, W), true) - || GT_Utility.areStacksEqual(tStack, new ItemStack(Blocks.tnt, 1, W), true) - || GT_Utility.areStacksEqual(tStack, new ItemStack(Items.egg, 1, W), true) - || GT_Utility.areStacksEqual(tStack, new ItemStack(Items.firework_charge, 1, W), true) - || GT_Utility.areStacksEqual(tStack, new ItemStack(Items.fireworks, 1, W), true) - || GT_Utility.areStacksEqual(tStack, new ItemStack(Items.fire_charge, 1, W), true)) { + || GT_Utility.areStacksEqual(tStack, new ItemStack(Blocks.tnt, 1, W), true) + || GT_Utility.areStacksEqual(tStack, new ItemStack(Items.egg, 1, W), true) + || GT_Utility.areStacksEqual(tStack, new ItemStack(Items.firework_charge, 1, W), true) + || GT_Utility.areStacksEqual(tStack, new ItemStack(Items.fireworks, 1, W), true) + || GT_Utility.areStacksEqual(tStack, new ItemStack(Items.fire_charge, 1, W), true)) { if (aTileEntity instanceof IGregTechTileEntity) { GT_Log.exp.println( - "Microwave Explosion due to TNT || EGG || FIREWORKCHARGE || FIREWORK || FIRE CHARGE"); + "Microwave Explosion due to TNT || EGG || FIREWORKCHARGE || FIREWORK || FIRE CHARGE"); ((IGregTechTileEntity) aTileEntity).doExplosion(aVoltage * 4); } return null; @@ -4921,7 +4872,7 @@ public class GT_Recipe implements Comparable { if (tData != null) { if (tData.mMaterial != null && tData.mMaterial.mMaterial != null) { if (tData.mMaterial.mMaterial.contains(SubTag.METAL) - || tData.mMaterial.mMaterial.contains(SubTag.EXPLOSIVE)) { + || tData.mMaterial.mMaterial.contains(SubTag.EXPLOSIVE)) { if (aTileEntity instanceof IGregTechTileEntity) { GT_Log.exp.println("Microwave Explosion due to METAL insertion"); ((IGregTechTileEntity) aTileEntity).doExplosion(aVoltage * 4); @@ -4938,7 +4889,7 @@ public class GT_Recipe implements Comparable { } for (MaterialStack tMaterial : tData.mByProducts) if (tMaterial != null) { if (tMaterial.mMaterial.contains(SubTag.METAL) - || tMaterial.mMaterial.contains(SubTag.EXPLOSIVE)) { + || tMaterial.mMaterial.contains(SubTag.EXPLOSIVE)) { if (aTileEntity instanceof IGregTechTileEntity) { GT_Log.exp.println("Microwave Explosion due to METAL insertion"); ((IGregTechTileEntity) aTileEntity).doExplosion(aVoltage * 4); @@ -4964,17 +4915,17 @@ public class GT_Recipe implements Comparable { } return tOutput == null ? null - : new GT_Recipe( - false, - new ItemStack[] { GT_Utility.copyAmount(1, aInputs[0]) }, - new ItemStack[] { tOutput }, - null, - null, - null, - null, - 32, - 4, - 0); + : new GT_Recipe( + false, + new ItemStack[] { GT_Utility.copyAmount(1, aInputs[0]) }, + new ItemStack[] { tOutput }, + null, + null, + null, + null, + 32, + 4, + 0); } @Override @@ -4989,47 +4940,46 @@ public class GT_Recipe implements Comparable { public static class GT_Recipe_Map_Unboxinator extends GT_Recipe_Map { public GT_Recipe_Map_Unboxinator(Collection aRecipeList, String aUnlocalizedName, String aLocalName, - String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, - int aMinimalInputItems, int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, - int aNEISpecialValueMultiplier, String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, - boolean aNEIAllowed) { + String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, int aMinimalInputItems, + int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, int aNEISpecialValueMultiplier, + String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, boolean aNEIAllowed) { super( - aRecipeList, - aUnlocalizedName, - aLocalName, - aNEIName, - aNEIGUIPath, - aUsualInputCount, - aUsualOutputCount, - aMinimalInputItems, - aMinimalInputFluids, - aAmperage, - aNEISpecialValuePre, - aNEISpecialValueMultiplier, - aNEISpecialValuePost, - aShowVoltageAmperageInNEI, - aNEIAllowed); + aRecipeList, + aUnlocalizedName, + aLocalName, + aNEIName, + aNEIGUIPath, + aUsualInputCount, + aUsualOutputCount, + aMinimalInputItems, + aMinimalInputFluids, + aAmperage, + aNEISpecialValuePre, + aNEISpecialValueMultiplier, + aNEISpecialValuePost, + aShowVoltageAmperageInNEI, + aNEIAllowed); } @Override public GT_Recipe findRecipe(IHasWorldObjectAndCoords aTileEntity, GT_Recipe aRecipe, boolean aNotUnificated, - long aVoltage, FluidStack[] aFluids, ItemStack aSpecialSlot, ItemStack... aInputs) { + long aVoltage, FluidStack[] aFluids, ItemStack aSpecialSlot, ItemStack... aInputs) { if (aInputs == null || aInputs.length <= 0 || !ItemList.IC2_Scrapbox.isStackEqual(aInputs[0], false, true)) return super.findRecipe(aTileEntity, aRecipe, aNotUnificated, aVoltage, aFluids, aSpecialSlot, aInputs); ItemStack tOutput = GT_ModHandler.getRandomScrapboxDrop(); if (tOutput == null) return super.findRecipe(aTileEntity, aRecipe, aNotUnificated, aVoltage, aFluids, aSpecialSlot, aInputs); GT_Recipe rRecipe = new GT_Recipe( - false, - new ItemStack[] { ItemList.IC2_Scrapbox.get(1) }, - new ItemStack[] { tOutput }, - null, - null, - null, - null, - 16, - 1, - 0); + false, + new ItemStack[] { ItemList.IC2_Scrapbox.get(1) }, + new ItemStack[] { tOutput }, + null, + null, + null, + null, + 16, + 1, + 0); // It is not allowed to be buffered due to the random Output rRecipe.mCanBeBuffered = false; // Due to its randomness it is not good if there are Items in the Output Slot, because those Items could @@ -5050,72 +5000,70 @@ public class GT_Recipe implements Comparable { public static class GT_Recipe_Map_FluidCanner extends GT_Recipe_Map { public GT_Recipe_Map_FluidCanner(Collection aRecipeList, String aUnlocalizedName, String aLocalName, - String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, - int aMinimalInputItems, int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, - int aNEISpecialValueMultiplier, String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, - boolean aNEIAllowed) { + String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, int aMinimalInputItems, + int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, int aNEISpecialValueMultiplier, + String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, boolean aNEIAllowed) { super( - aRecipeList, - aUnlocalizedName, - aLocalName, - aNEIName, - aNEIGUIPath, - aUsualInputCount, - aUsualOutputCount, - aMinimalInputItems, - aMinimalInputFluids, - aAmperage, - aNEISpecialValuePre, - aNEISpecialValueMultiplier, - aNEISpecialValuePost, - aShowVoltageAmperageInNEI, - aNEIAllowed); + aRecipeList, + aUnlocalizedName, + aLocalName, + aNEIName, + aNEIGUIPath, + aUsualInputCount, + aUsualOutputCount, + aMinimalInputItems, + aMinimalInputFluids, + aAmperage, + aNEISpecialValuePre, + aNEISpecialValueMultiplier, + aNEISpecialValuePost, + aShowVoltageAmperageInNEI, + aNEIAllowed); } @Override public GT_Recipe findRecipe(IHasWorldObjectAndCoords aTileEntity, GT_Recipe aRecipe, boolean aNotUnificated, - long aVoltage, FluidStack[] aFluids, ItemStack aSpecialSlot, ItemStack... aInputs) { + long aVoltage, FluidStack[] aFluids, ItemStack aSpecialSlot, ItemStack... aInputs) { GT_Recipe rRecipe = super.findRecipe( - aTileEntity, - aRecipe, - aNotUnificated, - aVoltage, - aFluids, - aSpecialSlot, - aInputs); + aTileEntity, + aRecipe, + aNotUnificated, + aVoltage, + aFluids, + aSpecialSlot, + aInputs); if (aInputs == null || aInputs.length <= 0 - || aInputs[0] == null - || rRecipe != null - || !GregTech_API.sPostloadFinished) - return rRecipe; + || aInputs[0] == null + || rRecipe != null + || !GregTech_API.sPostloadFinished) return rRecipe; if (aFluids != null && aFluids.length > 0 && aFluids[0] != null) { ItemStack tOutput = GT_Utility.fillFluidContainer(aFluids[0], aInputs[0], false, true); FluidStack tFluid = GT_Utility.getFluidForFilledItem(tOutput, true); if (tFluid != null) rRecipe = new GT_Recipe( - false, - new ItemStack[] { GT_Utility.copyAmount(1, aInputs[0]) }, - new ItemStack[] { tOutput }, - null, - null, - new FluidStack[] { tFluid }, - null, - Math.max(tFluid.amount / 64, 16), - 1, - 0); + false, + new ItemStack[] { GT_Utility.copyAmount(1, aInputs[0]) }, + new ItemStack[] { tOutput }, + null, + null, + new FluidStack[] { tFluid }, + null, + Math.max(tFluid.amount / 64, 16), + 1, + 0); } if (rRecipe == null) { FluidStack tFluid = GT_Utility.getFluidForFilledItem(aInputs[0], true); if (tFluid != null) rRecipe = new GT_Recipe( - false, - new ItemStack[] { GT_Utility.copyAmount(1, aInputs[0]) }, - new ItemStack[] { GT_Utility.getContainerItem(aInputs[0], true) }, - null, - null, - null, - new FluidStack[] { tFluid }, - Math.max(tFluid.amount / 64, 16), - 1, - 0); + false, + new ItemStack[] { GT_Utility.copyAmount(1, aInputs[0]) }, + new ItemStack[] { GT_Utility.getContainerItem(aInputs[0], true) }, + null, + null, + null, + new FluidStack[] { tFluid }, + Math.max(tFluid.amount / 64, 16), + 1, + 0); } if (rRecipe != null) rRecipe.mCanBeBuffered = false; return rRecipe; @@ -5124,7 +5072,7 @@ public class GT_Recipe implements Comparable { @Override public boolean containsInput(ItemStack aStack) { return aStack != null && (super.containsInput(aStack) || (aStack.getItem() instanceof IFluidContainerItem - && ((IFluidContainerItem) aStack.getItem()).getCapacity(aStack) > 0)); + && ((IFluidContainerItem) aStack.getItem()).getCapacity(aStack) > 0)); } @Override @@ -5144,45 +5092,44 @@ public class GT_Recipe implements Comparable { public static class GT_Recipe_Map_Recycler extends GT_Recipe_Map_NonGTRecipes { public GT_Recipe_Map_Recycler(Collection aRecipeList, String aUnlocalizedName, String aLocalName, - String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, - int aMinimalInputItems, int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, - int aNEISpecialValueMultiplier, String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, - boolean aNEIAllowed) { + String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, int aMinimalInputItems, + int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, int aNEISpecialValueMultiplier, + String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, boolean aNEIAllowed) { super( - aRecipeList, - aUnlocalizedName, - aLocalName, - aNEIName, - aNEIGUIPath, - aUsualInputCount, - aUsualOutputCount, - aMinimalInputItems, - aMinimalInputFluids, - aAmperage, - aNEISpecialValuePre, - aNEISpecialValueMultiplier, - aNEISpecialValuePost, - aShowVoltageAmperageInNEI, - aNEIAllowed); + aRecipeList, + aUnlocalizedName, + aLocalName, + aNEIName, + aNEIGUIPath, + aUsualInputCount, + aUsualOutputCount, + aMinimalInputItems, + aMinimalInputFluids, + aAmperage, + aNEISpecialValuePre, + aNEISpecialValueMultiplier, + aNEISpecialValuePost, + aShowVoltageAmperageInNEI, + aNEIAllowed); } @Override public GT_Recipe findRecipe(IHasWorldObjectAndCoords aTileEntity, GT_Recipe aRecipe, boolean aNotUnificated, - long aVoltage, FluidStack[] aFluids, ItemStack aSpecialSlot, ItemStack... aInputs) { + long aVoltage, FluidStack[] aFluids, ItemStack aSpecialSlot, ItemStack... aInputs) { if (aInputs == null || aInputs.length <= 0 || aInputs[0] == null) return null; if (aRecipe != null && aRecipe.isRecipeInputEqual(false, true, aFluids, aInputs)) return aRecipe; return new GT_Recipe( - false, - new ItemStack[] { GT_Utility.copyAmount(1, aInputs[0]) }, - GT_ModHandler.getRecyclerOutput(GT_Utility.copyAmount(64, aInputs[0]), 0) == null ? null - : new ItemStack[] { ItemList.IC2_Scrap.get(1) }, - null, - new int[] { 1250 }, - null, - null, - 45, - 1, - 0); + false, + new ItemStack[] { GT_Utility.copyAmount(1, aInputs[0]) }, + GT_ModHandler.getRecyclerOutput(GT_Utility.copyAmount(64, aInputs[0]), 0) == null ? null + : new ItemStack[] { ItemList.IC2_Scrap.get(1) }, + null, + new int[] { 1250 }, + null, + null, + 45, + 1, + 0); } @Override @@ -5196,47 +5143,47 @@ public class GT_Recipe implements Comparable { */ public static class GT_Recipe_Map_Compressor extends GT_Recipe_Map_NonGTRecipes { - public GT_Recipe_Map_Compressor(Collection aRecipeList, String aUnlocalizedName, String aLocalName, - String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, - int aMinimalInputItems, int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, - int aNEISpecialValueMultiplier, String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, - boolean aNEIAllowed) { - super( - aRecipeList, - aUnlocalizedName, - aLocalName, - aNEIName, - aNEIGUIPath, - aUsualInputCount, - aUsualOutputCount, - aMinimalInputItems, - aMinimalInputFluids, - aAmperage, - aNEISpecialValuePre, - aNEISpecialValueMultiplier, - aNEISpecialValuePost, - aShowVoltageAmperageInNEI, - aNEIAllowed); + public GT_Recipe_Map_Compressor(Collection aRecipeList, String aUnlocalizedName, String aLocalName, + String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, int aMinimalInputItems, + int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, int aNEISpecialValueMultiplier, + String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, boolean aNEIAllowed) { + super( + aRecipeList, + aUnlocalizedName, + aLocalName, + aNEIName, + aNEIGUIPath, + aUsualInputCount, + aUsualOutputCount, + aMinimalInputItems, + aMinimalInputFluids, + aAmperage, + aNEISpecialValuePre, + aNEISpecialValueMultiplier, + aNEISpecialValuePost, + aShowVoltageAmperageInNEI, + aNEIAllowed); } @Override public GT_Recipe findRecipe(IHasWorldObjectAndCoords aTileEntity, GT_Recipe aRecipe, boolean aNotUnificated, - long aVoltage, FluidStack[] aFluids, ItemStack aSpecialSlot, ItemStack... aInputs) { + long aVoltage, FluidStack[] aFluids, ItemStack aSpecialSlot, ItemStack... aInputs) { if (aInputs == null || aInputs.length <= 0 || aInputs[0] == null) return null; if (aRecipe != null && aRecipe.isRecipeInputEqual(false, true, aFluids, aInputs)) return aRecipe; ItemStack tComparedInput = GT_Utility.copyOrNull(aInputs[0]); ItemStack[] tOutputItems = GT_ModHandler.getMachineOutput( - tComparedInput, - ic2.api.recipe.Recipes.compressor.getRecipes(), - true, - new NBTTagCompound(), - null, - null, - null); - return GT_Utility.arrayContainsNonNull(tOutputItems) ? new GT_Recipe( + tComparedInput, + ic2.api.recipe.Recipes.compressor.getRecipes(), + true, + new NBTTagCompound(), + null, + null, + null); + return GT_Utility.arrayContainsNonNull(tOutputItems) + ? new GT_Recipe( false, new ItemStack[] { - GT_Utility.copyAmount(aInputs[0].stackSize - tComparedInput.stackSize, aInputs[0]) }, + GT_Utility.copyAmount(aInputs[0].stackSize - tComparedInput.stackSize, aInputs[0]) }, tOutputItems, null, null, @@ -5244,20 +5191,21 @@ public class GT_Recipe implements Comparable { null, 400, 2, - 0) : null; + 0) + : null; } @Override public boolean containsInput(ItemStack aStack) { return GT_Utility.arrayContainsNonNull( - GT_ModHandler.getMachineOutput( - GT_Utility.copyAmount(64, aStack), - ic2.api.recipe.Recipes.compressor.getRecipes(), - false, - new NBTTagCompound(), - null, - null, - null)); + GT_ModHandler.getMachineOutput( + GT_Utility.copyAmount(64, aStack), + ic2.api.recipe.Recipes.compressor.getRecipes(), + false, + new NBTTagCompound(), + null, + null, + null)); } } @@ -5267,46 +5215,46 @@ public class GT_Recipe implements Comparable { public static class GT_Recipe_Map_Extractor extends GT_Recipe_Map_NonGTRecipes { public GT_Recipe_Map_Extractor(Collection aRecipeList, String aUnlocalizedName, String aLocalName, - String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, - int aMinimalInputItems, int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, - int aNEISpecialValueMultiplier, String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, - boolean aNEIAllowed) { + String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, int aMinimalInputItems, + int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, int aNEISpecialValueMultiplier, + String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, boolean aNEIAllowed) { super( - aRecipeList, - aUnlocalizedName, - aLocalName, - aNEIName, - aNEIGUIPath, - aUsualInputCount, - aUsualOutputCount, - aMinimalInputItems, - aMinimalInputFluids, - aAmperage, - aNEISpecialValuePre, - aNEISpecialValueMultiplier, - aNEISpecialValuePost, - aShowVoltageAmperageInNEI, - aNEIAllowed); + aRecipeList, + aUnlocalizedName, + aLocalName, + aNEIName, + aNEIGUIPath, + aUsualInputCount, + aUsualOutputCount, + aMinimalInputItems, + aMinimalInputFluids, + aAmperage, + aNEISpecialValuePre, + aNEISpecialValueMultiplier, + aNEISpecialValuePost, + aShowVoltageAmperageInNEI, + aNEIAllowed); } @Override public GT_Recipe findRecipe(IHasWorldObjectAndCoords aTileEntity, GT_Recipe aRecipe, boolean aNotUnificated, - long aVoltage, FluidStack[] aFluids, ItemStack aSpecialSlot, ItemStack... aInputs) { + long aVoltage, FluidStack[] aFluids, ItemStack aSpecialSlot, ItemStack... aInputs) { if (aInputs == null || aInputs.length <= 0 || aInputs[0] == null) return null; if (aRecipe != null && aRecipe.isRecipeInputEqual(false, true, aFluids, aInputs)) return aRecipe; ItemStack tComparedInput = GT_Utility.copyOrNull(aInputs[0]); ItemStack[] tOutputItems = GT_ModHandler.getMachineOutput( - tComparedInput, - ic2.api.recipe.Recipes.extractor.getRecipes(), - true, - new NBTTagCompound(), - null, - null, - null); - return GT_Utility.arrayContainsNonNull(tOutputItems) ? new GT_Recipe( + tComparedInput, + ic2.api.recipe.Recipes.extractor.getRecipes(), + true, + new NBTTagCompound(), + null, + null, + null); + return GT_Utility.arrayContainsNonNull(tOutputItems) + ? new GT_Recipe( false, new ItemStack[] { - GT_Utility.copyAmount(aInputs[0].stackSize - tComparedInput.stackSize, aInputs[0]) }, + GT_Utility.copyAmount(aInputs[0].stackSize - tComparedInput.stackSize, aInputs[0]) }, tOutputItems, null, null, @@ -5314,20 +5262,21 @@ public class GT_Recipe implements Comparable { null, 400, 2, - 0) : null; + 0) + : null; } @Override public boolean containsInput(ItemStack aStack) { return GT_Utility.arrayContainsNonNull( - GT_ModHandler.getMachineOutput( - GT_Utility.copyAmount(64, aStack), - ic2.api.recipe.Recipes.extractor.getRecipes(), - false, - new NBTTagCompound(), - null, - null, - null)); + GT_ModHandler.getMachineOutput( + GT_Utility.copyAmount(64, aStack), + ic2.api.recipe.Recipes.extractor.getRecipes(), + false, + new NBTTagCompound(), + null, + null, + null)); } } @@ -5337,46 +5286,47 @@ public class GT_Recipe implements Comparable { public static class GT_Recipe_Map_ThermalCentrifuge extends GT_Recipe_Map_NonGTRecipes { public GT_Recipe_Map_ThermalCentrifuge(Collection aRecipeList, String aUnlocalizedName, - String aLocalName, String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, - int aMinimalInputItems, int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, - int aNEISpecialValueMultiplier, String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, - boolean aNEIAllowed) { + String aLocalName, String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, + int aMinimalInputItems, int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, + int aNEISpecialValueMultiplier, String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, + boolean aNEIAllowed) { super( - aRecipeList, - aUnlocalizedName, - aLocalName, - aNEIName, - aNEIGUIPath, - aUsualInputCount, - aUsualOutputCount, - aMinimalInputItems, - aMinimalInputFluids, - aAmperage, - aNEISpecialValuePre, - aNEISpecialValueMultiplier, - aNEISpecialValuePost, - aShowVoltageAmperageInNEI, - aNEIAllowed); + aRecipeList, + aUnlocalizedName, + aLocalName, + aNEIName, + aNEIGUIPath, + aUsualInputCount, + aUsualOutputCount, + aMinimalInputItems, + aMinimalInputFluids, + aAmperage, + aNEISpecialValuePre, + aNEISpecialValueMultiplier, + aNEISpecialValuePost, + aShowVoltageAmperageInNEI, + aNEIAllowed); } @Override public GT_Recipe findRecipe(IHasWorldObjectAndCoords aTileEntity, GT_Recipe aRecipe, boolean aNotUnificated, - long aVoltage, FluidStack[] aFluids, ItemStack aSpecialSlot, ItemStack... aInputs) { + long aVoltage, FluidStack[] aFluids, ItemStack aSpecialSlot, ItemStack... aInputs) { if (aInputs == null || aInputs.length <= 0 || aInputs[0] == null) return null; if (aRecipe != null && aRecipe.isRecipeInputEqual(false, true, aFluids, aInputs)) return aRecipe; ItemStack tComparedInput = GT_Utility.copyOrNull(aInputs[0]); ItemStack[] tOutputItems = GT_ModHandler.getMachineOutput( - tComparedInput, - ic2.api.recipe.Recipes.centrifuge.getRecipes(), - true, - new NBTTagCompound(), - null, - null, - null); - return GT_Utility.arrayContainsNonNull(tOutputItems) ? new GT_Recipe( + tComparedInput, + ic2.api.recipe.Recipes.centrifuge.getRecipes(), + true, + new NBTTagCompound(), + null, + null, + null); + return GT_Utility.arrayContainsNonNull(tOutputItems) + ? new GT_Recipe( false, new ItemStack[] { - GT_Utility.copyAmount(aInputs[0].stackSize - tComparedInput.stackSize, aInputs[0]) }, + GT_Utility.copyAmount(aInputs[0].stackSize - tComparedInput.stackSize, aInputs[0]) }, tOutputItems, null, null, @@ -5384,20 +5334,21 @@ public class GT_Recipe implements Comparable { null, 400, 48, - 0) : null; + 0) + : null; } @Override public boolean containsInput(ItemStack aStack) { return GT_Utility.arrayContainsNonNull( - GT_ModHandler.getMachineOutput( - GT_Utility.copyAmount(64, aStack), - ic2.api.recipe.Recipes.centrifuge.getRecipes(), - false, - new NBTTagCompound(), - null, - null, - null)); + GT_ModHandler.getMachineOutput( + GT_Utility.copyAmount(64, aStack), + ic2.api.recipe.Recipes.centrifuge.getRecipes(), + false, + new NBTTagCompound(), + null, + null, + null)); } } @@ -5407,75 +5358,75 @@ public class GT_Recipe implements Comparable { public static class GT_Recipe_Map_OreWasher extends GT_Recipe_Map_NonGTRecipes { public GT_Recipe_Map_OreWasher(Collection aRecipeList, String aUnlocalizedName, String aLocalName, - String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, - int aMinimalInputItems, int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, - int aNEISpecialValueMultiplier, String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, - boolean aNEIAllowed) { + String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, int aMinimalInputItems, + int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, int aNEISpecialValueMultiplier, + String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, boolean aNEIAllowed) { super( - aRecipeList, - aUnlocalizedName, - aLocalName, - aNEIName, - aNEIGUIPath, - aUsualInputCount, - aUsualOutputCount, - aMinimalInputItems, - aMinimalInputFluids, - aAmperage, - aNEISpecialValuePre, - aNEISpecialValueMultiplier, - aNEISpecialValuePost, - aShowVoltageAmperageInNEI, - aNEIAllowed); + aRecipeList, + aUnlocalizedName, + aLocalName, + aNEIName, + aNEIGUIPath, + aUsualInputCount, + aUsualOutputCount, + aMinimalInputItems, + aMinimalInputFluids, + aAmperage, + aNEISpecialValuePre, + aNEISpecialValueMultiplier, + aNEISpecialValuePost, + aShowVoltageAmperageInNEI, + aNEIAllowed); } @Override public GT_Recipe findRecipe(IHasWorldObjectAndCoords aTileEntity, GT_Recipe aRecipe, boolean aNotUnificated, - long aVoltage, FluidStack[] aFluids, ItemStack aSpecialSlot, ItemStack... aInputs) { + long aVoltage, FluidStack[] aFluids, ItemStack aSpecialSlot, ItemStack... aInputs) { if (aInputs == null || aInputs.length <= 0 - || aInputs[0] == null - || aFluids == null - || aFluids.length < 1 - || !GT_ModHandler.isWater(aFluids[0])) - return null; + || aInputs[0] == null + || aFluids == null + || aFluids.length < 1 + || !GT_ModHandler.isWater(aFluids[0])) return null; if (aRecipe != null && aRecipe.isRecipeInputEqual(false, true, aFluids, aInputs)) return aRecipe; ItemStack tComparedInput = GT_Utility.copyOrNull(aInputs[0]); NBTTagCompound aRecipeMetaData = new NBTTagCompound(); ItemStack[] tOutputItems = GT_ModHandler.getMachineOutput( - tComparedInput, - ic2.api.recipe.Recipes.oreWashing.getRecipes(), - true, - aRecipeMetaData, - null, - null, - null); - return GT_Utility.arrayContainsNonNull(tOutputItems) ? new GT_Recipe( + tComparedInput, + ic2.api.recipe.Recipes.oreWashing.getRecipes(), + true, + aRecipeMetaData, + null, + null, + null); + return GT_Utility.arrayContainsNonNull(tOutputItems) + ? new GT_Recipe( false, new ItemStack[] { - GT_Utility.copyAmount(aInputs[0].stackSize - tComparedInput.stackSize, aInputs[0]) }, + GT_Utility.copyAmount(aInputs[0].stackSize - tComparedInput.stackSize, aInputs[0]) }, tOutputItems, null, null, new FluidStack[] { new FluidStack( - aFluids[0].getFluid(), - ((NBTTagCompound) aRecipeMetaData.getTag("return")).getInteger("amount")) }, + aFluids[0].getFluid(), + ((NBTTagCompound) aRecipeMetaData.getTag("return")).getInteger("amount")) }, null, 400, 16, - 0) : null; + 0) + : null; } @Override public boolean containsInput(ItemStack aStack) { return GT_Utility.arrayContainsNonNull( - GT_ModHandler.getMachineOutput( - GT_Utility.copyAmount(64, aStack), - ic2.api.recipe.Recipes.oreWashing.getRecipes(), - false, - new NBTTagCompound(), - null, - null, - null)); + GT_ModHandler.getMachineOutput( + GT_Utility.copyAmount(64, aStack), + ic2.api.recipe.Recipes.oreWashing.getRecipes(), + false, + new NBTTagCompound(), + null, + null, + null)); } @Override @@ -5495,52 +5446,51 @@ public class GT_Recipe implements Comparable { public static class GT_Recipe_Map_Macerator extends GT_Recipe_Map { public GT_Recipe_Map_Macerator(Collection aRecipeList, String aUnlocalizedName, String aLocalName, - String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, - int aMinimalInputItems, int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, - int aNEISpecialValueMultiplier, String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, - boolean aNEIAllowed) { + String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, int aMinimalInputItems, + int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, int aNEISpecialValueMultiplier, + String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, boolean aNEIAllowed) { super( - aRecipeList, - aUnlocalizedName, - aLocalName, - aNEIName, - aNEIGUIPath, - aUsualInputCount, - aUsualOutputCount, - aMinimalInputItems, - aMinimalInputFluids, - aAmperage, - aNEISpecialValuePre, - aNEISpecialValueMultiplier, - aNEISpecialValuePost, - aShowVoltageAmperageInNEI, - aNEIAllowed); + aRecipeList, + aUnlocalizedName, + aLocalName, + aNEIName, + aNEIGUIPath, + aUsualInputCount, + aUsualOutputCount, + aMinimalInputItems, + aMinimalInputFluids, + aAmperage, + aNEISpecialValuePre, + aNEISpecialValueMultiplier, + aNEISpecialValuePost, + aShowVoltageAmperageInNEI, + aNEIAllowed); } @Override public GT_Recipe findRecipe(IHasWorldObjectAndCoords aTileEntity, GT_Recipe aRecipe, boolean aNotUnificated, - long aVoltage, FluidStack[] aFluids, ItemStack aSpecialSlot, ItemStack... aInputs) { + long aVoltage, FluidStack[] aFluids, ItemStack aSpecialSlot, ItemStack... aInputs) { if (aInputs == null || aInputs.length <= 0 || aInputs[0] == null || !GregTech_API.sPostloadFinished) return super.findRecipe(aTileEntity, aRecipe, aNotUnificated, aVoltage, aFluids, aSpecialSlot, aInputs); aRecipe = super.findRecipe(aTileEntity, aRecipe, aNotUnificated, aVoltage, aFluids, aSpecialSlot, aInputs); if (aRecipe != null) return aRecipe; try { - List tRecipeOutputs = mods.railcraft.api.crafting.RailcraftCraftingManager.rockCrusher.getRecipe( - GT_Utility.copyAmount(1, aInputs[0])) - .getRandomizedOuputs(); + List tRecipeOutputs = mods.railcraft.api.crafting.RailcraftCraftingManager.rockCrusher + .getRecipe(GT_Utility.copyAmount(1, aInputs[0])) + .getRandomizedOuputs(); if (tRecipeOutputs != null) { aRecipe = new GT_Recipe( - false, - new ItemStack[] { GT_Utility.copyAmount(1, aInputs[0]) }, - tRecipeOutputs.toArray(new ItemStack[0]), - null, - null, - null, - null, - 800, - 2, - 0); + false, + new ItemStack[] { GT_Utility.copyAmount(1, aInputs[0]) }, + tRecipeOutputs.toArray(new ItemStack[0]), + null, + null, + null, + null, + 800, + 2, + 0); aRecipe.mCanBeBuffered = false; aRecipe.mNeedsEmptyOutput = true; return aRecipe; @@ -5553,17 +5503,18 @@ public class GT_Recipe implements Comparable { ItemStack tComparedInput = GT_Utility.copyOrNull(aInputs[0]); ItemStack[] tOutputItems = GT_ModHandler.getMachineOutput( - tComparedInput, - ic2.api.recipe.Recipes.macerator.getRecipes(), - true, - new NBTTagCompound(), - null, - null, - null); - return GT_Utility.arrayContainsNonNull(tOutputItems) ? new GT_Recipe( + tComparedInput, + ic2.api.recipe.Recipes.macerator.getRecipes(), + true, + new NBTTagCompound(), + null, + null, + null); + return GT_Utility.arrayContainsNonNull(tOutputItems) + ? new GT_Recipe( false, new ItemStack[] { - GT_Utility.copyAmount(aInputs[0].stackSize - tComparedInput.stackSize, aInputs[0]) }, + GT_Utility.copyAmount(aInputs[0].stackSize - tComparedInput.stackSize, aInputs[0]) }, tOutputItems, null, null, @@ -5571,20 +5522,21 @@ public class GT_Recipe implements Comparable { null, 400, 2, - 0) : null; + 0) + : null; } @Override public boolean containsInput(ItemStack aStack) { return super.containsInput(aStack) || GT_Utility.arrayContainsNonNull( - GT_ModHandler.getMachineOutput( - GT_Utility.copyAmount(64, aStack), - ic2.api.recipe.Recipes.macerator.getRecipes(), - false, - new NBTTagCompound(), - null, - null, - null)); + GT_ModHandler.getMachineOutput( + GT_Utility.copyAmount(64, aStack), + ic2.api.recipe.Recipes.macerator.getRecipes(), + false, + new NBTTagCompound(), + null, + null, + null)); } } @@ -5594,31 +5546,30 @@ public class GT_Recipe implements Comparable { public static class GT_Recipe_Map_Assembler extends GT_Recipe_Map { public GT_Recipe_Map_Assembler(Collection aRecipeList, String aUnlocalizedName, String aLocalName, - String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, - int aMinimalInputItems, int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, - int aNEISpecialValueMultiplier, String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, - boolean aNEIAllowed) { + String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, int aMinimalInputItems, + int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, int aNEISpecialValueMultiplier, + String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, boolean aNEIAllowed) { super( - aRecipeList, - aUnlocalizedName, - aLocalName, - aNEIName, - aNEIGUIPath, - aUsualInputCount, - aUsualOutputCount, - aMinimalInputItems, - aMinimalInputFluids, - aAmperage, - aNEISpecialValuePre, - aNEISpecialValueMultiplier, - aNEISpecialValuePost, - aShowVoltageAmperageInNEI, - aNEIAllowed); + aRecipeList, + aUnlocalizedName, + aLocalName, + aNEIName, + aNEIGUIPath, + aUsualInputCount, + aUsualOutputCount, + aMinimalInputItems, + aMinimalInputFluids, + aAmperage, + aNEISpecialValuePre, + aNEISpecialValueMultiplier, + aNEISpecialValuePost, + aShowVoltageAmperageInNEI, + aNEIAllowed); } @Override public GT_Recipe findRecipe(IHasWorldObjectAndCoords aTileEntity, GT_Recipe aRecipe, boolean aNotUnificated, - long aVoltage, FluidStack[] aFluids, ItemStack aSpecialSlot, ItemStack... aInputs) { + long aVoltage, FluidStack[] aFluids, ItemStack aSpecialSlot, ItemStack... aInputs) { GT_Recipe rRecipe = super.findRecipe(aTileEntity, aRecipe, true, aVoltage, aFluids, aSpecialSlot, aInputs); /* @@ -5633,10 +5584,9 @@ public class GT_Recipe implements Comparable { * break; } } if(rRecipe!= null) break; }else aInputs2.add(aInput); if(rRecipe!= null) break; } } */ if (aInputs == null || aInputs.length <= 0 - || aInputs[0] == null - || rRecipe == null - || !GregTech_API.sPostloadFinished) - return rRecipe; + || aInputs[0] == null + || rRecipe == null + || !GregTech_API.sPostloadFinished) return rRecipe; for (ItemStack aInput : aInputs) { if (ItemList.Paper_Printed_Pages.isStackEqual(aInput, false, true)) { @@ -5655,41 +5605,40 @@ public class GT_Recipe implements Comparable { public static class GT_Recipe_Map_FormingPress extends GT_Recipe_Map { public GT_Recipe_Map_FormingPress(Collection aRecipeList, String aUnlocalizedName, String aLocalName, - String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, - int aMinimalInputItems, int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, - int aNEISpecialValueMultiplier, String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, - boolean aNEIAllowed) { + String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, int aMinimalInputItems, + int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, int aNEISpecialValueMultiplier, + String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, boolean aNEIAllowed) { super( - aRecipeList, - aUnlocalizedName, - aLocalName, - aNEIName, - aNEIGUIPath, - aUsualInputCount, - aUsualOutputCount, - aMinimalInputItems, - aMinimalInputFluids, - aAmperage, - aNEISpecialValuePre, - aNEISpecialValueMultiplier, - aNEISpecialValuePost, - aShowVoltageAmperageInNEI, - aNEIAllowed); + aRecipeList, + aUnlocalizedName, + aLocalName, + aNEIName, + aNEIGUIPath, + aUsualInputCount, + aUsualOutputCount, + aMinimalInputItems, + aMinimalInputFluids, + aAmperage, + aNEISpecialValuePre, + aNEISpecialValueMultiplier, + aNEISpecialValuePost, + aShowVoltageAmperageInNEI, + aNEIAllowed); } @Override public GT_Recipe findRecipe(IHasWorldObjectAndCoords aTileEntity, GT_Recipe aRecipe, boolean aNotUnificated, - boolean aDontCheckStackSizes, long aVoltage, FluidStack[] aFluids, ItemStack aSpecialSlot, - ItemStack... aInputs) { + boolean aDontCheckStackSizes, long aVoltage, FluidStack[] aFluids, ItemStack aSpecialSlot, + ItemStack... aInputs) { GT_Recipe rRecipe = super.findRecipe( - aTileEntity, - aRecipe, - aNotUnificated, - aDontCheckStackSizes, - aVoltage, - aFluids, - aSpecialSlot, - aInputs); + aTileEntity, + aRecipe, + aNotUnificated, + aDontCheckStackSizes, + aVoltage, + aFluids, + aSpecialSlot, + aInputs); if (aInputs == null || aInputs.length < 2 || !GregTech_API.sPostloadFinished) return rRecipe; if (rRecipe == null) return findRenamingRecipe(aInputs); for (ItemStack aMold : aInputs) { @@ -5731,16 +5680,16 @@ public class GT_Recipe implements Comparable { ItemStack output = GT_Utility.copyAmount(1, input); output.setStackDisplayName(mold.getDisplayName()); GT_Recipe recipe = new GT_Recipe( - false, - new ItemStack[] { ItemList.Shape_Mold_Name.get(0), GT_Utility.copyAmount(1, input) }, - new ItemStack[] { output }, - null, - null, - null, - null, - 128, - 8, - 0); + false, + new ItemStack[] { ItemList.Shape_Mold_Name.get(0), GT_Utility.copyAmount(1, input) }, + new ItemStack[] { output }, + null, + null, + null, + null, + 128, + 8, + 0); recipe.mCanBeBuffered = false; return recipe; } @@ -5752,46 +5701,44 @@ public class GT_Recipe implements Comparable { public static class GT_Recipe_Map_Printer extends GT_Recipe_Map { public GT_Recipe_Map_Printer(Collection aRecipeList, String aUnlocalizedName, String aLocalName, - String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, - int aMinimalInputItems, int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, - int aNEISpecialValueMultiplier, String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, - boolean aNEIAllowed) { + String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, int aMinimalInputItems, + int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, int aNEISpecialValueMultiplier, + String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, boolean aNEIAllowed) { super( - aRecipeList, - aUnlocalizedName, - aLocalName, - aNEIName, - aNEIGUIPath, - aUsualInputCount, - aUsualOutputCount, - aMinimalInputItems, - aMinimalInputFluids, - aAmperage, - aNEISpecialValuePre, - aNEISpecialValueMultiplier, - aNEISpecialValuePost, - aShowVoltageAmperageInNEI, - aNEIAllowed); + aRecipeList, + aUnlocalizedName, + aLocalName, + aNEIName, + aNEIGUIPath, + aUsualInputCount, + aUsualOutputCount, + aMinimalInputItems, + aMinimalInputFluids, + aAmperage, + aNEISpecialValuePre, + aNEISpecialValueMultiplier, + aNEISpecialValuePost, + aShowVoltageAmperageInNEI, + aNEIAllowed); } @Override public GT_Recipe findRecipe(IHasWorldObjectAndCoords aTileEntity, GT_Recipe aRecipe, boolean aNotUnificated, - long aVoltage, FluidStack[] aFluids, ItemStack aSpecialSlot, ItemStack... aInputs) { + long aVoltage, FluidStack[] aFluids, ItemStack aSpecialSlot, ItemStack... aInputs) { GT_Recipe rRecipe = super.findRecipe( - aTileEntity, - aRecipe, - aNotUnificated, - aVoltage, - aFluids, - aSpecialSlot, - aInputs); + aTileEntity, + aRecipe, + aNotUnificated, + aVoltage, + aFluids, + aSpecialSlot, + aInputs); if (aInputs == null || aInputs.length <= 0 - || aInputs[0] == null - || aFluids == null - || aFluids.length <= 0 - || aFluids[0] == null - || !GregTech_API.sPostloadFinished) - return rRecipe; + || aInputs[0] == null + || aFluids == null + || aFluids.length <= 0 + || aFluids[0] == null + || !GregTech_API.sPostloadFinished) return rRecipe; Dyes aDye = null; for (Dyes tDye : Dyes.VALUES) if (tDye.isFluidDye(aFluids[0])) { @@ -5803,58 +5750,57 @@ public class GT_Recipe implements Comparable { if (rRecipe == null) { ItemStack tOutput = GT_ModHandler.getAllRecipeOutput( - aTileEntity == null ? null : aTileEntity.getWorld(), - aInputs[0], - aInputs[0], - aInputs[0], - aInputs[0], - ItemList.DYE_ONLY_ITEMS[aDye.mIndex].get(1), - aInputs[0], - aInputs[0], - aInputs[0], - aInputs[0]); + aTileEntity == null ? null : aTileEntity.getWorld(), + aInputs[0], + aInputs[0], + aInputs[0], + aInputs[0], + ItemList.DYE_ONLY_ITEMS[aDye.mIndex].get(1), + aInputs[0], + aInputs[0], + aInputs[0], + aInputs[0]); if (tOutput != null) return addRecipe( - new GT_Recipe( - true, - new ItemStack[] { GT_Utility.copyAmount(8, aInputs[0]) }, - new ItemStack[] { tOutput }, - null, - null, - new FluidStack[] { new FluidStack(aFluids[0].getFluid(), (int) L) }, - null, - 256, - 2, - 0), - false, - false, - true); + new GT_Recipe( + true, + new ItemStack[] { GT_Utility.copyAmount(8, aInputs[0]) }, + new ItemStack[] { tOutput }, + null, + null, + new FluidStack[] { new FluidStack(aFluids[0].getFluid(), (int) L) }, + null, + 256, + 2, + 0), + false, + false, + true); tOutput = GT_ModHandler.getAllRecipeOutput( - aTileEntity == null ? null : aTileEntity.getWorld(), - aInputs[0], - ItemList.DYE_ONLY_ITEMS[aDye.mIndex].get(1)); + aTileEntity == null ? null : aTileEntity.getWorld(), + aInputs[0], + ItemList.DYE_ONLY_ITEMS[aDye.mIndex].get(1)); if (tOutput != null) return addRecipe( - new GT_Recipe( - true, - new ItemStack[] { GT_Utility.copyAmount(1, aInputs[0]) }, - new ItemStack[] { tOutput }, - null, - null, - new FluidStack[] { new FluidStack(aFluids[0].getFluid(), (int) L) }, - null, - 32, - 2, - 0), - false, - false, - true); + new GT_Recipe( + true, + new ItemStack[] { GT_Utility.copyAmount(1, aInputs[0]) }, + new ItemStack[] { tOutput }, + null, + null, + new FluidStack[] { new FluidStack(aFluids[0].getFluid(), (int) L) }, + null, + 32, + 2, + 0), + false, + false, + true); } else { if (aInputs[0].getItem() == Items.paper) { if (!ItemList.Tool_DataStick.isStackEqual(aSpecialSlot, false, true)) return null; NBTTagCompound tNBT = aSpecialSlot.getTagCompound(); if (tNBT == null || GT_Utility.isStringInvalid(tNBT.getString("title")) - || GT_Utility.isStringInvalid(tNBT.getString("author"))) - return null; + || GT_Utility.isStringInvalid(tNBT.getString("author"))) return null; rRecipe = rRecipe.copy(); rRecipe.mCanBeBuffered = false; @@ -5879,10 +5825,10 @@ public class GT_Recipe implements Comparable { rRecipe = rRecipe.copy(); rRecipe.mCanBeBuffered = false; rRecipe.mOutputs[0].setTagCompound( - GT_Utility.getNBTContainingString( - new NBTTagCompound(), - "GT.PunchCardData", - tNBT.getString("GT.PunchCardData"))); + GT_Utility.getNBTContainingString( + new NBTTagCompound(), + "GT.PunchCardData", + tNBT.getString("GT.PunchCardData"))); return rRecipe; } } @@ -5908,45 +5854,45 @@ public class GT_Recipe implements Comparable { public static class GT_Recipe_Map_LargeBoilerFakeFuels extends GT_Recipe_Map { private static final List ALLOWED_SOLID_FUELS = Arrays.asList( - GregTech_API.sMachineFile.mConfig.getStringList( - "LargeBoiler.allowedFuels", - ConfigCategories.machineconfig.toString(), - new String[] { "gregtech:gt.blockreinforced:6", "gregtech:gt.blockreinforced:7" }, - "Allowed fuels for the Large Titanium Boiler and Large Tungstensteel Boiler")); + GregTech_API.sMachineFile.mConfig.getStringList( + "LargeBoiler.allowedFuels", + ConfigCategories.machineconfig.toString(), + new String[] { "gregtech:gt.blockreinforced:6", "gregtech:gt.blockreinforced:7" }, + "Allowed fuels for the Large Titanium Boiler and Large Tungstensteel Boiler")); public GT_Recipe_Map_LargeBoilerFakeFuels() { super( - new HashSet<>(55), - "gt.recipe.largeboilerfakefuels", - "Large Boiler", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), - 1, - 1, - 1, - 0, - 1, - E, - 1, - E, - true, - true); + new HashSet<>(55), + "gt.recipe.largeboilerfakefuels", + "Large Boiler", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), + 1, + 1, + 1, + 0, + 1, + E, + 1, + E, + true, + true); GT_Recipe explanatoryRecipe = new GT_Recipe( - true, - new ItemStack[] {}, - new ItemStack[] {}, - null, - null, - null, - null, - 1, - 1, - 1); + true, + new ItemStack[] {}, + new ItemStack[] {}, + null, + null, + null, + null, + 1, + 1, + 1); explanatoryRecipe.setNeiDesc( - "Not all solid fuels are listed.", - "Any item that burns in a", - "vanilla furnace will burn in", - "a Large Bronze or Steel Boiler."); + "Not all solid fuels are listed.", + "Any item that burns in a", + "vanilla furnace will burn in", + "a Large Bronze or Steel Boiler."); addRecipe(explanatoryRecipe); } @@ -5987,19 +5933,19 @@ public class GT_Recipe implements Comparable { allowedFuel = ALLOWED_SOLID_FUELS.contains(registryName + ":" + fuelItemStack.getItemDamage()); } return addRecipe( - new GT_Recipe( - true, - new ItemStack[] { fuelItemStack }, - new ItemStack[] {}, - null, - null, - null, - null, - 1, - 0, - GT_ModHandler.getFuelValue(fuelItemStack) / 1600), - ((double) GT_ModHandler.getFuelValue(fuelItemStack)) / 1600, - allowedFuel); + new GT_Recipe( + true, + new ItemStack[] { fuelItemStack }, + new ItemStack[] {}, + null, + null, + null, + null, + 1, + 0, + GT_ModHandler.getFuelValue(fuelItemStack) / 1600), + ((double) GT_ModHandler.getFuelValue(fuelItemStack)) / 1600, + allowedFuel); } private GT_Recipe addRecipe(GT_Recipe recipe, double baseBurnTime, boolean isAllowedFuel) { @@ -6018,18 +5964,18 @@ public class GT_Recipe implements Comparable { if (isAllowedFuel) { recipe.setNeiDesc( - "Burn time in seconds:", - String.format("Bronze Boiler: %.4f", bronzeBurnTime), - String.format("Steel Boiler: %.4f", steelBurnTime), - String.format("Titanium Boiler: %.4f", titaniumBurnTime), - String.format("Tungstensteel Boiler: %.4f", tungstensteelBurnTime)); + "Burn time in seconds:", + String.format("Bronze Boiler: %.4f", bronzeBurnTime), + String.format("Steel Boiler: %.4f", steelBurnTime), + String.format("Titanium Boiler: %.4f", titaniumBurnTime), + String.format("Tungstensteel Boiler: %.4f", tungstensteelBurnTime)); } else { recipe.setNeiDesc( - "Burn time in seconds:", - String.format("Bronze Boiler: %.4f", bronzeBurnTime), - String.format("Steel Boiler: %.4f", steelBurnTime), - "Titanium Boiler: Not allowed", - "Tungstenst. Boiler: Not allowed"); + "Burn time in seconds:", + String.format("Bronze Boiler: %.4f", bronzeBurnTime), + String.format("Steel Boiler: %.4f", steelBurnTime), + "Titanium Boiler: Not allowed", + "Tungstenst. Boiler: Not allowed"); } return super.addRecipe(recipe); @@ -6046,11 +5992,11 @@ public class GT_Recipe implements Comparable { steelBurnTime -= steelBurnTime % 0.05; recipe.setNeiDesc( - "Burn time in seconds:", - String.format("Bronze Boiler: %.4f", bronzeBurnTime), - String.format("Steel Boiler: %.4f", steelBurnTime), - "Titanium Boiler: Not allowed", - "Tungstenst. Boiler: Not allowed"); + "Burn time in seconds:", + String.format("Bronze Boiler: %.4f", bronzeBurnTime), + String.format("Steel Boiler: %.4f", steelBurnTime), + "Titanium Boiler: Not allowed", + "Tungstenst. Boiler: Not allowed"); return super.addRecipe(recipe); } @@ -6060,21 +6006,21 @@ public class GT_Recipe implements Comparable { public GT_Recipe_Map_IC2NuclearFake() { super( - new HashSet<>(10), - "gt.recipe.ic2nuke", - "Fission", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), - 1, - 1, - 1, - 0, - 1, - E, - 1, - E, - true, - true); + new HashSet<>(10), + "gt.recipe.ic2nuke", + "Fission", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "Default"), + 1, + 1, + 1, + 0, + 1, + E, + 1, + E, + true, + true); setLogo(GT_UITextures.PICTURE_RADIATION_WARNING); setLogoPos(152, 24); setNEIBackgroundSize(172, 60); @@ -6093,27 +6039,27 @@ public class GT_Recipe implements Comparable { * @return added fake recipe */ public GT_Recipe addBreederCell(ItemStack input, ItemStack output, boolean reflector, int heatStep, - int heatMultiplier, int requiredPulses) { + int heatMultiplier, int requiredPulses) { return addFakeRecipe( - input, - output, - reflector ? "Neutron reflecting breeder cell" : "Heat neutral Breeder Cell", - String.format("Every %d reactor hull heat", heatStep), - String.format("increase speed by %d00%%", heatMultiplier), - String.format("Required pulses: %d", requiredPulses)); + input, + output, + reflector ? "Neutron reflecting breeder cell" : "Heat neutral Breeder Cell", + String.format("Every %d reactor hull heat", heatStep), + String.format("increase speed by %d00%%", heatMultiplier), + String.format("Required pulses: %d", requiredPulses)); } public GT_Recipe addFakeRecipe(ItemStack input, ItemStack output, String... neiDesc) { GT_Recipe r = new GT_Recipe( - new ItemStack[] { input }, - new ItemStack[] { output }, - null, - new int[] { 10000 }, - null, - null, - 0, - 0, - 0); + new ItemStack[] { input }, + new ItemStack[] { output }, + null, + new int[] { 10000 }, + null, + null, + 0, + 0, + 0); r.setNeiDesc(neiDesc); return addRecipe(r, true, true, false); } @@ -6126,27 +6072,27 @@ public class GT_Recipe implements Comparable { public GT_Recipe_Map_LargeChemicalReactor() { super( - new HashSet<>(1000), - "gt.recipe.largechemicalreactor", - "Large Chemical Reactor", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "LCRNEI"), - TOTAL_INPUT_COUNT, - OUTPUT_COUNT, - 0, - 0, - 1, - E, - 1, - E, - true, - true); + new HashSet<>(1000), + "gt.recipe.largechemicalreactor", + "Large Chemical Reactor", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "LCRNEI"), + TOTAL_INPUT_COUNT, + OUTPUT_COUNT, + 0, + 0, + 1, + E, + 1, + E, + true, + true); } @Override public GT_Recipe addRecipe(boolean aOptimize, ItemStack[] aInputs, ItemStack[] aOutputs, Object aSpecial, - int[] aOutputChances, FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs, int aDuration, int aEUt, - int aSpecialValue) { + int[] aOutputChances, FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs, int aDuration, int aEUt, + int aSpecialValue) { aOptimize = false; ArrayList adjustedInputs = new ArrayList<>(); ArrayList adjustedOutputs = new ArrayList<>(); @@ -6164,19 +6110,19 @@ public class GT_Recipe implements Comparable { if (inputFluidContent != null) { inputFluidContent.amount *= input.stackSize; if (inputFluidContent.getFluid() - .getName() - .equals("ic2steam")) { + .getName() + .equals("ic2steam")) { inputFluidContent = GT_ModHandler.getSteam(inputFluidContent.amount); } adjustedFluidInputs.add(inputFluidContent); } else { ItemData itemData = GT_OreDictUnificator.getItemData(input); if (itemData != null && itemData.hasValidPrefixMaterialData() - && itemData.mMaterial.mMaterial == Materials.Empty) { + && itemData.mMaterial.mMaterial == Materials.Empty) { continue; } else { if (itemData != null && itemData.hasValidPrefixMaterialData() - && itemData.mPrefix == OrePrefixes.cell) { + && itemData.mPrefix == OrePrefixes.cell) { ItemStack dustStack = itemData.mMaterial.mMaterial.getDust(input.stackSize); if (dustStack != null) { adjustedInputs.add(dustStack); @@ -6208,15 +6154,15 @@ public class GT_Recipe implements Comparable { if (outputFluidContent != null) { outputFluidContent.amount *= output.stackSize; if (outputFluidContent.getFluid() - .getName() - .equals("ic2steam")) { + .getName() + .equals("ic2steam")) { outputFluidContent = GT_ModHandler.getSteam(outputFluidContent.amount); } adjustedFluidOutputs.add(outputFluidContent); } else { ItemData itemData = GT_OreDictUnificator.getItemData(output); if (!(itemData != null && itemData.hasValidPrefixMaterialData() - && itemData.mMaterial.mMaterial == Materials.Empty)) { + && itemData.mMaterial.mMaterial == Materials.Empty)) { adjustedOutputs.add(output); } } @@ -6229,16 +6175,16 @@ public class GT_Recipe implements Comparable { aFluidOutputs = adjustedFluidOutputs.toArray(new FluidStack[0]); return super.addRecipe( - aOptimize, - aInputs, - aOutputs, - aSpecial, - aOutputChances, - aFluidInputs, - aFluidOutputs, - aDuration, - aEUt, - aSpecialValue); + aOptimize, + aInputs, + aOutputs, + aSpecial, + aOutputChances, + aFluidInputs, + aFluidOutputs, + aDuration, + aEUt, + aSpecialValue); } } @@ -6246,21 +6192,21 @@ public class GT_Recipe implements Comparable { public GT_Recipe_Map_DistillationTower() { super( - new HashSet<>(110), - "gt.recipe.distillationtower", - "Distillation Tower", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "DistillationTower"), - 2, - 1, - 0, - 0, - 1, - E, - 1, - E, - true, - true); + new HashSet<>(110), + "gt.recipe.distillationtower", + "Distillation Tower", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "DistillationTower"), + 2, + 1, + 0, + 0, + 1, + E, + 1, + E, + true, + true); setLogoPos(80, 62); } @@ -6297,21 +6243,21 @@ public class GT_Recipe implements Comparable { public GT_Recipe_Map_OilCracker() { super( - new HashSet<>(70), - "gt.recipe.craker", - "Oil Cracker", - null, - GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "OilCracker"), - 1, - 1, - 1, - 2, - 1, - E, - 1, - E, - true, - true); + new HashSet<>(70), + "gt.recipe.craker", + "Oil Cracker", + null, + GregTech.getResourcePath(TEXTURES_GUI_BASICMACHINES, "OilCracker"), + 1, + 1, + 1, + 2, + 1, + E, + 1, + E, + true, + true); } @Override @@ -6319,16 +6265,16 @@ public class GT_Recipe implements Comparable { GT_Recipe ret = super.add(aRecipe); if (ret != null && ret.mFluidInputs != null && ret.mFluidInputs.length > 1 && ret.mFluidInputs[1] != null) { mValidCatalystFluidNames.add( - ret.mFluidInputs[1].getFluid() - .getName()); + ret.mFluidInputs[1].getFluid() + .getName()); } return ret; } public boolean isValidCatalystFluid(FluidStack aFluidStack) { return mValidCatalystFluidNames.contains( - aFluidStack.getFluid() - .getName()); + aFluidStack.getFluid() + .getName()); } } @@ -6337,42 +6283,42 @@ public class GT_Recipe implements Comparable { ItemStack[][] mOreDictAlt; GT_Recipe_WithAlt(ItemStack[] mInputs, ItemStack[] mOutputs, FluidStack[] mFluidInputs, - FluidStack[] mFluidOutputs, int[] mChances, Object mSpecialItems, int mDuration, int mEUt, - int mSpecialValue, boolean mEnabled, boolean mHidden, boolean mFakeRecipe, boolean mCanBeBuffered, - boolean mNeedsEmptyOutput, String[] neiDesc, ItemStack[][] mOreDictAlt) { + FluidStack[] mFluidOutputs, int[] mChances, Object mSpecialItems, int mDuration, int mEUt, + int mSpecialValue, boolean mEnabled, boolean mHidden, boolean mFakeRecipe, boolean mCanBeBuffered, + boolean mNeedsEmptyOutput, String[] neiDesc, ItemStack[][] mOreDictAlt) { super( - mInputs, - mOutputs, - mFluidInputs, - mFluidOutputs, - mChances, - mSpecialItems, - mDuration, - mEUt, - mSpecialValue, - mEnabled, - mHidden, - mFakeRecipe, - mCanBeBuffered, - mNeedsEmptyOutput, - neiDesc); + mInputs, + mOutputs, + mFluidInputs, + mFluidOutputs, + mChances, + mSpecialItems, + mDuration, + mEUt, + mSpecialValue, + mEnabled, + mHidden, + mFakeRecipe, + mCanBeBuffered, + mNeedsEmptyOutput, + neiDesc); this.mOreDictAlt = mOreDictAlt; } public GT_Recipe_WithAlt(boolean aOptimize, ItemStack[] aInputs, ItemStack[] aOutputs, Object aSpecialItems, - int[] aChances, FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs, int aDuration, int aEUt, - int aSpecialValue, ItemStack[][] aAlt) { + int[] aChances, FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs, int aDuration, int aEUt, + int aSpecialValue, ItemStack[][] aAlt) { super( - aOptimize, - aInputs, - aOutputs, - aSpecialItems, - aChances, - aFluidInputs, - aFluidOutputs, - aDuration, - aEUt, - aSpecialValue); + aOptimize, + aInputs, + aOutputs, + aSpecialItems, + aChances, + aFluidInputs, + aFluidOutputs, + aDuration, + aEUt, + aSpecialValue); mOreDictAlt = aAlt; } @@ -6395,101 +6341,100 @@ public class GT_Recipe implements Comparable { private static class ReplicatorFakeMap extends GT_Recipe_Map { public ReplicatorFakeMap(Collection aRecipeList, String aUnlocalizedName, String aLocalName, - String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, - int aMinimalInputItems, int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, - int aNEISpecialValueMultiplier, String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, - boolean aNEIAllowed) { + String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, int aMinimalInputItems, + int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, int aNEISpecialValueMultiplier, + String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, boolean aNEIAllowed) { super( - aRecipeList, - aUnlocalizedName, - aLocalName, - aNEIName, - aNEIGUIPath, - aUsualInputCount, - aUsualOutputCount, - aMinimalInputItems, - aMinimalInputFluids, - aAmperage, - aNEISpecialValuePre, - aNEISpecialValueMultiplier, - aNEISpecialValuePost, - aShowVoltageAmperageInNEI, - aNEIAllowed); + aRecipeList, + aUnlocalizedName, + aLocalName, + aNEIName, + aNEIGUIPath, + aUsualInputCount, + aUsualOutputCount, + aMinimalInputItems, + aMinimalInputFluids, + aAmperage, + aNEISpecialValuePre, + aNEISpecialValueMultiplier, + aNEISpecialValuePost, + aShowVoltageAmperageInNEI, + aNEIAllowed); } @Override public GT_Recipe addFakeRecipe(boolean aCheckForCollisions, ItemStack[] aInputs, ItemStack[] aOutputs, - Object aSpecial, FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs, int aDuration, int aEUt, - int aSpecialValue) { + Object aSpecial, FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs, int aDuration, int aEUt, + int aSpecialValue) { AtomicInteger ai = new AtomicInteger(); Optional.ofNullable(GT_OreDictUnificator.getAssociation(aOutputs[0])) - .map(itemData -> itemData.mMaterial) - .map(materialsStack -> materialsStack.mMaterial) - .map(materials -> materials.mElement) - .map(Element::getMass) - .ifPresent(e -> { - aFluidInputs[0].amount = (int) GT_MetaTileEntity_Replicator.cubicFluidMultiplier(e); - ai.set(GT_Utility.safeInt(aFluidInputs[0].amount * 512L, 1)); - }); + .map(itemData -> itemData.mMaterial) + .map(materialsStack -> materialsStack.mMaterial) + .map(materials -> materials.mElement) + .map(Element::getMass) + .ifPresent(e -> { + aFluidInputs[0].amount = (int) GT_MetaTileEntity_Replicator.cubicFluidMultiplier(e); + ai.set(GT_Utility.safeInt(aFluidInputs[0].amount * 512L, 1)); + }); return addFakeRecipe( - aCheckForCollisions, - new GT_Recipe( - false, - aInputs, - aOutputs, - aSpecial, - null, - aFluidInputs, - aFluidOutputs, - ai.get(), - aEUt, - aSpecialValue)); + aCheckForCollisions, + new GT_Recipe( + false, + aInputs, + aOutputs, + aSpecial, + null, + aFluidInputs, + aFluidOutputs, + ai.get(), + aEUt, + aSpecialValue)); } } public static class GT_Recipe_Map_ComplexFusion extends GT_Recipe_Map { public GT_Recipe_Map_ComplexFusion(Collection aRecipeList, String aUnlocalizedName, - String aLocalName, String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, - int aMinimalInputItems, int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, - int aNEISpecialValueMultiplier, String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, - boolean aNEIAllowed) { + String aLocalName, String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, + int aMinimalInputItems, int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, + int aNEISpecialValueMultiplier, String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, + boolean aNEIAllowed) { super( - aRecipeList, - aUnlocalizedName, - aLocalName, - aNEIName, - aNEIGUIPath, - aUsualInputCount, - aUsualOutputCount, - aMinimalInputItems, - aMinimalInputFluids, - aAmperage, - aNEISpecialValuePre, - aNEISpecialValueMultiplier, - aNEISpecialValuePost, - aShowVoltageAmperageInNEI, - aNEIAllowed); + aRecipeList, + aUnlocalizedName, + aLocalName, + aNEIName, + aNEIGUIPath, + aUsualInputCount, + aUsualOutputCount, + aMinimalInputItems, + aMinimalInputFluids, + aAmperage, + aNEISpecialValuePre, + aNEISpecialValueMultiplier, + aNEISpecialValuePost, + aShowVoltageAmperageInNEI, + aNEIAllowed); } @Override public GT_Recipe addRecipe(int[] aOutputChances, FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs, - int aDuration, int aEUt, int aSpecialValue) { + int aDuration, int aEUt, int aSpecialValue) { return addRecipe( - new GT_Recipe( - false, - null, - null, - null, - aOutputChances, - aFluidInputs, - aFluidOutputs, - aDuration, - aEUt, - aSpecialValue), + new GT_Recipe( false, - false, - false); + null, + null, + null, + aOutputChances, + aFluidInputs, + aFluidOutputs, + aDuration, + aEUt, + aSpecialValue), + false, + false, + false); } @Override @@ -6506,26 +6451,26 @@ public class GT_Recipe implements Comparable { public static class GT_Recipe_Map_AssemblyLineFake extends GT_Recipe_Map { public GT_Recipe_Map_AssemblyLineFake(Collection aRecipeList, String aUnlocalizedName, - String aLocalName, String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, - int aMinimalInputItems, int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, - int aNEISpecialValueMultiplier, String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, - boolean aNEIAllowed) { + String aLocalName, String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, + int aMinimalInputItems, int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, + int aNEISpecialValueMultiplier, String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, + boolean aNEIAllowed) { super( - aRecipeList, - aUnlocalizedName, - aLocalName, - aNEIName, - aNEIGUIPath, - aUsualInputCount, - aUsualOutputCount, - aMinimalInputItems, - aMinimalInputFluids, - aAmperage, - aNEISpecialValuePre, - aNEISpecialValueMultiplier, - aNEISpecialValuePost, - aShowVoltageAmperageInNEI, - aNEIAllowed); + aRecipeList, + aUnlocalizedName, + aLocalName, + aNEIName, + aNEIGUIPath, + aUsualInputCount, + aUsualOutputCount, + aMinimalInputItems, + aMinimalInputFluids, + aAmperage, + aNEISpecialValuePre, + aNEISpecialValueMultiplier, + aNEISpecialValuePost, + aShowVoltageAmperageInNEI, + aNEIAllowed); setNEITransferRect(new Rectangle(146, 26, 10, 18)); } @@ -6551,35 +6496,32 @@ public class GT_Recipe implements Comparable { @Override public void addProgressBarUI(ModularWindow.Builder builder, Supplier progressSupplier, - Pos2d windowOffset) { + Pos2d windowOffset) { int bar1Width = 17; int bar2Width = 18; builder.widget( - new ProgressBar().setTexture(GT_UITextures.PROGRESSBAR_ASSEMBLY_LINE_1, 17) - .setDirection(ProgressBar.Direction.RIGHT) - .setProgress( - () -> progressSupplier.get() - * ((float) (bar1Width + bar2Width) / bar1Width)) - .setSynced(false, false) - .setPos(new Pos2d(88, 8).add(windowOffset)) - .setSize(bar1Width, 72)); + new ProgressBar().setTexture(GT_UITextures.PROGRESSBAR_ASSEMBLY_LINE_1, 17) + .setDirection(ProgressBar.Direction.RIGHT) + .setProgress(() -> progressSupplier.get() * ((float) (bar1Width + bar2Width) / bar1Width)) + .setSynced(false, false) + .setPos(new Pos2d(88, 8).add(windowOffset)) + .setSize(bar1Width, 72)); builder.widget( - new ProgressBar().setTexture(GT_UITextures.PROGRESSBAR_ASSEMBLY_LINE_2, 18) - .setDirection(ProgressBar.Direction.RIGHT) - .setProgress( - () -> (progressSupplier.get() - - ((float) bar1Width / (bar1Width + bar2Width))) - * ((float) (bar1Width + bar2Width) / bar2Width)) - .setSynced(false, false) - .setPos(new Pos2d(124, 8).add(windowOffset)) - .setSize(bar2Width, 72)); + new ProgressBar().setTexture(GT_UITextures.PROGRESSBAR_ASSEMBLY_LINE_2, 18) + .setDirection(ProgressBar.Direction.RIGHT) + .setProgress( + () -> (progressSupplier.get() - ((float) bar1Width / (bar1Width + bar2Width))) + * ((float) (bar1Width + bar2Width) / bar2Width)) + .setSynced(false, false) + .setPos(new Pos2d(124, 8).add(windowOffset)) + .setSize(bar2Width, 72)); builder.widget( - new ProgressBar().setTexture(GT_UITextures.PROGRESSBAR_ASSEMBLY_LINE_3, 18) - .setDirection(ProgressBar.Direction.UP) - .setProgress(progressSupplier) - .setSynced(false, false) - .setPos(new Pos2d(146, 26).add(windowOffset)) - .setSize(10, 18)); + new ProgressBar().setTexture(GT_UITextures.PROGRESSBAR_ASSEMBLY_LINE_3, 18) + .setDirection(ProgressBar.Direction.UP) + .setProgress(progressSupplier) + .setSynced(false, false) + .setPos(new Pos2d(146, 26).add(windowOffset)) + .setSize(10, 18)); } } } diff --git a/src/main/java/gregtech/api/util/GT_RecipeBuilder.java b/src/main/java/gregtech/api/util/GT_RecipeBuilder.java index bd3e35c2a1..bb061eb2dc 100644 --- a/src/main/java/gregtech/api/util/GT_RecipeBuilder.java +++ b/src/main/java/gregtech/api/util/GT_RecipeBuilder.java @@ -38,7 +38,7 @@ public class GT_RecipeBuilder { static { boolean tmp; if (System.getProperties() - .containsKey("gt.recipebuilder.debug")) { + .containsKey("gt.recipebuilder.debug")) { tmp = Boolean.getBoolean("gt.recipebuilder.debug"); } else { // turn on debug by default in dev mode @@ -72,10 +72,10 @@ public class GT_RecipeBuilder { GT_RecipeBuilder() {} private GT_RecipeBuilder(ItemStack[] inputsBasic, Object[] inputsOreDict, ItemStack[] outputs, ItemStack[][] alts, - FluidStack[] fluidInputs, FluidStack[] fluidOutputs, int[] chances, Object special, int duration, int eut, - int specialValue, boolean enabled, boolean hidden, boolean fakeRecipe, boolean mCanBeBuffered, - boolean mNeedsEmptyOutput, String[] neiDesc, boolean optimize, - Map, Object> additionalData) { + FluidStack[] fluidInputs, FluidStack[] fluidOutputs, int[] chances, Object special, int duration, int eut, + int specialValue, boolean enabled, boolean hidden, boolean fakeRecipe, boolean mCanBeBuffered, + boolean mNeedsEmptyOutput, String[] neiDesc, boolean optimize, + Map, Object> additionalData) { this.inputsBasic = inputsBasic; this.inputsOreDict = inputsOreDict; this.outputs = outputs; @@ -99,9 +99,9 @@ public class GT_RecipeBuilder { private static FluidStack[] fix(FluidStack[] fluidInputs) { return Arrays.stream(fluidInputs) - .filter(Objects::nonNull) - .map(GT_FluidStack::new) - .toArray(FluidStack[]::new); + .filter(Objects::nonNull) + .map(GT_FluidStack::new) + .toArray(FluidStack[]::new); } private static ItemStack[] fix(ItemStack[] inputs) { @@ -114,7 +114,7 @@ public class GT_RecipeBuilder { private static boolean containsNull(Object[] arr) { return arr == null || Arrays.stream(arr) - .anyMatch(Objects::isNull); + .anyMatch(Objects::isNull); } private static void handleNullRecipeComponents(String componentType) { @@ -168,9 +168,9 @@ public class GT_RecipeBuilder { if (ores.isEmpty()) continue; int size = ((Number) arr[1]).intValue(); alts[i] = ores.stream() - .map(s -> GT_Utility.copyAmount(size, s)) - .filter(GT_Utility::isStackValid) - .toArray(ItemStack[]::new); + .map(s -> GT_Utility.copyAmount(size, s)) + .filter(GT_Utility::isStackValid) + .toArray(ItemStack[]::new); } else if (input == null) { handleNullRecipeComponents("recipe oredict input"); alts[i] = new ItemStack[0]; @@ -179,8 +179,8 @@ public class GT_RecipeBuilder { } } inputsBasic = Arrays.stream(alts) - .map(ss -> ss.length > 0 ? ss[0] : null) - .toArray(ItemStack[]::new); + .map(ss -> ss.length > 0 ? ss[0] : null) + .toArray(ItemStack[]::new); // optimize cannot handle recipes with alts return noOptimize(); } @@ -368,25 +368,25 @@ public class GT_RecipeBuilder { */ public GT_RecipeBuilder copy() { return new GT_RecipeBuilder( - copy(inputsBasic), - copy(inputsOreDict), - copy(outputs), - copy(alts), - copy(fluidInputs), - copy(fluidOutputs), - copy(chances), - special, - duration, - eut, - specialValue, - enabled, - hidden, - fakeRecipe, - mCanBeBuffered, - mNeedsEmptyOutput, - neiDesc, - optimize, - additionalData); + copy(inputsBasic), + copy(inputsOreDict), + copy(outputs), + copy(alts), + copy(fluidInputs), + copy(fluidOutputs), + copy(chances), + special, + duration, + eut, + specialValue, + enabled, + hidden, + fakeRecipe, + mCanBeBuffered, + mNeedsEmptyOutput, + neiDesc, + optimize, + additionalData); } /** @@ -394,25 +394,25 @@ public class GT_RecipeBuilder { */ public GT_RecipeBuilder copyNoMetadata() { return new GT_RecipeBuilder( - copy(inputsBasic), - copy(inputsOreDict), - copy(outputs), - copy(alts), - copy(fluidInputs), - copy(fluidOutputs), - copy(chances), - special, - duration, - eut, - specialValue, - enabled, - hidden, - fakeRecipe, - mCanBeBuffered, - mNeedsEmptyOutput, - neiDesc, - optimize, - Collections.emptyMap()); + copy(inputsBasic), + copy(inputsOreDict), + copy(outputs), + copy(alts), + copy(fluidInputs), + copy(fluidOutputs), + copy(chances), + special, + duration, + eut, + specialValue, + enabled, + hidden, + fakeRecipe, + mCanBeBuffered, + mNeedsEmptyOutput, + neiDesc, + optimize, + Collections.emptyMap()); } public ItemStack getItemInputBasic(int index) { @@ -582,23 +582,23 @@ public class GT_RecipeBuilder { preBuildChecks(); optimize(); return Optional.of( - decorate( - new GT_Recipe( - inputsBasic, - outputs, - fluidInputs, - fluidOutputs, - chances, - special, - duration, - eut, - specialValue, - enabled, - hidden, - fakeRecipe, - mCanBeBuffered, - mNeedsEmptyOutput, - neiDesc))); + decorate( + new GT_Recipe( + inputsBasic, + outputs, + fluidInputs, + fluidOutputs, + chances, + special, + duration, + eut, + specialValue, + enabled, + hidden, + fakeRecipe, + mCanBeBuffered, + mNeedsEmptyOutput, + neiDesc))); } public GT_RecipeBuilder forceOreDictInput() { @@ -614,24 +614,24 @@ public class GT_RecipeBuilder { preBuildChecks(); // no optimize. return Optional.of( - decorate( - new GT_Recipe.GT_Recipe_WithAlt( - inputsBasic, - outputs, - fluidInputs, - fluidOutputs, - chances, - special, - duration, - eut, - specialValue, - enabled, - hidden, - fakeRecipe, - mCanBeBuffered, - mNeedsEmptyOutput, - neiDesc, - alts))); + decorate( + new GT_Recipe.GT_Recipe_WithAlt( + inputsBasic, + outputs, + fluidInputs, + fluidOutputs, + chances, + special, + duration, + eut, + specialValue, + enabled, + hidden, + fakeRecipe, + mCanBeBuffered, + mNeedsEmptyOutput, + neiDesc, + alts))); } private void preBuildChecks() { @@ -715,8 +715,8 @@ public class GT_RecipeBuilder { public final static class MetadataIdentifier { - private static final Map, MetadataIdentifier> allIdentifiers = Collections.synchronizedMap( - new HashMap<>()); + private static final Map, MetadataIdentifier> allIdentifiers = Collections + .synchronizedMap(new HashMap<>()); private final Class clazz; private final String identifier; diff --git a/src/main/java/gregtech/api/util/GT_RecipeConstants.java b/src/main/java/gregtech/api/util/GT_RecipeConstants.java index bdb3346454..2b97bc4f71 100644 --- a/src/main/java/gregtech/api/util/GT_RecipeConstants.java +++ b/src/main/java/gregtech/api/util/GT_RecipeConstants.java @@ -23,64 +23,54 @@ public class GT_RecipeConstants { * Set to true to signal the recipe require low gravity. do nothing if recipe set specialValue explicitly. Can * coexist with CLEANROOM just fine */ - public static final GT_RecipeBuilder.MetadataIdentifier LOW_GRAVITY = GT_RecipeBuilder.MetadataIdentifier.create( - Boolean.class, - "low_gravity"); + public static final GT_RecipeBuilder.MetadataIdentifier LOW_GRAVITY = GT_RecipeBuilder.MetadataIdentifier + .create(Boolean.class, "low_gravity"); /** * Set to true to signal the recipe require cleanroom. do nothing if recipe set specialValue explicitly. Can coexist * with LOW_GRAVITY just fine */ - public static final GT_RecipeBuilder.MetadataIdentifier CLEANROOM = GT_RecipeBuilder.MetadataIdentifier.create( - Boolean.class, - "cleanroom"); + public static final GT_RecipeBuilder.MetadataIdentifier CLEANROOM = GT_RecipeBuilder.MetadataIdentifier + .create(Boolean.class, "cleanroom"); /** * Common additive to use in recipe, e.g. for PBF, this is coal amount. */ - public static final GT_RecipeBuilder.MetadataIdentifier ADDITIVE_AMOUNT = GT_RecipeBuilder.MetadataIdentifier.create( - Integer.class, - "additives"); + public static final GT_RecipeBuilder.MetadataIdentifier ADDITIVE_AMOUNT = GT_RecipeBuilder.MetadataIdentifier + .create(Integer.class, "additives"); /** * Used for fusion reactor. Denotes ignition threshold. */ - public static final GT_RecipeBuilder.MetadataIdentifier FUSION_THRESHOLD = GT_RecipeBuilder.MetadataIdentifier.create( - Integer.class, - "fusion_threshold"); + public static final GT_RecipeBuilder.MetadataIdentifier FUSION_THRESHOLD = GT_RecipeBuilder.MetadataIdentifier + .create(Integer.class, "fusion_threshold"); /** * Research time in a scanner used in ticks. */ - public static final GT_RecipeBuilder.MetadataIdentifier RESEARCH_TIME = GT_RecipeBuilder.MetadataIdentifier.create( - Integer.class, - "research_time"); + public static final GT_RecipeBuilder.MetadataIdentifier RESEARCH_TIME = GT_RecipeBuilder.MetadataIdentifier + .create(Integer.class, "research_time"); /** * Fuel type. TODO should we use enum directly? */ - public static final GT_RecipeBuilder.MetadataIdentifier FUEL_TYPE = GT_RecipeBuilder.MetadataIdentifier.create( - Integer.class, - "fuel_type"); + public static final GT_RecipeBuilder.MetadataIdentifier FUEL_TYPE = GT_RecipeBuilder.MetadataIdentifier + .create(Integer.class, "fuel_type"); /** * Fuel value. */ - public static final GT_RecipeBuilder.MetadataIdentifier FUEL_VALUE = GT_RecipeBuilder.MetadataIdentifier.create( - Integer.class, - "fuel_value"); + public static final GT_RecipeBuilder.MetadataIdentifier FUEL_VALUE = GT_RecipeBuilder.MetadataIdentifier + .create(Integer.class, "fuel_value"); /** * Fuel value. */ - public static final GT_RecipeBuilder.MetadataIdentifier COIL_HEAT = GT_RecipeBuilder.MetadataIdentifier.create( - Integer.class, - "coil_heat"); + public static final GT_RecipeBuilder.MetadataIdentifier COIL_HEAT = GT_RecipeBuilder.MetadataIdentifier + .create(Integer.class, "coil_heat"); /** * Research item used by assline recipes. */ - public static final GT_RecipeBuilder.MetadataIdentifier RESEARCH_ITEM = GT_RecipeBuilder.MetadataIdentifier.create( - ItemStack.class, - "research_item"); + public static final GT_RecipeBuilder.MetadataIdentifier RESEARCH_ITEM = GT_RecipeBuilder.MetadataIdentifier + .create(ItemStack.class, "research_item"); /** * For assembler. It accepts a single item as oredict. It looks like no one uses this anyway... */ - public static final GT_RecipeBuilder.MetadataIdentifier OREDICT_INPUT = GT_RecipeBuilder.MetadataIdentifier.create( - Object.class, - "oredict_input"); + public static final GT_RecipeBuilder.MetadataIdentifier OREDICT_INPUT = GT_RecipeBuilder.MetadataIdentifier + .create(Object.class, "oredict_input"); /** * Add fusion recipes. Dispatcher between complex fusion (which accepts arbitrarily many input/outputs) and classic @@ -88,8 +78,7 @@ public class GT_RecipeConstants { */ public static final IGT_RecipeMap Fusion = IGT_RecipeMap.newRecipeMap(builder -> { if (GT_Utility.isArrayEmptyOrNull(builder.getFluidInputs()) - || GT_Utility.isArrayEmptyOrNull(builder.getFluidOutputs())) - return Collections.emptyList(); + || GT_Utility.isArrayEmptyOrNull(builder.getFluidOutputs())) return Collections.emptyList(); if (builder.getFluidInputs().length > 2 || builder.getFluidOutputs().length > 2) return GT_Recipe_Map.sComplexFusionRecipes.doAdd(builder); return GT_Recipe_Map.sFusionRecipes.doAdd(builder); @@ -101,8 +90,7 @@ public class GT_RecipeConstants { */ public static final IGT_RecipeMap UniversalArcFurnace = IGT_RecipeMap.newRecipeMap(builder -> { if (!GT_Utility.isArrayOfLength(builder.getItemInputsBasic(), 1) - || GT_Utility.isArrayEmptyOrNull(builder.getItemOutputs())) - return Collections.emptyList(); + || GT_Utility.isArrayEmptyOrNull(builder.getItemOutputs())) return Collections.emptyList(); int aDuration = builder.getDuration(); if ((aDuration = GregTech_API.sRecipeFile.get("arcfurnace", builder.getItemInputBasic(0), aDuration)) <= 0) { return Collections.emptyList(); @@ -113,13 +101,13 @@ public class GT_RecipeConstants { int tPlasmaAmount = (int) Math.max(1L, aDuration / (mat.getMass() * 16L)); GT_RecipeBuilder b2 = builder.copy(); b2.fluidInputs(mat.getPlasma(tPlasmaAmount)) - .fluidOutputs(mat.getGas(tPlasmaAmount)); + .fluidOutputs(mat.getGas(tPlasmaAmount)); ret.addAll(GT_Recipe_Map.sPlasmaArcFurnaceRecipes.doAdd(b2)); } ret.addAll( - GT_Recipe_Map.sArcFurnaceRecipes.doAdd( - builder.copy() - .fluidInputs(Materials.Oxygen.getGas(aDuration)))); + GT_Recipe_Map.sArcFurnaceRecipes.doAdd( + builder.copy() + .fluidInputs(Materials.Oxygen.getGas(aDuration)))); return ret; }); @@ -135,12 +123,12 @@ public class GT_RecipeConstants { } } return GT_Utility.concat( - builder.copy() - .addTo(GT_Recipe_Map.sChemicalRecipes), - convertCellToFluid(builder, false) - // LCR does not need cleanroom, for now. - .metadata(CLEANROOM, false) - .addTo(GT_Recipe_Map.sMultiblockChemicalRecipes)); + builder.copy() + .addTo(GT_Recipe_Map.sChemicalRecipes), + convertCellToFluid(builder, false) + // LCR does not need cleanroom, for now. + .metadata(CLEANROOM, false) + .addTo(GT_Recipe_Map.sMultiblockChemicalRecipes)); }); /** @@ -150,11 +138,11 @@ public class GT_RecipeConstants { */ public static final IGT_RecipeMap AssemblyLine = IGT_RecipeMap.newRecipeMap(builder -> { Optional rr = builder.forceOreDictInput() - .validateInputCount(4, 16) - .validateOutputCount(1, 1) - .validateOutputFluidCount(-1, 0) - .validateInputFluidCount(0, 4) - .buildWithAlt(); + .validateInputCount(4, 16) + .validateOutputCount(1, 1) + .validateOutputFluidCount(-1, 0) + .validateInputFluidCount(0, 4) + .buildWithAlt(); if (!rr.isPresent()) return Collections.emptyList(); GT_Recipe.GT_Recipe_WithAlt r = rr.get(); ItemStack[][] mOreDictAlt = r.mOreDictAlt; @@ -174,21 +162,21 @@ public class GT_RecipeConstants { tPersistentHash *= 31; } else if (input instanceof Object[]objs) { Arrays.sort( - alts, - Comparator.comparing( - s -> GameRegistry.findUniqueIdentifierFor(s.getItem()).modId) - .thenComparing(s -> GameRegistry.findUniqueIdentifierFor(s.getItem()).name) - .thenComparingInt(Items.feather::getDamage) - .thenComparingInt(s -> s.stackSize)); + alts, + Comparator + .comparing(s -> GameRegistry.findUniqueIdentifierFor(s.getItem()).modId) + .thenComparing(s -> GameRegistry.findUniqueIdentifierFor(s.getItem()).name) + .thenComparingInt(Items.feather::getDamage) + .thenComparingInt(s -> s.stackSize)); tPersistentHash = tPersistentHash * 31 + (objs[0] == null ? "" : objs[0].toString()).hashCode(); tPersistentHash = tPersistentHash * 31 + ((Number) objs[1]).intValue(); } GT_Log.err.println( - "addAssemblingLineRecipe " + aResearchItem.getDisplayName() - + " --> " - + aOutput.getUnlocalizedName() - + " there is some null item in that recipe"); + "addAssemblingLineRecipe " + aResearchItem.getDisplayName() + + " --> " + + aOutput.getUnlocalizedName() + + " there is some null item in that recipe"); } tPersistentHash = tPersistentHash * 31 + GT_Utility.persistentHash(aResearchItem, true, false); tPersistentHash = tPersistentHash * 31 + GT_Utility.persistentHash(aOutput, true, false); @@ -202,40 +190,40 @@ public class GT_RecipeConstants { tPersistentHash = tPersistentHash * 31 + r.mEUt; Collection ret = new ArrayList<>(3); ret.add( - GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes.addFakeRecipe( - false, - new ItemStack[] { aResearchItem }, - new ItemStack[] { aOutput }, - new ItemStack[] { ItemList.Tool_DataStick.getWithName(1L, "Writes Research result") }, - null, - null, - aResearchTime, - 30, - -201)); // means it's scanned + GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes.addFakeRecipe( + false, + new ItemStack[] { aResearchItem }, + new ItemStack[] { aOutput }, + new ItemStack[] { ItemList.Tool_DataStick.getWithName(1L, "Writes Research result") }, + null, + null, + aResearchTime, + 30, + -201)); // means it's scanned ret.add( - GT_Recipe.GT_Recipe_Map.sAssemblylineVisualRecipes.addFakeRecipe( - false, - r.mInputs, - new ItemStack[] { aOutput }, - new ItemStack[] { ItemList.Tool_DataStick.getWithName(1L, "Reads Research result") }, - r.mFluidInputs, - null, - r.mDuration, - r.mEUt, - 0, - r.mOreDictAlt, - false)); - - GT_Recipe.GT_Recipe_AssemblyLine tRecipe = new GT_Recipe.GT_Recipe_AssemblyLine( - aResearchItem, - aResearchTime, + GT_Recipe.GT_Recipe_Map.sAssemblylineVisualRecipes.addFakeRecipe( + false, r.mInputs, + new ItemStack[] { aOutput }, + new ItemStack[] { ItemList.Tool_DataStick.getWithName(1L, "Reads Research result") }, r.mFluidInputs, - aOutput, + null, r.mDuration, r.mEUt, - r.mOreDictAlt); + 0, + r.mOreDictAlt, + false)); + + GT_Recipe.GT_Recipe_AssemblyLine tRecipe = new GT_Recipe.GT_Recipe_AssemblyLine( + aResearchItem, + aResearchTime, + r.mInputs, + r.mFluidInputs, + aOutput, + r.mDuration, + r.mEUt, + r.mOreDictAlt); tRecipe.setPersistentHash(tPersistentHash); GT_Recipe.GT_Recipe_AssemblyLine.sAssemblylineRecipes.add(tRecipe); GT_AssemblyLineUtils.addRecipeToCache(tRecipe); @@ -250,9 +238,9 @@ public class GT_RecipeConstants { Collection ret = new ArrayList<>(); for (ItemStack input : GT_OreDictUnificator.getOresImmutable(builder.getMetadata(OREDICT_INPUT))) { ret.addAll( - builder.copy() - .itemInputs(GT_RecipeMapUtil.appendArray(builder.getItemInputsBasic(), input)) - .addTo(GT_Recipe_Map.sAssemblerRecipes)); + builder.copy() + .itemInputs(GT_RecipeMapUtil.appendArray(builder.getItemInputsBasic(), input)) + .addTo(GT_Recipe_Map.sAssemblerRecipes)); } return ret; }); @@ -265,20 +253,18 @@ public class GT_RecipeConstants { */ public static IGT_RecipeMap Fuel = IGT_RecipeMap.newRecipeMap(builder -> { builder.validateInputCount(1, 1) - .validateNoInputFluid() - .validateOutputCount(-1, 0) - .validateNoOutputFluid(); + .validateNoInputFluid() + .validateOutputCount(-1, 0) + .validateNoOutputFluid(); if (!builder.isValid()) return Collections.emptyList(); int fuelType = builder.getMetadata(FUEL_TYPE); builder.metadata( - FUEL_VALUE, - GregTech_API.sRecipeFile.get( - "fuel_" + fuelType, - builder.getItemInputBasic(0), - builder.getMetadata(FUEL_VALUE))); + FUEL_VALUE, + GregTech_API.sRecipeFile + .get("fuel_" + fuelType, builder.getItemInputBasic(0), builder.getMetadata(FUEL_VALUE))); return FuelType.get(fuelType) - .getTarget() - .doAdd(builder); + .getTarget() + .doAdd(builder); }); public enum FuelType { diff --git a/src/main/java/gregtech/api/util/GT_RecipeMapUtil.java b/src/main/java/gregtech/api/util/GT_RecipeMapUtil.java index ee524c913c..4f7f2e199b 100644 --- a/src/main/java/gregtech/api/util/GT_RecipeMapUtil.java +++ b/src/main/java/gregtech/api/util/GT_RecipeMapUtil.java @@ -31,31 +31,31 @@ public class GT_RecipeMapUtil { }; public static final Function FIRST_FLUID_INPUT = r -> isArrayEmptyOrNull(r.mFluidInputs) ? null - : r.mFluidInputs[0].getFluid() - .getName(); + : r.mFluidInputs[0].getFluid() + .getName(); public static final Function FIRST_FLUID_OUTPUT = r -> isArrayEmptyOrNull(r.mFluidInputs) ? null - : r.mFluidOutputs[0].getFluid() - .getName(); + : r.mFluidOutputs[0].getFluid() + .getName(); public static final Function FIRST_FLUIDSTACK_INPUT = r -> isArrayEmptyOrNull(r.mFluidInputs) - ? null - : r.mFluidInputs[0].getUnlocalizedName(); + ? null + : r.mFluidInputs[0].getUnlocalizedName(); public static final Function FIRST_FLUIDSTACK_OUTPUT = r -> isArrayEmptyOrNull(r.mFluidOutputs) - ? null - : r.mFluidOutputs[0].getUnlocalizedName(); + ? null + : r.mFluidOutputs[0].getUnlocalizedName(); public static final Function FIRST_ITEM_INPUT = r -> isArrayEmptyOrNull(r.mInputs) ? null - : getStackConfigName(r.mInputs[0]); + : getStackConfigName(r.mInputs[0]); public static final Function FIRST_ITEM_OUTPUT = r -> isArrayEmptyOrNull(r.mOutputs) ? null - : getStackConfigName(r.mOutputs[0]); + : getStackConfigName(r.mOutputs[0]); public static final Function FIRST_ITEM_OR_FLUID_INPUT = r -> isArrayEmptyOrNull(r.mInputs) - ? isArrayEmptyOrNull(r.mFluidInputs) ? null - : r.mFluidInputs[0].getFluid() - .getName() - : getStackConfigName(r.mInputs[0]); + ? isArrayEmptyOrNull(r.mFluidInputs) ? null + : r.mFluidInputs[0].getFluid() + .getName() + : getStackConfigName(r.mInputs[0]); public static final Function FIRST_ITEM_OR_FLUID_OUTPUT = r -> isArrayEmptyOrNull(r.mOutputs) - ? isArrayEmptyOrNull(r.mFluidOutputs) ? null - : r.mFluidOutputs[0].getFluid() - .getName() - : getStackConfigName(r.mOutputs[0]); + ? isArrayEmptyOrNull(r.mFluidOutputs) ? null + : r.mFluidOutputs[0].getFluid() + .getName() + : getStackConfigName(r.mOutputs[0]); private static final Map addonRecipeMaps = new HashMap<>(); private static final Multimap> delayedActions = ArrayListMultimap.create(); @@ -93,17 +93,17 @@ public class GT_RecipeMapUtil { cellToFluid(itemInputs, fluidInputs, removeIntegratedCircuit, null); cellToFluid(itemOutputs, fluidOutputs, removeIntegratedCircuit, chances); return b.itemInputs(itemInputs.toArray(new ItemStack[0])) - .itemOutputs(itemOutputs.toArray(new ItemStack[0]), chances != null ? chances.toArray() : null) - .fluidInputs(fluidInputs.toArray(new FluidStack[0])) - .fluidOutputs(fluidOutputs.toArray(new FluidStack[0])); + .itemOutputs(itemOutputs.toArray(new ItemStack[0]), chances != null ? chances.toArray() : null) + .fluidInputs(fluidInputs.toArray(new FluidStack[0])) + .fluidOutputs(fluidOutputs.toArray(new FluidStack[0])); } private static void cellToFluid(List items, List fluids, boolean removeIntegratedCircuit, - TIntList chances) { + TIntList chances) { for (int i = items.size() - 1; i >= 0; i--) { ItemStack item = items.get(i); if (GT_Utility.getFluidForFilledItem(item, true) != null || GT_Utility.isCellEmpty(item) - || (removeIntegratedCircuit && GT_Utility.isAnyIntegratedCircuit(item))) { + || (removeIntegratedCircuit && GT_Utility.isAnyIntegratedCircuit(item))) { fluids.add(GT_Utility.convertCellToFluid(item)); items.remove(i); if (chances != null) chances.removeAt(i); @@ -113,8 +113,8 @@ public class GT_RecipeMapUtil { public static List buildOrEmpty(GT_RecipeBuilder builder) { return builder.build() - .map(Collections::singletonList) - .orElse(Collections.emptyList()); + .map(Collections::singletonList) + .orElse(Collections.emptyList()); } /** @@ -128,12 +128,12 @@ public class GT_RecipeMapUtil { * end up with a bunch of weird concurrency bugs. */ public static void registerRecipeMap(String identifier, IGT_RecipeMap recipeMap, - RecipeMapDependency... dependencies) { + RecipeMapDependency... dependencies) { String modId = Loader.instance() - .activeModContainer() - .getModId(); + .activeModContainer() + .getModId(); if (GregTech.ID.equals(modId)) throw new IllegalStateException( - "do not register recipe map under the name of gregtech! do it in your own preinit!"); + "do not register recipe map under the name of gregtech! do it in your own preinit!"); String id = modId + "@" + identifier; addonRecipeMaps.put(id, recipeMap); for (Consumer action : delayedActions.get(id)) { diff --git a/src/main/java/gregtech/api/util/GT_RecipeRegistrator.java b/src/main/java/gregtech/api/util/GT_RecipeRegistrator.java index 2c08e461b7..a9e8f5cc09 100644 --- a/src/main/java/gregtech/api/util/GT_RecipeRegistrator.java +++ b/src/main/java/gregtech/api/util/GT_RecipeRegistrator.java @@ -45,84 +45,83 @@ public class GT_RecipeRegistrator { private static final ItemStack sMt1 = new ItemStack(Blocks.dirt, 1, 0), sMt2 = new ItemStack(Blocks.dirt, 1, 0); private static final String s_H = "h", s_F = "f", s_I = "I", s_P = "P", s_R = "R"; private static final RecipeShape[] sShapes = new RecipeShape[] { - new RecipeShape(sMt1, null, sMt1, sMt1, sMt1, sMt1, null, sMt1, null), - new RecipeShape(sMt1, null, sMt1, sMt1, null, sMt1, sMt1, sMt1, sMt1), - new RecipeShape(null, sMt1, null, sMt1, sMt1, sMt1, sMt1, null, sMt1), - new RecipeShape(sMt1, sMt1, sMt1, sMt1, null, sMt1, null, null, null), - new RecipeShape(sMt1, null, sMt1, sMt1, sMt1, sMt1, sMt1, sMt1, sMt1), - new RecipeShape(sMt1, sMt1, sMt1, sMt1, null, sMt1, sMt1, null, sMt1), - new RecipeShape(null, null, null, sMt1, null, sMt1, sMt1, null, sMt1), - new RecipeShape(null, sMt1, null, null, sMt1, null, null, sMt2, null), - new RecipeShape(sMt1, sMt1, sMt1, null, sMt2, null, null, sMt2, null), - new RecipeShape(null, sMt1, null, null, sMt2, null, null, sMt2, null), - new RecipeShape(sMt1, sMt1, null, sMt1, sMt2, null, null, sMt2, null), - new RecipeShape(null, sMt1, sMt1, null, sMt2, sMt1, null, sMt2, null), - new RecipeShape(sMt1, sMt1, null, null, sMt2, null, null, sMt2, null), - new RecipeShape(null, sMt1, sMt1, null, sMt2, null, null, sMt2, null), - new RecipeShape(null, sMt1, null, sMt1, null, null, null, sMt1, sMt2), - new RecipeShape(null, sMt1, null, null, null, sMt1, sMt2, sMt1, null), - new RecipeShape(null, sMt1, null, sMt1, null, sMt1, null, null, sMt2), - new RecipeShape(null, sMt1, null, sMt1, null, sMt1, sMt2, null, null), - new RecipeShape(null, sMt2, null, null, sMt1, null, null, sMt1, null), - new RecipeShape(null, sMt2, null, null, sMt2, null, sMt1, sMt1, sMt1), - new RecipeShape(null, sMt2, null, null, sMt2, null, null, sMt1, null), - new RecipeShape(null, sMt2, null, sMt1, sMt2, null, sMt1, sMt1, null), - new RecipeShape(null, sMt2, null, null, sMt2, sMt1, null, sMt1, sMt1), - new RecipeShape(null, sMt2, null, null, sMt2, null, sMt1, sMt1, null), - new RecipeShape(sMt1, null, null, null, sMt2, null, null, null, sMt2), - new RecipeShape(null, null, sMt1, null, sMt2, null, sMt2, null, null), - new RecipeShape(sMt1, null, null, null, sMt2, null, null, null, null), - new RecipeShape(null, null, sMt1, null, sMt2, null, null, null, null), - new RecipeShape(sMt1, sMt2, null, null, null, null, null, null, null), - new RecipeShape(sMt2, sMt1, null, null, null, null, null, null, null), - new RecipeShape(sMt1, null, null, sMt2, null, null, null, null, null), - new RecipeShape(sMt2, null, null, sMt1, null, null, null, null, null), - new RecipeShape(sMt1, sMt1, sMt1, sMt1, sMt1, sMt1, null, sMt2, null), - new RecipeShape(sMt1, sMt1, null, sMt1, sMt1, sMt2, sMt1, sMt1, null), - new RecipeShape(null, sMt1, sMt1, sMt2, sMt1, sMt1, null, sMt1, sMt1), - new RecipeShape(null, sMt2, null, sMt1, sMt1, sMt1, sMt1, sMt1, sMt1), - new RecipeShape(sMt1, sMt1, sMt1, sMt1, sMt2, sMt1, null, sMt2, null), - new RecipeShape(sMt1, sMt1, null, sMt1, sMt2, sMt2, sMt1, sMt1, null), - new RecipeShape(null, sMt1, sMt1, sMt2, sMt2, sMt1, null, sMt1, sMt1), - new RecipeShape(null, sMt2, null, sMt1, sMt2, sMt1, sMt1, sMt1, sMt1), - new RecipeShape(sMt1, null, null, null, sMt1, null, null, null, null), - new RecipeShape(null, sMt1, null, sMt1, null, null, null, null, null), - new RecipeShape(sMt1, sMt1, null, sMt2, null, sMt1, sMt2, null, null), - new RecipeShape(null, sMt1, sMt1, sMt1, null, sMt2, null, null, sMt2) }; + new RecipeShape(sMt1, null, sMt1, sMt1, sMt1, sMt1, null, sMt1, null), + new RecipeShape(sMt1, null, sMt1, sMt1, null, sMt1, sMt1, sMt1, sMt1), + new RecipeShape(null, sMt1, null, sMt1, sMt1, sMt1, sMt1, null, sMt1), + new RecipeShape(sMt1, sMt1, sMt1, sMt1, null, sMt1, null, null, null), + new RecipeShape(sMt1, null, sMt1, sMt1, sMt1, sMt1, sMt1, sMt1, sMt1), + new RecipeShape(sMt1, sMt1, sMt1, sMt1, null, sMt1, sMt1, null, sMt1), + new RecipeShape(null, null, null, sMt1, null, sMt1, sMt1, null, sMt1), + new RecipeShape(null, sMt1, null, null, sMt1, null, null, sMt2, null), + new RecipeShape(sMt1, sMt1, sMt1, null, sMt2, null, null, sMt2, null), + new RecipeShape(null, sMt1, null, null, sMt2, null, null, sMt2, null), + new RecipeShape(sMt1, sMt1, null, sMt1, sMt2, null, null, sMt2, null), + new RecipeShape(null, sMt1, sMt1, null, sMt2, sMt1, null, sMt2, null), + new RecipeShape(sMt1, sMt1, null, null, sMt2, null, null, sMt2, null), + new RecipeShape(null, sMt1, sMt1, null, sMt2, null, null, sMt2, null), + new RecipeShape(null, sMt1, null, sMt1, null, null, null, sMt1, sMt2), + new RecipeShape(null, sMt1, null, null, null, sMt1, sMt2, sMt1, null), + new RecipeShape(null, sMt1, null, sMt1, null, sMt1, null, null, sMt2), + new RecipeShape(null, sMt1, null, sMt1, null, sMt1, sMt2, null, null), + new RecipeShape(null, sMt2, null, null, sMt1, null, null, sMt1, null), + new RecipeShape(null, sMt2, null, null, sMt2, null, sMt1, sMt1, sMt1), + new RecipeShape(null, sMt2, null, null, sMt2, null, null, sMt1, null), + new RecipeShape(null, sMt2, null, sMt1, sMt2, null, sMt1, sMt1, null), + new RecipeShape(null, sMt2, null, null, sMt2, sMt1, null, sMt1, sMt1), + new RecipeShape(null, sMt2, null, null, sMt2, null, sMt1, sMt1, null), + new RecipeShape(sMt1, null, null, null, sMt2, null, null, null, sMt2), + new RecipeShape(null, null, sMt1, null, sMt2, null, sMt2, null, null), + new RecipeShape(sMt1, null, null, null, sMt2, null, null, null, null), + new RecipeShape(null, null, sMt1, null, sMt2, null, null, null, null), + new RecipeShape(sMt1, sMt2, null, null, null, null, null, null, null), + new RecipeShape(sMt2, sMt1, null, null, null, null, null, null, null), + new RecipeShape(sMt1, null, null, sMt2, null, null, null, null, null), + new RecipeShape(sMt2, null, null, sMt1, null, null, null, null, null), + new RecipeShape(sMt1, sMt1, sMt1, sMt1, sMt1, sMt1, null, sMt2, null), + new RecipeShape(sMt1, sMt1, null, sMt1, sMt1, sMt2, sMt1, sMt1, null), + new RecipeShape(null, sMt1, sMt1, sMt2, sMt1, sMt1, null, sMt1, sMt1), + new RecipeShape(null, sMt2, null, sMt1, sMt1, sMt1, sMt1, sMt1, sMt1), + new RecipeShape(sMt1, sMt1, sMt1, sMt1, sMt2, sMt1, null, sMt2, null), + new RecipeShape(sMt1, sMt1, null, sMt1, sMt2, sMt2, sMt1, sMt1, null), + new RecipeShape(null, sMt1, sMt1, sMt2, sMt2, sMt1, null, sMt1, sMt1), + new RecipeShape(null, sMt2, null, sMt1, sMt2, sMt1, sMt1, sMt1, sMt1), + new RecipeShape(sMt1, null, null, null, sMt1, null, null, null, null), + new RecipeShape(null, sMt1, null, sMt1, null, null, null, null, null), + new RecipeShape(sMt1, sMt1, null, sMt2, null, sMt1, sMt2, null, null), + new RecipeShape(null, sMt1, sMt1, sMt1, null, sMt2, null, null, sMt2) }; public static final Field SHAPED_ORE_RECIPE_WIDTH = ReflectionHelper.findField(ShapedOreRecipe.class, "width"); public static final Field SHAPED_ORE_RECIPE_HEIGHT = ReflectionHelper.findField(ShapedOreRecipe.class, "height"); private static volatile Map> indexedRecipeListCache; private static final String[][] sShapesA = new String[][] { null, null, null, - { "Helmet", s_P + s_P + s_P, s_P + s_H + s_P }, - { "ChestPlate", s_P + s_H + s_P, s_P + s_P + s_P, s_P + s_P + s_P }, - { "Pants", s_P + s_P + s_P, s_P + s_H + s_P, s_P + " " + s_P }, - { "Boots", s_P + " " + s_P, s_P + s_H + s_P }, - { "Sword", " " + s_P + " ", s_F + s_P + s_H, " " + s_R + " " }, - { "Pickaxe", s_P + s_I + s_I, s_F + s_R + s_H, " " + s_R + " " }, - { "Shovel", s_F + s_P + s_H, " " + s_R + " ", " " + s_R + " " }, - { "Axe", s_P + s_I + s_H, s_P + s_R + " ", s_F + s_R + " " }, - { "Axe", s_P + s_I + s_H, s_P + s_R + " ", s_F + s_R + " " }, - { "Hoe", s_P + s_I + s_H, s_F + s_R + " ", " " + s_R + " " }, - { "Hoe", s_P + s_I + s_H, s_F + s_R + " ", " " + s_R + " " }, - { "Sickle", " " + s_P + " ", s_P + s_F + " ", s_H + s_P + s_R }, - { "Sickle", " " + s_P + " ", s_P + s_F + " ", s_H + s_P + s_R }, - { "Sickle", " " + s_P + " ", s_P + s_F + " ", s_H + s_P + s_R }, - { "Sickle", " " + s_P + " ", s_P + s_F + " ", s_H + s_P + s_R }, - { "Sword", " " + s_R + " ", s_F + s_P + s_H, " " + s_P + " " }, - { "Pickaxe", " " + s_R + " ", s_F + s_R + s_H, s_P + s_I + s_I }, - { "Shovel", " " + s_R + " ", " " + s_R + " ", s_F + s_P + s_H }, - { "Axe", s_F + s_R + " ", s_P + s_R + " ", s_P + s_I + s_H }, - { "Axe", s_F + s_R + " ", s_P + s_R + " ", s_P + s_I + s_H }, - { "Hoe", " " + s_R + " ", s_F + s_R + " ", s_P + s_I + s_H }, - { "Hoe", " " + s_R + " ", s_F + s_R + " ", s_P + s_I + s_H }, - { "Spear", s_P + s_H + " ", s_F + s_R + " ", " " + " " + s_R }, - { "Spear", s_P + s_H + " ", s_F + s_R + " ", " " + " " + s_R }, { "Knive", s_H + s_P, s_R + s_F }, - { "Knive", s_F + s_H, s_P + s_R }, { "Knive", s_F + s_H, s_P + s_R }, { "Knive", s_P + s_F, s_R + s_H }, - { "Knive", s_P + s_F, s_R + s_H }, null, null, null, null, - { "WarAxe", s_P + s_P + s_P, s_P + s_R + s_P, s_F + s_R + s_H }, null, null, null, - { "Shears", s_H + s_P, s_P + s_F }, { "Shears", s_H + s_P, s_P + s_F }, - { "Scythe", s_I + s_P + s_H, s_R + s_F + s_P, s_R + " " + " " }, - { "Scythe", s_H + s_P + s_I, s_P + s_F + s_R, " " + " " + s_R } }; + { "Helmet", s_P + s_P + s_P, s_P + s_H + s_P }, + { "ChestPlate", s_P + s_H + s_P, s_P + s_P + s_P, s_P + s_P + s_P }, + { "Pants", s_P + s_P + s_P, s_P + s_H + s_P, s_P + " " + s_P }, { "Boots", s_P + " " + s_P, s_P + s_H + s_P }, + { "Sword", " " + s_P + " ", s_F + s_P + s_H, " " + s_R + " " }, + { "Pickaxe", s_P + s_I + s_I, s_F + s_R + s_H, " " + s_R + " " }, + { "Shovel", s_F + s_P + s_H, " " + s_R + " ", " " + s_R + " " }, + { "Axe", s_P + s_I + s_H, s_P + s_R + " ", s_F + s_R + " " }, + { "Axe", s_P + s_I + s_H, s_P + s_R + " ", s_F + s_R + " " }, + { "Hoe", s_P + s_I + s_H, s_F + s_R + " ", " " + s_R + " " }, + { "Hoe", s_P + s_I + s_H, s_F + s_R + " ", " " + s_R + " " }, + { "Sickle", " " + s_P + " ", s_P + s_F + " ", s_H + s_P + s_R }, + { "Sickle", " " + s_P + " ", s_P + s_F + " ", s_H + s_P + s_R }, + { "Sickle", " " + s_P + " ", s_P + s_F + " ", s_H + s_P + s_R }, + { "Sickle", " " + s_P + " ", s_P + s_F + " ", s_H + s_P + s_R }, + { "Sword", " " + s_R + " ", s_F + s_P + s_H, " " + s_P + " " }, + { "Pickaxe", " " + s_R + " ", s_F + s_R + s_H, s_P + s_I + s_I }, + { "Shovel", " " + s_R + " ", " " + s_R + " ", s_F + s_P + s_H }, + { "Axe", s_F + s_R + " ", s_P + s_R + " ", s_P + s_I + s_H }, + { "Axe", s_F + s_R + " ", s_P + s_R + " ", s_P + s_I + s_H }, + { "Hoe", " " + s_R + " ", s_F + s_R + " ", s_P + s_I + s_H }, + { "Hoe", " " + s_R + " ", s_F + s_R + " ", s_P + s_I + s_H }, + { "Spear", s_P + s_H + " ", s_F + s_R + " ", " " + " " + s_R }, + { "Spear", s_P + s_H + " ", s_F + s_R + " ", " " + " " + s_R }, { "Knive", s_H + s_P, s_R + s_F }, + { "Knive", s_F + s_H, s_P + s_R }, { "Knive", s_F + s_H, s_P + s_R }, { "Knive", s_P + s_F, s_R + s_H }, + { "Knive", s_P + s_F, s_R + s_H }, null, null, null, null, + { "WarAxe", s_P + s_P + s_P, s_P + s_R + s_P, s_F + s_R + s_H }, null, null, null, + { "Shears", s_H + s_P, s_P + s_F }, { "Shears", s_H + s_P, s_P + s_F }, + { "Scythe", s_I + s_P + s_H, s_R + s_F + s_P, s_R + " " + " " }, + { "Scythe", s_H + s_P + s_I, s_P + s_F + s_R, " " + " " + s_R } }; public static volatile int VERSION = 509; static { @@ -131,37 +130,36 @@ public class GT_RecipeRegistrator { } public static void registerMaterialRecycling(ItemStack aStack, Materials aMaterial, long aMaterialAmount, - MaterialStack aByproduct) { + MaterialStack aByproduct) { if (GT_Utility.isStackInvalid(aStack)) return; if (aByproduct != null) { aByproduct = aByproduct.clone(); aByproduct.mAmount /= aStack.stackSize; } GT_OreDictUnificator.addItemData( - GT_Utility.copyAmount(1, aStack), - new ItemData(aMaterial, aMaterialAmount / aStack.stackSize, aByproduct)); + GT_Utility.copyAmount(1, aStack), + new ItemData(aMaterial, aMaterialAmount / aStack.stackSize, aByproduct)); } public static void registerMaterialRecycling(ItemStack aStack, ItemData aData) { if (GT_Utility.isStackInvalid(aStack) || GT_Utility.areStacksEqual(new ItemStack(Items.blaze_rod), aStack) - || aData == null - || !aData.hasValidMaterialData() - || !aData.mMaterial.mMaterial.mAutoGenerateRecycleRecipes - || aData.mMaterial.mAmount <= 0 - || GT_Utility.getFluidForFilledItem(aStack, false) != null - || aData.mMaterial.mMaterial.mSubTags.contains(SubTag.NO_RECIPES)) - return; + || aData == null + || !aData.hasValidMaterialData() + || !aData.mMaterial.mMaterial.mAutoGenerateRecycleRecipes + || aData.mMaterial.mAmount <= 0 + || GT_Utility.getFluidForFilledItem(aStack, false) != null + || aData.mMaterial.mMaterial.mSubTags.contains(SubTag.NO_RECIPES)) return; registerReverseMacerating(GT_Utility.copyAmount(1, aStack), aData, aData.mPrefix == null); registerReverseSmelting( - GT_Utility.copyAmount(1, aStack), - aData.mMaterial.mMaterial, - aData.mMaterial.mAmount, - true); + GT_Utility.copyAmount(1, aStack), + aData.mMaterial.mMaterial, + aData.mMaterial.mAmount, + true); registerReverseFluidSmelting( - GT_Utility.copyAmount(1, aStack), - aData.mMaterial.mMaterial, - aData.mMaterial.mAmount, - aData.getByProduct(0)); + GT_Utility.copyAmount(1, aStack), + aData.mMaterial.mMaterial, + aData.mMaterial.mAmount, + aData.getByProduct(0)); registerReverseArcSmelting(GT_Utility.copyAmount(1, aStack), aData); } @@ -171,20 +169,18 @@ public class GT_RecipeRegistrator { * @param aMaterialAmount the amount of it in Material Units. */ public static void registerReverseFluidSmelting(ItemStack aStack, Materials aMaterial, long aMaterialAmount, - MaterialStack aByproduct) { + MaterialStack aByproduct) { if (aStack == null || aMaterial == null - || aMaterial.mSmeltInto.mStandardMoltenFluid == null - || !aMaterial.contains(SubTag.SMELTING_TO_FLUID) - || (L * aMaterialAmount) / (M * aStack.stackSize) <= 0) - return; + || aMaterial.mSmeltInto.mStandardMoltenFluid == null + || !aMaterial.contains(SubTag.SMELTING_TO_FLUID) + || (L * aMaterialAmount) / (M * aStack.stackSize) <= 0) return; ItemData tData = GT_OreDictUnificator.getItemData(aStack); boolean tHide = aStack.getUnlocalizedName() - .startsWith("gt.blockmachines") - && (GT_Mod.gregtechproxy.mHideRecyclingRecipes); + .startsWith("gt.blockmachines") && (GT_Mod.gregtechproxy.mHideRecyclingRecipes); if (GT_Mod.gregtechproxy.mHideRecyclingRecipes && tData != null - && tData.hasValidPrefixData() - && !(tData.mPrefix == OrePrefixes.dust || tData.mPrefix == OrePrefixes.ingot - || tData.mPrefix == OrePrefixes.block | tData.mPrefix == OrePrefixes.plate)) { + && tData.hasValidPrefixData() + && !(tData.mPrefix == OrePrefixes.dust || tData.mPrefix == OrePrefixes.ingot + || tData.mPrefix == OrePrefixes.block | tData.mPrefix == OrePrefixes.plate)) { tHide = true; } // boolean tHide = (aMaterial != Materials.Iron && aMaterial!= @@ -193,29 +189,23 @@ public class GT_RecipeRegistrator { // tHide=false; // } RA.addFluidSmelterRecipe( - GT_Utility.copyAmount(1, aStack), - aByproduct == null - || (tData != null && tData.hasValidPrefixData() && tData.mPrefix == OrePrefixes.toolHeadDrill) - ? null - : aByproduct.mMaterial.contains(SubTag.NO_SMELTING) - || !aByproduct.mMaterial.contains(SubTag.METAL) - ? aByproduct.mMaterial.contains(SubTag.FLAMMABLE) - ? GT_OreDictUnificator.getDust( - Materials.Ash, - aByproduct.mAmount / 2) - : aByproduct.mMaterial.contains(SubTag.UNBURNABLE) - ? GT_OreDictUnificator.getDustOrIngot( - aByproduct.mMaterial.mSmeltInto, - aByproduct.mAmount) - : null - : GT_OreDictUnificator.getIngotOrDust( - aByproduct.mMaterial.mSmeltInto, - aByproduct.mAmount), - aMaterial.mSmeltInto.getMolten((L * aMaterialAmount) / (M * aStack.stackSize)), - 10000, - (int) Math.max(1, (24 * aMaterialAmount) / M), - Math.max(8, (int) Math.sqrt(2 * aMaterial.mSmeltInto.mStandardMoltenFluid.getTemperature())), - tHide); + GT_Utility.copyAmount(1, aStack), + aByproduct == null + || (tData != null && tData.hasValidPrefixData() && tData.mPrefix == OrePrefixes.toolHeadDrill) + ? null + : aByproduct.mMaterial.contains(SubTag.NO_SMELTING) || !aByproduct.mMaterial.contains(SubTag.METAL) + ? aByproduct.mMaterial.contains(SubTag.FLAMMABLE) + ? GT_OreDictUnificator.getDust(Materials.Ash, aByproduct.mAmount / 2) + : aByproduct.mMaterial.contains(SubTag.UNBURNABLE) + ? GT_OreDictUnificator + .getDustOrIngot(aByproduct.mMaterial.mSmeltInto, aByproduct.mAmount) + : null + : GT_OreDictUnificator.getIngotOrDust(aByproduct.mMaterial.mSmeltInto, aByproduct.mAmount), + aMaterial.mSmeltInto.getMolten((L * aMaterialAmount) / (M * aStack.stackSize)), + 10000, + (int) Math.max(1, (24 * aMaterialAmount) / M), + Math.max(8, (int) Math.sqrt(2 * aMaterial.mSmeltInto.mStandardMoltenFluid.getTemperature())), + tHide); } /** @@ -225,36 +215,35 @@ public class GT_RecipeRegistrator { * @param aAllowAlloySmelter if it is allowed to be recycled inside the Alloy Smelter. */ public static void registerReverseSmelting(ItemStack aStack, Materials aMaterial, long aMaterialAmount, - boolean aAllowAlloySmelter) { + boolean aAllowAlloySmelter) { if (aStack == null || aMaterial == null - || aMaterialAmount <= 0 - || aMaterial.contains(SubTag.NO_SMELTING) - || (aMaterialAmount > M && aMaterial.contains(SubTag.METAL)) - || (aMaterial.getProcessingMaterialTierEU() > TierEU.IV)) - return; + || aMaterialAmount <= 0 + || aMaterial.contains(SubTag.NO_SMELTING) + || (aMaterialAmount > M && aMaterial.contains(SubTag.METAL)) + || (aMaterial.getProcessingMaterialTierEU() > TierEU.IV)) return; if (aMaterial == Materials.Naquadah || aMaterial == Materials.NaquadahEnriched) return; aMaterialAmount /= aStack.stackSize; boolean tHide = (aMaterial != Materials.Iron) && (GT_Mod.gregtechproxy.mHideRecyclingRecipes); if (aAllowAlloySmelter) GT_ModHandler.addSmeltingAndAlloySmeltingRecipe( - GT_Utility.copyAmount(1, aStack), - GT_OreDictUnificator.getIngot(aMaterial.mSmeltInto, aMaterialAmount), - tHide); + GT_Utility.copyAmount(1, aStack), + GT_OreDictUnificator.getIngot(aMaterial.mSmeltInto, aMaterialAmount), + tHide); else GT_ModHandler.addSmeltingRecipe( - GT_Utility.copyAmount(1, aStack), - GT_OreDictUnificator.getIngot(aMaterial.mSmeltInto, aMaterialAmount)); + GT_Utility.copyAmount(1, aStack), + GT_OreDictUnificator.getIngot(aMaterial.mSmeltInto, aMaterialAmount)); } public static void registerReverseArcSmelting(ItemStack aStack, Materials aMaterial, long aMaterialAmount, - MaterialStack aByProduct01, MaterialStack aByProduct02, MaterialStack aByProduct03) { + MaterialStack aByProduct01, MaterialStack aByProduct02, MaterialStack aByProduct03) { registerReverseArcSmelting( - aStack, - new ItemData( - aMaterial == null ? null : new MaterialStack(aMaterial, aMaterialAmount), - aByProduct01, - aByProduct02, - aByProduct03)); + aStack, + new ItemData( + aMaterial == null ? null : new MaterialStack(aMaterial, aMaterialAmount), + aByProduct01, + aByProduct02, + aByProduct03)); } public static void registerReverseArcSmelting(ItemStack aStack, ItemData aData) { @@ -266,9 +255,8 @@ public class GT_RecipeRegistrator { for (MaterialStack tMaterial : aData.getAllMaterialStacks()) { if (tMaterial.mMaterial == Materials.Iron || tMaterial.mMaterial == Materials.Copper - || tMaterial.mMaterial == Materials.WroughtIron - || tMaterial.mMaterial == Materials.AnnealedCopper) - tIron = true; + || tMaterial.mMaterial == Materials.WroughtIron + || tMaterial.mMaterial == Materials.AnnealedCopper) tIron = true; if (tMaterial.mMaterial.contains(SubTag.UNBURNABLE)) { tMaterial.mMaterial = tMaterial.mMaterial.mSmeltInto.mArcSmeltInto; @@ -315,41 +303,41 @@ public class GT_RecipeRegistrator { boolean tHide = !tIron && GT_Mod.gregtechproxy.mHideRecyclingRecipes; if (aData.mPrefix == OrePrefixes.toolHeadDrill) { RA.addArcFurnaceRecipe( - aStack, - new ItemStack[] { GT_OreDictUnificator.getIngotOrDust(aData.mMaterial) }, - null, - 90, - (int) Math.max(16, tAmount / M), - tHide); + aStack, + new ItemStack[] { GT_OreDictUnificator.getIngotOrDust(aData.mMaterial) }, + null, + 90, + (int) Math.max(16, tAmount / M), + tHide); } else { RA.addArcFurnaceRecipe( - aStack, - new ItemStack[] { GT_OreDictUnificator.getIngotOrDust(aData.mMaterial), - GT_OreDictUnificator.getIngotOrDust(aData.getByProduct(0)), - GT_OreDictUnificator.getIngotOrDust(aData.getByProduct(1)), - GT_OreDictUnificator.getIngotOrDust(aData.getByProduct(2)), - GT_OreDictUnificator.getIngotOrDust(aData.getByProduct(3)), - GT_OreDictUnificator.getIngotOrDust(aData.getByProduct(5)), - GT_OreDictUnificator.getIngotOrDust(aData.getByProduct(6)), - GT_OreDictUnificator.getIngotOrDust(aData.getByProduct(7)), - GT_OreDictUnificator.getIngotOrDust(aData.getByProduct(8)) }, - null, - (int) Math.max(16, tAmount / M), - 90, - tHide); + aStack, + new ItemStack[] { GT_OreDictUnificator.getIngotOrDust(aData.mMaterial), + GT_OreDictUnificator.getIngotOrDust(aData.getByProduct(0)), + GT_OreDictUnificator.getIngotOrDust(aData.getByProduct(1)), + GT_OreDictUnificator.getIngotOrDust(aData.getByProduct(2)), + GT_OreDictUnificator.getIngotOrDust(aData.getByProduct(3)), + GT_OreDictUnificator.getIngotOrDust(aData.getByProduct(5)), + GT_OreDictUnificator.getIngotOrDust(aData.getByProduct(6)), + GT_OreDictUnificator.getIngotOrDust(aData.getByProduct(7)), + GT_OreDictUnificator.getIngotOrDust(aData.getByProduct(8)) }, + null, + (int) Math.max(16, tAmount / M), + 90, + tHide); } } public static void registerReverseMacerating(ItemStack aStack, Materials aMaterial, long aMaterialAmount, - MaterialStack aByProduct01, MaterialStack aByProduct02, MaterialStack aByProduct03, boolean aAllowHammer) { + MaterialStack aByProduct01, MaterialStack aByProduct02, MaterialStack aByProduct03, boolean aAllowHammer) { registerReverseMacerating( - aStack, - new ItemData( - aMaterial == null ? null : new MaterialStack(aMaterial, aMaterialAmount), - aByProduct01, - aByProduct02, - aByProduct03), - aAllowHammer); + aStack, + new ItemData( + aMaterial == null ? null : new MaterialStack(aMaterial, aMaterialAmount), + aByProduct01, + aByProduct02, + aByProduct03), + aAllowHammer); } public static void registerReverseMacerating(ItemStack aStack, ItemData aData, boolean aAllowHammer) { @@ -371,42 +359,41 @@ public class GT_RecipeRegistrator { boolean tHide = (aData.mMaterial.mMaterial != Materials.Iron) && (GT_Mod.gregtechproxy.mHideRecyclingRecipes); if (aData.mPrefix == OrePrefixes.toolHeadDrill) { RA.addPulveriserRecipe( - aStack, - new ItemStack[] { GT_OreDictUnificator.getDust(aData.mMaterial) }, - null, - aData.mMaterial.mMaterial == Materials.Marble ? 1 : (int) Math.max(16, tAmount / M), - 4, - tHide); + aStack, + new ItemStack[] { GT_OreDictUnificator.getDust(aData.mMaterial) }, + null, + aData.mMaterial.mMaterial == Materials.Marble ? 1 : (int) Math.max(16, tAmount / M), + 4, + tHide); } else { RA.addPulveriserRecipe( - aStack, - new ItemStack[] { GT_OreDictUnificator.getDust(aData.mMaterial), - GT_OreDictUnificator.getDust(aData.getByProduct(0)), - GT_OreDictUnificator.getDust(aData.getByProduct(1)), - GT_OreDictUnificator.getDust(aData.getByProduct(2)) }, - null, - aData.mMaterial.mMaterial == Materials.Marble ? 1 : (int) Math.max(16, tAmount / M), - 4, - tHide); + aStack, + new ItemStack[] { GT_OreDictUnificator.getDust(aData.mMaterial), + GT_OreDictUnificator.getDust(aData.getByProduct(0)), + GT_OreDictUnificator.getDust(aData.getByProduct(1)), + GT_OreDictUnificator.getDust(aData.getByProduct(2)) }, + null, + aData.mMaterial.mMaterial == Materials.Marble ? 1 : (int) Math.max(16, tAmount / M), + 4, + tHide); } if (aAllowHammer) for (MaterialStack tMaterial : aData.getAllMaterialStacks()) if (tMaterial.mMaterial.contains(SubTag.CRYSTAL) && !tMaterial.mMaterial.contains(SubTag.METAL) - && tMaterial.mMaterial != Materials.Glass) { - if (RA.addForgeHammerRecipe( - GT_Utility.copyAmount(1, aStack), - GT_OreDictUnificator.getDust(aData.mMaterial), - 200, - 30)) - break; - } + && tMaterial.mMaterial != Materials.Glass) { + if (RA.addForgeHammerRecipe( + GT_Utility.copyAmount(1, aStack), + GT_OreDictUnificator.getDust(aData.mMaterial), + 200, + 30)) break; + } } /** * Place Materials which you want to replace in Non-GT-Recipes here (warning HUGHE impact on loading times!) */ private static final Materials[] VANILLA_MATS = { Cobalt, Gold, Iron, Lead, FierySteel, Void, Bronze, Diamond, Ruby, - Sapphire, Steel, IronWood, Steeleaf, Knightmetal, Thaumium, DarkSteel, }; + Sapphire, Steel, IronWood, Steeleaf, Knightmetal, Thaumium, DarkSteel, }; /** * You give this Function a Material and it will scan almost everything for adding recycling Recipes and replacing @@ -417,7 +404,7 @@ public class GT_RecipeRegistrator { * @param aRecipeReplacing allows to replace the Recipe with a Plate variant */ public static synchronized void registerUsagesForMaterials(String aPlate, boolean aRecipeReplacing, - ItemStack... aMats) { + ItemStack... aMats) { for (ItemStack aMat : aMats) { aMat = GT_Utility.copyOrNull(aMat); @@ -439,10 +426,8 @@ public class GT_RecipeRegistrator { for (RecipeShape tRecipe : sShapes) { for (ItemStack tCrafted : GT_ModHandler.getRecipeOutputsBuffered(tRecipe.shape)) { GT_OreDictUnificator.addItemData( - tCrafted, - new ItemData( - aItemData.mMaterial.mMaterial, - aItemData.mMaterial.mAmount * tRecipe.amount1)); + tCrafted, + new ItemData(aItemData.mMaterial.mMaterial, aItemData.mMaterial.mAmount * tRecipe.amount1)); // // GT_Log.out.println("###################################################################################"); // GT_Log.out.println("registerUsagesForMaterials used aPlate: "+aPlate); @@ -475,7 +460,7 @@ public class GT_RecipeRegistrator { Map> result = new IdentityHashMap<>(); @SuppressWarnings("unchecked") ArrayList allRecipeList = (ArrayList) CraftingManager.getInstance() - .getRecipeList(); + .getRecipeList(); // filter using the empty slots in the shape. // if the empty slots doesn't match, the recipe will definitely fail SetMultimap, RecipeShape> filter = HashMultimap.create(); @@ -493,33 +478,33 @@ public class GT_RecipeRegistrator { buffer.clear(); ItemStack tStack = tRecipe.getRecipeOutput(); if (GT_Utility.isStackValid(tStack) && tStack.getMaxStackSize() == 1 - && tStack.getMaxDamage() > 0 - && !(tStack.getItem() instanceof ItemBlock) - && !(tStack.getItem() instanceof IReactorComponent) - && !GT_ModHandler.isElectricItem(tStack) - && !GT_Utility.isStackInList(tStack, GT_ModHandler.sNonReplaceableItems)) { + && tStack.getMaxDamage() > 0 + && !(tStack.getItem() instanceof ItemBlock) + && !(tStack.getItem() instanceof IReactorComponent) + && !GT_ModHandler.isElectricItem(tStack) + && !GT_Utility.isStackInList(tStack, GT_ModHandler.sNonReplaceableItems)) { if (tRecipe instanceof ShapedOreRecipe) { ShapedOreRecipe tShapedRecipe = (ShapedOreRecipe) tRecipe; if (checkRecipeShape( - buffer, - tShapedRecipe.getInput(), - getRecipeWidth(tShapedRecipe), - getRecipeHeight(tShapedRecipe))) { + buffer, + tShapedRecipe.getInput(), + getRecipeWidth(tShapedRecipe), + getRecipeHeight(tShapedRecipe))) { for (RecipeShape s : filter.get(buffer)) { result.computeIfAbsent(s, k -> new ArrayList<>()) - .add(tRecipe); + .add(tRecipe); } } } else if (tRecipe instanceof ShapedRecipes) { ShapedRecipes tShapedRecipe = (ShapedRecipes) tRecipe; if (checkRecipeShape( - buffer, - tShapedRecipe.recipeItems, - getRecipeWidth(tShapedRecipe), - getRecipeHeight(tShapedRecipe))) { + buffer, + tShapedRecipe.recipeItems, + getRecipeWidth(tShapedRecipe), + getRecipeHeight(tShapedRecipe))) { for (RecipeShape s : filter.get(buffer)) { result.computeIfAbsent(s, k -> new ArrayList<>()) - .add(tRecipe); + .add(tRecipe); } } } else { @@ -527,7 +512,7 @@ public class GT_RecipeRegistrator { // unknown recipe type. cannot determine empty slots. we choose to add to the recipe list for // all shapes result.computeIfAbsent(s, k -> new ArrayList<>()) - .add(tRecipe); + .add(tRecipe); } } } @@ -536,7 +521,7 @@ public class GT_RecipeRegistrator { } private static boolean checkRecipeShape(List emptySlotIndexesBuffer, Object[] input, int tRecipeWidth, - int tRecipeHeight) { + int tRecipeHeight) { for (int y = 0; y < 3; y++) { for (int x = 0; x < 3; x++) { if (x >= tRecipeWidth || y >= tRecipeHeight) { @@ -549,9 +534,9 @@ public class GT_RecipeRegistrator { continue; } if (tObject instanceof ItemStack - && (((ItemStack) tObject).getItem() == null || ((ItemStack) tObject).getMaxStackSize() < 2 - || ((ItemStack) tObject).getMaxDamage() > 0 - || ((ItemStack) tObject).getItem() instanceof ItemBlock)) { + && (((ItemStack) tObject).getItem() == null || ((ItemStack) tObject).getMaxStackSize() < 2 + || ((ItemStack) tObject).getMaxDamage() > 0 + || ((ItemStack) tObject).getItem() instanceof ItemBlock)) { return false; } if (tObject instanceof List && ((List) tObject).isEmpty()) { @@ -574,45 +559,41 @@ public class GT_RecipeRegistrator { for (int i = 0; i < sShapes.length; i++) { RecipeShape tRecipe = sShapes[i]; - for (ItemStack tCrafted : GT_ModHandler.getRecipeOutputs( - getRecipeList(tRecipe), - true, - tRecipe.shape)) { + for (ItemStack tCrafted : GT_ModHandler + .getRecipeOutputs(getRecipeList(tRecipe), true, tRecipe.shape)) { if (aItemData != null && aItemData.hasValidPrefixMaterialData()) GT_OreDictUnificator.addItemData( - tCrafted, - new ItemData( - aItemData.mMaterial.mMaterial, - aItemData.mMaterial.mAmount * tRecipe.amount1, - new MaterialStack( - tMaterial, - OrePrefixes.stick.mMaterialAmount * tRecipe.amount2))); + tCrafted, + new ItemData( + aItemData.mMaterial.mMaterial, + aItemData.mMaterial.mAmount * tRecipe.amount1, + new MaterialStack(tMaterial, OrePrefixes.stick.mMaterialAmount * tRecipe.amount2))); if (aRecipeReplacing && aPlate != null && sShapesA[i] != null && sShapesA[i].length > 1) { assert aItemData != null; if (GregTech_API.sRecipeFile.get( - ConfigCategories.Recipes.recipereplacements, - aItemData.mMaterial.mMaterial + "." + sShapesA[i][0], - true)) { + ConfigCategories.Recipes.recipereplacements, + aItemData.mMaterial.mMaterial + "." + sShapesA[i][0], + true)) { if (null != (tStack = GT_ModHandler.removeRecipe(tRecipe.shape))) { switch (sShapesA[i].length) { case 2 -> GT_ModHandler.addCraftingRecipe( - tStack, - GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { sShapesA[i][1], s_P.charAt(0), aPlate, s_R.charAt(0), - OrePrefixes.stick.get(tMaterial), s_I.charAt(0), aItemData }); + tStack, + GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { sShapesA[i][1], s_P.charAt(0), aPlate, s_R.charAt(0), + OrePrefixes.stick.get(tMaterial), s_I.charAt(0), aItemData }); case 3 -> GT_ModHandler.addCraftingRecipe( - tStack, - GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { sShapesA[i][1], sShapesA[i][2], s_P.charAt(0), aPlate, - s_R.charAt(0), OrePrefixes.stick.get(tMaterial), s_I.charAt(0), - aItemData }); + tStack, + GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { sShapesA[i][1], sShapesA[i][2], s_P.charAt(0), aPlate, + s_R.charAt(0), OrePrefixes.stick.get(tMaterial), s_I.charAt(0), + aItemData }); default -> GT_ModHandler.addCraftingRecipe( - tStack, - GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { sShapesA[i][1], sShapesA[i][2], sShapesA[i][3], - s_P.charAt(0), aPlate, s_R.charAt(0), - OrePrefixes.stick.get(tMaterial), s_I.charAt(0), aItemData }); + tStack, + GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { sShapesA[i][1], sShapesA[i][2], sShapesA[i][3], + s_P.charAt(0), aPlate, s_R.charAt(0), OrePrefixes.stick.get(tMaterial), + s_I.charAt(0), aItemData }); } } } @@ -633,12 +614,12 @@ public class GT_RecipeRegistrator { */ public static void registerWiremillRecipes(Materials aMaterial, int baseDuration, int aEUt) { registerWiremillRecipes( - aMaterial, - baseDuration, - calculateRecipeEU(aMaterial, aEUt), - OrePrefixes.ingot, - OrePrefixes.stick, - 2); + aMaterial, + baseDuration, + calculateRecipeEU(aMaterial, aEUt), + OrePrefixes.ingot, + OrePrefixes.stick, + 2); } /** @@ -652,96 +633,96 @@ public class GT_RecipeRegistrator { * @param multiplier amount of wires created from 1 ingot */ public static void registerWiremillRecipes(Materials aMaterial, int baseDuration, int aEUt, OrePrefixes prefix1, - OrePrefixes prefix2, int multiplier) { + OrePrefixes prefix2, int multiplier) { GT_Values.RA.addWiremillRecipe( - GT_OreDictUnificator.get(prefix1, aMaterial, 1L), - GT_Utility.getIntegratedCircuit(1), - GT_OreDictUnificator.get(OrePrefixes.wireGt01, aMaterial, multiplier), - baseDuration, - aEUt); + GT_OreDictUnificator.get(prefix1, aMaterial, 1L), + GT_Utility.getIntegratedCircuit(1), + GT_OreDictUnificator.get(OrePrefixes.wireGt01, aMaterial, multiplier), + baseDuration, + aEUt); GT_Values.RA.addWiremillRecipe( - GT_OreDictUnificator.get(prefix1, aMaterial, 2L / multiplier), - GT_Utility.getIntegratedCircuit(2), - GT_OreDictUnificator.get(OrePrefixes.wireGt02, aMaterial, 1L), - (int) (baseDuration * 1.5f), - aEUt); + GT_OreDictUnificator.get(prefix1, aMaterial, 2L / multiplier), + GT_Utility.getIntegratedCircuit(2), + GT_OreDictUnificator.get(OrePrefixes.wireGt02, aMaterial, 1L), + (int) (baseDuration * 1.5f), + aEUt); GT_Values.RA.addWiremillRecipe( - GT_OreDictUnificator.get(prefix1, aMaterial, 4L / multiplier), - GT_Utility.getIntegratedCircuit(4), - GT_OreDictUnificator.get(OrePrefixes.wireGt04, aMaterial, 1L), - baseDuration * 2, - aEUt); + GT_OreDictUnificator.get(prefix1, aMaterial, 4L / multiplier), + GT_Utility.getIntegratedCircuit(4), + GT_OreDictUnificator.get(OrePrefixes.wireGt04, aMaterial, 1L), + baseDuration * 2, + aEUt); GT_Values.RA.addWiremillRecipe( - GT_OreDictUnificator.get(prefix1, aMaterial, 8L / multiplier), - GT_Utility.getIntegratedCircuit(8), - GT_OreDictUnificator.get(OrePrefixes.wireGt08, aMaterial, 1L), - (int) (baseDuration * 2.5f), - aEUt); + GT_OreDictUnificator.get(prefix1, aMaterial, 8L / multiplier), + GT_Utility.getIntegratedCircuit(8), + GT_OreDictUnificator.get(OrePrefixes.wireGt08, aMaterial, 1L), + (int) (baseDuration * 2.5f), + aEUt); GT_Values.RA.addWiremillRecipe( - GT_OreDictUnificator.get(prefix1, aMaterial, 12L / multiplier), - GT_Utility.getIntegratedCircuit(12), - GT_OreDictUnificator.get(OrePrefixes.wireGt12, aMaterial, 1L), - baseDuration * 3, - aEUt); + GT_OreDictUnificator.get(prefix1, aMaterial, 12L / multiplier), + GT_Utility.getIntegratedCircuit(12), + GT_OreDictUnificator.get(OrePrefixes.wireGt12, aMaterial, 1L), + baseDuration * 3, + aEUt); GT_Values.RA.addWiremillRecipe( - GT_OreDictUnificator.get(prefix1, aMaterial, 16L / multiplier), - GT_Utility.getIntegratedCircuit(16), - GT_OreDictUnificator.get(OrePrefixes.wireGt16, aMaterial, 1L), - (int) (baseDuration * 3.5f), - aEUt); + GT_OreDictUnificator.get(prefix1, aMaterial, 16L / multiplier), + GT_Utility.getIntegratedCircuit(16), + GT_OreDictUnificator.get(OrePrefixes.wireGt16, aMaterial, 1L), + (int) (baseDuration * 3.5f), + aEUt); GT_Values.RA.addWiremillRecipe( - GT_OreDictUnificator.get(prefix2, aMaterial, 2L / multiplier), - GT_Utility.getIntegratedCircuit(1), - GT_OreDictUnificator.get(OrePrefixes.wireGt01, aMaterial, 1L), - baseDuration / 2, - aEUt); + GT_OreDictUnificator.get(prefix2, aMaterial, 2L / multiplier), + GT_Utility.getIntegratedCircuit(1), + GT_OreDictUnificator.get(OrePrefixes.wireGt01, aMaterial, 1L), + baseDuration / 2, + aEUt); GT_Values.RA.addWiremillRecipe( - GT_OreDictUnificator.get(prefix2, aMaterial, 4L / multiplier), - GT_Utility.getIntegratedCircuit(2), - GT_OreDictUnificator.get(OrePrefixes.wireGt02, aMaterial, 1L), - baseDuration, - aEUt); + GT_OreDictUnificator.get(prefix2, aMaterial, 4L / multiplier), + GT_Utility.getIntegratedCircuit(2), + GT_OreDictUnificator.get(OrePrefixes.wireGt02, aMaterial, 1L), + baseDuration, + aEUt); GT_Values.RA.addWiremillRecipe( - GT_OreDictUnificator.get(prefix2, aMaterial, 8L / multiplier), - GT_Utility.getIntegratedCircuit(4), - GT_OreDictUnificator.get(OrePrefixes.wireGt04, aMaterial, 1L), - (int) (baseDuration * 1.5f), - aEUt); + GT_OreDictUnificator.get(prefix2, aMaterial, 8L / multiplier), + GT_Utility.getIntegratedCircuit(4), + GT_OreDictUnificator.get(OrePrefixes.wireGt04, aMaterial, 1L), + (int) (baseDuration * 1.5f), + aEUt); GT_Values.RA.addWiremillRecipe( - GT_OreDictUnificator.get(prefix2, aMaterial, 16L / multiplier), - GT_Utility.getIntegratedCircuit(8), - GT_OreDictUnificator.get(OrePrefixes.wireGt08, aMaterial, 1L), - baseDuration * 2, - aEUt); + GT_OreDictUnificator.get(prefix2, aMaterial, 16L / multiplier), + GT_Utility.getIntegratedCircuit(8), + GT_OreDictUnificator.get(OrePrefixes.wireGt08, aMaterial, 1L), + baseDuration * 2, + aEUt); GT_Values.RA.addWiremillRecipe( - GT_OreDictUnificator.get(prefix2, aMaterial, 24L / multiplier), - GT_Utility.getIntegratedCircuit(12), - GT_OreDictUnificator.get(OrePrefixes.wireGt12, aMaterial, 1L), - (int) (baseDuration * 2.5f), - aEUt); + GT_OreDictUnificator.get(prefix2, aMaterial, 24L / multiplier), + GT_Utility.getIntegratedCircuit(12), + GT_OreDictUnificator.get(OrePrefixes.wireGt12, aMaterial, 1L), + (int) (baseDuration * 2.5f), + aEUt); GT_Values.RA.addWiremillRecipe( - GT_OreDictUnificator.get(prefix2, aMaterial, 32L / multiplier), - GT_Utility.getIntegratedCircuit(16), - GT_OreDictUnificator.get(OrePrefixes.wireGt16, aMaterial, 1L), - baseDuration * 3, - aEUt); + GT_OreDictUnificator.get(prefix2, aMaterial, 32L / multiplier), + GT_Utility.getIntegratedCircuit(16), + GT_OreDictUnificator.get(OrePrefixes.wireGt16, aMaterial, 1L), + baseDuration * 3, + aEUt); GT_Values.RA.addWiremillRecipe( - GT_OreDictUnificator.get(prefix1, aMaterial, 1L), - GT_Utility.getIntegratedCircuit(3), - GT_OreDictUnificator.get(OrePrefixes.wireFine, aMaterial, 4L * multiplier), - baseDuration, - aEUt); + GT_OreDictUnificator.get(prefix1, aMaterial, 1L), + GT_Utility.getIntegratedCircuit(3), + GT_OreDictUnificator.get(OrePrefixes.wireFine, aMaterial, 4L * multiplier), + baseDuration, + aEUt); GT_Values.RA.addWiremillRecipe( - GT_OreDictUnificator.get(prefix2, aMaterial, 1L), - GT_Utility.getIntegratedCircuit(3), - GT_OreDictUnificator.get(OrePrefixes.wireFine, aMaterial, 2L * multiplier), - baseDuration / 2, - aEUt); + GT_OreDictUnificator.get(prefix2, aMaterial, 1L), + GT_Utility.getIntegratedCircuit(3), + GT_OreDictUnificator.get(OrePrefixes.wireFine, aMaterial, 2L * multiplier), + baseDuration / 2, + aEUt); } public static boolean hasVanillaRecipes(Materials materials) { return Arrays.stream(VANILLA_MATS) - .anyMatch(mat -> mat == materials); + .anyMatch(mat -> mat == materials); } private static int getRecipeWidth(ShapedOreRecipe r) { diff --git a/src/main/java/gregtech/api/util/GT_RenderingWorld.java b/src/main/java/gregtech/api/util/GT_RenderingWorld.java index 4ada7decab..7220b921a5 100644 --- a/src/main/java/gregtech/api/util/GT_RenderingWorld.java +++ b/src/main/java/gregtech/api/util/GT_RenderingWorld.java @@ -61,7 +61,7 @@ public class GT_RenderingWorld implements IBlockAccess { ChunkPosition key = new ChunkPosition(x, y, z); infos.put(key, new BlockInfo(block, meta)); index.computeIfAbsent(new ChunkCoordIntPair(x >> 4, z >> 4), p -> new HashSet<>()) - .add(key); + .add(key); } public void unregister(int x, int y, int z, Block block, int meta) { @@ -130,8 +130,8 @@ public class GT_RenderingWorld implements IBlockAccess { public FMLEventHandler() { FMLCommonHandler.instance() - .bus() - .register(this); + .bus() + .register(this); } @SubscribeEvent(priority = EventPriority.HIGHEST) @@ -150,10 +150,10 @@ public class GT_RenderingWorld implements IBlockAccess { public void onChunkUnloaded(ChunkEvent.Unload e) { if (!e.world.isRemote) return; Set set = index.remove( - e.getChunk() - .getChunkCoordIntPair()); + e.getChunk() + .getChunkCoordIntPair()); if (set != null) infos.keySet() - .removeAll(set); + .removeAll(set); } @SubscribeEvent diff --git a/src/main/java/gregtech/api/util/GT_Shaped_Recipe.java b/src/main/java/gregtech/api/util/GT_Shaped_Recipe.java index 02bc0ba0bf..95a1a0bb66 100644 --- a/src/main/java/gregtech/api/util/GT_Shaped_Recipe.java +++ b/src/main/java/gregtech/api/util/GT_Shaped_Recipe.java @@ -17,7 +17,7 @@ public class GT_Shaped_Recipe extends ShapedOreRecipe implements IGT_CraftingRec private final int[] mEnchantmentLevelsAdded; public GT_Shaped_Recipe(ItemStack aResult, boolean aDismantleAble, boolean aRemovableByGT, boolean aKeepingNBT, - Enchantment[] aEnchantmentsAdded, int[] aEnchantmentLevelsAdded, Object... aRecipe) { + Enchantment[] aEnchantmentsAdded, int[] aEnchantmentLevelsAdded, Object... aRecipe) { super(aResult, aRecipe); mEnchantmentsAdded = aEnchantmentsAdded; mEnchantmentLevelsAdded = aEnchantmentLevelsAdded; @@ -33,11 +33,11 @@ public class GT_Shaped_Recipe extends ShapedOreRecipe implements IGT_CraftingRec if (aGrid.getStackInSlot(i) != null) { if (tStack != null) { if ((tStack.hasTagCompound() != aGrid.getStackInSlot(i) - .hasTagCompound()) - || (tStack.hasTagCompound() && !tStack.getTagCompound() - .equals( - aGrid.getStackInSlot(i) - .getTagCompound()))) + .hasTagCompound()) || (tStack.hasTagCompound() + && !tStack.getTagCompound() + .equals( + aGrid.getStackInSlot(i) + .getTagCompound()))) return false; } tStack = aGrid.getStackInSlot(i); @@ -57,11 +57,11 @@ public class GT_Shaped_Recipe extends ShapedOreRecipe implements IGT_CraftingRec // Keeping NBT if (mKeepingNBT) for (int i = 0; i < aGrid.getSizeInventory(); i++) { if (aGrid.getStackInSlot(i) != null && aGrid.getStackInSlot(i) - .hasTagCompound()) { + .hasTagCompound()) { rStack.setTagCompound( - (NBTTagCompound) aGrid.getStackInSlot(i) - .getTagCompound() - .copy()); + (NBTTagCompound) aGrid.getStackInSlot(i) + .getTagCompound() + .copy()); break; } } @@ -71,21 +71,21 @@ public class GT_Shaped_Recipe extends ShapedOreRecipe implements IGT_CraftingRec GT_ModHandler.dischargeElectricItem(rStack, Integer.MAX_VALUE, Integer.MAX_VALUE, true, false, true); int tCharge = 0; for (int i = 0; i < aGrid.getSizeInventory(); i++) tCharge += GT_ModHandler.dischargeElectricItem( - aGrid.getStackInSlot(i), - Integer.MAX_VALUE, - Integer.MAX_VALUE, - true, - true, - true); + aGrid.getStackInSlot(i), + Integer.MAX_VALUE, + Integer.MAX_VALUE, + true, + true, + true); if (tCharge > 0) GT_ModHandler.chargeElectricItem(rStack, tCharge, Integer.MAX_VALUE, true, false); } // Add Enchantments for (int i = 0; i < mEnchantmentsAdded.length; i++) GT_Utility.ItemNBT.addEnchantment( - rStack, - mEnchantmentsAdded[i], - EnchantmentHelper.getEnchantmentLevel(mEnchantmentsAdded[i].effectId, rStack) - + mEnchantmentLevelsAdded[i]); + rStack, + mEnchantmentsAdded[i], + EnchantmentHelper.getEnchantmentLevel(mEnchantmentsAdded[i].effectId, rStack) + + mEnchantmentLevelsAdded[i]); // Update the Stack again GT_Utility.updateItemStack(rStack); diff --git a/src/main/java/gregtech/api/util/GT_Shapeless_Recipe.java b/src/main/java/gregtech/api/util/GT_Shapeless_Recipe.java index 93ba33da31..582dd7cc10 100644 --- a/src/main/java/gregtech/api/util/GT_Shapeless_Recipe.java +++ b/src/main/java/gregtech/api/util/GT_Shapeless_Recipe.java @@ -17,7 +17,7 @@ public class GT_Shapeless_Recipe extends ShapelessOreRecipe implements IGT_Craft private final int[] mEnchantmentLevelsAdded; public GT_Shapeless_Recipe(ItemStack aResult, boolean aDismantleAble, boolean aRemovableByGT, boolean aKeepingNBT, - Enchantment[] aEnchantmentsAdded, int[] aEnchantmentLevelsAdded, Object... aRecipe) { + Enchantment[] aEnchantmentsAdded, int[] aEnchantmentLevelsAdded, Object... aRecipe) { super(aResult, aRecipe); mEnchantmentsAdded = aEnchantmentsAdded; mEnchantmentLevelsAdded = aEnchantmentLevelsAdded; @@ -33,11 +33,11 @@ public class GT_Shapeless_Recipe extends ShapelessOreRecipe implements IGT_Craft if (aGrid.getStackInSlot(i) != null) { if (tStack != null) { if ((tStack.hasTagCompound() != aGrid.getStackInSlot(i) - .hasTagCompound()) - || (tStack.hasTagCompound() && !tStack.getTagCompound() - .equals( - aGrid.getStackInSlot(i) - .getTagCompound()))) + .hasTagCompound()) || (tStack.hasTagCompound() + && !tStack.getTagCompound() + .equals( + aGrid.getStackInSlot(i) + .getTagCompound()))) return false; } tStack = aGrid.getStackInSlot(i); @@ -57,11 +57,11 @@ public class GT_Shapeless_Recipe extends ShapelessOreRecipe implements IGT_Craft // Keeping NBT if (mKeepingNBT) for (int i = 0; i < aGrid.getSizeInventory(); i++) { if (aGrid.getStackInSlot(i) != null && aGrid.getStackInSlot(i) - .hasTagCompound()) { + .hasTagCompound()) { rStack.setTagCompound( - (NBTTagCompound) aGrid.getStackInSlot(i) - .getTagCompound() - .copy()); + (NBTTagCompound) aGrid.getStackInSlot(i) + .getTagCompound() + .copy()); break; } } @@ -71,21 +71,21 @@ public class GT_Shapeless_Recipe extends ShapelessOreRecipe implements IGT_Craft GT_ModHandler.dischargeElectricItem(rStack, Integer.MAX_VALUE, Integer.MAX_VALUE, true, false, true); int tCharge = 0; for (int i = 0; i < aGrid.getSizeInventory(); i++) tCharge += GT_ModHandler.dischargeElectricItem( - aGrid.getStackInSlot(i), - Integer.MAX_VALUE, - Integer.MAX_VALUE, - true, - true, - true); + aGrid.getStackInSlot(i), + Integer.MAX_VALUE, + Integer.MAX_VALUE, + true, + true, + true); if (tCharge > 0) GT_ModHandler.chargeElectricItem(rStack, tCharge, Integer.MAX_VALUE, true, false); } // Add Enchantments for (int i = 0; i < mEnchantmentsAdded.length; i++) GT_Utility.ItemNBT.addEnchantment( - rStack, - mEnchantmentsAdded[i], - EnchantmentHelper.getEnchantmentLevel(mEnchantmentsAdded[i].effectId, rStack) - + mEnchantmentLevelsAdded[i]); + rStack, + mEnchantmentsAdded[i], + EnchantmentHelper.getEnchantmentLevel(mEnchantmentsAdded[i].effectId, rStack) + + mEnchantmentLevelsAdded[i]); // Update the Stack again GT_Utility.updateItemStack(rStack); diff --git a/src/main/java/gregtech/api/util/GT_Single_Recipe_Check.java b/src/main/java/gregtech/api/util/GT_Single_Recipe_Check.java index 806d892365..f46159a89f 100644 --- a/src/main/java/gregtech/api/util/GT_Single_Recipe_Check.java +++ b/src/main/java/gregtech/api/util/GT_Single_Recipe_Check.java @@ -36,20 +36,20 @@ public class GT_Single_Recipe_Check { protected final int totalFluidCost; protected GT_Single_Recipe_Check(GT_MetaTileEntity_MultiBlockBase multiBlockBase, GT_Recipe recipe, - ImmutableMap itemCost, ImmutableMap fluidCost) { + ImmutableMap itemCost, ImmutableMap fluidCost) { this.multiBlockBase = multiBlockBase; this.recipe = recipe; this.itemCost = itemCost; this.fluidCost = fluidCost; this.totalItemCost = itemCost.values() - .stream() - .mapToInt(Integer::intValue) - .sum(); + .stream() + .mapToInt(Integer::intValue) + .sum(); this.totalFluidCost = fluidCost.values() - .stream() - .mapToInt(Integer::intValue) - .sum(); + .stream() + .mapToInt(Integer::intValue) + .sum(); } public GT_Recipe getRecipe() { @@ -68,9 +68,9 @@ public class GT_Single_Recipe_Check { itemMap = new HashMap<>(); for (ItemStack itemStack : multiBlockBase.getStoredInputs()) { itemMap.merge( - GT_Utility.ItemId.createNoCopy(itemStack), - itemStack, - (a, b) -> a.stackSize >= b.stackSize ? a : b); + GT_Utility.ItemId.createNoCopy(itemStack), + itemStack, + (a, b) -> a.stackSize >= b.stackSize ? a : b); } for (Map.Entry entry : itemCost.entrySet()) { @@ -200,33 +200,31 @@ public class GT_Single_Recipe_Check { tag.setTag("outputs", writeList(recipe.mOutputs, GT_Utility::saveItem)); tag.setIntArray("chances", recipe.mChances); tag.setTag( - "fInputs", - writeList( - recipe.mFluidInputs, - s -> s == null ? new NBTTagCompound() : s.writeToNBT(new NBTTagCompound()))); + "fInputs", + writeList(recipe.mFluidInputs, s -> s == null ? new NBTTagCompound() : s.writeToNBT(new NBTTagCompound()))); tag.setTag( - "fOutputs", - writeList( - recipe.mFluidOutputs, - s -> s == null ? new NBTTagCompound() : s.writeToNBT(new NBTTagCompound()))); + "fOutputs", + writeList( + recipe.mFluidOutputs, + s -> s == null ? new NBTTagCompound() : s.writeToNBT(new NBTTagCompound()))); tag.setInteger("eut", recipe.mEUt); tag.setInteger("duration", recipe.mDuration); tag.setInteger("specialValue", recipe.mSpecialValue); tag.setTag("itemCost", writeList(itemCost.entrySet(), e -> { NBTTagCompound ret = new NBTTagCompound(); ret.setTag( - "id", - e.getKey() - .writeToNBT()); + "id", + e.getKey() + .writeToNBT()); ret.setInteger("count", e.getValue()); return ret; })); tag.setTag("fluidCost", writeList(fluidCost.entrySet(), e -> { NBTTagCompound ret = new NBTTagCompound(); ret.setString( - "id", - e.getKey() - .getName()); + "id", + e.getKey() + .getName()); ret.setInteger("count", e.getValue()); return ret; })); @@ -253,7 +251,7 @@ public class GT_Single_Recipe_Check { @Nullable public static GT_Single_Recipe_Check tryLoad(GT_MetaTileEntity_MultiBlockBase parent, - GT_Recipe.GT_Recipe_Map recipeMap, NBTTagCompound tag) { + GT_Recipe.GT_Recipe_Map recipeMap, NBTTagCompound tag) { GT_Recipe found = tryFindRecipe(parent, recipeMap, tag); if (found == null) return null; return new GT_Single_Recipe_Check(parent, found, loadItemCost(tag), loadFluidCost(tag)); @@ -261,52 +259,46 @@ public class GT_Single_Recipe_Check { protected static ImmutableMap loadFluidCost(NBTTagCompound tag) { return GT_Utility.streamCompounds(tag.getTagList("fluidCost", Constants.NBT.TAG_COMPOUND)) - .collect( - GT_Utility.toImmutableMapSerial( - t -> FluidRegistry.getFluid(t.getString("id")), - t -> t.getInteger("count"))); + .collect( + GT_Utility + .toImmutableMapSerial(t -> FluidRegistry.getFluid(t.getString("id")), t -> t.getInteger("count"))); } protected static ImmutableMap loadItemCost(NBTTagCompound tag) { return GT_Utility.streamCompounds(tag.getTagList("itemCost", Constants.NBT.TAG_COMPOUND)) - .collect( - GT_Utility.toImmutableMapSerial( - t -> GT_Utility.ItemId.create(t.getCompoundTag("id")), - t -> t.getInteger("count"))); + .collect( + GT_Utility.toImmutableMapSerial( + t -> GT_Utility.ItemId.create(t.getCompoundTag("id")), + t -> t.getInteger("count"))); } protected static GT_Recipe tryFindRecipe(GT_MetaTileEntity_MultiBlockBase parent, GT_Recipe.GT_Recipe_Map recipeMap, - NBTTagCompound tag) { + NBTTagCompound tag) { if (tag == null || tag.hasNoTags()) return null; ItemStack[] inputs = GT_Utility.streamCompounds(tag.getTagList("inputs", Constants.NBT.TAG_COMPOUND)) - .map(GT_Utility::loadItem) - .toArray(ItemStack[]::new); + .map(GT_Utility::loadItem) + .toArray(ItemStack[]::new); ItemStack[] outputs = GT_Utility.streamCompounds(tag.getTagList("outputs", Constants.NBT.TAG_COMPOUND)) - .map(GT_Utility::loadItem) - .toArray(ItemStack[]::new); + .map(GT_Utility::loadItem) + .toArray(ItemStack[]::new); FluidStack[] fInputs = GT_Utility.streamCompounds(tag.getTagList("fInputs", Constants.NBT.TAG_COMPOUND)) - .map(FluidStack::loadFluidStackFromNBT) - .toArray(FluidStack[]::new); + .map(FluidStack::loadFluidStackFromNBT) + .toArray(FluidStack[]::new); FluidStack[] fOutputs = GT_Utility.streamCompounds(tag.getTagList("fOutputs", Constants.NBT.TAG_COMPOUND)) - .map(FluidStack::loadFluidStackFromNBT) - .toArray(FluidStack[]::new); + .map(FluidStack::loadFluidStackFromNBT) + .toArray(FluidStack[]::new); int eut = tag.getInteger("eut"); - GT_Recipe found = recipeMap.findRecipe( - parent.getBaseMetaTileEntity(), - false, - GT_Values.V[GT_Utility.getTier(eut)], - fInputs, - inputs); + GT_Recipe found = recipeMap + .findRecipe(parent.getBaseMetaTileEntity(), false, GT_Values.V[GT_Utility.getTier(eut)], fInputs, inputs); int[] chances = tag.getIntArray("chances"); if (found == null || !GT_Utility.equals(inputs, found.mInputs) - || !Arrays.equals(fInputs, found.mFluidInputs) - || !GT_Utility.equals(outputs, found.mOutputs) - || !Arrays.equals(fOutputs, found.mFluidOutputs) - || !Arrays.equals(chances, found.mChances) - || found.mDuration != tag.getInteger("duration") - || found.mEUt != eut - || found.mSpecialValue != tag.getInteger("specialValue")) - return null; + || !Arrays.equals(fInputs, found.mFluidInputs) + || !GT_Utility.equals(outputs, found.mOutputs) + || !Arrays.equals(fOutputs, found.mFluidOutputs) + || !Arrays.equals(chances, found.mChances) + || found.mDuration != tag.getInteger("duration") + || found.mEUt != eut + || found.mSpecialValue != tag.getInteger("specialValue")) return null; return found; } @@ -384,10 +376,10 @@ public class GT_Single_Recipe_Check { } return new GT_Single_Recipe_Check( - multiBlockBase, - recipe, - itemCostBuilder.build(), - fluidCostBuilder.build()); + multiBlockBase, + recipe, + itemCostBuilder.build(), + fluidCostBuilder.build()); } } } diff --git a/src/main/java/gregtech/api/util/GT_Single_Recipe_Check_Processing_Array.java b/src/main/java/gregtech/api/util/GT_Single_Recipe_Check_Processing_Array.java index 3996484935..99ed0370d8 100644 --- a/src/main/java/gregtech/api/util/GT_Single_Recipe_Check_Processing_Array.java +++ b/src/main/java/gregtech/api/util/GT_Single_Recipe_Check_Processing_Array.java @@ -26,8 +26,8 @@ public class GT_Single_Recipe_Check_Processing_Array extends GT_Single_Recipe_Ch protected final ItemStack machineStack; protected GT_Single_Recipe_Check_Processing_Array(GT_MetaTileEntity_MultiBlockBase multiBlockBase, GT_Recipe recipe, - ImmutableMap itemCost, ImmutableMap fluidCost, - int recipeAmperage, ItemStack machineStack) { + ImmutableMap itemCost, ImmutableMap fluidCost, int recipeAmperage, + ItemStack machineStack) { super(multiBlockBase, recipe, itemCost, fluidCost); this.recipeAmperage = recipeAmperage; @@ -95,12 +95,8 @@ public class GT_Single_Recipe_Check_Processing_Array extends GT_Single_Recipe_Ch if (totalItemCost > 0) { int remainingItemCost = totalItemCost * finalParallel; Map runningItemCost = itemCost.entrySet() - .stream() - .collect( - Collectors.toMap( - Map.Entry::getKey, - entry -> entry.getValue() - * finalParallel)); + .stream() + .collect(Collectors.toMap(Map.Entry::getKey, entry -> entry.getValue() * finalParallel)); for (ItemStack itemStack : items) { GT_Utility.ItemId key = GT_Utility.ItemId.createNoCopy(itemStack); @@ -119,12 +115,8 @@ public class GT_Single_Recipe_Check_Processing_Array extends GT_Single_Recipe_Ch if (totalFluidCost > 0) { int remainingFluidCost = totalFluidCost * finalParallel; Map runningFluidCost = fluidCost.entrySet() - .stream() - .collect( - Collectors.toMap( - Map.Entry::getKey, - entry -> entry.getValue() - * finalParallel)); + .stream() + .collect(Collectors.toMap(Map.Entry::getKey, entry -> entry.getValue() * finalParallel)); for (FluidStack fluidStack : fluids) { Fluid key = fluidStack.getFluid(); @@ -147,17 +139,17 @@ public class GT_Single_Recipe_Check_Processing_Array extends GT_Single_Recipe_Ch @Nullable public static GT_Single_Recipe_Check tryLoad(GT_MetaTileEntity_MultiBlockBase parent, - GT_Recipe.GT_Recipe_Map recipeMap, NBTTagCompound tag, ItemStack machineStack) { + GT_Recipe.GT_Recipe_Map recipeMap, NBTTagCompound tag, ItemStack machineStack) { if (recipeMap == null || machineStack == null) return null; GT_Recipe found = tryFindRecipe(parent, recipeMap, tag); if (found == null) return null; return new GT_Single_Recipe_Check_Processing_Array( - parent, - found, - loadItemCost(tag), - loadFluidCost(tag), - recipeMap.mAmperage, - machineStack.copy()); + parent, + found, + loadItemCost(tag), + loadFluidCost(tag), + recipeMap.mAmperage, + machineStack.copy()); } public static Builder processingArrayBuilder(GT_MetaTileEntity_MultiBlockBase multiBlockBase) { @@ -240,12 +232,12 @@ public class GT_Single_Recipe_Check_Processing_Array extends GT_Single_Recipe_Ch } return new GT_Single_Recipe_Check_Processing_Array( - multiBlockBase, - recipe, - itemCostBuilder.build(), - fluidCostBuilder.build(), - recipeAmperage, - multiBlockBase.mInventory[1].copy()); + multiBlockBase, + recipe, + itemCostBuilder.build(), + fluidCostBuilder.build(), + recipeAmperage, + multiBlockBase.mInventory[1].copy()); } } } diff --git a/src/main/java/gregtech/api/util/GT_SpawnEventHandler.java b/src/main/java/gregtech/api/util/GT_SpawnEventHandler.java index c17f73a147..5bbaa32007 100644 --- a/src/main/java/gregtech/api/util/GT_SpawnEventHandler.java +++ b/src/main/java/gregtech/api/util/GT_SpawnEventHandler.java @@ -41,8 +41,7 @@ public class GT_SpawnEventHandler { if (event.getResult() == Event.Result.DENY) return; if (event.entityLiving instanceof EntitySlime && !(((EntitySlime) event.entityLiving).getCustomNameTag() - .length() - > 0)) { + .length() > 0)) { if (event.getResult() == Event.Result.ALLOW) event.setResult(Event.Result.DEFAULT); } @@ -65,9 +64,10 @@ public class GT_SpawnEventHandler { if (check > maxRangeCheck) continue; final TileEntity tTile = event.entity.worldObj.getTileEntity(rep[0], rep[1], rep[2]); - if (tTile instanceof BaseMetaTileEntity - && ((BaseMetaTileEntity) tTile).getMetaTileEntity() instanceof GT_MetaTileEntity_MonsterRepellent) { - final int r = ((GT_MetaTileEntity_MonsterRepellent) ((BaseMetaTileEntity) tTile).getMetaTileEntity()).mRange; + if (tTile instanceof BaseMetaTileEntity && ((BaseMetaTileEntity) tTile) + .getMetaTileEntity() instanceof GT_MetaTileEntity_MonsterRepellent) { + final int r = ((GT_MetaTileEntity_MonsterRepellent) ((BaseMetaTileEntity) tTile) + .getMetaTileEntity()).mRange; if (check <= Math.pow(r, 2)) { if (event.entityLiving instanceof EntitySlime) ((EntitySlime) event.entityLiving).setCustomNameTag("DoNotSpawnSlimes"); diff --git a/src/main/java/gregtech/api/util/GT_StructureUtility.java b/src/main/java/gregtech/api/util/GT_StructureUtility.java index 703e056bc9..2447bea63f 100644 --- a/src/main/java/gregtech/api/util/GT_StructureUtility.java +++ b/src/main/java/gregtech/api/util/GT_StructureUtility.java @@ -53,7 +53,7 @@ public class GT_StructureUtility { } public static IStructureElementNoPlacement ofHatchAdder(IGT_HatchAdder aHatchAdder, int aTextureIndex, - int aDots) { + int aDots) { return ofHatchAdder(aHatchAdder, aTextureIndex, StructureLibAPI.getBlockHint(), aDots - 1); } @@ -88,20 +88,9 @@ public class GT_StructureUtility { public boolean placeBlock(T t, World world, int x, int y, int z, ItemStack trigger) { ItemStack tFrameStack = getFrameStack(); if (!GT_Utility.isStackValid(tFrameStack) - || !(tFrameStack.getItem() instanceof ItemBlock tFrameStackItem)) - return false; - return tFrameStackItem.placeBlockAt( - tFrameStack, - null, - world, - x, - y, - z, - 6, - 0, - 0, - 0, - Items.feather.getDamage(tFrameStack)); + || !(tFrameStack.getItem() instanceof ItemBlock tFrameStackItem)) return false; + return tFrameStackItem + .placeBlockAt(tFrameStack, null, world, x, y, z, 6, 0, 0, 0, Items.feather.getDamage(tFrameStack)); } private ItemStack getFrameStack() { @@ -110,7 +99,7 @@ public class GT_StructureUtility { @Override public BlocksToPlace getBlocksToPlace(T t, World world, int x, int y, int z, ItemStack trigger, - AutoPlaceEnvironment env) { + AutoPlaceEnvironment env) { ItemStack tFrameStack = getFrameStack(); if (!GT_Utility.isStackValid(tFrameStack) || !(tFrameStack.getItem() instanceof ItemBlock)) return BlocksToPlace.errored; @@ -119,36 +108,36 @@ public class GT_StructureUtility { @Override public PlaceResult survivalPlaceBlock(T t, World world, int x, int y, int z, ItemStack trigger, - IItemSource s, EntityPlayerMP actor, Consumer chatter) { + IItemSource s, EntityPlayerMP actor, Consumer chatter) { return survivalPlaceBlock( - t, - world, - x, - y, - z, - trigger, - AutoPlaceEnvironment.fromLegacy(s, actor, chatter)); + t, + world, + x, + y, + z, + trigger, + AutoPlaceEnvironment.fromLegacy(s, actor, chatter)); } @Override public PlaceResult survivalPlaceBlock(T t, World world, int x, int y, int z, ItemStack trigger, - AutoPlaceEnvironment env) { + AutoPlaceEnvironment env) { if (check(t, world, x, y, z)) return SKIP; ItemStack tFrameStack = getFrameStack(); if (!GT_Utility.isStackValid(tFrameStack) || !(tFrameStack.getItem() instanceof ItemBlock)) return REJECT; // honestly, this is more like a programming error or pack issue return StructureUtility.survivalPlaceBlock( - tFrameStack, - ItemStackPredicate.NBTMode.IGNORE_KNOWN_INSIGNIFICANT_TAGS, - null, - false, - world, - x, - y, - z, - env.getSource(), - env.getActor(), - env.getChatter()); + tFrameStack, + ItemStackPredicate.NBTMode.IGNORE_KNOWN_INSIGNIFICANT_TAGS, + null, + false, + world, + x, + y, + z, + env.getSource(), + env.getActor(), + env.getChatter()); } }; } @@ -166,7 +155,7 @@ public class GT_StructureUtility { } public static IStructureElementNoPlacement ofHatchAdder(IGT_HatchAdder aHatchAdder, int aTextureIndex, - Block aHintBlock, int aHintMeta) { + Block aHintBlock, int aHintMeta) { if (aHatchAdder == null || aHintBlock == null) { throw new IllegalArgumentException(); } @@ -176,7 +165,7 @@ public class GT_StructureUtility { public boolean check(T t, World world, int x, int y, int z) { TileEntity tileEntity = world.getTileEntity(x, y, z); return tileEntity instanceof IGregTechTileEntity - && aHatchAdder.apply(t, (IGregTechTileEntity) tileEntity, (short) aTextureIndex); + && aHatchAdder.apply(t, (IGregTechTileEntity) tileEntity, (short) aTextureIndex); } @Override @@ -188,8 +177,8 @@ public class GT_StructureUtility { } public static IStructureElement ofHatchAdder(IGT_HatchAdder aHatchAdder, int aTextureIndex, - Block aHintBlock, int aHintMeta, BiPredicate shouldSkip, - Function> aMetaId, final IStructureElement.PlaceResult acceptType) { + Block aHintBlock, int aHintMeta, BiPredicate shouldSkip, + Function> aMetaId, final IStructureElement.PlaceResult acceptType) { if (aHatchAdder == null) { throw new IllegalArgumentException(); } @@ -199,7 +188,7 @@ public class GT_StructureUtility { public boolean check(T t, World world, int x, int y, int z) { TileEntity tileEntity = world.getTileEntity(x, y, z); return tileEntity instanceof IGregTechTileEntity - && aHatchAdder.apply(t, (IGregTechTileEntity) tileEntity, (short) aTextureIndex); + && aHatchAdder.apply(t, (IGregTechTileEntity) tileEntity, (short) aTextureIndex); } @Override @@ -216,7 +205,7 @@ public class GT_StructureUtility { @Override public BlocksToPlace getBlocksToPlace(T t, World world, int x, int y, int z, ItemStack trigger, - AutoPlaceEnvironment env) { + AutoPlaceEnvironment env) { Class clazz = aMetaId.apply(t); if (clazz == null) return BlocksToPlace.createEmpty(); return BlocksToPlace.create(is -> clazz.isInstance(GT_Item_Machines.getMetaTileEntity(is))); @@ -224,58 +213,48 @@ public class GT_StructureUtility { @Override public PlaceResult survivalPlaceBlock(T t, World world, int x, int y, int z, ItemStack trigger, - IItemSource s, EntityPlayerMP actor, Consumer chatter) { + IItemSource s, EntityPlayerMP actor, Consumer chatter) { return survivalPlaceBlock( - t, - world, - x, - y, - z, - trigger, - AutoPlaceEnvironment.fromLegacy(s, actor, chatter)); + t, + world, + x, + y, + z, + trigger, + AutoPlaceEnvironment.fromLegacy(s, actor, chatter)); } @Override public PlaceResult survivalPlaceBlock(T t, World world, int x, int y, int z, ItemStack trigger, - AutoPlaceEnvironment env) { + AutoPlaceEnvironment env) { if (shouldSkip != null) { TileEntity tileEntity = world.getTileEntity(x, y, z); if (tileEntity instanceof IGregTechTileEntity - && shouldSkip.test(t, (IGregTechTileEntity) tileEntity)) - return SKIP; + && shouldSkip.test(t, (IGregTechTileEntity) tileEntity)) return SKIP; } if (!StructureLibAPI.isBlockTriviallyReplaceable(world, x, y, z, env.getActor())) return REJECT; Class clazz = aMetaId.apply(t); if (clazz == null) return REJECT; ItemStack taken = env.getSource() - .takeOne(is -> clazz.isInstance(GT_Item_Machines.getMetaTileEntity(is)), true); + .takeOne(is -> clazz.isInstance(GT_Item_Machines.getMetaTileEntity(is)), true); if (GT_Utility.isStackInvalid(taken)) { env.getChatter() - .accept( - new ChatComponentTranslation( - "GT5U.autoplace.error.no_mte.class_name", - clazz.getSimpleName())); + .accept( + new ChatComponentTranslation( + "GT5U.autoplace.error.no_mte.class_name", + clazz.getSimpleName())); return REJECT; } - if (StructureUtility.survivalPlaceBlock( - taken, - EXACT, - null, - true, - world, - x, - y, - z, - env.getSource(), - env.getActor()) == ACCEPT) - return acceptType; + if (StructureUtility + .survivalPlaceBlock(taken, EXACT, null, true, world, x, y, z, env.getSource(), env.getActor()) + == ACCEPT) return acceptType; return REJECT; } }; } public static IStructureElement ofHatchAdder(IGT_HatchAdder aHatchAdder, int aTextureIndex, - Block aHintBlock, int aHintMeta, BiPredicate shouldSkip, ToIntFunction aMetaId) { + Block aHintBlock, int aHintMeta, BiPredicate shouldSkip, ToIntFunction aMetaId) { if (aHatchAdder == null) { throw new IllegalArgumentException(); } @@ -285,7 +264,7 @@ public class GT_StructureUtility { public boolean check(T t, World world, int x, int y, int z) { TileEntity tileEntity = world.getTileEntity(x, y, z); return tileEntity instanceof IGregTechTileEntity - && aHatchAdder.apply(t, (IGregTechTileEntity) tileEntity, (short) aTextureIndex); + && aHatchAdder.apply(t, (IGregTechTileEntity) tileEntity, (short) aTextureIndex); } @Override @@ -302,79 +281,70 @@ public class GT_StructureUtility { @Override public BlocksToPlace getBlocksToPlace(T t, World world, int x, int y, int z, ItemStack trigger, - AutoPlaceEnvironment env) { + AutoPlaceEnvironment env) { GT_Item_Machines item = (GT_Item_Machines) Item.getItemFromBlock(GregTech_API.sBlockMachines); int meta = aMetaId.applyAsInt(t); if (meta < 0) return BlocksToPlace.createEmpty(); return BlocksToPlace.create( - ItemStackPredicate.from(item) - .setMeta(meta)); + ItemStackPredicate.from(item) + .setMeta(meta)); } @Override public PlaceResult survivalPlaceBlock(T t, World world, int x, int y, int z, ItemStack trigger, - IItemSource s, EntityPlayerMP actor, Consumer chatter) { + IItemSource s, EntityPlayerMP actor, Consumer chatter) { return survivalPlaceBlock( - t, - world, - x, - y, - z, - trigger, - AutoPlaceEnvironment.fromLegacy(s, actor, chatter)); + t, + world, + x, + y, + z, + trigger, + AutoPlaceEnvironment.fromLegacy(s, actor, chatter)); } @Override public PlaceResult survivalPlaceBlock(T t, World world, int x, int y, int z, ItemStack trigger, - AutoPlaceEnvironment env) { + AutoPlaceEnvironment env) { if (shouldSkip != null) { TileEntity tileEntity = world.getTileEntity(x, y, z); if (tileEntity instanceof IGregTechTileEntity - && shouldSkip.test(t, (IGregTechTileEntity) tileEntity)) - return SKIP; + && shouldSkip.test(t, (IGregTechTileEntity) tileEntity)) return SKIP; } if (!StructureLibAPI.isBlockTriviallyReplaceable(world, x, y, z, env.getActor())) return REJECT; GT_Item_Machines item = (GT_Item_Machines) Item.getItemFromBlock(GregTech_API.sBlockMachines); int meta = aMetaId.applyAsInt(t); if (meta < 0) return REJECT; ItemStack taken = env.getSource() - .takeOne( - ItemStackPredicate.from(item) - .setMeta(meta), - true); + .takeOne( + ItemStackPredicate.from(item) + .setMeta(meta), + true); if (GT_Utility.isStackInvalid(taken)) { env.getChatter() - .accept(new ChatComponentTranslation("GT5U.autoplace.error.no_mte.id", meta)); + .accept(new ChatComponentTranslation("GT5U.autoplace.error.no_mte.id", meta)); return REJECT; } - return StructureUtility.survivalPlaceBlock( - taken, - EXACT, - null, - true, - world, - x, - y, - z, - env.getSource(), - env.getActor()) == ACCEPT ? ACCEPT_STOP : REJECT; + return StructureUtility + .survivalPlaceBlock(taken, EXACT, null, true, world, x, y, z, env.getSource(), env.getActor()) + == ACCEPT ? ACCEPT_STOP : REJECT; } }; } public static IStructureElement ofHatchAdderOptional(IGT_HatchAdder aHatchAdder, int textureIndex, - int dots, Block placeCasing, int placeCasingMeta) { + int dots, Block placeCasing, int placeCasingMeta) { return ofHatchAdderOptional( - aHatchAdder, - textureIndex, - StructureLibAPI.getBlockHint(), - dots - 1, - placeCasing, - placeCasingMeta); + aHatchAdder, + textureIndex, + StructureLibAPI.getBlockHint(), + dots - 1, + placeCasing, + placeCasingMeta); } public static IStructureElement ofHatchAdderOptional(IGT_HatchAdder aHatchAdder, int aTextureIndex, - Block aHintBlock, int hintMeta, Block placeCasing, int placeCasingMeta) { + Block aHintBlock, int hintMeta, Block placeCasing, int placeCasingMeta) { if (aHatchAdder == null || aHintBlock == null) { throw new IllegalArgumentException(); } @@ -385,8 +355,8 @@ public class GT_StructureUtility { TileEntity tileEntity = world.getTileEntity(x, y, z); Block worldBlock = world.getBlock(x, y, z); return (tileEntity instanceof IGregTechTileEntity - && aHatchAdder.apply(t, (IGregTechTileEntity) tileEntity, (short) aTextureIndex)) - || (worldBlock == placeCasing && worldBlock.getDamageValue(world, x, y, z) == placeCasingMeta); + && aHatchAdder.apply(t, (IGregTechTileEntity) tileEntity, (short) aTextureIndex)) + || (worldBlock == placeCasing && worldBlock.getDamageValue(world, x, y, z) == placeCasingMeta); } @Override @@ -403,18 +373,10 @@ public class GT_StructureUtility { @Override public PlaceResult survivalPlaceBlock(T t, World world, int x, int y, int z, ItemStack trigger, - IItemSource s, EntityPlayerMP actor, Consumer chatter) { + IItemSource s, EntityPlayerMP actor, Consumer chatter) { if (check(t, world, x, y, z)) return SKIP; - return StructureUtility.survivalPlaceBlock( - placeCasing, - placeCasingMeta, - world, - x, - y, - z, - s, - actor, - chatter); + return StructureUtility + .survivalPlaceBlock(placeCasing, placeCasingMeta, world, x, y, z, s, actor, chatter); } }; } @@ -425,7 +387,7 @@ public class GT_StructureUtility { * @see #ofCoil(BiPredicate, Function) */ public static IStructureElement ofCoil(BiConsumer aHeatingCoilSetter, - Function aHeatingCoilGetter) { + Function aHeatingCoilGetter) { return ofCoil((t, l) -> { aHeatingCoilSetter.accept(t, l); return true; @@ -441,7 +403,7 @@ public class GT_StructureUtility { * @param aHeatingCoilGetter Get the current heating level. Null means no coil recorded yet. */ public static IStructureElement ofCoil(BiPredicate aHeatingCoilSetter, - Function aHeatingCoilGetter) { + Function aHeatingCoilGetter) { if (aHeatingCoilSetter == null || aHeatingCoilGetter == null) { throw new IllegalArgumentException(); } @@ -452,7 +414,7 @@ public class GT_StructureUtility { Block block = world.getBlock(x, y, z); if (!(block instanceof IHeatingCoil)) return false; HeatingCoilLevel existingLevel = aHeatingCoilGetter.apply(t), - newLevel = ((IHeatingCoil) block).getCoilHeat(world.getBlockMetadata(x, y, z)); + newLevel = ((IHeatingCoil) block).getCoilHeat(world.getBlockMetadata(x, y, z)); if (existingLevel == null || existingLevel == HeatingCoilLevel.None) { return aHeatingCoilSetter.test(t, newLevel); } else { @@ -471,8 +433,8 @@ public class GT_StructureUtility { } private HeatingCoilLevel getHeatFromHint(ItemStack trigger) { - return HeatingCoilLevel.getFromTier( - (byte) Math.min(HeatingCoilLevel.getMaxTier(), Math.max(0, trigger.stackSize - 1))); + return HeatingCoilLevel + .getFromTier((byte) Math.min(HeatingCoilLevel.getMaxTier(), Math.max(0, trigger.stackSize - 1))); } @Override @@ -482,41 +444,40 @@ public class GT_StructureUtility { @Override public BlocksToPlace getBlocksToPlace(T t, World world, int x, int y, int z, ItemStack trigger, - AutoPlaceEnvironment env) { + AutoPlaceEnvironment env) { return BlocksToPlace.create(GregTech_API.sBlockCasings5, getMetaFromHint(trigger)); } @Override public PlaceResult survivalPlaceBlock(T t, World world, int x, int y, int z, ItemStack trigger, - IItemSource s, EntityPlayerMP actor, Consumer chatter) { + IItemSource s, EntityPlayerMP actor, Consumer chatter) { return survivalPlaceBlock( - t, - world, - x, - y, - z, - trigger, - AutoPlaceEnvironment.fromLegacy(s, actor, chatter)); + t, + world, + x, + y, + z, + trigger, + AutoPlaceEnvironment.fromLegacy(s, actor, chatter)); } @Override public PlaceResult survivalPlaceBlock(T t, World world, int x, int y, int z, ItemStack trigger, - AutoPlaceEnvironment env) { + AutoPlaceEnvironment env) { Block block = world.getBlock(x, y, z); boolean isCoil = block instanceof IHeatingCoil - && ((IHeatingCoil) block).getCoilHeat(world.getBlockMetadata(x, y, z)) - == getHeatFromHint(trigger); + && ((IHeatingCoil) block).getCoilHeat(world.getBlockMetadata(x, y, z)) == getHeatFromHint(trigger); if (isCoil) return SKIP; return StructureUtility.survivalPlaceBlock( - GregTech_API.sBlockCasings5, - getMetaFromHint(trigger), - world, - x, - y, - z, - env.getSource(), - env.getActor(), - env.getChatter()); + GregTech_API.sBlockCasings5, + getMetaFromHint(trigger), + world, + x, + y, + z, + env.getSource(), + env.getActor(), + env.getChatter()); } }; } @@ -526,7 +487,7 @@ public class GT_StructureUtility { return is -> { IMetaTileEntity tile = GT_Item_Machines.getMetaTileEntity(is); return tile != null && list.stream() - .anyMatch(c -> c.isInstance(tile)); + .anyMatch(c -> c.isInstance(tile)); }; } @@ -535,8 +496,8 @@ public class GT_StructureUtility { return is -> { IMetaTileEntity tile = GT_Item_Machines.getMetaTileEntity(is); return tile instanceof GT_MetaTileEntity_TieredMachineBlock - && ((GT_MetaTileEntity_TieredMachineBlock) tile).mTier <= aMaxTier - && ((GT_MetaTileEntity_TieredMachineBlock) tile).mTier >= aMinTier; + && ((GT_MetaTileEntity_TieredMachineBlock) tile).mTier <= aMaxTier + && ((GT_MetaTileEntity_TieredMachineBlock) tile).mTier >= aMinTier; }; } } diff --git a/src/main/java/gregtech/api/util/GT_TooltipDataCache.java b/src/main/java/gregtech/api/util/GT_TooltipDataCache.java index cb702688cf..431ef34fa4 100644 --- a/src/main/java/gregtech/api/util/GT_TooltipDataCache.java +++ b/src/main/java/gregtech/api/util/GT_TooltipDataCache.java @@ -58,10 +58,9 @@ public class GT_TooltipDataCache { lines.add(key); // Fallback in case no lines could be found at all } return new TooltipData( - lines.subList(0, getVerbosityIndex(GT_Mod.gregtechproxy.mTooltipVerbosity, normalLines, lines.size())), - lines.subList( - 0, - getVerbosityIndex(GT_Mod.gregtechproxy.mTooltipShiftVerbosity, normalLines, lines.size()))); + lines.subList(0, getVerbosityIndex(GT_Mod.gregtechproxy.mTooltipVerbosity, normalLines, lines.size())), + lines + .subList(0, getVerbosityIndex(GT_Mod.gregtechproxy.mTooltipShiftVerbosity, normalLines, lines.size()))); } /** diff --git a/src/main/java/gregtech/api/util/GT_Util.java b/src/main/java/gregtech/api/util/GT_Util.java index 177b391f5d..8a799a9616 100644 --- a/src/main/java/gregtech/api/util/GT_Util.java +++ b/src/main/java/gregtech/api/util/GT_Util.java @@ -39,46 +39,46 @@ public class GT_Util { if (t.getSecond() == null) continue; if (t.getSecond() instanceof Boolean) rNBT.setBoolean( - t.getFirst() - .toString(), - (Boolean) t.getSecond()); + t.getFirst() + .toString(), + (Boolean) t.getSecond()); else if (t.getSecond() instanceof Byte) rNBT.setByte( - t.getFirst() - .toString(), - (Byte) t.getSecond()); + t.getFirst() + .toString(), + (Byte) t.getSecond()); else if (t.getSecond() instanceof Short) rNBT.setShort( - t.getFirst() - .toString(), - (Short) t.getSecond()); + t.getFirst() + .toString(), + (Short) t.getSecond()); else if (t.getSecond() instanceof Integer) rNBT.setInteger( - t.getFirst() - .toString(), - (Integer) t.getSecond()); + t.getFirst() + .toString(), + (Integer) t.getSecond()); else if (t.getSecond() instanceof Long) rNBT.setLong( - t.getFirst() - .toString(), - (Long) t.getSecond()); + t.getFirst() + .toString(), + (Long) t.getSecond()); else if (t.getSecond() instanceof Float) rNBT.setFloat( - t.getFirst() - .toString(), - (Float) t.getSecond()); + t.getFirst() + .toString(), + (Float) t.getSecond()); else if (t.getSecond() instanceof Double) rNBT.setDouble( - t.getFirst() - .toString(), - (Double) t.getSecond()); + t.getFirst() + .toString(), + (Double) t.getSecond()); else if (t.getSecond() instanceof String) rNBT.setString( - t.getFirst() - .toString(), - (String) t.getSecond()); + t.getFirst() + .toString(), + (String) t.getSecond()); else if (t.getSecond() instanceof NBTBase) rNBT.setTag( - t.getFirst() - .toString(), - (NBTBase) t.getSecond()); + t.getFirst() + .toString(), + (NBTBase) t.getSecond()); else rNBT.setString( - t.getFirst() - .toString(), - t.getSecond() - .toString()); + t.getFirst() + .toString(), + t.getSecond() + .toString()); } return rNBT; @@ -101,7 +101,7 @@ public class GT_Util { /** Sets the TileEntity at the passed position, with the option of turning adjacent TileEntity updates off. */ public static TileEntity setTileEntity(World aWorld, int aX, int aY, int aZ, TileEntity aTileEntity, - boolean aCauseTileEntityUpdates) { + boolean aCauseTileEntityUpdates) { if (aCauseTileEntityUpdates) aWorld.setTileEntity(aX, aY, aZ, aTileEntity); else { Chunk tChunk = aWorld.getChunkFromChunkCoords(aX >> 4, aZ >> 4); @@ -115,7 +115,7 @@ public class GT_Util { } public static boolean setTileEntity(World aWorld, int aX, int aY, int aZ, Block aBlock, short aMeta, long aFlags, - boolean aRemoveGrassBelow) { + boolean aRemoveGrassBelow) { if (aRemoveGrassBelow) { final Block tBlock = aWorld.getBlock(aX, aY - 1, aZ); if (tBlock == Blocks.grass || tBlock == Blocks.mycelium) @@ -137,9 +137,7 @@ public class GT_Util { aChunk = aWorld.getChunkFromBlockCoords(aX, aZ); if (aChunk == null) { GT_Log.err.println( - "Some important Chunk does not exist for some reason at Coordinates X: " + aX - + " and Z: " - + aZ); + "Some important Chunk does not exist for some reason at Coordinates X: " + aX + " and Z: " + aZ); return false; } } @@ -150,15 +148,15 @@ public class GT_Util { /** Marks a Chunk dirty so it is saved */ public static boolean markChunkDirty(Object aTileEntity) { return aTileEntity instanceof TileEntity && markChunkDirty( - ((TileEntity) aTileEntity).getWorldObj(), - ((TileEntity) aTileEntity).xCoord, - ((TileEntity) aTileEntity).zCoord); + ((TileEntity) aTileEntity).getWorldObj(), + ((TileEntity) aTileEntity).xCoord, + ((TileEntity) aTileEntity).zCoord); } public static int mixRGBInt(int aRGB1, int aRGB2) { return getRGBInt( - new short[] { (short) ((getR(aRGB1) + getR(aRGB2)) >> 1), (short) ((getG(aRGB1) + getG(aRGB2)) >> 1), - (short) ((getB(aRGB1) + getB(aRGB2)) >> 1) }); + new short[] { (short) ((getR(aRGB1) + getR(aRGB2)) >> 1), (short) ((getG(aRGB1) + getG(aRGB2)) >> 1), + (short) ((getB(aRGB1) + getB(aRGB2)) >> 1) }); } public static int getRGBInt(short[] aColors) { @@ -183,7 +181,7 @@ public class GT_Util { public static short[] getRGBaArray(int aColors) { return new short[] { (short) ((aColors >>> 16) & 255), (short) ((aColors >>> 8) & 255), (short) (aColors & 255), - (short) ((aColors >>> 24) & 255) }; + (short) ((aColors >>> 24) & 255) }; } public static short getR(int aColors) { diff --git a/src/main/java/gregtech/api/util/GT_Utility.java b/src/main/java/gregtech/api/util/GT_Utility.java index 12e5022ef0..8d9d0814dc 100644 --- a/src/main/java/gregtech/api/util/GT_Utility.java +++ b/src/main/java/gregtech/api/util/GT_Utility.java @@ -172,8 +172,8 @@ public class GT_Utility { // 1 is the magic index to get the cobblestone block. // See: GT_Block_Stones.java, GT_Block_Granites.java Function> materialToCobble = m -> Suppliers.memoize( - () -> GT_OreDictUnificator.getOres(OrePrefixes.stone, m) - .get(1))::get; + () -> GT_OreDictUnificator.getOres(OrePrefixes.stone, m) + .get(1))::get; sOreToCobble.put(OrePrefixes.oreBlackgranite, materialToCobble.apply(Materials.GraniteBlack)); sOreToCobble.put(OrePrefixes.oreRedgranite, materialToCobble.apply(Materials.GraniteRed)); sOreToCobble.put(OrePrefixes.oreMarble, materialToCobble.apply(Materials.Marble)); @@ -188,14 +188,14 @@ public class GT_Utility { public static int safeInt(long number) { return number > V[V.length - 1] ? safeInt(V[V.length - 1], 1) - : number < Integer.MIN_VALUE ? Integer.MIN_VALUE : (int) number; + : number < Integer.MIN_VALUE ? Integer.MIN_VALUE : (int) number; } public static Field getPublicField(Object aObject, String aField) { Field rField = null; try { rField = aObject.getClass() - .getDeclaredField(aField); + .getDeclaredField(aField); } catch (Throwable e) { /* Do nothing */ } @@ -206,7 +206,7 @@ public class GT_Utility { Field rField = null; try { rField = aObject.getClass() - .getDeclaredField(aField); + .getDeclaredField(aField); rField.setAccessible(true); } catch (Throwable e) { /* Do nothing */ @@ -240,7 +240,7 @@ public class GT_Utility { Method rMethod = null; try { rMethod = aObject.getClass() - .getMethod(aMethod, aParameterTypes); + .getMethod(aMethod, aParameterTypes); rMethod.setAccessible(true); } catch (Throwable e) { /* Do nothing */ @@ -251,10 +251,10 @@ public class GT_Utility { public static Field getField(Object aObject, String aField, boolean aPrivate, boolean aLogErrors) { try { Field tField = (aObject instanceof Class) ? ((Class) aObject).getDeclaredField(aField) - : (aObject instanceof String) ? Class.forName((String) aObject) - .getDeclaredField(aField) - : aObject.getClass() - .getDeclaredField(aField); + : (aObject instanceof String) ? Class.forName((String) aObject) + .getDeclaredField(aField) + : aObject.getClass() + .getDeclaredField(aField); if (aPrivate) tField.setAccessible(true); return tField; } catch (Throwable e) { @@ -266,10 +266,10 @@ public class GT_Utility { public static Object getFieldContent(Object aObject, String aField, boolean aPrivate, boolean aLogErrors) { try { Field tField = (aObject instanceof Class) ? ((Class) aObject).getDeclaredField(aField) - : (aObject instanceof String) ? Class.forName((String) aObject) - .getDeclaredField(aField) - : aObject.getClass() - .getDeclaredField(aField); + : (aObject instanceof String) ? Class.forName((String) aObject) + .getDeclaredField(aField) + : aObject.getClass() + .getDeclaredField(aField); if (aPrivate) tField.setAccessible(true); return tField.get(aObject instanceof Class || aObject instanceof String ? null : aObject); } catch (Throwable e) { @@ -287,7 +287,7 @@ public class GT_Utility { } public static Object callMethod(Object aObject, String aMethod, boolean aPrivate, boolean aUseUpperCasedDataTypes, - boolean aLogErrors, Object... aParameters) { + boolean aLogErrors, Object... aParameters) { try { Class[] tParameterTypes = new Class[aParameters.length]; for (byte i = 0; i < aParameters.length; i++) { @@ -309,8 +309,8 @@ public class GT_Utility { } Method tMethod = (aObject instanceof Class) ? ((Class) aObject).getMethod(aMethod, tParameterTypes) - : aObject.getClass() - .getMethod(aMethod, tParameterTypes); + : aObject.getClass() + .getMethod(aMethod, tParameterTypes); if (aPrivate) tMethod.setAccessible(true); return tMethod.invoke(aObject, aParameters); } catch (Throwable e) { @@ -320,14 +320,14 @@ public class GT_Utility { } public static Object callConstructor(String aClass, int aConstructorIndex, Object aReplacementObject, - boolean aLogErrors, Object... aParameters) { + boolean aLogErrors, Object... aParameters) { try { return callConstructor( - Class.forName(aClass), - aConstructorIndex, - aReplacementObject, - aLogErrors, - aParameters); + Class.forName(aClass), + aConstructorIndex, + aReplacementObject, + aLogErrors, + aParameters); } catch (Throwable e) { if (aLogErrors) e.printStackTrace(GT_Log.err); } @@ -335,7 +335,7 @@ public class GT_Utility { } public static Object callConstructor(Class aClass, int aConstructorIndex, Object aReplacementObject, - boolean aLogErrors, Object... aParameters) { + boolean aLogErrors, Object... aParameters) { if (aConstructorIndex < 0) { try { for (Constructor tConstructor : aClass.getConstructors()) { @@ -358,8 +358,7 @@ public class GT_Utility { public static String capitalizeString(String aString) { if (aString != null && aString.length() > 0) return aString.substring(0, 1) - .toUpperCase() - + aString.substring(1); + .toUpperCase() + aString.substring(1); return E; } @@ -387,11 +386,11 @@ public class GT_Utility { public static String getClassName(Object aObject) { if (aObject == null) return "null"; return aObject.getClass() - .getName() - .substring( - aObject.getClass() - .getName() - .lastIndexOf(".") + 1); + .getName() + .substring( + aObject.getClass() + .getName() + .lastIndexOf(".") + 1); } public static void removePotion(EntityLivingBase aPlayer, int aPotionIndex) { @@ -421,7 +420,7 @@ public class GT_Utility { if (aPlayer.inventory.armorInventory[i] != null) { if (aPlayer.inventory.armorInventory[i].getItem() instanceof GT_EnergyArmor_Item) { if ((((GT_EnergyArmor_Item) aPlayer.inventory.armorInventory[i].getItem()).mSpecials & 512) - != 0) { + != 0) { if (GT_ModHandler.canUseElectricItem(aPlayer.inventory.armorInventory[i], 10000)) { return true; } @@ -437,10 +436,10 @@ public class GT_Utility { } public static ItemStack suckOneItemStackAt(World aWorld, double aX, double aY, double aZ, double aL, double aH, - double aW) { + double aW) { for (EntityItem tItem : aWorld.getEntitiesWithinAABB( - EntityItem.class, - AxisAlignedBB.getBoundingBox(aX, aY, aZ, aX + aL, aY + aH, aZ + aW))) { + EntityItem.class, + AxisAlignedBB.getBoundingBox(aX, aY, aZ, aX + aL, aY + aH, aZ + aW))) { if (!tItem.isDead) { aWorld.removeEntity(tItem); tItem.setDead(); @@ -452,8 +451,8 @@ public class GT_Utility { public static byte getOppositeSide(int aSide) { return (byte) ForgeDirection.getOrientation(aSide) - .getOpposite() - .ordinal(); + .getOpposite() + .ordinal(); } public static byte getTier(long l) { @@ -508,8 +507,8 @@ public class GT_Utility { checkAvailabilities(); if (TE_CHECK && aTileEntity instanceof IItemDuct) return true; if (BC_CHECK && aTileEntity instanceof buildcraft.api.transport.IPipeTile) - return ((buildcraft.api.transport.IPipeTile) aTileEntity).isPipeConnected( - ForgeDirection.getOrientation(aSide)); + return ((buildcraft.api.transport.IPipeTile) aTileEntity) + .isPipeConnected(ForgeDirection.getOrientation(aSide)); return GregTech_API.mTranslocator && aTileEntity instanceof codechicken.translocator.TileItemTranslocator; } @@ -519,21 +518,21 @@ public class GT_Utility { * @return the Amount of moved Items */ public static byte moveStackIntoPipe(IInventory aTileEntity1, Object aTileEntity2, int[] aGrabSlots, int aGrabFrom, - int aPutTo, List aFilter, boolean aInvertFilter, byte aMaxTargetStackSize, - byte aMinTargetStackSize, byte aMaxMoveAtOnce, byte aMinMoveAtOnce) { + int aPutTo, List aFilter, boolean aInvertFilter, byte aMaxTargetStackSize, byte aMinTargetStackSize, + byte aMaxMoveAtOnce, byte aMinMoveAtOnce) { return moveStackIntoPipe( - aTileEntity1, - aTileEntity2, - aGrabSlots, - aGrabFrom, - aPutTo, - aFilter, - aInvertFilter, - aMaxTargetStackSize, - aMinTargetStackSize, - aMaxMoveAtOnce, - aMinMoveAtOnce, - true); + aTileEntity1, + aTileEntity2, + aGrabSlots, + aGrabFrom, + aPutTo, + aFilter, + aInvertFilter, + aMaxTargetStackSize, + aMinTargetStackSize, + aMaxMoveAtOnce, + aMinMoveAtOnce, + true); } /** @@ -542,36 +541,34 @@ public class GT_Utility { * @return the Amount of moved Items */ public static byte moveStackIntoPipe(IInventory aTileEntity1, Object aTileEntity2, int[] aGrabSlots, int aGrabFrom, - int aPutTo, List aFilter, boolean aInvertFilter, byte aMaxTargetStackSize, - byte aMinTargetStackSize, byte aMaxMoveAtOnce, byte aMinMoveAtOnce, boolean dropItem) { + int aPutTo, List aFilter, boolean aInvertFilter, byte aMaxTargetStackSize, byte aMinTargetStackSize, + byte aMaxMoveAtOnce, byte aMinMoveAtOnce, boolean dropItem) { if (aTileEntity1 == null || aMaxTargetStackSize <= 0 - || aMinTargetStackSize <= 0 - || aMinTargetStackSize > aMaxTargetStackSize - || aMaxMoveAtOnce <= 0 - || aMinMoveAtOnce > aMaxMoveAtOnce) - return 0; + || aMinTargetStackSize <= 0 + || aMinTargetStackSize > aMaxTargetStackSize + || aMaxMoveAtOnce <= 0 + || aMinMoveAtOnce > aMaxMoveAtOnce) return 0; if (aTileEntity2 != null) { checkAvailabilities(); if (TE_CHECK && aTileEntity2 instanceof IItemDuct) { for (int aGrabSlot : aGrabSlots) { if (listContainsItem(aFilter, aTileEntity1.getStackInSlot(aGrabSlot), true, aInvertFilter)) { if (isAllowedToTakeFromSlot( - aTileEntity1, - aGrabSlot, - (byte) aGrabFrom, - aTileEntity1.getStackInSlot(aGrabSlot))) { + aTileEntity1, + aGrabSlot, + (byte) aGrabFrom, + aTileEntity1.getStackInSlot(aGrabSlot))) { if (Math.max(aMinMoveAtOnce, aMinTargetStackSize) - <= aTileEntity1.getStackInSlot(aGrabSlot).stackSize) { + <= aTileEntity1.getStackInSlot(aGrabSlot).stackSize) { ItemStack tStack = copyAmount( - Math.min( - aTileEntity1.getStackInSlot(aGrabSlot).stackSize, - Math.min(aMaxMoveAtOnce, aMaxTargetStackSize)), - aTileEntity1.getStackInSlot(aGrabSlot)); - ItemStack rStack = ((IItemDuct) aTileEntity2).insertItem( - ForgeDirection.getOrientation(aPutTo), - copyOrNull(tStack)); + Math.min( + aTileEntity1.getStackInSlot(aGrabSlot).stackSize, + Math.min(aMaxMoveAtOnce, aMaxTargetStackSize)), + aTileEntity1.getStackInSlot(aGrabSlot)); + ItemStack rStack = ((IItemDuct) aTileEntity2) + .insertItem(ForgeDirection.getOrientation(aPutTo), copyOrNull(tStack)); byte tMovedItemCount = (byte) (tStack.stackSize - - (rStack == null ? 0 : rStack.stackSize)); + - (rStack == null ? 0 : rStack.stackSize)); if (tMovedItemCount >= 1 /* Math.max(aMinMoveAtOnce, aMinTargetStackSize) */) { // ((cofh.api.transport.IItemConduit)aTileEntity2).insertItem(ForgeDirection.getOrientation(aPutTo), // copyAmount(tMovedItemCount, tStack), F); @@ -589,23 +586,22 @@ public class GT_Utility { for (int aGrabSlot : aGrabSlots) { if (listContainsItem(aFilter, aTileEntity1.getStackInSlot(aGrabSlot), true, aInvertFilter)) { if (isAllowedToTakeFromSlot( - aTileEntity1, - aGrabSlot, - (byte) aGrabFrom, - aTileEntity1.getStackInSlot(aGrabSlot))) { + aTileEntity1, + aGrabSlot, + (byte) aGrabFrom, + aTileEntity1.getStackInSlot(aGrabSlot))) { if (Math.max(aMinMoveAtOnce, aMinTargetStackSize) - <= aTileEntity1.getStackInSlot(aGrabSlot).stackSize) { + <= aTileEntity1.getStackInSlot(aGrabSlot).stackSize) { ItemStack tStack = copyAmount( - Math.min( - aTileEntity1.getStackInSlot(aGrabSlot).stackSize, - Math.min(aMaxMoveAtOnce, aMaxTargetStackSize)), - aTileEntity1.getStackInSlot(aGrabSlot)); - byte tMovedItemCount = (byte) ((buildcraft.api.transport.IPipeTile) aTileEntity2).injectItem( - copyOrNull(tStack), - false, - ForgeDirection.getOrientation(aPutTo)); + Math.min( + aTileEntity1.getStackInSlot(aGrabSlot).stackSize, + Math.min(aMaxMoveAtOnce, aMaxTargetStackSize)), + aTileEntity1.getStackInSlot(aGrabSlot)); + byte tMovedItemCount = (byte) ((buildcraft.api.transport.IPipeTile) aTileEntity2) + .injectItem(copyOrNull(tStack), false, ForgeDirection.getOrientation(aPutTo)); if (tMovedItemCount >= Math.max(aMinMoveAtOnce, aMinTargetStackSize)) { - tMovedItemCount = (byte) (((buildcraft.api.transport.IPipeTile) aTileEntity2).injectItem( + tMovedItemCount = (byte) (((buildcraft.api.transport.IPipeTile) aTileEntity2) + .injectItem( copyAmount(tMovedItemCount, tStack), true, ForgeDirection.getOrientation(aPutTo))); @@ -623,34 +619,34 @@ public class GT_Utility { ForgeDirection tDirection = ForgeDirection.getOrientation(aGrabFrom); if (aTileEntity1 instanceof TileEntity && tDirection != ForgeDirection.UNKNOWN - && tDirection.getOpposite() == ForgeDirection.getOrientation(aPutTo)) { + && tDirection.getOpposite() == ForgeDirection.getOrientation(aPutTo)) { int tX = ((TileEntity) aTileEntity1).xCoord + tDirection.offsetX, - tY = ((TileEntity) aTileEntity1).yCoord + tDirection.offsetY, - tZ = ((TileEntity) aTileEntity1).zCoord + tDirection.offsetZ; + tY = ((TileEntity) aTileEntity1).yCoord + tDirection.offsetY, + tZ = ((TileEntity) aTileEntity1).zCoord + tDirection.offsetZ; if (!hasBlockHitBox(((TileEntity) aTileEntity1).getWorldObj(), tX, tY, tZ) && dropItem) { for (int aGrabSlot : aGrabSlots) { if (listContainsItem(aFilter, aTileEntity1.getStackInSlot(aGrabSlot), true, aInvertFilter)) { if (isAllowedToTakeFromSlot( - aTileEntity1, - aGrabSlot, - (byte) aGrabFrom, - aTileEntity1.getStackInSlot(aGrabSlot))) { + aTileEntity1, + aGrabSlot, + (byte) aGrabFrom, + aTileEntity1.getStackInSlot(aGrabSlot))) { if (Math.max(aMinMoveAtOnce, aMinTargetStackSize) - <= aTileEntity1.getStackInSlot(aGrabSlot).stackSize) { + <= aTileEntity1.getStackInSlot(aGrabSlot).stackSize) { ItemStack tStack = copyAmount( - Math.min( - aTileEntity1.getStackInSlot(aGrabSlot).stackSize, - Math.min(aMaxMoveAtOnce, aMaxTargetStackSize)), - aTileEntity1.getStackInSlot(aGrabSlot)); + Math.min( + aTileEntity1.getStackInSlot(aGrabSlot).stackSize, + Math.min(aMaxMoveAtOnce, aMaxTargetStackSize)), + aTileEntity1.getStackInSlot(aGrabSlot)); EntityItem tEntity = new EntityItem( - ((TileEntity) aTileEntity1).getWorldObj(), - tX + 0.5, - tY + 0.5, - tZ + 0.5, - tStack); + ((TileEntity) aTileEntity1).getWorldObj(), + tX + 0.5, + tY + 0.5, + tZ + 0.5, + tStack); tEntity.motionX = tEntity.motionY = tEntity.motionZ = 0; ((TileEntity) aTileEntity1).getWorldObj() - .spawnEntityInWorld(tEntity); + .spawnEntityInWorld(tEntity); aTileEntity1.decrStackSize(aGrabSlot, tStack.stackSize); aTileEntity1.markDirty(); return (byte) tStack.stackSize; @@ -670,34 +666,31 @@ public class GT_Utility { * @return the Amount of moved Items */ public static byte moveStackFromSlotAToSlotB(IInventory aTileEntity1, IInventory aTileEntity2, int aGrabFrom, - int aPutTo, byte aMaxTargetStackSize, byte aMinTargetStackSize, byte aMaxMoveAtOnce, byte aMinMoveAtOnce) { + int aPutTo, byte aMaxTargetStackSize, byte aMinTargetStackSize, byte aMaxMoveAtOnce, byte aMinMoveAtOnce) { if (aTileEntity1 == null || aTileEntity2 == null - || aMaxTargetStackSize <= 0 - || aMinTargetStackSize <= 0 - || aMinTargetStackSize > aMaxTargetStackSize - || aMaxMoveAtOnce <= 0 - || aMinMoveAtOnce > aMaxMoveAtOnce) - return 0; + || aMaxTargetStackSize <= 0 + || aMinTargetStackSize <= 0 + || aMinTargetStackSize > aMaxTargetStackSize + || aMaxMoveAtOnce <= 0 + || aMinMoveAtOnce > aMaxMoveAtOnce) return 0; ItemStack tStack1 = aTileEntity1.getStackInSlot(aGrabFrom), tStack2 = aTileEntity2.getStackInSlot(aPutTo), - tStack3 = null; + tStack3 = null; if (tStack1 != null) { if (tStack2 != null && !areStacksEqual(tStack1, tStack2)) return 0; tStack3 = copyOrNull(tStack1); aMaxTargetStackSize = (byte) Math.min( - aMaxTargetStackSize, + aMaxTargetStackSize, + Math.min( + tStack3.getMaxStackSize(), Math.min( - tStack3.getMaxStackSize(), - Math.min( - tStack2 == null ? Integer.MAX_VALUE : tStack2.getMaxStackSize(), - aTileEntity2.getInventoryStackLimit()))); - tStack3.stackSize = Math.min( - tStack3.stackSize, - aMaxTargetStackSize - (tStack2 == null ? 0 : tStack2.stackSize)); + tStack2 == null ? Integer.MAX_VALUE : tStack2.getMaxStackSize(), + aTileEntity2.getInventoryStackLimit()))); + tStack3.stackSize = Math + .min(tStack3.stackSize, aMaxTargetStackSize - (tStack2 == null ? 0 : tStack2.stackSize)); if (tStack3.stackSize > aMaxMoveAtOnce) tStack3.stackSize = aMaxMoveAtOnce; if (tStack3.stackSize + (tStack2 == null ? 0 : tStack2.stackSize) - >= Math.min(tStack3.getMaxStackSize(), aMinTargetStackSize) - && tStack3.stackSize >= aMinMoveAtOnce) { + >= Math.min(tStack3.getMaxStackSize(), aMinTargetStackSize) && tStack3.stackSize >= aMinMoveAtOnce) { tStack3 = aTileEntity1.decrStackSize(aGrabFrom, tStack3.stackSize); aTileEntity1.markDirty(); if (tStack3 != null) { @@ -717,11 +710,11 @@ public class GT_Utility { public static boolean isAllowedToTakeFromSlot(IInventory aTileEntity, int aSlot, byte aSide, ItemStack aStack) { if (ForgeDirection.getOrientation(aSide) == ForgeDirection.UNKNOWN) { return isAllowedToTakeFromSlot(aTileEntity, aSlot, (byte) 0, aStack) - || isAllowedToTakeFromSlot(aTileEntity, aSlot, (byte) 1, aStack) - || isAllowedToTakeFromSlot(aTileEntity, aSlot, (byte) 2, aStack) - || isAllowedToTakeFromSlot(aTileEntity, aSlot, (byte) 3, aStack) - || isAllowedToTakeFromSlot(aTileEntity, aSlot, (byte) 4, aStack) - || isAllowedToTakeFromSlot(aTileEntity, aSlot, (byte) 5, aStack); + || isAllowedToTakeFromSlot(aTileEntity, aSlot, (byte) 1, aStack) + || isAllowedToTakeFromSlot(aTileEntity, aSlot, (byte) 2, aStack) + || isAllowedToTakeFromSlot(aTileEntity, aSlot, (byte) 3, aStack) + || isAllowedToTakeFromSlot(aTileEntity, aSlot, (byte) 4, aStack) + || isAllowedToTakeFromSlot(aTileEntity, aSlot, (byte) 5, aStack); } if (aTileEntity instanceof ISidedInventory) return ((ISidedInventory) aTileEntity).canExtractItem(aSlot, aStack, aSide); @@ -729,21 +722,20 @@ public class GT_Utility { } public static boolean isAllowedToPutIntoSlot(IInventory aTileEntity, int aSlot, byte aSide, ItemStack aStack, - byte aMaxStackSize) { + byte aMaxStackSize) { ItemStack tStack = aTileEntity.getStackInSlot(aSlot); if (tStack != null && (!areStacksEqual(tStack, aStack) || tStack.stackSize >= tStack.getMaxStackSize())) return false; if (ForgeDirection.getOrientation(aSide) == ForgeDirection.UNKNOWN) { return isAllowedToPutIntoSlot(aTileEntity, aSlot, (byte) 0, aStack, aMaxStackSize) - || isAllowedToPutIntoSlot(aTileEntity, aSlot, (byte) 1, aStack, aMaxStackSize) - || isAllowedToPutIntoSlot(aTileEntity, aSlot, (byte) 2, aStack, aMaxStackSize) - || isAllowedToPutIntoSlot(aTileEntity, aSlot, (byte) 3, aStack, aMaxStackSize) - || isAllowedToPutIntoSlot(aTileEntity, aSlot, (byte) 4, aStack, aMaxStackSize) - || isAllowedToPutIntoSlot(aTileEntity, aSlot, (byte) 5, aStack, aMaxStackSize); + || isAllowedToPutIntoSlot(aTileEntity, aSlot, (byte) 1, aStack, aMaxStackSize) + || isAllowedToPutIntoSlot(aTileEntity, aSlot, (byte) 2, aStack, aMaxStackSize) + || isAllowedToPutIntoSlot(aTileEntity, aSlot, (byte) 3, aStack, aMaxStackSize) + || isAllowedToPutIntoSlot(aTileEntity, aSlot, (byte) 4, aStack, aMaxStackSize) + || isAllowedToPutIntoSlot(aTileEntity, aSlot, (byte) 5, aStack, aMaxStackSize); } if (aTileEntity instanceof ISidedInventory - && !((ISidedInventory) aTileEntity).canInsertItem(aSlot, aStack, aSide)) - return false; + && !((ISidedInventory) aTileEntity).canInsertItem(aSlot, aStack, aSide)) return false; return aSlot < aTileEntity.getSizeInventory() && aTileEntity.isItemValidForSlot(aSlot, aStack); } @@ -753,34 +745,33 @@ public class GT_Utility { * @return the Amount of moved Items */ public static int moveMultipleItemStacks(Object aTileEntity1, Object aTileEntity2, byte aGrabFrom, byte aPutTo, - List aFilter, boolean aInvertFilter, byte aMaxTargetStackSize, byte aMinTargetStackSize, - byte aMaxMoveAtOnce, byte aMinMoveAtOnce, int aStackAmount) { + List aFilter, boolean aInvertFilter, byte aMaxTargetStackSize, byte aMinTargetStackSize, + byte aMaxMoveAtOnce, byte aMinMoveAtOnce, int aStackAmount) { if (aTileEntity1 instanceof IInventory) return moveMultipleItemStacks( - (IInventory) aTileEntity1, - aTileEntity2, - aGrabFrom, - aPutTo, - aFilter, - aInvertFilter, - aMaxTargetStackSize, - aMinTargetStackSize, - aMaxMoveAtOnce, - aMinMoveAtOnce, - aStackAmount, - true); + (IInventory) aTileEntity1, + aTileEntity2, + aGrabFrom, + aPutTo, + aFilter, + aInvertFilter, + aMaxTargetStackSize, + aMinTargetStackSize, + aMaxMoveAtOnce, + aMinMoveAtOnce, + aStackAmount, + true); return 0; } public static int moveMultipleItemStacks(IInventory aTileEntity1, Object aTileEntity2, byte aGrabFrom, byte aPutTo, - List aFilter, boolean aInvertFilter, byte aMaxTargetStackSize, byte aMinTargetStackSize, - byte aMaxMoveAtOnce, byte aMinMoveAtOnce, int aMaxStackTransfer, boolean aDoCheckChests) { + List aFilter, boolean aInvertFilter, byte aMaxTargetStackSize, byte aMinTargetStackSize, + byte aMaxMoveAtOnce, byte aMinMoveAtOnce, int aMaxStackTransfer, boolean aDoCheckChests) { if (aTileEntity1 == null || aMaxTargetStackSize <= 0 - || aMinTargetStackSize <= 0 - || aMaxMoveAtOnce <= 0 - || aMinTargetStackSize > aMaxTargetStackSize - || aMinMoveAtOnce > aMaxMoveAtOnce - || aMaxStackTransfer == 0) - return 0; + || aMinTargetStackSize <= 0 + || aMaxMoveAtOnce <= 0 + || aMinTargetStackSize > aMaxTargetStackSize + || aMinMoveAtOnce > aMaxMoveAtOnce + || aMaxStackTransfer == 0) return 0; // find where to take from final int[] tGrabSlots = new int[aTileEntity1.getSizeInventory()]; @@ -789,9 +780,8 @@ public class GT_Utility { for (int i : ((ISidedInventory) aTileEntity1).getAccessibleSlotsFromSide(aGrabFrom)) { final ItemStack s = aTileEntity1.getStackInSlot(i); if (s == null || !isAllowedToTakeFromSlot(aTileEntity1, i, aGrabFrom, s) - || s.stackSize < aMinMoveAtOnce - || !listContainsItem(aFilter, s, true, aInvertFilter)) - continue; + || s.stackSize < aMinMoveAtOnce + || !listContainsItem(aFilter, s, true, aInvertFilter)) continue; tGrabSlots[tGrabSlotsSize++] = i; } } else { @@ -807,17 +797,17 @@ public class GT_Utility { if (tGrabSlotsSize == 0) { // maybe source is a double chest. check it if (aDoCheckChests && aTileEntity1 instanceof TileEntityChest) return moveFromAdjacentChests( - (TileEntityChest) aTileEntity1, - aTileEntity2, - aGrabFrom, - aPutTo, - aFilter, - aInvertFilter, - aMaxTargetStackSize, - aMinTargetStackSize, - aMaxMoveAtOnce, - aMinMoveAtOnce, - aMaxStackTransfer); + (TileEntityChest) aTileEntity1, + aTileEntity2, + aGrabFrom, + aPutTo, + aFilter, + aInvertFilter, + aMaxTargetStackSize, + aMinTargetStackSize, + aMaxMoveAtOnce, + aMinMoveAtOnce, + aMaxStackTransfer); return 0; } @@ -846,33 +836,32 @@ public class GT_Utility { if (s == null) { tPutFreeSlots.add(slot); } else if ((s.stackSize < s.getMaxStackSize() && s.stackSize < tPutInventory.getInventoryStackLimit()) - && aMinMoveAtOnce <= s.getMaxStackSize() - s.stackSize) { - ItemId sID = ItemId.createNoCopy(s); - tPutItems.merge( - sID, - (Math.min(s.getMaxStackSize(), tPutInventory.getInventoryStackLimit()) - - s.stackSize), - Integer::sum); - tPutItemStacks.computeIfAbsent(sID, k -> new ArrayList<>()) - .add(s); - } + && aMinMoveAtOnce <= s.getMaxStackSize() - s.stackSize) { + ItemId sID = ItemId.createNoCopy(s); + tPutItems.merge( + sID, + (Math.min(s.getMaxStackSize(), tPutInventory.getInventoryStackLimit()) - s.stackSize), + Integer::sum); + tPutItemStacks.computeIfAbsent(sID, k -> new ArrayList<>()) + .add(s); + } } // target completely filled, bail out if (tPutItems.isEmpty() && tPutFreeSlots.isEmpty()) { // maybe target is a double chest. check it. if (aDoCheckChests && aTileEntity2 instanceof TileEntityChest) return moveToAdjacentChests( - aTileEntity1, - (TileEntityChest) aTileEntity2, - aGrabFrom, - aPutTo, - aFilter, - aInvertFilter, - aMaxTargetStackSize, - aMinTargetStackSize, - aMaxMoveAtOnce, - aMinMoveAtOnce, - aMaxStackTransfer); + aTileEntity1, + (TileEntityChest) aTileEntity2, + aGrabFrom, + aPutTo, + aFilter, + aInvertFilter, + aMaxTargetStackSize, + aMinTargetStackSize, + aMaxMoveAtOnce, + aMinMoveAtOnce, + aMaxStackTransfer); return 0; } @@ -901,17 +890,17 @@ public class GT_Utility { for (int i = 0; i < putStack.size(); i++) { final ItemStack s = putStack.get(i); final int sToPut = Math.min( - Math.min( - Math.min(toPut, s.getMaxStackSize() - s.stackSize), - tPutInventory.getInventoryStackLimit() - s.stackSize), - aMaxTargetStackSize - s.stackSize); + Math.min( + Math.min(toPut, s.getMaxStackSize() - s.stackSize), + tPutInventory.getInventoryStackLimit() - s.stackSize), + aMaxTargetStackSize - s.stackSize); if (sToPut <= 0) continue; if (sToPut < aMinMoveAtOnce) continue; if (s.stackSize + sToPut < aMinTargetStackSize) continue; toPut -= sToPut; s.stackSize += sToPut; if (s.stackSize == s.getMaxStackSize() - || s.stackSize == tPutInventory.getInventoryStackLimit()) { + || s.stackSize == tPutInventory.getInventoryStackLimit()) { // this slot is full. remove this stack from candidate list putStack.remove(i); i--; @@ -941,29 +930,29 @@ public class GT_Utility { if (isAllowedToPutIntoSlot(tPutInventory, tPutSlot, aPutTo, tGrabStack, (byte) 64)) { // allowed, now do moving final int tMoved = moveStackFromSlotAToSlotB( - aTileEntity1, - tPutInventory, - grabSlot, - tPutSlot, - aMaxTargetStackSize, - aMinTargetStackSize, - (byte) (aMaxMoveAtOnce - tMovedItems), - aMinMoveAtOnce); + aTileEntity1, + tPutInventory, + grabSlot, + tPutSlot, + aMaxTargetStackSize, + aMinTargetStackSize, + (byte) (aMaxMoveAtOnce - tMovedItems), + aMinMoveAtOnce); if (tMoved > 0) { final ItemStack s = tPutInventory.getStackInSlot(tPutSlot); if (s != null) { // s might be null if tPutInventory is very special, e.g. infinity chest // if s is null, we will not mark this slot as target candidate for anything - final int spare = Math.min( - s.getMaxStackSize(), - tPutInventory.getInventoryStackLimit()) - s.stackSize; + final int spare = Math + .min(s.getMaxStackSize(), tPutInventory.getInventoryStackLimit()) + - s.stackSize; if (spare > 0) { final ItemId ssID = ItemId.createNoCopy(s); // add back to spare space count tPutItems.merge(ssID, spare, Integer::sum); // add to partially filled slot list tPutItemStacks.computeIfAbsent(ssID, k -> new ArrayList<>()) - .add(s); + .add(s); } // this is no longer free tPutFreeSlots.remove(i); @@ -991,34 +980,34 @@ public class GT_Utility { // check if source is a double chest, if yes, try move from the adjacent as well if (aDoCheckChests && aTileEntity1 instanceof TileEntityChest) { final int tAmount = moveFromAdjacentChests( - (TileEntityChest) aTileEntity1, - aTileEntity2, - aGrabFrom, - aPutTo, - aFilter, - aInvertFilter, - aMaxTargetStackSize, - aMinTargetStackSize, - aMaxMoveAtOnce, - aMinMoveAtOnce, - aMaxStackTransfer - tStacksMoved); + (TileEntityChest) aTileEntity1, + aTileEntity2, + aGrabFrom, + aPutTo, + aFilter, + aInvertFilter, + aMaxTargetStackSize, + aMinTargetStackSize, + aMaxMoveAtOnce, + aMinMoveAtOnce, + aMaxStackTransfer - tStacksMoved); if (tAmount != 0) return tAmount + tTotalItemsMoved; } // check if target is a double chest, if yes, try move to the adjacent as well if (aDoCheckChests && aTileEntity2 instanceof TileEntityChest) { final int tAmount = moveToAdjacentChests( - aTileEntity1, - (TileEntityChest) aTileEntity2, - aGrabFrom, - aPutTo, - aFilter, - aInvertFilter, - aMaxTargetStackSize, - aMinTargetStackSize, - aMaxMoveAtOnce, - aMinMoveAtOnce, - aMaxStackTransfer - tStacksMoved); + aTileEntity1, + (TileEntityChest) aTileEntity2, + aGrabFrom, + aPutTo, + aFilter, + aInvertFilter, + aMaxTargetStackSize, + aMinTargetStackSize, + aMaxMoveAtOnce, + aMinMoveAtOnce, + aMaxStackTransfer - tStacksMoved); if (tAmount != 0) return tAmount + tTotalItemsMoved; } @@ -1030,18 +1019,18 @@ public class GT_Utility { final int tGrabInventorySize = tGrabSlots.length; for (int i = 0; i < tGrabInventorySize; i++) { final int tMoved = moveStackIntoPipe( - aTileEntity1, - aTileEntity2, - tGrabSlots, - aGrabFrom, - aPutTo, - aFilter, - aInvertFilter, - aMaxTargetStackSize, - aMinTargetStackSize, - aMaxMoveAtOnce, - aMinMoveAtOnce, - aDoCheckChests); + aTileEntity1, + aTileEntity2, + tGrabSlots, + aGrabFrom, + aPutTo, + aFilter, + aInvertFilter, + aMaxTargetStackSize, + aMinTargetStackSize, + aMaxMoveAtOnce, + aMinMoveAtOnce, + aDoCheckChests); if (tMoved == 0) return tTotalItemsMoved; else tTotalItemsMoved += tMoved; } @@ -1049,77 +1038,13 @@ public class GT_Utility { } private static int moveToAdjacentChests(IInventory aTileEntity1, TileEntityChest aTargetChest, byte aGrabFrom, - byte aPutTo, List aFilter, boolean aInvertFilter, byte aMaxTargetStackSize, - byte aMinTargetStackSize, byte aMaxMoveAtOnce, byte aMinMoveAtOnce, int aMaxStackTransfer) { + byte aPutTo, List aFilter, boolean aInvertFilter, byte aMaxTargetStackSize, byte aMinTargetStackSize, + byte aMaxMoveAtOnce, byte aMinMoveAtOnce, int aMaxStackTransfer) { if (aTargetChest.adjacentChestChecked) { if (aTargetChest.adjacentChestXNeg != null) { return moveMultipleItemStacks( - aTileEntity1, - aTargetChest.adjacentChestXNeg, - aGrabFrom, - aPutTo, - aFilter, - aInvertFilter, - aMaxTargetStackSize, - aMinTargetStackSize, - aMaxMoveAtOnce, - aMinMoveAtOnce, - aMaxStackTransfer, - false); - } else if (aTargetChest.adjacentChestZNeg != null) { - return moveMultipleItemStacks( - aTileEntity1, - aTargetChest.adjacentChestZNeg, - aGrabFrom, - aPutTo, - aFilter, - aInvertFilter, - aMaxTargetStackSize, - aMinTargetStackSize, - aMaxMoveAtOnce, - aMinMoveAtOnce, - aMaxStackTransfer, - false); - } else if (aTargetChest.adjacentChestXPos != null) { - return moveMultipleItemStacks( - aTileEntity1, - aTargetChest.adjacentChestXPos, - aGrabFrom, - aPutTo, - aFilter, - aInvertFilter, - aMaxTargetStackSize, - aMinTargetStackSize, - aMaxMoveAtOnce, - aMinMoveAtOnce, - aMaxStackTransfer, - false); - } else if (aTargetChest.adjacentChestZPos != null) { - return moveMultipleItemStacks( - aTileEntity1, - aTargetChest.adjacentChestZPos, - aGrabFrom, - aPutTo, - aFilter, - aInvertFilter, - aMaxTargetStackSize, - aMinTargetStackSize, - aMaxMoveAtOnce, - aMinMoveAtOnce, - aMaxStackTransfer, - false); - } - } - return 0; - } - - private static int moveFromAdjacentChests(TileEntityChest aChest, Object aTileEntity2, byte aGrabFrom, byte aPutTo, - List aFilter, boolean aInvertFilter, byte aMaxTargetStackSize, byte aMinTargetStackSize, - byte aMaxMoveAtOnce, byte aMinMoveAtOnce, int aMaxStackTransfer) { - if (aChest.adjacentChestXNeg != null) { - return moveMultipleItemStacks( - aChest.adjacentChestXNeg, - aTileEntity2, + aTileEntity1, + aTargetChest.adjacentChestXNeg, aGrabFrom, aPutTo, aFilter, @@ -1130,10 +1055,10 @@ public class GT_Utility { aMinMoveAtOnce, aMaxStackTransfer, false); - } else if (aChest.adjacentChestZNeg != null) { - return moveMultipleItemStacks( - aChest.adjacentChestZNeg, - aTileEntity2, + } else if (aTargetChest.adjacentChestZNeg != null) { + return moveMultipleItemStacks( + aTileEntity1, + aTargetChest.adjacentChestZNeg, aGrabFrom, aPutTo, aFilter, @@ -1144,10 +1069,10 @@ public class GT_Utility { aMinMoveAtOnce, aMaxStackTransfer, false); - } else if (aChest.adjacentChestXPos != null) { - return moveMultipleItemStacks( - aChest.adjacentChestXPos, - aTileEntity2, + } else if (aTargetChest.adjacentChestXPos != null) { + return moveMultipleItemStacks( + aTileEntity1, + aTargetChest.adjacentChestXPos, aGrabFrom, aPutTo, aFilter, @@ -1158,10 +1083,10 @@ public class GT_Utility { aMinMoveAtOnce, aMaxStackTransfer, false); - } else if (aChest.adjacentChestZPos != null) { - return moveMultipleItemStacks( - aChest.adjacentChestZPos, - aTileEntity2, + } else if (aTargetChest.adjacentChestZPos != null) { + return moveMultipleItemStacks( + aTileEntity1, + aTargetChest.adjacentChestZPos, aGrabFrom, aPutTo, aFilter, @@ -1172,20 +1097,31 @@ public class GT_Utility { aMinMoveAtOnce, aMaxStackTransfer, false); + } } return 0; } - /** - * Moves Stack from Inv-Side to Inv-Side. - * - * @return the Amount of moved Items - */ - public static byte moveOneItemStack(Object aTileEntity1, Object aTileEntity2, byte aGrabFrom, byte aPutTo, - List aFilter, boolean aInvertFilter, byte aMaxTargetStackSize, byte aMinTargetStackSize, - byte aMaxMoveAtOnce, byte aMinMoveAtOnce) { - if (aTileEntity1 instanceof IInventory) return moveOneItemStack( - (IInventory) aTileEntity1, + private static int moveFromAdjacentChests(TileEntityChest aChest, Object aTileEntity2, byte aGrabFrom, byte aPutTo, + List aFilter, boolean aInvertFilter, byte aMaxTargetStackSize, byte aMinTargetStackSize, + byte aMaxMoveAtOnce, byte aMinMoveAtOnce, int aMaxStackTransfer) { + if (aChest.adjacentChestXNeg != null) { + return moveMultipleItemStacks( + aChest.adjacentChestXNeg, + aTileEntity2, + aGrabFrom, + aPutTo, + aFilter, + aInvertFilter, + aMaxTargetStackSize, + aMinTargetStackSize, + aMaxMoveAtOnce, + aMinMoveAtOnce, + aMaxStackTransfer, + false); + } else if (aChest.adjacentChestZNeg != null) { + return moveMultipleItemStacks( + aChest.adjacentChestZNeg, aTileEntity2, aGrabFrom, aPutTo, @@ -1195,7 +1131,60 @@ public class GT_Utility { aMinTargetStackSize, aMaxMoveAtOnce, aMinMoveAtOnce, - true); + aMaxStackTransfer, + false); + } else if (aChest.adjacentChestXPos != null) { + return moveMultipleItemStacks( + aChest.adjacentChestXPos, + aTileEntity2, + aGrabFrom, + aPutTo, + aFilter, + aInvertFilter, + aMaxTargetStackSize, + aMinTargetStackSize, + aMaxMoveAtOnce, + aMinMoveAtOnce, + aMaxStackTransfer, + false); + } else if (aChest.adjacentChestZPos != null) { + return moveMultipleItemStacks( + aChest.adjacentChestZPos, + aTileEntity2, + aGrabFrom, + aPutTo, + aFilter, + aInvertFilter, + aMaxTargetStackSize, + aMinTargetStackSize, + aMaxMoveAtOnce, + aMinMoveAtOnce, + aMaxStackTransfer, + false); + } + return 0; + } + + /** + * Moves Stack from Inv-Side to Inv-Side. + * + * @return the Amount of moved Items + */ + public static byte moveOneItemStack(Object aTileEntity1, Object aTileEntity2, byte aGrabFrom, byte aPutTo, + List aFilter, boolean aInvertFilter, byte aMaxTargetStackSize, byte aMinTargetStackSize, + byte aMaxMoveAtOnce, byte aMinMoveAtOnce) { + if (aTileEntity1 instanceof IInventory) return moveOneItemStack( + (IInventory) aTileEntity1, + aTileEntity2, + aGrabFrom, + aPutTo, + aFilter, + aInvertFilter, + aMaxTargetStackSize, + aMinTargetStackSize, + aMaxMoveAtOnce, + aMinMoveAtOnce, + true); return 0; } @@ -1203,14 +1192,13 @@ public class GT_Utility { * This is only because I needed an additional Parameter for the Double Chest Check. */ private static byte moveOneItemStack(IInventory aTileEntity1, Object aTileEntity2, byte aGrabFrom, byte aPutTo, - List aFilter, boolean aInvertFilter, byte aMaxTargetStackSize, byte aMinTargetStackSize, - byte aMaxMoveAtOnce, byte aMinMoveAtOnce, boolean aDoCheckChests) { + List aFilter, boolean aInvertFilter, byte aMaxTargetStackSize, byte aMinTargetStackSize, + byte aMaxMoveAtOnce, byte aMinMoveAtOnce, boolean aDoCheckChests) { if (aTileEntity1 == null || aMaxTargetStackSize <= 0 - || aMinTargetStackSize <= 0 - || aMaxMoveAtOnce <= 0 - || aMinTargetStackSize > aMaxTargetStackSize - || aMinMoveAtOnce > aMaxMoveAtOnce) - return 0; + || aMinTargetStackSize <= 0 + || aMaxMoveAtOnce <= 0 + || aMinTargetStackSize > aMaxTargetStackSize + || aMinMoveAtOnce > aMaxMoveAtOnce) return 0; int[] tGrabSlots = null; if (aTileEntity1 instanceof ISidedInventory) @@ -1235,26 +1223,25 @@ public class GT_Utility { ItemStack tGrabStack = aTileEntity1.getStackInSlot(tGrabSlot); if (listContainsItem(aFilter, tGrabStack, true, aInvertFilter)) { if (tGrabStack.stackSize >= aMinMoveAtOnce - && isAllowedToTakeFromSlot(aTileEntity1, tGrabSlot, aGrabFrom, tGrabStack)) { + && isAllowedToTakeFromSlot(aTileEntity1, tGrabSlot, aGrabFrom, tGrabStack)) { for (int tPutSlot : tPutSlots) { if (isAllowedToPutIntoSlot( + (IInventory) aTileEntity2, + tPutSlot, + aPutTo, + tGrabStack, + aMaxTargetStackSize)) { + tMovedItemCount += moveStackFromSlotAToSlotB( + aTileEntity1, (IInventory) aTileEntity2, + tGrabSlot, tPutSlot, - aPutTo, - tGrabStack, - aMaxTargetStackSize)) { - tMovedItemCount += moveStackFromSlotAToSlotB( - aTileEntity1, - (IInventory) aTileEntity2, - tGrabSlot, - tPutSlot, - aMaxTargetStackSize, - aMinTargetStackSize, - (byte) (aMaxMoveAtOnce - tMovedItemCount), - aMinMoveAtOnce); + aMaxTargetStackSize, + aMinTargetStackSize, + (byte) (aMaxMoveAtOnce - tMovedItemCount), + aMinMoveAtOnce); if (tMovedItemCount >= aMaxMoveAtOnce - || (tMovedItemCount > 0 && aMaxTargetStackSize < 64)) - return tMovedItemCount; + || (tMovedItemCount > 0 && aMaxTargetStackSize < 64)) return tMovedItemCount; } } } @@ -1267,56 +1254,56 @@ public class GT_Utility { byte tAmount = 0; if (tTileEntity1.adjacentChestXNeg != null) { tAmount = moveOneItemStack( - tTileEntity1.adjacentChestXNeg, - aTileEntity2, - aGrabFrom, - aPutTo, - aFilter, - aInvertFilter, - aMaxTargetStackSize, - aMinTargetStackSize, - aMaxMoveAtOnce, - aMinMoveAtOnce, - false); + tTileEntity1.adjacentChestXNeg, + aTileEntity2, + aGrabFrom, + aPutTo, + aFilter, + aInvertFilter, + aMaxTargetStackSize, + aMinTargetStackSize, + aMaxMoveAtOnce, + aMinMoveAtOnce, + false); } else if (tTileEntity1.adjacentChestZNeg != null) { tAmount = moveOneItemStack( - tTileEntity1.adjacentChestZNeg, - aTileEntity2, - aGrabFrom, - aPutTo, - aFilter, - aInvertFilter, - aMaxTargetStackSize, - aMinTargetStackSize, - aMaxMoveAtOnce, - aMinMoveAtOnce, - false); + tTileEntity1.adjacentChestZNeg, + aTileEntity2, + aGrabFrom, + aPutTo, + aFilter, + aInvertFilter, + aMaxTargetStackSize, + aMinTargetStackSize, + aMaxMoveAtOnce, + aMinMoveAtOnce, + false); } else if (tTileEntity1.adjacentChestXPos != null) { tAmount = moveOneItemStack( - tTileEntity1.adjacentChestXPos, - aTileEntity2, - aGrabFrom, - aPutTo, - aFilter, - aInvertFilter, - aMaxTargetStackSize, - aMinTargetStackSize, - aMaxMoveAtOnce, - aMinMoveAtOnce, - false); + tTileEntity1.adjacentChestXPos, + aTileEntity2, + aGrabFrom, + aPutTo, + aFilter, + aInvertFilter, + aMaxTargetStackSize, + aMinTargetStackSize, + aMaxMoveAtOnce, + aMinMoveAtOnce, + false); } else if (tTileEntity1.adjacentChestZPos != null) { tAmount = moveOneItemStack( - tTileEntity1.adjacentChestZPos, - aTileEntity2, - aGrabFrom, - aPutTo, - aFilter, - aInvertFilter, - aMaxTargetStackSize, - aMinTargetStackSize, - aMaxMoveAtOnce, - aMinMoveAtOnce, - false); + tTileEntity1.adjacentChestZPos, + aTileEntity2, + aGrabFrom, + aPutTo, + aFilter, + aInvertFilter, + aMaxTargetStackSize, + aMinTargetStackSize, + aMaxMoveAtOnce, + aMinMoveAtOnce, + false); } if (tAmount != 0) return tAmount; } @@ -1326,56 +1313,56 @@ public class GT_Utility { byte tAmount = 0; if (tTileEntity2.adjacentChestXNeg != null) { tAmount = moveOneItemStack( - aTileEntity1, - tTileEntity2.adjacentChestXNeg, - aGrabFrom, - aPutTo, - aFilter, - aInvertFilter, - aMaxTargetStackSize, - aMinTargetStackSize, - aMaxMoveAtOnce, - aMinMoveAtOnce, - false); + aTileEntity1, + tTileEntity2.adjacentChestXNeg, + aGrabFrom, + aPutTo, + aFilter, + aInvertFilter, + aMaxTargetStackSize, + aMinTargetStackSize, + aMaxMoveAtOnce, + aMinMoveAtOnce, + false); } else if (tTileEntity2.adjacentChestZNeg != null) { tAmount = moveOneItemStack( - aTileEntity1, - tTileEntity2.adjacentChestZNeg, - aGrabFrom, - aPutTo, - aFilter, - aInvertFilter, - aMaxTargetStackSize, - aMinTargetStackSize, - aMaxMoveAtOnce, - aMinMoveAtOnce, - false); + aTileEntity1, + tTileEntity2.adjacentChestZNeg, + aGrabFrom, + aPutTo, + aFilter, + aInvertFilter, + aMaxTargetStackSize, + aMinTargetStackSize, + aMaxMoveAtOnce, + aMinMoveAtOnce, + false); } else if (tTileEntity2.adjacentChestXPos != null) { tAmount = moveOneItemStack( - aTileEntity1, - tTileEntity2.adjacentChestXPos, - aGrabFrom, - aPutTo, - aFilter, - aInvertFilter, - aMaxTargetStackSize, - aMinTargetStackSize, - aMaxMoveAtOnce, - aMinMoveAtOnce, - false); + aTileEntity1, + tTileEntity2.adjacentChestXPos, + aGrabFrom, + aPutTo, + aFilter, + aInvertFilter, + aMaxTargetStackSize, + aMinTargetStackSize, + aMaxMoveAtOnce, + aMinMoveAtOnce, + false); } else if (tTileEntity2.adjacentChestZPos != null) { tAmount = moveOneItemStack( - aTileEntity1, - tTileEntity2.adjacentChestZPos, - aGrabFrom, - aPutTo, - aFilter, - aInvertFilter, - aMaxTargetStackSize, - aMinTargetStackSize, - aMaxMoveAtOnce, - aMinMoveAtOnce, - false); + aTileEntity1, + tTileEntity2.adjacentChestZPos, + aGrabFrom, + aPutTo, + aFilter, + aInvertFilter, + aMaxTargetStackSize, + aMinTargetStackSize, + aMaxMoveAtOnce, + aMinMoveAtOnce, + false); } if (tAmount != 0) return tAmount; } @@ -1383,18 +1370,18 @@ public class GT_Utility { } return moveStackIntoPipe( - aTileEntity1, - aTileEntity2, - tGrabSlots, - aGrabFrom, - aPutTo, - aFilter, - aInvertFilter, - aMaxTargetStackSize, - aMinTargetStackSize, - aMaxMoveAtOnce, - aMinMoveAtOnce, - aDoCheckChests); + aTileEntity1, + aTileEntity2, + tGrabSlots, + aGrabFrom, + aPutTo, + aFilter, + aInvertFilter, + aMaxTargetStackSize, + aMinTargetStackSize, + aMaxMoveAtOnce, + aMinMoveAtOnce, + aDoCheckChests); } /** @@ -1403,16 +1390,15 @@ public class GT_Utility { * @return the Amount of moved Items */ public static byte moveOneItemStackIntoSlot(Object aTileEntity1, Object aTileEntity2, byte aGrabFrom, int aPutTo, - List aFilter, boolean aInvertFilter, byte aMaxTargetStackSize, byte aMinTargetStackSize, - byte aMaxMoveAtOnce, byte aMinMoveAtOnce) { + List aFilter, boolean aInvertFilter, byte aMaxTargetStackSize, byte aMinTargetStackSize, + byte aMaxMoveAtOnce, byte aMinMoveAtOnce) { if (aTileEntity1 == null || !(aTileEntity1 instanceof IInventory) - || aPutTo < 0 - || aMaxTargetStackSize <= 0 - || aMinTargetStackSize <= 0 - || aMaxMoveAtOnce <= 0 - || aMinTargetStackSize > aMaxTargetStackSize - || aMinMoveAtOnce > aMaxMoveAtOnce) - return 0; + || aPutTo < 0 + || aMaxTargetStackSize <= 0 + || aMinTargetStackSize <= 0 + || aMaxMoveAtOnce <= 0 + || aMinTargetStackSize > aMaxTargetStackSize + || aMinMoveAtOnce > aMaxMoveAtOnce) return 0; int[] tGrabSlots = null; if (aTileEntity1 instanceof ISidedInventory) @@ -1425,30 +1411,30 @@ public class GT_Utility { if (aTileEntity2 instanceof IInventory) { for (int tGrabSlot : tGrabSlots) { if (listContainsItem( - aFilter, - ((IInventory) aTileEntity1).getStackInSlot(tGrabSlot), - true, - aInvertFilter)) { + aFilter, + ((IInventory) aTileEntity1).getStackInSlot(tGrabSlot), + true, + aInvertFilter)) { if (isAllowedToTakeFromSlot( - (IInventory) aTileEntity1, - tGrabSlot, - aGrabFrom, - ((IInventory) aTileEntity1).getStackInSlot(tGrabSlot))) { + (IInventory) aTileEntity1, + tGrabSlot, + aGrabFrom, + ((IInventory) aTileEntity1).getStackInSlot(tGrabSlot))) { if (isAllowedToPutIntoSlot( + (IInventory) aTileEntity2, + aPutTo, + (byte) 6, + ((IInventory) aTileEntity1).getStackInSlot(tGrabSlot), + aMaxTargetStackSize)) { + byte tMovedItemCount = moveStackFromSlotAToSlotB( + (IInventory) aTileEntity1, (IInventory) aTileEntity2, + tGrabSlot, aPutTo, - (byte) 6, - ((IInventory) aTileEntity1).getStackInSlot(tGrabSlot), - aMaxTargetStackSize)) { - byte tMovedItemCount = moveStackFromSlotAToSlotB( - (IInventory) aTileEntity1, - (IInventory) aTileEntity2, - tGrabSlot, - aPutTo, - aMaxTargetStackSize, - aMinTargetStackSize, - aMaxMoveAtOnce, - aMinMoveAtOnce); + aMaxTargetStackSize, + aMinTargetStackSize, + aMaxMoveAtOnce, + aMinMoveAtOnce); if (tMovedItemCount > 0) return tMovedItemCount; } } @@ -1457,17 +1443,17 @@ public class GT_Utility { } moveStackIntoPipe( - ((IInventory) aTileEntity1), - aTileEntity2, - tGrabSlots, - aGrabFrom, - aPutTo, - aFilter, - aInvertFilter, - aMaxTargetStackSize, - aMinTargetStackSize, - aMaxMoveAtOnce, - aMinMoveAtOnce); + ((IInventory) aTileEntity1), + aTileEntity2, + tGrabSlots, + aGrabFrom, + aPutTo, + aFilter, + aInvertFilter, + aMaxTargetStackSize, + aMinTargetStackSize, + aMaxMoveAtOnce, + aMinMoveAtOnce); return 0; } @@ -1477,34 +1463,33 @@ public class GT_Utility { * @return the Amount of moved Items */ public static byte moveFromSlotToSlot(IInventory aTileEntity1, IInventory aTileEntity2, int aGrabFrom, int aPutTo, - List aFilter, boolean aInvertFilter, byte aMaxTargetStackSize, byte aMinTargetStackSize, - byte aMaxMoveAtOnce, byte aMinMoveAtOnce) { + List aFilter, boolean aInvertFilter, byte aMaxTargetStackSize, byte aMinTargetStackSize, + byte aMaxMoveAtOnce, byte aMinMoveAtOnce) { if (aTileEntity1 == null || aTileEntity2 == null - || aGrabFrom < 0 - || aPutTo < 0 - || aMaxTargetStackSize <= 0 - || aMinTargetStackSize <= 0 - || aMaxMoveAtOnce <= 0 - || aMinTargetStackSize > aMaxTargetStackSize - || aMinMoveAtOnce > aMaxMoveAtOnce) - return 0; + || aGrabFrom < 0 + || aPutTo < 0 + || aMaxTargetStackSize <= 0 + || aMinTargetStackSize <= 0 + || aMaxMoveAtOnce <= 0 + || aMinTargetStackSize > aMaxTargetStackSize + || aMinMoveAtOnce > aMaxMoveAtOnce) return 0; if (listContainsItem(aFilter, aTileEntity1.getStackInSlot(aGrabFrom), true, aInvertFilter)) { if (isAllowedToTakeFromSlot(aTileEntity1, aGrabFrom, (byte) 6, aTileEntity1.getStackInSlot(aGrabFrom))) { if (isAllowedToPutIntoSlot( + aTileEntity2, + aPutTo, + (byte) 6, + aTileEntity1.getStackInSlot(aGrabFrom), + aMaxTargetStackSize)) { + byte tMovedItemCount = moveStackFromSlotAToSlotB( + aTileEntity1, aTileEntity2, + aGrabFrom, aPutTo, - (byte) 6, - aTileEntity1.getStackInSlot(aGrabFrom), - aMaxTargetStackSize)) { - byte tMovedItemCount = moveStackFromSlotAToSlotB( - aTileEntity1, - aTileEntity2, - aGrabFrom, - aPutTo, - aMaxTargetStackSize, - aMinTargetStackSize, - aMaxMoveAtOnce, - aMinMoveAtOnce); + aMaxTargetStackSize, + aMinTargetStackSize, + aMaxMoveAtOnce, + aMinMoveAtOnce); if (tMovedItemCount > 0) return tMovedItemCount; } } @@ -1518,18 +1503,16 @@ public class GT_Utility { * @return the Amount of moved Items */ public static byte moveFromSlotToSide(IInventory fromTile, Object toTile, int aGrabFrom, byte aPutTo, - List aFilter, boolean aInvertFilter, byte aMaxTargetStackSize, byte aMinTargetStackSize, - byte aMaxMoveAtOnce, byte aMinMoveAtOnce, boolean aDoCheckChests) { + List aFilter, boolean aInvertFilter, byte aMaxTargetStackSize, byte aMinTargetStackSize, + byte aMaxMoveAtOnce, byte aMinMoveAtOnce, boolean aDoCheckChests) { if (fromTile == null || aGrabFrom < 0 - || aMinTargetStackSize <= 0 - || aMaxMoveAtOnce <= 0 - || aMinTargetStackSize > aMaxTargetStackSize - || aMinMoveAtOnce > aMaxMoveAtOnce) - return 0; + || aMinTargetStackSize <= 0 + || aMaxMoveAtOnce <= 0 + || aMinTargetStackSize > aMaxTargetStackSize + || aMinMoveAtOnce > aMaxMoveAtOnce) return 0; if (!listContainsItem(aFilter, fromTile.getStackInSlot(aGrabFrom), true, aInvertFilter) - || !isAllowedToTakeFromSlot(fromTile, aGrabFrom, (byte) 6, fromTile.getStackInSlot(aGrabFrom))) - return 0; + || !isAllowedToTakeFromSlot(fromTile, aGrabFrom, (byte) 6, fromTile.getStackInSlot(aGrabFrom))) return 0; if (toTile instanceof IInventory) { int[] tPutSlots = null; @@ -1544,20 +1527,20 @@ public class GT_Utility { byte tMovedItemCount = 0; for (int tPutSlot : tPutSlots) { if (isAllowedToPutIntoSlot( + (IInventory) toTile, + tPutSlot, + aPutTo, + fromTile.getStackInSlot(aGrabFrom), + aMaxTargetStackSize)) { + tMovedItemCount += moveStackFromSlotAToSlotB( + fromTile, (IInventory) toTile, + aGrabFrom, tPutSlot, - aPutTo, - fromTile.getStackInSlot(aGrabFrom), - aMaxTargetStackSize)) { - tMovedItemCount += moveStackFromSlotAToSlotB( - fromTile, - (IInventory) toTile, - aGrabFrom, - tPutSlot, - aMaxTargetStackSize, - aMinTargetStackSize, - (byte) (aMaxMoveAtOnce - tMovedItemCount), - aMinMoveAtOnce); + aMaxTargetStackSize, + aMinTargetStackSize, + (byte) (aMaxMoveAtOnce - tMovedItemCount), + aMinMoveAtOnce); if (tMovedItemCount >= aMaxMoveAtOnce) { return tMovedItemCount; } @@ -1569,95 +1552,95 @@ public class GT_Utility { if (tTileEntity2.adjacentChestChecked) { if (tTileEntity2.adjacentChestXNeg != null) { tMovedItemCount = moveFromSlotToSide( - fromTile, - tTileEntity2.adjacentChestXNeg, - aGrabFrom, - aPutTo, - aFilter, - aInvertFilter, - aMaxTargetStackSize, - aMinTargetStackSize, - aMaxMoveAtOnce, - aMinMoveAtOnce, - false); + fromTile, + tTileEntity2.adjacentChestXNeg, + aGrabFrom, + aPutTo, + aFilter, + aInvertFilter, + aMaxTargetStackSize, + aMinTargetStackSize, + aMaxMoveAtOnce, + aMinMoveAtOnce, + false); } else if (tTileEntity2.adjacentChestZNeg != null) { tMovedItemCount = moveFromSlotToSide( - fromTile, - tTileEntity2.adjacentChestZNeg, - aGrabFrom, - aPutTo, - aFilter, - aInvertFilter, - aMaxTargetStackSize, - aMinTargetStackSize, - aMaxMoveAtOnce, - aMinMoveAtOnce, - false); + fromTile, + tTileEntity2.adjacentChestZNeg, + aGrabFrom, + aPutTo, + aFilter, + aInvertFilter, + aMaxTargetStackSize, + aMinTargetStackSize, + aMaxMoveAtOnce, + aMinMoveAtOnce, + false); } else if (tTileEntity2.adjacentChestXPos != null) { tMovedItemCount = moveFromSlotToSide( - fromTile, - tTileEntity2.adjacentChestXPos, - aGrabFrom, - aPutTo, - aFilter, - aInvertFilter, - aMaxTargetStackSize, - aMinTargetStackSize, - aMaxMoveAtOnce, - aMinMoveAtOnce, - false); + fromTile, + tTileEntity2.adjacentChestXPos, + aGrabFrom, + aPutTo, + aFilter, + aInvertFilter, + aMaxTargetStackSize, + aMinTargetStackSize, + aMaxMoveAtOnce, + aMinMoveAtOnce, + false); } else if (tTileEntity2.adjacentChestZPos != null) { tMovedItemCount = moveFromSlotToSide( - fromTile, - tTileEntity2.adjacentChestZPos, - aGrabFrom, - aPutTo, - aFilter, - aInvertFilter, - aMaxTargetStackSize, - aMinTargetStackSize, - aMaxMoveAtOnce, - aMinMoveAtOnce, - false); + fromTile, + tTileEntity2.adjacentChestZPos, + aGrabFrom, + aPutTo, + aFilter, + aInvertFilter, + aMaxTargetStackSize, + aMinTargetStackSize, + aMaxMoveAtOnce, + aMinMoveAtOnce, + false); } if (tMovedItemCount > 0) return tMovedItemCount; } } } return moveStackIntoPipe( - fromTile, - toTile, - new int[] { aGrabFrom }, - (byte) 6, - aPutTo, - aFilter, - aInvertFilter, - aMaxTargetStackSize, - aMinTargetStackSize, - aMaxMoveAtOnce, - aMinMoveAtOnce, - aDoCheckChests); + fromTile, + toTile, + new int[] { aGrabFrom }, + (byte) 6, + aPutTo, + aFilter, + aInvertFilter, + aMaxTargetStackSize, + aMinTargetStackSize, + aMaxMoveAtOnce, + aMinMoveAtOnce, + aDoCheckChests); } public static byte moveFromSlotToSide(IInventory fromTile, Object toTile, int aGrabFrom, byte aPutTo, - List aFilter, boolean aInvertFilter, byte aMaxTargetStackSize, byte aMinTargetStackSize, - byte aMaxMoveAtOnce, byte aMinMoveAtOnce) { + List aFilter, boolean aInvertFilter, byte aMaxTargetStackSize, byte aMinTargetStackSize, + byte aMaxMoveAtOnce, byte aMinMoveAtOnce) { return moveFromSlotToSide( - fromTile, - toTile, - aGrabFrom, - aPutTo, - aFilter, - aInvertFilter, - aMaxTargetStackSize, - aMinTargetStackSize, - aMaxMoveAtOnce, - aMinMoveAtOnce, - true); + fromTile, + toTile, + aGrabFrom, + aPutTo, + aFilter, + aInvertFilter, + aMaxTargetStackSize, + aMinTargetStackSize, + aMaxMoveAtOnce, + aMinMoveAtOnce, + true); } public static boolean listContainsItem(Collection aList, ItemStack aStack, boolean aTIfListEmpty, - boolean aInvertFilter) { + boolean aInvertFilter) { if (aStack == null || aStack.stackSize < 1) return false; if (aList == null) return aTIfListEmpty; boolean tEmpty = true; @@ -1675,14 +1658,13 @@ public class GT_Utility { public static boolean areStacksOrToolsEqual(ItemStack aStack1, ItemStack aStack2) { if (aStack1 != null && aStack2 != null && aStack1.getItem() == aStack2.getItem()) { if (aStack1.getItem() - .isDamageable()) - return true; + .isDamageable()) return true; return ((aStack1.getTagCompound() == null) == (aStack2.getTagCompound() == null)) - && (aStack1.getTagCompound() == null || aStack1.getTagCompound() - .equals(aStack2.getTagCompound())) - && (Items.feather.getDamage(aStack1) == Items.feather.getDamage(aStack2) - || Items.feather.getDamage(aStack1) == W - || Items.feather.getDamage(aStack2) == W); + && (aStack1.getTagCompound() == null || aStack1.getTagCompound() + .equals(aStack2.getTagCompound())) + && (Items.feather.getDamage(aStack1) == Items.feather.getDamage(aStack2) + || Items.feather.getDamage(aStack1) == W + || Items.feather.getDamage(aStack2) == W); } return false; } @@ -1693,9 +1675,9 @@ public class GT_Utility { public static boolean areFluidsEqual(FluidStack aFluid1, FluidStack aFluid2, boolean aIgnoreNBT) { return aFluid1 != null && aFluid2 != null - && aFluid1.getFluid() == aFluid2.getFluid() - && (aIgnoreNBT || ((aFluid1.tag == null) == (aFluid2.tag == null)) - && (aFluid1.tag == null || aFluid1.tag.equals(aFluid2.tag))); + && aFluid1.getFluid() == aFluid2.getFluid() + && (aIgnoreNBT || ((aFluid1.tag == null) == (aFluid2.tag == null)) + && (aFluid1.tag == null || aFluid1.tag.equals(aFluid2.tag))); } public static boolean areStacksEqual(ItemStack aStack1, ItemStack aStack2) { @@ -1704,13 +1686,13 @@ public class GT_Utility { public static boolean areStacksEqual(ItemStack aStack1, ItemStack aStack2, boolean aIgnoreNBT) { return aStack1 != null && aStack2 != null - && aStack1.getItem() == aStack2.getItem() - && (aIgnoreNBT || (((aStack1.getTagCompound() == null) == (aStack2.getTagCompound() == null)) - && (aStack1.getTagCompound() == null || aStack1.getTagCompound() - .equals(aStack2.getTagCompound())))) - && (Items.feather.getDamage(aStack1) == Items.feather.getDamage(aStack2) - || Items.feather.getDamage(aStack1) == W - || Items.feather.getDamage(aStack2) == W); + && aStack1.getItem() == aStack2.getItem() + && (aIgnoreNBT || (((aStack1.getTagCompound() == null) == (aStack2.getTagCompound() == null)) + && (aStack1.getTagCompound() == null || aStack1.getTagCompound() + .equals(aStack2.getTagCompound())))) + && (Items.feather.getDamage(aStack1) == Items.feather.getDamage(aStack2) + || Items.feather.getDamage(aStack1) == W + || Items.feather.getDamage(aStack2) == W); } /** @@ -1719,7 +1701,7 @@ public class GT_Utility { * Since ItemStack doesn't override equals and hashCode, you cannot just use Objects.equals */ public static boolean areStackListsEqual(List lhs, List rhs, boolean ignoreStackSize, - boolean ignoreNBT) { + boolean ignoreNBT) { if (lhs == null) return rhs == null; if (rhs == null) return false; if (lhs.size() != rhs.size()) return false; @@ -1730,12 +1712,12 @@ public class GT_Utility { } private static boolean areStacksEqualExtended(ItemStack lhs, ItemStack rhs, boolean ignoreStackSize, - boolean ignoreNBT) { + boolean ignoreNBT) { if (lhs == null) return rhs == null; if (rhs == null) return false; return lhs.getItem() == rhs.getItem() - && (ignoreNBT || Objects.equals(lhs.stackTagCompound, rhs.stackTagCompound)) - && (ignoreStackSize || lhs.stackSize == rhs.stackSize); + && (ignoreNBT || Objects.equals(lhs.stackTagCompound, rhs.stackTagCompound)) + && (ignoreStackSize || lhs.stackSize == rhs.stackSize); } public static boolean areUnificationsEqual(ItemStack aStack1, ItemStack aStack2) { @@ -1744,17 +1726,17 @@ public class GT_Utility { public static boolean areUnificationsEqual(ItemStack aStack1, ItemStack aStack2, boolean aIgnoreNBT) { return areStacksEqual( - GT_OreDictUnificator.get_nocopy(aStack1), - GT_OreDictUnificator.get_nocopy(aStack2), - aIgnoreNBT); + GT_OreDictUnificator.get_nocopy(aStack1), + GT_OreDictUnificator.get_nocopy(aStack2), + aIgnoreNBT); } public static String getFluidName(Fluid aFluid, boolean aLocalized) { if (aFluid == null) return E; String rName = aLocalized ? aFluid.getLocalizedName(new FluidStack(aFluid, 0)) : aFluid.getUnlocalizedName(); if (rName.contains("fluid.") || rName.contains("tile.")) return capitalizeString( - rName.replaceAll("fluid.", E) - .replaceAll("tile.", E)); + rName.replaceAll("fluid.", E) + .replaceAll("tile.", E)); return rName; } @@ -1770,13 +1752,12 @@ public class GT_Utility { sFluidUnlocalizedNameToFluid.clear(); for (FluidContainerData tData : sFluidContainerList) { sFilledContainerToData.put(new GT_ItemStack(tData.filledContainer), tData); - Map tFluidToContainer = sEmptyContainerToFluidToData.get( - new GT_ItemStack(tData.emptyContainer)); + Map tFluidToContainer = sEmptyContainerToFluidToData + .get(new GT_ItemStack(tData.emptyContainer)); List tContainers = sFluidToContainers.get(tData.fluid.getFluid()); if (tFluidToContainer == null) { - sEmptyContainerToFluidToData.put( - new GT_ItemStack(tData.emptyContainer), - tFluidToContainer = new /* Concurrent */ HashMap<>()); + sEmptyContainerToFluidToData + .put(new GT_ItemStack(tData.emptyContainer), tFluidToContainer = new /* Concurrent */ HashMap<>()); GregTech_API.sFluidMappings.add(tFluidToContainer); } tFluidToContainer.put(tData.fluid.getFluid(), tData); @@ -1787,7 +1768,7 @@ public class GT_Utility { } else tContainers.add(tData.filledContainer); } for (Fluid tFluid : FluidRegistry.getRegisteredFluids() - .values()) { + .values()) { sFluidUnlocalizedNameToFluid.put(tFluid.getUnlocalizedName(), tFluid); } } @@ -1799,13 +1780,12 @@ public class GT_Utility { public static void addFluidContainerData(FluidContainerData aData) { sFluidContainerList.add(aData); sFilledContainerToData.put(new GT_ItemStack(aData.filledContainer), aData); - Map tFluidToContainer = sEmptyContainerToFluidToData.get( - new GT_ItemStack(aData.emptyContainer)); + Map tFluidToContainer = sEmptyContainerToFluidToData + .get(new GT_ItemStack(aData.emptyContainer)); List tContainers = sFluidToContainers.get(aData.fluid.getFluid()); if (tFluidToContainer == null) { - sEmptyContainerToFluidToData.put( - new GT_ItemStack(aData.emptyContainer), - tFluidToContainer = new /* Concurrent */ HashMap<>()); + sEmptyContainerToFluidToData + .put(new GT_ItemStack(aData.emptyContainer), tFluidToContainer = new /* Concurrent */ HashMap<>()); GregTech_API.sFluidMappings.add(tFluidToContainer); } tFluidToContainer.put(aData.fluid.getFluid(), aData); @@ -1826,7 +1806,7 @@ public class GT_Utility { } public static ItemStack fillFluidContainer(FluidStack aFluid, ItemStack aStack, boolean aRemoveFluidDirectly, - boolean aCheckIFluidContainerItems) { + boolean aCheckIFluidContainerItems) { if (isStackInvalid(aStack) || aFluid == null) return null; if (GT_ModHandler.isWater(aFluid) && ItemList.Bottle_Empty.isStackEqual(aStack)) { if (aFluid.amount >= 250) { @@ -1836,12 +1816,10 @@ public class GT_Utility { return null; } if (aCheckIFluidContainerItems && aStack.getItem() instanceof IFluidContainerItem - && ((IFluidContainerItem) aStack.getItem()).getFluid(aStack) == null - && ((IFluidContainerItem) aStack.getItem()).getCapacity(aStack) <= aFluid.amount) { - if (aRemoveFluidDirectly) aFluid.amount -= ((IFluidContainerItem) aStack.getItem()).fill( - aStack = copyAmount(1, aStack), - aFluid, - true); + && ((IFluidContainerItem) aStack.getItem()).getFluid(aStack) == null + && ((IFluidContainerItem) aStack.getItem()).getCapacity(aStack) <= aFluid.amount) { + if (aRemoveFluidDirectly) aFluid.amount -= ((IFluidContainerItem) aStack.getItem()) + .fill(aStack = copyAmount(1, aStack), aFluid, true); else((IFluidContainerItem) aStack.getItem()).fill(aStack = copyAmount(1, aStack), aFluid, true); return aStack; } @@ -1855,7 +1833,7 @@ public class GT_Utility { public static int calculateRecipeEU(Materials aMaterial, int defaultRecipeEUPerTick) { return aMaterial.getProcessingMaterialTierEU() == 0 ? defaultRecipeEUPerTick - : aMaterial.getProcessingMaterialTierEU(); + : aMaterial.getProcessingMaterialTierEU(); } public static ItemStack getFluidDisplayStack(Fluid aFluid) { @@ -1871,7 +1849,7 @@ public class GT_Utility { int tmp = 0; try { tmp = aFluid.getFluid() - .getID(); + .getID(); } catch (Exception e) { System.err.println(e); } @@ -1879,13 +1857,13 @@ public class GT_Utility { NBTTagCompound tNBT = new NBTTagCompound(); tNBT.setLong("mFluidDisplayAmount", aUseStackSize ? aFluid.amount : 0); tNBT.setLong( - "mFluidDisplayHeat", - aFluid.getFluid() - .getTemperature(aFluid)); + "mFluidDisplayHeat", + aFluid.getFluid() + .getTemperature(aFluid)); tNBT.setBoolean( - "mFluidState", - aFluid.getFluid() - .isGaseous(aFluid)); + "mFluidState", + aFluid.getFluid() + .isGaseous(aFluid)); tNBT.setBoolean("mHideStackSize", aHideStackSize); try { tNBT.setString("mFluidMaterialName", FLUID_MAP.get(aFluid.getFluid()).mName); @@ -1896,23 +1874,22 @@ public class GT_Utility { public static FluidStack getFluidFromDisplayStack(ItemStack aDisplayStack) { if (!isStackValid(aDisplayStack) || aDisplayStack.getItem() != ItemList.Display_Fluid.getItem() - || !aDisplayStack.hasTagCompound()) - return null; + || !aDisplayStack.hasTagCompound()) return null; Fluid tFluid = FluidRegistry.getFluid( - ItemList.Display_Fluid.getItem() - .getDamage(aDisplayStack)); + ItemList.Display_Fluid.getItem() + .getDamage(aDisplayStack)); return new FluidStack( - tFluid, - (int) aDisplayStack.getTagCompound() - .getLong("mFluidDisplayAmount")); + tFluid, + (int) aDisplayStack.getTagCompound() + .getLong("mFluidDisplayAmount")); } public static boolean containsFluid(ItemStack aStack, FluidStack aFluid, boolean aCheckIFluidContainerItems) { if (isStackInvalid(aStack) || aFluid == null) return false; if (aCheckIFluidContainerItems && aStack.getItem() instanceof IFluidContainerItem - && ((IFluidContainerItem) aStack.getItem()).getCapacity(aStack) > 0) - return aFluid.isFluidEqual( - ((IFluidContainerItem) aStack.getItem()).getFluid(aStack = copyAmount(1, aStack))); + && ((IFluidContainerItem) aStack.getItem()).getCapacity(aStack) > 0) + return aFluid + .isFluidEqual(((IFluidContainerItem) aStack.getItem()).getFluid(aStack = copyAmount(1, aStack))); FluidContainerData tData = sFilledContainerToData.get(new GT_ItemStack(aStack)); return tData != null && tData.fluid.isFluidEqual(aFluid); } @@ -1920,7 +1897,7 @@ public class GT_Utility { public static FluidStack getFluidForFilledItem(ItemStack aStack, boolean aCheckIFluidContainerItems) { if (isStackInvalid(aStack)) return null; if (aCheckIFluidContainerItems && aStack.getItem() instanceof IFluidContainerItem - && ((IFluidContainerItem) aStack.getItem()).getCapacity(aStack) > 0) + && ((IFluidContainerItem) aStack.getItem()).getCapacity(aStack) > 0) return ((IFluidContainerItem) aStack.getItem()).drain(copyAmount(1, aStack), Integer.MAX_VALUE, true); FluidContainerData tData = sFilledContainerToData.get(new GT_ItemStack(aStack)); return tData == null ? null : tData.fluid.copy(); @@ -1934,7 +1911,7 @@ public class GT_Utility { FluidContainerData tData = sFilledContainerToData.get(new GT_ItemStack(aStack)); if (tData != null) return copyAmount(1, tData.emptyContainer); if (aCheckIFluidContainerItems && aStack.getItem() instanceof IFluidContainerItem - && ((IFluidContainerItem) aStack.getItem()).getCapacity(aStack) > 0) { + && ((IFluidContainerItem) aStack.getItem()).getCapacity(aStack) > 0) { ((IFluidContainerItem) aStack.getItem()).drain(aStack = copyAmount(1, aStack), Integer.MAX_VALUE, true); return aStack; } @@ -1948,20 +1925,19 @@ public class GT_Utility { public static ItemStack getContainerItem(ItemStack aStack, boolean aCheckIFluidContainerItems) { if (isStackInvalid(aStack)) return null; if (aStack.getItem() - .hasContainerItem(aStack)) + .hasContainerItem(aStack)) return aStack.getItem() - .getContainerItem(aStack); + .getContainerItem(aStack); /** * These are all special Cases, in which it is intended to have only GT Blocks outputting those Container Items */ if (ItemList.Cell_Empty.isStackEqual(aStack, false, true)) return null; if (aStack.getItem() == Items.potionitem || aStack.getItem() == Items.experience_bottle - || ItemList.TF_Vial_FieryBlood.isStackEqual(aStack) - || ItemList.TF_Vial_FieryTears.isStackEqual(aStack)) - return ItemList.Bottle_Empty.get(1); + || ItemList.TF_Vial_FieryBlood.isStackEqual(aStack) + || ItemList.TF_Vial_FieryTears.isStackEqual(aStack)) return ItemList.Bottle_Empty.get(1); if (aCheckIFluidContainerItems && aStack.getItem() instanceof IFluidContainerItem - && ((IFluidContainerItem) aStack.getItem()).getCapacity(aStack) > 0) { + && ((IFluidContainerItem) aStack.getItem()).getCapacity(aStack) > 0) { ItemStack tStack = copyAmount(1, aStack); ((IFluidContainerItem) aStack.getItem()).drain(tStack, Integer.MAX_VALUE, true); if (!areStacksEqual(aStack, tStack)) return tStack; @@ -1985,17 +1961,18 @@ public class GT_Utility { } public static synchronized boolean removeIC2BottleRecipe(ItemStack aContainer, ItemStack aInput, - Map aRecipeList, ItemStack aOutput) { + Map aRecipeList, ItemStack aOutput) { if ((isStackInvalid(aInput) && isStackInvalid(aOutput) && isStackInvalid(aContainer)) || aRecipeList == null) return false; boolean rReturn = false; - Iterator> tIterator = aRecipeList.entrySet() - .iterator(); + Iterator> tIterator = aRecipeList + .entrySet() + .iterator(); aOutput = GT_OreDictUnificator.get(aOutput); while (tIterator.hasNext()) { Map.Entry tEntry = tIterator.next(); if (aInput == null || tEntry.getKey() - .matches(aContainer, aInput)) { + .matches(aContainer, aInput)) { List tList = tEntry.getValue().items; if (tList != null) for (ItemStack tOutput : tList) if (aOutput == null || areStacksEqual(GT_OreDictUnificator.get(tOutput), aOutput)) { @@ -2009,16 +1986,16 @@ public class GT_Utility { } public static synchronized boolean removeSimpleIC2MachineRecipe(ItemStack aInput, - Map aRecipeList, ItemStack aOutput) { + Map aRecipeList, ItemStack aOutput) { if ((isStackInvalid(aInput) && isStackInvalid(aOutput)) || aRecipeList == null) return false; boolean rReturn = false; Iterator> tIterator = aRecipeList.entrySet() - .iterator(); + .iterator(); aOutput = GT_OreDictUnificator.get(aOutput); while (tIterator.hasNext()) { Map.Entry tEntry = tIterator.next(); if (aInput == null || tEntry.getKey() - .matches(aInput)) { + .matches(aInput)) { List tList = tEntry.getValue().items; if (tList != null) for (ItemStack tOutput : tList) if (aOutput == null || areStacksEqual(GT_OreDictUnificator.get(tOutput), aOutput)) { @@ -2032,38 +2009,34 @@ public class GT_Utility { } public static synchronized void bulkRemoveSimpleIC2MachineRecipe(Map toRemove, - Map aRecipeList) { + Map aRecipeList) { if (aRecipeList == null || aRecipeList.isEmpty()) return; toRemove.entrySet() - .removeIf(aEntry -> (isStackInvalid(aEntry.getKey()) && isStackInvalid(aEntry.getValue()))); - final Map finalToRemove = Maps.transformValues( - toRemove, - GT_OreDictUnificator::get_nocopy); + .removeIf(aEntry -> (isStackInvalid(aEntry.getKey()) && isStackInvalid(aEntry.getValue()))); + final Map finalToRemove = Maps + .transformValues(toRemove, GT_OreDictUnificator::get_nocopy); aRecipeList.entrySet() - .removeIf( - tEntry -> finalToRemove.entrySet() - .stream() - .anyMatch(aEntry -> { - final ItemStack aInput = aEntry.getKey(), - aOutput = aEntry.getValue(); - final List tList = tEntry.getValue().items; - - if (tList == null) return false; - if (aInput != null && !tEntry.getKey() - .matches(aInput)) - return false; - - return tList.stream() - .anyMatch( - tOutput -> (aOutput == null || areStacksEqual( - GT_OreDictUnificator.get(tOutput), - aOutput))); - })); + .removeIf( + tEntry -> finalToRemove.entrySet() + .stream() + .anyMatch(aEntry -> { + final ItemStack aInput = aEntry.getKey(), aOutput = aEntry.getValue(); + final List tList = tEntry.getValue().items; + + if (tList == null) return false; + if (aInput != null && !tEntry.getKey() + .matches(aInput)) return false; + + return tList.stream() + .anyMatch( + tOutput -> (aOutput == null + || areStacksEqual(GT_OreDictUnificator.get(tOutput), aOutput))); + })); } public static boolean addSimpleIC2MachineRecipe(ItemStack aInput, Map aRecipeList, - NBTTagCompound aNBT, Object... aOutput) { + NBTTagCompound aNBT, Object... aOutput) { if (isStackInvalid(aInput) || aOutput.length == 0 || aRecipeList == null) return false; ItemData tOreName = GT_OreDictUnificator.getAssociation(aInput); for (Object o : aOutput) { @@ -2076,17 +2049,15 @@ public class GT_Utility { if (tStack.length > 0 && areStacksEqual(aInput, tStack[0])) return false; if (tOreName != null) { if (tOreName.toString() - .equals("dustAsh") - && tStack[0].getUnlocalizedName() - .equals("tile.volcanicAsh")) + .equals("dustAsh") + && tStack[0].getUnlocalizedName() + .equals("tile.volcanicAsh")) return false; - aRecipeList.put( - new RecipeInputOreDict(tOreName.toString(), aInput.stackSize), - new RecipeOutput(aNBT, tStack)); + aRecipeList + .put(new RecipeInputOreDict(tOreName.toString(), aInput.stackSize), new RecipeOutput(aNBT, tStack)); } else { - aRecipeList.put( - new RecipeInputItemStack(copyOrNull(aInput), aInput.stackSize), - new RecipeOutput(aNBT, tStack)); + aRecipeList + .put(new RecipeInputItemStack(copyOrNull(aInput), aInput.stackSize), new RecipeOutput(aNBT, tStack)); } return true; } @@ -2114,9 +2085,8 @@ public class GT_Utility { tNBT.setString("author", aAuthor); NBTTagList tNBTList = new NBTTagList(); for (byte i = 0; i < aPages.length; i++) { - aPages[i] = GT_LanguageManager.addStringLocalization( - "Book." + aTitle + ".Page" + ((i < 10) ? "0" + i : i), - aPages[i]); + aPages[i] = GT_LanguageManager + .addStringLocalization("Book." + aTitle + ".Page" + ((i < 10) ? "0" + i : i), aPages[i]); if (i < 48) { if (aPages[i].length() < 256) tNBTList.appendTag(new NBTTagString(aPages[i])); else GT_Log.err.println("WARNING: String for written Book too long! -> " + aPages[i]); @@ -2126,20 +2096,20 @@ public class GT_Utility { } } tNBTList.appendTag( - new NBTTagString( - "Credits to " + aAuthor - + " for writing this Book. This was Book Nr. " - + sBookCount - + " at its creation. Gotta get 'em all!")); + new NBTTagString( + "Credits to " + aAuthor + + " for writing this Book. This was Book Nr. " + + sBookCount + + " at its creation. Gotta get 'em all!")); tNBT.setTag("pages", tNBTList); rStack.setTagCompound(tNBT); GT_Log.out.println( - "GT_Mod: Added Book to Book List - Mapping: '" + aMapping - + "' - Name: '" - + aTitle - + "' - Author: '" - + aAuthor - + "'"); + "GT_Mod: Added Book to Book List - Mapping: '" + aMapping + + "' - Name: '" + + aTitle + + "' - Author: '" + + aAuthor + + "'"); GregTech_API.sBookList.put(aMapping, rStack); return copyOrNull(rStack); } @@ -2154,36 +2124,36 @@ public class GT_Utility { } public static boolean doSoundAtClient(ResourceLocation aSoundResourceLocation, int aTimeUntilNextSound, - float aSoundStrength) { + float aSoundStrength) { return doSoundAtClient(aSoundResourceLocation, aTimeUntilNextSound, aSoundStrength, GT.getThePlayer()); } public static boolean doSoundAtClient(String aSoundName, int aTimeUntilNextSound, float aSoundStrength, - Entity aEntity) { + Entity aEntity) { if (aEntity == null || aSoundName == null) return false; return doSoundAtClient( - aSoundName, - aTimeUntilNextSound, - aSoundStrength, - aEntity.posX, - aEntity.posY, - aEntity.posZ); + aSoundName, + aTimeUntilNextSound, + aSoundStrength, + aEntity.posX, + aEntity.posY, + aEntity.posZ); } public static boolean doSoundAtClient(ResourceLocation aSoundResourceLocation, int aTimeUntilNextSound, - float aSoundStrength, Entity aEntity) { + float aSoundStrength, Entity aEntity) { if (aEntity == null) return false; return doSoundAtClient( - aSoundResourceLocation.toString(), - aTimeUntilNextSound, - aSoundStrength, - aEntity.posX, - aEntity.posY, - aEntity.posZ); + aSoundResourceLocation.toString(), + aTimeUntilNextSound, + aSoundStrength, + aEntity.posX, + aEntity.posY, + aEntity.posZ); } public static boolean doSoundAtClient(ResourceLocation aSoundResourceLocation, int aTimeUntilNextSound, - float aSoundStrength, double aX, double aY, double aZ) { + float aSoundStrength, double aX, double aY, double aZ) { return doSoundAtClient(aSoundResourceLocation, aTimeUntilNextSound, aSoundStrength, 1.01818028F, aX, aY, aZ); } @@ -2193,55 +2163,42 @@ public class GT_Utility { */ @Deprecated public static boolean doSoundAtClient(String aSoundName, int aTimeUntilNextSound, float aSoundStrength, double aX, - double aY, double aZ) { + double aY, double aZ) { if (aSoundName == null) return false; return doSoundAtClient( - new ResourceLocation(aSoundName), - aTimeUntilNextSound, - aSoundStrength, - 1.01818028F, - aX, - aY, - aZ); + new ResourceLocation(aSoundName), + aTimeUntilNextSound, + aSoundStrength, + 1.01818028F, + aX, + aY, + aZ); } public static boolean doSoundAtClient(SoundResource aSound, int aTimeUntilNextSound, float aSoundStrength, - double aX, double aY, double aZ) { + double aX, double aY, double aZ) { return doSoundAtClient(aSound.resourceLocation, aTimeUntilNextSound, aSoundStrength, aX, aY, aZ); } public static boolean doSoundAtClient(SoundResource aSound, int aTimeUntilNextSound, float aSoundStrength, - float aSoundModulation, double aX, double aY, double aZ) { + float aSoundModulation, double aX, double aY, double aZ) { return doSoundAtClient( - aSound.resourceLocation, - aTimeUntilNextSound, - aSoundStrength, - aSoundModulation, - aX, - aY, - aZ); + aSound.resourceLocation, + aTimeUntilNextSound, + aSoundStrength, + aSoundModulation, + aX, + aY, + aZ); } public static boolean doSoundAtClient(ResourceLocation aSoundResourceLocation, int aTimeUntilNextSound, - float aSoundStrength, float aSoundModulation, double aX, double aY, double aZ) { + float aSoundStrength, float aSoundModulation, double aX, double aY, double aZ) { if (!FMLCommonHandler.instance() - .getEffectiveSide() - .isClient() - || GT.getThePlayer() == null - || !GT.getThePlayer().worldObj.isRemote) - return false; + .getEffectiveSide() + .isClient() || GT.getThePlayer() == null || !GT.getThePlayer().worldObj.isRemote) return false; if (GregTech_API.sMultiThreadedSounds) new Thread( - new GT_Runnable_Sound( - GT.getThePlayer().worldObj, - aX, - aY, - aZ, - aTimeUntilNextSound, - aSoundResourceLocation, - aSoundStrength, - aSoundModulation), - "Sound Effect").start(); - else new GT_Runnable_Sound( + new GT_Runnable_Sound( GT.getThePlayer().worldObj, aX, aY, @@ -2249,7 +2206,17 @@ public class GT_Utility { aTimeUntilNextSound, aSoundResourceLocation, aSoundStrength, - aSoundModulation).run(); + aSoundModulation), + "Sound Effect").start(); + else new GT_Runnable_Sound( + GT.getThePlayer().worldObj, + aX, + aY, + aZ, + aTimeUntilNextSound, + aSoundResourceLocation, + aSoundStrength, + aSoundModulation).run(); return true; } @@ -2259,43 +2226,43 @@ public class GT_Utility { */ @Deprecated public static boolean doSoundAtClient(String aSoundName, int aTimeUntilNextSound, float aSoundStrength, - float aSoundModulation, double aX, double aY, double aZ) { + float aSoundModulation, double aX, double aY, double aZ) { if (isStringInvalid(aSoundName)) return false; return doSoundAtClient( - new ResourceLocation(aSoundName), - aTimeUntilNextSound, - aSoundStrength, - aSoundModulation, - aX, - aY, - aZ); + new ResourceLocation(aSoundName), + aTimeUntilNextSound, + aSoundStrength, + aSoundModulation, + aX, + aY, + aZ); } public static boolean sendSoundToPlayers(World aWorld, String aSoundName, float aSoundStrength, - float aSoundModulation, int aX, int aY, int aZ) { + float aSoundModulation, int aX, int aY, int aZ) { if (isStringInvalid(aSoundName) || aWorld == null || aWorld.isRemote) return false; NW.sendPacketToAllPlayersInRange( - aWorld, - new GT_Packet_Sound(aSoundName, aSoundStrength, aSoundModulation, aX, (short) aY, aZ), - aX, - aZ); + aWorld, + new GT_Packet_Sound(aSoundName, aSoundStrength, aSoundModulation, aX, (short) aY, aZ), + aX, + aZ); return true; } public static boolean sendSoundToPlayers(World aWorld, SoundResource sound, float aSoundStrength, - float aSoundModulation, int aX, int aY, int aZ) { + float aSoundModulation, int aX, int aY, int aZ) { if (aWorld == null || aWorld.isRemote) return false; NW.sendPacketToAllPlayersInRange( - aWorld, - new GT_Packet_Sound( - sound.resourceLocation.toString(), - aSoundStrength, - aSoundModulation, - aX, - (short) aY, - aZ), + aWorld, + new GT_Packet_Sound( + sound.resourceLocation.toString(), + aSoundStrength, + aSoundModulation, aX, - aZ); + (short) aY, + aZ), + aX, + aZ); return true; } @@ -2399,30 +2366,30 @@ public class GT_Utility { public static boolean isStringValid(Object aString) { return aString != null && !aString.toString() - .isEmpty(); + .isEmpty(); } public static boolean isStringInvalid(Object aString) { return aString == null || aString.toString() - .isEmpty(); + .isEmpty(); } public static boolean isStackValid(Object aStack) { return (aStack instanceof ItemStack) && ((ItemStack) aStack).getItem() != null - && ((ItemStack) aStack).stackSize >= 0; + && ((ItemStack) aStack).stackSize >= 0; } public static boolean isStackInvalid(Object aStack) { return aStack == null || !(aStack instanceof ItemStack) - || ((ItemStack) aStack).getItem() == null - || ((ItemStack) aStack).stackSize < 0; + || ((ItemStack) aStack).getItem() == null + || ((ItemStack) aStack).stackSize < 0; } public static boolean isDebugItem(ItemStack aStack) { return /* ItemList.Armor_Cheat.isStackEqual(aStack, T, T) || */ areStacksEqual( - GT_ModHandler.getIC2Item("debug", 1), - aStack, - true); + GT_ModHandler.getIC2Item("debug", 1), + aStack, + true); } public static ItemStack updateItemStack(ItemStack aStack) { @@ -2433,48 +2400,39 @@ public class GT_Utility { public static boolean isOpaqueBlock(World aWorld, int aX, int aY, int aZ) { return aWorld.getBlock(aX, aY, aZ) - .isOpaqueCube(); + .isOpaqueCube(); } public static boolean isBlockAir(World aWorld, int aX, int aY, int aZ) { return aWorld.getBlock(aX, aY, aZ) - .isAir(aWorld, aX, aY, aZ); + .isAir(aWorld, aX, aY, aZ); } public static boolean hasBlockHitBox(World aWorld, int aX, int aY, int aZ) { return aWorld.getBlock(aX, aY, aZ) - .getCollisionBoundingBoxFromPool(aWorld, aX, aY, aZ) - != null; + .getCollisionBoundingBoxFromPool(aWorld, aX, aY, aZ) != null; } public static void setCoordsOnFire(World aWorld, int aX, int aY, int aZ, boolean aReplaceCenter) { if (aReplaceCenter) if (aWorld.getBlock(aX, aY, aZ) - .getCollisionBoundingBoxFromPool(aWorld, aX, aY, aZ) - == null) - aWorld.setBlock(aX, aY, aZ, Blocks.fire); + .getCollisionBoundingBoxFromPool(aWorld, aX, aY, aZ) == null) aWorld.setBlock(aX, aY, aZ, Blocks.fire); if (aWorld.getBlock(aX + 1, aY, aZ) - .getCollisionBoundingBoxFromPool(aWorld, aX + 1, aY, aZ) - == null) + .getCollisionBoundingBoxFromPool(aWorld, aX + 1, aY, aZ) == null) aWorld.setBlock(aX + 1, aY, aZ, Blocks.fire); if (aWorld.getBlock(aX - 1, aY, aZ) - .getCollisionBoundingBoxFromPool(aWorld, aX - 1, aY, aZ) - == null) + .getCollisionBoundingBoxFromPool(aWorld, aX - 1, aY, aZ) == null) aWorld.setBlock(aX - 1, aY, aZ, Blocks.fire); if (aWorld.getBlock(aX, aY + 1, aZ) - .getCollisionBoundingBoxFromPool(aWorld, aX, aY + 1, aZ) - == null) + .getCollisionBoundingBoxFromPool(aWorld, aX, aY + 1, aZ) == null) aWorld.setBlock(aX, aY + 1, aZ, Blocks.fire); if (aWorld.getBlock(aX, aY - 1, aZ) - .getCollisionBoundingBoxFromPool(aWorld, aX, aY - 1, aZ) - == null) + .getCollisionBoundingBoxFromPool(aWorld, aX, aY - 1, aZ) == null) aWorld.setBlock(aX, aY - 1, aZ, Blocks.fire); if (aWorld.getBlock(aX, aY, aZ + 1) - .getCollisionBoundingBoxFromPool(aWorld, aX, aY, aZ + 1) - == null) + .getCollisionBoundingBoxFromPool(aWorld, aX, aY, aZ + 1) == null) aWorld.setBlock(aX, aY, aZ + 1, Blocks.fire); if (aWorld.getBlock(aX, aY, aZ - 1) - .getCollisionBoundingBoxFromPool(aWorld, aX, aY, aZ - 1) - == null) + .getCollisionBoundingBoxFromPool(aWorld, aX, aY, aZ - 1) == null) aWorld.setBlock(aX, aY, aZ - 1, Blocks.fire); } @@ -2482,7 +2440,7 @@ public class GT_Utility { if (aInventory != null) for (int i = 0, j = aInventory.getSizeInventory(); i < j; i++) { ItemStack rStack = aInventory.getStackInSlot(i); if (isStackValid(rStack) && rStack.getItem() instanceof IProjectileItem - && ((IProjectileItem) rStack.getItem()).hasProjectile(aProjectileType, rStack)) + && ((IProjectileItem) rStack.getItem()).hasProjectile(aProjectileType, rStack)) return updateItemStack(rStack); } return null; @@ -2542,14 +2500,14 @@ public class GT_Utility { return (page << 7) + (startIndex + blockMeta); } throw new RuntimeException( - "Index out of range: [" + page - + "][" - + startIndex - + "+" - + blockMeta - + "=" - + (startIndex + blockMeta) - + "]"); + "Index out of range: [" + page + + "][" + + startIndex + + "+" + + blockMeta + + "=" + + (startIndex + blockMeta) + + "]"); } /** @@ -2584,9 +2542,9 @@ public class GT_Utility { } } throw new RuntimeException( - "Probably missing mapping or different texture class used for: " + blockFromBlock.getUnlocalizedName() - + " meta:" - + metaFromBlock); + "Probably missing mapping or different texture class used for: " + blockFromBlock.getUnlocalizedName() + + " meta:" + + metaFromBlock); } /** @@ -2741,8 +2699,8 @@ public class GT_Utility { public static float getHeatDamageFromItem(ItemStack aStack) { ItemData tData = GT_OreDictUnificator.getItemData(aStack); return tData == null ? 0 - : (tData.mPrefix == null ? 0 : tData.mPrefix.mHeatDamage) - + (tData.hasValidMaterialData() ? tData.mMaterial.mMaterial.mHeatDamage : 0); + : (tData.mPrefix == null ? 0 : tData.mPrefix.mHeatDamage) + + (tData.hasValidMaterialData() ? tData.mMaterial.mMaterial.mHeatDamage : 0); } public static int getRadioactivityLevel(ItemStack aStack) { @@ -2770,8 +2728,8 @@ public class GT_Utility { private static boolean applyHeatDamage(EntityLivingBase aEntity, float aDamage, DamageSource source) { if (aDamage > 0 && aEntity != null - && aEntity.getActivePotionEffect(Potion.fireResistance) == null - && !isWearingFullHeatHazmat(aEntity)) { + && aEntity.getActivePotionEffect(Potion.fireResistance) == null + && !isWearingFullHeatHazmat(aEntity)) { aEntity.attackEntityFrom(source, aDamage); return true; } @@ -2797,58 +2755,57 @@ public class GT_Utility { public static boolean applyRadioactivity(EntityLivingBase aEntity, int aLevel, int aAmountOfItems) { if (aLevel > 0 && aEntity != null - && aEntity.getCreatureAttribute() != EnumCreatureAttribute.UNDEAD - && aEntity.getCreatureAttribute() != EnumCreatureAttribute.ARTHROPOD - && !isWearingFullRadioHazmat(aEntity)) { + && aEntity.getCreatureAttribute() != EnumCreatureAttribute.UNDEAD + && aEntity.getCreatureAttribute() != EnumCreatureAttribute.ARTHROPOD + && !isWearingFullRadioHazmat(aEntity)) { PotionEffect tEffect = null; aEntity.addPotionEffect( - new PotionEffect( - Potion.moveSlowdown.id, - aLevel * 140 * aAmountOfItems + Math.max( - 0, - ((tEffect = aEntity.getActivePotionEffect(Potion.moveSlowdown)) == null ? 0 - : tEffect.getDuration())), - Math.max(0, (5 * aLevel) / 7))); + new PotionEffect( + Potion.moveSlowdown.id, + aLevel * 140 * aAmountOfItems + Math.max( + 0, + ((tEffect = aEntity.getActivePotionEffect(Potion.moveSlowdown)) == null ? 0 + : tEffect.getDuration())), + Math.max(0, (5 * aLevel) / 7))); aEntity.addPotionEffect( - new PotionEffect( - Potion.digSlowdown.id, - aLevel * 150 * aAmountOfItems + Math.max( - 0, - ((tEffect = aEntity.getActivePotionEffect(Potion.digSlowdown)) == null ? 0 - : tEffect.getDuration())), - Math.max(0, (5 * aLevel) / 7))); + new PotionEffect( + Potion.digSlowdown.id, + aLevel * 150 * aAmountOfItems + Math.max( + 0, + ((tEffect = aEntity.getActivePotionEffect(Potion.digSlowdown)) == null ? 0 + : tEffect.getDuration())), + Math.max(0, (5 * aLevel) / 7))); aEntity.addPotionEffect( - new PotionEffect( - Potion.confusion.id, - aLevel * 130 * aAmountOfItems + Math.max( - 0, - ((tEffect = aEntity.getActivePotionEffect(Potion.confusion)) == null ? 0 - : tEffect.getDuration())), - Math.max(0, (5 * aLevel) / 7))); + new PotionEffect( + Potion.confusion.id, + aLevel * 130 * aAmountOfItems + Math.max( + 0, + ((tEffect = aEntity.getActivePotionEffect(Potion.confusion)) == null ? 0 + : tEffect.getDuration())), + Math.max(0, (5 * aLevel) / 7))); aEntity.addPotionEffect( - new PotionEffect( - Potion.weakness.id, - aLevel * 150 * aAmountOfItems + Math.max( - 0, - ((tEffect = aEntity.getActivePotionEffect(Potion.weakness)) == null ? 0 - : tEffect.getDuration())), - Math.max(0, (5 * aLevel) / 7))); + new PotionEffect( + Potion.weakness.id, + aLevel * 150 * aAmountOfItems + Math.max( + 0, + ((tEffect = aEntity.getActivePotionEffect(Potion.weakness)) == null ? 0 + : tEffect.getDuration())), + Math.max(0, (5 * aLevel) / 7))); aEntity.addPotionEffect( - new PotionEffect( - Potion.hunger.id, - aLevel * 130 * aAmountOfItems + Math.max( - 0, - ((tEffect = aEntity.getActivePotionEffect(Potion.hunger)) == null ? 0 - : tEffect.getDuration())), - Math.max(0, (5 * aLevel) / 7))); + new PotionEffect( + Potion.hunger.id, + aLevel * 130 * aAmountOfItems + Math.max( + 0, + ((tEffect = aEntity.getActivePotionEffect(Potion.hunger)) == null ? 0 : tEffect.getDuration())), + Math.max(0, (5 * aLevel) / 7))); aEntity.addPotionEffect( - new PotionEffect( - 24 /* IC2 Radiation */, - aLevel * 180 * aAmountOfItems + Math.max( - 0, - ((tEffect = aEntity.getActivePotionEffect(Potion.potionTypes[24])) == null ? 0 - : tEffect.getDuration())), - Math.max(0, (5 * aLevel) / 7))); + new PotionEffect( + 24 /* IC2 Radiation */, + aLevel * 180 * aAmountOfItems + Math.max( + 0, + ((tEffect = aEntity.getActivePotionEffect(Potion.potionTypes[24])) == null ? 0 + : tEffect.getDuration())), + Math.max(0, (5 * aLevel) / 7))); return true; } return false; @@ -3027,12 +2984,12 @@ public class GT_Utility { public static boolean isStackInList(GT_ItemStack aStack, Collection aList) { return aStack != null - && (aList.contains(aStack) || aList.contains(new GT_ItemStack(aStack.mItem, aStack.mStackSize, W))); + && (aList.contains(aStack) || aList.contains(new GT_ItemStack(aStack.mItem, aStack.mStackSize, W))); } public static boolean isStackInList(GT_ItemStack2 aStack, Set aList) { return aStack != null - && (aList.contains(aStack) || aList.contains(new GT_ItemStack2(aStack.mItem, aStack.mStackSize, W))); + && (aList.contains(aStack) || aList.contains(new GT_ItemStack2(aStack.mItem, aStack.mStackSize, W))); } /** @@ -3047,9 +3004,9 @@ public class GT_Utility { public static > LinkedHashMap sortMapByValuesAcending(Map map) { return map.entrySet() - .stream() - .sorted(Entry.comparingByValue()) - .collect(CollectorUtils.entriesToMap(LinkedHashMap::new)); + .stream() + .sorted(Entry.comparingByValue()) + .collect(CollectorUtils.entriesToMap(LinkedHashMap::new)); } /** @@ -3059,7 +3016,7 @@ public class GT_Utility { List> tEntrySet = new LinkedList<>(aMap.entrySet()); tEntrySet.sort((aValue1, aValue2) -> { return aValue2.getValue() - .compareTo(aValue1.getValue()); // FB: RV - RV_NEGATING_RESULT_OF_COMPARETO + .compareTo(aValue1.getValue()); // FB: RV - RV_NEGATING_RESULT_OF_COMPARETO }); LinkedHashMap rMap = new LinkedHashMap<>(); for (Map.Entry tEntry : tEntrySet) rMap.put(tEntry.getKey(), tEntry.getValue()); @@ -3079,9 +3036,9 @@ public class GT_Utility { */ public static long translateMaterialToAmount(long aMaterialAmount, long aAmountPerUnit, boolean aRoundUp) { return Math.max( - 0, - ((aMaterialAmount * aAmountPerUnit) / M) - + (aRoundUp && (aMaterialAmount * aAmountPerUnit) % M > 0 ? 1 : 0)); + 0, + ((aMaterialAmount * aAmountPerUnit) / M) + + (aRoundUp && (aMaterialAmount * aAmountPerUnit) % M > 0 ? 1 : 0)); } /** @@ -3091,11 +3048,11 @@ public class GT_Utility { if (aDimensionID <= 1 && aDimensionID >= -1 && !GregTech_API.sDimensionalList.contains(aDimensionID)) return true; return !GregTech_API.sDimensionalList.contains(aDimensionID) - && DimensionManager.isDimensionRegistered(aDimensionID); + && DimensionManager.isDimensionRegistered(aDimensionID); } public static boolean moveEntityToDimensionAtCoords(Entity entity, int aDimension, double aX, double aY, - double aZ) { + double aZ) { // Credit goes to BrandonCore Author :!: if (entity == null || entity.worldObj.isRemote) return false; @@ -3104,8 +3061,8 @@ public class GT_Utility { World startWorld = entity.worldObj; WorldServer destinationWorld = FMLCommonHandler.instance() - .getMinecraftServerInstance() - .worldServerForDimension(aDimension); + .getMinecraftServerInstance() + .worldServerForDimension(aDimension); if (destinationWorld == null) { return false; @@ -3120,23 +3077,23 @@ public class GT_Utility { player.closeScreen(); // added player.dimension = aDimension; player.playerNetServerHandler.sendPacket( - new S07PacketRespawn( - player.dimension, - player.worldObj.difficultySetting, - destinationWorld.getWorldInfo() - .getTerrainType(), - player.theItemInWorldManager.getGameType())); + new S07PacketRespawn( + player.dimension, + player.worldObj.difficultySetting, + destinationWorld.getWorldInfo() + .getTerrainType(), + player.theItemInWorldManager.getGameType())); ((WorldServer) startWorld).getPlayerManager() - .removePlayer(player); + .removePlayer(player); startWorld.playerEntities.remove(player); startWorld.updateAllPlayersSleepingFlag(); int i = entity.chunkCoordX; int j = entity.chunkCoordZ; if ((entity.addedToChunk) && (startWorld.getChunkProvider() - .chunkExists(i, j))) { + .chunkExists(i, j))) { startWorld.getChunkFromChunkCoords(i, j) - .removeEntity(entity); + .removeEntity(entity); startWorld.getChunkFromChunkCoords(i, j).isModified = true; } startWorld.loadedEntityList.remove(entity); @@ -3173,7 +3130,7 @@ public class GT_Utility { EntityPlayerMP player = (EntityPlayerMP) entity; if (interDimensional) { player.mcServer.getConfigurationManager() - .func_72375_a(player, destinationWorld); + .func_72375_a(player, destinationWorld); } player.playerNetServerHandler.setPlayerLocation(aX, aY, aZ, player.rotationYaw, player.rotationPitch); } @@ -3184,21 +3141,21 @@ public class GT_Utility { EntityPlayerMP player = (EntityPlayerMP) entity; player.theItemInWorldManager.setWorld(destinationWorld); player.mcServer.getConfigurationManager() - .updateTimeAndWeatherForPlayer(player, destinationWorld); + .updateTimeAndWeatherForPlayer(player, destinationWorld); player.mcServer.getConfigurationManager() - .syncPlayerInventory(player); + .syncPlayerInventory(player); for (PotionEffect potionEffect : player.getActivePotionEffects()) { player.playerNetServerHandler.sendPacket(new S1DPacketEntityEffect(player.getEntityId(), potionEffect)); } player.playerNetServerHandler.sendPacket( - new S1FPacketSetExperience(player.experience, player.experienceTotal, player.experienceLevel)); + new S1FPacketSetExperience(player.experience, player.experienceTotal, player.experienceLevel)); FMLCommonHandler.instance() - .firePlayerChangedDimensionEvent( - player, - startWorld.provider.dimensionId, - destinationWorld.provider.dimensionId); + .firePlayerChangedDimensionEvent( + player, + startWorld.provider.dimensionId, + destinationWorld.provider.dimensionId); } entity.setLocationAndAngles(aX, aY, aZ, entity.rotationYaw, entity.rotationPitch); @@ -3212,7 +3169,7 @@ public class GT_Utility { } public static int getCoordinateScan(ArrayList aList, EntityPlayer aPlayer, World aWorld, int aScanLevel, - int aX, int aY, int aZ, int aSide, float aClickX, float aClickY, float aClickZ) { + int aX, int aY, int aZ, int aSide, float aClickX, float aClickY, float aClickZ) { if (aList == null) return 0; ArrayList tList = new ArrayList<>(); @@ -3223,59 +3180,52 @@ public class GT_Utility { final Block tBlock = aWorld.getBlock(aX, aY, aZ); tList.add( - "----- X: " + EnumChatFormatting.AQUA - + formatNumbers(aX) - + EnumChatFormatting.RESET - + " Y: " - + EnumChatFormatting.AQUA - + formatNumbers(aY) - + EnumChatFormatting.RESET - + " Z: " - + EnumChatFormatting.AQUA - + formatNumbers(aZ) - + EnumChatFormatting.RESET - + " D: " - + EnumChatFormatting.AQUA - + aWorld.provider.dimensionId - + EnumChatFormatting.RESET - + " -----"); + "----- X: " + EnumChatFormatting.AQUA + + formatNumbers(aX) + + EnumChatFormatting.RESET + + " Y: " + + EnumChatFormatting.AQUA + + formatNumbers(aY) + + EnumChatFormatting.RESET + + " Z: " + + EnumChatFormatting.AQUA + + formatNumbers(aZ) + + EnumChatFormatting.RESET + + " D: " + + EnumChatFormatting.AQUA + + aWorld.provider.dimensionId + + EnumChatFormatting.RESET + + " -----"); try { if (tTileEntity instanceof IInventory) tList.add( - GT_Utility.trans("162", "Name: ") + EnumChatFormatting.BLUE - + ((IInventory) tTileEntity).getInventoryName() - + EnumChatFormatting.RESET - + GT_Utility.trans("163", " MetaData: ") - + EnumChatFormatting.AQUA - + aWorld.getBlockMetadata(aX, aY, aZ) - + EnumChatFormatting.RESET); + GT_Utility.trans("162", "Name: ") + EnumChatFormatting.BLUE + + ((IInventory) tTileEntity).getInventoryName() + + EnumChatFormatting.RESET + + GT_Utility.trans("163", " MetaData: ") + + EnumChatFormatting.AQUA + + aWorld.getBlockMetadata(aX, aY, aZ) + + EnumChatFormatting.RESET); else tList.add( - GT_Utility.trans("162", "Name: ") + EnumChatFormatting.BLUE - + tBlock.getUnlocalizedName() - + EnumChatFormatting.RESET - + GT_Utility.trans("163", " MetaData: ") - + EnumChatFormatting.AQUA - + aWorld.getBlockMetadata(aX, aY, aZ) - + EnumChatFormatting.RESET); + GT_Utility.trans("162", "Name: ") + EnumChatFormatting.BLUE + + tBlock.getUnlocalizedName() + + EnumChatFormatting.RESET + + GT_Utility.trans("163", " MetaData: ") + + EnumChatFormatting.AQUA + + aWorld.getBlockMetadata(aX, aY, aZ) + + EnumChatFormatting.RESET); tList.add( - GT_Utility.trans("164", "Hardness: ") + EnumChatFormatting.YELLOW - + tBlock.getBlockHardness(aWorld, aX, aY, aZ) - + EnumChatFormatting.RESET - + GT_Utility.trans("165", " Blast Resistance: ") - + EnumChatFormatting.YELLOW - + tBlock.getExplosionResistance( - aPlayer, - aWorld, - aX, - aY, - aZ, - aPlayer.posX, - aPlayer.posY, - aPlayer.posZ) - + EnumChatFormatting.RESET); + GT_Utility.trans("164", "Hardness: ") + EnumChatFormatting.YELLOW + + tBlock.getBlockHardness(aWorld, aX, aY, aZ) + + EnumChatFormatting.RESET + + GT_Utility.trans("165", " Blast Resistance: ") + + EnumChatFormatting.YELLOW + + tBlock + .getExplosionResistance(aPlayer, aWorld, aX, aY, aZ, aPlayer.posX, aPlayer.posY, aPlayer.posZ) + + EnumChatFormatting.RESET); if (tBlock.isBeaconBase(aWorld, aX, aY, aZ, aX, aY + 1, aZ)) tList.add( - EnumChatFormatting.GOLD + GT_Utility.trans("166", "Is valid Beacon Pyramid Material") - + EnumChatFormatting.RESET); + EnumChatFormatting.GOLD + GT_Utility.trans("166", "Is valid Beacon Pyramid Material") + + EnumChatFormatting.RESET); } catch (Throwable e) { if (D1) e.printStackTrace(GT_Log.err); } @@ -3283,23 +3233,23 @@ public class GT_Utility { try { if (tTileEntity instanceof IFluidHandler) { rEUAmount += 500; - final FluidTankInfo[] tTanks = ((IFluidHandler) tTileEntity).getTankInfo( - ForgeDirection.getOrientation(aSide)); + final FluidTankInfo[] tTanks = ((IFluidHandler) tTileEntity) + .getTankInfo(ForgeDirection.getOrientation(aSide)); if (tTanks != null) for (byte i = 0; i < tTanks.length; i++) { tList.add( - GT_Utility.trans("167", "Tank ") + i - + ": " - + EnumChatFormatting.GREEN - + formatNumbers((tTanks[i].fluid == null ? 0 : tTanks[i].fluid.amount)) - + EnumChatFormatting.RESET - + " L / " - + EnumChatFormatting.YELLOW - + formatNumbers(tTanks[i].capacity) - + EnumChatFormatting.RESET - + " L " - + EnumChatFormatting.GOLD - + getFluidName(tTanks[i].fluid, true) - + EnumChatFormatting.RESET); + GT_Utility.trans("167", "Tank ") + i + + ": " + + EnumChatFormatting.GREEN + + formatNumbers((tTanks[i].fluid == null ? 0 : tTanks[i].fluid.amount)) + + EnumChatFormatting.RESET + + " L / " + + EnumChatFormatting.YELLOW + + formatNumbers(tTanks[i].capacity) + + EnumChatFormatting.RESET + + " L " + + EnumChatFormatting.GOLD + + getFluidName(tTanks[i].fluid, true) + + EnumChatFormatting.RESET); } } } catch (Throwable e) { @@ -3317,17 +3267,17 @@ public class GT_Utility { if (tTileEntity instanceof ic2.api.reactor.IReactor) { rEUAmount += 500; tList.add( - GT_Utility.trans("168", "Heat: ") + EnumChatFormatting.GREEN - + formatNumbers(((ic2.api.reactor.IReactor) tTileEntity).getHeat()) - + EnumChatFormatting.RESET - + " / " - + EnumChatFormatting.YELLOW - + formatNumbers(((ic2.api.reactor.IReactor) tTileEntity).getMaxHeat()) - + EnumChatFormatting.RESET); + GT_Utility.trans("168", "Heat: ") + EnumChatFormatting.GREEN + + formatNumbers(((ic2.api.reactor.IReactor) tTileEntity).getHeat()) + + EnumChatFormatting.RESET + + " / " + + EnumChatFormatting.YELLOW + + formatNumbers(((ic2.api.reactor.IReactor) tTileEntity).getMaxHeat()) + + EnumChatFormatting.RESET); tList.add( - GT_Utility.trans("169", "HEM: ") + EnumChatFormatting.YELLOW - + ((ic2.api.reactor.IReactor) tTileEntity).getHeatEffectModifier() - + EnumChatFormatting.RESET + GT_Utility.trans("169", "HEM: ") + EnumChatFormatting.YELLOW + + ((ic2.api.reactor.IReactor) tTileEntity).getHeatEffectModifier() + + EnumChatFormatting.RESET /* * + GT_Utility.trans("170"," Base EU Output: ")/* + * ((ic2.api.reactor.IReactor)tTileEntity).getOutput() @@ -3342,9 +3292,9 @@ public class GT_Utility { if (tAlignment != null) { rEUAmount += 100; tList.add( - GT_Utility.trans("219", "Extended Facing: ") + EnumChatFormatting.GREEN - + tAlignment.getExtendedFacing() - + EnumChatFormatting.RESET); + GT_Utility.trans("219", "Extended Facing: ") + EnumChatFormatting.GREEN + + tAlignment.getExtendedFacing() + + EnumChatFormatting.RESET); } } } catch (Throwable e) { @@ -3354,22 +3304,20 @@ public class GT_Utility { if (tTileEntity instanceof ic2.api.tile.IWrenchable) { rEUAmount += 100; tList.add( - GT_Utility.trans("171", "Facing: ") + EnumChatFormatting.GREEN - + ((ic2.api.tile.IWrenchable) tTileEntity).getFacing() - + EnumChatFormatting.RESET - + GT_Utility.trans("172", " / Chance: ") - + EnumChatFormatting.YELLOW - + (((ic2.api.tile.IWrenchable) tTileEntity).getWrenchDropRate() * 100) - + EnumChatFormatting.RESET - + "%"); + GT_Utility.trans("171", "Facing: ") + EnumChatFormatting.GREEN + + ((ic2.api.tile.IWrenchable) tTileEntity).getFacing() + + EnumChatFormatting.RESET + + GT_Utility.trans("172", " / Chance: ") + + EnumChatFormatting.YELLOW + + (((ic2.api.tile.IWrenchable) tTileEntity).getWrenchDropRate() * 100) + + EnumChatFormatting.RESET + + "%"); tList.add( - ((ic2.api.tile.IWrenchable) tTileEntity).wrenchCanRemove(aPlayer) - ? EnumChatFormatting.GREEN - + GT_Utility.trans("173", "You can remove this with a Wrench") - + EnumChatFormatting.RESET - : EnumChatFormatting.RED - + GT_Utility.trans("174", "You can NOT remove this with a Wrench") - + EnumChatFormatting.RESET); + ((ic2.api.tile.IWrenchable) tTileEntity).wrenchCanRemove(aPlayer) + ? EnumChatFormatting.GREEN + GT_Utility.trans("173", "You can remove this with a Wrench") + + EnumChatFormatting.RESET + : EnumChatFormatting.RED + GT_Utility.trans("174", "You can NOT remove this with a Wrench") + + EnumChatFormatting.RESET); } } catch (Throwable e) { if (D1) e.printStackTrace(GT_Log.err); @@ -3378,9 +3326,9 @@ public class GT_Utility { if (tTileEntity instanceof ic2.api.energy.tile.IEnergyConductor) { rEUAmount += 200; tList.add( - GT_Utility.trans("175", "Conduction Loss: ") + EnumChatFormatting.YELLOW - + ((ic2.api.energy.tile.IEnergyConductor) tTileEntity).getConductionLoss() - + EnumChatFormatting.RESET); + GT_Utility.trans("175", "Conduction Loss: ") + EnumChatFormatting.YELLOW + + ((ic2.api.energy.tile.IEnergyConductor) tTileEntity).getConductionLoss() + + EnumChatFormatting.RESET); } } catch (Throwable e) { if (D1) e.printStackTrace(GT_Log.err); @@ -3389,14 +3337,14 @@ public class GT_Utility { if (tTileEntity instanceof ic2.api.tile.IEnergyStorage) { rEUAmount += 200; tList.add( - GT_Utility.trans("176", "Contained Energy: ") + EnumChatFormatting.YELLOW - + formatNumbers(((ic2.api.tile.IEnergyStorage) tTileEntity).getStored()) - + EnumChatFormatting.RESET - + " EU / " - + EnumChatFormatting.YELLOW - + formatNumbers(((ic2.api.tile.IEnergyStorage) tTileEntity).getCapacity()) - + EnumChatFormatting.RESET - + " EU"); + GT_Utility.trans("176", "Contained Energy: ") + EnumChatFormatting.YELLOW + + formatNumbers(((ic2.api.tile.IEnergyStorage) tTileEntity).getStored()) + + EnumChatFormatting.RESET + + " EU / " + + EnumChatFormatting.YELLOW + + formatNumbers(((ic2.api.tile.IEnergyStorage) tTileEntity).getCapacity()) + + EnumChatFormatting.RESET + + " EU"); } } catch (Throwable e) { if (D1) e.printStackTrace(GT_Log.err); @@ -3405,8 +3353,8 @@ public class GT_Utility { if (tTileEntity instanceof IUpgradableMachine) { rEUAmount += 500; if (((IUpgradableMachine) tTileEntity).hasMufflerUpgrade()) tList.add( - EnumChatFormatting.GREEN + GT_Utility.trans("177", "Has Muffler Upgrade") - + EnumChatFormatting.RESET); + EnumChatFormatting.GREEN + GT_Utility.trans("177", "Has Muffler Upgrade") + + EnumChatFormatting.RESET); } } catch (Throwable e) { if (D1) e.printStackTrace(GT_Log.err); @@ -3422,13 +3370,13 @@ public class GT_Utility { rEUAmount += 400; int tValue = 0; if (0 < (tValue = ((IMachineProgress) tTileEntity).getMaxProgress())) tList.add( - GT_Utility.trans("178", "Progress/Load: ") + EnumChatFormatting.GREEN - + formatNumbers(((IMachineProgress) tTileEntity).getProgress()) - + EnumChatFormatting.RESET - + " / " - + EnumChatFormatting.YELLOW - + formatNumbers(tValue) - + EnumChatFormatting.RESET); + GT_Utility.trans("178", "Progress/Load: ") + EnumChatFormatting.GREEN + + formatNumbers(((IMachineProgress) tTileEntity).getProgress()) + + EnumChatFormatting.RESET + + " / " + + EnumChatFormatting.YELLOW + + formatNumbers(tValue) + + EnumChatFormatting.RESET); } } catch (Throwable e) { if (D1) e.printStackTrace(GT_Log.err); @@ -3437,7 +3385,7 @@ public class GT_Utility { if (tTileEntity instanceof ICoverable) { rEUAmount += 300; final String tString = ((ICoverable) tTileEntity).getCoverInfoAtSide((byte) aSide) - .getBehaviorDescription(); + .getBehaviorDescription(); if (tString != null && !tString.equals(E)) tList.add(tString); } } catch (Throwable e) { @@ -3445,40 +3393,40 @@ public class GT_Utility { } try { if (tTileEntity instanceof IBasicEnergyContainer - && ((IBasicEnergyContainer) tTileEntity).getEUCapacity() > 0) { + && ((IBasicEnergyContainer) tTileEntity).getEUCapacity() > 0) { tList.add( - GT_Utility.trans("179", "Max IN: ") + EnumChatFormatting.RED - + formatNumbers(((IBasicEnergyContainer) tTileEntity).getInputVoltage()) - + " (" - + GT_Values.VN[getTier(((IBasicEnergyContainer) tTileEntity).getInputVoltage())] - + ") " - + EnumChatFormatting.RESET - + GT_Utility.trans("182", " EU at ") - + EnumChatFormatting.RED - + formatNumbers(((IBasicEnergyContainer) tTileEntity).getInputAmperage()) - + EnumChatFormatting.RESET - + GT_Utility.trans("183", " A")); + GT_Utility.trans("179", "Max IN: ") + EnumChatFormatting.RED + + formatNumbers(((IBasicEnergyContainer) tTileEntity).getInputVoltage()) + + " (" + + GT_Values.VN[getTier(((IBasicEnergyContainer) tTileEntity).getInputVoltage())] + + ") " + + EnumChatFormatting.RESET + + GT_Utility.trans("182", " EU at ") + + EnumChatFormatting.RED + + formatNumbers(((IBasicEnergyContainer) tTileEntity).getInputAmperage()) + + EnumChatFormatting.RESET + + GT_Utility.trans("183", " A")); tList.add( - GT_Utility.trans("181", "Max OUT: ") + EnumChatFormatting.RED - + formatNumbers(((IBasicEnergyContainer) tTileEntity).getOutputVoltage()) - + " (" - + GT_Values.VN[getTier(((IBasicEnergyContainer) tTileEntity).getOutputVoltage())] - + ") " - + EnumChatFormatting.RESET - + GT_Utility.trans("182", " EU at ") - + EnumChatFormatting.RED - + formatNumbers(((IBasicEnergyContainer) tTileEntity).getOutputAmperage()) - + EnumChatFormatting.RESET - + GT_Utility.trans("183", " A")); + GT_Utility.trans("181", "Max OUT: ") + EnumChatFormatting.RED + + formatNumbers(((IBasicEnergyContainer) tTileEntity).getOutputVoltage()) + + " (" + + GT_Values.VN[getTier(((IBasicEnergyContainer) tTileEntity).getOutputVoltage())] + + ") " + + EnumChatFormatting.RESET + + GT_Utility.trans("182", " EU at ") + + EnumChatFormatting.RED + + formatNumbers(((IBasicEnergyContainer) tTileEntity).getOutputAmperage()) + + EnumChatFormatting.RESET + + GT_Utility.trans("183", " A")); tList.add( - GT_Utility.trans("184", "Energy: ") + EnumChatFormatting.GREEN - + formatNumbers(((IBasicEnergyContainer) tTileEntity).getStoredEU()) - + EnumChatFormatting.RESET - + " EU / " - + EnumChatFormatting.YELLOW - + formatNumbers(((IBasicEnergyContainer) tTileEntity).getEUCapacity()) - + EnumChatFormatting.RESET - + " EU"); + GT_Utility.trans("184", "Energy: ") + EnumChatFormatting.GREEN + + formatNumbers(((IBasicEnergyContainer) tTileEntity).getStoredEU()) + + EnumChatFormatting.RESET + + " EU / " + + EnumChatFormatting.YELLOW + + formatNumbers(((IBasicEnergyContainer) tTileEntity).getEUCapacity()) + + EnumChatFormatting.RESET + + " EU"); } } catch (Throwable e) { if (D1) e.printStackTrace(GT_Log.err); @@ -3486,16 +3434,16 @@ public class GT_Utility { try { if (tTileEntity instanceof IGregTechTileEntity) { tList.add( - GT_Utility.trans("186", "Owned by: ") + EnumChatFormatting.BLUE - + ((IGregTechTileEntity) tTileEntity).getOwnerName() - + EnumChatFormatting.RESET); + GT_Utility.trans("186", "Owned by: ") + EnumChatFormatting.BLUE + + ((IGregTechTileEntity) tTileEntity).getOwnerName() + + EnumChatFormatting.RESET); } } catch (Throwable e) { if (D1) e.printStackTrace(GT_Log.err); } try { if (tTileEntity instanceof IGregTechDeviceInformation - && ((IGregTechDeviceInformation) tTileEntity).isGivingInformation()) { + && ((IGregTechDeviceInformation) tTileEntity).isGivingInformation()) { tList.addAll(Arrays.asList(((IGregTechDeviceInformation) tTileEntity).getInfoData())); } } catch (Throwable e) { @@ -3507,41 +3455,41 @@ public class GT_Utility { if (crop.getScanLevel() < 4) crop.setScanLevel((byte) 4); if (crop.getCrop() != null) { tList.add( - GT_Utility.trans("187", "Type -- Crop-Name: ") + crop.getCrop() - .name() - + GT_Utility.trans("188", " Growth: ") - + crop.getGrowth() - + GT_Utility.trans("189", " Gain: ") - + crop.getGain() - + GT_Utility.trans("190", " Resistance: ") - + crop.getResistance()); + GT_Utility.trans("187", "Type -- Crop-Name: ") + crop.getCrop() + .name() + + GT_Utility.trans("188", " Growth: ") + + crop.getGrowth() + + GT_Utility.trans("189", " Gain: ") + + crop.getGain() + + GT_Utility.trans("190", " Resistance: ") + + crop.getResistance()); } tList.add( - GT_Utility.trans("191", "Plant -- Fertilizer: ") + crop.getNutrientStorage() - + GT_Utility.trans("192", " Water: ") - + crop.getHydrationStorage() - + GT_Utility.trans("193", " Weed-Ex: ") - + crop.getWeedExStorage() - + GT_Utility.trans("194", " Scan-Level: ") - + crop.getScanLevel()); + GT_Utility.trans("191", "Plant -- Fertilizer: ") + crop.getNutrientStorage() + + GT_Utility.trans("192", " Water: ") + + crop.getHydrationStorage() + + GT_Utility.trans("193", " Weed-Ex: ") + + crop.getWeedExStorage() + + GT_Utility.trans("194", " Scan-Level: ") + + crop.getScanLevel()); tList.add( - GT_Utility.trans("195", "Environment -- Nutrients: ") + crop.getNutrients() - + GT_Utility.trans("196", " Humidity: ") - + crop.getHumidity() - + GT_Utility.trans("197", " Air-Quality: ") - + crop.getAirQuality()); + GT_Utility.trans("195", "Environment -- Nutrients: ") + crop.getNutrients() + + GT_Utility.trans("196", " Humidity: ") + + crop.getHumidity() + + GT_Utility.trans("197", " Air-Quality: ") + + crop.getAirQuality()); if (crop.getCrop() != null) { final StringBuilder tStringB = new StringBuilder(); for (String tAttribute : crop.getCrop() - .attributes()) { + .attributes()) { tStringB.append(", ") - .append(tAttribute); + .append(tAttribute); } final String tString = tStringB.toString(); tList.add(GT_Utility.trans("198", "Attributes:") + tString.replaceFirst(",", E)); tList.add( - GT_Utility.trans("199", "Discovered by: ") + crop.getCrop() - .discoveredBy()); + GT_Utility.trans("199", "Discovered by: ") + crop.getCrop() + .discoveredBy()); } } } catch (Throwable e) { @@ -3566,33 +3514,33 @@ public class GT_Utility { if (aPlayer.capabilities.isCreativeMode) { final FluidStack tFluid = undergroundOilReadInformation(currentChunk); // -# to only read if (tFluid != null) tList.add( - EnumChatFormatting.GOLD + tFluid.getLocalizedName() - + EnumChatFormatting.RESET - + ": " - + EnumChatFormatting.YELLOW - + formatNumbers(tFluid.amount) - + EnumChatFormatting.RESET - + " L"); + EnumChatFormatting.GOLD + tFluid.getLocalizedName() + + EnumChatFormatting.RESET + + ": " + + EnumChatFormatting.YELLOW + + formatNumbers(tFluid.amount) + + EnumChatFormatting.RESET + + " L"); else tList.add( - EnumChatFormatting.GOLD + GT_Utility.trans("201", "Nothing") - + EnumChatFormatting.RESET - + ": " - + EnumChatFormatting.YELLOW - + '0' - + EnumChatFormatting.RESET - + " L"); + EnumChatFormatting.GOLD + GT_Utility.trans("201", "Nothing") + + EnumChatFormatting.RESET + + ": " + + EnumChatFormatting.YELLOW + + '0' + + EnumChatFormatting.RESET + + " L"); } // if(aPlayer.capabilities.isCreativeMode){ if (GT_Pollution.hasPollution(currentChunk)) { tList.add( - GT_Utility.trans("202", "Pollution in Chunk: ") + EnumChatFormatting.RED - + formatNumbers(GT_Pollution.getPollution(currentChunk)) - + EnumChatFormatting.RESET - + GT_Utility.trans("203", " gibbl")); + GT_Utility.trans("202", "Pollution in Chunk: ") + EnumChatFormatting.RED + + formatNumbers(GT_Pollution.getPollution(currentChunk)) + + EnumChatFormatting.RESET + + GT_Utility.trans("203", " gibbl")); } else { tList.add( - EnumChatFormatting.GREEN + GT_Utility.trans("204", "No Pollution in Chunk! HAYO!") - + EnumChatFormatting.RESET); + EnumChatFormatting.GREEN + GT_Utility.trans("204", "No Pollution in Chunk! HAYO!") + + EnumChatFormatting.RESET); } try { @@ -3606,19 +3554,19 @@ public class GT_Utility { } final BlockScanningEvent tEvent = new BlockScanningEvent( - aWorld, - aPlayer, - aX, - aY, - aZ, - (byte) aSide, - aScanLevel, - tBlock, - tTileEntity, - tList, - aClickX, - aClickY, - aClickZ); + aWorld, + aPlayer, + aX, + aY, + aZ, + (byte) aSide, + aScanLevel, + tBlock, + tTileEntity, + tList, + aClickX, + aClickY, + aClickZ); tEvent.mEUCost = rEUAmount; MinecraftForge.EVENT_BUS.post(tEvent); if (!tEvent.isCanceled()) aList.addAll(tList); @@ -3746,9 +3694,9 @@ public class GT_Utility { * there's no creative or 111 stack. */ public static boolean consumeItems(EntityPlayer player, ItemStack stack, gregtech.api.enums.Materials mat, - int count) { + int count) { if (stack != null && GT_OreDictUnificator.getItemData(stack).mMaterial.mMaterial == mat - && stack.stackSize >= count) { + && stack.stackSize >= count) { if ((!player.capabilities.isCreativeMode) && (stack.stackSize != 111)) stack.stackSize -= count; return true; } @@ -3776,14 +3724,14 @@ public class GT_Utility { public static float getBlockHardnessAt(World aWorld, int aX, int aY, int aZ) { return aWorld.getBlock(aX, aY, aZ) - .getBlockHardness(aWorld, aX, aY, aZ); + .getBlockHardness(aWorld, aX, aY, aZ); } public static FakePlayer getFakePlayer(IGregTechTileEntity aBaseMetaTileEntity) { if (aBaseMetaTileEntity.getWorld() instanceof WorldServer) { return FakePlayerFactory.get( - (WorldServer) aBaseMetaTileEntity.getWorld(), - new GameProfile(aBaseMetaTileEntity.getOwnerUuid(), aBaseMetaTileEntity.getOwnerName())); + (WorldServer) aBaseMetaTileEntity.getWorld(), + new GameProfile(aBaseMetaTileEntity.getOwnerUuid(), aBaseMetaTileEntity.getOwnerName())); } return null; } @@ -3792,13 +3740,13 @@ public class GT_Utility { if (aPlayer == null) return false; World aWorld = aPlayer.worldObj; BlockEvent.BreakEvent event = new BlockEvent.BreakEvent( - aX, - aY, - aZ, - aWorld, - aWorld.getBlock(aX, aY, aZ), - aWorld.getBlockMetadata(aX, aY, aZ), - aPlayer); + aX, + aY, + aZ, + aWorld, + aWorld.getBlock(aX, aY, aZ), + aWorld.getBlockMetadata(aX, aY, aZ), + aPlayer); MinecraftForge.EVENT_BUS.post(event); if (!event.isCanceled()) { if (!isSimulate) return aWorld.setBlockToAir(aX, aY, aZ); @@ -3808,13 +3756,11 @@ public class GT_Utility { } public static boolean setBlockByFakePlayer(FakePlayer aPlayer, int aX, int aY, int aZ, Block aBlock, int aMeta, - boolean isSimulate) { + boolean isSimulate) { if (aPlayer == null) return false; World aWorld = aPlayer.worldObj; - BlockEvent.PlaceEvent event = ForgeEventFactory.onPlayerBlockPlace( - aPlayer, - new BlockSnapshot(aWorld, aX, aY, aZ, aBlock, aMeta), - ForgeDirection.UNKNOWN); + BlockEvent.PlaceEvent event = ForgeEventFactory + .onPlayerBlockPlace(aPlayer, new BlockSnapshot(aWorld, aX, aY, aZ, aBlock, aMeta), ForgeDirection.UNKNOWN); if (!event.isCanceled()) { if (!isSimulate) return aWorld.setBlock(aX, aY, aZ, aBlock, aMeta, 3); return true; @@ -3842,8 +3788,7 @@ public class GT_Utility { for (String tKey : aNBT.func_150296_c()) { NBTBase tValue = aNBT.getTag(tKey); if (tValue == null || (tValue instanceof NBTPrimitive && ((NBTPrimitive) tValue).func_150291_c() == 0) - || (tValue instanceof NBTTagString - && isStringInvalid(((NBTTagString) tValue).func_150285_a_()))) + || (tValue instanceof NBTTagString && isStringInvalid(((NBTTagString) tValue).func_150285_a_()))) tTagsToRemove.add(tKey); } for (String tKey : tTagsToRemove) aNBT.removeTag(tKey); @@ -3912,31 +3857,31 @@ public class GT_Utility { } public static void setProspectionData(ItemStack aStack, int aX, int aY, int aZ, int aDim, FluidStack aFluid, - String... aOres) { + String... aOres) { NBTTagCompound tNBT = getNBT(aStack); StringBuilder tData = new StringBuilder(aX + "," + aY + "," + aZ + "," + aDim + ","); if (aFluid != null) tData.append(aFluid.amount) - .append(",") - .append(aFluid.getLocalizedName()) - .append(","); // TODO - // CHECK - // IF - // THAT - // /5000 - // is - // needed - // (Not - // needed) + .append(",") + .append(aFluid.getLocalizedName()) + .append(","); // TODO + // CHECK + // IF + // THAT + // /5000 + // is + // needed + // (Not + // needed) for (String tString : aOres) { tData.append(tString) - .append(","); + .append(","); } tNBT.setString("prospection", tData.toString()); setNBT(aStack, tNBT); } public static void setAdvancedProspectionData(byte aTier, ItemStack aStack, int aX, short aY, int aZ, int aDim, - ArrayList aOils, ArrayList aOres, int aRadius) { + ArrayList aOils, ArrayList aOres, int aRadius) { setBookTitle(aStack, "Raw Prospection Data"); @@ -3959,9 +3904,9 @@ public class GT_Utility { tNBT.setString("prospection_oils", joinListToString(tOilsTransformed)); String tOilsPosStr = "X: " + Math.floorDiv(aX, 16 * 8) * 16 * 8 - + " Z: " - + Math.floorDiv(aZ, 16 * 8) * 16 * 8 - + "\n"; + + " Z: " + + Math.floorDiv(aZ, 16 * 8) * 16 * 8 + + "\n"; int xOff = aX - Math.floorDiv(aX, 16 * 8) * 16 * 8; xOff = xOff / 16; int xOffRemain = 7 - xOff; @@ -3987,9 +3932,9 @@ public class GT_Utility { tOilsPosStr = tOilsPosStr.concat("--------\n"); } tOilsPosStr = tOilsPosStr.concat( - " X: " + (Math.floorDiv(aX, 16 * 8) + 1) * 16 * 8 - + " Z: " - + (Math.floorDiv(aZ, 16 * 8) + 1) * 16 * 8); // +1 oilfied to find bottomright of [5] + " X: " + (Math.floorDiv(aX, 16 * 8) + 1) * 16 * 8 + + " Z: " + + (Math.floorDiv(aZ, 16 * 8) + 1) * 16 * 8); // +1 oilfied to find bottomright of [5] tNBT.setString("prospection_oils_pos", tOilsPosStr); @@ -4007,35 +3952,35 @@ public class GT_Utility { String[] tDataArray = tData.split(","); if (tDataArray.length > 6) { tNBT.setString( - "author", - " Dim: " + tDataArray[3] - + "X: " - + tDataArray[0] - + " Y: " - + tDataArray[1] - + " Z: " - + tDataArray[2]); + "author", + " Dim: " + tDataArray[3] + + "X: " + + tDataArray[0] + + " Y: " + + tDataArray[1] + + " Z: " + + tDataArray[2]); NBTTagList tNBTList = new NBTTagList(); StringBuilder tOres = new StringBuilder(" Prospected Ores: "); for (int i = 6; tDataArray.length > i; i++) { tOres.append(tDataArray[i]) - .append(" "); + .append(" "); } tNBTList.appendTag( - new NBTTagString( - "Tier " + tTier - + " Prospecting Data From: X" - + tDataArray[0] - + " Z:" - + tDataArray[2] - + " Dim:" - + tDataArray[3] - + " Produces " - + tDataArray[4] - + "L " - + tDataArray[5] - + " " - + tOres)); + new NBTTagString( + "Tier " + tTier + + " Prospecting Data From: X" + + tDataArray[0] + + " Z:" + + tDataArray[2] + + " Dim:" + + tDataArray[3] + + " Produces " + + tDataArray[4] + + "L " + + tDataArray[5] + + " " + + tOres)); tNBT.setTag("pages", tNBTList); } } else { // advanced prospection data @@ -4052,15 +3997,15 @@ public class GT_Utility { NBTTagList tNBTList = new NBTTagList(); String tPageText = "Prospector report\n" + tPos - + "\n\n" - + "Oils: " - + (tOils != null ? tOils.length : 0) - + "\n\n" - + "Ores within " - + tRadius - + " blocks\n\n" - + "Location is center of orevein\n\n" - + "Check NEI to confirm orevein type"; + + "\n\n" + + "Oils: " + + (tOils != null ? tOils.length : 0) + + "\n\n" + + "Ores within " + + tRadius + + " blocks\n\n" + + "Location is center of orevein\n\n" + + "Check NEI to confirm orevein type"; tNBTList.appendTag(new NBTTagString(tPageText)); if (tOres != null) fillBookWithList(tNBTList, "Ores Found %s\n\n", "\n", 7, tOres); @@ -4068,16 +4013,16 @@ public class GT_Utility { if (tOils != null) fillBookWithList(tNBTList, "Oils%s\n\n", "\n", 9, tOils); tPageText = """ - Oil notes + Oil notes - Prospects from NW to SE 576 chunks(9 8x8 oilfields) - around and gives min-max amount + Prospects from NW to SE 576 chunks(9 8x8 oilfields) + around and gives min-max amount - [1][2][3] - [4][5][6] - [7][8][9] + [1][2][3] + [4][5][6] + [7][8][9] - [5] - Prospector in this 8x8 area"""; + [5] - Prospector in this 8x8 area"""; tNBTList.appendTag(new NBTTagString(tPageText)); tPageText = "Corners of [5] are \n" + tOilsPosStr + "\n" + "P - Prospector in 8x8 field"; @@ -4090,7 +4035,7 @@ public class GT_Utility { } public static void fillBookWithList(NBTTagList aBook, String aPageHeader, String aListDelimiter, - int aItemsPerPage, String[] list) { + int aItemsPerPage, String[] list) { String aPageFormatter = " %d/%d"; int tTotalPages = list.length / aItemsPerPage + (list.length % aItemsPerPage > 0 ? 1 : 0); int tPage = 0; @@ -4099,7 +4044,7 @@ public class GT_Utility { tPageText = new StringBuilder(); for (int i = tPage * aItemsPerPage; i < (tPage + 1) * aItemsPerPage && i < list.length; i += 1) tPageText.append((tPageText.length() == 0) ? "" : aListDelimiter) - .append(list[i]); + .append(list[i]); if (tPageText.length() > 0) { String tPageCounter = tTotalPages > 1 ? String.format(aPageFormatter, tPage + 1, tTotalPages) : ""; @@ -4153,9 +4098,9 @@ public class GT_Utility { try { for (int i = 0; i < nbttaglist.tagCount(); ++i) { short short1 = nbttaglist.getCompoundTagAt(i) - .getShort("id"); + .getShort("id"); short short2 = nbttaglist.getCompoundTagAt(i) - .getShort("lvl"); + .getShort("lvl"); if (Enchantment.enchantmentsList[short1] != null) aBullshitModifier.calculateModifier(Enchantment.enchantmentsList[short1], short2); } @@ -4223,7 +4168,7 @@ public class GT_Utility { public static String toSubscript(long no) { char[] chars = Long.toString(no) - .toCharArray(); + .toCharArray(); for (int i = 0; i < chars.length; i++) { chars[i] += 8272; } @@ -4232,24 +4177,24 @@ public class GT_Utility { public static boolean isPartOfMaterials(ItemStack aStack, Materials aMaterials) { return GT_OreDictUnificator.getAssociation(aStack) != null - && GT_OreDictUnificator.getAssociation(aStack).mMaterial.mMaterial.equals(aMaterials); + && GT_OreDictUnificator.getAssociation(aStack).mMaterial.mMaterial.equals(aMaterials); } public static boolean isPartOfOrePrefix(ItemStack aStack, OrePrefixes aPrefix) { return GT_OreDictUnificator.getAssociation(aStack) != null - && GT_OreDictUnificator.getAssociation(aStack).mPrefix.equals(aPrefix); + && GT_OreDictUnificator.getAssociation(aStack).mPrefix.equals(aPrefix); } public static final ImmutableSet ORE_BLOCK_CLASSES = ImmutableSet.of( - "com.github.bartimaeusnek.bartworks.system.material.BW_MetaGenerated_Ores", - "com.github.bartimaeusnek.bartworks.system.material.BW_MetaGenerated_SmallOres", - "gtPlusPlus.core.block.base.BlockBaseOre"); + "com.github.bartimaeusnek.bartworks.system.material.BW_MetaGenerated_Ores", + "com.github.bartimaeusnek.bartworks.system.material.BW_MetaGenerated_SmallOres", + "gtPlusPlus.core.block.base.BlockBaseOre"); public static boolean isOre(Block aBlock, int aMeta) { return (aBlock instanceof GT_Block_Ores_Abstract) || isOre(new ItemStack(aBlock, 1, aMeta)) - || ORE_BLOCK_CLASSES.contains( - aBlock.getClass() - .getName()); + || ORE_BLOCK_CLASSES.contains( + aBlock.getClass() + .getName()); } public static boolean isOre(ItemStack aStack) { @@ -4259,7 +4204,7 @@ public class GT_Utility { } for (int id : OreDictionary.getOreIDs(aStack)) { if (OreDictionary.getOreName(id) - .startsWith("ore")) { + .startsWith("ore")) { sOreTable.put(tItem, true); return true; } @@ -4277,8 +4222,8 @@ public class GT_Utility { // We take the modulus of the metadata by 16000 because that is the magic number to convert small ores to // regular ores. // See: GT_TileEntity_Ores.java - ItemData association = GT_OreDictUnificator.getAssociation( - new ItemStack(Item.getItemFromBlock(ore), 1, metaData % 16000)); + ItemData association = GT_OreDictUnificator + .getAssociation(new ItemStack(Item.getItemFromBlock(ore), 1, metaData % 16000)); if (association != null) { Supplier supplier = sOreToCobble.get(association.mPrefix); if (supplier != null) { @@ -4303,11 +4248,11 @@ public class GT_Utility { ItemStack stack = GT_OreDictUnificator.get(o, 1); if (stack == null) { Optional oStack = OreDictionary.getOres((String) o) - .stream() - .findAny(); + .stream() + .findAny(); if (oStack.isPresent()) { ItemStack copy = oStack.get() - .copy(); + .copy(); inputs.add(copy); } } else { @@ -4322,17 +4267,17 @@ public class GT_Utility { inputs.removeIf(x -> x.getItem() instanceof GT_MetaGenerated_Tool); return Optional.of( - new GT_Recipe( - false, - new ItemStack[] { output }, - inputs.toArray(new ItemStack[0]), - null, - null, - null, - null, - 300, - 30, - 0)); + new GT_Recipe( + false, + new ItemStack[] { output }, + inputs.toArray(new ItemStack[0]), + null, + null, + null, + null, + 300, + 30, + 0)); } public static Optional reverseShapedRecipe(ItemStack output, Object... aRecipe) { @@ -4372,11 +4317,11 @@ public class GT_Utility { ItemStack stack = GT_OreDictUnificator.get(dictName, null, amount, false, true); if (stack == null) { Optional oStack = OreDictionary.getOres(dictName) - .stream() - .findAny(); + .stream() + .findAny(); if (oStack.isPresent()) { ItemStack copy = oStack.get() - .copy(); + .copy(); copy.stackSize = amount; inputs.add(copy); } @@ -4394,17 +4339,17 @@ public class GT_Utility { inputs.removeIf(x -> x.getItem() instanceof GT_MetaGenerated_Tool); return Optional.of( - new GT_Recipe( - false, - new ItemStack[] { output }, - inputs.toArray(new ItemStack[0]), - null, - null, - null, - null, - 300, - 30, - 0)); + new GT_Recipe( + false, + new ItemStack[] { output }, + inputs.toArray(new ItemStack[0]), + null, + null, + null, + null, + 300, + 30, + 0)); } /** @@ -4421,8 +4366,8 @@ public class GT_Utility { public static long getNonnullElementCount(Object[] tArray) { return Arrays.stream(tArray) - .filter(Objects::nonNull) - .count(); + .filter(Objects::nonNull) + .count(); } public static int clamp(int val, int lo, int hi) { @@ -4456,8 +4401,8 @@ public class GT_Utility { public static int persistentHash(FluidStack aStack, boolean aUseStackSize, boolean aUseNBT) { if (aStack == null) return 0; int base = Objects.hashCode( - aStack.getFluid() - .getName()); + aStack.getFluid() + .getName()); if (aUseStackSize) base = base * 31 + aStack.amount; if (aUseNBT) base = base * 31 + Objects.hashCode(aStack.tag); @@ -4503,7 +4448,7 @@ public class GT_Utility { public static boolean isAnyIntegratedCircuit(ItemStack itemStack) { if (itemStack == null) return false; return itemStack.getItem() == ItemList.Circuit_Integrated.getItem() && 0 <= itemStack.getItemDamage() - && itemStack.getItemDamage() < 25; + && itemStack.getItemDamage() < 25; } public static byte convertRatioToRedstone(long used, long max, int threshold, boolean inverted) { @@ -4539,7 +4484,7 @@ public class GT_Utility { public static Stream streamCompounds(NBTTagList list) { if (list == null) return Stream.empty(); return IntStream.range(0, list.tagCount()) - .mapToObj(list::getCompoundTagAt); + .mapToObj(list::getCompoundTagAt); } public static boolean equals(ItemStack[] a, ItemStack[] b) { @@ -4557,13 +4502,13 @@ public class GT_Utility { * Guava ImmutableMap variant of Collectors.toMap. Optimized for serial streams. */ public static Collector> toImmutableMapSerial( - Function keyMapper, Function valueMapper) { + Function keyMapper, Function valueMapper) { // petty type inference cannot work out the correct type parameter return Collector., ImmutableMap>of( - ImmutableMap::builder, - (b, t) -> b.put(keyMapper.apply(t), valueMapper.apply(t)), - (b1, b2) -> b1.putAll(b2.build()), - ImmutableMap.Builder::build); + ImmutableMap::builder, + (b, t) -> b.put(keyMapper.apply(t), valueMapper.apply(t)), + (b1, b2) -> b1.putAll(b2.build()), + ImmutableMap.Builder::build); } public static boolean isArrayEmptyOrNull(Object[] arr) { @@ -4593,8 +4538,8 @@ public class GT_Utility { for (Collection list : lists) { if (list == null || list.isEmpty()) { colls1 = lists.stream() - .filter(c -> c != null && !c.isEmpty()) - .collect(Collectors.toList()); + .filter(c -> c != null && !c.isEmpty()) + .collect(Collectors.toList()); break; } } @@ -4610,8 +4555,8 @@ public class GT_Utility { @Override public Iterator iterator() { return colls.stream() - .flatMap(Collection::stream) - .iterator(); + .flatMap(Collection::stream) + .iterator(); } @Override @@ -4625,9 +4570,9 @@ public class GT_Utility { public static AutoValue_GT_Utility_ItemId create(NBTTagCompound tag) { return new AutoValue_GT_Utility_ItemId( - Item.getItemById(tag.getShort("item")), - tag.getShort("meta"), - tag.hasKey("tag", Constants.NBT.TAG_COMPOUND) ? tag.getCompoundTag("tag") : null); + Item.getItemById(tag.getShort("item")), + tag.getShort("meta"), + tag.hasKey("tag", Constants.NBT.TAG_COMPOUND) ? tag.getCompoundTag("tag") : null); } /** This method copies NBT, as it is mutable. */ @@ -4643,9 +4588,9 @@ public class GT_Utility { /** This method does not copy NBT in order to save time. Make sure not to mutate it! */ public static ItemId createNoCopy(ItemStack itemStack) { return new AutoValue_GT_Utility_ItemId( - itemStack.getItem(), - itemStack.getItemDamage(), - itemStack.getTagCompound()); + itemStack.getItem(), + itemStack.getItemDamage(), + itemStack.getTagCompound()); } protected abstract Item item(); diff --git a/src/main/java/gregtech/api/util/GT_UtilityClient.java b/src/main/java/gregtech/api/util/GT_UtilityClient.java index 2b4039a4c2..cf8ff6df86 100644 --- a/src/main/java/gregtech/api/util/GT_UtilityClient.java +++ b/src/main/java/gregtech/api/util/GT_UtilityClient.java @@ -14,10 +14,8 @@ import cpw.mods.fml.relauncher.ReflectionHelper; public class GT_UtilityClient { - private static final Field isDrawingField = ReflectionHelper.findField( - Tessellator.class, - "isDrawing", - "field_78415_z"); + private static final Field isDrawingField = ReflectionHelper + .findField(Tessellator.class, "isDrawing", "field_78415_z"); public static boolean isDrawing(Tessellator tess) { try { @@ -32,13 +30,12 @@ public class GT_UtilityClient { public static List getTooltip(ItemStack aStack, boolean aGuiStyle) { try { List tooltip = aStack.getTooltip( - Minecraft.getMinecraft().thePlayer, - Minecraft.getMinecraft().gameSettings.advancedItemTooltips); + Minecraft.getMinecraft().thePlayer, + Minecraft.getMinecraft().gameSettings.advancedItemTooltips); if (aGuiStyle) { tooltip.set( - 0, - (aStack.getRarity() == null ? EnumRarity.common : aStack.getRarity()).rarityColor - + tooltip.get(0)); + 0, + (aStack.getRarity() == null ? EnumRarity.common : aStack.getRarity()).rarityColor + tooltip.get(0)); for (int i = 1; i < tooltip.size(); i++) { tooltip.set(i, EnumChatFormatting.GRAY + tooltip.get(i)); } @@ -47,8 +44,8 @@ public class GT_UtilityClient { } catch (RuntimeException e) { // Collections.singletonList() can not be added to. we don't want that if (aGuiStyle) return Lists.newArrayList( - (aStack.getRarity() == null ? EnumRarity.common : aStack.getRarity()).rarityColor - + aStack.getDisplayName()); + (aStack.getRarity() == null ? EnumRarity.common : aStack.getRarity()).rarityColor + + aStack.getDisplayName()); return Lists.newArrayList(aStack.getDisplayName()); } } diff --git a/src/main/java/gregtech/api/util/IGT_HatchAdder.java b/src/main/java/gregtech/api/util/IGT_HatchAdder.java index dee0ac36ad..21796f172e 100644 --- a/src/main/java/gregtech/api/util/IGT_HatchAdder.java +++ b/src/main/java/gregtech/api/util/IGT_HatchAdder.java @@ -23,6 +23,6 @@ public interface IGT_HatchAdder { default IGT_HatchAdder orElse(IGT_HatchAdder fallback) { return (t, iGregTechTileEntity, aShort) -> IGT_HatchAdder.this.apply(t, iGregTechTileEntity, aShort) - || fallback.apply(t, iGregTechTileEntity, aShort); + || fallback.apply(t, iGregTechTileEntity, aShort); } } diff --git a/src/main/java/gregtech/api/util/LightingHelper.java b/src/main/java/gregtech/api/util/LightingHelper.java index 986ac9d3aa..ad4e00fb7a 100644 --- a/src/main/java/gregtech/api/util/LightingHelper.java +++ b/src/main/java/gregtech/api/util/LightingHelper.java @@ -228,11 +228,11 @@ public class LightingHelper { } else { renderBlocks.colorRedTopLeft = renderBlocks.colorRedBottomLeft = renderBlocks.colorRedBottomRight = renderBlocks.colorRedTopRight = rgb[0] - * lightness; + * lightness; renderBlocks.colorGreenTopLeft = renderBlocks.colorGreenBottomLeft = renderBlocks.colorGreenBottomRight = renderBlocks.colorGreenTopRight = rgb[1] - * lightness; + * lightness; renderBlocks.colorBlueTopLeft = renderBlocks.colorBlueBottomLeft = renderBlocks.colorBlueBottomRight = renderBlocks.colorBlueTopRight = rgb[2] - * lightness; + * lightness; renderBlocks.colorRedTopLeft *= aoTopLeft; renderBlocks.colorGreenTopLeft *= aoTopLeft; @@ -345,184 +345,160 @@ public class LightingHelper { float ratio = (float) (1.0F - renderBlocks.renderMinX); float aoLightValue = renderBlocks.blockAccess.getBlock(x - 1, y, z) - .getAmbientOcclusionLightValue(); - - renderBlocks.aoBrightnessXYNN = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - xOffset, - y - 1, - z); - renderBlocks.aoBrightnessXZNN = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - xOffset, - y, - z - 1); - renderBlocks.aoBrightnessXZNP = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - xOffset, - y, - z + 1); - renderBlocks.aoBrightnessXYNP = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - xOffset, - y + 1, - z); - renderBlocks.aoBrightnessXYZNNN = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - xOffset, - y - 1, - z - 1); - renderBlocks.aoBrightnessXYZNNP = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - xOffset, - y - 1, - z + 1); - renderBlocks.aoBrightnessXYZNPN = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - xOffset, - y + 1, - z - 1); - renderBlocks.aoBrightnessXYZNPP = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - xOffset, - y + 1, - z + 1); + .getAmbientOcclusionLightValue(); + + renderBlocks.aoBrightnessXYNN = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, xOffset, y - 1, z); + renderBlocks.aoBrightnessXZNN = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, xOffset, y, z - 1); + renderBlocks.aoBrightnessXZNP = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, xOffset, y, z + 1); + renderBlocks.aoBrightnessXYNP = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, xOffset, y + 1, z); + renderBlocks.aoBrightnessXYZNNN = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, xOffset, y - 1, z - 1); + renderBlocks.aoBrightnessXYZNNP = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, xOffset, y - 1, z + 1); + renderBlocks.aoBrightnessXYZNPN = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, xOffset, y + 1, z - 1); + renderBlocks.aoBrightnessXYZNPP = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, xOffset, y + 1, z + 1); renderBlocks.aoLightValueScratchXYNN = getMixedAo( - renderBlocks.blockAccess.getBlock(x - 1, y - 1, z) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x, y - 1, z) - .getAmbientOcclusionLightValue(), - ratio); + renderBlocks.blockAccess.getBlock(x - 1, y - 1, z) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x, y - 1, z) + .getAmbientOcclusionLightValue(), + ratio); renderBlocks.aoLightValueScratchXZNN = getMixedAo( - renderBlocks.blockAccess.getBlock(x - 1, y, z - 1) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x, y, z - 1) - .getAmbientOcclusionLightValue(), - ratio); + renderBlocks.blockAccess.getBlock(x - 1, y, z - 1) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x, y, z - 1) + .getAmbientOcclusionLightValue(), + ratio); renderBlocks.aoLightValueScratchXZNP = getMixedAo( - renderBlocks.blockAccess.getBlock(x - 1, y, z + 1) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x, y, z + 1) - .getAmbientOcclusionLightValue(), - ratio); + renderBlocks.blockAccess.getBlock(x - 1, y, z + 1) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x, y, z + 1) + .getAmbientOcclusionLightValue(), + ratio); renderBlocks.aoLightValueScratchXYNP = getMixedAo( - renderBlocks.blockAccess.getBlock(x - 1, y + 1, z) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x, y + 1, z) - .getAmbientOcclusionLightValue(), - ratio); + renderBlocks.blockAccess.getBlock(x - 1, y + 1, z) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x, y + 1, z) + .getAmbientOcclusionLightValue(), + ratio); renderBlocks.aoLightValueScratchXYZNNN = getMixedAo( - renderBlocks.blockAccess.getBlock(x - 1, y - 1, z - 1) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x, y - 1, z - 1) - .getAmbientOcclusionLightValue(), - ratio); + renderBlocks.blockAccess.getBlock(x - 1, y - 1, z - 1) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x, y - 1, z - 1) + .getAmbientOcclusionLightValue(), + ratio); renderBlocks.aoLightValueScratchXYZNNP = getMixedAo( - renderBlocks.blockAccess.getBlock(x - 1, y - 1, z + 1) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x, y - 1, z + 1) - .getAmbientOcclusionLightValue(), - ratio); + renderBlocks.blockAccess.getBlock(x - 1, y - 1, z + 1) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x, y - 1, z + 1) + .getAmbientOcclusionLightValue(), + ratio); renderBlocks.aoLightValueScratchXYZNPN = getMixedAo( - renderBlocks.blockAccess.getBlock(x - 1, y + 1, z - 1) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x, y + 1, z - 1) - .getAmbientOcclusionLightValue(), - ratio); + renderBlocks.blockAccess.getBlock(x - 1, y + 1, z - 1) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x, y + 1, z - 1) + .getAmbientOcclusionLightValue(), + ratio); renderBlocks.aoLightValueScratchXYZNPP = getMixedAo( - renderBlocks.blockAccess.getBlock(x - 1, y + 1, z + 1) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x, y + 1, z + 1) - .getAmbientOcclusionLightValue(), - ratio); + renderBlocks.blockAccess.getBlock(x - 1, y + 1, z + 1) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x, y + 1, z + 1) + .getAmbientOcclusionLightValue(), + ratio); int brightnessMixedXYZNPN = renderBlocks.getAoBrightness( - renderBlocks.aoBrightnessXZNN, - renderBlocks.aoBrightnessXYZNPN, - renderBlocks.aoBrightnessXYNP, - mixedBrightness); + renderBlocks.aoBrightnessXZNN, + renderBlocks.aoBrightnessXYZNPN, + renderBlocks.aoBrightnessXYNP, + mixedBrightness); int brightnessMixedXYZNNN = renderBlocks.getAoBrightness( - renderBlocks.aoBrightnessXYZNNN, - renderBlocks.aoBrightnessXYNN, - renderBlocks.aoBrightnessXZNN, - mixedBrightness); + renderBlocks.aoBrightnessXYZNNN, + renderBlocks.aoBrightnessXYNN, + renderBlocks.aoBrightnessXZNN, + mixedBrightness); int brightnessMixedXYZNNP = renderBlocks.getAoBrightness( - renderBlocks.aoBrightnessXYNN, - renderBlocks.aoBrightnessXYZNNP, - renderBlocks.aoBrightnessXZNP, - mixedBrightness); + renderBlocks.aoBrightnessXYNN, + renderBlocks.aoBrightnessXYZNNP, + renderBlocks.aoBrightnessXZNP, + mixedBrightness); int brightnessMixedXYZNPP = renderBlocks.getAoBrightness( - renderBlocks.aoBrightnessXZNP, - renderBlocks.aoBrightnessXYNP, - renderBlocks.aoBrightnessXYZNPP, - mixedBrightness); + renderBlocks.aoBrightnessXZNP, + renderBlocks.aoBrightnessXYNP, + renderBlocks.aoBrightnessXYZNPP, + mixedBrightness); float aoMixedXYZNPN = (renderBlocks.aoLightValueScratchXZNN + aoLightValue - + renderBlocks.aoLightValueScratchXYZNPN - + renderBlocks.aoLightValueScratchXYNP) / 4.0F; + + renderBlocks.aoLightValueScratchXYZNPN + + renderBlocks.aoLightValueScratchXYNP) / 4.0F; float aoMixedXYZNNN = (renderBlocks.aoLightValueScratchXYZNNN + renderBlocks.aoLightValueScratchXYNN - + renderBlocks.aoLightValueScratchXZNN - + aoLightValue) / 4.0F; + + renderBlocks.aoLightValueScratchXZNN + + aoLightValue) / 4.0F; float aoMixedXYZNNP = (renderBlocks.aoLightValueScratchXYNN + renderBlocks.aoLightValueScratchXYZNNP - + aoLightValue - + renderBlocks.aoLightValueScratchXZNP) / 4.0F; + + aoLightValue + + renderBlocks.aoLightValueScratchXZNP) / 4.0F; float aoMixedXYZNPP = (aoLightValue + renderBlocks.aoLightValueScratchXZNP - + renderBlocks.aoLightValueScratchXYNP - + renderBlocks.aoLightValueScratchXYZNPP) / 4.0F; + + renderBlocks.aoLightValueScratchXYNP + + renderBlocks.aoLightValueScratchXYZNPP) / 4.0F; aoTopLeft = (float) (aoMixedXYZNPP * renderBlocks.renderMaxY * renderBlocks.renderMaxZ - + aoMixedXYZNPN * renderBlocks.renderMaxY * (1.0D - renderBlocks.renderMaxZ) - + aoMixedXYZNNN * (1.0D - renderBlocks.renderMaxY) * (1.0D - renderBlocks.renderMaxZ) - + aoMixedXYZNNP * (1.0D - renderBlocks.renderMaxY) * renderBlocks.renderMaxZ); + + aoMixedXYZNPN * renderBlocks.renderMaxY * (1.0D - renderBlocks.renderMaxZ) + + aoMixedXYZNNN * (1.0D - renderBlocks.renderMaxY) * (1.0D - renderBlocks.renderMaxZ) + + aoMixedXYZNNP * (1.0D - renderBlocks.renderMaxY) * renderBlocks.renderMaxZ); aoBottomLeft = (float) (aoMixedXYZNPP * renderBlocks.renderMaxY * renderBlocks.renderMinZ - + aoMixedXYZNPN * renderBlocks.renderMaxY * (1.0D - renderBlocks.renderMinZ) - + aoMixedXYZNNN * (1.0D - renderBlocks.renderMaxY) * (1.0D - renderBlocks.renderMinZ) - + aoMixedXYZNNP * (1.0D - renderBlocks.renderMaxY) * renderBlocks.renderMinZ); + + aoMixedXYZNPN * renderBlocks.renderMaxY * (1.0D - renderBlocks.renderMinZ) + + aoMixedXYZNNN * (1.0D - renderBlocks.renderMaxY) * (1.0D - renderBlocks.renderMinZ) + + aoMixedXYZNNP * (1.0D - renderBlocks.renderMaxY) * renderBlocks.renderMinZ); aoBottomRight = (float) (aoMixedXYZNPP * renderBlocks.renderMinY * renderBlocks.renderMinZ - + aoMixedXYZNPN * renderBlocks.renderMinY * (1.0D - renderBlocks.renderMinZ) - + aoMixedXYZNNN * (1.0D - renderBlocks.renderMinY) * (1.0D - renderBlocks.renderMinZ) - + aoMixedXYZNNP * (1.0D - renderBlocks.renderMinY) * renderBlocks.renderMinZ); + + aoMixedXYZNPN * renderBlocks.renderMinY * (1.0D - renderBlocks.renderMinZ) + + aoMixedXYZNNN * (1.0D - renderBlocks.renderMinY) * (1.0D - renderBlocks.renderMinZ) + + aoMixedXYZNNP * (1.0D - renderBlocks.renderMinY) * renderBlocks.renderMinZ); aoTopRight = (float) (aoMixedXYZNPP * renderBlocks.renderMinY * renderBlocks.renderMaxZ - + aoMixedXYZNPN * renderBlocks.renderMinY * (1.0D - renderBlocks.renderMaxZ) - + aoMixedXYZNNN * (1.0D - renderBlocks.renderMinY) * (1.0D - renderBlocks.renderMaxZ) - + aoMixedXYZNNP * (1.0D - renderBlocks.renderMinY) * renderBlocks.renderMaxZ); + + aoMixedXYZNPN * renderBlocks.renderMinY * (1.0D - renderBlocks.renderMaxZ) + + aoMixedXYZNNN * (1.0D - renderBlocks.renderMinY) * (1.0D - renderBlocks.renderMaxZ) + + aoMixedXYZNNP * (1.0D - renderBlocks.renderMinY) * renderBlocks.renderMaxZ); renderBlocks.brightnessTopLeft = renderBlocks.mixAoBrightness( - brightnessMixedXYZNPP, - brightnessMixedXYZNPN, - brightnessMixedXYZNNN, - brightnessMixedXYZNNP, - renderBlocks.renderMaxY * renderBlocks.renderMaxZ, - renderBlocks.renderMaxY * (1.0D - renderBlocks.renderMaxZ), - (1.0D - renderBlocks.renderMaxY) * (1.0D - renderBlocks.renderMaxZ), - (1.0D - renderBlocks.renderMaxY) * renderBlocks.renderMaxZ); + brightnessMixedXYZNPP, + brightnessMixedXYZNPN, + brightnessMixedXYZNNN, + brightnessMixedXYZNNP, + renderBlocks.renderMaxY * renderBlocks.renderMaxZ, + renderBlocks.renderMaxY * (1.0D - renderBlocks.renderMaxZ), + (1.0D - renderBlocks.renderMaxY) * (1.0D - renderBlocks.renderMaxZ), + (1.0D - renderBlocks.renderMaxY) * renderBlocks.renderMaxZ); renderBlocks.brightnessBottomLeft = renderBlocks.mixAoBrightness( - brightnessMixedXYZNPP, - brightnessMixedXYZNPN, - brightnessMixedXYZNNN, - brightnessMixedXYZNNP, - renderBlocks.renderMaxY * renderBlocks.renderMinZ, - renderBlocks.renderMaxY * (1.0D - renderBlocks.renderMinZ), - (1.0D - renderBlocks.renderMaxY) * (1.0D - renderBlocks.renderMinZ), - (1.0D - renderBlocks.renderMaxY) * renderBlocks.renderMinZ); + brightnessMixedXYZNPP, + brightnessMixedXYZNPN, + brightnessMixedXYZNNN, + brightnessMixedXYZNNP, + renderBlocks.renderMaxY * renderBlocks.renderMinZ, + renderBlocks.renderMaxY * (1.0D - renderBlocks.renderMinZ), + (1.0D - renderBlocks.renderMaxY) * (1.0D - renderBlocks.renderMinZ), + (1.0D - renderBlocks.renderMaxY) * renderBlocks.renderMinZ); renderBlocks.brightnessBottomRight = renderBlocks.mixAoBrightness( - brightnessMixedXYZNPP, - brightnessMixedXYZNPN, - brightnessMixedXYZNNN, - brightnessMixedXYZNNP, - renderBlocks.renderMinY * renderBlocks.renderMinZ, - renderBlocks.renderMinY * (1.0D - renderBlocks.renderMinZ), - (1.0D - renderBlocks.renderMinY) * (1.0D - renderBlocks.renderMinZ), - (1.0D - renderBlocks.renderMinY) * renderBlocks.renderMinZ); + brightnessMixedXYZNPP, + brightnessMixedXYZNPN, + brightnessMixedXYZNNN, + brightnessMixedXYZNNP, + renderBlocks.renderMinY * renderBlocks.renderMinZ, + renderBlocks.renderMinY * (1.0D - renderBlocks.renderMinZ), + (1.0D - renderBlocks.renderMinY) * (1.0D - renderBlocks.renderMinZ), + (1.0D - renderBlocks.renderMinY) * renderBlocks.renderMinZ); renderBlocks.brightnessTopRight = renderBlocks.mixAoBrightness( - brightnessMixedXYZNPP, - brightnessMixedXYZNPN, - brightnessMixedXYZNNN, - brightnessMixedXYZNNP, - renderBlocks.renderMinY * renderBlocks.renderMaxZ, - renderBlocks.renderMinY * (1.0D - renderBlocks.renderMaxZ), - (1.0D - renderBlocks.renderMinY) * (1.0D - renderBlocks.renderMaxZ), - (1.0D - renderBlocks.renderMinY) * renderBlocks.renderMaxZ); + brightnessMixedXYZNPP, + brightnessMixedXYZNPN, + brightnessMixedXYZNNN, + brightnessMixedXYZNNP, + renderBlocks.renderMinY * renderBlocks.renderMaxZ, + renderBlocks.renderMinY * (1.0D - renderBlocks.renderMaxZ), + (1.0D - renderBlocks.renderMinY) * (1.0D - renderBlocks.renderMaxZ), + (1.0D - renderBlocks.renderMinY) * renderBlocks.renderMaxZ); } return this; @@ -554,184 +530,160 @@ public class LightingHelper { brightness = mixedBrightness; float aoLightValue = renderBlocks.blockAccess.getBlock(x + 1, y, z) - .getAmbientOcclusionLightValue(); - - renderBlocks.aoBrightnessXYPN = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - xOffset, - y - 1, - z); - renderBlocks.aoBrightnessXZPN = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - xOffset, - y, - z - 1); - renderBlocks.aoBrightnessXZPP = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - xOffset, - y, - z + 1); - renderBlocks.aoBrightnessXYPP = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - xOffset, - y + 1, - z); - renderBlocks.aoBrightnessXYZPNN = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - xOffset, - y - 1, - z - 1); - renderBlocks.aoBrightnessXYZPNP = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - xOffset, - y - 1, - z + 1); - renderBlocks.aoBrightnessXYZPPN = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - xOffset, - y + 1, - z - 1); - renderBlocks.aoBrightnessXYZPPP = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - xOffset, - y + 1, - z + 1); + .getAmbientOcclusionLightValue(); + + renderBlocks.aoBrightnessXYPN = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, xOffset, y - 1, z); + renderBlocks.aoBrightnessXZPN = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, xOffset, y, z - 1); + renderBlocks.aoBrightnessXZPP = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, xOffset, y, z + 1); + renderBlocks.aoBrightnessXYPP = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, xOffset, y + 1, z); + renderBlocks.aoBrightnessXYZPNN = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, xOffset, y - 1, z - 1); + renderBlocks.aoBrightnessXYZPNP = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, xOffset, y - 1, z + 1); + renderBlocks.aoBrightnessXYZPPN = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, xOffset, y + 1, z - 1); + renderBlocks.aoBrightnessXYZPPP = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, xOffset, y + 1, z + 1); renderBlocks.aoLightValueScratchXYPN = getMixedAo( - renderBlocks.blockAccess.getBlock(x + 1, y - 1, z) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x, y - 1, z) - .getAmbientOcclusionLightValue(), - renderBlocks.renderMaxX); + renderBlocks.blockAccess.getBlock(x + 1, y - 1, z) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x, y - 1, z) + .getAmbientOcclusionLightValue(), + renderBlocks.renderMaxX); renderBlocks.aoLightValueScratchXZPN = getMixedAo( - renderBlocks.blockAccess.getBlock(x + 1, y, z - 1) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x, y, z - 1) - .getAmbientOcclusionLightValue(), - renderBlocks.renderMaxX); + renderBlocks.blockAccess.getBlock(x + 1, y, z - 1) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x, y, z - 1) + .getAmbientOcclusionLightValue(), + renderBlocks.renderMaxX); renderBlocks.aoLightValueScratchXZPP = getMixedAo( - renderBlocks.blockAccess.getBlock(x + 1, y, z + 1) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x, y, z + 1) - .getAmbientOcclusionLightValue(), - renderBlocks.renderMaxX); + renderBlocks.blockAccess.getBlock(x + 1, y, z + 1) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x, y, z + 1) + .getAmbientOcclusionLightValue(), + renderBlocks.renderMaxX); renderBlocks.aoLightValueScratchXYPP = getMixedAo( - renderBlocks.blockAccess.getBlock(x + 1, y + 1, z) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x, y + 1, z) - .getAmbientOcclusionLightValue(), - renderBlocks.renderMaxX); + renderBlocks.blockAccess.getBlock(x + 1, y + 1, z) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x, y + 1, z) + .getAmbientOcclusionLightValue(), + renderBlocks.renderMaxX); renderBlocks.aoLightValueScratchXYZPNN = getMixedAo( - renderBlocks.blockAccess.getBlock(x + 1, y - 1, z - 1) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x, y - 1, z - 1) - .getAmbientOcclusionLightValue(), - renderBlocks.renderMaxX); + renderBlocks.blockAccess.getBlock(x + 1, y - 1, z - 1) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x, y - 1, z - 1) + .getAmbientOcclusionLightValue(), + renderBlocks.renderMaxX); renderBlocks.aoLightValueScratchXYZPNP = getMixedAo( - renderBlocks.blockAccess.getBlock(x + 1, y - 1, z + 1) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x, y - 1, z + 1) - .getAmbientOcclusionLightValue(), - renderBlocks.renderMaxX); + renderBlocks.blockAccess.getBlock(x + 1, y - 1, z + 1) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x, y - 1, z + 1) + .getAmbientOcclusionLightValue(), + renderBlocks.renderMaxX); renderBlocks.aoLightValueScratchXYZPPN = getMixedAo( - renderBlocks.blockAccess.getBlock(x + 1, y + 1, z - 1) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x, y + 1, z - 1) - .getAmbientOcclusionLightValue(), - renderBlocks.renderMaxX); + renderBlocks.blockAccess.getBlock(x + 1, y + 1, z - 1) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x, y + 1, z - 1) + .getAmbientOcclusionLightValue(), + renderBlocks.renderMaxX); renderBlocks.aoLightValueScratchXYZPPP = getMixedAo( - renderBlocks.blockAccess.getBlock(x + 1, y + 1, z + 1) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x, y + 1, z + 1) - .getAmbientOcclusionLightValue(), - renderBlocks.renderMaxX); + renderBlocks.blockAccess.getBlock(x + 1, y + 1, z + 1) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x, y + 1, z + 1) + .getAmbientOcclusionLightValue(), + renderBlocks.renderMaxX); int brightnessMixedXYZPPP = renderBlocks.getAoBrightness( - renderBlocks.aoBrightnessXZPP, - renderBlocks.aoBrightnessXYPP, - renderBlocks.aoBrightnessXYZPPP, - mixedBrightness); + renderBlocks.aoBrightnessXZPP, + renderBlocks.aoBrightnessXYPP, + renderBlocks.aoBrightnessXYZPPP, + mixedBrightness); int brightnessMixedXYZPNP = renderBlocks.getAoBrightness( - renderBlocks.aoBrightnessXYPN, - renderBlocks.aoBrightnessXYZPNP, - renderBlocks.aoBrightnessXZPP, - mixedBrightness); + renderBlocks.aoBrightnessXYPN, + renderBlocks.aoBrightnessXYZPNP, + renderBlocks.aoBrightnessXZPP, + mixedBrightness); int brightnessMixedXYZPNN = renderBlocks.getAoBrightness( - renderBlocks.aoBrightnessXYZPNN, - renderBlocks.aoBrightnessXYPN, - renderBlocks.aoBrightnessXZPN, - mixedBrightness); + renderBlocks.aoBrightnessXYZPNN, + renderBlocks.aoBrightnessXYPN, + renderBlocks.aoBrightnessXZPN, + mixedBrightness); int brightnessMixedXYZPPN = renderBlocks.getAoBrightness( - renderBlocks.aoBrightnessXZPN, - renderBlocks.aoBrightnessXYZPPN, - renderBlocks.aoBrightnessXYPP, - mixedBrightness); + renderBlocks.aoBrightnessXZPN, + renderBlocks.aoBrightnessXYZPPN, + renderBlocks.aoBrightnessXYPP, + mixedBrightness); float aoMixedXYZPPP = (aoLightValue + renderBlocks.aoLightValueScratchXZPP - + renderBlocks.aoLightValueScratchXYPP - + renderBlocks.aoLightValueScratchXYZPPP) / 4.0F; + + renderBlocks.aoLightValueScratchXYPP + + renderBlocks.aoLightValueScratchXYZPPP) / 4.0F; float aoMixedXYZPNP = (renderBlocks.aoLightValueScratchXYPN + renderBlocks.aoLightValueScratchXYZPNP - + aoLightValue - + renderBlocks.aoLightValueScratchXZPP) / 4.0F; + + aoLightValue + + renderBlocks.aoLightValueScratchXZPP) / 4.0F; float aoMixedXYZPNN = (renderBlocks.aoLightValueScratchXYZPNN + renderBlocks.aoLightValueScratchXYPN - + renderBlocks.aoLightValueScratchXZPN - + aoLightValue) / 4.0F; + + renderBlocks.aoLightValueScratchXZPN + + aoLightValue) / 4.0F; float aoMixedXYZPPN = (renderBlocks.aoLightValueScratchXZPN + aoLightValue - + renderBlocks.aoLightValueScratchXYZPPN - + renderBlocks.aoLightValueScratchXYPP) / 4.0F; + + renderBlocks.aoLightValueScratchXYZPPN + + renderBlocks.aoLightValueScratchXYPP) / 4.0F; aoTopLeft = (float) (aoMixedXYZPNP * (1.0D - renderBlocks.renderMinY) * renderBlocks.renderMaxZ - + aoMixedXYZPNN * (1.0D - renderBlocks.renderMinY) * (1.0D - renderBlocks.renderMaxZ) - + aoMixedXYZPPN * renderBlocks.renderMinY * (1.0D - renderBlocks.renderMaxZ) - + aoMixedXYZPPP * renderBlocks.renderMinY * renderBlocks.renderMaxZ); + + aoMixedXYZPNN * (1.0D - renderBlocks.renderMinY) * (1.0D - renderBlocks.renderMaxZ) + + aoMixedXYZPPN * renderBlocks.renderMinY * (1.0D - renderBlocks.renderMaxZ) + + aoMixedXYZPPP * renderBlocks.renderMinY * renderBlocks.renderMaxZ); aoBottomLeft = (float) (aoMixedXYZPNP * (1.0D - renderBlocks.renderMinY) * renderBlocks.renderMinZ - + aoMixedXYZPNN * (1.0D - renderBlocks.renderMinY) * (1.0D - renderBlocks.renderMinZ) - + aoMixedXYZPPN * renderBlocks.renderMinY * (1.0D - renderBlocks.renderMinZ) - + aoMixedXYZPPP * renderBlocks.renderMinY * renderBlocks.renderMinZ); + + aoMixedXYZPNN * (1.0D - renderBlocks.renderMinY) * (1.0D - renderBlocks.renderMinZ) + + aoMixedXYZPPN * renderBlocks.renderMinY * (1.0D - renderBlocks.renderMinZ) + + aoMixedXYZPPP * renderBlocks.renderMinY * renderBlocks.renderMinZ); aoBottomRight = (float) (aoMixedXYZPNP * (1.0D - renderBlocks.renderMaxY) * renderBlocks.renderMinZ - + aoMixedXYZPNN * (1.0D - renderBlocks.renderMaxY) * (1.0D - renderBlocks.renderMinZ) - + aoMixedXYZPPN * renderBlocks.renderMaxY * (1.0D - renderBlocks.renderMinZ) - + aoMixedXYZPPP * renderBlocks.renderMaxY * renderBlocks.renderMinZ); + + aoMixedXYZPNN * (1.0D - renderBlocks.renderMaxY) * (1.0D - renderBlocks.renderMinZ) + + aoMixedXYZPPN * renderBlocks.renderMaxY * (1.0D - renderBlocks.renderMinZ) + + aoMixedXYZPPP * renderBlocks.renderMaxY * renderBlocks.renderMinZ); aoTopRight = (float) (aoMixedXYZPNP * (1.0D - renderBlocks.renderMaxY) * renderBlocks.renderMaxZ - + aoMixedXYZPNN * (1.0D - renderBlocks.renderMaxY) * (1.0D - renderBlocks.renderMaxZ) - + aoMixedXYZPPN * renderBlocks.renderMaxY * (1.0D - renderBlocks.renderMaxZ) - + aoMixedXYZPPP * renderBlocks.renderMaxY * renderBlocks.renderMaxZ); + + aoMixedXYZPNN * (1.0D - renderBlocks.renderMaxY) * (1.0D - renderBlocks.renderMaxZ) + + aoMixedXYZPPN * renderBlocks.renderMaxY * (1.0D - renderBlocks.renderMaxZ) + + aoMixedXYZPPP * renderBlocks.renderMaxY * renderBlocks.renderMaxZ); renderBlocks.brightnessTopLeft = renderBlocks.mixAoBrightness( - brightnessMixedXYZPNP, - brightnessMixedXYZPNN, - brightnessMixedXYZPPN, - brightnessMixedXYZPPP, - (1.0D - renderBlocks.renderMinY) * renderBlocks.renderMaxZ, - (1.0D - renderBlocks.renderMinY) * (1.0D - renderBlocks.renderMaxZ), - renderBlocks.renderMinY * (1.0D - renderBlocks.renderMaxZ), - renderBlocks.renderMinY * renderBlocks.renderMaxZ); + brightnessMixedXYZPNP, + brightnessMixedXYZPNN, + brightnessMixedXYZPPN, + brightnessMixedXYZPPP, + (1.0D - renderBlocks.renderMinY) * renderBlocks.renderMaxZ, + (1.0D - renderBlocks.renderMinY) * (1.0D - renderBlocks.renderMaxZ), + renderBlocks.renderMinY * (1.0D - renderBlocks.renderMaxZ), + renderBlocks.renderMinY * renderBlocks.renderMaxZ); renderBlocks.brightnessBottomLeft = renderBlocks.mixAoBrightness( - brightnessMixedXYZPNP, - brightnessMixedXYZPNN, - brightnessMixedXYZPPN, - brightnessMixedXYZPPP, - (1.0D - renderBlocks.renderMinY) * renderBlocks.renderMinZ, - (1.0D - renderBlocks.renderMinY) * (1.0D - renderBlocks.renderMinZ), - renderBlocks.renderMinY * (1.0D - renderBlocks.renderMinZ), - renderBlocks.renderMinY * renderBlocks.renderMinZ); + brightnessMixedXYZPNP, + brightnessMixedXYZPNN, + brightnessMixedXYZPPN, + brightnessMixedXYZPPP, + (1.0D - renderBlocks.renderMinY) * renderBlocks.renderMinZ, + (1.0D - renderBlocks.renderMinY) * (1.0D - renderBlocks.renderMinZ), + renderBlocks.renderMinY * (1.0D - renderBlocks.renderMinZ), + renderBlocks.renderMinY * renderBlocks.renderMinZ); renderBlocks.brightnessBottomRight = renderBlocks.mixAoBrightness( - brightnessMixedXYZPNP, - brightnessMixedXYZPNN, - brightnessMixedXYZPPN, - brightnessMixedXYZPPP, - (1.0D - renderBlocks.renderMaxY) * renderBlocks.renderMinZ, - (1.0D - renderBlocks.renderMaxY) * (1.0D - renderBlocks.renderMinZ), - renderBlocks.renderMaxY * (1.0D - renderBlocks.renderMinZ), - renderBlocks.renderMaxY * renderBlocks.renderMinZ); + brightnessMixedXYZPNP, + brightnessMixedXYZPNN, + brightnessMixedXYZPPN, + brightnessMixedXYZPPP, + (1.0D - renderBlocks.renderMaxY) * renderBlocks.renderMinZ, + (1.0D - renderBlocks.renderMaxY) * (1.0D - renderBlocks.renderMinZ), + renderBlocks.renderMaxY * (1.0D - renderBlocks.renderMinZ), + renderBlocks.renderMaxY * renderBlocks.renderMinZ); renderBlocks.brightnessTopRight = renderBlocks.mixAoBrightness( - brightnessMixedXYZPNP, - brightnessMixedXYZPNN, - brightnessMixedXYZPPN, - brightnessMixedXYZPPP, - (1.0D - renderBlocks.renderMaxY) * renderBlocks.renderMaxZ, - (1.0D - renderBlocks.renderMaxY) * (1.0D - renderBlocks.renderMaxZ), - renderBlocks.renderMaxY * (1.0D - renderBlocks.renderMaxZ), - renderBlocks.renderMaxY * renderBlocks.renderMaxZ); + brightnessMixedXYZPNP, + brightnessMixedXYZPNN, + brightnessMixedXYZPPN, + brightnessMixedXYZPPP, + (1.0D - renderBlocks.renderMaxY) * renderBlocks.renderMaxZ, + (1.0D - renderBlocks.renderMaxY) * (1.0D - renderBlocks.renderMaxZ), + renderBlocks.renderMaxY * (1.0D - renderBlocks.renderMaxZ), + renderBlocks.renderMaxY * renderBlocks.renderMaxZ); } return this; @@ -764,184 +716,160 @@ public class LightingHelper { float ratio = (float) (1.0F - renderBlocks.renderMinY); float aoLightValue = renderBlocks.blockAccess.getBlock(x, y - 1, z) - .getAmbientOcclusionLightValue(); - - renderBlocks.aoBrightnessXYNN = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - x - 1, - yOffset, - z); - renderBlocks.aoBrightnessYZNN = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - x, - yOffset, - z - 1); - renderBlocks.aoBrightnessYZNP = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - x, - yOffset, - z + 1); - renderBlocks.aoBrightnessXYPN = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - x + 1, - yOffset, - z); - renderBlocks.aoBrightnessXYZNNN = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - x - 1, - yOffset, - z - 1); - renderBlocks.aoBrightnessXYZNNP = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - x - 1, - yOffset, - z + 1); - renderBlocks.aoBrightnessXYZPNN = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - x + 1, - yOffset, - z - 1); - renderBlocks.aoBrightnessXYZPNP = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - x + 1, - yOffset, - z + 1); + .getAmbientOcclusionLightValue(); + + renderBlocks.aoBrightnessXYNN = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, x - 1, yOffset, z); + renderBlocks.aoBrightnessYZNN = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, x, yOffset, z - 1); + renderBlocks.aoBrightnessYZNP = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, x, yOffset, z + 1); + renderBlocks.aoBrightnessXYPN = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, x + 1, yOffset, z); + renderBlocks.aoBrightnessXYZNNN = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, x - 1, yOffset, z - 1); + renderBlocks.aoBrightnessXYZNNP = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, x - 1, yOffset, z + 1); + renderBlocks.aoBrightnessXYZPNN = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, x + 1, yOffset, z - 1); + renderBlocks.aoBrightnessXYZPNP = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, x + 1, yOffset, z + 1); renderBlocks.aoLightValueScratchXYNN = getMixedAo( - renderBlocks.blockAccess.getBlock(x - 1, y - 1, z) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x - 1, y, z) - .getAmbientOcclusionLightValue(), - ratio); + renderBlocks.blockAccess.getBlock(x - 1, y - 1, z) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x - 1, y, z) + .getAmbientOcclusionLightValue(), + ratio); renderBlocks.aoLightValueScratchYZNN = getMixedAo( - renderBlocks.blockAccess.getBlock(x, y - 1, z - 1) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x, y, z - 1) - .getAmbientOcclusionLightValue(), - ratio); + renderBlocks.blockAccess.getBlock(x, y - 1, z - 1) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x, y, z - 1) + .getAmbientOcclusionLightValue(), + ratio); renderBlocks.aoLightValueScratchYZNP = getMixedAo( - renderBlocks.blockAccess.getBlock(x, y - 1, z + 1) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x, y, z + 1) - .getAmbientOcclusionLightValue(), - ratio); + renderBlocks.blockAccess.getBlock(x, y - 1, z + 1) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x, y, z + 1) + .getAmbientOcclusionLightValue(), + ratio); renderBlocks.aoLightValueScratchXYPN = getMixedAo( - renderBlocks.blockAccess.getBlock(x + 1, y - 1, z) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x + 1, y, z) - .getAmbientOcclusionLightValue(), - ratio); + renderBlocks.blockAccess.getBlock(x + 1, y - 1, z) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x + 1, y, z) + .getAmbientOcclusionLightValue(), + ratio); renderBlocks.aoLightValueScratchXYZNNN = getMixedAo( - renderBlocks.blockAccess.getBlock(x - 1, y - 1, z - 1) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x - 1, y, z - 1) - .getAmbientOcclusionLightValue(), - ratio); + renderBlocks.blockAccess.getBlock(x - 1, y - 1, z - 1) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x - 1, y, z - 1) + .getAmbientOcclusionLightValue(), + ratio); renderBlocks.aoLightValueScratchXYZNNP = getMixedAo( - renderBlocks.blockAccess.getBlock(x - 1, y - 1, z + 1) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x - 1, y, z + 1) - .getAmbientOcclusionLightValue(), - ratio); + renderBlocks.blockAccess.getBlock(x - 1, y - 1, z + 1) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x - 1, y, z + 1) + .getAmbientOcclusionLightValue(), + ratio); renderBlocks.aoLightValueScratchXYZPNN = getMixedAo( - renderBlocks.blockAccess.getBlock(x + 1, y - 1, z - 1) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x + 1, y, z - 1) - .getAmbientOcclusionLightValue(), - ratio); + renderBlocks.blockAccess.getBlock(x + 1, y - 1, z - 1) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x + 1, y, z - 1) + .getAmbientOcclusionLightValue(), + ratio); renderBlocks.aoLightValueScratchXYZPNP = getMixedAo( - renderBlocks.blockAccess.getBlock(x + 1, y - 1, z + 1) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x + 1, y, z + 1) - .getAmbientOcclusionLightValue(), - ratio); + renderBlocks.blockAccess.getBlock(x + 1, y - 1, z + 1) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x + 1, y, z + 1) + .getAmbientOcclusionLightValue(), + ratio); int brightnessMixedXYZPNP = renderBlocks.getAoBrightness( - renderBlocks.aoBrightnessYZNP, - renderBlocks.aoBrightnessXYZPNP, - renderBlocks.aoBrightnessXYPN, - mixedBrightness); + renderBlocks.aoBrightnessYZNP, + renderBlocks.aoBrightnessXYZPNP, + renderBlocks.aoBrightnessXYPN, + mixedBrightness); int brightnessMixedXYZPNN = renderBlocks.getAoBrightness( - renderBlocks.aoBrightnessYZNN, - renderBlocks.aoBrightnessXYPN, - renderBlocks.aoBrightnessXYZPNN, - mixedBrightness); + renderBlocks.aoBrightnessYZNN, + renderBlocks.aoBrightnessXYPN, + renderBlocks.aoBrightnessXYZPNN, + mixedBrightness); int brightnessMixedXYZNNN = renderBlocks.getAoBrightness( - renderBlocks.aoBrightnessXYNN, - renderBlocks.aoBrightnessXYZNNN, - renderBlocks.aoBrightnessYZNN, - mixedBrightness); + renderBlocks.aoBrightnessXYNN, + renderBlocks.aoBrightnessXYZNNN, + renderBlocks.aoBrightnessYZNN, + mixedBrightness); int brightnessMixedXYZNNP = renderBlocks.getAoBrightness( - renderBlocks.aoBrightnessXYZNNP, - renderBlocks.aoBrightnessXYNN, - renderBlocks.aoBrightnessYZNP, - mixedBrightness); + renderBlocks.aoBrightnessXYZNNP, + renderBlocks.aoBrightnessXYNN, + renderBlocks.aoBrightnessYZNP, + mixedBrightness); float aoMixedXYZPNP = (renderBlocks.aoLightValueScratchYZNP + aoLightValue - + renderBlocks.aoLightValueScratchXYZPNP - + renderBlocks.aoLightValueScratchXYPN) / 4.0F; + + renderBlocks.aoLightValueScratchXYZPNP + + renderBlocks.aoLightValueScratchXYPN) / 4.0F; float aoMixedXYZPNN = (aoLightValue + renderBlocks.aoLightValueScratchYZNN - + renderBlocks.aoLightValueScratchXYPN - + renderBlocks.aoLightValueScratchXYZPNN) / 4.0F; + + renderBlocks.aoLightValueScratchXYPN + + renderBlocks.aoLightValueScratchXYZPNN) / 4.0F; float aoMixedXYZNNN = (renderBlocks.aoLightValueScratchXYNN + renderBlocks.aoLightValueScratchXYZNNN - + aoLightValue - + renderBlocks.aoLightValueScratchYZNN) / 4.0F; + + aoLightValue + + renderBlocks.aoLightValueScratchYZNN) / 4.0F; float aoMixedXYZNNP = (renderBlocks.aoLightValueScratchXYZNNP + renderBlocks.aoLightValueScratchXYNN - + renderBlocks.aoLightValueScratchYZNP - + aoLightValue) / 4.0F; + + renderBlocks.aoLightValueScratchYZNP + + aoLightValue) / 4.0F; aoTopLeft = (float) (aoMixedXYZNNP * renderBlocks.renderMaxZ * (1.0D - renderBlocks.renderMinX) - + aoMixedXYZPNP * renderBlocks.renderMaxZ * renderBlocks.renderMinX - + aoMixedXYZPNN * (1.0D - renderBlocks.renderMaxZ) * renderBlocks.renderMinX - + aoMixedXYZNNN * (1.0D - renderBlocks.renderMaxZ) * (1.0D - renderBlocks.renderMinX)); + + aoMixedXYZPNP * renderBlocks.renderMaxZ * renderBlocks.renderMinX + + aoMixedXYZPNN * (1.0D - renderBlocks.renderMaxZ) * renderBlocks.renderMinX + + aoMixedXYZNNN * (1.0D - renderBlocks.renderMaxZ) * (1.0D - renderBlocks.renderMinX)); aoBottomLeft = (float) (aoMixedXYZNNP * renderBlocks.renderMinZ * (1.0D - renderBlocks.renderMinX) - + aoMixedXYZPNP * renderBlocks.renderMinZ * renderBlocks.renderMinX - + aoMixedXYZPNN * (1.0D - renderBlocks.renderMinZ) * renderBlocks.renderMinX - + aoMixedXYZNNN * (1.0D - renderBlocks.renderMinZ) * (1.0D - renderBlocks.renderMinX)); + + aoMixedXYZPNP * renderBlocks.renderMinZ * renderBlocks.renderMinX + + aoMixedXYZPNN * (1.0D - renderBlocks.renderMinZ) * renderBlocks.renderMinX + + aoMixedXYZNNN * (1.0D - renderBlocks.renderMinZ) * (1.0D - renderBlocks.renderMinX)); aoBottomRight = (float) (aoMixedXYZNNP * renderBlocks.renderMinZ * (1.0D - renderBlocks.renderMaxX) - + aoMixedXYZPNP * renderBlocks.renderMinZ * renderBlocks.renderMaxX - + aoMixedXYZPNN * (1.0D - renderBlocks.renderMinZ) * renderBlocks.renderMaxX - + aoMixedXYZNNN * (1.0D - renderBlocks.renderMinZ) * (1.0D - renderBlocks.renderMaxX)); + + aoMixedXYZPNP * renderBlocks.renderMinZ * renderBlocks.renderMaxX + + aoMixedXYZPNN * (1.0D - renderBlocks.renderMinZ) * renderBlocks.renderMaxX + + aoMixedXYZNNN * (1.0D - renderBlocks.renderMinZ) * (1.0D - renderBlocks.renderMaxX)); aoTopRight = (float) (aoMixedXYZNNP * renderBlocks.renderMaxZ * (1.0D - renderBlocks.renderMaxX) - + aoMixedXYZPNP * renderBlocks.renderMaxZ * renderBlocks.renderMaxX - + aoMixedXYZPNN * (1.0D - renderBlocks.renderMaxZ) * renderBlocks.renderMaxX - + aoMixedXYZNNN * (1.0D - renderBlocks.renderMaxZ) * (1.0D - renderBlocks.renderMaxX)); + + aoMixedXYZPNP * renderBlocks.renderMaxZ * renderBlocks.renderMaxX + + aoMixedXYZPNN * (1.0D - renderBlocks.renderMaxZ) * renderBlocks.renderMaxX + + aoMixedXYZNNN * (1.0D - renderBlocks.renderMaxZ) * (1.0D - renderBlocks.renderMaxX)); renderBlocks.brightnessTopLeft = renderBlocks.mixAoBrightness( - brightnessMixedXYZNNP, - brightnessMixedXYZPNP, - brightnessMixedXYZPNN, - brightnessMixedXYZNNN, - renderBlocks.renderMaxZ * (1.0D - renderBlocks.renderMinX), - renderBlocks.renderMaxZ * renderBlocks.renderMinX, - (1.0D - renderBlocks.renderMaxZ) * renderBlocks.renderMinX, - (1.0D - renderBlocks.renderMaxZ) * (1.0D - renderBlocks.renderMinX)); + brightnessMixedXYZNNP, + brightnessMixedXYZPNP, + brightnessMixedXYZPNN, + brightnessMixedXYZNNN, + renderBlocks.renderMaxZ * (1.0D - renderBlocks.renderMinX), + renderBlocks.renderMaxZ * renderBlocks.renderMinX, + (1.0D - renderBlocks.renderMaxZ) * renderBlocks.renderMinX, + (1.0D - renderBlocks.renderMaxZ) * (1.0D - renderBlocks.renderMinX)); renderBlocks.brightnessBottomLeft = renderBlocks.mixAoBrightness( - brightnessMixedXYZNNP, - brightnessMixedXYZPNP, - brightnessMixedXYZPNN, - brightnessMixedXYZNNN, - renderBlocks.renderMinZ * (1.0D - renderBlocks.renderMinX), - renderBlocks.renderMinZ * renderBlocks.renderMinX, - (1.0D - renderBlocks.renderMinZ) * renderBlocks.renderMinX, - (1.0D - renderBlocks.renderMinZ) * (1.0D - renderBlocks.renderMinX)); + brightnessMixedXYZNNP, + brightnessMixedXYZPNP, + brightnessMixedXYZPNN, + brightnessMixedXYZNNN, + renderBlocks.renderMinZ * (1.0D - renderBlocks.renderMinX), + renderBlocks.renderMinZ * renderBlocks.renderMinX, + (1.0D - renderBlocks.renderMinZ) * renderBlocks.renderMinX, + (1.0D - renderBlocks.renderMinZ) * (1.0D - renderBlocks.renderMinX)); renderBlocks.brightnessBottomRight = renderBlocks.mixAoBrightness( - brightnessMixedXYZNNP, - brightnessMixedXYZPNP, - brightnessMixedXYZPNN, - brightnessMixedXYZNNN, - renderBlocks.renderMinZ * (1.0D - renderBlocks.renderMaxX), - renderBlocks.renderMinZ * renderBlocks.renderMaxX, - (1.0D - renderBlocks.renderMinZ) * renderBlocks.renderMaxX, - (1.0D - renderBlocks.renderMinZ) * (1.0D - renderBlocks.renderMaxX)); + brightnessMixedXYZNNP, + brightnessMixedXYZPNP, + brightnessMixedXYZPNN, + brightnessMixedXYZNNN, + renderBlocks.renderMinZ * (1.0D - renderBlocks.renderMaxX), + renderBlocks.renderMinZ * renderBlocks.renderMaxX, + (1.0D - renderBlocks.renderMinZ) * renderBlocks.renderMaxX, + (1.0D - renderBlocks.renderMinZ) * (1.0D - renderBlocks.renderMaxX)); renderBlocks.brightnessTopRight = renderBlocks.mixAoBrightness( - brightnessMixedXYZNNP, - brightnessMixedXYZPNP, - brightnessMixedXYZPNN, - brightnessMixedXYZNNN, - renderBlocks.renderMaxZ * (1.0D - renderBlocks.renderMaxX), - renderBlocks.renderMaxZ * renderBlocks.renderMaxX, - (1.0D - renderBlocks.renderMaxZ) * renderBlocks.renderMaxX, - (1.0D - renderBlocks.renderMaxZ) * (1.0D - renderBlocks.renderMaxX)); + brightnessMixedXYZNNP, + brightnessMixedXYZPNP, + brightnessMixedXYZPNN, + brightnessMixedXYZNNN, + renderBlocks.renderMaxZ * (1.0D - renderBlocks.renderMaxX), + renderBlocks.renderMaxZ * renderBlocks.renderMaxX, + (1.0D - renderBlocks.renderMaxZ) * renderBlocks.renderMaxX, + (1.0D - renderBlocks.renderMaxZ) * (1.0D - renderBlocks.renderMaxX)); } return this; @@ -973,184 +901,160 @@ public class LightingHelper { brightness = mixedBrightness; float aoLightValue = renderBlocks.blockAccess.getBlock(x, y + 1, z) - .getAmbientOcclusionLightValue(); - - renderBlocks.aoBrightnessXYNP = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - x - 1, - yOffset, - z); - renderBlocks.aoBrightnessXYPP = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - x + 1, - yOffset, - z); - renderBlocks.aoBrightnessYZPN = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - x, - yOffset, - z - 1); - renderBlocks.aoBrightnessYZPP = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - x, - yOffset, - z + 1); - renderBlocks.aoBrightnessXYZNPN = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - x - 1, - yOffset, - z - 1); - renderBlocks.aoBrightnessXYZPPN = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - x + 1, - yOffset, - z - 1); - renderBlocks.aoBrightnessXYZNPP = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - x - 1, - yOffset, - z + 1); - renderBlocks.aoBrightnessXYZPPP = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - x + 1, - yOffset, - z + 1); + .getAmbientOcclusionLightValue(); + + renderBlocks.aoBrightnessXYNP = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, x - 1, yOffset, z); + renderBlocks.aoBrightnessXYPP = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, x + 1, yOffset, z); + renderBlocks.aoBrightnessYZPN = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, x, yOffset, z - 1); + renderBlocks.aoBrightnessYZPP = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, x, yOffset, z + 1); + renderBlocks.aoBrightnessXYZNPN = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, x - 1, yOffset, z - 1); + renderBlocks.aoBrightnessXYZPPN = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, x + 1, yOffset, z - 1); + renderBlocks.aoBrightnessXYZNPP = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, x - 1, yOffset, z + 1); + renderBlocks.aoBrightnessXYZPPP = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, x + 1, yOffset, z + 1); renderBlocks.aoLightValueScratchXYNP = getMixedAo( - renderBlocks.blockAccess.getBlock(x - 1, y + 1, z) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x - 1, y, z) - .getAmbientOcclusionLightValue(), - renderBlocks.renderMaxY); + renderBlocks.blockAccess.getBlock(x - 1, y + 1, z) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x - 1, y, z) + .getAmbientOcclusionLightValue(), + renderBlocks.renderMaxY); renderBlocks.aoLightValueScratchXYPP = getMixedAo( - renderBlocks.blockAccess.getBlock(x + 1, y + 1, z) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x + 1, y, z) - .getAmbientOcclusionLightValue(), - renderBlocks.renderMaxY); + renderBlocks.blockAccess.getBlock(x + 1, y + 1, z) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x + 1, y, z) + .getAmbientOcclusionLightValue(), + renderBlocks.renderMaxY); renderBlocks.aoLightValueScratchYZPN = getMixedAo( - renderBlocks.blockAccess.getBlock(x, y + 1, z - 1) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x, y, z - 1) - .getAmbientOcclusionLightValue(), - renderBlocks.renderMaxY); + renderBlocks.blockAccess.getBlock(x, y + 1, z - 1) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x, y, z - 1) + .getAmbientOcclusionLightValue(), + renderBlocks.renderMaxY); renderBlocks.aoLightValueScratchYZPP = getMixedAo( - renderBlocks.blockAccess.getBlock(x, y + 1, z + 1) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x, y, z + 1) - .getAmbientOcclusionLightValue(), - renderBlocks.renderMaxY); + renderBlocks.blockAccess.getBlock(x, y + 1, z + 1) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x, y, z + 1) + .getAmbientOcclusionLightValue(), + renderBlocks.renderMaxY); renderBlocks.aoLightValueScratchXYZNPN = getMixedAo( - renderBlocks.blockAccess.getBlock(x - 1, y + 1, z - 1) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x - 1, y, z - 1) - .getAmbientOcclusionLightValue(), - renderBlocks.renderMaxY); + renderBlocks.blockAccess.getBlock(x - 1, y + 1, z - 1) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x - 1, y, z - 1) + .getAmbientOcclusionLightValue(), + renderBlocks.renderMaxY); renderBlocks.aoLightValueScratchXYZPPN = getMixedAo( - renderBlocks.blockAccess.getBlock(x + 1, y + 1, z - 1) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x + 1, y, z - 1) - .getAmbientOcclusionLightValue(), - renderBlocks.renderMaxY); + renderBlocks.blockAccess.getBlock(x + 1, y + 1, z - 1) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x + 1, y, z - 1) + .getAmbientOcclusionLightValue(), + renderBlocks.renderMaxY); renderBlocks.aoLightValueScratchXYZNPP = getMixedAo( - renderBlocks.blockAccess.getBlock(x - 1, y + 1, z + 1) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x - 1, y, z + 1) - .getAmbientOcclusionLightValue(), - renderBlocks.renderMaxY); + renderBlocks.blockAccess.getBlock(x - 1, y + 1, z + 1) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x - 1, y, z + 1) + .getAmbientOcclusionLightValue(), + renderBlocks.renderMaxY); renderBlocks.aoLightValueScratchXYZPPP = getMixedAo( - renderBlocks.blockAccess.getBlock(x + 1, y + 1, z + 1) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x + 1, y, z + 1) - .getAmbientOcclusionLightValue(), - renderBlocks.renderMaxY); + renderBlocks.blockAccess.getBlock(x + 1, y + 1, z + 1) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x + 1, y, z + 1) + .getAmbientOcclusionLightValue(), + renderBlocks.renderMaxY); int brightnessMixedXYZPPP = renderBlocks.getAoBrightness( - renderBlocks.aoBrightnessYZPP, - renderBlocks.aoBrightnessXYZPPP, - renderBlocks.aoBrightnessXYPP, - mixedBrightness); + renderBlocks.aoBrightnessYZPP, + renderBlocks.aoBrightnessXYZPPP, + renderBlocks.aoBrightnessXYPP, + mixedBrightness); int brightnessMixedXYZPPN = renderBlocks.getAoBrightness( - renderBlocks.aoBrightnessYZPN, - renderBlocks.aoBrightnessXYPP, - renderBlocks.aoBrightnessXYZPPN, - mixedBrightness); + renderBlocks.aoBrightnessYZPN, + renderBlocks.aoBrightnessXYPP, + renderBlocks.aoBrightnessXYZPPN, + mixedBrightness); int brightnessMixedXYZNPN = renderBlocks.getAoBrightness( - renderBlocks.aoBrightnessXYNP, - renderBlocks.aoBrightnessXYZNPN, - renderBlocks.aoBrightnessYZPN, - mixedBrightness); + renderBlocks.aoBrightnessXYNP, + renderBlocks.aoBrightnessXYZNPN, + renderBlocks.aoBrightnessYZPN, + mixedBrightness); int brightnessMixedXYZNPP = renderBlocks.getAoBrightness( - renderBlocks.aoBrightnessXYZNPP, - renderBlocks.aoBrightnessXYNP, - renderBlocks.aoBrightnessYZPP, - mixedBrightness); + renderBlocks.aoBrightnessXYZNPP, + renderBlocks.aoBrightnessXYNP, + renderBlocks.aoBrightnessYZPP, + mixedBrightness); float aoMixedXYZPPP = (renderBlocks.aoLightValueScratchYZPP + aoLightValue - + renderBlocks.aoLightValueScratchXYZPPP - + renderBlocks.aoLightValueScratchXYPP) / 4.0F; + + renderBlocks.aoLightValueScratchXYZPPP + + renderBlocks.aoLightValueScratchXYPP) / 4.0F; float aoMixedXYZPPN = (aoLightValue + renderBlocks.aoLightValueScratchYZPN - + renderBlocks.aoLightValueScratchXYPP - + renderBlocks.aoLightValueScratchXYZPPN) / 4.0F; + + renderBlocks.aoLightValueScratchXYPP + + renderBlocks.aoLightValueScratchXYZPPN) / 4.0F; float aoMixedXYZNPN = (renderBlocks.aoLightValueScratchXYNP + renderBlocks.aoLightValueScratchXYZNPN - + aoLightValue - + renderBlocks.aoLightValueScratchYZPN) / 4.0F; + + aoLightValue + + renderBlocks.aoLightValueScratchYZPN) / 4.0F; float aoMixedXYZNPP = (renderBlocks.aoLightValueScratchXYZNPP + renderBlocks.aoLightValueScratchXYNP - + renderBlocks.aoLightValueScratchYZPP - + aoLightValue) / 4.0F; + + renderBlocks.aoLightValueScratchYZPP + + aoLightValue) / 4.0F; aoTopLeft /* SE */ = (float) (aoMixedXYZNPP * renderBlocks.renderMaxZ * (1.0D - renderBlocks.renderMaxX) - + aoMixedXYZPPP * renderBlocks.renderMaxZ * renderBlocks.renderMaxX - + aoMixedXYZPPN * (1.0D - renderBlocks.renderMaxZ) * renderBlocks.renderMaxX - + aoMixedXYZNPN * (1.0D - renderBlocks.renderMaxZ) * (1.0D - renderBlocks.renderMaxX)); + + aoMixedXYZPPP * renderBlocks.renderMaxZ * renderBlocks.renderMaxX + + aoMixedXYZPPN * (1.0D - renderBlocks.renderMaxZ) * renderBlocks.renderMaxX + + aoMixedXYZNPN * (1.0D - renderBlocks.renderMaxZ) * (1.0D - renderBlocks.renderMaxX)); aoBottomLeft /* NE */ = (float) (aoMixedXYZNPP * renderBlocks.renderMinZ * (1.0D - renderBlocks.renderMaxX) - + aoMixedXYZPPP * renderBlocks.renderMinZ * renderBlocks.renderMaxX - + aoMixedXYZPPN * (1.0D - renderBlocks.renderMinZ) * renderBlocks.renderMaxX - + aoMixedXYZNPN * (1.0D - renderBlocks.renderMinZ) * (1.0D - renderBlocks.renderMaxX)); + + aoMixedXYZPPP * renderBlocks.renderMinZ * renderBlocks.renderMaxX + + aoMixedXYZPPN * (1.0D - renderBlocks.renderMinZ) * renderBlocks.renderMaxX + + aoMixedXYZNPN * (1.0D - renderBlocks.renderMinZ) * (1.0D - renderBlocks.renderMaxX)); aoBottomRight /* NW */ = (float) (aoMixedXYZNPP * renderBlocks.renderMinZ * (1.0D - renderBlocks.renderMinX) - + aoMixedXYZPPP * renderBlocks.renderMinZ * renderBlocks.renderMinX - + aoMixedXYZPPN * (1.0D - renderBlocks.renderMinZ) * renderBlocks.renderMinX - + aoMixedXYZNPN * (1.0D - renderBlocks.renderMinZ) * (1.0D - renderBlocks.renderMinX)); + + aoMixedXYZPPP * renderBlocks.renderMinZ * renderBlocks.renderMinX + + aoMixedXYZPPN * (1.0D - renderBlocks.renderMinZ) * renderBlocks.renderMinX + + aoMixedXYZNPN * (1.0D - renderBlocks.renderMinZ) * (1.0D - renderBlocks.renderMinX)); aoTopRight /* SW */ = (float) (aoMixedXYZNPP * renderBlocks.renderMaxZ * (1.0D - renderBlocks.renderMinX) - + aoMixedXYZPPP * renderBlocks.renderMaxZ * renderBlocks.renderMinX - + aoMixedXYZPPN * (1.0D - renderBlocks.renderMaxZ) * renderBlocks.renderMinX - + aoMixedXYZNPN * (1.0D - renderBlocks.renderMaxZ) * (1.0D - renderBlocks.renderMinX)); + + aoMixedXYZPPP * renderBlocks.renderMaxZ * renderBlocks.renderMinX + + aoMixedXYZPPN * (1.0D - renderBlocks.renderMaxZ) * renderBlocks.renderMinX + + aoMixedXYZNPN * (1.0D - renderBlocks.renderMaxZ) * (1.0D - renderBlocks.renderMinX)); renderBlocks.brightnessTopLeft = renderBlocks.mixAoBrightness( - brightnessMixedXYZNPP, - brightnessMixedXYZPPP, - brightnessMixedXYZPPN, - brightnessMixedXYZNPN, - renderBlocks.renderMaxZ * (1.0D - renderBlocks.renderMaxX), - renderBlocks.renderMaxZ * renderBlocks.renderMaxX, - (1.0D - renderBlocks.renderMaxZ) * renderBlocks.renderMaxX, - (1.0D - renderBlocks.renderMaxZ) * (1.0D - renderBlocks.renderMaxX)); + brightnessMixedXYZNPP, + brightnessMixedXYZPPP, + brightnessMixedXYZPPN, + brightnessMixedXYZNPN, + renderBlocks.renderMaxZ * (1.0D - renderBlocks.renderMaxX), + renderBlocks.renderMaxZ * renderBlocks.renderMaxX, + (1.0D - renderBlocks.renderMaxZ) * renderBlocks.renderMaxX, + (1.0D - renderBlocks.renderMaxZ) * (1.0D - renderBlocks.renderMaxX)); renderBlocks.brightnessBottomLeft = renderBlocks.mixAoBrightness( - brightnessMixedXYZNPP, - brightnessMixedXYZPPP, - brightnessMixedXYZPPN, - brightnessMixedXYZNPN, - renderBlocks.renderMinZ * (1.0D - renderBlocks.renderMaxX), - renderBlocks.renderMinZ * renderBlocks.renderMaxX, - (1.0D - renderBlocks.renderMinZ) * renderBlocks.renderMaxX, - (1.0D - renderBlocks.renderMinZ) * (1.0D - renderBlocks.renderMaxX)); + brightnessMixedXYZNPP, + brightnessMixedXYZPPP, + brightnessMixedXYZPPN, + brightnessMixedXYZNPN, + renderBlocks.renderMinZ * (1.0D - renderBlocks.renderMaxX), + renderBlocks.renderMinZ * renderBlocks.renderMaxX, + (1.0D - renderBlocks.renderMinZ) * renderBlocks.renderMaxX, + (1.0D - renderBlocks.renderMinZ) * (1.0D - renderBlocks.renderMaxX)); renderBlocks.brightnessBottomRight = renderBlocks.mixAoBrightness( - brightnessMixedXYZNPP, - brightnessMixedXYZPPP, - brightnessMixedXYZPPN, - brightnessMixedXYZNPN, - renderBlocks.renderMinZ * (1.0D - renderBlocks.renderMinX), - renderBlocks.renderMinZ * renderBlocks.renderMinX, - (1.0D - renderBlocks.renderMinZ) * renderBlocks.renderMinX, - (1.0D - renderBlocks.renderMinZ) * (1.0D - renderBlocks.renderMinX)); + brightnessMixedXYZNPP, + brightnessMixedXYZPPP, + brightnessMixedXYZPPN, + brightnessMixedXYZNPN, + renderBlocks.renderMinZ * (1.0D - renderBlocks.renderMinX), + renderBlocks.renderMinZ * renderBlocks.renderMinX, + (1.0D - renderBlocks.renderMinZ) * renderBlocks.renderMinX, + (1.0D - renderBlocks.renderMinZ) * (1.0D - renderBlocks.renderMinX)); renderBlocks.brightnessTopRight = renderBlocks.mixAoBrightness( - brightnessMixedXYZNPP, - brightnessMixedXYZPPP, - brightnessMixedXYZPPN, - brightnessMixedXYZNPN, - renderBlocks.renderMaxZ * (1.0D - renderBlocks.renderMinX), - renderBlocks.renderMaxZ * renderBlocks.renderMinX, - (1.0D - renderBlocks.renderMaxZ) * renderBlocks.renderMinX, - (1.0D - renderBlocks.renderMaxZ) * (1.0D - renderBlocks.renderMinX)); + brightnessMixedXYZNPP, + brightnessMixedXYZPPP, + brightnessMixedXYZPPN, + brightnessMixedXYZNPN, + renderBlocks.renderMaxZ * (1.0D - renderBlocks.renderMinX), + renderBlocks.renderMaxZ * renderBlocks.renderMinX, + (1.0D - renderBlocks.renderMaxZ) * renderBlocks.renderMinX, + (1.0D - renderBlocks.renderMaxZ) * (1.0D - renderBlocks.renderMinX)); } return this; @@ -1183,184 +1087,160 @@ public class LightingHelper { float ratio = (float) (1.0F - renderBlocks.renderMinZ); float aoLightValue = renderBlocks.blockAccess.getBlock(x, y, z - 1) - .getAmbientOcclusionLightValue(); - - renderBlocks.aoBrightnessXZNN = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - x - 1, - y, - zOffset); - renderBlocks.aoBrightnessYZNN = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - x, - y - 1, - zOffset); - renderBlocks.aoBrightnessYZPN = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - x, - y + 1, - zOffset); - renderBlocks.aoBrightnessXZPN = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - x + 1, - y, - zOffset); - renderBlocks.aoBrightnessXYZNNN = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - x - 1, - y - 1, - zOffset); - renderBlocks.aoBrightnessXYZNPN = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - x - 1, - y + 1, - zOffset); - renderBlocks.aoBrightnessXYZPNN = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - x + 1, - y - 1, - zOffset); - renderBlocks.aoBrightnessXYZPPN = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - x + 1, - y + 1, - zOffset); + .getAmbientOcclusionLightValue(); + + renderBlocks.aoBrightnessXZNN = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, x - 1, y, zOffset); + renderBlocks.aoBrightnessYZNN = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, x, y - 1, zOffset); + renderBlocks.aoBrightnessYZPN = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, x, y + 1, zOffset); + renderBlocks.aoBrightnessXZPN = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, x + 1, y, zOffset); + renderBlocks.aoBrightnessXYZNNN = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, x - 1, y - 1, zOffset); + renderBlocks.aoBrightnessXYZNPN = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, x - 1, y + 1, zOffset); + renderBlocks.aoBrightnessXYZPNN = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, x + 1, y - 1, zOffset); + renderBlocks.aoBrightnessXYZPPN = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, x + 1, y + 1, zOffset); renderBlocks.aoLightValueScratchXZNN = getMixedAo( - renderBlocks.blockAccess.getBlock(x - 1, y, z - 1) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x - 1, y, z) - .getAmbientOcclusionLightValue(), - ratio); + renderBlocks.blockAccess.getBlock(x - 1, y, z - 1) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x - 1, y, z) + .getAmbientOcclusionLightValue(), + ratio); renderBlocks.aoLightValueScratchYZNN = getMixedAo( - renderBlocks.blockAccess.getBlock(x, y - 1, z - 1) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x, y - 1, z) - .getAmbientOcclusionLightValue(), - ratio); + renderBlocks.blockAccess.getBlock(x, y - 1, z - 1) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x, y - 1, z) + .getAmbientOcclusionLightValue(), + ratio); renderBlocks.aoLightValueScratchYZPN = getMixedAo( - renderBlocks.blockAccess.getBlock(x, y + 1, z - 1) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x, y + 1, z) - .getAmbientOcclusionLightValue(), - ratio); + renderBlocks.blockAccess.getBlock(x, y + 1, z - 1) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x, y + 1, z) + .getAmbientOcclusionLightValue(), + ratio); renderBlocks.aoLightValueScratchXZPN = getMixedAo( - renderBlocks.blockAccess.getBlock(x + 1, y, z - 1) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x + 1, y, z) - .getAmbientOcclusionLightValue(), - ratio); + renderBlocks.blockAccess.getBlock(x + 1, y, z - 1) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x + 1, y, z) + .getAmbientOcclusionLightValue(), + ratio); renderBlocks.aoLightValueScratchXYZNNN = getMixedAo( - renderBlocks.blockAccess.getBlock(x - 1, y - 1, z - 1) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x - 1, y - 1, z) - .getAmbientOcclusionLightValue(), - ratio); + renderBlocks.blockAccess.getBlock(x - 1, y - 1, z - 1) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x - 1, y - 1, z) + .getAmbientOcclusionLightValue(), + ratio); renderBlocks.aoLightValueScratchXYZNPN = getMixedAo( - renderBlocks.blockAccess.getBlock(x - 1, y + 1, z - 1) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x - 1, y + 1, z) - .getAmbientOcclusionLightValue(), - ratio); + renderBlocks.blockAccess.getBlock(x - 1, y + 1, z - 1) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x - 1, y + 1, z) + .getAmbientOcclusionLightValue(), + ratio); renderBlocks.aoLightValueScratchXYZPNN = getMixedAo( - renderBlocks.blockAccess.getBlock(x + 1, y - 1, z - 1) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x + 1, y - 1, z) - .getAmbientOcclusionLightValue(), - ratio); + renderBlocks.blockAccess.getBlock(x + 1, y - 1, z - 1) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x + 1, y - 1, z) + .getAmbientOcclusionLightValue(), + ratio); renderBlocks.aoLightValueScratchXYZPPN = getMixedAo( - renderBlocks.blockAccess.getBlock(x + 1, y + 1, z - 1) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x + 1, y + 1, z) - .getAmbientOcclusionLightValue(), - ratio); + renderBlocks.blockAccess.getBlock(x + 1, y + 1, z - 1) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x + 1, y + 1, z) + .getAmbientOcclusionLightValue(), + ratio); int brightnessMixedXYZPPN = renderBlocks.getAoBrightness( - renderBlocks.aoBrightnessYZPN, - renderBlocks.aoBrightnessXZPN, - renderBlocks.aoBrightnessXYZPPN, - mixedBrightness); + renderBlocks.aoBrightnessYZPN, + renderBlocks.aoBrightnessXZPN, + renderBlocks.aoBrightnessXYZPPN, + mixedBrightness); int brightnessMixedXYZPNN = renderBlocks.getAoBrightness( - renderBlocks.aoBrightnessYZNN, - renderBlocks.aoBrightnessXYZPNN, - renderBlocks.aoBrightnessXZPN, - mixedBrightness); + renderBlocks.aoBrightnessYZNN, + renderBlocks.aoBrightnessXYZPNN, + renderBlocks.aoBrightnessXZPN, + mixedBrightness); int brightnessMixedXYZNNN = renderBlocks.getAoBrightness( - renderBlocks.aoBrightnessXYZNNN, - renderBlocks.aoBrightnessXZNN, - renderBlocks.aoBrightnessYZNN, - mixedBrightness); + renderBlocks.aoBrightnessXYZNNN, + renderBlocks.aoBrightnessXZNN, + renderBlocks.aoBrightnessYZNN, + mixedBrightness); int brightnessMixedXYZNPN = renderBlocks.getAoBrightness( - renderBlocks.aoBrightnessXZNN, - renderBlocks.aoBrightnessXYZNPN, - renderBlocks.aoBrightnessYZPN, - mixedBrightness); + renderBlocks.aoBrightnessXZNN, + renderBlocks.aoBrightnessXYZNPN, + renderBlocks.aoBrightnessYZPN, + mixedBrightness); float aoMixedXYZPPN = (aoLightValue + renderBlocks.aoLightValueScratchYZPN - + renderBlocks.aoLightValueScratchXZPN - + renderBlocks.aoLightValueScratchXYZPPN) / 4.0F; + + renderBlocks.aoLightValueScratchXZPN + + renderBlocks.aoLightValueScratchXYZPPN) / 4.0F; float aoMixedXYZPNN = (renderBlocks.aoLightValueScratchYZNN + aoLightValue - + renderBlocks.aoLightValueScratchXYZPNN - + renderBlocks.aoLightValueScratchXZPN) / 4.0F; + + renderBlocks.aoLightValueScratchXYZPNN + + renderBlocks.aoLightValueScratchXZPN) / 4.0F; float aoMixedXYZNNN = (renderBlocks.aoLightValueScratchXYZNNN + renderBlocks.aoLightValueScratchXZNN - + renderBlocks.aoLightValueScratchYZNN - + aoLightValue) / 4.0F; + + renderBlocks.aoLightValueScratchYZNN + + aoLightValue) / 4.0F; float aoMixedXYZNPN = (renderBlocks.aoLightValueScratchXZNN + renderBlocks.aoLightValueScratchXYZNPN - + aoLightValue - + renderBlocks.aoLightValueScratchYZPN) / 4.0F; + + aoLightValue + + renderBlocks.aoLightValueScratchYZPN) / 4.0F; aoTopLeft = (float) (aoMixedXYZNPN * renderBlocks.renderMaxY * (1.0D - renderBlocks.renderMinX) - + aoMixedXYZPPN * renderBlocks.renderMaxY * renderBlocks.renderMinX - + aoMixedXYZPNN * (1.0D - renderBlocks.renderMaxY) * renderBlocks.renderMinX - + aoMixedXYZNNN * (1.0D - renderBlocks.renderMaxY) * (1.0D - renderBlocks.renderMinX)); + + aoMixedXYZPPN * renderBlocks.renderMaxY * renderBlocks.renderMinX + + aoMixedXYZPNN * (1.0D - renderBlocks.renderMaxY) * renderBlocks.renderMinX + + aoMixedXYZNNN * (1.0D - renderBlocks.renderMaxY) * (1.0D - renderBlocks.renderMinX)); aoBottomLeft = (float) (aoMixedXYZNPN * renderBlocks.renderMaxY * (1.0D - renderBlocks.renderMaxX) - + aoMixedXYZPPN * renderBlocks.renderMaxY * renderBlocks.renderMaxX - + aoMixedXYZPNN * (1.0D - renderBlocks.renderMaxY) * renderBlocks.renderMaxX - + aoMixedXYZNNN * (1.0D - renderBlocks.renderMaxY) * (1.0D - renderBlocks.renderMaxX)); + + aoMixedXYZPPN * renderBlocks.renderMaxY * renderBlocks.renderMaxX + + aoMixedXYZPNN * (1.0D - renderBlocks.renderMaxY) * renderBlocks.renderMaxX + + aoMixedXYZNNN * (1.0D - renderBlocks.renderMaxY) * (1.0D - renderBlocks.renderMaxX)); aoBottomRight = (float) (aoMixedXYZNPN * renderBlocks.renderMinY * (1.0D - renderBlocks.renderMaxX) - + aoMixedXYZPPN * renderBlocks.renderMinY * renderBlocks.renderMaxX - + aoMixedXYZPNN * (1.0D - renderBlocks.renderMinY) * renderBlocks.renderMaxX - + aoMixedXYZNNN * (1.0D - renderBlocks.renderMinY) * (1.0D - renderBlocks.renderMaxX)); + + aoMixedXYZPPN * renderBlocks.renderMinY * renderBlocks.renderMaxX + + aoMixedXYZPNN * (1.0D - renderBlocks.renderMinY) * renderBlocks.renderMaxX + + aoMixedXYZNNN * (1.0D - renderBlocks.renderMinY) * (1.0D - renderBlocks.renderMaxX)); aoTopRight = (float) (aoMixedXYZNPN * renderBlocks.renderMinY * (1.0D - renderBlocks.renderMinX) - + aoMixedXYZPPN * renderBlocks.renderMinY * renderBlocks.renderMinX - + aoMixedXYZPNN * (1.0D - renderBlocks.renderMinY) * renderBlocks.renderMinX - + aoMixedXYZNNN * (1.0D - renderBlocks.renderMinY) * (1.0D - renderBlocks.renderMinX)); + + aoMixedXYZPPN * renderBlocks.renderMinY * renderBlocks.renderMinX + + aoMixedXYZPNN * (1.0D - renderBlocks.renderMinY) * renderBlocks.renderMinX + + aoMixedXYZNNN * (1.0D - renderBlocks.renderMinY) * (1.0D - renderBlocks.renderMinX)); renderBlocks.brightnessTopLeft = renderBlocks.mixAoBrightness( - brightnessMixedXYZNPN, - brightnessMixedXYZPPN, - brightnessMixedXYZPNN, - brightnessMixedXYZNNN, - renderBlocks.renderMaxY * (1.0D - renderBlocks.renderMinX), - renderBlocks.renderMaxY * renderBlocks.renderMinX, - (1.0D - renderBlocks.renderMaxY) * renderBlocks.renderMinX, - (1.0D - renderBlocks.renderMaxY) * (1.0D - renderBlocks.renderMinX)); + brightnessMixedXYZNPN, + brightnessMixedXYZPPN, + brightnessMixedXYZPNN, + brightnessMixedXYZNNN, + renderBlocks.renderMaxY * (1.0D - renderBlocks.renderMinX), + renderBlocks.renderMaxY * renderBlocks.renderMinX, + (1.0D - renderBlocks.renderMaxY) * renderBlocks.renderMinX, + (1.0D - renderBlocks.renderMaxY) * (1.0D - renderBlocks.renderMinX)); renderBlocks.brightnessBottomLeft = renderBlocks.mixAoBrightness( - brightnessMixedXYZNPN, - brightnessMixedXYZPPN, - brightnessMixedXYZPNN, - brightnessMixedXYZNNN, - renderBlocks.renderMaxY * (1.0D - renderBlocks.renderMaxX), - renderBlocks.renderMaxY * renderBlocks.renderMaxX, - (1.0D - renderBlocks.renderMaxY) * renderBlocks.renderMaxX, - (1.0D - renderBlocks.renderMaxY) * (1.0D - renderBlocks.renderMaxX)); + brightnessMixedXYZNPN, + brightnessMixedXYZPPN, + brightnessMixedXYZPNN, + brightnessMixedXYZNNN, + renderBlocks.renderMaxY * (1.0D - renderBlocks.renderMaxX), + renderBlocks.renderMaxY * renderBlocks.renderMaxX, + (1.0D - renderBlocks.renderMaxY) * renderBlocks.renderMaxX, + (1.0D - renderBlocks.renderMaxY) * (1.0D - renderBlocks.renderMaxX)); renderBlocks.brightnessBottomRight = renderBlocks.mixAoBrightness( - brightnessMixedXYZNPN, - brightnessMixedXYZPPN, - brightnessMixedXYZPNN, - brightnessMixedXYZNNN, - renderBlocks.renderMinY * (1.0D - renderBlocks.renderMaxX), - renderBlocks.renderMinY * renderBlocks.renderMaxX, - (1.0D - renderBlocks.renderMinY) * renderBlocks.renderMaxX, - (1.0D - renderBlocks.renderMinY) * (1.0D - renderBlocks.renderMaxX)); + brightnessMixedXYZNPN, + brightnessMixedXYZPPN, + brightnessMixedXYZPNN, + brightnessMixedXYZNNN, + renderBlocks.renderMinY * (1.0D - renderBlocks.renderMaxX), + renderBlocks.renderMinY * renderBlocks.renderMaxX, + (1.0D - renderBlocks.renderMinY) * renderBlocks.renderMaxX, + (1.0D - renderBlocks.renderMinY) * (1.0D - renderBlocks.renderMaxX)); renderBlocks.brightnessTopRight = renderBlocks.mixAoBrightness( - brightnessMixedXYZNPN, - brightnessMixedXYZPPN, - brightnessMixedXYZPNN, - brightnessMixedXYZNNN, - renderBlocks.renderMinY * (1.0D - renderBlocks.renderMinX), - renderBlocks.renderMinY * renderBlocks.renderMinX, - (1.0D - renderBlocks.renderMinY) * renderBlocks.renderMinX, - (1.0D - renderBlocks.renderMinY) * (1.0D - renderBlocks.renderMinX)); + brightnessMixedXYZNPN, + brightnessMixedXYZPPN, + brightnessMixedXYZPNN, + brightnessMixedXYZNNN, + renderBlocks.renderMinY * (1.0D - renderBlocks.renderMinX), + renderBlocks.renderMinY * renderBlocks.renderMinX, + (1.0D - renderBlocks.renderMinY) * renderBlocks.renderMinX, + (1.0D - renderBlocks.renderMinY) * (1.0D - renderBlocks.renderMinX)); } return this; @@ -1392,184 +1272,160 @@ public class LightingHelper { brightness = mixedBrightness; float aoLightValue = renderBlocks.blockAccess.getBlock(x, y, z + 1) - .getAmbientOcclusionLightValue(); - - renderBlocks.aoBrightnessXZNP = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - x - 1, - y, - zOffset); - renderBlocks.aoBrightnessXZPP = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - x + 1, - y, - zOffset); - renderBlocks.aoBrightnessYZNP = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - x, - y - 1, - zOffset); - renderBlocks.aoBrightnessYZPP = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - x, - y + 1, - zOffset); - renderBlocks.aoBrightnessXYZNNP = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - x - 1, - y - 1, - zOffset); - renderBlocks.aoBrightnessXYZNPP = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - x - 1, - y + 1, - zOffset); - renderBlocks.aoBrightnessXYZPNP = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - x + 1, - y - 1, - zOffset); - renderBlocks.aoBrightnessXYZPPP = block.getMixedBrightnessForBlock( - renderBlocks.blockAccess, - x + 1, - y + 1, - zOffset); + .getAmbientOcclusionLightValue(); + + renderBlocks.aoBrightnessXZNP = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, x - 1, y, zOffset); + renderBlocks.aoBrightnessXZPP = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, x + 1, y, zOffset); + renderBlocks.aoBrightnessYZNP = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, x, y - 1, zOffset); + renderBlocks.aoBrightnessYZPP = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, x, y + 1, zOffset); + renderBlocks.aoBrightnessXYZNNP = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, x - 1, y - 1, zOffset); + renderBlocks.aoBrightnessXYZNPP = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, x - 1, y + 1, zOffset); + renderBlocks.aoBrightnessXYZPNP = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, x + 1, y - 1, zOffset); + renderBlocks.aoBrightnessXYZPPP = block + .getMixedBrightnessForBlock(renderBlocks.blockAccess, x + 1, y + 1, zOffset); renderBlocks.aoLightValueScratchXZNP = getMixedAo( - renderBlocks.blockAccess.getBlock(x - 1, y, z + 1) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x - 1, y, z) - .getAmbientOcclusionLightValue(), - renderBlocks.renderMaxZ); + renderBlocks.blockAccess.getBlock(x - 1, y, z + 1) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x - 1, y, z) + .getAmbientOcclusionLightValue(), + renderBlocks.renderMaxZ); renderBlocks.aoLightValueScratchXZPP = getMixedAo( - renderBlocks.blockAccess.getBlock(x + 1, y, z + 1) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x + 1, y, z) - .getAmbientOcclusionLightValue(), - renderBlocks.renderMaxZ); + renderBlocks.blockAccess.getBlock(x + 1, y, z + 1) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x + 1, y, z) + .getAmbientOcclusionLightValue(), + renderBlocks.renderMaxZ); renderBlocks.aoLightValueScratchYZNP = getMixedAo( - renderBlocks.blockAccess.getBlock(x, y - 1, z + 1) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x, y - 1, z) - .getAmbientOcclusionLightValue(), - renderBlocks.renderMaxZ); + renderBlocks.blockAccess.getBlock(x, y - 1, z + 1) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x, y - 1, z) + .getAmbientOcclusionLightValue(), + renderBlocks.renderMaxZ); renderBlocks.aoLightValueScratchYZPP = getMixedAo( - renderBlocks.blockAccess.getBlock(x, y + 1, z + 1) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x, y + 1, z) - .getAmbientOcclusionLightValue(), - renderBlocks.renderMaxZ); + renderBlocks.blockAccess.getBlock(x, y + 1, z + 1) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x, y + 1, z) + .getAmbientOcclusionLightValue(), + renderBlocks.renderMaxZ); renderBlocks.aoLightValueScratchXYZNNP = getMixedAo( - renderBlocks.blockAccess.getBlock(x - 1, y - 1, z + 1) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x - 1, y - 1, z) - .getAmbientOcclusionLightValue(), - renderBlocks.renderMaxZ); + renderBlocks.blockAccess.getBlock(x - 1, y - 1, z + 1) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x - 1, y - 1, z) + .getAmbientOcclusionLightValue(), + renderBlocks.renderMaxZ); renderBlocks.aoLightValueScratchXYZNPP = getMixedAo( - renderBlocks.blockAccess.getBlock(x - 1, y + 1, z + 1) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x - 1, y + 1, z) - .getAmbientOcclusionLightValue(), - renderBlocks.renderMaxZ); + renderBlocks.blockAccess.getBlock(x - 1, y + 1, z + 1) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x - 1, y + 1, z) + .getAmbientOcclusionLightValue(), + renderBlocks.renderMaxZ); renderBlocks.aoLightValueScratchXYZPNP = getMixedAo( - renderBlocks.blockAccess.getBlock(x + 1, y - 1, z + 1) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x + 1, y - 1, z) - .getAmbientOcclusionLightValue(), - renderBlocks.renderMaxZ); + renderBlocks.blockAccess.getBlock(x + 1, y - 1, z + 1) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x + 1, y - 1, z) + .getAmbientOcclusionLightValue(), + renderBlocks.renderMaxZ); renderBlocks.aoLightValueScratchXYZPPP = getMixedAo( - renderBlocks.blockAccess.getBlock(x + 1, y + 1, z + 1) - .getAmbientOcclusionLightValue(), - renderBlocks.blockAccess.getBlock(x + 1, y + 1, z) - .getAmbientOcclusionLightValue(), - renderBlocks.renderMaxZ); + renderBlocks.blockAccess.getBlock(x + 1, y + 1, z + 1) + .getAmbientOcclusionLightValue(), + renderBlocks.blockAccess.getBlock(x + 1, y + 1, z) + .getAmbientOcclusionLightValue(), + renderBlocks.renderMaxZ); int brightnessMixedXYZNPP = renderBlocks.getAoBrightness( - renderBlocks.aoBrightnessXZNP, - renderBlocks.aoBrightnessXYZNPP, - renderBlocks.aoBrightnessYZPP, - mixedBrightness); + renderBlocks.aoBrightnessXZNP, + renderBlocks.aoBrightnessXYZNPP, + renderBlocks.aoBrightnessYZPP, + mixedBrightness); int brightnessMixedXYZNNP = renderBlocks.getAoBrightness( - renderBlocks.aoBrightnessXYZNNP, - renderBlocks.aoBrightnessXZNP, - renderBlocks.aoBrightnessYZNP, - mixedBrightness); + renderBlocks.aoBrightnessXYZNNP, + renderBlocks.aoBrightnessXZNP, + renderBlocks.aoBrightnessYZNP, + mixedBrightness); int brightnessMixedXYZPNP = renderBlocks.getAoBrightness( - renderBlocks.aoBrightnessYZNP, - renderBlocks.aoBrightnessXYZPNP, - renderBlocks.aoBrightnessXZPP, - mixedBrightness); + renderBlocks.aoBrightnessYZNP, + renderBlocks.aoBrightnessXYZPNP, + renderBlocks.aoBrightnessXZPP, + mixedBrightness); int brightnessMixedXYZPPP = renderBlocks.getAoBrightness( - renderBlocks.aoBrightnessYZPP, - renderBlocks.aoBrightnessXZPP, - renderBlocks.aoBrightnessXYZPPP, - mixedBrightness); + renderBlocks.aoBrightnessYZPP, + renderBlocks.aoBrightnessXZPP, + renderBlocks.aoBrightnessXYZPPP, + mixedBrightness); float aoMixedXYZNPP = (renderBlocks.aoLightValueScratchXZNP + renderBlocks.aoLightValueScratchXYZNPP - + aoLightValue - + renderBlocks.aoLightValueScratchYZPP) / 4.0F; + + aoLightValue + + renderBlocks.aoLightValueScratchYZPP) / 4.0F; float aoMixedXYZNNP = (renderBlocks.aoLightValueScratchXYZNNP + renderBlocks.aoLightValueScratchXZNP - + renderBlocks.aoLightValueScratchYZNP - + aoLightValue) / 4.0F; + + renderBlocks.aoLightValueScratchYZNP + + aoLightValue) / 4.0F; float aoMixedXYZPNP = (renderBlocks.aoLightValueScratchYZNP + aoLightValue - + renderBlocks.aoLightValueScratchXYZPNP - + renderBlocks.aoLightValueScratchXZPP) / 4.0F; + + renderBlocks.aoLightValueScratchXYZPNP + + renderBlocks.aoLightValueScratchXZPP) / 4.0F; float aoMixedXYZPPP = (aoLightValue + renderBlocks.aoLightValueScratchYZPP - + renderBlocks.aoLightValueScratchXZPP - + renderBlocks.aoLightValueScratchXYZPPP) / 4.0F; + + renderBlocks.aoLightValueScratchXZPP + + renderBlocks.aoLightValueScratchXYZPPP) / 4.0F; aoTopLeft = (float) (aoMixedXYZNPP * renderBlocks.renderMaxY * (1.0D - renderBlocks.renderMinX) - + aoMixedXYZPPP * renderBlocks.renderMaxY * renderBlocks.renderMinX - + aoMixedXYZPNP * (1.0D - renderBlocks.renderMaxY) * renderBlocks.renderMinX - + aoMixedXYZNNP * (1.0D - renderBlocks.renderMaxY) * (1.0D - renderBlocks.renderMinX)); + + aoMixedXYZPPP * renderBlocks.renderMaxY * renderBlocks.renderMinX + + aoMixedXYZPNP * (1.0D - renderBlocks.renderMaxY) * renderBlocks.renderMinX + + aoMixedXYZNNP * (1.0D - renderBlocks.renderMaxY) * (1.0D - renderBlocks.renderMinX)); aoBottomLeft = (float) (aoMixedXYZNPP * renderBlocks.renderMinY * (1.0D - renderBlocks.renderMinX) - + aoMixedXYZPPP * renderBlocks.renderMinY * renderBlocks.renderMinX - + aoMixedXYZPNP * (1.0D - renderBlocks.renderMinY) * renderBlocks.renderMinX - + aoMixedXYZNNP * (1.0D - renderBlocks.renderMinY) * (1.0D - renderBlocks.renderMinX)); + + aoMixedXYZPPP * renderBlocks.renderMinY * renderBlocks.renderMinX + + aoMixedXYZPNP * (1.0D - renderBlocks.renderMinY) * renderBlocks.renderMinX + + aoMixedXYZNNP * (1.0D - renderBlocks.renderMinY) * (1.0D - renderBlocks.renderMinX)); aoBottomRight = (float) (aoMixedXYZNPP * renderBlocks.renderMinY * (1.0D - renderBlocks.renderMaxX) - + aoMixedXYZPPP * renderBlocks.renderMinY * renderBlocks.renderMaxX - + aoMixedXYZPNP * (1.0D - renderBlocks.renderMinY) * renderBlocks.renderMaxX - + aoMixedXYZNNP * (1.0D - renderBlocks.renderMinY) * (1.0D - renderBlocks.renderMaxX)); + + aoMixedXYZPPP * renderBlocks.renderMinY * renderBlocks.renderMaxX + + aoMixedXYZPNP * (1.0D - renderBlocks.renderMinY) * renderBlocks.renderMaxX + + aoMixedXYZNNP * (1.0D - renderBlocks.renderMinY) * (1.0D - renderBlocks.renderMaxX)); aoTopRight = (float) (aoMixedXYZNPP * renderBlocks.renderMaxY * (1.0D - renderBlocks.renderMaxX) - + aoMixedXYZPPP * renderBlocks.renderMaxY * renderBlocks.renderMaxX - + aoMixedXYZPNP * (1.0D - renderBlocks.renderMaxY) * renderBlocks.renderMaxX - + aoMixedXYZNNP * (1.0D - renderBlocks.renderMaxY) * (1.0D - renderBlocks.renderMaxX)); + + aoMixedXYZPPP * renderBlocks.renderMaxY * renderBlocks.renderMaxX + + aoMixedXYZPNP * (1.0D - renderBlocks.renderMaxY) * renderBlocks.renderMaxX + + aoMixedXYZNNP * (1.0D - renderBlocks.renderMaxY) * (1.0D - renderBlocks.renderMaxX)); renderBlocks.brightnessTopLeft = renderBlocks.mixAoBrightness( - brightnessMixedXYZNPP, - brightnessMixedXYZNNP, - brightnessMixedXYZPNP, - brightnessMixedXYZPPP, - renderBlocks.renderMaxY * (1.0D - renderBlocks.renderMinX), - (1.0D - renderBlocks.renderMaxY) * (1.0D - renderBlocks.renderMinX), - (1.0D - renderBlocks.renderMaxY) * renderBlocks.renderMinX, - renderBlocks.renderMaxY * renderBlocks.renderMinX); + brightnessMixedXYZNPP, + brightnessMixedXYZNNP, + brightnessMixedXYZPNP, + brightnessMixedXYZPPP, + renderBlocks.renderMaxY * (1.0D - renderBlocks.renderMinX), + (1.0D - renderBlocks.renderMaxY) * (1.0D - renderBlocks.renderMinX), + (1.0D - renderBlocks.renderMaxY) * renderBlocks.renderMinX, + renderBlocks.renderMaxY * renderBlocks.renderMinX); renderBlocks.brightnessBottomLeft = renderBlocks.mixAoBrightness( - brightnessMixedXYZNPP, - brightnessMixedXYZNNP, - brightnessMixedXYZPNP, - brightnessMixedXYZPPP, - renderBlocks.renderMinY * (1.0D - renderBlocks.renderMinX), - (1.0D - renderBlocks.renderMinY) * (1.0D - renderBlocks.renderMinX), - (1.0D - renderBlocks.renderMinY) * renderBlocks.renderMinX, - renderBlocks.renderMinY * renderBlocks.renderMinX); + brightnessMixedXYZNPP, + brightnessMixedXYZNNP, + brightnessMixedXYZPNP, + brightnessMixedXYZPPP, + renderBlocks.renderMinY * (1.0D - renderBlocks.renderMinX), + (1.0D - renderBlocks.renderMinY) * (1.0D - renderBlocks.renderMinX), + (1.0D - renderBlocks.renderMinY) * renderBlocks.renderMinX, + renderBlocks.renderMinY * renderBlocks.renderMinX); renderBlocks.brightnessBottomRight = renderBlocks.mixAoBrightness( - brightnessMixedXYZNPP, - brightnessMixedXYZNNP, - brightnessMixedXYZPNP, - brightnessMixedXYZPPP, - renderBlocks.renderMinY * (1.0D - renderBlocks.renderMaxX), - (1.0D - renderBlocks.renderMinY) * (1.0D - renderBlocks.renderMaxX), - (1.0D - renderBlocks.renderMinY) * renderBlocks.renderMaxX, - renderBlocks.renderMinY * renderBlocks.renderMaxX); + brightnessMixedXYZNPP, + brightnessMixedXYZNNP, + brightnessMixedXYZPNP, + brightnessMixedXYZPPP, + renderBlocks.renderMinY * (1.0D - renderBlocks.renderMaxX), + (1.0D - renderBlocks.renderMinY) * (1.0D - renderBlocks.renderMaxX), + (1.0D - renderBlocks.renderMinY) * renderBlocks.renderMaxX, + renderBlocks.renderMinY * renderBlocks.renderMaxX); renderBlocks.brightnessTopRight = renderBlocks.mixAoBrightness( - brightnessMixedXYZNPP, - brightnessMixedXYZNNP, - brightnessMixedXYZPNP, - brightnessMixedXYZPPP, - renderBlocks.renderMaxY * (1.0D - renderBlocks.renderMaxX), - (1.0D - renderBlocks.renderMaxY) * (1.0D - renderBlocks.renderMaxX), - (1.0D - renderBlocks.renderMaxY) * renderBlocks.renderMaxX, - renderBlocks.renderMaxY * renderBlocks.renderMaxX); + brightnessMixedXYZNPP, + brightnessMixedXYZNNP, + brightnessMixedXYZPNP, + brightnessMixedXYZPPP, + renderBlocks.renderMaxY * (1.0D - renderBlocks.renderMaxX), + (1.0D - renderBlocks.renderMaxY) * (1.0D - renderBlocks.renderMaxX), + (1.0D - renderBlocks.renderMaxY) * renderBlocks.renderMaxX, + renderBlocks.renderMaxY * renderBlocks.renderMaxX); } return this; diff --git a/src/main/java/gregtech/api/util/WorldSpawnedEventBuilder.java b/src/main/java/gregtech/api/util/WorldSpawnedEventBuilder.java index 112fcd93cb..f2bcce2bf8 100644 --- a/src/main/java/gregtech/api/util/WorldSpawnedEventBuilder.java +++ b/src/main/java/gregtech/api/util/WorldSpawnedEventBuilder.java @@ -94,7 +94,7 @@ public abstract class WorldSpawnedEventBuilder implements Runnable { /* Abstract Classes */ private abstract static class EntityWorldSpawnedEventBuilder extends WorldSpawnedEventBuilder - implements IEntityWorldSpawnedEvent { + implements IEntityWorldSpawnedEvent { private Entity entity; @@ -111,7 +111,7 @@ public abstract class WorldSpawnedEventBuilder implements Runnable { } private abstract static class PositionedEntityWorldSpawnedEventBuilder extends EntityWorldSpawnedEventBuilder - implements IPositionedWorldSpawnedEvent { + implements IPositionedWorldSpawnedEvent { private Vec3 position; @@ -134,7 +134,7 @@ public abstract class WorldSpawnedEventBuilder implements Runnable { } private abstract static class PositionedWorldSpawnedEventBuilder extends WorldSpawnedEventBuilder - implements IPositionedWorldSpawnedEvent { + implements IPositionedWorldSpawnedEvent { private Vec3 position; @@ -157,7 +157,7 @@ public abstract class WorldSpawnedEventBuilder implements Runnable { } private abstract static class StringIdentifierPositionedWorldSpawnedEventBuilder - extends PositionedWorldSpawnedEventBuilder implements IStringIdentifierWorldSpawnedEvent { + extends PositionedWorldSpawnedEventBuilder implements IStringIdentifierWorldSpawnedEvent { private String identifier; @@ -180,7 +180,7 @@ public abstract class WorldSpawnedEventBuilder implements Runnable { } private abstract static class SoundStringIdentifierPositionedWorldSpawnedEventBuilder - extends StringIdentifierPositionedWorldSpawnedEventBuilder implements ISoundWorldSpawnedEvent { + extends StringIdentifierPositionedWorldSpawnedEventBuilder implements ISoundWorldSpawnedEvent { private float pitch; private float volume; @@ -259,13 +259,13 @@ public abstract class WorldSpawnedEventBuilder implements Runnable { throw new IllegalStateException("Position, identifier, motion and world must be set"); getWorld().spawnParticle( - getIdentifier(), - getPosition().xCoord, - getPosition().yCoord, - getPosition().zCoord, - getMotion().xCoord, - getMotion().yCoord, - getMotion().zCoord); + getIdentifier(), + getPosition().xCoord, + getPosition().yCoord, + getPosition().zCoord, + getMotion().xCoord, + getMotion().yCoord, + getMotion().zCoord); } } @@ -312,12 +312,12 @@ public abstract class WorldSpawnedEventBuilder implements Runnable { throw new IllegalStateException(ILLEGAL_STATE_STR1); getWorld().playSoundEffect( - getPosition().xCoord, - getPosition().yCoord, - getPosition().zCoord, - getIdentifier(), - getPitch(), - getVolume()); + getPosition().xCoord, + getPosition().yCoord, + getPosition().zCoord, + getIdentifier(), + getPitch(), + getVolume()); } } @@ -370,13 +370,13 @@ public abstract class WorldSpawnedEventBuilder implements Runnable { throw new IllegalStateException(ILLEGAL_STATE_STR1); getWorld().playSound( - getPosition().xCoord, - getPosition().yCoord, - getPosition().zCoord, - getIdentifier(), - getPitch(), - getVolume(), - isProximity()); + getPosition().xCoord, + getPosition().yCoord, + getPosition().zCoord, + getIdentifier(), + getPitch(), + getVolume(), + isProximity()); } } @@ -411,10 +411,10 @@ public abstract class WorldSpawnedEventBuilder implements Runnable { throw new IllegalStateException(ILLEGAL_STATE_STR1); getWorld().playRecord( - getIdentifier(), - (int) getPosition().xCoord, - (int) getPosition().yCoord, - (int) getPosition().zCoord); + getIdentifier(), + (int) getPosition().xCoord, + (int) getPosition().yCoord, + (int) getPosition().zCoord); } } @@ -471,13 +471,13 @@ public abstract class WorldSpawnedEventBuilder implements Runnable { throw new IllegalStateException("Position and world must be set"); getWorld().newExplosion( - getEntity(), - getPosition().xCoord, - getPosition().yCoord, - getPosition().zCoord, - strength, - isFlaming, - isSmoking); + getEntity(), + getPosition().xCoord, + getPosition().yCoord, + getPosition().zCoord, + strength, + isFlaming, + isSmoking); } } @@ -485,7 +485,7 @@ public abstract class WorldSpawnedEventBuilder implements Runnable { * Positional Data is rounded down due to this targeting a block. */ public static final class ExtinguishFireEffectEventBuilder extends PositionedWorldSpawnedEventBuilder - implements IEntityPlayerWorldSpawnedEvent { + implements IEntityPlayerWorldSpawnedEvent { private int side; private EntityPlayer entityPlayer; @@ -531,16 +531,16 @@ public abstract class WorldSpawnedEventBuilder implements Runnable { throw new IllegalStateException("EntityPlayer, position and world must be set"); getWorld().extinguishFire( - getEntityPlayer(), - (int) getPosition().xCoord, - (int) getPosition().yCoord, - (int) getPosition().zCoord, - side); + getEntityPlayer(), + (int) getPosition().xCoord, + (int) getPosition().yCoord, + (int) getPosition().zCoord, + side); } } public static final class SoundAtEntityEventBuilder extends EntityWorldSpawnedEventBuilder - implements ISoundWorldSpawnedEvent, IStringIdentifierWorldSpawnedEvent { + implements ISoundWorldSpawnedEvent, IStringIdentifierWorldSpawnedEvent { private float pitch; private float volume; @@ -605,7 +605,7 @@ public abstract class WorldSpawnedEventBuilder implements Runnable { } public static final class SoundToNearExceptEventBuilder extends WorldSpawnedEventBuilder - implements ISoundWorldSpawnedEvent, IStringIdentifierWorldSpawnedEvent, IEntityPlayerWorldSpawnedEvent { + implements ISoundWorldSpawnedEvent, IStringIdentifierWorldSpawnedEvent, IEntityPlayerWorldSpawnedEvent { private float pitch; private float volume; diff --git a/src/main/java/gregtech/api/world/GT_Worldgen.java b/src/main/java/gregtech/api/world/GT_Worldgen.java index ae6fc930a4..4e1d5c7a73 100644 --- a/src/main/java/gregtech/api/world/GT_Worldgen.java +++ b/src/main/java/gregtech/api/world/GT_Worldgen.java @@ -33,12 +33,12 @@ public abstract class GT_Worldgen { * @return if the Worldgeneration has been successfully completed */ public boolean executeWorldgen(World aWorld, Random aRandom, String aBiome, int aDimensionType, int aChunkX, - int aChunkZ, IChunkProvider aChunkGenerator, IChunkProvider aChunkProvider) { + int aChunkZ, IChunkProvider aChunkGenerator, IChunkProvider aChunkProvider) { return false; } public int executeWorldgenChunkified(World aWorld, Random aRandom, String aBiome, int aDimensionType, int aChunkX, - int aChunkZ, int seedX, int seedZ, IChunkProvider aChunkGenerator, IChunkProvider aChunkProvider) { + int aChunkZ, int seedX, int seedZ, IChunkProvider aChunkGenerator, IChunkProvider aChunkProvider) { return 4; // This is for the empty Orevein } @@ -52,7 +52,7 @@ public abstract class GT_Worldgen { * @return if the Worldgeneration has been successfully completed */ public boolean executeCavegen(World aWorld, Random aRandom, String aBiome, int aDimensionType, int aChunkX, - int aChunkZ, IChunkProvider aChunkGenerator, IChunkProvider aChunkProvider) { + int aChunkZ, IChunkProvider aChunkGenerator, IChunkProvider aChunkProvider) { return false; } @@ -67,24 +67,22 @@ public abstract class GT_Worldgen { public boolean isGenerationAllowed(World aWorld, int aDimensionType, int aAllowedDimensionType) { if (!((aWorld.provider.getDimensionName() - .equalsIgnoreCase("Overworld")) - || (aWorld.provider.getDimensionName() - .equalsIgnoreCase("Nether")) - || (aWorld.provider.getDimensionName() - .equalsIgnoreCase("The End")) - || (aWorld.provider.getDimensionName() - .equalsIgnoreCase("Twilight Forest")) - || (aWorld.provider.getDimensionName() - .equalsIgnoreCase("Underdark")))) + .equalsIgnoreCase("Overworld")) + || (aWorld.provider.getDimensionName() + .equalsIgnoreCase("Nether")) + || (aWorld.provider.getDimensionName() + .equalsIgnoreCase("The End")) + || (aWorld.provider.getDimensionName() + .equalsIgnoreCase("Twilight Forest")) + || (aWorld.provider.getDimensionName() + .equalsIgnoreCase("Underdark")))) return false; String aDimName = aWorld.provider.getDimensionName(); Boolean tAllowed = mDimensionMap.get(aDimName); if (tAllowed == null) { - boolean tValue = GregTech_API.sWorldgenFile.get( - "worldgen." + mWorldGenName, - aDimName, - aDimensionType == aAllowedDimensionType); + boolean tValue = GregTech_API.sWorldgenFile + .get("worldgen." + mWorldGenName, aDimName, aDimensionType == aAllowedDimensionType); mDimensionMap.put(aDimName, tValue); return tValue; } diff --git a/src/main/java/gregtech/api/world/GT_Worldgen_Ore.java b/src/main/java/gregtech/api/world/GT_Worldgen_Ore.java index c40b3dfe13..958adfad54 100644 --- a/src/main/java/gregtech/api/world/GT_Worldgen_Ore.java +++ b/src/main/java/gregtech/api/world/GT_Worldgen_Ore.java @@ -16,8 +16,8 @@ public abstract class GT_Worldgen_Ore extends GT_Worldgen { private final String aTextWorldgen = "worldgen."; public GT_Worldgen_Ore(String aName, boolean aDefault, Block aBlock, int aBlockMeta, int aDimensionType, - int aAmount, int aSize, int aProbability, int aMinY, int aMaxY, Collection aBiomeList, - boolean aAllowToGenerateinVoid) { + int aAmount, int aSize, int aProbability, int aMinY, int aMaxY, Collection aBiomeList, + boolean aAllowToGenerateinVoid) { super(aName, GregTech_API.sWorldgenList, aDefault); mDimensionType = aDimensionType; mBlock = aBlock; diff --git a/src/main/java/gregtech/api/world/GT_Worldgen_Ore_SingleBlock.java b/src/main/java/gregtech/api/world/GT_Worldgen_Ore_SingleBlock.java index 79b9e1711f..900f7808b1 100644 --- a/src/main/java/gregtech/api/world/GT_Worldgen_Ore_SingleBlock.java +++ b/src/main/java/gregtech/api/world/GT_Worldgen_Ore_SingleBlock.java @@ -11,38 +11,38 @@ import net.minecraft.world.chunk.IChunkProvider; public class GT_Worldgen_Ore_SingleBlock extends GT_Worldgen_Ore { public GT_Worldgen_Ore_SingleBlock(String aName, boolean aDefault, Block aBlock, int aBlockMeta, int aDimensionType, - int aAmount, int aSize, int aProbability, int aMinY, int aMaxY, Collection aBiomeList, - boolean aAllowToGenerateinVoid) { + int aAmount, int aSize, int aProbability, int aMinY, int aMaxY, Collection aBiomeList, + boolean aAllowToGenerateinVoid) { super( - aName, - aDefault, - aBlock, - aBlockMeta, - aDimensionType, - aAmount, - aSize, - aProbability, - aMinY, - aMaxY, - aBiomeList, - aAllowToGenerateinVoid); + aName, + aDefault, + aBlock, + aBlockMeta, + aDimensionType, + aAmount, + aSize, + aProbability, + aMinY, + aMaxY, + aBiomeList, + aAllowToGenerateinVoid); } @Override public boolean executeWorldgen(World aWorld, Random aRandom, String aBiome, int aDimensionType, int aChunkX, - int aChunkZ, IChunkProvider aChunkGenerator, IChunkProvider aChunkProvider) { + int aChunkZ, IChunkProvider aChunkGenerator, IChunkProvider aChunkProvider) { if (isGenerationAllowed(aWorld, aDimensionType, mDimensionType) - && (mBiomeList.isEmpty() || mBiomeList.contains(aBiome)) - && (mProbability <= 1 || aRandom.nextInt(mProbability) == 0)) { + && (mBiomeList.isEmpty() || mBiomeList.contains(aBiome)) + && (mProbability <= 1 || aRandom.nextInt(mProbability) == 0)) { for (int i = 0; i < mAmount; i++) { int tX = aChunkX + aRandom.nextInt(16), tY = mMinY + aRandom.nextInt(mMaxY - mMinY), - tZ = aChunkZ + aRandom.nextInt(16); + tZ = aChunkZ + aRandom.nextInt(16); Block tBlock = aWorld.getBlock(tX, tY, tZ); if (((mAllowToGenerateinVoid && aWorld.getBlock(tX, tY, tZ) - .isAir(aWorld, tX, tY, tZ)) - || (tBlock != null && (tBlock.isReplaceableOreGen(aWorld, tX, tY, tZ, Blocks.stone) - || tBlock.isReplaceableOreGen(aWorld, tX, tY, tZ, Blocks.end_stone) - || tBlock.isReplaceableOreGen(aWorld, tX, tY, tZ, Blocks.netherrack))))) { + .isAir(aWorld, tX, tY, tZ)) + || (tBlock != null && (tBlock.isReplaceableOreGen(aWorld, tX, tY, tZ, Blocks.stone) + || tBlock.isReplaceableOreGen(aWorld, tX, tY, tZ, Blocks.end_stone) + || tBlock.isReplaceableOreGen(aWorld, tX, tY, tZ, Blocks.netherrack))))) { aWorld.setBlock(tX, tY, tZ, mBlock, mBlockMeta, 0); } } diff --git a/src/main/java/gregtech/api/world/GT_Worldgen_Ore_SingleBlock_UnderLava.java b/src/main/java/gregtech/api/world/GT_Worldgen_Ore_SingleBlock_UnderLava.java index 2c35dbf27e..956cd0eb4c 100644 --- a/src/main/java/gregtech/api/world/GT_Worldgen_Ore_SingleBlock_UnderLava.java +++ b/src/main/java/gregtech/api/world/GT_Worldgen_Ore_SingleBlock_UnderLava.java @@ -11,40 +11,40 @@ import net.minecraft.world.chunk.IChunkProvider; public class GT_Worldgen_Ore_SingleBlock_UnderLava extends GT_Worldgen_Ore { public GT_Worldgen_Ore_SingleBlock_UnderLava(String aName, boolean aDefault, Block aBlock, int aBlockMeta, - int aDimensionType, int aAmount, int aSize, int aProbability, int aMinY, int aMaxY, - Collection aBiomeList, boolean aAllowToGenerateinVoid) { + int aDimensionType, int aAmount, int aSize, int aProbability, int aMinY, int aMaxY, + Collection aBiomeList, boolean aAllowToGenerateinVoid) { super( - aName, - aDefault, - aBlock, - aBlockMeta, - aDimensionType, - aAmount, - aSize, - aProbability, - aMinY, - aMaxY, - aBiomeList, - aAllowToGenerateinVoid); + aName, + aDefault, + aBlock, + aBlockMeta, + aDimensionType, + aAmount, + aSize, + aProbability, + aMinY, + aMaxY, + aBiomeList, + aAllowToGenerateinVoid); } @Override public boolean executeCavegen(World aWorld, Random aRandom, String aBiome, int aDimensionType, int aChunkX, - int aChunkZ, IChunkProvider aChunkGenerator, IChunkProvider aChunkProvider) { + int aChunkZ, IChunkProvider aChunkGenerator, IChunkProvider aChunkProvider) { if (isGenerationAllowed(aWorld, aDimensionType, mDimensionType) - && (mBiomeList.isEmpty() || mBiomeList.contains(aBiome)) - && (mProbability <= 1 || aRandom.nextInt(mProbability) == 0)) { + && (mBiomeList.isEmpty() || mBiomeList.contains(aBiome)) + && (mProbability <= 1 || aRandom.nextInt(mProbability) == 0)) { for (int i = 0; i < mAmount; i++) { int tX = aChunkX + aRandom.nextInt(16), tY = mMinY + aRandom.nextInt(mMaxY - mMinY), - tZ = aChunkZ + aRandom.nextInt(16); + tZ = aChunkZ + aRandom.nextInt(16); Block tBlock = aWorld.getBlock(tX, tY, tZ); if (((mAllowToGenerateinVoid && aWorld.getBlock(tX, tY, tZ) - .isAir(aWorld, tX, tY, tZ)) - || (tBlock != null && (tBlock.isReplaceableOreGen(aWorld, tX, tY, tZ, Blocks.stone) - || tBlock.isReplaceableOreGen(aWorld, tX, tY, tZ, Blocks.end_stone) - || tBlock.isReplaceableOreGen(aWorld, tX, tY, tZ, Blocks.netherrack))))) { + .isAir(aWorld, tX, tY, tZ)) + || (tBlock != null && (tBlock.isReplaceableOreGen(aWorld, tX, tY, tZ, Blocks.stone) + || tBlock.isReplaceableOreGen(aWorld, tX, tY, tZ, Blocks.end_stone) + || tBlock.isReplaceableOreGen(aWorld, tX, tY, tZ, Blocks.netherrack))))) { if (aWorld.getBlock(tX, tY + 1, tZ) == Blocks.lava - || aWorld.getBlock(tX, tY, tZ) == Blocks.flowing_lava) + || aWorld.getBlock(tX, tY, tZ) == Blocks.flowing_lava) aWorld.setBlock(tX, tY, tZ, mBlock, mBlockMeta, 0); } } diff --git a/src/main/java/gregtech/client/GT_GUI_ClientConfig.java b/src/main/java/gregtech/client/GT_GUI_ClientConfig.java index 2a2c321fc7..1e23cd3e9d 100644 --- a/src/main/java/gregtech/client/GT_GUI_ClientConfig.java +++ b/src/main/java/gregtech/client/GT_GUI_ClientConfig.java @@ -20,13 +20,13 @@ public class GT_GUI_ClientConfig extends GuiConfig { public GT_GUI_ClientConfig(GuiScreen parentScreen) { super( - parentScreen, - getConfigElements(), - GregTech.ID, - "client", - false, - false, - getAbridgedConfigPath(GregTech_API.sClientDataFile.mConfig.toString())); + parentScreen, + getConfigElements(), + GregTech.ID, + "client", + false, + false, + getAbridgedConfigPath(GregTech_API.sClientDataFile.mConfig.toString())); } @SuppressWarnings("rawtypes") @@ -34,10 +34,10 @@ public class GT_GUI_ClientConfig extends GuiConfig { final Configuration config = GregTech_API.sClientDataFile.mConfig; setLanguageKeys(config); return config.getCategoryNames() - .stream() - .filter(name -> name.indexOf('.') == -1) - .map(name -> new ConfigElement(config.getCategory(name))) - .collect(Collectors.toList()); + .stream() + .filter(name -> name.indexOf('.') == -1) + .map(name -> new ConfigElement(config.getCategory(name))) + .collect(Collectors.toList()); } private static void setLanguageKeys(Configuration config) { @@ -50,7 +50,7 @@ public class GT_GUI_ClientConfig extends GuiConfig { int defaultStart = name.lastIndexOf('_'); String realName = defaultStart >= 0 ? name.substring(0, defaultStart) : name; entry.getValue() - .setLanguageKey(String.format("%s.%s", category.getLanguagekey(), realName)); + .setLanguageKey(String.format("%s.%s", category.getLanguagekey(), realName)); } } } diff --git a/src/main/java/gregtech/client/GT_SoundLoop.java b/src/main/java/gregtech/client/GT_SoundLoop.java index 135ef032f5..905f2c20d3 100644 --- a/src/main/java/gregtech/client/GT_SoundLoop.java +++ b/src/main/java/gregtech/client/GT_SoundLoop.java @@ -21,7 +21,7 @@ public class GT_SoundLoop extends MovingSound { private boolean fadeMe = false; public GT_SoundLoop(ResourceLocation p_i45104_1_, IGregTechTileEntity base, boolean stopWhenActive, - boolean stopWhenInactive) { + boolean stopWhenInactive) { super(p_i45104_1_); this.whileActive = stopWhenActive; this.whileInactive = stopWhenInactive; @@ -34,7 +34,7 @@ public class GT_SoundLoop extends MovingSound { } public GT_SoundLoop(ResourceLocation sound, MultiTileBasicMachine base, boolean stopWhenActive, - boolean stopWhenInactive) { + boolean stopWhenInactive) { super(sound); this.whileActive = stopWhenActive; this.whileInactive = stopWhenInactive; @@ -61,13 +61,8 @@ public class GT_SoundLoop extends MovingSound { volume += VOLUME_RAMP; } World world = Minecraft.getMinecraft().thePlayer.worldObj; - donePlaying = world.provider.dimensionId != worldID || !world.checkChunksExist( - (int) xPosF, - (int) yPosF, - (int) zPosF, - (int) xPosF, - (int) yPosF, - (int) zPosF); + donePlaying = world.provider.dimensionId != worldID + || !world.checkChunksExist((int) xPosF, (int) yPosF, (int) zPosF, (int) xPosF, (int) yPosF, (int) zPosF); if (donePlaying) return; TileEntity tile = world.getTileEntity((int) xPosF, (int) yPosF, (int) zPosF); if ((tile instanceof IGregTechTileEntity)) { diff --git a/src/main/java/gregtech/client/GT_TooltipHandler.java b/src/main/java/gregtech/client/GT_TooltipHandler.java index 221e000b13..57a21722d2 100644 --- a/src/main/java/gregtech/client/GT_TooltipHandler.java +++ b/src/main/java/gregtech/client/GT_TooltipHandler.java @@ -29,142 +29,142 @@ public class GT_TooltipHandler { UMV(text(RED + BOLD + UNDERLINE + "UMV-Tier")), UXV(animatedText("UXV-Tier", 1, 100, DARK_PURPLE + BOLD + UNDERLINE, DARK_RED + UNDERLINE + BOLD)), MAX(chain( - animatedText( - "X", - 1, - 100, - LIGHT_PURPLE + BOLD + OBFUSCATED + UNDERLINE, - RED + BOLD + OBFUSCATED + UNDERLINE, - GOLD + OBFUSCATED + BOLD + UNDERLINE, - YELLOW + OBFUSCATED + BOLD + UNDERLINE, - GREEN + OBFUSCATED + BOLD + UNDERLINE, - AQUA + OBFUSCATED + BOLD + UNDERLINE, - BLUE + OBFUSCATED + BOLD + UNDERLINE), - animatedText( - "MAX-Tier", - 1, - 100, - RED + BOLD + UNDERLINE, - GOLD + BOLD + UNDERLINE, - YELLOW + BOLD + UNDERLINE, - GREEN + BOLD + UNDERLINE, - AQUA + BOLD + UNDERLINE, - BLUE + BOLD + UNDERLINE, - LIGHT_PURPLE + BOLD + UNDERLINE), - animatedText( - "X", - 1, - 100, - GOLD + OBFUSCATED + BOLD + UNDERLINE, - YELLOW + OBFUSCATED + BOLD + UNDERLINE, - GREEN + OBFUSCATED + BOLD + UNDERLINE, - AQUA + OBFUSCATED + BOLD + UNDERLINE, - BLUE + OBFUSCATED + BOLD + UNDERLINE, - LIGHT_PURPLE + OBFUSCATED + BOLD + UNDERLINE, - RED + OBFUSCATED + BOLD + UNDERLINE))), + animatedText( + "X", + 1, + 100, + LIGHT_PURPLE + BOLD + OBFUSCATED + UNDERLINE, + RED + BOLD + OBFUSCATED + UNDERLINE, + GOLD + OBFUSCATED + BOLD + UNDERLINE, + YELLOW + OBFUSCATED + BOLD + UNDERLINE, + GREEN + OBFUSCATED + BOLD + UNDERLINE, + AQUA + OBFUSCATED + BOLD + UNDERLINE, + BLUE + OBFUSCATED + BOLD + UNDERLINE), + animatedText( + "MAX-Tier", + 1, + 100, + RED + BOLD + UNDERLINE, + GOLD + BOLD + UNDERLINE, + YELLOW + BOLD + UNDERLINE, + GREEN + BOLD + UNDERLINE, + AQUA + BOLD + UNDERLINE, + BLUE + BOLD + UNDERLINE, + LIGHT_PURPLE + BOLD + UNDERLINE), + animatedText( + "X", + 1, + 100, + GOLD + OBFUSCATED + BOLD + UNDERLINE, + YELLOW + OBFUSCATED + BOLD + UNDERLINE, + GREEN + OBFUSCATED + BOLD + UNDERLINE, + AQUA + OBFUSCATED + BOLD + UNDERLINE, + BLUE + OBFUSCATED + BOLD + UNDERLINE, + LIGHT_PURPLE + OBFUSCATED + BOLD + UNDERLINE, + RED + OBFUSCATED + BOLD + UNDERLINE))), ERV(chain( - animatedText( - "E", - 1, - 100, - DARK_RED + BOLD + UNDERLINE, - DARK_RED + BOLD + UNDERLINE, - DARK_RED + BOLD + UNDERLINE, - DARK_RED + BOLD + UNDERLINE, - DARK_GRAY + OBFUSCATED + BOLD + UNDERLINE), - animatedText( - "R", - 1, - 100, - DARK_RED + BOLD + UNDERLINE, - DARK_RED + BOLD + UNDERLINE, - DARK_RED + BOLD + UNDERLINE, - DARK_RED + BOLD + UNDERLINE, - DARK_RED + BOLD + UNDERLINE, - DARK_RED + BOLD + UNDERLINE, - DARK_GRAY + OBFUSCATED + BOLD + UNDERLINE), - animatedText( - "R", - 1, - 200, - DARK_RED + BOLD + UNDERLINE, - DARK_RED + BOLD + UNDERLINE, - DARK_RED + BOLD + UNDERLINE, - DARK_RED + BOLD + UNDERLINE, - DARK_RED + BOLD + UNDERLINE, - DARK_RED + BOLD + UNDERLINE, - DARK_GRAY + OBFUSCATED + BOLD + UNDERLINE), - animatedText( - "O", - 1, - 150, - DARK_RED + BOLD + UNDERLINE, - DARK_RED + BOLD + UNDERLINE, - DARK_RED + BOLD + UNDERLINE, - DARK_GRAY + OBFUSCATED + BOLD + UNDERLINE), - animatedText( - "R", - 1, - 150, - DARK_RED + BOLD + UNDERLINE, - DARK_RED + BOLD + UNDERLINE, - DARK_RED + BOLD + UNDERLINE, - DARK_RED + BOLD + UNDERLINE, - DARK_RED + BOLD + UNDERLINE, - DARK_RED + BOLD + UNDERLINE, - DARK_GRAY + OBFUSCATED + BOLD + UNDERLINE), - animatedText( - "-", - 1, - 150, - DARK_RED + BOLD + UNDERLINE, - DARK_RED + BOLD + UNDERLINE, - DARK_RED + BOLD + UNDERLINE, - DARK_RED + BOLD + UNDERLINE, - DARK_GRAY + OBFUSCATED + BOLD + UNDERLINE), - animatedText( - "T", - 1, - 200, - DARK_RED + BOLD + UNDERLINE, - DARK_RED + BOLD + UNDERLINE, - DARK_RED + BOLD + UNDERLINE, - DARK_RED + BOLD + UNDERLINE, - DARK_GRAY + OBFUSCATED + BOLD + UNDERLINE), - animatedText( - "i", - 1, - 100, - DARK_RED + BOLD + UNDERLINE, - DARK_RED + BOLD + UNDERLINE, - DARK_RED + BOLD + UNDERLINE, - DARK_RED + BOLD + UNDERLINE, - DARK_RED + BOLD + UNDERLINE, - DARK_RED + BOLD + UNDERLINE, - DARK_RED + BOLD + UNDERLINE, - DARK_GRAY + OBFUSCATED + BOLD + UNDERLINE), - animatedText( - "e", - 1, - 150, - DARK_RED + BOLD + UNDERLINE, - DARK_RED + BOLD + UNDERLINE, - DARK_RED + BOLD + UNDERLINE, - DARK_RED + BOLD + UNDERLINE, - DARK_RED + BOLD + UNDERLINE, - DARK_RED + BOLD + UNDERLINE, - DARK_RED + BOLD + UNDERLINE, - DARK_GRAY + OBFUSCATED + BOLD + UNDERLINE), - animatedText( - "r", - 1, - 100, - DARK_RED + BOLD + UNDERLINE, - DARK_RED + BOLD + UNDERLINE, - DARK_RED + BOLD + UNDERLINE, - DARK_RED + BOLD + UNDERLINE, - DARK_RED + BOLD + UNDERLINE, - DARK_GRAY + OBFUSCATED + BOLD + UNDERLINE))); + animatedText( + "E", + 1, + 100, + DARK_RED + BOLD + UNDERLINE, + DARK_RED + BOLD + UNDERLINE, + DARK_RED + BOLD + UNDERLINE, + DARK_RED + BOLD + UNDERLINE, + DARK_GRAY + OBFUSCATED + BOLD + UNDERLINE), + animatedText( + "R", + 1, + 100, + DARK_RED + BOLD + UNDERLINE, + DARK_RED + BOLD + UNDERLINE, + DARK_RED + BOLD + UNDERLINE, + DARK_RED + BOLD + UNDERLINE, + DARK_RED + BOLD + UNDERLINE, + DARK_RED + BOLD + UNDERLINE, + DARK_GRAY + OBFUSCATED + BOLD + UNDERLINE), + animatedText( + "R", + 1, + 200, + DARK_RED + BOLD + UNDERLINE, + DARK_RED + BOLD + UNDERLINE, + DARK_RED + BOLD + UNDERLINE, + DARK_RED + BOLD + UNDERLINE, + DARK_RED + BOLD + UNDERLINE, + DARK_RED + BOLD + UNDERLINE, + DARK_GRAY + OBFUSCATED + BOLD + UNDERLINE), + animatedText( + "O", + 1, + 150, + DARK_RED + BOLD + UNDERLINE, + DARK_RED + BOLD + UNDERLINE, + DARK_RED + BOLD + UNDERLINE, + DARK_GRAY + OBFUSCATED + BOLD + UNDERLINE), + animatedText( + "R", + 1, + 150, + DARK_RED + BOLD + UNDERLINE, + DARK_RED + BOLD + UNDERLINE, + DARK_RED + BOLD + UNDERLINE, + DARK_RED + BOLD + UNDERLINE, + DARK_RED + BOLD + UNDERLINE, + DARK_RED + BOLD + UNDERLINE, + DARK_GRAY + OBFUSCATED + BOLD + UNDERLINE), + animatedText( + "-", + 1, + 150, + DARK_RED + BOLD + UNDERLINE, + DARK_RED + BOLD + UNDERLINE, + DARK_RED + BOLD + UNDERLINE, + DARK_RED + BOLD + UNDERLINE, + DARK_GRAY + OBFUSCATED + BOLD + UNDERLINE), + animatedText( + "T", + 1, + 200, + DARK_RED + BOLD + UNDERLINE, + DARK_RED + BOLD + UNDERLINE, + DARK_RED + BOLD + UNDERLINE, + DARK_RED + BOLD + UNDERLINE, + DARK_GRAY + OBFUSCATED + BOLD + UNDERLINE), + animatedText( + "i", + 1, + 100, + DARK_RED + BOLD + UNDERLINE, + DARK_RED + BOLD + UNDERLINE, + DARK_RED + BOLD + UNDERLINE, + DARK_RED + BOLD + UNDERLINE, + DARK_RED + BOLD + UNDERLINE, + DARK_RED + BOLD + UNDERLINE, + DARK_RED + BOLD + UNDERLINE, + DARK_GRAY + OBFUSCATED + BOLD + UNDERLINE), + animatedText( + "e", + 1, + 150, + DARK_RED + BOLD + UNDERLINE, + DARK_RED + BOLD + UNDERLINE, + DARK_RED + BOLD + UNDERLINE, + DARK_RED + BOLD + UNDERLINE, + DARK_RED + BOLD + UNDERLINE, + DARK_RED + BOLD + UNDERLINE, + DARK_RED + BOLD + UNDERLINE, + DARK_GRAY + OBFUSCATED + BOLD + UNDERLINE), + animatedText( + "r", + 1, + 100, + DARK_RED + BOLD + UNDERLINE, + DARK_RED + BOLD + UNDERLINE, + DARK_RED + BOLD + UNDERLINE, + DARK_RED + BOLD + UNDERLINE, + DARK_RED + BOLD + UNDERLINE, + DARK_GRAY + OBFUSCATED + BOLD + UNDERLINE))); private final Supplier tooltip; diff --git a/src/main/java/gregtech/common/GT_Client.java b/src/main/java/gregtech/common/GT_Client.java index af7a4a6c00..2874bde726 100644 --- a/src/main/java/gregtech/common/GT_Client.java +++ b/src/main/java/gregtech/common/GT_Client.java @@ -97,47 +97,47 @@ public class GT_Client extends GT_Proxy implements Runnable { private static final List ROTATABLE_VANILLA_BLOCKS; private static final int[][] GRID_SWITCH_TABLE = new int[][] { { 0, 5, 3, 1, 2, 4 }, { 5, 0, 1, 3, 2, 4 }, - { 1, 3, 0, 5, 2, 4 }, { 3, 1, 5, 0, 2, 4 }, { 4, 2, 3, 1, 0, 5 }, { 2, 4, 3, 1, 5, 0 }, }; + { 1, 3, 0, 5, 2, 4 }, { 3, 1, 5, 0, 2, 4 }, { 4, 2, 3, 1, 0, 5 }, { 2, 4, 3, 1, 5, 0 }, }; // don't ask. these "just works" private static final Transformation ROTATION_MARKER_TRANSFORM_CENTER = new Scale(0.5); private static final Transformation[] ROTATION_MARKER_TRANSFORMS_SIDES_TRANSFORMS = { - new Scale(0.25).with(new Translation(0, 0, 0.375)) - .compile(), - new Scale(0.25).with(new Translation(0.375, 0, 0)) - .compile(), - new Scale(0.25).with(new Translation(0, 0, -0.375)) - .compile(), - new Scale(0.25).with(new Translation(-0.375, 0, 0)) - .compile(), }; + new Scale(0.25).with(new Translation(0, 0, 0.375)) + .compile(), + new Scale(0.25).with(new Translation(0.375, 0, 0)) + .compile(), + new Scale(0.25).with(new Translation(0, 0, -0.375)) + .compile(), + new Scale(0.25).with(new Translation(-0.375, 0, 0)) + .compile(), }; private static final int[] ROTATION_MARKER_TRANSFORMS_SIDES = { -1, -1, 2, 0, 3, 1, -1, -1, 0, 2, 3, 1, 0, 2, -1, - -1, 3, 1, 2, 0, -1, -1, 3, 1, 1, 3, 2, 0, -1, -1, 3, 1, 2, 0, -1, -1 }; + -1, 3, 1, 2, 0, -1, -1, 3, 1, 1, 3, 2, 0, -1, -1, 3, 1, 2, 0, -1, -1 }; private static final Transformation[] ROTATION_MARKER_TRANSFORMS_CORNER = { - new Scale(0.25).with(new Translation(0.375, 0, 0.375)) - .compile(), - new Scale(0.25).with(new Translation(-0.375, 0, 0.375)) - .compile(), - new Scale(0.25).with(new Translation(0.375, 0, -0.375)) - .compile(), - new Scale(0.25).with(new Translation(-0.375, 0, -0.375)) - .compile(), }; + new Scale(0.25).with(new Translation(0.375, 0, 0.375)) + .compile(), + new Scale(0.25).with(new Translation(-0.375, 0, 0.375)) + .compile(), + new Scale(0.25).with(new Translation(0.375, 0, -0.375)) + .compile(), + new Scale(0.25).with(new Translation(-0.375, 0, -0.375)) + .compile(), }; private static int rotationMarkerDisplayList; private static boolean rotationMarkerDisplayListCompiled = false; static { ROTATABLE_VANILLA_BLOCKS = Arrays.asList( - Blocks.piston, - Blocks.sticky_piston, - Blocks.furnace, - Blocks.lit_furnace, - Blocks.dropper, - Blocks.dispenser, - Blocks.chest, - Blocks.trapped_chest, - Blocks.ender_chest, - Blocks.hopper, - Blocks.pumpkin, - Blocks.lit_pumpkin); + Blocks.piston, + Blocks.sticky_piston, + Blocks.furnace, + Blocks.lit_furnace, + Blocks.dropper, + Blocks.dispenser, + Blocks.chest, + Blocks.trapped_chest, + Blocks.ender_chest, + Blocks.hopper, + Blocks.pumpkin, + Blocks.lit_pumpkin); } private final HashSet mCapeList = new HashSet<>(); @@ -181,103 +181,103 @@ public class GT_Client extends GT_Proxy implements Runnable { mAnimationTick = 0L; mAnimationDirection = false; mPosR = Arrays.asList( - Materials.Enderium, - Materials.Vinteum, - Materials.Uranium235, - Materials.InfusedGold, - Materials.Plutonium241, - Materials.NaquadahEnriched, - Materials.Naquadria, - Materials.InfusedOrder, - Materials.Force, - Materials.Pyrotheum, - Materials.Sunnarium, - Materials.Glowstone, - Materials.Thaumium, - Materials.InfusedVis, - Materials.InfusedAir, - Materials.InfusedFire, - Materials.FierySteel, - Materials.Firestone); + Materials.Enderium, + Materials.Vinteum, + Materials.Uranium235, + Materials.InfusedGold, + Materials.Plutonium241, + Materials.NaquadahEnriched, + Materials.Naquadria, + Materials.InfusedOrder, + Materials.Force, + Materials.Pyrotheum, + Materials.Sunnarium, + Materials.Glowstone, + Materials.Thaumium, + Materials.InfusedVis, + Materials.InfusedAir, + Materials.InfusedFire, + Materials.FierySteel, + Materials.Firestone); mPosG = Arrays.asList( - Materials.Enderium, - Materials.Vinteum, - Materials.Uranium235, - Materials.InfusedGold, - Materials.Plutonium241, - Materials.NaquadahEnriched, - Materials.Naquadria, - Materials.InfusedOrder, - Materials.Force, - Materials.Pyrotheum, - Materials.Sunnarium, - Materials.Glowstone, - Materials.InfusedAir, - Materials.InfusedEarth); + Materials.Enderium, + Materials.Vinteum, + Materials.Uranium235, + Materials.InfusedGold, + Materials.Plutonium241, + Materials.NaquadahEnriched, + Materials.Naquadria, + Materials.InfusedOrder, + Materials.Force, + Materials.Pyrotheum, + Materials.Sunnarium, + Materials.Glowstone, + Materials.InfusedAir, + Materials.InfusedEarth); mPosB = Arrays.asList( - Materials.Enderium, - Materials.Vinteum, - Materials.Uranium235, - Materials.InfusedGold, - Materials.Plutonium241, - Materials.NaquadahEnriched, - Materials.Naquadria, - Materials.InfusedOrder, - Materials.InfusedVis, - Materials.InfusedWater, - Materials.Thaumium); + Materials.Enderium, + Materials.Vinteum, + Materials.Uranium235, + Materials.InfusedGold, + Materials.Plutonium241, + Materials.NaquadahEnriched, + Materials.Naquadria, + Materials.InfusedOrder, + Materials.InfusedVis, + Materials.InfusedWater, + Materials.Thaumium); mNegR = Arrays.asList(Materials.InfusedEntropy, Materials.NetherStar); mNegG = Arrays.asList(Materials.InfusedEntropy, Materials.NetherStar); mNegB = Arrays.asList(Materials.InfusedEntropy, Materials.NetherStar); mMoltenPosR = Arrays.asList( - Materials.Enderium, - Materials.NetherStar, - Materials.Vinteum, - Materials.Uranium235, - Materials.InfusedGold, - Materials.Plutonium241, - Materials.NaquadahEnriched, - Materials.Naquadria, - Materials.InfusedOrder, - Materials.Force, - Materials.Pyrotheum, - Materials.Sunnarium, - Materials.Glowstone, - Materials.Thaumium, - Materials.InfusedVis, - Materials.InfusedAir, - Materials.InfusedFire, - Materials.FierySteel, - Materials.Firestone); + Materials.Enderium, + Materials.NetherStar, + Materials.Vinteum, + Materials.Uranium235, + Materials.InfusedGold, + Materials.Plutonium241, + Materials.NaquadahEnriched, + Materials.Naquadria, + Materials.InfusedOrder, + Materials.Force, + Materials.Pyrotheum, + Materials.Sunnarium, + Materials.Glowstone, + Materials.Thaumium, + Materials.InfusedVis, + Materials.InfusedAir, + Materials.InfusedFire, + Materials.FierySteel, + Materials.Firestone); mMoltenPosG = Arrays.asList( - Materials.Enderium, - Materials.NetherStar, - Materials.Vinteum, - Materials.Uranium235, - Materials.InfusedGold, - Materials.Plutonium241, - Materials.NaquadahEnriched, - Materials.Naquadria, - Materials.InfusedOrder, - Materials.Force, - Materials.Pyrotheum, - Materials.Sunnarium, - Materials.Glowstone, - Materials.InfusedAir, - Materials.InfusedEarth); + Materials.Enderium, + Materials.NetherStar, + Materials.Vinteum, + Materials.Uranium235, + Materials.InfusedGold, + Materials.Plutonium241, + Materials.NaquadahEnriched, + Materials.Naquadria, + Materials.InfusedOrder, + Materials.Force, + Materials.Pyrotheum, + Materials.Sunnarium, + Materials.Glowstone, + Materials.InfusedAir, + Materials.InfusedEarth); mMoltenPosB = Arrays.asList( - Materials.Enderium, - Materials.NetherStar, - Materials.Vinteum, - Materials.Uranium235, - Materials.InfusedGold, - Materials.Plutonium241, - Materials.NaquadahEnriched, - Materials.Naquadria, - Materials.InfusedOrder, - Materials.InfusedVis, - Materials.InfusedWater, - Materials.Thaumium); + Materials.Enderium, + Materials.NetherStar, + Materials.Vinteum, + Materials.Uranium235, + Materials.InfusedGold, + Materials.Plutonium241, + Materials.NaquadahEnriched, + Materials.Naquadria, + Materials.InfusedOrder, + Materials.InfusedVis, + Materials.InfusedWater, + Materials.Thaumium); mMoltenNegR = Collections.singletonList(Materials.InfusedEntropy); mMoltenNegG = Collections.singletonList(Materials.InfusedEntropy); mMoltenNegB = Collections.singletonList(Materials.InfusedEntropy); @@ -286,7 +286,7 @@ public class GT_Client extends GT_Proxy implements Runnable { private static boolean checkedForChicken = false; private static void drawGrid(DrawBlockHighlightEvent aEvent, boolean showCoverConnections, boolean aIsWrench, - boolean aIsSneaking) { + boolean aIsSneaking) { if (!checkedForChicken) { try { Class.forName("codechicken.lib.vec.Rotation"); @@ -298,16 +298,16 @@ public class GT_Client extends GT_Proxy implements Runnable { GL11.glPushMatrix(); GL11.glTranslated( - -(aEvent.player.lastTickPosX - + (aEvent.player.posX - aEvent.player.lastTickPosX) * (double) aEvent.partialTicks), - -(aEvent.player.lastTickPosY - + (aEvent.player.posY - aEvent.player.lastTickPosY) * (double) aEvent.partialTicks), - -(aEvent.player.lastTickPosZ - + (aEvent.player.posZ - aEvent.player.lastTickPosZ) * (double) aEvent.partialTicks)); + -(aEvent.player.lastTickPosX + + (aEvent.player.posX - aEvent.player.lastTickPosX) * (double) aEvent.partialTicks), + -(aEvent.player.lastTickPosY + + (aEvent.player.posY - aEvent.player.lastTickPosY) * (double) aEvent.partialTicks), + -(aEvent.player.lastTickPosZ + + (aEvent.player.posZ - aEvent.player.lastTickPosZ) * (double) aEvent.partialTicks)); GL11.glTranslated( - (float) aEvent.target.blockX + 0.5F, - (float) aEvent.target.blockY + 0.5F, - (float) aEvent.target.blockZ + 0.5F); + (float) aEvent.target.blockX + 0.5F, + (float) aEvent.target.blockY + 0.5F, + (float) aEvent.target.blockZ + 0.5F); final int tSideHit = aEvent.target.sideHit; Rotation.sideRotations[tSideHit].glApply(); // draw grid @@ -323,10 +323,8 @@ public class GT_Client extends GT_Proxy implements Runnable { GL11.glVertex3d(+.25D, .0D, +.50D); GL11.glVertex3d(-.25D, .0D, -.50D); GL11.glVertex3d(-.25D, .0D, +.50D); - final TileEntity tTile = aEvent.player.worldObj.getTileEntity( - aEvent.target.blockX, - aEvent.target.blockY, - aEvent.target.blockZ); + final TileEntity tTile = aEvent.player.worldObj + .getTileEntity(aEvent.target.blockX, aEvent.target.blockY, aEvent.target.blockZ); // draw connection indicators byte tConnections = 0; @@ -404,18 +402,17 @@ public class GT_Client extends GT_Proxy implements Runnable { if (direction.ordinal() == tSideHit) drawExtendedRotationMarker(ROTATION_MARKER_TRANSFORM_CENTER, aIsSneaking, false); else if (direction.getOpposite() - .ordinal() - == tSideHit) { - for (Transformation t : ROTATION_MARKER_TRANSFORMS_CORNER) { - drawExtendedRotationMarker(t, aIsSneaking, true); - } - } else { - drawExtendedRotationMarker( - ROTATION_MARKER_TRANSFORMS_SIDES_TRANSFORMS[ROTATION_MARKER_TRANSFORMS_SIDES[tSideHit - * 6 + direction.ordinal()]], - aIsSneaking, - true); + .ordinal() == tSideHit) { + for (Transformation t : ROTATION_MARKER_TRANSFORMS_CORNER) { + drawExtendedRotationMarker(t, aIsSneaking, true); } + } else { + drawExtendedRotationMarker( + ROTATION_MARKER_TRANSFORMS_SIDES_TRANSFORMS[ROTATION_MARKER_TRANSFORMS_SIDES[tSideHit * 6 + + direction.ordinal()]], + aIsSneaking, + true); + } } } GL11.glPopMatrix(); // get back to player center @@ -443,15 +440,15 @@ public class GT_Client extends GT_Proxy implements Runnable { GL11.glBegin(GL_LINE_LOOP); for (int i = 0; i <= ROTATION_MARKER_RESOLUTION; i++) { GL11.glVertex3d( - Math.cos(i * Math.PI * 1.75 / ROTATION_MARKER_RESOLUTION) * 0.4, - 0, - Math.sin(i * Math.PI * 1.75 / ROTATION_MARKER_RESOLUTION) * 0.4); + Math.cos(i * Math.PI * 1.75 / ROTATION_MARKER_RESOLUTION) * 0.4, + 0, + Math.sin(i * Math.PI * 1.75 / ROTATION_MARKER_RESOLUTION) * 0.4); } for (int i = ROTATION_MARKER_RESOLUTION; i >= 0; i--) { GL11.glVertex3d( - Math.cos(i * Math.PI * 1.75 / ROTATION_MARKER_RESOLUTION) * 0.24, - 0, - Math.sin(i * Math.PI * 1.75 / ROTATION_MARKER_RESOLUTION) * 0.24); + Math.cos(i * Math.PI * 1.75 / ROTATION_MARKER_RESOLUTION) * 0.24, + 0, + Math.sin(i * Math.PI * 1.75 / ROTATION_MARKER_RESOLUTION) * 0.24); } GL11.glVertex3d(0.141114561800, 0, 0); GL11.glVertex3d(0.32, 0, -0.178885438199); @@ -532,30 +529,28 @@ public class GT_Client extends GT_Proxy implements Runnable { MinecraftForge.EVENT_BUS.register(new ExtraIcons()); Minecraft.getMinecraft() - .getResourcePackRepository().rprMetadataSerializer.registerMetadataSectionType( - new ColorsMetadataSectionSerializer(), - ColorsMetadataSection.class); + .getResourcePackRepository().rprMetadataSerializer + .registerMetadataSectionType(new ColorsMetadataSectionSerializer(), ColorsMetadataSection.class); new GT_MetaTileEntity_AdvDebugStructureWriter.ForgeEventHandler(); final String[] arr = { "renadi", "hanakocz", "MysteryDump", "Flaver4", "x_Fame", "Peluche321", - "Goshen_Ithilien", "manf", "Bimgo", "leagris", "IAmMinecrafter02", "Cerous", "Devilin_Pixy", - "Bkarlsson87", "BadAlchemy", "CaballoCraft", "melanclock", "Resursator", "demanzke", "AndrewAmmerlaan", - "Deathlycraft", "Jirajha", "Axlegear", "kei_kouma", "Dracion", "dungi", "Dorfschwein", "Zero Tw0", - "mattiagraz85", "sebastiank30", "Plem", "invultri", "grillo126", "malcanteth", "Malevolence_", - "Nicholas_Manuel", "Sirbab", "kehaan", "bpgames123", "semig0d", "9000bowser", "Sovereignty89", - "Kris1432", "xander_cage_", "samuraijp", "bsaa", "SpwnX", "tworf", "Kadah", "kanni", "Stute", "Hegik", - "Onlyme", "t3hero", "Hotchi", "jagoly", "Nullav", "BH5432", "Sibmer", "inceee", "foxxx0", "Hartok", - "TMSama", "Shlnen", "Carsso", "zessirb", "meep310", "Seldron", "yttr1um", "hohounk", "freebug", - "Sylphio", "jmarler", "Saberawr", "r00teniy", "Neonbeta", "yinscape", "voooon24", "Quintine", - "peach774", "lepthymo", "bildeman", "Kremnari", "Aerosalo", "OndraSter", "oscares91", "mr10movie", - "Daxx367x2", "EGERTRONx", "aka13_404", "Abouttabs", "Johnstaal", "djshiny99", "megatronp", "DZCreeper", - "Kane_Hart", "Truculent", "vidplace7", "simon6689", "MomoNasty", "UnknownXLV", "goreacraft", - "Fluttermine", "Daddy_Cecil", "MrMaleficus", "TigersFangs", "cublikefoot", "chainman564", "NikitaBuker", - "Misha999777", "25FiveDetail", "AntiCivilBoy", "michaelbrady", "xXxIceFirexXx", "Speedynutty68", - "GarretSidzaka", "HallowCharm977", "mastermind1919", "The_Hypersonic", "diamondguy2798", - "zF4ll3nPr3d4t0r", "CrafterOfMines57", "XxELIT3xSNIP3RxX", "SuterusuKusanagi", "xavier0014", "adamros", - "alexbegt" }; + "Goshen_Ithilien", "manf", "Bimgo", "leagris", "IAmMinecrafter02", "Cerous", "Devilin_Pixy", "Bkarlsson87", + "BadAlchemy", "CaballoCraft", "melanclock", "Resursator", "demanzke", "AndrewAmmerlaan", "Deathlycraft", + "Jirajha", "Axlegear", "kei_kouma", "Dracion", "dungi", "Dorfschwein", "Zero Tw0", "mattiagraz85", + "sebastiank30", "Plem", "invultri", "grillo126", "malcanteth", "Malevolence_", "Nicholas_Manuel", "Sirbab", + "kehaan", "bpgames123", "semig0d", "9000bowser", "Sovereignty89", "Kris1432", "xander_cage_", "samuraijp", + "bsaa", "SpwnX", "tworf", "Kadah", "kanni", "Stute", "Hegik", "Onlyme", "t3hero", "Hotchi", "jagoly", + "Nullav", "BH5432", "Sibmer", "inceee", "foxxx0", "Hartok", "TMSama", "Shlnen", "Carsso", "zessirb", + "meep310", "Seldron", "yttr1um", "hohounk", "freebug", "Sylphio", "jmarler", "Saberawr", "r00teniy", + "Neonbeta", "yinscape", "voooon24", "Quintine", "peach774", "lepthymo", "bildeman", "Kremnari", "Aerosalo", + "OndraSter", "oscares91", "mr10movie", "Daxx367x2", "EGERTRONx", "aka13_404", "Abouttabs", "Johnstaal", + "djshiny99", "megatronp", "DZCreeper", "Kane_Hart", "Truculent", "vidplace7", "simon6689", "MomoNasty", + "UnknownXLV", "goreacraft", "Fluttermine", "Daddy_Cecil", "MrMaleficus", "TigersFangs", "cublikefoot", + "chainman564", "NikitaBuker", "Misha999777", "25FiveDetail", "AntiCivilBoy", "michaelbrady", + "xXxIceFirexXx", "Speedynutty68", "GarretSidzaka", "HallowCharm977", "mastermind1919", "The_Hypersonic", + "diamondguy2798", "zF4ll3nPr3d4t0r", "CrafterOfMines57", "XxELIT3xSNIP3RxX", "SuterusuKusanagi", + "xavier0014", "adamros", "alexbegt" }; for (String tName : arr) { mCapeList.add(tName.toLowerCase()); } @@ -596,7 +591,7 @@ public class GT_Client extends GT_Proxy implements Runnable { try { if (GregTech_API.METATILEENTITIES[i] != null) { GregTech_API.METATILEENTITIES[i].getStackForm(1L) - .getTooltip(null, true); + .getTooltip(null, true); GT_Log.out.println("META " + i + " " + GregTech_API.METATILEENTITIES[i].getMetaName()); } } catch (Throwable e) { @@ -611,18 +606,16 @@ public class GT_Client extends GT_Proxy implements Runnable { // reobf doesn't work with lambda, so this must be a class // noinspection Convert2Lambda ((IReloadableResourceManager) Minecraft.getMinecraft() - .getResourceManager()).registerReloadListener( - new IResourceManagerReloadListener() { - - @Override - public void onResourceManagerReload(IResourceManager l) { - GT_GUIColorOverride.onResourceManagerReload(); - FallbackableSteamTexture.reload(); - GregTech_API.sCoverBehaviors.values() - .forEach( - GT_CoverBehaviorBase::reloadColorOverride); - } - }); + .getResourceManager()).registerReloadListener(new IResourceManagerReloadListener() { + + @Override + public void onResourceManagerReload(IResourceManager l) { + GT_GUIColorOverride.onResourceManagerReload(); + FallbackableSteamTexture.reload(); + GregTech_API.sCoverBehaviors.values() + .forEach(GT_CoverBehaviorBase::reloadColorOverride); + } + }); } @Override @@ -631,8 +624,8 @@ public class GT_Client extends GT_Proxy implements Runnable { try (final Scanner tScanner = new Scanner(new URL(GT_CAPE_LIST_URL).openStream())) { while (tScanner.hasNextLine()) { this.mCapeList.add( - tScanner.nextLine() - .toLowerCase()); + tScanner.nextLine() + .toLowerCase()); } } catch (Throwable e) { e.printStackTrace(GT_Log.err); @@ -641,7 +634,7 @@ public class GT_Client extends GT_Proxy implements Runnable { try (final Scanner tScanner = new Scanner(new URL(GTNH_CAPE_LIST_URL).openStream())) { while (tScanner.hasNextLine()) { final String tName = tScanner.nextLine() - .toLowerCase(); + .toLowerCase(); if (tName.contains(":")) { if (!this.mCapeList.contains(tName.substring(0, tName.indexOf(":")))) { this.mCapeList.add(tName); @@ -682,38 +675,38 @@ public class GT_Client extends GT_Proxy implements Runnable { GT_Values.NW.sendToServer(new GT_Packet_ClientPreference(mPreference)); if (!Minecraft.getMinecraft() - .isSingleplayer()) { + .isSingleplayer()) { // Check for more IC2 recipes to also catch MineTweaker additions GT_ModHandler.addIC2RecipesToGT( - GT_ModHandler.getMaceratorRecipeList(), - GT_Recipe.GT_Recipe_Map.sMaceratorRecipes, - true, - true, - true); + GT_ModHandler.getMaceratorRecipeList(), + GT_Recipe.GT_Recipe_Map.sMaceratorRecipes, + true, + true, + true); GT_ModHandler.addIC2RecipesToGT( - GT_ModHandler.getCompressorRecipeList(), - GT_Recipe.GT_Recipe_Map.sCompressorRecipes, - true, - true, - true); + GT_ModHandler.getCompressorRecipeList(), + GT_Recipe.GT_Recipe_Map.sCompressorRecipes, + true, + true, + true); GT_ModHandler.addIC2RecipesToGT( - GT_ModHandler.getExtractorRecipeList(), - GT_Recipe.GT_Recipe_Map.sExtractorRecipes, - true, - true, - true); + GT_ModHandler.getExtractorRecipeList(), + GT_Recipe.GT_Recipe_Map.sExtractorRecipes, + true, + true, + true); GT_ModHandler.addIC2RecipesToGT( - GT_ModHandler.getOreWashingRecipeList(), - GT_Recipe.GT_Recipe_Map.sOreWasherRecipes, - false, - true, - true); + GT_ModHandler.getOreWashingRecipeList(), + GT_Recipe.GT_Recipe_Map.sOreWasherRecipes, + false, + true, + true); GT_ModHandler.addIC2RecipesToGT( - GT_ModHandler.getThermalCentrifugeRecipeList(), - GT_Recipe.GT_Recipe_Map.sThermalCentrifugeRecipes, - true, - true, - true); + GT_ModHandler.getThermalCentrifugeRecipeList(), + GT_Recipe.GT_Recipe_Map.sThermalCentrifugeRecipes, + true, + true, + true); } } afterSomeTime++; @@ -724,7 +717,7 @@ public class GT_Client extends GT_Proxy implements Runnable { } } for (Iterator> iterator = GT_Utility.sPlayedSoundMap.entrySet() - .iterator(); iterator.hasNext();) { + .iterator(); iterator.hasNext();) { Map.Entry tEntry = iterator.next(); if (tEntry.getValue() < 0) { iterator.remove(); @@ -736,23 +729,21 @@ public class GT_Client extends GT_Proxy implements Runnable { if (GT_Values.updateFluidDisplayItems) { final MovingObjectPosition trace = Minecraft.getMinecraft().objectMouseOver; if (trace != null && trace.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK - && (mLastUpdatedBlockX != trace.blockX && mLastUpdatedBlockY != trace.blockY - && mLastUpdatedBlockZ != trace.blockZ || afterSomeTime % 10 == 0)) { + && (mLastUpdatedBlockX != trace.blockX && mLastUpdatedBlockY != trace.blockY + && mLastUpdatedBlockZ != trace.blockZ || afterSomeTime % 10 == 0)) { mLastUpdatedBlockX = trace.blockX; mLastUpdatedBlockY = trace.blockY; mLastUpdatedBlockZ = trace.blockZ; - final TileEntity tileEntity = aEvent.player.worldObj.getTileEntity( - trace.blockX, - trace.blockY, - trace.blockZ); + final TileEntity tileEntity = aEvent.player.worldObj + .getTileEntity(trace.blockX, trace.blockY, trace.blockZ); if (tileEntity instanceof IGregTechTileEntity gtTile) { if (gtTile.getMetaTileEntity() instanceof IHasFluidDisplayItem) { GT_Values.NW.sendToServer( - new MessageUpdateFluidDisplayItem( - trace.blockX, - trace.blockY, - trace.blockZ, - gtTile.getWorld().provider.dimensionId)); + new MessageUpdateFluidDisplayItem( + trace.blockX, + trace.blockY, + trace.blockZ, + gtTile.getWorld().provider.dimensionId)); } } } @@ -773,34 +764,29 @@ public class GT_Client extends GT_Proxy implements Runnable { @SubscribeEvent public void onDrawBlockHighlight(DrawBlockHighlightEvent aEvent) { - final Block aBlock = aEvent.player.worldObj.getBlock( - aEvent.target.blockX, - aEvent.target.blockY, - aEvent.target.blockZ); - final TileEntity aTileEntity = aEvent.player.worldObj.getTileEntity( - aEvent.target.blockX, - aEvent.target.blockY, - aEvent.target.blockZ); + final Block aBlock = aEvent.player.worldObj + .getBlock(aEvent.target.blockX, aEvent.target.blockY, aEvent.target.blockZ); + final TileEntity aTileEntity = aEvent.player.worldObj + .getTileEntity(aEvent.target.blockX, aEvent.target.blockY, aEvent.target.blockZ); if (GT_Utility.isStackInList(aEvent.currentItem, GregTech_API.sWrenchList)) { if (aTileEntity instanceof ITurnable || ROTATABLE_VANILLA_BLOCKS.contains(aBlock) - || aTileEntity instanceof IWrenchable) - drawGrid(aEvent, false, true, aEvent.player.isSneaking()); + || aTileEntity instanceof IWrenchable) drawGrid(aEvent, false, true, aEvent.player.isSneaking()); return; } if (!(aTileEntity instanceof ICoverable)) return; if (GT_Utility.isStackInList(aEvent.currentItem, GregTech_API.sWireCutterList) - || GT_Utility.isStackInList(aEvent.currentItem, GregTech_API.sSolderingToolList)) { + || GT_Utility.isStackInList(aEvent.currentItem, GregTech_API.sSolderingToolList)) { if (((ICoverable) aTileEntity).getCoverIDAtSide((byte) aEvent.target.sideHit) == 0) drawGrid(aEvent, false, false, aEvent.player.isSneaking()); return; } if ((aEvent.currentItem == null && aEvent.player.isSneaking()) - || GT_Utility.isStackInList(aEvent.currentItem, GregTech_API.sCrowbarList) - || GT_Utility.isStackInList(aEvent.currentItem, GregTech_API.sScrewdriverList)) { + || GT_Utility.isStackInList(aEvent.currentItem, GregTech_API.sCrowbarList) + || GT_Utility.isStackInList(aEvent.currentItem, GregTech_API.sScrewdriverList)) { if (((ICoverable) aTileEntity).getCoverIDAtSide((byte) aEvent.target.sideHit) == 0) for (byte tSide : ALL_VALID_SIDES) if (((ICoverable) aTileEntity).getCoverIDAtSide(tSide) > 0) { drawGrid(aEvent, true, false, true); @@ -977,20 +963,15 @@ public class GT_Client extends GT_Proxy implements Runnable { }; if (tString.startsWith("streaming.")) { new WorldSpawnedEventBuilder.RecordEffectEventBuilder().setIdentifier(tString.substring(10)) - .setPosition(aX, aY, aZ) - .run(); + .setPosition(aX, aY, aZ) + .run(); } else { new WorldSpawnedEventBuilder.SoundEventBuilder().setVolume(3f) - .setPitch( - tString.startsWith("note.") - ? (float) Math.pow( - 2D, - (double) (aStack.stackSize - 13) - / 12D) - : 1.0F) - .setIdentifier(tString) - .setPosition(aX, aY, aZ) - .run(); + .setPitch( + tString.startsWith("note.") ? (float) Math.pow(2D, (double) (aStack.stackSize - 13) / 12D) : 1.0F) + .setIdentifier(tString) + .setPosition(aX, aY, aZ) + .run(); } } @@ -1017,19 +998,19 @@ public class GT_Client extends GT_Proxy implements Runnable { int hide = 0; for (int i : ids) { if (OreDictionary.getOreName(i) - .equals("craftingToolSolderingIron")) { + .equals("craftingToolSolderingIron")) { hide |= 0x1; break; } } if (GT_Utility.isStackInList(tCurrentItem, GregTech_API.sWrenchList) - || GT_Utility.isStackInList(tCurrentItem, GregTech_API.sScrewdriverList) - || GT_Utility.isStackInList(tCurrentItem, GregTech_API.sHardHammerList) - || GT_Utility.isStackInList(tCurrentItem, GregTech_API.sSoftHammerList) - || GT_Utility.isStackInList(tCurrentItem, GregTech_API.sWireCutterList) - || GT_Utility.isStackInList(tCurrentItem, GregTech_API.sSolderingToolList) - || GT_Utility.isStackInList(tCurrentItem, GregTech_API.sCrowbarList) - || GregTech_API.sCovers.containsKey(new GT_ItemStack(tCurrentItem))) { + || GT_Utility.isStackInList(tCurrentItem, GregTech_API.sScrewdriverList) + || GT_Utility.isStackInList(tCurrentItem, GregTech_API.sHardHammerList) + || GT_Utility.isStackInList(tCurrentItem, GregTech_API.sSoftHammerList) + || GT_Utility.isStackInList(tCurrentItem, GregTech_API.sWireCutterList) + || GT_Utility.isStackInList(tCurrentItem, GregTech_API.sSolderingToolList) + || GT_Utility.isStackInList(tCurrentItem, GregTech_API.sCrowbarList) + || GregTech_API.sCovers.containsKey(new GT_ItemStack(tCurrentItem))) { hide |= 0x2; } return hide; diff --git a/src/main/java/gregtech/common/GT_DummyWorld.java b/src/main/java/gregtech/common/GT_DummyWorld.java index 321e0688ce..d394ad3703 100644 --- a/src/main/java/gregtech/common/GT_DummyWorld.java +++ b/src/main/java/gregtech/common/GT_DummyWorld.java @@ -24,7 +24,7 @@ public class GT_DummyWorld extends World { public ItemStack mLastSetBlock = null; public GT_DummyWorld(ISaveHandler saveHandler, String name, WorldProvider worldProvider, - WorldSettings worldSettings, Profiler profiler) { + WorldSettings worldSettings, Profiler profiler) { super(saveHandler, name, worldSettings, worldProvider, profiler); this.rand = this.mRandom; } diff --git a/src/main/java/gregtech/common/GT_Network.java b/src/main/java/gregtech/common/GT_Network.java index b6d44be85b..6ab0ed4f02 100644 --- a/src/main/java/gregtech/common/GT_Network.java +++ b/src/main/java/gregtech/common/GT_Network.java @@ -39,26 +39,26 @@ public class GT_Network extends MessageToMessageCodec public GT_Network() { this( - "GregTech", - new GT_Packet_TileEntity(), // 0 - new GT_Packet_Sound(), // 1 - new GT_Packet_Block_Event(), // 2 - new GT_Packet_Ores(), // 3 - new GT_Packet_Pollution(), // 4 - new MessageSetFlaskCapacity(), // 5 - new GT_Packet_TileEntityCover(), // 6 - new GT_Packet_TileEntityCoverGUI(), // 7 - new MessageUpdateFluidDisplayItem(), // 8 - new GT_Packet_ClientPreference(), // 9 - new GT_Packet_WirelessRedstoneCover(), // 10 - new GT_Packet_TileEntityCoverNew(), // 11 - new GT_Packet_SetConfigurationCircuit(), // 12 - new GT_Packet_UpdateItem(), // 13 - new GT_Packet_SetLockedFluid(), // 14 - new GT_Packet_GtTileEntityGuiRequest(), // 15 - new GT_Packet_SendCoverData(), // 16 - new GT_Packet_RequestCoverData(), // 17 - new GT_Packet_MultiTileEntity() // 18 + "GregTech", + new GT_Packet_TileEntity(), // 0 + new GT_Packet_Sound(), // 1 + new GT_Packet_Block_Event(), // 2 + new GT_Packet_Ores(), // 3 + new GT_Packet_Pollution(), // 4 + new MessageSetFlaskCapacity(), // 5 + new GT_Packet_TileEntityCover(), // 6 + new GT_Packet_TileEntityCoverGUI(), // 7 + new MessageUpdateFluidDisplayItem(), // 8 + new GT_Packet_ClientPreference(), // 9 + new GT_Packet_WirelessRedstoneCover(), // 10 + new GT_Packet_TileEntityCoverNew(), // 11 + new GT_Packet_SetConfigurationCircuit(), // 12 + new GT_Packet_UpdateItem(), // 13 + new GT_Packet_SetLockedFluid(), // 14 + new GT_Packet_GtTileEntityGuiRequest(), // 15 + new GT_Packet_SendCoverData(), // 16 + new GT_Packet_RequestCoverData(), // 17 + new GT_Packet_MultiTileEntity() // 18 ); } @@ -75,22 +75,22 @@ public class GT_Network extends MessageToMessageCodec @Override protected void encode(ChannelHandlerContext aContext, GT_Packet aPacket, List aOutput) throws Exception { final ByteBuf tBuf = Unpooled.buffer() - .writeByte(aPacket.getPacketID()); + .writeByte(aPacket.getPacketID()); aPacket.encode(tBuf); aOutput.add( - new FMLProxyPacket( - tBuf, - aContext.channel() - .attr(NetworkRegistry.FML_CHANNEL) - .get())); + new FMLProxyPacket( + tBuf, + aContext.channel() + .attr(NetworkRegistry.FML_CHANNEL) + .get())); } @Override protected void decode(ChannelHandlerContext aContext, FMLProxyPacket aPacket, List aOutput) - throws Exception { + throws Exception { final ByteArrayDataInput aData = ByteStreams.newDataInput( - aPacket.payload() - .array()); + aPacket.payload() + .array()); final GT_Packet tPacket = this.mSubChannels[aData.readByte()].decode(aData); tPacket.setINetHandler(aPacket.handler()); aOutput.add(tPacket); @@ -107,34 +107,34 @@ public class GT_Network extends MessageToMessageCodec return; } this.mChannel.get(Side.SERVER) - .attr(FMLOutboundHandler.FML_MESSAGETARGET) - .set(FMLOutboundHandler.OutboundTarget.PLAYER); + .attr(FMLOutboundHandler.FML_MESSAGETARGET) + .set(FMLOutboundHandler.OutboundTarget.PLAYER); this.mChannel.get(Side.SERVER) - .attr(FMLOutboundHandler.FML_MESSAGETARGETARGS) - .set(aPlayer); + .attr(FMLOutboundHandler.FML_MESSAGETARGETARGS) + .set(aPlayer); this.mChannel.get(Side.SERVER) - .writeAndFlush(aPacket); + .writeAndFlush(aPacket); } @Override public void sendToAllAround(GT_Packet aPacket, NetworkRegistry.TargetPoint aPosition) { this.mChannel.get(Side.SERVER) - .attr(FMLOutboundHandler.FML_MESSAGETARGET) - .set(FMLOutboundHandler.OutboundTarget.ALLAROUNDPOINT); + .attr(FMLOutboundHandler.FML_MESSAGETARGET) + .set(FMLOutboundHandler.OutboundTarget.ALLAROUNDPOINT); this.mChannel.get(Side.SERVER) - .attr(FMLOutboundHandler.FML_MESSAGETARGETARGS) - .set(aPosition); + .attr(FMLOutboundHandler.FML_MESSAGETARGETARGS) + .set(aPosition); this.mChannel.get(Side.SERVER) - .writeAndFlush(aPacket); + .writeAndFlush(aPacket); } @Override public void sendToServer(GT_Packet aPacket) { this.mChannel.get(Side.CLIENT) - .attr(FMLOutboundHandler.FML_MESSAGETARGET) - .set(FMLOutboundHandler.OutboundTarget.TOSERVER); + .attr(FMLOutboundHandler.FML_MESSAGETARGET) + .set(FMLOutboundHandler.OutboundTarget.TOSERVER); this.mChannel.get(Side.CLIENT) - .writeAndFlush(aPacket); + .writeAndFlush(aPacket); } @Override @@ -146,8 +146,8 @@ public class GT_Network extends MessageToMessageCodec } Chunk tChunk = aWorld.getChunkFromBlockCoords(aX, aZ); if (tPlayer.getServerForPlayer() - .getPlayerManager() - .isPlayerWatchingChunk(tPlayer, tChunk.xPosition, tChunk.zPosition)) { + .getPlayerManager() + .isPlayerWatchingChunk(tPlayer, tChunk.xPosition, tChunk.zPosition)) { sendToPlayer(aPacket, tPlayer); } } diff --git a/src/main/java/gregtech/common/GT_Pollution.java b/src/main/java/gregtech/common/GT_Pollution.java index ad2da33259..dede2599e8 100644 --- a/src/main/java/gregtech/common/GT_Pollution.java +++ b/src/main/java/gregtech/common/GT_Pollution.java @@ -144,12 +144,12 @@ public class GT_Pollution { // Smog filter TODO if (tPollution > GT_Mod.gregtechproxy.mPollutionSmogLimit) { AxisAlignedBB chunk = AxisAlignedBB.getBoundingBox( - actualPos.chunkXPos << 4, - 0, - actualPos.chunkZPos << 4, - (actualPos.chunkXPos << 4) + 16, - 256, - (actualPos.chunkZPos << 4) + 16); + actualPos.chunkXPos << 4, + 0, + actualPos.chunkZPos << 4, + (actualPos.chunkXPos << 4) + 16, + 256, + (actualPos.chunkZPos << 4) + 16); List tEntitys = world.getEntitiesWithinAABB(EntityLivingBase.class, chunk); for (EntityLivingBase tEnt : tEntitys) { if (tEnt instanceof EntityPlayerMP && ((EntityPlayerMP) tEnt).capabilities.isCreativeMode) @@ -158,22 +158,22 @@ public class GT_Pollution { switch (XSTR_INSTANCE.nextInt(3)) { default: tEnt.addPotionEffect( - new PotionEffect( - Potion.digSlowdown.id, - Math.min(tPollution / 1000, 1000), - tPollution / 400000)); + new PotionEffect( + Potion.digSlowdown.id, + Math.min(tPollution / 1000, 1000), + tPollution / 400000)); case 1: tEnt.addPotionEffect( - new PotionEffect( - Potion.weakness.id, - Math.min(tPollution / 1000, 1000), - tPollution / 400000)); + new PotionEffect( + Potion.weakness.id, + Math.min(tPollution / 1000, 1000), + tPollution / 400000)); case 2: tEnt.addPotionEffect( - new PotionEffect( - Potion.moveSlowdown.id, - Math.min(tPollution / 1000, 1000), - tPollution / 400000)); + new PotionEffect( + Potion.moveSlowdown.id, + Math.min(tPollution / 1000, 1000), + tPollution / 400000)); } } } @@ -192,22 +192,22 @@ public class GT_Pollution { tEnt.addPotionEffect(new PotionEffect(Potion.hunger.id, tPollution / 500000)); case 1: tEnt.addPotionEffect( - new PotionEffect( - Potion.confusion.id, - Math.min(tPollution / 2000, 1000), - 1)); + new PotionEffect( + Potion.confusion.id, + Math.min(tPollution / 2000, 1000), + 1)); case 2: tEnt.addPotionEffect( - new PotionEffect( - Potion.poison.id, - Math.min(tPollution / 4000, 1000), - tPollution / 500000)); + new PotionEffect( + Potion.poison.id, + Math.min(tPollution / 4000, 1000), + tPollution / 500000)); case 3: tEnt.addPotionEffect( - new PotionEffect( - Potion.blindness.id, - Math.min(tPollution / 2000, 1000), - 1)); + new PotionEffect( + Potion.blindness.id, + Math.min(tPollution / 2000, 1000), + 1)); } } } @@ -231,11 +231,11 @@ public class GT_Pollution { // Send new value to players nearby if (tPollution > POLLUTIONPACKET_MINVALUE) { NetworkRegistry.TargetPoint point = new NetworkRegistry.TargetPoint( - world.provider.dimensionId, - (actualPos.chunkXPos << 4), - 64, - (actualPos.chunkZPos << 4), - 256); + world.provider.dimensionId, + (actualPos.chunkXPos << 4), + 64, + (actualPos.chunkZPos << 4), + 256); GT_Values.NW.sendToAllAround(new GT_Packet_Pollution(actualPos, tPollution), point); } } @@ -264,18 +264,18 @@ public class GT_Pollution { world.setBlockToAir(x, y, z); } if (tBlock == Blocks.waterlily || tBlock == Blocks.wheat - || tBlock == Blocks.cactus - || tBlock.getMaterial() == Material.cactus - || tBlock == Blocks.melon_block - || tBlock == Blocks.melon_stem) { + || tBlock == Blocks.cactus + || tBlock.getMaterial() == Material.cactus + || tBlock == Blocks.melon_block + || tBlock == Blocks.melon_stem) { tBlock.dropBlockAsItem(world, x, y, z, tMeta, 0); world.setBlockToAir(x, y, z); } if (tBlock == Blocks.red_flower || tBlock == Blocks.yellow_flower - || tBlock == Blocks.carrots - || tBlock == Blocks.potatoes - || tBlock == Blocks.pumpkin - || tBlock == Blocks.pumpkin_stem) { + || tBlock == Blocks.carrots + || tBlock == Blocks.potatoes + || tBlock == Blocks.pumpkin + || tBlock == Blocks.pumpkin_stem) { tBlock.dropBlockAsItem(world, x, y, z, tMeta, 0); world.setBlockToAir(x, y, z); } @@ -292,9 +292,9 @@ public class GT_Pollution { } if (sourRain && world.isRaining() - && (tBlock == Blocks.stone || tBlock == Blocks.gravel || tBlock == Blocks.cobblestone) - && world.getBlock(x, y + 1, z) == Blocks.air - && world.canBlockSeeTheSky(x, y, z)) { + && (tBlock == Blocks.stone || tBlock == Blocks.gravel || tBlock == Blocks.cobblestone) + && world.getBlock(x, y + 1, z) == Blocks.air + && world.canBlockSeeTheSky(x, y, z)) { if (tBlock == Blocks.stone) { world.setBlock(x, y, z, Blocks.cobblestone); } else if (tBlock == Blocks.cobblestone) { @@ -318,7 +318,8 @@ public class GT_Pollution { if (iMetaTileEntity instanceof IMachineCallback) { if (((IMachineCallback) iMetaTileEntity).getCallbackBase() instanceof GT_MetaTileEntity_Cleanroom) { if (aPollution > 0) { - ((GT_MetaTileEntity_Cleanroom) ((IMachineCallback) iMetaTileEntity).getCallbackBase()).doMaintenanceIssue(); + ((GT_MetaTileEntity_Cleanroom) ((IMachineCallback) iMetaTileEntity).getCallbackBase()) + .doMaintenanceIssue(); } } } @@ -347,7 +348,7 @@ public class GT_Pollution { } private static void mutatePollution(World world, int x, int z, Consumer mutator, - @Nullable Set chunks) { + @Nullable Set chunks) { ChunkData data = STORAGE.get(world, x, z); boolean hadPollution = data.getAmount() > 0; mutator.accept(data); @@ -384,7 +385,7 @@ public class GT_Pollution { // it really should be querying the client side stuff instead return GT_PollutionRenderer.getKnownPollution(chunkX << 4, chunkZ << 4); return STORAGE.get(w, chunkX, chunkZ) - .getAmount(); + .getAmount(); } @Deprecated @@ -395,8 +396,7 @@ public class GT_Pollution { public static boolean hasPollution(Chunk ch) { if (!GT_Mod.gregtechproxy.mPollution) return false; return STORAGE.isCreated(ch.worldObj, ch.getChunkCoordIntPair()) && STORAGE.get(ch) - .getAmount() - > 0; + .getAmount() > 0; } // Add compatibility with old code @@ -409,9 +409,9 @@ public class GT_Pollution { static void migrate(ChunkDataEvent.Load e) { addPollution( - e.getChunk(), - e.getData() - .getInteger("GTPOLLUTION")); + e.getChunk(), + e.getData() + .getInteger("GTPOLLUTION")); } public static class GT_PollutionEventHandler { @@ -422,7 +422,7 @@ public class GT_Pollution { World world = event.player.worldObj; if (STORAGE.isCreated(world, event.chunk)) { int pollution = STORAGE.get(world, event.chunk) - .getAmount(); + .getAmount(); if (pollution > POLLUTIONPACKET_MINVALUE) GT_Values.NW.sendToPlayer(new GT_Packet_Pollution(event.chunk, pollution), event.player); } @@ -444,13 +444,13 @@ public class GT_Pollution { @Override protected void writeElement(DataOutput output, ChunkData element, World world, int chunkX, int chunkZ) - throws IOException { + throws IOException { output.writeInt(element.getAmount()); } @Override protected ChunkData readElement(DataInput input, int version, World world, int chunkX, int chunkZ) - throws IOException { + throws IOException { if (version != 0) throw new IOException("Region file corrupted"); ChunkData data = new ChunkData(input.readInt()); if (data.getAmount() > 0) diff --git a/src/main/java/gregtech/common/GT_Proxy.java b/src/main/java/gregtech/common/GT_Proxy.java index 2678d01cef..f25240f8bc 100644 --- a/src/main/java/gregtech/common/GT_Proxy.java +++ b/src/main/java/gregtech/common/GT_Proxy.java @@ -145,359 +145,359 @@ import gregtech.common.misc.spaceprojects.SpaceProjectWorldSavedData; public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IGlobalWirelessEnergy { private static final EnumSet PREVENTED_ORES = EnumSet.of( - OreGenEvent.GenerateMinable.EventType.COAL, - OreGenEvent.GenerateMinable.EventType.IRON, - OreGenEvent.GenerateMinable.EventType.GOLD, - OreGenEvent.GenerateMinable.EventType.DIAMOND, - OreGenEvent.GenerateMinable.EventType.REDSTONE, - OreGenEvent.GenerateMinable.EventType.LAPIS, - OreGenEvent.GenerateMinable.EventType.QUARTZ); + OreGenEvent.GenerateMinable.EventType.COAL, + OreGenEvent.GenerateMinable.EventType.IRON, + OreGenEvent.GenerateMinable.EventType.GOLD, + OreGenEvent.GenerateMinable.EventType.DIAMOND, + OreGenEvent.GenerateMinable.EventType.REDSTONE, + OreGenEvent.GenerateMinable.EventType.LAPIS, + OreGenEvent.GenerateMinable.EventType.QUARTZ); public final HashSet mRegisteredOres = new HashSet<>(10000); public final ArrayList mSoundNames = new ArrayList<>(); public final ArrayList mSoundItems = new ArrayList<>(); public final ArrayList mSoundCounts = new ArrayList<>(); private final Collection mEvents = new HashSet<>(); private final Collection mIgnoredItems = new HashSet<>( - Arrays.asList( - "itemGhastTear", - "itemFlint", - "itemClay", - "itemBucketSaltWater", - "itemBucketFreshWater", - "itemBucketWater", - "itemRock", - "itemReed", - "itemArrow", - "itemSaw", - "itemKnife", - "itemHammer", - "itemChisel", - "itemRubber", - "itemEssence", - "itemIlluminatedPanel", - "itemSkull", - "itemRawRubber", - "itemBacon", - "itemJetpackAccelerator", - "itemLazurite", - "itemIridium", - "itemTear", - "itemClaw", - "itemFertilizer", - "itemTar", - "itemSlimeball", - "itemCoke", - "itemBeeswax", - "itemBeeQueen", - "itemForcicium", - "itemForcillium", - "itemRoyalJelly", - "itemHoneydew", - "itemHoney", - "itemPollen", - "itemReedTypha", - "itemSulfuricAcid", - "itemPotash", - "itemCompressedCarbon", - "itemBitumen", - "itemBioFuel", - "itemCokeSugar", - "itemCokeCactus", - "itemCharcoalSugar", - "itemCharcoalCactus", - "itemSludge", - "itemEnrichedAlloy", - "itemQuicksilver", - "itemMercury", - "itemOsmium", - "itemUltimateCircuit", - "itemEnergizedStar", - "itemAntimatterMolecule", - "itemAntimatterGlob", - "itemCoal", - "itemBoat", - "itemHerbalMedicineCake", - "itemCakeSponge", - "itemFishandPumpkinCakeSponge", - "itemSoulCleaver", - "itemInstantCake", - "itemWhippingCream", - "itemGlisteningWhippingCream", - "itemCleaver", - "itemHerbalMedicineWhippingCream", - "itemStrangeWhippingCream", - "itemBlazeCleaver", - "itemBakedCakeSponge", - "itemMagmaCake", - "itemGlisteningCake", - "itemOgreCleaver", - "itemFishandPumpkinCake", - "itemMagmaWhippingCream", - "itemMultimeter", - "itemSuperconductor")); + Arrays.asList( + "itemGhastTear", + "itemFlint", + "itemClay", + "itemBucketSaltWater", + "itemBucketFreshWater", + "itemBucketWater", + "itemRock", + "itemReed", + "itemArrow", + "itemSaw", + "itemKnife", + "itemHammer", + "itemChisel", + "itemRubber", + "itemEssence", + "itemIlluminatedPanel", + "itemSkull", + "itemRawRubber", + "itemBacon", + "itemJetpackAccelerator", + "itemLazurite", + "itemIridium", + "itemTear", + "itemClaw", + "itemFertilizer", + "itemTar", + "itemSlimeball", + "itemCoke", + "itemBeeswax", + "itemBeeQueen", + "itemForcicium", + "itemForcillium", + "itemRoyalJelly", + "itemHoneydew", + "itemHoney", + "itemPollen", + "itemReedTypha", + "itemSulfuricAcid", + "itemPotash", + "itemCompressedCarbon", + "itemBitumen", + "itemBioFuel", + "itemCokeSugar", + "itemCokeCactus", + "itemCharcoalSugar", + "itemCharcoalCactus", + "itemSludge", + "itemEnrichedAlloy", + "itemQuicksilver", + "itemMercury", + "itemOsmium", + "itemUltimateCircuit", + "itemEnergizedStar", + "itemAntimatterMolecule", + "itemAntimatterGlob", + "itemCoal", + "itemBoat", + "itemHerbalMedicineCake", + "itemCakeSponge", + "itemFishandPumpkinCakeSponge", + "itemSoulCleaver", + "itemInstantCake", + "itemWhippingCream", + "itemGlisteningWhippingCream", + "itemCleaver", + "itemHerbalMedicineWhippingCream", + "itemStrangeWhippingCream", + "itemBlazeCleaver", + "itemBakedCakeSponge", + "itemMagmaCake", + "itemGlisteningCake", + "itemOgreCleaver", + "itemFishandPumpkinCake", + "itemMagmaWhippingCream", + "itemMultimeter", + "itemSuperconductor")); private final Collection mIgnoredNames = new HashSet<>( - Arrays.asList( - "grubBee", - "chainLink", - "candyCane", - "bRedString", - "bVial", - "bFlask", - "anorthositeSmooth", - "migmatiteSmooth", - "slateSmooth", - "travertineSmooth", - "limestoneSmooth", - "orthogneissSmooth", - "marbleSmooth", - "honeyDrop", - "lumpClay", - "honeyEqualssugar", - "flourEqualswheat", - "bluestoneInsulated", - "blockWaterstone", - "blockSand", - "blockTorch", - "blockPumpkin", - "blockClothRock", - "blockStainedHardenedClay", - "blockQuartzPillar", - "blockQuartzChiselled", - "blockSpawner", - "blockCloth", - "mobHead", - "mobEgg", - "enderFlower", - "enderChest", - "clayHardened", - "dayGemMaterial", - "nightGemMaterial", - "snowLayer", - "bPlaceholder", - "hardenedClay", - "eternalLifeEssence", - "sandstone", - "wheatRice", - "transdimBlock", - "bambooBasket", - "lexicaBotania", - "livingwoodTwig", - "redstoneCrystal", - "pestleAndMortar", - "glowstone", - "whiteStone", - "stoneSlab", - "transdimBlock", - "clayBowl", - "clayPlate", - "ceramicBowl", - "ceramicPlate", - "ovenRack", - "clayCup", - "ceramicCup", - "batteryBox", - "transmutationStone", - "torchRedstoneActive", - "coal", - "charcoal", - "cloth", - "cobblestoneSlab", - "stoneBrickSlab", - "cobblestoneWall", - "stoneBrickWall", - "cobblestoneStair", - "stoneBrickStair", - "blockCloud", - "blockDirt", - "blockTyrian", - "blockCarpet", - "blockFft", - "blockLavastone", - "blockHolystone", - "blockConcrete", - "sunnariumPart", - "brSmallMachineCyaniteProcessor", - "meteoriteCoal", - "blockCobble", - "pressOreProcessor", - "crusherOreProcessor", - "grinderOreProcessor", - "blockRubber", - "blockHoney", - "blockHoneydew", - "blockPeat", - "blockRadioactive", - "blockSlime", - "blockCocoa", - "blockSugarCane", - "blockLeather", - "blockClayBrick", - "solarPanelHV", - "cableRedNet", - "stoneBowl", - "crafterWood", - "taintedSoil", - "brickXyEngineering", - "breederUranium", - "wireMill", - "chunkLazurite", - "aluminumNatural", - "aluminiumNatural", - "naturalAluminum", - "naturalAluminium", - "antimatterMilligram", - "antimatterGram", - "strangeMatter", - "coalGenerator", - "electricFurnace", - "unfinishedTank", - "valvePart", - "aquaRegia", - "leatherSeal", - "leatherSlimeSeal", - "hambone", - "slimeball", - "clay", - "enrichedUranium", - "camoPaste", - "antiBlock", - "burntQuartz", - "salmonRaw", - "blockHopper", - "blockEnderObsidian", - "blockIcestone", - "blockMagicWood", - "blockEnderCore", - "blockHeeEndium", - "oreHeeEndPowder", - "oreHeeStardust", - "oreHeeIgneousRock", - "oreHeeInstabilityOrb", - "crystalPureFluix", - "shardNether", - "gemFluorite", - "stickObsidian", - "caveCrystal", - "shardCrystal", - "dyeCrystal", - "shardFire", - "shardWater", - "shardAir", - "shardEarth", - "ingotRefinedIron", - "blockMarble", - "ingotUnstable")); + Arrays.asList( + "grubBee", + "chainLink", + "candyCane", + "bRedString", + "bVial", + "bFlask", + "anorthositeSmooth", + "migmatiteSmooth", + "slateSmooth", + "travertineSmooth", + "limestoneSmooth", + "orthogneissSmooth", + "marbleSmooth", + "honeyDrop", + "lumpClay", + "honeyEqualssugar", + "flourEqualswheat", + "bluestoneInsulated", + "blockWaterstone", + "blockSand", + "blockTorch", + "blockPumpkin", + "blockClothRock", + "blockStainedHardenedClay", + "blockQuartzPillar", + "blockQuartzChiselled", + "blockSpawner", + "blockCloth", + "mobHead", + "mobEgg", + "enderFlower", + "enderChest", + "clayHardened", + "dayGemMaterial", + "nightGemMaterial", + "snowLayer", + "bPlaceholder", + "hardenedClay", + "eternalLifeEssence", + "sandstone", + "wheatRice", + "transdimBlock", + "bambooBasket", + "lexicaBotania", + "livingwoodTwig", + "redstoneCrystal", + "pestleAndMortar", + "glowstone", + "whiteStone", + "stoneSlab", + "transdimBlock", + "clayBowl", + "clayPlate", + "ceramicBowl", + "ceramicPlate", + "ovenRack", + "clayCup", + "ceramicCup", + "batteryBox", + "transmutationStone", + "torchRedstoneActive", + "coal", + "charcoal", + "cloth", + "cobblestoneSlab", + "stoneBrickSlab", + "cobblestoneWall", + "stoneBrickWall", + "cobblestoneStair", + "stoneBrickStair", + "blockCloud", + "blockDirt", + "blockTyrian", + "blockCarpet", + "blockFft", + "blockLavastone", + "blockHolystone", + "blockConcrete", + "sunnariumPart", + "brSmallMachineCyaniteProcessor", + "meteoriteCoal", + "blockCobble", + "pressOreProcessor", + "crusherOreProcessor", + "grinderOreProcessor", + "blockRubber", + "blockHoney", + "blockHoneydew", + "blockPeat", + "blockRadioactive", + "blockSlime", + "blockCocoa", + "blockSugarCane", + "blockLeather", + "blockClayBrick", + "solarPanelHV", + "cableRedNet", + "stoneBowl", + "crafterWood", + "taintedSoil", + "brickXyEngineering", + "breederUranium", + "wireMill", + "chunkLazurite", + "aluminumNatural", + "aluminiumNatural", + "naturalAluminum", + "naturalAluminium", + "antimatterMilligram", + "antimatterGram", + "strangeMatter", + "coalGenerator", + "electricFurnace", + "unfinishedTank", + "valvePart", + "aquaRegia", + "leatherSeal", + "leatherSlimeSeal", + "hambone", + "slimeball", + "clay", + "enrichedUranium", + "camoPaste", + "antiBlock", + "burntQuartz", + "salmonRaw", + "blockHopper", + "blockEnderObsidian", + "blockIcestone", + "blockMagicWood", + "blockEnderCore", + "blockHeeEndium", + "oreHeeEndPowder", + "oreHeeStardust", + "oreHeeIgneousRock", + "oreHeeInstabilityOrb", + "crystalPureFluix", + "shardNether", + "gemFluorite", + "stickObsidian", + "caveCrystal", + "shardCrystal", + "dyeCrystal", + "shardFire", + "shardWater", + "shardAir", + "shardEarth", + "ingotRefinedIron", + "blockMarble", + "ingotUnstable")); private final Collection mInvalidNames = new HashSet<>( - Arrays.asList( - "diamondShard", - "redstoneRoot", - "obsidianStick", - "bloodstoneOre", - "universalCable", - "bronzeTube", - "ironTube", - "netherTube", - "obbyTube", - "infiniteBattery", - "eliteBattery", - "advancedBattery", - "10kEUStore", - "blueDye", - "MonazitOre", - "quartzCrystal", - "whiteLuminiteCrystal", - "darkStoneIngot", - "invisiumIngot", - "demoniteOrb", - "enderGem", - "starconiumGem", - "osmoniumIngot", - "tapaziteGem", - "zectiumIngot", - "foolsRubyGem", - "rubyGem", - "meteoriteGem", - "adamiteShard", - "sapphireGem", - "copperIngot", - "ironStick", - "goldStick", - "diamondStick", - "reinforcedStick", - "draconicStick", - "emeraldStick", - "copperStick", - "tinStick", - "silverStick", - "bronzeStick", - "steelStick", - "leadStick", - "manyullynStick", - "arditeStick", - "cobaltStick", - "aluminiumStick", - "alumiteStick", - "oilsandsOre", - "copperWire", - "superconductorWire", - "sulfuricAcid", - "conveyorBelt", - "ironWire", - "aluminumWire", - "aluminiumWire", - "silverWire", - "tinWire", - "dustSiliconSmall", - "AluminumOre", - "plateHeavyT2", - "blockWool", - "alloyPlateEnergizedHardened", - "gasWood", - "alloyPlateEnergized", - "SilverOre", - "LeadOre", - "TinOre", - "CopperOre", - "silverOre", - "leadOre", - "tinOre", - "copperOre", - "bauxiteOre", - "HSLivingmetalIngot", - "oilMoving", - "oilStill", - "oilBucket", - "petroleumOre", - "dieselFuel", - "diamondNugget", - "planks", - "wood", - "stick", - "sticks", - "naquadah", - "obsidianRod", - "stoneRod", - "thaumiumRod", - "steelRod", - "netherrackRod", - "woodRod", - "ironRod", - "cactusRod", - "flintRod", - "copperRod", - "cobaltRod", - "alumiteRod", - "blueslimeRod", - "arditeRod", - "manyullynRod", - "bronzeRod", - "boneRod", - "slimeRod", - "redalloyBundled", - "bluestoneBundled", - "infusedteslatiteInsulated", - "redalloyInsulated", - "infusedteslatiteBundled")); + Arrays.asList( + "diamondShard", + "redstoneRoot", + "obsidianStick", + "bloodstoneOre", + "universalCable", + "bronzeTube", + "ironTube", + "netherTube", + "obbyTube", + "infiniteBattery", + "eliteBattery", + "advancedBattery", + "10kEUStore", + "blueDye", + "MonazitOre", + "quartzCrystal", + "whiteLuminiteCrystal", + "darkStoneIngot", + "invisiumIngot", + "demoniteOrb", + "enderGem", + "starconiumGem", + "osmoniumIngot", + "tapaziteGem", + "zectiumIngot", + "foolsRubyGem", + "rubyGem", + "meteoriteGem", + "adamiteShard", + "sapphireGem", + "copperIngot", + "ironStick", + "goldStick", + "diamondStick", + "reinforcedStick", + "draconicStick", + "emeraldStick", + "copperStick", + "tinStick", + "silverStick", + "bronzeStick", + "steelStick", + "leadStick", + "manyullynStick", + "arditeStick", + "cobaltStick", + "aluminiumStick", + "alumiteStick", + "oilsandsOre", + "copperWire", + "superconductorWire", + "sulfuricAcid", + "conveyorBelt", + "ironWire", + "aluminumWire", + "aluminiumWire", + "silverWire", + "tinWire", + "dustSiliconSmall", + "AluminumOre", + "plateHeavyT2", + "blockWool", + "alloyPlateEnergizedHardened", + "gasWood", + "alloyPlateEnergized", + "SilverOre", + "LeadOre", + "TinOre", + "CopperOre", + "silverOre", + "leadOre", + "tinOre", + "copperOre", + "bauxiteOre", + "HSLivingmetalIngot", + "oilMoving", + "oilStill", + "oilBucket", + "petroleumOre", + "dieselFuel", + "diamondNugget", + "planks", + "wood", + "stick", + "sticks", + "naquadah", + "obsidianRod", + "stoneRod", + "thaumiumRod", + "steelRod", + "netherrackRod", + "woodRod", + "ironRod", + "cactusRod", + "flintRod", + "copperRod", + "cobaltRod", + "alumiteRod", + "blueslimeRod", + "arditeRod", + "manyullynRod", + "bronzeRod", + "boneRod", + "slimeRod", + "redalloyBundled", + "bluestoneBundled", + "infusedteslatiteInsulated", + "redalloyInsulated", + "infusedteslatiteBundled")); private final DateFormat mDateFormat = DateFormat.getInstance(); public final BlockingQueue mBufferedPlayerActivity = new LinkedBlockingQueue<>(); public final GT_BlockMap mCTMBlockCache = new GT_BlockMap<>(); @@ -749,25 +749,19 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG MinecraftForge.EVENT_BUS.register(this); MinecraftForge.ORE_GEN_BUS.register(this); FMLCommonHandler.instance() - .bus() - .register(this); - GregTech_API.sThaumcraftCompat = (IThaumcraftCompat) GT_Utility.callConstructor( - "gregtech.common.GT_ThaumcraftCompat", - 0, - null, - GT_Values.D1, - new Object[0]); - for (FluidContainerRegistry.FluidContainerData tData : FluidContainerRegistry.getRegisteredFluidContainerData()) { + .bus() + .register(this); + GregTech_API.sThaumcraftCompat = (IThaumcraftCompat) GT_Utility + .callConstructor("gregtech.common.GT_ThaumcraftCompat", 0, null, GT_Values.D1, new Object[0]); + for (FluidContainerRegistry.FluidContainerData tData : FluidContainerRegistry + .getRegisteredFluidContainerData()) { onFluidContainerRegistration(new FluidContainerRegistry.FluidContainerRegisterEvent(tData)); } try { for (String tOreName : OreDictionary.getOreNames()) { ItemStack tOreStack; for (Iterator i$ = OreDictionary.getOres(tOreName) - .iterator(); i$.hasNext(); registerOre( - new OreDictionary.OreRegisterEvent( - tOreName, - tOreStack))) { + .iterator(); i$.hasNext(); registerOre(new OreDictionary.OreRegisterEvent(tOreName, tOreStack))) { tOreStack = i$.next(); } } @@ -784,7 +778,8 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG this.mIgnoreTcon = GregTech_API.sOPStuff.get(ConfigCategories.general, "ignoreTConstruct", true); this.mWireHeatingTicks = GregTech_API.sOPStuff.get(ConfigCategories.general, "WireHeatingTicks", 4); NetworkRegistry.INSTANCE.registerGuiHandler(GT_Values.GT, this); - for (FluidContainerRegistry.FluidContainerData tData : FluidContainerRegistry.getRegisteredFluidContainerData()) { + for (FluidContainerRegistry.FluidContainerData tData : FluidContainerRegistry + .getRegisteredFluidContainerData()) { if ((tData.filledContainer.getItem() == Items.potionitem) && (tData.filledContainer.getItemDamage() == 0)) { tData.fluid.amount = 0; break; @@ -833,11 +828,8 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG ItemList.FR_Bee_Princess.set(GT_ModHandler.getModItem(Forestry.ID, "beePrincessGE", 1L)); ItemList.FR_Bee_Queen.set(GT_ModHandler.getModItem(Forestry.ID, "beeQueenGE", 1L)); ItemList.FR_Tree_Sapling.set( - GT_ModHandler.getModItem( - Forestry.ID, - "sapling", - 1L, - GT_ModHandler.getModItem(Forestry.ID, "saplingGE", 1L))); + GT_ModHandler + .getModItem(Forestry.ID, "sapling", 1L, GT_ModHandler.getModItem(Forestry.ID, "saplingGE", 1L))); ItemList.FR_Butterfly.set(GT_ModHandler.getModItem(Forestry.ID, "butterflyGE", 1L)); ItemList.FR_Larvae.set(GT_ModHandler.getModItem(Forestry.ID, "beeLarvaeGE", 1L)); ItemList.FR_Serum.set(GT_ModHandler.getModItem(Forestry.ID, "serumGE", 1L)); @@ -852,17 +844,17 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG ItemList.Cell_Universal_Fluid.set(GT_ModHandler.getIC2Item("FluidCell", 1L)); ItemList.Cell_Empty.set( - GT_ModHandler.getIC2Item( - "cell", - 1L, - GT_ModHandler.getIC2Item("cellEmpty", 1L, GT_ModHandler.getIC2Item("emptyCell", 1L)))); + GT_ModHandler.getIC2Item( + "cell", + 1L, + GT_ModHandler.getIC2Item("cellEmpty", 1L, GT_ModHandler.getIC2Item("emptyCell", 1L)))); ItemList.Cell_Water.set(GT_ModHandler.getIC2Item("waterCell", 1L, GT_ModHandler.getIC2Item("cellWater", 1L))); ItemList.Cell_Lava.set(GT_ModHandler.getIC2Item("lavaCell", 1L, GT_ModHandler.getIC2Item("cellLava", 1L))); ItemList.Cell_Air.set( - GT_ModHandler.getIC2Item( - "airCell", - 1L, - GT_ModHandler.getIC2Item("cellAir", 1L, GT_ModHandler.getIC2Item("cellOxygen", 1L)))); + GT_ModHandler.getIC2Item( + "airCell", + 1L, + GT_ModHandler.getIC2Item("cellAir", 1L, GT_ModHandler.getIC2Item("cellOxygen", 1L)))); ItemList.IC2_Item_Casing_Iron.set(GT_ModHandler.getIC2Item("casingiron", 1L)); ItemList.IC2_Item_Casing_Gold.set(GT_ModHandler.getIC2Item("casinggold", 1L)); @@ -879,8 +871,8 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG ItemList.IC2_Hops.set(GT_ModHandler.getIC2Item("hops", 1L)); ItemList.IC2_Resin.set(GT_ModHandler.getIC2Item("resin", 1L)); ItemList.IC2_Plantball.set(GT_ModHandler.getIC2Item("plantBall", 1L)); - ItemList.IC2_PlantballCompressed.set( - GT_ModHandler.getIC2Item("compressedPlantBall", 1L, ItemList.IC2_Plantball.get(1L))); + ItemList.IC2_PlantballCompressed + .set(GT_ModHandler.getIC2Item("compressedPlantBall", 1L, ItemList.IC2_Plantball.get(1L))); ItemList.IC2_Crop_Seeds.set(GT_ModHandler.getIC2Item("cropSeed", 1L)); ItemList.IC2_Grin_Powder.set(GT_ModHandler.getIC2Item("grinPowder", 1L)); ItemList.IC2_Energium_Dust.set(GT_ModHandler.getIC2Item("energiumDust", 1L)); @@ -890,8 +882,8 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG ItemList.IC2_Food_Can_Empty.set(GT_ModHandler.getIC2Item("tinCan", 1L)); ItemList.IC2_Food_Can_Filled.set(GT_ModHandler.getIC2Item("filledTinCan", 1L, 0)); ItemList.IC2_Food_Can_Spoiled.set(GT_ModHandler.getIC2Item("filledTinCan", 1L, 1)); - ItemList.IC2_Industrial_Diamond.set( - GT_ModHandler.getIC2Item("industrialDiamond", 1L, new ItemStack(Items.diamond, 1))); + ItemList.IC2_Industrial_Diamond + .set(GT_ModHandler.getIC2Item("industrialDiamond", 1L, new ItemStack(Items.diamond, 1))); ItemList.IC2_Compressed_Coal_Ball.set(GT_ModHandler.getIC2Item("compressedCoalBall", 1L)); ItemList.IC2_Compressed_Coal_Chunk.set(GT_ModHandler.getIC2Item("coalChunk", 1L)); ItemList.IC2_ShaftIron.set(GT_ModHandler.getIC2Item("ironshaft", 1L)); @@ -973,27 +965,27 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG GT_ModHandler.sNonReplaceableItems.add(GT_ModHandler.getModItem(Railcraft.ID, "borehead.diamond", 1L, 32767)); GT_ModHandler.sNonReplaceableItems.add(GT_ModHandler.getModItem(Railcraft.ID, "borehead.steel", 1L, 32767)); GT_ModHandler.sNonReplaceableItems.add(GT_ModHandler.getModItem(Railcraft.ID, "borehead.iron", 1L, 32767)); - GT_ModHandler.sNonReplaceableItems.add( - GT_ModHandler.getModItem(TwilightForest.ID, "item.plateNaga", 1L, 32767)); + GT_ModHandler.sNonReplaceableItems + .add(GT_ModHandler.getModItem(TwilightForest.ID, "item.plateNaga", 1L, 32767)); GT_ModHandler.sNonReplaceableItems.add(GT_ModHandler.getModItem(TwilightForest.ID, "item.legsNaga", 1L, 32767)); - GT_ModHandler.sNonReplaceableItems.add( - GT_ModHandler.getModItem(TwilightForest.ID, "item.arcticHelm", 1L, 32767)); - GT_ModHandler.sNonReplaceableItems.add( - GT_ModHandler.getModItem(TwilightForest.ID, "item.arcticPlate", 1L, 32767)); - GT_ModHandler.sNonReplaceableItems.add( - GT_ModHandler.getModItem(TwilightForest.ID, "item.arcticLegs", 1L, 32767)); - GT_ModHandler.sNonReplaceableItems.add( - GT_ModHandler.getModItem(TwilightForest.ID, "item.arcticBoots", 1L, 32767)); + GT_ModHandler.sNonReplaceableItems + .add(GT_ModHandler.getModItem(TwilightForest.ID, "item.arcticHelm", 1L, 32767)); + GT_ModHandler.sNonReplaceableItems + .add(GT_ModHandler.getModItem(TwilightForest.ID, "item.arcticPlate", 1L, 32767)); + GT_ModHandler.sNonReplaceableItems + .add(GT_ModHandler.getModItem(TwilightForest.ID, "item.arcticLegs", 1L, 32767)); + GT_ModHandler.sNonReplaceableItems + .add(GT_ModHandler.getModItem(TwilightForest.ID, "item.arcticBoots", 1L, 32767)); GT_ModHandler.sNonReplaceableItems.add(GT_ModHandler.getModItem(TwilightForest.ID, "item.yetiHelm", 1L, 32767)); - GT_ModHandler.sNonReplaceableItems.add( - GT_ModHandler.getModItem(TwilightForest.ID, "item.yetiPlate", 1L, 32767)); + GT_ModHandler.sNonReplaceableItems + .add(GT_ModHandler.getModItem(TwilightForest.ID, "item.yetiPlate", 1L, 32767)); GT_ModHandler.sNonReplaceableItems.add(GT_ModHandler.getModItem(TwilightForest.ID, "item.yetiLegs", 1L, 32767)); - GT_ModHandler.sNonReplaceableItems.add( - GT_ModHandler.getModItem(TwilightForest.ID, "item.yetiBoots", 1L, 32767)); - GT_ModHandler.sNonReplaceableItems.add( - GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ToolCertusQuartzCuttingKnife", 1L, 32767)); - GT_ModHandler.sNonReplaceableItems.add( - GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ToolNetherQuartzCuttingKnife", 1L, 32767)); + GT_ModHandler.sNonReplaceableItems + .add(GT_ModHandler.getModItem(TwilightForest.ID, "item.yetiBoots", 1L, 32767)); + GT_ModHandler.sNonReplaceableItems + .add(GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ToolCertusQuartzCuttingKnife", 1L, 32767)); + GT_ModHandler.sNonReplaceableItems + .add(GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ToolNetherQuartzCuttingKnife", 1L, 32767)); GT_ModHandler.sNonReplaceableItems.add(GT_ModHandler.getModItem(Forestry.ID, "apiaristHelmet", 1L, 32767)); GT_ModHandler.sNonReplaceableItems.add(GT_ModHandler.getModItem(Forestry.ID, "apiaristChest", 1L, 32767)); GT_ModHandler.sNonReplaceableItems.add(GT_ModHandler.getModItem(Forestry.ID, "apiaristLegs", 1L, 32767)); @@ -1002,21 +994,21 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG GT_ModHandler.sNonReplaceableItems.add(GT_ModHandler.getModItem(Forestry.ID, "frameImpregnated", 1L, 32767)); GT_ModHandler.sNonReplaceableItems.add(GT_ModHandler.getModItem(Forestry.ID, "frameProven", 1L, 32767)); GT_ModHandler.sNonReplaceableItems.add(GT_ModHandler.getModItem(Forestry.ID, "waxCast", 1L, 32767)); - GT_ModHandler.sNonReplaceableItems.add( - GT_ModHandler.getModItem(GalacticraftCore.ID, "item.sensorGlasses", 1L, 32767)); - GT_ModHandler.sNonReplaceableItems.add( - GT_ModHandler.getModItem(IC2NuclearControl.ID, "ItemToolThermometer", 1L, 32767)); + GT_ModHandler.sNonReplaceableItems + .add(GT_ModHandler.getModItem(GalacticraftCore.ID, "item.sensorGlasses", 1L, 32767)); + GT_ModHandler.sNonReplaceableItems + .add(GT_ModHandler.getModItem(IC2NuclearControl.ID, "ItemToolThermometer", 1L, 32767)); RecipeSorter.register( - "gregtech:shaped", - GT_Shaped_Recipe.class, - RecipeSorter.Category.SHAPED, - "after:minecraft:shaped before:minecraft:shapeless"); + "gregtech:shaped", + GT_Shaped_Recipe.class, + RecipeSorter.Category.SHAPED, + "after:minecraft:shaped before:minecraft:shapeless"); RecipeSorter.register( - "gregtech:shapeless", - GT_Shapeless_Recipe.class, - RecipeSorter.Category.SHAPELESS, - "after:minecraft:shapeless"); + "gregtech:shapeless", + GT_Shapeless_Recipe.class, + RecipeSorter.Category.SHAPELESS, + "after:minecraft:shapeless"); // Register chunk manager with Forge GT_ChunkManager.init(); @@ -1026,45 +1018,40 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG GT_Log.out.println("GT_Mod: Beginning Load-Phase."); GT_Log.ore.println("GT_Mod: Beginning Load-Phase."); GT_OreDictUnificator.registerOre( - "cropChilipepper", - GT_ModHandler.getModItem(MagicalCrops.ID, "magicalcrops_CropProduce", 1L, 2)); - GT_OreDictUnificator.registerOre( - "cropTomato", - GT_ModHandler.getModItem(MagicalCrops.ID, "magicalcrops_CropProduce", 1L, 8)); - GT_OreDictUnificator.registerOre( - "cropGrape", - GT_ModHandler.getModItem(MagicalCrops.ID, "magicalcrops_CropProduce", 1L, 4)); + "cropChilipepper", + GT_ModHandler.getModItem(MagicalCrops.ID, "magicalcrops_CropProduce", 1L, 2)); + GT_OreDictUnificator + .registerOre("cropTomato", GT_ModHandler.getModItem(MagicalCrops.ID, "magicalcrops_CropProduce", 1L, 8)); + GT_OreDictUnificator + .registerOre("cropGrape", GT_ModHandler.getModItem(MagicalCrops.ID, "magicalcrops_CropProduce", 1L, 4)); GT_OreDictUnificator.registerOre("cropTea", GT_ModHandler.getModItem(GanysSurface.ID, "teaLeaves", 1L, 0)); // Clay buckets, which don't get registered until Iguana Tweaks pre-init if (IguanaTweaksTinkerConstruct.isModLoaded()) { - OrePrefixes.bucketClay.mContainerItem = GT_ModHandler.getModItem( - IguanaTweaksTinkerConstruct.ID, - "clayBucketFired", - 1L, - 0); + OrePrefixes.bucketClay.mContainerItem = GT_ModHandler + .getModItem(IguanaTweaksTinkerConstruct.ID, "clayBucketFired", 1L, 0); GT_OreDictUnificator.set( - OrePrefixes.bucketClay, - Materials.Empty, - GT_ModHandler.getModItem(IguanaTweaksTinkerConstruct.ID, "clayBucketFired", 1L, 0)); + OrePrefixes.bucketClay, + Materials.Empty, + GT_ModHandler.getModItem(IguanaTweaksTinkerConstruct.ID, "clayBucketFired", 1L, 0)); GT_OreDictUnificator.set( - OrePrefixes.bucketClay, - Materials.Water, - GT_ModHandler.getModItem(IguanaTweaksTinkerConstruct.ID, "clayBucketWater", 1L, 0)); + OrePrefixes.bucketClay, + Materials.Water, + GT_ModHandler.getModItem(IguanaTweaksTinkerConstruct.ID, "clayBucketWater", 1L, 0)); GT_OreDictUnificator.set( - OrePrefixes.bucketClay, - Materials.Lava, - GT_ModHandler.getModItem(IguanaTweaksTinkerConstruct.ID, "clayBucketLava", 1L, 0)); + OrePrefixes.bucketClay, + Materials.Lava, + GT_ModHandler.getModItem(IguanaTweaksTinkerConstruct.ID, "clayBucketLava", 1L, 0)); GT_OreDictUnificator.set( - OrePrefixes.bucketClay, - Materials.Milk, - GT_ModHandler.getModItem(IguanaTweaksTinkerConstruct.ID, "clayBucketMilk", 1L, 0)); + OrePrefixes.bucketClay, + Materials.Milk, + GT_ModHandler.getModItem(IguanaTweaksTinkerConstruct.ID, "clayBucketMilk", 1L, 0)); FluidContainerRegistry.registerFluidContainer( - new FluidContainerRegistry.FluidContainerData( - Materials.Milk.getFluid(1000L), - GT_OreDictUnificator.get(OrePrefixes.bucketClay, Materials.Milk, 1L), - GT_OreDictUnificator.get(OrePrefixes.bucketClay, Materials.Empty, 1L))); + new FluidContainerRegistry.FluidContainerData( + Materials.Milk.getFluid(1000L), + GT_OreDictUnificator.get(OrePrefixes.bucketClay, Materials.Milk, 1L), + GT_OreDictUnificator.get(OrePrefixes.bucketClay, Materials.Empty, 1L))); } MinecraftForge.EVENT_BUS.register(new GlobalEnergyWorldSavedData("")); @@ -1173,7 +1160,8 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG addFullHazmatToGeneralItem(EnderIO.ID, "item.stellar_boots", 1L); GregTech_API.sLoadStarted = true; - for (FluidContainerRegistry.FluidContainerData tData : FluidContainerRegistry.getRegisteredFluidContainerData()) { + for (FluidContainerRegistry.FluidContainerData tData : FluidContainerRegistry + .getRegisteredFluidContainerData()) { if ((tData.filledContainer.getItem() == Items.potionitem) && (tData.filledContainer.getItemDamage() == 0)) { tData.fluid.amount = 0; break; @@ -1183,8 +1171,8 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG } public static long tBits = GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | GT_ModHandler.RecipeBits.BUFFERED - | GT_ModHandler.RecipeBits.ONLY_ADD_IF_RESULT_IS_NOT_NULL - | GT_ModHandler.RecipeBits.NOT_REMOVABLE; + | GT_ModHandler.RecipeBits.ONLY_ADD_IF_RESULT_IS_NOT_NULL + | GT_ModHandler.RecipeBits.NOT_REMOVABLE; public void onPostLoad() { GT_Log.out.println("GT_Mod: Beginning PostLoad-Phase."); @@ -1202,10 +1190,10 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG GT_MetaGenerated_Item_98.init(); GT_OreDictUnificator.addItemData(new ItemStack(Items.iron_door, 1), new ItemData(Materials.Iron, 21772800L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Items.wooden_door, 1, 32767), - new ItemData(Materials.Wood, 21772800L)); - for (FluidContainerRegistry.FluidContainerData tData : FluidContainerRegistry.getRegisteredFluidContainerData()) { + GT_OreDictUnificator + .addItemData(new ItemStack(Items.wooden_door, 1, 32767), new ItemData(Materials.Wood, 21772800L)); + for (FluidContainerRegistry.FluidContainerData tData : FluidContainerRegistry + .getRegisteredFluidContainerData()) { if ((tData.filledContainer.getItem() == Items.potionitem) && (tData.filledContainer.getItemDamage() == 0)) { tData.fluid.amount = 0; break; @@ -1227,61 +1215,61 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG for (Materials aMaterial : Materials.values()) { if ((aMaterial.mUnificatable) && (aMaterial.mMaterialInto == aMaterial)) { GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial.mMacerateInto, 1L), - tBits, - new Object[] { "h", "X", 'X', OrePrefixes.crushedCentrifuged.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial.mMacerateInto, 1L), + tBits, + new Object[] { "h", "X", 'X', OrePrefixes.crushedCentrifuged.get(aMaterial) }); GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial.mMacerateInto, 1L), - tBits, - new Object[] { "h", "X", 'X', OrePrefixes.crystalline.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial.mMacerateInto, 1L), + tBits, + new Object[] { "h", "X", 'X', OrePrefixes.crystalline.get(aMaterial) }); GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial.mMacerateInto, 1L), - tBits, - new Object[] { "h", "X", 'X', OrePrefixes.crystal.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial.mMacerateInto, 1L), + tBits, + new Object[] { "h", "X", 'X', OrePrefixes.crystal.get(aMaterial) }); GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dustPure, aMaterial.mMacerateInto, 1L), - tBits, - new Object[] { "h", "X", 'X', OrePrefixes.crushedPurified.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.dustPure, aMaterial.mMacerateInto, 1L), + tBits, + new Object[] { "h", "X", 'X', OrePrefixes.crushedPurified.get(aMaterial) }); GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dustPure, aMaterial.mMacerateInto, 1L), - tBits, - new Object[] { "h", "X", 'X', OrePrefixes.cleanGravel.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.dustPure, aMaterial.mMacerateInto, 1L), + tBits, + new Object[] { "h", "X", 'X', OrePrefixes.cleanGravel.get(aMaterial) }); GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dustPure, aMaterial.mMacerateInto, 1L), - tBits, - new Object[] { "h", "X", 'X', OrePrefixes.reduced.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.dustPure, aMaterial.mMacerateInto, 1L), + tBits, + new Object[] { "h", "X", 'X', OrePrefixes.reduced.get(aMaterial) }); GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dustImpure, aMaterial.mMacerateInto, 1L), - tBits, - new Object[] { "h", "X", 'X', OrePrefixes.clump.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.dustImpure, aMaterial.mMacerateInto, 1L), + tBits, + new Object[] { "h", "X", 'X', OrePrefixes.clump.get(aMaterial) }); GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dustImpure, aMaterial.mMacerateInto, 1L), - tBits, - new Object[] { "h", "X", 'X', OrePrefixes.shard.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.dustImpure, aMaterial.mMacerateInto, 1L), + tBits, + new Object[] { "h", "X", 'X', OrePrefixes.shard.get(aMaterial) }); GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dustImpure, aMaterial.mMacerateInto, 1L), - tBits, - new Object[] { "h", "X", 'X', OrePrefixes.crushed.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.dustImpure, aMaterial.mMacerateInto, 1L), + tBits, + new Object[] { "h", "X", 'X', OrePrefixes.crushed.get(aMaterial) }); GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dustImpure, aMaterial.mMacerateInto, 1L), - tBits, - new Object[] { "h", "X", 'X', OrePrefixes.dirtyGravel.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.dustImpure, aMaterial.mMacerateInto, 1L), + tBits, + new Object[] { "h", "X", 'X', OrePrefixes.dirtyGravel.get(aMaterial) }); GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dustSmall, aMaterial, 4L), - tBits, - new Object[] { " X ", 'X', OrePrefixes.dust.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.dustSmall, aMaterial, 4L), + tBits, + new Object[] { " X ", 'X', OrePrefixes.dust.get(aMaterial) }); GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dustTiny, aMaterial, 9L), - tBits, - new Object[] { "X ", 'X', OrePrefixes.dust.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.dustTiny, aMaterial, 9L), + tBits, + new Object[] { "X ", 'X', OrePrefixes.dust.get(aMaterial) }); GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 1L), - tBits, - new Object[] { "XX", "XX", 'X', OrePrefixes.dustSmall.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 1L), + tBits, + new Object[] { "XX", "XX", 'X', OrePrefixes.dustSmall.get(aMaterial) }); GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 1L), - tBits, - new Object[] { "XXX", "XXX", "XXX", 'X', OrePrefixes.dustTiny.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 1L), + tBits, + new Object[] { "XXX", "XXX", "XXX", 'X', OrePrefixes.dustTiny.get(aMaterial) }); } } } @@ -1297,7 +1285,8 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG this.mUniverse = null; this.isFirstServerWorldTick = true; - for (FluidContainerRegistry.FluidContainerData tData : FluidContainerRegistry.getRegisteredFluidContainerData()) { + for (FluidContainerRegistry.FluidContainerData tData : FluidContainerRegistry + .getRegisteredFluidContainerData()) { if ((tData.filledContainer.getItem() == Items.potionitem) && (tData.filledContainer.getItemDamage() == 0)) { tData.fluid.amount = 0; break; @@ -1321,9 +1310,9 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG GT_FluidStack.fixAllThoseFuckingFluidIDs(); GT_Log.out.println( - "GT_Mod: Cleaning up all OreDict Crafting Recipes, which have an empty List in them, since they are never meeting any Condition."); + "GT_Mod: Cleaning up all OreDict Crafting Recipes, which have an empty List in them, since they are never meeting any Condition."); List tList = CraftingManager.getInstance() - .getRecipeList(); + .getRecipeList(); for (int i = 0; i < tList.size(); i++) { if ((tList.get(i) instanceof ShapedOreRecipe)) { for (Object tObject : ((ShapedOreRecipe) tList.get(i)).getInput()) { @@ -1374,11 +1363,11 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG @SubscribeEvent public void onArrowNockEvent(ArrowNockEvent aEvent) { if ((!aEvent.isCanceled()) && (GT_Utility.isStackValid(aEvent.result)) - && (GT_Utility.getProjectile(SubTag.PROJECTILE_ARROW, aEvent.entityPlayer.inventory) != null)) { + && (GT_Utility.getProjectile(SubTag.PROJECTILE_ARROW, aEvent.entityPlayer.inventory) != null)) { aEvent.entityPlayer.setItemInUse( - aEvent.result, - aEvent.result.getItem() - .getMaxItemUseDuration(aEvent.result)); + aEvent.result, + aEvent.result.getItem() + .getMaxItemUseDuration(aEvent.result)); aEvent.setCanceled(true); } } @@ -1387,8 +1376,8 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG public void onArrowLooseEvent(ArrowLooseEvent aEvent) { ItemStack aArrow = GT_Utility.getProjectile(SubTag.PROJECTILE_ARROW, aEvent.entityPlayer.inventory); if ((!aEvent.isCanceled()) && (GT_Utility.isStackValid(aEvent.bow)) - && (aArrow != null) - && ((aEvent.bow.getItem() instanceof ItemBow))) { + && (aArrow != null) + && ((aEvent.bow.getItem() instanceof ItemBow))) { float tSpeed = aEvent.charge / 20.0F; tSpeed = (tSpeed * tSpeed + tSpeed * 2.0F) / 3.0F; if (tSpeed < 0.1D) { @@ -1398,11 +1387,11 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG tSpeed = 1.0F; } EntityArrow tArrowEntity = ((IProjectileItem) aArrow.getItem()).getProjectile( - SubTag.PROJECTILE_ARROW, - aArrow, - aEvent.entityPlayer.worldObj, - aEvent.entityPlayer, - tSpeed * 2.0F); + SubTag.PROJECTILE_ARROW, + aArrow, + aEvent.entityPlayer.worldObj, + aEvent.entityPlayer, + tSpeed * 2.0F); if (tSpeed >= 1.0F) { tArrowEntity.setIsCritical(true); } @@ -1422,11 +1411,11 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG aEvent.bow.getItem(); new WorldSpawnedEventBuilder.SoundAtEntityEventBuilder().setPitch(0.64893958288F + tSpeed * 0.5F) - .setVolume(1f) - .setIdentifier(SoundResource.RANDOM_BOW) - .setEntity(aEvent.entityPlayer) - .setWorld(aEvent.entityPlayer.worldObj) - .run(); + .setVolume(1f) + .setIdentifier(SoundResource.RANDOM_BOW) + .setEntity(aEvent.entityPlayer) + .setWorld(aEvent.entityPlayer.worldObj) + .run(); tArrowEntity.canBePickedUp = 1; if (!aEvent.entityPlayer.capabilities.isCreativeMode) { @@ -1445,7 +1434,7 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG @SubscribeEvent public void onEndermanTeleportEvent(EnderTeleportEvent aEvent) { if (((aEvent.entityLiving instanceof EntityEnderman)) - && (aEvent.entityLiving.getActivePotionEffect(Potion.weakness) != null)) { + && (aEvent.entityLiving.getActivePotionEffect(Potion.weakness) != null)) { aEvent.setCanceled(true); } } @@ -1455,17 +1444,16 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG if ((aEvent.entity != null) && (!aEvent.entity.worldObj.isRemote)) { if ((aEvent.entity instanceof EntityItem)) { ((EntityItem) aEvent.entity).setEntityItemStack( - GT_OreDictUnificator.get(true, ((EntityItem) aEvent.entity).getEntityItem(), true)); + GT_OreDictUnificator.get(true, ((EntityItem) aEvent.entity).getEntityItem(), true)); } if ((this.mSkeletonsShootGTArrows > 0) && (aEvent.entity.getClass() == EntityArrow.class) - && (aEvent.entity.worldObj.rand.nextInt(this.mSkeletonsShootGTArrows) == 0) - && ((((EntityArrow) aEvent.entity).shootingEntity instanceof EntitySkeleton))) { + && (aEvent.entity.worldObj.rand.nextInt(this.mSkeletonsShootGTArrows) == 0) + && ((((EntityArrow) aEvent.entity).shootingEntity instanceof EntitySkeleton))) { aEvent.entity.worldObj.spawnEntityInWorld( - new GT_Entity_Arrow( - (EntityArrow) aEvent.entity, - OrePrefixes.arrowGtWood.mPrefixedItems.get( - aEvent.entity.worldObj.rand.nextInt( - OrePrefixes.arrowGtWood.mPrefixedItems.size())))); + new GT_Entity_Arrow( + (EntityArrow) aEvent.entity, + OrePrefixes.arrowGtWood.mPrefixedItems + .get(aEvent.entity.worldObj.rand.nextInt(OrePrefixes.arrowGtWood.mPrefixedItems.size())))); aEvent.entity.setDead(); } } @@ -1474,7 +1462,7 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG @SubscribeEvent public void onOreGenEvent(OreGenEvent.GenerateMinable aGenerator) { if ((this.mDisableVanillaOres) && ((aGenerator.generator instanceof WorldGenMinable)) - && (PREVENTED_ORES.contains(aGenerator.type))) { + && (PREVENTED_ORES.contains(aGenerator.type))) { aGenerator.setResult(Result.DENY); } } @@ -1486,37 +1474,37 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG @SubscribeEvent public void onPlayerInteraction(PlayerInteractEvent aEvent) { if ((aEvent.entityPlayer == null) || (aEvent.entityPlayer.worldObj == null) - || (aEvent.action == null) - || (aEvent.world.provider == null)) { + || (aEvent.action == null) + || (aEvent.world.provider == null)) { return; } if ((!aEvent.entityPlayer.worldObj.isRemote) && (aEvent.action != PlayerInteractEvent.Action.RIGHT_CLICK_AIR) - && (GT_Log.pal != null)) { + && (GT_Log.pal != null)) { this.mBufferedPlayerActivity.offer( - getDataAndTime() + ";" - + aEvent.action.name() - + ";" - + aEvent.entityPlayer.getDisplayName() - + ";DIM:" - + aEvent.world.provider.dimensionId - + ";" - + aEvent.x - + ";" - + aEvent.y - + ";" - + aEvent.z - + ";|;" - + aEvent.x / 10 - + ";" - + aEvent.y / 10 - + ";" - + aEvent.z / 10); + getDataAndTime() + ";" + + aEvent.action.name() + + ";" + + aEvent.entityPlayer.getDisplayName() + + ";DIM:" + + aEvent.world.provider.dimensionId + + ";" + + aEvent.x + + ";" + + aEvent.y + + ";" + + aEvent.z + + ";|;" + + aEvent.x / 10 + + ";" + + aEvent.y / 10 + + ";" + + aEvent.z / 10); } ItemStack aStack = aEvent.entityPlayer.getCurrentEquippedItem(); if ((aStack != null) && (aEvent.action == PlayerInteractEvent.Action.RIGHT_CLICK_BLOCK) - && (aStack.getItem() == Items.flint_and_steel)) { + && (aStack.getItem() == Items.flint_and_steel)) { if ((!aEvent.world.isRemote) && (!aEvent.entityPlayer.capabilities.isCreativeMode) - && (aEvent.world.rand.nextInt(100) >= this.mFlintChance)) { + && (aEvent.world.rand.nextInt(100) >= this.mFlintChance)) { aEvent.setCanceled(true); aStack.damageItem(1, aEvent.entityPlayer); if (aStack.getItemDamage() >= aStack.getMaxDamage()) { @@ -1535,38 +1523,38 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG if (aEvent.harvester != null) { if ((!aEvent.world.isRemote) && (GT_Log.pal != null)) { this.mBufferedPlayerActivity.offer( - getDataAndTime() + ";HARVEST_BLOCK;" - + aEvent.harvester.getDisplayName() - + ";DIM:" - + aEvent.world.provider.dimensionId - + ";" - + aEvent.x - + ";" - + aEvent.y - + ";" - + aEvent.z - + ";|;" - + aEvent.x / 10 - + ";" - + aEvent.y / 10 - + ";" - + aEvent.z / 10); + getDataAndTime() + ";HARVEST_BLOCK;" + + aEvent.harvester.getDisplayName() + + ";DIM:" + + aEvent.world.provider.dimensionId + + ";" + + aEvent.x + + ";" + + aEvent.y + + ";" + + aEvent.z + + ";|;" + + aEvent.x / 10 + + ";" + + aEvent.y / 10 + + ";" + + aEvent.z / 10); } ItemStack aStack = aEvent.harvester.getCurrentEquippedItem(); if (aStack != null) { if ((aStack.getItem() instanceof GT_MetaGenerated_Tool)) { ((GT_MetaGenerated_Tool) aStack.getItem()).onHarvestBlockEvent( - aEvent.drops, - aStack, - aEvent.harvester, - aEvent.block, - aEvent.x, - aEvent.y, - aEvent.z, - (byte) aEvent.blockMetadata, - aEvent.fortuneLevel, - aEvent.isSilkTouching, - aEvent); + aEvent.drops, + aStack, + aEvent.harvester, + aEvent.block, + aEvent.x, + aEvent.y, + aEvent.z, + (byte) aEvent.blockMetadata, + aEvent.fortuneLevel, + aEvent.isSilkTouching, + aEvent); } if (EnchantmentHelper.getEnchantmentLevel(Enchantment.fireAspect.effectId, aStack) > 2) { try { @@ -1589,7 +1577,7 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG @SubscribeEvent public void registerOre(OreDictionary.OreRegisterEvent aEvent) { ModContainer tContainer = Loader.instance() - .activeModContainer(); + .activeModContainer(); String aMod = tContainer == null ? "UNKNOWN" : tContainer.getModId(); String aOriginalMod = aMod; if (GT_OreDictUnificator.isRegisteringOres()) { @@ -1598,34 +1586,33 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG aMod = "UNKNOWN"; } if ((aEvent == null) || (aEvent.Ore == null) - || (aEvent.Ore.getItem() == null) - || (aEvent.Name == null) - || (aEvent.Name.isEmpty()) - || (aEvent.Name.replaceAll("_", "") - .length() - - aEvent.Name.length() == 9)) { + || (aEvent.Ore.getItem() == null) + || (aEvent.Name == null) + || (aEvent.Name.isEmpty()) + || (aEvent.Name.replaceAll("_", "") + .length() - aEvent.Name.length() == 9)) { if (aOriginalMod.equals(GregTech.ID)) { aOriginalMod = "UNKNOWN"; } GT_Log.ore.println( - aOriginalMod - + " did something very bad! The registration is too invalid to even be shown properly. This happens only if you register null, invalid Items, empty Strings or even nonexisting Events to the OreDict."); + aOriginalMod + + " did something very bad! The registration is too invalid to even be shown properly. This happens only if you register null, invalid Items, empty Strings or even nonexisting Events to the OreDict."); throw new IllegalArgumentException( - aOriginalMod - + " did something very bad! The registration is too invalid to even be shown properly. This happens only if you register null, invalid Items, empty Strings or even nonexisting Events to the OreDict."); + aOriginalMod + + " did something very bad! The registration is too invalid to even be shown properly. This happens only if you register null, invalid Items, empty Strings or even nonexisting Events to the OreDict."); } try { aEvent.Ore.stackSize = 1; if (this.mIgnoreTcon || aEvent.Ore.getUnlocalizedName() - .startsWith("item.oreberry")) { + .startsWith("item.oreberry")) { if ((aOriginalMod.toLowerCase(Locale.ENGLISH) - .contains("xycraft")) - || (aOriginalMod.toLowerCase(Locale.ENGLISH) - .contains("tconstruct")) - || ((aOriginalMod.toLowerCase(Locale.ENGLISH) - .contains("natura")) - && (!aOriginalMod.toLowerCase(Locale.ENGLISH) - .contains("natural")))) { + .contains("xycraft")) + || (aOriginalMod.toLowerCase(Locale.ENGLISH) + .contains("tconstruct")) + || ((aOriginalMod.toLowerCase(Locale.ENGLISH) + .contains("natura")) + && (!aOriginalMod.toLowerCase(Locale.ENGLISH) + .contains("natural")))) { if (GT_Values.D1) { GT_Log.ore.println(aMod + " -> " + aEvent.Name + " is getting ignored, because of racism. :P"); } @@ -1634,11 +1621,11 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG } String tModToName = aMod + " -> " + aEvent.Name; if ((this.mOreDictActivated) || (GregTech_API.sPostloadStarted) - || ((this.mSortToTheEnd) && (GregTech_API.sLoadFinished))) { + || ((this.mSortToTheEnd) && (GregTech_API.sLoadFinished))) { tModToName = aOriginalMod + " --Late--> " + aEvent.Name; } if (((aEvent.Ore.getItem() instanceof ItemBlock)) - || (GT_Utility.getBlockFromStack(aEvent.Ore) != Blocks.air)) { + || (GT_Utility.getBlockFromStack(aEvent.Ore) != Blocks.air)) { GT_OreDictUnificator.addToBlacklist(aEvent.Ore); } this.mRegisteredOres.add(aEvent.Ore); @@ -1663,14 +1650,13 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG GT_OreDictUnificator.registerOre("stoneCobble", aEvent.Ore); return; } else if ((aEvent.Name.contains("|")) || (aEvent.Name.contains("*")) - || (aEvent.Name.contains(":")) - || (aEvent.Name.contains(".")) - || (aEvent.Name.contains("$"))) { - GT_Log.ore.println( - tModToName + " is using a private Prefix and is therefor getting ignored properly."); - return; - } else - if (aEvent.Name.equals("copperWire")) { + || (aEvent.Name.contains(":")) + || (aEvent.Name.contains(".")) + || (aEvent.Name.contains("$"))) { + GT_Log.ore + .println(tModToName + " is using a private Prefix and is therefor getting ignored properly."); + return; + } else if (aEvent.Name.equals("copperWire")) { GT_OreDictUnificator.registerOre(OreDictNames.craftingWireCopper, aEvent.Ore); } else if (aEvent.Name.equals("oreHeeEndrium")) { GT_OreDictUnificator.registerOre(OrePrefixes.ore, Materials.HeeEndium, aEvent.Ore); @@ -1720,11 +1706,9 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG return; } else if (aEvent.Name.contains(" ")) { GT_Log.ore.println( - tModToName - + " is getting re-registered because the OreDict Name containing invalid spaces."); - GT_OreDictUnificator.registerOre( - aEvent.Name.replaceAll(" ", ""), - GT_Utility.copyAmount(1L, aEvent.Ore)); + tModToName + " is getting re-registered because the OreDict Name containing invalid spaces."); + GT_OreDictUnificator + .registerOre(aEvent.Name.replaceAll(" ", ""), GT_Utility.copyAmount(1L, aEvent.Ore)); aEvent.Ore.setStackDisplayName("Invalid OreDictionary Tag"); return; } else if (this.mInvalidNames.contains(aEvent.Name)) { @@ -1735,23 +1719,21 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG OrePrefixes aPrefix = OrePrefixes.getOrePrefix(aEvent.Name); Materials aMaterial = Materials._NULL; if ((aPrefix == OrePrefixes.nugget) && (aMod.equals(Thaumcraft.ID)) - && (aEvent.Ore.getItem() - .getUnlocalizedName() - .contains("ItemResource"))) { + && (aEvent.Ore.getItem() + .getUnlocalizedName() + .contains("ItemResource"))) { return; } if (aPrefix == null) { if (aEvent.Name.toLowerCase() - .equals(aEvent.Name)) { + .equals(aEvent.Name)) { GT_Log.ore.println(tModToName + " is invalid due to being solely lowercased."); return; } else if (aEvent.Name.toUpperCase() - .equals(aEvent.Name)) { - GT_Log.ore.println( - tModToName + " is invalid due to being solely uppercased."); - return; - } else - if (Character.isUpperCase(aEvent.Name.charAt(0))) { + .equals(aEvent.Name)) { + GT_Log.ore.println(tModToName + " is invalid due to being solely uppercased."); + return; + } else if (Character.isUpperCase(aEvent.Name.charAt(0))) { GT_Log.ore.println(tModToName + " is invalid due to the first character being uppercased."); } } else { @@ -1762,7 +1744,7 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG String tNewName = aEvent.Name.replaceFirst(aPrefix.toString(), aPrefix.mPrefixInto.toString()); if (!GT_OreDictUnificator.isRegisteringOres()) { GT_Log.ore.println( - tModToName + " uses a depricated Prefix, and is getting re-registered as " + tNewName); + tModToName + " uses a depricated Prefix, and is getting re-registered as " + tNewName); } GT_OreDictUnificator.registerOre(tNewName, aEvent.Ore); return; @@ -1771,16 +1753,16 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG if (tName.length() > 0) { char firstChar = tName.charAt(0); if (Character.isUpperCase(firstChar) || Character.isLowerCase(firstChar) - || firstChar == '_' - || Character.isDigit(firstChar)) { + || firstChar == '_' + || Character.isDigit(firstChar)) { if (aPrefix.mIsMaterialBased) { aMaterial = Materials.get(tName); if (aMaterial != aMaterial.mMaterialInto) { GT_OreDictUnificator.registerOre(aPrefix, aMaterial.mMaterialInto, aEvent.Ore); if (!GT_OreDictUnificator.isRegisteringOres()) { GT_Log.ore.println( - tModToName + " uses a deprecated Material and is getting re-registered as " - + aPrefix.get(aMaterial.mMaterialInto)); + tModToName + " uses a deprecated Material and is getting re-registered as " + + aPrefix.get(aMaterial.mMaterialInto)); } return; } @@ -1789,32 +1771,31 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG } if (aMaterial != Materials._NULL) { Materials tReRegisteredMaterial; - for (Iterator i$ = aMaterial.mOreReRegistrations.iterator(); i$.hasNext(); GT_OreDictUnificator.registerOre( - aPrefix, - tReRegisteredMaterial, - aEvent.Ore)) { + for (Iterator i$ = aMaterial.mOreReRegistrations.iterator(); i$ + .hasNext(); GT_OreDictUnificator + .registerOre(aPrefix, tReRegisteredMaterial, aEvent.Ore)) { tReRegisteredMaterial = i$.next(); } aMaterial.add(GT_Utility.copyAmount(1L, aEvent.Ore)); if (GregTech_API.sThaumcraftCompat != null && aPrefix.doGenerateItem(aMaterial) - && !aPrefix.isIgnored(aMaterial)) { + && !aPrefix.isIgnored(aMaterial)) { List tAspects = new ArrayList<>(); for (TC_AspectStack tAspect : aPrefix.mAspects) tAspect.addToAspectList(tAspects); if (aPrefix.mMaterialAmount >= 3628800 || aPrefix.mMaterialAmount < 0) for (TC_AspectStack tAspect : aMaterial.mAspects) tAspect.addToAspectList(tAspects); GregTech_API.sThaumcraftCompat.registerThaumcraftAspectsToItem( - GT_Utility.copyAmount(1, aEvent.Ore), - tAspects, - aEvent.Name); + GT_Utility.copyAmount(1, aEvent.Ore), + tAspects, + aEvent.Name); } switch (aPrefix) { case crystal -> { if ((aMaterial == Materials.CertusQuartz) - || (aMaterial == Materials.NetherQuartz) - || (aMaterial == Materials.Fluix)) { + || (aMaterial == Materials.NetherQuartz) + || (aMaterial == Materials.Fluix)) { GT_OreDictUnificator.registerOre(OrePrefixes.gem, aMaterial, aEvent.Ore); } } @@ -1825,47 +1806,40 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG GT_OreDictUnificator.registerOre(Dyes.dyeCyan, aEvent.Ore); } else if (aMaterial == Materials.InfusedAir || aMaterial == Materials.InfusedWater - || aMaterial == Materials.InfusedFire - || aMaterial == Materials.InfusedEarth - || aMaterial == Materials.InfusedOrder - || aMaterial == Materials.InfusedEntropy) { - GT_OreDictUnificator.registerOre( - aMaterial.mName.replaceFirst("Infused", "shard"), - aEvent.Ore); - } else - if (aMaterial == Materials.Chocolate) { + || aMaterial == Materials.InfusedFire + || aMaterial == Materials.InfusedEarth + || aMaterial == Materials.InfusedOrder + || aMaterial == Materials.InfusedEntropy) { + GT_OreDictUnificator.registerOre( + aMaterial.mName.replaceFirst("Infused", "shard"), + aEvent.Ore); + } else if (aMaterial == Materials.Chocolate) { GT_OreDictUnificator.registerOre(Dyes.dyeBrown, aEvent.Ore); } else if (aMaterial == Materials.CertusQuartz - || aMaterial == Materials.NetherQuartz) { - GT_OreDictUnificator.registerOre( - OrePrefixes.item.get(aMaterial), - aEvent.Ore); - GT_OreDictUnificator.registerOre( - OrePrefixes.crystal, - aMaterial, - aEvent.Ore); - GT_OreDictUnificator.registerOre( - OreDictNames.craftingQuartz, - aEvent.Ore); - } else + || aMaterial == Materials.NetherQuartz) { + GT_OreDictUnificator + .registerOre(OrePrefixes.item.get(aMaterial), aEvent.Ore); + GT_OreDictUnificator + .registerOre(OrePrefixes.crystal, aMaterial, aEvent.Ore); + GT_OreDictUnificator + .registerOre(OreDictNames.craftingQuartz, aEvent.Ore); + } else if (aMaterial == Materials.Fluix || aMaterial == Materials.Quartz - || aMaterial == Materials.Quartzite) { - GT_OreDictUnificator.registerOre( - OrePrefixes.crystal, - aMaterial, - aEvent.Ore); - GT_OreDictUnificator.registerOre( - OreDictNames.craftingQuartz, - aEvent.Ore); - } + || aMaterial == Materials.Quartzite) { + GT_OreDictUnificator.registerOre( + OrePrefixes.crystal, + aMaterial, + aEvent.Ore); + GT_OreDictUnificator + .registerOre(OreDictNames.craftingQuartz, aEvent.Ore); + } } case cableGt01 -> { if (aMaterial == Materials.Tin) { GT_OreDictUnificator.registerOre(OreDictNames.craftingWireTin, aEvent.Ore); } else if (aMaterial == Materials.AnyCopper) { - GT_OreDictUnificator.registerOre( - OreDictNames.craftingWireCopper, - aEvent.Ore); + GT_OreDictUnificator + .registerOre(OreDictNames.craftingWireCopper, aEvent.Ore); } else if (aMaterial == Materials.Gold) { GT_OreDictUnificator.registerOre(OreDictNames.craftingWireGold, aEvent.Ore); } else if (aMaterial == Materials.AnyIron) { @@ -1874,11 +1848,11 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG } case lens -> { if ((aMaterial.contains(SubTag.TRANSPARENT)) - && (aMaterial.mColor != Dyes._NULL)) { + && (aMaterial.mColor != Dyes._NULL)) { GT_OreDictUnificator.registerOre( - "craftingLens" + aMaterial.mColor.toString() - .replaceFirst("dye", ""), - aEvent.Ore); + "craftingLens" + aMaterial.mColor.toString() + .replaceFirst("dye", ""), + aEvent.Ore); } } case plate -> { @@ -1896,21 +1870,18 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG GT_OreDictUnificator.addToBlacklist(aEvent.Ore); } } - case gearGt -> GT_OreDictUnificator.registerOre( - OrePrefixes.gear, - aMaterial, - aEvent.Ore); + case gearGt -> GT_OreDictUnificator + .registerOre(OrePrefixes.gear, aMaterial, aEvent.Ore); case stick -> { if (!GT_RecipeRegistrator.sRodMaterialList.contains(aMaterial)) { GT_RecipeRegistrator.sRodMaterialList.add(aMaterial); } else if (aMaterial == Materials.Wood) { GT_OreDictUnificator.addToBlacklist(aEvent.Ore); } else if ((aMaterial == Materials.Tin) || (aMaterial == Materials.Lead) - || (aMaterial == Materials.SolderingAlloy)) { - GT_OreDictUnificator.registerOre( - ToolDictNames.craftingToolSolderingMetal, - aEvent.Ore); - } + || (aMaterial == Materials.SolderingAlloy)) { + GT_OreDictUnificator + .registerOre(ToolDictNames.craftingToolSolderingMetal, aEvent.Ore); + } } case dust -> { if (aMaterial == Materials.Salt) { @@ -1948,66 +1919,41 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG } else if (aMaterial == Materials.Knightmetal) { GT_OreDictUnificator.registerOre("knightmetal", aEvent.Ore); } else if ((aMaterial == Materials.Brass) && (aEvent.Ore.getItemDamage() == 2) - && (aEvent.Ore.getUnlocalizedName() - .equals("item.ingotBrass")) - && (new ItemStack(aEvent.Ore.getItem(), 1, 0).getUnlocalizedName() - .contains("red"))) { - GT_OreDictUnificator.set( - OrePrefixes.ingot, - Materials.RedAlloy, - new ItemStack( - aEvent.Ore.getItem(), - 1, - 0)); - GT_OreDictUnificator.set( - OrePrefixes.ingot, - Materials.BlueAlloy, - new ItemStack( - aEvent.Ore.getItem(), - 1, - 1)); - GT_OreDictUnificator.set( - OrePrefixes.ingot, - Materials.Brass, - new ItemStack( - aEvent.Ore.getItem(), - 1, - 2)); - if (!mDisableIC2Cables) { - GT_Values.RA.addWiremillRecipe( - GT_ModHandler.getIC2Item( - "copperCableItem", - 3L), - new ItemStack( - aEvent.Ore.getItem(), - 1, - 8), - 400, - 1); - GT_Values.RA.addWiremillRecipe( - GT_ModHandler.getIC2Item( - "ironCableItem", - 6L), - new ItemStack( - aEvent.Ore.getItem(), - 1, - 9), - 400, - 2); - } - GT_Values.RA.addCutterRecipe( - new ItemStack( - aEvent.Ore.getItem(), - 1, - 3), - new ItemStack( - aEvent.Ore.getItem(), - 16, - 4), - null, - 400, - 8); - } + && (aEvent.Ore.getUnlocalizedName() + .equals("item.ingotBrass")) + && (new ItemStack(aEvent.Ore.getItem(), 1, 0).getUnlocalizedName() + .contains("red"))) { + GT_OreDictUnificator.set( + OrePrefixes.ingot, + Materials.RedAlloy, + new ItemStack(aEvent.Ore.getItem(), 1, 0)); + GT_OreDictUnificator.set( + OrePrefixes.ingot, + Materials.BlueAlloy, + new ItemStack(aEvent.Ore.getItem(), 1, 1)); + GT_OreDictUnificator.set( + OrePrefixes.ingot, + Materials.Brass, + new ItemStack(aEvent.Ore.getItem(), 1, 2)); + if (!mDisableIC2Cables) { + GT_Values.RA.addWiremillRecipe( + GT_ModHandler.getIC2Item("copperCableItem", 3L), + new ItemStack(aEvent.Ore.getItem(), 1, 8), + 400, + 1); + GT_Values.RA.addWiremillRecipe( + GT_ModHandler.getIC2Item("ironCableItem", 6L), + new ItemStack(aEvent.Ore.getItem(), 1, 9), + 400, + 2); + } + GT_Values.RA.addCutterRecipe( + new ItemStack(aEvent.Ore.getItem(), 1, 3), + new ItemStack(aEvent.Ore.getItem(), 16, 4), + null, + 400, + 8); + } } default -> {} } @@ -2017,12 +1963,12 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG } else { for (Dyes tDye : Dyes.VALUES) { if (aEvent.Name.endsWith( - tDye.name() - .replaceFirst("dye", ""))) { + tDye.name() + .replaceFirst("dye", ""))) { GT_OreDictUnificator.addToBlacklist(aEvent.Ore); GT_Log.ore.println( - tModToName - + " Oh man, why the fuck would anyone need a OreDictified Color for this, that is even too much for GregTech... do not report this, this is just a random Comment about how ridiculous this is."); + tModToName + + " Oh man, why the fuck would anyone need a OreDictified Color for this, that is even too much for GregTech... do not report this, this is just a random Comment about how ridiculous this is."); return; } } @@ -2074,10 +2020,8 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG switch (tName) { case "ToolSolderingMetal" -> GregTech_API.registerSolderingMetal(aEvent.Ore); case "IndustrialDiamond" -> GT_OreDictUnificator.addToBlacklist(aEvent.Ore); - case "WireCopper" -> GT_OreDictUnificator.registerOre( - OrePrefixes.wire, - Materials.Copper, - aEvent.Ore); + case "WireCopper" -> GT_OreDictUnificator + .registerOre(OrePrefixes.wire, Materials.Copper, aEvent.Ore); } } case wood -> { @@ -2111,12 +2055,12 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG @SuppressWarnings("deprecated") public static void stepMaterialsVanilla(Collection mEvents, - ProgressManager.ProgressBar progressBar) { + ProgressManager.ProgressBar progressBar) { int size = 5; int sizeStep = mEvents.size() / 20 - 1; GT_Proxy.OreDictEventContainer tEvent; - for (Iterator i$ = mEvents.iterator(); i$.hasNext(); GT_Proxy.registerRecipes( - tEvent)) { + for (Iterator i$ = mEvents.iterator(); i$.hasNext(); GT_Proxy + .registerRecipes(tEvent)) { tEvent = i$.next(); sizeStep--; if (sizeStep == 0) { @@ -2133,8 +2077,8 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG public void onLivingUpdate(LivingUpdateEvent aEvent) { if (aEvent.entityLiving.onGround) { int tX = MathHelper.floor_double(aEvent.entityLiving.posX), - tY = MathHelper.floor_double(aEvent.entityLiving.boundingBox.minY - 0.001F), - tZ = MathHelper.floor_double(aEvent.entityLiving.posZ); + tY = MathHelper.floor_double(aEvent.entityLiving.boundingBox.minY - 0.001F), + tZ = MathHelper.floor_double(aEvent.entityLiving.posZ); Block tBlock = aEvent.entityLiving.worldObj.getBlock(tX, tY, tZ); if (tBlock instanceof IBlockOnWalkOver) ((IBlockOnWalkOver) tBlock).onWalkOver(aEvent.entityLiving, aEvent.entityLiving.worldObj, tX, tY, tZ); @@ -2144,7 +2088,7 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG @SubscribeEvent public void onFluidContainerRegistration(FluidContainerRegistry.FluidContainerRegisterEvent aFluidEvent) { if ((aFluidEvent.data.filledContainer.getItem() == Items.potionitem) - && (aFluidEvent.data.filledContainer.getItemDamage() == 0)) { + && (aFluidEvent.data.filledContainer.getItemDamage() == 0)) { aFluidEvent.data.fluid.amount = 0; } GT_OreDictUnificator.addToBlacklist(aFluidEvent.data.emptyContainer); @@ -2195,7 +2139,7 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG } } if ((aEvent.world.getTotalWorldTime() % 100L == 0L) - && ((this.mItemDespawnTime != 6000) || (this.mMaxEqualEntitiesAtOneSpot > 0))) { + && ((this.mItemDespawnTime != 6000) || (this.mMaxEqualEntitiesAtOneSpot > 0))) { long startTime = System.nanoTime(); double oldX = 0, oldY = 0, oldZ = 0; if (debugEntityCramming && (aEvent.world.loadedEntityList.size() != 0)) { @@ -2205,55 +2149,52 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG if ((aEvent.world.loadedEntityList.get(i) instanceof Entity)) { Entity tEntity = aEvent.world.loadedEntityList.get(i); if (((tEntity instanceof EntityItem)) && (this.mItemDespawnTime != 6000) - && (((EntityItem) tEntity).lifespan == 6000)) { + && (((EntityItem) tEntity).lifespan == 6000)) { ((EntityItem) tEntity).lifespan = this.mItemDespawnTime; } else if (((tEntity instanceof EntityLivingBase)) && (this.mMaxEqualEntitiesAtOneSpot > 0) - && (!(tEntity instanceof EntityPlayer)) - && (tEntity.canBePushed()) - && (((EntityLivingBase) tEntity).getHealth() > 0.0F)) { - List tList = tEntity.worldObj.getEntitiesWithinAABBExcludingEntity( - tEntity, - tEntity.boundingBox.expand( - 0.20000000298023224D, - 0.0D, - 0.20000000298023224D)); - Class tClass = tEntity.getClass(); - int tEntityCount = 1; - if (tList != null) { - for (Object o : tList) { - if ((o != null) && (o.getClass() == tClass)) { - tEntityCount++; - } + && (!(tEntity instanceof EntityPlayer)) + && (tEntity.canBePushed()) + && (((EntityLivingBase) tEntity).getHealth() > 0.0F)) { + List tList = tEntity.worldObj.getEntitiesWithinAABBExcludingEntity( + tEntity, + tEntity.boundingBox.expand(0.20000000298023224D, 0.0D, 0.20000000298023224D)); + Class tClass = tEntity.getClass(); + int tEntityCount = 1; + if (tList != null) { + for (Object o : tList) { + if ((o != null) && (o.getClass() == tClass)) { + tEntityCount++; } } - if (tEntityCount > this.mMaxEqualEntitiesAtOneSpot) { - if (debugEntityCramming) { - // Cheeseball way of not receiving a bunch of spam caused by 1 location - // obviously fails if there are crammed entities in more than one spot. - if (tEntity.posX != oldX && tEntity.posY != oldY && tEntity.posZ != oldZ) { - GT_Log.out.println( - "CRAM: Excess entities: " + tEntityCount - + " at X " - + tEntity.posX - + " Y " - + tEntity.posY - + " Z " - + tEntity.posZ); - oldX = tEntity.posX; - oldY = tEntity.posY; - oldZ = tEntity.posZ; - } + } + if (tEntityCount > this.mMaxEqualEntitiesAtOneSpot) { + if (debugEntityCramming) { + // Cheeseball way of not receiving a bunch of spam caused by 1 location + // obviously fails if there are crammed entities in more than one spot. + if (tEntity.posX != oldX && tEntity.posY != oldY && tEntity.posZ != oldZ) { + GT_Log.out.println( + "CRAM: Excess entities: " + tEntityCount + + " at X " + + tEntity.posX + + " Y " + + tEntity.posY + + " Z " + + tEntity.posZ); + oldX = tEntity.posX; + oldY = tEntity.posY; + oldZ = tEntity.posZ; } - tEntity.attackEntityFrom( - DamageSource.inWall, - tEntityCount - this.mMaxEqualEntitiesAtOneSpot); } + tEntity.attackEntityFrom( + DamageSource.inWall, + tEntityCount - this.mMaxEqualEntitiesAtOneSpot); } + } } } if (debugEntityCramming && (aEvent.world.loadedEntityList.size() != 0)) { GT_Log.out.println( - "CRAM: Time spent checking " + (System.nanoTime() - startTime) / 1000 + " microseconds"); + "CRAM: Time spent checking " + (System.nanoTime() - startTime) / 1000 + " microseconds"); } } @@ -2271,10 +2212,10 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG if (aOre.mPrefix != null) { if (!aOre.mPrefix.isIgnored(aOre.mMaterial)) { aOre.mPrefix.processOre( - aOre.mMaterial == null ? Materials._NULL : aOre.mMaterial, - aOre.mEvent.Name, - aOre.mModID, - GT_Utility.copyAmount(1L, aOre.mEvent.Ore)); + aOre.mMaterial == null ? Materials._NULL : aOre.mMaterial, + aOre.mEvent.Name, + aOre.mModID, + GT_Utility.copyAmount(1L, aOre.mEvent.Ore)); } } else { // GT_FML_LOGGER.info("Thingy Name: "+ aOre.mEvent.Name+ " !!!Unknown 'Thingy' detected!!! This @@ -2288,29 +2229,29 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG public void onPlayerTickEventServer(TickEvent.PlayerTickEvent aEvent) { if ((aEvent.side.isServer()) && (aEvent.phase == TickEvent.Phase.END) && (!aEvent.player.isDead)) { if ((aEvent.player.ticksExisted % 200 == 0) && (aEvent.player.capabilities.allowEdit) - && (!aEvent.player.capabilities.isCreativeMode) - && (this.mSurvivalIntoAdventure)) { + && (!aEvent.player.capabilities.isCreativeMode) + && (this.mSurvivalIntoAdventure)) { aEvent.player.setGameType(GameType.ADVENTURE); aEvent.player.capabilities.allowEdit = false; if (this.mAxeWhenAdventure) { GT_Utility.sendChatToPlayer( - aEvent.player, - GT_LanguageManager.addStringLocalization( - "Interaction_DESCRIPTION_Index_097", - "It's dangerous to go alone! Take this.", - false)); + aEvent.player, + GT_LanguageManager.addStringLocalization( + "Interaction_DESCRIPTION_Index_097", + "It's dangerous to go alone! Take this.", + false)); aEvent.player.worldObj.spawnEntityInWorld( - new EntityItem( - aEvent.player.worldObj, - aEvent.player.posX, - aEvent.player.posY, - aEvent.player.posZ, - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.AXE, - 1, - Materials.Flint, - Materials.Wood, - null))); + new EntityItem( + aEvent.player.worldObj, + aEvent.player.posX, + aEvent.player.posY, + aEvent.player.posZ, + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.AXE, + 1, + Materials.Flint, + Materials.Wood, + null))); } } final boolean tHungerEffect = (this.mHungerEffect) && (aEvent.player.ticksExisted % 2400 == 1200); @@ -2321,9 +2262,9 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG if ((tStack = aEvent.player.inventory.getStackInSlot(i)) != null) { if (!aEvent.player.capabilities.isCreativeMode) { GT_Utility.applyRadioactivity( - aEvent.player, - GT_Utility.getRadioactivityLevel(tStack), - tStack.stackSize); + aEvent.player, + GT_Utility.getRadioactivityLevel(tStack), + tStack.stackSize); final float tHeat = GT_Utility.getHeatDamageFromItem(tStack); if (tHeat != 0.0F) { if (tHeat > 0.0F) { @@ -2346,9 +2287,9 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG if ((tStack = aEvent.player.inventory.armorInventory[i]) != null) { if (!aEvent.player.capabilities.isCreativeMode) { GT_Utility.applyRadioactivity( - aEvent.player, - GT_Utility.getRadioactivityLevel(tStack), - tStack.stackSize); + aEvent.player, + GT_Utility.getRadioactivityLevel(tStack), + tStack.stackSize); final float tHeat = GT_Utility.getHeatDamageFromItem(tStack); if (tHeat != 0.0F) { if (tHeat > 0.0F) { @@ -2410,12 +2351,12 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG if (cover.hasCoverGUI() && !cover.useModularUI()) { return cover.getClientGUI( - side, - tile.getCoverIDAtSide(side), - tile.getComplexCoverDataAtSide(side), - tile, - aPlayer, - aWorld); + side, + tile.getCoverIDAtSide(side), + tile.getComplexCoverDataAtSide(side), + tile, + aPlayer, + aWorld); } return null; } @@ -2429,8 +2370,8 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG private static List getOreDictNames(ItemStack stack) { return Arrays.stream(OreDictionary.getOreIDs(stack)) - .mapToObj(OreDictionary::getOreName) - .collect(Collectors.toList()); + .mapToObj(OreDictionary::getOreName) + .collect(Collectors.toList()); } @Override @@ -2440,8 +2381,8 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG } int rFuelValue = 0; if ((aFuel.getItem() instanceof GT_MetaGenerated_Item)) { - final Short tFuelValue = ((GT_MetaGenerated_Item) aFuel.getItem()).mBurnValues.get( - (short) aFuel.getItemDamage()); + final Short tFuelValue = ((GT_MetaGenerated_Item) aFuel.getItem()).mBurnValues + .get((short) aFuel.getItemDamage()); if (tFuelValue != null) { rFuelValue = Math.max(rFuelValue, tFuelValue); } @@ -2454,11 +2395,11 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG } else { // If not check the ore dict rFuelValue = Math.max( - rFuelValue, - getOreDictNames(aFuel).stream() - .mapToInt(f -> oreDictBurnTimes.getOrDefault(f, 0)) - .max() - .orElse(0)); + rFuelValue, + getOreDictNames(aFuel).stream() + .mapToInt(f -> oreDictBurnTimes.getOrDefault(f, 0)) + .max() + .orElse(0)); } // If we have something from the GT MetaGenerated_Item, ItemFuelValue, or OreDict return @@ -2482,19 +2423,17 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG // textures go to blocks/fluids and place the .png. File should be called fluid.fluid.{unlocalised_name}.png. // All lower case. final String fluidTexture = aMaterial.mIconSet.is_custom ? "fluid." + aMaterial.mName.toLowerCase() - : "autogenerated"; + : "autogenerated"; return GT_FluidFactory.builder(aMaterial.mName.toLowerCase(Locale.ENGLISH)) - .withLocalizedName(aMaterial.mDefaultLocalName) - .withTextureName(fluidTexture) - .withColorRGBA(aMaterial.mRGBa) - .withStateAndTemperature(LIQUID, aMaterial.getLiquidTemperature()) - .buildAndRegister() - .configureMaterials(aMaterial) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, aMaterial, 1L), - ItemList.Cell_Empty.get(1L)) - .asFluid(); + .withLocalizedName(aMaterial.mDefaultLocalName) + .withTextureName(fluidTexture) + .withColorRGBA(aMaterial.mRGBa) + .withStateAndTemperature(LIQUID, aMaterial.getLiquidTemperature()) + .buildAndRegister() + .configureMaterials(aMaterial) + .registerBContainers(GT_OreDictUnificator.get(OrePrefixes.cell, aMaterial, 1L), ItemList.Cell_Empty.get(1L)) + .asFluid(); } public Fluid addAutoGeneratedCorrespondingGas(Materials aMaterial) { @@ -2502,19 +2441,17 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG // textures go to blocks/fluids and place the .png. File should be called fluid.gas.{unlocalised_name}.png. All // lower case. final String fluidTexture = aMaterial.mIconSet.is_custom ? ("gas." + aMaterial.mName.toLowerCase()) - : "autogenerated"; + : "autogenerated"; return GT_FluidFactory.builder(aMaterial.mName.toLowerCase(Locale.ENGLISH)) - .withLocalizedName(aMaterial.mDefaultLocalName) - .withTextureName(fluidTexture) - .withColorRGBA(aMaterial.mRGBa) - .withStateAndTemperature(GAS, aMaterial.getGasTemperature()) - .buildAndRegister() - .configureMaterials(aMaterial) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, aMaterial, 1L), - ItemList.Cell_Empty.get(1L)) - .asFluid(); + .withLocalizedName(aMaterial.mDefaultLocalName) + .withTextureName(fluidTexture) + .withColorRGBA(aMaterial.mRGBa) + .withStateAndTemperature(GAS, aMaterial.getGasTemperature()) + .buildAndRegister() + .configureMaterials(aMaterial) + .registerBContainers(GT_OreDictUnificator.get(OrePrefixes.cell, aMaterial, 1L), ItemList.Cell_Empty.get(1L)) + .asFluid(); } public Fluid addAutogeneratedPlasmaFluid(Materials aMaterial) { @@ -2522,20 +2459,20 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG // textures go to blocks/fluids and place the .png. File should be called fluid.plasma.{unlocalised_name}.png. // All lower case. final String fluidTexture = aMaterial.mIconSet.is_custom ? ("plasma." + aMaterial.mName.toLowerCase()) - : "plasma.autogenerated"; + : "plasma.autogenerated"; return GT_FluidFactory.builder("plasma." + aMaterial.mName.toLowerCase(Locale.ENGLISH)) - .withLocalizedName(aMaterial.mDefaultLocalName + " Plasma") - .withTextureName(fluidTexture) - .withColorRGBA(aMaterial.mMoltenRGBa) - .withStateAndTemperature(PLASMA, 10000) - .buildAndRegister() - .configureMaterials(aMaterial) - .registerContainers( - GT_OreDictUnificator.get(OrePrefixes.cellPlasma, aMaterial, 1L), - ItemList.Cell_Empty.get(1L), - aMaterial.getMolten(1) != null ? 144 : 1000) - .asFluid(); + .withLocalizedName(aMaterial.mDefaultLocalName + " Plasma") + .withTextureName(fluidTexture) + .withColorRGBA(aMaterial.mMoltenRGBa) + .withStateAndTemperature(PLASMA, 10000) + .buildAndRegister() + .configureMaterials(aMaterial) + .registerContainers( + GT_OreDictUnificator.get(OrePrefixes.cellPlasma, aMaterial, 1L), + ItemList.Cell_Empty.get(1L), + aMaterial.getMolten(1) != null ? 144 : 1000) + .asFluid(); } public Fluid addAutogeneratedMoltenFluid(Materials aMaterial) { @@ -2543,22 +2480,20 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG // textures go to blocks/fluids and place the .png. File should be called fluid.molten.{unlocalised_name}.png. // All lower case. final String fluidTexture = aMaterial.mIconSet.is_custom ? ("molten." + aMaterial.mName.toLowerCase()) - : "molten.autogenerated"; + : "molten.autogenerated"; return GT_FluidFactory.builder("molten." + aMaterial.mName.toLowerCase(Locale.ENGLISH)) - .withLocalizedName("Molten " + aMaterial.mDefaultLocalName) - .withTextureName(fluidTexture) - .withColorRGBA(aMaterial.mMoltenRGBa) - .withStateAndTemperature( - MOLTEN, - aMaterial.mMeltingPoint < 0 ? 1000 : aMaterial.mMeltingPoint) - .buildAndRegister() - .configureMaterials(aMaterial) - .registerContainers( - GT_OreDictUnificator.get(OrePrefixes.cellMolten, aMaterial, 1L), - ItemList.Cell_Empty.get(1L), - 144) - .asFluid(); + .withLocalizedName("Molten " + aMaterial.mDefaultLocalName) + .withTextureName(fluidTexture) + .withColorRGBA(aMaterial.mMoltenRGBa) + .withStateAndTemperature(MOLTEN, aMaterial.mMeltingPoint < 0 ? 1000 : aMaterial.mMeltingPoint) + .buildAndRegister() + .configureMaterials(aMaterial) + .registerContainers( + GT_OreDictUnificator.get(OrePrefixes.cellMolten, aMaterial, 1L), + ItemList.Cell_Empty.get(1L), + 144) + .asFluid(); } // ------------------------------------------------------------------------------------------------------------ @@ -2567,7 +2502,7 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG Fluid[] crackedFluids = new Fluid[3]; String[] namePrefixes = { "lightlyhydrocracked.", "moderatelyhydrocracked.", "severelyhydrocracked." }; OrePrefixes[] orePrefixes = { OrePrefixes.cellHydroCracked1, OrePrefixes.cellHydroCracked2, - OrePrefixes.cellHydroCracked3 }; + OrePrefixes.cellHydroCracked3 }; final Fluid uncrackedFluid; if (aMaterial.mFluid != null) { uncrackedFluid = aMaterial.mFluid; @@ -2576,42 +2511,40 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG } else return; for (int i = 0; i < 3; i++) { crackedFluids[i] = GT_FluidFactory.builder(namePrefixes[i] + aMaterial.mName.toLowerCase(Locale.ENGLISH)) - .withIconsFrom(uncrackedFluid) - .withLocalizedName( - orePrefixes[i].mLocalizedMaterialPre - + aMaterial.mDefaultLocalName) - .withColorRGBA(aMaterial.mRGBa) - .withStateAndTemperature(GAS, 775) - .buildAndRegister() - .registerBContainers( - GT_OreDictUnificator.get(orePrefixes[i], aMaterial, 1L), - ItemList.Cell_Empty.get(1L)) - .asFluid(); + .withIconsFrom(uncrackedFluid) + .withLocalizedName(orePrefixes[i].mLocalizedMaterialPre + aMaterial.mDefaultLocalName) + .withColorRGBA(aMaterial.mRGBa) + .withStateAndTemperature(GAS, 775) + .buildAndRegister() + .registerBContainers( + GT_OreDictUnificator.get(orePrefixes[i], aMaterial, 1L), + ItemList.Cell_Empty.get(1L)) + .asFluid(); int hydrogenAmount = 2 * i + 2; GT_Values.RA.addCrackingRecipe( - i + 1, - new FluidStack(uncrackedFluid, 1000), - Materials.Hydrogen.getGas(hydrogenAmount * 800), - new FluidStack(crackedFluids[i], 1000), - 20 + 20 * i, - 240); + i + 1, + new FluidStack(uncrackedFluid, 1000), + Materials.Hydrogen.getGas(hydrogenAmount * 800), + new FluidStack(crackedFluids[i], 1000), + 20 + 20 * i, + 240); GT_Values.RA.addChemicalRecipe( - Materials.Hydrogen.getCells(hydrogenAmount), - GT_Utility.getIntegratedCircuit(i + 1), - new FluidStack(uncrackedFluid, 1000), - new FluidStack(crackedFluids[i], 800), - Materials.Empty.getCells(hydrogenAmount), - 160 + 80 * i, - 30); + Materials.Hydrogen.getCells(hydrogenAmount), + GT_Utility.getIntegratedCircuit(i + 1), + new FluidStack(uncrackedFluid, 1000), + new FluidStack(crackedFluids[i], 800), + Materials.Empty.getCells(hydrogenAmount), + 160 + 80 * i, + 30); GT_Values.RA.addChemicalRecipe( - aMaterial.getCells(1), - GT_Utility.getIntegratedCircuit(i + 1), - Materials.Hydrogen.getGas(hydrogenAmount * 1000), - new FluidStack(crackedFluids[i], 800), - Materials.Empty.getCells(1), - 160 + 80 * i, - 30); + aMaterial.getCells(1), + GT_Utility.getIntegratedCircuit(i + 1), + Materials.Hydrogen.getGas(hydrogenAmount * 1000), + new FluidStack(crackedFluids[i], 800), + Materials.Empty.getCells(1), + 160 + 80 * i, + 30); } aMaterial.setHydroCrackedFluids(crackedFluids); } @@ -2620,7 +2553,7 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG Fluid[] crackedFluids = new Fluid[3]; String[] namePrefixes = { "lightlysteamcracked.", "moderatelysteamcracked.", "severelysteamcracked." }; OrePrefixes[] orePrefixes = { OrePrefixes.cellSteamCracked1, OrePrefixes.cellSteamCracked2, - OrePrefixes.cellSteamCracked3 }; + OrePrefixes.cellSteamCracked3 }; final Fluid uncrackedFluid; if (aMaterial.mFluid != null) { uncrackedFluid = aMaterial.mFluid; @@ -2629,41 +2562,39 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG } else return; for (int i = 0; i < 3; i++) { crackedFluids[i] = GT_FluidFactory.builder(namePrefixes[i] + aMaterial.mName.toLowerCase(Locale.ENGLISH)) - .withIconsFrom(uncrackedFluid) - .withLocalizedName( - orePrefixes[i].mLocalizedMaterialPre - + aMaterial.mDefaultLocalName) - .withColorRGBA(aMaterial.mRGBa) - .withStateAndTemperature(GAS, 775) - .buildAndRegister() - .registerBContainers( - GT_OreDictUnificator.get(orePrefixes[i], aMaterial, 1L), - ItemList.Cell_Empty.get(1L)) - .asFluid(); + .withIconsFrom(uncrackedFluid) + .withLocalizedName(orePrefixes[i].mLocalizedMaterialPre + aMaterial.mDefaultLocalName) + .withColorRGBA(aMaterial.mRGBa) + .withStateAndTemperature(GAS, 775) + .buildAndRegister() + .registerBContainers( + GT_OreDictUnificator.get(orePrefixes[i], aMaterial, 1L), + ItemList.Cell_Empty.get(1L)) + .asFluid(); GT_Values.RA.addCrackingRecipe( - i + 1, - new FluidStack(uncrackedFluid, 1000), - GT_ModHandler.getSteam(1000), - new FluidStack(crackedFluids[i], 1200), - 20 + 20 * i, - 240); + i + 1, + new FluidStack(uncrackedFluid, 1000), + GT_ModHandler.getSteam(1000), + new FluidStack(crackedFluids[i], 1200), + 20 + 20 * i, + 240); GT_Values.RA.addChemicalRecipe( - GT_ModHandler.getIC2Item("steamCell", 1L), - GT_Utility.getIntegratedCircuit(i + 1), - new FluidStack(uncrackedFluid, 1000), - new FluidStack(crackedFluids[i], 800), - Materials.Empty.getCells(1), - 160 + 80 * i, - 30); + GT_ModHandler.getIC2Item("steamCell", 1L), + GT_Utility.getIntegratedCircuit(i + 1), + new FluidStack(uncrackedFluid, 1000), + new FluidStack(crackedFluids[i], 800), + Materials.Empty.getCells(1), + 160 + 80 * i, + 30); GT_Values.RA.addChemicalRecipe( - aMaterial.getCells(1), - GT_Utility.getIntegratedCircuit(i + 1), - GT_ModHandler.getSteam(1000), - new FluidStack(crackedFluids[i], 800), - Materials.Empty.getCells(1), - 160 + 80 * i, - 30); + aMaterial.getCells(1), + GT_Utility.getIntegratedCircuit(i + 1), + GT_ModHandler.getSteam(1000), + new FluidStack(crackedFluids[i], 800), + Materials.Empty.getCells(1), + 160 + 80 * i, + 30); } aMaterial.setSteamCrackedFluids(crackedFluids); } @@ -2684,14 +2615,14 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG @SuppressWarnings({ "MethodWithTooManyParameters" }) // Deprecated method @Deprecated public Fluid addFluid(String aName, String aLocalized, Materials aMaterial, int aState, int aTemperatureK, - ItemStack aFullContainer, ItemStack aEmptyContainer, int aFluidAmount) { + ItemStack aFullContainer, ItemStack aEmptyContainer, int aFluidAmount) { return GT_FluidFactory.builder(aName) - .withLocalizedName(aLocalized) - .withStateAndTemperature(FluidState.fromValue(aState), aTemperatureK) - .buildAndRegister() - .configureMaterials(aMaterial) - .registerContainers(aFullContainer, aEmptyContainer, aFluidAmount) - .asFluid(); + .withLocalizedName(aLocalized) + .withStateAndTemperature(FluidState.fromValue(aState), aTemperatureK) + .buildAndRegister() + .configureMaterials(aMaterial) + .registerContainers(aFullContainer, aEmptyContainer, aFluidAmount) + .asFluid(); } /** @@ -2700,23 +2631,22 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG @Deprecated @SuppressWarnings({ "MethodWithTooManyParameters" }) // Deprecated method public Fluid addFluid(String aName, String aTexture, String aLocalized, Materials aMaterial, short[] aRGBa, - int aState, int aTemperatureK, ItemStack aFullContainer, ItemStack aEmptyContainer, int aFluidAmount) { + int aState, int aTemperatureK, ItemStack aFullContainer, ItemStack aEmptyContainer, int aFluidAmount) { return GT_FluidFactory.builder(aName) - .withLocalizedName(aLocalized) - .withStillIconResourceLocation( - new ResourceLocation(GregTech.ID, "fluids/fluid." + aTexture)) - .withColorRGBA(aRGBa) - .withStateAndTemperature(FluidState.fromValue(aState), aTemperatureK) - .buildAndRegister() - .configureMaterials(aMaterial) - .registerContainers(aFullContainer, aEmptyContainer, aFluidAmount) - .asFluid(); + .withLocalizedName(aLocalized) + .withStillIconResourceLocation(new ResourceLocation(GregTech.ID, "fluids/fluid." + aTexture)) + .withColorRGBA(aRGBa) + .withStateAndTemperature(FluidState.fromValue(aState), aTemperatureK) + .buildAndRegister() + .configureMaterials(aMaterial) + .registerContainers(aFullContainer, aEmptyContainer, aFluidAmount) + .asFluid(); } public File getSaveDirectory() { return this.mUniverse == null ? null - : this.mUniverse.getSaveHandler() - .getWorldDirectory(); + : this.mUniverse.getSaveHandler() + .getWorldDirectory(); } public long getAnimationTicks() { @@ -2733,200 +2663,167 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG GT_OreDictUnificator.resetUnificationEntries(); for (OreDictEventContainer tOre : this.mEvents) { if ((!(tOre.mEvent.Ore.getItem() instanceof GT_MetaGenerated_Item)) && (tOre.mPrefix != null) - && (tOre.mPrefix.mIsUnificatable) - && (tOre.mMaterial != null)) { + && (tOre.mPrefix.mIsUnificatable) + && (tOre.mMaterial != null)) { boolean checkModID = tOre.mModID != null; if (checkModID) { switch (tOre.mModID) { case Names.ENDER_I_O -> { if (tOre.mPrefix == OrePrefixes.ingot && tOre.mMaterial == Materials.DarkSteel) { - GT_OreDictUnificator.addAssociation( - tOre.mPrefix, - tOre.mMaterial, - tOre.mEvent.Ore, - false); + GT_OreDictUnificator + .addAssociation(tOre.mPrefix, tOre.mMaterial, tOre.mEvent.Ore, false); GT_OreDictUnificator.set( - tOre.mPrefix, - tOre.mMaterial, - tOre.mEvent.Ore, - (GregTech_API.sUnification.get( - ConfigCategories.specialunificationtargets + "." + tOre.mModID, - tOre.mEvent.Name, - true)), - true); + tOre.mPrefix, + tOre.mMaterial, + tOre.mEvent.Ore, + (GregTech_API.sUnification.get( + ConfigCategories.specialunificationtargets + "." + tOre.mModID, + tOre.mEvent.Name, + true)), + true); continue; } } case Names.THERMAL_FONDATION -> { if (tOre.mPrefix == OrePrefixes.dust && tOre.mMaterial == Materials.Blizz) { - GT_OreDictUnificator.addAssociation( - tOre.mPrefix, - tOre.mMaterial, - tOre.mEvent.Ore, - false); + GT_OreDictUnificator + .addAssociation(tOre.mPrefix, tOre.mMaterial, tOre.mEvent.Ore, false); GT_OreDictUnificator.set( - tOre.mPrefix, - tOre.mMaterial, - tOre.mEvent.Ore, - (GregTech_API.sUnification.get( - ConfigCategories.specialunificationtargets + "." + tOre.mModID, - tOre.mEvent.Name, - true)), - true); + tOre.mPrefix, + tOre.mMaterial, + tOre.mEvent.Ore, + (GregTech_API.sUnification.get( + ConfigCategories.specialunificationtargets + "." + tOre.mModID, + tOre.mEvent.Name, + true)), + true); continue; } else if (tOre.mPrefix == OrePrefixes.dust && tOre.mMaterial == Materials.Pyrotheum) { - GT_OreDictUnificator.addAssociation( - tOre.mPrefix, - tOre.mMaterial, - tOre.mEvent.Ore, - false); + GT_OreDictUnificator + .addAssociation(tOre.mPrefix, tOre.mMaterial, tOre.mEvent.Ore, false); GT_OreDictUnificator.set( - tOre.mPrefix, - tOre.mMaterial, - tOre.mEvent.Ore, - (GregTech_API.sUnification.get( - ConfigCategories.specialunificationtargets + "." + tOre.mModID, - tOre.mEvent.Name, - true)), - true); + tOre.mPrefix, + tOre.mMaterial, + tOre.mEvent.Ore, + (GregTech_API.sUnification.get( + ConfigCategories.specialunificationtargets + "." + tOre.mModID, + tOre.mEvent.Name, + true)), + true); continue; } } case Names.ARS_MAGICA2 -> { if (tOre.mPrefix == OrePrefixes.dust && tOre.mMaterial == Materials.Vinteum) { - GT_OreDictUnificator.addAssociation( - tOre.mPrefix, - tOre.mMaterial, - tOre.mEvent.Ore, - false); + GT_OreDictUnificator + .addAssociation(tOre.mPrefix, tOre.mMaterial, tOre.mEvent.Ore, false); GT_OreDictUnificator.set( - tOre.mPrefix, - tOre.mMaterial, - tOre.mEvent.Ore, - (GregTech_API.sUnification.get( - ConfigCategories.specialunificationtargets + "." + tOre.mModID, - tOre.mEvent.Name, - true)), - true); + tOre.mPrefix, + tOre.mMaterial, + tOre.mEvent.Ore, + (GregTech_API.sUnification.get( + ConfigCategories.specialunificationtargets + "." + tOre.mModID, + tOre.mEvent.Name, + true)), + true); continue; } else if (tOre.mPrefix == OrePrefixes.gem && tOre.mMaterial == Materials.BlueTopaz) { - GT_OreDictUnificator.addAssociation( - tOre.mPrefix, - tOre.mMaterial, - tOre.mEvent.Ore, - false); + GT_OreDictUnificator + .addAssociation(tOre.mPrefix, tOre.mMaterial, tOre.mEvent.Ore, false); GT_OreDictUnificator.set( - tOre.mPrefix, - tOre.mMaterial, - tOre.mEvent.Ore, - (GregTech_API.sUnification.get( - ConfigCategories.specialunificationtargets + "." + tOre.mModID, - tOre.mEvent.Name, - true)), - true); + tOre.mPrefix, + tOre.mMaterial, + tOre.mEvent.Ore, + (GregTech_API.sUnification.get( + ConfigCategories.specialunificationtargets + "." + tOre.mModID, + tOre.mEvent.Name, + true)), + true); continue; } else if (tOre.mPrefix == OrePrefixes.gem && tOre.mMaterial == Materials.Chimerite) { - GT_OreDictUnificator.addAssociation( - tOre.mPrefix, - tOre.mMaterial, - tOre.mEvent.Ore, - false); + GT_OreDictUnificator + .addAssociation(tOre.mPrefix, tOre.mMaterial, tOre.mEvent.Ore, false); GT_OreDictUnificator.set( - tOre.mPrefix, - tOre.mMaterial, - tOre.mEvent.Ore, - (GregTech_API.sUnification.get( - ConfigCategories.specialunificationtargets + "." + tOre.mModID, - tOre.mEvent.Name, - true)), - true); + tOre.mPrefix, + tOre.mMaterial, + tOre.mEvent.Ore, + (GregTech_API.sUnification.get( + ConfigCategories.specialunificationtargets + "." + tOre.mModID, + tOre.mEvent.Name, + true)), + true); continue; } else if (tOre.mPrefix == OrePrefixes.gem && tOre.mMaterial == Materials.Moonstone) { - GT_OreDictUnificator.addAssociation( - tOre.mPrefix, - tOre.mMaterial, - tOre.mEvent.Ore, - false); + GT_OreDictUnificator + .addAssociation(tOre.mPrefix, tOre.mMaterial, tOre.mEvent.Ore, false); GT_OreDictUnificator.set( - tOre.mPrefix, - tOre.mMaterial, - tOre.mEvent.Ore, - (GregTech_API.sUnification.get( - ConfigCategories.specialunificationtargets + "." + tOre.mModID, - tOre.mEvent.Name, - true)), - true); + tOre.mPrefix, + tOre.mMaterial, + tOre.mEvent.Ore, + (GregTech_API.sUnification.get( + ConfigCategories.specialunificationtargets + "." + tOre.mModID, + tOre.mEvent.Name, + true)), + true); continue; } else if (tOre.mPrefix == OrePrefixes.gem && tOre.mMaterial == Materials.Sunstone) { - GT_OreDictUnificator.addAssociation( - tOre.mPrefix, - tOre.mMaterial, - tOre.mEvent.Ore, - false); + GT_OreDictUnificator + .addAssociation(tOre.mPrefix, tOre.mMaterial, tOre.mEvent.Ore, false); GT_OreDictUnificator.set( - tOre.mPrefix, - tOre.mMaterial, - tOre.mEvent.Ore, - (GregTech_API.sUnification.get( - ConfigCategories.specialunificationtargets + "." + tOre.mModID, - tOre.mEvent.Name, - true)), - true); + tOre.mPrefix, + tOre.mMaterial, + tOre.mEvent.Ore, + (GregTech_API.sUnification.get( + ConfigCategories.specialunificationtargets + "." + tOre.mModID, + tOre.mEvent.Name, + true)), + true); continue; } } case Names.ROTARY_CRAFT -> { if (tOre.mPrefix == OrePrefixes.ingot && tOre.mMaterial == Materials.HSLA) { - GT_OreDictUnificator.addAssociation( - tOre.mPrefix, - tOre.mMaterial, - tOre.mEvent.Ore, - false); + GT_OreDictUnificator + .addAssociation(tOre.mPrefix, tOre.mMaterial, tOre.mEvent.Ore, false); GT_OreDictUnificator.set( - tOre.mPrefix, - tOre.mMaterial, - tOre.mEvent.Ore, - (GregTech_API.sUnification.get( - ConfigCategories.specialunificationtargets + "." + tOre.mModID, - tOre.mEvent.Name, - true)), - true); + tOre.mPrefix, + tOre.mMaterial, + tOre.mEvent.Ore, + (GregTech_API.sUnification.get( + ConfigCategories.specialunificationtargets + "." + tOre.mModID, + tOre.mEvent.Name, + true)), + true); continue; } } case Names.APPLIED_ENERGISTICS2 -> { if (tOre.mPrefix == OrePrefixes.gem && tOre.mMaterial == Materials.CertusQuartz) { - GT_OreDictUnificator.addAssociation( - tOre.mPrefix, - tOre.mMaterial, - tOre.mEvent.Ore, - false); + GT_OreDictUnificator + .addAssociation(tOre.mPrefix, tOre.mMaterial, tOre.mEvent.Ore, false); GT_OreDictUnificator.set( - tOre.mPrefix, - tOre.mMaterial, - tOre.mEvent.Ore, - (GregTech_API.sUnification.get( - ConfigCategories.specialunificationtargets + "." + tOre.mModID, - tOre.mEvent.Name, - true)), - true); + tOre.mPrefix, + tOre.mMaterial, + tOre.mEvent.Ore, + (GregTech_API.sUnification.get( + ConfigCategories.specialunificationtargets + "." + tOre.mModID, + tOre.mEvent.Name, + true)), + true); continue; } else if (tOre.mPrefix == OrePrefixes.dust && tOre.mMaterial == Materials.CertusQuartz) { - GT_OreDictUnificator.addAssociation( - tOre.mPrefix, - tOre.mMaterial, - tOre.mEvent.Ore, - false); + GT_OreDictUnificator + .addAssociation(tOre.mPrefix, tOre.mMaterial, tOre.mEvent.Ore, false); GT_OreDictUnificator.set( - tOre.mPrefix, - tOre.mMaterial, - tOre.mEvent.Ore, - (GregTech_API.sUnification.get( - ConfigCategories.specialunificationtargets + "." + tOre.mModID, - tOre.mEvent.Name, - true)), - true); + tOre.mPrefix, + tOre.mMaterial, + tOre.mEvent.Ore, + (GregTech_API.sUnification.get( + ConfigCategories.specialunificationtargets + "." + tOre.mModID, + tOre.mEvent.Name, + true)), + true); continue; } } @@ -2938,37 +2835,37 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG } else { GT_OreDictUnificator.addAssociation(tOre.mPrefix, tOre.mMaterial, tOre.mEvent.Ore, false); GT_OreDictUnificator.set( - tOre.mPrefix, - tOre.mMaterial, - tOre.mEvent.Ore, - (checkModID) && (GregTech_API.sUnification.get( - ConfigCategories.specialunificationtargets + "." + tOre.mModID, - tOre.mEvent.Name, - false)), - true); + tOre.mPrefix, + tOre.mMaterial, + tOre.mEvent.Ore, + (checkModID) && (GregTech_API.sUnification.get( + ConfigCategories.specialunificationtargets + "." + tOre.mModID, + tOre.mEvent.Name, + false)), + true); } } } for (OreDictEventContainer tOre : this.mEvents) { if (((tOre.mEvent.Ore.getItem() instanceof GT_MetaGenerated_Item)) && (tOre.mPrefix != null) - && (tOre.mPrefix.mIsUnificatable) - && (tOre.mMaterial != null)) { + && (tOre.mPrefix.mIsUnificatable) + && (tOre.mMaterial != null)) { if (GT_OreDictUnificator.isBlacklisted(tOre.mEvent.Ore)) { GT_OreDictUnificator.addAssociation(tOre.mPrefix, tOre.mMaterial, tOre.mEvent.Ore, true); } else { GT_OreDictUnificator.addAssociation(tOre.mPrefix, tOre.mMaterial, tOre.mEvent.Ore, false); GT_OreDictUnificator.set( - tOre.mPrefix, - tOre.mMaterial, - tOre.mEvent.Ore, - (tOre.mModID != null) && (GregTech_API.sUnification.get( - new StringBuilder().append(ConfigCategories.specialunificationtargets) - .append(".") - .append(tOre.mModID), - tOre.mEvent.Name, - false)), - true); + tOre.mPrefix, + tOre.mMaterial, + tOre.mEvent.Ore, + (tOre.mModID != null) && (GregTech_API.sUnification.get( + new StringBuilder().append(ConfigCategories.specialunificationtargets) + .append(".") + .append(tOre.mModID), + tOre.mEvent.Name, + false)), + true); } } } @@ -3029,15 +2926,15 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG ItemStack aStack = aEvent.entityPlayer.getCurrentEquippedItem(); if ((aStack != null) && ((aStack.getItem() instanceof GT_MetaGenerated_Tool))) { aEvent.newSpeed = ((GT_MetaGenerated_Tool) aStack.getItem()).onBlockBreakSpeedEvent( - aEvent.newSpeed, - aStack, - aEvent.entityPlayer, - aEvent.block, - aEvent.x, - aEvent.y, - aEvent.z, - (byte) aEvent.metadata, - aEvent); + aEvent.newSpeed, + aStack, + aEvent.entityPlayer, + aEvent.block, + aEvent.x, + aEvent.y, + aEvent.z, + (byte) aEvent.metadata, + aEvent); } } } @@ -3051,7 +2948,7 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG public final String mModID; public OreDictEventContainer(OreDictionary.OreRegisterEvent aEvent, OrePrefixes aPrefix, Materials aMaterial, - String aModID) { + String aModID) { this.mEvent = aEvent; this.mPrefix = aPrefix; this.mMaterial = aMaterial; @@ -3062,8 +2959,7 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG @SubscribeEvent public void onBlockEvent(BlockEvent event) { if (event.block.getUnlocalizedName() - .equals("blockAlloyGlass")) - GregTech_API.causeMachineUpdate(event.world, event.x, event.y, event.z); + .equals("blockAlloyGlass")) GregTech_API.causeMachineUpdate(event.world, event.x, event.y, event.z); } public static void addFullHazmatToGeneralItem(String aModID, String aItem, long aAmount, int aMeta) { diff --git a/src/main/java/gregtech/common/GT_RecipeAdder.java b/src/main/java/gregtech/common/GT_RecipeAdder.java index 89d56baaef..65ff60e9c3 100644 --- a/src/main/java/gregtech/common/GT_RecipeAdder.java +++ b/src/main/java/gregtech/common/GT_RecipeAdder.java @@ -41,36 +41,36 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { @Override @Deprecated public boolean addFusionReactorRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, int aDuration, - int aEUt, int aStartEU) { + int aEUt, int aStartEU) { return false; } @Override // Really? public boolean addFusionReactorRecipe(FluidStack aInput1, FluidStack aInput2, FluidStack aOutput1, int aDuration, - int aEUt, int aStartEU) { + int aEUt, int aStartEU) { if (aInput1 == null || aInput2 == null || aOutput1 == null || aDuration < 1 || aEUt < 1 || aStartEU < 1) { return false; } if ((aDuration = GregTech_API.sRecipeFile.get( - "fusion", - aOutput1.getFluid() - .getName(), - aDuration)) <= 0) { + "fusion", + aOutput1.getFluid() + .getName(), + aDuration)) <= 0) { return false; } GT_Recipe.GT_Recipe_Map.sFusionRecipes.addRecipe( - null, - new FluidStack[] { aInput1, aInput2 }, - new FluidStack[] { aOutput1 }, - aDuration, - aEUt, - aStartEU); + null, + new FluidStack[] { aInput1, aInput2 }, + new FluidStack[] { aOutput1 }, + aDuration, + aEUt, + aStartEU); return true; } @Override public boolean addFusionReactorRecipe(FluidStack[] FluidInputArray, FluidStack[] FluidOutputArray, - int aFusionDurationInTicks, int aFusionEnergyPerTick, int aEnergyNeededForStartingFusion) { + int aFusionDurationInTicks, int aFusionEnergyPerTick, int aEnergyNeededForStartingFusion) { if (FluidInputArray.length == 0) return false; if (FluidOutputArray.length == 0) return false; @@ -79,88 +79,88 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { // This is so NEI can function properly and understand the recipe. Otherwise, it gets cut off. if ((FluidInputArray.length > 2) || (FluidOutputArray.length > 2)) { GT_Recipe.GT_Recipe_Map.sComplexFusionRecipes.addRecipe( - null, - FluidInputArray, - FluidOutputArray, - aFusionDurationInTicks, - aFusionEnergyPerTick, - aEnergyNeededForStartingFusion); - return true; - } - - GT_Recipe.GT_Recipe_Map.sFusionRecipes.addRecipe( null, FluidInputArray, FluidOutputArray, aFusionDurationInTicks, aFusionEnergyPerTick, aEnergyNeededForStartingFusion); + return true; + } + + GT_Recipe.GT_Recipe_Map.sFusionRecipes.addRecipe( + null, + FluidInputArray, + FluidOutputArray, + aFusionDurationInTicks, + aFusionEnergyPerTick, + aEnergyNeededForStartingFusion); return true; } @Override public boolean addCentrifugeRecipe(ItemStack aInput1, int aInput2, ItemStack aOutput1, ItemStack aOutput2, - ItemStack aOutput3, ItemStack aOutput4, ItemStack aOutput5, ItemStack aOutput6, int aDuration) { + ItemStack aOutput3, ItemStack aOutput4, ItemStack aOutput5, ItemStack aOutput6, int aDuration) { return addCentrifugeRecipe( - aInput1, - aInput2 < 0 ? null : aInput2 > 0 ? ItemList.Cell_Empty.get(aInput2) : null, - null, - null, - aOutput1, - aOutput2, - aOutput3, - aOutput4, - aOutput5, - aOutput6, - null, - aDuration, - 5); + aInput1, + aInput2 < 0 ? null : aInput2 > 0 ? ItemList.Cell_Empty.get(aInput2) : null, + null, + null, + aOutput1, + aOutput2, + aOutput3, + aOutput4, + aOutput5, + aOutput6, + null, + aDuration, + 5); } @Override public boolean addCentrifugeRecipe(ItemStack aInput1, int aInput2, ItemStack aOutput1, ItemStack aOutput2, - ItemStack aOutput3, ItemStack aOutput4, ItemStack aOutput5, ItemStack aOutput6, int aDuration, int aEUt) { + ItemStack aOutput3, ItemStack aOutput4, ItemStack aOutput5, ItemStack aOutput6, int aDuration, int aEUt) { return addCentrifugeRecipe( - aInput1, - aInput2 < 0 ? null : aInput2 > 0 ? ItemList.Cell_Empty.get(aInput2) : null, - null, - null, - aOutput1, - aOutput2, - aOutput3, - aOutput4, - aOutput5, - aOutput6, - null, - aDuration, - aEUt); + aInput1, + aInput2 < 0 ? null : aInput2 > 0 ? ItemList.Cell_Empty.get(aInput2) : null, + null, + null, + aOutput1, + aOutput2, + aOutput3, + aOutput4, + aOutput5, + aOutput6, + null, + aDuration, + aEUt); } @Override public boolean addCentrifugeRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, - FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, ItemStack aOutput4, - ItemStack aOutput5, ItemStack aOutput6, int[] aChances, int aDuration, int aEUt) { + FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, ItemStack aOutput4, + ItemStack aOutput5, ItemStack aOutput6, int[] aChances, int aDuration, int aEUt) { return addCentrifugeRecipe( - aInput1, - aInput2, - aFluidInput, - aFluidOutput, - aOutput1, - aOutput2, - aOutput3, - aOutput4, - aOutput5, - aOutput6, - aChances, - aDuration, - aEUt, - false); + aInput1, + aInput2, + aFluidInput, + aFluidOutput, + aOutput1, + aOutput2, + aOutput3, + aOutput4, + aOutput5, + aOutput6, + aChances, + aDuration, + aEUt, + false); } @Override public boolean addCentrifugeRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, - FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, ItemStack aOutput4, - ItemStack aOutput5, ItemStack aOutput6, int[] aChances, int aDuration, int aEUt, boolean aCleanroom) { + FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, ItemStack aOutput4, + ItemStack aOutput5, ItemStack aOutput6, int[] aChances, int aDuration, int aEUt, boolean aCleanroom) { if (((aInput1 == null) && (aFluidInput == null)) || ((aOutput1 == null) && (aFluidOutput == null))) { return false; } @@ -168,26 +168,26 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { return false; } if ((aFluidInput != null) && ((aDuration = GregTech_API.sRecipeFile.get( - "centrifuge", - aFluidInput.getFluid() - .getName(), - aDuration)) <= 0)) { + "centrifuge", + aFluidInput.getFluid() + .getName(), + aDuration)) <= 0)) { return false; } if (!GT_Mod.gregtechproxy.mEnableCleanroom) { aCleanroom = false; } GT_Recipe.GT_Recipe_Map.sCentrifugeRecipes.addRecipe( - true, - new ItemStack[] { aInput1, aInput2 }, - new ItemStack[] { aOutput1, aOutput2, aOutput3, aOutput4, aOutput5, aOutput6, }, - null, - aChances, - new FluidStack[] { aFluidInput }, - new FluidStack[] { aFluidOutput }, - aDuration, - aEUt, - aCleanroom ? -100 : 0); + true, + new ItemStack[] { aInput1, aInput2 }, + new ItemStack[] { aOutput1, aOutput2, aOutput3, aOutput4, aOutput5, aOutput6, }, + null, + aChances, + new FluidStack[] { aFluidInput }, + new FluidStack[] { aFluidOutput }, + aDuration, + aEUt, + aCleanroom ? -100 : 0); ItemStack[] itemInputs = { aInput1, aInput2 }; ItemStack[] itemOutputs = { aOutput1, aOutput2, aOutput3, aOutput4, aOutput5, aOutput6 }; FluidStack[] fluidInputs = { aFluidInput, null, null }; @@ -217,16 +217,16 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { } GT_Recipe.GT_Recipe_Map.sMultiblockCentrifugeRecipes.addRecipe( - false, - itemInputs, - itemOutputs, - null, - aChances, - fluidInputs, - fluidOutputs, - aDuration, - aEUt, - aCleanroom ? -100 : 0); + false, + itemInputs, + itemOutputs, + null, + aChances, + fluidInputs, + fluidOutputs, + aDuration, + aEUt, + aCleanroom ? -100 : 0); return true; } @@ -239,66 +239,66 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { return false; } GT_Recipe.GT_Recipe_Map.sCompressorRecipes.addRecipe( - true, - new ItemStack[] { aInput1 }, - new ItemStack[] { aOutput1 }, - null, - null, - null, - aDuration, - aEUt, - 0); + true, + new ItemStack[] { aInput1 }, + new ItemStack[] { aOutput1 }, + null, + null, + null, + aDuration, + aEUt, + 0); return true; } @Override public boolean addElectrolyzerRecipe(ItemStack aInput1, int aInput2, ItemStack aOutput1, ItemStack aOutput2, - ItemStack aOutput3, ItemStack aOutput4, ItemStack aOutput5, ItemStack aOutput6, int aDuration, int aEUt) { + ItemStack aOutput3, ItemStack aOutput4, ItemStack aOutput5, ItemStack aOutput6, int aDuration, int aEUt) { return addElectrolyzerRecipe( - aInput1, - aInput2 < 0 ? null : aInput2 > 0 ? ItemList.Cell_Empty.get(aInput2) : null, - null, - null, - aOutput1, - aOutput2, - aOutput3, - aOutput4, - aOutput5, - aOutput6, - null, - aDuration, - aEUt); + aInput1, + aInput2 < 0 ? null : aInput2 > 0 ? ItemList.Cell_Empty.get(aInput2) : null, + null, + null, + aOutput1, + aOutput2, + aOutput3, + aOutput4, + aOutput5, + aOutput6, + null, + aDuration, + aEUt); } @Override public boolean addElectrolyzerRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, - FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, ItemStack aOutput4, - ItemStack aOutput5, ItemStack aOutput6, int[] aChances, int aDuration, int aEUt) { + FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, ItemStack aOutput4, + ItemStack aOutput5, ItemStack aOutput6, int[] aChances, int aDuration, int aEUt) { if (((aInput1 == null) && (aFluidInput == null)) || ((aOutput1 == null) && (aFluidOutput == null))) { return false; } if ((aInput1 != null) - && ((aDuration = GregTech_API.sRecipeFile.get("electrolyzer", aInput1, aDuration)) <= 0)) { + && ((aDuration = GregTech_API.sRecipeFile.get("electrolyzer", aInput1, aDuration)) <= 0)) { return false; } if ((aFluidInput != null) && ((aDuration = GregTech_API.sRecipeFile.get( - "electrolyzer", - aFluidInput.getFluid() - .getName(), - aDuration)) <= 0)) { + "electrolyzer", + aFluidInput.getFluid() + .getName(), + aDuration)) <= 0)) { return false; } GT_Recipe.GT_Recipe_Map.sElectrolyzerRecipes.addRecipe( - true, - new ItemStack[] { aInput1, aInput2 }, - new ItemStack[] { aOutput1, aOutput2, aOutput3, aOutput4, aOutput5, aOutput6 }, - null, - aChances, - new FluidStack[] { aFluidInput }, - new FluidStack[] { aFluidOutput }, - aDuration, - aEUt, - 0); + true, + new ItemStack[] { aInput1, aInput2 }, + new ItemStack[] { aOutput1, aOutput2, aOutput3, aOutput4, aOutput5, aOutput6 }, + null, + aChances, + new FluidStack[] { aFluidInput }, + new FluidStack[] { aFluidOutput }, + aDuration, + aEUt, + 0); ItemStack[] itemInputs = { aInput1, aInput2 }; ItemStack[] itemOutputs = { aOutput1, aOutput2, aOutput3, aOutput4, aOutput5, aOutput6 }; FluidStack[] fluidInputs = { aFluidInput, null, null }; @@ -310,7 +310,7 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { for (ItemStack item : itemInputs) { if (item != null) { if (GT_Utility.getFluidForFilledItem(item, true) != null || GT_Utility.isCellEmpty(item) - || GT_Utility.isAnyIntegratedCircuit(item)) { + || GT_Utility.isAnyIntegratedCircuit(item)) { fluidInputs[iNumber + 1] = GT_Utility.convertCellToFluid(item); itemInputs[iNumber] = null; } @@ -328,17 +328,8 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { oNumber++; } - GT_Recipe.GT_Recipe_Map.sMultiblockElectrolyzerRecipes.addRecipe( - false, - itemInputs, - itemOutputs, - null, - aChances, - fluidInputs, - fluidOutputs, - aDuration, - aEUt, - 0); + GT_Recipe.GT_Recipe_Map.sMultiblockElectrolyzerRecipes + .addRecipe(false, itemInputs, itemOutputs, null, aChances, fluidInputs, fluidOutputs, aDuration, aEUt, 0); return true; } @@ -354,62 +345,62 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { @Override public boolean addChemicalRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, - FluidStack aFluidOutput, ItemStack aOutput, int aDuration) { + FluidStack aFluidOutput, ItemStack aOutput, int aDuration) { return addChemicalRecipe(aInput1, aInput2, aFluidInput, aFluidOutput, aOutput, aDuration, 30); } @Override public boolean addChemicalRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, - FluidStack aFluidOutput, ItemStack aOutput, ItemStack aOutput2, int aDuration) { + FluidStack aFluidOutput, ItemStack aOutput, ItemStack aOutput2, int aDuration) { return addChemicalRecipe(aInput1, aInput2, aFluidInput, aFluidOutput, aOutput, aOutput2, aDuration, 30); } @Override public boolean addChemicalRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, - FluidStack aFluidOutput, ItemStack aOutput, int aDuration, int aEUTick) { + FluidStack aFluidOutput, ItemStack aOutput, int aDuration, int aEUTick) { return addChemicalRecipe( - aInput1, - aInput2, - aFluidInput, - aFluidOutput, - aOutput, - GT_Values.NI, - aDuration, - aEUTick); + aInput1, + aInput2, + aFluidInput, + aFluidOutput, + aOutput, + GT_Values.NI, + aDuration, + aEUTick); } @Override public boolean addChemicalRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, - FluidStack aFluidOutput, ItemStack aOutput, ItemStack aOutput2, int aDuration, int aEUtick) { + FluidStack aFluidOutput, ItemStack aOutput, ItemStack aOutput2, int aDuration, int aEUtick) { return addChemicalRecipe( - aInput1, - aInput2, - aFluidInput, - aFluidOutput, - aOutput, - aOutput2, - aDuration, - aEUtick, - false); + aInput1, + aInput2, + aFluidInput, + aFluidOutput, + aOutput, + aOutput2, + aDuration, + aEUtick, + false); } @Override public boolean addChemicalRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, - FluidStack aFluidOutput, ItemStack aOutput, ItemStack aOutput2, int aDuration, int aEUtick, - boolean aCleanroom) { + FluidStack aFluidOutput, ItemStack aOutput, ItemStack aOutput2, int aDuration, int aEUtick, + boolean aCleanroom) { if (((aInput1 == null) && (aFluidInput == null)) - || ((aOutput == null) && (aOutput2 == null) && (aFluidOutput == null))) { + || ((aOutput == null) && (aOutput2 == null) && (aFluidOutput == null))) { return false; } if ((aOutput != null || aOutput2 != null) - && ((aDuration = GregTech_API.sRecipeFile.get("chemicalreactor", aOutput, aDuration)) <= 0)) { + && ((aDuration = GregTech_API.sRecipeFile.get("chemicalreactor", aOutput, aDuration)) <= 0)) { return false; } if ((aFluidOutput != null) && ((aDuration = GregTech_API.sRecipeFile.get( - "chemicalreactor", - aFluidOutput.getFluid() - .getName(), - aDuration)) <= 0)) { + "chemicalreactor", + aFluidOutput.getFluid() + .getName(), + aDuration)) <= 0)) { return false; } if (aEUtick <= 0) { @@ -419,7 +410,22 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { aCleanroom = false; } GT_Recipe.GT_Recipe_Map.sChemicalRecipes.addRecipe( - true, + true, + new ItemStack[] { aInput1, aInput2 }, + new ItemStack[] { aOutput, aOutput2 }, + null, + null, + new FluidStack[] { aFluidInput }, + new FluidStack[] { aFluidOutput }, + aDuration, + aEUtick, + aCleanroom ? -200 : 0); + if (!(aInput1 != null && aInput1.getItem() instanceof GT_IntegratedCircuit_Item + && aInput1.getItemDamage() >= 10) + && !(aInput2 != null && aInput2.getItem() instanceof GT_IntegratedCircuit_Item + && aInput2.getItemDamage() >= 10)) { + GT_Recipe.GT_Recipe_Map.sMultiblockChemicalRecipes.addRecipe( + false, new ItemStack[] { aInput1, aInput2 }, new ItemStack[] { aOutput, aOutput2 }, null, @@ -428,81 +434,57 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { new FluidStack[] { aFluidOutput }, aDuration, aEUtick, - aCleanroom ? -200 : 0); - if (!(aInput1 != null && aInput1.getItem() instanceof GT_IntegratedCircuit_Item - && aInput1.getItemDamage() >= 10) - && !(aInput2 != null && aInput2.getItem() instanceof GT_IntegratedCircuit_Item - && aInput2.getItemDamage() >= 10)) { - GT_Recipe.GT_Recipe_Map.sMultiblockChemicalRecipes.addRecipe( - false, - new ItemStack[] { aInput1, aInput2 }, - new ItemStack[] { aOutput, aOutput2 }, - null, - null, - new FluidStack[] { aFluidInput }, - new FluidStack[] { aFluidOutput }, - aDuration, - aEUtick, - 0); + 0); } return true; } @Override public boolean addMultiblockChemicalRecipe(ItemStack[] aInputs, FluidStack[] aFluidInputs, - FluidStack[] aFluidOutputs, ItemStack[] aOutputs, int aDuration, int aEUtick) { + FluidStack[] aFluidOutputs, ItemStack[] aOutputs, int aDuration, int aEUtick) { if (areItemsAndFluidsBothNull(aInputs, aFluidInputs) || areItemsAndFluidsBothNull(aOutputs, aFluidOutputs)) { return false; } if (aEUtick <= 0) { return false; } - GT_Recipe.GT_Recipe_Map.sMultiblockChemicalRecipes.addRecipe( - false, - aInputs, - aOutputs, - null, - null, - aFluidInputs, - aFluidOutputs, - aDuration, - aEUtick, - 0); + GT_Recipe.GT_Recipe_Map.sMultiblockChemicalRecipes + .addRecipe(false, aInputs, aOutputs, null, null, aFluidInputs, aFluidOutputs, aDuration, aEUtick, 0); return true; } @Override public boolean addChemicalRecipeForBasicMachineOnly(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, - FluidStack aFluidOutput, ItemStack aOutput, ItemStack aOutput2, int aDuration, int aEUtick) { + FluidStack aFluidOutput, ItemStack aOutput, ItemStack aOutput2, int aDuration, int aEUtick) { if (((aInput1 == null) && (aFluidInput == null)) - || ((aOutput == null) && (aOutput2 == null) && (aFluidOutput == null))) { + || ((aOutput == null) && (aOutput2 == null) && (aFluidOutput == null))) { return false; } if ((aOutput != null || aOutput2 != null) - && ((aDuration = GregTech_API.sRecipeFile.get("chemicalreactor", aOutput, aDuration)) <= 0)) { + && ((aDuration = GregTech_API.sRecipeFile.get("chemicalreactor", aOutput, aDuration)) <= 0)) { return false; } if ((aFluidOutput != null) && ((aDuration = GregTech_API.sRecipeFile.get( - "chemicalreactor", - aFluidOutput.getFluid() - .getName(), - aDuration)) <= 0)) { + "chemicalreactor", + aFluidOutput.getFluid() + .getName(), + aDuration)) <= 0)) { return false; } if (aEUtick <= 0) { return false; } GT_Recipe.GT_Recipe_Map.sChemicalRecipes.addRecipe( - true, - new ItemStack[] { aInput1, aInput2 }, - new ItemStack[] { aOutput, aOutput2 }, - null, - null, - new FluidStack[] { aFluidInput }, - new FluidStack[] { aFluidOutput }, - aDuration, - aEUtick, - 0); + true, + new ItemStack[] { aInput1, aInput2 }, + new ItemStack[] { aOutput, aOutput2 }, + null, + null, + new FluidStack[] { aFluidInput }, + new FluidStack[] { aFluidOutput }, + aDuration, + aEUtick, + 0); return true; } @@ -510,60 +492,60 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { public void addDefaultPolymerizationRecipes(Fluid aBasicMaterial, ItemStack aBasicMaterialCell, Fluid aPolymer) { // Oxygen/Titaniumtetrafluoride -> +50% Output each addChemicalRecipe( - ItemList.Cell_Air.get(1), - GT_Utility.getIntegratedCircuit(1), - new GT_FluidStack(aBasicMaterial, 144), - new GT_FluidStack(aPolymer, 144), - Materials.Empty.getCells(1), - 160); + ItemList.Cell_Air.get(1), + GT_Utility.getIntegratedCircuit(1), + new GT_FluidStack(aBasicMaterial, 144), + new GT_FluidStack(aPolymer, 144), + Materials.Empty.getCells(1), + 160); addChemicalRecipe( - Materials.Oxygen.getCells(1), - GT_Utility.getIntegratedCircuit(1), - new GT_FluidStack(aBasicMaterial, 144), - new GT_FluidStack(aPolymer, 216), - Materials.Empty.getCells(1), - 160); + Materials.Oxygen.getCells(1), + GT_Utility.getIntegratedCircuit(1), + new GT_FluidStack(aBasicMaterial, 144), + new GT_FluidStack(aPolymer, 216), + Materials.Empty.getCells(1), + 160); addChemicalRecipe( - aBasicMaterialCell, - GT_Utility.getIntegratedCircuit(1), - Materials.Air.getGas(14000), - new GT_FluidStack(aPolymer, 1000), - Materials.Empty.getCells(1), - 1120); + aBasicMaterialCell, + GT_Utility.getIntegratedCircuit(1), + Materials.Air.getGas(14000), + new GT_FluidStack(aPolymer, 1000), + Materials.Empty.getCells(1), + 1120); addChemicalRecipe( - aBasicMaterialCell, - GT_Utility.getIntegratedCircuit(1), - Materials.Oxygen.getGas(7000), - new GT_FluidStack(aPolymer, 1500), - Materials.Empty.getCells(1), - 1120); + aBasicMaterialCell, + GT_Utility.getIntegratedCircuit(1), + Materials.Oxygen.getGas(7000), + new GT_FluidStack(aPolymer, 1500), + Materials.Empty.getCells(1), + 1120); addMultiblockChemicalRecipe( - new ItemStack[] { GT_Utility.getIntegratedCircuit(2) }, - new FluidStack[] { new GT_FluidStack(aBasicMaterial, 2160), Materials.Air.getGas(7500), - Materials.Titaniumtetrachloride.getFluid(100) }, - new FluidStack[] { new GT_FluidStack(aPolymer, 3240) }, - null, - 800, - 30); + new ItemStack[] { GT_Utility.getIntegratedCircuit(2) }, + new FluidStack[] { new GT_FluidStack(aBasicMaterial, 2160), Materials.Air.getGas(7500), + Materials.Titaniumtetrachloride.getFluid(100) }, + new FluidStack[] { new GT_FluidStack(aPolymer, 3240) }, + null, + 800, + 30); addMultiblockChemicalRecipe( - new ItemStack[] { GT_Utility.getIntegratedCircuit(2) }, - new FluidStack[] { new GT_FluidStack(aBasicMaterial, 2160), Materials.Oxygen.getGas(7500), - Materials.Titaniumtetrachloride.getFluid(100) }, - new FluidStack[] { new GT_FluidStack(aPolymer, 4320) }, - null, - 800, - 30); + new ItemStack[] { GT_Utility.getIntegratedCircuit(2) }, + new FluidStack[] { new GT_FluidStack(aBasicMaterial, 2160), Materials.Oxygen.getGas(7500), + Materials.Titaniumtetrachloride.getFluid(100) }, + new FluidStack[] { new GT_FluidStack(aPolymer, 4320) }, + null, + 800, + 30); } @Override public boolean addBlastRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, ItemStack aOutput2, - int aDuration, int aEUt, int aLevel) { + int aDuration, int aEUt, int aLevel) { return addBlastRecipe(aInput1, aInput2, null, null, aOutput1, aOutput2, aDuration, aEUt, aLevel); } @Override public boolean addBlastRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, FluidStack aFluidOutput, - ItemStack aOutput1, ItemStack aOutput2, int aDuration, int aEUt, int aLevel) { + ItemStack aOutput1, ItemStack aOutput2, int aDuration, int aEUt, int aLevel) { if ((aInput1 == null) || (aOutput1 == null)) { return false; } @@ -571,22 +553,22 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { return false; } GT_Recipe.GT_Recipe_Map.sBlastRecipes.addRecipe( - true, - new ItemStack[] { aInput1, aInput2 }, - new ItemStack[] { aOutput1, aOutput2 }, - null, - null, - new FluidStack[] { aFluidInput }, - new FluidStack[] { aFluidOutput }, - aDuration, - aEUt, - aLevel); + true, + new ItemStack[] { aInput1, aInput2 }, + new ItemStack[] { aOutput1, aOutput2 }, + null, + null, + new FluidStack[] { aFluidInput }, + new FluidStack[] { aFluidOutput }, + aDuration, + aEUt, + aLevel); return true; } public boolean addBlastRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aInput3, ItemStack aInput4, - FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, - ItemStack aOutput4, int aDuration, int aEUt, int aLevel) { + FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, + ItemStack aOutput4, int aDuration, int aEUt, int aLevel) { if ((aInput1 == null) || (aOutput1 == null)) { return false; } @@ -594,39 +576,39 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { return false; } GT_Recipe.GT_Recipe_Map.sBlastRecipes.addRecipe( - true, - new ItemStack[] { aInput1, aInput2, aInput3, aInput4 }, - new ItemStack[] { aOutput1, aOutput2, aOutput3, aOutput4 }, - null, - null, - new FluidStack[] { aFluidInput }, - new FluidStack[] { aFluidOutput }, - aDuration, - aEUt, - aLevel); + true, + new ItemStack[] { aInput1, aInput2, aInput3, aInput4 }, + new ItemStack[] { aOutput1, aOutput2, aOutput3, aOutput4 }, + null, + null, + new FluidStack[] { aFluidInput }, + new FluidStack[] { aFluidOutput }, + aDuration, + aEUt, + aLevel); return true; } @Override public boolean addPlasmaForgeRecipe(ItemStack[] ItemInputArray, FluidStack[] FluidInputArray, - ItemStack[] OutputItemArray, FluidStack[] FluidOutputArray, int aDuration, int aEUt, int coil_heat_level) { + ItemStack[] OutputItemArray, FluidStack[] FluidOutputArray, int aDuration, int aEUt, int coil_heat_level) { GT_Recipe.GT_Recipe_Map.sPlasmaForgeRecipes.addRecipe( - false, - ItemInputArray, - OutputItemArray, - null, - null, - FluidInputArray, - FluidOutputArray, - aDuration, - aEUt, - coil_heat_level); + false, + ItemInputArray, + OutputItemArray, + null, + null, + FluidInputArray, + FluidOutputArray, + aDuration, + aEUt, + coil_heat_level); return true; } @Override public boolean addPrimitiveBlastRecipe(ItemStack aInput1, ItemStack aInput2, int aCoalAmount, ItemStack aOutput1, - ItemStack aOutput2, int aDuration) { + ItemStack aOutput2, int aDuration) { if ((aInput1 == null && aInput2 == null) || (aOutput1 == null && aOutput2 == null)) { return false; } @@ -639,110 +621,110 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { Materials[] coals = new Materials[] { Materials.Coal, Materials.Charcoal }; for (Materials coal : coals) { GT_Recipe.GT_Recipe_Map.sPrimitiveBlastRecipes.addRecipe( - true, - new ItemStack[] { aInput1, aInput2, coal.getGems(aCoalAmount) }, - new ItemStack[] { aOutput1, aOutput2, Materials.DarkAsh.getDustTiny(aCoalAmount) }, - null, - null, - null, - null, - aDuration, - 0, - 0); + true, + new ItemStack[] { aInput1, aInput2, coal.getGems(aCoalAmount) }, + new ItemStack[] { aOutput1, aOutput2, Materials.DarkAsh.getDustTiny(aCoalAmount) }, + null, + null, + null, + null, + aDuration, + 0, + 0); GT_Recipe.GT_Recipe_Map.sPrimitiveBlastRecipes.addRecipe( - true, - new ItemStack[] { aInput1, aInput2, coal.getDust(aCoalAmount) }, - new ItemStack[] { aOutput1, aOutput2, Materials.DarkAsh.getDustTiny(aCoalAmount) }, - null, - null, - null, - null, - aDuration, - 0, - 0); + true, + new ItemStack[] { aInput1, aInput2, coal.getDust(aCoalAmount) }, + new ItemStack[] { aOutput1, aOutput2, Materials.DarkAsh.getDustTiny(aCoalAmount) }, + null, + null, + null, + null, + aDuration, + 0, + 0); } if (Railcraft.isModLoaded()) { GT_Recipe.GT_Recipe_Map.sPrimitiveBlastRecipes.addRecipe( + true, + new ItemStack[] { aInput1, aInput2, RailcraftToolItems.getCoalCoke(aCoalAmount / 2) }, + new ItemStack[] { aOutput1, aOutput2, Materials.Ash.getDustTiny(aCoalAmount / 2) }, + null, + null, + null, + null, + aDuration * 2 / 3, + 0, + 0); + } + if (GTPlusPlus.isModLoaded()) { + GT_Recipe.GT_Recipe_Map.sPrimitiveBlastRecipes.addRecipe( + true, + new ItemStack[] { aInput1, aInput2, + GT_ModHandler.getModItem(GTPlusPlus.ID, "itemCactusCoke", (aCoalAmount * 2L)) }, + new ItemStack[] { aOutput1, aOutput2, Materials.Ash.getDustTiny(aCoalAmount * 2) }, + null, + null, + null, + null, + aDuration * 2 / 3, + 0, + 0); + GT_Recipe.GT_Recipe_Map.sPrimitiveBlastRecipes.addRecipe( + true, + new ItemStack[] { aInput1, aInput2, + GT_ModHandler.getModItem(GTPlusPlus.ID, "itemSugarCoke", (aCoalAmount * 2L)) }, + new ItemStack[] { aOutput1, aOutput2, Materials.Ash.getDustTiny(aCoalAmount * 2) }, + null, + null, + null, + null, + aDuration * 2 / 3, + 0, + 0); + } + if ((aInput1 == null || aInput1.stackSize <= 6) && (aInput2 == null || aInput2.stackSize <= 6) + && (aOutput1 == null || aOutput1.stackSize <= 6) + && (aOutput2 == null || aOutput2.stackSize <= 6)) { + aInput1 = aInput1 == null ? null : GT_Utility.copyAmount(aInput1.stackSize * 10L, aInput1); + aInput2 = aInput2 == null ? null : GT_Utility.copyAmount(aInput2.stackSize * 10L, aInput2); + aOutput1 = aOutput1 == null ? null : GT_Utility.copyAmount(aOutput1.stackSize * 10L, aOutput1); + aOutput2 = aOutput2 == null ? null : GT_Utility.copyAmount(aOutput2.stackSize * 10L, aOutput2); + for (Materials coal : coals) { + GT_Recipe.GT_Recipe_Map.sPrimitiveBlastRecipes.addRecipe( true, - new ItemStack[] { aInput1, aInput2, RailcraftToolItems.getCoalCoke(aCoalAmount / 2) }, - new ItemStack[] { aOutput1, aOutput2, Materials.Ash.getDustTiny(aCoalAmount / 2) }, + new ItemStack[] { aInput1, aInput2, coal.getBlocks(aCoalAmount) }, + new ItemStack[] { aOutput1, aOutput2, Materials.DarkAsh.getDust(aCoalAmount) }, null, null, null, null, - aDuration * 2 / 3, + aDuration * 10, 0, 0); - } - if (GTPlusPlus.isModLoaded()) { - GT_Recipe.GT_Recipe_Map.sPrimitiveBlastRecipes.addRecipe( + GT_Recipe.GT_Recipe_Map.sPrimitiveBlastRecipes.addRecipe( true, - new ItemStack[] { aInput1, aInput2, - GT_ModHandler.getModItem(GTPlusPlus.ID, "itemCactusCoke", (aCoalAmount * 2L)) }, - new ItemStack[] { aOutput1, aOutput2, Materials.Ash.getDustTiny(aCoalAmount * 2) }, + new ItemStack[] { aInput1, aInput2, coal.getBlocks(aCoalAmount) }, + new ItemStack[] { aOutput1, aOutput2, Materials.DarkAsh.getDust(aCoalAmount) }, null, null, null, null, - aDuration * 2 / 3, + aDuration * 10, 0, 0); - GT_Recipe.GT_Recipe_Map.sPrimitiveBlastRecipes.addRecipe( + } + if (Railcraft.isModLoaded()) { + GT_Recipe.GT_Recipe_Map.sPrimitiveBlastRecipes.addRecipe( true, - new ItemStack[] { aInput1, aInput2, - GT_ModHandler.getModItem(GTPlusPlus.ID, "itemSugarCoke", (aCoalAmount * 2L)) }, - new ItemStack[] { aOutput1, aOutput2, Materials.Ash.getDustTiny(aCoalAmount * 2) }, + new ItemStack[] { aInput1, aInput2, EnumCube.COKE_BLOCK.getItem(aCoalAmount / 2) }, + new ItemStack[] { aOutput1, aOutput2, Materials.Ash.getDust(aCoalAmount / 2) }, null, null, null, null, - aDuration * 2 / 3, + aDuration * 20 / 3, 0, 0); - } - if ((aInput1 == null || aInput1.stackSize <= 6) && (aInput2 == null || aInput2.stackSize <= 6) - && (aOutput1 == null || aOutput1.stackSize <= 6) - && (aOutput2 == null || aOutput2.stackSize <= 6)) { - aInput1 = aInput1 == null ? null : GT_Utility.copyAmount(aInput1.stackSize * 10L, aInput1); - aInput2 = aInput2 == null ? null : GT_Utility.copyAmount(aInput2.stackSize * 10L, aInput2); - aOutput1 = aOutput1 == null ? null : GT_Utility.copyAmount(aOutput1.stackSize * 10L, aOutput1); - aOutput2 = aOutput2 == null ? null : GT_Utility.copyAmount(aOutput2.stackSize * 10L, aOutput2); - for (Materials coal : coals) { - GT_Recipe.GT_Recipe_Map.sPrimitiveBlastRecipes.addRecipe( - true, - new ItemStack[] { aInput1, aInput2, coal.getBlocks(aCoalAmount) }, - new ItemStack[] { aOutput1, aOutput2, Materials.DarkAsh.getDust(aCoalAmount) }, - null, - null, - null, - null, - aDuration * 10, - 0, - 0); - GT_Recipe.GT_Recipe_Map.sPrimitiveBlastRecipes.addRecipe( - true, - new ItemStack[] { aInput1, aInput2, coal.getBlocks(aCoalAmount) }, - new ItemStack[] { aOutput1, aOutput2, Materials.DarkAsh.getDust(aCoalAmount) }, - null, - null, - null, - null, - aDuration * 10, - 0, - 0); - } - if (Railcraft.isModLoaded()) { - GT_Recipe.GT_Recipe_Map.sPrimitiveBlastRecipes.addRecipe( - true, - new ItemStack[] { aInput1, aInput2, EnumCube.COKE_BLOCK.getItem(aCoalAmount / 2) }, - new ItemStack[] { aOutput1, aOutput2, Materials.Ash.getDust(aCoalAmount / 2) }, - null, - null, - null, - null, - aDuration * 20 / 3, - 0, - 0); } } return true; @@ -750,7 +732,7 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { @Override public boolean addCannerRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, ItemStack aOutput2, - int aDuration, int aEUt) { + int aDuration, int aEUt) { if ((aInput1 == null) || (aOutput1 == null)) { return false; } @@ -763,22 +745,22 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { @Override public boolean addAlloySmelterRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, int aDuration, - int aEUt) { + int aEUt) { return addAlloySmelterRecipe(aInput1, aInput2, aOutput1, aDuration, aEUt, false); } @Override public boolean addAlloySmelterRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, int aDuration, - int aEUt, boolean hidden) { + int aEUt, boolean hidden) { if ((aInput1 == null) || (aOutput1 == null || Materials.Graphite.contains(aInput1))) { return false; } if ((aInput2 == null) && ((OrePrefixes.ingot.contains(aInput1)) || (OrePrefixes.dust.contains(aInput1)) - || (OrePrefixes.gem.contains(aInput1)))) { + || (OrePrefixes.gem.contains(aInput1)))) { return false; } if ((aDuration = GregTech_API.sRecipeFile.get("alloysmelting", aInput2 == null ? aInput1 : aOutput1, aDuration)) - <= 0) { + <= 0) { return false; } GT_Recipe tRecipe = new GT_Recipe(aInput1, aInput2, aEUt, aDuration, aOutput1); @@ -811,7 +793,7 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { @Override public boolean addCutterRecipe(ItemStack aInput, FluidStack aLubricant, ItemStack aOutput1, ItemStack aOutput2, - int aDuration, int aEUt) { + int aDuration, int aEUt) { if ((aInput == null) || (aLubricant == null) || (aOutput1 == null)) { return false; } @@ -819,39 +801,39 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { return false; } GT_Recipe.GT_Recipe_Map.sCutterRecipes.addRecipe( - true, - new ItemStack[] { aInput }, - new ItemStack[] { aOutput1, aOutput2 }, - null, - new FluidStack[] { aLubricant }, - null, - aDuration, - aEUt, - 0); + true, + new ItemStack[] { aInput }, + new ItemStack[] { aOutput1, aOutput2 }, + null, + new FluidStack[] { aLubricant }, + null, + aDuration, + aEUt, + 0); return true; } @Override public boolean addCutterRecipe(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2, int aDuration, int aEUt, - boolean aCleanroom) { + boolean aCleanroom) { return addCutterRecipe(aInput, null, aOutput1, aOutput2, aDuration, aEUt, aCleanroom); } public boolean addCutterRecipe(ItemStack aInput, int aCircuit, ItemStack aOutput1, ItemStack aOutput2, - int aDuration, int aEUt) { + int aDuration, int aEUt) { return addCutterRecipe(aInput, aCircuit, aOutput1, aOutput2, aDuration, aEUt, false); } public boolean addCutterRecipe(ItemStack aInput, int aCircuit, ItemStack aOutput1, ItemStack aOutput2, - int aDuration, int aEUt, boolean aCleanroom) { + int aDuration, int aEUt, boolean aCleanroom) { return addCutterRecipe( - aInput, - GT_Utility.getIntegratedCircuit(aCircuit), - aOutput1, - aOutput2, - aDuration, - aEUt, - aCleanroom); + aInput, + GT_Utility.getIntegratedCircuit(aCircuit), + aOutput1, + aOutput2, + aDuration, + aEUt, + aCleanroom); } @Override @@ -861,23 +843,23 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { @Override public boolean addCutterRecipe(ItemStack aInput, ItemStack aCircuit, ItemStack aOutput1, ItemStack aOutput2, - int aDuration, int aEUt) { + int aDuration, int aEUt) { return addCutterRecipe(aInput, aCircuit, aOutput1, aOutput2, aDuration, aEUt, false); } @Override public boolean addCutterRecipe(ItemStack aInput, ItemStack aCircuit, ItemStack aOutput1, ItemStack aOutput2, - int aDuration, int aEUt, boolean aCleanroom) { + int aDuration, int aEUt, boolean aCleanroom) { return addCutterRecipe( - new ItemStack[] { aInput, aCircuit }, - new ItemStack[] { aOutput1, aOutput2 }, - aDuration, - aEUt, - aCleanroom ? -200 : 0); + new ItemStack[] { aInput, aCircuit }, + new ItemStack[] { aOutput1, aOutput2 }, + aDuration, + aEUt, + aCleanroom ? -200 : 0); } public boolean addCutterRecipe(ItemStack[] aInputs, ItemStack[] aOutputs, int aDuration, int aEUt, - boolean aCleanroom) { + boolean aCleanroom) { return addCutterRecipe(aInputs, aOutputs, aDuration, aEUt, aCleanroom ? -200 : 0); } @@ -887,7 +869,7 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { return false; } if (Arrays.stream(aOutputs) - .noneMatch(Objects::nonNull)) { + .noneMatch(Objects::nonNull)) { return false; } if ((aDuration = GregTech_API.sRecipeFile.get("cutting", aInputs[0], aDuration)) <= 0) { @@ -897,57 +879,56 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { aSpecial = 0; } GT_Recipe.GT_Recipe_Map.sCutterRecipes.addRecipe( - true, - aInputs, - aOutputs, - null, - new FluidStack[] { Materials.Water.getFluid(Math.max(4, Math.min(1000, aDuration * aEUt / 320))) }, - null, - aDuration * 2, - aEUt, - aSpecial); + true, + aInputs, + aOutputs, + null, + new FluidStack[] { Materials.Water.getFluid(Math.max(4, Math.min(1000, aDuration * aEUt / 320))) }, + null, + aDuration * 2, + aEUt, + aSpecial); GT_Recipe.GT_Recipe_Map.sCutterRecipes.addRecipe( - true, - aInputs, - aOutputs, - null, - new FluidStack[] { - GT_ModHandler.getDistilledWater(Math.max(3, Math.min(750, aDuration * aEUt / 426))) }, - null, - aDuration * 2, - aEUt, - aSpecial); + true, + aInputs, + aOutputs, + null, + new FluidStack[] { GT_ModHandler.getDistilledWater(Math.max(3, Math.min(750, aDuration * aEUt / 426))) }, + null, + aDuration * 2, + aEUt, + aSpecial); GT_Recipe.GT_Recipe_Map.sCutterRecipes.addRecipe( - true, - aInputs, - aOutputs, - null, - new FluidStack[] { Materials.Lubricant.getFluid(Math.max(1, Math.min(250, aDuration * aEUt / 1280))) }, - null, - aDuration, - aEUt, - aSpecial); + true, + aInputs, + aOutputs, + null, + new FluidStack[] { Materials.Lubricant.getFluid(Math.max(1, Math.min(250, aDuration * aEUt / 1280))) }, + null, + aDuration, + aEUt, + aSpecial); return true; } @Override public boolean addAssemblerRecipe(ItemStack aInput1, Object aOreDict, int aAmount, FluidStack aFluidInput, - ItemStack aOutput1, int aDuration, int aEUt) { + ItemStack aOutput1, int aDuration, int aEUt) { for (ItemStack tStack : GT_OreDictUnificator.getOresImmutable(aOreDict)) { if (GT_Utility.isStackValid(tStack)) addAssemblerRecipe( - aInput1, - GT_Utility.copyAmount(aAmount, tStack), - aFluidInput, - aOutput1, - aDuration, - aEUt); + aInput1, + GT_Utility.copyAmount(aAmount, tStack), + aFluidInput, + aOutput1, + aDuration, + aEUt); } return true; } @Override public boolean addAssemblerRecipe(ItemStack[] aInputs, Object aOreDict, int aAmount, FluidStack aFluidInput, - ItemStack aOutput1, int aDuration, int aEUt) { + ItemStack aOutput1, int aDuration, int aEUt) { for (ItemStack tStack : GT_OreDictUnificator.getOresImmutable(aOreDict)) { if (GT_Utility.isStackValid(tStack)) { ItemStack[] extendedInputs = new ItemStack[aInputs.length + 1]; @@ -961,45 +942,45 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { @Override public boolean addAssemblerRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, int aDuration, - int aEUt) { + int aEUt) { return addAssemblerRecipe( - new ItemStack[] { aInput1, aInput2 == null ? aInput1 : aInput2 }, - null, - aOutput1, - aDuration, - aEUt, - false); + new ItemStack[] { aInput1, aInput2 == null ? aInput1 : aInput2 }, + null, + aOutput1, + aDuration, + aEUt, + false); } @Override public boolean addAssemblerRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, ItemStack aOutput1, - int aDuration, int aEUt) { + int aDuration, int aEUt) { return addAssemblerRecipe(new ItemStack[] { aInput1, aInput2 }, aFluidInput, aOutput1, aDuration, aEUt); } @Override public boolean addAssemblerRecipe(ItemStack[] aInputs, FluidStack aFluidInput, ItemStack aOutput1, int aDuration, - int aEUt) { + int aEUt) { return addAssemblerRecipe(aInputs, aFluidInput, aOutput1, aDuration, aEUt, false); } @Override public boolean addAssemblerRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, ItemStack aOutput1, - int aDuration, int aEUt, boolean aCleanroom) { + int aDuration, int aEUt, boolean aCleanroom) { if (aInput2 == null) return addAssemblerRecipe(new ItemStack[] { aInput1 }, aFluidInput, aOutput1, aDuration, aEUt, aCleanroom); return addAssemblerRecipe( - new ItemStack[] { aInput1, aInput2 }, - aFluidInput, - aOutput1, - aDuration, - aEUt, - aCleanroom); + new ItemStack[] { aInput1, aInput2 }, + aFluidInput, + aOutput1, + aDuration, + aEUt, + aCleanroom); } @Override public boolean addAssemblerRecipe(ItemStack[] aInputs, FluidStack aFluidInput, ItemStack aOutput1, int aDuration, - int aEUt, boolean aCleanroom) { + int aEUt, boolean aCleanroom) { if (areItemsAndFluidsBothNull(aInputs, new FluidStack[] { aFluidInput })) { return false; @@ -1019,7 +1000,7 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { for (int oreID : OreDictionary.getOreIDs(aOutput1)) { if (OreDictionary.getOreName(oreID) - .startsWith("circuit")) { + .startsWith("circuit")) { return this.addAssemblerRecipeNonOD(aInputs, aFluidInput, aOutput1, aDuration, aEUt, aCleanroom); } } @@ -1031,21 +1012,21 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { } GT_Recipe.GT_Recipe_Map.sAssemblerRecipes.addRecipe( - true, - aInputs, - new ItemStack[] { aOutput1 }, - null, - new FluidStack[] { aFluidInput }, - null, - aDuration, - aEUt, - aCleanroom ? -200 : 0); + true, + aInputs, + new ItemStack[] { aOutput1 }, + null, + new FluidStack[] { aFluidInput }, + null, + aDuration, + aEUt, + aCleanroom ? -200 : 0); return true; } public boolean addAssemblerRecipeNonOD(ItemStack[] aInputs, FluidStack aFluidInput, ItemStack aOutput1, - int aDuration, int aEUt, boolean aCleanroom) { + int aDuration, int aEUt, boolean aCleanroom) { if (areItemsAndFluidsBothNull(aInputs, new FluidStack[] { aFluidInput })) { return false; } @@ -1063,15 +1044,15 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { } GT_Recipe.GT_Recipe_Map.sAssemblerRecipes.addRecipe( - true, - aInputs, - new ItemStack[] { aOutput1 }, - null, - new FluidStack[] { aFluidInput }, - null, - aDuration, - aEUt, - aCleanroom ? -200 : 0); + true, + aInputs, + new ItemStack[] { aOutput1 }, + null, + new FluidStack[] { aFluidInput }, + null, + aDuration, + aEUt, + aCleanroom ? -200 : 0); return true; } @@ -1084,15 +1065,15 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { return false; } GT_Recipe.GT_Recipe_Map.sWiremillRecipes.addRecipe( - true, - new ItemStack[] { aInput }, - new ItemStack[] { aOutput }, - null, - null, - null, - aDuration, - aEUt, - 0); + true, + new ItemStack[] { aInput }, + new ItemStack[] { aOutput }, + null, + null, + null, + aDuration, + aEUt, + 0); return true; } @@ -1105,15 +1086,15 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { return false; } GT_Recipe.GT_Recipe_Map.sWiremillRecipes.addRecipe( - true, - new ItemStack[] { aInput, aCircuit }, - new ItemStack[] { aOutput }, - null, - null, - null, - aDuration, - aEUt, - 0); + true, + new ItemStack[] { aInput, aCircuit }, + new ItemStack[] { aOutput }, + null, + null, + null, + aDuration, + aEUt, + 0); return true; } @@ -1126,15 +1107,15 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { return false; } GT_Recipe.GT_Recipe_Map.sPolarizerRecipes.addRecipe( - true, - new ItemStack[] { aInput }, - new ItemStack[] { aOutput }, - null, - null, - null, - aDuration, - aEUt, - 0); + true, + new ItemStack[] { aInput }, + new ItemStack[] { aOutput }, + null, + null, + null, + aDuration, + aEUt, + 0); return true; } @@ -1159,15 +1140,15 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { return false; } GT_Recipe tRecipe = new GT_Recipe( - new ItemStack[] { aInput1, aCircuit }, - new ItemStack[] { aOutput1 }, - null, - null, - null, - null, - aDuration, - Math.max(aEUt, 1), - 0); + new ItemStack[] { aInput1, aCircuit }, + new ItemStack[] { aOutput1 }, + null, + null, + null, + null, + aDuration, + Math.max(aEUt, 1), + 0); GT_Recipe.GT_Recipe_Map.sBenderRecipes.addRecipe(tRecipe); return true; } @@ -1181,15 +1162,15 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { return false; } GT_Recipe.GT_Recipe_Map.sExtruderRecipes.addRecipe( - true, - new ItemStack[] { aInput, aShape }, - new ItemStack[] { aOutput }, - null, - null, - null, - aDuration, - aEUt, - 0); + true, + new ItemStack[] { aInput, aShape }, + new ItemStack[] { aOutput }, + null, + null, + null, + aDuration, + aEUt, + 0); return true; } @@ -1202,62 +1183,62 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { return false; } GT_Recipe.GT_Recipe_Map.sSlicerRecipes.addRecipe( - true, - new ItemStack[] { aInput, aShape }, - new ItemStack[] { aOutput }, - null, - null, - null, - aDuration, - aEUt, - 0); + true, + new ItemStack[] { aInput, aShape }, + new ItemStack[] { aOutput }, + null, + null, + null, + aDuration, + aEUt, + 0); return true; } @Override public boolean addOreWasherRecipe(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, - FluidStack aFluidInput, int aDuration, int aEUt) { + FluidStack aFluidInput, int aDuration, int aEUt) { if ((aInput == null) || (aFluidInput == null) - || ((aOutput1 == null) || (aOutput2 == null) || (aOutput3 == null))) { + || ((aOutput1 == null) || (aOutput2 == null) || (aOutput3 == null))) { return false; } if ((aDuration = GregTech_API.sRecipeFile.get("orewasher", aInput, aDuration)) <= 0) { return false; } GT_Recipe.GT_Recipe_Map.sOreWasherRecipes.addRecipe( - true, - new ItemStack[] { aInput }, - new ItemStack[] { aOutput1, aOutput2, aOutput3 }, - null, - new FluidStack[] { aFluidInput }, - null, - aDuration, - aEUt, - 0); + true, + new ItemStack[] { aInput }, + new ItemStack[] { aOutput1, aOutput2, aOutput3 }, + null, + new FluidStack[] { aFluidInput }, + null, + aDuration, + aEUt, + 0); return true; } @Override public boolean addOreWasherRecipe(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, - FluidStack aFluidInput, int[] aChances, int aDuration, int aEUt) { + FluidStack aFluidInput, int[] aChances, int aDuration, int aEUt) { if ((aInput == null) || (aFluidInput == null) - || ((aOutput1 == null) || (aOutput2 == null) || (aOutput3 == null))) { + || ((aOutput1 == null) || (aOutput2 == null) || (aOutput3 == null))) { return false; } if ((aDuration = GregTech_API.sRecipeFile.get("orewasher", aInput, aDuration)) <= 0) { return false; } GT_Recipe.GT_Recipe_Map.sOreWasherRecipes.addRecipe( - true, - new ItemStack[] { aInput }, - new ItemStack[] { aOutput1, aOutput2, aOutput3 }, - null, - aChances, - new FluidStack[] { aFluidInput }, - null, - aDuration, - aEUt, - 0); + true, + new ItemStack[] { aInput }, + new ItemStack[] { aOutput1, aOutput2, aOutput3 }, + null, + aChances, + new FluidStack[] { aFluidInput }, + null, + aDuration, + aEUt, + 0); return true; } @@ -1277,33 +1258,8 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { // new GT_Recipe(aInput1, aInput2, aOutput1, aOutput2); if (tGunpowder < 65) { GT_Recipe.GT_Recipe_Map.sImplosionRecipes.addRecipe( - true, - new ItemStack[] { aInput1, ItemList.Block_Powderbarrel.get(tGunpowder) }, - new ItemStack[] { aOutput1, aOutput2 }, - null, - null, - null, - null, - 20, - 30, - 0); - } - if (tDynamite < 17) { - GT_Recipe.GT_Recipe_Map.sImplosionRecipes.addRecipe( - true, - new ItemStack[] { aInput1, GT_ModHandler.getIC2Item("dynamite", tDynamite, null) }, - new ItemStack[] { aOutput1, aOutput2 }, - null, - null, - null, - null, - 20, - 30, - 0); - } - GT_Recipe.GT_Recipe_Map.sImplosionRecipes.addRecipe( true, - new ItemStack[] { aInput1, new ItemStack(Blocks.tnt, tTNT) }, + new ItemStack[] { aInput1, ItemList.Block_Powderbarrel.get(tGunpowder) }, new ItemStack[] { aOutput1, aOutput2 }, null, null, @@ -1312,9 +1268,11 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { 20, 30, 0); - GT_Recipe.GT_Recipe_Map.sImplosionRecipes.addRecipe( + } + if (tDynamite < 17) { + GT_Recipe.GT_Recipe_Map.sImplosionRecipes.addRecipe( true, - new ItemStack[] { aInput1, GT_ModHandler.getIC2Item("industrialTnt", tITNT, null) }, + new ItemStack[] { aInput1, GT_ModHandler.getIC2Item("dynamite", tDynamite, null) }, new ItemStack[] { aOutput1, aOutput2 }, null, null, @@ -1323,6 +1281,29 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { 20, 30, 0); + } + GT_Recipe.GT_Recipe_Map.sImplosionRecipes.addRecipe( + true, + new ItemStack[] { aInput1, new ItemStack(Blocks.tnt, tTNT) }, + new ItemStack[] { aOutput1, aOutput2 }, + null, + null, + null, + null, + 20, + 30, + 0); + GT_Recipe.GT_Recipe_Map.sImplosionRecipes.addRecipe( + true, + new ItemStack[] { aInput1, GT_ModHandler.getIC2Item("industrialTnt", tITNT, null) }, + new ItemStack[] { aOutput1, aOutput2 }, + null, + null, + null, + null, + 20, + 30, + 0); return true; } @@ -1330,13 +1311,13 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { @Override @Deprecated public boolean addDistillationRecipe(ItemStack aInput1, int aInput2, ItemStack aOutput1, ItemStack aOutput2, - ItemStack aOutput3, ItemStack aOutput4, int aDuration, int aEUt) { + ItemStack aOutput3, ItemStack aOutput4, int aDuration, int aEUt) { return false; } @Override public boolean addUniversalDistillationRecipe(FluidStack aInput, FluidStack[] aOutputs, ItemStack aOutput2, - int aDuration, int aEUt) { + int aDuration, int aEUt) { for (int i = 0; i < Math.min(aOutputs.length, 11); i++) { addDistilleryRecipe(i + 1, aInput, aOutputs[i], aOutput2, aDuration * 2, aEUt / 4, false); } @@ -1346,7 +1327,7 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { @Override public boolean addDistillationTowerRecipe(FluidStack aInput, FluidStack[] aOutputs, ItemStack aOutput2, - int aDuration, int aEUt) { + int aDuration, int aEUt) { if (aInput == null || aOutputs == null || aOutputs.length < 1 || aOutputs.length > 11) { return false; } @@ -1354,21 +1335,21 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { return false; } GT_Recipe.GT_Recipe_Map.sDistillationRecipes.addRecipe( - false, - null, - new ItemStack[] { aOutput2 }, - null, - new FluidStack[] { aInput }, - aOutputs, - aDuration, - Math.max(1, aEUt), - 0); + false, + null, + new ItemStack[] { aOutput2 }, + null, + new FluidStack[] { aInput }, + aOutputs, + aDuration, + Math.max(1, aEUt), + 0); return false; } @Override public boolean addDistillationTowerRecipe(FluidStack aInput, ItemStack[] aCircuit, FluidStack[] aOutputs, - ItemStack aOutput2, int aDuration, int aEUt) { + ItemStack aOutput2, int aDuration, int aEUt) { if (aInput == null || aOutputs == null || aOutputs.length < 1 || aOutputs.length > 11) { return false; } @@ -1376,21 +1357,21 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { return false; } GT_Recipe.GT_Recipe_Map.sDistillationRecipes.addRecipe( - false, - aCircuit, - new ItemStack[] { aOutput2 }, - null, - new FluidStack[] { aInput }, - aOutputs, - aDuration, - Math.max(1, aEUt), - 0); + false, + aCircuit, + new ItemStack[] { aOutput2 }, + null, + new FluidStack[] { aInput }, + aOutputs, + aDuration, + Math.max(1, aEUt), + 0); return false; } @Override public boolean addUniversalDistillationRecipewithCircuit(FluidStack aInput, ItemStack[] aCircuit, - FluidStack[] aOutputs, ItemStack aOutput2, int aDuration, int aEUt) { + FluidStack[] aOutputs, ItemStack aOutput2, int aDuration, int aEUt) { for (int i = 0; i < Math.min(aOutputs.length, 11); i++) { addDistilleryRecipe(i + 1, aInput, aOutputs[i], aOutput2, aDuration * 2, aEUt / 4, false); } @@ -1443,24 +1424,24 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { @Override public boolean addVacuumFreezerRecipe(ItemStack[] aItemInput, FluidStack[] aFluidInput, ItemStack[] aItemOutput, - FluidStack[] aFluidOutput, int aDuration, int aEUt) { + FluidStack[] aFluidOutput, int aDuration, int aEUt) { GT_Recipe.GT_Recipe_Map.sVacuumRecipes.addRecipe( - false, - aItemInput, - aItemOutput, - null, - aFluidInput, - aFluidOutput, - Math.max(1, aDuration), - Math.max(1, aEUt), - 0); + false, + aItemInput, + aItemOutput, + null, + aFluidInput, + aFluidOutput, + Math.max(1, aDuration), + Math.max(1, aEUt), + 0); return true; } @Override @Deprecated public boolean addGrinderRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, ItemStack aOutput2, - ItemStack aOutput3, ItemStack aOutput4) { + ItemStack aOutput3, ItemStack aOutput4) { return false; } @@ -1490,7 +1471,7 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { @Override public boolean addChemicalBathRecipe(ItemStack aInput, FluidStack aBathingFluid, ItemStack aOutput1, - ItemStack aOutput2, ItemStack aOutput3, FluidStack aFluidOutput, int[] aChances, int aDuration, int aEUt) { + ItemStack aOutput2, ItemStack aOutput3, FluidStack aFluidOutput, int[] aChances, int aDuration, int aEUt) { return false; } @@ -1503,38 +1484,38 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { return false; } GT_Recipe.GT_Recipe_Map.sHammerRecipes.addRecipe( - true, - new ItemStack[] { aInput1 }, - new ItemStack[] { aOutput1 }, - null, - null, - null, - aDuration, - aEUt, - 0); + true, + new ItemStack[] { aInput1 }, + new ItemStack[] { aOutput1 }, + null, + null, + null, + aDuration, + aEUt, + 0); return true; } @Override public boolean addForgeHammerRecipe(ItemStack[] ItemInputArray, FluidStack[] FluidInputArray, - ItemStack[] ItemOutputArray, FluidStack[] FluidOutputArray, int aDuration, int aEUt) { + ItemStack[] ItemOutputArray, FluidStack[] FluidOutputArray, int aDuration, int aEUt) { GT_Recipe.GT_Recipe_Map.sHammerRecipes.addRecipe( - true, - ItemInputArray, - ItemOutputArray, - null, - FluidInputArray, - FluidOutputArray, - aDuration, - aEUt, - 0); + true, + ItemInputArray, + ItemOutputArray, + null, + FluidInputArray, + FluidOutputArray, + aDuration, + aEUt, + 0); return true; } @Override public boolean addBoxingRecipe(ItemStack aContainedItem, ItemStack aEmptyBox, ItemStack aFullBox, int aDuration, - int aEUt) { + int aEUt) { if ((aContainedItem == null) || (aFullBox == null)) { return false; } @@ -1542,21 +1523,21 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { return false; } GT_Recipe.GT_Recipe_Map.sBoxinatorRecipes.addRecipe( - true, - new ItemStack[] { aContainedItem, aEmptyBox }, - new ItemStack[] { aFullBox }, - null, - null, - null, - aDuration, - aEUt, - 0); + true, + new ItemStack[] { aContainedItem, aEmptyBox }, + new ItemStack[] { aFullBox }, + null, + null, + null, + aDuration, + aEUt, + 0); return true; } @Override public boolean addUnboxingRecipe(ItemStack aFullBox, ItemStack aContainedItem, ItemStack aEmptyBox, int aDuration, - int aEUt) { + int aEUt) { if ((aFullBox == null) || (aContainedItem == null)) { return false; } @@ -1564,21 +1545,21 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { return false; } GT_Recipe.GT_Recipe_Map.sUnboxinatorRecipes.addRecipe( - true, - new ItemStack[] { aFullBox }, - new ItemStack[] { aContainedItem, aEmptyBox }, - null, - null, - null, - aDuration, - aEUt, - 0); + true, + new ItemStack[] { aFullBox }, + new ItemStack[] { aContainedItem, aEmptyBox }, + null, + null, + null, + aDuration, + aEUt, + 0); return true; } @Override public boolean addThermalCentrifugeRecipe(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2, - ItemStack aOutput3, int aDuration, int aEUt) { + ItemStack aOutput3, int aDuration, int aEUt) { if ((aInput == null) || (aOutput1 == null)) { return false; } @@ -1586,21 +1567,21 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { return false; } GT_Recipe.GT_Recipe_Map.sThermalCentrifugeRecipes.addRecipe( - true, - new ItemStack[] { aInput }, - new ItemStack[] { aOutput1, aOutput2, aOutput3 }, - null, - null, - null, - aDuration, - aEUt, - 0); + true, + new ItemStack[] { aInput }, + new ItemStack[] { aOutput1, aOutput2, aOutput3 }, + null, + null, + null, + aDuration, + aEUt, + 0); return true; } @Override public boolean addThermalCentrifugeRecipe(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2, - ItemStack aOutput3, int[] aChances, int aDuration, int aEUt) { + ItemStack aOutput3, int[] aChances, int aDuration, int aEUt) { if ((aInput == null) || (aOutput1 == null)) { return false; } @@ -1608,16 +1589,16 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { return false; } GT_Recipe.GT_Recipe_Map.sThermalCentrifugeRecipes.addRecipe( - true, - new ItemStack[] { aInput }, - new ItemStack[] { aOutput1, aOutput2, aOutput3 }, - null, - aChances, - null, - null, - aDuration, - aEUt, - 0); + true, + new ItemStack[] { aInput }, + new ItemStack[] { aOutput1, aOutput2, aOutput3 }, + null, + aChances, + null, + null, + aDuration, + aEUt, + 0); return true; } @@ -1630,21 +1611,21 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { return false; } GT_Recipe.GT_Recipe_Map.sAmplifiers.addRecipe( - true, - new ItemStack[] { aAmplifierItem }, - null, - null, - null, - new FluidStack[] { Materials.UUAmplifier.getFluid(aAmplifierAmountOutputted) }, - aDuration, - 30, - 0); + true, + new ItemStack[] { aAmplifierItem }, + null, + null, + null, + new FluidStack[] { Materials.UUAmplifier.getFluid(aAmplifierAmountOutputted) }, + aDuration, + 30, + 0); return true; } @Override public boolean addBrewingRecipe(ItemStack aIngredient, Fluid aInput, Fluid aOutput, int aDuration, int aEUt, - boolean aHidden) { + boolean aHidden) { if ((aIngredient == null) || (aInput == null) || (aOutput == null)) { return false; } @@ -1652,15 +1633,15 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { return false; } GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sBrewingRecipes.addRecipe( - false, - new ItemStack[] { aIngredient }, - null, - null, - new FluidStack[] { new FluidStack(aInput, 750) }, - new FluidStack[] { new FluidStack(aOutput, 750) }, - aDuration, - aEUt, - 0); + false, + new ItemStack[] { aIngredient }, + null, + null, + new FluidStack[] { new FluidStack(aInput, 750) }, + new FluidStack[] { new FluidStack(aOutput, 750) }, + aDuration, + aEUt, + 0); if ((aHidden) && (tRecipe != null)) { tRecipe.mHidden = true; } @@ -1674,7 +1655,7 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { @Override public boolean addBrewingRecipeCustom(ItemStack aIngredient, FluidStack aInput, FluidStack aOutput, int aDuration, - int aEUt, boolean aHidden) { + int aEUt, boolean aHidden) { if ((aInput == null) || (aOutput == null)) { return false; } @@ -1682,15 +1663,15 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { return false; } GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sBrewingRecipes.addRecipe( - false, - new ItemStack[] { aIngredient }, - null, - null, - new FluidStack[] { aInput }, - new FluidStack[] { aOutput }, - aDuration, - aEUt, - 0); + false, + new ItemStack[] { aIngredient }, + null, + null, + new FluidStack[] { aInput }, + new FluidStack[] { aOutput }, + aDuration, + aEUt, + 0); if ((aHidden) && (tRecipe != null)) { tRecipe.mHidden = true; } @@ -1699,27 +1680,27 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { @Override public boolean addFermentingRecipe(FluidStack aInput, FluidStack aOutput, int aDuration, int aEUt, - boolean aHidden) { + boolean aHidden) { if ((aInput == null) || (aOutput == null)) { return false; } if ((aDuration = GregTech_API.sRecipeFile.get( - "fermenting", - aOutput.getFluid() - .getUnlocalizedName(), - aDuration)) <= 0) { + "fermenting", + aOutput.getFluid() + .getUnlocalizedName(), + aDuration)) <= 0) { return false; } GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sFermentingRecipes.addRecipe( - false, - null, - null, - null, - new FluidStack[] { aInput }, - new FluidStack[] { aOutput }, - aDuration, - aEUt, - 0); + false, + null, + null, + null, + new FluidStack[] { aInput }, + new FluidStack[] { aOutput }, + aDuration, + aEUt, + 0); if ((aHidden) && (tRecipe != null)) { tRecipe.mHidden = true; } @@ -1733,15 +1714,15 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { @Override public boolean addDistilleryRecipe(ItemStack aCircuit, FluidStack aInput, FluidStack aOutput, - ItemStack aSolidOutput, int aDuration, int aEUt, boolean aHidden) { + ItemStack aSolidOutput, int aDuration, int aEUt, boolean aHidden) { if ((aInput == null) || (aOutput == null)) { return false; } if ((aDuration = GregTech_API.sRecipeFile.get( - "distillery", - aOutput.getFluid() - .getUnlocalizedName(), - aDuration)) <= 0) { + "distillery", + aOutput.getFluid() + .getUnlocalizedName(), + aDuration)) <= 0) { return false; } // reduce the batch size if fluid amount is exceeding @@ -1766,10 +1747,9 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { if (aSolidOutput != null) { ItemData tData = GT_OreDictUnificator.getItemData(aSolidOutput); if (tData != null && (tData.mPrefix == OrePrefixes.dust - || OrePrefixes.dust.mFamiliarPrefixes.contains(tData.mPrefix))) { - aSolidOutput = GT_OreDictUnificator.getDust( - tData.mMaterial.mMaterial, - tData.mMaterial.mAmount * aSolidOutput.stackSize / tScale); + || OrePrefixes.dust.mFamiliarPrefixes.contains(tData.mPrefix))) { + aSolidOutput = GT_OreDictUnificator + .getDust(tData.mMaterial.mMaterial, tData.mMaterial.mAmount * aSolidOutput.stackSize / tScale); } else { if (aSolidOutput.stackSize / tScale == 0) aSolidOutput = GT_Values.NI; else aSolidOutput = new ItemStack(aSolidOutput.getItem(), aSolidOutput.stackSize / tScale); @@ -1779,15 +1759,15 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { } GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sDistilleryRecipes.addRecipe( - true, - new ItemStack[] { aCircuit }, - new ItemStack[] { aSolidOutput }, - null, - new FluidStack[] { aInput }, - new FluidStack[] { aOutput }, - aDuration, - aEUt, - 0); + true, + new ItemStack[] { aCircuit }, + new ItemStack[] { aSolidOutput }, + null, + new FluidStack[] { aInput }, + new FluidStack[] { aOutput }, + aDuration, + aEUt, + 0); if ((aHidden) && (tRecipe != null)) { tRecipe.mHidden = true; } @@ -1796,55 +1776,47 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { @Override public boolean addDistilleryRecipe(ItemStack aCircuit, FluidStack aInput, FluidStack aOutput, int aDuration, - int aEUt, boolean aHidden) { + int aEUt, boolean aHidden) { return addDistilleryRecipe(aCircuit, aInput, aOutput, null, aDuration, aEUt, aHidden); } @Override public boolean addDistilleryRecipe(int circuitConfig, FluidStack aInput, FluidStack aOutput, ItemStack aSolidOutput, - int aDuration, int aEUt, boolean aHidden) { + int aDuration, int aEUt, boolean aHidden) { return addDistilleryRecipe( - GT_Utility.getIntegratedCircuit(circuitConfig), - aInput, - aOutput, - aSolidOutput, - aDuration, - aEUt, - aHidden); + GT_Utility.getIntegratedCircuit(circuitConfig), + aInput, + aOutput, + aSolidOutput, + aDuration, + aEUt, + aHidden); } @Override public boolean addDistilleryRecipe(int circuitConfig, FluidStack aInput, FluidStack aOutput, int aDuration, - int aEUt, boolean aHidden) { + int aEUt, boolean aHidden) { return addDistilleryRecipe( - GT_Utility.getIntegratedCircuit(circuitConfig), - aInput, - aOutput, - aDuration, - aEUt, - aHidden); + GT_Utility.getIntegratedCircuit(circuitConfig), + aInput, + aOutput, + aDuration, + aEUt, + aHidden); } @Override public boolean addFluidSolidifierRecipe(final ItemStack[] itemInputs, final FluidStack[] fluidInputs, - final ItemStack[] itemOutputs, final FluidStack[] fluidOutputs, final int EUPerTick, - final int aDurationInTicks) { - GT_Recipe.GT_Recipe_Map.sFluidSolidficationRecipes.addRecipe( - true, - itemInputs, - itemOutputs, - null, - fluidInputs, - fluidOutputs, - aDurationInTicks, - EUPerTick, - 0); + final ItemStack[] itemOutputs, final FluidStack[] fluidOutputs, final int EUPerTick, + final int aDurationInTicks) { + GT_Recipe.GT_Recipe_Map.sFluidSolidficationRecipes + .addRecipe(true, itemInputs, itemOutputs, null, fluidInputs, fluidOutputs, aDurationInTicks, EUPerTick, 0); return true; } @Override public boolean addFluidSolidifierRecipe(ItemStack aMold, FluidStack aInput, ItemStack aOutput, int aDuration, - int aEUt) { + int aEUt) { if ((aMold == null) || (aInput == null) || (aOutput == null)) { return false; } @@ -1858,27 +1830,27 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { return false; } GT_Recipe.GT_Recipe_Map.sFluidSolidficationRecipes.addRecipe( - true, - new ItemStack[] { aMold }, - new ItemStack[] { aOutput }, - null, - new FluidStack[] { aInput }, - null, - aDuration, - aEUt, - 0); + true, + new ItemStack[] { aMold }, + new ItemStack[] { aOutput }, + null, + new FluidStack[] { aInput }, + null, + aDuration, + aEUt, + 0); return true; } @Override public boolean addFluidSmelterRecipe(ItemStack aInput, ItemStack aRemains, FluidStack aOutput, int aChance, - int aDuration, int aEUt) { + int aDuration, int aEUt) { return addFluidSmelterRecipe(aInput, aRemains, aOutput, aChance, aDuration, aEUt, false); } @Override public boolean addFluidSmelterRecipe(ItemStack aInput, ItemStack aRemains, FluidStack aOutput, int aChance, - int aDuration, int aEUt, boolean hidden) { + int aDuration, int aEUt, boolean hidden) { if ((aInput == null) || (aOutput == null)) { return false; } @@ -1892,16 +1864,16 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { return false; } GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sFluidExtractionRecipes.addRecipe( - true, - new ItemStack[] { aInput }, - new ItemStack[] { aRemains }, - null, - new int[] { aChance }, - null, - new FluidStack[] { aOutput }, - aDuration, - aEUt, - 0); + true, + new ItemStack[] { aInput }, + new ItemStack[] { aRemains }, + null, + new int[] { aChance }, + null, + new FluidStack[] { aOutput }, + aDuration, + aEUt, + 0); if ((hidden) && (tRecipe != null)) { tRecipe.mHidden = true; } @@ -1910,7 +1882,7 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { @Override public boolean addFluidExtractionRecipe(ItemStack aInput, ItemStack aRemains, FluidStack aOutput, int aChance, - int aDuration, int aEUt) { + int aDuration, int aEUt) { if ((aInput == null) || (aOutput == null)) { return false; } @@ -1924,22 +1896,22 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { return false; } GT_Recipe.GT_Recipe_Map.sFluidExtractionRecipes.addRecipe( - true, - new ItemStack[] { aInput }, - new ItemStack[] { aRemains }, - null, - new int[] { aChance }, - null, - new FluidStack[] { aOutput }, - aDuration, - aEUt, - 0); + true, + new ItemStack[] { aInput }, + new ItemStack[] { aRemains }, + null, + new int[] { aChance }, + null, + new FluidStack[] { aOutput }, + aDuration, + aEUt, + 0); return true; } @Override public boolean addFluidCannerRecipe(ItemStack aInput, ItemStack aOutput, FluidStack aFluidInput, - FluidStack aFluidOutput) { + FluidStack aFluidOutput) { int aDuration = aFluidOutput == null ? aFluidInput.amount / 62 : aFluidOutput.amount / 62; if (aInput == null || aOutput == null) { @@ -1952,21 +1924,21 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { return false; } GT_Recipe.GT_Recipe_Map.sFluidCannerRecipes.addRecipe( - true, - new ItemStack[] { aInput }, - new ItemStack[] { aOutput }, - null, - new FluidStack[] { aFluidInput }, - new FluidStack[] { aFluidOutput }, - aDuration, - 1, - 0); + true, + new ItemStack[] { aInput }, + new ItemStack[] { aOutput }, + null, + new FluidStack[] { aFluidInput }, + new FluidStack[] { aFluidOutput }, + aDuration, + 1, + 0); return true; } @Override public boolean addFluidCannerRecipe(ItemStack aInput, ItemStack aOutput, FluidStack aFluidInput, - FluidStack aFluidOutput, int aDuration, int aEUt) { + FluidStack aFluidOutput, int aDuration, int aEUt) { if (aInput == null || aOutput == null) { return false; } @@ -1977,44 +1949,44 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { return false; } GT_Recipe.GT_Recipe_Map.sFluidCannerRecipes.addRecipe( - true, - new ItemStack[] { aInput }, - new ItemStack[] { aOutput }, - null, - new FluidStack[] { aFluidInput }, - new FluidStack[] { aFluidOutput }, - aDuration, - aEUt, - 0); + true, + new ItemStack[] { aInput }, + new ItemStack[] { aOutput }, + null, + new FluidStack[] { aFluidInput }, + new FluidStack[] { aFluidOutput }, + aDuration, + aEUt, + 0); return true; } @Override public boolean addChemicalBathRecipe(ItemStack aInput, FluidStack aBathingFluid, ItemStack aOutput1, - ItemStack aOutput2, ItemStack aOutput3, int[] aChances, int aDuration, int aEUt) { + ItemStack aOutput2, ItemStack aOutput3, int[] aChances, int aDuration, int aEUt) { if ((aInput == null) || (aBathingFluid == null) || (aOutput1 == null)) { return false; } if ((aDuration = GregTech_API.sRecipeFile.get("chemicalbath", aInput, aDuration)) <= 0) { return false; } - GT_Recipe.GT_Recipe_Map.sChemicalBathRecipes.addRecipe( - true, - new ItemStack[] { aInput }, - new ItemStack[] { aOutput1, aOutput2, aOutput3 }, - null, - aChances, - new FluidStack[] { aBathingFluid }, - null, - aDuration, - aEUt, - 0); + GT_Recipe.GT_Recipe_Map.sChemicalBathRecipes.addRecipe( + true, + new ItemStack[] { aInput }, + new ItemStack[] { aOutput1, aOutput2, aOutput3 }, + null, + aChances, + new FluidStack[] { aBathingFluid }, + null, + aDuration, + aEUt, + 0); return true; } @Override public boolean addChemicalBathRecipe(ItemStack aInput, FluidStack aBathingFluid, FluidStack aFluidOutput, - ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, int[] aChances, int aDuration, int aEUt) { + ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, int[] aChances, int aDuration, int aEUt) { if ((aInput == null) || (aBathingFluid == null) || (aOutput1 == null)) { return false; } @@ -2022,22 +1994,22 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { return false; } GT_Recipe.GT_Recipe_Map.sChemicalBathRecipes.addRecipe( - true, - new ItemStack[] { aInput }, - new ItemStack[] { aOutput1, aOutput2, aOutput3 }, - null, - aChances, - new FluidStack[] { aBathingFluid }, - new FluidStack[] { aFluidOutput }, - aDuration, - aEUt, - 0); + true, + new ItemStack[] { aInput }, + new ItemStack[] { aOutput1, aOutput2, aOutput3 }, + null, + aChances, + new FluidStack[] { aBathingFluid }, + new FluidStack[] { aFluidOutput }, + aDuration, + aEUt, + 0); return true; } @Override public boolean addElectromagneticSeparatorRecipe(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2, - ItemStack aOutput3, int[] aChances, int aDuration, int aEUt) { + ItemStack aOutput3, int[] aChances, int aDuration, int aEUt) { if ((aInput == null) || (aOutput1 == null)) { return false; } @@ -2045,16 +2017,16 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { return false; } GT_Recipe.GT_Recipe_Map.sElectroMagneticSeparatorRecipes.addRecipe( - true, - new ItemStack[] { aInput }, - new ItemStack[] { aOutput1, aOutput2, aOutput3 }, - null, - aChances, - null, - null, - aDuration, - aEUt, - 0); + true, + new ItemStack[] { aInput }, + new ItemStack[] { aOutput1, aOutput2, aOutput3 }, + null, + aChances, + null, + null, + aDuration, + aEUt, + 0); return true; } @@ -2067,21 +2039,21 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { return false; } GT_Recipe.GT_Recipe_Map.sExtractorRecipes.addRecipe( - true, - new ItemStack[] { aInput }, - new ItemStack[] { aOutput }, - null, - null, - null, - aDuration, - aEUt, - 0); + true, + new ItemStack[] { aInput }, + new ItemStack[] { aOutput }, + null, + null, + null, + aDuration, + aEUt, + 0); return true; } @Override public boolean addPrinterRecipe(ItemStack aInput, FluidStack aFluid, ItemStack aSpecialSlot, ItemStack aOutput, - int aDuration, int aEUt) { + int aDuration, int aEUt) { if ((aInput == null) || (aFluid == null) || (aOutput == null)) { return false; } @@ -2089,45 +2061,45 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { return false; } GT_Recipe.GT_Recipe_Map.sPrinterRecipes.addRecipe( - true, - new ItemStack[] { aInput }, - new ItemStack[] { aOutput }, - aSpecialSlot, - null, - new FluidStack[] { aFluid }, - null, - aDuration, - aEUt, - 0); + true, + new ItemStack[] { aInput }, + new ItemStack[] { aOutput }, + aSpecialSlot, + null, + new FluidStack[] { aFluid }, + null, + aDuration, + aEUt, + 0); return true; } @Override public boolean addAutoclaveRecipe(ItemStack aInput, FluidStack aFluid, ItemStack aOutput, int aChance, - int aDuration, int aEUt, boolean aCleanroom) { + int aDuration, int aEUt, boolean aCleanroom) { return addAutoclaveRecipe(aInput, aFluid, aOutput, aChance, aDuration, aEUt); } @Override public boolean addAutoclaveRecipe(ItemStack aInput, FluidStack aFluid, ItemStack aOutput, int aChance, - int aDuration, int aEUt) { + int aDuration, int aEUt) { return addAutoclaveRecipe(aInput, null, aFluid, aOutput, aChance, aDuration, aEUt, false); } public boolean addAutoclaveRecipe(ItemStack aInput, ItemStack aCircuit, FluidStack aFluid, ItemStack aOutput, - int aChance, int aDuration, int aEUt) { + int aChance, int aDuration, int aEUt) { return addAutoclaveRecipe(aInput, aCircuit, aFluid, aOutput, aChance, aDuration, aEUt, false); } @Override public boolean addAutoclaveRecipe(ItemStack aInput, ItemStack aCircuit, FluidStack aFluidIn, ItemStack aOutput, - int aChance, int aDuration, int aEUt, boolean aCleanroom) { + int aChance, int aDuration, int aEUt, boolean aCleanroom) { return addAutoclaveRecipe(aInput, aCircuit, aFluidIn, null, aOutput, aChance, aDuration, aEUt, aCleanroom); } @Override public boolean addAutoclaveRecipe(ItemStack aInput, ItemStack aCircuit, FluidStack aFluidIn, FluidStack aFluidOut, - ItemStack aOutput, int aChance, int aDuration, int aEUt, boolean aCleanroom) { + ItemStack aOutput, int aChance, int aDuration, int aEUt, boolean aCleanroom) { if ((aInput == null) || (aFluidIn == null) || (aOutput == null)) { return false; } @@ -2138,28 +2110,28 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { aCleanroom = false; } GT_Recipe.GT_Recipe_Map.sAutoclaveRecipes.addRecipe( - true, - new ItemStack[] { aInput, aCircuit }, - new ItemStack[] { aOutput }, - null, - new int[] { aChance }, - new FluidStack[] { aFluidIn }, - new FluidStack[] { aFluidOut }, - aDuration, - aEUt, - aCleanroom ? -200 : 0); + true, + new ItemStack[] { aInput, aCircuit }, + new ItemStack[] { aOutput }, + null, + new int[] { aChance }, + new FluidStack[] { aFluidIn }, + new FluidStack[] { aFluidOut }, + aDuration, + aEUt, + aCleanroom ? -200 : 0); return true; } @Override public boolean addAutoclaveSpaceRecipe(ItemStack aInput, FluidStack aFluid, ItemStack aOutput, int aChance, - int aDuration, int aEUt, boolean aCleanroom) { + int aDuration, int aEUt, boolean aCleanroom) { return addAutoclaveRecipe(aInput, aFluid, aOutput, aChance, aDuration, aEUt, aCleanroom); } @Override public boolean addAutoclaveSpaceRecipe(ItemStack aInput, ItemStack aCircuit, FluidStack aFluid, ItemStack aOutput, - int aChance, int aDuration, int aEUt, boolean aCleanroom) { + int aChance, int aDuration, int aEUt, boolean aCleanroom) { if ((aInput == null) || (aFluid == null) || (aOutput == null)) { return false; } @@ -2170,22 +2142,22 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { aCleanroom = false; } GT_Recipe.GT_Recipe_Map.sAutoclaveRecipes.addRecipe( - true, - new ItemStack[] { aInput, aCircuit }, - new ItemStack[] { aOutput }, - null, - new int[] { aChance }, - new FluidStack[] { aFluid }, - null, - aDuration, - aEUt, - aCleanroom ? -100 : 0); + true, + new ItemStack[] { aInput, aCircuit }, + new ItemStack[] { aOutput }, + null, + new int[] { aChance }, + new FluidStack[] { aFluid }, + null, + aDuration, + aEUt, + aCleanroom ? -100 : 0); return true; } @Override public boolean addAutoclave4Recipe(ItemStack aInput, ItemStack aCircuit, FluidStack aFluidIn, FluidStack aFluidOut, - ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUt, boolean aCleanroom) { + ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUt, boolean aCleanroom) { if ((aInput == null) || (aFluidIn == null) || (aOutputs == null)) { return false; } @@ -2196,67 +2168,67 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { aCleanroom = false; } GT_Recipe.GT_Recipe_Map.sAutoclaveRecipes.addRecipe( - true, - new ItemStack[] { aInput, aCircuit }, - aOutputs, - null, - aChances, - new FluidStack[] { aFluidIn }, - new FluidStack[] { aFluidOut }, - aDuration, - aEUt, - aCleanroom ? -200 : 0); + true, + new ItemStack[] { aInput, aCircuit }, + aOutputs, + null, + aChances, + new FluidStack[] { aFluidIn }, + new FluidStack[] { aFluidOut }, + aDuration, + aEUt, + aCleanroom ? -200 : 0); return true; } @Deprecated @Override public boolean addMixerRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aInput3, ItemStack aInput4, - FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput, int aDuration, int aEUt) { + FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput, int aDuration, int aEUt) { return addMixerRecipe( - aInput1, - aInput2, - aInput3, - aInput4, - null, - null, - null, - null, - null, - aFluidInput, - aFluidOutput, - aOutput, - aDuration, - aEUt); + aInput1, + aInput2, + aInput3, + aInput4, + null, + null, + null, + null, + null, + aFluidInput, + aFluidOutput, + aOutput, + aDuration, + aEUt); } @Deprecated @Override public boolean addMixerRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aInput3, ItemStack aInput4, - ItemStack aInput5, ItemStack aInput6, FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput, - int aDuration, int aEUt) { + ItemStack aInput5, ItemStack aInput6, FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput, + int aDuration, int aEUt) { return addMixerRecipe( - aInput1, - aInput2, - aInput3, - aInput4, - aInput5, - aInput6, - null, - null, - null, - aFluidInput, - aFluidOutput, - aOutput, - aDuration, - aEUt); + aInput1, + aInput2, + aInput3, + aInput4, + aInput5, + aInput6, + null, + null, + null, + aFluidInput, + aFluidOutput, + aOutput, + aDuration, + aEUt); } @Deprecated @Override public boolean addMixerRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aInput3, ItemStack aInput4, - ItemStack aInput5, ItemStack aInput6, ItemStack aInput7, ItemStack aInput8, ItemStack aInput9, - FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput, int aDuration, int aEUt) { + ItemStack aInput5, ItemStack aInput6, ItemStack aInput7, ItemStack aInput8, ItemStack aInput9, + FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput, int aDuration, int aEUt) { if (((aInput1 == null) && (aFluidInput == null)) || ((aOutput == null) && (aFluidOutput == null))) { return false; } @@ -2264,23 +2236,23 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { return false; } if ((aFluidOutput != null) && ((aDuration = GregTech_API.sRecipeFile.get( - "mixer", - aFluidOutput.getFluid() - .getName(), - aDuration)) <= 0)) { + "mixer", + aFluidOutput.getFluid() + .getName(), + aDuration)) <= 0)) { return false; } GT_Recipe.GT_Recipe_Map.sMixerRecipes.addRecipe( - true, - new ItemStack[] { aInput1, aInput2, aInput3, aInput4, aInput5, aInput6, aInput7, aInput8, aInput9 }, - new ItemStack[] { aOutput }, - null, - null, - new FluidStack[] { aFluidInput }, - new FluidStack[] { aFluidOutput }, - aDuration, - aEUt, - 0); + true, + new ItemStack[] { aInput1, aInput2, aInput3, aInput4, aInput5, aInput6, aInput7, aInput8, aInput9 }, + new ItemStack[] { aOutput }, + null, + null, + new FluidStack[] { aFluidInput }, + new FluidStack[] { aFluidOutput }, + aDuration, + aEUt, + 0); ItemStack[] itemInputs = { aInput1, aInput2, aInput3, aInput4, aInput5, aInput6, aInput7, aInput8, aInput9 }; ItemStack[] itemOutputs = { aOutput }; FluidStack[] fluidInputs = { aFluidInput, null, null, null, null, null, null, null, null, null }; @@ -2309,34 +2281,25 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { oNumber++; } - GT_Recipe.GT_Recipe_Map.sMultiblockMixerRecipes.addRecipe( - false, - itemInputs, - itemOutputs, - null, - null, - fluidInputs, - fluidOutputs, - aDuration, - aEUt, - 0); + GT_Recipe.GT_Recipe_Map.sMultiblockMixerRecipes + .addRecipe(false, itemInputs, itemOutputs, null, null, fluidInputs, fluidOutputs, aDuration, aEUt, 0); return true; } @Override public boolean addMixerRecipe(ItemStack[] ItemInputArray, FluidStack[] FluidInputArray, ItemStack[] ItemOutputArray, - FluidStack[] FluidOutputArray, int aDuration, int aEUt) { + FluidStack[] FluidOutputArray, int aDuration, int aEUt) { GT_Recipe.GT_Recipe_Map.sMixerRecipes.addRecipe( - false, - ItemInputArray, - ItemOutputArray, - null, - null, - FluidInputArray, - FluidOutputArray, - aDuration, - aEUt, - 0); + false, + ItemInputArray, + ItemOutputArray, + null, + null, + FluidInputArray, + FluidOutputArray, + aDuration, + aEUt, + 0); List tItemInputList; if (ItemInputArray == null) { tItemInputList = new ArrayList<>(1); @@ -2352,7 +2315,7 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { for (int i = 0; i < tItemInputList.size(); i++) { if (tItemInputList.get(i) != null) { if (GT_Utility.getFluidForFilledItem(tItemInputList.get(i), true) != null - || GT_Utility.isCellEmpty(tItemInputList.get(i))) { + || GT_Utility.isCellEmpty(tItemInputList.get(i))) { tFluidInputList.add(GT_Utility.convertCellToFluid(tItemInputList.get(i))); tItemInputList.set(i, null); } @@ -2373,7 +2336,7 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { for (int i = 0; i < tItemOutputList.size(); i++) { if (tItemOutputList.get(i) != null) { if (GT_Utility.getFluidForFilledItem(tItemOutputList.get(i), true) != null - || GT_Utility.isCellEmpty(tItemOutputList.get(i))) { + || GT_Utility.isCellEmpty(tItemOutputList.get(i))) { tFluidInputList.add(GT_Utility.convertCellToFluid(tItemOutputList.get(i))); tItemOutputList.set(i, null); } @@ -2393,25 +2356,25 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { for (int i = 0; i < tFluidOutputArray.length; i++) tFluidOutputArray[i] = tFluidOutputList.get(i); GT_Recipe.GT_Recipe_Map.sMultiblockMixerRecipes.addRecipe( - false, - tItemInputArray, - tItemOutputArray, - null, - null, - tFluidInputArray, - tFluidOutputArray, - aDuration, - aEUt, - 0); + false, + tItemInputArray, + tItemOutputArray, + null, + null, + tFluidInputArray, + tFluidOutputArray, + aDuration, + aEUt, + 0); return true; } @Deprecated @Override public boolean addMixerRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aInput3, ItemStack aInput4, - ItemStack aInput5, ItemStack aInput6, ItemStack aInput7, ItemStack aInput8, ItemStack aInput9, - FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, - ItemStack aOutput4, int aDuration, int aEUt) { + ItemStack aInput5, ItemStack aInput6, ItemStack aInput7, ItemStack aInput8, ItemStack aInput9, + FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, + ItemStack aOutput4, int aDuration, int aEUt) { if (((aInput1 == null) && (aFluidInput == null)) || ((aOutput1 == null) && (aFluidOutput == null))) { return false; } @@ -2419,23 +2382,23 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { return false; } if ((aFluidOutput != null) && ((aDuration = GregTech_API.sRecipeFile.get( - "mixer", - aFluidOutput.getFluid() - .getName(), - aDuration)) <= 0)) { + "mixer", + aFluidOutput.getFluid() + .getName(), + aDuration)) <= 0)) { return false; } GT_Recipe.GT_Recipe_Map.sMixerRecipes.addRecipe( - true, - new ItemStack[] { aInput1, aInput2, aInput3, aInput4, aInput5, aInput6, aInput7, aInput8, aInput9 }, - new ItemStack[] { aOutput1, aOutput2, aOutput3, aOutput4 }, - null, - null, - new FluidStack[] { aFluidInput }, - new FluidStack[] { aFluidOutput }, - aDuration, - aEUt, - 0); + true, + new ItemStack[] { aInput1, aInput2, aInput3, aInput4, aInput5, aInput6, aInput7, aInput8, aInput9 }, + new ItemStack[] { aOutput1, aOutput2, aOutput3, aOutput4 }, + null, + null, + new FluidStack[] { aFluidInput }, + new FluidStack[] { aFluidOutput }, + aDuration, + aEUt, + 0); ItemStack[] itemInputs = { aInput1, aInput2, aInput3, aInput4, aInput5, aInput6, aInput7, aInput8, aInput9 }; ItemStack[] itemOutputs = { aOutput1, aOutput2, aOutput3, aOutput4 }; FluidStack[] fluidInputs = { aFluidInput, null, null, null, null, null, null, null, null, null }; @@ -2464,31 +2427,22 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { oNumber++; } - GT_Recipe.GT_Recipe_Map.sMultiblockMixerRecipes.addRecipe( - false, - itemInputs, - itemOutputs, - null, - null, - fluidInputs, - fluidOutputs, - aDuration, - aEUt, - 0); + GT_Recipe.GT_Recipe_Map.sMultiblockMixerRecipes + .addRecipe(false, itemInputs, itemOutputs, null, null, fluidInputs, fluidOutputs, aDuration, aEUt, 0); return true; } @Deprecated @Override public boolean addLaserEngraverRecipe(ItemStack aItemToEngrave, ItemStack aLens, ItemStack aEngravedItem, - int aDuration, int aEUt) { + int aDuration, int aEUt) { return addLaserEngraverRecipe(aItemToEngrave, aLens, aEngravedItem, aDuration, aEUt, false); } @Deprecated @Override public boolean addLaserEngraverRecipe(ItemStack aItemToEngrave, ItemStack aLens, ItemStack aEngravedItem, - int aDuration, int aEUt, boolean aCleanroom) { + int aDuration, int aEUt, boolean aCleanroom) { if ((aItemToEngrave == null) || (aLens == null) || (aEngravedItem == null)) { return false; } @@ -2499,38 +2453,38 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { aCleanroom = false; } GT_Recipe.GT_Recipe_Map.sLaserEngraverRecipes.addRecipe( - true, - new ItemStack[] { aItemToEngrave, aLens }, - new ItemStack[] { aEngravedItem }, - null, - null, - null, - aDuration, - aEUt, - aCleanroom ? -200 : 0); + true, + new ItemStack[] { aItemToEngrave, aLens }, + new ItemStack[] { aEngravedItem }, + null, + null, + null, + aDuration, + aEUt, + aCleanroom ? -200 : 0); return true; } @Override public boolean addLaserEngraverRecipe(ItemStack[] ItemInputArray, FluidStack[] FluidInputArray, - ItemStack[] OutputItemArray, FluidStack[] FluidOutputArray, int aDuration, int aEUt, boolean aCleanroom) { + ItemStack[] OutputItemArray, FluidStack[] FluidOutputArray, int aDuration, int aEUt, boolean aCleanroom) { GT_Recipe.GT_Recipe_Map.sLaserEngraverRecipes.addRecipe( - false, - ItemInputArray, - OutputItemArray, - null, - null, - FluidInputArray, - FluidOutputArray, - aDuration, - aEUt, - aCleanroom ? -200 : 0); + false, + ItemInputArray, + OutputItemArray, + null, + null, + FluidInputArray, + FluidOutputArray, + aDuration, + aEUt, + aCleanroom ? -200 : 0); return true; } @Override public boolean addFormingPressRecipe(ItemStack aItemToImprint, ItemStack aForm, ItemStack aImprintedItem, - int aDuration, int aEUt) { + int aDuration, int aEUt) { if ((aItemToImprint == null) || (aForm == null) || (aImprintedItem == null)) { return false; } @@ -2538,34 +2492,26 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { return false; } GT_Recipe.GT_Recipe_Map.sPressRecipes.addRecipe( - true, - new ItemStack[] { aItemToImprint, aForm }, - new ItemStack[] { aImprintedItem }, - null, - null, - null, - aDuration, - aEUt, - 0); + true, + new ItemStack[] { aItemToImprint, aForm }, + new ItemStack[] { aImprintedItem }, + null, + null, + null, + aDuration, + aEUt, + 0); return true; } @Override public boolean addFormingPressRecipe(ItemStack[] ItemInputArray, ItemStack[] OutputItemArray, int aDuration, - int aEUt) { + int aEUt) { if ((ItemInputArray == null) || (OutputItemArray == null)) { return false; } - GT_Recipe.GT_Recipe_Map.sPressRecipes.addRecipe( - true, - ItemInputArray, - OutputItemArray, - null, - null, - null, - aDuration, - aEUt, - 0); + GT_Recipe.GT_Recipe_Map.sPressRecipes + .addRecipe(true, ItemInputArray, OutputItemArray, null, null, null, aDuration, aEUt, 0); return true; } @@ -2575,54 +2521,54 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { return false; } if ((aDuration = GregTech_API.sRecipeFile.get( - "fluidheater", - aOutput.getFluid() - .getUnlocalizedName(), - aDuration)) <= 0) { + "fluidheater", + aOutput.getFluid() + .getUnlocalizedName(), + aDuration)) <= 0) { return false; } GT_Recipe.GT_Recipe_Map.sFluidHeaterRecipes.addRecipe( - true, - new ItemStack[] { aItem }, - null, - null, - null, - new FluidStack[] { aOutput }, - aDuration, - aEUt, - 0); + true, + new ItemStack[] { aItem }, + null, + null, + null, + new FluidStack[] { aOutput }, + aDuration, + aEUt, + 0); return true; } @Override public boolean addFluidHeaterRecipe(ItemStack aCircuit, FluidStack aInput, FluidStack aOutput, int aDuration, - int aEUt) { + int aEUt) { if ((aInput == null) || (aOutput == null)) { return false; } if ((aDuration = GregTech_API.sRecipeFile.get( - "fluidheater", - aOutput.getFluid() - .getUnlocalizedName(), - aDuration)) <= 0) { + "fluidheater", + aOutput.getFluid() + .getUnlocalizedName(), + aDuration)) <= 0) { return false; } GT_Recipe.GT_Recipe_Map.sFluidHeaterRecipes.addRecipe( - true, - new ItemStack[] { aCircuit }, - null, - null, - new FluidStack[] { aInput }, - new FluidStack[] { aOutput }, - aDuration, - aEUt, - 0); + true, + new ItemStack[] { aCircuit }, + null, + null, + new FluidStack[] { aInput }, + new FluidStack[] { aOutput }, + aDuration, + aEUt, + 0); return true; } @Override public boolean addSifterRecipe(ItemStack aItemToSift, ItemStack[] aSiftedItems, int[] aChances, int aDuration, - int aEUt) { + int aEUt) { if ((aItemToSift == null) || (aSiftedItems == null)) { return false; } @@ -2632,16 +2578,16 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { return false; } GT_Recipe.GT_Recipe_Map.sSifterRecipes.addRecipe( - true, - new ItemStack[] { aItemToSift }, - aSiftedItems, - null, - aChances, - null, - null, - aDuration, - aEUt, - 0); + true, + new ItemStack[] { aItemToSift }, + aSiftedItems, + null, + aChances, + null, + null, + aDuration, + aEUt, + 0); return true; } } @@ -2650,31 +2596,31 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { @Override public boolean addSifterRecipe(ItemStack[] ItemInputArray, FluidStack[] FluidInputArray, - ItemStack[] OutputItemArray, FluidStack[] FluidOutputArray, int[] aChances, int aDuration, int aEUt, - boolean aCleanroom) { + ItemStack[] OutputItemArray, FluidStack[] FluidOutputArray, int[] aChances, int aDuration, int aEUt, + boolean aCleanroom) { GT_Recipe.GT_Recipe_Map.sSifterRecipes.addRecipe( - false, - ItemInputArray, - OutputItemArray, - null, - aChances, - FluidInputArray, - FluidOutputArray, - aDuration, - aEUt, - aCleanroom ? -200 : 0); + false, + ItemInputArray, + OutputItemArray, + null, + aChances, + FluidInputArray, + FluidOutputArray, + aDuration, + aEUt, + aCleanroom ? -200 : 0); return true; } @Override public boolean addArcFurnaceRecipe(ItemStack aInput, ItemStack[] aOutputs, int[] aChances, int aDuration, - int aEUt) { + int aEUt) { return addArcFurnaceRecipe(aInput, aOutputs, aChances, aDuration, aEUt, false); } @Override public boolean addArcFurnaceRecipe(ItemStack aInput, ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUt, - boolean hidden) { + boolean hidden) { if ((aInput == null) || (aOutputs == null)) { return false; } @@ -2684,16 +2630,16 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { return false; } GT_Recipe sRecipe = GT_Recipe.GT_Recipe_Map.sArcFurnaceRecipes.addRecipe( - true, - new ItemStack[] { aInput }, - aOutputs, - null, - aChances, - new FluidStack[] { Materials.Oxygen.getGas(aDuration) }, - null, - aDuration, - Math.max(1, aEUt), - 0); + true, + new ItemStack[] { aInput }, + aOutputs, + null, + aChances, + new FluidStack[] { Materials.Oxygen.getGas(aDuration) }, + null, + aDuration, + Math.max(1, aEUt), + 0); if ((hidden) && (sRecipe != null)) { sRecipe.mHidden = true; } @@ -2701,16 +2647,16 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { if (tMaterial.mPlasma != null) { int tPlasmaAmount = (int) Math.max(1L, aDuration / (tMaterial.getMass() * 16L)); GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sPlasmaArcFurnaceRecipes.addRecipe( - true, - new ItemStack[] { aInput }, - aOutputs, - null, - aChances, - new FluidStack[] { tMaterial.getPlasma(tPlasmaAmount) }, - new FluidStack[] { tMaterial.getGas(tPlasmaAmount) }, - Math.max(1, aDuration / 16), - Math.max(1, aEUt / 3), - 0); + true, + new ItemStack[] { aInput }, + aOutputs, + null, + aChances, + new FluidStack[] { tMaterial.getPlasma(tPlasmaAmount) }, + new FluidStack[] { tMaterial.getGas(tPlasmaAmount) }, + Math.max(1, aDuration / 16), + Math.max(1, aEUt / 3), + 0); if ((hidden) && (tRecipe != null)) { tRecipe.mHidden = true; } @@ -2724,7 +2670,7 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { @Override public boolean addSimpleArcFurnaceRecipe(ItemStack aInput, FluidStack aFluidInput, ItemStack[] aOutputs, - int[] aChances, int aDuration, int aEUt) { + int[] aChances, int aDuration, int aEUt) { if ((aInput == null) || (aOutputs == null) || aFluidInput == null) { return false; } @@ -2734,16 +2680,16 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { return false; } GT_Recipe.GT_Recipe_Map.sArcFurnaceRecipes.addRecipe( - true, - new ItemStack[] { aInput }, - aOutputs, - null, - aChances, - new FluidStack[] { aFluidInput }, - null, - aDuration, - Math.max(1, aEUt), - 0); + true, + new ItemStack[] { aInput }, + aOutputs, + null, + aChances, + new FluidStack[] { aFluidInput }, + null, + aDuration, + Math.max(1, aEUt), + 0); return true; } } @@ -2752,7 +2698,7 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { @Override public boolean addPlasmaArcFurnaceRecipe(ItemStack aInput, FluidStack aFluidInput, ItemStack[] aOutputs, - int[] aChances, int aDuration, int aEUt) { + int[] aChances, int aDuration, int aEUt) { if ((aInput == null) || (aOutputs == null) || aFluidInput == null) { return false; } @@ -2762,16 +2708,16 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { return false; } GT_Recipe.GT_Recipe_Map.sPlasmaArcFurnaceRecipes.addRecipe( - true, - new ItemStack[] { aInput }, - aOutputs, - null, - aChances, - new FluidStack[] { aFluidInput }, - null, - aDuration, - Math.max(1, aEUt), - 0); + true, + new ItemStack[] { aInput }, + aOutputs, + null, + aChances, + new FluidStack[] { aFluidInput }, + null, + aDuration, + Math.max(1, aEUt), + 0); return true; } } @@ -2780,7 +2726,7 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { @Override public boolean addPlasmaArcFurnaceRecipe(ItemStack aInput, FluidStack aFluidInput, ItemStack[] aOutputs, - FluidStack aFluidOutput, int[] aChances, int aDuration, int aEUt) { + FluidStack aFluidOutput, int[] aChances, int aDuration, int aEUt) { if ((aInput == null) || (aOutputs == null) || aFluidInput == null) { return false; } @@ -2790,16 +2736,16 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { return false; } GT_Recipe.GT_Recipe_Map.sPlasmaArcFurnaceRecipes.addRecipe( - true, - new ItemStack[] { aInput }, - aOutputs, - null, - aChances, - new FluidStack[] { aFluidInput }, - new FluidStack[] { aFluidOutput }, - aDuration, - Math.max(1, aEUt), - 0); + true, + new ItemStack[] { aInput }, + aOutputs, + null, + aChances, + new FluidStack[] { aFluidInput }, + new FluidStack[] { aFluidOutput }, + aDuration, + Math.max(1, aEUt), + 0); return true; } } @@ -2808,13 +2754,13 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { @Override public boolean addPulveriserRecipe(ItemStack aInput, ItemStack[] aOutputs, int[] aChances, int aDuration, - int aEUt) { + int aEUt) { return addPulveriserRecipe(aInput, aOutputs, aChances, aDuration, aEUt, false); } @Override public boolean addPulveriserRecipe(ItemStack aInput, ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUt, - boolean hidden) { + boolean hidden) { if ((aInput == null) || (aOutputs == null)) { return false; } @@ -2824,16 +2770,16 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { return false; } GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sMaceratorRecipes.addRecipe( - true, - new ItemStack[] { aInput }, - aOutputs, - null, - aChances, - null, - null, - aDuration, - aEUt, - 0); + true, + new ItemStack[] { aInput }, + aOutputs, + null, + aChances, + null, + null, + aDuration, + aEUt, + 0); if ((hidden) && (tRecipe != null)) { tRecipe.mHidden = true; } @@ -2845,7 +2791,7 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { @Override public boolean addPyrolyseRecipe(ItemStack aInput, FluidStack aFluidInput, int intCircuit, ItemStack aOutput, - FluidStack aFluidOutput, int aDuration, int aEUt) { + FluidStack aFluidOutput, int aDuration, int aEUt) { if (aInput == null) { return false; } @@ -2853,16 +2799,16 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { return false; } GT_Recipe.GT_Recipe_Map.sPyrolyseRecipes.addRecipe( - false, - new ItemStack[] { aInput, ItemList.Circuit_Integrated.getWithDamage(0L, intCircuit) }, - new ItemStack[] { aOutput }, - null, - null, - new FluidStack[] { aFluidInput }, - new FluidStack[] { aFluidOutput }, - aDuration, - aEUt, - 0); + false, + new ItemStack[] { aInput, ItemList.Circuit_Integrated.getWithDamage(0L, intCircuit) }, + new ItemStack[] { aOutput }, + null, + null, + new FluidStack[] { aFluidInput }, + new FluidStack[] { aFluidOutput }, + aDuration, + aEUt, + 0); return true; } @@ -2874,7 +2820,7 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { @Override public boolean addCrackingRecipe(int circuitConfig, FluidStack aInput, FluidStack aInput2, FluidStack aOutput, - int aDuration, int aEUt) { + int aDuration, int aEUt) { if ((aInput == null && aInput2 == null) || (aOutput == null)) { return false; } @@ -2882,27 +2828,27 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { return false; } GT_Recipe.GT_Recipe_Map.sCrackingRecipes.addRecipe( - false, - new ItemStack[] { GT_Utility.getIntegratedCircuit(circuitConfig) }, - null, - null, - null, - new FluidStack[] { aInput, aInput2 }, - new FluidStack[] { aOutput }, - aDuration, - aEUt, - 0); + false, + new ItemStack[] { GT_Utility.getIntegratedCircuit(circuitConfig) }, + null, + null, + null, + new FluidStack[] { aInput, aInput2 }, + new FluidStack[] { aOutput }, + aDuration, + aEUt, + 0); return true; } @Override public boolean addAssemblylineRecipe(ItemStack aResearchItem, int aResearchTime, ItemStack[] aInputs, - FluidStack[] aFluidInputs, ItemStack aOutput, int aDuration, int aEUt) { + FluidStack[] aFluidInputs, ItemStack aOutput, int aDuration, int aEUt) { if ((aResearchItem == null) || (aResearchTime <= 0) - || (aInputs == null) - || (aOutput == null) - || aInputs.length > 15 - || aInputs.length < 4) { + || (aInputs == null) + || (aOutput == null) + || aInputs.length > 15 + || aInputs.length < 4) { return false; } if ((aDuration = GregTech_API.sRecipeFile.get("assemblingline", aOutput, aDuration)) <= 0) { @@ -2911,41 +2857,41 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { for (ItemStack tItem : aInputs) { if (tItem == null) { GT_FML_LOGGER.info( - "addAssemblingLineRecipe " + aResearchItem.getDisplayName() - + " --> " - + aOutput.getUnlocalizedName() - + " there is some null item in that recipe"); + "addAssemblingLineRecipe " + aResearchItem.getDisplayName() + + " --> " + + aOutput.getUnlocalizedName() + + " there is some null item in that recipe"); } } GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes.addFakeRecipe( - false, - new ItemStack[] { aResearchItem }, - new ItemStack[] { aOutput }, - new ItemStack[] { ItemList.Tool_DataStick.getWithName(1L, "Writes Research result") }, - null, - null, - aResearchTime, - 30, - -201); + false, + new ItemStack[] { aResearchItem }, + new ItemStack[] { aOutput }, + new ItemStack[] { ItemList.Tool_DataStick.getWithName(1L, "Writes Research result") }, + null, + null, + aResearchTime, + 30, + -201); GT_Recipe.GT_Recipe_Map.sAssemblylineVisualRecipes.addFakeRecipe( - false, - aInputs, - new ItemStack[] { aOutput }, - new ItemStack[] { ItemList.Tool_DataStick.getWithName(1L, "Reads Research result") }, - aFluidInputs, - null, - aDuration, - aEUt, - 0, - false); + false, + aInputs, + new ItemStack[] { aOutput }, + new ItemStack[] { ItemList.Tool_DataStick.getWithName(1L, "Reads Research result") }, + aFluidInputs, + null, + aDuration, + aEUt, + 0, + false); GT_Recipe_AssemblyLine tRecipe = new GT_Recipe_AssemblyLine( - aResearchItem, - aResearchTime, - aInputs, - aFluidInputs, - aOutput, - aDuration, - aEUt); + aResearchItem, + aResearchTime, + aInputs, + aFluidInputs, + aOutput, + aDuration, + aEUt); GT_Recipe.GT_Recipe_AssemblyLine.sAssemblylineRecipes.add(tRecipe); GT_AssemblyLineUtils.addRecipeToCache(tRecipe); return true; @@ -2953,12 +2899,12 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { @Override public boolean addAssemblylineRecipe(ItemStack aResearchItem, int aResearchTime, Object[] aInputs, - FluidStack[] aFluidInputs, ItemStack aOutput, int aDuration, int aEUt) { + FluidStack[] aFluidInputs, ItemStack aOutput, int aDuration, int aEUt) { if ((aResearchItem == null) || (aResearchTime <= 0) - || (aInputs == null) - || (aOutput == null) - || aInputs.length > 15 - || aInputs.length < 4) { + || (aInputs == null) + || (aOutput == null) + || aInputs.length > 15 + || aInputs.length < 4) { return false; } if ((aDuration = GregTech_API.sRecipeFile.get("assemblingline", aOutput, aDuration)) <= 0) { @@ -2990,11 +2936,12 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { try { // sort the output, so the hash code is stable across launches tList.sort( - Comparator.comparing( - s -> GameRegistry.findUniqueIdentifierFor(s.getItem()).modId) - .thenComparing(s -> GameRegistry.findUniqueIdentifierFor(s.getItem()).name) - .thenComparingInt(Items.feather::getDamage) - .thenComparingInt(s -> s.stackSize)); + Comparator + .comparing( + s -> GameRegistry.findUniqueIdentifierFor(s.getItem()).modId) + .thenComparing(s -> GameRegistry.findUniqueIdentifierFor(s.getItem()).name) + .thenComparingInt(Items.feather::getDamage) + .thenComparingInt(s -> s.stackSize)); int tAmount = ((Number) objs[1]).intValue(); List uList = new ArrayList<>(); for (ItemStack tStack : tList) { @@ -3012,10 +2959,10 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { } } GT_FML_LOGGER.info( - "addAssemblingLineRecipe " + aResearchItem.getDisplayName() - + " --> " - + aOutput.getUnlocalizedName() - + " there is some null item in that recipe"); + "addAssemblingLineRecipe " + aResearchItem.getDisplayName() + + " --> " + + aOutput.getUnlocalizedName() + + " there is some null item in that recipe"); } tPersistentHash = tPersistentHash * 31 + GT_Utility.persistentHash(aResearchItem, true, false); tPersistentHash = tPersistentHash * 31 + GT_Utility.persistentHash(aOutput, true, false); @@ -3027,36 +2974,36 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { tPersistentHash = tPersistentHash * 31 + aDuration; tPersistentHash = tPersistentHash * 31 + aEUt; GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes.addFakeRecipe( - false, - new ItemStack[] { aResearchItem }, - new ItemStack[] { aOutput }, - new ItemStack[] { ItemList.Tool_DataStick.getWithName(1L, "Writes Research result") }, - null, - null, - aResearchTime, - 30, - -201); + false, + new ItemStack[] { aResearchItem }, + new ItemStack[] { aOutput }, + new ItemStack[] { ItemList.Tool_DataStick.getWithName(1L, "Writes Research result") }, + null, + null, + aResearchTime, + 30, + -201); GT_Recipe.GT_Recipe_Map.sAssemblylineVisualRecipes.addFakeRecipe( - false, - tInputs, - new ItemStack[] { aOutput }, - new ItemStack[] { ItemList.Tool_DataStick.getWithName(1L, "Reads Research result") }, - aFluidInputs, - null, - aDuration, - aEUt, - 0, - tAlts, - false); + false, + tInputs, + new ItemStack[] { aOutput }, + new ItemStack[] { ItemList.Tool_DataStick.getWithName(1L, "Reads Research result") }, + aFluidInputs, + null, + aDuration, + aEUt, + 0, + tAlts, + false); GT_Recipe_AssemblyLine tRecipe = new GT_Recipe_AssemblyLine( - aResearchItem, - aResearchTime, - tInputs, - aFluidInputs, - aOutput, - aDuration, - aEUt, - tAlts); + aResearchItem, + aResearchTime, + tInputs, + aFluidInputs, + aOutput, + aDuration, + aEUt, + tAlts); tRecipe.setPersistentHash(tPersistentHash); GT_Recipe.GT_Recipe_AssemblyLine.sAssemblylineRecipes.add(tRecipe); GT_AssemblyLineUtils.addRecipeToCache(tRecipe); @@ -3065,13 +3012,13 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { @Override public boolean addCircuitAssemblerRecipe(ItemStack[] aInputs, FluidStack aFluidInput, ItemStack aOutput, - int aDuration, int aEUt) { + int aDuration, int aEUt) { return addCircuitAssemblerRecipe(aInputs, aFluidInput, aOutput, aDuration, aEUt, false); } @Override public boolean addCircuitAssemblerRecipe(ItemStack[] aInputs, FluidStack aFluidInput, ItemStack aOutput, - int aDuration, int aEUt, boolean aCleanroom) { + int aDuration, int aEUt, boolean aCleanroom) { if (this.areItemsAndFluidsBothNull(aInputs, new FluidStack[] { aFluidInput })) { return false; @@ -3091,32 +3038,27 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { for (int oreID : OreDictionary.getOreIDs(aOutput)) { if (OreDictionary.getOreName(oreID) - .startsWith("circuit")) { - return this.addCircuitAssemblerRecipeNonOredicted( - aInputs, - aFluidInput, - aOutput, - aDuration, - aEUt, - aCleanroom); + .startsWith("circuit")) { + return this + .addCircuitAssemblerRecipeNonOredicted(aInputs, aFluidInput, aOutput, aDuration, aEUt, aCleanroom); } } GT_Recipe.GT_Recipe_Map.sCircuitAssemblerRecipes.addRecipe( - true, - aInputs, - new ItemStack[] { aOutput }, - null, - new FluidStack[] { aFluidInput }, - null, - aDuration, - aEUt, - aCleanroom ? -200 : 0); + true, + aInputs, + new ItemStack[] { aOutput }, + null, + new FluidStack[] { aFluidInput }, + null, + aDuration, + aEUt, + aCleanroom ? -200 : 0); return true; } public boolean addCircuitAssemblerRecipeNonOredicted(ItemStack[] aInputs, FluidStack aFluidInput, ItemStack aOutput, - int aDuration, int aEUt, boolean aCleanroom) { + int aDuration, int aEUt, boolean aCleanroom) { if ((aInputs == null) || (aOutput == null) || aInputs.length > 6 || aInputs.length < 1) { return false; } @@ -3127,42 +3069,42 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { aCleanroom = false; } GT_Recipe.GT_Recipe_Map.sCircuitAssemblerRecipes.addRecipe( - true, - aInputs, - new ItemStack[] { aOutput }, - null, - null, - new FluidStack[] { aFluidInput }, - null, - aDuration, - aEUt, - aCleanroom ? -200 : 0); + true, + aInputs, + new ItemStack[] { aOutput }, + null, + null, + new FluidStack[] { aFluidInput }, + null, + aDuration, + aEUt, + aCleanroom ? -200 : 0); return true; } @Override public boolean addNanoForgeRecipe(ItemStack[] aInputs, FluidStack[] aFluidInputs, ItemStack[] aOutputs, - FluidStack[] aFluidOutputs, int[] aChances, int aDuration, int aEUt, int aSpecialValue) { + FluidStack[] aFluidOutputs, int[] aChances, int aDuration, int aEUt, int aSpecialValue) { if (aInputs == null || aOutputs == null || aSpecialValue == 0) return false; GT_Recipe.GT_Recipe_Map.sNanoForge.addRecipe( - new GT_Recipe( - false, - aInputs, - aOutputs, - null, - aChances, - aFluidInputs, - aFluidOutputs, - aDuration, - aEUt, - aSpecialValue)); + new GT_Recipe( + false, + aInputs, + aOutputs, + null, + aChances, + aFluidInputs, + aFluidOutputs, + aDuration, + aEUt, + aSpecialValue)); return true; } @Override public boolean addPCBFactoryRecipe(ItemStack[] aInputs, FluidStack[] aFluidInputs, ItemStack[] aOutputs, - int aDuration, int aEUt, int aSpecialValue) { + int aDuration, int aEUt, int aSpecialValue) { if (aInputs == null || aFluidInputs == null || aOutputs == null) { return false; @@ -3173,52 +3115,42 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { } GT_Recipe.GT_Recipe_Map.sPCBFactory.addRecipe( - new GT_Recipe( - false, - aInputs, - aOutputs, - null, - null, - aFluidInputs, - null, - aDuration, - aEUt, - aSpecialValue)); + new GT_Recipe(false, aInputs, aOutputs, null, null, aFluidInputs, null, aDuration, aEUt, aSpecialValue)); return true; } @Override public GT_Recipe addIC2ReactorBreederCell(ItemStack input, ItemStack output, boolean reflector, int heatStep, - int heatMultiplier, int requiredPulses) { + int heatMultiplier, int requiredPulses) { return GT_Recipe.GT_Recipe_Map.sIC2NuclearFakeRecipe.addFakeRecipe( - input, - output, - reflector ? "Neutron reflecting Breeder" : "Heat neutral Breeder", - String.format("Every %d reactor hull heat", heatStep), - String.format("increase speed by %d00%%", heatMultiplier), - String.format("Required pulses: %d", requiredPulses)); + input, + output, + reflector ? "Neutron reflecting Breeder" : "Heat neutral Breeder", + String.format("Every %d reactor hull heat", heatStep), + String.format("increase speed by %d00%%", heatMultiplier), + String.format("Required pulses: %d", requiredPulses)); } @Override public GT_Recipe addIC2ReactorFuelCell(ItemStack input, ItemStack output, boolean aMox, float aHeat, float aEnergy, - int aCells) { + int aCells) { // for the mysterious constant 5.0f, // see ic2.core.block.reactor.tileentity.TileEntityNuclearReactorElectric.getOfferedEnergy // don't ask, just accept int pulses = aCells / 2 + 1; float nukePowerMult = 5.0f * ConfigUtil.getFloat(MainConfig.get(), "balance/energy/generator/nuclear"); return GT_Recipe.GT_Recipe_Map.sIC2NuclearFakeRecipe.addFakeRecipe( - input, - output, - aMox ? "MOX Model" : "Uranium Model", - "Neutron Pulse: " + aCells, - aCells == 1 ? String.format("Heat: %.1f * n1 * (n1 + 1)", aHeat / 2f) - : String.format("Heat: %.1f * (%d + n1) * (%d + n1)", aHeat * aCells / 2f, aCells, aCells + 1), - String.format( - "Energy: %.1f + n2 * %.1f EU/t", - aEnergy * aCells * pulses * nukePowerMult, - aEnergy * nukePowerMult)); + input, + output, + aMox ? "MOX Model" : "Uranium Model", + "Neutron Pulse: " + aCells, + aCells == 1 ? String.format("Heat: %.1f * n1 * (n1 + 1)", aHeat / 2f) + : String.format("Heat: %.1f * (%d + n1) * (%d + n1)", aHeat * aCells / 2f, aCells, aCells + 1), + String.format( + "Energy: %.1f + n2 * %.1f EU/t", + aEnergy * aCells * pulses * nukePowerMult, + aEnergy * nukePowerMult)); } private boolean areItemsAndFluidsBothNull(ItemStack[] items, FluidStack[] fluids) { diff --git a/src/main/java/gregtech/common/GT_ThaumcraftCompat.java b/src/main/java/gregtech/common/GT_ThaumcraftCompat.java index 9c7eeb8f09..268f23bfe7 100644 --- a/src/main/java/gregtech/common/GT_ThaumcraftCompat.java +++ b/src/main/java/gregtech/common/GT_ThaumcraftCompat.java @@ -83,35 +83,35 @@ public class GT_ThaumcraftCompat implements IThaumcraftCompat { TC_Aspects.VOLATUS.mAspect = Aspect.FLIGHT; TC_Aspects.STRONTIO.mAspect = new Aspect( - "strontio", - 15647411, - new Aspect[] { Aspect.MIND, Aspect.ENTROPY }, - new ResourceLocation("gregtech:textures/aspects/" + TC_Aspects.STRONTIO.name() + ".png"), - 1); + "strontio", + 15647411, + new Aspect[] { Aspect.MIND, Aspect.ENTROPY }, + new ResourceLocation("gregtech:textures/aspects/" + TC_Aspects.STRONTIO.name() + ".png"), + 1); TC_Aspects.NEBRISUM.mAspect = new Aspect( - "nebrisum", - 15658622, - new Aspect[] { Aspect.MINE, Aspect.GREED }, - new ResourceLocation("gregtech:textures/aspects/" + TC_Aspects.NEBRISUM.name() + ".png"), - 1); + "nebrisum", + 15658622, + new Aspect[] { Aspect.MINE, Aspect.GREED }, + new ResourceLocation("gregtech:textures/aspects/" + TC_Aspects.NEBRISUM.name() + ".png"), + 1); TC_Aspects.ELECTRUM.mAspect = new Aspect( - "electrum", - 12644078, - new Aspect[] { Aspect.ENERGY, Aspect.MECHANISM }, - new ResourceLocation("gregtech:textures/aspects/" + TC_Aspects.ELECTRUM.name() + ".png"), - 1); + "electrum", + 12644078, + new Aspect[] { Aspect.ENERGY, Aspect.MECHANISM }, + new ResourceLocation("gregtech:textures/aspects/" + TC_Aspects.ELECTRUM.name() + ".png"), + 1); TC_Aspects.MAGNETO.mAspect = new Aspect( - "magneto", - 12632256, - new Aspect[] { Aspect.METAL, Aspect.TRAVEL }, - new ResourceLocation("gregtech:textures/aspects/" + TC_Aspects.MAGNETO.name() + ".png"), - 1); + "magneto", + 12632256, + new Aspect[] { Aspect.METAL, Aspect.TRAVEL }, + new ResourceLocation("gregtech:textures/aspects/" + TC_Aspects.MAGNETO.name() + ".png"), + 1); TC_Aspects.RADIO.mAspect = new Aspect( - "radio", - 12648384, - new Aspect[] { Aspect.LIGHT, Aspect.ENERGY }, - new ResourceLocation("gregtech:textures/aspects/" + TC_Aspects.RADIO.name() + ".png"), - 1); + "radio", + 12648384, + new Aspect[] { Aspect.LIGHT, Aspect.ENERGY }, + new ResourceLocation("gregtech:textures/aspects/" + TC_Aspects.RADIO.name() + ".png"), + 1); GT_LanguageManager.addStringLocalization("tc.aspect.strontio", "Stupidness, Incompetence"); GT_LanguageManager.addStringLocalization("tc.aspect.nebrisum", "Cheatyness, Raiding"); @@ -123,9 +123,8 @@ public class GT_ThaumcraftCompat implements IThaumcraftCompat { private static final AspectList getAspectList(List aAspects) { AspectList rAspects = new AspectList(); TC_Aspects.TC_AspectStack tAspect; - for (Iterator i$ = aAspects.iterator(); i$.hasNext(); rAspects.add( - (Aspect) tAspect.mAspect.mAspect, - (int) tAspect.mAmount)) { + for (Iterator i$ = aAspects.iterator(); i$.hasNext(); rAspects + .add((Aspect) tAspect.mAspect.mAspect, (int) tAspect.mAmount)) { tAspect = i$.next(); } return rAspects; @@ -133,8 +132,8 @@ public class GT_ThaumcraftCompat implements IThaumcraftCompat { @Override public Object addResearch(String aResearch, String aName, String aText, String[] aParentResearches, - String aCategory, ItemStack aIcon, int aComplexity, int aType, int aX, int aY, - List aAspects, ItemStack[] aResearchTriggers, Object[] aPages) { + String aCategory, ItemStack aIcon, int aComplexity, int aType, int aX, int aY, + List aAspects, ItemStack[] aResearchTriggers, Object[] aPages) { if (!GregTech_API.sRecipeFile.get(ConfigCategories.Recipes.researches, aResearch, true)) { return null; } @@ -149,13 +148,13 @@ public class GT_ThaumcraftCompat implements IThaumcraftCompat { } } ResearchItem rResearch = new ResearchItem( - aResearch, - aCategory, - getAspectList(aAspects), - aX, - aY, - aComplexity, - aIcon); + aResearch, + aCategory, + getAspectList(aAspects), + aX, + aY, + aComplexity, + aIcon); ArrayList tPages = new ArrayList<>(aPages.length); GT_LanguageManager.addStringLocalization("tc.research_name." + aResearch, aName); GT_LanguageManager.addStringLocalization("tc.research_text." + aResearch, "[GT] " + aText); @@ -217,59 +216,55 @@ public class GT_ThaumcraftCompat implements IThaumcraftCompat { @Override public Object addCrucibleRecipe(String aResearch, Object aInput, ItemStack aOutput, - List aAspects) { + List aAspects) { if ((GT_Utility.isStringInvalid(aResearch)) || (aInput == null) - || (aOutput == null) - || (aAspects == null) - || (aAspects.isEmpty())) { + || (aOutput == null) + || (aAspects == null) + || (aAspects.isEmpty())) { return null; } return ThaumcraftApi.addCrucibleRecipe( - aResearch, - GT_Utility.copyOrNull(aOutput), - ((aInput instanceof ItemStack)) || ((aInput instanceof ArrayList)) ? aInput : aInput.toString(), - getAspectList(aAspects)); + aResearch, + GT_Utility.copyOrNull(aOutput), + ((aInput instanceof ItemStack)) || ((aInput instanceof ArrayList)) ? aInput : aInput.toString(), + getAspectList(aAspects)); } @Override public Object addInfusionRecipe(String aResearch, ItemStack aMainInput, ItemStack[] aSideInputs, ItemStack aOutput, - int aInstability, List aAspects) { + int aInstability, List aAspects) { if ((GT_Utility.isStringInvalid(aResearch)) || (aMainInput == null) - || (aSideInputs == null) - || (aOutput == null) - || (aAspects == null) - || (aAspects.isEmpty())) { + || (aSideInputs == null) + || (aOutput == null) + || (aAspects == null) + || (aAspects.isEmpty())) { return null; } return ThaumcraftApi.addInfusionCraftingRecipe( - aResearch, - GT_Utility.copyOrNull(aOutput), - aInstability, - getAspectList(aAspects), - aMainInput, - aSideInputs); + aResearch, + GT_Utility.copyOrNull(aOutput), + aInstability, + getAspectList(aAspects), + aMainInput, + aSideInputs); } @Override public Object addInfusionEnchantmentRecipe(String aResearch, Enchantment aEnchantment, int aInstability, - List aAspects, ItemStack[] aSideInputs) { + List aAspects, ItemStack[] aSideInputs) { if ((GT_Utility.isStringInvalid(aResearch)) || (aSideInputs == null) - || (aAspects == null) - || (aEnchantment == null) - || (aAspects.isEmpty())) { + || (aAspects == null) + || (aEnchantment == null) + || (aAspects.isEmpty())) { return null; } - return ThaumcraftApi.addInfusionEnchantmentRecipe( - aResearch, - aEnchantment, - aInstability, - getAspectList(aAspects), - aSideInputs); + return ThaumcraftApi + .addInfusionEnchantmentRecipe(aResearch, aEnchantment, aInstability, getAspectList(aAspects), aSideInputs); } @Override public boolean registerThaumcraftAspectsToItem(ItemStack aExampleStack, List aAspects, - String aOreDict) { + String aOreDict) { if (aAspects.isEmpty()) return false; ThaumcraftApi.registerObjectTag(aOreDict, getAspectList(aAspects)); return true; @@ -277,7 +272,7 @@ public class GT_ThaumcraftCompat implements IThaumcraftCompat { @Override public boolean registerThaumcraftAspectsToItem(ItemStack aStack, List aAspects, - boolean aAdditive) { + boolean aAdditive) { if (aAspects.isEmpty()) return false; if (aAdditive) { ThaumcraftApi.registerComplexObjectTag(aStack, getAspectList(aAspects)); diff --git a/src/main/java/gregtech/common/GT_UndergroundOil.java b/src/main/java/gregtech/common/GT_UndergroundOil.java index 1372855926..f522ff5895 100644 --- a/src/main/java/gregtech/common/GT_UndergroundOil.java +++ b/src/main/java/gregtech/common/GT_UndergroundOil.java @@ -42,9 +42,9 @@ public class GT_UndergroundOil { */ public static FluidStack undergroundOilReadInformation(IGregTechTileEntity te) { return undergroundOil( - te.getWorld() - .getChunkFromBlockCoords(te.getXCoord(), te.getZCoord()), - -1); + te.getWorld() + .getChunkFromBlockCoords(te.getXCoord(), te.getZCoord()), + -1); } /** @@ -59,9 +59,9 @@ public class GT_UndergroundOil { /** @see #undergroundOil(World, int, int, float) */ public static FluidStack undergroundOil(IGregTechTileEntity te, float readOrDrainCoefficient) { return undergroundOil( - te.getWorld() - .getChunkFromBlockCoords(te.getXCoord(), te.getZCoord()), - readOrDrainCoefficient); + te.getWorld() + .getChunkFromBlockCoords(te.getXCoord(), te.getZCoord()), + readOrDrainCoefficient); } // Returns whole content for information purposes -> when drainSpeedCoefficient < 0 @@ -112,8 +112,8 @@ public class GT_UndergroundOil { chunkData.setAmount(0); } else { // get the expected current output - fluidInChunk.amount = (int) Math.floor( - chunkData.getAmount() * (double) -readOrDrainCoefficient / DIVIDER); + fluidInChunk.amount = (int) Math + .floor(chunkData.getAmount() * (double) -readOrDrainCoefficient / DIVIDER); } } return fluidInChunk; @@ -145,18 +145,17 @@ public class GT_UndergroundOil { static void migrate(ChunkDataEvent.Load e) { if (e.getData() - .hasKey("GTOIL") - && e.getData() - .hasKey("GTOILFLUID")) { + .hasKey("GTOIL") + && e.getData() + .hasKey("GTOILFLUID")) { ChunkData chunkData = STORAGE.get(e.getChunk()); Fluid fluid = chunkData.getFluid(); if (fluid != null && fluid.getID() == e.getData() - .getInteger("GTOILFLUID")) - chunkData.setAmount( - Math.min( - chunkData.getAmount(), - e.getData() - .getInteger("GTOIL"))); + .getInteger("GTOILFLUID")) chunkData.setAmount( + Math.min( + chunkData.getAmount(), + e.getData() + .getInteger("GTOIL"))); } } @@ -199,7 +198,7 @@ public class GT_UndergroundOil { @Override protected void writeElement(DataOutput output, ChunkData element, World world, int chunkX, int chunkZ) - throws IOException { + throws IOException { /* see class javadoc for explanation */ output.writeInt(element.getVeinHash()); if (element.getVeinKey() == null) return; @@ -213,7 +212,7 @@ public class GT_UndergroundOil { @Override protected GT_UndergroundOil.ChunkData readElement(DataInput input, int version, World world, int chunkX, - int chunkZ) throws IOException { + int chunkZ) throws IOException { /* see class javadoc for explanation */ if (version != 0) throw new IOException("Region file corrupted"); GT_UndergroundOil.ChunkData pristine = createElement(world, chunkX, chunkZ); @@ -226,10 +225,10 @@ public class GT_UndergroundOil { } if (hash == 0) return NIL_FLUID_STACK; return new GT_UndergroundOil.ChunkData( - amount, - GT_Mod.gregtechproxy.mUndergroundOil.GetDimension(world.provider.dimensionId) - .getUOFluid(veinKey), - veinKey); + amount, + GT_Mod.gregtechproxy.mUndergroundOil.GetDimension(world.provider.dimensionId) + .getUOFluid(veinKey), + veinKey); } @Override @@ -239,10 +238,10 @@ public class GT_UndergroundOil { int dimensionId = world.provider.dimensionId; GT_UO_Dimension dimension = GT_Mod.gregtechproxy.mUndergroundOil.GetDimension(dimensionId); return new GT_UndergroundOil.ChunkData( - pristine.getRight(), - pristine.getLeft(), - dimension.getUOFluidKey(pristine.getLeft()), - false); + pristine.getRight(), + pristine.getLeft(), + dimension.getUOFluidKey(pristine.getLeft()), + false); } private static int hash(@Nullable GT_UO_Fluid fluid) { diff --git a/src/main/java/gregtech/common/GT_Worldgen_GT_Ore_Layer.java b/src/main/java/gregtech/common/GT_Worldgen_GT_Ore_Layer.java index 0b10523f1a..3b64655f05 100644 --- a/src/main/java/gregtech/common/GT_Worldgen_GT_Ore_Layer.java +++ b/src/main/java/gregtech/common/GT_Worldgen_GT_Ore_Layer.java @@ -50,8 +50,8 @@ public class GT_Worldgen_GT_Ore_Layer extends GT_Worldgen { @Deprecated public GT_Worldgen_GT_Ore_Layer(String aName, boolean aDefault, int aMinY, int aMaxY, int aWeight, int aDensity, - int aSize, boolean aOverworld, boolean aNether, boolean aEnd, boolean GC_UNUSED1, boolean GC_UNUSED2, - boolean GC_UNUSED3, int aPrimary, int aSecondary, int aBetween, int aSporadic) { + int aSize, boolean aOverworld, boolean aNether, boolean aEnd, boolean GC_UNUSED1, boolean GC_UNUSED2, + boolean GC_UNUSED3, int aPrimary, int aSecondary, int aBetween, int aSporadic) { super(aName, sList, aDefault); this.mOverworld = GregTech_API.sWorldgenFile.get(aTextWorldgen + this.mWorldGenName, "Overworld", aOverworld); this.mNether = GregTech_API.sWorldgenFile.get(aTextWorldgen + this.mWorldGenName, "Nether", aNether); @@ -67,37 +67,22 @@ public class GT_Worldgen_GT_Ore_Layer extends GT_Worldgen { mMaxY = (short) (this.mMinY + 9); } this.mMaxY = mMaxY; - this.mWeight = ((short) GregTech_API.sWorldgenFile.get( - aTextWorldgen + this.mWorldGenName, - "RandomWeight", - aWeight)); - this.mDensity = ((short) GregTech_API.sWorldgenFile.get( - aTextWorldgen + this.mWorldGenName, - "Density", - aDensity)); - this.mSize = ((short) Math.max( - 1, - GregTech_API.sWorldgenFile.get(aTextWorldgen + this.mWorldGenName, "Size", aSize))); - this.mPrimaryMeta = ((short) GregTech_API.sWorldgenFile.get( - aTextWorldgen + this.mWorldGenName, - "OrePrimaryLayer", - aPrimary)); - this.mSecondaryMeta = ((short) GregTech_API.sWorldgenFile.get( - aTextWorldgen + this.mWorldGenName, - "OreSecondaryLayer", - aSecondary)); - this.mBetweenMeta = ((short) GregTech_API.sWorldgenFile.get( - aTextWorldgen + this.mWorldGenName, - "OreSporadiclyInbetween", - aBetween)); - this.mSporadicMeta = ((short) GregTech_API.sWorldgenFile.get( - aTextWorldgen + this.mWorldGenName, - "OreSporaticlyAround", - aSporadic)); - this.mRestrictBiome = GregTech_API.sWorldgenFile.get( - aTextWorldgen + this.mWorldGenName, - "RestrictToBiomeName", - "None"); + this.mWeight = ((short) GregTech_API.sWorldgenFile + .get(aTextWorldgen + this.mWorldGenName, "RandomWeight", aWeight)); + this.mDensity = ((short) GregTech_API.sWorldgenFile + .get(aTextWorldgen + this.mWorldGenName, "Density", aDensity)); + this.mSize = ((short) Math + .max(1, GregTech_API.sWorldgenFile.get(aTextWorldgen + this.mWorldGenName, "Size", aSize))); + this.mPrimaryMeta = ((short) GregTech_API.sWorldgenFile + .get(aTextWorldgen + this.mWorldGenName, "OrePrimaryLayer", aPrimary)); + this.mSecondaryMeta = ((short) GregTech_API.sWorldgenFile + .get(aTextWorldgen + this.mWorldGenName, "OreSecondaryLayer", aSecondary)); + this.mBetweenMeta = ((short) GregTech_API.sWorldgenFile + .get(aTextWorldgen + this.mWorldGenName, "OreSporadiclyInbetween", aBetween)); + this.mSporadicMeta = ((short) GregTech_API.sWorldgenFile + .get(aTextWorldgen + this.mWorldGenName, "OreSporaticlyAround", aSporadic)); + this.mRestrictBiome = GregTech_API.sWorldgenFile + .get(aTextWorldgen + this.mWorldGenName, "RestrictToBiomeName", "None"); if (this.mEnabled) { sWeight += this.mWeight; @@ -106,28 +91,28 @@ public class GT_Worldgen_GT_Ore_Layer extends GT_Worldgen { @Deprecated public GT_Worldgen_GT_Ore_Layer(String aName, boolean aDefault, int aMinY, int aMaxY, int aWeight, int aDensity, - int aSize, boolean aOverworld, boolean aNether, boolean aEnd, boolean GC_UNUSED1, boolean GC_UNUSED2, - boolean GC_UNUSED3, Materials aPrimary, Materials aSecondary, Materials aBetween, Materials aSporadic) { + int aSize, boolean aOverworld, boolean aNether, boolean aEnd, boolean GC_UNUSED1, boolean GC_UNUSED2, + boolean GC_UNUSED3, Materials aPrimary, Materials aSecondary, Materials aBetween, Materials aSporadic) { this( - aName, - aDefault, - aMinY, - aMaxY, - aWeight, - aDensity, - aSize, - aOverworld, - aNether, - aEnd, - aPrimary, - aSecondary, - aBetween, - aSporadic); + aName, + aDefault, + aMinY, + aMaxY, + aWeight, + aDensity, + aSize, + aOverworld, + aNether, + aEnd, + aPrimary, + aSecondary, + aBetween, + aSporadic); } public GT_Worldgen_GT_Ore_Layer(String aName, boolean aDefault, int aMinY, int aMaxY, int aWeight, int aDensity, - int aSize, boolean aOverworld, boolean aNether, boolean aEnd, Materials aPrimary, Materials aSecondary, - Materials aBetween, Materials aSporadic) { + int aSize, boolean aOverworld, boolean aNether, boolean aEnd, Materials aPrimary, Materials aSecondary, + Materials aBetween, Materials aSporadic) { super(aName, sList, aDefault); this.mOverworld = GregTech_API.sWorldgenFile.get(aTextWorldgen + this.mWorldGenName, "Overworld", aOverworld); this.mNether = GregTech_API.sWorldgenFile.get(aTextWorldgen + this.mWorldGenName, "Nether", aNether); @@ -140,37 +125,22 @@ public class GT_Worldgen_GT_Ore_Layer extends GT_Worldgen { mMaxY = (short) (this.mMinY + 9); } this.mMaxY = mMaxY; - this.mWeight = ((short) GregTech_API.sWorldgenFile.get( - aTextWorldgen + this.mWorldGenName, - "RandomWeight", - aWeight)); - this.mDensity = ((short) GregTech_API.sWorldgenFile.get( - aTextWorldgen + this.mWorldGenName, - "Density", - aDensity)); - this.mSize = ((short) Math.max( - 1, - GregTech_API.sWorldgenFile.get(aTextWorldgen + this.mWorldGenName, "Size", aSize))); - this.mPrimaryMeta = ((short) GregTech_API.sWorldgenFile.get( - aTextWorldgen + this.mWorldGenName, - "OrePrimaryLayer", - aPrimary.mMetaItemSubID)); - this.mSecondaryMeta = ((short) GregTech_API.sWorldgenFile.get( - aTextWorldgen + this.mWorldGenName, - "OreSecondaryLayer", - aSecondary.mMetaItemSubID)); - this.mBetweenMeta = ((short) GregTech_API.sWorldgenFile.get( - aTextWorldgen + this.mWorldGenName, - "OreSporadiclyInbetween", - aBetween.mMetaItemSubID)); - this.mSporadicMeta = ((short) GregTech_API.sWorldgenFile.get( - aTextWorldgen + this.mWorldGenName, - "OreSporaticlyAround", - aSporadic.mMetaItemSubID)); - this.mRestrictBiome = GregTech_API.sWorldgenFile.get( - aTextWorldgen + this.mWorldGenName, - "RestrictToBiomeName", - "None"); + this.mWeight = ((short) GregTech_API.sWorldgenFile + .get(aTextWorldgen + this.mWorldGenName, "RandomWeight", aWeight)); + this.mDensity = ((short) GregTech_API.sWorldgenFile + .get(aTextWorldgen + this.mWorldGenName, "Density", aDensity)); + this.mSize = ((short) Math + .max(1, GregTech_API.sWorldgenFile.get(aTextWorldgen + this.mWorldGenName, "Size", aSize))); + this.mPrimaryMeta = ((short) GregTech_API.sWorldgenFile + .get(aTextWorldgen + this.mWorldGenName, "OrePrimaryLayer", aPrimary.mMetaItemSubID)); + this.mSecondaryMeta = ((short) GregTech_API.sWorldgenFile + .get(aTextWorldgen + this.mWorldGenName, "OreSecondaryLayer", aSecondary.mMetaItemSubID)); + this.mBetweenMeta = ((short) GregTech_API.sWorldgenFile + .get(aTextWorldgen + this.mWorldGenName, "OreSporadiclyInbetween", aBetween.mMetaItemSubID)); + this.mSporadicMeta = ((short) GregTech_API.sWorldgenFile + .get(aTextWorldgen + this.mWorldGenName, "OreSporaticlyAround", aSporadic.mMetaItemSubID)); + this.mRestrictBiome = GregTech_API.sWorldgenFile + .get(aTextWorldgen + this.mWorldGenName, "RestrictToBiomeName", "None"); if (this.mEnabled) { sWeight += this.mWeight; @@ -179,17 +149,17 @@ public class GT_Worldgen_GT_Ore_Layer extends GT_Worldgen { @Override public int executeWorldgenChunkified(World aWorld, Random aRandom, String aBiome, int aDimensionType, int aChunkX, - int aChunkZ, int aSeedX, int aSeedZ, IChunkProvider aChunkGenerator, IChunkProvider aChunkProvider) { + int aChunkZ, int aSeedX, int aSeedZ, IChunkProvider aChunkGenerator, IChunkProvider aChunkProvider) { if (mWorldGenName.equals("NoOresInVein")) { if (debugOrevein) GT_Log.out.println(" NoOresInVein"); // This is a special empty orevein return ORE_PLACED; } if (!isGenerationAllowed( - aWorld, - aDimensionType, - ((aDimensionType == -1) && (this.mNether)) || ((aDimensionType == 0) && (this.mOverworld)) - || ((aDimensionType == 1) && (this.mEnd)) ? aDimensionType : aDimensionType ^ 0xFFFFFFFF)) { + aWorld, + aDimensionType, + ((aDimensionType == -1) && (this.mNether)) || ((aDimensionType == 0) && (this.mOverworld)) + || ((aDimensionType == 1) && (this.mEnd)) ? aDimensionType : aDimensionType ^ 0xFFFFFFFF)) { /* * // Debug code, but spams log if (debugOrevein) { GT_Log.out.println( "Wrong dimension" ); } */ @@ -225,10 +195,10 @@ public class GT_Worldgen_GT_Ore_Layer extends GT_Worldgen { if (wX >= eX) { // No overlap between orevein and this chunk exists in X if (tBlock.isReplaceableOreGen(aWorld, aChunkX + 7, tMinY, aChunkZ + 9, Blocks.stone) - || tBlock.isReplaceableOreGen(aWorld, aChunkX + 7, tMinY, aChunkZ + 9, Blocks.netherrack) - || tBlock.isReplaceableOreGen(aWorld, aChunkX + 7, tMinY, aChunkZ + 9, Blocks.end_stone) - || tBlock.isReplaceableOreGen(aWorld, aChunkX + 7, tMinY, aChunkZ + 9, GregTech_API.sBlockGranites) - || tBlock.isReplaceableOreGen(aWorld, aChunkX + 7, tMinY, aChunkZ + 9, GregTech_API.sBlockStones)) { + || tBlock.isReplaceableOreGen(aWorld, aChunkX + 7, tMinY, aChunkZ + 9, Blocks.netherrack) + || tBlock.isReplaceableOreGen(aWorld, aChunkX + 7, tMinY, aChunkZ + 9, Blocks.end_stone) + || tBlock.isReplaceableOreGen(aWorld, aChunkX + 7, tMinY, aChunkZ + 9, GregTech_API.sBlockGranites) + || tBlock.isReplaceableOreGen(aWorld, aChunkX + 7, tMinY, aChunkZ + 9, GregTech_API.sBlockStones)) { // Didn't reach, but could have placed. Save orevein for future use. return NO_OVERLAP; } else { @@ -244,10 +214,10 @@ public class GT_Worldgen_GT_Ore_Layer extends GT_Worldgen { int sZ = Math.min(sZVein, aChunkZ + 2 + 16); if (nZ >= sZ) { // No overlap between orevein and this chunk exists in Z if (tBlock.isReplaceableOreGen(aWorld, aChunkX + 7, tMinY, aChunkZ + 9, Blocks.stone) - || tBlock.isReplaceableOreGen(aWorld, aChunkX + 7, tMinY, aChunkZ + 9, Blocks.netherrack) - || tBlock.isReplaceableOreGen(aWorld, aChunkX + 7, tMinY, aChunkZ + 9, Blocks.end_stone) - || tBlock.isReplaceableOreGen(aWorld, aChunkX + 7, tMinY, aChunkZ + 9, GregTech_API.sBlockGranites) - || tBlock.isReplaceableOreGen(aWorld, aChunkX + 7, tMinY, aChunkZ + 9, GregTech_API.sBlockStones)) { + || tBlock.isReplaceableOreGen(aWorld, aChunkX + 7, tMinY, aChunkZ + 9, Blocks.netherrack) + || tBlock.isReplaceableOreGen(aWorld, aChunkX + 7, tMinY, aChunkZ + 9, Blocks.end_stone) + || tBlock.isReplaceableOreGen(aWorld, aChunkX + 7, tMinY, aChunkZ + 9, GregTech_API.sBlockGranites) + || tBlock.isReplaceableOreGen(aWorld, aChunkX + 7, tMinY, aChunkZ + 9, GregTech_API.sBlockStones)) { // Didn't reach, but could have placed. Save orevein for future use. return NO_OVERLAP; } else { @@ -258,26 +228,26 @@ public class GT_Worldgen_GT_Ore_Layer extends GT_Worldgen { if (debugOrevein) { GT_Log.out.print( - "Trying Orevein:" + this.mWorldGenName - + " Dimension=" - + tDimensionName - + " mX=" - + aChunkX / 16 - + " mZ=" - + aChunkZ / 16 - + " oreseedX=" - + aSeedX / 16 - + " oreseedZ=" - + aSeedZ / 16 - + " cY=" - + tMinY); + "Trying Orevein:" + this.mWorldGenName + + " Dimension=" + + tDimensionName + + " mX=" + + aChunkX / 16 + + " mZ=" + + aChunkZ / 16 + + " oreseedX=" + + aSeedX / 16 + + " oreseedZ=" + + aSeedZ / 16 + + " cY=" + + tMinY); } // Adjust the density down the more chunks we are away from the oreseed. The 5 chunks surrounding the seed // should always be max density due to truncation of Math.sqrt(). int localDensity = Math.max( - 1, - this.mDensity / ((int) Math.sqrt( - 2 + Math.pow(aChunkX / 16 - aSeedX / 16, 2) + Math.pow(aChunkZ / 16 - aSeedZ / 16, 2)))); + 1, + this.mDensity / ((int) Math + .sqrt(2 + Math.pow(aChunkX / 16 - aSeedX / 16, 2) + Math.pow(aChunkZ / 16 - aSeedZ / 16, 2)))); // To allow for early exit due to no ore placed in the bottom layer (probably because we are in the sky), unroll // 1 pass through the loop @@ -285,37 +255,23 @@ public class GT_Worldgen_GT_Ore_Layer extends GT_Worldgen { // Layer -1 Secondary and Sporadic int level = tMinY - 1; // Dunno why, but the first layer is actually played one below tMinY. Go figure. for (int tX = wX; tX < eX; tX++) { - int placeX = Math.max( - 1, - Math.max(MathHelper.abs_int(wXVein - tX), MathHelper.abs_int(eXVein - tX)) / localDensity); + int placeX = Math + .max(1, Math.max(MathHelper.abs_int(wXVein - tX), MathHelper.abs_int(eXVein - tX)) / localDensity); for (int tZ = nZ; tZ < sZ; tZ++) { - int placeZ = Math.max( - 1, - Math.max(MathHelper.abs_int(sZVein - tZ), MathHelper.abs_int(nZVein - tZ)) / localDensity); + int placeZ = Math + .max(1, Math.max(MathHelper.abs_int(sZVein - tZ), MathHelper.abs_int(nZVein - tZ)) / localDensity); if (((aRandom.nextInt(placeZ) == 0) || (aRandom.nextInt(placeX) == 0)) && (this.mSecondaryMeta > 0)) { - if (GT_TileEntity_Ores.setOreBlock( - aWorld, - tX, - level, - tZ, - this.mSecondaryMeta, - false, - isUnderdark)) { + if (GT_TileEntity_Ores + .setOreBlock(aWorld, tX, level, tZ, this.mSecondaryMeta, false, isUnderdark)) { placeCount[1]++; } } else if ((aRandom.nextInt(7) == 0) && ((aRandom.nextInt(placeZ) == 0) || (aRandom.nextInt(placeX) == 0)) - && (this.mSporadicMeta > 0)) { // Sporadics are reduce by 1/7 to compensate - if (GT_TileEntity_Ores.setOreBlock( - aWorld, - tX, - level, - tZ, - this.mSporadicMeta, - false, - isUnderdark)) - placeCount[3]++; - } + && (this.mSporadicMeta > 0)) { // Sporadics are reduce by 1/7 to compensate + if (GT_TileEntity_Ores + .setOreBlock(aWorld, tX, level, tZ, this.mSporadicMeta, false, isUnderdark)) + placeCount[3]++; + } } } if ((placeCount[1] + placeCount[3]) == 0) { @@ -325,252 +281,173 @@ public class GT_Worldgen_GT_Ore_Layer extends GT_Worldgen { // Layers 0 & 1 Secondary and Sporadic for (level = tMinY; level < (tMinY + 2); level++) { for (int tX = wX; tX < eX; tX++) { - int placeX = Math.max( - 1, - Math.max(MathHelper.abs_int(wXVein - tX), MathHelper.abs_int(eXVein - tX)) / localDensity); + int placeX = Math + .max(1, Math.max(MathHelper.abs_int(wXVein - tX), MathHelper.abs_int(eXVein - tX)) / localDensity); for (int tZ = nZ; tZ < sZ; tZ++) { int placeZ = Math.max( - 1, - Math.max(MathHelper.abs_int(sZVein - tZ), MathHelper.abs_int(nZVein - tZ)) / localDensity); + 1, + Math.max(MathHelper.abs_int(sZVein - tZ), MathHelper.abs_int(nZVein - tZ)) / localDensity); if (((aRandom.nextInt(placeZ) == 0) || (aRandom.nextInt(placeX) == 0)) - && (this.mSecondaryMeta > 0)) { - if (GT_TileEntity_Ores.setOreBlock( - aWorld, - tX, - level, - tZ, - this.mSecondaryMeta, - false, - isUnderdark)) { + && (this.mSecondaryMeta > 0)) { + if (GT_TileEntity_Ores + .setOreBlock(aWorld, tX, level, tZ, this.mSecondaryMeta, false, isUnderdark)) { placeCount[1]++; } } else if ((aRandom.nextInt(7) == 0) - && ((aRandom.nextInt(placeZ) == 0) || (aRandom.nextInt(placeX) == 0)) - && (this.mSporadicMeta > 0)) { // Sporadics are reduce by 1/7 to compensate - if (GT_TileEntity_Ores.setOreBlock( - aWorld, - tX, - level, - tZ, - this.mSporadicMeta, - false, - isUnderdark)) - placeCount[3]++; - } + && ((aRandom.nextInt(placeZ) == 0) || (aRandom.nextInt(placeX) == 0)) + && (this.mSporadicMeta > 0)) { // Sporadics are reduce by 1/7 to compensate + if (GT_TileEntity_Ores + .setOreBlock(aWorld, tX, level, tZ, this.mSporadicMeta, false, isUnderdark)) + placeCount[3]++; + } } } } // Layer 2 is Secondary, in-between, and sporadic for (int tX = wX; tX < eX; tX++) { - int placeX = Math.max( - 1, - Math.max(MathHelper.abs_int(wXVein - tX), MathHelper.abs_int(eXVein - tX)) / localDensity); + int placeX = Math + .max(1, Math.max(MathHelper.abs_int(wXVein - tX), MathHelper.abs_int(eXVein - tX)) / localDensity); for (int tZ = nZ; tZ < sZ; tZ++) { - int placeZ = Math.max( - 1, - Math.max(MathHelper.abs_int(sZVein - tZ), MathHelper.abs_int(nZVein - tZ)) / localDensity); + int placeZ = Math + .max(1, Math.max(MathHelper.abs_int(sZVein - tZ), MathHelper.abs_int(nZVein - tZ)) / localDensity); if ((aRandom.nextInt(2) == 0) && ((aRandom.nextInt(placeZ) == 0) || (aRandom.nextInt(placeX) == 0)) - && (this.mBetweenMeta > 0)) { // Between are reduce by 1/2 to compensate + && (this.mBetweenMeta > 0)) { // Between are reduce by 1/2 to compensate if (GT_TileEntity_Ores.setOreBlock(aWorld, tX, level, tZ, this.mBetweenMeta, false, isUnderdark)) { placeCount[2]++; } } else if (((aRandom.nextInt(placeZ) == 0) || (aRandom.nextInt(placeX) == 0)) - && (this.mSecondaryMeta > 0)) { - if (GT_TileEntity_Ores.setOreBlock( - aWorld, - tX, - level, - tZ, - this.mSecondaryMeta, - false, - isUnderdark)) { - placeCount[1]++; - } - } else + && (this.mSecondaryMeta > 0)) { + if (GT_TileEntity_Ores + .setOreBlock(aWorld, tX, level, tZ, this.mSecondaryMeta, false, isUnderdark)) { + placeCount[1]++; + } + } else if ((aRandom.nextInt(7) == 0) && ((aRandom.nextInt(placeZ) == 0) || (aRandom.nextInt(placeX) == 0)) - && (this.mSporadicMeta > 0)) { // Sporadics are reduce by 1/7 to compensate - if (GT_TileEntity_Ores.setOreBlock( - aWorld, - tX, - level, - tZ, - this.mSporadicMeta, - false, - isUnderdark)) - placeCount[3]++; - } + && (this.mSporadicMeta > 0)) { // Sporadics are reduce by 1/7 to compensate + if (GT_TileEntity_Ores + .setOreBlock(aWorld, tX, level, tZ, this.mSporadicMeta, false, isUnderdark)) + placeCount[3]++; + } } } level++; // Increment level to next layer // Layer 3 is In-between, and sporadic for (int tX = wX; tX < eX; tX++) { - int placeX = Math.max( - 1, - Math.max(MathHelper.abs_int(wXVein - tX), MathHelper.abs_int(eXVein - tX)) / localDensity); + int placeX = Math + .max(1, Math.max(MathHelper.abs_int(wXVein - tX), MathHelper.abs_int(eXVein - tX)) / localDensity); for (int tZ = nZ; tZ < sZ; tZ++) { - int placeZ = Math.max( - 1, - Math.max(MathHelper.abs_int(sZVein - tZ), MathHelper.abs_int(nZVein - tZ)) / localDensity); + int placeZ = Math + .max(1, Math.max(MathHelper.abs_int(sZVein - tZ), MathHelper.abs_int(nZVein - tZ)) / localDensity); if ((aRandom.nextInt(2) == 0) && ((aRandom.nextInt(placeZ) == 0) || (aRandom.nextInt(placeX) == 0)) - && (this.mBetweenMeta > 0)) { // Between are reduce by 1/2 to compensate + && (this.mBetweenMeta > 0)) { // Between are reduce by 1/2 to compensate if (GT_TileEntity_Ores.setOreBlock(aWorld, tX, level, tZ, this.mBetweenMeta, false, isUnderdark)) { placeCount[2]++; } } else if ((aRandom.nextInt(7) == 0) && ((aRandom.nextInt(placeZ) == 0) || (aRandom.nextInt(placeX) == 0)) - && (this.mSporadicMeta > 0)) { // Sporadics are reduce by 1/7 to compensate - if (GT_TileEntity_Ores.setOreBlock( - aWorld, - tX, - level, - tZ, - this.mSporadicMeta, - false, - isUnderdark)) - placeCount[3]++; - } + && (this.mSporadicMeta > 0)) { // Sporadics are reduce by 1/7 to compensate + if (GT_TileEntity_Ores + .setOreBlock(aWorld, tX, level, tZ, this.mSporadicMeta, false, isUnderdark)) + placeCount[3]++; + } } } level++; // Increment level to next layer // Layer 4 is In-between, Primary and sporadic for (int tX = wX; tX < eX; tX++) { - int placeX = Math.max( - 1, - Math.max(MathHelper.abs_int(wXVein - tX), MathHelper.abs_int(eXVein - tX)) / localDensity); + int placeX = Math + .max(1, Math.max(MathHelper.abs_int(wXVein - tX), MathHelper.abs_int(eXVein - tX)) / localDensity); for (int tZ = nZ; tZ < sZ; tZ++) { - int placeZ = Math.max( - 1, - Math.max(MathHelper.abs_int(sZVein - tZ), MathHelper.abs_int(nZVein - tZ)) / localDensity); + int placeZ = Math + .max(1, Math.max(MathHelper.abs_int(sZVein - tZ), MathHelper.abs_int(nZVein - tZ)) / localDensity); if ((aRandom.nextInt(2) == 0) && ((aRandom.nextInt(placeZ) == 0) || (aRandom.nextInt(placeX) == 0)) - && (this.mBetweenMeta > 0)) { // Between are reduce by 1/2 to compensate + && (this.mBetweenMeta > 0)) { // Between are reduce by 1/2 to compensate if (GT_TileEntity_Ores.setOreBlock(aWorld, tX, level, tZ, this.mBetweenMeta, false, isUnderdark)) { placeCount[2]++; } } else if (((aRandom.nextInt(placeZ) == 0) || (aRandom.nextInt(placeX) == 0)) && (this.mPrimaryMeta > 0)) { - if (GT_TileEntity_Ores.setOreBlock( - aWorld, - tX, - level, - tZ, - this.mPrimaryMeta, - false, - isUnderdark)) { + if (GT_TileEntity_Ores + .setOreBlock(aWorld, tX, level, tZ, this.mPrimaryMeta, false, isUnderdark)) { placeCount[1]++; } } else if ((aRandom.nextInt(7) == 0) - && ((aRandom.nextInt(placeZ) == 0) || (aRandom.nextInt(placeX) == 0)) - && (this.mSporadicMeta > 0)) { // Sporadics are reduce by 1/7 to compensate - if (GT_TileEntity_Ores.setOreBlock( - aWorld, - tX, - level, - tZ, - this.mSporadicMeta, - false, - isUnderdark)) - placeCount[3]++; - } + && ((aRandom.nextInt(placeZ) == 0) || (aRandom.nextInt(placeX) == 0)) + && (this.mSporadicMeta > 0)) { // Sporadics are reduce by 1/7 to compensate + if (GT_TileEntity_Ores + .setOreBlock(aWorld, tX, level, tZ, this.mSporadicMeta, false, isUnderdark)) + placeCount[3]++; + } } } level++; // Increment level to next layer // Layer 5 is In-between, Primary and sporadic for (int tX = wX; tX < eX; tX++) { - int placeX = Math.max( - 1, - Math.max(MathHelper.abs_int(wXVein - tX), MathHelper.abs_int(eXVein - tX)) / localDensity); + int placeX = Math + .max(1, Math.max(MathHelper.abs_int(wXVein - tX), MathHelper.abs_int(eXVein - tX)) / localDensity); for (int tZ = nZ; tZ < sZ; tZ++) { - int placeZ = Math.max( - 1, - Math.max(MathHelper.abs_int(sZVein - tZ), MathHelper.abs_int(nZVein - tZ)) / localDensity); + int placeZ = Math + .max(1, Math.max(MathHelper.abs_int(sZVein - tZ), MathHelper.abs_int(nZVein - tZ)) / localDensity); if ((aRandom.nextInt(2) == 0) && ((aRandom.nextInt(placeZ) == 0) || (aRandom.nextInt(placeX) == 0)) - && (this.mBetweenMeta > 0)) { // Between are reduce by 1/2 to compensate + && (this.mBetweenMeta > 0)) { // Between are reduce by 1/2 to compensate if (GT_TileEntity_Ores.setOreBlock(aWorld, tX, level, tZ, this.mBetweenMeta, false, isUnderdark)) { placeCount[2]++; } } else if (((aRandom.nextInt(placeZ) == 0) || (aRandom.nextInt(placeX) == 0)) && (this.mPrimaryMeta > 0)) { - if (GT_TileEntity_Ores.setOreBlock( - aWorld, - tX, - level, - tZ, - this.mPrimaryMeta, - false, - isUnderdark)) { + if (GT_TileEntity_Ores + .setOreBlock(aWorld, tX, level, tZ, this.mPrimaryMeta, false, isUnderdark)) { placeCount[1]++; } } else if ((aRandom.nextInt(7) == 0) - && ((aRandom.nextInt(placeZ) == 0) || (aRandom.nextInt(placeX) == 0)) - && (this.mSporadicMeta > 0)) { // Sporadics are reduce by 1/7 to compensate - if (GT_TileEntity_Ores.setOreBlock( - aWorld, - tX, - level, - tZ, - this.mSporadicMeta, - false, - isUnderdark)) - placeCount[3]++; - } + && ((aRandom.nextInt(placeZ) == 0) || (aRandom.nextInt(placeX) == 0)) + && (this.mSporadicMeta > 0)) { // Sporadics are reduce by 1/7 to compensate + if (GT_TileEntity_Ores + .setOreBlock(aWorld, tX, level, tZ, this.mSporadicMeta, false, isUnderdark)) + placeCount[3]++; + } } } level++; // Increment level to next layer // Layer 6 is Primary and sporadic for (int tX = wX; tX < eX; tX++) { - int placeX = Math.max( - 1, - Math.max(MathHelper.abs_int(wXVein - tX), MathHelper.abs_int(eXVein - tX)) / localDensity); + int placeX = Math + .max(1, Math.max(MathHelper.abs_int(wXVein - tX), MathHelper.abs_int(eXVein - tX)) / localDensity); for (int tZ = nZ; tZ < sZ; tZ++) { - int placeZ = Math.max( - 1, - Math.max(MathHelper.abs_int(sZVein - tZ), MathHelper.abs_int(nZVein - tZ)) / localDensity); + int placeZ = Math + .max(1, Math.max(MathHelper.abs_int(sZVein - tZ), MathHelper.abs_int(nZVein - tZ)) / localDensity); if (((aRandom.nextInt(placeZ) == 0) || (aRandom.nextInt(placeX) == 0)) && (this.mPrimaryMeta > 0)) { if (GT_TileEntity_Ores.setOreBlock(aWorld, tX, level, tZ, this.mPrimaryMeta, false, isUnderdark)) { placeCount[1]++; } } else if ((aRandom.nextInt(7) == 0) && ((aRandom.nextInt(placeZ) == 0) || (aRandom.nextInt(placeX) == 0)) - && (this.mSporadicMeta > 0)) { // Sporadics are reduce by 1/7 to compensate - if (GT_TileEntity_Ores.setOreBlock( - aWorld, - tX, - level, - tZ, - this.mSporadicMeta, - false, - isUnderdark)) - placeCount[3]++; - } + && (this.mSporadicMeta > 0)) { // Sporadics are reduce by 1/7 to compensate + if (GT_TileEntity_Ores + .setOreBlock(aWorld, tX, level, tZ, this.mSporadicMeta, false, isUnderdark)) + placeCount[3]++; + } } } level++; // Increment level to next layer // Layer 7 is Primary and sporadic for (int tX = wX; tX < eX; tX++) { - int placeX = Math.max( - 1, - Math.max(MathHelper.abs_int(wXVein - tX), MathHelper.abs_int(eXVein - tX)) / localDensity); + int placeX = Math + .max(1, Math.max(MathHelper.abs_int(wXVein - tX), MathHelper.abs_int(eXVein - tX)) / localDensity); for (int tZ = nZ; tZ < sZ; tZ++) { - int placeZ = Math.max( - 1, - Math.max(MathHelper.abs_int(sZVein - tZ), MathHelper.abs_int(nZVein - tZ)) / localDensity); + int placeZ = Math + .max(1, Math.max(MathHelper.abs_int(sZVein - tZ), MathHelper.abs_int(nZVein - tZ)) / localDensity); if (((aRandom.nextInt(placeZ) == 0) || (aRandom.nextInt(placeX) == 0)) && (this.mPrimaryMeta > 0)) { if (GT_TileEntity_Ores.setOreBlock(aWorld, tX, level, tZ, this.mPrimaryMeta, false, isUnderdark)) { placeCount[1]++; } } else if ((aRandom.nextInt(7) == 0) && ((aRandom.nextInt(placeZ) == 0) || (aRandom.nextInt(placeX) == 0)) - && (this.mSporadicMeta > 0)) { // Sporadics are reduce by 1/7 to compensate - if (GT_TileEntity_Ores.setOreBlock( - aWorld, - tX, - level, - tZ, - this.mSporadicMeta, - false, - isUnderdark)) - placeCount[3]++; - } + && (this.mSporadicMeta > 0)) { // Sporadics are reduce by 1/7 to compensate + if (GT_TileEntity_Ores + .setOreBlock(aWorld, tX, level, tZ, this.mSporadicMeta, false, isUnderdark)) + placeCount[3]++; + } } } // Place small ores for the vein @@ -602,25 +479,25 @@ public class GT_Worldgen_GT_Ore_Layer extends GT_Worldgen { } if (debugOrevein) { GT_Log.out.println( - " wXVein" + wXVein - + " eXVein" - + eXVein - + " nZVein" - + nZVein - + " sZVein" - + sZVein - + " locDen=" - + localDensity - + " Den=" - + this.mDensity - + " Sec=" - + placeCount[1] - + " Spo=" - + placeCount[3] - + " Bet=" - + placeCount[2] - + " Pri=" - + placeCount[0]); + " wXVein" + wXVein + + " eXVein" + + eXVein + + " nZVein" + + nZVein + + " sZVein" + + sZVein + + " locDen=" + + localDensity + + " Den=" + + this.mDensity + + " Sec=" + + placeCount[1] + + " Spo=" + + placeCount[3] + + " Bet=" + + placeCount[2] + + " Pri=" + + placeCount[0]); } // Something (at least the bottom layer must have 1 block) must have been placed, return true return ORE_PLACED; diff --git a/src/main/java/gregtech/common/GT_Worldgen_GT_Ore_SmallPieces.java b/src/main/java/gregtech/common/GT_Worldgen_GT_Ore_SmallPieces.java index fb44948805..5a461dab9c 100644 --- a/src/main/java/gregtech/common/GT_Worldgen_GT_Ore_SmallPieces.java +++ b/src/main/java/gregtech/common/GT_Worldgen_GT_Ore_SmallPieces.java @@ -30,59 +30,53 @@ public class GT_Worldgen_GT_Ore_SmallPieces extends GT_Worldgen { // TODO CHECK IF INSTANTIATION IS CORRECT public GT_Worldgen_GT_Ore_SmallPieces(String aName, boolean aDefault, int aMinY, int aMaxY, int aAmount, - boolean aOverworld, boolean aNether, boolean aEnd, Materials aPrimary) { + boolean aOverworld, boolean aNether, boolean aEnd, Materials aPrimary) { super(aName, GregTech_API.sWorldgenList, aDefault); this.mOverworld = GregTech_API.sWorldgenFile.get(aTextWorldgen + this.mWorldGenName, "Overworld", aOverworld); this.mNether = GregTech_API.sWorldgenFile.get(aTextWorldgen + this.mWorldGenName, "Nether", aNether); this.mEnd = GregTech_API.sWorldgenFile.get(aTextWorldgen + this.mWorldGenName, "TheEnd", aEnd); this.mMinY = ((short) GregTech_API.sWorldgenFile.get(aTextWorldgen + this.mWorldGenName, "MinHeight", aMinY)); this.mMaxY = ((short) Math.max( - this.mMinY + 1, - GregTech_API.sWorldgenFile.get(aTextWorldgen + this.mWorldGenName, "MaxHeight", aMaxY))); - this.mAmount = ((short) Math.max( - 1, - GregTech_API.sWorldgenFile.get(aTextWorldgen + this.mWorldGenName, "Amount", aAmount))); - this.mMeta = ((short) GregTech_API.sWorldgenFile.get( - aTextWorldgen + this.mWorldGenName, - "Ore", - aPrimary.mMetaItemSubID)); + this.mMinY + 1, + GregTech_API.sWorldgenFile.get(aTextWorldgen + this.mWorldGenName, "MaxHeight", aMaxY))); + this.mAmount = ((short) Math + .max(1, GregTech_API.sWorldgenFile.get(aTextWorldgen + this.mWorldGenName, "Amount", aAmount))); + this.mMeta = ((short) GregTech_API.sWorldgenFile + .get(aTextWorldgen + this.mWorldGenName, "Ore", aPrimary.mMetaItemSubID)); this.mBiome = GregTech_API.sWorldgenFile.get(aTextWorldgen + this.mWorldGenName, "BiomeName", "None"); sList.add(this); } public GT_Worldgen_GT_Ore_SmallPieces(String aName, boolean aDefault, int aMinY, int aMaxY, int aAmount, - boolean aOverworld, boolean aNether, boolean aEnd, boolean GC_UNUSED1, boolean GC_UNUSED2, - boolean GC_UNUSED3, Materials aPrimary) { + boolean aOverworld, boolean aNether, boolean aEnd, boolean GC_UNUSED1, boolean GC_UNUSED2, boolean GC_UNUSED3, + Materials aPrimary) { super(aName, GregTech_API.sWorldgenList, aDefault); this.mOverworld = GregTech_API.sWorldgenFile.get(aTextWorldgen + this.mWorldGenName, "Overworld", aOverworld); this.mNether = GregTech_API.sWorldgenFile.get(aTextWorldgen + this.mWorldGenName, "Nether", aNether); this.mEnd = GregTech_API.sWorldgenFile.get(aTextWorldgen + this.mWorldGenName, "TheEnd", aEnd); this.mMinY = ((short) GregTech_API.sWorldgenFile.get(aTextWorldgen + this.mWorldGenName, "MinHeight", aMinY)); this.mMaxY = ((short) Math.max( - this.mMinY + 1, - GregTech_API.sWorldgenFile.get(aTextWorldgen + this.mWorldGenName, "MaxHeight", aMaxY))); - this.mAmount = ((short) Math.max( - 1, - GregTech_API.sWorldgenFile.get(aTextWorldgen + this.mWorldGenName, "Amount", aAmount))); - this.mMeta = ((short) GregTech_API.sWorldgenFile.get( - aTextWorldgen + this.mWorldGenName, - "Ore", - aPrimary.mMetaItemSubID)); + this.mMinY + 1, + GregTech_API.sWorldgenFile.get(aTextWorldgen + this.mWorldGenName, "MaxHeight", aMaxY))); + this.mAmount = ((short) Math + .max(1, GregTech_API.sWorldgenFile.get(aTextWorldgen + this.mWorldGenName, "Amount", aAmount))); + this.mMeta = ((short) GregTech_API.sWorldgenFile + .get(aTextWorldgen + this.mWorldGenName, "Ore", aPrimary.mMetaItemSubID)); this.mBiome = GregTech_API.sWorldgenFile.get(aTextWorldgen + this.mWorldGenName, "BiomeName", "None"); sList.add(this); } @Override public boolean executeWorldgen(World aWorld, Random aRandom, String aBiome, int aDimensionType, int aChunkX, - int aChunkZ, IChunkProvider aChunkGenerator, IChunkProvider aChunkProvider) { + int aChunkZ, IChunkProvider aChunkGenerator, IChunkProvider aChunkProvider) { if (!this.mBiome.equals("None") && !(this.mBiome.equals(aBiome))) { return false; // Not the correct biome for ore mix } if (!isGenerationAllowed( - aWorld, - aDimensionType, - ((aDimensionType == -1) && (this.mNether)) || ((aDimensionType == 0) && (this.mOverworld)) - || ((aDimensionType == 1) && (this.mEnd)) ? aDimensionType : aDimensionType ^ 0xFFFFFFFF)) { + aWorld, + aDimensionType, + ((aDimensionType == -1) && (this.mNether)) || ((aDimensionType == 0) && (this.mOverworld)) + || ((aDimensionType == 1) && (this.mEnd)) ? aDimensionType : aDimensionType ^ 0xFFFFFFFF)) { return false; } int count = 0; @@ -94,27 +88,27 @@ public class GT_Worldgen_GT_Ore_SmallPieces extends GT_Worldgen { int j = Math.max(1, this.mAmount / 2 + aRandom.nextInt(this.mAmount) / 2); for (int i = 0; i < j; i++) { GT_TileEntity_Ores.setOreBlock( - aWorld, - aChunkX + 8 + aRandom.nextInt(16), - this.mMinY + aRandom.nextInt(Math.max(1, this.mMaxY - this.mMinY)), - aChunkZ + 8 + aRandom.nextInt(16), - this.mMeta, - true, - isUnderdark); + aWorld, + aChunkX + 8 + aRandom.nextInt(16), + this.mMinY + aRandom.nextInt(Math.max(1, this.mMaxY - this.mMinY)), + aChunkZ + 8 + aRandom.nextInt(16), + this.mMeta, + true, + isUnderdark); count++; } } if (debugSmallOres) { GT_Log.out.println( - "Small Ore:" + this.mWorldGenName - + " @ dim=" - + aDimensionType - + " mX=" - + aChunkX / 16 - + " mZ=" - + aChunkZ / 16 - + " ore=" - + count); + "Small Ore:" + this.mWorldGenName + + " @ dim=" + + aDimensionType + + " mX=" + + aChunkX / 16 + + " mZ=" + + aChunkZ / 16 + + " ore=" + + count); } return true; } diff --git a/src/main/java/gregtech/common/GT_Worldgen_Stone.java b/src/main/java/gregtech/common/GT_Worldgen_Stone.java index 94b529c1e5..1996b77349 100644 --- a/src/main/java/gregtech/common/GT_Worldgen_Stone.java +++ b/src/main/java/gregtech/common/GT_Worldgen_Stone.java @@ -59,26 +59,26 @@ public class GT_Worldgen_Stone extends GT_Worldgen_Ore { } public GT_Worldgen_Stone(String aName, boolean aDefault, Block aBlock, int aBlockMeta, int aDimensionType, - int aAmount, int aSize, int aProbability, int aMinY, int aMaxY, Collection aBiomeList, - boolean aAllowToGenerateinVoid) { + int aAmount, int aSize, int aProbability, int aMinY, int aMaxY, Collection aBiomeList, + boolean aAllowToGenerateinVoid) { super( - aName, - aDefault, - aBlock, - aBlockMeta, - aDimensionType, - aAmount, - aSize, - aProbability, - aMinY, - aMaxY, - aBiomeList, - aAllowToGenerateinVoid); + aName, + aDefault, + aBlock, + aBlockMeta, + aDimensionType, + aAmount, + aSize, + aProbability, + aMinY, + aMaxY, + aBiomeList, + aAllowToGenerateinVoid); } @Override public boolean executeWorldgen(World aWorld, Random aRandom, String aBiome, int aDimensionType, int aChunkX, - int aChunkZ, IChunkProvider aChunkGenerator, IChunkProvider aChunkProvider) { + int aChunkZ, IChunkProvider aChunkGenerator, IChunkProvider aChunkProvider) { XSTR stoneRNG = new XSTR(); ArrayList stones = new ArrayList<>(); @@ -97,24 +97,24 @@ public class GT_Worldgen_Stone extends GT_Worldgen_Ore { for (int x = aChunkX / 16 - windowWidth; x < (aChunkX / 16 + windowWidth + 1); x++) { for (int z = aChunkZ / 16 - windowWidth; z < (aChunkZ / 16 + windowWidth + 1); z++) { long hash = (((aWorld.provider.dimensionId & 0xffL) << 56) | (((long) x & 0x000000000fffffffL) << 28) - | ((long) z & 0x000000000fffffffL)); + | ((long) z & 0x000000000fffffffL)); if (!validStoneSeeds.containsKey(hash)) { // Determine if RNG says to add stone at this chunk stoneRNG.setSeed( - aWorld.getSeed() ^ hash + Math.abs(mBlockMeta) - + Math.abs(mSize) - + ((GregTech_API.sBlockGranites == mBlock) ? (32768) : (0))); // Don't judge me. - // Want different - // values for - // different block - // types + aWorld.getSeed() ^ hash + Math.abs(mBlockMeta) + + Math.abs(mSize) + + ((GregTech_API.sBlockGranites == mBlock) ? (32768) : (0))); // Don't judge me. + // Want different + // values for + // different block + // types if ((this.mProbability <= 1) || (stoneRNG.nextInt(this.mProbability) == 0)) { // Add stone at this chunk validStoneSeeds.put(hash, new StoneSeeds(true)); // Add to generation list stones.add(new ValidSeeds(x, z)); if (debugStones) GT_Log.out.println( - "New stoneseed=" + mWorldGenName + " x=" + x + " z=" + z + " realSize=" + realSize); + "New stoneseed=" + mWorldGenName + " x=" + x + " z=" + z + " realSize=" + realSize); } else { validStoneSeeds.put(hash, new StoneSeeds(false)); } @@ -138,11 +138,11 @@ public class GT_Worldgen_Stone extends GT_Worldgen_Ore { int z = stones.get(0).mZ * 16; stoneRNG.setSeed( - aWorld.getSeed() - ^ (((aWorld.provider.dimensionId & 0xffL) << 56) | (((long) x & 0x000000000fffffffL) << 28) - | ((long) z & 0x000000000fffffffL)) + Math.abs(mBlockMeta) - + Math.abs(mSize) - + ((GregTech_API.sBlockGranites == mBlock) ? (32768) : (0))); // Don't judge me + aWorld.getSeed() + ^ (((aWorld.provider.dimensionId & 0xffL) << 56) | (((long) x & 0x000000000fffffffL) << 28) + | ((long) z & 0x000000000fffffffL)) + Math.abs(mBlockMeta) + + Math.abs(mSize) + + ((GregTech_API.sBlockGranites == mBlock) ? (32768) : (0))); // Don't judge me for (int i = 0; i < this.mAmount; i++) { // Not sure why you would want more than one in a chunk! Left alone // though. // Locate the stoneseed XYZ. Original code would request an isAir at the seed location, causing a chunk @@ -176,30 +176,30 @@ public class GT_Worldgen_Stone extends GT_Worldgen_Ore { // If the (tY-ySize) of the stoneseed is air in the current chunk, mark the seed empty and move on. if (aWorld.getBlock(aChunkX + 8, tMinY, aChunkZ + 8) - .isAir(aWorld, aChunkX + 8, tMinY, aChunkZ + 8)) { + .isAir(aWorld, aChunkX + 8, tMinY, aChunkZ + 8)) { if (debugStones) GT_Log.out.println( - mWorldGenName + " tX=" - + tX - + " tY=" - + tY - + " tZ=" - + tZ - + " realSize=" - + realSize - + " xSize=" - + realSize / xSize - + " ySize=" - + realSize / ySize - + " zSize=" - + realSize / zSize - + " tMinY=" - + tMinY - + " tMaxY=" - + tMaxY - + " - Skipped because first requesting chunk would not contain this stone"); + mWorldGenName + " tX=" + + tX + + " tY=" + + tY + + " tZ=" + + tZ + + " realSize=" + + realSize + + " xSize=" + + realSize / xSize + + " ySize=" + + realSize / ySize + + " zSize=" + + realSize / zSize + + " tMinY=" + + tMinY + + " tMaxY=" + + tMaxY + + " - Skipped because first requesting chunk would not contain this stone"); long hash = (((aWorld.provider.dimensionId & 0xffL) << 56) - | (((long) x & 0x000000000fffffffL) << 28) - | ((long) z & 0x000000000fffffffL)); + | (((long) x & 0x000000000fffffffL) << 28) + | ((long) z & 0x000000000fffffffL)); validStoneSeeds.remove(hash); validStoneSeeds.put(hash, new StoneSeeds(false)); } @@ -212,32 +212,32 @@ public class GT_Worldgen_Stone extends GT_Worldgen_Ore { int nZ = Math.min(tMaxZ, aChunkZ + 8 + 16); if (debugStones) GT_Log.out.println( - mWorldGenName + " tX=" - + tX - + " tY=" - + tY - + " tZ=" - + tZ - + " realSize=" - + realSize - + " xSize=" - + realSize / xSize - + " ySize=" - + realSize / ySize - + " zSize=" - + realSize / zSize - + " wX=" - + wX - + " eX=" - + eX - + " tMinY=" - + tMinY - + " tMaxY=" - + tMaxY - + " sZ=" - + sZ - + " nZ=" - + nZ); + mWorldGenName + " tX=" + + tX + + " tY=" + + tY + + " tZ=" + + tZ + + " realSize=" + + realSize + + " xSize=" + + realSize / xSize + + " ySize=" + + realSize / ySize + + " zSize=" + + realSize / zSize + + " wX=" + + wX + + " eX=" + + eX + + " tMinY=" + + tMinY + + " tMaxY=" + + tMaxY + + " sZ=" + + sZ + + " nZ=" + + nZ); double rightHandSide = realSize * realSize + 1; // Precalc the right hand side for (int iY = tMinY; iY < tMaxY; iY++) { // Do placement from the bottom up layer up. Maybe better on @@ -271,62 +271,24 @@ public class GT_Worldgen_Stone extends GT_Worldgen_Ore { if (tTargetedBlock != GregTech_API.sBlockOres1) { ((GT_TileEntity_Ores) tTileEntity).convertOreBlock(aWorld, iX, iY, iZ); } - ((GT_TileEntity_Ores) tTileEntity).overrideOreBlockMaterial( - this.mBlock, - (byte) this.mBlockMeta); + ((GT_TileEntity_Ores) tTileEntity) + .overrideOreBlockMaterial(this.mBlock, (byte) this.mBlockMeta); } } else if (((this.mAllowToGenerateinVoid) && (aWorld.getBlock(iX, iY, iZ) - .isAir(aWorld, iX, iY, iZ))) - || ((tTargetedBlock != null) && ((tTargetedBlock.isReplaceableOreGen( - aWorld, - iX, - iY, - iZ, - Blocks.stone)) - || (tTargetedBlock.isReplaceableOreGen( - aWorld, - iX, - iY, - iZ, - Blocks.stained_hardened_clay)) - || (tTargetedBlock.isReplaceableOreGen( - aWorld, - iX, - iY, - iZ, - Blocks.cobblestone)) - || (tTargetedBlock.isReplaceableOreGen( - aWorld, - iX, - iY, - iZ, - Blocks.end_stone)) - || (tTargetedBlock.isReplaceableOreGen( - aWorld, - iX, - iY, - iZ, - Blocks.netherrack)) - || (tTargetedBlock.isReplaceableOreGen( - aWorld, - iX, - iY, - iZ, - GregTech_API.sBlockGranites)) - || (tTargetedBlock.isReplaceableOreGen( - aWorld, - iX, - iY, - iZ, - GregTech_API.sBlockStones))))) { - aWorld.setBlock( - iX, - iY, - iZ, - this.mBlock, - this.mBlockMeta, - 0); - } + .isAir(aWorld, iX, iY, iZ))) + || ((tTargetedBlock != null) && ((tTargetedBlock + .isReplaceableOreGen(aWorld, iX, iY, iZ, Blocks.stone)) + || (tTargetedBlock + .isReplaceableOreGen(aWorld, iX, iY, iZ, Blocks.stained_hardened_clay)) + || (tTargetedBlock.isReplaceableOreGen(aWorld, iX, iY, iZ, Blocks.cobblestone)) + || (tTargetedBlock.isReplaceableOreGen(aWorld, iX, iY, iZ, Blocks.end_stone)) + || (tTargetedBlock.isReplaceableOreGen(aWorld, iX, iY, iZ, Blocks.netherrack)) + || (tTargetedBlock + .isReplaceableOreGen(aWorld, iX, iY, iZ, GregTech_API.sBlockGranites)) + || (tTargetedBlock + .isReplaceableOreGen(aWorld, iX, iY, iZ, GregTech_API.sBlockStones))))) { + aWorld.setBlock(iX, iY, iZ, this.mBlock, this.mBlockMeta, 0); + } } } } diff --git a/src/main/java/gregtech/common/GT_Worldgenerator.java b/src/main/java/gregtech/common/GT_Worldgenerator.java index 37b917e8c5..be0eb4e9ea 100644 --- a/src/main/java/gregtech/common/GT_Worldgenerator.java +++ b/src/main/java/gregtech/common/GT_Worldgenerator.java @@ -39,20 +39,20 @@ public class GT_Worldgenerator implements IWorldGenerator { // This is probably not going to work. Trying to create a fake orevein to put into hashtable when there will be no // ores in a vein. public static GT_Worldgen_GT_Ore_Layer noOresInVein = new GT_Worldgen_GT_Ore_Layer( - "NoOresInVein", - false, - 0, - 255, - 0, - 255, - 16, - false, - false, - false, - Materials.Aluminium, - Materials.Aluminium, - Materials.Aluminium, - Materials.Aluminium); + "NoOresInVein", + false, + 0, + 255, + 0, + 255, + 16, + false, + false, + false, + Materials.Aluminium, + Materials.Aluminium, + Materials.Aluminium, + Materials.Aluminium); public static Hashtable validOreveins = new Hashtable<>(1024); public boolean mIsGenerating = false; public static final Object listLock = new Object(); @@ -70,28 +70,28 @@ public class GT_Worldgenerator implements IWorldGenerator { @Override public void generate(Random aRandom, int aX, int aZ, World aWorld, IChunkProvider aChunkGenerator, - IChunkProvider aChunkProvider) { + IChunkProvider aChunkProvider) { synchronized (listLock) { mList.add( - new WorldGenContainer( - new XSTR(Math.abs(aRandom.nextInt()) + 1), - aX, - aZ, - aWorld.provider.dimensionId, - aWorld, - aChunkGenerator, - aChunkProvider, - aWorld.getBiomeGenForCoords(aX * 16 + 8, aZ * 16 + 8).biomeName)); + new WorldGenContainer( + new XSTR(Math.abs(aRandom.nextInt()) + 1), + aX, + aZ, + aWorld.provider.dimensionId, + aWorld, + aChunkGenerator, + aChunkProvider, + aWorld.getBiomeGenForCoords(aX * 16 + 8, aZ * 16 + 8).biomeName)); if (debugWorldGen) GT_Log.out.println( - "ADD WorldSeed:" + aWorld.getSeed() - + " DimId" - + aWorld.provider.dimensionId - + " chunk x:" - + aX - + " z:" - + aZ - + " SIZE: " - + mList.size()); + "ADD WorldSeed:" + aWorld.getSeed() + + " DimId" + + aWorld.provider.dimensionId + + " chunk x:" + + aX + + " z:" + + aZ + + " SIZE: " + + mList.size()); } if (!this.mIsGenerating) { @@ -102,17 +102,17 @@ public class GT_Worldgenerator implements IWorldGenerator { for (int i = 0; i < mList_sS; i++) { WorldGenContainer toRun = (WorldGenContainer) mList.get(0); if (debugWorldGen) GT_Log.out.println( - "RUN WorldSeed:" + aWorld.getSeed() - + " DimId" - + aWorld.provider.dimensionId - + " chunk x:" - + toRun.mX - + " z:" - + toRun.mZ - + " SIZE: " - + mList.size() - + " i: " - + i); + "RUN WorldSeed:" + aWorld.getSeed() + + " DimId" + + aWorld.provider.dimensionId + + " chunk x:" + + toRun.mX + + " z:" + + toRun.mZ + + " SIZE: " + + mList.size() + + " i: " + + i); synchronized (listLock) { mList.remove(0); } @@ -166,7 +166,7 @@ public class GT_Worldgenerator implements IWorldGenerator { // aX and aZ are now the by-chunk X and Z for the chunk of interest public WorldGenContainer(Random aRandom, int aX, int aZ, int aDimensionType, World aWorld, - IChunkProvider aChunkGenerator, IChunkProvider aChunkProvider, String aBiome) { + IChunkProvider aChunkGenerator, IChunkProvider aChunkProvider, String aBiome) { this.mRandom = aRandom; this.mX = aX; this.mZ = aZ; @@ -212,8 +212,8 @@ public class GT_Worldgenerator implements IWorldGenerator { // bits of the chunk so we have bits for dimension. // ( (long)oreseedZ & 0x000000000fffffffL )) Puts the chunk Z in the bits 0-27. Cuts off the top few bits // of the chunk so we have bits for dimension. - long oreveinSeed = (this.mWorld.getSeed() << 16) ^ (((this.mWorld.provider.dimensionId & 0xffL) << 56) - | (((long) oreseedX & 0x000000000fffffffL) << 28) + long oreveinSeed = (this.mWorld.getSeed() << 16) + ^ (((this.mWorld.provider.dimensionId & 0xffL) << 56) | (((long) oreseedX & 0x000000000fffffffL) << 28) | ((long) oreseedZ & 0x000000000fffffffL)); // Use an RNG that is identical every time it is // called for // this oreseed. @@ -226,22 +226,22 @@ public class GT_Worldgenerator implements IWorldGenerator { } if (debugOrevein) GT_Log.out.println( - " Finding oreveins for oreveinSeed=" + oreveinSeed - + " mX=" - + this.mX - + " mZ=" - + this.mZ - + " oreseedX=" - + oreseedX - + " oreseedZ=" - + oreseedZ - + " worldSeed=" - + this.mWorld.getSeed()); + " Finding oreveins for oreveinSeed=" + oreveinSeed + + " mX=" + + this.mX + + " mZ=" + + this.mZ + + " oreseedX=" + + oreseedX + + " oreseedZ=" + + oreseedZ + + " worldSeed=" + + this.mWorld.getSeed()); // Search for a valid orevein for this dimension if (!validOreveins.containsKey(oreveinSeed)) { if ((oreveinPercentageRoll < oreveinPercentage) && (GT_Worldgen_GT_Ore_Layer.sWeight > 0) - && (GT_Worldgen_GT_Ore_Layer.sList.size() > 0)) { + && (GT_Worldgen_GT_Ore_Layer.sList.size() > 0)) { int placementAttempts = 0; boolean oreveinFound = false; int i; @@ -254,7 +254,7 @@ public class GT_Worldgenerator implements IWorldGenerator { * ); } } */ for (i = 0; (i < oreveinAttempts) && (!oreveinFound) - && (placementAttempts < oreveinMaxPlacementAttempts); i++) { + && (placementAttempts < oreveinMaxPlacementAttempts); i++) { int tRandomWeight = oreveinRNG.nextInt(GT_Worldgen_GT_Ore_Layer.sWeight); for (GT_Worldgen_GT_Ore_Layer tWorldGen : GT_Worldgen_GT_Ore_Layer.sList) { tRandomWeight -= (tWorldGen).mWeight; @@ -266,28 +266,28 @@ public class GT_Worldgenerator implements IWorldGenerator { // same minimum heights would fail as well. This prevents that, giving each orevein // a unique height each pass through here. int placementResult = tWorldGen.executeWorldgenChunkified( - this.mWorld, - new XSTR(oreveinSeed ^ (tWorldGen.mPrimaryMeta)), - this.mBiome, - this.mDimensionType, - this.mX * 16, - this.mZ * 16, - oreseedX * 16, - oreseedZ * 16, - this.mChunkGenerator, - this.mChunkProvider); + this.mWorld, + new XSTR(oreveinSeed ^ (tWorldGen.mPrimaryMeta)), + this.mBiome, + this.mDimensionType, + this.mX * 16, + this.mZ * 16, + oreseedX * 16, + oreseedZ * 16, + this.mChunkGenerator, + this.mChunkProvider); switch (placementResult) { case GT_Worldgen_GT_Ore_Layer.ORE_PLACED -> { if (debugOrevein) GT_Log.out.println( - " Added near oreveinSeed=" + oreveinSeed - + " " - + (tWorldGen).mWorldGenName - + " tries at oremix=" - + i - + " placementAttempts=" - + placementAttempts - + " dimensionName=" - + tDimensionName); + " Added near oreveinSeed=" + oreveinSeed + + " " + + (tWorldGen).mWorldGenName + + " tries at oremix=" + + i + + " placementAttempts=" + + placementAttempts + + " dimensionName=" + + tDimensionName); validOreveins.put(oreveinSeed, tWorldGen); oreveinFound = true; } @@ -296,29 +296,29 @@ public class GT_Worldgenerator implements IWorldGenerator { // SHould do retry in this case until out of chances case GT_Worldgen_GT_Ore_Layer.NO_OVERLAP -> { if (debugOrevein) GT_Log.out.println( - " Added far oreveinSeed=" + oreveinSeed - + " " - + (tWorldGen).mWorldGenName - + " tries at oremix=" - + i - + " placementAttempts=" - + placementAttempts - + " dimensionName=" - + tDimensionName); + " Added far oreveinSeed=" + oreveinSeed + + " " + + (tWorldGen).mWorldGenName + + " tries at oremix=" + + i + + " placementAttempts=" + + placementAttempts + + " dimensionName=" + + tDimensionName); validOreveins.put(oreveinSeed, tWorldGen); oreveinFound = true; } case GT_Worldgen_GT_Ore_Layer.NO_OVERLAP_AIR_BLOCK -> { if (debugOrevein) GT_Log.out.println( - " No overlap and air block in test spot=" + oreveinSeed - + " " - + (tWorldGen).mWorldGenName - + " tries at oremix=" - + i - + " placementAttempts=" - + placementAttempts - + " dimensionName=" - + tDimensionName); + " No overlap and air block in test spot=" + oreveinSeed + + " " + + (tWorldGen).mWorldGenName + + " tries at oremix=" + + i + + " placementAttempts=" + + placementAttempts + + " dimensionName=" + + tDimensionName); // SHould do retry in this case until out of chances placementAttempts++; } @@ -326,17 +326,17 @@ public class GT_Worldgenerator implements IWorldGenerator { break; // Try the next orevein } catch (Throwable e) { if (debugOrevein) GT_Log.out.println( - "Exception occurred on oreVein" + tWorldGen - + " oreveinSeed=" - + oreveinSeed - + " mX=" - + this.mX - + " mZ=" - + this.mZ - + " oreseedX=" - + oreseedX - + " oreseedZ=" - + oreseedZ); + "Exception occurred on oreVein" + tWorldGen + + " oreveinSeed=" + + oreveinSeed + + " mX=" + + this.mX + + " mZ=" + + this.mZ + + " oreseedX=" + + oreseedX + + " oreseedZ=" + + oreseedZ); e.printStackTrace(GT_Log.err); } } @@ -345,60 +345,60 @@ public class GT_Worldgenerator implements IWorldGenerator { // Only add an empty orevein if unable to place a vein at the oreseed chunk. if ((!oreveinFound) && (this.mX == oreseedX) && (this.mZ == oreseedZ)) { if (debugOrevein) GT_Log.out.println( - " Empty oreveinSeed=" + oreveinSeed - + " mX=" - + this.mX - + " mZ=" - + this.mZ - + " oreseedX=" - + oreseedX - + " oreseedZ=" - + oreseedZ - + " tries at oremix=" - + i - + " placementAttempts=" - + placementAttempts - + " dimensionName=" - + tDimensionName); + " Empty oreveinSeed=" + oreveinSeed + + " mX=" + + this.mX + + " mZ=" + + this.mZ + + " oreseedX=" + + oreseedX + + " oreseedZ=" + + oreseedZ + + " tries at oremix=" + + i + + " placementAttempts=" + + placementAttempts + + " dimensionName=" + + tDimensionName); validOreveins.put(oreveinSeed, noOresInVein); } } else if (oreveinPercentageRoll >= oreveinPercentage) { if (debugOrevein) GT_Log.out.println( - " Skipped oreveinSeed=" + oreveinSeed - + " mX=" - + this.mX - + " mZ=" - + this.mZ - + " oreseedX=" - + oreseedX - + " oreseedZ=" - + oreseedZ - + " RNG=" - + oreveinPercentageRoll - + " %=" - + oreveinPercentage - + " dimensionName=" - + tDimensionName); + " Skipped oreveinSeed=" + oreveinSeed + + " mX=" + + this.mX + + " mZ=" + + this.mZ + + " oreseedX=" + + oreseedX + + " oreseedZ=" + + oreseedZ + + " RNG=" + + oreveinPercentageRoll + + " %=" + + oreveinPercentage + + " dimensionName=" + + tDimensionName); validOreveins.put(oreveinSeed, noOresInVein); } } else { // oreseed is located in the previously processed table - if (debugOrevein) GT_Log.out.print( - " Valid oreveinSeed=" + oreveinSeed + " validOreveins.size()=" + validOreveins.size() + " "); + if (debugOrevein) GT_Log.out + .print(" Valid oreveinSeed=" + oreveinSeed + " validOreveins.size()=" + validOreveins.size() + " "); GT_Worldgen_GT_Ore_Layer tWorldGen = validOreveins.get(oreveinSeed); oreveinRNG.setSeed(oreveinSeed ^ (tWorldGen.mPrimaryMeta)); // Reset RNG to only be based on oreseed X/Z // and type of vein int placementResult = tWorldGen.executeWorldgenChunkified( - this.mWorld, - oreveinRNG, - this.mBiome, - this.mDimensionType, - this.mX * 16, - this.mZ * 16, - oreseedX * 16, - oreseedZ * 16, - this.mChunkGenerator, - this.mChunkProvider); + this.mWorld, + oreveinRNG, + this.mBiome, + this.mDimensionType, + this.mX * 16, + this.mZ * 16, + oreseedX * 16, + oreseedZ * 16, + this.mChunkGenerator, + this.mChunkProvider); switch (placementResult) { case GT_Worldgen_GT_Ore_Layer.NO_ORE_IN_BOTTOM_LAYER -> { if (debugOrevein) GT_Log.out.println(" No ore in bottom layer"); @@ -422,14 +422,14 @@ public class GT_Worldgenerator implements IWorldGenerator { * if (debugWorldGen) GT_Log.out.println( "tWorldGen.mWorldGenName="+tWorldGen.mWorldGenName ); */ tWorldGen.executeWorldgen( - this.mWorld, - this.mRandom, - this.mBiome, - this.mDimensionType, - this.mX * 16, - this.mZ * 16, - this.mChunkGenerator, - this.mChunkProvider); + this.mWorld, + this.mRandom, + this.mBiome, + this.mDimensionType, + this.mX * 16, + this.mZ * 16, + this.mChunkGenerator, + this.mChunkProvider); } } catch (Throwable e) { e.printStackTrace(GT_Log.err); @@ -439,7 +439,7 @@ public class GT_Worldgenerator implements IWorldGenerator { // Determine bounding box on how far out to check for oreveins affecting this chunk // For now, manually reducing oreveinMaxSize when not in the Underdark for performance if (this.mWorld.provider.getDimensionName() - .equals("Underdark")) { + .equals("Underdark")) { oreveinMaxSize = 32; // Leave Deep Dark/Underdark max oregen at 32, instead of 64 } else { oreveinMaxSize = 32; @@ -478,7 +478,7 @@ public class GT_Worldgenerator implements IWorldGenerator { // (aRandom.nextInt(mEndAsteroidProbability) == 0))) || ((tDimensionName.equals("Asteroids")) && gcAsteroids // && ((mGCAsteroidProbability <= 1) || (aRandom.nextInt(mGCAsteroidProbability) == 0)))) { if (((tDimensionType == 1) && endAsteroids - && ((mEndAsteroidProbability <= 1) || (aRandom.nextInt(mEndAsteroidProbability) == 0)))) { + && ((mEndAsteroidProbability <= 1) || (aRandom.nextInt(mEndAsteroidProbability) == 0)))) { short primaryMeta = 0; short secondaryMeta = 0; short betweenMeta = 0; @@ -519,7 +519,7 @@ public class GT_Worldgenerator implements IWorldGenerator { // mSize = aRandom.nextInt((int) (gcMaxSize - gcMinSize)); } if ((mWorld.getBlock(tX, tY, tZ) - .isAir(mWorld, tX, tY, tZ))) { + .isAir(mWorld, tX, tY, tZ))) { float randomRadian = aRandom.nextFloat() * (float) Math.PI; double xBase = tX + 8 + MathHelper.sin(randomRadian) * mSize / 8.0F; double xFactor = tX + 8 - MathHelper.sin(randomRadian) * mSize / 8.0F; @@ -533,9 +533,9 @@ public class GT_Worldgenerator implements IWorldGenerator { double zCenter = zBase + (zFactor - zBase) * i / mSize; double randomDistance = aRandom.nextDouble() * mSize / 16.0D; double halfLength = (MathHelper.sin(i * (float) Math.PI / mSize) + 1.0F) * randomDistance - + 1.0D; + + 1.0D; double halfHeight = (MathHelper.sin(i * (float) Math.PI / mSize) + 1.0F) * randomDistance - + 1.0D; + + 1.0D; int tMinX = MathHelper.floor_double(xCenter - halfLength / 2.0D); int tMinY = MathHelper.floor_double(yCenter - halfHeight / 2.0D); int tMinZ = MathHelper.floor_double(zCenter - halfLength / 2.0D); @@ -551,41 +551,21 @@ public class GT_Worldgenerator implements IWorldGenerator { for (int eZ = tMinZ; eZ <= tMaxZ; eZ++) { double zChance = (eZ + 0.5D - zCenter) / (halfLength / 2.0D); if ((xChance * xChance + yChance * yChance + zChance * zChance < 1.0D) - && (mWorld.getBlock(tX, tY, tZ) - .isAir(mWorld, tX, tY, tZ))) { + && (mWorld.getBlock(tX, tY, tZ) + .isAir(mWorld, tX, tY, tZ))) { int ranOre = aRandom.nextInt(50); if (ranOre < 3) { - GT_TileEntity_Ores.setOreBlock( - mWorld, - eX, - eY, - eZ, - primaryMeta, - false); + GT_TileEntity_Ores + .setOreBlock(mWorld, eX, eY, eZ, primaryMeta, false); } else if (ranOre < 6) { - GT_TileEntity_Ores.setOreBlock( - mWorld, - eX, - eY, - eZ, - secondaryMeta, - false); + GT_TileEntity_Ores + .setOreBlock(mWorld, eX, eY, eZ, secondaryMeta, false); } else if (ranOre < 8) { - GT_TileEntity_Ores.setOreBlock( - mWorld, - eX, - eY, - eZ, - betweenMeta, - false); + GT_TileEntity_Ores + .setOreBlock(mWorld, eX, eY, eZ, betweenMeta, false); } else if (ranOre < 10) { - GT_TileEntity_Ores.setOreBlock( - mWorld, - eX, - eY, - eZ, - sporadicMeta, - false); + GT_TileEntity_Ores + .setOreBlock(mWorld, eX, eY, eZ, sporadicMeta, false); } else { mWorld.setBlock(eX, eY, eZ, Blocks.end_stone, 0, 0); } @@ -607,12 +587,12 @@ public class GT_Worldgenerator implements IWorldGenerator { long duration = (endTime - startTime); if (debugWorldGen) { GT_Log.out.println( - " Oregen took " + (oregenTime - leftOverTime) - + " Leftover gen took " - + (leftOverTime - startTime) - + " Worldgen took " - + duration - + " nanoseconds"); + " Oregen took " + (oregenTime - leftOverTime) + + " Leftover gen took " + + (leftOverTime - startTime) + + " Worldgen took " + + duration + + " nanoseconds"); } } } diff --git a/src/main/java/gregtech/common/bees/GT_AlleleBeeSpecies.java b/src/main/java/gregtech/common/bees/GT_AlleleBeeSpecies.java index e3b916db88..d4aa78ecf3 100644 --- a/src/main/java/gregtech/common/bees/GT_AlleleBeeSpecies.java +++ b/src/main/java/gregtech/common/bees/GT_AlleleBeeSpecies.java @@ -14,18 +14,18 @@ import forestry.apiculture.genetics.alleles.AlleleBeeSpecies; public class GT_AlleleBeeSpecies extends AlleleBeeSpecies { public GT_AlleleBeeSpecies(String uid, boolean dominant, String unlocalizedName, String authority, - String unlocalizedDescription, IClassification branch, String binomial, Color primaryColor, - Color secondaryColor) { + String unlocalizedDescription, IClassification branch, String binomial, Color primaryColor, + Color secondaryColor) { super( - uid, - unlocalizedName, - authority, - unlocalizedDescription, - dominant, - branch, - binomial, - primaryColor.getRGB(), - secondaryColor.getRGB()); + uid, + unlocalizedName, + authority, + unlocalizedDescription, + dominant, + branch, + binomial, + primaryColor.getRGB(), + secondaryColor.getRGB()); AlleleManager.alleleRegistry.registerAllele(this, EnumBeeChromosome.SPECIES); } diff --git a/src/main/java/gregtech/common/bees/GT_AlleleHelper.java b/src/main/java/gregtech/common/bees/GT_AlleleHelper.java index 8c605f95c6..c9e37f7824 100644 --- a/src/main/java/gregtech/common/bees/GT_AlleleHelper.java +++ b/src/main/java/gregtech/common/bees/GT_AlleleHelper.java @@ -34,28 +34,26 @@ public class GT_AlleleHelper extends AlleleHelper { if (PluginManager.Module.APICULTURE.isEnabled() || PluginManager.Module.ARBORICULTURE.isEnabled()) { createAlleles(EnumAllele.Territory.class, EnumBeeChromosome.TERRITORY, EnumTreeChromosome.TERRITORY); - AlleleManager.alleleRegistry.registerDeprecatedAlleleReplacement( - "forestry.territoryDefault", - get(EnumAllele.Territory.AVERAGE)); + AlleleManager.alleleRegistry + .registerDeprecatedAlleleReplacement("forestry.territoryDefault", get(EnumAllele.Territory.AVERAGE)); } if (PluginManager.Module.APICULTURE.isEnabled() || PluginManager.Module.LEPIDOPTEROLOGY.isEnabled()) { createAlleles(EnumAllele.Speed.class, EnumBeeChromosome.SPEED, EnumButterflyChromosome.SPEED); createAlleles(EnumAllele.Lifespan.class, EnumBeeChromosome.LIFESPAN, EnumButterflyChromosome.LIFESPAN); createAlleles( - EnumAllele.Tolerance.class, - EnumBeeChromosome.TEMPERATURE_TOLERANCE, - EnumBeeChromosome.HUMIDITY_TOLERANCE, - EnumButterflyChromosome.TEMPERATURE_TOLERANCE, - EnumButterflyChromosome.HUMIDITY_TOLERANCE); + EnumAllele.Tolerance.class, + EnumBeeChromosome.TEMPERATURE_TOLERANCE, + EnumBeeChromosome.HUMIDITY_TOLERANCE, + EnumButterflyChromosome.TEMPERATURE_TOLERANCE, + EnumButterflyChromosome.HUMIDITY_TOLERANCE); createAlleles( - EnumAllele.Flowers.class, - EnumBeeChromosome.FLOWER_PROVIDER, - EnumButterflyChromosome.FLOWER_PROVIDER); + EnumAllele.Flowers.class, + EnumBeeChromosome.FLOWER_PROVIDER, + EnumButterflyChromosome.FLOWER_PROVIDER); - AlleleManager.alleleRegistry.registerDeprecatedAlleleReplacement( - "forestry.speedNorm", - get(EnumAllele.Speed.NORMAL)); + AlleleManager.alleleRegistry + .registerDeprecatedAlleleReplacement("forestry.speedNorm", get(EnumAllele.Speed.NORMAL)); } if (PluginManager.Module.ARBORICULTURE.isEnabled()) { @@ -66,42 +64,30 @@ public class GT_AlleleHelper extends AlleleHelper { createAlleles(EnumAllele.Maturation.class, EnumTreeChromosome.MATURATION); createAlleles(EnumAllele.Sappiness.class, EnumTreeChromosome.SAPPINESS); - AlleleManager.alleleRegistry.registerDeprecatedAlleleReplacement( - "forestry.heightMax10", - get(EnumAllele.Height.AVERAGE)); - AlleleManager.alleleRegistry.registerDeprecatedAlleleReplacement( - "forestry.saplingsDefault", - get(EnumAllele.Saplings.AVERAGE)); - AlleleManager.alleleRegistry.registerDeprecatedAlleleReplacement( - "forestry.saplingsDouble", - get(EnumAllele.Saplings.HIGH)); - AlleleManager.alleleRegistry.registerDeprecatedAlleleReplacement( - "forestry.saplingsTriple", - get(EnumAllele.Saplings.HIGHER)); - AlleleManager.alleleRegistry.registerDeprecatedAlleleReplacement( - "forestry.yieldDefault", - get(EnumAllele.Yield.AVERAGE)); - AlleleManager.alleleRegistry.registerDeprecatedAlleleReplacement( - "forestry.maturitySlowest", - get(EnumAllele.Maturation.SLOWEST)); - AlleleManager.alleleRegistry.registerDeprecatedAlleleReplacement( - "forestry.maturitySlower", - get(EnumAllele.Maturation.SLOWER)); - AlleleManager.alleleRegistry.registerDeprecatedAlleleReplacement( - "forestry.maturitySlow", - get(EnumAllele.Maturation.SLOW)); - AlleleManager.alleleRegistry.registerDeprecatedAlleleReplacement( - "forestry.maturityAverage", - get(EnumAllele.Maturation.AVERAGE)); - AlleleManager.alleleRegistry.registerDeprecatedAlleleReplacement( - "forestry.maturityFast", - get(EnumAllele.Maturation.FAST)); - AlleleManager.alleleRegistry.registerDeprecatedAlleleReplacement( - "forestry.maturityFaster", - get(EnumAllele.Maturation.FASTER)); - AlleleManager.alleleRegistry.registerDeprecatedAlleleReplacement( - "forestry.maturityFastest", - get(EnumAllele.Maturation.FASTEST)); + AlleleManager.alleleRegistry + .registerDeprecatedAlleleReplacement("forestry.heightMax10", get(EnumAllele.Height.AVERAGE)); + AlleleManager.alleleRegistry + .registerDeprecatedAlleleReplacement("forestry.saplingsDefault", get(EnumAllele.Saplings.AVERAGE)); + AlleleManager.alleleRegistry + .registerDeprecatedAlleleReplacement("forestry.saplingsDouble", get(EnumAllele.Saplings.HIGH)); + AlleleManager.alleleRegistry + .registerDeprecatedAlleleReplacement("forestry.saplingsTriple", get(EnumAllele.Saplings.HIGHER)); + AlleleManager.alleleRegistry + .registerDeprecatedAlleleReplacement("forestry.yieldDefault", get(EnumAllele.Yield.AVERAGE)); + AlleleManager.alleleRegistry + .registerDeprecatedAlleleReplacement("forestry.maturitySlowest", get(EnumAllele.Maturation.SLOWEST)); + AlleleManager.alleleRegistry + .registerDeprecatedAlleleReplacement("forestry.maturitySlower", get(EnumAllele.Maturation.SLOWER)); + AlleleManager.alleleRegistry + .registerDeprecatedAlleleReplacement("forestry.maturitySlow", get(EnumAllele.Maturation.SLOW)); + AlleleManager.alleleRegistry + .registerDeprecatedAlleleReplacement("forestry.maturityAverage", get(EnumAllele.Maturation.AVERAGE)); + AlleleManager.alleleRegistry + .registerDeprecatedAlleleReplacement("forestry.maturityFast", get(EnumAllele.Maturation.FAST)); + AlleleManager.alleleRegistry + .registerDeprecatedAlleleReplacement("forestry.maturityFaster", get(EnumAllele.Maturation.FASTER)); + AlleleManager.alleleRegistry + .registerDeprecatedAlleleReplacement("forestry.maturityFastest", get(EnumAllele.Maturation.FASTEST)); } if (PluginManager.Module.LEPIDOPTEROLOGY.isEnabled()) { @@ -112,10 +98,10 @@ public class GT_AlleleHelper extends AlleleHelper { for (int i = 1; i <= 10; i++) { IAlleleInteger alleleInteger = new AlleleInteger(modId, "i", i + "d", i, true); AlleleManager.alleleRegistry.registerAllele( - alleleInteger, - EnumTreeChromosome.GIRTH, - EnumButterflyChromosome.METABOLISM, - EnumButterflyChromosome.FERTILITY); + alleleInteger, + EnumTreeChromosome.GIRTH, + EnumButterflyChromosome.METABOLISM, + EnumButterflyChromosome.FERTILITY); integers.put(i, alleleInteger); } alleleMaps.put(Integer.class, integers); @@ -125,13 +111,13 @@ public class GT_AlleleHelper extends AlleleHelper { booleans.put(false, new AlleleBoolean(modId, "bool", false, false)); for (IAlleleBoolean alleleBoolean : booleans.values()) { AlleleManager.alleleRegistry.registerAllele( - alleleBoolean, - EnumBeeChromosome.NOCTURNAL, - EnumBeeChromosome.TOLERANT_FLYER, - EnumBeeChromosome.CAVE_DWELLING, - EnumButterflyChromosome.NOCTURNAL, - EnumButterflyChromosome.TOLERANT_FLYER, - EnumButterflyChromosome.FIRE_RESIST); + alleleBoolean, + EnumBeeChromosome.NOCTURNAL, + EnumBeeChromosome.TOLERANT_FLYER, + EnumBeeChromosome.CAVE_DWELLING, + EnumButterflyChromosome.NOCTURNAL, + EnumButterflyChromosome.TOLERANT_FLYER, + EnumButterflyChromosome.FIRE_RESIST); } alleleMaps.put(Boolean.class, booleans); } @@ -141,10 +127,8 @@ public class GT_AlleleHelper extends AlleleHelper { GT_AlleleHelper helper = new GT_AlleleHelper(); try { - helper.alleleMaps = (Map, Map>) FieldUtils.readField( - FieldUtils.getField(AlleleHelper.class, "alleleMaps", true), - AlleleHelper.instance, - true); + helper.alleleMaps = (Map, Map>) FieldUtils + .readField(FieldUtils.getField(AlleleHelper.class, "alleleMaps", true), AlleleHelper.instance, true); } catch (IllegalAccessException e) { e.printStackTrace(); } @@ -162,7 +146,7 @@ public class GT_AlleleHelper extends AlleleHelper { } if (!chromosomeType.getAlleleClass() - .isInstance(allele)) { + .isInstance(allele)) { GT_Mod.GT_FML_LOGGER.info("chromosomeType is not an instance of allele!" + allele.getName()); return; } @@ -228,7 +212,7 @@ public class GT_AlleleHelper extends AlleleHelper { private & IAlleleValue, V> void createAlleles(Class enumClass, IChromosomeType... types) { String category = enumClass.getSimpleName() - .toLowerCase(Locale.ENGLISH); + .toLowerCase(Locale.ENGLISH); EnumMap map = new EnumMap<>(enumClass); for (K enumValue : enumClass.getEnumConstants()) { IAllele allele = createAllele(category, enumValue, types); @@ -238,11 +222,11 @@ public class GT_AlleleHelper extends AlleleHelper { } private static , V> IAllele createAllele(String category, K enumValue, - IChromosomeType... types) { + IChromosomeType... types) { V value = enumValue.getValue(); boolean isDominant = enumValue.isDominant(); String name = enumValue.toString() - .toLowerCase(Locale.ENGLISH); + .toLowerCase(Locale.ENGLISH); Class valueClass = value.getClass(); if (Float.class.isAssignableFrom(valueClass)) { @@ -251,34 +235,22 @@ public class GT_AlleleHelper extends AlleleHelper { return AlleleManager.alleleFactory.createInteger(modId, category, name, (Integer) value, isDominant, types); } else if (IVect.class.isAssignableFrom(valueClass)) { IVect area = (IVect) value; - return AlleleManager.alleleFactory.createArea( - modId, - category, - name, - area.getX(), - area.getY(), - area.getZ(), - isDominant, - types); + return AlleleManager.alleleFactory + .createArea(modId, category, name, area.getX(), area.getY(), area.getZ(), isDominant, types); } else if (Boolean.class.isAssignableFrom(valueClass)) { return AlleleManager.alleleFactory.createBoolean(modId, category, (Boolean) value, isDominant, types); } else if (EnumTolerance.class.isAssignableFrom(valueClass)) { IAlleleTolerance alleleTolerance = new AlleleTolerance( - modId, - category, - name, - (EnumTolerance) value, - isDominant); + modId, + category, + name, + (EnumTolerance) value, + isDominant); AlleleManager.alleleRegistry.registerAllele(alleleTolerance, types); return alleleTolerance; } else if (FlowerProvider.class.isAssignableFrom(valueClass)) { - return AlleleManager.alleleFactory.createFlowers( - modId, - category, - name, - (FlowerProvider) value, - isDominant, - types); + return AlleleManager.alleleFactory + .createFlowers(modId, category, name, (FlowerProvider) value, isDominant, types); } throw new RuntimeException("could not create allele for category: " + category + " and value " + valueClass); } diff --git a/src/main/java/gregtech/common/bees/GT_Bee_Mutation.java b/src/main/java/gregtech/common/bees/GT_Bee_Mutation.java index b79fb98c73..17a764e2b9 100644 --- a/src/main/java/gregtech/common/bees/GT_Bee_Mutation.java +++ b/src/main/java/gregtech/common/bees/GT_Bee_Mutation.java @@ -33,7 +33,7 @@ public class GT_Bee_Mutation extends BeeMutation { @Override public float getChance(IBeeHousing housing, IAlleleBeeSpecies allele0, IAlleleBeeSpecies allele1, - IBeeGenome genome0, IBeeGenome genome1) { + IBeeGenome genome0, IBeeGenome genome1) { World world = housing != null ? housing.getWorld() : null; ChunkCoordinates housingCoordinates = housing != null ? housing.getCoordinates() : null; int x = housingCoordinates != null ? housingCoordinates.posX : 0; @@ -48,7 +48,7 @@ public class GT_Bee_Mutation extends BeeMutation { IBeeModifier beeHousingModifier = BeeManager.beeRoot.createBeeHousingModifier(housing); IBeeModifier beeModeModifier = BeeManager.beeRoot.getBeekeepingMode(world) - .getBeeModifier(); + .getBeeModifier(); processedChance *= beeHousingModifier.getMutationModifier(genome0, genome1, processedChance); processedChance *= beeModeModifier.getMutationModifier(genome0, genome1, processedChance); @@ -58,7 +58,7 @@ public class GT_Bee_Mutation extends BeeMutation { @SuppressWarnings("unchecked") private float getBasicChance(World world, int x, int y, int z, IAllele allele0, IAllele allele1, IGenome genome0, - IGenome genome1, IClimateProvider climate) { + IGenome genome1, IClimateProvider climate) { float mutationChance = this.getBaseChance(); List mutationConditions = null; Field f = FieldUtils.getDeclaredField(Mutation.class, "mutationConditions", true); diff --git a/src/main/java/gregtech/common/blocks/GT_Block_Casings1.java b/src/main/java/gregtech/common/blocks/GT_Block_Casings1.java index 5751ebc703..ea5c569ac7 100644 --- a/src/main/java/gregtech/common/blocks/GT_Block_Casings1.java +++ b/src/main/java/gregtech/common/blocks/GT_Block_Casings1.java @@ -33,9 +33,8 @@ public class GT_Block_Casings1 extends GT_Block_Casings_Abstract { GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".9.name", "UHV Machine Casing"); GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".10.name", "Bronze Plated Bricks"); GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".11.name", "Heat Proof Machine Casing"); - GT_LanguageManager.addStringLocalization( - getUnlocalizedName() + ".12.name", - "Dimensionally Transcendent Casing"); + GT_LanguageManager + .addStringLocalization(getUnlocalizedName() + ".12.name", "Dimensionally Transcendent Casing"); GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".13.name", "Dimensional Injection Casing"); GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".14.name", "Dimensional Bridge"); GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".15.name", "Superconducting Coil Block"); @@ -99,8 +98,7 @@ public class GT_Block_Casings1 extends GT_Block_Casings_Abstract { @Override public int colorMultiplier(IBlockAccess aWorld, int aX, int aY, int aZ) { return aWorld.getBlockMetadata(aX, aY, aZ) > 9 ? super.colorMultiplier(aWorld, aX, aY, aZ) - : gregtech.api.enums.Dyes.MACHINE_METAL.mRGBa[0] << 16 - | gregtech.api.enums.Dyes.MACHINE_METAL.mRGBa[1] << 8 - | gregtech.api.enums.Dyes.MACHINE_METAL.mRGBa[2]; + : gregtech.api.enums.Dyes.MACHINE_METAL.mRGBa[0] << 16 | gregtech.api.enums.Dyes.MACHINE_METAL.mRGBa[1] << 8 + | gregtech.api.enums.Dyes.MACHINE_METAL.mRGBa[2]; } } diff --git a/src/main/java/gregtech/common/blocks/GT_Block_Casings2.java b/src/main/java/gregtech/common/blocks/GT_Block_Casings2.java index dfc5ff974b..14960eea10 100644 --- a/src/main/java/gregtech/common/blocks/GT_Block_Casings2.java +++ b/src/main/java/gregtech/common/blocks/GT_Block_Casings2.java @@ -20,12 +20,12 @@ public class GT_Block_Casings2 extends GT_Block_Casings_Abstract { super(GT_Item_Casings2.class, "gt.blockcasings2", GT_Material_Casings.INSTANCE, 96); // Special handler for Pyrolyse Oven Casing on hatches... Textures.BlockIcons.casingTexturePages[0][22] = TextureFactory.of( - Block.getBlockFromItem( - ItemList.Casing_ULV.get(1) - .getItem()), - 0, - ForgeDirection.UNKNOWN, - Dyes.MACHINE_METAL.mRGBa); + Block.getBlockFromItem( + ItemList.Casing_ULV.get(1) + .getItem()), + 0, + ForgeDirection.UNKNOWN, + Dyes.MACHINE_METAL.mRGBa); GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".0.name", "Solid Steel Machine Casing"); GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".1.name", "Frost Proof Machine Casing"); @@ -91,8 +91,8 @@ public class GT_Block_Casings2 extends GT_Block_Casings_Abstract { @Override public float getExplosionResistance(Entity aTNT, World aWorld, int aX, int aY, int aZ, double eX, double eY, - double eZ) { + double eZ) { return aWorld.getBlockMetadata(aX, aY, aZ) == 8 ? Blocks.bedrock.getExplosionResistance(aTNT) - : super.getExplosionResistance(aTNT, aWorld, aX, aY, aZ, eX, eY, eZ); + : super.getExplosionResistance(aTNT, aWorld, aX, aY, aZ, eX, eY, eZ); } } diff --git a/src/main/java/gregtech/common/blocks/GT_Block_Casings3.java b/src/main/java/gregtech/common/blocks/GT_Block_Casings3.java index 3985acf049..92bb58aead 100644 --- a/src/main/java/gregtech/common/blocks/GT_Block_Casings3.java +++ b/src/main/java/gregtech/common/blocks/GT_Block_Casings3.java @@ -67,11 +67,11 @@ public class GT_Block_Casings3 extends GT_Block_Casings_Abstract { case 11 -> Textures.BlockIcons.MACHINE_CASING_VENT.getIcon(); case 12 -> Textures.BlockIcons.MACHINE_CASING_RADIATIONPROOF.getIcon(); case 13 -> aSide > 1 ? Textures.BlockIcons.MACHINE_CASING_FIREBOX_BRONZE.getIcon() - : Textures.BlockIcons.MACHINE_BRONZEPLATEDBRICKS.getIcon(); + : Textures.BlockIcons.MACHINE_BRONZEPLATEDBRICKS.getIcon(); case 14 -> aSide > 1 ? Textures.BlockIcons.MACHINE_CASING_FIREBOX_STEEL.getIcon() - : Textures.BlockIcons.MACHINE_CASING_SOLID_STEEL.getIcon(); + : Textures.BlockIcons.MACHINE_CASING_SOLID_STEEL.getIcon(); case 15 -> aSide > 1 ? Textures.BlockIcons.MACHINE_CASING_FIREBOX_TUNGSTENSTEEL.getIcon() - : Textures.BlockIcons.MACHINE_CASING_ROBUST_TUNGSTENSTEEL.getIcon(); + : Textures.BlockIcons.MACHINE_CASING_ROBUST_TUNGSTENSTEEL.getIcon(); default -> Textures.BlockIcons.MACHINE_CASING_SOLID_STEEL.getIcon(); }; } diff --git a/src/main/java/gregtech/common/blocks/GT_Block_Casings4.java b/src/main/java/gregtech/common/blocks/GT_Block_Casings4.java index e95935ab78..5b1972b59e 100644 --- a/src/main/java/gregtech/common/blocks/GT_Block_Casings4.java +++ b/src/main/java/gregtech/common/blocks/GT_Block_Casings4.java @@ -25,29 +25,27 @@ public class GT_Block_Casings4 extends GT_Block_Casings_Abstract { * original getIcon implementation to understand why it is 0, 1, etc, if that if ladder is even intelligible. */ private static final int[][] mapping = new int[][] { - { 7, 7, 7, 7, 0, 7, 0, 7, 1, 7, 1, 7, 8, 7, 8, 7, 0, 7, 0, 7, 0, 7, 0, 7, 9, 7, 9, 7, 3, 7, 3, 7, 1, 7, 1, - 7, 11, 7, 11, 7, 1, 7, 1, 7, 2, 7, 2, 7, 10, 7, 10, 7, 5, 7, 5, 7, 4, 7, 4, 7, 6, 7, 6, 7 }, - { 7, 7, 7, 7, 0, 0, 7, 7, 1, 1, 7, 7, 8, 8, 7, 7, 0, 0, 7, 7, 0, 0, 7, 7, 9, 9, 7, 7, 3, 3, 7, 7, 1, 1, 7, - 7, 11, 11, 7, 7, 1, 1, 7, 7, 2, 2, 7, 7, 10, 10, 7, 7, 5, 5, 7, 7, 4, 4, 7, 7, 6, 6, 7, 7 }, - { 7, 1, 1, 1, 0, 9, 10, 4, 7, 1, 1, 1, 0, 9, 10, 4, 0, 8, 11, 2, 0, 3, 5, 6, 0, 8, 11, 2, 0, 3, 5, 6, 7, 7, - 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7 }, - { 7, 1, 1, 1, 0, 8, 11, 2, 7, 7, 7, 7, 7, 7, 7, 7, 0, 9, 10, 4, 0, 3, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 1, 1, - 1, 0, 8, 11, 2, 7, 7, 7, 7, 7, 7, 7, 7, 0, 9, 10, 4, 0, 3, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7 }, - { 7, 1, 1, 1, 7, 1, 1, 1, 0, 8, 11, 2, 0, 8, 11, 2, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 9, - 10, 4, 0, 9, 10, 4, 0, 3, 5, 6, 0, 3, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7 }, - { 7, 1, 1, 1, 7, 7, 7, 7, 0, 9, 10, 4, 7, 7, 7, 7, 7, 1, 1, 1, 7, 7, 7, 7, 0, 9, 10, 4, 7, 7, 7, 7, 0, 8, - 11, 2, 7, 7, 7, 7, 0, 3, 5, 6, 7, 7, 7, 7, 0, 8, 11, 2, 7, 7, 7, 7, 0, 3, 5, 6, 7, 7, 7, 7 }, }; + { 7, 7, 7, 7, 0, 7, 0, 7, 1, 7, 1, 7, 8, 7, 8, 7, 0, 7, 0, 7, 0, 7, 0, 7, 9, 7, 9, 7, 3, 7, 3, 7, 1, 7, 1, 7, + 11, 7, 11, 7, 1, 7, 1, 7, 2, 7, 2, 7, 10, 7, 10, 7, 5, 7, 5, 7, 4, 7, 4, 7, 6, 7, 6, 7 }, + { 7, 7, 7, 7, 0, 0, 7, 7, 1, 1, 7, 7, 8, 8, 7, 7, 0, 0, 7, 7, 0, 0, 7, 7, 9, 9, 7, 7, 3, 3, 7, 7, 1, 1, 7, 7, + 11, 11, 7, 7, 1, 1, 7, 7, 2, 2, 7, 7, 10, 10, 7, 7, 5, 5, 7, 7, 4, 4, 7, 7, 6, 6, 7, 7 }, + { 7, 1, 1, 1, 0, 9, 10, 4, 7, 1, 1, 1, 0, 9, 10, 4, 0, 8, 11, 2, 0, 3, 5, 6, 0, 8, 11, 2, 0, 3, 5, 6, 7, 7, 7, + 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7 }, + { 7, 1, 1, 1, 0, 8, 11, 2, 7, 7, 7, 7, 7, 7, 7, 7, 0, 9, 10, 4, 0, 3, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 1, 1, 1, + 0, 8, 11, 2, 7, 7, 7, 7, 7, 7, 7, 7, 0, 9, 10, 4, 0, 3, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7 }, + { 7, 1, 1, 1, 7, 1, 1, 1, 0, 8, 11, 2, 0, 8, 11, 2, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 9, 10, 4, + 0, 9, 10, 4, 0, 3, 5, 6, 0, 3, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7 }, + { 7, 1, 1, 1, 7, 7, 7, 7, 0, 9, 10, 4, 7, 7, 7, 7, 7, 1, 1, 1, 7, 7, 7, 7, 0, 9, 10, 4, 7, 7, 7, 7, 0, 8, 11, 2, + 7, 7, 7, 7, 0, 3, 5, 6, 7, 7, 7, 7, 0, 8, 11, 2, 7, 7, 7, 7, 0, 3, 5, 6, 7, 7, 7, 7 }, }; public static boolean mConnectedMachineTextures = true; public GT_Block_Casings4() { super(GT_Item_Casings4.class, "gt.blockcasings4", GT_Material_Casings.INSTANCE, 16); - GT_LanguageManager.addStringLocalization( - getUnlocalizedName() + ".0.name", - "Robust Tungstensteel Machine Casing"); - GT_LanguageManager.addStringLocalization( - getUnlocalizedName() + ".1.name", - "Clean Stainless Steel Machine Casing"); + GT_LanguageManager + .addStringLocalization(getUnlocalizedName() + ".0.name", "Robust Tungstensteel Machine Casing"); + GT_LanguageManager + .addStringLocalization(getUnlocalizedName() + ".1.name", "Clean Stainless Steel Machine Casing"); GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".2.name", "Stable Titanium Machine Casing"); GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".3.name", "Titanium Firebox Casing"); // GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".4.name", "Fusion Casing"); @@ -94,7 +92,7 @@ public class GT_Block_Casings4 extends GT_Block_Casings_Abstract { case 1, 10 -> Textures.BlockIcons.MACHINE_CASING_CLEAN_STAINLESSSTEEL.getIcon(); case 2, 11 -> Textures.BlockIcons.MACHINE_CASING_STABLE_TITANIUM.getIcon(); case 3 -> aSide > 1 ? Textures.BlockIcons.MACHINE_CASING_FIREBOX_TITANIUM.getIcon() - : Textures.BlockIcons.MACHINE_CASING_STABLE_TITANIUM.getIcon(); + : Textures.BlockIcons.MACHINE_CASING_STABLE_TITANIUM.getIcon(); case 4 -> // Do not overwrite! Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS_YELLOW.getIcon(); @@ -116,13 +114,13 @@ public class GT_Block_Casings4 extends GT_Block_Casings_Abstract { public IIcon getTurbineCasing(int meta, int iconIndex, boolean active) { return switch (meta) { case 10 -> active ? Textures.BlockIcons.TURBINE_ACTIVE1[iconIndex].getIcon() - : Textures.BlockIcons.TURBINE1[iconIndex].getIcon(); + : Textures.BlockIcons.TURBINE1[iconIndex].getIcon(); case 11 -> active ? Textures.BlockIcons.TURBINE_ACTIVE2[iconIndex].getIcon() - : Textures.BlockIcons.TURBINE2[iconIndex].getIcon(); + : Textures.BlockIcons.TURBINE2[iconIndex].getIcon(); case 12 -> active ? Textures.BlockIcons.TURBINE_ACTIVE3[iconIndex].getIcon() - : Textures.BlockIcons.TURBINE3[iconIndex].getIcon(); + : Textures.BlockIcons.TURBINE3[iconIndex].getIcon(); default -> active ? Textures.BlockIcons.TURBINE_ACTIVE[iconIndex].getIcon() - : Textures.BlockIcons.TURBINE[iconIndex].getIcon(); + : Textures.BlockIcons.TURBINE[iconIndex].getIcon(); }; } @@ -130,17 +128,17 @@ public class GT_Block_Casings4 extends GT_Block_Casings_Abstract { public IIcon getTurbineCasing(int meta, int iconIndex, boolean active, boolean hasTurbine) { return switch (meta) { case 10 -> active ? Textures.BlockIcons.TURBINE_ACTIVE1[iconIndex].getIcon() - : hasTurbine ? Textures.BlockIcons.TURBINE1[iconIndex].getIcon() - : Textures.BlockIcons.TURBINE_EMPTY1[iconIndex].getIcon(); + : hasTurbine ? Textures.BlockIcons.TURBINE1[iconIndex].getIcon() + : Textures.BlockIcons.TURBINE_EMPTY1[iconIndex].getIcon(); case 11 -> active ? Textures.BlockIcons.TURBINE_ACTIVE2[iconIndex].getIcon() - : hasTurbine ? Textures.BlockIcons.TURBINE2[iconIndex].getIcon() - : Textures.BlockIcons.TURBINE_EMPTY2[iconIndex].getIcon(); + : hasTurbine ? Textures.BlockIcons.TURBINE2[iconIndex].getIcon() + : Textures.BlockIcons.TURBINE_EMPTY2[iconIndex].getIcon(); case 12 -> active ? Textures.BlockIcons.TURBINE_ACTIVE3[iconIndex].getIcon() - : hasTurbine ? Textures.BlockIcons.TURBINE3[iconIndex].getIcon() - : Textures.BlockIcons.TURBINE_EMPTY3[iconIndex].getIcon(); + : hasTurbine ? Textures.BlockIcons.TURBINE3[iconIndex].getIcon() + : Textures.BlockIcons.TURBINE_EMPTY3[iconIndex].getIcon(); default -> active ? Textures.BlockIcons.TURBINE_ACTIVE[iconIndex].getIcon() - : hasTurbine ? Textures.BlockIcons.TURBINE[iconIndex].getIcon() - : Textures.BlockIcons.TURBINE_EMPTY[iconIndex].getIcon(); + : hasTurbine ? Textures.BlockIcons.TURBINE[iconIndex].getIcon() + : Textures.BlockIcons.TURBINE_EMPTY[iconIndex].getIcon(); }; } @@ -148,7 +146,7 @@ public class GT_Block_Casings4 extends GT_Block_Casings_Abstract { TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ); if (!(tTileEntity instanceof IGregTechTileEntity tTile)) return 0; if (tTile.getMetaTileEntity() instanceof GT_MetaTileEntity_LargeTurbine turbine - && tTile.getFrontFacing() == aSide) { + && tTile.getFrontFacing() == aSide) { if (turbine.isNewStyleRendering()) return 0; if (tTile.isActive()) return 1; return turbine.hasTurbine() ? 2 : 3; @@ -162,7 +160,7 @@ public class GT_Block_Casings4 extends GT_Block_Casings_Abstract { aWorld = GT_RenderingWorld.getInstance(aWorld); int tMeta = aWorld.getBlockMetadata(xCoord, yCoord, zCoord); if (tMeta != 6 && tMeta != 8 && tMeta != 9 && tMeta != 10 && tMeta != 11 && tMeta != 12 - || !mConnectedMachineTextures) { + || !mConnectedMachineTextures) { return getIcon(aSide, tMeta); } if (tMeta > 8 && tMeta < 13) { @@ -174,7 +172,7 @@ public class GT_Block_Casings4 extends GT_Block_Casings_Abstract { if (i == 0 && j == 0) continue; int tState; if ((tState = isTurbineControllerWithSide(aWorld, xCoord + j, yCoord, zCoord + i, aSide)) - != 0) { + != 0) { return getTurbineCasing(tMeta, 4 - i * 3 - j, tState == 1, tState == 2); } } @@ -186,12 +184,12 @@ public class GT_Block_Casings4 extends GT_Block_Casings_Abstract { if (i == 0 && j == 0) continue; int tState; if ((tState = isTurbineControllerWithSide(aWorld, xCoord + j, yCoord + i, zCoord, aSide)) - != 0) { + != 0) { return getTurbineCasing( - tMeta, - 4 + i * 3 - j * tInvertLeftRightMod, - tState == 1, - tState == 2); + tMeta, + 4 + i * 3 - j * tInvertLeftRightMod, + tState == 1, + tState == 2); } } } @@ -202,12 +200,12 @@ public class GT_Block_Casings4 extends GT_Block_Casings_Abstract { if (i == 0 && j == 0) continue; int tState; if ((tState = isTurbineControllerWithSide(aWorld, xCoord, yCoord + i, zCoord + j, aSide)) - != 0) { + != 0) { return getTurbineCasing( - tMeta, - 4 + i * 3 + j * tInvertLeftRightMod, - tState == 1, - tState == 2); + tMeta, + 4 + i * 3 + j * tInvertLeftRightMod, + tState == 1, + tState == 2); } } } diff --git a/src/main/java/gregtech/common/blocks/GT_Block_Casings6.java b/src/main/java/gregtech/common/blocks/GT_Block_Casings6.java index 92ba33a4b9..cde7a8b5fa 100644 --- a/src/main/java/gregtech/common/blocks/GT_Block_Casings6.java +++ b/src/main/java/gregtech/common/blocks/GT_Block_Casings6.java @@ -84,7 +84,7 @@ public class GT_Block_Casings6 extends GT_Block_Casings_Abstract { @Override public int colorMultiplier(IBlockAccess aWorld, int aX, int aY, int aZ) { return gregtech.api.enums.Dyes.MACHINE_METAL.mRGBa[0] << 16 - | gregtech.api.enums.Dyes.MACHINE_METAL.mRGBa[1] << 8 - | gregtech.api.enums.Dyes.MACHINE_METAL.mRGBa[2]; + | gregtech.api.enums.Dyes.MACHINE_METAL.mRGBa[1] << 8 + | gregtech.api.enums.Dyes.MACHINE_METAL.mRGBa[2]; } } diff --git a/src/main/java/gregtech/common/blocks/GT_Block_Casings8.java b/src/main/java/gregtech/common/blocks/GT_Block_Casings8.java index 6e6313c05c..b4778ec12e 100644 --- a/src/main/java/gregtech/common/blocks/GT_Block_Casings8.java +++ b/src/main/java/gregtech/common/blocks/GT_Block_Casings8.java @@ -31,26 +31,23 @@ public class GT_Block_Casings8 extends GT_Block_Casings_Abstract { GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".3.name", "Mining Black Plutonium Casing"); GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".4.name", "Extreme Engine Intake Casing"); GT_LanguageManager.addStringLocalization( - getUnlocalizedName() + ".5.name", - "Europium Reinforced Radiation Proof Machine Casing"); + getUnlocalizedName() + ".5.name", + "Europium Reinforced Radiation Proof Machine Casing"); GT_LanguageManager.addStringLocalization( - getUnlocalizedName() + ".6.name", - "Advanced Rhodium Plated Palladium Machine Casing"); - GT_LanguageManager.addStringLocalization( - getUnlocalizedName() + ".7.name", - "Advanced Iridium Plated Machine Casing"); + getUnlocalizedName() + ".6.name", + "Advanced Rhodium Plated Palladium Machine Casing"); + GT_LanguageManager + .addStringLocalization(getUnlocalizedName() + ".7.name", "Advanced Iridium Plated Machine Casing"); GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".8.name", "Magical Machine Casing"); GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".9.name", "HSS-S Turbine Casing"); GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".10.name", "Radiant Naquadah Alloy Casing"); + GT_LanguageManager + .addStringLocalization(getUnlocalizedName() + ".11.name", "Basic Photolithographic Framework Casing"); + GT_LanguageManager + .addStringLocalization(getUnlocalizedName() + ".12.name", "Reinforced Photolithographic Framework Casing"); GT_LanguageManager.addStringLocalization( - getUnlocalizedName() + ".11.name", - "Basic Photolithographic Framework Casing"); - GT_LanguageManager.addStringLocalization( - getUnlocalizedName() + ".12.name", - "Reinforced Photolithographic Framework Casing"); - GT_LanguageManager.addStringLocalization( - getUnlocalizedName() + ".13.name", - "Radiation Proof Photolithographic Framework Casing"); + getUnlocalizedName() + ".13.name", + "Radiation Proof Photolithographic Framework Casing"); GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".14.name", "Infinity Cooled Casing"); ItemList.Casing_Chemically_Inert.set(new ItemStack(this, 1, 0)); @@ -103,20 +100,20 @@ public class GT_Block_Casings8 extends GT_Block_Casings_Abstract { public IIcon getTurbineCasing(int meta, int iconIndex, boolean active) { return switch (meta) { case 9 -> active ? Textures.BlockIcons.TURBINE_ADVGASACTIVE[iconIndex].getIcon() - : Textures.BlockIcons.TURBINEADVGAS[iconIndex].getIcon(); + : Textures.BlockIcons.TURBINEADVGAS[iconIndex].getIcon(); default -> active ? Textures.BlockIcons.TURBINE_ACTIVE[iconIndex].getIcon() - : Textures.BlockIcons.TURBINE[iconIndex].getIcon(); + : Textures.BlockIcons.TURBINE[iconIndex].getIcon(); }; } public IIcon getTurbineCasing(int meta, int iconIndex, boolean active, boolean hasTurbine) { return switch (meta) { case 9 -> active ? Textures.BlockIcons.TURBINE_ADVGASACTIVE[iconIndex].getIcon() - : hasTurbine ? Textures.BlockIcons.TURBINEADVGAS[iconIndex].getIcon() - : Textures.BlockIcons.TURBINE_ADVGASEMPTY[iconIndex].getIcon(); + : hasTurbine ? Textures.BlockIcons.TURBINEADVGAS[iconIndex].getIcon() + : Textures.BlockIcons.TURBINE_ADVGASEMPTY[iconIndex].getIcon(); default -> active ? Textures.BlockIcons.TURBINE_ACTIVE[iconIndex].getIcon() - : hasTurbine ? Textures.BlockIcons.TURBINE[iconIndex].getIcon() - : Textures.BlockIcons.TURBINE_EMPTY[iconIndex].getIcon(); + : hasTurbine ? Textures.BlockIcons.TURBINE[iconIndex].getIcon() + : Textures.BlockIcons.TURBINE_EMPTY[iconIndex].getIcon(); }; } @@ -124,7 +121,7 @@ public class GT_Block_Casings8 extends GT_Block_Casings_Abstract { TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ); if (!(tTileEntity instanceof IGregTechTileEntity tTile)) return 0; if (tTile.getMetaTileEntity() instanceof GT_MetaTileEntity_LargeTurbine turbine - && tTile.getFrontFacing() == aSide) { + && tTile.getFrontFacing() == aSide) { if (turbine.isNewStyleRendering()) return 0; if (tTile.isActive()) return 1; return turbine.hasTurbine() ? 2 : 3; @@ -149,7 +146,7 @@ public class GT_Block_Casings8 extends GT_Block_Casings_Abstract { if (i == 0 && j == 0) continue; int tState; if ((tState = isTurbineControllerWithSide(aWorld, xCoord + j, yCoord, zCoord + i, aSide)) - != 0) { + != 0) { return getTurbineCasing(tMeta, 4 - i * 3 - j, tState == 1, tState == 2); } } @@ -161,12 +158,12 @@ public class GT_Block_Casings8 extends GT_Block_Casings_Abstract { if (i == 0 && j == 0) continue; int tState; if ((tState = isTurbineControllerWithSide(aWorld, xCoord + j, yCoord + i, zCoord, aSide)) - != 0) { + != 0) { return getTurbineCasing( - tMeta, - 4 + i * 3 - j * tInvertLeftRightMod, - tState == 1, - tState == 2); + tMeta, + 4 + i * 3 - j * tInvertLeftRightMod, + tState == 1, + tState == 2); } } } @@ -177,12 +174,12 @@ public class GT_Block_Casings8 extends GT_Block_Casings_Abstract { if (i == 0 && j == 0) continue; int tState; if ((tState = isTurbineControllerWithSide(aWorld, xCoord, yCoord + i, zCoord + j, aSide)) - != 0) { + != 0) { return getTurbineCasing( - tMeta, - 4 + i * 3 + j * tInvertLeftRightMod, - tState == 1, - tState == 2); + tMeta, + 4 + i * 3 + j * tInvertLeftRightMod, + tState == 1, + tState == 2); } } } diff --git a/src/main/java/gregtech/common/blocks/GT_Block_Casings9.java b/src/main/java/gregtech/common/blocks/GT_Block_Casings9.java index 79a026af44..0aa9ca916f 100644 --- a/src/main/java/gregtech/common/blocks/GT_Block_Casings9.java +++ b/src/main/java/gregtech/common/blocks/GT_Block_Casings9.java @@ -15,9 +15,8 @@ public class GT_Block_Casings9 extends GT_Block_Casings_Abstract { super(GT_Item_Casings9.class, "gt.blockcasings9", GT_Material_Casings.INSTANCE, 2); GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".0.name", "PBI Pipe Casing"); GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".1.name", "Advanced Filter Casing"); - GT_LanguageManager.addStringLocalization( - getUnlocalizedName() + ".1.tooltip", - "Less than five 0.1μm particles per m^3"); + GT_LanguageManager + .addStringLocalization(getUnlocalizedName() + ".1.tooltip", "Less than five 0.1μm particles per m^3"); ItemList.Casing_Pipe_Polybenzimidazole.set(new ItemStack(this, 1, 0)); ItemList.Casing_Vent_T2.set(new ItemStack(this, 1, 1)); diff --git a/src/main/java/gregtech/common/blocks/GT_Block_Casings_Abstract.java b/src/main/java/gregtech/common/blocks/GT_Block_Casings_Abstract.java index a7dd8a1fd1..cef97ecb95 100644 --- a/src/main/java/gregtech/common/blocks/GT_Block_Casings_Abstract.java +++ b/src/main/java/gregtech/common/blocks/GT_Block_Casings_Abstract.java @@ -25,7 +25,7 @@ import gregtech.api.render.TextureFactory; import gregtech.api.util.GT_LanguageManager; public abstract class GT_Block_Casings_Abstract extends GT_Generic_Block - implements gregtech.api.interfaces.IHasIndexedTexture { + implements gregtech.api.interfaces.IHasIndexedTexture { public GT_Block_Casings_Abstract(Class aItemClass, String aName, Material aMaterial) { super(aItemClass, aName, aMaterial); @@ -36,7 +36,7 @@ public abstract class GT_Block_Casings_Abstract extends GT_Generic_Block } public GT_Block_Casings_Abstract(Class aItemClass, String aName, Material aMaterial, - int aMaxMeta) { + int aMaxMeta) { this(aItemClass, aName, aMaterial); for (int i = 0; i < aMaxMeta; i++) { Textures.BlockIcons.setCasingTextureForId(getTextureIndex(i), TextureFactory.of(this, i)); @@ -127,8 +127,7 @@ public abstract class GT_Block_Casings_Abstract extends GT_Generic_Block for (int i = 0; i < 16; i++) { ItemStack aStack = new ItemStack(aItem, 1, i); if (!aStack.getDisplayName() - .contains(".name")) - aList.add(aStack); + .contains(".name")) aList.add(aStack); } } diff --git a/src/main/java/gregtech/common/blocks/GT_Block_Concretes.java b/src/main/java/gregtech/common/blocks/GT_Block_Concretes.java index 0207ab975a..ae3588cfa3 100644 --- a/src/main/java/gregtech/common/blocks/GT_Block_Concretes.java +++ b/src/main/java/gregtech/common/blocks/GT_Block_Concretes.java @@ -73,8 +73,8 @@ public class GT_Block_Concretes extends GT_Block_Stones_Abstract implements IBlo @Override public void onWalkOver(EntityLivingBase aEntity, World aWorld, int aX, int aY, int aZ) { if ((aEntity.motionX != 0 || aEntity.motionZ != 0) && !aEntity.isInWater() - && !aEntity.isWet() - && !aEntity.isSneaking()) { + && !aEntity.isWet() + && !aEntity.isSneaking()) { double tSpeed = (aWorld.getBlock(aX, aY - 1, aZ).slipperiness >= 0.8 ? 1.5 : 1.2); aEntity.motionX *= tSpeed; aEntity.motionZ *= tSpeed; diff --git a/src/main/java/gregtech/common/blocks/GT_Block_Machines.java b/src/main/java/gregtech/common/blocks/GT_Block_Machines.java index eb8adf7872..e0215e77eb 100644 --- a/src/main/java/gregtech/common/blocks/GT_Block_Machines.java +++ b/src/main/java/gregtech/common/blocks/GT_Block_Machines.java @@ -231,18 +231,12 @@ public class GT_Block_Machines extends GT_Generic_Block implements IDebugableBlo @SuppressWarnings("unchecked") // Old API uses raw List type @Override public void addCollisionBoxesToList(World aWorld, int aX, int aY, int aZ, AxisAlignedBB inputAABB, - List outputAABB, Entity collider) { + List outputAABB, Entity collider) { final TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ); if (tTileEntity instanceof IGregTechTileEntity - && ((IGregTechTileEntity) tTileEntity).getMetaTileEntity() != null) { - ((IGregTechTileEntity) tTileEntity).addCollisionBoxesToList( - aWorld, - aX, - aY, - aZ, - inputAABB, - outputAABB, - collider); + && ((IGregTechTileEntity) tTileEntity).getMetaTileEntity() != null) { + ((IGregTechTileEntity) tTileEntity) + .addCollisionBoxesToList(aWorld, aX, aY, aZ, inputAABB, outputAABB, collider); return; } super.addCollisionBoxesToList(aWorld, aX, aY, aZ, inputAABB, outputAABB, collider); @@ -252,7 +246,7 @@ public class GT_Block_Machines extends GT_Generic_Block implements IDebugableBlo public AxisAlignedBB getCollisionBoundingBoxFromPool(World aWorld, int aX, int aY, int aZ) { final TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ); if (tTileEntity instanceof IGregTechTileEntity - && ((IGregTechTileEntity) tTileEntity).getMetaTileEntity() != null) { + && ((IGregTechTileEntity) tTileEntity).getMetaTileEntity() != null) { return ((IGregTechTileEntity) tTileEntity).getCollisionBoundingBoxFromPool(aWorld, aX, aY, aZ); } return super.getCollisionBoundingBoxFromPool(aWorld, aX, aY, aZ); @@ -263,7 +257,7 @@ public class GT_Block_Machines extends GT_Generic_Block implements IDebugableBlo public AxisAlignedBB getSelectedBoundingBoxFromPool(World aWorld, int aX, int aY, int aZ) { final TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ); if (tTileEntity instanceof IGregTechTileEntity - && ((IGregTechTileEntity) tTileEntity).getMetaTileEntity() != null) { + && ((IGregTechTileEntity) tTileEntity).getMetaTileEntity() != null) { return ((IGregTechTileEntity) tTileEntity).getCollisionBoundingBoxFromPool(aWorld, aX, aY, aZ); } return super.getSelectedBoundingBoxFromPool(aWorld, aX, aY, aZ); @@ -273,12 +267,9 @@ public class GT_Block_Machines extends GT_Generic_Block implements IDebugableBlo public void setBlockBoundsBasedOnState(IBlockAccess blockAccess, int aX, int aY, int aZ) { final TileEntity tTileEntity = blockAccess.getTileEntity(aX, aY, aZ); if (tTileEntity instanceof IGregTechTileEntity - && (((IGregTechTileEntity) tTileEntity).getMetaTileEntity() != null)) { - final AxisAlignedBB bbb = ((IGregTechTileEntity) tTileEntity).getCollisionBoundingBoxFromPool( - ((IGregTechTileEntity) tTileEntity).getWorld(), - 0, - 0, - 0); + && (((IGregTechTileEntity) tTileEntity).getMetaTileEntity() != null)) { + final AxisAlignedBB bbb = ((IGregTechTileEntity) tTileEntity) + .getCollisionBoundingBoxFromPool(((IGregTechTileEntity) tTileEntity).getWorld(), 0, 0, 0); minX = bbb.minX; // This essentially sets block bounds minY = bbb.minY; minZ = bbb.minZ; @@ -299,7 +290,7 @@ public class GT_Block_Machines extends GT_Generic_Block implements IDebugableBlo public void onEntityCollidedWithBlock(World aWorld, int aX, int aY, int aZ, Entity collider) { final TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ); if (tTileEntity instanceof IGregTechTileEntity - && ((IGregTechTileEntity) tTileEntity).getMetaTileEntity() != null) { + && ((IGregTechTileEntity) tTileEntity).getMetaTileEntity() != null) { ((IGregTechTileEntity) tTileEntity).onEntityCollidedWithBlock(aWorld, aX, aY, aZ, collider); return; } @@ -348,13 +339,13 @@ public class GT_Block_Machines extends GT_Generic_Block implements IDebugableBlo public float getPlayerRelativeBlockHardness(EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ) { final TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ); return tTileEntity instanceof BaseMetaTileEntity && ((BaseMetaTileEntity) tTileEntity).privateAccess() - && !((BaseMetaTileEntity) tTileEntity).playerOwnsThis(aPlayer, true) ? -1.0F - : super.getPlayerRelativeBlockHardness(aPlayer, aWorld, aX, aY, aZ); + && !((BaseMetaTileEntity) tTileEntity).playerOwnsThis(aPlayer, true) ? -1.0F + : super.getPlayerRelativeBlockHardness(aPlayer, aWorld, aX, aY, aZ); } @Override public boolean onBlockActivated(World aWorld, int aX, int aY, int aZ, EntityPlayer aPlayer, int aSide, - float aOffsetX, float aOffsetY, float aOffsetZ) { + float aOffsetX, float aOffsetY, float aOffsetZ) { final TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ); if (tTileEntity == null) { return false; @@ -362,10 +353,9 @@ public class GT_Block_Machines extends GT_Generic_Block implements IDebugableBlo if (aPlayer.isSneaking()) { final ItemStack tCurrentItem = aPlayer.inventory.getCurrentItem(); if (tCurrentItem != null && !GT_Utility.isStackInList(tCurrentItem, GregTech_API.sScrewdriverList) - && !GT_Utility.isStackInList(tCurrentItem, GregTech_API.sWrenchList) - && !GT_Utility.isStackInList(tCurrentItem, GregTech_API.sWireCutterList) - && !GT_Utility.isStackInList(tCurrentItem, GregTech_API.sSolderingToolList)) - return false; + && !GT_Utility.isStackInList(tCurrentItem, GregTech_API.sWrenchList) + && !GT_Utility.isStackInList(tCurrentItem, GregTech_API.sWireCutterList) + && !GT_Utility.isStackInList(tCurrentItem, GregTech_API.sSolderingToolList)) return false; } if ((tTileEntity instanceof IGregTechTileEntity)) { if (((IGregTechTileEntity) tTileEntity).getTimer() < 50L) { @@ -374,12 +364,8 @@ public class GT_Block_Machines extends GT_Generic_Block implements IDebugableBlo if ((!aWorld.isRemote) && !((IGregTechTileEntity) tTileEntity).isUseableByPlayer(aPlayer)) { return true; } - return ((IGregTechTileEntity) tTileEntity).onRightclick( - aPlayer, - (byte) aSide, - aOffsetX, - aOffsetY, - aOffsetZ); + return ((IGregTechTileEntity) tTileEntity) + .onRightclick(aPlayer, (byte) aSide, aOffsetX, aOffsetY, aOffsetZ); } return false; } @@ -406,11 +392,11 @@ public class GT_Block_Machines extends GT_Generic_Block implements IDebugableBlo final TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ); if (tTileEntity instanceof BaseMetaTileEntity) { GT_Log.exp.printf( - "Explosion at : %d | %d | %d DIMID: %s due to near explosion!%n", - aX, - aY, - aZ, - aWorld.provider.dimensionId); + "Explosion at : %d | %d | %d DIMID: %s due to near explosion!%n", + aX, + aY, + aZ, + aWorld.provider.dimensionId); ((BaseMetaTileEntity) tTileEntity).doEnergyExplosion(); } super.onBlockExploded(aWorld, aX, aY, aZ, aExplosion); @@ -427,19 +413,19 @@ public class GT_Block_Machines extends GT_Generic_Block implements IDebugableBlo for (int i = 0; i < tGregTechTileEntity.getSizeInventory(); i++) { final ItemStack tItem = tGregTechTileEntity.getStackInSlot(i); if ((tItem != null) && (tItem.stackSize > 0) - && (tGregTechTileEntity.isValidSlot(i)) - && tGregTechTileEntity.shouldDropItemAt(i)) { + && (tGregTechTileEntity.isValidSlot(i)) + && tGregTechTileEntity.shouldDropItemAt(i)) { final EntityItem tItemEntity = new EntityItem( - aWorld, - aX + XSTR_INSTANCE.nextFloat() * 0.8F + 0.1F, - aY + XSTR_INSTANCE.nextFloat() * 0.8F + 0.1F, - aZ + XSTR_INSTANCE.nextFloat() * 0.8F + 0.1F, - new ItemStack(tItem.getItem(), tItem.stackSize, tItem.getItemDamage())); + aWorld, + aX + XSTR_INSTANCE.nextFloat() * 0.8F + 0.1F, + aY + XSTR_INSTANCE.nextFloat() * 0.8F + 0.1F, + aZ + XSTR_INSTANCE.nextFloat() * 0.8F + 0.1F, + new ItemStack(tItem.getItem(), tItem.stackSize, tItem.getItemDamage())); if (tItem.hasTagCompound()) { tItemEntity.getEntityItem() - .setTagCompound( - (NBTTagCompound) tItem.getTagCompound() - .copy()); + .setTagCompound( + (NBTTagCompound) tItem.getTagCompound() + .copy()); } tItemEntity.motionX = (XSTR_INSTANCE.nextGaussian() * 0.05D); tItemEntity.motionY = (XSTR_INSTANCE.nextGaussian() * 0.25D); @@ -519,17 +505,17 @@ public class GT_Block_Machines extends GT_Generic_Block implements IDebugableBlo @Override public void dropBlockAsItemWithChance(World aWorld, int aX, int aY, int aZ, int aMetadata, float chance, - int aFortune) { + int aFortune) { if (!aWorld.isRemote) { final TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ); if (tTileEntity != null && (chance < 1.0F)) { if (tTileEntity instanceof BaseMetaTileEntity && (GregTech_API.sMachineNonWrenchExplosions)) { GT_Log.exp.printf( - "Explosion at : %d | %d | %d DIMID: %s NonWrench picking/Rain!%n", - aX, - aY, - aZ, - aWorld.provider.dimensionId); + "Explosion at : %d | %d | %d DIMID: %s NonWrench picking/Rain!%n", + aX, + aY, + aZ, + aWorld.provider.dimensionId); ((BaseMetaTileEntity) tTileEntity).doEnergyExplosion(); } } else { @@ -549,11 +535,11 @@ public class GT_Block_Machines extends GT_Generic_Block implements IDebugableBlo return true; } if (tTileEntity instanceof BaseMetaPipeEntity - && (((BaseMetaPipeEntity) tTileEntity).mConnections & 0xFFFFFFC0) != 0) { + && (((BaseMetaPipeEntity) tTileEntity).mConnections & 0xFFFFFFC0) != 0) { return true; } return tTileEntity instanceof ICoverable - && ((ICoverable) tTileEntity).getCoverIDAtSide((byte) aSide.ordinal()) != 0; + && ((ICoverable) tTileEntity).getCoverIDAtSide((byte) aSide.ordinal()) != 0; } return false; } @@ -609,7 +595,7 @@ public class GT_Block_Machines extends GT_Generic_Block implements IDebugableBlo @Override public float getExplosionResistance(Entity entity, World aWorld, int aX, int aY, int aZ, double explosionX, - double explosionY, double explosionZ) { + double explosionY, double explosionZ) { final TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ); if (tTileEntity instanceof IGregTechTileEntity) { return ((IGregTechTileEntity) tTileEntity).getBlastResistance((byte) 6); @@ -633,7 +619,7 @@ public class GT_Block_Machines extends GT_Generic_Block implements IDebugableBlo final TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ); if (!(tTileEntity instanceof IGregTechTileEntity iGregTechTileEntity)) return; iGregTechTileEntity.setFrontFacing( - BaseTileEntity.getSideForPlayerPlacing(aPlayer, SIDE_UP, iGregTechTileEntity.getValidFacings())); + BaseTileEntity.getSideForPlayerPlacing(aPlayer, SIDE_UP, iGregTechTileEntity.getValidFacings())); } @Override @@ -665,14 +651,14 @@ public class GT_Block_Machines extends GT_Generic_Block implements IDebugableBlo final byte aSide = (byte) side; if (side != -1) { final Block facadeBlock = tile.getCoverInfoAtSide(aSide) - .getFacadeBlock(); + .getFacadeBlock(); if (facadeBlock != null) return facadeBlock; } else { // we do not allow more than one type of facade per block, so no need to check every side // see comment in gregtech.common.covers.GT_Cover_FacadeBase.isCoverPlaceable for (byte tSide : ALL_VALID_SIDES) { final Block facadeBlock = tile.getCoverInfoAtSide(tSide) - .getFacadeBlock(); + .getFacadeBlock(); if (facadeBlock != null) { return facadeBlock; } diff --git a/src/main/java/gregtech/common/blocks/GT_Block_Metal.java b/src/main/java/gregtech/common/blocks/GT_Block_Metal.java index 00b12eb804..b8aa8b0e00 100644 --- a/src/main/java/gregtech/common/blocks/GT_Block_Metal.java +++ b/src/main/java/gregtech/common/blocks/GT_Block_Metal.java @@ -33,8 +33,8 @@ public class GT_Block_Metal extends GT_Block_Storage { for (int i = 0; i < aMats.length; i++) { if (aMats[i].mMetaItemSubID > 0 && aMats[i].mHasParentMod) { GT_LanguageManager.addStringLocalization( - getUnlocalizedName() + "." + i + ".name", - "Block of " + (GT_LanguageManager.i18nPlaceholder ? "%material" : aMats[i].mDefaultLocalName)); + getUnlocalizedName() + "." + i + ".name", + "Block of " + (GT_LanguageManager.i18nPlaceholder ? "%material" : aMats[i].mDefaultLocalName)); GT_OreDictUnificator.registerOre(aPrefix, aMats[i], new ItemStack(this, 1, i)); } } diff --git a/src/main/java/gregtech/common/blocks/GT_Block_Ores.java b/src/main/java/gregtech/common/blocks/GT_Block_Ores.java index db239341a3..11768763a8 100644 --- a/src/main/java/gregtech/common/blocks/GT_Block_Ores.java +++ b/src/main/java/gregtech/common/blocks/GT_Block_Ores.java @@ -41,8 +41,8 @@ public class GT_Block_Ores extends GT_Block_Ores_Abstract { public OrePrefixes[] getProcessingPrefix() { // Must have 8 entries; an entry can be null to disable automatic // recipes. return new OrePrefixes[] { OrePrefixes.ore, OrePrefixes.oreNetherrack, OrePrefixes.oreEndstone, - OrePrefixes.oreBlackgranite, OrePrefixes.oreRedgranite, OrePrefixes.oreMarble, OrePrefixes.oreBasalt, - null }; + OrePrefixes.oreBlackgranite, OrePrefixes.oreRedgranite, OrePrefixes.oreMarble, OrePrefixes.oreBasalt, + null }; } @Override @@ -92,14 +92,14 @@ public class GT_Block_Ores extends GT_Block_Ores_Abstract { @Override public Materials[] getDroppedDusts() { // Must have 8 entries; can be null. return new Materials[] { Materials.Stone, Materials.Netherrack, Materials.Endstone, Materials.GraniteBlack, - Materials.GraniteRed, Materials.Marble, Materials.Basalt, Materials.Stone }; + Materials.GraniteRed, Materials.Marble, Materials.Basalt, Materials.Stone }; } @Override public boolean[] getEnabledMetas() { return new boolean[] { true, true, true, GT_Mod.gregtechproxy.enableBlackGraniteOres, - GT_Mod.gregtechproxy.enableRedGraniteOres, GT_Mod.gregtechproxy.enableMarbleOres, - GT_Mod.gregtechproxy.enableBasaltOres, true }; + GT_Mod.gregtechproxy.enableRedGraniteOres, GT_Mod.gregtechproxy.enableMarbleOres, + GT_Mod.gregtechproxy.enableBasaltOres, true }; } @Override @@ -109,21 +109,21 @@ public class GT_Block_Ores extends GT_Block_Ores_Abstract { rTextures[1] = TextureFactory.of(Blocks.netherrack); rTextures[2] = TextureFactory.of(Blocks.end_stone); rTextures[3] = TextureFactory.builder() - .addIcon(GRANITE_BLACK_STONE) - .stdOrient() - .build(); + .addIcon(GRANITE_BLACK_STONE) + .stdOrient() + .build(); rTextures[4] = TextureFactory.builder() - .addIcon(GRANITE_RED_STONE) - .stdOrient() - .build(); + .addIcon(GRANITE_RED_STONE) + .stdOrient() + .build(); rTextures[5] = TextureFactory.builder() - .addIcon(MARBLE_STONE) - .stdOrient() - .build(); + .addIcon(MARBLE_STONE) + .stdOrient() + .build(); rTextures[6] = TextureFactory.builder() - .addIcon(BASALT_STONE) - .stdOrient() - .build(); + .addIcon(BASALT_STONE) + .stdOrient() + .build(); return rTextures; } } diff --git a/src/main/java/gregtech/common/blocks/GT_Block_Ores_Abstract.java b/src/main/java/gregtech/common/blocks/GT_Block_Ores_Abstract.java index 64f6b2e8ae..10fb15a77c 100644 --- a/src/main/java/gregtech/common/blocks/GT_Block_Ores_Abstract.java +++ b/src/main/java/gregtech/common/blocks/GT_Block_Ores_Abstract.java @@ -50,7 +50,7 @@ public abstract class GT_Block_Ores_Abstract extends GT_Generic_Block implements public static Set aBlockedOres = new HashSet<>(); protected GT_Block_Ores_Abstract(String aUnlocalizedName, int aOreMetaCount, boolean aHideFirstMeta, - Material aMaterial) { + Material aMaterial) { super(GT_Item_Ores.class, aUnlocalizedName, aMaterial); this.isBlockContainer = true; setStepSound(soundTypeStone); @@ -66,28 +66,27 @@ public abstract class GT_Block_Ores_Abstract extends GT_Generic_Block implements for (int j = 0; j < aOreMetaCount; j++) { if (!this.getEnabledMetas()[j]) continue; GT_LanguageManager.addStringLocalization( - getUnlocalizedName() + "." + (i + (j * 1000)) + DOT_NAME, - GT_LanguageManager.i18nPlaceholder - ? getLocalizedNameFormat(GregTech_API.sGeneratedMaterials[i]) - : getLocalizedName(GregTech_API.sGeneratedMaterials[i])); + getUnlocalizedName() + "." + (i + (j * 1000)) + DOT_NAME, + GT_LanguageManager.i18nPlaceholder ? getLocalizedNameFormat(GregTech_API.sGeneratedMaterials[i]) + : getLocalizedName(GregTech_API.sGeneratedMaterials[i])); GT_LanguageManager.addStringLocalization( - getUnlocalizedName() + "." + (i + (j * 1000)) + DOT_TOOLTIP, - GregTech_API.sGeneratedMaterials[i].getToolTip()); + getUnlocalizedName() + "." + (i + (j * 1000)) + DOT_TOOLTIP, + GregTech_API.sGeneratedMaterials[i].getToolTip()); GT_LanguageManager.addStringLocalization( - getUnlocalizedName() + "." + ((i + 16000) + (j * 1000)) + DOT_NAME, - "Small " + (GT_LanguageManager.i18nPlaceholder - ? getLocalizedNameFormat(GregTech_API.sGeneratedMaterials[i]) - : getLocalizedName(GregTech_API.sGeneratedMaterials[i]))); + getUnlocalizedName() + "." + ((i + 16000) + (j * 1000)) + DOT_NAME, + "Small " + (GT_LanguageManager.i18nPlaceholder + ? getLocalizedNameFormat(GregTech_API.sGeneratedMaterials[i]) + : getLocalizedName(GregTech_API.sGeneratedMaterials[i]))); GT_LanguageManager.addStringLocalization( - getUnlocalizedName() + "." + ((i + 16000) + (j * 1000)) + DOT_TOOLTIP, - GregTech_API.sGeneratedMaterials[i].getToolTip()); + getUnlocalizedName() + "." + ((i + 16000) + (j * 1000)) + DOT_TOOLTIP, + GregTech_API.sGeneratedMaterials[i].getToolTip()); if ((GregTech_API.sGeneratedMaterials[i].mTypes & 0x8) != 0 - && !aBlockedOres.contains(GregTech_API.sGeneratedMaterials[i])) { + && !aBlockedOres.contains(GregTech_API.sGeneratedMaterials[i])) { GT_OreDictUnificator.registerOre( - this.getProcessingPrefix()[j] != null - ? this.getProcessingPrefix()[j].get(GregTech_API.sGeneratedMaterials[i]) - : "", - new ItemStack(this, 1, i + (j * 1000))); + this.getProcessingPrefix()[j] != null + ? this.getProcessingPrefix()[j].get(GregTech_API.sGeneratedMaterials[i]) + : "", + new ItemStack(this, 1, i + (j * 1000))); if (tHideOres) { if (!(j == 0 && !aHideFirstMeta)) { codechicken.nei.api.API.hideItem(new ItemStack(this, 1, i + (j * 1000))); @@ -142,7 +141,7 @@ public abstract class GT_Block_Ores_Abstract extends GT_Generic_Block implements @Override public boolean onBlockActivated(World aWorld, int aX, int aY, int aZ, EntityPlayer aPlayer, int aSide, - float aOffsetX, float aOffsetY, float aOffsetZ) { + float aOffsetX, float aOffsetY, float aOffsetZ) { if (!aPlayer.isSneaking() || !aPlayer.capabilities.isCreativeMode) { return false; } @@ -159,7 +158,7 @@ public abstract class GT_Block_Ores_Abstract extends GT_Generic_Block implements @Override public boolean onBlockEventReceived(World p_149696_1_, int p_149696_2_, int p_149696_3_, int p_149696_4_, - int p_149696_5_, int p_149696_6_) { + int p_149696_5_, int p_149696_6_) { super.onBlockEventReceived(p_149696_1_, p_149696_2_, p_149696_3_, p_149696_4_, p_149696_5_, p_149696_6_); TileEntity tileentity = p_149696_1_.getTileEntity(p_149696_2_, p_149696_3_, p_149696_4_); return tileentity != null && tileentity.receiveClientEvent(p_149696_5_, p_149696_6_); @@ -187,7 +186,7 @@ public abstract class GT_Block_Ores_Abstract extends GT_Generic_Block implements @Override public float getExplosionResistance(Entity entity, World aWorld, int aX, int aY, int aZ, double explosionX, - double explosionY, double explosionZ) { + double explosionY, double explosionZ) { return 1.0F + getHarvestLevel(aWorld.getBlockMetadata(aX, aY, aZ)) * 1.0F; } @@ -251,14 +250,8 @@ public abstract class GT_Block_Ores_Abstract extends GT_Generic_Block implements @Override @SideOnly(Side.CLIENT) public boolean addHitEffects(World worldObj, MovingObjectPosition target, EffectRenderer effectRenderer) { - GT_Renderer_Block.addHitEffects( - effectRenderer, - this, - worldObj, - target.blockX, - target.blockY, - target.blockZ, - target.sideHit); + GT_Renderer_Block + .addHitEffects(effectRenderer, this, worldObj, target.blockX, target.blockY, target.blockZ, target.sideHit); return true; } @@ -304,8 +297,8 @@ public abstract class GT_Block_Ores_Abstract extends GT_Generic_Block implements return ((GT_TileEntity_Ores) tTileEntity).getDrops(getDroppedBlock(), aFortune); } return mTemporaryTileEntity.get() == null ? new ArrayList<>() - : mTemporaryTileEntity.get() - .getDrops(getDroppedBlock(), aFortune); + : mTemporaryTileEntity.get() + .getDrops(getDroppedBlock(), aFortune); } @Override @@ -324,8 +317,7 @@ public abstract class GT_Block_Ores_Abstract extends GT_Generic_Block implements if ((tMaterial != null) && ((tMaterial.mTypes & 0x8) != 0) && !aBlockedOres.contains(tMaterial)) { for (int meta = i; meta < 23000 + i; meta += 1000) { if (!(new ItemStack(aItem, 1, meta).getDisplayName() - .contains(DOT_NAME))) - aList.add(new ItemStack(aItem, 1, meta)); + .contains(DOT_NAME))) aList.add(new ItemStack(aItem, 1, meta)); } } } diff --git a/src/main/java/gregtech/common/blocks/GT_Block_Ores_UB1.java b/src/main/java/gregtech/common/blocks/GT_Block_Ores_UB1.java index 2a27ee0cf9..cacf903c81 100644 --- a/src/main/java/gregtech/common/blocks/GT_Block_Ores_UB1.java +++ b/src/main/java/gregtech/common/blocks/GT_Block_Ores_UB1.java @@ -31,7 +31,7 @@ public class GT_Block_Ores_UB1 extends GT_Block_Ores_Abstract { @Override public OrePrefixes[] getProcessingPrefix() { // Must have 8 entries. return new OrePrefixes[] { OrePrefixes.oreRedgranite, OrePrefixes.oreBlackgranite, OrePrefixes.ore, - OrePrefixes.ore, OrePrefixes.ore, OrePrefixes.oreBasalt, OrePrefixes.ore, OrePrefixes.ore }; + OrePrefixes.ore, OrePrefixes.ore, OrePrefixes.oreBasalt, OrePrefixes.ore, OrePrefixes.ore }; } @Override @@ -52,7 +52,7 @@ public class GT_Block_Ores_UB1 extends GT_Block_Ores_Abstract { @Override public Materials[] getDroppedDusts() { // Must have 8 entries; can be null. return new Materials[] { Materials.Stone, Materials.Stone, Materials.Stone, Materials.Stone, Materials.Stone, - Materials.Stone, Materials.Stone, Materials.Stone }; + Materials.Stone, Materials.Stone, Materials.Stone }; } @Override @@ -63,10 +63,10 @@ public class GT_Block_Ores_UB1 extends GT_Block_Ores_Abstract { @Override public ITexture[] getTextureSet() { // Must have 16 entries. return new ITexture[] { TextureFactory.of(aUBBlock, 0), TextureFactory.of(aUBBlock, 1), - TextureFactory.of(aUBBlock, 2), TextureFactory.of(aUBBlock, 3), TextureFactory.of(aUBBlock, 4), - TextureFactory.of(aUBBlock, 5), TextureFactory.of(aUBBlock, 6), TextureFactory.of(aUBBlock, 7), - TextureFactory.of(aUBBlock, 0), TextureFactory.of(aUBBlock, 1), TextureFactory.of(aUBBlock, 2), - TextureFactory.of(aUBBlock, 3), TextureFactory.of(aUBBlock, 4), TextureFactory.of(aUBBlock, 5), - TextureFactory.of(aUBBlock, 6), TextureFactory.of(aUBBlock, 7) }; + TextureFactory.of(aUBBlock, 2), TextureFactory.of(aUBBlock, 3), TextureFactory.of(aUBBlock, 4), + TextureFactory.of(aUBBlock, 5), TextureFactory.of(aUBBlock, 6), TextureFactory.of(aUBBlock, 7), + TextureFactory.of(aUBBlock, 0), TextureFactory.of(aUBBlock, 1), TextureFactory.of(aUBBlock, 2), + TextureFactory.of(aUBBlock, 3), TextureFactory.of(aUBBlock, 4), TextureFactory.of(aUBBlock, 5), + TextureFactory.of(aUBBlock, 6), TextureFactory.of(aUBBlock, 7) }; } } diff --git a/src/main/java/gregtech/common/blocks/GT_Block_Ores_UB2.java b/src/main/java/gregtech/common/blocks/GT_Block_Ores_UB2.java index d7f08f2466..db8dc4347c 100644 --- a/src/main/java/gregtech/common/blocks/GT_Block_Ores_UB2.java +++ b/src/main/java/gregtech/common/blocks/GT_Block_Ores_UB2.java @@ -32,7 +32,7 @@ public class GT_Block_Ores_UB2 extends GT_Block_Ores_Abstract { public OrePrefixes[] getProcessingPrefix() { // Must have 8 entries; an entry can be null to disable automatic // recipes. return new OrePrefixes[] { OrePrefixes.ore, OrePrefixes.ore, OrePrefixes.oreMarble, OrePrefixes.ore, - OrePrefixes.ore, OrePrefixes.ore, OrePrefixes.ore, OrePrefixes.ore }; + OrePrefixes.ore, OrePrefixes.ore, OrePrefixes.ore, OrePrefixes.ore }; } @Override @@ -53,7 +53,7 @@ public class GT_Block_Ores_UB2 extends GT_Block_Ores_Abstract { @Override public Materials[] getDroppedDusts() { // Must have 8 entries; can be null. return new Materials[] { Materials.Stone, Materials.Stone, Materials.Stone, Materials.Stone, Materials.Stone, - Materials.Stone, Materials.Stone, Materials.Stone }; + Materials.Stone, Materials.Stone, Materials.Stone }; } @Override @@ -64,10 +64,10 @@ public class GT_Block_Ores_UB2 extends GT_Block_Ores_Abstract { @Override public ITexture[] getTextureSet() { // Must have 16 entries. return new ITexture[] { TextureFactory.of(aUBBlock, 0), TextureFactory.of(aUBBlock, 1), - TextureFactory.of(aUBBlock, 2), TextureFactory.of(aUBBlock, 3), TextureFactory.of(aUBBlock, 4), - TextureFactory.of(aUBBlock, 5), TextureFactory.of(aUBBlock, 6), TextureFactory.of(aUBBlock, 7), - TextureFactory.of(aUBBlock, 0), TextureFactory.of(aUBBlock, 1), TextureFactory.of(aUBBlock, 2), - TextureFactory.of(aUBBlock, 3), TextureFactory.of(aUBBlock, 4), TextureFactory.of(aUBBlock, 5), - TextureFactory.of(aUBBlock, 6), TextureFactory.of(aUBBlock, 7) }; + TextureFactory.of(aUBBlock, 2), TextureFactory.of(aUBBlock, 3), TextureFactory.of(aUBBlock, 4), + TextureFactory.of(aUBBlock, 5), TextureFactory.of(aUBBlock, 6), TextureFactory.of(aUBBlock, 7), + TextureFactory.of(aUBBlock, 0), TextureFactory.of(aUBBlock, 1), TextureFactory.of(aUBBlock, 2), + TextureFactory.of(aUBBlock, 3), TextureFactory.of(aUBBlock, 4), TextureFactory.of(aUBBlock, 5), + TextureFactory.of(aUBBlock, 6), TextureFactory.of(aUBBlock, 7) }; } } diff --git a/src/main/java/gregtech/common/blocks/GT_Block_Ores_UB3.java b/src/main/java/gregtech/common/blocks/GT_Block_Ores_UB3.java index 7315d81890..1c8f433adf 100644 --- a/src/main/java/gregtech/common/blocks/GT_Block_Ores_UB3.java +++ b/src/main/java/gregtech/common/blocks/GT_Block_Ores_UB3.java @@ -32,7 +32,7 @@ public class GT_Block_Ores_UB3 extends GT_Block_Ores_Abstract { public OrePrefixes[] getProcessingPrefix() { // Must have 8 entries; an entry can be null to disable automatic // recipes. return new OrePrefixes[] { OrePrefixes.ore, OrePrefixes.ore, OrePrefixes.ore, OrePrefixes.ore, OrePrefixes.ore, - OrePrefixes.ore, OrePrefixes.ore, OrePrefixes.ore }; + OrePrefixes.ore, OrePrefixes.ore, OrePrefixes.ore }; } @Override @@ -53,7 +53,7 @@ public class GT_Block_Ores_UB3 extends GT_Block_Ores_Abstract { @Override public Materials[] getDroppedDusts() { // Must have 8 entries; can be null. return new Materials[] { Materials.Stone, Materials.Stone, Materials.Stone, Materials.Stone, Materials.Stone, - Materials.Stone, Materials.Stone, Materials.Stone }; + Materials.Stone, Materials.Stone, Materials.Stone }; } @Override @@ -64,10 +64,10 @@ public class GT_Block_Ores_UB3 extends GT_Block_Ores_Abstract { @Override public ITexture[] getTextureSet() { // Must have 16 entries. return new ITexture[] { TextureFactory.of(aUBBlock, 0), TextureFactory.of(aUBBlock, 1), - TextureFactory.of(aUBBlock, 2), TextureFactory.of(aUBBlock, 3), TextureFactory.of(aUBBlock, 4), - TextureFactory.of(aUBBlock, 5), TextureFactory.of(aUBBlock, 6), TextureFactory.of(aUBBlock, 7), - TextureFactory.of(aUBBlock, 0), TextureFactory.of(aUBBlock, 1), TextureFactory.of(aUBBlock, 2), - TextureFactory.of(aUBBlock, 3), TextureFactory.of(aUBBlock, 4), TextureFactory.of(aUBBlock, 5), - TextureFactory.of(aUBBlock, 6), TextureFactory.of(aUBBlock, 7) }; + TextureFactory.of(aUBBlock, 2), TextureFactory.of(aUBBlock, 3), TextureFactory.of(aUBBlock, 4), + TextureFactory.of(aUBBlock, 5), TextureFactory.of(aUBBlock, 6), TextureFactory.of(aUBBlock, 7), + TextureFactory.of(aUBBlock, 0), TextureFactory.of(aUBBlock, 1), TextureFactory.of(aUBBlock, 2), + TextureFactory.of(aUBBlock, 3), TextureFactory.of(aUBBlock, 4), TextureFactory.of(aUBBlock, 5), + TextureFactory.of(aUBBlock, 6), TextureFactory.of(aUBBlock, 7) }; } } diff --git a/src/main/java/gregtech/common/blocks/GT_Block_Reinforced.java b/src/main/java/gregtech/common/blocks/GT_Block_Reinforced.java index 93a10dc45b..23e55839bf 100644 --- a/src/main/java/gregtech/common/blocks/GT_Block_Reinforced.java +++ b/src/main/java/gregtech/common/blocks/GT_Block_Reinforced.java @@ -55,91 +55,91 @@ public class GT_Block_Reinforced extends GT_Generic_Block { GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".11.name", "Neutronium Reinforced Block"); GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".12.name", "Raw Deep Dark Portal Block"); ItemList.Block_BronzePlate.set( - new ItemStack( - this.setHardness(60.0f) - .setResistance(150.0f), - 1, - 0)); + new ItemStack( + this.setHardness(60.0f) + .setResistance(150.0f), + 1, + 0)); ItemList.Block_IridiumTungstensteel.set( - new ItemStack( - this.setHardness(400.0f) - .setResistance(600.0f), - 1, - 1)); + new ItemStack( + this.setHardness(400.0f) + .setResistance(600.0f), + 1, + 1)); ItemList.Block_Plascrete.set( - new ItemStack( - this.setHardness(5.0f) - .setResistance(6.0f), - 1, - 2)); + new ItemStack( + this.setHardness(5.0f) + .setResistance(6.0f), + 1, + 2)); ItemList.Block_TungstenSteelReinforced.set( - new ItemStack( - this.setHardness(250.0f) - .setResistance(400.0f), - 1, - 3)); + new ItemStack( + this.setHardness(250.0f) + .setResistance(400.0f), + 1, + 3)); ItemList.Block_BrittleCharcoal.set( - new ItemStack( - this.setHardness(0.5f) - .setResistance(8.0f), - 1, - 4)); + new ItemStack( + this.setHardness(0.5f) + .setResistance(8.0f), + 1, + 4)); ItemList.Block_Powderbarrel.set( - new ItemStack( - this.setHardness(2.5f) - .setResistance(2.0f), - 1, - 5)); + new ItemStack( + this.setHardness(2.5f) + .setResistance(2.0f), + 1, + 5)); ItemList.Block_SSFUEL.set( - new ItemStack( - this.setHardness(2.5f) - .setResistance(2.0f), - 1, - 6)); + new ItemStack( + this.setHardness(2.5f) + .setResistance(2.0f), + 1, + 6)); ItemList.Block_MSSFUEL.set( - new ItemStack( - this.setHardness(2.5f) - .setResistance(2.0f), - 1, - 7)); + new ItemStack( + this.setHardness(2.5f) + .setResistance(2.0f), + 1, + 7)); ItemList.Block_SteelPlate.set( - new ItemStack( - this.setHardness(150.0f) - .setResistance(200.0f), - 1, - 8)); + new ItemStack( + this.setHardness(150.0f) + .setResistance(200.0f), + 1, + 8)); ItemList.Block_TitaniumPlate.set( - new ItemStack( - this.setHardness(200.0f) - .setResistance(300.0f), - 1, - 9)); + new ItemStack( + this.setHardness(200.0f) + .setResistance(300.0f), + 1, + 9)); ItemList.Block_NaquadahPlate.set( - new ItemStack( - this.setHardness(500.0f) - .setResistance(1000.0f), - 1, - 10)); + new ItemStack( + this.setHardness(500.0f) + .setResistance(1000.0f), + 1, + 10)); ItemList.Block_NeutroniumPlate.set( - new ItemStack( - this.setHardness(750.0f) - .setResistance(2500.0f), - 1, - 11)); + new ItemStack( + this.setHardness(750.0f) + .setResistance(2500.0f), + 1, + 11)); ItemList.Block_BedrockiumCompressed.set( - new ItemStack( - this.setHardness(1500.0f) - .setResistance(5000.0f), - 1, - 12)); + new ItemStack( + this.setHardness(1500.0f) + .setResistance(5000.0f), + 1, + 12)); GT_ModHandler.addShapelessCraftingRecipe( - new ItemStack(Items.coal, 1, 1), - new Object[] { ItemList.Block_BrittleCharcoal.get(1) }); + new ItemStack(Items.coal, 1, 1), + new Object[] { ItemList.Block_BrittleCharcoal.get(1) }); GT_ModHandler.addCraftingRecipe( - ItemList.Block_Powderbarrel.get(1L), - GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "WSW", "GGG", "WGW", 'W', OrePrefixes.plate.get(Materials.Wood), 'G', - new ItemStack(Items.gunpowder, 1), 'S', new ItemStack(Items.string, 1) }); + ItemList.Block_Powderbarrel.get(1L), + GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "WSW", "GGG", "WGW", 'W', OrePrefixes.plate.get(Materials.Wood), 'G', + new ItemStack(Items.gunpowder, 1), 'S', new ItemStack(Items.string, 1) }); } @Override @@ -247,7 +247,7 @@ public class GT_Block_Reinforced extends GT_Generic_Block { @Override public float getExplosionResistance(Entity entity, World world, int x, int y, int z, double explosionX, - double explosionY, double explosionZ) { + double explosionY, double explosionZ) { if (world == null) { return 0.0F; } @@ -322,7 +322,7 @@ public class GT_Block_Reinforced extends GT_Generic_Block { @Override public void dropBlockAsItemWithChance(World aWorld, int aX, int aY, int aZ, int aMetadata, float chance, - int aFortune) { + int aFortune) { if (aMetadata == 4) { this.dropBlockAsItem(aWorld, aX, aY, aZ, new ItemStack(Items.coal, XSTR_INSTANCE.nextInt(2) + 1, 1)); } else { @@ -336,11 +336,11 @@ public class GT_Block_Reinforced extends GT_Generic_Block { EntityTNTPrimed entitytntprimed = new EntityTNTPrimed(world, x + 0.5F, y + 0.5F, z + 0.5F, player); world.spawnEntityInWorld(entitytntprimed); new WorldSpawnedEventBuilder.SoundAtEntityEventBuilder().setPitch(1f) - .setVolume(1f) - .setIdentifier(SoundResource.GAME_TNT_PRIMED) - .setEntity(entitytntprimed) - .setWorld(world) - .run(); + .setVolume(1f) + .setIdentifier(SoundResource.GAME_TNT_PRIMED) + .setEntity(entitytntprimed) + .setWorld(world) + .run(); world.setBlockToAir(x, y, z); return false; } @@ -366,11 +366,11 @@ public class GT_Block_Reinforced extends GT_Generic_Block { public void onBlockExploded(World world, int x, int y, int z, Explosion explosion) { if (!world.isRemote && world.getBlockMetadata(x, y, z) == 5) { EntityTNTPrimed entitytntprimed = new EntityTNTPrimed( - world, - x + 0.5F, - y + 0.5F, - z + 0.5F, - explosion.getExplosivePlacedBy()); + world, + x + 0.5F, + y + 0.5F, + z + 0.5F, + explosion.getExplosivePlacedBy()); entitytntprimed.fuse = (world.rand.nextInt(entitytntprimed.fuse / 4) + entitytntprimed.fuse / 8); world.spawnEntityInWorld(entitytntprimed); } @@ -379,10 +379,9 @@ public class GT_Block_Reinforced extends GT_Generic_Block { @Override public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float xOffset, - float yOffset, float zOffset) { + float yOffset, float zOffset) { if ((player.getCurrentEquippedItem() != null) && (player.getCurrentEquippedItem() - .getItem() - == Items.flint_and_steel) && world.getBlockMetadata(x, y, z) == 5) { + .getItem() == Items.flint_and_steel) && world.getBlockMetadata(x, y, z) == 5) { removedByPlayer(world, player, x, y, z); return true; @@ -400,8 +399,7 @@ public class GT_Block_Reinforced extends GT_Generic_Block { for (int i = 0; i < 16; i++) { ItemStack aStack = new ItemStack(aItem, 1, i); if (!aStack.getDisplayName() - .contains(".name")) - aList.add(aStack); + .contains(".name")) aList.add(aStack); } } diff --git a/src/main/java/gregtech/common/blocks/GT_Block_Stones.java b/src/main/java/gregtech/common/blocks/GT_Block_Stones.java index 2f9e9e9d71..253d9d2163 100644 --- a/src/main/java/gregtech/common/blocks/GT_Block_Stones.java +++ b/src/main/java/gregtech/common/blocks/GT_Block_Stones.java @@ -32,17 +32,13 @@ public class GT_Block_Stones extends GT_Block_Stones_Abstract { GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".14.name", "Chiseled Basalt"); GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".15.name", "Smooth Basalt"); for (int i = 0; i < 16; i++) { + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, i < 8 ? Materials.Marble : Materials.Basalt, new ItemStack(this, 1, i)); + GT_OreDictUnificator + .registerOre(OrePrefixes.block, i < 8 ? Materials.Marble : Materials.Basalt, new ItemStack(this, 1, i)); GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - i < 8 ? Materials.Marble : Materials.Basalt, - new ItemStack(this, 1, i)); - GT_OreDictUnificator.registerOre( - OrePrefixes.block, - i < 8 ? Materials.Marble : Materials.Basalt, - new ItemStack(this, 1, i)); - GT_OreDictUnificator.registerOre( - (i < 8 ? Materials.Marble.mName.toLowerCase() : Materials.Basalt.mName.toLowerCase()), - new ItemStack(this, 1, i)); + (i < 8 ? Materials.Marble.mName.toLowerCase() : Materials.Basalt.mName.toLowerCase()), + new ItemStack(this, 1, i)); } } diff --git a/src/main/java/gregtech/common/blocks/GT_Block_Stones_Abstract.java b/src/main/java/gregtech/common/blocks/GT_Block_Stones_Abstract.java index 3a9920e7e4..31b81eb5ff 100644 --- a/src/main/java/gregtech/common/blocks/GT_Block_Stones_Abstract.java +++ b/src/main/java/gregtech/common/blocks/GT_Block_Stones_Abstract.java @@ -48,79 +48,79 @@ public class GT_Block_Stones_Abstract extends GT_Generic_Block implements IOreRe GT_ModHandler.addSmeltingRecipe(new ItemStack(this, 1, 14), new ItemStack(this, 1, 8)); GT_ModHandler.addSmeltingRecipe(new ItemStack(this, 1, 15), new ItemStack(this, 1, 8)); GT_Values.RA.addAssemblerRecipe( - new ItemStack(this, 1, 0), - ItemList.Circuit_Integrated.getWithDamage(0L, 4L), - new ItemStack(this, 1, 3), - 50, - 4); + new ItemStack(this, 1, 0), + ItemList.Circuit_Integrated.getWithDamage(0L, 4L), + new ItemStack(this, 1, 3), + 50, + 4); GT_Values.RA.addAssemblerRecipe( - new ItemStack(this, 1, 8), - ItemList.Circuit_Integrated.getWithDamage(0L, 4L), - new ItemStack(this, 1, 11), - 50, - 4); + new ItemStack(this, 1, 8), + ItemList.Circuit_Integrated.getWithDamage(0L, 4L), + new ItemStack(this, 1, 11), + 50, + 4); GT_ModHandler.addCraftingRecipe( - new ItemStack(this, 1, 6), - GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { "f", "X", 'X', new ItemStack(this, 1, 7) }); + new ItemStack(this, 1, 6), + GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { "f", "X", 'X', new ItemStack(this, 1, 7) }); GT_ModHandler.addCraftingRecipe( - new ItemStack(this, 1, 14), - GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { "f", "X", 'X', new ItemStack(this, 1, 15) }); + new ItemStack(this, 1, 14), + GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { "f", "X", 'X', new ItemStack(this, 1, 15) }); GT_ModHandler.addCraftingRecipe( - new ItemStack(this, 1, 4), - GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { "h", "X", 'X', new ItemStack(this, 1, 3) }); + new ItemStack(this, 1, 4), + GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { "h", "X", 'X', new ItemStack(this, 1, 3) }); GT_ModHandler.addCraftingRecipe( - new ItemStack(this, 1, 12), - GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { "h", "X", 'X', new ItemStack(this, 1, 11) }); + new ItemStack(this, 1, 12), + GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { "h", "X", 'X', new ItemStack(this, 1, 11) }); GT_ModHandler.addCraftingRecipe( - new ItemStack(this, 1, 1), - GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { "h", "X", 'X', new ItemStack(this, 1, 0) }); + new ItemStack(this, 1, 1), + GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { "h", "X", 'X', new ItemStack(this, 1, 0) }); GT_ModHandler.addCraftingRecipe( - new ItemStack(this, 1, 9), - GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { "h", "X", 'X', new ItemStack(this, 1, 8) }); + new ItemStack(this, 1, 9), + GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { "h", "X", 'X', new ItemStack(this, 1, 8) }); GT_Values.RA.addForgeHammerRecipe(new ItemStack(this, 1, 3), new ItemStack(this, 1, 4), 16, 10); GT_Values.RA.addForgeHammerRecipe(new ItemStack(this, 1, 11), new ItemStack(this, 1, 12), 16, 10); GT_Values.RA.addForgeHammerRecipe(new ItemStack(this, 1, 0), new ItemStack(this, 1, 1), 16, 10); GT_Values.RA.addForgeHammerRecipe(new ItemStack(this, 1, 8), new ItemStack(this, 1, 9), 16, 10); GT_ModHandler.addCraftingRecipe( - new ItemStack(this, 4, 3), - GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { "XX", "XX", 'X', new ItemStack(this, 4, 0) }); + new ItemStack(this, 4, 3), + GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { "XX", "XX", 'X', new ItemStack(this, 4, 0) }); GT_ModHandler.addCraftingRecipe( - new ItemStack(this, 4, 11), - GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { "XX", "XX", 'X', new ItemStack(this, 4, 8) }); + new ItemStack(this, 4, 11), + GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { "XX", "XX", 'X', new ItemStack(this, 4, 8) }); GT_ModHandler.addCraftingRecipe( - new ItemStack(this, 4, 3), - GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { "XX", "XX", 'X', new ItemStack(this, 4, 7) }); + new ItemStack(this, 4, 3), + GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { "XX", "XX", 'X', new ItemStack(this, 4, 7) }); GT_ModHandler.addCraftingRecipe( - new ItemStack(this, 4, 11), - GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { "XX", "XX", 'X', new ItemStack(this, 4, 15) }); + new ItemStack(this, 4, 11), + GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { "XX", "XX", 'X', new ItemStack(this, 4, 15) }); } @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { if (aOreDictName.equals(OreDictNames.craftingLensWhite.toString())) { GT_Values.RA.addLaserEngraverRecipe( - new ItemStack(this, 1, 7), - GT_Utility.copyAmount(0L, aStack), - new ItemStack(this, 1, 6), - 50, - 16); + new ItemStack(this, 1, 7), + GT_Utility.copyAmount(0L, aStack), + new ItemStack(this, 1, 6), + 50, + 16); GT_Values.RA.addLaserEngraverRecipe( - new ItemStack(this, 1, 15), - GT_Utility.copyAmount(0L, aStack), - new ItemStack(this, 1, 14), - 50, - 16); + new ItemStack(this, 1, 15), + GT_Utility.copyAmount(0L, aStack), + new ItemStack(this, 1, 14), + 50, + 16); } } diff --git a/src/main/java/gregtech/common/blocks/GT_Block_Storage.java b/src/main/java/gregtech/common/blocks/GT_Block_Storage.java index 47053f6e78..ada3f01cde 100644 --- a/src/main/java/gregtech/common/blocks/GT_Block_Storage.java +++ b/src/main/java/gregtech/common/blocks/GT_Block_Storage.java @@ -97,8 +97,7 @@ public class GT_Block_Storage extends GT_Generic_Block { public void getSubBlocks(Item aItem, CreativeTabs aCreativeTab, List aList) { for (int i = 0; i < 16; i++) { if (!(new ItemStack(aItem, 1, i).getDisplayName() - .contains(".name"))) - aList.add(new ItemStack(aItem, 1, i)); + .contains(".name"))) aList.add(new ItemStack(aItem, 1, i)); } } } diff --git a/src/main/java/gregtech/common/blocks/GT_Cyclotron_Coils.java b/src/main/java/gregtech/common/blocks/GT_Cyclotron_Coils.java index 99d80d1cbb..4e5768f199 100644 --- a/src/main/java/gregtech/common/blocks/GT_Cyclotron_Coils.java +++ b/src/main/java/gregtech/common/blocks/GT_Cyclotron_Coils.java @@ -121,8 +121,7 @@ public class GT_Cyclotron_Coils extends GT_Block_Casings_Abstract { @Override public int colorMultiplier(IBlockAccess aWorld, int aX, int aY, int aZ) { return aWorld.getBlockMetadata(aX, aY, aZ) > 9 ? super.colorMultiplier(aWorld, aX, aY, aZ) - : gregtech.api.enums.Dyes.MACHINE_METAL.mRGBa[0] << 16 - | gregtech.api.enums.Dyes.MACHINE_METAL.mRGBa[1] << 8 - | gregtech.api.enums.Dyes.MACHINE_METAL.mRGBa[2]; + : gregtech.api.enums.Dyes.MACHINE_METAL.mRGBa[0] << 16 | gregtech.api.enums.Dyes.MACHINE_METAL.mRGBa[1] << 8 + | gregtech.api.enums.Dyes.MACHINE_METAL.mRGBa[2]; } } diff --git a/src/main/java/gregtech/common/blocks/GT_Item_Casings5.java b/src/main/java/gregtech/common/blocks/GT_Item_Casings5.java index fb6b8ebc85..f8cda499f1 100644 --- a/src/main/java/gregtech/common/blocks/GT_Item_Casings5.java +++ b/src/main/java/gregtech/common/blocks/GT_Item_Casings5.java @@ -17,12 +17,10 @@ public class GT_Item_Casings5 extends GT_Item_Casings_Abstract { super(block); } - protected static final String mCoilHeatTooltip = GT_LanguageManager.addStringLocalization( - "gt.coilheattooltip", - "Base Heating Capacity = "); - protected static final String mCoilUnitTooltip = GT_LanguageManager.addStringLocalization( - "gt.coilunittooltip", - " Kelvin"); + protected static final String mCoilHeatTooltip = GT_LanguageManager + .addStringLocalization("gt.coilheattooltip", "Base Heating Capacity = "); + protected static final String mCoilUnitTooltip = GT_LanguageManager + .addStringLocalization("gt.coilunittooltip", " Kelvin"); @Override @SideOnly(Side.CLIENT) diff --git a/src/main/java/gregtech/common/blocks/GT_Item_Casings_Abstract.java b/src/main/java/gregtech/common/blocks/GT_Item_Casings_Abstract.java index e7a20e28cb..46b0aba237 100644 --- a/src/main/java/gregtech/common/blocks/GT_Item_Casings_Abstract.java +++ b/src/main/java/gregtech/common/blocks/GT_Item_Casings_Abstract.java @@ -12,42 +12,30 @@ import gregtech.api.util.GT_LanguageManager; public abstract class GT_Item_Casings_Abstract extends ItemBlock { - protected final String mNoMobsToolTip = GT_LanguageManager.addStringLocalization( - "gt.nomobspawnsonthisblock", - "Mobs cannot Spawn on this Block"); - protected final String mNoTileEntityToolTip = GT_LanguageManager.addStringLocalization( - "gt.notileentityinthisblock", - "This is NOT a TileEntity!"); - protected final String mCoil01Tooltip = GT_LanguageManager.addStringLocalization( - "gt.coil01tooltip", - "Base Heating Capacity = 1800 Kelvin"); - protected final String mCoil02Tooltip = GT_LanguageManager.addStringLocalization( - "gt.coil02tooltip", - "Base Heating Capacity = 2700 Kelvin"); - protected final String mCoil03Tooltip = GT_LanguageManager.addStringLocalization( - "gt.coil03tooltip", - "Base Heating Capacity = 3600 Kelvin"); - protected final String mCoil04Tooltip = GT_LanguageManager.addStringLocalization( - "gt.coil04tooltip", - "Base Heating Capacity = 4500 Kelvin"); - protected final String mCoil05Tooltip = GT_LanguageManager.addStringLocalization( - "gt.coil05tooltip", - "Base Heating Capacity = 5400 Kelvin"); - protected final String mCoil06Tooltip = GT_LanguageManager.addStringLocalization( - "gt.coil06tooltip", - "Base Heating Capacity = 7200 Kelvin"); - protected final String mCoil07Tooltip = GT_LanguageManager.addStringLocalization( - "gt.coil07tooltip", - "Base Heating Capacity = 9001 Kelvin"); - protected final String mCoil08Tooltip = GT_LanguageManager.addStringLocalization( - "gt.coil08tooltip", - "Base Heating Capacity = 9900 Kelvin"); - protected final String mCoil09Tooltip = GT_LanguageManager.addStringLocalization( - "gt.coil09tooltip", - "Base Heating Capacity = 10800 Kelvin"); - protected final String mBlastProofTooltip = GT_LanguageManager.addStringLocalization( - "gt.blastprooftooltip", - "This Block is Blast Proof"); + protected final String mNoMobsToolTip = GT_LanguageManager + .addStringLocalization("gt.nomobspawnsonthisblock", "Mobs cannot Spawn on this Block"); + protected final String mNoTileEntityToolTip = GT_LanguageManager + .addStringLocalization("gt.notileentityinthisblock", "This is NOT a TileEntity!"); + protected final String mCoil01Tooltip = GT_LanguageManager + .addStringLocalization("gt.coil01tooltip", "Base Heating Capacity = 1800 Kelvin"); + protected final String mCoil02Tooltip = GT_LanguageManager + .addStringLocalization("gt.coil02tooltip", "Base Heating Capacity = 2700 Kelvin"); + protected final String mCoil03Tooltip = GT_LanguageManager + .addStringLocalization("gt.coil03tooltip", "Base Heating Capacity = 3600 Kelvin"); + protected final String mCoil04Tooltip = GT_LanguageManager + .addStringLocalization("gt.coil04tooltip", "Base Heating Capacity = 4500 Kelvin"); + protected final String mCoil05Tooltip = GT_LanguageManager + .addStringLocalization("gt.coil05tooltip", "Base Heating Capacity = 5400 Kelvin"); + protected final String mCoil06Tooltip = GT_LanguageManager + .addStringLocalization("gt.coil06tooltip", "Base Heating Capacity = 7200 Kelvin"); + protected final String mCoil07Tooltip = GT_LanguageManager + .addStringLocalization("gt.coil07tooltip", "Base Heating Capacity = 9001 Kelvin"); + protected final String mCoil08Tooltip = GT_LanguageManager + .addStringLocalization("gt.coil08tooltip", "Base Heating Capacity = 9900 Kelvin"); + protected final String mCoil09Tooltip = GT_LanguageManager + .addStringLocalization("gt.coil09tooltip", "Base Heating Capacity = 10800 Kelvin"); + protected final String mBlastProofTooltip = GT_LanguageManager + .addStringLocalization("gt.blastprooftooltip", "This Block is Blast Proof"); public GT_Item_Casings_Abstract(Block block) { super(block); diff --git a/src/main/java/gregtech/common/blocks/GT_Item_Concretes.java b/src/main/java/gregtech/common/blocks/GT_Item_Concretes.java index 294d0df1cc..44c094aa41 100644 --- a/src/main/java/gregtech/common/blocks/GT_Item_Concretes.java +++ b/src/main/java/gregtech/common/blocks/GT_Item_Concretes.java @@ -10,9 +10,8 @@ import gregtech.api.util.GT_LanguageManager; public class GT_Item_Concretes extends GT_Item_Stones_Abstract { - private final String mRunFasterToolTip = GT_LanguageManager.addStringLocalization( - "gt.runfastertooltip", - "You can walk faster on this Block"); + private final String mRunFasterToolTip = GT_LanguageManager + .addStringLocalization("gt.runfastertooltip", "You can walk faster on this Block"); public GT_Item_Concretes(Block block) { super(block); diff --git a/src/main/java/gregtech/common/blocks/GT_Item_LongDistancePipe.java b/src/main/java/gregtech/common/blocks/GT_Item_LongDistancePipe.java index ebd495784b..52d0db5165 100644 --- a/src/main/java/gregtech/common/blocks/GT_Item_LongDistancePipe.java +++ b/src/main/java/gregtech/common/blocks/GT_Item_LongDistancePipe.java @@ -12,12 +12,10 @@ import gregtech.api.util.GT_LanguageManager; public class GT_Item_LongDistancePipe extends ItemBlock { - protected final String mNoMobsToolTip = GT_LanguageManager.addStringLocalization( - "gt.nomobspawnsonthisblock", - "Mobs cannot Spawn on this Block"); - protected final String mNoTileEntityToolTip = GT_LanguageManager.addStringLocalization( - "gt.notileentityinthisblock", - "This is NOT a TileEntity!"); + protected final String mNoMobsToolTip = GT_LanguageManager + .addStringLocalization("gt.nomobspawnsonthisblock", "Mobs cannot Spawn on this Block"); + protected final String mNoTileEntityToolTip = GT_LanguageManager + .addStringLocalization("gt.notileentityinthisblock", "This is NOT a TileEntity!"); public GT_Item_LongDistancePipe(Block block) { super(block); diff --git a/src/main/java/gregtech/common/blocks/GT_Item_Machines.java b/src/main/java/gregtech/common/blocks/GT_Item_Machines.java index 3e946633b3..8cd4684664 100644 --- a/src/main/java/gregtech/common/blocks/GT_Item_Machines.java +++ b/src/main/java/gregtech/common/blocks/GT_Item_Machines.java @@ -67,108 +67,108 @@ public class GT_Item_Machines extends ItemBlock implements IFluidContainerItem { if (GregTech_API.METATILEENTITIES[tDamage] != null) { final IGregTechTileEntity tTileEntity = GregTech_API.METATILEENTITIES[tDamage].getBaseMetaTileEntity(); if (!GregTech_API.sPostloadFinished - && tTileEntity.getMetaTileEntity() instanceof ISecondaryDescribable) { - final String[] tSecondaryDescription = ((ISecondaryDescribable) tTileEntity.getMetaTileEntity()).getSecondaryDescription(); + && tTileEntity.getMetaTileEntity() instanceof ISecondaryDescribable) { + final String[] tSecondaryDescription = ((ISecondaryDescribable) tTileEntity.getMetaTileEntity()) + .getSecondaryDescription(); addDescription(null, tSecondaryDescription, tDamage, "_Secondary", true); } { final IMetaTileEntity tMetaTileEntity = tTileEntity.getMetaTileEntity(); final String tSuffix = (tMetaTileEntity instanceof ISecondaryDescribable - && ((ISecondaryDescribable) tMetaTileEntity).isDisplaySecondaryDescription()) ? "_Secondary" - : ""; + && ((ISecondaryDescribable) tMetaTileEntity).isDisplaySecondaryDescription()) ? "_Secondary" + : ""; addDescription( - aList, - tTileEntity.getDescription(), - tDamage, - tSuffix, - !GregTech_API.sPostloadFinished); + aList, + tTileEntity.getDescription(), + tDamage, + tSuffix, + !GregTech_API.sPostloadFinished); tMetaTileEntity.addAdditionalTooltipInformation(aStack, aList); } if (tTileEntity.getEUCapacity() > 0L) { if (tTileEntity.getInputVoltage() > 0L) { final byte inputTier = GT_Utility.getTier(tTileEntity.getInputVoltage()); aList.add( - GT_LanguageManager.addStringLocalization( - "TileEntity_EUp_IN", - "Voltage IN: ", - !GregTech_API.sPostloadFinished) + EnumChatFormatting.GREEN - + GT_Utility.formatNumbers(tTileEntity.getInputVoltage()) - + " (" - + GT_Utility.getColoredTierNameFromTier(inputTier) - + EnumChatFormatting.GREEN - + ")" - + EnumChatFormatting.GRAY); + GT_LanguageManager.addStringLocalization( + "TileEntity_EUp_IN", + "Voltage IN: ", + !GregTech_API.sPostloadFinished) + EnumChatFormatting.GREEN + + GT_Utility.formatNumbers(tTileEntity.getInputVoltage()) + + " (" + + GT_Utility.getColoredTierNameFromTier(inputTier) + + EnumChatFormatting.GREEN + + ")" + + EnumChatFormatting.GRAY); } if (tTileEntity.getOutputVoltage() > 0L) { final byte outputTier = GT_Utility.getTier(tTileEntity.getOutputVoltage()); aList.add( - GT_LanguageManager.addStringLocalization( - "TileEntity_EUp_OUT", - "Voltage OUT: ", - !GregTech_API.sPostloadFinished) + EnumChatFormatting.GREEN - + GT_Utility.formatNumbers(tTileEntity.getOutputVoltage()) - + " (" - + GT_Utility.getColoredTierNameFromTier(outputTier) - + EnumChatFormatting.GREEN - + ")" - + EnumChatFormatting.GRAY); + GT_LanguageManager.addStringLocalization( + "TileEntity_EUp_OUT", + "Voltage OUT: ", + !GregTech_API.sPostloadFinished) + EnumChatFormatting.GREEN + + GT_Utility.formatNumbers(tTileEntity.getOutputVoltage()) + + " (" + + GT_Utility.getColoredTierNameFromTier(outputTier) + + EnumChatFormatting.GREEN + + ")" + + EnumChatFormatting.GRAY); } if (tTileEntity.getOutputAmperage() > 1L) { aList.add( - GT_LanguageManager.addStringLocalization( - "TileEntity_EUp_AMOUNT", - "Amperage: ", - !GregTech_API.sPostloadFinished) + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(tTileEntity.getOutputAmperage()) - + EnumChatFormatting.GRAY); + GT_LanguageManager.addStringLocalization( + "TileEntity_EUp_AMOUNT", + "Amperage: ", + !GregTech_API.sPostloadFinished) + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(tTileEntity.getOutputAmperage()) + + EnumChatFormatting.GRAY); } aList.add( - GT_LanguageManager.addStringLocalization( - "TileEntity_EUp_STORE", - "Capacity: ", - !GregTech_API.sPostloadFinished) + EnumChatFormatting.BLUE - + GT_Utility.formatNumbers(tTileEntity.getEUCapacity()) - + EnumChatFormatting.GRAY - + " EU"); + GT_LanguageManager.addStringLocalization( + "TileEntity_EUp_STORE", + "Capacity: ", + !GregTech_API.sPostloadFinished) + EnumChatFormatting.BLUE + + GT_Utility.formatNumbers(tTileEntity.getEUCapacity()) + + EnumChatFormatting.GRAY + + " EU"); } } final NBTTagCompound aNBT = aStack.getTagCompound(); if (aNBT != null) { if (aNBT.getBoolean("mMuffler")) { aList.add( - GT_LanguageManager.addStringLocalization( - "GT_TileEntity_MUFFLER", - "has Muffler Upgrade", - !GregTech_API.sPostloadFinished)); + GT_LanguageManager.addStringLocalization( + "GT_TileEntity_MUFFLER", + "has Muffler Upgrade", + !GregTech_API.sPostloadFinished)); } if (aNBT.getBoolean("mSteamConverter")) { aList.add( - GT_LanguageManager.addStringLocalization( - "GT_TileEntity_STEAMCONVERTER", - "has Steam Upgrade", - !GregTech_API.sPostloadFinished)); + GT_LanguageManager.addStringLocalization( + "GT_TileEntity_STEAMCONVERTER", + "has Steam Upgrade", + !GregTech_API.sPostloadFinished)); } int tAmount = 0; if ((tAmount = aNBT.getByte("mSteamTanks")) > 0) { aList.add( - tAmount + " " - + GT_LanguageManager.addStringLocalization( - "GT_TileEntity_STEAMTANKS", - "Steam Tank Upgrades", - !GregTech_API.sPostloadFinished)); + tAmount + " " + + GT_LanguageManager.addStringLocalization( + "GT_TileEntity_STEAMTANKS", + "Steam Tank Upgrades", + !GregTech_API.sPostloadFinished)); } CoverableTileEntity.addInstalledCoversInformation(aNBT, aList); if (aNBT.hasKey("mColor") && aNBT.getByte("mColor") != -1) { aList.add( - GT_LanguageManager.addStringLocalization( - "GT_TileEntity_COLORED", - "Colored", - !GregTech_API.sPostloadFinished) + " (" - + Dyes.get(aNBT.getByte("mColor") - 1).formatting - + Dyes.get(aNBT.getByte("mColor") - 1).mName - + EnumChatFormatting.GRAY - + ")"); + GT_LanguageManager + .addStringLocalization("GT_TileEntity_COLORED", "Colored", !GregTech_API.sPostloadFinished) + + " (" + + Dyes.get(aNBT.getByte("mColor") - 1).formatting + + Dyes.get(aNBT.getByte("mColor") - 1).mName + + EnumChatFormatting.GRAY + + ")"); } } } catch (Throwable e) { @@ -177,7 +177,7 @@ public class GT_Item_Machines extends ItemBlock implements IFluidContainerItem { } private void addDescription(@Nullable List aList, @Nullable String[] aDescription, int aDamage, - String aSuffix, boolean aWriteIntoLangFile) { + String aSuffix, boolean aWriteIntoLangFile) { if (aDescription == null) return; for (int i = 0, tLength = aDescription.length; i < tLength; i++) { String tDescLine = aDescription[i]; @@ -194,8 +194,8 @@ public class GT_Item_Machines extends ItemBlock implements IFluidContainerItem { tRep[j / 2] = tSplitStrings[j]; } final String tTranslated = String.format( - GT_LanguageManager.addStringLocalization(tKey, tBuffer.toString(), aWriteIntoLangFile), - (Object[]) tRep); + GT_LanguageManager.addStringLocalization(tKey, tBuffer.toString(), aWriteIntoLangFile), + (Object[]) tRep); if (aList != null) aList.add(tTranslated); } else { String tTranslated = GT_LanguageManager.addStringLocalization(tKey, tDescLine, aWriteIntoLangFile); @@ -209,9 +209,10 @@ public class GT_Item_Machines extends ItemBlock implements IFluidContainerItem { if (aDamage >= GregTech_API.METATILEENTITIES.length) return; if (GregTech_API.METATILEENTITIES[aDamage] != null) { final IMetaTileEntity tMetaTileEntity = GregTech_API.METATILEENTITIES[aDamage].getBaseMetaTileEntity() - .getMetaTileEntity(); + .getMetaTileEntity(); if (tMetaTileEntity instanceof ISecondaryDescribable) { - final String[] tSecondaryDescription = ((ISecondaryDescribable) tMetaTileEntity).getSecondaryDescription(); + final String[] tSecondaryDescription = ((ISecondaryDescribable) tMetaTileEntity) + .getSecondaryDescription(); addDescription(null, tSecondaryDescription, aDamage, "_Secondary", true); } addDescription(null, tMetaTileEntity.getDescription(), aDamage, "", true); @@ -220,7 +221,7 @@ public class GT_Item_Machines extends ItemBlock implements IFluidContainerItem { @Override public boolean onItemUseFirst(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, - float hitX, float hitY, float hitZ) { + float hitX, float hitY, float hitZ) { return false; } @@ -241,7 +242,7 @@ public class GT_Item_Machines extends ItemBlock implements IFluidContainerItem { String aName = super.getItemStackDisplayName(aStack); final short aDamage = (short) getDamage(aStack); if (aDamage >= 0 && aDamage < GregTech_API.METATILEENTITIES.length - && GregTech_API.METATILEENTITIES[aDamage] != null) { + && GregTech_API.METATILEENTITIES[aDamage] != null) { Materials aMaterial = null; if (GregTech_API.METATILEENTITIES[aDamage] instanceof GT_MetaPipeEntity_Item) { aMaterial = ((GT_MetaPipeEntity_Item) GregTech_API.METATILEENTITIES[aDamage]).mMaterial; @@ -264,14 +265,14 @@ public class GT_Item_Machines extends ItemBlock implements IFluidContainerItem { super.onCreated(aStack, aWorld, aPlayer); final short tDamage = (short) getDamage(aStack); if ((tDamage < 0) || ((tDamage >= GregTech_API.METATILEENTITIES.length) - && (GregTech_API.METATILEENTITIES[tDamage] != null))) { + && (GregTech_API.METATILEENTITIES[tDamage] != null))) { GregTech_API.METATILEENTITIES[tDamage].onCreated(aStack, aWorld, aPlayer); } } @Override public boolean placeBlockAt(ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int side, - float hitX, float hitY, float hitZ, int aMeta) { + float hitX, float hitY, float hitZ, int aMeta) { final short tDamage = (short) getDamage(aStack); if (tDamage > 0) { if (GregTech_API.METATILEENTITIES[tDamage] == null) { @@ -283,11 +284,11 @@ public class GT_Item_Machines extends ItemBlock implements IFluidContainerItem { } if (aWorld.getBlock(aX, aY, aZ) != this.field_150939_a) { throw new GT_ItsNotMyFaultException( - "Failed to place Block even though World.setBlock returned true. It COULD be MCPC/Bukkit causing that. In case you really have that installed, don't report this Bug to me, I don't know how to fix it."); + "Failed to place Block even though World.setBlock returned true. It COULD be MCPC/Bukkit causing that. In case you really have that installed, don't report this Bug to me, I don't know how to fix it."); } if (aWorld.getBlockMetadata(aX, aY, aZ) != tMetaData) { throw new GT_ItsNotMyFaultException( - "Failed to set the MetaValue of the Block even though World.setBlock returned true. It COULD be MCPC/Bukkit causing that. In case you really have that installed, don't report this Bug to me, I don't know how to fix it."); + "Failed to set the MetaValue of the Block even though World.setBlock returned true. It COULD be MCPC/Bukkit causing that. In case you really have that installed, don't report this Bug to me, I don't know how to fix it."); } final IGregTechTileEntity tTileEntity = (IGregTechTileEntity) aWorld.getTileEntity(aX, aY, aZ); if (tTileEntity != null) { @@ -297,7 +298,7 @@ public class GT_Item_Machines extends ItemBlock implements IFluidContainerItem { tTileEntity.setOwnerUuid(aPlayer.getUniqueID()); } tTileEntity.getMetaTileEntity() - .initDefaultModes(aStack.getTagCompound()); + .initDefaultModes(aStack.getTagCompound()); final byte aSide = GT_Utility.getOppositeSide(side); if (tTileEntity.getMetaTileEntity() instanceof IConnectable) { // If we're connectable, try connecting to whatever we're up against @@ -326,8 +327,8 @@ public class GT_Item_Machines extends ItemBlock implements IFluidContainerItem { final short tDamage = (short) getDamage(aStack); final EntityLivingBase tPlayer = (EntityPlayer) aPlayer; if (GregTech_API.METATILEENTITIES[tDamage] instanceof GT_MetaTileEntity_QuantumChest - || GregTech_API.METATILEENTITIES[tDamage] instanceof GT_MetaTileEntity_SuperTank - || GregTech_API.METATILEENTITIES[tDamage] instanceof GT_MetaTileEntity_QuantumTank) { + || GregTech_API.METATILEENTITIES[tDamage] instanceof GT_MetaTileEntity_SuperTank + || GregTech_API.METATILEENTITIES[tDamage] instanceof GT_MetaTileEntity_QuantumTank) { final NBTTagCompound tNBT = aStack.stackTagCompound; if (tNBT == null) return; if (tNBT.hasNoTags()) { @@ -335,7 +336,7 @@ public class GT_Item_Machines extends ItemBlock implements IFluidContainerItem { return; } if ((tNBT.hasKey("mItemCount") && tNBT.getInteger("mItemCount") > 0) || (tNBT.hasKey("mFluid") - && FluidStack.loadFluidStackFromNBT(tNBT.getCompoundTag("mFluid")).amount > 64000)) { + && FluidStack.loadFluidStackFromNBT(tNBT.getCompoundTag("mFluid")).amount > 64000)) { final FluidStack tFluid = FluidStack.loadFluidStackFromNBT(tNBT.getCompoundTag("mFluid")); int tEffectDuration = 1200; if (tFluid != null) { @@ -381,7 +382,7 @@ public class GT_Item_Machines extends ItemBlock implements IFluidContainerItem { final int tDamage = container.getItemDamage(); final IMetaTileEntity tMetaTile = GregTech_API.METATILEENTITIES[tDamage]; if (!(tMetaTile instanceof GT_MetaTileEntity_QuantumTank - || tMetaTile instanceof GT_MetaTileEntity_SuperTank)) { + || tMetaTile instanceof GT_MetaTileEntity_SuperTank)) { return 0; } if (container.stackTagCompound == null) container.stackTagCompound = new NBTTagCompound(); @@ -414,7 +415,7 @@ public class GT_Item_Machines extends ItemBlock implements IFluidContainerItem { final int tDamage = container.getItemDamage(); final IMetaTileEntity tMetaTile = GregTech_API.METATILEENTITIES[tDamage]; if (!(tMetaTile instanceof GT_MetaTileEntity_QuantumTank - || tMetaTile instanceof GT_MetaTileEntity_SuperTank)) { + || tMetaTile instanceof GT_MetaTileEntity_SuperTank)) { return null; } final FluidStack tStoredFluid = getFluid(container); diff --git a/src/main/java/gregtech/common/blocks/GT_Item_Ores.java b/src/main/java/gregtech/common/blocks/GT_Item_Ores.java index 2471c514a9..03a2591542 100644 --- a/src/main/java/gregtech/common/blocks/GT_Item_Ores.java +++ b/src/main/java/gregtech/common/blocks/GT_Item_Ores.java @@ -25,7 +25,7 @@ public class GT_Item_Ores extends ItemBlock { @Override public boolean onItemUseFirst(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, - float hitX, float hitY, float hitZ) { + float hitX, float hitY, float hitZ) { return false; } @@ -45,18 +45,18 @@ public class GT_Item_Ores extends ItemBlock { @Override public boolean placeBlockAt(ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int side, - float hitX, float hitY, float hitZ, int aMeta) { + float hitX, float hitY, float hitZ, int aMeta) { short tDamage = (short) getDamage(aStack); if (tDamage > 0) { if (!aWorld.setBlock( - aX, - aY, - aZ, - this.field_150939_a, - GT_TileEntity_Ores.getHarvestData( - tDamage, - ((GT_Block_Ores_Abstract) field_150939_a).getBaseBlockHarvestLevel(aMeta % 16000 / 1000)), - 3)) { + aX, + aY, + aZ, + this.field_150939_a, + GT_TileEntity_Ores.getHarvestData( + tDamage, + ((GT_Block_Ores_Abstract) field_150939_a).getBaseBlockHarvestLevel(aMeta % 16000 / 1000)), + 3)) { return false; } GT_TileEntity_Ores tTileEntity = (GT_TileEntity_Ores) aWorld.getTileEntity(aX, aY, aZ); @@ -74,8 +74,8 @@ public class GT_Item_Ores extends ItemBlock { @Override public void addInformation(ItemStack aStack, EntityPlayer aPlayer, List aList, boolean aF3_H) { - String formula = StatCollector.translateToLocal( - field_150939_a.getUnlocalizedName() + '.' + getDamage(aStack) + ".tooltip"); + String formula = StatCollector + .translateToLocal(field_150939_a.getUnlocalizedName() + '.' + getDamage(aStack) + ".tooltip"); if (!StringUtils.isBlank(formula)) aList.add(formula); } } diff --git a/src/main/java/gregtech/common/blocks/GT_Item_Stones_Abstract.java b/src/main/java/gregtech/common/blocks/GT_Item_Stones_Abstract.java index 0b44d223a9..5b73108301 100644 --- a/src/main/java/gregtech/common/blocks/GT_Item_Stones_Abstract.java +++ b/src/main/java/gregtech/common/blocks/GT_Item_Stones_Abstract.java @@ -12,9 +12,8 @@ import gregtech.api.util.GT_LanguageManager; public class GT_Item_Stones_Abstract extends ItemBlock { - private final String mNoMobsToolTip = GT_LanguageManager.addStringLocalization( - "gt.nomobspawnsonthisblock", - "Mobs cannot Spawn on this Block"); + private final String mNoMobsToolTip = GT_LanguageManager + .addStringLocalization("gt.nomobspawnsonthisblock", "Mobs cannot Spawn on this Block"); public GT_Item_Stones_Abstract(Block block) { super(block); diff --git a/src/main/java/gregtech/common/blocks/GT_TileEntity_Ores.java b/src/main/java/gregtech/common/blocks/GT_TileEntity_Ores.java index 099ccf2e65..4add136ab5 100644 --- a/src/main/java/gregtech/common/blocks/GT_TileEntity_Ores.java +++ b/src/main/java/gregtech/common/blocks/GT_TileEntity_Ores.java @@ -35,17 +35,15 @@ public class GT_TileEntity_Ores extends TileEntity implements ITexturedTileEntit public static byte getHarvestData(short aMetaData, int aBaseBlockHarvestLevel) { Materials aMaterial = GregTech_API.sGeneratedMaterials[(aMetaData % 1000)]; byte tByte = aMaterial == null ? 0 - : (byte) Math.max( - aBaseBlockHarvestLevel, - Math.min(7, aMaterial.mToolQuality - (aMetaData < 16000 ? 0 : 1))); + : (byte) Math + .max(aBaseBlockHarvestLevel, Math.min(7, aMaterial.mToolQuality - (aMetaData < 16000 ? 0 : 1))); if (GT_Mod.gregtechproxy.mChangeHarvestLevels) { tByte = aMaterial == null ? 0 - : (byte) Math.max( - aBaseBlockHarvestLevel, - Math.min( - GT_Mod.gregtechproxy.mMaxHarvestLevel, - GT_Mod.gregtechproxy.mHarvestLevel[aMaterial.mMetaItemSubID] - - (aMetaData < 16000 ? 0 : 1))); + : (byte) Math.max( + aBaseBlockHarvestLevel, + Math.min( + GT_Mod.gregtechproxy.mMaxHarvestLevel, + GT_Mod.gregtechproxy.mHarvestLevel[aMaterial.mMetaItemSubID] - (aMetaData < 16000 ? 0 : 1))); } return tByte; } @@ -55,7 +53,7 @@ public class GT_TileEntity_Ores extends TileEntity implements ITexturedTileEntit } public static boolean setOreBlock(World aWorld, int aX, int aY, int aZ, int aMetaData, boolean isSmallOre, - boolean air) { + boolean air) { if (!air) { aY = Math.min(aWorld.getActualHeight(), Math.max(aY, 1)); } @@ -115,14 +113,14 @@ public class GT_TileEntity_Ores extends TileEntity implements ITexturedTileEntit } // GT_FML_LOGGER.info(tOreBlock); aWorld.setBlock( - aX, - aY, - aZ, - tOreBlock, - getHarvestData( - (short) aMetaData, - ((GT_Block_Ores_Abstract) tOreBlock).getBaseBlockHarvestLevel(aMetaData % 16000 / 1000)), - 0); + aX, + aY, + aZ, + tOreBlock, + getHarvestData( + (short) aMetaData, + ((GT_Block_Ores_Abstract) tOreBlock).getBaseBlockHarvestLevel(aMetaData % 16000 / 1000)), + 0); TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ); if ((tTileEntity instanceof GT_TileEntity_Ores)) { ((GT_TileEntity_Ores) tTileEntity).mMetaData = ((short) aMetaData); @@ -151,10 +149,10 @@ public class GT_TileEntity_Ores extends TileEntity implements ITexturedTileEntit if ((!this.worldObj.isRemote) && (this.mBlocked)) { this.mBlocked = false; GT_Values.NW.sendPacketToAllPlayersInRange( - this.worldObj, - new GT_Packet_Ores(this.xCoord, (short) this.yCoord, this.zCoord, this.mMetaData), - this.xCoord, - this.zCoord); + this.worldObj, + new GT_Packet_Ores(this.xCoord, (short) this.yCoord, this.zCoord, this.mMetaData), + this.xCoord, + this.zCoord); } } @@ -164,10 +162,10 @@ public class GT_TileEntity_Ores extends TileEntity implements ITexturedTileEntit boolean sendUpdate = mBlockedChecked ? !mBlocked : checkBlocked(); if (sendUpdate) { GT_Values.NW.sendPacketToAllPlayersInRange( - this.worldObj, - new GT_Packet_Ores(this.xCoord, (short) this.yCoord, this.zCoord, this.mMetaData), - this.xCoord, - this.zCoord); + this.worldObj, + new GT_Packet_Ores(this.xCoord, (short) this.yCoord, this.zCoord, this.mMetaData), + this.xCoord, + this.zCoord); } } return null; @@ -219,61 +217,51 @@ public class GT_TileEntity_Ores extends TileEntity implements ITexturedTileEntit public void overrideOreBlockMaterial(Block aOverridingStoneBlock, byte aOverridingStoneMeta) { if (this.worldObj == null || blockType == null) return; this.mMetaData = ((short) (int) (this.mMetaData % 1000L + this.mMetaData / 16000L * 16000L)); - if (aOverridingStoneBlock.isReplaceableOreGen( - this.worldObj, - this.xCoord, - this.yCoord, - this.zCoord, - Blocks.netherrack)) { + if (aOverridingStoneBlock + .isReplaceableOreGen(this.worldObj, this.xCoord, this.yCoord, this.zCoord, Blocks.netherrack)) { this.mMetaData = ((short) (this.mMetaData + 1000)); - } else if (aOverridingStoneBlock.isReplaceableOreGen( + } else if (aOverridingStoneBlock + .isReplaceableOreGen(this.worldObj, this.xCoord, this.yCoord, this.zCoord, Blocks.end_stone)) { + this.mMetaData = ((short) (this.mMetaData + 2000)); + } else if (aOverridingStoneBlock.isReplaceableOreGen( this.worldObj, this.xCoord, this.yCoord, this.zCoord, - Blocks.end_stone)) { - this.mMetaData = ((short) (this.mMetaData + 2000)); - } else - if (aOverridingStoneBlock.isReplaceableOreGen( + GregTech_API.sBlockGranites)) { + if (aOverridingStoneBlock == GregTech_API.sBlockGranites) { + if (aOverridingStoneMeta < 8) { + this.mMetaData = ((short) (this.mMetaData + 3000)); + } else { + this.mMetaData = ((short) (this.mMetaData + 4000)); + } + } else { + this.mMetaData = ((short) (this.mMetaData + 3000)); + } + } else if (aOverridingStoneBlock.isReplaceableOreGen( this.worldObj, this.xCoord, this.yCoord, this.zCoord, - GregTech_API.sBlockGranites)) { - if (aOverridingStoneBlock == GregTech_API.sBlockGranites) { + GregTech_API.sBlockStones)) { + if (aOverridingStoneBlock == GregTech_API.sBlockStones) { if (aOverridingStoneMeta < 8) { - this.mMetaData = ((short) (this.mMetaData + 3000)); + this.mMetaData = ((short) (this.mMetaData + 5000)); } else { - this.mMetaData = ((short) (this.mMetaData + 4000)); + this.mMetaData = ((short) (this.mMetaData + 6000)); } } else { - this.mMetaData = ((short) (this.mMetaData + 3000)); - } - } else - if (aOverridingStoneBlock.isReplaceableOreGen( - this.worldObj, - this.xCoord, - this.yCoord, - this.zCoord, - GregTech_API.sBlockStones)) { - if (aOverridingStoneBlock == GregTech_API.sBlockStones) { - if (aOverridingStoneMeta < 8) { - this.mMetaData = ((short) (this.mMetaData + 5000)); - } else { - this.mMetaData = ((short) (this.mMetaData + 6000)); - } - } else { - this.mMetaData = ((short) (this.mMetaData + 5000)); - } + this.mMetaData = ((short) (this.mMetaData + 5000)); } + } this.worldObj.setBlockMetadataWithNotify( - this.xCoord, - this.yCoord, - this.zCoord, - getHarvestData( - this.mMetaData, - ((GT_Block_Ores_Abstract) blockType).getBaseBlockHarvestLevel(mMetaData % 16000 / 1000)), - 0); + this.xCoord, + this.yCoord, + this.zCoord, + getHarvestData( + this.mMetaData, + ((GT_Block_Ores_Abstract) blockType).getBaseBlockHarvestLevel(mMetaData % 16000 / 1000)), + 0); } public void convertOreBlock(World aWorld, int aX, int aY, int aZ) { @@ -283,14 +271,13 @@ public class GT_TileEntity_Ores extends TileEntity implements ITexturedTileEntit if (tTileEntity instanceof GT_TileEntity_Ores) { ((GT_TileEntity_Ores) tTileEntity).mMetaData = aMeta; this.worldObj.setBlockMetadataWithNotify( - this.xCoord, - this.yCoord, - this.zCoord, - getHarvestData( - aMeta, - ((GT_Block_Ores_Abstract) tTileEntity.blockType).getBaseBlockHarvestLevel( - aMeta % 16000 / 1000)), - 0); + this.xCoord, + this.yCoord, + this.zCoord, + getHarvestData( + aMeta, + ((GT_Block_Ores_Abstract) tTileEntity.blockType).getBaseBlockHarvestLevel(aMeta % 16000 / 1000)), + 0); } } @@ -326,21 +313,15 @@ public class GT_TileEntity_Ores extends TileEntity implements ITexturedTileEntit Materials aMaterial = aOreMaterial.mOreReplacement; - ItemStack tStack = GT_OreDictUnificator.get( - OrePrefixes.gemExquisite, - aMaterial, - GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 1L), - 1L); + ItemStack tStack = GT_OreDictUnificator + .get(OrePrefixes.gemExquisite, aMaterial, GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 1L), 1L); if (tStack != null) { for (int i = 0; i < 1; i++) { tSelector.add(tStack); } } - tStack = GT_OreDictUnificator.get( - OrePrefixes.gemFlawless, - aMaterial, - GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 1L), - 1L); + tStack = GT_OreDictUnificator + .get(OrePrefixes.gemFlawless, aMaterial, GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 1L), 1L); if (tStack != null) { for (int i = 0; i < 2; i++) { tSelector.add(tStack); @@ -353,10 +334,10 @@ public class GT_TileEntity_Ores extends TileEntity implements ITexturedTileEntit } } tStack = GT_OreDictUnificator.get( - OrePrefixes.gemFlawed, - aMaterial, - GT_OreDictUnificator.get(OrePrefixes.crushed, aMaterial, 1L), - 1L); + OrePrefixes.gemFlawed, + aMaterial, + GT_OreDictUnificator.get(OrePrefixes.crushed, aMaterial, 1L), + 1L); if (tStack != null) { for (int i = 0; i < 5; i++) { tSelector.add(tStack); @@ -369,10 +350,10 @@ public class GT_TileEntity_Ores extends TileEntity implements ITexturedTileEntit } } tStack = GT_OreDictUnificator.get( - OrePrefixes.gemChipped, - aMaterial, - GT_OreDictUnificator.get(OrePrefixes.dustImpure, aMaterial, 1L), - 1L); + OrePrefixes.gemChipped, + aMaterial, + GT_OreDictUnificator.get(OrePrefixes.dustImpure, aMaterial, 1L), + 1L); if (tStack != null) { for (int i = 0; i < 5; i++) { tSelector.add(tStack); @@ -387,21 +368,19 @@ public class GT_TileEntity_Ores extends TileEntity implements ITexturedTileEntit if (!tSelector.isEmpty()) { int i = 0; for (int j = Math.max( - 1, - aMaterial.mOreMultiplier - + (aFortune > 0 ? tRandom.nextInt(1 + aFortune * aMaterial.mOreMultiplier) : 0) / 2); i - < j; i++) { + 1, + aMaterial.mOreMultiplier + + (aFortune > 0 ? tRandom.nextInt(1 + aFortune * aMaterial.mOreMultiplier) : 0) / 2); i + < j; i++) { rList.add(GT_Utility.copyAmount(1L, tSelector.get(tRandom.nextInt(tSelector.size())))); } } if (tRandom.nextInt(3 + aFortune) > 1) { Materials dustMat = ((GT_Block_Ores_Abstract) aDroppedOre).getDroppedDusts()[this.mMetaData / 1000 - % 16]; + % 16]; if (dustMat != null) rList.add( - GT_OreDictUnificator.get( - tRandom.nextInt(3) > 0 ? OrePrefixes.dustImpure : OrePrefixes.dust, - dustMat, - 1L)); + GT_OreDictUnificator + .get(tRandom.nextInt(3) > 0 ? OrePrefixes.dustImpure : OrePrefixes.dust, dustMat, 1L)); } } return rList; @@ -412,22 +391,20 @@ public class GT_TileEntity_Ores extends TileEntity implements ITexturedTileEntit Materials aMaterial = GregTech_API.sGeneratedMaterials[(this.mMetaData % 1000)]; if ((aMaterial != null) && (this.mMetaData < 32000)) { ITexture iTexture = TextureFactory.builder() - .addIcon( - aMaterial.mIconSet.mTextures[this.mMetaData / 16000 == 0 - ? OrePrefixes.ore.mTextureIndex - : OrePrefixes.oreSmall.mTextureIndex]) - .setRGBA(aMaterial.mRGBa) - .stdOrient() - .build(); + .addIcon( + aMaterial.mIconSet.mTextures[this.mMetaData / 16000 == 0 ? OrePrefixes.ore.mTextureIndex + : OrePrefixes.oreSmall.mTextureIndex]) + .setRGBA(aMaterial.mRGBa) + .stdOrient() + .build(); if (aBlock instanceof GT_Block_Ores_Abstract) { return new ITexture[] { - ((GT_Block_Ores_Abstract) aBlock).getTextureSet()[((this.mMetaData / 1000) % 16)], iTexture }; + ((GT_Block_Ores_Abstract) aBlock).getTextureSet()[((this.mMetaData / 1000) % 16)], iTexture }; } } return new ITexture[] { TextureFactory.of(Blocks.stone, 0), TextureFactory.builder() - .addIcon( - SET_NONE.mTextures[OrePrefixes.ore.mTextureIndex]) - .stdOrient() - .build() }; + .addIcon(SET_NONE.mTextures[OrePrefixes.ore.mTextureIndex]) + .stdOrient() + .build() }; } } diff --git a/src/main/java/gregtech/common/covers/CoverInfo.java b/src/main/java/gregtech/common/covers/CoverInfo.java index cc6d2db1e9..0c3cf6986f 100644 --- a/src/main/java/gregtech/common/covers/CoverInfo.java +++ b/src/main/java/gregtech/common/covers/CoverInfo.java @@ -49,7 +49,7 @@ public final class CoverInfo { coverID = aNBT.getInteger(NBT_ID); coverBehavior = GregTech_API.getCoverBehaviorNew(coverID); coverData = aNBT.hasKey(NBT_DATA) ? coverBehavior.createDataObject(aNBT.getTag(NBT_DATA)) - : coverBehavior.createDataObject(); + : coverBehavior.createDataObject(); coveredTile = new WeakReference<>(aTile); } @@ -136,13 +136,8 @@ public final class CoverInfo { } public ISerializableObject doCoverThings(long aTickTimer, byte aRedstone) { - return getCoverBehavior().doCoverThings( - coverSide, - aRedstone, - coverID, - coverData, - coveredTile.get(), - aTickTimer); + return getCoverBehavior() + .doCoverThings(coverSide, aRedstone, coverID, coverData, coveredTile.get(), aTickTimer); } public void onBaseTEDestroyed() { @@ -167,11 +162,11 @@ public final class CoverInfo { public ModularWindow createWindow(EntityPlayer player) { final GT_CoverUIBuildContext buildContext = new GT_CoverUIBuildContext( - player, - coverID, - coverSide, - coveredTile.get(), - true); + player, + coverID, + coverSide, + coveredTile.get(), + true); return getCoverBehavior().createWindow(buildContext); } @@ -224,15 +219,8 @@ public final class CoverInfo { } public boolean onCoverRightClick(EntityPlayer aPlayer, float aX, float aY, float aZ) { - return getCoverBehavior().onCoverRightClick( - coverSide, - coverID, - coverData, - coveredTile.get(), - aPlayer, - aX, - aY, - aZ); + return getCoverBehavior() + .onCoverRightClick(coverSide, coverID, coverData, coveredTile.get(), aPlayer, aX, aY, aZ); } public boolean onCoverShiftRightClick(EntityPlayer aPlayer) { @@ -240,15 +228,8 @@ public final class CoverInfo { } public ISerializableObject onCoverScrewdriverClick(EntityPlayer aPlayer, float aX, float aY, float aZ) { - return getCoverBehavior().onCoverScrewdriverClick( - coverSide, - coverID, - coverData, - coveredTile.get(), - aPlayer, - aX, - aY, - aZ); + return getCoverBehavior() + .onCoverScrewdriverClick(coverSide, coverID, coverData, coveredTile.get(), aPlayer, aX, aY, aZ); } public Block getFacadeBlock() { diff --git a/src/main/java/gregtech/common/covers/GT_Cover_Arm.java b/src/main/java/gregtech/common/covers/GT_Cover_Arm.java index 83cf48386d..d7600e0927 100644 --- a/src/main/java/gregtech/common/covers/GT_Cover_Arm.java +++ b/src/main/java/gregtech/common/covers/GT_Cover_Arm.java @@ -53,13 +53,13 @@ public class GT_Cover_Arm extends GT_CoverBehavior { @Override public boolean isRedstoneSensitive(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - long aTimer) { + long aTimer) { return false; } @Override public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - long aTimer) { + long aTimer) { if ((((aTileEntity instanceof IMachineProgress)) && (!((IMachineProgress) aTileEntity).isAllowedToWork()))) { return aCoverVariable; } @@ -90,24 +90,9 @@ public class GT_Cover_Arm extends GT_CoverBehavior { if (fromSlot > 0 && toSlot > 0) { if (fromTile instanceof IInventory && toTile instanceof IInventory) movedItems = GT_Utility.moveFromSlotToSlot( - (IInventory) fromTile, - (IInventory) toTile, - fromSlot - 1, - toSlot - 1, - null, - false, - (byte) 64, - (byte) 1, - (byte) 64, - (byte) 1); - } else if (toSlot > 0) { - byte side; - if ((aCoverVariable & EXPORT_MASK) > 0) side = aSide; - else side = GT_Utility.getOppositeSide(aSide); - movedItems = GT_Utility.moveOneItemStackIntoSlot( - fromTile, - toTile, - side, + (IInventory) fromTile, + (IInventory) toTile, + fromSlot - 1, toSlot - 1, null, false, @@ -115,21 +100,36 @@ public class GT_Cover_Arm extends GT_CoverBehavior { (byte) 1, (byte) 64, (byte) 1); + } else if (toSlot > 0) { + byte side; + if ((aCoverVariable & EXPORT_MASK) > 0) side = aSide; + else side = GT_Utility.getOppositeSide(aSide); + movedItems = GT_Utility.moveOneItemStackIntoSlot( + fromTile, + toTile, + side, + toSlot - 1, + null, + false, + (byte) 64, + (byte) 1, + (byte) 64, + (byte) 1); } else if (fromSlot > 0) { byte toSide; if ((aCoverVariable & EXPORT_MASK) > 0) toSide = aSide; else toSide = GT_Utility.getOppositeSide(aSide); if (fromTile instanceof IInventory) movedItems = GT_Utility.moveFromSlotToSide( - (IInventory) fromTile, - toTile, - fromSlot - 1, - toSide, - null, - false, - (byte) 64, - (byte) 1, - (byte) 64, - (byte) 1); + (IInventory) fromTile, + toTile, + fromSlot - 1, + toSide, + null, + false, + (byte) 64, + (byte) 1, + (byte) 64, + (byte) 1); } else { byte fromSide, toSide; if ((aCoverVariable & EXPORT_MASK) > 0) { @@ -140,16 +140,16 @@ public class GT_Cover_Arm extends GT_CoverBehavior { toSide = aSide; } movedItems = GT_Utility.moveOneItemStack( - fromTile, - toTile, - fromSide, - toSide, - null, - false, - (byte) 64, - (byte) 1, - (byte) 64, - (byte) 1); + fromTile, + toTile, + fromSide, + toSide, + null, + false, + (byte) 64, + (byte) 1, + (byte) 64, + (byte) 1); } return aCoverVariable; @@ -157,7 +157,7 @@ public class GT_Cover_Arm extends GT_CoverBehavior { @Override public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - EntityPlayer aPlayer, float aX, float aY, float aZ) { + EntityPlayer aPlayer, float aX, float aY, float aZ) { int step = 0; if (GT_Utility.getClickedFacingCoords(aSide, aX, aY, aZ)[0] >= 0.5F) { step += aPlayer.isSneaking() ? 256 : 16; @@ -171,8 +171,8 @@ public class GT_Cover_Arm extends GT_CoverBehavior { @Override protected boolean onCoverRightClickImpl(byte aSide, int aCoverID, - ISerializableObject.LegacyCoverData aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, - float aY, float aZ) { + ISerializableObject.LegacyCoverData aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, + float aY, float aZ) { int step = (GT_Utility.getClickedFacingCoords(aSide, aX, aY, aZ)[0] >= 0.5F) ? 1 : -1; int tCoverVariable = getNewVar(aCoverVariable.get(), step); sendMessageToPlayer(aPlayer, tCoverVariable); @@ -183,7 +183,7 @@ public class GT_Cover_Arm extends GT_CoverBehavior { @Override @SuppressWarnings("deprecation") public boolean onCoverRightclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - EntityPlayer aPlayer, float aX, float aY, float aZ) { + EntityPlayer aPlayer, float aX, float aY, float aZ) { int step = (GT_Utility.getClickedFacingCoords(aSide, aX, aY, aZ)[0] >= 0.5F) ? 1 : -1; aCoverVariable = getNewVar(aCoverVariable, step); sendMessageToPlayer(aPlayer, aCoverVariable); @@ -193,11 +193,10 @@ public class GT_Cover_Arm extends GT_CoverBehavior { private void sendMessageToPlayer(EntityPlayer aPlayer, int var) { if ((var & EXPORT_MASK) != 0) GT_Utility.sendChatToPlayer( - aPlayer, - GT_Utility.trans("001", "Puts out into adjacent Slot #") + (((var >> 14) & SLOT_ID_MASK) - 1)); - else GT_Utility.sendChatToPlayer( - aPlayer, - GT_Utility.trans("002", "Grabs in for own Slot #") + ((var & SLOT_ID_MASK) - 1)); + aPlayer, + GT_Utility.trans("001", "Puts out into adjacent Slot #") + (((var >> 14) & SLOT_ID_MASK) - 1)); + else GT_Utility + .sendChatToPlayer(aPlayer, GT_Utility.trans("002", "Grabs in for own Slot #") + ((var & SLOT_ID_MASK) - 1)); } private int getNewVar(int var, int step) { @@ -305,134 +304,111 @@ public class GT_Cover_Arm extends GT_CoverBehavior { protected void addUIWidgets(ModularWindow.Builder builder) { maxSlot = getMaxSlot(); builder.widget( - new CoverDataControllerWidget<>( - this::getCoverData, - this::setCoverData, - GT_Cover_Arm.this).addFollower( - CoverDataFollower_ToggleButtonWidget.ofDisableable(), - coverData -> getFlagExport(convert(coverData)) > 0, - (coverData, state) -> { - if (state) { - return new ISerializableObject.LegacyCoverData( - convert(coverData) | EXPORT_MASK | CONVERTED_BIT); - } else { - return new ISerializableObject.LegacyCoverData( - convert(coverData) & ~EXPORT_MASK | CONVERTED_BIT); - } - }, - widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_EXPORT) - .addTooltip(GT_Utility.trans("006", "Export")) - .setPos(spaceX * 0, spaceY * 0)) - .addFollower( - CoverDataFollower_ToggleButtonWidget.ofDisableable(), - coverData -> getFlagExport(convert(coverData)) == 0, - (coverData, state) -> { - if (state) { - return new ISerializableObject.LegacyCoverData( - convert(coverData) & ~EXPORT_MASK - | CONVERTED_BIT); - } else { - return new ISerializableObject.LegacyCoverData( - convert(coverData) | EXPORT_MASK | CONVERTED_BIT); - } - }, - widget -> widget.setStaticTexture( - GT_UITextures.OVERLAY_BUTTON_IMPORT) - .addTooltip(GT_Utility.trans("007", "Import")) - .setPos(spaceX * 1, spaceY * 0)) - .addFollower( - new CoverDataFollower_TextFieldWidget<>(), - coverData -> getTextFieldContent( - getFlagInternalSlot(convert(coverData)) - 1), - (coverData, state) -> { - final int coverVariable = convert(coverData); - return new ISerializableObject.LegacyCoverData( - getFlagExport(coverVariable) - | ((getIntFromText(state) + 1) & SLOT_ID_MASK) - | (getFlagAdjacentSlot(coverVariable) << 14) - | CONVERTED_BIT); - }, - widget -> widget.setOnScrollText() - .setValidator(val -> { - final int valSlot = getIntFromText(val); - if (valSlot > -1) { - return TextFieldWidget.format.format( - Math.min(valSlot, maxSlot)); - } else { - return ANY_TEXT; - } - }) - .setPattern(BaseTextFieldWidget.NATURAL_NUMS) - .setFocusOnGuiOpen(true) - .setPos(spaceX * 0, spaceY * 1 + 2) - .setSize(spaceX * 2 + 5, 12)) - .addFollower( - new CoverDataFollower_TextFieldWidget<>(), - coverData -> getTextFieldContent( - getFlagAdjacentSlot(convert(coverData)) - 1), - (coverData, state) -> { - final int coverVariable = convert(coverData); - return new ISerializableObject.LegacyCoverData( - getFlagExport(coverVariable) - | getFlagInternalSlot(coverVariable) - | (((getIntFromText(state) + 1) - & SLOT_ID_MASK) << 14) - | CONVERTED_BIT); - }, - widget -> widget.setValidator(val -> { - final int valSlot = getIntFromText(val); - final int adjacentMaxSlot; - final ICoverable tile = getUIBuildContext().getTile(); - if (tile instanceof TileEntity && !tile.isDead()) { - TileEntity adj = tile.getTileEntityAtSide( - getUIBuildContext().getCoverSide()); - if (adj instanceof IInventory) - adjacentMaxSlot = ((IInventory) adj).getSizeInventory() - - 1; - else adjacentMaxSlot = -1; - } else { - adjacentMaxSlot = -1; - } - if (valSlot > -1) { - return TextFieldWidget.format.format( - Math.min(valSlot, adjacentMaxSlot)); - } else { - return ANY_TEXT; - } - }) - .setOnScroll((text, direction) -> { - final int val = getIntFromText(text); - int step = (GuiScreen.isShiftKeyDown() ? 50 - : GuiScreen.isCtrlKeyDown() ? 5 : 1) - * direction; - return TextFieldWidget.format.format( - val + step); - }) - .setPattern(BaseTextFieldWidget.NATURAL_NUMS) - .setPos(spaceX * 0, spaceY * 2 + 2) - .setSize(spaceX * 2 + 5, 12)) - .setPos(startX, startY)) - .widget( - TextWidget.dynamicString( - () -> (convert(getCoverData()) & EXPORT_MASK) > 0 ? GT_Utility.trans("006", "Export") - : GT_Utility.trans("007", "Import")) - .setSynced(false) - .setDefaultColor(COLOR_TEXT_GRAY.get()) - .setPos(startX + spaceX * 3, 4 + startY + spaceY * 0)) - .widget( - new TextWidget(GT_Utility.trans("254.1", "Internal slot#")) - .setDefaultColor( - COLOR_TEXT_GRAY.get()) - .setPos( - startX + spaceX * 3, - 4 + startY + spaceY * 1)) - .widget( - new TextWidget(GT_Utility.trans("255", "Adjacent slot#")) - .setDefaultColor( - COLOR_TEXT_GRAY.get()) - .setPos( - startX + spaceX * 3, - 4 + startY + spaceY * 2)); + new CoverDataControllerWidget<>(this::getCoverData, this::setCoverData, GT_Cover_Arm.this).addFollower( + CoverDataFollower_ToggleButtonWidget.ofDisableable(), + coverData -> getFlagExport(convert(coverData)) > 0, + (coverData, state) -> { + if (state) { + return new ISerializableObject.LegacyCoverData( + convert(coverData) | EXPORT_MASK | CONVERTED_BIT); + } else { + return new ISerializableObject.LegacyCoverData( + convert(coverData) & ~EXPORT_MASK | CONVERTED_BIT); + } + }, + widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_EXPORT) + .addTooltip(GT_Utility.trans("006", "Export")) + .setPos(spaceX * 0, spaceY * 0)) + .addFollower( + CoverDataFollower_ToggleButtonWidget.ofDisableable(), + coverData -> getFlagExport(convert(coverData)) == 0, + (coverData, state) -> { + if (state) { + return new ISerializableObject.LegacyCoverData( + convert(coverData) & ~EXPORT_MASK | CONVERTED_BIT); + } else { + return new ISerializableObject.LegacyCoverData( + convert(coverData) | EXPORT_MASK | CONVERTED_BIT); + } + }, + widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_IMPORT) + .addTooltip(GT_Utility.trans("007", "Import")) + .setPos(spaceX * 1, spaceY * 0)) + .addFollower( + new CoverDataFollower_TextFieldWidget<>(), + coverData -> getTextFieldContent(getFlagInternalSlot(convert(coverData)) - 1), + (coverData, state) -> { + final int coverVariable = convert(coverData); + return new ISerializableObject.LegacyCoverData( + getFlagExport(coverVariable) | ((getIntFromText(state) + 1) & SLOT_ID_MASK) + | (getFlagAdjacentSlot(coverVariable) << 14) + | CONVERTED_BIT); + }, + widget -> widget.setOnScrollText() + .setValidator(val -> { + final int valSlot = getIntFromText(val); + if (valSlot > -1) { + return TextFieldWidget.format.format(Math.min(valSlot, maxSlot)); + } else { + return ANY_TEXT; + } + }) + .setPattern(BaseTextFieldWidget.NATURAL_NUMS) + .setFocusOnGuiOpen(true) + .setPos(spaceX * 0, spaceY * 1 + 2) + .setSize(spaceX * 2 + 5, 12)) + .addFollower( + new CoverDataFollower_TextFieldWidget<>(), + coverData -> getTextFieldContent(getFlagAdjacentSlot(convert(coverData)) - 1), + (coverData, state) -> { + final int coverVariable = convert(coverData); + return new ISerializableObject.LegacyCoverData( + getFlagExport(coverVariable) | getFlagInternalSlot(coverVariable) + | (((getIntFromText(state) + 1) & SLOT_ID_MASK) << 14) + | CONVERTED_BIT); + }, + widget -> widget.setValidator(val -> { + final int valSlot = getIntFromText(val); + final int adjacentMaxSlot; + final ICoverable tile = getUIBuildContext().getTile(); + if (tile instanceof TileEntity && !tile.isDead()) { + TileEntity adj = tile.getTileEntityAtSide(getUIBuildContext().getCoverSide()); + if (adj instanceof IInventory) + adjacentMaxSlot = ((IInventory) adj).getSizeInventory() - 1; + else adjacentMaxSlot = -1; + } else { + adjacentMaxSlot = -1; + } + if (valSlot > -1) { + return TextFieldWidget.format.format(Math.min(valSlot, adjacentMaxSlot)); + } else { + return ANY_TEXT; + } + }) + .setOnScroll((text, direction) -> { + final int val = getIntFromText(text); + int step = (GuiScreen.isShiftKeyDown() ? 50 : GuiScreen.isCtrlKeyDown() ? 5 : 1) + * direction; + return TextFieldWidget.format.format(val + step); + }) + .setPattern(BaseTextFieldWidget.NATURAL_NUMS) + .setPos(spaceX * 0, spaceY * 2 + 2) + .setSize(spaceX * 2 + 5, 12)) + .setPos(startX, startY)) + .widget( + TextWidget + .dynamicString( + () -> (convert(getCoverData()) & EXPORT_MASK) > 0 ? GT_Utility.trans("006", "Export") + : GT_Utility.trans("007", "Import")) + .setSynced(false) + .setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 3, 4 + startY + spaceY * 0)) + .widget( + new TextWidget(GT_Utility.trans("254.1", "Internal slot#")).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 3, 4 + startY + spaceY * 1)) + .widget( + new TextWidget(GT_Utility.trans("255", "Adjacent slot#")).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 3, 4 + startY + spaceY * 2)); } private int getMaxSlot() { diff --git a/src/main/java/gregtech/common/covers/GT_Cover_ControlsWork.java b/src/main/java/gregtech/common/covers/GT_Cover_ControlsWork.java index 8349dde2ee..872371a355 100644 --- a/src/main/java/gregtech/common/covers/GT_Cover_ControlsWork.java +++ b/src/main/java/gregtech/common/covers/GT_Cover_ControlsWork.java @@ -37,7 +37,7 @@ public class GT_Cover_ControlsWork extends GT_CoverBehavior implements IControls @Override public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - long aTimer) { + long aTimer) { if (!makeSureOnlyOne(aSide, aTileEntity)) return 0; if (aTileEntity instanceof IMachineProgress machine) { if (aCoverVariable < 2) { @@ -53,14 +53,14 @@ public class GT_Cover_ControlsWork extends GT_CoverBehavior implements IControls if (!mPlayerNotified) { mPlayerNotified = true; GT_Utility.sendChatToPlayer( - lastPlayer, - aTileEntity.getInventoryName() + "at " - + String.format( - "(%d,%d,%d)", - aTileEntity.getXCoord(), - aTileEntity.getYCoord(), - aTileEntity.getZCoord()) - + " shut down."); + lastPlayer, + aTileEntity.getInventoryName() + "at " + + String.format( + "(%d,%d,%d)", + aTileEntity.getXCoord(), + aTileEntity.getYCoord(), + aTileEntity.getZCoord()) + + " shut down."); } return 2; } else { @@ -73,7 +73,7 @@ public class GT_Cover_ControlsWork extends GT_CoverBehavior implements IControls @Override protected boolean isRedstoneSensitiveImpl(byte aSide, int aCoverID, - ISerializableObject.LegacyCoverData aCoverVariable, ICoverable aTileEntity, long aTimer) { + ISerializableObject.LegacyCoverData aCoverVariable, ICoverable aTileEntity, long aTimer) { return aCoverVariable.get() != 2; // always off, so no redstone needed either } @@ -119,7 +119,7 @@ public class GT_Cover_ControlsWork extends GT_CoverBehavior implements IControls @Override public boolean onCoverRemoval(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - boolean aForced) { + boolean aForced) { if ((aTileEntity instanceof IMachineProgress)) { ((IMachineProgress) aTileEntity).enableWorking(); ((IMachineProgress) aTileEntity).setWorkDataValue((byte) 0); @@ -129,7 +129,7 @@ public class GT_Cover_ControlsWork extends GT_CoverBehavior implements IControls @Override public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - EntityPlayer aPlayer, float aX, float aY, float aZ) { + EntityPlayer aPlayer, float aX, float aY, float aZ) { aCoverVariable = (aCoverVariable + (aPlayer.isSneaking() ? -1 : 1)) % 5; if (aCoverVariable < 0) { aCoverVariable = 2; @@ -200,75 +200,54 @@ public class GT_Cover_ControlsWork extends GT_CoverBehavior implements IControls @SuppressWarnings("PointlessArithmeticExpression") @Override protected void addUIWidgets(ModularWindow.Builder builder) { - builder.widget( + builder + .widget( new CoverDataControllerWidget.CoverDataIndexedControllerWidget_ToggleButtons<>( - this::getCoverData, - this::setCoverData, - GT_Cover_ControlsWork.this, - (id, coverData) -> !getClickable(id, convert(coverData)), - (id, coverData) -> new ISerializableObject.LegacyCoverData( - getNewCoverVariable(id, convert(coverData)))).addToggleButton( - 0, - CoverDataFollower_ToggleButtonWidget.ofDisableable(), - widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_REDSTONE_ON) - .setPos(spaceX * 0, spaceY * 0)) - .addToggleButton( - 1, - CoverDataFollower_ToggleButtonWidget.ofDisableable(), - widget -> widget.setStaticTexture( - GT_UITextures.OVERLAY_BUTTON_REDSTONE_OFF) - .setPos( - spaceX * 0, - spaceY * 1)) - .addToggleButton( - 2, - CoverDataFollower_ToggleButtonWidget.ofDisableable(), - widget -> widget.setStaticTexture( - GT_UITextures.OVERLAY_BUTTON_CROSS) - .setPos( - spaceX * 0, - spaceY * 2)) - .setPos(startX, startY)) - .widget( - new CoverDataControllerWidget<>( - this::getCoverData, - this::setCoverData, - GT_Cover_ControlsWork.this).addFollower( - CoverDataFollower_ToggleButtonWidget.ofCheckAndCross(), - coverData -> convert(coverData) > 2, - (coverData, state) -> new ISerializableObject.LegacyCoverData( - adjustCoverVariable(state, convert(coverData))), - widget -> widget.setPos(spaceX * 0, spaceY * 3)) - .setPos(startX, startY)) - .widget( - new TextWidget(GT_Utility.trans("243", "Enable with Redstone")) - .setDefaultColor( - COLOR_TEXT_GRAY.get()) - .setPos( - 3 + startX - + spaceX * 1, - 4 + startY - + spaceY * 0)) - .widget( - new TextWidget( - GT_Utility.trans("244", "Disable with Redstone")) - .setDefaultColor( - COLOR_TEXT_GRAY.get()) - .setPos( - 3 + startX + spaceX * 1, - 4 + startY + spaceY * 1)) - .widget( - new TextWidget(GT_Utility.trans("245", "Disable machine")) - .setDefaultColor( - COLOR_TEXT_GRAY.get()) - .setPos( - 3 + startX + spaceX * 1, - 4 + startY + spaceY * 2)) - .widget( - new TextWidget(GT_Utility.trans("507", "Safe Mode")).setDefaultColor(COLOR_TEXT_GRAY.get()) - .setPos( - 3 + startX + spaceX * 1, - 4 + startY + spaceY * 3)); + this::getCoverData, + this::setCoverData, + GT_Cover_ControlsWork.this, + (id, coverData) -> !getClickable(id, convert(coverData)), + (id, coverData) -> new ISerializableObject.LegacyCoverData( + getNewCoverVariable(id, convert(coverData)))) + .addToggleButton( + 0, + CoverDataFollower_ToggleButtonWidget.ofDisableable(), + widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_REDSTONE_ON) + .setPos(spaceX * 0, spaceY * 0)) + .addToggleButton( + 1, + CoverDataFollower_ToggleButtonWidget.ofDisableable(), + widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_REDSTONE_OFF) + .setPos(spaceX * 0, spaceY * 1)) + .addToggleButton( + 2, + CoverDataFollower_ToggleButtonWidget.ofDisableable(), + widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_CROSS) + .setPos(spaceX * 0, spaceY * 2)) + .setPos(startX, startY)) + .widget( + new CoverDataControllerWidget<>(this::getCoverData, this::setCoverData, GT_Cover_ControlsWork.this) + .addFollower( + CoverDataFollower_ToggleButtonWidget.ofCheckAndCross(), + coverData -> convert(coverData) > 2, + (coverData, state) -> new ISerializableObject.LegacyCoverData( + adjustCoverVariable(state, convert(coverData))), + widget -> widget.setPos(spaceX * 0, spaceY * 3)) + .setPos(startX, startY)) + .widget( + new TextWidget(GT_Utility.trans("243", "Enable with Redstone")) + .setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(3 + startX + spaceX * 1, 4 + startY + spaceY * 0)) + .widget( + new TextWidget(GT_Utility.trans("244", "Disable with Redstone")) + .setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(3 + startX + spaceX * 1, 4 + startY + spaceY * 1)) + .widget( + new TextWidget(GT_Utility.trans("245", "Disable machine")).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(3 + startX + spaceX * 1, 4 + startY + spaceY * 2)) + .widget( + new TextWidget(GT_Utility.trans("507", "Safe Mode")).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(3 + startX + spaceX * 1, 4 + startY + spaceY * 3)); } private int getNewCoverVariable(int id, int coverVariable) { diff --git a/src/main/java/gregtech/common/covers/GT_Cover_Conveyor.java b/src/main/java/gregtech/common/covers/GT_Cover_Conveyor.java index ac99e56005..80d7dff6ae 100644 --- a/src/main/java/gregtech/common/covers/GT_Cover_Conveyor.java +++ b/src/main/java/gregtech/common/covers/GT_Cover_Conveyor.java @@ -49,13 +49,13 @@ public class GT_Cover_Conveyor extends GT_CoverBehavior { @Override public boolean isRedstoneSensitive(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - long aTimer) { + long aTimer) { return false; } @Override public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - long aTimer) { + long aTimer) { if ((aCoverVariable % 6 > 1) && ((aTileEntity instanceof IMachineProgress))) { if (((IMachineProgress) aTileEntity).isAllowedToWork() != aCoverVariable % 6 < 4) { return aCoverVariable; @@ -68,24 +68,24 @@ public class GT_Cover_Conveyor extends GT_CoverBehavior { final byte toSide = aCoverVariable % 2 == 0 ? GT_Utility.getOppositeSide(aSide) : aSide; moveMultipleItemStacks( - fromEntity, - toEntity, - fromSide, - toSide, - null, - false, - (byte) 64, - (byte) 1, - (byte) 64, - (byte) 1, - this.mMaxStacks); + fromEntity, + toEntity, + fromSide, + toSide, + null, + false, + (byte) 64, + (byte) 1, + (byte) 64, + (byte) 1, + this.mMaxStacks); return aCoverVariable; } @Override public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - EntityPlayer aPlayer, float aX, float aY, float aZ) { + EntityPlayer aPlayer, float aX, float aY, float aZ) { aCoverVariable = (aCoverVariable + (aPlayer.isSneaking() ? -1 : 1)) % 12; if (aCoverVariable < 0) { aCoverVariable = 11; @@ -100,15 +100,12 @@ public class GT_Cover_Conveyor extends GT_CoverBehavior { case 6 -> GT_Utility.sendChatToPlayer(aPlayer, GT_Utility.trans("012", "Export allow Input")); case 7 -> GT_Utility.sendChatToPlayer(aPlayer, GT_Utility.trans("013", "Import allow Output")); case 8 -> GT_Utility.sendChatToPlayer(aPlayer, GT_Utility.trans("014", "Export allow Input (conditional)")); - case 9 -> GT_Utility.sendChatToPlayer( - aPlayer, - GT_Utility.trans("015", "Import allow Output (conditional)")); - case 10 -> GT_Utility.sendChatToPlayer( - aPlayer, - GT_Utility.trans("016", "Export allow Input (invert cond)")); - case 11 -> GT_Utility.sendChatToPlayer( - aPlayer, - GT_Utility.trans("017", "Import allow Output (invert cond)")); + case 9 -> GT_Utility + .sendChatToPlayer(aPlayer, GT_Utility.trans("015", "Import allow Output (conditional)")); + case 10 -> GT_Utility + .sendChatToPlayer(aPlayer, GT_Utility.trans("016", "Export allow Input (invert cond)")); + case 11 -> GT_Utility + .sendChatToPlayer(aPlayer, GT_Utility.trans("017", "Import allow Output (invert cond)")); } return aCoverVariable; } @@ -194,111 +191,67 @@ public class GT_Cover_Conveyor extends GT_CoverBehavior { @SuppressWarnings("PointlessArithmeticExpression") @Override protected void addUIWidgets(ModularWindow.Builder builder) { - builder.widget( + builder + .widget( new CoverDataControllerWidget.CoverDataIndexedControllerWidget_ToggleButtons<>( - this::getCoverData, - this::setCoverData, - GT_Cover_Conveyor.this, - (id, coverData) -> !getClickable(id, convert(coverData)), - (id, coverData) -> new ISerializableObject.LegacyCoverData( - getNewCoverVariable(id, convert(coverData)))).addToggleButton( - 0, - CoverDataFollower_ToggleButtonWidget.ofDisableable(), - widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_EXPORT) - .addTooltip(GT_Utility.trans("006", "Export")) - .setPos(spaceX * 0, spaceY * 0)) - .addToggleButton( - 1, - CoverDataFollower_ToggleButtonWidget.ofDisableable(), - widget -> widget.setStaticTexture( - GT_UITextures.OVERLAY_BUTTON_IMPORT) - .addTooltip( - GT_Utility.trans( - "007", - "Import")) - .setPos( - spaceX * 1, - spaceY * 0)) - .addToggleButton( - 2, - CoverDataFollower_ToggleButtonWidget.ofDisableable(), - widget -> widget.setStaticTexture( - GT_UITextures.OVERLAY_BUTTON_CHECKMARK) - .addTooltip( - GT_Utility.trans( - "224", - "Always On")) - .setPos( - spaceX * 0, - spaceY * 1)) - .addToggleButton( - 3, - CoverDataFollower_ToggleButtonWidget.ofDisableable(), - widget -> widget.setStaticTexture( - GT_UITextures.OVERLAY_BUTTON_REDSTONE_ON) - .addTooltip( - GT_Utility.trans( - "225", - "Active with Redstone Signal")) - .setPos( - spaceX * 1, - spaceY * 1)) - .addToggleButton( - 4, - CoverDataFollower_ToggleButtonWidget.ofDisableable(), - widget -> widget.setStaticTexture( - GT_UITextures.OVERLAY_BUTTON_REDSTONE_OFF) - .addTooltip( - GT_Utility.trans( - "226", - "Inactive with Redstone Signal")) - .setPos( - spaceX * 2, - spaceY * 1)) - .addToggleButton( - 5, - CoverDataFollower_ToggleButtonWidget.ofDisableable(), - widget -> widget.setStaticTexture( - GT_UITextures.OVERLAY_BUTTON_ALLOW_INPUT) - .addTooltip( - GT_Utility.trans( - "227", - "Allow Input")) - .setPos( - spaceX * 0, - spaceY * 2)) - .addToggleButton( - 6, - CoverDataFollower_ToggleButtonWidget.ofDisableable(), - widget -> widget.setStaticTexture( - GT_UITextures.OVERLAY_BUTTON_BLOCK_INPUT) - .addTooltip( - GT_Utility.trans( - "228", - "Block Input")) - .setPos( - spaceX * 1, - spaceY * 2)) - .setPos(startX, startY)) - .widget( - new TextWidget(GT_Utility.trans("229", "Import/Export")) - .setDefaultColor( - COLOR_TEXT_GRAY.get()) - .setPos( - startX + spaceX * 3, - 3 + startY + spaceY * 0)) - .widget( - new TextWidget(GT_Utility.trans("230", "Conditional")).setDefaultColor(COLOR_TEXT_GRAY.get()) - .setPos( - startX + spaceX * 3, - 3 + startY + spaceY * 1)) - .widget( - new TextWidget(GT_Utility.trans("231", "Enable Input")) - .setDefaultColor( - COLOR_TEXT_GRAY.get()) - .setPos( - startX + spaceX * 3, - 3 + startY + spaceY * 2)); + this::getCoverData, + this::setCoverData, + GT_Cover_Conveyor.this, + (id, coverData) -> !getClickable(id, convert(coverData)), + (id, coverData) -> new ISerializableObject.LegacyCoverData( + getNewCoverVariable(id, convert(coverData)))) + .addToggleButton( + 0, + CoverDataFollower_ToggleButtonWidget.ofDisableable(), + widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_EXPORT) + .addTooltip(GT_Utility.trans("006", "Export")) + .setPos(spaceX * 0, spaceY * 0)) + .addToggleButton( + 1, + CoverDataFollower_ToggleButtonWidget.ofDisableable(), + widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_IMPORT) + .addTooltip(GT_Utility.trans("007", "Import")) + .setPos(spaceX * 1, spaceY * 0)) + .addToggleButton( + 2, + CoverDataFollower_ToggleButtonWidget.ofDisableable(), + widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_CHECKMARK) + .addTooltip(GT_Utility.trans("224", "Always On")) + .setPos(spaceX * 0, spaceY * 1)) + .addToggleButton( + 3, + CoverDataFollower_ToggleButtonWidget.ofDisableable(), + widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_REDSTONE_ON) + .addTooltip(GT_Utility.trans("225", "Active with Redstone Signal")) + .setPos(spaceX * 1, spaceY * 1)) + .addToggleButton( + 4, + CoverDataFollower_ToggleButtonWidget.ofDisableable(), + widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_REDSTONE_OFF) + .addTooltip(GT_Utility.trans("226", "Inactive with Redstone Signal")) + .setPos(spaceX * 2, spaceY * 1)) + .addToggleButton( + 5, + CoverDataFollower_ToggleButtonWidget.ofDisableable(), + widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_ALLOW_INPUT) + .addTooltip(GT_Utility.trans("227", "Allow Input")) + .setPos(spaceX * 0, spaceY * 2)) + .addToggleButton( + 6, + CoverDataFollower_ToggleButtonWidget.ofDisableable(), + widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_BLOCK_INPUT) + .addTooltip(GT_Utility.trans("228", "Block Input")) + .setPos(spaceX * 1, spaceY * 2)) + .setPos(startX, startY)) + .widget( + new TextWidget(GT_Utility.trans("229", "Import/Export")).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 3, 3 + startY + spaceY * 0)) + .widget( + new TextWidget(GT_Utility.trans("230", "Conditional")).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 3, 3 + startY + spaceY * 1)) + .widget( + new TextWidget(GT_Utility.trans("231", "Enable Input")).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 3, 3 + startY + spaceY * 2)); } private int getNewCoverVariable(int id, int coverVariable) { diff --git a/src/main/java/gregtech/common/covers/GT_Cover_Crafting.java b/src/main/java/gregtech/common/covers/GT_Cover_Crafting.java index 4a5c254ee1..139317110b 100644 --- a/src/main/java/gregtech/common/covers/GT_Cover_Crafting.java +++ b/src/main/java/gregtech/common/covers/GT_Cover_Crafting.java @@ -25,23 +25,23 @@ public class GT_Cover_Crafting extends GT_CoverBehavior { @Override public boolean isRedstoneSensitive(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - long aTimer) { + long aTimer) { return false; } @Override public boolean onCoverRightclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - EntityPlayer aPlayer, float aX, float aY, float aZ) { + EntityPlayer aPlayer, float aX, float aY, float aZ) { if ((aPlayer instanceof EntityPlayerMP)) { ((EntityPlayerMP) aPlayer).getNextWindowId(); ((EntityPlayerMP) aPlayer).playerNetServerHandler.sendPacket( - new S2DPacketOpenWindow(((EntityPlayerMP) aPlayer).currentWindowId, 1, "Crafting", 9, true)); + new S2DPacketOpenWindow(((EntityPlayerMP) aPlayer).currentWindowId, 1, "Crafting", 9, true)); aPlayer.openContainer = new ContainerWorkbench( - aPlayer.inventory, - aPlayer.worldObj, - aTileEntity.getXCoord(), - aTileEntity.getYCoord(), - aTileEntity.getZCoord()) { + aPlayer.inventory, + aPlayer.worldObj, + aTileEntity.getXCoord(), + aTileEntity.getYCoord(), + aTileEntity.getZCoord()) { @Override public boolean canInteractWith(EntityPlayer player) { diff --git a/src/main/java/gregtech/common/covers/GT_Cover_DoesWork.java b/src/main/java/gregtech/common/covers/GT_Cover_DoesWork.java index 01d95f1664..367f070848 100644 --- a/src/main/java/gregtech/common/covers/GT_Cover_DoesWork.java +++ b/src/main/java/gregtech/common/covers/GT_Cover_DoesWork.java @@ -33,29 +33,29 @@ public class GT_Cover_DoesWork extends GT_CoverBehavior { @Override public boolean isRedstoneSensitive(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - long aTimer) { + long aTimer) { return false; } @Override public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - long aTimer) { + long aTimer) { if ((aTileEntity instanceof IMachineProgress)) { if (aCoverVariable < 2) { int tScale = ((IMachineProgress) aTileEntity).getMaxProgress() / 15; if ((tScale > 0) && (((IMachineProgress) aTileEntity).hasThingsToDo())) { aTileEntity.setOutputRedstoneSignal( - aSide, - aCoverVariable % 2 == 0 ? (byte) (((IMachineProgress) aTileEntity).getProgress() / tScale) - : (byte) (15 - ((IMachineProgress) aTileEntity).getProgress() / tScale)); + aSide, + aCoverVariable % 2 == 0 ? (byte) (((IMachineProgress) aTileEntity).getProgress() / tScale) + : (byte) (15 - ((IMachineProgress) aTileEntity).getProgress() / tScale)); } else { aTileEntity.setOutputRedstoneSignal(aSide, (byte) (aCoverVariable % 2 == 0 ? 0 : 15)); } } else { aTileEntity.setOutputRedstoneSignal( - aSide, - (byte) ((aCoverVariable % 2 == 0 ? 1 : 0) - != (((IMachineProgress) aTileEntity).getMaxProgress() == 0 ? 1 : 0) ? 0 : 15)); + aSide, + (byte) ((aCoverVariable % 2 == 0 ? 1 : 0) + != (((IMachineProgress) aTileEntity).getMaxProgress() == 0 ? 1 : 0) ? 0 : 15)); } } else { aTileEntity.setOutputRedstoneSignal(aSide, (byte) 0); @@ -65,7 +65,7 @@ public class GT_Cover_DoesWork extends GT_CoverBehavior { @Override public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - EntityPlayer aPlayer, float aX, float aY, float aZ) { + EntityPlayer aPlayer, float aX, float aY, float aZ) { aCoverVariable = (aCoverVariable + (aPlayer.isSneaking() ? -1 : 1)) % 4; if (aCoverVariable < 0) { aCoverVariable = 3; @@ -115,7 +115,7 @@ public class GT_Cover_DoesWork extends GT_CoverBehavior { @Override public boolean manipulatesSidedRedstoneOutput(byte aSide, int aCoverID, int aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return true; } @@ -155,48 +155,46 @@ public class GT_Cover_DoesWork extends GT_CoverBehavior { @SuppressWarnings("PointlessArithmeticExpression") @Override protected void addUIWidgets(ModularWindow.Builder builder) { - builder.widget( + builder + .widget( new CoverDataControllerWidget.CoverDataIndexedControllerWidget_ToggleButtons<>( - this::getCoverData, - this::setCoverData, - GT_Cover_DoesWork.this, - (id, coverData) -> isEnabled(id, convert(coverData)), - (id, coverData) -> new ISerializableObject.LegacyCoverData( - getNewCoverVariable(id, convert(coverData)))).addToggleButton( - 0, - CoverDataFollower_ToggleButtonWidget.ofDisableable(), - widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_PROGRESS) - .setPos(spaceX * 0, spaceY * 0)) - .addToggleButton( - 1, - CoverDataFollower_ToggleButtonWidget.ofDisableable(), - widget -> widget.setStaticTexture( - GT_UITextures.OVERLAY_BUTTON_CHECKMARK) - .setPos( - spaceX * 1, - spaceY * 0)) - .addToggleButton( - 2, - CoverDataFollower_ToggleButtonWidget.ofRedstone(), - widget -> widget.setPos( - spaceX * 0, - spaceY * 1)) - .setPos(startX, startY)) - .widget( - TextWidget.dynamicString( - () -> ((convert(getCoverData()) & 0x2) > 0) ? GT_Utility.trans("242", "Machine idle") - : GT_Utility.trans("241", "Recipe progress")) - .setSynced(false) - .setDefaultColor(COLOR_TEXT_GRAY.get()) - .setPos(startX + spaceX * 3, 4 + startY + spaceY * 0)) - .widget( - TextWidget.dynamicString( - () -> ((convert(getCoverData()) & 0x1) > 0) - ? GT_Utility.trans("INVERTED", "Inverted") - : GT_Utility.trans("NORMAL", "Normal")) - .setSynced(false) - .setDefaultColor(COLOR_TEXT_GRAY.get()) - .setPos(startX + spaceX * 3, 4 + startY + spaceY * 1)); + this::getCoverData, + this::setCoverData, + GT_Cover_DoesWork.this, + (id, coverData) -> isEnabled(id, convert(coverData)), + (id, coverData) -> new ISerializableObject.LegacyCoverData( + getNewCoverVariable(id, convert(coverData)))) + .addToggleButton( + 0, + CoverDataFollower_ToggleButtonWidget.ofDisableable(), + widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_PROGRESS) + .setPos(spaceX * 0, spaceY * 0)) + .addToggleButton( + 1, + CoverDataFollower_ToggleButtonWidget.ofDisableable(), + widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_CHECKMARK) + .setPos(spaceX * 1, spaceY * 0)) + .addToggleButton( + 2, + CoverDataFollower_ToggleButtonWidget.ofRedstone(), + widget -> widget.setPos(spaceX * 0, spaceY * 1)) + .setPos(startX, startY)) + .widget( + TextWidget + .dynamicString( + () -> ((convert(getCoverData()) & 0x2) > 0) ? GT_Utility.trans("242", "Machine idle") + : GT_Utility.trans("241", "Recipe progress")) + .setSynced(false) + .setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 3, 4 + startY + spaceY * 0)) + .widget( + TextWidget + .dynamicString( + () -> ((convert(getCoverData()) & 0x1) > 0) ? GT_Utility.trans("INVERTED", "Inverted") + : GT_Utility.trans("NORMAL", "Normal")) + .setSynced(false) + .setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 3, 4 + startY + spaceY * 1)); } private int getNewCoverVariable(int id, int coverVariable) { diff --git a/src/main/java/gregtech/common/covers/GT_Cover_Drain.java b/src/main/java/gregtech/common/covers/GT_Cover_Drain.java index 5f5381a141..82c6e78c57 100644 --- a/src/main/java/gregtech/common/covers/GT_Cover_Drain.java +++ b/src/main/java/gregtech/common/covers/GT_Cover_Drain.java @@ -32,13 +32,13 @@ public class GT_Cover_Drain extends GT_CoverBehavior { @Override public boolean isRedstoneSensitive(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - long aTimer) { + long aTimer) { return false; } @Override public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - long aTimer) { + long aTimer) { if ((aCoverVariable % 3 > 1) && ((aTileEntity instanceof IMachineProgress))) { if (((IMachineProgress) aTileEntity).isAllowedToWork() != aCoverVariable % 3 < 2) { return aCoverVariable; @@ -48,68 +48,65 @@ public class GT_Cover_Drain extends GT_CoverBehavior { Block tBlock = aTileEntity.getBlockAtSide(aSide); if ((aCoverVariable < 3) && ((aTileEntity instanceof IFluidHandler))) { if ((aSide == 1) && (aTileEntity.getWorld() - .isRaining()) - && (aTileEntity.getWorld() - .getPrecipitationHeight(aTileEntity.getXCoord(), aTileEntity.getZCoord()) - - 2 < aTileEntity.getYCoord())) { + .isRaining()) + && (aTileEntity.getWorld() + .getPrecipitationHeight(aTileEntity.getXCoord(), aTileEntity.getZCoord()) - 2 + < aTileEntity.getYCoord())) { int tAmount = (int) (aTileEntity.getBiome().rainfall * 10.0F); if (tAmount > 0) { ((IFluidHandler) aTileEntity).fill( - ForgeDirection.getOrientation(aSide), - Materials.Water.getFluid( - aTileEntity.getWorld() - .isThundering() ? tAmount * 2 : tAmount), - true); + ForgeDirection.getOrientation(aSide), + Materials.Water.getFluid( + aTileEntity.getWorld() + .isThundering() ? tAmount * 2 : tAmount), + true); } } FluidStack tLiquid = null; if (tBlock != null) { if (((tBlock == Blocks.water) || (tBlock == Blocks.flowing_water)) - && (aTileEntity.getMetaIDAtSide(aSide) == 0)) { + && (aTileEntity.getMetaIDAtSide(aSide) == 0)) { tLiquid = Materials.Water.getFluid(1000L); } else if (((tBlock == Blocks.lava) || (tBlock == Blocks.flowing_lava)) - && (aTileEntity.getMetaIDAtSide(aSide) == 0)) { - tLiquid = Materials.Lava.getFluid(1000L); - } else - if ((tBlock instanceof IFluidBlock)) { + && (aTileEntity.getMetaIDAtSide(aSide) == 0)) { + tLiquid = Materials.Lava.getFluid(1000L); + } else if ((tBlock instanceof IFluidBlock)) { tLiquid = ((IFluidBlock) tBlock).drain( - aTileEntity.getWorld(), - aTileEntity.getOffsetX(aSide, 1), - aTileEntity.getOffsetY(aSide, 1), - aTileEntity.getOffsetZ(aSide, 1), - false); + aTileEntity.getWorld(), + aTileEntity.getOffsetX(aSide, 1), + aTileEntity.getOffsetY(aSide, 1), + aTileEntity.getOffsetZ(aSide, 1), + false); } if ((tLiquid != null) && (tLiquid.getFluid() != null) - && ((aSide > 1) || ((aSide == 0) && (tLiquid.getFluid() - .getDensity() - <= 0)) - || ((aSide == 1) && (tLiquid.getFluid() - .getDensity() - >= 0))) - && (((IFluidHandler) aTileEntity).fill(ForgeDirection.getOrientation(aSide), tLiquid, false) - == tLiquid.amount)) { + && ((aSide > 1) || ((aSide == 0) && (tLiquid.getFluid() + .getDensity() <= 0)) + || ((aSide == 1) && (tLiquid.getFluid() + .getDensity() >= 0))) + && (((IFluidHandler) aTileEntity).fill(ForgeDirection.getOrientation(aSide), tLiquid, false) + == tLiquid.amount)) { ((IFluidHandler) aTileEntity).fill(ForgeDirection.getOrientation(aSide), tLiquid, true); aTileEntity.getWorld() - .setBlockToAir( - aTileEntity.getXCoord() + ForgeDirection.getOrientation(aSide).offsetX, - aTileEntity.getYCoord() + ForgeDirection.getOrientation(aSide).offsetY, - aTileEntity.getZCoord() + ForgeDirection.getOrientation(aSide).offsetZ); + .setBlockToAir( + aTileEntity.getXCoord() + ForgeDirection.getOrientation(aSide).offsetX, + aTileEntity.getYCoord() + ForgeDirection.getOrientation(aSide).offsetY, + aTileEntity.getZCoord() + ForgeDirection.getOrientation(aSide).offsetZ); } } } if ((aCoverVariable >= 3) && (tBlock != null) - && ((tBlock == Blocks.lava) || (tBlock == Blocks.flowing_lava) - || (tBlock == Blocks.water) - || (tBlock == Blocks.flowing_water) - || ((tBlock instanceof IFluidBlock)))) { + && ((tBlock == Blocks.lava) || (tBlock == Blocks.flowing_lava) + || (tBlock == Blocks.water) + || (tBlock == Blocks.flowing_water) + || ((tBlock instanceof IFluidBlock)))) { aTileEntity.getWorld() - .setBlock( - aTileEntity.getOffsetX(aSide, 1), - aTileEntity.getOffsetY(aSide, 1), - aTileEntity.getOffsetZ(aSide, 1), - Blocks.air, - 0, - 0); + .setBlock( + aTileEntity.getOffsetX(aSide, 1), + aTileEntity.getOffsetY(aSide, 1), + aTileEntity.getOffsetZ(aSide, 1), + Blocks.air, + 0, + 0); } } return aCoverVariable; @@ -117,7 +114,7 @@ public class GT_Cover_Drain extends GT_CoverBehavior { @Override public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - EntityPlayer aPlayer, float aX, float aY, float aZ) { + EntityPlayer aPlayer, float aX, float aY, float aZ) { aCoverVariable = (aCoverVariable + (aPlayer.isSneaking() ? -1 : 1)) % 6; if (aCoverVariable < 0) { aCoverVariable = 5; diff --git a/src/main/java/gregtech/common/covers/GT_Cover_EUMeter.java b/src/main/java/gregtech/common/covers/GT_Cover_EUMeter.java index a57544e55c..613e1e546d 100644 --- a/src/main/java/gregtech/common/covers/GT_Cover_EUMeter.java +++ b/src/main/java/gregtech/common/covers/GT_Cover_EUMeter.java @@ -58,7 +58,7 @@ public class GT_Cover_EUMeter extends GT_CoverBehaviorBase GT_Utility.sendChatToPlayer(aPlayer, GT_Utility.trans("031", "Normal Universal Storage")); case 1 -> GT_Utility.sendChatToPlayer(aPlayer, GT_Utility.trans("032", "Inverted Universal Storage")); @@ -107,12 +107,11 @@ public class GT_Cover_EUMeter extends GT_CoverBehaviorBase GT_Utility.sendChatToPlayer(aPlayer, GT_Utility.trans("038", "Inverted Average Electric Input")); case 8 -> GT_Utility.sendChatToPlayer(aPlayer, GT_Utility.trans("039", "Normal Average Electric Output")); case 9 -> GT_Utility.sendChatToPlayer(aPlayer, GT_Utility.trans("040", "Inverted Average Electric Output")); - case 10 -> GT_Utility.sendChatToPlayer( - aPlayer, - GT_Utility.trans("041", "Normal Electricity Storage(Including Batteries)")); + case 10 -> GT_Utility + .sendChatToPlayer(aPlayer, GT_Utility.trans("041", "Normal Electricity Storage(Including Batteries)")); case 11 -> GT_Utility.sendChatToPlayer( - aPlayer, - GT_Utility.trans("042", "Inverted Electricity Storage(Including Batteries)")); + aPlayer, + GT_Utility.trans("042", "Inverted Electricity Storage(Including Batteries)")); } aCoverVariable.setNum(num); return aCoverVariable; @@ -121,7 +120,7 @@ public class GT_Cover_EUMeter extends GT_CoverBehaviorBase( - this::getCoverData, - this::setCoverData, - GT_Cover_EUMeter.this).addFollower( - new CoverDataFollower_CycleButtonWidget<>(), - coverData -> coverData.type.ordinal(), - (coverData, state) -> { - coverData.type = EnergyType.getEnergyType(state); - return coverData; - }, - widget -> widget.setLength(EnergyType.values().length) - .addTooltip( - state -> EnergyType.getEnergyType(state) - .getTooltip()) - .setStaticTexture(GT_UITextures.OVERLAY_BUTTON_CYCLIC) - .setPos(spaceX * 0, spaceY * 0)) - .addFollower( - CoverDataFollower_ToggleButtonWidget.ofRedstone(), - coverData -> coverData.inverted, - (coverData, state) -> { - coverData.inverted = state; - return coverData; - }, - widget -> widget.addTooltip(0, NORMAL) - .addTooltip(1, INVERTED) - .setPos(spaceX * 0, spaceY * 1)) - .addFollower( - new CoverDataFollower_TextFieldWidget<>(), - coverData -> String.valueOf(coverData.threshold), - (coverData, state) -> { - coverData.threshold = (long) MathExpression.parseMathExpression( - state); - return coverData; - }, - widget -> widget.setOnScrollNumbersLong(1000, 100, 100000) - .setNumbersLong( - () -> 0L, - () -> Long.MAX_VALUE) - .setFocusOnGuiOpen(true) - .setPos(spaceX * 0, spaceY * 2 + 2) - .setSize(spaceX * 8, 12)) - .setPos(startX, startY)) - .widget( - TextWidget.dynamicString(() -> getCoverData() != null ? getCoverData().type.getTitle() : "") - .setSynced(false) - .setDefaultColor(COLOR_TEXT_GRAY.get()) - .setPos(startX + spaceX, 4 + startY)) - .widget( - TextWidget.dynamicString( - () -> getCoverData() != null ? getCoverData().inverted ? INVERTED : NORMAL : "") - .setSynced(false) - .setDefaultColor(COLOR_TEXT_GRAY.get()) - .setPos(startX + spaceX, 4 + startY + spaceY)) - .widget( - new TextWidget(GT_Utility.trans("222.1", "Energy threshold")) - .setDefaultColor( - COLOR_TEXT_GRAY.get()) - .setPos( - startX, - startY + spaceY * 3 - + 4)); + new CoverDataControllerWidget<>(this::getCoverData, this::setCoverData, GT_Cover_EUMeter.this) + .addFollower( + new CoverDataFollower_CycleButtonWidget<>(), + coverData -> coverData.type.ordinal(), + (coverData, state) -> { + coverData.type = EnergyType.getEnergyType(state); + return coverData; + }, + widget -> widget.setLength(EnergyType.values().length) + .addTooltip( + state -> EnergyType.getEnergyType(state) + .getTooltip()) + .setStaticTexture(GT_UITextures.OVERLAY_BUTTON_CYCLIC) + .setPos(spaceX * 0, spaceY * 0)) + .addFollower( + CoverDataFollower_ToggleButtonWidget.ofRedstone(), + coverData -> coverData.inverted, + (coverData, state) -> { + coverData.inverted = state; + return coverData; + }, + widget -> widget.addTooltip(0, NORMAL) + .addTooltip(1, INVERTED) + .setPos(spaceX * 0, spaceY * 1)) + .addFollower( + new CoverDataFollower_TextFieldWidget<>(), + coverData -> String.valueOf(coverData.threshold), + (coverData, state) -> { + coverData.threshold = (long) MathExpression.parseMathExpression(state); + return coverData; + }, + widget -> widget.setOnScrollNumbersLong(1000, 100, 100000) + .setNumbersLong(() -> 0L, () -> Long.MAX_VALUE) + .setFocusOnGuiOpen(true) + .setPos(spaceX * 0, spaceY * 2 + 2) + .setSize(spaceX * 8, 12)) + .setPos(startX, startY)) + .widget( + TextWidget.dynamicString(() -> getCoverData() != null ? getCoverData().type.getTitle() : "") + .setSynced(false) + .setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX, 4 + startY)) + .widget( + TextWidget + .dynamicString(() -> getCoverData() != null ? getCoverData().inverted ? INVERTED : NORMAL : "") + .setSynced(false) + .setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX, 4 + startY + spaceY)) + .widget( + new TextWidget(GT_Utility.trans("222.1", "Energy threshold")).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX, startY + spaceY * 3 + 4)); } } @@ -353,34 +342,34 @@ public class GT_Cover_EUMeter extends GT_CoverBehaviorBase te.getInputVoltage() * te.getInputAmperage()), + ICoverable::getAverageElectricInput, (te) -> te.getInputVoltage() * te.getInputAmperage()), AVERAGE_ELECTRIC_OUTPUT(GT_Utility.trans("305", "Avg. Output"), - GT_Utility.trans("260", "Average Electric Output"), ICoverable::getAverageElectricOutput, - (te) -> te.getOutputVoltage() * te.getOutputAmperage()), + GT_Utility.trans("260", "Average Electric Output"), ICoverable::getAverageElectricOutput, + (te) -> te.getOutputVoltage() * te.getOutputAmperage()), ELECTRICITY_STORAGE_INCLUDING_BATTERIES(GT_Utility.trans("306", "EU stored"), - GT_Utility.trans("261", "Electricity Storage(Including Batteries)"), (te) -> { - if (te instanceof IGregTechTileEntity) { - IMetaTileEntity mte = ((IGregTechTileEntity) te).getMetaTileEntity(); - if (mte instanceof GT_MetaTileEntity_BasicBatteryBuffer buffer) { - return buffer.getStoredEnergy()[0]; - } + GT_Utility.trans("261", "Electricity Storage(Including Batteries)"), (te) -> { + if (te instanceof IGregTechTileEntity) { + IMetaTileEntity mte = ((IGregTechTileEntity) te).getMetaTileEntity(); + if (mte instanceof GT_MetaTileEntity_BasicBatteryBuffer buffer) { + return buffer.getStoredEnergy()[0]; } - return te.getStoredEU(); - }, (te) -> { - if (te instanceof IGregTechTileEntity) { - IMetaTileEntity mte = ((IGregTechTileEntity) te).getMetaTileEntity(); - if (mte instanceof GT_MetaTileEntity_BasicBatteryBuffer buffer) { - return buffer.getStoredEnergy()[1]; - } + } + return te.getStoredEU(); + }, (te) -> { + if (te instanceof IGregTechTileEntity) { + IMetaTileEntity mte = ((IGregTechTileEntity) te).getMetaTileEntity(); + if (mte instanceof GT_MetaTileEntity_BasicBatteryBuffer buffer) { + return buffer.getStoredEnergy()[1]; } - return te.getEUCapacity(); - }); + } + return te.getEUCapacity(); + }); private final String title; private final String tooltip; @@ -388,7 +377,7 @@ public class GT_Cover_EUMeter extends GT_CoverBehaviorBase getTileEntityEnergyCapacityFunc; EnergyType(String title, String tooltip, Function getTileEntityStoredEnergyFunc, - Function getTileEntityEnergyCapacityFunc) { + Function getTileEntityEnergyCapacityFunc) { this.title = title; this.tooltip = tooltip; this.getTileEntityStoredEnergyFunc = getTileEntityStoredEnergyFunc; diff --git a/src/main/java/gregtech/common/covers/GT_Cover_FacadeBase.java b/src/main/java/gregtech/common/covers/GT_Cover_FacadeBase.java index 66d5eae5e5..87ceb05204 100644 --- a/src/main/java/gregtech/common/covers/GT_Cover_FacadeBase.java +++ b/src/main/java/gregtech/common/covers/GT_Cover_FacadeBase.java @@ -58,26 +58,26 @@ public abstract class GT_Cover_FacadeBase extends GT_CoverBehaviorBase cover removed before data reach client GT_RenderingWorld.getInstance() - .unregister( - aTileEntity.getXCoord(), - aTileEntity.getYCoord(), - aTileEntity.getZCoord(), - getTargetBlock(aCoverVariable.mStack), - getTargetMeta(aCoverVariable.mStack)); + .unregister( + aTileEntity.getXCoord(), + aTileEntity.getYCoord(), + aTileEntity.getZCoord(), + getTargetBlock(aCoverVariable.mStack), + getTargetMeta(aCoverVariable.mStack)); } } @Override protected boolean onCoverRightClickImpl(byte aSide, int aCoverID, FacadeData aCoverVariable, ICoverable aTileEntity, - EntityPlayer aPlayer, float aX, float aY, float aZ) { + EntityPlayer aPlayer, float aX, float aY, float aZ) { // in case cover data didn't hit client somehow. maybe he had a ridiculous view distance aTileEntity.issueCoverUpdate(aSide); return super.onCoverRightClickImpl(aSide, aCoverID, aCoverVariable, aTileEntity, aPlayer, aX, aY, aZ); @@ -323,63 +323,52 @@ public abstract class GT_Cover_FacadeBase extends GT_CoverBehaviorBase( - this::getCoverData, - this::setCoverData, - GT_Cover_FacadeBase.this, - this::isEnabled, - (id, coverData) -> { - coverData.mFlags = getNewCoverVariable(id, coverData); - return coverData; - }).addToggleButton( - 0, - CoverDataFollower_ToggleButtonWidget.ofCheckAndCross(), - widget -> widget.setPos(spaceX * 0, spaceY * 0)) - .addToggleButton( - 1, - CoverDataFollower_ToggleButtonWidget.ofCheckAndCross(), - widget -> widget.setPos(spaceX * 0, spaceY * 1)) - .addToggleButton( - 2, - CoverDataFollower_ToggleButtonWidget.ofCheckAndCross(), - widget -> widget.setPos(spaceX * 0, spaceY * 2)) - .addToggleButton( - 3, - CoverDataFollower_ToggleButtonWidget.ofCheckAndCross(), - widget -> widget.setPos(spaceX * 0, spaceY * 3)) - .setPos(startX, startY)) - .widget( - new ItemDrawable(() -> getCoverData() != null ? getCoverData().mStack : null).asWidget() - .setPos(5, 5) - .setSize( - 16, - 16)) - .widget( - TextWidget.dynamicString( - () -> getCoverData() != null ? getCoverData().mStack.getDisplayName() : "") - .setSynced(false) - .setDefaultColor(COLOR_TITLE.get()) - .setPos(25, 9)) - .widget( - new TextWidget(GT_Utility.trans("128", "Redstone")).setDefaultColor(COLOR_TEXT_GRAY.get()) - .setPos( - 3 + startX + spaceX * 1, - 4 + startY + spaceY * 0)) - .widget( - new TextWidget(GT_Utility.trans("129", "Energy")).setDefaultColor(COLOR_TEXT_GRAY.get()) - .setPos( - 3 + startX + spaceX * 1, - 4 + startY + spaceY * 1)) - .widget( - new TextWidget(GT_Utility.trans("130", "Fluids")).setDefaultColor(COLOR_TEXT_GRAY.get()) - .setPos( - 3 + startX + spaceX * 1, - 4 + startY + spaceY * 2)) - .widget( - new TextWidget(GT_Utility.trans("131", "Items")).setDefaultColor(COLOR_TEXT_GRAY.get()) - .setPos( - 3 + startX + spaceX * 1, - 4 + startY + spaceY * 3)); + new CoverDataControllerWidget.CoverDataIndexedControllerWidget_ToggleButtons<>( + this::getCoverData, + this::setCoverData, + GT_Cover_FacadeBase.this, + this::isEnabled, + (id, coverData) -> { + coverData.mFlags = getNewCoverVariable(id, coverData); + return coverData; + }).addToggleButton( + 0, + CoverDataFollower_ToggleButtonWidget.ofCheckAndCross(), + widget -> widget.setPos(spaceX * 0, spaceY * 0)) + .addToggleButton( + 1, + CoverDataFollower_ToggleButtonWidget.ofCheckAndCross(), + widget -> widget.setPos(spaceX * 0, spaceY * 1)) + .addToggleButton( + 2, + CoverDataFollower_ToggleButtonWidget.ofCheckAndCross(), + widget -> widget.setPos(spaceX * 0, spaceY * 2)) + .addToggleButton( + 3, + CoverDataFollower_ToggleButtonWidget.ofCheckAndCross(), + widget -> widget.setPos(spaceX * 0, spaceY * 3)) + .setPos(startX, startY)) + .widget( + new ItemDrawable(() -> getCoverData() != null ? getCoverData().mStack : null).asWidget() + .setPos(5, 5) + .setSize(16, 16)) + .widget( + TextWidget.dynamicString(() -> getCoverData() != null ? getCoverData().mStack.getDisplayName() : "") + .setSynced(false) + .setDefaultColor(COLOR_TITLE.get()) + .setPos(25, 9)) + .widget( + new TextWidget(GT_Utility.trans("128", "Redstone")).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(3 + startX + spaceX * 1, 4 + startY + spaceY * 0)) + .widget( + new TextWidget(GT_Utility.trans("129", "Energy")).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(3 + startX + spaceX * 1, 4 + startY + spaceY * 1)) + .widget( + new TextWidget(GT_Utility.trans("130", "Fluids")).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(3 + startX + spaceX * 1, 4 + startY + spaceY * 2)) + .widget( + new TextWidget(GT_Utility.trans("131", "Items")).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(3 + startX + spaceX * 1, 4 + startY + spaceY * 3)); } @Override diff --git a/src/main/java/gregtech/common/covers/GT_Cover_FluidLimiter.java b/src/main/java/gregtech/common/covers/GT_Cover_FluidLimiter.java index bf82af3ad2..199d22407a 100644 --- a/src/main/java/gregtech/common/covers/GT_Cover_FluidLimiter.java +++ b/src/main/java/gregtech/common/covers/GT_Cover_FluidLimiter.java @@ -46,7 +46,7 @@ public class GT_Cover_FluidLimiter extends GT_CoverBehaviorBase( - this::getCoverData, - this::setCoverData, - GT_Cover_FluidLimiter.this).addFollower( - new CoverDataFollower_TextFieldWidget<>(), - coverData -> String.valueOf(Math.round(coverData.threshold * 100)), - (coverData, val) -> { - coverData.threshold = (float) (MathExpression.parseMathExpression(val) / 100); - return coverData; - }, - widget -> widget.setNumbers(0, 100) - .setFocusOnGuiOpen(true) - .setPos(startX, startY + spaceY * 2 - 24) - .setSize(spaceX * 4 - 3, 12))) - .widget( - new TextWidget("Percent threshold").setDefaultColor(COLOR_TEXT_GRAY.get()) - .setPos(startX, startY + spaceY * 2 - 35)); + new CoverDataControllerWidget<>(this::getCoverData, this::setCoverData, GT_Cover_FluidLimiter.this) + .addFollower( + new CoverDataFollower_TextFieldWidget<>(), + coverData -> String.valueOf(Math.round(coverData.threshold * 100)), + (coverData, val) -> { + coverData.threshold = (float) (MathExpression.parseMathExpression(val) / 100); + return coverData; + }, + widget -> widget.setNumbers(0, 100) + .setFocusOnGuiOpen(true) + .setPos(startX, startY + spaceY * 2 - 24) + .setSize(spaceX * 4 - 3, 12))) + .widget( + new TextWidget("Percent threshold").setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX, startY + spaceY * 2 - 35)); } } } diff --git a/src/main/java/gregtech/common/covers/GT_Cover_FluidRegulator.java b/src/main/java/gregtech/common/covers/GT_Cover_FluidRegulator.java index d233d741ae..e4459c06db 100644 --- a/src/main/java/gregtech/common/covers/GT_Cover_FluidRegulator.java +++ b/src/main/java/gregtech/common/covers/GT_Cover_FluidRegulator.java @@ -94,13 +94,13 @@ public class GT_Cover_FluidRegulator extends GT_CoverBehaviorBase= 0.5F) { adjustSpeed(aPlayer, aCoverVariable, aPlayer.isSneaking() ? 256 : 16); } else { @@ -177,7 +177,7 @@ public class GT_Cover_FluidRegulator extends GT_CoverBehaviorBase= 0.5F) { adjustSpeed(aPlayer, aCoverVariable, 1); } else { @@ -192,55 +192,55 @@ public class GT_Cover_FluidRegulator extends GT_CoverBehaviorBase( - this::getCoverData, - this::setCoverData, - GT_Cover_FluidRegulator.this).addFollower( - CoverDataFollower_ToggleButtonWidget.ofDisableable(), - coverData -> coverData.speed >= 0, - (coverData, state) -> { - coverData.speed = Math.abs(coverData.speed); - return coverData; - }, - widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_EXPORT) - .addTooltip(GT_Utility.trans("006", "Export")) - .setPos(spaceX * 0, spaceY * 0)) - .addFollower( - CoverDataFollower_ToggleButtonWidget.ofDisableable(), - coverData -> coverData.speed <= 0, - (coverData, state) -> { - coverData.speed = -Math.abs(coverData.speed); - return coverData; - }, - widget -> widget.setStaticTexture( - GT_UITextures.OVERLAY_BUTTON_IMPORT) - .addTooltip( - GT_Utility.trans( - "007", - "Import")) - .setPos(spaceX * 1, spaceY * 0)) - .addFollower( - CoverDataFollower_ToggleButtonWidget.ofDisableable(), - coverData -> coverData.condition == Conditional.Always, - (coverData, state) -> { - coverData.condition = Conditional.Always; - return coverData; - }, - widget -> widget.setStaticTexture( - GT_UITextures.OVERLAY_BUTTON_CHECKMARK) - .addTooltip( - GT_Utility.trans( - "224", - "Always On")) - .setPos(spaceX * 0, spaceY * 1)) - .addFollower( - CoverDataFollower_ToggleButtonWidget.ofDisableable(), - coverData -> coverData.condition - == Conditional.Conditional, - (coverData, state) -> { - coverData.condition = Conditional.Conditional; - return coverData; - }, - widget -> widget.setStaticTexture( - GT_UITextures.OVERLAY_BUTTON_REDSTONE_ON) - .addTooltip( - GT_Utility.trans( - "225", - "Active with Redstone Signal")) - .setPos(spaceX * 1, spaceY * 1)) - .addFollower( - CoverDataFollower_ToggleButtonWidget.ofDisableable(), - coverData -> coverData.condition - == Conditional.Inverted, - (coverData, state) -> { - coverData.condition = Conditional.Inverted; - return coverData; - }, - widget -> widget.setStaticTexture( - GT_UITextures.OVERLAY_BUTTON_REDSTONE_OFF) - .addTooltip( - GT_Utility.trans( - "226", - "Inactive with Redstone Signal")) - .setPos(spaceX * 2, spaceY * 1)) - .addFollower( - new CoverDataFollower_TextFieldWidget<>(), - coverData -> String.valueOf(coverData.speed), - (coverData, state) -> { - coverData.speed = (int) MathExpression.parseMathExpression( - state); - return coverData; - }, - widget -> widget.setOnScrollNumbersLong(1, 5, 50) - .setNumbersLong(val -> { - final int tickRate = getCoverData() - != null ? getCoverData().tickRate - : 0; - final long maxFlow = (long) mTransferRate - * GT_Utility.clamp( - tickRate, - TICK_RATE_MIN, - TICK_RATE_MAX); - warn.set(false); - if (val > maxFlow) { - val = maxFlow; - warn.set(true); - } else if (val < -maxFlow) { - val = -maxFlow; - warn.set(true); - } - return val; - }) - .setPattern( - BaseTextFieldWidget.WHOLE_NUMS) - .setFocusOnGuiOpen(true) - .setPos(spaceX * 0, spaceY * 2 + 2) - .setSize(spaceX * 4 - 3, 12)) - .addFollower( - new CoverDataFollower_TextFieldWidget<>(), - coverData -> String.valueOf(coverData.tickRate), - (coverData, state) -> { - coverData.tickRate = (int) MathExpression.parseMathExpression( - state); - return coverData; - }, - widget -> widget.setOnScrollNumbersLong(1, 5, 50) - .setNumbersLong(val -> { - final int speed = getCoverData() - != null ? getCoverData().speed - : 0; - warn.set(false); - if (val > TICK_RATE_MAX) { - val = (long) TICK_RATE_MAX; - warn.set(true); - } else if (Math.abs(speed) - > mTransferRate * val) { - val = (long) Math.min( - TICK_RATE_MAX, - (Math.abs( - speed) - + mTransferRate - - 1) - / mTransferRate); - warn.set(true); - } else - if (val < TICK_RATE_MIN) { - val = 1L; - } - return val; - }) - .setPattern( - BaseTextFieldWidget.WHOLE_NUMS) - .setPos(spaceX * 5, spaceY * 2 + 2) - .setSize(spaceX * 2 - 3, 12)) - .setPos(startX, startY)) - .widget( - new TextWidget(GT_Utility.trans("229", "Import/Export")) - .setDefaultColor( - COLOR_TEXT_GRAY.get()) - .setPos( - startX + spaceX * 4, - 4 + startY + spaceY * 0)) - .widget( - new TextWidget(GT_Utility.trans("230", "Conditional")).setDefaultColor(COLOR_TEXT_GRAY.get()) - .setPos( - startX + spaceX * 4, - 4 + startY + spaceY * 1)) - .widget( - new TextWidget(GT_Utility.trans("208", " L")).setDefaultColor(COLOR_TEXT_GRAY.get()) - .setPos( - startX + spaceX * 4, - 4 + startY + spaceY * 2)) - .widget( - new TextWidget(GT_Utility.trans("209", " ticks")).setDefaultColor(COLOR_TEXT_GRAY.get()) - .setPos( - startX + spaceX * 7, - 4 + startY + spaceY * 2)) - .widget(TextWidget.dynamicText(() -> { - FluidRegulatorData coverVariable = getCoverData(); - if (coverVariable == null) return new Text(""); - return new Text( - String.format( - GT_Utility.trans("210", "Average: %.2f L/sec"), - coverVariable.tickRate == 0 ? 0 - : coverVariable.speed * 20d / coverVariable.tickRate)).color( - warn.get() ? COLOR_TEXT_WARN.get() : COLOR_TEXT_GRAY.get()); - }) - .setSynced(false) - .setPos(startX + spaceX * 0, 4 + startY + spaceY * 3)); + new CoverDataControllerWidget<>(this::getCoverData, this::setCoverData, GT_Cover_FluidRegulator.this) + .addFollower( + CoverDataFollower_ToggleButtonWidget.ofDisableable(), + coverData -> coverData.speed >= 0, + (coverData, state) -> { + coverData.speed = Math.abs(coverData.speed); + return coverData; + }, + widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_EXPORT) + .addTooltip(GT_Utility.trans("006", "Export")) + .setPos(spaceX * 0, spaceY * 0)) + .addFollower( + CoverDataFollower_ToggleButtonWidget.ofDisableable(), + coverData -> coverData.speed <= 0, + (coverData, state) -> { + coverData.speed = -Math.abs(coverData.speed); + return coverData; + }, + widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_IMPORT) + .addTooltip(GT_Utility.trans("007", "Import")) + .setPos(spaceX * 1, spaceY * 0)) + .addFollower( + CoverDataFollower_ToggleButtonWidget.ofDisableable(), + coverData -> coverData.condition == Conditional.Always, + (coverData, state) -> { + coverData.condition = Conditional.Always; + return coverData; + }, + widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_CHECKMARK) + .addTooltip(GT_Utility.trans("224", "Always On")) + .setPos(spaceX * 0, spaceY * 1)) + .addFollower( + CoverDataFollower_ToggleButtonWidget.ofDisableable(), + coverData -> coverData.condition == Conditional.Conditional, + (coverData, state) -> { + coverData.condition = Conditional.Conditional; + return coverData; + }, + widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_REDSTONE_ON) + .addTooltip(GT_Utility.trans("225", "Active with Redstone Signal")) + .setPos(spaceX * 1, spaceY * 1)) + .addFollower( + CoverDataFollower_ToggleButtonWidget.ofDisableable(), + coverData -> coverData.condition == Conditional.Inverted, + (coverData, state) -> { + coverData.condition = Conditional.Inverted; + return coverData; + }, + widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_REDSTONE_OFF) + .addTooltip(GT_Utility.trans("226", "Inactive with Redstone Signal")) + .setPos(spaceX * 2, spaceY * 1)) + .addFollower( + new CoverDataFollower_TextFieldWidget<>(), + coverData -> String.valueOf(coverData.speed), + (coverData, state) -> { + coverData.speed = (int) MathExpression.parseMathExpression(state); + return coverData; + }, + widget -> widget.setOnScrollNumbersLong(1, 5, 50) + .setNumbersLong(val -> { + final int tickRate = getCoverData() != null ? getCoverData().tickRate : 0; + final long maxFlow = (long) mTransferRate + * GT_Utility.clamp(tickRate, TICK_RATE_MIN, TICK_RATE_MAX); + warn.set(false); + if (val > maxFlow) { + val = maxFlow; + warn.set(true); + } else if (val < -maxFlow) { + val = -maxFlow; + warn.set(true); + } + return val; + }) + .setPattern(BaseTextFieldWidget.WHOLE_NUMS) + .setFocusOnGuiOpen(true) + .setPos(spaceX * 0, spaceY * 2 + 2) + .setSize(spaceX * 4 - 3, 12)) + .addFollower( + new CoverDataFollower_TextFieldWidget<>(), + coverData -> String.valueOf(coverData.tickRate), + (coverData, state) -> { + coverData.tickRate = (int) MathExpression.parseMathExpression(state); + return coverData; + }, + widget -> widget.setOnScrollNumbersLong(1, 5, 50) + .setNumbersLong(val -> { + final int speed = getCoverData() != null ? getCoverData().speed : 0; + warn.set(false); + if (val > TICK_RATE_MAX) { + val = (long) TICK_RATE_MAX; + warn.set(true); + } else if (Math.abs(speed) > mTransferRate * val) { + val = (long) Math + .min(TICK_RATE_MAX, (Math.abs(speed) + mTransferRate - 1) / mTransferRate); + warn.set(true); + } else if (val < TICK_RATE_MIN) { + val = 1L; + } + return val; + }) + .setPattern(BaseTextFieldWidget.WHOLE_NUMS) + .setPos(spaceX * 5, spaceY * 2 + 2) + .setSize(spaceX * 2 - 3, 12)) + .setPos(startX, startY)) + .widget( + new TextWidget(GT_Utility.trans("229", "Import/Export")).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 4, 4 + startY + spaceY * 0)) + .widget( + new TextWidget(GT_Utility.trans("230", "Conditional")).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 4, 4 + startY + spaceY * 1)) + .widget( + new TextWidget(GT_Utility.trans("208", " L")).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 4, 4 + startY + spaceY * 2)) + .widget( + new TextWidget(GT_Utility.trans("209", " ticks")).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 7, 4 + startY + spaceY * 2)) + .widget(TextWidget.dynamicText(() -> { + FluidRegulatorData coverVariable = getCoverData(); + if (coverVariable == null) return new Text(""); + return new Text( + String.format( + GT_Utility.trans("210", "Average: %.2f L/sec"), + coverVariable.tickRate == 0 ? 0 : coverVariable.speed * 20d / coverVariable.tickRate)) + .color(warn.get() ? COLOR_TEXT_WARN.get() : COLOR_TEXT_GRAY.get()); + }) + .setSynced(false) + .setPos(startX + spaceX * 0, 4 + startY + spaceY * 3)); } } @@ -483,7 +434,7 @@ public class GT_Cover_FluidRegulator extends GT_CoverBehaviorBase { private static final IIconContainer[] icons = new IIconContainer[] { OVERLAY_FLUID_STORAGE_MONITOR0, - OVERLAY_FLUID_STORAGE_MONITOR1, OVERLAY_FLUID_STORAGE_MONITOR2, OVERLAY_FLUID_STORAGE_MONITOR3, - OVERLAY_FLUID_STORAGE_MONITOR4, OVERLAY_FLUID_STORAGE_MONITOR5, OVERLAY_FLUID_STORAGE_MONITOR6, - OVERLAY_FLUID_STORAGE_MONITOR7, OVERLAY_FLUID_STORAGE_MONITOR8, OVERLAY_FLUID_STORAGE_MONITOR9, - OVERLAY_FLUID_STORAGE_MONITOR10, OVERLAY_FLUID_STORAGE_MONITOR11, OVERLAY_FLUID_STORAGE_MONITOR12, - OVERLAY_FLUID_STORAGE_MONITOR13, OVERLAY_FLUID_STORAGE_MONITOR14, }; + OVERLAY_FLUID_STORAGE_MONITOR1, OVERLAY_FLUID_STORAGE_MONITOR2, OVERLAY_FLUID_STORAGE_MONITOR3, + OVERLAY_FLUID_STORAGE_MONITOR4, OVERLAY_FLUID_STORAGE_MONITOR5, OVERLAY_FLUID_STORAGE_MONITOR6, + OVERLAY_FLUID_STORAGE_MONITOR7, OVERLAY_FLUID_STORAGE_MONITOR8, OVERLAY_FLUID_STORAGE_MONITOR9, + OVERLAY_FLUID_STORAGE_MONITOR10, OVERLAY_FLUID_STORAGE_MONITOR11, OVERLAY_FLUID_STORAGE_MONITOR12, + OVERLAY_FLUID_STORAGE_MONITOR13, OVERLAY_FLUID_STORAGE_MONITOR14, }; public GT_Cover_FluidStorageMonitor() { super(FluidStorageData.class); @@ -78,11 +78,11 @@ public class GT_Cover_FluidStorageMonitor extends GT_CoverBehaviorBase 0) fluidTextureBuilder.glow(); return TextureFactory.of(fluidTextureBuilder.build(), TextureFactory.of(icons[aCoverVariable.scale])); } @Override protected boolean onCoverRightClickImpl(byte aSide, int aCoverID, FluidStorageData aCoverVariable, - ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ) { + ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ) { if (aPlayer == null || aPlayer.worldObj == null || aPlayer.worldObj.isRemote) { return false; } @@ -182,7 +182,7 @@ public class GT_Cover_FluidStorageMonitor extends GT_CoverBehaviorBase GT_Utility.areFluidsEqual(fs, tankInfo.fluid)) - .map(fs -> fs.amount) - .orElse(0), - containerItem.fill( - container, + Optional + .ofNullable( + tank.drain( + side, new FluidStack(tankInfo.fluid.getFluid(), containerItem.getCapacity(container)), - false)); + false)) + .filter(fs -> GT_Utility.areFluidsEqual(fs, tankInfo.fluid)) + .map(fs -> fs.amount) + .orElse(0), + containerItem.fill( + container, + new FluidStack(tankInfo.fluid.getFluid(), containerItem.getCapacity(container)), + false)); if (filled == 0) { return null; } @@ -247,10 +248,9 @@ public class GT_Cover_FluidStorageMonitor extends GT_CoverBehaviorBase GT_Utility.areFluidsEqual(fs, filledFluid)) - .map(fs -> fs.amount) - .orElse(0) - != filledFluid.amount) { + .filter(fs -> GT_Utility.areFluidsEqual(fs, filledFluid)) + .map(fs -> fs.amount) + .orElse(0) != filledFluid.amount) { return null; } tank.drain(side, filledFluid, true); @@ -259,7 +259,7 @@ public class GT_Cover_FluidStorageMonitor extends GT_CoverBehaviorBase> 16 & 0xFF), (short) (color >> 8 & 0xFF), (short) (color & 0xFF), - (short) (0xFF) }; + (short) (0xFF) }; } public static class FluidStorageData implements ISerializableObject { @@ -405,7 +405,7 @@ public class GT_Cover_FluidStorageMonitor extends GT_CoverBehaviorBase 0.375D) && (aX < 0.625D)) || ((aSide > 3) && ((aY > 0.375D) && (aY < 0.625D))) - || ((aSide < 2) && ((aZ > 0.375D) && (aZ < 0.625D))) - || (aSide == 2) - || (aSide == 3)) { + || ((aSide < 2) && ((aZ > 0.375D) && (aZ < 0.625D))) + || (aSide == 2) + || (aSide == 3)) { ItemStack tStack = aPlayer.inventory.getCurrentItem(); if (tStack == null) return true; @@ -134,9 +132,8 @@ public class GT_Cover_Fluidfilter extends GT_CoverBehaviorBase( - this::getCoverData, - this::setCoverData, - GT_Cover_Fluidfilter.this, - (id, coverData) -> !getClickable(id, coverData), - (id, coverData) -> { - coverData.mFilterMode = getNewFilterMode(id, coverData); + new CoverDataControllerWidget.CoverDataIndexedControllerWidget_ToggleButtons<>( + this::getCoverData, + this::setCoverData, + GT_Cover_Fluidfilter.this, + (id, coverData) -> !getClickable(id, coverData), + (id, coverData) -> { + coverData.mFilterMode = getNewFilterMode(id, coverData); + return coverData; + }).addToggleButton( + 0, + CoverDataFollower_ToggleButtonWidget.ofDisableable(), + widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_IMPORT) + .addTooltip(GT_Utility.trans("232", "Filter Input")) + .setPos(spaceX * 0, spaceY * 0)) + .addToggleButton( + 1, + CoverDataFollower_ToggleButtonWidget.ofDisableable(), + widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_EXPORT) + .addTooltip(GT_Utility.trans("233", "Filter Output")) + .setPos(spaceX * 1, spaceY * 0)) + .addToggleButton( + 2, + CoverDataFollower_ToggleButtonWidget.ofDisableable(), + widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_BLOCK_INPUT) + .addTooltip(GT_Utility.trans("234", "Block Output")) + .setPos(spaceX * 0, spaceY * 2)) + .addToggleButton( + 3, + CoverDataFollower_ToggleButtonWidget.ofDisableable(), + widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_ALLOW_INPUT) + .addTooltip(GT_Utility.trans("235", "Allow Output")) + .setPos(spaceX * 1, spaceY * 2)) + .addToggleButton( + 4, + CoverDataFollower_ToggleButtonWidget.ofDisableable(), + widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_WHITELIST) + .addTooltip(GT_Utility.trans("236", "Whitelist Fluid")) + .setPos(spaceX * 0, spaceY * 1)) + .addToggleButton( + 5, + CoverDataFollower_ToggleButtonWidget.ofDisableable(), + widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_BLACKLIST) + .addTooltip(GT_Utility.trans("237", "Blacklist Fluid")) + .setPos(spaceX * 1, spaceY * 1)) + .addFollower( + new CoverDataFollower_SlotWidget(new ItemStackHandler(), 0, true) { + + @Override + protected void putClickedStack(ItemStack stack, int mouseButton) { + if (stack != null && GT_Utility.getFluidFromContainerOrFluidDisplay(stack) == null) + return; + super.putClickedStack( + GT_Utility.getFluidDisplayStack( + GT_Utility.getFluidFromContainerOrFluidDisplay(stack), + false), + mouseButton); + } + }, + this::getFluidDisplayItem, + (coverData, stack) -> { + if (stack == null) { + coverData.mFluidID = -1; + } else { + FluidStack fluid = GT_Utility.getFluidFromDisplayStack(stack); + if (fluid != null && fluid.getFluid() != null) { + coverData.mFluidID = fluid.getFluid() + .getID(); + } + } return coverData; - }).addToggleButton( - 0, - CoverDataFollower_ToggleButtonWidget.ofDisableable(), - widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_IMPORT) - .addTooltip(GT_Utility.trans("232", "Filter Input")) - .setPos(spaceX * 0, spaceY * 0)) - .addToggleButton( - 1, - CoverDataFollower_ToggleButtonWidget.ofDisableable(), - widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_EXPORT) - .addTooltip(GT_Utility.trans("233", "Filter Output")) - .setPos(spaceX * 1, spaceY * 0)) - .addToggleButton( - 2, - CoverDataFollower_ToggleButtonWidget.ofDisableable(), - widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_BLOCK_INPUT) - .addTooltip(GT_Utility.trans("234", "Block Output")) - .setPos(spaceX * 0, spaceY * 2)) - .addToggleButton( - 3, - CoverDataFollower_ToggleButtonWidget.ofDisableable(), - widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_ALLOW_INPUT) - .addTooltip(GT_Utility.trans("235", "Allow Output")) - .setPos(spaceX * 1, spaceY * 2)) - .addToggleButton( - 4, - CoverDataFollower_ToggleButtonWidget.ofDisableable(), - widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_WHITELIST) - .addTooltip(GT_Utility.trans("236", "Whitelist Fluid")) - .setPos(spaceX * 0, spaceY * 1)) - .addToggleButton( - 5, - CoverDataFollower_ToggleButtonWidget.ofDisableable(), - widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_BLACKLIST) - .addTooltip(GT_Utility.trans("237", "Blacklist Fluid")) - .setPos(spaceX * 1, spaceY * 1)) - .addFollower( - new CoverDataFollower_SlotWidget( - new ItemStackHandler(), - 0, - true) { - - @Override - protected void putClickedStack(ItemStack stack, int mouseButton) { - if (stack != null - && GT_Utility.getFluidFromContainerOrFluidDisplay(stack) == null) - return; - super.putClickedStack( - GT_Utility.getFluidDisplayStack( - GT_Utility.getFluidFromContainerOrFluidDisplay(stack), - false), - mouseButton); - } - }, - this::getFluidDisplayItem, - (coverData, stack) -> { - if (stack == null) { - coverData.mFluidID = -1; - } else { - FluidStack fluid = GT_Utility.getFluidFromDisplayStack(stack); - if (fluid != null && fluid.getFluid() != null) { - coverData.mFluidID = fluid.getFluid() - .getID(); - } - } - return coverData; - }, - widget -> widget.setBackground(ModularUITextures.FLUID_SLOT) - .setPos(0, spaceY * 3 + 2)) - .setPos(startX, startY)) - .widget( - new TextWidget(GT_Utility.trans("238", "Filter Direction")) - .setDefaultColor( - COLOR_TEXT_GRAY.get()) - .setPos( - startX + spaceX * 2, - 3 + startY + spaceY * 0)) - .widget( - new TextWidget(GT_Utility.trans("239", "Filter Type")).setDefaultColor(COLOR_TEXT_GRAY.get()) - .setPos( - startX + spaceX * 2, - 3 + startY + spaceY * 1)) - .widget( - new TextWidget(GT_Utility.trans("240", "Block Flow")).setDefaultColor(COLOR_TEXT_GRAY.get()) - .setPos( - startX + spaceX * 2, - 3 + startY + spaceY * 2)) - .widget(TextWidget.dynamicString(() -> { - if (getCoverData() != null) { - ItemStack fluidDisplay = getFluidDisplayItem(getCoverData()); - if (fluidDisplay != null) { - return fluidDisplay.getDisplayName(); - } - } - return GT_Utility.trans("315", "Filter Empty"); - }) - .setSynced(false) - .setDefaultColor(COLOR_TITLE.get()) - .setPos(startX + spaceX + 3, 4 + startY + spaceY * 3)); + }, + widget -> widget.setBackground(ModularUITextures.FLUID_SLOT) + .setPos(0, spaceY * 3 + 2)) + .setPos(startX, startY)) + .widget( + new TextWidget(GT_Utility.trans("238", "Filter Direction")).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 2, 3 + startY + spaceY * 0)) + .widget( + new TextWidget(GT_Utility.trans("239", "Filter Type")).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 2, 3 + startY + spaceY * 1)) + .widget( + new TextWidget(GT_Utility.trans("240", "Block Flow")).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 2, 3 + startY + spaceY * 2)) + .widget(TextWidget.dynamicString(() -> { + if (getCoverData() != null) { + ItemStack fluidDisplay = getFluidDisplayItem(getCoverData()); + if (fluidDisplay != null) { + return fluidDisplay.getDisplayName(); + } + } + return GT_Utility.trans("315", "Filter Empty"); + }) + .setSynced(false) + .setDefaultColor(COLOR_TITLE.get()) + .setPos(startX + spaceX + 3, 4 + startY + spaceY * 3)); } private int getNewFilterMode(int id, FluidFilterData coverVariable) { @@ -410,9 +395,9 @@ public class GT_Cover_Fluidfilter extends GT_CoverBehaviorBase= 0) tNBT.setString( - "mFluid", - FluidRegistry.getFluid(mFluidID) - .getName()); + "mFluid", + FluidRegistry.getFluid(mFluidID) + .getName()); return tNBT; } diff --git a/src/main/java/gregtech/common/covers/GT_Cover_ItemFilter.java b/src/main/java/gregtech/common/covers/GT_Cover_ItemFilter.java index 3ea7c88d8e..0e5f57ad6d 100644 --- a/src/main/java/gregtech/common/covers/GT_Cover_ItemFilter.java +++ b/src/main/java/gregtech/common/covers/GT_Cover_ItemFilter.java @@ -64,39 +64,39 @@ public class GT_Cover_ItemFilter extends GT_CoverBehaviorBase Filter = Collections.singletonList(aCoverVariable.mFilter); moveMultipleItemStacks( - fromEntity, - toEntity, - fromSide, - toSide, - Filter, - aCoverVariable.mWhitelist, - (byte) 64, - (byte) 1, - (byte) 64, - (byte) 1, - 64); + fromEntity, + toEntity, + fromSide, + toSide, + Filter, + aCoverVariable.mWhitelist, + (byte) 64, + (byte) 1, + (byte) 64, + (byte) 1, + 64); return aCoverVariable; } @Override protected boolean onCoverRightClickImpl(byte aSide, int aCoverID, ItemFilterData aCoverVariable, - ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ) { + ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ) { ItemStack tStack = aPlayer.inventory.getCurrentItem(); if (tStack != null) { aCoverVariable.mFilter = tStack; @@ -110,66 +110,66 @@ public class GT_Cover_ItemFilter extends GT_CoverBehaviorBase( - this::getCoverData, - this::setCoverData, - GT_Cover_ItemFilter.this).addFollower( - new CoverDataFollower_ToggleButtonWidget<>(), - coverData -> coverData.mWhitelist, - (coverData, state) -> { - coverData.mWhitelist = state; - return coverData; - }, - widget -> widget.setToggleTexture( - GT_UITextures.OVERLAY_BUTTON_WHITELIST, - GT_UITextures.OVERLAY_BUTTON_BLACKLIST) - .addTooltip(0, GT_Utility.trans("124.1", "Blacklist Mode")) - .addTooltip(1, GT_Utility.trans("125.1", "Whitelist Mode")) - .setPos(spaceX * 0, spaceY * 0)) - .addFollower( - new CoverDataFollower_SlotWidget<>( - filterInvHandler, - 0, - true), - coverData -> setStackSize1(coverData.mFilter), - (coverData, stack) -> { - coverData.mFilter = setStackSize1(stack); - return coverData; - }, - widget -> widget.setBackground( - GT_UITextures.SLOT_DARK_GRAY) - .setPos(spaceX * 0, spaceY * 2)) - .setPos(startX, startY)) - .widget( - new TextWidget(GT_Utility.trans("317", "Filter: ")).setDefaultColor(COLOR_TEXT_GRAY.get()) - .setPos( - startX + spaceX * 0, - 3 + startY + spaceY * 1)) - .widget( - new TextWidget(GT_Utility.trans("318", "Check Mode")).setDefaultColor(COLOR_TEXT_GRAY.get()) - .setPos( - startX + spaceX * 2, - 3 + startY + spaceY * 0)); + new CoverDataControllerWidget<>(this::getCoverData, this::setCoverData, GT_Cover_ItemFilter.this) + .addFollower( + new CoverDataFollower_ToggleButtonWidget<>(), + coverData -> coverData.mWhitelist, + (coverData, state) -> { + coverData.mWhitelist = state; + return coverData; + }, + widget -> widget + .setToggleTexture( + GT_UITextures.OVERLAY_BUTTON_WHITELIST, + GT_UITextures.OVERLAY_BUTTON_BLACKLIST) + .addTooltip(0, GT_Utility.trans("124.1", "Blacklist Mode")) + .addTooltip(1, GT_Utility.trans("125.1", "Whitelist Mode")) + .setPos(spaceX * 0, spaceY * 0)) + .addFollower( + new CoverDataFollower_SlotWidget<>(filterInvHandler, 0, true), + coverData -> setStackSize1(coverData.mFilter), + (coverData, stack) -> { + coverData.mFilter = setStackSize1(stack); + return coverData; + }, + widget -> widget.setBackground(GT_UITextures.SLOT_DARK_GRAY) + .setPos(spaceX * 0, spaceY * 2)) + .setPos(startX, startY)) + .widget( + new TextWidget(GT_Utility.trans("317", "Filter: ")).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 0, 3 + startY + spaceY * 1)) + .widget( + new TextWidget(GT_Utility.trans("318", "Check Mode")).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 2, 3 + startY + spaceY * 0)); } private ItemStack setStackSize1(ItemStack stack) { diff --git a/src/main/java/gregtech/common/covers/GT_Cover_ItemMeter.java b/src/main/java/gregtech/common/covers/GT_Cover_ItemMeter.java index 059cf43e2c..af5a4df927 100644 --- a/src/main/java/gregtech/common/covers/GT_Cover_ItemMeter.java +++ b/src/main/java/gregtech/common/covers/GT_Cover_ItemMeter.java @@ -73,12 +73,12 @@ public class GT_Cover_ItemMeter extends GT_CoverBehaviorBase aTileEntity.getSizeInventory()) aCoverVariable.slot = -1; - if (aCoverVariable.slot == -1) GT_Utility.sendChatToPlayer( - aPlayer, - GT_Utility.trans("053", "Slot: ") + GT_Utility.trans("ALL", "All")); + if (aCoverVariable.slot == -1) GT_Utility + .sendChatToPlayer(aPlayer, GT_Utility.trans("053", "Slot: ") + GT_Utility.trans("ALL", "All")); else GT_Utility.sendChatToPlayer(aPlayer, GT_Utility.trans("053", "Slot: ") + aCoverVariable.slot); } @@ -150,37 +149,37 @@ public class GT_Cover_ItemMeter extends GT_CoverBehaviorBase( - this::getCoverData, - this::setCoverData, - GT_Cover_ItemMeter.this).addFollower( - CoverDataFollower_ToggleButtonWidget.ofRedstone(), - coverData -> coverData.inverted, - (coverData, state) -> { - coverData.inverted = state; - return coverData; - }, - widget -> widget.addTooltip(0, NORMAL) - .addTooltip(1, INVERTED) - .setPos(0, 0)) - .addFollower( - new CoverDataFollower_TextFieldWidget<>(), - coverData -> getSlotTextFieldContent(coverData.slot), - (coverData, state) -> { - coverData.slot = getIntFromText(state); - return coverData; - }, - widget -> widget.setOnScrollText() - .setValidator(val -> { - final int valSlot = getIntFromText(val); - if (valSlot > -1) { - return TextFieldWidget.format.format( - Math.min(valSlot, maxSlot)); - } else { - return ALL_TEXT; - } - }) - .setPattern( - BaseTextFieldWidget.NATURAL_NUMS) - .setFocusOnGuiOpen(true) - .setPos(0, spaceY + 2) - .setSize(spaceX * 2 + 5, 12)) - .addFollower( - new CoverDataFollower_TextFieldWidget<>(), - coverData -> String.valueOf(coverData.threshold), - (coverData, state) -> { - coverData.threshold = (int) MathExpression.parseMathExpression( - state); - return coverData; - }, - widget -> widget.setOnScrollNumbers(1, 10, 64) - .setNumbers(0, getUpperBound()) - .setPos(0, spaceY * 2 + 2) - .setSize(spaceX * 2 + 5, 12)) - .setPos(startX, startY)) - .widget( - new ItemWatcherSlotWidget().setGetter(this::getTargetItem) - .setPos(startX + spaceX * 8 - 4, startY + spaceY)) - .widget( - TextWidget.dynamicString( - () -> getCoverData() != null ? getCoverData().inverted ? INVERTED : NORMAL : "") - .setSynced(false) - .setDefaultColor(COLOR_TEXT_GRAY.get()) - .setPos(startX + spaceX * 3, 4 + startY)) - .widget( - new TextWidget(GT_Utility.trans("254", "Detect slot#")) - .setDefaultColor( - COLOR_TEXT_GRAY.get()) - .setPos( - startX + spaceX * 3, - 4 + startY + spaceY)) - .widget( - new TextWidget(GT_Utility.trans("221", "Item threshold")) - .setDefaultColor( - COLOR_TEXT_GRAY.get()) - .setPos( - startX + spaceX * 3, - startY + spaceY * 2 + 4)); + new CoverDataControllerWidget<>(this::getCoverData, this::setCoverData, GT_Cover_ItemMeter.this) + .addFollower( + CoverDataFollower_ToggleButtonWidget.ofRedstone(), + coverData -> coverData.inverted, + (coverData, state) -> { + coverData.inverted = state; + return coverData; + }, + widget -> widget.addTooltip(0, NORMAL) + .addTooltip(1, INVERTED) + .setPos(0, 0)) + .addFollower( + new CoverDataFollower_TextFieldWidget<>(), + coverData -> getSlotTextFieldContent(coverData.slot), + (coverData, state) -> { + coverData.slot = getIntFromText(state); + return coverData; + }, + widget -> widget.setOnScrollText() + .setValidator(val -> { + final int valSlot = getIntFromText(val); + if (valSlot > -1) { + return TextFieldWidget.format.format(Math.min(valSlot, maxSlot)); + } else { + return ALL_TEXT; + } + }) + .setPattern(BaseTextFieldWidget.NATURAL_NUMS) + .setFocusOnGuiOpen(true) + .setPos(0, spaceY + 2) + .setSize(spaceX * 2 + 5, 12)) + .addFollower( + new CoverDataFollower_TextFieldWidget<>(), + coverData -> String.valueOf(coverData.threshold), + (coverData, state) -> { + coverData.threshold = (int) MathExpression.parseMathExpression(state); + return coverData; + }, + widget -> widget.setOnScrollNumbers(1, 10, 64) + .setNumbers(0, getUpperBound()) + .setPos(0, spaceY * 2 + 2) + .setSize(spaceX * 2 + 5, 12)) + .setPos(startX, startY)) + .widget( + new ItemWatcherSlotWidget().setGetter(this::getTargetItem) + .setPos(startX + spaceX * 8 - 4, startY + spaceY)) + .widget( + TextWidget + .dynamicString(() -> getCoverData() != null ? getCoverData().inverted ? INVERTED : NORMAL : "") + .setSynced(false) + .setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 3, 4 + startY)) + .widget( + new TextWidget(GT_Utility.trans("254", "Detect slot#")).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 3, 4 + startY + spaceY)) + .widget( + new TextWidget(GT_Utility.trans("221", "Item threshold")).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 3, startY + spaceY * 2 + 4)); } private int getMaxSlot() { final ICoverable tile = getUIBuildContext().getTile(); if (tile instanceof TileEntity && !tile.isDead() - && tile instanceof IGregTechTileEntity - && !(((IGregTechTileEntity) tile).getMetaTileEntity() instanceof GT_MetaTileEntity_DigitalChestBase)) + && tile instanceof IGregTechTileEntity + && !(((IGregTechTileEntity) tile).getMetaTileEntity() instanceof GT_MetaTileEntity_DigitalChestBase)) return Math.min(tile.getSizeInventory() - 1, SLOT_MASK - 1); else return -1; } diff --git a/src/main/java/gregtech/common/covers/GT_Cover_Lens.java b/src/main/java/gregtech/common/covers/GT_Cover_Lens.java index 1171a4717f..092973767a 100644 --- a/src/main/java/gregtech/common/covers/GT_Cover_Lens.java +++ b/src/main/java/gregtech/common/covers/GT_Cover_Lens.java @@ -23,7 +23,7 @@ public class GT_Cover_Lens extends GT_CoverBehavior { @Override public boolean isRedstoneSensitive(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - long aTimer) { + long aTimer) { return false; } diff --git a/src/main/java/gregtech/common/covers/GT_Cover_LiquidMeter.java b/src/main/java/gregtech/common/covers/GT_Cover_LiquidMeter.java index 4e54aa7cf3..af97e190ce 100644 --- a/src/main/java/gregtech/common/covers/GT_Cover_LiquidMeter.java +++ b/src/main/java/gregtech/common/covers/GT_Cover_LiquidMeter.java @@ -54,7 +54,7 @@ public class GT_Cover_LiquidMeter extends GT_CoverBehaviorBase tank.capacity) - .sum(); + .mapToInt(tank -> tank.capacity) + .sum(); } else { maxCapacity = -1; } builder.widget( - new CoverDataControllerWidget<>( - this::getCoverData, - this::setCoverData, - GT_Cover_LiquidMeter.this).addFollower( - CoverDataFollower_ToggleButtonWidget.ofRedstone(), - coverData -> coverData.inverted, - (coverData, state) -> { - coverData.inverted = state; - return coverData; - }, - widget -> widget.addTooltip(0, NORMAL) - .addTooltip(1, INVERTED) - .setPos(spaceX * 0, spaceY * 0)) - .addFollower( - CoverDataFollower_ToggleButtonWidget.ofRedstone(), - coverData -> coverData.strong, - (coverData, state) -> { - coverData.strong = state; - return coverData; - }, - widget -> widget.addTooltip(0, WEAK) - .addTooltip(1, STRONG) - .setPos(spaceX * 0, spaceY * 1)) - .addFollower( - new CoverDataFollower_TextFieldWidget<>(), - coverData -> String.valueOf(coverData.threshold), - (coverData, state) -> { - coverData.threshold = (int) MathExpression.parseMathExpression( - state); - return coverData; - }, - widget -> widget.setOnScrollNumbers(1000, 100, 100000) - .setNumbers( - 0, - maxCapacity > 0 ? maxCapacity - : Integer.MAX_VALUE) - .setFocusOnGuiOpen(true) - .setPos(spaceX * 0, spaceY * 2 + 2) - .setSize(spaceX * 4 + 5, 12)) - .setPos(startX, startY)) - .widget( - TextWidget.dynamicString( - () -> getCoverData() != null ? getCoverData().inverted ? INVERTED : NORMAL : "") - .setSynced(false) - .setDefaultColor(COLOR_TEXT_GRAY.get()) - .setPos(startX + spaceX * 1, 4 + startY + spaceY * 0)) - .widget( - TextWidget.dynamicString( - () -> getCoverData() != null ? getCoverData().strong ? STRONG : WEAK : "") - .setSynced(false) - .setDefaultColor(COLOR_TEXT_GRAY.get()) - .setPos(startX + spaceX * 1, 4 + startY + spaceY * 1)) - .widget( - new TextWidget(GT_Utility.trans("222", "Fluid threshold")) - .setDefaultColor( - COLOR_TEXT_GRAY.get()) - .setPos( - startX + spaceX * 5 - 10, - startY + spaceY * 2 + 4)); + new CoverDataControllerWidget<>(this::getCoverData, this::setCoverData, GT_Cover_LiquidMeter.this) + .addFollower( + CoverDataFollower_ToggleButtonWidget.ofRedstone(), + coverData -> coverData.inverted, + (coverData, state) -> { + coverData.inverted = state; + return coverData; + }, + widget -> widget.addTooltip(0, NORMAL) + .addTooltip(1, INVERTED) + .setPos(spaceX * 0, spaceY * 0)) + .addFollower( + CoverDataFollower_ToggleButtonWidget.ofRedstone(), + coverData -> coverData.strong, + (coverData, state) -> { + coverData.strong = state; + return coverData; + }, + widget -> widget.addTooltip(0, WEAK) + .addTooltip(1, STRONG) + .setPos(spaceX * 0, spaceY * 1)) + .addFollower( + new CoverDataFollower_TextFieldWidget<>(), + coverData -> String.valueOf(coverData.threshold), + (coverData, state) -> { + coverData.threshold = (int) MathExpression.parseMathExpression(state); + return coverData; + }, + widget -> widget.setOnScrollNumbers(1000, 100, 100000) + .setNumbers(0, maxCapacity > 0 ? maxCapacity : Integer.MAX_VALUE) + .setFocusOnGuiOpen(true) + .setPos(spaceX * 0, spaceY * 2 + 2) + .setSize(spaceX * 4 + 5, 12)) + .setPos(startX, startY)) + .widget( + TextWidget + .dynamicString(() -> getCoverData() != null ? getCoverData().inverted ? INVERTED : NORMAL : "") + .setSynced(false) + .setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 1, 4 + startY + spaceY * 0)) + .widget( + TextWidget.dynamicString(() -> getCoverData() != null ? getCoverData().strong ? STRONG : WEAK : "") + .setSynced(false) + .setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 1, 4 + startY + spaceY * 1)) + .widget( + new TextWidget(GT_Utility.trans("222", "Fluid threshold")).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 5 - 10, startY + spaceY * 2 + 4)); } } diff --git a/src/main/java/gregtech/common/covers/GT_Cover_NeedMaintainance.java b/src/main/java/gregtech/common/covers/GT_Cover_NeedMaintainance.java index b0ec7137b4..5fc9354c18 100644 --- a/src/main/java/gregtech/common/covers/GT_Cover_NeedMaintainance.java +++ b/src/main/java/gregtech/common/covers/GT_Cover_NeedMaintainance.java @@ -36,19 +36,19 @@ public class GT_Cover_NeedMaintainance extends GT_CoverBehavior { public static boolean isRotor(ItemStack rotor) { return (rotor != null && rotor.getItem() instanceof GT_MetaGenerated_Tool - && rotor.getItemDamage() >= 170 - && rotor.getItemDamage() <= 176); + && rotor.getItemDamage() >= 170 + && rotor.getItemDamage() <= 176); } @Override public boolean isRedstoneSensitive(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - long aTimer) { + long aTimer) { return false; } @Override public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - long aTimer) { + long aTimer) { boolean needsRepair = false; if (aTileEntity instanceof IGregTechTileEntity tTileEntity) { IMetaTileEntity mTileEntity = tTileEntity.getMetaTileEntity(); @@ -67,9 +67,9 @@ public class GT_Cover_NeedMaintainance extends GT_CoverBehavior { needsRepair = (tCur >= tMax * 8 / 10); } else { long mExpectedDamage = Math.round( - Math.min( - multi.mEUt / multi.damageFactorLow, - Math.pow(multi.mEUt, multi.damageFactorHigh))); + Math.min( + multi.mEUt / multi.damageFactorLow, + Math.pow(multi.mEUt, multi.damageFactorHigh))); needsRepair = tCur + mExpectedDamage * 2 >= tMax; } } else { @@ -89,44 +89,38 @@ public class GT_Cover_NeedMaintainance extends GT_CoverBehavior { @Override public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - EntityPlayer aPlayer, float aX, float aY, float aZ) { + EntityPlayer aPlayer, float aX, float aY, float aZ) { aCoverVariable = (aCoverVariable + (aPlayer.isSneaking() ? -1 : 1)) % 14; if (aCoverVariable < 0) { aCoverVariable = 13; } switch (aCoverVariable) { case 0 -> GT_Utility.sendChatToPlayer(aPlayer, GT_Utility.trans("056", "Emit if 1 Maintenance Needed")); - case 1 -> GT_Utility.sendChatToPlayer( - aPlayer, - GT_Utility.trans("057", "Emit if 1 Maintenance Needed(inverted)")); + case 1 -> GT_Utility + .sendChatToPlayer(aPlayer, GT_Utility.trans("057", "Emit if 1 Maintenance Needed(inverted)")); case 2 -> GT_Utility.sendChatToPlayer(aPlayer, GT_Utility.trans("058", "Emit if 2 Maintenance Needed")); - case 3 -> GT_Utility.sendChatToPlayer( - aPlayer, - GT_Utility.trans("059", "Emit if 2 Maintenance Needed(inverted)")); + case 3 -> GT_Utility + .sendChatToPlayer(aPlayer, GT_Utility.trans("059", "Emit if 2 Maintenance Needed(inverted)")); case 4 -> GT_Utility.sendChatToPlayer(aPlayer, GT_Utility.trans("060", "Emit if 3 Maintenance Needed")); - case 5 -> GT_Utility.sendChatToPlayer( - aPlayer, - GT_Utility.trans("061", "Emit if 3 Maintenance Needed(inverted)")); + case 5 -> GT_Utility + .sendChatToPlayer(aPlayer, GT_Utility.trans("061", "Emit if 3 Maintenance Needed(inverted)")); case 6 -> GT_Utility.sendChatToPlayer(aPlayer, GT_Utility.trans("062", "Emit if 4 Maintenance Needed")); - case 7 -> GT_Utility.sendChatToPlayer( - aPlayer, - GT_Utility.trans("063", "Emit if 4 Maintenance Needed(inverted)")); + case 7 -> GT_Utility + .sendChatToPlayer(aPlayer, GT_Utility.trans("063", "Emit if 4 Maintenance Needed(inverted)")); case 8 -> GT_Utility.sendChatToPlayer(aPlayer, GT_Utility.trans("064", "Emit if 5 Maintenance Needed")); - case 9 -> GT_Utility.sendChatToPlayer( - aPlayer, - GT_Utility.trans("065", "Emit if 5 Maintenance Needed(inverted)")); - case 10 -> GT_Utility.sendChatToPlayer( - aPlayer, - GT_Utility.trans("066", "Emit if rotor needs maintenance low accuracy mod")); + case 9 -> GT_Utility + .sendChatToPlayer(aPlayer, GT_Utility.trans("065", "Emit if 5 Maintenance Needed(inverted)")); + case 10 -> GT_Utility + .sendChatToPlayer(aPlayer, GT_Utility.trans("066", "Emit if rotor needs maintenance low accuracy mod")); case 11 -> GT_Utility.sendChatToPlayer( - aPlayer, - GT_Utility.trans("067", "Emit if rotor needs maintenance low accuracy mod(inverted)")); + aPlayer, + GT_Utility.trans("067", "Emit if rotor needs maintenance low accuracy mod(inverted)")); case 12 -> GT_Utility.sendChatToPlayer( - aPlayer, - GT_Utility.trans("068", "Emit if rotor needs maintenance high accuracy mod")); + aPlayer, + GT_Utility.trans("068", "Emit if rotor needs maintenance high accuracy mod")); case 13 -> GT_Utility.sendChatToPlayer( - aPlayer, - GT_Utility.trans("069", "Emit if rotor needs maintenance high accuracy mod(inverted)")); + aPlayer, + GT_Utility.trans("069", "Emit if rotor needs maintenance high accuracy mod(inverted)")); } return aCoverVariable; } @@ -163,7 +157,7 @@ public class GT_Cover_NeedMaintainance extends GT_CoverBehavior { @Override public boolean manipulatesSidedRedstoneOutput(byte aSide, int aCoverID, int aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return true; } @@ -204,116 +198,95 @@ public class GT_Cover_NeedMaintainance extends GT_CoverBehavior { @Override protected void addUIWidgets(ModularWindow.Builder builder) { final String[] tooltipText = { GT_Utility.trans("056", "Emit if 1 Maintenance Needed"), - GT_Utility.trans("058", "Emit if 2 Maintenance Needed"), - GT_Utility.trans("060", "Emit if 3 Maintenance Needed"), - GT_Utility.trans("062", "Emit if 4 Maintenance Needed"), - GT_Utility.trans("064", "Emit if 5 Maintenance Needed"), - GT_Utility.trans("066", "Emit if rotor needs maintenance low accuracy mod"), - GT_Utility.trans("068", "Emit if rotor needs maintenance high accuracy mod"), }; + GT_Utility.trans("058", "Emit if 2 Maintenance Needed"), + GT_Utility.trans("060", "Emit if 3 Maintenance Needed"), + GT_Utility.trans("062", "Emit if 4 Maintenance Needed"), + GT_Utility.trans("064", "Emit if 5 Maintenance Needed"), + GT_Utility.trans("066", "Emit if rotor needs maintenance low accuracy mod"), + GT_Utility.trans("068", "Emit if rotor needs maintenance high accuracy mod"), }; final String[] buttonText = { GT_Utility.trans("247", "1 Issue"), GT_Utility.trans("248", "2 Issues"), - GT_Utility.trans("249", "3 Issues"), GT_Utility.trans("250", "4 Issues"), - GT_Utility.trans("251", "5 Issues"), GT_Utility.trans("252", "Rotor < 80%"), - GT_Utility.trans("253", "Rotor < 100%"), GT_Utility.trans("INVERTED", "Inverted"), - GT_Utility.trans("NORMAL", "Normal"), }; + GT_Utility.trans("249", "3 Issues"), GT_Utility.trans("250", "4 Issues"), + GT_Utility.trans("251", "5 Issues"), GT_Utility.trans("252", "Rotor < 80%"), + GT_Utility.trans("253", "Rotor < 100%"), GT_Utility.trans("INVERTED", "Inverted"), + GT_Utility.trans("NORMAL", "Normal"), }; - builder.widget( + builder + .widget( new CoverDataControllerWidget.CoverDataIndexedControllerWidget_ToggleButtons<>( - this::getCoverData, - this::setCoverData, - GT_Cover_NeedMaintainance.this, - (index, coverData) -> isEnabled(index, convert(coverData)), - (index, coverData) -> new ISerializableObject.LegacyCoverData( - getNewCoverVariable(index, convert(coverData)))).addToggleButton( - 0, - CoverDataFollower_ToggleButtonWidget.ofCheck(), - widget -> widget.addTooltip(tooltipText[0]) - .setPos(spaceX * 0, spaceY * 0)) - .addToggleButton( - 1, - CoverDataFollower_ToggleButtonWidget.ofCheck(), - widget -> widget.addTooltip( - tooltipText[1]) - .setPos( - spaceX * 0, - spaceY * 1)) - .addToggleButton( - 2, - CoverDataFollower_ToggleButtonWidget.ofCheck(), - widget -> widget.addTooltip( - tooltipText[2]) - .setPos( - spaceX * 0, - spaceY * 2)) - .addToggleButton( - 3, - CoverDataFollower_ToggleButtonWidget.ofCheck(), - widget -> widget.addTooltip( - tooltipText[3]) - .setPos( - spaceX * 0, - spaceY * 3)) - .addToggleButton( - 4, - CoverDataFollower_ToggleButtonWidget.ofCheck(), - widget -> widget.addTooltip( - tooltipText[4]) - .setPos( - spaceX * 4 - + 4, - spaceY * 0)) - .addToggleButton( - 5, - CoverDataFollower_ToggleButtonWidget.ofCheck(), - widget -> widget.addTooltip( - tooltipText[5]) - .setPos( - spaceX * 4 - + 4, - spaceY * 1)) - .addToggleButton( - 6, - CoverDataFollower_ToggleButtonWidget.ofCheck(), - widget -> widget.addTooltip( - tooltipText[6]) - .setPos( - spaceX * 4 - + 4, - spaceY * 2)) - .addToggleButton( - 7, - CoverDataFollower_ToggleButtonWidget.ofRedstone(), - widget -> widget.setPos( - spaceX * 4 + 4, - spaceY * 3)) - .setPos(startX, startY)) - .widget( - new TextWidget(buttonText[0]).setDefaultColor(COLOR_TEXT_GRAY.get()) - .setPos(startX + spaceX * 1, 4 + startY + spaceY * 0)) - .widget( - new TextWidget(buttonText[1]).setDefaultColor(COLOR_TEXT_GRAY.get()) - .setPos(startX + spaceX * 1, 4 + startY + spaceY * 1)) - .widget( - new TextWidget(buttonText[2]).setDefaultColor(COLOR_TEXT_GRAY.get()) - .setPos(startX + spaceX * 1, 4 + startY + spaceY * 2)) - .widget( - new TextWidget(buttonText[3]).setDefaultColor(COLOR_TEXT_GRAY.get()) - .setPos(startX + spaceX * 1, 4 + startY + spaceY * 3)) - .widget( - new TextWidget(buttonText[4]).setDefaultColor(COLOR_TEXT_GRAY.get()) - .setPos(startX + spaceX * 5 + 4, 4 + startY + spaceY * 0)) - .widget( - new TextWidget(buttonText[5]).setDefaultColor(COLOR_TEXT_GRAY.get()) - .setPos(startX + spaceX * 5 + 4, 4 + startY + spaceY * 1)) - .widget( - new TextWidget(buttonText[6]).setDefaultColor(COLOR_TEXT_GRAY.get()) - .setPos(startX + spaceX * 5 + 4, 4 + startY + spaceY * 2)) - .widget( - TextWidget.dynamicString( - () -> isEnabled(7, convert(getCoverData())) ? buttonText[7] : buttonText[8]) - .setSynced(false) - .setDefaultColor(COLOR_TEXT_GRAY.get()) - .setPos(startX + spaceX * 5 + 4, 4 + startY + spaceY * 3)); + this::getCoverData, + this::setCoverData, + GT_Cover_NeedMaintainance.this, + (index, coverData) -> isEnabled(index, convert(coverData)), + (index, coverData) -> new ISerializableObject.LegacyCoverData( + getNewCoverVariable(index, convert(coverData)))) + .addToggleButton( + 0, + CoverDataFollower_ToggleButtonWidget.ofCheck(), + widget -> widget.addTooltip(tooltipText[0]) + .setPos(spaceX * 0, spaceY * 0)) + .addToggleButton( + 1, + CoverDataFollower_ToggleButtonWidget.ofCheck(), + widget -> widget.addTooltip(tooltipText[1]) + .setPos(spaceX * 0, spaceY * 1)) + .addToggleButton( + 2, + CoverDataFollower_ToggleButtonWidget.ofCheck(), + widget -> widget.addTooltip(tooltipText[2]) + .setPos(spaceX * 0, spaceY * 2)) + .addToggleButton( + 3, + CoverDataFollower_ToggleButtonWidget.ofCheck(), + widget -> widget.addTooltip(tooltipText[3]) + .setPos(spaceX * 0, spaceY * 3)) + .addToggleButton( + 4, + CoverDataFollower_ToggleButtonWidget.ofCheck(), + widget -> widget.addTooltip(tooltipText[4]) + .setPos(spaceX * 4 + 4, spaceY * 0)) + .addToggleButton( + 5, + CoverDataFollower_ToggleButtonWidget.ofCheck(), + widget -> widget.addTooltip(tooltipText[5]) + .setPos(spaceX * 4 + 4, spaceY * 1)) + .addToggleButton( + 6, + CoverDataFollower_ToggleButtonWidget.ofCheck(), + widget -> widget.addTooltip(tooltipText[6]) + .setPos(spaceX * 4 + 4, spaceY * 2)) + .addToggleButton( + 7, + CoverDataFollower_ToggleButtonWidget.ofRedstone(), + widget -> widget.setPos(spaceX * 4 + 4, spaceY * 3)) + .setPos(startX, startY)) + .widget( + new TextWidget(buttonText[0]).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 1, 4 + startY + spaceY * 0)) + .widget( + new TextWidget(buttonText[1]).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 1, 4 + startY + spaceY * 1)) + .widget( + new TextWidget(buttonText[2]).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 1, 4 + startY + spaceY * 2)) + .widget( + new TextWidget(buttonText[3]).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 1, 4 + startY + spaceY * 3)) + .widget( + new TextWidget(buttonText[4]).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 5 + 4, 4 + startY + spaceY * 0)) + .widget( + new TextWidget(buttonText[5]).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 5 + 4, 4 + startY + spaceY * 1)) + .widget( + new TextWidget(buttonText[6]).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 5 + 4, 4 + startY + spaceY * 2)) + .widget( + TextWidget + .dynamicString(() -> isEnabled(7, convert(getCoverData())) ? buttonText[7] : buttonText[8]) + .setSynced(false) + .setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 5 + 4, 4 + startY + spaceY * 3)); } private int getNewCoverVariable(int id, int coverVariable) { diff --git a/src/main/java/gregtech/common/covers/GT_Cover_PlayerDetector.java b/src/main/java/gregtech/common/covers/GT_Cover_PlayerDetector.java index 466931d075..13054bccf6 100644 --- a/src/main/java/gregtech/common/covers/GT_Cover_PlayerDetector.java +++ b/src/main/java/gregtech/common/covers/GT_Cover_PlayerDetector.java @@ -36,13 +36,13 @@ public class GT_Cover_PlayerDetector extends GT_CoverBehavior { @Override public boolean isRedstoneSensitive(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - long aTimer) { + long aTimer) { return false; } @Override public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - long aTimer) { + long aTimer) { boolean playerDetected = false; if (aTileEntity instanceof IGregTechTileEntity) { @@ -57,18 +57,18 @@ public class GT_Cover_PlayerDetector extends GT_CoverBehavior { for (Object tObject : aTileEntity.getWorld().playerEntities) { if ((tObject instanceof EntityPlayerMP tEntity)) { int dist = Math.max( - 1, - (int) tEntity.getDistance( - aTileEntity.getXCoord() + 0.5D, - aTileEntity.getYCoord() + 0.5D, - aTileEntity.getZCoord() + 0.5D)); + 1, + (int) tEntity.getDistance( + aTileEntity.getXCoord() + 0.5D, + aTileEntity.getYCoord() + 0.5D, + aTileEntity.getZCoord() + 0.5D)); if (dist < range) { if (aCoverVariable == 0) { playerDetected = true; break; } if (tEntity.getDisplayName() - .equalsIgnoreCase(placer)) { + .equalsIgnoreCase(placer)) { if (aCoverVariable == 1) { playerDetected = true; break; @@ -87,7 +87,7 @@ public class GT_Cover_PlayerDetector extends GT_CoverBehavior { @Override public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - EntityPlayer aPlayer, float aX, float aY, float aZ) { + EntityPlayer aPlayer, float aX, float aY, float aZ) { aCoverVariable = (aCoverVariable + (aPlayer.isSneaking() ? -1 : 1)) % 3; if (aCoverVariable < 0) { aCoverVariable = 2; @@ -132,7 +132,7 @@ public class GT_Cover_PlayerDetector extends GT_CoverBehavior { @Override public boolean manipulatesSidedRedstoneOutput(byte aSide, int aCoverID, int aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return true; } @@ -172,58 +172,39 @@ public class GT_Cover_PlayerDetector extends GT_CoverBehavior { @SuppressWarnings("PointlessArithmeticExpression") @Override protected void addUIWidgets(ModularWindow.Builder builder) { - builder.widget( + builder + .widget( new CoverDataControllerWidget.CoverDataIndexedControllerWidget_ToggleButtons<>( - this::getCoverData, - this::setCoverData, - GT_Cover_PlayerDetector.this, - (index, coverData) -> index == convert(coverData), - (index, coverData) -> new ISerializableObject.LegacyCoverData(index)).addToggleButton( - 0, - CoverDataFollower_ToggleButtonWidget.ofCheck(), - widget -> widget.addTooltip( - GT_Utility.trans("068.1", "Emit if any Player is close")) - .setPos(spaceX * 0, spaceY * 0)) - .addToggleButton( - 1, - CoverDataFollower_ToggleButtonWidget.ofCheck(), - widget -> widget.addTooltip( - GT_Utility.trans( - "069.1", - "Emit if other Player is close")) - .setPos( - spaceX * 0, - spaceY * 1)) - .addToggleButton( - 2, - CoverDataFollower_ToggleButtonWidget.ofCheck(), - widget -> widget.addTooltip( - GT_Utility.trans( - "070", - "Emit if you are close")) - .setPos( - spaceX * 0, - spaceY * 2)) - .setPos( - startX, - startY)) - .widget( - new TextWidget(GT_Utility.trans("319", "Any player")).setDefaultColor(COLOR_TEXT_GRAY.get()) - .setPos( - startX + spaceX * 1, - 4 + startY + spaceY * 0)) - .widget( - new TextWidget(GT_Utility.trans("320", "Other players")) - .setDefaultColor( - COLOR_TEXT_GRAY.get()) - .setPos( - startX + spaceX * 1, - 4 + startY + spaceY * 1)) - .widget( - new TextWidget(GT_Utility.trans("321", "Only owner")).setDefaultColor(COLOR_TEXT_GRAY.get()) - .setPos( - startX + spaceX * 1, - 4 + startY + spaceY * 2)); + this::getCoverData, + this::setCoverData, + GT_Cover_PlayerDetector.this, + (index, coverData) -> index == convert(coverData), + (index, coverData) -> new ISerializableObject.LegacyCoverData(index)) + .addToggleButton( + 0, + CoverDataFollower_ToggleButtonWidget.ofCheck(), + widget -> widget.addTooltip(GT_Utility.trans("068.1", "Emit if any Player is close")) + .setPos(spaceX * 0, spaceY * 0)) + .addToggleButton( + 1, + CoverDataFollower_ToggleButtonWidget.ofCheck(), + widget -> widget.addTooltip(GT_Utility.trans("069.1", "Emit if other Player is close")) + .setPos(spaceX * 0, spaceY * 1)) + .addToggleButton( + 2, + CoverDataFollower_ToggleButtonWidget.ofCheck(), + widget -> widget.addTooltip(GT_Utility.trans("070", "Emit if you are close")) + .setPos(spaceX * 0, spaceY * 2)) + .setPos(startX, startY)) + .widget( + new TextWidget(GT_Utility.trans("319", "Any player")).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 1, 4 + startY + spaceY * 0)) + .widget( + new TextWidget(GT_Utility.trans("320", "Other players")).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 1, 4 + startY + spaceY * 1)) + .widget( + new TextWidget(GT_Utility.trans("321", "Only owner")).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 1, 4 + startY + spaceY * 2)); } } } diff --git a/src/main/java/gregtech/common/covers/GT_Cover_Pump.java b/src/main/java/gregtech/common/covers/GT_Cover_Pump.java index f95c586427..045eec872c 100644 --- a/src/main/java/gregtech/common/covers/GT_Cover_Pump.java +++ b/src/main/java/gregtech/common/covers/GT_Cover_Pump.java @@ -39,13 +39,13 @@ public class GT_Cover_Pump extends GT_CoverBehavior { @Override public boolean isRedstoneSensitive(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - long aTimer) { + long aTimer) { return false; } @Override public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - long aTimer) { + long aTimer) { if ((aCoverVariable % 6 > 1) && ((aTileEntity instanceof IMachineProgress))) { if (((IMachineProgress) aTileEntity).isAllowedToWork() != aCoverVariable % 6 < 4) { return aCoverVariable; @@ -61,36 +61,36 @@ public class GT_Cover_Pump extends GT_CoverBehavior { if (tLiquid != null) { tLiquid = tLiquid.copy(); tLiquid.amount = tTank2.fill( - ForgeDirection.getOrientation(aSide) - .getOpposite(), - tLiquid, - false); + ForgeDirection.getOrientation(aSide) + .getOpposite(), + tLiquid, + false); if (tLiquid.amount > 0 && canTransferFluid(tLiquid)) { tTank2.fill( - ForgeDirection.getOrientation(aSide) - .getOpposite(), - tTank1.drain(ForgeDirection.getOrientation(aSide), tLiquid.amount, true), - true); + ForgeDirection.getOrientation(aSide) + .getOpposite(), + tTank1.drain(ForgeDirection.getOrientation(aSide), tLiquid.amount, true), + true); } } } else { FluidStack tLiquid = tTank2.drain( - ForgeDirection.getOrientation(aSide) - .getOpposite(), - this.mTransferRate, - false); + ForgeDirection.getOrientation(aSide) + .getOpposite(), + this.mTransferRate, + false); if (tLiquid != null) { tLiquid = tLiquid.copy(); tLiquid.amount = tTank1.fill(ForgeDirection.getOrientation(aSide), tLiquid, false); if (tLiquid.amount > 0 && canTransferFluid(tLiquid)) { tTank1.fill( - ForgeDirection.getOrientation(aSide), - tTank2.drain( - ForgeDirection.getOrientation(aSide) - .getOpposite(), - tLiquid.amount, - true), - true); + ForgeDirection.getOrientation(aSide), + tTank2.drain( + ForgeDirection.getOrientation(aSide) + .getOpposite(), + tLiquid.amount, + true), + true); } } } @@ -105,7 +105,7 @@ public class GT_Cover_Pump extends GT_CoverBehavior { @Override public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - EntityPlayer aPlayer, float aX, float aY, float aZ) { + EntityPlayer aPlayer, float aX, float aY, float aZ) { aCoverVariable = (aCoverVariable + (aPlayer.isSneaking() ? -1 : 1)) % 12; if (aCoverVariable < 0) { aCoverVariable = 11; @@ -120,15 +120,12 @@ public class GT_Cover_Pump extends GT_CoverBehavior { case 6 -> GT_Utility.sendChatToPlayer(aPlayer, GT_Utility.trans("012", "Export allow Input")); case 7 -> GT_Utility.sendChatToPlayer(aPlayer, GT_Utility.trans("013", "Import allow Output")); case 8 -> GT_Utility.sendChatToPlayer(aPlayer, GT_Utility.trans("014", "Export allow Input (conditional)")); - case 9 -> GT_Utility.sendChatToPlayer( - aPlayer, - GT_Utility.trans("015", "Import allow Output (conditional)")); - case 10 -> GT_Utility.sendChatToPlayer( - aPlayer, - GT_Utility.trans("016", "Export allow Input (invert cond)")); - case 11 -> GT_Utility.sendChatToPlayer( - aPlayer, - GT_Utility.trans("017", "Import allow Output (invert cond)")); + case 9 -> GT_Utility + .sendChatToPlayer(aPlayer, GT_Utility.trans("015", "Import allow Output (conditional)")); + case 10 -> GT_Utility + .sendChatToPlayer(aPlayer, GT_Utility.trans("016", "Export allow Input (invert cond)")); + case 11 -> GT_Utility + .sendChatToPlayer(aPlayer, GT_Utility.trans("017", "Import allow Output (invert cond)")); } return aCoverVariable; } @@ -224,111 +221,67 @@ public class GT_Cover_Pump extends GT_CoverBehavior { @SuppressWarnings("PointlessArithmeticExpression") @Override protected void addUIWidgets(ModularWindow.Builder builder) { - builder.widget( + builder + .widget( new CoverDataControllerWidget.CoverDataIndexedControllerWidget_ToggleButtons<>( - this::getCoverData, - this::setCoverData, - GT_Cover_Pump.this, - (id, coverData) -> !getClickable(id, convert(coverData)), - (id, coverData) -> new ISerializableObject.LegacyCoverData( - getNewCoverVariable(id, convert(coverData)))).addToggleButton( - 0, - CoverDataFollower_ToggleButtonWidget.ofDisableable(), - widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_EXPORT) - .addTooltip(GT_Utility.trans("006", "Export")) - .setPos(spaceX * 0, spaceY * 0)) - .addToggleButton( - 1, - CoverDataFollower_ToggleButtonWidget.ofDisableable(), - widget -> widget.setStaticTexture( - GT_UITextures.OVERLAY_BUTTON_IMPORT) - .addTooltip( - GT_Utility.trans( - "007", - "Import")) - .setPos( - spaceX * 1, - spaceY * 0)) - .addToggleButton( - 2, - CoverDataFollower_ToggleButtonWidget.ofDisableable(), - widget -> widget.setStaticTexture( - GT_UITextures.OVERLAY_BUTTON_CHECKMARK) - .addTooltip( - GT_Utility.trans( - "224", - "Always On")) - .setPos( - spaceX * 0, - spaceY * 1)) - .addToggleButton( - 3, - CoverDataFollower_ToggleButtonWidget.ofDisableable(), - widget -> widget.setStaticTexture( - GT_UITextures.OVERLAY_BUTTON_REDSTONE_ON) - .addTooltip( - GT_Utility.trans( - "225", - "Active with Redstone Signal")) - .setPos( - spaceX * 1, - spaceY * 1)) - .addToggleButton( - 4, - CoverDataFollower_ToggleButtonWidget.ofDisableable(), - widget -> widget.setStaticTexture( - GT_UITextures.OVERLAY_BUTTON_REDSTONE_OFF) - .addTooltip( - GT_Utility.trans( - "226", - "Inactive with Redstone Signal")) - .setPos( - spaceX * 2, - spaceY * 1)) - .addToggleButton( - 5, - CoverDataFollower_ToggleButtonWidget.ofDisableable(), - widget -> widget.setStaticTexture( - GT_UITextures.OVERLAY_BUTTON_ALLOW_INPUT) - .addTooltip( - GT_Utility.trans( - "227", - "Allow Input")) - .setPos( - spaceX * 0, - spaceY * 2)) - .addToggleButton( - 6, - CoverDataFollower_ToggleButtonWidget.ofDisableable(), - widget -> widget.setStaticTexture( - GT_UITextures.OVERLAY_BUTTON_BLOCK_INPUT) - .addTooltip( - GT_Utility.trans( - "228", - "Block Input")) - .setPos( - spaceX * 1, - spaceY * 2)) - .setPos(startX, startY)) - .widget( - new TextWidget(GT_Utility.trans("229", "Import/Export")) - .setDefaultColor( - COLOR_TEXT_GRAY.get()) - .setPos( - startX + spaceX * 3, - 3 + startY + spaceY * 0)) - .widget( - new TextWidget(GT_Utility.trans("230", "Conditional")).setDefaultColor(COLOR_TEXT_GRAY.get()) - .setPos( - startX + spaceX * 3, - 3 + startY + spaceY * 1)) - .widget( - new TextWidget(GT_Utility.trans("231", "Enable Input")) - .setDefaultColor( - COLOR_TEXT_GRAY.get()) - .setPos( - startX + spaceX * 3, - 3 + startY + spaceY * 2)); + this::getCoverData, + this::setCoverData, + GT_Cover_Pump.this, + (id, coverData) -> !getClickable(id, convert(coverData)), + (id, coverData) -> new ISerializableObject.LegacyCoverData( + getNewCoverVariable(id, convert(coverData)))) + .addToggleButton( + 0, + CoverDataFollower_ToggleButtonWidget.ofDisableable(), + widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_EXPORT) + .addTooltip(GT_Utility.trans("006", "Export")) + .setPos(spaceX * 0, spaceY * 0)) + .addToggleButton( + 1, + CoverDataFollower_ToggleButtonWidget.ofDisableable(), + widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_IMPORT) + .addTooltip(GT_Utility.trans("007", "Import")) + .setPos(spaceX * 1, spaceY * 0)) + .addToggleButton( + 2, + CoverDataFollower_ToggleButtonWidget.ofDisableable(), + widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_CHECKMARK) + .addTooltip(GT_Utility.trans("224", "Always On")) + .setPos(spaceX * 0, spaceY * 1)) + .addToggleButton( + 3, + CoverDataFollower_ToggleButtonWidget.ofDisableable(), + widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_REDSTONE_ON) + .addTooltip(GT_Utility.trans("225", "Active with Redstone Signal")) + .setPos(spaceX * 1, spaceY * 1)) + .addToggleButton( + 4, + CoverDataFollower_ToggleButtonWidget.ofDisableable(), + widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_REDSTONE_OFF) + .addTooltip(GT_Utility.trans("226", "Inactive with Redstone Signal")) + .setPos(spaceX * 2, spaceY * 1)) + .addToggleButton( + 5, + CoverDataFollower_ToggleButtonWidget.ofDisableable(), + widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_ALLOW_INPUT) + .addTooltip(GT_Utility.trans("227", "Allow Input")) + .setPos(spaceX * 0, spaceY * 2)) + .addToggleButton( + 6, + CoverDataFollower_ToggleButtonWidget.ofDisableable(), + widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_BLOCK_INPUT) + .addTooltip(GT_Utility.trans("228", "Block Input")) + .setPos(spaceX * 1, spaceY * 2)) + .setPos(startX, startY)) + .widget( + new TextWidget(GT_Utility.trans("229", "Import/Export")).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 3, 3 + startY + spaceY * 0)) + .widget( + new TextWidget(GT_Utility.trans("230", "Conditional")).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 3, 3 + startY + spaceY * 1)) + .widget( + new TextWidget(GT_Utility.trans("231", "Enable Input")).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 3, 3 + startY + spaceY * 2)); } private int getNewCoverVariable(int id, int coverVariable) { diff --git a/src/main/java/gregtech/common/covers/GT_Cover_RedstoneConductor.java b/src/main/java/gregtech/common/covers/GT_Cover_RedstoneConductor.java index 7b1adacff4..7205876fca 100644 --- a/src/main/java/gregtech/common/covers/GT_Cover_RedstoneConductor.java +++ b/src/main/java/gregtech/common/covers/GT_Cover_RedstoneConductor.java @@ -17,26 +17,26 @@ public class GT_Cover_RedstoneConductor extends GT_CoverBehavior { @Override public boolean isRedstoneSensitive(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - long aTimer) { + long aTimer) { return false; } @Override public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - long aTimer) { + long aTimer) { if (aCoverVariable == 0) { aTileEntity.setOutputRedstoneSignal(aSide, aTileEntity.getStrongestRedstone()); } else if (aCoverVariable < 7) { aTileEntity.setOutputRedstoneSignal( - aSide, - aTileEntity.getInternalInputRedstoneSignal((byte) (aCoverVariable - 1))); + aSide, + aTileEntity.getInternalInputRedstoneSignal((byte) (aCoverVariable - 1))); } return aCoverVariable; } @Override public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - EntityPlayer aPlayer, float aX, float aY, float aZ) { + EntityPlayer aPlayer, float aX, float aY, float aZ) { aCoverVariable = (aCoverVariable + (aPlayer.isSneaking() ? -1 : 1)) % 7; if (aCoverVariable < 0) { aCoverVariable = 6; @@ -85,7 +85,7 @@ public class GT_Cover_RedstoneConductor extends GT_CoverBehavior { @Override public boolean manipulatesSidedRedstoneOutput(byte aSide, int aCoverID, int aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return true; } diff --git a/src/main/java/gregtech/common/covers/GT_Cover_RedstoneReceiverExternal.java b/src/main/java/gregtech/common/covers/GT_Cover_RedstoneReceiverExternal.java index 8fe1bb5d13..00890541bc 100644 --- a/src/main/java/gregtech/common/covers/GT_Cover_RedstoneReceiverExternal.java +++ b/src/main/java/gregtech/common/covers/GT_Cover_RedstoneReceiverExternal.java @@ -20,23 +20,23 @@ public class GT_Cover_RedstoneReceiverExternal extends GT_Cover_RedstoneWireless @Override public boolean isRedstoneSensitive(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - long aTimer) { + long aTimer) { return false; } @Override public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - long aTimer) { + long aTimer) { aTileEntity.setOutputRedstoneSignal( - aSide, - GregTech_API.sWirelessRedstone.get(aCoverVariable) == null ? 0 - : GregTech_API.sWirelessRedstone.get(aCoverVariable)); + aSide, + GregTech_API.sWirelessRedstone.get(aCoverVariable) == null ? 0 + : GregTech_API.sWirelessRedstone.get(aCoverVariable)); return aCoverVariable; } @Override public boolean manipulatesSidedRedstoneOutput(byte aSide, int aCoverID, int aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return true; } diff --git a/src/main/java/gregtech/common/covers/GT_Cover_RedstoneReceiverInternal.java b/src/main/java/gregtech/common/covers/GT_Cover_RedstoneReceiverInternal.java index 8dec852149..899db734af 100644 --- a/src/main/java/gregtech/common/covers/GT_Cover_RedstoneReceiverInternal.java +++ b/src/main/java/gregtech/common/covers/GT_Cover_RedstoneReceiverInternal.java @@ -22,7 +22,7 @@ public class GT_Cover_RedstoneReceiverInternal extends GT_Cover_RedstoneWireless @Override public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - long aTimer) { + long aTimer) { if (aTileEntity instanceof IMachineProgress) { if (getRedstoneInput(aSide, aInputRedstone, aCoverID, aCoverVariable, aTileEntity) > 0) ((IMachineProgress) aTileEntity).enableWorking(); @@ -34,15 +34,15 @@ public class GT_Cover_RedstoneReceiverInternal extends GT_Cover_RedstoneWireless @Override protected boolean isRedstoneSensitiveImpl(byte aSide, int aCoverID, - ISerializableObject.LegacyCoverData aCoverVariable, ICoverable aTileEntity, long aTimer) { + ISerializableObject.LegacyCoverData aCoverVariable, ICoverable aTileEntity, long aTimer) { return true; } @Override public byte getRedstoneInput(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return GregTech_API.sWirelessRedstone.get(aCoverVariable) == null ? 0 - : GregTech_API.sWirelessRedstone.get(aCoverVariable); + : GregTech_API.sWirelessRedstone.get(aCoverVariable); } @Override diff --git a/src/main/java/gregtech/common/covers/GT_Cover_RedstoneSignalizer.java b/src/main/java/gregtech/common/covers/GT_Cover_RedstoneSignalizer.java index bdb160f15e..d8ace5b4d2 100644 --- a/src/main/java/gregtech/common/covers/GT_Cover_RedstoneSignalizer.java +++ b/src/main/java/gregtech/common/covers/GT_Cover_RedstoneSignalizer.java @@ -18,24 +18,22 @@ public class GT_Cover_RedstoneSignalizer extends GT_CoverBehavior { @Override public boolean isRedstoneSensitive(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - long aTimer) { + long aTimer) { return false; } @Override public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - EntityPlayer aPlayer, float aX, float aY, float aZ) { + EntityPlayer aPlayer, float aX, float aY, float aZ) { aCoverVariable = (aCoverVariable + 1) % 48; switch (aCoverVariable / 16) { - case 0 -> GT_Utility.sendChatToPlayer( - aPlayer, - GT_Utility.trans("078", "Signal = ") + (aCoverVariable & 0xF)); - case 1 -> GT_Utility.sendChatToPlayer( - aPlayer, - GT_Utility.trans("079", "Conditional Signal = ") + (aCoverVariable & 0xF)); + case 0 -> GT_Utility + .sendChatToPlayer(aPlayer, GT_Utility.trans("078", "Signal = ") + (aCoverVariable & 0xF)); + case 1 -> GT_Utility + .sendChatToPlayer(aPlayer, GT_Utility.trans("079", "Conditional Signal = ") + (aCoverVariable & 0xF)); case 2 -> GT_Utility.sendChatToPlayer( - aPlayer, - GT_Utility.trans("080", "Inverted Conditional Signal = ") + (aCoverVariable & 0xF)); + aPlayer, + GT_Utility.trans("080", "Inverted Conditional Signal = ") + (aCoverVariable & 0xF)); } return aCoverVariable; } @@ -77,7 +75,7 @@ public class GT_Cover_RedstoneSignalizer extends GT_CoverBehavior { @Override public byte getRedstoneInput(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { if (aCoverVariable < 16) { return (byte) (aCoverVariable & 0xF); } diff --git a/src/main/java/gregtech/common/covers/GT_Cover_RedstoneTransmitterExternal.java b/src/main/java/gregtech/common/covers/GT_Cover_RedstoneTransmitterExternal.java index 4f3a8367d3..05374fb096 100644 --- a/src/main/java/gregtech/common/covers/GT_Cover_RedstoneTransmitterExternal.java +++ b/src/main/java/gregtech/common/covers/GT_Cover_RedstoneTransmitterExternal.java @@ -26,7 +26,7 @@ public class GT_Cover_RedstoneTransmitterExternal extends GT_Cover_RedstoneWirel @Override public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - long aTimer) { + long aTimer) { // TODO remove next line after 2.3.0 if (!IControlsWorkCover.makeSureOnlyOne(aSide, aTileEntity)) return aCoverVariable; GregTech_API.sWirelessRedstone.put(aCoverVariable, aInputRedstone); @@ -35,7 +35,7 @@ public class GT_Cover_RedstoneTransmitterExternal extends GT_Cover_RedstoneWirel @Override protected boolean isRedstoneSensitiveImpl(byte aSide, int aCoverID, - ISerializableObject.LegacyCoverData aCoverVariable, ICoverable aTileEntity, long aTimer) { + ISerializableObject.LegacyCoverData aCoverVariable, ICoverable aTileEntity, long aTimer) { return true; } diff --git a/src/main/java/gregtech/common/covers/GT_Cover_RedstoneTransmitterInternal.java b/src/main/java/gregtech/common/covers/GT_Cover_RedstoneTransmitterInternal.java index 42c20e9088..43dbfea1de 100644 --- a/src/main/java/gregtech/common/covers/GT_Cover_RedstoneTransmitterInternal.java +++ b/src/main/java/gregtech/common/covers/GT_Cover_RedstoneTransmitterInternal.java @@ -20,13 +20,13 @@ public class GT_Cover_RedstoneTransmitterInternal extends GT_Cover_RedstoneWirel @Override public boolean isRedstoneSensitive(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - long aTimer) { + long aTimer) { return false; } @Override public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - long aTimer) { + long aTimer) { GregTech_API.sWirelessRedstone.put(aCoverVariable, aTileEntity.getOutputRedstoneSignal(aSide)); return aCoverVariable; } @@ -43,7 +43,7 @@ public class GT_Cover_RedstoneTransmitterInternal extends GT_Cover_RedstoneWirel @Override public boolean manipulatesSidedRedstoneOutput(byte aSide, int aCoverID, int aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return true; } } diff --git a/src/main/java/gregtech/common/covers/GT_Cover_RedstoneWirelessBase.java b/src/main/java/gregtech/common/covers/GT_Cover_RedstoneWirelessBase.java index a2a6ea76c6..f41250ad15 100644 --- a/src/main/java/gregtech/common/covers/GT_Cover_RedstoneWirelessBase.java +++ b/src/main/java/gregtech/common/covers/GT_Cover_RedstoneWirelessBase.java @@ -39,21 +39,20 @@ public abstract class GT_Cover_RedstoneWirelessBase extends GT_CoverBehavior { @Override public boolean onCoverRemoval(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - boolean aForced) { + boolean aForced) { GregTech_API.sWirelessRedstone.put(aCoverVariable, (byte) 0); return true; } @Override protected boolean onCoverRightClickImpl(byte aSide, int aCoverID, - ISerializableObject.LegacyCoverData aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, - float aY, float aZ) { + ISerializableObject.LegacyCoverData aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, + float aY, float aZ) { if (((aX > 0.375D) && (aX < 0.625D)) || ((aSide > 3) && ((aY > 0.375D) && (aY < 0.625D)))) { GregTech_API.sWirelessRedstone.put(aCoverVariable.get(), (byte) 0); aCoverVariable.set( - (aCoverVariable.get() & (PRIVATE_MASK | CHECKBOX_MASK)) - | (((Integer) GT_Utility.stackToInt(aPlayer.inventory.getCurrentItem())).hashCode() - & PUBLIC_MASK)); + (aCoverVariable.get() & (PRIVATE_MASK | CHECKBOX_MASK)) + | (((Integer) GT_Utility.stackToInt(aPlayer.inventory.getCurrentItem())).hashCode() & PUBLIC_MASK)); GT_Utility.sendChatToPlayer(aPlayer, GT_Utility.trans("081", "Frequency: ") + aCoverVariable); return true; } @@ -63,20 +62,19 @@ public abstract class GT_Cover_RedstoneWirelessBase extends GT_CoverBehavior { @Override @SuppressWarnings("deprecation") public boolean onCoverRightclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - EntityPlayer aPlayer, float aX, float aY, float aZ) { + EntityPlayer aPlayer, float aX, float aY, float aZ) { if (((aX > 0.375D) && (aX < 0.625D)) || ((aSide > 3) && ((aY > 0.375D) && (aY < 0.625D)))) { GregTech_API.sWirelessRedstone.put(aCoverVariable, (byte) 0); int val = GT_Utility.stackToInt(aPlayer.inventory.getCurrentItem()) - * (1 + aPlayer.inventory.getCurrentItem() - .getItemDamage()); + * (1 + aPlayer.inventory.getCurrentItem() + .getItemDamage()); aCoverVariable = (aCoverVariable & (PRIVATE_MASK | CHECKBOX_MASK)) | (val & PUBLIC_MASK); aTileEntity.setCoverDataAtSide(aSide, aCoverVariable); - GT_Utility.sendChatToPlayer( - aPlayer, - GT_Utility.trans("081", "Frequency: ") + (aCoverVariable & PUBLIC_MASK)); + GT_Utility + .sendChatToPlayer(aPlayer, GT_Utility.trans("081", "Frequency: ") + (aCoverVariable & PUBLIC_MASK)); return true; } return false; @@ -84,14 +82,14 @@ public abstract class GT_Cover_RedstoneWirelessBase extends GT_CoverBehavior { @Override public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - EntityPlayer aPlayer, float aX, float aY, float aZ) { + EntityPlayer aPlayer, float aX, float aY, float aZ) { if (((aX > 0.375D) && (aX < 0.625D)) - || ((aSide <= 3) || (((aY > 0.375D) && (aY < 0.625D)) || ((((aZ <= 0.375D) || (aZ >= 0.625D))))))) { + || ((aSide <= 3) || (((aY > 0.375D) && (aY < 0.625D)) || ((((aZ <= 0.375D) || (aZ >= 0.625D))))))) { GregTech_API.sWirelessRedstone.put(aCoverVariable, (byte) 0); float[] tCoords = GT_Utility.getClickedFacingCoords(aSide, aX, aY, aZ); short tAdjustVal = switch ((byte) ((byte) (int) (tCoords[0] * 2.0F) - + 2 * (byte) (int) (tCoords[1] * 2.0F))) { + + 2 * (byte) (int) (tCoords[1] * 2.0F))) { case 0 -> -32; case 1 -> 32; case 2 -> -1024; @@ -189,45 +187,35 @@ public abstract class GT_Cover_RedstoneWirelessBase extends GT_CoverBehavior { @SuppressWarnings("PointlessArithmeticExpression") @Override protected void addUIWidgets(ModularWindow.Builder builder) { - builder.widget( + builder + .widget( new CoverDataControllerWidget<>( - this::getCoverData, - this::setCoverData, - GT_Cover_RedstoneWirelessBase.this).addFollower( - new CoverDataFollower_TextFieldWidget<>(), - coverData -> String.valueOf(getFlagFrequency(convert(coverData))), - (coverData, text) -> new ISerializableObject.LegacyCoverData( - (int) MathExpression.parseMathExpression(text) - | getFlagCheckbox(convert(coverData))), - widget -> widget.setOnScrollNumbers() - .setNumbers(0, MAX_CHANNEL) - .setFocusOnGuiOpen(true) - .setPos(spaceX * 0, spaceY * 0 + 2) - .setSize(spaceX * 4 - 3, 12)) - .addFollower( - CoverDataFollower_ToggleButtonWidget.ofCheck(), - coverData -> getFlagCheckbox(convert(coverData)) - > 0, - (coverData, - state) -> new ISerializableObject.LegacyCoverData( - getFlagFrequency( - convert(coverData)) - | (state ? CHECKBOX_MASK - : 0)), - widget -> widget.setPos(spaceX * 0, spaceY * 2)) - .setPos(startX, startY)) - .widget( - new TextWidget(GT_Utility.trans("246", "Frequency")).setDefaultColor(COLOR_TEXT_GRAY.get()) - .setPos( - startX + spaceX * 4, - 4 + startY + spaceY * 0)) - .widget( - new TextWidget(GT_Utility.trans("602", "Use Private Frequency")).setDefaultColor( - COLOR_TEXT_GRAY.get()) - .setPos( - startX + spaceX * 1, - startY + spaceY * 2 - + 4)); + this::getCoverData, + this::setCoverData, + GT_Cover_RedstoneWirelessBase.this).addFollower( + new CoverDataFollower_TextFieldWidget<>(), + coverData -> String.valueOf(getFlagFrequency(convert(coverData))), + (coverData, text) -> new ISerializableObject.LegacyCoverData( + (int) MathExpression.parseMathExpression(text) | getFlagCheckbox(convert(coverData))), + widget -> widget.setOnScrollNumbers() + .setNumbers(0, MAX_CHANNEL) + .setFocusOnGuiOpen(true) + .setPos(spaceX * 0, spaceY * 0 + 2) + .setSize(spaceX * 4 - 3, 12)) + .addFollower( + CoverDataFollower_ToggleButtonWidget.ofCheck(), + coverData -> getFlagCheckbox(convert(coverData)) > 0, + (coverData, state) -> new ISerializableObject.LegacyCoverData( + getFlagFrequency(convert(coverData)) | (state ? CHECKBOX_MASK : 0)), + widget -> widget.setPos(spaceX * 0, spaceY * 2)) + .setPos(startX, startY)) + .widget( + new TextWidget(GT_Utility.trans("246", "Frequency")).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 4, 4 + startY + spaceY * 0)) + .widget( + new TextWidget(GT_Utility.trans("602", "Use Private Frequency")) + .setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 1, startY + spaceY * 2 + 4)); } private int getFlagFrequency(int coverVariable) { diff --git a/src/main/java/gregtech/common/covers/GT_Cover_Screen.java b/src/main/java/gregtech/common/covers/GT_Cover_Screen.java index 8f26c112ae..77d75aa6b9 100644 --- a/src/main/java/gregtech/common/covers/GT_Cover_Screen.java +++ b/src/main/java/gregtech/common/covers/GT_Cover_Screen.java @@ -23,7 +23,7 @@ public class GT_Cover_Screen extends GT_CoverBehavior { @Override public boolean isRedstoneSensitive(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - long aTimer) { + long aTimer) { return false; } @@ -79,25 +79,25 @@ public class GT_Cover_Screen extends GT_CoverBehavior { @Override public boolean manipulatesSidedRedstoneOutput(byte aSide, int aCoverID, int aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return false; } @Override public boolean onCoverRightclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - EntityPlayer aPlayer, float aX, float aY, float aZ) { + EntityPlayer aPlayer, float aX, float aY, float aZ) { return false; } @Override public boolean onCoverRemoval(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - boolean aForced) { + boolean aForced) { return true; } @Override public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - long aTimer) { + long aTimer) { return 0; } } diff --git a/src/main/java/gregtech/common/covers/GT_Cover_Shutter.java b/src/main/java/gregtech/common/covers/GT_Cover_Shutter.java index 1e70efc5b8..e7d2ac1e02 100644 --- a/src/main/java/gregtech/common/covers/GT_Cover_Shutter.java +++ b/src/main/java/gregtech/common/covers/GT_Cover_Shutter.java @@ -33,19 +33,19 @@ public class GT_Cover_Shutter extends GT_CoverBehavior { @Override public boolean isRedstoneSensitive(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - long aTimer) { + long aTimer) { return false; } @Override public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - long aTimer) { + long aTimer) { return aCoverVariable; } @Override public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - EntityPlayer aPlayer, float aX, float aY, float aZ) { + EntityPlayer aPlayer, float aX, float aY, float aZ) { aCoverVariable = (aCoverVariable + (aPlayer.isSneaking() ? -1 : 1)) % 4; if (aCoverVariable < 0) { aCoverVariable = 3; @@ -65,57 +65,57 @@ public class GT_Cover_Shutter extends GT_CoverBehavior { @Override public boolean letsRedstoneGoIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity) { return aCoverVariable >= 2 ? aCoverVariable == 3 - : !(aTileEntity instanceof IMachineProgress) - || (((IMachineProgress) aTileEntity).isAllowedToWork() == (aCoverVariable % 2 == 0)); + : !(aTileEntity instanceof IMachineProgress) + || (((IMachineProgress) aTileEntity).isAllowedToWork() == (aCoverVariable % 2 == 0)); } @Override public boolean letsRedstoneGoOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity) { return aCoverVariable >= 2 ? aCoverVariable == 2 - : !(aTileEntity instanceof IMachineProgress) - || (((IMachineProgress) aTileEntity).isAllowedToWork() == (aCoverVariable % 2 == 0)); + : !(aTileEntity instanceof IMachineProgress) + || (((IMachineProgress) aTileEntity).isAllowedToWork() == (aCoverVariable % 2 == 0)); } @Override public boolean letsEnergyIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity) { return aCoverVariable >= 2 ? aCoverVariable == 3 - : !(aTileEntity instanceof IMachineProgress) - || (((IMachineProgress) aTileEntity).isAllowedToWork() == (aCoverVariable % 2 == 0)); + : !(aTileEntity instanceof IMachineProgress) + || (((IMachineProgress) aTileEntity).isAllowedToWork() == (aCoverVariable % 2 == 0)); } @Override public boolean letsEnergyOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity) { return aCoverVariable >= 2 ? aCoverVariable == 2 - : !(aTileEntity instanceof IMachineProgress) - || ((IMachineProgress) aTileEntity).isAllowedToWork() == (aCoverVariable % 2 == 0); + : !(aTileEntity instanceof IMachineProgress) + || ((IMachineProgress) aTileEntity).isAllowedToWork() == (aCoverVariable % 2 == 0); } @Override public boolean letsFluidIn(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity) { return aCoverVariable >= 2 ? aCoverVariable == 3 - : !(aTileEntity instanceof IMachineProgress) - || ((IMachineProgress) aTileEntity).isAllowedToWork() == (aCoverVariable % 2 == 0); + : !(aTileEntity instanceof IMachineProgress) + || ((IMachineProgress) aTileEntity).isAllowedToWork() == (aCoverVariable % 2 == 0); } @Override public boolean letsFluidOut(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity) { return aCoverVariable >= 2 ? aCoverVariable == 2 - : !(aTileEntity instanceof IMachineProgress) - || ((IMachineProgress) aTileEntity).isAllowedToWork() == (aCoverVariable % 2 == 0); + : !(aTileEntity instanceof IMachineProgress) + || ((IMachineProgress) aTileEntity).isAllowedToWork() == (aCoverVariable % 2 == 0); } @Override public boolean letsItemsIn(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity) { return aCoverVariable >= 2 ? aCoverVariable == 3 - : !(aTileEntity instanceof IMachineProgress) - || ((IMachineProgress) aTileEntity).isAllowedToWork() == (aCoverVariable % 2 == 0); + : !(aTileEntity instanceof IMachineProgress) + || ((IMachineProgress) aTileEntity).isAllowedToWork() == (aCoverVariable % 2 == 0); } @Override public boolean letsItemsOut(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity) { return aCoverVariable >= 2 ? aCoverVariable == 2 - : !(aTileEntity instanceof IMachineProgress) - || ((IMachineProgress) aTileEntity).isAllowedToWork() == (aCoverVariable % 2 == 0); + : !(aTileEntity instanceof IMachineProgress) + || ((IMachineProgress) aTileEntity).isAllowedToWork() == (aCoverVariable % 2 == 0); } @Override @@ -159,71 +159,46 @@ public class GT_Cover_Shutter extends GT_CoverBehavior { @SuppressWarnings("PointlessArithmeticExpression") @Override protected void addUIWidgets(ModularWindow.Builder builder) { - builder.widget( + builder + .widget( new CoverDataControllerWidget.CoverDataIndexedControllerWidget_ToggleButtons<>( - this::getCoverData, - this::setCoverData, - GT_Cover_Shutter.this, - (index, coverData) -> index == convert(coverData), - (index, coverData) -> new ISerializableObject.LegacyCoverData(index)).addToggleButton( - 0, - CoverDataFollower_ToggleButtonWidget.ofCheck(), - widget -> widget.setPos(spaceX * 0, spaceY * 0)) - .addToggleButton( - 1, - CoverDataFollower_ToggleButtonWidget.ofCheck(), - widget -> widget.setPos( - spaceX * 0, - spaceY * 1)) - .addToggleButton( - 2, - CoverDataFollower_ToggleButtonWidget.ofCheck(), - widget -> widget.setPos( - spaceX * 0, - spaceY * 2)) - .addToggleButton( - 3, - CoverDataFollower_ToggleButtonWidget.ofCheck(), - widget -> widget.setPos( - spaceX * 0, - spaceY * 3)) - .setPos( - startX, - startY)) - .widget( - new TextWidget(GT_Utility.trans("082", "Open if work enabled")) - .setDefaultColor( - COLOR_TEXT_GRAY.get()) - .setPos( - 3 + startX - + spaceX * 1, - 4 + startY - + spaceY * 0)) - .widget( - new TextWidget( - GT_Utility.trans("083", "Open if work disabled")) - .setDefaultColor( - COLOR_TEXT_GRAY.get()) - .setPos( - 3 + startX + spaceX * 1, - 4 + startY + spaceY * 1)) - .widget( - new TextWidget(GT_Utility.trans("084", "Only Output allowed")) - .setDefaultColor( - COLOR_TEXT_GRAY.get()) - .setPos( - 3 + startX - + spaceX * 1, - 4 + startY - + spaceY * 2)) - .widget( - new TextWidget(GT_Utility.trans("085", "Only Input allowed")) - .setDefaultColor( - COLOR_TEXT_GRAY.get()) - .setPos( - 3 + startX + spaceX * 1, - 4 + startY - + spaceY * 3)); + this::getCoverData, + this::setCoverData, + GT_Cover_Shutter.this, + (index, coverData) -> index == convert(coverData), + (index, coverData) -> new ISerializableObject.LegacyCoverData(index)) + .addToggleButton( + 0, + CoverDataFollower_ToggleButtonWidget.ofCheck(), + widget -> widget.setPos(spaceX * 0, spaceY * 0)) + .addToggleButton( + 1, + CoverDataFollower_ToggleButtonWidget.ofCheck(), + widget -> widget.setPos(spaceX * 0, spaceY * 1)) + .addToggleButton( + 2, + CoverDataFollower_ToggleButtonWidget.ofCheck(), + widget -> widget.setPos(spaceX * 0, spaceY * 2)) + .addToggleButton( + 3, + CoverDataFollower_ToggleButtonWidget.ofCheck(), + widget -> widget.setPos(spaceX * 0, spaceY * 3)) + .setPos(startX, startY)) + .widget( + new TextWidget(GT_Utility.trans("082", "Open if work enabled")) + .setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(3 + startX + spaceX * 1, 4 + startY + spaceY * 0)) + .widget( + new TextWidget(GT_Utility.trans("083", "Open if work disabled")) + .setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(3 + startX + spaceX * 1, 4 + startY + spaceY * 1)) + .widget( + new TextWidget(GT_Utility.trans("084", "Only Output allowed")) + .setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(3 + startX + spaceX * 1, 4 + startY + spaceY * 2)) + .widget( + new TextWidget(GT_Utility.trans("085", "Only Input allowed")).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(3 + startX + spaceX * 1, 4 + startY + spaceY * 3)); } } } diff --git a/src/main/java/gregtech/common/covers/GT_Cover_SolarPanel.java b/src/main/java/gregtech/common/covers/GT_Cover_SolarPanel.java index 7b41aefcca..702291db78 100644 --- a/src/main/java/gregtech/common/covers/GT_Cover_SolarPanel.java +++ b/src/main/java/gregtech/common/covers/GT_Cover_SolarPanel.java @@ -21,30 +21,29 @@ public class GT_Cover_SolarPanel extends GT_CoverBehavior { @Override public boolean isRedstoneSensitive(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - long aTimer) { + long aTimer) { return false; } @Override public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - long aTimer) { + long aTimer) { if (aSide != 1) return 0; int coverState = aCoverVariable & 0x3; int coverNum = aCoverVariable >> 2; if (aTimer % 100L == 0L) { if (aTileEntity.getWorld() - .isThundering()) { + .isThundering()) { return aTileEntity.getBiome().rainfall > 0.0F && aTileEntity.getSkyAtSide(aSide) - ? Math.min(20, coverNum) << 2 - : coverNum << 2; + ? Math.min(20, coverNum) << 2 + : coverNum << 2; } else { if (aTileEntity.getWorld() - .isRaining() - && aTileEntity.getBiome().rainfall > 0.0F) { // really rains + .isRaining() && aTileEntity.getBiome().rainfall > 0.0F) { // really rains if (aTileEntity.getSkyAtSide(aSide)) coverNum = Math.min(30, coverNum); if (aTileEntity.getWorld().skylightSubtracted >= 4) { if (aTileEntity.getWorld() - .isDaytime()) { + .isDaytime()) { coverState = 2; } else { return coverNum << 2; @@ -52,7 +51,7 @@ public class GT_Cover_SolarPanel extends GT_CoverBehavior { } } else { // not rains if (aTileEntity.getWorld() - .isDaytime()) { + .isDaytime()) { coverState = 1; } else { coverState = 2; @@ -69,8 +68,8 @@ public class GT_Cover_SolarPanel extends GT_CoverBehavior { @Override protected boolean onCoverRightClickImpl(byte aSide, int aCoverID, - ISerializableObject.LegacyCoverData aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, - float aY, float aZ) { + ISerializableObject.LegacyCoverData aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, + float aY, float aZ) { if (aPlayer.capabilities.isCreativeMode) { GT_Utility.sendChatToPlayer(aPlayer, "Cleaned solar panel from " + (aCoverVariable.get() >> 2) + "% dirt"); aCoverVariable.set(aCoverVariable.get() & 0x3); @@ -80,12 +79,11 @@ public class GT_Cover_SolarPanel extends GT_CoverBehavior { ItemStack is = aPlayer.inventory.mainInventory[i]; if (is == null) continue; if (is.getUnlocalizedName() - .equals(new ItemStack(Items.water_bucket).getUnlocalizedName())) { + .equals(new ItemStack(Items.water_bucket).getUnlocalizedName())) { aPlayer.inventory.mainInventory[i] = new ItemStack(Items.bucket); if (aPlayer.inventoryContainer != null) aPlayer.inventoryContainer.detectAndSendChanges(); - GT_Utility.sendChatToPlayer( - aPlayer, - "Cleaned solar panel from " + (aCoverVariable.get() >> 2) + "% dirt"); + GT_Utility + .sendChatToPlayer(aPlayer, "Cleaned solar panel from " + (aCoverVariable.get() >> 2) + "% dirt"); aCoverVariable.set(aCoverVariable.get() & 0x3); return true; } @@ -97,7 +95,7 @@ public class GT_Cover_SolarPanel extends GT_CoverBehavior { @Override @SuppressWarnings("deprecation") public boolean onCoverRightclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - EntityPlayer aPlayer, float aX, float aY, float aZ) { + EntityPlayer aPlayer, float aX, float aY, float aZ) { if (aPlayer.capabilities.isCreativeMode) { GT_Utility.sendChatToPlayer(aPlayer, "Cleaned solar panel from " + (aCoverVariable >> 2) + "% dirt"); aTileEntity.setCoverDataAtSide(aSide, (aCoverVariable & 0x3)); @@ -107,7 +105,7 @@ public class GT_Cover_SolarPanel extends GT_CoverBehavior { ItemStack is = aPlayer.inventory.mainInventory[i]; if (is == null) continue; if (is.getUnlocalizedName() - .equals(new ItemStack(Items.water_bucket).getUnlocalizedName())) { + .equals(new ItemStack(Items.water_bucket).getUnlocalizedName())) { aPlayer.inventory.mainInventory[i] = new ItemStack(Items.bucket); if (aPlayer.inventoryContainer != null) aPlayer.inventoryContainer.detectAndSendChanges(); GT_Utility.sendChatToPlayer(aPlayer, "Cleaned solar panel from " + (aCoverVariable >> 2) + "% dirt"); diff --git a/src/main/java/gregtech/common/covers/GT_Cover_SteamValve.java b/src/main/java/gregtech/common/covers/GT_Cover_SteamValve.java index 0c24e135f1..21c2fa6f63 100644 --- a/src/main/java/gregtech/common/covers/GT_Cover_SteamValve.java +++ b/src/main/java/gregtech/common/covers/GT_Cover_SteamValve.java @@ -22,7 +22,7 @@ public class GT_Cover_SteamValve extends GT_Cover_Pump { @Override public boolean isRedstoneSensitive(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - long aTimer) { + long aTimer) { return false; } diff --git a/src/main/java/gregtech/common/covers/GT_Cover_Vent.java b/src/main/java/gregtech/common/covers/GT_Cover_Vent.java index 39eeda2ba2..c179f5843b 100644 --- a/src/main/java/gregtech/common/covers/GT_Cover_Vent.java +++ b/src/main/java/gregtech/common/covers/GT_Cover_Vent.java @@ -29,13 +29,13 @@ public class GT_Cover_Vent extends GT_CoverBehavior { @Override public boolean isRedstoneSensitive(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - long aTimer) { + long aTimer) { return false; } @Override public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, - long aTimer) { + long aTimer) { if (aSide == SIDE_UNKNOWN) return 0; int ret = 0; if (aTileEntity instanceof IFluidHandler) { @@ -63,7 +63,7 @@ public class GT_Cover_Vent extends GT_CoverBehavior { final int offsetZ = aTileEntity.getOffsetZ(aSide, 1); final World world = aTileEntity.getWorld(); if (aTileEntity.hasThingsToDo() && aCoverVariable != aTileEntity.getProgress() - && !GT_Utility.hasBlockHitBox(world, offsetX, offsetY, offsetZ)) { + && !GT_Utility.hasBlockHitBox(world, offsetX, offsetY, offsetZ)) { aTileEntity.increaseProgress(this.mEfficiency); } return aTileEntity.getProgress(); diff --git a/src/main/java/gregtech/common/covers/redstone/GT_Cover_AdvancedRedstoneReceiverBase.java b/src/main/java/gregtech/common/covers/redstone/GT_Cover_AdvancedRedstoneReceiverBase.java index bebedffaca..afd0f67b37 100644 --- a/src/main/java/gregtech/common/covers/redstone/GT_Cover_AdvancedRedstoneReceiverBase.java +++ b/src/main/java/gregtech/common/covers/redstone/GT_Cover_AdvancedRedstoneReceiverBase.java @@ -23,7 +23,7 @@ import gregtech.common.gui.modularui.widget.CoverDataFollower_ToggleButtonWidget import io.netty.buffer.ByteBuf; public abstract class GT_Cover_AdvancedRedstoneReceiverBase - extends GT_Cover_AdvancedWirelessRedstoneBase { + extends GT_Cover_AdvancedWirelessRedstoneBase { public GT_Cover_AdvancedRedstoneReceiverBase(ITexture coverTexture) { super(ReceiverData.class, coverTexture); @@ -71,10 +71,8 @@ public abstract class GT_Cover_AdvancedRedstoneReceiverBase protected void addUIWidgets(ModularWindow.Builder builder) { super.addUIWidgets(builder); builder.widget( - new TextWidget(GT_Utility.trans("335", "Gate Mode")).setDefaultColor(COLOR_TEXT_GRAY.get()) - .setPos( - startX + spaceX * 5, - 4 + startY + spaceY * 2)); + new TextWidget(GT_Utility.trans("335", "Gate Mode")).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 5, 4 + startY + spaceY * 2)); } @SuppressWarnings("PointlessArithmeticExpression") @@ -82,59 +80,59 @@ public abstract class GT_Cover_AdvancedRedstoneReceiverBase protected void addUIForDataController(CoverDataControllerWidget controller) { super.addUIForDataController(controller); controller.addFollower( + CoverDataFollower_ToggleButtonWidget.ofDisableable(), + coverData -> coverData.mode == GateMode.AND, + (coverData, state) -> { + coverData.mode = GateMode.AND; + return coverData; + }, + widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_GATE_AND) + .addTooltip(GT_Utility.trans("331", "AND Gate")) + .setPos(spaceX * 0, spaceY * 2)) + .addFollower( CoverDataFollower_ToggleButtonWidget.ofDisableable(), - coverData -> coverData.mode == GateMode.AND, + coverData -> coverData.mode == GateMode.NAND, (coverData, state) -> { - coverData.mode = GateMode.AND; + coverData.mode = GateMode.NAND; return coverData; }, - widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_GATE_AND) - .addTooltip(GT_Utility.trans("331", "AND Gate")) - .setPos(spaceX * 0, spaceY * 2)) - .addFollower( - CoverDataFollower_ToggleButtonWidget.ofDisableable(), - coverData -> coverData.mode == GateMode.NAND, - (coverData, state) -> { - coverData.mode = GateMode.NAND; - return coverData; - }, - widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_GATE_NAND) - .addTooltip(GT_Utility.trans("332", "NAND Gate")) - .setPos(spaceX * 1, spaceY * 2)) - .addFollower( - CoverDataFollower_ToggleButtonWidget.ofDisableable(), - coverData -> coverData.mode == GateMode.OR, - (coverData, state) -> { - coverData.mode = GateMode.OR; - return coverData; - }, - widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_GATE_OR) - .addTooltip(GT_Utility.trans("333", "OR Gate")) - .setPos(spaceX * 2, spaceY * 2)) - .addFollower( - CoverDataFollower_ToggleButtonWidget.ofDisableable(), - coverData -> coverData.mode == GateMode.NOR, - (coverData, state) -> { - coverData.mode = GateMode.NOR; - return coverData; - }, - widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_GATE_NOR) - .addTooltip(GT_Utility.trans("334", "NOR Gate")) - .setPos(spaceX * 3, spaceY * 2)) - .addFollower( - CoverDataFollower_ToggleButtonWidget.ofDisableable(), - coverData -> coverData.mode == GateMode.SINGLE_SOURCE, - (coverData, state) -> { - coverData.mode = GateMode.SINGLE_SOURCE; - return coverData; - }, - widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_ANALOG) - .addTooltips( - Arrays.asList( - "ANALOG Mode", - "Only use this mode with ONE transmitter in total,", - "no logic involved")) - .setPos(spaceX * 4, spaceY * 2)); + widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_GATE_NAND) + .addTooltip(GT_Utility.trans("332", "NAND Gate")) + .setPos(spaceX * 1, spaceY * 2)) + .addFollower( + CoverDataFollower_ToggleButtonWidget.ofDisableable(), + coverData -> coverData.mode == GateMode.OR, + (coverData, state) -> { + coverData.mode = GateMode.OR; + return coverData; + }, + widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_GATE_OR) + .addTooltip(GT_Utility.trans("333", "OR Gate")) + .setPos(spaceX * 2, spaceY * 2)) + .addFollower( + CoverDataFollower_ToggleButtonWidget.ofDisableable(), + coverData -> coverData.mode == GateMode.NOR, + (coverData, state) -> { + coverData.mode = GateMode.NOR; + return coverData; + }, + widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_GATE_NOR) + .addTooltip(GT_Utility.trans("334", "NOR Gate")) + .setPos(spaceX * 3, spaceY * 2)) + .addFollower( + CoverDataFollower_ToggleButtonWidget.ofDisableable(), + coverData -> coverData.mode == GateMode.SINGLE_SOURCE, + (coverData, state) -> { + coverData.mode = GateMode.SINGLE_SOURCE; + return coverData; + }, + widget -> widget.setStaticTexture(GT_UITextures.OVERLAY_BUTTON_ANALOG) + .addTooltips( + Arrays.asList( + "ANALOG Mode", + "Only use this mode with ONE transmitter in total,", + "no logic involved")) + .setPos(spaceX * 4, spaceY * 2)); } } diff --git a/src/main/java/gregtech/common/covers/redstone/GT_Cover_AdvancedRedstoneReceiverExternal.java b/src/main/java/gregtech/common/covers/redstone/GT_Cover_AdvancedRedstoneReceiverExternal.java index caf4b6bdcd..1e1c992bb1 100644 --- a/src/main/java/gregtech/common/covers/redstone/GT_Cover_AdvancedRedstoneReceiverExternal.java +++ b/src/main/java/gregtech/common/covers/redstone/GT_Cover_AdvancedRedstoneReceiverExternal.java @@ -11,23 +11,23 @@ public class GT_Cover_AdvancedRedstoneReceiverExternal extends GT_Cover_Advanced @Override public ReceiverData doCoverThingsImpl(byte aSide, byte aInputRedstone, int aCoverID, ReceiverData aCoverVariable, - ICoverable aTileEntity, long aTimer) { + ICoverable aTileEntity, long aTimer) { aTileEntity.setOutputRedstoneSignal( - aSide, - getSignalAt(aCoverVariable.getUuid(), aCoverVariable.getFrequency(), aCoverVariable.getGateMode())); + aSide, + getSignalAt(aCoverVariable.getUuid(), aCoverVariable.getFrequency(), aCoverVariable.getGateMode())); return aCoverVariable; } @Override protected boolean isRedstoneSensitiveImpl(byte aSide, int aCoverID, ReceiverData aCoverVariable, - ICoverable aTileEntity, long aTimer) { + ICoverable aTileEntity, long aTimer) { return false; } @Override protected boolean manipulatesSidedRedstoneOutputImpl(byte aSide, int aCoverID, ReceiverData aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return true; } } diff --git a/src/main/java/gregtech/common/covers/redstone/GT_Cover_AdvancedRedstoneReceiverInternal.java b/src/main/java/gregtech/common/covers/redstone/GT_Cover_AdvancedRedstoneReceiverInternal.java index 0ceaaeb887..899a97dca7 100644 --- a/src/main/java/gregtech/common/covers/redstone/GT_Cover_AdvancedRedstoneReceiverInternal.java +++ b/src/main/java/gregtech/common/covers/redstone/GT_Cover_AdvancedRedstoneReceiverInternal.java @@ -12,7 +12,7 @@ public class GT_Cover_AdvancedRedstoneReceiverInternal extends GT_Cover_Advanced @Override public ReceiverData doCoverThingsImpl(byte aSide, byte aInputRedstone, int aCoverID, ReceiverData aCoverVariable, - ICoverable aTileEntity, long aTimer) { + ICoverable aTileEntity, long aTimer) { if (aTileEntity instanceof IMachineProgress machine) { if (getRedstoneInput(aSide, aInputRedstone, aCoverID, aCoverVariable, aTileEntity) > 0) { machine.enableWorking(); @@ -28,13 +28,13 @@ public class GT_Cover_AdvancedRedstoneReceiverInternal extends GT_Cover_Advanced @Override protected byte getRedstoneInputImpl(byte aSide, byte aInputRedstone, int aCoverID, ReceiverData aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return getSignalAt(aCoverVariable.getUuid(), aCoverVariable.getFrequency(), aCoverVariable.getGateMode()); } @Override protected boolean isRedstoneSensitiveImpl(byte aSide, int aCoverID, ReceiverData aCoverVariable, - ICoverable aTileEntity, long aTimer) { + ICoverable aTileEntity, long aTimer) { return true; } } diff --git a/src/main/java/gregtech/common/covers/redstone/GT_Cover_AdvancedRedstoneTransmitterBase.java b/src/main/java/gregtech/common/covers/redstone/GT_Cover_AdvancedRedstoneTransmitterBase.java index e74dffb102..237635eb7f 100644 --- a/src/main/java/gregtech/common/covers/redstone/GT_Cover_AdvancedRedstoneTransmitterBase.java +++ b/src/main/java/gregtech/common/covers/redstone/GT_Cover_AdvancedRedstoneTransmitterBase.java @@ -24,7 +24,7 @@ import gregtech.common.gui.modularui.widget.CoverDataFollower_ToggleButtonWidget import io.netty.buffer.ByteBuf; public abstract class GT_Cover_AdvancedRedstoneTransmitterBase - extends GT_Cover_AdvancedWirelessRedstoneBase { + extends GT_Cover_AdvancedWirelessRedstoneBase { public GT_Cover_AdvancedRedstoneTransmitterBase(Class typeToken, ITexture coverTexture) { super(typeToken, coverTexture); @@ -37,33 +37,33 @@ public abstract class GT_Cover_AdvancedRedstoneTransmitterBase controller) { super.addUIForDataController(controller); controller.addFollower( - CoverDataFollower_ToggleButtonWidget.ofRedstone(), - coverData -> coverData.invert, - (coverData, state) -> { - coverData.invert = state; - return coverData; - }, - widget -> widget.addTooltip(0, GT_Utility.trans("NORMAL", "Normal")) - .addTooltip(1, GT_Utility.trans("INVERTED", "Inverted")) - .setPos(spaceX * 9, spaceY * getButtonRow())); + CoverDataFollower_ToggleButtonWidget.ofRedstone(), + coverData -> coverData.invert, + (coverData, state) -> { + coverData.invert = state; + return coverData; + }, + widget -> widget.addTooltip(0, GT_Utility.trans("NORMAL", "Normal")) + .addTooltip(1, GT_Utility.trans("INVERTED", "Inverted")) + .setPos(spaceX * 9, spaceY * getButtonRow())); } } } diff --git a/src/main/java/gregtech/common/covers/redstone/GT_Cover_AdvancedRedstoneTransmitterExternal.java b/src/main/java/gregtech/common/covers/redstone/GT_Cover_AdvancedRedstoneTransmitterExternal.java index 52392b5f84..c693610318 100644 --- a/src/main/java/gregtech/common/covers/redstone/GT_Cover_AdvancedRedstoneTransmitterExternal.java +++ b/src/main/java/gregtech/common/covers/redstone/GT_Cover_AdvancedRedstoneTransmitterExternal.java @@ -4,7 +4,7 @@ import gregtech.api.interfaces.ITexture; import gregtech.api.interfaces.tileentity.ICoverable; public class GT_Cover_AdvancedRedstoneTransmitterExternal - extends GT_Cover_AdvancedRedstoneTransmitterBase { + extends GT_Cover_AdvancedRedstoneTransmitterBase { public GT_Cover_AdvancedRedstoneTransmitterExternal(ITexture coverTexture) { super(TransmitterData.class, coverTexture); @@ -22,7 +22,7 @@ public class GT_Cover_AdvancedRedstoneTransmitterExternal @Override public TransmitterData doCoverThingsImpl(byte aSide, byte aInputRedstone, int aCoverID, - TransmitterData aCoverVariable, ICoverable aTileEntity, long aTimer) { + TransmitterData aCoverVariable, ICoverable aTileEntity, long aTimer) { byte outputRedstone = aInputRedstone; if (aCoverVariable.isInvert()) { if (outputRedstone > 0) outputRedstone = 0; @@ -37,13 +37,13 @@ public class GT_Cover_AdvancedRedstoneTransmitterExternal @Override protected boolean isRedstoneSensitiveImpl(byte aSide, int aCoverID, TransmitterData aCoverVariable, - ICoverable aTileEntity, long aTimer) { + ICoverable aTileEntity, long aTimer) { return true; } @Override public boolean letsRedstoneGoInImpl(byte aSide, int aCoverID, TransmitterData aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return true; } } diff --git a/src/main/java/gregtech/common/covers/redstone/GT_Cover_AdvancedRedstoneTransmitterInternal.java b/src/main/java/gregtech/common/covers/redstone/GT_Cover_AdvancedRedstoneTransmitterInternal.java index 8cd288f8e2..353a579680 100644 --- a/src/main/java/gregtech/common/covers/redstone/GT_Cover_AdvancedRedstoneTransmitterInternal.java +++ b/src/main/java/gregtech/common/covers/redstone/GT_Cover_AdvancedRedstoneTransmitterInternal.java @@ -4,7 +4,7 @@ import gregtech.api.interfaces.ITexture; import gregtech.api.interfaces.tileentity.ICoverable; public class GT_Cover_AdvancedRedstoneTransmitterInternal - extends GT_Cover_AdvancedRedstoneTransmitterBase { + extends GT_Cover_AdvancedRedstoneTransmitterBase { public GT_Cover_AdvancedRedstoneTransmitterInternal(ITexture coverTexture) { super(TransmitterData.class, coverTexture); @@ -22,7 +22,7 @@ public class GT_Cover_AdvancedRedstoneTransmitterInternal @Override public TransmitterData doCoverThingsImpl(byte aSide, byte aInputRedstone, int aCoverID, - TransmitterData aCoverVariable, ICoverable aTileEntity, long aTimer) { + TransmitterData aCoverVariable, ICoverable aTileEntity, long aTimer) { byte outputRedstone = aTileEntity.getOutputRedstoneSignal(aSide); if (aCoverVariable.isInvert()) { if (outputRedstone > 0) outputRedstone = 0; @@ -36,13 +36,13 @@ public class GT_Cover_AdvancedRedstoneTransmitterInternal @Override public boolean letsRedstoneGoOutImpl(byte aSide, int aCoverID, TransmitterData aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return true; } @Override protected boolean manipulatesSidedRedstoneOutputImpl(byte aSide, int aCoverID, TransmitterData aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return true; } } diff --git a/src/main/java/gregtech/common/covers/redstone/GT_Cover_AdvancedWirelessRedstoneBase.java b/src/main/java/gregtech/common/covers/redstone/GT_Cover_AdvancedWirelessRedstoneBase.java index fecb188214..843c7ab5e2 100644 --- a/src/main/java/gregtech/common/covers/redstone/GT_Cover_AdvancedWirelessRedstoneBase.java +++ b/src/main/java/gregtech/common/covers/redstone/GT_Cover_AdvancedWirelessRedstoneBase.java @@ -29,7 +29,7 @@ import gregtech.common.gui.modularui.widget.CoverDataFollower_ToggleButtonWidget import io.netty.buffer.ByteBuf; public abstract class GT_Cover_AdvancedWirelessRedstoneBase - extends GT_CoverBehaviorBase { + extends GT_CoverBehaviorBase { public GT_Cover_AdvancedWirelessRedstoneBase(Class typeToken, ITexture coverTexture) { super(typeToken, coverTexture); @@ -45,36 +45,36 @@ public abstract class GT_Cover_AdvancedWirelessRedstoneBase { return (byte) (signals.values() - .stream() - .map(signal -> signal > 0) - .reduce(true, (signalA, signalB) -> signalA && signalB) ? 15 : 0); + .stream() + .map(signal -> signal > 0) + .reduce(true, (signalA, signalB) -> signalA && signalB) ? 15 : 0); } case NAND -> { return (byte) (signals.values() - .stream() - .map(signal -> signal > 0) - .reduce(true, (signalA, signalB) -> signalA && signalB) ? 0 : 15); + .stream() + .map(signal -> signal > 0) + .reduce(true, (signalA, signalB) -> signalA && signalB) ? 0 : 15); } case OR -> { return (byte) (signals.values() - .stream() - .map(signal -> signal > 0) - .reduce(false, (signalA, signalB) -> signalA || signalB) ? 15 : 0); + .stream() + .map(signal -> signal > 0) + .reduce(false, (signalA, signalB) -> signalA || signalB) ? 15 : 0); } case NOR -> { return (byte) (signals.values() - .stream() - .map(signal -> signal > 0) - .reduce(false, (signalA, signalB) -> signalA || signalB) ? 0 : 15); + .stream() + .map(signal -> signal > 0) + .reduce(false, (signalA, signalB) -> signalA || signalB) ? 0 : 15); } case SINGLE_SOURCE -> { if (signals.values() - .isEmpty()) { + .isEmpty()) { return 0; } return signals.values() - .iterator() - .next(); + .iterator() + .next(); } default -> { return 0; @@ -92,9 +92,8 @@ public abstract class GT_Cover_AdvancedWirelessRedstoneBase> frequencies = GregTech_API.sAdvancedWirelessRedstone.computeIfAbsent( - String.valueOf(uuid), - k -> new ConcurrentHashMap<>()); + Map> frequencies = GregTech_API.sAdvancedWirelessRedstone + .computeIfAbsent(String.valueOf(uuid), k -> new ConcurrentHashMap<>()); Map signals = frequencies.computeIfAbsent(frequency, k -> new ConcurrentHashMap<>()); signals.put(hash, value); } @@ -105,7 +104,7 @@ public abstract class GT_Cover_AdvancedWirelessRedstoneBase dataController = new CoverDataControllerWidget<>( - this::getCoverData, - this::setCoverData, - GT_Cover_AdvancedWirelessRedstoneBase.this); + this::getCoverData, + this::setCoverData, + GT_Cover_AdvancedWirelessRedstoneBase.this); dataController.setPos(startX, startY); addUIForDataController(dataController); builder.widget(dataController) - .widget( - new TextWidget(GT_Utility.trans("246", "Frequency")).setDefaultColor(COLOR_TEXT_GRAY.get()) - .setPos( - startX + spaceX * 5, - 4 + startY - + spaceY * getFrequencyRow())) - .widget( - new TextWidget( - GT_Utility.trans("602", "Use Private Frequency")) - .setDefaultColor( - COLOR_TEXT_GRAY.get()) - .setPos( - startX + spaceX - * privateExtraColumn, - 4 + startY - + spaceY * getButtonRow())); + .widget( + new TextWidget(GT_Utility.trans("246", "Frequency")).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 5, 4 + startY + spaceY * getFrequencyRow())) + .widget( + new TextWidget(GT_Utility.trans("602", "Use Private Frequency")) + .setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * privateExtraColumn, 4 + startY + spaceY * getButtonRow())); } protected void addUIForDataController(CoverDataControllerWidget controller) { controller.addFollower( - new CoverDataFollower_TextFieldWidget<>(), - coverData -> String.valueOf(coverData.frequency), + new CoverDataFollower_TextFieldWidget<>(), + coverData -> String.valueOf(coverData.frequency), + (coverData, state) -> { + coverData.frequency = (int) MathExpression.parseMathExpression(state); + return coverData; + }, + widget -> widget.setOnScrollNumbers() + .setNumbers(0, Integer.MAX_VALUE) + .setFocusOnGuiOpen(true) + .setPos(1, 2 + spaceY * getFrequencyRow()) + .setSize(spaceX * 5 - 4, 12)) + .addFollower( + CoverDataFollower_ToggleButtonWidget.ofCheck(), + coverData -> coverData.uuid != null, (coverData, state) -> { - coverData.frequency = (int) MathExpression.parseMathExpression(state); + if (state) { + coverData.uuid = getUIBuildContext().getPlayer() + .getUniqueID(); + } else { + coverData.uuid = null; + } return coverData; }, - widget -> widget.setOnScrollNumbers() - .setNumbers(0, Integer.MAX_VALUE) - .setFocusOnGuiOpen(true) - .setPos(1, 2 + spaceY * getFrequencyRow()) - .setSize(spaceX * 5 - 4, 12)) - .addFollower( - CoverDataFollower_ToggleButtonWidget.ofCheck(), - coverData -> coverData.uuid != null, - (coverData, state) -> { - if (state) { - coverData.uuid = getUIBuildContext().getPlayer() - .getUniqueID(); - } else { - coverData.uuid = null; - } - return coverData; - }, - widget -> widget.setPos(0, spaceY * getButtonRow())); + widget -> widget.setPos(0, spaceY * getButtonRow())); } protected abstract int getFrequencyRow(); diff --git a/src/main/java/gregtech/common/covers/redstone/GT_Cover_WirelessFluidDetector.java b/src/main/java/gregtech/common/covers/redstone/GT_Cover_WirelessFluidDetector.java index af1afbe18d..f580877dea 100644 --- a/src/main/java/gregtech/common/covers/redstone/GT_Cover_WirelessFluidDetector.java +++ b/src/main/java/gregtech/common/covers/redstone/GT_Cover_WirelessFluidDetector.java @@ -24,7 +24,7 @@ import gregtech.common.gui.modularui.widget.CoverDataFollower_TextFieldWidget; import io.netty.buffer.ByteBuf; public class GT_Cover_WirelessFluidDetector - extends GT_Cover_AdvancedRedstoneTransmitterBase { + extends GT_Cover_AdvancedRedstoneTransmitterBase { public GT_Cover_WirelessFluidDetector(ITexture coverTexture) { super(FluidTransmitterData.class, coverTexture); @@ -42,11 +42,9 @@ public class GT_Cover_WirelessFluidDetector @Override public FluidTransmitterData doCoverThingsImpl(byte aSide, byte aInputRedstone, int aCoverID, - FluidTransmitterData aCoverVariable, ICoverable aTileEntity, long aTimer) { - byte signal = GT_Cover_LiquidMeter.computeSignalBasedOnFluid( - aTileEntity, - aCoverVariable.invert, - aCoverVariable.threshold); + FluidTransmitterData aCoverVariable, ICoverable aTileEntity, long aTimer) { + byte signal = GT_Cover_LiquidMeter + .computeSignalBasedOnFluid(aTileEntity, aCoverVariable.invert, aCoverVariable.threshold); long hash = hashCoverCoords(aTileEntity, aSide); setSignalAt(aCoverVariable.getUuid(), aCoverVariable.getFrequency(), hash, signal); @@ -55,13 +53,13 @@ public class GT_Cover_WirelessFluidDetector @Override public boolean letsRedstoneGoOutImpl(byte aSide, int aCoverID, FluidTransmitterData aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return true; } @Override protected boolean manipulatesSidedRedstoneOutputImpl(byte aSide, int aCoverID, FluidTransmitterData aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return true; } @@ -146,24 +144,24 @@ public class GT_Cover_WirelessFluidDetector protected void addUIWidgets(ModularWindow.Builder builder) { super.addUIWidgets(builder); builder.widget( - new TextWidget(GT_Utility.trans("222", "Fluid threshold")).setDefaultColor(COLOR_TEXT_GRAY.get()) - .setPos(startX + spaceX * 5, 4 + startY)); + new TextWidget(GT_Utility.trans("222", "Fluid threshold")).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 5, 4 + startY)); } @Override protected void addUIForDataController(CoverDataControllerWidget controller) { super.addUIForDataController(controller); controller.addFollower( - new CoverDataFollower_TextFieldWidget<>(), - coverData -> String.valueOf(coverData.threshold), - (coverData, state) -> { - coverData.threshold = (int) MathExpression.parseMathExpression(state); - return coverData; - }, - widget -> widget.setOnScrollNumbers() - .setNumbers(0, Integer.MAX_VALUE) - .setPos(1, 2) - .setSize(spaceX * 5 - 4, 12)); + new CoverDataFollower_TextFieldWidget<>(), + coverData -> String.valueOf(coverData.threshold), + (coverData, state) -> { + coverData.threshold = (int) MathExpression.parseMathExpression(state); + return coverData; + }, + widget -> widget.setOnScrollNumbers() + .setNumbers(0, Integer.MAX_VALUE) + .setPos(1, 2) + .setSize(spaceX * 5 - 4, 12)); } } } diff --git a/src/main/java/gregtech/common/covers/redstone/GT_Cover_WirelessItemDetector.java b/src/main/java/gregtech/common/covers/redstone/GT_Cover_WirelessItemDetector.java index 9c1e9b2c5f..428b9b636d 100644 --- a/src/main/java/gregtech/common/covers/redstone/GT_Cover_WirelessItemDetector.java +++ b/src/main/java/gregtech/common/covers/redstone/GT_Cover_WirelessItemDetector.java @@ -32,7 +32,7 @@ import gregtech.common.tileentities.storage.GT_MetaTileEntity_DigitalChestBase; import io.netty.buffer.ByteBuf; public class GT_Cover_WirelessItemDetector - extends GT_Cover_AdvancedRedstoneTransmitterBase { + extends GT_Cover_AdvancedRedstoneTransmitterBase { public GT_Cover_WirelessItemDetector(ITexture coverTexture) { super(ItemTransmitterData.class, coverTexture); @@ -50,13 +50,13 @@ public class GT_Cover_WirelessItemDetector @Override public ItemTransmitterData doCoverThingsImpl(byte aSide, byte aInputRedstone, int aCoverID, - ItemTransmitterData aCoverVariable, ICoverable aTileEntity, long aTimer) { + ItemTransmitterData aCoverVariable, ICoverable aTileEntity, long aTimer) { byte signal = GT_Cover_ItemMeter.computeSignalBasedOnItems( - aTileEntity, - aCoverVariable.invert, - aCoverVariable.threshold, - aCoverVariable.slot, - aSide); + aTileEntity, + aCoverVariable.invert, + aCoverVariable.threshold, + aCoverVariable.slot, + aSide); long hash = hashCoverCoords(aTileEntity, aSide); setSignalAt(aCoverVariable.getUuid(), aCoverVariable.getFrequency(), hash, signal); @@ -65,13 +65,13 @@ public class GT_Cover_WirelessItemDetector @Override public boolean letsRedstoneGoOutImpl(byte aSide, int aCoverID, ItemTransmitterData aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return true; } @Override protected boolean manipulatesSidedRedstoneOutputImpl(byte aSide, int aCoverID, ItemTransmitterData aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return true; } @@ -174,64 +174,56 @@ public class GT_Cover_WirelessItemDetector maxSlot = getMaxSlot(); super.addUIWidgets(builder); builder.widget( - new ItemWatcherSlotWidget().setGetter(this::getTargetItem) - .setPos(startX + spaceX * 4 - 1, startY + spaceY * 3)) - .widget( - new TextWidget(GT_Utility.trans("221", "Item threshold")) - .setDefaultColor( - COLOR_TEXT_GRAY.get()) - .setPos( - startX + spaceX * 5, - 4 + startY + spaceY * 2)) - .widget( - new TextWidget(GT_Utility.trans("254.0", "Detect Slot")) - .setDefaultColor( - COLOR_TEXT_GRAY.get()) - .setPos( - startX + spaceX * 5, - 4 + startY + spaceY * 3)); + new ItemWatcherSlotWidget().setGetter(this::getTargetItem) + .setPos(startX + spaceX * 4 - 1, startY + spaceY * 3)) + .widget( + new TextWidget(GT_Utility.trans("221", "Item threshold")).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 5, 4 + startY + spaceY * 2)) + .widget( + new TextWidget(GT_Utility.trans("254.0", "Detect Slot")).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * 5, 4 + startY + spaceY * 3)); } @Override protected void addUIForDataController(CoverDataControllerWidget controller) { super.addUIForDataController(controller); controller.addFollower( + new CoverDataFollower_TextFieldWidget<>(), + coverData -> String.valueOf(coverData.threshold), + (coverData, state) -> { + coverData.threshold = (int) MathExpression.parseMathExpression(state); + return coverData; + }, + widget -> widget.setOnScrollNumbers(1, 10, 64) + .setNumbers(() -> 0, this::getMaxItemCount) + .setPos(1, 2 + spaceY * 2) + .setSize(spaceX * 5 - 4, 12)) + .addFollower( new CoverDataFollower_TextFieldWidget<>(), - coverData -> String.valueOf(coverData.threshold), + coverData -> getSlotTextFieldContent(coverData.slot), (coverData, state) -> { - coverData.threshold = (int) MathExpression.parseMathExpression(state); + coverData.slot = getIntFromText(state); return coverData; }, - widget -> widget.setOnScrollNumbers(1, 10, 64) - .setNumbers(() -> 0, this::getMaxItemCount) - .setPos(1, 2 + spaceY * 2) - .setSize(spaceX * 5 - 4, 12)) - .addFollower( - new CoverDataFollower_TextFieldWidget<>(), - coverData -> getSlotTextFieldContent(coverData.slot), - (coverData, state) -> { - coverData.slot = getIntFromText(state); - return coverData; - }, - widget -> widget.setOnScrollText() - .setValidator(val -> { - final int valSlot = getIntFromText(val); - if (valSlot > -1) { - return TextFieldWidget.format.format(Math.min(valSlot, maxSlot)); - } else { - return ALL_TEXT; - } - }) - .setPattern(BaseTextFieldWidget.NATURAL_NUMS) - .setPos(1, 2 + spaceY * 3) - .setSize(spaceX * 4 - 8, 12)); + widget -> widget.setOnScrollText() + .setValidator(val -> { + final int valSlot = getIntFromText(val); + if (valSlot > -1) { + return TextFieldWidget.format.format(Math.min(valSlot, maxSlot)); + } else { + return ALL_TEXT; + } + }) + .setPattern(BaseTextFieldWidget.NATURAL_NUMS) + .setPos(1, 2 + spaceY * 3) + .setSize(spaceX * 4 - 8, 12)); } private int getMaxSlot() { final ICoverable tile = getUIBuildContext().getTile(); if (tile instanceof TileEntity && !tile.isDead() - && tile instanceof IGregTechTileEntity - && !(((IGregTechTileEntity) tile).getMetaTileEntity() instanceof GT_MetaTileEntity_DigitalChestBase)) { + && tile instanceof IGregTechTileEntity + && !(((IGregTechTileEntity) tile).getMetaTileEntity() instanceof GT_MetaTileEntity_DigitalChestBase)) { return tile.getSizeInventory() - 1; } else { return -1; @@ -258,9 +250,9 @@ public class GT_Cover_WirelessItemDetector final ICoverable tile = getUIBuildContext().getTile(); final ItemTransmitterData coverVariable = getCoverData(); if (coverVariable != null && coverVariable.slot >= 0 - && tile instanceof TileEntity - && !tile.isDead() - && tile.getSizeInventory() >= coverVariable.slot) { + && tile instanceof TileEntity + && !tile.isDead() + && tile.getSizeInventory() >= coverVariable.slot) { return tile.getStackInSlot(coverVariable.slot); } else { return null; diff --git a/src/main/java/gregtech/common/covers/redstone/GT_Cover_WirelessMaintenanceDetector.java b/src/main/java/gregtech/common/covers/redstone/GT_Cover_WirelessMaintenanceDetector.java index d567ea0ae5..6179b8084c 100644 --- a/src/main/java/gregtech/common/covers/redstone/GT_Cover_WirelessMaintenanceDetector.java +++ b/src/main/java/gregtech/common/covers/redstone/GT_Cover_WirelessMaintenanceDetector.java @@ -27,8 +27,8 @@ import gregtech.common.gui.modularui.widget.CoverDataControllerWidget; import gregtech.common.gui.modularui.widget.CoverDataFollower_ToggleButtonWidget; import io.netty.buffer.ByteBuf; -public class GT_Cover_WirelessMaintenanceDetector extends - GT_Cover_AdvancedRedstoneTransmitterBase { +public class GT_Cover_WirelessMaintenanceDetector + extends GT_Cover_AdvancedRedstoneTransmitterBase { public GT_Cover_WirelessMaintenanceDetector(ITexture coverTexture) { super(MaintenanceTransmitterData.class, coverTexture); @@ -45,7 +45,7 @@ public class GT_Cover_WirelessMaintenanceDetector extends } private static byte computeSignalBasedOnMaintenance(MaintenanceTransmitterData coverVariable, - ICoverable tileEntity) { + ICoverable tileEntity) { boolean signal = false; if (tileEntity instanceof IGregTechTileEntity) { @@ -57,7 +57,7 @@ public class GT_Cover_WirelessMaintenanceDetector extends switch (coverVariable.mode) { case NO_ISSUE -> signal = ideal == real; case ONE_ISSUE, TWO_ISSUES, THREE_ISSUES, FOUR_ISSUES, FIVE_ISSUES -> signal = ideal - real - >= coverVariable.mode.ordinal(); + >= coverVariable.mode.ordinal(); case ROTOR_80, ROTOR_100 -> { ItemStack rotor = multiTE.getRealInventory()[1]; if (GT_Cover_NeedMaintainance.isRotor(rotor)) { @@ -68,9 +68,9 @@ public class GT_Cover_WirelessMaintenanceDetector extends signal = current >= max * 8 / 10; } else { long expectedDamage = Math.round( - Math.min( - (double) multiTE.mEUt / multiTE.damageFactorLow, - Math.pow(multiTE.mEUt, multiTE.damageFactorHigh))); + Math.min( + (double) multiTE.mEUt / multiTE.damageFactorLow, + Math.pow(multiTE.mEUt, multiTE.damageFactorHigh))); signal = current + expectedDamage * 2 >= max; } } else { @@ -90,7 +90,7 @@ public class GT_Cover_WirelessMaintenanceDetector extends @Override public MaintenanceTransmitterData doCoverThingsImpl(byte aSide, byte aInputRedstone, int aCoverID, - MaintenanceTransmitterData aCoverVariable, ICoverable aTileEntity, long aTimer) { + MaintenanceTransmitterData aCoverVariable, ICoverable aTileEntity, long aTimer) { byte signal = computeSignalBasedOnMaintenance(aCoverVariable, aTileEntity); long hash = hashCoverCoords(aTileEntity, aSide); setSignalAt(aCoverVariable.getUuid(), aCoverVariable.getFrequency(), hash, signal); @@ -100,19 +100,19 @@ public class GT_Cover_WirelessMaintenanceDetector extends @Override public boolean letsRedstoneGoOutImpl(byte aSide, int aCoverID, MaintenanceTransmitterData aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return true; } @Override protected boolean manipulatesSidedRedstoneOutputImpl(byte aSide, int aCoverID, - MaintenanceTransmitterData aCoverVariable, ICoverable aTileEntity) { + MaintenanceTransmitterData aCoverVariable, ICoverable aTileEntity) { return true; } @Override public int getTickRateImpl(byte aSide, int aCoverID, MaintenanceTransmitterData aCoverVariable, - ICoverable aTileEntity) { + ICoverable aTileEntity) { return 60; } @@ -183,7 +183,7 @@ public class GT_Cover_WirelessMaintenanceDetector extends // GUI stuff private static final String[] extraTexts = new String[] { "No Issues", ">= 1 Issue", ">= 2 Issues", ">= 3 Issues", - ">= 4 Issues", ">= 5 Issues", "Rotor < 80%", "Rotor < 100%" }; + ">= 4 Issues", ">= 5 Issues", "Rotor < 80%", "Rotor < 100%" }; @Override public ModularWindow createWindow(GT_CoverUIBuildContext buildContext) { @@ -216,10 +216,8 @@ public class GT_Cover_WirelessMaintenanceDetector extends super.addUIWidgets(builder); for (int i = 0; i < 8; i++) { builder.widget( - new TextWidget(extraTexts[i]).setDefaultColor(COLOR_TEXT_GRAY.get()) - .setPos( - startX + spaceX * (i % 2 == 0 ? 1 : 7), - 4 + startY + spaceY * (2 + i / 2))); + new TextWidget(extraTexts[i]).setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(startX + spaceX * (i % 2 == 0 ? 1 : 7), 4 + startY + spaceY * (2 + i / 2))); } } @@ -229,16 +227,14 @@ public class GT_Cover_WirelessMaintenanceDetector extends for (int i = 0; i < 8; i++) { final int index = i; controller.addFollower( - CoverDataFollower_ToggleButtonWidget.ofDisableable(), - coverData -> coverData.mode == MaintenanceMode.values()[index], - (coverData, state) -> { - coverData.mode = MaintenanceMode.values()[index]; - return coverData; - }, - widget -> widget.setToggleTexture( - GT_UITextures.OVERLAY_BUTTON_CHECKMARK, - GT_UITextures.TRANSPARENT) - .setPos(spaceX * (index % 2 == 0 ? 0 : 6), spaceY * (2 + index / 2))); + CoverDataFollower_ToggleButtonWidget.ofDisableable(), + coverData -> coverData.mode == MaintenanceMode.values()[index], + (coverData, state) -> { + coverData.mode = MaintenanceMode.values()[index]; + return coverData; + }, + widget -> widget.setToggleTexture(GT_UITextures.OVERLAY_BUTTON_CHECKMARK, GT_UITextures.TRANSPARENT) + .setPos(spaceX * (index % 2 == 0 ? 0 : 6), spaceY * (2 + index / 2))); } } } diff --git a/src/main/java/gregtech/common/entities/GT_Entity_Arrow.java b/src/main/java/gregtech/common/entities/GT_Entity_Arrow.java index c07e316684..c5ca19fdad 100644 --- a/src/main/java/gregtech/common/entities/GT_Entity_Arrow.java +++ b/src/main/java/gregtech/common/entities/GT_Entity_Arrow.java @@ -77,7 +77,7 @@ public class GT_Entity_Arrow extends EntityArrow { if ((this.prevRotationPitch == 0.0F) && (this.prevRotationYaw == 0.0F)) { float f = MathHelper.sqrt_double(this.motionX * this.motionX + this.motionZ * this.motionZ); this.prevRotationYaw = (this.rotationYaw = (float) (Math.atan2(this.motionX, this.motionZ) * 180.0D - / Math.PI)); + / Math.PI)); this.prevRotationPitch = (this.rotationPitch = (float) (Math.atan2(this.motionY, f) * 180.0D / Math.PI)); } if (this.mTicksAlive++ == 3000) { @@ -86,13 +86,10 @@ public class GT_Entity_Arrow extends EntityArrow { Block tBlock = this.worldObj.getBlock(this.mHitBlockX, this.mHitBlockY, this.mHitBlockZ); if (tBlock.getMaterial() != Material.air) { tBlock.setBlockBoundsBasedOnState(this.worldObj, this.mHitBlockX, this.mHitBlockY, this.mHitBlockZ); - AxisAlignedBB axisalignedbb = tBlock.getCollisionBoundingBoxFromPool( - this.worldObj, - this.mHitBlockX, - this.mHitBlockY, - this.mHitBlockZ); + AxisAlignedBB axisalignedbb = tBlock + .getCollisionBoundingBoxFromPool(this.worldObj, this.mHitBlockX, this.mHitBlockY, this.mHitBlockZ); if ((axisalignedbb != null) - && (axisalignedbb.isVecInside(Vec3.createVectorHelper(this.posX, this.posY, this.posZ)))) { + && (axisalignedbb.isVecInside(Vec3.createVectorHelper(this.posX, this.posY, this.posZ)))) { this.inGround = true; } } @@ -112,24 +109,20 @@ public class GT_Entity_Arrow extends EntityArrow { } else { this.ticksInAir += 1; Vec3 vec31 = Vec3.createVectorHelper(this.posX, this.posY, this.posZ); - Vec3 vec3 = Vec3.createVectorHelper( - this.posX + this.motionX, - this.posY + this.motionY, - this.posZ + this.motionZ); + Vec3 vec3 = Vec3 + .createVectorHelper(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ); MovingObjectPosition tVector = this.worldObj.func_147447_a(vec31, vec3, false, true, false); vec31 = Vec3.createVectorHelper(this.posX, this.posY, this.posZ); - vec3 = Vec3.createVectorHelper( - this.posX + this.motionX, - this.posY + this.motionY, - this.posZ + this.motionZ); + vec3 = Vec3 + .createVectorHelper(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ); if (tVector != null) { vec3 = Vec3.createVectorHelper(tVector.hitVec.xCoord, tVector.hitVec.yCoord, tVector.hitVec.zCoord); } Entity tHitEntity = null; List tAllPotentiallyHitEntities = this.worldObj.getEntitiesWithinAABBExcludingEntity( - this, - this.boundingBox.addCoord(this.motionX, this.motionY, this.motionZ) - .expand(1.0D, 1.0D, 1.0D)); + this, + this.boundingBox.addCoord(this.motionX, this.motionY, this.motionZ) + .expand(1.0D, 1.0D, 1.0D)); double tLargestDistance = Double.MAX_VALUE; for (Entity tAllPotentiallyHitEntity : tAllPotentiallyHitEntities) { Entity entity1 = tAllPotentiallyHitEntity; @@ -150,7 +143,7 @@ public class GT_Entity_Arrow extends EntityArrow { } if ((tVector != null) && ((tVector.entityHit instanceof EntityPlayer entityplayer))) { if ((entityplayer.capabilities.disableDamage) || (((tShootingEntity instanceof EntityPlayer)) - && (!((EntityPlayer) tShootingEntity).canAttackPlayer(entityplayer)))) { + && (!((EntityPlayer) tShootingEntity).canAttackPlayer(entityplayer)))) { tVector = null; } } @@ -159,36 +152,34 @@ public class GT_Entity_Arrow extends EntityArrow { ItemData tData = GT_OreDictUnificator.getItemData(this.mArrow); float tMagicDamage = (tVector.entityHit instanceof EntityLivingBase) - ? EnchantmentHelper.func_152377_a( - this.mArrow, - ((EntityLivingBase) tVector.entityHit).getCreatureAttribute()) - : 0.0F; + ? EnchantmentHelper + .func_152377_a(this.mArrow, ((EntityLivingBase) tVector.entityHit).getCreatureAttribute()) + : 0.0F; float tDamage = MathHelper.ceiling_double_int( - MathHelper.sqrt_double( - this.motionX * this.motionX + this.motionY * this.motionY - + this.motionZ * this.motionZ) - * (getDamage() + ((tData != null) && (tData.mMaterial != null) - && (tData.mMaterial.mMaterial != null) - ? tData.mMaterial.mMaterial.mToolQuality / 2.0F - 1.0F - : 0.0F))); + MathHelper.sqrt_double( + this.motionX * this.motionX + this.motionY * this.motionY + this.motionZ * this.motionZ) + * (getDamage() + + ((tData != null) && (tData.mMaterial != null) && (tData.mMaterial.mMaterial != null) + ? tData.mMaterial.mMaterial.mToolQuality / 2.0F - 1.0F + : 0.0F))); if (getIsCritical()) { tDamage += this.rand.nextInt((int) (tDamage / 2.0D + 2.0D)); } int tFireDamage = (isBurning() ? 5 : 0) - + 4 * EnchantmentHelper.getEnchantmentLevel(Enchantment.fireAspect.effectId, this.mArrow); + + 4 * EnchantmentHelper.getEnchantmentLevel(Enchantment.fireAspect.effectId, this.mArrow); int tKnockback = this.mKnockback - + EnchantmentHelper.getEnchantmentLevel(Enchantment.knockback.effectId, this.mArrow); + + EnchantmentHelper.getEnchantmentLevel(Enchantment.knockback.effectId, this.mArrow); int tHitTimer = -1; int[] tDamages = onHitEntity( - tVector.entityHit, - tShootingEntity == null ? this : tShootingEntity, - this.mArrow == null ? new ItemStack(Items.arrow, 1) : this.mArrow, - (int) (tDamage * 2.0F), - (int) (tMagicDamage * 2.0F), - tKnockback, - tFireDamage, - tHitTimer); + tVector.entityHit, + tShootingEntity == null ? this : tShootingEntity, + this.mArrow == null ? new ItemStack(Items.arrow, 1) : this.mArrow, + (int) (tDamage * 2.0F), + (int) (tMagicDamage * 2.0F), + tKnockback, + tFireDamage, + tHitTimer); if (tDamages != null) { tDamage = tDamages[0] / 2.0F; tMagicDamage = tDamages[1] / 2.0F; @@ -199,17 +190,16 @@ public class GT_Entity_Arrow extends EntityArrow { tVector.entityHit.setFire(tFireDamage); } if ((!(tHitEntity instanceof EntityPlayer)) - && (EnchantmentHelper.getEnchantmentLevel(Enchantment.looting.effectId, this.mArrow) - > 0)) { + && (EnchantmentHelper.getEnchantmentLevel(Enchantment.looting.effectId, this.mArrow) > 0)) { EntityPlayer tPlayer = null; if ((this.worldObj instanceof WorldServer)) { tPlayer = FakePlayerFactory.get( - (WorldServer) this.worldObj, - new GameProfile( - new UUID(0L, 0L), - (tShootingEntity instanceof EntityLivingBase) - ? tShootingEntity.getCommandSenderName() - : "Arrow")); + (WorldServer) this.worldObj, + new GameProfile( + new UUID(0L, 0L), + (tShootingEntity instanceof EntityLivingBase) + ? tShootingEntity.getCommandSenderName() + : "Arrow")); } if (tPlayer != null) { tPlayer.inventory.currentItem = 0; @@ -218,58 +208,54 @@ public class GT_Entity_Arrow extends EntityArrow { tPlayer.setDead(); } } - DamageSource tDamageSource = DamageSource.causeArrowDamage( - this, - tShootingEntity == null ? this : tShootingEntity); + DamageSource tDamageSource = DamageSource + .causeArrowDamage(this, tShootingEntity == null ? this : tShootingEntity); if ((tDamage + tMagicDamage > 0.0F) - && (tVector.entityHit.attackEntityFrom(tDamageSource, tDamage + tMagicDamage))) { + && (tVector.entityHit.attackEntityFrom(tDamageSource, tDamage + tMagicDamage))) { if ((tVector.entityHit instanceof EntityLivingBase tHitLivingEntity)) { if (tHitTimer >= 0) { tVector.entityHit.hurtResistantTime = tHitTimer; } - if (((tVector.entityHit instanceof EntityCreeper)) - && (EnchantmentHelper.getEnchantmentLevel( - Enchantment.fireAspect.effectId, - this.mArrow) > 0)) { + if (((tVector.entityHit instanceof EntityCreeper)) && (EnchantmentHelper + .getEnchantmentLevel(Enchantment.fireAspect.effectId, this.mArrow) > 0)) { ((EntityCreeper) tVector.entityHit).func_146079_cb(); } if (!this.worldObj.isRemote) { - tHitLivingEntity.setArrowCountInEntity( - tHitLivingEntity.getArrowCountInEntity() + 1); + tHitLivingEntity + .setArrowCountInEntity(tHitLivingEntity.getArrowCountInEntity() + 1); } if (tKnockback > 0) { - float tKnockbackDivider = MathHelper.sqrt_double( - this.motionX * this.motionX + this.motionZ * this.motionZ); + float tKnockbackDivider = MathHelper + .sqrt_double(this.motionX * this.motionX + this.motionZ * this.motionZ); if (tKnockbackDivider > 0.0F) { tHitLivingEntity.addVelocity( - this.motionX * tKnockback * 0.6000000238418579D / tKnockbackDivider, - 0.1D, - this.motionZ * tKnockback * 0.6000000238418579D / tKnockbackDivider); + this.motionX * tKnockback * 0.6000000238418579D / tKnockbackDivider, + 0.1D, + this.motionZ * tKnockback * 0.6000000238418579D / tKnockbackDivider); } } GT_Utility.GT_EnchantmentHelper.applyBullshitA( - tHitLivingEntity, - tShootingEntity == null ? this : tShootingEntity, - this.mArrow); + tHitLivingEntity, + tShootingEntity == null ? this : tShootingEntity, + this.mArrow); GT_Utility.GT_EnchantmentHelper.applyBullshitB( - (tShootingEntity instanceof EntityLivingBase) - ? (EntityLivingBase) tShootingEntity - : null, - tHitLivingEntity, - this.mArrow); + (tShootingEntity instanceof EntityLivingBase) ? (EntityLivingBase) tShootingEntity + : null, + tHitLivingEntity, + this.mArrow); if ((tShootingEntity != null) && (tHitLivingEntity != tShootingEntity) - && ((tHitLivingEntity instanceof EntityPlayer)) - && ((tShootingEntity instanceof EntityPlayerMP))) { - ((EntityPlayerMP) tShootingEntity).playerNetServerHandler.sendPacket( - new S2BPacketChangeGameState(6, 0.0F)); + && ((tHitLivingEntity instanceof EntityPlayer)) + && ((tShootingEntity instanceof EntityPlayerMP))) { + ((EntityPlayerMP) tShootingEntity).playerNetServerHandler + .sendPacket(new S2BPacketChangeGameState(6, 0.0F)); } } if (((tShootingEntity instanceof EntityPlayer)) && (tMagicDamage > 0.0F)) { ((EntityPlayer) tShootingEntity).onEnchantmentCritical(tVector.entityHit); } if ((!(tVector.entityHit instanceof EntityEnderman)) - || (((EntityEnderman) tVector.entityHit).getActivePotionEffect(Potion.weakness) - != null)) { + || (((EntityEnderman) tVector.entityHit).getActivePotionEffect(Potion.weakness) + != null)) { if (tFireDamage > 0) { tVector.entityHit.setFire(tFireDamage); } @@ -290,15 +276,13 @@ public class GT_Entity_Arrow extends EntityArrow { this.mHitBlockY = tVector.blockY; this.mHitBlockZ = tVector.blockZ; this.mHitBlock = this.worldObj.getBlock(this.mHitBlockX, this.mHitBlockY, this.mHitBlockZ); - this.mHitBlockMeta = this.worldObj.getBlockMetadata( - this.mHitBlockX, - this.mHitBlockY, - this.mHitBlockZ); + this.mHitBlockMeta = this.worldObj + .getBlockMetadata(this.mHitBlockX, this.mHitBlockY, this.mHitBlockZ); this.motionX = ((float) (tVector.hitVec.xCoord - this.posX)); this.motionY = ((float) (tVector.hitVec.yCoord - this.posY)); this.motionZ = ((float) (tVector.hitVec.zCoord - this.posZ)); float f2 = MathHelper.sqrt_double( - this.motionX * this.motionX + this.motionY * this.motionY + this.motionZ * this.motionZ); + this.motionX * this.motionX + this.motionY * this.motionY + this.motionZ * this.motionZ); this.posX -= this.motionX / f2 * 0.0500000007450581D; this.posY -= this.motionY / f2 * 0.0500000007450581D; this.posZ -= this.motionZ / f2 * 0.0500000007450581D; @@ -308,51 +292,46 @@ public class GT_Entity_Arrow extends EntityArrow { setIsCritical(false); if (this.mHitBlock.getMaterial() != Material.air) { this.mHitBlock.onEntityCollidedWithBlock( - this.worldObj, - this.mHitBlockX, - this.mHitBlockY, - this.mHitBlockZ, - this); + this.worldObj, + this.mHitBlockX, + this.mHitBlockY, + this.mHitBlockZ, + this); } if ((!this.worldObj.isRemote) - && (EnchantmentHelper.getEnchantmentLevel(Enchantment.fireAspect.effectId, this.mArrow) - > 2)) { - GT_Utility.setCoordsOnFire( - this.worldObj, - this.mHitBlockX, - this.mHitBlockY, - this.mHitBlockZ, - true); + && (EnchantmentHelper.getEnchantmentLevel(Enchantment.fireAspect.effectId, this.mArrow) > 2)) { + GT_Utility + .setCoordsOnFire(this.worldObj, this.mHitBlockX, this.mHitBlockY, this.mHitBlockZ, true); } if (breaksOnImpact()) { setDead(); } } } - WorldSpawnedEventBuilder.ParticleEventBuilder events = new WorldSpawnedEventBuilder.ParticleEventBuilder().setWorld( - this.worldObj); + WorldSpawnedEventBuilder.ParticleEventBuilder events = new WorldSpawnedEventBuilder.ParticleEventBuilder() + .setWorld(this.worldObj); if (getIsCritical()) { events.setIdentifier(ParticleFX.CRIT) - .setMotion(-this.motionX, -this.motionY + 0.2D, -this.motionZ).times( - 4, - (x, i) -> x.setPosition( - this.posX + this.motionX * i / 4.0D, - this.posY + this.motionY * i / 4.0D, - this.posZ + this.motionZ * i / 4.0D) - .run()); + .setMotion(-this.motionX, -this.motionY + 0.2D, -this.motionZ).times( + 4, + (x, i) -> x + .setPosition( + this.posX + this.motionX * i / 4.0D, + this.posY + this.motionY * i / 4.0D, + this.posZ + this.motionZ * i / 4.0D) + .run()); } this.posX += this.motionX; this.posY += this.motionY; this.posZ += this.motionZ; this.rotationYaw = ((float) (Math.atan2(this.motionX, this.motionZ) * 180.0D / Math.PI)); - for (this.rotationPitch = ((float) (Math.atan2( - this.motionY, - MathHelper.sqrt_double(this.motionX * this.motionX + this.motionZ * this.motionZ)) * 180.0D - / Math.PI)); this.rotationPitch - this.prevRotationPitch - < -180.0F; this.prevRotationPitch -= 360.0F) {} + for (this.rotationPitch = ((float) (Math + .atan2(this.motionY, MathHelper.sqrt_double(this.motionX * this.motionX + this.motionZ * this.motionZ)) + * 180.0D + / Math.PI)); this.rotationPitch - this.prevRotationPitch < -180.0F; this.prevRotationPitch -= 360.0F) {} while (this.rotationPitch - this.prevRotationPitch >= 180.0F) { this.prevRotationPitch += 360.0F; } @@ -367,12 +346,12 @@ public class GT_Entity_Arrow extends EntityArrow { float tFrictionMultiplier = 0.99F; if (isInWater()) { events.setMotion(-this.motionX, -this.motionY + 0.2D, -this.motionZ) - .setIdentifier(ParticleFX.BUBBLE) - .setPosition( - this.posX - this.motionX * 0.25D, - this.posY - this.motionY * 0.25D, - this.posZ - this.motionZ * 0.25D) - .times(4, Runnable::run); + .setIdentifier(ParticleFX.BUBBLE) + .setPosition( + this.posX - this.motionX * 0.25D, + this.posY - this.motionY * 0.25D, + this.posZ - this.motionZ * 0.25D) + .times(4, Runnable::run); tFrictionMultiplier = 0.8F; } if (isWet()) { @@ -422,9 +401,9 @@ public class GT_Entity_Arrow extends EntityArrow { @Override public void onCollideWithPlayer(EntityPlayer aPlayer) { if ((!this.worldObj.isRemote) && (this.inGround) - && (this.arrowShake <= 0) - && (this.canBePickedUp == 1) - && (aPlayer.inventory.addItemStackToInventory(getArrowItem()))) { + && (this.arrowShake <= 0) + && (this.canBePickedUp == 1) + && (aPlayer.inventory.addItemStackToInventory(getArrowItem()))) { playSound("random.pop", 0.2F, ((this.rand.nextFloat() - this.rand.nextFloat()) * 0.7F + 1.0F) * 2.0F); aPlayer.onItemPickup(this, 1); setDead(); @@ -432,7 +411,7 @@ public class GT_Entity_Arrow extends EntityArrow { } public int[] onHitEntity(Entity aHitEntity, Entity aShootingEntity, ItemStack aArrow, int aRegularDamage, - int aMagicDamage, int aKnockback, int aFireDamage, int aHitTimer) { + int aMagicDamage, int aKnockback, int aFireDamage, int aHitTimer) { return new int[] { aRegularDamage, aMagicDamage, aKnockback, aFireDamage, aHitTimer }; } diff --git a/src/main/java/gregtech/common/entities/GT_Entity_Arrow_Potion.java b/src/main/java/gregtech/common/entities/GT_Entity_Arrow_Potion.java index e44129d245..9b520831b6 100644 --- a/src/main/java/gregtech/common/entities/GT_Entity_Arrow_Potion.java +++ b/src/main/java/gregtech/common/entities/GT_Entity_Arrow_Potion.java @@ -52,27 +52,27 @@ public class GT_Entity_Arrow_Potion extends GT_Entity_Arrow { @Override public int[] onHitEntity(Entity aHitEntity, Entity aShootingEntity, ItemStack aArrow, int aRegularDamage, - int aMagicDamage, int aKnockback, int aFireDamage, int aHitTimer) { + int aMagicDamage, int aKnockback, int aFireDamage, int aHitTimer) { if ((aHitEntity instanceof EntityLivingBase)) { for (int i = 3; i < this.mPotions.length; i += 4) { if (aHitEntity.worldObj.rand.nextInt(100) < this.mPotions[i]) { ((EntityLivingBase) aHitEntity).addPotionEffect( - new PotionEffect( - this.mPotions[(i - 3)], - this.mPotions[(i - 2)], - this.mPotions[(i - 1)], - false)); + new PotionEffect( + this.mPotions[(i - 3)], + this.mPotions[(i - 2)], + this.mPotions[(i - 1)], + false)); } } } return super.onHitEntity( - aHitEntity, - aShootingEntity, - aArrow, - 1, - aMagicDamage, - aKnockback, - aFireDamage, - aHitTimer); + aHitEntity, + aShootingEntity, + aArrow, + 1, + aMagicDamage, + aKnockback, + aFireDamage, + aHitTimer); } } diff --git a/src/main/java/gregtech/common/fluid/GT_Fluid.java b/src/main/java/gregtech/common/fluid/GT_Fluid.java index dd3ffdfc51..0ef44215f4 100644 --- a/src/main/java/gregtech/common/fluid/GT_Fluid.java +++ b/src/main/java/gregtech/common/fluid/GT_Fluid.java @@ -56,12 +56,12 @@ public class GT_Fluid extends Fluid implements IGT_Fluid, IGT_RegisteredFluid, R break; case GAS: setGaseous(true).setDensity(-100) - .setViscosity(200); + .setViscosity(200); break; case PLASMA: setGaseous(true).setDensity(55536) - .setViscosity(10) - .setLuminosity(15); + .setViscosity(10) + .setLuminosity(15); break; case MOLTEN: final int luminosity; @@ -86,7 +86,7 @@ public class GT_Fluid extends Fluid implements IGT_Fluid, IGT_RegisteredFluid, R @Override public int getColor() { return (Math.max(0, Math.min(255, colorRGBA[0])) << 16) | (Math.max(0, Math.min(255, colorRGBA[1])) << 8) - | Math.max(0, Math.min(255, colorRGBA[2])); + | Math.max(0, Math.min(255, colorRGBA[2])); } // ----- IGT_Fluid interface implementations ----- @@ -117,15 +117,15 @@ public class GT_Fluid extends Fluid implements IGT_Fluid, IGT_RegisteredFluid, R */ @Override public IGT_RegisteredFluid registerContainers(final ItemStack fullContainer, final ItemStack emptyContainer, - final int containerSize) { + final int containerSize) { if (fullContainer != null && emptyContainer != null) { final FluidStack fluidStack = new FluidStack(registeredFluid, containerSize); if (!FluidContainerRegistry.registerFluidContainer(fluidStack, fullContainer, emptyContainer)) { GT_Values.RA.addFluidCannerRecipe( - fullContainer, - GT_Utility.getContainerItem(fullContainer, false), - null, - fluidStack); + fullContainer, + GT_Utility.getContainerItem(fullContainer, false), + null, + fluidStack); } } return this; diff --git a/src/main/java/gregtech/common/fluid/GT_FluidBuilder.java b/src/main/java/gregtech/common/fluid/GT_FluidBuilder.java index 13ee7f8c8d..9a18b8d812 100644 --- a/src/main/java/gregtech/common/fluid/GT_FluidBuilder.java +++ b/src/main/java/gregtech/common/fluid/GT_FluidBuilder.java @@ -113,7 +113,7 @@ public class GT_FluidBuilder implements IGT_FluidBuilder { */ @Override public IGT_FluidBuilder withTextures(final ResourceLocation stillIconResourceLocation, - final ResourceLocation flowingIconResourceLocation) { + final ResourceLocation flowingIconResourceLocation) { this.stillIconResourceLocation = stillIconResourceLocation; this.flowingIconResourceLocation = flowingIconResourceLocation; return this; diff --git a/src/main/java/gregtech/common/gui/modularui/UIHelper.java b/src/main/java/gregtech/common/gui/modularui/UIHelper.java index 1337ce18ca..0893310342 100644 --- a/src/main/java/gregtech/common/gui/modularui/UIHelper.java +++ b/src/main/java/gregtech/common/gui/modularui/UIHelper.java @@ -20,62 +20,61 @@ public class UIHelper { * Iterates over candidates for slot placement. */ public static void forEachSlots(ForEachSlot forEachItemInputSlot, ForEachSlot forEachItemOutputSlot, - ForEachSlot forEachSpecialSlot, ForEachSlot forEachFluidInputSlot, ForEachSlot forEachFluidOutputSlot, - IDrawable itemSlotBackground, IDrawable fluidSlotBackground, @Nullable GT_Recipe.GT_Recipe_Map recipeMap, - int itemInputCount, int itemOutputCount, int fluidInputCount, int fluidOutputCount, - SteamVariant steamVariant, Pos2d offset) { + ForEachSlot forEachSpecialSlot, ForEachSlot forEachFluidInputSlot, ForEachSlot forEachFluidOutputSlot, + IDrawable itemSlotBackground, IDrawable fluidSlotBackground, @Nullable GT_Recipe.GT_Recipe_Map recipeMap, + int itemInputCount, int itemOutputCount, int fluidInputCount, int fluidOutputCount, SteamVariant steamVariant, + Pos2d offset) { List itemInputPositions = recipeMap != null ? recipeMap.getItemInputPositions(itemInputCount) - : UIHelper.getItemInputPositions(itemInputCount); + : UIHelper.getItemInputPositions(itemInputCount); itemInputPositions = itemInputPositions.stream() - .map(p -> p.add(offset)) - .collect(Collectors.toList()); + .map(p -> p.add(offset)) + .collect(Collectors.toList()); for (int i = 0; i < itemInputPositions.size(); i++) { forEachItemInputSlot.accept( - i, - getBackgroundsForSlot(itemSlotBackground, recipeMap, false, false, i, false, steamVariant), - itemInputPositions.get(i)); + i, + getBackgroundsForSlot(itemSlotBackground, recipeMap, false, false, i, false, steamVariant), + itemInputPositions.get(i)); } List itemOutputPositions = recipeMap != null ? recipeMap.getItemOutputPositions(itemOutputCount) - : UIHelper.getItemOutputPositions(itemOutputCount); + : UIHelper.getItemOutputPositions(itemOutputCount); itemOutputPositions = itemOutputPositions.stream() - .map(p -> p.add(offset)) - .collect(Collectors.toList()); + .map(p -> p.add(offset)) + .collect(Collectors.toList()); for (int i = 0; i < itemOutputPositions.size(); i++) { forEachItemOutputSlot.accept( - i, - getBackgroundsForSlot(itemSlotBackground, recipeMap, false, true, i, false, steamVariant), - itemOutputPositions.get(i)); + i, + getBackgroundsForSlot(itemSlotBackground, recipeMap, false, true, i, false, steamVariant), + itemOutputPositions.get(i)); } forEachSpecialSlot.accept( - 0, - getBackgroundsForSlot(itemSlotBackground, recipeMap, false, false, 0, true, steamVariant), - (recipeMap != null ? recipeMap.getSpecialItemPosition() : UIHelper.getSpecialItemPosition()).add( - offset)); + 0, + getBackgroundsForSlot(itemSlotBackground, recipeMap, false, false, 0, true, steamVariant), + (recipeMap != null ? recipeMap.getSpecialItemPosition() : UIHelper.getSpecialItemPosition()).add(offset)); List fluidInputPositions = recipeMap != null ? recipeMap.getFluidInputPositions(fluidInputCount) - : UIHelper.getFluidInputPositions(fluidInputCount); + : UIHelper.getFluidInputPositions(fluidInputCount); fluidInputPositions = fluidInputPositions.stream() - .map(p -> p.add(offset)) - .collect(Collectors.toList()); + .map(p -> p.add(offset)) + .collect(Collectors.toList()); for (int i = 0; i < fluidInputPositions.size(); i++) { forEachFluidInputSlot.accept( - i, - getBackgroundsForSlot(fluidSlotBackground, recipeMap, true, false, i, false, steamVariant), - fluidInputPositions.get(i)); + i, + getBackgroundsForSlot(fluidSlotBackground, recipeMap, true, false, i, false, steamVariant), + fluidInputPositions.get(i)); } List fluidOutputPositions = recipeMap != null ? recipeMap.getFluidOutputPositions(fluidOutputCount) - : UIHelper.getFluidOutputPositions(fluidOutputCount); + : UIHelper.getFluidOutputPositions(fluidOutputCount); fluidOutputPositions = fluidOutputPositions.stream() - .map(p -> p.add(offset)) - .collect(Collectors.toList()); + .map(p -> p.add(offset)) + .collect(Collectors.toList()); for (int i = 0; i < fluidOutputPositions.size(); i++) { forEachFluidOutputSlot.accept( - i, - getBackgroundsForSlot(fluidSlotBackground, recipeMap, true, true, i, false, steamVariant), - fluidOutputPositions.get(i)); + i, + getBackgroundsForSlot(fluidSlotBackground, recipeMap, true, true, i, false, steamVariant), + fluidOutputPositions.get(i)); } } @@ -143,7 +142,7 @@ public class UIHelper { } public static List getGridPositions(int totalCount, int xOrigin, int yOrigin, int xDirMaxCount, - int yDirMaxCount) { + int yDirMaxCount) { // 18 pixels to get to a new grid for placing an item tile since they are 16x16 and have 1 pixel buffers // around them. int distance = 18; @@ -169,12 +168,12 @@ public class UIHelper { */ @Deprecated public static List getItemGridPositions(int itemCount, int xOrigin, int yOrigin, int xDirMaxCount, - int yDirMaxCount) { + int yDirMaxCount) { return getGridPositions(itemCount, xOrigin, yOrigin, xDirMaxCount, yDirMaxCount); } private static IDrawable[] getBackgroundsForSlot(IDrawable base, GT_Recipe.GT_Recipe_Map recipeMap, boolean isFluid, - boolean isOutput, int index, boolean isSpecial, SteamVariant steamVariant) { + boolean isOutput, int index, boolean isSpecial, SteamVariant steamVariant) { if (recipeMap != null) { IDrawable overlay; if (steamVariant != SteamVariant.NONE) { diff --git a/src/main/java/gregtech/common/gui/modularui/uifactory/SelectItemUIFactory.java b/src/main/java/gregtech/common/gui/modularui/uifactory/SelectItemUIFactory.java index c8e015d5b4..8dcf845bd1 100644 --- a/src/main/java/gregtech/common/gui/modularui/uifactory/SelectItemUIFactory.java +++ b/src/main/java/gregtech/common/gui/modularui/uifactory/SelectItemUIFactory.java @@ -58,12 +58,12 @@ public class SelectItemUIFactory { private final Supplier COLOR_TEXT_GRAY = () -> getTextColorOrDefault("text_gray", 0x555555); public SelectItemUIFactory(String header, ItemStack headerItem, Consumer selectedCallback, - List stacks) { + List stacks) { this(header, headerItem, selectedCallback, stacks, UNSELECTED); } public SelectItemUIFactory(String header, ItemStack headerItem, Consumer selectedCallback, - List stacks, int selected) { + List stacks, int selected) { this(header, headerItem, selectedCallback, stacks, selected, false); } @@ -81,7 +81,7 @@ public class SelectItemUIFactory { * is guaranteed to be called with a nonnull stack */ public SelectItemUIFactory(String header, ItemStack headerItem, Consumer selectedCallback, - List stacks, int selected, boolean noDeselect) { + List stacks, int selected, boolean noDeselect) { this.header = header; this.headerItem = headerItem; this.selectedCallback = selectedCallback; @@ -116,21 +116,20 @@ public class SelectItemUIFactory { } public ModularWindow createWindow(UIBuildContext buildContext) { - ModularWindow.Builder builder = ModularWindow.builder( - getGUIWidth(), - 53 + 18 * ((stacks.size() - 1) / cols + 1)); + ModularWindow.Builder builder = ModularWindow + .builder(getGUIWidth(), 53 + 18 * ((stacks.size() - 1) / cols + 1)); builder.setBackground(ModularUITextures.VANILLA_BACKGROUND); builder.setGuiTint(guiTint); if (headerItem != null) { builder.widget( - new ItemDrawable(headerItem).asWidget() - .setPos(5, 5) - .setSize(16, 16)); + new ItemDrawable(headerItem).asWidget() + .setPos(5, 5) + .setSize(16, 16)); } builder.widget( - new TextWidget(header).setDefaultColor(COLOR_TITLE.get()) - .setPos(25, 9)); + new TextWidget(header).setDefaultColor(COLOR_TITLE.get()) + .setPos(25, 9)); builder.widget(new SlotWidget(BaseSlot.phantom(currentDisplayItemHandler, 0)) { @@ -144,43 +143,40 @@ public class SelectItemUIFactory { super.draw(partialTicks); } }.disableInteraction() - .setBackground(GT_UITextures.SLOT_DARK_GRAY) - .setPos(9 + getFontRenderer().getStringWidth(StatCollector.translateToLocal("GT5U.gui.select.current")), 24)) - .widget( - new TextWidget( - StatCollector.translateToLocal("GT5U.gui.select.current")) - .setDefaultColor( - COLOR_TEXT_GRAY.get()) - .setPos( - 8, - 25 + (18 - getFontRenderer().FONT_HEIGHT) - / 2)); + .setBackground(GT_UITextures.SLOT_DARK_GRAY) + .setPos( + 9 + getFontRenderer().getStringWidth(StatCollector.translateToLocal("GT5U.gui.select.current")), + 24)) + .widget( + new TextWidget(StatCollector.translateToLocal("GT5U.gui.select.current")) + .setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(8, 25 + (18 - getFontRenderer().FONT_HEIGHT) / 2)); for (int i = 0; i < stacks.size(); i++) { final int index = i; builder.widget( - new SlotWidget(new BaseSlot(new ItemStackHandler(new ItemStack[] { stacks.get(index) }), 0, true)) { - - @Override - public ClickResult onClick(int buttonId, boolean doubleClick) { - if (buttonId == 0) { - setSelected(index); - } else if (buttonId == 1) { - setSelected(UNSELECTED); - } else { - return ClickResult.ACCEPT; - } - selectedCallback.accept(getCandidate(getSelected())); - return ClickResult.SUCCESS; + new SlotWidget(new BaseSlot(new ItemStackHandler(new ItemStack[] { stacks.get(index) }), 0, true)) { + + @Override + public ClickResult onClick(int buttonId, boolean doubleClick) { + if (buttonId == 0) { + setSelected(index); + } else if (buttonId == 1) { + setSelected(UNSELECTED); + } else { + return ClickResult.ACCEPT; } - - @Override - public IDrawable[] getBackground() { - return new IDrawable[] { - index == selected ? GT_UITextures.SLOT_DARK_GRAY : ModularUITextures.ITEM_SLOT }; - } - }.disableInteraction() - .setPos(7 + 18 * (index % cols), 43 + 18 * (index / cols))); + selectedCallback.accept(getCandidate(getSelected())); + return ClickResult.SUCCESS; + } + + @Override + public IDrawable[] getBackground() { + return new IDrawable[] { + index == selected ? GT_UITextures.SLOT_DARK_GRAY : ModularUITextures.ITEM_SLOT }; + } + }.disableInteraction() + .setPos(7 + 18 * (index % cols), 43 + 18 * (index / cols))); } if (anotherWindow) { @@ -192,11 +188,11 @@ public class SelectItemUIFactory { dialogOpened.set(false); } }.setOnClick( - (clickData, widget) -> widget.getWindow() - .tryClose()) - .setBackground(ModularUITextures.VANILLA_BACKGROUND, new Text("x")) - .setPos(getGUIWidth() - 15, 3) - .setSize(12, 12)); + (clickData, widget) -> widget.getWindow() + .tryClose()) + .setBackground(ModularUITextures.VANILLA_BACKGROUND, new Text("x")) + .setPos(getGUIWidth() - 15, 3) + .setSize(12, 12)); } return builder.build(); diff --git a/src/main/java/gregtech/common/gui/modularui/widget/CoverCycleButtonWidget.java b/src/main/java/gregtech/common/gui/modularui/widget/CoverCycleButtonWidget.java index 28b495ce42..4d1c6649ae 100644 --- a/src/main/java/gregtech/common/gui/modularui/widget/CoverCycleButtonWidget.java +++ b/src/main/java/gregtech/common/gui/modularui/widget/CoverCycleButtonWidget.java @@ -16,22 +16,13 @@ import gregtech.api.gui.modularui.GT_UITextures; */ public class CoverCycleButtonWidget extends CycleButtonWidget { - private static final UITexture BUTTON_NORMAL_NOT_PRESSED = GT_UITextures.BUTTON_COVER_NORMAL.getSubArea( - 0, - 0, - 1, - 0.5f); + private static final UITexture BUTTON_NORMAL_NOT_PRESSED = GT_UITextures.BUTTON_COVER_NORMAL + .getSubArea(0, 0, 1, 0.5f); private static final UITexture BUTTON_NORMAL_PRESSED = GT_UITextures.BUTTON_COVER_NORMAL.getSubArea(0, 0.5f, 1, 1); - private static final UITexture BUTTON_HOVERED_NOT_PRESSED = GT_UITextures.BUTTON_COVER_NORMAL_HOVERED.getSubArea( - 0, - 0, - 1, - 0.5f); - private static final UITexture BUTTON_HOVERED_PRESSED = GT_UITextures.BUTTON_COVER_NORMAL_HOVERED.getSubArea( - 0, - 0.5f, - 1, - 1); + private static final UITexture BUTTON_HOVERED_NOT_PRESSED = GT_UITextures.BUTTON_COVER_NORMAL_HOVERED + .getSubArea(0, 0, 1, 0.5f); + private static final UITexture BUTTON_HOVERED_PRESSED = GT_UITextures.BUTTON_COVER_NORMAL_HOVERED + .getSubArea(0, 0.5f, 1, 1); private boolean clickPressed; diff --git a/src/main/java/gregtech/common/gui/modularui/widget/CoverDataControllerWidget.java b/src/main/java/gregtech/common/gui/modularui/widget/CoverDataControllerWidget.java index 3fa25abdbf..4543980ce1 100644 --- a/src/main/java/gregtech/common/gui/modularui/widget/CoverDataControllerWidget.java +++ b/src/main/java/gregtech/common/gui/modularui/widget/CoverDataControllerWidget.java @@ -25,14 +25,14 @@ public class CoverDataControllerWidget extends Da * @param coverBehavior cover this widget handles data update */ public CoverDataControllerWidget(Supplier dataGetter, Function dataSetter, - GT_CoverBehaviorBase coverBehavior) { + GT_CoverBehaviorBase coverBehavior) { super(dataGetter, dataSetter); this.coverBehavior = coverBehavior; } @Override public > CoverDataControllerWidget addFollower(W widget, - Function dataToStateGetter, BiFunction dataUpdater, Consumer applyForWidget) { + Function dataToStateGetter, BiFunction dataUpdater, Consumer applyForWidget) { super.addFollower(widget, dataToStateGetter, dataUpdater, applyForWidget); return this; } @@ -55,7 +55,7 @@ public class CoverDataControllerWidget extends Da * Uses int index to determine toggle button behaviors. */ public static class CoverDataIndexedControllerWidget_ToggleButtons - extends CoverDataControllerWidget { + extends CoverDataControllerWidget { private final BiFunction dataToStateGetter; private final BiFunction dataUpdater; @@ -68,8 +68,8 @@ public class CoverDataControllerWidget extends Da * @param dataUpdater (index of button, current cover data) -> new cover data */ public CoverDataIndexedControllerWidget_ToggleButtons(Supplier coverDataGetter, - Function coverDataSetter, GT_CoverBehaviorBase coverBehavior, - BiFunction dataToStateGetter, BiFunction dataUpdater) { + Function coverDataSetter, GT_CoverBehaviorBase coverBehavior, + BiFunction dataToStateGetter, BiFunction dataUpdater) { super(coverDataGetter, coverDataSetter, coverBehavior); this.dataToStateGetter = dataToStateGetter; this.dataUpdater = dataUpdater; @@ -81,12 +81,12 @@ public class CoverDataControllerWidget extends Da * @param applyForWidget methods to call for widget to add */ public > CoverDataIndexedControllerWidget_ToggleButtons addToggleButton( - int index, W widget, Consumer> applyForWidget) { + int index, W widget, Consumer> applyForWidget) { addFollower( - widget, - data -> dataToStateGetter.apply(index, data), - (data, state) -> dataUpdater.apply(index, data), - applyForWidget); + widget, + data -> dataToStateGetter.apply(index, data), + (data, state) -> dataUpdater.apply(index, data), + applyForWidget); return this; } } @@ -95,7 +95,7 @@ public class CoverDataControllerWidget extends Da * Uses int index to determine cycle button behaviors. */ public static class CoverDataIndexedControllerWidget_CycleButtons - extends CoverDataControllerWidget { + extends CoverDataControllerWidget { private final BiFunction dataToStateGetter; private final BiFunction dataUpdater; @@ -108,8 +108,8 @@ public class CoverDataControllerWidget extends Da * @param dataUpdater (index of button, current cover data) -> new cover data */ public CoverDataIndexedControllerWidget_CycleButtons(Supplier coverDataGetter, - Function coverDataSetter, GT_CoverBehaviorBase coverBehavior, - BiFunction dataToStateGetter, BiFunction dataUpdater) { + Function coverDataSetter, GT_CoverBehaviorBase coverBehavior, + BiFunction dataToStateGetter, BiFunction dataUpdater) { super(coverDataGetter, coverDataSetter, coverBehavior); this.dataToStateGetter = dataToStateGetter; this.dataUpdater = dataUpdater; @@ -121,12 +121,12 @@ public class CoverDataControllerWidget extends Da * @param applyForWidget methods to call for the widget to add */ public > CoverDataIndexedControllerWidget_CycleButtons addCycleButton( - int index, W widget, Consumer> applyForWidget) { + int index, W widget, Consumer> applyForWidget) { addFollower( - widget, - data -> dataToStateGetter.apply(index, data), - (data, state) -> dataUpdater.apply(index, data), - applyForWidget); + widget, + data -> dataToStateGetter.apply(index, data), + (data, state) -> dataUpdater.apply(index, data), + applyForWidget); return this; } } diff --git a/src/main/java/gregtech/common/gui/modularui/widget/CoverDataFollower_CycleButtonWidget.java b/src/main/java/gregtech/common/gui/modularui/widget/CoverDataFollower_CycleButtonWidget.java index 6e69b1ff79..ec7d31ca7e 100644 --- a/src/main/java/gregtech/common/gui/modularui/widget/CoverDataFollower_CycleButtonWidget.java +++ b/src/main/java/gregtech/common/gui/modularui/widget/CoverDataFollower_CycleButtonWidget.java @@ -10,7 +10,7 @@ import gregtech.api.util.ISerializableObject; * Determines button state with cover data. */ public class CoverDataFollower_CycleButtonWidget extends CoverCycleButtonWidget - implements IDataFollowerWidget { + implements IDataFollowerWidget { private Function dataToStateGetter; diff --git a/src/main/java/gregtech/common/gui/modularui/widget/CoverDataFollower_SlotWidget.java b/src/main/java/gregtech/common/gui/modularui/widget/CoverDataFollower_SlotWidget.java index c7795efbdc..8c19d65ba5 100644 --- a/src/main/java/gregtech/common/gui/modularui/widget/CoverDataFollower_SlotWidget.java +++ b/src/main/java/gregtech/common/gui/modularui/widget/CoverDataFollower_SlotWidget.java @@ -15,7 +15,7 @@ import gregtech.api.gui.modularui.IDataFollowerWidget; import gregtech.api.util.ISerializableObject; public class CoverDataFollower_SlotWidget extends SlotWidget - implements IDataFollowerWidget { + implements IDataFollowerWidget { private Function dataToStateGetter; private Consumer dataSetter; diff --git a/src/main/java/gregtech/common/gui/modularui/widget/CoverDataFollower_TextFieldWidget.java b/src/main/java/gregtech/common/gui/modularui/widget/CoverDataFollower_TextFieldWidget.java index 7d11656231..13628eb80f 100644 --- a/src/main/java/gregtech/common/gui/modularui/widget/CoverDataFollower_TextFieldWidget.java +++ b/src/main/java/gregtech/common/gui/modularui/widget/CoverDataFollower_TextFieldWidget.java @@ -15,7 +15,7 @@ import gregtech.api.gui.modularui.IDataFollowerWidget; import gregtech.api.util.ISerializableObject; public class CoverDataFollower_TextFieldWidget extends TextFieldWidget - implements IDataFollowerWidget { + implements IDataFollowerWidget { private Function dataToStateGetter; @@ -63,7 +63,7 @@ public class CoverDataFollower_TextFieldWidget ex public CoverDataFollower_TextFieldWidget setOnScrollNumbers(int baseStep, int ctrlStep, int shiftStep) { setOnScrollNumbers((val, direction) -> { int step = (GuiScreen.isShiftKeyDown() ? shiftStep : GuiScreen.isCtrlKeyDown() ? ctrlStep : baseStep) - * direction; + * direction; try { val = Math.addExact(val, step); } catch (ArithmeticException ignored) { @@ -82,7 +82,7 @@ public class CoverDataFollower_TextFieldWidget ex setOnScroll((text, direction) -> { int val = (int) MathExpression.parseMathExpression(text, -1); int step = (GuiScreen.isShiftKeyDown() ? shiftStep : GuiScreen.isCtrlKeyDown() ? ctrlStep : baseStep) - * direction; + * direction; try { val = Math.addExact(val, step); } catch (ArithmeticException ignored) { @@ -100,7 +100,7 @@ public class CoverDataFollower_TextFieldWidget ex public CoverDataFollower_TextFieldWidget setOnScrollNumbersLong(long baseStep, long ctrlStep, long shiftStep) { setOnScrollNumbersLong((val, direction) -> { long step = (GuiScreen.isShiftKeyDown() ? shiftStep : GuiScreen.isCtrlKeyDown() ? ctrlStep : baseStep) - * direction; + * direction; try { val = Math.addExact(val, step); } catch (ArithmeticException ignored) { diff --git a/src/main/java/gregtech/common/gui/modularui/widget/CoverDataFollower_ToggleButtonWidget.java b/src/main/java/gregtech/common/gui/modularui/widget/CoverDataFollower_ToggleButtonWidget.java index 0547609022..6f798a93d5 100644 --- a/src/main/java/gregtech/common/gui/modularui/widget/CoverDataFollower_ToggleButtonWidget.java +++ b/src/main/java/gregtech/common/gui/modularui/widget/CoverDataFollower_ToggleButtonWidget.java @@ -10,7 +10,7 @@ import gregtech.api.gui.modularui.IDataFollowerWidget; import gregtech.api.util.ISerializableObject; public class CoverDataFollower_ToggleButtonWidget extends CoverCycleButtonWidget - implements IDataFollowerWidget { + implements IDataFollowerWidget { private Function dataToStateGetter; @@ -44,21 +44,18 @@ public class CoverDataFollower_ToggleButtonWidget } public static CoverDataFollower_ToggleButtonWidget ofCheckAndCross() { - return new CoverDataFollower_ToggleButtonWidget().setToggleTexture( - GT_UITextures.OVERLAY_BUTTON_CHECKMARK, - GT_UITextures.OVERLAY_BUTTON_CROSS); + return new CoverDataFollower_ToggleButtonWidget() + .setToggleTexture(GT_UITextures.OVERLAY_BUTTON_CHECKMARK, GT_UITextures.OVERLAY_BUTTON_CROSS); } public static CoverDataFollower_ToggleButtonWidget ofCheck() { - return new CoverDataFollower_ToggleButtonWidget().setToggleTexture( - GT_UITextures.OVERLAY_BUTTON_CHECKMARK, - GT_UITextures.TRANSPARENT); + return new CoverDataFollower_ToggleButtonWidget() + .setToggleTexture(GT_UITextures.OVERLAY_BUTTON_CHECKMARK, GT_UITextures.TRANSPARENT); } public static CoverDataFollower_ToggleButtonWidget ofRedstone() { - return new CoverDataFollower_ToggleButtonWidget().setToggleTexture( - GT_UITextures.OVERLAY_BUTTON_REDSTONE_ON, - GT_UITextures.OVERLAY_BUTTON_REDSTONE_OFF); + return new CoverDataFollower_ToggleButtonWidget() + .setToggleTexture(GT_UITextures.OVERLAY_BUTTON_REDSTONE_ON, GT_UITextures.OVERLAY_BUTTON_REDSTONE_OFF); } public static CoverDataFollower_ToggleButtonWidget ofDisableable() { @@ -69,7 +66,7 @@ public class CoverDataFollower_ToggleButtonWidget * Disables clicking if button is already pressed. */ public static class CoverDataFollower_DisableableToggleButtonWidget - extends CoverDataFollower_ToggleButtonWidget { + extends CoverDataFollower_ToggleButtonWidget { public CoverDataFollower_DisableableToggleButtonWidget() { super(); diff --git a/src/main/java/gregtech/common/gui/modularui/widget/DataControllerWidget.java b/src/main/java/gregtech/common/gui/modularui/widget/DataControllerWidget.java index 4e9ac4a245..959edb80fd 100644 --- a/src/main/java/gregtech/common/gui/modularui/widget/DataControllerWidget.java +++ b/src/main/java/gregtech/common/gui/modularui/widget/DataControllerWidget.java @@ -152,7 +152,7 @@ public abstract class DataControllerWidget extends MultiChildWidget implement * @param widget type to add */ public > DataControllerWidget addFollower(W widget, - Function dataToStateGetter, BiFunction dataUpdater, Consumer applyForWidget) { + Function dataToStateGetter, BiFunction dataUpdater, Consumer applyForWidget) { widget.setDataToStateGetter(dataToStateGetter); widget.setStateSetter(state -> { T newData = dataUpdater.apply(getLastData(), state); diff --git a/src/main/java/gregtech/common/gui/modularui/widget/FluidDisplaySlotWidget.java b/src/main/java/gregtech/common/gui/modularui/widget/FluidDisplaySlotWidget.java index 4f9f19d49a..bc37f5c11a 100644 --- a/src/main/java/gregtech/common/gui/modularui/widget/FluidDisplaySlotWidget.java +++ b/src/main/java/gregtech/common/gui/modularui/widget/FluidDisplaySlotWidget.java @@ -141,16 +141,16 @@ public class FluidDisplaySlotWidget extends SlotWidget { ItemStack ret = null; if (actionRealClick == Action.TRANSFER) { if (fluidAccessConstructor == null) { - GT_Mod.GT_FML_LOGGER.warn( - "FluidDisplaySlotWidget is asked to transfer fluid, but fluidAccessConstructor is null!"); + GT_Mod.GT_FML_LOGGER + .warn("FluidDisplaySlotWidget is asked to transfer fluid, but fluidAccessConstructor is null!"); return null; } ret = transferFluid( - fluidAccessConstructor.get(), - getContext().getPlayer(), - clickData.mouseButton == 0, - canDrainGetter != null ? canDrainGetter.get() : true, - canFillGetter != null ? canFillGetter.get() : true); + fluidAccessConstructor.get(), + getContext().getPlayer(), + clickData.mouseButton == 0, + canDrainGetter != null ? canDrainGetter.get() : true, + canFillGetter != null ? canFillGetter.get() : true); } else if (actionRealClick == Action.LOCK) { lockFluid(getContext().getPlayer().inventory.getItemStack()); } @@ -160,7 +160,7 @@ public class FluidDisplaySlotWidget extends SlotWidget { } protected ItemStack transferFluid(IFluidAccess aFluidAccess, EntityPlayer aPlayer, boolean aProcessFullStack, - boolean aCanDrain, boolean aCanFill) { + boolean aCanDrain, boolean aCanFill) { ItemStack tStackHeld = aPlayer.inventory.getItemStack(); ItemStack tStackSizedOne = GT_Utility.copyAmount(1, tStackHeld); if (tStackSizedOne == null || tStackHeld.stackSize == 0) return null; @@ -235,11 +235,10 @@ public class FluidDisplaySlotWidget extends SlotWidget { } protected static ItemStack fillFluid(IFluidAccess aFluidAccess, EntityPlayer aPlayer, FluidStack aFluidHeld, - boolean aProcessFullStack) { + boolean aProcessFullStack) { // we are not using aMachine.fill() here any more, so we need to check for fluid type here ourselves if (aFluidAccess.get() != null && !aFluidAccess.get() - .isFluidEqual(aFluidHeld)) - return null; + .isFluidEqual(aFluidHeld)) return null; ItemStack tStackHeld = aPlayer.inventory.getItemStack(); ItemStack tStackSizedOne = GT_Utility.copyAmount(1, tStackHeld); if (tStackSizedOne == null) return null; @@ -340,10 +339,10 @@ public class FluidDisplaySlotWidget extends SlotWidget { mteToLock.lockFluid(true); mteToLock.setLockedFluidName(tFluid.getName()); GT_Utility.sendChatToPlayer( - getContext().getPlayer(), - String.format( - GT_Utility.trans("151.4", "Successfully locked Fluid to %s"), - new FluidStack(tFluid, 1).getLocalizedName())); + getContext().getPlayer(), + String.format( + GT_Utility.trans("151.4", "Successfully locked Fluid to %s"), + new FluidStack(tFluid, 1).getLocalizedName())); if (!isClient()) { mteToLock.onFluidLockPacketReceived(tFluid.getName()); @@ -418,7 +417,7 @@ public class FluidDisplaySlotWidget extends SlotWidget { * @param beforeRealClick (click data, this widget) -> if allow click */ public FluidDisplaySlotWidget setBeforeRealClick( - BiFunction beforeRealClick) { + BiFunction beforeRealClick) { this.beforeRealClick = beforeRealClick; return this; } @@ -429,7 +428,7 @@ public class FluidDisplaySlotWidget extends SlotWidget { * @param beforeDragAndDrop (click data, this widget) -> if allow click */ public FluidDisplaySlotWidget setBeforeDragAndDrop( - BiFunction beforeDragAndDrop) { + BiFunction beforeDragAndDrop) { this.beforeDragAndDrop = beforeDragAndDrop; return this; } diff --git a/src/main/java/gregtech/common/items/CombType.java b/src/main/java/gregtech/common/items/CombType.java index c646652e44..388b864151 100644 --- a/src/main/java/gregtech/common/items/CombType.java +++ b/src/main/java/gregtech/common/items/CombType.java @@ -29,7 +29,7 @@ public enum CombType { VIBRANTALLOY(14, "vibrantalloy", true, Materials.VibrantAlloy, 50, 0x86A12D, 0xC4F2AE, ItemComb.Voltage.HV), ENERGETICALLOY(15, "energeticalloy", true, Materials.EnergeticAlloy, 70, 0xFF9933, 0xFFAD5C, ItemComb.Voltage.HV), ELECTRICALSTEEL(16, "electricalsteel", true, Materials.ElectricalSteel, 90, 0x787878, 0xD8D8D8, - ItemComb.Voltage.LV), + ItemComb.Voltage.LV), DARKSTEEL(17, "darksteel", true, Materials.DarkSteel, 80, 0x252525, 0x443B44, ItemComb.Voltage.MV), PULSATINGIRON(18, "pulsatingiron", true, Materials.PulsatingIron, 80, 0x006600, 0x6DD284, ItemComb.Voltage.HV), STAINLESSSTEEL(19, "stainlesssteel", true, Materials.StainlessSteel, 75, 0x778899, 0xC8C8DC, ItemComb.Voltage.HV), @@ -127,7 +127,7 @@ public enum CombType { QUANTIUM(97, "quantium", true, Materials.Quantium, 50, 0x00FF00, 0x00D10B, ItemComb.Voltage.IV), ORIHARUKON(98, "oriharukon", true, Materials.Oriharukon, 50, 0x228B22, 0x677D68, ItemComb.Voltage.IV), MYSTERIOUSCRYSTAL(99, "mysteriouscrystal", true, Materials.MysteriousCrystal, 45, 0x3CB371, 0x16856C, - ItemComb.Voltage.LuV), + ItemComb.Voltage.LuV), BLACKPLUTONIUM(100, "blackplutonium", true, Materials.Quantium, 25, 0x000000, 0x323232, ItemComb.Voltage.LuV), TRINIUM(101, "trinium", true, Materials.Trinium, 25, 0xB0E0E6, 0xC8C8D2, ItemComb.Voltage.ZPM), @@ -150,9 +150,9 @@ public enum CombType { // Infinity COSMICNEUTRONIUM(117, "cosmicneutronium", true, Materials.CosmicNeutronium, 5, 0x484848, 0x323232, - ItemComb.Voltage.UV), + ItemComb.Voltage.UV), INFINITYCATALYST(118, "infinitycatalyst", true, Materials.InfinityCatalyst, 2, 0xFFFFFF, 0xFFFFFF, - ItemComb.Voltage.UHV), + ItemComb.Voltage.UHV), INFINITY(119, "infinity", true, Materials.Infinity, 1, 0xFFFFFF, 0xFFFFFF, ItemComb.Voltage.UEV), // HEE @@ -225,7 +225,7 @@ public enum CombType { } CombType(int id, String pName, boolean show, Materials material, int chance, int color1, int color2, - ItemComb.Voltage voltage) { + ItemComb.Voltage voltage) { if (id < 0 && !"INVALIDCOMB".equals(pName)) throw new IllegalArgumentException(); this.id = id; this.name = pName; @@ -235,11 +235,9 @@ public enum CombType { this.showInList = show; this.color = new int[] { color1, color2 }; this.localizedName = GT_LanguageManager.addStringLocalization( - "comb." + this.name, - this.name.substring(0, 1) - .toUpperCase() - + this.name.substring(1) - + " Comb"); + "comb." + this.name, + this.name.substring(0, 1) + .toUpperCase() + this.name.substring(1) + " Comb"); } public void setHidden() { @@ -269,9 +267,9 @@ public enum CombType { static { int biggestId = Arrays.stream(CombType.values()) - .mapToInt(CombType::getId) - .max() - .getAsInt(); + .mapToInt(CombType::getId) + .max() + .getAsInt(); VALUES = new CombType[biggestId + 1]; Arrays.fill(VALUES, _NULL); for (CombType type : CombType.values()) { diff --git a/src/main/java/gregtech/common/items/DropType.java b/src/main/java/gregtech/common/items/DropType.java index 198e1e3787..3ed3169294 100644 --- a/src/main/java/gregtech/common/items/DropType.java +++ b/src/main/java/gregtech/common/items/DropType.java @@ -16,8 +16,8 @@ public enum DropType { ENDERGOO("ender goo", true); private static int[][] colours = new int[][] { { 0x19191B, 0x303032 }, { 0xffc100, 0x00ff11 }, - { 0x144F5A, 0x2494A2 }, { 0xC11F1F, 0xEBB9B9 }, { 0x872836, 0xB8132C }, { 0xD02001, 0x9C0018 }, - { 0x003366, 0x0066BB }, { 0x1727b1, 0x008ce3 }, { 0xA005E7, 0x161616 }, }; + { 0x144F5A, 0x2494A2 }, { 0xC11F1F, 0xEBB9B9 }, { 0x872836, 0xB8132C }, { 0xD02001, 0x9C0018 }, + { 0x003366, 0x0066BB }, { 0x1727b1, 0x008ce3 }, { 0xA005E7, 0x161616 }, }; public boolean showInList; public Materials material; public int chance; @@ -35,11 +35,9 @@ public enum DropType { public String getName() { return GT_LanguageManager.addStringLocalization( - "drop." + this.name, - this.name.substring(0, 1) - .toUpperCase() - + this.name.substring(1) - + " Drop"); + "drop." + this.name, + this.name.substring(0, 1) + .toUpperCase() + this.name.substring(1) + " Drop"); } public int[] getColours() { diff --git a/src/main/java/gregtech/common/items/GT_DepletetCell_Item.java b/src/main/java/gregtech/common/items/GT_DepletetCell_Item.java index a7505f8953..df14adc39b 100644 --- a/src/main/java/gregtech/common/items/GT_DepletetCell_Item.java +++ b/src/main/java/gregtech/common/items/GT_DepletetCell_Item.java @@ -13,11 +13,11 @@ public class GT_DepletetCell_Item extends GT_RadioactiveCellIC_Item { @Override public void processChamber(IReactor paramIReactor, ItemStack paramItemStack, int paramInt1, int paramInt2, - boolean paramBoolean) {} + boolean paramBoolean) {} @Override public boolean acceptUraniumPulse(IReactor paramIReactor, ItemStack paramItemStack1, ItemStack paramItemStack2, - int paramInt1, int paramInt2, int paramInt3, int paramInt4, boolean paramBoolean) { + int paramInt1, int paramInt2, int paramInt3, int paramInt4, boolean paramBoolean) { return false; } @@ -38,7 +38,7 @@ public class GT_DepletetCell_Item extends GT_RadioactiveCellIC_Item { @Override public int alterHeat(IReactor paramIReactor, ItemStack paramItemStack, int paramInt1, int paramInt2, - int paramInt3) { + int paramInt3) { return 0; } diff --git a/src/main/java/gregtech/common/items/GT_FluidDisplayItem.java b/src/main/java/gregtech/common/items/GT_FluidDisplayItem.java index dd1dc60e06..4aec0ed5c7 100644 --- a/src/main/java/gregtech/common/items/GT_FluidDisplayItem.java +++ b/src/main/java/gregtech/common/items/GT_FluidDisplayItem.java @@ -42,7 +42,7 @@ public class GT_FluidDisplayItem extends GT_Generic_Item { protected void addAdditionalToolTips(List aList, ItemStack aStack, EntityPlayer aPlayer) { if (FluidRegistry.getFluid(aStack.getItemDamage()) != null) { String tChemicalFormula = getChemicalFormula( - new FluidStack(FluidRegistry.getFluid(aStack.getItemDamage()), 1)); + new FluidStack(FluidRegistry.getFluid(aStack.getItemDamage()), 1)); if (!tChemicalFormula.isEmpty()) aList.add(EnumChatFormatting.YELLOW + tChemicalFormula + EnumChatFormatting.RESET); } @@ -57,22 +57,20 @@ public class GT_FluidDisplayItem extends GT_Generic_Item { long tToolTipAmount = aNBT.getLong("mFluidDisplayAmount"); if (tToolTipAmount > 0L) { aList.add( - EnumChatFormatting.BLUE + "Amount: " - + GT_Utility.formatNumbers(tToolTipAmount) - + " L" - + EnumChatFormatting.GRAY); + EnumChatFormatting.BLUE + "Amount: " + + GT_Utility.formatNumbers(tToolTipAmount) + + " L" + + EnumChatFormatting.GRAY); } aList.add( - EnumChatFormatting.RED + "Temperature: " - + GT_Utility.formatNumbers(aNBT.getLong("mFluidDisplayHeat")) - + " K" - + EnumChatFormatting.GRAY); + EnumChatFormatting.RED + "Temperature: " + + GT_Utility.formatNumbers(aNBT.getLong("mFluidDisplayHeat")) + + " K" + + EnumChatFormatting.GRAY); aList.add( - EnumChatFormatting.GREEN - + String.format( - transItem("018", "State: %s"), - aNBT.getBoolean("mFluidState") ? "Gas" : "Liquid") - + EnumChatFormatting.GRAY); + EnumChatFormatting.GREEN + + String.format(transItem("018", "State: %s"), aNBT.getBoolean("mFluidState") ? "Gas" : "Liquid") + + EnumChatFormatting.GRAY); } } @@ -83,11 +81,11 @@ public class GT_FluidDisplayItem extends GT_Generic_Item { @Override public IIcon getIconFromDamage(int aMetaData) { return Stream.of(FluidRegistry.getFluid(aMetaData), FluidRegistry.WATER) - .filter(Objects::nonNull) - .map(Fluid::getStillIcon) - .filter(Objects::nonNull) - .findFirst() - .orElseThrow(IllegalStateException::new); + .filter(Objects::nonNull) + .map(Fluid::getStillIcon) + .filter(Objects::nonNull) + .findFirst() + .orElseThrow(IllegalStateException::new); } @Override @@ -137,7 +135,7 @@ public class GT_FluidDisplayItem extends GT_Generic_Item { List tTooltip = tContainer.getTooltip(null, true); for (Object tInfo : tTooltip) { if (!((String) tInfo).contains(" ") && !((String) tInfo).contains(":") - && tTooltip.indexOf(tInfo) != 0) { + && tTooltip.indexOf(tInfo) != 0) { return (String) tInfo; } } @@ -175,9 +173,9 @@ public class GT_FluidDisplayItem extends GT_Generic_Item { String tOreDictName = OreDictionary.getOreName(tOreDict); if (tOreDictName.startsWith("cell")) { return Materials.getRealMaterial( - tOreDictName.replace("cell", "") - .replace("Molten", "") - .replace("Plasma", "")); + tOreDictName.replace("cell", "") + .replace("Molten", "") + .replace("Plasma", "")); } } return Materials._NULL; diff --git a/src/main/java/gregtech/common/items/GT_IntegratedCircuit_Item.java b/src/main/java/gregtech/common/items/GT_IntegratedCircuit_Item.java index e970084691..76c5de859c 100644 --- a/src/main/java/gregtech/common/items/GT_IntegratedCircuit_Item.java +++ b/src/main/java/gregtech/common/items/GT_IntegratedCircuit_Item.java @@ -67,107 +67,107 @@ public class GT_IntegratedCircuit_Item extends GT_Generic_Item implements INetwo } GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Circuit_Integrated.getWithDamage(1L, 0L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { OrePrefixes.circuit.get(Materials.Basic) }); + ItemList.Circuit_Integrated.getWithDamage(1L, 0L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { OrePrefixes.circuit.get(Materials.Basic) }); long bits = GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE; GT_ModHandler.addCraftingRecipe( - ItemList.Circuit_Integrated.getWithDamage(1L, 1L), - bits, - new Object[] { "d ", " P ", aTextEmptyRow, 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); + ItemList.Circuit_Integrated.getWithDamage(1L, 1L), + bits, + new Object[] { "d ", " P ", aTextEmptyRow, 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); GT_ModHandler.addCraftingRecipe( - ItemList.Circuit_Integrated.getWithDamage(1L, 2L), - bits, - new Object[] { " d ", " P ", aTextEmptyRow, 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); + ItemList.Circuit_Integrated.getWithDamage(1L, 2L), + bits, + new Object[] { " d ", " P ", aTextEmptyRow, 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); GT_ModHandler.addCraftingRecipe( - ItemList.Circuit_Integrated.getWithDamage(1L, 3L), - bits, - new Object[] { " d", " P ", aTextEmptyRow, 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); + ItemList.Circuit_Integrated.getWithDamage(1L, 3L), + bits, + new Object[] { " d", " P ", aTextEmptyRow, 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); GT_ModHandler.addCraftingRecipe( - ItemList.Circuit_Integrated.getWithDamage(1L, 4L), - bits, - new Object[] { aTextEmptyRow, " Pd", aTextEmptyRow, 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); + ItemList.Circuit_Integrated.getWithDamage(1L, 4L), + bits, + new Object[] { aTextEmptyRow, " Pd", aTextEmptyRow, 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); GT_ModHandler.addCraftingRecipe( - ItemList.Circuit_Integrated.getWithDamage(1L, 5L), - bits, - new Object[] { aTextEmptyRow, " P ", " d", 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); + ItemList.Circuit_Integrated.getWithDamage(1L, 5L), + bits, + new Object[] { aTextEmptyRow, " P ", " d", 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); GT_ModHandler.addCraftingRecipe( - ItemList.Circuit_Integrated.getWithDamage(1L, 6L), - bits, - new Object[] { aTextEmptyRow, " P ", " d ", 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); + ItemList.Circuit_Integrated.getWithDamage(1L, 6L), + bits, + new Object[] { aTextEmptyRow, " P ", " d ", 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); GT_ModHandler.addCraftingRecipe( - ItemList.Circuit_Integrated.getWithDamage(1L, 7L), - bits, - new Object[] { aTextEmptyRow, " P ", "d ", 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); + ItemList.Circuit_Integrated.getWithDamage(1L, 7L), + bits, + new Object[] { aTextEmptyRow, " P ", "d ", 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); GT_ModHandler.addCraftingRecipe( - ItemList.Circuit_Integrated.getWithDamage(1L, 8L), - bits, - new Object[] { aTextEmptyRow, "dP ", aTextEmptyRow, 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); + ItemList.Circuit_Integrated.getWithDamage(1L, 8L), + bits, + new Object[] { aTextEmptyRow, "dP ", aTextEmptyRow, 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); GT_ModHandler.addCraftingRecipe( - ItemList.Circuit_Integrated.getWithDamage(1L, 9L), - bits, - new Object[] { "P d", aTextEmptyRow, aTextEmptyRow, 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); + ItemList.Circuit_Integrated.getWithDamage(1L, 9L), + bits, + new Object[] { "P d", aTextEmptyRow, aTextEmptyRow, 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); GT_ModHandler.addCraftingRecipe( - ItemList.Circuit_Integrated.getWithDamage(1L, 10L), - bits, - new Object[] { "P ", " d", aTextEmptyRow, 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); + ItemList.Circuit_Integrated.getWithDamage(1L, 10L), + bits, + new Object[] { "P ", " d", aTextEmptyRow, 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); GT_ModHandler.addCraftingRecipe( - ItemList.Circuit_Integrated.getWithDamage(1L, 11L), - bits, - new Object[] { "P ", aTextEmptyRow, " d", 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); + ItemList.Circuit_Integrated.getWithDamage(1L, 11L), + bits, + new Object[] { "P ", aTextEmptyRow, " d", 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); GT_ModHandler.addCraftingRecipe( - ItemList.Circuit_Integrated.getWithDamage(1L, 12L), - bits, - new Object[] { "P ", aTextEmptyRow, " d ", 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); + ItemList.Circuit_Integrated.getWithDamage(1L, 12L), + bits, + new Object[] { "P ", aTextEmptyRow, " d ", 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); GT_ModHandler.addCraftingRecipe( - ItemList.Circuit_Integrated.getWithDamage(1L, 13L), - bits, - new Object[] { " P", aTextEmptyRow, " d", 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); + ItemList.Circuit_Integrated.getWithDamage(1L, 13L), + bits, + new Object[] { " P", aTextEmptyRow, " d", 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); GT_ModHandler.addCraftingRecipe( - ItemList.Circuit_Integrated.getWithDamage(1L, 14L), - bits, - new Object[] { " P", aTextEmptyRow, " d ", 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); + ItemList.Circuit_Integrated.getWithDamage(1L, 14L), + bits, + new Object[] { " P", aTextEmptyRow, " d ", 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); GT_ModHandler.addCraftingRecipe( - ItemList.Circuit_Integrated.getWithDamage(1L, 15L), - bits, - new Object[] { " P", aTextEmptyRow, "d ", 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); + ItemList.Circuit_Integrated.getWithDamage(1L, 15L), + bits, + new Object[] { " P", aTextEmptyRow, "d ", 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); GT_ModHandler.addCraftingRecipe( - ItemList.Circuit_Integrated.getWithDamage(1L, 16L), - bits, - new Object[] { " P", "d ", aTextEmptyRow, 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); + ItemList.Circuit_Integrated.getWithDamage(1L, 16L), + bits, + new Object[] { " P", "d ", aTextEmptyRow, 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); GT_ModHandler.addCraftingRecipe( - ItemList.Circuit_Integrated.getWithDamage(1L, 17L), - bits, - new Object[] { aTextEmptyRow, aTextEmptyRow, "d P", 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); + ItemList.Circuit_Integrated.getWithDamage(1L, 17L), + bits, + new Object[] { aTextEmptyRow, aTextEmptyRow, "d P", 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); GT_ModHandler.addCraftingRecipe( - ItemList.Circuit_Integrated.getWithDamage(1L, 18L), - bits, - new Object[] { aTextEmptyRow, "d ", " P", 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); + ItemList.Circuit_Integrated.getWithDamage(1L, 18L), + bits, + new Object[] { aTextEmptyRow, "d ", " P", 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); GT_ModHandler.addCraftingRecipe( - ItemList.Circuit_Integrated.getWithDamage(1L, 19L), - bits, - new Object[] { "d ", aTextEmptyRow, " P", 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); + ItemList.Circuit_Integrated.getWithDamage(1L, 19L), + bits, + new Object[] { "d ", aTextEmptyRow, " P", 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); GT_ModHandler.addCraftingRecipe( - ItemList.Circuit_Integrated.getWithDamage(1L, 20L), - bits, - new Object[] { " d ", aTextEmptyRow, " P", 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); + ItemList.Circuit_Integrated.getWithDamage(1L, 20L), + bits, + new Object[] { " d ", aTextEmptyRow, " P", 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); GT_ModHandler.addCraftingRecipe( - ItemList.Circuit_Integrated.getWithDamage(1L, 21L), - bits, - new Object[] { "d ", aTextEmptyRow, "P ", 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); + ItemList.Circuit_Integrated.getWithDamage(1L, 21L), + bits, + new Object[] { "d ", aTextEmptyRow, "P ", 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); GT_ModHandler.addCraftingRecipe( - ItemList.Circuit_Integrated.getWithDamage(1L, 22L), - bits, - new Object[] { " d ", aTextEmptyRow, "P ", 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); + ItemList.Circuit_Integrated.getWithDamage(1L, 22L), + bits, + new Object[] { " d ", aTextEmptyRow, "P ", 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); GT_ModHandler.addCraftingRecipe( - ItemList.Circuit_Integrated.getWithDamage(1L, 23L), - bits, - new Object[] { " d", aTextEmptyRow, "P ", 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); + ItemList.Circuit_Integrated.getWithDamage(1L, 23L), + bits, + new Object[] { " d", aTextEmptyRow, "P ", 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); GT_ModHandler.addCraftingRecipe( - ItemList.Circuit_Integrated.getWithDamage(1L, 24L), - bits, - new Object[] { aTextEmptyRow, " d", "P ", 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); + ItemList.Circuit_Integrated.getWithDamage(1L, 24L), + bits, + new Object[] { aTextEmptyRow, " d", "P ", 'P', ItemList.Circuit_Integrated.getWildcard(1L) }); } private static String getModeString(int aMetaData) { @@ -189,23 +189,23 @@ public class GT_IntegratedCircuit_Item extends GT_Generic_Item implements INetwo public void addAdditionalToolTips(List aList, ItemStack aStack, EntityPlayer aPlayer) { super.addAdditionalToolTips(aList, aStack, aPlayer); aList.add( - GT_LanguageManager.addStringLocalization( - new StringBuilder().append(getUnlocalizedName()) - .append(".configuration") - .toString(), - "Configuration: ") + getConfigurationString(getDamage(aStack))); + GT_LanguageManager.addStringLocalization( + new StringBuilder().append(getUnlocalizedName()) + .append(".configuration") + .toString(), + "Configuration: ") + getConfigurationString(getDamage(aStack))); aList.add( - GT_LanguageManager.addStringLocalization( - new StringBuilder().append(getUnlocalizedName()) - .append(".tooltip.0") - .toString(), - "Right click to reconfigure")); + GT_LanguageManager.addStringLocalization( + new StringBuilder().append(getUnlocalizedName()) + .append(".tooltip.0") + .toString(), + "Right click to reconfigure")); aList.add( - GT_LanguageManager.addStringLocalization( - new StringBuilder().append(getUnlocalizedName()) - .append(".tooltip.1") - .toString(), - "Needs a screwdriver or circuit programming tool")); + GT_LanguageManager.addStringLocalization( + new StringBuilder().append(getUnlocalizedName()) + .append(".tooltip.1") + .toString(), + "Needs a screwdriver or circuit programming tool")); } @Override @@ -224,8 +224,8 @@ public class GT_IntegratedCircuit_Item extends GT_Generic_Item implements INetwo public void registerIcons(IIconRegister aIconRegister) { super.registerIcons(aIconRegister); for (int i = 0; i < mIconDamage.length; i++) { - mIconDamage[i] = aIconRegister.registerIcon( - GregTech.getResourcePath(GT_Config.troll ? "troll" : getUnlocalizedName() + "/" + i)); + mIconDamage[i] = aIconRegister + .registerIcon(GregTech.getResourcePath(GT_Config.troll ? "troll" : getUnlocalizedName() + "/" + i)); } if (GregTech_API.sPostloadFinished) { GT_Log.out.println("GT_Mod: Starting Item Icon Load Phase"); @@ -260,7 +260,7 @@ public class GT_IntegratedCircuit_Item extends GT_Generic_Item implements INetwo ItemStack[] mainInventory = player.inventory.mainInventory; mainInventory[toolIndex.getKey()] = toolIndex.getValue() - .apply(mainInventory[toolIndex.getKey()], player); + .apply(mainInventory[toolIndex.getKey()], player); } stack.setItemDamage(meta); @@ -280,18 +280,18 @@ public class GT_IntegratedCircuit_Item extends GT_Generic_Item implements INetwo if (configurator == null) { int count; try { - count = Integer.parseInt( - StatCollector.translateToLocal("GT5U.item.programmed_circuit.no_screwdriver.count")); + count = Integer + .parseInt(StatCollector.translateToLocal("GT5U.item.programmed_circuit.no_screwdriver.count")); } catch (NumberFormatException e) { player.addChatComponentMessage( - new ChatComponentText( - "Error in translation GT5U.item.programmed_circuit.no_screwdriver.count: " - + e.getMessage())); + new ChatComponentText( + "Error in translation GT5U.item.programmed_circuit.no_screwdriver.count: " + + e.getMessage())); count = 1; } player.addChatComponentMessage( - new ChatComponentTranslation( - "GT5U.item.programmed_circuit.no_screwdriver." + XSTR.XSTR_INSTANCE.nextInt(count))); + new ChatComponentTranslation( + "GT5U.item.programmed_circuit.no_screwdriver." + XSTR.XSTR_INSTANCE.nextInt(count))); return stack; } configuratorStack = player.inventory.mainInventory[configurator.getKey()]; @@ -302,14 +302,14 @@ public class GT_IntegratedCircuit_Item extends GT_Generic_Item implements INetwo private void openSelectorGui(ItemStack configurator, int meta, EntityPlayer player) { UIInfos.openClientUI( - player, - buildContext -> new SelectItemUIFactory( - StatCollector.translateToLocal("GT5U.item.programmed_circuit.select.header"), - configurator, - GT_IntegratedCircuit_Item::onConfigured, - ALL_VARIANTS, - meta, - true).createWindow(buildContext)); + player, + buildContext -> new SelectItemUIFactory( + StatCollector.translateToLocal("GT5U.item.programmed_circuit.select.header"), + configurator, + GT_IntegratedCircuit_Item::onConfigured, + ALL_VARIANTS, + meta, + true).createWindow(buildContext)); } private static void onConfigured(ItemStack stack) { @@ -319,17 +319,17 @@ public class GT_IntegratedCircuit_Item extends GT_Generic_Item implements INetwo } private static Pair> findConfiguratorInInv( - EntityPlayer player) { + EntityPlayer player) { ItemStack[] mainInventory = player.inventory.mainInventory; for (int j = 0, mainInventoryLength = mainInventory.length; j < mainInventoryLength; j++) { ItemStack toolStack = mainInventory[j]; if (!GT_Utility.isStackValid(toolStack)) continue; - for (Map.Entry, BiFunction> p : GregTech_API.sCircuitProgrammerList.entrySet()) + for (Map.Entry, BiFunction> p : GregTech_API.sCircuitProgrammerList + .entrySet()) if (p.getKey() - .test(toolStack)) - return Pair.of(j, p.getValue()); + .test(toolStack)) return Pair.of(j, p.getValue()); } return null; } diff --git a/src/main/java/gregtech/common/items/GT_MetaGenerated_Item_01.java b/src/main/java/gregtech/common/items/GT_MetaGenerated_Item_01.java index 7b42dc60f2..739a3c7b9e 100644 --- a/src/main/java/gregtech/common/items/GT_MetaGenerated_Item_01.java +++ b/src/main/java/gregtech/common/items/GT_MetaGenerated_Item_01.java @@ -50,9 +50,8 @@ import gregtech.common.items.behaviors.*; public class GT_MetaGenerated_Item_01 extends GT_MetaGenerated_Item_X32 { public static GT_MetaGenerated_Item_01 INSTANCE; - private final String mToolTipPurify = GT_LanguageManager.addStringLocalization( - "metaitem.01.tooltip.purify", - "Throw into Cauldron to get clean Dust"); + private final String mToolTipPurify = GT_LanguageManager + .addStringLocalization("metaitem.01.tooltip.purify", "Throw into Cauldron to get clean Dust"); private static final String aTextArrow = " A"; private static final String aTextStick = " S "; private static final String aTextFeather = "F "; @@ -67,39 +66,39 @@ public class GT_MetaGenerated_Item_01 extends GT_MetaGenerated_Item_X32 { public GT_MetaGenerated_Item_01() { super( - "metaitem.01", - OrePrefixes.dustTiny, - OrePrefixes.dustSmall, - OrePrefixes.dust, - OrePrefixes.dustImpure, - OrePrefixes.dustPure, - OrePrefixes.crushed, - OrePrefixes.crushedPurified, - OrePrefixes.crushedCentrifuged, - OrePrefixes.gem, - OrePrefixes.nugget, - null, - OrePrefixes.ingot, - OrePrefixes.ingotHot, - OrePrefixes.ingotDouble, - OrePrefixes.ingotTriple, - OrePrefixes.ingotQuadruple, - OrePrefixes.ingotQuintuple, - OrePrefixes.plate, - OrePrefixes.plateDouble, - OrePrefixes.plateTriple, - OrePrefixes.plateQuadruple, - OrePrefixes.plateQuintuple, - OrePrefixes.plateDense, - OrePrefixes.stick, - OrePrefixes.lens, - OrePrefixes.round, - OrePrefixes.bolt, - OrePrefixes.screw, - OrePrefixes.ring, - OrePrefixes.foil, - OrePrefixes.cell, - OrePrefixes.cellPlasma); + "metaitem.01", + OrePrefixes.dustTiny, + OrePrefixes.dustSmall, + OrePrefixes.dust, + OrePrefixes.dustImpure, + OrePrefixes.dustPure, + OrePrefixes.crushed, + OrePrefixes.crushedPurified, + OrePrefixes.crushedCentrifuged, + OrePrefixes.gem, + OrePrefixes.nugget, + null, + OrePrefixes.ingot, + OrePrefixes.ingotHot, + OrePrefixes.ingotDouble, + OrePrefixes.ingotTriple, + OrePrefixes.ingotQuadruple, + OrePrefixes.ingotQuintuple, + OrePrefixes.plate, + OrePrefixes.plateDouble, + OrePrefixes.plateTriple, + OrePrefixes.plateQuadruple, + OrePrefixes.plateQuintuple, + OrePrefixes.plateDense, + OrePrefixes.stick, + OrePrefixes.lens, + OrePrefixes.round, + OrePrefixes.bolt, + OrePrefixes.screw, + OrePrefixes.ring, + OrePrefixes.foil, + OrePrefixes.cell, + OrePrefixes.cellPlasma); INSTANCE = this; int tLastID = 0; @@ -107,570 +106,565 @@ public class GT_MetaGenerated_Item_01 extends GT_MetaGenerated_Item_X32 { setBurnValue(17000 + Materials.Wood.mMetaItemSubID, 1600); GT_OreDictUnificator.addToBlacklist(new ItemStack(this, 1, 17000 + Materials.Wood.mMetaItemSubID)); GT_ModHandler.addCompressionRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 8L), - new ItemStack(this, 1, 17000 + Materials.Wood.mMetaItemSubID)); + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 8L), + new ItemStack(this, 1, 17000 + Materials.Wood.mMetaItemSubID)); GregTech_API.registerCover( - new ItemStack(this, 1, 17000 + Materials.Wood.mMetaItemSubID), - TextureFactory.of(COVER_WOOD_PLATE), - null); + new ItemStack(this, 1, 17000 + Materials.Wood.mMetaItemSubID), + TextureFactory.of(COVER_WOOD_PLATE), + null); ItemStack tStack = new ItemStack(this, 1, 17000 + Materials.Wood.mMetaItemSubID); tStack.setStackDisplayName("The holy Planks of Sengir"); GT_Utility.ItemNBT.addEnchantment(tStack, Enchantment.smite, 10); GT_ModHandler.addCraftingRecipe( - tStack, - GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { "XXX", "XDX", "XXX", 'X', OrePrefixes.gem.get(Materials.NetherStar), 'D', - new ItemStack(Blocks.dragon_egg, 1, 32767) }); + tStack, + GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { "XXX", "XDX", "XXX", 'X', OrePrefixes.gem.get(Materials.NetherStar), 'D', + new ItemStack(Blocks.dragon_egg, 1, 32767) }); ItemList.Credit_Greg_Copper.set(addItem(tLastID = 0, "Copper GT Credit", "0.125 Credits")); ItemList.Credit_Greg_Cupronickel.set( - addItem( - tLastID = 1, - "Cupronickel GT Credit", - "1 Credit", - new ItemData(Materials.Cupronickel, 907200L))); + addItem(tLastID = 1, "Cupronickel GT Credit", "1 Credit", new ItemData(Materials.Cupronickel, 907200L))); ItemList.Credit_Greg_Silver.set( - addItem( - tLastID = 2, - "Silver GT Credit", - "8 Credits", - new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 1L))); + addItem( + tLastID = 2, + "Silver GT Credit", + "8 Credits", + new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 1L))); ItemList.Credit_Greg_Gold.set(addItem(tLastID = 3, "Gold GT Credit", "64 Credits")); ItemList.Credit_Greg_Platinum.set(addItem(tLastID = 4, "Platinum GT Credit", "512 Credits")); ItemList.Credit_Greg_Osmium.set(addItem(tLastID = 5, "Osmium GT Credit", "4,096 Credits")); ItemList.Credit_Greg_Naquadah.set(addItem(tLastID = 6, "Naquadah GT Credit", "32,768 Credits")); ItemList.Credit_Greg_Neutronium.set(addItem(tLastID = 7, "Neutronium GT Credit", "262,144 Credits")); ItemList.Coin_Gold_Ancient.set( - addItem( - tLastID = 8, - "Ancient Gold Coin", - "Found in ancient Ruins", - new ItemData(Materials.Gold, 907200L), - new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 8L))); + addItem( + tLastID = 8, + "Ancient Gold Coin", + "Found in ancient Ruins", + new ItemData(Materials.Gold, 907200L), + new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 8L))); ItemList.Coin_Doge.set( - addItem( - tLastID = 9, - "Doge Coin", - "wow much coin how money so crypto plz mine v rich very currency wow", - new ItemData(Materials.Brass, 907200L), - new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 1L))); + addItem( + tLastID = 9, + "Doge Coin", + "wow much coin how money so crypto plz mine v rich very currency wow", + new ItemData(Materials.Brass, 907200L), + new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 1L))); ItemList.Coin_Chocolate.set( - addItem( - tLastID = 10, - "Chocolate Coin", - "Wrapped in Gold", - new ItemData(Materials.Gold, OrePrefixes.foil.mMaterialAmount), - new GT_FoodStat( - 1, - 0.1F, - EnumAction.eat, - GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Gold, 1L), - true, - false, - false, - Potion.moveSpeed.id, - 200, - 1, - 100))); + addItem( + tLastID = 10, + "Chocolate Coin", + "Wrapped in Gold", + new ItemData(Materials.Gold, OrePrefixes.foil.mMaterialAmount), + new GT_FoodStat( + 1, + 0.1F, + EnumAction.eat, + GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Gold, 1L), + true, + false, + false, + Potion.moveSpeed.id, + 200, + 1, + 100))); ItemList.Credit_Copper.set(addItem(tLastID = 11, "Industrial Copper Credit", "0.125 Credits")); ItemList.Credit_Silver.set( - addItem( - tLastID = 13, - "Industrial Silver Credit", - "8 Credits", - new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 1L))); + addItem( + tLastID = 13, + "Industrial Silver Credit", + "8 Credits", + new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 1L))); ItemList.Credit_Gold.set(addItem(tLastID = 14, "Industrial Gold Credit", "64 Credits")); ItemList.Credit_Platinum.set(addItem(tLastID = 15, "Industrial Platinum Credit", "512 Credits")); ItemList.Credit_Osmium.set(addItem(tLastID = 16, "Industrial Osmium Credit", "4096 Credits")); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Coin_Chocolate.get(1L), - new Object[] { OrePrefixes.dust.get(Materials.Cocoa), OrePrefixes.dust.get(Materials.Milk), - OrePrefixes.dust.get(Materials.Sugar), OrePrefixes.foil.get(Materials.Gold) }); + ItemList.Coin_Chocolate.get(1L), + new Object[] { OrePrefixes.dust.get(Materials.Cocoa), OrePrefixes.dust.get(Materials.Milk), + OrePrefixes.dust.get(Materials.Sugar), OrePrefixes.foil.get(Materials.Gold) }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Credit_Copper.get(8L), - GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { ItemList.Credit_Iron }); + ItemList.Credit_Copper.get(8L), + GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { ItemList.Credit_Iron }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Credit_Iron.get(8L), - GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { ItemList.Credit_Silver }); + ItemList.Credit_Iron.get(8L), + GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { ItemList.Credit_Silver }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Credit_Silver.get(8L), - GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { ItemList.Credit_Gold }); + ItemList.Credit_Silver.get(8L), + GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { ItemList.Credit_Gold }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Credit_Gold.get(8L), - GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { ItemList.Credit_Platinum }); + ItemList.Credit_Gold.get(8L), + GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { ItemList.Credit_Platinum }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Credit_Platinum.get(8L), - GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { ItemList.Credit_Osmium }); + ItemList.Credit_Platinum.get(8L), + GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { ItemList.Credit_Osmium }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Credit_Iron.get(1L), - GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { ItemList.Credit_Copper, ItemList.Credit_Copper, ItemList.Credit_Copper, - ItemList.Credit_Copper, ItemList.Credit_Copper, ItemList.Credit_Copper, ItemList.Credit_Copper, - ItemList.Credit_Copper }); + ItemList.Credit_Iron.get(1L), + GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { ItemList.Credit_Copper, ItemList.Credit_Copper, ItemList.Credit_Copper, + ItemList.Credit_Copper, ItemList.Credit_Copper, ItemList.Credit_Copper, ItemList.Credit_Copper, + ItemList.Credit_Copper }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Credit_Silver.get(1L), - GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { ItemList.Credit_Iron, ItemList.Credit_Iron, ItemList.Credit_Iron, ItemList.Credit_Iron, - ItemList.Credit_Iron, ItemList.Credit_Iron, ItemList.Credit_Iron, ItemList.Credit_Iron }); + ItemList.Credit_Silver.get(1L), + GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { ItemList.Credit_Iron, ItemList.Credit_Iron, ItemList.Credit_Iron, ItemList.Credit_Iron, + ItemList.Credit_Iron, ItemList.Credit_Iron, ItemList.Credit_Iron, ItemList.Credit_Iron }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Credit_Gold.get(1L), - GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { ItemList.Credit_Silver, ItemList.Credit_Silver, ItemList.Credit_Silver, - ItemList.Credit_Silver, ItemList.Credit_Silver, ItemList.Credit_Silver, ItemList.Credit_Silver, - ItemList.Credit_Silver }); + ItemList.Credit_Gold.get(1L), + GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { ItemList.Credit_Silver, ItemList.Credit_Silver, ItemList.Credit_Silver, + ItemList.Credit_Silver, ItemList.Credit_Silver, ItemList.Credit_Silver, ItemList.Credit_Silver, + ItemList.Credit_Silver }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Credit_Platinum.get(1L), - GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { ItemList.Credit_Gold, ItemList.Credit_Gold, ItemList.Credit_Gold, ItemList.Credit_Gold, - ItemList.Credit_Gold, ItemList.Credit_Gold, ItemList.Credit_Gold, ItemList.Credit_Gold }); + ItemList.Credit_Platinum.get(1L), + GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { ItemList.Credit_Gold, ItemList.Credit_Gold, ItemList.Credit_Gold, ItemList.Credit_Gold, + ItemList.Credit_Gold, ItemList.Credit_Gold, ItemList.Credit_Gold, ItemList.Credit_Gold }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Credit_Osmium.get(1L), - GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { ItemList.Credit_Platinum, ItemList.Credit_Platinum, ItemList.Credit_Platinum, - ItemList.Credit_Platinum, ItemList.Credit_Platinum, ItemList.Credit_Platinum, - ItemList.Credit_Platinum, ItemList.Credit_Platinum }); + ItemList.Credit_Osmium.get(1L), + GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { ItemList.Credit_Platinum, ItemList.Credit_Platinum, ItemList.Credit_Platinum, + ItemList.Credit_Platinum, ItemList.Credit_Platinum, ItemList.Credit_Platinum, ItemList.Credit_Platinum, + ItemList.Credit_Platinum }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Credit_Greg_Copper.get(8L), - GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { ItemList.Credit_Greg_Cupronickel }); + ItemList.Credit_Greg_Copper.get(8L), + GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { ItemList.Credit_Greg_Cupronickel }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Credit_Greg_Cupronickel.get(8L), - GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { ItemList.Credit_Greg_Silver }); + ItemList.Credit_Greg_Cupronickel.get(8L), + GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { ItemList.Credit_Greg_Silver }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Credit_Greg_Silver.get(8L), - GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { ItemList.Credit_Greg_Gold }); + ItemList.Credit_Greg_Silver.get(8L), + GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { ItemList.Credit_Greg_Gold }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Credit_Greg_Gold.get(8L), - GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { ItemList.Credit_Greg_Platinum }); + ItemList.Credit_Greg_Gold.get(8L), + GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { ItemList.Credit_Greg_Platinum }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Credit_Greg_Platinum.get(8L), - GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { ItemList.Credit_Greg_Osmium }); + ItemList.Credit_Greg_Platinum.get(8L), + GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { ItemList.Credit_Greg_Osmium }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Credit_Greg_Osmium.get(8L), - GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { ItemList.Credit_Greg_Naquadah }); + ItemList.Credit_Greg_Osmium.get(8L), + GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { ItemList.Credit_Greg_Naquadah }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Credit_Greg_Naquadah.get(8L), - GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { ItemList.Credit_Greg_Neutronium }); + ItemList.Credit_Greg_Naquadah.get(8L), + GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { ItemList.Credit_Greg_Neutronium }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Credit_Greg_Cupronickel.get(1L), - GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { ItemList.Credit_Greg_Copper, ItemList.Credit_Greg_Copper, ItemList.Credit_Greg_Copper, - ItemList.Credit_Greg_Copper, ItemList.Credit_Greg_Copper, ItemList.Credit_Greg_Copper, - ItemList.Credit_Greg_Copper, ItemList.Credit_Greg_Copper }); + ItemList.Credit_Greg_Cupronickel.get(1L), + GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { ItemList.Credit_Greg_Copper, ItemList.Credit_Greg_Copper, ItemList.Credit_Greg_Copper, + ItemList.Credit_Greg_Copper, ItemList.Credit_Greg_Copper, ItemList.Credit_Greg_Copper, + ItemList.Credit_Greg_Copper, ItemList.Credit_Greg_Copper }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Credit_Greg_Silver.get(1L), - GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { ItemList.Credit_Greg_Cupronickel, ItemList.Credit_Greg_Cupronickel, - ItemList.Credit_Greg_Cupronickel, ItemList.Credit_Greg_Cupronickel, - ItemList.Credit_Greg_Cupronickel, ItemList.Credit_Greg_Cupronickel, - ItemList.Credit_Greg_Cupronickel, ItemList.Credit_Greg_Cupronickel }); + ItemList.Credit_Greg_Silver.get(1L), + GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { ItemList.Credit_Greg_Cupronickel, ItemList.Credit_Greg_Cupronickel, + ItemList.Credit_Greg_Cupronickel, ItemList.Credit_Greg_Cupronickel, ItemList.Credit_Greg_Cupronickel, + ItemList.Credit_Greg_Cupronickel, ItemList.Credit_Greg_Cupronickel, ItemList.Credit_Greg_Cupronickel }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Credit_Greg_Gold.get(1L), - GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { ItemList.Credit_Greg_Silver, ItemList.Credit_Greg_Silver, ItemList.Credit_Greg_Silver, - ItemList.Credit_Greg_Silver, ItemList.Credit_Greg_Silver, ItemList.Credit_Greg_Silver, - ItemList.Credit_Greg_Silver, ItemList.Credit_Greg_Silver }); + ItemList.Credit_Greg_Gold.get(1L), + GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { ItemList.Credit_Greg_Silver, ItemList.Credit_Greg_Silver, ItemList.Credit_Greg_Silver, + ItemList.Credit_Greg_Silver, ItemList.Credit_Greg_Silver, ItemList.Credit_Greg_Silver, + ItemList.Credit_Greg_Silver, ItemList.Credit_Greg_Silver }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Credit_Greg_Platinum.get(1L), - GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { ItemList.Credit_Greg_Gold, ItemList.Credit_Greg_Gold, ItemList.Credit_Greg_Gold, - ItemList.Credit_Greg_Gold, ItemList.Credit_Greg_Gold, ItemList.Credit_Greg_Gold, - ItemList.Credit_Greg_Gold, ItemList.Credit_Greg_Gold }); + ItemList.Credit_Greg_Platinum.get(1L), + GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { ItemList.Credit_Greg_Gold, ItemList.Credit_Greg_Gold, ItemList.Credit_Greg_Gold, + ItemList.Credit_Greg_Gold, ItemList.Credit_Greg_Gold, ItemList.Credit_Greg_Gold, + ItemList.Credit_Greg_Gold, ItemList.Credit_Greg_Gold }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Credit_Greg_Osmium.get(1L), - GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { ItemList.Credit_Greg_Platinum, ItemList.Credit_Greg_Platinum, - ItemList.Credit_Greg_Platinum, ItemList.Credit_Greg_Platinum, ItemList.Credit_Greg_Platinum, - ItemList.Credit_Greg_Platinum, ItemList.Credit_Greg_Platinum, ItemList.Credit_Greg_Platinum }); + ItemList.Credit_Greg_Osmium.get(1L), + GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { ItemList.Credit_Greg_Platinum, ItemList.Credit_Greg_Platinum, ItemList.Credit_Greg_Platinum, + ItemList.Credit_Greg_Platinum, ItemList.Credit_Greg_Platinum, ItemList.Credit_Greg_Platinum, + ItemList.Credit_Greg_Platinum, ItemList.Credit_Greg_Platinum }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Credit_Greg_Naquadah.get(1L), - GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { ItemList.Credit_Greg_Osmium, ItemList.Credit_Greg_Osmium, ItemList.Credit_Greg_Osmium, - ItemList.Credit_Greg_Osmium, ItemList.Credit_Greg_Osmium, ItemList.Credit_Greg_Osmium, - ItemList.Credit_Greg_Osmium, ItemList.Credit_Greg_Osmium }); + ItemList.Credit_Greg_Naquadah.get(1L), + GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { ItemList.Credit_Greg_Osmium, ItemList.Credit_Greg_Osmium, ItemList.Credit_Greg_Osmium, + ItemList.Credit_Greg_Osmium, ItemList.Credit_Greg_Osmium, ItemList.Credit_Greg_Osmium, + ItemList.Credit_Greg_Osmium, ItemList.Credit_Greg_Osmium }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Credit_Greg_Neutronium.get(1L), - GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { ItemList.Credit_Greg_Naquadah, ItemList.Credit_Greg_Naquadah, - ItemList.Credit_Greg_Naquadah, ItemList.Credit_Greg_Naquadah, ItemList.Credit_Greg_Naquadah, - ItemList.Credit_Greg_Naquadah, ItemList.Credit_Greg_Naquadah, ItemList.Credit_Greg_Naquadah }); + ItemList.Credit_Greg_Neutronium.get(1L), + GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { ItemList.Credit_Greg_Naquadah, ItemList.Credit_Greg_Naquadah, ItemList.Credit_Greg_Naquadah, + ItemList.Credit_Greg_Naquadah, ItemList.Credit_Greg_Naquadah, ItemList.Credit_Greg_Naquadah, + ItemList.Credit_Greg_Naquadah, ItemList.Credit_Greg_Naquadah }); ItemList.Component_Minecart_Wheels_Iron.set( - addItem( - tLastID = 100, - "Iron Minecart Wheels", - "To get things rolling", - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L))); + addItem( + tLastID = 100, + "Iron Minecart Wheels", + "To get things rolling", + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L))); ItemList.Component_Minecart_Wheels_Steel.set( - addItem( - tLastID = 101, - "Steel Minecart Wheels", - "To get things rolling", - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L))); + addItem( + tLastID = 101, + "Steel Minecart Wheels", + "To get things rolling", + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L))); GT_ModHandler.addCraftingRecipe( - ItemList.Component_Minecart_Wheels_Iron.get(1L), - GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { " h ", "RSR", " w ", 'R', OrePrefixes.ring.get(Materials.AnyIron), 'S', - OrePrefixes.stick.get(Materials.AnyIron) }); + ItemList.Component_Minecart_Wheels_Iron.get(1L), + GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { " h ", "RSR", " w ", 'R', OrePrefixes.ring.get(Materials.AnyIron), 'S', + OrePrefixes.stick.get(Materials.AnyIron) }); GT_ModHandler.addCraftingRecipe( - ItemList.Component_Minecart_Wheels_Steel.get(1L), - GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { " h ", "RSR", " w ", 'R', OrePrefixes.ring.get(Materials.Steel), 'S', - OrePrefixes.stick.get(Materials.Steel) }); + ItemList.Component_Minecart_Wheels_Steel.get(1L), + GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { " h ", "RSR", " w ", 'R', OrePrefixes.ring.get(Materials.Steel), 'S', + OrePrefixes.stick.get(Materials.Steel) }); ItemList.CompressedFireclay.set(addItem(tLastID = 110, "Compressed Fireclay", "Brick-shaped")); ItemList.Firebrick.set(addItem(tLastID = 111, "Firebrick", "Heat resistant")); ItemList.Arrow_Head_Glass_Emtpy.set( - addItem( - tLastID = 200, - "Empty Glass Arrow Head", - "Fill with Potions before use", - new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L))); + addItem( + tLastID = 200, + "Empty Glass Arrow Head", + "Fill with Potions before use", + new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L))); ItemList.Arrow_Head_Glass_Poison.set( - addItem( - tLastID = 201, - "Poison Glass Arrow Head", - "Glass Arrow filled with Poison", - new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L))); + addItem( + tLastID = 201, + "Poison Glass Arrow Head", + "Glass Arrow filled with Poison", + new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L))); ItemList.Arrow_Head_Glass_Poison_Long.set( - addItem( - tLastID = 202, - "Poison Glass Arrow Head", - "Glass Arrow filled with stretched Poison", - new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L))); + addItem( + tLastID = 202, + "Poison Glass Arrow Head", + "Glass Arrow filled with stretched Poison", + new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L))); ItemList.Arrow_Head_Glass_Poison_Strong.set( - addItem( - tLastID = 203, - "Poison Glass Arrow Head", - "Glass Arrow filled with strong Poison", - new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L))); + addItem( + tLastID = 203, + "Poison Glass Arrow Head", + "Glass Arrow filled with strong Poison", + new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L))); ItemList.Arrow_Head_Glass_Slowness.set( - addItem( - tLastID = 204, - "Slowness Glass Arrow Head", - "Glass Arrow filled with Laming Brew", - new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L))); + addItem( + tLastID = 204, + "Slowness Glass Arrow Head", + "Glass Arrow filled with Laming Brew", + new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L))); ItemList.Arrow_Head_Glass_Slowness_Long.set( - addItem( - tLastID = 205, - "Slowness Glass Arrow Head", - "Glass Arrow filled with stretched Laming Brew", - new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L))); + addItem( + tLastID = 205, + "Slowness Glass Arrow Head", + "Glass Arrow filled with stretched Laming Brew", + new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L))); ItemList.Arrow_Head_Glass_Weakness.set( - addItem( - tLastID = 206, - "Weakness Glass Arrow Head", - "Glass Arrow filled with Weakening Brew", - new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L))); + addItem( + tLastID = 206, + "Weakness Glass Arrow Head", + "Glass Arrow filled with Weakening Brew", + new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L))); ItemList.Arrow_Head_Glass_Weakness_Long.set( - addItem( - tLastID = 207, - "Weakness Glass Arrow Head", - "Glass Arrow filled with stretched Weakening Brew", - new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L))); + addItem( + tLastID = 207, + "Weakness Glass Arrow Head", + "Glass Arrow filled with stretched Weakening Brew", + new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L))); ItemList.Arrow_Head_Glass_Holy_Water.set( - addItem( - tLastID = 208, - "Holy Water Glass Arrow Head", - "Glass Arrow filled with Holy Water", - new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AURAM, 1L))); + addItem( + tLastID = 208, + "Holy Water Glass Arrow Head", + "Glass Arrow filled with Holy Water", + new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AURAM, 1L))); ItemList.Arrow_Wooden_Glass_Emtpy.set( - addItem( - tLastID = 225, - "Regular Glass Vial Arrow", - "Empty Glass Arrow", - new Behaviour_Arrow_Potion(1.0F, 6.0F), - new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L))); + addItem( + tLastID = 225, + "Regular Glass Vial Arrow", + "Empty Glass Arrow", + new Behaviour_Arrow_Potion(1.0F, 6.0F), + new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L))); ItemList.Arrow_Wooden_Glass_Poison.set( - addItem( - tLastID = 226, - "Regular Poison Arrow", - "Glass Arrow filled with Poison", - new Behaviour_Arrow_Potion(1.0F, 6.0F, Potion.poison.id, 450, 0, 100), - new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L))); + addItem( + tLastID = 226, + "Regular Poison Arrow", + "Glass Arrow filled with Poison", + new Behaviour_Arrow_Potion(1.0F, 6.0F, Potion.poison.id, 450, 0, 100), + new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L))); ItemList.Arrow_Wooden_Glass_Poison_Long.set( - addItem( - tLastID = 227, - "Regular Poison Arrow", - "Glass Arrow filled with stretched Poison", - new Behaviour_Arrow_Potion(1.0F, 6.0F, Potion.poison.id, 900, 0, 100), - new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L))); + addItem( + tLastID = 227, + "Regular Poison Arrow", + "Glass Arrow filled with stretched Poison", + new Behaviour_Arrow_Potion(1.0F, 6.0F, Potion.poison.id, 900, 0, 100), + new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L))); ItemList.Arrow_Wooden_Glass_Poison_Strong.set( - addItem( - tLastID = 228, - "Regular Poison Arrow", - "Glass Arrow filled with strong Poison", - new Behaviour_Arrow_Potion(1.0F, 6.0F, Potion.poison.id, 450, 1, 100), - new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L))); + addItem( + tLastID = 228, + "Regular Poison Arrow", + "Glass Arrow filled with strong Poison", + new Behaviour_Arrow_Potion(1.0F, 6.0F, Potion.poison.id, 450, 1, 100), + new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L))); ItemList.Arrow_Wooden_Glass_Slowness.set( - addItem( - tLastID = 229, - "Regular Slowness Arrow", - "Glass Arrow filled with Laming Brew", - new Behaviour_Arrow_Potion(1.0F, 6.0F, Potion.moveSlowdown.id, 900, 0, 100), - new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L))); + addItem( + tLastID = 229, + "Regular Slowness Arrow", + "Glass Arrow filled with Laming Brew", + new Behaviour_Arrow_Potion(1.0F, 6.0F, Potion.moveSlowdown.id, 900, 0, 100), + new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L))); ItemList.Arrow_Wooden_Glass_Slowness_Long.set( - addItem( - tLastID = 230, - "Regular Slowness Arrow", - "Glass Arrow filled with stretched Laming Brew", - new Behaviour_Arrow_Potion(1.0F, 6.0F, Potion.moveSlowdown.id, 1800, 0, 100), - new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L))); + addItem( + tLastID = 230, + "Regular Slowness Arrow", + "Glass Arrow filled with stretched Laming Brew", + new Behaviour_Arrow_Potion(1.0F, 6.0F, Potion.moveSlowdown.id, 1800, 0, 100), + new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L))); ItemList.Arrow_Wooden_Glass_Weakness.set( - addItem( - tLastID = 231, - "Regular Weakness Arrow", - "Glass Arrow filled with Weakening Brew", - new Behaviour_Arrow_Potion(1.0F, 6.0F, Potion.weakness.id, 900, 0, 100), - new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L))); + addItem( + tLastID = 231, + "Regular Weakness Arrow", + "Glass Arrow filled with Weakening Brew", + new Behaviour_Arrow_Potion(1.0F, 6.0F, Potion.weakness.id, 900, 0, 100), + new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L))); ItemList.Arrow_Wooden_Glass_Weakness_Long.set( - addItem( - tLastID = 232, - "Regular Weakness Arrow", - "Glass Arrow filled with stretched Weakening Brew", - new Behaviour_Arrow_Potion(1.0F, 6.0F, Potion.weakness.id, 1800, 0, 100), - new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L))); + addItem( + tLastID = 232, + "Regular Weakness Arrow", + "Glass Arrow filled with stretched Weakening Brew", + new Behaviour_Arrow_Potion(1.0F, 6.0F, Potion.weakness.id, 1800, 0, 100), + new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L))); ItemList.Arrow_Wooden_Glass_Holy_Water.set( - addItem( - tLastID = 233, - "Regular Holy Water Arrow", - "Glass Arrow filled with Holy Water", - new Behaviour_Arrow_Potion(1.0F, 6.0F, Enchantment.smite, 10), - new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AURAM, 1L))); + addItem( + tLastID = 233, + "Regular Holy Water Arrow", + "Glass Arrow filled with Holy Water", + new Behaviour_Arrow_Potion(1.0F, 6.0F, Enchantment.smite, 10), + new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AURAM, 1L))); ItemList.Arrow_Plastic_Glass_Emtpy.set( - addItem( - tLastID = 250, - "Light Glass Vial Arrow", - "Empty Glass Arrow", - new Behaviour_Arrow_Potion(1.5F, 6.0F), - new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L))); + addItem( + tLastID = 250, + "Light Glass Vial Arrow", + "Empty Glass Arrow", + new Behaviour_Arrow_Potion(1.5F, 6.0F), + new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L))); ItemList.Arrow_Plastic_Glass_Poison.set( - addItem( - tLastID = 251, - "Light Poison Arrow", - "Glass Arrow filled with Poison", - new Behaviour_Arrow_Potion(1.5F, 6.0F, Potion.poison.id, 450, 0, 100), - new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L))); + addItem( + tLastID = 251, + "Light Poison Arrow", + "Glass Arrow filled with Poison", + new Behaviour_Arrow_Potion(1.5F, 6.0F, Potion.poison.id, 450, 0, 100), + new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L))); ItemList.Arrow_Plastic_Glass_Poison_Long.set( - addItem( - tLastID = 252, - "Light Poison Arrow", - "Glass Arrow filled with stretched Poison", - new Behaviour_Arrow_Potion(1.5F, 6.0F, Potion.poison.id, 900, 0, 100), - new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L))); + addItem( + tLastID = 252, + "Light Poison Arrow", + "Glass Arrow filled with stretched Poison", + new Behaviour_Arrow_Potion(1.5F, 6.0F, Potion.poison.id, 900, 0, 100), + new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L))); ItemList.Arrow_Plastic_Glass_Poison_Strong.set( - addItem( - tLastID = 253, - "Light Poison Arrow", - "Glass Arrow filled with strong Poison", - new Behaviour_Arrow_Potion(1.5F, 6.0F, Potion.poison.id, 450, 1, 100), - new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L))); + addItem( + tLastID = 253, + "Light Poison Arrow", + "Glass Arrow filled with strong Poison", + new Behaviour_Arrow_Potion(1.5F, 6.0F, Potion.poison.id, 450, 1, 100), + new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L))); ItemList.Arrow_Plastic_Glass_Slowness.set( - addItem( - tLastID = 254, - "Light Slowness Arrow", - "Glass Arrow filled with Laming Brew", - new Behaviour_Arrow_Potion(1.5F, 6.0F, Potion.moveSlowdown.id, 900, 0, 100), - new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L))); + addItem( + tLastID = 254, + "Light Slowness Arrow", + "Glass Arrow filled with Laming Brew", + new Behaviour_Arrow_Potion(1.5F, 6.0F, Potion.moveSlowdown.id, 900, 0, 100), + new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L))); ItemList.Arrow_Plastic_Glass_Slowness_Long.set( - addItem( - tLastID = 255, - "Light Slowness Arrow", - "Glass Arrow filled with stretched Laming Brew", - new Behaviour_Arrow_Potion(1.5F, 6.0F, Potion.moveSlowdown.id, 1800, 0, 100), - new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L))); + addItem( + tLastID = 255, + "Light Slowness Arrow", + "Glass Arrow filled with stretched Laming Brew", + new Behaviour_Arrow_Potion(1.5F, 6.0F, Potion.moveSlowdown.id, 1800, 0, 100), + new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L))); ItemList.Arrow_Plastic_Glass_Weakness.set( - addItem( - tLastID = 256, - "Light Weakness Arrow", - "Glass Arrow filled with Weakening Brew", - new Behaviour_Arrow_Potion(1.5F, 6.0F, Potion.weakness.id, 900, 0, 100), - new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L))); + addItem( + tLastID = 256, + "Light Weakness Arrow", + "Glass Arrow filled with Weakening Brew", + new Behaviour_Arrow_Potion(1.5F, 6.0F, Potion.weakness.id, 900, 0, 100), + new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L))); ItemList.Arrow_Plastic_Glass_Weakness_Long.set( - addItem( - tLastID = 257, - "Light Weakness Arrow", - "Glass Arrow filled with stretched Weakening Brew", - new Behaviour_Arrow_Potion(1.5F, 6.0F, Potion.weakness.id, 1800, 0, 100), - new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L))); + addItem( + tLastID = 257, + "Light Weakness Arrow", + "Glass Arrow filled with stretched Weakening Brew", + new Behaviour_Arrow_Potion(1.5F, 6.0F, Potion.weakness.id, 1800, 0, 100), + new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L))); ItemList.Arrow_Plastic_Glass_Holy_Water.set( - addItem( - tLastID = 258, - "Light Holy Water Arrow", - "Glass Arrow filled with Holy Water", - new Behaviour_Arrow_Potion(1.5F, 6.0F, Enchantment.smite, 10), - new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AURAM, 1L))); + addItem( + tLastID = 258, + "Light Holy Water Arrow", + "Glass Arrow filled with Holy Water", + new Behaviour_Arrow_Potion(1.5F, 6.0F, Enchantment.smite, 10), + new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AURAM, 1L))); GT_ModHandler.addCraftingRecipe( - ItemList.Arrow_Wooden_Glass_Emtpy.get(1L), - GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { aTextArrow, aTextStick, aTextFeather, 'A', ItemList.Arrow_Head_Glass_Emtpy, 'F', - OreDictNames.craftingFeather, 'S', OrePrefixes.stick.get(Materials.Wood) }); + ItemList.Arrow_Wooden_Glass_Emtpy.get(1L), + GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { aTextArrow, aTextStick, aTextFeather, 'A', ItemList.Arrow_Head_Glass_Emtpy, 'F', + OreDictNames.craftingFeather, 'S', OrePrefixes.stick.get(Materials.Wood) }); GT_ModHandler.addCraftingRecipe( - ItemList.Arrow_Wooden_Glass_Poison.get(1L), - GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { aTextArrow, aTextStick, aTextFeather, 'A', ItemList.Arrow_Head_Glass_Poison, 'F', - OreDictNames.craftingFeather, 'S', OrePrefixes.stick.get(Materials.Wood) }); + ItemList.Arrow_Wooden_Glass_Poison.get(1L), + GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { aTextArrow, aTextStick, aTextFeather, 'A', ItemList.Arrow_Head_Glass_Poison, 'F', + OreDictNames.craftingFeather, 'S', OrePrefixes.stick.get(Materials.Wood) }); GT_ModHandler.addCraftingRecipe( - ItemList.Arrow_Wooden_Glass_Poison_Long.get(1L), - GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { aTextArrow, aTextStick, aTextFeather, 'A', ItemList.Arrow_Head_Glass_Poison_Long, 'F', - OreDictNames.craftingFeather, 'S', OrePrefixes.stick.get(Materials.Wood) }); + ItemList.Arrow_Wooden_Glass_Poison_Long.get(1L), + GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { aTextArrow, aTextStick, aTextFeather, 'A', ItemList.Arrow_Head_Glass_Poison_Long, 'F', + OreDictNames.craftingFeather, 'S', OrePrefixes.stick.get(Materials.Wood) }); GT_ModHandler.addCraftingRecipe( - ItemList.Arrow_Wooden_Glass_Poison_Strong.get(1L), - GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { aTextArrow, aTextStick, aTextFeather, 'A', ItemList.Arrow_Head_Glass_Poison_Strong, 'F', - OreDictNames.craftingFeather, 'S', OrePrefixes.stick.get(Materials.Wood) }); + ItemList.Arrow_Wooden_Glass_Poison_Strong.get(1L), + GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { aTextArrow, aTextStick, aTextFeather, 'A', ItemList.Arrow_Head_Glass_Poison_Strong, 'F', + OreDictNames.craftingFeather, 'S', OrePrefixes.stick.get(Materials.Wood) }); GT_ModHandler.addCraftingRecipe( - ItemList.Arrow_Wooden_Glass_Slowness.get(1L), - GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { aTextArrow, aTextStick, aTextFeather, 'A', ItemList.Arrow_Head_Glass_Slowness, 'F', - OreDictNames.craftingFeather, 'S', OrePrefixes.stick.get(Materials.Wood) }); + ItemList.Arrow_Wooden_Glass_Slowness.get(1L), + GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { aTextArrow, aTextStick, aTextFeather, 'A', ItemList.Arrow_Head_Glass_Slowness, 'F', + OreDictNames.craftingFeather, 'S', OrePrefixes.stick.get(Materials.Wood) }); GT_ModHandler.addCraftingRecipe( - ItemList.Arrow_Wooden_Glass_Slowness_Long.get(1L), - GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { aTextArrow, aTextStick, aTextFeather, 'A', ItemList.Arrow_Head_Glass_Slowness_Long, 'F', - OreDictNames.craftingFeather, 'S', OrePrefixes.stick.get(Materials.Wood) }); + ItemList.Arrow_Wooden_Glass_Slowness_Long.get(1L), + GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { aTextArrow, aTextStick, aTextFeather, 'A', ItemList.Arrow_Head_Glass_Slowness_Long, 'F', + OreDictNames.craftingFeather, 'S', OrePrefixes.stick.get(Materials.Wood) }); GT_ModHandler.addCraftingRecipe( - ItemList.Arrow_Wooden_Glass_Weakness.get(1L), - GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { aTextArrow, aTextStick, aTextFeather, 'A', ItemList.Arrow_Head_Glass_Weakness, 'F', - OreDictNames.craftingFeather, 'S', OrePrefixes.stick.get(Materials.Wood) }); + ItemList.Arrow_Wooden_Glass_Weakness.get(1L), + GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { aTextArrow, aTextStick, aTextFeather, 'A', ItemList.Arrow_Head_Glass_Weakness, 'F', + OreDictNames.craftingFeather, 'S', OrePrefixes.stick.get(Materials.Wood) }); GT_ModHandler.addCraftingRecipe( - ItemList.Arrow_Wooden_Glass_Weakness_Long.get(1L), - GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { aTextArrow, aTextStick, aTextFeather, 'A', ItemList.Arrow_Head_Glass_Weakness_Long, 'F', - OreDictNames.craftingFeather, 'S', OrePrefixes.stick.get(Materials.Wood) }); + ItemList.Arrow_Wooden_Glass_Weakness_Long.get(1L), + GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { aTextArrow, aTextStick, aTextFeather, 'A', ItemList.Arrow_Head_Glass_Weakness_Long, 'F', + OreDictNames.craftingFeather, 'S', OrePrefixes.stick.get(Materials.Wood) }); GT_ModHandler.addCraftingRecipe( - ItemList.Arrow_Wooden_Glass_Holy_Water.get(1L), - GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { aTextArrow, aTextStick, aTextFeather, 'A', ItemList.Arrow_Head_Glass_Holy_Water, 'F', - OreDictNames.craftingFeather, 'S', OrePrefixes.stick.get(Materials.Wood) }); + ItemList.Arrow_Wooden_Glass_Holy_Water.get(1L), + GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { aTextArrow, aTextStick, aTextFeather, 'A', ItemList.Arrow_Head_Glass_Holy_Water, 'F', + OreDictNames.craftingFeather, 'S', OrePrefixes.stick.get(Materials.Wood) }); GT_ModHandler.addCraftingRecipe( - ItemList.Arrow_Plastic_Glass_Emtpy.get(1L), - GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { aTextArrow, aTextStick, aTextFeather, 'A', ItemList.Arrow_Head_Glass_Emtpy, 'F', - OreDictNames.craftingFeather, 'S', OrePrefixes.stick.get(Materials.Plastic) }); + ItemList.Arrow_Plastic_Glass_Emtpy.get(1L), + GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { aTextArrow, aTextStick, aTextFeather, 'A', ItemList.Arrow_Head_Glass_Emtpy, 'F', + OreDictNames.craftingFeather, 'S', OrePrefixes.stick.get(Materials.Plastic) }); GT_ModHandler.addCraftingRecipe( - ItemList.Arrow_Plastic_Glass_Poison.get(1L), - GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { aTextArrow, aTextStick, aTextFeather, 'A', ItemList.Arrow_Head_Glass_Poison, 'F', - OreDictNames.craftingFeather, 'S', OrePrefixes.stick.get(Materials.Plastic) }); + ItemList.Arrow_Plastic_Glass_Poison.get(1L), + GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { aTextArrow, aTextStick, aTextFeather, 'A', ItemList.Arrow_Head_Glass_Poison, 'F', + OreDictNames.craftingFeather, 'S', OrePrefixes.stick.get(Materials.Plastic) }); GT_ModHandler.addCraftingRecipe( - ItemList.Arrow_Plastic_Glass_Poison_Long.get(1L), - GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { aTextArrow, aTextStick, aTextFeather, 'A', ItemList.Arrow_Head_Glass_Poison_Long, 'F', - OreDictNames.craftingFeather, 'S', OrePrefixes.stick.get(Materials.Plastic) }); + ItemList.Arrow_Plastic_Glass_Poison_Long.get(1L), + GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { aTextArrow, aTextStick, aTextFeather, 'A', ItemList.Arrow_Head_Glass_Poison_Long, 'F', + OreDictNames.craftingFeather, 'S', OrePrefixes.stick.get(Materials.Plastic) }); GT_ModHandler.addCraftingRecipe( - ItemList.Arrow_Plastic_Glass_Poison_Strong.get(1L), - GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { aTextArrow, aTextStick, aTextFeather, 'A', ItemList.Arrow_Head_Glass_Poison_Strong, 'F', - OreDictNames.craftingFeather, 'S', OrePrefixes.stick.get(Materials.Plastic) }); + ItemList.Arrow_Plastic_Glass_Poison_Strong.get(1L), + GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { aTextArrow, aTextStick, aTextFeather, 'A', ItemList.Arrow_Head_Glass_Poison_Strong, 'F', + OreDictNames.craftingFeather, 'S', OrePrefixes.stick.get(Materials.Plastic) }); GT_ModHandler.addCraftingRecipe( - ItemList.Arrow_Plastic_Glass_Slowness.get(1L), - GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { aTextArrow, aTextStick, aTextFeather, 'A', ItemList.Arrow_Head_Glass_Slowness, 'F', - OreDictNames.craftingFeather, 'S', OrePrefixes.stick.get(Materials.Plastic) }); + ItemList.Arrow_Plastic_Glass_Slowness.get(1L), + GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { aTextArrow, aTextStick, aTextFeather, 'A', ItemList.Arrow_Head_Glass_Slowness, 'F', + OreDictNames.craftingFeather, 'S', OrePrefixes.stick.get(Materials.Plastic) }); GT_ModHandler.addCraftingRecipe( - ItemList.Arrow_Plastic_Glass_Slowness_Long.get(1L), - GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { aTextArrow, aTextStick, aTextFeather, 'A', ItemList.Arrow_Head_Glass_Slowness_Long, 'F', - OreDictNames.craftingFeather, 'S', OrePrefixes.stick.get(Materials.Plastic) }); + ItemList.Arrow_Plastic_Glass_Slowness_Long.get(1L), + GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { aTextArrow, aTextStick, aTextFeather, 'A', ItemList.Arrow_Head_Glass_Slowness_Long, 'F', + OreDictNames.craftingFeather, 'S', OrePrefixes.stick.get(Materials.Plastic) }); GT_ModHandler.addCraftingRecipe( - ItemList.Arrow_Plastic_Glass_Weakness.get(1L), - GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { aTextArrow, aTextStick, aTextFeather, 'A', ItemList.Arrow_Head_Glass_Weakness, 'F', - OreDictNames.craftingFeather, 'S', OrePrefixes.stick.get(Materials.Plastic) }); + ItemList.Arrow_Plastic_Glass_Weakness.get(1L), + GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { aTextArrow, aTextStick, aTextFeather, 'A', ItemList.Arrow_Head_Glass_Weakness, 'F', + OreDictNames.craftingFeather, 'S', OrePrefixes.stick.get(Materials.Plastic) }); GT_ModHandler.addCraftingRecipe( - ItemList.Arrow_Plastic_Glass_Weakness_Long.get(1L), - GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { aTextArrow, aTextStick, aTextFeather, 'A', ItemList.Arrow_Head_Glass_Weakness_Long, 'F', - OreDictNames.craftingFeather, 'S', OrePrefixes.stick.get(Materials.Plastic) }); + ItemList.Arrow_Plastic_Glass_Weakness_Long.get(1L), + GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { aTextArrow, aTextStick, aTextFeather, 'A', ItemList.Arrow_Head_Glass_Weakness_Long, 'F', + OreDictNames.craftingFeather, 'S', OrePrefixes.stick.get(Materials.Plastic) }); GT_ModHandler.addCraftingRecipe( - ItemList.Arrow_Plastic_Glass_Holy_Water.get(1L), - GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { aTextArrow, aTextStick, aTextFeather, 'A', ItemList.Arrow_Head_Glass_Holy_Water, 'F', - OreDictNames.craftingFeather, 'S', OrePrefixes.stick.get(Materials.Plastic) }); + ItemList.Arrow_Plastic_Glass_Holy_Water.get(1L), + GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { aTextArrow, aTextStick, aTextFeather, 'A', ItemList.Arrow_Head_Glass_Holy_Water, 'F', + OreDictNames.craftingFeather, 'S', OrePrefixes.stick.get(Materials.Plastic) }); ItemList.Shape_Empty.set( - addItem( - tLastID = 300, - "Empty Shape Plate", - "Raw Plate to make Molds and Extruder Shapes", - new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 4L))); + addItem( + tLastID = 300, + "Empty Shape Plate", + "Raw Plate to make Molds and Extruder Shapes", + new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 4L))); // GT_ModHandler.addCraftingRecipe(ItemList.Shape_Empty.get(1L, new Object[0]), // GT_ModHandler.RecipeBits.MIRRORED | GT_ModHandler.RecipeBits.BUFFERED | @@ -680,8 +674,8 @@ public class GT_MetaGenerated_Item_01 extends GT_MetaGenerated_Item_X32 { ItemList.Shape_Mold_Plate.set(addItem(tLastID = 301, "Mold (Plate)", "Mold for making Plates")); ItemList.Shape_Mold_Casing.set(addItem(tLastID = 302, "Mold (Casing)", "Mold for making Item Casings")); ItemList.Shape_Mold_Gear.set(addItem(tLastID = 303, "Mold (Gear)", "Mold for making Gears")); - ItemList.Shape_Mold_Credit.set( - addItem(tLastID = 304, "Mold (Coinage)", "Secure Mold for making Coins (Don't lose it!)")); + ItemList.Shape_Mold_Credit + .set(addItem(tLastID = 304, "Mold (Coinage)", "Secure Mold for making Coins (Don't lose it!)")); ItemList.Shape_Mold_Bottle.set(addItem(tLastID = 305, "Mold (Bottle)", "Mold for making Bottles")); ItemList.Shape_Mold_Ingot.set(addItem(tLastID = 306, "Mold (Ingot)", "Mold for making Ingots")); ItemList.Shape_Mold_Ball.set(addItem(tLastID = 307, "Mold (Ball)", "Mold for making Balls")); @@ -692,8 +686,8 @@ public class GT_MetaGenerated_Item_01 extends GT_MetaGenerated_Item_X32 { ItemList.Shape_Mold_Baguette.set(addItem(tLastID = 312, "Mold (Baguette)", "Mold for shaping Baguettes")); ItemList.Shape_Mold_Cylinder.set(addItem(tLastID = 313, "Mold (Cylinder)", "Mold for shaping Cylinders")); ItemList.Shape_Mold_Anvil.set(addItem(tLastID = 314, "Mold (Anvil)", "Mold for shaping Anvils")); - ItemList.Shape_Mold_Name.set( - addItem(tLastID = 315, "Mold (Name)", "Mold for naming Items (rename Mold with Anvil)")); + ItemList.Shape_Mold_Name + .set(addItem(tLastID = 315, "Mold (Name)", "Mold for naming Items (rename Mold with Anvil)")); ItemList.Shape_Mold_Arrow.set(addItem(tLastID = 316, "Mold (Arrow Head)", "Mold for making Arrow Heads")); ItemList.Shape_Mold_Gear_Small.set(addItem(tLastID = 317, "Mold (Small Gear)", "Mold for making small Gears")); ItemList.Shape_Mold_Rod.set(addItem(tLastID = 318, "Mold (Rod)", "Mold for making Rods")); @@ -703,583 +697,574 @@ public class GT_MetaGenerated_Item_01 extends GT_MetaGenerated_Item_X32 { ItemList.Shape_Mold_Ring.set(addItem(tLastID = 322, "Mold (Ring)", "Mold for making Rings")); ItemList.Shape_Mold_Rod_Long.set(addItem(tLastID = 323, "Mold (Long Rod)", "Mold for making Long Rods")); ItemList.Shape_Mold_Rotor.set(addItem(tLastID = 324, "Mold (Rotor)", "Mold for making a Rotor")); - ItemList.Shape_Mold_Turbine_Blade.set( - addItem(tLastID = 325, "Mold (Turbine Blade)", "Mold for making a Turbine Blade")); + ItemList.Shape_Mold_Turbine_Blade + .set(addItem(tLastID = 325, "Mold (Turbine Blade)", "Mold for making a Turbine Blade")); ItemList.Shape_Mold_Pipe_Tiny.set(addItem(tLastID = 326, "Mold (Tiny Pipe)", "Mold for making tiny Pipes")); ItemList.Shape_Mold_Pipe_Small.set(addItem(tLastID = 327, "Mold (Small Pipe)", "Mold for making small Pipes")); ItemList.Shape_Mold_Pipe_Medium.set(addItem(tLastID = 328, "Mold (Normal Pipe)", "Mold for making Pipes")); ItemList.Shape_Mold_Pipe_Large.set(addItem(tLastID = 329, "Mold (Large Pipe)", "Mold for making large Pipes")); - ItemList.Shape_Mold_Pipe_Huge.set( - addItem(tLastID = 330, "Mold (Huge Pipe)", "Mold for making full Block Pipes")); - ItemList.Shape_Mold_ToolHeadDrill.set( - addItem(tLastID = 331, "Mold (Drill Head)", "Mold for making Drill Heads")); + ItemList.Shape_Mold_Pipe_Huge + .set(addItem(tLastID = 330, "Mold (Huge Pipe)", "Mold for making full Block Pipes")); + ItemList.Shape_Mold_ToolHeadDrill + .set(addItem(tLastID = 331, "Mold (Drill Head)", "Mold for making Drill Heads")); GT_ModHandler.removeRecipe( - new ItemStack(Blocks.glass), - null, - new ItemStack(Blocks.glass), - null, - new ItemStack(Blocks.glass)); - - ItemList.Shape_Extruder_Plate.set( - addItem(tLastID = 350, "Extruder Shape (Plate)", "Extruder Shape for making Plates")); - ItemList.Shape_Extruder_Rod.set( - addItem(tLastID = 351, "Extruder Shape (Rod)", "Extruder Shape for making Rods")); - ItemList.Shape_Extruder_Bolt.set( - addItem(tLastID = 352, "Extruder Shape (Bolt)", "Extruder Shape for making Bolts")); - ItemList.Shape_Extruder_Ring.set( - addItem(tLastID = 353, "Extruder Shape (Ring)", "Extruder Shape for making Rings")); - ItemList.Shape_Extruder_Cell.set( - addItem(tLastID = 354, "Extruder Shape (Cell)", "Extruder Shape for making Cells")); + new ItemStack(Blocks.glass), + null, + new ItemStack(Blocks.glass), + null, + new ItemStack(Blocks.glass)); + + ItemList.Shape_Extruder_Plate + .set(addItem(tLastID = 350, "Extruder Shape (Plate)", "Extruder Shape for making Plates")); + ItemList.Shape_Extruder_Rod + .set(addItem(tLastID = 351, "Extruder Shape (Rod)", "Extruder Shape for making Rods")); + ItemList.Shape_Extruder_Bolt + .set(addItem(tLastID = 352, "Extruder Shape (Bolt)", "Extruder Shape for making Bolts")); + ItemList.Shape_Extruder_Ring + .set(addItem(tLastID = 353, "Extruder Shape (Ring)", "Extruder Shape for making Rings")); + ItemList.Shape_Extruder_Cell + .set(addItem(tLastID = 354, "Extruder Shape (Cell)", "Extruder Shape for making Cells")); ItemList.Shape_Extruder_Ingot.set( - addItem( - tLastID = 355, - "Extruder Shape (Ingot)", - "Extruder Shape for, wait, can't we just use a Furnace?")); - ItemList.Shape_Extruder_Wire.set( - addItem(tLastID = 356, "Extruder Shape (Wire)", "Extruder Shape for making Wires")); - ItemList.Shape_Extruder_Casing.set( - addItem(tLastID = 357, "Extruder Shape (Casing)", "Extruder Shape for making Item Casings")); - ItemList.Shape_Extruder_Pipe_Tiny.set( - addItem(tLastID = 358, "Extruder Shape (Tiny Pipe)", "Extruder Shape for making tiny Pipes")); - ItemList.Shape_Extruder_Pipe_Small.set( - addItem(tLastID = 359, "Extruder Shape (Small Pipe)", "Extruder Shape for making small Pipes")); - ItemList.Shape_Extruder_Pipe_Medium.set( - addItem(tLastID = 360, "Extruder Shape (Normal Pipe)", "Extruder Shape for making Pipes")); - ItemList.Shape_Extruder_Pipe_Large.set( - addItem(tLastID = 361, "Extruder Shape (Large Pipe)", "Extruder Shape for making large Pipes")); - ItemList.Shape_Extruder_Pipe_Huge.set( - addItem(tLastID = 362, "Extruder Shape (Huge Pipe)", "Extruder Shape for making full Block Pipes")); - ItemList.Shape_Extruder_Block.set( - addItem(tLastID = 363, "Extruder Shape (Block)", "Extruder Shape for making Blocks")); - ItemList.Shape_Extruder_Sword.set( - addItem(tLastID = 364, "Extruder Shape (Sword Blade)", "Extruder Shape for making Swords")); - ItemList.Shape_Extruder_Pickaxe.set( - addItem(tLastID = 365, "Extruder Shape (Pickaxe Head)", "Extruder Shape for making Pickaxes")); - ItemList.Shape_Extruder_Shovel.set( - addItem(tLastID = 366, "Extruder Shape (Shovel Head)", "Extruder Shape for making Shovels")); - ItemList.Shape_Extruder_Axe.set( - addItem(tLastID = 367, "Extruder Shape (Axe Head)", "Extruder Shape for making Axes")); - ItemList.Shape_Extruder_Hoe.set( - addItem(tLastID = 368, "Extruder Shape (Hoe Head)", "Extruder Shape for making Hoes")); - ItemList.Shape_Extruder_Hammer.set( - addItem(tLastID = 369, "Extruder Shape (Hammer Head)", "Extruder Shape for making Hammers")); - ItemList.Shape_Extruder_File.set( - addItem(tLastID = 370, "Extruder Shape (File Head)", "Extruder Shape for making Files")); - ItemList.Shape_Extruder_Saw.set( - addItem(tLastID = 371, "Extruder Shape (Saw Blade)", "Extruder Shape for making Saws")); - ItemList.Shape_Extruder_Gear.set( - addItem(tLastID = 372, "Extruder Shape (Gear)", "Extruder Shape for making Gears")); - ItemList.Shape_Extruder_Bottle.set( - addItem(tLastID = 373, "Extruder Shape (Bottle)", "Extruder Shape for making Bottles")); - ItemList.Shape_Extruder_Rotor.set( - addItem(tLastID = 374, "Extruder Shape (Rotor)", "Extruder Shape for a Rotor")); - ItemList.Shape_Extruder_Small_Gear.set( - addItem(tLastID = 375, "Extruder Shape (Small Gear)", "Extruder Shape for a Small Gear")); - ItemList.Shape_Extruder_Turbine_Blade.set( - addItem(tLastID = 376, "Extruder Shape (Turbine Blade)", "Extruder Shape for a Turbine Blade")); - ItemList.Shape_Extruder_ToolHeadDrill.set( - addItem(tLastID = 377, "Extruder Shape (Drill Head)", "Extruder Shape for a Drill Head")); + addItem(tLastID = 355, "Extruder Shape (Ingot)", "Extruder Shape for, wait, can't we just use a Furnace?")); + ItemList.Shape_Extruder_Wire + .set(addItem(tLastID = 356, "Extruder Shape (Wire)", "Extruder Shape for making Wires")); + ItemList.Shape_Extruder_Casing + .set(addItem(tLastID = 357, "Extruder Shape (Casing)", "Extruder Shape for making Item Casings")); + ItemList.Shape_Extruder_Pipe_Tiny + .set(addItem(tLastID = 358, "Extruder Shape (Tiny Pipe)", "Extruder Shape for making tiny Pipes")); + ItemList.Shape_Extruder_Pipe_Small + .set(addItem(tLastID = 359, "Extruder Shape (Small Pipe)", "Extruder Shape for making small Pipes")); + ItemList.Shape_Extruder_Pipe_Medium + .set(addItem(tLastID = 360, "Extruder Shape (Normal Pipe)", "Extruder Shape for making Pipes")); + ItemList.Shape_Extruder_Pipe_Large + .set(addItem(tLastID = 361, "Extruder Shape (Large Pipe)", "Extruder Shape for making large Pipes")); + ItemList.Shape_Extruder_Pipe_Huge + .set(addItem(tLastID = 362, "Extruder Shape (Huge Pipe)", "Extruder Shape for making full Block Pipes")); + ItemList.Shape_Extruder_Block + .set(addItem(tLastID = 363, "Extruder Shape (Block)", "Extruder Shape for making Blocks")); + ItemList.Shape_Extruder_Sword + .set(addItem(tLastID = 364, "Extruder Shape (Sword Blade)", "Extruder Shape for making Swords")); + ItemList.Shape_Extruder_Pickaxe + .set(addItem(tLastID = 365, "Extruder Shape (Pickaxe Head)", "Extruder Shape for making Pickaxes")); + ItemList.Shape_Extruder_Shovel + .set(addItem(tLastID = 366, "Extruder Shape (Shovel Head)", "Extruder Shape for making Shovels")); + ItemList.Shape_Extruder_Axe + .set(addItem(tLastID = 367, "Extruder Shape (Axe Head)", "Extruder Shape for making Axes")); + ItemList.Shape_Extruder_Hoe + .set(addItem(tLastID = 368, "Extruder Shape (Hoe Head)", "Extruder Shape for making Hoes")); + ItemList.Shape_Extruder_Hammer + .set(addItem(tLastID = 369, "Extruder Shape (Hammer Head)", "Extruder Shape for making Hammers")); + ItemList.Shape_Extruder_File + .set(addItem(tLastID = 370, "Extruder Shape (File Head)", "Extruder Shape for making Files")); + ItemList.Shape_Extruder_Saw + .set(addItem(tLastID = 371, "Extruder Shape (Saw Blade)", "Extruder Shape for making Saws")); + ItemList.Shape_Extruder_Gear + .set(addItem(tLastID = 372, "Extruder Shape (Gear)", "Extruder Shape for making Gears")); + ItemList.Shape_Extruder_Bottle + .set(addItem(tLastID = 373, "Extruder Shape (Bottle)", "Extruder Shape for making Bottles")); + ItemList.Shape_Extruder_Rotor + .set(addItem(tLastID = 374, "Extruder Shape (Rotor)", "Extruder Shape for a Rotor")); + ItemList.Shape_Extruder_Small_Gear + .set(addItem(tLastID = 375, "Extruder Shape (Small Gear)", "Extruder Shape for a Small Gear")); + ItemList.Shape_Extruder_Turbine_Blade + .set(addItem(tLastID = 376, "Extruder Shape (Turbine Blade)", "Extruder Shape for a Turbine Blade")); + ItemList.Shape_Extruder_ToolHeadDrill + .set(addItem(tLastID = 377, "Extruder Shape (Drill Head)", "Extruder Shape for a Drill Head")); ItemList.Shape_Slicer_Flat.set(addItem(tLastID = 398, "Slicer Blade (Flat)", "Slicer Blade for cutting Flat")); - ItemList.Shape_Slicer_Stripes.set( - addItem(tLastID = 399, "Slicer Blade (Stripes)", "Slicer Blade for cutting Stripes")); + ItemList.Shape_Slicer_Stripes + .set(addItem(tLastID = 399, "Slicer Blade (Stripes)", "Slicer Blade for cutting Stripes")); GT_ModHandler.addCraftingRecipe( - ItemList.Shape_Slicer_Flat.get(1L), - GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "hXS", aTextShape, "fXd", 'P', ItemList.Shape_Extruder_Block, 'X', - OrePrefixes.plate.get(Materials.StainlessSteel), 'S', - OrePrefixes.screw.get(Materials.StainlessSteel) }); + ItemList.Shape_Slicer_Flat.get(1L), + GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "hXS", aTextShape, "fXd", 'P', ItemList.Shape_Extruder_Block, 'X', + OrePrefixes.plate.get(Materials.StainlessSteel), 'S', + OrePrefixes.screw.get(Materials.StainlessSteel) }); GT_ModHandler.addCraftingRecipe( - ItemList.Shape_Slicer_Stripes.get(1L), - GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "hXS", "XPX", "fXd", 'P', ItemList.Shape_Extruder_Block, 'X', - OrePrefixes.plate.get(Materials.StainlessSteel), 'S', - OrePrefixes.screw.get(Materials.StainlessSteel) }); + ItemList.Shape_Slicer_Stripes.get(1L), + GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "hXS", "XPX", "fXd", 'P', ItemList.Shape_Extruder_Block, 'X', + OrePrefixes.plate.get(Materials.StainlessSteel), 'S', + OrePrefixes.screw.get(Materials.StainlessSteel) }); ItemList.Fuel_Can_Plastic_Empty.set( - addItem( - tLastID = 400, - "Empty Plastic Fuel Can", - "Used to store Fuels", - new ItemData(Materials.Plastic, OrePrefixes.plate.mMaterialAmount * 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 1L))); + addItem( + tLastID = 400, + "Empty Plastic Fuel Can", + "Used to store Fuels", + new ItemData(Materials.Plastic, OrePrefixes.plate.mMaterialAmount * 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 1L))); ItemList.Fuel_Can_Plastic_Filled.set( - addItem( - tLastID = 401, - "Plastic Fuel Can", - "Burns well in Diesel Generators", - new ItemData(Materials.Plastic, OrePrefixes.plate.mMaterialAmount * 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 1L))); + addItem( + tLastID = 401, + "Plastic Fuel Can", + "Burns well in Diesel Generators", + new ItemData(Materials.Plastic, OrePrefixes.plate.mMaterialAmount * 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 1L))); GT_ModHandler.addCraftingRecipe( - ItemList.Fuel_Can_Plastic_Empty.get(7L), - GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { " PP", "P P", "PPP", 'P', OrePrefixes.plate.get(Materials.Plastic) }); + ItemList.Fuel_Can_Plastic_Empty.get(7L), + GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { " PP", "P P", "PPP", 'P', OrePrefixes.plate.get(Materials.Plastic) }); ItemList.Spray_Empty.set( - addItem( - tLastID = 402, - "Empty Spray Can", - "Used for making Sprays", - new ItemData( - Materials.Tin, - OrePrefixes.plate.mMaterialAmount * 2L, - Materials.Redstone, - OrePrefixes.dust.mMaterialAmount), - new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 1L))); + addItem( + tLastID = 402, + "Empty Spray Can", + "Used for making Sprays", + new ItemData( + Materials.Tin, + OrePrefixes.plate.mMaterialAmount * 2L, + Materials.Redstone, + OrePrefixes.dust.mMaterialAmount), + new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 1L))); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1L), - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Empty, 1L), - GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Spray_Empty.get(1L), - 800, - 1); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1L), + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Empty, 1L), GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Spray_Empty.get(1L), + 800, + 1); ItemList.Crate_Empty.set( - addItem( - tLastID = 403, - "Empty Crate", - "To Package lots of Material", - new ItemData(Materials.Wood, 3628800L, Materials.Iron, OrePrefixes.screw.mMaterialAmount), - new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 2L))); + addItem( + tLastID = 403, + "Empty Crate", + "To Package lots of Material", + new ItemData(Materials.Wood, 3628800L, Materials.Iron, OrePrefixes.screw.mMaterialAmount), + new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 2L))); GT_ModHandler.addCraftingRecipe( - ItemList.Crate_Empty.get(4L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { "SWS", "WdW", "SWS", 'W', OrePrefixes.plank.get(Materials.Wood), 'S', - OrePrefixes.screw.get(Materials.AnyIron) }); + ItemList.Crate_Empty.get(4L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { "SWS", "WdW", "SWS", 'W', OrePrefixes.plank.get(Materials.Wood), 'S', + OrePrefixes.screw.get(Materials.AnyIron) }); GT_ModHandler.addCraftingRecipe( - ItemList.Crate_Empty.get(4L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { "SWS", "WdW", "SWS", 'W', OrePrefixes.plank.get(Materials.Wood), 'S', - OrePrefixes.screw.get(Materials.Steel) }); + ItemList.Crate_Empty.get(4L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { "SWS", "WdW", "SWS", 'W', OrePrefixes.plank.get(Materials.Wood), 'S', + OrePrefixes.screw.get(Materials.Steel) }); ItemList.ThermosCan_Empty.set( - addItem( - tLastID = 404, - "Empty Thermos Can", - "Keeping hot things hot and cold things cold", - new ItemData( - Materials.Aluminium, - OrePrefixes.plateDouble.mMaterialAmount * 1L + 2L * OrePrefixes.ring.mMaterialAmount), - new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L))); + addItem( + tLastID = 404, + "Empty Thermos Can", + "Keeping hot things hot and cold things cold", + new ItemData( + Materials.Aluminium, + OrePrefixes.plateDouble.mMaterialAmount * 1L + 2L * OrePrefixes.ring.mMaterialAmount), + new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L))); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plateDouble, Materials.Aluminium, 1L), - GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Aluminium, 2L), - GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.ThermosCan_Empty.get(1L), - 800, - 1); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plateDouble, Materials.Aluminium, 1L), + GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Aluminium, 2L), + GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.ThermosCan_Empty.get(1L), + 800, + 1); ItemList.Large_Fluid_Cell_Steel.set( - addItem( - tLastID = 405, - "Large Steel Fluid Cell", - "", - new ItemData( - Materials.Steel, - OrePrefixes.plateDouble.mMaterialAmount * 4L, - new MaterialStack(Materials.Bronze, OrePrefixes.ring.mMaterialAmount * 4L)), - new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 2L))); + addItem( + tLastID = 405, + "Large Steel Fluid Cell", + "", + new ItemData( + Materials.Steel, + OrePrefixes.plateDouble.mMaterialAmount * 4L, + new MaterialStack(Materials.Bronze, OrePrefixes.ring.mMaterialAmount * 4L)), + new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 2L))); setFluidContainerStats(32000 + tLastID, 8000L, 64L); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plateDouble, Materials.Steel, 4L), - GT_OreDictUnificator.get(OrePrefixes.ring, Materials.AnyBronze, 4L), - GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Large_Fluid_Cell_Steel.get(1L), - 200, - 30); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plateDouble, Materials.Steel, 4L), + GT_OreDictUnificator.get(OrePrefixes.ring, Materials.AnyBronze, 4L), + GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Large_Fluid_Cell_Steel.get(1L), + 200, + 30); ItemList.Large_Fluid_Cell_TungstenSteel.set( - addItem( - tLastID = 406, - "Large Tungstensteel Fluid Cell", - "", - new ItemData( - Materials.TungstenSteel, - OrePrefixes.plateDouble.mMaterialAmount * 4L, - new MaterialStack(Materials.Platinum, OrePrefixes.ring.mMaterialAmount * 4L)), - new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 9L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 7L))); + addItem( + tLastID = 406, + "Large Tungstensteel Fluid Cell", + "", + new ItemData( + Materials.TungstenSteel, + OrePrefixes.plateDouble.mMaterialAmount * 4L, + new MaterialStack(Materials.Platinum, OrePrefixes.ring.mMaterialAmount * 4L)), + new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 9L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 7L))); setFluidContainerStats(32000 + tLastID, 512000L, 32L); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plateDouble, Materials.TungstenSteel, 4L), - GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Platinum, 4L), - GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Large_Fluid_Cell_TungstenSteel.get(1L), - 200, - 480); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plateDouble, Materials.TungstenSteel, 4L), + GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Platinum, 4L), + GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Large_Fluid_Cell_TungstenSteel.get(1L), + 200, + 480); ItemList.Large_Fluid_Cell_Aluminium.set( - addItem( - tLastID = 407, - "Large Aluminium Fluid Cell", - "", - new ItemData( - Materials.Aluminium, - OrePrefixes.plateDouble.mMaterialAmount * 4L, - new MaterialStack(Materials.Silver, OrePrefixes.ring.mMaterialAmount * 4L)), - new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 5L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 3L))); + addItem( + tLastID = 407, + "Large Aluminium Fluid Cell", + "", + new ItemData( + Materials.Aluminium, + OrePrefixes.plateDouble.mMaterialAmount * 4L, + new MaterialStack(Materials.Silver, OrePrefixes.ring.mMaterialAmount * 4L)), + new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 5L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 3L))); setFluidContainerStats(32000 + tLastID, 32000L, 64L); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plateDouble, Materials.Aluminium, 4L), - GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Silver, 4L), - GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Large_Fluid_Cell_Aluminium.get(1L), - 200, - 64); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plateDouble, Materials.Aluminium, 4L), + GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Silver, 4L), GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Large_Fluid_Cell_Aluminium.get(1L), + 200, + 64); ItemList.Large_Fluid_Cell_StainlessSteel.set( - addItem( - tLastID = 408, - "Large Stainless Steel Fluid Cell", - "", - new ItemData( - Materials.StainlessSteel, - OrePrefixes.plateDouble.mMaterialAmount * 4L, - new MaterialStack(Materials.Electrum, OrePrefixes.ring.mMaterialAmount * 4L)), - new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 6L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 4L))); + addItem( + tLastID = 408, + "Large Stainless Steel Fluid Cell", + "", + new ItemData( + Materials.StainlessSteel, + OrePrefixes.plateDouble.mMaterialAmount * 4L, + new MaterialStack(Materials.Electrum, OrePrefixes.ring.mMaterialAmount * 4L)), + new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 6L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 4L))); setFluidContainerStats(32000 + tLastID, 64000L, 64L); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plateDouble, Materials.StainlessSteel, 4L), - GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Electrum, 4L), - GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Large_Fluid_Cell_StainlessSteel.get(1L), - 200, - 120); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plateDouble, Materials.StainlessSteel, 4L), + GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Electrum, 4L), + GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Large_Fluid_Cell_StainlessSteel.get(1L), + 200, + 120); ItemList.Large_Fluid_Cell_Titanium.set( - addItem( - tLastID = 409, - "Large Titanium Fluid Cell", - "", - new ItemData( - Materials.Titanium, - OrePrefixes.plateDouble.mMaterialAmount * 4L, - new MaterialStack(Materials.RoseGold, OrePrefixes.ring.mMaterialAmount * 4L)), - new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 7L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 5L))); + addItem( + tLastID = 409, + "Large Titanium Fluid Cell", + "", + new ItemData( + Materials.Titanium, + OrePrefixes.plateDouble.mMaterialAmount * 4L, + new MaterialStack(Materials.RoseGold, OrePrefixes.ring.mMaterialAmount * 4L)), + new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 7L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 5L))); setFluidContainerStats(32000 + tLastID, 128000L, 64L); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plateDouble, Materials.Titanium, 4L), - GT_OreDictUnificator.get(OrePrefixes.ring, Materials.RoseGold, 4L), - GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Large_Fluid_Cell_Titanium.get(1L), - 200, - 256); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plateDouble, Materials.Titanium, 4L), + GT_OreDictUnificator.get(OrePrefixes.ring, Materials.RoseGold, 4L), + GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Large_Fluid_Cell_Titanium.get(1L), + 200, + 256); ItemList.Large_Fluid_Cell_Chrome.set( - addItem( - tLastID = 410, - "Large Chrome Fluid Cell", - "", - new ItemData( - Materials.Chrome, - OrePrefixes.plateDouble.mMaterialAmount * 4L, - new MaterialStack(Materials.Palladium, OrePrefixes.ring.mMaterialAmount * 4L)), - new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 8L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 6L))); + addItem( + tLastID = 410, + "Large Chrome Fluid Cell", + "", + new ItemData( + Materials.Chrome, + OrePrefixes.plateDouble.mMaterialAmount * 4L, + new MaterialStack(Materials.Palladium, OrePrefixes.ring.mMaterialAmount * 4L)), + new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 8L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 6L))); setFluidContainerStats(32000 + tLastID, 2048000L, 8L); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plateDouble, Materials.Chrome, 4L), - GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Palladium, 4L), - GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Large_Fluid_Cell_Chrome.get(1L), - 200, - 1024); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plateDouble, Materials.Chrome, 4L), + GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Palladium, 4L), + GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Large_Fluid_Cell_Chrome.get(1L), + 200, + 1024); ItemList.Large_Fluid_Cell_Iridium.set( - addItem( - tLastID = 411, - "Large Iridium Fluid Cell", - "", - new ItemData( - Materials.Iridium, - OrePrefixes.plateDouble.mMaterialAmount * 4L, - new MaterialStack(Materials.Naquadah, OrePrefixes.ring.mMaterialAmount * 4L)), - new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 10L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 8L))); + addItem( + tLastID = 411, + "Large Iridium Fluid Cell", + "", + new ItemData( + Materials.Iridium, + OrePrefixes.plateDouble.mMaterialAmount * 4L, + new MaterialStack(Materials.Naquadah, OrePrefixes.ring.mMaterialAmount * 4L)), + new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 10L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 8L))); setFluidContainerStats(32000 + tLastID, 8192000L, 2L); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plateDouble, Materials.Iridium, 4L), - GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Naquadah, 4L), - GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Large_Fluid_Cell_Iridium.get(1L), - 200, - 1920); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plateDouble, Materials.Iridium, 4L), + GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Naquadah, 4L), + GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Large_Fluid_Cell_Iridium.get(1L), + 200, + 1920); ItemList.Large_Fluid_Cell_Osmium.set( - addItem( - tLastID = 412, - "Large Osmium Fluid Cell", - "", - new ItemData( - Materials.Osmium, - OrePrefixes.plateDouble.mMaterialAmount * 4L, - new MaterialStack(Materials.ElectrumFlux, OrePrefixes.ring.mMaterialAmount * 4L)), - new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 11L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 9L))); + addItem( + tLastID = 412, + "Large Osmium Fluid Cell", + "", + new ItemData( + Materials.Osmium, + OrePrefixes.plateDouble.mMaterialAmount * 4L, + new MaterialStack(Materials.ElectrumFlux, OrePrefixes.ring.mMaterialAmount * 4L)), + new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 11L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 9L))); setFluidContainerStats(32000 + tLastID, 32768000L, 1L); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plateDouble, Materials.Osmium, 4L), - GT_OreDictUnificator.get(OrePrefixes.ring, Materials.ElectrumFlux, 4L), - GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Large_Fluid_Cell_Osmium.get(1L), - 200, - 4096); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plateDouble, Materials.Osmium, 4L), + GT_OreDictUnificator.get(OrePrefixes.ring, Materials.ElectrumFlux, 4L), + GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Large_Fluid_Cell_Osmium.get(1L), + 200, + 4096); ItemList.Large_Fluid_Cell_Neutronium.set( - addItem( - tLastID = 413, - "Large Neutronium Fluid Cell", - "", - new ItemData( - Materials.Neutronium, - OrePrefixes.plateDouble.mMaterialAmount * 4L, - new MaterialStack(Materials.Draconium, OrePrefixes.ring.mMaterialAmount * 4L)), - new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 12L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 10L))); + addItem( + tLastID = 413, + "Large Neutronium Fluid Cell", + "", + new ItemData( + Materials.Neutronium, + OrePrefixes.plateDouble.mMaterialAmount * 4L, + new MaterialStack(Materials.Draconium, OrePrefixes.ring.mMaterialAmount * 4L)), + new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 12L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 10L))); setFluidContainerStats(32000 + tLastID, 131072000L, 1L); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plateDouble, Materials.Neutronium, 4L), - GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Draconium, 4L), - GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Large_Fluid_Cell_Neutronium.get(1L), - 200, - 7680); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plateDouble, Materials.Neutronium, 4L), + GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Draconium, 4L), + GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Large_Fluid_Cell_Neutronium.get(1L), + 200, + 7680); for (byte i = 0; i < 16; i = (byte) (i + 1)) { ItemList.SPRAY_CAN_DYES[i].set( - addItem( - tLastID = 430 + 2 * i, - "Spray Can (" + Dyes.get(i).mName + ")", - "Full", - new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 4L))); + addItem( + tLastID = 430 + 2 * i, + "Spray Can (" + Dyes.get(i).mName + ")", + "Full", + new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 4L))); ItemList.SPRAY_CAN_DYES_USED[i].set( - addItem( - tLastID + 1, - "Spray Can (" + Dyes.get(i).mName + ")", - "Used", - new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 3L), - SubTag.INVISIBLE)); + addItem( + tLastID + 1, + "Spray Can (" + Dyes.get(i).mName + ")", + "Used", + new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 3L), + SubTag.INVISIBLE)); IItemBehaviour tBehaviour = new Behaviour_Spray_Color( - ItemList.Spray_Empty.get(1L), - ItemList.SPRAY_CAN_DYES_USED[i].get(1L), - ItemList.SPRAY_CAN_DYES[i].get(1L), - 512L, - i); + ItemList.Spray_Empty.get(1L), + ItemList.SPRAY_CAN_DYES_USED[i].get(1L), + ItemList.SPRAY_CAN_DYES[i].get(1L), + 512L, + i); addItemBehavior(32000 + tLastID, tBehaviour); addItemBehavior(32001 + tLastID, tBehaviour); } ItemList.Tool_Matches.set( - addItem( - tLastID = 471, - "Match", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L))); + addItem( + tLastID = 471, + "Match", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L))); ItemList.Tool_MatchBox_Used.set( - addItem( - tLastID = 472, - "Match Box", - "This is not a Car", - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L), - SubTag.INVISIBLE)); + addItem( + tLastID = 472, + "Match Box", + "This is not a Car", + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L), + SubTag.INVISIBLE)); ItemList.Tool_MatchBox_Full.set( - addItem( - tLastID = 473, - "Match Box (Full)", - "This is not a Car", - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 2L))); + addItem( + tLastID = 473, + "Match Box (Full)", + "This is not a Car", + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 2L))); IItemBehaviour tBehaviour = new Behaviour_Lighter( - null, - ItemList.Tool_Matches.get(1L), - ItemList.Tool_Matches.get(1L), - 1L); + null, + ItemList.Tool_Matches.get(1L), + ItemList.Tool_Matches.get(1L), + 1L); addItemBehavior(32471, tBehaviour); tBehaviour = new Behaviour_Lighter( - null, - ItemList.Tool_MatchBox_Used.get(1L), - ItemList.Tool_MatchBox_Full.get(1L), - 16L); + null, + ItemList.Tool_MatchBox_Used.get(1L), + ItemList.Tool_MatchBox_Full.get(1L), + 16L); addItemBehavior(32472, tBehaviour); addItemBehavior(32473, tBehaviour); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.bolt, Materials.Wood, 1L), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Phosphorus, 1L), - GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Tool_Matches.get(1L), - 16, - 16); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.bolt, Materials.Wood, 1L), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Phosphorus, 1L), + GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Tool_Matches.get(1L), + 16, + 16); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.bolt, Materials.Wood, 1L), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.TricalciumPhosphate, 1L), - GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Tool_Matches.get(1L), - 16, - 16); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.bolt, Materials.Wood, 1L), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.TricalciumPhosphate, 1L), + GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Tool_Matches.get(1L), + 16, + 16); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.bolt, Materials.Wood, 4L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Phosphorus, 1L), - GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Tool_Matches.get(4L), - 64, - 16); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.bolt, Materials.Wood, 4L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Phosphorus, 1L), + GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Tool_Matches.get(4L), + 64, + 16); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.bolt, Materials.Wood, 4L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.TricalciumPhosphate, 1L), - GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Tool_Matches.get(4L), - 64, - 16); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.bolt, Materials.Wood, 4L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.TricalciumPhosphate, 1L), + GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Tool_Matches.get(4L), + 64, + 16); GT_Values.RA.addBoxingRecipe( - ItemList.Tool_Matches.get(16L), - GT_OreDictUnificator.get(OrePrefixes.plateDouble, Materials.Paper, 1L), - ItemList.Tool_MatchBox_Full.get(1L), - 64, - 16); - GT_Values.RA.addUnboxingRecipe( - ItemList.Tool_MatchBox_Full.get(1L), - ItemList.Tool_Matches.get(16L), - null, - 32, - 16); + ItemList.Tool_Matches.get(16L), + GT_OreDictUnificator.get(OrePrefixes.plateDouble, Materials.Paper, 1L), + ItemList.Tool_MatchBox_Full.get(1L), + 64, + 16); + GT_Values.RA + .addUnboxingRecipe(ItemList.Tool_MatchBox_Full.get(1L), ItemList.Tool_Matches.get(16L), null, 32, 16); ItemList.Tool_Lighter_Invar_Empty.set( - addItem( - tLastID = 474, - "Lighter (Empty)", - "", - new ItemData(Materials.Invar, OrePrefixes.plate.mMaterialAmount * 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L))); + addItem( + tLastID = 474, + "Lighter (Empty)", + "", + new ItemData(Materials.Invar, OrePrefixes.plate.mMaterialAmount * 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L))); ItemList.Tool_Lighter_Invar_Used.set( - addItem( - tLastID = 475, - "Lighter", - "", - new ItemData(Materials.Invar, OrePrefixes.plate.mMaterialAmount * 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L), - SubTag.INVISIBLE)); + addItem( + tLastID = 475, + "Lighter", + "", + new ItemData(Materials.Invar, OrePrefixes.plate.mMaterialAmount * 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L), + SubTag.INVISIBLE)); ItemList.Tool_Lighter_Invar_Full.set( - addItem( - tLastID = 476, - "Lighter (Full)", - "", - new ItemData(Materials.Invar, OrePrefixes.plate.mMaterialAmount * 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 2L))); + addItem( + tLastID = 476, + "Lighter (Full)", + "", + new ItemData(Materials.Invar, OrePrefixes.plate.mMaterialAmount * 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 2L))); tBehaviour = new Behaviour_Lighter( - ItemList.Tool_Lighter_Invar_Empty.get(1L), - ItemList.Tool_Lighter_Invar_Used.get(1L), - ItemList.Tool_Lighter_Invar_Full.get(1L), - 100L); + ItemList.Tool_Lighter_Invar_Empty.get(1L), + ItemList.Tool_Lighter_Invar_Used.get(1L), + ItemList.Tool_Lighter_Invar_Full.get(1L), + 100L); addItemBehavior(32475, tBehaviour); addItemBehavior(32476, tBehaviour); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Invar, 2L), - new ItemStack(Items.flint, 1), GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Tool_Lighter_Invar_Empty.get(1L), - 256, - 16); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Invar, 2L), + new ItemStack(Items.flint, 1), GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Tool_Lighter_Invar_Empty.get(1L), + 256, + 16); ItemList.Tool_Lighter_Platinum_Empty.set( - addItem( - tLastID = 477, - "Platinum Lighter (Empty)", - "A known Prank Master is engraved on it", - new ItemData(Materials.Platinum, OrePrefixes.plate.mMaterialAmount * 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.NEBRISUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L))); + addItem( + tLastID = 477, + "Platinum Lighter (Empty)", + "A known Prank Master is engraved on it", + new ItemData(Materials.Platinum, OrePrefixes.plate.mMaterialAmount * 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.NEBRISUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L))); ItemList.Tool_Lighter_Platinum_Used.set( - addItem( - tLastID = 478, - "Platinum Lighter", - "A known Prank Master is engraved on it", - new ItemData(Materials.Platinum, OrePrefixes.plate.mMaterialAmount * 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.NEBRISUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L), - SubTag.INVISIBLE)); + addItem( + tLastID = 478, + "Platinum Lighter", + "A known Prank Master is engraved on it", + new ItemData(Materials.Platinum, OrePrefixes.plate.mMaterialAmount * 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.NEBRISUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L), + SubTag.INVISIBLE)); ItemList.Tool_Lighter_Platinum_Full.set( - addItem( - tLastID = 479, - "Platinum Lighter (Full)", - "A known Prank Master is engraved on it", - new ItemData(Materials.Platinum, OrePrefixes.plate.mMaterialAmount * 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.NEBRISUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 2L))); + addItem( + tLastID = 479, + "Platinum Lighter (Full)", + "A known Prank Master is engraved on it", + new ItemData(Materials.Platinum, OrePrefixes.plate.mMaterialAmount * 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.NEBRISUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 2L))); tBehaviour = new Behaviour_Lighter( - ItemList.Tool_Lighter_Platinum_Empty.get(1L), - ItemList.Tool_Lighter_Platinum_Used.get(1L), - ItemList.Tool_Lighter_Platinum_Full.get(1L), - 1000L); + ItemList.Tool_Lighter_Platinum_Empty.get(1L), + ItemList.Tool_Lighter_Platinum_Used.get(1L), + ItemList.Tool_Lighter_Platinum_Full.get(1L), + 1000L); addItemBehavior(32478, tBehaviour); addItemBehavior(32479, tBehaviour); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Platinum, 2L), - new ItemStack(Items.flint, 1), GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Tool_Lighter_Platinum_Empty.get(1L), - 256, - 256); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Platinum, 2L), + new ItemStack(Items.flint, 1), GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Tool_Lighter_Platinum_Empty.get(1L), + 256, + 256); if (GalacticraftMars.isModLoaded()) { - ItemList.Ingot_Heavy1.set( - addItem(tLastID = 462, "Heavy Duty Alloy Ingot T1", "Used to make Heavy Duty Plates T1")); - ItemList.Ingot_Heavy2.set( - addItem(tLastID = 463, "Heavy Duty Alloy Ingot T2", "Used to make Heavy Duty Plates T2")); - ItemList.Ingot_Heavy3.set( - addItem(tLastID = 464, "Heavy Duty Alloy Ingot T3", "Used to make Heavy Duty Plates T3")); + ItemList.Ingot_Heavy1 + .set(addItem(tLastID = 462, "Heavy Duty Alloy Ingot T1", "Used to make Heavy Duty Plates T1")); + ItemList.Ingot_Heavy2 + .set(addItem(tLastID = 463, "Heavy Duty Alloy Ingot T2", "Used to make Heavy Duty Plates T2")); + ItemList.Ingot_Heavy3 + .set(addItem(tLastID = 464, "Heavy Duty Alloy Ingot T3", "Used to make Heavy Duty Plates T3")); // GT_ModHandler.addCraftingRecipe(ItemList.Ingot_Heavy1.get(1L, new Object[0]), // GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[]{"BhB", "CAS", "B B", 'B', @@ -1287,12 +1272,12 @@ public class GT_MetaGenerated_Item_01 extends GT_MetaGenerated_Item_X32 { // OrePrefixes.compressed.get(Materials.Aluminium), 'S', OrePrefixes.compressed.get(Materials.Steel)}); } ItemList.Ingot_IridiumAlloy.set( - addItem( - tLastID = 480, - "Iridium Alloy Ingot", - "Used to make Iridium Plates", - new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 4L))); + addItem( + tLastID = 480, + "Iridium Alloy Ingot", + "Used to make Iridium Plates", + new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 4L))); // GT_ModHandler.addRollingMachineRecipe(ItemList.Ingot_IridiumAlloy.get(1L, new Object[0]), new Object[]{"IAI", // "ADA", "IAI", 'D', GregTech_API.sRecipeFile.get(ConfigCategories.Recipes.harderrecipes, "iridiumplate", true) @@ -1305,284 +1290,284 @@ public class GT_MetaGenerated_Item_01 extends GT_MetaGenerated_Item_X32 { // OrePrefixes.plateAlloy.get("Advanced"), 'I', OrePrefixes.plate.get(Materials.Iridium)}); ItemList.Paper_Printed_Pages.set( - addItem( - tLastID = 481, - "Printed Pages", - "Used to make written Books", - new ItemData(Materials.Paper, 10886400L), - new Behaviour_PrintedPages(), - new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 2L))); + addItem( + tLastID = 481, + "Printed Pages", + "Used to make written Books", + new ItemData(Materials.Paper, 10886400L), + new Behaviour_PrintedPages(), + new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 2L))); ItemList.Paper_Magic_Empty.set( - addItem( - tLastID = 482, - "Magic Paper", - "", - SubTag.INVISIBLE, - new ItemData(Materials.Paper, 3628800L), - new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PRAECANTATIO, 1L))); + addItem( + tLastID = 482, + "Magic Paper", + "", + SubTag.INVISIBLE, + new ItemData(Materials.Paper, 3628800L), + new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PRAECANTATIO, 1L))); ItemList.Paper_Magic_Page.set( - addItem( - tLastID = 483, - "Enchanted Page", - "", - SubTag.INVISIBLE, - new ItemData(Materials.Paper, 3628800L), - new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PRAECANTATIO, 2L))); + addItem( + tLastID = 483, + "Enchanted Page", + "", + SubTag.INVISIBLE, + new ItemData(Materials.Paper, 3628800L), + new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PRAECANTATIO, 2L))); ItemList.Paper_Magic_Pages.set( - addItem( - tLastID = 484, - "Enchanted Pages", - "", - SubTag.INVISIBLE, - new ItemData(Materials.Paper, 10886400L), - new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PRAECANTATIO, 4L))); + addItem( + tLastID = 484, + "Enchanted Pages", + "", + SubTag.INVISIBLE, + new ItemData(Materials.Paper, 10886400L), + new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PRAECANTATIO, 4L))); ItemList.Paper_Punch_Card_Empty.set( - addItem( - tLastID = 485, - "Punch Card", - "", - SubTag.INVISIBLE, - new ItemData(Materials.Paper, 7257600L), - new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 1L))); + addItem( + tLastID = 485, + "Punch Card", + "", + SubTag.INVISIBLE, + new ItemData(Materials.Paper, 7257600L), + new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 1L))); ItemList.Paper_Punch_Card_Encoded.set( - addItem( - tLastID = 486, - "Punched Card", - "", - SubTag.INVISIBLE, - new ItemData(Materials.Paper, 7257600L), - new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 2L))); + addItem( + tLastID = 486, + "Punched Card", + "", + SubTag.INVISIBLE, + new ItemData(Materials.Paper, 7257600L), + new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 2L))); ItemList.Book_Written_01.set( - addItem( - tLastID = 487, - "Book", - "", - new ItemData(Materials.Paper, 10886400L), - "bookWritten", - OreDictNames.craftingBook, - new Behaviour_WrittenBook(), - new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 2L))); + addItem( + tLastID = 487, + "Book", + "", + new ItemData(Materials.Paper, 10886400L), + "bookWritten", + OreDictNames.craftingBook, + new Behaviour_WrittenBook(), + new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 2L))); ItemList.Book_Written_02.set( - addItem( - tLastID = 488, - "Book", - "", - new ItemData(Materials.Paper, 10886400L), - "bookWritten", - OreDictNames.craftingBook, - new Behaviour_WrittenBook(), - new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 2L))); + addItem( + tLastID = 488, + "Book", + "", + new ItemData(Materials.Paper, 10886400L), + "bookWritten", + OreDictNames.craftingBook, + new Behaviour_WrittenBook(), + new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 2L))); ItemList.Book_Written_03.set( - addItem( - tLastID = 489, - "Book", - "", - new ItemData(Materials.Paper, 10886400L), - "bookWritten", - OreDictNames.craftingBook, - new Behaviour_WrittenBook(), - new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 2L))); + addItem( + tLastID = 489, + "Book", + "", + new ItemData(Materials.Paper, 10886400L), + "bookWritten", + OreDictNames.craftingBook, + new Behaviour_WrittenBook(), + new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 2L))); ItemList.Schematic.set( - addItem( - tLastID = 490, - "Schematic", - "EMPTY", - new ItemData(Materials.Steel, 7257600L), - new TC_Aspects.TC_AspectStack(TC_Aspects.STRONTIO, 1L))); + addItem( + tLastID = 490, + "Schematic", + "EMPTY", + new ItemData(Materials.Steel, 7257600L), + new TC_Aspects.TC_AspectStack(TC_Aspects.STRONTIO, 1L))); ItemList.Schematic_Crafting.set( - addItem( - tLastID = 491, - "Schematic (Crafting)", - "Crafts the Programmed Recipe", - new ItemData(Materials.Steel, 7257600L), - new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 1L))); + addItem( + tLastID = 491, + "Schematic (Crafting)", + "Crafts the Programmed Recipe", + new ItemData(Materials.Steel, 7257600L), + new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 1L))); ItemList.Schematic_1by1.set( - addItem( - tLastID = 495, - "Schematic (1x1)", - "Crafts 1 Items as 1x1 (use in Packager)", - new ItemData(Materials.Steel, 7257600L), - new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 1L))); + addItem( + tLastID = 495, + "Schematic (1x1)", + "Crafts 1 Items as 1x1 (use in Packager)", + new ItemData(Materials.Steel, 7257600L), + new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 1L))); ItemList.Schematic_2by2.set( - addItem( - tLastID = 496, - "Schematic (2x2)", - "Crafts 4 Items as 2x2 (use in Packager)", - new ItemData(Materials.Steel, 7257600L), - new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 1L))); + addItem( + tLastID = 496, + "Schematic (2x2)", + "Crafts 4 Items as 2x2 (use in Packager)", + new ItemData(Materials.Steel, 7257600L), + new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 1L))); ItemList.Schematic_3by3.set( - addItem( - tLastID = 497, - "Schematic (3x3)", - "Crafts 9 Items as 3x3 (use in Packager)", - new ItemData(Materials.Steel, 7257600L), - new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 1L))); + addItem( + tLastID = 497, + "Schematic (3x3)", + "Crafts 9 Items as 3x3 (use in Packager)", + new ItemData(Materials.Steel, 7257600L), + new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 1L))); ItemList.Schematic_Dust.set( - addItem( - tLastID = 498, - "Schematic (Dusts)", - "Combines Dusts (use in Packager)", - new ItemData(Materials.Steel, 7257600L), - new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 1L))); + addItem( + tLastID = 498, + "Schematic (Dusts)", + "Combines Dusts (use in Packager)", + new ItemData(Materials.Steel, 7257600L), + new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 1L))); GT_ModHandler.addCraftingRecipe( - ItemList.Schematic_1by1.get(1L), - GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { "d ", aTextShape, aTextEmptyRow, 'P', ItemList.Schematic }); + ItemList.Schematic_1by1.get(1L), + GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { "d ", aTextShape, aTextEmptyRow, 'P', ItemList.Schematic }); GT_ModHandler.addCraftingRecipe( - ItemList.Schematic_2by2.get(1L), - GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { " d ", aTextShape, aTextEmptyRow, 'P', ItemList.Schematic }); + ItemList.Schematic_2by2.get(1L), + GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { " d ", aTextShape, aTextEmptyRow, 'P', ItemList.Schematic }); GT_ModHandler.addCraftingRecipe( - ItemList.Schematic_3by3.get(1L), - GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { " d", aTextShape, aTextEmptyRow, 'P', ItemList.Schematic }); + ItemList.Schematic_3by3.get(1L), + GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { " d", aTextShape, aTextEmptyRow, 'P', ItemList.Schematic }); GT_ModHandler.addCraftingRecipe( - ItemList.Schematic_Dust.get(1L), - GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { aTextEmptyRow, aTextShape, " d", 'P', ItemList.Schematic }); + ItemList.Schematic_Dust.get(1L), + GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { aTextEmptyRow, aTextShape, " d", 'P', ItemList.Schematic }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Schematic.get(1L), - GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { ItemList.Schematic_Crafting }); + ItemList.Schematic.get(1L), + GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { ItemList.Schematic_Crafting }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Schematic.get(1L), - GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { ItemList.Schematic_1by1 }); + ItemList.Schematic.get(1L), + GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { ItemList.Schematic_1by1 }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Schematic.get(1L), - GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { ItemList.Schematic_2by2 }); + ItemList.Schematic.get(1L), + GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { ItemList.Schematic_2by2 }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Schematic.get(1L), - GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { ItemList.Schematic_3by3 }); + ItemList.Schematic.get(1L), + GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { ItemList.Schematic_3by3 }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Schematic.get(1L), - GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { ItemList.Schematic_Dust }); + ItemList.Schematic.get(1L), + GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { ItemList.Schematic_Dust }); ItemList.Battery_Hull_LV.set( - addItem( - 500, - "Small Battery Hull", - "An empty LV Battery Hull", - new ItemData(Materials.BatteryAlloy, OrePrefixes.plate.mMaterialAmount * 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L))); + addItem( + 500, + "Small Battery Hull", + "An empty LV Battery Hull", + new ItemData(Materials.BatteryAlloy, OrePrefixes.plate.mMaterialAmount * 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L))); ItemList.Battery_Hull_MV.set( - addItem( - 501, - "Medium Battery Hull", - "An empty MV Battery Hull", - new ItemData(Materials.BatteryAlloy, OrePrefixes.plate.mMaterialAmount * 3L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L))); + addItem( + 501, + "Medium Battery Hull", + "An empty MV Battery Hull", + new ItemData(Materials.BatteryAlloy, OrePrefixes.plate.mMaterialAmount * 3L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L))); ItemList.Battery_Hull_HV.set( - addItem( - 502, - "Large Battery Hull", - "An empty HV Battery Hull", - new ItemData(Materials.BatteryAlloy, OrePrefixes.plate.mMaterialAmount * 9L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L))); + addItem( + 502, + "Large Battery Hull", + "An empty HV Battery Hull", + new ItemData(Materials.BatteryAlloy, OrePrefixes.plate.mMaterialAmount * 9L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L))); GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Hull_LV.get(1L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { "Cf ", "Ph ", "Ps ", 'P', OrePrefixes.plate.get(Materials.BatteryAlloy), 'C', - OreDictNames.craftingWireTin }); + ItemList.Battery_Hull_LV.get(1L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { "Cf ", "Ph ", "Ps ", 'P', OrePrefixes.plate.get(Materials.BatteryAlloy), 'C', + OreDictNames.craftingWireTin }); // GT_ModHandler.addCraftingRecipe(ItemList.Battery_Hull_MV.get(1L), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new // Object[]{"C C", "PPP", "PPP", 'P', OrePrefixes.plate.get(Materials.BatteryAlloy), 'C', // OreDictNames.craftingWireCopper}); // ULV Batteries ItemList.Battery_RE_ULV_Tantalum.set( - addItem( - tLastID = 499, - "Tantalum Capacitor", - "Reusable", - "batteryULV", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L))); + addItem( + tLastID = 499, + "Tantalum Capacitor", + "Reusable", + "batteryULV", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L))); setElectricStats(32000 + tLastID, 1000L, GT_Values.V[0], 0L, -3L, false); registerTieredTooltip(ItemList.Battery_RE_ULV_Tantalum.get(1), ULV); // LV Batteries ItemList.Battery_SU_LV_SulfuricAcid.set( - addItem( - tLastID = 510, - "Small Acid Battery", - "Single Use", - "batteryLV", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 2L))); + addItem( + tLastID = 510, + "Small Acid Battery", + "Single Use", + "batteryLV", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 2L))); setElectricStats(32000 + tLastID, 18000L, GT_Values.V[1], 1L, -2L, true); registerTieredTooltip(ItemList.Battery_SU_LV_SulfuricAcid.get(1), LV); ItemList.Battery_SU_LV_Mercury.set( - addItem( - tLastID = 511, - "Small Mercury Battery", - "Single Use", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 2L))); + addItem( + tLastID = 511, + "Small Mercury Battery", + "Single Use", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 2L))); setElectricStats(32000 + tLastID, 32000L, GT_Values.V[1], 1L, -2L, true); registerTieredTooltip(ItemList.Battery_SU_LV_Mercury.get(1), LV); ItemList.Battery_RE_LV_Cadmium.set( - addItem( - tLastID = 517, - "Small Cadmium Battery", - "Reusable", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L), - "batteryLV")); + addItem( + tLastID = 517, + "Small Cadmium Battery", + "Reusable", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L), + "batteryLV")); setElectricStats(32000 + tLastID, 75000L, GT_Values.V[1], 1L, -3L, true); registerTieredTooltip(ItemList.Battery_RE_LV_Cadmium.get(1), LV); // Annoying backwards compat OreDictionary.registerOre("calclavia:ADVANCED_BATTERY", ItemList.Battery_RE_LV_Cadmium.get(1)); ItemList.Battery_RE_LV_Lithium.set( - addItem( - tLastID = 518, - "Small Lithium Battery", - "Reusable", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L), - "batteryLV")); + addItem( + tLastID = 518, + "Small Lithium Battery", + "Reusable", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L), + "batteryLV")); setElectricStats(32000 + tLastID, 100000L, GT_Values.V[1], 1L, -3L, true); registerTieredTooltip(ItemList.Battery_RE_LV_Lithium.get(1), LV); // Annoying backwards compat OreDictionary.registerOre("calclavia:ADVANCED_BATTERY", ItemList.Battery_RE_LV_Lithium.get(1)); ItemList.Battery_RE_LV_Sodium.set( - addItem( - tLastID = 519, - "Small Sodium Battery", - "Reusable", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L), - "calclavia:ADVANCED_BATTERY")); + addItem( + tLastID = 519, + "Small Sodium Battery", + "Reusable", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L), + "calclavia:ADVANCED_BATTERY")); setElectricStats(32000 + tLastID, 50000L, GT_Values.V[1], 1L, -3L, true); registerTieredTooltip(ItemList.Battery_RE_LV_Sodium.get(1), LV); // Annoying backwards compat @@ -1590,137 +1575,134 @@ public class GT_MetaGenerated_Item_01 extends GT_MetaGenerated_Item_X32 { // MV Batteries ItemList.Battery_SU_MV_SulfuricAcid.set( - addItem( - tLastID = 520, - "Medium Acid Battery", - "Single Use", - "batteryMV", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 4L))); + addItem( + tLastID = 520, + "Medium Acid Battery", + "Single Use", + "batteryMV", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 4L))); setElectricStats(32000 + tLastID, 72000L, GT_Values.V[2], 2L, -2L, true); registerTieredTooltip(ItemList.Battery_SU_MV_SulfuricAcid.get(1), MV); ItemList.Battery_SU_MV_Mercury.set( - addItem( - tLastID = 521, - "Medium Mercury Battery", - "Single Use", - "batteryMV", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 4L))); + addItem( + tLastID = 521, + "Medium Mercury Battery", + "Single Use", + "batteryMV", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 4L))); setElectricStats(32000 + tLastID, 128000L, GT_Values.V[2], 2L, -2L, true); registerTieredTooltip(ItemList.Battery_SU_MV_Mercury.get(1), MV); ItemList.Battery_RE_MV_Cadmium.set( - addItem( - tLastID = 527, - "Medium Cadmium Battery", - "Reusable", - "batteryMV", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 2L))); + addItem( + tLastID = 527, + "Medium Cadmium Battery", + "Reusable", + "batteryMV", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 2L))); setElectricStats(32000 + tLastID, 300000L, GT_Values.V[2], 2L, -3L, true); registerTieredTooltip(ItemList.Battery_RE_MV_Cadmium.get(1), MV); ItemList.Battery_RE_MV_Lithium.set( - addItem( - tLastID = 528, - "Medium Lithium Battery", - "Reusable", - "batteryMV", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 2L))); + addItem( + tLastID = 528, + "Medium Lithium Battery", + "Reusable", + "batteryMV", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 2L))); setElectricStats(32000 + tLastID, 400000L, GT_Values.V[2], 2L, -3L, true); registerTieredTooltip(ItemList.Battery_RE_MV_Lithium.get(1), MV); ItemList.Battery_RE_MV_Sodium.set( - addItem( - tLastID = 529, - "Medium Sodium Battery", - "Reusable", - "batteryMV", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 2L))); + addItem( + tLastID = 529, + "Medium Sodium Battery", + "Reusable", + "batteryMV", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 2L))); setElectricStats(32000 + tLastID, 200000L, GT_Values.V[2], 2L, -3L, true); registerTieredTooltip(ItemList.Battery_RE_MV_Sodium.get(1), MV); // HV Batteries ItemList.Battery_SU_HV_SulfuricAcid.set( - addItem( - tLastID = 530, - "Large Acid Battery", - "Single Use", - "batteryHV", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 8L))); + addItem( + tLastID = 530, + "Large Acid Battery", + "Single Use", + "batteryHV", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 8L))); setElectricStats(32000 + tLastID, 288000L, GT_Values.V[3], 3L, -2L, true); registerTieredTooltip(ItemList.Battery_SU_HV_SulfuricAcid.get(1), HV); ItemList.Battery_SU_HV_Mercury.set( - addItem( - tLastID = 531, - "Large Mercury Battery", - "Single Use", - "batteryHV", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 8L))); + addItem( + tLastID = 531, + "Large Mercury Battery", + "Single Use", + "batteryHV", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 8L))); setElectricStats(32000 + tLastID, 512000L, GT_Values.V[3], 3L, -2L, true); registerTieredTooltip(ItemList.Battery_SU_HV_Mercury.get(1), HV); ItemList.Battery_RE_HV_Cadmium.set( - addItem( - tLastID = 537, - "Large Cadmium Battery", - "Reusable", - "batteryHV", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 4L))); + addItem( + tLastID = 537, + "Large Cadmium Battery", + "Reusable", + "batteryHV", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 4L))); setElectricStats(32000 + tLastID, 1200000L, GT_Values.V[3], 3L, -3L, true); registerTieredTooltip(ItemList.Battery_RE_HV_Cadmium.get(1), HV); ItemList.Battery_RE_HV_Lithium.set( - addItem( - tLastID = 538, - "Large Lithium Battery", - "Reusable", - "batteryHV", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 4L))); + addItem( + tLastID = 538, + "Large Lithium Battery", + "Reusable", + "batteryHV", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 4L))); setElectricStats(32000 + tLastID, 1600000L, GT_Values.V[3], 3L, -3L, true); registerTieredTooltip(ItemList.Battery_RE_HV_Lithium.get(1), HV); ItemList.Battery_RE_HV_Sodium.set( - addItem( - tLastID = 539, - "Large Sodium Battery", - "Reusable", - "batteryHV", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 4L))); + addItem( + tLastID = 539, + "Large Sodium Battery", + "Reusable", + "batteryHV", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 4L))); setElectricStats(32000 + tLastID, 800000L, GT_Values.V[3], 3L, -3L, true); registerTieredTooltip(ItemList.Battery_RE_HV_Sodium.get(1), HV); - GT_ModHandler.addExtractionRecipe( - ItemList.Battery_SU_LV_SulfuricAcid.get(1L), - ItemList.Battery_Hull_LV.get(1L)); + GT_ModHandler + .addExtractionRecipe(ItemList.Battery_SU_LV_SulfuricAcid.get(1L), ItemList.Battery_Hull_LV.get(1L)); GT_ModHandler.addExtractionRecipe(ItemList.Battery_SU_LV_Mercury.get(1L), ItemList.Battery_Hull_LV.get(1L)); - GT_ModHandler.addExtractionRecipe( - ItemList.Battery_SU_MV_SulfuricAcid.get(1L), - ItemList.Battery_Hull_MV.get(1L)); + GT_ModHandler + .addExtractionRecipe(ItemList.Battery_SU_MV_SulfuricAcid.get(1L), ItemList.Battery_Hull_MV.get(1L)); GT_ModHandler.addExtractionRecipe(ItemList.Battery_SU_MV_Mercury.get(1L), ItemList.Battery_Hull_MV.get(1L)); - GT_ModHandler.addExtractionRecipe( - ItemList.Battery_SU_HV_SulfuricAcid.get(1L), - ItemList.Battery_Hull_HV.get(1L)); + GT_ModHandler + .addExtractionRecipe(ItemList.Battery_SU_HV_SulfuricAcid.get(1L), ItemList.Battery_Hull_HV.get(1L)); GT_ModHandler.addExtractionRecipe(ItemList.Battery_SU_HV_Mercury.get(1L), ItemList.Battery_Hull_HV.get(1L)); GT_ModHandler.addExtractionRecipe(ItemList.Battery_RE_LV_Cadmium.get(1L), ItemList.Battery_Hull_LV.get(1L)); GT_ModHandler.addExtractionRecipe(ItemList.Battery_RE_LV_Lithium.get(1L), ItemList.Battery_Hull_LV.get(1L)); @@ -1733,1799 +1715,1768 @@ public class GT_MetaGenerated_Item_01 extends GT_MetaGenerated_Item_X32 { GT_ModHandler.addExtractionRecipe(ItemList.Battery_RE_HV_Sodium.get(1L), ItemList.Battery_Hull_HV.get(1L)); GT_Values.RA.addCannerRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cadmium, 2L), - ItemList.Battery_Hull_LV.get(1L), - ItemList.Battery_RE_LV_Cadmium.get(1L), - null, - 100, - 2); + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cadmium, 2L), + ItemList.Battery_Hull_LV.get(1L), + ItemList.Battery_RE_LV_Cadmium.get(1L), + null, + 100, + 2); GT_Values.RA.addCannerRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lithium, 2L), - ItemList.Battery_Hull_LV.get(1L), - ItemList.Battery_RE_LV_Lithium.get(1L), - null, - 100, - 2); + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lithium, 2L), + ItemList.Battery_Hull_LV.get(1L), + ItemList.Battery_RE_LV_Lithium.get(1L), + null, + 100, + 2); GT_Values.RA.addCannerRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sodium, 2L), - ItemList.Battery_Hull_LV.get(1L), - ItemList.Battery_RE_LV_Sodium.get(1L), - null, - 100, - 2); + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sodium, 2L), + ItemList.Battery_Hull_LV.get(1L), + ItemList.Battery_RE_LV_Sodium.get(1L), + null, + 100, + 2); GT_Values.RA.addCannerRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cadmium, 8L), - ItemList.Battery_Hull_MV.get(1L), - ItemList.Battery_RE_MV_Cadmium.get(1L), - null, - 400, - 2); + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cadmium, 8L), + ItemList.Battery_Hull_MV.get(1L), + ItemList.Battery_RE_MV_Cadmium.get(1L), + null, + 400, + 2); GT_Values.RA.addCannerRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lithium, 8L), - ItemList.Battery_Hull_MV.get(1L), - ItemList.Battery_RE_MV_Lithium.get(1L), - null, - 400, - 2); + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lithium, 8L), + ItemList.Battery_Hull_MV.get(1L), + ItemList.Battery_RE_MV_Lithium.get(1L), + null, + 400, + 2); GT_Values.RA.addCannerRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sodium, 8L), - ItemList.Battery_Hull_MV.get(1L), - ItemList.Battery_RE_MV_Sodium.get(1L), - null, - 400, - 2); + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sodium, 8L), + ItemList.Battery_Hull_MV.get(1L), + ItemList.Battery_RE_MV_Sodium.get(1L), + null, + 400, + 2); GT_Values.RA.addCannerRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cadmium, 32L), - ItemList.Battery_Hull_HV.get(1L), - ItemList.Battery_RE_HV_Cadmium.get(1L), - null, - 1600, - 2); + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cadmium, 32L), + ItemList.Battery_Hull_HV.get(1L), + ItemList.Battery_RE_HV_Cadmium.get(1L), + null, + 1600, + 2); GT_Values.RA.addCannerRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lithium, 32L), - ItemList.Battery_Hull_HV.get(1L), - ItemList.Battery_RE_HV_Lithium.get(1L), - null, - 1600, - 2); + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lithium, 32L), + ItemList.Battery_Hull_HV.get(1L), + ItemList.Battery_RE_HV_Lithium.get(1L), + null, + 1600, + 2); GT_Values.RA.addCannerRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sodium, 32L), - ItemList.Battery_Hull_HV.get(1L), - ItemList.Battery_RE_HV_Sodium.get(1L), - null, - 1600, - 2); + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sodium, 32L), + ItemList.Battery_Hull_HV.get(1L), + ItemList.Battery_RE_HV_Sodium.get(1L), + null, + 1600, + 2); // IV Battery ItemList.Energy_LapotronicOrb.set( - addItem( - tLastID = 597, - "Lapotronic Energy Orb", - "Reusable battery", - "batteryIV", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 16L), - OrePrefixes.battery.get(Materials.Ultimate))); + addItem( + tLastID = 597, + "Lapotronic Energy Orb", + "Reusable battery", + "batteryIV", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 16L), + OrePrefixes.battery.get(Materials.Ultimate))); setElectricStats(32000 + tLastID, 100000000L, GT_Values.V[5], 5L, -3L, true); registerTieredTooltip(ItemList.Energy_LapotronicOrb.get(1), IV); // ZPM Module ItemList.ZPM.set( - addItem( - tLastID = 598, - "Zero Point Module", - "Single use battery", - "batteryZPM", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 64L))); + addItem( + tLastID = 598, + "Zero Point Module", + "Single use battery", + "batteryZPM", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 64L))); setElectricStats(32000 + tLastID, 2000000000000L, GT_Values.V[7], 7L, -2L, true); registerTieredTooltip(ItemList.ZPM.get(1), ZPM); // LuV Lapotron orb cluster battery ItemList.Energy_LapotronicOrb2.set( - addItem( - tLastID = 599, - "Lapotronic Energy Orb Cluster", - "Reusable battery", - "batteryLuV", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 16L), - OrePrefixes.battery.get(Materials.Ultimate))); + addItem( + tLastID = 599, + "Lapotronic Energy Orb Cluster", + "Reusable battery", + "batteryLuV", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 16L), + OrePrefixes.battery.get(Materials.Ultimate))); setElectricStats(32000 + tLastID, 1000000000L, GT_Values.V[6], 6L, -3L, true); registerTieredTooltip(ItemList.Energy_LapotronicOrb2.get(1), LuV); // UV Battery ItemList.ZPM2.set( - addItem( - tLastID = 605, - "Ultimate Battery", - "Fill this to win minecraft", - "batteryUV", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 64L))); + addItem( + tLastID = 605, + "Ultimate Battery", + "Fill this to win minecraft", + "batteryUV", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 64L))); setElectricStats(32000 + tLastID, Long.MAX_VALUE, GT_Values.V[8], 8L, -3L, true); registerTieredTooltip(ItemList.ZPM2.get(1), UV); // UMV Battery ItemList.ZPM3.set( - addItem( - tLastID = 609, - "Really Ultimate Battery", - "Fill this to be way older", - "batteryUMV", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 64L))); + addItem( + tLastID = 609, + "Really Ultimate Battery", + "Fill this to be way older", + "batteryUMV", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 64L))); setElectricStats(32000 + tLastID, Long.MAX_VALUE, GT_Values.V[12], 12L, -3L, true); registerTieredTooltip(ItemList.ZPM3.get(1), UMV); // UXV Battery ItemList.ZPM4.set( - addItem( - tLastID = 594, - "Extremely Ultimate Battery", - "Fill this to be older", - "batteryUXV", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 64L))); + addItem( + tLastID = 594, + "Extremely Ultimate Battery", + "Fill this to be older", + "batteryUXV", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 64L))); setElectricStats(32000 + tLastID, Long.MAX_VALUE, GT_Values.V[13], 13L, -3L, true); registerTieredTooltip(ItemList.ZPM4.get(1), UXV); // MAX Battery ItemList.ZPM5.set( - addItem( - tLastID = 145, - "Insanely Ultimate Battery", - "Fill this for fun", - "batteryMAX", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 64L))); + addItem( + tLastID = 145, + "Insanely Ultimate Battery", + "Fill this for fun", + "batteryMAX", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 64L))); setElectricStats(32000 + tLastID, Long.MAX_VALUE, GT_Values.V[14], 14L, -3L, true); registerTieredTooltip(ItemList.ZPM5.get(1), MAX); // ERROR Battery ItemList.ZPM6.set( - addItem( - tLastID = 146, - "Mega Ultimate Battery", - "Fill the capacitor to reach enlightenment", - "batteryERV", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 64L))); + addItem( + tLastID = 146, + "Mega Ultimate Battery", + "Fill the capacitor to reach enlightenment", + "batteryERV", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 64L))); setElectricStats(32000 + tLastID, Long.MAX_VALUE, GT_Values.V[15], 15L, -3L, true); registerTieredTooltip(ItemList.ZPM6.get(1), ERV); // ZPM Cluster ItemList.Energy_Module.set( - addItem( - tLastID = 736, - "Energy Module", - "Reusable battery", - "batteryZPM", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 16L), - OrePrefixes.battery.get(Materials.Ultimate))); + addItem( + tLastID = 736, + "Energy Module", + "Reusable battery", + "batteryZPM", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 16L), + OrePrefixes.battery.get(Materials.Ultimate))); setElectricStats(32000 + tLastID, 10000000000L, GT_Values.V[7], 7L, -3L, true); registerTieredTooltip(ItemList.Energy_Module.get(1), ZPM); // UV Cluster ItemList.Energy_Cluster.set( - addItem( - tLastID = 737, - "Energy Cluster", - "Reusable battery", - "batteryUV", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 64L))); + addItem( + tLastID = 737, + "Energy Cluster", + "Reusable battery", + "batteryUV", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 64L))); setElectricStats(32000 + tLastID, 100000000000L, GT_Values.V[8], 8L, -3L, true); registerTieredTooltip(ItemList.Energy_Cluster.get(1), UV); // UIV, UMV, UXV and MAX component textures backported from gregicality. ItemList.Electric_Motor_LV.set( - addItem( - 600, - "Electric Motor (LV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 1L))); + addItem( + 600, + "Electric Motor (LV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 1L))); ItemList.Electric_Motor_MV.set( - addItem( - 601, - "Electric Motor (MV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 2L))); + addItem( + 601, + "Electric Motor (MV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 2L))); ItemList.Electric_Motor_HV.set( - addItem( - 602, - "Electric Motor (HV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 4L))); + addItem( + 602, + "Electric Motor (HV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 4L))); ItemList.Electric_Motor_EV.set( - addItem( - 603, - "Electric Motor (EV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 8L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 8L))); + addItem( + 603, + "Electric Motor (EV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 8L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 8L))); ItemList.Electric_Motor_IV.set( - addItem( - 604, - "Electric Motor (IV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 16L))); + addItem( + 604, + "Electric Motor (IV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 16L))); ItemList.Electric_Motor_LuV.set( - addItem( - 606, - "Electric Motor (LuV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 32L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 32L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 32L))); + addItem( + 606, + "Electric Motor (LuV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 32L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 32L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 32L))); ItemList.Electric_Motor_ZPM.set( - addItem( - 607, - "Electric Motor (ZPM)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 64L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 64L))); + addItem( + 607, + "Electric Motor (ZPM)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 64L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 64L))); ItemList.Electric_Motor_UV.set( - addItem( - 608, - "Electric Motor (UV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 128L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 128L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 128L))); + addItem( + 608, + "Electric Motor (UV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 128L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 128L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 128L))); ItemList.Electric_Motor_UHV.set( - addItem( - 596, - "Electric Motor (UHV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 256L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 256L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 256L))); + addItem( + 596, + "Electric Motor (UHV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 256L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 256L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 256L))); ItemList.Electric_Motor_UEV.set( - addItem( - 595, - "Electric Motor (UEV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 512L))); + addItem( + 595, + "Electric Motor (UEV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 512L))); ItemList.Electric_Motor_UIV.set( - addItem( - 17, - "Electric Motor (UIV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 512L))); + addItem( + 17, + "Electric Motor (UIV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 512L))); ItemList.Electric_Motor_UMV.set( - addItem( - 18, - "Electric Motor (UMV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 512L))); + addItem( + 18, + "Electric Motor (UMV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 512L))); ItemList.Electric_Motor_UXV.set( - addItem( - 19, - "Electric Motor (UXV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 512L))); + addItem( + 19, + "Electric Motor (UXV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 512L))); ItemList.Electric_Motor_MAX.set( - addItem( - 20, - "Electric Motor (MAX)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 512L))); + addItem( + 20, + "Electric Motor (MAX)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 512L))); GT_ModHandler.addCraftingRecipe( - ItemList.Electric_Motor_LV.get(1L), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "CWR", "WIW", "RWC", 'I', OrePrefixes.stick.get(Materials.IronMagnetic), 'R', - OrePrefixes.stick.get(Materials.AnyIron), 'W', OrePrefixes.wireGt01.get(Materials.AnyCopper), - 'C', OrePrefixes.cableGt01.get(Materials.Tin) }); + ItemList.Electric_Motor_LV.get(1L), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "CWR", "WIW", "RWC", 'I', OrePrefixes.stick.get(Materials.IronMagnetic), 'R', + OrePrefixes.stick.get(Materials.AnyIron), 'W', OrePrefixes.wireGt01.get(Materials.AnyCopper), 'C', + OrePrefixes.cableGt01.get(Materials.Tin) }); GT_ModHandler.addCraftingRecipe( - ItemList.Electric_Motor_LV.get(1L), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "CWR", "WIW", "RWC", 'I', OrePrefixes.stick.get(Materials.SteelMagnetic), 'R', - OrePrefixes.stick.get(Materials.Steel), 'W', OrePrefixes.wireGt01.get(Materials.AnyCopper), 'C', - OrePrefixes.cableGt01.get(Materials.Tin) }); + ItemList.Electric_Motor_LV.get(1L), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "CWR", "WIW", "RWC", 'I', OrePrefixes.stick.get(Materials.SteelMagnetic), 'R', + OrePrefixes.stick.get(Materials.Steel), 'W', OrePrefixes.wireGt01.get(Materials.AnyCopper), 'C', + OrePrefixes.cableGt01.get(Materials.Tin) }); GT_ModHandler.addCraftingRecipe( - ItemList.Electric_Motor_MV.get(1L), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "CWR", "WIW", "RWC", 'I', OrePrefixes.stick.get(Materials.SteelMagnetic), 'R', - OrePrefixes.stick.get(Materials.Aluminium), 'W', - OrePrefixes.wireGt02.get(Materials.Cupronickel), 'C', - OrePrefixes.cableGt01.get(Materials.AnyCopper) }); + ItemList.Electric_Motor_MV.get(1L), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "CWR", "WIW", "RWC", 'I', OrePrefixes.stick.get(Materials.SteelMagnetic), 'R', + OrePrefixes.stick.get(Materials.Aluminium), 'W', OrePrefixes.wireGt02.get(Materials.Cupronickel), 'C', + OrePrefixes.cableGt01.get(Materials.AnyCopper) }); GT_ModHandler.addCraftingRecipe( - ItemList.Electric_Motor_HV.get(1L), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "CWR", "WIW", "RWC", 'I', OrePrefixes.stick.get(Materials.SteelMagnetic), 'R', - OrePrefixes.stick.get(Materials.StainlessSteel), 'W', - OrePrefixes.wireGt04.get(Materials.Electrum), 'C', - OrePrefixes.cableGt02.get(Materials.Silver) }); + ItemList.Electric_Motor_HV.get(1L), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "CWR", "WIW", "RWC", 'I', OrePrefixes.stick.get(Materials.SteelMagnetic), 'R', + OrePrefixes.stick.get(Materials.StainlessSteel), 'W', OrePrefixes.wireGt04.get(Materials.Electrum), 'C', + OrePrefixes.cableGt02.get(Materials.Silver) }); GT_ModHandler.addCraftingRecipe( - ItemList.Electric_Motor_EV.get(1L), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "CWR", "WIW", "RWC", 'I', OrePrefixes.stick.get(Materials.NeodymiumMagnetic), 'R', - OrePrefixes.stick.get(Materials.Titanium), 'W', OrePrefixes.wireGt04.get(Materials.BlackSteel), - 'C', OrePrefixes.cableGt02.get(Materials.Aluminium) }); + ItemList.Electric_Motor_EV.get(1L), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "CWR", "WIW", "RWC", 'I', OrePrefixes.stick.get(Materials.NeodymiumMagnetic), 'R', + OrePrefixes.stick.get(Materials.Titanium), 'W', OrePrefixes.wireGt04.get(Materials.BlackSteel), 'C', + OrePrefixes.cableGt02.get(Materials.Aluminium) }); GT_ModHandler.addCraftingRecipe( - ItemList.Electric_Motor_IV.get(1L), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "CWR", "WIW", "RWC", 'I', OrePrefixes.stick.get(Materials.NeodymiumMagnetic), 'R', - OrePrefixes.stick.get(Materials.TungstenSteel), 'W', - OrePrefixes.wireGt04.get(Materials.Graphene), 'C', - OrePrefixes.cableGt02.get(Materials.Tungsten) }); + ItemList.Electric_Motor_IV.get(1L), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "CWR", "WIW", "RWC", 'I', OrePrefixes.stick.get(Materials.NeodymiumMagnetic), 'R', + OrePrefixes.stick.get(Materials.TungstenSteel), 'W', OrePrefixes.wireGt04.get(Materials.Graphene), 'C', + OrePrefixes.cableGt02.get(Materials.Tungsten) }); ItemList.Tesseract.set( - addItem( - 415, - "Raw Tesseract", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 1L))); + addItem( + 415, + "Raw Tesseract", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 1L))); ItemList.GigaChad.set( - addItem( - 416, - "Giga Chad Token", - "You are worthy", - new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 1000L))); + addItem( + 416, + "Giga Chad Token", + "You are worthy", + new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 1000L))); ItemList.EnergisedTesseract.set( - addItem( - 417, - "Energised Tesseract", - "Higher dimensional engineering", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 10L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 1L))); + addItem( + 417, + "Energised Tesseract", + "Higher dimensional engineering", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 10L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 1L))); ItemList.Electric_Piston_LV.set( - addItem( - 640, - "Electric Piston (LV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 1L))); + addItem( + 640, + "Electric Piston (LV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 1L))); ItemList.Electric_Piston_MV.set( - addItem( - 641, - "Electric Piston (MV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 2L))); + addItem( + 641, + "Electric Piston (MV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 2L))); ItemList.Electric_Piston_HV.set( - addItem( - 642, - "Electric Piston (HV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 8L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 4L))); + addItem( + 642, + "Electric Piston (HV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 8L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 4L))); ItemList.Electric_Piston_EV.set( - addItem( - 643, - "Electric Piston (EV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 8L))); + addItem( + 643, + "Electric Piston (EV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 8L))); ItemList.Electric_Piston_IV.set( - addItem( - 644, - "Electric Piston (IV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 32L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 16L))); + addItem( + 644, + "Electric Piston (IV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 32L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 16L))); ItemList.Electric_Piston_LuV.set( - addItem( - 645, - "Electric Piston (LuV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 32L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 64L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 32L))); + addItem( + 645, + "Electric Piston (LuV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 32L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 64L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 32L))); ItemList.Electric_Piston_ZPM.set( - addItem( - 646, - "Electric Piston (ZPM)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 64L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 64L))); + addItem( + 646, + "Electric Piston (ZPM)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 64L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 64L))); ItemList.Electric_Piston_UV.set( - addItem( - 647, - "Electric Piston (UV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 128L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 128L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 128L))); + addItem( + 647, + "Electric Piston (UV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 128L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 128L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 128L))); ItemList.Electric_Piston_UHV.set( - addItem( - 648, - "Electric Piston (UHV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 256L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 256L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 256L))); + addItem( + 648, + "Electric Piston (UHV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 256L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 256L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 256L))); ItemList.Electric_Piston_UEV.set( - addItem( - 649, - "Electric Piston (UEV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 512L))); + addItem( + 649, + "Electric Piston (UEV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 512L))); ItemList.Electric_Piston_UIV.set( - addItem( - 21, - "Electric Piston (UIV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 512L))); + addItem( + 21, + "Electric Piston (UIV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 512L))); ItemList.Electric_Piston_UMV.set( - addItem( - 22, - "Electric Piston (UMV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 512L))); + addItem( + 22, + "Electric Piston (UMV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 512L))); ItemList.Electric_Piston_UXV.set( - addItem( - 23, - "Electric Piston (UXV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 512L))); + addItem( + 23, + "Electric Piston (UXV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 512L))); ItemList.Electric_Piston_MAX.set( - addItem( - 24, - "Electric Piston (MAX)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 512L))); + addItem( + 24, + "Electric Piston (MAX)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 512L))); GT_ModHandler.addCraftingRecipe( - ItemList.Electric_Piston_LV.get(1L), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "PPP", "CSS", "CMG", 'P', OrePrefixes.plate.get(Materials.Steel), 'S', - OrePrefixes.stick.get(Materials.Steel), 'G', OrePrefixes.gearGtSmall.get(Materials.Steel), 'M', - ItemList.Electric_Motor_LV, 'C', OrePrefixes.cableGt01.get(Materials.Tin) }); + ItemList.Electric_Piston_LV.get(1L), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "PPP", "CSS", "CMG", 'P', OrePrefixes.plate.get(Materials.Steel), 'S', + OrePrefixes.stick.get(Materials.Steel), 'G', OrePrefixes.gearGtSmall.get(Materials.Steel), 'M', + ItemList.Electric_Motor_LV, 'C', OrePrefixes.cableGt01.get(Materials.Tin) }); GT_ModHandler.addCraftingRecipe( - ItemList.Electric_Piston_MV.get(1L), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "PPP", "CSS", "CMG", 'P', OrePrefixes.plate.get(Materials.Aluminium), 'S', - OrePrefixes.stick.get(Materials.Aluminium), 'G', - OrePrefixes.gearGtSmall.get(Materials.Aluminium), 'M', ItemList.Electric_Motor_MV, 'C', - OrePrefixes.cableGt01.get(Materials.AnyCopper) }); + ItemList.Electric_Piston_MV.get(1L), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "PPP", "CSS", "CMG", 'P', OrePrefixes.plate.get(Materials.Aluminium), 'S', + OrePrefixes.stick.get(Materials.Aluminium), 'G', OrePrefixes.gearGtSmall.get(Materials.Aluminium), 'M', + ItemList.Electric_Motor_MV, 'C', OrePrefixes.cableGt01.get(Materials.AnyCopper) }); GT_ModHandler.addCraftingRecipe( - ItemList.Electric_Piston_HV.get(1L), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "PPP", "CSS", "CMG", 'P', OrePrefixes.plate.get(Materials.StainlessSteel), 'S', - OrePrefixes.stick.get(Materials.StainlessSteel), 'G', - OrePrefixes.gearGtSmall.get(Materials.StainlessSteel), 'M', ItemList.Electric_Motor_HV, 'C', - OrePrefixes.cableGt01.get(Materials.Gold) }); + ItemList.Electric_Piston_HV.get(1L), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "PPP", "CSS", "CMG", 'P', OrePrefixes.plate.get(Materials.StainlessSteel), 'S', + OrePrefixes.stick.get(Materials.StainlessSteel), 'G', + OrePrefixes.gearGtSmall.get(Materials.StainlessSteel), 'M', ItemList.Electric_Motor_HV, 'C', + OrePrefixes.cableGt01.get(Materials.Gold) }); GT_ModHandler.addCraftingRecipe( - ItemList.Electric_Piston_EV.get(1L), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "PPP", "CSS", "CMG", 'P', OrePrefixes.plate.get(Materials.Titanium), 'S', - OrePrefixes.stick.get(Materials.Titanium), 'G', OrePrefixes.gearGtSmall.get(Materials.Titanium), - 'M', ItemList.Electric_Motor_EV, 'C', OrePrefixes.cableGt01.get(Materials.Aluminium) }); + ItemList.Electric_Piston_EV.get(1L), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "PPP", "CSS", "CMG", 'P', OrePrefixes.plate.get(Materials.Titanium), 'S', + OrePrefixes.stick.get(Materials.Titanium), 'G', OrePrefixes.gearGtSmall.get(Materials.Titanium), 'M', + ItemList.Electric_Motor_EV, 'C', OrePrefixes.cableGt01.get(Materials.Aluminium) }); GT_ModHandler.addCraftingRecipe( - ItemList.Electric_Piston_IV.get(1L), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "PPP", "CSS", "CMG", 'P', OrePrefixes.plate.get(Materials.TungstenSteel), 'S', - OrePrefixes.stick.get(Materials.TungstenSteel), 'G', - OrePrefixes.gearGtSmall.get(Materials.TungstenSteel), 'M', ItemList.Electric_Motor_IV, 'C', - OrePrefixes.cableGt01.get(Materials.Tungsten) }); + ItemList.Electric_Piston_IV.get(1L), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "PPP", "CSS", "CMG", 'P', OrePrefixes.plate.get(Materials.TungstenSteel), 'S', + OrePrefixes.stick.get(Materials.TungstenSteel), 'G', + OrePrefixes.gearGtSmall.get(Materials.TungstenSteel), 'M', ItemList.Electric_Motor_IV, 'C', + OrePrefixes.cableGt01.get(Materials.Tungsten) }); ItemList.Electric_Pump_LV.set( - addItem( - 610, - "Electric Pump (LV)", - GT_Utility.formatNumbers(32) + PartCoverText - + GT_Utility.formatNumbers(32 * 20) - + PartCoverText2, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L))); + addItem( + 610, + "Electric Pump (LV)", + GT_Utility.formatNumbers(32) + PartCoverText + GT_Utility.formatNumbers(32 * 20) + PartCoverText2, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L))); ItemList.Electric_Pump_MV.set( - addItem( - 611, - "Electric Pump (MV)", - GT_Utility.formatNumbers(128) + PartCoverText - + GT_Utility.formatNumbers(128 * 20) - + PartCoverText2, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 2L))); + addItem( + 611, + "Electric Pump (MV)", + GT_Utility.formatNumbers(128) + PartCoverText + GT_Utility.formatNumbers(128 * 20) + PartCoverText2, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 2L))); ItemList.Electric_Pump_HV.set( - addItem( - 612, - "Electric Pump (HV)", - GT_Utility.formatNumbers(512) + PartCoverText - + GT_Utility.formatNumbers(512 * 20) - + PartCoverText2, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 4L))); + addItem( + 612, + "Electric Pump (HV)", + GT_Utility.formatNumbers(512) + PartCoverText + GT_Utility.formatNumbers(512 * 20) + PartCoverText2, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 4L))); ItemList.Electric_Pump_EV.set( - addItem( - 613, - "Electric Pump (EV)", - GT_Utility.formatNumbers(2048) + PartCoverText - + GT_Utility.formatNumbers(2048 * 20) - + PartCoverText2, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 8L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 8L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 8L))); + addItem( + 613, + "Electric Pump (EV)", + GT_Utility.formatNumbers(2048) + PartCoverText + GT_Utility.formatNumbers(2048 * 20) + PartCoverText2, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 8L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 8L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 8L))); ItemList.Electric_Pump_IV.set( - addItem( - 614, - "Electric Pump (IV)", - GT_Utility.formatNumbers(8192) + PartCoverText - + GT_Utility.formatNumbers(8192 * 20) - + PartCoverText2, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 16L))); + addItem( + 614, + "Electric Pump (IV)", + GT_Utility.formatNumbers(8192) + PartCoverText + GT_Utility.formatNumbers(8192 * 20) + PartCoverText2, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 16L))); ItemList.Electric_Pump_LuV.set( - addItem( - 615, - "Electric Pump (LuV)", - GT_Utility.formatNumbers(32768) + PartCoverText - + GT_Utility.formatNumbers(32768 * 20) - + PartCoverText2, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 32L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 32L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 32L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 32L))); + addItem( + 615, + "Electric Pump (LuV)", + GT_Utility.formatNumbers(32768) + PartCoverText + GT_Utility.formatNumbers(32768 * 20) + PartCoverText2, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 32L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 32L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 32L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 32L))); ItemList.Electric_Pump_ZPM.set( - addItem( - 616, - "Electric Pump (ZPM)", - GT_Utility.formatNumbers(131072) + PartCoverText - + GT_Utility.formatNumbers(131072 * 20) - + PartCoverText2, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 64L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 64L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 64L))); + addItem( + 616, + "Electric Pump (ZPM)", + GT_Utility.formatNumbers(131072) + PartCoverText + + GT_Utility.formatNumbers(131072 * 20) + + PartCoverText2, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 64L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 64L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 64L))); ItemList.Electric_Pump_UV.set( - addItem( - 617, - "Electric Pump (UV)", - GT_Utility.formatNumbers(524288) + PartCoverText - + GT_Utility.formatNumbers(524288 * 20) - + PartCoverText2, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 128L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 128L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 128L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 128L))); + addItem( + 617, + "Electric Pump (UV)", + GT_Utility.formatNumbers(524288) + PartCoverText + + GT_Utility.formatNumbers(524288 * 20) + + PartCoverText2, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 128L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 128L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 128L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 128L))); ItemList.Electric_Pump_UHV.set( - addItem( - 618, - "Electric Pump (UHV)", - GT_Utility.formatNumbers(1048576) + PartCoverText - + GT_Utility.formatNumbers(1048576 * 20) - + PartCoverText2, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 256L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 256L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 256L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 256L))); + addItem( + 618, + "Electric Pump (UHV)", + GT_Utility.formatNumbers(1048576) + PartCoverText + + GT_Utility.formatNumbers(1048576 * 20) + + PartCoverText2, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 256L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 256L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 256L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 256L))); ItemList.Electric_Pump_UEV.set( - addItem( - 619, - "Electric Pump (UEV)", - GT_Utility.formatNumbers(2097152) + PartCoverText - + GT_Utility.formatNumbers(2097152 * 20) - + PartCoverText2, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 512L))); + addItem( + 619, + "Electric Pump (UEV)", + GT_Utility.formatNumbers(2097152) + PartCoverText + + GT_Utility.formatNumbers(2097152 * 20) + + PartCoverText2, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 512L))); ItemList.Electric_Pump_UIV.set( - addItem( - 25, - "Electric Pump (UIV)", - PartNotCoverText, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 512L))); + addItem( + 25, + "Electric Pump (UIV)", + PartNotCoverText, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 512L))); ItemList.Electric_Pump_UMV.set( - addItem( - 26, - "Electric Pump (UMV)", - PartNotCoverText, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 512L))); + addItem( + 26, + "Electric Pump (UMV)", + PartNotCoverText, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 512L))); ItemList.Electric_Pump_UXV.set( - addItem( - 27, - "Electric Pump (UXV)", - PartNotCoverText, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 512L))); + addItem( + 27, + "Electric Pump (UXV)", + PartNotCoverText, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 512L))); ItemList.Electric_Pump_MAX.set( - addItem( - 28, - "Electric Pump (MAX)", - PartNotCoverText, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 512L))); + addItem( + 28, + "Electric Pump (MAX)", + PartNotCoverText, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 512L))); GregTech_API.registerCover( - ItemList.Electric_Pump_LV.get(1L), - TextureFactory.of(MACHINE_CASINGS[1][0], TextureFactory.of(OVERLAY_PUMP)), - new GT_Cover_Pump(32, TextureFactory.of(OVERLAY_PUMP))); + ItemList.Electric_Pump_LV.get(1L), + TextureFactory.of(MACHINE_CASINGS[1][0], TextureFactory.of(OVERLAY_PUMP)), + new GT_Cover_Pump(32, TextureFactory.of(OVERLAY_PUMP))); GregTech_API.registerCover( - ItemList.Electric_Pump_MV.get(1L), - TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_PUMP)), - new GT_Cover_Pump(128, TextureFactory.of(OVERLAY_PUMP))); + ItemList.Electric_Pump_MV.get(1L), + TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_PUMP)), + new GT_Cover_Pump(128, TextureFactory.of(OVERLAY_PUMP))); GregTech_API.registerCover( - ItemList.Electric_Pump_HV.get(1L), - TextureFactory.of(MACHINE_CASINGS[3][0], TextureFactory.of(OVERLAY_PUMP)), - new GT_Cover_Pump(512, TextureFactory.of(OVERLAY_PUMP))); + ItemList.Electric_Pump_HV.get(1L), + TextureFactory.of(MACHINE_CASINGS[3][0], TextureFactory.of(OVERLAY_PUMP)), + new GT_Cover_Pump(512, TextureFactory.of(OVERLAY_PUMP))); GregTech_API.registerCover( - ItemList.Electric_Pump_EV.get(1L), - TextureFactory.of(MACHINE_CASINGS[4][0], TextureFactory.of(OVERLAY_PUMP)), - new GT_Cover_Pump(2048, TextureFactory.of(OVERLAY_PUMP))); + ItemList.Electric_Pump_EV.get(1L), + TextureFactory.of(MACHINE_CASINGS[4][0], TextureFactory.of(OVERLAY_PUMP)), + new GT_Cover_Pump(2048, TextureFactory.of(OVERLAY_PUMP))); GregTech_API.registerCover( - ItemList.Electric_Pump_IV.get(1L), - TextureFactory.of(MACHINE_CASINGS[5][0], TextureFactory.of(OVERLAY_PUMP)), - new GT_Cover_Pump(8192, TextureFactory.of(OVERLAY_PUMP))); + ItemList.Electric_Pump_IV.get(1L), + TextureFactory.of(MACHINE_CASINGS[5][0], TextureFactory.of(OVERLAY_PUMP)), + new GT_Cover_Pump(8192, TextureFactory.of(OVERLAY_PUMP))); GregTech_API.registerCover( - ItemList.Electric_Pump_LuV.get(1L), - TextureFactory.of(MACHINE_CASINGS[6][0], TextureFactory.of(OVERLAY_PUMP)), - new GT_Cover_Pump(32768, TextureFactory.of(OVERLAY_PUMP))); + ItemList.Electric_Pump_LuV.get(1L), + TextureFactory.of(MACHINE_CASINGS[6][0], TextureFactory.of(OVERLAY_PUMP)), + new GT_Cover_Pump(32768, TextureFactory.of(OVERLAY_PUMP))); GregTech_API.registerCover( - ItemList.Electric_Pump_ZPM.get(1L), - TextureFactory.of(MACHINE_CASINGS[7][0], TextureFactory.of(OVERLAY_PUMP)), - new GT_Cover_Pump(131072, TextureFactory.of(OVERLAY_PUMP))); + ItemList.Electric_Pump_ZPM.get(1L), + TextureFactory.of(MACHINE_CASINGS[7][0], TextureFactory.of(OVERLAY_PUMP)), + new GT_Cover_Pump(131072, TextureFactory.of(OVERLAY_PUMP))); GregTech_API.registerCover( - ItemList.Electric_Pump_UV.get(1L), - TextureFactory.of(MACHINE_CASINGS[8][0], TextureFactory.of(OVERLAY_PUMP)), - new GT_Cover_Pump(524288, TextureFactory.of(OVERLAY_PUMP))); + ItemList.Electric_Pump_UV.get(1L), + TextureFactory.of(MACHINE_CASINGS[8][0], TextureFactory.of(OVERLAY_PUMP)), + new GT_Cover_Pump(524288, TextureFactory.of(OVERLAY_PUMP))); GregTech_API.registerCover( - ItemList.Electric_Pump_UHV.get(1L), - TextureFactory.of(MACHINE_CASINGS[9][0], TextureFactory.of(OVERLAY_PUMP)), - new GT_Cover_Pump(1048576, TextureFactory.of(OVERLAY_PUMP))); + ItemList.Electric_Pump_UHV.get(1L), + TextureFactory.of(MACHINE_CASINGS[9][0], TextureFactory.of(OVERLAY_PUMP)), + new GT_Cover_Pump(1048576, TextureFactory.of(OVERLAY_PUMP))); GregTech_API.registerCover( - ItemList.Electric_Pump_UEV.get(1L), - TextureFactory.of(MACHINE_CASINGS[10][0], TextureFactory.of(OVERLAY_PUMP)), - new GT_Cover_Pump(2097152, TextureFactory.of(OVERLAY_PUMP))); + ItemList.Electric_Pump_UEV.get(1L), + TextureFactory.of(MACHINE_CASINGS[10][0], TextureFactory.of(OVERLAY_PUMP)), + new GT_Cover_Pump(2097152, TextureFactory.of(OVERLAY_PUMP))); GT_ModHandler.addCraftingRecipe( - ItemList.Electric_Pump_LV.get(1L), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "SXO", "dPw", "OMW", 'M', ItemList.Electric_Motor_LV, 'O', - OrePrefixes.ring.get(Materials.AnyRubber), 'X', OrePrefixes.rotor.get(Materials.Tin), 'S', - OrePrefixes.screw.get(Materials.Tin), 'W', OrePrefixes.cableGt01.get(Materials.Tin), 'P', - OrePrefixes.pipeMedium.get(Materials.Bronze) }); + ItemList.Electric_Pump_LV.get(1L), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "SXO", "dPw", "OMW", 'M', ItemList.Electric_Motor_LV, 'O', + OrePrefixes.ring.get(Materials.AnyRubber), 'X', OrePrefixes.rotor.get(Materials.Tin), 'S', + OrePrefixes.screw.get(Materials.Tin), 'W', OrePrefixes.cableGt01.get(Materials.Tin), 'P', + OrePrefixes.pipeMedium.get(Materials.Bronze) }); GT_ModHandler.addCraftingRecipe( - ItemList.Electric_Pump_MV.get(1L), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "SXO", "dPw", "OMW", 'M', ItemList.Electric_Motor_MV, 'O', - OrePrefixes.ring.get(Materials.AnyRubber), 'X', OrePrefixes.rotor.get(Materials.Bronze), 'S', - OrePrefixes.screw.get(Materials.Bronze), 'W', OrePrefixes.cableGt01.get(Materials.AnyCopper), - 'P', OrePrefixes.pipeMedium.get(Materials.Steel) }); + ItemList.Electric_Pump_MV.get(1L), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "SXO", "dPw", "OMW", 'M', ItemList.Electric_Motor_MV, 'O', + OrePrefixes.ring.get(Materials.AnyRubber), 'X', OrePrefixes.rotor.get(Materials.Bronze), 'S', + OrePrefixes.screw.get(Materials.Bronze), 'W', OrePrefixes.cableGt01.get(Materials.AnyCopper), 'P', + OrePrefixes.pipeMedium.get(Materials.Steel) }); GT_ModHandler.addCraftingRecipe( - ItemList.Electric_Pump_HV.get(1L), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "SXO", "dPw", "OMW", 'M', ItemList.Electric_Motor_HV, 'O', - OrePrefixes.ring.get(Materials.AnyRubber), 'X', OrePrefixes.rotor.get(Materials.Steel), 'S', - OrePrefixes.screw.get(Materials.Steel), 'W', OrePrefixes.cableGt01.get(Materials.Gold), 'P', - OrePrefixes.pipeMedium.get(Materials.StainlessSteel) }); + ItemList.Electric_Pump_HV.get(1L), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "SXO", "dPw", "OMW", 'M', ItemList.Electric_Motor_HV, 'O', + OrePrefixes.ring.get(Materials.AnyRubber), 'X', OrePrefixes.rotor.get(Materials.Steel), 'S', + OrePrefixes.screw.get(Materials.Steel), 'W', OrePrefixes.cableGt01.get(Materials.Gold), 'P', + OrePrefixes.pipeMedium.get(Materials.StainlessSteel) }); GT_ModHandler.addCraftingRecipe( - ItemList.Electric_Pump_EV.get(1L), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "SXO", "dPw", "OMW", 'M', ItemList.Electric_Motor_EV, 'O', - OrePrefixes.ring.get(Materials.AnyRubber), 'X', OrePrefixes.rotor.get(Materials.StainlessSteel), - 'S', OrePrefixes.screw.get(Materials.StainlessSteel), 'W', - OrePrefixes.cableGt01.get(Materials.Aluminium), 'P', - OrePrefixes.pipeMedium.get(Materials.Titanium) }); + ItemList.Electric_Pump_EV.get(1L), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "SXO", "dPw", "OMW", 'M', ItemList.Electric_Motor_EV, 'O', + OrePrefixes.ring.get(Materials.AnyRubber), 'X', OrePrefixes.rotor.get(Materials.StainlessSteel), 'S', + OrePrefixes.screw.get(Materials.StainlessSteel), 'W', OrePrefixes.cableGt01.get(Materials.Aluminium), + 'P', OrePrefixes.pipeMedium.get(Materials.Titanium) }); GT_ModHandler.addCraftingRecipe( - ItemList.Electric_Pump_IV.get(1L), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "SXO", "dPw", "OMW", 'M', ItemList.Electric_Motor_IV, 'O', - OrePrefixes.ring.get(Materials.AnySyntheticRubber), 'X', - OrePrefixes.rotor.get(Materials.TungstenSteel), 'S', - OrePrefixes.screw.get(Materials.TungstenSteel), 'W', - OrePrefixes.cableGt01.get(Materials.Tungsten), 'P', - OrePrefixes.pipeMedium.get(Materials.TungstenSteel) }); + ItemList.Electric_Pump_IV.get(1L), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "SXO", "dPw", "OMW", 'M', ItemList.Electric_Motor_IV, 'O', + OrePrefixes.ring.get(Materials.AnySyntheticRubber), 'X', OrePrefixes.rotor.get(Materials.TungstenSteel), + 'S', OrePrefixes.screw.get(Materials.TungstenSteel), 'W', OrePrefixes.cableGt01.get(Materials.Tungsten), + 'P', OrePrefixes.pipeMedium.get(Materials.TungstenSteel) }); ItemList.Steam_Valve_LV.set( - addItem( - 620, - "Steam Valve (LV)", - GT_Utility.formatNumbers(1024) + PartCoverText - + GT_Utility.formatNumbers(1024 * 20) - + PartCoverText2, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L))); + addItem( + 620, + "Steam Valve (LV)", + GT_Utility.formatNumbers(1024) + PartCoverText + GT_Utility.formatNumbers(1024 * 20) + PartCoverText2, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L))); ItemList.Steam_Valve_MV.set( - addItem( - 621, - "Steam Valve (MV)", - GT_Utility.formatNumbers(2048) + PartCoverText - + GT_Utility.formatNumbers(2048 * 20) - + PartCoverText2, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 2L))); + addItem( + 621, + "Steam Valve (MV)", + GT_Utility.formatNumbers(2048) + PartCoverText + GT_Utility.formatNumbers(2048 * 20) + PartCoverText2, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 2L))); ItemList.Steam_Valve_HV.set( - addItem( - 622, - "Steam Valve (HV)", - GT_Utility.formatNumbers(4096) + PartCoverText - + GT_Utility.formatNumbers(4096 * 20) - + PartCoverText2, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 4L))); + addItem( + 622, + "Steam Valve (HV)", + GT_Utility.formatNumbers(4096) + PartCoverText + GT_Utility.formatNumbers(4096 * 20) + PartCoverText2, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 4L))); ItemList.Steam_Valve_EV.set( - addItem( - 623, - "Steam Valve (EV)", - GT_Utility.formatNumbers(8192) + PartCoverText - + GT_Utility.formatNumbers(8192 * 20) - + PartCoverText2, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 8L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 8L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 8L))); + addItem( + 623, + "Steam Valve (EV)", + GT_Utility.formatNumbers(8192) + PartCoverText + GT_Utility.formatNumbers(8192 * 20) + PartCoverText2, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 8L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 8L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 8L))); ItemList.Steam_Valve_IV.set( - addItem( - 624, - "Steam Valve (IV)", - GT_Utility.formatNumbers(16384) + PartCoverText - + GT_Utility.formatNumbers(16384 * 20) - + PartCoverText2, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 16L))); + addItem( + 624, + "Steam Valve (IV)", + GT_Utility.formatNumbers(16384) + PartCoverText + GT_Utility.formatNumbers(16384 * 20) + PartCoverText2, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 16L))); GregTech_API.registerCover( - ItemList.Steam_Valve_LV.get(1L), - TextureFactory.of(MACHINE_CASINGS[1][0], TextureFactory.of(OVERLAY_VALVE)), - new GT_Cover_SteamValve(1024, TextureFactory.of(OVERLAY_VALVE))); + ItemList.Steam_Valve_LV.get(1L), + TextureFactory.of(MACHINE_CASINGS[1][0], TextureFactory.of(OVERLAY_VALVE)), + new GT_Cover_SteamValve(1024, TextureFactory.of(OVERLAY_VALVE))); GregTech_API.registerCover( - ItemList.Steam_Valve_MV.get(1L), - TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_VALVE)), - new GT_Cover_SteamValve(2048, TextureFactory.of(OVERLAY_VALVE))); + ItemList.Steam_Valve_MV.get(1L), + TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_VALVE)), + new GT_Cover_SteamValve(2048, TextureFactory.of(OVERLAY_VALVE))); GregTech_API.registerCover( - ItemList.Steam_Valve_HV.get(1L), - TextureFactory.of(MACHINE_CASINGS[3][0], TextureFactory.of(OVERLAY_VALVE)), - new GT_Cover_SteamValve(4096, TextureFactory.of(OVERLAY_VALVE))); + ItemList.Steam_Valve_HV.get(1L), + TextureFactory.of(MACHINE_CASINGS[3][0], TextureFactory.of(OVERLAY_VALVE)), + new GT_Cover_SteamValve(4096, TextureFactory.of(OVERLAY_VALVE))); GregTech_API.registerCover( - ItemList.Steam_Valve_EV.get(1L), - TextureFactory.of(MACHINE_CASINGS[4][0], TextureFactory.of(OVERLAY_VALVE)), - new GT_Cover_SteamValve(8192, TextureFactory.of(OVERLAY_VALVE))); + ItemList.Steam_Valve_EV.get(1L), + TextureFactory.of(MACHINE_CASINGS[4][0], TextureFactory.of(OVERLAY_VALVE)), + new GT_Cover_SteamValve(8192, TextureFactory.of(OVERLAY_VALVE))); GregTech_API.registerCover( - ItemList.Steam_Valve_IV.get(1L), - TextureFactory.of(MACHINE_CASINGS[5][0], TextureFactory.of(OVERLAY_VALVE)), - new GT_Cover_SteamValve(16384, TextureFactory.of(OVERLAY_VALVE))); - - ItemList.FluidRegulator_LV.set( - addItem(tLastID = 660, "Fluid Regulator (LV)", FRText1 + GT_Utility.formatNumbers(640) + FRText2)); - ItemList.FluidRegulator_MV.set( - addItem(tLastID = 661, "Fluid Regulator (MV)", FRText1 + GT_Utility.formatNumbers(2560) + FRText2)); - ItemList.FluidRegulator_HV.set( - addItem(tLastID = 662, "Fluid Regulator (HV)", FRText1 + GT_Utility.formatNumbers(10240) + FRText2)); - ItemList.FluidRegulator_EV.set( - addItem(tLastID = 663, "Fluid Regulator (EV)", FRText1 + GT_Utility.formatNumbers(40960) + FRText2)); - ItemList.FluidRegulator_IV.set( - addItem(tLastID = 664, "Fluid Regulator (IV)", FRText1 + GT_Utility.formatNumbers(163840) + FRText2)); - ItemList.FluidRegulator_LuV.set( - addItem(tLastID = 665, "Fluid Regulator (LuV)", FRText1 + GT_Utility.formatNumbers(655360) + FRText2)); + ItemList.Steam_Valve_IV.get(1L), + TextureFactory.of(MACHINE_CASINGS[5][0], TextureFactory.of(OVERLAY_VALVE)), + new GT_Cover_SteamValve(16384, TextureFactory.of(OVERLAY_VALVE))); + + ItemList.FluidRegulator_LV + .set(addItem(tLastID = 660, "Fluid Regulator (LV)", FRText1 + GT_Utility.formatNumbers(640) + FRText2)); + ItemList.FluidRegulator_MV + .set(addItem(tLastID = 661, "Fluid Regulator (MV)", FRText1 + GT_Utility.formatNumbers(2560) + FRText2)); + ItemList.FluidRegulator_HV + .set(addItem(tLastID = 662, "Fluid Regulator (HV)", FRText1 + GT_Utility.formatNumbers(10240) + FRText2)); + ItemList.FluidRegulator_EV + .set(addItem(tLastID = 663, "Fluid Regulator (EV)", FRText1 + GT_Utility.formatNumbers(40960) + FRText2)); + ItemList.FluidRegulator_IV + .set(addItem(tLastID = 664, "Fluid Regulator (IV)", FRText1 + GT_Utility.formatNumbers(163840) + FRText2)); + ItemList.FluidRegulator_LuV + .set(addItem(tLastID = 665, "Fluid Regulator (LuV)", FRText1 + GT_Utility.formatNumbers(655360) + FRText2)); ItemList.FluidRegulator_ZPM.set( - addItem(tLastID = 666, "Fluid Regulator (ZPM)", FRText1 + GT_Utility.formatNumbers(2621440) + FRText2)); + addItem(tLastID = 666, "Fluid Regulator (ZPM)", FRText1 + GT_Utility.formatNumbers(2621440) + FRText2)); ItemList.FluidRegulator_UV.set( - addItem(tLastID = 667, "Fluid Regulator (UV)", FRText1 + GT_Utility.formatNumbers(10485760) + FRText2)); + addItem(tLastID = 667, "Fluid Regulator (UV)", FRText1 + GT_Utility.formatNumbers(10485760) + FRText2)); GregTech_API.registerCover( - ItemList.FluidRegulator_LV.get(1L), - TextureFactory.of(MACHINE_CASINGS[1][0], TextureFactory.of(OVERLAY_PUMP)), - new GT_Cover_FluidRegulator(32, TextureFactory.of(OVERLAY_PUMP))); + ItemList.FluidRegulator_LV.get(1L), + TextureFactory.of(MACHINE_CASINGS[1][0], TextureFactory.of(OVERLAY_PUMP)), + new GT_Cover_FluidRegulator(32, TextureFactory.of(OVERLAY_PUMP))); GregTech_API.registerCover( - ItemList.FluidRegulator_MV.get(1L), - TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_PUMP)), - new GT_Cover_FluidRegulator(128, TextureFactory.of(OVERLAY_PUMP))); + ItemList.FluidRegulator_MV.get(1L), + TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_PUMP)), + new GT_Cover_FluidRegulator(128, TextureFactory.of(OVERLAY_PUMP))); GregTech_API.registerCover( - ItemList.FluidRegulator_HV.get(1L), - TextureFactory.of(MACHINE_CASINGS[3][0], TextureFactory.of(OVERLAY_PUMP)), - new GT_Cover_FluidRegulator(512, TextureFactory.of(OVERLAY_PUMP))); + ItemList.FluidRegulator_HV.get(1L), + TextureFactory.of(MACHINE_CASINGS[3][0], TextureFactory.of(OVERLAY_PUMP)), + new GT_Cover_FluidRegulator(512, TextureFactory.of(OVERLAY_PUMP))); GregTech_API.registerCover( - ItemList.FluidRegulator_EV.get(1L), - TextureFactory.of(MACHINE_CASINGS[4][0], TextureFactory.of(OVERLAY_PUMP)), - new GT_Cover_FluidRegulator(2048, TextureFactory.of(OVERLAY_PUMP))); + ItemList.FluidRegulator_EV.get(1L), + TextureFactory.of(MACHINE_CASINGS[4][0], TextureFactory.of(OVERLAY_PUMP)), + new GT_Cover_FluidRegulator(2048, TextureFactory.of(OVERLAY_PUMP))); GregTech_API.registerCover( - ItemList.FluidRegulator_IV.get(1L), - TextureFactory.of(MACHINE_CASINGS[5][0], TextureFactory.of(OVERLAY_PUMP)), - new GT_Cover_FluidRegulator(8192, TextureFactory.of(OVERLAY_PUMP))); + ItemList.FluidRegulator_IV.get(1L), + TextureFactory.of(MACHINE_CASINGS[5][0], TextureFactory.of(OVERLAY_PUMP)), + new GT_Cover_FluidRegulator(8192, TextureFactory.of(OVERLAY_PUMP))); GregTech_API.registerCover( - ItemList.FluidRegulator_LuV.get(1L), - TextureFactory.of(MACHINE_CASINGS[6][0], TextureFactory.of(OVERLAY_PUMP)), - new GT_Cover_FluidRegulator(32768, TextureFactory.of(OVERLAY_PUMP))); + ItemList.FluidRegulator_LuV.get(1L), + TextureFactory.of(MACHINE_CASINGS[6][0], TextureFactory.of(OVERLAY_PUMP)), + new GT_Cover_FluidRegulator(32768, TextureFactory.of(OVERLAY_PUMP))); GregTech_API.registerCover( - ItemList.FluidRegulator_ZPM.get(1L), - TextureFactory.of(MACHINE_CASINGS[7][0], TextureFactory.of(OVERLAY_PUMP)), - new GT_Cover_FluidRegulator(131072, TextureFactory.of(OVERLAY_PUMP))); + ItemList.FluidRegulator_ZPM.get(1L), + TextureFactory.of(MACHINE_CASINGS[7][0], TextureFactory.of(OVERLAY_PUMP)), + new GT_Cover_FluidRegulator(131072, TextureFactory.of(OVERLAY_PUMP))); GregTech_API.registerCover( - ItemList.FluidRegulator_UV.get(1L), - TextureFactory.of(MACHINE_CASINGS[8][0], TextureFactory.of(OVERLAY_PUMP)), - new GT_Cover_FluidRegulator(524288, TextureFactory.of(OVERLAY_PUMP))); + ItemList.FluidRegulator_UV.get(1L), + TextureFactory.of(MACHINE_CASINGS[8][0], TextureFactory.of(OVERLAY_PUMP)), + new GT_Cover_FluidRegulator(524288, TextureFactory.of(OVERLAY_PUMP))); - ItemList.FluidFilter.set( - addItem(669, "Fluid Filter Cover", "Set with Fluid Container to only accept one Fluid Type")); + ItemList.FluidFilter + .set(addItem(669, "Fluid Filter Cover", "Set with Fluid Container to only accept one Fluid Type")); GregTech_API.registerCover( - ItemList.FluidFilter.get(1L), - TextureFactory.of(MACHINE_CASINGS[1][0], TextureFactory.of(OVERLAY_SHUTTER)), - new GT_Cover_Fluidfilter(TextureFactory.of(OVERLAY_SHUTTER))); + ItemList.FluidFilter.get(1L), + TextureFactory.of(MACHINE_CASINGS[1][0], TextureFactory.of(OVERLAY_SHUTTER)), + new GT_Cover_Fluidfilter(TextureFactory.of(OVERLAY_SHUTTER))); ItemList.ItemFilter_Export.set( - addItem( - 270, - "Item Filter Cover (Export)", - "Right click with an item to set filter (Only supports Export Mode)")); + addItem( + 270, + "Item Filter Cover (Export)", + "Right click with an item to set filter (Only supports Export Mode)")); GregTech_API.registerCover( - ItemList.ItemFilter_Export.get(1L), - TextureFactory.of(MACHINE_CASINGS[5][0], TextureFactory.of(OVERLAY_CONVEYOR)), - new GT_Cover_ItemFilter(true, TextureFactory.of(OVERLAY_CONVEYOR))); + ItemList.ItemFilter_Export.get(1L), + TextureFactory.of(MACHINE_CASINGS[5][0], TextureFactory.of(OVERLAY_CONVEYOR)), + new GT_Cover_ItemFilter(true, TextureFactory.of(OVERLAY_CONVEYOR))); ItemList.ItemFilter_Import.set( - addItem( - 271, - "Item Filter Cover (Import)", - "Right click with an item to set filter (Only supports Import Mode)")); + addItem( + 271, + "Item Filter Cover (Import)", + "Right click with an item to set filter (Only supports Import Mode)")); GregTech_API.registerCover( - ItemList.ItemFilter_Import.get(1L), - TextureFactory.of(MACHINE_CASINGS[5][0], TextureFactory.of(OVERLAY_CONVEYOR)), - new GT_Cover_ItemFilter(false, TextureFactory.of(OVERLAY_CONVEYOR))); - ItemList.Cover_FluidLimiter.set( - addItem(272, "Fluid Limiter Cover", "Limits fluid input depending on fill level")); + ItemList.ItemFilter_Import.get(1L), + TextureFactory.of(MACHINE_CASINGS[5][0], TextureFactory.of(OVERLAY_CONVEYOR)), + new GT_Cover_ItemFilter(false, TextureFactory.of(OVERLAY_CONVEYOR))); + ItemList.Cover_FluidLimiter + .set(addItem(272, "Fluid Limiter Cover", "Limits fluid input depending on fill level")); GregTech_API.registerCover( - ItemList.Cover_FluidLimiter.get(1L), - TextureFactory.of(MACHINE_CASINGS[1][0], TextureFactory.of(OVERLAY_SHUTTER)), - new GT_Cover_FluidLimiter(TextureFactory.of(OVERLAY_SHUTTER))); + ItemList.Cover_FluidLimiter.get(1L), + TextureFactory.of(MACHINE_CASINGS[1][0], TextureFactory.of(OVERLAY_SHUTTER)), + new GT_Cover_FluidLimiter(TextureFactory.of(OVERLAY_SHUTTER))); ItemList.Conveyor_Module_LV.set( - addItem( - 630, - "Conveyor Module (LV)", - "1 stack every 20 secs (as Cover)", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 1L))); + addItem( + 630, + "Conveyor Module (LV)", + "1 stack every 20 secs (as Cover)", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 1L))); ItemList.Conveyor_Module_MV.set( - addItem( - 631, - "Conveyor Module (MV)", - "1 stack every 5 secs (as Cover)", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 2L))); + addItem( + 631, + "Conveyor Module (MV)", + "1 stack every 5 secs (as Cover)", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 2L))); ItemList.Conveyor_Module_HV.set( - addItem( - 632, - "Conveyor Module (HV)", - "1 stack every 1 sec (as Cover)", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 4L))); + addItem( + 632, + "Conveyor Module (HV)", + "1 stack every 1 sec (as Cover)", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 4L))); ItemList.Conveyor_Module_EV.set( - addItem( - 633, - "Conveyor Module (EV)", - "1 stack every 1/5 sec (as Cover)", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 8L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 8L))); + addItem( + 633, + "Conveyor Module (EV)", + "1 stack every 1/5 sec (as Cover)", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 8L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 8L))); ItemList.Conveyor_Module_IV.set( - addItem( - 634, - "Conveyor Module (IV)", - "1 stack every 1/20 sec (as Cover)", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 16L))); + addItem( + 634, + "Conveyor Module (IV)", + "1 stack every 1/20 sec (as Cover)", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 16L))); ItemList.Conveyor_Module_LuV.set( - addItem( - 635, - "Conveyor Module (LuV)", - "2 stacks every 1/20 sec (as Cover)", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 32L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 32L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 32L))); + addItem( + 635, + "Conveyor Module (LuV)", + "2 stacks every 1/20 sec (as Cover)", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 32L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 32L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 32L))); ItemList.Conveyor_Module_ZPM.set( - addItem( - 636, - "Conveyor Module (ZPM)", - "4 stacks every 1/20 sec (as Cover)", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 64L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 64L))); + addItem( + 636, + "Conveyor Module (ZPM)", + "4 stacks every 1/20 sec (as Cover)", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 64L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 64L))); ItemList.Conveyor_Module_UV.set( - addItem( - 637, - "Conveyor Module (UV)", - "8 stacks every 1/20 sec (as Cover)", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 128L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 128L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 128L))); + addItem( + 637, + "Conveyor Module (UV)", + "8 stacks every 1/20 sec (as Cover)", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 128L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 128L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 128L))); ItemList.Conveyor_Module_UHV.set( - addItem( - 638, - "Conveyor Module (UHV)", - "16 stacks every 1/20 sec (as Cover)", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 256L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 256L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 256L))); + addItem( + 638, + "Conveyor Module (UHV)", + "16 stacks every 1/20 sec (as Cover)", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 256L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 256L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 256L))); ItemList.Conveyor_Module_UEV.set( - addItem( - 639, - "Conveyor Module (UEV)", - "32 stacks every 1/20 sec (as Cover)", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 512L))); + addItem( + 639, + "Conveyor Module (UEV)", + "32 stacks every 1/20 sec (as Cover)", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 512L))); ItemList.Conveyor_Module_UIV.set( - addItem( - 29, - "Conveyor Module (UIV)", - PartNotCoverText, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 512L))); + addItem( + 29, + "Conveyor Module (UIV)", + PartNotCoverText, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 512L))); ItemList.Conveyor_Module_UMV.set( - addItem( - 30, - "Conveyor Module (UMV)", - PartNotCoverText, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 512L))); + addItem( + 30, + "Conveyor Module (UMV)", + PartNotCoverText, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 512L))); ItemList.Conveyor_Module_UXV.set( - addItem( - 31, - "Conveyor Module (UXV)", - PartNotCoverText, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 512L))); + addItem( + 31, + "Conveyor Module (UXV)", + PartNotCoverText, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 512L))); ItemList.Conveyor_Module_MAX.set( - addItem( - 32, - "Conveyor Module (MAX)", - PartNotCoverText, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 512L))); + addItem( + 32, + "Conveyor Module (MAX)", + PartNotCoverText, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 512L))); GT_ModHandler.addCraftingRecipe( - ItemList.Conveyor_Module_LV.get(1L), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "RRR", "MCM", "RRR", 'M', ItemList.Electric_Motor_LV, 'C', - OrePrefixes.cableGt01.get(Materials.Tin), 'R', OrePrefixes.plate.get(Materials.AnyRubber) }); + ItemList.Conveyor_Module_LV.get(1L), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "RRR", "MCM", "RRR", 'M', ItemList.Electric_Motor_LV, 'C', + OrePrefixes.cableGt01.get(Materials.Tin), 'R', OrePrefixes.plate.get(Materials.AnyRubber) }); GT_ModHandler.addCraftingRecipe( - ItemList.Conveyor_Module_MV.get(1L), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "RRR", "MCM", "RRR", 'M', ItemList.Electric_Motor_MV, 'C', - OrePrefixes.cableGt01.get(Materials.AnyCopper), 'R', - OrePrefixes.plate.get(Materials.AnyRubber) }); + ItemList.Conveyor_Module_MV.get(1L), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "RRR", "MCM", "RRR", 'M', ItemList.Electric_Motor_MV, 'C', + OrePrefixes.cableGt01.get(Materials.AnyCopper), 'R', OrePrefixes.plate.get(Materials.AnyRubber) }); GT_ModHandler.addCraftingRecipe( - ItemList.Conveyor_Module_HV.get(1L), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "RRR", "MCM", "RRR", 'M', ItemList.Electric_Motor_HV, 'C', - OrePrefixes.cableGt01.get(Materials.Gold), 'R', OrePrefixes.plate.get(Materials.AnyRubber) }); + ItemList.Conveyor_Module_HV.get(1L), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "RRR", "MCM", "RRR", 'M', ItemList.Electric_Motor_HV, 'C', + OrePrefixes.cableGt01.get(Materials.Gold), 'R', OrePrefixes.plate.get(Materials.AnyRubber) }); GT_ModHandler.addCraftingRecipe( - ItemList.Conveyor_Module_EV.get(1L), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "RRR", "MCM", "RRR", 'M', ItemList.Electric_Motor_EV, 'C', - OrePrefixes.cableGt01.get(Materials.Aluminium), 'R', - OrePrefixes.plate.get(Materials.AnyRubber) }); + ItemList.Conveyor_Module_EV.get(1L), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "RRR", "MCM", "RRR", 'M', ItemList.Electric_Motor_EV, 'C', + OrePrefixes.cableGt01.get(Materials.Aluminium), 'R', OrePrefixes.plate.get(Materials.AnyRubber) }); GT_ModHandler.addCraftingRecipe( - ItemList.Conveyor_Module_IV.get(1L), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "RRR", "MCM", "RRR", 'M', ItemList.Electric_Motor_IV, 'C', - OrePrefixes.cableGt01.get(Materials.Tungsten), 'R', - OrePrefixes.plate.get(Materials.AnySyntheticRubber) }); + ItemList.Conveyor_Module_IV.get(1L), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "RRR", "MCM", "RRR", 'M', ItemList.Electric_Motor_IV, 'C', + OrePrefixes.cableGt01.get(Materials.Tungsten), 'R', + OrePrefixes.plate.get(Materials.AnySyntheticRubber) }); GregTech_API.registerCover( - ItemList.Conveyor_Module_LV.get(1L), - TextureFactory.of(MACHINE_CASINGS[1][0], TextureFactory.of(OVERLAY_CONVEYOR)), - new GT_Cover_Conveyor(400, 1, TextureFactory.of(OVERLAY_CONVEYOR))); + ItemList.Conveyor_Module_LV.get(1L), + TextureFactory.of(MACHINE_CASINGS[1][0], TextureFactory.of(OVERLAY_CONVEYOR)), + new GT_Cover_Conveyor(400, 1, TextureFactory.of(OVERLAY_CONVEYOR))); GregTech_API.registerCover( - ItemList.Conveyor_Module_MV.get(1L), - TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_CONVEYOR)), - new GT_Cover_Conveyor(100, 1, TextureFactory.of(OVERLAY_CONVEYOR))); + ItemList.Conveyor_Module_MV.get(1L), + TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_CONVEYOR)), + new GT_Cover_Conveyor(100, 1, TextureFactory.of(OVERLAY_CONVEYOR))); GregTech_API.registerCover( - ItemList.Conveyor_Module_HV.get(1L), - TextureFactory.of(MACHINE_CASINGS[3][0], TextureFactory.of(OVERLAY_CONVEYOR)), - new GT_Cover_Conveyor(20, 1, TextureFactory.of(OVERLAY_CONVEYOR))); + ItemList.Conveyor_Module_HV.get(1L), + TextureFactory.of(MACHINE_CASINGS[3][0], TextureFactory.of(OVERLAY_CONVEYOR)), + new GT_Cover_Conveyor(20, 1, TextureFactory.of(OVERLAY_CONVEYOR))); GregTech_API.registerCover( - ItemList.Conveyor_Module_EV.get(1L), - TextureFactory.of(MACHINE_CASINGS[4][0], TextureFactory.of(OVERLAY_CONVEYOR)), - new GT_Cover_Conveyor(4, 1, TextureFactory.of(OVERLAY_CONVEYOR))); + ItemList.Conveyor_Module_EV.get(1L), + TextureFactory.of(MACHINE_CASINGS[4][0], TextureFactory.of(OVERLAY_CONVEYOR)), + new GT_Cover_Conveyor(4, 1, TextureFactory.of(OVERLAY_CONVEYOR))); GregTech_API.registerCover( - ItemList.Conveyor_Module_IV.get(1L), - TextureFactory.of(MACHINE_CASINGS[5][0], TextureFactory.of(OVERLAY_CONVEYOR)), - new GT_Cover_Conveyor(1, 1, TextureFactory.of(OVERLAY_CONVEYOR))); + ItemList.Conveyor_Module_IV.get(1L), + TextureFactory.of(MACHINE_CASINGS[5][0], TextureFactory.of(OVERLAY_CONVEYOR)), + new GT_Cover_Conveyor(1, 1, TextureFactory.of(OVERLAY_CONVEYOR))); GregTech_API.registerCover( - ItemList.Conveyor_Module_LuV.get(1L), - TextureFactory.of(MACHINE_CASINGS[6][0], TextureFactory.of(OVERLAY_CONVEYOR)), - new GT_Cover_Conveyor(1, 2, TextureFactory.of(OVERLAY_CONVEYOR))); + ItemList.Conveyor_Module_LuV.get(1L), + TextureFactory.of(MACHINE_CASINGS[6][0], TextureFactory.of(OVERLAY_CONVEYOR)), + new GT_Cover_Conveyor(1, 2, TextureFactory.of(OVERLAY_CONVEYOR))); GregTech_API.registerCover( - ItemList.Conveyor_Module_ZPM.get(1L), - TextureFactory.of(MACHINE_CASINGS[7][0], TextureFactory.of(OVERLAY_CONVEYOR)), - new GT_Cover_Conveyor(1, 4, TextureFactory.of(OVERLAY_CONVEYOR))); + ItemList.Conveyor_Module_ZPM.get(1L), + TextureFactory.of(MACHINE_CASINGS[7][0], TextureFactory.of(OVERLAY_CONVEYOR)), + new GT_Cover_Conveyor(1, 4, TextureFactory.of(OVERLAY_CONVEYOR))); GregTech_API.registerCover( - ItemList.Conveyor_Module_UV.get(1L), - TextureFactory.of(MACHINE_CASINGS[8][0], TextureFactory.of(OVERLAY_CONVEYOR)), - new GT_Cover_Conveyor(1, 8, TextureFactory.of(OVERLAY_CONVEYOR))); + ItemList.Conveyor_Module_UV.get(1L), + TextureFactory.of(MACHINE_CASINGS[8][0], TextureFactory.of(OVERLAY_CONVEYOR)), + new GT_Cover_Conveyor(1, 8, TextureFactory.of(OVERLAY_CONVEYOR))); GregTech_API.registerCover( - ItemList.Conveyor_Module_UHV.get(1L), - TextureFactory.of(MACHINE_CASINGS[9][0], TextureFactory.of(OVERLAY_CONVEYOR)), - new GT_Cover_Conveyor(1, 16, TextureFactory.of(OVERLAY_CONVEYOR))); + ItemList.Conveyor_Module_UHV.get(1L), + TextureFactory.of(MACHINE_CASINGS[9][0], TextureFactory.of(OVERLAY_CONVEYOR)), + new GT_Cover_Conveyor(1, 16, TextureFactory.of(OVERLAY_CONVEYOR))); GregTech_API.registerCover( - ItemList.Conveyor_Module_UEV.get(1L), - TextureFactory.of(MACHINE_CASINGS[10][0], TextureFactory.of(OVERLAY_CONVEYOR)), - new GT_Cover_Conveyor(1, 32, TextureFactory.of(OVERLAY_CONVEYOR))); + ItemList.Conveyor_Module_UEV.get(1L), + TextureFactory.of(MACHINE_CASINGS[10][0], TextureFactory.of(OVERLAY_CONVEYOR)), + new GT_Cover_Conveyor(1, 32, TextureFactory.of(OVERLAY_CONVEYOR))); ItemList.Robot_Arm_LV.set( - addItem( - 650, - "Robot Arm (LV)", - "1 stack every 20 secs (as Cover)/n " + RAText, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 1L))); + addItem( + 650, + "Robot Arm (LV)", + "1 stack every 20 secs (as Cover)/n " + RAText, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 1L))); ItemList.Robot_Arm_MV.set( - addItem( - 651, - "Robot Arm (MV)", - "1 stack every 5 secs (as Cover)/n " + RAText, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 2L))); + addItem( + 651, + "Robot Arm (MV)", + "1 stack every 5 secs (as Cover)/n " + RAText, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 2L))); ItemList.Robot_Arm_HV.set( - addItem( - 652, - "Robot Arm (HV)", - "1 stack every 1 sec (as Cover)/n " + RAText, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 8L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 4L))); + addItem( + 652, + "Robot Arm (HV)", + "1 stack every 1 sec (as Cover)/n " + RAText, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 8L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 4L))); ItemList.Robot_Arm_EV.set( - addItem( - 653, - "Robot Arm (EV)", - "1 stack every 1/5 sec (as Cover)/n " + RAText, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 8L), - new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 8L))); + addItem( + 653, + "Robot Arm (EV)", + "1 stack every 1/5 sec (as Cover)/n " + RAText, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 8L), + new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 8L))); ItemList.Robot_Arm_IV.set( - addItem( - 654, - "Robot Arm (IV)", - "1 stack every 1/20 sec (as Cover)/n " + RAText, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 32L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 16L))); + addItem( + 654, + "Robot Arm (IV)", + "1 stack every 1/20 sec (as Cover)/n " + RAText, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 32L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 16L))); ItemList.Robot_Arm_LuV.set( - addItem( - 655, - "Robot Arm (LuV)", - PartNotCoverText, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 32L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 64L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 32L), - new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 32L))); + addItem( + 655, + "Robot Arm (LuV)", + PartNotCoverText, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 32L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 64L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 32L), + new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 32L))); ItemList.Robot_Arm_ZPM.set( - addItem( - 656, - "Robot Arm (ZPM)", - PartNotCoverText, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 128L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 64L), - new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 64L))); + addItem( + 656, + "Robot Arm (ZPM)", + PartNotCoverText, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 128L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 64L), + new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 64L))); ItemList.Robot_Arm_UV.set( - addItem( - 657, - "Robot Arm (UV)", - PartNotCoverText, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 128L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 256L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 128L), - new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 128L))); + addItem( + 657, + "Robot Arm (UV)", + PartNotCoverText, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 128L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 256L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 128L), + new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 128L))); ItemList.Robot_Arm_UHV.set( - addItem( - 658, - "Robot Arm (UHV)", - PartNotCoverText, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 256L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 256L), - new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 256L))); + addItem( + 658, + "Robot Arm (UHV)", + PartNotCoverText, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 256L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 256L), + new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 256L))); ItemList.Robot_Arm_UEV.set( - addItem( - 659, - "Robot Arm (UEV)", - PartNotCoverText, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1024L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 512L))); + addItem( + 659, + "Robot Arm (UEV)", + PartNotCoverText, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1024L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 512L))); ItemList.Robot_Arm_UIV.set( - addItem( - 33, - "Robot Arm (UIV)", - PartNotCoverText, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1024L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 512L))); + addItem( + 33, + "Robot Arm (UIV)", + PartNotCoverText, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1024L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 512L))); ItemList.Robot_Arm_UMV.set( - addItem( - 34, - "Robot Arm (UMV)", - PartNotCoverText, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1024L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 512L))); + addItem( + 34, + "Robot Arm (UMV)", + PartNotCoverText, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1024L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 512L))); ItemList.Robot_Arm_UXV.set( - addItem( - 35, - "Robot Arm (UXV)", - PartNotCoverText, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1024L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 512L))); + addItem( + 35, + "Robot Arm (UXV)", + PartNotCoverText, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1024L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 512L))); ItemList.Robot_Arm_MAX.set( - addItem( - 36, - "Robot Arm (MAX)", - PartNotCoverText, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1024L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 512L))); + addItem( + 36, + "Robot Arm (MAX)", + PartNotCoverText, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1024L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 512L))); GT_ModHandler.addCraftingRecipe( - ItemList.Robot_Arm_LV.get(1L), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "CCC", "MSM", "PES", 'S', OrePrefixes.stick.get(Materials.Steel), 'M', - ItemList.Electric_Motor_LV, 'P', ItemList.Electric_Piston_LV, 'E', - OrePrefixes.circuit.get(Materials.Basic), 'C', OrePrefixes.cableGt01.get(Materials.Tin) }); + ItemList.Robot_Arm_LV.get(1L), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "CCC", "MSM", "PES", 'S', OrePrefixes.stick.get(Materials.Steel), 'M', + ItemList.Electric_Motor_LV, 'P', ItemList.Electric_Piston_LV, 'E', + OrePrefixes.circuit.get(Materials.Basic), 'C', OrePrefixes.cableGt01.get(Materials.Tin) }); GT_ModHandler.addCraftingRecipe( - ItemList.Robot_Arm_MV.get(1L), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "CCC", "MSM", "PES", 'S', OrePrefixes.stick.get(Materials.Aluminium), 'M', - ItemList.Electric_Motor_MV, 'P', ItemList.Electric_Piston_MV, 'E', - OrePrefixes.circuit.get(Materials.Good), 'C', OrePrefixes.cableGt01.get(Materials.AnyCopper) }); + ItemList.Robot_Arm_MV.get(1L), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "CCC", "MSM", "PES", 'S', OrePrefixes.stick.get(Materials.Aluminium), 'M', + ItemList.Electric_Motor_MV, 'P', ItemList.Electric_Piston_MV, 'E', + OrePrefixes.circuit.get(Materials.Good), 'C', OrePrefixes.cableGt01.get(Materials.AnyCopper) }); GT_ModHandler.addCraftingRecipe( - ItemList.Robot_Arm_HV.get(1L), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "CCC", "MSM", "PES", 'S', OrePrefixes.stick.get(Materials.StainlessSteel), 'M', - ItemList.Electric_Motor_HV, 'P', ItemList.Electric_Piston_HV, 'E', - OrePrefixes.circuit.get(Materials.Advanced), 'C', OrePrefixes.cableGt01.get(Materials.Gold) }); + ItemList.Robot_Arm_HV.get(1L), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "CCC", "MSM", "PES", 'S', OrePrefixes.stick.get(Materials.StainlessSteel), 'M', + ItemList.Electric_Motor_HV, 'P', ItemList.Electric_Piston_HV, 'E', + OrePrefixes.circuit.get(Materials.Advanced), 'C', OrePrefixes.cableGt01.get(Materials.Gold) }); GT_ModHandler.addCraftingRecipe( - ItemList.Robot_Arm_EV.get(1L), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "CCC", "MSM", "PES", 'S', OrePrefixes.stick.get(Materials.Titanium), 'M', - ItemList.Electric_Motor_EV, 'P', ItemList.Electric_Piston_EV, 'E', - OrePrefixes.circuit.get(Materials.Data), 'C', OrePrefixes.cableGt01.get(Materials.Aluminium) }); + ItemList.Robot_Arm_EV.get(1L), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "CCC", "MSM", "PES", 'S', OrePrefixes.stick.get(Materials.Titanium), 'M', + ItemList.Electric_Motor_EV, 'P', ItemList.Electric_Piston_EV, 'E', + OrePrefixes.circuit.get(Materials.Data), 'C', OrePrefixes.cableGt01.get(Materials.Aluminium) }); GT_ModHandler.addCraftingRecipe( - ItemList.Robot_Arm_IV.get(1L), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "CCC", "MSM", "PES", 'S', OrePrefixes.stick.get(Materials.TungstenSteel), 'M', - ItemList.Electric_Motor_IV, 'P', ItemList.Electric_Piston_IV, 'E', - OrePrefixes.circuit.get(Materials.Elite), 'C', OrePrefixes.cableGt01.get(Materials.Tungsten) }); + ItemList.Robot_Arm_IV.get(1L), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "CCC", "MSM", "PES", 'S', OrePrefixes.stick.get(Materials.TungstenSteel), 'M', + ItemList.Electric_Motor_IV, 'P', ItemList.Electric_Piston_IV, 'E', + OrePrefixes.circuit.get(Materials.Elite), 'C', OrePrefixes.cableGt01.get(Materials.Tungsten) }); GregTech_API.registerCover( - ItemList.Robot_Arm_LV.get(1L), - TextureFactory.of(MACHINE_CASINGS[1][0], TextureFactory.of(OVERLAY_ARM)), - new GT_Cover_Arm(400, TextureFactory.of(OVERLAY_ARM))); + ItemList.Robot_Arm_LV.get(1L), + TextureFactory.of(MACHINE_CASINGS[1][0], TextureFactory.of(OVERLAY_ARM)), + new GT_Cover_Arm(400, TextureFactory.of(OVERLAY_ARM))); GregTech_API.registerCover( - ItemList.Robot_Arm_MV.get(1L), - TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_ARM)), - new GT_Cover_Arm(100, TextureFactory.of(OVERLAY_ARM))); + ItemList.Robot_Arm_MV.get(1L), + TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_ARM)), + new GT_Cover_Arm(100, TextureFactory.of(OVERLAY_ARM))); GregTech_API.registerCover( - ItemList.Robot_Arm_HV.get(1L), - TextureFactory.of(MACHINE_CASINGS[3][0], TextureFactory.of(OVERLAY_ARM)), - new GT_Cover_Arm(20, TextureFactory.of(OVERLAY_ARM))); + ItemList.Robot_Arm_HV.get(1L), + TextureFactory.of(MACHINE_CASINGS[3][0], TextureFactory.of(OVERLAY_ARM)), + new GT_Cover_Arm(20, TextureFactory.of(OVERLAY_ARM))); GregTech_API.registerCover( - ItemList.Robot_Arm_EV.get(1L), - TextureFactory.of(MACHINE_CASINGS[4][0], TextureFactory.of(OVERLAY_ARM)), - new GT_Cover_Arm(4, TextureFactory.of(OVERLAY_ARM))); + ItemList.Robot_Arm_EV.get(1L), + TextureFactory.of(MACHINE_CASINGS[4][0], TextureFactory.of(OVERLAY_ARM)), + new GT_Cover_Arm(4, TextureFactory.of(OVERLAY_ARM))); GregTech_API.registerCover( - ItemList.Robot_Arm_IV.get(1L), - TextureFactory.of(MACHINE_CASINGS[5][0], TextureFactory.of(OVERLAY_ARM)), - new GT_Cover_Arm(1, TextureFactory.of(OVERLAY_ARM))); + ItemList.Robot_Arm_IV.get(1L), + TextureFactory.of(MACHINE_CASINGS[5][0], TextureFactory.of(OVERLAY_ARM)), + new GT_Cover_Arm(1, TextureFactory.of(OVERLAY_ARM))); ItemList.QuantumEye.set(addItem(tLastID = 724, "Quantum Eye", "Improved Ender Eye")); ItemList.QuantumStar.set(addItem(tLastID = 725, "Quantum Star", "Improved Nether Star")); ItemList.Gravistar.set(addItem(tLastID = 726, "Gravi Star", "Ultimate Nether Star")); ItemList.Emitter_LV.set( - addItem( - 680, - "Emitter (LV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.LUX, 1L))); + addItem( + 680, + "Emitter (LV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.LUX, 1L))); ItemList.Emitter_MV.set( - addItem( - 681, - "Emitter (MV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.LUX, 2L))); + addItem( + 681, + "Emitter (MV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.LUX, 2L))); ItemList.Emitter_HV.set( - addItem( - 682, - "Emitter (HV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.LUX, 4L))); + addItem( + 682, + "Emitter (HV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.LUX, 4L))); ItemList.Emitter_EV.set( - addItem( - 683, - "Emitter (EV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 8L), - new TC_Aspects.TC_AspectStack(TC_Aspects.LUX, 8L))); + addItem( + 683, + "Emitter (EV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 8L), + new TC_Aspects.TC_AspectStack(TC_Aspects.LUX, 8L))); ItemList.Emitter_IV.set( - addItem( - 684, - "Emitter (IV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.LUX, 16L))); + addItem( + 684, + "Emitter (IV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.LUX, 16L))); ItemList.Emitter_LuV.set( - addItem( - 685, - "Emitter (LuV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 32L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 32L), - new TC_Aspects.TC_AspectStack(TC_Aspects.LUX, 32L))); + addItem( + 685, + "Emitter (LuV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 32L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 32L), + new TC_Aspects.TC_AspectStack(TC_Aspects.LUX, 32L))); ItemList.Emitter_ZPM.set( - addItem( - 686, - "Emitter (ZPM)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 64L), - new TC_Aspects.TC_AspectStack(TC_Aspects.LUX, 64L))); + addItem( + 686, + "Emitter (ZPM)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 64L), + new TC_Aspects.TC_AspectStack(TC_Aspects.LUX, 64L))); ItemList.Emitter_UV.set( - addItem( - 687, - "Emitter (UV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 128L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 128L), - new TC_Aspects.TC_AspectStack(TC_Aspects.LUX, 128L))); + addItem( + 687, + "Emitter (UV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 128L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 128L), + new TC_Aspects.TC_AspectStack(TC_Aspects.LUX, 128L))); ItemList.Emitter_UHV.set( - addItem( - 688, - "Emitter (UHV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 256L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 256L), - new TC_Aspects.TC_AspectStack(TC_Aspects.LUX, 256L))); + addItem( + 688, + "Emitter (UHV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 256L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 256L), + new TC_Aspects.TC_AspectStack(TC_Aspects.LUX, 256L))); ItemList.Emitter_UEV.set( - addItem( - 689, - "Emitter (UEV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.LUX, 512L))); + addItem( + 689, + "Emitter (UEV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.LUX, 512L))); ItemList.Emitter_UIV.set( - addItem( - 37, - "Emitter (UIV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.LUX, 512L))); + addItem( + 37, + "Emitter (UIV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.LUX, 512L))); ItemList.Emitter_UMV.set( - addItem( - 38, - "Emitter (UMV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.LUX, 512L))); + addItem( + 38, + "Emitter (UMV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.LUX, 512L))); ItemList.Emitter_UXV.set( - addItem( - 39, - "Emitter (UXV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.LUX, 512L))); + addItem( + 39, + "Emitter (UXV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.LUX, 512L))); ItemList.Emitter_MAX.set( - addItem( - 40, - "Emitter (MAX)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.LUX, 512L))); + addItem( + 40, + "Emitter (MAX)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.LUX, 512L))); GT_ModHandler.addCraftingRecipe( - ItemList.Emitter_LV.get(1L), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "SSC", "WQS", "CWS", 'Q', OrePrefixes.gem.get(Materials.CertusQuartz), 'S', - OrePrefixes.stick.get(Materials.Brass), 'C', OrePrefixes.circuit.get(Materials.Basic), 'W', - OrePrefixes.cableGt01.get(Materials.Tin) }); + ItemList.Emitter_LV.get(1L), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "SSC", "WQS", "CWS", 'Q', OrePrefixes.gem.get(Materials.CertusQuartz), 'S', + OrePrefixes.stick.get(Materials.Brass), 'C', OrePrefixes.circuit.get(Materials.Basic), 'W', + OrePrefixes.cableGt01.get(Materials.Tin) }); GT_ModHandler.addCraftingRecipe( - ItemList.Emitter_MV.get(1L), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "SSC", "WQS", "CWS", 'Q', OrePrefixes.gem.get(Materials.EnderPearl), 'S', - OrePrefixes.stick.get(Materials.Electrum), 'C', OrePrefixes.circuit.get(Materials.Good), 'W', - OrePrefixes.cableGt01.get(Materials.AnyCopper) }); + ItemList.Emitter_MV.get(1L), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "SSC", "WQS", "CWS", 'Q', OrePrefixes.gem.get(Materials.EnderPearl), 'S', + OrePrefixes.stick.get(Materials.Electrum), 'C', OrePrefixes.circuit.get(Materials.Good), 'W', + OrePrefixes.cableGt01.get(Materials.AnyCopper) }); GT_ModHandler.addCraftingRecipe( - ItemList.Emitter_HV.get(1L), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "SSC", "WQS", "CWS", 'Q', OrePrefixes.gem.get(Materials.EnderEye), 'S', - OrePrefixes.stick.get(Materials.Chrome), 'C', OrePrefixes.circuit.get(Materials.Advanced), 'W', - OrePrefixes.cableGt01.get(Materials.Gold) }); + ItemList.Emitter_HV.get(1L), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "SSC", "WQS", "CWS", 'Q', OrePrefixes.gem.get(Materials.EnderEye), 'S', + OrePrefixes.stick.get(Materials.Chrome), 'C', OrePrefixes.circuit.get(Materials.Advanced), 'W', + OrePrefixes.cableGt01.get(Materials.Gold) }); GT_ModHandler.addCraftingRecipe( - ItemList.Emitter_EV.get(1L), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "SSC", "WQS", "CWS", 'Q', ItemList.QuantumEye, 'S', - OrePrefixes.stick.get(Materials.Platinum), 'C', OrePrefixes.circuit.get(Materials.Data), 'W', - OrePrefixes.cableGt01.get(Materials.Aluminium) }); + ItemList.Emitter_EV.get(1L), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "SSC", "WQS", "CWS", 'Q', ItemList.QuantumEye, 'S', + OrePrefixes.stick.get(Materials.Platinum), 'C', OrePrefixes.circuit.get(Materials.Data), 'W', + OrePrefixes.cableGt01.get(Materials.Aluminium) }); GT_ModHandler.addCraftingRecipe( - ItemList.Emitter_IV.get(1L), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "SSC", "WQS", "CWS", 'Q', ItemList.QuantumStar, 'S', - OrePrefixes.stick.get(Materials.Iridium), 'C', OrePrefixes.circuit.get(Materials.Elite), 'W', - OrePrefixes.cableGt01.get(Materials.Tungsten) }); + ItemList.Emitter_IV.get(1L), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "SSC", "WQS", "CWS", 'Q', ItemList.QuantumStar, 'S', + OrePrefixes.stick.get(Materials.Iridium), 'C', OrePrefixes.circuit.get(Materials.Elite), 'W', + OrePrefixes.cableGt01.get(Materials.Tungsten) }); ItemList.Sensor_LV.set( - addItem( - 690, - "Sensor (LV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 1L))); + addItem( + 690, + "Sensor (LV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 1L))); ItemList.Sensor_MV.set( - addItem( - 691, - "Sensor (MV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 2L))); + addItem( + 691, + "Sensor (MV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 2L))); ItemList.Sensor_HV.set( - addItem( - 692, - "Sensor (HV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 4L))); + addItem( + 692, + "Sensor (HV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 4L))); ItemList.Sensor_EV.set( - addItem( - 693, - "Sensor (EV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 8L), - new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 8L))); + addItem( + 693, + "Sensor (EV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 8L), + new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 8L))); ItemList.Sensor_IV.set( - addItem( - 694, - "Sensor (IV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 16L))); + addItem( + 694, + "Sensor (IV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 16L))); ItemList.Sensor_LuV.set( - addItem( - 695, - "Sensor (LuV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 32L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 32L), - new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 32L))); + addItem( + 695, + "Sensor (LuV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 32L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 32L), + new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 32L))); ItemList.Sensor_ZPM.set( - addItem( - 696, - "Sensor (ZPM)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 64L), - new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 64L))); + addItem( + 696, + "Sensor (ZPM)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 64L), + new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 64L))); ItemList.Sensor_UV.set( - addItem( - 697, - "Sensor (UV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 128L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 128L), - new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 128L))); + addItem( + 697, + "Sensor (UV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 128L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 128L), + new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 128L))); ItemList.Sensor_UHV.set( - addItem( - 698, - "Sensor (UHV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 256L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 256L), - new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 256L))); + addItem( + 698, + "Sensor (UHV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 256L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 256L), + new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 256L))); ItemList.Sensor_UEV.set( - addItem( - 699, - "Sensor (UEV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 512L))); + addItem( + 699, + "Sensor (UEV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 512L))); ItemList.Sensor_UIV.set( - addItem( - 41, - "Sensor (UIV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 512L))); + addItem( + 41, + "Sensor (UIV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 512L))); ItemList.Sensor_UMV.set( - addItem( - 42, - "Sensor (UMV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 512L))); + addItem( + 42, + "Sensor (UMV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 512L))); ItemList.Sensor_UXV.set( - addItem( - 43, - "Sensor (UXV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 512L))); + addItem( + 43, + "Sensor (UXV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 512L))); ItemList.Sensor_MAX.set( - addItem( - 44, - "Sensor (MAX)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 512L))); + addItem( + 44, + "Sensor (MAX)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 512L))); GT_ModHandler.addCraftingRecipe( - ItemList.Sensor_LV.get(1L), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "P Q", "PS ", "CPP", 'Q', OrePrefixes.gem.get(Materials.CertusQuartz), 'S', - OrePrefixes.stick.get(Materials.Brass), 'P', OrePrefixes.plate.get(Materials.Steel), 'C', - OrePrefixes.circuit.get(Materials.Basic) }); + ItemList.Sensor_LV.get(1L), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "P Q", "PS ", "CPP", 'Q', OrePrefixes.gem.get(Materials.CertusQuartz), 'S', + OrePrefixes.stick.get(Materials.Brass), 'P', OrePrefixes.plate.get(Materials.Steel), 'C', + OrePrefixes.circuit.get(Materials.Basic) }); GT_ModHandler.addCraftingRecipe( - ItemList.Sensor_MV.get(1L), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "P Q", "PS ", "CPP", 'Q', OrePrefixes.gemFlawless.get(Materials.Emerald), 'S', - OrePrefixes.stick.get(Materials.Electrum), 'P', OrePrefixes.plate.get(Materials.Aluminium), 'C', - OrePrefixes.circuit.get(Materials.Good) }); + ItemList.Sensor_MV.get(1L), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "P Q", "PS ", "CPP", 'Q', OrePrefixes.gemFlawless.get(Materials.Emerald), 'S', + OrePrefixes.stick.get(Materials.Electrum), 'P', OrePrefixes.plate.get(Materials.Aluminium), 'C', + OrePrefixes.circuit.get(Materials.Good) }); GT_ModHandler.addCraftingRecipe( - ItemList.Sensor_HV.get(1L), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "P Q", "PS ", "CPP", 'Q', OrePrefixes.gem.get(Materials.EnderEye), 'S', - OrePrefixes.stick.get(Materials.Chrome), 'P', OrePrefixes.plate.get(Materials.StainlessSteel), - 'C', OrePrefixes.circuit.get(Materials.Advanced) }); + ItemList.Sensor_HV.get(1L), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "P Q", "PS ", "CPP", 'Q', OrePrefixes.gem.get(Materials.EnderEye), 'S', + OrePrefixes.stick.get(Materials.Chrome), 'P', OrePrefixes.plate.get(Materials.StainlessSteel), 'C', + OrePrefixes.circuit.get(Materials.Advanced) }); GT_ModHandler.addCraftingRecipe( - ItemList.Sensor_EV.get(1L), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "P Q", "PS ", "CPP", 'Q', ItemList.QuantumEye, 'S', - OrePrefixes.stick.get(Materials.Platinum), 'P', OrePrefixes.plate.get(Materials.Titanium), 'C', - OrePrefixes.circuit.get(Materials.Data) }); + ItemList.Sensor_EV.get(1L), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "P Q", "PS ", "CPP", 'Q', ItemList.QuantumEye, 'S', + OrePrefixes.stick.get(Materials.Platinum), 'P', OrePrefixes.plate.get(Materials.Titanium), 'C', + OrePrefixes.circuit.get(Materials.Data) }); GT_ModHandler.addCraftingRecipe( - ItemList.Sensor_IV.get(1L), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "P Q", "PS ", "CPP", 'Q', ItemList.QuantumStar, 'S', - OrePrefixes.stick.get(Materials.Iridium), 'P', OrePrefixes.plate.get(Materials.TungstenSteel), - 'C', OrePrefixes.circuit.get(Materials.Elite) }); + ItemList.Sensor_IV.get(1L), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "P Q", "PS ", "CPP", 'Q', ItemList.QuantumStar, 'S', + OrePrefixes.stick.get(Materials.Iridium), 'P', OrePrefixes.plate.get(Materials.TungstenSteel), 'C', + OrePrefixes.circuit.get(Materials.Elite) }); ItemList.Field_Generator_LV.set( - addItem( - 670, - "Field Generator (LV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 1L))); + addItem( + 670, + "Field Generator (LV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 1L))); ItemList.Field_Generator_MV.set( - addItem( - 671, - "Field Generator (MV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 2L))); + addItem( + 671, + "Field Generator (MV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 2L))); ItemList.Field_Generator_HV.set( - addItem( - 672, - "Field Generator (HV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 4L))); + addItem( + 672, + "Field Generator (HV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 4L))); ItemList.Field_Generator_EV.set( - addItem( - 673, - "Field Generator (EV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 8L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 8L))); + addItem( + 673, + "Field Generator (EV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 8L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 8L))); ItemList.Field_Generator_IV.set( - addItem( - 674, - "Field Generator (IV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 32L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 16L))); + addItem( + 674, + "Field Generator (IV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 32L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 16L))); ItemList.Field_Generator_LuV.set( - addItem( - 675, - "Field Generator (LuV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 32L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 32L))); + addItem( + 675, + "Field Generator (LuV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 32L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 32L))); ItemList.Field_Generator_ZPM.set( - addItem( - 676, - "Field Generator (ZPM)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 128L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 64L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 64L))); + addItem( + 676, + "Field Generator (ZPM)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 128L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 64L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 64L))); ItemList.Field_Generator_UV.set( - addItem( - 677, - "Field Generator (UV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 256L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 128L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 128L))); + addItem( + 677, + "Field Generator (UV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 256L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 128L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 128L))); ItemList.Field_Generator_UHV.set( - addItem( - 678, - "Field Generator (UHV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 256L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 256L))); + addItem( + 678, + "Field Generator (UHV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 256L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 256L))); ItemList.Field_Generator_UEV.set( - addItem( - 679, - "Field Generator (UEV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1024L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 512L))); + addItem( + 679, + "Field Generator (UEV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1024L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 512L))); ItemList.Field_Generator_UIV.set( - addItem( - 45, - "Field Generator (UIV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1024L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 512L))); + addItem( + 45, + "Field Generator (UIV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1024L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 512L))); ItemList.Field_Generator_UMV.set( - addItem( - 46, - "Field Generator (UMV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1024L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 512L))); + addItem( + 46, + "Field Generator (UMV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1024L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 512L))); ItemList.Field_Generator_UXV.set( - addItem( - 47, - "Field Generator (UXV)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1024L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 512L))); + addItem( + 47, + "Field Generator (UXV)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1024L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 512L))); ItemList.Field_Generator_MAX.set( - addItem( - 48, - "Field Generator (MAX)", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1024L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 512L))); + addItem( + 48, + "Field Generator (MAX)", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1024L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 512L))); ItemList.StableAdhesive.set( - addItem( - 427, - "Hyper-Stable Self-Healing Adhesive", - "Complete and selective adhesion, even when torn or damaged", - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 30L), - new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 20L), - new TC_Aspects.TC_AspectStack(TC_Aspects.LIMUS, 10L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VINCULUM, 5L))); + addItem( + 427, + "Hyper-Stable Self-Healing Adhesive", + "Complete and selective adhesion, even when torn or damaged", + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 30L), + new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 20L), + new TC_Aspects.TC_AspectStack(TC_Aspects.LIMUS, 10L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VINCULUM, 5L))); ItemList.SuperconductorComposite.set( - addItem( - 428, - "Superconductor Rare-Earth Composite", - "Zero resistance to electrical and quantum flow, regardless of temperature", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 50L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 25L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TERRA, 15L), - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 10L))); + addItem( + 428, + "Superconductor Rare-Earth Composite", + "Zero resistance to electrical and quantum flow, regardless of temperature", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 50L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 25L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TERRA, 15L), + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 10L))); ItemList.NaquadriaSupersolid.set( - addItem( - 429, - "Black Body Naquadria Supersolid", - "Flows like a fluid and reflects nothing, perfect absorption and transfer", - new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 100L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 60L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 40L), - new TC_Aspects.TC_AspectStack(TC_Aspects.RADIO, 20L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ALIENIS, 10L))); + addItem( + 429, + "Black Body Naquadria Supersolid", + "Flows like a fluid and reflects nothing, perfect absorption and transfer", + new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 100L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 60L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 40L), + new TC_Aspects.TC_AspectStack(TC_Aspects.RADIO, 20L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ALIENIS, 10L))); // Circuits ULV - LuV. ItemList.Circuit_Primitive.set( - addItem( - tLastID = 700, - "Vacuum Tube", - "A very simple Circuit", - OrePrefixes.circuit.get(Materials.Primitive), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 700, + "Vacuum Tube", + "A very simple Circuit", + OrePrefixes.circuit.get(Materials.Primitive), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_Primitive.get(1), ULV); ItemList.Circuit_Basic.set( - addItem( - tLastID = 701, - "Integrated Logic Circuit", - "A Basic Circuit", - OrePrefixes.circuit.get(Materials.Basic), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 701, + "Integrated Logic Circuit", + "A Basic Circuit", + OrePrefixes.circuit.get(Materials.Basic), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_Basic.get(1), LV); ItemList.Circuit_Good.set( - addItem( - tLastID = 702, - "Good Electronic Circuit", - "A Good Circuit", - OrePrefixes.circuit.get(Materials.Good), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 702, + "Good Electronic Circuit", + "A Good Circuit", + OrePrefixes.circuit.get(Materials.Good), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_Good.get(1), MV); ItemList.Circuit_Advanced.set( - addItem( - tLastID = 703, - "Processor Assembly", - "An Advanced Circuit", - OrePrefixes.circuit.get(Materials.Advanced), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 703, + "Processor Assembly", + "An Advanced Circuit", + OrePrefixes.circuit.get(Materials.Advanced), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_Advanced.get(1), HV); ItemList.Circuit_Data.set( - addItem( - tLastID = 704, - "Workstation", - "An Extreme Circuit", - OrePrefixes.circuit.get(Materials.Data), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 704, + "Workstation", + "An Extreme Circuit", + OrePrefixes.circuit.get(Materials.Data), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_Data.get(1), EV); ItemList.Circuit_Elite.set( - addItem( - tLastID = 705, - "Mainframe", - "An Elite Circuit", - OrePrefixes.circuit.get(Materials.Elite), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 705, + "Mainframe", + "An Elite Circuit", + OrePrefixes.circuit.get(Materials.Elite), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_Elite.get(1), IV); ItemList.Circuit_Master.set( - addItem( - tLastID = 706, - "Nanoprocessor Mainframe", - "A Master Circuit", - OrePrefixes.circuit.get(Materials.Master), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 706, + "Nanoprocessor Mainframe", + "A Master Circuit", + OrePrefixes.circuit.get(Materials.Master), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_Master.get(1), LuV); // Backwards compatibility. @@ -3533,51 +3484,51 @@ public class GT_MetaGenerated_Item_01 extends GT_MetaGenerated_Item_X32 { ItemList.Circuit_Computer.set(ItemList.Circuit_Advanced.get(1)); ItemList.Tool_DataOrb.set( - addItem( - tLastID = 707, - "Data Orb", - "A High Capacity Data Storage", - SubTag.NO_UNIFICATION, - new Behaviour_DataOrb())); + addItem( + tLastID = 707, + "Data Orb", + "A High Capacity Data Storage", + SubTag.NO_UNIFICATION, + new Behaviour_DataOrb())); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Tool_DataOrb.get(1L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { ItemList.Tool_DataOrb.get(1L) }); + ItemList.Tool_DataOrb.get(1L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { ItemList.Tool_DataOrb.get(1L) }); ItemList.Tool_DataStick.set( - addItem( - tLastID = 708, - "Data Stick", - "A Low Capacity Data Storage", - SubTag.NO_UNIFICATION, - new Behaviour_DataStick())); + addItem( + tLastID = 708, + "Data Stick", + "A Low Capacity Data Storage", + SubTag.NO_UNIFICATION, + new Behaviour_DataStick())); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Tool_DataStick.get(1L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { ItemList.Tool_DataStick.get(1L) }); + ItemList.Tool_DataStick.get(1L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { ItemList.Tool_DataStick.get(1L) }); ItemList.Tool_Cover_Copy_Paste.set( - addItem( - tLastID = 709, - "Cover Copy/Paste tool", - "Set Cover Massively.", - Behaviour_Cover_Tool.INSTANCE, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 6L), - new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 6L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 6L))); + addItem( + tLastID = 709, + "Cover Copy/Paste tool", + "Set Cover Massively.", + Behaviour_Cover_Tool.INSTANCE, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 6L), + new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 6L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 6L))); setElectricStats(32000 + tLastID, 400000L, GT_Values.V[2], 2L, -1L, false); ItemList.Circuit_Board_Basic.set(addItem(tLastID = 710, "Coated Circuit Board", "A Basic Board")); ItemList.Circuit_Board_Coated.set(ItemList.Circuit_Board_Basic.get(1)); ItemList.Circuit_Board_Advanced.set(addItem(tLastID = 711, "Epoxy Circuit Board", "An Advanced Board")); ItemList.Circuit_Board_Epoxy.set(ItemList.Circuit_Board_Advanced.get(1)); - ItemList.Circuit_Board_Elite.set( - addItem(tLastID = 712, "Multilayer Fiber-Reinforced Circuit Board", "An Elite Board")); + ItemList.Circuit_Board_Elite + .set(addItem(tLastID = 712, "Multilayer Fiber-Reinforced Circuit Board", "An Elite Board")); ItemList.Circuit_Board_Multifiberglass.set(ItemList.Circuit_Board_Elite.get(1)); - ItemList.Circuit_Parts_Crystal_Chip_Elite.set( - addItem(tLastID = 713, "Engraved Crystal Chip", "Needed for Circuits")); - ItemList.Circuit_Parts_Crystal_Chip_Master.set( - addItem(tLastID = 714, "Engraved Lapotron Chip", "Needed for Circuits")); - ItemList.Circuit_Parts_Crystal_Chip_Wetware.set( - addItem(tLastID = 668, "Living Crystal Chip", "Needed for Circuits")); + ItemList.Circuit_Parts_Crystal_Chip_Elite + .set(addItem(tLastID = 713, "Engraved Crystal Chip", "Needed for Circuits")); + ItemList.Circuit_Parts_Crystal_Chip_Master + .set(addItem(tLastID = 714, "Engraved Lapotron Chip", "Needed for Circuits")); + ItemList.Circuit_Parts_Crystal_Chip_Wetware + .set(addItem(tLastID = 668, "Living Crystal Chip", "Needed for Circuits")); ItemList.Circuit_Parts_Advanced.set(addItem(tLastID = 715, "Diode", "Basic Electronic Component")); ItemList.Circuit_Parts_Diode.set(ItemList.Circuit_Parts_Advanced.get(1)); ItemList.Circuit_Parts_Wiring_Basic.set(addItem(tLastID = 716, "Resistor", "Basic Electronic Component")); @@ -3592,790 +3543,773 @@ public class GT_MetaGenerated_Item_01 extends GT_MetaGenerated_Item_X32 { ItemList.Circuit_Board_Fiberglass.set(ItemList.Empty_Board_Elite.get(1)); ItemList.Component_Sawblade_Diamond.set( - addItem( - tLastID = 721, - "Diamond Sawblade", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PERDITIO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 4L), - OreDictNames.craftingDiamondBlade)); + addItem( + tLastID = 721, + "Diamond Sawblade", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PERDITIO, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 4L), + OreDictNames.craftingDiamondBlade)); ItemList.Component_Grinder_Diamond.set( - addItem( - tLastID = 722, - "Diamond Grinding Head", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PERDITIO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 6L), - OreDictNames.craftingGrinder)); + addItem( + tLastID = 722, + "Diamond Grinding Head", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PERDITIO, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 6L), + OreDictNames.craftingGrinder)); ItemList.Component_Grinder_Tungsten.set( - addItem( - tLastID = 723, - "Tungsten Grinding Head", - "", - new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PERDITIO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 6L), - OreDictNames.craftingGrinder)); + addItem( + tLastID = 723, + "Tungsten Grinding Head", + "", + new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PERDITIO, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 6L), + OreDictNames.craftingGrinder)); GT_ModHandler.addCraftingRecipe( - ItemList.Component_Sawblade_Diamond.get(1L), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { " D ", "DGD", " D ", 'D', OrePrefixes.dustSmall.get(Materials.Diamond), 'G', - OrePrefixes.gearGt.get(Materials.CobaltBrass) }); + ItemList.Component_Sawblade_Diamond.get(1L), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { " D ", "DGD", " D ", 'D', OrePrefixes.dustSmall.get(Materials.Diamond), 'G', + OrePrefixes.gearGt.get(Materials.CobaltBrass) }); GT_ModHandler.addCraftingRecipe( - ItemList.Component_Grinder_Diamond.get(1L), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "DSD", "SIS", "DSD", 'I', OrePrefixes.gem.get(Materials.Diamond), 'D', - OrePrefixes.dust.get(Materials.Diamond), 'S', OrePrefixes.plateDouble.get(Materials.Steel) }); + ItemList.Component_Grinder_Diamond.get(1L), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "DSD", "SIS", "DSD", 'I', OrePrefixes.gem.get(Materials.Diamond), 'D', + OrePrefixes.dust.get(Materials.Diamond), 'S', OrePrefixes.plateDouble.get(Materials.Steel) }); GT_ModHandler.addCraftingRecipe( - ItemList.Component_Grinder_Tungsten.get(1L), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "TST", "SIS", "TST", 'I', OreDictNames.craftingIndustrialDiamond, 'T', - OrePrefixes.plate.get(Materials.Tungsten), 'S', OrePrefixes.plateDouble.get(Materials.Steel) }); + ItemList.Component_Grinder_Tungsten.get(1L), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "TST", "SIS", "TST", 'I', OreDictNames.craftingIndustrialDiamond, 'T', + OrePrefixes.plate.get(Materials.Tungsten), 'S', OrePrefixes.plateDouble.get(Materials.Steel) }); ItemList.Upgrade_Muffler.set( - addItem( - tLastID = 727, - "Muffler Upgrade", - "Makes Machines silent", - new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 2L))); + addItem( + tLastID = 727, + "Muffler Upgrade", + "Makes Machines silent", + new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 2L))); ItemList.Upgrade_Lock.set( - addItem( - tLastID = 728, - "Lock Upgrade", - "Protects your Machines", - new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 4L))); + addItem( + tLastID = 728, + "Lock Upgrade", + "Protects your Machines", + new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 4L))); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Plastic, 2L), - GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Upgrade_Muffler.get(1L), - 1600, - 2); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Plastic, 2L), GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Upgrade_Muffler.get(1L), + 1600, + 2); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 2L), - GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Upgrade_Muffler.get(1L), - 1600, - 2); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 2L), GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Upgrade_Muffler.get(1L), + 1600, + 2); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Plastic, 2L), - GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Upgrade_Muffler.get(1L), - 1600, - 2); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Plastic, 2L), GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Upgrade_Muffler.get(1L), + 1600, + 2); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 2L), - GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Upgrade_Muffler.get(1L), - 1600, - 2); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 2L), GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Upgrade_Muffler.get(1L), + 1600, + 2); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Plastic, 2L), - GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Upgrade_Muffler.get(1L), - 1600, - 2); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Plastic, 2L), GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Upgrade_Muffler.get(1L), + 1600, + 2); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 2L), - GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Upgrade_Muffler.get(1L), - 1600, - 2); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 2L), GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Upgrade_Muffler.get(1L), + 1600, + 2); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 1L), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iridium, 1L), - GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Upgrade_Lock.get(1L), - 6400, - 16); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 1L), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iridium, 1L), + GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Upgrade_Lock.get(1L), + 6400, + 16); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 1L), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iridium, 1L), - GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Upgrade_Lock.get(1L), - 6400, - 16); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 1L), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iridium, 1L), + GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Upgrade_Lock.get(1L), + 6400, + 16); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 1L), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iridium, 1L), - GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Upgrade_Lock.get(1L), - 6400, - 16); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 1L), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iridium, 1L), + GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Upgrade_Lock.get(1L), + 6400, + 16); ItemList.Component_Filter.set( - addItem( - tLastID = 729, - "Item Filter", - "", - new ItemData(Materials.Zinc, OrePrefixes.foil.mMaterialAmount * 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 1L), - OreDictNames.craftingFilter)); + addItem( + tLastID = 729, + "Item Filter", + "", + new ItemData(Materials.Zinc, OrePrefixes.foil.mMaterialAmount * 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 1L), + OreDictNames.craftingFilter)); ItemList.Cover_Controller.set( - addItem( - tLastID = 730, - "Machine Controller Cover", - "Turns Machines ON/OFF", - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L))); + addItem( + tLastID = 730, + "Machine Controller Cover", + "Turns Machines ON/OFF", + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L))); ItemList.Cover_ActivityDetector.set( - addItem( - tLastID = 731, - "Activity Detector Cover", - "Gives out Activity as Redstone", - new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L))); + addItem( + tLastID = 731, + "Activity Detector Cover", + "Gives out Activity as Redstone", + new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L))); ItemList.Cover_FluidDetector.set( - addItem( - tLastID = 732, - "Fluid Detector Cover", - "Gives out Fluid Amount as Redstone", - new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L))); + addItem( + tLastID = 732, + "Fluid Detector Cover", + "Gives out Fluid Amount as Redstone", + new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L))); ItemList.Cover_ItemDetector.set( - addItem( - tLastID = 733, - "Item Detector Cover", - "Gives out Item Amount as Redstone", - new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TERRA, 1L))); + addItem( + tLastID = 733, + "Item Detector Cover", + "Gives out Item Amount as Redstone", + new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TERRA, 1L))); ItemList.Cover_EnergyDetector.set( - addItem( - tLastID = 734, - "Energy Detector Cover", - "Gives out Energy Amount as Redstone", - new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L))); + addItem( + tLastID = 734, + "Energy Detector Cover", + "Gives out Energy Amount as Redstone", + new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L))); ItemList.Cover_PlayerDetector.set( - addItem( - tLastID = 735, - "Player Detector Cover", - "Gives out close Players as Redstone", - new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L))); + addItem( + tLastID = 735, + "Player Detector Cover", + "Gives out close Players as Redstone", + new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L))); ItemList.Cover_FluidStorageMonitor.set( - addItem( - tLastID = 577, - "Fluid Storage Monitor Cover", - "Displays the fluid stored in the Tank", - new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L))); + addItem( + tLastID = 577, + "Fluid Storage Monitor Cover", + "Displays the fluid stored in the Tank", + new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L))); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { ItemList.Sensor_EV.get(1L), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Titanium, 1L), - GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Cover_PlayerDetector.get(1L), - 3200, - 128); + new ItemStack[] { ItemList.Sensor_EV.get(1L), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Titanium, 1L), + GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Cover_PlayerDetector.get(1L), + 3200, + 128); GregTech_API.registerCover( - ItemList.Cover_Controller.get(1L), - TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_CONTROLLER)), - new GT_Cover_ControlsWork(TextureFactory.of(OVERLAY_CONTROLLER))); + ItemList.Cover_Controller.get(1L), + TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_CONTROLLER)), + new GT_Cover_ControlsWork(TextureFactory.of(OVERLAY_CONTROLLER))); final ITexture doesWorkCoverTexture = TextureFactory.of( - TextureFactory.of(OVERLAY_ACTIVITYDETECTOR), - TextureFactory.builder() - .addIcon(OVERLAY_ACTIVITYDETECTOR_GLOW) - .glow() - .build()); + TextureFactory.of(OVERLAY_ACTIVITYDETECTOR), + TextureFactory.builder() + .addIcon(OVERLAY_ACTIVITYDETECTOR_GLOW) + .glow() + .build()); GregTech_API.registerCover( - ItemList.Cover_ActivityDetector.get(1L), - TextureFactory.of(MACHINE_CASINGS[2][0], doesWorkCoverTexture), - new GT_Cover_DoesWork(doesWorkCoverTexture)); + ItemList.Cover_ActivityDetector.get(1L), + TextureFactory.of(MACHINE_CASINGS[2][0], doesWorkCoverTexture), + new GT_Cover_DoesWork(doesWorkCoverTexture)); GregTech_API.registerCover( - ItemList.Cover_FluidDetector.get(1L), - TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_FLUIDDETECTOR)), - new GT_Cover_LiquidMeter(TextureFactory.of(OVERLAY_FLUIDDETECTOR))); + ItemList.Cover_FluidDetector.get(1L), + TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_FLUIDDETECTOR)), + new GT_Cover_LiquidMeter(TextureFactory.of(OVERLAY_FLUIDDETECTOR))); GregTech_API.registerCover( - ItemList.Cover_ItemDetector.get(1L), - TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_ITEMDETECTOR)), - new GT_Cover_ItemMeter(TextureFactory.of(OVERLAY_ITEMDETECTOR))); + ItemList.Cover_ItemDetector.get(1L), + TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_ITEMDETECTOR)), + new GT_Cover_ItemMeter(TextureFactory.of(OVERLAY_ITEMDETECTOR))); GregTech_API.registerCover( - ItemList.Cover_EnergyDetector.get(1L), - TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_ENERGYDETECTOR)), - new GT_Cover_EUMeter(TextureFactory.of(OVERLAY_ENERGYDETECTOR))); + ItemList.Cover_EnergyDetector.get(1L), + TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_ENERGYDETECTOR)), + new GT_Cover_EUMeter(TextureFactory.of(OVERLAY_ENERGYDETECTOR))); final ITexture playerDectectorCoverTexture = TextureFactory.of( - TextureFactory.of(OVERLAY_ACTIVITYDETECTOR), - TextureFactory.builder() - .addIcon(OVERLAY_ACTIVITYDETECTOR_GLOW) - .glow() - .build()); + TextureFactory.of(OVERLAY_ACTIVITYDETECTOR), + TextureFactory.builder() + .addIcon(OVERLAY_ACTIVITYDETECTOR_GLOW) + .glow() + .build()); GregTech_API.registerCover( - ItemList.Cover_PlayerDetector.get(1L), - TextureFactory.of(MACHINE_CASINGS[2][0], playerDectectorCoverTexture), - new GT_Cover_PlayerDetector(playerDectectorCoverTexture)); + ItemList.Cover_PlayerDetector.get(1L), + TextureFactory.of(MACHINE_CASINGS[2][0], playerDectectorCoverTexture), + new GT_Cover_PlayerDetector(playerDectectorCoverTexture)); GregTech_API.registerCover( - ItemList.Cover_FluidStorageMonitor.get(1L), - TextureFactory.of(OVERLAY_FLUID_STORAGE_MONITOR0), - new GT_Cover_FluidStorageMonitor()); + ItemList.Cover_FluidStorageMonitor.get(1L), + TextureFactory.of(OVERLAY_FLUID_STORAGE_MONITOR0), + new GT_Cover_FluidStorageMonitor()); ItemList.Cover_Screen.set( - addItem( - tLastID = 740, - "Computer Monitor Cover", - "Displays Data and GUI", - new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.LUX, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L))); + addItem( + tLastID = 740, + "Computer Monitor Cover", + "Displays Data and GUI", + new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.LUX, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L))); ItemList.Cover_Crafting.set( - addItem( - tLastID = 744, - "Crafting Table Cover", - "Better than a wooden Workbench", - new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 4L))); + addItem( + tLastID = 744, + "Crafting Table Cover", + "Better than a wooden Workbench", + new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 4L))); ItemList.Cover_Drain.set( - addItem( - tLastID = 745, - "Drain Module Cover", - "Absorbs Fluids and collects Rain", - new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 2L))); + addItem( + tLastID = 745, + "Drain Module Cover", + "Absorbs Fluids and collects Rain", + new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 2L))); ItemList.Cover_Shutter.set( - addItem( - tLastID = 749, - "Shutter Module Cover", - "Blocks Inventory/Tank Side. Use together with Machine Controller.", - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 1L))); + addItem( + tLastID = 749, + "Shutter Module Cover", + "Blocks Inventory/Tank Side. Use together with Machine Controller.", + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 1L))); GT_ModHandler.addCraftingRecipe( - ItemList.Cover_Screen.get(1L), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "AGA", "RPB", "ALA", 'A', OrePrefixes.plate.get(Materials.Aluminium), 'L', - OrePrefixes.dust.get(Materials.Glowstone), 'R', Dyes.dyeRed, 'G', Dyes.dyeLime, 'B', - Dyes.dyeBlue, 'P', OrePrefixes.plate.get(Materials.Glass) }); + ItemList.Cover_Screen.get(1L), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "AGA", "RPB", "ALA", 'A', OrePrefixes.plate.get(Materials.Aluminium), 'L', + OrePrefixes.dust.get(Materials.Glowstone), 'R', Dyes.dyeRed, 'G', Dyes.dyeLime, 'B', Dyes.dyeBlue, 'P', + OrePrefixes.plate.get(Materials.Glass) }); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 1L), - ItemList.Cover_Drain.get(1L), GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Cover_Shutter.get(1L), - 200, - 64); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 1L), + ItemList.Cover_Drain.get(1L), GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Cover_Shutter.get(1L), + 200, + 64); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 1L), - ItemList.Cover_Drain.get(1L), GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Cover_Shutter.get(1L), - 800, - 16); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 1L), + ItemList.Cover_Drain.get(1L), GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Cover_Shutter.get(1L), + 800, + 16); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 1L), - ItemList.Cover_Drain.get(1L), GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Cover_Shutter.get(1L), - 400, - 30); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 1L), + ItemList.Cover_Drain.get(1L), GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Cover_Shutter.get(1L), + 400, + 30); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 2L), - new ItemStack(Blocks.iron_bars, 2), GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Cover_Drain.get(1L), - 200, - 64); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 2L), + new ItemStack(Blocks.iron_bars, 2), GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Cover_Drain.get(1L), + 200, + 64); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 2L), - new ItemStack(Blocks.iron_bars, 2), GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Cover_Drain.get(1L), - 800, - 16); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 2L), + new ItemStack(Blocks.iron_bars, 2), GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Cover_Drain.get(1L), + 800, + 16); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 2L), - new ItemStack(Blocks.iron_bars, 2), GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Cover_Drain.get(1L), - 400, - 30); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 2L), + new ItemStack(Blocks.iron_bars, 2), GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Cover_Drain.get(1L), + 400, + 30); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 1L), - new ItemStack(Blocks.crafting_table, 1), GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Cover_Crafting.get(1L), - 200, - 64); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 1L), + new ItemStack(Blocks.crafting_table, 1), GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Cover_Crafting.get(1L), + 200, + 64); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 1L), - new ItemStack(Blocks.crafting_table, 1), GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Cover_Crafting.get(1L), - 800, - 16); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 1L), + new ItemStack(Blocks.crafting_table, 1), GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Cover_Crafting.get(1L), + 800, + 16); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 1L), - new ItemStack(Blocks.crafting_table, 1), GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Cover_Crafting.get(1L), - 800, - 16); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 1L), + new ItemStack(Blocks.crafting_table, 1), GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Cover_Crafting.get(1L), + 800, + 16); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { ItemList.Cover_Shutter.get(1L), - GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Basic, 1), - GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.FluidFilter.get(1L), - 800, - 4); + new ItemStack[] { ItemList.Cover_Shutter.get(1L), + GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Basic, 1), GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.FluidFilter.get(1L), + 800, + 4); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { ItemList.Cover_Screen.get(1L), ItemList.Cover_FluidDetector.get(1L), - GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Cover_FluidStorageMonitor.get(1L), - 1200, - 128); + new ItemStack[] { ItemList.Cover_Screen.get(1L), ItemList.Cover_FluidDetector.get(1L), + GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Cover_FluidStorageMonitor.get(1L), + 1200, + 128); final ITexture screenCoverTexture = TextureFactory.of( - TextureFactory.of(OVERLAY_SCREEN), - TextureFactory.builder() - .addIcon(OVERLAY_SCREEN_GLOW) - .glow() - .build()); + TextureFactory.of(OVERLAY_SCREEN), + TextureFactory.builder() + .addIcon(OVERLAY_SCREEN_GLOW) + .glow() + .build()); GregTech_API.registerCover( - ItemList.Cover_Screen.get(1L), - TextureFactory.of(MACHINE_CASINGS[2][0], screenCoverTexture), - new GT_Cover_Screen(screenCoverTexture)); + ItemList.Cover_Screen.get(1L), + TextureFactory.of(MACHINE_CASINGS[2][0], screenCoverTexture), + new GT_Cover_Screen(screenCoverTexture)); GregTech_API.registerCover( - ItemList.Cover_Crafting.get(1L), - TextureFactory.of(MACHINE_CASINGS[1][0], TextureFactory.of(OVERLAY_CRAFTING)), - new GT_Cover_Crafting(TextureFactory.of(OVERLAY_CRAFTING))); + ItemList.Cover_Crafting.get(1L), + TextureFactory.of(MACHINE_CASINGS[1][0], TextureFactory.of(OVERLAY_CRAFTING)), + new GT_Cover_Crafting(TextureFactory.of(OVERLAY_CRAFTING))); GregTech_API.registerCover( - ItemList.Cover_Drain.get(1L), - TextureFactory.of(MACHINE_CASINGS[0][0], TextureFactory.of(OVERLAY_DRAIN)), - new GT_Cover_Drain(TextureFactory.of(OVERLAY_DRAIN))); + ItemList.Cover_Drain.get(1L), + TextureFactory.of(MACHINE_CASINGS[0][0], TextureFactory.of(OVERLAY_DRAIN)), + new GT_Cover_Drain(TextureFactory.of(OVERLAY_DRAIN))); GregTech_API.registerCover( - ItemList.Cover_Shutter.get(1L), - TextureFactory.of(MACHINE_CASINGS[1][0], TextureFactory.of(OVERLAY_SHUTTER)), - new GT_Cover_Shutter(TextureFactory.of(OVERLAY_SHUTTER))); + ItemList.Cover_Shutter.get(1L), + TextureFactory.of(MACHINE_CASINGS[1][0], TextureFactory.of(OVERLAY_SHUTTER)), + new GT_Cover_Shutter(TextureFactory.of(OVERLAY_SHUTTER))); ItemList.Cover_SolarPanel.set( - addItem( - tLastID = 750, - "Solar Panel", - "May the Sun be with you (Needs cleaning with right click)", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 1L))); + addItem( + tLastID = 750, + "Solar Panel", + "May the Sun be with you (Needs cleaning with right click)", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 1L))); ItemList.Cover_SolarPanel_8V.set( - addItem( - tLastID = 751, - "Solar Panel (8V)", - "8 Volt Solar Panel (Needs cleaning with right click)", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 2L))); + addItem( + tLastID = 751, + "Solar Panel (8V)", + "8 Volt Solar Panel (Needs cleaning with right click)", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 2L))); ItemList.Cover_SolarPanel_LV.set( - addItem( - tLastID = 752, - "Solar Panel (LV)", - "Low Voltage Solar Panel (Needs cleaning with right click)", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 4L))); + addItem( + tLastID = 752, + "Solar Panel (LV)", + "Low Voltage Solar Panel (Needs cleaning with right click)", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 4L))); ItemList.Cover_SolarPanel_MV.set( - addItem( - tLastID = 753, - "Solar Panel (MV)", - "Medium Voltage Solar Panel (Needs cleaning with right click)", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 8L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 8L))); + addItem( + tLastID = 753, + "Solar Panel (MV)", + "Medium Voltage Solar Panel (Needs cleaning with right click)", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 8L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 8L))); ItemList.Cover_SolarPanel_HV.set( - addItem( - tLastID = 754, - "Solar Panel (HV)", - "High Voltage Solar Panel (Needs cleaning with right click)", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 16L))); + addItem( + tLastID = 754, + "Solar Panel (HV)", + "High Voltage Solar Panel (Needs cleaning with right click)", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 16L))); ItemList.Cover_SolarPanel_EV.set( - addItem( - tLastID = 755, - "Solar Panel (EV)", - "Extreme Solar Panel (Needs cleaning with right click)", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 32L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 32L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 32L))); + addItem( + tLastID = 755, + "Solar Panel (EV)", + "Extreme Solar Panel (Needs cleaning with right click)", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 32L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 32L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 32L))); ItemList.Cover_SolarPanel_IV.set( - addItem( - tLastID = 756, - "Solar Panel (IV)", - "Insane Solar Panel (Needs cleaning with right click)", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 64L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 64L))); + addItem( + tLastID = 756, + "Solar Panel (IV)", + "Insane Solar Panel (Needs cleaning with right click)", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 64L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 64L))); ItemList.Cover_SolarPanel_LuV.set( - addItem( - tLastID = 757, - "Solar Panel (LuV)", - "Ludicrous Solar Panel (Needs cleaning with right click)", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 64L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 64L))); + addItem( + tLastID = 757, + "Solar Panel (LuV)", + "Ludicrous Solar Panel (Needs cleaning with right click)", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 64L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 64L))); ItemList.Cover_SolarPanel_ZPM.set( - addItem( - tLastID = 758, - "Solar Panel (ZPM)", - "ZPM Voltage Solar Panel (Needs cleaning with right click)", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 64L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 64L))); + addItem( + tLastID = 758, + "Solar Panel (ZPM)", + "ZPM Voltage Solar Panel (Needs cleaning with right click)", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 64L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 64L))); ItemList.Cover_SolarPanel_UV.set( - addItem( - tLastID = 759, - "Solar Panel (UV)", - "Ultimate Solar Panel (Needs cleaning with right click)", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 64L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 64L))); + addItem( + tLastID = 759, + "Solar Panel (UV)", + "Ultimate Solar Panel (Needs cleaning with right click)", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 64L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 64L))); GregTech_API.registerCover( - ItemList.Cover_SolarPanel.get(1L), - TextureFactory.of(SOLARPANEL), - new GT_Cover_SolarPanel(1)); + ItemList.Cover_SolarPanel.get(1L), + TextureFactory.of(SOLARPANEL), + new GT_Cover_SolarPanel(1)); GregTech_API.registerCover( - ItemList.Cover_SolarPanel_8V.get(1L), - TextureFactory.of(SOLARPANEL_8V), - new GT_Cover_SolarPanel(8)); + ItemList.Cover_SolarPanel_8V.get(1L), + TextureFactory.of(SOLARPANEL_8V), + new GT_Cover_SolarPanel(8)); GregTech_API.registerCover( - ItemList.Cover_SolarPanel_LV.get(1L), - TextureFactory.of(SOLARPANEL_LV), - new GT_Cover_SolarPanel(32)); + ItemList.Cover_SolarPanel_LV.get(1L), + TextureFactory.of(SOLARPANEL_LV), + new GT_Cover_SolarPanel(32)); GregTech_API.registerCover( - ItemList.Cover_SolarPanel_MV.get(1L), - TextureFactory.of(SOLARPANEL_MV), - new GT_Cover_SolarPanel(128)); + ItemList.Cover_SolarPanel_MV.get(1L), + TextureFactory.of(SOLARPANEL_MV), + new GT_Cover_SolarPanel(128)); GregTech_API.registerCover( - ItemList.Cover_SolarPanel_HV.get(1L), - TextureFactory.of(SOLARPANEL_HV), - new GT_Cover_SolarPanel(512)); + ItemList.Cover_SolarPanel_HV.get(1L), + TextureFactory.of(SOLARPANEL_HV), + new GT_Cover_SolarPanel(512)); GregTech_API.registerCover( - ItemList.Cover_SolarPanel_EV.get(1L), - TextureFactory.of(SOLARPANEL_EV), - new GT_Cover_SolarPanel(2048)); + ItemList.Cover_SolarPanel_EV.get(1L), + TextureFactory.of(SOLARPANEL_EV), + new GT_Cover_SolarPanel(2048)); GregTech_API.registerCover( - ItemList.Cover_SolarPanel_IV.get(1L), - TextureFactory.of(SOLARPANEL_IV), - new GT_Cover_SolarPanel(8192)); + ItemList.Cover_SolarPanel_IV.get(1L), + TextureFactory.of(SOLARPANEL_IV), + new GT_Cover_SolarPanel(8192)); GregTech_API.registerCover( - ItemList.Cover_SolarPanel_LuV.get(1L), - TextureFactory.of(SOLARPANEL_LuV), - new GT_Cover_SolarPanel(32768)); + ItemList.Cover_SolarPanel_LuV.get(1L), + TextureFactory.of(SOLARPANEL_LuV), + new GT_Cover_SolarPanel(32768)); GregTech_API.registerCover( - ItemList.Cover_SolarPanel_ZPM.get(1L), - TextureFactory.of(SOLARPANEL_ZPM), - new GT_Cover_SolarPanel(131072)); + ItemList.Cover_SolarPanel_ZPM.get(1L), + TextureFactory.of(SOLARPANEL_ZPM), + new GT_Cover_SolarPanel(131072)); GregTech_API.registerCover( - ItemList.Cover_SolarPanel_UV.get(1L), - TextureFactory.of(SOLARPANEL_UV), - new GT_Cover_SolarPanel(524288)); + ItemList.Cover_SolarPanel_UV.get(1L), + TextureFactory.of(SOLARPANEL_UV), + new GT_Cover_SolarPanel(524288)); ItemList.Tool_Sonictron.set( - addItem( - tLastID = 760, - "Sonictron", - "Bring your Music with you", - Behaviour_Sonictron.INSTANCE, - new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 4L))); + addItem( + tLastID = 760, + "Sonictron", + "Bring your Music with you", + Behaviour_Sonictron.INSTANCE, + new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 4L))); ItemList.Tool_Cheat.set( - addItem( - tLastID = 761, - "Debug Scanner", - "Also an Infinite Energy Source", - Behaviour_Scanner.INSTANCE, - new TC_Aspects.TC_AspectStack(TC_Aspects.NEBRISUM, 64L))); + addItem( + tLastID = 761, + "Debug Scanner", + "Also an Infinite Energy Source", + Behaviour_Scanner.INSTANCE, + new TC_Aspects.TC_AspectStack(TC_Aspects.NEBRISUM, 64L))); setElectricStats(32000 + tLastID, -2000000000L, 1000000000L, -1L, -3L, false); ItemList.Tool_Scanner.set( - addItem( - tLastID = 762, - "Portable Scanner", - "Tricorder", - Behaviour_Scanner.INSTANCE, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 6L), - new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 6L))); + addItem( + tLastID = 762, + "Portable Scanner", + "Tricorder", + Behaviour_Scanner.INSTANCE, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 6L), + new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 6L))); setElectricStats(32000 + tLastID, 400000L, GT_Values.V[2], 2L, -1L, false); GT_ModHandler.addCraftingRecipe( - ItemList.Tool_Scanner.get(1L), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "EPR", "CSC", "PBP", 'C', OrePrefixes.circuit.get(Materials.Advanced), 'P', - OrePrefixes.plate.get(Materials.Aluminium), 'E', ItemList.Emitter_MV, 'R', ItemList.Sensor_MV, - 'S', ItemList.Cover_Screen, 'B', ItemList.Battery_RE_MV_Lithium }); + ItemList.Tool_Scanner.get(1L), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE + | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "EPR", "CSC", "PBP", 'C', OrePrefixes.circuit.get(Materials.Advanced), 'P', + OrePrefixes.plate.get(Materials.Aluminium), 'E', ItemList.Emitter_MV, 'R', ItemList.Sensor_MV, 'S', + ItemList.Cover_Screen, 'B', ItemList.Battery_RE_MV_Lithium }); ItemList.NC_SensorKit.set(addItem(tLastID = 763, "GregTech Sensor Kit", "", new Behaviour_SensorKit())); ItemList.Duct_Tape.set( - addItem( - tLastID = 764, - "BrainTech Aerospace Advanced Reinforced Duct Tape FAL-84", - "If you can't fix it with this, use more of it!", - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), - OreDictNames.craftingDuctTape)); + addItem( + tLastID = 764, + "BrainTech Aerospace Advanced Reinforced Duct Tape FAL-84", + "If you can't fix it with this, use more of it!", + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), + OreDictNames.craftingDuctTape)); ItemList.McGuffium_239.set( - addItem( - tLastID = 765, - "Mc Guffium 239", - "42% better than Phlebotnium", - new TC_Aspects.TC_AspectStack(TC_Aspects.ALIENIS, 8L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 8L), - new TC_Aspects.TC_AspectStack(TC_Aspects.SPIRITUS, 8L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AURAM, 8L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITIUM, 8L), - new TC_Aspects.TC_AspectStack(TC_Aspects.RADIO, 8L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MAGNETO, 8L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), - new TC_Aspects.TC_AspectStack(TC_Aspects.NEBRISUM, 8L), - new TC_Aspects.TC_AspectStack(TC_Aspects.STRONTIO, 8L))); + addItem( + tLastID = 765, + "Mc Guffium 239", + "42% better than Phlebotnium", + new TC_Aspects.TC_AspectStack(TC_Aspects.ALIENIS, 8L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 8L), + new TC_Aspects.TC_AspectStack(TC_Aspects.SPIRITUS, 8L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AURAM, 8L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITIUM, 8L), + new TC_Aspects.TC_AspectStack(TC_Aspects.RADIO, 8L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MAGNETO, 8L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), + new TC_Aspects.TC_AspectStack(TC_Aspects.NEBRISUM, 8L), + new TC_Aspects.TC_AspectStack(TC_Aspects.STRONTIO, 8L))); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { ItemList.Sensor_LV.get(1L), ItemList.Emitter_LV.get(1L), - GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.NC_SensorKit.get(1L), - 1600, - 2); + new ItemStack[] { ItemList.Sensor_LV.get(1L), ItemList.Emitter_LV.get(1L), + GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.NC_SensorKit.get(1L), + 1600, + 2); ItemList.Cover_RedstoneTransmitterExternal.set( - addItem( - tLastID = 741, - "Redstone Transmitter (External)", - "Transfers Redstone signals wireless", - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L))); + addItem( + tLastID = 741, + "Redstone Transmitter (External)", + "Transfers Redstone signals wireless", + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L))); ItemList.Cover_RedstoneTransmitterInternal.set( - addItem( - tLastID = 742, - "Redstone Transmitter (Internal)", - "Transfers Redstone signals wireless", - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L))); + addItem( + tLastID = 742, + "Redstone Transmitter (Internal)", + "Transfers Redstone signals wireless", + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L))); ItemList.Cover_RedstoneReceiverExternal.set( - addItem( - tLastID = 746, - "Redstone Receiver (External)", - "Transfers Redstone signals wireless", - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L))); + addItem( + tLastID = 746, + "Redstone Receiver (External)", + "Transfers Redstone signals wireless", + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L))); ItemList.Cover_RedstoneReceiverInternal.set( - addItem( - tLastID = 747, - "Redstone Receiver (Internal)", - "Transfers Redstone signals wireless", - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L))); + addItem( + tLastID = 747, + "Redstone Receiver (Internal)", + "Transfers Redstone signals wireless", + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L))); GregTech_API.registerCover( - ItemList.Cover_RedstoneTransmitterExternal.get(1L), - TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_REDSTONE_TRANSMITTER)), - new GT_Cover_RedstoneTransmitterExternal(TextureFactory.of(OVERLAY_REDSTONE_TRANSMITTER))); + ItemList.Cover_RedstoneTransmitterExternal.get(1L), + TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_REDSTONE_TRANSMITTER)), + new GT_Cover_RedstoneTransmitterExternal(TextureFactory.of(OVERLAY_REDSTONE_TRANSMITTER))); GregTech_API.registerCover( - ItemList.Cover_RedstoneTransmitterInternal.get(1L), - TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_REDSTONE_TRANSMITTER)), - new GT_Cover_RedstoneTransmitterInternal(TextureFactory.of(OVERLAY_REDSTONE_TRANSMITTER))); + ItemList.Cover_RedstoneTransmitterInternal.get(1L), + TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_REDSTONE_TRANSMITTER)), + new GT_Cover_RedstoneTransmitterInternal(TextureFactory.of(OVERLAY_REDSTONE_TRANSMITTER))); GregTech_API.registerCover( - ItemList.Cover_RedstoneReceiverExternal.get(1L), - TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_REDSTONE_RECEIVER)), - new GT_Cover_RedstoneReceiverExternal(TextureFactory.of(OVERLAY_REDSTONE_RECEIVER))); + ItemList.Cover_RedstoneReceiverExternal.get(1L), + TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_REDSTONE_RECEIVER)), + new GT_Cover_RedstoneReceiverExternal(TextureFactory.of(OVERLAY_REDSTONE_RECEIVER))); GregTech_API.registerCover( - ItemList.Cover_RedstoneReceiverInternal.get(1L), - TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_REDSTONE_RECEIVER)), - new GT_Cover_RedstoneReceiverInternal(TextureFactory.of(OVERLAY_REDSTONE_RECEIVER))); + ItemList.Cover_RedstoneReceiverInternal.get(1L), + TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_REDSTONE_RECEIVER)), + new GT_Cover_RedstoneReceiverInternal(TextureFactory.of(OVERLAY_REDSTONE_RECEIVER))); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { ItemList.Emitter_EV.get(1L), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.StainlessSteel, 1L), - GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Cover_RedstoneTransmitterExternal.get(1L), - 3200, - 128); + new ItemStack[] { ItemList.Emitter_EV.get(1L), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.StainlessSteel, 1L), + GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Cover_RedstoneTransmitterExternal.get(1L), + 3200, + 128); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { ItemList.Sensor_EV.get(1L), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.StainlessSteel, 1L), - GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Cover_RedstoneReceiverExternal.get(1L), - 3200, - 128); + new ItemStack[] { ItemList.Sensor_EV.get(1L), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.StainlessSteel, 1L), + GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Cover_RedstoneReceiverExternal.get(1L), + 3200, + 128); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Cover_RedstoneTransmitterInternal.get(1L), - new Object[] { ItemList.Cover_RedstoneTransmitterExternal.get(1L) }); + ItemList.Cover_RedstoneTransmitterInternal.get(1L), + new Object[] { ItemList.Cover_RedstoneTransmitterExternal.get(1L) }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Cover_RedstoneReceiverInternal.get(1L), - new Object[] { ItemList.Cover_RedstoneReceiverExternal.get(1L) }); + ItemList.Cover_RedstoneReceiverInternal.get(1L), + new Object[] { ItemList.Cover_RedstoneReceiverExternal.get(1L) }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Cover_RedstoneTransmitterExternal.get(1L), - new Object[] { ItemList.Cover_RedstoneTransmitterInternal.get(1L) }); + ItemList.Cover_RedstoneTransmitterExternal.get(1L), + new Object[] { ItemList.Cover_RedstoneTransmitterInternal.get(1L) }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Cover_RedstoneReceiverExternal.get(1L), - new Object[] { ItemList.Cover_RedstoneReceiverInternal.get(1L) }); + ItemList.Cover_RedstoneReceiverExternal.get(1L), + new Object[] { ItemList.Cover_RedstoneReceiverInternal.get(1L) }); ItemList.Cover_NeedsMaintainance.set( - addItem( - tLastID = 748, - "Needs Maintenance Cover", - "Attach to Multiblock Controller. Emits Redstone Signal if needs Maintenance", - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L))); + addItem( + tLastID = 748, + "Needs Maintenance Cover", + "Attach to Multiblock Controller. Emits Redstone Signal if needs Maintenance", + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L))); GregTech_API.registerCover( - ItemList.Cover_NeedsMaintainance.get(1L), - TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_MAINTENANCE_DETECTOR)), - new GT_Cover_NeedMaintainance(TextureFactory.of(OVERLAY_MAINTENANCE_DETECTOR))); + ItemList.Cover_NeedsMaintainance.get(1L), + TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_MAINTENANCE_DETECTOR)), + new GT_Cover_NeedMaintainance(TextureFactory.of(OVERLAY_MAINTENANCE_DETECTOR))); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { ItemList.Emitter_MV.get(1L), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 1L), - GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Cover_NeedsMaintainance.get(1L), - 600, - 24); + new ItemStack[] { ItemList.Emitter_MV.get(1L), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 1L), + GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Cover_NeedsMaintainance.get(1L), + 600, + 24); GT_ModHandler.addCraftingRecipe( - ItemList.ItemFilter_Export.get(1L), - new Object[] { "SPS", "dIC", "SPS", 'P', OrePrefixes.plate.get(Materials.Tin), 'S', - OrePrefixes.screw.get(Materials.Iron), 'I', ItemList.Component_Filter, 'C', - ItemList.Conveyor_Module_LV }); + ItemList.ItemFilter_Export.get(1L), + new Object[] { "SPS", "dIC", "SPS", 'P', OrePrefixes.plate.get(Materials.Tin), 'S', + OrePrefixes.screw.get(Materials.Iron), 'I', ItemList.Component_Filter, 'C', + ItemList.Conveyor_Module_LV }); GT_ModHandler.addCraftingRecipe( - ItemList.ItemFilter_Import.get(1L), - new Object[] { "SPS", "CId", "SPS", 'P', OrePrefixes.plate.get(Materials.Tin), 'S', - OrePrefixes.screw.get(Materials.Iron), 'I', ItemList.Component_Filter, 'C', - ItemList.Conveyor_Module_LV }); + ItemList.ItemFilter_Import.get(1L), + new Object[] { "SPS", "CId", "SPS", 'P', OrePrefixes.plate.get(Materials.Tin), 'S', + OrePrefixes.screw.get(Materials.Iron), 'I', ItemList.Component_Filter, 'C', + ItemList.Conveyor_Module_LV }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.ItemFilter_Export.get(1L), - new Object[] { ItemList.ItemFilter_Import.get(1L) }); + ItemList.ItemFilter_Export.get(1L), + new Object[] { ItemList.ItemFilter_Import.get(1L) }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.ItemFilter_Import.get(1L), - new Object[] { ItemList.ItemFilter_Export.get(1L) }); + ItemList.ItemFilter_Import.get(1L), + new Object[] { ItemList.ItemFilter_Export.get(1L) }); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Tin, 2L), - ItemList.Component_Filter.get(1L), ItemList.Conveyor_Module_LV.get(1L), - GT_Utility.getIntegratedCircuit(1) }, - null, - ItemList.ItemFilter_Export.get(1L), - 100, - 30); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Tin, 2L), + ItemList.Component_Filter.get(1L), ItemList.Conveyor_Module_LV.get(1L), + GT_Utility.getIntegratedCircuit(1) }, + null, + ItemList.ItemFilter_Export.get(1L), + 100, + 30); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Tin, 2L), - ItemList.Component_Filter.get(1L), ItemList.Conveyor_Module_LV.get(1L), - GT_Utility.getIntegratedCircuit(2) }, - null, - ItemList.ItemFilter_Import.get(1L), - 100, - 30); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Tin, 2L), + ItemList.Component_Filter.get(1L), ItemList.Conveyor_Module_LV.get(1L), + GT_Utility.getIntegratedCircuit(2) }, + null, + ItemList.ItemFilter_Import.get(1L), + 100, + 30); GT_ModHandler.addCraftingRecipe( - ItemList.Tool_Cover_Copy_Paste.get(1L), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "PSP", "PCP", "PBP", 'P', OrePrefixes.plate.get(Materials.Aluminium), 'S', - ItemList.Tool_DataStick.get(1L), 'C', ItemList.Cover_Screen.get(1L), 'B', - ItemList.Battery_RE_MV_Lithium.get(1L) }); + ItemList.Tool_Cover_Copy_Paste.get(1L), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "PSP", "PCP", "PBP", 'P', OrePrefixes.plate.get(Materials.Aluminium), 'S', + ItemList.Tool_DataStick.get(1L), 'C', ItemList.Cover_Screen.get(1L), 'B', + ItemList.Battery_RE_MV_Lithium.get(1L) }); ItemList.Steam_Regulator_LV.set( - addItem( - tLastID = 332, - "Steam Regulator (LV)", - GT_Utility.formatNumbers(1024) + PartCoverText - + GT_Utility.formatNumbers(1024 * 20) - + PartCoverText2, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L))); + addItem( + tLastID = 332, + "Steam Regulator (LV)", + GT_Utility.formatNumbers(1024) + PartCoverText + GT_Utility.formatNumbers(1024 * 20) + PartCoverText2, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L))); ItemList.Steam_Regulator_MV.set( - addItem( - tLastID = 333, - "Steam Regulator (MV)", - GT_Utility.formatNumbers(2048) + PartCoverText - + GT_Utility.formatNumbers(2048 * 20) - + PartCoverText2, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 2L))); + addItem( + tLastID = 333, + "Steam Regulator (MV)", + GT_Utility.formatNumbers(2048) + PartCoverText + GT_Utility.formatNumbers(2048 * 20) + PartCoverText2, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 2L))); ItemList.Steam_Regulator_HV.set( - addItem( - tLastID = 334, - "Steam Regulator (HV)", - GT_Utility.formatNumbers(4096) + PartCoverText - + GT_Utility.formatNumbers(4096 * 20) - + PartCoverText2, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 4L))); + addItem( + tLastID = 334, + "Steam Regulator (HV)", + GT_Utility.formatNumbers(4096) + PartCoverText + GT_Utility.formatNumbers(4096 * 20) + PartCoverText2, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 4L))); ItemList.Steam_Regulator_EV.set( - addItem( - tLastID = 335, - "Steam Regulator (EV)", - GT_Utility.formatNumbers(8192) + PartCoverText - + GT_Utility.formatNumbers(8192 * 20) - + PartCoverText2, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 8L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 8L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 8L))); + addItem( + tLastID = 335, + "Steam Regulator (EV)", + GT_Utility.formatNumbers(8192) + PartCoverText + GT_Utility.formatNumbers(8192 * 20) + PartCoverText2, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 8L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 8L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 8L))); ItemList.Steam_Regulator_IV.set( - addItem( - tLastID = 336, - "Steam Regulator (IV)", - GT_Utility.formatNumbers(16384) + PartCoverText - + GT_Utility.formatNumbers(16384 * 20) - + PartCoverText2, - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 16L))); + addItem( + tLastID = 336, + "Steam Regulator (IV)", + GT_Utility.formatNumbers(16384) + PartCoverText + GT_Utility.formatNumbers(16384 * 20) + PartCoverText2, + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 16L))); GregTech_API.registerCover( - ItemList.Steam_Regulator_LV.get(1L), - TextureFactory.of(MACHINE_CASINGS[1][0], TextureFactory.of(OVERLAY_VALVE)), - new GT_Cover_SteamRegulator(1024, TextureFactory.of(OVERLAY_VALVE))); + ItemList.Steam_Regulator_LV.get(1L), + TextureFactory.of(MACHINE_CASINGS[1][0], TextureFactory.of(OVERLAY_VALVE)), + new GT_Cover_SteamRegulator(1024, TextureFactory.of(OVERLAY_VALVE))); GregTech_API.registerCover( - ItemList.Steam_Regulator_MV.get(1L), - TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_VALVE)), - new GT_Cover_SteamRegulator(2048, TextureFactory.of(OVERLAY_VALVE))); + ItemList.Steam_Regulator_MV.get(1L), + TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_VALVE)), + new GT_Cover_SteamRegulator(2048, TextureFactory.of(OVERLAY_VALVE))); GregTech_API.registerCover( - ItemList.Steam_Regulator_HV.get(1L), - TextureFactory.of(MACHINE_CASINGS[3][0], TextureFactory.of(OVERLAY_VALVE)), - new GT_Cover_SteamRegulator(4096, TextureFactory.of(OVERLAY_VALVE))); + ItemList.Steam_Regulator_HV.get(1L), + TextureFactory.of(MACHINE_CASINGS[3][0], TextureFactory.of(OVERLAY_VALVE)), + new GT_Cover_SteamRegulator(4096, TextureFactory.of(OVERLAY_VALVE))); GregTech_API.registerCover( - ItemList.Steam_Regulator_EV.get(1L), - TextureFactory.of(MACHINE_CASINGS[4][0], TextureFactory.of(OVERLAY_VALVE)), - new GT_Cover_SteamRegulator(8192, TextureFactory.of(OVERLAY_VALVE))); + ItemList.Steam_Regulator_EV.get(1L), + TextureFactory.of(MACHINE_CASINGS[4][0], TextureFactory.of(OVERLAY_VALVE)), + new GT_Cover_SteamRegulator(8192, TextureFactory.of(OVERLAY_VALVE))); GregTech_API.registerCover( - ItemList.Steam_Regulator_IV.get(1L), - TextureFactory.of(MACHINE_CASINGS[5][0], TextureFactory.of(OVERLAY_VALVE)), - new GT_Cover_SteamRegulator(16384, TextureFactory.of(OVERLAY_VALVE))); + ItemList.Steam_Regulator_IV.get(1L), + TextureFactory.of(MACHINE_CASINGS[5][0], TextureFactory.of(OVERLAY_VALVE)), + new GT_Cover_SteamRegulator(16384, TextureFactory.of(OVERLAY_VALVE))); } @@ -4388,7 +4322,7 @@ public class GT_MetaGenerated_Item_01 extends GT_MetaGenerated_Item_X32 { @Override public boolean onEntityItemUpdate(EntityItem aItemEntity) { int aDamage = aItemEntity.getEntityItem() - .getItemDamage(); + .getItemDamage(); if ((aDamage < 32000) && (aDamage >= 0) && (!aItemEntity.worldObj.isRemote)) { Materials aMaterial = GregTech_API.sGeneratedMaterials[(aDamage % 1000)]; if ((aMaterial != null) && (aMaterial != Materials.Empty) && (aMaterial != Materials._NULL)) { @@ -4404,10 +4338,8 @@ public class GT_MetaGenerated_Item_01 extends GT_MetaGenerated_Item_X32 { aMaterial = cauldronRemap.getOrDefault(aMaterial, aMaterial); aItemEntity.setEntityItemStack( - GT_OreDictUnificator.get( - OrePrefixes.dust, - aMaterial, - aItemEntity.getEntityItem().stackSize)); + GT_OreDictUnificator + .get(OrePrefixes.dust, aMaterial, aItemEntity.getEntityItem().stackSize)); aItemEntity.worldObj.setBlockMetadataWithNotify(tX, tY, tZ, tMetaData - 1, 3); return true; } @@ -4416,10 +4348,8 @@ public class GT_MetaGenerated_Item_01 extends GT_MetaGenerated_Item_X32 { byte tMetaData = (byte) aItemEntity.worldObj.getBlockMetadata(tX, tY, tZ); if ((tBlock == Blocks.cauldron) && (tMetaData > 0)) { aItemEntity.setEntityItemStack( - GT_OreDictUnificator.get( - OrePrefixes.crushedPurified, - aMaterial, - aItemEntity.getEntityItem().stackSize)); + GT_OreDictUnificator + .get(OrePrefixes.crushedPurified, aMaterial, aItemEntity.getEntityItem().stackSize)); aItemEntity.worldObj.setBlockMetadataWithNotify(tX, tY, tZ, tMetaData - 1, 3); return true; } @@ -4458,11 +4388,10 @@ public class GT_MetaGenerated_Item_01 extends GT_MetaGenerated_Item_X32 { for (GT_Recipe recipe : fusionRecipes) { // Loop through fusion recipes if (recipe.getFluidOutput(0) != null) { // Make sure fluid output can't be null (not sure if possible) if (recipe.getFluidOutput(0) - .isFluidEqual(aMaterial.getPlasma(1L))) - return true; // Fusion recipe - // output matches - // current plasma - // cell fluid + .isFluidEqual(aMaterial.getPlasma(1L))) return true; // Fusion recipe + // output matches + // current plasma + // cell fluid } } } @@ -4472,15 +4401,15 @@ public class GT_MetaGenerated_Item_01 extends GT_MetaGenerated_Item_X32 { @Override public boolean doesShowInCreative(OrePrefixes aPrefix, Materials aMaterial, boolean aDoShowAllItems) { return (aDoShowAllItems) || (((aPrefix != OrePrefixes.gem) || (!aMaterial.mName.startsWith("Infused"))) - && (aPrefix != OrePrefixes.dustTiny) - && (aPrefix != OrePrefixes.dustSmall) - && (aPrefix != OrePrefixes.dustImpure) - && (aPrefix != OrePrefixes.dustPure) - && (aPrefix != OrePrefixes.crushed) - && (aPrefix != OrePrefixes.crushedPurified) - && (aPrefix != OrePrefixes.crushedCentrifuged) - && (aPrefix != OrePrefixes.ingotHot) - && !(aPrefix == OrePrefixes.cellPlasma && !isPlasmaCellUsed(aPrefix, aMaterial))); + && (aPrefix != OrePrefixes.dustTiny) + && (aPrefix != OrePrefixes.dustSmall) + && (aPrefix != OrePrefixes.dustImpure) + && (aPrefix != OrePrefixes.dustPure) + && (aPrefix != OrePrefixes.crushed) + && (aPrefix != OrePrefixes.crushedPurified) + && (aPrefix != OrePrefixes.crushedCentrifuged) + && (aPrefix != OrePrefixes.ingotHot) + && !(aPrefix == OrePrefixes.cellPlasma && !isPlasmaCellUsed(aPrefix, aMaterial))); } @Override diff --git a/src/main/java/gregtech/common/items/GT_MetaGenerated_Item_02.java b/src/main/java/gregtech/common/items/GT_MetaGenerated_Item_02.java index 164a5c4ca4..2fb25828a7 100644 --- a/src/main/java/gregtech/common/items/GT_MetaGenerated_Item_02.java +++ b/src/main/java/gregtech/common/items/GT_MetaGenerated_Item_02.java @@ -50,1917 +50,1861 @@ public class GT_MetaGenerated_Item_02 extends GT_MetaGenerated_Item_X32 { public GT_MetaGenerated_Item_02() { super( - "metaitem.02", - OrePrefixes.toolHeadSword, - OrePrefixes.toolHeadPickaxe, - OrePrefixes.toolHeadShovel, - OrePrefixes.toolHeadAxe, - OrePrefixes.toolHeadHoe, - OrePrefixes.toolHeadHammer, - OrePrefixes.toolHeadFile, - OrePrefixes.toolHeadSaw, - OrePrefixes.toolHeadDrill, - OrePrefixes.toolHeadChainsaw, - OrePrefixes.toolHeadWrench, - OrePrefixes.toolHeadUniversalSpade, - OrePrefixes.toolHeadSense, - OrePrefixes.toolHeadPlow, - OrePrefixes.toolHeadArrow, - OrePrefixes.toolHeadBuzzSaw, - OrePrefixes.turbineBlade, - null, - OrePrefixes.itemCasing, - OrePrefixes.wireFine, - OrePrefixes.gearGtSmall, - OrePrefixes.rotor, - OrePrefixes.stickLong, - OrePrefixes.springSmall, - OrePrefixes.spring, - OrePrefixes.arrowGtWood, - OrePrefixes.arrowGtPlastic, - OrePrefixes.gemChipped, - OrePrefixes.gemFlawed, - OrePrefixes.gemFlawless, - OrePrefixes.gemExquisite, - OrePrefixes.gearGt); + "metaitem.02", + OrePrefixes.toolHeadSword, + OrePrefixes.toolHeadPickaxe, + OrePrefixes.toolHeadShovel, + OrePrefixes.toolHeadAxe, + OrePrefixes.toolHeadHoe, + OrePrefixes.toolHeadHammer, + OrePrefixes.toolHeadFile, + OrePrefixes.toolHeadSaw, + OrePrefixes.toolHeadDrill, + OrePrefixes.toolHeadChainsaw, + OrePrefixes.toolHeadWrench, + OrePrefixes.toolHeadUniversalSpade, + OrePrefixes.toolHeadSense, + OrePrefixes.toolHeadPlow, + OrePrefixes.toolHeadArrow, + OrePrefixes.toolHeadBuzzSaw, + OrePrefixes.turbineBlade, + null, + OrePrefixes.itemCasing, + OrePrefixes.wireFine, + OrePrefixes.gearGtSmall, + OrePrefixes.rotor, + OrePrefixes.stickLong, + OrePrefixes.springSmall, + OrePrefixes.spring, + OrePrefixes.arrowGtWood, + OrePrefixes.arrowGtPlastic, + OrePrefixes.gemChipped, + OrePrefixes.gemFlawed, + OrePrefixes.gemFlawless, + OrePrefixes.gemExquisite, + OrePrefixes.gearGt); INSTANCE = this; int tLastID = 0; ItemList.ThermosCan_Dark_Coffee.set( - addItem( - tLastID = 0, - "Dark Coffee", - "Coffee, dark, without anything else", - new GT_FoodStat( - 2, - 0.2F, - EnumAction.drink, - ItemList.ThermosCan_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false, - Potion.moveSpeed.id, - 400, - 1, - 70, - Potion.digSpeed.id, - 400, - 1, - 70), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 2L))); + addItem( + tLastID = 0, + "Dark Coffee", + "Coffee, dark, without anything else", + new GT_FoodStat( + 2, + 0.2F, + EnumAction.drink, + ItemList.ThermosCan_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false, + Potion.moveSpeed.id, + 400, + 1, + 70, + Potion.digSpeed.id, + 400, + 1, + 70), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 2L))); ItemList.ThermosCan_Dark_Cafe_au_lait.set( - addItem( - tLastID = 1, - "Dark Coffee au lait", - "Keeping you awake the whole night", - SubTag.INVISIBLE, - new GT_FoodStat( - 2, - 0.2F, - EnumAction.drink, - ItemList.ThermosCan_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false, - Potion.moveSpeed.id, - 400, - 2, - 90, - Potion.digSpeed.id, - 400, - 2, - 90), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 3L))); + addItem( + tLastID = 1, + "Dark Coffee au lait", + "Keeping you awake the whole night", + SubTag.INVISIBLE, + new GT_FoodStat( + 2, + 0.2F, + EnumAction.drink, + ItemList.ThermosCan_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false, + Potion.moveSpeed.id, + 400, + 2, + 90, + Potion.digSpeed.id, + 400, + 2, + 90), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 3L))); ItemList.ThermosCan_Coffee.set( - addItem( - tLastID = 2, - "Coffee", - "Just the regular morning Coffee", - new GT_FoodStat( - 3, - 0.4F, - EnumAction.drink, - ItemList.ThermosCan_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false, - Potion.moveSpeed.id, - 400, - 0, - 50, - Potion.digSpeed.id, - 400, - 0, - 50), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 1L))); + addItem( + tLastID = 2, + "Coffee", + "Just the regular morning Coffee", + new GT_FoodStat( + 3, + 0.4F, + EnumAction.drink, + ItemList.ThermosCan_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false, + Potion.moveSpeed.id, + 400, + 0, + 50, + Potion.digSpeed.id, + 400, + 0, + 50), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 1L))); ItemList.ThermosCan_Cafe_au_lait.set( - addItem( - tLastID = 3, - "Cafe au lait", - "Sweet Coffee", - new GT_FoodStat( - 3, - 0.4F, - EnumAction.drink, - ItemList.ThermosCan_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false, - Potion.moveSpeed.id, - 400, - 1, - 70, - Potion.digSpeed.id, - 400, - 1, - 70), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 2L))); + addItem( + tLastID = 3, + "Cafe au lait", + "Sweet Coffee", + new GT_FoodStat( + 3, + 0.4F, + EnumAction.drink, + ItemList.ThermosCan_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false, + Potion.moveSpeed.id, + 400, + 1, + 70, + Potion.digSpeed.id, + 400, + 1, + 70), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 2L))); ItemList.ThermosCan_Lait_au_cafe.set( - addItem( - tLastID = 4, - "Lait au cafe", - "You want Coffee to your Sugar?", - SubTag.INVISIBLE, - new GT_FoodStat( - 3, - 0.4F, - EnumAction.drink, - ItemList.ThermosCan_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false, - Potion.moveSpeed.id, - 400, - 2, - 90, - Potion.digSpeed.id, - 400, - 2, - 90), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 3L))); + addItem( + tLastID = 4, + "Lait au cafe", + "You want Coffee to your Sugar?", + SubTag.INVISIBLE, + new GT_FoodStat( + 3, + 0.4F, + EnumAction.drink, + ItemList.ThermosCan_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false, + Potion.moveSpeed.id, + 400, + 2, + 90, + Potion.digSpeed.id, + 400, + 2, + 90), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 3L))); ItemList.ThermosCan_Dark_Chocolate_Milk.set( - addItem( - tLastID = 5, - "Dark Chocolate Milk", - "A bit bitter, better add a bit Sugar", - new GT_FoodStat( - 3, - 0.4F, - EnumAction.drink, - ItemList.ThermosCan_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false, - Potion.regeneration.id, - 50, - 1, - 60), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 1L))); + addItem( + tLastID = 5, + "Dark Chocolate Milk", + "A bit bitter, better add a bit Sugar", + new GT_FoodStat( + 3, + 0.4F, + EnumAction.drink, + ItemList.ThermosCan_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false, + Potion.regeneration.id, + 50, + 1, + 60), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 1L))); ItemList.ThermosCan_Chocolate_Milk.set( - addItem( - tLastID = 6, - "Chocolate Milk", - "Sweet Goodness", - new GT_FoodStat( - 3, - 0.4F, - EnumAction.drink, - ItemList.ThermosCan_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false, - Potion.regeneration.id, - 50, - 1, - 90), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 2L))); + addItem( + tLastID = 6, + "Chocolate Milk", + "Sweet Goodness", + new GT_FoodStat( + 3, + 0.4F, + EnumAction.drink, + ItemList.ThermosCan_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false, + Potion.regeneration.id, + 50, + 1, + 90), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 2L))); ItemList.ThermosCan_Tea.set( - addItem( - tLastID = 7, - "Tea", - "Keep calm and carry on", - new GT_FoodStat( - 2, - 0.2F, - EnumAction.drink, - ItemList.ThermosCan_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false, - Potion.moveSlowdown.id, - 300, - 0, - 50), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 2L))); + addItem( + tLastID = 7, + "Tea", + "Keep calm and carry on", + new GT_FoodStat( + 2, + 0.2F, + EnumAction.drink, + ItemList.ThermosCan_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false, + Potion.moveSlowdown.id, + 300, + 0, + 50), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 2L))); ItemList.ThermosCan_Sweet_Tea.set( - addItem( - tLastID = 8, - "Sweet Tea", - "How about a Tea Party? In Boston?", - SubTag.INVISIBLE, - new GT_FoodStat( - 2, - 0.2F, - EnumAction.drink, - ItemList.ThermosCan_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 2L))); + addItem( + tLastID = 8, + "Sweet Tea", + "How about a Tea Party? In Boston?", + SubTag.INVISIBLE, + new GT_FoodStat( + 2, + 0.2F, + EnumAction.drink, + ItemList.ThermosCan_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 2L))); ItemList.ThermosCan_Ice_Tea.set( - addItem( - tLastID = 9, - "Ice Tea", - "Better than this purple Junk Drink from failed Potions", - new GT_FoodStat( - 2, - 0.2F, - EnumAction.drink, - ItemList.ThermosCan_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false, - Potion.moveSlowdown.id, - 300, - 0, - 50), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 2L))); + addItem( + tLastID = 9, + "Ice Tea", + "Better than this purple Junk Drink from failed Potions", + new GT_FoodStat( + 2, + 0.2F, + EnumAction.drink, + ItemList.ThermosCan_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false, + Potion.moveSlowdown.id, + 300, + 0, + 50), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 2L))); ItemList.GelledToluene.set(addItem(tLastID = 10, "Gelled Toluene", "Raw Explosive")); ItemList.Bottle_Purple_Drink.set( - addItem( - tLastID = 100, - "Purple Drink", - "How about Lemonade. Or some Ice Tea? I got Purple Drink!", - new GT_FoodStat( - 8, - 0.2F, - EnumAction.drink, - ItemList.Bottle_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false, - Potion.moveSlowdown.id, - 400, - 1, - 90), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VINCULUM, 1L))); + addItem( + tLastID = 100, + "Purple Drink", + "How about Lemonade. Or some Ice Tea? I got Purple Drink!", + new GT_FoodStat( + 8, + 0.2F, + EnumAction.drink, + ItemList.Bottle_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false, + Potion.moveSlowdown.id, + 400, + 1, + 90), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VINCULUM, 1L))); ItemList.Bottle_Grape_Juice.set( - addItem( - tLastID = 101, - "Grape Juice", - "This has a cleaning effect on your internals.", - new GT_FoodStat( - 4, - 0.2F, - EnumAction.drink, - ItemList.Bottle_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false, - Potion.hunger.id, - 400, - 1, - 60), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 1L))); + addItem( + tLastID = 101, + "Grape Juice", + "This has a cleaning effect on your internals.", + new GT_FoodStat( + 4, + 0.2F, + EnumAction.drink, + ItemList.Bottle_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false, + Potion.hunger.id, + 400, + 1, + 60), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 1L))); ItemList.Bottle_Wine.set( - addItem( - tLastID = 102, - "Wine", - "Ordinary", - new GT_FoodStat( - 2, - 0.2F, - EnumAction.drink, - ItemList.Bottle_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false, - Potion.confusion.id, - 400, - 1, - 60, - Potion.heal.id, - 0, - 0, - 60, - Potion.poison.id, - 200, - 1, - 5), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 1L))); + addItem( + tLastID = 102, + "Wine", + "Ordinary", + new GT_FoodStat( + 2, + 0.2F, + EnumAction.drink, + ItemList.Bottle_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false, + Potion.confusion.id, + 400, + 1, + 60, + Potion.heal.id, + 0, + 0, + 60, + Potion.poison.id, + 200, + 1, + 5), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 1L))); ItemList.Bottle_Vinegar.set( - addItem( - tLastID = 103, - "Vinegar", - "Exquisite", - new GT_FoodStat( - 2, - 0.2F, - EnumAction.drink, - ItemList.Bottle_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false, - Potion.confusion.id, - 400, - 1, - 90, - Potion.heal.id, - 0, - 1, - 90, - Potion.poison.id, - 200, - 2, - 10, - Potion.harm.id, - 0, - 2, - 5), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 1L))); + addItem( + tLastID = 103, + "Vinegar", + "Exquisite", + new GT_FoodStat( + 2, + 0.2F, + EnumAction.drink, + ItemList.Bottle_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false, + Potion.confusion.id, + 400, + 1, + 90, + Potion.heal.id, + 0, + 1, + 90, + Potion.poison.id, + 200, + 2, + 10, + Potion.harm.id, + 0, + 2, + 5), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 1L))); ItemList.Bottle_Potato_Juice.set( - addItem( - tLastID = 104, - "Potato Juice", - "Ever seen Potato Juice in stores? No? That has a reason.", - SubTag.INVISIBLE, - new GT_FoodStat( - 3, - 0.3F, - EnumAction.drink, - ItemList.Bottle_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L))); + addItem( + tLastID = 104, + "Potato Juice", + "Ever seen Potato Juice in stores? No? That has a reason.", + SubTag.INVISIBLE, + new GT_FoodStat( + 3, + 0.3F, + EnumAction.drink, + ItemList.Bottle_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L))); ItemList.Bottle_Vodka.set( - addItem( - tLastID = 105, - "Vodka", - "Not to confuse with Water", - new GT_FoodStat( - 2, - 0.2F, - EnumAction.drink, - ItemList.Bottle_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false, - Potion.confusion.id, - 500, - 0, - 60, - Potion.damageBoost.id, - 500, - 1, - 60, - Potion.poison.id, - 200, - 1, - 5), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L))); + addItem( + tLastID = 105, + "Vodka", + "Not to confuse with Water", + new GT_FoodStat( + 2, + 0.2F, + EnumAction.drink, + ItemList.Bottle_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false, + Potion.confusion.id, + 500, + 0, + 60, + Potion.damageBoost.id, + 500, + 1, + 60, + Potion.poison.id, + 200, + 1, + 5), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L))); ItemList.Bottle_Leninade.set( - addItem( - tLastID = 106, - "Leninade", - "Let the Communism flow through you!", - SubTag.INVISIBLE, - new GT_FoodStat( - 2, - 0.2F, - EnumAction.drink, - ItemList.Bottle_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false, - Potion.confusion.id, - 500, - 1, - 90, - Potion.damageBoost.id, - 500, - 2, - 90, - Potion.poison.id, - 200, - 2, - 10, - Potion.harm.id, - 0, - 2, - 5), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 2L))); + addItem( + tLastID = 106, + "Leninade", + "Let the Communism flow through you!", + SubTag.INVISIBLE, + new GT_FoodStat( + 2, + 0.2F, + EnumAction.drink, + ItemList.Bottle_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false, + Potion.confusion.id, + 500, + 1, + 90, + Potion.damageBoost.id, + 500, + 2, + 90, + Potion.poison.id, + 200, + 2, + 10, + Potion.harm.id, + 0, + 2, + 5), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 2L))); ItemList.Bottle_Mineral_Water.set( - addItem( - tLastID = 107, - "Mineral Water", - "The best Stuff you can drink to stay healthy", - new GT_FoodStat( - 1, - 0.1F, - EnumAction.drink, - ItemList.Bottle_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false, - Potion.regeneration.id, - 100, - 1, - 10), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 1L))); + addItem( + tLastID = 107, + "Mineral Water", + "The best Stuff you can drink to stay healthy", + new GT_FoodStat( + 1, + 0.1F, + EnumAction.drink, + ItemList.Bottle_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false, + Potion.regeneration.id, + 100, + 1, + 10), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 1L))); ItemList.Bottle_Salty_Water.set( - addItem( - tLastID = 108, - "Salty Water", - "Like Sea Water but less dirty", - SubTag.INVISIBLE, - new GT_FoodStat( - 1, - 0.0F, - EnumAction.drink, - ItemList.Bottle_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false, - Potion.hunger.id, - 400, - 2, - 95), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TEMPESTAS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L))); + addItem( + tLastID = 108, + "Salty Water", + "Like Sea Water but less dirty", + SubTag.INVISIBLE, + new GT_FoodStat( + 1, + 0.0F, + EnumAction.drink, + ItemList.Bottle_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false, + Potion.hunger.id, + 400, + 2, + 95), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TEMPESTAS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L))); ItemList.Bottle_Reed_Water.set( - addItem( - tLastID = 109, - "Reed Water", - "I guess this tastes better when fermented", - new GT_FoodStat( - 1, - 0.1F, - EnumAction.drink, - ItemList.Bottle_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L))); + addItem( + tLastID = 109, + "Reed Water", + "I guess this tastes better when fermented", + new GT_FoodStat( + 1, + 0.1F, + EnumAction.drink, + ItemList.Bottle_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L))); ItemList.Bottle_Rum.set( - addItem( - tLastID = 110, - "Rum", - "A buddle o' rum", - new GT_FoodStat( - 4, - 0.4F, - EnumAction.drink, - ItemList.Bottle_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false, - Potion.confusion.id, - 300, - 0, - 60, - Potion.damageBoost.id, - 300, - 1, - 60, - Potion.poison.id, - 200, - 1, - 5), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 1L))); + addItem( + tLastID = 110, + "Rum", + "A buddle o' rum", + new GT_FoodStat( + 4, + 0.4F, + EnumAction.drink, + ItemList.Bottle_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false, + Potion.confusion.id, + 300, + 0, + 60, + Potion.damageBoost.id, + 300, + 1, + 60, + Potion.poison.id, + 200, + 1, + 5), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 1L))); ItemList.Bottle_Pirate_Brew.set( - addItem( - tLastID = 111, - "Pirate Brew", - "Set the Sails, we are going to Torrentuga!", - new GT_FoodStat( - 4, - 0.4F, - EnumAction.drink, - ItemList.Bottle_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false, - Potion.confusion.id, - 300, - 1, - 90, - Potion.damageBoost.id, - 300, - 2, - 90, - Potion.poison.id, - 200, - 2, - 10, - Potion.harm.id, - 0, - 2, - 5), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 2L))); + addItem( + tLastID = 111, + "Pirate Brew", + "Set the Sails, we are going to Torrentuga!", + new GT_FoodStat( + 4, + 0.4F, + EnumAction.drink, + ItemList.Bottle_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false, + Potion.confusion.id, + 300, + 1, + 90, + Potion.damageBoost.id, + 300, + 2, + 90, + Potion.poison.id, + 200, + 2, + 10, + Potion.harm.id, + 0, + 2, + 5), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 2L))); ItemList.Bottle_Hops_Juice.set( - addItem( - tLastID = 112, - "Hops Juice", - "Every Beer has a start", - new GT_FoodStat( - 1, - 0.1F, - EnumAction.drink, - ItemList.Bottle_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L))); + addItem( + tLastID = 112, + "Hops Juice", + "Every Beer has a start", + new GT_FoodStat( + 1, + 0.1F, + EnumAction.drink, + ItemList.Bottle_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L))); ItemList.Bottle_Dark_Beer.set( - addItem( - tLastID = 113, - "Dark Beer", - "Dark Beer, for the real Men", - new GT_FoodStat( - 4, - 0.4F, - EnumAction.drink, - ItemList.Bottle_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false, - Potion.confusion.id, - 300, - 1, - 60, - Potion.damageBoost.id, - 300, - 1, - 60, - Potion.poison.id, - 200, - 1, - 5), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L))); + addItem( + tLastID = 113, + "Dark Beer", + "Dark Beer, for the real Men", + new GT_FoodStat( + 4, + 0.4F, + EnumAction.drink, + ItemList.Bottle_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false, + Potion.confusion.id, + 300, + 1, + 60, + Potion.damageBoost.id, + 300, + 1, + 60, + Potion.poison.id, + 200, + 1, + 5), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L))); ItemList.Bottle_Dragon_Blood.set( - addItem( - tLastID = 114, - "Dragon Blood", - "FUS RO DAH!", - new GT_FoodStat( - 4, - 0.4F, - EnumAction.drink, - ItemList.Bottle_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false, - Potion.confusion.id, - 300, - 2, - 90, - Potion.damageBoost.id, - 300, - 2, - 90, - Potion.poison.id, - 200, - 2, - 10, - Potion.harm.id, - 0, - 2, - 5), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 2L))); + addItem( + tLastID = 114, + "Dragon Blood", + "FUS RO DAH!", + new GT_FoodStat( + 4, + 0.4F, + EnumAction.drink, + ItemList.Bottle_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false, + Potion.confusion.id, + 300, + 2, + 90, + Potion.damageBoost.id, + 300, + 2, + 90, + Potion.poison.id, + 200, + 2, + 10, + Potion.harm.id, + 0, + 2, + 5), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 2L))); ItemList.Bottle_Wheaty_Juice.set( - addItem( - tLastID = 115, - "Wheaty Juice", - "Is this liquefied Bread or what?", - new GT_FoodStat( - 2, - 0.1F, - EnumAction.drink, - ItemList.Bottle_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L))); + addItem( + tLastID = 115, + "Wheaty Juice", + "Is this liquefied Bread or what?", + new GT_FoodStat( + 2, + 0.1F, + EnumAction.drink, + ItemList.Bottle_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L))); ItemList.Bottle_Scotch.set( - addItem( - tLastID = 116, - "Scotch", - "Technically this is just a Whisky", - SubTag.INVISIBLE, - new GT_FoodStat( - 2, - 0.1F, - EnumAction.drink, - ItemList.Bottle_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false, - Potion.confusion.id, - 400, - 0, - 60, - Potion.resistance.id, - 400, - 1, - 60, - Potion.poison.id, - 200, - 1, - 5), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 1L))); + addItem( + tLastID = 116, + "Scotch", + "Technically this is just a Whisky", + SubTag.INVISIBLE, + new GT_FoodStat( + 2, + 0.1F, + EnumAction.drink, + ItemList.Bottle_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false, + Potion.confusion.id, + 400, + 0, + 60, + Potion.resistance.id, + 400, + 1, + 60, + Potion.poison.id, + 200, + 1, + 5), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 1L))); ItemList.Bottle_Glen_McKenner.set( - addItem( - tLastID = 117, - "Glen McKenner", - "Don't hand to easily surprised people, they will shatter it.", - SubTag.INVISIBLE, - new GT_FoodStat( - 2, - 0.1F, - EnumAction.drink, - ItemList.Bottle_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false, - Potion.confusion.id, - 400, - 1, - 90, - Potion.resistance.id, - 400, - 2, - 90, - Potion.poison.id, - 200, - 2, - 10, - Potion.harm.id, - 0, - 2, - 5), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 2L))); + addItem( + tLastID = 117, + "Glen McKenner", + "Don't hand to easily surprised people, they will shatter it.", + SubTag.INVISIBLE, + new GT_FoodStat( + 2, + 0.1F, + EnumAction.drink, + ItemList.Bottle_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false, + Potion.confusion.id, + 400, + 1, + 90, + Potion.resistance.id, + 400, + 2, + 90, + Potion.poison.id, + 200, + 2, + 10, + Potion.harm.id, + 0, + 2, + 5), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 2L))); ItemList.Bottle_Wheaty_Hops_Juice.set( - addItem( - tLastID = 118, - "Wheaty Hops Juice", - "Also known as 'Duff-Lite'", - new GT_FoodStat( - 1, - 0.1F, - EnumAction.drink, - ItemList.Bottle_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 2L))); + addItem( + tLastID = 118, + "Wheaty Hops Juice", + "Also known as 'Duff-Lite'", + new GT_FoodStat( + 1, + 0.1F, + EnumAction.drink, + ItemList.Bottle_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 2L))); ItemList.Bottle_Beer.set( - addItem( - tLastID = 119, - "Beer", - "Good old Beer", - new GT_FoodStat( - 6, - 0.4F, - EnumAction.drink, - ItemList.Bottle_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false, - Potion.confusion.id, - 400, - 0, - 60, - Potion.digSpeed.id, - 400, - 2, - 60, - Potion.poison.id, - 100, - 0, - 5), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PERFODIO, 1L))); + addItem( + tLastID = 119, + "Beer", + "Good old Beer", + new GT_FoodStat( + 6, + 0.4F, + EnumAction.drink, + ItemList.Bottle_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false, + Potion.confusion.id, + 400, + 0, + 60, + Potion.digSpeed.id, + 400, + 2, + 60, + Potion.poison.id, + 100, + 0, + 5), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PERFODIO, 1L))); ItemList.Bottle_Chilly_Sauce.set( - addItem( - tLastID = 120, - "Chilly Sauce", - "Spicy", - new GT_FoodStat( - 2, - 0.1F, - EnumAction.drink, - ItemList.Bottle_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false, - Potion.confusion.id, - 1000, - 0, - 10, - Potion.fireResistance.id, - 1000, - 0, - 60), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); + addItem( + tLastID = 120, + "Chilly Sauce", + "Spicy", + new GT_FoodStat( + 2, + 0.1F, + EnumAction.drink, + ItemList.Bottle_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false, + Potion.confusion.id, + 1000, + 0, + 10, + Potion.fireResistance.id, + 1000, + 0, + 60), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); ItemList.Bottle_Hot_Sauce.set( - addItem( - tLastID = 121, - "Hot Sauce", - "Very Spicy, I guess?", - new GT_FoodStat( - 2, - 0.1F, - EnumAction.drink, - ItemList.Bottle_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false, - Potion.confusion.id, - 2000, - 0, - 30, - Potion.fireResistance.id, - 2000, - 0, - 70), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 2L))); + addItem( + tLastID = 121, + "Hot Sauce", + "Very Spicy, I guess?", + new GT_FoodStat( + 2, + 0.1F, + EnumAction.drink, + ItemList.Bottle_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false, + Potion.confusion.id, + 2000, + 0, + 30, + Potion.fireResistance.id, + 2000, + 0, + 70), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 2L))); ItemList.Bottle_Diabolo_Sauce.set( - addItem( - tLastID = 122, - "Diabolo Sauce", - "As if the Devil made this Sauce", - SubTag.INVISIBLE, - new GT_FoodStat( - 2, - 0.1F, - EnumAction.drink, - ItemList.Bottle_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false, - Potion.confusion.id, - 3000, - 1, - 50, - Potion.fireResistance.id, - 3000, - 0, - 80), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 3L))); + addItem( + tLastID = 122, + "Diabolo Sauce", + "As if the Devil made this Sauce", + SubTag.INVISIBLE, + new GT_FoodStat( + 2, + 0.1F, + EnumAction.drink, + ItemList.Bottle_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false, + Potion.confusion.id, + 3000, + 1, + 50, + Potion.fireResistance.id, + 3000, + 0, + 80), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 3L))); ItemList.Bottle_Diablo_Sauce.set( - addItem( - tLastID = 123, - "Diablo Sauce", - "Diablo always comes back!", - SubTag.INVISIBLE, - new GT_FoodStat( - 2, - 0.1F, - EnumAction.drink, - ItemList.Bottle_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false, - Potion.confusion.id, - 4000, - 1, - 70, - Potion.fireResistance.id, - 4000, - 0, - 90), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 4L))); + addItem( + tLastID = 123, + "Diablo Sauce", + "Diablo always comes back!", + SubTag.INVISIBLE, + new GT_FoodStat( + 2, + 0.1F, + EnumAction.drink, + ItemList.Bottle_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false, + Potion.confusion.id, + 4000, + 1, + 70, + Potion.fireResistance.id, + 4000, + 0, + 90), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 4L))); ItemList.Bottle_Snitches_Glitch_Sauce.set( - addItem( - tLastID = 124, - "Old Man Snitches glitched Diablo Sauce", - "[Missing No]", - SubTag.INVISIBLE, - new GT_FoodStat( - 2, - 0.1F, - EnumAction.drink, - ItemList.Bottle_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false, - Potion.confusion.id, - 9999, - 2, - 999, - Potion.fireResistance.id, - 9999, - 9, - 999), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 3L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 5L))); + addItem( + tLastID = 124, + "Old Man Snitches glitched Diablo Sauce", + "[Missing No]", + SubTag.INVISIBLE, + new GT_FoodStat( + 2, + 0.1F, + EnumAction.drink, + ItemList.Bottle_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false, + Potion.confusion.id, + 9999, + 2, + 999, + Potion.fireResistance.id, + 9999, + 9, + 999), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 3L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 5L))); ItemList.Bottle_Apple_Juice.set( - addItem( - tLastID = 125, - "Apple Juice", - "Made of the Apples from our best Oak Farms", - new GT_FoodStat( - 4, - 0.2F, - EnumAction.drink, - ItemList.Bottle_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false, - Potion.hunger.id, - 400, - 0, - 20), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L))); + addItem( + tLastID = 125, + "Apple Juice", + "Made of the Apples from our best Oak Farms", + new GT_FoodStat( + 4, + 0.2F, + EnumAction.drink, + ItemList.Bottle_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false, + Potion.hunger.id, + 400, + 0, + 20), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L))); ItemList.Bottle_Cider.set( - addItem( - tLastID = 126, - "Cider", - "If you have nothing better to do with your Apples", - new GT_FoodStat( - 4, - 0.2F, - EnumAction.drink, - ItemList.Bottle_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false, - Potion.confusion.id, - 400, - 0, - 60, - Potion.resistance.id, - 400, - 1, - 60, - Potion.poison.id, - 200, - 1, - 5), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 1L))); + addItem( + tLastID = 126, + "Cider", + "If you have nothing better to do with your Apples", + new GT_FoodStat( + 4, + 0.2F, + EnumAction.drink, + ItemList.Bottle_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false, + Potion.confusion.id, + 400, + 0, + 60, + Potion.resistance.id, + 400, + 1, + 60, + Potion.poison.id, + 200, + 1, + 5), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 1L))); ItemList.Bottle_Golden_Apple_Juice.set( - addItem( - tLastID = 127, - "Golden Apple Juice", - "A golden Apple in liquid form", - SubTag.INVISIBLE, - new GT_FoodStat( - 4, - 0.2F, - EnumAction.drink, - ItemList.Bottle_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false, - Potion.hunger.id, - 400, - 0, - 20, - Potion.field_76444_x.id, - 2400, - 0, - 100, - Potion.regeneration.id, - 100, - 1, - 100), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 1L))); + addItem( + tLastID = 127, + "Golden Apple Juice", + "A golden Apple in liquid form", + SubTag.INVISIBLE, + new GT_FoodStat( + 4, + 0.2F, + EnumAction.drink, + ItemList.Bottle_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false, + Potion.hunger.id, + 400, + 0, + 20, + Potion.field_76444_x.id, + 2400, + 0, + 100, + Potion.regeneration.id, + 100, + 1, + 100), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 1L))); ItemList.Bottle_Golden_Cider.set( - addItem( - tLastID = 128, - "Golden Cider", - "More Resistance, less Regeneration", - SubTag.INVISIBLE, - new GT_FoodStat( - 4, - 0.2F, - EnumAction.drink, - ItemList.Bottle_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false, - Potion.confusion.id, - 400, - 0, - 60, - Potion.field_76444_x.id, - 2400, - 1, - 95, - Potion.poison.id, - 200, - 1, - 5), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 1L))); + addItem( + tLastID = 128, + "Golden Cider", + "More Resistance, less Regeneration", + SubTag.INVISIBLE, + new GT_FoodStat( + 4, + 0.2F, + EnumAction.drink, + ItemList.Bottle_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false, + Potion.confusion.id, + 400, + 0, + 60, + Potion.field_76444_x.id, + 2400, + 1, + 95, + Potion.poison.id, + 200, + 1, + 5), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 1L))); ItemList.Bottle_Iduns_Apple_Juice.set( - addItem( - tLastID = 129, - "Idun's Apple Juice", - "So you got the Idea of using Notch Apples for a drink?", - SubTag.INVISIBLE, - new GT_FoodStat( - 4, - 0.2F, - EnumAction.drink, - ItemList.Bottle_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false, - Potion.regeneration.id, - 600, - 4, - 100, - Potion.field_76444_x.id, - 2400, - 0, - 100, - Potion.resistance.id, - 6000, - 0, - 100, - Potion.fireResistance.id, - 6000, - 0, - 100), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.NEBRISUM, 9L))); + addItem( + tLastID = 129, + "Idun's Apple Juice", + "So you got the Idea of using Notch Apples for a drink?", + SubTag.INVISIBLE, + new GT_FoodStat( + 4, + 0.2F, + EnumAction.drink, + ItemList.Bottle_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false, + Potion.regeneration.id, + 600, + 4, + 100, + Potion.field_76444_x.id, + 2400, + 0, + 100, + Potion.resistance.id, + 6000, + 0, + 100, + Potion.fireResistance.id, + 6000, + 0, + 100), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.NEBRISUM, 9L))); ItemList.Bottle_Notches_Brew.set( - addItem( - tLastID = 130, - "Notches Brew", - "This is just overpowered", - SubTag.INVISIBLE, - new GT_FoodStat( - 4, - 0.2F, - EnumAction.drink, - ItemList.Bottle_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false, - Potion.regeneration.id, - 700, - 4, - 95, - Potion.field_76444_x.id, - 3000, - 1, - 95, - Potion.resistance.id, - 7000, - 1, - 95, - Potion.fireResistance.id, - 7000, - 0, - 95, - Potion.harm.id, - 0, - 2, - 20), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.NEBRISUM, 9L))); + addItem( + tLastID = 130, + "Notches Brew", + "This is just overpowered", + SubTag.INVISIBLE, + new GT_FoodStat( + 4, + 0.2F, + EnumAction.drink, + ItemList.Bottle_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false, + Potion.regeneration.id, + 700, + 4, + 95, + Potion.field_76444_x.id, + 3000, + 1, + 95, + Potion.resistance.id, + 7000, + 1, + 95, + Potion.fireResistance.id, + 7000, + 0, + 95, + Potion.harm.id, + 0, + 2, + 20), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.NEBRISUM, 9L))); ItemList.Bottle_Lemon_Juice.set( - addItem( - tLastID = 131, - "Lemon Juice", - "Maybe adding Sugar will make it less sour", - new GT_FoodStat( - 2, - 0.4F, - EnumAction.drink, - ItemList.Bottle_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false, - Potion.digSpeed.id, - 1200, - 0, - 60), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PERFODIO, 1L))); + addItem( + tLastID = 131, + "Lemon Juice", + "Maybe adding Sugar will make it less sour", + new GT_FoodStat( + 2, + 0.4F, + EnumAction.drink, + ItemList.Bottle_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false, + Potion.digSpeed.id, + 1200, + 0, + 60), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PERFODIO, 1L))); ItemList.Bottle_Limoncello.set( - addItem( - tLastID = 132, - "Limoncello", - "An alcoholic Drink which tastes like Lemons", - new GT_FoodStat( - 2, - 0.4F, - EnumAction.drink, - ItemList.Bottle_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false, - Potion.digSpeed.id, - 1200, - 0, - 90, - Potion.poison.id, - 200, - 1, - 5), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PERFODIO, 1L))); + addItem( + tLastID = 132, + "Limoncello", + "An alcoholic Drink which tastes like Lemons", + new GT_FoodStat( + 2, + 0.4F, + EnumAction.drink, + ItemList.Bottle_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false, + Potion.digSpeed.id, + 1200, + 0, + 90, + Potion.poison.id, + 200, + 1, + 5), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PERFODIO, 1L))); ItemList.Bottle_Lemonade.set( - addItem( - tLastID = 133, - "Lemonade", - "Cold and refreshing Lemonade", - new GT_FoodStat( - 4, - 0.3F, - EnumAction.drink, - ItemList.Bottle_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false, - Potion.digSpeed.id, - 900, - 1, - 90), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PERFODIO, 1L))); + addItem( + tLastID = 133, + "Lemonade", + "Cold and refreshing Lemonade", + new GT_FoodStat( + 4, + 0.3F, + EnumAction.drink, + ItemList.Bottle_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false, + Potion.digSpeed.id, + 900, + 1, + 90), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PERFODIO, 1L))); ItemList.Bottle_Alcopops.set( - addItem( - tLastID = 134, - "Alcopops", - "Don't let your Children drink this junk!", - new GT_FoodStat( - 2, - 0.2F, - EnumAction.drink, - ItemList.Bottle_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false, - Potion.digSpeed.id, - 900, - 1, - 90, - Potion.poison.id, - 300, - 2, - 20), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VINCULUM, 1L))); + addItem( + tLastID = 134, + "Alcopops", + "Don't let your Children drink this junk!", + new GT_FoodStat( + 2, + 0.2F, + EnumAction.drink, + ItemList.Bottle_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false, + Potion.digSpeed.id, + 900, + 1, + 90, + Potion.poison.id, + 300, + 2, + 20), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VINCULUM, 1L))); ItemList.Bottle_Cave_Johnsons_Grenade_Juice.set( - addItem( - tLastID = 135, - "Cave Johnson's Grenade Juice", - "When life gives you Lemons, make Life take them Lemons back!", - SubTag.INVISIBLE, - new GT_FoodStat( - 0, - 0.0F, - EnumAction.drink, - ItemList.Bottle_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false).setExplosive(), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MORTUUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PERDITIO, 1L))); + addItem( + tLastID = 135, + "Cave Johnson's Grenade Juice", + "When life gives you Lemons, make Life take them Lemons back!", + SubTag.INVISIBLE, + new GT_FoodStat( + 0, + 0.0F, + EnumAction.drink, + ItemList.Bottle_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false).setExplosive(), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MORTUUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PERDITIO, 1L))); ItemList.Bottle_Milk.set( - addItem( - tLastID = 136, - "Milk", - "Got Milk?", - OrePrefixes.bottle.get(Materials.Milk), - new GT_FoodStat( - 0, - 0.0F, - EnumAction.drink, - ItemList.Bottle_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false).setMilk(), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 1L))); + addItem( + tLastID = 136, + "Milk", + "Got Milk?", + OrePrefixes.bottle.get(Materials.Milk), + new GT_FoodStat( + 0, + 0.0F, + EnumAction.drink, + ItemList.Bottle_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false).setMilk(), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 1L))); ItemList.Bottle_Holy_Water.set( - addItem( - tLastID = 137, - "Holy Water", - "May the holy Planks be with you", - OrePrefixes.bottle.get(Materials.HolyWater), - new GT_FoodStat( - 0, - 0.0F, - EnumAction.drink, - ItemList.Bottle_Empty.get(1L), - GregTech_API.sDrinksAlwaysDrinkable, - false, - false, - Potion.poison.id, - 100, - 1, - 100).setMilk(), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AURAM, 1L))); + addItem( + tLastID = 137, + "Holy Water", + "May the holy Planks be with you", + OrePrefixes.bottle.get(Materials.HolyWater), + new GT_FoodStat( + 0, + 0.0F, + EnumAction.drink, + ItemList.Bottle_Empty.get(1L), + GregTech_API.sDrinksAlwaysDrinkable, + false, + false, + Potion.poison.id, + 100, + 1, + 100).setMilk(), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AURAM, 1L))); ItemList.Food_Potato_On_Stick.set( - addItem( - tLastID = 200, - "Potato on a Stick", - "Totally looks like a Crab Claw", - new GT_FoodStat(1, 0.3F, EnumAction.eat, new ItemStack(Items.stick, 1), false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); + addItem( + tLastID = 200, + "Potato on a Stick", + "Totally looks like a Crab Claw", + new GT_FoodStat(1, 0.3F, EnumAction.eat, new ItemStack(Items.stick, 1), false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); ItemList.Food_Potato_On_Stick_Roasted.set( - addItem( - tLastID = 201, - "Roasted Potato on a Stick", - "Still looks like a Crab Claw", - new GT_FoodStat(6, 0.6F, EnumAction.eat, new ItemStack(Items.stick, 1), false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); + addItem( + tLastID = 201, + "Roasted Potato on a Stick", + "Still looks like a Crab Claw", + new GT_FoodStat(6, 0.6F, EnumAction.eat, new ItemStack(Items.stick, 1), false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); ItemList.Food_Raw_Fries.set( - addItem( - tLastID = 202, - "Potato Strips", - "It's Potato in Stripe Form", - new GT_FoodStat(1, 0.3F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L))); + addItem( + tLastID = 202, + "Potato Strips", + "It's Potato in Stripe Form", + new GT_FoodStat(1, 0.3F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L))); setFluidContainerStats(32000 + tLastID, 0L, 16L); ItemList.Food_Fries.set( - addItem( - tLastID = 203, - "Fries", - "Not to confuse with Fry the Delivery Boy", - new GT_FoodStat(7, 0.5F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); + addItem( + tLastID = 203, + "Fries", + "Not to confuse with Fry the Delivery Boy", + new GT_FoodStat(7, 0.5F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); setFluidContainerStats(32000 + tLastID, 0L, 16L); ItemList.Food_Packaged_Fries.set( - addItem( - tLastID = 204, - "Fries", - "Ketchup not included", - new GT_FoodStat( - 7, - 0.5F, - EnumAction.eat, - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Paper, 1L), - false, - true, - false), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); + addItem( + tLastID = 204, + "Fries", + "Ketchup not included", + new GT_FoodStat( + 7, + 0.5F, + EnumAction.eat, + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Paper, 1L), + false, + true, + false), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); ItemList.Food_Raw_PotatoChips.set( - addItem( - tLastID = 205, - "Potato Chips (Raw)", - "Just like a Potato", - new GT_FoodStat(1, 0.3F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L))); + addItem( + tLastID = 205, + "Potato Chips (Raw)", + "Just like a Potato", + new GT_FoodStat(1, 0.3F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L))); setFluidContainerStats(32000 + tLastID, 0L, 16L); ItemList.Food_PotatoChips.set( - addItem( - tLastID = 206, - "Potato Chips", - "Crunchy", - new GT_FoodStat(7, 0.5F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); + addItem( + tLastID = 206, + "Potato Chips", + "Crunchy", + new GT_FoodStat(7, 0.5F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); setFluidContainerStats(32000 + tLastID, 0L, 16L); ItemList.Food_ChiliChips.set( - addItem( - tLastID = 207, - "Chili Chips", - "Spicy", - new GT_FoodStat(7, 0.6F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); + addItem( + tLastID = 207, + "Chili Chips", + "Spicy", + new GT_FoodStat(7, 0.6F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); setFluidContainerStats(32000 + tLastID, 0L, 16L); ItemList.Food_Packaged_PotatoChips.set( - addItem( - tLastID = 208, - "Bag of Potato Chips", - "Full of delicious Air", - new GT_FoodStat( - 7, - 0.5F, - EnumAction.eat, - GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Aluminium, 1L), - false, - true, - false), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); + addItem( + tLastID = 208, + "Bag of Potato Chips", + "Full of delicious Air", + new GT_FoodStat( + 7, + 0.5F, + EnumAction.eat, + GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Aluminium, 1L), + false, + true, + false), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); ItemList.Food_Packaged_ChiliChips.set( - addItem( - tLastID = 209, - "Bag of Chili Chips", - "Stop making noises Baj!", - new GT_FoodStat( - 7, - 0.6F, - EnumAction.eat, - GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Aluminium, 1L), - false, - true, - false), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); + addItem( + tLastID = 209, + "Bag of Chili Chips", + "Stop making noises Baj!", + new GT_FoodStat( + 7, + 0.6F, + EnumAction.eat, + GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Aluminium, 1L), + false, + true, + false), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); ItemList.Food_Chum.set( - addItem( - tLastID = 210, - "Chum", - "Chum is Fum!", - new GT_FoodStat( - 5, - 0.2F, - EnumAction.eat, - null, - true, - false, - true, - Potion.hunger.id, - 1000, - 4, - 100, - Potion.confusion.id, - 300, - 1, - 80), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); + addItem( + tLastID = 210, + "Chum", + "Chum is Fum!", + new GT_FoodStat( + 5, + 0.2F, + EnumAction.eat, + null, + true, + false, + true, + Potion.hunger.id, + 1000, + 4, + 100, + Potion.confusion.id, + 300, + 1, + 80), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); ItemList.Food_Chum_On_Stick.set( - addItem( - tLastID = 211, - "Chum on a Stick", - "Don't forget to try our Chum-balaya", - new GT_FoodStat( - 5, - 0.2F, - EnumAction.eat, - new ItemStack(Items.stick, 1), - true, - false, - true, - Potion.hunger.id, - 1000, - 4, - 100, - Potion.confusion.id, - 300, - 1, - 80), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); + addItem( + tLastID = 211, + "Chum on a Stick", + "Don't forget to try our Chum-balaya", + new GT_FoodStat( + 5, + 0.2F, + EnumAction.eat, + new ItemStack(Items.stick, 1), + true, + false, + true, + Potion.hunger.id, + 1000, + 4, + 100, + Potion.confusion.id, + 300, + 1, + 80), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); ItemList.Food_Dough_Sugar.set( - addItem( - tLastID = 212, - "Sugary Dough", - "Don't eat the Dough before it is baken", - new GT_FoodStat(1, 0.1F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L))); + addItem( + tLastID = 212, + "Sugary Dough", + "Don't eat the Dough before it is baken", + new GT_FoodStat(1, 0.1F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L))); ItemList.Food_Dough_Chocolate.set( - addItem( - tLastID = 213, - "Chocolate Dough", - "I said don't eat the Dough!", - new GT_FoodStat(1, 0.1F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L))); + addItem( + tLastID = 213, + "Chocolate Dough", + "I said don't eat the Dough!", + new GT_FoodStat(1, 0.1F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L))); ItemList.Food_Raw_Cookie.set( - addItem( - tLastID = 214, - "Cookie shaped Dough", - "For baking Cookies", - new GT_FoodStat(1, 0.1F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L))); + addItem( + tLastID = 214, + "Cookie shaped Dough", + "For baking Cookies", + new GT_FoodStat(1, 0.1F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L))); ItemList.Food_Sliced_Buns.set( - addItem( - tLastID = 220, - "Buns", - "Pre Sliced", - new GT_FoodStat(3, 0.5F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); + addItem( + tLastID = 220, + "Buns", + "Pre Sliced", + new GT_FoodStat(3, 0.5F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); ItemList.Food_Burger_Veggie.set( - addItem( - tLastID = 221, - "Veggieburger", - "No matter how you call this, this is NOT a Burger!", - new GT_FoodStat(3, 0.5F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); + addItem( + tLastID = 221, + "Veggieburger", + "No matter how you call this, this is NOT a Burger!", + new GT_FoodStat(3, 0.5F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); ItemList.Food_Burger_Cheese.set( - addItem( - tLastID = 222, - "Cheeseburger", - "Cheesy!", - new GT_FoodStat(3, 0.5F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), - new ItemData(Materials.Cheese, 907200L))); + addItem( + tLastID = 222, + "Cheeseburger", + "Cheesy!", + new GT_FoodStat(3, 0.5F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), + new ItemData(Materials.Cheese, 907200L))); ItemList.Food_Burger_Meat.set( - addItem( - tLastID = 223, - "Hamburger", - "The Mc Burger Queen Burger", - new GT_FoodStat(3, 0.5F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.CORPUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); + addItem( + tLastID = 223, + "Hamburger", + "The Mc Burger Queen Burger", + new GT_FoodStat(3, 0.5F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.CORPUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); ItemList.Food_Burger_Chum.set( - addItem( - tLastID = 224, - "Chumburger", - "Fum is Chum!", - new GT_FoodStat( - 5, - 0.2F, - EnumAction.eat, - null, - true, - false, - true, - Potion.hunger.id, - 1000, - 4, - 100, - Potion.confusion.id, - 300, - 1, - 80), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); + addItem( + tLastID = 224, + "Chumburger", + "Fum is Chum!", + new GT_FoodStat( + 5, + 0.2F, + EnumAction.eat, + null, + true, + false, + true, + Potion.hunger.id, + 1000, + 4, + 100, + Potion.confusion.id, + 300, + 1, + 80), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); ItemList.Food_Sliced_Breads.set( - addItem( - tLastID = 230, - "Breads", - "Pre Sliced", - new GT_FoodStat(5, 0.6F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); + addItem( + tLastID = 230, + "Breads", + "Pre Sliced", + new GT_FoodStat(5, 0.6F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); ItemList.Food_Sandwich_Veggie.set( - addItem( - tLastID = 231, - "Veggie Sandwich", - "Meatless", - new GT_FoodStat(7, 0.6F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); + addItem( + tLastID = 231, + "Veggie Sandwich", + "Meatless", + new GT_FoodStat(7, 0.6F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); setFluidContainerStats(32000 + tLastID, 0L, 32L); ItemList.Food_Sandwich_Cheese.set( - addItem( - tLastID = 232, - "Cheese Sandwich", - "Say Cheese!", - new GT_FoodStat(7, 0.6F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); + addItem( + tLastID = 232, + "Cheese Sandwich", + "Say Cheese!", + new GT_FoodStat(7, 0.6F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); setFluidContainerStats(32000 + tLastID, 0L, 32L); ItemList.Food_Sandwich_Bacon.set( - addItem( - tLastID = 233, - "Bacon Sandwich", - "The best Sandwich ever!", - new GT_FoodStat(10, 0.8F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.CORPUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); + addItem( + tLastID = 233, + "Bacon Sandwich", + "The best Sandwich ever!", + new GT_FoodStat(10, 0.8F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.CORPUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); setFluidContainerStats(32000 + tLastID, 0L, 32L); ItemList.Food_Sandwich_Steak.set( - addItem( - tLastID = 234, - "Steak Sandwich", - "Not a 'Steam Sandwich'", - new GT_FoodStat(10, 0.8F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.CORPUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); + addItem( + tLastID = 234, + "Steak Sandwich", + "Not a 'Steam Sandwich'", + new GT_FoodStat(10, 0.8F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.CORPUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); setFluidContainerStats(32000 + tLastID, 0L, 32L); ItemList.Food_Sliced_Baguettes.set( - addItem( - tLastID = 240, - "Baguettes", - "Pre Sliced", - new GT_FoodStat(8, 0.5F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); + addItem( + tLastID = 240, + "Baguettes", + "Pre Sliced", + new GT_FoodStat(8, 0.5F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); ItemList.Food_Large_Sandwich_Veggie.set( - addItem( - tLastID = 241, - "Large Veggie Sandwich", - "Just not worth it", - new GT_FoodStat(15, 0.8F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 3L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); + addItem( + tLastID = 241, + "Large Veggie Sandwich", + "Just not worth it", + new GT_FoodStat(15, 0.8F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 3L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); setFluidContainerStats(32000 + tLastID, 0L, 16L); ItemList.Food_Large_Sandwich_Cheese.set( - addItem( - tLastID = 242, - "Large Cheese Sandwich", - "I need another cheesy tooltip for this", - new GT_FoodStat(15, 0.8F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 3L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); + addItem( + tLastID = 242, + "Large Cheese Sandwich", + "I need another cheesy tooltip for this", + new GT_FoodStat(15, 0.8F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 3L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); setFluidContainerStats(32000 + tLastID, 0L, 16L); ItemList.Food_Large_Sandwich_Bacon.set( - addItem( - tLastID = 243, - "Large Bacon Sandwich", - "For Men! (and manly Women)", - new GT_FoodStat(20, 1.0F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.CORPUS, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); + addItem( + tLastID = 243, + "Large Bacon Sandwich", + "For Men! (and manly Women)", + new GT_FoodStat(20, 1.0F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.CORPUS, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); setFluidContainerStats(32000 + tLastID, 0L, 16L); ItemList.Food_Large_Sandwich_Steak.set( - addItem( - tLastID = 244, - "Large Steak Sandwich", - "Yes, I once accidentially called it 'Steam Sandwich'", - new GT_FoodStat(20, 1.0F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.CORPUS, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); + addItem( + tLastID = 244, + "Large Steak Sandwich", + "Yes, I once accidentially called it 'Steam Sandwich'", + new GT_FoodStat(20, 1.0F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.CORPUS, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); setFluidContainerStats(32000 + tLastID, 0L, 16L); ItemList.Food_Raw_Pizza_Veggie.set( - addItem( - tLastID = 250, - "Raw Veggie Pizza", - "Into the Oven with it!", - new GT_FoodStat(1, 0.2F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); + addItem( + tLastID = 250, + "Raw Veggie Pizza", + "Into the Oven with it!", + new GT_FoodStat(1, 0.2F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); ItemList.Food_Raw_Pizza_Cheese.set( - addItem( - tLastID = 251, - "Raw Cheese Pizza", - "Into the Oven with it!", - new GT_FoodStat(2, 0.2F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); + addItem( + tLastID = 251, + "Raw Cheese Pizza", + "Into the Oven with it!", + new GT_FoodStat(2, 0.2F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); ItemList.Food_Raw_Pizza_Meat.set( - addItem( - tLastID = 252, - "Raw Mince Meat Pizza", - "Into the Oven with it!", - new GT_FoodStat(2, 0.2F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.CORPUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); + addItem( + tLastID = 252, + "Raw Mince Meat Pizza", + "Into the Oven with it!", + new GT_FoodStat(2, 0.2F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.CORPUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); ItemList.Food_Baked_Pizza_Veggie.set( - addItem( - tLastID = 260, - "Veggie Pizza", - "The next they want is Gluten Free Pizzas...", - new GT_FoodStat(3, 0.3F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); + addItem( + tLastID = 260, + "Veggie Pizza", + "The next they want is Gluten Free Pizzas...", + new GT_FoodStat(3, 0.3F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); ItemList.Food_Baked_Pizza_Cheese.set( - addItem( - tLastID = 261, - "Cheese Pizza", - "Pizza Magarita", - new GT_FoodStat(4, 0.4F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); + addItem( + tLastID = 261, + "Cheese Pizza", + "Pizza Magarita", + new GT_FoodStat(4, 0.4F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); ItemList.Food_Baked_Pizza_Meat.set( - addItem( - tLastID = 262, - "Mince Meat Pizza", - "Emo Pizza, it cuts itself!", - new GT_FoodStat(5, 0.5F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.CORPUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); + addItem( + tLastID = 262, + "Mince Meat Pizza", + "Emo Pizza, it cuts itself!", + new GT_FoodStat(5, 0.5F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.CORPUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); ItemList.Dye_Indigo.set( - addItem( - tLastID = 410, - "Indigo Dye", - "Blue Dye", - new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 1L), - Dyes.dyeBlue)); + addItem( + tLastID = 410, + "Indigo Dye", + "Blue Dye", + new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 1L), + Dyes.dyeBlue)); for (byte i = 0; i < 16; i = (byte) (i + 1)) { ItemList.DYE_ONLY_ITEMS[i].set( - addItem( - tLastID = 414 + i, - Dyes.get(i).mName + " Dye", - "", - Dyes.get(i) - .name(), - new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 1L))); + addItem( + tLastID = 414 + i, + Dyes.get(i).mName + " Dye", + "", + Dyes.get(i) + .name(), + new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 1L))); } - ItemList.Plank_Oak.set( - addItem(tLastID = 470, "Oak Plank", aTextCover, new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); + ItemList.Plank_Oak + .set(addItem(tLastID = 470, "Oak Plank", aTextCover, new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); setBurnValue(32000 + tLastID, 75); ItemList.Plank_Spruce.set( - addItem( - tLastID = 471, - "Spruce Plank", - aTextCover, - new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); + addItem(tLastID = 471, "Spruce Plank", aTextCover, new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); setBurnValue(32000 + tLastID, 75); ItemList.Plank_Birch.set( - addItem(tLastID = 472, "Birch Plank", aTextCover, new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); + addItem(tLastID = 472, "Birch Plank", aTextCover, new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); setBurnValue(32000 + tLastID, 75); ItemList.Plank_Jungle.set( - addItem( - tLastID = 473, - "Jungle Plank", - aTextCover, - new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); + addItem(tLastID = 473, "Jungle Plank", aTextCover, new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); setBurnValue(32000 + tLastID, 75); ItemList.Plank_Acacia.set( - addItem( - tLastID = 474, - "Acacia Plank", - aTextCover, - new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); + addItem(tLastID = 474, "Acacia Plank", aTextCover, new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); setBurnValue(32000 + tLastID, 75); ItemList.Plank_DarkOak.set( - addItem( - tLastID = 475, - "Dark Oak Plank", - aTextCover, - new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); + addItem(tLastID = 475, "Dark Oak Plank", aTextCover, new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); setBurnValue(32000 + tLastID, 75); ItemList.Plank_Larch.set( - addItem(tLastID = 476, "Larch Plank", aTextCover, new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); + addItem(tLastID = 476, "Larch Plank", aTextCover, new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); setBurnValue(32000 + tLastID, 75); - ItemList.Plank_Teak.set( - addItem(tLastID = 477, "Teak Plank", aTextCover, new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); + ItemList.Plank_Teak + .set(addItem(tLastID = 477, "Teak Plank", aTextCover, new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); setBurnValue(32000 + tLastID, 75); ItemList.Plank_Acacia_Green.set( - addItem( - tLastID = 478, - "Green Acacia Plank", - aTextCover, - new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); + addItem( + tLastID = 478, + "Green Acacia Plank", + aTextCover, + new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); setBurnValue(32000 + tLastID, 75); - ItemList.Plank_Lime.set( - addItem(tLastID = 479, "Lime Plank", aTextCover, new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); + ItemList.Plank_Lime + .set(addItem(tLastID = 479, "Lime Plank", aTextCover, new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); setBurnValue(32000 + tLastID, 75); ItemList.Plank_Chestnut.set( - addItem( - tLastID = 480, - "Chestnut Plank", - aTextCover, - new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); + addItem(tLastID = 480, "Chestnut Plank", aTextCover, new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); setBurnValue(32000 + tLastID, 75); ItemList.Plank_Wenge.set( - addItem(tLastID = 481, "Wenge Plank", aTextCover, new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); + addItem(tLastID = 481, "Wenge Plank", aTextCover, new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); setBurnValue(32000 + tLastID, 75); ItemList.Plank_Baobab.set( - addItem( - tLastID = 482, - "Baobab Plank", - aTextCover, - new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); + addItem(tLastID = 482, "Baobab Plank", aTextCover, new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); setBurnValue(32000 + tLastID, 75); ItemList.Plank_Sequoia.set( - addItem( - tLastID = 483, - "Sequoia Plank", - aTextCover, - new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); + addItem(tLastID = 483, "Sequoia Plank", aTextCover, new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); setBurnValue(32000 + tLastID, 75); ItemList.Plank_Kapok.set( - addItem(tLastID = 484, "Kapok Plank", aTextCover, new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); + addItem(tLastID = 484, "Kapok Plank", aTextCover, new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); setBurnValue(32000 + tLastID, 75); ItemList.Plank_Ebony.set( - addItem(tLastID = 485, "Ebony Plank", aTextCover, new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); + addItem(tLastID = 485, "Ebony Plank", aTextCover, new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); setBurnValue(32000 + tLastID, 75); ItemList.Plank_Mahagony.set( - addItem( - tLastID = 486, - "Mahagony Plank", - aTextCover, - new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); + addItem(tLastID = 486, "Mahagony Plank", aTextCover, new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); setBurnValue(32000 + tLastID, 75); ItemList.Plank_Balsa.set( - addItem(tLastID = 487, "Balsa Plank", aTextCover, new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); + addItem(tLastID = 487, "Balsa Plank", aTextCover, new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); setBurnValue(32000 + tLastID, 75); ItemList.Plank_Willow.set( - addItem( - tLastID = 488, - "Willow Plank", - aTextCover, - new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); + addItem(tLastID = 488, "Willow Plank", aTextCover, new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); setBurnValue(32000 + tLastID, 75); ItemList.Plank_Walnut.set( - addItem( - tLastID = 489, - "Walnut Plank", - aTextCover, - new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); + addItem(tLastID = 489, "Walnut Plank", aTextCover, new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); setBurnValue(32000 + tLastID, 75); ItemList.Plank_Greenheart.set( - addItem( - tLastID = 490, - "Greenheart Plank", - aTextCover, - new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); + addItem( + tLastID = 490, + "Greenheart Plank", + aTextCover, + new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); setBurnValue(32000 + tLastID, 75); ItemList.Plank_Cherry.set( - addItem( - tLastID = 491, - "Cherry Plank", - aTextCover, - new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); + addItem(tLastID = 491, "Cherry Plank", aTextCover, new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); setBurnValue(32000 + tLastID, 75); ItemList.Plank_Mahoe.set( - addItem(tLastID = 492, "Mahoe Plank", aTextCover, new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); + addItem(tLastID = 492, "Mahoe Plank", aTextCover, new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); setBurnValue(32000 + tLastID, 75); ItemList.Plank_Poplar.set( - addItem( - tLastID = 493, - "Poplar Plank", - aTextCover, - new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); + addItem(tLastID = 493, "Poplar Plank", aTextCover, new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); setBurnValue(32000 + tLastID, 75); - ItemList.Plank_Palm.set( - addItem(tLastID = 494, "Palm Plank", aTextCover, new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); + ItemList.Plank_Palm + .set(addItem(tLastID = 494, "Palm Plank", aTextCover, new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); setBurnValue(32000 + tLastID, 75); ItemList.Plank_Papaya.set( - addItem( - tLastID = 495, - "Papaya Plank", - aTextCover, - new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); + addItem(tLastID = 495, "Papaya Plank", aTextCover, new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); setBurnValue(32000 + tLastID, 75); - ItemList.Plank_Pine.set( - addItem(tLastID = 496, "Pine Plank", aTextCover, new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); + ItemList.Plank_Pine + .set(addItem(tLastID = 496, "Pine Plank", aTextCover, new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); setBurnValue(32000 + tLastID, 75); - ItemList.Plank_Plum.set( - addItem(tLastID = 497, "Plum Plank", aTextCover, new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); + ItemList.Plank_Plum + .set(addItem(tLastID = 497, "Plum Plank", aTextCover, new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); setBurnValue(32000 + tLastID, 75); ItemList.Plank_Maple.set( - addItem(tLastID = 498, "Maple Plank", aTextCover, new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); + addItem(tLastID = 498, "Maple Plank", aTextCover, new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); setBurnValue(32000 + tLastID, 75); ItemList.Plank_Citrus.set( - addItem( - tLastID = 499, - "Citrus Plank", - aTextCover, - new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); + addItem(tLastID = 499, "Citrus Plank", aTextCover, new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); setBurnValue(32000 + tLastID, 75); ItemList.SFMixture.set(addItem(tLastID = 270, "Super Fuel Binder", "Raw Material")); ItemList.MSFMixture.set(addItem(tLastID = 271, "Magic Super Fuel Binder", "Raw Material")); GT_ModHandler.addCraftingRecipe( - ItemList.Plank_Oak.get(2L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "s ", " P", 'P', new ItemStack(Blocks.wooden_slab, 1, 0) }); + ItemList.Plank_Oak.get(2L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "s ", " P", 'P', new ItemStack(Blocks.wooden_slab, 1, 0) }); GT_ModHandler.addCraftingRecipe( - ItemList.Plank_Spruce.get(2L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "s ", " P", 'P', new ItemStack(Blocks.wooden_slab, 1, 1) }); + ItemList.Plank_Spruce.get(2L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "s ", " P", 'P', new ItemStack(Blocks.wooden_slab, 1, 1) }); GT_ModHandler.addCraftingRecipe( - ItemList.Plank_Birch.get(2L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "s ", " P", 'P', new ItemStack(Blocks.wooden_slab, 1, 2) }); + ItemList.Plank_Birch.get(2L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "s ", " P", 'P', new ItemStack(Blocks.wooden_slab, 1, 2) }); GT_ModHandler.addCraftingRecipe( - ItemList.Plank_Jungle.get(2L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "s ", " P", 'P', new ItemStack(Blocks.wooden_slab, 1, 3) }); + ItemList.Plank_Jungle.get(2L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "s ", " P", 'P', new ItemStack(Blocks.wooden_slab, 1, 3) }); GT_ModHandler.addCraftingRecipe( - ItemList.Plank_Acacia.get(2L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "s ", " P", 'P', new ItemStack(Blocks.wooden_slab, 1, 4) }); + ItemList.Plank_Acacia.get(2L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "s ", " P", 'P', new ItemStack(Blocks.wooden_slab, 1, 4) }); GT_ModHandler.addCraftingRecipe( - ItemList.Plank_DarkOak.get(2L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "s ", " P", 'P', new ItemStack(Blocks.wooden_slab, 1, 5) }); + ItemList.Plank_DarkOak.get(2L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "s ", " P", 'P', new ItemStack(Blocks.wooden_slab, 1, 5) }); GT_ModHandler.addCraftingRecipe( - ItemList.Plank_Larch.get(2L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs1", 1L, 0) }); + ItemList.Plank_Larch.get(2L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs1", 1L, 0) }); GT_ModHandler.addCraftingRecipe( - ItemList.Plank_Teak.get(2L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs1", 1L, 1) }); + ItemList.Plank_Teak.get(2L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs1", 1L, 1) }); GT_ModHandler.addCraftingRecipe( - ItemList.Plank_Acacia_Green.get(2L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs1", 1L, 2) }); + ItemList.Plank_Acacia_Green.get(2L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs1", 1L, 2) }); GT_ModHandler.addCraftingRecipe( - ItemList.Plank_Lime.get(2L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs1", 1L, 3) }); + ItemList.Plank_Lime.get(2L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs1", 1L, 3) }); GT_ModHandler.addCraftingRecipe( - ItemList.Plank_Chestnut.get(2L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs1", 1L, 4) }); + ItemList.Plank_Chestnut.get(2L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs1", 1L, 4) }); GT_ModHandler.addCraftingRecipe( - ItemList.Plank_Wenge.get(2L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs1", 1L, 5) }); + ItemList.Plank_Wenge.get(2L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs1", 1L, 5) }); GT_ModHandler.addCraftingRecipe( - ItemList.Plank_Baobab.get(2L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs1", 1L, 6) }); + ItemList.Plank_Baobab.get(2L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs1", 1L, 6) }); GT_ModHandler.addCraftingRecipe( - ItemList.Plank_Sequoia.get(2L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs1", 1L, 7) }); + ItemList.Plank_Sequoia.get(2L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs1", 1L, 7) }); GT_ModHandler.addCraftingRecipe( - ItemList.Plank_Kapok.get(2L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs2", 1L, 0) }); + ItemList.Plank_Kapok.get(2L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs2", 1L, 0) }); GT_ModHandler.addCraftingRecipe( - ItemList.Plank_Ebony.get(2L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs2", 1L, 1) }); + ItemList.Plank_Ebony.get(2L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs2", 1L, 1) }); GT_ModHandler.addCraftingRecipe( - ItemList.Plank_Mahagony.get(2L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs2", 1L, 2) }); + ItemList.Plank_Mahagony.get(2L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs2", 1L, 2) }); GT_ModHandler.addCraftingRecipe( - ItemList.Plank_Balsa.get(2L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs2", 1L, 3) }); + ItemList.Plank_Balsa.get(2L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs2", 1L, 3) }); GT_ModHandler.addCraftingRecipe( - ItemList.Plank_Willow.get(2L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs2", 1L, 4) }); + ItemList.Plank_Willow.get(2L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs2", 1L, 4) }); GT_ModHandler.addCraftingRecipe( - ItemList.Plank_Walnut.get(2L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs2", 1L, 5) }); + ItemList.Plank_Walnut.get(2L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs2", 1L, 5) }); GT_ModHandler.addCraftingRecipe( - ItemList.Plank_Greenheart.get(2L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs2", 1L, 6) }); + ItemList.Plank_Greenheart.get(2L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs2", 1L, 6) }); GT_ModHandler.addCraftingRecipe( - ItemList.Plank_Cherry.get(2L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs2", 1L, 7) }); + ItemList.Plank_Cherry.get(2L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs2", 1L, 7) }); GT_ModHandler.addCraftingRecipe( - ItemList.Plank_Mahoe.get(2L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs3", 1L, 0) }); + ItemList.Plank_Mahoe.get(2L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs3", 1L, 0) }); GT_ModHandler.addCraftingRecipe( - ItemList.Plank_Poplar.get(2L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs3", 1L, 1) }); + ItemList.Plank_Poplar.get(2L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs3", 1L, 1) }); GT_ModHandler.addCraftingRecipe( - ItemList.Plank_Palm.get(2L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs3", 1L, 2) }); + ItemList.Plank_Palm.get(2L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs3", 1L, 2) }); GT_ModHandler.addCraftingRecipe( - ItemList.Plank_Papaya.get(2L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs3", 1L, 3) }); + ItemList.Plank_Papaya.get(2L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs3", 1L, 3) }); GT_ModHandler.addCraftingRecipe( - ItemList.Plank_Pine.get(2L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs3", 1L, 4) }); + ItemList.Plank_Pine.get(2L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs3", 1L, 4) }); GT_ModHandler.addCraftingRecipe( - ItemList.Plank_Plum.get(2L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs3", 1L, 5) }); + ItemList.Plank_Plum.get(2L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs3", 1L, 5) }); GT_ModHandler.addCraftingRecipe( - ItemList.Plank_Maple.get(2L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs3", 1L, 6) }); + ItemList.Plank_Maple.get(2L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs3", 1L, 6) }); GT_ModHandler.addCraftingRecipe( - ItemList.Plank_Citrus.get(2L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs3", 1L, 7) }); + ItemList.Plank_Citrus.get(2L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "s ", " P", 'P', GT_ModHandler.getModItem(Forestry.ID, "slabs3", 1L, 7) }); GregTech_API.registerCover(ItemList.Plank_Oak.get(1L), TextureFactory.of(Blocks.planks, 0), null); GregTech_API.registerCover(ItemList.Plank_Spruce.get(1L), TextureFactory.of(Blocks.planks, 1), null); @@ -1969,410 +1913,290 @@ public class GT_MetaGenerated_Item_02 extends GT_MetaGenerated_Item_X32 { GregTech_API.registerCover(ItemList.Plank_Acacia.get(1L), TextureFactory.of(Blocks.planks, 4), null); GregTech_API.registerCover(ItemList.Plank_DarkOak.get(1L), TextureFactory.of(Blocks.planks, 5), null); GregTech_API.registerCover( - ItemList.Plank_Larch.get(1L), - TextureFactory.of( - GT_Utility.getBlockFromStack( - GT_ModHandler.getModItem( - Forestry.ID, - "planks", - 1L, - 0, - new ItemStack(Blocks.planks, 1, 0))), - 0), - null); + ItemList.Plank_Larch.get(1L), + TextureFactory.of( + GT_Utility.getBlockFromStack( + GT_ModHandler.getModItem(Forestry.ID, "planks", 1L, 0, new ItemStack(Blocks.planks, 1, 0))), + 0), + null); GregTech_API.registerCover( - ItemList.Plank_Teak.get(1L), - TextureFactory.of( - GT_Utility.getBlockFromStack( - GT_ModHandler.getModItem( - Forestry.ID, - "planks", - 1L, - 1, - new ItemStack(Blocks.planks, 1, 0))), - 1), - null); + ItemList.Plank_Teak.get(1L), + TextureFactory.of( + GT_Utility.getBlockFromStack( + GT_ModHandler.getModItem(Forestry.ID, "planks", 1L, 1, new ItemStack(Blocks.planks, 1, 0))), + 1), + null); GregTech_API.registerCover( - ItemList.Plank_Acacia_Green.get(1L), - TextureFactory.of( - GT_Utility.getBlockFromStack( - GT_ModHandler.getModItem( - Forestry.ID, - "planks", - 1L, - 2, - new ItemStack(Blocks.planks, 1, 0))), - 2), - null); + ItemList.Plank_Acacia_Green.get(1L), + TextureFactory.of( + GT_Utility.getBlockFromStack( + GT_ModHandler.getModItem(Forestry.ID, "planks", 1L, 2, new ItemStack(Blocks.planks, 1, 0))), + 2), + null); GregTech_API.registerCover( - ItemList.Plank_Lime.get(1L), - TextureFactory.of( - GT_Utility.getBlockFromStack( - GT_ModHandler.getModItem( - Forestry.ID, - "planks", - 1L, - 3, - new ItemStack(Blocks.planks, 1, 0))), - 3), - null); + ItemList.Plank_Lime.get(1L), + TextureFactory.of( + GT_Utility.getBlockFromStack( + GT_ModHandler.getModItem(Forestry.ID, "planks", 1L, 3, new ItemStack(Blocks.planks, 1, 0))), + 3), + null); GregTech_API.registerCover( - ItemList.Plank_Chestnut.get(1L), - TextureFactory.of( - GT_Utility.getBlockFromStack( - GT_ModHandler.getModItem( - Forestry.ID, - "planks", - 1L, - 4, - new ItemStack(Blocks.planks, 1, 0))), - 4), - null); + ItemList.Plank_Chestnut.get(1L), + TextureFactory.of( + GT_Utility.getBlockFromStack( + GT_ModHandler.getModItem(Forestry.ID, "planks", 1L, 4, new ItemStack(Blocks.planks, 1, 0))), + 4), + null); GregTech_API.registerCover( - ItemList.Plank_Wenge.get(1L), - TextureFactory.of( - GT_Utility.getBlockFromStack( - GT_ModHandler.getModItem( - Forestry.ID, - "planks", - 1L, - 5, - new ItemStack(Blocks.planks, 1, 0))), - 5), - null); + ItemList.Plank_Wenge.get(1L), + TextureFactory.of( + GT_Utility.getBlockFromStack( + GT_ModHandler.getModItem(Forestry.ID, "planks", 1L, 5, new ItemStack(Blocks.planks, 1, 0))), + 5), + null); GregTech_API.registerCover( - ItemList.Plank_Baobab.get(1L), - TextureFactory.of( - GT_Utility.getBlockFromStack( - GT_ModHandler.getModItem( - Forestry.ID, - "planks", - 1L, - 6, - new ItemStack(Blocks.planks, 1, 0))), - 6), - null); + ItemList.Plank_Baobab.get(1L), + TextureFactory.of( + GT_Utility.getBlockFromStack( + GT_ModHandler.getModItem(Forestry.ID, "planks", 1L, 6, new ItemStack(Blocks.planks, 1, 0))), + 6), + null); GregTech_API.registerCover( - ItemList.Plank_Sequoia.get(1L), - TextureFactory.of( - GT_Utility.getBlockFromStack( - GT_ModHandler.getModItem( - Forestry.ID, - "planks", - 1L, - 7, - new ItemStack(Blocks.planks, 1, 0))), - 7), - null); + ItemList.Plank_Sequoia.get(1L), + TextureFactory.of( + GT_Utility.getBlockFromStack( + GT_ModHandler.getModItem(Forestry.ID, "planks", 1L, 7, new ItemStack(Blocks.planks, 1, 0))), + 7), + null); GregTech_API.registerCover( - ItemList.Plank_Kapok.get(1L), - TextureFactory.of( - GT_Utility.getBlockFromStack( - GT_ModHandler.getModItem( - Forestry.ID, - "planks", - 1L, - 8, - new ItemStack(Blocks.planks, 1, 0))), - 8), - null); + ItemList.Plank_Kapok.get(1L), + TextureFactory.of( + GT_Utility.getBlockFromStack( + GT_ModHandler.getModItem(Forestry.ID, "planks", 1L, 8, new ItemStack(Blocks.planks, 1, 0))), + 8), + null); GregTech_API.registerCover( - ItemList.Plank_Ebony.get(1L), - TextureFactory.of( - GT_Utility.getBlockFromStack( - GT_ModHandler.getModItem( - Forestry.ID, - "planks", - 1L, - 9, - new ItemStack(Blocks.planks, 1, 0))), - 9), - null); + ItemList.Plank_Ebony.get(1L), + TextureFactory.of( + GT_Utility.getBlockFromStack( + GT_ModHandler.getModItem(Forestry.ID, "planks", 1L, 9, new ItemStack(Blocks.planks, 1, 0))), + 9), + null); GregTech_API.registerCover( - ItemList.Plank_Mahagony.get(1L), - TextureFactory.of( - GT_Utility.getBlockFromStack( - GT_ModHandler.getModItem( - Forestry.ID, - "planks", - 1L, - 10, - new ItemStack(Blocks.planks, 1, 0))), - 10), - null); + ItemList.Plank_Mahagony.get(1L), + TextureFactory.of( + GT_Utility.getBlockFromStack( + GT_ModHandler.getModItem(Forestry.ID, "planks", 1L, 10, new ItemStack(Blocks.planks, 1, 0))), + 10), + null); GregTech_API.registerCover( - ItemList.Plank_Balsa.get(1L), - TextureFactory.of( - GT_Utility.getBlockFromStack( - GT_ModHandler.getModItem( - Forestry.ID, - "planks", - 1L, - 11, - new ItemStack(Blocks.planks, 1, 0))), - 11), - null); + ItemList.Plank_Balsa.get(1L), + TextureFactory.of( + GT_Utility.getBlockFromStack( + GT_ModHandler.getModItem(Forestry.ID, "planks", 1L, 11, new ItemStack(Blocks.planks, 1, 0))), + 11), + null); GregTech_API.registerCover( - ItemList.Plank_Willow.get(1L), - TextureFactory.of( - GT_Utility.getBlockFromStack( - GT_ModHandler.getModItem( - Forestry.ID, - "planks", - 1L, - 12, - new ItemStack(Blocks.planks, 1, 0))), - 12), - null); + ItemList.Plank_Willow.get(1L), + TextureFactory.of( + GT_Utility.getBlockFromStack( + GT_ModHandler.getModItem(Forestry.ID, "planks", 1L, 12, new ItemStack(Blocks.planks, 1, 0))), + 12), + null); GregTech_API.registerCover( - ItemList.Plank_Walnut.get(1L), - TextureFactory.of( - GT_Utility.getBlockFromStack( - GT_ModHandler.getModItem( - Forestry.ID, - "planks", - 1L, - 13, - new ItemStack(Blocks.planks, 1, 0))), - 13), - null); + ItemList.Plank_Walnut.get(1L), + TextureFactory.of( + GT_Utility.getBlockFromStack( + GT_ModHandler.getModItem(Forestry.ID, "planks", 1L, 13, new ItemStack(Blocks.planks, 1, 0))), + 13), + null); GregTech_API.registerCover( - ItemList.Plank_Greenheart.get(1L), - TextureFactory.of( - GT_Utility.getBlockFromStack( - GT_ModHandler.getModItem( - Forestry.ID, - "planks", - 1L, - 14, - new ItemStack(Blocks.planks, 1, 0))), - 14), - null); + ItemList.Plank_Greenheart.get(1L), + TextureFactory.of( + GT_Utility.getBlockFromStack( + GT_ModHandler.getModItem(Forestry.ID, "planks", 1L, 14, new ItemStack(Blocks.planks, 1, 0))), + 14), + null); GregTech_API.registerCover( - ItemList.Plank_Cherry.get(1L), - TextureFactory.of( - GT_Utility.getBlockFromStack( - GT_ModHandler.getModItem( - Forestry.ID, - "planks", - 1L, - 15, - new ItemStack(Blocks.planks, 1, 0))), - 15), - null); + ItemList.Plank_Cherry.get(1L), + TextureFactory.of( + GT_Utility.getBlockFromStack( + GT_ModHandler.getModItem(Forestry.ID, "planks", 1L, 15, new ItemStack(Blocks.planks, 1, 0))), + 15), + null); GregTech_API.registerCover( - ItemList.Plank_Mahoe.get(1L), - TextureFactory.of( - GT_Utility.getBlockFromStack( - GT_ModHandler.getModItem( - Forestry.ID, - "planks", - 1L, - 16, - new ItemStack(Blocks.planks, 1, 0))), - 0), - null); + ItemList.Plank_Mahoe.get(1L), + TextureFactory.of( + GT_Utility.getBlockFromStack( + GT_ModHandler.getModItem(Forestry.ID, "planks", 1L, 16, new ItemStack(Blocks.planks, 1, 0))), + 0), + null); GregTech_API.registerCover( - ItemList.Plank_Poplar.get(1L), - TextureFactory.of( - GT_Utility.getBlockFromStack( - GT_ModHandler.getModItem( - Forestry.ID, - "planks", - 1L, - 17, - new ItemStack(Blocks.planks, 1, 0))), - 1), - null); + ItemList.Plank_Poplar.get(1L), + TextureFactory.of( + GT_Utility.getBlockFromStack( + GT_ModHandler.getModItem(Forestry.ID, "planks", 1L, 17, new ItemStack(Blocks.planks, 1, 0))), + 1), + null); GregTech_API.registerCover( - ItemList.Plank_Palm.get(1L), - TextureFactory.of( - GT_Utility.getBlockFromStack( - GT_ModHandler.getModItem( - Forestry.ID, - "planks", - 1L, - 18, - new ItemStack(Blocks.planks, 1, 0))), - 2), - null); + ItemList.Plank_Palm.get(1L), + TextureFactory.of( + GT_Utility.getBlockFromStack( + GT_ModHandler.getModItem(Forestry.ID, "planks", 1L, 18, new ItemStack(Blocks.planks, 1, 0))), + 2), + null); GregTech_API.registerCover( - ItemList.Plank_Papaya.get(1L), - TextureFactory.of( - GT_Utility.getBlockFromStack( - GT_ModHandler.getModItem( - Forestry.ID, - "planks", - 1L, - 19, - new ItemStack(Blocks.planks, 1, 0))), - 3), - null); + ItemList.Plank_Papaya.get(1L), + TextureFactory.of( + GT_Utility.getBlockFromStack( + GT_ModHandler.getModItem(Forestry.ID, "planks", 1L, 19, new ItemStack(Blocks.planks, 1, 0))), + 3), + null); GregTech_API.registerCover( - ItemList.Plank_Pine.get(1L), - TextureFactory.of( - GT_Utility.getBlockFromStack( - GT_ModHandler.getModItem( - Forestry.ID, - "planks", - 1L, - 20, - new ItemStack(Blocks.planks, 1, 0))), - 4), - null); + ItemList.Plank_Pine.get(1L), + TextureFactory.of( + GT_Utility.getBlockFromStack( + GT_ModHandler.getModItem(Forestry.ID, "planks", 1L, 20, new ItemStack(Blocks.planks, 1, 0))), + 4), + null); GregTech_API.registerCover( - ItemList.Plank_Plum.get(1L), - TextureFactory.of( - GT_Utility.getBlockFromStack( - GT_ModHandler.getModItem( - Forestry.ID, - "planks", - 1L, - 21, - new ItemStack(Blocks.planks, 1, 0))), - 5), - null); + ItemList.Plank_Plum.get(1L), + TextureFactory.of( + GT_Utility.getBlockFromStack( + GT_ModHandler.getModItem(Forestry.ID, "planks", 1L, 21, new ItemStack(Blocks.planks, 1, 0))), + 5), + null); GregTech_API.registerCover( - ItemList.Plank_Maple.get(1L), - TextureFactory.of( - GT_Utility.getBlockFromStack( - GT_ModHandler.getModItem( - Forestry.ID, - "planks", - 1L, - 22, - new ItemStack(Blocks.planks, 1, 0))), - 6), - null); + ItemList.Plank_Maple.get(1L), + TextureFactory.of( + GT_Utility.getBlockFromStack( + GT_ModHandler.getModItem(Forestry.ID, "planks", 1L, 22, new ItemStack(Blocks.planks, 1, 0))), + 6), + null); GregTech_API.registerCover( - ItemList.Plank_Citrus.get(1L), - TextureFactory.of( - GT_Utility.getBlockFromStack( - GT_ModHandler.getModItem( - Forestry.ID, - "planks", - 1L, - 23, - new ItemStack(Blocks.planks, 1, 0))), - 7), - null); + ItemList.Plank_Citrus.get(1L), + TextureFactory.of( + GT_Utility.getBlockFromStack( + GT_ModHandler.getModItem(Forestry.ID, "planks", 1L, 23, new ItemStack(Blocks.planks, 1, 0))), + 7), + null); ItemList.Crop_Drop_Plumbilia.set( - addItem( - tLastID = 500, - "Plumbilia Leaf", - "Source of Lead", - new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 1L))); + addItem( + tLastID = 500, + "Plumbilia Leaf", + "Source of Lead", + new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 1L))); ItemList.Crop_Drop_Argentia.set( - addItem( - tLastID = 501, - "Argentia Leaf", - "Source of Silver", - new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 1L))); + addItem( + tLastID = 501, + "Argentia Leaf", + "Source of Silver", + new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 1L))); ItemList.Crop_Drop_Indigo.set( - addItem( - tLastID = 502, - "Indigo Blossom", - "Used for making Blue Dye", - new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 1L))); + addItem( + tLastID = 502, + "Indigo Blossom", + "Used for making Blue Dye", + new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 1L))); ItemList.Crop_Drop_Ferru.set( - addItem( - tLastID = 503, - "Ferru Leaf", - "Source of Iron", - new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L))); + addItem( + tLastID = 503, + "Ferru Leaf", + "Source of Iron", + new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L))); ItemList.Crop_Drop_Aurelia.set( - addItem( - tLastID = 504, - "Aurelia Leaf", - "Source of Gold", - new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 1L))); + addItem( + tLastID = 504, + "Aurelia Leaf", + "Source of Gold", + new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 1L))); ItemList.Crop_Drop_TeaLeaf.set( - addItem( - tLastID = 505, - "Tea Leaf", - "Source of Tea", - "cropTea", - new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 1L))); + addItem( + tLastID = 505, + "Tea Leaf", + "Source of Tea", + "cropTea", + new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 1L))); ItemList.Crop_Drop_OilBerry.set( - addItem( - tLastID = 510, - "Oil Berry", - "Oil in Berry form", - new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L))); + addItem( + tLastID = 510, + "Oil Berry", + "Oil in Berry form", + new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L))); ItemList.Crop_Drop_BobsYerUncleRanks.set( - addItem( - tLastID = 511, - "Bobs-Yer-Uncle-Berry", - "Source of Emeralds", - new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 1L))); + addItem( + tLastID = 511, + "Bobs-Yer-Uncle-Berry", + "Source of Emeralds", + new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 1L))); ItemList.Crop_Drop_UUMBerry.set( - addItem( - tLastID = 512, - "UUM Berry", - "UUM in Berry form", - new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L))); + addItem( + tLastID = 512, + "UUM Berry", + "UUM in Berry form", + new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L))); ItemList.Crop_Drop_UUABerry.set( - addItem( - tLastID = 513, - "UUA Berry", - "UUA in Berry form", - new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L))); + addItem( + tLastID = 513, + "UUA Berry", + "UUA in Berry form", + new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L))); ItemList.Crop_Drop_MilkWart.set( - addItem( - tLastID = 520, - "Milk Wart", - "Source of Milk", - new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 1L))); + addItem( + tLastID = 520, + "Milk Wart", + "Source of Milk", + new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 1L))); ItemList.Crop_Drop_Coppon.set( - addItem( - tLastID = 530, - "Coppon Fiber", - "ORANGE WOOOOOOOL!!!", - new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 1L))); + addItem( + tLastID = 530, + "Coppon Fiber", + "ORANGE WOOOOOOOL!!!", + new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 1L))); ItemList.Crop_Drop_Tine.set( - addItem( - tLastID = 540, - "Tine Twig", - "Source of Tin", - new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); + addItem( + tLastID = 540, + "Tine Twig", + "Source of Tin", + new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); setBurnValue(32000 + tLastID, 100); ItemList.Crop_Drop_Mica.set( - addItem( - tLastID = 538, - "Micadia Twig", - "Source of Mica", - new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); + addItem( + tLastID = 538, + "Micadia Twig", + "Source of Mica", + new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L))); setBurnValue(32000 + tLastID, 240); ItemList.Crop_Drop_Bauxite.set(addItem(tLastID = 521, "Bauxia Leaf", "Source of Aluminium")); @@ -2390,400 +2214,385 @@ public class GT_MetaGenerated_Item_02 extends GT_MetaGenerated_Item_X32 { ItemList.Crop_Drop_Naquadah.set(addItem(tLastID = 535, "Stargatium Leaf", "Source of Naquadah")); ItemList.Crop_Drop_Chilly.set( - addItem( - tLastID = 550, - "Chilly Pepper", - "It is red and hot", - "cropChilipepper", - new GT_FoodStat( - 1, - 0.3F, - EnumAction.eat, - null, - false, - true, - false, - Potion.confusion.id, - 200, - 1, - 40), - new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L))); + addItem( + tLastID = 550, + "Chilly Pepper", + "It is red and hot", + "cropChilipepper", + new GT_FoodStat(1, 0.3F, EnumAction.eat, null, false, true, false, Potion.confusion.id, 200, 1, 40), + new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L))); ItemList.Crop_Drop_Lemon.set( - addItem( - tLastID = 551, - "Lemon", - "Don't make Lemonade", - "cropLemon", - new GT_FoodStat(1, 0.3F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L))); + addItem( + tLastID = 551, + "Lemon", + "Don't make Lemonade", + "cropLemon", + new GT_FoodStat(1, 0.3F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L))); ItemList.Crop_Drop_Tomato.set( - addItem( - tLastID = 552, - "Tomato", - "Solid Ketchup", - "cropTomato", - new GT_FoodStat(1, 0.2F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L))); + addItem( + tLastID = 552, + "Tomato", + "Solid Ketchup", + "cropTomato", + new GT_FoodStat(1, 0.2F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L))); ItemList.Crop_Drop_MTomato.set( - addItem( - tLastID = 553, - "Max Tomato", - "Full Health in one Tomato", - "cropTomato", - new GT_FoodStat( - 9, - 1.0F, - EnumAction.eat, - null, - false, - true, - false, - Potion.regeneration.id, - 100, - 100, - 100), - new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 3L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L))); + addItem( + tLastID = 553, + "Max Tomato", + "Full Health in one Tomato", + "cropTomato", + new GT_FoodStat( + 9, + 1.0F, + EnumAction.eat, + null, + false, + true, + false, + Potion.regeneration.id, + 100, + 100, + 100), + new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 3L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L))); ItemList.Crop_Drop_Grapes.set( - addItem( - tLastID = 554, - "Grapes", - "Source of Wine", - "cropGrape", - new GT_FoodStat(2, 0.3F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L))); + addItem( + tLastID = 554, + "Grapes", + "Source of Wine", + "cropGrape", + new GT_FoodStat(2, 0.3F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L))); ItemList.Crop_Drop_Onion.set( - addItem( - tLastID = 555, - "Onion", - "Taking over the whole Taste", - "cropOnion", - new GT_FoodStat(2, 0.2F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L))); + addItem( + tLastID = 555, + "Onion", + "Taking over the whole Taste", + "cropOnion", + new GT_FoodStat(2, 0.2F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L))); ItemList.Crop_Drop_Cucumber.set( - addItem( - tLastID = 556, - "Cucumber", - "Not a Sea Cucumber!", - "cropCucumber", - new GT_FoodStat(1, 0.2F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L))); + addItem( + tLastID = 556, + "Cucumber", + "Not a Sea Cucumber!", + "cropCucumber", + new GT_FoodStat(1, 0.2F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L))); ItemList.Crop_Drop_Rape.set( - addItem( - tLastID = 557, - "Rape", - "Time to oil up!", - new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L))); + addItem( + tLastID = 557, + "Rape", + "Time to oil up!", + new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L))); ItemList.Food_Cheese.set( - addItem( - tLastID = 558, - "Cheese", - "Click the Cheese", - "foodCheese", - new GT_FoodStat(3, 0.6F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 2L))); + addItem( + tLastID = 558, + "Cheese", + "Click the Cheese", + "foodCheese", + new GT_FoodStat(3, 0.6F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 2L))); ItemList.Food_Dough.set( - addItem( - tLastID = 559, - "Dough", - "For making Breads", - "foodDough", - new GT_FoodStat(1, 0.1F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L))); + addItem( + tLastID = 559, + "Dough", + "For making Breads", + "foodDough", + new GT_FoodStat(1, 0.1F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L))); ItemList.Food_Flat_Dough.set( - addItem( - tLastID = 560, - "Flattened Dough", - "For making Pizza", - new GT_FoodStat(1, 0.1F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L))); + addItem( + tLastID = 560, + "Flattened Dough", + "For making Pizza", + new GT_FoodStat(1, 0.1F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L))); ItemList.Food_Raw_Bread.set( - addItem( - tLastID = 561, - "Dough", - "In Bread Shape", - new GT_FoodStat(1, 0.2F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L))); + addItem( + tLastID = 561, + "Dough", + "In Bread Shape", + new GT_FoodStat(1, 0.2F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L))); ItemList.Food_Raw_Bun.set( - addItem( - tLastID = 562, - "Dough", - "In Bun Shape", - new GT_FoodStat(1, 0.1F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L))); + addItem( + tLastID = 562, + "Dough", + "In Bun Shape", + new GT_FoodStat(1, 0.1F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L))); ItemList.Food_Raw_Baguette.set( - addItem( - tLastID = 563, - "Dough", - "In Baguette Shape", - new GT_FoodStat(1, 0.3F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L))); + addItem( + tLastID = 563, + "Dough", + "In Baguette Shape", + new GT_FoodStat(1, 0.3F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L))); ItemList.Food_Baked_Bun.set( - addItem( - tLastID = 564, - "Bun", - "Do not teleport Bread!", - new GT_FoodStat(3, 0.5F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); + addItem( + tLastID = 564, + "Bun", + "Do not teleport Bread!", + new GT_FoodStat(3, 0.5F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); ItemList.Food_Baked_Baguette.set( - addItem( - tLastID = 565, - "Baguette", - "I teleported nothing BUT Bread!!!", - new GT_FoodStat(8, 0.5F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); + addItem( + tLastID = 565, + "Baguette", + "I teleported nothing BUT Bread!!!", + new GT_FoodStat(8, 0.5F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); ItemList.Food_Sliced_Bread.set( - addItem( - tLastID = 566, - "Sliced Bread", - "Just half a Bread", - new GT_FoodStat(2, 0.3F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); + addItem( + tLastID = 566, + "Sliced Bread", + "Just half a Bread", + new GT_FoodStat(2, 0.3F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); ItemList.Food_Sliced_Bun.set( - addItem( - tLastID = 567, - "Sliced Bun", - "Just half a Bun", - new GT_FoodStat(1, 0.3F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); + addItem( + tLastID = 567, + "Sliced Bun", + "Just half a Bun", + new GT_FoodStat(1, 0.3F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); ItemList.Food_Sliced_Baguette.set( - addItem( - tLastID = 568, - "Sliced Baguette", - "Just half a Baguette", - new GT_FoodStat(4, 0.3F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); + addItem( + tLastID = 568, + "Sliced Baguette", + "Just half a Baguette", + new GT_FoodStat(4, 0.3F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))); ItemList.Food_Raw_Cake.set( - addItem( - tLastID = 569, - "Cake Bottom", - "For making Cake", - new GT_FoodStat(2, 0.2F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L))); + addItem( + tLastID = 569, + "Cake Bottom", + "For making Cake", + new GT_FoodStat(2, 0.2F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L))); ItemList.Food_Baked_Cake.set( - addItem( - tLastID = 570, - "Baked Cake Bottom", - "I know I promised you an actual Cake, but well...", - new GT_FoodStat(3, 0.3F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L))); + addItem( + tLastID = 570, + "Baked Cake Bottom", + "I know I promised you an actual Cake, but well...", + new GT_FoodStat(3, 0.3F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L))); ItemList.Food_Sliced_Lemon.set( - addItem( - tLastID = 571, - "Lemon Slice", - "Ideal to put on your Drink", - new GT_FoodStat(1, 0.075F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L))); + addItem( + tLastID = 571, + "Lemon Slice", + "Ideal to put on your Drink", + new GT_FoodStat(1, 0.075F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L))); ItemList.Food_Sliced_Tomato.set( - addItem( - tLastID = 572, - "Tomato Slice", - "Solid Ketchup", - new GT_FoodStat(1, 0.05F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L))); + addItem( + tLastID = 572, + "Tomato Slice", + "Solid Ketchup", + new GT_FoodStat(1, 0.05F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L))); ItemList.Food_Sliced_Onion.set( - addItem( - tLastID = 573, - "Onion Slice", - "ONIONS, UNITE!", - new GT_FoodStat(1, 0.05F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L))); + addItem( + tLastID = 573, + "Onion Slice", + "ONIONS, UNITE!", + new GT_FoodStat(1, 0.05F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L))); ItemList.Food_Sliced_Cucumber.set( - addItem( - tLastID = 574, - "Cucumber Slice", - "QUEWWW-CUMMM-BERRR!!!", - new GT_FoodStat(1, 0.05F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L))); + addItem( + tLastID = 574, + "Cucumber Slice", + "QUEWWW-CUMMM-BERRR!!!", + new GT_FoodStat(1, 0.05F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L))); ItemList.Food_Sliced_Cheese.set( - addItem( - tLastID = 576, - "Cheese Slice", - "ALIEN ATTACK!!!, throw the CHEEEEESE!!!", - new GT_FoodStat(1, 0.1F, EnumAction.eat, null, false, true, false), - new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L))); + addItem( + tLastID = 576, + "Cheese Slice", + "ALIEN ATTACK!!!, throw the CHEEEEESE!!!", + new GT_FoodStat(1, 0.1F, EnumAction.eat, null, false, true, false), + new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L))); ItemList.Cover_AdvancedRedstoneTransmitterExternal.set( - addItem( - tLastID = 577, - "Advanced Redstone Transmitter (External)", - "Transfers Redstone signals wirelessly", - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L))); + addItem( + tLastID = 577, + "Advanced Redstone Transmitter (External)", + "Transfers Redstone signals wirelessly", + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L))); ItemList.Cover_AdvancedRedstoneTransmitterInternal.set( - addItem( - tLastID = 578, - "Advanced Redstone Transmitter (Internal)", - "Transfers Redstone signals wirelessly", - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L))); + addItem( + tLastID = 578, + "Advanced Redstone Transmitter (Internal)", + "Transfers Redstone signals wirelessly", + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L))); ItemList.Cover_AdvancedRedstoneReceiverExternal.set( - addItem( - tLastID = 579, - "Advanced Redstone Receiver (External)", - "Transfers Redstone signals wirelessly", - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L))); + addItem( + tLastID = 579, + "Advanced Redstone Receiver (External)", + "Transfers Redstone signals wirelessly", + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L))); ItemList.Cover_AdvancedRedstoneReceiverInternal.set( - addItem( - tLastID = 580, - "Advanced Redstone Receiver (Internal)", - "Transfers Redstone signals wirelessly", - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L))); + addItem( + tLastID = 580, + "Advanced Redstone Receiver (Internal)", + "Transfers Redstone signals wirelessly", + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L))); ItemList.Cover_WirelessFluidDetector.set( - addItem( - tLastID = 581, - "Wireless Fluid Detector Cover", - "Transfers Fluid Amount as Redstone wirelessly", - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L))); + addItem( + tLastID = 581, + "Wireless Fluid Detector Cover", + "Transfers Fluid Amount as Redstone wirelessly", + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L))); ItemList.Cover_WirelessItemDetector.set( - addItem( - tLastID = 582, - "Wireless Item Detector Cover", - "Transfers Item Amount as Redstone wirelessly", - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TERRA, 1L))); + addItem( + tLastID = 582, + "Wireless Item Detector Cover", + "Transfers Item Amount as Redstone wirelessly", + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TERRA, 1L))); ItemList.Cover_WirelessNeedsMaintainance.set( - addItem( - tLastID = 583, - "Wireless Needs Maintenance Cover", - "Transfers Maintenance Issues as Redstone wirelessly", - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 3L))); + addItem( + tLastID = 583, + "Wireless Needs Maintenance Cover", + "Transfers Maintenance Issues as Redstone wirelessly", + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 3L))); GregTech_API.registerCover( - ItemList.Cover_AdvancedRedstoneTransmitterExternal.get(1L), - TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_ADVANCED_REDSTONE_TRANSMITTER)), - new GT_Cover_AdvancedRedstoneTransmitterExternal( - TextureFactory.of(OVERLAY_ADVANCED_REDSTONE_TRANSMITTER))); + ItemList.Cover_AdvancedRedstoneTransmitterExternal.get(1L), + TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_ADVANCED_REDSTONE_TRANSMITTER)), + new GT_Cover_AdvancedRedstoneTransmitterExternal(TextureFactory.of(OVERLAY_ADVANCED_REDSTONE_TRANSMITTER))); GregTech_API.registerCover( - ItemList.Cover_AdvancedRedstoneTransmitterInternal.get(1L), - TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_ADVANCED_REDSTONE_TRANSMITTER)), - new GT_Cover_AdvancedRedstoneTransmitterInternal( - TextureFactory.of(OVERLAY_ADVANCED_REDSTONE_TRANSMITTER))); + ItemList.Cover_AdvancedRedstoneTransmitterInternal.get(1L), + TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_ADVANCED_REDSTONE_TRANSMITTER)), + new GT_Cover_AdvancedRedstoneTransmitterInternal(TextureFactory.of(OVERLAY_ADVANCED_REDSTONE_TRANSMITTER))); GregTech_API.registerCover( - ItemList.Cover_AdvancedRedstoneReceiverExternal.get(1L), - TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_ADVANCED_REDSTONE_RECEIVER)), - new GT_Cover_AdvancedRedstoneReceiverExternal(TextureFactory.of(OVERLAY_ADVANCED_REDSTONE_RECEIVER))); + ItemList.Cover_AdvancedRedstoneReceiverExternal.get(1L), + TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_ADVANCED_REDSTONE_RECEIVER)), + new GT_Cover_AdvancedRedstoneReceiverExternal(TextureFactory.of(OVERLAY_ADVANCED_REDSTONE_RECEIVER))); GregTech_API.registerCover( - ItemList.Cover_AdvancedRedstoneReceiverInternal.get(1L), - TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_ADVANCED_REDSTONE_RECEIVER)), - new GT_Cover_AdvancedRedstoneReceiverInternal(TextureFactory.of(OVERLAY_ADVANCED_REDSTONE_RECEIVER))); + ItemList.Cover_AdvancedRedstoneReceiverInternal.get(1L), + TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_ADVANCED_REDSTONE_RECEIVER)), + new GT_Cover_AdvancedRedstoneReceiverInternal(TextureFactory.of(OVERLAY_ADVANCED_REDSTONE_RECEIVER))); GregTech_API.registerCover( - ItemList.Cover_WirelessFluidDetector.get(1L), - TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_WIRELESS_FLUID_DETECTOR)), - new GT_Cover_WirelessFluidDetector(TextureFactory.of(OVERLAY_WIRELESS_FLUID_DETECTOR))); + ItemList.Cover_WirelessFluidDetector.get(1L), + TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_WIRELESS_FLUID_DETECTOR)), + new GT_Cover_WirelessFluidDetector(TextureFactory.of(OVERLAY_WIRELESS_FLUID_DETECTOR))); GregTech_API.registerCover( - ItemList.Cover_WirelessItemDetector.get(1L), - TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_WIRELESS_ITEM_DETECTOR)), - new GT_Cover_WirelessItemDetector(TextureFactory.of(OVERLAY_WIRELESS_ITEM_DETECTOR))); + ItemList.Cover_WirelessItemDetector.get(1L), + TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_WIRELESS_ITEM_DETECTOR)), + new GT_Cover_WirelessItemDetector(TextureFactory.of(OVERLAY_WIRELESS_ITEM_DETECTOR))); GregTech_API.registerCover( - ItemList.Cover_WirelessNeedsMaintainance.get(1L), - TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_WIRELESS_MAINTENANCE_DETECTOR)), - new GT_Cover_WirelessMaintenanceDetector(TextureFactory.of(OVERLAY_WIRELESS_MAINTENANCE_DETECTOR))); + ItemList.Cover_WirelessNeedsMaintainance.get(1L), + TextureFactory.of(MACHINE_CASINGS[2][0], TextureFactory.of(OVERLAY_WIRELESS_MAINTENANCE_DETECTOR)), + new GT_Cover_WirelessMaintenanceDetector(TextureFactory.of(OVERLAY_WIRELESS_MAINTENANCE_DETECTOR))); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { ItemList.Cover_RedstoneTransmitterExternal.get(1L), - GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Data, 1L), - GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Cover_AdvancedRedstoneTransmitterExternal.get(1L), - 3200, - 128); + new ItemStack[] { ItemList.Cover_RedstoneTransmitterExternal.get(1L), + GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Data, 1L), GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Cover_AdvancedRedstoneTransmitterExternal.get(1L), + 3200, + 128); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { ItemList.Cover_RedstoneReceiverExternal.get(1L), - GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Data, 1L), - GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Cover_AdvancedRedstoneReceiverExternal.get(1L), - 3200, - 128); + new ItemStack[] { ItemList.Cover_RedstoneReceiverExternal.get(1L), + GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Data, 1L), GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Cover_AdvancedRedstoneReceiverExternal.get(1L), + 3200, + 128); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { ItemList.Cover_FluidDetector.get(1L), ItemList.Emitter_EV.get(1L), - GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Cover_WirelessFluidDetector.get(1L), - 3200, - 128); + new ItemStack[] { ItemList.Cover_FluidDetector.get(1L), ItemList.Emitter_EV.get(1L), + GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Cover_WirelessFluidDetector.get(1L), + 3200, + 128); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { ItemList.Cover_ItemDetector.get(1L), ItemList.Emitter_EV.get(1L), - GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Cover_WirelessItemDetector.get(1L), - 3200, - 128); + new ItemStack[] { ItemList.Cover_ItemDetector.get(1L), ItemList.Emitter_EV.get(1L), + GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Cover_WirelessItemDetector.get(1L), + 3200, + 128); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { ItemList.Cover_NeedsMaintainance.get(1L), ItemList.Emitter_EV.get(1L), - GT_Utility.getIntegratedCircuit(1) }, - GT_Values.NF, - ItemList.Cover_WirelessNeedsMaintainance.get(1L), - 3200, - 128); + new ItemStack[] { ItemList.Cover_NeedsMaintainance.get(1L), ItemList.Emitter_EV.get(1L), + GT_Utility.getIntegratedCircuit(1) }, + GT_Values.NF, + ItemList.Cover_WirelessNeedsMaintainance.get(1L), + 3200, + 128); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Cover_AdvancedRedstoneReceiverExternal.get(1L), - new Object[] { ItemList.Cover_AdvancedRedstoneReceiverInternal.get(1L) }); + ItemList.Cover_AdvancedRedstoneReceiverExternal.get(1L), + new Object[] { ItemList.Cover_AdvancedRedstoneReceiverInternal.get(1L) }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Cover_AdvancedRedstoneReceiverInternal.get(1L), - new Object[] { ItemList.Cover_AdvancedRedstoneReceiverExternal.get(1L) }); + ItemList.Cover_AdvancedRedstoneReceiverInternal.get(1L), + new Object[] { ItemList.Cover_AdvancedRedstoneReceiverExternal.get(1L) }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Cover_AdvancedRedstoneTransmitterExternal.get(1L), - new Object[] { ItemList.Cover_AdvancedRedstoneTransmitterInternal.get(1L) }); + ItemList.Cover_AdvancedRedstoneTransmitterExternal.get(1L), + new Object[] { ItemList.Cover_AdvancedRedstoneTransmitterInternal.get(1L) }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Cover_AdvancedRedstoneTransmitterInternal.get(1L), - new Object[] { ItemList.Cover_AdvancedRedstoneTransmitterExternal.get(1L) }); + ItemList.Cover_AdvancedRedstoneTransmitterInternal.get(1L), + new Object[] { ItemList.Cover_AdvancedRedstoneTransmitterExternal.get(1L) }); GT_ModHandler.addExtractionRecipe(new ItemStack(Blocks.red_flower, 1, 0), new ItemStack(Items.dye, 2, 1)); GT_ModHandler.addExtractionRecipe(new ItemStack(Blocks.red_flower, 1, 1), new ItemStack(Items.dye, 2, 12)); @@ -2800,124 +2609,119 @@ public class GT_MetaGenerated_Item_02 extends GT_MetaGenerated_Item_X32 { GT_ModHandler.addExtractionRecipe(new ItemStack(Blocks.double_plant, 1, 4), new ItemStack(Items.dye, 3, 1)); GT_ModHandler.addExtractionRecipe(new ItemStack(Blocks.double_plant, 1, 5), new ItemStack(Items.dye, 3, 9)); GT_ModHandler.addExtractionRecipe( - ItemList.Crop_Drop_Plumbilia.get(1L), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Lead, 1L)); + ItemList.Crop_Drop_Plumbilia.get(1L), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Lead, 1L)); GT_ModHandler.addExtractionRecipe( - ItemList.Crop_Drop_Argentia.get(1L), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Silver, 1L)); + ItemList.Crop_Drop_Argentia.get(1L), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Silver, 1L)); GT_ModHandler.addExtractionRecipe(ItemList.Crop_Drop_Indigo.get(1L), ItemList.Dye_Indigo.get(1L)); GT_ModHandler.addExtractionRecipe( - ItemList.Crop_Drop_MilkWart.get(1L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Milk, 1L)); + ItemList.Crop_Drop_MilkWart.get(1L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Milk, 1L)); GT_ModHandler.addExtractionRecipe( - ItemList.Crop_Drop_Coppon.get(1L), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Copper, 1L)); + ItemList.Crop_Drop_Coppon.get(1L), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Copper, 1L)); GT_ModHandler.addExtractionRecipe( - ItemList.Crop_Drop_Tine.get(1L), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Tin, 1L)); + ItemList.Crop_Drop_Tine.get(1L), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Tin, 1L)); GT_ModHandler.addCompressionRecipe(ItemList.Crop_Drop_Coppon.get(4L), new ItemStack(Blocks.wool, 1, 1)); - GT_ModHandler.addCompressionRecipe( - ItemList.Crop_Drop_Plumbilia.get(4L), - ItemList.IC2_PlantballCompressed.get(1L)); - GT_ModHandler.addCompressionRecipe( - ItemList.Crop_Drop_Argentia.get(4L), - ItemList.IC2_PlantballCompressed.get(1L)); + GT_ModHandler + .addCompressionRecipe(ItemList.Crop_Drop_Plumbilia.get(4L), ItemList.IC2_PlantballCompressed.get(1L)); + GT_ModHandler + .addCompressionRecipe(ItemList.Crop_Drop_Argentia.get(4L), ItemList.IC2_PlantballCompressed.get(1L)); GT_ModHandler.addCompressionRecipe(ItemList.Crop_Drop_Indigo.get(4L), ItemList.IC2_PlantballCompressed.get(1L)); GT_ModHandler.addCompressionRecipe(ItemList.Crop_Drop_Ferru.get(4L), ItemList.IC2_PlantballCompressed.get(1L)); + GT_ModHandler + .addCompressionRecipe(ItemList.Crop_Drop_Aurelia.get(4L), ItemList.IC2_PlantballCompressed.get(1L)); + GT_ModHandler + .addCompressionRecipe(ItemList.Crop_Drop_OilBerry.get(4L), ItemList.IC2_PlantballCompressed.get(1L)); GT_ModHandler.addCompressionRecipe( - ItemList.Crop_Drop_Aurelia.get(4L), - ItemList.IC2_PlantballCompressed.get(1L)); - GT_ModHandler.addCompressionRecipe( - ItemList.Crop_Drop_OilBerry.get(4L), - ItemList.IC2_PlantballCompressed.get(1L)); - GT_ModHandler.addCompressionRecipe( - ItemList.Crop_Drop_BobsYerUncleRanks.get(4L), - ItemList.IC2_PlantballCompressed.get(1L)); + ItemList.Crop_Drop_BobsYerUncleRanks.get(4L), + ItemList.IC2_PlantballCompressed.get(1L)); GT_ModHandler.addCompressionRecipe(ItemList.Crop_Drop_Tine.get(4L), ItemList.IC2_PlantballCompressed.get(1L)); GT_ModHandler.addCompressionRecipe(ItemList.Crop_Drop_Rape.get(4L), ItemList.IC2_PlantballCompressed.get(1L)); + GT_ModHandler + .addCompressionRecipe(new ItemStack(Blocks.red_flower, 8, 32767), ItemList.IC2_PlantballCompressed.get(1L)); GT_ModHandler.addCompressionRecipe( - new ItemStack(Blocks.red_flower, 8, 32767), - ItemList.IC2_PlantballCompressed.get(1L)); - GT_ModHandler.addCompressionRecipe( - new ItemStack(Blocks.yellow_flower, 8, 32767), - ItemList.IC2_PlantballCompressed.get(1L)); + new ItemStack(Blocks.yellow_flower, 8, 32767), + ItemList.IC2_PlantballCompressed.get(1L)); GT_ModHandler.addPulverisationRecipe( - ItemList.Food_Sliced_Cheese.get(1L), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Cheese, 1L)); + ItemList.Food_Sliced_Cheese.get(1L), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Cheese, 1L)); GT_ModHandler.addPulverisationRecipe( - ItemList.Dye_Cocoa.get(1L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cocoa, 1L)); + ItemList.Dye_Cocoa.get(1L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cocoa, 1L)); GT_ModHandler.addPulverisationRecipe( - ItemList.Crop_Drop_Tine.get(1L), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Wood, 2L)); + ItemList.Crop_Drop_Tine.get(1L), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Wood, 2L)); GT_ModHandler.addPulverisationRecipe( - new ItemStack(Blocks.melon_block, 1, 0), - new ItemStack(Items.melon, 8, 0), - new ItemStack(Items.melon_seeds, 1), - 80, - false); + new ItemStack(Blocks.melon_block, 1, 0), + new ItemStack(Items.melon, 8, 0), + new ItemStack(Items.melon_seeds, 1), + 80, + false); GT_ModHandler.addPulverisationRecipe( - new ItemStack(Blocks.pumpkin, 1, 0), - new ItemStack(Items.pumpkin_seeds, 4, 0), - null, - 0, - false); + new ItemStack(Blocks.pumpkin, 1, 0), + new ItemStack(Items.pumpkin_seeds, 4, 0), + null, + 0, + false); GT_ModHandler.addPulverisationRecipe( - new ItemStack(Items.melon, 1, 0), - new ItemStack(Items.melon_seeds, 1, 0), - null, - 0, - false); + new ItemStack(Items.melon, 1, 0), + new ItemStack(Items.melon_seeds, 1, 0), + null, + 0, + false); GT_ModHandler.addPulverisationRecipe( - new ItemStack(Items.wheat, 1, 0), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wheat, 1L), - null, - 0, - false); + new ItemStack(Items.wheat, 1, 0), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wheat, 1L), + null, + 0, + false); GT_ModHandler.addPulverisationRecipe( - GT_ModHandler.getIC2Item("crop", 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 1L), - null, - 0, - false); + GT_ModHandler.getIC2Item("crop", 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 1L), + null, + 0, + false); GT_ModHandler.addPulverisationRecipe( - new ItemStack(Items.stick, 1), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Wood, 2L), - null, - 0, - false); + new ItemStack(Items.stick, 1), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Wood, 2L), + null, + 0, + false); GT_ModHandler.addPulverisationRecipe( - new ItemStack(Blocks.wool, 1, 32767), - new ItemStack(Items.string, 2), - new ItemStack(Items.string, 1), - 50, - false); + new ItemStack(Blocks.wool, 1, 32767), + new ItemStack(Items.string, 2), + new ItemStack(Items.string, 1), + 50, + false); GT_ModHandler.addPulverisationRecipe( - ItemList.Tesseract.get(1), - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.dust, Materials.TranscendentMetal, 8L) }, - new int[] { 10000 }, - 32_000_000, - 100); + ItemList.Tesseract.get(1), + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.dust, Materials.TranscendentMetal, 8L) }, + new int[] { 10000 }, + 32_000_000, + 100); try { ic2.api.crops.CropCard tCrop; GT_Utility.getField(tCrop = ic2.api.crops.Crops.instance.getCropList()[13], "mDrop") - .set(tCrop, ItemList.Crop_Drop_Ferru.get(1L)); + .set(tCrop, ItemList.Crop_Drop_Ferru.get(1L)); GT_Utility.getField(tCrop = ic2.api.crops.Crops.instance.getCropList()[14], "mDrop") - .set(tCrop, ItemList.Crop_Drop_Aurelia.get(1L)); + .set(tCrop, ItemList.Crop_Drop_Aurelia.get(1L)); } catch (Throwable e) { if (GT_Values.D1) { e.printStackTrace(GT_Log.err); } } ItemList.Display_ITS_FREE.set( - addItem( - tLastID = 766, - "ITS FREE", - "(or at least almost free)", - SubTag.INVISIBLE, - new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 1L))); + addItem( + tLastID = 766, + "ITS FREE", + "(or at least almost free)", + SubTag.INVISIBLE, + new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 1L))); } @Override @@ -2941,7 +2745,7 @@ public class GT_MetaGenerated_Item_02 extends GT_MetaGenerated_Item_X32 { @Override public EntityArrow getProjectile(SubTag aProjectileType, ItemStack aStack, World aWorld, double aX, double aY, - double aZ) { + double aZ) { int aDamage = aStack.getItemDamage(); if ((aDamage >= 25000) && (aDamage < 27000)) { if (aDamage >= 26000) { @@ -2954,17 +2758,12 @@ public class GT_MetaGenerated_Item_02 extends GT_MetaGenerated_Item_X32 { @Override public EntityArrow getProjectile(SubTag aProjectileType, ItemStack aStack, World aWorld, EntityLivingBase aEntity, - float aSpeed) { + float aSpeed) { int aDamage = aStack.getItemDamage(); if ((aDamage >= 25000) && (aDamage < 27000)) { if (aDamage >= 26000) { - return Behaviour_Arrow.DEFAULT_PLASTIC.getProjectile( - this, - aProjectileType, - aStack, - aWorld, - aEntity, - aSpeed); + return Behaviour_Arrow.DEFAULT_PLASTIC + .getProjectile(this, aProjectileType, aStack, aWorld, aEntity, aSpeed); } return Behaviour_Arrow.DEFAULT_WOODEN.getProjectile(this, aProjectileType, aStack, aWorld, aEntity, aSpeed); } @@ -2977,7 +2776,7 @@ public class GT_MetaGenerated_Item_02 extends GT_MetaGenerated_Item_X32 { Materials aMaterial = GregTech_API.sGeneratedMaterials[(aDamage % 1000)]; if ((aDamage >= 25000) && (aDamage < 27000) && (aMaterial != null) && (aMaterial.mEnchantmentTools != null)) { Enchantment tEnchant = aMaterial.mEnchantmentTools == Enchantment.fortune ? Enchantment.looting - : aMaterial.mEnchantmentTools; + : aMaterial.mEnchantmentTools; if (tEnchant.type == EnumEnchantmentType.weapon) { NBTTagCompound tNBT = GT_Utility.ItemNBT.getNBT(aStack); if (!tNBT.getBoolean("GT.HasBeenUpdated")) { @@ -2993,7 +2792,7 @@ public class GT_MetaGenerated_Item_02 extends GT_MetaGenerated_Item_X32 { @Override public boolean doesShowInCreative(OrePrefixes aPrefix, Materials aMaterial, boolean aDoShowAllItems) { return (aDoShowAllItems) || (!aPrefix.name() - .startsWith("toolHead")); + .startsWith("toolHead")); } @Override diff --git a/src/main/java/gregtech/common/items/GT_MetaGenerated_Item_03.java b/src/main/java/gregtech/common/items/GT_MetaGenerated_Item_03.java index 939aa650aa..594c5841f5 100644 --- a/src/main/java/gregtech/common/items/GT_MetaGenerated_Item_03.java +++ b/src/main/java/gregtech/common/items/GT_MetaGenerated_Item_03.java @@ -19,12 +19,12 @@ public class GT_MetaGenerated_Item_03 extends GT_MetaGenerated_Item_X32 { public GT_MetaGenerated_Item_03() { super( - "metaitem.03", - OrePrefixes.crateGtDust, - OrePrefixes.crateGtIngot, - OrePrefixes.crateGtGem, - OrePrefixes.crateGtPlate, - OrePrefixes.nanite); + "metaitem.03", + OrePrefixes.crateGtDust, + OrePrefixes.crateGtIngot, + OrePrefixes.crateGtGem, + OrePrefixes.crateGtPlate, + OrePrefixes.nanite); INSTANCE = this; int tLastID = 0; Object[] o = new Object[0]; @@ -35,8 +35,8 @@ public class GT_MetaGenerated_Item_03 extends GT_MetaGenerated_Item_X32 { * copper foil + sulfuric acid fiberglass circuit board (simple + multilayer) / glass + plastic + electrum foil * + sulfurci acid wetware lifesupport board / fiberglass CB + teflon + */ - ItemList.Circuit_Board_Wetware.set( - addItem(tLastID = 6, "Wetware Lifesupport Circuit Board", "The Board that keeps life", o)); + ItemList.Circuit_Board_Wetware + .set(addItem(tLastID = 6, "Wetware Lifesupport Circuit Board", "The Board that keeps life", o)); ItemList.Circuit_Board_Plastic.set(addItem(tLastID = 7, "Plastic Circuit Board", "A Good Board", o)); ItemList.Circuit_Board_Bio.set(addItem(tLastID = 8, "Bio Circuit Board", "Bio genetic mutated Board", o)); @@ -45,110 +45,104 @@ public class GT_MetaGenerated_Item_03 extends GT_MetaGenerated_Item_X32 { * diodes normal+smd transistors normal+smd capacitors normal+smd Glass Fibers */ ItemList.Circuit_Parts_ResistorSMD.set( - addItem( - tLastID = 11, - "SMD Resistor", - "Electronic Component", - OrePrefixes.componentCircuit.get(Materials.Resistor), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 11, + "SMD Resistor", + "Electronic Component", + OrePrefixes.componentCircuit.get(Materials.Resistor), + SubTag.NO_UNIFICATION)); ItemList.Circuit_Parts_Glass_Tube.set(addItem(tLastID = 12, "Glass Tube", "", o)); ItemList.Circuit_Parts_Coil.set(addItem(tLastID = 14, "Small Coil", "Basic Electronic Component", o)); ItemList.Circuit_Parts_DiodeSMD.set( - addItem( - tLastID = 16, - "SMD Diode", - "Electronic Component", - OrePrefixes.componentCircuit.get(Materials.Diode), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 16, + "SMD Diode", + "Electronic Component", + OrePrefixes.componentCircuit.get(Materials.Diode), + SubTag.NO_UNIFICATION)); ItemList.Circuit_Parts_TransistorSMD.set( - addItem( - tLastID = 18, - "SMD Transistor", - "Electronic Component", - OrePrefixes.componentCircuit.get(Materials.Transistor), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 18, + "SMD Transistor", + "Electronic Component", + OrePrefixes.componentCircuit.get(Materials.Transistor), + SubTag.NO_UNIFICATION)); ItemList.Circuit_Parts_CapacitorSMD.set( - addItem( - tLastID = 20, - "SMD Capacitor", - "Electronic Component", - OrePrefixes.componentCircuit.get(Materials.Capacitor), - SubTag.NO_UNIFICATION)); - ItemList.Circuit_Parts_GlassFiber.set( - addItem(tLastID = 21, "Glass Fiber", Materials.BorosilicateGlass.mChemicalFormula, o)); + addItem( + tLastID = 20, + "SMD Capacitor", + "Electronic Component", + OrePrefixes.componentCircuit.get(Materials.Capacitor), + SubTag.NO_UNIFICATION)); + ItemList.Circuit_Parts_GlassFiber + .set(addItem(tLastID = 21, "Glass Fiber", Materials.BorosilicateGlass.mChemicalFormula, o)); ItemList.Circuit_Parts_PetriDish.set(addItem(tLastID = 22, "Petri Dish", "For cultivating cells", o)); ItemList.Circuit_Parts_Reinforced_Glass_Tube.set(addItem(tLastID = 23, "Reinforced Glass Tube", "", o)); - ItemList.Circuit_Parts_ResistorASMD.set( - addItem(tLastID = 24, "Advanced SMD Resistor", "Advanced Electronic Component", o)); - ItemList.Circuit_Parts_DiodeASMD.set( - addItem(tLastID = 25, "Advanced SMD Diode", "Advanced Electronic Component", o)); - ItemList.Circuit_Parts_TransistorASMD.set( - addItem(tLastID = 26, "Advanced SMD Transistor", "Advanced Electronic Component", o)); - ItemList.Circuit_Parts_CapacitorASMD.set( - addItem(tLastID = 27, "Advanced SMD Capacitor", "Advanced Electronic Component", o)); + ItemList.Circuit_Parts_ResistorASMD + .set(addItem(tLastID = 24, "Advanced SMD Resistor", "Advanced Electronic Component", o)); + ItemList.Circuit_Parts_DiodeASMD + .set(addItem(tLastID = 25, "Advanced SMD Diode", "Advanced Electronic Component", o)); + ItemList.Circuit_Parts_TransistorASMD + .set(addItem(tLastID = 26, "Advanced SMD Transistor", "Advanced Electronic Component", o)); + ItemList.Circuit_Parts_CapacitorASMD + .set(addItem(tLastID = 27, "Advanced SMD Capacitor", "Advanced Electronic Component", o)); - ItemList.Circuit_Parts_ResistorXSMD.set( - addItem(tLastID = 178, "Optical SMD Resistor", "Highly Advanced Electronic Component", o)); - ItemList.Circuit_Parts_DiodeXSMD.set( - addItem(tLastID = 179, "Optical SMD Diode", "Highly Advanced Electronic Component", o)); - ItemList.Circuit_Parts_TransistorXSMD.set( - addItem(tLastID = 180, "Optical SMD Transistor", "Highly Advanced Electronic Component", o)); - ItemList.Circuit_Parts_CapacitorXSMD.set( - addItem(tLastID = 181, "Optical SMD Capacitor", "Highly Advanced Electronic Component", o)); + ItemList.Circuit_Parts_ResistorXSMD + .set(addItem(tLastID = 178, "Optical SMD Resistor", "Highly Advanced Electronic Component", o)); + ItemList.Circuit_Parts_DiodeXSMD + .set(addItem(tLastID = 179, "Optical SMD Diode", "Highly Advanced Electronic Component", o)); + ItemList.Circuit_Parts_TransistorXSMD + .set(addItem(tLastID = 180, "Optical SMD Transistor", "Highly Advanced Electronic Component", o)); + ItemList.Circuit_Parts_CapacitorXSMD + .set(addItem(tLastID = 181, "Optical SMD Capacitor", "Highly Advanced Electronic Component", o)); ItemList.Circuit_Parts_InductorSMD.set( - addItem( - tLastID = 182, - "SMD Inductor", - "Electronic Component", - OrePrefixes.componentCircuit.get(Materials.Inductor), - SubTag.NO_UNIFICATION)); - ItemList.Circuit_Parts_InductorASMD.set( - addItem(tLastID = 183, "Advanced SMD Inductor", "Advanced Electronic Component", o)); - ItemList.Circuit_Parts_InductorXSMD.set( - addItem(tLastID = 184, "Optical SMD Inductor", "Highly Advanced Electronic Component", o)); + addItem( + tLastID = 182, + "SMD Inductor", + "Electronic Component", + OrePrefixes.componentCircuit.get(Materials.Inductor), + SubTag.NO_UNIFICATION)); + ItemList.Circuit_Parts_InductorASMD + .set(addItem(tLastID = 183, "Advanced SMD Inductor", "Advanced Electronic Component", o)); + ItemList.Circuit_Parts_InductorXSMD + .set(addItem(tLastID = 184, "Optical SMD Inductor", "Highly Advanced Electronic Component", o)); - GT_OreDictUnificator.set( - OrePrefixes.componentCircuit, - Materials.Resistor, - ItemList.Circuit_Parts_Resistor.get(1L)); + GT_OreDictUnificator + .set(OrePrefixes.componentCircuit, Materials.Resistor, ItemList.Circuit_Parts_Resistor.get(1L)); GT_OreDictUnificator.set(OrePrefixes.componentCircuit, Materials.Diode, ItemList.Circuit_Parts_Diode.get(1L)); - GT_OreDictUnificator.set( - OrePrefixes.componentCircuit, - Materials.Transistor, - ItemList.Circuit_Parts_Transistor.get(1L)); + GT_OreDictUnificator + .set(OrePrefixes.componentCircuit, Materials.Transistor, ItemList.Circuit_Parts_Transistor.get(1L)); GT_OreDictUnificator.set(OrePrefixes.componentCircuit, Materials.Inductor, ItemList.Circuit_Parts_Coil.get(1L)); - GT_OreDictUnificator.set( - OrePrefixes.componentCircuit, - Materials.Capacitor, - ItemList.Circuit_Parts_Capacitor.get(1L)); + GT_OreDictUnificator + .set(OrePrefixes.componentCircuit, Materials.Capacitor, ItemList.Circuit_Parts_Capacitor.get(1L)); GT_OreDictUnificator.addAssociation( - OrePrefixes.componentCircuit, - Materials.Resistor, - ItemList.Circuit_Parts_ResistorSMD.get(1L), - true); + OrePrefixes.componentCircuit, + Materials.Resistor, + ItemList.Circuit_Parts_ResistorSMD.get(1L), + true); GT_OreDictUnificator.addAssociation( - OrePrefixes.componentCircuit, - Materials.Diode, - ItemList.Circuit_Parts_DiodeSMD.get(1L), - true); + OrePrefixes.componentCircuit, + Materials.Diode, + ItemList.Circuit_Parts_DiodeSMD.get(1L), + true); GT_OreDictUnificator.addAssociation( - OrePrefixes.componentCircuit, - Materials.Transistor, - ItemList.Circuit_Parts_TransistorSMD.get(1L), - true); + OrePrefixes.componentCircuit, + Materials.Transistor, + ItemList.Circuit_Parts_TransistorSMD.get(1L), + true); GT_OreDictUnificator.addAssociation( - OrePrefixes.componentCircuit, - Materials.Capacitor, - ItemList.Circuit_Parts_CapacitorSMD.get(1L), - true); + OrePrefixes.componentCircuit, + Materials.Capacitor, + ItemList.Circuit_Parts_CapacitorSMD.get(1L), + true); GT_OreDictUnificator.addAssociation( - OrePrefixes.componentCircuit, - Materials.Inductor, - ItemList.Circuit_Parts_InductorSMD.get(1L), - true); + OrePrefixes.componentCircuit, + Materials.Inductor, + ItemList.Circuit_Parts_InductorSMD.get(1L), + true); /** * ICs Lenses made from perfect crystals first instead of plates Monocrystalline silicon ingot @@ -163,16 +157,16 @@ public class GT_MetaGenerated_Item_03 extends GT_MetaGenerated_Item_X32 { * quantum chips */ ItemList.Circuit_Silicon_Ingot.set(addItem(tLastID = 30, "Monocrystalline Silicon Boule", "Raw Circuit", o)); - ItemList.Circuit_Silicon_Ingot2.set( - addItem(tLastID = 31, "Phosphorus doped Monocrystalline Silicon Boule", "Raw Circuit", o)); - ItemList.Circuit_Silicon_Ingot3.set( - addItem(tLastID = 32, "Naquadah doped Monocrystalline Silicon Boule", "Raw Circuit", o)); - ItemList.Circuit_Silicon_Ingot4.set( - addItem(tLastID = 150, "Europium doped Monocrystalline Silicon Boule", "Raw Circuit", o)); - ItemList.Circuit_Silicon_Ingot5.set( - addItem(tLastID = 152, "Americium doped Monocrystalline Silicon Boule", "Raw Circuit", o)); - ItemList.Circuit_Silicon_Ingot6.set( - addItem(tLastID = 721, "Optically Enriched Crystalline Boule", "Raw Circuit", o)); + ItemList.Circuit_Silicon_Ingot2 + .set(addItem(tLastID = 31, "Phosphorus doped Monocrystalline Silicon Boule", "Raw Circuit", o)); + ItemList.Circuit_Silicon_Ingot3 + .set(addItem(tLastID = 32, "Naquadah doped Monocrystalline Silicon Boule", "Raw Circuit", o)); + ItemList.Circuit_Silicon_Ingot4 + .set(addItem(tLastID = 150, "Europium doped Monocrystalline Silicon Boule", "Raw Circuit", o)); + ItemList.Circuit_Silicon_Ingot5 + .set(addItem(tLastID = 152, "Americium doped Monocrystalline Silicon Boule", "Raw Circuit", o)); + ItemList.Circuit_Silicon_Ingot6 + .set(addItem(tLastID = 721, "Optically Enriched Crystalline Boule", "Raw Circuit", o)); ItemList.Circuit_Silicon_Wafer.set(addItem(tLastID = 33, "Wafer", "Raw Circuit", o)); ItemList.Circuit_Silicon_Wafer2.set(addItem(tLastID = 34, "Phosphorus doped Wafer", "Raw Circuit", o)); @@ -210,8 +204,8 @@ public class GT_MetaGenerated_Item_03 extends GT_MetaGenerated_Item_X32 { ItemList.Circuit_Chip_HPIC.set(addItem(tLastID = 53, "High Power IC", "High Power Circuit", o)); ItemList.Circuit_Wafer_NanoCPU.set(addItem(tLastID = 54, "NanoCPU Wafer", "Raw Circuit", o)); - ItemList.Circuit_Chip_NanoCPU.set( - addItem(tLastID = 55, "Nanocomponent Central Processing Unit", "Power Circuit", o)); + ItemList.Circuit_Chip_NanoCPU + .set(addItem(tLastID = 55, "Nanocomponent Central Processing Unit", "Power Circuit", o)); ItemList.Circuit_Wafer_QuantumCPU.set(addItem(tLastID = 56, "QBit Wafer", "Raw Circuit", o)); ItemList.Circuit_Chip_QuantumCPU.set(addItem(tLastID = 57, "QBit Processing Unit", "Quantum CPU", o)); @@ -242,10 +236,10 @@ public class GT_MetaGenerated_Item_03 extends GT_MetaGenerated_Item_X32 { /** * Engraved Crystal Chip Engraved Lapotron Chip Crystal CPU SoCrystal stem cells (disassemble eggs) */ - ItemList.Circuit_Chip_CrystalSoC2.set( - addItem(tLastID = 68, "Raw Advanced Crystal Chip", "Raw Advanced Crystal Processor", o)); - ItemList.Circuit_Parts_RawCrystalChip.set( - addItem(tLastID = 69, "Raw Crystal Chip", "Raw Crystal Processor", o)); + ItemList.Circuit_Chip_CrystalSoC2 + .set(addItem(tLastID = 68, "Raw Advanced Crystal Chip", "Raw Advanced Crystal Processor", o)); + ItemList.Circuit_Parts_RawCrystalChip + .set(addItem(tLastID = 69, "Raw Crystal Chip", "Raw Crystal Processor", o)); ItemList.Circuit_Chip_CrystalCPU.set(addItem(tLastID = 70, "Crystal Processing Unit", "Crystal CPU", o)); // Crystal // chip // elite @@ -253,20 +247,20 @@ public class GT_MetaGenerated_Item_03 extends GT_MetaGenerated_Item_X32 { ItemList.Circuit_Chip_CrystalSoC.set(addItem(tLastID = 71, "Crystal SoC", "Crystal System on a Chip", o)); ItemList.Circuit_Chip_NeuroCPU.set(addItem(tLastID = 72, "Neuro Processing Unit", "Neuro CPU", o)); ItemList.Circuit_Chip_Stemcell.set(addItem(tLastID = 73, "Stemcells", "Raw inteligence", o)); - ItemList.Circuit_Parts_RawCrystalParts.set( - addItem(tLastID = 74, "Raw Crystal Chip Parts", "Raw Crystal Processor Parts", o)); + ItemList.Circuit_Parts_RawCrystalParts + .set(addItem(tLastID = 74, "Raw Crystal Chip Parts", "Raw Crystal Processor Parts", o)); ItemList.Circuit_Chip_Biocell.set(addItem(tLastID = 76, "Biocells", "Mutated Raw inteligence", o)); ItemList.Circuit_Chip_BioCPU.set(addItem(tLastID = 77, "Bio Processing Unit", "Bio CPU", o)); ItemList.Circuit_Chip_Optical.set(addItem(tLastID = 724, "Raw Exposed Optical Chip", "Raw Optical Chip", o)); // Nand Chip ItemList.NandChip.set( - addItem( - tLastID = 75, - "NAND Chip", - "A very simple Circuit", - OrePrefixes.circuit.get(Materials.Primitive), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 75, + "NAND Chip", + "A very simple Circuit", + OrePrefixes.circuit.get(Materials.Primitive), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.NandChip.get(1), ULV); // Vacuum Tube Item01 // Basic Circuit IC2 @@ -274,31 +268,31 @@ public class GT_MetaGenerated_Item_03 extends GT_MetaGenerated_Item_X32 { // Integrated Logic Circuit Item01 ItemList.Circuit_Integrated_Good.set( - addItem( - tLastID = 79, - "Good Integrated Circuit", - "Good Circuit", - OrePrefixes.circuit.get(Materials.Good), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 79, + "Good Integrated Circuit", + "Good Circuit", + OrePrefixes.circuit.get(Materials.Good), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_Integrated_Good.get(1), MV); // Good Integrated Circuit Item01 // Advanced Circuit IC2 ItemList.Circuit_Microprocessor.set( - addItem( - tLastID = 78, - "Microprocessor", - "A Basic Circuit", - OrePrefixes.circuit.get(Materials.Basic), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 78, + "Microprocessor", + "A Basic Circuit", + OrePrefixes.circuit.get(Materials.Basic), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_Microprocessor.get(1), LV); ItemList.Circuit_Processor.set( - addItem( - tLastID = 80, - "Integrated Processor", - "A Good Circuit", - OrePrefixes.circuit.get(Materials.Good), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 80, + "Integrated Processor", + "A Good Circuit", + OrePrefixes.circuit.get(Materials.Good), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_Processor.get(1), MV); // ItemList.Circuit_Computer.set(addItem(tLastID = 81, "Processor Assembly", "Advanced Circuit", new // Object[]{OrePrefixes.circuit.get(Materials.Advanced), SubTag.NO_UNIFICATION})); @@ -306,97 +300,97 @@ public class GT_MetaGenerated_Item_03 extends GT_MetaGenerated_Item_X32 { // Mainframe Item01 DataProcessor ItemList.Circuit_Nanoprocessor.set( - addItem( - tLastID = 82, - "Nanoprocessor", - "An Advanced Circuit", - OrePrefixes.circuit.get(Materials.Advanced), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 82, + "Nanoprocessor", + "An Advanced Circuit", + OrePrefixes.circuit.get(Materials.Advanced), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_Nanoprocessor.get(1), HV); ItemList.Circuit_Nanocomputer.set( - addItem( - tLastID = 83, - "Nanoprocessor Assembly", - "An Extreme Circuit", - OrePrefixes.circuit.get(Materials.Data), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 83, + "Nanoprocessor Assembly", + "An Extreme Circuit", + OrePrefixes.circuit.get(Materials.Data), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_Nanocomputer.get(1), EV); ItemList.Circuit_Elitenanocomputer.set( - addItem( - tLastID = 84, - "Elite Nanocomputer", - "An Elite Circuit", - OrePrefixes.circuit.get(Materials.Elite), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 84, + "Elite Nanocomputer", + "An Elite Circuit", + OrePrefixes.circuit.get(Materials.Elite), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_Elitenanocomputer.get(1), IV); // Nanoprocessor Mainframe Item01 Energy Flow Circuit // Quantum circuits ItemList.Circuit_Quantumprocessor.set( - addItem( - tLastID = 85, - "Quantumprocessor", - "An Extreme Circuit", - OrePrefixes.circuit.get(Materials.Data), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 85, + "Quantumprocessor", + "An Extreme Circuit", + OrePrefixes.circuit.get(Materials.Data), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_Quantumprocessor.get(1), EV); ItemList.Circuit_Quantumcomputer.set( - addItem( - tLastID = 86, - "Quantumprocessor Assembly", - "An Elite Circuit", - OrePrefixes.circuit.get(Materials.Elite), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 86, + "Quantumprocessor Assembly", + "An Elite Circuit", + OrePrefixes.circuit.get(Materials.Elite), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_Quantumcomputer.get(1), IV); ItemList.Circuit_Masterquantumcomputer.set( - addItem( - tLastID = 87, - "Master Quantumcomputer", - "A Master Circuit", - OrePrefixes.circuit.get(Materials.Master), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 87, + "Master Quantumcomputer", + "A Master Circuit", + OrePrefixes.circuit.get(Materials.Master), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_Masterquantumcomputer.get(1), LuV); ItemList.Circuit_Quantummainframe.set( - addItem( - tLastID = 88, - "Quantumprocessor Mainframe", - "An Ultimate Circuit", - OrePrefixes.circuit.get(Materials.Ultimate), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 88, + "Quantumprocessor Mainframe", + "An Ultimate Circuit", + OrePrefixes.circuit.get(Materials.Ultimate), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_Quantummainframe.get(1), ZPM); // Crystal circuits ItemList.Circuit_Crystalprocessor.set( - addItem( - tLastID = 89, - "Crystalprocessor", - "An Elite Circuit", - OrePrefixes.circuit.get(Materials.Elite), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 89, + "Crystalprocessor", + "An Elite Circuit", + OrePrefixes.circuit.get(Materials.Elite), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_Crystalprocessor.get(1), IV); ItemList.Circuit_Crystalcomputer.set( - addItem( - tLastID = 96, - "Crystalprocessor Assembly", - "A Master Circuit", - OrePrefixes.circuit.get(Materials.Master), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 96, + "Crystalprocessor Assembly", + "A Master Circuit", + OrePrefixes.circuit.get(Materials.Master), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_Crystalcomputer.get(1), LuV); ItemList.Circuit_Ultimatecrystalcomputer.set( - addItem( - tLastID = 90, - "Ultimate Crystalcomputer", - "An Ultimate Circuit", - OrePrefixes.circuit.get(Materials.Ultimate), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 90, + "Ultimate Crystalcomputer", + "An Ultimate Circuit", + OrePrefixes.circuit.get(Materials.Ultimate), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_Ultimatecrystalcomputer.get(1), ZPM); ItemList.Circuit_Crystalmainframe.set( - addItem( - tLastID = 91, - "Crystalprocessor Mainframe", - "A Super Circuit", - OrePrefixes.circuit.get(Materials.Superconductor), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 91, + "Crystalprocessor Mainframe", + "A Super Circuit", + OrePrefixes.circuit.get(Materials.Superconductor), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_Crystalmainframe.get(1), UV); // ???? Scared to remove. @@ -404,264 +398,264 @@ public class GT_MetaGenerated_Item_03 extends GT_MetaGenerated_Item_X32 { // Wetware circuits ItemList.Circuit_Neuroprocessor.set( - addItem( - tLastID = 92, - "Wetwareprocessor", - "A Master Circuit", - OrePrefixes.circuit.get(Materials.Master), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 92, + "Wetwareprocessor", + "A Master Circuit", + OrePrefixes.circuit.get(Materials.Master), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_Neuroprocessor.get(1), LuV); ItemList.Circuit_Wetwarecomputer.set( - addItem( - tLastID = 93, - "Wetwareprocessor Assembly", - "An Ultimate Circuit", - OrePrefixes.circuit.get(Materials.Ultimate), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 93, + "Wetwareprocessor Assembly", + "An Ultimate Circuit", + OrePrefixes.circuit.get(Materials.Ultimate), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_Wetwarecomputer.get(1), ZPM); ItemList.Circuit_Wetwaresupercomputer.set( - addItem( - tLastID = 94, - "Wetware Supercomputer", - "A Super Circuit", - OrePrefixes.circuit.get(Materials.Superconductor), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 94, + "Wetware Supercomputer", + "A Super Circuit", + OrePrefixes.circuit.get(Materials.Superconductor), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_Wetwaresupercomputer.get(1), UV); ItemList.Circuit_Wetwaremainframe.set( - addItem( - tLastID = 95, - "Wetware Mainframe", - "An Infinite Circuit", - OrePrefixes.circuit.get(Materials.Infinite), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 95, + "Wetware Mainframe", + "An Infinite Circuit", + OrePrefixes.circuit.get(Materials.Infinite), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_Wetwaremainframe.get(1), UHV); // Bioware circuits. ItemList.Circuit_Bioprocessor.set( - addItem( - tLastID = 97, - "Bioprocessor", - "An Ultimate Circuit", - OrePrefixes.circuit.get(Materials.Ultimate), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 97, + "Bioprocessor", + "An Ultimate Circuit", + OrePrefixes.circuit.get(Materials.Ultimate), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_Bioprocessor.get(1), ZPM); ItemList.Circuit_Biowarecomputer.set( - addItem( - tLastID = 98, - "Biowareprocessor Assembly", - "A Super Circuit", - OrePrefixes.circuit.get(Materials.Superconductor), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 98, + "Biowareprocessor Assembly", + "A Super Circuit", + OrePrefixes.circuit.get(Materials.Superconductor), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_Biowarecomputer.get(1), UV); ItemList.Circuit_Biowaresupercomputer.set( - addItem( - tLastID = 99, - "Bioware Supercomputer", - "An Infinite Circuit", - OrePrefixes.circuit.get(Materials.Infinite), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 99, + "Bioware Supercomputer", + "An Infinite Circuit", + OrePrefixes.circuit.get(Materials.Infinite), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_Biowaresupercomputer.get(1), UHV); ItemList.Circuit_Biomainframe.set( - addItem( - tLastID = 120, - "Bio Mainframe", - "A Bio Circuit", - OrePrefixes.circuit.get(Materials.Bio), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 120, + "Bio Mainframe", + "A Bio Circuit", + OrePrefixes.circuit.get(Materials.Bio), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_Biomainframe.get(1), UEV); ItemList.Circuit_Board_Coated_Basic.set(addItem(tLastID = 100, "Circuit Board", "A basic Circuit Board", o)); - ItemList.Circuit_Board_Phenolic_Good.set( - addItem(tLastID = 101, "Good Circuit Board", "A good Circuit Board", o)); - ItemList.Circuit_Board_Epoxy_Advanced.set( - addItem(tLastID = 102, "Advanced Circuit Board", "A advanced Circuit Board", o)); - ItemList.Circuit_Board_Fiberglass_Advanced.set( - addItem(tLastID = 103, "More Advanced Circuit Board", "A more advanced Circuit Board", o)); - ItemList.Circuit_Board_Multifiberglass_Elite.set( - addItem(tLastID = 104, "Elite Circuit Board", "A elite Circuit Board", o)); - ItemList.Circuit_Board_Wetware_Extreme.set( - addItem(tLastID = 105, "Extreme Wetware Lifesupport Circuit Board", "The Board that keeps life", o)); + ItemList.Circuit_Board_Phenolic_Good + .set(addItem(tLastID = 101, "Good Circuit Board", "A good Circuit Board", o)); + ItemList.Circuit_Board_Epoxy_Advanced + .set(addItem(tLastID = 102, "Advanced Circuit Board", "A advanced Circuit Board", o)); + ItemList.Circuit_Board_Fiberglass_Advanced + .set(addItem(tLastID = 103, "More Advanced Circuit Board", "A more advanced Circuit Board", o)); + ItemList.Circuit_Board_Multifiberglass_Elite + .set(addItem(tLastID = 104, "Elite Circuit Board", "A elite Circuit Board", o)); + ItemList.Circuit_Board_Wetware_Extreme + .set(addItem(tLastID = 105, "Extreme Wetware Lifesupport Circuit Board", "The Board that keeps life", o)); ItemList.Circuit_Board_Plastic_Advanced.set(addItem(tLastID = 106, "Plastic Circuit Board", "A good Board", o)); - ItemList.Circuit_Board_Bio_Ultra.set( - addItem(tLastID = 107, "Ultra Bio Mutated Circuit Board", "Bio genetic mutated Board", o)); - ItemList.Circuit_Board_Optical.set( - addItem(tLastID = 728, "Optical Circuit Board", "Optically Infused Board", o)); + ItemList.Circuit_Board_Bio_Ultra + .set(addItem(tLastID = 107, "Ultra Bio Mutated Circuit Board", "Bio genetic mutated Board", o)); + ItemList.Circuit_Board_Optical + .set(addItem(tLastID = 728, "Optical Circuit Board", "Optically Infused Board", o)); // Optical circuits ItemList.Circuit_OpticalProcessor.set( - addItem( - tLastID = 154, - "Optical Processor", - "An Optical Circuit", - OrePrefixes.circuit.get(Materials.Superconductor), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 154, + "Optical Processor", + "An Optical Circuit", + OrePrefixes.circuit.get(Materials.Superconductor), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_OpticalProcessor.get(1), UV); ItemList.Circuit_OpticalAssembly.set( - addItem( - tLastID = 155, - "Optical Assembly", - "An Optical Circuit", - OrePrefixes.circuit.get(Materials.Infinite), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 155, + "Optical Assembly", + "An Optical Circuit", + OrePrefixes.circuit.get(Materials.Infinite), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_OpticalAssembly.get(1), UHV); ItemList.Circuit_OpticalComputer.set( - addItem( - tLastID = 156, - "Optical Computer", - "An Optical Circuit", - OrePrefixes.circuit.get(Materials.Bio), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 156, + "Optical Computer", + "An Optical Circuit", + OrePrefixes.circuit.get(Materials.Bio), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_OpticalComputer.get(1), UEV); ItemList.Circuit_OpticalMainframe.set( - addItem( - tLastID = 157, - "Optical Mainframe", - "An Optical Circuit", - OrePrefixes.circuit.get(Materials.Optical), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 157, + "Optical Mainframe", + "An Optical Circuit", + OrePrefixes.circuit.get(Materials.Optical), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_OpticalMainframe.get(1), UIV); // Exotic circuits ItemList.Circuit_ExoticProcessor.set( - addItem( - tLastID = 166, - "Exotic Processor", - "An Exotic Circuit", - OrePrefixes.circuit.get(Materials.Infinite), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 166, + "Exotic Processor", + "An Exotic Circuit", + OrePrefixes.circuit.get(Materials.Infinite), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_ExoticProcessor.get(1), UHV); ItemList.Circuit_ExoticAssembly.set( - addItem( - tLastID = 167, - "Exotic Assembly", - "An Exotic Circuit", - OrePrefixes.circuit.get(Materials.Bio), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 167, + "Exotic Assembly", + "An Exotic Circuit", + OrePrefixes.circuit.get(Materials.Bio), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_ExoticAssembly.get(1), UEV); ItemList.Circuit_ExoticComputer.set( - addItem( - tLastID = 168, - "Exotic Computer", - "An Exotic Circuit", - OrePrefixes.circuit.get(Materials.Optical), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 168, + "Exotic Computer", + "An Exotic Circuit", + OrePrefixes.circuit.get(Materials.Optical), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_ExoticComputer.get(1), UIV); ItemList.Circuit_ExoticMainframe.set( - addItem( - tLastID = 169, - "Exotic Mainframe", - "An Exotic Circuit", - OrePrefixes.circuit.get(Materials.Exotic), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 169, + "Exotic Mainframe", + "An Exotic Circuit", + OrePrefixes.circuit.get(Materials.Exotic), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_ExoticMainframe.get(1), UMV); // Cosmic circuits ItemList.Circuit_CosmicProcessor.set( - addItem( - tLastID = 170, - "Cosmic Processor", - "A Cosmic Circuit", - OrePrefixes.circuit.get(Materials.Bio), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 170, + "Cosmic Processor", + "A Cosmic Circuit", + OrePrefixes.circuit.get(Materials.Bio), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_CosmicProcessor.get(1), UEV); ItemList.Circuit_CosmicAssembly.set( - addItem( - tLastID = 171, - "Cosmic Assembly", - "A Cosmic Circuit", - OrePrefixes.circuit.get(Materials.Optical), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 171, + "Cosmic Assembly", + "A Cosmic Circuit", + OrePrefixes.circuit.get(Materials.Optical), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_CosmicAssembly.get(1), UIV); ItemList.Circuit_CosmicComputer.set( - addItem( - tLastID = 172, - "Cosmic Computer", - "A Cosmic Circuit", - OrePrefixes.circuit.get(Materials.Exotic), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 172, + "Cosmic Computer", + "A Cosmic Circuit", + OrePrefixes.circuit.get(Materials.Exotic), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_CosmicComputer.get(1), UMV); ItemList.Circuit_CosmicMainframe.set( - addItem( - tLastID = 173, - "Cosmic Mainframe", - "A Cosmic Circuit", - OrePrefixes.circuit.get(Materials.Cosmic), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 173, + "Cosmic Mainframe", + "A Cosmic Circuit", + OrePrefixes.circuit.get(Materials.Cosmic), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_CosmicMainframe.get(1), UXV); // Transcendent circuits ItemList.Circuit_TranscendentProcessor.set( - addItem( - tLastID = 174, - "Temporally Transcendent Processor", - "A circuit operating outside of known spacetime", - OrePrefixes.circuit.get(Materials.Optical), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 174, + "Temporally Transcendent Processor", + "A circuit operating outside of known spacetime", + OrePrefixes.circuit.get(Materials.Optical), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_TranscendentProcessor.get(1), UIV); ItemList.Circuit_TranscendentAssembly.set( - addItem( - tLastID = 175, - "Temporally Transcendent Assembly", - "A circuit operating outside of known spacetime", - OrePrefixes.circuit.get(Materials.Exotic), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 175, + "Temporally Transcendent Assembly", + "A circuit operating outside of known spacetime", + OrePrefixes.circuit.get(Materials.Exotic), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_TranscendentAssembly.get(1), UMV); ItemList.Circuit_TranscendentComputer.set( - addItem( - tLastID = 176, - "Temporally Transcendent Computer", - "A circuit operating outside of known spacetime", - OrePrefixes.circuit.get(Materials.Cosmic), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 176, + "Temporally Transcendent Computer", + "A circuit operating outside of known spacetime", + OrePrefixes.circuit.get(Materials.Cosmic), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_TranscendentComputer.get(1), UXV); ItemList.Circuit_TranscendentMainframe.set( - addItem( - tLastID = 177, - "Temporally Transcendent Mainframe", - "A circuit operating outside of known spacetime", - OrePrefixes.circuit.get(Materials.Transcendent), - SubTag.NO_UNIFICATION)); + addItem( + tLastID = 177, + "Temporally Transcendent Mainframe", + "A circuit operating outside of known spacetime", + OrePrefixes.circuit.get(Materials.Transcendent), + SubTag.NO_UNIFICATION)); registerTieredTooltip(ItemList.Circuit_TranscendentMainframe.get(1), MAX); ItemList.Tube_Wires.set(addItem(tLastID = 110, "Tube Wires", "For the Vacuum Tubes", o)); ItemList.Cover_SolarPanel_UHV.set( - addItem( - tLastID = 130, - "Solar Panel (UHV)", - "Ultimate High Voltage Solar Panel (Needs cleaning with right click)", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 128L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 128L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 128L))); + addItem( + tLastID = 130, + "Solar Panel (UHV)", + "Ultimate High Voltage Solar Panel (Needs cleaning with right click)", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 128L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 128L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 128L))); ItemList.Cover_SolarPanel_UEV.set( - addItem( - tLastID = 131, - "Solar Panel (UEV)", - "Ultimate Extreme Voltage Solar Panel (Needs cleaning with right click)", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 256L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 256L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 256L))); + addItem( + tLastID = 131, + "Solar Panel (UEV)", + "Ultimate Extreme Voltage Solar Panel (Needs cleaning with right click)", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 256L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 256L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 256L))); ItemList.Cover_SolarPanel_UIV.set( - addItem( - tLastID = 132, - "Solar Panel (UIV)", - "Ultimate Insane Voltage Solar Panel (Needs cleaning with right click)", - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 512L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 512L))); + addItem( + tLastID = 132, + "Solar Panel (UIV)", + "Ultimate Insane Voltage Solar Panel (Needs cleaning with right click)", + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 512L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 512L))); GregTech_API.registerCover( - ItemList.Cover_SolarPanel_UHV.get(1L), - TextureFactory.of(SOLARPANEL_UHV), - new GT_Cover_SolarPanel(2097152)); + ItemList.Cover_SolarPanel_UHV.get(1L), + TextureFactory.of(SOLARPANEL_UHV), + new GT_Cover_SolarPanel(2097152)); GregTech_API.registerCover( - ItemList.Cover_SolarPanel_UEV.get(1L), - TextureFactory.of(SOLARPANEL_UEV), - new GT_Cover_SolarPanel(8388608)); + ItemList.Cover_SolarPanel_UEV.get(1L), + TextureFactory.of(SOLARPANEL_UEV), + new GT_Cover_SolarPanel(8388608)); GregTech_API.registerCover( - ItemList.Cover_SolarPanel_UIV.get(1L), - TextureFactory.of(SOLARPANEL_UIV), - new GT_Cover_SolarPanel(33554432)); + ItemList.Cover_SolarPanel_UIV.get(1L), + TextureFactory.of(SOLARPANEL_UIV), + new GT_Cover_SolarPanel(33554432)); ItemList.ULV_Coil.set(addItem(tLastID = 140, "Ultra Low Voltage Coil", "Primitive Coil", o)); ItemList.LV_Coil.set(addItem(tLastID = 141, "Low Voltage Coil", "Basic Coil", o)); @@ -675,8 +669,8 @@ public class GT_MetaGenerated_Item_03 extends GT_MetaGenerated_Item_X32 { ItemList.UHV_Coil.set(addItem(tLastID = 149, "Highly Ultimate Voltage Coil", "Infinite Coil", o)); ItemList.GalliumArsenideCrystal.set(addItem(tLastID = 190, "Gallium Arsenide Crystal", "For making boules", o)); - ItemList.GalliumArsenideCrystalSmallPart.set( - addItem(tLastID = 191, "Small Gallium Arsenide Crystal", "For making boules", o)); + ItemList.GalliumArsenideCrystalSmallPart + .set(addItem(tLastID = 191, "Small Gallium Arsenide Crystal", "For making boules", o)); ItemList.KevlarFiber.set(addItem(tLastID = 192, "Kevlar Fiber", "For make Kevlar Plates", o)); ItemList.WovenKevlar.set(addItem(tLastID = 193, "Woven Kevlar", "For make Kevlar Plates", o)); ItemList.Spinneret.set(addItem(tLastID = 194, "Spinneret", "For make Kevlar Fiber", o)); @@ -684,191 +678,191 @@ public class GT_MetaGenerated_Item_03 extends GT_MetaGenerated_Item_X32 { ItemList.IndustrialApiary_Upgrade_Frame.set(addItem(tLastID = 199, "Upgrade Frame", "Crafting component", o)); ItemList.IndustrialApiary_Upgrade_Acceleration_1.set( - addItem( - tLastID = 200, - "Acceleration Upgrade x2", - "Acceleration upgrade for Industrial Apiary/n Maximum Installed: 1/n * Unlocks 2x acceleration level/n * Energy Consumption +1 AMP LV", - OrePrefixes.apiaryUpgrade.name())); + addItem( + tLastID = 200, + "Acceleration Upgrade x2", + "Acceleration upgrade for Industrial Apiary/n Maximum Installed: 1/n * Unlocks 2x acceleration level/n * Energy Consumption +1 AMP LV", + OrePrefixes.apiaryUpgrade.name())); ItemList.IndustrialApiary_Upgrade_Acceleration_2.set( - addItem( - tLastID = 201, - "Acceleration Upgrade x4", - "Acceleration upgrade for Industrial Apiary/n Maximum Installed: 1/n * Unlocks 4x acceleration level/n * Energy Consumption +1 AMP MV", - OrePrefixes.apiaryUpgrade.name())); + addItem( + tLastID = 201, + "Acceleration Upgrade x4", + "Acceleration upgrade for Industrial Apiary/n Maximum Installed: 1/n * Unlocks 4x acceleration level/n * Energy Consumption +1 AMP MV", + OrePrefixes.apiaryUpgrade.name())); ItemList.IndustrialApiary_Upgrade_Acceleration_3.set( - addItem( - tLastID = 202, - "Acceleration Upgrade x8", - "Acceleration upgrade for Industrial Apiary/n Maximum Installed: 1/n * Unlocks 8x acceleration level/n * Energy Consumption +1 AMP HV", - OrePrefixes.apiaryUpgrade.name())); + addItem( + tLastID = 202, + "Acceleration Upgrade x8", + "Acceleration upgrade for Industrial Apiary/n Maximum Installed: 1/n * Unlocks 8x acceleration level/n * Energy Consumption +1 AMP HV", + OrePrefixes.apiaryUpgrade.name())); ItemList.IndustrialApiary_Upgrade_Acceleration_4.set( - addItem( - tLastID = 203, - "Acceleration Upgrade x16", - "Acceleration upgrade for Industrial Apiary/n Maximum Installed: 1/n * Unlocks 16x acceleration level/n * Energy Consumption +1 AMP EV", - OrePrefixes.apiaryUpgrade.name())); + addItem( + tLastID = 203, + "Acceleration Upgrade x16", + "Acceleration upgrade for Industrial Apiary/n Maximum Installed: 1/n * Unlocks 16x acceleration level/n * Energy Consumption +1 AMP EV", + OrePrefixes.apiaryUpgrade.name())); ItemList.IndustrialApiary_Upgrade_Acceleration_5.set( - addItem( - tLastID = 204, - "Acceleration Upgrade x32", - "Acceleration upgrade for Industrial Apiary/n Maximum Installed: 1/n * Unlocks 32x acceleration level/n * Energy Consumption +1 AMP IV", - OrePrefixes.apiaryUpgrade.name())); + addItem( + tLastID = 204, + "Acceleration Upgrade x32", + "Acceleration upgrade for Industrial Apiary/n Maximum Installed: 1/n * Unlocks 32x acceleration level/n * Energy Consumption +1 AMP IV", + OrePrefixes.apiaryUpgrade.name())); ItemList.IndustrialApiary_Upgrade_Acceleration_6.set( - addItem( - tLastID = 205, - "Acceleration Upgrade x64", - "Acceleration upgrade for Industrial Apiary/n Maximum Installed: 1/n * Unlocks 64x acceleration level/n * Energy Consumption +1 AMP LuV", - OrePrefixes.apiaryUpgrade.name())); + addItem( + tLastID = 205, + "Acceleration Upgrade x64", + "Acceleration upgrade for Industrial Apiary/n Maximum Installed: 1/n * Unlocks 64x acceleration level/n * Energy Consumption +1 AMP LuV", + OrePrefixes.apiaryUpgrade.name())); ItemList.IndustrialApiary_Upgrade_Acceleration_7.set( - addItem( - tLastID = 206, - "Acceleration Upgrade x128", - "Acceleration upgrade for Industrial Apiary/n Maximum Installed: 1/n * Unlocks 128x acceleration level/n * Energy Consumption +1 AMP ZPM", - OrePrefixes.apiaryUpgrade.name())); + addItem( + tLastID = 206, + "Acceleration Upgrade x128", + "Acceleration upgrade for Industrial Apiary/n Maximum Installed: 1/n * Unlocks 128x acceleration level/n * Energy Consumption +1 AMP ZPM", + OrePrefixes.apiaryUpgrade.name())); ItemList.IndustrialApiary_Upgrade_Acceleration_8.set( - addItem( - tLastID = 207, - "Acceleration Upgrade x256", - "Acceleration upgrade for Industrial Apiary/n Maximum Installed: 1/n * Unlocks 256x acceleration level/n * Energy Consumption +1 AMP UV", - OrePrefixes.apiaryUpgrade.name())); + addItem( + tLastID = 207, + "Acceleration Upgrade x256", + "Acceleration upgrade for Industrial Apiary/n Maximum Installed: 1/n * Unlocks 256x acceleration level/n * Energy Consumption +1 AMP UV", + OrePrefixes.apiaryUpgrade.name())); ItemList.IndustrialApiary_Upgrade_Acceleration_8_Upgraded.set( - addItem( - tLastID = 208, - "Upgraded Acceleration Upgrade x256", - "Acceleration upgrade for Industrial Apiary/n Maximum Installed: 1/n * Unlocks 256x acceleration level/n * Will also grant 8x production upgrade/n * Energy Consumption +1 AMP UV", - OrePrefixes.apiaryUpgrade.name())); + addItem( + tLastID = 208, + "Upgraded Acceleration Upgrade x256", + "Acceleration upgrade for Industrial Apiary/n Maximum Installed: 1/n * Unlocks 256x acceleration level/n * Will also grant 8x production upgrade/n * Energy Consumption +1 AMP UV", + OrePrefixes.apiaryUpgrade.name())); ItemList.IndustrialApiary_Upgrade_PRODUCTION.set( - addItem( - tLastID = 209, - "Production Upgrade", - "Production upgrade for Industrial Apiary/n Maximum Installed: 8/n Increases production modifier by 0.25/n Energy Consumption +40%", - OrePrefixes.apiaryUpgrade.name())); + addItem( + tLastID = 209, + "Production Upgrade", + "Production upgrade for Industrial Apiary/n Maximum Installed: 8/n Increases production modifier by 0.25/n Energy Consumption +40%", + OrePrefixes.apiaryUpgrade.name())); ItemList.IndustrialApiary_Upgrade_PLAINS.set( - addItem( - tLastID = 210, - "Plains Emulation Upgrade", - "Plains emulation upgrade for Industrial Apiary/n Maximum Installed: 1/n * Biome Override: Plains/n * Energy Consumption +40%", - OrePrefixes.apiaryUpgrade.name())); + addItem( + tLastID = 210, + "Plains Emulation Upgrade", + "Plains emulation upgrade for Industrial Apiary/n Maximum Installed: 1/n * Biome Override: Plains/n * Energy Consumption +40%", + OrePrefixes.apiaryUpgrade.name())); ItemList.IndustrialApiary_Upgrade_LIGHT.set( - addItem( - tLastID = 211, - "Light Upgrade", - "Light upgrade for Industrial Apiary/n Maximum Installed: 1/n * Internal Lighting/n * Energy Consumption +5%", - OrePrefixes.apiaryUpgrade.name())); + addItem( + tLastID = 211, + "Light Upgrade", + "Light upgrade for Industrial Apiary/n Maximum Installed: 1/n * Internal Lighting/n * Energy Consumption +5%", + OrePrefixes.apiaryUpgrade.name())); ItemList.IndustrialApiary_Upgrade_FLOWERING.set( - addItem( - tLastID = 212, - "Flowering Upgrade", - "Flowering upgrade for Industrial Apiary/n Maximum Installed: 8/n * Flowering and Pollination +20%/n * Energy Consumption +10%", - OrePrefixes.apiaryUpgrade.name())); + addItem( + tLastID = 212, + "Flowering Upgrade", + "Flowering upgrade for Industrial Apiary/n Maximum Installed: 8/n * Flowering and Pollination +20%/n * Energy Consumption +10%", + OrePrefixes.apiaryUpgrade.name())); ItemList.IndustrialApiary_Upgrade_WINTER.set( - addItem( - tLastID = 213, - "Winter Emulation Upgrade", - "Winter emulation upgrade for Industrial Apiary/n Maximum Installed: 1/n * Biome Override: Taiga/n * Energy Consumption +50%", - OrePrefixes.apiaryUpgrade.name())); + addItem( + tLastID = 213, + "Winter Emulation Upgrade", + "Winter emulation upgrade for Industrial Apiary/n Maximum Installed: 1/n * Biome Override: Taiga/n * Energy Consumption +50%", + OrePrefixes.apiaryUpgrade.name())); ItemList.IndustrialApiary_Upgrade_DRYER.set( - addItem( - tLastID = 214, - "Dryer Upgrade", - "Dryer upgrade for Industrial Apiary/n Maximum Installed: 8/n * Humidity -25%/n * Energy Consumption +5%", - OrePrefixes.apiaryUpgrade.name())); + addItem( + tLastID = 214, + "Dryer Upgrade", + "Dryer upgrade for Industrial Apiary/n Maximum Installed: 8/n * Humidity -25%/n * Energy Consumption +5%", + OrePrefixes.apiaryUpgrade.name())); ItemList.IndustrialApiary_Upgrade_AUTOMATION.set( - addItem( - tLastID = 215, - "Automation Upgrade", - "Automation upgrade for Industrial Apiary/n Maximum Installed: 1/n * Automation/n * Energy Consumption +10%", - OrePrefixes.apiaryUpgrade.name())); + addItem( + tLastID = 215, + "Automation Upgrade", + "Automation upgrade for Industrial Apiary/n Maximum Installed: 1/n * Automation/n * Energy Consumption +10%", + OrePrefixes.apiaryUpgrade.name())); ItemList.IndustrialApiary_Upgrade_HUMIDIFIER.set( - addItem( - tLastID = 216, - "Humidifier Upgrade", - "Humidifier upgrade for Industrial Apiary/n Maximum Installed: 8/n * Humidity +25%/n * Energy Consumption +5%", - OrePrefixes.apiaryUpgrade.name())); + addItem( + tLastID = 216, + "Humidifier Upgrade", + "Humidifier upgrade for Industrial Apiary/n Maximum Installed: 8/n * Humidity +25%/n * Energy Consumption +5%", + OrePrefixes.apiaryUpgrade.name())); ItemList.IndustrialApiary_Upgrade_HELL.set( - addItem( - tLastID = 217, - "HELL Emulation Upgrade", - "HELL emulation upgrade for Industrial Apiary/n Maximum Installed: 1/n * Biome Override: HELL/n * Energy Consumption +50%", - OrePrefixes.apiaryUpgrade.name())); + addItem( + tLastID = 217, + "HELL Emulation Upgrade", + "HELL emulation upgrade for Industrial Apiary/n Maximum Installed: 1/n * Biome Override: HELL/n * Energy Consumption +50%", + OrePrefixes.apiaryUpgrade.name())); ItemList.IndustrialApiary_Upgrade_POLLEN.set( - addItem( - tLastID = 218, - "Pollen Scrubber Upgrade", - "Pollen scrubber upgrade for Industrial Apiary/n Maximum Installed: 1/n * Flowering and Pollination -100%/n * Energy Consumption +30%", - OrePrefixes.apiaryUpgrade.name())); + addItem( + tLastID = 218, + "Pollen Scrubber Upgrade", + "Pollen scrubber upgrade for Industrial Apiary/n Maximum Installed: 1/n * Flowering and Pollination -100%/n * Energy Consumption +30%", + OrePrefixes.apiaryUpgrade.name())); ItemList.IndustrialApiary_Upgrade_DESERT.set( - addItem( - tLastID = 219, - "Desert Emulation Upgrade", - "Desert emulation upgrade for Industrial Apiary/n Maximum Installed: 1/n * Biome Override: Desert/n * Energy Consumption +20%", - OrePrefixes.apiaryUpgrade.name())); + addItem( + tLastID = 219, + "Desert Emulation Upgrade", + "Desert emulation upgrade for Industrial Apiary/n Maximum Installed: 1/n * Biome Override: Desert/n * Energy Consumption +20%", + OrePrefixes.apiaryUpgrade.name())); ItemList.IndustrialApiary_Upgrade_COOLER.set( - addItem( - tLastID = 220, - "Cooler Upgrade", - "Cooler upgrade for Industrial Apiary/n Maximum Installed: 8/n * Temperature -25%/n * Energy Consumption +5%", - OrePrefixes.apiaryUpgrade.name())); + addItem( + tLastID = 220, + "Cooler Upgrade", + "Cooler upgrade for Industrial Apiary/n Maximum Installed: 8/n * Temperature -25%/n * Energy Consumption +5%", + OrePrefixes.apiaryUpgrade.name())); ItemList.IndustrialApiary_Upgrade_LIFESPAN.set( - addItem( - tLastID = 221, - "Lifespan Upgrade", - "Lifespan upgrade for Industrial Apiary/n Maximum Installed: 4/n * Lifespan -33%/n * Energy Consumption +5%", - OrePrefixes.apiaryUpgrade.name())); + addItem( + tLastID = 221, + "Lifespan Upgrade", + "Lifespan upgrade for Industrial Apiary/n Maximum Installed: 4/n * Lifespan -33%/n * Energy Consumption +5%", + OrePrefixes.apiaryUpgrade.name())); ItemList.IndustrialApiary_Upgrade_SEAL.set( - addItem( - tLastID = 222, - "Seal Upgrade", - "Seal upgrade for Industrial Apiary/n Maximum Installed: 1/n * Rain Protection/n * Energy Consumption +5%", - OrePrefixes.apiaryUpgrade.name())); + addItem( + tLastID = 222, + "Seal Upgrade", + "Seal upgrade for Industrial Apiary/n Maximum Installed: 1/n * Rain Protection/n * Energy Consumption +5%", + OrePrefixes.apiaryUpgrade.name())); ItemList.IndustrialApiary_Upgrade_STABILIZER.set( - addItem( - tLastID = 223, - "Genetic Stabilizer Upgrade", - "Genetic stabilizer upgrade for Industrial Apiary/n Maximum Installed: 1/n * Genetic Decay -100%/n * Energy Consumption +150%", - OrePrefixes.apiaryUpgrade.name())); + addItem( + tLastID = 223, + "Genetic Stabilizer Upgrade", + "Genetic stabilizer upgrade for Industrial Apiary/n Maximum Installed: 1/n * Genetic Decay -100%/n * Energy Consumption +150%", + OrePrefixes.apiaryUpgrade.name())); ItemList.IndustrialApiary_Upgrade_JUNGLE.set( - addItem( - tLastID = 224, - "Jungle Emulation Upgrade", - "Jungle emulation upgrade for Industrial Apiary/n Maximum Installed: 1/n * Biome Override: Jungle/n * Energy Consumption +20%", - OrePrefixes.apiaryUpgrade.name())); + addItem( + tLastID = 224, + "Jungle Emulation Upgrade", + "Jungle emulation upgrade for Industrial Apiary/n Maximum Installed: 1/n * Biome Override: Jungle/n * Energy Consumption +20%", + OrePrefixes.apiaryUpgrade.name())); ItemList.IndustrialApiary_Upgrade_TERRITORY.set( - addItem( - tLastID = 225, - "Territory Upgrade", - "Territory upgrade for Industrial Apiary/n Maximum Installed: 4/n * Territory +50%/n * Energy Consumption +5%", - OrePrefixes.apiaryUpgrade.name())); + addItem( + tLastID = 225, + "Territory Upgrade", + "Territory upgrade for Industrial Apiary/n Maximum Installed: 4/n * Territory +50%/n * Energy Consumption +5%", + OrePrefixes.apiaryUpgrade.name())); ItemList.IndustrialApiary_Upgrade_OCEAN.set( - addItem( - tLastID = 226, - "Ocean Emulation Upgrade", - "Ocean emulation upgrade for Industrial Apiary/n Maximum Installed: 1/n * Biome Override: Ocean/n * Energy Consumption +20%", - OrePrefixes.apiaryUpgrade.name())); + addItem( + tLastID = 226, + "Ocean Emulation Upgrade", + "Ocean emulation upgrade for Industrial Apiary/n Maximum Installed: 1/n * Biome Override: Ocean/n * Energy Consumption +20%", + OrePrefixes.apiaryUpgrade.name())); ItemList.IndustrialApiary_Upgrade_SKY.set( - addItem( - tLastID = 227, - "Open Sky Upgrade", - "Open sky upgrade for Industrial Apiary/n Maximum Installed: 1/n * Open Sky Simulation/n * Energy Consumption +5%", - OrePrefixes.apiaryUpgrade.name())); + addItem( + tLastID = 227, + "Open Sky Upgrade", + "Open sky upgrade for Industrial Apiary/n Maximum Installed: 1/n * Open Sky Simulation/n * Energy Consumption +5%", + OrePrefixes.apiaryUpgrade.name())); ItemList.IndustrialApiary_Upgrade_HEATER.set( - addItem( - tLastID = 228, - "Heater Upgrade", - "Heater upgrade for Industrial Apiary/n Maximum Installed: 8/n * Temperature +25%/n * Energy Consumption +5%", - OrePrefixes.apiaryUpgrade.name())); + addItem( + tLastID = 228, + "Heater Upgrade", + "Heater upgrade for Industrial Apiary/n Maximum Installed: 8/n * Temperature +25%/n * Energy Consumption +5%", + OrePrefixes.apiaryUpgrade.name())); ItemList.IndustrialApiary_Upgrade_SIEVE.set( - addItem( - tLastID = 229, - "Sieve Upgrade", - "Sieve upgrade for Industrial Apiary/n Maximum Installed: 1/n * Pollen Collection/n * Energy Consumption +25%", - OrePrefixes.apiaryUpgrade.name())); + addItem( + tLastID = 229, + "Sieve Upgrade", + "Sieve upgrade for Industrial Apiary/n Maximum Installed: 1/n * Pollen Collection/n * Energy Consumption +25%", + OrePrefixes.apiaryUpgrade.name())); ItemList.IndustrialApiary_Upgrade_UNLIGHT.set( - addItem( - tLastID = 231, - "Night Upgrade", - "Night upgrade for Industrial Apiary/n Maximum Installed: 1/n * Internal Darkness/n * Energy Consumption +5%", - OrePrefixes.apiaryUpgrade.name())); + addItem( + tLastID = 231, + "Night Upgrade", + "Night upgrade for Industrial Apiary/n Maximum Installed: 1/n * Internal Darkness/n * Energy Consumption +5%", + OrePrefixes.apiaryUpgrade.name())); OrePrefixes.apiaryUpgrade.add(ItemList.IndustrialApiary_Upgrade_Acceleration_1.get(1L)); OrePrefixes.apiaryUpgrade.add(ItemList.IndustrialApiary_Upgrade_Acceleration_2.get(1L)); @@ -903,165 +897,159 @@ public class GT_MetaGenerated_Item_03 extends GT_MetaGenerated_Item_X32 { OrePrefixes.apiaryUpgrade.add(ItemList.IndustrialApiary_Upgrade_UNLIGHT.get(1L)); ItemList.NuclearStar.set( - addItem( - 230, - "Nuclear Star", - "BY THE POWERS OF NAUGHTINESS, I COMMAND THIS PARTICULAR STAR, TO BE REALLY, REALLY HOT", - SubTag.NO_UNIFICATION)); + addItem( + 230, + "Nuclear Star", + "BY THE POWERS OF NAUGHTINESS, I COMMAND THIS PARTICULAR STAR, TO BE REALLY, REALLY HOT", + SubTag.NO_UNIFICATION)); - ItemList.Optical_Cpu_Containment_Housing.set( - addItem(tLastID = 727, "Optical CPU Containment Housing", "CPU Housing", o)); + ItemList.Optical_Cpu_Containment_Housing + .set(addItem(tLastID = 727, "Optical CPU Containment Housing", "CPU Housing", o)); ItemList.Optically_Perfected_CPU.set(addItem(tLastID = 726, "Optically Perfected CPU", "Perfected CPU!", o)); - ItemList.Optically_Compatible_Memory.set( - addItem(tLastID = 725, "Optically Compatible Memory", "Its in the name!", o)); + ItemList.Optically_Compatible_Memory + .set(addItem(tLastID = 725, "Optically Compatible Memory", "Its in the name!", o)); int whiteDwarfIDs = 729; ItemList.White_Dwarf_Shape_Extruder_Plate.set( - addItem( - whiteDwarfIDs++, - "White Dwarf Extruder Shape (Plate)", - "Ultra Strong Stellar Shape for making Plates")); + addItem( + whiteDwarfIDs++, + "White Dwarf Extruder Shape (Plate)", + "Ultra Strong Stellar Shape for making Plates")); ItemList.White_Dwarf_Shape_Extruder_Rod.set( - addItem( - whiteDwarfIDs++, - "White Dwarf Extruder Shape (Rod)", - "Ultra Strong Stellar Shape for making Rods")); + addItem(whiteDwarfIDs++, "White Dwarf Extruder Shape (Rod)", "Ultra Strong Stellar Shape for making Rods")); ItemList.White_Dwarf_Shape_Extruder_Bolt.set( - addItem( - whiteDwarfIDs++, - "White Dwarf Extruder Shape (Bolt)", - "Ultra Strong Stellar Shape for making Bolts")); + addItem( + whiteDwarfIDs++, + "White Dwarf Extruder Shape (Bolt)", + "Ultra Strong Stellar Shape for making Bolts")); ItemList.White_Dwarf_Shape_Extruder_Ring.set( - addItem( - whiteDwarfIDs++, - "White Dwarf Extruder Shape (Ring)", - "Ultra Strong Stellar Shape for making Rings")); + addItem( + whiteDwarfIDs++, + "White Dwarf Extruder Shape (Ring)", + "Ultra Strong Stellar Shape for making Rings")); ItemList.White_Dwarf_Shape_Extruder_Cell.set( - addItem( - whiteDwarfIDs++, - "White Dwarf Extruder Shape (Cell)", - "Ultra Strong Stellar Shape for making Cells")); + addItem( + whiteDwarfIDs++, + "White Dwarf Extruder Shape (Cell)", + "Ultra Strong Stellar Shape for making Cells")); ItemList.White_Dwarf_Shape_Extruder_Ingot.set( - addItem( - whiteDwarfIDs++, - "White Dwarf Extruder Shape (Ingot)", - "Ultra Strong Stellar Shape for, wait, can't we just use a Furnace?")); + addItem( + whiteDwarfIDs++, + "White Dwarf Extruder Shape (Ingot)", + "Ultra Strong Stellar Shape for, wait, can't we just use a Furnace?")); ItemList.White_Dwarf_Shape_Extruder_Wire.set( - addItem( - whiteDwarfIDs++, - "White Dwarf Extruder Shape (Wire)", - "Ultra Strong Stellar Shape for making Wires")); + addItem( + whiteDwarfIDs++, + "White Dwarf Extruder Shape (Wire)", + "Ultra Strong Stellar Shape for making Wires")); ItemList.White_Dwarf_Shape_Extruder_Casing.set( - addItem( - whiteDwarfIDs++, - "White Dwarf Extruder Shape (Casing)", - "Ultra Strong Stellar Shape for making Item Casings")); + addItem( + whiteDwarfIDs++, + "White Dwarf Extruder Shape (Casing)", + "Ultra Strong Stellar Shape for making Item Casings")); ItemList.White_Dwarf_Shape_Extruder_Pipe_Tiny.set( - addItem( - whiteDwarfIDs++, - "White Dwarf Extruder Shape (Tiny Pipe)", - "Ultra Strong Stellar Shape for making tiny Pipes")); + addItem( + whiteDwarfIDs++, + "White Dwarf Extruder Shape (Tiny Pipe)", + "Ultra Strong Stellar Shape for making tiny Pipes")); ItemList.White_Dwarf_Shape_Extruder_Pipe_Small.set( - addItem( - whiteDwarfIDs++, - "White Dwarf Extruder Shape (Small Pipe)", - "Ultra Strong Stellar Shape for making small Pipes")); + addItem( + whiteDwarfIDs++, + "White Dwarf Extruder Shape (Small Pipe)", + "Ultra Strong Stellar Shape for making small Pipes")); ItemList.White_Dwarf_Shape_Extruder_Pipe_Medium.set( - addItem( - whiteDwarfIDs++, - "White Dwarf Extruder Shape (Normal Pipe)", - "Ultra Strong Stellar Shape for making Pipes")); + addItem( + whiteDwarfIDs++, + "White Dwarf Extruder Shape (Normal Pipe)", + "Ultra Strong Stellar Shape for making Pipes")); ItemList.White_Dwarf_Shape_Extruder_Pipe_Large.set( - addItem( - whiteDwarfIDs++, - "White Dwarf Extruder Shape (Large Pipe)", - "Ultra Strong Stellar Shape for making large Pipes")); + addItem( + whiteDwarfIDs++, + "White Dwarf Extruder Shape (Large Pipe)", + "Ultra Strong Stellar Shape for making large Pipes")); ItemList.White_Dwarf_Shape_Extruder_Pipe_Huge.set( - addItem( - whiteDwarfIDs++, - "White Dwarf Extruder Shape (Huge Pipe)", - "Ultra Strong Stellar Shape for making full Block Pipes")); + addItem( + whiteDwarfIDs++, + "White Dwarf Extruder Shape (Huge Pipe)", + "Ultra Strong Stellar Shape for making full Block Pipes")); ItemList.White_Dwarf_Shape_Extruder_Block.set( - addItem( - whiteDwarfIDs++, - "White Dwarf Extruder Shape (Block)", - "Ultra Strong Stellar Shape for making Blocks")); + addItem( + whiteDwarfIDs++, + "White Dwarf Extruder Shape (Block)", + "Ultra Strong Stellar Shape for making Blocks")); ItemList.White_Dwarf_Shape_Extruder_Sword.set( - addItem( - whiteDwarfIDs++, - "White Dwarf Extruder Shape (Sword Blade)", - "Ultra Strong Stellar Shape for making Swords")); + addItem( + whiteDwarfIDs++, + "White Dwarf Extruder Shape (Sword Blade)", + "Ultra Strong Stellar Shape for making Swords")); ItemList.White_Dwarf_Shape_Extruder_Pickaxe.set( - addItem( - whiteDwarfIDs++, - "White Dwarf Extruder Shape (Pickaxe Head)", - "Ultra Strong Stellar Shape for making Pickaxes")); + addItem( + whiteDwarfIDs++, + "White Dwarf Extruder Shape (Pickaxe Head)", + "Ultra Strong Stellar Shape for making Pickaxes")); ItemList.White_Dwarf_Shape_Extruder_Shovel.set( - addItem( - whiteDwarfIDs++, - "White Dwarf Extruder Shape (Shovel Head)", - "Ultra Strong Stellar Shape for making Shovels")); + addItem( + whiteDwarfIDs++, + "White Dwarf Extruder Shape (Shovel Head)", + "Ultra Strong Stellar Shape for making Shovels")); ItemList.White_Dwarf_Shape_Extruder_Axe.set( - addItem( - whiteDwarfIDs++, - "White Dwarf Extruder Shape (Axe Head)", - "Ultra Strong Stellar Shape for making Axes")); + addItem( + whiteDwarfIDs++, + "White Dwarf Extruder Shape (Axe Head)", + "Ultra Strong Stellar Shape for making Axes")); ItemList.White_Dwarf_Shape_Extruder_Hoe.set( - addItem( - whiteDwarfIDs++, - "White Dwarf Extruder Shape (Hoe Head)", - "Ultra Strong Stellar Shape for making Hoes")); + addItem( + whiteDwarfIDs++, + "White Dwarf Extruder Shape (Hoe Head)", + "Ultra Strong Stellar Shape for making Hoes")); ItemList.White_Dwarf_Shape_Extruder_Hammer.set( - addItem( - whiteDwarfIDs++, - "White Dwarf Extruder Shape (Hammer Head)", - "Ultra Strong Stellar Shape for making Hammers")); + addItem( + whiteDwarfIDs++, + "White Dwarf Extruder Shape (Hammer Head)", + "Ultra Strong Stellar Shape for making Hammers")); ItemList.White_Dwarf_Shape_Extruder_File.set( - addItem( - whiteDwarfIDs++, - "White Dwarf Extruder Shape (File Head)", - "Ultra Strong Stellar Shape for making Files")); + addItem( + whiteDwarfIDs++, + "White Dwarf Extruder Shape (File Head)", + "Ultra Strong Stellar Shape for making Files")); ItemList.White_Dwarf_Shape_Extruder_Saw.set( - addItem( - whiteDwarfIDs++, - "White Dwarf Extruder Shape (Saw Blade)", - "Ultra Strong Stellar Shape for making Saws")); + addItem( + whiteDwarfIDs++, + "White Dwarf Extruder Shape (Saw Blade)", + "Ultra Strong Stellar Shape for making Saws")); ItemList.White_Dwarf_Shape_Extruder_Gear.set( - addItem( - whiteDwarfIDs++, - "White Dwarf Extruder Shape (Gear)", - "Ultra Strong Stellar Shape for making Gears")); + addItem( + whiteDwarfIDs++, + "White Dwarf Extruder Shape (Gear)", + "Ultra Strong Stellar Shape for making Gears")); ItemList.White_Dwarf_Shape_Extruder_Bottle.set( - addItem( - whiteDwarfIDs++, - "White Dwarf Extruder Shape (Bottle)", - "Ultra Strong Stellar Shape for making Bottles")); + addItem( + whiteDwarfIDs++, + "White Dwarf Extruder Shape (Bottle)", + "Ultra Strong Stellar Shape for making Bottles")); ItemList.White_Dwarf_Shape_Extruder_Rotor.set( - addItem( - whiteDwarfIDs++, - "White Dwarf Extruder Shape (Rotor)", - "Ultra Strong Stellar Shape for a Rotor")); + addItem(whiteDwarfIDs++, "White Dwarf Extruder Shape (Rotor)", "Ultra Strong Stellar Shape for a Rotor")); ItemList.White_Dwarf_Shape_Extruder_Small_Gear.set( - addItem( - whiteDwarfIDs++, - "White Dwarf Extruder Shape (Small Gear)", - "Ultra Strong Stellar Shape for a Small Gear")); + addItem( + whiteDwarfIDs++, + "White Dwarf Extruder Shape (Small Gear)", + "Ultra Strong Stellar Shape for a Small Gear")); ItemList.White_Dwarf_Shape_Extruder_Turbine_Blade.set( - addItem( - whiteDwarfIDs++, - "White Dwarf Extruder Shape (Turbine Blade)", - "Ultra Strong Stellar Extruder Shape for a Turbine Blade")); + addItem( + whiteDwarfIDs++, + "White Dwarf Extruder Shape (Turbine Blade)", + "Ultra Strong Stellar Extruder Shape for a Turbine Blade")); ItemList.White_Dwarf_Shape_Extruder_ToolHeadDrill.set( - addItem( - whiteDwarfIDs, - "White Dwarf Extruder Shape (Drill Head)", - "White Dwarf Extruder Shape for a Drill Head")); + addItem( + whiteDwarfIDs, + "White Dwarf Extruder Shape (Drill Head)", + "White Dwarf Extruder Shape for a Drill Head")); } @Override public boolean doesShowInCreative(OrePrefixes aPrefix, Materials aMaterial, boolean aDoShowAllItems) { return aDoShowAllItems || (aPrefix.toString() - .toLowerCase() - .contains("nanite")); + .toLowerCase() + .contains("nanite")); } } diff --git a/src/main/java/gregtech/common/items/GT_MetaGenerated_Item_98.java b/src/main/java/gregtech/common/items/GT_MetaGenerated_Item_98.java index c748ae8520..8979d358f1 100644 --- a/src/main/java/gregtech/common/items/GT_MetaGenerated_Item_98.java +++ b/src/main/java/gregtech/common/items/GT_MetaGenerated_Item_98.java @@ -257,8 +257,8 @@ public class GT_MetaGenerated_Item_98 extends GT_MetaGenerated_Item { // These fluids are non-GT fluids, so the mod may not be present. if (isStackAlreadySet) { throw new RuntimeException( - "Cell item for fluid " + fluidName - + " has already been created, but the fluid doesn't exist during postload"); + "Cell item for fluid " + fluidName + + " has already been created, but the fluid doesn't exist during postload"); } else { // fluid doesn't exist and this item has not been referenced return; @@ -268,13 +268,13 @@ public class GT_MetaGenerated_Item_98 extends GT_MetaGenerated_Item { FluidStack fluidStack = new FluidStack(fluid, cellType.capacity); ItemStack emptyCell = ItemList.Cell_Empty.get(1L); - FluidContainerRegistry.registerFluidContainer( - new FluidContainerRegistry.FluidContainerData(fluidStack, aCell.mStack, emptyCell)); + FluidContainerRegistry + .registerFluidContainer(new FluidContainerRegistry.FluidContainerData(fluidStack, aCell.mStack, emptyCell)); GT_LanguageManager.addStringLocalization( - getUnlocalizedName(aCell.mStack) + ".name", - cellType.prefix.mLocalizedMaterialPre + fluid.getLocalizedName(fluidStack) - + cellType.prefix.mLocalizedMaterialPost); + getUnlocalizedName(aCell.mStack) + ".name", + cellType.prefix.mLocalizedMaterialPre + fluid.getLocalizedName(fluidStack) + + cellType.prefix.mLocalizedMaterialPost); int color = fluid.getColor(); short[] rgba = GT_Util.getRGBaArray(color); @@ -314,10 +314,10 @@ public class GT_MetaGenerated_Item_98 extends GT_MetaGenerated_Item { @SideOnly(Side.CLIENT) public void getSubItems(Item aItem, CreativeTabs aCreativeTab, List aList) { Arrays.stream(FluidCell.values()) - .filter(fluid -> FluidRegistry.getFluid(fluid.getFluidName()) != null) - .map(FluidCell::get) - .filter(Objects::nonNull) - .forEach(aList::add); + .filter(fluid -> FluidRegistry.getFluid(fluid.getFluidName()) != null) + .map(FluidCell::get) + .filter(Objects::nonNull) + .forEach(aList::add); } @Override diff --git a/src/main/java/gregtech/common/items/GT_MetaGenerated_Item_99.java b/src/main/java/gregtech/common/items/GT_MetaGenerated_Item_99.java index ce3ef4be30..aa7576911b 100644 --- a/src/main/java/gregtech/common/items/GT_MetaGenerated_Item_99.java +++ b/src/main/java/gregtech/common/items/GT_MetaGenerated_Item_99.java @@ -36,12 +36,12 @@ public class GT_MetaGenerated_Item_99 extends GT_MetaGenerated_Item { * modification that can be made to this list is adding new entries to the end. */ private static final ImmutableList CRACKED_CELL_TYPES = ImmutableList.of( - OrePrefixes.cellHydroCracked1, - OrePrefixes.cellHydroCracked2, - OrePrefixes.cellHydroCracked3, - OrePrefixes.cellSteamCracked1, - OrePrefixes.cellSteamCracked2, - OrePrefixes.cellSteamCracked3); + OrePrefixes.cellHydroCracked1, + OrePrefixes.cellHydroCracked2, + OrePrefixes.cellHydroCracked3, + OrePrefixes.cellSteamCracked1, + OrePrefixes.cellSteamCracked2, + OrePrefixes.cellSteamCracked3); private static final int NUM_CRACKED_CELL_TYPES = CRACKED_CELL_TYPES.size(); @@ -62,10 +62,10 @@ public class GT_MetaGenerated_Item_99 extends GT_MetaGenerated_Item { } if ((tMaterial.contains(SubTag.SMELTING_TO_FLUID)) && (!tMaterial.contains(SubTag.NO_SMELTING)) - && !tMaterial.contains(SubTag.SMELTING_TO_GEM)) { + && !tMaterial.contains(SubTag.SMELTING_TO_GEM)) { registerMolten(tMaterial, tMaterial.mMetaItemSubID); if (tMaterial.mSmeltInto != tMaterial && tMaterial.mSmeltInto.mMetaItemSubID >= 0 - && tMaterial.mSmeltInto.mMetaItemSubID < 1_000) { + && tMaterial.mSmeltInto.mMetaItemSubID < 1_000) { registerMolten(tMaterial.mSmeltInto, tMaterial.mSmeltInto.mMetaItemSubID); } } @@ -85,11 +85,11 @@ public class GT_MetaGenerated_Item_99 extends GT_MetaGenerated_Item { enabled.set(i); GT_LanguageManager.addStringLocalization( - getUnlocalizedName(tStack) + ".name", - cellMolten.getDefaultLocalNameFormatForItem(tMaterial)); + getUnlocalizedName(tStack) + ".name", + cellMolten.getDefaultLocalNameFormatForItem(tMaterial)); GT_LanguageManager.addStringLocalization( - getUnlocalizedName(tStack) + ".tooltip", - tMaterial.getToolTip(cellMolten.mMaterialAmount / M)); + getUnlocalizedName(tStack) + ".tooltip", + tMaterial.getToolTip(cellMolten.mMaterialAmount / M)); if (cellMolten.mIsUnificatable) { GT_OreDictUnificator.set(cellMolten, tMaterial, tStack); @@ -105,11 +105,11 @@ public class GT_MetaGenerated_Item_99 extends GT_MetaGenerated_Item { enabled.set(offset + i); GT_LanguageManager.addStringLocalization( - getUnlocalizedName(tStack) + ".name", - prefix.getDefaultLocalNameFormatForItem(tMaterial)); + getUnlocalizedName(tStack) + ".name", + prefix.getDefaultLocalNameFormatForItem(tMaterial)); GT_LanguageManager.addStringLocalization( - getUnlocalizedName(tStack) + ".tooltip", - tMaterial.getToolTip(prefix.mMaterialAmount / M)); + getUnlocalizedName(tStack) + ".tooltip", + tMaterial.getToolTip(prefix.mMaterialAmount / M)); if (prefix.mIsUnificatable) { GT_OreDictUnificator.set(prefix, tMaterial, tStack); @@ -179,8 +179,8 @@ public class GT_MetaGenerated_Item_99 extends GT_MetaGenerated_Item { @SideOnly(Side.CLIENT) public void getSubItems(Item aItem, CreativeTabs aCreativeTab, List aList) { enabled.stream() - .mapToObj(i -> new ItemStack(this, 1, i)) - .forEach(aList::add); + .mapToObj(i -> new ItemStack(this, 1, i)) + .forEach(aList::add); } @Override diff --git a/src/main/java/gregtech/common/items/GT_MetaGenerated_Tool_01.java b/src/main/java/gregtech/common/items/GT_MetaGenerated_Tool_01.java index 0ee136d7fb..5ea7dadfa6 100644 --- a/src/main/java/gregtech/common/items/GT_MetaGenerated_Tool_01.java +++ b/src/main/java/gregtech/common/items/GT_MetaGenerated_Tool_01.java @@ -90,412 +90,412 @@ public class GT_MetaGenerated_Tool_01 extends GT_MetaGenerated_Tool { super("metatool.01"); INSTANCE = this; addTool( - SWORD, - "Sword", - "", - new GT_Tool_Sword(), - ToolDictNames.craftingToolSword, - ToolDictNames.craftingToolBlade, - new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 4L)); + SWORD, + "Sword", + "", + new GT_Tool_Sword(), + ToolDictNames.craftingToolSword, + ToolDictNames.craftingToolBlade, + new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 4L)); addTool( - PICKAXE, - "Pickaxe", - "", - new GT_Tool_Pickaxe(), - ToolDictNames.craftingToolPickaxe, - new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PERFODIO, 4L)); + PICKAXE, + "Pickaxe", + "", + new GT_Tool_Pickaxe(), + ToolDictNames.craftingToolPickaxe, + new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PERFODIO, 4L)); addTool( - SHOVEL, - "Shovel", - "", - new GT_Tool_Shovel(), - ToolDictNames.craftingToolShovel, - new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PERFODIO, 4L)); + SHOVEL, + "Shovel", + "", + new GT_Tool_Shovel(), + ToolDictNames.craftingToolShovel, + new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PERFODIO, 4L)); addTool( - AXE, - "Axe", - "", - new GT_Tool_Axe(), - ToolDictNames.craftingToolAxe, - new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.METO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 2L)); + AXE, + "Axe", + "", + new GT_Tool_Axe(), + ToolDictNames.craftingToolAxe, + new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.METO, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 2L)); addTool( - HOE, - "Hoe", - "", - new GT_Tool_Hoe(), - ToolDictNames.craftingToolHoe, - new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 4L)); + HOE, + "Hoe", + "", + new GT_Tool_Hoe(), + ToolDictNames.craftingToolHoe, + new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 4L)); addTool( - SAW, - "Saw", - "Can also harvest Ice", - new GT_Tool_Saw(), - ToolDictNames.craftingToolSaw, - new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.METO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 2L)); - GregTech_API.registerTool( - addTool( - HARDHAMMER, - "Hammer", - "Crushes Ores instead of harvesting them", - new GT_Tool_HardHammer(), - ToolDictNames.craftingToolHardHammer, - new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L)), - GregTech_API.sHardHammerList); - GregTech_API.registerTool( - addTool( - SOFTMALLET, - "Soft Mallet", - "", - new GT_Tool_SoftHammer(), - ToolDictNames.craftingToolSoftHammer, - new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.LIMUS, 4L)), - GregTech_API.sSoftHammerList); + SAW, + "Saw", + "Can also harvest Ice", + new GT_Tool_Saw(), + ToolDictNames.craftingToolSaw, + new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.METO, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 2L)); GregTech_API.registerTool( - addTool( - WRENCH, - "Wrench", - "Hold Leftclick to dismantle Machines", - new GT_Tool_Wrench(), - ToolDictNames.craftingToolWrench, - new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L)), - GregTech_API.sWrenchList); - addTool( - FILE, - "File", - "", - new GT_Tool_File(), - ToolDictNames.craftingToolFile, + addTool( + HARDHAMMER, + "Hammer", + "Crushes Ores instead of harvesting them", + new GT_Tool_HardHammer(), + ToolDictNames.craftingToolHardHammer, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L)); + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L)), + GregTech_API.sHardHammerList); GregTech_API.registerTool( - addTool( - CROWBAR, - "Crowbar", - "Dismounts Covers and Rotates Rails", - new GT_Tool_Crowbar(), - ToolDictNames.craftingToolCrowbar, - new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 2L)), - GregTech_API.sCrowbarList); + addTool( + SOFTMALLET, + "Soft Mallet", + "", + new GT_Tool_SoftHammer(), + ToolDictNames.craftingToolSoftHammer, + new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.LIMUS, 4L)), + GregTech_API.sSoftHammerList); GregTech_API.registerTool( - addTool( - SCREWDRIVER, - "Screwdriver", - "Adjusts Covers and Machines", - new GT_Tool_Screwdriver(), - ToolDictNames.craftingToolScrewdriver, - new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L)), - GregTech_API.sScrewdriverList); + addTool( + WRENCH, + "Wrench", + "Hold Leftclick to dismantle Machines", + new GT_Tool_Wrench(), + ToolDictNames.craftingToolWrench, + new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L)), + GregTech_API.sWrenchList); addTool( - MORTAR, - "Mortar", - "", - new GT_Tool_Mortar(), - ToolDictNames.craftingToolMortar, + FILE, + "File", + "", + new GT_Tool_File(), + ToolDictNames.craftingToolFile, + new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L)); + GregTech_API.registerTool( + addTool( + CROWBAR, + "Crowbar", + "Dismounts Covers and Rotates Rails", + new GT_Tool_Crowbar(), + ToolDictNames.craftingToolCrowbar, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PERDITIO, 2L)); + new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 2L)), + GregTech_API.sCrowbarList); GregTech_API.registerTool( - addTool( - WIRECUTTER, - "Wire Cutter", - "", - new GT_Tool_WireCutter(), - ToolDictNames.craftingToolWireCutter, - new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L)), - GregTech_API.sWireCutterList); - addTool( - SCOOP, - "Scoop", - "", - new GT_Tool_Scoop(), - ToolDictNames.craftingToolScoop, + addTool( + SCREWDRIVER, + "Screwdriver", + "Adjusts Covers and Machines", + new GT_Tool_Screwdriver(), + ToolDictNames.craftingToolScrewdriver, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.BESTIA, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PANNUS, 2L)); + new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L)), + GregTech_API.sScrewdriverList); addTool( - BRANCHCUTTER, - "Branch Cutter", + MORTAR, + "Mortar", + "", + new GT_Tool_Mortar(), + ToolDictNames.craftingToolMortar, + new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PERDITIO, 2L)); + GregTech_API.registerTool( + addTool( + WIRECUTTER, + "Wire Cutter", "", - new GT_Tool_BranchCutter(), - ToolDictNames.craftingToolBranchCutter, + new GT_Tool_WireCutter(), + ToolDictNames.craftingToolWireCutter, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.METO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 2L)); - GregTech_API.registerTool( - addTool( - UNIVERSALSPADE, - "Universal Spade", - "", - new GT_Tool_UniversalSpade(), - ToolDictNames.craftingToolBlade, - ToolDictNames.craftingToolShovel, - ToolDictNames.craftingToolCrowbar, - ToolDictNames.craftingToolSaw, - new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.METO, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 1L)), - GregTech_API.sCrowbarList); + new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L)), + GregTech_API.sWireCutterList); + addTool( + SCOOP, + "Scoop", + "", + new GT_Tool_Scoop(), + ToolDictNames.craftingToolScoop, + new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.BESTIA, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PANNUS, 2L)); addTool( - KNIFE, - "Knife", + BRANCHCUTTER, + "Branch Cutter", + "", + new GT_Tool_BranchCutter(), + ToolDictNames.craftingToolBranchCutter, + new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.METO, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 2L)); + GregTech_API.registerTool( + addTool( + UNIVERSALSPADE, + "Universal Spade", "", - new GT_Tool_Knife(), + new GT_Tool_UniversalSpade(), ToolDictNames.craftingToolBlade, - ToolDictNames.craftingToolKnife, + ToolDictNames.craftingToolShovel, + ToolDictNames.craftingToolCrowbar, + ToolDictNames.craftingToolSaw, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.CORPUS, 2L)); + new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.METO, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 1L)), + GregTech_API.sCrowbarList); addTool( - BUTCHERYKNIFE, - "Butchery Knife", - "Has a slow Attack Rate", - new GT_Tool_ButcheryKnife(), - ToolDictNames.craftingToolBlade, - new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.CORPUS, 4L)); + KNIFE, + "Knife", + "", + new GT_Tool_Knife(), + ToolDictNames.craftingToolBlade, + ToolDictNames.craftingToolKnife, + new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.CORPUS, 2L)); + addTool( + BUTCHERYKNIFE, + "Butchery Knife", + "Has a slow Attack Rate", + new GT_Tool_ButcheryKnife(), + ToolDictNames.craftingToolBlade, + new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.CORPUS, 4L)); addTool( - SENSE, - "Sense", - "Because a Scythe doesn't make Sense", - new GT_Tool_Sense(), - ToolDictNames.craftingToolBlade, - new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.METO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MORTUUS, 2L)); + SENSE, + "Sense", + "Because a Scythe doesn't make Sense", + new GT_Tool_Sense(), + ToolDictNames.craftingToolBlade, + new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.METO, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MORTUUS, 2L)); addTool( - PLOW, - "Plow", - "Used to get rid of Snow", - new GT_Tool_Plow(), - ToolDictNames.craftingToolPlow, - new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.METO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 2L)); + PLOW, + "Plow", + "Used to get rid of Snow", + new GT_Tool_Plow(), + ToolDictNames.craftingToolPlow, + new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.METO, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 2L)); addTool( - PLUNGER, - "Plunger", - "", - new GT_Tool_Plunger(), - ToolDictNames.craftingToolPlunger, - new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 2L)); + PLUNGER, + "Plunger", + "", + new GT_Tool_Plunger(), + ToolDictNames.craftingToolPlunger, + new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 2L)); addTool( - ROLLING_PIN, - "Rolling Pin", - "", - new GT_Tool_RollingPin(), - ToolDictNames.craftingToolRollingPin, - new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.LIMUS, 4L)); + ROLLING_PIN, + "Rolling Pin", + "", + new GT_Tool_RollingPin(), + ToolDictNames.craftingToolRollingPin, + new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.LIMUS, 4L)); addTool( - DRILL_LV, - "Drill (LV)", - "", - new GT_Tool_Drill_LV(), - ToolDictNames.craftingToolMiningDrill, - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PERFODIO, 4L)); + DRILL_LV, + "Drill (LV)", + "", + new GT_Tool_Drill_LV(), + ToolDictNames.craftingToolMiningDrill, + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PERFODIO, 4L)); addTool( - DRILL_MV, - "Drill (MV)", - "", - new GT_Tool_Drill_MV(), - ToolDictNames.craftingToolMiningDrill, - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PERFODIO, 4L)); + DRILL_MV, + "Drill (MV)", + "", + new GT_Tool_Drill_MV(), + ToolDictNames.craftingToolMiningDrill, + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PERFODIO, 4L)); addTool( - DRILL_HV, - "Drill (HV)", - "", - new GT_Tool_Drill_HV(), - ToolDictNames.craftingToolMiningDrill, - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PERFODIO, 4L)); + DRILL_HV, + "Drill (HV)", + "", + new GT_Tool_Drill_HV(), + ToolDictNames.craftingToolMiningDrill, + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PERFODIO, 4L)); addTool( - CHAINSAW_LV, - "Chainsaw (LV)", - "Can also harvest Ice", - new GT_Tool_Chainsaw_LV(), - ToolDictNames.craftingToolSaw, - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.METO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 2L)); + CHAINSAW_LV, + "Chainsaw (LV)", + "Can also harvest Ice", + new GT_Tool_Chainsaw_LV(), + ToolDictNames.craftingToolSaw, + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.METO, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 2L)); addTool( - CHAINSAW_MV, - "Chainsaw (MV)", - "Can also harvest Ice", - new GT_Tool_Chainsaw_MV(), - ToolDictNames.craftingToolSaw, - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.METO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 2L)); + CHAINSAW_MV, + "Chainsaw (MV)", + "Can also harvest Ice", + new GT_Tool_Chainsaw_MV(), + ToolDictNames.craftingToolSaw, + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.METO, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 2L)); addTool( - CHAINSAW_HV, - "Chainsaw (HV)", - "Can also harvest Ice", - new GT_Tool_Chainsaw_HV(), - ToolDictNames.craftingToolSaw, - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.METO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 2L)); + CHAINSAW_HV, + "Chainsaw (HV)", + "Can also harvest Ice", + new GT_Tool_Chainsaw_HV(), + ToolDictNames.craftingToolSaw, + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.METO, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 2L)); GregTech_API.registerTool( - addTool( - WRENCH_LV, - "Wrench (LV)", - "Hold Left Button to dismantle Machines", - new GT_Tool_Wrench_LV(), - ToolDictNames.craftingToolWrench, - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L)), - GregTech_API.sWrenchList); + addTool( + WRENCH_LV, + "Wrench (LV)", + "Hold Left Button to dismantle Machines", + new GT_Tool_Wrench_LV(), + ToolDictNames.craftingToolWrench, + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L)), + GregTech_API.sWrenchList); GregTech_API.registerTool( - addTool( - WRENCH_MV, - "Wrench (MV)", - "Hold Left Button to dismantle Machines", - new GT_Tool_Wrench_MV(), - ToolDictNames.craftingToolWrench, - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L)), - GregTech_API.sWrenchList); + addTool( + WRENCH_MV, + "Wrench (MV)", + "Hold Left Button to dismantle Machines", + new GT_Tool_Wrench_MV(), + ToolDictNames.craftingToolWrench, + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L)), + GregTech_API.sWrenchList); GregTech_API.registerTool( - addTool( - WRENCH_HV, - "Wrench (HV)", - "Hold Left Button to dismantle Machines", - new GT_Tool_Wrench_HV(), - ToolDictNames.craftingToolWrench, - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L)), - GregTech_API.sWrenchList); + addTool( + WRENCH_HV, + "Wrench (HV)", + "Hold Left Button to dismantle Machines", + new GT_Tool_Wrench_HV(), + ToolDictNames.craftingToolWrench, + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L)), + GregTech_API.sWrenchList); addTool( - JACKHAMMER, - "JackHammer (HV)", - "Breaks Rocks into pieces", - new GT_Tool_JackHammer(), - ToolDictNames.craftingToolJackHammer, - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PERFODIO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PERDITIO, 2L)); + JACKHAMMER, + "JackHammer (HV)", + "Breaks Rocks into pieces", + new GT_Tool_JackHammer(), + ToolDictNames.craftingToolJackHammer, + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PERFODIO, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PERDITIO, 2L)); addTool( - BUZZSAW_LV, - "Buzzsaw (LV)", - "Not suitable for harvesting Blocks", - new GT_Tool_BuzzSaw(), - ToolDictNames.craftingToolSaw, - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 2L)); + BUZZSAW_LV, + "Buzzsaw (LV)", + "Not suitable for harvesting Blocks", + new GT_Tool_BuzzSaw(), + ToolDictNames.craftingToolSaw, + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 2L)); addTool( - BUZZSAW_MV, - "Buzzsaw (MV)", - "Not suitable for harvesting Blocks", - new GT_Tool_BuzzSaw(), - ToolDictNames.craftingToolSaw, - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 2L)); + BUZZSAW_MV, + "Buzzsaw (MV)", + "Not suitable for harvesting Blocks", + new GT_Tool_BuzzSaw(), + ToolDictNames.craftingToolSaw, + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 2L)); addTool( - BUZZSAW_HV, - "Buzzsaw (HV)", - "Not suitable for harvesting Blocks", - new GT_Tool_BuzzSaw(), - ToolDictNames.craftingToolSaw, + BUZZSAW_HV, + "Buzzsaw (HV)", + "Not suitable for harvesting Blocks", + new GT_Tool_BuzzSaw(), + ToolDictNames.craftingToolSaw, + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 2L)); + GregTech_API.registerTool( + addTool( + SCREWDRIVER_LV, + "Screwdriver (LV)", + "Adjusts Covers and Machines", + new GT_Tool_Screwdriver_LV(), + ToolDictNames.craftingToolScrewdriver, new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 2L)); - GregTech_API.registerTool( - addTool( - SCREWDRIVER_LV, - "Screwdriver (LV)", - "Adjusts Covers and Machines", - new GT_Tool_Screwdriver_LV(), - ToolDictNames.craftingToolScrewdriver, - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L)), - GregTech_API.sScrewdriverList); + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L)), + GregTech_API.sScrewdriverList); GregTech_API.registerTool( - addTool( - SCREWDRIVER_MV, - "Screwdriver (MV)", - "Adjusts Covers and Machines", - new GT_Tool_Screwdriver_LV(), - ToolDictNames.craftingToolScrewdriver, - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L)), - GregTech_API.sScrewdriverList); + addTool( + SCREWDRIVER_MV, + "Screwdriver (MV)", + "Adjusts Covers and Machines", + new GT_Tool_Screwdriver_LV(), + ToolDictNames.craftingToolScrewdriver, + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L)), + GregTech_API.sScrewdriverList); GregTech_API.registerTool( - addTool( - SCREWDRIVER_HV, - "Screwdriver (HV)", - "Adjusts Covers and Machines", - new GT_Tool_Screwdriver_LV(), - ToolDictNames.craftingToolScrewdriver, - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L)), - GregTech_API.sScrewdriverList); + addTool( + SCREWDRIVER_HV, + "Screwdriver (HV)", + "Adjusts Covers and Machines", + new GT_Tool_Screwdriver_LV(), + ToolDictNames.craftingToolScrewdriver, + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L)), + GregTech_API.sScrewdriverList); GregTech_API.registerTool( - addTool( - SOLDERING_IRON_LV, - "Soldering Iron (LV)", - "Fixes burned out Circuits. Needs soldering materials in inventory.", - new GT_Tool_Soldering_Iron(), - ToolDictNames.craftingToolSolderingIron, - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L)), - GregTech_API.sSolderingToolList); + addTool( + SOLDERING_IRON_LV, + "Soldering Iron (LV)", + "Fixes burned out Circuits. Needs soldering materials in inventory.", + new GT_Tool_Soldering_Iron(), + ToolDictNames.craftingToolSolderingIron, + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L)), + GregTech_API.sSolderingToolList); GregTech_API.registerTool( - addTool( - SOLDERING_IRON_MV, - "Soldering Iron (MV)", - "Fixes burned out Circuits. Needs soldering materials in inventory.", - new GT_Tool_Soldering_Iron(), - ToolDictNames.craftingToolSolderingIron, - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L)), - GregTech_API.sSolderingToolList); + addTool( + SOLDERING_IRON_MV, + "Soldering Iron (MV)", + "Fixes burned out Circuits. Needs soldering materials in inventory.", + new GT_Tool_Soldering_Iron(), + ToolDictNames.craftingToolSolderingIron, + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L)), + GregTech_API.sSolderingToolList); GregTech_API.registerTool( - addTool( - SOLDERING_IRON_HV, - "Soldering Iron (HV)", - "Fixes burned out Circuits. Needs soldering materials in inventory.", - new GT_Tool_Soldering_Iron(), - ToolDictNames.craftingToolSolderingIron, - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L)), - GregTech_API.sSolderingToolList); + addTool( + SOLDERING_IRON_HV, + "Soldering Iron (HV)", + "Fixes burned out Circuits. Needs soldering materials in inventory.", + new GT_Tool_Soldering_Iron(), + ToolDictNames.craftingToolSolderingIron, + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L)), + GregTech_API.sSolderingToolList); addTool(TURBINE_SMALL, "Small Turbine", "Turbine Rotors for your power station", new GT_Tool_Turbine_Small()); addTool(TURBINE, "Turbine", "Turbine Rotors for your power station", new GT_Tool_Turbine_Normal()); @@ -503,282 +503,279 @@ public class GT_MetaGenerated_Tool_01 extends GT_MetaGenerated_Tool { addTool(TURBINE_HUGE, "Huge Turbine", "Turbine Rotors for your power station", new GT_Tool_Turbine_Huge()); addTool( - POCKET_MULTITOOL, - "Pocket Multitool", - "6 useful Tools in one!", - new GT_Tool_Pocket_Multitool(POCKET_KNIFE), - null, - new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 6), - new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 3), - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 3)); + POCKET_MULTITOOL, + "Pocket Multitool", + "6 useful Tools in one!", + new GT_Tool_Pocket_Multitool(POCKET_KNIFE), + null, + new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 6), + new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 3), + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 3)); addTool( - POCKET_KNIFE, - "Pocket Multitool (Knife)", - "", - new GT_Tool_Pocket_Knife(POCKET_SAW), - ToolDictNames.craftingToolKnife, - ToolDictNames.craftingToolBlade, - new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 6), - new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 3), - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 3)); + POCKET_KNIFE, + "Pocket Multitool (Knife)", + "", + new GT_Tool_Pocket_Knife(POCKET_SAW), + ToolDictNames.craftingToolKnife, + ToolDictNames.craftingToolBlade, + new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 6), + new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 3), + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 3)); addTool( - POCKET_SAW, - "Pocket Multitool (Saw)", - "Can also harvest Ice", - new GT_Tool_Pocket_Saw(POCKET_FILE), - ToolDictNames.craftingToolSaw, - new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 6), - new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 3), - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 3)); + POCKET_SAW, + "Pocket Multitool (Saw)", + "Can also harvest Ice", + new GT_Tool_Pocket_Saw(POCKET_FILE), + ToolDictNames.craftingToolSaw, + new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 6), + new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 3), + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 3)); addTool( - POCKET_FILE, - "Pocket Multitool (File)", - "", - new GT_Tool_Pocket_File(POCKET_SCREWDRIVER), - ToolDictNames.craftingToolFile, + POCKET_FILE, + "Pocket Multitool (File)", + "", + new GT_Tool_Pocket_File(POCKET_SCREWDRIVER), + ToolDictNames.craftingToolFile, + new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 6), + new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 3), + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 3)); + GregTech_API.registerTool( + addTool( + POCKET_SCREWDRIVER, + "Pocket Multitool (Screwdriver)", + "Adjusts Covers and Machines", + new GT_Tool_Pocket_Screwdriver(POCKET_WIRECUTTER), + ToolDictNames.craftingToolScrewdriver, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 6), new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 3), - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 3)); + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 3)), + GregTech_API.sScrewdriverList); GregTech_API.registerTool( - addTool( - POCKET_SCREWDRIVER, - "Pocket Multitool (Screwdriver)", - "Adjusts Covers and Machines", - new GT_Tool_Pocket_Screwdriver(POCKET_WIRECUTTER), - ToolDictNames.craftingToolScrewdriver, - new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 6), - new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 3), - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 3)), - GregTech_API.sScrewdriverList); - GregTech_API.registerTool( - addTool( - POCKET_WIRECUTTER, - "Pocket Multitool (Wire Cutter)", - "", - new GT_Tool_Pocket_WireCutter(POCKET_BRANCHCUTTER), - ToolDictNames.craftingToolWireCutter, - new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 6), - new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 3), - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 3)), - GregTech_API.sWireCutterList); - addTool( - POCKET_BRANCHCUTTER, - "Pocket Multitool (Branch Cutter)", + addTool( + POCKET_WIRECUTTER, + "Pocket Multitool (Wire Cutter)", "", - new GT_Tool_Pocket_BranchCutter(POCKET_MULTITOOL), - ToolDictNames.craftingToolBranchCutter, + new GT_Tool_Pocket_WireCutter(POCKET_BRANCHCUTTER), + ToolDictNames.craftingToolWireCutter, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 6), new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 3), - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 3)); + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 3)), + GregTech_API.sWireCutterList); + addTool( + POCKET_BRANCHCUTTER, + "Pocket Multitool (Branch Cutter)", + "", + new GT_Tool_Pocket_BranchCutter(POCKET_MULTITOOL), + ToolDictNames.craftingToolBranchCutter, + new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 6), + new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 3), + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 3)); + + GT_ModHandler.addCraftingRecipe( + INSTANCE.getToolWithStats(MORTAR, 1, Materials.Flint, Materials.Stone, null), + GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { " I ", "SIS", "SSS", 'I', new ItemStack(Items.flint, 1), 'S', OrePrefixes.stone }); + GT_ModHandler.addCraftingRecipe( + INSTANCE.getToolWithStats(MORTAR, 1, Materials.Bronze, Materials.Stone, null), + GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { " I ", "SIS", "SSS", 'I', OrePrefixes.ingot.get(Materials.Bronze), 'S', OrePrefixes.stone }); + GT_ModHandler.addCraftingRecipe( + INSTANCE.getToolWithStats(MORTAR, 1, Materials.Iron, Materials.Stone, null), + GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { " I ", "SIS", "SSS", 'I', OrePrefixes.ingot.get(Materials.Iron), 'S', OrePrefixes.stone }); + GT_ModHandler.addCraftingRecipe( + INSTANCE.getToolWithStats(MORTAR, 1, Materials.Steel, Materials.Stone, null), + GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { " I ", "SIS", "SSS", 'I', OrePrefixes.ingot.get(Materials.Steel), 'S', OrePrefixes.stone }); + GT_ModHandler.addCraftingRecipe( + INSTANCE.getToolWithStats(MORTAR, 1, Materials.WroughtIron, Materials.Stone, null), + GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { " I ", "SIS", "SSS", 'I', OrePrefixes.ingot.get(Materials.WroughtIron), 'S', + OrePrefixes.stone }); + GT_ModHandler.addCraftingRecipe( + INSTANCE.getToolWithStats(MORTAR, 1, Materials.RedSteel, Materials.Stone, null), + GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { " I ", "SIS", "SSS", 'I', OrePrefixes.ingot.get(Materials.RedSteel), 'S', + OrePrefixes.stone }); + GT_ModHandler.addCraftingRecipe( + INSTANCE.getToolWithStats(MORTAR, 1, Materials.BlueSteel, Materials.Stone, null), + GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { " I ", "SIS", "SSS", 'I', OrePrefixes.ingot.get(Materials.BlueSteel), 'S', + OrePrefixes.stone }); + GT_ModHandler.addCraftingRecipe( + INSTANCE.getToolWithStats(MORTAR, 1, Materials.BlackSteel, Materials.Stone, null), + GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { " I ", "SIS", "SSS", 'I', OrePrefixes.ingot.get(Materials.BlackSteel), 'S', + OrePrefixes.stone }); + GT_ModHandler.addCraftingRecipe( + INSTANCE.getToolWithStats(MORTAR, 1, Materials.DamascusSteel, Materials.Stone, null), + GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { " I ", "SIS", "SSS", 'I', OrePrefixes.ingot.get(Materials.DamascusSteel), 'S', + OrePrefixes.stone }); + GT_ModHandler.addCraftingRecipe( + INSTANCE.getToolWithStats(MORTAR, 1, Materials.Thaumium, Materials.Stone, null), + GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { " I ", "SIS", "SSS", 'I', OrePrefixes.ingot.get(Materials.Thaumium), 'S', + OrePrefixes.stone }); GT_ModHandler.addCraftingRecipe( + INSTANCE.getToolWithStats(ROLLING_PIN, 1, Materials.Wood, Materials.Wood, null), + GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { " S", " I ", "S f", 'I', OrePrefixes.plank.get(Materials.Wood), 'S', + OrePrefixes.stick.get(Materials.Wood) }); + GT_ModHandler.addCraftingRecipe( + INSTANCE.getToolWithStats(ROLLING_PIN, 1, Materials.Plastic, Materials.Plastic, null), + GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { " S", " I ", "S f", 'I', OrePrefixes.ingot.get(Materials.Plastic), 'S', + OrePrefixes.stick.get(Materials.Plastic) }); + GT_ModHandler.addCraftingRecipe( + INSTANCE.getToolWithStats(ROLLING_PIN, 1, Materials.Aluminium, Materials.Aluminium, null), + GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { " S", " I ", "S f", 'I', OrePrefixes.ingot.get(Materials.Aluminium), 'S', + OrePrefixes.stick.get(Materials.Aluminium) }); + GT_ModHandler.addCraftingRecipe( + INSTANCE.getToolWithStats(ROLLING_PIN, 1, Materials.StainlessSteel, Materials.StainlessSteel, null), + GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { " S", " I ", "S f", 'I', OrePrefixes.ingot.get(Materials.StainlessSteel), 'S', + OrePrefixes.stick.get(Materials.StainlessSteel) }); + + if (!GregTech_API.sSpecialFile.get(ConfigCategories.general, "DisableFlintTools", false)) { + GT_ModHandler.addCraftingRecipe( + INSTANCE.getToolWithStats(SWORD, 1, Materials.Flint, Materials.Wood, null), + GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { "F", "F", "S", 'S', OrePrefixes.stick.get(Materials.Wood), 'F', + new ItemStack(Items.flint, 1) }); + GT_ModHandler.addCraftingRecipe( + INSTANCE.getToolWithStats(PICKAXE, 1, Materials.Flint, Materials.Wood, null), + GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { "FFF", " S ", " S ", 'S', OrePrefixes.stick.get(Materials.Wood), 'F', + new ItemStack(Items.flint, 1) }); + GT_ModHandler.addCraftingRecipe( + INSTANCE.getToolWithStats(SHOVEL, 1, Materials.Flint, Materials.Wood, null), + GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { "F", "S", "S", 'S', OrePrefixes.stick.get(Materials.Wood), 'F', + new ItemStack(Items.flint, 1) }); + GT_ModHandler.addCraftingRecipe( + INSTANCE.getToolWithStats(AXE, 1, Materials.Flint, Materials.Wood, null), + GT_ModHandler.RecipeBits.MIRRORED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { "FF", "FS", " S", 'S', OrePrefixes.stick.get(Materials.Wood), 'F', + new ItemStack(Items.flint, 1) }); + GT_ModHandler.addCraftingRecipe( + INSTANCE.getToolWithStats(HOE, 1, Materials.Flint, Materials.Wood, null), + GT_ModHandler.RecipeBits.MIRRORED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { "FF", " S", " S", 'S', OrePrefixes.stick.get(Materials.Wood), 'F', + new ItemStack(Items.flint, 1) }); + GT_ModHandler.addCraftingRecipe( + INSTANCE.getToolWithStats(KNIFE, 1, Materials.Flint, Materials.Wood, null), + GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { "F", "S", 'S', OrePrefixes.stick.get(Materials.Wood), 'F', + new ItemStack(Items.flint, 1) }); + + GT_ModHandler.addCraftingRecipe( INSTANCE.getToolWithStats(MORTAR, 1, Materials.Flint, Materials.Stone, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " I ", "SIS", "SSS", 'I', new ItemStack(Items.flint, 1), 'S', OrePrefixes.stone }); - GT_ModHandler.addCraftingRecipe( + GT_ModHandler.addCraftingRecipe( INSTANCE.getToolWithStats(MORTAR, 1, Materials.Bronze, Materials.Stone, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " I ", "SIS", "SSS", 'I', OrePrefixes.ingot.get(Materials.Bronze), 'S', - OrePrefixes.stone }); - GT_ModHandler.addCraftingRecipe( + OrePrefixes.stone }); + GT_ModHandler.addCraftingRecipe( INSTANCE.getToolWithStats(MORTAR, 1, Materials.Iron, Materials.Stone, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " I ", "SIS", "SSS", 'I', OrePrefixes.ingot.get(Materials.Iron), 'S', - OrePrefixes.stone }); - GT_ModHandler.addCraftingRecipe( + OrePrefixes.stone }); + GT_ModHandler.addCraftingRecipe( INSTANCE.getToolWithStats(MORTAR, 1, Materials.Steel, Materials.Stone, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " I ", "SIS", "SSS", 'I', OrePrefixes.ingot.get(Materials.Steel), 'S', - OrePrefixes.stone }); - GT_ModHandler.addCraftingRecipe( + OrePrefixes.stone }); + GT_ModHandler.addCraftingRecipe( INSTANCE.getToolWithStats(MORTAR, 1, Materials.WroughtIron, Materials.Stone, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " I ", "SIS", "SSS", 'I', OrePrefixes.ingot.get(Materials.WroughtIron), 'S', - OrePrefixes.stone }); - GT_ModHandler.addCraftingRecipe( + OrePrefixes.stone }); + GT_ModHandler.addCraftingRecipe( INSTANCE.getToolWithStats(MORTAR, 1, Materials.RedSteel, Materials.Stone, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " I ", "SIS", "SSS", 'I', OrePrefixes.ingot.get(Materials.RedSteel), 'S', - OrePrefixes.stone }); - GT_ModHandler.addCraftingRecipe( + OrePrefixes.stone }); + GT_ModHandler.addCraftingRecipe( INSTANCE.getToolWithStats(MORTAR, 1, Materials.BlueSteel, Materials.Stone, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " I ", "SIS", "SSS", 'I', OrePrefixes.ingot.get(Materials.BlueSteel), 'S', - OrePrefixes.stone }); - GT_ModHandler.addCraftingRecipe( + OrePrefixes.stone }); + GT_ModHandler.addCraftingRecipe( INSTANCE.getToolWithStats(MORTAR, 1, Materials.BlackSteel, Materials.Stone, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " I ", "SIS", "SSS", 'I', OrePrefixes.ingot.get(Materials.BlackSteel), 'S', - OrePrefixes.stone }); - GT_ModHandler.addCraftingRecipe( + OrePrefixes.stone }); + GT_ModHandler.addCraftingRecipe( INSTANCE.getToolWithStats(MORTAR, 1, Materials.DamascusSteel, Materials.Stone, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " I ", "SIS", "SSS", 'I', OrePrefixes.ingot.get(Materials.DamascusSteel), 'S', - OrePrefixes.stone }); - GT_ModHandler.addCraftingRecipe( + OrePrefixes.stone }); + GT_ModHandler.addCraftingRecipe( INSTANCE.getToolWithStats(MORTAR, 1, Materials.Thaumium, Materials.Stone, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " I ", "SIS", "SSS", 'I', OrePrefixes.ingot.get(Materials.Thaumium), 'S', - OrePrefixes.stone }); + OrePrefixes.stone }); - GT_ModHandler.addCraftingRecipe( + GT_ModHandler.addCraftingRecipe( INSTANCE.getToolWithStats(ROLLING_PIN, 1, Materials.Wood, Materials.Wood, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " S", " I ", "S f", 'I', OrePrefixes.plank.get(Materials.Wood), 'S', - OrePrefixes.stick.get(Materials.Wood) }); - GT_ModHandler.addCraftingRecipe( + OrePrefixes.stick.get(Materials.Wood) }); + GT_ModHandler.addCraftingRecipe( INSTANCE.getToolWithStats(ROLLING_PIN, 1, Materials.Plastic, Materials.Plastic, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " S", " I ", "S f", 'I', OrePrefixes.ingot.get(Materials.Plastic), 'S', - OrePrefixes.stick.get(Materials.Plastic) }); - GT_ModHandler.addCraftingRecipe( + OrePrefixes.stick.get(Materials.Plastic) }); + GT_ModHandler.addCraftingRecipe( INSTANCE.getToolWithStats(ROLLING_PIN, 1, Materials.Aluminium, Materials.Aluminium, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " S", " I ", "S f", 'I', OrePrefixes.ingot.get(Materials.Aluminium), 'S', - OrePrefixes.stick.get(Materials.Aluminium) }); - GT_ModHandler.addCraftingRecipe( + OrePrefixes.stick.get(Materials.Aluminium) }); + GT_ModHandler.addCraftingRecipe( INSTANCE.getToolWithStats(ROLLING_PIN, 1, Materials.StainlessSteel, Materials.StainlessSteel, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " S", " I ", "S f", 'I', OrePrefixes.ingot.get(Materials.StainlessSteel), 'S', - OrePrefixes.stick.get(Materials.StainlessSteel) }); - - if (!GregTech_API.sSpecialFile.get(ConfigCategories.general, "DisableFlintTools", false)) { - GT_ModHandler.addCraftingRecipe( - INSTANCE.getToolWithStats(SWORD, 1, Materials.Flint, Materials.Wood, null), - GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { "F", "F", "S", 'S', OrePrefixes.stick.get(Materials.Wood), 'F', - new ItemStack(Items.flint, 1) }); - GT_ModHandler.addCraftingRecipe( - INSTANCE.getToolWithStats(PICKAXE, 1, Materials.Flint, Materials.Wood, null), - GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { "FFF", " S ", " S ", 'S', OrePrefixes.stick.get(Materials.Wood), 'F', - new ItemStack(Items.flint, 1) }); - GT_ModHandler.addCraftingRecipe( - INSTANCE.getToolWithStats(SHOVEL, 1, Materials.Flint, Materials.Wood, null), - GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { "F", "S", "S", 'S', OrePrefixes.stick.get(Materials.Wood), 'F', - new ItemStack(Items.flint, 1) }); - GT_ModHandler.addCraftingRecipe( - INSTANCE.getToolWithStats(AXE, 1, Materials.Flint, Materials.Wood, null), - GT_ModHandler.RecipeBits.MIRRORED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { "FF", "FS", " S", 'S', OrePrefixes.stick.get(Materials.Wood), 'F', - new ItemStack(Items.flint, 1) }); - GT_ModHandler.addCraftingRecipe( - INSTANCE.getToolWithStats(HOE, 1, Materials.Flint, Materials.Wood, null), - GT_ModHandler.RecipeBits.MIRRORED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { "FF", " S", " S", 'S', OrePrefixes.stick.get(Materials.Wood), 'F', - new ItemStack(Items.flint, 1) }); - GT_ModHandler.addCraftingRecipe( - INSTANCE.getToolWithStats(KNIFE, 1, Materials.Flint, Materials.Wood, null), - GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { "F", "S", 'S', OrePrefixes.stick.get(Materials.Wood), 'F', - new ItemStack(Items.flint, 1) }); - - GT_ModHandler.addCraftingRecipe( - INSTANCE.getToolWithStats(MORTAR, 1, Materials.Flint, Materials.Stone, null), - GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { " I ", "SIS", "SSS", 'I', new ItemStack(Items.flint, 1), 'S', OrePrefixes.stone }); - GT_ModHandler.addCraftingRecipe( - INSTANCE.getToolWithStats(MORTAR, 1, Materials.Bronze, Materials.Stone, null), - GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { " I ", "SIS", "SSS", 'I', OrePrefixes.ingot.get(Materials.Bronze), 'S', - OrePrefixes.stone }); - GT_ModHandler.addCraftingRecipe( - INSTANCE.getToolWithStats(MORTAR, 1, Materials.Iron, Materials.Stone, null), - GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { " I ", "SIS", "SSS", 'I', OrePrefixes.ingot.get(Materials.Iron), 'S', - OrePrefixes.stone }); - GT_ModHandler.addCraftingRecipe( - INSTANCE.getToolWithStats(MORTAR, 1, Materials.Steel, Materials.Stone, null), - GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { " I ", "SIS", "SSS", 'I', OrePrefixes.ingot.get(Materials.Steel), 'S', - OrePrefixes.stone }); - GT_ModHandler.addCraftingRecipe( - INSTANCE.getToolWithStats(MORTAR, 1, Materials.WroughtIron, Materials.Stone, null), - GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { " I ", "SIS", "SSS", 'I', OrePrefixes.ingot.get(Materials.WroughtIron), 'S', - OrePrefixes.stone }); - GT_ModHandler.addCraftingRecipe( - INSTANCE.getToolWithStats(MORTAR, 1, Materials.RedSteel, Materials.Stone, null), - GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { " I ", "SIS", "SSS", 'I', OrePrefixes.ingot.get(Materials.RedSteel), 'S', - OrePrefixes.stone }); + OrePrefixes.stick.get(Materials.StainlessSteel) }); GT_ModHandler.addCraftingRecipe( - INSTANCE.getToolWithStats(MORTAR, 1, Materials.BlueSteel, Materials.Stone, null), - GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { " I ", "SIS", "SSS", 'I', OrePrefixes.ingot.get(Materials.BlueSteel), 'S', - OrePrefixes.stone }); - GT_ModHandler.addCraftingRecipe( - INSTANCE.getToolWithStats(MORTAR, 1, Materials.BlackSteel, Materials.Stone, null), - GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { " I ", "SIS", "SSS", 'I', OrePrefixes.ingot.get(Materials.BlackSteel), 'S', - OrePrefixes.stone }); - GT_ModHandler.addCraftingRecipe( - INSTANCE.getToolWithStats(MORTAR, 1, Materials.DamascusSteel, Materials.Stone, null), - GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { " I ", "SIS", "SSS", 'I', OrePrefixes.ingot.get(Materials.DamascusSteel), 'S', - OrePrefixes.stone }); - GT_ModHandler.addCraftingRecipe( - INSTANCE.getToolWithStats(MORTAR, 1, Materials.Thaumium, Materials.Stone, null), - GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { " I ", "SIS", "SSS", 'I', OrePrefixes.ingot.get(Materials.Thaumium), 'S', - OrePrefixes.stone }); - - GT_ModHandler.addCraftingRecipe( - INSTANCE.getToolWithStats(ROLLING_PIN, 1, Materials.Wood, Materials.Wood, null), - GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { " S", " I ", "S f", 'I', OrePrefixes.plank.get(Materials.Wood), 'S', - OrePrefixes.stick.get(Materials.Wood) }); - GT_ModHandler.addCraftingRecipe( - INSTANCE.getToolWithStats(ROLLING_PIN, 1, Materials.Plastic, Materials.Plastic, null), - GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { " S", " I ", "S f", 'I', OrePrefixes.ingot.get(Materials.Plastic), 'S', - OrePrefixes.stick.get(Materials.Plastic) }); - GT_ModHandler.addCraftingRecipe( - INSTANCE.getToolWithStats(ROLLING_PIN, 1, Materials.Aluminium, Materials.Aluminium, null), - GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { " S", " I ", "S f", 'I', OrePrefixes.ingot.get(Materials.Aluminium), 'S', - OrePrefixes.stick.get(Materials.Aluminium) }); - GT_ModHandler.addCraftingRecipe( - INSTANCE.getToolWithStats(ROLLING_PIN, 1, Materials.StainlessSteel, Materials.StainlessSteel, null), - GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { " S", " I ", "S f", 'I', OrePrefixes.ingot.get(Materials.StainlessSteel), 'S', - OrePrefixes.stick.get(Materials.StainlessSteel) }); - GT_ModHandler.addCraftingRecipe( - INSTANCE.getToolWithStats(ROLLING_PIN, 1, Materials.IronWood, Materials.IronWood, null), - GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { " S", " I ", "S f", 'I', OrePrefixes.ingot.get(Materials.IronWood), 'S', - OrePrefixes.stick.get(Materials.IronWood) }); + INSTANCE.getToolWithStats(ROLLING_PIN, 1, Materials.IronWood, Materials.IronWood, null), + GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { " S", " I ", "S f", 'I', OrePrefixes.ingot.get(Materials.IronWood), 'S', + OrePrefixes.stick.get(Materials.IronWood) }); if (GregTech_API.sRecipeFile.get(ConfigCategories.Tools.mortar, "Coal", true)) { GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Coal, 1L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { ToolDictNames.craftingToolMortar, new ItemStack(Items.coal, 1) }); + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Coal, 1L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { ToolDictNames.craftingToolMortar, new ItemStack(Items.coal, 1) }); } if (GregTech_API.sRecipeFile.get(ConfigCategories.Tools.mortar, "Clay", true)) { GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Clay, 1L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { ToolDictNames.craftingToolMortar, new ItemStack(Blocks.clay, 1) }); + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Clay, 1L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { ToolDictNames.craftingToolMortar, new ItemStack(Blocks.clay, 1) }); } if (GregTech_API.sRecipeFile.get(ConfigCategories.Tools.mortar, "Wheat", true)) { GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wheat, 1L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { ToolDictNames.craftingToolMortar, new ItemStack(Items.wheat, 1) }); + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wheat, 1L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { ToolDictNames.craftingToolMortar, new ItemStack(Items.wheat, 1) }); } if (GregTech_API.sRecipeFile.get(ConfigCategories.Tools.mortar, "Flint", true)) { GT_ModHandler.addShapelessCraftingRecipe( - new ItemStack(Items.flint, 1), - GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { ToolDictNames.craftingToolMortar, new ItemStack(Blocks.gravel, 1) }); + new ItemStack(Items.flint, 1), + GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { ToolDictNames.craftingToolMortar, new ItemStack(Blocks.gravel, 1) }); } if (GregTech_API.sRecipeFile.get(ConfigCategories.Tools.mortar, "Blaze", true)) { GT_ModHandler.addShapelessCraftingRecipe( - new ItemStack(Items.blaze_powder, 2), - GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { ToolDictNames.craftingToolMortar, new ItemStack(Items.blaze_rod, 1) }); + new ItemStack(Items.blaze_powder, 2), + GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { ToolDictNames.craftingToolMortar, new ItemStack(Items.blaze_rod, 1) }); } } } diff --git a/src/main/java/gregtech/common/items/GT_NeutronReflector_Item.java b/src/main/java/gregtech/common/items/GT_NeutronReflector_Item.java index 9365677773..b2fd104917 100644 --- a/src/main/java/gregtech/common/items/GT_NeutronReflector_Item.java +++ b/src/main/java/gregtech/common/items/GT_NeutronReflector_Item.java @@ -16,17 +16,10 @@ public class GT_NeutronReflector_Item extends GT_Generic_Item implements IReacto @Override public boolean acceptUraniumPulse(IReactor reactor, ItemStack yourStack, ItemStack pulsingStack, int youX, int youY, - int pulseX, int pulseY, boolean heatrun) { + int pulseX, int pulseY, boolean heatrun) { if (!heatrun) { - ((IReactorComponent) pulsingStack.getItem()).acceptUraniumPulse( - reactor, - pulsingStack, - yourStack, - pulseX, - pulseY, - youX, - youY, - heatrun); + ((IReactorComponent) pulsingStack.getItem()) + .acceptUraniumPulse(reactor, pulsingStack, yourStack, pulseX, pulseY, youX, youY, heatrun); } return true; } diff --git a/src/main/java/gregtech/common/items/GT_SensorCard_Item.java b/src/main/java/gregtech/common/items/GT_SensorCard_Item.java index 0a2b7ff9b5..818f673a5d 100644 --- a/src/main/java/gregtech/common/items/GT_SensorCard_Item.java +++ b/src/main/java/gregtech/common/items/GT_SensorCard_Item.java @@ -42,11 +42,11 @@ public class GT_SensorCard_Item extends GT_Generic_Item implements IRemoteSensor } else { aList.add(transItem("015", "Device at:")); aList.add( - String.format( - "x: %d, y: %d, z: %d", - tNBT.getInteger("x"), - tNBT.getInteger("y"), - tNBT.getInteger("z"))); + String.format( + "x: %d, y: %d, z: %d", + tNBT.getInteger("x"), + tNBT.getInteger("y"), + tNBT.getInteger("z"))); } } } @@ -62,7 +62,7 @@ public class GT_SensorCard_Item extends GT_Generic_Item implements IRemoteSensor TileEntity tTileEntity = world.getTileEntity(target.posX, target.posY, target.posZ); if (((tTileEntity instanceof IGregTechDeviceInformation)) - && (((IGregTechDeviceInformation) tTileEntity).isGivingInformation())) { + && (((IGregTechDeviceInformation) tTileEntity).isGivingInformation())) { String[] tInfoData = ((IGregTechDeviceInformation) tTileEntity).getInfoData(); for (int i = 0; i < tInfoData.length; i++) { aCard.setString("mString" + i, tInfoData[i]); diff --git a/src/main/java/gregtech/common/items/GT_VolumetricFlask.java b/src/main/java/gregtech/common/items/GT_VolumetricFlask.java index 069d7acd5b..7776af8d69 100644 --- a/src/main/java/gregtech/common/items/GT_VolumetricFlask.java +++ b/src/main/java/gregtech/common/items/GT_VolumetricFlask.java @@ -77,7 +77,7 @@ public class GT_VolumetricFlask extends GT_Generic_Item implements IFluidContain @Override public boolean onItemUse(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, - float xOffset, float yOffset, float zOffset) { + float xOffset, float yOffset, float zOffset) { if (player instanceof FakePlayer) { return false; } @@ -102,8 +102,8 @@ public class GT_VolumetricFlask extends GT_Generic_Item implements IFluidContain ForgeDirection dir = ForgeDirection.VALID_DIRECTIONS[mop.sideHit]; FluidStack fluidStack = drainContainerStack(stack, player, 1000, true); if (placeFluid(fluidStack, world, x, y, z) - || (player.canPlayerEdit(x + dir.offsetX, y + dir.offsetY, z + dir.offsetZ, mop.sideHit, stack) - && placeFluid(fluidStack, world, x + dir.offsetX, y + dir.offsetY, z + dir.offsetZ))) { + || (player.canPlayerEdit(x + dir.offsetX, y + dir.offsetY, z + dir.offsetZ, mop.sideHit, stack) + && placeFluid(fluidStack, world, x + dir.offsetX, y + dir.offsetY, z + dir.offsetZ))) { if (!player.capabilities.isCreativeMode) drainContainerStack(stack, player, 1000, false); return true; } @@ -229,7 +229,7 @@ public class GT_VolumetricFlask extends GT_Generic_Item implements IFluidContain public void getSubItems(Item item, CreativeTabs creativeTabs, List itemList) { itemList.add(new ItemStack(this)); for (Fluid fluid : FluidRegistry.getRegisteredFluids() - .values()) { + .values()) { if (fluid != null) { ItemStack stack = new ItemStack(this); setCapacity(stack, getMaxCapacity()); @@ -336,16 +336,16 @@ public class GT_VolumetricFlask extends GT_Generic_Item implements IFluidContain } }; textField.setText( - String.valueOf(((GT_VolumetricFlask) getCurrentItem().getItem()).getCapacity(getCurrentItem()))); + String.valueOf(((GT_VolumetricFlask) getCurrentItem().getItem()).getCapacity(getCurrentItem()))); builder.widget( - textField.setNumbers(() -> 1, () -> maxCapacity) - .setPattern(BaseTextFieldWidget.NATURAL_NUMS) - .setTextAlignment(Alignment.CenterLeft) - .setTextColor(Color.WHITE.dark(1)) - .setFocusOnGuiOpen(true) - .setBackground(GT_UITextures.BACKGROUND_TEXT_FIELD_LIGHT_GRAY.withOffset(-1, -1, 2, 2)) - .setPos(60, 55) - .setSize(59, 12)); + textField.setNumbers(() -> 1, () -> maxCapacity) + .setPattern(BaseTextFieldWidget.NATURAL_NUMS) + .setTextAlignment(Alignment.CenterLeft) + .setTextColor(Color.WHITE.dark(1)) + .setFocusOnGuiOpen(true) + .setBackground(GT_UITextures.BACKGROUND_TEXT_FIELD_LIGHT_GRAY.withOffset(-1, -1, 2, 2)) + .setPos(60, 55) + .setSize(59, 12)); addChangeAmountButton(builder, "+1", new Pos2d(20, 26), new Size(22, 20), val -> val + 1); addChangeAmountButton(builder, "+10", new Pos2d(48, 26), new Size(28, 20), val -> val + 10); @@ -356,35 +356,34 @@ public class GT_VolumetricFlask extends GT_Generic_Item implements IFluidContain addChangeAmountButton(builder, "-100", new Pos2d(82, 75), new Size(32, 20), val -> val - 100); addChangeAmountButton(builder, "-1000", new Pos2d(120, 75), new Size(38, 20), val -> val - 1000); builder.widget( - new VanillaButtonWidget().setDisplayString("Accept") - .setClickableGetter( - () -> MathExpression.parseMathExpression(textField.getText()) > 0) - .setOnClick((clickData, widget) -> { - if (widget.isClient()) { - textField.onRemoveFocus(); - } else { - widget.getWindow() - .tryClose(); - } - }) - .setPos(128, 51) - .setSize(38, 20)); + new VanillaButtonWidget().setDisplayString("Accept") + .setClickableGetter(() -> MathExpression.parseMathExpression(textField.getText()) > 0) + .setOnClick((clickData, widget) -> { + if (widget.isClient()) { + textField.onRemoveFocus(); + } else { + widget.getWindow() + .tryClose(); + } + }) + .setPos(128, 51) + .setSize(38, 20)); return builder.build(); } private void addChangeAmountButton(ModularWindow.Builder builder, String text, Pos2d pos, Size size, - Function function) { + Function function) { builder.widget( - new VanillaButtonWidget().setDisplayString(text) - .setOnClick((clickData, widget) -> { - String currentText = textField.getText(); - int amount = (int) MathExpression.parseMathExpression(currentText, 1); - amount = Math.min(maxCapacity, Math.max(1, function.apply(amount))); - textField.setText(String.valueOf(amount)); - }) - .setPos(pos) - .setSize(size)); + new VanillaButtonWidget().setDisplayString(text) + .setOnClick((clickData, widget) -> { + String currentText = textField.getText(); + int amount = (int) MathExpression.parseMathExpression(currentText, 1); + amount = Math.min(maxCapacity, Math.max(1, function.apply(amount))); + textField.setText(String.valueOf(amount)); + }) + .setPos(pos) + .setSize(size)); } private ItemStack getCurrentItem() { diff --git a/src/main/java/gregtech/common/items/ItemComb.java b/src/main/java/gregtech/common/items/ItemComb.java index c3000b9fc7..60fbeb075a 100644 --- a/src/main/java/gregtech/common/items/ItemComb.java +++ b/src/main/java/gregtech/common/items/ItemComb.java @@ -98,7 +98,7 @@ public class ItemComb extends Item implements IGT_ItemWithMaterialRenderer { @Override public String getItemStackDisplayName(ItemStack stack) { return CombType.valueOf(stack.getItemDamage()) - .getName(); + .getName(); } @Override @@ -137,120 +137,118 @@ public class ItemComb extends Item implements IGT_ItemWithMaterialRenderer { addProcessGT(CombType.LIGNIE, new Materials[] { Materials.Lignite }, Voltage.LV); addProcessGT(CombType.COAL, new Materials[] { Materials.Coal }, Voltage.LV); addCentrifugeToItemStack( - CombType.STICKY, - new ItemStack[] { ItemList.IC2_Resin.get(1), ItemList.IC2_Plantball.get(1), ItemList.FR_Wax.get(1) }, - new int[] { 50 * 100, 15 * 100, 50 * 100 }, - Voltage.ULV); + CombType.STICKY, + new ItemStack[] { ItemList.IC2_Resin.get(1), ItemList.IC2_Plantball.get(1), ItemList.FR_Wax.get(1) }, + new int[] { 50 * 100, 15 * 100, 50 * 100 }, + Voltage.ULV); addProcessGT(CombType.OIL, new Materials[] { Materials.Oilsands }, Voltage.LV); addProcessGT(CombType.APATITE, new Materials[] { Materials.Apatite }, Voltage.LV); addCentrifugeToMaterial( - CombType.ASH, - new Materials[] { Materials.DarkAsh, Materials.Ash }, - new int[] { 50 * 100, 50 * 100 }, - new int[] {}, - Voltage.ULV, - NI, - 50 * 100); + CombType.ASH, + new Materials[] { Materials.DarkAsh, Materials.Ash }, + new int[] { 50 * 100, 50 * 100 }, + new int[] {}, + Voltage.ULV, + NI, + 50 * 100); addCentrifugeToItemStack( - CombType.PHOSPHORUS, - new ItemStack[] { Materials.Phosphorus.getDust(3), Materials.TricalciumPhosphate.getDust(2), - ItemList.FR_Wax.get(1) }, - new int[] { 100 * 100, 75 * 100, 100 * 100 }, - Voltage.HV); + CombType.PHOSPHORUS, + new ItemStack[] { Materials.Phosphorus.getDust(3), Materials.TricalciumPhosphate.getDust(2), + ItemList.FR_Wax.get(1) }, + new int[] { 100 * 100, 75 * 100, 100 * 100 }, + Voltage.HV); addCentrifugeToItemStack( - CombType.MICA, - new ItemStack[] { Materials.Mica.getDust(2), ItemList.FR_Wax.get(1) }, - new int[] { 100 * 100, 75 * 100 }, - Voltage.HV); + CombType.MICA, + new ItemStack[] { Materials.Mica.getDust(2), ItemList.FR_Wax.get(1) }, + new int[] { 100 * 100, 75 * 100 }, + Voltage.HV); if (GT_Mod.gregtechproxy.mNerfedCombs) { addCentrifugeToItemStack( - CombType.LIGNIE, - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Lignite, 1), - ItemList.FR_Wax.get(1) }, - new int[] { 90 * 100, 50 * 100 }, - Voltage.ULV); + CombType.LIGNIE, + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Lignite, 1), + ItemList.FR_Wax.get(1) }, + new int[] { 90 * 100, 50 * 100 }, + Voltage.ULV); addCentrifugeToItemStack( - CombType.COAL, - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Coal, 1), - ItemList.FR_Wax.get(1) }, - new int[] { 5 * 100, 50 * 100 }, - Voltage.ULV); + CombType.COAL, + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Coal, 1), + ItemList.FR_Wax.get(1) }, + new int[] { 5 * 100, 50 * 100 }, + Voltage.ULV); addCentrifugeToItemStack( - CombType.OIL, - new ItemStack[] { ItemList.Crop_Drop_OilBerry.get(6), GT_Bees.drop.getStackForType(DropType.OIL), - ItemList.FR_Wax.get(1) }, - new int[] { 100 * 100, 100 * 100, 50 * 100 }, - Voltage.ULV); + CombType.OIL, + new ItemStack[] { ItemList.Crop_Drop_OilBerry.get(6), GT_Bees.drop.getStackForType(DropType.OIL), + ItemList.FR_Wax.get(1) }, + new int[] { 100 * 100, 100 * 100, 50 * 100 }, + Voltage.ULV); } else { addCentrifugeToItemStack( - CombType.LIGNIE, - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Lignite, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Lignite, 1), - ItemList.FR_Wax.get(1) }, - new int[] { 90 * 100, 100 * 100, 50 * 100 }, - Voltage.ULV); + CombType.LIGNIE, + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Lignite, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Lignite, 1), ItemList.FR_Wax.get(1) }, + new int[] { 90 * 100, 100 * 100, 50 * 100 }, + Voltage.ULV); addCentrifugeToItemStack( - CombType.COAL, - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Coal, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Coal, 1), ItemList.FR_Wax.get(1) }, - new int[] { 5 * 100, 100 * 100, 50 * 100 }, - Voltage.ULV); + CombType.COAL, + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Coal, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Coal, 1), ItemList.FR_Wax.get(1) }, + new int[] { 5 * 100, 100 * 100, 50 * 100 }, + Voltage.ULV); addCentrifugeToItemStack( - CombType.OIL, - new ItemStack[] { ItemList.Crop_Drop_OilBerry.get(6), GT_Bees.drop.getStackForType(DropType.OIL), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Oilsands, 1), - ItemList.FR_Wax.get(1) }, - new int[] { 100 * 100, 100 * 100, 100 * 100, 50 * 100 }, - Voltage.ULV); - addCentrifugeToMaterial( - CombType.APATITE, - new Materials[] { Materials.Apatite, Materials.Phosphate }, - new int[] { 100 * 100, 80 * 100 }, - new int[] {}, - Voltage.ULV, - NI, - 30 * 100); + CombType.OIL, + new ItemStack[] { ItemList.Crop_Drop_OilBerry.get(6), GT_Bees.drop.getStackForType(DropType.OIL), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Oilsands, 1), ItemList.FR_Wax.get(1) }, + new int[] { 100 * 100, 100 * 100, 100 * 100, 50 * 100 }, + Voltage.ULV); + addCentrifugeToMaterial( + CombType.APATITE, + new Materials[] { Materials.Apatite, Materials.Phosphate }, + new int[] { 100 * 100, 80 * 100 }, + new int[] {}, + Voltage.ULV, + NI, + 30 * 100); } // ic2 addCentrifugeToItemStack( - CombType.COOLANT, - new ItemStack[] { GT_Bees.drop.getStackForType(DropType.COOLANT), ItemList.FR_Wax.get(1) }, - new int[] { 100 * 100, 100 * 100 }, - Voltage.HV, - 196); + CombType.COOLANT, + new ItemStack[] { GT_Bees.drop.getStackForType(DropType.COOLANT), ItemList.FR_Wax.get(1) }, + new int[] { 100 * 100, 100 * 100 }, + Voltage.HV, + 196); addCentrifugeToItemStack( - CombType.ENERGY, - new ItemStack[] { GT_Bees.drop.getStackForType(DropType.HOT_COOLANT), - ItemList.IC2_Energium_Dust.get(1L), ItemList.FR_RefractoryWax.get(1) }, - new int[] { 20 * 100, 20 * 100, 50 * 100 }, - Voltage.HV, - 196); + CombType.ENERGY, + new ItemStack[] { GT_Bees.drop.getStackForType(DropType.HOT_COOLANT), ItemList.IC2_Energium_Dust.get(1L), + ItemList.FR_RefractoryWax.get(1) }, + new int[] { 20 * 100, 20 * 100, 50 * 100 }, + Voltage.HV, + 196); addCentrifugeToItemStack( - CombType.LAPOTRON, - new ItemStack[] { GT_Bees.drop.getStackForType(DropType.LAPIS), - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.LapotronDust", 1, 0), - GT_ModHandler.getModItem(MagicBees.ID, "wax", 1, 2) }, - new int[] { 20 * 100, 15 * 100, 40 * 100 }, - Voltage.HV, - 196); + CombType.LAPOTRON, + new ItemStack[] { GT_Bees.drop.getStackForType(DropType.LAPIS), + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.LapotronDust", 1, 0), + GT_ModHandler.getModItem(MagicBees.ID, "wax", 1, 2) }, + new int[] { 20 * 100, 15 * 100, 40 * 100 }, + Voltage.HV, + 196); addCentrifugeToMaterial( - CombType.PYROTHEUM, - new Materials[] { Materials.Blaze, Materials.Pyrotheum }, - new int[] { 25 * 100, 20 * 100 }, - new int[] {}, - Voltage.HV, - NI, - 30 * 100); + CombType.PYROTHEUM, + new Materials[] { Materials.Blaze, Materials.Pyrotheum }, + new int[] { 25 * 100, 20 * 100 }, + new int[] {}, + Voltage.HV, + NI, + 30 * 100); addCentrifugeToItemStack( - CombType.CRYOTHEUM, - new ItemStack[] { ItemList.FR_RefractoryWax.get(1), Materials.Cryotheum.getDust(1) }, - new int[] { 50 * 100, 100 * 100 }, - Voltage.MV); + CombType.CRYOTHEUM, + new ItemStack[] { ItemList.FR_RefractoryWax.get(1), Materials.Cryotheum.getDust(1) }, + new int[] { 50 * 100, 100 * 100 }, + Voltage.MV); addCentrifugeToItemStack( - CombType.BLIZZ, - new ItemStack[] { ItemList.FR_RefractoryWax.get(1), Materials.Blizz.getDust(1) }, - new int[] { 50 * 100, 100 * 100 }, - Voltage.MV); + CombType.BLIZZ, + new ItemStack[] { ItemList.FR_RefractoryWax.get(1), Materials.Blizz.getDust(1) }, + new int[] { 50 * 100, 100 * 100 }, + Voltage.MV); // Alloy addProcessGT(CombType.REDALLOY, new Materials[] { Materials.RedAlloy }, Voltage.LV); addProcessGT(CombType.REDSTONEALLOY, new Materials[] { Materials.RedstoneAlloy }, Voltage.LV); @@ -263,299 +261,299 @@ public class ItemComb extends Item implements IGT_ItemWithMaterialRenderer { addProcessGT(CombType.STAINLESSSTEEL, new Materials[] { Materials.StainlessSteel }, Voltage.HV); addProcessGT(CombType.BEDROCKIUM, new Materials[] { Materials.Bedrockium }, Voltage.EV); addCentrifugeToItemStack( - CombType.ENDERIUM, - new ItemStack[] { ItemList.FR_RefractoryWax.get(1), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.EnderiumBase, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Enderium, 1) }, - new int[] { 50 * 100, 30 * 100, 50 * 100 }, - Voltage.HV); + CombType.ENDERIUM, + new ItemStack[] { ItemList.FR_RefractoryWax.get(1), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.EnderiumBase, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Enderium, 1) }, + new int[] { 50 * 100, 30 * 100, 50 * 100 }, + Voltage.HV); if (GT_Mod.gregtechproxy.mNerfedCombs) { addCentrifugeToMaterial( - CombType.REDALLOY, - new Materials[] { Materials.RedAlloy }, - new int[] { 100 * 100 }, - new int[] {}, - Voltage.ULV, - ItemList.FR_RefractoryWax.get(1), - 50 * 100); - addCentrifugeToMaterial( - CombType.REDSTONEALLOY, - new Materials[] { Materials.RedstoneAlloy }, - new int[] { 100 * 100 }, - new int[] {}, - Voltage.ULV, - ItemList.FR_RefractoryWax.get(1), - 50 * 100); - addCentrifugeToMaterial( - CombType.CONDUCTIVEIRON, - new Materials[] { Materials.ConductiveIron }, - new int[] { 90 * 100 }, - new int[] {}, - Voltage.MV, - ItemList.FR_RefractoryWax.get(1), - 50 * 100); - addCentrifugeToMaterial( - CombType.VIBRANTALLOY, - new Materials[] { Materials.VibrantAlloy }, - new int[] { 70 * 100 }, - new int[] {}, - Voltage.HV, - ItemList.FR_RefractoryWax.get(1), - 50 * 100); - addCentrifugeToMaterial( - CombType.ENERGETICALLOY, - new Materials[] { Materials.EnergeticAlloy }, - new int[] { 80 * 100 }, - new int[] {}, - Voltage.HV, - ItemList.FR_RefractoryWax.get(1), - 50 * 100); - addCentrifugeToMaterial( - CombType.ELECTRICALSTEEL, - new Materials[] { Materials.ElectricalSteel }, - new int[] { 100 * 100 }, - new int[] {}, - Voltage.ULV, - ItemList.FR_RefractoryWax.get(1), - 50 * 100); - addCentrifugeToMaterial( - CombType.DARKSTEEL, - new Materials[] { Materials.DarkSteel }, - new int[] { 100 * 100 }, - new int[] {}, - Voltage.MV, - ItemList.FR_RefractoryWax.get(1), - 50 * 100); - addCentrifugeToMaterial( - CombType.PULSATINGIRON, - new Materials[] { Materials.PulsatingIron }, - new int[] { 80 * 100 }, - new int[] {}, - Voltage.HV, - ItemList.FR_RefractoryWax.get(1), - 50 * 100); - addCentrifugeToMaterial( - CombType.STAINLESSSTEEL, - new Materials[] { Materials.StainlessSteel }, - new int[] { 50 * 100 }, - new int[] {}, - Voltage.HV, - ItemList.FR_RefractoryWax.get(1), - 50 * 100); - addCentrifugeToMaterial( - CombType.BEDROCKIUM, - new Materials[] { Materials.Bedrockium }, - new int[] { 50 * 100 }, - new int[] {}, - Voltage.EV, - ItemList.FR_RefractoryWax.get(1), - 50 * 100); + CombType.REDALLOY, + new Materials[] { Materials.RedAlloy }, + new int[] { 100 * 100 }, + new int[] {}, + Voltage.ULV, + ItemList.FR_RefractoryWax.get(1), + 50 * 100); + addCentrifugeToMaterial( + CombType.REDSTONEALLOY, + new Materials[] { Materials.RedstoneAlloy }, + new int[] { 100 * 100 }, + new int[] {}, + Voltage.ULV, + ItemList.FR_RefractoryWax.get(1), + 50 * 100); + addCentrifugeToMaterial( + CombType.CONDUCTIVEIRON, + new Materials[] { Materials.ConductiveIron }, + new int[] { 90 * 100 }, + new int[] {}, + Voltage.MV, + ItemList.FR_RefractoryWax.get(1), + 50 * 100); + addCentrifugeToMaterial( + CombType.VIBRANTALLOY, + new Materials[] { Materials.VibrantAlloy }, + new int[] { 70 * 100 }, + new int[] {}, + Voltage.HV, + ItemList.FR_RefractoryWax.get(1), + 50 * 100); + addCentrifugeToMaterial( + CombType.ENERGETICALLOY, + new Materials[] { Materials.EnergeticAlloy }, + new int[] { 80 * 100 }, + new int[] {}, + Voltage.HV, + ItemList.FR_RefractoryWax.get(1), + 50 * 100); + addCentrifugeToMaterial( + CombType.ELECTRICALSTEEL, + new Materials[] { Materials.ElectricalSteel }, + new int[] { 100 * 100 }, + new int[] {}, + Voltage.ULV, + ItemList.FR_RefractoryWax.get(1), + 50 * 100); + addCentrifugeToMaterial( + CombType.DARKSTEEL, + new Materials[] { Materials.DarkSteel }, + new int[] { 100 * 100 }, + new int[] {}, + Voltage.MV, + ItemList.FR_RefractoryWax.get(1), + 50 * 100); + addCentrifugeToMaterial( + CombType.PULSATINGIRON, + new Materials[] { Materials.PulsatingIron }, + new int[] { 80 * 100 }, + new int[] {}, + Voltage.HV, + ItemList.FR_RefractoryWax.get(1), + 50 * 100); + addCentrifugeToMaterial( + CombType.STAINLESSSTEEL, + new Materials[] { Materials.StainlessSteel }, + new int[] { 50 * 100 }, + new int[] {}, + Voltage.HV, + ItemList.FR_RefractoryWax.get(1), + 50 * 100); + addCentrifugeToMaterial( + CombType.BEDROCKIUM, + new Materials[] { Materials.Bedrockium }, + new int[] { 50 * 100 }, + new int[] {}, + Voltage.EV, + ItemList.FR_RefractoryWax.get(1), + 50 * 100); } else { addCentrifugeToMaterial( - CombType.REDALLOY, - new Materials[] { Materials.RedAlloy, Materials.Redstone, Materials.Copper }, - new int[] { 100 * 100, 75 * 100, 90 * 100 }, - new int[] {}, - Voltage.ULV, - ItemList.FR_RefractoryWax.get(1), - 50 * 100); - addCentrifugeToMaterial( - CombType.REDSTONEALLOY, - new Materials[] { Materials.RedstoneAlloy, Materials.Redstone, Materials.Silicon, Materials.Coal }, - new int[] { 100 * 100, 90 * 100, 75 * 100, 75 * 100 }, - new int[] {}, - Voltage.ULV, - ItemList.FR_RefractoryWax.get(1), - 50 * 100); - addCentrifugeToMaterial( - CombType.CONDUCTIVEIRON, - new Materials[] { Materials.ConductiveIron, Materials.Silver, Materials.Iron }, - new int[] { 90 * 100, 55 * 100, 65 * 100 }, - new int[] {}, - Voltage.MV, - ItemList.FR_RefractoryWax.get(1), - 50 * 100); - addCentrifugeToMaterial( - CombType.VIBRANTALLOY, - new Materials[] { Materials.VibrantAlloy, Materials.Chrome }, - new int[] { 70 * 100, 50 * 100 }, - new int[] {}, - Voltage.HV, - ItemList.FR_RefractoryWax.get(1), - 50 * 100); - addCentrifugeToMaterial( - CombType.ENERGETICALLOY, - new Materials[] { Materials.EnergeticAlloy, Materials.Gold }, - new int[] { 80 * 100, 60 * 100 }, - new int[] {}, - Voltage.HV, - ItemList.FR_RefractoryWax.get(1), - 50 * 100); - addCentrifugeToMaterial( - CombType.ELECTRICALSTEEL, - new Materials[] { Materials.ElectricalSteel, Materials.Silicon, Materials.Coal }, - new int[] { 100 * 100, 75 * 100, 75 * 100 }, - new int[] {}, - Voltage.ULV, - ItemList.FR_RefractoryWax.get(1), - 50 * 100); - addCentrifugeToMaterial( - CombType.DARKSTEEL, - new Materials[] { Materials.DarkSteel, Materials.Coal }, - new int[] { 100 * 100, 75 * 100 }, - new int[] {}, - Voltage.MV, - ItemList.FR_RefractoryWax.get(1), - 50 * 100); - addCentrifugeToMaterial( - CombType.PULSATINGIRON, - new Materials[] { Materials.PulsatingIron, Materials.Iron }, - new int[] { 80 * 100, 75 * 100 }, - new int[] {}, - Voltage.HV, - ItemList.FR_RefractoryWax.get(1), - 50 * 100); - addCentrifugeToMaterial( - CombType.STAINLESSSTEEL, - new Materials[] { Materials.StainlessSteel, Materials.Iron, Materials.Chrome, Materials.Manganese, - Materials.Nickel }, - new int[] { 50 * 100, 75 * 100, 55 * 100, 75 * 100, 75 * 100 }, - new int[] {}, - Voltage.HV, - ItemList.FR_RefractoryWax.get(1), - 50 * 100); - addCentrifugeToMaterial( - CombType.BEDROCKIUM, - new Materials[] { Materials.Bedrockium }, - new int[] { 50 * 100 }, - new int[] {}, - Voltage.EV, - ItemList.FR_RefractoryWax.get(1), - 50 * 100); + CombType.REDALLOY, + new Materials[] { Materials.RedAlloy, Materials.Redstone, Materials.Copper }, + new int[] { 100 * 100, 75 * 100, 90 * 100 }, + new int[] {}, + Voltage.ULV, + ItemList.FR_RefractoryWax.get(1), + 50 * 100); + addCentrifugeToMaterial( + CombType.REDSTONEALLOY, + new Materials[] { Materials.RedstoneAlloy, Materials.Redstone, Materials.Silicon, Materials.Coal }, + new int[] { 100 * 100, 90 * 100, 75 * 100, 75 * 100 }, + new int[] {}, + Voltage.ULV, + ItemList.FR_RefractoryWax.get(1), + 50 * 100); + addCentrifugeToMaterial( + CombType.CONDUCTIVEIRON, + new Materials[] { Materials.ConductiveIron, Materials.Silver, Materials.Iron }, + new int[] { 90 * 100, 55 * 100, 65 * 100 }, + new int[] {}, + Voltage.MV, + ItemList.FR_RefractoryWax.get(1), + 50 * 100); + addCentrifugeToMaterial( + CombType.VIBRANTALLOY, + new Materials[] { Materials.VibrantAlloy, Materials.Chrome }, + new int[] { 70 * 100, 50 * 100 }, + new int[] {}, + Voltage.HV, + ItemList.FR_RefractoryWax.get(1), + 50 * 100); + addCentrifugeToMaterial( + CombType.ENERGETICALLOY, + new Materials[] { Materials.EnergeticAlloy, Materials.Gold }, + new int[] { 80 * 100, 60 * 100 }, + new int[] {}, + Voltage.HV, + ItemList.FR_RefractoryWax.get(1), + 50 * 100); + addCentrifugeToMaterial( + CombType.ELECTRICALSTEEL, + new Materials[] { Materials.ElectricalSteel, Materials.Silicon, Materials.Coal }, + new int[] { 100 * 100, 75 * 100, 75 * 100 }, + new int[] {}, + Voltage.ULV, + ItemList.FR_RefractoryWax.get(1), + 50 * 100); + addCentrifugeToMaterial( + CombType.DARKSTEEL, + new Materials[] { Materials.DarkSteel, Materials.Coal }, + new int[] { 100 * 100, 75 * 100 }, + new int[] {}, + Voltage.MV, + ItemList.FR_RefractoryWax.get(1), + 50 * 100); + addCentrifugeToMaterial( + CombType.PULSATINGIRON, + new Materials[] { Materials.PulsatingIron, Materials.Iron }, + new int[] { 80 * 100, 75 * 100 }, + new int[] {}, + Voltage.HV, + ItemList.FR_RefractoryWax.get(1), + 50 * 100); + addCentrifugeToMaterial( + CombType.STAINLESSSTEEL, + new Materials[] { Materials.StainlessSteel, Materials.Iron, Materials.Chrome, Materials.Manganese, + Materials.Nickel }, + new int[] { 50 * 100, 75 * 100, 55 * 100, 75 * 100, 75 * 100 }, + new int[] {}, + Voltage.HV, + ItemList.FR_RefractoryWax.get(1), + 50 * 100); + addCentrifugeToMaterial( + CombType.BEDROCKIUM, + new Materials[] { Materials.Bedrockium }, + new int[] { 50 * 100 }, + new int[] {}, + Voltage.EV, + ItemList.FR_RefractoryWax.get(1), + 50 * 100); } // Thaumic addProcessGT(CombType.THAUMIUMDUST, new Materials[] { Materials.Thaumium }, Voltage.MV); addCentrifugeToItemStack( - CombType.THAUMIUMSHARD, - new ItemStack[] { GT_ModHandler.getModItem(MagicBees.ID, "propolis", 1, 1), - GT_ModHandler.getModItem(MagicBees.ID, "propolis", 1, 2), - GT_ModHandler.getModItem(MagicBees.ID, "propolis", 1, 3), - GT_ModHandler.getModItem(MagicBees.ID, "propolis", 1, 4), - GT_ModHandler.getModItem(MagicBees.ID, "propolis", 1, 5), - GT_ModHandler.getModItem(MagicBees.ID, "propolis", 1, 6), - GT_ModHandler.getModItem(MagicBees.ID, "wax", 1, 0) }, - new int[] { 20 * 100, 20 * 100, 20 * 100, 20 * 100, 20 * 100, 20 * 100, 50 * 100 }, - Voltage.ULV); + CombType.THAUMIUMSHARD, + new ItemStack[] { GT_ModHandler.getModItem(MagicBees.ID, "propolis", 1, 1), + GT_ModHandler.getModItem(MagicBees.ID, "propolis", 1, 2), + GT_ModHandler.getModItem(MagicBees.ID, "propolis", 1, 3), + GT_ModHandler.getModItem(MagicBees.ID, "propolis", 1, 4), + GT_ModHandler.getModItem(MagicBees.ID, "propolis", 1, 5), + GT_ModHandler.getModItem(MagicBees.ID, "propolis", 1, 6), + GT_ModHandler.getModItem(MagicBees.ID, "wax", 1, 0) }, + new int[] { 20 * 100, 20 * 100, 20 * 100, 20 * 100, 20 * 100, 20 * 100, 50 * 100 }, + Voltage.ULV); addProcessGT(CombType.AMBER, new Materials[] { Materials.Amber }, Voltage.LV); addProcessGT(CombType.QUICKSILVER, new Materials[] { Materials.Cinnabar }, Voltage.LV); addCentrifugeToItemStack( - CombType.SALISMUNDUS, - new ItemStack[] { GT_ModHandler.getModItem(Thaumcraft.ID, "ItemResource", 1, 14), - GT_ModHandler.getModItem(MagicBees.ID, "wax", 1, 0) }, - new int[] { 100 * 100, 50 * 100 }, - Voltage.MV); + CombType.SALISMUNDUS, + new ItemStack[] { GT_ModHandler.getModItem(Thaumcraft.ID, "ItemResource", 1, 14), + GT_ModHandler.getModItem(MagicBees.ID, "wax", 1, 0) }, + new int[] { 100 * 100, 50 * 100 }, + Voltage.MV); addCentrifugeToItemStack( - CombType.TAINTED, - new ItemStack[] { GT_ModHandler.getModItem(Thaumcraft.ID, "ItemResource", 1, 11), - GT_ModHandler.getModItem(Thaumcraft.ID, "ItemResource", 1, 12), - GT_ModHandler.getModItem(Thaumcraft.ID, "blockTaintFibres", 1, 0), - GT_ModHandler.getModItem(Thaumcraft.ID, "blockTaintFibres", 1, 1), - GT_ModHandler.getModItem(Thaumcraft.ID, "blockTaintFibres", 1, 2), - GT_ModHandler.getModItem(MagicBees.ID, "wax", 1, 0) }, - new int[] { 15 * 100, 15 * 100, 15 * 100, 15 * 100, 15 * 100, 50 * 100 }, - Voltage.ULV); + CombType.TAINTED, + new ItemStack[] { GT_ModHandler.getModItem(Thaumcraft.ID, "ItemResource", 1, 11), + GT_ModHandler.getModItem(Thaumcraft.ID, "ItemResource", 1, 12), + GT_ModHandler.getModItem(Thaumcraft.ID, "blockTaintFibres", 1, 0), + GT_ModHandler.getModItem(Thaumcraft.ID, "blockTaintFibres", 1, 1), + GT_ModHandler.getModItem(Thaumcraft.ID, "blockTaintFibres", 1, 2), + GT_ModHandler.getModItem(MagicBees.ID, "wax", 1, 0) }, + new int[] { 15 * 100, 15 * 100, 15 * 100, 15 * 100, 15 * 100, 50 * 100 }, + Voltage.ULV); addProcessGT(CombType.MITHRIL, new Materials[] { Materials.Mithril }, Voltage.HV); addProcessGT(CombType.ASTRALSILVER, new Materials[] { Materials.AstralSilver }, Voltage.HV); addCentrifugeToMaterial( - CombType.ASTRALSILVER, - new Materials[] { Materials.AstralSilver, Materials.Silver }, - new int[] { 20 * 100, (GT_Mod.gregtechproxy.mNerfedCombs ? 10 : 75) * 100 }, - new int[] {}, - Voltage.HV, - GT_ModHandler.getModItem(MagicBees.ID, "wax", 1, 0), - 50 * 100); + CombType.ASTRALSILVER, + new Materials[] { Materials.AstralSilver, Materials.Silver }, + new int[] { 20 * 100, (GT_Mod.gregtechproxy.mNerfedCombs ? 10 : 75) * 100 }, + new int[] {}, + Voltage.HV, + GT_ModHandler.getModItem(MagicBees.ID, "wax", 1, 0), + 50 * 100); addCentrifugeToItemStack( - CombType.THAUMINITE, - new ItemStack[] { GT_ModHandler.getModItem(ThaumicBases.ID, "resource", 1, 0), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Thaumium, 1), - GT_ModHandler.getModItem(MagicBees.ID, "wax", 1, 0) }, - new int[] { 20 * 100, 10 * 100, 50 * 100 }, - Voltage.HV); + CombType.THAUMINITE, + new ItemStack[] { GT_ModHandler.getModItem(ThaumicBases.ID, "resource", 1, 0), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Thaumium, 1), + GT_ModHandler.getModItem(MagicBees.ID, "wax", 1, 0) }, + new int[] { 20 * 100, 10 * 100, 50 * 100 }, + Voltage.HV); addProcessGT(CombType.SHADOWMETAL, new Materials[] { Materials.Shadow }, Voltage.HV); addCentrifugeToMaterial( - CombType.SHADOWMETAL, - new Materials[] { Materials.Shadow, Materials.ShadowSteel }, - new int[] { (GT_Mod.gregtechproxy.mNerfedCombs ? 20 : 75) * 100, 10 * 100 }, - new int[] {}, - Voltage.HV, - GT_ModHandler.getModItem(MagicBees.ID, "wax", 1, 0), - 50 * 100); + CombType.SHADOWMETAL, + new Materials[] { Materials.Shadow, Materials.ShadowSteel }, + new int[] { (GT_Mod.gregtechproxy.mNerfedCombs ? 20 : 75) * 100, 10 * 100 }, + new int[] {}, + Voltage.HV, + GT_ModHandler.getModItem(MagicBees.ID, "wax", 1, 0), + 50 * 100); addProcessGT(CombType.DIVIDED, new Materials[] { Materials.Diamond }, Voltage.HV); addCentrifugeToItemStack( - CombType.DIVIDED, - new ItemStack[] { GT_ModHandler.getModItem(MagicBees.ID, "wax", 1, 0), - GT_ModHandler.getModItem(ExtraUtilities.ID, "unstableingot", 1, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Iron, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Diamond, 1) }, - new int[] { 50 * 100, 20 * 100, (GT_Mod.gregtechproxy.mNerfedCombs ? 10 : 75) * 100, - (GT_Mod.gregtechproxy.mNerfedCombs ? 5 : 55) * 100 }, - Voltage.HV); + CombType.DIVIDED, + new ItemStack[] { GT_ModHandler.getModItem(MagicBees.ID, "wax", 1, 0), + GT_ModHandler.getModItem(ExtraUtilities.ID, "unstableingot", 1, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Iron, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Diamond, 1) }, + new int[] { 50 * 100, 20 * 100, (GT_Mod.gregtechproxy.mNerfedCombs ? 10 : 75) * 100, + (GT_Mod.gregtechproxy.mNerfedCombs ? 5 : 55) * 100 }, + Voltage.HV); addProcessGT(CombType.SPARKELING, new Materials[] { Materials.NetherStar }, Voltage.EV); addCentrifugeToItemStack( - CombType.SPARKELING, - new ItemStack[] { GT_ModHandler.getModItem(MagicBees.ID, "wax", 1, 0), - GT_ModHandler.getModItem(MagicBees.ID, "miscResources", 2, 5), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.NetherStar, 1) }, - new int[] { 50 * 100, 10 * 100, (GT_Mod.gregtechproxy.mNerfedCombs ? 10 : 50) * 100 }, - Voltage.EV); + CombType.SPARKELING, + new ItemStack[] { GT_ModHandler.getModItem(MagicBees.ID, "wax", 1, 0), + GT_ModHandler.getModItem(MagicBees.ID, "miscResources", 2, 5), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.NetherStar, 1) }, + new int[] { 50 * 100, 10 * 100, (GT_Mod.gregtechproxy.mNerfedCombs ? 10 : 50) * 100 }, + Voltage.EV); if (GT_Mod.gregtechproxy.mNerfedCombs) { addCentrifugeToMaterial( - CombType.THAUMIUMDUST, - new Materials[] { Materials.Thaumium }, - new int[] { 100 * 100 }, - new int[] {}, - Voltage.MV, - GT_ModHandler.getModItem(MagicBees.ID, "wax", 1, 0), - 50 * 100); + CombType.THAUMIUMDUST, + new Materials[] { Materials.Thaumium }, + new int[] { 100 * 100 }, + new int[] {}, + Voltage.MV, + GT_ModHandler.getModItem(MagicBees.ID, "wax", 1, 0), + 50 * 100); addCentrifugeToItemStack( - CombType.QUICKSILVER, - new ItemStack[] { GT_ModHandler.getModItem(MagicBees.ID, "wax", 1, 0), - GT_ModHandler.getModItem(Thaumcraft.ID, "ItemNugget", 1, 5) }, - new int[] { 50 * 100, 100 * 100 }, - Voltage.ULV); + CombType.QUICKSILVER, + new ItemStack[] { GT_ModHandler.getModItem(MagicBees.ID, "wax", 1, 0), + GT_ModHandler.getModItem(Thaumcraft.ID, "ItemNugget", 1, 5) }, + new int[] { 50 * 100, 100 * 100 }, + Voltage.ULV); } else { addCentrifugeToMaterial( - CombType.THAUMIUMDUST, - new Materials[] { Materials.Thaumium, Materials.Iron }, - new int[] { 100 * 100, 75 * 100 }, - new int[] {}, - Voltage.MV, - GT_ModHandler.getModItem(MagicBees.ID, "wax", 1, 0), - 50 * 100); - addCentrifugeToMaterial( - CombType.AMBER, - new Materials[] { Materials.Amber }, - new int[] { 100 * 100 }, - new int[] {}, - Voltage.ULV, - GT_ModHandler.getModItem(MagicBees.ID, "wax", 1, 0), - 50 * 100); + CombType.THAUMIUMDUST, + new Materials[] { Materials.Thaumium, Materials.Iron }, + new int[] { 100 * 100, 75 * 100 }, + new int[] {}, + Voltage.MV, + GT_ModHandler.getModItem(MagicBees.ID, "wax", 1, 0), + 50 * 100); + addCentrifugeToMaterial( + CombType.AMBER, + new Materials[] { Materials.Amber }, + new int[] { 100 * 100 }, + new int[] {}, + Voltage.ULV, + GT_ModHandler.getModItem(MagicBees.ID, "wax", 1, 0), + 50 * 100); addCentrifugeToItemStack( - CombType.QUICKSILVER, - new ItemStack[] { GT_ModHandler.getModItem(MagicBees.ID, "wax", 1, 0), - GT_ModHandler.getModItem(Thaumcraft.ID, "ItemNugget", 1, 5), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Cinnabar, 1) }, - new int[] { 50 * 100, 100 * 100, 85 * 100 }, - Voltage.ULV); - addCentrifugeToMaterial( - CombType.MITHRIL, - new Materials[] { Materials.Mithril, Materials.Platinum }, - new int[] { 75 * 100, 55 * 100 }, - new int[] {}, - Voltage.HV, - GT_ModHandler.getModItem(MagicBees.ID, "wax", 1, 0), - 50 * 100); + CombType.QUICKSILVER, + new ItemStack[] { GT_ModHandler.getModItem(MagicBees.ID, "wax", 1, 0), + GT_ModHandler.getModItem(Thaumcraft.ID, "ItemNugget", 1, 5), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Cinnabar, 1) }, + new int[] { 50 * 100, 100 * 100, 85 * 100 }, + Voltage.ULV); + addCentrifugeToMaterial( + CombType.MITHRIL, + new Materials[] { Materials.Mithril, Materials.Platinum }, + new int[] { 75 * 100, 55 * 100 }, + new int[] {}, + Voltage.HV, + GT_ModHandler.getModItem(MagicBees.ID, "wax", 1, 0), + 50 * 100); } // Gem Line @@ -564,378 +562,375 @@ public class ItemComb extends Item implements IGT_ItemWithMaterialRenderer { addProcessGT(CombType.FLUIX, new Materials[] { Materials.Fluix }, Voltage.LV); addProcessGT(CombType.REDSTONE, new Materials[] { Materials.Redstone }, Voltage.LV); addCentrifugeToMaterial( - CombType.RAREEARTH, - new Materials[] { Materials.RareEarth }, + CombType.RAREEARTH, + new Materials[] { Materials.RareEarth }, + new int[] { 100 * 100 }, + new int[] { 1 }, + Voltage.ULV, + NI, + 30 * 100); + addProcessGT(CombType.LAPIS, new Materials[] { Materials.Lapis }, Voltage.LV); + addProcessGT(CombType.RUBY, new Materials[] { Materials.Ruby }, Voltage.LV); + addProcessGT(CombType.REDGARNET, new Materials[] { Materials.GarnetRed }, Voltage.LV); + addProcessGT(CombType.YELLOWGARNET, new Materials[] { Materials.GarnetYellow }, Voltage.LV); + addProcessGT(CombType.SAPPHIRE, new Materials[] { Materials.Sapphire }, Voltage.LV); + addProcessGT(CombType.DIAMOND, new Materials[] { Materials.Diamond }, Voltage.LV); + addProcessGT(CombType.OLIVINE, new Materials[] { Materials.Olivine }, Voltage.LV); + addProcessGT(CombType.EMERALD, new Materials[] { Materials.Emerald }, Voltage.LV); + addProcessGT(CombType.FIRESTONE, new Materials[] { Materials.Firestone }, Voltage.LV); + addProcessGT(CombType.PYROPE, new Materials[] { Materials.Pyrope }, Voltage.LV); + addProcessGT(CombType.GROSSULAR, new Materials[] { Materials.Grossular }, Voltage.LV); + if (GT_Mod.gregtechproxy.mNerfedCombs) { + addCentrifugeToMaterial( + CombType.STONE, + new Materials[] { Materials.Stone, Materials.GraniteBlack, Materials.GraniteRed, Materials.Basalt, + Materials.Marble, Materials.Redrock }, + new int[] { 70 * 100, 50 * 100, 50 * 100, 50 * 100, 50 * 100, 50 * 100 }, + new int[] { 9, 9, 9, 9, 9, 9 }, + Voltage.ULV, + NI, + 50 * 100); + addCentrifugeToMaterial( + CombType.FLUIX, + new Materials[] { Materials.Fluix }, + new int[] { 25 * 100 }, + new int[] { 9 }, + Voltage.ULV, + NI, + 30 * 100); + } else { + addCentrifugeToMaterial( + CombType.STONE, + new Materials[] { Materials.Soapstone, Materials.Talc, Materials.Apatite, Materials.Phosphate, + Materials.TricalciumPhosphate }, + new int[] { 95 * 100, 90 * 100, 80 * 100, 75 * 100, 75 * 100 }, + new int[] {}, + Voltage.ULV, + NI, + 50 * 100); + addCentrifugeToMaterial( + CombType.CERTUS, + new Materials[] { Materials.CertusQuartz, Materials.Quartzite, Materials.Barite }, + new int[] { 100 * 100, 80 * 100, 75 * 100 }, + new int[] {}, + Voltage.ULV, + NI, + 50 * 100); + addCentrifugeToMaterial( + CombType.FLUIX, + new Materials[] { Materials.Fluix, Materials.Redstone, Materials.CertusQuartz, Materials.NetherQuartz }, + new int[] { 25 * 100, 90 * 100, 90 * 100, 90 * 100 }, + new int[] { 9, 1, 1, 1 }, + Voltage.ULV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.REDSTONE, + new Materials[] { Materials.Redstone, Materials.Cinnabar }, + new int[] { 100 * 100, 80 * 100 }, + new int[] {}, + Voltage.ULV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.LAPIS, + new Materials[] { Materials.Lapis, Materials.Sodalite, Materials.Lazurite, Materials.Calcite }, + new int[] { 100 * 100, 90 * 100, 90 * 100, 85 * 100 }, + new int[] {}, + Voltage.ULV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.RUBY, + new Materials[] { Materials.Ruby, Materials.Redstone }, + new int[] { 100 * 100, 90 * 100 }, + new int[] {}, + Voltage.ULV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.REDGARNET, + new Materials[] { Materials.GarnetRed, Materials.GarnetYellow }, + new int[] { 100 * 100, 75 * 100 }, + new int[] {}, + Voltage.ULV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.YELLOWGARNET, + new Materials[] { Materials.GarnetYellow, Materials.GarnetRed }, + new int[] { 100 * 100, 75 * 100 }, + new int[] {}, + Voltage.ULV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.SAPPHIRE, + new Materials[] { Materials.Sapphire, Materials.GreenSapphire, Materials.Almandine, Materials.Pyrope }, + new int[] { 100 * 100, 90 * 100, 90 * 100, 75 * 100 }, + new int[] {}, + Voltage.ULV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.DIAMOND, + new Materials[] { Materials.Diamond, Materials.Graphite }, + new int[] { 100 * 100, 75 * 100 }, + new int[] {}, + Voltage.ULV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.OLIVINE, + new Materials[] { Materials.Olivine, Materials.Bentonite, Materials.Magnesite, Materials.Glauconite }, + new int[] { 100 * 100, 90 * 100, 80 * 100, 75 * 100 }, + new int[] {}, + Voltage.ULV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.EMERALD, + new Materials[] { Materials.Emerald, Materials.Beryllium, Materials.Thorium }, + new int[] { 100 * 100, 85 * 100, 75 * 100 }, + new int[] {}, + Voltage.ULV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.FIRESTONE, + new Materials[] { Materials.Firestone }, new int[] { 100 * 100 }, - new int[] { 1 }, + new int[] {}, + Voltage.ULV, + ItemList.FR_RefractoryWax.get(1), + 30 * 100); + addCentrifugeToMaterial( + CombType.PYROPE, + new Materials[] { Materials.Pyrope, Materials.Aluminium, Materials.Magnesium, Materials.Silicon }, + new int[] { 100 * 100, 75 * 100, 80 * 100, 75 * 100 }, + new int[] {}, + Voltage.ULV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.GROSSULAR, + new Materials[] { Materials.Grossular, Materials.Aluminium, Materials.Silicon }, + new int[] { 100 * 100, 75 * 100, 75 * 100 }, + new int[] {}, + Voltage.ULV, + NI, + 30 * 100); + } + + // Metals Line + addProcessGT(CombType.SLAG, new Materials[] { Materials.Limestone }, Voltage.LV); + addProcessGT(CombType.COPPER, new Materials[] { Materials.Copper }, Voltage.LV); + addProcessGT(CombType.TIN, new Materials[] { Materials.Tin }, Voltage.LV); + addProcessGT(CombType.LEAD, new Materials[] { Materials.Lead }, Voltage.LV); + addProcessGT(CombType.INDIUM, new Materials[] { Materials.Indium }, Voltage.ZPM); + addProcessGT(CombType.NICKEL, new Materials[] { Materials.Nickel }, Voltage.LV); + addProcessGT(CombType.ZINC, new Materials[] { Materials.Zinc }, Voltage.LV); + addProcessGT(CombType.SILVER, new Materials[] { Materials.Silver }, Voltage.LV); + addProcessGT(CombType.CRYOLITE, new Materials[] { Materials.Cryolite }, Voltage.LV); + addProcessGT(CombType.GOLD, new Materials[] { Materials.Gold }, Voltage.LV); + addProcessGT(CombType.SULFUR, new Materials[] { Materials.Sulfur }, Voltage.LV); + addProcessGT(CombType.GALLIUM, new Materials[] { Materials.Gallium }, Voltage.LV); + addProcessGT(CombType.ARSENIC, new Materials[] { Materials.Arsenic }, Voltage.LV); + addProcessGT(CombType.IRON, new Materials[] { Materials.Iron }, Voltage.LV); + addProcessGT(CombType.STEEL, new Materials[] { Materials.Steel }, Voltage.LV); + if (GT_Mod.gregtechproxy.mNerfedCombs) { + addCentrifugeToMaterial( + CombType.SLAG, + new Materials[] { Materials.Stone, Materials.GraniteBlack, Materials.GraniteRed }, + new int[] { 50 * 100, 20 * 100, 20 * 100 }, + new int[] { 9, 9, 9 }, + Voltage.ULV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.COPPER, + new Materials[] { Materials.Copper }, + new int[] { 70 * 100 }, + new int[] {}, + Voltage.ULV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.TIN, + new Materials[] { Materials.Tin }, + new int[] { 60 * 100 }, + new int[] {}, + Voltage.ULV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.LEAD, + new Materials[] { Materials.Lead }, + new int[] { 45 * 100 }, + new int[] {}, + Voltage.ULV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.IRON, + new Materials[] { Materials.Iron }, + new int[] { 30 * 100 }, + new int[] {}, + Voltage.ULV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.STEEL, + new Materials[] { Materials.Steel }, + new int[] { 40 * 100 }, + new int[] {}, + Voltage.ULV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.SILVER, + new Materials[] { Materials.Silver }, + new int[] { 80 * 100 }, + new int[] {}, + Voltage.ULV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.CRYOLITE, + new Materials[] { Materials.Cryolite }, + new int[] { 80 * 100 }, + new int[] {}, + Voltage.ULV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.SULFUR, + new Materials[] { Materials.Sulfur }, + new int[] { 100 * 100 }, + new int[] {}, + Voltage.ULV, + NI, + 30 * 100); + } else { + addCentrifugeToMaterial( + CombType.SLAG, + new Materials[] { Materials.Salt, Materials.RockSalt, Materials.Lepidolite, Materials.Spodumene, + Materials.Monazite }, + new int[] { 100 * 100, 100 * 100, 100 * 100 }, + new int[] {}, + Voltage.ULV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.COPPER, + new Materials[] { Materials.Copper, Materials.Tetrahedrite, Materials.Chalcopyrite, Materials.Malachite, + Materials.Pyrite, Materials.Stibnite }, + new int[] { 100 * 100, 85 * 100, 95 * 100, 80 * 100, 75 * 100, 65 * 100 }, + new int[] {}, + Voltage.ULV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.TIN, + new Materials[] { Materials.Tin, Materials.Cassiterite, Materials.CassiteriteSand }, + new int[] { 100 * 100, 85 * 100, 65 * 100 }, + new int[] {}, + Voltage.ULV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.LEAD, + new Materials[] { Materials.Lead, Materials.Galena }, + new int[] { 100 * 100, 75 * 100 }, + new int[] {}, + Voltage.ULV, + NI, + 30 * 100); + + addCentrifugeToMaterial( + CombType.IRON, + new Materials[] { Materials.Iron, Materials.Magnetite, Materials.BrownLimonite, + Materials.YellowLimonite, Materials.VanadiumMagnetite, Materials.MeteoricIron }, + new int[] { 100 * 100, 90 * 100, 85 * 100, 85 * 100, 80 * 100, 75 * 100 }, + new int[] {}, + Voltage.ULV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.LEAD, + new Materials[] { Materials.Steel, Materials.Magnetite, Materials.VanadiumMagnetite, + Materials.Molybdenite, Materials.Molybdenum, Materials.MeteoricIron }, + new int[] { 100 * 100, 90 * 100, 80 * 100, 65 * 100, 65 * 100, 75 * 100 }, + new int[] {}, + Voltage.ULV, + NI, + 30 * 100); + + addCentrifugeToMaterial( + CombType.NICKEL, + new Materials[] { Materials.Nickel, Materials.Garnierite, Materials.Pentlandite, Materials.Cobaltite, + Materials.Wulfenite, Materials.Powellite }, + new int[] { 100 * 100, 85 * 100, 85 * 100, 80 * 100, 75 * 100, 75 * 100 }, + new int[] {}, Voltage.ULV, NI, 30 * 100); - addProcessGT(CombType.LAPIS, new Materials[] { Materials.Lapis }, Voltage.LV); - addProcessGT(CombType.RUBY, new Materials[] { Materials.Ruby }, Voltage.LV); - addProcessGT(CombType.REDGARNET, new Materials[] { Materials.GarnetRed }, Voltage.LV); - addProcessGT(CombType.YELLOWGARNET, new Materials[] { Materials.GarnetYellow }, Voltage.LV); - addProcessGT(CombType.SAPPHIRE, new Materials[] { Materials.Sapphire }, Voltage.LV); - addProcessGT(CombType.DIAMOND, new Materials[] { Materials.Diamond }, Voltage.LV); - addProcessGT(CombType.OLIVINE, new Materials[] { Materials.Olivine }, Voltage.LV); - addProcessGT(CombType.EMERALD, new Materials[] { Materials.Emerald }, Voltage.LV); - addProcessGT(CombType.FIRESTONE, new Materials[] { Materials.Firestone }, Voltage.LV); - addProcessGT(CombType.PYROPE, new Materials[] { Materials.Pyrope }, Voltage.LV); - addProcessGT(CombType.GROSSULAR, new Materials[] { Materials.Grossular }, Voltage.LV); - if (GT_Mod.gregtechproxy.mNerfedCombs) { addCentrifugeToMaterial( - CombType.STONE, - new Materials[] { Materials.Stone, Materials.GraniteBlack, Materials.GraniteRed, Materials.Basalt, - Materials.Marble, Materials.Redrock }, - new int[] { 70 * 100, 50 * 100, 50 * 100, 50 * 100, 50 * 100, 50 * 100 }, - new int[] { 9, 9, 9, 9, 9, 9 }, - Voltage.ULV, - NI, - 50 * 100); - addCentrifugeToMaterial( - CombType.FLUIX, - new Materials[] { Materials.Fluix }, - new int[] { 25 * 100 }, - new int[] { 9 }, - Voltage.ULV, - NI, - 30 * 100); - } else { + CombType.ZINC, + new Materials[] { Materials.Zinc, Materials.Sphalerite, Materials.Sulfur }, + new int[] { 100 * 100, 80 * 100, 75 * 100 }, + new int[] {}, + Voltage.ULV, + NI, + 30 * 100); addCentrifugeToMaterial( - CombType.STONE, - new Materials[] { Materials.Soapstone, Materials.Talc, Materials.Apatite, Materials.Phosphate, - Materials.TricalciumPhosphate }, - new int[] { 95 * 100, 90 * 100, 80 * 100, 75 * 100, 75 * 100 }, - new int[] {}, - Voltage.ULV, - NI, - 50 * 100); - addCentrifugeToMaterial( - CombType.CERTUS, - new Materials[] { Materials.CertusQuartz, Materials.Quartzite, Materials.Barite }, - new int[] { 100 * 100, 80 * 100, 75 * 100 }, - new int[] {}, - Voltage.ULV, - NI, - 50 * 100); - addCentrifugeToMaterial( - CombType.FLUIX, - new Materials[] { Materials.Fluix, Materials.Redstone, Materials.CertusQuartz, - Materials.NetherQuartz }, - new int[] { 25 * 100, 90 * 100, 90 * 100, 90 * 100 }, - new int[] { 9, 1, 1, 1 }, - Voltage.ULV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.REDSTONE, - new Materials[] { Materials.Redstone, Materials.Cinnabar }, - new int[] { 100 * 100, 80 * 100 }, - new int[] {}, - Voltage.ULV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.LAPIS, - new Materials[] { Materials.Lapis, Materials.Sodalite, Materials.Lazurite, Materials.Calcite }, - new int[] { 100 * 100, 90 * 100, 90 * 100, 85 * 100 }, - new int[] {}, - Voltage.ULV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.RUBY, - new Materials[] { Materials.Ruby, Materials.Redstone }, - new int[] { 100 * 100, 90 * 100 }, - new int[] {}, - Voltage.ULV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.REDGARNET, - new Materials[] { Materials.GarnetRed, Materials.GarnetYellow }, - new int[] { 100 * 100, 75 * 100 }, - new int[] {}, - Voltage.ULV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.YELLOWGARNET, - new Materials[] { Materials.GarnetYellow, Materials.GarnetRed }, - new int[] { 100 * 100, 75 * 100 }, - new int[] {}, - Voltage.ULV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.SAPPHIRE, - new Materials[] { Materials.Sapphire, Materials.GreenSapphire, Materials.Almandine, - Materials.Pyrope }, - new int[] { 100 * 100, 90 * 100, 90 * 100, 75 * 100 }, - new int[] {}, - Voltage.ULV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.DIAMOND, - new Materials[] { Materials.Diamond, Materials.Graphite }, - new int[] { 100 * 100, 75 * 100 }, - new int[] {}, - Voltage.ULV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.OLIVINE, - new Materials[] { Materials.Olivine, Materials.Bentonite, Materials.Magnesite, - Materials.Glauconite }, - new int[] { 100 * 100, 90 * 100, 80 * 100, 75 * 100 }, - new int[] {}, - Voltage.ULV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.EMERALD, - new Materials[] { Materials.Emerald, Materials.Beryllium, Materials.Thorium }, - new int[] { 100 * 100, 85 * 100, 75 * 100 }, - new int[] {}, - Voltage.ULV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.FIRESTONE, - new Materials[] { Materials.Firestone }, - new int[] { 100 * 100 }, - new int[] {}, - Voltage.ULV, - ItemList.FR_RefractoryWax.get(1), - 30 * 100); - addCentrifugeToMaterial( - CombType.PYROPE, - new Materials[] { Materials.Pyrope, Materials.Aluminium, Materials.Magnesium, Materials.Silicon }, - new int[] { 100 * 100, 75 * 100, 80 * 100, 75 * 100 }, - new int[] {}, - Voltage.ULV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.GROSSULAR, - new Materials[] { Materials.Grossular, Materials.Aluminium, Materials.Silicon }, - new int[] { 100 * 100, 75 * 100, 75 * 100 }, - new int[] {}, - Voltage.ULV, - NI, - 30 * 100); - } - - // Metals Line - addProcessGT(CombType.SLAG, new Materials[] { Materials.Limestone }, Voltage.LV); - addProcessGT(CombType.COPPER, new Materials[] { Materials.Copper }, Voltage.LV); - addProcessGT(CombType.TIN, new Materials[] { Materials.Tin }, Voltage.LV); - addProcessGT(CombType.LEAD, new Materials[] { Materials.Lead }, Voltage.LV); - addProcessGT(CombType.INDIUM, new Materials[] { Materials.Indium }, Voltage.ZPM); - addProcessGT(CombType.NICKEL, new Materials[] { Materials.Nickel }, Voltage.LV); - addProcessGT(CombType.ZINC, new Materials[] { Materials.Zinc }, Voltage.LV); - addProcessGT(CombType.SILVER, new Materials[] { Materials.Silver }, Voltage.LV); - addProcessGT(CombType.CRYOLITE, new Materials[] { Materials.Cryolite }, Voltage.LV); - addProcessGT(CombType.GOLD, new Materials[] { Materials.Gold }, Voltage.LV); - addProcessGT(CombType.SULFUR, new Materials[] { Materials.Sulfur }, Voltage.LV); - addProcessGT(CombType.GALLIUM, new Materials[] { Materials.Gallium }, Voltage.LV); - addProcessGT(CombType.ARSENIC, new Materials[] { Materials.Arsenic }, Voltage.LV); - addProcessGT(CombType.IRON, new Materials[] { Materials.Iron }, Voltage.LV); - addProcessGT(CombType.STEEL, new Materials[] { Materials.Steel }, Voltage.LV); - if (GT_Mod.gregtechproxy.mNerfedCombs) { + CombType.SILVER, + new Materials[] { Materials.Silver, Materials.Galena }, + new int[] { 100 * 100, 80 * 100 }, + new int[] {}, + Voltage.ULV, + NI, + 30 * 100); addCentrifugeToMaterial( - CombType.SLAG, - new Materials[] { Materials.Stone, Materials.GraniteBlack, Materials.GraniteRed }, - new int[] { 50 * 100, 20 * 100, 20 * 100 }, - new int[] { 9, 9, 9 }, - Voltage.ULV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.COPPER, - new Materials[] { Materials.Copper }, - new int[] { 70 * 100 }, - new int[] {}, - Voltage.ULV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.TIN, - new Materials[] { Materials.Tin }, - new int[] { 60 * 100 }, - new int[] {}, - Voltage.ULV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.LEAD, - new Materials[] { Materials.Lead }, - new int[] { 45 * 100 }, - new int[] {}, - Voltage.ULV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.IRON, - new Materials[] { Materials.Iron }, - new int[] { 30 * 100 }, - new int[] {}, - Voltage.ULV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.STEEL, - new Materials[] { Materials.Steel }, - new int[] { 40 * 100 }, - new int[] {}, - Voltage.ULV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.SILVER, - new Materials[] { Materials.Silver }, - new int[] { 80 * 100 }, - new int[] {}, - Voltage.ULV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.CRYOLITE, - new Materials[] { Materials.Cryolite }, - new int[] { 80 * 100 }, - new int[] {}, - Voltage.ULV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.SULFUR, - new Materials[] { Materials.Sulfur }, - new int[] { 100 * 100 }, - new int[] {}, - Voltage.ULV, - NI, - 30 * 100); - } else { + CombType.CRYOLITE, + new Materials[] { Materials.Cryolite, Materials.Silver }, + new int[] { 100 * 100, 80 * 100 }, + new int[] {}, + Voltage.ULV, + NI, + 30 * 100); addCentrifugeToMaterial( - CombType.SLAG, - new Materials[] { Materials.Salt, Materials.RockSalt, Materials.Lepidolite, Materials.Spodumene, - Materials.Monazite }, - new int[] { 100 * 100, 100 * 100, 100 * 100 }, - new int[] {}, - Voltage.ULV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.COPPER, - new Materials[] { Materials.Copper, Materials.Tetrahedrite, Materials.Chalcopyrite, - Materials.Malachite, Materials.Pyrite, Materials.Stibnite }, - new int[] { 100 * 100, 85 * 100, 95 * 100, 80 * 100, 75 * 100, 65 * 100 }, - new int[] {}, - Voltage.ULV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.TIN, - new Materials[] { Materials.Tin, Materials.Cassiterite, Materials.CassiteriteSand }, - new int[] { 100 * 100, 85 * 100, 65 * 100 }, - new int[] {}, - Voltage.ULV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.LEAD, - new Materials[] { Materials.Lead, Materials.Galena }, - new int[] { 100 * 100, 75 * 100 }, - new int[] {}, - Voltage.ULV, - NI, - 30 * 100); - + CombType.GOLD, + new Materials[] { Materials.Gold }, + new int[] { 100 * 100 }, + new int[] {}, + Voltage.ULV, + NI, + 30 * 100); addCentrifugeToMaterial( - CombType.IRON, - new Materials[] { Materials.Iron, Materials.Magnetite, Materials.BrownLimonite, - Materials.YellowLimonite, Materials.VanadiumMagnetite, Materials.MeteoricIron }, - new int[] { 100 * 100, 90 * 100, 85 * 100, 85 * 100, 80 * 100, 75 * 100 }, - new int[] {}, - Voltage.ULV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.LEAD, - new Materials[] { Materials.Steel, Materials.Magnetite, Materials.VanadiumMagnetite, - Materials.Molybdenite, Materials.Molybdenum, Materials.MeteoricIron }, - new int[] { 100 * 100, 90 * 100, 80 * 100, 65 * 100, 65 * 100, 75 * 100 }, - new int[] {}, - Voltage.ULV, - NI, - 30 * 100); - + CombType.SULFUR, + new Materials[] { Materials.Sulfur, Materials.Pyrite, Materials.Sphalerite }, + new int[] { 100 * 100, 90 * 100, 80 * 100 }, + new int[] {}, + Voltage.ULV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.GALLIUM, + new Materials[] { Materials.Gallium, Materials.Niobium }, + new int[] { 80 * 100, 75 * 100 }, + new int[] {}, + Voltage.ULV, + NI, + 30 * 100); addCentrifugeToMaterial( - CombType.NICKEL, - new Materials[] { Materials.Nickel, Materials.Garnierite, Materials.Pentlandite, - Materials.Cobaltite, Materials.Wulfenite, Materials.Powellite }, - new int[] { 100 * 100, 85 * 100, 85 * 100, 80 * 100, 75 * 100, 75 * 100 }, - new int[] {}, - Voltage.ULV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.ZINC, - new Materials[] { Materials.Zinc, Materials.Sphalerite, Materials.Sulfur }, - new int[] { 100 * 100, 80 * 100, 75 * 100 }, - new int[] {}, - Voltage.ULV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.SILVER, - new Materials[] { Materials.Silver, Materials.Galena }, - new int[] { 100 * 100, 80 * 100 }, - new int[] {}, - Voltage.ULV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.CRYOLITE, - new Materials[] { Materials.Cryolite, Materials.Silver }, - new int[] { 100 * 100, 80 * 100 }, - new int[] {}, - Voltage.ULV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.GOLD, - new Materials[] { Materials.Gold }, - new int[] { 100 * 100 }, - new int[] {}, - Voltage.ULV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.SULFUR, - new Materials[] { Materials.Sulfur, Materials.Pyrite, Materials.Sphalerite }, - new int[] { 100 * 100, 90 * 100, 80 * 100 }, - new int[] {}, - Voltage.ULV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.GALLIUM, - new Materials[] { Materials.Gallium, Materials.Niobium }, - new int[] { 80 * 100, 75 * 100 }, - new int[] {}, - Voltage.ULV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.ARSENIC, - new Materials[] { Materials.Arsenic, Materials.Bismuth, Materials.Antimony }, - new int[] { 80 * 100, 70 * 100, 70 * 100 }, - new int[] {}, - Voltage.ULV, - NI, - 30 * 100); + CombType.ARSENIC, + new Materials[] { Materials.Arsenic, Materials.Bismuth, Materials.Antimony }, + new int[] { 80 * 100, 70 * 100, 70 * 100 }, + new int[] {}, + Voltage.ULV, + NI, + 30 * 100); } // Rare Metals Line @@ -954,121 +949,121 @@ public class ItemComb extends Item implements IGT_ItemWithMaterialRenderer { addProcessGT(CombType.ELECTROTINE, new Materials[] { Materials.Electrotine }, Voltage.MV); if (GT_Mod.gregtechproxy.mNerfedCombs) { addCentrifugeToItemStack( - CombType.SALT, - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Salt, 6), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.RockSalt, 6), ItemList.FR_Wax.get(1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Saltpeter, 6) }, - new int[] { 100 * 100, 100 * 100, 50 * 100, 25 * 100 }, - Voltage.MV, - 160); + CombType.SALT, + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Salt, 6), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.RockSalt, 6), ItemList.FR_Wax.get(1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Saltpeter, 6) }, + new int[] { 100 * 100, 100 * 100, 50 * 100, 25 * 100 }, + Voltage.MV, + 160); } else { addCentrifugeToMaterial( - CombType.BAUXITE, - new Materials[] { Materials.Bauxite, Materials.Aluminium }, - new int[] { 75 * 100, 55 * 100 }, - new int[] {}, - Voltage.ULV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.ALUMINIUM, - new Materials[] { Materials.Aluminium, Materials.Bauxite }, - new int[] { 60 * 100, 80 * 100 }, - new int[] {}, - Voltage.ULV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.MANGANESE, - new Materials[] { Materials.Manganese, Materials.Grossular, Materials.Spessartine, - Materials.Pyrolusite, Materials.Tantalite }, - new int[] { 30 * 100, 100 * 100, 100 * 100, 100 * 100, 100 * 100 }, - new int[] {}, - Voltage.ULV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.TITANIUM, - new Materials[] { Materials.Titanium, Materials.Ilmenite, Materials.Bauxite, Materials.Rutile }, - new int[] { 90 * 100, 80 * 100, 75 * 100, 75 * 100 }, - new int[] {}, - Voltage.EV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.MAGNESIUM, - new Materials[] { Materials.Magnesium, Materials.Magnesite }, - new int[] { 100 * 100, 80 * 100 }, - new int[] {}, - Voltage.ULV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.CHROME, - new Materials[] { Materials.Chrome, Materials.Ruby, Materials.Chromite, Materials.Redstone, - Materials.Neodymium, Materials.Bastnasite }, - new int[] { 50 * 100, 100 * 100, 50 * 100, 100 * 100, 80 * 100, 80 * 100 }, - new int[] {}, - Voltage.HV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.TUNGSTEN, - new Materials[] { Materials.Tungsten, Materials.Tungstate, Materials.Scheelite, Materials.Lithium }, - new int[] { 50 * 100, 80 * 100, 75 * 100, 75 * 100 }, - new int[] {}, - Voltage.IV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.PLATINUM, - new Materials[] { Materials.Platinum, Materials.Cooperite, Materials.Palladium }, - new int[] { 40 * 100, 40 * 100, 40 * 100 }, - new int[] {}, - Voltage.HV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.MOLYBDENUM, - new Materials[] { Materials.Molybdenum, Materials.Molybdenite, Materials.Powellite, - Materials.Wulfenite }, - new int[] { 100 * 100, 80 * 100, 75 * 100 }, - new int[] {}, - Voltage.ULV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.IRIDIUM, - new Materials[] { Materials.Iridium, Materials.Osmium }, - new int[] { 20 * 100, 15 * 100 }, - new int[] {}, - Voltage.IV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.OSMIUM, - new Materials[] { Materials.Osmium, Materials.Iridium }, - new int[] { 25 * 100, 15 * 100 }, - new int[] {}, - Voltage.IV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.LITHIUM, - new Materials[] { Materials.Lithium, Materials.Aluminium }, - new int[] { 85 * 100, 75 * 100 }, - new int[] {}, - Voltage.MV, - NI, - 30 * 100); + CombType.BAUXITE, + new Materials[] { Materials.Bauxite, Materials.Aluminium }, + new int[] { 75 * 100, 55 * 100 }, + new int[] {}, + Voltage.ULV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.ALUMINIUM, + new Materials[] { Materials.Aluminium, Materials.Bauxite }, + new int[] { 60 * 100, 80 * 100 }, + new int[] {}, + Voltage.ULV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.MANGANESE, + new Materials[] { Materials.Manganese, Materials.Grossular, Materials.Spessartine, Materials.Pyrolusite, + Materials.Tantalite }, + new int[] { 30 * 100, 100 * 100, 100 * 100, 100 * 100, 100 * 100 }, + new int[] {}, + Voltage.ULV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.TITANIUM, + new Materials[] { Materials.Titanium, Materials.Ilmenite, Materials.Bauxite, Materials.Rutile }, + new int[] { 90 * 100, 80 * 100, 75 * 100, 75 * 100 }, + new int[] {}, + Voltage.EV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.MAGNESIUM, + new Materials[] { Materials.Magnesium, Materials.Magnesite }, + new int[] { 100 * 100, 80 * 100 }, + new int[] {}, + Voltage.ULV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.CHROME, + new Materials[] { Materials.Chrome, Materials.Ruby, Materials.Chromite, Materials.Redstone, + Materials.Neodymium, Materials.Bastnasite }, + new int[] { 50 * 100, 100 * 100, 50 * 100, 100 * 100, 80 * 100, 80 * 100 }, + new int[] {}, + Voltage.HV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.TUNGSTEN, + new Materials[] { Materials.Tungsten, Materials.Tungstate, Materials.Scheelite, Materials.Lithium }, + new int[] { 50 * 100, 80 * 100, 75 * 100, 75 * 100 }, + new int[] {}, + Voltage.IV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.PLATINUM, + new Materials[] { Materials.Platinum, Materials.Cooperite, Materials.Palladium }, + new int[] { 40 * 100, 40 * 100, 40 * 100 }, + new int[] {}, + Voltage.HV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.MOLYBDENUM, + new Materials[] { Materials.Molybdenum, Materials.Molybdenite, Materials.Powellite, + Materials.Wulfenite }, + new int[] { 100 * 100, 80 * 100, 75 * 100 }, + new int[] {}, + Voltage.ULV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.IRIDIUM, + new Materials[] { Materials.Iridium, Materials.Osmium }, + new int[] { 20 * 100, 15 * 100 }, + new int[] {}, + Voltage.IV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.OSMIUM, + new Materials[] { Materials.Osmium, Materials.Iridium }, + new int[] { 25 * 100, 15 * 100 }, + new int[] {}, + Voltage.IV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.LITHIUM, + new Materials[] { Materials.Lithium, Materials.Aluminium }, + new int[] { 85 * 100, 75 * 100 }, + new int[] {}, + Voltage.MV, + NI, + 30 * 100); addCentrifugeToItemStack( - CombType.SALT, - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Salt, 6), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.RockSalt, 6), ItemList.FR_Wax.get(1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Saltpeter, 6) }, - new int[] { 100 * 100, 100 * 100, 50 * 100, 25 * 100 }, - Voltage.MV, - 160); + CombType.SALT, + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Salt, 6), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.RockSalt, 6), ItemList.FR_Wax.get(1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Saltpeter, 6) }, + new int[] { 100 * 100, 100 * 100, 50 * 100, 25 * 100 }, + Voltage.MV, + 160); } // Radioactive Line @@ -1083,221 +1078,218 @@ public class ItemComb extends Item implements IGT_ItemWithMaterialRenderer { addProcessGT(CombType.NEUTRONIUM, new Materials[] { Materials.Neutronium }, Voltage.UHV); if (!GT_Mod.gregtechproxy.mNerfedCombs) { addCentrifugeToMaterial( - CombType.ALMANDINE, - new Materials[] { Materials.Almandine, Materials.Pyrope, Materials.Sapphire, - Materials.GreenSapphire }, - new int[] { 90 * 100, 80 * 100, 75 * 100, 75 * 100 }, - new int[] {}, - Voltage.ULV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.URANIUM, - new Materials[] { Materials.Uranium, Materials.Pitchblende, Materials.Uraninite, - Materials.Uranium235 }, - new int[] { 50 * 100, 65 * 100, 75 * 100, 50 * 100 }, - new int[] {}, - Voltage.EV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.PLUTONIUM, - new Materials[] { Materials.Plutonium, Materials.Uranium235 }, - new int[] { 10, 5 }, - new int[] {}, - Voltage.EV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.NAQUADAH, - new Materials[] { Materials.Naquadah, Materials.NaquadahEnriched, Materials.Naquadria }, - new int[] { 10 * 100, 5 * 100, 5 * 100 }, - new int[] {}, - Voltage.IV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.NAQUADRIA, - new Materials[] { Materials.Naquadria, Materials.NaquadahEnriched, Materials.Naquadah }, - new int[] { 10 * 100, 10 * 100, 15 * 100 }, - new int[] {}, - Voltage.LuV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.THORIUM, - new Materials[] { Materials.Thorium, Materials.Uranium, Materials.Coal }, - new int[] { 75 * 100, 75 * 100 * 100, 95 * 100 }, - new int[] {}, - Voltage.EV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.LUTETIUM, - new Materials[] { Materials.Lutetium, Materials.Thorium }, - new int[] { 35 * 100, 55 * 100 }, - new int[] {}, - Voltage.IV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.AMERICIUM, - new Materials[] { Materials.Americium, Materials.Lutetium }, - new int[] { 25 * 100, 45 * 100 }, - new int[] {}, - Voltage.LuV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.NEUTRONIUM, - new Materials[] { Materials.Neutronium, Materials.Americium }, - new int[] { 15 * 100, 35 * 100 }, - new int[] {}, - Voltage.UHV, - NI, - 30 * 100); + CombType.ALMANDINE, + new Materials[] { Materials.Almandine, Materials.Pyrope, Materials.Sapphire, Materials.GreenSapphire }, + new int[] { 90 * 100, 80 * 100, 75 * 100, 75 * 100 }, + new int[] {}, + Voltage.ULV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.URANIUM, + new Materials[] { Materials.Uranium, Materials.Pitchblende, Materials.Uraninite, Materials.Uranium235 }, + new int[] { 50 * 100, 65 * 100, 75 * 100, 50 * 100 }, + new int[] {}, + Voltage.EV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.PLUTONIUM, + new Materials[] { Materials.Plutonium, Materials.Uranium235 }, + new int[] { 10, 5 }, + new int[] {}, + Voltage.EV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.NAQUADAH, + new Materials[] { Materials.Naquadah, Materials.NaquadahEnriched, Materials.Naquadria }, + new int[] { 10 * 100, 5 * 100, 5 * 100 }, + new int[] {}, + Voltage.IV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.NAQUADRIA, + new Materials[] { Materials.Naquadria, Materials.NaquadahEnriched, Materials.Naquadah }, + new int[] { 10 * 100, 10 * 100, 15 * 100 }, + new int[] {}, + Voltage.LuV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.THORIUM, + new Materials[] { Materials.Thorium, Materials.Uranium, Materials.Coal }, + new int[] { 75 * 100, 75 * 100 * 100, 95 * 100 }, + new int[] {}, + Voltage.EV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.LUTETIUM, + new Materials[] { Materials.Lutetium, Materials.Thorium }, + new int[] { 35 * 100, 55 * 100 }, + new int[] {}, + Voltage.IV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.AMERICIUM, + new Materials[] { Materials.Americium, Materials.Lutetium }, + new int[] { 25 * 100, 45 * 100 }, + new int[] {}, + Voltage.LuV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.NEUTRONIUM, + new Materials[] { Materials.Neutronium, Materials.Americium }, + new int[] { 15 * 100, 35 * 100 }, + new int[] {}, + Voltage.UHV, + NI, + 30 * 100); } // Twilight addCentrifugeToItemStack( - CombType.NAGA, - new ItemStack[] { GT_ModHandler.getModItem(MagicBees.ID, "propolis", 1L, 4), - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.NagaScaleChip", 1L, 0), - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.NagaScaleFragment", 1L, 0), - ItemList.FR_Wax.get(1) }, - new int[] { 5 * 100, 33 * 100, 8 * 100, 30 * 100 }, - Voltage.MV); + CombType.NAGA, + new ItemStack[] { GT_ModHandler.getModItem(MagicBees.ID, "propolis", 1L, 4), + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.NagaScaleChip", 1L, 0), + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.NagaScaleFragment", 1L, 0), + ItemList.FR_Wax.get(1) }, + new int[] { 5 * 100, 33 * 100, 8 * 100, 30 * 100 }, + Voltage.MV); addCentrifugeToItemStack( - CombType.LICH, - new ItemStack[] { GT_ModHandler.getModItem(MagicBees.ID, "propolis", 1L, 5), - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.LichBoneChip", 1L, 0), - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.LichBoneFragment", 1L, 0), - ItemList.FR_Wax.get(1) }, - new int[] { 5 * 100, 33 * 100, 8 * 100, 30 * 100 }, - Voltage.HV); + CombType.LICH, + new ItemStack[] { GT_ModHandler.getModItem(MagicBees.ID, "propolis", 1L, 5), + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.LichBoneChip", 1L, 0), + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.LichBoneFragment", 1L, 0), + ItemList.FR_Wax.get(1) }, + new int[] { 5 * 100, 33 * 100, 8 * 100, 30 * 100 }, + Voltage.HV); addCentrifugeToItemStack( - CombType.HYDRA, - new ItemStack[] { GT_ModHandler.getModItem(MagicBees.ID, "propolis", 1L, 1), - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.FieryBloodDrop", 1L, 0), - GT_Bees.drop.getStackForType(DropType.HYDRA), ItemList.FR_Wax.get(1) }, - new int[] { 5 * 100, 33 * 100, 8 * 100, 30 * 100 }, - Voltage.HV); + CombType.HYDRA, + new ItemStack[] { GT_ModHandler.getModItem(MagicBees.ID, "propolis", 1L, 1), + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.FieryBloodDrop", 1L, 0), + GT_Bees.drop.getStackForType(DropType.HYDRA), ItemList.FR_Wax.get(1) }, + new int[] { 5 * 100, 33 * 100, 8 * 100, 30 * 100 }, + Voltage.HV); addCentrifugeToItemStack( - CombType.URGHAST, - new ItemStack[] { GT_ModHandler.getModItem(MagicBees.ID, "propolis", 1L, 2), - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CarminiteChip", 1L, 0), - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CarminiteFragment", 1L, 0), - ItemList.FR_Wax.get(1) }, - new int[] { 5 * 100, 33 * 100, 8 * 100, 30 * 100 }, - Voltage.EV); + CombType.URGHAST, + new ItemStack[] { GT_ModHandler.getModItem(MagicBees.ID, "propolis", 1L, 2), + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CarminiteChip", 1L, 0), + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CarminiteFragment", 1L, 0), + ItemList.FR_Wax.get(1) }, + new int[] { 5 * 100, 33 * 100, 8 * 100, 30 * 100 }, + Voltage.EV); addCentrifugeToItemStack( - CombType.SNOWQUEEN, - new ItemStack[] { GT_ModHandler.getModItem(MagicBees.ID, "propolis", 1L, 3), - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.SnowQueenBloodDrop", 1L, 0), - GT_Bees.drop.getStackForType(DropType.SNOW_QUEEN), ItemList.FR_Wax.get(1) }, - new int[] { 5 * 100, 33 * 100, 8 * 100, 30 * 100 }, - Voltage.EV); + CombType.SNOWQUEEN, + new ItemStack[] { GT_ModHandler.getModItem(MagicBees.ID, "propolis", 1L, 3), + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.SnowQueenBloodDrop", 1L, 0), + GT_Bees.drop.getStackForType(DropType.SNOW_QUEEN), ItemList.FR_Wax.get(1) }, + new int[] { 5 * 100, 33 * 100, 8 * 100, 30 * 100 }, + Voltage.EV); // HEE addCentrifugeToItemStack( - CombType.ENDDUST, - new ItemStack[] { GT_ModHandler.getModItem(MagicBees.ID, "wax", 1L, 0), - GT_Bees.propolis.getStackForType(PropolisType.End), - GT_Bees.drop.getStackForType(DropType.ENDERGOO), }, - new int[] { 20 * 100, 15 * 100, 10 * 100 }, - Voltage.HV); + CombType.ENDDUST, + new ItemStack[] { GT_ModHandler.getModItem(MagicBees.ID, "wax", 1L, 0), + GT_Bees.propolis.getStackForType(PropolisType.End), GT_Bees.drop.getStackForType(DropType.ENDERGOO), }, + new int[] { 20 * 100, 15 * 100, 10 * 100 }, + Voltage.HV); addCentrifugeToItemStack( - CombType.STARDUST, - new ItemStack[] { GT_ModHandler.getModItem(MagicBees.ID, "wax", 1L, 0), - GT_Bees.propolis.getStackForType(PropolisType.Stardust), - GT_Bees.drop.getStackForType(DropType.ENDERGOO) }, - new int[] { 20 * 100, 15 * 100, 10 * 100 }, - Voltage.HV); + CombType.STARDUST, + new ItemStack[] { GT_ModHandler.getModItem(MagicBees.ID, "wax", 1L, 0), + GT_Bees.propolis.getStackForType(PropolisType.Stardust), + GT_Bees.drop.getStackForType(DropType.ENDERGOO) }, + new int[] { 20 * 100, 15 * 100, 10 * 100 }, + Voltage.HV); addCentrifugeToItemStack( - CombType.ECTOPLASMA, - new ItemStack[] { GT_ModHandler.getModItem(MagicBees.ID, "wax", 1L, 0), - GT_Bees.propolis.getStackForType(PropolisType.Ectoplasma), - GT_Bees.drop.getStackForType(DropType.ENDERGOO) }, - new int[] { 25 * 100, 10 * 100, 15 * 100 }, - Voltage.EV); + CombType.ECTOPLASMA, + new ItemStack[] { GT_ModHandler.getModItem(MagicBees.ID, "wax", 1L, 0), + GT_Bees.propolis.getStackForType(PropolisType.Ectoplasma), + GT_Bees.drop.getStackForType(DropType.ENDERGOO) }, + new int[] { 25 * 100, 10 * 100, 15 * 100 }, + Voltage.EV); addCentrifugeToItemStack( - CombType.ARCANESHARD, - new ItemStack[] { GT_ModHandler.getModItem(MagicBees.ID, "wax", 1L, 0), - GT_Bees.propolis.getStackForType(PropolisType.Arcaneshard), - GT_Bees.drop.getStackForType(DropType.ENDERGOO) }, - new int[] { 25 * 100, 10 * 100, 15 * 100 }, - Voltage.EV); + CombType.ARCANESHARD, + new ItemStack[] { GT_ModHandler.getModItem(MagicBees.ID, "wax", 1L, 0), + GT_Bees.propolis.getStackForType(PropolisType.Arcaneshard), + GT_Bees.drop.getStackForType(DropType.ENDERGOO) }, + new int[] { 25 * 100, 10 * 100, 15 * 100 }, + Voltage.EV); addCentrifugeToItemStack( - CombType.DRAGONESSENCE, - new ItemStack[] { GT_ModHandler.getModItem(MagicBees.ID, "wax", 1L, 0), - GT_Bees.propolis.getStackForType(PropolisType.Dragonessence), - GT_Bees.drop.getStackForType(DropType.ENDERGOO) }, - new int[] { 30 * 100, (int) (7.5 * 100), 20 * 100 }, - Voltage.IV); + CombType.DRAGONESSENCE, + new ItemStack[] { GT_ModHandler.getModItem(MagicBees.ID, "wax", 1L, 0), + GT_Bees.propolis.getStackForType(PropolisType.Dragonessence), + GT_Bees.drop.getStackForType(DropType.ENDERGOO) }, + new int[] { 30 * 100, (int) (7.5 * 100), 20 * 100 }, + Voltage.IV); addCentrifugeToItemStack( - CombType.ENDERMAN, - new ItemStack[] { GT_ModHandler.getModItem(MagicBees.ID, "wax", 1L, 0), - GT_Bees.propolis.getStackForType(PropolisType.Enderman), - GT_Bees.drop.getStackForType(DropType.ENDERGOO) }, - new int[] { 3000, 750, 2000 }, - Voltage.IV); + CombType.ENDERMAN, + new ItemStack[] { GT_ModHandler.getModItem(MagicBees.ID, "wax", 1L, 0), + GT_Bees.propolis.getStackForType(PropolisType.Enderman), + GT_Bees.drop.getStackForType(DropType.ENDERGOO) }, + new int[] { 3000, 750, 2000 }, + Voltage.IV); addCentrifugeToItemStack( - CombType.SILVERFISH, - new ItemStack[] { GT_ModHandler.getModItem(MagicBees.ID, "wax", 1L, 0), - GT_Bees.propolis.getStackForType(PropolisType.Silverfish), - GT_Bees.drop.getStackForType(DropType.ENDERGOO), new ItemStack(Items.spawn_egg, 1, 60) }, - new int[] { 25 * 100, 10 * 100, 20 * 100, 15 * 100 }, - Voltage.EV); + CombType.SILVERFISH, + new ItemStack[] { GT_ModHandler.getModItem(MagicBees.ID, "wax", 1L, 0), + GT_Bees.propolis.getStackForType(PropolisType.Silverfish), + GT_Bees.drop.getStackForType(DropType.ENDERGOO), new ItemStack(Items.spawn_egg, 1, 60) }, + new int[] { 25 * 100, 10 * 100, 20 * 100, 15 * 100 }, + Voltage.EV); addProcessGT(CombType.ENDIUM, new Materials[] { Materials.HeeEndium }, Voltage.HV); if (!GT_Mod.gregtechproxy.mNerfedCombs) { addCentrifugeToMaterial( - CombType.ENDIUM, - new Materials[] { Materials.HeeEndium }, - new int[] { 50 * 100 }, - new int[] {}, - Voltage.HV, - GT_ModHandler.getModItem(MagicBees.ID, "wax", 1L, 0), - 20 * 100); + CombType.ENDIUM, + new Materials[] { Materials.HeeEndium }, + new int[] { 50 * 100 }, + new int[] {}, + Voltage.HV, + GT_ModHandler.getModItem(MagicBees.ID, "wax", 1L, 0), + 20 * 100); } addCentrifugeToItemStack( - CombType.RUNEI, - new ItemStack[] { GT_ModHandler.getModItem(MagicBees.ID, "wax", 1L, 0), - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.RuneOfPowerFragment", 1L, 0), - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.RuneOfAgilityFragment", 1L, 0), - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.RuneOfVigorFragment", 1L, 0), - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.RuneOfDefenseFragment", 1L, 0), - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.RuneOfMagicFragment", 1L, 0) }, - new int[] { 25 * 100, 5 * 100, 5 * 100, 5 * 100, 5 * 100, 5 * 100 }, - Voltage.IV); + CombType.RUNEI, + new ItemStack[] { GT_ModHandler.getModItem(MagicBees.ID, "wax", 1L, 0), + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.RuneOfPowerFragment", 1L, 0), + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.RuneOfAgilityFragment", 1L, 0), + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.RuneOfVigorFragment", 1L, 0), + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.RuneOfDefenseFragment", 1L, 0), + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.RuneOfMagicFragment", 1L, 0) }, + new int[] { 25 * 100, 5 * 100, 5 * 100, 5 * 100, 5 * 100, 5 * 100 }, + Voltage.IV); addCentrifugeToItemStack( - CombType.RUNEII, - new ItemStack[] { GT_ModHandler.getModItem(MagicBees.ID, "wax", 1L, 0), - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.RuneOfVoidFragment", 1L, 0) }, - new int[] { 50 * 100, (int) (2.5 * 100) }, - Voltage.IV); + CombType.RUNEII, + new ItemStack[] { GT_ModHandler.getModItem(MagicBees.ID, "wax", 1L, 0), + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.RuneOfVoidFragment", 1L, 0) }, + new int[] { 50 * 100, (int) (2.5 * 100) }, + Voltage.IV); addCentrifugeToItemStack( - CombType.FIREESSENSE, - new ItemStack[] { GT_ModHandler.getModItem(MagicBees.ID, "wax", 1L, 0), - GT_Bees.propolis.getStackForType(PropolisType.Fireessence), - GT_Bees.drop.getStackForType(DropType.ENDERGOO) }, - new int[] { 30 * 100, (int) (7.5 * 100), 20 * 100 }, - Voltage.IV); + CombType.FIREESSENSE, + new ItemStack[] { GT_ModHandler.getModItem(MagicBees.ID, "wax", 1L, 0), + GT_Bees.propolis.getStackForType(PropolisType.Fireessence), + GT_Bees.drop.getStackForType(DropType.ENDERGOO) }, + new int[] { 30 * 100, (int) (7.5 * 100), 20 * 100 }, + Voltage.IV); // Walrus Recipe if (AE2FluidCraft.isModLoaded()) { addCentrifugeToItemStack( - CombType.WALRUS, - new ItemStack[] { GT_ModHandler.getModItem(AE2FluidCraft.ID, "walrus", 1L, 0) }, - new int[] { 100 * 100 }, - Voltage.LV); + CombType.WALRUS, + new ItemStack[] { GT_ModHandler.getModItem(AE2FluidCraft.ID, "walrus", 1L, 0) }, + new int[] { 100 * 100 }, + Voltage.LV); } // Space Line addCentrifugeToItemStack( - CombType.SPACE, - new ItemStack[] { ItemList.FR_Wax.get(1L), ItemList.FR_RefractoryWax.get(1L), - GT_Bees.drop.getStackForType(DropType.OXYGEN), - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CoinSpace", 1L, 0) }, - new int[] { 50 * 100, 30 * 100, 15 * 100, 5 * 100 }, - Voltage.HV); + CombType.SPACE, + new ItemStack[] { ItemList.FR_Wax.get(1L), ItemList.FR_RefractoryWax.get(1L), + GT_Bees.drop.getStackForType(DropType.OXYGEN), + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CoinSpace", 1L, 0) }, + new int[] { 50 * 100, 30 * 100, 15 * 100, 5 * 100 }, + Voltage.HV); addProcessGT(CombType.METEORICIRON, new Materials[] { Materials.MeteoricIron }, Voltage.HV); addProcessGT(CombType.DESH, new Materials[] { Materials.Desh }, Voltage.EV); addProcessGT(CombType.LEDOX, new Materials[] { Materials.Ledox }, Voltage.EV); @@ -1307,229 +1299,228 @@ public class ItemComb extends Item implements IGT_ItemWithMaterialRenderer { addProcessGT(CombType.ORIHARUKON, new Materials[] { Materials.Oriharukon }, Voltage.IV); addProcessGT(CombType.MYSTERIOUSCRYSTAL, new Materials[] { Materials.MysteriousCrystal }, Voltage.LuV); addCentrifugeToMaterial( - CombType.MYSTERIOUSCRYSTAL, - new Materials[] { Materials.MysteriousCrystal }, - new int[] { (GT_Mod.gregtechproxy.mNerfedCombs ? 10 : 40) * 100, - (GT_Mod.gregtechproxy.mNerfedCombs ? 15 : 50) * 100 }, - new int[] {}, - Voltage.LuV, - 512, - NI, - 50 * 100); + CombType.MYSTERIOUSCRYSTAL, + new Materials[] { Materials.MysteriousCrystal }, + new int[] { (GT_Mod.gregtechproxy.mNerfedCombs ? 10 : 40) * 100, + (GT_Mod.gregtechproxy.mNerfedCombs ? 15 : 50) * 100 }, + new int[] {}, + Voltage.LuV, + 512, + NI, + 50 * 100); addProcessGT(CombType.BLACKPLUTONIUM, new Materials[] { Materials.BlackPlutonium }, Voltage.LuV); addProcessGT(CombType.TRINIUM, new Materials[] { Materials.Trinium }, Voltage.ZPM); if (!GT_Mod.gregtechproxy.mNerfedCombs) { addCentrifugeToMaterial( - CombType.METEORICIRON, - new Materials[] { Materials.MeteoricIron, Materials.Iron }, - new int[] { 85 * 100, 100 * 100 }, - new int[] {}, - Voltage.HV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.DESH, - new Materials[] { Materials.Desh, Materials.Titanium }, - new int[] { 75 * 100, 50 * 100 }, - new int[] {}, - Voltage.EV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.LEDOX, - new Materials[] { Materials.Ledox, Materials.CallistoIce, Materials.Lead }, - new int[] { 65 * 100, 55 * 100, 85 * 100 }, - new int[] {}, - Voltage.EV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.CALLISTOICE, - new Materials[] { Materials.CallistoIce, Materials.Ledox, Materials.Lead }, - new int[] { 65 * 100, 75 * 100, 100 * 100 }, - new int[] {}, - Voltage.IV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.MYTRYL, - new Materials[] { Materials.Mytryl, Materials.Mithril }, - new int[] { 55 * 100, 50 * 100 }, - new int[] {}, - Voltage.IV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.QUANTIUM, - new Materials[] { Materials.Quantium, Materials.Osmium }, - new int[] { 50 * 100, 60 * 100 }, - new int[] {}, - Voltage.IV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.ORIHARUKON, - new Materials[] { Materials.Oriharukon, Materials.Lead }, - new int[] { 50 * 100, 75 * 100 }, - new int[] {}, - Voltage.IV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.BLACKPLUTONIUM, - new Materials[] { Materials.BlackPlutonium, Materials.Plutonium }, - new int[] { 25 * 100, 50 * 100 }, - new int[] {}, - Voltage.LuV, - NI, - 30 * 100); - addCentrifugeToMaterial( - CombType.TRINIUM, - new Materials[] { Materials.Trinium, Materials.Iridium }, - new int[] { 35 * 100, 45 * 100 }, - new int[] {}, - Voltage.ZPM, - NI, - 30 * 100); + CombType.METEORICIRON, + new Materials[] { Materials.MeteoricIron, Materials.Iron }, + new int[] { 85 * 100, 100 * 100 }, + new int[] {}, + Voltage.HV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.DESH, + new Materials[] { Materials.Desh, Materials.Titanium }, + new int[] { 75 * 100, 50 * 100 }, + new int[] {}, + Voltage.EV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.LEDOX, + new Materials[] { Materials.Ledox, Materials.CallistoIce, Materials.Lead }, + new int[] { 65 * 100, 55 * 100, 85 * 100 }, + new int[] {}, + Voltage.EV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.CALLISTOICE, + new Materials[] { Materials.CallistoIce, Materials.Ledox, Materials.Lead }, + new int[] { 65 * 100, 75 * 100, 100 * 100 }, + new int[] {}, + Voltage.IV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.MYTRYL, + new Materials[] { Materials.Mytryl, Materials.Mithril }, + new int[] { 55 * 100, 50 * 100 }, + new int[] {}, + Voltage.IV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.QUANTIUM, + new Materials[] { Materials.Quantium, Materials.Osmium }, + new int[] { 50 * 100, 60 * 100 }, + new int[] {}, + Voltage.IV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.ORIHARUKON, + new Materials[] { Materials.Oriharukon, Materials.Lead }, + new int[] { 50 * 100, 75 * 100 }, + new int[] {}, + Voltage.IV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.BLACKPLUTONIUM, + new Materials[] { Materials.BlackPlutonium, Materials.Plutonium }, + new int[] { 25 * 100, 50 * 100 }, + new int[] {}, + Voltage.LuV, + NI, + 30 * 100); + addCentrifugeToMaterial( + CombType.TRINIUM, + new Materials[] { Materials.Trinium, Materials.Iridium }, + new int[] { 35 * 100, 45 * 100 }, + new int[] {}, + Voltage.ZPM, + NI, + 30 * 100); } // Planet Line addCentrifugeToItemStack( - CombType.MOON, - new ItemStack[] { ItemList.FR_Wax.get(1L), - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.MoonStoneDust", 1L, 0) }, - new int[] { 50 * 100, 30 * 100 }, - Voltage.MV, - 300); + CombType.MOON, + new ItemStack[] { ItemList.FR_Wax.get(1L), + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.MoonStoneDust", 1L, 0) }, + new int[] { 50 * 100, 30 * 100 }, + Voltage.MV, + 300); addCentrifugeToItemStack( - CombType.MARS, - new ItemStack[] { ItemList.FR_Wax.get(1L), - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.MarsStoneDust", 1L, 0) }, - new int[] { 50 * 100, 30 * 100 }, - Voltage.HV, - 300); + CombType.MARS, + new ItemStack[] { ItemList.FR_Wax.get(1L), + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.MarsStoneDust", 1L, 0) }, + new int[] { 50 * 100, 30 * 100 }, + Voltage.HV, + 300); addCentrifugeToItemStack( - CombType.JUPITER, - new ItemStack[] { GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.IoStoneDust", 1L, 0), - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.EuropaIceDust", 1L, 0), - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.EuropaStoneDust", 1L, 0), - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.GanymedeStoneDust", 1L, 0), - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CallistoStoneDust", 1L, 0), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.CallistoIce, 1L), - ItemList.FR_Wax.get(1L) }, - new int[] { 30 * 100, 30 * 100, 30 * 100, 30 * 100, 30 * 100, 5 * 100, 50 * 100 }, - Voltage.HV, - 300); + CombType.JUPITER, + new ItemStack[] { GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.IoStoneDust", 1L, 0), + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.EuropaIceDust", 1L, 0), + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.EuropaStoneDust", 1L, 0), + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.GanymedeStoneDust", 1L, 0), + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CallistoStoneDust", 1L, 0), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.CallistoIce, 1L), ItemList.FR_Wax.get(1L) }, + new int[] { 30 * 100, 30 * 100, 30 * 100, 30 * 100, 30 * 100, 5 * 100, 50 * 100 }, + Voltage.HV, + 300); addCentrifugeToItemStack( - CombType.MERCURY, - new ItemStack[] { ItemList.FR_Wax.get(1L), - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.MercuryCoreDust", 1L, 0), - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.MercuryStoneDust", 1L, 0) }, - new int[] { 50 * 100, 30 * 100, 30 * 100 }, - Voltage.EV, - 300); + CombType.MERCURY, + new ItemStack[] { ItemList.FR_Wax.get(1L), + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.MercuryCoreDust", 1L, 0), + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.MercuryStoneDust", 1L, 0) }, + new int[] { 50 * 100, 30 * 100, 30 * 100 }, + Voltage.EV, + 300); addCentrifugeToItemStack( - CombType.VENUS, - new ItemStack[] { ItemList.FR_Wax.get(1L), - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.VenusStoneDust", 1L, 0) }, - new int[] { 50 * 100, 30 * 100 }, - Voltage.EV, - 300); + CombType.VENUS, + new ItemStack[] { ItemList.FR_Wax.get(1L), + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.VenusStoneDust", 1L, 0) }, + new int[] { 50 * 100, 30 * 100 }, + Voltage.EV, + 300); addCentrifugeToItemStack( - CombType.SATURN, - new ItemStack[] { ItemList.FR_Wax.get(1L), - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.EnceladusStoneDust", 1L, 0), - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.TitanStoneDust", 1L, 0) }, - new int[] { 50 * 100, 30 * 100, 30 * 100 }, - Voltage.IV, - 300); + CombType.SATURN, + new ItemStack[] { ItemList.FR_Wax.get(1L), + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.EnceladusStoneDust", 1L, 0), + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.TitanStoneDust", 1L, 0) }, + new int[] { 50 * 100, 30 * 100, 30 * 100 }, + Voltage.IV, + 300); addCentrifugeToItemStack( - CombType.URANUS, - new ItemStack[] { ItemList.FR_Wax.get(1L), - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.MirandaStoneDust", 1L, 0), - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.OberonStoneDust", 1L, 0) }, - new int[] { 50 * 100, 30 * 100, 30 * 100 }, - Voltage.IV, - 300); + CombType.URANUS, + new ItemStack[] { ItemList.FR_Wax.get(1L), + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.MirandaStoneDust", 1L, 0), + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.OberonStoneDust", 1L, 0) }, + new int[] { 50 * 100, 30 * 100, 30 * 100 }, + Voltage.IV, + 300); addCentrifugeToItemStack( - CombType.NEPTUN, - new ItemStack[] { ItemList.FR_Wax.get(1L), - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.ProteusStoneDust", 1L, 0), - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.TritonStoneDust", 1L, 0) }, - new int[] { 50 * 100, 30 * 100, 30 * 100 }, - Voltage.IV, - 300); + CombType.NEPTUN, + new ItemStack[] { ItemList.FR_Wax.get(1L), + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.ProteusStoneDust", 1L, 0), + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.TritonStoneDust", 1L, 0) }, + new int[] { 50 * 100, 30 * 100, 30 * 100 }, + Voltage.IV, + 300); addCentrifugeToItemStack( - CombType.PLUTO, - new ItemStack[] { ItemList.FR_Wax.get(1L), - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.PlutoStoneDust", 1L, 0), - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.PlutoIceDust", 1L, 0) }, - new int[] { 50 * 100, 30 * 100, 30 * 100 }, - Voltage.LuV, - 300); + CombType.PLUTO, + new ItemStack[] { ItemList.FR_Wax.get(1L), + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.PlutoStoneDust", 1L, 0), + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.PlutoIceDust", 1L, 0) }, + new int[] { 50 * 100, 30 * 100, 30 * 100 }, + Voltage.LuV, + 300); addCentrifugeToItemStack( - CombType.HAUMEA, - new ItemStack[] { ItemList.FR_Wax.get(1L), - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.HaumeaStoneDust", 1L, 0) }, - new int[] { 50 * 100, 30 * 100 }, - Voltage.LuV, - 300); + CombType.HAUMEA, + new ItemStack[] { ItemList.FR_Wax.get(1L), + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.HaumeaStoneDust", 1L, 0) }, + new int[] { 50 * 100, 30 * 100 }, + Voltage.LuV, + 300); addCentrifugeToItemStack( - CombType.MAKEMAKE, - new ItemStack[] { ItemList.FR_Wax.get(1L), - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.MakeMakeStoneDust", 1L, 0) }, - new int[] { 50 * 100, 30 * 100 }, - Voltage.LuV, - 300); + CombType.MAKEMAKE, + new ItemStack[] { ItemList.FR_Wax.get(1L), + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.MakeMakeStoneDust", 1L, 0) }, + new int[] { 50 * 100, 30 * 100 }, + Voltage.LuV, + 300); addCentrifugeToItemStack( - CombType.CENTAURI, - new ItemStack[] { ItemList.FR_Wax.get(1L), - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CentauriASurfaceDust", 1L, 0), - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CentauriAStoneDust", 1L, 0) }, - new int[] { 50 * 100, 30 * 100, 30 * 100 }, - Voltage.ZPM, - 300); + CombType.CENTAURI, + new ItemStack[] { ItemList.FR_Wax.get(1L), + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CentauriASurfaceDust", 1L, 0), + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CentauriAStoneDust", 1L, 0) }, + new int[] { 50 * 100, 30 * 100, 30 * 100 }, + Voltage.ZPM, + 300); addCentrifugeToItemStack( - CombType.TCETI, - new ItemStack[] { ItemList.FR_Wax.get(1L), - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.TCetiEStoneDust", 1L, 0) }, - new int[] { 50 * 100, 30 * 100 }, - Voltage.ZPM, - 300); + CombType.TCETI, + new ItemStack[] { ItemList.FR_Wax.get(1L), + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.TCetiEStoneDust", 1L, 0) }, + new int[] { 50 * 100, 30 * 100 }, + Voltage.ZPM, + 300); addCentrifugeToItemStack( - CombType.BARNARDA, - new ItemStack[] { ItemList.FR_Wax.get(1L), - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.BarnardaEStoneDust", 1L, 0), - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.BarnardaFStoneDust", 1L, 0) }, - new int[] { 50 * 100, 30 * 100, 30 * 100 }, - Voltage.ZPM, - 300); + CombType.BARNARDA, + new ItemStack[] { ItemList.FR_Wax.get(1L), + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.BarnardaEStoneDust", 1L, 0), + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.BarnardaFStoneDust", 1L, 0) }, + new int[] { 50 * 100, 30 * 100, 30 * 100 }, + Voltage.ZPM, + 300); addCentrifugeToItemStack( - CombType.VEGA, - new ItemStack[] { ItemList.FR_Wax.get(1L), - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.VegaBStoneDust", 1L, 0) }, - new int[] { 50 * 100, 30 * 100 }, - Voltage.ZPM, - 300); + CombType.VEGA, + new ItemStack[] { ItemList.FR_Wax.get(1L), + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.VegaBStoneDust", 1L, 0) }, + new int[] { 50 * 100, 30 * 100 }, + Voltage.ZPM, + 300); if (GalaxySpace.isModLoaded()) { addCentrifugeToItemStack( - CombType.SEAWEED, - new ItemStack[] { ItemList.FR_Wax.get(1L), - GT_ModHandler.getModItem(GalaxySpace.ID, "tcetiedandelions", 1L, 0) }, - new int[] { 50 * 100, 100 * 100 }, - Voltage.UV, - 100); + CombType.SEAWEED, + new ItemStack[] { ItemList.FR_Wax.get(1L), + GT_ModHandler.getModItem(GalaxySpace.ID, "tcetiedandelions", 1L, 0) }, + new int[] { 50 * 100, 100 * 100 }, + Voltage.UV, + 100); } // Infinity Line addCentrifugeToMaterial( - CombType.INFINITYCATALYST, - new Materials[] { Materials.InfinityCatalyst, Materials.Neutronium }, - new int[] { 25 * 100, 20 * 100 }, - new int[] {}, - Voltage.ZPM, - 100, - NI, - 50 * 100); + CombType.INFINITYCATALYST, + new Materials[] { Materials.InfinityCatalyst, Materials.Neutronium }, + new int[] { 25 * 100, 20 * 100 }, + new int[] {}, + Voltage.ZPM, + 100, + NI, + 50 * 100); // (Noble)gas Line addFluidExtractorProcess(CombType.HELIUM, Materials.Helium.getGas(250), Voltage.HV); @@ -1556,29 +1547,29 @@ public class ItemComb extends Item implements IGT_ItemWithMaterialRenderer { public void addAutoclaveProcess(CombType comb, Materials aMaterial, Voltage volt, int circuitNumber) { if (GT_OreDictUnificator.get(OrePrefixes.crushedPurified, aMaterial, 4) == NI) return; RA.addAutoclaveRecipe( - GT_Utility.copyAmount(9, getStackForType(comb)), - GT_Utility.getIntegratedCircuit(circuitNumber), - Materials.UUMatter.getFluid(Math.max(1, ((aMaterial.getMass() + volt.getUUAmplifier()) / 10))), - GT_OreDictUnificator.get(OrePrefixes.crushedPurified, aMaterial, 4), - 10000, - (int) (aMaterial.getMass() * 128), - volt.getAutoClaveEnergy(), - volt.compareTo(Voltage.HV) > 0); + GT_Utility.copyAmount(9, getStackForType(comb)), + GT_Utility.getIntegratedCircuit(circuitNumber), + Materials.UUMatter.getFluid(Math.max(1, ((aMaterial.getMass() + volt.getUUAmplifier()) / 10))), + GT_OreDictUnificator.get(OrePrefixes.crushedPurified, aMaterial, 4), + 10000, + (int) (aMaterial.getMass() * 128), + volt.getAutoClaveEnergy(), + volt.compareTo(Voltage.HV) > 0); } public void addFluidExtractorProcess(CombType comb, FluidStack fluid, Voltage volt) { if (fluid == null) return; RA.addFluidExtractionRecipe( - GT_Utility.copyAmount(1, getStackForType(comb)), - null, - fluid, - 100 * 100, - (fluid.getFluid() - .getDensity() * 128 > 0 - ? (fluid.getFluid() - .getDensity() * 100) - : 128), - volt.getSimpleEnergy() / 2); + GT_Utility.copyAmount(1, getStackForType(comb)), + null, + fluid, + 100 * 100, + (fluid.getFluid() + .getDensity() * 128 > 0 + ? (fluid.getFluid() + .getDensity() * 100) + : 128), + volt.getSimpleEnergy() / 2); } /** @@ -1597,59 +1588,59 @@ public class ItemComb extends Item implements IGT_ItemWithMaterialRenderer { switch (comb) { case NEUTRONIUM: RA.addChemicalRecipe( - GT_Utility.copyAmount(4, tComb), - null, - volt.getFluidAccordingToCombTier(), - Materials.Neutronium.getMolten(576l), - Materials.Neutronium.getNuggets(1), - NI, - volt.getComplexTime() * 17, - volt.getChemicalEnergy(), - volt.compareTo(Voltage.IV) > 0); + GT_Utility.copyAmount(4, tComb), + null, + volt.getFluidAccordingToCombTier(), + Materials.Neutronium.getMolten(576l), + Materials.Neutronium.getNuggets(1), + NI, + volt.getComplexTime() * 17, + volt.getChemicalEnergy(), + volt.compareTo(Voltage.IV) > 0); case OSMIUM: RA.addChemicalRecipe( - GT_Utility.copyAmount(4, tComb), - null, - volt.getFluidAccordingToCombTier(), - Materials.Osmium.getMolten(288l), - Materials.Osmium.getNuggets(1), - NI, - volt.getComplexTime() * 17, - volt.getChemicalEnergy(), - volt.compareTo(Voltage.IV) > 0); + GT_Utility.copyAmount(4, tComb), + null, + volt.getFluidAccordingToCombTier(), + Materials.Osmium.getMolten(288l), + Materials.Osmium.getNuggets(1), + NI, + volt.getComplexTime() * 17, + volt.getChemicalEnergy(), + volt.compareTo(Voltage.IV) > 0); case PLATINUM: RA.addChemicalRecipe( - GT_Utility.copyAmount(4, tComb), - null, - volt.getFluidAccordingToCombTier(), - Materials.Platinum.getMolten(288l), - Materials.Platinum.getNuggets(1), - NI, - volt.getComplexTime() * 10, - volt.getChemicalEnergy(), - volt.compareTo(Voltage.HV) > 0); + GT_Utility.copyAmount(4, tComb), + null, + volt.getFluidAccordingToCombTier(), + Materials.Platinum.getMolten(288l), + Materials.Platinum.getNuggets(1), + NI, + volt.getComplexTime() * 10, + volt.getChemicalEnergy(), + volt.compareTo(Voltage.HV) > 0); case IRIDIUM: RA.addChemicalRecipe( - GT_Utility.copyAmount(4, tComb), - null, - volt.getFluidAccordingToCombTier(), - Materials.Iridium.getMolten(288l), - Materials.Iridium.getNuggets(1), - NI, - volt.getComplexTime() * 14, - volt.getChemicalEnergy(), - volt.compareTo(Voltage.EV) > 0); + GT_Utility.copyAmount(4, tComb), + null, + volt.getFluidAccordingToCombTier(), + Materials.Iridium.getMolten(288l), + Materials.Iridium.getNuggets(1), + NI, + volt.getComplexTime() * 14, + volt.getChemicalEnergy(), + volt.compareTo(Voltage.EV) > 0); default: RA.addChemicalRecipe( - GT_Utility.copyAmount(4, tComb), - null, - volt.getFluidAccordingToCombTier(), - null, - GT_OreDictUnificator.get(OrePrefixes.crushedPurified, materials, 4), - NI, - volt.getComplexTime(), - volt.getChemicalEnergy(), - volt.compareTo(Voltage.IV) > 0); + GT_Utility.copyAmount(4, tComb), + null, + volt.getFluidAccordingToCombTier(), + null, + GT_OreDictUnificator.get(OrePrefixes.crushedPurified, materials, 4), + NI, + volt.getComplexTime(), + volt.getChemicalEnergy(), + volt.compareTo(Voltage.IV) > 0); break; } } @@ -1675,12 +1666,12 @@ public class ItemComb extends Item implements IGT_ItemWithMaterialRenderer { * @param waxChance have same format like "chance" **/ public void addCentrifugeToMaterial(CombType comb, Materials[] aMaterial, int[] chance, int[] stackSize, - Voltage volt, ItemStack beeWax, int waxChance) { + Voltage volt, ItemStack beeWax, int waxChance) { addCentrifugeToMaterial(comb, aMaterial, chance, stackSize, volt, volt.getSimpleTime(), beeWax, waxChance); } public void addCentrifugeToMaterial(CombType comb, Materials[] aMaterial, int[] chance, int[] stackSize, - Voltage volt, int duration, ItemStack beeWax, int waxChance) { + Voltage volt, int duration, ItemStack beeWax, int waxChance) { ItemStack[] aOutPut = new ItemStack[aMaterial.length + 1]; stackSize = Arrays.copyOf(stackSize, aMaterial.length); chance = Arrays.copyOf(chance, aOutPut.length); @@ -1734,19 +1725,19 @@ public class ItemComb extends Item implements IGT_ItemWithMaterialRenderer { } RA.addCentrifugeRecipe( - tComb, - NI, - NF, - NF, - aItem[0], - aItem[1], - aItem[2], - aItem[3], - aItem[4], - aItem[5], - chance, - duration, - volt.getSimpleEnergy()); + tComb, + NI, + NF, + NF, + aItem[0], + aItem[1], + aItem[2], + aItem[3], + aItem[4], + aItem[5], + chance, + duration, + volt.getSimpleEnergy()); } public void registerOreDict() { diff --git a/src/main/java/gregtech/common/items/ItemDrop.java b/src/main/java/gregtech/common/items/ItemDrop.java index 6604b887e6..6e62281812 100644 --- a/src/main/java/gregtech/common/items/ItemDrop.java +++ b/src/main/java/gregtech/common/items/ItemDrop.java @@ -103,85 +103,85 @@ public class ItemDrop extends Item { tDrop = getStackForType(DropType.OIL); addProcessLV( - tDrop, - Materials.OilHeavy.getFluid(100L), - GT_ModHandler.getModItem(Forestry.ID, "propolis", 1L, 0), - 3000, - 8); + tDrop, + Materials.OilHeavy.getFluid(100L), + GT_ModHandler.getModItem(Forestry.ID, "propolis", 1L, 0), + 3000, + 8); RecipeManagers.squeezerManager.addRecipe( - 40, - new ItemStack[] { tDrop }, - Materials.OilHeavy.getFluid(100L), - GT_ModHandler.getModItem(Forestry.ID, "propolis", 1L, 0), - 30); + 40, + new ItemStack[] { tDrop }, + Materials.OilHeavy.getFluid(100L), + GT_ModHandler.getModItem(Forestry.ID, "propolis", 1L, 0), + 30); tDrop = getStackForType(DropType.COOLANT); addProcessLV( - tDrop, - new FluidStack(FluidRegistry.getFluid("ic2coolant"), 100), - GT_ModHandler.getModItem(MagicBees.ID, "propolis", 1L, 0), - 3000, - 8); + tDrop, + new FluidStack(FluidRegistry.getFluid("ic2coolant"), 100), + GT_ModHandler.getModItem(MagicBees.ID, "propolis", 1L, 0), + 3000, + 8); RecipeManagers.squeezerManager.addRecipe( - 40, - new ItemStack[] { tDrop }, - new FluidStack(FluidRegistry.getFluid("ic2coolant"), 100), - GT_ModHandler.getModItem(MagicBees.ID, "propolis", 1L, 0), - 30); + 40, + new ItemStack[] { tDrop }, + new FluidStack(FluidRegistry.getFluid("ic2coolant"), 100), + GT_ModHandler.getModItem(MagicBees.ID, "propolis", 1L, 0), + 30); tDrop = getStackForType(DropType.HOT_COOLANT); addProcessLV( - tDrop, - new FluidStack(FluidRegistry.getFluid("ic2hotcoolant"), 100), - GT_ModHandler.getModItem(MagicBees.ID, "propolis", 1L, 2), - 3000, - 8); + tDrop, + new FluidStack(FluidRegistry.getFluid("ic2hotcoolant"), 100), + GT_ModHandler.getModItem(MagicBees.ID, "propolis", 1L, 2), + 3000, + 8); RecipeManagers.squeezerManager.addRecipe( - 40, - new ItemStack[] { tDrop }, - new FluidStack(FluidRegistry.getFluid("ic2hotcoolant"), 100), - GT_ModHandler.getModItem(MagicBees.ID, "propolis", 1L, 2), - 30); + 40, + new ItemStack[] { tDrop }, + new FluidStack(FluidRegistry.getFluid("ic2hotcoolant"), 100), + GT_ModHandler.getModItem(MagicBees.ID, "propolis", 1L, 2), + 30); tDrop = getStackForType(DropType.SNOW_QUEEN); addProcessMV( - tDrop, - Materials.FierySteel.getFluid(200L), - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "SnowQueenBloodDrop", 1L, 0), - 1500, - 48); + tDrop, + Materials.FierySteel.getFluid(200L), + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "SnowQueenBloodDrop", 1L, 0), + 1500, + 48); tDrop = getStackForType(DropType.LAPIS); addProcessLV( - tDrop, - new FluidStack(FluidRegistry.getFluid("ic2coolant"), 200), - GT_ModHandler.getModItem(MagicBees.ID, "propolis", 1L, 3), - 5000, - 1200, - 2); + tDrop, + new FluidStack(FluidRegistry.getFluid("ic2coolant"), 200), + GT_ModHandler.getModItem(MagicBees.ID, "propolis", 1L, 3), + 5000, + 1200, + 2); RecipeManagers.squeezerManager.addRecipe( - 400, - new ItemStack[] { tDrop }, - new FluidStack(FluidRegistry.getFluid("ic2coolant"), 100), - GT_ModHandler.getModItem(MagicBees.ID, "propolis", 1L, 3), - 30); + 400, + new ItemStack[] { tDrop }, + new FluidStack(FluidRegistry.getFluid("ic2coolant"), 100), + GT_ModHandler.getModItem(MagicBees.ID, "propolis", 1L, 3), + 30); tDrop = getStackForType(DropType.HYDRA); addProcessMV( - tDrop, - Materials.FierySteel.getFluid(50L), - GT_ModHandler.getModItem(MagicBees.ID, "propolis", 1L, 2), - 3000, - 8); + tDrop, + Materials.FierySteel.getFluid(50L), + GT_ModHandler.getModItem(MagicBees.ID, "propolis", 1L, 2), + 3000, + 8); tDrop = getStackForType(DropType.OXYGEN); addProcessLV( - tDrop, - new FluidStack(FluidRegistry.getFluid("liquidoxygen"), 100), - GT_ModHandler.getModItem(ExtraBees.ID, "propolis", 1L, 2), - 250, - 1200, - 8); + tDrop, + new FluidStack(FluidRegistry.getFluid("liquidoxygen"), 100), + GT_ModHandler.getModItem(ExtraBees.ID, "propolis", 1L, 2), + 250, + 1200, + 8); RecipeManagers.squeezerManager.addRecipe( - 400, - new ItemStack[] { tDrop }, - new FluidStack(FluidRegistry.getFluid("ic2coolant"), 100), - GT_ModHandler.getModItem(ExtraBees.ID, "propolis", 1L, 2), - 30); + 400, + new ItemStack[] { tDrop }, + new FluidStack(FluidRegistry.getFluid("ic2coolant"), 100), + GT_ModHandler.getModItem(ExtraBees.ID, "propolis", 1L, 2), + 30); tDrop = getStackForType(DropType.ENDERGOO); if (HardcoreEnderExpansion.isModLoaded()) addProcessHV(tDrop, new FluidStack(FluidRegistry.getFluid("endergoo"), 500), GT_Values.NI, 1000); @@ -192,7 +192,7 @@ public class ItemDrop extends Item { } public void addProcessLV(ItemStack tDrop, FluidStack aOutput, ItemStack aOutput2, int aChance, int aDuration, - int aEUt) { + int aEUt) { GT_Values.RA.addFluidExtractionRecipe(tDrop, aOutput2, aOutput, aChance, aDuration, aEUt); } diff --git a/src/main/java/gregtech/common/items/ItemPropolis.java b/src/main/java/gregtech/common/items/ItemPropolis.java index 20573dcdd7..8513c02e2a 100644 --- a/src/main/java/gregtech/common/items/ItemPropolis.java +++ b/src/main/java/gregtech/common/items/ItemPropolis.java @@ -103,32 +103,27 @@ public class ItemPropolis extends Item { } public void addProcessHV(ItemStack tPropolis, ItemStack aOutput2) { - GT_Values.RA.addFluidExtractionRecipe( - tPropolis, - aOutput2, - FluidRegistry.getFluidStack("endergoo", 100), - 5000, - 50, - 480); + GT_Values.RA + .addFluidExtractionRecipe(tPropolis, aOutput2, FluidRegistry.getFluidStack("endergoo", 100), 5000, 50, 480); } public void addProcessEV(ItemStack tPropolis, ItemStack aOutput2) { GT_Values.RA.addFluidExtractionRecipe( - tPropolis, - aOutput2, - FluidRegistry.getFluidStack("endergoo", 200), - 2500, - 100, - 1920); + tPropolis, + aOutput2, + FluidRegistry.getFluidStack("endergoo", 200), + 2500, + 100, + 1920); } public void addProcessIV(ItemStack tPropolis, ItemStack aOutput2) { GT_Values.RA.addFluidExtractionRecipe( - tPropolis, - aOutput2, - FluidRegistry.getFluidStack("endergoo", 300), - 1500, - 150, - 7680); + tPropolis, + aOutput2, + FluidRegistry.getFluidStack("endergoo", 300), + 1500, + 150, + 7680); } } diff --git a/src/main/java/gregtech/common/items/PollenType.java b/src/main/java/gregtech/common/items/PollenType.java index 94393c1c3d..093a21187b 100644 --- a/src/main/java/gregtech/common/items/PollenType.java +++ b/src/main/java/gregtech/common/items/PollenType.java @@ -24,11 +24,9 @@ public enum PollenType { public String getName() { return GT_LanguageManager.addStringLocalization( - "pollen." + this.name, - this.name.substring(0, 1) - .toUpperCase() - + this.name.substring(1) - + " Pollen"); + "pollen." + this.name, + this.name.substring(0, 1) + .toUpperCase() + this.name.substring(1) + " Pollen"); } public int[] getColours() { diff --git a/src/main/java/gregtech/common/items/PropolisType.java b/src/main/java/gregtech/common/items/PropolisType.java index 1060c21b0c..91f3f432b2 100644 --- a/src/main/java/gregtech/common/items/PropolisType.java +++ b/src/main/java/gregtech/common/items/PropolisType.java @@ -16,7 +16,7 @@ public enum PropolisType { Fireessence("Fireessence", true); private static int[] colours = new int[] { 0xCC00FA, 0xDCB0E5, 0x9010AD, 0xFFFF00, 0x911ECE, 0x161616, 0xEE053D, - 0xa0ffff, 0xD41238 }; + 0xa0ffff, 0xD41238 }; public boolean showInList; public Materials material; @@ -35,11 +35,9 @@ public enum PropolisType { public String getName() { // return "gt.comb."+this.name; return GT_LanguageManager.addStringLocalization( - "propolis." + this.name, - this.name.substring(0, 1) - .toUpperCase() - + this.name.substring(1) - + " Propolis"); + "propolis." + this.name, + this.name.substring(0, 1) + .toUpperCase() + this.name.substring(1) + " Propolis"); } public int getColours() { diff --git a/src/main/java/gregtech/common/items/behaviors/Behaviour_Arrow.java b/src/main/java/gregtech/common/items/behaviors/Behaviour_Arrow.java index 7c03965cc0..8005009d14 100644 --- a/src/main/java/gregtech/common/items/behaviors/Behaviour_Arrow.java +++ b/src/main/java/gregtech/common/items/behaviors/Behaviour_Arrow.java @@ -33,7 +33,7 @@ public class Behaviour_Arrow extends Behaviour_None { } public Behaviour_Arrow(Class aArrow, float aSpeed, float aPrecision, - Enchantment aEnchantment, int aLevel) { + Enchantment aEnchantment, int aLevel) { this.mArrow = aArrow; this.mSpeedMultiplier = aSpeed; this.mPrecision = aPrecision; @@ -81,20 +81,20 @@ public class Behaviour_Arrow extends Behaviour_None { IPosition tPosition = BlockDispenser.func_149939_a(aSource); EnumFacing tFacing = BlockDispenser.func_149937_b(aSource.getBlockMetadata()); GT_Entity_Arrow tEntityArrow = (GT_Entity_Arrow) getProjectile( - aItem, - SubTag.PROJECTILE_ARROW, - aStack, - aWorld, - tPosition.getX(), - tPosition.getY(), - tPosition.getZ()); + aItem, + SubTag.PROJECTILE_ARROW, + aStack, + aWorld, + tPosition.getX(), + tPosition.getY(), + tPosition.getZ()); if (tEntityArrow != null) { tEntityArrow.setThrowableHeading( - tFacing.getFrontOffsetX(), - tFacing.getFrontOffsetY() + 0.1F, - tFacing.getFrontOffsetZ(), - this.mSpeedMultiplier * 1.1F, - this.mPrecision); + tFacing.getFrontOffsetX(), + tFacing.getFrontOffsetY() + 0.1F, + tFacing.getFrontOffsetZ(), + this.mSpeedMultiplier * 1.1F, + this.mPrecision); tEntityArrow.setArrowItem(aStack); tEntityArrow.canBePickedUp = 1; aWorld.spawnEntityInWorld(tEntityArrow); @@ -113,32 +113,28 @@ public class Behaviour_Arrow extends Behaviour_None { @Override public EntityArrow getProjectile(GT_MetaBase_Item aItem, SubTag aProjectileType, ItemStack aStack, World aWorld, - double aX, double aY, double aZ) { + double aX, double aY, double aZ) { if (!hasProjectile(aItem, aProjectileType, aStack)) { return null; } - GT_Entity_Arrow rArrow = (GT_Entity_Arrow) GT_Utility.callConstructor( - this.mArrow.getName(), - -1, - null, - true, - new Object[] { aWorld, aX, aY, aZ }); + GT_Entity_Arrow rArrow = (GT_Entity_Arrow) GT_Utility + .callConstructor(this.mArrow.getName(), -1, null, true, new Object[] { aWorld, aX, aY, aZ }); rArrow.setArrowItem(aStack); return rArrow; } @Override public EntityArrow getProjectile(GT_MetaBase_Item aItem, SubTag aProjectileType, ItemStack aStack, World aWorld, - EntityLivingBase aEntity, float aSpeed) { + EntityLivingBase aEntity, float aSpeed) { if (!hasProjectile(aItem, aProjectileType, aStack)) { return null; } GT_Entity_Arrow rArrow = (GT_Entity_Arrow) GT_Utility.callConstructor( - this.mArrow.getName(), - -1, - null, - true, - new Object[] { aWorld, aEntity, this.mSpeedMultiplier * aSpeed }); + this.mArrow.getName(), + -1, + null, + true, + new Object[] { aWorld, aEntity, this.mSpeedMultiplier * aSpeed }); rArrow.setArrowItem(aStack); return rArrow; } diff --git a/src/main/java/gregtech/common/items/behaviors/Behaviour_Arrow_Potion.java b/src/main/java/gregtech/common/items/behaviors/Behaviour_Arrow_Potion.java index 4397429018..3643de7b77 100644 --- a/src/main/java/gregtech/common/items/behaviors/Behaviour_Arrow_Potion.java +++ b/src/main/java/gregtech/common/items/behaviors/Behaviour_Arrow_Potion.java @@ -23,7 +23,7 @@ public class Behaviour_Arrow_Potion extends Behaviour_Arrow { } public Behaviour_Arrow_Potion(float aSpeed, float aPrecision, Enchantment aEnchantment, int aLevel, - int... aPotions) { + int... aPotions) { super(GT_Entity_Arrow_Potion.class, aSpeed, aPrecision, aEnchantment, aLevel); this.mPotions = aPotions; } @@ -34,11 +34,11 @@ public class Behaviour_Arrow_Potion extends Behaviour_Arrow { for (int i = 3; i < this.mPotions.length; i += 4) { if (aEntity.worldObj.rand.nextInt(100) < this.mPotions[i]) { ((EntityLivingBase) aEntity).addPotionEffect( - new PotionEffect( - this.mPotions[(i - 3)], - this.mPotions[(i - 2)], - this.mPotions[(i - 1)], - false)); + new PotionEffect( + this.mPotions[(i - 3)], + this.mPotions[(i - 2)], + this.mPotions[(i - 1)], + false)); } } } @@ -47,7 +47,7 @@ public class Behaviour_Arrow_Potion extends Behaviour_Arrow { @Override public EntityArrow getProjectile(GT_MetaBase_Item aItem, SubTag aProjectileType, ItemStack aStack, World aWorld, - double aX, double aY, double aZ) { + double aX, double aY, double aZ) { if (!hasProjectile(aItem, aProjectileType, aStack)) { return null; } @@ -59,7 +59,7 @@ public class Behaviour_Arrow_Potion extends Behaviour_Arrow { @Override public EntityArrow getProjectile(GT_MetaBase_Item aItem, SubTag aProjectileType, ItemStack aStack, World aWorld, - EntityLivingBase aEntity, float aSpeed) { + EntityLivingBase aEntity, float aSpeed) { if (!hasProjectile(aItem, aProjectileType, aStack)) { return null; } diff --git a/src/main/java/gregtech/common/items/behaviors/Behaviour_Cover_Tool.java b/src/main/java/gregtech/common/items/behaviors/Behaviour_Cover_Tool.java index d0c589c09f..d0f5582549 100644 --- a/src/main/java/gregtech/common/items/behaviors/Behaviour_Cover_Tool.java +++ b/src/main/java/gregtech/common/items/behaviors/Behaviour_Cover_Tool.java @@ -23,16 +23,15 @@ import gregtech.api.util.*; public class Behaviour_Cover_Tool extends Behaviour_None { public static final IItemBehaviour INSTANCE = new Behaviour_Cover_Tool(); - private final String mTooltip = GT_LanguageManager.addStringLocalization( - "gt.behaviour.cover_copy_paste", - "Can copy/paste cover data."); + private final String mTooltip = GT_LanguageManager + .addStringLocalization("gt.behaviour.cover_copy_paste", "Can copy/paste cover data."); private ISerializableObject mStoredData = GregTech_API.sNoBehavior.createDataObject(); private int mCoverType; @Override public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, - int aY, int aZ, int aSide, float hitX, float hitY, float hitZ) { + int aY, int aZ, int aSide, float hitX, float hitY, float hitZ) { if (aWorld.isRemote) { return false; } @@ -86,41 +85,41 @@ public class Behaviour_Cover_Tool extends Behaviour_None { @SuppressWarnings({ "unchecked", "rawtypes" }) private void doCopy(TileEntity aTileEntity, World aWorld, int aX, int aY, int aZ, int aSide, float hitX, float hitY, - float hitZ, List aList) { + float hitZ, List aList) { aList.add( - "----- X: " + EnumChatFormatting.AQUA - + GT_Utility.formatNumbers(aX) - + EnumChatFormatting.RESET - + " Y: " - + EnumChatFormatting.AQUA - + GT_Utility.formatNumbers(aY) - + EnumChatFormatting.RESET - + " Z: " - + EnumChatFormatting.AQUA - + GT_Utility.formatNumbers(aZ) - + EnumChatFormatting.RESET - + " D: " - + EnumChatFormatting.AQUA - + aWorld.provider.dimensionId - + EnumChatFormatting.RESET - + " -----"); + "----- X: " + EnumChatFormatting.AQUA + + GT_Utility.formatNumbers(aX) + + EnumChatFormatting.RESET + + " Y: " + + EnumChatFormatting.AQUA + + GT_Utility.formatNumbers(aY) + + EnumChatFormatting.RESET + + " Z: " + + EnumChatFormatting.AQUA + + GT_Utility.formatNumbers(aZ) + + EnumChatFormatting.RESET + + " D: " + + EnumChatFormatting.AQUA + + aWorld.provider.dimensionId + + EnumChatFormatting.RESET + + " -----"); if (aTileEntity instanceof ICoverable tCoverable) { int tSide = tCoverable.getCoverItemAtSide((byte) aSide) != null ? aSide - : tCoverable.getCoverItemAtSide(GT_Utility.determineWrenchingSide((byte) aSide, hitX, hitY, hitZ)) - != null ? GT_Utility.determineWrenchingSide((byte) aSide, hitX, hitY, hitZ) : -1; + : tCoverable.getCoverItemAtSide(GT_Utility.determineWrenchingSide((byte) aSide, hitX, hitY, hitZ)) + != null ? GT_Utility.determineWrenchingSide((byte) aSide, hitX, hitY, hitZ) : -1; if (tSide != -1) { mStoredData = tCoverable.getComplexCoverDataAtSide((byte) tSide); mCoverType = tCoverable.getCoverIDAtSide((byte) tSide); aList.add( - "Block Side: " + EnumChatFormatting.AQUA - + ForgeDirection.getOrientation(tSide) - .name() - + EnumChatFormatting.RESET); + "Block Side: " + EnumChatFormatting.AQUA + + ForgeDirection.getOrientation(tSide) + .name() + + EnumChatFormatting.RESET); aList.add( - "Cover Type: " + EnumChatFormatting.GREEN - + tCoverable.getCoverItemAtSide((byte) tSide) - .getDisplayName() - + EnumChatFormatting.RESET); + "Cover Type: " + EnumChatFormatting.GREEN + + tCoverable.getCoverItemAtSide((byte) tSide) + .getDisplayName() + + EnumChatFormatting.RESET); } else { mStoredData = GregTech_API.sNoBehavior.createDataObject(); mCoverType = 0; @@ -140,8 +139,8 @@ public class Behaviour_Cover_Tool extends Behaviour_None { return; } int tSide = tCoverable.getCoverItemAtSide((byte) aSide) != null ? aSide - : tCoverable.getCoverItemAtSide(GT_Utility.determineWrenchingSide((byte) aSide, hitX, hitY, hitZ)) - != null ? GT_Utility.determineWrenchingSide((byte) aSide, hitX, hitY, hitZ) : -1; + : tCoverable.getCoverItemAtSide(GT_Utility.determineWrenchingSide((byte) aSide, hitX, hitY, hitZ)) + != null ? GT_Utility.determineWrenchingSide((byte) aSide, hitX, hitY, hitZ) : -1; if (tSide != -1) { int tCoverID = tCoverable.getCoverIDAtSide((byte) tSide); if (tCoverID == mCoverType) { diff --git a/src/main/java/gregtech/common/items/behaviors/Behaviour_Crowbar.java b/src/main/java/gregtech/common/items/behaviors/Behaviour_Crowbar.java index 4d8ecb2f41..76bc0615c1 100644 --- a/src/main/java/gregtech/common/items/behaviors/Behaviour_Crowbar.java +++ b/src/main/java/gregtech/common/items/behaviors/Behaviour_Crowbar.java @@ -25,7 +25,7 @@ public class Behaviour_Crowbar extends Behaviour_None { @Override public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, - int aY, int aZ, int aSide, float hitX, float hitY, float hitZ) { + int aY, int aZ, int aSide, float hitX, float hitY, float hitZ) { if (aWorld.isRemote) { return false; } diff --git a/src/main/java/gregtech/common/items/behaviors/Behaviour_DataStick.java b/src/main/java/gregtech/common/items/behaviors/Behaviour_DataStick.java index 8b876a5b44..13e6622b47 100644 --- a/src/main/java/gregtech/common/items/behaviors/Behaviour_DataStick.java +++ b/src/main/java/gregtech/common/items/behaviors/Behaviour_DataStick.java @@ -33,7 +33,7 @@ public class Behaviour_DataStick extends Behaviour_None { } } short sTier = GT_Utility.ItemNBT.getNBT(aStack) - .getShort("rocket_tier"); + .getShort("rocket_tier"); if (sTier > 0 && sTier < 100) { aList.add("Rocket Schematic Tier: " + sTier); } else if (sTier >= 100) { @@ -50,7 +50,7 @@ public class Behaviour_DataStick extends Behaviour_None { } } long lastUpdate = GT_Utility.ItemNBT.getNBT(aStack) - .getLong("lastUpdate"); + .getLong("lastUpdate"); if (lastUpdate != 0) aList.add(String.format("Last update at: %tc", lastUpdate)); return aList; diff --git a/src/main/java/gregtech/common/items/behaviors/Behaviour_Hoe.java b/src/main/java/gregtech/common/items/behaviors/Behaviour_Hoe.java index a66cba699d..0d8e26ac66 100644 --- a/src/main/java/gregtech/common/items/behaviors/Behaviour_Hoe.java +++ b/src/main/java/gregtech/common/items/behaviors/Behaviour_Hoe.java @@ -28,7 +28,7 @@ public class Behaviour_Hoe extends Behaviour_None { @Override public boolean onItemUse(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, - int aY, int aZ, int aSide, float hitX, float hitY, float hitZ) { + int aY, int aZ, int aSide, float hitX, float hitY, float hitZ) { if (!aPlayer.canPlayerEdit(aX, aY, aZ, aSide, aStack)) { return false; } @@ -44,15 +44,14 @@ public class Behaviour_Hoe extends Behaviour_None { } Block aBlock = aWorld.getBlock(aX, aY, aZ); if ((aSide != 0) && (GT_Utility.isBlockAir(aWorld, aX, aY + 1, aZ)) - && ((aBlock == Blocks.grass) || (aBlock == Blocks.dirt))) { - new WorldSpawnedEventBuilder.SoundEventBuilder().setVolume( - (Blocks.farmland.stepSound.getVolume() + 1.0F) / 2.0F) - .setPitch(Blocks.farmland.stepSound.getPitch() * 0.8F) - .setIdentifier( - Blocks.farmland.stepSound.getStepResourcePath()) - .setPosition(aX + 0.5F, aY + 0.5F, aZ + 0.5F) - .setWorld(aWorld) - .run(); + && ((aBlock == Blocks.grass) || (aBlock == Blocks.dirt))) { + new WorldSpawnedEventBuilder.SoundEventBuilder() + .setVolume((Blocks.farmland.stepSound.getVolume() + 1.0F) / 2.0F) + .setPitch(Blocks.farmland.stepSound.getPitch() * 0.8F) + .setIdentifier(Blocks.farmland.stepSound.getStepResourcePath()) + .setPosition(aX + 0.5F, aY + 0.5F, aZ + 0.5F) + .setWorld(aWorld) + .run(); if (aWorld.isRemote) { return true; } diff --git a/src/main/java/gregtech/common/items/behaviors/Behaviour_Lighter.java b/src/main/java/gregtech/common/items/behaviors/Behaviour_Lighter.java index 1e232d4988..d348f3eed4 100644 --- a/src/main/java/gregtech/common/items/behaviors/Behaviour_Lighter.java +++ b/src/main/java/gregtech/common/items/behaviors/Behaviour_Lighter.java @@ -24,18 +24,15 @@ public class Behaviour_Lighter extends Behaviour_None { private final ItemStack mUsedLighter; private final ItemStack mFullLighter; private final long mFuelAmount; - private final String mTooltip = GT_LanguageManager.addStringLocalization( - "gt.behaviour.lighter.tooltip", - "Can light things on Fire"); - private final String mTooltipUses = GT_LanguageManager.addStringLocalization( - "gt.behaviour.lighter.uses", - "Remaining Uses:"); - private final String mTooltipUnstackable = GT_LanguageManager.addStringLocalization( - "gt.behaviour.unstackable", - "Not usable when stacked!"); + private final String mTooltip = GT_LanguageManager + .addStringLocalization("gt.behaviour.lighter.tooltip", "Can light things on Fire"); + private final String mTooltipUses = GT_LanguageManager + .addStringLocalization("gt.behaviour.lighter.uses", "Remaining Uses:"); + private final String mTooltipUnstackable = GT_LanguageManager + .addStringLocalization("gt.behaviour.unstackable", "Not usable when stacked!"); public Behaviour_Lighter(ItemStack aEmptyLighter, ItemStack aUsedLighter, ItemStack aFullLighter, - long aFuelAmount) { + long aFuelAmount) { this.mFullLighter = aFullLighter; this.mUsedLighter = aUsedLighter; this.mEmptyLighter = aEmptyLighter; @@ -53,13 +50,13 @@ public class Behaviour_Lighter extends Behaviour_None { long tFuelAmount = GT_Utility.ItemNBT.getLighterFuel(aStack); if (GT_Utility.areStacksEqual(aStack, this.mUsedLighter, true)) { GT_Utility.sendSoundToPlayers( - aPlayer.worldObj, - SoundResource.FIRE_IGNITE, - 1.0F, - 1.0F, - MathHelper.floor_double(aEntity.posX), - MathHelper.floor_double(aEntity.posY), - MathHelper.floor_double(aEntity.posZ)); + aPlayer.worldObj, + SoundResource.FIRE_IGNITE, + 1.0F, + 1.0F, + MathHelper.floor_double(aEntity.posX), + MathHelper.floor_double(aEntity.posY), + MathHelper.floor_double(aEntity.posZ)); ((EntityCreeper) aEntity).func_146079_cb(); if (!aPlayer.capabilities.isCreativeMode) { tFuelAmount -= 1L; @@ -76,13 +73,13 @@ public class Behaviour_Lighter extends Behaviour_None { @Override public boolean onItemUse(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, - int aY, int aZ, int aSide, float hitX, float hitY, float hitZ) { + int aY, int aZ, int aSide, float hitX, float hitY, float hitZ) { return false; } @Override public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, - int aY, int aZ, int aSide, float hitX, float hitY, float hitZ) { + int aY, int aZ, int aSide, float hitX, float hitY, float hitZ) { if ((aWorld.isRemote) || (aStack.stackSize != 1)) { return false; } @@ -134,8 +131,8 @@ public class Behaviour_Lighter extends Behaviour_None { aList.add(this.mTooltip); NBTTagCompound tNBT = aStack.getTagCompound(); long tFuelAmount = tNBT == null ? this.mFuelAmount - : GT_Utility.areStacksEqual(aStack, this.mFullLighter, true) ? this.mFuelAmount - : tNBT.getLong("GT.LighterFuel"); + : GT_Utility.areStacksEqual(aStack, this.mFullLighter, true) ? this.mFuelAmount + : tNBT.getLong("GT.LighterFuel"); aList.add(this.mTooltipUses + " " + tFuelAmount); aList.add(this.mTooltipUnstackable); return aList; diff --git a/src/main/java/gregtech/common/items/behaviors/Behaviour_None.java b/src/main/java/gregtech/common/items/behaviors/Behaviour_None.java index ca6a1e8466..6928222af1 100644 --- a/src/main/java/gregtech/common/items/behaviors/Behaviour_None.java +++ b/src/main/java/gregtech/common/items/behaviors/Behaviour_None.java @@ -28,13 +28,13 @@ public class Behaviour_None implements IItemBehaviour { @Override public boolean onItemUse(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, - int aY, int aZ, int aSide, float hitX, float hitY, float hitZ) { + int aY, int aZ, int aSide, float hitX, float hitY, float hitZ) { return false; } @Override public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, - int aY, int aZ, int aSide, float hitX, float hitY, float hitZ) { + int aY, int aZ, int aSide, float hitX, float hitY, float hitZ) { return false; } @@ -50,7 +50,7 @@ public class Behaviour_None implements IItemBehaviour { @Override public void onUpdate(GT_MetaBase_Item aItem, ItemStack aStack, World aWorld, Entity aPlayer, int aTimer, - boolean aIsInHand) {} + boolean aIsInHand) {} @Override public boolean isItemStackUsable(GT_MetaBase_Item aItem, ItemStack aStack) { @@ -78,13 +78,13 @@ public class Behaviour_None implements IItemBehaviour { @Override public EntityArrow getProjectile(GT_MetaBase_Item aItem, SubTag aProjectileType, ItemStack aStack, World aWorld, - double aX, double aY, double aZ) { + double aX, double aY, double aZ) { return null; } @Override public EntityArrow getProjectile(GT_MetaBase_Item aItem, SubTag aProjectileType, ItemStack aStack, World aWorld, - EntityLivingBase aEntity, float aSpeed) { + EntityLivingBase aEntity, float aSpeed) { return null; } diff --git a/src/main/java/gregtech/common/items/behaviors/Behaviour_Plunger_Essentia.java b/src/main/java/gregtech/common/items/behaviors/Behaviour_Plunger_Essentia.java index 0023511846..16c1f1dec1 100644 --- a/src/main/java/gregtech/common/items/behaviors/Behaviour_Plunger_Essentia.java +++ b/src/main/java/gregtech/common/items/behaviors/Behaviour_Plunger_Essentia.java @@ -18,9 +18,8 @@ import gregtech.api.util.GT_Utility; public class Behaviour_Plunger_Essentia extends Behaviour_None { private final int mCosts; - private final String mTooltip = GT_LanguageManager.addStringLocalization( - "gt.behaviour.plunger.essentia", - "Clears Essentia from Containers and Tubes"); + private final String mTooltip = GT_LanguageManager + .addStringLocalization("gt.behaviour.plunger.essentia", "Clears Essentia from Containers and Tubes"); public Behaviour_Plunger_Essentia(int aCosts) { this.mCosts = aCosts; @@ -28,19 +27,19 @@ public class Behaviour_Plunger_Essentia extends Behaviour_None { @Override public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, - int aY, int aZ, int aSide, float hitX, float hitY, float hitZ) { + int aY, int aZ, int aSide, float hitX, float hitY, float hitZ) { if (aWorld.isRemote) { return false; } TileEntity aTileEntity = aWorld.getTileEntity(aX, aY, aZ); if (((aTileEntity instanceof IEssentiaTransport)) && ((aPlayer.capabilities.isCreativeMode) - || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts)))) { + || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts)))) { GT_Utility.sendSoundToPlayers(aWorld, SoundResource.IC2_TOOLS_RUBBER_TRAMPOLINE, 1.0F, -1.0F, aX, aY, aZ); for (ForgeDirection tDirection : ForgeDirection.VALID_DIRECTIONS) { ((IEssentiaTransport) aTileEntity).takeEssentia( - ((IEssentiaTransport) aTileEntity).getEssentiaType(tDirection), - ((IEssentiaTransport) aTileEntity).getEssentiaAmount(tDirection), - tDirection); + ((IEssentiaTransport) aTileEntity).getEssentiaType(tDirection), + ((IEssentiaTransport) aTileEntity).getEssentiaAmount(tDirection), + tDirection); } return true; } diff --git a/src/main/java/gregtech/common/items/behaviors/Behaviour_Plunger_Fluid.java b/src/main/java/gregtech/common/items/behaviors/Behaviour_Plunger_Fluid.java index cf5b782200..95e895ba91 100644 --- a/src/main/java/gregtech/common/items/behaviors/Behaviour_Plunger_Fluid.java +++ b/src/main/java/gregtech/common/items/behaviors/Behaviour_Plunger_Fluid.java @@ -21,9 +21,8 @@ import gregtech.api.util.GT_Utility; public class Behaviour_Plunger_Fluid extends Behaviour_None { private final int mCosts; - private final String mTooltip = GT_LanguageManager.addStringLocalization( - "gt.behaviour.plunger.fluid", - "Clears 1000 Liters of Fluid from Tanks"); + private final String mTooltip = GT_LanguageManager + .addStringLocalization("gt.behaviour.plunger.fluid", "Clears 1000 Liters of Fluid from Tanks"); public Behaviour_Plunger_Fluid(int aCosts) { this.mCosts = aCosts; @@ -31,7 +30,7 @@ public class Behaviour_Plunger_Fluid extends Behaviour_None { @Override public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, - int aY, int aZ, int aSide, float hitX, float hitY, float hitZ) { + int aY, int aZ, int aSide, float hitX, float hitY, float hitZ) { if (aWorld.isRemote) { return false; } @@ -40,16 +39,16 @@ public class Behaviour_Plunger_Fluid extends Behaviour_None { for (ForgeDirection tDirection : ForgeDirection.VALID_DIRECTIONS) { if (((IFluidHandler) aTileEntity).drain(tDirection, 1000, false) != null) { if ((aPlayer.capabilities.isCreativeMode) - || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts))) { + || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts))) { ((IFluidHandler) aTileEntity).drain(tDirection, 1000, true); GT_Utility.sendSoundToPlayers( - aWorld, - SoundResource.IC2_TOOLS_RUBBER_TRAMPOLINE, - 1.0F, - -1.0F, - aX, - aY, - aZ); + aWorld, + SoundResource.IC2_TOOLS_RUBBER_TRAMPOLINE, + 1.0F, + -1.0F, + aX, + aY, + aZ); return true; } } @@ -60,14 +59,8 @@ public class Behaviour_Plunger_Fluid extends Behaviour_None { if (mTileEntity instanceof GT_MetaTileEntity_BasicTank machine) { if (machine.mFluid != null && machine.mFluid.amount > 0) machine.mFluid.amount = machine.mFluid.amount - Math.min(machine.mFluid.amount, 1000); - GT_Utility.sendSoundToPlayers( - aWorld, - SoundResource.IC2_TOOLS_RUBBER_TRAMPOLINE, - 1.0F, - -1.0F, - aX, - aY, - aZ); + GT_Utility + .sendSoundToPlayers(aWorld, SoundResource.IC2_TOOLS_RUBBER_TRAMPOLINE, 1.0F, -1.0F, aX, aY, aZ); return true; } } diff --git a/src/main/java/gregtech/common/items/behaviors/Behaviour_Plunger_Item.java b/src/main/java/gregtech/common/items/behaviors/Behaviour_Plunger_Item.java index e4f0c3012d..41df9d6e95 100644 --- a/src/main/java/gregtech/common/items/behaviors/Behaviour_Plunger_Item.java +++ b/src/main/java/gregtech/common/items/behaviors/Behaviour_Plunger_Item.java @@ -21,9 +21,8 @@ import gregtech.api.util.GT_Utility; public class Behaviour_Plunger_Item extends Behaviour_None { private final int mCosts; - private final String mTooltip = GT_LanguageManager.addStringLocalization( - "gt.behaviour.plunger.item", - "Clears Items from Pipes"); + private final String mTooltip = GT_LanguageManager + .addStringLocalization("gt.behaviour.plunger.item", "Clears Items from Pipes"); public Behaviour_Plunger_Item(int aCosts) { this.mCosts = aCosts; @@ -31,7 +30,7 @@ public class Behaviour_Plunger_Item extends Behaviour_None { @Override public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, - int aY, int aZ, int aSide, float hitX, float hitY, float hitZ) { + int aY, int aZ, int aSide, float hitX, float hitY, float hitZ) { if (aWorld.isRemote) { return false; } @@ -39,39 +38,36 @@ public class Behaviour_Plunger_Item extends Behaviour_None { if ((aTileEntity instanceof IGregTechTileEntity)) { IMetaTileEntity tMetaTileEntity = ((IGregTechTileEntity) aTileEntity).getMetaTileEntity(); if ((tMetaTileEntity instanceof IMetaTileEntityItemPipe)) { - for (IMetaTileEntityItemPipe tTileEntity : GT_Utility.sortMapByValuesAcending( - IMetaTileEntityItemPipe.Util.scanPipes( - (IMetaTileEntityItemPipe) tMetaTileEntity, - new HashMap<>(), - 0L, - false, - true)) - .keySet()) { + for (IMetaTileEntityItemPipe tTileEntity : GT_Utility + .sortMapByValuesAcending( + IMetaTileEntityItemPipe.Util + .scanPipes((IMetaTileEntityItemPipe) tMetaTileEntity, new HashMap<>(), 0L, false, true)) + .keySet()) { int i = 0; for (int j = tTileEntity.getSizeInventory(); i < j; i++) { if (tTileEntity.isValidSlot(i)) { if ((tTileEntity.getStackInSlot(i) != null) && ((aPlayer.capabilities.isCreativeMode) - || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts)))) { + || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts)))) { ItemStack tStack = tTileEntity.decrStackSize(i, 64); if (tStack != null) { EntityItem tEntity = new EntityItem( - aWorld, - ((IGregTechTileEntity) aTileEntity).getOffsetX((byte) aSide, 1) + 0.5D, - ((IGregTechTileEntity) aTileEntity).getOffsetY((byte) aSide, 1) + 0.5D, - ((IGregTechTileEntity) aTileEntity).getOffsetZ((byte) aSide, 1) + 0.5D, - tStack); + aWorld, + ((IGregTechTileEntity) aTileEntity).getOffsetX((byte) aSide, 1) + 0.5D, + ((IGregTechTileEntity) aTileEntity).getOffsetY((byte) aSide, 1) + 0.5D, + ((IGregTechTileEntity) aTileEntity).getOffsetZ((byte) aSide, 1) + 0.5D, + tStack); tEntity.motionX = 0.0D; tEntity.motionY = 0.0D; tEntity.motionZ = 0.0D; aWorld.spawnEntityInWorld(tEntity); GT_Utility.sendSoundToPlayers( - aWorld, - SoundResource.IC2_TOOLS_RUBBER_TRAMPOLINE, - 1.0F, - -1.0F, - aX, - aY, - aZ); + aWorld, + SoundResource.IC2_TOOLS_RUBBER_TRAMPOLINE, + 1.0F, + -1.0F, + aX, + aY, + aZ); } return true; } diff --git a/src/main/java/gregtech/common/items/behaviors/Behaviour_Prospecting.java b/src/main/java/gregtech/common/items/behaviors/Behaviour_Prospecting.java index c007473df1..43a35cff05 100644 --- a/src/main/java/gregtech/common/items/behaviors/Behaviour_Prospecting.java +++ b/src/main/java/gregtech/common/items/behaviors/Behaviour_Prospecting.java @@ -31,9 +31,8 @@ public class Behaviour_Prospecting extends Behaviour_None { private final int mVanillaCosts; private final int mEUCosts; - private final String mTooltip = GT_LanguageManager.addStringLocalization( - "gt.behaviour.prospecting", - "Usable for Prospecting"); + private final String mTooltip = GT_LanguageManager + .addStringLocalization("gt.behaviour.prospecting", "Usable for Prospecting"); public Behaviour_Prospecting(int aVanillaCosts, int aEUCosts) { this.mVanillaCosts = aVanillaCosts; @@ -42,7 +41,7 @@ public class Behaviour_Prospecting extends Behaviour_None { @Override public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, - int aY, int aZ, int aSide, float hitX, float hitY, float hitZ) { + int aY, int aZ, int aSide, float hitX, float hitY, float hitZ) { if (aWorld.isRemote) { return false; } @@ -54,26 +53,26 @@ public class Behaviour_Prospecting extends Behaviour_None { ItemData tAssociation = GT_OreDictUnificator.getAssociation(new ItemStack(aBlock, 1, aMeta)); if (tAssociation != null && tAssociation.mPrefix != null - && tAssociation.mMaterial != null - && tAssociation.mPrefix.toString() - .startsWith("ore")) { + && tAssociation.mMaterial != null + && tAssociation.mPrefix.toString() + .startsWith("ore")) { GT_Utility.sendChatToPlayer( - aPlayer, - GT_Utility.trans("100", "This is ") + tAssociation.mMaterial.mMaterial.mDefaultLocalName - + GT_Utility.trans("101", " Ore.")); + aPlayer, + GT_Utility.trans("100", "This is ") + tAssociation.mMaterial.mMaterial.mDefaultLocalName + + GT_Utility.trans("101", " Ore.")); GT_Utility.sendSoundToPlayers(aWorld, SoundResource.RANDOM_ANVIL_USE, 1.0F, -1.0F, aX, aY, aZ); return true; } if (aBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, Blocks.stone) - || aBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, Blocks.netherrack) - || aBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, Blocks.end_stone) - || aBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, GregTech_API.sBlockStones) - || aBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, GregTech_API.sBlockGranites) - || aBlock == GregTech_API.sBlockOresUb1 - || aBlock == GregTech_API.sBlockOresUb2 - || aBlock == GregTech_API.sBlockOresUb3 - || aBlock == GregTech_API.sBlockOres1) { + || aBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, Blocks.netherrack) + || aBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, Blocks.end_stone) + || aBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, GregTech_API.sBlockStones) + || aBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, GregTech_API.sBlockGranites) + || aBlock == GregTech_API.sBlockOresUb1 + || aBlock == GregTech_API.sBlockOresUb2 + || aBlock == GregTech_API.sBlockOresUb3 + || aBlock == GregTech_API.sBlockOres1) { if (GT_ModHandler.damageOrDechargeItem(aStack, this.mVanillaCosts, this.mEUCosts, aPlayer)) { GT_Utility.sendSoundToPlayers(aWorld, SoundResource.RANDOM_ANVIL_USE, 1.0F, -1.0F, aX, aY, aZ); int tMetaID; @@ -87,27 +86,25 @@ public class Behaviour_Prospecting extends Behaviour_None { tBlock = aWorld.getBlock(tX, tY, tZ); if (tBlock == Blocks.lava || tBlock == Blocks.flowing_lava) { - GT_Utility.sendChatToPlayer( - aPlayer, - GT_Utility.trans("102", "There is Lava behind this Rock.")); + GT_Utility + .sendChatToPlayer(aPlayer, GT_Utility.trans("102", "There is Lava behind this Rock.")); break; } if (tBlock instanceof BlockLiquid || tBlock instanceof IFluidBlock) { - GT_Utility.sendChatToPlayer( - aPlayer, - GT_Utility.trans("103", "There is a Liquid behind this Rock.")); + GT_Utility + .sendChatToPlayer(aPlayer, GT_Utility.trans("103", "There is a Liquid behind this Rock.")); break; } if (tBlock == Blocks.monster_egg || !GT_Utility.hasBlockHitBox(aWorld, tX, tY, tZ)) { GT_Utility.sendChatToPlayer( - aPlayer, - GT_Utility.trans("104", "There is an Air Pocket behind this Rock.")); + aPlayer, + GT_Utility.trans("104", "There is an Air Pocket behind this Rock.")); break; } if (tBlock != aBlock) { if (i < 4) GT_Utility.sendChatToPlayer( - aPlayer, - GT_Utility.trans("105", "Material is changing behind this Rock.")); + aPlayer, + GT_Utility.trans("105", "Material is changing behind this Rock.")); break; } } @@ -122,12 +119,12 @@ public class Behaviour_Prospecting extends Behaviour_None { TileEntity tTileEntity = aWorld.getTileEntity(tX, tY, tZ); if (tTileEntity instanceof GT_TileEntity_Ores) { Materials tMaterial = GregTech_API.sGeneratedMaterials[((GT_TileEntity_Ores) tTileEntity).mMetaData - % 1000]; + % 1000]; if (tMaterial != null && tMaterial != Materials._NULL) { GT_Utility.sendChatToPlayer( - aPlayer, - GT_Utility.trans("106", "Found traces of ") + tMaterial.mDefaultLocalName - + GT_Utility.trans("101", " Ore.")); + aPlayer, + GT_Utility.trans("106", "Found traces of ") + tMaterial.mDefaultLocalName + + GT_Utility.trans("101", " Ore.")); return true; } } @@ -135,14 +132,14 @@ public class Behaviour_Prospecting extends Behaviour_None { tMetaID = aWorld.getBlockMetadata(tX, tY, tZ); tAssociation = GT_OreDictUnificator.getAssociation(new ItemStack(tBlock, 1, tMetaID)); if (tAssociation != null && tAssociation.mPrefix != null - && tAssociation.mMaterial != null - && tAssociation.mPrefix.toString() - .startsWith("ore")) { + && tAssociation.mMaterial != null + && tAssociation.mPrefix.toString() + .startsWith("ore")) { GT_Utility.sendChatToPlayer( - aPlayer, - GT_Utility.trans("106", "Found traces of ") - + tAssociation.mMaterial.mMaterial.mDefaultLocalName - + GT_Utility.trans("101", " Ore.")); + aPlayer, + GT_Utility.trans("106", "Found traces of ") + + tAssociation.mMaterial.mMaterial.mDefaultLocalName + + GT_Utility.trans("101", " Ore.")); return true; } } diff --git a/src/main/java/gregtech/common/items/behaviors/Behaviour_Scanner.java b/src/main/java/gregtech/common/items/behaviors/Behaviour_Scanner.java index d82585184d..c041e02881 100644 --- a/src/main/java/gregtech/common/items/behaviors/Behaviour_Scanner.java +++ b/src/main/java/gregtech/common/items/behaviors/Behaviour_Scanner.java @@ -19,20 +19,19 @@ import gregtech.api.util.GT_Utility; public class Behaviour_Scanner extends Behaviour_None { public static final IItemBehaviour INSTANCE = new Behaviour_Scanner(); - private final String mTooltip = GT_LanguageManager.addStringLocalization( - "gt.behaviour.scanning", - "Can scan Blocks in World"); + private final String mTooltip = GT_LanguageManager + .addStringLocalization("gt.behaviour.scanning", "Can scan Blocks in World"); @Override public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, - int aY, int aZ, int aSide, float hitX, float hitY, float hitZ) { + int aY, int aZ, int aSide, float hitX, float hitY, float hitZ) { NBTTagCompound tNBT = aStack.getTagCompound(); if (((aPlayer instanceof EntityPlayerMP)) && (aItem.canUse(aStack, 20000.0D))) { ArrayList tList = new ArrayList<>(); if (aItem.use( - aStack, - GT_Utility.getCoordinateScan(tList, aPlayer, aWorld, 1, aX, aY, aZ, aSide, hitX, hitY, hitZ), - aPlayer)) { + aStack, + GT_Utility.getCoordinateScan(tList, aPlayer, aWorld, 1, aX, aY, aZ, aSide, hitX, hitY, hitZ), + aPlayer)) { int tList_sS = tList.size(); tNBT.setInteger("dataLinesCount", tList_sS); for (int i = 0; i < tList_sS; i++) { diff --git a/src/main/java/gregtech/common/items/behaviors/Behaviour_Scoop.java b/src/main/java/gregtech/common/items/behaviors/Behaviour_Scoop.java index 6bb687a5a8..65be65a96d 100644 --- a/src/main/java/gregtech/common/items/behaviors/Behaviour_Scoop.java +++ b/src/main/java/gregtech/common/items/behaviors/Behaviour_Scoop.java @@ -17,9 +17,8 @@ import gregtech.api.util.GT_LanguageManager; public class Behaviour_Scoop extends Behaviour_None { private final int mCosts; - private final String mTooltip = GT_LanguageManager.addStringLocalization( - "gt.behaviour.scoop", - "Catches Butterflies on Leftclick"); + private final String mTooltip = GT_LanguageManager + .addStringLocalization("gt.behaviour.scoop", "Catches Butterflies on Leftclick"); public Behaviour_Scoop(int aCosts) { this.mCosts = aCosts; @@ -32,23 +31,23 @@ public class Behaviour_Scoop extends Behaviour_None { return true; } if ((aPlayer.capabilities.isCreativeMode) - || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts))) { + || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts))) { IButterfly tButterfly = ((IEntityButterfly) aEntity).getButterfly(); tButterfly.getGenome() - .getPrimary() - .getRoot() - .getBreedingTracker(aEntity.worldObj, aPlayer.getGameProfile()) - .registerCatch(tButterfly); + .getPrimary() + .getRoot() + .getBreedingTracker(aEntity.worldObj, aPlayer.getGameProfile()) + .registerCatch(tButterfly); aPlayer.worldObj.spawnEntityInWorld( - new EntityItem( - aPlayer.worldObj, - aEntity.posX, - aEntity.posY, - aEntity.posZ, - tButterfly.getGenome() - .getPrimary() - .getRoot() - .getMemberStack(tButterfly.copy(), EnumFlutterType.BUTTERFLY.ordinal()))); + new EntityItem( + aPlayer.worldObj, + aEntity.posX, + aEntity.posY, + aEntity.posZ, + tButterfly.getGenome() + .getPrimary() + .getRoot() + .getMemberStack(tButterfly.copy(), EnumFlutterType.BUTTERFLY.ordinal()))); aEntity.setDead(); } return true; diff --git a/src/main/java/gregtech/common/items/behaviors/Behaviour_Screwdriver.java b/src/main/java/gregtech/common/items/behaviors/Behaviour_Screwdriver.java index e2fa9d8f71..3e15849e3f 100644 --- a/src/main/java/gregtech/common/items/behaviors/Behaviour_Screwdriver.java +++ b/src/main/java/gregtech/common/items/behaviors/Behaviour_Screwdriver.java @@ -23,7 +23,7 @@ public class Behaviour_Screwdriver extends Behaviour_None { @Override public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, - int aY, int aZ, int aSide, float hitX, float hitY, float hitZ) { + int aY, int aZ, int aSide, float hitX, float hitY, float hitZ) { if (aWorld.isRemote) { return false; } diff --git a/src/main/java/gregtech/common/items/behaviors/Behaviour_Sense.java b/src/main/java/gregtech/common/items/behaviors/Behaviour_Sense.java index 949b57e581..8adcc8a59d 100644 --- a/src/main/java/gregtech/common/items/behaviors/Behaviour_Sense.java +++ b/src/main/java/gregtech/common/items/behaviors/Behaviour_Sense.java @@ -15,9 +15,8 @@ import ic2.api.crops.ICropTile; public class Behaviour_Sense extends Behaviour_None { private final int mCosts; - private final String mTooltip = GT_LanguageManager.addStringLocalization( - "gt.behaviour.sense", - "Rightclick to harvest Crop Sticks"); + private final String mTooltip = GT_LanguageManager + .addStringLocalization("gt.behaviour.sense", "Rightclick to harvest Crop Sticks"); public Behaviour_Sense(int aCosts) { this.mCosts = aCosts; @@ -25,7 +24,7 @@ public class Behaviour_Sense extends Behaviour_None { @Override public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, - int aY, int aZ, int aSide, float hitX, float hitY, float hitZ) { + int aY, int aZ, int aSide, float hitX, float hitY, float hitZ) { if (aWorld.isRemote) { return false; } @@ -35,9 +34,9 @@ public class Behaviour_Sense extends Behaviour_None { for (int j = -2; j < 3; j++) { for (int k = -2; k < 3; k++) { if ((aStack.stackSize > 0) - && (((tTileEntity = aWorld.getTileEntity(aX + i, aY + j, aZ + k)) instanceof ICropTile)) - && (((ICropTile) tTileEntity).harvest(true)) - && (!aPlayer.capabilities.isCreativeMode)) { + && (((tTileEntity = aWorld.getTileEntity(aX + i, aY + j, aZ + k)) instanceof ICropTile)) + && (((ICropTile) tTileEntity).harvest(true)) + && (!aPlayer.capabilities.isCreativeMode)) { ((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts / 20); } } diff --git a/src/main/java/gregtech/common/items/behaviors/Behaviour_SensorKit.java b/src/main/java/gregtech/common/items/behaviors/Behaviour_SensorKit.java index 62ceebd365..7362621df9 100644 --- a/src/main/java/gregtech/common/items/behaviors/Behaviour_SensorKit.java +++ b/src/main/java/gregtech/common/items/behaviors/Behaviour_SensorKit.java @@ -19,19 +19,19 @@ import gregtech.api.util.GT_Utility; public class Behaviour_SensorKit extends Behaviour_None { private final String mTooltip = GT_LanguageManager.addStringLocalization( - "gt.behaviour.sensorkit.tooltip", - "Used to display Information using the Mod Nuclear Control"); + "gt.behaviour.sensorkit.tooltip", + "Used to display Information using the Mod Nuclear Control"); @Override public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, - int aY, int aZ, int aSide, float hitX, float hitY, float hitZ) { + int aY, int aZ, int aSide, float hitX, float hitY, float hitZ) { if ((aPlayer instanceof EntityPlayerMP)) { TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ); if (((tTileEntity instanceof IInventory)) && (!((IInventory) tTileEntity).isUseableByPlayer(aPlayer))) { return false; } if (((tTileEntity instanceof IGregTechDeviceInformation)) - && (((IGregTechDeviceInformation) tTileEntity).isGivingInformation())) { + && (((IGregTechDeviceInformation) tTileEntity).isGivingInformation())) { GT_Utility.setStack(aStack, ItemList.NC_SensorCard.get(aStack.stackSize)); NBTTagCompound tNBT = aStack.getTagCompound(); if (tNBT == null) { diff --git a/src/main/java/gregtech/common/items/behaviors/Behaviour_SoftHammer.java b/src/main/java/gregtech/common/items/behaviors/Behaviour_SoftHammer.java index 75f3afb4fc..7f529282dd 100644 --- a/src/main/java/gregtech/common/items/behaviors/Behaviour_SoftHammer.java +++ b/src/main/java/gregtech/common/items/behaviors/Behaviour_SoftHammer.java @@ -17,9 +17,8 @@ import gregtech.api.util.GT_Utility; public class Behaviour_SoftHammer extends Behaviour_None { private final int mCosts; - private final String mTooltip = GT_LanguageManager.addStringLocalization( - "gt.behaviour.softhammer", - "Activates and Deactivates Machines"); + private final String mTooltip = GT_LanguageManager + .addStringLocalization("gt.behaviour.softhammer", "Activates and Deactivates Machines"); public Behaviour_SoftHammer(int aCosts) { this.mCosts = aCosts; @@ -27,7 +26,7 @@ public class Behaviour_SoftHammer extends Behaviour_None { @Override public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, - int aY, int aZ, int aSide, float hitX, float hitY, float hitZ) { + int aY, int aZ, int aSide, float hitX, float hitY, float hitZ) { if (aWorld.isRemote) { return false; } @@ -38,127 +37,85 @@ public class Behaviour_SoftHammer extends Behaviour_None { byte aMeta = (byte) aWorld.getBlockMetadata(aX, aY, aZ); if (aBlock == Blocks.lit_redstone_lamp) { if ((aPlayer.capabilities.isCreativeMode) - || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts))) { + || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts))) { aWorld.isRemote = true; aWorld.setBlock(aX, aY, aZ, Blocks.redstone_lamp, 0, 0); aWorld.isRemote = false; - GT_Utility.sendSoundToPlayers( - aWorld, - SoundResource.IC2_TOOLS_RUBBER_TRAMPOLINE, - 1.0F, - -1.0F, - aX, - aY, - aZ); + GT_Utility + .sendSoundToPlayers(aWorld, SoundResource.IC2_TOOLS_RUBBER_TRAMPOLINE, 1.0F, -1.0F, aX, aY, aZ); } return true; } if (aBlock == Blocks.redstone_lamp) { if ((aPlayer.capabilities.isCreativeMode) - || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts))) { + || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts))) { aWorld.isRemote = true; aWorld.setBlock(aX, aY, aZ, Blocks.lit_redstone_lamp, 0, 0); aWorld.isRemote = false; - GT_Utility.sendSoundToPlayers( - aWorld, - SoundResource.IC2_TOOLS_RUBBER_TRAMPOLINE, - 1.0F, - -1.0F, - aX, - aY, - aZ); + GT_Utility + .sendSoundToPlayers(aWorld, SoundResource.IC2_TOOLS_RUBBER_TRAMPOLINE, 1.0F, -1.0F, aX, aY, aZ); } return true; } if (aBlock == Blocks.golden_rail) { if ((aPlayer.capabilities.isCreativeMode) - || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts))) { + || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts))) { aWorld.isRemote = true; aWorld.setBlock(aX, aY, aZ, aBlock, (aMeta + 8) % 16, 0); aWorld.isRemote = false; - GT_Utility.sendSoundToPlayers( - aWorld, - SoundResource.IC2_TOOLS_RUBBER_TRAMPOLINE, - 1.0F, - -1.0F, - aX, - aY, - aZ); + GT_Utility + .sendSoundToPlayers(aWorld, SoundResource.IC2_TOOLS_RUBBER_TRAMPOLINE, 1.0F, -1.0F, aX, aY, aZ); } return true; } if (aBlock == Blocks.activator_rail) { if ((aPlayer.capabilities.isCreativeMode) - || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts))) { + || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts))) { aWorld.isRemote = true; aWorld.setBlock(aX, aY, aZ, aBlock, (aMeta + 8) % 16, 0); aWorld.isRemote = false; - GT_Utility.sendSoundToPlayers( - aWorld, - SoundResource.IC2_TOOLS_RUBBER_TRAMPOLINE, - 1.0F, - -1.0F, - aX, - aY, - aZ); + GT_Utility + .sendSoundToPlayers(aWorld, SoundResource.IC2_TOOLS_RUBBER_TRAMPOLINE, 1.0F, -1.0F, aX, aY, aZ); } return true; } if ((aBlock == Blocks.log) || (aBlock == Blocks.log2) || (aBlock == Blocks.hay_block)) { if ((aPlayer.capabilities.isCreativeMode) - || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts))) { + || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts))) { aWorld.setBlockMetadataWithNotify(aX, aY, aZ, (aMeta + 4) % 12, 3); } return true; } if ((aBlock == Blocks.piston) || (aBlock == Blocks.sticky_piston) - || (aBlock == Blocks.dispenser) - || (aBlock == Blocks.dropper)) { + || (aBlock == Blocks.dispenser) + || (aBlock == Blocks.dropper)) { if ((aPlayer.capabilities.isCreativeMode) - || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts))) { + || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts))) { aWorld.setBlockMetadataWithNotify(aX, aY, aZ, (aMeta + 1) % 6, 3); - GT_Utility.sendSoundToPlayers( - aWorld, - SoundResource.IC2_TOOLS_RUBBER_TRAMPOLINE, - 1.0F, - -1.0F, - aX, - aY, - aZ); + GT_Utility + .sendSoundToPlayers(aWorld, SoundResource.IC2_TOOLS_RUBBER_TRAMPOLINE, 1.0F, -1.0F, aX, aY, aZ); } return true; } if ((aBlock == Blocks.pumpkin) || (aBlock == Blocks.lit_pumpkin) - || (aBlock == Blocks.furnace) - || (aBlock == Blocks.lit_furnace) - || (aBlock == Blocks.chest) - || (aBlock == Blocks.trapped_chest)) { + || (aBlock == Blocks.furnace) + || (aBlock == Blocks.lit_furnace) + || (aBlock == Blocks.chest) + || (aBlock == Blocks.trapped_chest)) { if ((aPlayer.capabilities.isCreativeMode) - || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts))) { + || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts))) { aWorld.setBlockMetadataWithNotify(aX, aY, aZ, (aMeta - 1) % 4 + 2, 3); - GT_Utility.sendSoundToPlayers( - aWorld, - SoundResource.IC2_TOOLS_RUBBER_TRAMPOLINE, - 1.0F, - -1.0F, - aX, - aY, - aZ); + GT_Utility + .sendSoundToPlayers(aWorld, SoundResource.IC2_TOOLS_RUBBER_TRAMPOLINE, 1.0F, -1.0F, aX, aY, aZ); } return true; } if (aBlock == Blocks.hopper) { if ((aPlayer.capabilities.isCreativeMode) - || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts))) { + || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts))) { aWorld.setBlockMetadataWithNotify(aX, aY, aZ, (aMeta + 1) % 6 != 1 ? (aMeta + 1) % 6 : 2, 3); - GT_Utility.sendSoundToPlayers( - aWorld, - SoundResource.IC2_TOOLS_RUBBER_TRAMPOLINE, - 1.0F, - -1.0F, - aX, - aY, - aZ); + GT_Utility + .sendSoundToPlayers(aWorld, SoundResource.IC2_TOOLS_RUBBER_TRAMPOLINE, 1.0F, -1.0F, aX, aY, aZ); } return true; } diff --git a/src/main/java/gregtech/common/items/behaviors/Behaviour_Sonictron.java b/src/main/java/gregtech/common/items/behaviors/Behaviour_Sonictron.java index a191d97209..02413bf143 100644 --- a/src/main/java/gregtech/common/items/behaviors/Behaviour_Sonictron.java +++ b/src/main/java/gregtech/common/items/behaviors/Behaviour_Sonictron.java @@ -99,7 +99,7 @@ public class Behaviour_Sonictron extends Behaviour_None { @Override public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, - int aY, int aZ, int aSide, float hitX, float hitY, float hitZ) { + int aY, int aZ, int aSide, float hitX, float hitY, float hitZ) { setCurrentIndex(aStack, -1); return false; } @@ -112,17 +112,17 @@ public class Behaviour_Sonictron extends Behaviour_None { @Override public void onUpdate(GT_MetaBase_Item aItem, ItemStack aStack, World aWorld, Entity aPlayer, int aTimer, - boolean aIsInHand) { + boolean aIsInHand) { int tTickTimer = getTickTimer(aStack); int tCurrentIndex = getCurrentIndex(aStack); if ((tTickTimer++ % 2 == 0) && (tCurrentIndex > -1)) { ItemStack[] tInventory = getNBTInventory(aStack); GT_Values.GT.doSonictronSound( - tInventory[tCurrentIndex], - aPlayer.worldObj, - aPlayer.posX, - aPlayer.posY, - aPlayer.posZ); + tInventory[tCurrentIndex], + aPlayer.worldObj, + aPlayer.posX, + aPlayer.posY, + aPlayer.posZ); tCurrentIndex++; if (tCurrentIndex > 63) { tCurrentIndex = -1; diff --git a/src/main/java/gregtech/common/items/behaviors/Behaviour_Spray_Color.java b/src/main/java/gregtech/common/items/behaviors/Behaviour_Spray_Color.java index 36c81b27c1..fd7e1a7965 100644 --- a/src/main/java/gregtech/common/items/behaviors/Behaviour_Spray_Color.java +++ b/src/main/java/gregtech/common/items/behaviors/Behaviour_Spray_Color.java @@ -32,27 +32,25 @@ public class Behaviour_Spray_Color extends Behaviour_None { private final long mUses; private final byte mColor; private final Collection mAllowedVanillaBlocks = Arrays.asList( - Blocks.glass, - Blocks.glass_pane, - Blocks.stained_glass, - Blocks.stained_glass_pane, - Blocks.carpet, - Blocks.hardened_clay, - ItemList.TE_Rockwool.getBlock()); + Blocks.glass, + Blocks.glass_pane, + Blocks.stained_glass, + Blocks.stained_glass_pane, + Blocks.carpet, + Blocks.hardened_clay, + ItemList.TE_Rockwool.getBlock()); private final String mTooltip; - private final String mTooltipUses = GT_LanguageManager.addStringLocalization( - "gt.behaviour.paintspray.uses", - "Remaining Uses:"); - private final String mTooltipUnstackable = GT_LanguageManager.addStringLocalization( - "gt.behaviour.unstackable", - "Not usable when stacked!"); + private final String mTooltipUses = GT_LanguageManager + .addStringLocalization("gt.behaviour.paintspray.uses", "Remaining Uses:"); + private final String mTooltipUnstackable = GT_LanguageManager + .addStringLocalization("gt.behaviour.unstackable", "Not usable when stacked!"); private final String mTooltipChain = GT_LanguageManager.addStringLocalization( - "gt.behaviour.paintspray.chain", - "If used while sneaking it will paint a chain of blocks"); + "gt.behaviour.paintspray.chain", + "If used while sneaking it will paint a chain of blocks"); private final String mTooltipChainAmount = GT_LanguageManager.addStringLocalization( - "gt.behaviour.paintspray.chain", - "Paints up to %d blocks, in the direction you're looking at"); + "gt.behaviour.paintspray.chain", + "Paints up to %d blocks, in the direction you're looking at"); public Behaviour_Spray_Color(ItemStack aEmpty, ItemStack aUsed, ItemStack aFull, long aUses, int aColor) { this.mEmpty = aEmpty; @@ -61,13 +59,13 @@ public class Behaviour_Spray_Color extends Behaviour_None { this.mUses = aUses; this.mColor = ((byte) aColor); this.mTooltip = GT_LanguageManager.addStringLocalization( - "gt.behaviour.paintspray." + this.mColor + ".tooltip", - "Can Color things in " + Dyes.get(this.mColor).mName); + "gt.behaviour.paintspray." + this.mColor + ".tooltip", + "Can Color things in " + Dyes.get(this.mColor).mName); } @Override public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, - int aY, int aZ, int aSide, float hitX, float hitY, float hitZ) { + int aY, int aZ, int aSide, float hitX, float hitY, float hitZ) { if ((aWorld.isRemote) || (aStack.stackSize != 1)) { return false; } @@ -140,7 +138,7 @@ public class Behaviour_Spray_Color extends Behaviour_None { private boolean colorize(World aWorld, int aX, int aY, int aZ, int aSide) { Block aBlock = aWorld.getBlock(aX, aY, aZ); if ((aBlock != Blocks.air) - && ((this.mAllowedVanillaBlocks.contains(aBlock)) || ((aBlock instanceof BlockColored)))) { + && ((this.mAllowedVanillaBlocks.contains(aBlock)) || ((aBlock instanceof BlockColored)))) { if (aBlock == Blocks.hardened_clay) { aWorld.setBlock(aX, aY, aZ, Blocks.stained_hardened_clay, (~this.mColor) & 0xF, 3); return true; @@ -167,12 +165,12 @@ public class Behaviour_Spray_Color extends Behaviour_None { aList.add(this.mTooltip); aList.add(this.mTooltipChain); aList.add( - String.format( - this.mTooltipChainAmount, - GregTech_API.sSpecialFile.get(ConfigCategories.general, "SprayCanChainRange", 256))); + String.format( + this.mTooltipChainAmount, + GregTech_API.sSpecialFile.get(ConfigCategories.general, "SprayCanChainRange", 256))); NBTTagCompound tNBT = aStack.getTagCompound(); long tRemainingPaint = tNBT == null ? this.mUses - : GT_Utility.areStacksEqual(aStack, this.mFull, true) ? this.mUses : tNBT.getLong("GT.RemainingPaint"); + : GT_Utility.areStacksEqual(aStack, this.mFull, true) ? this.mUses : tNBT.getLong("GT.RemainingPaint"); aList.add(this.mTooltipUses + " " + tRemainingPaint); aList.add(this.mTooltipUnstackable); return aList; diff --git a/src/main/java/gregtech/common/items/behaviors/Behaviour_Switch_Metadata.java b/src/main/java/gregtech/common/items/behaviors/Behaviour_Switch_Metadata.java index cd9deb570d..20bc59a171 100644 --- a/src/main/java/gregtech/common/items/behaviors/Behaviour_Switch_Metadata.java +++ b/src/main/java/gregtech/common/items/behaviors/Behaviour_Switch_Metadata.java @@ -41,7 +41,7 @@ public class Behaviour_Switch_Metadata extends Behaviour_None { @Override public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, - int aY, int aZ, int aSide, float aHitX, float aHitY, float aHitZ) { + int aY, int aZ, int aSide, float aHitX, float aHitY, float aHitZ) { if (aStack != null && (aPlayer == null || aPlayer.isSneaking()) && !aWorld.isRemote) { if (mCheckTarget) { Block aBlock = aWorld.blockExists(aX, aY, aZ) ? aWorld.getBlock(aX, aY, aZ) : Blocks.air; diff --git a/src/main/java/gregtech/common/items/behaviors/Behaviour_Wrench.java b/src/main/java/gregtech/common/items/behaviors/Behaviour_Wrench.java index a04593a1b8..2e4d682dcf 100644 --- a/src/main/java/gregtech/common/items/behaviors/Behaviour_Wrench.java +++ b/src/main/java/gregtech/common/items/behaviors/Behaviour_Wrench.java @@ -23,9 +23,8 @@ import ic2.api.tile.IWrenchable; public class Behaviour_Wrench extends Behaviour_None { private final int mCosts; - private final String mTooltip = GT_LanguageManager.addStringLocalization( - "gt.behaviour.wrench", - "Rotates Blocks on Rightclick"); + private final String mTooltip = GT_LanguageManager + .addStringLocalization("gt.behaviour.wrench", "Rotates Blocks on Rightclick"); public Behaviour_Wrench(int aCosts) { this.mCosts = aCosts; @@ -33,7 +32,7 @@ public class Behaviour_Wrench extends Behaviour_None { @Override public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, - int aY, int aZ, int aSide, float hitX, float hitY, float hitZ) { + int aY, int aZ, int aSide, float hitX, float hitY, float hitZ) { if (aWorld.isRemote) { return false; } @@ -48,7 +47,7 @@ public class Behaviour_Wrench extends Behaviour_None { if (((aTileEntity instanceof IWrenchable))) { if (((IWrenchable) aTileEntity).wrenchCanSetFacing(aPlayer, aTargetSide)) { if ((aPlayer.capabilities.isCreativeMode) - || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts))) { + || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts))) { ((IWrenchable) aTileEntity).setFacing(aTargetSide); GT_Utility.sendSoundToPlayers(aWorld, SoundResource.IC2_TOOLS_WRENCH, 1.0F, -1.0F, aX, aY, aZ); } @@ -57,15 +56,15 @@ public class Behaviour_Wrench extends Behaviour_None { if (((IWrenchable) aTileEntity).wrenchCanRemove(aPlayer)) { int tDamage = ((IWrenchable) aTileEntity).getWrenchDropRate() < 1.0F ? 10 : 3; if ((aPlayer.capabilities.isCreativeMode) - || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, (long) tDamage * this.mCosts))) { + || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, (long) tDamage * this.mCosts))) { ItemStack tOutput = ((IWrenchable) aTileEntity).getWrenchDrop(aPlayer); for (ItemStack tStack : aBlock.getDrops(aWorld, aX, aY, aZ, aMeta, 0)) { if (tOutput == null) { aWorld.spawnEntityInWorld( - new EntityItem(aWorld, aX + 0.5D, aY + 0.5D, aZ + 0.5D, tStack)); + new EntityItem(aWorld, aX + 0.5D, aY + 0.5D, aZ + 0.5D, tStack)); } else { aWorld.spawnEntityInWorld( - new EntityItem(aWorld, aX + 0.5D, aY + 0.5D, aZ + 0.5D, tOutput)); + new EntityItem(aWorld, aX + 0.5D, aY + 0.5D, aZ + 0.5D, tOutput)); tOutput = null; } } @@ -79,7 +78,7 @@ public class Behaviour_Wrench extends Behaviour_None { } catch (Throwable ignored) {} if ((aBlock == Blocks.log) || (aBlock == Blocks.log2) || (aBlock == Blocks.hay_block)) { if ((aPlayer.capabilities.isCreativeMode) - || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts))) { + || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts))) { aWorld.setBlockMetadataWithNotify(aX, aY, aZ, (aMeta + 4) % 12, 3); GT_Utility.sendSoundToPlayers(aWorld, SoundResource.IC2_TOOLS_WRENCH, 1.0F, -1.0F, aX, aY, aZ); } @@ -87,7 +86,7 @@ public class Behaviour_Wrench extends Behaviour_None { } if ((aBlock == Blocks.powered_repeater) || (aBlock == Blocks.unpowered_repeater)) { if ((aPlayer.capabilities.isCreativeMode) - || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts))) { + || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts))) { aWorld.setBlockMetadataWithNotify(aX, aY, aZ, aMeta / 4 * 4 + (aMeta % 4 + 1) % 4, 3); GT_Utility.sendSoundToPlayers(aWorld, SoundResource.IC2_TOOLS_WRENCH, 1.0F, -1.0F, aX, aY, aZ); } @@ -95,7 +94,7 @@ public class Behaviour_Wrench extends Behaviour_None { } if ((aBlock == Blocks.powered_comparator) || (aBlock == Blocks.unpowered_comparator)) { if ((aPlayer.capabilities.isCreativeMode) - || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts))) { + || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts))) { aWorld.setBlockMetadataWithNotify(aX, aY, aZ, aMeta / 4 * 4 + (aMeta % 4 + 1) % 4, 3); GT_Utility.sendSoundToPlayers(aWorld, SoundResource.IC2_TOOLS_WRENCH, 1.0F, -1.0F, aX, aY, aZ); } @@ -103,9 +102,9 @@ public class Behaviour_Wrench extends Behaviour_None { } if ((aBlock == Blocks.crafting_table) || (aBlock == Blocks.bookshelf)) { if ((aPlayer.capabilities.isCreativeMode) - || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts))) { + || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts))) { aWorld.spawnEntityInWorld( - new EntityItem(aWorld, aX + 0.5D, aY + 0.5D, aZ + 0.5D, new ItemStack(aBlock, 1, aMeta))); + new EntityItem(aWorld, aX + 0.5D, aY + 0.5D, aZ + 0.5D, new ItemStack(aBlock, 1, aMeta))); aWorld.setBlockToAir(aX, aY, aZ); GT_Utility.sendSoundToPlayers(aWorld, SoundResource.IC2_TOOLS_WRENCH, 1.0F, -1.0F, aX, aY, aZ); } @@ -113,20 +112,20 @@ public class Behaviour_Wrench extends Behaviour_None { } if (aMeta == aTargetSide) { if ((aBlock == Blocks.pumpkin) || (aBlock == Blocks.lit_pumpkin) - || (aBlock == Blocks.piston) - || (aBlock == Blocks.sticky_piston) - || (aBlock == Blocks.dispenser) - || (aBlock == Blocks.dropper) - || (aBlock == Blocks.furnace) - || (aBlock == Blocks.lit_furnace) - || (aBlock == Blocks.chest) - || (aBlock == Blocks.trapped_chest) - || (aBlock == Blocks.ender_chest) - || (aBlock == Blocks.hopper)) { + || (aBlock == Blocks.piston) + || (aBlock == Blocks.sticky_piston) + || (aBlock == Blocks.dispenser) + || (aBlock == Blocks.dropper) + || (aBlock == Blocks.furnace) + || (aBlock == Blocks.lit_furnace) + || (aBlock == Blocks.chest) + || (aBlock == Blocks.trapped_chest) + || (aBlock == Blocks.ender_chest) + || (aBlock == Blocks.hopper)) { if ((aPlayer.capabilities.isCreativeMode) - || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts))) { + || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts))) { aWorld.spawnEntityInWorld( - new EntityItem(aWorld, aX + 0.5D, aY + 0.5D, aZ + 0.5D, new ItemStack(aBlock, 1, 0))); + new EntityItem(aWorld, aX + 0.5D, aY + 0.5D, aZ + 0.5D, new ItemStack(aBlock, 1, 0))); aWorld.setBlockToAir(aX, aY, aZ); GT_Utility.sendSoundToPlayers(aWorld, SoundResource.IC2_TOOLS_WRENCH, 1.0F, -1.0F, aX, aY, aZ); } @@ -134,23 +133,23 @@ public class Behaviour_Wrench extends Behaviour_None { } } else { if ((aBlock == Blocks.piston) || (aBlock == Blocks.sticky_piston) - || (aBlock == Blocks.dispenser) - || (aBlock == Blocks.dropper)) { + || (aBlock == Blocks.dispenser) + || (aBlock == Blocks.dropper)) { if ((aMeta < 6) && ((aPlayer.capabilities.isCreativeMode) - || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts)))) { + || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts)))) { aWorld.setBlockMetadataWithNotify(aX, aY, aZ, aTargetSide, 3); GT_Utility.sendSoundToPlayers(aWorld, SoundResource.IC2_TOOLS_WRENCH, 1.0F, -1.0F, aX, aY, aZ); } return true; } if ((aBlock == Blocks.pumpkin) || (aBlock == Blocks.lit_pumpkin) - || (aBlock == Blocks.furnace) - || (aBlock == Blocks.lit_furnace) - || (aBlock == Blocks.chest) - || (aBlock == Blocks.ender_chest) - || (aBlock == Blocks.trapped_chest)) { + || (aBlock == Blocks.furnace) + || (aBlock == Blocks.lit_furnace) + || (aBlock == Blocks.chest) + || (aBlock == Blocks.ender_chest) + || (aBlock == Blocks.trapped_chest)) { if ((aTargetSide > 1) && ((aPlayer.capabilities.isCreativeMode) - || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts)))) { + || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts)))) { aWorld.setBlockMetadataWithNotify(aX, aY, aZ, aTargetSide, 3); GT_Utility.sendSoundToPlayers(aWorld, SoundResource.IC2_TOOLS_WRENCH, 1.0F, -1.0F, aX, aY, aZ); } @@ -158,7 +157,7 @@ public class Behaviour_Wrench extends Behaviour_None { } if (aBlock == Blocks.hopper) { if ((aTargetSide != 1) && ((aPlayer.capabilities.isCreativeMode) - || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts)))) { + || (((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts)))) { aWorld.setBlockMetadataWithNotify(aX, aY, aZ, aTargetSide, 3); GT_Utility.sendSoundToPlayers(aWorld, SoundResource.IC2_TOOLS_WRENCH, 1.0F, -1.0F, aX, aY, aZ); } @@ -166,10 +165,10 @@ public class Behaviour_Wrench extends Behaviour_None { } } if ((Arrays.asList(aBlock.getValidRotations(aWorld, aX, aY, aZ)) - .contains(ForgeDirection.getOrientation(aTargetSide))) - && ((aPlayer.capabilities.isCreativeMode) || (!GT_ModHandler.isElectricItem(aStack)) - || (GT_ModHandler.canUseElectricItem(aStack, this.mCosts))) - && (aBlock.rotateBlock(aWorld, aX, aY, aZ, ForgeDirection.getOrientation(aTargetSide)))) { + .contains(ForgeDirection.getOrientation(aTargetSide))) + && ((aPlayer.capabilities.isCreativeMode) || (!GT_ModHandler.isElectricItem(aStack)) + || (GT_ModHandler.canUseElectricItem(aStack, this.mCosts))) + && (aBlock.rotateBlock(aWorld, aX, aY, aZ, ForgeDirection.getOrientation(aTargetSide)))) { if (!aPlayer.capabilities.isCreativeMode) { ((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts); } diff --git a/src/main/java/gregtech/common/items/behaviors/Behaviour_WrittenBook.java b/src/main/java/gregtech/common/items/behaviors/Behaviour_WrittenBook.java index 65ba5199ee..c62cfedf2a 100644 --- a/src/main/java/gregtech/common/items/behaviors/Behaviour_WrittenBook.java +++ b/src/main/java/gregtech/common/items/behaviors/Behaviour_WrittenBook.java @@ -19,11 +19,11 @@ public class Behaviour_WrittenBook extends Behaviour_None { @Override @SideOnly(Side.CLIENT) public boolean onItemUse(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, - int aY, int aZ, int aSide, float hitX, float hitY, float hitZ) { + int aY, int aZ, int aSide, float hitX, float hitY, float hitZ) { if ((GT_Utility.isStringValid(GT_Utility.ItemNBT.getBookTitle(aStack))) - && ((aPlayer instanceof EntityPlayerSP))) { + && ((aPlayer instanceof EntityPlayerSP))) { Minecraft.getMinecraft() - .displayGuiScreen(new GuiScreenBook(aPlayer, aStack, false)); + .displayGuiScreen(new GuiScreenBook(aPlayer, aStack, false)); } return true; } diff --git a/src/main/java/gregtech/common/misc/GT_Command.java b/src/main/java/gregtech/common/misc/GT_Command.java index 2b91cdebd9..11019e3723 100644 --- a/src/main/java/gregtech/common/misc/GT_Command.java +++ b/src/main/java/gregtech/common/misc/GT_Command.java @@ -34,8 +34,8 @@ public final class GT_Command extends CommandBase implements IGlobalWirelessEner private void printHelp(ICommandSender sender) { sender.addChatMessage( - new ChatComponentText( - "Usage: gt ")); + new ChatComponentText( + "Usage: gt ")); sender.addChatMessage(new ChatComponentText("\"toggle D1\" - toggles general.Debug (D1)")); sender.addChatMessage(new ChatComponentText("\"toggle D2\" - toggles general.Debug2 (D2)")); sender.addChatMessage(new ChatComponentText("\"toggle debugCleanroom\" - toggles cleanroom debug log")); @@ -43,8 +43,7 @@ public final class GT_Command extends CommandBase implements IGlobalWirelessEner sender.addChatMessage(new ChatComponentText("\"toggle debugBlockPump\" - Possible issues with pumps")); sender.addChatMessage(new ChatComponentText("\"toggle debugBlockMiner\" - Possible issues with miners")); sender.addChatMessage( - new ChatComponentText( - "\"toggle debugEntityCramming\" - How long it takes and how many entities it finds")); + new ChatComponentText("\"toggle debugEntityCramming\" - How long it takes and how many entities it finds")); sender.addChatMessage(new ChatComponentText("\"toggle debugWorldGen\" - toggles generic worldgen debug")); sender.addChatMessage(new ChatComponentText("\"toggle debugOrevein\" - toggles worldgen ore vein debug")); sender.addChatMessage(new ChatComponentText("\"toggle debugSmallOres\" - toggles worldgen small vein debug")); @@ -53,48 +52,44 @@ public final class GT_Command extends CommandBase implements IGlobalWirelessEner sender.addChatMessage(new ChatComponentText("\"toggle debugMulti\" - toggles structurelib debug")); sender.addChatMessage(new ChatComponentText("\"chunks\" - print a list of the force loaded chunks")); sender.addChatMessage( - new ChatComponentText( - "\"pollution \" - adds the of the pollution to the current chunk, " - + "\n if isnt specified, will add" - + GT_Mod.gregtechproxy.mPollutionSmogLimit - + "gibbl.")); + new ChatComponentText( + "\"pollution \" - adds the of the pollution to the current chunk, " + + "\n if isnt specified, will add" + + GT_Mod.gregtechproxy.mPollutionSmogLimit + + "gibbl.")); sender.addChatMessage(new ChatComponentText(EnumChatFormatting.GOLD + " --- Global wireless EU controls ---")); sender.addChatMessage(new ChatComponentText("Allows you to set the amount of EU in a users wireless network.")); sender.addChatMessage( - new ChatComponentText( - "Usage:" + EnumChatFormatting.RED - + " global_energy_set " - + EnumChatFormatting.BLUE - + "[Name] " - + EnumChatFormatting.LIGHT_PURPLE - + "[EU]")); + new ChatComponentText( + "Usage:" + EnumChatFormatting.RED + + " global_energy_set " + + EnumChatFormatting.BLUE + + "[Name] " + + EnumChatFormatting.LIGHT_PURPLE + + "[EU]")); sender.addChatMessage( - new ChatComponentText( - "Allows you to add EU to a users wireless network. Also accepts negative numbers.")); + new ChatComponentText("Allows you to add EU to a users wireless network. Also accepts negative numbers.")); sender.addChatMessage( - new ChatComponentText( - "Usage:" + EnumChatFormatting.RED - + " global_energy_add " - + EnumChatFormatting.BLUE - + "[Name] " - + EnumChatFormatting.LIGHT_PURPLE - + "[EU]")); + new ChatComponentText( + "Usage:" + EnumChatFormatting.RED + + " global_energy_add " + + EnumChatFormatting.BLUE + + "[Name] " + + EnumChatFormatting.LIGHT_PURPLE + + "[EU]")); sender.addChatMessage( - new ChatComponentText( - "Allows you to join two users together into one network. Can be undone by writing the users name twice.")); + new ChatComponentText( + "Allows you to join two users together into one network. Can be undone by writing the users name twice.")); sender.addChatMessage( - new ChatComponentText( - "Usage:" + EnumChatFormatting.RED - + " global_energy_join " - + EnumChatFormatting.BLUE - + "[User joining] [User to join]")); + new ChatComponentText( + "Usage:" + EnumChatFormatting.RED + + " global_energy_join " + + EnumChatFormatting.BLUE + + "[User joining] [User to join]")); sender.addChatMessage(new ChatComponentText("Shows the amount of EU in a users energy network.")); sender.addChatMessage( - new ChatComponentText( - "Usage:" + EnumChatFormatting.RED - + " global_energy_display " - + EnumChatFormatting.BLUE - + "[Name]")); + new ChatComponentText( + "Usage:" + EnumChatFormatting.RED + " global_energy_display " + EnumChatFormatting.BLUE + "[Name]")); } @Override @@ -102,16 +97,17 @@ public final class GT_Command extends CommandBase implements IGlobalWirelessEner List l = new ArrayList<>(); String test = ss.length == 0 ? "" : ss[0].trim(); if (ss.length == 0 || ss.length == 1 && (test.isEmpty() || Stream - .of( - "toggle", - "chunks", - "pollution", - "global_energy_add", - "global_energy_set", - "global_energy_join", - "global_energy_display") - .anyMatch(s -> s.startsWith(test)))) { - Stream.of( + .of( + "toggle", + "chunks", + "pollution", + "global_energy_add", + "global_energy_set", + "global_energy_join", + "global_energy_display") + .anyMatch(s -> s.startsWith(test)))) { + Stream + .of( "toggle", "chunks", "pollution", @@ -119,11 +115,12 @@ public final class GT_Command extends CommandBase implements IGlobalWirelessEner "global_energy_set", "global_energy_join", "global_energy_display") - .filter(s -> test.isEmpty() || s.startsWith(test)) - .forEach(l::add); + .filter(s -> test.isEmpty() || s.startsWith(test)) + .forEach(l::add); } else if (test.equals("toggle")) { String test1 = ss[1].trim(); - Stream.of( + Stream + .of( "D1", "D2", "debugCleanroom", @@ -138,8 +135,8 @@ public final class GT_Command extends CommandBase implements IGlobalWirelessEner "debugChunkloaders", "debugMulti", "debugWorldData") - .filter(s -> test1.isEmpty() || s.startsWith(test1)) - .forEach(l::add); + .filter(s -> test1.isEmpty() || s.startsWith(test1)) + .forEach(l::add); } return l; } @@ -159,7 +156,7 @@ public final class GT_Command extends CommandBase implements IGlobalWirelessEner if ("debugMulti".equals(strings[1])) { StructureLib.DEBUG_MODE = !StructureLib.DEBUG_MODE; sender.addChatMessage( - new ChatComponentText(strings[1] + " = " + (StructureLib.DEBUG_MODE ? "true" : "false"))); + new ChatComponentText(strings[1] + " = " + (StructureLib.DEBUG_MODE ? "true" : "false"))); return; } try { @@ -182,11 +179,11 @@ public final class GT_Command extends CommandBase implements IGlobalWirelessEner case "pollution" -> { ChunkCoordinates coordinates = sender.getPlayerCoordinates(); int amount = (strings.length < 2) ? GT_Mod.gregtechproxy.mPollutionSmogLimit - : Integer.parseInt(strings[1]); + : Integer.parseInt(strings[1]); GT_Pollution.addPollution( - sender.getEntityWorld() - .getChunkFromBlockCoords(coordinates.posX, coordinates.posZ), - amount); + sender.getEntityWorld() + .getChunkFromBlockCoords(coordinates.posX, coordinates.posZ), + amount); } case "global_energy_add" -> { String username = strings[1]; @@ -199,34 +196,34 @@ public final class GT_Command extends CommandBase implements IGlobalWirelessEner if (uuid.equals("")) { sender.addChatMessage( - new ChatComponentText("User " + formatted_username + " has no global energy network.")); + new ChatComponentText("User " + formatted_username + " has no global energy network.")); break; } String EU_string_formatted = EnumChatFormatting.RED - + GT_Utility.formatNumbers(new BigInteger(EU_String)) - + EnumChatFormatting.RESET; + + GT_Utility.formatNumbers(new BigInteger(EU_String)) + + EnumChatFormatting.RESET; if (addEUToGlobalEnergyMap(uuid, new BigInteger(EU_String))) sender.addChatMessage( - new ChatComponentText( - "Successfully added " + EU_string_formatted - + "EU to the global energy network of " - + formatted_username - + ".")); + new ChatComponentText( + "Successfully added " + EU_string_formatted + + "EU to the global energy network of " + + formatted_username + + ".")); else sender.addChatMessage( - new ChatComponentText( - "Failed to add " + EU_string_formatted - + "EU to the global energy map of " - + formatted_username - + ". Insufficient energy in network. ")); + new ChatComponentText( + "Failed to add " + EU_string_formatted + + "EU to the global energy map of " + + formatted_username + + ". Insufficient energy in network. ")); sender.addChatMessage( - new ChatComponentText( - formatted_username + " currently has " - + EnumChatFormatting.RED - + GT_Utility.formatNumbers(new BigInteger(getUserEU(uuid).toString())) - + EnumChatFormatting.RESET - + "EU in their network.")); + new ChatComponentText( + formatted_username + " currently has " + + EnumChatFormatting.RED + + GT_Utility.formatNumbers(new BigInteger(getUserEU(uuid).toString())) + + EnumChatFormatting.RESET + + "EU in their network.")); } case "global_energy_set" -> { @@ -239,7 +236,7 @@ public final class GT_Command extends CommandBase implements IGlobalWirelessEner if (uuid.equals("")) { sender.addChatMessage( - new ChatComponentText("User " + formatted_username + " has no global energy network.")); + new ChatComponentText("User " + formatted_username + " has no global energy network.")); break; } @@ -247,20 +244,20 @@ public final class GT_Command extends CommandBase implements IGlobalWirelessEner if ((new BigInteger(EU_String_0).compareTo(BigInteger.ZERO)) < 0) { sender.addChatMessage( - new ChatComponentText("Cannot set a users energy network to a negative value.")); + new ChatComponentText("Cannot set a users energy network to a negative value.")); break; } setUserEU(uuid, new BigInteger(EU_String_0)); sender.addChatMessage( - new ChatComponentText( - "Successfully set " + formatted_username - + "'s global energy network to " - + EnumChatFormatting.RED - + GT_Utility.formatNumbers(new BigInteger(EU_String_0)) - + EnumChatFormatting.RESET - + "EU.")); + new ChatComponentText( + "Successfully set " + formatted_username + + "'s global energy network to " + + EnumChatFormatting.RED + + GT_Utility.formatNumbers(new BigInteger(EU_String_0)) + + EnumChatFormatting.RESET + + "EU.")); } case "global_energy_join" -> { @@ -279,51 +276,50 @@ public final class GT_Command extends CommandBase implements IGlobalWirelessEner if (uuid_1.equals("") && uuid_0.equals("")) { if (username_0.equals(username_1)) { sender.addChatMessage( - new ChatComponentText( - "User " + formatted_username_0 + " has no global energy network.")); + new ChatComponentText("User " + formatted_username_0 + " has no global energy network.")); } else { sender.addChatMessage( - new ChatComponentText( - "User " + formatted_username_0 - + " and " - + formatted_username_1 - + " have no global energy networks.")); + new ChatComponentText( + "User " + formatted_username_0 + + " and " + + formatted_username_1 + + " have no global energy networks.")); } break; } if (uuid_0.equals("")) { sender.addChatMessage( - new ChatComponentText("User " + formatted_username_0 + " has no global energy network.")); + new ChatComponentText("User " + formatted_username_0 + " has no global energy network.")); break; } if (uuid_1.equals("")) { sender.addChatMessage( - new ChatComponentText("User " + formatted_username_1 + " has no global energy network.")); + new ChatComponentText("User " + formatted_username_1 + " has no global energy network.")); break; } if (uuid_0.equals(uuid_1)) { joinUserNetwork(uuid_0, uuid_1); sender.addChatMessage( - new ChatComponentText( - "User " + formatted_username_0 + " has rejoined their own global energy network.")); + new ChatComponentText( + "User " + formatted_username_0 + " has rejoined their own global energy network.")); break; } joinUserNetwork(uuid_0, uuid_1); sender.addChatMessage( - new ChatComponentText( - "Success! " + formatted_username_0 + " has joined " + formatted_username_1 + ".")); + new ChatComponentText( + "Success! " + formatted_username_0 + " has joined " + formatted_username_1 + ".")); sender.addChatMessage( - new ChatComponentText( - "To undo this simply join your own network again with /gt global_energy_join " - + formatted_username_0 - + " " - + formatted_username_0 - + ".")); + new ChatComponentText( + "To undo this simply join your own network again with /gt global_energy_join " + + formatted_username_0 + + " " + + formatted_username_0 + + ".")); } case "global_energy_display" -> { @@ -336,23 +332,23 @@ public final class GT_Command extends CommandBase implements IGlobalWirelessEner if (uuid.equals("")) { sender.addChatMessage( - new ChatComponentText("User " + formatted_username + " has no global energy network.")); + new ChatComponentText("User " + formatted_username + " has no global energy network.")); break; } sender.addChatMessage( - new ChatComponentText( - "User " + formatted_username - + " has " - + EnumChatFormatting.RED - + GT_Utility.formatNumbers(getUserEU(uuid)) - + EnumChatFormatting.RESET - + "EU in their network.")); + new ChatComponentText( + "User " + formatted_username + + " has " + + EnumChatFormatting.RED + + GT_Utility.formatNumbers(getUserEU(uuid)) + + EnumChatFormatting.RESET + + "EU in their network.")); } default -> { - sender.addChatMessage( - new ChatComponentText(EnumChatFormatting.RED + "Invalid command/syntax detected.")); + sender + .addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "Invalid command/syntax detected.")); printHelp(sender); } } diff --git a/src/main/java/gregtech/common/misc/GT_DrillingLogicDelegate.java b/src/main/java/gregtech/common/misc/GT_DrillingLogicDelegate.java index 6de4de3c71..9cf7fd7cf8 100644 --- a/src/main/java/gregtech/common/misc/GT_DrillingLogicDelegate.java +++ b/src/main/java/gregtech/common/misc/GT_DrillingLogicDelegate.java @@ -22,8 +22,8 @@ public class GT_DrillingLogicDelegate { public static final ItemStack MINING_PIPE_STACK = GT_ModHandler.getIC2Item("miningPipe", 0); public static final Block MINING_PIPE_BLOCK = GT_Utility.getBlockFromStack(MINING_PIPE_STACK); - public static final Block MINING_PIPE_TIP_BLOCK = GT_Utility.getBlockFromStack( - GT_ModHandler.getIC2Item("miningPipeTip", 0)); + public static final Block MINING_PIPE_TIP_BLOCK = GT_Utility + .getBlockFromStack(GT_ModHandler.getIC2Item("miningPipeTip", 0)); /** The owner machine pointer */ private final GT_IDrillingLogicDelegateOwner owner; @@ -75,7 +75,7 @@ public class GT_DrillingLogicDelegate { // Replace the tip onto pipe if (te.getBlockOffset(0, tipDepth, 0) == MINING_PIPE_TIP_BLOCK) { te.getWorld() - .setBlock(xCoord, yCoord + tipDepth, zCoord, MINING_PIPE_BLOCK); + .setBlock(xCoord, yCoord + tipDepth, zCoord, MINING_PIPE_BLOCK); } // Get and decrease pipe from the machine boolean pipeTaken = owner.pullInputs(MINING_PIPE_STACK.getItem(), 1, false); @@ -93,7 +93,7 @@ public class GT_DrillingLogicDelegate { // Descent the pipe tip te.getWorld() - .setBlock(xCoord, yCoord + tipDepth - 1, zCoord, MINING_PIPE_TIP_BLOCK); + .setBlock(xCoord, yCoord + tipDepth - 1, zCoord, MINING_PIPE_TIP_BLOCK); tipDepth--; return true; } @@ -143,18 +143,12 @@ public class GT_DrillingLogicDelegate { // Move the pipe tip position if (actualDrillY < yCoord - 1) { owner.getBaseMetaTileEntity() - .getWorld() - .setBlock(xCoord, actualDrillY + 1, zCoord, MINING_PIPE_TIP_BLOCK); + .getWorld() + .setBlock(xCoord, actualDrillY + 1, zCoord, MINING_PIPE_TIP_BLOCK); } // Remove the old pipe tip aBaseMetaTileEntity.getWorld() - .setBlock( - xCoord, - actualDrillY, - zCoord, - Blocks.air, - 0, - /* send to client without neighbour updates */ 2); + .setBlock(xCoord, actualDrillY, zCoord, Blocks.air, 0, /* send to client without neighbour updates */ 2); // Return the pipe back to the machine (inputs allowed for this case!) owner.pushOutputs(MINING_PIPE_STACK, 1, false, true); @@ -183,20 +177,20 @@ public class GT_DrillingLogicDelegate { short metaData = 0; TileEntity tTileEntity = owner.getBaseMetaTileEntity() - .getTileEntity(x, y, z); + .getTileEntity(x, y, z); if (tTileEntity instanceof GT_TileEntity_Ores) { metaData = ((GT_TileEntity_Ores) tTileEntity).mMetaData; } ItemStack cobble = GT_Utility.getCobbleForOre(block, metaData); te.getWorld() - .setBlock( - x, - y, - z, - Block.getBlockFromItem(cobble.getItem()), - cobble.getItemDamage(), /* cause updates(1) + send to client(2) */ - 3); + .setBlock( + x, + y, + z, + Block.getBlockFromItem(cobble.getItem()), + cobble.getItemDamage(), /* cause updates(1) + send to client(2) */ + 3); } /** @@ -238,27 +232,21 @@ public class GT_DrillingLogicDelegate { } public boolean canFakePlayerInteract(IGregTechTileEntity te, int xCoord, int yCoord, int zCoord) { - return GT_Utility.setBlockByFakePlayer( - getFakePlayer(te), - xCoord, - yCoord, - zCoord, - MINING_PIPE_TIP_BLOCK, - 0, - true); + return GT_Utility + .setBlockByFakePlayer(getFakePlayer(te), xCoord, yCoord, zCoord, MINING_PIPE_TIP_BLOCK, 0, true); } /** Get target block drops. We need to encapsulate everyting of mining in this class. */ private List getBlockDrops(final Block oreBlock, int posX, int posY, int posZ) { return oreBlock.getDrops( - owner.getBaseMetaTileEntity() - .getWorld(), - posX, - posY, - posZ, - owner.getBaseMetaTileEntity() - .getMetaID(posX, posY, posZ), - owner.getMachineTier()); + owner.getBaseMetaTileEntity() + .getWorld(), + posX, + posY, + posZ, + owner.getBaseMetaTileEntity() + .getMetaID(posX, posY, posZ), + owner.getMachineTier()); } /** Can the owner continue doing its work? If we await new pipes - it cannot. */ diff --git a/src/main/java/gregtech/common/misc/spaceprojects/SpaceProjectManager.java b/src/main/java/gregtech/common/misc/spaceprojects/SpaceProjectManager.java index 1067673399..c34c486223 100644 --- a/src/main/java/gregtech/common/misc/spaceprojects/SpaceProjectManager.java +++ b/src/main/java/gregtech/common/misc/spaceprojects/SpaceProjectManager.java @@ -104,11 +104,11 @@ public class SpaceProjectManager { if (teamMember.equals(teamLeader)) { spaceTeams.put(teamMember, teamLeader); } else if (!spaceTeams.get(teamLeader) - .equals(teamLeader)) { - putInTeam(teamMember, spaceTeams.get(teamLeader)); - } else { - spaceTeams.put(teamMember, teamLeader); - } + .equals(teamLeader)) { + putInTeam(teamMember, spaceTeams.get(teamLeader)); + } else { + spaceTeams.put(teamMember, teamLeader); + } SpaceProjectWorldSavedData.INSTANCE.markDirty(); } @@ -182,14 +182,14 @@ public class SpaceProjectManager { public static void addProject(ISpaceProject project) { spaceProjects.put(project.getProjectName(), project); GT_Recipe.GT_Recipe_Map.sFakeSpaceProjectRecipes.add( - new GT_Recipe.GT_Recipe_Map.GT_FakeSpaceProjectRecipe( - false, - project.getTotalItemsCost(), - project.getTotalFluidsCost(), - project.getProjectBuildTime(), - (int) project.getProjectVoltage(), - project.getTotalStages(), - project.getProjectName())); + new GT_Recipe.GT_Recipe_Map.GT_FakeSpaceProjectRecipe( + false, + project.getTotalItemsCost(), + project.getTotalFluidsCost(), + project.getProjectBuildTime(), + (int) project.getProjectVoltage(), + project.getTotalStages(), + project.getProjectName())); } /** @@ -266,9 +266,9 @@ public class SpaceProjectManager { */ public static UUID getPlayerUUIDFromName(String playerName) { return MinecraftServer.getServer() - .func_152358_ax() - .func_152655_a(playerName) - .getId(); + .func_152358_ax() + .func_152655_a(playerName) + .getId(); } /** @@ -276,9 +276,9 @@ public class SpaceProjectManager { */ public static String getPlayerNameFromUUID(UUID playerUUID) { return MinecraftServer.getServer() - .func_152358_ax() - .func_152652_a(playerUUID) - .getName(); + .func_152358_ax() + .func_152652_a(playerUUID) + .getName(); } // #endregion diff --git a/src/main/java/gregtech/common/misc/spaceprojects/SpaceProjectWorldSavedData.java b/src/main/java/gregtech/common/misc/spaceprojects/SpaceProjectWorldSavedData.java index a70d1b5843..5afa1b5ef1 100644 --- a/src/main/java/gregtech/common/misc/spaceprojects/SpaceProjectWorldSavedData.java +++ b/src/main/java/gregtech/common/misc/spaceprojects/SpaceProjectWorldSavedData.java @@ -51,33 +51,21 @@ public class SpaceProjectWorldSavedData extends WorldSavedData { public static SpaceProjectWorldSavedData INSTANCE; private static final Gson GSON_SPACE_PROJECT = new GsonBuilder().serializeNulls() - .enableComplexMapKeySerialization() - .registerTypeAdapter( - spaceTeamProjects.getClass(), - new SpaceTeamProjectsMapAdapter()) - .registerTypeAdapter( - Map.class, - new SpaceTeamProjectsMapAdapter()) - .registerTypeAdapter( - Pair.of((ISpaceBody) SolarSystem.Ariel, "") - .getClass(), - new PairAdapter()) - .registerTypeAdapter(Pair.class, new PairAdapter()) - .registerTypeAdapter( - ISpaceProject.class, - new SpaceProjectAdapter()) - .registerTypeAdapter( - ISP_Upgrade.class, - new SP_UpgradeAdapter()) - .registerTypeHierarchyAdapter( - ISpaceProject.class, - new SpaceProjectAdapter()) - .registerTypeHierarchyAdapter( - ISP_Upgrade.class, - new SP_UpgradeAdapter()) - .create(); + .enableComplexMapKeySerialization() + .registerTypeAdapter(spaceTeamProjects.getClass(), new SpaceTeamProjectsMapAdapter()) + .registerTypeAdapter(Map.class, new SpaceTeamProjectsMapAdapter()) + .registerTypeAdapter( + Pair.of((ISpaceBody) SolarSystem.Ariel, "") + .getClass(), + new PairAdapter()) + .registerTypeAdapter(Pair.class, new PairAdapter()) + .registerTypeAdapter(ISpaceProject.class, new SpaceProjectAdapter()) + .registerTypeAdapter(ISP_Upgrade.class, new SP_UpgradeAdapter()) + .registerTypeHierarchyAdapter(ISpaceProject.class, new SpaceProjectAdapter()) + .registerTypeHierarchyAdapter(ISP_Upgrade.class, new SP_UpgradeAdapter()) + .create(); private static final Gson GSON_TEAMS = new GsonBuilder().serializeNulls() - .create(); + .create(); private static final String DATA_NAME = "GT_SpaceProjectData"; @@ -146,13 +134,13 @@ public class SpaceProjectWorldSavedData extends WorldSavedData { spaceTeams = new HashMap<>(); } spaceTeamsFile = new File( - aWorld.getSaveHandler() - .getWorldDirectory(), - SPACE_TEAMS_JSON); + aWorld.getSaveHandler() + .getWorldDirectory(), + SPACE_TEAMS_JSON); teamProjectsFile = new File( - aWorld.getSaveHandler() - .getWorldDirectory(), - SPACE_TEAM_PROJECTS_JSON); + aWorld.getSaveHandler() + .getWorldDirectory(), + SPACE_TEAM_PROJECTS_JSON); MapStorage tStorage = aWorld.mapStorage; INSTANCE = (SpaceProjectWorldSavedData) tStorage.loadData(SpaceProjectWorldSavedData.class, DATA_NAME); if (INSTANCE == null) { @@ -170,31 +158,31 @@ public class SpaceProjectWorldSavedData extends WorldSavedData { } private static class PairAdapter - implements JsonSerializer>, JsonDeserializer> { + implements JsonSerializer>, JsonDeserializer> { @Override public JsonElement serialize(Pair src, Type typeOfSrc, JsonSerializationContext context) { JsonObject pair = new JsonObject(); pair.addProperty( - PAIR_LEFT, - src.getLeft() - .getName()); + PAIR_LEFT, + src.getLeft() + .getName()); pair.addProperty(PAIR_RIGHT, src.getRight()); return pair; } @Override public Pair deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) - throws JsonParseException { + throws JsonParseException { Pair pair = null; if (json.isJsonObject()) { JsonObject obj = json.getAsJsonObject(); pair = Pair.of( - SpaceProjectManager.getLocation( - obj.get(PAIR_LEFT) - .getAsString()), - obj.get(PAIR_RIGHT) - .getAsString()); + SpaceProjectManager.getLocation( + obj.get(PAIR_LEFT) + .getAsString()), + obj.get(PAIR_RIGHT) + .getAsString()); } return pair; } @@ -208,9 +196,9 @@ public class SpaceProjectWorldSavedData extends WorldSavedData { obj.addProperty(PROJECT_NAME, src.getProjectName()); obj.addProperty(PROJECT_CURRENT_STAGE, src.getCurrentStage()); obj.addProperty( - PROJECT_LOCATION, - src.getProjectLocation() - .getName()); + PROJECT_LOCATION, + src.getProjectLocation() + .getName()); obj.add(PROJECT_CURRENT_UPGRADE, context.serialize(src.getUpgradeBeingBuilt())); obj.add(PROJECT_UPGRADES_BUILT, context.serialize(src.getAllBuiltUpgrades())); return obj; @@ -218,26 +206,24 @@ public class SpaceProjectWorldSavedData extends WorldSavedData { @Override public ISpaceProject deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) - throws JsonParseException { + throws JsonParseException { if (!json.isJsonObject()) { return null; } JsonObject obj = json.getAsJsonObject(); String projectName = obj.get(PROJECT_NAME) - .getAsString(); + .getAsString(); ISpaceProject project = SpaceProjectManager.getProject(projectName); int projectCurrentStage = obj.get(PROJECT_CURRENT_STAGE) - .getAsInt(); + .getAsInt(); ISP_Upgrade[] projectUpgradesBuilt = new ISP_Upgrade[0]; - projectUpgradesBuilt = context.deserialize( - obj.get(PROJECT_UPGRADES_BUILT), - projectUpgradesBuilt.getClass()); - ISP_Upgrade projectCurrentUpgrade = context.deserialize( - obj.get(PROJECT_CURRENT_UPGRADE), - ISP_Upgrade.class); + projectUpgradesBuilt = context + .deserialize(obj.get(PROJECT_UPGRADES_BUILT), projectUpgradesBuilt.getClass()); + ISP_Upgrade projectCurrentUpgrade = context + .deserialize(obj.get(PROJECT_CURRENT_UPGRADE), ISP_Upgrade.class); ISpaceBody projectLocation = SpaceProjectManager.getLocation( - obj.get(PROJECT_LOCATION) - .getAsString()); + obj.get(PROJECT_LOCATION) + .getAsString()); project.setBuiltUpgrade(projectUpgradesBuilt); project.setProjectLocation(projectLocation); project.setProjectCurrentStage(projectCurrentStage); @@ -253,51 +239,51 @@ public class SpaceProjectWorldSavedData extends WorldSavedData { JsonObject obj = new JsonObject(); obj.addProperty(UPGRADE_NAME, src.getUpgradeName()); obj.addProperty( - UPGRADE_PROJECT_PARENT, - src.getParentProject() - .getProjectName()); + UPGRADE_PROJECT_PARENT, + src.getParentProject() + .getProjectName()); obj.addProperty(UPGRADE_CURRENT_STAGE, src.getCurrentStage()); return obj; } @Override public ISP_Upgrade deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) - throws JsonParseException { + throws JsonParseException { if (!json.isJsonObject()) { return null; } JsonObject obj = json.getAsJsonObject(); String projectName = obj.get(UPGRADE_PROJECT_PARENT) - .getAsString(); + .getAsString(); ISpaceProject project = SpaceProjectManager.getProject(projectName); ISP_Upgrade upgrade = project.getUpgrade( - obj.get(UPGRADE_NAME) - .getAsString()); + obj.get(UPGRADE_NAME) + .getAsString()); if (upgrade == null) { return null; } upgrade = upgrade.copy(); upgrade.setUpgradeCurrentStage( - obj.get(UPGRADE_CURRENT_STAGE) - .getAsInt()); + obj.get(UPGRADE_CURRENT_STAGE) + .getAsInt()); return upgrade; } } private static class SpaceTeamProjectsMapAdapter - implements JsonSerializer, ISpaceProject>>>, - JsonDeserializer, ISpaceProject>>> { + implements JsonSerializer, ISpaceProject>>>, + JsonDeserializer, ISpaceProject>>> { @Override public JsonElement serialize(Map, ISpaceProject>> src, Type typeOfSrc, - JsonSerializationContext context) { + JsonSerializationContext context) { JsonArray map = new JsonArray(); for (Entry, ISpaceProject>> firstEntry : src.entrySet()) { JsonObject teamMap = new JsonObject(); teamMap.add(MAP_UUID, context.serialize(firstEntry.getKey())); JsonArray teamProjectMap = new JsonArray(); for (Entry, ISpaceProject> secondEntry : firstEntry.getValue() - .entrySet()) { + .entrySet()) { JsonObject projectMap = new JsonObject(); projectMap.add(MAP_PAIR, context.serialize(secondEntry.getKey())); projectMap.add(MAP_PROJECT, context.serialize(secondEntry.getValue())); @@ -311,7 +297,7 @@ public class SpaceProjectWorldSavedData extends WorldSavedData { @Override public Map, ISpaceProject>> deserialize(JsonElement json, Type typeOfT, - JsonDeserializationContext context) throws JsonParseException { + JsonDeserializationContext context) throws JsonParseException { JsonArray mapArray = json.getAsJsonArray(); Map, ISpaceProject>> map = new HashMap<>(); for (JsonElement teamMapElement : mapArray) { @@ -319,7 +305,7 @@ public class SpaceProjectWorldSavedData extends WorldSavedData { UUID uuid = context.deserialize(teamMap.get(MAP_UUID), UUID.class); Map, ISpaceProject> projectMap = new HashMap<>(); for (JsonElement teamProjectMapElement : teamMap.get(MAP_MAP) - .getAsJsonArray()) { + .getAsJsonArray()) { JsonObject teamProjectMap = teamProjectMapElement.getAsJsonObject(); Pair pair = context.deserialize(teamProjectMap.get(MAP_PAIR), Pair.class); ISpaceProject project = context.deserialize(teamProjectMap.get(MAP_PROJECT), ISpaceProject.class); diff --git a/src/main/java/gregtech/common/misc/spaceprojects/base/SP_Upgrade.java b/src/main/java/gregtech/common/misc/spaceprojects/base/SP_Upgrade.java index a4b8d5aa5b..9fc3bd955b 100644 --- a/src/main/java/gregtech/common/misc/spaceprojects/base/SP_Upgrade.java +++ b/src/main/java/gregtech/common/misc/spaceprojects/base/SP_Upgrade.java @@ -295,20 +295,20 @@ public class SP_Upgrade implements ISP_Upgrade { } if (requirements.getBodyType() != null && !requirements.getBodyType() - .equals(SpaceBodyType.NONE)) { + .equals(SpaceBodyType.NONE)) { if (!requirements.getBodyType() - .equals( - projectBelongingTo.getProjectLocation() - .getType())) { + .equals( + projectBelongingTo.getProjectLocation() + .getType())) { return false; } } if (requirements.getStarType() != null) { if (!requirements.getStarType() - .equals( - projectBelongingTo.getProjectLocation() - .getStarType())) { + .equals( + projectBelongingTo.getProjectLocation() + .getStarType())) { return false; } } @@ -335,13 +335,13 @@ public class SP_Upgrade implements ISP_Upgrade { @Override public SP_Upgrade copy() { SP_Upgrade copy = new SP_Upgrade().setUpgradeName(name) - .setUpgradeUnlocalizedName(unlocalizedName) - .setUpgradeBuildTime(buildTime) - .setUpgradeFluidsCost(fluidsCost) - .setUpgradeItemsCost(itemsCost) - .setUpgradeRequirements(requirements) - .setUpgradeTotalStages(totalStages) - .setUpgradeVoltage(voltage); + .setUpgradeUnlocalizedName(unlocalizedName) + .setUpgradeBuildTime(buildTime) + .setUpgradeFluidsCost(fluidsCost) + .setUpgradeItemsCost(itemsCost) + .setUpgradeRequirements(requirements) + .setUpgradeTotalStages(totalStages) + .setUpgradeVoltage(voltage); return copy; } diff --git a/src/main/java/gregtech/common/misc/spaceprojects/base/SpaceProject.java b/src/main/java/gregtech/common/misc/spaceprojects/base/SpaceProject.java index dfbcf96dc6..201b7c27a9 100644 --- a/src/main/java/gregtech/common/misc/spaceprojects/base/SpaceProject.java +++ b/src/main/java/gregtech/common/misc/spaceprojects/base/SpaceProject.java @@ -369,14 +369,14 @@ public class SpaceProject implements ISpaceProject { @Override public ISpaceProject copy() { SpaceProject copy = new SpaceProject().setProjectName(name) - .setProjectUnlocalizedName(unlocalizedName) - .setProjectVoltage(voltage) - .setProjectBuildTime(buildTime) - .setProjectItemsCost(itemsCost) - .setProjectFluidsCost(fluidsCost) - .setProjectStages(totalStage) - .setProjectTexture(texture) - .setProjectRequirements(requirements); + .setProjectUnlocalizedName(unlocalizedName) + .setProjectVoltage(voltage) + .setProjectBuildTime(buildTime) + .setProjectItemsCost(itemsCost) + .setProjectFluidsCost(fluidsCost) + .setProjectStages(totalStage) + .setProjectTexture(texture) + .setProjectRequirements(requirements); if (upgradesAvailable != null) { ISP_Upgrade[] upgrades = new SP_Upgrade[upgradesAvailable.size()]; int index = 0; @@ -406,14 +406,14 @@ public class SpaceProject implements ISpaceProject { if (requirements.getBodyType() != null && checkLocation) { if (!requirements.getBodyType() - .equals(location.getType())) { + .equals(location.getType())) { return false; } } if (requirements.getStarType() != null && checkLocation) { if (!requirements.getStarType() - .equals(location.getStarType())) { + .equals(location.getStarType())) { return false; } } diff --git a/src/main/java/gregtech/common/misc/spaceprojects/commands/SPM_Command.java b/src/main/java/gregtech/common/misc/spaceprojects/commands/SPM_Command.java index f3c93c25b6..bb08ad47fb 100644 --- a/src/main/java/gregtech/common/misc/spaceprojects/commands/SPM_Command.java +++ b/src/main/java/gregtech/common/misc/spaceprojects/commands/SPM_Command.java @@ -56,7 +56,7 @@ public class SPM_Command extends CommandBase { case RESET: if (!sender.canCommandSenderUseCommand(4, getCommandName())) { sender.addChatMessage( - new ChatComponentText("You don't have the permissions to execute this command")); + new ChatComponentText("You don't have the permissions to execute this command")); return; } processReset(sender, arguments.length >= 2 ? arguments[1] : sender.getCommandSenderName()); @@ -64,41 +64,41 @@ public class SPM_Command extends CommandBase { case UNLOCK: if (!sender.canCommandSenderUseCommand(4, getCommandName())) { sender.addChatMessage( - new ChatComponentText("You don't have the permissions to execute this command")); + new ChatComponentText("You don't have the permissions to execute this command")); return; } if (arguments.length < 3) { sender.addChatMessage( - new ChatComponentText("Not enough arguments. Needs to mention a project and a location")); + new ChatComponentText("Not enough arguments. Needs to mention a project and a location")); return; } processUnlock( - sender, - arguments[1], - arguments[2], - arguments.length >= 4 ? arguments[3] : sender.getCommandSenderName()); + sender, + arguments[1], + arguments[2], + arguments.length >= 4 ? arguments[3] : sender.getCommandSenderName()); break; case LOCK: if (!sender.canCommandSenderUseCommand(4, getCommandName())) { sender.addChatMessage( - new ChatComponentText("You don't have the permissions to execute this command")); + new ChatComponentText("You don't have the permissions to execute this command")); return; } if (arguments.length < 3) { sender.addChatMessage( - new ChatComponentText("Not enough arguments. Needs to mention a project and a location")); + new ChatComponentText("Not enough arguments. Needs to mention a project and a location")); return; } processLock( - sender, - arguments[1], - arguments[2], - arguments.length >= 4 ? arguments[3] : sender.getCommandSenderName()); + sender, + arguments[1], + arguments[2], + arguments.length >= 4 ? arguments[3] : sender.getCommandSenderName()); case LIST: if (arguments.length < 2) { sender.addChatMessage( - new ChatComponentText( - "No Argument for list subCommand. Usage /spm list -all, -available or -unlocked")); + new ChatComponentText( + "No Argument for list subCommand. Usage /spm list -all, -available or -unlocked")); return; } processList(sender, arguments[1], arguments.length >= 3 ? arguments[2] : sender.getCommandSenderName()); @@ -106,7 +106,7 @@ public class SPM_Command extends CommandBase { case COPY: if (!sender.canCommandSenderUseCommand(4, getCommandName())) { sender.addChatMessage( - new ChatComponentText("You don't have the permissions to execute this command")); + new ChatComponentText("You don't have the permissions to execute this command")); return; } if (arguments.length < 3) { @@ -149,24 +149,24 @@ public class SPM_Command extends CommandBase { } String finalFilter = filter; return autoComplete.stream() - .filter(s -> finalFilter.isEmpty() || s.startsWith(finalFilter)) - .collect(Collectors.toList()); + .filter(s -> finalFilter.isEmpty() || s.startsWith(finalFilter)) + .collect(Collectors.toList()); } private String[] getPlayers() { return MinecraftServer.getServer() - .getAllUsernames(); + .getAllUsernames(); } private String[] getLocations() { return SpaceProjectManager.getLocationNames() - .toArray(new String[0]); + .toArray(new String[0]); } private String[] getProjects() { return SpaceProjectManager.getProjectsMap() - .keySet() - .toArray(new String[0]); + .keySet() + .toArray(new String[0]); } private String[] getSubCommands() { @@ -206,7 +206,7 @@ public class SPM_Command extends CommandBase { switch (argument) { case ALL -> { for (String project : SpaceProjectManager.getProjectsMap() - .keySet()) { + .keySet()) { sender.addChatMessage(new ChatComponentText(project)); } } diff --git a/src/main/java/gregtech/common/misc/spaceprojects/commands/SP_Command.java b/src/main/java/gregtech/common/misc/spaceprojects/commands/SP_Command.java index 29ae7e9432..84c5626e69 100644 --- a/src/main/java/gregtech/common/misc/spaceprojects/commands/SP_Command.java +++ b/src/main/java/gregtech/common/misc/spaceprojects/commands/SP_Command.java @@ -70,11 +70,11 @@ public class SP_Command extends CommandBase { EntityPlayerMP teamMember = getPlayer(sender, playerInvited); invite.add(Pair.of(teamMember, teamLeader)); String message = EnumChatFormatting.GOLD + teamLeader.getCommandSenderName() - + EnumChatFormatting.RESET - + " has sent you an invite to join their team. Accept it with" - + EnumChatFormatting.GOLD - + " /sp accept " - + teamLeader.getCommandSenderName(); + + EnumChatFormatting.RESET + + " has sent you an invite to join their team. Accept it with" + + EnumChatFormatting.GOLD + + " /sp accept " + + teamLeader.getCommandSenderName(); GT_Utility.sendChatToPlayer(teamMember, message); } @@ -83,8 +83,8 @@ public class SP_Command extends CommandBase { EntityPlayerMP teamLeader = getPlayer(sender, playerInviter); if (invite.contains(Pair.of(teamMember, teamLeader))) { String message = EnumChatFormatting.GOLD + teamMember.getCommandSenderName() - + EnumChatFormatting.RESET - + " has accepted the invite."; + + EnumChatFormatting.RESET + + " has accepted the invite."; SpaceProjectManager.putInTeam(teamMember.getUniqueID(), teamLeader.getUniqueID()); GT_Utility.sendChatToPlayer(teamLeader, message); invite.remove(Pair.of(teamMember, teamLeader)); @@ -94,10 +94,10 @@ public class SP_Command extends CommandBase { private void processLeave(ICommandSender sender) { EntityPlayerMP player = getCommandSenderAsPlayer(sender); String message = "Are you sure you want to leave the team. You will lose all progress. Use " - + EnumChatFormatting.GOLD - + "/sp confirm" - + EnumChatFormatting.RESET - + " to confirm this. This does nothing if you are the team leader."; + + EnumChatFormatting.GOLD + + "/sp confirm" + + EnumChatFormatting.RESET + + " to confirm this. This does nothing if you are the team leader."; GT_Utility.sendChatToPlayer(player, message); confirm.add(player); } diff --git a/src/main/java/gregtech/common/power/FusionPower.java b/src/main/java/gregtech/common/power/FusionPower.java index c253d51be0..d3b7fe5e0f 100644 --- a/src/main/java/gregtech/common/power/FusionPower.java +++ b/src/main/java/gregtech/common/power/FusionPower.java @@ -21,7 +21,7 @@ public class FusionPower extends BasicMachineEUPower { // It's safe to assume fusion is above ULV. We put this as safety check here anyway if (tier > 0) { int maxPossibleOverclocks = FusionSpecialValueFormatter.getFusionTier(this.specialValue, V[tier - 1]) - - FusionSpecialValueFormatter.getFusionTier(specialValue, euPerTick); + - FusionSpecialValueFormatter.getFusionTier(specialValue, euPerTick); // Isn't too low EUt check? long tempEUt = Math.max(euPerTick, V[1]); @@ -46,7 +46,7 @@ public class FusionPower extends BasicMachineEUPower { @Override public String getTierString() { return GT_Values.TIER_COLORS[tier] + "MK " - + FusionSpecialValueFormatter.getFusionTier(specialValue, recipeEuPerTick) - + EnumChatFormatting.RESET; + + FusionSpecialValueFormatter.getFusionTier(specialValue, recipeEuPerTick) + + EnumChatFormatting.RESET; } } diff --git a/src/main/java/gregtech/common/redstonecircuits/GT_Circuit_BasicLogic.java b/src/main/java/gregtech/common/redstonecircuits/GT_Circuit_BasicLogic.java index 3e179aee11..34093a95de 100644 --- a/src/main/java/gregtech/common/redstonecircuits/GT_Circuit_BasicLogic.java +++ b/src/main/java/gregtech/common/redstonecircuits/GT_Circuit_BasicLogic.java @@ -28,39 +28,39 @@ public class GT_Circuit_BasicLogic extends GT_CircuitryBehavior { public void onTick(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock) { if (aCircuitData[0] < 2) { aRedstoneCircuitBlock.setRedstone( - (byte) (aCircuitData[0] % 2 == (getAnyRedstone(aRedstoneCircuitBlock) ? 0 : 1) ? 15 : 0), - aRedstoneCircuitBlock.getOutputFacing()); + (byte) (aCircuitData[0] % 2 == (getAnyRedstone(aRedstoneCircuitBlock) ? 0 : 1) ? 15 : 0), + aRedstoneCircuitBlock.getOutputFacing()); } else if (aCircuitData[0] < 4) { aRedstoneCircuitBlock.setRedstone( - (byte) (aCircuitData[0] % 2 == (getOneRedstone(aRedstoneCircuitBlock) ? 0 : 1) ? 15 : 0), - aRedstoneCircuitBlock.getOutputFacing()); + (byte) (aCircuitData[0] % 2 == (getOneRedstone(aRedstoneCircuitBlock) ? 0 : 1) ? 15 : 0), + aRedstoneCircuitBlock.getOutputFacing()); } else if (aCircuitData[0] < 6) { aRedstoneCircuitBlock.setRedstone( - (byte) (aCircuitData[0] % 2 == (getAllRedstone(aRedstoneCircuitBlock) ? 0 : 1) ? 15 : 0), - aRedstoneCircuitBlock.getOutputFacing()); + (byte) (aCircuitData[0] % 2 == (getAllRedstone(aRedstoneCircuitBlock) ? 0 : 1) ? 15 : 0), + aRedstoneCircuitBlock.getOutputFacing()); } else if (aCircuitData[0] < 7) { aRedstoneCircuitBlock.setRedstone( - (byte) (15 - getStrongestRedstone(aRedstoneCircuitBlock)), - aRedstoneCircuitBlock.getOutputFacing()); + (byte) (15 - getStrongestRedstone(aRedstoneCircuitBlock)), + aRedstoneCircuitBlock.getOutputFacing()); } else if (aCircuitData[0] < 9) { aRedstoneCircuitBlock.setRedstone( - (byte) ((aCircuitData[0] % 2 == 0 ? 15 : 0) ^ (getStrongestRedstone(aRedstoneCircuitBlock) - | getWeakestRedstone(aRedstoneCircuitBlock))), - aRedstoneCircuitBlock.getOutputFacing()); + (byte) ((aCircuitData[0] % 2 == 0 ? 15 : 0) + ^ (getStrongestRedstone(aRedstoneCircuitBlock) | getWeakestRedstone(aRedstoneCircuitBlock))), + aRedstoneCircuitBlock.getOutputFacing()); } else if (aCircuitData[0] < 11) { aRedstoneCircuitBlock.setRedstone( - (byte) ((aCircuitData[0] % 2 == 0 ? 15 : 0) ^ getStrongestRedstone(aRedstoneCircuitBlock) - ^ getWeakestRedstone(aRedstoneCircuitBlock)), - aRedstoneCircuitBlock.getOutputFacing()); + (byte) ((aCircuitData[0] % 2 == 0 ? 15 : 0) ^ getStrongestRedstone(aRedstoneCircuitBlock) + ^ getWeakestRedstone(aRedstoneCircuitBlock)), + aRedstoneCircuitBlock.getOutputFacing()); } else if (aCircuitData[0] < 13) { aRedstoneCircuitBlock.setRedstone( - (byte) ((aCircuitData[0] % 2 == 0 ? 15 : 0) - ^ getStrongestRedstone(aRedstoneCircuitBlock) & getWeakestRedstone(aRedstoneCircuitBlock)), - aRedstoneCircuitBlock.getOutputFacing()); + (byte) ((aCircuitData[0] % 2 == 0 ? 15 : 0) + ^ getStrongestRedstone(aRedstoneCircuitBlock) & getWeakestRedstone(aRedstoneCircuitBlock)), + aRedstoneCircuitBlock.getOutputFacing()); } else if (aCircuitData[0] < 14) { aRedstoneCircuitBlock.setRedstone( - (byte) (getStrongestRedstone(aRedstoneCircuitBlock) ^ 0xF), - aRedstoneCircuitBlock.getOutputFacing()); + (byte) (getStrongestRedstone(aRedstoneCircuitBlock) ^ 0xF), + aRedstoneCircuitBlock.getOutputFacing()); } } diff --git a/src/main/java/gregtech/common/redstonecircuits/GT_Circuit_BitAnd.java b/src/main/java/gregtech/common/redstonecircuits/GT_Circuit_BitAnd.java index f5d2fca824..f5f83a7e10 100644 --- a/src/main/java/gregtech/common/redstonecircuits/GT_Circuit_BitAnd.java +++ b/src/main/java/gregtech/common/redstonecircuits/GT_Circuit_BitAnd.java @@ -48,11 +48,10 @@ public class GT_Circuit_BitAnd extends GT_CircuitryBehavior { @Override public void onTick(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock) { aRedstoneCircuitBlock.setRedstone( - (byte) ((getStrongestRedstone(aRedstoneCircuitBlock) - & (aCircuitData[0] | aCircuitData[1] << 1 | aCircuitData[2] << 2 | aCircuitData[3] << 3)) != 0 - ? 15 - : 0), - aRedstoneCircuitBlock.getOutputFacing()); + (byte) ((getStrongestRedstone(aRedstoneCircuitBlock) + & (aCircuitData[0] | aCircuitData[1] << 1 | aCircuitData[2] << 2 | aCircuitData[3] << 3)) != 0 ? 15 + : 0), + aRedstoneCircuitBlock.getOutputFacing()); } @Override diff --git a/src/main/java/gregtech/common/redstonecircuits/GT_Circuit_Equals.java b/src/main/java/gregtech/common/redstonecircuits/GT_Circuit_Equals.java index 5e230d3363..9e9af183e8 100644 --- a/src/main/java/gregtech/common/redstonecircuits/GT_Circuit_Equals.java +++ b/src/main/java/gregtech/common/redstonecircuits/GT_Circuit_Equals.java @@ -34,10 +34,9 @@ public class GT_Circuit_Equals extends GT_CircuitryBehavior { @Override public void onTick(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock) { aRedstoneCircuitBlock.setRedstone( - ((byte) (((aCircuitData[1] != 0) == (getStrongestRedstone(aRedstoneCircuitBlock) == aCircuitData[0])) - ? 0 - : 15)), - aRedstoneCircuitBlock.getOutputFacing()); + ((byte) (((aCircuitData[1] != 0) == (getStrongestRedstone(aRedstoneCircuitBlock) == aCircuitData[0])) ? 0 + : 15)), + aRedstoneCircuitBlock.getOutputFacing()); } @Override diff --git a/src/main/java/gregtech/common/redstonecircuits/GT_Circuit_Pulser.java b/src/main/java/gregtech/common/redstonecircuits/GT_Circuit_Pulser.java index 672fddf7fb..8663758535 100644 --- a/src/main/java/gregtech/common/redstonecircuits/GT_Circuit_Pulser.java +++ b/src/main/java/gregtech/common/redstonecircuits/GT_Circuit_Pulser.java @@ -35,7 +35,7 @@ public class GT_Circuit_Pulser extends GT_CircuitryBehavior { @Override public void onTick(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock) { byte tRedstone = aCircuitData[1] == 0 ? getWeakestNonZeroRedstone(aRedstoneCircuitBlock) - : getStrongestRedstone(aRedstoneCircuitBlock); + : getStrongestRedstone(aRedstoneCircuitBlock); if (aCircuitData[4] == 0) { aCircuitData[5] = tRedstone; } @@ -49,9 +49,9 @@ public class GT_Circuit_Pulser extends GT_CircuitryBehavior { } } aRedstoneCircuitBlock.setRedstone( - (aCircuitData[4] > 0) && (aCircuitData[4] <= aCircuitData[0]) ? (byte) aCircuitData[1] - : (aCircuitData[1] <= 0) || (aCircuitData[1] > 15) ? (byte) aCircuitData[5] : 0, - aRedstoneCircuitBlock.getOutputFacing()); + (aCircuitData[4] > 0) && (aCircuitData[4] <= aCircuitData[0]) ? (byte) aCircuitData[1] + : (aCircuitData[1] <= 0) || (aCircuitData[1] > 15) ? (byte) aCircuitData[5] : 0, + aRedstoneCircuitBlock.getOutputFacing()); } @Override diff --git a/src/main/java/gregtech/common/redstonecircuits/GT_Circuit_Randomizer.java b/src/main/java/gregtech/common/redstonecircuits/GT_Circuit_Randomizer.java index 6557f0277c..336bf9928d 100644 --- a/src/main/java/gregtech/common/redstonecircuits/GT_Circuit_Randomizer.java +++ b/src/main/java/gregtech/common/redstonecircuits/GT_Circuit_Randomizer.java @@ -46,9 +46,8 @@ public class GT_Circuit_Randomizer extends GT_CircuitryBehavior { } if (aCircuitData[4] >= aCircuitData[0]) { aCircuitData[4] = 0; - aRedstoneCircuitBlock.setRedstone( - (byte) aRedstoneCircuitBlock.getRandom(16), - aRedstoneCircuitBlock.getOutputFacing()); + aRedstoneCircuitBlock + .setRedstone((byte) aRedstoneCircuitBlock.getRandom(16), aRedstoneCircuitBlock.getOutputFacing()); } } diff --git a/src/main/java/gregtech/common/redstonecircuits/GT_Circuit_RedstoneMeter.java b/src/main/java/gregtech/common/redstonecircuits/GT_Circuit_RedstoneMeter.java index 491fe72c87..4db261fcf0 100644 --- a/src/main/java/gregtech/common/redstonecircuits/GT_Circuit_RedstoneMeter.java +++ b/src/main/java/gregtech/common/redstonecircuits/GT_Circuit_RedstoneMeter.java @@ -51,9 +51,10 @@ public class GT_Circuit_RedstoneMeter extends GT_CircuitryBehavior { @Override public void onTick(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock) { byte tRedstone = getStrongestRedstone(aRedstoneCircuitBlock); - aRedstoneCircuitBlock.setRedstone( + aRedstoneCircuitBlock + .setRedstone( ((tRedstone >= aCircuitData[0]) && (tRedstone <= aCircuitData[1]) ? 1 : 0) - != (aCircuitData[2] != 0 ? 1 : 0) ? (byte) aCircuitData[3] : 0, + != (aCircuitData[2] != 0 ? 1 : 0) ? (byte) aCircuitData[3] : 0, aRedstoneCircuitBlock.getOutputFacing()); } diff --git a/src/main/java/gregtech/common/redstonecircuits/GT_Circuit_Timer.java b/src/main/java/gregtech/common/redstonecircuits/GT_Circuit_Timer.java index b7ff2096c6..026c83dfbc 100644 --- a/src/main/java/gregtech/common/redstonecircuits/GT_Circuit_Timer.java +++ b/src/main/java/gregtech/common/redstonecircuits/GT_Circuit_Timer.java @@ -59,8 +59,8 @@ public class GT_Circuit_Timer extends GT_CircuitryBehavior { aCircuitData[4] = 0; } else { aRedstoneCircuitBlock.setRedstone( - (byte) ((aCircuitData[4] - aCircuitData[0]) % aCircuitData[2] == 0 ? 15 : 0), - aRedstoneCircuitBlock.getOutputFacing()); + (byte) ((aCircuitData[4] - aCircuitData[0]) % aCircuitData[2] == 0 ? 15 : 0), + aRedstoneCircuitBlock.getOutputFacing()); } } else { aRedstoneCircuitBlock.setRedstone((byte) 15, aRedstoneCircuitBlock.getOutputFacing()); diff --git a/src/main/java/gregtech/common/render/GT_CapeRenderer.java b/src/main/java/gregtech/common/render/GT_CapeRenderer.java index 6254a9df79..ec9ef2880c 100644 --- a/src/main/java/gregtech/common/render/GT_CapeRenderer.java +++ b/src/main/java/gregtech/common/render/GT_CapeRenderer.java @@ -20,14 +20,13 @@ import gregtech.api.util.GT_Utility; public class GT_CapeRenderer extends RenderPlayer { private final ResourceLocation[] mCapes = { new ResourceLocation("gregtech:textures/BrainTechCape.png"), - new ResourceLocation("gregtech:textures/GregTechCape.png"), - new ResourceLocation("gregtech:textures/MrBrainCape.png"), - new ResourceLocation("gregtech:textures/GregoriusCape.png"), - new ResourceLocation("gregtech:textures/DonorCape.png"), - new ResourceLocation("gregtech:textures/DevCape.png"), new ResourceLocation("gregtech:textures/Steam.png"), - new ResourceLocation("gregtech:textures/Titanium.png"), - new ResourceLocation("gregtech:textures/Neutronium.png"), - new ResourceLocation("gregtech:textures/Stargate.png") }; + new ResourceLocation("gregtech:textures/GregTechCape.png"), + new ResourceLocation("gregtech:textures/MrBrainCape.png"), + new ResourceLocation("gregtech:textures/GregoriusCape.png"), + new ResourceLocation("gregtech:textures/DonorCape.png"), new ResourceLocation("gregtech:textures/DevCape.png"), + new ResourceLocation("gregtech:textures/Steam.png"), new ResourceLocation("gregtech:textures/Titanium.png"), + new ResourceLocation("gregtech:textures/Neutronium.png"), + new ResourceLocation("gregtech:textures/Stargate.png") }; private final Collection mCapeList; public GT_CapeRenderer(Collection aCapeList) { @@ -51,50 +50,50 @@ public class GT_CapeRenderer extends RenderPlayer { try { ResourceLocation tResource = aPlayer.getLocationCape(); if (aPlayer.getDisplayName() - .equalsIgnoreCase("Friedi4321")) { + .equalsIgnoreCase("Friedi4321")) { tResource = this.mCapes[0]; } if (this.mCapeList.contains( - aPlayer.getDisplayName() - .toLowerCase())) { + aPlayer.getDisplayName() + .toLowerCase())) { tResource = this.mCapes[1]; } if (aPlayer.getDisplayName() - .equalsIgnoreCase("Mr_Brain")) { + .equalsIgnoreCase("Mr_Brain")) { tResource = this.mCapes[2]; } if (aPlayer.getDisplayName() - .equalsIgnoreCase("GregoriusT")) { + .equalsIgnoreCase("GregoriusT")) { tResource = this.mCapes[3]; } if (this.mCapeList.contains( - aPlayer.getDisplayName() - .toLowerCase() + ":capedonor")) { + aPlayer.getDisplayName() + .toLowerCase() + ":capedonor")) { tResource = this.mCapes[4]; } if (this.mCapeList.contains( - aPlayer.getDisplayName() - .toLowerCase() + ":capedev")) { + aPlayer.getDisplayName() + .toLowerCase() + ":capedev")) { tResource = this.mCapes[5]; } if (this.mCapeList.contains( - aPlayer.getDisplayName() - .toLowerCase() + ":cape_steam")) { + aPlayer.getDisplayName() + .toLowerCase() + ":cape_steam")) { tResource = this.mCapes[6]; } if (this.mCapeList.contains( - aPlayer.getDisplayName() - .toLowerCase() + ":cape_titanium")) { + aPlayer.getDisplayName() + .toLowerCase() + ":cape_titanium")) { tResource = this.mCapes[7]; } if (this.mCapeList.contains( - aPlayer.getDisplayName() - .toLowerCase() + ":cape_neutronium")) { + aPlayer.getDisplayName() + .toLowerCase() + ":cape_neutronium")) { tResource = this.mCapes[8]; } if (this.mCapeList.contains( - aPlayer.getDisplayName() - .toLowerCase() + ":cape_stargate")) { + aPlayer.getDisplayName() + .toLowerCase() + ":cape_stargate")) { tResource = this.mCapes[9]; } @@ -103,13 +102,13 @@ public class GT_CapeRenderer extends RenderPlayer { GL11.glPushMatrix(); GL11.glTranslatef(0.0F, 0.0F, 0.125F); double d0 = aPlayer.field_71091_bM + (aPlayer.field_71094_bP - aPlayer.field_71091_bM) * aPartialTicks - - (aPlayer.prevPosX + (aPlayer.posX - aPlayer.prevPosX) * aPartialTicks); + - (aPlayer.prevPosX + (aPlayer.posX - aPlayer.prevPosX) * aPartialTicks); double d1 = aPlayer.field_71096_bN + (aPlayer.field_71095_bQ - aPlayer.field_71096_bN) * aPartialTicks - - (aPlayer.prevPosY + (aPlayer.posY - aPlayer.prevPosY) * aPartialTicks); + - (aPlayer.prevPosY + (aPlayer.posY - aPlayer.prevPosY) * aPartialTicks); double d2 = aPlayer.field_71097_bO + (aPlayer.field_71085_bR - aPlayer.field_71097_bO) * aPartialTicks - - (aPlayer.prevPosZ + (aPlayer.posZ - aPlayer.prevPosZ) * aPartialTicks); + - (aPlayer.prevPosZ + (aPlayer.posZ - aPlayer.prevPosZ) * aPartialTicks); float f6 = aPlayer.prevRenderYawOffset - + (aPlayer.renderYawOffset - aPlayer.prevRenderYawOffset) * aPartialTicks; + + (aPlayer.renderYawOffset - aPlayer.prevRenderYawOffset) * aPartialTicks; double d3 = MathHelper.sin(f6 * (float) Math.PI / 180.0F); double d4 = -MathHelper.cos(f6 * (float) Math.PI / 180.0F); float f7 = (float) d1 * 10.0F; @@ -126,11 +125,10 @@ public class GT_CapeRenderer extends RenderPlayer { } float f10 = aPlayer.prevCameraYaw + (aPlayer.cameraYaw - aPlayer.prevCameraYaw) * aPartialTicks; f7 += MathHelper.sin( - (aPlayer.prevDistanceWalkedModified - + (aPlayer.distanceWalkedModified - aPlayer.prevDistanceWalkedModified) * aPartialTicks) - * 6.0F) - * 32.0F - * f10; + (aPlayer.prevDistanceWalkedModified + + (aPlayer.distanceWalkedModified - aPlayer.prevDistanceWalkedModified) * aPartialTicks) * 6.0F) + * 32.0F + * f10; if (aPlayer.isSneaking()) { f7 += 25.0F; } diff --git a/src/main/java/gregtech/common/render/GT_CopiedBlockTexture.java b/src/main/java/gregtech/common/render/GT_CopiedBlockTexture.java index fe9f378047..421d2f648b 100644 --- a/src/main/java/gregtech/common/render/GT_CopiedBlockTexture.java +++ b/src/main/java/gregtech/common/render/GT_CopiedBlockTexture.java @@ -37,7 +37,7 @@ public class GT_CopiedBlockTexture extends GT_TextureBase implements ITexture, I aRenderer.field_152631_f = true; startDrawingQuads(aRenderer, 1.0f, 0.0f, 0.0f); new LightingHelper(aRenderer).setupLightingXPos(aBlock, aX, aY, aZ) - .setupColor(ForgeDirection.EAST.ordinal(), 0xffffff); + .setupColor(ForgeDirection.EAST.ordinal(), 0xffffff); aRenderer.renderFaceXPos(aBlock, aX, aY, aZ, aIcon); draw(aRenderer); aRenderer.field_152631_f = false; @@ -48,7 +48,7 @@ public class GT_CopiedBlockTexture extends GT_TextureBase implements ITexture, I startDrawingQuads(aRenderer, -1.0f, 0.0f, 0.0f); final IIcon aIcon = getIcon(ForgeDirection.WEST.ordinal()); new LightingHelper(aRenderer).setupLightingXNeg(aBlock, aX, aY, aZ) - .setupColor(ForgeDirection.WEST.ordinal(), 0xffffff); + .setupColor(ForgeDirection.WEST.ordinal(), 0xffffff); aRenderer.renderFaceXNeg(aBlock, aX, aY, aZ, aIcon); draw(aRenderer); } @@ -58,7 +58,7 @@ public class GT_CopiedBlockTexture extends GT_TextureBase implements ITexture, I startDrawingQuads(aRenderer, 0.0f, 1.0f, 0.0f); final IIcon aIcon = getIcon(ForgeDirection.UP.ordinal()); new LightingHelper(aRenderer).setupLightingYPos(aBlock, aX, aY, aZ) - .setupColor(ForgeDirection.UP.ordinal(), 0xffffff); + .setupColor(ForgeDirection.UP.ordinal(), 0xffffff); aRenderer.renderFaceYPos(aBlock, aX, aY, aZ, aIcon); draw(aRenderer); } @@ -68,7 +68,7 @@ public class GT_CopiedBlockTexture extends GT_TextureBase implements ITexture, I startDrawingQuads(aRenderer, 0.0f, -1.0f, 0.0f); final IIcon aIcon = getIcon(ForgeDirection.DOWN.ordinal()); new LightingHelper(aRenderer).setupLightingYNeg(aBlock, aX, aY, aZ) - .setupColor(ForgeDirection.DOWN.ordinal(), 0xffffff); + .setupColor(ForgeDirection.DOWN.ordinal(), 0xffffff); aRenderer.renderFaceYNeg(aBlock, aX, aY, aZ, aIcon); draw(aRenderer); } @@ -78,7 +78,7 @@ public class GT_CopiedBlockTexture extends GT_TextureBase implements ITexture, I startDrawingQuads(aRenderer, 0.0f, 0.0f, 1.0f); final IIcon aIcon = getIcon(ForgeDirection.SOUTH.ordinal()); new LightingHelper(aRenderer).setupLightingZPos(aBlock, aX, aY, aZ) - .setupColor(ForgeDirection.SOUTH.ordinal(), 0xffffff); + .setupColor(ForgeDirection.SOUTH.ordinal(), 0xffffff); aRenderer.renderFaceZPos(aBlock, aX, aY, aZ, aIcon); draw(aRenderer); } @@ -89,7 +89,7 @@ public class GT_CopiedBlockTexture extends GT_TextureBase implements ITexture, I final IIcon aIcon = getIcon(ForgeDirection.NORTH.ordinal()); aRenderer.field_152631_f = true; new LightingHelper(aRenderer).setupLightingZNeg(aBlock, aX, aY, aZ) - .setupColor(ForgeDirection.NORTH.ordinal(), 0xffffff); + .setupColor(ForgeDirection.NORTH.ordinal(), 0xffffff); aRenderer.renderFaceZNeg(aBlock, aX, aY, aZ, aIcon); draw(aRenderer); aRenderer.field_152631_f = false; diff --git a/src/main/java/gregtech/common/render/GT_CopiedCTMBlockTexture.java b/src/main/java/gregtech/common/render/GT_CopiedCTMBlockTexture.java index 90caaf85cd..e4304af15d 100644 --- a/src/main/java/gregtech/common/render/GT_CopiedCTMBlockTexture.java +++ b/src/main/java/gregtech/common/render/GT_CopiedCTMBlockTexture.java @@ -43,9 +43,7 @@ class GT_CopiedCTMBlockTexture extends GT_TextureBase implements ITexture, IBloc aRenderer.field_152631_f = true; startDrawingQuads(aRenderer, 1.0f, 0.0f, 0.0f); new LightingHelper(aRenderer).setupLightingXPos(aBlock, aX, aY, aZ) - .setupColor( - ForgeDirection.EAST.ordinal(), - mBlock.colorMultiplier(getBlockAccess(aRenderer), aX, aY, aZ)); + .setupColor(ForgeDirection.EAST.ordinal(), mBlock.colorMultiplier(getBlockAccess(aRenderer), aX, aY, aZ)); aRenderer.renderFaceXPos(aBlock, aX, aY, aZ, aIcon); draw(aRenderer); aRenderer.field_152631_f = false; @@ -56,9 +54,7 @@ class GT_CopiedCTMBlockTexture extends GT_TextureBase implements ITexture, IBloc startDrawingQuads(aRenderer, -1.0f, 0.0f, 0.0f); final IIcon aIcon = getIcon(ForgeDirection.WEST.ordinal(), aX, aY, aZ, aRenderer); new LightingHelper(aRenderer).setupLightingXNeg(aBlock, aX, aY, aZ) - .setupColor( - ForgeDirection.WEST.ordinal(), - mBlock.colorMultiplier(getBlockAccess(aRenderer), aX, aY, aZ)); + .setupColor(ForgeDirection.WEST.ordinal(), mBlock.colorMultiplier(getBlockAccess(aRenderer), aX, aY, aZ)); aRenderer.renderFaceXNeg(aBlock, aX, aY, aZ, aIcon); draw(aRenderer); } @@ -68,9 +64,7 @@ class GT_CopiedCTMBlockTexture extends GT_TextureBase implements ITexture, IBloc startDrawingQuads(aRenderer, 0.0f, 1.0f, 0.0f); final IIcon aIcon = getIcon(ForgeDirection.UP.ordinal(), aX, aY, aZ, aRenderer); new LightingHelper(aRenderer).setupLightingYPos(aBlock, aX, aY, aZ) - .setupColor( - ForgeDirection.UP.ordinal(), - mBlock.colorMultiplier(getBlockAccess(aRenderer), aX, aY, aZ)); + .setupColor(ForgeDirection.UP.ordinal(), mBlock.colorMultiplier(getBlockAccess(aRenderer), aX, aY, aZ)); aRenderer.renderFaceYPos(aBlock, aX, aY, aZ, aIcon); draw(aRenderer); } @@ -80,9 +74,7 @@ class GT_CopiedCTMBlockTexture extends GT_TextureBase implements ITexture, IBloc startDrawingQuads(aRenderer, 0.0f, -1.0f, 0.0f); final IIcon aIcon = getIcon(ForgeDirection.DOWN.ordinal(), aX, aY, aZ, aRenderer); new LightingHelper(aRenderer).setupLightingYNeg(aBlock, aX, aY, aZ) - .setupColor( - ForgeDirection.DOWN.ordinal(), - mBlock.colorMultiplier(getBlockAccess(aRenderer), aX, aY, aZ)); + .setupColor(ForgeDirection.DOWN.ordinal(), mBlock.colorMultiplier(getBlockAccess(aRenderer), aX, aY, aZ)); aRenderer.renderFaceYNeg(aBlock, aX, aY, aZ, aIcon); draw(aRenderer); } @@ -92,9 +84,7 @@ class GT_CopiedCTMBlockTexture extends GT_TextureBase implements ITexture, IBloc startDrawingQuads(aRenderer, 0.0f, 0.0f, 1.0f); final IIcon aIcon = getIcon(ForgeDirection.SOUTH.ordinal(), aX, aY, aZ, aRenderer); new LightingHelper(aRenderer).setupLightingZPos(aBlock, aX, aY, aZ) - .setupColor( - ForgeDirection.SOUTH.ordinal(), - mBlock.colorMultiplier(getBlockAccess(aRenderer), aX, aY, aZ)); + .setupColor(ForgeDirection.SOUTH.ordinal(), mBlock.colorMultiplier(getBlockAccess(aRenderer), aX, aY, aZ)); aRenderer.renderFaceZPos(aBlock, aX, aY, aZ, aIcon); draw(aRenderer); } @@ -105,9 +95,7 @@ class GT_CopiedCTMBlockTexture extends GT_TextureBase implements ITexture, IBloc final IIcon aIcon = getIcon(ForgeDirection.NORTH.ordinal(), aX, aY, aZ, aRenderer); aRenderer.field_152631_f = true; new LightingHelper(aRenderer).setupLightingZNeg(aBlock, aX, aY, aZ) - .setupColor( - ForgeDirection.NORTH.ordinal(), - mBlock.colorMultiplier(getBlockAccess(aRenderer), aX, aY, aZ)); + .setupColor(ForgeDirection.NORTH.ordinal(), mBlock.colorMultiplier(getBlockAccess(aRenderer), aX, aY, aZ)); aRenderer.renderFaceZNeg(aBlock, aX, aY, aZ, aIcon); draw(aRenderer); aRenderer.field_152631_f = false; diff --git a/src/main/java/gregtech/common/render/GT_FlaskRenderer.java b/src/main/java/gregtech/common/render/GT_FlaskRenderer.java index bf29fe0528..52d5d91ee0 100644 --- a/src/main/java/gregtech/common/render/GT_FlaskRenderer.java +++ b/src/main/java/gregtech/common/render/GT_FlaskRenderer.java @@ -57,9 +57,9 @@ public final class GT_FlaskRenderer implements IItemRenderer { if (fs != null) { IIcon iconWindow = cell.iconWindow; IIcon fluidicon = fs.getFluid() - .getIcon(fs); + .getIcon(fs); int fluidColor = fs.getFluid() - .getColor(fs); + .getColor(fs); Minecraft.getMinecraft().renderEngine.bindTexture(TextureMap.locationItemsTexture); GL11.glBlendFunc(GL11.GL_ZERO, GL11.GL_ONE); if (type.equals(ItemRenderType.INVENTORY)) { @@ -90,14 +90,14 @@ public final class GT_FlaskRenderer implements IItemRenderer { DrawUtil.renderIcon(icon, 16.0D, 0.001D, 0.0F, 0.0F, -1.0F); } else { ItemRenderer.renderItemIn2D( - Tessellator.instance, - icon.getMaxU(), - icon.getMinV(), - icon.getMinU(), - icon.getMaxV(), - icon.getIconWidth(), - icon.getIconHeight(), - 0.0625F); + Tessellator.instance, + icon.getMaxU(), + icon.getMinV(), + icon.getMinU(), + icon.getMaxV(), + icon.getIconWidth(), + icon.getIconHeight(), + 0.0625F); } GL11.glDisable(GL11.GL_ALPHA_TEST); GL11.glDisable(GL11.GL_BLEND); diff --git a/src/main/java/gregtech/common/render/GT_FluidDisplayStackRenderer.java b/src/main/java/gregtech/common/render/GT_FluidDisplayStackRenderer.java index 9d8d2afe70..9a35f6bc57 100644 --- a/src/main/java/gregtech/common/render/GT_FluidDisplayStackRenderer.java +++ b/src/main/java/gregtech/common/render/GT_FluidDisplayStackRenderer.java @@ -47,9 +47,9 @@ public class GT_FluidDisplayStackRenderer implements IItemRenderer { Materials associatedFluidMaterial = Materials.get(item.stackTagCompound.getString("mFluidMaterialName")); if (associatedFluidMaterial.renderer == null - || !associatedFluidMaterial.renderer.renderFluidDisplayItem(type, item, data)) { + || !associatedFluidMaterial.renderer.renderFluidDisplayItem(type, item, data)) { IIcon icon = item.getItem() - .getIconFromDamage(item.getItemDamage()); + .getIconFromDamage(item.getItemDamage()); Tessellator tess = Tessellator.instance; tess.startDrawingQuads(); // draw a simple rectangle for the inventory icon @@ -72,9 +72,9 @@ public class GT_FluidDisplayStackRenderer implements IItemRenderer { // Render Fluid amount text long fluidAmount = item.getTagCompound() - .getLong("mFluidDisplayAmount"); + .getLong("mFluidDisplayAmount"); if (fluidAmount > 0L && !item.getTagCompound() - .getBoolean("mHideStackSize")) { + .getBoolean("mHideStackSize")) { String amountString; if (fluidAmount < 10_000) { @@ -89,12 +89,8 @@ public class GT_FluidDisplayStackRenderer implements IItemRenderer { GL11.glPushMatrix(); GL11.glScalef(smallTextScale, smallTextScale, 1.0f); - fontRender.drawString( - amountString, - 0, - (int) (16 / smallTextScale) - fontRender.FONT_HEIGHT + 1, - 0xFFFFFF, - true); + fontRender + .drawString(amountString, 0, (int) (16 / smallTextScale) - fontRender.FONT_HEIGHT + 1, 0xFFFFFF, true); GL11.glPopMatrix(); GL11.glDisable(GL11.GL_ALPHA_TEST); } diff --git a/src/main/java/gregtech/common/render/GT_MetaGenerated_Tool_Renderer.java b/src/main/java/gregtech/common/render/GT_MetaGenerated_Tool_Renderer.java index 12dcec1291..d984bc0dca 100644 --- a/src/main/java/gregtech/common/render/GT_MetaGenerated_Tool_Renderer.java +++ b/src/main/java/gregtech/common/render/GT_MetaGenerated_Tool_Renderer.java @@ -33,14 +33,14 @@ public class GT_MetaGenerated_Tool_Renderer implements IItemRenderer { return false; } return (aType == IItemRenderer.ItemRenderType.EQUIPPED_FIRST_PERSON) - || (aType == IItemRenderer.ItemRenderType.INVENTORY) - || (aType == IItemRenderer.ItemRenderType.EQUIPPED) - || (aType == IItemRenderer.ItemRenderType.ENTITY); + || (aType == IItemRenderer.ItemRenderType.INVENTORY) + || (aType == IItemRenderer.ItemRenderType.EQUIPPED) + || (aType == IItemRenderer.ItemRenderType.ENTITY); } @Override public boolean shouldUseRenderHelper(IItemRenderer.ItemRenderType aType, ItemStack aStack, - IItemRenderer.ItemRendererHelper aHelper) { + IItemRenderer.ItemRendererHelper aHelper) { if (GT_Utility.isStackInvalid(aStack)) { return false; } @@ -80,14 +80,14 @@ public class GT_MetaGenerated_Tool_Renderer implements IItemRenderer { GT_RenderUtil.renderItemIcon(tIcon, 16.0D, 0.001D, 0.0F, 0.0F, -1.0F); } else { ItemRenderer.renderItemIn2D( - Tessellator.instance, - tIcon.getMaxU(), - tIcon.getMinV(), - tIcon.getMinU(), - tIcon.getMaxV(), - tIcon.getIconWidth(), - tIcon.getIconHeight(), - 0.0625F); + Tessellator.instance, + tIcon.getMaxU(), + tIcon.getMinV(), + tIcon.getMinU(), + tIcon.getMaxV(), + tIcon.getIconWidth(), + tIcon.getIconHeight(), + 0.0625F); } GL11.glColor3f(1.0F, 1.0F, 1.0F); } @@ -98,14 +98,14 @@ public class GT_MetaGenerated_Tool_Renderer implements IItemRenderer { GT_RenderUtil.renderItemIcon(tOverlay, 16.0D, 0.001D, 0.0F, 0.0F, -1.0F); } else { ItemRenderer.renderItemIn2D( - Tessellator.instance, - tOverlay.getMaxU(), - tOverlay.getMinV(), - tOverlay.getMinU(), - tOverlay.getMaxV(), - tOverlay.getIconWidth(), - tOverlay.getIconHeight(), - 0.0625F); + Tessellator.instance, + tOverlay.getMaxU(), + tOverlay.getMinV(), + tOverlay.getMinU(), + tOverlay.getMaxV(), + tOverlay.getIconWidth(), + tOverlay.getIconHeight(), + 0.0625F); } } } @@ -122,14 +122,14 @@ public class GT_MetaGenerated_Tool_Renderer implements IItemRenderer { GT_RenderUtil.renderItemIcon(tIcon, 16.0D, 0.001D, 0.0F, 0.0F, -1.0F); } else { ItemRenderer.renderItemIn2D( - Tessellator.instance, - tIcon.getMaxU(), - tIcon.getMinV(), - tIcon.getMinU(), - tIcon.getMaxV(), - tIcon.getIconWidth(), - tIcon.getIconHeight(), - 0.0625F); + Tessellator.instance, + tIcon.getMaxU(), + tIcon.getMinV(), + tIcon.getMinU(), + tIcon.getMaxV(), + tIcon.getIconWidth(), + tIcon.getIconHeight(), + 0.0625F); } GL11.glColor3f(1.0F, 1.0F, 1.0F); } @@ -140,19 +140,19 @@ public class GT_MetaGenerated_Tool_Renderer implements IItemRenderer { GT_RenderUtil.renderItemIcon(tOverlay, 16.0D, 0.001D, 0.0F, 0.0F, -1.0F); } else { ItemRenderer.renderItemIn2D( - Tessellator.instance, - tOverlay.getMaxU(), - tOverlay.getMinV(), - tOverlay.getMinU(), - tOverlay.getMaxV(), - tOverlay.getIconWidth(), - tOverlay.getIconHeight(), - 0.0625F); + Tessellator.instance, + tOverlay.getMaxU(), + tOverlay.getMinV(), + tOverlay.getMinU(), + tOverlay.getMaxV(), + tOverlay.getIconWidth(), + tOverlay.getIconHeight(), + 0.0625F); } } } if ((aType == IItemRenderer.ItemRenderType.INVENTORY) - && (GT_MetaGenerated_Tool.getPrimaryMaterial(aStack) != Materials._NULL)) { + && (GT_MetaGenerated_Tool.getPrimaryMaterial(aStack) != Materials._NULL)) { long tDamage = GT_MetaGenerated_Tool.getToolDamage(aStack); long tMaxDamage = GT_MetaGenerated_Tool.getToolMaxDamage(aStack); if (tDamage <= 0L) { @@ -160,9 +160,8 @@ public class GT_MetaGenerated_Tool_Renderer implements IItemRenderer { } else if (tDamage >= tMaxDamage) { aIcon = gregtech.api.enums.Textures.ItemIcons.DURABILITY_BAR[0]; } else { - aIcon = gregtech.api.enums.Textures.ItemIcons.DURABILITY_BAR[((int) java.lang.Math.max( - 0L, - java.lang.Math.min(7L, (tMaxDamage - tDamage) * 8L / tMaxDamage)))]; + aIcon = gregtech.api.enums.Textures.ItemIcons.DURABILITY_BAR[((int) java.lang.Math + .max(0L, java.lang.Math.min(7L, (tMaxDamage - tDamage) * 8L / tMaxDamage)))]; } if (aIcon != null) { IIcon tIcon = aIcon.getIcon(); @@ -174,14 +173,14 @@ public class GT_MetaGenerated_Tool_Renderer implements IItemRenderer { GT_RenderUtil.renderItemIcon(tIcon, 16.0D, 0.001D, 0.0F, 0.0F, -1.0F); } else { ItemRenderer.renderItemIn2D( - Tessellator.instance, - tIcon.getMaxU(), - tIcon.getMinV(), - tIcon.getMinU(), - tIcon.getMaxV(), - tIcon.getIconWidth(), - tIcon.getIconHeight(), - 0.0625F); + Tessellator.instance, + tIcon.getMaxU(), + tIcon.getMinV(), + tIcon.getMinU(), + tIcon.getMaxV(), + tIcon.getIconWidth(), + tIcon.getIconHeight(), + 0.0625F); } } if (tOverlay != null) { @@ -191,14 +190,14 @@ public class GT_MetaGenerated_Tool_Renderer implements IItemRenderer { GT_RenderUtil.renderItemIcon(tOverlay, 16.0D, 0.001D, 0.0F, 0.0F, -1.0F); } else { ItemRenderer.renderItemIn2D( - Tessellator.instance, - tOverlay.getMaxU(), - tOverlay.getMinV(), - tOverlay.getMinU(), - tOverlay.getMaxV(), - tOverlay.getIconWidth(), - tOverlay.getIconHeight(), - 0.0625F); + Tessellator.instance, + tOverlay.getMaxU(), + tOverlay.getMinV(), + tOverlay.getMinU(), + tOverlay.getMaxV(), + tOverlay.getIconWidth(), + tOverlay.getIconHeight(), + 0.0625F); } } } @@ -210,9 +209,8 @@ public class GT_MetaGenerated_Tool_Renderer implements IItemRenderer { } else if (tCharge >= tStats[0]) { aIcon = gregtech.api.enums.Textures.ItemIcons.ENERGY_BAR[8]; } else { - aIcon = gregtech.api.enums.Textures.ItemIcons.ENERGY_BAR[(7 - (int) java.lang.Math.max( - 0L, - java.lang.Math.min(6L, (tStats[0] - tCharge) * 7L / tStats[0])))]; + aIcon = gregtech.api.enums.Textures.ItemIcons.ENERGY_BAR[(7 - (int) java.lang.Math + .max(0L, java.lang.Math.min(6L, (tStats[0] - tCharge) * 7L / tStats[0])))]; } } else { aIcon = null; @@ -227,14 +225,14 @@ public class GT_MetaGenerated_Tool_Renderer implements IItemRenderer { GT_RenderUtil.renderItemIcon(tIcon, 16.0D, 0.001D, 0.0F, 0.0F, -1.0F); } else { ItemRenderer.renderItemIn2D( - Tessellator.instance, - tIcon.getMaxU(), - tIcon.getMinV(), - tIcon.getMinU(), - tIcon.getMaxV(), - tIcon.getIconWidth(), - tIcon.getIconHeight(), - 0.0625F); + Tessellator.instance, + tIcon.getMaxU(), + tIcon.getMinV(), + tIcon.getMinU(), + tIcon.getMaxV(), + tIcon.getIconWidth(), + tIcon.getIconHeight(), + 0.0625F); } } if (tOverlay != null) { @@ -244,14 +242,14 @@ public class GT_MetaGenerated_Tool_Renderer implements IItemRenderer { GT_RenderUtil.renderItemIcon(tOverlay, 16.0D, 0.001D, 0.0F, 0.0F, -1.0F); } else { ItemRenderer.renderItemIn2D( - Tessellator.instance, - tOverlay.getMaxU(), - tOverlay.getMinV(), - tOverlay.getMinU(), - tOverlay.getMaxV(), - tOverlay.getIconWidth(), - tOverlay.getIconHeight(), - 0.0625F); + Tessellator.instance, + tOverlay.getMaxU(), + tOverlay.getMinV(), + tOverlay.getMinU(), + tOverlay.getMaxV(), + tOverlay.getIconWidth(), + tOverlay.getIconHeight(), + 0.0625F); } } } diff --git a/src/main/java/gregtech/common/render/GT_PollutionRenderer.java b/src/main/java/gregtech/common/render/GT_PollutionRenderer.java index e98d90c659..d975ac7952 100644 --- a/src/main/java/gregtech/common/render/GT_PollutionRenderer.java +++ b/src/main/java/gregtech/common/render/GT_PollutionRenderer.java @@ -58,8 +58,8 @@ public class GT_PollutionRenderer { public void preLoad() { net.minecraftforge.common.MinecraftForge.EVENT_BUS.register(this); FMLCommonHandler.instance() - .bus() - .register(this); + .bus() + .register(this); } public void processPacket(ChunkCoordIntPair chunk, int pollution) { @@ -133,8 +133,7 @@ public class GT_PollutionRenderer { if (!GT_Mod.gregtechproxy.mRenderPollutionFog) return; if ((!DEBUG && Minecraft.getMinecraft().thePlayer.capabilities.isCreativeMode) - || (fogIntensityLastTick <= 0 && fogIntensityLastTick >= FOG_START_EXP_RATIO)) - return; + || (fogIntensityLastTick <= 0 && fogIntensityLastTick >= FOG_START_EXP_RATIO)) return; if (event.fogMode == 0) { double v = 1 - fogIntensityLastTick / FOG_START_EXP_RATIO; @@ -153,9 +152,8 @@ public class GT_PollutionRenderer { if (!DEBUG && Minecraft.getMinecraft().thePlayer.capabilities.isCreativeMode) return; if (event.entity.isPotionActive(Potion.blindness) || (fogIntensityLastTick < FOG_START_EXP_RATIO) - || event.block.getMaterial() == Material.water - || event.block.getMaterial() == Material.lava) - return; + || event.block.getMaterial() == Material.water + || event.block.getMaterial() == Material.lava) return; GL11.glFogi(GL11.GL_FOG_MODE, GL11.GL_EXP2); event.density = (float) Math.pow(fogIntensityLastTick - FOG_START_EXP_RATIO, .75F) / 5 + 0.01F; @@ -191,14 +189,14 @@ public class GT_PollutionRenderer { } else if (DEBUG) { drawPollution("Intensity: " + (fogIntensityLastTick * 10000), 0); drawPollution( - "Pollution: " + pollutionMap.getPollution( - Minecraft.getMinecraft().thePlayer.lastTickPosX, - Minecraft.getMinecraft().thePlayer.lastTickPosZ), - 20); + "Pollution: " + pollutionMap.getPollution( + Minecraft.getMinecraft().thePlayer.lastTickPosX, + Minecraft.getMinecraft().thePlayer.lastTickPosZ), + 20); drawPollution( - "Density: " + ((float) (Math.pow(fogIntensityLastTick - FOG_START_EXP_RATIO, .75F) / 5 + 0.01F) - * 10000), - 40); + "Density: " + + ((float) (Math.pow(fogIntensityLastTick - FOG_START_EXP_RATIO, .75F) / 5 + 0.01F) * 10000), + 40); } } @@ -233,10 +231,10 @@ public class GT_PollutionRenderer { if (block.getMaterial() == Material.air) { EntityFX fx = new GT_EntityFXPollution( - w, - (float) i1 + w.rand.nextFloat(), - (float) j1 + w.rand.nextFloat(), - (float) k1 + w.rand.nextFloat()); + w, + (float) i1 + w.rand.nextFloat(), + (float) j1 + w.rand.nextFloat(), + (float) k1 + w.rand.nextFloat()); mc.effectRenderer.addEffect(fx); } } diff --git a/src/main/java/gregtech/common/render/GT_RenderUtil.java b/src/main/java/gregtech/common/render/GT_RenderUtil.java index 1919b7975c..6cba823a66 100644 --- a/src/main/java/gregtech/common/render/GT_RenderUtil.java +++ b/src/main/java/gregtech/common/render/GT_RenderUtil.java @@ -23,7 +23,7 @@ public class GT_RenderUtil { } public static void renderBlockIcon(RenderBlocks aRenderer, Block aBlock, double aX, double aY, double aZ, - IIcon aIcon, byte aSide) { + IIcon aIcon, byte aSide) { switch (aSide) { case 0 -> { aRenderer.renderFaceYNeg(aBlock, aX, aY, aZ, aIcon); @@ -57,7 +57,7 @@ public class GT_RenderUtil { } public static void renderItemIcon(IIcon icon, double xStart, double yStart, double xEnd, double yEnd, double z, - float nx, float ny, float nz) { + float nx, float ny, float nz) { if (icon == null) { return; } diff --git a/src/main/java/gregtech/common/render/GT_RenderedTexture.java b/src/main/java/gregtech/common/render/GT_RenderedTexture.java index bc36628324..34b8c879ae 100644 --- a/src/main/java/gregtech/common/render/GT_RenderedTexture.java +++ b/src/main/java/gregtech/common/render/GT_RenderedTexture.java @@ -35,7 +35,7 @@ public class GT_RenderedTexture extends GT_TextureBase implements ITexture, ICol private final boolean useExtFacing; protected GT_RenderedTexture(IIconContainer aIcon, short[] aRGBa, boolean allowAlpha, boolean glow, - boolean stdOrient, boolean extFacing) { + boolean stdOrient, boolean extFacing) { if (aRGBa.length != 4) throw new IllegalArgumentException("RGBa doesn't have 4 Values @ GT_RenderedTexture"); mIconContainer = aIcon; mRGBa = aRGBa; @@ -64,7 +64,7 @@ public class GT_RenderedTexture extends GT_TextureBase implements ITexture, ICol if (enableAO) lighting.setBrightnessOverride(MAX_BRIGHTNESS); } lighting.setupLightingXPos(aBlock, aX, aY, aZ) - .setupColor(ForgeDirection.EAST.ordinal(), mRGBa); + .setupColor(ForgeDirection.EAST.ordinal(), mRGBa); final ExtendedFacing rotation = getExtendedFacing(aX, aY, aZ); renderFaceXPos(aRenderer, aX, aY, aZ, mIconContainer.getIcon(), rotation); if (mIconContainer.getOverlayIcon() != null) { @@ -90,7 +90,7 @@ public class GT_RenderedTexture extends GT_TextureBase implements ITexture, ICol lighting.setBrightnessOverride(MAX_BRIGHTNESS); } lighting.setupLightingXNeg(aBlock, aX, aY, aZ) - .setupColor(ForgeDirection.WEST.ordinal(), mRGBa); + .setupColor(ForgeDirection.WEST.ordinal(), mRGBa); final ExtendedFacing rotation = getExtendedFacing(aX, aY, aZ); renderFaceXNeg(aRenderer, aX, aY, aZ, mIconContainer.getIcon(), rotation); if (mIconContainer.getOverlayIcon() != null) { @@ -116,7 +116,7 @@ public class GT_RenderedTexture extends GT_TextureBase implements ITexture, ICol lighting.setBrightnessOverride(MAX_BRIGHTNESS); } lighting.setupLightingYPos(aBlock, aX, aY, aZ) - .setupColor(ForgeDirection.UP.ordinal(), mRGBa); + .setupColor(ForgeDirection.UP.ordinal(), mRGBa); final ExtendedFacing rotation = getExtendedFacing(aX, aY, aZ); renderFaceYPos(aRenderer, aX, aY, aZ, mIconContainer.getIcon(), rotation); if (mIconContainer.getOverlayIcon() != null) { @@ -142,7 +142,7 @@ public class GT_RenderedTexture extends GT_TextureBase implements ITexture, ICol lighting.setBrightnessOverride(MAX_BRIGHTNESS); } lighting.setupLightingYNeg(aBlock, aX, aY, aZ) - .setupColor(ForgeDirection.DOWN.ordinal(), mRGBa); + .setupColor(ForgeDirection.DOWN.ordinal(), mRGBa); final ExtendedFacing rotation = getExtendedFacing(aX, aY, aZ); renderFaceYNeg(aRenderer, aX, aY, aZ, mIconContainer.getIcon(), rotation); if (mIconContainer.getOverlayIcon() != null) { @@ -168,7 +168,7 @@ public class GT_RenderedTexture extends GT_TextureBase implements ITexture, ICol lighting.setBrightnessOverride(MAX_BRIGHTNESS); } lighting.setupLightingZPos(aBlock, aX, aY, aZ) - .setupColor(ForgeDirection.SOUTH.ordinal(), mRGBa); + .setupColor(ForgeDirection.SOUTH.ordinal(), mRGBa); final ExtendedFacing rotation = getExtendedFacing(aX, aY, aZ); renderFaceZPos(aRenderer, aX, aY, aZ, mIconContainer.getIcon(), rotation); if (mIconContainer.getOverlayIcon() != null) { @@ -194,7 +194,7 @@ public class GT_RenderedTexture extends GT_TextureBase implements ITexture, ICol lighting.setBrightnessOverride(MAX_BRIGHTNESS); } lighting.setupLightingZNeg(aBlock, aX, aY, aZ) - .setupColor(ForgeDirection.NORTH.ordinal(), mRGBa); + .setupColor(ForgeDirection.NORTH.ordinal(), mRGBa); final ExtendedFacing rotation = getExtendedFacing(aX, aY, aZ); renderFaceZNeg(aRenderer, aX, aY, aZ, mIconContainer.getIcon(), rotation); if (mIconContainer.getOverlayIcon() != null) { @@ -219,7 +219,7 @@ public class GT_RenderedTexture extends GT_TextureBase implements ITexture, ICol * Renders the given texture to the bottom face of the block. Args: block, x, y, z, texture */ protected void renderFaceYNeg(RenderBlocks aRenderer, double x, double y, double z, IIcon icon, - ExtendedFacing extendedFacing) { + ExtendedFacing extendedFacing) { switch (useExtFacing ? extendedFacing.getRotation() : Rotation.NORMAL) { case COUNTER_CLOCKWISE -> aRenderer.uvRotateBottom = 2; @@ -230,16 +230,13 @@ public class GT_RenderedTexture extends GT_TextureBase implements ITexture, ICol final Flip aFlip = extendedFacing.getFlip(); aRenderer.renderFaceYNeg( - Blocks.air, - x, - y, - z, - useExtFacing && GT_Mod.gregtechproxy.mRenderFlippedMachinesFlipped - ? new GT_IconFlipped( - icon, - aFlip.isHorizontallyFlipped() ^ !stdOrient, - aFlip.isVerticallyFliped()) - : new GT_IconFlipped(icon, !stdOrient, false)); + Blocks.air, + x, + y, + z, + useExtFacing && GT_Mod.gregtechproxy.mRenderFlippedMachinesFlipped + ? new GT_IconFlipped(icon, aFlip.isHorizontallyFlipped() ^ !stdOrient, aFlip.isVerticallyFliped()) + : new GT_IconFlipped(icon, !stdOrient, false)); aRenderer.uvRotateBottom = 0; } @@ -247,7 +244,7 @@ public class GT_RenderedTexture extends GT_TextureBase implements ITexture, ICol * Renders the given texture to the top face of the block. Args: block, x, y, z, texture */ protected void renderFaceYPos(RenderBlocks aRenderer, double x, double y, double z, IIcon icon, - ExtendedFacing extendedFacing) { + ExtendedFacing extendedFacing) { switch (useExtFacing ? extendedFacing.getRotation() : Rotation.NORMAL) { case COUNTER_CLOCKWISE -> aRenderer.uvRotateTop = 2; @@ -258,13 +255,13 @@ public class GT_RenderedTexture extends GT_TextureBase implements ITexture, ICol final Flip aFlip = extendedFacing.getFlip(); aRenderer.renderFaceYPos( - Blocks.air, - x, - y, - z, - useExtFacing && GT_Mod.gregtechproxy.mRenderFlippedMachinesFlipped - ? new GT_IconFlipped(icon, aFlip.isHorizontallyFlipped(), aFlip.isVerticallyFliped()) - : icon); + Blocks.air, + x, + y, + z, + useExtFacing && GT_Mod.gregtechproxy.mRenderFlippedMachinesFlipped + ? new GT_IconFlipped(icon, aFlip.isHorizontallyFlipped(), aFlip.isVerticallyFliped()) + : icon); aRenderer.uvRotateTop = 0; } @@ -272,7 +269,7 @@ public class GT_RenderedTexture extends GT_TextureBase implements ITexture, ICol * Renders the given texture to the north (z-negative) face of the block. Args: block, x, y, z, texture */ protected void renderFaceZNeg(RenderBlocks aRenderer, double x, double y, double z, IIcon icon, - ExtendedFacing extendedFacing) { + ExtendedFacing extendedFacing) { aRenderer.field_152631_f = true; // **NOT A BUG**: aRenderer.uvRotateEast REALLY CONTROLS THE ROTATION OF THE NORTH SIDE switch (useExtFacing ? extendedFacing.getRotation() : Rotation.NORMAL) { @@ -284,13 +281,13 @@ public class GT_RenderedTexture extends GT_TextureBase implements ITexture, ICol final Flip aFlip = extendedFacing.getFlip(); aRenderer.renderFaceZNeg( - Blocks.air, - x, - y, - z, - useExtFacing && GT_Mod.gregtechproxy.mRenderFlippedMachinesFlipped - ? new GT_IconFlipped(icon, aFlip.isHorizontallyFlipped(), aFlip.isVerticallyFliped()) - : icon); + Blocks.air, + x, + y, + z, + useExtFacing && GT_Mod.gregtechproxy.mRenderFlippedMachinesFlipped + ? new GT_IconFlipped(icon, aFlip.isHorizontallyFlipped(), aFlip.isVerticallyFliped()) + : icon); aRenderer.uvRotateEast = 0; aRenderer.field_152631_f = false; } @@ -299,7 +296,7 @@ public class GT_RenderedTexture extends GT_TextureBase implements ITexture, ICol * Renders the given texture to the south (z-positive) face of the block. Args: block, x, y, z, texture */ protected void renderFaceZPos(RenderBlocks aRenderer, double x, double y, double z, IIcon icon, - ExtendedFacing extendedFacing) { + ExtendedFacing extendedFacing) { // **NOT A BUG**: aRenderer.uvRotateWest REALLY CONTROLS THE ROTATION OF THE SOUTH SIDE switch (useExtFacing ? extendedFacing.getRotation() : Rotation.NORMAL) { case COUNTER_CLOCKWISE -> aRenderer.uvRotateWest = 2; @@ -310,13 +307,13 @@ public class GT_RenderedTexture extends GT_TextureBase implements ITexture, ICol final Flip aFlip = extendedFacing.getFlip(); aRenderer.renderFaceZPos( - Blocks.air, - x, - y, - z, - useExtFacing && GT_Mod.gregtechproxy.mRenderFlippedMachinesFlipped - ? new GT_IconFlipped(icon, aFlip.isHorizontallyFlipped(), aFlip.isVerticallyFliped()) - : icon); + Blocks.air, + x, + y, + z, + useExtFacing && GT_Mod.gregtechproxy.mRenderFlippedMachinesFlipped + ? new GT_IconFlipped(icon, aFlip.isHorizontallyFlipped(), aFlip.isVerticallyFliped()) + : icon); aRenderer.uvRotateWest = 0; } @@ -324,7 +321,7 @@ public class GT_RenderedTexture extends GT_TextureBase implements ITexture, ICol * Renders the given texture to the west (x-negative) face of the block. Args: block, x, y, z, texture */ protected void renderFaceXNeg(RenderBlocks aRenderer, double x, double y, double z, IIcon icon, - ExtendedFacing extendedFacing) { + ExtendedFacing extendedFacing) { // **NOT A BUG**: aRenderer.uvRotateNorth REALLY CONTROLS THE ROTATION OF THE WEST SIDE switch (useExtFacing ? extendedFacing.getRotation() : Rotation.NORMAL) { case COUNTER_CLOCKWISE -> aRenderer.uvRotateNorth = 2; @@ -335,13 +332,13 @@ public class GT_RenderedTexture extends GT_TextureBase implements ITexture, ICol final Flip aFlip = extendedFacing.getFlip(); aRenderer.renderFaceXNeg( - Blocks.air, - x, - y, - z, - useExtFacing && GT_Mod.gregtechproxy.mRenderFlippedMachinesFlipped - ? new GT_IconFlipped(icon, aFlip.isHorizontallyFlipped(), aFlip.isVerticallyFliped()) - : icon); + Blocks.air, + x, + y, + z, + useExtFacing && GT_Mod.gregtechproxy.mRenderFlippedMachinesFlipped + ? new GT_IconFlipped(icon, aFlip.isHorizontallyFlipped(), aFlip.isVerticallyFliped()) + : icon); aRenderer.uvRotateNorth = 0; } @@ -349,7 +346,7 @@ public class GT_RenderedTexture extends GT_TextureBase implements ITexture, ICol * Renders the given texture to the east (x-positive) face of the block. Args: block, x, y, z, texture */ protected void renderFaceXPos(RenderBlocks aRenderer, double x, double y, double z, IIcon icon, - ExtendedFacing extendedFacing) { + ExtendedFacing extendedFacing) { aRenderer.field_152631_f = true; // **NOT A BUG**: aRenderer.uvRotateSouth REALLY CONTROLS THE ROTATION OF THE EAST SIDE switch (useExtFacing ? extendedFacing.getRotation() : Rotation.NORMAL) { @@ -361,13 +358,13 @@ public class GT_RenderedTexture extends GT_TextureBase implements ITexture, ICol final Flip aFlip = extendedFacing.getFlip(); aRenderer.renderFaceXPos( - Blocks.air, - x, - y, - z, - useExtFacing && GT_Mod.gregtechproxy.mRenderFlippedMachinesFlipped - ? new GT_IconFlipped(icon, aFlip.isHorizontallyFlipped(), aFlip.isVerticallyFliped()) - : icon); + Blocks.air, + x, + y, + z, + useExtFacing && GT_Mod.gregtechproxy.mRenderFlippedMachinesFlipped + ? new GT_IconFlipped(icon, aFlip.isHorizontallyFlipped(), aFlip.isVerticallyFliped()) + : icon); aRenderer.uvRotateSouth = 0; aRenderer.field_152631_f = false; } @@ -386,9 +383,9 @@ public class GT_RenderedTexture extends GT_TextureBase implements ITexture, ICol alignment = ((IAlignmentProvider) meta).getAlignment(); } else if (meta != null) { return ExtendedFacing.of( - ForgeDirection.getOrientation( - meta.getBaseMetaTileEntity() - .getFrontFacing())); + ForgeDirection.getOrientation( + meta.getBaseMetaTileEntity() + .getFrontFacing())); } } else if (te instanceof IAlignmentProvider) { alignment = ((IAlignmentProvider) te).getAlignment(); diff --git a/src/main/java/gregtech/common/render/GT_Renderer_Block.java b/src/main/java/gregtech/common/render/GT_Renderer_Block.java index ca9997f333..7646ee31fa 100644 --- a/src/main/java/gregtech/common/render/GT_Renderer_Block.java +++ b/src/main/java/gregtech/common/render/GT_Renderer_Block.java @@ -67,43 +67,43 @@ public class GT_Renderer_Block implements ISimpleBlockRenderingHandler { } public static boolean renderStandardBlock(IBlockAccess aWorld, int aX, int aY, int aZ, Block aBlock, - RenderBlocks aRenderer) { + RenderBlocks aRenderer) { final TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ); if ((tTileEntity instanceof IPipeRenderedTileEntity)) { return renderStandardBlock( - aWorld, - aX, - aY, - aZ, - aBlock, - aRenderer, - new ITexture[][] { ((IPipeRenderedTileEntity) tTileEntity).getTextureCovered((byte) DOWN.ordinal()), - ((IPipeRenderedTileEntity) tTileEntity).getTextureCovered((byte) UP.ordinal()), - ((IPipeRenderedTileEntity) tTileEntity).getTextureCovered((byte) NORTH.ordinal()), - ((IPipeRenderedTileEntity) tTileEntity).getTextureCovered((byte) SOUTH.ordinal()), - ((IPipeRenderedTileEntity) tTileEntity).getTextureCovered((byte) WEST.ordinal()), - ((IPipeRenderedTileEntity) tTileEntity).getTextureCovered((byte) EAST.ordinal()) }); + aWorld, + aX, + aY, + aZ, + aBlock, + aRenderer, + new ITexture[][] { ((IPipeRenderedTileEntity) tTileEntity).getTextureCovered((byte) DOWN.ordinal()), + ((IPipeRenderedTileEntity) tTileEntity).getTextureCovered((byte) UP.ordinal()), + ((IPipeRenderedTileEntity) tTileEntity).getTextureCovered((byte) NORTH.ordinal()), + ((IPipeRenderedTileEntity) tTileEntity).getTextureCovered((byte) SOUTH.ordinal()), + ((IPipeRenderedTileEntity) tTileEntity).getTextureCovered((byte) WEST.ordinal()), + ((IPipeRenderedTileEntity) tTileEntity).getTextureCovered((byte) EAST.ordinal()) }); } if ((tTileEntity instanceof ITexturedTileEntity)) { return renderStandardBlock( - aWorld, - aX, - aY, - aZ, - aBlock, - aRenderer, - new ITexture[][] { ((ITexturedTileEntity) tTileEntity).getTexture(aBlock, (byte) DOWN.ordinal()), - ((ITexturedTileEntity) tTileEntity).getTexture(aBlock, (byte) UP.ordinal()), - ((ITexturedTileEntity) tTileEntity).getTexture(aBlock, (byte) NORTH.ordinal()), - ((ITexturedTileEntity) tTileEntity).getTexture(aBlock, (byte) SOUTH.ordinal()), - ((ITexturedTileEntity) tTileEntity).getTexture(aBlock, (byte) WEST.ordinal()), - ((ITexturedTileEntity) tTileEntity).getTexture(aBlock, (byte) EAST.ordinal()) }); + aWorld, + aX, + aY, + aZ, + aBlock, + aRenderer, + new ITexture[][] { ((ITexturedTileEntity) tTileEntity).getTexture(aBlock, (byte) DOWN.ordinal()), + ((ITexturedTileEntity) tTileEntity).getTexture(aBlock, (byte) UP.ordinal()), + ((ITexturedTileEntity) tTileEntity).getTexture(aBlock, (byte) NORTH.ordinal()), + ((ITexturedTileEntity) tTileEntity).getTexture(aBlock, (byte) SOUTH.ordinal()), + ((ITexturedTileEntity) tTileEntity).getTexture(aBlock, (byte) WEST.ordinal()), + ((ITexturedTileEntity) tTileEntity).getTexture(aBlock, (byte) EAST.ordinal()) }); } return false; } public static boolean renderStandardBlock(IBlockAccess aWorld, int aX, int aY, int aZ, Block aBlock, - RenderBlocks aRenderer, ITexture[][] aTextures) { + RenderBlocks aRenderer, ITexture[][] aTextures) { aBlock.setBlockBounds(blockMin, blockMin, blockMin, blockMax, blockMax, blockMax); aRenderer.setRenderBoundsFromBlock(aBlock); @@ -117,7 +117,7 @@ public class GT_Renderer_Block implements ISimpleBlockRenderingHandler { } public static boolean renderPipeBlock(IBlockAccess aWorld, int aX, int aY, int aZ, Block aBlock, - IPipeRenderedTileEntity aTileEntity, RenderBlocks aRenderer) { + IPipeRenderedTileEntity aTileEntity, RenderBlocks aRenderer) { final byte aConnections = aTileEntity.getConnections(); if ((aConnections & (HAS_FRESHFOAM | HAS_HARDENEDFOAM)) != 0) { return renderStandardBlock(aWorld, aX, aY, aZ, aBlock, aRenderer); @@ -474,7 +474,7 @@ public class GT_Renderer_Block implements ISimpleBlockRenderingHandler { @SideOnly(Side.CLIENT) public static void addHitEffects(EffectRenderer effectRenderer, Block block, World world, int x, int y, int z, - int side) { + int side) { double rX = x + XSTR.XSTR_INSTANCE.nextDouble() * 0.8 + 0.1; double rY = y + XSTR.XSTR_INSTANCE.nextDouble() * 0.8 + 0.1; double rZ = z + XSTR.XSTR_INSTANCE.nextDouble() * 0.8 + 0.1; @@ -492,19 +492,10 @@ public class GT_Renderer_Block implements ISimpleBlockRenderingHandler { rX = x + 1.1; } effectRenderer.addEffect( - (new EntityDiggingFX( - world, - rX, - rY, - rZ, - 0.0, - 0.0, - 0.0, - block, - block.getDamageValue(world, x, y, z), - side)).applyColourMultiplier(x, y, z) - .multiplyVelocity(0.2F) - .multipleParticleScaleBy(0.6F)); + (new EntityDiggingFX(world, rX, rY, rZ, 0.0, 0.0, 0.0, block, block.getDamageValue(world, x, y, z), side)) + .applyColourMultiplier(x, y, z) + .multiplyVelocity(0.2F) + .multipleParticleScaleBy(0.6F)); } @SideOnly(Side.CLIENT) @@ -516,16 +507,16 @@ public class GT_Renderer_Block implements ISimpleBlockRenderingHandler { final double bY = y + (iY + 0.5) / 4.0; final double bZ = z + (iZ + 0.5) / 4.0; effectRenderer.addEffect( - (new EntityDiggingFX( - world, - bX, - bY, - bZ, - bX - x - 0.5, - bY - y - 0.5, - bZ - z - 0.5, - block, - block.getDamageValue(world, x, y, z))).applyColourMultiplier(x, y, z)); + (new EntityDiggingFX( + world, + bX, + bY, + bZ, + bX - x - 0.5, + bY - y - 0.5, + bZ - z - 0.5, + block, + block.getDamageValue(world, x, y, z))).applyColourMultiplier(x, y, z)); } } } @@ -556,349 +547,349 @@ public class GT_Renderer_Block implements ISimpleBlockRenderingHandler { } renderNegativeYFacing( - null, - aRenderer, - aBlock, - 0, - 0, - 0, - tRenderer.getTexture(aBlock, (byte) DOWN.ordinal(), true, i), - !tNeedsToSetBounds); - renderPositiveYFacing( - null, - aRenderer, - aBlock, - 0, - 0, - 0, - tRenderer.getTexture(aBlock, (byte) UP.ordinal(), true, i), - !tNeedsToSetBounds); - renderNegativeZFacing( - null, - aRenderer, - aBlock, - 0, - 0, - 0, - tRenderer.getTexture(aBlock, (byte) NORTH.ordinal(), true, i), - !tNeedsToSetBounds); - renderPositiveZFacing( - null, - aRenderer, - aBlock, - 0, - 0, - 0, - tRenderer.getTexture(aBlock, (byte) SOUTH.ordinal(), true, i), - !tNeedsToSetBounds); - renderNegativeXFacing( - null, - aRenderer, - aBlock, - 0, - 0, - 0, - tRenderer.getTexture(aBlock, (byte) WEST.ordinal(), true, i), - !tNeedsToSetBounds); - renderPositiveXFacing( - null, - aRenderer, - aBlock, - 0, - 0, - 0, - tRenderer.getTexture(aBlock, (byte) EAST.ordinal(), true, i), - !tNeedsToSetBounds); - } - } - if (tNeedsToSetBounds) aBlock.setBlockBounds(0, 0, 0, 1, 1, 1); - - } else { - if (aBlock instanceof GT_Block_Ores_Abstract) { - final GT_TileEntity_Ores tTileEntity = new GT_TileEntity_Ores(); - tTileEntity.mMetaData = ((short) aMeta); - - aBlock.setBlockBoundsForItemRender(); - aRenderer.setRenderBoundsFromBlock(aBlock); - renderNegativeYFacing( null, aRenderer, aBlock, 0, 0, 0, - tTileEntity.getTexture(aBlock, (byte) DOWN.ordinal()), - true); - renderPositiveYFacing( + tRenderer.getTexture(aBlock, (byte) DOWN.ordinal(), true, i), + !tNeedsToSetBounds); + renderPositiveYFacing( null, aRenderer, aBlock, 0, 0, 0, - tTileEntity.getTexture(aBlock, (byte) UP.ordinal()), - true); - renderNegativeZFacing( + tRenderer.getTexture(aBlock, (byte) UP.ordinal(), true, i), + !tNeedsToSetBounds); + renderNegativeZFacing( null, aRenderer, aBlock, 0, 0, 0, - tTileEntity.getTexture(aBlock, (byte) NORTH.ordinal()), - true); - renderPositiveZFacing( + tRenderer.getTexture(aBlock, (byte) NORTH.ordinal(), true, i), + !tNeedsToSetBounds); + renderPositiveZFacing( null, aRenderer, aBlock, 0, 0, 0, - tTileEntity.getTexture(aBlock, (byte) SOUTH.ordinal()), - true); - renderNegativeXFacing( + tRenderer.getTexture(aBlock, (byte) SOUTH.ordinal(), true, i), + !tNeedsToSetBounds); + renderNegativeXFacing( null, aRenderer, aBlock, 0, 0, 0, - tTileEntity.getTexture(aBlock, (byte) WEST.ordinal()), - true); - renderPositiveXFacing( + tRenderer.getTexture(aBlock, (byte) WEST.ordinal(), true, i), + !tNeedsToSetBounds); + renderPositiveXFacing( null, aRenderer, aBlock, 0, 0, 0, - tTileEntity.getTexture(aBlock, (byte) EAST.ordinal()), - true); - } else if (aMeta > 0 && (aMeta < GregTech_API.METATILEENTITIES.length) - && aBlock instanceof GT_Block_Machines - && (GregTech_API.METATILEENTITIES[aMeta] != null) - && (!GregTech_API.METATILEENTITIES[aMeta].renderInInventory(aBlock, aMeta, aRenderer))) { - renderNormalInventoryMetaTileEntity(aBlock, aMeta, aRenderer); - } - aBlock.setBlockBounds(blockMin, blockMin, blockMin, blockMax, blockMax, blockMax); - } - - aRenderer.setRenderBoundsFromBlock(aBlock); - - GL11.glTranslatef(0.5F, 0.5F, 0.5F); - aRenderer.useInventoryTint = false; - } - - private static void renderNormalInventoryMetaTileEntity(Block aBlock, int aMeta, RenderBlocks aRenderer) { - if ((aMeta <= 0) || (aMeta >= GregTech_API.METATILEENTITIES.length)) { - return; - } - final IMetaTileEntity tMetaTileEntity = GregTech_API.METATILEENTITIES[aMeta]; - if (tMetaTileEntity == null) { - return; - } - aBlock.setBlockBoundsForItemRender(); - aRenderer.setRenderBoundsFromBlock(aBlock); - - final IGregTechTileEntity iGregTechTileEntity = tMetaTileEntity.getBaseMetaTileEntity(); + tRenderer.getTexture(aBlock, (byte) EAST.ordinal(), true, i), + !tNeedsToSetBounds); + } + } + if (tNeedsToSetBounds) aBlock.setBlockBounds(0, 0, 0, 1, 1, 1); - if ((iGregTechTileEntity instanceof IPipeRenderedTileEntity)) { - final float tThickness = ((IPipeRenderedTileEntity) iGregTechTileEntity).getThickNess(); - final float pipeMin = (blockMax - tThickness) / 2.0F; - final float pipeMax = blockMax - pipeMin; + } else { + if (aBlock instanceof GT_Block_Ores_Abstract) { + final GT_TileEntity_Ores tTileEntity = new GT_TileEntity_Ores(); + tTileEntity.mMetaData = ((short) aMeta); - aBlock.setBlockBounds(blockMin, pipeMin, pipeMin, blockMax, pipeMax, pipeMax); - aRenderer.setRenderBoundsFromBlock(aBlock); - renderNegativeYFacing( + aBlock.setBlockBoundsForItemRender(); + aRenderer.setRenderBoundsFromBlock(aBlock); + renderNegativeYFacing( null, aRenderer, aBlock, 0, 0, 0, - tMetaTileEntity.getTexture( - iGregTechTileEntity, - (byte) DOWN.ordinal(), - (byte) (CONNECTED_WEST | CONNECTED_EAST), - (byte) -1, - false, - false), + tTileEntity.getTexture(aBlock, (byte) DOWN.ordinal()), true); - renderPositiveYFacing( + renderPositiveYFacing( null, aRenderer, aBlock, 0, 0, 0, - tMetaTileEntity.getTexture( - iGregTechTileEntity, - (byte) UP.ordinal(), - (byte) (CONNECTED_WEST | CONNECTED_EAST), - (byte) -1, - false, - false), + tTileEntity.getTexture(aBlock, (byte) UP.ordinal()), true); - renderNegativeZFacing( + renderNegativeZFacing( null, aRenderer, aBlock, 0, 0, 0, - tMetaTileEntity.getTexture( - iGregTechTileEntity, - (byte) NORTH.ordinal(), - (byte) (CONNECTED_WEST | CONNECTED_EAST), - (byte) -1, - false, - false), + tTileEntity.getTexture(aBlock, (byte) NORTH.ordinal()), true); - renderPositiveZFacing( + renderPositiveZFacing( null, aRenderer, aBlock, 0, 0, 0, - tMetaTileEntity.getTexture( - iGregTechTileEntity, - (byte) SOUTH.ordinal(), - (byte) (CONNECTED_WEST | CONNECTED_EAST), - (byte) -1, - false, - false), + tTileEntity.getTexture(aBlock, (byte) SOUTH.ordinal()), true); - renderNegativeXFacing( + renderNegativeXFacing( null, aRenderer, aBlock, 0, 0, 0, - tMetaTileEntity.getTexture( - iGregTechTileEntity, - (byte) WEST.ordinal(), - (byte) (CONNECTED_WEST | CONNECTED_EAST), - (byte) -1, - true, - false), + tTileEntity.getTexture(aBlock, (byte) WEST.ordinal()), true); - renderPositiveXFacing( + renderPositiveXFacing( null, aRenderer, aBlock, 0, 0, 0, - tMetaTileEntity.getTexture( - iGregTechTileEntity, - (byte) EAST.ordinal(), - (byte) (CONNECTED_WEST | CONNECTED_EAST), - (byte) -1, - true, - false), + tTileEntity.getTexture(aBlock, (byte) EAST.ordinal()), true); + } else if (aMeta > 0 && (aMeta < GregTech_API.METATILEENTITIES.length) + && aBlock instanceof GT_Block_Machines + && (GregTech_API.METATILEENTITIES[aMeta] != null) + && (!GregTech_API.METATILEENTITIES[aMeta].renderInInventory(aBlock, aMeta, aRenderer))) { + renderNormalInventoryMetaTileEntity(aBlock, aMeta, aRenderer); + } + aBlock.setBlockBounds(blockMin, blockMin, blockMin, blockMax, blockMax, blockMax); + } + + aRenderer.setRenderBoundsFromBlock(aBlock); + + GL11.glTranslatef(0.5F, 0.5F, 0.5F); + aRenderer.useInventoryTint = false; + } + + private static void renderNormalInventoryMetaTileEntity(Block aBlock, int aMeta, RenderBlocks aRenderer) { + if ((aMeta <= 0) || (aMeta >= GregTech_API.METATILEENTITIES.length)) { + return; + } + final IMetaTileEntity tMetaTileEntity = GregTech_API.METATILEENTITIES[aMeta]; + if (tMetaTileEntity == null) { + return; + } + aBlock.setBlockBoundsForItemRender(); + aRenderer.setRenderBoundsFromBlock(aBlock); + + final IGregTechTileEntity iGregTechTileEntity = tMetaTileEntity.getBaseMetaTileEntity(); + + if ((iGregTechTileEntity instanceof IPipeRenderedTileEntity)) { + final float tThickness = ((IPipeRenderedTileEntity) iGregTechTileEntity).getThickNess(); + final float pipeMin = (blockMax - tThickness) / 2.0F; + final float pipeMax = blockMax - pipeMin; + + aBlock.setBlockBounds(blockMin, pipeMin, pipeMin, blockMax, pipeMax, pipeMax); + aRenderer.setRenderBoundsFromBlock(aBlock); + renderNegativeYFacing( + null, + aRenderer, + aBlock, + 0, + 0, + 0, + tMetaTileEntity.getTexture( + iGregTechTileEntity, + (byte) DOWN.ordinal(), + (byte) (CONNECTED_WEST | CONNECTED_EAST), + (byte) -1, + false, + false), + true); + renderPositiveYFacing( + null, + aRenderer, + aBlock, + 0, + 0, + 0, + tMetaTileEntity.getTexture( + iGregTechTileEntity, + (byte) UP.ordinal(), + (byte) (CONNECTED_WEST | CONNECTED_EAST), + (byte) -1, + false, + false), + true); + renderNegativeZFacing( + null, + aRenderer, + aBlock, + 0, + 0, + 0, + tMetaTileEntity.getTexture( + iGregTechTileEntity, + (byte) NORTH.ordinal(), + (byte) (CONNECTED_WEST | CONNECTED_EAST), + (byte) -1, + false, + false), + true); + renderPositiveZFacing( + null, + aRenderer, + aBlock, + 0, + 0, + 0, + tMetaTileEntity.getTexture( + iGregTechTileEntity, + (byte) SOUTH.ordinal(), + (byte) (CONNECTED_WEST | CONNECTED_EAST), + (byte) -1, + false, + false), + true); + renderNegativeXFacing( + null, + aRenderer, + aBlock, + 0, + 0, + 0, + tMetaTileEntity.getTexture( + iGregTechTileEntity, + (byte) WEST.ordinal(), + (byte) (CONNECTED_WEST | CONNECTED_EAST), + (byte) -1, + true, + false), + true); + renderPositiveXFacing( + null, + aRenderer, + aBlock, + 0, + 0, + 0, + tMetaTileEntity.getTexture( + iGregTechTileEntity, + (byte) EAST.ordinal(), + (byte) (CONNECTED_WEST | CONNECTED_EAST), + (byte) -1, + true, + false), + true); } else { renderNegativeYFacing( - null, - aRenderer, - aBlock, - 0, - 0, - 0, - tMetaTileEntity.getTexture( - iGregTechTileEntity, - (byte) DOWN.ordinal(), - (byte) WEST.ordinal(), - (byte) -1, - true, - false), - true); + null, + aRenderer, + aBlock, + 0, + 0, + 0, + tMetaTileEntity.getTexture( + iGregTechTileEntity, + (byte) DOWN.ordinal(), + (byte) WEST.ordinal(), + (byte) -1, + true, + false), + true); renderPositiveYFacing( - null, - aRenderer, - aBlock, - 0, - 0, - 0, - tMetaTileEntity.getTexture( - iGregTechTileEntity, - (byte) UP.ordinal(), - (byte) WEST.ordinal(), - (byte) -1, - true, - false), - true); + null, + aRenderer, + aBlock, + 0, + 0, + 0, + tMetaTileEntity.getTexture( + iGregTechTileEntity, + (byte) UP.ordinal(), + (byte) WEST.ordinal(), + (byte) -1, + true, + false), + true); renderNegativeZFacing( - null, - aRenderer, - aBlock, - 0, - 0, - 0, - tMetaTileEntity.getTexture( - iGregTechTileEntity, - (byte) NORTH.ordinal(), - (byte) WEST.ordinal(), - (byte) -1, - true, - false), - true); + null, + aRenderer, + aBlock, + 0, + 0, + 0, + tMetaTileEntity.getTexture( + iGregTechTileEntity, + (byte) NORTH.ordinal(), + (byte) WEST.ordinal(), + (byte) -1, + true, + false), + true); renderPositiveZFacing( - null, - aRenderer, - aBlock, - 0, - 0, - 0, - tMetaTileEntity.getTexture( - iGregTechTileEntity, - (byte) SOUTH.ordinal(), - (byte) WEST.ordinal(), - (byte) -1, - true, - false), - true); + null, + aRenderer, + aBlock, + 0, + 0, + 0, + tMetaTileEntity.getTexture( + iGregTechTileEntity, + (byte) SOUTH.ordinal(), + (byte) WEST.ordinal(), + (byte) -1, + true, + false), + true); renderNegativeXFacing( - null, - aRenderer, - aBlock, - 0, - 0, - 0, - tMetaTileEntity.getTexture( - iGregTechTileEntity, - (byte) WEST.ordinal(), - (byte) WEST.ordinal(), - (byte) -1, - true, - false), - true); + null, + aRenderer, + aBlock, + 0, + 0, + 0, + tMetaTileEntity.getTexture( + iGregTechTileEntity, + (byte) WEST.ordinal(), + (byte) WEST.ordinal(), + (byte) -1, + true, + false), + true); renderPositiveXFacing( - null, - aRenderer, - aBlock, - 0, - 0, - 0, - tMetaTileEntity.getTexture( - iGregTechTileEntity, - (byte) EAST.ordinal(), - (byte) WEST.ordinal(), - (byte) -1, - true, - false), - true); + null, + aRenderer, + aBlock, + 0, + 0, + 0, + tMetaTileEntity.getTexture( + iGregTechTileEntity, + (byte) EAST.ordinal(), + (byte) WEST.ordinal(), + (byte) -1, + true, + false), + true); } } public static void renderNegativeYFacing(IBlockAccess aWorld, RenderBlocks aRenderer, Block aBlock, int aX, int aY, - int aZ, ITexture[] aIcon, boolean aFullBlock) { + int aZ, ITexture[] aIcon, boolean aFullBlock) { if (aWorld != null) { if ((aFullBlock) && (!aBlock.shouldSideBeRendered(aWorld, aX, aY - 1, aZ, 0))) return; - Tessellator.instance.setBrightness( - aBlock.getMixedBrightnessForBlock(aWorld, aX, aFullBlock ? aY - 1 : aY, aZ)); + Tessellator.instance + .setBrightness(aBlock.getMixedBrightnessForBlock(aWorld, aX, aFullBlock ? aY - 1 : aY, aZ)); } if (aIcon == null) return; for (ITexture iTexture : aIcon) { @@ -909,11 +900,11 @@ public class GT_Renderer_Block implements ISimpleBlockRenderingHandler { } public static void renderPositiveYFacing(IBlockAccess aWorld, RenderBlocks aRenderer, Block aBlock, int aX, int aY, - int aZ, ITexture[] aIcon, boolean aFullBlock) { + int aZ, ITexture[] aIcon, boolean aFullBlock) { if (aWorld != null) { if ((aFullBlock) && (!aBlock.shouldSideBeRendered(aWorld, aX, aY + 1, aZ, 1))) return; - Tessellator.instance.setBrightness( - aBlock.getMixedBrightnessForBlock(aWorld, aX, aFullBlock ? aY + 1 : aY, aZ)); + Tessellator.instance + .setBrightness(aBlock.getMixedBrightnessForBlock(aWorld, aX, aFullBlock ? aY + 1 : aY, aZ)); } if (aIcon == null) return; for (ITexture iTexture : aIcon) { @@ -924,11 +915,11 @@ public class GT_Renderer_Block implements ISimpleBlockRenderingHandler { } public static void renderNegativeZFacing(IBlockAccess aWorld, RenderBlocks aRenderer, Block aBlock, int aX, int aY, - int aZ, ITexture[] aIcon, boolean aFullBlock) { + int aZ, ITexture[] aIcon, boolean aFullBlock) { if (aWorld != null) { if ((aFullBlock) && (!aBlock.shouldSideBeRendered(aWorld, aX, aY, aZ - 1, 2))) return; - Tessellator.instance.setBrightness( - aBlock.getMixedBrightnessForBlock(aWorld, aX, aY, aFullBlock ? aZ - 1 : aZ)); + Tessellator.instance + .setBrightness(aBlock.getMixedBrightnessForBlock(aWorld, aX, aY, aFullBlock ? aZ - 1 : aZ)); } if (aIcon == null) return; for (ITexture iTexture : aIcon) { @@ -939,11 +930,11 @@ public class GT_Renderer_Block implements ISimpleBlockRenderingHandler { } public static void renderPositiveZFacing(IBlockAccess aWorld, RenderBlocks aRenderer, Block aBlock, int aX, int aY, - int aZ, ITexture[] aIcon, boolean aFullBlock) { + int aZ, ITexture[] aIcon, boolean aFullBlock) { if (aWorld != null) { if ((aFullBlock) && (!aBlock.shouldSideBeRendered(aWorld, aX, aY, aZ + 1, 3))) return; - Tessellator.instance.setBrightness( - aBlock.getMixedBrightnessForBlock(aWorld, aX, aY, aFullBlock ? aZ + 1 : aZ)); + Tessellator.instance + .setBrightness(aBlock.getMixedBrightnessForBlock(aWorld, aX, aY, aFullBlock ? aZ + 1 : aZ)); } if (aIcon == null) return; for (ITexture iTexture : aIcon) { @@ -954,11 +945,11 @@ public class GT_Renderer_Block implements ISimpleBlockRenderingHandler { } public static void renderNegativeXFacing(IBlockAccess aWorld, RenderBlocks aRenderer, Block aBlock, int aX, int aY, - int aZ, ITexture[] aIcon, boolean aFullBlock) { + int aZ, ITexture[] aIcon, boolean aFullBlock) { if (aWorld != null) { if ((aFullBlock) && (!aBlock.shouldSideBeRendered(aWorld, aX - 1, aY, aZ, 4))) return; - Tessellator.instance.setBrightness( - aBlock.getMixedBrightnessForBlock(aWorld, aFullBlock ? aX - 1 : aX, aY, aZ)); + Tessellator.instance + .setBrightness(aBlock.getMixedBrightnessForBlock(aWorld, aFullBlock ? aX - 1 : aX, aY, aZ)); } if (aIcon == null) return; for (ITexture iTexture : aIcon) { @@ -969,11 +960,11 @@ public class GT_Renderer_Block implements ISimpleBlockRenderingHandler { } public static void renderPositiveXFacing(IBlockAccess aWorld, RenderBlocks aRenderer, Block aBlock, int aX, int aY, - int aZ, ITexture[] aIcon, boolean aFullBlock) { + int aZ, ITexture[] aIcon, boolean aFullBlock) { if (aWorld != null) { if ((aFullBlock) && (!aBlock.shouldSideBeRendered(aWorld, aX + 1, aY, aZ, 5))) return; - Tessellator.instance.setBrightness( - aBlock.getMixedBrightnessForBlock(aWorld, aFullBlock ? aX + 1 : aX, aY, aZ)); + Tessellator.instance + .setBrightness(aBlock.getMixedBrightnessForBlock(aWorld, aFullBlock ? aX + 1 : aX, aY, aZ)); } if (aIcon == null) return; for (ITexture iTexture : aIcon) { @@ -985,7 +976,7 @@ public class GT_Renderer_Block implements ISimpleBlockRenderingHandler { @Override public boolean renderWorldBlock(IBlockAccess aWorld, int aX, int aY, int aZ, Block aBlock, int aModelID, - RenderBlocks aRenderer) { + RenderBlocks aRenderer) { aRenderer.enableAO = Minecraft.isAmbientOcclusionEnabled() && GT_Mod.gregtechproxy.mRenderTileAmbientOcclusion; aRenderer.useInventoryTint = false; if (aBlock instanceof IRenderedBlock) { @@ -999,18 +990,11 @@ public class GT_Renderer_Block implements ISimpleBlockRenderingHandler { } else { final boolean[] tSides = new boolean[6]; if (tRenderer instanceof IRenderedBlockSideCheck) { - for (byte tSide : ALL_VALID_SIDES) - rReturn |= (tSides[tSide] = ((IRenderedBlockSideCheck) tRenderer).renderFullBlockSide( - aBlock, - aRenderer, - tSide)); + for (byte tSide : ALL_VALID_SIDES) rReturn |= (tSides[tSide] = ((IRenderedBlockSideCheck) tRenderer) + .renderFullBlockSide(aBlock, aRenderer, tSide)); } else { - for (byte tSide : ALL_VALID_SIDES) rReturn |= (tSides[tSide] = aBlock.shouldSideBeRendered( - aWorld, - aX + OFFX[tSide], - aY + OFFY[tSide], - aZ + OFFZ[tSide], - tSide)); + for (byte tSide : ALL_VALID_SIDES) rReturn |= (tSides[tSide] = aBlock + .shouldSideBeRendered(aWorld, aX + OFFX[tSide], aY + OFFY[tSide], aZ + OFFZ[tSide], tSide)); } for (int i = 0, j = tRenderer.getRenderPasses(aBlock); i < j; i++) { if (tRenderer.usesRenderPass(i)) { @@ -1023,59 +1007,59 @@ public class GT_Renderer_Block implements ISimpleBlockRenderingHandler { tNeedsToSetBounds = false; } renderNegativeYFacing( - aWorld, - aRenderer, - aBlock, - aX, - aY, - aZ, - tRenderer.getTexture(aBlock, (byte) DOWN.ordinal(), i, tSides), - tSides[DOWN.ordinal()]); + aWorld, + aRenderer, + aBlock, + aX, + aY, + aZ, + tRenderer.getTexture(aBlock, (byte) DOWN.ordinal(), i, tSides), + tSides[DOWN.ordinal()]); renderPositiveYFacing( - aWorld, - aRenderer, - aBlock, - aX, - aY, - aZ, - tRenderer.getTexture(aBlock, (byte) UP.ordinal(), i, tSides), - tSides[UP.ordinal()]); + aWorld, + aRenderer, + aBlock, + aX, + aY, + aZ, + tRenderer.getTexture(aBlock, (byte) UP.ordinal(), i, tSides), + tSides[UP.ordinal()]); renderNegativeZFacing( - aWorld, - aRenderer, - aBlock, - aX, - aY, - aZ, - tRenderer.getTexture(aBlock, (byte) NORTH.ordinal(), i, tSides), - tSides[NORTH.ordinal()]); + aWorld, + aRenderer, + aBlock, + aX, + aY, + aZ, + tRenderer.getTexture(aBlock, (byte) NORTH.ordinal(), i, tSides), + tSides[NORTH.ordinal()]); renderPositiveZFacing( - aWorld, - aRenderer, - aBlock, - aX, - aY, - aZ, - tRenderer.getTexture(aBlock, (byte) SOUTH.ordinal(), i, tSides), - tSides[SOUTH.ordinal()]); + aWorld, + aRenderer, + aBlock, + aX, + aY, + aZ, + tRenderer.getTexture(aBlock, (byte) SOUTH.ordinal(), i, tSides), + tSides[SOUTH.ordinal()]); renderNegativeXFacing( - aWorld, - aRenderer, - aBlock, - aX, - aY, - aZ, - tRenderer.getTexture(aBlock, (byte) WEST.ordinal(), i, tSides), - tSides[WEST.ordinal()]); + aWorld, + aRenderer, + aBlock, + aX, + aY, + aZ, + tRenderer.getTexture(aBlock, (byte) WEST.ordinal(), i, tSides), + tSides[WEST.ordinal()]); renderPositiveXFacing( - aWorld, - aRenderer, - aBlock, - aX, - aY, - aZ, - tRenderer.getTexture(aBlock, (byte) EAST.ordinal(), i, tSides), - tSides[EAST.ordinal()]); + aWorld, + aRenderer, + aBlock, + aX, + aY, + aZ, + tRenderer.getTexture(aBlock, (byte) EAST.ordinal(), i, tSides), + tSides[EAST.ordinal()]); } } if (tNeedsToSetBounds) aBlock.setBlockBounds(0, 0, 0, 1, 1, 1); @@ -1089,13 +1073,13 @@ public class GT_Renderer_Block implements ISimpleBlockRenderingHandler { if (tileEntity instanceof IGregTechTileEntity) { final IMetaTileEntity metaTileEntity; if ((metaTileEntity = ((IGregTechTileEntity) tileEntity).getMetaTileEntity()) != null - && metaTileEntity.renderInWorld(aWorld, aX, aY, aZ, aBlock, aRenderer)) { + && metaTileEntity.renderInWorld(aWorld, aX, aY, aZ, aBlock, aRenderer)) { aRenderer.enableAO = false; return true; } } if (tileEntity instanceof IPipeRenderedTileEntity - && renderPipeBlock(aWorld, aX, aY, aZ, aBlock, (IPipeRenderedTileEntity) tileEntity, aRenderer)) { + && renderPipeBlock(aWorld, aX, aY, aZ, aBlock, (IPipeRenderedTileEntity) tileEntity, aRenderer)) { aRenderer.enableAO = false; return true; } diff --git a/src/main/java/gregtech/common/render/GT_SidedTexture.java b/src/main/java/gregtech/common/render/GT_SidedTexture.java index 912e339208..7a851fd1e7 100644 --- a/src/main/java/gregtech/common/render/GT_SidedTexture.java +++ b/src/main/java/gregtech/common/render/GT_SidedTexture.java @@ -19,12 +19,12 @@ public class GT_SidedTexture extends GT_TextureBase implements ITexture, IColorM private final short[] mRGBa; protected GT_SidedTexture(IIconContainer aIcon0, IIconContainer aIcon1, IIconContainer aIcon2, - IIconContainer aIcon3, IIconContainer aIcon4, IIconContainer aIcon5, short[] aRGBa, boolean aAllowAlpha) { + IIconContainer aIcon3, IIconContainer aIcon4, IIconContainer aIcon5, short[] aRGBa, boolean aAllowAlpha) { if (aRGBa.length != 4) throw new IllegalArgumentException("RGBa doesn't have 4 Values @ GT_RenderedTexture"); mTextures = new ITexture[] { TextureFactory.of(aIcon0, aRGBa, aAllowAlpha), - TextureFactory.of(aIcon1, aRGBa, aAllowAlpha), TextureFactory.of(aIcon2, aRGBa, aAllowAlpha), - TextureFactory.of(aIcon3, aRGBa, aAllowAlpha), TextureFactory.of(aIcon4, aRGBa, aAllowAlpha), - TextureFactory.of(aIcon5, aRGBa, aAllowAlpha) }; + TextureFactory.of(aIcon1, aRGBa, aAllowAlpha), TextureFactory.of(aIcon2, aRGBa, aAllowAlpha), + TextureFactory.of(aIcon3, aRGBa, aAllowAlpha), TextureFactory.of(aIcon4, aRGBa, aAllowAlpha), + TextureFactory.of(aIcon5, aRGBa, aAllowAlpha) }; mRGBa = aRGBa; } diff --git a/src/main/java/gregtech/common/render/GT_TextureBuilder.java b/src/main/java/gregtech/common/render/GT_TextureBuilder.java index 56009c2971..af8a590fc1 100644 --- a/src/main/java/gregtech/common/render/GT_TextureBuilder.java +++ b/src/main/java/gregtech/common/render/GT_TextureBuilder.java @@ -121,23 +121,21 @@ public class GT_TextureBuilder implements ITextureBuilder { return switch (iconContainerList.size()) { case 1 -> new GT_RenderedTexture(iconContainerList.get(0), rgba, allowAlpha, glow, stdOrient, extFacing); case 6 -> new GT_SidedTexture( - iconContainerList.get(ForgeDirection.DOWN.ordinal()), - iconContainerList.get(ForgeDirection.UP.ordinal()), - iconContainerList.get(ForgeDirection.NORTH.ordinal()), - iconContainerList.get(ForgeDirection.SOUTH.ordinal()), - iconContainerList.get(ForgeDirection.WEST.ordinal()), - iconContainerList.get(ForgeDirection.EAST.ordinal()), - rgba, - allowAlpha); + iconContainerList.get(ForgeDirection.DOWN.ordinal()), + iconContainerList.get(ForgeDirection.UP.ordinal()), + iconContainerList.get(ForgeDirection.NORTH.ordinal()), + iconContainerList.get(ForgeDirection.SOUTH.ordinal()), + iconContainerList.get(ForgeDirection.WEST.ordinal()), + iconContainerList.get(ForgeDirection.EAST.ordinal()), + rgba, + allowAlpha); default -> throw new IllegalStateException("Invalid sideIconContainer count"); }; } private boolean isCTMBlock(Block fromBlock, int fromMeta) { - return GT_Mod.gregtechproxy.mCTMBlockCache.computeIfAbsent( - fromBlock, - (byte) fromMeta, - GT_TextureBuilder::apply); + return GT_Mod.gregtechproxy.mCTMBlockCache + .computeIfAbsent(fromBlock, (byte) fromMeta, GT_TextureBuilder::apply); } private static Boolean apply(Block b, Byte m) { diff --git a/src/main/java/gregtech/common/render/items/CosmicNeutroniumRenderer.java b/src/main/java/gregtech/common/render/items/CosmicNeutroniumRenderer.java index 5577e41d30..717a36b78f 100644 --- a/src/main/java/gregtech/common/render/items/CosmicNeutroniumRenderer.java +++ b/src/main/java/gregtech/common/render/items/CosmicNeutroniumRenderer.java @@ -94,14 +94,14 @@ public class CosmicNeutroniumRenderer extends GT_GeneratedMaterial_Renderer { } else { GL11.glEnable(GL11.GL_DEPTH_TEST); ItemRenderer.renderItemIn2D( - Tessellator.instance, - icon.getMaxU(), - icon.getMinV(), - icon.getMinU(), - icon.getMaxV(), - icon.getIconWidth(), - icon.getIconHeight(), - 0.0625F); + Tessellator.instance, + icon.getMaxU(), + icon.getMinV(), + icon.getMinU(), + icon.getMaxV(), + icon.getIconWidth(), + icon.getIconHeight(), + 0.0625F); } GL11.glPopMatrix(); } diff --git a/src/main/java/gregtech/common/render/items/GT_GeneratedItem_Renderer.java b/src/main/java/gregtech/common/render/items/GT_GeneratedItem_Renderer.java index fbd3798b76..1d3346a675 100644 --- a/src/main/java/gregtech/common/render/items/GT_GeneratedItem_Renderer.java +++ b/src/main/java/gregtech/common/render/items/GT_GeneratedItem_Renderer.java @@ -31,8 +31,8 @@ public class GT_GeneratedItem_Renderer implements IItemRenderer { @Override public boolean handleRenderType(ItemStack item, ItemRenderType type) { return type == ItemRenderType.EQUIPPED || type == ItemRenderType.EQUIPPED_FIRST_PERSON - || type == ItemRenderType.INVENTORY - || type == ItemRenderType.ENTITY; + || type == ItemRenderType.INVENTORY + || type == ItemRenderType.ENTITY; } @Override @@ -62,7 +62,7 @@ public class GT_GeneratedItem_Renderer implements IItemRenderer { tIcon = aItem.mIconList[(aMetaData - aItem.mOffset)][8]; } else { tIcon = aItem.mIconList[(aMetaData - aItem.mOffset)][(7 - - (int) Math.max(0L, Math.min(5L, (tStats[0] - tCharge) * 6L / tStats[0])))]; + - (int) Math.max(0L, Math.min(5L, (tStats[0] - tCharge) * 6L / tStats[0])))]; } } } else { @@ -87,14 +87,14 @@ public class GT_GeneratedItem_Renderer implements IItemRenderer { GT_RenderUtil.renderItemIcon(tIcon, 16.0D, 0.001D, 0.0F, 0.0F, -1.0F); } else { ItemRenderer.renderItemIn2D( - Tessellator.instance, - tIcon.getMaxU(), - tIcon.getMinV(), - tIcon.getMinU(), - tIcon.getMaxV(), - tIcon.getIconWidth(), - tIcon.getIconHeight(), - 0.0625F); + Tessellator.instance, + tIcon.getMaxU(), + tIcon.getMinV(), + tIcon.getMinU(), + tIcon.getMaxV(), + tIcon.getIconWidth(), + tIcon.getIconHeight(), + 0.0625F); } GL11.glDisable(GL11.GL_BLEND); } @@ -134,23 +134,23 @@ public class GT_GeneratedItem_Renderer implements IItemRenderer { GT_RenderUtil.renderItemIcon(inner, 16.0D, -0.001D, 0.0F, 0.0F, -1.0F); } else { ItemRenderer.renderItemIn2D( - Tessellator.instance, - inner.getMaxU(), - inner.getMinV(), - inner.getMinU(), - inner.getMaxV(), - inner.getIconWidth(), - inner.getIconHeight(), - 0.0625F); + Tessellator.instance, + inner.getMaxU(), + inner.getMinV(), + inner.getMinU(), + inner.getMaxV(), + inner.getIconWidth(), + inner.getIconHeight(), + 0.0625F); } FluidStack fluidStack = GT_Utility.getFluidForFilledItem(stack, true); if (fluidStack != null && fluidStack.getFluid() != null) { IIcon fluidIcon = fluidStack.getFluid() - .getIcon(fluidStack); + .getIcon(fluidStack); int fluidColor = fluidStack.getFluid() - .getColor(fluidStack); + .getColor(fluidStack); Minecraft.getMinecraft().renderEngine.bindTexture(TextureMap.locationBlocksTexture); markNeedsAnimationUpdate(fluidIcon); @@ -161,14 +161,14 @@ public class GT_GeneratedItem_Renderer implements IItemRenderer { GT_RenderUtil.renderItemIcon(fluidIcon, 16.0D, -0.001D, 0.0F, 0.0F, -1.0F); } else { ItemRenderer.renderItemIn2D( - Tessellator.instance, - fluidIcon.getMaxU(), - fluidIcon.getMinV(), - fluidIcon.getMinU(), - fluidIcon.getMaxV(), - fluidIcon.getIconWidth(), - fluidIcon.getIconHeight(), - 0.0625F); + Tessellator.instance, + fluidIcon.getMaxU(), + fluidIcon.getMinV(), + fluidIcon.getMinU(), + fluidIcon.getMaxV(), + fluidIcon.getIconWidth(), + fluidIcon.getIconHeight(), + 0.0625F); } GL11.glColor3ub((byte) -1, (byte) -1, (byte) -1); diff --git a/src/main/java/gregtech/common/render/items/GT_GeneratedMaterial_Renderer.java b/src/main/java/gregtech/common/render/items/GT_GeneratedMaterial_Renderer.java index ebfb06bcbe..449d4500f6 100644 --- a/src/main/java/gregtech/common/render/items/GT_GeneratedMaterial_Renderer.java +++ b/src/main/java/gregtech/common/render/items/GT_GeneratedMaterial_Renderer.java @@ -24,8 +24,8 @@ public class GT_GeneratedMaterial_Renderer implements IItemRenderer { @Override public boolean handleRenderType(ItemStack item, ItemRenderType type) { return type == ItemRenderType.EQUIPPED || type == ItemRenderType.EQUIPPED_FIRST_PERSON - || type == ItemRenderType.INVENTORY - || type == ItemRenderType.ENTITY; + || type == ItemRenderType.INVENTORY + || type == ItemRenderType.ENTITY; } @Override @@ -72,7 +72,7 @@ public class GT_GeneratedMaterial_Renderer implements IItemRenderer { if (tOverlay != null && aFluid != null && aFluid.getFluid() != null) { IIcon fluidIcon = aFluid.getFluid() - .getIcon(aFluid); + .getIcon(aFluid); if (fluidIcon != null) { markNeedsAnimationUpdate(fluidIcon); // Adds colour to a cells fluid. Does not colour full fluid icons as shown in NEI etc. @@ -92,7 +92,7 @@ public class GT_GeneratedMaterial_Renderer implements IItemRenderer { } protected void renderRegularItem(ItemRenderType type, ItemStack aStack, IIcon icon, boolean shouldModulateColor, - int pass, Object... data) { + int pass, Object... data) { renderRegularItem(type, aStack, icon, shouldModulateColor); } @@ -108,14 +108,14 @@ public class GT_GeneratedMaterial_Renderer implements IItemRenderer { GT_RenderUtil.renderItemIcon(icon, 16.0D, 0.001D, 0.0F, 0.0F, -1.0F); } else { ItemRenderer.renderItemIn2D( - Tessellator.instance, - icon.getMaxU(), - icon.getMinV(), - icon.getMinU(), - icon.getMaxV(), - icon.getIconWidth(), - icon.getIconHeight(), - 0.0625F); + Tessellator.instance, + icon.getMaxU(), + icon.getMinV(), + icon.getMinU(), + icon.getMaxV(), + icon.getIconWidth(), + icon.getIconHeight(), + 0.0625F); } } @@ -130,14 +130,14 @@ public class GT_GeneratedMaterial_Renderer implements IItemRenderer { GT_RenderUtil.renderItemIcon(fluidIcon, 16.0D, 0.001D, 0.0F, 0.0F, -1.0F); } else { ItemRenderer.renderItemIn2D( - Tessellator.instance, - fluidIcon.getMaxU(), - fluidIcon.getMinV(), - fluidIcon.getMinU(), - fluidIcon.getMaxV(), - fluidIcon.getIconWidth(), - fluidIcon.getIconHeight(), - 0.0625F); + Tessellator.instance, + fluidIcon.getMaxU(), + fluidIcon.getMinV(), + fluidIcon.getMinU(), + fluidIcon.getMaxV(), + fluidIcon.getIconWidth(), + fluidIcon.getIconHeight(), + 0.0625F); } GL11.glDepthFunc(GL11.GL_LEQUAL); } @@ -147,14 +147,14 @@ public class GT_GeneratedMaterial_Renderer implements IItemRenderer { GT_RenderUtil.renderItemIcon(overlay, 16.0D, 0.001D, 0.0F, 0.0F, -1.0F); } else { ItemRenderer.renderItemIn2D( - Tessellator.instance, - overlay.getMaxU(), - overlay.getMinV(), - overlay.getMinU(), - overlay.getMaxV(), - overlay.getIconWidth(), - overlay.getIconHeight(), - 0.0625F); + Tessellator.instance, + overlay.getMaxU(), + overlay.getMinV(), + overlay.getMinU(), + overlay.getMaxV(), + overlay.getIconWidth(), + overlay.getIconHeight(), + 0.0625F); } } diff --git a/src/main/java/gregtech/common/render/items/GT_MetaGenerated_Item_Renderer.java b/src/main/java/gregtech/common/render/items/GT_MetaGenerated_Item_Renderer.java index 8dac142cb1..78f8401abb 100644 --- a/src/main/java/gregtech/common/render/items/GT_MetaGenerated_Item_Renderer.java +++ b/src/main/java/gregtech/common/render/items/GT_MetaGenerated_Item_Renderer.java @@ -28,8 +28,8 @@ public class GT_MetaGenerated_Item_Renderer implements IItemRenderer { @Override public boolean handleRenderType(ItemStack aStack, ItemRenderType aType) { if ((GT_Utility.isStackInvalid(aStack)) || (aStack.getItemDamage() < 0) - || !(aStack.getItem() instanceof IGT_ItemWithMaterialRenderer) - || !((IGT_ItemWithMaterialRenderer) aStack.getItem()).shouldUseCustomRenderer(aStack.getItemDamage())) { + || !(aStack.getItem() instanceof IGT_ItemWithMaterialRenderer) + || !((IGT_ItemWithMaterialRenderer) aStack.getItem()).shouldUseCustomRenderer(aStack.getItemDamage())) { return false; } return getRendererForItemStack(aStack).handleRenderType(aStack, aType); diff --git a/src/main/java/gregtech/common/render/items/GaiaSpiritRenderer.java b/src/main/java/gregtech/common/render/items/GaiaSpiritRenderer.java index 5f226f6c98..97f5096948 100644 --- a/src/main/java/gregtech/common/render/items/GaiaSpiritRenderer.java +++ b/src/main/java/gregtech/common/render/items/GaiaSpiritRenderer.java @@ -28,14 +28,14 @@ public class GaiaSpiritRenderer extends GT_GeneratedMaterial_Renderer { GT_RenderUtil.renderItemIcon(icon, 16.0D, 0.001D, 0.0F, 0.0F, -1.0F); } else { ItemRenderer.renderItemIn2D( - Tessellator.instance, - icon.getMaxU(), - icon.getMinV(), - icon.getMinU(), - icon.getMaxV(), - icon.getIconWidth(), - icon.getIconHeight(), - 0.0625F); + Tessellator.instance, + icon.getMaxU(), + icon.getMinV(), + icon.getMinU(), + icon.getMaxV(), + icon.getIconWidth(), + icon.getIconHeight(), + 0.0625F); } } } diff --git a/src/main/java/gregtech/common/render/items/InfinityRenderer.java b/src/main/java/gregtech/common/render/items/InfinityRenderer.java index 3187ab8bcb..9e8b60ad5a 100644 --- a/src/main/java/gregtech/common/render/items/InfinityRenderer.java +++ b/src/main/java/gregtech/common/render/items/InfinityRenderer.java @@ -61,7 +61,7 @@ public class InfinityRenderer extends GT_GeneratedMaterial_Renderer { if (tOverlay != null && aFluid != null && aFluid.getFluid() != null) { IIcon fluidIcon = aFluid.getFluid() - .getIcon(aFluid); + .getIcon(aFluid); if (fluidIcon != null) { markNeedsAnimationUpdate(fluidIcon); // Adds colour to a cells fluid. Does not colour full fluid icons as shown in NEI etc. diff --git a/src/main/java/gregtech/common/render/items/TranscendentMetalRenderer.java b/src/main/java/gregtech/common/render/items/TranscendentMetalRenderer.java index 866c426e59..d9149f3ec9 100644 --- a/src/main/java/gregtech/common/render/items/TranscendentMetalRenderer.java +++ b/src/main/java/gregtech/common/render/items/TranscendentMetalRenderer.java @@ -21,19 +21,19 @@ public class TranscendentMetalRenderer extends GT_GeneratedMaterial_Renderer { // frameIndex should not have 3 or more frames with same value (unless it's meant to be still) // otherwise the primitive linear interpolation will render the animation in a pretty sluggish way private final int[] frameIndex = new int[] { 0, 0, 0, 0, 1, 1, 2, 3, 4, 5, 7, 8, 9, 10, 12, 13, 14, 16, 17, 19, 21, - 22, 24, 25, 27, 29, 30, 32, 33, 35, 36, 38, 39, 40, 42, 43, 44, 45, 46, 47, 48, 49, 50, 50, 49, 48, 47, 46, - 45, 44, 43, 42, 40, 39, 38, 36, 35, 33, 32, 30, 29, 27, 25, 24, 22, 21, 19, 17, 16, 14, 13, 12, 10, 9, 8, 7, - 5, 4, 3, 2, 1, 1, 0, 0, 0, 0 }; + 22, 24, 25, 27, 29, 30, 32, 33, 35, 36, 38, 39, 40, 42, 43, 44, 45, 46, 47, 48, 49, 50, 50, 49, 48, 47, 46, 45, + 44, 43, 42, 40, 39, 38, 36, 35, 33, 32, 30, 29, 27, 25, 24, 22, 21, 19, 17, 16, 14, 13, 12, 10, 9, 8, 7, 5, 4, + 3, 2, 1, 1, 0, 0, 0, 0 }; private final float[] frameRotation = new float[] { 0, 7, 14, 21, 28, 36, 43, 50, 57, 64, 72, 79, 86, 93, 100, 108, - 115, 122, 129, 136, 144, 151, 158, 165, 172, 180, 187, 194, 201, 208, 216, 223, 230, 237, 244, 252, 259, - 266, 273, 280, 288, 295, 302, 309, 316, 324, 331, 338, 345, 352, 360 }; + 115, 122, 129, 136, 144, 151, 158, 165, 172, 180, 187, 194, 201, 208, 216, 223, 230, 237, 244, 252, 259, 266, + 273, 280, 288, 295, 302, 309, 316, 324, 331, 338, 345, 352, 360 }; private final float[] frameAlpha = new float[] { 100 / 255f, 106 / 255f, 112 / 255f, 118 / 255f, 124 / 255f, - 131 / 255f, 137 / 255f, 143 / 255f, 149 / 255f, 155 / 255f, 162 / 255f, 168 / 255f, 174 / 255f, 180 / 255f, - 186 / 255f, 193 / 255f, 199 / 255f, 205 / 255f, 211 / 255f, 217 / 255f, 224 / 255f, 230 / 255f, 236 / 255f, - 242 / 255f, 248 / 255f, 255 / 255f, 248 / 255f, 242 / 255f, 236 / 255f, 230 / 255f, 224 / 255f, 217 / 255f, - 211 / 255f, 205 / 255f, 199 / 255f, 193 / 255f, 186 / 255f, 180 / 255f, 174 / 255f, 168 / 255f, 162 / 255f, - 155 / 255f, 149 / 255f, 143 / 255f, 137 / 255f, 131 / 255f, 124 / 255f, 118 / 255f, 112 / 255f, 106 / 255f, - 100 / 255f }; + 131 / 255f, 137 / 255f, 143 / 255f, 149 / 255f, 155 / 255f, 162 / 255f, 168 / 255f, 174 / 255f, 180 / 255f, + 186 / 255f, 193 / 255f, 199 / 255f, 205 / 255f, 211 / 255f, 217 / 255f, 224 / 255f, 230 / 255f, 236 / 255f, + 242 / 255f, 248 / 255f, 255 / 255f, 248 / 255f, 242 / 255f, 236 / 255f, 230 / 255f, 224 / 255f, 217 / 255f, + 211 / 255f, 205 / 255f, 199 / 255f, 193 / 255f, 186 / 255f, 180 / 255f, 174 / 255f, 168 / 255f, 162 / 255f, + 155 / 255f, 149 / 255f, 143 / 255f, 137 / 255f, 131 / 255f, 124 / 255f, 118 / 255f, 112 / 255f, 106 / 255f, + 100 / 255f }; private static float linearInterpolation(float[] controlPoints, int frameA, int frameB, float partial) { float a = controlPoints[frameA], b = controlPoints[frameB]; @@ -61,14 +61,14 @@ public class TranscendentMetalRenderer extends GT_GeneratedMaterial_Renderer { GT_RenderUtil.renderItemIcon(fluidIcon, 16.0D, 0.001D, 0.0F, 0.0F, -1.0F); } else { ItemRenderer.renderItemIn2D( - Tessellator.instance, - fluidIcon.getMaxU(), - fluidIcon.getMinV(), - fluidIcon.getMinU(), - fluidIcon.getMaxV(), - fluidIcon.getIconWidth(), - fluidIcon.getIconHeight(), - 0.0625F); + Tessellator.instance, + fluidIcon.getMaxU(), + fluidIcon.getMinV(), + fluidIcon.getMinU(), + fluidIcon.getMaxV(), + fluidIcon.getIconWidth(), + fluidIcon.getIconHeight(), + 0.0625F); } GL11.glDepthFunc(GL11.GL_LEQUAL); GL11.glPopMatrix(); @@ -102,10 +102,10 @@ public class TranscendentMetalRenderer extends GT_GeneratedMaterial_Renderer { if (shouldModulateColor) { GL11.glColor4f( - modulation[0] / 255.0F, - modulation[1] / 255.0F, - modulation[2] / 255.0F, - linearInterpolation(frameAlpha, frameCurrent, frameNext, partialTicks)); + modulation[0] / 255.0F, + modulation[1] / 255.0F, + modulation[2] / 255.0F, + linearInterpolation(frameAlpha, frameCurrent, frameNext, partialTicks)); } else { GL11.glColor4f(1f, 1f, 1f, linearInterpolation(frameAlpha, frameCurrent, frameNext, partialTicks)); } diff --git a/src/main/java/gregtech/common/render/items/UniversiumRenderer.java b/src/main/java/gregtech/common/render/items/UniversiumRenderer.java index 8f75bfb03e..b0d09348db 100644 --- a/src/main/java/gregtech/common/render/items/UniversiumRenderer.java +++ b/src/main/java/gregtech/common/render/items/UniversiumRenderer.java @@ -33,12 +33,12 @@ public class UniversiumRenderer extends GT_GeneratedMaterial_Renderer { @Override public boolean renderFluidDisplayItem(ItemRenderType type, ItemStack aStack, Object... data) { magicRenderMethod( - type, - ItemList.Emitter_UEV.get(1), // hack to make it render correctly - aStack.getItem() - .getIconFromDamage(aStack.getItemDamage()), - true, - data); + type, + ItemList.Emitter_UEV.get(1), // hack to make it render correctly + aStack.getItem() + .getIconFromDamage(aStack.getItemDamage()), + true, + data); return true; } @@ -79,7 +79,7 @@ public class UniversiumRenderer extends GT_GeneratedMaterial_Renderer { } private void magicRenderMethod(ItemRenderType type, ItemStack aStack, IIcon tIcon, boolean fluidDisplay, - Object... data) { + Object... data) { if (!GregTech_API.mEternalSingularity) return; RenderItem r = RenderItem.getInstance(); @@ -111,9 +111,9 @@ public class UniversiumRenderer extends GT_GeneratedMaterial_Renderer { if (fluidDisplay) { // this somehow makes shader render correctly ResourceLocation resourcelocation = mc.getTextureManager() - .getResourceLocation(aStack.getItemSpriteNumber()); + .getResourceLocation(aStack.getItemSpriteNumber()); mc.getTextureManager() - .bindTexture(resourcelocation); + .bindTexture(resourcelocation); } else { r.renderItemIntoGUI(mc.fontRenderer, mc.getTextureManager(), aStack, 0, 0, true); } @@ -181,15 +181,8 @@ public class UniversiumRenderer extends GT_GeneratedMaterial_Renderer { GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); // RENDER ITEM IN HAND - ItemRenderer.renderItemIn2D( - Tessellator.instance, - f1, - f2, - f, - f3, - icon.getIconWidth(), - icon.getIconHeight(), - scale); + ItemRenderer + .renderItemIn2D(Tessellator.instance, f1, f2, f, f3, icon.getIconWidth(), icon.getIconHeight(), scale); GL11.glDisable(GL11.GL_ALPHA_TEST); GL11.glDepthFunc(GL11.GL_EQUAL); @@ -203,14 +196,14 @@ public class UniversiumRenderer extends GT_GeneratedMaterial_Renderer { // RENDER COSMIC OVERLAY IN HAND ItemRenderer.renderItemIn2D( - Tessellator.instance, - maxu, - minv, - minu, - maxv, - icon.getIconWidth(), - icon.getIconHeight(), - scale); + Tessellator.instance, + maxu, + minv, + minu, + maxv, + icon.getIconWidth(), + icon.getIconHeight(), + scale); CosmicRenderStuffs.releaseShader(); GL11.glDepthFunc(GL11.GL_LEQUAL); GL11.glEnable(GL11.GL_ALPHA_TEST); @@ -227,20 +220,20 @@ public class UniversiumRenderer extends GT_GeneratedMaterial_Renderer { EntityItem ent = (EntityItem) (data[1]); if (ent != null) { CosmicRenderStuffs.setLightFromLocation( - ent.worldObj, - MathHelper.floor_double(ent.posX), - MathHelper.floor_double(ent.posY), - MathHelper.floor_double(ent.posZ)); + ent.worldObj, + MathHelper.floor_double(ent.posX), + MathHelper.floor_double(ent.posY), + MathHelper.floor_double(ent.posZ)); } } case EQUIPPED, EQUIPPED_FIRST_PERSON -> { EntityLivingBase ent = (EntityLivingBase) (data[1]); if (ent != null) { CosmicRenderStuffs.setLightFromLocation( - ent.worldObj, - MathHelper.floor_double(ent.posX), - MathHelper.floor_double(ent.posY), - MathHelper.floor_double(ent.posZ)); + ent.worldObj, + MathHelper.floor_double(ent.posX), + MathHelper.floor_double(ent.posY), + MathHelper.floor_double(ent.posZ)); } } case INVENTORY -> { diff --git a/src/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_ChestBuffer.java b/src/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_ChestBuffer.java index f1641bda0b..1711529de2 100644 --- a/src/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_ChestBuffer.java +++ b/src/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_ChestBuffer.java @@ -22,53 +22,53 @@ public class GT_MetaTileEntity_ChestBuffer extends GT_MetaTileEntity_Buffer impl public GT_MetaTileEntity_ChestBuffer(int aID, String aName, String aNameRegional, int aTier) { super( - aID, - aName, - aNameRegional, - aTier, - 28, - new String[] { "Buffers up to 27 Item Stacks", "Use Screwdriver to regulate output stack size", - "Does not consume energy to move Item", getTickRateDesc(aTier) }); + aID, + aName, + aNameRegional, + aTier, + 28, + new String[] { "Buffers up to 27 Item Stacks", "Use Screwdriver to regulate output stack size", + "Does not consume energy to move Item", getTickRateDesc(aTier) }); } public GT_MetaTileEntity_ChestBuffer(int aID, String aName, String aNameRegional, int aTier, int aInvSlotCount, - String aDescription) { + String aDescription) { super(aID, aName, aNameRegional, aTier, aInvSlotCount, aDescription); } public GT_MetaTileEntity_ChestBuffer(int aID, String aName, String aNameRegional, int aTier, int aInvSlotCount, - String[] aDescription) { + String[] aDescription) { super(aID, aName, aNameRegional, aTier, aInvSlotCount, aDescription); } public GT_MetaTileEntity_ChestBuffer(String aName, int aTier, int aInvSlotCount, String aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, aInvSlotCount, aDescription, aTextures); } public GT_MetaTileEntity_ChestBuffer(String aName, int aTier, int aInvSlotCount, String[] aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, aInvSlotCount, aDescription, aTextures); } @Override public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) { return new GT_MetaTileEntity_ChestBuffer( - this.mName, - this.mTier, - this.mInventory.length, - this.mDescriptionArray, - this.mTextures); + this.mName, + this.mTier, + this.mInventory.length, + this.mDescriptionArray, + this.mTextures); } @Override public ITexture getOverlayIcon() { return TextureFactory.of( - TextureFactory.of(AUTOMATION_CHESTBUFFER), - TextureFactory.builder() - .addIcon(AUTOMATION_CHESTBUFFER_GLOW) - .glow() - .build()); + TextureFactory.of(AUTOMATION_CHESTBUFFER), + TextureFactory.builder() + .addIcon(AUTOMATION_CHESTBUFFER_GLOW) + .glow() + .build()); } @Override @@ -125,9 +125,9 @@ public class GT_MetaTileEntity_ChestBuffer extends GT_MetaTileEntity_Buffer impl addInvertRedstoneButton(builder); addStockingModeButton(builder); builder.widget( - new DrawableWidget().setDrawable(GT_UITextures.PICTURE_ARROW_22_RED.apply(69, true)) - .setPos(80, 60) - .setSize(69, 22)); + new DrawableWidget().setDrawable(GT_UITextures.PICTURE_ARROW_22_RED.apply(69, true)) + .setPos(80, 60) + .setSize(69, 22)); addMainUI(builder); } diff --git a/src/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_Filter.java b/src/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_Filter.java index 6fc2b45289..c6c73cb02f 100644 --- a/src/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_Filter.java +++ b/src/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_Filter.java @@ -28,43 +28,43 @@ public class GT_MetaTileEntity_Filter extends GT_MetaTileEntity_Buffer implement public GT_MetaTileEntity_Filter(int aID, String aName, String aNameRegional, int aTier) { super( - aID, - aName, - aNameRegional, - aTier, - 19, - new String[] { "Filters up to 9 different Items", "Use Screwdriver to regulate output stack size", - "Does not consume energy to move Item" }); + aID, + aName, + aNameRegional, + aTier, + 19, + new String[] { "Filters up to 9 different Items", "Use Screwdriver to regulate output stack size", + "Does not consume energy to move Item" }); } public GT_MetaTileEntity_Filter(String aName, int aTier, int aInvSlotCount, String aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, aInvSlotCount, aDescription, aTextures); } public GT_MetaTileEntity_Filter(String aName, int aTier, int aInvSlotCount, String[] aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, aInvSlotCount, aDescription, aTextures); } @Override public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) { return new GT_MetaTileEntity_Filter( - this.mName, - this.mTier, - this.mInventory.length, - this.mDescriptionArray, - this.mTextures); + this.mName, + this.mTier, + this.mInventory.length, + this.mDescriptionArray, + this.mTextures); } @Override public ITexture getOverlayIcon() { return TextureFactory.of( - TextureFactory.of(AUTOMATION_FILTER), - TextureFactory.builder() - .addIcon(AUTOMATION_FILTER_GLOW) - .glow() - .build()); + TextureFactory.of(AUTOMATION_FILTER), + TextureFactory.builder() + .addIcon(AUTOMATION_FILTER_GLOW) + .glow() + .build()); } @Override @@ -123,69 +123,67 @@ public class GT_MetaTileEntity_Filter extends GT_MetaTileEntity_Buffer implement bInvertFilter = !bInvertFilter; if (bInvertFilter) { GT_Utility.sendChatToPlayer( - widget.getContext() - .getPlayer(), - GT_Utility.trans("124", "Invert Filter")); + widget.getContext() + .getPlayer(), + GT_Utility.trans("124", "Invert Filter")); } else { GT_Utility.sendChatToPlayer( - widget.getContext() - .getPlayer(), - GT_Utility.trans("125", "Don't invert Filter")); + widget.getContext() + .getPlayer(), + GT_Utility.trans("125", "Don't invert Filter")); } }) - .setBackground( - GT_UITextures.BUTTON_STANDARD, - GT_UITextures.OVERLAY_BUTTON_INVERT_FILTER) - .setPos(61, 62) - .setSize(18, 18)) - .widget(new ButtonWidget().setOnClick((clickData, widget) -> { - bIgnoreNBT = !bIgnoreNBT; - if (bIgnoreNBT) { - GT_Utility.sendChatToPlayer( - widget.getContext() - .getPlayer(), - GT_Utility.trans("126", "Ignore NBT")); - } else { - GT_Utility.sendChatToPlayer( - widget.getContext() - .getPlayer(), - GT_Utility.trans("127", "NBT has to match")); - } - }) - .setBackground(GT_UITextures.BUTTON_STANDARD, GT_UITextures.OVERLAY_BUTTON_NBT) - .setPos(79, 62) - .setSize(18, 18)) - .widget( - new DrawableWidget().setDrawable(GT_UITextures.PICTURE_ARROW_24_WHITE.apply(9, false)) - .setPos(6, 19) - .setSize(9, 24)) - .widget( - new DrawableWidget().setDrawable(GT_UITextures.PICTURE_ARROW_24_BLUE.apply(24, true)) - .setPos(71, 19) - .setSize(24, 24)) - .widget( - new DrawableWidget().setDrawable(GT_UITextures.PICTURE_ARROW_24_RED.apply(19, true)) - .setPos(152, 19) - .setSize(19, 24)) - .widget( - new DrawableWidget().setDrawable(GT_UITextures.PICTURE_SLOTS_HOLO_3BY3) - .setPos(16, 4) - .setSize(54, 54)) - .widget( - SlotGroup.ofItemHandler(inventoryHandler, 3) - .startFromSlot(9) - .endAtSlot(17) - .phantom(true) - .applyForWidget( - widget -> widget.disableShiftInsert() - .setBackground(GT_UITextures.TRANSPARENT)) - .build() - .setPos(16, 4)) - .widget( - SlotGroup.ofItemHandler(inventoryHandler, 3) - .startFromSlot(0) - .endAtSlot(8) - .build() - .setPos(97, 4)); + .setBackground(GT_UITextures.BUTTON_STANDARD, GT_UITextures.OVERLAY_BUTTON_INVERT_FILTER) + .setPos(61, 62) + .setSize(18, 18)) + .widget(new ButtonWidget().setOnClick((clickData, widget) -> { + bIgnoreNBT = !bIgnoreNBT; + if (bIgnoreNBT) { + GT_Utility.sendChatToPlayer( + widget.getContext() + .getPlayer(), + GT_Utility.trans("126", "Ignore NBT")); + } else { + GT_Utility.sendChatToPlayer( + widget.getContext() + .getPlayer(), + GT_Utility.trans("127", "NBT has to match")); + } + }) + .setBackground(GT_UITextures.BUTTON_STANDARD, GT_UITextures.OVERLAY_BUTTON_NBT) + .setPos(79, 62) + .setSize(18, 18)) + .widget( + new DrawableWidget().setDrawable(GT_UITextures.PICTURE_ARROW_24_WHITE.apply(9, false)) + .setPos(6, 19) + .setSize(9, 24)) + .widget( + new DrawableWidget().setDrawable(GT_UITextures.PICTURE_ARROW_24_BLUE.apply(24, true)) + .setPos(71, 19) + .setSize(24, 24)) + .widget( + new DrawableWidget().setDrawable(GT_UITextures.PICTURE_ARROW_24_RED.apply(19, true)) + .setPos(152, 19) + .setSize(19, 24)) + .widget( + new DrawableWidget().setDrawable(GT_UITextures.PICTURE_SLOTS_HOLO_3BY3) + .setPos(16, 4) + .setSize(54, 54)) + .widget( + SlotGroup.ofItemHandler(inventoryHandler, 3) + .startFromSlot(9) + .endAtSlot(17) + .phantom(true) + .applyForWidget( + widget -> widget.disableShiftInsert() + .setBackground(GT_UITextures.TRANSPARENT)) + .build() + .setPos(16, 4)) + .widget( + SlotGroup.ofItemHandler(inventoryHandler, 3) + .startFromSlot(0) + .endAtSlot(8) + .build() + .setPos(97, 4)); } } diff --git a/src/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_ItemDistributor.java b/src/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_ItemDistributor.java index 97bf8190b0..7b2978d701 100644 --- a/src/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_ItemDistributor.java +++ b/src/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_ItemDistributor.java @@ -29,49 +29,48 @@ public class GT_MetaTileEntity_ItemDistributor extends GT_MetaTileEntity_Buffer public GT_MetaTileEntity_ItemDistributor(int aID, String aName, String aNameRegional, int aTier) { super( - aID, - aName, - aNameRegional, - aTier, - 28, - new String[] { "Distributes Items between different Machine Sides", "Default Items per Machine Side: 0", - "Use Screwdriver to increase/decrease Items per Side", - "Does not consume energy to move Item" }); + aID, + aName, + aNameRegional, + aTier, + 28, + new String[] { "Distributes Items between different Machine Sides", "Default Items per Machine Side: 0", + "Use Screwdriver to increase/decrease Items per Side", "Does not consume energy to move Item" }); } public GT_MetaTileEntity_ItemDistributor(int aID, String aName, String aNameRegional, int aTier, int aInvSlotCount, - String aDescription) { + String aDescription) { super(aID, aName, aNameRegional, aTier, aInvSlotCount, aDescription); } public GT_MetaTileEntity_ItemDistributor(String aName, int aTier, int aInvSlotCount, String aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, aInvSlotCount, aDescription, aTextures); } public GT_MetaTileEntity_ItemDistributor(String aName, int aTier, int aInvSlotCount, String[] aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, aInvSlotCount, aDescription, aTextures); } @Override public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) { return new GT_MetaTileEntity_ItemDistributor( - this.mName, - this.mTier, - this.mInventory.length, - this.mDescriptionArray, - this.mTextures); + this.mName, + this.mTier, + this.mInventory.length, + this.mDescriptionArray, + this.mTextures); } @Override public ITexture getOverlayIcon() { return TextureFactory.of( - TextureFactory.of(AUTOMATION_ITEMDISTRIBUTOR), - TextureFactory.builder() - .addIcon(AUTOMATION_ITEMDISTRIBUTOR_GLOW) - .glow() - .build()); + TextureFactory.of(AUTOMATION_ITEMDISTRIBUTOR), + TextureFactory.builder() + .addIcon(AUTOMATION_ITEMDISTRIBUTOR_GLOW) + .glow() + .build()); } @Override @@ -81,7 +80,7 @@ public class GT_MetaTileEntity_ItemDistributor extends GT_MetaTileEntity_Buffer @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { if (aSide == aFacing) { return mTextures[0][aColorIndex + 1]; } else { @@ -142,16 +141,16 @@ public class GT_MetaTileEntity_ItemDistributor extends GT_MetaTileEntity_Buffer } } movedItems = GT_Utility.moveOneItemStack( - aBaseMetaTileEntity, - adjacentTileEntity, - currentSide, - GT_Utility.getOppositeSide(currentSide), - null, - false, - (byte) 64, - (byte) 1, - (byte) (itemsPerSide[currentSide] - currentSideItemCount), - (byte) 1); + aBaseMetaTileEntity, + adjacentTileEntity, + currentSide, + GT_Utility.getOppositeSide(currentSide), + null, + false, + (byte) 64, + (byte) 1, + (byte) (itemsPerSide[currentSide] - currentSideItemCount), + (byte) 1); currentSideItemCount += movedItems; if (currentSideItemCount >= itemsPerSide[currentSide]) { currentSide = (byte) ((currentSide + 1) % 6); @@ -191,9 +190,9 @@ public class GT_MetaTileEntity_ItemDistributor extends GT_MetaTileEntity_Buffer addEmitRedstoneButton(builder); addInvertRedstoneButton(builder); builder.widget( - new DrawableWidget().setDrawable(GT_UITextures.PICTURE_ARROW_22_RED.apply(87, true)) - .setPos(62, 60) - .setSize(87, 22)); + new DrawableWidget().setDrawable(GT_UITextures.PICTURE_ARROW_22_RED.apply(87, true)) + .setPos(62, 60) + .setSize(87, 22)); addInventorySlots(builder); } } diff --git a/src/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_RecipeFilter.java b/src/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_RecipeFilter.java index 60500310e0..f8e54f9edf 100644 --- a/src/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_RecipeFilter.java +++ b/src/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_RecipeFilter.java @@ -26,21 +26,21 @@ public class GT_MetaTileEntity_RecipeFilter extends GT_MetaTileEntity_SpecialFil public GT_MetaTileEntity_RecipeFilter(int aID, String aName, String aNameRegional, int aTier) { super( - aID, - aName, - aNameRegional, - aTier, - new String[] { "Filters 1 Recipe Type", "Use Screwdriver to regulate output stack size", - "Does not consume energy to move Item" }); + aID, + aName, + aNameRegional, + aTier, + new String[] { "Filters 1 Recipe Type", "Use Screwdriver to regulate output stack size", + "Does not consume energy to move Item" }); } public GT_MetaTileEntity_RecipeFilter(String aName, int aTier, int aInvSlotCount, String aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, aInvSlotCount, aDescription, aTextures); } public GT_MetaTileEntity_RecipeFilter(String aName, int aTier, int aInvSlotCount, String[] aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, aInvSlotCount, aDescription, aTextures); } @@ -64,21 +64,21 @@ public class GT_MetaTileEntity_RecipeFilter extends GT_MetaTileEntity_SpecialFil @Override public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) { return new GT_MetaTileEntity_RecipeFilter( - this.mName, - this.mTier, - this.mInventory.length, - this.mDescriptionArray, - this.mTextures); + this.mName, + this.mTier, + this.mInventory.length, + this.mDescriptionArray, + this.mTextures); } @Override public ITexture getOverlayIcon() { return TextureFactory.of( - TextureFactory.of(AUTOMATION_RECIPEFILTER), - TextureFactory.builder() - .addIcon(AUTOMATION_RECIPEFILTER_GLOW) - .glow() - .build()); + TextureFactory.of(AUTOMATION_RECIPEFILTER), + TextureFactory.builder() + .addIcon(AUTOMATION_RECIPEFILTER_GLOW) + .glow() + .build()); } @Override diff --git a/src/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_Regulator.java b/src/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_Regulator.java index e743dd47e4..9b0824aed1 100644 --- a/src/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_Regulator.java +++ b/src/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_Regulator.java @@ -33,43 +33,43 @@ public class GT_MetaTileEntity_Regulator extends GT_MetaTileEntity_Buffer implem public GT_MetaTileEntity_Regulator(int aID, String aName, String aNameRegional, int aTier) { super( - aID, - aName, - aNameRegional, - aTier, - 20, - new String[] { "Filters up to 9 different Items", "Allows Item-specific output stack size", - "Allows Item-specific output slot", "Does not consume energy to move Item" }); + aID, + aName, + aNameRegional, + aTier, + 20, + new String[] { "Filters up to 9 different Items", "Allows Item-specific output stack size", + "Allows Item-specific output slot", "Does not consume energy to move Item" }); } public GT_MetaTileEntity_Regulator(String aName, int aTier, int aInvSlotCount, String aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, aInvSlotCount, aDescription, aTextures); } public GT_MetaTileEntity_Regulator(String aName, int aTier, int aInvSlotCount, String[] aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, aInvSlotCount, aDescription, aTextures); } @Override public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) { return new GT_MetaTileEntity_Regulator( - this.mName, - this.mTier, - this.mInventory.length, - this.mDescriptionArray, - this.mTextures); + this.mName, + this.mTier, + this.mInventory.length, + this.mDescriptionArray, + this.mTextures); } @Override public ITexture getOverlayIcon() { return TextureFactory.of( - TextureFactory.of(AUTOMATION_REGULATOR), - TextureFactory.builder() - .addIcon(AUTOMATION_REGULATOR_GLOW) - .glow() - .build()); + TextureFactory.of(AUTOMATION_REGULATOR), + TextureFactory.builder() + .addIcon(AUTOMATION_REGULATOR_GLOW) + .glow() + .build()); } @Override @@ -115,16 +115,16 @@ public class GT_MetaTileEntity_Regulator extends GT_MetaTileEntity_Buffer implem for (int i = 0, tCosts; i < 9; i++) { if (this.mInventory[(i + 9)] != null) { tCosts = GT_Utility.moveOneItemStackIntoSlot( - getBaseMetaTileEntity(), - getBaseMetaTileEntity().getTileEntityAtSide(getBaseMetaTileEntity().getBackFacing()), - getBaseMetaTileEntity().getBackFacing(), - this.mTargetSlots[i], - Collections.singletonList(this.mInventory[(i + 9)]), - false, - (byte) this.mInventory[(i + 9)].stackSize, - (byte) this.mInventory[(i + 9)].stackSize, - (byte) 64, - (byte) 1) * 3; + getBaseMetaTileEntity(), + getBaseMetaTileEntity().getTileEntityAtSide(getBaseMetaTileEntity().getBackFacing()), + getBaseMetaTileEntity().getBackFacing(), + this.mTargetSlots[i], + Collections.singletonList(this.mInventory[(i + 9)]), + false, + (byte) this.mInventory[(i + 9)].stackSize, + (byte) this.mInventory[(i + 9)].stackSize, + (byte) 64, + (byte) 1) * 3; if (tCosts > 0) { this.mSuccess = 50; break; @@ -136,8 +136,8 @@ public class GT_MetaTileEntity_Regulator extends GT_MetaTileEntity_Buffer implem @Override public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack) { return super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack) && aIndex >= 0 - && aIndex <= 8 - && GT_Utility.areStacksEqual(aStack, this.mInventory[(aIndex + 9)]); + && aIndex <= 8 + && GT_Utility.areStacksEqual(aStack, this.mInventory[(aIndex + 9)]); } @Override @@ -174,33 +174,33 @@ public class GT_MetaTileEntity_Regulator extends GT_MetaTileEntity_Buffer implem addEmitEnergyButton(builder); builder.widget(createChargerSlot(43, 62)); builder.widget( - new DrawableWidget().setDrawable(GT_UITextures.PICTURE_ARROW_22_RED.apply(84, true)) - .setPos(65, 60) - .setSize(84, 22)) - .widget( - SlotGroup.ofItemHandler(inventoryHandler, 3) - .startFromSlot(0) - .endAtSlot(8) - .build() - .setPos(7, 5)) - .widget( - new DrawableWidget().setDrawable(GT_UITextures.PICTURE_SLOTS_HOLO_3BY3) - .setPos(62, 5) - .setSize(54, 54)) - .widget( - SlotGroup.ofItemHandler(inventoryHandler, 3) - .phantom(true) - .startFromSlot(9) - .endAtSlot(17) - .applyForWidget( - widget -> widget.setControlsAmount(true) - .setBackground(GT_UITextures.TRANSPARENT)) - .build() - .setPos(62, 5)) - .widget( - new DrawableWidget().setDrawable(GT_UITextures.PICTURE_SLOTS_HOLO_3BY3) - .setPos(117, 5) - .setSize(54, 54)); + new DrawableWidget().setDrawable(GT_UITextures.PICTURE_ARROW_22_RED.apply(84, true)) + .setPos(65, 60) + .setSize(84, 22)) + .widget( + SlotGroup.ofItemHandler(inventoryHandler, 3) + .startFromSlot(0) + .endAtSlot(8) + .build() + .setPos(7, 5)) + .widget( + new DrawableWidget().setDrawable(GT_UITextures.PICTURE_SLOTS_HOLO_3BY3) + .setPos(62, 5) + .setSize(54, 54)) + .widget( + SlotGroup.ofItemHandler(inventoryHandler, 3) + .phantom(true) + .startFromSlot(9) + .endAtSlot(17) + .applyForWidget( + widget -> widget.setControlsAmount(true) + .setBackground(GT_UITextures.TRANSPARENT)) + .build() + .setPos(62, 5)) + .widget( + new DrawableWidget().setDrawable(GT_UITextures.PICTURE_SLOTS_HOLO_3BY3) + .setPos(117, 5) + .setSize(54, 54)); int xBase = 117, yBase = 5; for (int i = 0; i < mTargetSlots.length; i++) { @@ -211,18 +211,17 @@ public class GT_MetaTileEntity_Regulator extends GT_MetaTileEntity_Buffer implem @Override protected void phantomClick(ClickData clickData, ItemStack cursorStack) { mTargetSlots[index] = Math.min( - 99, - Math.max( - 0, - mTargetSlots[index] - + (clickData.mouseButton == 0 ? -1 : 1) * (clickData.shift ? 16 : 1))); + 99, + Math.max( + 0, + mTargetSlots[index] + (clickData.mouseButton == 0 ? -1 : 1) * (clickData.shift ? 16 : 1))); } }.setBackground(GT_UITextures.TRANSPARENT) - .setPos(xPos, yPos)) - .widget( - TextWidget.dynamicString(() -> String.valueOf(mTargetSlots[index])) - .setDefaultColor(COLOR_TEXT_WHITE.get()) - .setPos(xPos + 2 + (i % 3 == 0 ? 1 : 0), yPos + 3 + (i / 3 == 0 ? 1 : 0))); + .setPos(xPos, yPos)) + .widget( + TextWidget.dynamicString(() -> String.valueOf(mTargetSlots[index])) + .setDefaultColor(COLOR_TEXT_WHITE.get()) + .setPos(xPos + 2 + (i % 3 == 0 ? 1 : 0), yPos + 3 + (i / 3 == 0 ? 1 : 0))); } } } diff --git a/src/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_SuperBuffer.java b/src/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_SuperBuffer.java index 1b913af896..4687b62fa1 100644 --- a/src/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_SuperBuffer.java +++ b/src/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_SuperBuffer.java @@ -24,43 +24,43 @@ public class GT_MetaTileEntity_SuperBuffer extends GT_MetaTileEntity_ChestBuffer public GT_MetaTileEntity_SuperBuffer(int aID, String aName, String aNameRegional, int aTier) { super( - aID, - aName, - aNameRegional, - aTier, - 257, - new String[] { "Buffers up to 256 Item Stacks", "Use Screwdriver to regulate output stack size", - "Does not consume energy to move Item", getTickRateDesc(aTier) }); + aID, + aName, + aNameRegional, + aTier, + 257, + new String[] { "Buffers up to 256 Item Stacks", "Use Screwdriver to regulate output stack size", + "Does not consume energy to move Item", getTickRateDesc(aTier) }); } public GT_MetaTileEntity_SuperBuffer(String aName, int aTier, int aInvSlotCount, String aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, aInvSlotCount, aDescription, aTextures); } public GT_MetaTileEntity_SuperBuffer(String aName, int aTier, int aInvSlotCount, String[] aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, aInvSlotCount, aDescription, aTextures); } @Override public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) { return new GT_MetaTileEntity_SuperBuffer( - this.mName, - this.mTier, - this.mInventory.length, - this.mDescriptionArray, - this.mTextures); + this.mName, + this.mTier, + this.mInventory.length, + this.mDescriptionArray, + this.mTextures); } @Override public ITexture getOverlayIcon() { return TextureFactory.of( - TextureFactory.of(AUTOMATION_SUPERBUFFER), - TextureFactory.builder() - .addIcon(AUTOMATION_SUPERBUFFER_GLOW) - .glow() - .build()); + TextureFactory.of(AUTOMATION_SUPERBUFFER), + TextureFactory.builder() + .addIcon(AUTOMATION_SUPERBUFFER_GLOW) + .glow() + .build()); } @Override @@ -86,7 +86,7 @@ public class GT_MetaTileEntity_SuperBuffer extends GT_MetaTileEntity_ChestBuffer do { int slot = validSlots.get(i); mInventory[slot] = stacks.get(entry.getKey()) - .copy(); + .copy(); int toSet = Math.min(entry.getValue(), mInventory[slot].getMaxStackSize()); mInventory[slot].stackSize = toSet; entry.setValue(entry.getValue() - toSet); @@ -98,8 +98,8 @@ public class GT_MetaTileEntity_SuperBuffer extends GT_MetaTileEntity_ChestBuffer @Override protected void addMainUI(ModularWindow.Builder builder) { builder.widget( - new DrawableWidget().setDrawable(GT_UITextures.PICTURE_SUPER_BUFFER) - .setPos(61, 4) - .setSize(54, 54)); + new DrawableWidget().setDrawable(GT_UITextures.PICTURE_SUPER_BUFFER) + .setPos(61, 4) + .setSize(54, 54)); } } diff --git a/src/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_TypeFilter.java b/src/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_TypeFilter.java index 609342ed82..ee79766e30 100644 --- a/src/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_TypeFilter.java +++ b/src/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_TypeFilter.java @@ -30,58 +30,58 @@ public class GT_MetaTileEntity_TypeFilter extends GT_MetaTileEntity_SpecialFilte public OrePrefixes mPrefix = OrePrefixes.ore; public static ImmutableList OREBLOCK_PREFIXES = ImmutableList.of( - OrePrefixes.oreBlackgranite, - OrePrefixes.oreDense, - OrePrefixes.oreEnd, - OrePrefixes.oreEndstone, - OrePrefixes.oreNether, - OrePrefixes.oreNetherrack, - OrePrefixes.oreNormal, - OrePrefixes.orePoor, - OrePrefixes.oreRedgranite, - OrePrefixes.oreRich, - OrePrefixes.oreSmall, - OrePrefixes.oreBasalt, - OrePrefixes.oreMarble); + OrePrefixes.oreBlackgranite, + OrePrefixes.oreDense, + OrePrefixes.oreEnd, + OrePrefixes.oreEndstone, + OrePrefixes.oreNether, + OrePrefixes.oreNetherrack, + OrePrefixes.oreNormal, + OrePrefixes.orePoor, + OrePrefixes.oreRedgranite, + OrePrefixes.oreRich, + OrePrefixes.oreSmall, + OrePrefixes.oreBasalt, + OrePrefixes.oreMarble); public GT_MetaTileEntity_TypeFilter(int aID, String aName, String aNameRegional, int aTier) { super( - aID, - aName, - aNameRegional, - aTier, - new String[] { "Filters 1 Item Type", "Use Screwdriver to regulate output stack size", - "Does not consume energy to move Item" }); + aID, + aName, + aNameRegional, + aTier, + new String[] { "Filters 1 Item Type", "Use Screwdriver to regulate output stack size", + "Does not consume energy to move Item" }); } public GT_MetaTileEntity_TypeFilter(String aName, int aTier, int aInvSlotCount, String aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, aInvSlotCount, aDescription, aTextures); } public GT_MetaTileEntity_TypeFilter(String aName, int aTier, int aInvSlotCount, String[] aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, aInvSlotCount, aDescription, aTextures); } @Override public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) { return new GT_MetaTileEntity_TypeFilter( - this.mName, - this.mTier, - this.mInventory.length, - this.mDescriptionArray, - this.mTextures); + this.mName, + this.mTier, + this.mInventory.length, + this.mDescriptionArray, + this.mTextures); } @Override public ITexture getOverlayIcon() { return TextureFactory.of( - TextureFactory.of(AUTOMATION_TYPEFILTER), - TextureFactory.builder() - .addIcon(AUTOMATION_TYPEFILTER_GLOW) - .glow() - .build()); + TextureFactory.of(AUTOMATION_TYPEFILTER), + TextureFactory.builder() + .addIcon(AUTOMATION_TYPEFILTER_GLOW) + .glow() + .build()); } @Override @@ -112,7 +112,7 @@ public class GT_MetaTileEntity_TypeFilter extends GT_MetaTileEntity_SpecialFilte } while (OrePrefixes.values()[i].mPrefixedItems.isEmpty()); } if (!OrePrefixes.values()[i].mPrefixedItems.isEmpty() - && OrePrefixes.values()[i].mPrefixInto == OrePrefixes.values()[i]) + && OrePrefixes.values()[i].mPrefixInto == OrePrefixes.values()[i]) mPrefix = OrePrefixes.values()[i]; } } @@ -130,9 +130,9 @@ public class GT_MetaTileEntity_TypeFilter extends GT_MetaTileEntity_SpecialFilte return; } this.mInventory[SPECIAL_SLOT_INDEX] = GT_Utility.copyAmount( - 1L, - this.mPrefix.mPrefixedItems.get( - this.mRotationIndex = (this.mRotationIndex + 1) % this.mPrefix.mPrefixedItems.size())); + 1L, + this.mPrefix.mPrefixedItems + .get(this.mRotationIndex = (this.mRotationIndex + 1) % this.mPrefix.mPrefixedItems.size())); if (this.mInventory[SPECIAL_SLOT_INDEX] == null) return; if (this.mInventory[SPECIAL_SLOT_INDEX].getItemDamage() == W) this.mInventory[9].setItemDamage(0); this.mInventory[SPECIAL_SLOT_INDEX].setStackDisplayName(this.mPrefix.toString()); @@ -164,9 +164,9 @@ public class GT_MetaTileEntity_TypeFilter extends GT_MetaTileEntity_SpecialFilte @Override protected List getItemExtraTooltip() { return Arrays.asList( - EnumChatFormatting.DARK_GRAY - + StatCollector.translateToLocal("GT5U.type_filter.representation_slot.tooltip.0"), - EnumChatFormatting.DARK_GRAY - + StatCollector.translateToLocal("GT5U.type_filter.representation_slot.tooltip.1")); + EnumChatFormatting.DARK_GRAY + + StatCollector.translateToLocal("GT5U.type_filter.representation_slot.tooltip.0"), + EnumChatFormatting.DARK_GRAY + + StatCollector.translateToLocal("GT5U.type_filter.representation_slot.tooltip.1")); } } diff --git a/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler.java b/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler.java index ed22d41f70..fbcc8f62ce 100644 --- a/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler.java +++ b/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler.java @@ -41,7 +41,7 @@ import gregtech.api.util.WorldSpawnedEventBuilder.ParticleEventBuilder; import gregtech.common.GT_Pollution; public abstract class GT_MetaTileEntity_Boiler extends GT_MetaTileEntity_BasicTank - implements IGetTitleColor, IAddUIWidgets { + implements IGetTitleColor, IAddUIWidgets { public static final byte SOUND_EVENT_LET_OFF_EXCESS_STEAM = 1; public int mTemperature = 20; @@ -52,12 +52,12 @@ public abstract class GT_MetaTileEntity_Boiler extends GT_MetaTileEntity_BasicTa private int mExcessWater = 0; public GT_MetaTileEntity_Boiler(int aID, String aName, String aNameRegional, String aDescription, - ITexture... aTextures) { + ITexture... aTextures) { super(aID, aName, aNameRegional, 0, 4, aDescription, aTextures); } public GT_MetaTileEntity_Boiler(int aID, String aName, String aNameRegional, String[] aDescription, - ITexture... aTextures) { + ITexture... aTextures) { super(aID, aName, aNameRegional, 0, 4, aDescription, aTextures); } @@ -71,9 +71,9 @@ public abstract class GT_MetaTileEntity_Boiler extends GT_MetaTileEntity_BasicTa @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { ITexture[] tmp = mTextures[aSide >= 2 ? aSide != aFacing ? 2 : ((byte) (aActive ? 4 : 3)) : aSide][aColorIndex - + 1]; + + 1]; if (aSide != aFacing && tmp.length == 2) { tmp = new ITexture[] { tmp[0] }; } @@ -136,7 +136,7 @@ public abstract class GT_MetaTileEntity_Boiler extends GT_MetaTileEntity_BasicTa if (!aPlayer.capabilities.isCreativeMode) { aPlayer.getCurrentEquippedItem() - .func_150996_a(Items.bucket); + .func_150996_a(Items.bucket); } } else { GT_UIInfos.openGTTileEntityUI(aBaseMetaTileEntity, aPlayer); @@ -199,7 +199,7 @@ public abstract class GT_MetaTileEntity_Boiler extends GT_MetaTileEntity_BasicTa @Override public boolean allowCoverOnSide(byte aSide, GT_ItemStack aCover) { return GregTech_API.getCoverBehaviorNew(aCover.toStack()) - .isSimpleCover(); + .isSimpleCover(); } @Override @@ -275,7 +275,7 @@ public abstract class GT_MetaTileEntity_Boiler extends GT_MetaTileEntity_BasicTa private void calculateHeatUp(IGregTechTileEntity aBaseMetaTileEntity, long aTick) { if ((this.mTemperature < getMaxTemperature()) && (this.mProcessingEnergy > 0) - && (aTick % getHeatUpRate() == 0L)) { + && (aTick % getHeatUpRate() == 0L)) { this.mProcessingEnergy -= getEnergyConsumption(); this.mTemperature += getHeatUpAmount(); } @@ -330,22 +330,20 @@ public abstract class GT_MetaTileEntity_Boiler extends GT_MetaTileEntity_BasicTa if (mSteam == null || mSteam.amount == 0) return; IFluidHandler tTileEntity = aBaseMetaTileEntity.getITankContainerAtSide((byte) aSide); if (tTileEntity == null) return; - FluidStack tDrained = aBaseMetaTileEntity.drain( - ForgeDirection.getOrientation(aSide), - Math.max(1, this.mSteam.amount / 2), - false); + FluidStack tDrained = aBaseMetaTileEntity + .drain(ForgeDirection.getOrientation(aSide), Math.max(1, this.mSteam.amount / 2), false); if (tDrained == null) return; int tFilledAmount = tTileEntity.fill( - ForgeDirection.getOrientation(aSide) - .getOpposite(), - tDrained, - false); + ForgeDirection.getOrientation(aSide) + .getOpposite(), + tDrained, + false); if (tFilledAmount <= 0) return; tTileEntity.fill( - ForgeDirection.getOrientation(aSide) - .getOpposite(), - aBaseMetaTileEntity.drain(ForgeDirection.getOrientation(aSide), tFilledAmount, true), - true); + ForgeDirection.getOrientation(aSide) + .getOpposite(), + aBaseMetaTileEntity.drain(ForgeDirection.getOrientation(aSide), tFilledAmount, true), + true); } /** @@ -388,15 +386,12 @@ public abstract class GT_MetaTileEntity_Boiler extends GT_MetaTileEntity_BasicTa GT_Utility.doSoundAtClient(SoundResource.RANDOM_FIZZ, 2, 1.0F, aX, aY, aZ); new ParticleEventBuilder().setIdentifier(ParticleFX.CLOUD) - .setWorld(getBaseMetaTileEntity().getWorld()) - .setMotion(0D, 0D, 0D) - .times( - 8, - x -> x.setPosition( - aX - 0.5D + XSTR_INSTANCE.nextFloat(), - aY, - aZ - 0.5D + XSTR_INSTANCE.nextFloat()) - .run()); + .setWorld(getBaseMetaTileEntity().getWorld()) + .setMotion(0D, 0D, 0D) + .times( + 8, + x -> x.setPosition(aX - 0.5D + XSTR_INSTANCE.nextFloat(), aY, aZ - 0.5D + XSTR_INSTANCE.nextFloat()) + .run()); } } @@ -437,12 +432,12 @@ public abstract class GT_MetaTileEntity_Boiler extends GT_MetaTileEntity_BasicTa protected IDrawable[] getFuelSlotBackground() { return new IDrawable[] { getGUITextureSet().getItemSlot(), - GT_UITextures.OVERLAY_SLOT_COAL_STEAM.get(getSteamVariant()) }; + GT_UITextures.OVERLAY_SLOT_COAL_STEAM.get(getSteamVariant()) }; } protected IDrawable[] getAshSlotBackground() { return new IDrawable[] { getGUITextureSet().getItemSlot(), - GT_UITextures.OVERLAY_SLOT_DUST_STEAM.get(getSteamVariant()) }; + GT_UITextures.OVERLAY_SLOT_DUST_STEAM.get(getSteamVariant()) }; } @Override @@ -453,59 +448,54 @@ public abstract class GT_MetaTileEntity_Boiler extends GT_MetaTileEntity_BasicTa @Override public void addUIWidgets(ModularWindow.Builder builder, UIBuildContext buildContext) { builder.widget( - new SlotWidget(inventoryHandler, 0).setPos(43, 25) - .setBackground(getGUITextureSet().getItemSlot(), getOverlaySlotIn())) - .widget( - new SlotWidget(inventoryHandler, 1).setPos(43, 61) - .setBackground( - getGUITextureSet().getItemSlot(), - getOverlaySlotOut())) - .widget(createFuelSlot()) - .widget(createAshSlot()) - .widget( - new ProgressBar().setProgress(() -> mSteam == null ? 0 : (float) mSteam.amount / getCapacity()) - .setTexture(getProgressbarEmpty(), GT_UITextures.PROGRESSBAR_BOILER_STEAM, 10) - .setDirection(ProgressBar.Direction.UP) - .setPos(70, 25) - .setSize(10, 54)) - .widget( - new ProgressBar().setProgress(() -> mFluid == null ? 0 : (float) mFluid.amount / getCapacity()) - .setTexture(getProgressbarEmpty(), GT_UITextures.PROGRESSBAR_BOILER_WATER, 10) - .setDirection(ProgressBar.Direction.UP) - .setPos(83, 25) - .setSize(10, 54)) - .widget( - new ProgressBar().setProgress(() -> (float) mTemperature / maxProgresstime()) - .setTexture(getProgressbarEmpty(), GT_UITextures.PROGRESSBAR_BOILER_HEAT, 10) - .setDirection(ProgressBar.Direction.UP) - .setPos(96, 25) - .setSize(10, 54)) - .widget( - new ProgressBar() - // cap minimum so that one can easily see there's fuel remaining - .setProgress( - () -> mProcessingEnergy > 0 - ? Math.max((float) mProcessingEnergy / 1000, 1f / 5) - : 0) - .setTexture(getProgressbarFuel(), 14) - .setDirection(ProgressBar.Direction.UP) - .setPos(116, 45) - .setSize(14, 14)) - .widget( - new DrawableWidget().setDrawable(getOverlaySlotCanister()) - .setPos(43, 43) - .setSize(18, 18)); + new SlotWidget(inventoryHandler, 0).setPos(43, 25) + .setBackground(getGUITextureSet().getItemSlot(), getOverlaySlotIn())) + .widget( + new SlotWidget(inventoryHandler, 1).setPos(43, 61) + .setBackground(getGUITextureSet().getItemSlot(), getOverlaySlotOut())) + .widget(createFuelSlot()) + .widget(createAshSlot()) + .widget( + new ProgressBar().setProgress(() -> mSteam == null ? 0 : (float) mSteam.amount / getCapacity()) + .setTexture(getProgressbarEmpty(), GT_UITextures.PROGRESSBAR_BOILER_STEAM, 10) + .setDirection(ProgressBar.Direction.UP) + .setPos(70, 25) + .setSize(10, 54)) + .widget( + new ProgressBar().setProgress(() -> mFluid == null ? 0 : (float) mFluid.amount / getCapacity()) + .setTexture(getProgressbarEmpty(), GT_UITextures.PROGRESSBAR_BOILER_WATER, 10) + .setDirection(ProgressBar.Direction.UP) + .setPos(83, 25) + .setSize(10, 54)) + .widget( + new ProgressBar().setProgress(() -> (float) mTemperature / maxProgresstime()) + .setTexture(getProgressbarEmpty(), GT_UITextures.PROGRESSBAR_BOILER_HEAT, 10) + .setDirection(ProgressBar.Direction.UP) + .setPos(96, 25) + .setSize(10, 54)) + .widget( + new ProgressBar() + // cap minimum so that one can easily see there's fuel remaining + .setProgress(() -> mProcessingEnergy > 0 ? Math.max((float) mProcessingEnergy / 1000, 1f / 5) : 0) + .setTexture(getProgressbarFuel(), 14) + .setDirection(ProgressBar.Direction.UP) + .setPos(116, 45) + .setSize(14, 14)) + .widget( + new DrawableWidget().setDrawable(getOverlaySlotCanister()) + .setPos(43, 43) + .setSize(18, 18)); } protected SlotWidget createFuelSlot() { return (SlotWidget) new SlotWidget(inventoryHandler, 2).setPos(115, 61) - .setBackground(getFuelSlotBackground()); + .setBackground(getFuelSlotBackground()); } protected SlotWidget createAshSlot() { return (SlotWidget) new SlotWidget(inventoryHandler, 3).setAccess(true, false) - .setPos(115, 25) - .setBackground(getAshSlotBackground()); + .setPos(115, 25) + .setBackground(getAshSlotBackground()); } @Override diff --git a/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Bronze.java b/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Bronze.java index 0e617312df..d375d285d2 100644 --- a/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Bronze.java +++ b/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Bronze.java @@ -35,12 +35,11 @@ public class GT_MetaTileEntity_Boiler_Bronze extends GT_MetaTileEntity_Boiler { public GT_MetaTileEntity_Boiler_Bronze(int aID, String aName, String aNameRegional) { super( - aID, - aName, - aNameRegional, - new String[] { "An early way to get Steam Power", "Produces 120L of Steam per second", - "Causes " + GT_Mod.gregtechproxy.mPollutionSmallCoalBoilerPerSecond - + " Pollution per second" }); + aID, + aName, + aNameRegional, + new String[] { "An early way to get Steam Power", "Produces 120L of Steam per second", + "Causes " + GT_Mod.gregtechproxy.mPollutionSmallCoalBoilerPerSecond + " Pollution per second" }); } public GT_MetaTileEntity_Boiler_Bronze(int aID, String aName, String aNameRegional, String[] aDescription) { @@ -59,18 +58,18 @@ public class GT_MetaTileEntity_Boiler_Bronze extends GT_MetaTileEntity_Boiler { public ITexture[][][] getTextureSet(ITexture[] aTextures) { ITexture[][][] rTextures = new ITexture[5][17][]; final ITexture[] texBottom = { TextureFactory.of(MACHINE_BRONZEBRICKS_BOTTOM) }, - texTop = { TextureFactory.of(MACHINE_BRONZEBRICKS_TOP), TextureFactory.of(OVERLAY_PIPE) }, - texSide = { TextureFactory.of(MACHINE_BRONZEBRICKS_SIDE), TextureFactory.of(OVERLAY_PIPE) }, - texFront = { TextureFactory.of(MACHINE_BRONZEBRICKS_SIDE), TextureFactory.of(BOILER_FRONT), - TextureFactory.builder() - .addIcon(BOILER_FRONT_GLOW) - .glow() - .build() }, - texFrontActive = { TextureFactory.of(MACHINE_BRONZEBRICKS_SIDE), TextureFactory.of(BOILER_FRONT_ACTIVE), - TextureFactory.builder() - .addIcon(BOILER_FRONT_ACTIVE_GLOW) - .glow() - .build() }; + texTop = { TextureFactory.of(MACHINE_BRONZEBRICKS_TOP), TextureFactory.of(OVERLAY_PIPE) }, + texSide = { TextureFactory.of(MACHINE_BRONZEBRICKS_SIDE), TextureFactory.of(OVERLAY_PIPE) }, + texFront = { TextureFactory.of(MACHINE_BRONZEBRICKS_SIDE), TextureFactory.of(BOILER_FRONT), + TextureFactory.builder() + .addIcon(BOILER_FRONT_GLOW) + .glow() + .build() }, + texFrontActive = { TextureFactory.of(MACHINE_BRONZEBRICKS_SIDE), TextureFactory.of(BOILER_FRONT_ACTIVE), + TextureFactory.builder() + .addIcon(BOILER_FRONT_ACTIVE_GLOW) + .glow() + .build() }; for (int i = 0; i < 17; i++) { rTextures[0][i] = texBottom; rTextures[1][i] = texTop; @@ -104,7 +103,7 @@ public class GT_MetaTileEntity_Boiler_Bronze extends GT_MetaTileEntity_Boiler { final byte frontFacing = aBaseMetaTileEntity.getFrontFacing(); if (frontFacing > 1 && aBaseMetaTileEntity.getCoverIDAtSide(frontFacing) == 0 - && !aBaseMetaTileEntity.getOpacityAtSide(frontFacing)) { + && !aBaseMetaTileEntity.getOpacityAtSide(frontFacing)) { final double oX = aBaseMetaTileEntity.getOffsetX(frontFacing, 1) + 8D / 16D; final double oY = aBaseMetaTileEntity.getOffsetY(frontFacing, 1); @@ -132,13 +131,12 @@ public class GT_MetaTileEntity_Boiler_Bronze extends GT_MetaTileEntity_Boiler { } ParticleEventBuilder particleEventBuilder = (new ParticleEventBuilder()).setMotion(0D, 0D, 0D) - .setPosition(x, y, z) - .setWorld( - getBaseMetaTileEntity().getWorld()); + .setPosition(x, y, z) + .setWorld(getBaseMetaTileEntity().getWorld()); particleEventBuilder.setIdentifier(ParticleFX.SMOKE) - .run(); + .run(); particleEventBuilder.setIdentifier(ParticleFX.FLAME) - .run(); + .run(); } } } @@ -147,8 +145,8 @@ public class GT_MetaTileEntity_Boiler_Bronze extends GT_MetaTileEntity_Boiler { public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) { super.onPostTick(aBaseMetaTileEntity, aTick); if ((aBaseMetaTileEntity.isServerSide()) && (aTick > 20L) - && this.mProcessingEnergy > 0 - && (aTick % 20L == 0L)) { + && this.mProcessingEnergy > 0 + && (aTick % 20L == 0L)) { GT_Pollution.addPollution(getBaseMetaTileEntity(), getPollution()); } } @@ -182,142 +180,127 @@ public class GT_MetaTileEntity_Boiler_Bronze extends GT_MetaTileEntity_Boiler { protected void updateFuel(IGregTechTileEntity aBaseMetaTileEntity, long aTick) { if (this.mInventory[2] == null) return; if ((GT_Utility.isPartOfMaterials(this.mInventory[2], Materials.Coal) + && !GT_Utility.isPartOfOrePrefix(this.mInventory[2], OrePrefixes.block)) + || (GT_Utility.isPartOfMaterials(this.mInventory[2], Materials.Charcoal) && !GT_Utility.isPartOfOrePrefix(this.mInventory[2], OrePrefixes.block)) - || (GT_Utility.isPartOfMaterials(this.mInventory[2], Materials.Charcoal) - && !GT_Utility.isPartOfOrePrefix(this.mInventory[2], OrePrefixes.block)) - || (GT_Utility.isPartOfMaterials(this.mInventory[2], Materials.Lignite) - && !GT_Utility.isPartOfOrePrefix(this.mInventory[2], OrePrefixes.block)) - || (GT_Utility.isPartOfMaterials(this.mInventory[2], Materials.Diamond) - && !GT_Utility.isPartOfOrePrefix(this.mInventory[2], OrePrefixes.block)) - || GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], "fuelCoke") - || GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], "fuelCactusCharcoal") - || GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], "fuelCactusCoke") - || GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], "fuelSugarCharcoal") - || GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], "fuelSugarCoke")) { + || (GT_Utility.isPartOfMaterials(this.mInventory[2], Materials.Lignite) + && !GT_Utility.isPartOfOrePrefix(this.mInventory[2], OrePrefixes.block)) + || (GT_Utility.isPartOfMaterials(this.mInventory[2], Materials.Diamond) + && !GT_Utility.isPartOfOrePrefix(this.mInventory[2], OrePrefixes.block)) + || GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], "fuelCoke") + || GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], "fuelCactusCharcoal") + || GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], "fuelCactusCoke") + || GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], "fuelSugarCharcoal") + || GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], "fuelSugarCoke")) { if ((TileEntityFurnace.getItemBurnTime(this.mInventory[2]) / 10) > 0) { this.mProcessingEnergy += (TileEntityFurnace.getItemBurnTime(this.mInventory[2]) / 10); aBaseMetaTileEntity.decrStackSize(2, 1); if (XSTR.XSTR_INSTANCE.nextInt( - GT_Utility.isPartOfMaterials(this.mInventory[2], Materials.Coal) - || GT_Utility.isPartOfMaterials(this.mInventory[2], Materials.Charcoal) ? 3 - : GT_Utility.isPartOfMaterials(this.mInventory[2], Materials.Lignite) ? 8 : 2) - == 0) { + GT_Utility.isPartOfMaterials(this.mInventory[2], Materials.Coal) + || GT_Utility.isPartOfMaterials(this.mInventory[2], Materials.Charcoal) ? 3 + : GT_Utility.isPartOfMaterials(this.mInventory[2], Materials.Lignite) ? 8 : 2) + == 0) { aBaseMetaTileEntity.addStackToSlot( - 3, - GT_OreDictUnificator.get( - OrePrefixes.dustTiny, - (GT_Utility.isPartOfMaterials(this.mInventory[2], Materials.Lignite) - || GT_Utility.isPartOfMaterials(this.mInventory[2], Materials.Coal)) - ? Materials.DarkAsh - : Materials.Ash, - 1L)); + 3, + GT_OreDictUnificator.get( + OrePrefixes.dustTiny, + (GT_Utility.isPartOfMaterials(this.mInventory[2], Materials.Lignite) + || GT_Utility.isPartOfMaterials(this.mInventory[2], Materials.Coal)) ? Materials.DarkAsh + : Materials.Ash, + 1L)); } } } else if ( // If its a block of the following materials GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], OrePrefixes.block.get(Materials.Coal)) - || GT_OreDictUnificator.isItemStackInstanceOf( - this.mInventory[2], - OrePrefixes.block.get(Materials.Lignite)) - || GT_OreDictUnificator.isItemStackInstanceOf( - this.mInventory[2], - OrePrefixes.block.get(Materials.Charcoal)) - || GT_OreDictUnificator.isItemStackInstanceOf( - this.mInventory[2], - OrePrefixes.block.get(Materials.Diamond)) - || + || GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], OrePrefixes.block.get(Materials.Lignite)) + || GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], OrePrefixes.block.get(Materials.Charcoal)) + || GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], OrePrefixes.block.get(Materials.Diamond)) + || - // if its either a Railcraft Coke Block or a custom GTNH compressed Coal/charcoal/lignite/coke block - (Block.getBlockFromItem(this.mInventory[2].getItem()) != null && // check if the block exists - (Block.getBlockFromItem(this.mInventory[2].getItem()) - .getUnlocalizedName() - .toLowerCase() - .contains("tile") && // check if the block is a tile -> block - ( - // If the name of the block contains these names - Block.getBlockFromItem(this.mInventory[2].getItem()) - .getUnlocalizedName() - .toLowerCase() - .contains("charcoal") - || Block.getBlockFromItem(this.mInventory[2].getItem()) - .getUnlocalizedName() - .toLowerCase() - .contains("coal") - || Block.getBlockFromItem(this.mInventory[2].getItem()) - .getUnlocalizedName() - .toLowerCase() - .contains("diamond") - || Block.getBlockFromItem(this.mInventory[2].getItem()) - .getUnlocalizedName() - .toLowerCase() - .contains("coke") - || Block.getBlockFromItem(this.mInventory[2].getItem()) - .getUnlocalizedName() - .toLowerCase() - .contains("railcraft.cube") - || Block.getBlockFromItem(this.mInventory[2].getItem()) - .getUnlocalizedName() - .toLowerCase() - .contains("lignite"))))) { - // try to add 10% of the burnvalue as Processing energy, no boost - // for coal coke here - if ((TileEntityFurnace.getItemBurnTime(this.mInventory[2]) / 10) - > 0) { - this.mProcessingEnergy += (TileEntityFurnace.getItemBurnTime( - this.mInventory[2]) / 10); - aBaseMetaTileEntity.decrStackSize(2, 1); - aBaseMetaTileEntity.addStackToSlot( - 3, - GT_OreDictUnificator.get( - OrePrefixes.dust, - (GT_Utility.isPartOfMaterials( - this.mInventory[2], - Materials.Lignite) - || GT_Utility.isPartOfMaterials( - this.mInventory[2], - Materials.Coal) - || Block.getBlockFromItem( - this.mInventory[2].getItem()) - .getUnlocalizedName() - .toLowerCase() - .contains("coal") - || Block.getBlockFromItem( - this.mInventory[2].getItem()) - .getUnlocalizedName() - .toLowerCase() - .contains("lignite")) - ? Materials.DarkAsh - : Materials.Ash, - 1L)); - } - // enables every other fuel with at least 2000 burntime as a fuel, - // i.e. peat, Magic/Solid Super Fuel, Coal - // Singularities, Nitor, while bucket of creosite should be blocked - // same goes for lava - } else + // if its either a Railcraft Coke Block or a custom GTNH compressed Coal/charcoal/lignite/coke block + (Block.getBlockFromItem(this.mInventory[2].getItem()) != null && // check if the block exists + (Block.getBlockFromItem(this.mInventory[2].getItem()) + .getUnlocalizedName() + .toLowerCase() + .contains("tile") && // check if the block is a tile -> block + ( + // If the name of the block contains these names + Block.getBlockFromItem(this.mInventory[2].getItem()) + .getUnlocalizedName() + .toLowerCase() + .contains("charcoal") + || Block.getBlockFromItem(this.mInventory[2].getItem()) + .getUnlocalizedName() + .toLowerCase() + .contains("coal") + || Block.getBlockFromItem(this.mInventory[2].getItem()) + .getUnlocalizedName() + .toLowerCase() + .contains("diamond") + || Block.getBlockFromItem(this.mInventory[2].getItem()) + .getUnlocalizedName() + .toLowerCase() + .contains("coke") + || Block.getBlockFromItem(this.mInventory[2].getItem()) + .getUnlocalizedName() + .toLowerCase() + .contains("railcraft.cube") + || Block.getBlockFromItem(this.mInventory[2].getItem()) + .getUnlocalizedName() + .toLowerCase() + .contains("lignite"))))) { + // try to add 10% of the burnvalue as Processing energy, no boost + // for coal coke here + if ((TileEntityFurnace.getItemBurnTime(this.mInventory[2]) / 10) > 0) { + this.mProcessingEnergy += (TileEntityFurnace.getItemBurnTime(this.mInventory[2]) + / 10); + aBaseMetaTileEntity.decrStackSize(2, 1); + aBaseMetaTileEntity.addStackToSlot( + 3, + GT_OreDictUnificator.get( + OrePrefixes.dust, + (GT_Utility.isPartOfMaterials(this.mInventory[2], Materials.Lignite) + || GT_Utility.isPartOfMaterials(this.mInventory[2], Materials.Coal) + || Block.getBlockFromItem(this.mInventory[2].getItem()) + .getUnlocalizedName() + .toLowerCase() + .contains("coal") + || Block.getBlockFromItem(this.mInventory[2].getItem()) + .getUnlocalizedName() + .toLowerCase() + .contains("lignite")) ? Materials.DarkAsh : Materials.Ash, + 1L)); + } + // enables every other fuel with at least 2000 burntime as a fuel, + // i.e. peat, Magic/Solid Super Fuel, Coal + // Singularities, Nitor, while bucket of creosite should be blocked + // same goes for lava + } else if ((TileEntityFurnace.getItemBurnTime(this.mInventory[2])) >= 2000 - && !(this.mInventory[2].getUnlocalizedName() - .toLowerCase() - .contains("bucket") - || this.mInventory[2].getUnlocalizedName() - .toLowerCase() - .contains("cell"))) { - this.mProcessingEnergy += (TileEntityFurnace.getItemBurnTime( - this.mInventory[2]) / 10); - aBaseMetaTileEntity.decrStackSize(2, 1); - // adds tiny pile of ash for burntime under 10k, small pile for - // under 100k and pile for - // bigger values - if (XSTR.XSTR_INSTANCE.nextInt(2) == 0) - aBaseMetaTileEntity.addStackToSlot( - 3, - GT_OreDictUnificator.get( - (TileEntityFurnace.getItemBurnTime( - this.mInventory[2]) - >= 10000 ? TileEntityFurnace.getItemBurnTime(this.mInventory[2]) >= 100000 ? OrePrefixes.dust : OrePrefixes.dustSmall : OrePrefixes.dustTiny), - Materials.Ash, - 1L)); - } + && !(this.mInventory[2].getUnlocalizedName() + .toLowerCase() + .contains("bucket") + || this.mInventory[2].getUnlocalizedName() + .toLowerCase() + .contains("cell"))) { + this.mProcessingEnergy += (TileEntityFurnace.getItemBurnTime(this.mInventory[2]) / 10); + aBaseMetaTileEntity.decrStackSize(2, 1); + // adds tiny pile of ash for burntime under 10k, small pile for + // under 100k and pile for + // bigger values + if (XSTR.XSTR_INSTANCE.nextInt(2) == 0) + aBaseMetaTileEntity.addStackToSlot( + 3, + GT_OreDictUnificator.get( + (TileEntityFurnace.getItemBurnTime(this.mInventory[2]) >= 10000 + ? TileEntityFurnace.getItemBurnTime(this.mInventory[2]) >= 100000 + ? OrePrefixes.dust + : OrePrefixes.dustSmall + : OrePrefixes.dustTiny), + Materials.Ash, + 1L)); + } } @Override diff --git a/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Lava.java b/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Lava.java index 0f03f6bee4..6ffcd37f28 100644 --- a/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Lava.java +++ b/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Lava.java @@ -66,17 +66,15 @@ public class GT_MetaTileEntity_Boiler_Lava extends GT_MetaTileEntity_Boiler { public GT_MetaTileEntity_Boiler_Lava(int aID, String aName, String aNameRegional) { super( - aID, - aName, - aNameRegional, - new String[] { "A Boiler running off Lava", - "Produces " + PRODUCTION_PER_SECOND + "L of Steam per second", - "Causes " + GT_Mod.gregtechproxy.mPollutionHighPressureLavaBoilerPerSecond - + " Pollution per second", - "Consumes " + ((double) CONSUMPTION_PER_HEATUP / ENERGY_PER_LAVA) - + "L of Lava every " - + COOLDOWN_INTERVAL - + " ticks when fully heat up" }); + aID, + aName, + aNameRegional, + new String[] { "A Boiler running off Lava", "Produces " + PRODUCTION_PER_SECOND + "L of Steam per second", + "Causes " + GT_Mod.gregtechproxy.mPollutionHighPressureLavaBoilerPerSecond + " Pollution per second", + "Consumes " + ((double) CONSUMPTION_PER_HEATUP / ENERGY_PER_LAVA) + + "L of Lava every " + + COOLDOWN_INTERVAL + + " ticks when fully heat up" }); } public GT_MetaTileEntity_Boiler_Lava(String aName, int aTier, String aDescription, ITexture[][][] aTextures) { @@ -89,7 +87,7 @@ public class GT_MetaTileEntity_Boiler_Lava extends GT_MetaTileEntity_Boiler { @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { final ForgeDirection sideDirection = ForgeDirection.getOrientation(aSide); final ForgeDirection facingDirection = ForgeDirection.getOrientation(aFacing); final ForgeDirection rearDirection = facingDirection.getOpposite(); @@ -118,18 +116,18 @@ public class GT_MetaTileEntity_Boiler_Lava extends GT_MetaTileEntity_Boiler { short[] colorModulation = Dyes.getModulation(color, Dyes._NULL.mRGBa); rTextures[0][i] = new ITexture[] { TextureFactory.of(MACHINE_STEELBRICKS_BOTTOM, colorModulation) }; rTextures[1][i] = new ITexture[] { TextureFactory.of(MACHINE_STEELBRICKS_TOP, colorModulation), - TextureFactory.of(OVERLAY_DRAIN), TextureFactory.of(FLUID_IN_SIGN) }; + TextureFactory.of(OVERLAY_DRAIN), TextureFactory.of(FLUID_IN_SIGN) }; rTextures[2][i] = new ITexture[] { TextureFactory.of(MACHINE_STEELBRICKS_SIDE, colorModulation), - TextureFactory.of(OVERLAY_PIPE_OUT), TextureFactory.of(FLUID_IN_SIGN) }; + TextureFactory.of(OVERLAY_PIPE_OUT), TextureFactory.of(FLUID_IN_SIGN) }; rTextures[3][i] = new ITexture[] { TextureFactory.of(MACHINE_STEELBRICKS_SIDE, colorModulation), - TextureFactory.of(BOILER_LAVA_FRONT, colorModulation), TextureFactory.of(BOILER_LAVA_FRONT_GLOW) }; + TextureFactory.of(BOILER_LAVA_FRONT, colorModulation), TextureFactory.of(BOILER_LAVA_FRONT_GLOW) }; rTextures[4][i] = new ITexture[] { TextureFactory.of(MACHINE_STEELBRICKS_SIDE, colorModulation), - TextureFactory.of(BOILER_LAVA_FRONT_ACTIVE), TextureFactory.builder() - .addIcon(BOILER_LAVA_FRONT_ACTIVE_GLOW) - .glow() - .build() }; + TextureFactory.of(BOILER_LAVA_FRONT_ACTIVE), TextureFactory.builder() + .addIcon(BOILER_LAVA_FRONT_ACTIVE_GLOW) + .glow() + .build() }; rTextures[5][i] = new ITexture[] { TextureFactory.of(MACHINE_STEELBRICKS_SIDE, colorModulation), - TextureFactory.of(OVERLAY_PIPE_OUT), TextureFactory.of(FLUID_OUT_SIGN) }; + TextureFactory.of(OVERLAY_PIPE_OUT), TextureFactory.of(FLUID_OUT_SIGN) }; } return rTextures; } @@ -224,13 +222,13 @@ public class GT_MetaTileEntity_Boiler_Lava extends GT_MetaTileEntity_Boiler { if (equippedItemStack.stackSize > 1) { if (!aPlayer.inventory.addItemStackToInventory(returnedItemStack)) { aBaseMetaTileEntity.getWorld() - .spawnEntityInWorld( - new EntityItem( - aBaseMetaTileEntity.getWorld(), - (double) aBaseMetaTileEntity.getXCoord() + 0.5D, - (double) aBaseMetaTileEntity.getYCoord() + 1.5D, - (double) aBaseMetaTileEntity.getZCoord() + 0.5D, - equippedItemStack)); + .spawnEntityInWorld( + new EntityItem( + aBaseMetaTileEntity.getWorld(), + (double) aBaseMetaTileEntity.getXCoord() + 0.5D, + (double) aBaseMetaTileEntity.getYCoord() + 1.5D, + (double) aBaseMetaTileEntity.getZCoord() + 0.5D, + equippedItemStack)); } else if (aPlayer instanceof EntityPlayerMP) { ((EntityPlayerMP) aPlayer).sendContainerToPlayer(aPlayer.inventoryContainer); } @@ -246,9 +244,9 @@ public class GT_MetaTileEntity_Boiler_Lava extends GT_MetaTileEntity_Boiler { public void saveNBTData(NBTTagCompound aNBT) { super.saveNBTData(aNBT); if (lavaTank.getFluid() != null) aNBT.setTag( - "mLava", - lavaTank.getFluid() - .writeToNBT(new NBTTagCompound())); + "mLava", + lavaTank.getFluid() + .writeToNBT(new NBTTagCompound())); aNBT.setInteger("mCooledLava", this.mCooledLava); } @@ -268,10 +266,10 @@ public class GT_MetaTileEntity_Boiler_Lava extends GT_MetaTileEntity_Boiler { protected void pushSteamToInventories(IGregTechTileEntity aBaseMetaTileEntity) { if (mSteam == null || mSteam.amount == 0) return; pushSteamToSide( - aBaseMetaTileEntity, - ForgeDirection.getOrientation(aBaseMetaTileEntity.getFrontFacing()) - .getOpposite() - .ordinal()); + aBaseMetaTileEntity, + ForgeDirection.getOrientation(aBaseMetaTileEntity.getFrontFacing()) + .getOpposite() + .ordinal()); } /** @@ -284,14 +282,14 @@ public class GT_MetaTileEntity_Boiler_Lava extends GT_MetaTileEntity_Boiler { if (upTank == null) return; // Simulates drain of maximum lava amount up to 1000L that can fit the internal tank final FluidStack drainableLavaStack = upTank.drain( - ForgeDirection.DOWN, - FluidRegistry.getFluidStack( - "lava", - Math.min( - this.lavaTank.getCapacity() - - (this.lavaTank.getFluid() != null ? this.lavaTank.getFluid().amount : 0), - 1000)), - false); + ForgeDirection.DOWN, + FluidRegistry.getFluidStack( + "lava", + Math.min( + this.lavaTank.getCapacity() + - (this.lavaTank.getFluid() != null ? this.lavaTank.getFluid().amount : 0), + 1000)), + false); if (!GT_ModHandler.isLava(drainableLavaStack) || drainableLavaStack.amount <= 0) return; // Performs actual drain up and fill internal tank this.lavaTank.fill(upTank.drain(ForgeDirection.DOWN, drainableLavaStack, true), true); @@ -327,7 +325,7 @@ public class GT_MetaTileEntity_Boiler_Lava extends GT_MetaTileEntity_Boiler { final ForgeDirection frontDirection = ForgeDirection.getOrientation(frontFacing); if (frontFacing > 1 && aBaseMetaTileEntity.getCoverIDAtSide(frontFacing) == 0 - && !aBaseMetaTileEntity.getOpacityAtSide(frontFacing)) { + && !aBaseMetaTileEntity.getOpacityAtSide(frontFacing)) { final double oX = aBaseMetaTileEntity.getOffsetX(frontFacing, 1) + 8D / 16D; final double oY = aBaseMetaTileEntity.getOffsetY(frontFacing, 1); @@ -359,13 +357,12 @@ public class GT_MetaTileEntity_Boiler_Lava extends GT_MetaTileEntity_Boiler { } ParticleEventBuilder particleEventBuilder = (new ParticleEventBuilder()).setMotion(0D, 0D, 0D) - .setPosition(x, y, z) - .setWorld( - getBaseMetaTileEntity().getWorld()); + .setPosition(x, y, z) + .setWorld(getBaseMetaTileEntity().getWorld()); particleEventBuilder.setIdentifier(ParticleFX.SMOKE) - .run(); + .run(); particleEventBuilder.setIdentifier(ParticleFX.FLAME) - .run(); + .run(); } } } @@ -381,11 +378,11 @@ public class GT_MetaTileEntity_Boiler_Lava extends GT_MetaTileEntity_Boiler { final FluidStack containedFluidStack = GT_Utility.getFluidForFilledItem(mInventory[getInputSlot()], true); if (GT_ModHandler.isWater(containedFluidStack)) super.onPreTick(aBaseMetaTileEntity, aTick); if (GT_ModHandler.isLava(containedFluidStack) - && lavaTank.fill(containedFluidStack, false) == containedFluidStack.amount - && aBaseMetaTileEntity.addStackToSlot( - getOutputSlot(), - GT_Utility.getContainerForFilledItem(mInventory[getInputSlot()], true), - 1)) { + && lavaTank.fill(containedFluidStack, false) == containedFluidStack.amount + && aBaseMetaTileEntity.addStackToSlot( + getOutputSlot(), + GT_Utility.getContainerForFilledItem(mInventory[getInputSlot()], true), + 1)) { lavaTank.fill(containedFluidStack, true); aBaseMetaTileEntity.decrStackSize(getInputSlot(), 1); } @@ -412,28 +409,25 @@ public class GT_MetaTileEntity_Boiler_Lava extends GT_MetaTileEntity_Boiler { if (aIndex != GT_MetaTileEntity_Boiler.SOUND_EVENT_LET_OFF_EXCESS_STEAM) return; final ForgeDirection rearDirection = ForgeDirection.getOrientation(getBaseMetaTileEntity().getFrontFacing()) - .getOpposite(); + .getOpposite(); GT_Utility.doSoundAtClient( - SoundResource.RANDOM_FIZZ, - 2, - 1.0F, - // Sound emitted from center of rear face (Steam Output) - aX + 0.5 * rearDirection.offsetX, - aY, - aZ + 0.5 * rearDirection.offsetZ); + SoundResource.RANDOM_FIZZ, + 2, + 1.0F, + // Sound emitted from center of rear face (Steam Output) + aX + 0.5 * rearDirection.offsetX, + aY, + aZ + 0.5 * rearDirection.offsetZ); new ParticleEventBuilder().setIdentifier(ParticleFX.CLOUD) - .setWorld(getBaseMetaTileEntity().getWorld()) - // Particles emitted with a 1 block/s velocity toward rear - .setMotion(rearDirection.offsetX / 20D, 0D, rearDirection.offsetZ / 20D) - .times( - 8, - // Particles emitted from center of rear face (Steam Output) - x -> x.setPosition( - aX + rearDirection.offsetX / 2D, - aY, - aZ + rearDirection.offsetZ / 2D) - .run()); + .setWorld(getBaseMetaTileEntity().getWorld()) + // Particles emitted with a 1 block/s velocity toward rear + .setMotion(rearDirection.offsetX / 20D, 0D, rearDirection.offsetZ / 20D) + .times( + 8, + // Particles emitted from center of rear face (Steam Output) + x -> x.setPosition(aX + rearDirection.offsetX / 2D, aY, aZ + rearDirection.offsetZ / 2D) + .run()); } @Override @@ -467,67 +461,59 @@ public class GT_MetaTileEntity_Boiler_Lava extends GT_MetaTileEntity_Boiler { @Override public FluidTankInfo[] getTankInfo(ForgeDirection aSide) { return new FluidTankInfo[] { super.getTankInfo(aSide)[0], - new FluidTankInfo(this.lavaTank.getFluid(), this.lavaTank.getCapacity()), - new FluidTankInfo(getDrainableStack(), getCapacity()) }; + new FluidTankInfo(this.lavaTank.getFluid(), this.lavaTank.getCapacity()), + new FluidTankInfo(getDrainableStack(), getCapacity()) }; } @Override protected IDrawable[] getAshSlotBackground() { return new IDrawable[] { getGUITextureSet().getItemSlot(), - GT_UITextures.OVERLAY_SLOT_BLOCK_STEAM.get(getSteamVariant()) }; + GT_UITextures.OVERLAY_SLOT_BLOCK_STEAM.get(getSteamVariant()) }; } @Override public void addUIWidgets(ModularWindow.Builder builder, UIBuildContext buildContext) { builder.widget( - new SlotWidget(inventoryHandler, 0).setPos(43, 25) - .setBackground(getGUITextureSet().getItemSlot(), getOverlaySlotIn())) - .widget( - new SlotWidget(inventoryHandler, 1).setAccess(true, false) - .setPos(43, 61) - .setBackground( - getGUITextureSet().getItemSlot(), - getOverlaySlotOut())) - .widget( - new FluidSlotWidget(lavaTank) - .setBackground( - getGUITextureSet().getFluidSlot(), - getOverlaySlotIn()) - .setPos(115, 61)) - .widget(createAshSlot()) - .widget( - new ProgressBar().setProgress(() -> mSteam == null ? 0 : (float) mSteam.amount / getCapacity()) - .setTexture(getProgressbarEmpty(), GT_UITextures.PROGRESSBAR_BOILER_STEAM, 10) - .setDirection(ProgressBar.Direction.UP) - .setPos(70, 25) - .setSize(10, 54)) - .widget( - new ProgressBar().setProgress(() -> mFluid == null ? 0 : (float) mFluid.amount / getCapacity()) - .setTexture(getProgressbarEmpty(), GT_UITextures.PROGRESSBAR_BOILER_WATER, 10) - .setDirection(ProgressBar.Direction.UP) - .setPos(83, 25) - .setSize(10, 54)) - .widget( - new ProgressBar().setProgress(() -> (float) mTemperature / maxProgresstime()) - .setTexture(getProgressbarEmpty(), GT_UITextures.PROGRESSBAR_BOILER_HEAT, 10) - .setDirection(ProgressBar.Direction.UP) - .setPos(96, 25) - .setSize(10, 54)) - .widget( - new ProgressBar() - // cap minimum so that one can easily see there's fuel remaining - .setProgress( - () -> mProcessingEnergy > 0 - ? Math.max((float) mProcessingEnergy / 1000, 1f / 5) - : 0) - .setTexture(getProgressbarFuel(), 14) - .setDirection(ProgressBar.Direction.UP) - .setPos(116, 45) - .setSize(14, 14)) - .widget( - new DrawableWidget().setDrawable(getOverlaySlotCanister()) - .setPos(43, 43) - .setSize(18, 18)); + new SlotWidget(inventoryHandler, 0).setPos(43, 25) + .setBackground(getGUITextureSet().getItemSlot(), getOverlaySlotIn())) + .widget( + new SlotWidget(inventoryHandler, 1).setAccess(true, false) + .setPos(43, 61) + .setBackground(getGUITextureSet().getItemSlot(), getOverlaySlotOut())) + .widget( + new FluidSlotWidget(lavaTank).setBackground(getGUITextureSet().getFluidSlot(), getOverlaySlotIn()) + .setPos(115, 61)) + .widget(createAshSlot()) + .widget( + new ProgressBar().setProgress(() -> mSteam == null ? 0 : (float) mSteam.amount / getCapacity()) + .setTexture(getProgressbarEmpty(), GT_UITextures.PROGRESSBAR_BOILER_STEAM, 10) + .setDirection(ProgressBar.Direction.UP) + .setPos(70, 25) + .setSize(10, 54)) + .widget( + new ProgressBar().setProgress(() -> mFluid == null ? 0 : (float) mFluid.amount / getCapacity()) + .setTexture(getProgressbarEmpty(), GT_UITextures.PROGRESSBAR_BOILER_WATER, 10) + .setDirection(ProgressBar.Direction.UP) + .setPos(83, 25) + .setSize(10, 54)) + .widget( + new ProgressBar().setProgress(() -> (float) mTemperature / maxProgresstime()) + .setTexture(getProgressbarEmpty(), GT_UITextures.PROGRESSBAR_BOILER_HEAT, 10) + .setDirection(ProgressBar.Direction.UP) + .setPos(96, 25) + .setSize(10, 54)) + .widget( + new ProgressBar() + // cap minimum so that one can easily see there's fuel remaining + .setProgress(() -> mProcessingEnergy > 0 ? Math.max((float) mProcessingEnergy / 1000, 1f / 5) : 0) + .setTexture(getProgressbarFuel(), 14) + .setDirection(ProgressBar.Direction.UP) + .setPos(116, 45) + .setSize(14, 14)) + .widget( + new DrawableWidget().setDrawable(getOverlaySlotCanister()) + .setPos(43, 43) + .setSize(18, 18)); } static class LavaTank extends FluidTank { diff --git a/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Solar.java b/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Solar.java index 04fa676c16..38c0d6e9e2 100644 --- a/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Solar.java +++ b/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Solar.java @@ -37,10 +37,10 @@ public class GT_MetaTileEntity_Boiler_Solar extends GT_MetaTileEntity_Boiler { public static final String LPS_FMT = "%s L/s"; private static final String localizedDescFormat = GT_LanguageManager.addStringLocalization( - "gt.blockmachines.boiler.solar.desc.format", - "Steam Power by the Sun%n" + "Produces %sL of Steam per second%n" - + "Calcifies over time, reducing Steam output to %sL/s%n" - + "Break and replace to descale"); + "gt.blockmachines.boiler.solar.desc.format", + "Steam Power by the Sun%n" + "Produces %sL of Steam per second%n" + + "Calcifies over time, reducing Steam output to %sL/s%n" + + "Break and replace to descale"); protected final Config mConfig; protected int basicTemperatureMod = 5; // Base Celsius gain or loss private int mRunTimeTicks = 0; @@ -61,7 +61,7 @@ public class GT_MetaTileEntity_Boiler_Solar extends GT_MetaTileEntity_Boiler { } protected GT_MetaTileEntity_Boiler_Solar(String aName, int aTier, String[] aDescription, ITexture[][][] aTextures, - Config aConfig) { + Config aConfig) { super(aName, aTier, aDescription, aTextures); mConfig = aConfig; } @@ -97,11 +97,12 @@ public class GT_MetaTileEntity_Boiler_Solar extends GT_MetaTileEntity_Boiler { @Override public String[] getDescription() { - return String.format( + return String + .format( localizedDescFormat, GT_Utility.formatNumbers(getMaxOutputPerSecond()), GT_Utility.formatNumbers(getMinOutputPerSecond())) - .split("\\R"); + .split("\\R"); } public int getMinOutputPerSecond() { @@ -115,20 +116,20 @@ public class GT_MetaTileEntity_Boiler_Solar extends GT_MetaTileEntity_Boiler { int i = color + 1; short[] colorModulation = Dyes.getModulation(color, Dyes._NULL.mRGBa); rTextures[0][i] = new ITexture[] { - TextureFactory.of(BlockIcons.MACHINE_BRONZEBRICKS_BOTTOM, colorModulation) }; + TextureFactory.of(BlockIcons.MACHINE_BRONZEBRICKS_BOTTOM, colorModulation) }; rTextures[1][i] = new ITexture[] { TextureFactory.of(BlockIcons.MACHINE_BRONZEBRICKS_TOP, colorModulation), - TextureFactory.of(BlockIcons.BOILER_SOLAR) }; + TextureFactory.of(BlockIcons.BOILER_SOLAR) }; rTextures[2][i] = new ITexture[] { - TextureFactory.of(BlockIcons.MACHINE_BRONZEBRICKS_SIDE, colorModulation) }; + TextureFactory.of(BlockIcons.MACHINE_BRONZEBRICKS_SIDE, colorModulation) }; rTextures[3][i] = new ITexture[] { TextureFactory.of(BlockIcons.MACHINE_BRONZEBRICKS_SIDE, colorModulation), - TextureFactory.of(BlockIcons.OVERLAY_PIPE) }; + TextureFactory.of(BlockIcons.OVERLAY_PIPE) }; } return rTextures; } @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { int i = aColorIndex + 1; if (aSide >= 2) { if (aSide != aFacing) return mTextures[2][i]; @@ -189,8 +190,8 @@ public class GT_MetaTileEntity_Boiler_Solar extends GT_MetaTileEntity_Boiler { * maximum output per second, and return this or the minimum output per second */ return mConfig.getMaxOutputPerSecond() - - mConfig.getMaxOutputPerSecond() * (mRunTimeTicks - mConfig.getCalcificationTicks()) - / mConfig.getCalcificationTicks(); + - mConfig.getMaxOutputPerSecond() * (mRunTimeTicks - mConfig.getCalcificationTicks()) + / mConfig.getCalcificationTicks(); } else { return mConfig.getMaxOutputPerSecond(); } @@ -253,34 +254,35 @@ public class GT_MetaTileEntity_Boiler_Solar extends GT_MetaTileEntity_Boiler { @Override public String[] getInfoData() { - return String.format( + return String + .format( "Heat Capacity: " + EnumChatFormatting.GREEN - + "%s %%" - + EnumChatFormatting.RESET - + " Hot time: " - + EnumChatFormatting.RED - + "%s s" - + EnumChatFormatting.RESET - + "%n" - + "Min output: " - + EnumChatFormatting.RED - + LPS_FMT - + EnumChatFormatting.RESET - + " Max output: " - + EnumChatFormatting.RED - + LPS_FMT - + EnumChatFormatting.RESET - + "%n" - + "Current Output: " - + EnumChatFormatting.YELLOW - + LPS_FMT - + EnumChatFormatting.RESET, + + "%s %%" + + EnumChatFormatting.RESET + + " Hot time: " + + EnumChatFormatting.RED + + "%s s" + + EnumChatFormatting.RESET + + "%n" + + "Min output: " + + EnumChatFormatting.RED + + LPS_FMT + + EnumChatFormatting.RESET + + " Max output: " + + EnumChatFormatting.RED + + LPS_FMT + + EnumChatFormatting.RESET + + "%n" + + "Current Output: " + + EnumChatFormatting.YELLOW + + LPS_FMT + + EnumChatFormatting.RESET, GT_Utility.formatNumbers(getHeatCapacityPercent()), GT_Utility.formatNumbers(getHotTimeSeconds()), GT_Utility.formatNumbers(getMinOutputPerSecond()), GT_Utility.formatNumbers(getMaxOutputPerSecond()), GT_Utility.formatNumbers(getProductionPerSecond())) - .split("\\R"); + .split("\\R"); } public int getHeatCapacityPercent() { @@ -320,20 +322,20 @@ public class GT_MetaTileEntity_Boiler_Solar extends GT_MetaTileEntity_Boiler { @Override public void getWailaBody(ItemStack itemStack, List currentTip, IWailaDataAccessor accessor, - IWailaConfigHandler config) { + IWailaConfigHandler config) { final NBTTagCompound tag = accessor.getNBTData(); currentTip.add( - String.format( - (GOLD + "Solar Boiler Output: " + RESET + "%d/%d L/s"), - tag.getInteger("calcificationOutput"), - tag.getInteger("maxCalcificationOutput"))); + String.format( + (GOLD + "Solar Boiler Output: " + RESET + "%d/%d L/s"), + tag.getInteger("calcificationOutput"), + tag.getInteger("maxCalcificationOutput"))); super.getWailaBody(itemStack, currentTip, accessor, config); } @Override public void getWailaNBTData(EntityPlayerMP player, TileEntity tile, NBTTagCompound tag, World world, int x, int y, - int z) { + int z) { super.getWailaNBTData(player, tile, tag, world, x, y, z); tag.setInteger("calcificationOutput", (getProductionPerSecond())); tag.setInteger("maxCalcificationOutput", (getMaxOutputPerSecond())); @@ -348,34 +350,34 @@ public class GT_MetaTileEntity_Boiler_Solar extends GT_MetaTileEntity_Boiler { private final int maxRuntimeTicks; public Config(String aCategory, int aDefaultCalcificationTicks, int aDefaultMinOutputPerSecond, - int aDefaultMaxOutputPerSecond, int aDefaultCoolDownTicks) { + int aDefaultMaxOutputPerSecond, int aDefaultCoolDownTicks) { calcificationTicks = get( - aCategory, - "CalcificationTicks", - aDefaultCalcificationTicks, - "Number of run-time ticks before boiler starts calcification.", - "100% calcification and minimal output will be reached at 2 times this."); + aCategory, + "CalcificationTicks", + aDefaultCalcificationTicks, + "Number of run-time ticks before boiler starts calcification.", + "100% calcification and minimal output will be reached at 2 times this."); minOutputPerSecond = get(aCategory, "MinOutputPerSecond", aDefaultMinOutputPerSecond); maxOutputPerSecond = get(aCategory, "MaxOutputPerSecond", aDefaultMaxOutputPerSecond); coolDownTicks = get( - aCategory, - "CoolDownTicks", - aDefaultCoolDownTicks, - "Number of ticks it takes to lose 1°C."); + aCategory, + "CoolDownTicks", + aDefaultCoolDownTicks, + "Number of ticks it takes to lose 1°C."); // After which min output is reached. maxRuntimeTicks = (getMaxOutputPerSecond() - getMinOutputPerSecond()) * getCalcificationTicks() - / getMaxOutputPerSecond() + getCalcificationTicks(); + / getMaxOutputPerSecond() + getCalcificationTicks(); } protected int get(final String aCategory, final String aKey, final int aDefaultValue, - final String... aComments) { + final String... aComments) { final StringBuilder tCommentBuilder = new StringBuilder(); for (String tComment : aComments) tCommentBuilder.append(tComment) - .append('\n'); + .append('\n'); tCommentBuilder.append("Default: ") - .append(aDefaultValue); + .append(aDefaultValue); return sMachineFile.mConfig.get(aCategory, aKey, aDefaultValue, tCommentBuilder.toString()) - .getInt(); + .getInt(); } public int getCalcificationTicks() { diff --git a/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Solar_Steel.java b/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Solar_Steel.java index 45e22c29fb..c20ea4018a 100644 --- a/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Solar_Steel.java +++ b/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Solar_Steel.java @@ -17,17 +17,17 @@ public class GT_MetaTileEntity_Boiler_Solar_Steel extends GT_MetaTileEntity_Boil } public GT_MetaTileEntity_Boiler_Solar_Steel(String aName, int aTier, String aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, aDescription, aTextures); } public GT_MetaTileEntity_Boiler_Solar_Steel(String aName, int aTier, String[] aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, aDescription, aTextures); } public GT_MetaTileEntity_Boiler_Solar_Steel(String aName, int aTier, String[] aDescription, - ITexture[][][] aTextures, Config aConfig) { + ITexture[][][] aTextures, Config aConfig) { super(aName, aTier, aDescription, aTextures, aConfig); } @@ -44,13 +44,13 @@ public class GT_MetaTileEntity_Boiler_Solar_Steel extends GT_MetaTileEntity_Boil int i = color + 1; short[] colorModulation = Dyes.getModulation(color, Dyes._NULL.mRGBa); rTextures[0][i] = new ITexture[] { - TextureFactory.of(BlockIcons.MACHINE_STEELBRICKS_BOTTOM, colorModulation) }; + TextureFactory.of(BlockIcons.MACHINE_STEELBRICKS_BOTTOM, colorModulation) }; rTextures[1][i] = new ITexture[] { TextureFactory.of(BlockIcons.MACHINE_STEELBRICKS_TOP, colorModulation), - TextureFactory.of(BlockIcons.BOILER_SOLAR) }; + TextureFactory.of(BlockIcons.BOILER_SOLAR) }; rTextures[2][i] = new ITexture[] { - TextureFactory.of(BlockIcons.MACHINE_STEELBRICKS_SIDE, colorModulation) }; + TextureFactory.of(BlockIcons.MACHINE_STEELBRICKS_SIDE, colorModulation) }; rTextures[3][i] = new ITexture[] { TextureFactory.of(BlockIcons.MACHINE_STEELBRICKS_SIDE, colorModulation), - TextureFactory.of(BlockIcons.OVERLAY_PIPE) }; + TextureFactory.of(BlockIcons.OVERLAY_PIPE) }; } return rTextures; } @@ -68,10 +68,10 @@ public class GT_MetaTileEntity_Boiler_Solar_Steel extends GT_MetaTileEntity_Boil @Override public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) { return new GT_MetaTileEntity_Boiler_Solar_Steel( - this.mName, - this.mTier, - this.mDescriptionArray, - this.mTextures, - this.mConfig); + this.mName, + this.mTier, + this.mDescriptionArray, + this.mTextures, + this.mConfig); } } diff --git a/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Steel.java b/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Steel.java index 67e821f636..12374c3313 100644 --- a/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Steel.java +++ b/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Steel.java @@ -20,12 +20,11 @@ public class GT_MetaTileEntity_Boiler_Steel extends GT_MetaTileEntity_Boiler_Bro public GT_MetaTileEntity_Boiler_Steel(int aID, String aName, String aNameRegional) { super( - aID, - aName, - aNameRegional, - new String[] { "Faster than the Bronze Boiler", "Produces 300L of Steam per second", - "Causes " + GT_Mod.gregtechproxy.mPollutionHighPressureCoalBoilerPerSecond - + " Pollution per second" }); + aID, + aName, + aNameRegional, + new String[] { "Faster than the Bronze Boiler", "Produces 300L of Steam per second", + "Causes " + GT_Mod.gregtechproxy.mPollutionHighPressureCoalBoilerPerSecond + " Pollution per second" }); } public GT_MetaTileEntity_Boiler_Steel(String aName, int aTier, String aDescription, ITexture[][][] aTextures) { @@ -40,18 +39,18 @@ public class GT_MetaTileEntity_Boiler_Steel extends GT_MetaTileEntity_Boiler_Bro public ITexture[][][] getTextureSet(ITexture[] aTextures) { ITexture[][][] rTextures = new ITexture[5][17][]; final ITexture[] texBottom = { TextureFactory.of(MACHINE_STEELBRICKS_BOTTOM) }, - texTop = { TextureFactory.of(MACHINE_STEELBRICKS_TOP), TextureFactory.of(OVERLAY_PIPE) }, - texSide = { TextureFactory.of(MACHINE_STEELBRICKS_SIDE), TextureFactory.of(OVERLAY_PIPE) }, - texFront = { TextureFactory.of(MACHINE_STEELBRICKS_SIDE), TextureFactory.of(BOILER_FRONT), - TextureFactory.builder() - .addIcon(BOILER_FRONT_GLOW) - .glow() - .build() }, - texFrontActive = { TextureFactory.of(MACHINE_STEELBRICKS_SIDE), TextureFactory.of(BOILER_FRONT_ACTIVE), - TextureFactory.builder() - .addIcon(BOILER_FRONT_ACTIVE_GLOW) - .glow() - .build() }; + texTop = { TextureFactory.of(MACHINE_STEELBRICKS_TOP), TextureFactory.of(OVERLAY_PIPE) }, + texSide = { TextureFactory.of(MACHINE_STEELBRICKS_SIDE), TextureFactory.of(OVERLAY_PIPE) }, + texFront = { TextureFactory.of(MACHINE_STEELBRICKS_SIDE), TextureFactory.of(BOILER_FRONT), + TextureFactory.builder() + .addIcon(BOILER_FRONT_GLOW) + .glow() + .build() }, + texFrontActive = { TextureFactory.of(MACHINE_STEELBRICKS_SIDE), TextureFactory.of(BOILER_FRONT_ACTIVE), + TextureFactory.builder() + .addIcon(BOILER_FRONT_ACTIVE_GLOW) + .glow() + .build() }; for (int i = 0; i < 17; i++) { rTextures[0][i] = texBottom; rTextures[1][i] = texTop; diff --git a/src/main/java/gregtech/common/tileentities/casings/upgrade/InventoryUpgrade.java b/src/main/java/gregtech/common/tileentities/casings/upgrade/InventoryUpgrade.java index ef57f40e65..06bb75c62f 100644 --- a/src/main/java/gregtech/common/tileentities/casings/upgrade/InventoryUpgrade.java +++ b/src/main/java/gregtech/common/tileentities/casings/upgrade/InventoryUpgrade.java @@ -86,19 +86,16 @@ public class InventoryUpgrade extends UpgradeCasing { @Override public void addUIWidgets(Builder builder, UIBuildContext buildContext) { builder.widget( - new TextFieldWidget().setGetter(() -> mInventoryName) - .setSetter((val) -> { - mInventoryName = val; - final IMultiBlockController controller = getTarget(false); - if (controller != null) { - controller.changeInventoryName( - mInventoryName, - mInventoryID.toString(), - mType); - } - }) - .setSize(100, 25) - .setPos(50, 30)); + new TextFieldWidget().setGetter(() -> mInventoryName) + .setSetter((val) -> { + mInventoryName = val; + final IMultiBlockController controller = getTarget(false); + if (controller != null) { + controller.changeInventoryName(mInventoryName, mInventoryID.toString(), mType); + } + }) + .setSize(100, 25) + .setPos(50, 30)); } @Override diff --git a/src/main/java/gregtech/common/tileentities/debug/GT_MetaTileEntity_AdvDebugStructureWriter.java b/src/main/java/gregtech/common/tileentities/debug/GT_MetaTileEntity_AdvDebugStructureWriter.java index 5f77c09e15..deb71f93cf 100644 --- a/src/main/java/gregtech/common/tileentities/debug/GT_MetaTileEntity_AdvDebugStructureWriter.java +++ b/src/main/java/gregtech/common/tileentities/debug/GT_MetaTileEntity_AdvDebugStructureWriter.java @@ -45,10 +45,10 @@ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_TieredMachi import gregtech.api.render.TextureFactory; public class GT_MetaTileEntity_AdvDebugStructureWriter extends GT_MetaTileEntity_TieredMachineBlock - implements IAddGregtechLogo, IAddUIWidgets { + implements IAddGregtechLogo, IAddUIWidgets { private static final HashMap bondingBoxes = new HashMap<>( - 1); + 1); private final BoundHighlighter boundingBox = new BoundHighlighter(); private final short[] numbers = new short[6]; private boolean transpose = false; @@ -60,7 +60,7 @@ public class GT_MetaTileEntity_AdvDebugStructureWriter extends GT_MetaTileEntity } public GT_MetaTileEntity_AdvDebugStructureWriter(String aName, int aTier, String aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, 0, aDescription, aTextures); } @@ -71,18 +71,18 @@ public class GT_MetaTileEntity_AdvDebugStructureWriter extends GT_MetaTileEntity @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[mTier][aColorIndex + 1], aSide != aFacing - ? TextureFactory.of( - TextureFactory.builder() - .addIcon(Textures.BlockIcons.OVERLAY_TELEPORTER_ACTIVE) - .glow() - .build()) - : TextureFactory.of( - TextureFactory.builder() - .addIcon(Textures.BlockIcons.STRUCTURE_MARK) - .glow() - .build()) }; + ? TextureFactory.of( + TextureFactory.builder() + .addIcon(Textures.BlockIcons.OVERLAY_TELEPORTER_ACTIVE) + .glow() + .build()) + : TextureFactory.of( + TextureFactory.builder() + .addIcon(Textures.BlockIcons.STRUCTURE_MARK) + .glow() + .build()) }; } @Override @@ -132,8 +132,8 @@ public class GT_MetaTileEntity_AdvDebugStructureWriter extends GT_MetaTileEntity @Override public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) { if (aBaseMetaTileEntity.isServerSide()) { - ExtendedFacing writerFacing = ExtendedFacing.of( - ForgeDirection.getOrientation(aBaseMetaTileEntity.getFrontFacing())); + ExtendedFacing writerFacing = ExtendedFacing + .of(ForgeDirection.getOrientation(aBaseMetaTileEntity.getFrontFacing())); double[] abc = new double[3]; double[] xyz = new double[3]; boundingBox.dim = aBaseMetaTileEntity.getWorld().provider.dimensionId; @@ -143,17 +143,17 @@ public class GT_MetaTileEntity_AdvDebugStructureWriter extends GT_MetaTileEntity abc[2] = -numbers[2] - 0.5; writerFacing.getWorldOffset(abc, xyz); boundingBox.pos1 = new Vec3Impl( - aBaseMetaTileEntity.getXCoord() + (int) (xyz[0] + 0.5), - aBaseMetaTileEntity.getYCoord() + (int) (xyz[1] + 0.5), - aBaseMetaTileEntity.getZCoord() + (int) (xyz[2] + 0.5)); + aBaseMetaTileEntity.getXCoord() + (int) (xyz[0] + 0.5), + aBaseMetaTileEntity.getYCoord() + (int) (xyz[1] + 0.5), + aBaseMetaTileEntity.getZCoord() + (int) (xyz[2] + 0.5)); abc[0] = -numbers[0] + numbers[3] - 0.5; abc[1] = -numbers[1] + numbers[4] - 0.5; abc[2] = -numbers[2] + numbers[5] - 0.5; writerFacing.getWorldOffset(abc, xyz); boundingBox.pos2 = new Vec3Impl( - aBaseMetaTileEntity.getXCoord() + (int) (xyz[0] + 0.5), - aBaseMetaTileEntity.getYCoord() + (int) (xyz[1] + 0.5), - aBaseMetaTileEntity.getZCoord() + (int) (xyz[2] + 0.5)); + aBaseMetaTileEntity.getXCoord() + (int) (xyz[0] + 0.5), + aBaseMetaTileEntity.getYCoord() + (int) (xyz[1] + 0.5), + aBaseMetaTileEntity.getZCoord() + (int) (xyz[2] + 0.5)); } } @@ -172,24 +172,24 @@ public class GT_MetaTileEntity_AdvDebugStructureWriter extends GT_MetaTileEntity public void printStructure(EntityPlayer aPlayer) { IGregTechTileEntity aBaseMetaTileEntity = getBaseMetaTileEntity(); String pseudoJavaCode = StructureUtility.getPseudoJavaCode( - aBaseMetaTileEntity.getWorld(), - ExtendedFacing.of(ForgeDirection.getOrientation(aBaseMetaTileEntity.getFrontFacing())), - aBaseMetaTileEntity.getXCoord(), - aBaseMetaTileEntity.getYCoord(), - aBaseMetaTileEntity.getZCoord(), - numbers[0], - numbers[1], - numbers[2], - te -> te.getClass() - .getCanonicalName(), - numbers[3], - numbers[4], - numbers[5], - transpose); + aBaseMetaTileEntity.getWorld(), + ExtendedFacing.of(ForgeDirection.getOrientation(aBaseMetaTileEntity.getFrontFacing())), + aBaseMetaTileEntity.getXCoord(), + aBaseMetaTileEntity.getYCoord(), + aBaseMetaTileEntity.getZCoord(), + numbers[0], + numbers[1], + numbers[2], + te -> te.getClass() + .getCanonicalName(), + numbers[3], + numbers[4], + numbers[5], + transpose); GT_FML_LOGGER.info(pseudoJavaCode); result = pseudoJavaCode.split("\\n"); aPlayer.addChatMessage( - new ChatComponentTranslation(translateToLocal("GT5U.machines.advdebugstructurewriter.printed"))); + new ChatComponentTranslation(translateToLocal("GT5U.machines.advdebugstructurewriter.printed"))); } @Override @@ -216,9 +216,9 @@ public class GT_MetaTileEntity_AdvDebugStructureWriter extends GT_MetaTileEntity @Override public String[] getDescription() { return new String[] { translateToLocal("GT5U.machines.advdebugstructurewriter.tooltip"), // Scans Blocks Around - translateToLocal("GT5U.machines.advdebugstructurewriter.tooltip.1"), // Prints Multiblock NonTE - // structure check code - translateToLocal("GT5U.machines.advdebugstructurewriter.tooltip.2") // ABC axes aligned to machine front + translateToLocal("GT5U.machines.advdebugstructurewriter.tooltip.1"), // Prints Multiblock NonTE + // structure check code + translateToLocal("GT5U.machines.advdebugstructurewriter.tooltip.2") // ABC axes aligned to machine front }; } @@ -240,86 +240,69 @@ public class GT_MetaTileEntity_AdvDebugStructureWriter extends GT_MetaTileEntity @Override public void addUIWidgets(ModularWindow.Builder builder, UIBuildContext buildContext) { builder.widget( - new DrawableWidget().setDrawable(GT_UITextures.PICTURE_SCREEN_BLACK) - .setSize(90, 112) - .setPos(43, 4)) - .widget(new ButtonWidget().setOnClick((clickData, widget) -> { - if (getBaseMetaTileEntity().isServerSide()) { - printStructure( - widget.getContext() - .getPlayer()); - } - }) - .setBackground( - GT_UITextures.BUTTON_STANDARD, - GT_UITextures.OVERLAY_BUTTON_PRINT) - .setSize(18, 18) - .setPos(11, 128) - .addTooltip( - translateToLocal( - "GT5U.machines.advdebugstructurewriter.gui.print.tooltip"))) - .widget( - new CycleButtonWidget().setToggle(() -> transpose, aBoolean -> transpose = aBoolean) - .setVariableBackground(GT_UITextures.BUTTON_STANDARD_TOGGLE) - .setStaticTexture(GT_UITextures.OVERLAY_BUTTON_TRANSPOSE) - .setSize(18, 18) - .setPos(32, 128) - .addTooltip( - translateToLocal( - "GT5U.machines.advdebugstructurewriter.gui.transpose.tooltip"))) - .widget( - new CycleButtonWidget().setToggle( - () -> showHighlightBox, - aBoolean -> showHighlightBox = aBoolean) - .setVariableBackground(GT_UITextures.BUTTON_STANDARD_TOGGLE) - .setStaticTexture(GT_UITextures.OVERLAY_BUTTON_BOUNDING_BOX) - .setSize(18, 18) - .setPos(53, 128) - .addTooltip( - translateToLocal( - "GT5U.machines.advdebugstructurewriter.gui.highlight.tooltip"))) - .widget( - new MultiChildWidget().addChild( - new TextWidget( - translateToLocal("GT5U.machines.advdebugstructurewriter.gui.origin")) - .setDefaultColor( - 0xf0f0ff) - .setPos( - 0, - 0)) - .addChild( - TextWidget.dynamicString(() -> "A: " + numbers[0]) - .setDefaultColor(0xf0f0ff) - .setPos(0, 10)) - .addChild( - TextWidget.dynamicString(() -> "B: " + numbers[1]) - .setDefaultColor(0xf0f0ff) - .setPos(0, 18)) - .addChild( - TextWidget.dynamicString(() -> "C: " + numbers[2]) - .setDefaultColor(0xf0f0ff) - .setPos(0, 26)) - .addChild( - new TextWidget( - translateToLocal( - "GT5U.machines.advdebugstructurewriter.gui.size")).setDefaultColor( - 0xf0f0ff) - .setPos( - 0, - 52)) - .addChild( - TextWidget.dynamicString(() -> "A: " + numbers[3]) - .setDefaultColor(0xf0f0ff) - .setPos(0, 62)) - .addChild( - TextWidget.dynamicString(() -> "B: " + numbers[4]) - .setDefaultColor(0xf0f0ff) - .setPos(0, 70)) - .addChild( - TextWidget.dynamicString(() -> "C: " + numbers[5]) - .setDefaultColor(0xf0f0ff) - .setPos(0, 78)) - .setPos(46, 8)); + new DrawableWidget().setDrawable(GT_UITextures.PICTURE_SCREEN_BLACK) + .setSize(90, 112) + .setPos(43, 4)) + .widget(new ButtonWidget().setOnClick((clickData, widget) -> { + if (getBaseMetaTileEntity().isServerSide()) { + printStructure( + widget.getContext() + .getPlayer()); + } + }) + .setBackground(GT_UITextures.BUTTON_STANDARD, GT_UITextures.OVERLAY_BUTTON_PRINT) + .setSize(18, 18) + .setPos(11, 128) + .addTooltip(translateToLocal("GT5U.machines.advdebugstructurewriter.gui.print.tooltip"))) + .widget( + new CycleButtonWidget().setToggle(() -> transpose, aBoolean -> transpose = aBoolean) + .setVariableBackground(GT_UITextures.BUTTON_STANDARD_TOGGLE) + .setStaticTexture(GT_UITextures.OVERLAY_BUTTON_TRANSPOSE) + .setSize(18, 18) + .setPos(32, 128) + .addTooltip(translateToLocal("GT5U.machines.advdebugstructurewriter.gui.transpose.tooltip"))) + .widget( + new CycleButtonWidget().setToggle(() -> showHighlightBox, aBoolean -> showHighlightBox = aBoolean) + .setVariableBackground(GT_UITextures.BUTTON_STANDARD_TOGGLE) + .setStaticTexture(GT_UITextures.OVERLAY_BUTTON_BOUNDING_BOX) + .setSize(18, 18) + .setPos(53, 128) + .addTooltip(translateToLocal("GT5U.machines.advdebugstructurewriter.gui.highlight.tooltip"))) + .widget( + new MultiChildWidget() + .addChild( + new TextWidget(translateToLocal("GT5U.machines.advdebugstructurewriter.gui.origin")) + .setDefaultColor(0xf0f0ff) + .setPos(0, 0)) + .addChild( + TextWidget.dynamicString(() -> "A: " + numbers[0]) + .setDefaultColor(0xf0f0ff) + .setPos(0, 10)) + .addChild( + TextWidget.dynamicString(() -> "B: " + numbers[1]) + .setDefaultColor(0xf0f0ff) + .setPos(0, 18)) + .addChild( + TextWidget.dynamicString(() -> "C: " + numbers[2]) + .setDefaultColor(0xf0f0ff) + .setPos(0, 26)) + .addChild( + new TextWidget(translateToLocal("GT5U.machines.advdebugstructurewriter.gui.size")) + .setDefaultColor(0xf0f0ff) + .setPos(0, 52)) + .addChild( + TextWidget.dynamicString(() -> "A: " + numbers[3]) + .setDefaultColor(0xf0f0ff) + .setPos(0, 62)) + .addChild( + TextWidget.dynamicString(() -> "B: " + numbers[4]) + .setDefaultColor(0xf0f0ff) + .setPos(0, 70)) + .addChild( + TextWidget.dynamicString(() -> "C: " + numbers[5]) + .setDefaultColor(0xf0f0ff) + .setPos(0, 78)) + .setPos(46, 8)); addChangeNumberButtons(builder, GT_UITextures.OVERLAY_BUTTON_MINUS_LARGE, -512, -64, 7); addChangeNumberButtons(builder, GT_UITextures.OVERLAY_BUTTON_MINUS_SMALL, -16, -1, 25); addChangeNumberButtons(builder, GT_UITextures.OVERLAY_BUTTON_PLUS_SMALL, 16, 1, 133); @@ -327,16 +310,16 @@ public class GT_MetaTileEntity_AdvDebugStructureWriter extends GT_MetaTileEntity } private void addChangeNumberButtons(ModularWindow.Builder builder, IDrawable overlay, int addNumberShift, - int addNumber, int xPos) { + int addNumber, int xPos) { int[] yPos = new int[] { 4, 22, 40, 62, 80, 98 }; for (int i = 0; i < yPos.length; i++) { final int index = i; // needed for lambda builder.widget( - new ButtonWidget().setOnClick( - (clickData, widget) -> numbers[index] += clickData.shift ? addNumberShift : addNumber) - .setBackground(GT_UITextures.BUTTON_STANDARD, overlay) - .setSize(18, 18) - .setPos(xPos, yPos[index])); + new ButtonWidget() + .setOnClick((clickData, widget) -> numbers[index] += clickData.shift ? addNumberShift : addNumber) + .setBackground(GT_UITextures.BUTTON_STANDARD, overlay) + .setSize(18, 18) + .setPos(xPos, yPos[index])); } } @@ -348,9 +331,9 @@ public class GT_MetaTileEntity_AdvDebugStructureWriter extends GT_MetaTileEntity @Override public void addGregTechLogo(ModularWindow.Builder builder) { builder.widget( - new DrawableWidget().setDrawable(getGUITextureSet().getGregTechLogo()) - .setSize(17, 17) - .setPos(113, 96)); + new DrawableWidget().setDrawable(getGUITextureSet().getGregTechLogo()) + .setSize(17, 17) + .setPos(113, 96)); } @Override diff --git a/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_DieselGenerator.java b/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_DieselGenerator.java index 3db3a5eef9..e2aea182fb 100644 --- a/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_DieselGenerator.java +++ b/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_DieselGenerator.java @@ -31,15 +31,15 @@ public class GT_MetaTileEntity_DieselGenerator extends GT_MetaTileEntity_BasicGe public GT_MetaTileEntity_DieselGenerator(int aID, String aName, String aNameRegional, int aTier) { super( - aID, - aName, - aNameRegional, - aTier, - new String[] { "Requires liquid Fuel", - "Causes " - + (int) (GT_Mod.gregtechproxy.mPollutionBaseDieselGeneratorPerSecond - * GT_Mod.gregtechproxy.mPollutionDieselGeneratorReleasedByTier[aTier]) - + " Pollution per second" }); + aID, + aName, + aNameRegional, + aTier, + new String[] { "Requires liquid Fuel", + "Causes " + + (int) (GT_Mod.gregtechproxy.mPollutionBaseDieselGeneratorPerSecond + * GT_Mod.gregtechproxy.mPollutionDieselGeneratorReleasedByTier[aTier]) + + " Pollution per second" }); onConfigLoad(); } @@ -75,9 +75,9 @@ public class GT_MetaTileEntity_DieselGenerator extends GT_MetaTileEntity_BasicGe public void onConfigLoad() { this.mEfficiency = GregTech_API.sMachineFile.get( - ConfigCategories.machineconfig, - "DieselGenerator.efficiency.tier." + this.mTier, - (100 - this.mTier * 5)); + ConfigCategories.machineconfig, + "DieselGenerator.efficiency.tier." + this.mTier, + (100 - this.mTier * 5)); } @Override @@ -102,13 +102,13 @@ public class GT_MetaTileEntity_DieselGenerator extends GT_MetaTileEntity_BasicGe public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) { if (aTick % 100 == 0 && mFluid != null && mFluid.amount > this.getCapacity()) { GT_Log.err.println( - "Dupe Abuse: " + aBaseMetaTileEntity.getOwnerName() - + " Coords: " - + aBaseMetaTileEntity.getXCoord() - + " " - + aBaseMetaTileEntity.getYCoord() - + " " - + aBaseMetaTileEntity.getZCoord()); + "Dupe Abuse: " + aBaseMetaTileEntity.getOwnerName() + + " Coords: " + + aBaseMetaTileEntity.getXCoord() + + " " + + aBaseMetaTileEntity.getYCoord() + + " " + + aBaseMetaTileEntity.getZCoord()); aBaseMetaTileEntity.setToFire(); } super.onPostTick(aBaseMetaTileEntity, aTick); @@ -127,19 +127,19 @@ public class GT_MetaTileEntity_DieselGenerator extends GT_MetaTileEntity_BasicGe final byte topFacing = (byte) ForgeDirection.UP.ordinal(); if (aBaseMetaTileEntity.getCoverIDAtSide(topFacing) == 0 - && !aBaseMetaTileEntity.getOpacityAtSide(topFacing)) { + && !aBaseMetaTileEntity.getOpacityAtSide(topFacing)) { final double x = aBaseMetaTileEntity.getOffsetX(topFacing, 1) + 2D / 16D - + XSTR_INSTANCE.nextFloat() * 14D / 16D; + + XSTR_INSTANCE.nextFloat() * 14D / 16D; final double y = aBaseMetaTileEntity.getOffsetY(topFacing, 1) + 1D / 32D; final double z = aBaseMetaTileEntity.getOffsetZ(topFacing, 1) + 2D / 16D - + XSTR_INSTANCE.nextFloat() * 14D / 16D; + + XSTR_INSTANCE.nextFloat() * 14D / 16D; new ParticleEventBuilder().setMotion(0D, 0D, 0D) - .setPosition(x, y, z) - .setWorld(getBaseMetaTileEntity().getWorld()) - .setIdentifier(ParticleFX.SMOKE) - .run(); + .setPosition(x, y, z) + .setWorld(getBaseMetaTileEntity().getWorld()) + .setIdentifier(ParticleFX.SMOKE) + .run(); } } } @@ -147,118 +147,118 @@ public class GT_MetaTileEntity_DieselGenerator extends GT_MetaTileEntity_BasicGe @Override public ITexture[] getFront(byte aColor) { return new ITexture[] { super.getFront(aColor)[0], - TextureFactory.of( - TextureFactory.of(DIESEL_GENERATOR_FRONT), - TextureFactory.builder() - .addIcon(DIESEL_GENERATOR_FRONT_GLOW) - .glow() - .build()), - OVERLAYS_ENERGY_OUT[this.mTier] }; + TextureFactory.of( + TextureFactory.of(DIESEL_GENERATOR_FRONT), + TextureFactory.builder() + .addIcon(DIESEL_GENERATOR_FRONT_GLOW) + .glow() + .build()), + OVERLAYS_ENERGY_OUT[this.mTier] }; } @Override public ITexture[] getBack(byte aColor) { return new ITexture[] { super.getBack(aColor)[0], - TextureFactory.of( - TextureFactory.of(DIESEL_GENERATOR_BACK), - TextureFactory.builder() - .addIcon(DIESEL_GENERATOR_BACK_GLOW) - .glow() - .build()) }; + TextureFactory.of( + TextureFactory.of(DIESEL_GENERATOR_BACK), + TextureFactory.builder() + .addIcon(DIESEL_GENERATOR_BACK_GLOW) + .glow() + .build()) }; } @Override public ITexture[] getBottom(byte aColor) { return new ITexture[] { super.getBottom(aColor)[0], - TextureFactory.of( - TextureFactory.of(DIESEL_GENERATOR_BOTTOM), - TextureFactory.builder() - .addIcon(DIESEL_GENERATOR_BOTTOM_GLOW) - .glow() - .build()) }; + TextureFactory.of( + TextureFactory.of(DIESEL_GENERATOR_BOTTOM), + TextureFactory.builder() + .addIcon(DIESEL_GENERATOR_BOTTOM_GLOW) + .glow() + .build()) }; } @Override public ITexture[] getTop(byte aColor) { return new ITexture[] { super.getTop(aColor)[0], - TextureFactory.of( - TextureFactory.of(DIESEL_GENERATOR_TOP), - TextureFactory.builder() - .addIcon(DIESEL_GENERATOR_TOP_GLOW) - .glow() - .build()) }; + TextureFactory.of( + TextureFactory.of(DIESEL_GENERATOR_TOP), + TextureFactory.builder() + .addIcon(DIESEL_GENERATOR_TOP_GLOW) + .glow() + .build()) }; } @Override public ITexture[] getSides(byte aColor) { return new ITexture[] { super.getSides(aColor)[0], - TextureFactory.of( - TextureFactory.of(DIESEL_GENERATOR_SIDE), - TextureFactory.builder() - .addIcon(DIESEL_GENERATOR_SIDE_GLOW) - .glow() - .build()) }; + TextureFactory.of( + TextureFactory.of(DIESEL_GENERATOR_SIDE), + TextureFactory.builder() + .addIcon(DIESEL_GENERATOR_SIDE_GLOW) + .glow() + .build()) }; } @Override public ITexture[] getFrontActive(byte aColor) { return new ITexture[] { super.getFrontActive(aColor)[0], - TextureFactory.of( - TextureFactory.of(DIESEL_GENERATOR_FRONT_ACTIVE), - TextureFactory.builder() - .addIcon(DIESEL_GENERATOR_FRONT_ACTIVE_GLOW) - .glow() - .build()), - OVERLAYS_ENERGY_OUT[this.mTier] }; + TextureFactory.of( + TextureFactory.of(DIESEL_GENERATOR_FRONT_ACTIVE), + TextureFactory.builder() + .addIcon(DIESEL_GENERATOR_FRONT_ACTIVE_GLOW) + .glow() + .build()), + OVERLAYS_ENERGY_OUT[this.mTier] }; } @Override public ITexture[] getBackActive(byte aColor) { return new ITexture[] { super.getBackActive(aColor)[0], - TextureFactory.of( - TextureFactory.of(DIESEL_GENERATOR_BACK_ACTIVE), - TextureFactory.builder() - .addIcon(DIESEL_GENERATOR_BACK_ACTIVE_GLOW) - .glow() - .build()) }; + TextureFactory.of( + TextureFactory.of(DIESEL_GENERATOR_BACK_ACTIVE), + TextureFactory.builder() + .addIcon(DIESEL_GENERATOR_BACK_ACTIVE_GLOW) + .glow() + .build()) }; } @Override public ITexture[] getBottomActive(byte aColor) { return new ITexture[] { super.getBottomActive(aColor)[0], - TextureFactory.of( - TextureFactory.of(DIESEL_GENERATOR_BOTTOM_ACTIVE), - TextureFactory.builder() - .addIcon(DIESEL_GENERATOR_BOTTOM_ACTIVE_GLOW) - .glow() - .build()) }; + TextureFactory.of( + TextureFactory.of(DIESEL_GENERATOR_BOTTOM_ACTIVE), + TextureFactory.builder() + .addIcon(DIESEL_GENERATOR_BOTTOM_ACTIVE_GLOW) + .glow() + .build()) }; } @Override public ITexture[] getTopActive(byte aColor) { return new ITexture[] { super.getTopActive(aColor)[0], - TextureFactory.of( - TextureFactory.of(DIESEL_GENERATOR_TOP_ACTIVE), - TextureFactory.builder() - .addIcon(DIESEL_GENERATOR_TOP_ACTIVE_GLOW) - .glow() - .build()) }; + TextureFactory.of( + TextureFactory.of(DIESEL_GENERATOR_TOP_ACTIVE), + TextureFactory.builder() + .addIcon(DIESEL_GENERATOR_TOP_ACTIVE_GLOW) + .glow() + .build()) }; } @Override public ITexture[] getSidesActive(byte aColor) { return new ITexture[] { super.getSidesActive(aColor)[0], - TextureFactory.of( - TextureFactory.of(DIESEL_GENERATOR_SIDE_ACTIVE), - TextureFactory.builder() - .addIcon(DIESEL_GENERATOR_SIDE_ACTIVE_GLOW) - .glow() - .build()) }; + TextureFactory.of( + TextureFactory.of(DIESEL_GENERATOR_SIDE_ACTIVE), + TextureFactory.builder() + .addIcon(DIESEL_GENERATOR_SIDE_ACTIVE_GLOW) + .glow() + .build()) }; } @Override public int getPollution() { return (int) (GT_Mod.gregtechproxy.mPollutionBaseDieselGeneratorPerSecond - * GT_Mod.gregtechproxy.mPollutionDieselGeneratorReleasedByTier[mTier]); + * GT_Mod.gregtechproxy.mPollutionDieselGeneratorReleasedByTier[mTier]); } } diff --git a/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_GasTurbine.java b/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_GasTurbine.java index 2e0279552a..1c8aeebb40 100644 --- a/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_GasTurbine.java +++ b/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_GasTurbine.java @@ -19,30 +19,30 @@ public class GT_MetaTileEntity_GasTurbine extends GT_MetaTileEntity_BasicGenerat @Deprecated public GT_MetaTileEntity_GasTurbine(int aID, String aName, String aNameRegional, int aTier) { super( - aID, - aName, - aNameRegional, - aTier, - new String[] { "Requires flammable Gasses", - "Causes " - + (int) (GT_Mod.gregtechproxy.mPollutionBaseGasTurbinePerSecond - * GT_Mod.gregtechproxy.mPollutionGasTurbineReleasedByTier[aTier]) - + " Pollution per second" }); + aID, + aName, + aNameRegional, + aTier, + new String[] { "Requires flammable Gasses", + "Causes " + + (int) (GT_Mod.gregtechproxy.mPollutionBaseGasTurbinePerSecond + * GT_Mod.gregtechproxy.mPollutionGasTurbineReleasedByTier[aTier]) + + " Pollution per second" }); this.mEfficiency = 100 - aTier * 5; onConfigLoad(); } public GT_MetaTileEntity_GasTurbine(int aID, String aName, String aNameRegional, int aTier, int mEfficiency) { super( - aID, - aName, - aNameRegional, - aTier, - new String[] { "Requires flammable Gasses", - "Causes " - + (int) (GT_Mod.gregtechproxy.mPollutionBaseGasTurbinePerSecond - * GT_Mod.gregtechproxy.mPollutionGasTurbineReleasedByTier[aTier]) - + " Pollution per second" }); + aID, + aName, + aNameRegional, + aTier, + new String[] { "Requires flammable Gasses", + "Causes " + + (int) (GT_Mod.gregtechproxy.mPollutionBaseGasTurbinePerSecond + * GT_Mod.gregtechproxy.mPollutionGasTurbineReleasedByTier[aTier]) + + " Pollution per second" }); this.mEfficiency = mEfficiency; onConfigLoad(); } @@ -62,7 +62,7 @@ public class GT_MetaTileEntity_GasTurbine extends GT_MetaTileEntity_BasicGenerat } public GT_MetaTileEntity_GasTurbine(String aName, int aTier, String[] aDescription, ITexture[][][] aTextures, - int mEfficiency) { + int mEfficiency) { super(aName, aTier, aDescription, aTextures); this.mEfficiency = mEfficiency; onConfigLoad(); @@ -76,11 +76,11 @@ public class GT_MetaTileEntity_GasTurbine extends GT_MetaTileEntity_BasicGenerat @Override public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) { return new GT_MetaTileEntity_GasTurbine( - this.mName, - this.mTier, - this.mDescriptionArray, - this.mTextures, - this.mEfficiency); + this.mName, + this.mTier, + this.mDescriptionArray, + this.mTextures, + this.mEfficiency); } @Override @@ -94,10 +94,8 @@ public class GT_MetaTileEntity_GasTurbine extends GT_MetaTileEntity_BasicGenerat } public void onConfigLoad() { - this.mEfficiency = GregTech_API.sMachineFile.get( - ConfigCategories.machineconfig, - "GasTurbine.efficiency.tier." + this.mTier, - this.mEfficiency); + this.mEfficiency = GregTech_API.sMachineFile + .get(ConfigCategories.machineconfig, "GasTurbine.efficiency.tier." + this.mTier, this.mEfficiency); } @Override @@ -108,118 +106,118 @@ public class GT_MetaTileEntity_GasTurbine extends GT_MetaTileEntity_BasicGenerat @Override public ITexture[] getFront(byte aColor) { return new ITexture[] { super.getFront(aColor)[0], - TextureFactory.of( - TextureFactory.of(GAS_TURBINE_FRONT), - TextureFactory.builder() - .addIcon(GAS_TURBINE_FRONT_GLOW) - .glow() - .build()), - OVERLAYS_ENERGY_OUT[this.mTier] }; + TextureFactory.of( + TextureFactory.of(GAS_TURBINE_FRONT), + TextureFactory.builder() + .addIcon(GAS_TURBINE_FRONT_GLOW) + .glow() + .build()), + OVERLAYS_ENERGY_OUT[this.mTier] }; } @Override public ITexture[] getBack(byte aColor) { return new ITexture[] { super.getBack(aColor)[0], - TextureFactory.of( - TextureFactory.of(GAS_TURBINE_BACK), - TextureFactory.builder() - .addIcon(GAS_TURBINE_BACK_GLOW) - .glow() - .build()) }; + TextureFactory.of( + TextureFactory.of(GAS_TURBINE_BACK), + TextureFactory.builder() + .addIcon(GAS_TURBINE_BACK_GLOW) + .glow() + .build()) }; } @Override public ITexture[] getBottom(byte aColor) { return new ITexture[] { super.getBottom(aColor)[0], - TextureFactory.of( - TextureFactory.of(GAS_TURBINE_BOTTOM), - TextureFactory.builder() - .addIcon(GAS_TURBINE_BOTTOM_GLOW) - .glow() - .build()) }; + TextureFactory.of( + TextureFactory.of(GAS_TURBINE_BOTTOM), + TextureFactory.builder() + .addIcon(GAS_TURBINE_BOTTOM_GLOW) + .glow() + .build()) }; } @Override public ITexture[] getTop(byte aColor) { return new ITexture[] { super.getTop(aColor)[0], - TextureFactory.of( - TextureFactory.of(GAS_TURBINE_TOP), - TextureFactory.builder() - .addIcon(GAS_TURBINE_TOP_GLOW) - .glow() - .build()) }; + TextureFactory.of( + TextureFactory.of(GAS_TURBINE_TOP), + TextureFactory.builder() + .addIcon(GAS_TURBINE_TOP_GLOW) + .glow() + .build()) }; } @Override public ITexture[] getSides(byte aColor) { return new ITexture[] { super.getSides(aColor)[0], - TextureFactory.of( - TextureFactory.of(GAS_TURBINE_SIDE), - TextureFactory.builder() - .addIcon(GAS_TURBINE_SIDE_GLOW) - .glow() - .build()) }; + TextureFactory.of( + TextureFactory.of(GAS_TURBINE_SIDE), + TextureFactory.builder() + .addIcon(GAS_TURBINE_SIDE_GLOW) + .glow() + .build()) }; } @Override public ITexture[] getFrontActive(byte aColor) { return new ITexture[] { super.getFrontActive(aColor)[0], - TextureFactory.of( - TextureFactory.of(GAS_TURBINE_FRONT_ACTIVE), - TextureFactory.builder() - .addIcon(GAS_TURBINE_FRONT_ACTIVE_GLOW) - .glow() - .build()), - OVERLAYS_ENERGY_OUT[this.mTier] }; + TextureFactory.of( + TextureFactory.of(GAS_TURBINE_FRONT_ACTIVE), + TextureFactory.builder() + .addIcon(GAS_TURBINE_FRONT_ACTIVE_GLOW) + .glow() + .build()), + OVERLAYS_ENERGY_OUT[this.mTier] }; } @Override public ITexture[] getBackActive(byte aColor) { return new ITexture[] { super.getBackActive(aColor)[0], - TextureFactory.of( - TextureFactory.of(GAS_TURBINE_BACK_ACTIVE), - TextureFactory.builder() - .addIcon(GAS_TURBINE_BACK_ACTIVE_GLOW) - .glow() - .build()) }; + TextureFactory.of( + TextureFactory.of(GAS_TURBINE_BACK_ACTIVE), + TextureFactory.builder() + .addIcon(GAS_TURBINE_BACK_ACTIVE_GLOW) + .glow() + .build()) }; } @Override public ITexture[] getBottomActive(byte aColor) { return new ITexture[] { super.getBottomActive(aColor)[0], - TextureFactory.of( - TextureFactory.of(GAS_TURBINE_BOTTOM_ACTIVE), - TextureFactory.builder() - .addIcon(GAS_TURBINE_BOTTOM_ACTIVE_GLOW) - .glow() - .build()) }; + TextureFactory.of( + TextureFactory.of(GAS_TURBINE_BOTTOM_ACTIVE), + TextureFactory.builder() + .addIcon(GAS_TURBINE_BOTTOM_ACTIVE_GLOW) + .glow() + .build()) }; } @Override public ITexture[] getTopActive(byte aColor) { return new ITexture[] { super.getTopActive(aColor)[0], - TextureFactory.of( - TextureFactory.of(GAS_TURBINE_TOP_ACTIVE), - TextureFactory.builder() - .addIcon(GAS_TURBINE_TOP_ACTIVE_GLOW) - .glow() - .build()) }; + TextureFactory.of( + TextureFactory.of(GAS_TURBINE_TOP_ACTIVE), + TextureFactory.builder() + .addIcon(GAS_TURBINE_TOP_ACTIVE_GLOW) + .glow() + .build()) }; } @Override public ITexture[] getSidesActive(byte aColor) { return new ITexture[] { super.getSidesActive(aColor)[0], - TextureFactory.of( - TextureFactory.of(GAS_TURBINE_SIDE_ACTIVE), - TextureFactory.builder() - .addIcon(GAS_TURBINE_SIDE_ACTIVE_GLOW) - .glow() - .build()) }; + TextureFactory.of( + TextureFactory.of(GAS_TURBINE_SIDE_ACTIVE), + TextureFactory.builder() + .addIcon(GAS_TURBINE_SIDE_ACTIVE_GLOW) + .glow() + .build()) }; } @Override public int getPollution() { return (int) (GT_Mod.gregtechproxy.mPollutionBaseGasTurbinePerSecond - * GT_Mod.gregtechproxy.mPollutionGasTurbineReleasedByTier[mTier]); + * GT_Mod.gregtechproxy.mPollutionGasTurbineReleasedByTier[mTier]); } } diff --git a/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_LightningRod.java b/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_LightningRod.java index 152a849d5a..33066f7617 100644 --- a/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_LightningRod.java +++ b/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_LightningRod.java @@ -24,31 +24,29 @@ public class GT_MetaTileEntity_LightningRod extends GT_MetaTileEntity_TieredMach } public GT_MetaTileEntity_LightningRod(String aName, int aTier, int aInvSlotCount, String aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, aInvSlotCount, aDescription, aTextures); } public GT_MetaTileEntity_LightningRod(String aName, int aTier, int aInvSlotCount, String[] aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, aInvSlotCount, aDescription, aTextures); } @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { if (aSide != ForgeDirection.UP.ordinal()) { return new ITexture[] { BlockIcons.MACHINE_CASINGS[mTier][aColorIndex + 1], - BlockIcons.OVERLAYS_ENERGY_OUT_POWER[mTier] }; + BlockIcons.OVERLAYS_ENERGY_OUT_POWER[mTier] }; } if (!aActive) return new ITexture[] { BlockIcons.MACHINE_CASINGS[mTier][aColorIndex + 1], - TextureFactory.of(BlockIcons.MACHINE_CASING_FUSION_GLASS) }; - return new ITexture[] { - BlockIcons.MACHINE_CASINGS[mTier][aColorIndex + 1], TextureFactory.of( - BlockIcons.MACHINE_CASING_FUSION_GLASS_YELLOW), - TextureFactory.builder() - .addIcon(BlockIcons.MACHINE_CASING_FUSION_GLASS_YELLOW_GLOW) - .glow() - .build() }; + TextureFactory.of(BlockIcons.MACHINE_CASING_FUSION_GLASS) }; + return new ITexture[] { BlockIcons.MACHINE_CASINGS[mTier][aColorIndex + 1], + TextureFactory.of(BlockIcons.MACHINE_CASING_FUSION_GLASS_YELLOW), TextureFactory.builder() + .addIcon(BlockIcons.MACHINE_CASING_FUSION_GLASS_YELLOW_GLOW) + .glow() + .build() }; } @Override @@ -59,11 +57,11 @@ public class GT_MetaTileEntity_LightningRod extends GT_MetaTileEntity_TieredMach @Override public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) { return new GT_MetaTileEntity_LightningRod( - this.mName, - this.mTier, - this.mInventory.length, - this.mDescriptionArray, - this.mTextures); + this.mName, + this.mTier, + this.mInventory.length, + this.mDescriptionArray, + this.mTextures); } @Override @@ -86,8 +84,8 @@ public class GT_MetaTileEntity_LightningRod extends GT_MetaTileEntity_TieredMach for (int i = aBaseMetaTileEntity.getYCoord() + 1; i < aWorld.getHeight() - 1; i++) { if (isRodValid && aBaseMetaTileEntity.getBlock(aX, i, aZ) - .getUnlocalizedName() - .equals("blockFenceIron")) { + .getUnlocalizedName() + .equals("blockFenceIron")) { aRodValue++; } else { isRodValid = false; @@ -99,9 +97,8 @@ public class GT_MetaTileEntity_LightningRod extends GT_MetaTileEntity_TieredMach } if (!aWorld.isThundering() && ((aY + aRodValue) < 128)) aRodValue = 0; if (XSTR_INSTANCE.nextInt(4 * aWorld.getHeight()) < (aRodValue * (aY + aRodValue))) { - aBaseMetaTileEntity.increaseStoredEnergyUnits( - maxEUStore() - aBaseMetaTileEntity.getStoredEU(), - false); + aBaseMetaTileEntity + .increaseStoredEnergyUnits(maxEUStore() - aBaseMetaTileEntity.getStoredEU(), false); aWorld.addWeatherEffect(new EntityLightningBolt(aWorld, aX, aY + aRodValue, aZ)); } } diff --git a/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_MagicEnergyConverter.java b/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_MagicEnergyConverter.java index b67993770d..17089403c3 100644 --- a/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_MagicEnergyConverter.java +++ b/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_MagicEnergyConverter.java @@ -29,13 +29,13 @@ public class GT_MetaTileEntity_MagicEnergyConverter extends GT_MetaTileEntity_Ba } public GT_MetaTileEntity_MagicEnergyConverter(String aName, int aTier, String aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, aDescription, aTextures); onConfigLoad(); } public GT_MetaTileEntity_MagicEnergyConverter(String aName, int aTier, String[] aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, aDescription, aTextures); onConfigLoad(); } @@ -48,10 +48,10 @@ public class GT_MetaTileEntity_MagicEnergyConverter extends GT_MetaTileEntity_Ba @Override public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) { return new GT_MetaTileEntity_MagicEnergyConverter( - this.mName, - this.mTier, - this.mDescriptionArray, - this.mTextures); + this.mName, + this.mTier, + this.mDescriptionArray, + this.mTextures); } @Override @@ -66,9 +66,9 @@ public class GT_MetaTileEntity_MagicEnergyConverter extends GT_MetaTileEntity_Ba public void onConfigLoad() { this.mEfficiency = GregTech_API.sMachineFile.get( - ConfigCategories.machineconfig, - "MagicEnergyConverter.efficiency.tier." + this.mTier, - 100 - this.mTier * 5); + ConfigCategories.machineconfig, + "MagicEnergyConverter.efficiency.tier." + this.mTier, + 100 - this.mTier * 5); } @Override @@ -79,93 +79,93 @@ public class GT_MetaTileEntity_MagicEnergyConverter extends GT_MetaTileEntity_Ba @Override public ITexture[] getFront(byte aColor) { return new ITexture[] { super.getFront(aColor)[0], TextureFactory.of(MACHINE_CASING_MAGIC), - TextureFactory.builder() - .addIcon(MACHINE_CASING_MAGIC_GLOW) - .glow() - .build(), - OVERLAYS_ENERGY_OUT[mTier] }; + TextureFactory.builder() + .addIcon(MACHINE_CASING_MAGIC_GLOW) + .glow() + .build(), + OVERLAYS_ENERGY_OUT[mTier] }; } @Override public ITexture[] getBack(byte aColor) { return new ITexture[] { super.getBack(aColor)[0], TextureFactory.of(MACHINE_CASING_MAGIC_FRONT), - TextureFactory.builder() - .addIcon(MACHINE_CASING_MAGIC_FRONT_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(MACHINE_CASING_MAGIC_FRONT_GLOW) + .glow() + .build() }; } @Override public ITexture[] getBottom(byte aColor) { return new ITexture[] { super.getBottom(aColor)[0], TextureFactory.of(MACHINE_CASING_MAGIC), - TextureFactory.builder() - .addIcon(MACHINE_CASING_MAGIC_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(MACHINE_CASING_MAGIC_GLOW) + .glow() + .build() }; } @Override public ITexture[] getTop(byte aColor) { return new ITexture[] { super.getTop(aColor)[0], TextureFactory.of(MACHINE_CASING_MAGIC), - TextureFactory.builder() - .addIcon(MACHINE_CASING_MAGIC_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(MACHINE_CASING_MAGIC_GLOW) + .glow() + .build() }; } @Override public ITexture[] getSides(byte aColor) { return new ITexture[] { super.getSides(aColor)[0], TextureFactory.of(MACHINE_CASING_MAGIC), - TextureFactory.builder() - .addIcon(MACHINE_CASING_MAGIC_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(MACHINE_CASING_MAGIC_GLOW) + .glow() + .build() }; } @Override public ITexture[] getFrontActive(byte aColor) { return new ITexture[] { super.getFrontActive(aColor)[0], TextureFactory.of(MACHINE_CASING_MAGIC_ACTIVE), - TextureFactory.builder() - .addIcon(MACHINE_CASING_MAGIC_ACTIVE_GLOW) - .glow() - .build(), - OVERLAYS_ENERGY_OUT[mTier] }; + TextureFactory.builder() + .addIcon(MACHINE_CASING_MAGIC_ACTIVE_GLOW) + .glow() + .build(), + OVERLAYS_ENERGY_OUT[mTier] }; } @Override public ITexture[] getBackActive(byte aColor) { return new ITexture[] { super.getBackActive(aColor)[0], TextureFactory.of(MACHINE_CASING_MAGIC_FRONT_ACTIVE), - TextureFactory.builder() - .addIcon(MACHINE_CASING_MAGIC_FRONT_ACTIVE_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(MACHINE_CASING_MAGIC_FRONT_ACTIVE_GLOW) + .glow() + .build() }; } @Override public ITexture[] getBottomActive(byte aColor) { return new ITexture[] { super.getBottomActive(aColor)[0], TextureFactory.of(MACHINE_CASING_MAGIC_ACTIVE), - TextureFactory.builder() - .addIcon(MACHINE_CASING_MAGIC_ACTIVE_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(MACHINE_CASING_MAGIC_ACTIVE_GLOW) + .glow() + .build() }; } @Override public ITexture[] getTopActive(byte aColor) { return new ITexture[] { super.getTopActive(aColor)[0], TextureFactory.of(MACHINE_CASING_MAGIC_ACTIVE), - TextureFactory.builder() - .addIcon(MACHINE_CASING_MAGIC_ACTIVE_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(MACHINE_CASING_MAGIC_ACTIVE_GLOW) + .glow() + .build() }; } @Override public ITexture[] getSidesActive(byte aColor) { return new ITexture[] { super.getSidesActive(aColor)[0], TextureFactory.of(MACHINE_CASING_MAGIC_ACTIVE), - TextureFactory.builder() - .addIcon(MACHINE_CASING_MAGIC_ACTIVE_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(MACHINE_CASING_MAGIC_ACTIVE_GLOW) + .glow() + .build() }; } @Override diff --git a/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_MagicalEnergyAbsorber.java b/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_MagicalEnergyAbsorber.java index dded37de09..b95f79c0f5 100644 --- a/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_MagicalEnergyAbsorber.java +++ b/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_MagicalEnergyAbsorber.java @@ -69,13 +69,13 @@ interface MagicalEnergyBBListener { } public class GT_MetaTileEntity_MagicalEnergyAbsorber extends GT_MetaTileEntity_BasicGenerator - implements MagicalEnergyBBListener { + implements MagicalEnergyBBListener { private static final boolean THAUMCRAFT_LOADED = Thaumcraft.isModLoaded(); private static final ConcurrentHashMap sSubscribedCrystals = new ConcurrentHashMap<>( - 4); + 4); private static final List sPrimalAspects = (THAUMCRAFT_LOADED) ? Aspect.getPrimalAspects() - : new ArrayList<>(); + : new ArrayList<>(); private static final Map sAspectsEnergy = new HashMap<>(); private static boolean sAllowMultipleEggs = false; private static GT_MetaTileEntity_MagicalEnergyAbsorber sActiveSiphon = null; @@ -97,7 +97,7 @@ public class GT_MetaTileEntity_MagicalEnergyAbsorber extends GT_MetaTileEntity_B } private GT_MetaTileEntity_MagicalEnergyAbsorber(String aName, int aTier, String[] aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, aDescription, aTextures); onConfigLoad(GregTech_API.sMachineFile); } @@ -118,12 +118,12 @@ public class GT_MetaTileEntity_MagicalEnergyAbsorber extends GT_MetaTileEntity_B for (Aspect tAspect : Aspect.aspects.values()) { // noinspection UnstableApiUsage sAspectsEnergy.put( - tAspect, - Enums.getIfPresent( - TC_Aspects.class, - tAspect.getTag() - .toUpperCase(Locale.ENGLISH)) - .or(TC_Aspects.AER).mValue * sEnergyPerEssentia); + tAspect, + Enums.getIfPresent( + TC_Aspects.class, + tAspect.getTag() + .toUpperCase(Locale.ENGLISH)) + .or(TC_Aspects.AER).mValue * sEnergyPerEssentia); } } } @@ -137,9 +137,7 @@ public class GT_MetaTileEntity_MagicalEnergyAbsorber extends GT_MetaTileEntity_B sharedConfigLoad(aConfig); mEfficiency = aConfig.get(machineconfig, "MagicEnergyAbsorber.efficiency.tier." + mTier, 100 - mTier * 10); mMaxVisPerDrain = (int) Math.round( - Math.sqrt( - (double) (V[mTier] * 10000) - / (sEnergyFromVis * (getEfficiency() != 0 ? getEfficiency() : 100)))); + Math.sqrt((double) (V[mTier] * 10000) / (sEnergyFromVis * (getEfficiency() != 0 ? getEfficiency() : 100)))); if (Math.pow(mMaxVisPerDrain, 2) * sEnergyFromVis * (getEfficiency() != 0 ? getEfficiency() : 100) < V[mTier]) { mMaxVisPerDrain += 1; } @@ -150,13 +148,13 @@ public class GT_MetaTileEntity_MagicalEnergyAbsorber extends GT_MetaTileEntity_B if (aPlayer.isSneaking()) mMagicalEnergyBB.decreaseTier(); else mMagicalEnergyBB.increaseTier(); GT_Utility.sendChatToPlayer( - aPlayer, - String.format( - GT_LanguageManager.addStringLocalization( - "Interaction_DESCRIPTION_MagicalEnergyAbsorber_Screwdriver", - "Absorption range: %s blocks"), - mMagicalEnergyBB.getRange(), - true)); + aPlayer, + String.format( + GT_LanguageManager.addStringLocalization( + "Interaction_DESCRIPTION_MagicalEnergyAbsorber_Screwdriver", + "Absorption range: %s blocks"), + mMagicalEnergyBB.getRange(), + true)); mMagicalEnergyBB.update(); } @@ -208,43 +206,43 @@ public class GT_MetaTileEntity_MagicalEnergyAbsorber extends GT_MetaTileEntity_B final String LI = "- %%%"; final String EU_PER = "%%%EU per "; List description = new ArrayList<>(); + description + .add(UNDERLINE + "Feasts on " + LIGHT_PURPLE + UNDERLINE + "magic" + GRAY + UNDERLINE + " close to it:"); description.add( - UNDERLINE + "Feasts on " + LIGHT_PURPLE + UNDERLINE + "magic" + GRAY + UNDERLINE + " close to it:"); - description.add( - LI + (sAllowMultipleEggs ? "A " : "An " + YELLOW + UNDERLINE + "EXCLUSIVE" + RESET) - + GRAY - + " " - + LIGHT_PURPLE - + "Dragon Egg" - + GRAY - + " atop"); + LI + (sAllowMultipleEggs ? "A " : "An " + YELLOW + UNDERLINE + "EXCLUSIVE" + RESET) + + GRAY + + " " + + LIGHT_PURPLE + + "Dragon Egg" + + GRAY + + " atop"); if (sEnergyPerEndercrystal > 0) { description.add(LI + sEnergyPerEndercrystal + EU_PER + LIGHT_PURPLE + "Ender Crystal" + GRAY + " in range"); } if (THAUMCRAFT_LOADED) { description.add(LI + mMaxVisPerDrain + "%%%CV/t from an " + LIGHT_PURPLE + "Energised Node" + GRAY); description.add( - LI + (sEnergyPerEssentia * getEfficiency()) / 100 - + EU_PER - + LIGHT_PURPLE - + "Essentia" - + GRAY - + " Aspect-Value from containers in range"); + LI + (sEnergyPerEssentia * getEfficiency()) / 100 + + EU_PER + + LIGHT_PURPLE + + "Essentia" + + GRAY + + " Aspect-Value from containers in range"); } description.add(" "); description.add(UNDERLINE + "Lookup range (Use Screwdriver to change):"); description.add("Default: %%%" + GREEN + mMagicalEnergyBB.getDefaultRange()); description.add("Max: %%%" + GREEN + mMagicalEnergyBB.getMaxRange()); description.add(" "); + description + .add(UNDERLINE + "Fuels on " + LIGHT_PURPLE + UNDERLINE + "enchantments" + GRAY + UNDERLINE + " input:"); description.add( - UNDERLINE + "Fuels on " + LIGHT_PURPLE + UNDERLINE + "enchantments" + GRAY + UNDERLINE + " input:"); - description.add( - "- Item: %%%" + (10000 * getEfficiency()) / 100 - + EU_PER - + LIGHT_PURPLE - + "enchant" - + GRAY - + " weight × level / max"); + "- Item: %%%" + (10000 * getEfficiency()) / 100 + + EU_PER + + LIGHT_PURPLE + + "enchant" + + GRAY + + " weight × level / max"); description.add("- Book: %%%" + 10000 + EU_PER + LIGHT_PURPLE + "enchant" + GRAY + " weight × level / max"); description.add(" "); description.add("Efficiency: %%%" + GREEN + getEfficiency() + "%"); @@ -254,29 +252,29 @@ public class GT_MetaTileEntity_MagicalEnergyAbsorber extends GT_MetaTileEntity_B @Override public ITexture[] getFront(byte aColor) { return new ITexture[] { super.getFront(aColor)[0], TextureFactory.of(MACHINE_CASING_MAGIC), - TextureFactory.builder() - .addIcon(MACHINE_CASING_MAGIC_GLOW) - .glow() - .build(), - OVERLAYS_ENERGY_OUT[mTier] }; + TextureFactory.builder() + .addIcon(MACHINE_CASING_MAGIC_GLOW) + .glow() + .build(), + OVERLAYS_ENERGY_OUT[mTier] }; } @Override public ITexture[] getBack(byte aColor) { return new ITexture[] { super.getBack(aColor)[0], TextureFactory.of(MACHINE_CASING_MAGIC_FRONT), - TextureFactory.builder() - .addIcon(MACHINE_CASING_MAGIC_FRONT_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(MACHINE_CASING_MAGIC_FRONT_GLOW) + .glow() + .build() }; } @Override public ITexture[] getBottom(byte aColor) { return new ITexture[] { super.getBottom(aColor)[0], TextureFactory.of(MACHINE_CASING_MAGIC), - TextureFactory.builder() - .addIcon(MACHINE_CASING_MAGIC_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(MACHINE_CASING_MAGIC_GLOW) + .glow() + .build() }; } @Override @@ -287,56 +285,56 @@ public class GT_MetaTileEntity_MagicalEnergyAbsorber extends GT_MetaTileEntity_B @Override public ITexture[] getSides(byte aColor) { return new ITexture[] { super.getSides(aColor)[0], TextureFactory.of(MACHINE_CASING_MAGIC), - TextureFactory.builder() - .addIcon(MACHINE_CASING_MAGIC_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(MACHINE_CASING_MAGIC_GLOW) + .glow() + .build() }; } @Override public ITexture[] getFrontActive(byte aColor) { return new ITexture[] { super.getFrontActive(aColor)[0], TextureFactory.of(MACHINE_CASING_MAGIC_ACTIVE), - TextureFactory.builder() - .addIcon(MACHINE_CASING_MAGIC_ACTIVE_GLOW) - .glow() - .build(), - OVERLAYS_ENERGY_OUT[mTier] }; + TextureFactory.builder() + .addIcon(MACHINE_CASING_MAGIC_ACTIVE_GLOW) + .glow() + .build(), + OVERLAYS_ENERGY_OUT[mTier] }; } @Override public ITexture[] getBackActive(byte aColor) { return new ITexture[] { super.getBackActive(aColor)[0], TextureFactory.of(MACHINE_CASING_MAGIC_FRONT_ACTIVE), - TextureFactory.builder() - .addIcon(MACHINE_CASING_MAGIC_FRONT_ACTIVE_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(MACHINE_CASING_MAGIC_FRONT_ACTIVE_GLOW) + .glow() + .build() }; } @Override public ITexture[] getBottomActive(byte aColor) { return new ITexture[] { super.getBottomActive(aColor)[0], TextureFactory.of(MACHINE_CASING_MAGIC_ACTIVE), - TextureFactory.builder() - .addIcon(MACHINE_CASING_MAGIC_ACTIVE_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(MACHINE_CASING_MAGIC_ACTIVE_GLOW) + .glow() + .build() }; } @Override public ITexture[] getTopActive(byte aColor) { return new ITexture[] { super.getTopActive(aColor)[0], TextureFactory.of(MACHINE_CASING_DRAGONEGG), - TextureFactory.builder() - .addIcon(MACHINE_CASING_DRAGONEGG_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(MACHINE_CASING_DRAGONEGG_GLOW) + .glow() + .build() }; } @Override public ITexture[] getSidesActive(byte aColor) { return new ITexture[] { super.getSidesActive(aColor)[0], TextureFactory.of(MACHINE_CASING_MAGIC_ACTIVE), - TextureFactory.builder() - .addIcon(MACHINE_CASING_MAGIC_ACTIVE_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(MACHINE_CASING_MAGIC_ACTIVE_GLOW) + .glow() + .build() }; } @Override @@ -379,8 +377,8 @@ public class GT_MetaTileEntity_MagicalEnergyAbsorber extends GT_MetaTileEntity_B } aBaseMetaTileEntity.increaseStoredEnergyUnits(tGeneratedEU, true); aBaseMetaTileEntity.setActive( - aBaseMetaTileEntity.isAllowedToWork() - && aBaseMetaTileEntity.getUniversalEnergyStored() >= maxEUOutput() + getMinimumStoredEU()); + aBaseMetaTileEntity.isAllowedToWork() + && aBaseMetaTileEntity.getUniversalEnergyStored() >= maxEUOutput() + getMinimumStoredEU()); } } @@ -403,10 +401,9 @@ public class GT_MetaTileEntity_MagicalEnergyAbsorber extends GT_MetaTileEntity_B final double oY = aBaseMetaTileEntity.getYCoord() + 17D / 32D; final double oZ = aBaseMetaTileEntity.getZCoord() + 8D / 16D; - final ParticleEventBuilder particleEventBuilder = new ParticleEventBuilder().setWorld( - getBaseMetaTileEntity().getWorld()) - .setIdentifier( - ParticleFX.PORTAL); + final ParticleEventBuilder particleEventBuilder = new ParticleEventBuilder() + .setWorld(getBaseMetaTileEntity().getWorld()) + .setIdentifier(ParticleFX.PORTAL); for (int i = 0; i < 9; i++) { final double dX = (XSTR_INSTANCE.nextFloat() - 0.5D) / 2D; @@ -423,8 +420,8 @@ public class GT_MetaTileEntity_MagicalEnergyAbsorber extends GT_MetaTileEntity_B final double mZ = dZ * 4D; particleEventBuilder.setMotion(mX, mY, mZ) - .setPosition(x, y, z) - .run(); + .setPosition(x, y, z) + .run(); } } } @@ -458,8 +455,7 @@ public class GT_MetaTileEntity_MagicalEnergyAbsorber extends GT_MetaTileEntity_B private boolean isDisenchantableItem(ItemStack aStack) { return ((aStack.isItemEnchanted()) && (aStack.getItem() - .getItemEnchantability() - > 0)); + .getItemEnchantability() > 0)); } private boolean isEnchantedBook(ItemStack aStack) { @@ -507,7 +503,7 @@ public class GT_MetaTileEntity_MagicalEnergyAbsorber extends GT_MetaTileEntity_B // Only consume input when it can store EU and push output if ((getBaseMetaTileEntity().getStoredEU() + tEU) < getBaseMetaTileEntity().getEUCapacity() - && getBaseMetaTileEntity().addStackToSlot(getOutputSlot(), tOutputStack)) { + && getBaseMetaTileEntity().addStackToSlot(getOutputSlot(), tOutputStack)) { decrStackSize(getInputSlot(), 1); } else { tEU = 0; @@ -524,11 +520,11 @@ public class GT_MetaTileEntity_MagicalEnergyAbsorber extends GT_MetaTileEntity_B if (!hasEgg()) return 0; if (!sAllowMultipleEggs) { if (sActiveSiphon != null && sActiveSiphon != this - && sActiveSiphon.getBaseMetaTileEntity() != null - && !sActiveSiphon.getBaseMetaTileEntity() - .isInvalidTileEntity() - && sActiveSiphon.isChunkLoaded() - && sActiveSiphon.hasEgg()) { + && sActiveSiphon.getBaseMetaTileEntity() != null + && !sActiveSiphon.getBaseMetaTileEntity() + .isInvalidTileEntity() + && sActiveSiphon.isChunkLoaded() + && sActiveSiphon.hasEgg()) { getBaseMetaTileEntity().doExplosion(Integer.MAX_VALUE); } else { setActiveSiphon(this); @@ -538,9 +534,9 @@ public class GT_MetaTileEntity_MagicalEnergyAbsorber extends GT_MetaTileEntity_B if (egg == Blocks.dragon_egg) { return sDragonEggEnergyPerTick; } else if (egg.getUnlocalizedName() - .contains("creeperEgg")) { - return sCreeperEggEnergyPerTick; - } + .contains("creeperEgg")) { + return sCreeperEggEnergyPerTick; + } return 0; } @@ -591,10 +587,10 @@ public class GT_MetaTileEntity_MagicalEnergyAbsorber extends GT_MetaTileEntity_B Aspect aspect = mAvailableEssentiaAspects.get(i); long tAspectEU = ((long) sAspectsEnergy.get(aspect) * getEfficiency()) / 100; if (tAspectEU <= tEUtoGen && AspectSourceHelper.drainEssentia( - (TileEntity) getBaseMetaTileEntity(), - aspect, - ForgeDirection.UNKNOWN, - mMagicalEnergyBB.getRange())) { + (TileEntity) getBaseMetaTileEntity(), + aspect, + ForgeDirection.UNKNOWN, + mMagicalEnergyBB.getRange())) { tEUtoGen -= tAspectEU; tEU += tAspectEU; } @@ -608,7 +604,7 @@ public class GT_MetaTileEntity_MagicalEnergyAbsorber extends GT_MetaTileEntity_B if (aBlock == Blocks.dragon_egg) return true; if (aBlock instanceof BlockDragonEgg) return true; return (aBlock.getUnlocalizedName() - .equals("tile.dragonEgg")); + .equals("tile.dragonEgg")); } private boolean isChunkLoaded() { @@ -713,18 +709,13 @@ public class GT_MetaTileEntity_MagicalEnergyAbsorber extends GT_MetaTileEntity_B double tX = tBaseMetaTileEntity.getXCoord(); double tY = tBaseMetaTileEntity.getYCoord(); double tZ = tBaseMetaTileEntity.getZCoord(); - return AxisAlignedBB.getBoundingBox( - tX - tRange, - tY - tRange, - tZ - tRange, - tX + tRange, - tY + tRange, - tZ + tRange); + return AxisAlignedBB + .getBoundingBox(tX - tRange, tY - tRange, tZ - tRange, tX + tRange, tY + tRange, tZ + tRange); } private void scanLivingCrystals() { World tWorld = mAbsorber.getBaseMetaTileEntity() - .getWorld(); + .getWorld(); mLivingCrystalIDs.clear(); for (EntityEnderCrystal o : tWorld.getEntitiesWithinAABB(EntityEnderCrystal.class, getAxisAlignedBB())) { if (o.isEntityAlive()) { @@ -740,8 +731,7 @@ public class GT_MetaTileEntity_MagicalEnergyAbsorber extends GT_MetaTileEntity_B int tRange = getRange(); int tY = tBaseMetaTileEntity.getYCoord(); int tMaxY = tBaseMetaTileEntity.getWorld() - .getHeight() - - 1; + .getHeight() - 1; // Make sure relative Y range stays between 0 and world max Y int rYMin = (tY - tRange >= 0) ? -tRange : -(tY); int rYMax = (((tY + tRange) <= tMaxY) ? tRange : tMaxY - tY); @@ -783,12 +773,9 @@ public class GT_MetaTileEntity_MagicalEnergyAbsorber extends GT_MetaTileEntity_B if (mAbsorber == null) return; if (mAbsorber.getBaseMetaTileEntity() == null) return; if (mAbsorber.getBaseMetaTileEntity() - .isInvalidTileEntity()) - return; + .isInvalidTileEntity()) return; if (mAbsorber.getBaseMetaTileEntity() - .getWorld() - == null) - return; + .getWorld() == null) return; scanLivingCrystals(); scanAvailableAspects(); if (mListener != null) { diff --git a/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_NaquadahReactor.java b/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_NaquadahReactor.java index b81b0b956b..7e9fff95aa 100644 --- a/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_NaquadahReactor.java +++ b/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_NaquadahReactor.java @@ -16,7 +16,7 @@ public class GT_MetaTileEntity_NaquadahReactor extends GT_MetaTileEntity_BasicGe private int mEfficiency; public GT_MetaTileEntity_NaquadahReactor(int aID, String aName, String[] aDescription, String aNameRegional, - int aTier) { + int aTier) { super(aID, aName, aNameRegional, aTier, aDescription); if (aTier > 8 || aTier < 4) { new Exception("Tier without Recipe Map!").printStackTrace(); @@ -35,7 +35,7 @@ public class GT_MetaTileEntity_NaquadahReactor extends GT_MetaTileEntity_BasicGe @Override public boolean isOutputFacing(byte aSide) { return (aSide > 1) && (aSide != getBaseMetaTileEntity().getFrontFacing()) - && (aSide != getBaseMetaTileEntity().getBackFacing()); + && (aSide != getBaseMetaTileEntity().getBackFacing()); } @Override @@ -84,111 +84,108 @@ public class GT_MetaTileEntity_NaquadahReactor extends GT_MetaTileEntity_BasicGe } public int onConfigLoad() { - return mEfficiency = GregTech_API.sMachineFile.get( - ConfigCategories.machineconfig, - "SolidNaquadah.efficiency.tier." + mTier, - getBaseEff()); + return mEfficiency = GregTech_API.sMachineFile + .get(ConfigCategories.machineconfig, "SolidNaquadah.efficiency.tier." + mTier, getBaseEff()); } @Override public ITexture[] getFront(byte aColor) { return new ITexture[] { super.getFront(aColor)[0], - TextureFactory.of( - TextureFactory.of(NAQUADAH_REACTOR_SOLID_FRONT), - TextureFactory.builder() - .addIcon(NAQUADAH_REACTOR_SOLID_FRONT_GLOW) - .glow() - .build()) }; + TextureFactory.of( + TextureFactory.of(NAQUADAH_REACTOR_SOLID_FRONT), + TextureFactory.builder() + .addIcon(NAQUADAH_REACTOR_SOLID_FRONT_GLOW) + .glow() + .build()) }; } @Override public ITexture[] getBack(byte aColor) { return new ITexture[] { super.getBack(aColor)[0], - TextureFactory.of( - TextureFactory.of(NAQUADAH_REACTOR_SOLID_BACK), - TextureFactory.builder() - .addIcon(NAQUADAH_REACTOR_SOLID_BACK_GLOW) - .glow() - .build()) }; + TextureFactory.of( + TextureFactory.of(NAQUADAH_REACTOR_SOLID_BACK), + TextureFactory.builder() + .addIcon(NAQUADAH_REACTOR_SOLID_BACK_GLOW) + .glow() + .build()) }; } @Override public ITexture[] getBottom(byte aColor) { return new ITexture[] { super.getBottom(aColor)[0], - TextureFactory.of( - TextureFactory.of(NAQUADAH_REACTOR_SOLID_BOTTOM), - TextureFactory.builder() - .addIcon(NAQUADAH_REACTOR_SOLID_BOTTOM_GLOW) - .glow() - .build()) }; + TextureFactory.of( + TextureFactory.of(NAQUADAH_REACTOR_SOLID_BOTTOM), + TextureFactory.builder() + .addIcon(NAQUADAH_REACTOR_SOLID_BOTTOM_GLOW) + .glow() + .build()) }; } @Override public ITexture[] getTop(byte aColor) { return new ITexture[] { super.getTop(aColor)[0], - TextureFactory.of( - TextureFactory.of(NAQUADAH_REACTOR_SOLID_TOP), - TextureFactory.builder() - .addIcon(NAQUADAH_REACTOR_SOLID_TOP_GLOW) - .glow() - .build()) }; + TextureFactory.of( + TextureFactory.of(NAQUADAH_REACTOR_SOLID_TOP), + TextureFactory.builder() + .addIcon(NAQUADAH_REACTOR_SOLID_TOP_GLOW) + .glow() + .build()) }; } @Override public ITexture[] getSides(byte aColor) { return new ITexture[] { super.getSides(aColor)[0], - TextureFactory.of( - TextureFactory.of(NAQUADAH_REACTOR_SOLID_SIDE), - TextureFactory.builder() - .addIcon(NAQUADAH_REACTOR_SOLID_SIDE_GLOW) - .glow() - .build()) }; + TextureFactory.of( + TextureFactory.of(NAQUADAH_REACTOR_SOLID_SIDE), + TextureFactory.builder() + .addIcon(NAQUADAH_REACTOR_SOLID_SIDE_GLOW) + .glow() + .build()) }; } @Override public ITexture[] getFrontActive(byte aColor) { return new ITexture[] { super.getFrontActive(aColor)[0], TextureFactory.of(NAQUADAH_REACTOR_SOLID_FRONT_ACTIVE), - TextureFactory.builder() - .addIcon(NAQUADAH_REACTOR_SOLID_FRONT_ACTIVE_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(NAQUADAH_REACTOR_SOLID_FRONT_ACTIVE_GLOW) + .glow() + .build() }; } @Override public ITexture[] getBackActive(byte aColor) { return new ITexture[] { super.getBackActive(aColor)[0], TextureFactory.of(NAQUADAH_REACTOR_SOLID_BACK_ACTIVE), - TextureFactory.builder() - .addIcon(NAQUADAH_REACTOR_SOLID_BACK_ACTIVE_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(NAQUADAH_REACTOR_SOLID_BACK_ACTIVE_GLOW) + .glow() + .build() }; } @Override public ITexture[] getBottomActive(byte aColor) { - return new ITexture[] { - super.getBottomActive(aColor)[0], TextureFactory.of(NAQUADAH_REACTOR_SOLID_BOTTOM_ACTIVE), - TextureFactory.builder() - .addIcon(NAQUADAH_REACTOR_SOLID_BOTTOM_ACTIVE_GLOW) - .glow() - .build() }; + return new ITexture[] { super.getBottomActive(aColor)[0], + TextureFactory.of(NAQUADAH_REACTOR_SOLID_BOTTOM_ACTIVE), TextureFactory.builder() + .addIcon(NAQUADAH_REACTOR_SOLID_BOTTOM_ACTIVE_GLOW) + .glow() + .build() }; } @Override public ITexture[] getTopActive(byte aColor) { return new ITexture[] { super.getTopActive(aColor)[0], TextureFactory.of(NAQUADAH_REACTOR_SOLID_TOP_ACTIVE), - TextureFactory.builder() - .addIcon(NAQUADAH_REACTOR_SOLID_TOP_ACTIVE_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(NAQUADAH_REACTOR_SOLID_TOP_ACTIVE_GLOW) + .glow() + .build() }; } @Override public ITexture[] getSidesActive(byte aColor) { return new ITexture[] { super.getSidesActive(aColor)[0], TextureFactory.of(NAQUADAH_REACTOR_SOLID_SIDE_ACTIVE), - TextureFactory.builder() - .addIcon(NAQUADAH_REACTOR_SOLID_SIDE_ACTIVE_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(NAQUADAH_REACTOR_SOLID_SIDE_ACTIVE_GLOW) + .glow() + .build() }; } @Override diff --git a/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_PlasmaGenerator.java b/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_PlasmaGenerator.java index 6e4bbe2dc7..c1370cce63 100644 --- a/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_PlasmaGenerator.java +++ b/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_PlasmaGenerator.java @@ -36,7 +36,7 @@ public class GT_MetaTileEntity_PlasmaGenerator extends GT_MetaTileEntity_BasicGe @Override public ITexture[] getFront(byte aColor) { return new ITexture[] { super.getFront(aColor)[0], TextureFactory.of(MACHINE_CASING_FUSION_GLASS), - OVERLAYS_ENERGY_OUT[mTier] }; + OVERLAYS_ENERGY_OUT[mTier] }; } @Override @@ -62,47 +62,47 @@ public class GT_MetaTileEntity_PlasmaGenerator extends GT_MetaTileEntity_BasicGe @Override public ITexture[] getFrontActive(byte aColor) { return new ITexture[] { super.getFrontActive(aColor)[0], TextureFactory.of(MACHINE_CASING_FUSION_GLASS_YELLOW), - TextureFactory.builder() - .addIcon(MACHINE_CASING_FUSION_GLASS_YELLOW_GLOW) - .glow() - .build(), - OVERLAYS_ENERGY_OUT[mTier] }; + TextureFactory.builder() + .addIcon(MACHINE_CASING_FUSION_GLASS_YELLOW_GLOW) + .glow() + .build(), + OVERLAYS_ENERGY_OUT[mTier] }; } @Override public ITexture[] getBackActive(byte aColor) { return new ITexture[] { super.getBackActive(aColor)[0], TextureFactory.of(MACHINE_CASING_FUSION_GLASS_YELLOW), - TextureFactory.builder() - .addIcon(MACHINE_CASING_FUSION_GLASS_YELLOW_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(MACHINE_CASING_FUSION_GLASS_YELLOW_GLOW) + .glow() + .build() }; } @Override public ITexture[] getBottomActive(byte aColor) { return new ITexture[] { super.getBottomActive(aColor)[0], TextureFactory.of(MACHINE_CASING_FUSION_GLASS_YELLOW), - TextureFactory.builder() - .addIcon(MACHINE_CASING_FUSION_GLASS_YELLOW_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(MACHINE_CASING_FUSION_GLASS_YELLOW_GLOW) + .glow() + .build() }; } @Override public ITexture[] getTopActive(byte aColor) { return new ITexture[] { super.getTopActive(aColor)[0], TextureFactory.of(MACHINE_CASING_FUSION_GLASS_YELLOW), - TextureFactory.builder() - .addIcon(MACHINE_CASING_FUSION_GLASS_YELLOW_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(MACHINE_CASING_FUSION_GLASS_YELLOW_GLOW) + .glow() + .build() }; } @Override public ITexture[] getSidesActive(byte aColor) { return new ITexture[] { super.getSidesActive(aColor)[0], TextureFactory.of(MACHINE_CASING_FUSION_GLASS_YELLOW), - TextureFactory.builder() - .addIcon(MACHINE_CASING_FUSION_GLASS_YELLOW_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(MACHINE_CASING_FUSION_GLASS_YELLOW_GLOW) + .glow() + .build() }; } @Override @@ -132,9 +132,9 @@ public class GT_MetaTileEntity_PlasmaGenerator extends GT_MetaTileEntity_BasicGe public void onConfigLoad() { this.mEfficiency = GregTech_API.sMachineFile.get( - ConfigCategories.machineconfig, - "PlasmaGenerator.efficiency.tier." + this.mTier, - Math.max(10, 10 + Math.min(90, this.mTier * 10))); + ConfigCategories.machineconfig, + "PlasmaGenerator.efficiency.tier." + this.mTier, + Math.max(10, 10 + Math.min(90, this.mTier * 10))); } @Override diff --git a/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_SteamTurbine.java b/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_SteamTurbine.java index 6d59c050d0..a875fd521c 100644 --- a/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_SteamTurbine.java +++ b/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_SteamTurbine.java @@ -20,11 +20,11 @@ public class GT_MetaTileEntity_SteamTurbine extends GT_MetaTileEntity_BasicGener public GT_MetaTileEntity_SteamTurbine(int aID, String aName, String aNameRegional, int aTier) { super( - aID, - aName, - aNameRegional, - aTier, - new String[] { "Converts Steam into EU", "Base rate: 2L of Steam -> 1 EU" }); + aID, + aName, + aNameRegional, + aTier, + new String[] { "Converts Steam into EU", "Base rate: 2L of Steam -> 1 EU" }); onConfigLoad(); } @@ -59,9 +59,8 @@ public class GT_MetaTileEntity_SteamTurbine extends GT_MetaTileEntity_BasicGener System.arraycopy(mDescriptionArray, 0, desc, 0, mDescriptionArray.length); desc[mDescriptionArray.length] = "Fuel Efficiency: " + (600 / getEfficiency()) + "%"; desc[mDescriptionArray.length + 1] = String.format( - "Consumes up to %sL of Steam per second", - (int) (4000 * (8 * Math.pow(4, mTier) + Math.pow(2, Math.max(mTier - 1, 0))) - / (600 / getEfficiency()))); + "Consumes up to %sL of Steam per second", + (int) (4000 * (8 * Math.pow(4, mTier) + Math.pow(2, Math.max(mTier - 1, 0))) / (600 / getEfficiency()))); return desc; } @@ -71,10 +70,8 @@ public class GT_MetaTileEntity_SteamTurbine extends GT_MetaTileEntity_BasicGener } public void onConfigLoad() { - this.mEfficiency = GregTech_API.sMachineFile.get( - ConfigCategories.machineconfig, - "SteamTurbine.efficiency.tier." + this.mTier, - 6 + this.mTier); + this.mEfficiency = GregTech_API.sMachineFile + .get(ConfigCategories.machineconfig, "SteamTurbine.efficiency.tier." + this.mTier, 6 + this.mTier); } @Override @@ -96,113 +93,113 @@ public class GT_MetaTileEntity_SteamTurbine extends GT_MetaTileEntity_BasicGener @Override public ITexture[] getFront(byte aColor) { return new ITexture[] { super.getFront(aColor)[0], - TextureFactory.of( - TextureFactory.of(STEAM_TURBINE_FRONT), - TextureFactory.builder() - .addIcon(STEAM_TURBINE_FRONT_GLOW) - .glow() - .build()), - OVERLAYS_ENERGY_OUT[this.mTier] }; + TextureFactory.of( + TextureFactory.of(STEAM_TURBINE_FRONT), + TextureFactory.builder() + .addIcon(STEAM_TURBINE_FRONT_GLOW) + .glow() + .build()), + OVERLAYS_ENERGY_OUT[this.mTier] }; } @Override public ITexture[] getBack(byte aColor) { return new ITexture[] { super.getBack(aColor)[0], - TextureFactory.of( - TextureFactory.of(STEAM_TURBINE_BACK), - TextureFactory.builder() - .addIcon(STEAM_TURBINE_BACK_GLOW) - .glow() - .build()) }; + TextureFactory.of( + TextureFactory.of(STEAM_TURBINE_BACK), + TextureFactory.builder() + .addIcon(STEAM_TURBINE_BACK_GLOW) + .glow() + .build()) }; } @Override public ITexture[] getBottom(byte aColor) { return new ITexture[] { super.getBottom(aColor)[0], - TextureFactory.of( - TextureFactory.of(STEAM_TURBINE_BOTTOM), - TextureFactory.builder() - .addIcon(STEAM_TURBINE_BOTTOM_GLOW) - .glow() - .build()) }; + TextureFactory.of( + TextureFactory.of(STEAM_TURBINE_BOTTOM), + TextureFactory.builder() + .addIcon(STEAM_TURBINE_BOTTOM_GLOW) + .glow() + .build()) }; } @Override public ITexture[] getTop(byte aColor) { return new ITexture[] { super.getTop(aColor)[0], - TextureFactory.of( - TextureFactory.of(STEAM_TURBINE_TOP), - TextureFactory.builder() - .addIcon(STEAM_TURBINE_TOP_GLOW) - .glow() - .build()) }; + TextureFactory.of( + TextureFactory.of(STEAM_TURBINE_TOP), + TextureFactory.builder() + .addIcon(STEAM_TURBINE_TOP_GLOW) + .glow() + .build()) }; } @Override public ITexture[] getSides(byte aColor) { return new ITexture[] { super.getSides(aColor)[0], - TextureFactory.of( - TextureFactory.of(STEAM_TURBINE_SIDE), - TextureFactory.builder() - .addIcon(STEAM_TURBINE_SIDE_GLOW) - .glow() - .build()) }; + TextureFactory.of( + TextureFactory.of(STEAM_TURBINE_SIDE), + TextureFactory.builder() + .addIcon(STEAM_TURBINE_SIDE_GLOW) + .glow() + .build()) }; } @Override public ITexture[] getFrontActive(byte aColor) { return new ITexture[] { super.getFrontActive(aColor)[0], - TextureFactory.of( - TextureFactory.of(STEAM_TURBINE_FRONT_ACTIVE), - TextureFactory.builder() - .addIcon(STEAM_TURBINE_FRONT_ACTIVE_GLOW) - .glow() - .build()), - OVERLAYS_ENERGY_OUT[this.mTier] }; + TextureFactory.of( + TextureFactory.of(STEAM_TURBINE_FRONT_ACTIVE), + TextureFactory.builder() + .addIcon(STEAM_TURBINE_FRONT_ACTIVE_GLOW) + .glow() + .build()), + OVERLAYS_ENERGY_OUT[this.mTier] }; } @Override public ITexture[] getBackActive(byte aColor) { return new ITexture[] { super.getBackActive(aColor)[0], - TextureFactory.of( - TextureFactory.of(STEAM_TURBINE_BACK_ACTIVE), - TextureFactory.builder() - .addIcon(STEAM_TURBINE_BACK_ACTIVE_GLOW) - .glow() - .build()) }; + TextureFactory.of( + TextureFactory.of(STEAM_TURBINE_BACK_ACTIVE), + TextureFactory.builder() + .addIcon(STEAM_TURBINE_BACK_ACTIVE_GLOW) + .glow() + .build()) }; } @Override public ITexture[] getBottomActive(byte aColor) { return new ITexture[] { super.getBottomActive(aColor)[0], - TextureFactory.of( - TextureFactory.of(STEAM_TURBINE_BOTTOM_ACTIVE), - TextureFactory.builder() - .addIcon(STEAM_TURBINE_BOTTOM_ACTIVE_GLOW) - .glow() - .build()) }; + TextureFactory.of( + TextureFactory.of(STEAM_TURBINE_BOTTOM_ACTIVE), + TextureFactory.builder() + .addIcon(STEAM_TURBINE_BOTTOM_ACTIVE_GLOW) + .glow() + .build()) }; } @Override public ITexture[] getTopActive(byte aColor) { return new ITexture[] { super.getTopActive(aColor)[0], - TextureFactory.of( - TextureFactory.of(STEAM_TURBINE_TOP_ACTIVE), - TextureFactory.builder() - .addIcon(STEAM_TURBINE_TOP_ACTIVE_GLOW) - .glow() - .build()) }; + TextureFactory.of( + TextureFactory.of(STEAM_TURBINE_TOP_ACTIVE), + TextureFactory.builder() + .addIcon(STEAM_TURBINE_TOP_ACTIVE_GLOW) + .glow() + .build()) }; } @Override public ITexture[] getSidesActive(byte aColor) { return new ITexture[] { super.getSidesActive(aColor)[0], - TextureFactory.of( - TextureFactory.of(STEAM_TURBINE_SIDE_ACTIVE), - TextureFactory.builder() - .addIcon(STEAM_TURBINE_SIDE_ACTIVE_GLOW) - .glow() - .build()) }; + TextureFactory.of( + TextureFactory.of(STEAM_TURBINE_SIDE_ACTIVE), + TextureFactory.builder() + .addIcon(STEAM_TURBINE_SIDE_ACTIVE_GLOW) + .glow() + .build()) }; } @Override diff --git a/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_Bronze.java b/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_Bronze.java index bf027be770..252cc6a5b8 100644 --- a/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_Bronze.java +++ b/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_Bronze.java @@ -11,7 +11,7 @@ import gregtech.api.render.TextureFactory; public class GT_MetaTileEntity_BasicHull_Bronze extends GT_MetaTileEntity_BasicHull_NonElectric { public GT_MetaTileEntity_BasicHull_Bronze(int aID, String aName, String aNameRegional, int aTier, - String aDescription) { + String aDescription) { super(aID, aName, aNameRegional, aTier, aDescription); } @@ -20,7 +20,7 @@ public class GT_MetaTileEntity_BasicHull_Bronze extends GT_MetaTileEntity_BasicH } public GT_MetaTileEntity_BasicHull_Bronze(String aName, int aTier, String[] aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, aDescription, aTextures); } @@ -33,15 +33,12 @@ public class GT_MetaTileEntity_BasicHull_Bronze extends GT_MetaTileEntity_BasicH public ITexture[][][] getTextureSet(ITexture[] aTextures) { ITexture[][][] rTextures = new ITexture[3][17][]; for (byte i = -1; i < 16; i = (byte) (i + 1)) { - rTextures[0][(i + 1)] = new ITexture[] { TextureFactory.of( - Textures.BlockIcons.MACHINE_BRONZE_BOTTOM, - Dyes.getModulation(i, Dyes._NULL.mRGBa)) }; - rTextures[1][(i + 1)] = new ITexture[] { TextureFactory.of( - Textures.BlockIcons.MACHINE_BRONZE_TOP, - Dyes.getModulation(i, Dyes._NULL.mRGBa)) }; - rTextures[2][(i + 1)] = new ITexture[] { TextureFactory.of( - Textures.BlockIcons.MACHINE_BRONZE_SIDE, - Dyes.getModulation(i, Dyes._NULL.mRGBa)) }; + rTextures[0][(i + 1)] = new ITexture[] { + TextureFactory.of(Textures.BlockIcons.MACHINE_BRONZE_BOTTOM, Dyes.getModulation(i, Dyes._NULL.mRGBa)) }; + rTextures[1][(i + 1)] = new ITexture[] { + TextureFactory.of(Textures.BlockIcons.MACHINE_BRONZE_TOP, Dyes.getModulation(i, Dyes._NULL.mRGBa)) }; + rTextures[2][(i + 1)] = new ITexture[] { + TextureFactory.of(Textures.BlockIcons.MACHINE_BRONZE_SIDE, Dyes.getModulation(i, Dyes._NULL.mRGBa)) }; } return rTextures; } diff --git a/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_BronzeBricks.java b/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_BronzeBricks.java index 6be36f5798..ee788ba8c0 100644 --- a/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_BronzeBricks.java +++ b/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_BronzeBricks.java @@ -11,44 +11,41 @@ import gregtech.api.render.TextureFactory; public class GT_MetaTileEntity_BasicHull_BronzeBricks extends GT_MetaTileEntity_BasicHull_NonElectric { public GT_MetaTileEntity_BasicHull_BronzeBricks(int aID, String aName, String aNameRegional, int aTier, - String aDescription) { + String aDescription) { super(aID, aName, aNameRegional, aTier, aDescription); } public GT_MetaTileEntity_BasicHull_BronzeBricks(String aName, int aTier, String aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, aDescription, aTextures); } public GT_MetaTileEntity_BasicHull_BronzeBricks(String aName, int aTier, String[] aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, aDescription, aTextures); } @Override public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) { return new GT_MetaTileEntity_BasicHull_BronzeBricks( - this.mName, - this.mTier, - this.mDescriptionArray, - this.mTextures); + this.mName, + this.mTier, + this.mDescriptionArray, + this.mTextures); } @Override public ITexture[][][] getTextureSet(ITexture[] aTextures) { ITexture[][][] rTextures = new ITexture[3][17][]; for (byte i = -1; i < 16; i = (byte) (i + 1)) { - ITexture[] tmp0 = { TextureFactory.of( - Textures.BlockIcons.MACHINE_BRONZEBRICKS_BOTTOM, - Dyes.getModulation(i, Dyes._NULL.mRGBa)) }; + ITexture[] tmp0 = { TextureFactory + .of(Textures.BlockIcons.MACHINE_BRONZEBRICKS_BOTTOM, Dyes.getModulation(i, Dyes._NULL.mRGBa)) }; rTextures[0][(i + 1)] = tmp0; - ITexture[] tmp1 = { TextureFactory.of( - Textures.BlockIcons.MACHINE_BRONZEBRICKS_TOP, - Dyes.getModulation(i, Dyes._NULL.mRGBa)) }; + ITexture[] tmp1 = { TextureFactory + .of(Textures.BlockIcons.MACHINE_BRONZEBRICKS_TOP, Dyes.getModulation(i, Dyes._NULL.mRGBa)) }; rTextures[1][(i + 1)] = tmp1; - ITexture[] tmp2 = { TextureFactory.of( - Textures.BlockIcons.MACHINE_BRONZEBRICKS_SIDE, - Dyes.getModulation(i, Dyes._NULL.mRGBa)) }; + ITexture[] tmp2 = { TextureFactory + .of(Textures.BlockIcons.MACHINE_BRONZEBRICKS_SIDE, Dyes.getModulation(i, Dyes._NULL.mRGBa)) }; rTextures[2][(i + 1)] = tmp2; } return rTextures; diff --git a/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_Steel.java b/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_Steel.java index 72785918b6..85e461bf47 100644 --- a/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_Steel.java +++ b/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_Steel.java @@ -11,7 +11,7 @@ import gregtech.api.render.TextureFactory; public class GT_MetaTileEntity_BasicHull_Steel extends GT_MetaTileEntity_BasicHull_NonElectric { public GT_MetaTileEntity_BasicHull_Steel(int aID, String aName, String aNameRegional, int aTier, - String aDescription) { + String aDescription) { super(aID, aName, aNameRegional, aTier, aDescription); } @@ -32,16 +32,14 @@ public class GT_MetaTileEntity_BasicHull_Steel extends GT_MetaTileEntity_BasicHu public ITexture[][][] getTextureSet(ITexture[] aTextures) { ITexture[][][] rTextures = new ITexture[3][17][]; for (byte i = -1; i < 16; i = (byte) (i + 1)) { - ITexture[] tmp0 = { TextureFactory.of( - Textures.BlockIcons.MACHINE_STEEL_BOTTOM, - Dyes.getModulation(i, Dyes._NULL.mRGBa)) }; + ITexture[] tmp0 = { + TextureFactory.of(Textures.BlockIcons.MACHINE_STEEL_BOTTOM, Dyes.getModulation(i, Dyes._NULL.mRGBa)) }; rTextures[0][(i + 1)] = tmp0; ITexture[] tmp1 = { - TextureFactory.of(Textures.BlockIcons.MACHINE_STEEL_TOP, Dyes.getModulation(i, Dyes._NULL.mRGBa)) }; + TextureFactory.of(Textures.BlockIcons.MACHINE_STEEL_TOP, Dyes.getModulation(i, Dyes._NULL.mRGBa)) }; rTextures[1][(i + 1)] = tmp1; - ITexture[] tmp2 = { TextureFactory.of( - Textures.BlockIcons.MACHINE_STEEL_SIDE, - Dyes.getModulation(i, Dyes._NULL.mRGBa)) }; + ITexture[] tmp2 = { + TextureFactory.of(Textures.BlockIcons.MACHINE_STEEL_SIDE, Dyes.getModulation(i, Dyes._NULL.mRGBa)) }; rTextures[2][(i + 1)] = tmp2; } return rTextures; diff --git a/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_SteelBricks.java b/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_SteelBricks.java index 39cd8fec3c..cd5f547d22 100644 --- a/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_SteelBricks.java +++ b/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_SteelBricks.java @@ -11,44 +11,41 @@ import gregtech.api.render.TextureFactory; public class GT_MetaTileEntity_BasicHull_SteelBricks extends GT_MetaTileEntity_BasicHull_NonElectric { public GT_MetaTileEntity_BasicHull_SteelBricks(int aID, String aName, String aNameRegional, int aTier, - String aDescription) { + String aDescription) { super(aID, aName, aNameRegional, aTier, aDescription); } public GT_MetaTileEntity_BasicHull_SteelBricks(String aName, int aTier, String aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, aDescription, aTextures); } public GT_MetaTileEntity_BasicHull_SteelBricks(String aName, int aTier, String[] aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, aDescription, aTextures); } @Override public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) { return new GT_MetaTileEntity_BasicHull_SteelBricks( - this.mName, - this.mTier, - this.mDescriptionArray, - this.mTextures); + this.mName, + this.mTier, + this.mDescriptionArray, + this.mTextures); } @Override public ITexture[][][] getTextureSet(ITexture[] aTextures) { ITexture[][][] rTextures = new ITexture[3][17][]; for (byte i = -1; i < 16; i = (byte) (i + 1)) { - ITexture[] tmp0 = { TextureFactory.of( - Textures.BlockIcons.MACHINE_STEELBRICKS_BOTTOM, - Dyes.getModulation(i, Dyes._NULL.mRGBa)) }; + ITexture[] tmp0 = { TextureFactory + .of(Textures.BlockIcons.MACHINE_STEELBRICKS_BOTTOM, Dyes.getModulation(i, Dyes._NULL.mRGBa)) }; rTextures[0][(i + 1)] = tmp0; - ITexture[] tmp1 = { TextureFactory.of( - Textures.BlockIcons.MACHINE_STEELBRICKS_TOP, - Dyes.getModulation(i, Dyes._NULL.mRGBa)) }; + ITexture[] tmp1 = { TextureFactory + .of(Textures.BlockIcons.MACHINE_STEELBRICKS_TOP, Dyes.getModulation(i, Dyes._NULL.mRGBa)) }; rTextures[1][(i + 1)] = tmp1; - ITexture[] tmp2 = { TextureFactory.of( - Textures.BlockIcons.MACHINE_STEELBRICKS_SIDE, - Dyes.getModulation(i, Dyes._NULL.mRGBa)) }; + ITexture[] tmp2 = { TextureFactory + .of(Textures.BlockIcons.MACHINE_STEELBRICKS_SIDE, Dyes.getModulation(i, Dyes._NULL.mRGBa)) }; rTextures[2][(i + 1)] = tmp2; } return rTextures; diff --git a/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_Hatch_InputBus_ME.java b/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_Hatch_InputBus_ME.java index 6910fd9de5..2b78fd5c55 100644 --- a/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_Hatch_InputBus_ME.java +++ b/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_Hatch_InputBus_ME.java @@ -62,7 +62,7 @@ import gregtech.api.util.GT_Utility; import gregtech.common.gui.modularui.widget.AESlotWidget; public class GT_MetaTileEntity_Hatch_InputBus_ME extends GT_MetaTileEntity_Hatch_InputBus - implements IConfigurationCircuitSupport, IAddGregtechLogo, IAddUIWidgets, IPowerChannelState { + implements IConfigurationCircuitSupport, IAddGregtechLogo, IAddUIWidgets, IPowerChannelState { private static final int SLOT_COUNT = 16; private BaseActionSource requestSource = null; @@ -76,22 +76,22 @@ public class GT_MetaTileEntity_Hatch_InputBus_ME extends GT_MetaTileEntity_Hatch public GT_MetaTileEntity_Hatch_InputBus_ME(int aID, String aName, String aNameRegional) { super( - aID, - aName, - aNameRegional, - 1, - SLOT_COUNT * 2 + 1, - new String[] { "Advanced item input for Multiblocks", "Retrieves directly from ME", - "Keeps 16 item types in stock", - "Auto-Pull from ME mode will automatically stock the first 16 items in the ME system, updated every 5 seconds.", - "Toggle by right-clicking with screwdriver, or use the GUI.", - "Use the GUI to limit the minimum stack size for Auto-Pulling.", - "Configuration data can be copy+pasted using a data stick." }); + aID, + aName, + aNameRegional, + 1, + SLOT_COUNT * 2 + 1, + new String[] { "Advanced item input for Multiblocks", "Retrieves directly from ME", + "Keeps 16 item types in stock", + "Auto-Pull from ME mode will automatically stock the first 16 items in the ME system, updated every 5 seconds.", + "Toggle by right-clicking with screwdriver, or use the GUI.", + "Use the GUI to limit the minimum stack size for Auto-Pulling.", + "Configuration data can be copy+pasted using a data stick." }); disableSort = true; } public GT_MetaTileEntity_Hatch_InputBus_ME(String aName, int aTier, String[] aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, SLOT_COUNT * 2 + 1, aDescription, aTextures); disableSort = true; } @@ -135,14 +135,14 @@ public class GT_MetaTileEntity_Hatch_InputBus_ME extends GT_MetaTileEntity_Hatch if (gridProxy == null) { if (getBaseMetaTileEntity() instanceof IGridProxyable) { gridProxy = new AENetworkProxy( - (IGridProxyable) getBaseMetaTileEntity(), - "proxy", - ItemList.Hatch_Output_Bus_ME.get(1), - true); + (IGridProxyable) getBaseMetaTileEntity(), + "proxy", + ItemList.Hatch_Output_Bus_ME.get(1), + true); gridProxy.setFlags(GridFlags.REQUIRE_CHANNEL); if (getBaseMetaTileEntity().getWorld() != null) gridProxy.setOwner( - getBaseMetaTileEntity().getWorld() - .getPlayerEntityByName(getBaseMetaTileEntity().getOwnerName())); + getBaseMetaTileEntity().getWorld() + .getPlayerEntityByName(getBaseMetaTileEntity().getOwnerName())); } } return this.gridProxy; @@ -217,10 +217,8 @@ public class GT_MetaTileEntity_Hatch_InputBus_ME extends GT_MetaTileEntity_Hatch public String[] getInfoData() { if (GregTech_API.mAE2) { return new String[] { - "The bus is " - + ((getProxy() != null && getProxy().isActive()) ? EnumChatFormatting.GREEN + "online" - : EnumChatFormatting.RED + "offline" + getAEDiagnostics()) - + EnumChatFormatting.RESET }; + "The bus is " + ((getProxy() != null && getProxy().isActive()) ? EnumChatFormatting.GREEN + "online" + : EnumChatFormatting.RED + "offline" + getAEDiagnostics()) + EnumChatFormatting.RESET }; } else return new String[] {}; } @@ -245,7 +243,7 @@ public class GT_MetaTileEntity_Hatch_InputBus_ME extends GT_MetaTileEntity_Hatch @Override public boolean onRightclick(IGregTechTileEntity aBaseMetaTileEntity, EntityPlayer aPlayer, byte aSide, float aX, - float aY, float aZ) { + float aY, float aZ) { if (!(aPlayer instanceof EntityPlayerMP)) return super.onRightclick(aBaseMetaTileEntity, aPlayer, aSide, aX, aY, aZ); ItemStack dataStick = aPlayer.inventory.getCurrentItem(); @@ -332,7 +330,7 @@ public class GT_MetaTileEntity_Hatch_InputBus_ME extends GT_MetaTileEntity_Hatch } try { IMEMonitor sg = proxy.getStorage() - .getItemInventory(); + .getItemInventory(); IAEItemStack request = AEItemStack.create(mInventory[aIndex]); request.setStackSize(Integer.MAX_VALUE); IAEItemStack result = sg.extractItems(request, Actionable.SIMULATE, getRequestSource()); @@ -377,9 +375,9 @@ public class GT_MetaTileEntity_Hatch_InputBus_ME extends GT_MetaTileEntity_Hatch AENetworkProxy proxy = getProxy(); try { IMEMonitor sg = proxy.getStorage() - .getItemInventory(); + .getItemInventory(); Iterator iterator = sg.getStorageList() - .iterator(); + .iterator(); int index = 0; while (iterator.hasNext() && index < SLOT_COUNT) { IAEItemStack currItem = iterator.next(); @@ -413,12 +411,12 @@ public class GT_MetaTileEntity_Hatch_InputBus_ME extends GT_MetaTileEntity_Hatch AENetworkProxy proxy = getProxy(); try { IMEMonitor sg = proxy.getStorage() - .getItemInventory(); + .getItemInventory(); IAEItemStack request = AEItemStack.create(mInventory[i]); request.setStackSize(savedStackSizes[i] - (oldStack == null ? 0 : oldStack.stackSize)); sg.extractItems(request, Actionable.MODULATE, getRequestSource()); proxy.getEnergy() - .extractAEPower(request.getStackSize(), Actionable.MODULATE, PowerMultiplier.CONFIG); + .extractAEPower(request.getStackSize(), Actionable.MODULATE, PowerMultiplier.CONFIG); setInventorySlotContents(i + SLOT_COUNT, oldStack); } catch (final GridAccessException ignored) {} } @@ -442,7 +440,7 @@ public class GT_MetaTileEntity_Hatch_InputBus_ME extends GT_MetaTileEntity_Hatch } try { IMEMonitor sg = proxy.getStorage() - .getItemInventory(); + .getItemInventory(); IAEItemStack request = AEItemStack.create(mInventory[aIndex]); request.setStackSize(Integer.MAX_VALUE); IAEItemStack result = sg.extractItems(request, Actionable.SIMULATE, getRequestSource()); @@ -465,77 +463,76 @@ public class GT_MetaTileEntity_Hatch_InputBus_ME extends GT_MetaTileEntity_Hatch final SlotWidget[] aeSlotWidgets = new SlotWidget[16]; buildContext.addSyncedWindow(CONFIG_WINDOW_ID, this::createStackSizeConfigurationWindow); builder.widget( + SlotGroup.ofItemHandler(inventoryHandler, 4) + .startFromSlot(0) + .endAtSlot(15) + .phantom(true) + .background(getGUITextureSet().getItemSlot(), GT_UITextures.OVERLAY_SLOT_ARROW_ME) + .widgetCreator(slot -> new SlotWidget(slot) { + + @Override + protected void phantomClick(ClickData clickData, ItemStack cursorStack) { + if (clickData.mouseButton != 0 || autoPullItemList) return; + final int aSlotIndex = getMcSlot().getSlotIndex(); + if (cursorStack == null) { + getMcSlot().putStack(null); + } else { + if (containsSuchStack(cursorStack)) return; + getMcSlot().putStack(GT_Utility.copyAmount(1L, cursorStack)); + } + if (getBaseMetaTileEntity().isServerSide()) { + final ItemStack newInfo = updateInformationSlot(aSlotIndex, cursorStack); + aeSlotWidgets[getMcSlot().getSlotIndex()].getMcSlot() + .putStack(newInfo); + } + } + + private boolean containsSuchStack(ItemStack tStack) { + for (int i = 0; i < 16; ++i) { + if (GT_Utility.areStacksEqual(mInventory[i], tStack, false)) return true; + } + return false; + } + }) + .build() + .setPos(7, 9)) + .widget( SlotGroup.ofItemHandler(inventoryHandler, 4) - .startFromSlot(0) - .endAtSlot(15) - .phantom(true) - .background(getGUITextureSet().getItemSlot(), GT_UITextures.OVERLAY_SLOT_ARROW_ME) - .widgetCreator(slot -> new SlotWidget(slot) { - - @Override - protected void phantomClick(ClickData clickData, ItemStack cursorStack) { - if (clickData.mouseButton != 0 || autoPullItemList) return; - final int aSlotIndex = getMcSlot().getSlotIndex(); - if (cursorStack == null) { - getMcSlot().putStack(null); - } else { - if (containsSuchStack(cursorStack)) return; - getMcSlot().putStack(GT_Utility.copyAmount(1L, cursorStack)); - } - if (getBaseMetaTileEntity().isServerSide()) { - final ItemStack newInfo = updateInformationSlot(aSlotIndex, cursorStack); - aeSlotWidgets[getMcSlot().getSlotIndex()].getMcSlot() - .putStack(newInfo); - } - } - - private boolean containsSuchStack(ItemStack tStack) { - for (int i = 0; i < 16; ++i) { - if (GT_Utility.areStacksEqual(mInventory[i], tStack, false)) return true; - } - return false; - } - }) - .build() - .setPos(7, 9)) - .widget( - SlotGroup.ofItemHandler(inventoryHandler, 4) - .startFromSlot(16) - .endAtSlot(31) - .phantom(true) - .background(GT_UITextures.SLOT_DARK_GRAY) - .widgetCreator( - slot -> aeSlotWidgets[slot.getSlotIndex() - - 16] = new AESlotWidget(slot).disableInteraction()) - .build() - .setPos(97, 9)) - .widget( - new DrawableWidget().setDrawable(GT_UITextures.PICTURE_ARROW_DOUBLE) - .setPos(82, 40) - .setSize(12, 12)) - .widget(new ButtonWidget().setOnClick((clickData, widget) -> { - if (clickData.mouseButton == 0) { - setAutoPullItemList(!autoPullItemList); - } else if (clickData.mouseButton == 1 && !widget.isClient()) { - widget.getContext() - .openSyncedWindow(CONFIG_WINDOW_ID); - } - }) - .setPlayClickSound(true) - .setBackground(() -> { - List ret = new ArrayList<>(); - ret.add(GT_UITextures.BUTTON_STANDARD); - if (autoPullItemList) ret.add(GT_UITextures.OVERLAY_BUTTON_AUTOPULL_ME); - else ret.add(GT_UITextures.OVERLAY_BUTTON_AUTOPULL_ME_DISABLED); - return ret.toArray(new IDrawable[0]); - }) - .addTooltips( - ImmutableList.of( - "Click to toggle automatic item pulling from ME.", - "Right-Click to edit minimum stack size for item pulling.")) - .setSize(16, 16) - .setPos(80, 10)) - .widget(new FakeSyncWidget.BooleanSyncer(() -> autoPullItemList, this::setAutoPullItemList)); + .startFromSlot(16) + .endAtSlot(31) + .phantom(true) + .background(GT_UITextures.SLOT_DARK_GRAY) + .widgetCreator( + slot -> aeSlotWidgets[slot.getSlotIndex() - 16] = new AESlotWidget(slot).disableInteraction()) + .build() + .setPos(97, 9)) + .widget( + new DrawableWidget().setDrawable(GT_UITextures.PICTURE_ARROW_DOUBLE) + .setPos(82, 40) + .setSize(12, 12)) + .widget(new ButtonWidget().setOnClick((clickData, widget) -> { + if (clickData.mouseButton == 0) { + setAutoPullItemList(!autoPullItemList); + } else if (clickData.mouseButton == 1 && !widget.isClient()) { + widget.getContext() + .openSyncedWindow(CONFIG_WINDOW_ID); + } + }) + .setPlayClickSound(true) + .setBackground(() -> { + List ret = new ArrayList<>(); + ret.add(GT_UITextures.BUTTON_STANDARD); + if (autoPullItemList) ret.add(GT_UITextures.OVERLAY_BUTTON_AUTOPULL_ME); + else ret.add(GT_UITextures.OVERLAY_BUTTON_AUTOPULL_ME_DISABLED); + return ret.toArray(new IDrawable[0]); + }) + .addTooltips( + ImmutableList.of( + "Click to toggle automatic item pulling from ME.", + "Right-Click to edit minimum stack size for item pulling.")) + .setSize(16, 16) + .setPos(80, 10)) + .widget(new FakeSyncWidget.BooleanSyncer(() -> autoPullItemList, this::setAutoPullItemList)); } protected ModularWindow createStackSizeConfigurationWindow(final EntityPlayer player) { @@ -548,39 +545,37 @@ public class GT_MetaTileEntity_Hatch_InputBus_ME extends GT_MetaTileEntity_Hatch builder.setGuiTint(getGUIColorization()); builder.setDraggable(true); builder.setPos( - (size, window) -> Alignment.Center.getAlignedPos(size, new Size(PARENT_WIDTH, PARENT_HEIGHT)) - .add( - Alignment.TopRight.getAlignedPos( - new Size(PARENT_WIDTH, PARENT_HEIGHT), - new Size(WIDTH, HEIGHT)) - .add(WIDTH - 3, 0))); + (size, window) -> Alignment.Center.getAlignedPos(size, new Size(PARENT_WIDTH, PARENT_HEIGHT)) + .add( + Alignment.TopRight.getAlignedPos(new Size(PARENT_WIDTH, PARENT_HEIGHT), new Size(WIDTH, HEIGHT)) + .add(WIDTH - 3, 0))); builder.widget( - new TextWidget("Min Stack Size").setPos(3, 2) - .setSize(74, 14)) - .widget( - new TextFieldWidget().setSetterInt(val -> minAutoPullStackSize = val) - .setGetterInt(() -> minAutoPullStackSize) - .setNumbers(1, Integer.MAX_VALUE) - .setOnScrollNumbers(1, 4, 64) - .setTextAlignment(Alignment.Center) - .setTextColor(Color.WHITE.normal) - .setSize(36, 18) - .setPos(19, 18) - .setBackground(GT_UITextures.BACKGROUND_TEXT_FIELD)); + new TextWidget("Min Stack Size").setPos(3, 2) + .setSize(74, 14)) + .widget( + new TextFieldWidget().setSetterInt(val -> minAutoPullStackSize = val) + .setGetterInt(() -> minAutoPullStackSize) + .setNumbers(1, Integer.MAX_VALUE) + .setOnScrollNumbers(1, 4, 64) + .setTextAlignment(Alignment.Center) + .setTextColor(Color.WHITE.normal) + .setSize(36, 18) + .setPos(19, 18) + .setBackground(GT_UITextures.BACKGROUND_TEXT_FIELD)); return builder.build(); } @Override public void addGregTechLogo(ModularWindow.Builder builder) { builder.widget( - new DrawableWidget().setDrawable(getGUITextureSet().getGregTechLogo()) - .setSize(17, 17) - .setPos(80, 63)); + new DrawableWidget().setDrawable(getGUITextureSet().getGregTechLogo()) + .setSize(17, 17) + .setPos(80, 63)); } @Override public void getWailaBody(ItemStack itemStack, List currenttip, IWailaDataAccessor accessor, - IWailaConfigHandler config) { + IWailaConfigHandler config) { NBTTagCompound tag = accessor.getNBTData(); boolean autopull = tag.getBoolean("autoPull"); int minSize = tag.getInteger("minStackSize"); @@ -591,7 +586,7 @@ public class GT_MetaTileEntity_Hatch_InputBus_ME extends GT_MetaTileEntity_Hatch @Override public void getWailaNBTData(EntityPlayerMP player, TileEntity tile, NBTTagCompound tag, World world, int x, int y, - int z) { + int z) { tag.setBoolean("autoPull", autoPullItemList); tag.setInteger("minStackSize", minAutoPullStackSize); super.getWailaNBTData(player, tile, tag, world, x, y, z); diff --git a/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_Hatch_OutputBus_ME.java b/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_Hatch_OutputBus_ME.java index 606c0b8157..22afe4b9fe 100644 --- a/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_Hatch_OutputBus_ME.java +++ b/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_Hatch_OutputBus_ME.java @@ -43,14 +43,13 @@ import gregtech.api.render.TextureFactory; import gregtech.api.util.GT_Utility; public class GT_MetaTileEntity_Hatch_OutputBus_ME extends GT_MetaTileEntity_Hatch_OutputBus - implements IPowerChannelState { + implements IPowerChannelState { private BaseActionSource requestSource = null; private AENetworkProxy gridProxy = null; IItemList itemCache = GregTech_API.mAE2 ? AEApi.instance() - .storage() - .createItemList() - : null; + .storage() + .createItemList() : null; long lastOutputTick = 0; long tickCounter = 0; boolean lastOutputFailed = false; @@ -58,16 +57,16 @@ public class GT_MetaTileEntity_Hatch_OutputBus_ME extends GT_MetaTileEntity_Hatc public GT_MetaTileEntity_Hatch_OutputBus_ME(int aID, String aName, String aNameRegional) { super( - aID, - aName, - aNameRegional, - 1, - new String[] { "Item Output for Multiblocks", "Stores directly into ME", }, - 0); + aID, + aName, + aNameRegional, + 1, + new String[] { "Item Output for Multiblocks", "Stores directly into ME", }, + 0); } public GT_MetaTileEntity_Hatch_OutputBus_ME(String aName, int aTier, String[] aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, 0, aDescription, aTextures); } @@ -108,9 +107,9 @@ public class GT_MetaTileEntity_Hatch_OutputBus_ME extends GT_MetaTileEntity_Hatc public int store(final ItemStack stack) { if (!infiniteCache && lastOutputFailed) return stack.stackSize; itemCache.add( - AEApi.instance() - .storage() - .createItemStack(stack)); + AEApi.instance() + .storage() + .createItemStack(stack)); return 0; } @@ -132,12 +131,10 @@ public class GT_MetaTileEntity_Hatch_OutputBus_ME extends GT_MetaTileEntity_Hatc @Override public void onScrewdriverRightClick(byte aSide, EntityPlayer aPlayer, float aX, float aY, float aZ) { if (!getBaseMetaTileEntity().getCoverInfoAtSide(aSide) - .isGUIClickable()) - return; + .isGUIClickable()) return; infiniteCache = !infiniteCache; - GT_Utility.sendChatToPlayer( - aPlayer, - StatCollector.translateToLocal("GT5U.hatch.infiniteCache." + infiniteCache)); + GT_Utility + .sendChatToPlayer(aPlayer, StatCollector.translateToLocal("GT5U.hatch.infiniteCache." + infiniteCache)); } @Override @@ -145,14 +142,14 @@ public class GT_MetaTileEntity_Hatch_OutputBus_ME extends GT_MetaTileEntity_Hatc if (gridProxy == null) { if (getBaseMetaTileEntity() instanceof IGridProxyable) { gridProxy = new AENetworkProxy( - (IGridProxyable) getBaseMetaTileEntity(), - "proxy", - ItemList.Hatch_Output_Bus_ME.get(1), - true); + (IGridProxyable) getBaseMetaTileEntity(), + "proxy", + ItemList.Hatch_Output_Bus_ME.get(1), + true); gridProxy.setFlags(GridFlags.REQUIRE_CHANNEL); if (getBaseMetaTileEntity().getWorld() != null) gridProxy.setOwner( - getBaseMetaTileEntity().getWorld() - .getPlayerEntityByName(getBaseMetaTileEntity().getOwnerName())); + getBaseMetaTileEntity().getWorld() + .getPlayerEntityByName(getBaseMetaTileEntity().getOwnerName())); } } return this.gridProxy; @@ -170,7 +167,7 @@ public class GT_MetaTileEntity_Hatch_OutputBus_ME extends GT_MetaTileEntity_Hatc } try { IMEMonitor sg = proxy.getStorage() - .getItemInventory(); + .getItemInventory(); for (IAEItemStack s : itemCache) { if (s.getStackSize() == 0) continue; IAEItemStack rest = Platform.poweredInsert(proxy.getEnergy(), sg, s, getRequest()); @@ -217,7 +214,7 @@ public class GT_MetaTileEntity_Hatch_OutputBus_ME extends GT_MetaTileEntity_Hatc NBTTagCompound tag = new NBTTagCompound(); NBTTagCompound tagItemStack = new NBTTagCompound(); s.getItemStack() - .writeToNBT(tagItemStack); + .writeToNBT(tagItemStack); tag.setTag("itemStack", tagItemStack); tag.setLong("size", s.getStackSize()); items.appendTag(tag); @@ -234,30 +231,30 @@ public class GT_MetaTileEntity_Hatch_OutputBus_ME extends GT_MetaTileEntity_Hatc if (GregTech_API.mAE2) { NBTBase t = aNBT.getTag("cachedStack"); // legacy if (t instanceof NBTTagCompound) itemCache.add( - AEApi.instance() - .storage() - .createItemStack(GT_Utility.loadItem((NBTTagCompound) t))); + AEApi.instance() + .storage() + .createItemStack(GT_Utility.loadItem((NBTTagCompound) t))); t = aNBT.getTag("cachedItems"); if (t instanceof NBTTagList l) { for (int i = 0; i < l.tagCount(); ++i) { NBTTagCompound tag = l.getCompoundTagAt(i); if (!tag.hasKey("itemStack")) { // legacy #868 itemCache.add( - AEApi.instance() - .storage() - .createItemStack(GT_Utility.loadItem(l.getCompoundTagAt(i)))); + AEApi.instance() + .storage() + .createItemStack(GT_Utility.loadItem(l.getCompoundTagAt(i)))); continue; } NBTTagCompound tagItemStack = tag.getCompoundTag("itemStack"); final IAEItemStack s = AEApi.instance() - .storage() - .createItemStack(GT_Utility.loadItem(tagItemStack)); + .storage() + .createItemStack(GT_Utility.loadItem(tagItemStack)); if (s != null) { s.setStackSize(tag.getLong("size")); itemCache.add(s); } else { GT_Mod.GT_FML_LOGGER.warn( - "An error occurred while loading contents of ME Output Bus, some items have been voided"); + "An error occurred while loading contents of ME Output Bus, some items have been voided"); } } } @@ -279,8 +276,8 @@ public class GT_MetaTileEntity_Hatch_OutputBus_ME extends GT_MetaTileEntity_Hatc if (!GregTech_API.mAE2) return new String[] {}; List ss = new ArrayList<>(); ss.add( - "The bus is " + ((getProxy() != null && getProxy().isActive()) ? EnumChatFormatting.GREEN + "online" - : EnumChatFormatting.RED + "offline" + getAEDiagnostics()) + EnumChatFormatting.RESET); + "The bus is " + ((getProxy() != null && getProxy().isActive()) ? EnumChatFormatting.GREEN + "online" + : EnumChatFormatting.RED + "offline" + getAEDiagnostics()) + EnumChatFormatting.RESET); if (itemCache.isEmpty()) { ss.add("The bus has no cached items"); } else { @@ -289,11 +286,11 @@ public class GT_MetaTileEntity_Hatch_OutputBus_ME extends GT_MetaTileEntity_Hatc int counter = 0; for (IAEItemStack s : itemCache) { ss.add( - s.getItem() - .getItemStackDisplayName(s.getItemStack()) + ": " - + EnumChatFormatting.GOLD - + nc.toWideReadableForm(s.getStackSize()) - + EnumChatFormatting.RESET); + s.getItem() + .getItemStackDisplayName(s.getItemStack()) + ": " + + EnumChatFormatting.GOLD + + nc.toWideReadableForm(s.getStackSize()) + + EnumChatFormatting.RESET); if (++counter > 100) break; } } diff --git a/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_Hatch_Output_ME.java b/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_Hatch_Output_ME.java index 780a6c03de..0c65d1bc2e 100644 --- a/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_Hatch_Output_ME.java +++ b/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_Hatch_Output_ME.java @@ -52,9 +52,8 @@ public class GT_MetaTileEntity_Hatch_Output_ME extends GT_MetaTileEntity_Hatch_O private BaseActionSource requestSource = null; private AENetworkProxy gridProxy = null; IItemList fluidCache = GregTech_API.mAE2 ? AEApi.instance() - .storage() - .createFluidList() - : null; + .storage() + .createFluidList() : null; long lastOutputTick = 0; long tickCounter = 0; boolean lastOutputFailed = false; @@ -62,12 +61,12 @@ public class GT_MetaTileEntity_Hatch_Output_ME extends GT_MetaTileEntity_Hatch_O public GT_MetaTileEntity_Hatch_Output_ME(int aID, String aName, String aNameRegional) { super( - aID, - aName, - aNameRegional, - 1, - new String[] { "Fluid Output for Multiblocks", "Stores directly into ME", }, - 0); + aID, + aName, + aNameRegional, + 1, + new String[] { "Fluid Output for Multiblocks", "Stores directly into ME", }, + 0); } public GT_MetaTileEntity_Hatch_Output_ME(String aName, int aTier, String[] aDescription, ITexture[][][] aTextures) { @@ -115,9 +114,9 @@ public class GT_MetaTileEntity_Hatch_Output_ME extends GT_MetaTileEntity_Hatch_O public int tryFillAE(final FluidStack aFluid) { if ((!infiniteCache && lastOutputFailed) || aFluid == null) return 0; fluidCache.add( - AEApi.instance() - .storage() - .createFluidStack(aFluid)); + AEApi.instance() + .storage() + .createFluidStack(aFluid)); return aFluid.amount; } @@ -153,12 +152,11 @@ public class GT_MetaTileEntity_Hatch_Output_ME extends GT_MetaTileEntity_Hatch_O public void onScrewdriverRightClick(byte aSide, EntityPlayer aPlayer, float aX, float aY, float aZ) { // Don't allow to lock fluid in me fluid hatch if (!getBaseMetaTileEntity().getCoverInfoAtSide(aSide) - .isGUIClickable()) - return; + .isGUIClickable()) return; infiniteCache = !infiniteCache; GT_Utility.sendChatToPlayer( - aPlayer, - StatCollector.translateToLocal("GT5U.hatch.infiniteCacheFluid." + infiniteCache)); + aPlayer, + StatCollector.translateToLocal("GT5U.hatch.infiniteCacheFluid." + infiniteCache)); } @Override @@ -166,14 +164,14 @@ public class GT_MetaTileEntity_Hatch_Output_ME extends GT_MetaTileEntity_Hatch_O if (gridProxy == null) { if (getBaseMetaTileEntity() instanceof IGridProxyable) { gridProxy = new AENetworkProxy( - (IGridProxyable) getBaseMetaTileEntity(), - "proxy", - ItemList.Hatch_Output_ME.get(1), - true); + (IGridProxyable) getBaseMetaTileEntity(), + "proxy", + ItemList.Hatch_Output_ME.get(1), + true); gridProxy.setFlags(GridFlags.REQUIRE_CHANNEL); if (getBaseMetaTileEntity().getWorld() != null) gridProxy.setOwner( - getBaseMetaTileEntity().getWorld() - .getPlayerEntityByName(getBaseMetaTileEntity().getOwnerName())); + getBaseMetaTileEntity().getWorld() + .getPlayerEntityByName(getBaseMetaTileEntity().getOwnerName())); } } return this.gridProxy; @@ -191,7 +189,7 @@ public class GT_MetaTileEntity_Hatch_Output_ME extends GT_MetaTileEntity_Hatch_O } try { IMEMonitor sg = proxy.getStorage() - .getFluidInventory(); + .getFluidInventory(); for (IAEFluidStack s : fluidCache) { if (s.getStackSize() == 0) continue; IAEFluidStack rest = fluidAEInsert(proxy.getEnergy(), sg, s, getRequest()); @@ -237,7 +235,7 @@ public class GT_MetaTileEntity_Hatch_Output_ME extends GT_MetaTileEntity_Hatch_O NBTTagCompound tag = new NBTTagCompound(); NBTTagCompound tagFluidStack = new NBTTagCompound(); s.getFluidStack() - .writeToNBT(tagFluidStack); + .writeToNBT(tagFluidStack); tag.setTag("fluidStack", tagFluidStack); tag.setLong("size", s.getStackSize()); fluids.appendTag(tag); @@ -257,14 +255,14 @@ public class GT_MetaTileEntity_Hatch_Output_ME extends GT_MetaTileEntity_Hatch_O NBTTagCompound tag = l.getCompoundTagAt(i); NBTTagCompound tagFluidStack = tag.getCompoundTag("fluidStack"); final IAEFluidStack s = AEApi.instance() - .storage() - .createFluidStack(GT_Utility.loadFluid(tagFluidStack)); + .storage() + .createFluidStack(GT_Utility.loadFluid(tagFluidStack)); if (s != null) { s.setStackSize(tag.getLong("size")); fluidCache.add(s); } else { GT_Mod.GT_FML_LOGGER.warn( - "An error occurred while loading contents of ME Output Hatch, some fluids have been voided"); + "An error occurred while loading contents of ME Output Hatch, some fluids have been voided"); } } } @@ -286,8 +284,8 @@ public class GT_MetaTileEntity_Hatch_Output_ME extends GT_MetaTileEntity_Hatch_O if (!GregTech_API.mAE2) return new String[] {}; List ss = new ArrayList<>(); ss.add( - "The hatch is " + ((getProxy() != null && getProxy().isActive()) ? EnumChatFormatting.GREEN + "online" - : EnumChatFormatting.RED + "offline" + getAEDiagnostics()) + EnumChatFormatting.RESET); + "The hatch is " + ((getProxy() != null && getProxy().isActive()) ? EnumChatFormatting.GREEN + "online" + : EnumChatFormatting.RED + "offline" + getAEDiagnostics()) + EnumChatFormatting.RESET); if (fluidCache.isEmpty()) { ss.add("The bus has no cached fluids"); } else { @@ -296,12 +294,12 @@ public class GT_MetaTileEntity_Hatch_Output_ME extends GT_MetaTileEntity_Hatch_O int counter = 0; for (IAEFluidStack s : fluidCache) { ss.add( - s.getFluidStack() - .getLocalizedName() + ": " - + EnumChatFormatting.GOLD - + nc.toWideReadableForm(s.getStackSize()) - + " mB" - + EnumChatFormatting.RESET); + s.getFluidStack() + .getLocalizedName() + ": " + + EnumChatFormatting.GOLD + + nc.toWideReadableForm(s.getStackSize()) + + " mB" + + EnumChatFormatting.RESET); if (++counter > 100) break; } } @@ -309,7 +307,7 @@ public class GT_MetaTileEntity_Hatch_Output_ME extends GT_MetaTileEntity_Hatch_O } public static IAEFluidStack fluidAEInsert(final IEnergySource energy, final IMEInventory cell, - final IAEFluidStack input, final BaseActionSource src) { + final IAEFluidStack input, final BaseActionSource src) { final IAEFluidStack possible = cell.injectItems(input.copy(), Actionable.SIMULATE, src); long stored = input.getStackSize(); diff --git a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_AdvSeismicProspector.java b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_AdvSeismicProspector.java index ad55276576..089713f01a 100644 --- a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_AdvSeismicProspector.java +++ b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_AdvSeismicProspector.java @@ -42,66 +42,66 @@ public class GT_MetaTileEntity_AdvSeismicProspector extends GT_MetaTileEntity_Ba int cZ; public GT_MetaTileEntity_AdvSeismicProspector(int aID, String aName, String aNameRegional, int aTier, int aRadius, - int aStep) { + int aStep) { super( - aID, - aName, - aNameRegional, - aTier, - 1, // amperage - "", - 1, // input slot count - 1, // output slot count - "Default.png", // GUI name - "", // NEI name - TextureFactory.of( - TextureFactory.of(OVERLAY_SIDE_ROCK_BREAKER_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_SIDE_ROCK_BREAKER_ACTIVE_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_SIDE_ROCK_BREAKER), - TextureFactory.builder() - .addIcon(OVERLAY_SIDE_ROCK_BREAKER_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_TOP_ROCK_BREAKER_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_TOP_ROCK_BREAKER_ACTIVE_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_TOP_ROCK_BREAKER), - TextureFactory.builder() - .addIcon(OVERLAY_TOP_ROCK_BREAKER_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_FRONT_ROCK_BREAKER_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_ROCK_BREAKER_ACTIVE_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_FRONT_ROCK_BREAKER), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_ROCK_BREAKER_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_BOTTOM_ROCK_BREAKER_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_BOTTOM_ROCK_BREAKER_ACTIVE_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_BOTTOM_ROCK_BREAKER), - TextureFactory.builder() - .addIcon(OVERLAY_BOTTOM_ROCK_BREAKER_GLOW) - .glow() - .build())); + aID, + aName, + aNameRegional, + aTier, + 1, // amperage + "", + 1, // input slot count + 1, // output slot count + "Default.png", // GUI name + "", // NEI name + TextureFactory.of( + TextureFactory.of(OVERLAY_SIDE_ROCK_BREAKER_ACTIVE), + TextureFactory.builder() + .addIcon(OVERLAY_SIDE_ROCK_BREAKER_ACTIVE_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_SIDE_ROCK_BREAKER), + TextureFactory.builder() + .addIcon(OVERLAY_SIDE_ROCK_BREAKER_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_TOP_ROCK_BREAKER_ACTIVE), + TextureFactory.builder() + .addIcon(OVERLAY_TOP_ROCK_BREAKER_ACTIVE_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_TOP_ROCK_BREAKER), + TextureFactory.builder() + .addIcon(OVERLAY_TOP_ROCK_BREAKER_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_FRONT_ROCK_BREAKER_ACTIVE), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_ROCK_BREAKER_ACTIVE_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_FRONT_ROCK_BREAKER), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_ROCK_BREAKER_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_BOTTOM_ROCK_BREAKER_ACTIVE), + TextureFactory.builder() + .addIcon(OVERLAY_BOTTOM_ROCK_BREAKER_ACTIVE_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_BOTTOM_ROCK_BREAKER), + TextureFactory.builder() + .addIcon(OVERLAY_BOTTOM_ROCK_BREAKER_GLOW) + .glow() + .build())); radius = aRadius; step = aStep; } @@ -109,14 +109,14 @@ public class GT_MetaTileEntity_AdvSeismicProspector extends GT_MetaTileEntity_Ba @Override public String[] getDescription() { return new String[] { "Place, activate with explosives", - "2 Powderbarrels, " + "4 Glyceryl Trinitrate, " + "16 TNT, or " + "8 ITNT", - "Use Data Stick, Scan Data Stick, Print Data Stick, Bind Pages into Book", - "Ore prospecting area = " + radius * 2 + "x" + radius * 2 + " ONLY blocks below prospector", - "Oil prospecting area 3x3 oilfields, each is 8x8 chunks" }; + "2 Powderbarrels, " + "4 Glyceryl Trinitrate, " + "16 TNT, or " + "8 ITNT", + "Use Data Stick, Scan Data Stick, Print Data Stick, Bind Pages into Book", + "Ore prospecting area = " + radius * 2 + "x" + radius * 2 + " ONLY blocks below prospector", + "Oil prospecting area 3x3 oilfields, each is 8x8 chunks" }; } protected GT_MetaTileEntity_AdvSeismicProspector(String aName, int aTier, String[] aDescription, - ITexture[][][] aTextures, String aGUIName, String aNEIName, int aRadius, int aStep) { + ITexture[][][] aTextures, String aGUIName, String aNEIName, int aRadius, int aStep) { super(aName, aTier, 1, aDescription, aTextures, 1, 1, aGUIName, aNEIName); radius = aRadius; step = aStep; @@ -125,14 +125,14 @@ public class GT_MetaTileEntity_AdvSeismicProspector extends GT_MetaTileEntity_Ba @Override public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) { return new GT_MetaTileEntity_AdvSeismicProspector( - this.mName, - this.mTier, - this.mDescriptionArray, - this.mTextures, - this.mGUIName, - this.mNEIName, - this.radius, - this.step); + this.mName, + this.mTier, + this.mDescriptionArray, + this.mTextures, + this.mGUIName, + this.mNEIName, + this.radius, + this.step); } @Override @@ -141,43 +141,43 @@ public class GT_MetaTileEntity_AdvSeismicProspector extends GT_MetaTileEntity_Ba ItemStack aStack = aPlayer.getCurrentEquippedItem(); if (!ready && (GT_Utility.consumeItems(aPlayer, aStack, Item.getItemFromBlock(Blocks.tnt), 16) - || GT_Utility.consumeItems(aPlayer, aStack, Ic2Items.industrialTnt.getItem(), 8) - || GT_Utility.consumeItems(aPlayer, aStack, Materials.Glyceryl, 4) - || GT_Utility.consumeItems(aPlayer, aStack, ItemList.Block_Powderbarrel.getItem(), 2))) { + || GT_Utility.consumeItems(aPlayer, aStack, Ic2Items.industrialTnt.getItem(), 8) + || GT_Utility.consumeItems(aPlayer, aStack, Materials.Glyceryl, 4) + || GT_Utility.consumeItems(aPlayer, aStack, ItemList.Block_Powderbarrel.getItem(), 2))) { this.ready = true; this.mMaxProgresstime = (aPlayer.capabilities.isCreativeMode ? 20 : 800); } else if (ready && mMaxProgresstime == 0 - && aStack != null - && aStack.stackSize == 1 - && aStack.getItem() == ItemList.Tool_DataStick.getItem()) { - this.ready = false; - - // prospecting ores - HashMap tOres = new HashMap<>(36); - - prospectOres(tOres); - - // prospecting oils - ArrayList tOils = new ArrayList<>(); - prospectOils(tOils); - - GT_Utility.ItemNBT.setAdvancedProspectionData( - mTier, - aStack, - this.getBaseMetaTileEntity() - .getXCoord(), - this.getBaseMetaTileEntity() - .getYCoord(), - this.getBaseMetaTileEntity() - .getZCoord(), - this.getBaseMetaTileEntity() - .getWorld().provider.dimensionId, - tOils, - GT_Utility.sortByValueToList(tOres), - radius); - } + && aStack != null + && aStack.stackSize == 1 + && aStack.getItem() == ItemList.Tool_DataStick.getItem()) { + this.ready = false; + + // prospecting ores + HashMap tOres = new HashMap<>(36); + + prospectOres(tOres); + + // prospecting oils + ArrayList tOils = new ArrayList<>(); + prospectOils(tOils); + + GT_Utility.ItemNBT.setAdvancedProspectionData( + mTier, + aStack, + this.getBaseMetaTileEntity() + .getXCoord(), + this.getBaseMetaTileEntity() + .getYCoord(), + this.getBaseMetaTileEntity() + .getZCoord(), + this.getBaseMetaTileEntity() + .getWorld().provider.dimensionId, + tOils, + GT_Utility.sortByValueToList(tOres), + radius); + } } return true; @@ -202,9 +202,7 @@ public class GT_MetaTileEntity_AdvSeismicProspector extends GT_MetaTileEntity_Ba for (int i = 0; i < oilfieldSize; i++) { for (int j = 0; j < oilfieldSize; j++) { Chunk tChunk = getBaseMetaTileEntity().getWorld() - .getChunkFromChunkCoords( - xChunk + i + x * oilfieldSize, - zChunk + j + z * oilfieldSize); + .getChunkFromChunkCoords(xChunk + i + x * oilfieldSize, zChunk + j + z * oilfieldSize); FluidStack tFluid = undergroundOilReadInformation(tChunk); if (tFluid != null) { if (tFluid.amount > max) max = tFluid.amount; @@ -217,13 +215,13 @@ public class GT_MetaTileEntity_AdvSeismicProspector extends GT_MetaTileEntity_Ba } aOils.add( - ++oilFieldCount + "," - + min - + "-" - + max - + "," - + tFluids.get(cInts) - .getLocalizedName()); + ++oilFieldCount + "," + + min + + "-" + + max + + "," + + tFluids.get(cInts) + .getLocalizedName()); } } } catch (Exception ignored) {} @@ -231,13 +229,11 @@ public class GT_MetaTileEntity_AdvSeismicProspector extends GT_MetaTileEntity_Ba private void prospectOres(Map aOres) { int tLeftXBound = this.getBaseMetaTileEntity() - .getXCoord() - - radius; + .getXCoord() - radius; int tRightXBound = tLeftXBound + 2 * radius; int tLeftZBound = this.getBaseMetaTileEntity() - .getZCoord() - - radius; + .getZCoord() - radius; int tRightZBound = tLeftZBound + 2 * radius; for (int i = tLeftXBound; i <= tRightXBound; i += step) { @@ -258,7 +254,7 @@ public class GT_MetaTileEntity_AdvSeismicProspector extends GT_MetaTileEntity_Ba private void prospectHole(int i, int k, Map aOres) { String tFoundOre; for (int j = this.getBaseMetaTileEntity() - .getYCoord(); j > 0; j--) { + .getYCoord(); j > 0; j--) { tFoundOre = checkForOre(i, j, k); if (tFoundOre != null) countOre(aOres, tFoundOre, cX, cZ); } @@ -266,28 +262,27 @@ public class GT_MetaTileEntity_AdvSeismicProspector extends GT_MetaTileEntity_Ba private String checkForOre(int x, int y, int z) { Block tBlock = this.getBaseMetaTileEntity() - .getBlock(x, y, z); + .getBlock(x, y, z); if (tBlock instanceof GT_Block_Ores_Abstract) { TileEntity tTileEntity = getBaseMetaTileEntity().getWorld() - .getTileEntity(x, y, z); + .getTileEntity(x, y, z); if ((tTileEntity instanceof GT_TileEntity_Ores) && (((GT_TileEntity_Ores) tTileEntity).mMetaData < 16000)) { // Filtering // small // ores Materials tMaterial = GregTech_API.sGeneratedMaterials[((GT_TileEntity_Ores) tTileEntity).mMetaData - % 1000]; + % 1000]; if ((tMaterial != null) && (tMaterial != Materials._NULL)) return tMaterial.mDefaultLocalName; } } else { int tMetaID = getBaseMetaTileEntity().getWorld() - .getBlockMetadata(x, y, z); + .getBlockMetadata(x, y, z); ItemStack is = new ItemStack(tBlock, 1, tMetaID); ItemData association = GT_OreDictUnificator.getAssociation(is); if ((association != null) && (association.mPrefix.toString() - .startsWith("ore"))) - return association.mMaterial.mMaterial.mDefaultLocalName; + .startsWith("ore"))) return association.mMaterial.mMaterial.mDefaultLocalName; else if (GT_Utility.isOre(tBlock, tMetaID)) return tBlock.getLocalizedName(); } return null; diff --git a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Boxinator.java b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Boxinator.java index 1b30282781..02c1897522 100644 --- a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Boxinator.java +++ b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Boxinator.java @@ -22,85 +22,85 @@ public class GT_MetaTileEntity_Boxinator extends GT_MetaTileEntity_BasicMachine public GT_MetaTileEntity_Boxinator(int aID, String aName, String aNameRegional, int aTier) { super( - aID, - aName, - aNameRegional, - aTier, - 1, - "Puts things into Boxes", - 2, - 1, - "Packager.png", - "", - TextureFactory.of( - TextureFactory.of(OVERLAY_SIDE_BOXINATOR_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_SIDE_BOXINATOR_ACTIVE_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_SIDE_BOXINATOR), - TextureFactory.builder() - .addIcon(OVERLAY_SIDE_BOXINATOR_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_FRONT_BOXINATOR_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_BOXINATOR_ACTIVE_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_FRONT_BOXINATOR), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_BOXINATOR_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_TOP_BOXINATOR_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_TOP_BOXINATOR_ACTIVE_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_TOP_BOXINATOR), - TextureFactory.builder() - .addIcon(OVERLAY_TOP_BOXINATOR_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_BOTTOM_BOXINATOR_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_BOTTOM_BOXINATOR_ACTIVE_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_BOTTOM_BOXINATOR), - TextureFactory.builder() - .addIcon(OVERLAY_BOTTOM_BOXINATOR_GLOW) - .glow() - .build())); + aID, + aName, + aNameRegional, + aTier, + 1, + "Puts things into Boxes", + 2, + 1, + "Packager.png", + "", + TextureFactory.of( + TextureFactory.of(OVERLAY_SIDE_BOXINATOR_ACTIVE), + TextureFactory.builder() + .addIcon(OVERLAY_SIDE_BOXINATOR_ACTIVE_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_SIDE_BOXINATOR), + TextureFactory.builder() + .addIcon(OVERLAY_SIDE_BOXINATOR_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_FRONT_BOXINATOR_ACTIVE), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_BOXINATOR_ACTIVE_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_FRONT_BOXINATOR), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_BOXINATOR_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_TOP_BOXINATOR_ACTIVE), + TextureFactory.builder() + .addIcon(OVERLAY_TOP_BOXINATOR_ACTIVE_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_TOP_BOXINATOR), + TextureFactory.builder() + .addIcon(OVERLAY_TOP_BOXINATOR_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_BOTTOM_BOXINATOR_ACTIVE), + TextureFactory.builder() + .addIcon(OVERLAY_BOTTOM_BOXINATOR_ACTIVE_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_BOTTOM_BOXINATOR), + TextureFactory.builder() + .addIcon(OVERLAY_BOTTOM_BOXINATOR_GLOW) + .glow() + .build())); } public GT_MetaTileEntity_Boxinator(String aName, int aTier, String aDescription, ITexture[][][] aTextures, - String aGUIName, String aNEIName) { + String aGUIName, String aNEIName) { super(aName, aTier, 1, aDescription, aTextures, 2, 1, aGUIName, aNEIName); } public GT_MetaTileEntity_Boxinator(String aName, int aTier, String[] aDescription, ITexture[][][] aTextures, - String aGUIName, String aNEIName) { + String aGUIName, String aNEIName) { super(aName, aTier, 1, aDescription, aTextures, 2, 1, aGUIName, aNEIName); } @Override public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) { return new GT_MetaTileEntity_Boxinator( - this.mName, - this.mTier, - this.mDescriptionArray, - this.mTextures, - this.mGUIName, - this.mNEIName); + this.mName, + this.mTier, + this.mDescriptionArray, + this.mTextures, + this.mGUIName, + this.mNEIName); } @Override @@ -110,10 +110,9 @@ public class GT_MetaTileEntity_Boxinator extends GT_MetaTileEntity_BasicMachine private boolean hasValidCache(ItemStack mItem, int mType, boolean mClearOnFailure) { if (aInputCache != null && aOutputCache != null - && aTypeCache == mType - && aInputCache.isItemEqual(mItem) - && ItemStack.areItemStackTagsEqual(mItem, aInputCache)) - return true; + && aTypeCache == mType + && aInputCache.isItemEqual(mItem) + && ItemStack.areItemStackTagsEqual(mItem, aInputCache)) return true; // clear cache if it was invalid if (mClearOnFailure) { aInputCache = null; @@ -138,7 +137,7 @@ public class GT_MetaTileEntity_Boxinator extends GT_MetaTileEntity_BasicMachine ItemStack tSlot0 = getInputAt(0); ItemStack tSlot1 = getInputAt(1); if ((GT_Utility.isStackValid(tSlot0)) && (GT_Utility.isStackValid(tSlot1)) - && (GT_Utility.getContainerItem(tSlot0, true) == null)) { + && (GT_Utility.getContainerItem(tSlot0, true) == null)) { if ((ItemList.Schematic_1by1.isStackEqual(tSlot1)) && (tSlot0.stackSize >= 1)) { boolean tIsCached = hasValidCache(tSlot0, 1, true); this.mOutputItems[0] = tIsCached ? aOutputCache.copy() : GT_ModHandler.getRecipeOutput(tSlot0); @@ -158,7 +157,7 @@ public class GT_MetaTileEntity_Boxinator extends GT_MetaTileEntity_BasicMachine if ((ItemList.Schematic_2by2.isStackEqual(tSlot1)) && (getInputAt(0).stackSize >= 4)) { boolean tIsCached = hasValidCache(tSlot0, 2, true); this.mOutputItems[0] = tIsCached ? aOutputCache.copy() - : GT_ModHandler.getRecipeOutput(tSlot0, tSlot0, null, tSlot0, tSlot0); + : GT_ModHandler.getRecipeOutput(tSlot0, tSlot0, null, tSlot0, tSlot0); if (this.mOutputItems[0] != null) { if (canOutput(this.mOutputItems[0])) { getInputAt(0).stackSize -= 4; @@ -175,16 +174,8 @@ public class GT_MetaTileEntity_Boxinator extends GT_MetaTileEntity_BasicMachine if ((ItemList.Schematic_3by3.isStackEqual(tSlot1)) && (getInputAt(0).stackSize >= 9)) { boolean tIsCached = hasValidCache(tSlot0, 3, true); this.mOutputItems[0] = tIsCached ? aOutputCache.copy() - : GT_ModHandler.getRecipeOutput( - tSlot0, - tSlot0, - tSlot0, - tSlot0, - tSlot0, - tSlot0, - tSlot0, - tSlot0, - tSlot0); + : GT_ModHandler + .getRecipeOutput(tSlot0, tSlot0, tSlot0, tSlot0, tSlot0, tSlot0, tSlot0, tSlot0, tSlot0); if (this.mOutputItems[0] != null) { if (canOutput(this.mOutputItems[0])) { getInputAt(0).stackSize -= 9; @@ -204,39 +195,31 @@ public class GT_MetaTileEntity_Boxinator extends GT_MetaTileEntity_BasicMachine @Override protected boolean allowPutStackValidated(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, - ItemStack aStack) { + ItemStack aStack) { if (!super.allowPutStackValidated(aBaseMetaTileEntity, aIndex, aSide, aStack)) { return false; } ItemStack tInput1 = getInputAt(1); if ((ItemList.Schematic_1by1.isStackEqual(tInput1)) || (ItemList.Schematic_2by2.isStackEqual(tInput1)) - || (ItemList.Schematic_3by3.isStackEqual(tInput1))) { + || (ItemList.Schematic_3by3.isStackEqual(tInput1))) { if (hasValidCache(aStack, aTypeCache, false)) return true; if (GT_Recipe.GT_Recipe_Map.sBoxinatorRecipes.findRecipe( - getBaseMetaTileEntity(), - true, - gregtech.api.enums.GT_Values.V[mTier], - null, - GT_Utility.copyAmount(64L, aStack), - tInput1) != null) { + getBaseMetaTileEntity(), + true, + gregtech.api.enums.GT_Values.V[mTier], + null, + GT_Utility.copyAmount(64L, aStack), + tInput1) != null) { return true; } if (ItemList.Schematic_1by1.isStackEqual(getInputAt(1)) && GT_ModHandler.getRecipeOutput(aStack) != null) return true; if (ItemList.Schematic_2by2.isStackEqual(getInputAt(1)) - && GT_ModHandler.getRecipeOutput(aStack, aStack, null, aStack, aStack) != null) { + && GT_ModHandler.getRecipeOutput(aStack, aStack, null, aStack, aStack) != null) { return true; } - return ItemList.Schematic_3by3.isStackEqual(getInputAt(1)) && (GT_ModHandler.getRecipeOutput( - aStack, - aStack, - aStack, - aStack, - aStack, - aStack, - aStack, - aStack, - aStack) != null); + return ItemList.Schematic_3by3.isStackEqual(getInputAt(1)) && (GT_ModHandler + .getRecipeOutput(aStack, aStack, aStack, aStack, aStack, aStack, aStack, aStack, aStack) != null); } else { return GT_Recipe.GT_Recipe_Map.sBoxinatorRecipes.containsInput(aStack); } diff --git a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Charger.java b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Charger.java index f273197026..de43fd715e 100644 --- a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Charger.java +++ b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Charger.java @@ -14,17 +14,17 @@ import gregtech.api.util.GT_Utility; public class GT_MetaTileEntity_Charger extends GT_MetaTileEntity_BasicBatteryBuffer { public GT_MetaTileEntity_Charger(int aID, String aName, String aNameRegional, int aTier, String aDescription, - int aSlotCount) { + int aSlotCount) { super(aID, aName, aNameRegional, aTier, aDescription, aSlotCount); } public GT_MetaTileEntity_Charger(String aName, int aTier, String aDescription, ITexture[][][] aTextures, - int aSlotCount) { + int aSlotCount) { super(aName, aTier, aDescription, aTextures, aSlotCount); } public GT_MetaTileEntity_Charger(String aName, int aTier, String[] aDescription, ITexture[][][] aTextures, - int aSlotCount) { + int aSlotCount) { super(aName, aTier, aDescription, aTextures, aSlotCount); } @@ -62,40 +62,41 @@ public class GT_MetaTileEntity_Charger extends GT_MetaTileEntity_BasicBatteryBuf if (mBaseMetaTileEntity.getMetaTileEntity() instanceof MetaTileEntity mMetaTileEntity) { // for (int t = 0; t < 6; t++) { if (mMetaTileEntity.dechargerSlotCount() > 0 - && mBaseMetaTileEntity.getStoredEU() < mBaseMetaTileEntity.getEUCapacity()) { + && mBaseMetaTileEntity.getStoredEU() < mBaseMetaTileEntity.getEUCapacity()) { for (int i = mMetaTileEntity.dechargerSlotStartIndex(), - k = mMetaTileEntity.dechargerSlotCount() + i; i < k; i++) { + k = mMetaTileEntity.dechargerSlotCount() + i; i < k; i++) { if (mMetaTileEntity.mInventory[i] != null - && mBaseMetaTileEntity.getStoredEU() < mBaseMetaTileEntity.getEUCapacity()) { + && mBaseMetaTileEntity.getStoredEU() < mBaseMetaTileEntity.getEUCapacity()) { mBaseMetaTileEntity.increaseStoredEnergyUnits( - GT_ModHandler.dischargeElectricItem( - mMetaTileEntity.mInventory[i], - GT_Utility.safeInt( - Math.min( - V[mTier] * 15, - mBaseMetaTileEntity.getEUCapacity() - - mBaseMetaTileEntity.getStoredEU())), - (int) Math.min(Integer.MAX_VALUE, mMetaTileEntity.getInputTier()), - true, - false, - false), - true); + GT_ModHandler.dischargeElectricItem( + mMetaTileEntity.mInventory[i], + GT_Utility.safeInt( + Math.min( + V[mTier] * 15, + mBaseMetaTileEntity.getEUCapacity() + - mBaseMetaTileEntity.getStoredEU())), + (int) Math.min(Integer.MAX_VALUE, mMetaTileEntity.getInputTier()), + true, + false, + false), + true); if (mMetaTileEntity.mInventory[i].stackSize <= 0) mMetaTileEntity.mInventory[i] = null; } } } if (mMetaTileEntity.rechargerSlotCount() > 0 && mBaseMetaTileEntity.getStoredEU() > 0) { for (int i = mMetaTileEntity.rechargerSlotStartIndex(), - k = mMetaTileEntity.rechargerSlotCount() + i; i < k; i++) { + k = mMetaTileEntity.rechargerSlotCount() + i; i < k; i++) { if (mBaseMetaTileEntity.getStoredEU() > 0 && mMetaTileEntity.mInventory[i] != null) { - mBaseMetaTileEntity.decreaseStoredEU( + mBaseMetaTileEntity + .decreaseStoredEU( GT_ModHandler.chargeElectricItem( - mMetaTileEntity.mInventory[i], - GT_Utility.safeInt( - Math.min(V[mTier] * 15, mBaseMetaTileEntity.getStoredEU())), - (int) Math.min(Integer.MAX_VALUE, mMetaTileEntity.getOutputTier()), - true, - false), + mMetaTileEntity.mInventory[i], + GT_Utility + .safeInt(Math.min(V[mTier] * 15, mBaseMetaTileEntity.getStoredEU())), + (int) Math.min(Integer.MAX_VALUE, mMetaTileEntity.getOutputTier()), + true, + false), true); if (mMetaTileEntity.mInventory[i].stackSize <= 0) mMetaTileEntity.mInventory[i] = null; } diff --git a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_CuringOven.java b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_CuringOven.java index fb0bbfb4c2..01832d0d96 100644 --- a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_CuringOven.java +++ b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_CuringOven.java @@ -21,55 +21,52 @@ public class GT_MetaTileEntity_CuringOven extends GT_MetaTileEntity_BasicMachine public GT_MetaTileEntity_CuringOven(int aID, String aName, String aNameRegional, int aTier) { super( - aID, - aName, - aNameRegional, - aTier, - 1, - "Heats tools for hardening", - 1, - 1, - "E_Oven.png", - "", - TextureFactory.of( - new Textures.BlockIcons.CustomIcon("basicmachines/ELECTRIC_OVEN/OVERLAY_SIDE_ACTIVE")), - TextureFactory.of(new Textures.BlockIcons.CustomIcon("basicmachines/ELECTRIC_OVEN/OVERLAY_SIDE")), - TextureFactory.of( - new Textures.BlockIcons.CustomIcon("basicmachines/ELECTRIC_OVEN/OVERLAY_FRONT_ACTIVE")), - TextureFactory.of(new Textures.BlockIcons.CustomIcon("basicmachines/ELECTRIC_OVEN/OVERLAY_FRONT")), - TextureFactory.of(new Textures.BlockIcons.CustomIcon("basicmachines/ELECTRIC_OVEN/OVERLAY_TOP_ACTIVE")), - TextureFactory.of(new Textures.BlockIcons.CustomIcon("basicmachines/ELECTRIC_OVEN/OVERLAY_TOP")), - TextureFactory.of( - new Textures.BlockIcons.CustomIcon("basicmachines/ELECTRIC_OVEN/OVERLAY_BOTTOM_ACTIVE")), - TextureFactory.of(new Textures.BlockIcons.CustomIcon("basicmachines/ELECTRIC_OVEN/OVERLAY_BOTTOM"))); + aID, + aName, + aNameRegional, + aTier, + 1, + "Heats tools for hardening", + 1, + 1, + "E_Oven.png", + "", + TextureFactory.of(new Textures.BlockIcons.CustomIcon("basicmachines/ELECTRIC_OVEN/OVERLAY_SIDE_ACTIVE")), + TextureFactory.of(new Textures.BlockIcons.CustomIcon("basicmachines/ELECTRIC_OVEN/OVERLAY_SIDE")), + TextureFactory.of(new Textures.BlockIcons.CustomIcon("basicmachines/ELECTRIC_OVEN/OVERLAY_FRONT_ACTIVE")), + TextureFactory.of(new Textures.BlockIcons.CustomIcon("basicmachines/ELECTRIC_OVEN/OVERLAY_FRONT")), + TextureFactory.of(new Textures.BlockIcons.CustomIcon("basicmachines/ELECTRIC_OVEN/OVERLAY_TOP_ACTIVE")), + TextureFactory.of(new Textures.BlockIcons.CustomIcon("basicmachines/ELECTRIC_OVEN/OVERLAY_TOP")), + TextureFactory.of(new Textures.BlockIcons.CustomIcon("basicmachines/ELECTRIC_OVEN/OVERLAY_BOTTOM_ACTIVE")), + TextureFactory.of(new Textures.BlockIcons.CustomIcon("basicmachines/ELECTRIC_OVEN/OVERLAY_BOTTOM"))); } public GT_MetaTileEntity_CuringOven(String aName, int aTier, String aDescription, ITexture[][][] aTextures, - String aGUIName, String aNEIName) { + String aGUIName, String aNEIName) { super(aName, aTier, 1, aDescription, aTextures, 1, 1, aGUIName, aNEIName); } public GT_MetaTileEntity_CuringOven(String aName, int aTier, String[] aDescription, ITexture[][][] aTextures, - String aGUIName, String aNEIName) { + String aGUIName, String aNEIName) { super(aName, aTier, 1, aDescription, aTextures, 1, 1, aGUIName, aNEIName); } @Override public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) { return new GT_MetaTileEntity_CuringOven( - this.mName, - this.mTier, - this.mDescriptionArray, - this.mTextures, - this.mGUIName, - this.mNEIName); + this.mName, + this.mTier, + this.mDescriptionArray, + this.mTextures, + this.mGUIName, + this.mNEIName); } @Override protected boolean allowPutStackValidated(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, - ItemStack aStack) { + ItemStack aStack) { return (super.allowPutStackValidated(aBaseMetaTileEntity, aIndex, aSide, aStack)) - && ItemList.Cell_Empty.isStackEqual(aStack); + && ItemList.Cell_Empty.isStackEqual(aStack); } @Override @@ -81,34 +78,34 @@ public class GT_MetaTileEntity_CuringOven extends GT_MetaTileEntity_BasicMachine public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) { if (aBaseMetaTileEntity.isServerSide()) { for (ItemStack tStack : mInventory) if (tStack != null && tStack.getItem() instanceof GT_MetaGenerated_Tool - && getBaseMetaTileEntity().getStoredEU() > 0) { - getBaseMetaTileEntity().decreaseStoredEnergyUnits(24, true); - NBTTagCompound aNBT = tStack.getTagCompound(); - if (aNBT != null) { - int tHeat = 300; - long tWorldTime = getBaseMetaTileEntity().getWorld() - .getTotalWorldTime(); - aNBT = aNBT.getCompoundTag("GT.ToolStats"); - if (aNBT != null && aNBT.hasKey("Heat")) { - tHeat = aNBT.getInteger("Heat"); - if (aNBT.hasKey("HeatTime")) { - long tHeatTime = aNBT.getLong("HeatTime"); - if (tWorldTime > (tHeatTime + 10)) { - tHeat = (int) (tHeat - ((tWorldTime - tHeatTime) / 10)); - if (tHeat < 300) tHeat = 300; - } + && getBaseMetaTileEntity().getStoredEU() > 0) { + getBaseMetaTileEntity().decreaseStoredEnergyUnits(24, true); + NBTTagCompound aNBT = tStack.getTagCompound(); + if (aNBT != null) { + int tHeat = 300; + long tWorldTime = getBaseMetaTileEntity().getWorld() + .getTotalWorldTime(); + aNBT = aNBT.getCompoundTag("GT.ToolStats"); + if (aNBT != null && aNBT.hasKey("Heat")) { + tHeat = aNBT.getInteger("Heat"); + if (aNBT.hasKey("HeatTime")) { + long tHeatTime = aNBT.getLong("HeatTime"); + if (tWorldTime > (tHeatTime + 10)) { + tHeat = (int) (tHeat - ((tWorldTime - tHeatTime) / 10)); + if (tHeat < 300) tHeat = 300; } } - tHeat++; - if (aNBT != null) { - aNBT.setInteger("Heat", tHeat); - aNBT.setLong("HeatTime", tWorldTime); - } - if (tHeat > GT_MetaGenerated_Tool.getPrimaryMaterial(tStack).mMeltingPoint) { - mInventory[0] = null; - } + } + tHeat++; + if (aNBT != null) { + aNBT.setInteger("Heat", tHeat); + aNBT.setLong("HeatTime", tWorldTime); + } + if (tHeat > GT_MetaGenerated_Tool.getPrimaryMaterial(tStack).mMeltingPoint) { + mInventory[0] = null; } } + } } } diff --git a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_IndustrialApiary.java b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_IndustrialApiary.java index 70b9ecbc22..a0e5561559 100644 --- a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_IndustrialApiary.java +++ b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_IndustrialApiary.java @@ -76,7 +76,7 @@ import gregtech.api.util.GT_Utility; import gregtech.common.GT_Client; public class GT_MetaTileEntity_IndustrialApiary extends GT_MetaTileEntity_BasicMachine - implements IBeeHousing, IBeeHousingInventory, IErrorLogic, IBeeModifier, IBeeListener, IAddUIWidgets { + implements IBeeHousing, IBeeHousingInventory, IErrorLogic, IBeeModifier, IBeeListener, IAddUIWidgets { public static final int beeCycleLength = 550; public static final int baseEUtUsage = 37; @@ -95,85 +95,85 @@ public class GT_MetaTileEntity_IndustrialApiary extends GT_MetaTileEntity_BasicM public GT_MetaTileEntity_IndustrialApiary(int aID, String aName, String aNameRegional, int aTier) { super( - aID, - aName, - aNameRegional, - aTier, - 4, - new String[] { "BEES GOES BRRRR", EnumChatFormatting.GRAY + AuthorKuba }, - 6, - 9, - "IndustrialApiary.png", - "", - TextureFactory.of( - TextureFactory.of(OVERLAY_SIDE_INDUSTRIAL_APIARY_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_SIDE_INDUSTRIAL_APIARY_ACTIVE_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_SIDE_INDUSTRIAL_APIARY), - TextureFactory.builder() - .addIcon(OVERLAY_SIDE_INDUSTRIAL_APIARY_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_FRONT_INDUSTRIAL_APIARY_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_INDUSTRIAL_APIARY_ACTIVE_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_FRONT_INDUSTRIAL_APIARY), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_INDUSTRIAL_APIARY_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_TOP_INDUSTRIAL_APIARY_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_TOP_INDUSTRIAL_APIARY_ACTIVE_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_TOP_INDUSTRIAL_APIARY), - TextureFactory.builder() - .addIcon(OVERLAY_TOP_INDUSTRIAL_APIARY_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_BOTTOM_INDUSTRIAL_APIARY_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_BOTTOM_INDUSTRIAL_APIARY_ACTIVE_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_BOTTOM_INDUSTRIAL_APIARY), - TextureFactory.builder() - .addIcon(OVERLAY_BOTTOM_INDUSTRIAL_APIARY_GLOW) - .glow() - .build())); + aID, + aName, + aNameRegional, + aTier, + 4, + new String[] { "BEES GOES BRRRR", EnumChatFormatting.GRAY + AuthorKuba }, + 6, + 9, + "IndustrialApiary.png", + "", + TextureFactory.of( + TextureFactory.of(OVERLAY_SIDE_INDUSTRIAL_APIARY_ACTIVE), + TextureFactory.builder() + .addIcon(OVERLAY_SIDE_INDUSTRIAL_APIARY_ACTIVE_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_SIDE_INDUSTRIAL_APIARY), + TextureFactory.builder() + .addIcon(OVERLAY_SIDE_INDUSTRIAL_APIARY_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_FRONT_INDUSTRIAL_APIARY_ACTIVE), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_INDUSTRIAL_APIARY_ACTIVE_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_FRONT_INDUSTRIAL_APIARY), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_INDUSTRIAL_APIARY_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_TOP_INDUSTRIAL_APIARY_ACTIVE), + TextureFactory.builder() + .addIcon(OVERLAY_TOP_INDUSTRIAL_APIARY_ACTIVE_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_TOP_INDUSTRIAL_APIARY), + TextureFactory.builder() + .addIcon(OVERLAY_TOP_INDUSTRIAL_APIARY_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_BOTTOM_INDUSTRIAL_APIARY_ACTIVE), + TextureFactory.builder() + .addIcon(OVERLAY_BOTTOM_INDUSTRIAL_APIARY_ACTIVE_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_BOTTOM_INDUSTRIAL_APIARY), + TextureFactory.builder() + .addIcon(OVERLAY_BOTTOM_INDUSTRIAL_APIARY_GLOW) + .glow() + .build())); } public GT_MetaTileEntity_IndustrialApiary(String aName, int aTier, String aDescription, ITexture[][][] aTextures, - String aGUIName, String aNEIName) { + String aGUIName, String aNEIName) { super(aName, aTier, 4, aDescription, aTextures, 6, 9, aGUIName, aNEIName); } public GT_MetaTileEntity_IndustrialApiary(String aName, int aTier, String[] aDescription, ITexture[][][] aTextures, - String aGUIName, String aNEIName) { + String aGUIName, String aNEIName) { super(aName, aTier, 4, aDescription, aTextures, 6, 9, aGUIName, aNEIName); } @Override public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) { return new GT_MetaTileEntity_IndustrialApiary( - this.mName, - this.mTier, - this.mDescriptionArray, - this.mTextures, - this.mGUIName, - this.mNEIName); + this.mName, + this.mTier, + this.mDescriptionArray, + this.mTextures, + this.mGUIName, + this.mNEIName); } @Override @@ -195,11 +195,11 @@ public class GT_MetaTileEntity_IndustrialApiary extends GT_MetaTileEntity_BasicM private void openGUI(IGregTechTileEntity aBaseMetaTileEntity, EntityPlayer aPlayer) { IndustrialApiaryUI.open( - aPlayer, - aBaseMetaTileEntity.getWorld(), - aBaseMetaTileEntity.getXCoord(), - aBaseMetaTileEntity.getYCoord(), - aBaseMetaTileEntity.getZCoord()); + aPlayer, + aBaseMetaTileEntity.getWorld(), + aBaseMetaTileEntity.getXCoord(), + aBaseMetaTileEntity.getYCoord(), + aBaseMetaTileEntity.getZCoord()); } @Override @@ -256,13 +256,13 @@ public class GT_MetaTileEntity_IndustrialApiary extends GT_MetaTileEntity_BasicM if (isRetrievingPollen && floweringMod > 0f) { final int icycles = (int) cycles - + (getWorld().rand.nextFloat() < (cycles - (float) ((int) cycles)) ? 1 : 0); + + (getWorld().rand.nextFloat() < (cycles - (float) ((int) cycles)) ? 1 : 0); for (int z = 0; z < icycles; z++) { final IIndividual p = bee.retrievePollen(this); if (p != null) { final ItemStack s = p.getGenome() - .getSpeciesRoot() - .getMemberStack(p, EnumGermlingType.POLLEN.ordinal()); + .getSpeciesRoot() + .getMemberStack(p, EnumGermlingType.POLLEN.ordinal()); if (s != null) { final GT_Utility.ItemId id = GT_Utility.ItemId.createNoCopy(s); pollen.computeIfAbsent(id, k -> { @@ -290,45 +290,37 @@ public class GT_MetaTileEntity_IndustrialApiary extends GT_MetaTileEntity_BasicM final HashMap dropstacks = new HashMap<>(); for (Map.Entry entry : primary.getProductChances() - .entrySet()) { + .entrySet()) { final GT_Utility.ItemId id = GT_Utility.ItemId.createNoCopy(entry.getKey()); drops.merge( - id, - Bee.getFinalChance(entry.getValue(), speed, prodMod, 8f) * (float) entry.getKey().stackSize - * cycles, - Float::sum); + id, + Bee.getFinalChance(entry.getValue(), speed, prodMod, 8f) * (float) entry.getKey().stackSize + * cycles, + Float::sum); dropstacks.computeIfAbsent(id, k -> entry.getKey()); } for (Map.Entry entry : secondary.getProductChances() - .entrySet()) { + .entrySet()) { final GT_Utility.ItemId id = GT_Utility.ItemId.createNoCopy(entry.getKey()); drops.merge( - id, - Bee.getFinalChance(entry.getValue() / 2f, speed, prodMod, 8f) - * (float) entry.getKey().stackSize - * cycles, - Float::sum); + id, + Bee.getFinalChance(entry.getValue() / 2f, speed, prodMod, 8f) * (float) entry.getKey().stackSize + * cycles, + Float::sum); dropstacks.computeIfAbsent(id, k -> entry.getKey()); } if (primary.isJubilant(genome, this) && secondary.isJubilant(genome, this)) for (Map.Entry entry : primary.getSpecialtyChances() - .entrySet()) { - final GT_Utility.ItemId id = GT_Utility.ItemId.createNoCopy( - entry.getKey()); - drops.merge( - id, - Bee.getFinalChance( - entry.getValue(), - speed, - prodMod, - 8f) - * (float) entry.getKey().stackSize - * cycles, - Float::sum); - dropstacks.computeIfAbsent( - id, - k -> entry.getKey()); - } + .entrySet()) { + final GT_Utility.ItemId id = GT_Utility.ItemId.createNoCopy(entry.getKey()); + drops.merge( + id, + Bee.getFinalChance(entry.getValue(), speed, prodMod, 8f) + * (float) entry.getKey().stackSize + * cycles, + Float::sum); + dropstacks.computeIfAbsent(id, k -> entry.getKey()); + } int i = 0; final int imax = mOutputItems.length; @@ -370,11 +362,11 @@ public class GT_MetaTileEntity_IndustrialApiary extends GT_MetaTileEntity_BasicM for (Map.Entry entry : drops.entrySet()) { final ItemStack s = dropstacks.get(entry.getKey()) - .copy(); + .copy(); s.stackSize = entry.getValue() - .intValue() - + (getWorld().rand.nextFloat() < (entry.getValue() - (float) entry.getValue() - .intValue()) ? 1 : 0); + .intValue() + + (getWorld().rand.nextFloat() < (entry.getValue() - (float) entry.getValue() + .intValue()) ? 1 : 0); if (s.stackSize > 0 && i < imax) while (true) { if (s.stackSize <= s.getMaxStackSize()) { this.mOutputItems[i++] = s; @@ -426,7 +418,7 @@ public class GT_MetaTileEntity_IndustrialApiary extends GT_MetaTileEntity_BasicM this.mOutputItems[0] = new ItemStack(PluginApiculture.items.beeQueenGE); this.mOutputItems[0].setTagCompound(nbttagcompound); beeRoot.getBreedingTracker(getWorld(), getOwner()) - .registerQueen(princess); + .registerQueen(princess); setQueen(null); getDrone().stackSize -= 1; @@ -484,12 +476,12 @@ public class GT_MetaTileEntity_IndustrialApiary extends GT_MetaTileEntity_BasicM if (effect instanceof IAlleleBeeAcceleratableEffect) { effectData[0] = effect.validateStorage(effectData[0]); effectData[0] = ((IAlleleBeeAcceleratableEffect) effect).doEffectAccelerated( - genome, - effectData[0], - this, - usedBeeLife / (effect instanceof AlleleEffectThrottled - ? (float) AlleleBeeEffectThrottledField.getInt(effect) - : 1f)); + genome, + effectData[0], + this, + usedBeeLife / (effect instanceof AlleleEffectThrottled + ? (float) AlleleBeeEffectThrottledField.getInt(effect) + : 1f)); } if (!effect.isCombinable()) return; @@ -500,12 +492,12 @@ public class GT_MetaTileEntity_IndustrialApiary extends GT_MetaTileEntity_BasicM if (secondary instanceof IAlleleBeeAcceleratableEffect) { effectData[1] = secondary.validateStorage(effectData[1]); effectData[1] = ((IAlleleBeeAcceleratableEffect) secondary).doEffectAccelerated( - genome, - effectData[0], - this, - usedBeeLife / (secondary instanceof AlleleEffectThrottled - ? (float) AlleleBeeEffectThrottledField.getInt(secondary) - : 1f)); + genome, + effectData[0], + this, + usedBeeLife / (secondary instanceof AlleleEffectThrottled + ? (float) AlleleBeeEffectThrottledField.getInt(secondary) + : 1f)); } } catch (Exception ex) { ex.printStackTrace(); @@ -542,9 +534,9 @@ public class GT_MetaTileEntity_IndustrialApiary extends GT_MetaTileEntity_BasicM if (!aBaseMetaTileEntity.isActive()) { if (aBaseMetaTileEntity.isAllowedToWork() - && (aBaseMetaTileEntity.hasInventoryBeenModified() || aTick % 600 == 0 - || aBaseMetaTileEntity.hasWorkJustBeenEnabled()) - && hasEnoughEnergyToCheckRecipe()) { + && (aBaseMetaTileEntity.hasInventoryBeenModified() || aTick % 600 == 0 + || aBaseMetaTileEntity.hasWorkJustBeenEnabled()) + && hasEnoughEnergyToCheckRecipe()) { final int check = checkRecipe(); if (check == FOUND_AND_SUCCESSFULLY_USED_RECIPE) { aBaseMetaTileEntity.setActive(true); @@ -577,11 +569,10 @@ public class GT_MetaTileEntity_IndustrialApiary extends GT_MetaTileEntity_BasicM if (usedQueenBee == null) usedQueenBee = beeRoot.getMember(usedQueen); doEffect(); if (!retrievingPollenInThisOperation && floweringMod > 0f - && this.mProgresstime % pollinationDelay == 0) { + && this.mProgresstime % pollinationDelay == 0) { if (retrievedpollen == null) retrievedpollen = usedQueenBee.retrievePollen(this); if (retrievedpollen != null && (usedQueenBee.pollinateRandom(this, retrievedpollen) - || this.mProgresstime % (pollinationDelay * 5) == 0)) - retrievedpollen = null; + || this.mProgresstime % (pollinationDelay * 5) == 0)) retrievedpollen = null; } } @@ -599,16 +590,15 @@ public class GT_MetaTileEntity_IndustrialApiary extends GT_MetaTileEntity_BasicM if (mOutputItems[i] != null) for (int j = 0; j < mOutputItems.length; j++) { if (j == 0 && isAutomated) { if (beeRoot.isMember(mOutputItems[i], EnumBeeType.QUEEN.ordinal()) - || beeRoot.isMember(mOutputItems[i], EnumBeeType.PRINCESS.ordinal())) { + || beeRoot.isMember(mOutputItems[i], EnumBeeType.PRINCESS.ordinal())) { if (aBaseMetaTileEntity.addStackToSlot(queen, mOutputItems[i])) break; } else if (beeRoot.isMember(mOutputItems[i], EnumBeeType.DRONE.ordinal())) if (aBaseMetaTileEntity.addStackToSlot(drone, mOutputItems[i])) break; } else if (i == 0 && j == 0 && beeRoot.isMember(mOutputItems[0], EnumBeeType.QUEEN.ordinal())) if (aBaseMetaTileEntity.addStackToSlot(queen, mOutputItems[0])) break; - if (aBaseMetaTileEntity.addStackToSlot( - getOutputSlot() + ((j + i) % mOutputItems.length), - mOutputItems[i])) + if (aBaseMetaTileEntity + .addStackToSlot(getOutputSlot() + ((j + i) % mOutputItems.length), mOutputItems[i])) break; } Arrays.fill(mOutputItems, null); @@ -619,24 +609,24 @@ public class GT_MetaTileEntity_IndustrialApiary extends GT_MetaTileEntity_BasicM aBaseMetaTileEntity.setActive(false); if (doesAutoOutput() && !isOutputEmpty() && aBaseMetaTileEntity.getFrontFacing() != mMainFacing) { - final TileEntity tTileEntity2 = aBaseMetaTileEntity.getTileEntityAtSide( - aBaseMetaTileEntity.getFrontFacing()); + final TileEntity tTileEntity2 = aBaseMetaTileEntity + .getTileEntityAtSide(aBaseMetaTileEntity.getFrontFacing()); final long tStoredEnergy = aBaseMetaTileEntity.getUniversalEnergyStored(); int tMaxStacks = (int) (tStoredEnergy / 64L); if (tMaxStacks > mOutputItems.length) tMaxStacks = mOutputItems.length; moveMultipleItemStacks( - aBaseMetaTileEntity, - tTileEntity2, - aBaseMetaTileEntity.getFrontFacing(), - aBaseMetaTileEntity.getBackFacing(), - null, - false, - (byte) 64, - (byte) 1, - (byte) 64, - (byte) 1, - tMaxStacks); + aBaseMetaTileEntity, + tTileEntity2, + aBaseMetaTileEntity.getFrontFacing(), + aBaseMetaTileEntity.getBackFacing(), + null, + false, + (byte) 64, + (byte) 1, + (byte) 64, + (byte) 1, + tMaxStacks); } if (aBaseMetaTileEntity.isAllowedToWork() && checkRecipe() == FOUND_AND_SUCCESSFULLY_USED_RECIPE) @@ -648,11 +638,11 @@ public class GT_MetaTileEntity_IndustrialApiary extends GT_MetaTileEntity_BasicM public void cancelProcess() { if (this.getBaseMetaTileEntity() - .isActive() - && this.getBaseMetaTileEntity() - .isServerSide() - && usedQueen != null - && beeRoot.isMember(usedQueen, EnumBeeType.QUEEN.ordinal())) { + .isActive() + && this.getBaseMetaTileEntity() + .isServerSide() + && usedQueen != null + && beeRoot.isMember(usedQueen, EnumBeeType.QUEEN.ordinal())) { Arrays.fill(mOutputItems, null); mEUt = 0; mProgresstime = 0; @@ -671,7 +661,7 @@ public class GT_MetaTileEntity_IndustrialApiary extends GT_MetaTileEntity_BasicM if (aStack == null) return false; if (aIndex < getInputSlot()) return true; if (aIndex == queen) return beeRoot.isMember(aStack, EnumBeeType.QUEEN.ordinal()) - || beeRoot.isMember(aStack, EnumBeeType.PRINCESS.ordinal()); + || beeRoot.isMember(aStack, EnumBeeType.PRINCESS.ordinal()); else if (aIndex == drone) return beeRoot.isMember(aStack, EnumBeeType.DRONE.ordinal()); else if (aIndex < getOutputSlot()) { if (!GT_ApiaryUpgrade.isUpgrade(aStack)) return false; @@ -682,12 +672,10 @@ public class GT_MetaTileEntity_IndustrialApiary extends GT_MetaTileEntity_BasicM if (GT_Utility.areStacksEqual(getStackInSlot(i), aStack)) return false; if (GT_ApiaryUpgrade.isUpgrade(aStack)) { if (!GT_ApiaryUpgrade.getUpgrade(aStack) - .isAllowedToWorkWith(getStackInSlot(i))) - return false; + .isAllowedToWorkWith(getStackInSlot(i))) return false; } else if (GT_ApiaryUpgrade.isUpgrade(s)) { if (!GT_ApiaryUpgrade.getUpgrade(s) - .isAllowedToWorkWith(aStack)) - return false; + .isAllowedToWorkWith(aStack)) return false; } } return true; @@ -735,19 +723,19 @@ public class GT_MetaTileEntity_IndustrialApiary extends GT_MetaTileEntity_BasicM @Override public int getBlockLightValue() { return this.getBaseMetaTileEntity() - .getLightLevelAtSide((byte) 1); + .getLightLevelAtSide((byte) 1); } @Override public boolean canBlockSeeTheSky() { return this.getBaseMetaTileEntity() - .getSkyAtSide((byte) 1); + .getSkyAtSide((byte) 1); } @Override public World getWorld() { return this.getBaseMetaTileEntity() - .getWorld(); + .getWorld(); } GameProfile owner = null; @@ -755,25 +743,25 @@ public class GT_MetaTileEntity_IndustrialApiary extends GT_MetaTileEntity_BasicM @Override public GameProfile getOwner() { if (owner == null) owner = new GameProfile( - this.getBaseMetaTileEntity() - .getOwnerUuid(), - this.getBaseMetaTileEntity() - .getOwnerName()); + this.getBaseMetaTileEntity() + .getOwnerUuid(), + this.getBaseMetaTileEntity() + .getOwnerName()); return owner; } @Override public Vec3 getBeeFXCoordinates() { return Vec3.createVectorHelper( - getBaseMetaTileEntity().getXCoord() + 0.5, - getBaseMetaTileEntity().getYCoord() + 0.5, - getBaseMetaTileEntity().getZCoord() + 0.5); + getBaseMetaTileEntity().getXCoord() + 0.5, + getBaseMetaTileEntity().getYCoord() + 0.5, + getBaseMetaTileEntity().getZCoord() + 0.5); } @Override public BiomeGenBase getBiome() { if (biomeOverride == null) return this.getBaseMetaTileEntity() - .getBiome(); + .getBiome(); return biomeOverride; } @@ -796,7 +784,7 @@ public class GT_MetaTileEntity_IndustrialApiary extends GT_MetaTileEntity_BasicM @Override public ChunkCoordinates getCoordinates() { return this.getBaseMetaTileEntity() - .getCoords(); + .getCoords(); } // endregion @@ -878,26 +866,20 @@ public class GT_MetaTileEntity_IndustrialApiary extends GT_MetaTileEntity_BasicM private boolean checkFlower(IBee bee) { final String flowerType = bee.getGenome() - .getFlowerProvider() - .getFlowerType(); + .getFlowerProvider() + .getFlowerType(); if (!this.flowerType.equals(flowerType)) flowercoords = null; if (flowercoords != null) { if (getWorld().getBlock(flowercoords.posX, flowercoords.posY, flowercoords.posZ) != flowerBlock - || getWorld().getBlockMetadata(flowercoords.posX, flowercoords.posY, flowercoords.posZ) - != flowerBlockMeta) - if (!FlowerManager.flowerRegistry.isAcceptedFlower( - flowerType, - getWorld(), - flowercoords.posX, - flowercoords.posY, - flowercoords.posZ)) + || getWorld().getBlockMetadata(flowercoords.posX, flowercoords.posY, flowercoords.posZ) + != flowerBlockMeta) + if (!FlowerManager.flowerRegistry + .isAcceptedFlower(flowerType, getWorld(), flowercoords.posX, flowercoords.posY, flowercoords.posZ)) flowercoords = null; else { flowerBlock = getWorld().getBlock(flowercoords.posX, flowercoords.posY, flowercoords.posZ); - flowerBlockMeta = getWorld().getBlockMetadata( - flowercoords.posX, - flowercoords.posY, - flowercoords.posZ); + flowerBlockMeta = getWorld() + .getBlockMetadata(flowercoords.posX, flowercoords.posY, flowercoords.posZ); } } if (flowercoords == null) { @@ -1111,12 +1093,12 @@ public class GT_MetaTileEntity_IndustrialApiary extends GT_MetaTileEntity_BasicM }; private static final String POWER_SOURCE_POWER = "GT5U.machines.powersource.power", - CANCEL_PROCESS_TOOLTIP = "GT5U.machines.industrialapiary.cancel.tooltip", - SPEED_TOOLTIP = "GT5U.machines.industrialapiary.speed.tooltip", - SPEED_LOCKED_TOOLTIP = "GT5U.machines.industrialapiary.speedlocked.tooltip", - INFO_TOOLTIP = "GT5U.machines.industrialapiary.info.tooltip", - INFO_WITH_BEE_TOOLTIP = "GT5U.machines.industrialapiary.infoextended.tooltip", - UPGRADE_TOOLTIP = "GT5U.machines.industrialapiary.upgradeslot.tooltip"; + CANCEL_PROCESS_TOOLTIP = "GT5U.machines.industrialapiary.cancel.tooltip", + SPEED_TOOLTIP = "GT5U.machines.industrialapiary.speed.tooltip", + SPEED_LOCKED_TOOLTIP = "GT5U.machines.industrialapiary.speedlocked.tooltip", + INFO_TOOLTIP = "GT5U.machines.industrialapiary.info.tooltip", + INFO_WITH_BEE_TOOLTIP = "GT5U.machines.industrialapiary.infoextended.tooltip", + UPGRADE_TOOLTIP = "GT5U.machines.industrialapiary.upgradeslot.tooltip"; @Override public boolean useModularUI() { @@ -1125,150 +1107,126 @@ public class GT_MetaTileEntity_IndustrialApiary extends GT_MetaTileEntity_BasicM @Override public void addUIWidgets(ModularWindow.Builder builder, UIBuildContext buildContext) { - builder.widget( + builder + .widget( new SlotWidget(new ApiarySlot(inventoryHandler, queen)) - .setBackground( - getGUITextureSet().getItemSlot(), - GT_UITextures.OVERLAY_SLOT_BEE_QUEEN) - .setPos(36, 21)) - .widget( - new SlotWidget(new ApiarySlot(inventoryHandler, drone)).setBackground( - getGUITextureSet().getItemSlot(), - GT_UITextures.OVERLAY_SLOT_BEE_DRONE) - .setPos(36, 41)) - .widget( - SlotGroup.ofItemHandler(inventoryHandler, 2) - .startFromSlot(7) - .endAtSlot(10) - .slotCreator(i -> new ApiarySlot(inventoryHandler, i)) - .applyForWidget( - widget -> widget.setGTTooltip(() -> mTooltipCache.getData(UPGRADE_TOOLTIP)) - .setTooltipShowUpDelay(TOOLTIP_DELAY)) - .build() - .setPos(61, 23)); + .setBackground(getGUITextureSet().getItemSlot(), GT_UITextures.OVERLAY_SLOT_BEE_QUEEN) + .setPos(36, 21)) + .widget( + new SlotWidget(new ApiarySlot(inventoryHandler, drone)) + .setBackground(getGUITextureSet().getItemSlot(), GT_UITextures.OVERLAY_SLOT_BEE_DRONE) + .setPos(36, 41)) + .widget( + SlotGroup.ofItemHandler(inventoryHandler, 2) + .startFromSlot(7) + .endAtSlot(10) + .slotCreator(i -> new ApiarySlot(inventoryHandler, i)) + .applyForWidget( + widget -> widget.setGTTooltip(() -> mTooltipCache.getData(UPGRADE_TOOLTIP)) + .setTooltipShowUpDelay(TOOLTIP_DELAY)) + .build() + .setPos(61, 23)); super.addUIWidgets(builder, buildContext); builder.widget( - new ProgressBar().setProgress(() -> (float) getProgresstime() / Math.max(maxProgresstime(), 1)) - .setTexture(GT_UITextures.PROGRESSBAR_ARROW, 20) - .setPos(70, 3) - .setSize(20, 18)) - .widget( - new ButtonWidget().setOnClick((clickData, widget) -> cancelProcess()) - .setBackground( - GT_UITextures.BUTTON_STANDARD, - GT_UITextures.OVERLAY_BUTTON_CROSS) - .setGTTooltip(() -> mTooltipCache.getData(CANCEL_PROCESS_TOOLTIP)) - .setTooltipShowUpDelay(TOOLTIP_DELAY) - .setPos(7, 26) - .setSize(18, 18)) - .widget( - new DrawableWidget().setDrawable(GT_UITextures.PICTURE_INFORMATION) - .setGTTooltip(() -> { - final String energyreq = GT_Utility.formatNumbers( - (int) ((float) GT_MetaTileEntity_IndustrialApiary.baseEUtUsage - * getEnergyModifier() - * getAcceleration()) + getAdditionalEnergyUsage()); - final String Temp = StatCollector.translateToLocal( - getTemperature().getName()); - final String Hum = StatCollector.translateToLocal( - getHumidity().getName()); - if (getUsedQueen() != null && BeeManager.beeRoot.isMember( - getUsedQueen(), - EnumBeeType.QUEEN.ordinal())) { - final IBee bee = BeeManager.beeRoot.getMember(getUsedQueen()); - if (bee.isAnalyzed()) { - final IBeeGenome genome = bee.getGenome(); - final IBeeModifier mod = BeeManager.beeRoot.getBeekeepingMode( - getWorld()) - .getBeeModifier(); - final float tmod = getTerritoryModifier(null, 1f) - * mod.getTerritoryModifier(null, 1f); - final int[] t = Arrays.stream(genome.getTerritory()) - .map(i -> (int) ((float) i * tmod)) - .toArray(); - return mTooltipCache.getUncachedTooltipData( - INFO_WITH_BEE_TOOLTIP, - energyreq, - Temp, - Hum, - genome.getSpeed(), - getProductionModifier(null, 1f) - * mod.getProductionModifier(null, 1f), - Math.round( - getFloweringModifier(null, 1f) - * genome.getFlowering() - * mod.getFloweringModifier(null, 1f)), - Math.round( - getLifespanModifier(null, null, 1f) - * genome.getLifespan() - * mod.getLifespanModifier( - null, - null, - 1f)), - t[0], - t[1], - t[2]); - } - } - return mTooltipCache.getUncachedTooltipData( - INFO_TOOLTIP, - energyreq, - Temp, - Hum); - }) - .attachSyncer( - new FakeSyncWidget.ItemStackSyncer( - () -> usedQueen, - val -> usedQueen = val), - builder, - (widget, val) -> widget.notifyTooltipChange()) - .setPos(163, 5) - .setSize(7, 18)) - .widget(new ButtonWidget().setOnClick((clickData, widget) -> { - if (clickData.mouseButton == 0) { - if (mLockedSpeed) return; - if (!clickData.shift) { - mSpeed++; - if (mSpeed > getMaxSpeed()) mSpeed = 0; - } else { - mSpeed--; - if (mSpeed < 0) mSpeed = getMaxSpeed(); - } - } else if (clickData.mouseButton == 1) { - mLockedSpeed = !mLockedSpeed; - if (mLockedSpeed) mSpeed = getMaxSpeed(); - } - }) - .setGTTooltip( - () -> mTooltipCache.getUncachedTooltipData( - mLockedSpeed ? SPEED_LOCKED_TOOLTIP : SPEED_TOOLTIP, - getAcceleration(), - GT_Utility.formatNumbers(getAdditionalEnergyUsage()))) - .attachSyncer( - new FakeSyncWidget.IntegerSyncer(() -> mSpeed, val -> mSpeed = val), - builder, - (widget, val) -> widget.notifyTooltipChange()) - .attachSyncer( - new FakeSyncWidget.BooleanSyncer( - () -> mLockedSpeed, - val -> mLockedSpeed = val), - builder, - (widget, val) -> widget.notifyTooltipChange()) - .setTooltipShowUpDelay(TOOLTIP_DELAY) - .setBackground(GT_UITextures.PICTURE_SQUARE_LIGHT_GRAY) - .setPos(25, 62) - .setSize(18, 18)) - .widget( - new TextWidget("x").setDefaultColor(COLOR_TEXT_GRAY.get()) - .setPos(30, 63)) - .widget( - TextWidget.dynamicString(() -> String.valueOf(1 << mSpeed)) - // mSpeed is already synced - .setSynced(false) - .setDefaultColor(COLOR_TEXT_GRAY.get()) - .setPos(26, 72)); + new ProgressBar().setProgress(() -> (float) getProgresstime() / Math.max(maxProgresstime(), 1)) + .setTexture(GT_UITextures.PROGRESSBAR_ARROW, 20) + .setPos(70, 3) + .setSize(20, 18)) + .widget( + new ButtonWidget().setOnClick((clickData, widget) -> cancelProcess()) + .setBackground(GT_UITextures.BUTTON_STANDARD, GT_UITextures.OVERLAY_BUTTON_CROSS) + .setGTTooltip(() -> mTooltipCache.getData(CANCEL_PROCESS_TOOLTIP)) + .setTooltipShowUpDelay(TOOLTIP_DELAY) + .setPos(7, 26) + .setSize(18, 18)) + .widget( + new DrawableWidget().setDrawable(GT_UITextures.PICTURE_INFORMATION) + .setGTTooltip(() -> { + final String energyreq = GT_Utility.formatNumbers( + (int) ((float) GT_MetaTileEntity_IndustrialApiary.baseEUtUsage * getEnergyModifier() + * getAcceleration()) + getAdditionalEnergyUsage()); + final String Temp = StatCollector.translateToLocal(getTemperature().getName()); + final String Hum = StatCollector.translateToLocal(getHumidity().getName()); + if (getUsedQueen() != null + && BeeManager.beeRoot.isMember(getUsedQueen(), EnumBeeType.QUEEN.ordinal())) { + final IBee bee = BeeManager.beeRoot.getMember(getUsedQueen()); + if (bee.isAnalyzed()) { + final IBeeGenome genome = bee.getGenome(); + final IBeeModifier mod = BeeManager.beeRoot.getBeekeepingMode(getWorld()) + .getBeeModifier(); + final float tmod = getTerritoryModifier(null, 1f) * mod.getTerritoryModifier(null, 1f); + final int[] t = Arrays.stream(genome.getTerritory()) + .map(i -> (int) ((float) i * tmod)) + .toArray(); + return mTooltipCache.getUncachedTooltipData( + INFO_WITH_BEE_TOOLTIP, + energyreq, + Temp, + Hum, + genome.getSpeed(), + getProductionModifier(null, 1f) * mod.getProductionModifier(null, 1f), + Math.round( + getFloweringModifier(null, 1f) * genome.getFlowering() + * mod.getFloweringModifier(null, 1f)), + Math.round( + getLifespanModifier(null, null, 1f) * genome.getLifespan() + * mod.getLifespanModifier(null, null, 1f)), + t[0], + t[1], + t[2]); + } + } + return mTooltipCache.getUncachedTooltipData(INFO_TOOLTIP, energyreq, Temp, Hum); + }) + .attachSyncer( + new FakeSyncWidget.ItemStackSyncer(() -> usedQueen, val -> usedQueen = val), + builder, + (widget, val) -> widget.notifyTooltipChange()) + .setPos(163, 5) + .setSize(7, 18)) + .widget(new ButtonWidget().setOnClick((clickData, widget) -> { + if (clickData.mouseButton == 0) { + if (mLockedSpeed) return; + if (!clickData.shift) { + mSpeed++; + if (mSpeed > getMaxSpeed()) mSpeed = 0; + } else { + mSpeed--; + if (mSpeed < 0) mSpeed = getMaxSpeed(); + } + } else if (clickData.mouseButton == 1) { + mLockedSpeed = !mLockedSpeed; + if (mLockedSpeed) mSpeed = getMaxSpeed(); + } + }) + .setGTTooltip( + () -> mTooltipCache.getUncachedTooltipData( + mLockedSpeed ? SPEED_LOCKED_TOOLTIP : SPEED_TOOLTIP, + getAcceleration(), + GT_Utility.formatNumbers(getAdditionalEnergyUsage()))) + .attachSyncer( + new FakeSyncWidget.IntegerSyncer(() -> mSpeed, val -> mSpeed = val), + builder, + (widget, val) -> widget.notifyTooltipChange()) + .attachSyncer( + new FakeSyncWidget.BooleanSyncer(() -> mLockedSpeed, val -> mLockedSpeed = val), + builder, + (widget, val) -> widget.notifyTooltipChange()) + .setTooltipShowUpDelay(TOOLTIP_DELAY) + .setBackground(GT_UITextures.PICTURE_SQUARE_LIGHT_GRAY) + .setPos(25, 62) + .setSize(18, 18)) + .widget( + new TextWidget("x").setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(30, 63)) + .widget( + TextWidget.dynamicString(() -> String.valueOf(1 << mSpeed)) + // mSpeed is already synced + .setSynced(false) + .setDefaultColor(COLOR_TEXT_GRAY.get()) + .setPos(26, 72)); } @Override @@ -1295,37 +1253,26 @@ public class GT_MetaTileEntity_IndustrialApiary extends GT_MetaTileEntity_BasicM @Override protected DrawableWidget createErrorStatusArea(ModularWindow.Builder builder, IDrawable picture) { return (DrawableWidget) super.createErrorStatusArea(builder, picture).setPos(100, 62) - .attachSyncer( - new FakeSyncWidget.ListSyncer<>( - () -> Arrays.asList( - mErrorStates.toArray( - new IErrorState[0])), - val -> { - mErrorStates.clear(); - mErrorStates.addAll( - new HashSet<>( - val)); - }, - (buffer, val) -> buffer.writeShort( - val.getID()), - buffer -> ForestryAPI.errorStateRegistry.getErrorState( - buffer.readShort())), - builder, - (widget, val) -> widget.notifyTooltipChange()); + .attachSyncer( + new FakeSyncWidget.ListSyncer<>(() -> Arrays.asList(mErrorStates.toArray(new IErrorState[0])), val -> { + mErrorStates.clear(); + mErrorStates.addAll(new HashSet<>(val)); + }, + (buffer, val) -> buffer.writeShort(val.getID()), + buffer -> ForestryAPI.errorStateRegistry.getErrorState(buffer.readShort())), + builder, + (widget, val) -> widget.notifyTooltipChange()); } @Override protected List getErrorDescriptions() { if (!mErrorStates.isEmpty()) { return mErrorStates.stream() - .map( - state -> EnumChatFormatting.RED - + StatCollector.translateToLocal("for." + state.getDescription())) - .collect(Collectors.toList()); + .map(state -> EnumChatFormatting.RED + StatCollector.translateToLocal("for." + state.getDescription())) + .collect(Collectors.toList()); } else if (mStuttering) { - return mTooltipCache.getData( - STALLED_STUTTERING_TOOLTIP, - StatCollector.translateToLocal(POWER_SOURCE_POWER)).text; + return mTooltipCache + .getData(STALLED_STUTTERING_TOOLTIP, StatCollector.translateToLocal(POWER_SOURCE_POWER)).text; } else { return Collections.emptyList(); } @@ -1368,8 +1315,8 @@ public class GT_MetaTileEntity_IndustrialApiary extends GT_MetaTileEntity_BasicM } } - private static final UIInfo IndustrialApiaryUI = GT_UIInfos.GTTileEntityUIFactory.apply( - GT_ModularUIContainer_IndustrialApiary::new); + private static final UIInfo IndustrialApiaryUI = GT_UIInfos.GTTileEntityUIFactory + .apply(GT_ModularUIContainer_IndustrialApiary::new); private static class GT_ModularUIContainer_IndustrialApiary extends ModularUIContainer { @@ -1395,7 +1342,7 @@ public class GT_MetaTileEntity_IndustrialApiary extends GT_MetaTileEntity_BasicM return super.slotClick(aSlotNumber, aMouseclick, aShifthold, aPlayer); if (!GT_ApiaryUpgrade.isUpgrade(s)) return super.slotClick(aSlotNumber, aMouseclick, aShifthold, aPlayer); int max = GT_ApiaryUpgrade.getUpgrade(s) - .getMaxNumber(); + .getMaxNumber(); if (slotStack != null) max = Math.max(0, max - slotStack.stackSize); max = Math.min(max, s.stackSize); if (max == 0) return null; @@ -1424,7 +1371,7 @@ public class GT_MetaTileEntity_IndustrialApiary extends GT_MetaTileEntity_BasicM if (!GT_Utility.areStacksEqual(aStack, iStack)) continue; } int max = GT_ApiaryUpgrade.getUpgrade(aStack) - .getMaxNumber(); + .getMaxNumber(); if (iStack == null) { max = Math.min(max, aStack.stackSize); final ItemStack newstack = aStack.splitStack(max); diff --git a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Massfabricator.java b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Massfabricator.java index 2c1e46ea9e..fd9062cbd4 100644 --- a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Massfabricator.java +++ b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Massfabricator.java @@ -32,75 +32,75 @@ public class GT_MetaTileEntity_Massfabricator extends GT_MetaTileEntity_BasicMac public GT_MetaTileEntity_Massfabricator(int aID, String aName, String aNameRegional, int aTier) { super( - aID, - aName, - aNameRegional, - aTier, - 1, - "UUM = Matter * Fabrication Squared", - 1, - 1, - "Massfabricator.png", - "", - TextureFactory.of( - TextureFactory.of(OVERLAY_SIDE_MASSFAB_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_SIDE_MASSFAB_ACTIVE_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_SIDE_MASSFAB), - TextureFactory.builder() - .addIcon(OVERLAY_SIDE_MASSFAB_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_FRONT_MASSFAB_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_MASSFAB_ACTIVE_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_FRONT_MASSFAB), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_MASSFAB_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_TOP_MASSFAB_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_TOP_MASSFAB_ACTIVE_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_TOP_MASSFAB), - TextureFactory.builder() - .addIcon(OVERLAY_TOP_MASSFAB_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_BOTTOM_MASSFAB_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_BOTTOM_MASSFAB_ACTIVE_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_BOTTOM_MASSFAB), - TextureFactory.builder() - .addIcon(OVERLAY_BOTTOM_MASSFAB_GLOW) - .glow() - .build())); + aID, + aName, + aNameRegional, + aTier, + 1, + "UUM = Matter * Fabrication Squared", + 1, + 1, + "Massfabricator.png", + "", + TextureFactory.of( + TextureFactory.of(OVERLAY_SIDE_MASSFAB_ACTIVE), + TextureFactory.builder() + .addIcon(OVERLAY_SIDE_MASSFAB_ACTIVE_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_SIDE_MASSFAB), + TextureFactory.builder() + .addIcon(OVERLAY_SIDE_MASSFAB_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_FRONT_MASSFAB_ACTIVE), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_MASSFAB_ACTIVE_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_FRONT_MASSFAB), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_MASSFAB_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_TOP_MASSFAB_ACTIVE), + TextureFactory.builder() + .addIcon(OVERLAY_TOP_MASSFAB_ACTIVE_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_TOP_MASSFAB), + TextureFactory.builder() + .addIcon(OVERLAY_TOP_MASSFAB_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_BOTTOM_MASSFAB_ACTIVE), + TextureFactory.builder() + .addIcon(OVERLAY_BOTTOM_MASSFAB_ACTIVE_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_BOTTOM_MASSFAB), + TextureFactory.builder() + .addIcon(OVERLAY_BOTTOM_MASSFAB_GLOW) + .glow() + .build())); EUt = V[1] * (long) Math.pow(2, mTier + 2); } public GT_MetaTileEntity_Massfabricator(String aName, int aTier, String aDescription, ITexture[][][] aTextures, - String aGUIName, String aNEIName) { + String aGUIName, String aNEIName) { super(aName, aTier, 1, aDescription, aTextures, 1, 1, aGUIName, aNEIName); EUt = V[1] * (long) Math.pow(2, mTier + 2); } public GT_MetaTileEntity_Massfabricator(String aName, int aTier, String[] aDescription, ITexture[][][] aTextures, - String aGUIName, String aNEIName) { + String aGUIName, String aNEIName) { super(aName, aTier, 1, aDescription, aTextures, 1, 1, aGUIName, aNEIName); EUt = V[1] * (long) Math.pow(2, mTier + 2); } @@ -108,12 +108,12 @@ public class GT_MetaTileEntity_Massfabricator extends GT_MetaTileEntity_BasicMac @Override public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) { return new GT_MetaTileEntity_Massfabricator( - this.mName, - this.mTier, - this.mDescriptionArray, - this.mTextures, - this.mGUIName, - this.mNEIName); + this.mName, + this.mTier, + this.mDescriptionArray, + this.mTextures, + this.mGUIName, + this.mNEIName); } @Override @@ -129,10 +129,8 @@ public class GT_MetaTileEntity_Massfabricator extends GT_MetaTileEntity_BasicMac @Override public void onConfigLoad(GT_Config aConfig) { super.onConfigLoad(aConfig); - sDurationMultiplier = aConfig.get( - ConfigCategories.machineconfig, - "Massfabricator.UUM_Duration_Multiplier", - sDurationMultiplier); + sDurationMultiplier = aConfig + .get(ConfigCategories.machineconfig, "Massfabricator.UUM_Duration_Multiplier", sDurationMultiplier); sUUAperUUM = aConfig.get(ConfigCategories.machineconfig, "Massfabricator.UUA_per_UUM", sUUAperUUM); sUUASpeedBonus = aConfig.get(ConfigCategories.machineconfig, "Massfabricator.UUA_Speed_Bonus", sUUASpeedBonus); sRequiresUUA = aConfig.get(ConfigCategories.machineconfig, "Massfabricator.UUA_Requirement", sRequiresUUA); @@ -155,8 +153,8 @@ public class GT_MetaTileEntity_Massfabricator extends GT_MetaTileEntity_BasicMac if ((tFluid == null) || (tFluid.amount < getCapacity())) { this.mOutputFluid = Materials.UUMatter.getFluid(1L); calculateOverclockedNess( - (int) EUt, - containsUUA(getFillableStack()) ? sDurationMultiplier / sUUASpeedBonus : sDurationMultiplier); + (int) EUt, + containsUUA(getFillableStack()) ? sDurationMultiplier / sUUASpeedBonus : sDurationMultiplier); // In case recipe is too OP for that machine if (mMaxProgresstime == Integer.MAX_VALUE - 1 && mEUt == Integer.MAX_VALUE - 1) return FOUND_RECIPE_BUT_DID_NOT_MEET_REQUIREMENTS; @@ -165,9 +163,9 @@ public class GT_MetaTileEntity_Massfabricator extends GT_MetaTileEntity_BasicMac return FOUND_AND_SUCCESSFULLY_USED_RECIPE; } return sRequiresUUA || Arrays.stream(getAllInputs()) - .anyMatch(s -> ItemList.Circuit_Integrated.isStackEqual(s, true, true)) - ? FOUND_RECIPE_BUT_DID_NOT_MEET_REQUIREMENTS - : FOUND_AND_SUCCESSFULLY_USED_RECIPE; + .anyMatch(s -> ItemList.Circuit_Integrated.isStackEqual(s, true, true)) + ? FOUND_RECIPE_BUT_DID_NOT_MEET_REQUIREMENTS + : FOUND_AND_SUCCESSFULLY_USED_RECIPE; } return DID_NOT_FIND_RECIPE; } diff --git a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_MicrowaveEnergyTransmitter.java b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_MicrowaveEnergyTransmitter.java index b72c456683..3db90597f6 100644 --- a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_MicrowaveEnergyTransmitter.java +++ b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_MicrowaveEnergyTransmitter.java @@ -44,7 +44,7 @@ import gregtech.api.util.GT_Config; import gregtech.api.util.GT_Utility; public class GT_MetaTileEntity_MicrowaveEnergyTransmitter extends GT_MetaTileEntity_BasicTank - implements IAddGregtechLogo, IAddUIWidgets { + implements IAddGregtechLogo, IAddUIWidgets { private static boolean sInterDimensionalTeleportAllowed = true; private static int mMaxLoss = 50; @@ -64,22 +64,22 @@ public class GT_MetaTileEntity_MicrowaveEnergyTransmitter extends GT_MetaTileEnt public GT_MetaTileEntity_MicrowaveEnergyTransmitter(int aID, String aName, String aNameRegional, int aTier) { super( - aID, - aName, - aNameRegional, - aTier, - 3, - new String[] { "Transmits Energy Wirelessly", "Use Nitrogen Plasma", - "for Inter-dimensional transmission", "0.004EU Loss per 100 Blocks" }); + aID, + aName, + aNameRegional, + aTier, + 3, + new String[] { "Transmits Energy Wirelessly", "Use Nitrogen Plasma", "for Inter-dimensional transmission", + "0.004EU Loss per 100 Blocks" }); } public GT_MetaTileEntity_MicrowaveEnergyTransmitter(String aName, int aTier, String aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, 3, aDescription, aTextures); } public GT_MetaTileEntity_MicrowaveEnergyTransmitter(String aName, int aTier, String[] aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, 3, aDescription, aTextures); } @@ -94,41 +94,41 @@ public class GT_MetaTileEntity_MicrowaveEnergyTransmitter extends GT_MetaTileEnt @Override public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) { return new GT_MetaTileEntity_MicrowaveEnergyTransmitter( - this.mName, - this.mTier, - this.mDescriptionArray, - this.mTextures); + this.mName, + this.mTier, + this.mDescriptionArray, + this.mTextures); } @Override public String[] getInfoData() { return new String[] { "Coordinates:", - "X: " + EnumChatFormatting.GREEN + GT_Utility.formatNumbers(this.mTargetX) + EnumChatFormatting.RESET, - "Y: " + EnumChatFormatting.GREEN + GT_Utility.formatNumbers(this.mTargetY) + EnumChatFormatting.RESET, - "Z: " + EnumChatFormatting.GREEN + GT_Utility.formatNumbers(this.mTargetZ) + EnumChatFormatting.RESET, - "Dimension: " + EnumChatFormatting.GREEN + this.mTargetD + EnumChatFormatting.RESET, - "Dimension Valid: " + (GT_Utility.isRealDimension(this.mTargetD) - ? EnumChatFormatting.GREEN + "Yes" + EnumChatFormatting.RESET - : EnumChatFormatting.RED + "No" + EnumChatFormatting.RESET), - "Dimension Registered: " + (DimensionManager.isDimensionRegistered(this.mTargetD) - ? EnumChatFormatting.GREEN + "Yes" + EnumChatFormatting.RESET - : EnumChatFormatting.RED + "No" + EnumChatFormatting.RESET) }; + "X: " + EnumChatFormatting.GREEN + GT_Utility.formatNumbers(this.mTargetX) + EnumChatFormatting.RESET, + "Y: " + EnumChatFormatting.GREEN + GT_Utility.formatNumbers(this.mTargetY) + EnumChatFormatting.RESET, + "Z: " + EnumChatFormatting.GREEN + GT_Utility.formatNumbers(this.mTargetZ) + EnumChatFormatting.RESET, + "Dimension: " + EnumChatFormatting.GREEN + this.mTargetD + EnumChatFormatting.RESET, + "Dimension Valid: " + (GT_Utility.isRealDimension(this.mTargetD) + ? EnumChatFormatting.GREEN + "Yes" + EnumChatFormatting.RESET + : EnumChatFormatting.RED + "No" + EnumChatFormatting.RESET), + "Dimension Registered: " + (DimensionManager.isDimensionRegistered(this.mTargetD) + ? EnumChatFormatting.GREEN + "Yes" + EnumChatFormatting.RESET + : EnumChatFormatting.RED + "No" + EnumChatFormatting.RESET) }; } @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { if (aSide == 0) return new ITexture[] { MACHINE_CASINGS[mTier][aColorIndex + 1] }; if (aActive) return new ITexture[] { MACHINE_CASINGS[mTier][aColorIndex + 1], - TextureFactory.of(OVERLAY_TELEPORTER_ACTIVE), TextureFactory.builder() - .addIcon(OVERLAY_TELEPORTER_ACTIVE_GLOW) - .glow() - .build() }; + TextureFactory.of(OVERLAY_TELEPORTER_ACTIVE), TextureFactory.builder() + .addIcon(OVERLAY_TELEPORTER_ACTIVE_GLOW) + .glow() + .build() }; return new ITexture[] { MACHINE_CASINGS[mTier][aColorIndex + 1], TextureFactory.of(OVERLAY_TELEPORTER), - TextureFactory.builder() - .addIcon(OVERLAY_TELEPORTER_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(OVERLAY_TELEPORTER_GLOW) + .glow() + .build() }; } @Override @@ -153,10 +153,8 @@ public class GT_MetaTileEntity_MicrowaveEnergyTransmitter extends GT_MetaTileEnt @Override public void onConfigLoad(GT_Config aConfig) { - sInterDimensionalTeleportAllowed = aConfig.get( - ConfigCategories.machineconfig, - "Teleporter.Interdimensional", - true); + sInterDimensionalTeleportAllowed = aConfig + .get(ConfigCategories.machineconfig, "Teleporter.Interdimensional", true); mMaxLoss = Math.max(aConfig.get(ConfigCategories.machineconfig, "MicrowaveTransmitter.MaxLoss", 50), 11); mMaxLossDistance = aConfig.get(ConfigCategories.machineconfig, "MicrowaveTransmitter.MaxLossDistance", 10000); mPassiveEnergyUse = aConfig.get(ConfigCategories.machineconfig, "MicrowaveTransmitter.PassiveEnergy", true); @@ -180,7 +178,7 @@ public class GT_MetaTileEntity_MicrowaveEnergyTransmitter extends GT_MetaTileEnt for (byte j = -5; j <= 5; j = (byte) (j + 1)) { for (byte k = -5; k <= 5; k = (byte) (k + 1)) { if (getBaseMetaTileEntity().getBlockOffset(i, j, k) == GregTech_API.sBlockMetal5 - && getBaseMetaTileEntity().getMetaIDOffset(i, j, k) == 8) { // require osmiridium block + && getBaseMetaTileEntity().getMetaIDOffset(i, j, k) == 8) { // require osmiridium block return true; } } @@ -191,12 +189,12 @@ public class GT_MetaTileEntity_MicrowaveEnergyTransmitter extends GT_MetaTileEnt public boolean hasDimensionalTeleportCapability() { return this.mDebug || (sInterDimensionalTeleportAllowed && (this.hasBlock - || mFluid != null && mFluid.isFluidEqual(Materials.Nitrogen.getPlasma(1)) && mFluid.amount >= 1000)); + || mFluid != null && mFluid.isFluidEqual(Materials.Nitrogen.getPlasma(1)) && mFluid.amount >= 1000)); } public boolean isDimensionalTeleportAvailable() { return this.mDebug || (hasDimensionalTeleportCapability() && GT_Utility.isRealDimension(this.mTargetD) - && GT_Utility.isRealDimension(getBaseMetaTileEntity().getWorld().provider.dimensionId)); + && GT_Utility.isRealDimension(getBaseMetaTileEntity().getWorld().provider.dimensionId)); } @Override @@ -215,8 +213,8 @@ public class GT_MetaTileEntity_MicrowaveEnergyTransmitter extends GT_MetaTileEnt getBaseMetaTileEntity().decreaseStoredEnergyUnits(2L << (mTier - 1), false); } if (hasDimensionalTeleportCapability() - && this.mTargetD != getBaseMetaTileEntity().getWorld().provider.dimensionId - && mFluid.isFluidEqual(Materials.Nitrogen.getPlasma(1))) { + && this.mTargetD != getBaseMetaTileEntity().getWorld().provider.dimensionId + && mFluid.isFluidEqual(Materials.Nitrogen.getPlasma(1))) { mFluid.amount--; if (mFluid.amount < 1) { mFluid = null; @@ -248,8 +246,8 @@ public class GT_MetaTileEntity_MicrowaveEnergyTransmitter extends GT_MetaTileEnt } long energyUse = 10; if (mMaxLossDistance != 0) { - energyUse = GT_Utility.safeInt( - 10L + (tDistance * Math.max(mMaxLoss - 10L, 0) / mMaxLossDistance)); + energyUse = GT_Utility + .safeInt(10L + (tDistance * Math.max(mMaxLoss - 10L, 0) / mMaxLossDistance)); } energyUse = packetSize + ((V[mTier] * energyUse) / 100); if (getBaseMetaTileEntity().isUniversalEnergyStored(energyUse)) { @@ -269,12 +267,12 @@ public class GT_MetaTileEntity_MicrowaveEnergyTransmitter extends GT_MetaTileEnt private int distanceCalculation() { return Math.abs( - ((this.mTargetD != getBaseMetaTileEntity().getWorld().provider.dimensionId) - && (isDimensionalTeleportAvailable()) ? 100 : 1) - * (int) Math.sqrt( - Math.pow(getBaseMetaTileEntity().getXCoord() - this.mTargetX, 2.0D) - + Math.pow(getBaseMetaTileEntity().getYCoord() - this.mTargetY, 2.0D) - + Math.pow(getBaseMetaTileEntity().getZCoord() - this.mTargetZ, 2.0D))); + ((this.mTargetD != getBaseMetaTileEntity().getWorld().provider.dimensionId) + && (isDimensionalTeleportAvailable()) ? 100 : 1) + * (int) Math.sqrt( + Math.pow(getBaseMetaTileEntity().getXCoord() - this.mTargetX, 2.0D) + + Math.pow(getBaseMetaTileEntity().getYCoord() - this.mTargetY, 2.0D) + + Math.pow(getBaseMetaTileEntity().getZCoord() - this.mTargetZ, 2.0D))); } @Override @@ -415,32 +413,31 @@ public class GT_MetaTileEntity_MicrowaveEnergyTransmitter extends GT_MetaTileEnt @Override public void addUIWidgets(ModularWindow.Builder builder, UIBuildContext buildContext) { builder.widget( - new DrawableWidget().setDrawable(GT_UITextures.PICTURE_SCREEN_BLACK) - .setSize(90, 72) - .setPos(43, 4)) - .widget( - TextWidget.dynamicString(() -> "X: " + GT_Utility.parseNumberToString(mTargetX)) - .setDefaultColor(COLOR_TEXT_WHITE.get()) - .setPos(46, 8)) - .widget( - TextWidget.dynamicString(() -> "Y: " + GT_Utility.parseNumberToString(mTargetY)) - .setDefaultColor(COLOR_TEXT_WHITE.get()) - .setPos(46, 16)) - .widget( - TextWidget.dynamicString(() -> "Z: " + GT_Utility.parseNumberToString(mTargetZ)) - .setDefaultColor(COLOR_TEXT_WHITE.get()) - .setPos(46, 24)) - .widget( - TextWidget.dynamicString(() -> "Dim: " + GT_Utility.parseNumberToString(mTargetD)) - .setDefaultColor(COLOR_TEXT_WHITE.get()) - .setPos(46, 32)) - .widget( - TextWidget.dynamicString( - () -> "Dim Valid: " + (GT_Utility.isRealDimension(mTargetD) ? "Yes" : "No")) - .setDefaultColor(COLOR_TEXT_WHITE.get()) - .setEnabled(widget -> hasDimensionalTeleportCapability()) - .setPos(46, 40)) - .widget(new FakeSyncWidget.FluidStackSyncer(() -> mFluid, val -> mFluid = val)); + new DrawableWidget().setDrawable(GT_UITextures.PICTURE_SCREEN_BLACK) + .setSize(90, 72) + .setPos(43, 4)) + .widget( + TextWidget.dynamicString(() -> "X: " + GT_Utility.parseNumberToString(mTargetX)) + .setDefaultColor(COLOR_TEXT_WHITE.get()) + .setPos(46, 8)) + .widget( + TextWidget.dynamicString(() -> "Y: " + GT_Utility.parseNumberToString(mTargetY)) + .setDefaultColor(COLOR_TEXT_WHITE.get()) + .setPos(46, 16)) + .widget( + TextWidget.dynamicString(() -> "Z: " + GT_Utility.parseNumberToString(mTargetZ)) + .setDefaultColor(COLOR_TEXT_WHITE.get()) + .setPos(46, 24)) + .widget( + TextWidget.dynamicString(() -> "Dim: " + GT_Utility.parseNumberToString(mTargetD)) + .setDefaultColor(COLOR_TEXT_WHITE.get()) + .setPos(46, 32)) + .widget( + TextWidget.dynamicString(() -> "Dim Valid: " + (GT_Utility.isRealDimension(mTargetD) ? "Yes" : "No")) + .setDefaultColor(COLOR_TEXT_WHITE.get()) + .setEnabled(widget -> hasDimensionalTeleportCapability()) + .setPos(46, 40)) + .widget(new FakeSyncWidget.FluidStackSyncer(() -> mFluid, val -> mFluid = val)); addChangeNumberButtons(builder, GT_UITextures.OVERLAY_BUTTON_MINUS_LARGE, -512, -64, 7); addChangeNumberButtons(builder, GT_UITextures.OVERLAY_BUTTON_MINUS_SMALL, -16, -1, 25); @@ -448,40 +445,40 @@ public class GT_MetaTileEntity_MicrowaveEnergyTransmitter extends GT_MetaTileEnt addChangeNumberButtons(builder, GT_UITextures.OVERLAY_BUTTON_PLUS_LARGE, 512, 64, 151); addChangeNumberButton( - builder, - GT_UITextures.OVERLAY_BUTTON_MINUS_LARGE, - val -> mTargetD += val, - -16, - -8, - 7, - 58); + builder, + GT_UITextures.OVERLAY_BUTTON_MINUS_LARGE, + val -> mTargetD += val, + -16, + -8, + 7, + 58); addChangeNumberButton( - builder, - GT_UITextures.OVERLAY_BUTTON_MINUS_SMALL, - val -> mTargetD += val, - -4, - -1, - 25, - 58); + builder, + GT_UITextures.OVERLAY_BUTTON_MINUS_SMALL, + val -> mTargetD += val, + -4, + -1, + 25, + 58); addChangeNumberButton(builder, GT_UITextures.OVERLAY_BUTTON_PLUS_SMALL, val -> mTargetD += val, 4, 1, 133, 58); addChangeNumberButton(builder, GT_UITextures.OVERLAY_BUTTON_PLUS_LARGE, val -> mTargetD += val, 16, 8, 151, 58); } private void addChangeNumberButtons(ModularWindow.Builder builder, IDrawable overlay, int addNumberShift, - int addNumber, int xPos) { + int addNumber, int xPos) { addChangeNumberButton(builder, overlay, val -> mTargetX += val, addNumberShift, addNumber, xPos, 4); addChangeNumberButton(builder, overlay, val -> mTargetY += val, addNumberShift, addNumber, xPos, 22); addChangeNumberButton(builder, overlay, val -> mTargetZ += val, addNumberShift, addNumber, xPos, 40); } private void addChangeNumberButton(ModularWindow.Builder builder, IDrawable overlay, Consumer setter, - int addNumberShift, int addNumber, int xPos, int yPos) { + int addNumberShift, int addNumber, int xPos, int yPos) { builder.widget( - new ButtonWidget().setOnClick( - (clickData, widget) -> setter.accept(clickData.shift ? addNumberShift : addNumber)) - .setBackground(GT_UITextures.BUTTON_STANDARD, overlay) - .setSize(18, 18) - .setPos(xPos, yPos)); + new ButtonWidget() + .setOnClick((clickData, widget) -> setter.accept(clickData.shift ? addNumberShift : addNumber)) + .setBackground(GT_UITextures.BUTTON_STANDARD, overlay) + .setSize(18, 18) + .setPos(xPos, yPos)); } @Override @@ -492,8 +489,8 @@ public class GT_MetaTileEntity_MicrowaveEnergyTransmitter extends GT_MetaTileEnt @Override public void addGregTechLogo(ModularWindow.Builder builder) { builder.widget( - new DrawableWidget().setDrawable(getGUITextureSet().getGregTechLogo()) - .setSize(17, 17) - .setPos(113, 56)); + new DrawableWidget().setDrawable(getGUITextureSet().getGregTechLogo()) + .setSize(17, 17) + .setPos(113, 56)); } } diff --git a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Miner.java b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Miner.java index 8d605599e7..8186d716df 100644 --- a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Miner.java +++ b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Miner.java @@ -42,7 +42,7 @@ import gregtech.common.misc.GT_IDrillingLogicDelegateOwner; @SuppressWarnings("ObjectEquality") public class GT_MetaTileEntity_Miner extends GT_MetaTileEntity_BasicMachine - implements GT_IDrillingLogicDelegateOwner, IAddUIWidgets { + implements GT_IDrillingLogicDelegateOwner, IAddUIWidgets { static final int[] RADIUS = { 8, 8, 16, 24, 32 }; // Miner radius per tier static final int[] SPEED = { 160, 160, 80, 40, 20 }; // Miner cycle time per tier @@ -60,100 +60,81 @@ public class GT_MetaTileEntity_Miner extends GT_MetaTileEntity_BasicMachine public GT_MetaTileEntity_Miner(int aID, String aName, String aNameRegional, int aTier) { super( - aID, - aName, - aNameRegional, - aTier, - 1, - new String[] { "Digging ore instead of you", "Use Screwdriver to regulate work area", - "Use Soft Mallet to disable and retract the pipe", - String.format("%d EU/t, %d sec per block, no stuttering", ENERGY[aTier], SPEED[aTier] / 20), - String.format("Maximum work area %dx%d", (RADIUS[aTier] * 2 + 1), (RADIUS[aTier] * 2 + 1)), - String.format("Fortune bonus of %d", aTier) }, - 2, - 2, - "Miner.png", - "", - TextureFactory.of( - TextureFactory.of( - new Textures.BlockIcons.CustomIcon("basicmachines/miner/OVERLAY_SIDE_ACTIVE")), - TextureFactory.builder() - .addIcon( - new Textures.BlockIcons.CustomIcon( - "basicmachines/miner/OVERLAY_SIDE_ACTIVE_GLOW")) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(new Textures.BlockIcons.CustomIcon("basicmachines/miner/OVERLAY_SIDE")), - TextureFactory.builder() - .addIcon( - new Textures.BlockIcons.CustomIcon( - "basicmachines/miner/OVERLAY_SIDE_GLOW")) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of( - new Textures.BlockIcons.CustomIcon("basicmachines/miner/OVERLAY_FRONT_ACTIVE")), - TextureFactory.builder() - .addIcon( - new Textures.BlockIcons.CustomIcon( - "basicmachines/miner/OVERLAY_FRONT_ACTIVE_GLOW")) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(new Textures.BlockIcons.CustomIcon("basicmachines/miner/OVERLAY_FRONT")), - TextureFactory.builder() - .addIcon( - new Textures.BlockIcons.CustomIcon( - "basicmachines/miner/OVERLAY_FRONT_GLOW")) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(new Textures.BlockIcons.CustomIcon("basicmachines/miner/OVERLAY_TOP_ACTIVE")), - TextureFactory.builder() - .addIcon( - new Textures.BlockIcons.CustomIcon( - "basicmachines/miner/OVERLAY_TOP_ACTIVE_GLOW")) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(new Textures.BlockIcons.CustomIcon("basicmachines/miner/OVERLAY_TOP")), - TextureFactory.builder() - .addIcon( - new Textures.BlockIcons.CustomIcon( - "basicmachines/miner/OVERLAY_TOP_GLOW")) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of( - new Textures.BlockIcons.CustomIcon("basicmachines/miner/OVERLAY_BOTTOM_ACTIVE")), - TextureFactory.builder() - .addIcon( - new Textures.BlockIcons.CustomIcon( - "basicmachines/miner/OVERLAY_BOTTOM_ACTIVE_GLOW")) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(new Textures.BlockIcons.CustomIcon("basicmachines/miner/OVERLAY_BOTTOM")), - TextureFactory.builder() - .addIcon( - new Textures.BlockIcons.CustomIcon( - "basicmachines/miner/OVERLAY_BOTTOM_GLOW")) - .glow() - .build())); + aID, + aName, + aNameRegional, + aTier, + 1, + new String[] { "Digging ore instead of you", "Use Screwdriver to regulate work area", + "Use Soft Mallet to disable and retract the pipe", + String.format("%d EU/t, %d sec per block, no stuttering", ENERGY[aTier], SPEED[aTier] / 20), + String.format("Maximum work area %dx%d", (RADIUS[aTier] * 2 + 1), (RADIUS[aTier] * 2 + 1)), + String.format("Fortune bonus of %d", aTier) }, + 2, + 2, + "Miner.png", + "", + TextureFactory.of( + TextureFactory.of(new Textures.BlockIcons.CustomIcon("basicmachines/miner/OVERLAY_SIDE_ACTIVE")), + TextureFactory.builder() + .addIcon(new Textures.BlockIcons.CustomIcon("basicmachines/miner/OVERLAY_SIDE_ACTIVE_GLOW")) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(new Textures.BlockIcons.CustomIcon("basicmachines/miner/OVERLAY_SIDE")), + TextureFactory.builder() + .addIcon(new Textures.BlockIcons.CustomIcon("basicmachines/miner/OVERLAY_SIDE_GLOW")) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(new Textures.BlockIcons.CustomIcon("basicmachines/miner/OVERLAY_FRONT_ACTIVE")), + TextureFactory.builder() + .addIcon(new Textures.BlockIcons.CustomIcon("basicmachines/miner/OVERLAY_FRONT_ACTIVE_GLOW")) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(new Textures.BlockIcons.CustomIcon("basicmachines/miner/OVERLAY_FRONT")), + TextureFactory.builder() + .addIcon(new Textures.BlockIcons.CustomIcon("basicmachines/miner/OVERLAY_FRONT_GLOW")) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(new Textures.BlockIcons.CustomIcon("basicmachines/miner/OVERLAY_TOP_ACTIVE")), + TextureFactory.builder() + .addIcon(new Textures.BlockIcons.CustomIcon("basicmachines/miner/OVERLAY_TOP_ACTIVE_GLOW")) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(new Textures.BlockIcons.CustomIcon("basicmachines/miner/OVERLAY_TOP")), + TextureFactory.builder() + .addIcon(new Textures.BlockIcons.CustomIcon("basicmachines/miner/OVERLAY_TOP_GLOW")) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(new Textures.BlockIcons.CustomIcon("basicmachines/miner/OVERLAY_BOTTOM_ACTIVE")), + TextureFactory.builder() + .addIcon(new Textures.BlockIcons.CustomIcon("basicmachines/miner/OVERLAY_BOTTOM_ACTIVE_GLOW")) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(new Textures.BlockIcons.CustomIcon("basicmachines/miner/OVERLAY_BOTTOM")), + TextureFactory.builder() + .addIcon(new Textures.BlockIcons.CustomIcon("basicmachines/miner/OVERLAY_BOTTOM_GLOW")) + .glow() + .build())); mSpeed = SPEED[aTier]; radiusConfig = RADIUS[mTier]; } public GT_MetaTileEntity_Miner(String aName, int aTier, String aDescription, ITexture[][][] aTextures, - String aGUIName, String aNEIName) { + String aGUIName, String aNEIName) { super(aName, aTier, 1, aDescription, aTextures, 1, 1, aGUIName, aNEIName); mSpeed = SPEED[aTier]; radiusConfig = RADIUS[mTier]; } public GT_MetaTileEntity_Miner(String aName, int aTier, String[] aDescription, ITexture[][][] aTextures, - String aGUIName, String aNEIName) { + String aGUIName, String aNEIName) { super(aName, aTier, 1, aDescription, aTextures, 2, 2, aGUIName, aNEIName); mSpeed = SPEED[aTier]; radiusConfig = RADIUS[mTier]; @@ -172,9 +153,9 @@ public class GT_MetaTileEntity_Miner extends GT_MetaTileEntity_BasicMachine @Override protected boolean allowPutStackValidated(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, - ItemStack aStack) { + ItemStack aStack) { return super.allowPutStackValidated(aBaseMetaTileEntity, aIndex, aSide, aStack) // - && aStack.getItem() == GT_DrillingLogicDelegate.MINING_PIPE_STACK.getItem(); + && aStack.getItem() == GT_DrillingLogicDelegate.MINING_PIPE_STACK.getItem(); } /** Both output slots must be free to work */ @@ -208,12 +189,12 @@ public class GT_MetaTileEntity_Miner extends GT_MetaTileEntity_BasicMachine } GT_Utility.sendChatToPlayer( - aPlayer, - String.format( - "%s %dx%d", - StatCollector.translateToLocal("GT5U.machines.workareaset"), - (radiusConfig * 2 + 1), - (radiusConfig * 2 + 1))); + aPlayer, + String.format( + "%s %dx%d", + StatCollector.translateToLocal("GT5U.machines.workareaset"), + (radiusConfig * 2 + 1), + (radiusConfig * 2 + 1))); // Rebuild ore cache after change config fillOreList(getBaseMetaTileEntity()); @@ -251,9 +232,9 @@ public class GT_MetaTileEntity_Miner extends GT_MetaTileEntity_BasicMachine mMaxProgresstime = 0; if (debugBlockMiner) { GT_Log.out.println( - "MINER: Not enough energy yet, want " + (ENERGY[mTier] * mSpeed) - + " have " - + aBaseMetaTileEntity.getUniversalEnergyStored()); + "MINER: Not enough energy yet, want " + (ENERGY[mTier] * mSpeed) + + " have " + + aBaseMetaTileEntity.getUniversalEnergyStored()); } return; } @@ -283,17 +264,15 @@ public class GT_MetaTileEntity_Miner extends GT_MetaTileEntity_BasicMachine boolean isOre; do { ChunkPosition oreBlockPos = oreBlockPositions.remove(0); - oreBlock = aBaseMetaTileEntity.getBlockOffset( - oreBlockPos.chunkPosX, - oreBlockPos.chunkPosY, - oreBlockPos.chunkPosZ); + oreBlock = aBaseMetaTileEntity + .getBlockOffset(oreBlockPos.chunkPosX, oreBlockPos.chunkPosY, oreBlockPos.chunkPosZ); x = aBaseMetaTileEntity.getXCoord() + oreBlockPos.chunkPosX; y = aBaseMetaTileEntity.getYCoord() + oreBlockPos.chunkPosY; z = aBaseMetaTileEntity.getZCoord() + oreBlockPos.chunkPosZ; isOre = GT_Utility.isOre( - oreBlock, - aBaseMetaTileEntity.getWorld() - .getBlockMetadata(x, y, z)); + oreBlock, + aBaseMetaTileEntity.getWorld() + .getBlockMetadata(x, y, z)); } // someone else might have removed the block while (!isOre && !oreBlockPositions.isEmpty()); @@ -351,7 +330,7 @@ public class GT_MetaTileEntity_Miner extends GT_MetaTileEntity_BasicMachine @Override public boolean pushOutputs(ItemStack stack, int count, boolean simulate, boolean allowInputSlots) { return allowInputSlots && pushOutput(getInputSlot(), getInputSlot() + mInputSlotCount, stack, count, simulate) - || pushOutput(getOutputSlot(), getOutputSlot() + mOutputItems.length, stack, count, simulate); + || pushOutput(getOutputSlot(), getOutputSlot() + mOutputItems.length, stack, count, simulate); } private boolean pushOutput(int startIndex, int endIndex, ItemStack stack, int count, boolean simulate) { @@ -405,18 +384,18 @@ public class GT_MetaTileEntity_Miner extends GT_MetaTileEntity_BasicMachine @Override public String[] getInfoData() { return new String[] { - String.format( - "%s%s%s", - EnumChatFormatting.BLUE, - StatCollector.translateToLocal("GT5U.machines.miner"), - EnumChatFormatting.RESET), - String.format( - "%s: %s%d%s %s", - StatCollector.translateToLocal("GT5U.machines.workarea"), - EnumChatFormatting.GREEN, - (radiusConfig * 2 + 1), - EnumChatFormatting.RESET, - StatCollector.translateToLocal("GT5U.machines.blocks")) }; + String.format( + "%s%s%s", + EnumChatFormatting.BLUE, + StatCollector.translateToLocal("GT5U.machines.miner"), + EnumChatFormatting.RESET), + String.format( + "%s: %s%d%s %s", + StatCollector.translateToLocal("GT5U.machines.workarea"), + EnumChatFormatting.GREEN, + (radiusConfig * 2 + 1), + EnumChatFormatting.RESET, + StatCollector.translateToLocal("GT5U.machines.blocks")) }; } @Override @@ -461,18 +440,18 @@ public class GT_MetaTileEntity_Miner extends GT_MetaTileEntity_BasicMachine } private static final FallbackableUITexture progressBarTexture = new FallbackableUITexture( - UITexture.fullImage(GregTech.ID, "gui/progressbar/miner"), - GT_UITextures.PROGRESSBAR_CANNER); + UITexture.fullImage(GregTech.ID, "gui/progressbar/miner"), + GT_UITextures.PROGRESSBAR_CANNER); @Override public void addUIWidgets(ModularWindow.Builder builder, UIBuildContext buildContext) { super.addUIWidgets(builder, buildContext); builder.widget( - createProgressBar( - progressBarTexture.get(), - 20, - ProgressBar.Direction.RIGHT, - new Pos2d(78, 24), - new Size(20, 18))); + createProgressBar( + progressBarTexture.get(), + 20, + ProgressBar.Direction.RIGHT, + new Pos2d(78, 24), + new Size(20, 18))); } } diff --git a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_MonsterRepellent.java b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_MonsterRepellent.java index 7a786228e4..7306e89986 100644 --- a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_MonsterRepellent.java +++ b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_MonsterRepellent.java @@ -26,65 +26,65 @@ public class GT_MetaTileEntity_MonsterRepellent extends GT_MetaTileEntity_Tiered public GT_MetaTileEntity_MonsterRepellent(int aID, String aName, String aNameRegional, int aTier) { super( - aID, - aName, - aNameRegional, - aTier, - 0, - "Repels nasty Creatures. Range: " + (4 + (12 * aTier)) - + " unpowered / " - + (16 + (48 * aTier)) - + " powered. Costs " - + (1L << (aTier * 2)) - + " EU/t"); + aID, + aName, + aNameRegional, + aTier, + 0, + "Repels nasty Creatures. Range: " + (4 + (12 * aTier)) + + " unpowered / " + + (16 + (48 * aTier)) + + " powered. Costs " + + (1L << (aTier * 2)) + + " EU/t"); } public GT_MetaTileEntity_MonsterRepellent(String aName, int aTier, int aInvSlotCount, String aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, aInvSlotCount, aDescription, aTextures); } public GT_MetaTileEntity_MonsterRepellent(String aName, int aTier, int aInvSlotCount, String[] aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, aInvSlotCount, aDescription, aTextures); } @Override public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) { return new GT_MetaTileEntity_MonsterRepellent( - this.mName, - this.mTier, - this.mInventory.length, - this.mDescriptionArray, - this.mTextures); + this.mName, + this.mTier, + this.mInventory.length, + this.mDescriptionArray, + this.mTextures); } @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { if (aSide != ForgeDirection.UP.ordinal()) return new ITexture[] { MACHINE_CASINGS[mTier][aColorIndex + 1] }; if (aActive) return new ITexture[] { MACHINE_CASINGS[mTier][aColorIndex + 1], - TextureFactory.of(OVERLAY_TELEPORTER_ACTIVE), TextureFactory.builder() - .addIcon(OVERLAY_TELEPORTER_ACTIVE_GLOW) - .glow() - .build() }; + TextureFactory.of(OVERLAY_TELEPORTER_ACTIVE), TextureFactory.builder() + .addIcon(OVERLAY_TELEPORTER_ACTIVE_GLOW) + .glow() + .build() }; return new ITexture[] { MACHINE_CASINGS[mTier][aColorIndex + 1], TextureFactory.of(OVERLAY_TELEPORTER), - TextureFactory.builder() - .addIcon(OVERLAY_TELEPORTER_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(OVERLAY_TELEPORTER_GLOW) + .glow() + .build() }; } @Override public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTimer) { if (aBaseMetaTileEntity.isAllowedToWork() && aBaseMetaTileEntity.isServerSide()) { int[] tCoords = { aBaseMetaTileEntity.getXCoord(), aBaseMetaTileEntity.getYCoord(), - aBaseMetaTileEntity.getZCoord(), aBaseMetaTileEntity.getWorld().provider.dimensionId }; + aBaseMetaTileEntity.getZCoord(), aBaseMetaTileEntity.getWorld().provider.dimensionId }; if ((aTimer % 600 == 0) && !GT_SpawnEventHandler.mobReps.contains(tCoords)) { GT_SpawnEventHandler.mobReps.add(tCoords); } if (aBaseMetaTileEntity.isUniversalEnergyStored(getMinimumStoredEU()) - && aBaseMetaTileEntity.decreaseStoredEnergyUnits(1L << (this.mTier * 2), false)) { + && aBaseMetaTileEntity.decreaseStoredEnergyUnits(1L << (this.mTier * 2), false)) { mRange = GT_SpawnEventHandler.getPoweredRepellentRange(mTier); } else { mRange = GT_SpawnEventHandler.getUnpoweredRepellentRange(mTier); @@ -95,20 +95,20 @@ public class GT_MetaTileEntity_MonsterRepellent extends GT_MetaTileEntity_Tiered @Override public void onFirstTick(IGregTechTileEntity aBaseMetaTileEntity) { int[] tCoords = { aBaseMetaTileEntity.getXCoord(), aBaseMetaTileEntity.getYCoord(), - aBaseMetaTileEntity.getZCoord(), aBaseMetaTileEntity.getWorld().provider.dimensionId }; + aBaseMetaTileEntity.getZCoord(), aBaseMetaTileEntity.getWorld().provider.dimensionId }; GT_SpawnEventHandler.mobReps.add(tCoords); } @Override public void onRemoval() { int[] tCoords = { this.getBaseMetaTileEntity() - .getXCoord(), - this.getBaseMetaTileEntity() - .getYCoord(), - this.getBaseMetaTileEntity() - .getZCoord(), - this.getBaseMetaTileEntity() - .getWorld().provider.dimensionId }; + .getXCoord(), + this.getBaseMetaTileEntity() + .getYCoord(), + this.getBaseMetaTileEntity() + .getZCoord(), + this.getBaseMetaTileEntity() + .getWorld().provider.dimensionId }; GT_SpawnEventHandler.mobReps.removeIf(coords -> Arrays.equals(coords, tCoords)); } diff --git a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_PotionBrewer.java b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_PotionBrewer.java index bae01940f9..ad73047507 100644 --- a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_PotionBrewer.java +++ b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_PotionBrewer.java @@ -22,85 +22,85 @@ public class GT_MetaTileEntity_PotionBrewer extends GT_MetaTileEntity_BasicMachi public GT_MetaTileEntity_PotionBrewer(int aID, String aName, String aNameRegional, int aTier) { super( - aID, - aName, - aNameRegional, - aTier, - 1, - "Brewing your Drinks", - 1, - 0, - "PotionBrewer.png", - "", - TextureFactory.of( - TextureFactory.of(OVERLAY_SIDE_POTIONBREWER_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_SIDE_POTIONBREWER_ACTIVE_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_SIDE_POTIONBREWER), - TextureFactory.builder() - .addIcon(OVERLAY_SIDE_POTIONBREWER_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_FRONT_POTIONBREWER_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_POTIONBREWER_ACTIVE_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_FRONT_POTIONBREWER), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_POTIONBREWER_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_TOP_POTIONBREWER_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_TOP_POTIONBREWER_ACTIVE_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_TOP_POTIONBREWER), - TextureFactory.builder() - .addIcon(OVERLAY_TOP_POTIONBREWER_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_BOTTOM_POTIONBREWER_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_BOTTOM_POTIONBREWER_ACTIVE_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_BOTTOM_POTIONBREWER), - TextureFactory.builder() - .addIcon(OVERLAY_BOTTOM_POTIONBREWER_GLOW) - .glow() - .build())); + aID, + aName, + aNameRegional, + aTier, + 1, + "Brewing your Drinks", + 1, + 0, + "PotionBrewer.png", + "", + TextureFactory.of( + TextureFactory.of(OVERLAY_SIDE_POTIONBREWER_ACTIVE), + TextureFactory.builder() + .addIcon(OVERLAY_SIDE_POTIONBREWER_ACTIVE_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_SIDE_POTIONBREWER), + TextureFactory.builder() + .addIcon(OVERLAY_SIDE_POTIONBREWER_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_FRONT_POTIONBREWER_ACTIVE), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_POTIONBREWER_ACTIVE_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_FRONT_POTIONBREWER), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_POTIONBREWER_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_TOP_POTIONBREWER_ACTIVE), + TextureFactory.builder() + .addIcon(OVERLAY_TOP_POTIONBREWER_ACTIVE_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_TOP_POTIONBREWER), + TextureFactory.builder() + .addIcon(OVERLAY_TOP_POTIONBREWER_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_BOTTOM_POTIONBREWER_ACTIVE), + TextureFactory.builder() + .addIcon(OVERLAY_BOTTOM_POTIONBREWER_ACTIVE_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_BOTTOM_POTIONBREWER), + TextureFactory.builder() + .addIcon(OVERLAY_BOTTOM_POTIONBREWER_GLOW) + .glow() + .build())); } public GT_MetaTileEntity_PotionBrewer(String aName, int aTier, String aDescription, ITexture[][][] aTextures, - String aGUIName, String aNEIName) { + String aGUIName, String aNEIName) { super(aName, aTier, 1, aDescription, aTextures, 1, 0, aGUIName, aNEIName); } public GT_MetaTileEntity_PotionBrewer(String aName, int aTier, String[] aDescription, ITexture[][][] aTextures, - String aGUIName, String aNEIName) { + String aGUIName, String aNEIName) { super(aName, aTier, 1, aDescription, aTextures, 1, 0, aGUIName, aNEIName); } @Override public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) { return new GT_MetaTileEntity_PotionBrewer( - this.mName, - this.mTier, - this.mDescriptionArray, - this.mTextures, - this.mGUIName, - this.mNEIName); + this.mName, + this.mTier, + this.mDescriptionArray, + this.mTextures, + this.mGUIName, + this.mNEIName); } @Override @@ -123,7 +123,7 @@ public class GT_MetaTileEntity_PotionBrewer extends GT_MetaTileEntity_BasicMachi FluidStack aFluid = getFillableStack(); if ((getDrainableStack() == null) && (aFluid != null) && (getInputAt(0) != null)) { String tInputName = aFluid.getFluid() - .getName(); + .getName(); if (tInputName.startsWith("potion.")) { tInputName = tInputName.replaceFirst("potion.", ""); int tFirstDot = tInputName.indexOf('.') + 1; @@ -159,11 +159,11 @@ public class GT_MetaTileEntity_PotionBrewer extends GT_MetaTileEntity_BasicMachi return setOutput("potion.weakness"); } if (GT_Utility.areStacksEqual( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glowstone, 1L), - getInputAt(0))) { + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glowstone, 1L), + getInputAt(0))) { if (!tModifier.startsWith("strong")) { return setOutput( - "potion." + tInputName + ".strong" + (tModifier.isEmpty() ? "" : "." + tModifier)); + "potion." + tInputName + ".strong" + (tModifier.isEmpty() ? "" : "." + tModifier)); } if (tModifier.startsWith("long")) { return setOutput("potion." + tInputName + tModifier.replaceFirst("long", "")); @@ -171,11 +171,11 @@ public class GT_MetaTileEntity_PotionBrewer extends GT_MetaTileEntity_BasicMachi return setOutput("potion.thick"); } if (GT_Utility.areStacksEqual( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1L), - getInputAt(0))) { + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1L), + getInputAt(0))) { if (!tModifier.startsWith("long")) { return setOutput( - "potion." + tInputName + ".long" + (tModifier.isEmpty() ? "" : "." + tModifier)); + "potion." + tInputName + ".long" + (tModifier.isEmpty() ? "" : "." + tModifier)); } if (tModifier.startsWith("strong")) { return setOutput("potion." + tInputName + tModifier.replaceFirst("strong", "")); @@ -183,8 +183,8 @@ public class GT_MetaTileEntity_PotionBrewer extends GT_MetaTileEntity_BasicMachi return setOutput("potion.mundane"); } if (GT_Utility.areStacksEqual( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gunpowder, 1L), - getInputAt(0))) { + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gunpowder, 1L), + getInputAt(0))) { if (!tInputName.endsWith(".splash")) { return setOutput("potion." + tInputName + ".splash"); } @@ -212,17 +212,16 @@ public class GT_MetaTileEntity_PotionBrewer extends GT_MetaTileEntity_BasicMachi @Override public boolean allowPutStackValidated(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, - ItemStack aStack) { + ItemStack aStack) { return super.allowPutStackValidated(aBaseMetaTileEntity, aIndex, aSide, aStack) - && getRecipeList().containsInput(aStack); + && getRecipeList().containsInput(aStack); } @Override public boolean isFluidInputAllowed(FluidStack aFluid) { return (aFluid.getFluid() - .getName() - .startsWith("potion.")) - || (super.isFluidInputAllowed(aFluid)); + .getName() + .startsWith("potion.")) || (super.isFluidInputAllowed(aFluid)); } @Override diff --git a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Printer.java b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Printer.java index 444121cc79..b0ffcaedcc 100644 --- a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Printer.java +++ b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Printer.java @@ -17,20 +17,20 @@ public class GT_MetaTileEntity_Printer extends GT_MetaTileEntity_BasicMachine { public GT_MetaTileEntity_Printer(int aID, String aName, String aNameRegional, int aTier) { super( - aID, - aName, - aNameRegional, - aTier, - 1, - "It can copy Books and paint Stuff", - 1, - 1, - "Printer.png", - GT_Recipe.GT_Recipe_Map.sPrinterRecipes.mNEIName); + aID, + aName, + aNameRegional, + aTier, + 1, + "It can copy Books and paint Stuff", + 1, + 1, + "Printer.png", + GT_Recipe.GT_Recipe_Map.sPrinterRecipes.mNEIName); } public GT_MetaTileEntity_Printer(String aName, int aTier, String aDescription, ITexture[][][] aTextures, - String aGUIName, String aNEIName) { + String aGUIName, String aNEIName) { super(aName, aTier, 1, aDescription, aTextures, 2, 2, aGUIName, aNEIName); } @@ -39,26 +39,26 @@ public class GT_MetaTileEntity_Printer extends GT_MetaTileEntity_BasicMachine { if (getOutputAt(0) != null) { this.mOutputBlocked += 1; } else if ((GT_Utility.isStackValid(getInputAt(0))) && (getInputAt(0).stackSize > 0) - && (GT_Utility.isStackInvalid(getSpecialSlot())) - && (OrePrefixes.block.contains(getInputAt(0)))) { - ArrayList tList = GT_OreDictUnificator.getOres( - GT_OreDictUnificator.getAssociation(getInputAt(0))); - if (tList.size() > 1) { - tList.add(tList.get(0)); - int i = 0; - for (int j = tList.size() - 1; i < j; i++) { - if (GT_Utility.areStacksEqual(getInputAt(0), tList.get(i))) { - this.mOutputItems[0] = GT_Utility.copyAmount(1L, tList.get(i + 1)); - calculateOverclockedNess(1, 32); - // In case recipe is too OP for that machine - if (mMaxProgresstime == Integer.MAX_VALUE - 1 && mEUt == Integer.MAX_VALUE - 1) - return FOUND_RECIPE_BUT_DID_NOT_MEET_REQUIREMENTS; - getInputAt(0).stackSize -= 1; - return 2; - } + && (GT_Utility.isStackInvalid(getSpecialSlot())) + && (OrePrefixes.block.contains(getInputAt(0)))) { + ArrayList tList = GT_OreDictUnificator + .getOres(GT_OreDictUnificator.getAssociation(getInputAt(0))); + if (tList.size() > 1) { + tList.add(tList.get(0)); + int i = 0; + for (int j = tList.size() - 1; i < j; i++) { + if (GT_Utility.areStacksEqual(getInputAt(0), tList.get(i))) { + this.mOutputItems[0] = GT_Utility.copyAmount(1L, tList.get(i + 1)); + calculateOverclockedNess(1, 32); + // In case recipe is too OP for that machine + if (mMaxProgresstime == Integer.MAX_VALUE - 1 && mEUt == Integer.MAX_VALUE - 1) + return FOUND_RECIPE_BUT_DID_NOT_MEET_REQUIREMENTS; + getInputAt(0).stackSize -= 1; + return 2; } } } + } this.mMaxProgresstime = 0; return 0; } diff --git a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Pump.java b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Pump.java index db9aedb9eb..db0a889205 100644 --- a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Pump.java +++ b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Pump.java @@ -39,8 +39,8 @@ public class GT_MetaTileEntity_Pump extends GT_MetaTileEntity_Hatch { private static final ItemStack MINING_PIPE = GT_ModHandler.getIC2Item("miningPipe", 0); private static final Block MINING_PIPE_BLOCK = GT_Utility.getBlockFromStack(MINING_PIPE); - private static final Block MINING_PIPE_TIP_BLOCK = GT_Utility.getBlockFromStack( - GT_ModHandler.getIC2Item("miningPipeTip", 0)); + private static final Block MINING_PIPE_TIP_BLOCK = GT_Utility + .getBlockFromStack(GT_ModHandler.getIC2Item("miningPipeTip", 0)); public static int getMaxDistanceForTier(int aTier) { return (10 * ((int) Math.pow(1.6D, aTier))); @@ -64,21 +64,21 @@ public class GT_MetaTileEntity_Pump extends GT_MetaTileEntity_Hatch { public GT_MetaTileEntity_Pump(int aID, String aName, String aNameRegional, int aTier) { super( - aID, - aName, - aNameRegional, - aTier, - 3, - new String[] { "The best way to empty Oceans! Outputs on top", - getEuUsagePerTier(aTier) + " EU/operation, " - + GT_Utility.safeInt(160 / 20 / (long) Math.pow(2, aTier)) - + " sec per bucket, no stuttering", - "Maximum pumping area: " + (getMaxDistanceForTier(aTier) * 2 + 1) - + "x" - + (getMaxDistanceForTier(aTier) * 2 + 1), - "Use Screwdriver to regulate pumping area", "Use Soft Mallet to disable and retract the pipe", - "Disable the bottom pump to retract the pipe!", - "Use Soldering Iron to auto retract the pipe when hitting a rock", }); + aID, + aName, + aNameRegional, + aTier, + 3, + new String[] { "The best way to empty Oceans! Outputs on top", + getEuUsagePerTier(aTier) + " EU/operation, " + + GT_Utility.safeInt(160 / 20 / (long) Math.pow(2, aTier)) + + " sec per bucket, no stuttering", + "Maximum pumping area: " + (getMaxDistanceForTier(aTier) * 2 + 1) + + "x" + + (getMaxDistanceForTier(aTier) * 2 + 1), + "Use Screwdriver to regulate pumping area", "Use Soft Mallet to disable and retract the pipe", + "Disable the bottom pump to retract the pipe!", + "Use Soldering Iron to auto retract the pipe when hitting a rock", }); radiusConfig = getMaxDistanceForTier(mTier); } @@ -102,21 +102,20 @@ public class GT_MetaTileEntity_Pump extends GT_MetaTileEntity_Hatch { boolean wasPumping = this.wasPumping || !this.mPumpList.isEmpty(); if (debugBlockPump) { GT_Log.out.println( - "PUMP: NBT:Save - WasPumping - " + wasPumping - + " blocks (" - + this.mPrimaryPumpedBlock - + ", " - + this.mSecondaryPumpedBlock - + ")"); + "PUMP: NBT:Save - WasPumping - " + wasPumping + + " blocks (" + + this.mPrimaryPumpedBlock + + ", " + + this.mSecondaryPumpedBlock + + ")"); } super.saveNBTData(aNBT); aNBT.setString( - "mPumpedBlock1", - this.mPrimaryPumpedBlock == null ? "" : Block.blockRegistry.getNameForObject(this.mPrimaryPumpedBlock)); + "mPumpedBlock1", + this.mPrimaryPumpedBlock == null ? "" : Block.blockRegistry.getNameForObject(this.mPrimaryPumpedBlock)); aNBT.setString( - "mPumpedBlock2", - this.mSecondaryPumpedBlock == null ? "" - : Block.blockRegistry.getNameForObject(this.mSecondaryPumpedBlock)); + "mPumpedBlock2", + this.mSecondaryPumpedBlock == null ? "" : Block.blockRegistry.getNameForObject(this.mSecondaryPumpedBlock)); aNBT.setBoolean("wasPumping", wasPumping); aNBT.setInteger("radiusConfig", radiusConfig); aNBT.setBoolean("mRetractDone", mRetractDone); @@ -135,11 +134,11 @@ public class GT_MetaTileEntity_Pump extends GT_MetaTileEntity_Hatch { if (debugBlockPump) { GT_Log.out.println( - "PUMP: NBT:Load - WasPumping - " + this.wasPumping - + "(" - + aNBT.getString("mPumpedBlock1") - + ") " - + this.mPrimaryPumpedBlock); + "PUMP: NBT:Load - WasPumping - " + this.wasPumping + + "(" + + aNBT.getString("mPumpedBlock1") + + ") " + + this.mPrimaryPumpedBlock); } } @@ -166,24 +165,24 @@ public class GT_MetaTileEntity_Pump extends GT_MetaTileEntity_Hatch { if (radiusConfig > max) radiusConfig = 0; } GT_Utility.sendChatToPlayer( - aPlayer, - StatCollector.translateToLocal("GT5U.machines.workareaset") + " " - + (radiusConfig * 2 + 1) - + "x" - + (radiusConfig * 2 + 1)); // TODO Add translation support + aPlayer, + StatCollector.translateToLocal("GT5U.machines.workareaset") + " " + + (radiusConfig * 2 + 1) + + "x" + + (radiusConfig * 2 + 1)); // TODO Add translation support clearQueue(false); } @Override public boolean onSolderingToolRightClick(byte aSide, byte aWrenchingSide, EntityPlayer aPlayer, float aX, float aY, - float aZ) { + float aZ) { if (super.onSolderingToolRightClick(aSide, aWrenchingSide, aPlayer, aX, aY, aZ)) return true; mDisallowRetract = !mDisallowRetract; GT_Utility.sendChatToPlayer( - aPlayer, - StatCollector.translateToLocal( - mDisallowRetract ? "GT5U.machines.autoretract.disabled" : "GT5U.machines.autoretract.enabled")); + aPlayer, + StatCollector.translateToLocal( + mDisallowRetract ? "GT5U.machines.autoretract.disabled" : "GT5U.machines.autoretract.enabled")); return true; } @@ -235,9 +234,9 @@ public class GT_MetaTileEntity_Pump extends GT_MetaTileEntity_Hatch { IGregTechTileEntity tTileEntity; for (int i = 1; (i < 21) - && ((tTileEntity = getBaseMetaTileEntity().getIGregTechTileEntityAtSideAndDistance((byte) 0, i)) - != null) - && ((tTileEntity.getMetaTileEntity() instanceof GT_MetaTileEntity_Pump)); i++) { + && ((tTileEntity = getBaseMetaTileEntity().getIGregTechTileEntityAtSideAndDistance((byte) 0, i)) + != null) + && ((tTileEntity.getMetaTileEntity() instanceof GT_MetaTileEntity_Pump)); i++) { // Apparently someone might stack 21 pumps on top of each other, so let's check for that getBaseMetaTileEntity().setActive(tTileEntity.isActive()); this.mPumpCountBelow += 1; @@ -252,16 +251,16 @@ public class GT_MetaTileEntity_Pump extends GT_MetaTileEntity_Hatch { if (getBaseMetaTileEntity().isAllowedToWork()) { mRetractDone = false; if ((getBaseMetaTileEntity().isUniversalEnergyStored(this.getEuUsagePerAction())) - && ((this.mFluid == null) || (this.mFluid.amount + 1000 <= getCapacity()))) { + && ((this.mFluid == null) || (this.mFluid.amount + 1000 <= getCapacity()))) { boolean tMovedOneDown = false; if ((this.mPumpList.isEmpty()) && (getBaseMetaTileEntity().getTimer() % 100L == 0L)) { if (!this.wasPumping) { tMovedOneDown = moveOneDown(); if (!tMovedOneDown) { if (canMoveDown( - getBaseMetaTileEntity().getXCoord(), - Math.max(getYOfPumpHead() - 1, 1), - getBaseMetaTileEntity().getZCoord())) { + getBaseMetaTileEntity().getXCoord(), + Math.max(getYOfPumpHead() - 1, 1), + getBaseMetaTileEntity().getZCoord())) { if (debugBlockPump) { GT_Log.out.println("PUMP: No pipe left. Idle for a little longer."); } @@ -287,11 +286,11 @@ public class GT_MetaTileEntity_Pump extends GT_MetaTileEntity_Hatch { if (debugBlockPump && this.mPrimaryPumpedBlock != null) { GT_Log.out.println( - "PUMP: Had an invalid pump block. Trying to find a fluid at Y: " + y - + " Previous blocks 1: " - + this.mPrimaryPumpedBlock - + " 2: " - + this.mSecondaryPumpedBlock); + "PUMP: Had an invalid pump block. Trying to find a fluid at Y: " + y + + " Previous blocks 1: " + + this.mPrimaryPumpedBlock + + " 2: " + + this.mSecondaryPumpedBlock); } // First look down checkForFluidToPump(x, y - 1, z); @@ -311,9 +310,8 @@ public class GT_MetaTileEntity_Pump extends GT_MetaTileEntity_Hatch { } else if (getYOfPumpHead() < getBaseMetaTileEntity().getYCoord()) { // We didn't just look for a block, and the pump head is below the pump if ((tMovedOneDown) || this.wasPumping - || ((this.mPumpList.isEmpty()) - && (getBaseMetaTileEntity().getTimer() % 200L == 100L)) - || (getBaseMetaTileEntity().getTimer() % 72000L == 100L)) { + || ((this.mPumpList.isEmpty()) && (getBaseMetaTileEntity().getTimer() % 200L == 100L)) + || (getBaseMetaTileEntity().getTimer() % 72000L == 100L)) { // Rebuild the list to pump if any of the following conditions are true: // 1) We just moved down // 2) We were previously pumping (and possibly just reloaded) @@ -321,11 +319,11 @@ public class GT_MetaTileEntity_Pump extends GT_MetaTileEntity_Hatch { // 4) A long while has passed if (debugBlockPump) { GT_Log.out.println( - "PUMP: Rebuilding pump list - Size " + this.mPumpList.size() - + " WasPumping: " - + this.wasPumping - + " Timer " - + getBaseMetaTileEntity().getTimer()); + "PUMP: Rebuilding pump list - Size " + this.mPumpList.size() + + " WasPumping: " + + this.wasPumping + + " Timer " + + getBaseMetaTileEntity().getTimer()); } int yPump = getBaseMetaTileEntity().getYCoord() - 1, yHead = getYOfPumpHead(); @@ -357,29 +355,27 @@ public class GT_MetaTileEntity_Pump extends GT_MetaTileEntity_Hatch { } } else { if (!mRetractDone && ((aTick % 5) == 0) - && ((this.mInventory[0] == null) || this.mInventory[0].stackSize == 0 - || (GT_Utility.areStacksEqual(this.mInventory[0], MINING_PIPE) - && (this.mInventory[0].stackSize - < this.mInventory[0].getMaxStackSize())))) { + && ((this.mInventory[0] == null) || this.mInventory[0].stackSize == 0 + || (GT_Utility.areStacksEqual(this.mInventory[0], MINING_PIPE) + && (this.mInventory[0].stackSize < this.mInventory[0].getMaxStackSize())))) { // try retract if all of these conditions are met // 1. not retracted yet // 2. once per 5 tick // 3. can hold retracted pipe in inventory int tHeadY = getYOfPumpHead(); if (tHeadY < this.getBaseMetaTileEntity() - .getYCoord()) { + .getYCoord()) { final int tXCoord = this.getBaseMetaTileEntity() - .getXCoord(); + .getXCoord(); final int tZCoord = this.getBaseMetaTileEntity() - .getZCoord(); + .getZCoord(); this.getBaseMetaTileEntity() .getWorld() .setBlockToAir(tXCoord, tHeadY, tZCoord); if (tHeadY < this.getBaseMetaTileEntity() - .getYCoord() - - 1) { + .getYCoord() - 1) { getBaseMetaTileEntity().getWorld() - .setBlock(tXCoord, tHeadY + 1, tZCoord, MINING_PIPE_TIP_BLOCK); + .setBlock(tXCoord, tHeadY + 1, tZCoord, MINING_PIPE_TIP_BLOCK); } if (this.mInventory[0] == null) { final ItemStack copy = MINING_PIPE.copy(); @@ -430,7 +426,7 @@ public class GT_MetaTileEntity_Pump extends GT_MetaTileEntity_Hatch { private boolean moveOneDown() { if ((this.mInventory[0] == null) || (this.mInventory[0].stackSize < 1) - || (!GT_Utility.areStacksEqual(this.mInventory[0], MINING_PIPE))) { + || (!GT_Utility.areStacksEqual(this.mInventory[0], MINING_PIPE))) { // No mining pipes if (debugBlockPump) { GT_Log.out.println("PUMP: No mining pipes"); @@ -450,11 +446,7 @@ public class GT_MetaTileEntity_Pump extends GT_MetaTileEntity_Hatch { int x = getBaseMetaTileEntity().getXCoord(), z = getBaseMetaTileEntity().getZCoord(); if ((!consumeFluid(x, yHead - 1, z)) && (!getBaseMetaTileEntity().getBlock(x, yHead - 1, z) - .isAir( - getBaseMetaTileEntity().getWorld(), - x, - yHead - 1, - z))) { + .isAir(getBaseMetaTileEntity().getWorld(), x, yHead - 1, z))) { // Either we didn't consume a fluid, or it's a non Air block if (debugBlockPump) { GT_Log.out.println("PUMP: Did not consume fluid, or non-airblock found"); @@ -463,13 +455,13 @@ public class GT_MetaTileEntity_Pump extends GT_MetaTileEntity_Hatch { } // Try to set the block below us to a tip if (!GT_Utility.setBlockByFakePlayer( - getFakePlayer(getBaseMetaTileEntity()), - x, - yHead - 1, - z, - MINING_PIPE_TIP_BLOCK, - 0, - false)) { + getFakePlayer(getBaseMetaTileEntity()), + x, + yHead - 1, + z, + MINING_PIPE_TIP_BLOCK, + 0, + false)) { if (debugBlockPump) { GT_Log.out.println("PUMP: Could not set block below to new tip"); } @@ -478,7 +470,7 @@ public class GT_MetaTileEntity_Pump extends GT_MetaTileEntity_Hatch { // And change the previous block to a pipe -- as long as it isn't the pump itself! if (yHead != getBaseMetaTileEntity().getYCoord()) { getBaseMetaTileEntity().getWorld() - .setBlock(x, yHead, z, MINING_PIPE_BLOCK); + .setBlock(x, yHead, z, MINING_PIPE_BLOCK); } getBaseMetaTileEntity().decrStackSize(0, 1); if (debugBlockPump) { @@ -492,7 +484,7 @@ public class GT_MetaTileEntity_Pump extends GT_MetaTileEntity_Hatch { // TODO: Handle pipe|pipe|head|pipe|pipe int y = getBaseMetaTileEntity().getYCoord() - 1, x = getBaseMetaTileEntity().getXCoord(), - z = getBaseMetaTileEntity().getZCoord(); + z = getBaseMetaTileEntity().getZCoord(); while (y > 0) { Block curBlock = getBaseMetaTileEntity().getBlock(x, y, z); @@ -504,7 +496,7 @@ public class GT_MetaTileEntity_Pump extends GT_MetaTileEntity_Hatch { // We're running into an existing set of pipes -- Turn this block into a pipe and keep going this.clearQueue(true); getBaseMetaTileEntity().getWorld() - .setBlock(x, y, z, MINING_PIPE_BLOCK); + .setBlock(x, y, z, MINING_PIPE_BLOCK); if (debugBlockPump) { GT_Log.out.println("PUMP: Hit pipes already in place, trying to merge"); } @@ -518,12 +510,12 @@ public class GT_MetaTileEntity_Pump extends GT_MetaTileEntity_Hatch { if (getBaseMetaTileEntity().getBlock(x, y, z) != MINING_PIPE_TIP_BLOCK) { if (y != getBaseMetaTileEntity().getYCoord() - 1 - && getBaseMetaTileEntity().getBlock(x, y + 1, z) == MINING_PIPE_BLOCK) { + && getBaseMetaTileEntity().getBlock(x, y + 1, z) == MINING_PIPE_BLOCK) { // We're below the pump at the bottom of the pipes, we haven't found a tip; make the previous pipe a // tip! this.clearQueue(true); getBaseMetaTileEntity().getWorld() - .setBlock(x, y + 1, z, MINING_PIPE_TIP_BLOCK); + .setBlock(x, y + 1, z, MINING_PIPE_TIP_BLOCK); if (debugBlockPump) { GT_Log.out.println("PUMP: Did not find a tip at bottom, setting last pipe as tip"); } @@ -582,7 +574,7 @@ public class GT_MetaTileEntity_Pump extends GT_MetaTileEntity_Hatch { } private boolean queueFluid(int aX, int aY, int aZ, ArrayDeque fluidsFound, - Set checked) { + Set checked) { // If we haven't already looked at this coordinate set, and it's not already in the list of fluids found, see if // there is // a valid fluid and add it to the fluids found @@ -630,10 +622,10 @@ public class GT_MetaTileEntity_Pump extends GT_MetaTileEntity_Hatch { Block aBlock = getBaseMetaTileEntity().getBlock(aX, aY, aZ); return aBlock != null && (aBlock == Blocks.water || aBlock == Blocks.flowing_water - || aBlock == Blocks.lava - || aBlock == Blocks.flowing_lava - || aBlock instanceof IFluidBlock - || aBlock.isAir(getBaseMetaTileEntity().getWorld(), aX, aY, aZ)); + || aBlock == Blocks.lava + || aBlock == Blocks.flowing_lava + || aBlock instanceof IFluidBlock + || aBlock.isAir(getBaseMetaTileEntity().getWorld(), aX, aY, aZ)); } private boolean consumeFluid(int aX, int aY, int aZ) { @@ -645,7 +637,7 @@ public class GT_MetaTileEntity_Pump extends GT_MetaTileEntity_Hatch { if (aBlock != null && ((this.mPrimaryPumpedBlock == aBlock) || (this.mSecondaryPumpedBlock == aBlock))) { boolean isWaterOrLava = ((this.mPrimaryPumpedBlock == Blocks.water - || this.mPrimaryPumpedBlock == Blocks.lava)); + || this.mPrimaryPumpedBlock == Blocks.lava)); if (isWaterOrLava && getBaseMetaTileEntity().getMetaID(aX, aY, aZ) != 0) { // Water/Lava that isn't a source block - do nothing here, but set the block to air and consume energy @@ -662,27 +654,27 @@ public class GT_MetaTileEntity_Pump extends GT_MetaTileEntity_Hatch { this.mFluid = ((IFluidBlock) aBlock).drain(getBaseMetaTileEntity().getWorld(), aX, aY, aZ, true); } } else if (GT_ModHandler.isWater(this.mFluid) || GT_ModHandler.isLava(this.mFluid) - || this.mFluid.isFluidEqual( - ((IFluidBlock) aBlock).drain(getBaseMetaTileEntity().getWorld(), aX, aY, aZ, false))) { - if (!isWaterOrLava) { - // Only set Block to Air for non lava/water fluids - this.getBaseMetaTileEntity() - .getWorld() - .setBlockToAir(aX, aY, aZ); - } - this.mFluid.amount += 1000; + || this.mFluid.isFluidEqual( + ((IFluidBlock) aBlock).drain(getBaseMetaTileEntity().getWorld(), aX, aY, aZ, false))) { + if (!isWaterOrLava) { + // Only set Block to Air for non lava/water fluids + this.getBaseMetaTileEntity() + .getWorld() + .setBlockToAir(aX, aY, aZ); + } + this.mFluid.amount += 1000; - } else { - if (debugBlockPump) { - GT_Log.out.println("PUMP: Couldn't consume " + aBlock); - } - // We didn't do anything - return false; - } + } else { + if (debugBlockPump) { + GT_Log.out.println("PUMP: Couldn't consume " + aBlock); + } + // We didn't do anything + return false; + } getBaseMetaTileEntity().decreaseStoredEnergyUnits(this.getEuUsagePerAction(), true); getBaseMetaTileEntity().getWorld() - .setBlock(aX, aY, aZ, Blocks.air, 0, 2); + .setBlock(aX, aY, aZ, Blocks.air, 0, 2); return true; } return false; @@ -696,28 +688,26 @@ public class GT_MetaTileEntity_Pump extends GT_MetaTileEntity_Hatch { @Override public ArrayList getSpecialDebugInfo(IGregTechTileEntity aBaseMetaTileEntity, EntityPlayer aPlayer, - int aLogLevel, ArrayList aList) { + int aLogLevel, ArrayList aList) { aList.addAll( - Arrays.asList( - EnumChatFormatting.BLUE + StatCollector.translateToLocal("GT5U.machines.pump") - + EnumChatFormatting.RESET, - StatCollector.translateToLocal("GT5U.machines.workarea") + ": " - + EnumChatFormatting.GREEN - + (radiusConfig * 2 + 1) - + EnumChatFormatting.RESET - + " " - + StatCollector.translateToLocal("GT5U.machines.blocks"), - "Primary pumping fluid: " - + (this.mPrimaryPumpedBlock != null ? this.mPrimaryPumpedBlock.getLocalizedName() - : "None"), - "Secondary pumping fluid: " - + (this.mSecondaryPumpedBlock != null ? this.mSecondaryPumpedBlock.getLocalizedName() - : "None"), - "Pumps below: " + mPumpCountBelow, - "Queue size: " + mPumpList.size(), - "Pump head at Y: " + getYOfPumpHead(), - "Pump timer: " + mPumpTimer, - "Meta Entity Timer: " + getBaseMetaTileEntity().getTimer())); + Arrays.asList( + EnumChatFormatting.BLUE + StatCollector.translateToLocal("GT5U.machines.pump") + + EnumChatFormatting.RESET, + StatCollector.translateToLocal("GT5U.machines.workarea") + ": " + + EnumChatFormatting.GREEN + + (radiusConfig * 2 + 1) + + EnumChatFormatting.RESET + + " " + + StatCollector.translateToLocal("GT5U.machines.blocks"), + "Primary pumping fluid: " + + (this.mPrimaryPumpedBlock != null ? this.mPrimaryPumpedBlock.getLocalizedName() : "None"), + "Secondary pumping fluid: " + + (this.mSecondaryPumpedBlock != null ? this.mSecondaryPumpedBlock.getLocalizedName() : "None"), + "Pumps below: " + mPumpCountBelow, + "Queue size: " + mPumpList.size(), + "Pump head at Y: " + getYOfPumpHead(), + "Pump timer: " + mPumpTimer, + "Meta Entity Timer: " + getBaseMetaTileEntity().getTimer())); return aList; } @@ -813,10 +803,10 @@ public class GT_MetaTileEntity_Pump extends GT_MetaTileEntity_Hatch { @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[mTier][aColorIndex + 1], - (aSide == 0 || aSide == 1) ? TextureFactory.of(Textures.BlockIcons.OVERLAY_PIPE_OUT) - : TextureFactory.of(Textures.BlockIcons.OVERLAY_ADV_PUMP) }; + (aSide == 0 || aSide == 1) ? TextureFactory.of(Textures.BlockIcons.OVERLAY_PIPE_OUT) + : TextureFactory.of(Textures.BlockIcons.OVERLAY_ADV_PUMP) }; } @Override @@ -827,9 +817,9 @@ public class GT_MetaTileEntity_Pump extends GT_MetaTileEntity_Hatch { @Override public ITexture[] getTexturesInactive(ITexture aBaseTexture) { return new ITexture[] { TextureFactory.of(Textures.BlockIcons.OVERLAY_ADV_PUMP), - TextureFactory.of(Textures.BlockIcons.OVERLAY_ADV_PUMP), - TextureFactory.of(Textures.BlockIcons.OVERLAY_ADV_PUMP), - TextureFactory.of(Textures.BlockIcons.OVERLAY_ADV_PUMP), }; + TextureFactory.of(Textures.BlockIcons.OVERLAY_ADV_PUMP), + TextureFactory.of(Textures.BlockIcons.OVERLAY_ADV_PUMP), + TextureFactory.of(Textures.BlockIcons.OVERLAY_ADV_PUMP), }; } private FakePlayer mFakePlayer = null; @@ -844,14 +834,13 @@ public class GT_MetaTileEntity_Pump extends GT_MetaTileEntity_Hatch { @Override public String[] getInfoData() { return new String[] { - EnumChatFormatting.BLUE + StatCollector.translateToLocal("GT5U.machines.pump") - + EnumChatFormatting.RESET, - StatCollector.translateToLocal("GT5U.machines.workarea") + ": " - + EnumChatFormatting.GREEN - + (radiusConfig * 2 + 1) - + EnumChatFormatting.RESET - + " " - + StatCollector.translateToLocal("GT5U.machines.blocks") }; + EnumChatFormatting.BLUE + StatCollector.translateToLocal("GT5U.machines.pump") + EnumChatFormatting.RESET, + StatCollector.translateToLocal("GT5U.machines.workarea") + ": " + + EnumChatFormatting.GREEN + + (radiusConfig * 2 + 1) + + EnumChatFormatting.RESET + + " " + + StatCollector.translateToLocal("GT5U.machines.blocks") }; } @Override diff --git a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Replicator.java b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Replicator.java index 739db376c1..45abd16d9f 100644 --- a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Replicator.java +++ b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Replicator.java @@ -40,85 +40,85 @@ public class GT_MetaTileEntity_Replicator extends GT_MetaTileEntity_BasicMachine public GT_MetaTileEntity_Replicator(int aID, String aName, String aNameRegional, int aTier) { super( - aID, - aName, - aNameRegional, - aTier, - 1, - "Producing Elemental Matter", - 1, - 1, - "Replicator.png", - "", - TextureFactory.of( - TextureFactory.of(OVERLAY_SIDE_REPLICATOR_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_SIDE_REPLICATOR_ACTIVE_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_SIDE_REPLICATOR), - TextureFactory.builder() - .addIcon(OVERLAY_SIDE_REPLICATOR_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_FRONT_REPLICATOR_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_REPLICATOR_ACTIVE_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_FRONT_REPLICATOR), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_REPLICATOR_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_TOP_REPLICATOR_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_TOP_REPLICATOR_ACTIVE_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_TOP_REPLICATOR), - TextureFactory.builder() - .addIcon(OVERLAY_TOP_REPLICATOR_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_BOTTOM_REPLICATOR_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_BOTTOM_REPLICATOR_ACTIVE_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_BOTTOM_REPLICATOR), - TextureFactory.builder() - .addIcon(OVERLAY_BOTTOM_REPLICATOR_GLOW) - .glow() - .build())); + aID, + aName, + aNameRegional, + aTier, + 1, + "Producing Elemental Matter", + 1, + 1, + "Replicator.png", + "", + TextureFactory.of( + TextureFactory.of(OVERLAY_SIDE_REPLICATOR_ACTIVE), + TextureFactory.builder() + .addIcon(OVERLAY_SIDE_REPLICATOR_ACTIVE_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_SIDE_REPLICATOR), + TextureFactory.builder() + .addIcon(OVERLAY_SIDE_REPLICATOR_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_FRONT_REPLICATOR_ACTIVE), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_REPLICATOR_ACTIVE_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_FRONT_REPLICATOR), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_REPLICATOR_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_TOP_REPLICATOR_ACTIVE), + TextureFactory.builder() + .addIcon(OVERLAY_TOP_REPLICATOR_ACTIVE_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_TOP_REPLICATOR), + TextureFactory.builder() + .addIcon(OVERLAY_TOP_REPLICATOR_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_BOTTOM_REPLICATOR_ACTIVE), + TextureFactory.builder() + .addIcon(OVERLAY_BOTTOM_REPLICATOR_ACTIVE_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_BOTTOM_REPLICATOR), + TextureFactory.builder() + .addIcon(OVERLAY_BOTTOM_REPLICATOR_GLOW) + .glow() + .build())); } public GT_MetaTileEntity_Replicator(String aName, int aTier, String aDescription, ITexture[][][] aTextures, - String aGUIName, String aNEIName) { + String aGUIName, String aNEIName) { super(aName, aTier, 1, aDescription, aTextures, 1, 1, aGUIName, aNEIName); } public GT_MetaTileEntity_Replicator(String aName, int aTier, String[] aDescription, ITexture[][][] aTextures, - String aGUIName, String aNEIName) { + String aGUIName, String aNEIName) { super(aName, aTier, 1, aDescription, aTextures, 1, 1, aGUIName, aNEIName); } @Override public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) { return new GT_MetaTileEntity_Replicator( - this.mName, - this.mTier, - this.mDescriptionArray, - this.mTextures, - this.mGUIName, - this.mNEIName); + this.mName, + this.mTier, + this.mDescriptionArray, + this.mTextures, + this.mGUIName, + this.mNEIName); } public static long cubicFluidMultiplier(long amount) { @@ -131,8 +131,7 @@ public class GT_MetaTileEntity_Replicator extends GT_MetaTileEntity_BasicMachine if ((tFluid != null) && (tFluid.isFluidEqual(Materials.UUMatter.getFluid(1L)))) { ItemStack tDataOrb = getSpecialSlot(); if ((ItemList.Tool_DataOrb.isStackEqual(tDataOrb, false, true)) && (Behaviour_DataOrb.getDataTitle(tDataOrb) - .equals( - "Elemental-Scan"))) { + .equals("Elemental-Scan"))) { Materials tMaterial = Element.get(Behaviour_DataOrb.getDataName(tDataOrb)).mLinkedMaterials.get(0); long tMass = cubicFluidMultiplier(MASS_OVERRIDES.getOrDefault(tMaterial, tMaterial.getMass())); if ((tFluid.amount >= tMass) && (tMass > 0L)) { @@ -144,9 +143,9 @@ public class GT_MetaTileEntity_Replicator extends GT_MetaTileEntity_BasicMachine if ((this.mOutputItems[0] = GT_OreDictUnificator.get(OrePrefixes.dust, tMaterial, 1L)) == null) { if ((this.mOutputItems[0] = GT_OreDictUnificator.get(OrePrefixes.cell, tMaterial, 1L)) - != null) { + != null) { if ((this.mOutputFluid = GT_Utility.getFluidForFilledItem(this.mOutputItems[0], true)) - == null) { + == null) { if (ItemList.Cell_Empty.isStackEqual(getInputAt(0))) { if (canOutput(this.mOutputItems[0])) { getInputAt(0).stackSize -= 1; @@ -157,8 +156,8 @@ public class GT_MetaTileEntity_Replicator extends GT_MetaTileEntity_BasicMachine } else { this.mOutputItems[0] = null; if ((getDrainableStack() == null) - || ((getDrainableStack().isFluidEqual(this.mOutputFluid)) - && (getDrainableStack().amount < 16000))) { + || ((getDrainableStack().isFluidEqual(this.mOutputFluid)) + && (getDrainableStack().amount < 16000))) { tFluid.amount = ((int) (tFluid.amount - tMass)); return 2; } @@ -181,9 +180,9 @@ public class GT_MetaTileEntity_Replicator extends GT_MetaTileEntity_BasicMachine @Override protected boolean allowPutStackValidated(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, - ItemStack aStack) { + ItemStack aStack) { return super.allowPutStackValidated(aBaseMetaTileEntity, aIndex, aSide, aStack) - && ItemList.Cell_Empty.isStackEqual(aStack); + && ItemList.Cell_Empty.isStackEqual(aStack); } @Override @@ -195,11 +194,11 @@ public class GT_MetaTileEntity_Replicator extends GT_MetaTileEntity_BasicMachine public int getCapacity() { if ((sHeaviestElementMass == 0) && (GregTech_API.sPostloadFinished)) { sHeaviestElementMass = Materials.getMaterialsMap() - .values() - .stream() - .mapToInt(material -> (int) cubicFluidMultiplier((int) material.getMass())) - .max() - .orElseThrow(NoSuchElementException::new); + .values() + .stream() + .mapToInt(material -> (int) cubicFluidMultiplier((int) material.getMass())) + .max() + .orElseThrow(NoSuchElementException::new); // Make the Number nicer =) sHeaviestElementMass = 1000 * (sHeaviestElementMass / 1000 + 1); } diff --git a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_RockBreaker.java b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_RockBreaker.java index ace1e90f71..2c16cbad2a 100644 --- a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_RockBreaker.java +++ b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_RockBreaker.java @@ -20,85 +20,85 @@ public class GT_MetaTileEntity_RockBreaker extends GT_MetaTileEntity_BasicMachin public GT_MetaTileEntity_RockBreaker(int aID, String aName, String aNameRegional, int aTier) { super( - aID, - aName, - aNameRegional, - aTier, - 1, - "Put Lava and Water adjacent", - 1, - 1, - "RockBreaker.png", - "", - TextureFactory.of( - TextureFactory.of(OVERLAY_SIDE_ROCK_BREAKER_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_SIDE_ROCK_BREAKER_ACTIVE_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_SIDE_ROCK_BREAKER), - TextureFactory.builder() - .addIcon(OVERLAY_SIDE_ROCK_BREAKER_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_FRONT_ROCK_BREAKER_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_ROCK_BREAKER_ACTIVE_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_FRONT_ROCK_BREAKER), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_ROCK_BREAKER_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_TOP_ROCK_BREAKER_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_TOP_ROCK_BREAKER_ACTIVE_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_TOP_ROCK_BREAKER), - TextureFactory.builder() - .addIcon(OVERLAY_TOP_ROCK_BREAKER_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_BOTTOM_ROCK_BREAKER_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_BOTTOM_ROCK_BREAKER_ACTIVE_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_BOTTOM_ROCK_BREAKER), - TextureFactory.builder() - .addIcon(OVERLAY_BOTTOM_ROCK_BREAKER_GLOW) - .glow() - .build())); + aID, + aName, + aNameRegional, + aTier, + 1, + "Put Lava and Water adjacent", + 1, + 1, + "RockBreaker.png", + "", + TextureFactory.of( + TextureFactory.of(OVERLAY_SIDE_ROCK_BREAKER_ACTIVE), + TextureFactory.builder() + .addIcon(OVERLAY_SIDE_ROCK_BREAKER_ACTIVE_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_SIDE_ROCK_BREAKER), + TextureFactory.builder() + .addIcon(OVERLAY_SIDE_ROCK_BREAKER_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_FRONT_ROCK_BREAKER_ACTIVE), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_ROCK_BREAKER_ACTIVE_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_FRONT_ROCK_BREAKER), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_ROCK_BREAKER_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_TOP_ROCK_BREAKER_ACTIVE), + TextureFactory.builder() + .addIcon(OVERLAY_TOP_ROCK_BREAKER_ACTIVE_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_TOP_ROCK_BREAKER), + TextureFactory.builder() + .addIcon(OVERLAY_TOP_ROCK_BREAKER_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_BOTTOM_ROCK_BREAKER_ACTIVE), + TextureFactory.builder() + .addIcon(OVERLAY_BOTTOM_ROCK_BREAKER_ACTIVE_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_BOTTOM_ROCK_BREAKER), + TextureFactory.builder() + .addIcon(OVERLAY_BOTTOM_ROCK_BREAKER_GLOW) + .glow() + .build())); } public GT_MetaTileEntity_RockBreaker(String aName, int aTier, String aDescription, ITexture[][][] aTextures, - String aGUIName, String aNEIName) { + String aGUIName, String aNEIName) { super(aName, aTier, 1, aDescription, aTextures, 1, 1, aGUIName, aNEIName); } public GT_MetaTileEntity_RockBreaker(String aName, int aTier, String[] aDescription, ITexture[][][] aTextures, - String aGUIName, String aNEIName) { + String aGUIName, String aNEIName) { super(aName, aTier, 1, aDescription, aTextures, 1, 1, aGUIName, aNEIName); } @Override public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) { return new GT_MetaTileEntity_RockBreaker( - this.mName, - this.mTier, - this.mDescriptionArray, - this.mTextures, - this.mGUIName, - this.mNEIName); + this.mName, + this.mTier, + this.mDescriptionArray, + this.mTextures, + this.mGUIName, + this.mNEIName); } @Override @@ -108,9 +108,9 @@ public class GT_MetaTileEntity_RockBreaker extends GT_MetaTileEntity_BasicMachin @Override protected boolean allowPutStackValidated(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, - ItemStack aStack) { + ItemStack aStack) { return super.allowPutStackValidated(aBaseMetaTileEntity, aIndex, aSide, aStack) - && getRecipeList().containsInput(aStack); + && getRecipeList().containsInput(aStack); } @Override @@ -122,23 +122,23 @@ public class GT_MetaTileEntity_RockBreaker extends GT_MetaTileEntity_BasicMachin public int checkRecipe() { IGregTechTileEntity aBaseMetaTileEntity = getBaseMetaTileEntity(); if ((aBaseMetaTileEntity.getBlockOffset(0, 0, 1) == Blocks.water) - || (aBaseMetaTileEntity.getBlockOffset(0, 0, -1) == Blocks.water) - || (aBaseMetaTileEntity.getBlockOffset(-1, 0, 0) == Blocks.water) - || (aBaseMetaTileEntity.getBlockOffset(1, 0, 0) == Blocks.water)) { + || (aBaseMetaTileEntity.getBlockOffset(0, 0, -1) == Blocks.water) + || (aBaseMetaTileEntity.getBlockOffset(-1, 0, 0) == Blocks.water) + || (aBaseMetaTileEntity.getBlockOffset(1, 0, 0) == Blocks.water)) { ItemStack tOutput = null; if (aBaseMetaTileEntity.getBlockOffset(0, 1, 0) == Blocks.lava) { tOutput = new ItemStack(Blocks.stone, 1); } else if ((aBaseMetaTileEntity.getBlockOffset(0, 0, 1) == Blocks.lava) - || (aBaseMetaTileEntity.getBlockOffset(0, 0, -1) == Blocks.lava) - || (aBaseMetaTileEntity.getBlockOffset(-1, 0, 0) == Blocks.lava) - || (aBaseMetaTileEntity.getBlockOffset(1, 0, 0) == Blocks.lava)) { - tOutput = new ItemStack(Blocks.cobblestone, 1); - } + || (aBaseMetaTileEntity.getBlockOffset(0, 0, -1) == Blocks.lava) + || (aBaseMetaTileEntity.getBlockOffset(-1, 0, 0) == Blocks.lava) + || (aBaseMetaTileEntity.getBlockOffset(1, 0, 0) == Blocks.lava)) { + tOutput = new ItemStack(Blocks.cobblestone, 1); + } if (tOutput != null) { if (GT_Utility.areStacksEqual(getStackInSlot(getCircuitSlot()), GT_Utility.getIntegratedCircuit(1))) { if (GT_Utility.areStacksEqual( - getInputAt(0), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1L))) { + getInputAt(0), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1L))) { tOutput = new ItemStack(Blocks.obsidian, 1); if (canOutput(tOutput)) { getInputAt(0).stackSize -= 1; diff --git a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Scanner.java b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Scanner.java index ca2182c0b8..ef4dc2ec3b 100644 --- a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Scanner.java +++ b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Scanner.java @@ -38,85 +38,85 @@ public class GT_MetaTileEntity_Scanner extends GT_MetaTileEntity_BasicMachine { public GT_MetaTileEntity_Scanner(int aID, String aName, String aNameRegional, int aTier) { super( - aID, - aName, - aNameRegional, - aTier, - 1, - "Scans Crops and other things.", - 1, - 1, - "Scanner.png", - "", - TextureFactory.of( - TextureFactory.of(OVERLAY_SIDE_SCANNER_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_SIDE_SCANNER_ACTIVE_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_SIDE_SCANNER), - TextureFactory.builder() - .addIcon(OVERLAY_SIDE_SCANNER_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_FRONT_SCANNER_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_SCANNER_ACTIVE_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_FRONT_SCANNER), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_SCANNER_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_TOP_SCANNER_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_TOP_SCANNER_ACTIVE_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_TOP_SCANNER), - TextureFactory.builder() - .addIcon(OVERLAY_TOP_SCANNER_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_BOTTOM_SCANNER_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_BOTTOM_SCANNER_ACTIVE_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_BOTTOM_SCANNER), - TextureFactory.builder() - .addIcon(OVERLAY_BOTTOM_SCANNER_GLOW) - .glow() - .build())); + aID, + aName, + aNameRegional, + aTier, + 1, + "Scans Crops and other things.", + 1, + 1, + "Scanner.png", + "", + TextureFactory.of( + TextureFactory.of(OVERLAY_SIDE_SCANNER_ACTIVE), + TextureFactory.builder() + .addIcon(OVERLAY_SIDE_SCANNER_ACTIVE_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_SIDE_SCANNER), + TextureFactory.builder() + .addIcon(OVERLAY_SIDE_SCANNER_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_FRONT_SCANNER_ACTIVE), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_SCANNER_ACTIVE_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_FRONT_SCANNER), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_SCANNER_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_TOP_SCANNER_ACTIVE), + TextureFactory.builder() + .addIcon(OVERLAY_TOP_SCANNER_ACTIVE_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_TOP_SCANNER), + TextureFactory.builder() + .addIcon(OVERLAY_TOP_SCANNER_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_BOTTOM_SCANNER_ACTIVE), + TextureFactory.builder() + .addIcon(OVERLAY_BOTTOM_SCANNER_ACTIVE_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_BOTTOM_SCANNER), + TextureFactory.builder() + .addIcon(OVERLAY_BOTTOM_SCANNER_GLOW) + .glow() + .build())); } public GT_MetaTileEntity_Scanner(String aName, int aTier, String aDescription, ITexture[][][] aTextures, - String aGUIName, String aNEIName) { + String aGUIName, String aNEIName) { super(aName, aTier, 1, aDescription, aTextures, 1, 1, aGUIName, aNEIName); } public GT_MetaTileEntity_Scanner(String aName, int aTier, String[] aDescription, ITexture[][][] aTextures, - String aGUIName, String aNEIName) { + String aGUIName, String aNEIName) { super(aName, aTier, 1, aDescription, aTextures, 1, 1, aGUIName, aNEIName); } @Override public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) { return new GT_MetaTileEntity_Scanner( - this.mName, - this.mTier, - this.mDescriptionArray, - this.mTextures, - this.mGUIName, - this.mNEIName); + this.mName, + this.mTier, + this.mDescriptionArray, + this.mTextures, + this.mGUIName, + this.mNEIName); } @Override @@ -187,10 +187,10 @@ public class GT_MetaTileEntity_Scanner extends GT_MetaTileEntity_BasicMachine { } ItemData tData = GT_OreDictUnificator.getAssociation(aStack); if ((tData != null) && ((tData.mPrefix == OrePrefixes.dust) || (tData.mPrefix == OrePrefixes.cell)) - && (tData.mMaterial.mMaterial.mElement != null) - && (!tData.mMaterial.mMaterial.mElement.mIsIsotope) - && (tData.mMaterial.mMaterial != Materials.Magic) - && (tData.mMaterial.mMaterial.getMass() > 0L)) { + && (tData.mMaterial.mMaterial.mElement != null) + && (!tData.mMaterial.mMaterial.mElement.mIsIsotope) + && (tData.mMaterial.mMaterial != Materials.Magic) + && (tData.mMaterial.mMaterial.getMass() > 0L)) { getSpecialSlot().stackSize -= 1; aStack.stackSize -= 1; @@ -234,10 +234,8 @@ public class GT_MetaTileEntity_Scanner extends GT_MetaTileEntity_BasicMachine { this.mOutputItems[0] = GT_Utility.copyAmount(1L, getSpecialSlot()); assert this.mOutputItems[0] != null; this.mOutputItems[0].setTagCompound( - GT_Utility.getNBTContainingShort( - new NBTTagCompound(), - "map_id", - (short) aStack.getItemDamage())); + GT_Utility + .getNBTContainingShort(new NBTTagCompound(), "map_id", (short) aStack.getItemDamage())); calculateOverclockedNess(30, 128); // In case recipe is too OP for that machine if (mMaxProgresstime == Integer.MAX_VALUE - 1 && mEUt == Integer.MAX_VALUE - 1) @@ -246,87 +244,71 @@ public class GT_MetaTileEntity_Scanner extends GT_MetaTileEntity_BasicMachine { } if ((aStack.getItem() - .getUnlocalizedName() - .contains("Schematic") - || aStack.getItem() - .getUnlocalizedName() - .contains("schematic")) - && !aStack.getItem() - .getUnlocalizedName() - .contains("Schematics")) { + .getUnlocalizedName() + .contains("Schematic") + || aStack.getItem() + .getUnlocalizedName() + .contains("schematic")) + && !aStack.getItem() + .getUnlocalizedName() + .contains("Schematics")) { if (mTier < 3) return FOUND_RECIPE_BUT_DID_NOT_MEET_REQUIREMENTS; String sTier = ""; int stackItemID = Item.getIdFromItem(aStack.getItem()); int stackItemDamage = aStack.getItemDamage(); if (stackItemID == Item.getIdFromItem( - Objects.requireNonNull( - GT_ModHandler.getModItem(GalacticraftCore.ID, "item.schematic", 1L, 0)) - .getItem())) { + Objects.requireNonNull(GT_ModHandler.getModItem(GalacticraftCore.ID, "item.schematic", 1L, 0)) + .getItem())) { if (stackItemDamage == 0 && aStack.toString() - .equals( - Objects.requireNonNull( - GT_ModHandler.getModItem( - GalacticraftCore.ID, - "item.schematic", - 1L, - 0)) - .copy() - .toString())) + .equals( + Objects + .requireNonNull( + GT_ModHandler.getModItem(GalacticraftCore.ID, "item.schematic", 1L, 0)) + .copy() + .toString())) sTier = "100"; else if (stackItemDamage == 1 && aStack.toString() - .equals( - Objects.requireNonNull( - GT_ModHandler.getModItem( - GalacticraftCore.ID, - "item.schematic", - 1L, - 1)) - .copy() - .toString())) + .equals( + Objects + .requireNonNull( + GT_ModHandler.getModItem(GalacticraftCore.ID, "item.schematic", 1L, 1)) + .copy() + .toString())) sTier = "2"; } else { if (stackItemID == Item.getIdFromItem( - Objects.requireNonNull( - GT_ModHandler.getModItem(GalacticraftMars.ID, "item.schematic", 1L, 0)) - .getItem())) { + Objects + .requireNonNull(GT_ModHandler.getModItem(GalacticraftMars.ID, "item.schematic", 1L, 0)) + .getItem())) { if (stackItemDamage == 0 && aStack.toString() - .equals( - Objects.requireNonNull( - GT_ModHandler.getModItem( - GalacticraftMars.ID, - "item.schematic", - 1L, - 0)) - .copy() - .toString())) + .equals( + Objects + .requireNonNull( + GT_ModHandler.getModItem(GalacticraftMars.ID, "item.schematic", 1L, 0)) + .copy() + .toString())) sTier = "3"; else if (stackItemDamage == 1 && aStack.toString() - .equals( - Objects.requireNonNull( - GT_ModHandler.getModItem( - GalacticraftMars.ID, - "item.schematic", - 1L, - 1)) - .copy() - .toString())) + .equals( + Objects + .requireNonNull( + GT_ModHandler.getModItem(GalacticraftMars.ID, "item.schematic", 1L, 1)) + .copy() + .toString())) sTier = "101"; else if (stackItemDamage == 2 && aStack.toString() - .equals( - Objects.requireNonNull( - GT_ModHandler.getModItem( - GalacticraftMars.ID, - "item.schematic", - 1L, - 2)) - .copy() - .toString())) + .equals( + Objects + .requireNonNull( + GT_ModHandler.getModItem(GalacticraftMars.ID, "item.schematic", 1L, 2)) + .copy() + .toString())) sTier = "102"; } else if (aStack.getUnlocalizedName() - .matches(".*\\d+.*")) + .matches(".*\\d+.*")) sTier = aStack.getUnlocalizedName() - .split("(?<=\\D)(?=\\d)")[1].substring(0, 1); + .split("(?<=\\D)(?=\\d)")[1].substring(0, 1); else sTier = "1"; } @@ -336,10 +318,7 @@ public class GT_MetaTileEntity_Scanner extends GT_MetaTileEntity_BasicMachine { this.mOutputItems[0] = GT_Utility.copyAmount(1L, getSpecialSlot()); assert this.mOutputItems[0] != null; this.mOutputItems[0].setTagCompound( - GT_Utility.getNBTContainingShort( - new NBTTagCompound(), - "rocket_tier", - Short.parseShort(sTier))); + GT_Utility.getNBTContainingShort(new NBTTagCompound(), "rocket_tier", Short.parseShort(sTier))); calculateOverclockedNess(480, 36000); // In case recipe is too OP for that machine @@ -350,7 +329,7 @@ public class GT_MetaTileEntity_Scanner extends GT_MetaTileEntity_BasicMachine { } if (getSpecialSlot() == null && ItemList.Tool_DataStick.isStackEqual(aStack, false, true)) { if (GT_Utility.ItemNBT.getBookTitle(aStack) - .equals("Raw Prospection Data")) { + .equals("Raw Prospection Data")) { GT_Utility.ItemNBT.setBookTitle(aStack, "Analyzed Prospection Data"); GT_Utility.ItemNBT.convertProspectionData(aStack); aStack.stackSize -= 1; @@ -400,11 +379,11 @@ public class GT_MetaTileEntity_Scanner extends GT_MetaTileEntity_BasicMachine { public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) { if (mProgresstime >= (mMaxProgresstime - 1)) { if ((this.mOutputItems[0] != null) && (this.mOutputItems[0].getUnlocalizedName() - .equals("gt.metaitem.01.32707"))) { + .equals("gt.metaitem.01.32707"))) { GT_Mod.achievements.issueAchievement( - aBaseMetaTileEntity.getWorld() - .getPlayerEntityByName(aBaseMetaTileEntity.getOwnerName()), - "scanning"); + aBaseMetaTileEntity.getWorld() + .getPlayerEntityByName(aBaseMetaTileEntity.getOwnerName()), + "scanning"); } } super.onPostTick(aBaseMetaTileEntity, aTick); @@ -422,9 +401,9 @@ public class GT_MetaTileEntity_Scanner extends GT_MetaTileEntity_BasicMachine { @Override protected boolean allowPutStackValidated(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, - ItemStack aStack) { + ItemStack aStack) { return super.allowPutStackValidated(aBaseMetaTileEntity, aIndex, aSide, aStack) - && getRecipeList().containsInput(aStack); + && getRecipeList().containsInput(aStack); } @Override diff --git a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_SeismicProspector.java b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_SeismicProspector.java index 021511032b..02a2c2da99 100644 --- a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_SeismicProspector.java +++ b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_SeismicProspector.java @@ -35,85 +35,85 @@ public class GT_MetaTileEntity_SeismicProspector extends GT_MetaTileEntity_Basic public GT_MetaTileEntity_SeismicProspector(int aID, String aName, String aNameRegional, int aTier) { super( - aID, - aName, - aNameRegional, - aTier, - 1, - "(DEPRECATED, DO NOT USE! SWAP TO ADVANCED VERSION USING SHAPELESS RECIPE!)", - 1, - 1, - "Default.png", - "", - TextureFactory.of( - TextureFactory.of(OVERLAY_SIDE_ROCK_BREAKER_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_SIDE_ROCK_BREAKER_ACTIVE_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_SIDE_ROCK_BREAKER), - TextureFactory.builder() - .addIcon(OVERLAY_SIDE_ROCK_BREAKER_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_TOP_ROCK_BREAKER_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_TOP_ROCK_BREAKER_ACTIVE_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_TOP_ROCK_BREAKER), - TextureFactory.builder() - .addIcon(OVERLAY_TOP_ROCK_BREAKER_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_FRONT_ROCK_BREAKER_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_ROCK_BREAKER_ACTIVE_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_FRONT_ROCK_BREAKER), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_ROCK_BREAKER_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_BOTTOM_ROCK_BREAKER_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_BOTTOM_ROCK_BREAKER_ACTIVE_GLOW) - .glow() - .build()), - TextureFactory.of( - TextureFactory.of(OVERLAY_BOTTOM_ROCK_BREAKER), - TextureFactory.builder() - .addIcon(OVERLAY_BOTTOM_ROCK_BREAKER_GLOW) - .glow() - .build())); + aID, + aName, + aNameRegional, + aTier, + 1, + "(DEPRECATED, DO NOT USE! SWAP TO ADVANCED VERSION USING SHAPELESS RECIPE!)", + 1, + 1, + "Default.png", + "", + TextureFactory.of( + TextureFactory.of(OVERLAY_SIDE_ROCK_BREAKER_ACTIVE), + TextureFactory.builder() + .addIcon(OVERLAY_SIDE_ROCK_BREAKER_ACTIVE_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_SIDE_ROCK_BREAKER), + TextureFactory.builder() + .addIcon(OVERLAY_SIDE_ROCK_BREAKER_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_TOP_ROCK_BREAKER_ACTIVE), + TextureFactory.builder() + .addIcon(OVERLAY_TOP_ROCK_BREAKER_ACTIVE_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_TOP_ROCK_BREAKER), + TextureFactory.builder() + .addIcon(OVERLAY_TOP_ROCK_BREAKER_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_FRONT_ROCK_BREAKER_ACTIVE), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_ROCK_BREAKER_ACTIVE_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_FRONT_ROCK_BREAKER), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_ROCK_BREAKER_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_BOTTOM_ROCK_BREAKER_ACTIVE), + TextureFactory.builder() + .addIcon(OVERLAY_BOTTOM_ROCK_BREAKER_ACTIVE_GLOW) + .glow() + .build()), + TextureFactory.of( + TextureFactory.of(OVERLAY_BOTTOM_ROCK_BREAKER), + TextureFactory.builder() + .addIcon(OVERLAY_BOTTOM_ROCK_BREAKER_GLOW) + .glow() + .build())); } public GT_MetaTileEntity_SeismicProspector(String aName, int aTier, String aDescription, ITexture[][][] aTextures, - String aGUIName, String aNEIName) { + String aGUIName, String aNEIName) { super(aName, aTier, 1, aDescription, aTextures, 1, 1, aGUIName, aNEIName); } public GT_MetaTileEntity_SeismicProspector(String aName, int aTier, String[] aDescription, ITexture[][][] aTextures, - String aGUIName, String aNEIName) { + String aGUIName, String aNEIName) { super(aName, aTier, 1, aDescription, aTextures, 1, 1, aGUIName, aNEIName); } @Override public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) { return new GT_MetaTileEntity_SeismicProspector( - this.mName, - this.mTier, - this.mDescriptionArray, - this.mTextures, - this.mGUIName, - this.mNEIName); + this.mName, + this.mTier, + this.mDescriptionArray, + this.mTextures, + this.mGUIName, + this.mNEIName); } @Override @@ -122,15 +122,15 @@ public class GT_MetaTileEntity_SeismicProspector extends GT_MetaTileEntity_Basic ItemStack aStack = aPlayer.getCurrentEquippedItem(); ItemData stackData = GT_OreDictUnificator.getItemData(aStack); if (!ready && (aStack != null) - && ((aStack.getItem() == Item.getItemFromBlock(Blocks.tnt) && aStack.stackSize >= 2) - || (aStack.getItem() == Ic2Items.industrialTnt.getItem() && aStack.stackSize >= 1) - || (aStack.getItem() == Ic2Items.dynamite.getItem() && aStack.stackSize >= 4) - || (stackData != null && stackData.mMaterial.mMaterial == Materials.Glyceryl - && aStack.stackSize >= 1) - || (aStack.getItem() == ItemList.Block_Powderbarrel.getItem() - && aStack.getItemDamage() == ItemList.Block_Powderbarrel.get(1) - .getItemDamage() - && aStack.stackSize >= 8))) { + && ((aStack.getItem() == Item.getItemFromBlock(Blocks.tnt) && aStack.stackSize >= 2) + || (aStack.getItem() == Ic2Items.industrialTnt.getItem() && aStack.stackSize >= 1) + || (aStack.getItem() == Ic2Items.dynamite.getItem() && aStack.stackSize >= 4) + || (stackData != null && stackData.mMaterial.mMaterial == Materials.Glyceryl + && aStack.stackSize >= 1) + || (aStack.getItem() == ItemList.Block_Powderbarrel.getItem() + && aStack.getItemDamage() == ItemList.Block_Powderbarrel.get(1) + .getItemDamage() + && aStack.stackSize >= 8))) { if ((!aPlayer.capabilities.isCreativeMode) && (aStack.stackSize != 111)) { if (aStack.getItem() == Item.getItemFromBlock(Blocks.tnt)) { aStack.stackSize -= 2; @@ -139,99 +139,92 @@ public class GT_MetaTileEntity_SeismicProspector extends GT_MetaTileEntity_Basic } else if (aStack.getItem() == Ic2Items.dynamite.getItem()) { aStack.stackSize -= 4; } else if (aStack.getItem() == ItemList.Block_Powderbarrel.getItem() - && aStack.getItemDamage() == ItemList.Block_Powderbarrel.get(1) - .getItemDamage()) { - aStack.stackSize -= 8; - } else { - aStack.stackSize -= 1; - } + && aStack.getItemDamage() == ItemList.Block_Powderbarrel.get(1) + .getItemDamage()) { + aStack.stackSize -= 8; + } else { + aStack.stackSize -= 1; + } } this.ready = true; this.mMaxProgresstime = 200; } else if (ready && mMaxProgresstime == 0 - && aStack != null - && aStack.stackSize == 1 - && aStack.getItem() == ItemList.Tool_DataStick.getItem()) { - this.ready = false; - GT_Utility.ItemNBT.setBookTitle(aPlayer.getCurrentEquippedItem(), "Raw Prospection Data"); - List tStringList = new ArrayList<>(); - - // range by tier - int min = -range(); - int max = range(); - int step = step(); - - for (int i = this.getBaseMetaTileEntity() - .getYCoord(); i > 0; i--) { - for (int f = min; f <= max; f += step) { - for (int g = min; g <= max; g += step) { - Block tBlock = this.getBaseMetaTileEntity() - .getBlockOffset(f, -i, g); - if ((tBlock instanceof GT_Block_Ores_Abstract)) { - TileEntity tTileEntity = getBaseMetaTileEntity().getWorld() - .getTileEntity( - getBaseMetaTileEntity().getXCoord() - + f, - getBaseMetaTileEntity().getYCoord() - + (-i), - getBaseMetaTileEntity().getZCoord() - + g); - if ((tTileEntity instanceof GT_TileEntity_Ores)) { - if (((GT_TileEntity_Ores) tTileEntity).mMetaData < 16000) { - Materials tMaterial = GregTech_API.sGeneratedMaterials[(((GT_TileEntity_Ores) tTileEntity).mMetaData - % 1000)]; - if ((tMaterial != null) && (tMaterial != Materials._NULL)) { - if (!tStringList.contains(tMaterial.mDefaultLocalName)) { - tStringList.add(tMaterial.mDefaultLocalName); - } + && aStack != null + && aStack.stackSize == 1 + && aStack.getItem() == ItemList.Tool_DataStick.getItem()) { + this.ready = false; + GT_Utility.ItemNBT.setBookTitle(aPlayer.getCurrentEquippedItem(), "Raw Prospection Data"); + List tStringList = new ArrayList<>(); + + // range by tier + int min = -range(); + int max = range(); + int step = step(); + + for (int i = this.getBaseMetaTileEntity() + .getYCoord(); i > 0; i--) { + for (int f = min; f <= max; f += step) { + for (int g = min; g <= max; g += step) { + Block tBlock = this.getBaseMetaTileEntity() + .getBlockOffset(f, -i, g); + if ((tBlock instanceof GT_Block_Ores_Abstract)) { + TileEntity tTileEntity = getBaseMetaTileEntity().getWorld() + .getTileEntity( + getBaseMetaTileEntity().getXCoord() + f, + getBaseMetaTileEntity().getYCoord() + (-i), + getBaseMetaTileEntity().getZCoord() + g); + if ((tTileEntity instanceof GT_TileEntity_Ores)) { + if (((GT_TileEntity_Ores) tTileEntity).mMetaData < 16000) { + Materials tMaterial = GregTech_API.sGeneratedMaterials[(((GT_TileEntity_Ores) tTileEntity).mMetaData + % 1000)]; + if ((tMaterial != null) && (tMaterial != Materials._NULL)) { + if (!tStringList.contains(tMaterial.mDefaultLocalName)) { + tStringList.add(tMaterial.mDefaultLocalName); } } } - } else { - int tMetaID = getBaseMetaTileEntity().getWorld() - .getBlockMetadata( - getBaseMetaTileEntity().getXCoord() - + f, - getBaseMetaTileEntity().getYCoord() - + (-i), - getBaseMetaTileEntity().getZCoord() - + g); - ItemData tAssotiation = GT_OreDictUnificator.getAssociation( - new ItemStack(tBlock, 1, tMetaID)); - if ((tAssotiation != null) && (tAssotiation.mPrefix.toString() - .startsWith("ore"))) { - if (!tStringList.contains( - tAssotiation.mMaterial.mMaterial.mDefaultLocalName)) { - tStringList.add(tAssotiation.mMaterial.mMaterial.mDefaultLocalName); - } + } + } else { + int tMetaID = getBaseMetaTileEntity().getWorld() + .getBlockMetadata( + getBaseMetaTileEntity().getXCoord() + f, + getBaseMetaTileEntity().getYCoord() + (-i), + getBaseMetaTileEntity().getZCoord() + g); + ItemData tAssotiation = GT_OreDictUnificator + .getAssociation(new ItemStack(tBlock, 1, tMetaID)); + if ((tAssotiation != null) && (tAssotiation.mPrefix.toString() + .startsWith("ore"))) { + if (!tStringList.contains(tAssotiation.mMaterial.mMaterial.mDefaultLocalName)) { + tStringList.add(tAssotiation.mMaterial.mMaterial.mDefaultLocalName); } } } } } - if (tStringList.size() < 1) { - tStringList.add("No Ores found."); - } - FluidStack tFluid = GT_UndergroundOil.undergroundOilReadInformation(getBaseMetaTileEntity()); - String[] tStringArray = new String[tStringList.size()]; - { - for (int i = 0; i < tStringArray.length; i++) { - tStringArray[i] = tStringList.get(i); - } + } + if (tStringList.size() < 1) { + tStringList.add("No Ores found."); + } + FluidStack tFluid = GT_UndergroundOil.undergroundOilReadInformation(getBaseMetaTileEntity()); + String[] tStringArray = new String[tStringList.size()]; + { + for (int i = 0; i < tStringArray.length; i++) { + tStringArray[i] = tStringList.get(i); } - GT_Utility.ItemNBT.setProspectionData( - aPlayer.getCurrentEquippedItem(), - this.getBaseMetaTileEntity() - .getXCoord(), - this.getBaseMetaTileEntity() - .getYCoord(), - this.getBaseMetaTileEntity() - .getZCoord(), - this.getBaseMetaTileEntity() - .getWorld().provider.dimensionId, - tFluid, - tStringArray); } + GT_Utility.ItemNBT.setProspectionData( + aPlayer.getCurrentEquippedItem(), + this.getBaseMetaTileEntity() + .getXCoord(), + this.getBaseMetaTileEntity() + .getYCoord(), + this.getBaseMetaTileEntity() + .getZCoord(), + this.getBaseMetaTileEntity() + .getWorld().provider.dimensionId, + tFluid, + tStringArray); + } } return true; diff --git a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Teleporter.java b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Teleporter.java index 08b5897298..ffff8801a5 100644 --- a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Teleporter.java +++ b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Teleporter.java @@ -64,7 +64,7 @@ import gregtech.api.util.GT_Config; import gregtech.api.util.GT_Utility; public class GT_MetaTileEntity_Teleporter extends GT_MetaTileEntity_BasicTank - implements IAddGregtechLogo, IAddUIWidgets { + implements IAddGregtechLogo, IAddUIWidgets { private static boolean sInterDimensionalTeleportAllowed = true; private static int sPassiveEnergyDrain = 2048; @@ -79,13 +79,13 @@ public class GT_MetaTileEntity_Teleporter extends GT_MetaTileEntity_BasicTank public GT_MetaTileEntity_Teleporter(int aID, String aName, String aNameRegional, int aTier) { super( - aID, - aName, - aNameRegional, - aTier, - 3, - new String[] { "Teleport long distances with this little device.", - "Use a Dragon Egg or Nitrogen Plasma", "for Inter-dimensional transmission" }); + aID, + aName, + aNameRegional, + aTier, + 3, + new String[] { "Teleport long distances with this little device.", "Use a Dragon Egg or Nitrogen Plasma", + "for Inter-dimensional transmission" }); } public GT_MetaTileEntity_Teleporter(String aName, int aTier, String aDescription, ITexture[][][] aTextures) { @@ -116,8 +116,7 @@ public class GT_MetaTileEntity_Teleporter extends GT_MetaTileEntity_BasicTank for (int i = 0; i < 36; i++) { if (tPlayer.inventory.getStackInSlot(i) != null) { tCount += (tPlayer.inventory.getStackInSlot(i) - .getMaxStackSize() - > 1 ? tPlayer.inventory.getStackInSlot(i).stackSize : 64); + .getMaxStackSize() > 1 ? tPlayer.inventory.getStackInSlot(i).stackSize : 64); } } for (int i = 0; i < 4; i++) { @@ -128,11 +127,11 @@ public class GT_MetaTileEntity_Teleporter extends GT_MetaTileEntity_BasicTank return Math.min(5.0F, tCount / 666.6F); } if (GT_Utility.getClassName(aEntity) - .equals("EntityItnt")) { + .equals("EntityItnt")) { return 5.0F; } if (GT_Utility.getClassName(aEntity) - .equals("EntityNuke")) { + .equals("EntityNuke")) { return 50.0F; } if ((aEntity instanceof EntityArrow)) { @@ -198,38 +197,38 @@ public class GT_MetaTileEntity_Teleporter extends GT_MetaTileEntity_BasicTank @Override public String[] getInfoData() { return new String[] { "Coordinates:", - "X: " + EnumChatFormatting.GREEN + GT_Utility.formatNumbers(this.mTargetX) + EnumChatFormatting.RESET, - "Y: " + EnumChatFormatting.GREEN + GT_Utility.formatNumbers(this.mTargetY) + EnumChatFormatting.RESET, - "Z: " + EnumChatFormatting.GREEN + GT_Utility.formatNumbers(this.mTargetZ) + EnumChatFormatting.RESET, - "Dimension: " + EnumChatFormatting.GREEN + this.mTargetD + EnumChatFormatting.RESET, - "Dimension Valid: " + (GT_Utility.isRealDimension(this.mTargetD) - ? EnumChatFormatting.GREEN + "Yes" + EnumChatFormatting.RESET - : EnumChatFormatting.RED + "No" + EnumChatFormatting.RESET), - "Dimension Registered: " + (DimensionManager.isDimensionRegistered(this.mTargetD) - ? EnumChatFormatting.GREEN + "Yes" + EnumChatFormatting.RESET - : EnumChatFormatting.RED + "No" + EnumChatFormatting.RESET) }; + "X: " + EnumChatFormatting.GREEN + GT_Utility.formatNumbers(this.mTargetX) + EnumChatFormatting.RESET, + "Y: " + EnumChatFormatting.GREEN + GT_Utility.formatNumbers(this.mTargetY) + EnumChatFormatting.RESET, + "Z: " + EnumChatFormatting.GREEN + GT_Utility.formatNumbers(this.mTargetZ) + EnumChatFormatting.RESET, + "Dimension: " + EnumChatFormatting.GREEN + this.mTargetD + EnumChatFormatting.RESET, + "Dimension Valid: " + (GT_Utility.isRealDimension(this.mTargetD) + ? EnumChatFormatting.GREEN + "Yes" + EnumChatFormatting.RESET + : EnumChatFormatting.RED + "No" + EnumChatFormatting.RESET), + "Dimension Registered: " + (DimensionManager.isDimensionRegistered(this.mTargetD) + ? EnumChatFormatting.GREEN + "Yes" + EnumChatFormatting.RESET + : EnumChatFormatting.RED + "No" + EnumChatFormatting.RESET) }; } @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { if (aSide != this.getBaseMetaTileEntity() - .getFrontFacing()) + .getFrontFacing()) return new ITexture[] { MACHINE_CASINGS[mTier][aColorIndex + 1], - TextureFactory.of(OVERLAY_TELEPORTER_SIDES), TextureFactory.builder() - .addIcon(OVERLAY_TELEPORTER_SIDES_GLOW) - .glow() - .build() }; + TextureFactory.of(OVERLAY_TELEPORTER_SIDES), TextureFactory.builder() + .addIcon(OVERLAY_TELEPORTER_SIDES_GLOW) + .glow() + .build() }; if (aActive) return new ITexture[] { MACHINE_CASINGS[mTier][aColorIndex + 1], - TextureFactory.of(OVERLAY_TELEPORTER_ACTIVE), TextureFactory.builder() - .addIcon(OVERLAY_TELEPORTER_ACTIVE_GLOW) - .glow() - .build() }; + TextureFactory.of(OVERLAY_TELEPORTER_ACTIVE), TextureFactory.builder() + .addIcon(OVERLAY_TELEPORTER_ACTIVE_GLOW) + .glow() + .build() }; return new ITexture[] { MACHINE_CASINGS[mTier][aColorIndex + 1], TextureFactory.of(OVERLAY_TELEPORTER), - TextureFactory.builder() - .addIcon(OVERLAY_TELEPORTER_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(OVERLAY_TELEPORTER_GLOW) + .glow() + .build() }; } @Override @@ -254,14 +253,10 @@ public class GT_MetaTileEntity_Teleporter extends GT_MetaTileEntity_BasicTank @Override public void onConfigLoad(GT_Config aConfig) { - sInterDimensionalTeleportAllowed = aConfig.get( - ConfigCategories.machineconfig, - "Teleporter.Interdimensional", - true); - sPassiveEnergyDrain = aConfig.get( - ConfigCategories.machineconfig, - "Teleporter.PassiveDrain", - sPassiveEnergyDrain); + sInterDimensionalTeleportAllowed = aConfig + .get(ConfigCategories.machineconfig, "Teleporter.Interdimensional", true); + sPassiveEnergyDrain = aConfig + .get(ConfigCategories.machineconfig, "Teleporter.PassiveDrain", sPassiveEnergyDrain); sPowerMultiplyer = aConfig.get(ConfigCategories.machineconfig, "Teleporter.PowerMultipler", sPowerMultiplyer); sFPowerMultiplyer = sPowerMultiplyer / 100.0; } @@ -270,8 +265,8 @@ public class GT_MetaTileEntity_Teleporter extends GT_MetaTileEntity_BasicTank public void onFirstTick(IGregTechTileEntity aBaseMetaTileEntity) { if (getBaseMetaTileEntity().isServerSide()) { if ((this.mTargetX == 0) && (this.mTargetY == 0) - && (this.mTargetZ == 0) - && (this.mTargetD == Integer.MIN_VALUE)) { + && (this.mTargetZ == 0) + && (this.mTargetD == Integer.MIN_VALUE)) { this.mTargetX = aBaseMetaTileEntity.getXCoord(); this.mTargetY = aBaseMetaTileEntity.getYCoord(); this.mTargetZ = aBaseMetaTileEntity.getZCoord(); @@ -297,7 +292,7 @@ public class GT_MetaTileEntity_Teleporter extends GT_MetaTileEntity_BasicTank public boolean hasDimensionalTeleportCapability() { return this.mDebug || // ( - sInterDimensionalTeleportAllowed // && + sInterDimensionalTeleportAllowed // && // ( // this.hasEgg || // mFluid.isFluidEqual(Materials.Nitrogen.getPlasma(1)) && mFluid.amount >= 1000 @@ -308,7 +303,7 @@ public class GT_MetaTileEntity_Teleporter extends GT_MetaTileEntity_BasicTank public boolean isDimensionalTeleportAvailable() { return this.mDebug || (hasDimensionalTeleportCapability() && GT_Utility.isRealDimension(this.mTargetD) - && GT_Utility.isRealDimension(getBaseMetaTileEntity().getWorld().provider.dimensionId)); + && GT_Utility.isRealDimension(getBaseMetaTileEntity().getWorld().provider.dimensionId)); } @Override @@ -346,54 +341,42 @@ public class GT_MetaTileEntity_Teleporter extends GT_MetaTileEntity_BasicTank if (tTile instanceof IInventory) { int tStacksize = mInventory[0].stackSize; GT_Utility.moveOneItemStack( - this, - tTile, - (byte) 0, - (byte) 0, - null, - false, - (byte) 64, - (byte) 1, - (byte) 64, - (byte) 1); + this, + tTile, + (byte) 0, + (byte) 0, + null, + false, + (byte) 64, + (byte) 1, + (byte) 64, + (byte) 1); if (mInventory[0] == null || mInventory[0].stackSize < tStacksize) { getBaseMetaTileEntity().decreaseStoredEnergyUnits( - (long) (Math.pow(tDistance, 1.5) * tDistance - * (tStacksize - (mInventory[0] == null ? 0 : mInventory[0].stackSize)) - * sFPowerMultiplyer), - false); + (long) (Math.pow(tDistance, 1.5) * tDistance + * (tStacksize - (mInventory[0] == null ? 0 : mInventory[0].stackSize)) + * sFPowerMultiplyer), + false); } } } List entities_in_box = getBaseMetaTileEntity().getWorld() - .getEntitiesWithinAABB( - Entity.class, - AxisAlignedBB.getBoundingBox( - getBaseMetaTileEntity().getOffsetX( - getBaseMetaTileEntity().getFrontFacing(), - 2) - 1, - getBaseMetaTileEntity().getOffsetY( - getBaseMetaTileEntity().getFrontFacing(), - 2) - 1, - getBaseMetaTileEntity().getOffsetZ( - getBaseMetaTileEntity().getFrontFacing(), - 2) - 1, - getBaseMetaTileEntity().getOffsetX( - getBaseMetaTileEntity().getFrontFacing(), - 2) + 2, - getBaseMetaTileEntity().getOffsetY( - getBaseMetaTileEntity().getFrontFacing(), - 2) + 2, - getBaseMetaTileEntity().getOffsetZ( - getBaseMetaTileEntity().getFrontFacing(), - 2) + 2)); + .getEntitiesWithinAABB( + Entity.class, + AxisAlignedBB.getBoundingBox( + getBaseMetaTileEntity().getOffsetX(getBaseMetaTileEntity().getFrontFacing(), 2) - 1, + getBaseMetaTileEntity().getOffsetY(getBaseMetaTileEntity().getFrontFacing(), 2) - 1, + getBaseMetaTileEntity().getOffsetZ(getBaseMetaTileEntity().getFrontFacing(), 2) - 1, + getBaseMetaTileEntity().getOffsetX(getBaseMetaTileEntity().getFrontFacing(), 2) + 2, + getBaseMetaTileEntity().getOffsetY(getBaseMetaTileEntity().getFrontFacing(), 2) + 2, + getBaseMetaTileEntity().getOffsetZ(getBaseMetaTileEntity().getFrontFacing(), 2) + 2)); for (Object tObject : entities_in_box) { if (((tObject instanceof Entity tEntity)) && (!((Entity) tObject).isDead)) { // GT_FML_LOGGER.info("teleport"+(Math.pow(tDistance, 1.5))); if (getBaseMetaTileEntity().decreaseStoredEnergyUnits( - (long) (Math.pow(tDistance, 1.5) * weightCalculation(tEntity) * sFPowerMultiplyer), - false)) { + (long) (Math.pow(tDistance, 1.5) * weightCalculation(tEntity) * sFPowerMultiplyer), + false)) { // if (hasDimensionalTeleportCapability() && this.mTargetD != // getBaseMetaTileEntity().getWorld().provider.dimensionId && (hasEgg || // mFluid.isFluidEqual(Materials.Nitrogen.getPlasma(1)))) { @@ -410,23 +393,23 @@ public class GT_MetaTileEntity_Teleporter extends GT_MetaTileEntity_BasicTank tEntity.riddenByEntity.mountEntity(null); } if ((this.mTargetD == getBaseMetaTileEntity().getWorld().provider.dimensionId) - || (!isDimensionalTeleportAvailable()) - || (!GT_Utility.moveEntityToDimensionAtCoords( - tEntity, - this.mTargetD, - this.mTargetX + 0.5D, - this.mTargetY + 0.5D, - this.mTargetZ + 0.5D))) { + || (!isDimensionalTeleportAvailable()) + || (!GT_Utility.moveEntityToDimensionAtCoords( + tEntity, + this.mTargetD, + this.mTargetX + 0.5D, + this.mTargetY + 0.5D, + this.mTargetZ + 0.5D))) { if ((tEntity instanceof EntityLivingBase)) { ((EntityLivingBase) tEntity).setPositionAndUpdate( - this.mTargetX + 0.5D, - this.mTargetY + 0.5D, - this.mTargetZ + 0.5D); + this.mTargetX + 0.5D, + this.mTargetY + 0.5D, + this.mTargetZ + 0.5D); } else { tEntity.setPosition( - this.mTargetX + 0.5D, - this.mTargetY + 0.5D, - this.mTargetZ + 0.5D); + this.mTargetX + 0.5D, + this.mTargetY + 0.5D, + this.mTargetZ + 0.5D); } } } @@ -442,15 +425,13 @@ public class GT_MetaTileEntity_Teleporter extends GT_MetaTileEntity_BasicTank private int distanceCalculation() { return Math.abs( - ((this.mTargetD != getBaseMetaTileEntity().getWorld().provider.dimensionId) - && (isDimensionalTeleportAvailable()) - ? 4000 - : (int) Math.sqrt( - Math.pow(getBaseMetaTileEntity().getXCoord() - this.mTargetX, 2.0D) - + Math.pow(getBaseMetaTileEntity().getYCoord() - this.mTargetY, 2.0D) - + Math.pow( - getBaseMetaTileEntity().getZCoord() - this.mTargetZ, - 2.0D)))); + ((this.mTargetD != getBaseMetaTileEntity().getWorld().provider.dimensionId) + && (isDimensionalTeleportAvailable()) + ? 4000 + : (int) Math.sqrt( + Math.pow(getBaseMetaTileEntity().getXCoord() - this.mTargetX, 2.0D) + + Math.pow(getBaseMetaTileEntity().getYCoord() - this.mTargetY, 2.0D) + + Math.pow(getBaseMetaTileEntity().getZCoord() - this.mTargetZ, 2.0D)))); } @Override @@ -591,32 +572,31 @@ public class GT_MetaTileEntity_Teleporter extends GT_MetaTileEntity_BasicTank @Override public void addUIWidgets(ModularWindow.Builder builder, UIBuildContext buildContext) { builder.widget( - new DrawableWidget().setDrawable(GT_UITextures.PICTURE_SCREEN_BLACK) - .setSize(90, 72) - .setPos(43, 4)) - .widget( - TextWidget.dynamicString(() -> "X: " + GT_Utility.parseNumberToString(mTargetX)) - .setDefaultColor(COLOR_TEXT_WHITE.get()) - .setPos(46, 8)) - .widget( - TextWidget.dynamicString(() -> "Y: " + GT_Utility.parseNumberToString(mTargetY)) - .setDefaultColor(COLOR_TEXT_WHITE.get()) - .setPos(46, 16)) - .widget( - TextWidget.dynamicString(() -> "Z: " + GT_Utility.parseNumberToString(mTargetZ)) - .setDefaultColor(COLOR_TEXT_WHITE.get()) - .setPos(46, 24)) - .widget( - TextWidget.dynamicString(() -> "Dim: " + GT_Utility.parseNumberToString(mTargetD)) - .setDefaultColor(COLOR_TEXT_WHITE.get()) - .setPos(46, 32)) - .widget( - TextWidget.dynamicString( - () -> "Dim Valid: " + (GT_Utility.isRealDimension(mTargetD) ? "Yes" : "No")) - .setDefaultColor(COLOR_TEXT_WHITE.get()) - .setEnabled(widget -> hasDimensionalTeleportCapability()) - .setPos(46, 40)) - .widget(new FakeSyncWidget.FluidStackSyncer(() -> mFluid, val -> mFluid = val)); + new DrawableWidget().setDrawable(GT_UITextures.PICTURE_SCREEN_BLACK) + .setSize(90, 72) + .setPos(43, 4)) + .widget( + TextWidget.dynamicString(() -> "X: " + GT_Utility.parseNumberToString(mTargetX)) + .setDefaultColor(COLOR_TEXT_WHITE.get()) + .setPos(46, 8)) + .widget( + TextWidget.dynamicString(() -> "Y: " + GT_Utility.parseNumberToString(mTargetY)) + .setDefaultColor(COLOR_TEXT_WHITE.get()) + .setPos(46, 16)) + .widget( + TextWidget.dynamicString(() -> "Z: " + GT_Utility.parseNumberToString(mTargetZ)) + .setDefaultColor(COLOR_TEXT_WHITE.get()) + .setPos(46, 24)) + .widget( + TextWidget.dynamicString(() -> "Dim: " + GT_Utility.parseNumberToString(mTargetD)) + .setDefaultColor(COLOR_TEXT_WHITE.get()) + .setPos(46, 32)) + .widget( + TextWidget.dynamicString(() -> "Dim Valid: " + (GT_Utility.isRealDimension(mTargetD) ? "Yes" : "No")) + .setDefaultColor(COLOR_TEXT_WHITE.get()) + .setEnabled(widget -> hasDimensionalTeleportCapability()) + .setPos(46, 40)) + .widget(new FakeSyncWidget.FluidStackSyncer(() -> mFluid, val -> mFluid = val)); addChangeNumberButtons(builder, GT_UITextures.OVERLAY_BUTTON_MINUS_LARGE, -512, -64, 7); addChangeNumberButtons(builder, GT_UITextures.OVERLAY_BUTTON_MINUS_SMALL, -16, -1, 25); @@ -624,40 +604,40 @@ public class GT_MetaTileEntity_Teleporter extends GT_MetaTileEntity_BasicTank addChangeNumberButtons(builder, GT_UITextures.OVERLAY_BUTTON_PLUS_LARGE, 512, 64, 151); addChangeNumberButton( - builder, - GT_UITextures.OVERLAY_BUTTON_MINUS_LARGE, - val -> mTargetD += val, - -16, - -8, - 7, - 58); + builder, + GT_UITextures.OVERLAY_BUTTON_MINUS_LARGE, + val -> mTargetD += val, + -16, + -8, + 7, + 58); addChangeNumberButton( - builder, - GT_UITextures.OVERLAY_BUTTON_MINUS_SMALL, - val -> mTargetD += val, - -4, - -1, - 25, - 58); + builder, + GT_UITextures.OVERLAY_BUTTON_MINUS_SMALL, + val -> mTargetD += val, + -4, + -1, + 25, + 58); addChangeNumberButton(builder, GT_UITextures.OVERLAY_BUTTON_PLUS_SMALL, val -> mTargetD += val, 4, 1, 133, 58); addChangeNumberButton(builder, GT_UITextures.OVERLAY_BUTTON_PLUS_LARGE, val -> mTargetD += val, 16, 8, 151, 58); } private void addChangeNumberButtons(ModularWindow.Builder builder, IDrawable overlay, int addNumberShift, - int addNumber, int xPos) { + int addNumber, int xPos) { addChangeNumberButton(builder, overlay, val -> mTargetX += val, addNumberShift, addNumber, xPos, 4); addChangeNumberButton(builder, overlay, val -> mTargetY += val, addNumberShift, addNumber, xPos, 22); addChangeNumberButton(builder, overlay, val -> mTargetZ += val, addNumberShift, addNumber, xPos, 40); } private void addChangeNumberButton(ModularWindow.Builder builder, IDrawable overlay, Consumer setter, - int addNumberShift, int addNumber, int xPos, int yPos) { + int addNumberShift, int addNumber, int xPos, int yPos) { builder.widget( - new ButtonWidget().setOnClick( - (clickData, widget) -> setter.accept(clickData.shift ? addNumberShift : addNumber)) - .setBackground(GT_UITextures.BUTTON_STANDARD, overlay) - .setSize(18, 18) - .setPos(xPos, yPos)); + new ButtonWidget() + .setOnClick((clickData, widget) -> setter.accept(clickData.shift ? addNumberShift : addNumber)) + .setBackground(GT_UITextures.BUTTON_STANDARD, overlay) + .setSize(18, 18) + .setPos(xPos, yPos)); } @Override @@ -668,8 +648,8 @@ public class GT_MetaTileEntity_Teleporter extends GT_MetaTileEntity_BasicTank @Override public void addGregTechLogo(ModularWindow.Builder builder) { builder.widget( - new DrawableWidget().setDrawable(getGUITextureSet().getGregTechLogo()) - .setSize(17, 17) - .setPos(113, 56)); + new DrawableWidget().setDrawable(getGUITextureSet().getGregTechLogo()) + .setSize(17, 17) + .setPos(113, 56)); } } diff --git a/src/main/java/gregtech/common/tileentities/machines/long_distance/GT_MetaTileEntity_LongDistancePipelineBase.java b/src/main/java/gregtech/common/tileentities/machines/long_distance/GT_MetaTileEntity_LongDistancePipelineBase.java index 898d819109..b868d151f2 100644 --- a/src/main/java/gregtech/common/tileentities/machines/long_distance/GT_MetaTileEntity_LongDistancePipelineBase.java +++ b/src/main/java/gregtech/common/tileentities/machines/long_distance/GT_MetaTileEntity_LongDistancePipelineBase.java @@ -66,12 +66,12 @@ public abstract class GT_MetaTileEntity_LongDistancePipelineBase extends GT_Meta protected GT_MetaTileEntity_LongDistancePipelineBase mTooCloseTarget = null, mTooCloseSender = null; public GT_MetaTileEntity_LongDistancePipelineBase(int aID, String aName, String aNameRegional, int aTier, - String aDescription) { + String aDescription) { super(aID, aName, aNameRegional, aTier, aDescription); } public GT_MetaTileEntity_LongDistancePipelineBase(String aName, int aTier, String aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, aDescription, aTextures); } @@ -91,9 +91,9 @@ public abstract class GT_MetaTileEntity_LongDistancePipelineBase extends GT_Meta super.loadNBTData(aNBT); if (aNBT.hasKey("target")) { mTargetPos = new ChunkCoordinates( - aNBT.getInteger("target.x"), - aNBT.getInteger("target.y"), - aNBT.getInteger("target.z")); + aNBT.getInteger("target.x"), + aNBT.getInteger("target.y"), + aNBT.getInteger("target.z")); if (getDistanceToSelf(mTargetPos) < minimalDistancePoints) mTargetPos = null; } } @@ -136,8 +136,9 @@ public abstract class GT_MetaTileEntity_LongDistancePipelineBase extends GT_Meta TileEntity te = world.getTileEntity(mTargetPos.posX, mTargetPos.posY, mTargetPos.posZ); final IMetaTileEntity tMeta; if (te instanceof BaseMetaTileEntity - && ((tMeta = ((BaseMetaTileEntity) te).getMetaTileEntity()) instanceof GT_MetaTileEntity_LongDistancePipelineBase) - && isSameClass((GT_MetaTileEntity_LongDistancePipelineBase) tMeta)) { + && ((tMeta = ((BaseMetaTileEntity) te) + .getMetaTileEntity()) instanceof GT_MetaTileEntity_LongDistancePipelineBase) + && isSameClass((GT_MetaTileEntity_LongDistancePipelineBase) tMeta)) { // It's the right type! mTarget = (GT_MetaTileEntity_LongDistancePipelineBase) tMeta; } else if (te != null) { @@ -151,8 +152,8 @@ public abstract class GT_MetaTileEntity_LongDistancePipelineBase extends GT_Meta mTooCloseSender = null; if (mTarget == null || mTarget == this) return false; if (mTarget.mSender == null || mTarget.mSender.isDead() - || mTarget.mSender.mTarget == null - || mTarget.mSender.mTarget.isDead()) { + || mTarget.mSender.mTarget == null + || mTarget.mSender.mTarget.isDead()) { mTarget.mSender = this; mTarget.mTooCloseSender = null; } @@ -162,22 +163,22 @@ public abstract class GT_MetaTileEntity_LongDistancePipelineBase extends GT_Meta @Override public ArrayList getSpecialDebugInfo(IGregTechTileEntity aBaseMetaTileEntity, EntityPlayer aPlayer, - int aLogLevel, ArrayList aList) { + int aLogLevel, ArrayList aList) { if (mSender != null && !mSender.isDead() && mSender.mTarget == this) { final ChunkCoordinates coords = mSender.getCoords(); aList.addAll( - Arrays.asList( - "Is the Target", - "Sender is at: X: " + coords.posX + " Y: " + coords.posY + " Z: " + coords.posZ)); + Arrays.asList( + "Is the Target", + "Sender is at: X: " + coords.posX + " Y: " + coords.posY + " Z: " + coords.posZ)); } else { aList.addAll( - Arrays.asList( - checkTarget() ? "Has Target" : "Has no loaded Target", - "Target should be around: X: " + mTargetPos.posX - + " Y: " - + mTargetPos.posY - + " Z: " - + mTargetPos.posZ)); + Arrays.asList( + checkTarget() ? "Has Target" : "Has no loaded Target", + "Target should be around: X: " + mTargetPos.posX + + " Y: " + + mTargetPos.posY + + " Z: " + + mTargetPos.posZ)); } return aList; @@ -208,15 +209,15 @@ public abstract class GT_MetaTileEntity_LongDistancePipelineBase extends GT_Meta if (aMetaData != getPipeMeta()) return; HashSet tVisited = new HashSet<>(Collections.singletonList(getCoords())), - tWires = new HashSet<>(); + tWires = new HashSet<>(); Queue tQueue = new LinkedList<>( - Collections.singletonList(getFacingOffset(gtTile, gtTile.getBackFacing()))); + Collections.singletonList(getFacingOffset(gtTile, gtTile.getBackFacing()))); while (!tQueue.isEmpty()) { final ChunkCoordinates aCoords = tQueue.poll(); if (world.getBlock(aCoords.posX, aCoords.posY, aCoords.posZ) == aBlock - && world.getBlockMetadata(aCoords.posX, aCoords.posY, aCoords.posZ) == aMetaData) { + && world.getBlockMetadata(aCoords.posX, aCoords.posY, aCoords.posZ) == aMetaData) { // We've got another pipe/wire block // TODO: Make sure it's the right type of pipe/wire via meta ChunkCoordinates tCoords; @@ -240,11 +241,12 @@ public abstract class GT_MetaTileEntity_LongDistancePipelineBase extends GT_Meta // It's not a block - let's see if it's a tile entity TileEntity tTileEntity = world.getTileEntity(aCoords.posX, aCoords.posY, aCoords.posZ); if (tTileEntity != gtTile && tTileEntity instanceof BaseMetaTileEntity - && ((BaseMetaTileEntity) tTileEntity).getMetaTileEntity() instanceof GT_MetaTileEntity_LongDistancePipelineBase tGtTile) { + && ((BaseMetaTileEntity) tTileEntity) + .getMetaTileEntity() instanceof GT_MetaTileEntity_LongDistancePipelineBase tGtTile) { if (isSameClass(tGtTile) && tWires.contains( - tGtTile.getFacingOffset( - (BaseMetaTileEntity) tTileEntity, - ((BaseMetaTileEntity) tTileEntity).getFrontFacing()))) { + tGtTile.getFacingOffset( + (BaseMetaTileEntity) tTileEntity, + ((BaseMetaTileEntity) tTileEntity).getFrontFacing()))) { // If it's the same class, and we've scanned a wire in front of it (the input side), we've // found our target // still need to check if it's distant enough @@ -273,15 +275,15 @@ public abstract class GT_MetaTileEntity_LongDistancePipelineBase extends GT_Meta protected int getDistanceToSelf(ChunkCoordinates aCoords) { return Math.abs(getBaseMetaTileEntity().getXCoord() - aCoords.posX) - + Math.abs(getBaseMetaTileEntity().getYCoord() - aCoords.posY) / 2 - + Math.abs(getBaseMetaTileEntity().getZCoord() - aCoords.posZ); + + Math.abs(getBaseMetaTileEntity().getYCoord() - aCoords.posY) / 2 + + Math.abs(getBaseMetaTileEntity().getZCoord() - aCoords.posZ); } public ChunkCoordinates getFacingOffset(IGregTechTileEntity gt_tile, byte aSide) { return new ChunkCoordinates( - gt_tile.getOffsetX(aSide, 1), - gt_tile.getOffsetY(aSide, 1), - gt_tile.getOffsetZ(aSide, 1)); + gt_tile.getOffsetX(aSide, 1), + gt_tile.getOffsetY(aSide, 1), + gt_tile.getOffsetZ(aSide, 1)); } public ChunkCoordinates getCoords() { @@ -308,11 +310,11 @@ public abstract class GT_MetaTileEntity_LongDistancePipelineBase extends GT_Meta @Override public void getWailaBody(ItemStack itemStack, List currentTip, IWailaDataAccessor accessor, - IWailaConfigHandler config) { + IWailaConfigHandler config) { final NBTTagCompound tag = accessor.getNBTData(); final int facing = getBaseMetaTileEntity().getFrontFacing(); final int side = (byte) accessor.getSide() - .ordinal(); + .ordinal(); if (side == facing) currentTip.add(GOLD + "Pipeline Input" + RESET); else if (side == ForgeDirection.OPPOSITES[facing]) currentTip.add(BLUE + "Pipeline Output" + RESET); @@ -333,7 +335,7 @@ public abstract class GT_MetaTileEntity_LongDistancePipelineBase extends GT_Meta @Override public void getWailaNBTData(EntityPlayerMP player, TileEntity tile, NBTTagCompound tag, World world, int x, int y, - int z) { + int z) { super.getWailaNBTData(player, tile, tag, world, x, y, z); tag.setBoolean("hasSender", mSender != null); diff --git a/src/main/java/gregtech/common/tileentities/machines/long_distance/GT_MetaTileEntity_LongDistancePipelineFluid.java b/src/main/java/gregtech/common/tileentities/machines/long_distance/GT_MetaTileEntity_LongDistancePipelineFluid.java index 2b4f4fe377..6b95d20d5c 100644 --- a/src/main/java/gregtech/common/tileentities/machines/long_distance/GT_MetaTileEntity_LongDistancePipelineFluid.java +++ b/src/main/java/gregtech/common/tileentities/machines/long_distance/GT_MetaTileEntity_LongDistancePipelineFluid.java @@ -46,7 +46,7 @@ public class GT_MetaTileEntity_LongDistancePipelineFluid extends GT_MetaTileEnti } public GT_MetaTileEntity_LongDistancePipelineFluid(String aName, int aTier, String aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, aDescription, aTextures); } @@ -110,15 +110,15 @@ public class GT_MetaTileEntity_LongDistancePipelineFluid extends GT_MetaTileEnti @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { if (aSide == aFacing) return new ITexture[] { MACHINE_CASINGS[mTier][aColorIndex + 1], - TextureFactory.of(OVERLAY_PIPELINE_FLUID_FRONT) }; + TextureFactory.of(OVERLAY_PIPELINE_FLUID_FRONT) }; else if (aSide == GT_Utility.getOppositeSide(aFacing)) return new ITexture[] { - MACHINE_CASINGS[mTier][aColorIndex + 1], TextureFactory.of(OVERLAY_PIPELINE_FLUID_BACK) }; + MACHINE_CASINGS[mTier][aColorIndex + 1], TextureFactory.of(OVERLAY_PIPELINE_FLUID_BACK) }; else return new ITexture[] { MACHINE_CASINGS[mTier][aColorIndex + 1], - TextureFactory.of(OVERLAY_PIPELINE_FLUID_SIDE), TextureFactory.builder() - .addIcon(OVERLAY_PIPELINE_FLUID_SIDE_GLOW) - .glow() - .build() }; + TextureFactory.of(OVERLAY_PIPELINE_FLUID_SIDE), TextureFactory.builder() + .addIcon(OVERLAY_PIPELINE_FLUID_SIDE_GLOW) + .glow() + .build() }; } } diff --git a/src/main/java/gregtech/common/tileentities/machines/long_distance/GT_MetaTileEntity_LongDistancePipelineItem.java b/src/main/java/gregtech/common/tileentities/machines/long_distance/GT_MetaTileEntity_LongDistancePipelineItem.java index 85c009b350..dc3956d2a6 100644 --- a/src/main/java/gregtech/common/tileentities/machines/long_distance/GT_MetaTileEntity_LongDistancePipelineItem.java +++ b/src/main/java/gregtech/common/tileentities/machines/long_distance/GT_MetaTileEntity_LongDistancePipelineItem.java @@ -44,7 +44,7 @@ public class GT_MetaTileEntity_LongDistancePipelineItem extends GT_MetaTileEntit } public GT_MetaTileEntity_LongDistancePipelineItem(String aName, int aTier, String aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, aDescription, aTextures); } @@ -189,15 +189,15 @@ public class GT_MetaTileEntity_LongDistancePipelineItem extends GT_MetaTileEntit @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { if (aSide == aFacing) return new ITexture[] { MACHINE_CASINGS[mTier][aColorIndex + 1], - TextureFactory.of(OVERLAY_PIPELINE_ITEM_FRONT) }; + TextureFactory.of(OVERLAY_PIPELINE_ITEM_FRONT) }; else if (aSide == GT_Utility.getOppositeSide(aFacing)) return new ITexture[] { - MACHINE_CASINGS[mTier][aColorIndex + 1], TextureFactory.of(OVERLAY_PIPELINE_ITEM_BACK) }; + MACHINE_CASINGS[mTier][aColorIndex + 1], TextureFactory.of(OVERLAY_PIPELINE_ITEM_BACK) }; else return new ITexture[] { MACHINE_CASINGS[mTier][aColorIndex + 1], - TextureFactory.of(OVERLAY_PIPELINE_ITEM_SIDE), TextureFactory.builder() - .addIcon(OVERLAY_PIPELINE_ITEM_SIDE_GLOW) - .glow() - .build() }; + TextureFactory.of(OVERLAY_PIPELINE_ITEM_SIDE), TextureFactory.builder() + .addIcon(OVERLAY_PIPELINE_ITEM_SIDE_GLOW) + .glow() + .build() }; } } diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_AbstractMultiFurnace.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_AbstractMultiFurnace.java index 51c7c2eb13..01638c4427 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_AbstractMultiFurnace.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_AbstractMultiFurnace.java @@ -7,7 +7,7 @@ import gregtech.api.interfaces.tileentity.IGregTechTileEntity; import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_EnhancedMultiBlockBase; public abstract class GT_MetaTileEntity_AbstractMultiFurnace> - extends GT_MetaTileEntity_EnhancedMultiBlockBase { + extends GT_MetaTileEntity_EnhancedMultiBlockBase { private HeatingCoilLevel mCoilLevel; @@ -26,9 +26,9 @@ public abstract class GT_MetaTileEntity_AbstractMultiFurnace implements ISurvivalConstructable { +public class GT_MetaTileEntity_AssemblyLine + extends GT_MetaTileEntity_EnhancedMultiBlockBase implements ISurvivalConstructable { public ArrayList mDataAccessHatches = new ArrayList<>(); private static final String STRUCTURE_PIECE_FIRST = "first"; private static final String STRUCTURE_PIECE_LATER = "later"; private static final String STRUCTURE_PIECE_LAST = "last"; - private static final IStructureDefinition STRUCTURE_DEFINITION = StructureDefinition.builder() - .addShape( - STRUCTURE_PIECE_FIRST, - transpose( - new String[][] { - { " ", "e", - " " }, - { "~", "l", - "G" }, - { "g", "m", - "g" }, - { "b", "i", - "b" }, })) - .addShape( - STRUCTURE_PIECE_LATER, - transpose( - new String[][] { - { " ", "e", - " " }, - { "d", "l", - "d" }, - { "g", "m", - "g" }, - { "b", "I", - "b" }, })) - .addShape( - STRUCTURE_PIECE_LAST, - transpose( - new String[][] { - { " ", "e", - " " }, - { "d", "l", - "d" }, - { "g", "m", - "g" }, - { "o", "i", - "b" }, })) - .addElement( - 'G', - ofBlock( - GregTech_API.sBlockCasings3, - 10)) // grate - // machine - // casing - .addElement( - 'l', - ofBlock( - GregTech_API.sBlockCasings2, - 9)) // assembler - // machine - // casing - .addElement( - 'm', - ofBlock( - GregTech_API.sBlockCasings2, - 5)) // assembling - // line - // casing - .addElement( - 'g', - ofChain( - ofBlockUnlocalizedName( - IndustrialCraft2.ID, - "blockAlloyGlass", - 0, - true), - ofBlockUnlocalizedName( - BartWorks.ID, - "BW_GlasBlocks", - 0, - true), - ofBlockUnlocalizedName( - BartWorks.ID, - "BW_GlasBlocks2", - 0, - true), - // warded - // glass - ofBlockUnlocalizedName( - Thaumcraft.ID, - "blockCosmeticOpaque", - 2, - false))) - .addElement( - 'e', - ofChain( - Energy.newAny( - 16, - 1, - ForgeDirection.UP, - ForgeDirection.NORTH, - ForgeDirection.SOUTH), - ofBlock( - GregTech_API.sBlockCasings2, - 0))) - .addElement( - 'd', - buildHatchAdder( - GT_MetaTileEntity_AssemblyLine.class).atLeast( - DataHatchElement.DataAccess) - .dot( - 2) - .casingIndex( - 42) - .allowOnly( - ForgeDirection.NORTH) - .buildAndChain( - GregTech_API.sBlockCasings3, - 10)) - .addElement( - 'b', - buildHatchAdder( - GT_MetaTileEntity_AssemblyLine.class).atLeast( - InputHatch, - InputHatch, - InputHatch, - InputHatch, - Maintenance) - .casingIndex( - 16) - .dot( - 3) - .allowOnly( - ForgeDirection.DOWN) - .buildAndChain( - ofBlock( - GregTech_API.sBlockCasings2, - 0), - ofHatchAdder( - GT_MetaTileEntity_AssemblyLine::addOutputToMachineList, - 16, - 4))) - .addElement( - 'I', - ofChain( - // all - // blocks - // nearby - // use - // solid - // steel - // casing, - // so - // let's - // use - // the - // texture - // of - // that - InputBus.newAny( - 16, - 5, - ForgeDirection.DOWN), - ofHatchAdder( - GT_MetaTileEntity_AssemblyLine::addOutputToMachineList, - 16, - 4))) - .addElement( - 'i', - InputBus.newAny( - 16, - 5, - ForgeDirection.DOWN)) - .addElement( - 'o', - OutputBus.newAny( - 16, - 4, - ForgeDirection.DOWN)) - .build(); + private static final IStructureDefinition STRUCTURE_DEFINITION = StructureDefinition + .builder() + .addShape( + STRUCTURE_PIECE_FIRST, + transpose(new String[][] { { " ", "e", " " }, { "~", "l", "G" }, { "g", "m", "g" }, { "b", "i", "b" }, })) + .addShape( + STRUCTURE_PIECE_LATER, + transpose(new String[][] { { " ", "e", " " }, { "d", "l", "d" }, { "g", "m", "g" }, { "b", "I", "b" }, })) + .addShape( + STRUCTURE_PIECE_LAST, + transpose(new String[][] { { " ", "e", " " }, { "d", "l", "d" }, { "g", "m", "g" }, { "o", "i", "b" }, })) + .addElement('G', ofBlock(GregTech_API.sBlockCasings3, 10)) // grate + // machine + // casing + .addElement('l', ofBlock(GregTech_API.sBlockCasings2, 9)) // assembler + // machine + // casing + .addElement('m', ofBlock(GregTech_API.sBlockCasings2, 5)) // assembling + // line + // casing + .addElement( + 'g', + ofChain( + ofBlockUnlocalizedName(IndustrialCraft2.ID, "blockAlloyGlass", 0, true), + ofBlockUnlocalizedName(BartWorks.ID, "BW_GlasBlocks", 0, true), + ofBlockUnlocalizedName(BartWorks.ID, "BW_GlasBlocks2", 0, true), + // warded + // glass + ofBlockUnlocalizedName(Thaumcraft.ID, "blockCosmeticOpaque", 2, false))) + .addElement( + 'e', + ofChain( + Energy.newAny(16, 1, ForgeDirection.UP, ForgeDirection.NORTH, ForgeDirection.SOUTH), + ofBlock(GregTech_API.sBlockCasings2, 0))) + .addElement( + 'd', + buildHatchAdder(GT_MetaTileEntity_AssemblyLine.class).atLeast(DataHatchElement.DataAccess) + .dot(2) + .casingIndex(42) + .allowOnly(ForgeDirection.NORTH) + .buildAndChain(GregTech_API.sBlockCasings3, 10)) + .addElement( + 'b', + buildHatchAdder(GT_MetaTileEntity_AssemblyLine.class) + .atLeast(InputHatch, InputHatch, InputHatch, InputHatch, Maintenance) + .casingIndex(16) + .dot(3) + .allowOnly(ForgeDirection.DOWN) + .buildAndChain( + ofBlock(GregTech_API.sBlockCasings2, 0), + ofHatchAdder(GT_MetaTileEntity_AssemblyLine::addOutputToMachineList, 16, 4))) + .addElement( + 'I', + ofChain( + // all + // blocks + // nearby + // use + // solid + // steel + // casing, + // so + // let's + // use + // the + // texture + // of + // that + InputBus.newAny(16, 5, ForgeDirection.DOWN), + ofHatchAdder(GT_MetaTileEntity_AssemblyLine::addOutputToMachineList, 16, 4))) + .addElement('i', InputBus.newAny(16, 5, ForgeDirection.DOWN)) + .addElement('o', OutputBus.newAny(16, 4, ForgeDirection.DOWN)) + .build(); public GT_MetaTileEntity_AssemblyLine(int aID, String aName, String aNameRegional) { super(aID, aName, aNameRegional); @@ -242,54 +145,52 @@ public class GT_MetaTileEntity_AssemblyLine extends protected GT_Multiblock_Tooltip_Builder createTooltip() { final GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder(); tt.addMachineType("Assembling Line") - .addInfo("Controller block for the Assembling Line") - .addInfo("Used to make complex machine parts (LuV+)") - .addInfo("Does not make Assembler items") - .addSeparator() - .beginVariableStructureBlock(5, 16, 4, 4, 3, 3, false) // ? - .addStructureInfo("From Bottom to Top, Left to Right") - .addStructureInfo( - "Layer 1 - Solid Steel Machine Casing, Input Bus (last can be Output Bus), Solid Steel Machine Casing") - .addStructureInfo( - "Layer 2 - Borosilicate Glass(any)/Warded Glass/Reinforced Glass, Assembling Line Casing, Reinforced Glass") - .addStructureInfo("Layer 3 - Grate Machine Casing, Assembler Machine Casing, Grate Machine Casing") - .addStructureInfo("Layer 4 - Empty, Solid Steel Machine Casing, Empty") - .addStructureInfo("Up to 16 repeating slices, each one allows for 1 more item in recipes") - .addController("Either Grate on layer 3 of the first slice") - .addEnergyHatch("Any layer 4 casing", 1) - .addMaintenanceHatch("Any layer 1 casing", 3) - .addInputBus("As specified on layer 1", 4, 5) - .addInputHatch("Any layer 1 casing", 3) - .addOutputBus("Replaces Input Bus on final slice or on any solid steel casing on layer 1", 4) - .addOtherStructurePart("Data Access Hatch", "Optional, next to controller", 2) - .toolTipFinisher("Gregtech"); + .addInfo("Controller block for the Assembling Line") + .addInfo("Used to make complex machine parts (LuV+)") + .addInfo("Does not make Assembler items") + .addSeparator() + .beginVariableStructureBlock(5, 16, 4, 4, 3, 3, false) // ? + .addStructureInfo("From Bottom to Top, Left to Right") + .addStructureInfo( + "Layer 1 - Solid Steel Machine Casing, Input Bus (last can be Output Bus), Solid Steel Machine Casing") + .addStructureInfo( + "Layer 2 - Borosilicate Glass(any)/Warded Glass/Reinforced Glass, Assembling Line Casing, Reinforced Glass") + .addStructureInfo("Layer 3 - Grate Machine Casing, Assembler Machine Casing, Grate Machine Casing") + .addStructureInfo("Layer 4 - Empty, Solid Steel Machine Casing, Empty") + .addStructureInfo("Up to 16 repeating slices, each one allows for 1 more item in recipes") + .addController("Either Grate on layer 3 of the first slice") + .addEnergyHatch("Any layer 4 casing", 1) + .addMaintenanceHatch("Any layer 1 casing", 3) + .addInputBus("As specified on layer 1", 4, 5) + .addInputHatch("Any layer 1 casing", 3) + .addOutputBus("Replaces Input Bus on final slice or on any solid steel casing on layer 1", 4) + .addOtherStructurePart("Data Access Hatch", "Optional, next to controller", 2) + .toolTipFinisher("Gregtech"); return tt; } @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { if (aSide == aFacing) { if (aActive) return new ITexture[] { BlockIcons.casingTexturePages[0][16], TextureFactory.builder() - .addIcon( - OVERLAY_FRONT_ASSEMBLY_LINE_ACTIVE) - .extFacing() - .build(), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_ASSEMBLY_LINE_ACTIVE_GLOW) - .extFacing() - .glow() - .build() }; + .addIcon(OVERLAY_FRONT_ASSEMBLY_LINE_ACTIVE) + .extFacing() + .build(), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_ASSEMBLY_LINE_ACTIVE_GLOW) + .extFacing() + .glow() + .build() }; return new ITexture[] { BlockIcons.casingTexturePages[0][16], TextureFactory.builder() - .addIcon( - OVERLAY_FRONT_ASSEMBLY_LINE) - .extFacing() - .build(), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_ASSEMBLY_LINE_GLOW) - .extFacing() - .glow() - .build() }; + .addIcon(OVERLAY_FRONT_ASSEMBLY_LINE) + .extFacing() + .build(), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_ASSEMBLY_LINE_GLOW) + .extFacing() + .glow() + .build() }; } return new ITexture[] { Textures.BlockIcons.casingTexturePages[0][16] }; } @@ -323,9 +224,8 @@ public class GT_MetaTileEntity_AssemblyLine extends boolean foundRecipe = false; nextDataStick: for (ItemStack tDataStick : tDataStickList) { - GT_AssemblyLineUtils.LookupResult tLookupResult = GT_AssemblyLineUtils.findAssemblyLineRecipeFromDataStick( - tDataStick, - false); + GT_AssemblyLineUtils.LookupResult tLookupResult = GT_AssemblyLineUtils + .findAssemblyLineRecipeFromDataStick(tDataStick, false); if (tLookupResult.getType() == GT_AssemblyLineUtils.LookupResultType.INVALID_STICK) continue; @@ -347,11 +247,11 @@ public class GT_MetaTileEntity_AssemblyLine extends if (mInputBusses.size() < tRecipe.mInputs.length || mInputHatches.size() < tRecipe.mFluidInputs.length) { if (GT_Values.D1) { GT_FML_LOGGER.info( - "Not enough sources: Need ({}, {}), has ({}, {})", - mInputBusses.size(), - tRecipe.mInputs.length, - mInputHatches.size(), - tRecipe.mFluidInputs.length); + "Not enough sources: Need ({}, {}), has ({}, {})", + mInputBusses.size(), + tRecipe.mInputs.length, + mInputHatches.size(), + tRecipe.mFluidInputs.length); } continue; } @@ -384,8 +284,7 @@ public class GT_MetaTileEntity_AssemblyLine extends } else { if (mInputHatches.get(i) instanceof GT_MetaTileEntity_Hatch_MultiInput tMultiHatch) { if (!tMultiHatch.hasFluid(tRecipe.mFluidInputs[i]) - || tMultiHatch.getFluidAmount(tRecipe.mFluidInputs[i]) - < tRecipe.mFluidInputs[i].amount) { + || tMultiHatch.getFluidAmount(tRecipe.mFluidInputs[i]) < tRecipe.mFluidInputs[i].amount) { continue nextDataStick; } tFluids[i] = tRecipe.mFluidInputs[i].amount; @@ -393,7 +292,7 @@ public class GT_MetaTileEntity_AssemblyLine extends } else { FluidStack fluidInHatch = mInputHatches.get(i).mFluid; if (!GT_Utility.areFluidsEqual(fluidInHatch, tRecipe.mFluidInputs[i], true) - || fluidInHatch.amount < tRecipe.mFluidInputs[i].amount) { + || fluidInHatch.amount < tRecipe.mFluidInputs[i].amount) { continue nextDataStick; } tFluids[i] = tRecipe.mFluidInputs[i].amount; @@ -433,7 +332,7 @@ public class GT_MetaTileEntity_AssemblyLine extends } for (int i = 0; i < tStack.length; i++) { ItemStack stackInSlot = mInputBusses.get(i) - .getStackInSlot(0); + .getStackInSlot(0); stackInSlot.stackSize -= tStack[i]; } @@ -535,17 +434,15 @@ public class GT_MetaTileEntity_AssemblyLine extends for (GT_MetaTileEntity_Hatch_DataAccess tHatch : mDataAccessHatches) { if (isValidMetaTileEntity(tHatch)) { for (int i = 0; i < tHatch.getBaseMetaTileEntity() - .getSizeInventory(); i++) { + .getSizeInventory(); i++) { if (tHatch.getBaseMetaTileEntity() - .getStackInSlot(i) - != null - && isCorrectDataItem( - tHatch.getBaseMetaTileEntity() - .getStackInSlot(i), - state)) + .getStackInSlot(i) != null && isCorrectDataItem( + tHatch.getBaseMetaTileEntity() + .getStackInSlot(i), + state)) rList.add( - tHatch.getBaseMetaTileEntity() - .getStackInSlot(i)); + tHatch.getBaseMetaTileEntity() + .getStackInSlot(i)); } } } diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_BrickedBlastFurnace.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_BrickedBlastFurnace.java index 96b4c19b93..b650619966 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_BrickedBlastFurnace.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_BrickedBlastFurnace.java @@ -18,17 +18,16 @@ import gregtech.api.render.TextureFactory; import gregtech.api.util.GT_Multiblock_Tooltip_Builder; public class GT_MetaTileEntity_BrickedBlastFurnace extends GT_MetaTileEntity_PrimitiveBlastFurnace - implements ISecondaryDescribable { + implements ISecondaryDescribable { private static final ITexture[] FACING_SIDE = { TextureFactory.of(Textures.BlockIcons.MACHINE_CASING_DENSEBRICKS) }; private static final ITexture[] FACING_FRONT = { - TextureFactory.of(Textures.BlockIcons.MACHINE_CASING_BRICKEDBLASTFURNACE_INACTIVE) }; - private static final ITexture[] FACING_ACTIVE = { TextureFactory.of( - Textures.BlockIcons.MACHINE_CASING_BRICKEDBLASTFURNACE_ACTIVE), - TextureFactory.builder() - .addIcon(BlockIcons.MACHINE_CASING_BRICKEDBLASTFURNACE_ACTIVE_GLOW) - .glow() - .build() }; + TextureFactory.of(Textures.BlockIcons.MACHINE_CASING_BRICKEDBLASTFURNACE_INACTIVE) }; + private static final ITexture[] FACING_ACTIVE = { + TextureFactory.of(Textures.BlockIcons.MACHINE_CASING_BRICKEDBLASTFURNACE_ACTIVE), TextureFactory.builder() + .addIcon(BlockIcons.MACHINE_CASING_BRICKEDBLASTFURNACE_ACTIVE_GLOW) + .glow() + .build() }; private GT_Multiblock_Tooltip_Builder tooltipBuilder; public GT_MetaTileEntity_BrickedBlastFurnace(int aID, String aName, String aNameRegional) { @@ -61,25 +60,25 @@ public class GT_MetaTileEntity_BrickedBlastFurnace extends GT_MetaTileEntity_Pri if (tooltipBuilder == null) { tooltipBuilder = new GT_Multiblock_Tooltip_Builder(); tooltipBuilder.addMachineType("Blast Furnace") - .addInfo("Controller Block for the Bricked Blast Furnace") - .addInfo("Usable for Steel and general Pyrometallurgy") - .addInfo("Has a useful interface, unlike other gregtech multis") - .addPollutionAmount(GT_Mod.gregtechproxy.mPollutionPrimitveBlastFurnacePerSecond) - .addSeparator() - .beginStructureBlock(3, 4, 3, true) - .addController("Front center") - .addOtherStructurePart("Firebricks", "Everything except the controller") - .addStructureInfo("The top block is also empty") - .addStructureInfo("You can share the walls of GT multis, so") - .addStructureInfo("each additional one costs less, up to 4") - .toolTipFinisher("Gregtech"); + .addInfo("Controller Block for the Bricked Blast Furnace") + .addInfo("Usable for Steel and general Pyrometallurgy") + .addInfo("Has a useful interface, unlike other gregtech multis") + .addPollutionAmount(GT_Mod.gregtechproxy.mPollutionPrimitveBlastFurnacePerSecond) + .addSeparator() + .beginStructureBlock(3, 4, 3, true) + .addController("Front center") + .addOtherStructurePart("Firebricks", "Everything except the controller") + .addStructureInfo("The top block is also empty") + .addStructureInfo("You can share the walls of GT multis, so") + .addStructureInfo("each additional one costs less, up to 4") + .toolTipFinisher("Gregtech"); } return tooltipBuilder; } @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { if (aSide == aFacing) { return aActive ? FACING_ACTIVE : FACING_FRONT; } diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_BronzeBlastFurnace.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_BronzeBlastFurnace.java index 1710b33513..2341f6a046 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_BronzeBlastFurnace.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_BronzeBlastFurnace.java @@ -20,10 +20,10 @@ public class GT_MetaTileEntity_BronzeBlastFurnace extends GT_MetaTileEntity_Prim private static final ITexture[] FACING_SIDE = { TextureFactory.of(MACHINE_BRONZEPLATEDBRICKS) }; private static final ITexture[] FACING_FRONT = { TextureFactory.of(MACHINE_BRONZEBLASTFURNACE) }; private static final ITexture[] FACING_ACTIVE = { TextureFactory.of(MACHINE_BRONZEBLASTFURNACE_ACTIVE), - TextureFactory.builder() - .addIcon(MACHINE_BRONZEBLASTFURNACE_ACTIVE_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(MACHINE_BRONZEBLASTFURNACE_ACTIVE_GLOW) + .glow() + .build() }; public GT_MetaTileEntity_BronzeBlastFurnace(int aID, String aName, String aNameRegional) { super(aID, aName, aNameRegional); @@ -40,7 +40,7 @@ public class GT_MetaTileEntity_BronzeBlastFurnace extends GT_MetaTileEntity_Prim @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { if (aSide == aFacing) { return aActive ? FACING_ACTIVE : FACING_FRONT; } diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_Charcoal_Pit.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_Charcoal_Pit.java index 8780bdb038..9e1912ca51 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_Charcoal_Pit.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_Charcoal_Pit.java @@ -33,7 +33,7 @@ import gregtech.api.util.WorldSpawnedEventBuilder; import gregtech.common.GT_Pollution; public class GT_MetaTileEntity_Charcoal_Pit extends GT_MetaTileEntity_TooltipMultiBlockBase - implements ISecondaryDescribable { + implements ISecondaryDescribable { private boolean running = false; @@ -110,16 +110,16 @@ public class GT_MetaTileEntity_Charcoal_Pit extends GT_MetaTileEntity_TooltipMul if (running) { for (ChunkPosition tPos : tList1) { if (isWoodLog( - getBaseMetaTileEntity().getBlockOffset(tPos.chunkPosX, tPos.chunkPosY, tPos.chunkPosZ), - getBaseMetaTileEntity().getMetaIDOffset(tPos.chunkPosX, tPos.chunkPosY, tPos.chunkPosZ))) + getBaseMetaTileEntity().getBlockOffset(tPos.chunkPosX, tPos.chunkPosY, tPos.chunkPosZ), + getBaseMetaTileEntity().getMetaIDOffset(tPos.chunkPosX, tPos.chunkPosY, tPos.chunkPosZ))) getBaseMetaTileEntity().getWorld() - .setBlock( - getBaseMetaTileEntity().getXCoord() + tPos.chunkPosX, - getBaseMetaTileEntity().getYCoord() + tPos.chunkPosY, - getBaseMetaTileEntity().getZCoord() + tPos.chunkPosZ, - GregTech_API.sBlockReinforced, - 4, - 3); + .setBlock( + getBaseMetaTileEntity().getXCoord() + tPos.chunkPosX, + getBaseMetaTileEntity().getYCoord() + tPos.chunkPosY, + getBaseMetaTileEntity().getZCoord() + tPos.chunkPosZ, + GregTech_API.sBlockReinforced, + 4, + 3); } running = false; return false; @@ -133,16 +133,15 @@ public class GT_MetaTileEntity_Charcoal_Pit extends GT_MetaTileEntity_TooltipMul private boolean isWoodLog(Block log, int meta) { for (int id : OreDictionary.getOreIDs(new ItemStack(log, 1, meta))) { if (OreDictionary.getOreName(id) - .equals("logWood")) - return true; + .equals("logWood")) return true; } String tTool = log.getHarvestTool(meta); return OrePrefixes.log.contains(new ItemStack(log, 1, meta)) && ("axe".equals(tTool)) - && (log.getMaterial() == Material.wood); + && (log.getMaterial() == Material.wood); } private boolean checkAllBlockSides(int aX, int aY, int aZ, ArrayList aList1, - ArrayList aList2) { + ArrayList aList2) { boolean expandToChunkXPos = false; boolean expandToChunkXNeg = false; boolean expandToChunkYPos = false; @@ -153,8 +152,7 @@ public class GT_MetaTileEntity_Charcoal_Pit extends GT_MetaTileEntity_TooltipMul Block blockXPos = getBaseMetaTileEntity().getBlockOffset(aX + 1, aY, aZ); if (aX + 1 < 6 && (isWoodLog(blockXPos, getBaseMetaTileEntity().getMetaIDOffset(aX + 1, aY, aZ)))) { if (!aList1.contains(new ChunkPosition(aX + 1, aY, aZ)) - && (!aList2.contains(new ChunkPosition(aX + 1, aY, aZ)))) - expandToChunkXPos = true; + && (!aList2.contains(new ChunkPosition(aX + 1, aY, aZ)))) expandToChunkXPos = true; } else if (!(blockXPos == Blocks.dirt || blockXPos == Blocks.grass)) { return false; } @@ -162,8 +160,7 @@ public class GT_MetaTileEntity_Charcoal_Pit extends GT_MetaTileEntity_TooltipMul Block blockXNeg = getBaseMetaTileEntity().getBlockOffset(aX - 1, aY, aZ); if (aX - 1 > -6 && (isWoodLog(blockXNeg, getBaseMetaTileEntity().getMetaIDOffset(aX - 1, aY, aZ)))) { if (!aList1.contains(new ChunkPosition(aX - 1, aY, aZ)) - && (!aList2.contains(new ChunkPosition(aX - 1, aY, aZ)))) - expandToChunkXNeg = true; + && (!aList2.contains(new ChunkPosition(aX - 1, aY, aZ)))) expandToChunkXNeg = true; } else if (!(blockXNeg == Blocks.dirt || blockXNeg == Blocks.grass)) { return false; } @@ -171,18 +168,16 @@ public class GT_MetaTileEntity_Charcoal_Pit extends GT_MetaTileEntity_TooltipMul Block blockYPos = getBaseMetaTileEntity().getBlockOffset(aX, aY + 1, aZ); if (aY + 1 < 1 && (isWoodLog(blockYPos, getBaseMetaTileEntity().getMetaIDOffset(aX, aY + 1, aZ)))) { if (!aList1.contains(new ChunkPosition(aX, aY + 1, aZ)) - && (!aList2.contains(new ChunkPosition(aX, aY + 1, aZ)))) - expandToChunkYPos = true; + && (!aList2.contains(new ChunkPosition(aX, aY + 1, aZ)))) expandToChunkYPos = true; } else if (!(blockYPos == Blocks.dirt || blockYPos == Blocks.grass - || (aX == 0 && aY == -1 && aZ == 0 && blockYPos == GregTech_API.sBlockMachines))) { - return false; - } + || (aX == 0 && aY == -1 && aZ == 0 && blockYPos == GregTech_API.sBlockMachines))) { + return false; + } Block blockYNeg = getBaseMetaTileEntity().getBlockOffset(aX, aY - 1, aZ); if (aY - 1 > -6 && (isWoodLog(blockYNeg, getBaseMetaTileEntity().getMetaIDOffset(aX, aY - 1, aZ)))) { if (!aList1.contains(new ChunkPosition(aX, aY - 1, aZ)) - && (!aList2.contains(new ChunkPosition(aX, aY - 1, aZ)))) - expandToChunkYNeg = true; + && (!aList2.contains(new ChunkPosition(aX, aY - 1, aZ)))) expandToChunkYNeg = true; } else if (blockYNeg != Blocks.brick_block) { return false; } @@ -190,8 +185,7 @@ public class GT_MetaTileEntity_Charcoal_Pit extends GT_MetaTileEntity_TooltipMul Block blockZPos = getBaseMetaTileEntity().getBlockOffset(aX, aY, aZ + 1); if (aZ + 1 < 6 && (isWoodLog(blockZPos, getBaseMetaTileEntity().getMetaIDOffset(aX, aY, aZ + 1)))) { if (!aList1.contains(new ChunkPosition(aX, aY, aZ + 1)) - && (!aList2.contains(new ChunkPosition(aX, aY, aZ + 1)))) - expandToChunkZPos = true; + && (!aList2.contains(new ChunkPosition(aX, aY, aZ + 1)))) expandToChunkZPos = true; } else if (!(blockZPos == Blocks.dirt || blockZPos == Blocks.grass)) { return false; } @@ -199,8 +193,7 @@ public class GT_MetaTileEntity_Charcoal_Pit extends GT_MetaTileEntity_TooltipMul Block blockZNeg = getBaseMetaTileEntity().getBlockOffset(aX, aY, aZ - 1); if (aZ - 1 > -6 && (isWoodLog(blockZNeg, getBaseMetaTileEntity().getMetaIDOffset(aX, aY, aZ - 1)))) { if (!aList1.contains(new ChunkPosition(aX, aY, aZ - 1)) - && (!aList2.contains(new ChunkPosition(aX, aY, aZ - 1)))) - expandToChunkZNeg = true; + && (!aList2.contains(new ChunkPosition(aX, aY, aZ - 1)))) expandToChunkZNeg = true; } else if (!(blockZNeg == Blocks.dirt || blockZNeg == Blocks.grass)) { return false; } @@ -258,36 +251,35 @@ public class GT_MetaTileEntity_Charcoal_Pit extends GT_MetaTileEntity_TooltipMul protected GT_Multiblock_Tooltip_Builder createTooltip() { final GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder(); tt.addMachineType("Charcoal Pile Igniter") - .addInfo("Controller for the Charcoal Pit") - .addInfo("Converts Logs into Brittle Charcoal blocks") - .addInfo("Will automatically start when valid") - .addPollutionAmount(getPollutionPerSecond(null)) - .addSeparator() - .beginVariableStructureBlock(3, 11, 3, 6, 3, 11, false) - .addStructureInfo("Can be up to 11x6x11 in size, shape doesn't matter") - .addOtherStructurePart("Bricks", "Bottom layer, under all wood logs") - .addOtherStructurePart("Dirt/Grass", "All logs must be covered by these, the controller, or bricks") - .addOtherStructurePart("Wood Logs", "Inside the previously mentioned blocks") - .addStructureInfo("No air between logs allowed") - .toolTipFinisher("Gregtech"); + .addInfo("Controller for the Charcoal Pit") + .addInfo("Converts Logs into Brittle Charcoal blocks") + .addInfo("Will automatically start when valid") + .addPollutionAmount(getPollutionPerSecond(null)) + .addSeparator() + .beginVariableStructureBlock(3, 11, 3, 6, 3, 11, false) + .addStructureInfo("Can be up to 11x6x11 in size, shape doesn't matter") + .addOtherStructurePart("Bricks", "Bottom layer, under all wood logs") + .addOtherStructurePart("Dirt/Grass", "All logs must be covered by these, the controller, or bricks") + .addOtherStructurePart("Wood Logs", "Inside the previously mentioned blocks") + .addStructureInfo("No air between logs allowed") + .toolTipFinisher("Gregtech"); return tt; } @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { if (aSide == 1) { - if (aActive) - return new ITexture[] { casingTexturePages[0][10], TextureFactory.of(OVERLAY_FRONT_ROCK_BREAKER_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_ROCK_BREAKER_ACTIVE_GLOW) - .glow() - .build() }; + if (aActive) return new ITexture[] { casingTexturePages[0][10], + TextureFactory.of(OVERLAY_FRONT_ROCK_BREAKER_ACTIVE), TextureFactory.builder() + .addIcon(OVERLAY_FRONT_ROCK_BREAKER_ACTIVE_GLOW) + .glow() + .build() }; return new ITexture[] { casingTexturePages[0][10], TextureFactory.of(OVERLAY_FRONT_ROCK_BREAKER), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_ROCK_BREAKER_GLOW) - .glow() - .build(), }; + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_ROCK_BREAKER_GLOW) + .glow() + .build(), }; } return new ITexture[] { casingTexturePages[0][10] }; } @@ -305,15 +297,13 @@ public class GT_MetaTileEntity_Charcoal_Pit extends GT_MetaTileEntity_TooltipMul if ((aBaseMetaTileEntity.isClientSide()) && (aBaseMetaTileEntity.isActive())) { new WorldSpawnedEventBuilder.ParticleEventBuilder().setMotion(0D, 0.3D, 0D) - .setIdentifier(ParticleFX.LARGE_SMOKE) - .setPosition( - aBaseMetaTileEntity.getOffsetX((byte) 1, 1) - + XSTR_INSTANCE.nextFloat(), - aBaseMetaTileEntity.getOffsetY((byte) 1, 1), - aBaseMetaTileEntity.getOffsetZ((byte) 1, 1) - + XSTR_INSTANCE.nextFloat()) - .setWorld(getBaseMetaTileEntity().getWorld()) - .run(); + .setIdentifier(ParticleFX.LARGE_SMOKE) + .setPosition( + aBaseMetaTileEntity.getOffsetX((byte) 1, 1) + XSTR_INSTANCE.nextFloat(), + aBaseMetaTileEntity.getOffsetY((byte) 1, 1), + aBaseMetaTileEntity.getOffsetZ((byte) 1, 1) + XSTR_INSTANCE.nextFloat()) + .setWorld(getBaseMetaTileEntity().getWorld()) + .run(); } } } diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_Cleanroom.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_Cleanroom.java index 0d18ce040b..76b867bcbf 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_Cleanroom.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_Cleanroom.java @@ -33,7 +33,7 @@ import gregtech.api.util.GT_Multiblock_Tooltip_Builder; import gregtech.api.util.GT_Recipe; public class GT_MetaTileEntity_Cleanroom extends GT_MetaTileEntity_TooltipMultiBlockBase - implements IConstructable, ISecondaryDescribable { + implements IConstructable, ISecondaryDescribable { private int mHeight = -1; @@ -54,29 +54,29 @@ public class GT_MetaTileEntity_Cleanroom extends GT_MetaTileEntity_TooltipMultiB protected GT_Multiblock_Tooltip_Builder createTooltip() { final GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder(); tt.addMachineType("Cleanroom") - .addInfo("Controller block for the Cleanroom") - .addInfo("Consumes 40 EU/t when first turned on") - .addInfo("and 4 EU/t once at 100% efficiency when not overclocked") // ? - .addInfo("An energy hatch accepts up to 2A, so you can use 2A LV or 1A MV") - .addInfo("2 LV batteries + 1 LV generator or 1 MV generator") // ? - .addInfo("Time required to reach full efficiency is proportional to") - .addInfo("the height of empty space within") - .addInfo("Make sure your Energy Hatch matches! ?") - .addInfo("Machines that cause pollution aren't allowed to be put in.") - .addSeparator() - .beginVariableStructureBlock(3, 15, 4, 15, 3, 15, true) - .addController("Top center") - .addCasingInfoRange("Plascrete", 20, 1007, false) - .addStructureInfo(GT_Values.cleanroomGlass + "% of the Plascrete can be replaced with Reinforced Glass") // check - .addStructureInfo("Other material can be used in place of Plascrete. See config for detail") // check - .addOtherStructurePart("Filter Machine Casing", "Top besides controller and edges") - .addEnergyHatch("Any casing. Exactly one.") // check - .addMaintenanceHatch("Any casing") - .addStructureInfo("1x Reinforced Door (keep closed or efficiency will reduce)") - .addStructureInfo("Up to 10 Machine Hulls for Item & Energy transfer through walls") - .addStructureInfo("You can also use Diodes for more power") - .addStructureInfo("Diodes also count towards 10 Machine Hulls count limit") - .toolTipFinisher("Gregtech"); + .addInfo("Controller block for the Cleanroom") + .addInfo("Consumes 40 EU/t when first turned on") + .addInfo("and 4 EU/t once at 100% efficiency when not overclocked") // ? + .addInfo("An energy hatch accepts up to 2A, so you can use 2A LV or 1A MV") + .addInfo("2 LV batteries + 1 LV generator or 1 MV generator") // ? + .addInfo("Time required to reach full efficiency is proportional to") + .addInfo("the height of empty space within") + .addInfo("Make sure your Energy Hatch matches! ?") + .addInfo("Machines that cause pollution aren't allowed to be put in.") + .addSeparator() + .beginVariableStructureBlock(3, 15, 4, 15, 3, 15, true) + .addController("Top center") + .addCasingInfoRange("Plascrete", 20, 1007, false) + .addStructureInfo(GT_Values.cleanroomGlass + "% of the Plascrete can be replaced with Reinforced Glass") // check + .addStructureInfo("Other material can be used in place of Plascrete. See config for detail") // check + .addOtherStructurePart("Filter Machine Casing", "Top besides controller and edges") + .addEnergyHatch("Any casing. Exactly one.") // check + .addMaintenanceHatch("Any casing") + .addStructureInfo("1x Reinforced Door (keep closed or efficiency will reduce)") + .addStructureInfo("Up to 10 Machine Hulls for Item & Energy transfer through walls") + .addStructureInfo("You can also use Diodes for more power") + .addStructureInfo("Diodes also count towards 10 Machine Hulls count limit") + .toolTipFinisher("Gregtech"); return tt; } @@ -190,7 +190,7 @@ public class GT_MetaTileEntity_Cleanroom extends GT_MetaTileEntity_TooltipMultiB if (tBlock != GregTech_API.sBlockCasings3 || tMeta != 11) { if (debugCleanroom) { GT_Log.out.println( - "Cleanroom: Non reinforced block on top face interior? tMeta != 11"); + "Cleanroom: Non reinforced block on top face interior? tMeta != 11"); } return false; } @@ -198,12 +198,10 @@ public class GT_MetaTileEntity_Cleanroom extends GT_MetaTileEntity_TooltipMultiB } else if (tBlock == GregTech_API.sBlockReinforced && tMeta == 2) { mPlascreteCount++; } else { - final IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset( - dX, - dY, - dZ); + final IGregTechTileEntity tTileEntity = aBaseMetaTileEntity + .getIGregTechTileEntityOffset(dX, dY, dZ); if ((!this.addMaintenanceToMachineList(tTileEntity, 210)) - && (!this.addEnergyInputToMachineList(tTileEntity, 210))) { + && (!this.addEnergyInputToMachineList(tTileEntity, 210))) { if (tBlock instanceof ic2.core.block.BlockIC2Door) { if ((tMeta & 8) == 0) { // let's not fiddle with bits anymore. @@ -228,8 +226,7 @@ public class GT_MetaTileEntity_Cleanroom extends GT_MetaTileEntity_TooltipMultiB } else { if (debugCleanroom) { GT_Log.out.println( - "Cleanroom: Incorrect GT block? " - + tBlock.getUnlocalizedName()); + "Cleanroom: Incorrect GT block? " + tBlock.getUnlocalizedName()); } return false; } @@ -243,7 +240,7 @@ public class GT_MetaTileEntity_Cleanroom extends GT_MetaTileEntity_TooltipMultiB otherBlocks.compute(key, (k, v) -> v == null ? 1 : v + 1); } else { if (debugCleanroom) GT_Log.out.println( - "Cleanroom: not allowed block " + tBlock.getUnlocalizedName()); + "Cleanroom: not allowed block " + tBlock.getUnlocalizedName()); return false; } } @@ -256,8 +253,8 @@ public class GT_MetaTileEntity_Cleanroom extends GT_MetaTileEntity_TooltipMultiB } } if (this.mMaintenanceHatches.size() != 1 || this.mEnergyHatches.size() != 1 - || mDoorCount > 4 - || mHullCount > 10) { + || mDoorCount > 4 + || mHullCount > 10) { return false; } if (mPlascreteCount < 20) return false; @@ -310,8 +307,8 @@ public class GT_MetaTileEntity_Cleanroom extends GT_MetaTileEntity_TooltipMultiB @SuppressWarnings("unchecked") private void checkAndSetCallback(IMachineCallback iMachineCallback) { if (debugCleanroom) GT_Log.out.println( - "Cleanroom: IMachineCallback detected, checking for cleanroom: " - + (iMachineCallback.getType() == this.getClass())); + "Cleanroom: IMachineCallback detected, checking for cleanroom: " + + (iMachineCallback.getType() == this.getClass())); if (iMachineCallback.getType() == this.getClass()) ((IMachineCallback) iMachineCallback).setCallbackBase(this); } @@ -323,21 +320,21 @@ public class GT_MetaTileEntity_Cleanroom extends GT_MetaTileEntity_TooltipMultiB @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { if (aSide == ForgeDirection.DOWN.ordinal() || aSide == ForgeDirection.UP.ordinal()) { return new ITexture[] { TextureFactory.of(BLOCK_PLASCRETE), aActive - ? TextureFactory.of( - TextureFactory.of(OVERLAY_TOP_CLEANROOM_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_TOP_CLEANROOM_ACTIVE_GLOW) - .glow() - .build()) - : TextureFactory.of( - TextureFactory.of(OVERLAY_TOP_CLEANROOM), - TextureFactory.builder() - .addIcon(OVERLAY_TOP_CLEANROOM_GLOW) - .glow() - .build()) }; + ? TextureFactory.of( + TextureFactory.of(OVERLAY_TOP_CLEANROOM_ACTIVE), + TextureFactory.builder() + .addIcon(OVERLAY_TOP_CLEANROOM_ACTIVE_GLOW) + .glow() + .build()) + : TextureFactory.of( + TextureFactory.of(OVERLAY_TOP_CLEANROOM), + TextureFactory.builder() + .addIcon(OVERLAY_TOP_CLEANROOM_GLOW) + .glow() + .build()) }; } return new ITexture[] { TextureFactory.of(BLOCK_PLASCRETE) }; } @@ -426,45 +423,45 @@ public class GT_MetaTileEntity_Cleanroom extends GT_MetaTileEntity_TooltipMultiB public static void loadConfig(Configuration cfg) { if (!cfg.hasCategory(category)) setDefaultConfigValues(cfg); for (ConfigCategory cc : cfg.getCategory(category) - .getChildren()) { + .getChildren()) { final String name = cc.get("Name") - .getString(); + .getString(); if (cc.containsKey("Count")) { if (cc.containsKey("Meta")) config.put( - name + ":" - + cc.get("Meta") - .getInt(), - new ConfigEntry( - 0, - cc.get("Count") - .getInt(), - cc.get("Meta") - .getInt())); + name + ":" + + cc.get("Meta") + .getInt(), + new ConfigEntry( + 0, + cc.get("Count") + .getInt(), + cc.get("Meta") + .getInt())); else config.put( - name, - new ConfigEntry( - 0, - cc.get("Count") - .getInt(), - wildcard_meta)); + name, + new ConfigEntry( + 0, + cc.get("Count") + .getInt(), + wildcard_meta)); } else if (cc.containsKey("Percentage")) { if (cc.containsKey("Meta")) config.put( - name + ":" - + cc.get("Meta") - .getInt(), - new ConfigEntry( - cc.get("Percentage") - .getInt(), - 0, - cc.get("Meta") - .getInt())); + name + ":" + + cc.get("Meta") + .getInt(), + new ConfigEntry( + cc.get("Percentage") + .getInt(), + 0, + cc.get("Meta") + .getInt())); else config.put( - name, - new ConfigEntry( - cc.get("Percentage") - .getInt(), - 0, - wildcard_meta)); + name, + new ConfigEntry( + cc.get("Percentage") + .getInt(), + 0, + wildcard_meta)); } } } diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ConcreteBackfillerBase.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ConcreteBackfillerBase.java index 2b902349bc..869d96f2c4 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ConcreteBackfillerBase.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ConcreteBackfillerBase.java @@ -30,27 +30,27 @@ public abstract class GT_MetaTileEntity_ConcreteBackfillerBase extends GT_MetaTi protected GT_Multiblock_Tooltip_Builder createTooltip(String aStructureName) { String casings = getCasingBlockItem().get(0) - .getDisplayName(); + .getDisplayName(); final GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder(); tt.addMachineType("Concrete Backfiller") - .addInfo("Controller Block for the " + aStructureName) - .addInfo("Will fill in areas below it with light concrete. This goes through walls") - .addInfo("Use it to remove any spawning locations beneath your base to reduce lag") - .addInfo("Will pull back the pipes after it finishes that layer") - .addInfo("Radius is " + getRadius() + " blocks") - .addSeparator() - .beginStructureBlock(3, 7, 3, false) - .addController("Front bottom") - .addOtherStructurePart(casings, "form the 3x1x3 Base") - .addOtherStructurePart(casings, "1x3x1 pillar above the center of the base (2 minimum total)") - .addOtherStructurePart(getFrameMaterial().mName + " Frame Boxes", "Each pillar's side and 1x3x1 on top") - .addEnergyHatch(VN[getMinTier()] + "+, Any base casing", 1) - .addMaintenanceHatch("Any base casing", 1) - .addInputBus("Mining Pipes, optional, any base casing", 1) - .addInputHatch("GT Concrete, any base casing", 1) - .addOutputBus("Mining Pipes, optional, any base casing", 1) - .toolTipFinisher("Gregtech"); + .addInfo("Controller Block for the " + aStructureName) + .addInfo("Will fill in areas below it with light concrete. This goes through walls") + .addInfo("Use it to remove any spawning locations beneath your base to reduce lag") + .addInfo("Will pull back the pipes after it finishes that layer") + .addInfo("Radius is " + getRadius() + " blocks") + .addSeparator() + .beginStructureBlock(3, 7, 3, false) + .addController("Front bottom") + .addOtherStructurePart(casings, "form the 3x1x3 Base") + .addOtherStructurePart(casings, "1x3x1 pillar above the center of the base (2 minimum total)") + .addOtherStructurePart(getFrameMaterial().mName + " Frame Boxes", "Each pillar's side and 1x3x1 on top") + .addEnergyHatch(VN[getMinTier()] + "+, Any base casing", 1) + .addMaintenanceHatch("Any base casing", 1) + .addInputBus("Mining Pipes, optional, any base casing", 1) + .addInputHatch("GT Concrete, any base casing", 1) + .addOutputBus("Mining Pipes, optional, any base casing", 1) + .toolTipFinisher("Gregtech"); return tt; } @@ -78,7 +78,7 @@ public abstract class GT_MetaTileEntity_ConcreteBackfillerBase extends GT_MetaTi @Override protected boolean workingUpward(ItemStack aStack, int xDrill, int yDrill, int zDrill, int xPipe, int zPipe, - int yHead, int oldYHead) { + int yHead, int oldYHead) { if (isRefillableBlock(xPipe, yHead - 1, zPipe)) return tryRefillBlock(xPipe, yHead - 1, zPipe); int radius = getRadius(); if (mLastXOff == 0 && mLastZOff == 0) { @@ -111,19 +111,12 @@ public abstract class GT_MetaTileEntity_ConcreteBackfillerBase extends GT_MetaTi private boolean isRefillableBlock(int aX, int aY, int aZ) { IGregTechTileEntity aBaseTile = getBaseMetaTileEntity(); if (!aBaseTile.getBlock(aX, aY, aZ) - .isAir(aBaseTile.getWorld(), aX, aY, aZ) - || aBaseTile.getBlock(aX, aY, aZ) - .getMaterial() - .isSolid()) + .isAir(aBaseTile.getWorld(), aX, aY, aZ) || aBaseTile.getBlock(aX, aY, aZ) + .getMaterial() + .isSolid()) return false; - if (!GT_Utility.setBlockByFakePlayer( - getFakePlayer(aBaseTile), - aX, - aY, - aZ, - GregTech_API.sBlockConcretes, - 8, - true)) + if (!GT_Utility + .setBlockByFakePlayer(getFakePlayer(aBaseTile), aX, aY, aZ, GregTech_API.sBlockConcretes, 8, true)) return false; return true; } @@ -131,7 +124,7 @@ public abstract class GT_MetaTileEntity_ConcreteBackfillerBase extends GT_MetaTi private boolean tryRefillBlock(int aX, int aY, int aZ) { if (!tryConsumeFluid()) return false; getBaseMetaTileEntity().getWorld() - .setBlock(aX, aY, aZ, GregTech_API.sBlockConcretes, 8, 3); + .setBlock(aX, aY, aZ, GregTech_API.sBlockConcretes, 8, 3); return true; } diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_DieselEngine.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_DieselEngine.java index 7e6ff95da1..069afffacf 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_DieselEngine.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_DieselEngine.java @@ -42,8 +42,8 @@ import gregtech.api.util.GT_Multiblock_Tooltip_Builder; import gregtech.api.util.GT_Recipe; import gregtech.api.util.GT_Utility; -public class GT_MetaTileEntity_DieselEngine extends - GT_MetaTileEntity_EnhancedMultiBlockBase implements ISurvivalConstructable { +public class GT_MetaTileEntity_DieselEngine + extends GT_MetaTileEntity_EnhancedMultiBlockBase implements ISurvivalConstructable { private static final String STRUCTURE_PIECE_MAIN = "main"; private static final ClassValue> STRUCTURE_DEFINITION = new ClassValue<>() { @@ -51,33 +51,24 @@ public class GT_MetaTileEntity_DieselEngine extends @Override protected IStructureDefinition computeValue(Class type) { return StructureDefinition.builder() - .addShape( - STRUCTURE_PIECE_MAIN, - transpose( - new String[][] { { "---", "iii", "chc", "chc", "ccc", }, - { "---", "i~i", "hgh", "hgh", "cdc", }, - { "---", "iii", "chc", "chc", "ccc", }, })) - .addElement('i', lazy(t -> ofBlock(t.getIntakeBlock(), t.getIntakeMeta()))) - .addElement('c', lazy(t -> ofBlock(t.getCasingBlock(), t.getCasingMeta()))) - .addElement('g', lazy(t -> ofBlock(t.getGearboxBlock(), t.getGearboxMeta()))) - .addElement('d', lazy(t -> Dynamo.newAny(t.getCasingTextureIndex(), 2))) - .addElement( - 'h', - lazy( - t -> buildHatchAdder( - GT_MetaTileEntity_DieselEngine.class).atLeast( - InputHatch, - InputHatch, - InputHatch, - Muffler, - Maintenance) - .casingIndex( - t.getCasingTextureIndex()) - .dot(1) - .buildAndChain( - t.getCasingBlock(), - t.getCasingMeta()))) - .build(); + .addShape( + STRUCTURE_PIECE_MAIN, + transpose( + new String[][] { { "---", "iii", "chc", "chc", "ccc", }, { "---", "i~i", "hgh", "hgh", "cdc", }, + { "---", "iii", "chc", "chc", "ccc", }, })) + .addElement('i', lazy(t -> ofBlock(t.getIntakeBlock(), t.getIntakeMeta()))) + .addElement('c', lazy(t -> ofBlock(t.getCasingBlock(), t.getCasingMeta()))) + .addElement('g', lazy(t -> ofBlock(t.getGearboxBlock(), t.getGearboxMeta()))) + .addElement('d', lazy(t -> Dynamo.newAny(t.getCasingTextureIndex(), 2))) + .addElement( + 'h', + lazy( + t -> buildHatchAdder(GT_MetaTileEntity_DieselEngine.class) + .atLeast(InputHatch, InputHatch, InputHatch, Muffler, Maintenance) + .casingIndex(t.getCasingTextureIndex()) + .dot(1) + .buildAndChain(t.getCasingBlock(), t.getCasingMeta()))) + .build(); } }; protected int fuelConsumption = 0; @@ -97,53 +88,52 @@ public class GT_MetaTileEntity_DieselEngine extends protected GT_Multiblock_Tooltip_Builder createTooltip() { final GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder(); tt.addMachineType("Combustion Generator") - .addInfo("Controller block for the Large Combustion Engine") - .addInfo("Supply Diesel Fuels and 1000L of Lubricant per hour to run") - .addInfo("Supply 40L/s of Oxygen to boost output (optional)") - .addInfo("Default: Produces 2048EU/t at 100% fuel efficiency") - .addInfo("Boosted: Produces 6144EU/t at 150% fuel efficiency") - .addInfo("You need to wait for it to reach 300% to output full power") - .addPollutionAmount(getPollutionPerSecond(null)) - .addSeparator() - .beginStructureBlock(3, 3, 4, false) - .addController("Front center") - .addCasingInfoRange("Stable Titanium Machine Casing", 16, 22, false) - .addOtherStructurePart("Titanium Gear Box Machine Casing", "Inner 2 blocks") - .addOtherStructurePart("Engine Intake Machine Casing", "8x, ring around controller") - .addStructureInfo("Engine Intake Casings must not be obstructed in front (only air blocks)") - .addDynamoHatch("Back center", 2) - .addMaintenanceHatch("One of the casings next to a Gear Box", 1) - .addMufflerHatch("Top middle back, above the rear Gear Box", 1) - .addInputHatch("Diesel Fuel, next to a Gear Box", 1) - .addInputHatch("Lubricant, next to a Gear Box", 1) - .addInputHatch("Oxygen, optional, next to a Gear Box", 1) - .toolTipFinisher("Gregtech"); + .addInfo("Controller block for the Large Combustion Engine") + .addInfo("Supply Diesel Fuels and 1000L of Lubricant per hour to run") + .addInfo("Supply 40L/s of Oxygen to boost output (optional)") + .addInfo("Default: Produces 2048EU/t at 100% fuel efficiency") + .addInfo("Boosted: Produces 6144EU/t at 150% fuel efficiency") + .addInfo("You need to wait for it to reach 300% to output full power") + .addPollutionAmount(getPollutionPerSecond(null)) + .addSeparator() + .beginStructureBlock(3, 3, 4, false) + .addController("Front center") + .addCasingInfoRange("Stable Titanium Machine Casing", 16, 22, false) + .addOtherStructurePart("Titanium Gear Box Machine Casing", "Inner 2 blocks") + .addOtherStructurePart("Engine Intake Machine Casing", "8x, ring around controller") + .addStructureInfo("Engine Intake Casings must not be obstructed in front (only air blocks)") + .addDynamoHatch("Back center", 2) + .addMaintenanceHatch("One of the casings next to a Gear Box", 1) + .addMufflerHatch("Top middle back, above the rear Gear Box", 1) + .addInputHatch("Diesel Fuel, next to a Gear Box", 1) + .addInputHatch("Lubricant, next to a Gear Box", 1) + .addInputHatch("Oxygen, optional, next to a Gear Box", 1) + .toolTipFinisher("Gregtech"); return tt; } @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { if (aSide == aFacing) { if (aActive) return new ITexture[] { casingTexturePages[0][50], TextureFactory.builder() - .addIcon( - OVERLAY_FRONT_DIESEL_ENGINE_ACTIVE) - .extFacing() - .build(), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_DIESEL_ENGINE_ACTIVE_GLOW) - .extFacing() - .glow() - .build() }; + .addIcon(OVERLAY_FRONT_DIESEL_ENGINE_ACTIVE) + .extFacing() + .build(), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_DIESEL_ENGINE_ACTIVE_GLOW) + .extFacing() + .glow() + .build() }; return new ITexture[] { casingTexturePages[0][50], TextureFactory.builder() - .addIcon(OVERLAY_FRONT_DIESEL_ENGINE) - .extFacing() - .build(), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_DIESEL_ENGINE_GLOW) - .extFacing() - .glow() - .build() }; + .addIcon(OVERLAY_FRONT_DIESEL_ENGINE) + .extFacing() + .build(), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_DIESEL_ENGINE_GLOW) + .extFacing() + .glow() + .build() }; } return new ITexture[] { casingTexturePages[0][50] }; } @@ -238,7 +228,7 @@ public class GT_MetaTileEntity_DieselEngine extends // Deplete Lubricant. 1000L should = 1 hour of runtime (if baseEU = 2048) if ((mRuntime % 72 == 0 || mRuntime == 0) - && !depleteInput(Materials.Lubricant.getFluid((boostEu ? 2L : 1L) * getAdditiveFactor()))) + && !depleteInput(Materials.Lubricant.getFluid((boostEu ? 2L : 1L) * getAdditiveFactor()))) return false; fuelRemaining = tFluid.amount; // Record available fuel @@ -262,7 +252,7 @@ public class GT_MetaTileEntity_DieselEngine extends @Override public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack) { return checkPiece(STRUCTURE_PIECE_MAIN, 1, 1, 1) && !mMufflerHatches.isEmpty() - && mMaintenanceHatches.size() == 1; + && mMaintenanceHatches.size() == 1; } public Block getCasingBlock() { @@ -295,9 +285,9 @@ public class GT_MetaTileEntity_DieselEngine extends private boolean addToMachineList(IGregTechTileEntity tTileEntity) { return ((addMaintenanceToMachineList(tTileEntity, getCasingTextureIndex())) - || (addInputToMachineList(tTileEntity, getCasingTextureIndex())) - || (addOutputToMachineList(tTileEntity, getCasingTextureIndex())) - || (addMufflerToMachineList(tTileEntity, getCasingTextureIndex()))); + || (addInputToMachineList(tTileEntity, getCasingTextureIndex())) + || (addOutputToMachineList(tTileEntity, getCasingTextureIndex())) + || (addMufflerToMachineList(tTileEntity, getCasingTextureIndex()))); } @Override @@ -349,57 +339,57 @@ public class GT_MetaTileEntity_DieselEngine extends for (GT_MetaTileEntity_Hatch_Dynamo tHatch : mDynamoHatches) { if (isValidMetaTileEntity(tHatch)) { storedEnergy += tHatch.getBaseMetaTileEntity() - .getStoredEU(); + .getStoredEU(); maxEnergy += tHatch.getBaseMetaTileEntity() - .getEUCapacity(); + .getEUCapacity(); } } return new String[] { EnumChatFormatting.BLUE + "Diesel Engine" + EnumChatFormatting.RESET, - StatCollector.translateToLocal("GT5U.multiblock.energy") + ": " - + EnumChatFormatting.GREEN - + GT_Utility.formatNumbers(storedEnergy) - + EnumChatFormatting.RESET - + " EU / " - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(maxEnergy) - + EnumChatFormatting.RESET - + " EU", - getIdealStatus() == getRepairStatus() - ? EnumChatFormatting.GREEN + StatCollector.translateToLocal("GT5U.turbine.maintenance.false") - + EnumChatFormatting.RESET - : EnumChatFormatting.RED + StatCollector.translateToLocal("GT5U.turbine.maintenance.true") - + EnumChatFormatting.RESET, - StatCollector.translateToLocal("GT5U.engine.output") + ": " - + EnumChatFormatting.RED - + GT_Utility.formatNumbers((mEUt * mEfficiency / 10000)) - + EnumChatFormatting.RESET - + " EU/t", - StatCollector.translateToLocal("GT5U.engine.consumption") + ": " - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(fuelConsumption) - + EnumChatFormatting.RESET - + " L/t", - StatCollector.translateToLocal("GT5U.engine.value") + ": " - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(fuelValue) - + EnumChatFormatting.RESET - + " EU/L", - StatCollector.translateToLocal("GT5U.turbine.fuel") + ": " - + EnumChatFormatting.GOLD - + GT_Utility.formatNumbers(fuelRemaining) - + EnumChatFormatting.RESET - + " L", - StatCollector.translateToLocal("GT5U.engine.efficiency") + ": " - + EnumChatFormatting.YELLOW - + (mEfficiency / 100F) - + EnumChatFormatting.YELLOW - + " %", - StatCollector.translateToLocal("GT5U.multiblock.pollution") + ": " - + EnumChatFormatting.GREEN - + mPollutionReduction - + EnumChatFormatting.RESET - + " %" }; + StatCollector.translateToLocal("GT5U.multiblock.energy") + ": " + + EnumChatFormatting.GREEN + + GT_Utility.formatNumbers(storedEnergy) + + EnumChatFormatting.RESET + + " EU / " + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(maxEnergy) + + EnumChatFormatting.RESET + + " EU", + getIdealStatus() == getRepairStatus() + ? EnumChatFormatting.GREEN + StatCollector.translateToLocal("GT5U.turbine.maintenance.false") + + EnumChatFormatting.RESET + : EnumChatFormatting.RED + StatCollector.translateToLocal("GT5U.turbine.maintenance.true") + + EnumChatFormatting.RESET, + StatCollector.translateToLocal("GT5U.engine.output") + ": " + + EnumChatFormatting.RED + + GT_Utility.formatNumbers((mEUt * mEfficiency / 10000)) + + EnumChatFormatting.RESET + + " EU/t", + StatCollector.translateToLocal("GT5U.engine.consumption") + ": " + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(fuelConsumption) + + EnumChatFormatting.RESET + + " L/t", + StatCollector.translateToLocal("GT5U.engine.value") + ": " + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(fuelValue) + + EnumChatFormatting.RESET + + " EU/L", + StatCollector.translateToLocal("GT5U.turbine.fuel") + ": " + + EnumChatFormatting.GOLD + + GT_Utility.formatNumbers(fuelRemaining) + + EnumChatFormatting.RESET + + " L", + StatCollector.translateToLocal("GT5U.engine.efficiency") + ": " + + EnumChatFormatting.YELLOW + + (mEfficiency / 100F) + + EnumChatFormatting.YELLOW + + " %", + StatCollector.translateToLocal("GT5U.multiblock.pollution") + ": " + + EnumChatFormatting.GREEN + + mPollutionReduction + + EnumChatFormatting.RESET + + " %" }; } @Override diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_DistillationTower.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_DistillationTower.java index 716634998f..2d7fcdda22 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_DistillationTower.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_DistillationTower.java @@ -41,9 +41,8 @@ import gregtech.api.util.GT_Multiblock_Tooltip_Builder; import gregtech.api.util.GT_Recipe; import gregtech.api.util.GT_Utility; -public class GT_MetaTileEntity_DistillationTower - extends GT_MetaTileEntity_EnhancedMultiBlockBase - implements ISurvivalConstructable { +public class GT_MetaTileEntity_DistillationTower extends + GT_MetaTileEntity_EnhancedMultiBlockBase implements ISurvivalConstructable { protected static final int CASING_INDEX = 49; protected static final String STRUCTURE_PIECE_BASE = "base"; @@ -53,104 +52,62 @@ public class GT_MetaTileEntity_DistillationTower private static final IStructureDefinition STRUCTURE_DEFINITION; static { - IHatchElement layeredOutputHatch = OutputHatch.withCount( - GT_MetaTileEntity_DistillationTower::getCurrentLayerOutputHatchCount) - .withAdder( - GT_MetaTileEntity_DistillationTower::addLayerOutputHatch); + IHatchElement layeredOutputHatch = OutputHatch + .withCount(GT_MetaTileEntity_DistillationTower::getCurrentLayerOutputHatchCount) + .withAdder(GT_MetaTileEntity_DistillationTower::addLayerOutputHatch); STRUCTURE_DEFINITION = StructureDefinition.builder() - .addShape( - STRUCTURE_PIECE_BASE, - transpose(new String[][] { { "b~b", "bbb", "bbb" }, })) - .addShape( - STRUCTURE_PIECE_LAYER, - transpose(new String[][] { { "lll", "lcl", "lll" }, })) - .addShape( - STRUCTURE_PIECE_LAYER_HINT, - transpose(new String[][] { { "lll", "l-l", "lll" }, })) - .addShape( - STRUCTURE_PIECE_TOP_HINT, - transpose(new String[][] { { "LLL", "LLL", "LLL" }, })) - .addElement( - 'b', - ofChain( - buildHatchAdder( - GT_MetaTileEntity_DistillationTower.class).atLeast( - Energy, - OutputBus, - InputHatch, - InputBus, - Maintenance) - .casingIndex( - CASING_INDEX) - .dot( - 1) - .build(), - onElementPass( - GT_MetaTileEntity_DistillationTower::onCasingFound, - ofBlock(GregTech_API.sBlockCasings4, 1)))) - .addElement( - 'l', - ofChain( - buildHatchAdder( - GT_MetaTileEntity_DistillationTower.class).atLeast( - layeredOutputHatch) - .casingIndex( - CASING_INDEX) - .dot( - 2) - .disallowOnly( - ForgeDirection.UP, - ForgeDirection.DOWN) - .build(), - ofHatchAdder( - GT_MetaTileEntity_DistillationTower::addEnergyInputToMachineList, - CASING_INDEX, - 2), - ofHatchAdder( - GT_MetaTileEntity_DistillationTower::addLayerOutputHatch, - CASING_INDEX, - 2), - ofHatchAdder( - GT_MetaTileEntity_DistillationTower::addMaintenanceToMachineList, - CASING_INDEX, - 2), - onElementPass( - GT_MetaTileEntity_DistillationTower::onCasingFound, - ofBlock(GregTech_API.sBlockCasings4, 1)))) - // hint element only used in top layer - .addElement( - 'L', - buildHatchAdder( - GT_MetaTileEntity_DistillationTower.class).atLeast( - layeredOutputHatch) - .casingIndex( - CASING_INDEX) - .dot(2) - .disallowOnly( - ForgeDirection.UP) - .buildAndChain( - GregTech_API.sBlockCasings4, - 1)) - .addElement( - 'c', - ofChain( - onElementPass( - t -> t.onTopLayerFound(false), - ofHatchAdder( - GT_MetaTileEntity_DistillationTower::addOutputToMachineList, - CASING_INDEX, - 3)), - onElementPass( - t -> t.onTopLayerFound(false), - ofHatchAdder( - GT_MetaTileEntity_DistillationTower::addMaintenanceToMachineList, - CASING_INDEX, - 3)), - onElementPass( - t -> t.onTopLayerFound(true), - ofBlock(GregTech_API.sBlockCasings4, 1)), - isAir())) - .build(); + .addShape(STRUCTURE_PIECE_BASE, transpose(new String[][] { { "b~b", "bbb", "bbb" }, })) + .addShape(STRUCTURE_PIECE_LAYER, transpose(new String[][] { { "lll", "lcl", "lll" }, })) + .addShape(STRUCTURE_PIECE_LAYER_HINT, transpose(new String[][] { { "lll", "l-l", "lll" }, })) + .addShape(STRUCTURE_PIECE_TOP_HINT, transpose(new String[][] { { "LLL", "LLL", "LLL" }, })) + .addElement( + 'b', + ofChain( + buildHatchAdder(GT_MetaTileEntity_DistillationTower.class) + .atLeast(Energy, OutputBus, InputHatch, InputBus, Maintenance) + .casingIndex(CASING_INDEX) + .dot(1) + .build(), + onElementPass( + GT_MetaTileEntity_DistillationTower::onCasingFound, + ofBlock(GregTech_API.sBlockCasings4, 1)))) + .addElement( + 'l', + ofChain( + buildHatchAdder(GT_MetaTileEntity_DistillationTower.class).atLeast(layeredOutputHatch) + .casingIndex(CASING_INDEX) + .dot(2) + .disallowOnly(ForgeDirection.UP, ForgeDirection.DOWN) + .build(), + ofHatchAdder(GT_MetaTileEntity_DistillationTower::addEnergyInputToMachineList, CASING_INDEX, 2), + ofHatchAdder(GT_MetaTileEntity_DistillationTower::addLayerOutputHatch, CASING_INDEX, 2), + ofHatchAdder(GT_MetaTileEntity_DistillationTower::addMaintenanceToMachineList, CASING_INDEX, 2), + onElementPass( + GT_MetaTileEntity_DistillationTower::onCasingFound, + ofBlock(GregTech_API.sBlockCasings4, 1)))) + // hint element only used in top layer + .addElement( + 'L', + buildHatchAdder(GT_MetaTileEntity_DistillationTower.class).atLeast(layeredOutputHatch) + .casingIndex(CASING_INDEX) + .dot(2) + .disallowOnly(ForgeDirection.UP) + .buildAndChain(GregTech_API.sBlockCasings4, 1)) + .addElement( + 'c', + ofChain( + onElementPass( + t -> t.onTopLayerFound(false), + ofHatchAdder(GT_MetaTileEntity_DistillationTower::addOutputToMachineList, CASING_INDEX, 3)), + onElementPass( + t -> t.onTopLayerFound(false), + ofHatchAdder( + GT_MetaTileEntity_DistillationTower::addMaintenanceToMachineList, + CASING_INDEX, + 3)), + onElementPass(t -> t.onTopLayerFound(true), ofBlock(GregTech_API.sBlockCasings4, 1)), + isAir())) + .build(); } protected final List> mOutputHatchesByLayer = new ArrayList<>(); @@ -175,46 +132,45 @@ public class GT_MetaTileEntity_DistillationTower protected GT_Multiblock_Tooltip_Builder createTooltip() { final GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder(); tt.addMachineType("Distillery") - .addInfo("Controller block for the Distillation Tower") - .addInfo("Fluids are only put out at the correct height") - .addInfo("The correct height equals the slot number in the NEI recipe") - .addSeparator() - .beginVariableStructureBlock(3, 3, 3, 12, 3, 3, true) - .addController("Front bottom") - .addOtherStructurePart("Clean Stainless Steel Machine Casing", "7 x h - 5 (minimum)") - .addEnergyHatch("Any casing", 1, 2) - .addMaintenanceHatch("Any casing", 1, 2, 3) - .addInputHatch("Any bottom layer casing", 1) - .addOutputBus("Any bottom layer casing", 1) - .addOutputHatch("2-11x Output Hatches (At least one per layer except bottom layer)", 2, 3) - .toolTipFinisher("Gregtech"); + .addInfo("Controller block for the Distillation Tower") + .addInfo("Fluids are only put out at the correct height") + .addInfo("The correct height equals the slot number in the NEI recipe") + .addSeparator() + .beginVariableStructureBlock(3, 3, 3, 12, 3, 3, true) + .addController("Front bottom") + .addOtherStructurePart("Clean Stainless Steel Machine Casing", "7 x h - 5 (minimum)") + .addEnergyHatch("Any casing", 1, 2) + .addMaintenanceHatch("Any casing", 1, 2, 3) + .addInputHatch("Any bottom layer casing", 1) + .addOutputBus("Any bottom layer casing", 1) + .addOutputHatch("2-11x Output Hatches (At least one per layer except bottom layer)", 2, 3) + .toolTipFinisher("Gregtech"); return tt; } @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { if (aSide == aFacing) { if (aActive) return new ITexture[] { BlockIcons.getCasingTextureForId(CASING_INDEX), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_DISTILLATION_TOWER_ACTIVE) - .extFacing() - .build(), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_DISTILLATION_TOWER_ACTIVE_GLOW) - .extFacing() - .glow() - .build() }; + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_DISTILLATION_TOWER_ACTIVE) + .extFacing() + .build(), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_DISTILLATION_TOWER_ACTIVE_GLOW) + .extFacing() + .glow() + .build() }; return new ITexture[] { BlockIcons.getCasingTextureForId(CASING_INDEX), TextureFactory.builder() - .addIcon( - OVERLAY_FRONT_DISTILLATION_TOWER) - .extFacing() - .build(), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_DISTILLATION_TOWER_GLOW) - .extFacing() - .glow() - .build() }; + .addIcon(OVERLAY_FRONT_DISTILLATION_TOWER) + .extFacing() + .build(), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_DISTILLATION_TOWER_GLOW) + .extFacing() + .glow() + .build() }; } return new ITexture[] { Textures.BlockIcons.getCasingTextureForId(CASING_INDEX) }; } @@ -270,11 +226,11 @@ public class GT_MetaTileEntity_DistillationTower FluidStack[] tFluids = tFluidList.toArray(new FluidStack[0]); for (FluidStack tFluid : tFluids) { tRecipe = GT_Recipe.GT_Recipe_Map.sDistillationRecipes.findRecipe( - getBaseMetaTileEntity(), - false, - gregtech.api.enums.GT_Values.V[tTier], - new FluidStack[] { tFluid }, - inputs); + getBaseMetaTileEntity(), + false, + gregtech.api.enums.GT_Values.V[tTier], + new FluidStack[] { tFluid }, + inputs); if (tRecipe != null) { if (tRecipe.isRecipeInputEqual(true, tFluids, inputs)) { this.mEfficiency = (10000 - (getIdealStatus() - getRepairStatus()) * 1000); @@ -308,18 +264,17 @@ public class GT_MetaTileEntity_DistillationTower protected int getCurrentLayerOutputHatchCount() { return mOutputHatchesByLayer.size() < mHeight || mHeight <= 0 ? 0 - : mOutputHatchesByLayer.get(mHeight - 1) - .size(); + : mOutputHatchesByLayer.get(mHeight - 1) + .size(); } protected boolean addLayerOutputHatch(IGregTechTileEntity aTileEntity, int aBaseCasingIndex) { if (aTileEntity == null || aTileEntity.isDead() - || !(aTileEntity.getMetaTileEntity() instanceof GT_MetaTileEntity_Hatch_Output tHatch)) - return false; + || !(aTileEntity.getMetaTileEntity() instanceof GT_MetaTileEntity_Hatch_Output tHatch)) return false; while (mOutputHatchesByLayer.size() < mHeight) mOutputHatchesByLayer.add(new ArrayList<>()); tHatch.updateTexture(aBaseCasingIndex); return mOutputHatchesByLayer.get(mHeight - 1) - .add(tHatch); + .add(tHatch); } @Override @@ -350,7 +305,7 @@ public class GT_MetaTileEntity_DistillationTower return false; } if (mOutputHatchesByLayer.size() < mHeight || mOutputHatchesByLayer.get(mHeight - 1) - .isEmpty()) + .isEmpty()) // layer without output hatch return false; if (mTopLayerFound) { @@ -410,28 +365,28 @@ public class GT_MetaTileEntity_DistillationTower for (int i = 1; i < tTotalHeight - 1; i++) { mHeight = i; built = survivialBuildPiece( - STRUCTURE_PIECE_LAYER_HINT, - stackSize, - 1, - i, - 0, - elementBudget, - env, - false, - true); - if (built >= 0) return built; - } - mHeight = tTotalHeight - 1; - return survivialBuildPiece( - STRUCTURE_PIECE_TOP_HINT, + STRUCTURE_PIECE_LAYER_HINT, stackSize, 1, - tTotalHeight - 1, + i, 0, elementBudget, env, false, true); + if (built >= 0) return built; + } + mHeight = tTotalHeight - 1; + return survivialBuildPiece( + STRUCTURE_PIECE_TOP_HINT, + stackSize, + 1, + tTotalHeight - 1, + 0, + elementBudget, + env, + false, + true); } @Override diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_DrillerBase.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_DrillerBase.java index f7993fd2f4..e7879cbe0d 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_DrillerBase.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_DrillerBase.java @@ -50,8 +50,8 @@ import gregtech.api.util.GT_Utility; import gregtech.api.util.IGT_HatchAdder; public abstract class GT_MetaTileEntity_DrillerBase - extends GT_MetaTileEntity_EnhancedMultiBlockBase - implements IChunkLoader, ISurvivalConstructable { + extends GT_MetaTileEntity_EnhancedMultiBlockBase + implements IChunkLoader, ISurvivalConstructable { private static final ItemStack miningPipe = GT_ModHandler.getIC2Item("miningPipe", 0); private static final ItemStack miningPipeTip = GT_ModHandler.getIC2Item("miningPipeTip", 0); @@ -63,41 +63,36 @@ public abstract class GT_MetaTileEntity_DrillerBase @Override protected IStructureDefinition computeValue(Class type) { return StructureDefinition.builder() - .addShape( - STRUCTURE_PIECE_MAIN, - transpose( - new String[][] { { " ", " f ", " " }, { " ", " f ", " " }, - { " ", " f ", " " }, { " f ", "fcf", " f " }, - { " f ", "fcf", " f " }, { " f ", "fcf", " f " }, - { "b~b", "bbb", "bbb" }, })) - .addElement('f', lazy(t -> ofFrame(t.getFrameMaterial()))) - .addElement( - 'c', - lazy( - t -> ofBlock( - t.getCasingBlockItem() - .getBlock(), - t.getCasingBlockItem() - .get(0) - .getItemDamage()))) - .addElement( - 'b', - lazy( - t -> buildHatchAdder( - GT_MetaTileEntity_DrillerBase.class).atLeastList( - t.getAllowedHatches()) - .adder( - GT_MetaTileEntity_DrillerBase::addToMachineList) - .casingIndex( - t.casingTextureIndex) - .dot(1) - .buildAndChain( - t.getCasingBlockItem() - .getBlock(), - t.getCasingBlockItem() - .get(0) - .getItemDamage()))) - .build(); + .addShape( + STRUCTURE_PIECE_MAIN, + transpose( + new String[][] { { " ", " f ", " " }, { " ", " f ", " " }, { " ", " f ", " " }, + { " f ", "fcf", " f " }, { " f ", "fcf", " f " }, { " f ", "fcf", " f " }, + { "b~b", "bbb", "bbb" }, })) + .addElement('f', lazy(t -> ofFrame(t.getFrameMaterial()))) + .addElement( + 'c', + lazy( + t -> ofBlock( + t.getCasingBlockItem() + .getBlock(), + t.getCasingBlockItem() + .get(0) + .getItemDamage()))) + .addElement( + 'b', + lazy( + t -> buildHatchAdder(GT_MetaTileEntity_DrillerBase.class).atLeastList(t.getAllowedHatches()) + .adder(GT_MetaTileEntity_DrillerBase::addToMachineList) + .casingIndex(t.casingTextureIndex) + .dot(1) + .buildAndChain( + t.getCasingBlockItem() + .getBlock(), + t.getCasingBlockItem() + .get(0) + .getItemDamage()))) + .build(); } }; @@ -139,39 +134,37 @@ public abstract class GT_MetaTileEntity_DrillerBase private void initFields() { casingBlock = getCasingBlockItem().getBlock(); casingMeta = getCasingBlockItem().get(0) - .getItemDamage(); + .getItemDamage(); int frameId = 4096 + getFrameMaterial().mMetaItemSubID; frameMeta = GregTech_API.METATILEENTITIES[frameId] != null - ? GregTech_API.METATILEENTITIES[frameId].getTileEntityBaseType() - : W; + ? GregTech_API.METATILEENTITIES[frameId].getTileEntityBaseType() + : W; casingTextureIndex = getCasingTextureIndex(); workState = STATE_DOWNWARD; } @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { if (aSide == aFacing) { if (aActive) return new ITexture[] { getCasingTextureForId(casingTextureIndex), TextureFactory.builder() - .addIcon( - OVERLAY_FRONT_ORE_DRILL_ACTIVE) - .extFacing() - .build(), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_ORE_DRILL_ACTIVE_GLOW) - .extFacing() - .glow() - .build() }; + .addIcon(OVERLAY_FRONT_ORE_DRILL_ACTIVE) + .extFacing() + .build(), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_ORE_DRILL_ACTIVE_GLOW) + .extFacing() + .glow() + .build() }; return new ITexture[] { getCasingTextureForId(casingTextureIndex), TextureFactory.builder() - .addIcon( - OVERLAY_FRONT_ORE_DRILL) - .extFacing() - .build(), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_ORE_DRILL_GLOW) - .extFacing() - .glow() - .build() }; + .addIcon(OVERLAY_FRONT_ORE_DRILL) + .extFacing() + .build(), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_ORE_DRILL_GLOW) + .extFacing() + .glow() + .build() }; } return new ITexture[] { getCasingTextureForId(casingTextureIndex) }; } @@ -197,20 +190,20 @@ public abstract class GT_MetaTileEntity_DrillerBase if (aNBT.hasKey("chunkLoadingEnabled")) mChunkLoadingEnabled = aNBT.getBoolean("chunkLoadingEnabled"); if (aNBT.getBoolean("isChunkloading")) { mCurrentChunk = new ChunkCoordIntPair( - aNBT.getInteger("loadedChunkXPos"), - aNBT.getInteger("loadedChunkZPos")); + aNBT.getInteger("loadedChunkXPos"), + aNBT.getInteger("loadedChunkZPos")); } } @Override public boolean onSolderingToolRightClick(byte aSide, byte aWrenchingSide, EntityPlayer aPlayer, float aX, float aY, - float aZ) { + float aZ) { if (aSide == getBaseMetaTileEntity().getFrontFacing()) { mChunkLoadingEnabled = !mChunkLoadingEnabled; GT_Utility.sendChatToPlayer( - aPlayer, - mChunkLoadingEnabled ? GT_Utility.trans("502", "Mining chunk loading enabled") - : GT_Utility.trans("503", "Mining chunk loading disabled")); + aPlayer, + mChunkLoadingEnabled ? GT_Utility.trans("502", "Mining chunk loading enabled") + : GT_Utility.trans("503", "Mining chunk loading disabled")); return true; } return super.onSolderingToolRightClick(aSide, aWrenchingSide, aPlayer, aX, aY, aZ); @@ -226,8 +219,8 @@ public abstract class GT_MetaTileEntity_DrillerBase public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) { super.onPostTick(aBaseMetaTileEntity, aTick); if (aBaseMetaTileEntity.isServerSide() && mCurrentChunk != null - && !mWorkChunkNeedsReload - && !aBaseMetaTileEntity.isAllowedToWork()) { + && !mWorkChunkNeedsReload + && !aBaseMetaTileEntity.isAllowedToWork()) { // if machine has stopped, stop chunkloading GT_ChunkManager.releaseTicket((TileEntity) aBaseMetaTileEntity); mWorkChunkNeedsReload = true; @@ -238,13 +231,9 @@ public abstract class GT_MetaTileEntity_DrillerBase if (yHead == yDrill) return isPickingPipes = false; if (tryOutputPipe()) { if (checkBlockAndMeta(xPipe, yHead + 1, zPipe, miningPipeBlock, W)) getBaseMetaTileEntity().getWorld() - .setBlock( - xPipe, - yHead + 1, - zPipe, - miningPipeTipBlock); + .setBlock(xPipe, yHead + 1, zPipe, miningPipeTipBlock); getBaseMetaTileEntity().getWorld() - .setBlockToAir(xPipe, yHead, zPipe); + .setBlockToAir(xPipe, yHead, zPipe); return isPickingPipes = true; } return isPickingPipes = false; @@ -284,17 +273,16 @@ public abstract class GT_MetaTileEntity_DrillerBase Block b = getBaseMetaTileEntity().getBlock(xPipe, yHead - 1, zPipe); if (b != miningPipeTipBlock && !GT_Utility.setBlockByFakePlayer( - getFakePlayer(getBaseMetaTileEntity()), - xPipe, - yHead - 1, - zPipe, - miningPipeTipBlock, - 0, - isSimulating)) - return 3; + getFakePlayer(getBaseMetaTileEntity()), + xPipe, + yHead - 1, + zPipe, + miningPipeTipBlock, + 0, + isSimulating)) return 3; if (!isSimulating) { if (yHead != yDrill) getBaseMetaTileEntity().getWorld() - .setBlock(xPipe, yHead, zPipe, miningPipeBlock); + .setBlock(xPipe, yHead, zPipe, miningPipeBlock); if (b != miningPipeBlock && b != miningPipeTipBlock) getBaseMetaTileEntity().decrStackSize(1, 1); } @@ -375,7 +363,7 @@ public abstract class GT_MetaTileEntity_DrillerBase } protected boolean workingDownward(ItemStack aStack, int xDrill, int yDrill, int zDrill, int xPipe, int zPipe, - int yHead, int oldYHead) { + int yHead, int oldYHead) { switch (tryLowerPipeState()) { case 2 -> { mMaxProgresstime = 0; @@ -396,7 +384,7 @@ public abstract class GT_MetaTileEntity_DrillerBase } protected boolean workingAtBottom(ItemStack aStack, int xDrill, int yDrill, int zDrill, int xPipe, int zPipe, - int yHead, int oldYHead) { + int yHead, int oldYHead) { if (tryLowerPipeState(true) == 0) { workState = STATE_DOWNWARD; return true; @@ -406,7 +394,7 @@ public abstract class GT_MetaTileEntity_DrillerBase } protected boolean workingUpward(ItemStack aStack, int xDrill, int yDrill, int zDrill, int xPipe, int zPipe, - int yHead, int oldYHead) { + int yHead, int oldYHead) { if (tryPickPipe()) { return true; } else { @@ -448,8 +436,8 @@ public abstract class GT_MetaTileEntity_DrillerBase public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack) { updateCoordinates(); return checkPiece(STRUCTURE_PIECE_MAIN, 1, 6, 0) && checkHatches() - && GT_Utility.getTier(getMaxInputVoltage()) >= getMinTier() - && mMaintenanceHatches.size() == 1; + && GT_Utility.getTier(getMaxInputVoltage()) >= getMinTier() + && mMaintenanceHatches.size() == 1; } private void updateCoordinates() { @@ -468,7 +456,7 @@ public abstract class GT_MetaTileEntity_DrillerBase if (checkBlockAndMeta(xPipe, yHead, zPipe, miningPipeTipBlock, W) || ++yHead == yDrill) return true; // pipe column is broken - try fix getBaseMetaTileEntity().getWorld() - .setBlock(xPipe, yHead, zPipe, miningPipeTipBlock); + .setBlock(xPipe, yHead, zPipe, miningPipeTipBlock); return true; } @@ -491,7 +479,7 @@ public abstract class GT_MetaTileEntity_DrillerBase private boolean checkBlockAndMeta(int x, int y, int z, Block block, int meta) { return (meta == W || getBaseMetaTileEntity().getMetaID(x, y, z) == meta) - && getBaseMetaTileEntity().getBlock(x, y, z) == block; + && getBaseMetaTileEntity().getBlock(x, y, z) == block; } private FakePlayer mFakePlayer = null; @@ -569,17 +557,15 @@ public abstract class GT_MetaTileEntity_DrillerBase for (GT_MetaTileEntity_Hatch_DataAccess tHatch : mDataAccessHatches) { if (isValidMetaTileEntity(tHatch)) { for (int i = 0; i < tHatch.getBaseMetaTileEntity() - .getSizeInventory(); i++) { + .getSizeInventory(); i++) { if (tHatch.getBaseMetaTileEntity() - .getStackInSlot(i) - != null - && isCorrectDataItem( - tHatch.getBaseMetaTileEntity() - .getStackInSlot(i), - state)) + .getStackInSlot(i) != null && isCorrectDataItem( + tHatch.getBaseMetaTileEntity() + .getStackInSlot(i), + state)) rList.add( - tHatch.getBaseMetaTileEntity() - .getStackInSlot(i)); + tHatch.getBaseMetaTileEntity() + .getStackInSlot(i)); } } } @@ -589,7 +575,7 @@ public abstract class GT_MetaTileEntity_DrillerBase @Override public boolean addToMachineList(IGregTechTileEntity aTileEntity, int aBaseCasingIndex) { return super.addToMachineList(aTileEntity, aBaseCasingIndex) - || addDataAccessToMachineList(aTileEntity, aBaseCasingIndex); + || addDataAccessToMachineList(aTileEntity, aBaseCasingIndex); } public boolean addDataAccessToMachineList(IGregTechTileEntity aTileEntity, int aBaseCasingIndex) { @@ -621,14 +607,14 @@ public abstract class GT_MetaTileEntity_DrillerBase protected List> getAllowedHatches() { return ImmutableList.of( - InputHatch, - OutputHatch, - InputBus, - OutputBus, - Muffler, - Maintenance, - Energy, - DataHatchElement.DataAccess); + InputHatch, + OutputHatch, + InputBus, + OutputBus, + Muffler, + Maintenance, + Energy, + DataHatchElement.DataAccess); } protected enum DataHatchElement implements IHatchElement { diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ElectricBlastFurnace.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ElectricBlastFurnace.java index c4795c1507..acd87c1687 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ElectricBlastFurnace.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ElectricBlastFurnace.java @@ -35,73 +35,46 @@ import gregtech.api.util.GT_Multiblock_Tooltip_Builder; import gregtech.api.util.GT_Recipe; import gregtech.api.util.GT_Utility; -public class GT_MetaTileEntity_ElectricBlastFurnace - extends GT_MetaTileEntity_AbstractMultiFurnace - implements ISurvivalConstructable { +public class GT_MetaTileEntity_ElectricBlastFurnace extends + GT_MetaTileEntity_AbstractMultiFurnace implements ISurvivalConstructable { private int mHeatingCapacity = 0; protected final ArrayList mPollutionOutputHatches = new ArrayList<>(); protected final FluidStack[] pollutionFluidStacks = { Materials.CarbonDioxide.getGas(1000), - Materials.CarbonMonoxide.getGas(1000), Materials.SulfurDioxide.getGas(1000) }; + Materials.CarbonMonoxide.getGas(1000), Materials.SulfurDioxide.getGas(1000) }; protected static final int CASING_INDEX = 11; protected static final String STRUCTURE_PIECE_MAIN = "main"; - private static final IStructureDefinition STRUCTURE_DEFINITION = StructureDefinition.builder() - .addShape( - STRUCTURE_PIECE_MAIN, - transpose( - new String[][] { - { "ttt", "tmt", - "ttt" }, - { "CCC", "C-C", - "CCC" }, - { "CCC", "C-C", - "CCC" }, - { "b~b", "bbb", - "bbb" } })) - .addElement( - 't', - buildHatchAdder( - GT_MetaTileEntity_ElectricBlastFurnace.class).atLeast( - OutputHatch.withAdder( - GT_MetaTileEntity_ElectricBlastFurnace::addOutputHatchToTopList) - .withCount( - t -> t.mPollutionOutputHatches.size())) - .casingIndex( - CASING_INDEX) - .dot( - 1) - .buildAndChain( - GregTech_API.sBlockCasings1, - CASING_INDEX)) - .addElement( - 'm', - Muffler.newAny( - CASING_INDEX, - 2)) - .addElement( - 'C', - ofCoil( - GT_MetaTileEntity_ElectricBlastFurnace::setCoilLevel, - GT_MetaTileEntity_ElectricBlastFurnace::getCoilLevel)) - .addElement( - 'b', - buildHatchAdder( - GT_MetaTileEntity_ElectricBlastFurnace.class).atLeast( - InputHatch, - OutputHatch, - InputBus, - OutputBus, - Maintenance, - Energy) - .casingIndex( - CASING_INDEX) - .dot( - 1) - .buildAndChain( - GregTech_API.sBlockCasings1, - CASING_INDEX)) - .build(); + private static final IStructureDefinition STRUCTURE_DEFINITION = StructureDefinition + .builder() + .addShape( + STRUCTURE_PIECE_MAIN, + transpose( + new String[][] { { "ttt", "tmt", "ttt" }, { "CCC", "C-C", "CCC" }, { "CCC", "C-C", "CCC" }, + { "b~b", "bbb", "bbb" } })) + .addElement( + 't', + buildHatchAdder(GT_MetaTileEntity_ElectricBlastFurnace.class) + .atLeast( + OutputHatch.withAdder(GT_MetaTileEntity_ElectricBlastFurnace::addOutputHatchToTopList) + .withCount(t -> t.mPollutionOutputHatches.size())) + .casingIndex(CASING_INDEX) + .dot(1) + .buildAndChain(GregTech_API.sBlockCasings1, CASING_INDEX)) + .addElement('m', Muffler.newAny(CASING_INDEX, 2)) + .addElement( + 'C', + ofCoil( + GT_MetaTileEntity_ElectricBlastFurnace::setCoilLevel, + GT_MetaTileEntity_ElectricBlastFurnace::getCoilLevel)) + .addElement( + 'b', + buildHatchAdder(GT_MetaTileEntity_ElectricBlastFurnace.class) + .atLeast(InputHatch, OutputHatch, InputBus, OutputBus, Maintenance, Energy) + .casingIndex(CASING_INDEX) + .dot(1) + .buildAndChain(GregTech_API.sBlockCasings1, CASING_INDEX)) + .build(); public GT_MetaTileEntity_ElectricBlastFurnace(int aID, String aName, String aNameRegional) { super(aID, aName, aNameRegional); @@ -120,56 +93,54 @@ public class GT_MetaTileEntity_ElectricBlastFurnace protected GT_Multiblock_Tooltip_Builder createTooltip() { GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder(); tt.addMachineType("Blast Furnace") - .addInfo("Controller block for the Electric Blast Furnace") - .addInfo("You can use some fluids to reduce recipe time. Place the circuit in the Input Bus") - .addInfo("Each 900K over the min. Heat required reduces power consumption by 5% (multiplicatively)") - .addInfo("Each 1800K over the min. Heat required grants one perfect overclock") - .addInfo( - "For each perfect overclock the EBF will reduce recipe time 4 times (instead of 2) (100% efficiency)") - .addInfo("Additionally gives +100K for every tier past MV") - .addPollutionAmount(getPollutionPerSecond(null)) - .addSeparator() - .beginStructureBlock(3, 4, 3, true) - .addController("Front bottom") - .addCasingInfoRange("Heat Proof Machine Casing", 0, 15, false) - .addOtherStructurePart("Heating Coils", "Two middle Layers") - .addEnergyHatch("Any bottom layer casing", 3) - .addMaintenanceHatch("Any bottom layer casing", 3) - .addMufflerHatch("Top middle", 2) - .addInputBus("Any bottom layer casing", 3) - .addInputHatch("Any bottom layer casing", 3) - .addOutputBus("Any bottom layer casing", 3) - .addOutputHatch("Liquid form of fluids, Any bottom layer casing") - .addOutputHatch("Gas form of fluids, Any top layer casing", 1) - .addStructureInfo("Recovery amount scales with Muffler Hatch tier") - .toolTipFinisher("Gregtech"); + .addInfo("Controller block for the Electric Blast Furnace") + .addInfo("You can use some fluids to reduce recipe time. Place the circuit in the Input Bus") + .addInfo("Each 900K over the min. Heat required reduces power consumption by 5% (multiplicatively)") + .addInfo("Each 1800K over the min. Heat required grants one perfect overclock") + .addInfo( + "For each perfect overclock the EBF will reduce recipe time 4 times (instead of 2) (100% efficiency)") + .addInfo("Additionally gives +100K for every tier past MV") + .addPollutionAmount(getPollutionPerSecond(null)) + .addSeparator() + .beginStructureBlock(3, 4, 3, true) + .addController("Front bottom") + .addCasingInfoRange("Heat Proof Machine Casing", 0, 15, false) + .addOtherStructurePart("Heating Coils", "Two middle Layers") + .addEnergyHatch("Any bottom layer casing", 3) + .addMaintenanceHatch("Any bottom layer casing", 3) + .addMufflerHatch("Top middle", 2) + .addInputBus("Any bottom layer casing", 3) + .addInputHatch("Any bottom layer casing", 3) + .addOutputBus("Any bottom layer casing", 3) + .addOutputHatch("Liquid form of fluids, Any bottom layer casing") + .addOutputHatch("Gas form of fluids, Any top layer casing", 1) + .addStructureInfo("Recovery amount scales with Muffler Hatch tier") + .toolTipFinisher("Gregtech"); return tt; } @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { if (aSide == aFacing) { if (aActive) return new ITexture[] { casingTexturePages[0][CASING_INDEX], TextureFactory.builder() - .addIcon( - OVERLAY_FRONT_ELECTRIC_BLAST_FURNACE_ACTIVE) - .extFacing() - .build(), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_ELECTRIC_BLAST_FURNACE_ACTIVE_GLOW) - .extFacing() - .glow() - .build() }; + .addIcon(OVERLAY_FRONT_ELECTRIC_BLAST_FURNACE_ACTIVE) + .extFacing() + .build(), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_ELECTRIC_BLAST_FURNACE_ACTIVE_GLOW) + .extFacing() + .glow() + .build() }; return new ITexture[] { casingTexturePages[0][CASING_INDEX], TextureFactory.builder() - .addIcon( - OVERLAY_FRONT_ELECTRIC_BLAST_FURNACE) - .extFacing() - .build(), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_ELECTRIC_BLAST_FURNACE_GLOW) - .extFacing() - .glow() - .build() }; + .addIcon(OVERLAY_FRONT_ELECTRIC_BLAST_FURNACE) + .extFacing() + .build(), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_ELECTRIC_BLAST_FURNACE_GLOW) + .extFacing() + .glow() + .build() }; } return new ITexture[] { casingTexturePages[0][CASING_INDEX] }; } @@ -204,13 +175,12 @@ public class GT_MetaTileEntity_ElectricBlastFurnace if (isValidMetaTileEntity(tBus)) { for (int i = tBus.getBaseMetaTileEntity() - .getSizeInventory() - - 1; i >= 0; i--) { + .getSizeInventory() - 1; i >= 0; i--) { if (tBus.getBaseMetaTileEntity() - .getStackInSlot(i) != null) { + .getStackInSlot(i) != null) { tInputs.add( - tBus.getBaseMetaTileEntity() - .getStackInSlot(i)); + tBus.getBaseMetaTileEntity() + .getStackInSlot(i)); } } } @@ -231,12 +201,8 @@ public class GT_MetaTileEntity_ElectricBlastFurnace long tVoltage = getMaxInputVoltage(); byte tTier = (byte) Math.max(1, GT_Utility.getTier(tVoltage)); - GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sBlastRecipes.findRecipe( - getBaseMetaTileEntity(), - false, - V[tTier], - tFluids, - tItems); + GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sBlastRecipes + .findRecipe(getBaseMetaTileEntity(), false, V[tTier], tFluids, tItems); if (tRecipe == null) return false; if (this.mHeatingCapacity < tRecipe.mSpecialValue) return false; @@ -382,66 +348,66 @@ public class GT_MetaTileEntity_ElectricBlastFurnace for (GT_MetaTileEntity_Hatch_Energy tHatch : mEnergyHatches) { if (!isValidMetaTileEntity(tHatch)) continue; storedEnergy += tHatch.getBaseMetaTileEntity() - .getStoredEU(); + .getStoredEU(); maxEnergy += tHatch.getBaseMetaTileEntity() - .getEUCapacity(); + .getEUCapacity(); } return new String[] { - StatCollector.translateToLocal("GT5U.multiblock.Progress") + ": " - + EnumChatFormatting.GREEN - + GT_Utility.formatNumbers(mProgresstime / 20) - + EnumChatFormatting.RESET - + " s / " - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(mMaxProgresstime / 20) - + EnumChatFormatting.RESET - + " s", - StatCollector.translateToLocal("GT5U.multiblock.energy") + ": " - + EnumChatFormatting.GREEN - + GT_Utility.formatNumbers(storedEnergy) - + EnumChatFormatting.RESET - + " EU / " - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(maxEnergy) - + EnumChatFormatting.RESET - + " EU", - StatCollector.translateToLocal("GT5U.multiblock.usage") + ": " - + EnumChatFormatting.RED - + GT_Utility.formatNumbers(-mEUt) - + EnumChatFormatting.RESET - + " EU/t", - StatCollector.translateToLocal("GT5U.multiblock.mei") + ": " - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(getMaxInputVoltage()) - + EnumChatFormatting.RESET - + " EU/t(*2A) " - + StatCollector.translateToLocal("GT5U.machines.tier") - + ": " - + EnumChatFormatting.YELLOW - + VN[GT_Utility.getTier(getMaxInputVoltage())] - + EnumChatFormatting.RESET, - StatCollector.translateToLocal("GT5U.multiblock.problems") + ": " - + EnumChatFormatting.RED - + (getIdealStatus() - getRepairStatus()) - + EnumChatFormatting.RESET - + " " - + StatCollector.translateToLocal("GT5U.multiblock.efficiency") - + ": " - + EnumChatFormatting.YELLOW - + mEfficiency / 100.0F - + EnumChatFormatting.RESET - + " %", - StatCollector.translateToLocal("GT5U.EBF.heat") + ": " - + EnumChatFormatting.GREEN - + GT_Utility.formatNumbers(mHeatingCapacity) - + EnumChatFormatting.RESET - + " K", - StatCollector.translateToLocal("GT5U.multiblock.pollution") + ": " - + EnumChatFormatting.GREEN - + mPollutionReduction - + EnumChatFormatting.RESET - + " %" }; + StatCollector.translateToLocal("GT5U.multiblock.Progress") + ": " + + EnumChatFormatting.GREEN + + GT_Utility.formatNumbers(mProgresstime / 20) + + EnumChatFormatting.RESET + + " s / " + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(mMaxProgresstime / 20) + + EnumChatFormatting.RESET + + " s", + StatCollector.translateToLocal("GT5U.multiblock.energy") + ": " + + EnumChatFormatting.GREEN + + GT_Utility.formatNumbers(storedEnergy) + + EnumChatFormatting.RESET + + " EU / " + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(maxEnergy) + + EnumChatFormatting.RESET + + " EU", + StatCollector.translateToLocal("GT5U.multiblock.usage") + ": " + + EnumChatFormatting.RED + + GT_Utility.formatNumbers(-mEUt) + + EnumChatFormatting.RESET + + " EU/t", + StatCollector.translateToLocal("GT5U.multiblock.mei") + ": " + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(getMaxInputVoltage()) + + EnumChatFormatting.RESET + + " EU/t(*2A) " + + StatCollector.translateToLocal("GT5U.machines.tier") + + ": " + + EnumChatFormatting.YELLOW + + VN[GT_Utility.getTier(getMaxInputVoltage())] + + EnumChatFormatting.RESET, + StatCollector.translateToLocal("GT5U.multiblock.problems") + ": " + + EnumChatFormatting.RED + + (getIdealStatus() - getRepairStatus()) + + EnumChatFormatting.RESET + + " " + + StatCollector.translateToLocal("GT5U.multiblock.efficiency") + + ": " + + EnumChatFormatting.YELLOW + + mEfficiency / 100.0F + + EnumChatFormatting.RESET + + " %", + StatCollector.translateToLocal("GT5U.EBF.heat") + ": " + + EnumChatFormatting.GREEN + + GT_Utility.formatNumbers(mHeatingCapacity) + + EnumChatFormatting.RESET + + " K", + StatCollector.translateToLocal("GT5U.multiblock.pollution") + ": " + + EnumChatFormatting.GREEN + + mPollutionReduction + + EnumChatFormatting.RESET + + " %" }; } @Override @@ -459,8 +425,8 @@ public class GT_MetaTileEntity_ElectricBlastFurnace public void onScrewdriverRightClick(byte aSide, EntityPlayer aPlayer, float aX, float aY, float aZ) { inputSeparation = !inputSeparation; GT_Utility.sendChatToPlayer( - aPlayer, - StatCollector.translateToLocal("GT5U.machines.separatebus") + " " + inputSeparation); + aPlayer, + StatCollector.translateToLocal("GT5U.machines.separatebus") + " " + inputSeparation); } @Override diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ExtremeDieselEngine.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ExtremeDieselEngine.java index e9ed294fc2..f156d4ffbd 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ExtremeDieselEngine.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ExtremeDieselEngine.java @@ -38,27 +38,27 @@ public class GT_MetaTileEntity_ExtremeDieselEngine extends GT_MetaTileEntity_Die protected GT_Multiblock_Tooltip_Builder createTooltip() { final GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder(); tt.addMachineType("Combustion Generator") - .addInfo("Controller block for the Extreme Combustion Engine") - .addInfo("Supply high rating fuel and 8000L of Lubricant per hour to run") - .addInfo("Supply 40L/s of Liquid Oxygen to boost output (optional)") - .addInfo("Default: Produces 10900EU/t at 100% fuel efficiency") - .addInfo("Boosted: Produces 32700EU/t at 150% fuel efficiency") - .addInfo("You need to wait for it to reach 300% to output full power") - .addPollutionAmount(getPollutionPerSecond(null)) - .addSeparator() - .beginStructureBlock(3, 3, 4, false) - .addController("Front center") - .addCasingInfoRange("Robust Tungstensteel Machine Casing", 16, 22, false) - .addOtherStructurePart("Titanium Gear Box Machine Casing", "Inner 2 blocks") - .addOtherStructurePart("Extreme Engine Intake Machine Casing", "8x, ring around controller") - .addStructureInfo("Extreme Engine Intake Casings must not be obstructed in front (only air blocks)") - .addDynamoHatch("Back center", 2) - .addMaintenanceHatch("One of the casings next to a Gear Box", 1) - .addMufflerHatch("Top middle back, above the rear Gear Box", 1) - .addInputHatch("HOG, next to a Gear Box", 1) - .addInputHatch("Lubricant, next to a Gear Box", 1) - .addInputHatch("Liquid Oxygen, optional, next to a Gear Box", 1) - .toolTipFinisher("Gregtech"); + .addInfo("Controller block for the Extreme Combustion Engine") + .addInfo("Supply high rating fuel and 8000L of Lubricant per hour to run") + .addInfo("Supply 40L/s of Liquid Oxygen to boost output (optional)") + .addInfo("Default: Produces 10900EU/t at 100% fuel efficiency") + .addInfo("Boosted: Produces 32700EU/t at 150% fuel efficiency") + .addInfo("You need to wait for it to reach 300% to output full power") + .addPollutionAmount(getPollutionPerSecond(null)) + .addSeparator() + .beginStructureBlock(3, 3, 4, false) + .addController("Front center") + .addCasingInfoRange("Robust Tungstensteel Machine Casing", 16, 22, false) + .addOtherStructurePart("Titanium Gear Box Machine Casing", "Inner 2 blocks") + .addOtherStructurePart("Extreme Engine Intake Machine Casing", "8x, ring around controller") + .addStructureInfo("Extreme Engine Intake Casings must not be obstructed in front (only air blocks)") + .addDynamoHatch("Back center", 2) + .addMaintenanceHatch("One of the casings next to a Gear Box", 1) + .addMufflerHatch("Top middle back, above the rear Gear Box", 1) + .addInputHatch("HOG, next to a Gear Box", 1) + .addInputHatch("Lubricant, next to a Gear Box", 1) + .addInputHatch("Liquid Oxygen, optional, next to a Gear Box", 1) + .toolTipFinisher("Gregtech"); return tt; } @@ -69,28 +69,26 @@ public class GT_MetaTileEntity_ExtremeDieselEngine extends GT_MetaTileEntity_Die @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { if (aSide == aFacing) { if (aActive) return new ITexture[] { casingTexturePages[0][60], TextureFactory.builder() - .addIcon( - OVERLAY_FRONT_EXTREME_DIESEL_ENGINE_ACTIVE) - .extFacing() - .build(), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_EXTREME_DIESEL_ENGINE_ACTIVE_GLOW) - .extFacing() - .glow() - .build() }; + .addIcon(OVERLAY_FRONT_EXTREME_DIESEL_ENGINE_ACTIVE) + .extFacing() + .build(), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_EXTREME_DIESEL_ENGINE_ACTIVE_GLOW) + .extFacing() + .glow() + .build() }; return new ITexture[] { casingTexturePages[0][60], TextureFactory.builder() - .addIcon( - OVERLAY_FRONT_EXTREME_DIESEL_ENGINE) - .extFacing() - .build(), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_EXTREME_DIESEL_ENGINE_GLOW) - .extFacing() - .glow() - .build() }; + .addIcon(OVERLAY_FRONT_EXTREME_DIESEL_ENGINE) + .extFacing() + .build(), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_EXTREME_DIESEL_ENGINE_GLOW) + .extFacing() + .glow() + .build() }; } return new ITexture[] { casingTexturePages[0][60] }; } @@ -184,56 +182,56 @@ public class GT_MetaTileEntity_ExtremeDieselEngine extends GT_MetaTileEntity_Die for (GT_MetaTileEntity_Hatch_Dynamo tHatch : mDynamoHatches) { if (isValidMetaTileEntity(tHatch)) { storedEnergy += tHatch.getBaseMetaTileEntity() - .getStoredEU(); + .getStoredEU(); maxEnergy += tHatch.getBaseMetaTileEntity() - .getEUCapacity(); + .getEUCapacity(); } } return new String[] { EnumChatFormatting.BLUE + "Extreme Diesel Engine" + EnumChatFormatting.RESET, - StatCollector.translateToLocal("GT5U.multiblock.energy") + ": " - + EnumChatFormatting.GREEN - + GT_Utility.formatNumbers(storedEnergy) - + EnumChatFormatting.RESET - + " EU / " - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(maxEnergy) - + EnumChatFormatting.RESET - + " EU", - getIdealStatus() == getRepairStatus() - ? EnumChatFormatting.GREEN + StatCollector.translateToLocal("GT5U.turbine.maintenance.false") - + EnumChatFormatting.RESET - : EnumChatFormatting.RED + StatCollector.translateToLocal("GT5U.turbine.maintenance.true") - + EnumChatFormatting.RESET, - StatCollector.translateToLocal("GT5U.engine.output") + ": " - + EnumChatFormatting.RED - + GT_Utility.formatNumbers(-mEUt * mEfficiency / 10000) - + EnumChatFormatting.RESET - + " EU/t", - StatCollector.translateToLocal("GT5U.engine.consumption") + ": " - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(fuelConsumption) - + EnumChatFormatting.RESET - + " L/t", - StatCollector.translateToLocal("GT5U.engine.value") + ": " - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(fuelValue) - + EnumChatFormatting.RESET - + " EU/L", - StatCollector.translateToLocal("GT5U.turbine.fuel") + ": " - + EnumChatFormatting.GOLD - + GT_Utility.formatNumbers(fuelRemaining) - + EnumChatFormatting.RESET - + " L", - StatCollector.translateToLocal("GT5U.engine.efficiency") + ": " - + EnumChatFormatting.YELLOW - + (mEfficiency / 100F) - + EnumChatFormatting.YELLOW - + " %", - StatCollector.translateToLocal("GT5U.multiblock.pollution") + ": " - + EnumChatFormatting.GREEN - + mPollutionReduction - + EnumChatFormatting.RESET - + " %" }; + StatCollector.translateToLocal("GT5U.multiblock.energy") + ": " + + EnumChatFormatting.GREEN + + GT_Utility.formatNumbers(storedEnergy) + + EnumChatFormatting.RESET + + " EU / " + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(maxEnergy) + + EnumChatFormatting.RESET + + " EU", + getIdealStatus() == getRepairStatus() + ? EnumChatFormatting.GREEN + StatCollector.translateToLocal("GT5U.turbine.maintenance.false") + + EnumChatFormatting.RESET + : EnumChatFormatting.RED + StatCollector.translateToLocal("GT5U.turbine.maintenance.true") + + EnumChatFormatting.RESET, + StatCollector.translateToLocal("GT5U.engine.output") + ": " + + EnumChatFormatting.RED + + GT_Utility.formatNumbers(-mEUt * mEfficiency / 10000) + + EnumChatFormatting.RESET + + " EU/t", + StatCollector.translateToLocal("GT5U.engine.consumption") + ": " + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(fuelConsumption) + + EnumChatFormatting.RESET + + " L/t", + StatCollector.translateToLocal("GT5U.engine.value") + ": " + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(fuelValue) + + EnumChatFormatting.RESET + + " EU/L", + StatCollector.translateToLocal("GT5U.turbine.fuel") + ": " + + EnumChatFormatting.GOLD + + GT_Utility.formatNumbers(fuelRemaining) + + EnumChatFormatting.RESET + + " L", + StatCollector.translateToLocal("GT5U.engine.efficiency") + ": " + + EnumChatFormatting.YELLOW + + (mEfficiency / 100F) + + EnumChatFormatting.YELLOW + + " %", + StatCollector.translateToLocal("GT5U.multiblock.pollution") + ": " + + EnumChatFormatting.GREEN + + mPollutionReduction + + EnumChatFormatting.RESET + + " %" }; } } diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_FusionComputer.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_FusionComputer.java index 73b26c6a59..a67b050abb 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_FusionComputer.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_FusionComputer.java @@ -56,8 +56,8 @@ import gregtech.common.power.FusionPower; import gregtech.common.power.Power; public abstract class GT_MetaTileEntity_FusionComputer - extends GT_MetaTileEntity_EnhancedMultiBlockBase - implements ISurvivalConstructable, IAddUIWidgets { + extends GT_MetaTileEntity_EnhancedMultiBlockBase + implements ISurvivalConstructable, IAddUIWidgets { protected FusionPower power; @@ -67,84 +67,53 @@ public abstract class GT_MetaTileEntity_FusionComputer @Override protected IStructureDefinition computeValue(Class type) { return StructureDefinition.builder() - .addShape( - STRUCTURE_PIECE_MAIN, - transpose( - new String[][] { { " ", " ihi ", - " hh hh ", " h h ", " h h ", - " h h ", " i i ", " h h ", - " i i ", " h h ", " h h ", - " h h ", " hh hh ", " ihi ", - " ", }, - { " xhx ", " hhccchh ", " eccxhxcce ", - " eceh hece ", " hce ech ", - " hch hch ", "xcx xcx", - "hch hch", "xcx xcx", - " hch hch ", " hce ech ", - " eceh hece ", " eccx~xcce ", - " hhccchh ", " xhx ", }, - { " ", " ihi ", " hh hh ", - " h h ", " h h ", - " h h ", " i i ", - " h h ", " i i ", - " h h ", " h h ", - " h h ", " hh hh ", - " ihi ", " ", } })) - .addElement('c', lazy(t -> ofBlock(t.getFusionCoil(), t.getFusionCoilMeta()))) - .addElement('h', lazy(t -> ofBlock(t.getCasing(), t.getCasingMeta()))) - .addElement( - 'i', - lazy( - t -> buildHatchAdder( - GT_MetaTileEntity_FusionComputer.class).atLeast( - ImmutableMap.of( - InputHatch.withAdder( - GT_MetaTileEntity_FusionComputer::addInjector), - 2)) - .hatchItemFilterAnd( - t2 -> filterByMTETier( - t2.tier(), - Integer.MAX_VALUE)) - .casingIndex(53) - .dot(1) - .buildAndChain( - t.getCasing(), - t.getCasingMeta()))) - .addElement( - 'e', - lazy( - t -> buildHatchAdder( - GT_MetaTileEntity_FusionComputer.class).atLeast( - ImmutableMap.of( - Energy.withAdder( - GT_MetaTileEntity_FusionComputer::addEnergyInjector), - 16)) - .hatchItemFilterAnd( - t2 -> filterByMTETier( - t2.tier(), - Integer.MAX_VALUE)) - .casingIndex(53) - .dot(2) - .buildAndChain( - t.getCasing(), - t.getCasingMeta()))) - .addElement( - 'x', - lazy( - t -> buildHatchAdder( - GT_MetaTileEntity_FusionComputer.class).atLeast( - OutputHatch.withAdder( - GT_MetaTileEntity_FusionComputer::addExtractor)) - .hatchItemFilterAnd( - t2 -> filterByMTETier( - t2.tier(), - Integer.MAX_VALUE)) - .casingIndex(53) - .dot(3) - .buildAndChain( - t.getCasing(), - t.getCasingMeta()))) - .build(); + .addShape( + STRUCTURE_PIECE_MAIN, + transpose( + new String[][] { + { " ", " ihi ", " hh hh ", " h h ", + " h h ", " h h ", " i i ", " h h ", + " i i ", " h h ", " h h ", " h h ", + " hh hh ", " ihi ", " ", }, + { " xhx ", " hhccchh ", " eccxhxcce ", " eceh hece ", + " hce ech ", " hch hch ", "xcx xcx", "hch hch", + "xcx xcx", " hch hch ", " hce ech ", " eceh hece ", + " eccx~xcce ", " hhccchh ", " xhx ", }, + { " ", " ihi ", " hh hh ", " h h ", + " h h ", " h h ", " i i ", " h h ", + " i i ", " h h ", " h h ", " h h ", + " hh hh ", " ihi ", " ", } })) + .addElement('c', lazy(t -> ofBlock(t.getFusionCoil(), t.getFusionCoilMeta()))) + .addElement('h', lazy(t -> ofBlock(t.getCasing(), t.getCasingMeta()))) + .addElement( + 'i', + lazy( + t -> buildHatchAdder(GT_MetaTileEntity_FusionComputer.class) + .atLeast( + ImmutableMap.of(InputHatch.withAdder(GT_MetaTileEntity_FusionComputer::addInjector), 2)) + .hatchItemFilterAnd(t2 -> filterByMTETier(t2.tier(), Integer.MAX_VALUE)) + .casingIndex(53) + .dot(1) + .buildAndChain(t.getCasing(), t.getCasingMeta()))) + .addElement( + 'e', + lazy( + t -> buildHatchAdder(GT_MetaTileEntity_FusionComputer.class).atLeast( + ImmutableMap.of(Energy.withAdder(GT_MetaTileEntity_FusionComputer::addEnergyInjector), 16)) + .hatchItemFilterAnd(t2 -> filterByMTETier(t2.tier(), Integer.MAX_VALUE)) + .casingIndex(53) + .dot(2) + .buildAndChain(t.getCasing(), t.getCasingMeta()))) + .addElement( + 'x', + lazy( + t -> buildHatchAdder(GT_MetaTileEntity_FusionComputer.class) + .atLeast(OutputHatch.withAdder(GT_MetaTileEntity_FusionComputer::addExtractor)) + .hatchItemFilterAnd(t2 -> filterByMTETier(t2.tier(), Integer.MAX_VALUE)) + .casingIndex(53) + .dot(3) + .buildAndChain(t.getCasing(), t.getCasingMeta()))) + .build(); } }; public GT_Recipe mLastRecipe; @@ -152,17 +121,17 @@ public abstract class GT_MetaTileEntity_FusionComputer static { Textures.BlockIcons.setCasingTextureForId( - 52, - TextureFactory.of( - TextureFactory.builder() - .addIcon(MACHINE_CASING_FUSION_GLASS_YELLOW) - .extFacing() - .build(), - TextureFactory.builder() - .addIcon(MACHINE_CASING_FUSION_GLASS_YELLOW_GLOW) - .extFacing() - .glow() - .build())); + 52, + TextureFactory.of( + TextureFactory.builder() + .addIcon(MACHINE_CASING_FUSION_GLASS_YELLOW) + .extFacing() + .build(), + TextureFactory.builder() + .addIcon(MACHINE_CASING_FUSION_GLASS_YELLOW_GLOW) + .extFacing() + .glow() + .build())); } public GT_MetaTileEntity_FusionComputer(int aID, String aName, String aNameRegional, int tier) { @@ -211,20 +180,20 @@ public abstract class GT_MetaTileEntity_FusionComputer protected GT_Multiblock_Tooltip_Builder createTooltip() { GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder(); tt.addController("Fusion Reactor") - .addInfo("Some kind of fusion reactor, maybe") - .addSeparator() - .addInfo("Some kind of fusion reactor, maybe") - .addStructureInfo("Should probably be built similar to other fusions") - .addStructureInfo("See controller tooltip for details") - .toolTipFinisher("Gregtech"); + .addInfo("Some kind of fusion reactor, maybe") + .addSeparator() + .addInfo("Some kind of fusion reactor, maybe") + .addStructureInfo("Should probably be built similar to other fusions") + .addStructureInfo("See controller tooltip for details") + .toolTipFinisher("Gregtech"); return tt; } @Override public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack) { if (checkPiece(STRUCTURE_PIECE_MAIN, 7, 1, 12) && mInputHatches.size() > 1 - && !mOutputHatches.isEmpty() - && !mEnergyHatches.isEmpty()) { + && !mOutputHatches.isEmpty() + && !mEnergyHatches.isEmpty()) { mWrench = true; mScrewdriver = true; mSoftHammer = true; @@ -275,17 +244,16 @@ public abstract class GT_MetaTileEntity_FusionComputer @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { if (aSide == aFacing) return new ITexture[] { TextureFactory.builder() - .addIcon(MACHINE_CASING_FUSION_GLASS) - .extFacing() - .build(), - getTextureOverlay() }; + .addIcon(MACHINE_CASING_FUSION_GLASS) + .extFacing() + .build(), getTextureOverlay() }; if (aActive) return new ITexture[] { Textures.BlockIcons.getCasingTextureForId(52) }; return new ITexture[] { TextureFactory.builder() - .addIcon(MACHINE_CASING_FUSION_GLASS) - .extFacing() - .build() }; + .addIcon(MACHINE_CASING_FUSION_GLASS) + .extFacing() + .build() }; } /** @@ -333,19 +301,11 @@ public abstract class GT_MetaTileEntity_FusionComputer FluidStack[] tFluids = tFluidList.toArray(new FluidStack[0]); GT_Recipe tRecipe; - tRecipe = GT_Recipe.GT_Recipe_Map.sFusionRecipes.findRecipe( - this.getBaseMetaTileEntity(), - this.mLastRecipe, - false, - GT_Values.V[tier()], - tFluids); + tRecipe = GT_Recipe.GT_Recipe_Map.sFusionRecipes + .findRecipe(this.getBaseMetaTileEntity(), this.mLastRecipe, false, GT_Values.V[tier()], tFluids); if (tRecipe == null) { - tRecipe = GT_Recipe.GT_Recipe_Map.sComplexFusionRecipes.findRecipe( - this.getBaseMetaTileEntity(), - this.mLastRecipe, - false, - GT_Values.V[tier()], - tFluids); + tRecipe = GT_Recipe.GT_Recipe_Map.sComplexFusionRecipes + .findRecipe(this.getBaseMetaTileEntity(), this.mLastRecipe, false, GT_Values.V[tier()], tFluids); } if ((tRecipe == null && !mRunningOnLoad) || (maxEUStore() < tRecipe.mSpecialValue)) { @@ -411,8 +371,8 @@ public abstract class GT_MetaTileEntity_FusionComputer if (isValidMetaTileEntity(tHatch)) { long energyToMove = GT_Values.V[tier()] / 16; if (aBaseMetaTileEntity.getStoredEU() + energyToMove < maxEUStore() - && tHatch.getBaseMetaTileEntity() - .decreaseStoredEnergyUnits(energyToMove, false)) { + && tHatch.getBaseMetaTileEntity() + .decreaseStoredEnergyUnits(energyToMove, false)) { aBaseMetaTileEntity.increaseStoredEnergyUnits(energyToMove, true); } } @@ -428,9 +388,8 @@ public abstract class GT_MetaTileEntity_FusionComputer for (ItemStack tStack : mOutputItems) if (tStack != null) addOutput(tStack); if (mOutputFluids != null) for (FluidStack tStack : mOutputFluids) if (tStack != null) addOutput(tStack); - mEfficiency = Math.max( - 0, - Math.min(mEfficiency + mEfficiencyIncrease, getMaxEfficiency(mInventory[1]))); + mEfficiency = Math + .max(0, Math.min(mEfficiency + mEfficiencyIncrease, getMaxEfficiency(mInventory[1]))); mOutputItems = null; mProgresstime = 0; mMaxProgresstime = 0; @@ -438,10 +397,9 @@ public abstract class GT_MetaTileEntity_FusionComputer if (mOutputFluids != null && mOutputFluids.length > 0) { try { GT_Mod.achievements.issueAchivementHatchFluid( - aBaseMetaTileEntity.getWorld() - .getPlayerEntityByName( - aBaseMetaTileEntity.getOwnerName()), - mOutputFluids[0]); + aBaseMetaTileEntity.getWorld() + .getPlayerEntityByName(aBaseMetaTileEntity.getOwnerName()), + mOutputFluids[0]); } catch (Exception ignored) {} } this.mEUStore = aBaseMetaTileEntity.getStoredEU(); @@ -449,7 +407,7 @@ public abstract class GT_MetaTileEntity_FusionComputer } } else { if (aTick % 100 == 0 || aBaseMetaTileEntity.hasWorkJustBeenEnabled() - || aBaseMetaTileEntity.hasInventoryBeenModified()) { + || aBaseMetaTileEntity.hasInventoryBeenModified()) { turnCasingActive(mMaxProgresstime > 0); if (aBaseMetaTileEntity.isAllowedToWork()) { this.mEUStore = aBaseMetaTileEntity.getStoredEU(); @@ -457,9 +415,8 @@ public abstract class GT_MetaTileEntity_FusionComputer if (this.mEUStore < this.mLastRecipe.mSpecialValue - this.mEUt) { criticalStopMachine(); } - aBaseMetaTileEntity.decreaseStoredEnergyUnits( - this.mLastRecipe.mSpecialValue - this.mEUt, - true); + aBaseMetaTileEntity + .decreaseStoredEnergyUnits(this.mLastRecipe.mSpecialValue - this.mEUt, true); } } if (mMaxProgresstime <= 0) mEfficiency = Math.max(0, mEfficiency - 1000); @@ -470,8 +427,8 @@ public abstract class GT_MetaTileEntity_FusionComputer stopMachine(); } } - aBaseMetaTileEntity.setErrorDisplayID( - (aBaseMetaTileEntity.getErrorDisplayID() & ~127) | (mMachine ? 0 : 64)); + aBaseMetaTileEntity + .setErrorDisplayID((aBaseMetaTileEntity.getErrorDisplayID() & ~127) | (mMachine ? 0 : 64)); aBaseMetaTileEntity.setActive(mMaxProgresstime > 0); } } @@ -522,8 +479,8 @@ public abstract class GT_MetaTileEntity_FusionComputer @Override public String[] getInfoData() { String tier = tier() == 6 ? EnumChatFormatting.RED + "I" + EnumChatFormatting.RESET - : tier() == 7 ? EnumChatFormatting.YELLOW + "II" + EnumChatFormatting.RESET - : tier() == 8 ? EnumChatFormatting.GRAY + "III" + EnumChatFormatting.RESET : "IV"; + : tier() == 7 ? EnumChatFormatting.YELLOW + "II" + EnumChatFormatting.RESET + : tier() == 8 ? EnumChatFormatting.GRAY + "III" + EnumChatFormatting.RESET : "IV"; float plasmaOut = 0; int powerRequired = 0; if (this.mLastRecipe != null) { @@ -534,25 +491,25 @@ public abstract class GT_MetaTileEntity_FusionComputer } return new String[] { EnumChatFormatting.BLUE + "Fusion Reactor MK " + EnumChatFormatting.RESET + tier, - StatCollector.translateToLocal("GT5U.fusion.req") + ": " - + EnumChatFormatting.RED - + GT_Utility.formatNumbers(powerRequired) - + EnumChatFormatting.RESET - + "EU/t", - StatCollector.translateToLocal("GT5U.multiblock.energy") + ": " - + EnumChatFormatting.GREEN - + GT_Utility.formatNumbers(mEUStore) - + EnumChatFormatting.RESET - + " EU / " - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(maxEUStore()) - + EnumChatFormatting.RESET - + " EU", - StatCollector.translateToLocal("GT5U.fusion.plasma") + ": " - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(plasmaOut) - + EnumChatFormatting.RESET - + "L/t" }; + StatCollector.translateToLocal("GT5U.fusion.req") + ": " + + EnumChatFormatting.RED + + GT_Utility.formatNumbers(powerRequired) + + EnumChatFormatting.RESET + + "EU/t", + StatCollector.translateToLocal("GT5U.multiblock.energy") + ": " + + EnumChatFormatting.GREEN + + GT_Utility.formatNumbers(mEUStore) + + EnumChatFormatting.RESET + + " EU / " + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(maxEUStore()) + + EnumChatFormatting.RESET + + " EU", + StatCollector.translateToLocal("GT5U.fusion.plasma") + ": " + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(plasmaOut) + + EnumChatFormatting.RESET + + "L/t" }; } @Override @@ -584,9 +541,9 @@ public abstract class GT_MetaTileEntity_FusionComputer @Override public void addGregTechLogo(ModularWindow.Builder builder) { builder.widget( - new DrawableWidget().setDrawable(getGUITextureSet().getGregTechLogo()) - .setSize(17, 17) - .setPos(155, 145)); + new DrawableWidget().setDrawable(getGUITextureSet().getGregTechLogo()) + .setSize(17, 17) + .setPos(155, 145)); } @Override @@ -606,79 +563,71 @@ public abstract class GT_MetaTileEntity_FusionComputer @Override public void addUIWidgets(ModularWindow.Builder builder, UIBuildContext buildContext) { - builder.widget( + builder + .widget( new TextWidget(GT_Utility.trans("138", "Incomplete Structure.")).setDefaultColor(COLOR_TEXT_WHITE.get()) - .setEnabled(widget -> !mMachine) - .setPos(10, 8)) - .widget(new FakeSyncWidget.BooleanSyncer(() -> mMachine, val -> mMachine = val)) - .widget( - new TextWidget( - "Hit with Soft Mallet to (re-)start the Machine if it doesn't start.").setDefaultColor( - COLOR_TEXT_WHITE.get()) - .setTextAlignment( - Alignment.Center) - .setEnabled( - widget -> getBaseMetaTileEntity().getErrorDisplayID() - == 0 - && !getBaseMetaTileEntity().isActive()) - .setPos( - -getGUIWidth() - / 2, - 170) - .setSize( - getGUIWidth() - * 2, - 9)) - .widget( - new FakeSyncWidget.IntegerSyncer( - () -> getBaseMetaTileEntity().getErrorDisplayID(), - val -> getBaseMetaTileEntity().setErrorDisplayID(val))) - .widget( - new FakeSyncWidget.BooleanSyncer( - () -> getBaseMetaTileEntity().isActive(), - val -> getBaseMetaTileEntity().setActive(val))) - .widget( - new TextWidget("Running perfectly.").setDefaultColor(COLOR_TEXT_WHITE.get()) - .setTextAlignment(Alignment.Center) - .setEnabled( - widget -> getBaseMetaTileEntity().getErrorDisplayID() - == 0 && getBaseMetaTileEntity().isActive()) - .setPos(0, 170) - .setSize(getGUIWidth(), 9)) - .widget( - new FakeSyncWidget.IntegerSyncer( - () -> getBaseMetaTileEntity().getErrorDisplayID(), - val -> getBaseMetaTileEntity().setErrorDisplayID(val))) - .widget( - new ProgressBar().setProgress( - () -> (float) getBaseMetaTileEntity().getStoredEU() - / getBaseMetaTileEntity().getEUCapacity()) - .setDirection(ProgressBar.Direction.RIGHT) - .setTexture(GT_UITextures.PROGRESSBAR_STORED_EU, 147) - .setPos(5, 156) - .setSize(147, 5)) - .widget(TextWidget.dynamicString(() -> { - long energy = getBaseMetaTileEntity().getStoredEU(); - if (energy > 160_000_000L && energy < 160_010_000L) { - energy = 160_000_000L; - } - if (energy > 320_000_000L && energy < 320_010_000L) { - energy = 320_000_000L; - } - if (energy > 640_000_000L && energy < 640_010_000L) { - energy = 640_000_000L; - } - if (energy > 5_120_000_000L && energy < 5_120_080_000L) { - energy = 5_120_000_000L; - } - return GT_Utility.formatNumbers(energy) + " EU"; - }) - .setDefaultColor(COLOR_TEXT_RED.get()) - .setPos(50, 155)) - .widget( - new ButtonWidget().setNEITransferRect(GT_Recipe.GT_Recipe_Map.sFusionRecipes.mNEIName) - .setBackground(GT_UITextures.BUTTON_STANDARD, GT_UITextures.OVERLAY_BUTTON_NEI) - .setPos(154, 4) - .setSize(18, 18)); + .setEnabled(widget -> !mMachine) + .setPos(10, 8)) + .widget(new FakeSyncWidget.BooleanSyncer(() -> mMachine, val -> mMachine = val)) + .widget( + new TextWidget("Hit with Soft Mallet to (re-)start the Machine if it doesn't start.") + .setDefaultColor(COLOR_TEXT_WHITE.get()) + .setTextAlignment(Alignment.Center) + .setEnabled( + widget -> getBaseMetaTileEntity().getErrorDisplayID() == 0 + && !getBaseMetaTileEntity().isActive()) + .setPos(-getGUIWidth() / 2, 170) + .setSize(getGUIWidth() * 2, 9)) + .widget( + new FakeSyncWidget.IntegerSyncer( + () -> getBaseMetaTileEntity().getErrorDisplayID(), + val -> getBaseMetaTileEntity().setErrorDisplayID(val))) + .widget( + new FakeSyncWidget.BooleanSyncer( + () -> getBaseMetaTileEntity().isActive(), + val -> getBaseMetaTileEntity().setActive(val))) + .widget( + new TextWidget("Running perfectly.").setDefaultColor(COLOR_TEXT_WHITE.get()) + .setTextAlignment(Alignment.Center) + .setEnabled( + widget -> getBaseMetaTileEntity().getErrorDisplayID() == 0 + && getBaseMetaTileEntity().isActive()) + .setPos(0, 170) + .setSize(getGUIWidth(), 9)) + .widget( + new FakeSyncWidget.IntegerSyncer( + () -> getBaseMetaTileEntity().getErrorDisplayID(), + val -> getBaseMetaTileEntity().setErrorDisplayID(val))) + .widget( + new ProgressBar() + .setProgress( + () -> (float) getBaseMetaTileEntity().getStoredEU() / getBaseMetaTileEntity().getEUCapacity()) + .setDirection(ProgressBar.Direction.RIGHT) + .setTexture(GT_UITextures.PROGRESSBAR_STORED_EU, 147) + .setPos(5, 156) + .setSize(147, 5)) + .widget(TextWidget.dynamicString(() -> { + long energy = getBaseMetaTileEntity().getStoredEU(); + if (energy > 160_000_000L && energy < 160_010_000L) { + energy = 160_000_000L; + } + if (energy > 320_000_000L && energy < 320_010_000L) { + energy = 320_000_000L; + } + if (energy > 640_000_000L && energy < 640_010_000L) { + energy = 640_000_000L; + } + if (energy > 5_120_000_000L && energy < 5_120_080_000L) { + energy = 5_120_000_000L; + } + return GT_Utility.formatNumbers(energy) + " EU"; + }) + .setDefaultColor(COLOR_TEXT_RED.get()) + .setPos(50, 155)) + .widget( + new ButtonWidget().setNEITransferRect(GT_Recipe.GT_Recipe_Map.sFusionRecipes.mNEIName) + .setBackground(GT_UITextures.BUTTON_STANDARD, GT_UITextures.OVERLAY_BUTTON_NEI) + .setPos(154, 4) + .setSize(18, 18)); } } diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_FusionComputer1.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_FusionComputer1.java index 382e2c6c6e..cd44756d62 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_FusionComputer1.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_FusionComputer1.java @@ -16,15 +16,15 @@ import gregtech.common.power.FusionPower; public class GT_MetaTileEntity_FusionComputer1 extends GT_MetaTileEntity_FusionComputer { private static final ITexture textureOverlay = TextureFactory.of( - TextureFactory.builder() - .addIcon(OVERLAY_FUSION1) - .extFacing() - .build(), - TextureFactory.builder() - .addIcon(OVERLAY_FUSION1_GLOW) - .extFacing() - .glow() - .build()); + TextureFactory.builder() + .addIcon(OVERLAY_FUSION1) + .extFacing() + .build(), + TextureFactory.builder() + .addIcon(OVERLAY_FUSION1_GLOW) + .extFacing() + .glow() + .build()); public GT_MetaTileEntity_FusionComputer1(int aID, String aName, String aNameRegional) { super(aID, aName, aNameRegional, 6); @@ -75,22 +75,22 @@ public class GT_MetaTileEntity_FusionComputer1 extends GT_MetaTileEntity_FusionC protected GT_Multiblock_Tooltip_Builder createTooltip() { final GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder(); tt.addMachineType("Fusion Reactor") - .addInfo("It's over 9000!!!") - .addInfo("Controller block for the Fusion Reactor Mk I") - .addInfo("2048EU/t and 10M EU capacity per Energy Hatch") - .addInfo("If the recipe has a startup cost greater than the") - .addInfo("number of energy hatches * cap, you can't do it") - .addSeparator() - .beginStructureBlock(15, 3, 15, false) - .addController("See diagram when placed") - .addCasingInfoRange("LuV Machine Casing", 79, 123, false) - .addStructureInfo("Cover the coils with casing") - .addOtherStructurePart("Superconducting Coil Block", "Center part of the ring") - .addEnergyHatch("1-16, Specified casings", 2) - .addInputHatch("2-16, Specified casings", 1) - .addOutputHatch("1-16, Specified casings", 3) - .addStructureInfo("ALL Hatches must be LuV or better") - .toolTipFinisher("Gregtech"); + .addInfo("It's over 9000!!!") + .addInfo("Controller block for the Fusion Reactor Mk I") + .addInfo("2048EU/t and 10M EU capacity per Energy Hatch") + .addInfo("If the recipe has a startup cost greater than the") + .addInfo("number of energy hatches * cap, you can't do it") + .addSeparator() + .beginStructureBlock(15, 3, 15, false) + .addController("See diagram when placed") + .addCasingInfoRange("LuV Machine Casing", 79, 123, false) + .addStructureInfo("Cover the coils with casing") + .addOtherStructurePart("Superconducting Coil Block", "Center part of the ring") + .addEnergyHatch("1-16, Specified casings", 2) + .addInputHatch("2-16, Specified casings", 1) + .addOutputHatch("1-16, Specified casings", 3) + .addStructureInfo("ALL Hatches must be LuV or better") + .toolTipFinisher("Gregtech"); return tt; } diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_FusionComputer2.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_FusionComputer2.java index 5a5e884cb8..7b77ddcf66 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_FusionComputer2.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_FusionComputer2.java @@ -16,15 +16,15 @@ import gregtech.common.power.FusionPower; public class GT_MetaTileEntity_FusionComputer2 extends GT_MetaTileEntity_FusionComputer { private static final ITexture textureOverlay = TextureFactory.of( - TextureFactory.builder() - .addIcon(OVERLAY_FUSION2) - .extFacing() - .build(), - TextureFactory.builder() - .addIcon(OVERLAY_FUSION2_GLOW) - .extFacing() - .glow() - .build()); + TextureFactory.builder() + .addIcon(OVERLAY_FUSION2) + .extFacing() + .build(), + TextureFactory.builder() + .addIcon(OVERLAY_FUSION2_GLOW) + .extFacing() + .glow() + .build()); public GT_MetaTileEntity_FusionComputer2(int aID, String aName, String aNameRegional) { super(aID, aName, aNameRegional, 7); @@ -75,22 +75,22 @@ public class GT_MetaTileEntity_FusionComputer2 extends GT_MetaTileEntity_FusionC protected GT_Multiblock_Tooltip_Builder createTooltip() { final GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder(); tt.addMachineType("Fusion Reactor") - .addInfo("It's over 9000!!!") - .addInfo("Controller block for the Fusion Reactor Mk II") - .addInfo("8192EU/t and 20M EU capacity per Energy Hatch") - .addInfo("If the recipe has a startup cost greater than the") - .addInfo("number of energy hatches * cap, you can't do it") - .addSeparator() - .beginStructureBlock(15, 3, 15, false) - .addController("See diagram when placed") - .addCasingInfoRange("Fusion Machine Casing", 79, 123, false) - .addStructureInfo("Cover the coils with casing") - .addOtherStructurePart("Fusion Coil Block", "Center part of the ring") - .addEnergyHatch("1-16, Specified casings", 2) - .addInputHatch("2-16, Specified casings", 1) - .addOutputHatch("1-16, Specified casings", 3) - .addStructureInfo("ALL Hatches must be ZPM or better") - .toolTipFinisher("Gregtech"); + .addInfo("It's over 9000!!!") + .addInfo("Controller block for the Fusion Reactor Mk II") + .addInfo("8192EU/t and 20M EU capacity per Energy Hatch") + .addInfo("If the recipe has a startup cost greater than the") + .addInfo("number of energy hatches * cap, you can't do it") + .addSeparator() + .beginStructureBlock(15, 3, 15, false) + .addController("See diagram when placed") + .addCasingInfoRange("Fusion Machine Casing", 79, 123, false) + .addStructureInfo("Cover the coils with casing") + .addOtherStructurePart("Fusion Coil Block", "Center part of the ring") + .addEnergyHatch("1-16, Specified casings", 2) + .addInputHatch("2-16, Specified casings", 1) + .addOutputHatch("1-16, Specified casings", 3) + .addStructureInfo("ALL Hatches must be ZPM or better") + .toolTipFinisher("Gregtech"); return tt; } diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_FusionComputer3.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_FusionComputer3.java index 2d5c6111fd..271e28713d 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_FusionComputer3.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_FusionComputer3.java @@ -16,15 +16,15 @@ import gregtech.common.power.FusionPower; public class GT_MetaTileEntity_FusionComputer3 extends GT_MetaTileEntity_FusionComputer { private static final ITexture textureOverlay = TextureFactory.of( - TextureFactory.builder() - .addIcon(OVERLAY_FUSION3) - .extFacing() - .build(), - TextureFactory.builder() - .addIcon(OVERLAY_FUSION3_GLOW) - .extFacing() - .glow() - .build()); + TextureFactory.builder() + .addIcon(OVERLAY_FUSION3) + .extFacing() + .build(), + TextureFactory.builder() + .addIcon(OVERLAY_FUSION3_GLOW) + .extFacing() + .glow() + .build()); public GT_MetaTileEntity_FusionComputer3(int aID, String aName, String aNameRegional) { super(aID, aName, aNameRegional, 8); @@ -75,22 +75,22 @@ public class GT_MetaTileEntity_FusionComputer3 extends GT_MetaTileEntity_FusionC protected GT_Multiblock_Tooltip_Builder createTooltip() { final GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder(); tt.addMachineType("Fusion Reactor") - .addInfo("A SUN DOWN ON EARTH") - .addInfo("Controller block for the Fusion Reactor Mk III") - .addInfo("32768EU/t and 40M EU capacity per Energy Hatch") - .addInfo("If the recipe has a startup cost greater than the") - .addInfo("number of energy hatches * cap, you can't do it") - .addSeparator() - .beginStructureBlock(15, 3, 15, false) - .addController("See diagram when placed") - .addCasingInfoRange("Fusion Machine Casing Mk II", 79, 123, false) - .addStructureInfo("Cover the coils with casing") - .addOtherStructurePart("Fusion Coil Block", "Center part of the ring") - .addEnergyHatch("1-16, Specified casings", 2) - .addInputHatch("2-16, Specified casings", 1) - .addOutputHatch("1-16, Specified casings", 3) - .addStructureInfo("ALL Hatches must be UV or better") - .toolTipFinisher("Gregtech"); + .addInfo("A SUN DOWN ON EARTH") + .addInfo("Controller block for the Fusion Reactor Mk III") + .addInfo("32768EU/t and 40M EU capacity per Energy Hatch") + .addInfo("If the recipe has a startup cost greater than the") + .addInfo("number of energy hatches * cap, you can't do it") + .addSeparator() + .beginStructureBlock(15, 3, 15, false) + .addController("See diagram when placed") + .addCasingInfoRange("Fusion Machine Casing Mk II", 79, 123, false) + .addStructureInfo("Cover the coils with casing") + .addOtherStructurePart("Fusion Coil Block", "Center part of the ring") + .addEnergyHatch("1-16, Specified casings", 2) + .addInputHatch("2-16, Specified casings", 1) + .addOutputHatch("1-16, Specified casings", 3) + .addStructureInfo("ALL Hatches must be UV or better") + .toolTipFinisher("Gregtech"); return tt; } diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_HeatExchanger.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_HeatExchanger.java index ceb901c5ad..bdaf5209ce 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_HeatExchanger.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_HeatExchanger.java @@ -36,74 +36,41 @@ import gregtech.api.util.GT_Multiblock_Tooltip_Builder; import gregtech.api.util.GT_Utility; public class GT_MetaTileEntity_HeatExchanger extends - GT_MetaTileEntity_EnhancedMultiBlockBase implements ISurvivalConstructable { + GT_MetaTileEntity_EnhancedMultiBlockBase implements ISurvivalConstructable { private int dryHeatCounter = 0; // Counts up to dryHeatMaximum to check for explosion conditions private static final int dryHeatMaximum = 2000; // 2000 ticks = 100 seconds private static final int CASING_INDEX = 50; private static final String STRUCTURE_PIECE_MAIN = "main"; - private static final IStructureDefinition STRUCTURE_DEFINITION = StructureDefinition.builder() - .addShape( - STRUCTURE_PIECE_MAIN, - transpose( - new String[][] { - { "ccc", "cCc", - "ccc" }, - { "ccc", "cPc", - "ccc" }, - { "ccc", "cPc", - "ccc" }, - { "c~c", "cHc", - "ccc" }, })) - .addElement( - 'P', - ofBlock( - GregTech_API.sBlockCasings2, - 14)) - .addElement( - 'C', - OutputHatch.withAdder( - GT_MetaTileEntity_HeatExchanger::addColdFluidOutputToMachineList) - .withCount( - t -> isValidMetaTileEntity( - t.mOutputColdFluidHatch) - ? 1 - : 0) - .newAny( - CASING_INDEX, - 3)) - .addElement( - 'H', - OutputHatch.withAdder( - GT_MetaTileEntity_HeatExchanger::addHotFluidInputToMachineList) - .withCount( - t -> isValidMetaTileEntity( - t.mInputHotFluidHatch) - ? 1 - : 0) - .newAny( - CASING_INDEX, - 3)) - .addElement( - 'c', - buildHatchAdder( - GT_MetaTileEntity_HeatExchanger.class).atLeast( - InputBus, - InputHatch, - OutputBus, - OutputHatch, - Maintenance) - .casingIndex( - CASING_INDEX) - .dot( - 1) - .buildAndChain( - onElementPass( - GT_MetaTileEntity_HeatExchanger::onCasingAdded, - ofBlock( - GregTech_API.sBlockCasings4, - (byte) 2)))) - .build(); + private static final IStructureDefinition STRUCTURE_DEFINITION = StructureDefinition + .builder() + .addShape( + STRUCTURE_PIECE_MAIN, + transpose( + new String[][] { { "ccc", "cCc", "ccc" }, { "ccc", "cPc", "ccc" }, { "ccc", "cPc", "ccc" }, + { "c~c", "cHc", "ccc" }, })) + .addElement('P', ofBlock(GregTech_API.sBlockCasings2, 14)) + .addElement( + 'C', + OutputHatch.withAdder(GT_MetaTileEntity_HeatExchanger::addColdFluidOutputToMachineList) + .withCount(t -> isValidMetaTileEntity(t.mOutputColdFluidHatch) ? 1 : 0) + .newAny(CASING_INDEX, 3)) + .addElement( + 'H', + OutputHatch.withAdder(GT_MetaTileEntity_HeatExchanger::addHotFluidInputToMachineList) + .withCount(t -> isValidMetaTileEntity(t.mInputHotFluidHatch) ? 1 : 0) + .newAny(CASING_INDEX, 3)) + .addElement( + 'c', + buildHatchAdder(GT_MetaTileEntity_HeatExchanger.class) + .atLeast(InputBus, InputHatch, OutputBus, OutputHatch, Maintenance) + .casingIndex(CASING_INDEX) + .dot(1) + .buildAndChain( + onElementPass( + GT_MetaTileEntity_HeatExchanger::onCasingAdded, + ofBlock(GregTech_API.sBlockCasings4, (byte) 2)))) + .build(); public static float penalty_per_config = 0.015f; // penalize 1.5% efficiency per circuitry level (1-25) private GT_MetaTileEntity_Hatch_Input mInputHotFluidHatch; @@ -129,23 +96,23 @@ public class GT_MetaTileEntity_HeatExchanger extends protected GT_Multiblock_Tooltip_Builder createTooltip() { final GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder(); tt.addMachineType("Heat Exchanger") - .addInfo("Controller Block for the Large Heat Exchanger") - .addInfo("More complicated than a Fusion Reactor. Seriously") - .addInfo("Inputs are Hot Coolant or Lava") - .addInfo("Outputs Coolant or Pahoehoe Lava and SH Steam/Steam") - .addInfo("Read the wiki article to understand how it works") - .addInfo("Then go to the Discord to understand the wiki") - .addSeparator() - .beginStructureBlock(3, 4, 3, false) - .addController("Front bottom") - .addCasingInfoRange("Stable Titanium Machine Casing", 20, 32, false) - .addOtherStructurePart("Titanium Pipe Casing", "Center 2 blocks") - .addMaintenanceHatch("Any casing", 1) - .addInputHatch("Hot fluid, bottom center", 2) - .addInputHatch("Distilled water, any casing", 1) - .addOutputHatch("Cold fluid, top center", 3) - .addOutputHatch("Steam/SH Steam, any casing", 1) - .toolTipFinisher("Gregtech"); + .addInfo("Controller Block for the Large Heat Exchanger") + .addInfo("More complicated than a Fusion Reactor. Seriously") + .addInfo("Inputs are Hot Coolant or Lava") + .addInfo("Outputs Coolant or Pahoehoe Lava and SH Steam/Steam") + .addInfo("Read the wiki article to understand how it works") + .addInfo("Then go to the Discord to understand the wiki") + .addSeparator() + .beginStructureBlock(3, 4, 3, false) + .addController("Front bottom") + .addCasingInfoRange("Stable Titanium Machine Casing", 20, 32, false) + .addOtherStructurePart("Titanium Pipe Casing", "Center 2 blocks") + .addMaintenanceHatch("Any casing", 1) + .addInputHatch("Hot fluid, bottom center", 2) + .addInputHatch("Distilled water, any casing", 1) + .addOutputHatch("Cold fluid, top center", 3) + .addOutputHatch("Steam/SH Steam, any casing", 1) + .toolTipFinisher("Gregtech"); return tt; } @@ -165,28 +132,26 @@ public class GT_MetaTileEntity_HeatExchanger extends @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { if (aSide == aFacing) { if (aActive) return new ITexture[] { casingTexturePages[0][CASING_INDEX], TextureFactory.builder() - .addIcon( - OVERLAY_FRONT_HEAT_EXCHANGER_ACTIVE) - .extFacing() - .build(), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_HEAT_EXCHANGER_ACTIVE_GLOW) - .extFacing() - .glow() - .build() }; + .addIcon(OVERLAY_FRONT_HEAT_EXCHANGER_ACTIVE) + .extFacing() + .build(), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_HEAT_EXCHANGER_ACTIVE_GLOW) + .extFacing() + .glow() + .build() }; return new ITexture[] { casingTexturePages[0][CASING_INDEX], TextureFactory.builder() - .addIcon( - OVERLAY_FRONT_HEAT_EXCHANGER) - .extFacing() - .build(), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_HEAT_EXCHANGER_GLOW) - .extFacing() - .glow() - .build() }; + .addIcon(OVERLAY_FRONT_HEAT_EXCHANGER) + .extFacing() + .build(), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_HEAT_EXCHANGER_GLOW) + .extFacing() + .glow() + .build() }; } return new ITexture[] { casingTexturePages[0][CASING_INDEX] }; } @@ -218,7 +183,7 @@ public class GT_MetaTileEntity_HeatExchanger extends // Do we have an integrated circuit with a valid configuration? if (mInventory[1] != null && mInventory[1].getUnlocalizedName() - .startsWith("gt.integrated_circuit")) { + .startsWith("gt.integrated_circuit")) { int circuit_config = mInventory[1].getItemDamage(); if (circuit_config >= 1 && circuit_config <= 25) { // If so, apply the penalty and reduced threshold. @@ -234,25 +199,24 @@ public class GT_MetaTileEntity_HeatExchanger extends superheated_threshold /= 4f; // unchanged do_lava = true; } else if (mInputHotFluidHatch.getFluid() - .isFluidEqual(FluidRegistry.getFluidStack("ic2hotcoolant", 1))) { - steam_output_multiplier /= 2f; // was boosted x2 on top of x5 -> total x10 -> - // nerf with this code back to 5x - superheated_threshold /= 5f; // 10x smaller since the Hot Things production in - // reactor is the same. - do_coolant = true; - } else - if (mInputHotFluidHatch.getFluid() - .isFluidEqual(FluidRegistry.getFluidStack("molten.solarsalthot", 1))) { - steam_output_multiplier *= 2.5f; // Solar Salt:Steam value is 5x higher than Hot - // Coolant's value - superheated_threshold /= 25f; // Given that, multiplier is 5x higher and - // threshold is 5x lower - do_solarSalt = true; - } else { - // If we're working with neither, fail out - superheated_threshold = 0; - return false; - } + .isFluidEqual(FluidRegistry.getFluidStack("ic2hotcoolant", 1))) { + steam_output_multiplier /= 2f; // was boosted x2 on top of x5 -> total x10 -> + // nerf with this code back to 5x + superheated_threshold /= 5f; // 10x smaller since the Hot Things production in + // reactor is the same. + do_coolant = true; + } else if (mInputHotFluidHatch.getFluid() + .isFluidEqual(FluidRegistry.getFluidStack("molten.solarsalthot", 1))) { + steam_output_multiplier *= 2.5f; // Solar Salt:Steam value is 5x higher than Hot + // Coolant's value + superheated_threshold /= 25f; // Given that, multiplier is 5x higher and + // threshold is 5x lower + do_solarSalt = true; + } else { + // If we're working with neither, fail out + superheated_threshold = 0; + return false; + } superheated = fluidAmountToConsume >= superheated_threshold; // set the internal superheated flag if we have // enough hot fluid. Used in the @@ -391,43 +355,43 @@ public class GT_MetaTileEntity_HeatExchanger extends @Override public String[] getInfoData() { return new String[] { - StatCollector.translateToLocal("GT5U.multiblock.Progress") + ": " - + EnumChatFormatting.GREEN - + GT_Utility.formatNumbers(mProgresstime / 20) - + EnumChatFormatting.RESET - + " s / " - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(mMaxProgresstime / 20) - + EnumChatFormatting.RESET - + " s", - StatCollector.translateToLocal("GT5U.multiblock.usage") + " " - + StatCollector.translateToLocal("GT5U.LHE.steam") - + ": " - + (superheated ? EnumChatFormatting.RED : EnumChatFormatting.YELLOW) - + GT_Utility.formatNumbers(superheated ? -2 * mEUt : -mEUt) - + EnumChatFormatting.RESET - + " EU/t", - StatCollector.translateToLocal("GT5U.multiblock.problems") + ": " - + EnumChatFormatting.RED - + (getIdealStatus() - getRepairStatus()) - + EnumChatFormatting.RESET - + " " - + StatCollector.translateToLocal("GT5U.multiblock.efficiency") - + ": " - + EnumChatFormatting.YELLOW - + mEfficiency / 100.0F - + EnumChatFormatting.RESET - + " %", - StatCollector.translateToLocal("GT5U.LHE.superheated") + ": " - + (superheated ? EnumChatFormatting.RED : EnumChatFormatting.BLUE) - + superheated - + EnumChatFormatting.RESET, - StatCollector.translateToLocal("GT5U.LHE.superheated") + " " - + StatCollector.translateToLocal("GT5U.LHE.threshold") - + ": " - + EnumChatFormatting.GREEN - + GT_Utility.formatNumbers(superheated_threshold) - + EnumChatFormatting.RESET }; + StatCollector.translateToLocal("GT5U.multiblock.Progress") + ": " + + EnumChatFormatting.GREEN + + GT_Utility.formatNumbers(mProgresstime / 20) + + EnumChatFormatting.RESET + + " s / " + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(mMaxProgresstime / 20) + + EnumChatFormatting.RESET + + " s", + StatCollector.translateToLocal("GT5U.multiblock.usage") + " " + + StatCollector.translateToLocal("GT5U.LHE.steam") + + ": " + + (superheated ? EnumChatFormatting.RED : EnumChatFormatting.YELLOW) + + GT_Utility.formatNumbers(superheated ? -2 * mEUt : -mEUt) + + EnumChatFormatting.RESET + + " EU/t", + StatCollector.translateToLocal("GT5U.multiblock.problems") + ": " + + EnumChatFormatting.RED + + (getIdealStatus() - getRepairStatus()) + + EnumChatFormatting.RESET + + " " + + StatCollector.translateToLocal("GT5U.multiblock.efficiency") + + ": " + + EnumChatFormatting.YELLOW + + mEfficiency / 100.0F + + EnumChatFormatting.RESET + + " %", + StatCollector.translateToLocal("GT5U.LHE.superheated") + ": " + + (superheated ? EnumChatFormatting.RED : EnumChatFormatting.BLUE) + + superheated + + EnumChatFormatting.RESET, + StatCollector.translateToLocal("GT5U.LHE.superheated") + " " + + StatCollector.translateToLocal("GT5U.LHE.threshold") + + ": " + + EnumChatFormatting.GREEN + + GT_Utility.formatNumbers(superheated_threshold) + + EnumChatFormatting.RESET }; } @Override diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ImplosionCompressor.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ImplosionCompressor.java index fede7c283d..f21d814838 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ImplosionCompressor.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ImplosionCompressor.java @@ -25,7 +25,7 @@ import gregtech.api.util.GT_Recipe; import gregtech.api.util.GT_Utility; public class GT_MetaTileEntity_ImplosionCompressor - extends GT_MetaTileEntity_CubicMultiBlockBase { + extends GT_MetaTileEntity_CubicMultiBlockBase { public GT_MetaTileEntity_ImplosionCompressor(int aID, String aName, String aNameRegional) { super(aID, aName, aNameRegional); @@ -44,53 +44,51 @@ public class GT_MetaTileEntity_ImplosionCompressor protected GT_Multiblock_Tooltip_Builder createTooltip() { final GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder(); tt.addMachineType("Implosion Compressor") - .addInfo("Explosions are fun") - .addInfo("Controller block for the Implosion Compressor") - .addPollutionAmount(getPollutionPerSecond(null)) - .addSeparator() - .beginStructureBlock(3, 3, 3, true) - .addController("Front center") - .addCasingInfoRange("Solid Steel Machine Casing", 16, 24, false) - .addStructureInfo("Casings can be replaced with Explosion Warning Signs") - .addEnergyHatch("Any casing", 1) - .addMaintenanceHatch("Any casing", 1) - .addMufflerHatch("Any casing", 1) - .addInputBus("Any casing", 1) - .addOutputBus("Any casing", 1) - .toolTipFinisher("Gregtech"); + .addInfo("Explosions are fun") + .addInfo("Controller block for the Implosion Compressor") + .addPollutionAmount(getPollutionPerSecond(null)) + .addSeparator() + .beginStructureBlock(3, 3, 3, true) + .addController("Front center") + .addCasingInfoRange("Solid Steel Machine Casing", 16, 24, false) + .addStructureInfo("Casings can be replaced with Explosion Warning Signs") + .addEnergyHatch("Any casing", 1) + .addMaintenanceHatch("Any casing", 1) + .addMufflerHatch("Any casing", 1) + .addInputBus("Any casing", 1) + .addOutputBus("Any casing", 1) + .toolTipFinisher("Gregtech"); return tt; } @Override public boolean addToMachineList(IGregTechTileEntity aTileEntity, int aBaseCasingIndex) { return super.addToMachineList(aTileEntity, aBaseCasingIndex) - || addMufflerToMachineList(aTileEntity, aBaseCasingIndex); + || addMufflerToMachineList(aTileEntity, aBaseCasingIndex); } @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { if (aSide == aFacing) { if (aActive) return new ITexture[] { BlockIcons.casingTexturePages[0][16], TextureFactory.builder() - .addIcon( - OVERLAY_FRONT_IMPLOSION_COMPRESSOR_ACTIVE) - .extFacing() - .build(), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_IMPLOSION_COMPRESSOR_ACTIVE_GLOW) - .extFacing() - .glow() - .build() }; + .addIcon(OVERLAY_FRONT_IMPLOSION_COMPRESSOR_ACTIVE) + .extFacing() + .build(), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_IMPLOSION_COMPRESSOR_ACTIVE_GLOW) + .extFacing() + .glow() + .build() }; return new ITexture[] { BlockIcons.casingTexturePages[0][16], TextureFactory.builder() - .addIcon( - OVERLAY_FRONT_IMPLOSION_COMPRESSOR) - .extFacing() - .build(), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_IMPLOSION_COMPRESSOR_GLOW) - .extFacing() - .glow() - .build() }; + .addIcon(OVERLAY_FRONT_IMPLOSION_COMPRESSOR) + .extFacing() + .build(), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_IMPLOSION_COMPRESSOR_GLOW) + .extFacing() + .glow() + .build() }; } return new ITexture[] { Textures.BlockIcons.casingTexturePages[0][16] }; } @@ -125,12 +123,8 @@ public class GT_MetaTileEntity_ImplosionCompressor } ItemStack[] tInputs = tInputList.toArray(new ItemStack[0]); if (!tInputList.isEmpty()) { - GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sImplosionRecipes.findRecipe( - getBaseMetaTileEntity(), - false, - 9223372036854775807L, - null, - tInputs); + GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sImplosionRecipes + .findRecipe(getBaseMetaTileEntity(), false, 9223372036854775807L, null, tInputs); if ((tRecipe != null) && (tRecipe.isRecipeInputEqual(true, null, tInputs))) { this.mEfficiency = (10000 - (getIdealStatus() - getRepairStatus()) * 1000); this.mEfficiencyIncrease = 10000; diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_IntegratedOreFactory.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_IntegratedOreFactory.java index ef0eae45a8..23fa445868 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_IntegratedOreFactory.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_IntegratedOreFactory.java @@ -49,192 +49,70 @@ import gregtech.api.util.GT_Multiblock_Tooltip_Builder; import gregtech.api.util.GT_Recipe; import gregtech.api.util.GT_Utility; -public class GT_MetaTileEntity_IntegratedOreFactory - extends GT_MetaTileEntity_EnhancedMultiBlockBase - implements ISurvivalConstructable { +public class GT_MetaTileEntity_IntegratedOreFactory extends + GT_MetaTileEntity_EnhancedMultiBlockBase implements ISurvivalConstructable { private static final int CASING_INDEX1 = 183; private static final int CASING_INDEX2 = 49; private static final int MAX_PARA = 1024; private static final String STRUCTURE_PIECE_MAIN = "main"; - private static final IStructureDefinition STRUCTURE_DEFINITION = StructureDefinition.builder() - .addShape( - STRUCTURE_PIECE_MAIN, - transpose( - new String[][] { - { " ", - " ", - " WWW ", - " WWW ", - " ", - " " }, - { " ", - " sss ", - " sppps", - " sppps", - " sss ", - " " }, - { " ", - " sss ", - " s s", - " s s", - " sss ", - " " }, - { " ", - " sss ", - " sppps", - " sppps", - " sss ", - " " }, - { " ", - " sss ", - " s s", - " s s", - " sss ", - " " }, - { " ", - " sss ", - " sppps", - " sppps", - " sss ", - " " }, - { "iiiiii ", - "iIIIIiisssi", - "iIIIIis s", - "iIIIIis s", - "iIIIIiisssi", - "iiiiii " }, - { "iggggi ", - "gt t isssi", - "g xx sppps", - "g xx sppps", - "gt t isssi", - "iggggi " }, - { "iggggi ", - "gt t isssi", - "g xx s s", - "g xx s s", - "gt t isssi", - "iggggi " }, - { "iggggi ", - "gt t is~si", - "g xx spppO", - "g xx spppO", - "gt t isssi", - "iggggi " }, - { "iggggi ", - "gt t isssi", - "g xx s O", - "g xx s O", - "gt t isssi", - "iggggi " }, - { "EEEEEE ", - "EEEEEEEEEEE", - "EEEEEEEEEEE", - "EEEEEEEEEEE", - "EEEEEEEEEEE", - "EEEEEE " } })) - .addElement( - 'i', - ofBlock( - GregTech_API.sBlockCasings8, - 7)) - .addElement( - 's', - ofBlock( - GregTech_API.sBlockCasings4, - 1)) - .addElement( - 'g', - ofChain( - ofBlockUnlocalizedName( - IndustrialCraft2.ID, - "blockAlloyGlass", - 0, - true), - ofBlockUnlocalizedName( - BartWorks.ID, - "BW_GlasBlocks", - 0, - true), - ofBlockUnlocalizedName( - BartWorks.ID, - "BW_GlasBlocks2", - 0, - true), - // warded - // glass - ofBlockUnlocalizedName( - Thaumcraft.ID, - "blockCosmeticOpaque", - 2, - false))) - .addElement( - 'x', - ofBlock( - GregTech_API.sBlockCasings2, - 3)) - .addElement( - 'p', - ofBlock( - GregTech_API.sBlockCasings2, - 15)) - .addElement( - 't', - ofFrame( - Materials.TungstenSteel)) - .addElement( - 'E', - buildHatchAdder( - GT_MetaTileEntity_IntegratedOreFactory.class).atLeast( - Energy, - Maintenance) - .casingIndex( - CASING_INDEX1) - .dot( - 1) - .buildAndChain( - GregTech_API.sBlockCasings8, - 7)) - .addElement( - 'I', - buildHatchAdder( - GT_MetaTileEntity_IntegratedOreFactory.class).atLeast( - InputBus) - .casingIndex( - CASING_INDEX1) - .dot( - 2) - .buildAndChain( - GregTech_API.sBlockCasings8, - 7)) - .addElement( - 'W', - buildHatchAdder( - GT_MetaTileEntity_IntegratedOreFactory.class).atLeast( - InputHatch, - Muffler) - .casingIndex( - CASING_INDEX2) - .dot( - 3) - .buildAndChain( - GregTech_API.sBlockCasings4, - 1)) - .addElement( - 'O', - buildHatchAdder( - GT_MetaTileEntity_IntegratedOreFactory.class).atLeast( - OutputBus, - OutputHatch) - .casingIndex( - CASING_INDEX2) - .dot( - 4) - .buildAndChain( - GregTech_API.sBlockCasings4, - 1)) - .build(); + private static final IStructureDefinition STRUCTURE_DEFINITION = StructureDefinition + .builder() + .addShape( + STRUCTURE_PIECE_MAIN, + transpose( + new String[][] { + { " ", " ", " WWW ", " WWW ", " ", " " }, + { " ", " sss ", " sppps", " sppps", " sss ", " " }, + { " ", " sss ", " s s", " s s", " sss ", " " }, + { " ", " sss ", " sppps", " sppps", " sss ", " " }, + { " ", " sss ", " s s", " s s", " sss ", " " }, + { " ", " sss ", " sppps", " sppps", " sss ", " " }, + { "iiiiii ", "iIIIIiisssi", "iIIIIis s", "iIIIIis s", "iIIIIiisssi", "iiiiii " }, + { "iggggi ", "gt t isssi", "g xx sppps", "g xx sppps", "gt t isssi", "iggggi " }, + { "iggggi ", "gt t isssi", "g xx s s", "g xx s s", "gt t isssi", "iggggi " }, + { "iggggi ", "gt t is~si", "g xx spppO", "g xx spppO", "gt t isssi", "iggggi " }, + { "iggggi ", "gt t isssi", "g xx s O", "g xx s O", "gt t isssi", "iggggi " }, + { "EEEEEE ", "EEEEEEEEEEE", "EEEEEEEEEEE", "EEEEEEEEEEE", "EEEEEEEEEEE", "EEEEEE " } })) + .addElement('i', ofBlock(GregTech_API.sBlockCasings8, 7)) + .addElement('s', ofBlock(GregTech_API.sBlockCasings4, 1)) + .addElement( + 'g', + ofChain( + ofBlockUnlocalizedName(IndustrialCraft2.ID, "blockAlloyGlass", 0, true), + ofBlockUnlocalizedName(BartWorks.ID, "BW_GlasBlocks", 0, true), + ofBlockUnlocalizedName(BartWorks.ID, "BW_GlasBlocks2", 0, true), + // warded + // glass + ofBlockUnlocalizedName(Thaumcraft.ID, "blockCosmeticOpaque", 2, false))) + .addElement('x', ofBlock(GregTech_API.sBlockCasings2, 3)) + .addElement('p', ofBlock(GregTech_API.sBlockCasings2, 15)) + .addElement('t', ofFrame(Materials.TungstenSteel)) + .addElement( + 'E', + buildHatchAdder(GT_MetaTileEntity_IntegratedOreFactory.class).atLeast(Energy, Maintenance) + .casingIndex(CASING_INDEX1) + .dot(1) + .buildAndChain(GregTech_API.sBlockCasings8, 7)) + .addElement( + 'I', + buildHatchAdder(GT_MetaTileEntity_IntegratedOreFactory.class).atLeast(InputBus) + .casingIndex(CASING_INDEX1) + .dot(2) + .buildAndChain(GregTech_API.sBlockCasings8, 7)) + .addElement( + 'W', + buildHatchAdder(GT_MetaTileEntity_IntegratedOreFactory.class).atLeast(InputHatch, Muffler) + .casingIndex(CASING_INDEX2) + .dot(3) + .buildAndChain(GregTech_API.sBlockCasings4, 1)) + .addElement( + 'O', + buildHatchAdder(GT_MetaTileEntity_IntegratedOreFactory.class).atLeast(OutputBus, OutputHatch) + .casingIndex(CASING_INDEX2) + .dot(4) + .buildAndChain(GregTech_API.sBlockCasings4, 1)) + .build(); private static final HashSet isCrushedOre = new HashSet<>(); private static final HashSet isCrushedPureOre = new HashSet<>(); @@ -311,30 +189,30 @@ public class GT_MetaTileEntity_IntegratedOreFactory protected GT_Multiblock_Tooltip_Builder createTooltip() { final GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder(); tt.addMachineType("Ore Processor") - .addInfo("Controller Block for the Integrated Ore Factory") - .addInfo("It is OP. I mean ore processor.") - .addInfo("Do all ore procession in one step.") - .addInfo("Can process up to 1024 ores per time.") - .addInfo("Every ore costs 30EU/t, 2L lubricant, 200L distilled water.") - .addInfo("Process time is depend on mode.") - .addInfo("Use a screwdriver to switch mode.") - .addInfo("Sneak click with screwdriver to void the stone dusts.") - .addSeparator() - .beginStructureBlock(6, 12, 11, false) - .addController("The third layer") - .addStructureInfo("128 advanced iridium plated machine casing") - .addStructureInfo("105 clean stainless steel machine casing") - .addStructureInfo("48 reinforced glass") - .addStructureInfo("30 tungstensteel pipe casing") - .addStructureInfo("16 tungstensteel frame box") - .addStructureInfo("16 steel gear box casing") - .addEnergyHatch("Button Casing", 1) - .addMaintenanceHatch("Button Casing", 1) - .addInputBus("Input ore/crushed ore", 2) - .addInputHatch("Input lubricant/distilled water/washing chemicals", 3) - .addMufflerHatch("Output Pollution", 3) - .addOutputBus("Output products", 4) - .toolTipFinisher("Gregtech"); + .addInfo("Controller Block for the Integrated Ore Factory") + .addInfo("It is OP. I mean ore processor.") + .addInfo("Do all ore procession in one step.") + .addInfo("Can process up to 1024 ores per time.") + .addInfo("Every ore costs 30EU/t, 2L lubricant, 200L distilled water.") + .addInfo("Process time is depend on mode.") + .addInfo("Use a screwdriver to switch mode.") + .addInfo("Sneak click with screwdriver to void the stone dusts.") + .addSeparator() + .beginStructureBlock(6, 12, 11, false) + .addController("The third layer") + .addStructureInfo("128 advanced iridium plated machine casing") + .addStructureInfo("105 clean stainless steel machine casing") + .addStructureInfo("48 reinforced glass") + .addStructureInfo("30 tungstensteel pipe casing") + .addStructureInfo("16 tungstensteel frame box") + .addStructureInfo("16 steel gear box casing") + .addEnergyHatch("Button Casing", 1) + .addMaintenanceHatch("Button Casing", 1) + .addInputBus("Input ore/crushed ore", 2) + .addInputHatch("Input lubricant/distilled water/washing chemicals", 3) + .addMufflerHatch("Output Pollution", 3) + .addOutputBus("Output products", 4) + .toolTipFinisher("Gregtech"); return tt; } @@ -405,10 +283,10 @@ public class GT_MetaTileEntity_IntegratedOreFactory int tID = GT_Utility.stackToInt(ore); if (tID == 0) continue; if (isPureDust.contains(tID) || isImpureDust.contains(tID) - || isCrushedPureOre.contains(tID) - || isThermal.contains(tID) - || isCrushedOre.contains(tID) - || isOre.contains(tID)) { + || isCrushedPureOre.contains(tID) + || isThermal.contains(tID) + || isCrushedOre.contains(tID) + || isOre.contains(tID)) { if (ore.stackSize <= tCharged) { tRealUsed += ore.stackSize; tOres.add(GT_Utility.copy(ore)); @@ -497,8 +375,8 @@ public class GT_MetaTileEntity_IntegratedOreFactory if (aPlayer.isSneaking()) { sVoidStone = !sVoidStone; GT_Utility.sendChatToPlayer( - aPlayer, - StatCollector.translateToLocalFormatted("GT5U.machines.oreprocessor.void", sVoidStone)); + aPlayer, + StatCollector.translateToLocalFormatted("GT5U.machines.oreprocessor.void", sVoidStone)); return; } sMode = (sMode + 1) % 5; @@ -529,12 +407,8 @@ public class GT_MetaTileEntity_IntegratedOreFactory for (ItemStack aStack : sMidProduct) { int tID = GT_Utility.stackToInt(aStack); if (checkTypes(tID, aTables)) { - GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sMaceratorRecipes.findRecipe( - getBaseMetaTileEntity(), - false, - GT_Values.V[15], - null, - aStack); + GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sMaceratorRecipes + .findRecipe(getBaseMetaTileEntity(), false, GT_Values.V[15], null, aStack); if (tRecipe != null) { tProduct.addAll(getOutputStack(tRecipe, aStack.stackSize)); } else { @@ -556,11 +430,11 @@ public class GT_MetaTileEntity_IntegratedOreFactory int tID = GT_Utility.stackToInt(aStack); if (checkTypes(tID, aTables)) { GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sOreWasherRecipes.findRecipe( - getBaseMetaTileEntity(), - false, - GT_Values.V[15], - new FluidStack[] { GT_ModHandler.getDistilledWater(Integer.MAX_VALUE) }, - aStack); + getBaseMetaTileEntity(), + false, + GT_Values.V[15], + new FluidStack[] { GT_ModHandler.getDistilledWater(Integer.MAX_VALUE) }, + aStack); if (tRecipe != null) { tProduct.addAll(getOutputStack(tRecipe, aStack.stackSize)); } else { @@ -581,12 +455,8 @@ public class GT_MetaTileEntity_IntegratedOreFactory for (ItemStack aStack : sMidProduct) { int tID = GT_Utility.stackToInt(aStack); if (checkTypes(tID, aTables)) { - GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sThermalCentrifugeRecipes.findRecipe( - getBaseMetaTileEntity(), - false, - GT_Values.V[15], - null, - aStack); + GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sThermalCentrifugeRecipes + .findRecipe(getBaseMetaTileEntity(), false, GT_Values.V[15], null, aStack); if (tRecipe != null) { tProduct.addAll(getOutputStack(tRecipe, aStack.stackSize)); } else { @@ -607,12 +477,8 @@ public class GT_MetaTileEntity_IntegratedOreFactory for (ItemStack aStack : sMidProduct) { int tID = GT_Utility.stackToInt(aStack); if (checkTypes(tID, aTables)) { - GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sCentrifugeRecipes.findRecipe( - getBaseMetaTileEntity(), - false, - GT_Values.V[15], - null, - aStack); + GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sCentrifugeRecipes + .findRecipe(getBaseMetaTileEntity(), false, GT_Values.V[15], null, aStack); if (tRecipe != null) { tProduct.addAll(getOutputStack(tRecipe, aStack.stackSize)); } else { @@ -633,12 +499,8 @@ public class GT_MetaTileEntity_IntegratedOreFactory for (ItemStack aStack : sMidProduct) { int tID = GT_Utility.stackToInt(aStack); if (checkTypes(tID, aTables)) { - GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sSifterRecipes.findRecipe( - getBaseMetaTileEntity(), - false, - GT_Values.V[15], - null, - aStack); + GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sSifterRecipes + .findRecipe(getBaseMetaTileEntity(), false, GT_Values.V[15], null, aStack); if (tRecipe != null) { tProduct.addAll(getOutputStack(tRecipe, aStack.stackSize)); } else { @@ -660,14 +522,14 @@ public class GT_MetaTileEntity_IntegratedOreFactory int tID = GT_Utility.stackToInt(aStack); if (checkTypes(tID, aTables)) { GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sChemicalBathRecipes.findRecipe( - getBaseMetaTileEntity(), - false, - GT_Values.V[15], - getStoredFluids().toArray(new FluidStack[0]), - aStack); + getBaseMetaTileEntity(), + false, + GT_Values.V[15], + getStoredFluids().toArray(new FluidStack[0]), + aStack); if (tRecipe != null && tRecipe.getRepresentativeFluidInput(0) != null) { FluidStack tInputFluid = tRecipe.getRepresentativeFluidInput(0) - .copy(); + .copy(); int tStored = getFluidAmount(tInputFluid); int tWashed = Math.min(tStored / tInputFluid.amount, aStack.stackSize); depleteInput(new FluidStack(tInputFluid.getFluid(), tWashed * tInputFluid.amount)); @@ -712,13 +574,13 @@ public class GT_MetaTileEntity_IntegratedOreFactory double e = aTime * (tChance / 10000D) * (1 - (tChance / 10000D)); Random random = new Random(); int tAmount = (int) Math.ceil(Math.sqrt(e) * random.nextGaussian() + u); - tOutput.add( - GT_Utility.copyAmountUnsafe(tAmount * aRecipe.getOutput(i).stackSize, aRecipe.getOutput(i))); + tOutput + .add(GT_Utility.copyAmountUnsafe(tAmount * aRecipe.getOutput(i).stackSize, aRecipe.getOutput(i))); } } return tOutput.stream() - .filter(i -> (i != null && i.stackSize > 0)) - .collect(Collectors.toList()); + .filter(i -> (i != null && i.stackSize > 0)) + .collect(Collectors.toList()); } private void doCompress(List aList) { @@ -750,7 +612,7 @@ public class GT_MetaTileEntity_IntegratedOreFactory @Override public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack) { return checkPiece(STRUCTURE_PIECE_MAIN, 8, 9, 1) && mMaintenanceHatches.size() <= 1 - && !mMufflerHatches.isEmpty(); + && !mMufflerHatches.isEmpty(); } @Override @@ -790,9 +652,9 @@ public class GT_MetaTileEntity_IntegratedOreFactory public String[] getInfoData() { List informationData = new ArrayList<>(Arrays.asList(super.getInfoData())); String parallelism = StatCollector.translateToLocal("GT5U.multiblock.parallelism") + ": " - + EnumChatFormatting.BLUE - + getCurrentParallelism() - + EnumChatFormatting.RESET; + + EnumChatFormatting.BLUE + + getCurrentParallelism() + + EnumChatFormatting.RESET; informationData.add(parallelism); informationData.add(StatCollector.translateToLocalFormatted("GT5U.machines.oreprocessor.void", sVoidStone)); informationData.addAll(getDisplayMode(sMode)); @@ -801,28 +663,27 @@ public class GT_MetaTileEntity_IntegratedOreFactory @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { if (aSide == aFacing) { if (aActive) return new ITexture[] { Textures.BlockIcons.getCasingTextureForId(CASING_INDEX2), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_PROCESSING_ARRAY_ACTIVE) - .extFacing() - .build(), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_PROCESSING_ARRAY_ACTIVE_GLOW) - .extFacing() - .glow() - .build() }; + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_PROCESSING_ARRAY_ACTIVE) + .extFacing() + .build(), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_PROCESSING_ARRAY_ACTIVE_GLOW) + .extFacing() + .glow() + .build() }; return new ITexture[] { Textures.BlockIcons.getCasingTextureForId(CASING_INDEX2), TextureFactory.builder() - .addIcon( - OVERLAY_FRONT_PROCESSING_ARRAY) - .extFacing() - .build(), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_PROCESSING_ARRAY_GLOW) - .extFacing() - .glow() - .build() }; + .addIcon(OVERLAY_FRONT_PROCESSING_ARRAY) + .extFacing() + .build(), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_PROCESSING_ARRAY_GLOW) + .extFacing() + .glow() + .build() }; } return new ITexture[] { Textures.BlockIcons.getCasingTextureForId(CASING_INDEX2) }; } @@ -831,13 +692,13 @@ public class GT_MetaTileEntity_IntegratedOreFactory final EnumChatFormatting AQUA = EnumChatFormatting.AQUA; final String CRUSH = StatCollector.translateToLocalFormatted("GT5U.machines.oreprocessor.Macerate"); final String WASH = StatCollector.translateToLocalFormatted("GT5U.machines.oreprocessor.Ore_Washer") - .replace(" ", " " + AQUA); + .replace(" ", " " + AQUA); final String THERMAL = StatCollector.translateToLocalFormatted("GT5U.machines.oreprocessor.Thermal_Centrifuge") - .replace(" ", " " + AQUA); + .replace(" ", " " + AQUA); final String CENTRIFUGE = StatCollector.translateToLocalFormatted("GT5U.machines.oreprocessor.Centrifuge"); final String SIFTER = StatCollector.translateToLocalFormatted("GT5U.machines.oreprocessor.Sifter"); final String CHEM_WASH = StatCollector.translateToLocalFormatted("GT5U.machines.oreprocessor.Chemical_Bathing") - .replace(" ", " " + AQUA); + .replace(" ", " " + AQUA); final String ARROW = " " + AQUA + "-> "; List des = new ArrayList<>(); @@ -883,24 +744,24 @@ public class GT_MetaTileEntity_IntegratedOreFactory @Override public void getWailaBody(ItemStack itemStack, List currenttip, IWailaDataAccessor accessor, - IWailaConfigHandler config) { + IWailaConfigHandler config) { super.getWailaBody(itemStack, currenttip, accessor, config); NBTTagCompound tag = accessor.getNBTData(); currenttip.add( - StatCollector.translateToLocal("GT5U.multiblock.parallelism") + ": " - + EnumChatFormatting.BLUE - + tag.getInteger("currentParallelism") - + EnumChatFormatting.RESET); + StatCollector.translateToLocal("GT5U.multiblock.parallelism") + ": " + + EnumChatFormatting.BLUE + + tag.getInteger("currentParallelism") + + EnumChatFormatting.RESET); currenttip.addAll(getDisplayMode(tag.getInteger("ssMode"))); - currenttip.add( - StatCollector.translateToLocalFormatted("GT5U.machines.oreprocessor.void", tag.getBoolean("ssStone"))); + currenttip + .add(StatCollector.translateToLocalFormatted("GT5U.machines.oreprocessor.void", tag.getBoolean("ssStone"))); } @Override public void getWailaNBTData(EntityPlayerMP player, TileEntity tile, NBTTagCompound tag, World world, int x, int y, - int z) { + int z) { super.getWailaNBTData(player, tile, tag, world, x, y, z); tag.setInteger("ssMode", sMode); tag.setBoolean("ssStone", sVoidStone); diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler.java index fa2ebcb2a4..a2086307f1 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler.java @@ -43,8 +43,8 @@ import gregtech.api.util.GT_OreDictUnificator; import gregtech.api.util.GT_Recipe; import gregtech.api.util.GT_Utility; -public abstract class GT_MetaTileEntity_LargeBoiler extends - GT_MetaTileEntity_EnhancedMultiBlockBase implements ISurvivalConstructable { +public abstract class GT_MetaTileEntity_LargeBoiler + extends GT_MetaTileEntity_EnhancedMultiBlockBase implements ISurvivalConstructable { private static final String STRUCTURE_PIECE_MAIN = "main"; private static final ClassValue> STRUCTURE_DEFINITION = new ClassValue<>() { @@ -52,46 +52,34 @@ public abstract class GT_MetaTileEntity_LargeBoiler extends @Override protected IStructureDefinition computeValue(Class type) { return StructureDefinition.builder() - .addShape( - STRUCTURE_PIECE_MAIN, - transpose( - new String[][] { { "ccc", "ccc", "ccc" }, { "ccc", "cPc", "ccc" }, - { "ccc", "cPc", "ccc" }, { "ccc", "cPc", "ccc" }, - { "f~f", "fff", "fff" }, })) - .addElement('P', lazy(t -> ofBlock(t.getPipeBlock(), t.getPipeMeta()))) - .addElement( - 'c', - lazy( - t -> buildHatchAdder( - GT_MetaTileEntity_LargeBoiler.class).atLeast(OutputHatch) - .casingIndex( - t.getCasingTextureIndex()) - .dot(2) - .buildAndChain( - onElementPass( - GT_MetaTileEntity_LargeBoiler::onCasingAdded, - ofBlock( - t.getCasingBlock(), - t.getCasingMeta()))))) - .addElement( - 'f', - lazy( - t -> buildHatchAdder( - GT_MetaTileEntity_LargeBoiler.class).atLeast( - Maintenance, - InputHatch, - InputBus, - Muffler) - .casingIndex( - t.getFireboxTextureIndex()) - .dot(1) - .buildAndChain( - onElementPass( - GT_MetaTileEntity_LargeBoiler::onFireboxAdded, - ofBlock( - t.getFireboxBlock(), - t.getFireboxMeta()))))) - .build(); + .addShape( + STRUCTURE_PIECE_MAIN, + transpose( + new String[][] { { "ccc", "ccc", "ccc" }, { "ccc", "cPc", "ccc" }, { "ccc", "cPc", "ccc" }, + { "ccc", "cPc", "ccc" }, { "f~f", "fff", "fff" }, })) + .addElement('P', lazy(t -> ofBlock(t.getPipeBlock(), t.getPipeMeta()))) + .addElement( + 'c', + lazy( + t -> buildHatchAdder(GT_MetaTileEntity_LargeBoiler.class).atLeast(OutputHatch) + .casingIndex(t.getCasingTextureIndex()) + .dot(2) + .buildAndChain( + onElementPass( + GT_MetaTileEntity_LargeBoiler::onCasingAdded, + ofBlock(t.getCasingBlock(), t.getCasingMeta()))))) + .addElement( + 'f', + lazy( + t -> buildHatchAdder(GT_MetaTileEntity_LargeBoiler.class) + .atLeast(Maintenance, InputHatch, InputBus, Muffler) + .casingIndex(t.getFireboxTextureIndex()) + .dot(1) + .buildAndChain( + onElementPass( + GT_MetaTileEntity_LargeBoiler::onFireboxAdded, + ofBlock(t.getFireboxBlock(), t.getFireboxMeta()))))) + .build(); } }; private boolean firstRun = true; @@ -117,46 +105,46 @@ public abstract class GT_MetaTileEntity_LargeBoiler extends final GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder(); tt.addMachineType("Boiler") - .addInfo("Controller block for the Large " + getCasingMaterial() + " Boiler"); + .addInfo("Controller block for the Large " + getCasingMaterial() + " Boiler"); // Tooltip differs between the boilers that output Superheated Steam (Titanium and Tungstensteel) and the ones // that do not (Bronze and Steel) if (isSuperheated()) { tt.addInfo( - "Produces " + formatNumbers((getEUt() * 40) * ((runtimeBoost(20) / (20f)) / superToNormalSteam)) - + "L of Superheated Steam with 1 Coal at " - + formatNumbers((getEUt() * 40L) / superToNormalSteam) - + "L/s") // ? - .addInfo("A programmed circuit in the main block throttles the boiler (-1000L/s per config)") - .addInfo("Only some solid fuels are allowed (check the NEI Large Boiler tab for details)") - .addInfo("If there are any disallowed fuels in the input bus, the boiler won't run!"); + "Produces " + formatNumbers((getEUt() * 40) * ((runtimeBoost(20) / (20f)) / superToNormalSteam)) + + "L of Superheated Steam with 1 Coal at " + + formatNumbers((getEUt() * 40L) / superToNormalSteam) + + "L/s") // ? + .addInfo("A programmed circuit in the main block throttles the boiler (-1000L/s per config)") + .addInfo("Only some solid fuels are allowed (check the NEI Large Boiler tab for details)") + .addInfo("If there are any disallowed fuels in the input bus, the boiler won't run!"); } else { tt.addInfo( - "Produces " + formatNumbers((getEUt() * 40) * (runtimeBoost(20) / 20f)) - + "L of Steam with 1 Coal at " - + formatNumbers(getEUt() * 40) - + "L/s") // ? - .addInfo("A programmed circuit in the main block throttles the boiler (-1000L/s per config)") - .addInfo("Solid Fuels with a burn value that is too high or too low will not work"); + "Produces " + formatNumbers((getEUt() * 40) * (runtimeBoost(20) / 20f)) + + "L of Steam with 1 Coal at " + + formatNumbers(getEUt() * 40) + + "L/s") // ? + .addInfo("A programmed circuit in the main block throttles the boiler (-1000L/s per config)") + .addInfo("Solid Fuels with a burn value that is too high or too low will not work"); } tt.addInfo( - String.format( - "Diesel fuels have 1/4 efficiency - Takes %s seconds to heat up", - formatNumbers(500.0 / getEfficiencyIncrease()))) // ? check semifluid again - .addPollutionAmount(getPollutionPerSecond(null)) - .addSeparator() - .beginStructureBlock(3, 5, 3, false) - .addController("Front bottom") - .addCasingInfoRange(getCasingMaterial() + " " + getCasingBlockType() + " Casing", 24, 31, false) // ? - .addOtherStructurePart(getCasingMaterial() + " Fire Boxes", "Bottom layer, 3 minimum") - .addOtherStructurePart(getCasingMaterial() + " Pipe Casing Blocks", "Inner 3 blocks") - .addMaintenanceHatch("Any firebox", 1) - .addMufflerHatch("Any firebox", 1) - .addInputBus("Solid fuel, Any firebox", 1) - .addInputHatch("Liquid fuel, Any firebox", 1) - .addStructureInfo("You can use either, or both") - .addInputHatch("Water, Any firebox", 1) - .addOutputHatch("Steam, any casing", 2) - .toolTipFinisher("Gregtech"); + String.format( + "Diesel fuels have 1/4 efficiency - Takes %s seconds to heat up", + formatNumbers(500.0 / getEfficiencyIncrease()))) // ? check semifluid again + .addPollutionAmount(getPollutionPerSecond(null)) + .addSeparator() + .beginStructureBlock(3, 5, 3, false) + .addController("Front bottom") + .addCasingInfoRange(getCasingMaterial() + " " + getCasingBlockType() + " Casing", 24, 31, false) // ? + .addOtherStructurePart(getCasingMaterial() + " Fire Boxes", "Bottom layer, 3 minimum") + .addOtherStructurePart(getCasingMaterial() + " Pipe Casing Blocks", "Inner 3 blocks") + .addMaintenanceHatch("Any firebox", 1) + .addMufflerHatch("Any firebox", 1) + .addInputBus("Solid fuel, Any firebox", 1) + .addInputHatch("Liquid fuel, Any firebox", 1) + .addStructureInfo("You can use either, or both") + .addInputHatch("Water, Any firebox", 1) + .addOutputHatch("Steam, any casing", 2) + .toolTipFinisher("Gregtech"); return tt; } @@ -193,35 +181,34 @@ public abstract class GT_MetaTileEntity_LargeBoiler extends public int getPollutionPerSecond(ItemStack aStack) { // allows for 0 pollution if circuit throttle is too high return Math.max( - 0, - (int) (pollutionPerSecond - * (1 - GT_Mod.gregtechproxy.mPollutionReleasedByThrottle * getIntegratedCircuitConfig()))); + 0, + (int) (pollutionPerSecond + * (1 - GT_Mod.gregtechproxy.mPollutionReleasedByThrottle * getIntegratedCircuitConfig()))); } @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { if (aSide == aFacing) { if (aActive) return new ITexture[] { BlockIcons.getCasingTextureForId(getCasingTextureIndex()), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_LARGE_BOILER_ACTIVE) - .extFacing() - .build(), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_LARGE_BOILER_ACTIVE_GLOW) - .extFacing() - .glow() - .build() }; + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_LARGE_BOILER_ACTIVE) + .extFacing() + .build(), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_LARGE_BOILER_ACTIVE_GLOW) + .extFacing() + .glow() + .build() }; return new ITexture[] { BlockIcons.getCasingTextureForId(getCasingTextureIndex()), TextureFactory.builder() - .addIcon( - OVERLAY_FRONT_LARGE_BOILER) - .extFacing() - .build(), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_LARGE_BOILER_GLOW) - .extFacing() - .glow() - .build() }; + .addIcon(OVERLAY_FRONT_LARGE_BOILER) + .extFacing() + .build(), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_LARGE_BOILER_GLOW) + .extFacing() + .glow() + .build() }; } return new ITexture[] { Textures.BlockIcons.getCasingTextureForId(getCasingTextureIndex()) }; } @@ -235,7 +222,7 @@ public abstract class GT_MetaTileEntity_LargeBoiler extends if (!isSuperheated()) return true; for (ItemStack input : getStoredInputs()) { if (!GT_Recipe.GT_Recipe_Map_LargeBoilerFakeFuels.isAllowedSolidFuel(input) - && !Circuit_Integrated.isStackEqual(input, true, true)) { + && !Circuit_Integrated.isStackEqual(input, true, true)) { // if any item is not in ALLOWED_SOLID_FUELS, operation cannot be allowed because it might still be // consumed this.mMaxProgresstime = 0; @@ -281,7 +268,7 @@ public abstract class GT_MetaTileEntity_LargeBoiler extends tFluid.amount = 1000; if (depleteInput(tFluid)) { this.mMaxProgresstime = adjustBurnTimeForConfig( - Math.max(1, runtimeBoost(tRecipe.mSpecialValue * 2))); + Math.max(1, runtimeBoost(tRecipe.mSpecialValue * 2))); this.mEUt = adjustEUtForConfig(getEUt()); this.mEfficiencyIncrease = this.mMaxProgresstime * getEfficiencyIncrease(); return true; @@ -296,7 +283,7 @@ public abstract class GT_MetaTileEntity_LargeBoiler extends for (ItemStack tInput : tInputList) { if (tInput != GT_OreDictUnificator.get(OrePrefixes.bucket, Materials.Lava, 1)) { if (GT_Utility.getFluidForFilledItem(tInput, true) == null - && (this.mMaxProgresstime = GT_ModHandler.getFuelValue(tInput) / 80) > 0) { + && (this.mMaxProgresstime = GT_ModHandler.getFuelValue(tInput) / 80) > 0) { this.excessFuel += GT_ModHandler.getFuelValue(tInput) % 80; this.mMaxProgresstime += this.excessFuel / 80; this.excessFuel %= 80; @@ -320,9 +307,9 @@ public abstract class GT_MetaTileEntity_LargeBoiler extends // Solid fuels with burn values below getEUt are ignored (mostly items like sticks), and also // those with very high fuel values that would cause an overflow error. if (GT_Utility.getFluidForFilledItem(tInput, true) == null - && (this.mMaxProgresstime = GT_ModHandler.getFuelValue(tInput) / 80) > 0 - && (GT_ModHandler.getFuelValue(tInput) * 2 / this.getEUt()) > 1 - && GT_ModHandler.getFuelValue(tInput) < 100000000) { + && (this.mMaxProgresstime = GT_ModHandler.getFuelValue(tInput) / 80) > 0 + && (GT_ModHandler.getFuelValue(tInput) * 2 / this.getEUt()) > 1 + && GT_ModHandler.getFuelValue(tInput) < 100000000) { this.excessFuel += GT_ModHandler.getFuelValue(tInput) % 80; this.mMaxProgresstime += this.excessFuel / 80; this.excessFuel %= 80; @@ -357,10 +344,10 @@ public abstract class GT_MetaTileEntity_LargeBoiler extends public boolean onRunningTick(ItemStack aStack) { if (this.mEUt > 0) { if (this.mSuperEfficencyIncrease > 0) mEfficiency = Math.max( - 0, - Math.min( - mEfficiency + mSuperEfficencyIncrease, - getMaxEfficiency(mInventory[1]) - ((getIdealStatus() - getRepairStatus()) * 1000))); + 0, + Math.min( + mEfficiency + mSuperEfficencyIncrease, + getMaxEfficiency(mInventory[1]) - ((getIdealStatus() - getRepairStatus()) * 1000))); int tGeneratedEU = (int) (this.mEUt * 2L * this.mEfficiency / 10000L); if (tGeneratedEU > 0) { long amount = (tGeneratedEU + STEAM_PER_WATER) / STEAM_PER_WATER; @@ -371,18 +358,18 @@ public abstract class GT_MetaTileEntity_LargeBoiler extends // Consumes only one third of the water if producing Superheated Steam, to maintain water in the // chain. if (depleteInput(Materials.Water.getFluid(amount / superToNormalSteam)) - || depleteInput(GT_ModHandler.getDistilledWater(amount / superToNormalSteam))) { + || depleteInput(GT_ModHandler.getDistilledWater(amount / superToNormalSteam))) { // Outputs Superheated Steam instead of Steam, at one third of the amount (equivalent in power // output to the normal Steam amount). addOutput( - FluidRegistry.getFluidStack("ic2superheatedsteam", tGeneratedEU / superToNormalSteam)); + FluidRegistry.getFluidStack("ic2superheatedsteam", tGeneratedEU / superToNormalSteam)); } else { GT_Log.exp.println("Boiler " + this.mName + " had no Water!"); explodeMultiblock(); } } else { if (depleteInput(Materials.Water.getFluid(amount)) - || depleteInput(GT_ModHandler.getDistilledWater(amount))) { + || depleteInput(GT_ModHandler.getDistilledWater(amount))) { addOutput(GT_ModHandler.getSteam(tGeneratedEU)); } else { GT_Log.exp.println("Boiler " + this.mName + " had no Water!"); @@ -416,9 +403,9 @@ public abstract class GT_MetaTileEntity_LargeBoiler extends if (mProgresstime > 0 && firstRun) { firstRun = false; GT_Mod.achievements.issueAchievement( - aBaseMetaTileEntity.getWorld() - .getPlayerEntityByName(aBaseMetaTileEntity.getOwnerName()), - "extremepressure"); + aBaseMetaTileEntity.getWorld() + .getPlayerEntityByName(aBaseMetaTileEntity.getOwnerName()), + "extremepressure"); } super.onPostTick(aBaseMetaTileEntity, aTick); } @@ -441,9 +428,9 @@ public abstract class GT_MetaTileEntity_LargeBoiler extends mCasingAmount = 0; mFireboxAmount = 0; return checkPiece(STRUCTURE_PIECE_MAIN, 1, 4, 0) && mCasingAmount >= 24 - && mFireboxAmount >= 3 - && mMaintenanceHatches.size() == 1 - && !mMufflerHatches.isEmpty(); + && mFireboxAmount >= 3 + && mMaintenanceHatches.size() == 1 + && !mMufflerHatches.isEmpty(); } @Override diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeChemicalReactor.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeChemicalReactor.java index 4c717a85a8..ee7821ddb8 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeChemicalReactor.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeChemicalReactor.java @@ -37,70 +37,39 @@ import gregtech.api.util.GT_Recipe; import gregtech.api.util.GT_Single_Recipe_Check; import gregtech.api.util.GT_Utility; -public class GT_MetaTileEntity_LargeChemicalReactor - extends GT_MetaTileEntity_EnhancedMultiBlockBase - implements ISurvivalConstructable { +public class GT_MetaTileEntity_LargeChemicalReactor extends + GT_MetaTileEntity_EnhancedMultiBlockBase implements ISurvivalConstructable { private static final int CASING_INDEX = 176; private static final String STRUCTURE_PIECE_MAIN = "main"; - private static final IStructureDefinition STRUCTURE_DEFINITION = StructureDefinition.builder() - .addShape( - STRUCTURE_PIECE_MAIN, - transpose( - new String[][] { - { "ccc", "cxc", - "ccc" }, - { "c~c", "xPx", - "cxc" }, - { "ccc", "cxc", - "ccc" }, })) - .addElement( - 'P', - ofBlock( - GregTech_API.sBlockCasings8, - 1)) - .addElement( - 'c', - buildHatchAdder( - GT_MetaTileEntity_LargeChemicalReactor.class).atLeast( - InputHatch, - OutputHatch, - InputBus, - OutputBus, - Maintenance, - Energy) - .casingIndex( - CASING_INDEX) - .dot( - 1) - .buildAndChain( - onElementPass( - GT_MetaTileEntity_LargeChemicalReactor::onCasingAdded, - ofBlock( - GregTech_API.sBlockCasings8, - 0)))) - .addElement( - 'x', - buildHatchAdder( - GT_MetaTileEntity_LargeChemicalReactor.class).atLeast( - InputHatch, - OutputHatch, - InputBus, - OutputBus, - Maintenance, - Energy) - .casingIndex( - CASING_INDEX) - .dot( - 1) - .buildAndChain( - CoilStructureElement.INSTANCE, - onElementPass( - GT_MetaTileEntity_LargeChemicalReactor::onCasingAdded, - ofBlock( - GregTech_API.sBlockCasings8, - 0)))) - .build(); + private static final IStructureDefinition STRUCTURE_DEFINITION = StructureDefinition + .builder() + .addShape( + STRUCTURE_PIECE_MAIN, + transpose(new String[][] { { "ccc", "cxc", "ccc" }, { "c~c", "xPx", "cxc" }, { "ccc", "cxc", "ccc" }, })) + .addElement('P', ofBlock(GregTech_API.sBlockCasings8, 1)) + .addElement( + 'c', + buildHatchAdder(GT_MetaTileEntity_LargeChemicalReactor.class) + .atLeast(InputHatch, OutputHatch, InputBus, OutputBus, Maintenance, Energy) + .casingIndex(CASING_INDEX) + .dot(1) + .buildAndChain( + onElementPass( + GT_MetaTileEntity_LargeChemicalReactor::onCasingAdded, + ofBlock(GregTech_API.sBlockCasings8, 0)))) + .addElement( + 'x', + buildHatchAdder(GT_MetaTileEntity_LargeChemicalReactor.class) + .atLeast(InputHatch, OutputHatch, InputBus, OutputBus, Maintenance, Energy) + .casingIndex(CASING_INDEX) + .dot(1) + .buildAndChain( + CoilStructureElement.INSTANCE, + onElementPass( + GT_MetaTileEntity_LargeChemicalReactor::onCasingAdded, + ofBlock(GregTech_API.sBlockCasings8, 0)))) + .build(); private int mCasingAmount; private int mCoilAmount; @@ -122,50 +91,48 @@ public class GT_MetaTileEntity_LargeChemicalReactor public GT_Multiblock_Tooltip_Builder createTooltip() { final GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder(); tt.addMachineType("Chemical Reactor") - .addInfo("Controller block for the Large Chemical Reactor") - .addInfo("Does not lose efficiency when overclocked") - .addInfo("Accepts fluids instead of fluid cells") - .addSeparator() - .beginStructureBlock(3, 3, 3, false) - .addController("Front center") - .addCasingInfoRange("Chemically Inert Machine Casing", 8, 22, false) - .addOtherStructurePart("PTFE Pipe Machine Casing", "Center") - .addOtherStructurePart("Heating Coil", "Adjacent to the PTFE Pipe Machine Casing", 1) - .addEnergyHatch("Any casing", 1, 2) - .addMaintenanceHatch("Any casing", 1, 2) - .addInputBus("Any casing", 1, 2) - .addInputHatch("Any casing", 1, 2) - .addOutputBus("Any casing", 1, 2) - .addOutputHatch("Any casing", 1, 2) - .addStructureInfo("You can have multiple hatches/busses") - .toolTipFinisher("Gregtech"); + .addInfo("Controller block for the Large Chemical Reactor") + .addInfo("Does not lose efficiency when overclocked") + .addInfo("Accepts fluids instead of fluid cells") + .addSeparator() + .beginStructureBlock(3, 3, 3, false) + .addController("Front center") + .addCasingInfoRange("Chemically Inert Machine Casing", 8, 22, false) + .addOtherStructurePart("PTFE Pipe Machine Casing", "Center") + .addOtherStructurePart("Heating Coil", "Adjacent to the PTFE Pipe Machine Casing", 1) + .addEnergyHatch("Any casing", 1, 2) + .addMaintenanceHatch("Any casing", 1, 2) + .addInputBus("Any casing", 1, 2) + .addInputHatch("Any casing", 1, 2) + .addOutputBus("Any casing", 1, 2) + .addOutputHatch("Any casing", 1, 2) + .addStructureInfo("You can have multiple hatches/busses") + .toolTipFinisher("Gregtech"); return tt; } @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { if (aSide == aFacing) { if (aActive) return new ITexture[] { casingTexturePages[1][48], TextureFactory.builder() - .addIcon( - OVERLAY_FRONT_LARGE_CHEMICAL_REACTOR_ACTIVE) - .extFacing() - .build(), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_LARGE_CHEMICAL_REACTOR_ACTIVE_GLOW) - .extFacing() - .glow() - .build() }; + .addIcon(OVERLAY_FRONT_LARGE_CHEMICAL_REACTOR_ACTIVE) + .extFacing() + .build(), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_LARGE_CHEMICAL_REACTOR_ACTIVE_GLOW) + .extFacing() + .glow() + .build() }; return new ITexture[] { casingTexturePages[1][48], TextureFactory.builder() - .addIcon( - OVERLAY_FRONT_LARGE_CHEMICAL_REACTOR) - .extFacing() - .build(), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_LARGE_CHEMICAL_REACTOR_GLOW) - .extFacing() - .glow() - .build() }; + .addIcon(OVERLAY_FRONT_LARGE_CHEMICAL_REACTOR) + .extFacing() + .build(), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_LARGE_CHEMICAL_REACTOR_GLOW) + .extFacing() + .glow() + .build() }; } return new ITexture[] { casingTexturePages[1][48] }; } @@ -212,16 +179,16 @@ public class GT_MetaTileEntity_LargeChemicalReactor // We're locked to a single recipe, but haven't built the recipe checker yet. // Build the checker on next successful recipe. tSingleRecipeCheckBuilder = GT_Single_Recipe_Check.builder(this) - .setBefore(); + .setBefore(); } tRecipe = GT_Recipe.GT_Recipe_Map.sMultiblockChemicalRecipes.findRecipe( - getBaseMetaTileEntity(), - false, - false, - gregtech.api.enums.GT_Values.V[tier], - fluids, - inputs); + getBaseMetaTileEntity(), + false, + false, + gregtech.api.enums.GT_Values.V[tier], + fluids, + inputs); if (tRecipe == null || !tRecipe.isRecipeInputEqual(true, fluids, inputs)) { return false; @@ -229,8 +196,8 @@ public class GT_MetaTileEntity_LargeChemicalReactor if (mLockedToSingleRecipe) { mSingleRecipeCheck = tSingleRecipeCheckBuilder.setAfter() - .setRecipe(tRecipe) - .build(); + .setRecipe(tRecipe) + .build(); } } @@ -268,9 +235,9 @@ public class GT_MetaTileEntity_LargeChemicalReactor mCasingAmount = 0; mCoilAmount = 0; return checkPiece(STRUCTURE_PIECE_MAIN, 1, 1, 0) && mCasingAmount >= 8 - && mCoilAmount == 1 - && !mEnergyHatches.isEmpty() - && mMaintenanceHatches.size() == 1; + && mCoilAmount == 1 + && !mEnergyHatches.isEmpty() + && mMaintenanceHatches.size() == 1; } @Override @@ -309,7 +276,7 @@ public class GT_MetaTileEntity_LargeChemicalReactor public boolean check(GT_MetaTileEntity_LargeChemicalReactor t, World world, int x, int y, int z) { Block block = world.getBlock(x, y, z); if (block instanceof IHeatingCoil - && ((IHeatingCoil) block).getCoilHeat(world.getBlockMetadata(x, y, z)) != HeatingCoilLevel.None) { + && ((IHeatingCoil) block).getCoilHeat(world.getBlockMetadata(x, y, z)) != HeatingCoilLevel.None) { return t.mCoilAmount++ == 0; } else { return false; @@ -318,14 +285,14 @@ public class GT_MetaTileEntity_LargeChemicalReactor @Override public boolean spawnHint(GT_MetaTileEntity_LargeChemicalReactor t, World world, int x, int y, int z, - ItemStack trigger) { + ItemStack trigger) { StructureLibAPI.hintParticle(world, x, y, z, GregTech_API.sBlockCasings5, 0); return true; } @Override public boolean placeBlock(GT_MetaTileEntity_LargeChemicalReactor t, World world, int x, int y, int z, - ItemStack trigger) { + ItemStack trigger) { if (t.mCoilAmount > 0) return false; boolean b = world.setBlock(x, y, z, GregTech_API.sBlockCasings5, 0, 3); if (b) t.mCoilAmount++; @@ -334,41 +301,41 @@ public class GT_MetaTileEntity_LargeChemicalReactor @Override public PlaceResult survivalPlaceBlock(GT_MetaTileEntity_LargeChemicalReactor t, World world, int x, int y, - int z, ItemStack trigger, IItemSource s, EntityPlayerMP actor, Consumer chatter) { + int z, ItemStack trigger, IItemSource s, EntityPlayerMP actor, Consumer chatter) { return survivalPlaceBlock(t, world, x, y, z, trigger, AutoPlaceEnvironment.fromLegacy(s, actor, chatter)); } @Override public BlocksToPlace getBlocksToPlace( - GT_MetaTileEntity_LargeChemicalReactor gt_metaTileEntity_largeChemicalReactor, World world, int x, - int y, int z, ItemStack trigger, AutoPlaceEnvironment env) { + GT_MetaTileEntity_LargeChemicalReactor gt_metaTileEntity_largeChemicalReactor, World world, int x, int y, + int z, ItemStack trigger, AutoPlaceEnvironment env) { return BlocksToPlace.create( - IntStream.range(0, 8) - .mapToObj(i -> new ItemStack(GregTech_API.sBlockCasings5, 1, i)) - .collect(Collectors.toList())); + IntStream.range(0, 8) + .mapToObj(i -> new ItemStack(GregTech_API.sBlockCasings5, 1, i)) + .collect(Collectors.toList())); } @Override public PlaceResult survivalPlaceBlock(GT_MetaTileEntity_LargeChemicalReactor t, World world, int x, int y, - int z, ItemStack trigger, AutoPlaceEnvironment env) { + int z, ItemStack trigger, AutoPlaceEnvironment env) { if (t.mCoilAmount > 0) return PlaceResult.SKIP; if (check(t, world, x, y, z)) return PlaceResult.SKIP; if (!StructureLibAPI.isBlockTriviallyReplaceable(world, x, y, z, env.getActor())) return PlaceResult.REJECT; ItemStack result = env.getSource() - .takeOne(ItemStackPredicate.from(GregTech_API.sBlockCasings5), true); + .takeOne(ItemStackPredicate.from(GregTech_API.sBlockCasings5), true); if (result == null) return PlaceResult.REJECT; PlaceResult ret = StructureUtility.survivalPlaceBlock( - result, - ItemStackPredicate.NBTMode.EXACT, - null, - true, - world, - x, - y, - z, - env.getSource(), - env.getActor(), - env.getChatter()); + result, + ItemStackPredicate.NBTMode.EXACT, + null, + true, + world, + x, + y, + z, + env.getSource(), + env.getActor(), + env.getChatter()); if (ret == PlaceResult.ACCEPT) t.mCoilAmount++; return ret; } diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeTurbine.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeTurbine.java index d14b06313f..8ffd401646 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeTurbine.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeTurbine.java @@ -40,8 +40,8 @@ import gregtech.api.util.LightingHelper; import gregtech.common.items.GT_MetaGenerated_Tool_01; import gregtech.common.render.GT_RenderUtil; -public abstract class GT_MetaTileEntity_LargeTurbine extends - GT_MetaTileEntity_EnhancedMultiBlockBase implements ISurvivalConstructable { +public abstract class GT_MetaTileEntity_LargeTurbine + extends GT_MetaTileEntity_EnhancedMultiBlockBase implements ISurvivalConstructable { private static final String STRUCTURE_PIECE_MAIN = "main"; private static final ClassValue> STRUCTURE_DEFINITION = new ClassValue<>() { @@ -49,34 +49,25 @@ public abstract class GT_MetaTileEntity_LargeTurbine extends @Override protected IStructureDefinition computeValue(Class type) { return StructureDefinition.builder() - .addShape( - STRUCTURE_PIECE_MAIN, - transpose( - new String[][] { { " ", " ", " ", " ", " ", }, - { " --- ", " ccc ", " hhh ", " hhh ", " hhh ", }, - { " --- ", " c~c ", " h-h ", " h-h ", " hdh ", }, - { " --- ", " ccc ", " hhh ", " hhh ", " hhh ", }, - { " ", " ", " ", " ", " ", }, })) - .addElement('c', lazy(t -> ofBlock(t.getCasingBlock(), t.getCasingMeta()))) - .addElement('d', lazy(t -> Dynamo.newAny(t.getCasingTextureIndex(), 1))) - .addElement( - 'h', - lazy( - t -> buildHatchAdder( - GT_MetaTileEntity_LargeTurbine.class).atLeast( - Maintenance, - InputHatch, - OutputHatch, - OutputBus, - InputBus, - Muffler) - .casingIndex( - t.getCasingTextureIndex()) - .dot(2) - .buildAndChain( - t.getCasingBlock(), - t.getCasingMeta()))) - .build(); + .addShape( + STRUCTURE_PIECE_MAIN, + transpose( + new String[][] { { " ", " ", " ", " ", " ", }, + { " --- ", " ccc ", " hhh ", " hhh ", " hhh ", }, + { " --- ", " c~c ", " h-h ", " h-h ", " hdh ", }, + { " --- ", " ccc ", " hhh ", " hhh ", " hhh ", }, + { " ", " ", " ", " ", " ", }, })) + .addElement('c', lazy(t -> ofBlock(t.getCasingBlock(), t.getCasingMeta()))) + .addElement('d', lazy(t -> Dynamo.newAny(t.getCasingTextureIndex(), 1))) + .addElement( + 'h', + lazy( + t -> buildHatchAdder(GT_MetaTileEntity_LargeTurbine.class) + .atLeast(Maintenance, InputHatch, OutputHatch, OutputBus, InputBus, Muffler) + .casingIndex(t.getCasingTextureIndex()) + .dot(2) + .buildAndChain(t.getCasingBlock(), t.getCasingMeta()))) + .build(); } }; @@ -116,7 +107,7 @@ public abstract class GT_MetaTileEntity_LargeTurbine extends @Override public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack) { return checkPiece(STRUCTURE_PIECE_MAIN, 2, 2, 1) && mMaintenanceHatches.size() == 1 - && mMufflerHatches.isEmpty() == (getPollutionPerTick(null) == 0); + && mMufflerHatches.isEmpty() == (getPollutionPerTick(null) == 0); } public abstract Block getCasingBlock(); @@ -172,21 +163,21 @@ public abstract class GT_MetaTileEntity_LargeTurbine extends // we skip the occlusion test, as we always require a working turbine to have a block of air before it // so the front face cannot be occluded whatsoever in the most cases. Tessellator.instance.setBrightness( - tBlock.getMixedBrightnessForBlock( - aWorld, - aX + tDirection.offsetX, - tY + tDirection.offsetY, - aZ + tDirection.offsetZ)); + tBlock.getMixedBrightnessForBlock( + aWorld, + aX + tDirection.offsetX, + tY + tDirection.offsetY, + aZ + tDirection.offsetZ)); tLighting.setupLighting(tBlock, tX, tY, tZ, tFacing) - .setupColor(tFacing, Dyes._NULL.mRGBa); + .setupColor(tFacing, Dyes._NULL.mRGBa); GT_RenderUtil.renderBlockIcon( - aRenderer, - tBlock, - tX + tDirection.offsetX * 0.01, - tY + tDirection.offsetY * 0.01, - tZ + tDirection.offsetZ * 0.01, - tTextures[i].getIcon(), - tFacing); + aRenderer, + tBlock, + tX + tDirection.offsetX * 0.01, + tY + tDirection.offsetY * 0.01, + tZ + tDirection.offsetZ * 0.01, + tTextures[i].getIcon(), + tFacing); } if (++tABCCoord[0] == 2) { tABCCoord[0] = -1; @@ -213,9 +204,9 @@ public abstract class GT_MetaTileEntity_LargeTurbine extends @Override public boolean addToMachineList(IGregTechTileEntity tTileEntity, int aBaseCasingIndex) { return addMaintenanceToMachineList(tTileEntity, getCasingTextureIndex()) - || addInputToMachineList(tTileEntity, getCasingTextureIndex()) - || addOutputToMachineList(tTileEntity, getCasingTextureIndex()) - || addMufflerToMachineList(tTileEntity, getCasingTextureIndex()); + || addInputToMachineList(tTileEntity, getCasingTextureIndex()) + || addOutputToMachineList(tTileEntity, getCasingTextureIndex()) + || addMufflerToMachineList(tTileEntity, getCasingTextureIndex()); } @Override @@ -231,8 +222,8 @@ public abstract class GT_MetaTileEntity_LargeTurbine extends @Override public boolean checkRecipe(ItemStack aStack) { if ((counter & 7) == 0 && (aStack == null || !(aStack.getItem() instanceof GT_MetaGenerated_Tool) - || aStack.getItemDamage() < 170 - || aStack.getItemDamage() > 179)) { + || aStack.getItemDamage() < 170 + || aStack.getItemDamage() > 179)) { stopMachine(); return false; } @@ -240,21 +231,21 @@ public abstract class GT_MetaTileEntity_LargeTurbine extends if (!tFluids.isEmpty()) { if (baseEff == 0 || optFlow == 0 - || counter >= 512 - || this.getBaseMetaTileEntity() - .hasWorkJustBeenEnabled() - || this.getBaseMetaTileEntity() - .hasInventoryBeenModified()) { + || counter >= 512 + || this.getBaseMetaTileEntity() + .hasWorkJustBeenEnabled() + || this.getBaseMetaTileEntity() + .hasInventoryBeenModified()) { counter = 0; baseEff = GT_Utility.safeInt( - (long) ((5F + ((GT_MetaGenerated_Tool) aStack.getItem()).getToolCombatDamage(aStack)) * 1000F)); - optFlow = GT_Utility.safeInt( + (long) ((5F + ((GT_MetaGenerated_Tool) aStack.getItem()).getToolCombatDamage(aStack)) * 1000F)); + optFlow = GT_Utility + .safeInt( (long) Math.max( - Float.MIN_NORMAL, - ((GT_MetaGenerated_Tool) aStack.getItem()).getToolStats(aStack) - .getSpeedMultiplier() - * GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mToolSpeed - * 50)); + Float.MIN_NORMAL, + ((GT_MetaGenerated_Tool) aStack.getItem()).getToolStats(aStack) + .getSpeedMultiplier() * GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mToolSpeed + * 50)); overflowMultiplier = getOverflowMultiplier(aStack); @@ -301,7 +292,7 @@ public abstract class GT_MetaTileEntity_LargeTurbine extends } abstract int fluidIntoPower(ArrayList aFluids, int aOptFlow, int aBaseEff, int overflowMultiplier, - float[] flowMultipliers); + float[] flowMultipliers); abstract float getOverflowEfficiency(int totalFlow, int actualOptimalFlow, int overflowMultiplier); @@ -361,21 +352,21 @@ public abstract class GT_MetaTileEntity_LargeTurbine extends } String tRunning = mMaxProgresstime > 0 - ? EnumChatFormatting.GREEN + StatCollector.translateToLocal("GT5U.turbine.running.true") - + EnumChatFormatting.RESET - : EnumChatFormatting.RED + StatCollector.translateToLocal("GT5U.turbine.running.false") - + EnumChatFormatting.RESET; + ? EnumChatFormatting.GREEN + StatCollector.translateToLocal("GT5U.turbine.running.true") + + EnumChatFormatting.RESET + : EnumChatFormatting.RED + StatCollector.translateToLocal("GT5U.turbine.running.false") + + EnumChatFormatting.RESET; String tMaintainance = getIdealStatus() == getRepairStatus() - ? EnumChatFormatting.GREEN + StatCollector.translateToLocal("GT5U.turbine.maintenance.false") - + EnumChatFormatting.RESET - : EnumChatFormatting.RED + StatCollector.translateToLocal("GT5U.turbine.maintenance.true") - + EnumChatFormatting.RESET; + ? EnumChatFormatting.GREEN + StatCollector.translateToLocal("GT5U.turbine.maintenance.false") + + EnumChatFormatting.RESET + : EnumChatFormatting.RED + StatCollector.translateToLocal("GT5U.turbine.maintenance.true") + + EnumChatFormatting.RESET; int tDura = 0; if (mInventory[1] != null && mInventory[1].getItem() instanceof GT_MetaGenerated_Tool_01) { tDura = GT_Utility.safeInt( - (long) (100.0f / GT_MetaGenerated_Tool.getToolMaxDamage(mInventory[1]) - * (GT_MetaGenerated_Tool.getToolDamage(mInventory[1])) + 1)); + (long) (100.0f / GT_MetaGenerated_Tool.getToolMaxDamage(mInventory[1]) + * (GT_MetaGenerated_Tool.getToolDamage(mInventory[1])) + 1)); } long storedEnergy = 0; @@ -383,73 +374,70 @@ public abstract class GT_MetaTileEntity_LargeTurbine extends for (GT_MetaTileEntity_Hatch_Dynamo tHatch : mDynamoHatches) { if (isValidMetaTileEntity(tHatch)) { storedEnergy += tHatch.getBaseMetaTileEntity() - .getStoredEU(); + .getStoredEU(); maxEnergy += tHatch.getBaseMetaTileEntity() - .getEUCapacity(); + .getEUCapacity(); } } String[] ret = new String[] { - // 8 Lines available for information panels - tRunning + ": " - + EnumChatFormatting.RED - + GT_Utility.formatNumbers(((long) mEUt * mEfficiency) / 10000) - + EnumChatFormatting.RESET - + " EU/t", /* 1 */ - tMaintainance, /* 2 */ - StatCollector.translateToLocal("GT5U.turbine.efficiency") + ": " - + EnumChatFormatting.YELLOW - + (mEfficiency / 100F) - + EnumChatFormatting.RESET - + "%", /* 2 */ - StatCollector.translateToLocal("GT5U.multiblock.energy") + ": " - + EnumChatFormatting.GREEN - + GT_Utility.formatNumbers(storedEnergy) - + EnumChatFormatting.RESET - + " EU / " - + /* 3 */ EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(maxEnergy) - + EnumChatFormatting.RESET - + " EU", - StatCollector.translateToLocal("GT5U.turbine.flow") + ": " - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(GT_Utility.safeInt((long) realOptFlow)) - + EnumChatFormatting.RESET - + " L/t" - + /* 4 */ EnumChatFormatting.YELLOW - + " (" - + (looseFit ? StatCollector.translateToLocal("GT5U.turbine.loose") - : StatCollector.translateToLocal("GT5U.turbine.tight")) - + ")", /* 5 */ - StatCollector.translateToLocal("GT5U.turbine.fuel") + ": " - + EnumChatFormatting.GOLD - + GT_Utility.formatNumbers(storedFluid) - + EnumChatFormatting.RESET - + "L", /* 6 */ - StatCollector.translateToLocal("GT5U.turbine.dmg") + ": " - + EnumChatFormatting.RED - + tDura - + EnumChatFormatting.RESET - + "%", /* 7 */ - StatCollector.translateToLocal("GT5U.multiblock.pollution") + ": " - + EnumChatFormatting.GREEN - + mPollutionReduction - + EnumChatFormatting.RESET - + " %" /* 8 */ + // 8 Lines available for information panels + tRunning + ": " + + EnumChatFormatting.RED + + GT_Utility.formatNumbers(((long) mEUt * mEfficiency) / 10000) + + EnumChatFormatting.RESET + + " EU/t", /* 1 */ + tMaintainance, /* 2 */ + StatCollector.translateToLocal("GT5U.turbine.efficiency") + ": " + + EnumChatFormatting.YELLOW + + (mEfficiency / 100F) + + EnumChatFormatting.RESET + + "%", /* 2 */ + StatCollector.translateToLocal("GT5U.multiblock.energy") + ": " + + EnumChatFormatting.GREEN + + GT_Utility.formatNumbers(storedEnergy) + + EnumChatFormatting.RESET + + " EU / " + + /* 3 */ EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(maxEnergy) + + EnumChatFormatting.RESET + + " EU", + StatCollector.translateToLocal("GT5U.turbine.flow") + ": " + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(GT_Utility.safeInt((long) realOptFlow)) + + EnumChatFormatting.RESET + + " L/t" + + /* 4 */ EnumChatFormatting.YELLOW + + " (" + + (looseFit ? StatCollector.translateToLocal("GT5U.turbine.loose") + : StatCollector.translateToLocal("GT5U.turbine.tight")) + + ")", /* 5 */ + StatCollector.translateToLocal("GT5U.turbine.fuel") + ": " + + EnumChatFormatting.GOLD + + GT_Utility.formatNumbers(storedFluid) + + EnumChatFormatting.RESET + + "L", /* 6 */ + StatCollector.translateToLocal( + "GT5U.turbine.dmg") + ": " + EnumChatFormatting.RED + tDura + EnumChatFormatting.RESET + "%", /* 7 */ + StatCollector.translateToLocal("GT5U.multiblock.pollution") + ": " + + EnumChatFormatting.GREEN + + mPollutionReduction + + EnumChatFormatting.RESET + + " %" /* 8 */ }; if (!this.getClass() - .getName() - .contains("Steam")) + .getName() + .contains("Steam")) ret[4] = StatCollector.translateToLocal("GT5U.turbine.flow") + ": " - + EnumChatFormatting.YELLOW - + GT_Utility.safeInt((long) realOptFlow) - + EnumChatFormatting.RESET - + " L/t"; + + EnumChatFormatting.YELLOW + + GT_Utility.safeInt((long) realOptFlow) + + EnumChatFormatting.RESET + + " L/t"; return ret; } public boolean hasTurbine() { return getBaseMetaTileEntity() != null && getBaseMetaTileEntity().isClientSide() ? mHasTurbine - : this.getMaxEfficiency(mInventory[1]) > 0; + : this.getMaxEfficiency(mInventory[1]) > 0; } @Override diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeTurbine_Gas.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeTurbine_Gas.java index 6b7abb526e..d48f27a7a4 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeTurbine_Gas.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeTurbine_Gas.java @@ -31,39 +31,39 @@ public class GT_MetaTileEntity_LargeTurbine_Gas extends GT_MetaTileEntity_LargeT @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { - return new ITexture[] { MACHINE_CASINGS[1][aColorIndex + 1], aFacing - == aSide ? (aActive ? TextureFactory.builder() - .addIcon(LARGETURBINE_NEW_ACTIVE5) - .build() - : hasTurbine() ? TextureFactory.builder() - .addIcon(LARGETURBINE_NEW5) - .build() - : TextureFactory.builder() - .addIcon(LARGETURBINE_NEW_EMPTY5) - .build()) - : casingTexturePages[0][58] }; + boolean aActive, boolean aRedstone) { + return new ITexture[] { MACHINE_CASINGS[1][aColorIndex + 1], + aFacing == aSide ? (aActive ? TextureFactory.builder() + .addIcon(LARGETURBINE_NEW_ACTIVE5) + .build() + : hasTurbine() ? TextureFactory.builder() + .addIcon(LARGETURBINE_NEW5) + .build() + : TextureFactory.builder() + .addIcon(LARGETURBINE_NEW_EMPTY5) + .build()) + : casingTexturePages[0][58] }; } @Override protected GT_Multiblock_Tooltip_Builder createTooltip() { final GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder(); tt.addMachineType("Gas Turbine") - .addInfo("Controller block for the Large Gas Turbine") - .addInfo("Needs a Turbine, place inside controller") - .addInfo("Warning: Will be capped at 8192 EU/t in a future update") - .addInfo("See the Advanced Large Gas Turbine as the next, uncapped, option") - // .addInfo("The excess fuel that gets consumed will be voided!") - .addPollutionAmount(getPollutionPerSecond(null)) - .addSeparator() - .beginStructureBlock(3, 3, 4, true) - .addController("Front center") - .addCasingInfoRange("Stainless Steel Turbine Casing", 8, 30, false) - .addDynamoHatch("Back center", 1) - .addMaintenanceHatch("Side centered", 2) - .addMufflerHatch("Side centered", 2) - .addInputHatch("Gas Fuel, Side centered", 2) - .toolTipFinisher("Gregtech"); + .addInfo("Controller block for the Large Gas Turbine") + .addInfo("Needs a Turbine, place inside controller") + .addInfo("Warning: Will be capped at 8192 EU/t in a future update") + .addInfo("See the Advanced Large Gas Turbine as the next, uncapped, option") + // .addInfo("The excess fuel that gets consumed will be voided!") + .addPollutionAmount(getPollutionPerSecond(null)) + .addSeparator() + .beginStructureBlock(3, 3, 4, true) + .addController("Front center") + .addCasingInfoRange("Stainless Steel Turbine Casing", 8, 30, false) + .addDynamoHatch("Back center", 1) + .addMaintenanceHatch("Side centered", 2) + .addMufflerHatch("Side centered", 2) + .addInputHatch("Gas Fuel, Side centered", 2) + .toolTipFinisher("Gregtech"); return tt; } @@ -106,7 +106,7 @@ public class GT_MetaTileEntity_LargeTurbine_Gas extends GT_MetaTileEntity_LargeT @Override int fluidIntoPower(ArrayList aFluids, int aOptFlow, int aBaseEff, int overflowMultiplier, - float[] flowMultipliers) { + float[] flowMultipliers) { if (aFluids.size() >= 1) { int tEU = 0; int actualOptimalFlow = 0; @@ -189,7 +189,7 @@ public class GT_MetaTileEntity_LargeTurbine_Gas extends GT_MetaTileEntity_LargeT if (totalFlow > actualOptimalFlow) { efficiency = 1.0f - Math.abs((totalFlow - actualOptimalFlow)) - / ((float) actualOptimalFlow * ((overflowMultiplier * 3) - 1)); + / ((float) actualOptimalFlow * ((overflowMultiplier * 3) - 1)); } else { efficiency = 1.0f - Math.abs((totalFlow - actualOptimalFlow) / (float) actualOptimalFlow); } diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeTurbine_GasAdvanced.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeTurbine_GasAdvanced.java index 559f7ae32f..81bd201b38 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeTurbine_GasAdvanced.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeTurbine_GasAdvanced.java @@ -31,39 +31,39 @@ public class GT_MetaTileEntity_LargeTurbine_GasAdvanced extends GT_MetaTileEntit @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { - return new ITexture[] { MACHINE_CASINGS[1][aColorIndex + 1], aFacing - == aSide ? (aActive ? TextureFactory.builder() - .addIcon(LARGETURBINE_NEW_ACTIVE5) - .build() - : hasTurbine() ? TextureFactory.builder() - .addIcon(LARGETURBINE_NEW5) - .build() - : TextureFactory.builder() - .addIcon(LARGETURBINE_NEW_EMPTY5) - .build()) - : casingTexturePages[1][57] }; + boolean aActive, boolean aRedstone) { + return new ITexture[] { MACHINE_CASINGS[1][aColorIndex + 1], + aFacing == aSide ? (aActive ? TextureFactory.builder() + .addIcon(LARGETURBINE_NEW_ACTIVE5) + .build() + : hasTurbine() ? TextureFactory.builder() + .addIcon(LARGETURBINE_NEW5) + .build() + : TextureFactory.builder() + .addIcon(LARGETURBINE_NEW_EMPTY5) + .build()) + : casingTexturePages[1][57] }; } @Override protected GT_Multiblock_Tooltip_Builder createTooltip() { final GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder(); tt.addMachineType("Gas Turbine") - .addInfo("Warning: This is an experimental multiblock, subject to changes ") - .addInfo("Controller block for the Large Advanced Gas Turbine") - .addInfo("Needs a Turbine, place inside controller") - .addInfo("Only accepts gases above 800k EU/bucket") - .addInfo("Has no maximum EU/t output, only depends on the Dynamo Hatch") - .addPollutionAmount(getPollutionPerSecond(null)) - .addSeparator() - .beginStructureBlock(3, 3, 4, true) - .addController("Front center") - .addCasingInfoRange("Advanced Gas Turbine Casing", 8, 30, false) - .addDynamoHatch("Back center", 1) - .addMaintenanceHatch("Side centered", 2) - .addMufflerHatch("Side centered", 2) - .addInputHatch("Gas Fuel, Side centered", 2) - .toolTipFinisher("Gregtech"); + .addInfo("Warning: This is an experimental multiblock, subject to changes ") + .addInfo("Controller block for the Large Advanced Gas Turbine") + .addInfo("Needs a Turbine, place inside controller") + .addInfo("Only accepts gases above 800k EU/bucket") + .addInfo("Has no maximum EU/t output, only depends on the Dynamo Hatch") + .addPollutionAmount(getPollutionPerSecond(null)) + .addSeparator() + .beginStructureBlock(3, 3, 4, true) + .addController("Front center") + .addCasingInfoRange("Advanced Gas Turbine Casing", 8, 30, false) + .addDynamoHatch("Back center", 1) + .addMaintenanceHatch("Side centered", 2) + .addMufflerHatch("Side centered", 2) + .addInputHatch("Gas Fuel, Side centered", 2) + .toolTipFinisher("Gregtech"); return tt; } @@ -106,7 +106,7 @@ public class GT_MetaTileEntity_LargeTurbine_GasAdvanced extends GT_MetaTileEntit @Override int fluidIntoPower(ArrayList aFluids, int aOptFlow, int aBaseEff, int overflowMultiplier, - float[] flowMultipliers) { + float[] flowMultipliers) { if (aFluids.size() >= 1) { int tEU = 0; int actualOptimalFlow = 0; @@ -187,7 +187,7 @@ public class GT_MetaTileEntity_LargeTurbine_GasAdvanced extends GT_MetaTileEntit if (totalFlow > actualOptimalFlow) { efficiency = 1.0f - Math.abs((totalFlow - actualOptimalFlow)) - / ((float) actualOptimalFlow * ((overflowMultiplier * 3) - 1)); + / ((float) actualOptimalFlow * ((overflowMultiplier * 3) - 1)); } else { efficiency = 1.0f - Math.abs((totalFlow - actualOptimalFlow) / (float) actualOptimalFlow); } diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeTurbine_HPSteam.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeTurbine_HPSteam.java index ef288cf1ec..fc1e7fe3ce 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeTurbine_HPSteam.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeTurbine_HPSteam.java @@ -37,38 +37,38 @@ public class GT_MetaTileEntity_LargeTurbine_HPSteam extends GT_MetaTileEntity_La @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { - return new ITexture[] { MACHINE_CASINGS[1][aColorIndex + 1], aFacing - == aSide ? (aActive ? TextureFactory.builder() - .addIcon(LARGETURBINE_NEW_ACTIVE5) - .build() - : hasTurbine() ? TextureFactory.builder() - .addIcon(LARGETURBINE_NEW5) - .build() - : TextureFactory.builder() - .addIcon(LARGETURBINE_NEW_EMPTY5) - .build()) - : casingTexturePages[0][59] }; + boolean aActive, boolean aRedstone) { + return new ITexture[] { MACHINE_CASINGS[1][aColorIndex + 1], + aFacing == aSide ? (aActive ? TextureFactory.builder() + .addIcon(LARGETURBINE_NEW_ACTIVE5) + .build() + : hasTurbine() ? TextureFactory.builder() + .addIcon(LARGETURBINE_NEW5) + .build() + : TextureFactory.builder() + .addIcon(LARGETURBINE_NEW_EMPTY5) + .build()) + : casingTexturePages[0][59] }; } @Override protected GT_Multiblock_Tooltip_Builder createTooltip() { final GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder(); tt.addMachineType("Steam Turbine") - .addInfo("Controller block for the Large High Pressure Steam Turbine") - .addInfo("Needs a Turbine, place inside controller") - .addInfo("Outputs Steam as well as producing power") - .addInfo("Power output depends on turbine and fitting") - .addInfo("Use screwdriver to adjust fitting of turbine") - .addSeparator() - .beginStructureBlock(3, 3, 4, true) - .addController("Front center") - .addCasingInfoRange("Titanium Turbine Casing", 8, 31, false) - .addDynamoHatch("Back center", 1) - .addMaintenanceHatch("Side centered", 2) - .addInputHatch("Superheated Steam, Side centered", 2) - .addOutputHatch("Steam, Side centered", 2) - .toolTipFinisher("Gregtech"); + .addInfo("Controller block for the Large High Pressure Steam Turbine") + .addInfo("Needs a Turbine, place inside controller") + .addInfo("Outputs Steam as well as producing power") + .addInfo("Power output depends on turbine and fitting") + .addInfo("Use screwdriver to adjust fitting of turbine") + .addSeparator() + .beginStructureBlock(3, 3, 4, true) + .addController("Front center") + .addCasingInfoRange("Titanium Turbine Casing", 8, 31, false) + .addDynamoHatch("Back center", 1) + .addMaintenanceHatch("Side centered", 2) + .addInputHatch("Superheated Steam, Side centered", 2) + .addOutputHatch("Steam, Side centered", 2) + .toolTipFinisher("Gregtech"); return tt; } @@ -99,7 +99,7 @@ public class GT_MetaTileEntity_LargeTurbine_HPSteam extends GT_MetaTileEntity_La @Override int fluidIntoPower(ArrayList aFluids, int aOptFlow, int aBaseEff, int overflowEfficiency, - float[] flowMultipliers) { + float[] flowMultipliers) { if (looseFit) { float[] calculatedFlow = calculateLooseFlow(aOptFlow, aBaseEff); aOptFlow = GT_Utility.safeInt((long) calculatedFlow[0]); @@ -133,12 +133,12 @@ public class GT_MetaTileEntity_LargeTurbine_HPSteam extends GT_MetaTileEntity_La if (!achievement) { try { GT_Mod.achievements.issueAchievement( - this.getBaseMetaTileEntity() - .getWorld() - .getPlayerEntityByName( - this.getBaseMetaTileEntity() - .getOwnerName()), - "efficientsteam"); + this.getBaseMetaTileEntity() + .getWorld() + .getPlayerEntityByName( + this.getBaseMetaTileEntity() + .getOwnerName()), + "efficientsteam"); } catch (Exception ignored) {} achievement = true; } @@ -153,9 +153,9 @@ public class GT_MetaTileEntity_LargeTurbine_HPSteam extends GT_MetaTileEntity_La tEU = GT_Utility.safeInt((long) tEU * (long) aBaseEff / 10000L); } else { float efficiency = getOverflowEfficiency( - totalFlow, - (GT_Utility.safeInt((long) realOptFlow)), - overflowMultiplier); + totalFlow, + (GT_Utility.safeInt((long) realOptFlow)), + overflowMultiplier); tEU *= efficiency; tEU = Math.max(1, GT_Utility.safeInt((long) tEU * (long) aBaseEff / 10000L)); } @@ -182,8 +182,8 @@ public class GT_MetaTileEntity_LargeTurbine_HPSteam extends GT_MetaTileEntity_La float efficiency = 0; if (totalFlow > actualOptimalFlow) { - efficiency = 1.0f - Math.abs((totalFlow - actualOptimalFlow)) - / ((float) actualOptimalFlow * (overflowMultiplier + 2)); + efficiency = 1.0f + - Math.abs((totalFlow - actualOptimalFlow)) / ((float) actualOptimalFlow * (overflowMultiplier + 2)); } else { efficiency = 1.0f - Math.abs((totalFlow - actualOptimalFlow) / (float) actualOptimalFlow); } @@ -196,9 +196,9 @@ public class GT_MetaTileEntity_LargeTurbine_HPSteam extends GT_MetaTileEntity_La if (aSide == getBaseMetaTileEntity().getFrontFacing()) { looseFit ^= true; GT_Utility.sendChatToPlayer( - aPlayer, - looseFit ? GT_Utility.trans("500", "Fitting: Loose - More Flow") - : GT_Utility.trans("501", "Fitting: Tight - More Efficiency")); + aPlayer, + looseFit ? GT_Utility.trans("500", "Fitting: Loose - More Flow") + : GT_Utility.trans("501", "Fitting: Tight - More Efficiency")); } } diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeTurbine_Plasma.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeTurbine_Plasma.java index e6a707b9a1..c6a4155b03 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeTurbine_Plasma.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeTurbine_Plasma.java @@ -37,36 +37,36 @@ public class GT_MetaTileEntity_LargeTurbine_Plasma extends GT_MetaTileEntity_Lar @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { - return new ITexture[] { MACHINE_CASINGS[1][aColorIndex + 1], aFacing - == aSide ? (aActive ? TextureFactory.builder() - .addIcon(LARGETURBINE_NEW_ACTIVE5) - .build() - : hasTurbine() ? TextureFactory.builder() - .addIcon(LARGETURBINE_NEW5) - .build() - : TextureFactory.builder() - .addIcon(LARGETURBINE_NEW_EMPTY5) - .build()) - : casingTexturePages[0][60] }; + boolean aActive, boolean aRedstone) { + return new ITexture[] { MACHINE_CASINGS[1][aColorIndex + 1], + aFacing == aSide ? (aActive ? TextureFactory.builder() + .addIcon(LARGETURBINE_NEW_ACTIVE5) + .build() + : hasTurbine() ? TextureFactory.builder() + .addIcon(LARGETURBINE_NEW5) + .build() + : TextureFactory.builder() + .addIcon(LARGETURBINE_NEW_EMPTY5) + .build()) + : casingTexturePages[0][60] }; } @Override protected GT_Multiblock_Tooltip_Builder createTooltip() { final GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder(); tt.addMachineType("Plasma Turbine") - .addInfo("Controller block for the Large Plasma Generator") - .addInfo("Needs a Turbine, place inside controller") - .addInfo("Use your Fusion Reactor to produce the Plasma") - .addSeparator() - .beginStructureBlock(3, 3, 4, true) - .addController("Front center") - .addCasingInfoRange("Tungstensteel Turbine Casing", 8, 31, false) - .addDynamoHatch("Back center", 1) - .addMaintenanceHatch("Side centered", 2) - .addInputHatch("Plasma Fluid, Side centered", 2) - .addOutputHatch("Molten Fluid, optional, Side centered", 2) - .toolTipFinisher("Gregtech"); + .addInfo("Controller block for the Large Plasma Generator") + .addInfo("Needs a Turbine, place inside controller") + .addInfo("Use your Fusion Reactor to produce the Plasma") + .addSeparator() + .beginStructureBlock(3, 3, 4, true) + .addController("Front center") + .addCasingInfoRange("Tungstensteel Turbine Casing", 8, 31, false) + .addDynamoHatch("Back center", 1) + .addMaintenanceHatch("Side centered", 2) + .addInputHatch("Plasma Fluid, Side centered", 2) + .addOutputHatch("Molten Fluid, optional, Side centered", 2) + .toolTipFinisher("Gregtech"); return tt; } @@ -104,7 +104,7 @@ public class GT_MetaTileEntity_LargeTurbine_Plasma extends GT_MetaTileEntity_Lar @Override int fluidIntoPower(ArrayList aFluids, int aOptFlow, int aBaseEff, int overflowMultiplier, - float[] flowMultipliers) { + float[] flowMultipliers) { if (aFluids.size() >= 1) { aOptFlow *= 800; // CHANGED THINGS HERE, check recipe runs once per 20 ticks int tEU = 0; @@ -114,8 +114,8 @@ public class GT_MetaTileEntity_LargeTurbine_Plasma extends GT_MetaTileEntity_Lar FluidStack firstFuelType = new FluidStack(aFluids.get(0), 0); // Identify a SINGLE type of fluid to process. // Doesn't matter which one. Ignore the rest! int fuelValue = getFuelValue(firstFuelType); - actualOptimalFlow = GT_Utility.safeInt( - (long) Math.ceil((double) aOptFlow * flowMultipliers[2] / (double) fuelValue)); + actualOptimalFlow = GT_Utility + .safeInt((long) Math.ceil((double) aOptFlow * flowMultipliers[2] / (double) fuelValue)); this.realOptFlow = actualOptimalFlow; // For scanner info // Allowed to use up to 550% optimal flow rate, depending on the value of overflowMultiplier. @@ -188,7 +188,7 @@ public class GT_MetaTileEntity_LargeTurbine_Plasma extends GT_MetaTileEntity_Lar if (totalFlow > actualOptimalFlow) { efficiency = 1.0f - Math.abs((totalFlow - actualOptimalFlow)) - / ((float) actualOptimalFlow * ((overflowMultiplier * 3) + 1)); + / ((float) actualOptimalFlow * ((overflowMultiplier * 3) + 1)); } else { efficiency = 1.0f - Math.abs((totalFlow - actualOptimalFlow) / (float) actualOptimalFlow); } @@ -199,30 +199,29 @@ public class GT_MetaTileEntity_LargeTurbine_Plasma extends GT_MetaTileEntity_Lar @Override public boolean checkRecipe(ItemStack aStack) { if ((counter & 7) == 0 && (aStack == null || !(aStack.getItem() instanceof GT_MetaGenerated_Tool) - || aStack.getItemDamage() < 170 - || aStack.getItemDamage() > 179)) { + || aStack.getItemDamage() < 170 + || aStack.getItemDamage() > 179)) { stopMachine(); return false; } ArrayList tFluids = getStoredFluids(); if (!tFluids.isEmpty()) { if (baseEff == 0 || optFlow == 0 - || counter >= 512 - || this.getBaseMetaTileEntity() - .hasWorkJustBeenEnabled() - || this.getBaseMetaTileEntity() - .hasInventoryBeenModified()) { + || counter >= 512 + || this.getBaseMetaTileEntity() + .hasWorkJustBeenEnabled() + || this.getBaseMetaTileEntity() + .hasInventoryBeenModified()) { counter = 0; baseEff = GT_Utility.safeInt( - (long) ((5F + ((GT_MetaGenerated_Tool) aStack.getItem()).getToolCombatDamage(aStack)) * 1000F)); + (long) ((5F + ((GT_MetaGenerated_Tool) aStack.getItem()).getToolCombatDamage(aStack)) * 1000F)); optFlow = GT_Utility.safeInt( - (long) Math.max( - Float.MIN_NORMAL, - ((GT_MetaGenerated_Tool) aStack.getItem()).getToolStats(aStack) - .getSpeedMultiplier() - * ((GT_MetaGenerated_Tool) aStack.getItem()).getPrimaryMaterial( - aStack).mToolSpeed - * 50)); + (long) Math.max( + Float.MIN_NORMAL, + ((GT_MetaGenerated_Tool) aStack.getItem()).getToolStats(aStack) + .getSpeedMultiplier() + * ((GT_MetaGenerated_Tool) aStack.getItem()).getPrimaryMaterial(aStack).mToolSpeed + * 50)); overflowMultiplier = getOverflowMultiplier(aStack); flowMultipliers[0] = GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mSteamMultiplier; @@ -279,21 +278,21 @@ public class GT_MetaTileEntity_LargeTurbine_Plasma extends GT_MetaTileEntity_Lar } String tRunning = mMaxProgresstime > 0 - ? EnumChatFormatting.GREEN + StatCollector.translateToLocal("GT5U.turbine.running.true") - + EnumChatFormatting.RESET - : EnumChatFormatting.RED + StatCollector.translateToLocal("GT5U.turbine.running.false") - + EnumChatFormatting.RESET; + ? EnumChatFormatting.GREEN + StatCollector.translateToLocal("GT5U.turbine.running.true") + + EnumChatFormatting.RESET + : EnumChatFormatting.RED + StatCollector.translateToLocal("GT5U.turbine.running.false") + + EnumChatFormatting.RESET; String tMaintainance = getIdealStatus() == getRepairStatus() - ? EnumChatFormatting.GREEN + StatCollector.translateToLocal("GT5U.turbine.maintenance.false") - + EnumChatFormatting.RESET - : EnumChatFormatting.RED + StatCollector.translateToLocal("GT5U.turbine.maintenance.true") - + EnumChatFormatting.RESET; + ? EnumChatFormatting.GREEN + StatCollector.translateToLocal("GT5U.turbine.maintenance.false") + + EnumChatFormatting.RESET + : EnumChatFormatting.RED + StatCollector.translateToLocal("GT5U.turbine.maintenance.true") + + EnumChatFormatting.RESET; int tDura = 0; if (mInventory[1] != null && mInventory[1].getItem() instanceof GT_MetaGenerated_Tool_01) { tDura = GT_Utility.safeInt( - (long) (100.0f / GT_MetaGenerated_Tool.getToolMaxDamage(mInventory[1]) - * (GT_MetaGenerated_Tool.getToolDamage(mInventory[1])) + 1)); + (long) (100.0f / GT_MetaGenerated_Tool.getToolMaxDamage(mInventory[1]) + * (GT_MetaGenerated_Tool.getToolDamage(mInventory[1])) + 1)); } long storedEnergy = 0; @@ -301,67 +300,64 @@ public class GT_MetaTileEntity_LargeTurbine_Plasma extends GT_MetaTileEntity_Lar for (GT_MetaTileEntity_Hatch_Dynamo tHatch : mDynamoHatches) { if (isValidMetaTileEntity(tHatch)) { storedEnergy += tHatch.getBaseMetaTileEntity() - .getStoredEU(); + .getStoredEU(); maxEnergy += tHatch.getBaseMetaTileEntity() - .getEUCapacity(); + .getEUCapacity(); } } String[] ret = new String[] { - // 8 Lines available for information panels - tRunning + ": " - + EnumChatFormatting.RED - + GT_Utility.formatNumbers(((long) mEUt * mEfficiency) / 10000) - + EnumChatFormatting.RESET - + " EU/t", /* 1 */ - tMaintainance, /* 2 */ - StatCollector.translateToLocal("GT5U.turbine.efficiency") + ": " - + EnumChatFormatting.YELLOW - + (mEfficiency / 100F) - + EnumChatFormatting.RESET - + "%", /* 2 */ - StatCollector.translateToLocal("GT5U.multiblock.energy") + ": " - + EnumChatFormatting.GREEN - + GT_Utility.formatNumbers(storedEnergy) - + EnumChatFormatting.RESET - + " EU / " - + /* 3 */ EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(maxEnergy) - + EnumChatFormatting.RESET - + " EU", - StatCollector.translateToLocal("GT5U.turbine.flow") + ": " - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(GT_Utility.safeInt((long) realOptFlow)) - + EnumChatFormatting.RESET - + " L/s" - + /* 4 */ EnumChatFormatting.YELLOW - + " (" - + (looseFit ? StatCollector.translateToLocal("GT5U.turbine.loose") - : StatCollector.translateToLocal("GT5U.turbine.tight")) - + ")", /* 5 */ - StatCollector.translateToLocal("GT5U.turbine.fuel") + ": " - + EnumChatFormatting.GOLD - + GT_Utility.formatNumbers(storedFluid) - + EnumChatFormatting.RESET - + "L", /* 6 */ - StatCollector.translateToLocal("GT5U.turbine.dmg") + ": " - + EnumChatFormatting.RED - + tDura - + EnumChatFormatting.RESET - + "%", /* 7 */ - StatCollector.translateToLocal("GT5U.multiblock.pollution") + ": " - + EnumChatFormatting.GREEN - + mPollutionReduction - + EnumChatFormatting.RESET - + " %" /* 8 */ + // 8 Lines available for information panels + tRunning + ": " + + EnumChatFormatting.RED + + GT_Utility.formatNumbers(((long) mEUt * mEfficiency) / 10000) + + EnumChatFormatting.RESET + + " EU/t", /* 1 */ + tMaintainance, /* 2 */ + StatCollector.translateToLocal("GT5U.turbine.efficiency") + ": " + + EnumChatFormatting.YELLOW + + (mEfficiency / 100F) + + EnumChatFormatting.RESET + + "%", /* 2 */ + StatCollector.translateToLocal("GT5U.multiblock.energy") + ": " + + EnumChatFormatting.GREEN + + GT_Utility.formatNumbers(storedEnergy) + + EnumChatFormatting.RESET + + " EU / " + + /* 3 */ EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(maxEnergy) + + EnumChatFormatting.RESET + + " EU", + StatCollector.translateToLocal("GT5U.turbine.flow") + ": " + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(GT_Utility.safeInt((long) realOptFlow)) + + EnumChatFormatting.RESET + + " L/s" + + /* 4 */ EnumChatFormatting.YELLOW + + " (" + + (looseFit ? StatCollector.translateToLocal("GT5U.turbine.loose") + : StatCollector.translateToLocal("GT5U.turbine.tight")) + + ")", /* 5 */ + StatCollector.translateToLocal("GT5U.turbine.fuel") + ": " + + EnumChatFormatting.GOLD + + GT_Utility.formatNumbers(storedFluid) + + EnumChatFormatting.RESET + + "L", /* 6 */ + StatCollector.translateToLocal( + "GT5U.turbine.dmg") + ": " + EnumChatFormatting.RED + tDura + EnumChatFormatting.RESET + "%", /* 7 */ + StatCollector.translateToLocal("GT5U.multiblock.pollution") + ": " + + EnumChatFormatting.GREEN + + mPollutionReduction + + EnumChatFormatting.RESET + + " %" /* 8 */ }; if (!this.getClass() - .getName() - .contains("Steam")) + .getName() + .contains("Steam")) ret[4] = StatCollector.translateToLocal("GT5U.turbine.flow") + ": " - + EnumChatFormatting.YELLOW - + GT_Utility.safeInt((long) realOptFlow) - + EnumChatFormatting.RESET - + " L/s"; + + EnumChatFormatting.YELLOW + + GT_Utility.safeInt((long) realOptFlow) + + EnumChatFormatting.RESET + + " L/s"; return ret; } } diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeTurbine_Steam.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeTurbine_Steam.java index 1f5c7a5bb6..1a6a6f678a 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeTurbine_Steam.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeTurbine_Steam.java @@ -38,38 +38,38 @@ public class GT_MetaTileEntity_LargeTurbine_Steam extends GT_MetaTileEntity_Larg @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { - return new ITexture[] { MACHINE_CASINGS[1][aColorIndex + 1], aFacing - == aSide ? (aActive ? TextureFactory.builder() - .addIcon(LARGETURBINE_NEW_ACTIVE5) - .build() - : hasTurbine() ? TextureFactory.builder() - .addIcon(LARGETURBINE_NEW5) - .build() - : TextureFactory.builder() - .addIcon(LARGETURBINE_NEW_EMPTY5) - .build()) - : casingTexturePages[0][57] }; + boolean aActive, boolean aRedstone) { + return new ITexture[] { MACHINE_CASINGS[1][aColorIndex + 1], + aFacing == aSide ? (aActive ? TextureFactory.builder() + .addIcon(LARGETURBINE_NEW_ACTIVE5) + .build() + : hasTurbine() ? TextureFactory.builder() + .addIcon(LARGETURBINE_NEW5) + .build() + : TextureFactory.builder() + .addIcon(LARGETURBINE_NEW_EMPTY5) + .build()) + : casingTexturePages[0][57] }; } @Override protected GT_Multiblock_Tooltip_Builder createTooltip() { final GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder(); tt.addMachineType("Steam Turbine") - .addInfo("Controller block for the Large Steam Turbine") - .addInfo("Needs a Turbine, place inside controller") - .addInfo("Outputs Distilled Water as well as producing power") - .addInfo("Power output depends on turbine and fitting") - .addInfo("Use screwdriver to adjust fitting of turbine") - .addSeparator() - .beginStructureBlock(3, 3, 4, true) - .addController("Front center") - .addCasingInfoRange("Turbine Casing", 8, 31, false) - .addDynamoHatch("Back center", 1) - .addMaintenanceHatch("Side centered", 2) - .addInputHatch("Steam, Side centered", 2) - .addOutputHatch("Distilled Water, Side centered", 2) - .toolTipFinisher("Gregtech"); + .addInfo("Controller block for the Large Steam Turbine") + .addInfo("Needs a Turbine, place inside controller") + .addInfo("Outputs Distilled Water as well as producing power") + .addInfo("Power output depends on turbine and fitting") + .addInfo("Use screwdriver to adjust fitting of turbine") + .addSeparator() + .beginStructureBlock(3, 3, 4, true) + .addController("Front center") + .addCasingInfoRange("Turbine Casing", 8, 31, false) + .addDynamoHatch("Back center", 1) + .addMaintenanceHatch("Side centered", 2) + .addInputHatch("Steam, Side centered", 2) + .addOutputHatch("Distilled Water, Side centered", 2) + .toolTipFinisher("Gregtech"); return tt; } @@ -107,7 +107,7 @@ public class GT_MetaTileEntity_LargeTurbine_Steam extends GT_MetaTileEntity_Larg @Override int fluidIntoPower(ArrayList aFluids, int aOptFlow, int aBaseEff, int overflowEfficiency, - float[] flowMultipliers) { + float[] flowMultipliers) { if (looseFit) { float[] calculatedFlow = calculateLooseFlow(aOptFlow, aBaseEff); aOptFlow = GT_Utility.safeInt((long) calculatedFlow[0]); @@ -141,12 +141,12 @@ public class GT_MetaTileEntity_LargeTurbine_Steam extends GT_MetaTileEntity_Larg totalFlow += flow; // track total input used if (!achievement) { GT_Mod.achievements.issueAchievement( - this.getBaseMetaTileEntity() - .getWorld() - .getPlayerEntityByName( - this.getBaseMetaTileEntity() - .getOwnerName()), - "muchsteam"); + this.getBaseMetaTileEntity() + .getWorld() + .getPlayerEntityByName( + this.getBaseMetaTileEntity() + .getOwnerName()), + "muchsteam"); achievement = true; } } else if (GT_ModHandler.isSuperHeatedSteam(aFluidStack)) { @@ -161,9 +161,9 @@ public class GT_MetaTileEntity_LargeTurbine_Steam extends GT_MetaTileEntity_Larg tEU = GT_Utility.safeInt((long) tEU * (long) aBaseEff / 20000L); } else { float efficiency = getOverflowEfficiency( - totalFlow, - (GT_Utility.safeInt((long) realOptFlow)), - overflowMultiplier); + totalFlow, + (GT_Utility.safeInt((long) realOptFlow)), + overflowMultiplier); tEU *= efficiency; tEU = Math.max(1, GT_Utility.safeInt((long) tEU * (long) aBaseEff / 20000L)); } @@ -189,8 +189,8 @@ public class GT_MetaTileEntity_LargeTurbine_Steam extends GT_MetaTileEntity_Larg float efficiency = 0; if (totalFlow > actualOptimalFlow) { - efficiency = 1.0f - Math.abs((totalFlow - actualOptimalFlow)) - / ((float) actualOptimalFlow * (overflowMultiplier + 1)); + efficiency = 1.0f + - Math.abs((totalFlow - actualOptimalFlow)) / ((float) actualOptimalFlow * (overflowMultiplier + 1)); } else { efficiency = 1.0f - Math.abs((totalFlow - actualOptimalFlow) / (float) actualOptimalFlow); } @@ -237,9 +237,9 @@ public class GT_MetaTileEntity_LargeTurbine_Steam extends GT_MetaTileEntity_Larg if (aSide == getBaseMetaTileEntity().getFrontFacing()) { looseFit ^= true; GT_Utility.sendChatToPlayer( - aPlayer, - looseFit ? GT_Utility.trans("500", "Fitting: Loose - More Flow") - : GT_Utility.trans("501", "Fitting: Tight - More Efficiency")); + aPlayer, + looseFit ? GT_Utility.trans("500", "Fitting: Loose - More Flow") + : GT_Utility.trans("501", "Fitting: Tight - More Efficiency")); } } diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_MultiFurnace.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_MultiFurnace.java index 0d90438020..c9f32c76f7 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_MultiFurnace.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_MultiFurnace.java @@ -41,58 +41,35 @@ import gregtech.api.util.GT_Recipe; import gregtech.api.util.GT_StructureUtility; import gregtech.api.util.GT_Utility; -public class GT_MetaTileEntity_MultiFurnace extends - GT_MetaTileEntity_AbstractMultiFurnace implements ISurvivalConstructable { +public class GT_MetaTileEntity_MultiFurnace + extends GT_MetaTileEntity_AbstractMultiFurnace implements ISurvivalConstructable { private int mLevel = 0; private int mCostDiscount = 1; private static final int CASING_INDEX = 11; private static final String STRUCTURE_PIECE_MAIN = "main"; - private static final IStructureDefinition STRUCTURE_DEFINITION = StructureDefinition.builder() - .addShape( - STRUCTURE_PIECE_MAIN, - transpose( - new String[][] { - { "ccc", "cmc", - "ccc" }, - { "CCC", "C-C", - "CCC" }, - { "b~b", "bbb", - "bbb" } })) - .addElement( - 'c', - ofBlock( - GregTech_API.sBlockCasings1, - CASING_INDEX)) - .addElement( - 'm', - Muffler.newAny( - CASING_INDEX, - 2)) - .addElement( - 'C', - GT_StructureUtility.ofCoil( - GT_MetaTileEntity_MultiFurnace::setCoilLevel, - GT_MetaTileEntity_MultiFurnace::getCoilLevel)) - .addElement( - 'b', - ofChain( - GT_StructureUtility.buildHatchAdder() - .atLeast( - Maintenance, - InputBus, - OutputBus, - Energy) - .casingIndex( - CASING_INDEX) - .dot( - 1) - .build(), - ofBlock( - GregTech_API.sBlockCasings1, - CASING_INDEX))) - .build(); + private static final IStructureDefinition STRUCTURE_DEFINITION = StructureDefinition + .builder() + .addShape( + STRUCTURE_PIECE_MAIN, + transpose(new String[][] { { "ccc", "cmc", "ccc" }, { "CCC", "C-C", "CCC" }, { "b~b", "bbb", "bbb" } })) + .addElement('c', ofBlock(GregTech_API.sBlockCasings1, CASING_INDEX)) + .addElement('m', Muffler.newAny(CASING_INDEX, 2)) + .addElement( + 'C', + GT_StructureUtility + .ofCoil(GT_MetaTileEntity_MultiFurnace::setCoilLevel, GT_MetaTileEntity_MultiFurnace::getCoilLevel)) + .addElement( + 'b', + ofChain( + GT_StructureUtility.buildHatchAdder() + .atLeast(Maintenance, InputBus, OutputBus, Energy) + .casingIndex(CASING_INDEX) + .dot(1) + .build(), + ofBlock(GregTech_API.sBlockCasings1, CASING_INDEX))) + .build(); public GT_MetaTileEntity_MultiFurnace(int aID, String aName, String aNameRegional) { super(aID, aName, aNameRegional); @@ -111,47 +88,46 @@ public class GT_MetaTileEntity_MultiFurnace extends protected GT_Multiblock_Tooltip_Builder createTooltip() { GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder(); tt.addMachineType("Furnace") - .addInfo("Controller Block for the Multi Smelter") - .addInfo("Smelts up to 8-8192 items at once") - .addInfo("Items smelted increases with coil tier") - .addPollutionAmount(getPollutionPerSecond(null)) - .addSeparator() - .beginStructureBlock(3, 3, 3, true) - .addController("Front bottom") - .addCasingInfoRange("Heat Proof Machine Casing", 8, 14, false) - .addOtherStructurePart("Heating Coils", "Middle layer") - .addEnergyHatch("Any bottom casing", 1) - .addMaintenanceHatch("Any bottom casing", 1) - .addMufflerHatch("Top Middle", 2) - .addInputBus("Any bottom casing", 1) - .addOutputBus("Any bottom casing", 1) - .toolTipFinisher("Gregtech"); + .addInfo("Controller Block for the Multi Smelter") + .addInfo("Smelts up to 8-8192 items at once") + .addInfo("Items smelted increases with coil tier") + .addPollutionAmount(getPollutionPerSecond(null)) + .addSeparator() + .beginStructureBlock(3, 3, 3, true) + .addController("Front bottom") + .addCasingInfoRange("Heat Proof Machine Casing", 8, 14, false) + .addOtherStructurePart("Heating Coils", "Middle layer") + .addEnergyHatch("Any bottom casing", 1) + .addMaintenanceHatch("Any bottom casing", 1) + .addMufflerHatch("Top Middle", 2) + .addInputBus("Any bottom casing", 1) + .addOutputBus("Any bottom casing", 1) + .toolTipFinisher("Gregtech"); return tt; } @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { if (aSide != aFacing) return new ITexture[] { casingTexturePages[0][CASING_INDEX] }; if (aActive) return new ITexture[] { casingTexturePages[0][CASING_INDEX], TextureFactory.builder() - .addIcon( - OVERLAY_FRONT_MULTI_SMELTER_ACTIVE) - .extFacing() - .build(), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_MULTI_SMELTER_ACTIVE_GLOW) - .extFacing() - .glow() - .build() }; + .addIcon(OVERLAY_FRONT_MULTI_SMELTER_ACTIVE) + .extFacing() + .build(), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_MULTI_SMELTER_ACTIVE_GLOW) + .extFacing() + .glow() + .build() }; return new ITexture[] { casingTexturePages[0][CASING_INDEX], TextureFactory.builder() - .addIcon(OVERLAY_FRONT_MULTI_SMELTER) - .extFacing() - .build(), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_MULTI_SMELTER_GLOW) - .extFacing() - .glow() - .build() }; + .addIcon(OVERLAY_FRONT_MULTI_SMELTER) + .extFacing() + .build(), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_MULTI_SMELTER_GLOW) + .extFacing() + .glow() + .build() }; } @Override @@ -256,9 +232,9 @@ public class GT_MetaTileEntity_MultiFurnace extends if ((xPos == tX) && (zPos == tZ)) continue; tUsedMeta = aBaseMetaTileEntity.getMetaID(xPos, tY + 1, zPos); if (tUsedMeta >= 12 && tUsedMeta <= 14 - && aBaseMetaTileEntity.getBlock(xPos, tY + 1, zPos) == GregTech_API.sBlockCasings1) + && aBaseMetaTileEntity.getBlock(xPos, tY + 1, zPos) == GregTech_API.sBlockCasings1) aBaseMetaTileEntity.getWorld() - .setBlock(xPos, tY + 1, zPos, GregTech_API.sBlockCasings5, tUsedMeta - 12, 3); + .setBlock(xPos, tY + 1, zPos, GregTech_API.sBlockCasings5, tUsedMeta - 12, 3); } } @@ -272,69 +248,69 @@ public class GT_MetaTileEntity_MultiFurnace extends long maxEnergy = 0; for (GT_MetaTileEntity_Hatch_Energy tHatch : mEnergyHatches) if (isValidMetaTileEntity(tHatch)) { storedEnergy += tHatch.getBaseMetaTileEntity() - .getStoredEU(); + .getStoredEU(); maxEnergy += tHatch.getBaseMetaTileEntity() - .getEUCapacity(); + .getEUCapacity(); } return new String[] { - StatCollector.translateToLocal("GT5U.multiblock.Progress") + ": " - + EnumChatFormatting.GREEN - + GT_Utility.formatNumbers(mProgresstime / 20) - + EnumChatFormatting.RESET - + " s / " - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(mMaxProgresstime / 20) - + EnumChatFormatting.RESET - + " s", - StatCollector.translateToLocal("GT5U.multiblock.energy") + ": " - + EnumChatFormatting.GREEN - + GT_Utility.formatNumbers(storedEnergy) - + EnumChatFormatting.RESET - + " EU / " - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(maxEnergy) - + EnumChatFormatting.RESET - + " EU", - StatCollector.translateToLocal("GT5U.multiblock.usage") + ": " - + EnumChatFormatting.RED - + GT_Utility.formatNumbers(-mEUt) - + EnumChatFormatting.RESET - + " EU/t", - StatCollector.translateToLocal("GT5U.multiblock.mei") + ": " - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(getMaxInputVoltage()) - + EnumChatFormatting.RESET - + " EU/t(*2A) " - + StatCollector.translateToLocal("GT5U.machines.tier") - + ": " - + EnumChatFormatting.YELLOW - + VN[GT_Utility.getTier(getMaxInputVoltage())] - + EnumChatFormatting.RESET, - StatCollector.translateToLocal("GT5U.multiblock.problems") + ": " - + EnumChatFormatting.RED - + (getIdealStatus() - getRepairStatus()) - + EnumChatFormatting.RESET - + " " - + StatCollector.translateToLocal("GT5U.multiblock.efficiency") - + ": " - + EnumChatFormatting.YELLOW - + mEfficiency / 100.0F - + EnumChatFormatting.RESET - + " %", - StatCollector.translateToLocal("GT5U.MS.multismelting") + ": " - + EnumChatFormatting.GREEN - + mLevel - + EnumChatFormatting.RESET - + " Discount: (EU/t) / " - + EnumChatFormatting.GREEN - + GT_Utility.formatNumbers(mCostDiscount) - + EnumChatFormatting.RESET, - StatCollector.translateToLocal("GT5U.multiblock.pollution") + ": " - + EnumChatFormatting.GREEN - + mPollutionReduction - + EnumChatFormatting.RESET - + " %" }; + StatCollector.translateToLocal("GT5U.multiblock.Progress") + ": " + + EnumChatFormatting.GREEN + + GT_Utility.formatNumbers(mProgresstime / 20) + + EnumChatFormatting.RESET + + " s / " + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(mMaxProgresstime / 20) + + EnumChatFormatting.RESET + + " s", + StatCollector.translateToLocal("GT5U.multiblock.energy") + ": " + + EnumChatFormatting.GREEN + + GT_Utility.formatNumbers(storedEnergy) + + EnumChatFormatting.RESET + + " EU / " + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(maxEnergy) + + EnumChatFormatting.RESET + + " EU", + StatCollector.translateToLocal("GT5U.multiblock.usage") + ": " + + EnumChatFormatting.RED + + GT_Utility.formatNumbers(-mEUt) + + EnumChatFormatting.RESET + + " EU/t", + StatCollector.translateToLocal("GT5U.multiblock.mei") + ": " + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(getMaxInputVoltage()) + + EnumChatFormatting.RESET + + " EU/t(*2A) " + + StatCollector.translateToLocal("GT5U.machines.tier") + + ": " + + EnumChatFormatting.YELLOW + + VN[GT_Utility.getTier(getMaxInputVoltage())] + + EnumChatFormatting.RESET, + StatCollector.translateToLocal("GT5U.multiblock.problems") + ": " + + EnumChatFormatting.RED + + (getIdealStatus() - getRepairStatus()) + + EnumChatFormatting.RESET + + " " + + StatCollector.translateToLocal("GT5U.multiblock.efficiency") + + ": " + + EnumChatFormatting.YELLOW + + mEfficiency / 100.0F + + EnumChatFormatting.RESET + + " %", + StatCollector.translateToLocal("GT5U.MS.multismelting") + ": " + + EnumChatFormatting.GREEN + + mLevel + + EnumChatFormatting.RESET + + " Discount: (EU/t) / " + + EnumChatFormatting.GREEN + + GT_Utility.formatNumbers(mCostDiscount) + + EnumChatFormatting.RESET, + StatCollector.translateToLocal("GT5U.multiblock.pollution") + ": " + + EnumChatFormatting.GREEN + + mPollutionReduction + + EnumChatFormatting.RESET + + " %" }; } @Override @@ -347,8 +323,8 @@ public class GT_MetaTileEntity_MultiFurnace extends IMetaTileEntity tMTE = aTileEntity.getMetaTileEntity(); if (tMTE == null) return false; return tMTE instanceof GT_MetaTileEntity_Hatch_Energy || tMTE instanceof GT_MetaTileEntity_Hatch_InputBus - || tMTE instanceof GT_MetaTileEntity_Hatch_OutputBus - || tMTE instanceof GT_MetaTileEntity_Hatch_Maintenance; + || tMTE instanceof GT_MetaTileEntity_Hatch_OutputBus + || tMTE instanceof GT_MetaTileEntity_Hatch_Maintenance; } @Override diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_NanoForge.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_NanoForge.java index c4d4c3548c..9d8912f0c5 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_NanoForge.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_NanoForge.java @@ -46,13 +46,14 @@ import gregtech.api.util.GT_Utility; import gregtech.common.blocks.GT_Block_Casings8; public class GT_MetaTileEntity_NanoForge extends - GT_MetaTileEntity_ExtendedPowerMultiBlockBase implements ISurvivalConstructable { + GT_MetaTileEntity_ExtendedPowerMultiBlockBase implements ISurvivalConstructable { private static final String STRUCTURE_PIECE_MAIN = "main"; private static final String STRUCTURE_PIECE_TIER2 = "tier2"; private static final String STRUCTURE_PIECE_TIER3 = "tier3"; - private static final IStructureDefinition STRUCTURE_DEFINITION = StructureDefinition.builder() - // spotless:off + private static final IStructureDefinition STRUCTURE_DEFINITION = StructureDefinition + .builder() + // spotless:off .addShape(STRUCTURE_PIECE_MAIN, transpose(new String[][] { {" "," "," F "," C "," C "," C "," C "," F "," "," "}, {" "," "," F "," C "," C "," C "," C "," F "," "," "}, @@ -140,39 +141,17 @@ public class GT_MetaTileEntity_NanoForge extends {" CCCCCC ", "CCCCCCCC", "CCCCCCCC", "CCCCCCCC", "CCCCCCCC", "CCCCCCCC", "CCCCCCCC", " CCCCCC "} })) //spotless:on - .addElement( - 'F', - ofFrame( - Materials.StellarAlloy)) - .addElement( - 'C', - ofBlock( - GregTech_API.sBlockCasings8, - 10)) - .addElement( - 'A', - ofBlock( - GregTech_API.sBlockCasings2, - 5)) - .addElement( - 'B', - buildHatchAdder( - GT_MetaTileEntity_NanoForge.class).atLeast( - InputHatch, - OutputBus, - InputBus, - Maintenance, - Energy.or( - ExoticEnergy)) - .dot( - 1) - .casingIndex( - ((GT_Block_Casings8) GregTech_API.sBlockCasings8).getTextureIndex( - 10)) - .buildAndChain( - GregTech_API.sBlockCasings8, - 10)) - .build(); + .addElement('F', ofFrame(Materials.StellarAlloy)) + .addElement('C', ofBlock(GregTech_API.sBlockCasings8, 10)) + .addElement('A', ofBlock(GregTech_API.sBlockCasings2, 5)) + .addElement( + 'B', + buildHatchAdder(GT_MetaTileEntity_NanoForge.class) + .atLeast(InputHatch, OutputBus, InputBus, Maintenance, Energy.or(ExoticEnergy)) + .dot(1) + .casingIndex(((GT_Block_Casings8) GregTech_API.sBlockCasings8).getTextureIndex(10)) + .buildAndChain(GregTech_API.sBlockCasings8, 10)) + .build(); private byte mSpecialTier = 0; public GT_MetaTileEntity_NanoForge(int aID, String aName, String aNameRegional) { @@ -206,33 +185,33 @@ public class GT_MetaTileEntity_NanoForge extends @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { if (aSide == aFacing) { if (aActive) return new ITexture[] { - BlockIcons.getCasingTextureForId(GT_Utility.getCasingTextureIndex(GregTech_API.sBlockCasings8, 10)), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_ASSEMBLY_LINE_ACTIVE) - .extFacing() - .build(), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_ASSEMBLY_LINE_ACTIVE_GLOW) - .extFacing() - .glow() - .build() }; + BlockIcons.getCasingTextureForId(GT_Utility.getCasingTextureIndex(GregTech_API.sBlockCasings8, 10)), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_ASSEMBLY_LINE_ACTIVE) + .extFacing() + .build(), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_ASSEMBLY_LINE_ACTIVE_GLOW) + .extFacing() + .glow() + .build() }; return new ITexture[] { - BlockIcons.getCasingTextureForId(GT_Utility.getCasingTextureIndex(GregTech_API.sBlockCasings8, 10)), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_ASSEMBLY_LINE) - .extFacing() - .build(), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_ASSEMBLY_LINE_GLOW) - .extFacing() - .glow() - .build() }; + BlockIcons.getCasingTextureForId(GT_Utility.getCasingTextureIndex(GregTech_API.sBlockCasings8, 10)), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_ASSEMBLY_LINE) + .extFacing() + .build(), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_ASSEMBLY_LINE_GLOW) + .extFacing() + .glow() + .build() }; } return new ITexture[] { - BlockIcons.getCasingTextureForId(GT_Utility.getCasingTextureIndex(GregTech_API.sBlockCasings8, 10)) }; + BlockIcons.getCasingTextureForId(GT_Utility.getCasingTextureIndex(GregTech_API.sBlockCasings8, 10)) }; } @Override @@ -271,15 +250,8 @@ public class GT_MetaTileEntity_NanoForge extends mOutputItems = null; mOutputFluids = null; long tTotalEU = getMaxInputEu(); - GT_Recipe tRecipe = map.findRecipe( - getBaseMetaTileEntity(), - null, - false, - false, - tTotalEU, - tFluidInputs, - null, - tItemInputs); + GT_Recipe tRecipe = map + .findRecipe(getBaseMetaTileEntity(), null, false, false, tTotalEU, tFluidInputs, null, tItemInputs); if (tRecipe == null) return false; @@ -291,11 +263,11 @@ public class GT_MetaTileEntity_NanoForge extends this.mMaxProgresstime = tRecipe.mDuration; this.lEUt = -tRecipe.mEUt; calculateOverclockedNessMultiInternal( - tRecipe.mEUt, - tRecipe.mDuration, - 1, - tTotalEU, - tRecipe.mSpecialValue < mSpecialTier); + tRecipe.mEUt, + tRecipe.mDuration, + 1, + tTotalEU, + tRecipe.mSpecialValue < mSpecialTier); if (this.lEUt == Long.MAX_VALUE - 1 || this.mMaxProgresstime == Integer.MAX_VALUE - 1) return false; @@ -330,19 +302,19 @@ public class GT_MetaTileEntity_NanoForge extends } if (aStack.isItemEqual(Materials.Neutronium.getNanite(1)) && checkPiece(STRUCTURE_PIECE_MAIN, 4, 37, 1) - && checkPiece(STRUCTURE_PIECE_TIER2, -7, 14, 4)) { + && checkPiece(STRUCTURE_PIECE_TIER2, -7, 14, 4)) { mSpecialTier = 2; } if (aStack.isItemEqual(Materials.TranscendentMetal.getNanite(1)) && checkPiece(STRUCTURE_PIECE_MAIN, 4, 37, 1) - && checkPiece(STRUCTURE_PIECE_TIER2, -7, 14, 4) - && checkPiece(STRUCTURE_PIECE_TIER3, 14, 26, 4)) { + && checkPiece(STRUCTURE_PIECE_TIER2, -7, 14, 4) + && checkPiece(STRUCTURE_PIECE_TIER3, 14, 26, 4)) { mSpecialTier = 3; } if (mMaintenanceHatches.size() != 1 || mInputBusses.isEmpty() - || mOutputBusses.isEmpty() - || mInputHatches.isEmpty()) { + || mOutputBusses.isEmpty() + || mInputHatches.isEmpty()) { return false; } @@ -406,111 +378,109 @@ public class GT_MetaTileEntity_NanoForge extends public IAlignmentLimits getAlignmentLimits() { // The nano forge should only be buildable upright return IAlignmentLimits.Builder.allowAll() - .deny(ForgeDirection.DOWN) - .deny(ForgeDirection.UP) - .deny(Rotation.UPSIDE_DOWN) - .deny(Rotation.CLOCKWISE) - .deny(Rotation.COUNTER_CLOCKWISE) - .build(); + .deny(ForgeDirection.DOWN) + .deny(ForgeDirection.UP) + .deny(Rotation.UPSIDE_DOWN) + .deny(Rotation.CLOCKWISE) + .deny(Rotation.COUNTER_CLOCKWISE) + .build(); } @Override protected void drawTexts(DynamicPositionedColumn screenElements, SlotWidget inventorySlot) { super.drawTexts(screenElements, inventorySlot); - screenElements.widget( - new TextWidget( - StatCollector.translateToLocal("GT5U.gui.button.tier") + " " + mSpecialTier).setDefaultColor( - COLOR_TEXT_WHITE.get()) - .setEnabled( - widget -> getBaseMetaTileEntity().getErrorDisplayID() - == 0)) - .widget( - new FakeSyncWidget.IntegerSyncer( - () -> (int) mSpecialTier, - val -> mSpecialTier = (byte) (val % Byte.MAX_VALUE))); + screenElements + .widget( + new TextWidget(StatCollector.translateToLocal("GT5U.gui.button.tier") + " " + mSpecialTier) + .setDefaultColor(COLOR_TEXT_WHITE.get()) + .setEnabled(widget -> getBaseMetaTileEntity().getErrorDisplayID() == 0)) + .widget( + new FakeSyncWidget.IntegerSyncer( + () -> (int) mSpecialTier, + val -> mSpecialTier = (byte) (val % Byte.MAX_VALUE))); } @Override protected GT_Multiblock_Tooltip_Builder createTooltip() { GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder(); tt.addMachineType("Nanite Fabricator") - .addInfo("Controller block for the Nano Forge") - .addInfo("Requires insane amounts of power to create nanites. Each tier") - .addInfo("the multi gains a new building next to it. The nanite in the") - .addInfo("controller slot controls the tier.") - .addInfo("--------------------------------------------") - .addInfo("Requires a Carbon Nanite to use tier " + EnumChatFormatting.DARK_PURPLE + 1) - .addInfo("Requires a Neutronium Nanite to use tier " + EnumChatFormatting.DARK_PURPLE + 2) - .addInfo("Requires a Transcendent Metal Nanite to use tier " + EnumChatFormatting.DARK_PURPLE + 3) - .addInfo("--------------------------------------------") - .addInfo("If a recipe's tier is lower than the tier of the Nano Forge") - .addInfo("it gains " + EnumChatFormatting.RED + "perfect overclock" + EnumChatFormatting.GRAY + ".") - .addInfo(AuthorBlueWeabo) - .addSeparator() - .beginStructureBlock(30, 38, 13, false) - .addStructureInfo("Nano Forge Structure is too complex! See schematic for details.") - .addStructureInfo("--------------------------------------------") - .addStructureInfo("Tier " + EnumChatFormatting.DARK_PURPLE + 1 + EnumChatFormatting.GRAY) - .addStructureInfo( - EnumChatFormatting.GOLD + "527" + EnumChatFormatting.GRAY + " Radiant Naquadah Alloy Casing") - .addStructureInfo(EnumChatFormatting.GOLD + "171" + EnumChatFormatting.GRAY + " Stellar Alloy Frame Box") - .addStructureInfo("--------------------------------------------") - .addStructureInfo("Tier " + EnumChatFormatting.DARK_PURPLE + 2 + EnumChatFormatting.GRAY) - .addStructureInfo( - EnumChatFormatting.GOLD + "148" + EnumChatFormatting.GRAY + " Radiant Naquadah Alloy Casing") - .addStructureInfo(EnumChatFormatting.GOLD + "16" + EnumChatFormatting.GRAY + " Assembling Line Casing") - .addStructureInfo("--------------------------------------------") - .addStructureInfo("Tier " + EnumChatFormatting.DARK_PURPLE + 3 + EnumChatFormatting.GRAY) - .addStructureInfo( - EnumChatFormatting.GOLD + "228" + EnumChatFormatting.GRAY + " Radiant Naquadah Alloy Casing") - .addStructureInfo(EnumChatFormatting.GOLD + "84" + EnumChatFormatting.GRAY + " Stellar Alloy Frame Box") - .addStructureInfo(EnumChatFormatting.GOLD + "16" + EnumChatFormatting.GRAY + " Assembling Line Casing") - .addStructureInfo("--------------------------------------------") - .addStructureInfo( - "Requires " + EnumChatFormatting.GOLD - + "1" - + EnumChatFormatting.GRAY - + "-" - + EnumChatFormatting.GOLD - + "2" - + EnumChatFormatting.GRAY - + " energy hatches or " - + EnumChatFormatting.GOLD - + "1" - + EnumChatFormatting.GRAY - + " TT energy hatch.") - .addStructureInfo( - "Requires " + EnumChatFormatting.GOLD + "1" + EnumChatFormatting.GRAY + " maintenance hatch.") - .addStructureInfo( - "Requires " + EnumChatFormatting.GOLD - + 1 - + EnumChatFormatting.GRAY - + "+" - + EnumChatFormatting.GRAY - + " input hatches.") - .addStructureInfo( - "Requires " + EnumChatFormatting.GOLD - + 0 - + EnumChatFormatting.GRAY - + "+" - + EnumChatFormatting.GRAY - + " output hatches.") - .addStructureInfo( - "Requires " + EnumChatFormatting.GOLD - + 1 - + EnumChatFormatting.GRAY - + "+" - + EnumChatFormatting.GRAY - + " input busses.") - .addStructureInfo( - "Requires " + EnumChatFormatting.GOLD - + 1 - + EnumChatFormatting.GRAY - + "+" - + EnumChatFormatting.GRAY - + " output busses.") - .addStructureInfo("--------------------------------------------") - .toolTipFinisher("GregTech"); + .addInfo("Controller block for the Nano Forge") + .addInfo("Requires insane amounts of power to create nanites. Each tier") + .addInfo("the multi gains a new building next to it. The nanite in the") + .addInfo("controller slot controls the tier.") + .addInfo("--------------------------------------------") + .addInfo("Requires a Carbon Nanite to use tier " + EnumChatFormatting.DARK_PURPLE + 1) + .addInfo("Requires a Neutronium Nanite to use tier " + EnumChatFormatting.DARK_PURPLE + 2) + .addInfo("Requires a Transcendent Metal Nanite to use tier " + EnumChatFormatting.DARK_PURPLE + 3) + .addInfo("--------------------------------------------") + .addInfo("If a recipe's tier is lower than the tier of the Nano Forge") + .addInfo("it gains " + EnumChatFormatting.RED + "perfect overclock" + EnumChatFormatting.GRAY + ".") + .addInfo(AuthorBlueWeabo) + .addSeparator() + .beginStructureBlock(30, 38, 13, false) + .addStructureInfo("Nano Forge Structure is too complex! See schematic for details.") + .addStructureInfo("--------------------------------------------") + .addStructureInfo("Tier " + EnumChatFormatting.DARK_PURPLE + 1 + EnumChatFormatting.GRAY) + .addStructureInfo( + EnumChatFormatting.GOLD + "527" + EnumChatFormatting.GRAY + " Radiant Naquadah Alloy Casing") + .addStructureInfo(EnumChatFormatting.GOLD + "171" + EnumChatFormatting.GRAY + " Stellar Alloy Frame Box") + .addStructureInfo("--------------------------------------------") + .addStructureInfo("Tier " + EnumChatFormatting.DARK_PURPLE + 2 + EnumChatFormatting.GRAY) + .addStructureInfo( + EnumChatFormatting.GOLD + "148" + EnumChatFormatting.GRAY + " Radiant Naquadah Alloy Casing") + .addStructureInfo(EnumChatFormatting.GOLD + "16" + EnumChatFormatting.GRAY + " Assembling Line Casing") + .addStructureInfo("--------------------------------------------") + .addStructureInfo("Tier " + EnumChatFormatting.DARK_PURPLE + 3 + EnumChatFormatting.GRAY) + .addStructureInfo( + EnumChatFormatting.GOLD + "228" + EnumChatFormatting.GRAY + " Radiant Naquadah Alloy Casing") + .addStructureInfo(EnumChatFormatting.GOLD + "84" + EnumChatFormatting.GRAY + " Stellar Alloy Frame Box") + .addStructureInfo(EnumChatFormatting.GOLD + "16" + EnumChatFormatting.GRAY + " Assembling Line Casing") + .addStructureInfo("--------------------------------------------") + .addStructureInfo( + "Requires " + EnumChatFormatting.GOLD + + "1" + + EnumChatFormatting.GRAY + + "-" + + EnumChatFormatting.GOLD + + "2" + + EnumChatFormatting.GRAY + + " energy hatches or " + + EnumChatFormatting.GOLD + + "1" + + EnumChatFormatting.GRAY + + " TT energy hatch.") + .addStructureInfo( + "Requires " + EnumChatFormatting.GOLD + "1" + EnumChatFormatting.GRAY + " maintenance hatch.") + .addStructureInfo( + "Requires " + EnumChatFormatting.GOLD + + 1 + + EnumChatFormatting.GRAY + + "+" + + EnumChatFormatting.GRAY + + " input hatches.") + .addStructureInfo( + "Requires " + EnumChatFormatting.GOLD + + 0 + + EnumChatFormatting.GRAY + + "+" + + EnumChatFormatting.GRAY + + " output hatches.") + .addStructureInfo( + "Requires " + EnumChatFormatting.GOLD + + 1 + + EnumChatFormatting.GRAY + + "+" + + EnumChatFormatting.GRAY + + " input busses.") + .addStructureInfo( + "Requires " + EnumChatFormatting.GOLD + + 1 + + EnumChatFormatting.GRAY + + "+" + + EnumChatFormatting.GRAY + + " output busses.") + .addStructureInfo("--------------------------------------------") + .toolTipFinisher("GregTech"); return tt; } @@ -518,8 +488,8 @@ public class GT_MetaTileEntity_NanoForge extends public final void onScrewdriverRightClick(byte aSide, EntityPlayer aPlayer, float aX, float aY, float aZ) { inputSeparation = !inputSeparation; GT_Utility.sendChatToPlayer( - aPlayer, - StatCollector.translateToLocal("GT5U.machines.separatebus") + " " + inputSeparation); + aPlayer, + StatCollector.translateToLocal("GT5U.machines.separatebus") + " " + inputSeparation); } @Override diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_OilCracker.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_OilCracker.java index 1f2feb3657..233e754548 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_OilCracker.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_OilCracker.java @@ -38,86 +38,59 @@ import gregtech.api.util.GT_Recipe; import gregtech.api.util.GT_Utility; public class GT_MetaTileEntity_OilCracker extends GT_MetaTileEntity_EnhancedMultiBlockBase - implements ISurvivalConstructable { + implements ISurvivalConstructable { private static final byte CASING_INDEX = 49; private static final String STRUCTURE_PIECE_MAIN = "main"; - private static final IStructureDefinition STRUCTURE_DEFINITION = StructureDefinition.builder() - .addShape( - STRUCTURE_PIECE_MAIN, - transpose( - new String[][] { - { "lcmcr", - "lcmcr", - "lcmcr" }, - { "lc~cr", - "l---r", - "lcmcr" }, - { "lcmcr", - "lcmcr", - "lcmcr" }, })) - .addElement( - 'c', - ofCoil( - GT_MetaTileEntity_OilCracker::setCoilLevel, - GT_MetaTileEntity_OilCracker::getCoilLevel)) - .addElement( - 'l', - buildHatchAdder( - GT_MetaTileEntity_OilCracker.class).atLeast( - GT_HatchElement.InputHatch.withAdder( - GT_MetaTileEntity_OilCracker::addLeftHatchToMachineList), - GT_HatchElement.Energy, - GT_HatchElement.Maintenance) - .dot( - 2) - .casingIndex( - CASING_INDEX) - .buildAndChain( - onElementPass( - GT_MetaTileEntity_OilCracker::onCasingAdded, - ofBlock( - GregTech_API.sBlockCasings4, - 1)))) - .addElement( - 'r', - buildHatchAdder( - GT_MetaTileEntity_OilCracker.class).atLeast( - GT_HatchElement.OutputHatch.withAdder( - GT_MetaTileEntity_OilCracker::addRightHatchToMachineList), - GT_HatchElement.Energy, - GT_HatchElement.Maintenance) - .dot( - 3) - .casingIndex( - CASING_INDEX) - .buildAndChain( - onElementPass( - GT_MetaTileEntity_OilCracker::onCasingAdded, - ofBlock( - GregTech_API.sBlockCasings4, - 1)))) - .addElement( - 'm', - buildHatchAdder( - GT_MetaTileEntity_OilCracker.class).atLeast( - GT_HatchElement.InputHatch.withAdder( - GT_MetaTileEntity_OilCracker::addMiddleInputToMachineList) - .withCount( - t -> t.mMiddleInputHatches.size()), - GT_HatchElement.Energy, - GT_HatchElement.Maintenance) - .dot( - 1) - .casingIndex( - CASING_INDEX) - .buildAndChain( - onElementPass( - GT_MetaTileEntity_OilCracker::onCasingAdded, - ofBlock( - GregTech_API.sBlockCasings4, - 1)))) - .build(); + private static final IStructureDefinition STRUCTURE_DEFINITION = StructureDefinition + .builder() + .addShape( + STRUCTURE_PIECE_MAIN, + transpose( + new String[][] { { "lcmcr", "lcmcr", "lcmcr" }, { "lc~cr", "l---r", "lcmcr" }, + { "lcmcr", "lcmcr", "lcmcr" }, })) + .addElement('c', ofCoil(GT_MetaTileEntity_OilCracker::setCoilLevel, GT_MetaTileEntity_OilCracker::getCoilLevel)) + .addElement( + 'l', + buildHatchAdder(GT_MetaTileEntity_OilCracker.class) + .atLeast( + GT_HatchElement.InputHatch.withAdder(GT_MetaTileEntity_OilCracker::addLeftHatchToMachineList), + GT_HatchElement.Energy, + GT_HatchElement.Maintenance) + .dot(2) + .casingIndex(CASING_INDEX) + .buildAndChain( + onElementPass( + GT_MetaTileEntity_OilCracker::onCasingAdded, + ofBlock(GregTech_API.sBlockCasings4, 1)))) + .addElement( + 'r', + buildHatchAdder(GT_MetaTileEntity_OilCracker.class) + .atLeast( + GT_HatchElement.OutputHatch.withAdder(GT_MetaTileEntity_OilCracker::addRightHatchToMachineList), + GT_HatchElement.Energy, + GT_HatchElement.Maintenance) + .dot(3) + .casingIndex(CASING_INDEX) + .buildAndChain( + onElementPass( + GT_MetaTileEntity_OilCracker::onCasingAdded, + ofBlock(GregTech_API.sBlockCasings4, 1)))) + .addElement( + 'm', + buildHatchAdder(GT_MetaTileEntity_OilCracker.class) + .atLeast( + GT_HatchElement.InputHatch.withAdder(GT_MetaTileEntity_OilCracker::addMiddleInputToMachineList) + .withCount(t -> t.mMiddleInputHatches.size()), + GT_HatchElement.Energy, + GT_HatchElement.Maintenance) + .dot(1) + .casingIndex(CASING_INDEX) + .buildAndChain( + onElementPass( + GT_MetaTileEntity_OilCracker::onCasingAdded, + ofBlock(GregTech_API.sBlockCasings4, 1)))) + .build(); private HeatingCoilLevel heatLevel; protected final List mMiddleInputHatches = new ArrayList<>(); // 0 -> left, 1 -> right, any other -> not found @@ -137,55 +110,53 @@ public class GT_MetaTileEntity_OilCracker extends GT_MetaTileEntity_EnhancedMult protected GT_Multiblock_Tooltip_Builder createTooltip() { final GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder(); tt.addMachineType("Cracker") - .addInfo("Controller block for the Oil Cracking Unit") - .addInfo("Thermally cracks heavy hydrocarbons into lighter fractions") - .addInfo("More efficient than the Chemical Reactor") - .addInfo("Gives different benefits whether it hydro or steam-cracks:") - .addInfo("Hydro - Consumes 20% less Hydrogen and outputs 25% more cracked fluid") - .addInfo("Steam - Outputs 50% more cracked fluid") - .addInfo("(Values compared to cracking in the Chemical Reactor)") - .addInfo("Place the appropriate circuit in the controller") - .addSeparator() - .beginStructureBlock(5, 3, 3, true) - .addController("Front center") - .addCasingInfoRange("Clean Stainless Steel Machine Casing", 18, 21, false) - .addOtherStructurePart("2 Rings of 8 Coils", "Each side of the controller") - .addInfo("Gets 10% EU/t reduction per coil tier, up to a maximum of 50%") - .addEnergyHatch("Any casing", 1, 2, 3) - .addMaintenanceHatch("Any casing", 1, 2, 3) - .addInputHatch("Steam/Hydrogen ONLY, Any middle ring casing", 1) - .addInputHatch("Any left/right side casing", 2, 3) - .addOutputHatch("Any right/left side casing", 2, 3) - .addStructureInfo("Input/Output Hatches must be on opposite sides!") - .addStructureHint("GT5U.cracker.io_side") - .toolTipFinisher("Gregtech"); + .addInfo("Controller block for the Oil Cracking Unit") + .addInfo("Thermally cracks heavy hydrocarbons into lighter fractions") + .addInfo("More efficient than the Chemical Reactor") + .addInfo("Gives different benefits whether it hydro or steam-cracks:") + .addInfo("Hydro - Consumes 20% less Hydrogen and outputs 25% more cracked fluid") + .addInfo("Steam - Outputs 50% more cracked fluid") + .addInfo("(Values compared to cracking in the Chemical Reactor)") + .addInfo("Place the appropriate circuit in the controller") + .addSeparator() + .beginStructureBlock(5, 3, 3, true) + .addController("Front center") + .addCasingInfoRange("Clean Stainless Steel Machine Casing", 18, 21, false) + .addOtherStructurePart("2 Rings of 8 Coils", "Each side of the controller") + .addInfo("Gets 10% EU/t reduction per coil tier, up to a maximum of 50%") + .addEnergyHatch("Any casing", 1, 2, 3) + .addMaintenanceHatch("Any casing", 1, 2, 3) + .addInputHatch("Steam/Hydrogen ONLY, Any middle ring casing", 1) + .addInputHatch("Any left/right side casing", 2, 3) + .addOutputHatch("Any right/left side casing", 2, 3) + .addStructureInfo("Input/Output Hatches must be on opposite sides!") + .addStructureHint("GT5U.cracker.io_side") + .toolTipFinisher("Gregtech"); return tt; } @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { if (aSide == aFacing) { if (aActive) return new ITexture[] { casingTexturePages[0][CASING_INDEX], TextureFactory.builder() - .addIcon( - OVERLAY_FRONT_OIL_CRACKER_ACTIVE) - .extFacing() - .build(), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_OIL_CRACKER_ACTIVE_GLOW) - .extFacing() - .glow() - .build() }; + .addIcon(OVERLAY_FRONT_OIL_CRACKER_ACTIVE) + .extFacing() + .build(), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_OIL_CRACKER_ACTIVE_GLOW) + .extFacing() + .glow() + .build() }; return new ITexture[] { casingTexturePages[0][CASING_INDEX], TextureFactory.builder() - .addIcon( - OVERLAY_FRONT_OIL_CRACKER) - .extFacing() - .build(), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_OIL_CRACKER_GLOW) - .extFacing() - .glow() - .build() }; + .addIcon(OVERLAY_FRONT_OIL_CRACKER) + .extFacing() + .build(), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_OIL_CRACKER_GLOW) + .extFacing() + .glow() + .build() }; } return new ITexture[] { casingTexturePages[0][CASING_INDEX] }; } @@ -203,11 +174,11 @@ public class GT_MetaTileEntity_OilCracker extends GT_MetaTileEntity_EnhancedMult byte tTier = (byte) Math.max(1, GT_Utility.getTier(tVoltage)); GT_Recipe tRecipe = getRecipeMap().findRecipe( - getBaseMetaTileEntity(), - false, - gregtech.api.enums.GT_Values.V[tTier], - tFluidInputs, - mInventory[1]); + getBaseMetaTileEntity(), + false, + gregtech.api.enums.GT_Values.V[tTier], + tFluidInputs, + mInventory[1]); if (tRecipe == null) return false; @@ -319,10 +290,10 @@ public class GT_MetaTileEntity_OilCracker extends GT_MetaTileEntity_EnhancedMult mOutputOnSide = -1; replaceDeprecatedCoils(aBaseMetaTileEntity); return checkPiece(STRUCTURE_PIECE_MAIN, 2, 1, 0) && mInputOnSide != -1 - && mOutputOnSide != -1 - && mCasingAmount >= 18 - && mMaintenanceHatches.size() == 1 - && !mMiddleInputHatches.isEmpty(); + && mOutputOnSide != -1 + && mCasingAmount >= 18 + && mMaintenanceHatches.size() == 1 + && !mMiddleInputHatches.isEmpty(); } @Override @@ -366,7 +337,7 @@ public class GT_MetaTileEntity_OilCracker extends GT_MetaTileEntity_EnhancedMult if (aBaseMetaTileEntity.getBlock(xPos, yPos, zPos) != GregTech_API.sBlockCasings1) continue; aBaseMetaTileEntity.getWorld() - .setBlock(xPos, yPos, zPos, GregTech_API.sBlockCasings5, tUsedMeta - 12, 3); + .setBlock(xPos, yPos, zPos, GregTech_API.sBlockCasings5, tUsedMeta - 12, 3); } } diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_OilDrillBase.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_OilDrillBase.java index 310703cd3f..c945e8c861 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_OilDrillBase.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_OilDrillBase.java @@ -55,28 +55,26 @@ public abstract class GT_MetaTileEntity_OilDrillBase extends GT_MetaTileEntity_D @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { if (aSide == aFacing) { if (aActive) return new ITexture[] { getCasingTextureForId(casingTextureIndex), TextureFactory.builder() - .addIcon( - OVERLAY_FRONT_OIL_DRILL_ACTIVE) - .extFacing() - .build(), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_OIL_DRILL_ACTIVE_GLOW) - .extFacing() - .glow() - .build() }; + .addIcon(OVERLAY_FRONT_OIL_DRILL_ACTIVE) + .extFacing() + .build(), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_OIL_DRILL_ACTIVE_GLOW) + .extFacing() + .glow() + .build() }; return new ITexture[] { getCasingTextureForId(casingTextureIndex), TextureFactory.builder() - .addIcon( - OVERLAY_FRONT_OIL_DRILL) - .extFacing() - .build(), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_OIL_DRILL_GLOW) - .extFacing() - .glow() - .build() }; + .addIcon(OVERLAY_FRONT_OIL_DRILL) + .extFacing() + .build(), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_OIL_DRILL_GLOW) + .extFacing() + .glow() + .build() }; } return new ITexture[] { getCasingTextureForId(casingTextureIndex) }; } @@ -97,27 +95,27 @@ public abstract class GT_MetaTileEntity_OilDrillBase extends GT_MetaTileEntity_D protected GT_Multiblock_Tooltip_Builder createTooltip(String tierSuffix) { String casings = getCasingBlockItem().get(0) - .getDisplayName(); + .getDisplayName(); final GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder(); tt.addMachineType("Pump") - .addInfo("Controller Block for the Oil/Gas/Fluid Drilling Rig " + (tierSuffix != null ? tierSuffix : "")) - .addInfo("Works on " + getRangeInChunks() + "x" + getRangeInChunks() + " chunks") - .addInfo("Use a Screwdriver to configure range") - .addInfo("Use Programmed Circuits to ignore near exhausted oil field") - .addInfo("If total circuit # is greater than output amount it will halt. If it worked right.") // doesn't - // work - .addSeparator() - .beginStructureBlock(3, 7, 3, false) - .addController("Front bottom") - .addOtherStructurePart(casings, "form the 3x1x3 Base") - .addOtherStructurePart(casings, "1x3x1 pillar above the center of the base (2 minimum total)") - .addOtherStructurePart(getFrameMaterial().mName + " Frame Boxes", "Each pillar's side and 1x3x1 on top") - .addEnergyHatch(VN[getMinTier()] + "+, Any base casing", 1) - .addMaintenanceHatch("Any base casing", 1) - .addInputBus("Mining Pipes or Circuits, optional, any base casing", 1) - .addOutputHatch("Any base casing", 1) - .toolTipFinisher("Gregtech"); + .addInfo("Controller Block for the Oil/Gas/Fluid Drilling Rig " + (tierSuffix != null ? tierSuffix : "")) + .addInfo("Works on " + getRangeInChunks() + "x" + getRangeInChunks() + " chunks") + .addInfo("Use a Screwdriver to configure range") + .addInfo("Use Programmed Circuits to ignore near exhausted oil field") + .addInfo("If total circuit # is greater than output amount it will halt. If it worked right.") // doesn't + // work + .addSeparator() + .beginStructureBlock(3, 7, 3, false) + .addController("Front bottom") + .addOtherStructurePart(casings, "form the 3x1x3 Base") + .addOtherStructurePart(casings, "1x3x1 pillar above the center of the base (2 minimum total)") + .addOtherStructurePart(getFrameMaterial().mName + " Frame Boxes", "Each pillar's side and 1x3x1 on top") + .addEnergyHatch(VN[getMinTier()] + "+, Any base casing", 1) + .addMaintenanceHatch("Any base casing", 1) + .addInputBus("Mining Pipes or Circuits, optional, any base casing", 1) + .addOutputHatch("Any base casing", 1) + .toolTipFinisher("Gregtech"); return tt; } @@ -140,12 +138,12 @@ public abstract class GT_MetaTileEntity_OilDrillBase extends GT_MetaTileEntity_D } if (oldChunkRange != chunkRangeConfig) mOilFieldChunks.clear(); GT_Utility.sendChatToPlayer( - aPlayer, - StatCollector.translateToLocal("GT5U.machines.workareaset") + " " - + chunkRangeConfig - + "x" - + chunkRangeConfig - + StatCollector.translateToLocal("GT5U.machines.chunks")); // TODO Add translation support + aPlayer, + StatCollector.translateToLocal("GT5U.machines.workareaset") + " " + + chunkRangeConfig + + "x" + + chunkRangeConfig + + StatCollector.translateToLocal("GT5U.machines.chunks")); // TODO Add translation support } @Override @@ -165,9 +163,9 @@ public abstract class GT_MetaTileEntity_OilDrillBase extends GT_MetaTileEntity_D int tier = Math.max(0, GT_Utility.getTier(getMaxInputVoltage())); this.mEUt = -7 << (tier << 1); // (1/4) A of current tier when at bottom (7/8) A of current tier while mining this.mMaxProgresstime = Math.max( - 1, - (workState == STATE_AT_BOTTOM ? (64 * (chunkRangeConfig * chunkRangeConfig)) >> (getMinTier() - 1) - : 120) >> tier); + 1, + (workState == STATE_AT_BOTTOM ? (64 * (chunkRangeConfig * chunkRangeConfig)) >> (getMinTier() - 1) : 120) + >> tier); } protected float computeSpeed() { @@ -176,7 +174,7 @@ public abstract class GT_MetaTileEntity_OilDrillBase extends GT_MetaTileEntity_D @Override protected boolean workingAtBottom(ItemStack aStack, int xDrill, int yDrill, int zDrill, int xPipe, int zPipe, - int yHead, int oldYHead) { + int yHead, int oldYHead) { switch (tryLowerPipeState(true)) { case 0 -> { workState = STATE_DOWNWARD; @@ -222,9 +220,7 @@ public abstract class GT_MetaTileEntity_OilDrillBase extends GT_MetaTileEntity_D if (mOilFieldChunks.isEmpty()) { Chunk tChunk = getBaseMetaTileEntity().getWorld() - .getChunkFromBlockCoords( - getBaseMetaTileEntity().getXCoord(), - getBaseMetaTileEntity().getZCoord()); + .getChunkFromBlockCoords(getBaseMetaTileEntity().getXCoord(), getBaseMetaTileEntity().getZCoord()); int range = chunkRangeConfig; int xChunk = Math.floorDiv(tChunk.xPosition, range) * range; // Java was written by idiots. For negative // values, / returns rounded towards zero. @@ -232,13 +228,13 @@ public abstract class GT_MetaTileEntity_OilDrillBase extends GT_MetaTileEntity_D int zChunk = Math.floorDiv(tChunk.zPosition, range) * range; if (debugDriller) { GT_Log.out.println( - "tChunk.xPosition = " + tChunk.xPosition - + " tChunk.zPosition = " - + tChunk.zPosition - + " xChunk = " - + xChunk - + " zChunk = " - + zChunk); + "tChunk.xPosition = " + tChunk.xPosition + + " tChunk.zPosition = " + + tChunk.zPosition + + " xChunk = " + + xChunk + + " zChunk = " + + zChunk); } for (int i = 0; i < range; i++) { for (int j = 0; j < range; j++) { @@ -246,12 +242,12 @@ public abstract class GT_MetaTileEntity_OilDrillBase extends GT_MetaTileEntity_D GT_Log.out.println(" getChunkX = " + (xChunk + i) + " getChunkZ = " + (zChunk + j)); } tChunk = getBaseMetaTileEntity().getWorld() - .getChunkFromChunkCoords(xChunk + i, zChunk + j); + .getChunkFromChunkCoords(xChunk + i, zChunk + j); tFluid = undergroundOilReadInformation(tChunk); if (debugDriller) { GT_Log.out.println( - " Fluid in chunk = " + tFluid.getFluid() - .getID()); + " Fluid in chunk = " + tFluid.getFluid() + .getID()); } if (tOil.isFluidEqual(tFluid) && tFluid.amount > 0) { mOilFieldChunks.add(tChunk); @@ -282,9 +278,9 @@ public abstract class GT_MetaTileEntity_OilDrillBase extends GT_MetaTileEntity_D tFluid = undergroundOil(tChunk, speed); if (debugDriller) { GT_Log.out.println( - " chunkX = " + tChunk.getChunkCoordIntPair().chunkXPos - + " chunkZ = " - + tChunk.getChunkCoordIntPair().chunkZPos); + " chunkX = " + tChunk.getChunkCoordIntPair().chunkXPos + + " chunkZ = " + + tChunk.getChunkCoordIntPair().chunkZPos); if (tFluid != null) { GT_Log.out.println(" Fluid pumped = " + tFluid.amount); } else { @@ -309,27 +305,25 @@ public abstract class GT_MetaTileEntity_OilDrillBase extends GT_MetaTileEntity_D @Override public String[] getInfoData() { List l = new ArrayList<>( - Arrays.asList( - EnumChatFormatting.BLUE + StatCollector.translateToLocal("GT5U.machines.oilfluidpump") - + EnumChatFormatting.RESET, - StatCollector.translateToLocal("GT5U.machines.workarea") + ": " - + EnumChatFormatting.GREEN - + (chunkRangeConfig) - + " x " - + (chunkRangeConfig) - + EnumChatFormatting.RESET - + " " - + StatCollector.translateToLocal("GT5U.machines.chunks"), - "Drilling fluid: " + EnumChatFormatting.GREEN - + (mOilId > 0 ? FluidRegistry.getFluid(mOilId) - .getName() - : "None") - + EnumChatFormatting.RESET, - "Drilling flow: " + EnumChatFormatting.GREEN - + GT_Utility.formatNumbers( - this.mMaxProgresstime > 0 ? (mOilFlow / this.mMaxProgresstime) : 0) - + EnumChatFormatting.RESET - + " L/t")); + Arrays.asList( + EnumChatFormatting.BLUE + StatCollector.translateToLocal("GT5U.machines.oilfluidpump") + + EnumChatFormatting.RESET, + StatCollector.translateToLocal("GT5U.machines.workarea") + ": " + + EnumChatFormatting.GREEN + + (chunkRangeConfig) + + " x " + + (chunkRangeConfig) + + EnumChatFormatting.RESET + + " " + + StatCollector.translateToLocal("GT5U.machines.chunks"), + "Drilling fluid: " + EnumChatFormatting.GREEN + + (mOilId > 0 ? FluidRegistry.getFluid(mOilId) + .getName() : "None") + + EnumChatFormatting.RESET, + "Drilling flow: " + EnumChatFormatting.GREEN + + GT_Utility.formatNumbers(this.mMaxProgresstime > 0 ? (mOilFlow / this.mMaxProgresstime) : 0) + + EnumChatFormatting.RESET + + " L/t")); l.addAll(Arrays.asList(super.getInfoData())); return l.toArray(new String[0]); } diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_OilDrillInfinite.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_OilDrillInfinite.java index b92fcfae7f..2c86218bfb 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_OilDrillInfinite.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_OilDrillInfinite.java @@ -24,23 +24,23 @@ public class GT_MetaTileEntity_OilDrillInfinite extends GT_MetaTileEntity_OilDri @Override protected GT_Multiblock_Tooltip_Builder createTooltip() { String casings = getCasingBlockItem().get(0) - .getDisplayName(); + .getDisplayName(); final GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder(); tt.addMachineType("Pump") - .addInfo("Controller Block for the Infinite Oil/Gas/Fluid Drilling Rig ") - .addInfo("Works on " + getRangeInChunks() + "x" + getRangeInChunks() + " chunks") - .addSeparator() - .beginStructureBlock(3, 7, 3, false) - .addController("Front bottom") - .addOtherStructurePart(casings, "form the 3x1x3 Base") - .addOtherStructurePart(casings, "1x3x1 pillar above the center of the base (2 minimum total)") - .addOtherStructurePart(getFrameMaterial().mName + " Frame Boxes", "Each pillar's side and 1x3x1 on top") - .addEnergyHatch(VN[getMinTier()] + "+, Any base casing", 1) - .addMaintenanceHatch("Any base casing", 1) - .addInputBus("Mining Pipes or Circuits, optional, any base casing", 1) - .addOutputHatch("Any base casing", 1) - .toolTipFinisher("Gregtech"); + .addInfo("Controller Block for the Infinite Oil/Gas/Fluid Drilling Rig ") + .addInfo("Works on " + getRangeInChunks() + "x" + getRangeInChunks() + " chunks") + .addSeparator() + .beginStructureBlock(3, 7, 3, false) + .addController("Front bottom") + .addOtherStructurePart(casings, "form the 3x1x3 Base") + .addOtherStructurePart(casings, "1x3x1 pillar above the center of the base (2 minimum total)") + .addOtherStructurePart(getFrameMaterial().mName + " Frame Boxes", "Each pillar's side and 1x3x1 on top") + .addEnergyHatch(VN[getMinTier()] + "+, Any base casing", 1) + .addMaintenanceHatch("Any base casing", 1) + .addInputBus("Mining Pipes or Circuits, optional, any base casing", 1) + .addOutputHatch("Any base casing", 1) + .toolTipFinisher("Gregtech"); return tt; } diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_OreDrillingPlantBase.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_OreDrillingPlantBase.java index ba6a2604a5..de6b5c5144 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_OreDrillingPlantBase.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_OreDrillingPlantBase.java @@ -86,16 +86,16 @@ public abstract class GT_MetaTileEntity_OreDrillingPlantBase extends GT_MetaTile if (chunkRadiusConfig > getRadiusInChunks()) chunkRadiusConfig = 1; } GT_Utility.sendChatToPlayer( - aPlayer, - StatCollector.translateToLocal("GT5U.machines.workareaset") + " " - + (chunkRadiusConfig << 4) - + " " - + StatCollector.translateToLocal("GT5U.machines.radius")); + aPlayer, + StatCollector.translateToLocal("GT5U.machines.workareaset") + " " + + (chunkRadiusConfig << 4) + + " " + + StatCollector.translateToLocal("GT5U.machines.radius")); } @Override public boolean onWireCutterRightClick(byte aSide, byte aWrenchingSide, EntityPlayer aPlayer, float aX, float aY, - float aZ) { + float aZ) { replaceWithCobblestone = !replaceWithCobblestone; GT_Utility.sendChatToPlayer(aPlayer, "Replace with cobblestone " + replaceWithCobblestone); return true; @@ -103,7 +103,7 @@ public abstract class GT_MetaTileEntity_OreDrillingPlantBase extends GT_MetaTile @Override protected boolean workingDownward(ItemStack aStack, int xDrill, int yDrill, int zDrill, int xPipe, int zPipe, - int yHead, int oldYHead) { + int yHead, int oldYHead) { if (yHead != oldYHead) oreBlockPositions.clear(); if (mWorkChunkNeedsReload && mChunkLoadingEnabled) { // ask to load machine itself @@ -146,7 +146,7 @@ public abstract class GT_MetaTileEntity_OreDrillingPlantBase extends GT_MetaTile if (GT_Utility.eraseBlockByFakePlayer(getFakePlayer(getBaseMetaTileEntity()), x, y, z, true)) oreBlock = getBaseMetaTileEntity().getBlock(x, y, z); oreBlockMetadata = getBaseMetaTileEntity().getWorld() - .getBlockMetadata(x, y, z); + .getBlockMetadata(x, y, z); } if (!tryConsumeDrillingFluid()) { @@ -164,19 +164,10 @@ public abstract class GT_MetaTileEntity_OreDrillingPlantBase extends GT_MetaTile ItemStack cobble = GT_Utility.getCobbleForOre(oreBlock, metaData); if (replaceWithCobblestone) { getBaseMetaTileEntity().getWorld() - .setBlock( - x, - y, - z, - Block.getBlockFromItem(cobble.getItem()), - cobble.getItemDamage(), - 3); + .setBlock(x, y, z, Block.getBlockFromItem(cobble.getItem()), cobble.getItemDamage(), 3); } else { getBaseMetaTileEntity().getWorld() - .setBlockToAir( - oreBlockPos.chunkPosX, - oreBlockPos.chunkPosY, - oreBlockPos.chunkPosZ); + .setBlockToAir(oreBlockPos.chunkPosX, oreBlockPos.chunkPosY, oreBlockPos.chunkPosZ); } mOutputItems = getOutputByDrops(oreBlockDrops); } @@ -185,7 +176,7 @@ public abstract class GT_MetaTileEntity_OreDrillingPlantBase extends GT_MetaTile @Override protected boolean workingAtBottom(ItemStack aStack, int xDrill, int yDrill, int zDrill, int xPipe, int zPipe, - int yHead, int oldYHead) { + int yHead, int oldYHead) { if (!mChunkLoadingEnabled) return super.workingAtBottom(aStack, xDrill, yDrill, zDrill, xPipe, zPipe, yHead, oldYHead); @@ -217,15 +208,15 @@ public abstract class GT_MetaTileEntity_OreDrillingPlantBase extends GT_MetaTile final int leftRight = (getXDrill() - (centerX << 4)) < 8 ? 0 : 1; final int topBottom = (getZDrill() - (centerZ << 4)) < 8 ? 0 : 1; mCurrentChunk = new ChunkCoordIntPair( - centerX - chunkRadiusConfig + leftRight, - centerZ - chunkRadiusConfig + topBottom); + centerX - chunkRadiusConfig + leftRight, + centerZ - chunkRadiusConfig + topBottom); GT_ChunkManager.requestChunkLoad((TileEntity) getBaseMetaTileEntity(), mCurrentChunk); mWorkChunkNeedsReload = false; } @Override protected boolean workingUpward(ItemStack aStack, int xDrill, int yDrill, int zDrill, int xPipe, int zPipe, - int yHead, int oldYHead) { + int yHead, int oldYHead) { if (!mChunkLoadingEnabled || oreBlockPositions.isEmpty()) return super.workingUpward(aStack, xDrill, yDrill, zDrill, xPipe, zPipe, yHead, oldYHead); boolean result = processOreList(); @@ -263,17 +254,16 @@ public abstract class GT_MetaTileEntity_OreDrillingPlantBase extends GT_MetaTile return false; } mCurrentChunk = new ChunkCoordIntPair(nextChunkX, nextChunkZ); - GT_ChunkManager.requestChunkLoad( - (TileEntity) getBaseMetaTileEntity(), - new ChunkCoordIntPair(nextChunkX, nextChunkZ)); + GT_ChunkManager + .requestChunkLoad((TileEntity) getBaseMetaTileEntity(), new ChunkCoordIntPair(nextChunkX, nextChunkZ)); return true; } @Override protected boolean checkHatches() { return !mMaintenanceHatches.isEmpty() && !mInputHatches.isEmpty() - && !mOutputBusses.isEmpty() - && !mEnergyHatches.isEmpty(); + && !mOutputBusses.isEmpty() + && !mEnergyHatches.isEmpty(); } @Override @@ -288,7 +278,7 @@ public abstract class GT_MetaTileEntity_OreDrillingPlantBase extends GT_MetaTile int tier = Math.max(1, GT_Utility.getTier(getMaxInputVoltage())); this.mEUt = -3 * (1 << (tier << 1)); this.mMaxProgresstime = ((workState == STATE_DOWNWARD || workState == STATE_AT_BOTTOM) ? getBaseProgressTime() - : 80) / (1 << tier); + : 80) / (1 << tier); this.mMaxProgresstime = Math.max(1, this.mMaxProgresstime); } @@ -300,12 +290,8 @@ public abstract class GT_MetaTileEntity_OreDrillingPlantBase extends GT_MetaTile outputItems.add(multiplyStackSize(currentItem)); return; } - GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sMaceratorRecipes.findRecipe( - getBaseMetaTileEntity(), - false, - voltage, - null, - currentItem); + GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sMaceratorRecipes + .findRecipe(getBaseMetaTileEntity(), false, voltage, null, currentItem); if (tRecipe == null) { outputItems.add(currentItem); return; @@ -323,13 +309,13 @@ public abstract class GT_MetaTileEntity_OreDrillingPlantBase extends GT_MetaTile private boolean doUseMaceratorRecipe(ItemStack currentItem) { ItemData itemData = GT_OreDictUnificator.getItemData(currentItem); return itemData == null || itemData.mPrefix != OrePrefixes.crushed && itemData.mPrefix != OrePrefixes.dustImpure - && itemData.mPrefix != OrePrefixes.dust - && itemData.mPrefix != OrePrefixes.gem - && itemData.mPrefix != OrePrefixes.gemChipped - && itemData.mPrefix != OrePrefixes.gemExquisite - && itemData.mPrefix != OrePrefixes.gemFlawed - && itemData.mPrefix != OrePrefixes.gemFlawless - && itemData.mMaterial.mMaterial != Materials.Oilsands; + && itemData.mPrefix != OrePrefixes.dust + && itemData.mPrefix != OrePrefixes.gem + && itemData.mPrefix != OrePrefixes.gemChipped + && itemData.mPrefix != OrePrefixes.gemExquisite + && itemData.mPrefix != OrePrefixes.gemFlawed + && itemData.mPrefix != OrePrefixes.gemFlawless + && itemData.mMaterial.mMaterial != Materials.Oilsands; } private ItemStack multiplyStackSize(ItemStack itemStack) { @@ -399,30 +385,30 @@ public abstract class GT_MetaTileEntity_OreDrillingPlantBase extends GT_MetaTile protected GT_Multiblock_Tooltip_Builder createTooltip(String tierSuffix) { String casings = getCasingBlockItem().get(0) - .getDisplayName(); + .getDisplayName(); final GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder(); tt.addMachineType("Miner") - .addInfo("Controller Block for the Ore Drilling Plant " + (tierSuffix != null ? tierSuffix : "")) - .addInfo("Use a Screwdriver to configure block radius") - .addInfo("Maximum radius is " + (getRadiusInChunks() << 4) + " blocks") - .addInfo("Use Soldering iron to turn off chunk mode") - .addInfo("Use Wire Cutter to toggle replacing mined blocks with cobblestone") - .addInfo("In chunk mode, working area center is the chunk corner nearest to the drill") - .addInfo("Gives ~3x as much crushed ore vs normal processing") - .addInfo("Fortune bonus of " + (mTier + 3) + ". Only works on small ores") - .addSeparator() - .beginStructureBlock(3, 7, 3, false) - .addController("Front bottom") - .addOtherStructurePart(casings, "form the 3x1x3 Base") - .addOtherStructurePart(casings, "1x3x1 pillar above the center of the base (2 minimum total)") - .addOtherStructurePart(getFrameMaterial().mName + " Frame Boxes", "Each pillar's side and 1x3x1 on top") - .addEnergyHatch(VN[getMinTier()] + "+, Any base casing", 1) - .addMaintenanceHatch("Any base casing", 1) - .addInputBus("Mining Pipes, optional, any base casing", 1) - .addInputHatch("Drilling Fluid, any base casing", 1) - .addOutputBus("Any base casing", 1) - .toolTipFinisher("Gregtech"); + .addInfo("Controller Block for the Ore Drilling Plant " + (tierSuffix != null ? tierSuffix : "")) + .addInfo("Use a Screwdriver to configure block radius") + .addInfo("Maximum radius is " + (getRadiusInChunks() << 4) + " blocks") + .addInfo("Use Soldering iron to turn off chunk mode") + .addInfo("Use Wire Cutter to toggle replacing mined blocks with cobblestone") + .addInfo("In chunk mode, working area center is the chunk corner nearest to the drill") + .addInfo("Gives ~3x as much crushed ore vs normal processing") + .addInfo("Fortune bonus of " + (mTier + 3) + ". Only works on small ores") + .addSeparator() + .beginStructureBlock(3, 7, 3, false) + .addController("Front bottom") + .addOtherStructurePart(casings, "form the 3x1x3 Base") + .addOtherStructurePart(casings, "1x3x1 pillar above the center of the base (2 minimum total)") + .addOtherStructurePart(getFrameMaterial().mName + " Frame Boxes", "Each pillar's side and 1x3x1 on top") + .addEnergyHatch(VN[getMinTier()] + "+, Any base casing", 1) + .addMaintenanceHatch("Any base casing", 1) + .addInputBus("Mining Pipes, optional, any base casing", 1) + .addInputHatch("Drilling Fluid, any base casing", 1) + .addOutputBus("Any base casing", 1) + .toolTipFinisher("Gregtech"); return tt; } @@ -435,15 +421,15 @@ public abstract class GT_MetaTileEntity_OreDrillingPlantBase extends GT_MetaTile public String[] getInfoData() { final int diameter = chunkRadiusConfig * 2; return new String[] { - EnumChatFormatting.BLUE + StatCollector.translateToLocal("GT5U.machines.minermulti") - + EnumChatFormatting.RESET, - StatCollector.translateToLocal("GT5U.machines.workarea") + ": " - + EnumChatFormatting.GREEN - + diameter - + "x" - + diameter - + EnumChatFormatting.RESET - + " " - + StatCollector.translateToLocal("GT5U.machines.chunks") }; + EnumChatFormatting.BLUE + StatCollector.translateToLocal("GT5U.machines.minermulti") + + EnumChatFormatting.RESET, + StatCollector.translateToLocal("GT5U.machines.workarea") + ": " + + EnumChatFormatting.GREEN + + diameter + + "x" + + diameter + + EnumChatFormatting.RESET + + " " + + StatCollector.translateToLocal("GT5U.machines.chunks") }; } } diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_PCBFactory.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_PCBFactory.java index 8e6508b465..759500b767 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_PCBFactory.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_PCBFactory.java @@ -76,7 +76,7 @@ import gregtech.common.blocks.GT_Block_Casings8; @SuppressWarnings("SpellCheckingInspection") public class GT_MetaTileEntity_PCBFactory extends - GT_MetaTileEntity_ExtendedPowerMultiBlockBase implements ISurvivalConstructable { + GT_MetaTileEntity_ExtendedPowerMultiBlockBase implements ISurvivalConstructable { private static final String tier1 = "tier1"; private static final String tier2 = "tier2"; @@ -88,7 +88,7 @@ public class GT_MetaTileEntity_PCBFactory extends private int mTier = 1, mSetTier = 1, mUpgradesInstalled = 0, mCurrentParallel = 0, mMaxParallel = 0; private boolean mBioUpgrade = false, mBioRotate = false, mOCTier1 = false, mOCTier2 = false; private int[] mBioOffsets = new int[] { -5, -1 }, mOCTier1Offsets = new int[] { 2, -11 }, - mOCTier2Offsets = new int[] { 2, -11 }; + mOCTier2Offsets = new int[] { 2, -11 }; private GT_MetaTileEntity_Hatch_Input mCoolantInputHatch; private static final int mBioRotateBitMap = 0b1000000; private static final int mOCTier2BitMap = 0b100000; @@ -98,12 +98,13 @@ public class GT_MetaTileEntity_PCBFactory extends private static final int mTier2BitMap = 0b10; private static final int mTier1BitMap = 0b1; private static final int COOLANT_CONSUMED_PER_SEC = 10; - private static final IStructureDefinition STRUCTURE_DEFINITION = StructureDefinition.builder() - .addShape( - tier1, - transpose( - new String[][] { - // spotless:off + private static final IStructureDefinition STRUCTURE_DEFINITION = StructureDefinition + .builder() + .addShape( + tier1, + transpose( + new String[][] { + // spotless:off {" ","E E","E E","EEEEEEE","E E","E E"," "}, {"EEEEEEE","CAAAAAC","CAAAAAC","CCCCCCC","CCCCCCC","CCCCCCC","E E"}, {"EAAAAAE","C-----C","C-----C","C-----C","C-----C","C-----C","ECCCCCE"}, @@ -111,12 +112,12 @@ public class GT_MetaTileEntity_PCBFactory extends {"EAAAAAE","C-----C","B-FFF-B","B-FFF-B","B-FFF-B","C-----C","EPPPPPE"}, {"ECC~CCE","CDDDDDC","CDDDDDC","CDDDDDC","CDDDDDC","CDDDDDC","EPPPPPE"} //spotless:on - })) - .addShape( - tier2, - transpose( - new String[][] { - // spotless:off + })) + .addShape( + tier2, + transpose( + new String[][] { + // spotless:off {" "," "," ","HGGH","HGGH","HGGH","HGGH","HGGH"," "," "," "}, {" "," ","HGGH","GGGG","GGGG","GGGG","GGGG","GGGG","HGGH"," "," "}, {" ","HGGH","GGGG","G G","G G","G G","G G","G G","GGGG","HGGH"," "}, @@ -125,12 +126,12 @@ public class GT_MetaTileEntity_PCBFactory extends {"HGGH","G G","G G","G G","G G","G G","G G","G G","G G","G G","HGGH"}, {"HGGH","GGGG","GGGG","GGGG","GGGG","GGGG","GGGG","GGGG","GGGG","GGGG","HGGH"} //spotless:on - })) - .addShape( - tier3, - transpose( - new String[][] { - // spotless:off + })) + .addShape( + tier3, + transpose( + new String[][] { + // spotless:off {" "," "," "," "," I "," I "," "," "," "," "}, {" "," "," "," I "," I "," I "," I "," "," "," "}, {" "," "," KKK "," KIK "," K K "," K K "," I "," "," "," "}, @@ -154,12 +155,12 @@ public class GT_MetaTileEntity_PCBFactory extends {" "," III "," I I "," I I "," I I "," I I "," I I "," I I "," III "," "}, {" II~II ","IIJJJII","IJJJJJI","IJJJJJI","IJJJJJI","IJJJJJI","IJJJJJI","IJJJJJI","IIJJJII"," IIIII "} //spotless:on - })) - .addShape( - bioUpgrade, - transpose( - new String[][] { - // spotless:off + })) + .addShape( + bioUpgrade, + transpose( + new String[][] { + // spotless:off {" "," "," LLLLLL "," "," "}, {" "," "," L L "," "," "}, {"E E E E"," LLL LLL "," LLL LLL "," LLL LLL ","E E E E"}, @@ -168,12 +169,12 @@ public class GT_MetaTileEntity_PCBFactory extends {"EAAAE EAAAE","A A A A","A A A A","A A A A","EAAAE EAAAE"}, {"ELLLE ELLLE","LLLLL LLLLL","LLLLL LLLLL","LLLLL LLLLL","ELLLE ELLLE"} //spotless:on - })) - .addShape( - ocTier1Upgrade, - transpose( - new String[][] { - // spotless:off + })) + .addShape( + ocTier1Upgrade, + transpose( + new String[][] { + // spotless:off {"EKKKE","K K","K K","K K","EKKKE"}, {"E E"," KKK "," K K "," KKK ","E E"}, {"E E"," NNN "," N N "," NNN ","E E"}, @@ -185,12 +186,12 @@ public class GT_MetaTileEntity_PCBFactory extends {"ENNNE","NKKKN","NK KN","NKKKN","ENNNE"}, {"EGGGE","GGGGG","GGMGG","GGGGG","EGGGE"} //spotless:on - })) - .addShape( - ocTier2Upgrade, - transpose( - new String[][] { - // spotless:off + })) + .addShape( + ocTier2Upgrade, + transpose( + new String[][] { + // spotless:off {"RGGGR","G G","G G","G G","RGGGR"}, {"R R"," GGG "," GTG "," GGG ","R R"}, {"R R"," NNN "," NTN "," NNN ","R R"}, @@ -202,172 +203,60 @@ public class GT_MetaTileEntity_PCBFactory extends {"RNNNR","NQQQN","NQTQN","NQQQN","RNNNR"}, {"RGGGR","GGGGG","GGSGG","GGGGG","RGGGR"} //spotless:on - })) - .addElement( - 'E', - ofFrame( - Materials.DamascusSteel)) - .addElement( - 'C', - ofBlock( - GregTech_API.sBlockCasings8, - 11)) - .addElement( - 'D', - ofBlock( - GregTech_API.sBlockReinforced, - 2)) - .addElement( - 'A', - ofChain( - ofBlockUnlocalizedName( - IndustrialCraft2.ID, - "blockAlloyGlass", - 0, - true), - ofBlockUnlocalizedName( - BartWorks.ID, - "BW_GlasBlocks", - 0, - true), - ofBlockUnlocalizedName( - BartWorks.ID, - "BW_GlasBlocks2", - 0, - true), - // warded - // glass - ofBlockUnlocalizedName( - Thaumcraft.ID, - "blockCosmeticOpaque", - 2, - false))) - .addElement( - 'B', - ofBlock( - GregTech_API.sBlockCasings3, - 10)) - .addElement( - 'F', - ofFrame( - Materials.VibrantAlloy)) - .addElement( - 'P', - buildHatchAdder( - GT_MetaTileEntity_PCBFactory.class).atLeast( - InputHatch, - OutputBus, - InputBus, - Maintenance, - Energy.or( - ExoticEnergy)) - .dot( - 1) - .casingIndex( - ((GT_Block_Casings8) GregTech_API.sBlockCasings8).getTextureIndex( - 11)) - .buildAndChain( - GregTech_API.sBlockCasings8, - 11)) - .addElement( - 'H', - ofFrame( - Materials.Duranium)) - .addElement( - 'G', - ofBlock( - GregTech_API.sBlockCasings8, - 12)) - .addElement( - 'I', - ofBlock( - GregTech_API.sBlockCasings8, - 13)) - .addElement( - 'K', - ofBlock( - GregTech_API.sBlockCasings8, - 10)) - .addElement( - 'J', - buildHatchAdder( - GT_MetaTileEntity_PCBFactory.class).atLeast( - InputHatch, - OutputBus, - InputBus, - Maintenance, - Energy.or( - ExoticEnergy)) - .dot( - 1) - .casingIndex( - ((GT_Block_Casings8) GregTech_API.sBlockCasings8).getTextureIndex( - 13)) - .buildAndChain( - GregTech_API.sBlockCasings8, - 13)) - .addElement( - 'L', - ofBlock( - GregTech_API.sBlockCasings4, - 1)) - .addElement( - 'M', - buildHatchAdder( - GT_MetaTileEntity_PCBFactory.class).hatchClass( - GT_MetaTileEntity_Hatch_Input.class) - .adder( - GT_MetaTileEntity_PCBFactory::addCoolantInputToMachineList) - .casingIndex( - GT_Utility.getCasingTextureIndex( - GregTech_API.sBlockCasings8, - 12)) - .dot( - 2) - .buildAndChain( - GregTech_API.sBlockCasings8, - 12)) - .addElement( - 'N', - ofBlock( - GregTech_API.sBlockCasings2, - 15)) - .addElement( - 'O', - ofBlock( - GregTech_API.sBlockCasings8, - 4)) - .addElement( - 'S', - buildHatchAdder( - GT_MetaTileEntity_PCBFactory.class).hatchClass( - GT_MetaTileEntity_Hatch_Input.class) - .adder( - GT_MetaTileEntity_PCBFactory::addCoolantInputToMachineList) - .casingIndex( - GT_Utility.getCasingTextureIndex( - GregTech_API.sBlockCasings8, - 12)) - .dot( - 2) - .buildAndChain( - GregTech_API.sBlockCasings8, - 12)) - .addElement( - 'R', - ofFrame( - Materials.Americium)) - .addElement( - 'Q', - ofBlock( - GregTech_API.sBlockCasings8, - 14)) - .addElement( - 'T', - ofBlock( - GregTech_API.sBlockCasings1, - 15)) - .build(); + })) + .addElement('E', ofFrame(Materials.DamascusSteel)) + .addElement('C', ofBlock(GregTech_API.sBlockCasings8, 11)) + .addElement('D', ofBlock(GregTech_API.sBlockReinforced, 2)) + .addElement( + 'A', + ofChain( + ofBlockUnlocalizedName(IndustrialCraft2.ID, "blockAlloyGlass", 0, true), + ofBlockUnlocalizedName(BartWorks.ID, "BW_GlasBlocks", 0, true), + ofBlockUnlocalizedName(BartWorks.ID, "BW_GlasBlocks2", 0, true), + // warded + // glass + ofBlockUnlocalizedName(Thaumcraft.ID, "blockCosmeticOpaque", 2, false))) + .addElement('B', ofBlock(GregTech_API.sBlockCasings3, 10)) + .addElement('F', ofFrame(Materials.VibrantAlloy)) + .addElement( + 'P', + buildHatchAdder(GT_MetaTileEntity_PCBFactory.class) + .atLeast(InputHatch, OutputBus, InputBus, Maintenance, Energy.or(ExoticEnergy)) + .dot(1) + .casingIndex(((GT_Block_Casings8) GregTech_API.sBlockCasings8).getTextureIndex(11)) + .buildAndChain(GregTech_API.sBlockCasings8, 11)) + .addElement('H', ofFrame(Materials.Duranium)) + .addElement('G', ofBlock(GregTech_API.sBlockCasings8, 12)) + .addElement('I', ofBlock(GregTech_API.sBlockCasings8, 13)) + .addElement('K', ofBlock(GregTech_API.sBlockCasings8, 10)) + .addElement( + 'J', + buildHatchAdder(GT_MetaTileEntity_PCBFactory.class) + .atLeast(InputHatch, OutputBus, InputBus, Maintenance, Energy.or(ExoticEnergy)) + .dot(1) + .casingIndex(((GT_Block_Casings8) GregTech_API.sBlockCasings8).getTextureIndex(13)) + .buildAndChain(GregTech_API.sBlockCasings8, 13)) + .addElement('L', ofBlock(GregTech_API.sBlockCasings4, 1)) + .addElement( + 'M', + buildHatchAdder(GT_MetaTileEntity_PCBFactory.class).hatchClass(GT_MetaTileEntity_Hatch_Input.class) + .adder(GT_MetaTileEntity_PCBFactory::addCoolantInputToMachineList) + .casingIndex(GT_Utility.getCasingTextureIndex(GregTech_API.sBlockCasings8, 12)) + .dot(2) + .buildAndChain(GregTech_API.sBlockCasings8, 12)) + .addElement('N', ofBlock(GregTech_API.sBlockCasings2, 15)) + .addElement('O', ofBlock(GregTech_API.sBlockCasings8, 4)) + .addElement( + 'S', + buildHatchAdder(GT_MetaTileEntity_PCBFactory.class).hatchClass(GT_MetaTileEntity_Hatch_Input.class) + .adder(GT_MetaTileEntity_PCBFactory::addCoolantInputToMachineList) + .casingIndex(GT_Utility.getCasingTextureIndex(GregTech_API.sBlockCasings8, 12)) + .dot(2) + .buildAndChain(GregTech_API.sBlockCasings8, 12)) + .addElement('R', ofFrame(Materials.Americium)) + .addElement('Q', ofBlock(GregTech_API.sBlockCasings8, 14)) + .addElement('T', ofBlock(GregTech_API.sBlockCasings1, 15)) + .build(); @Override public void construct(ItemStack stackSize, boolean hintsOnly) { @@ -384,18 +273,18 @@ public class GT_MetaTileEntity_PCBFactory extends if (mBioRotate) { final IGregTechTileEntity tTile = getBaseMetaTileEntity(); getStructureDefinition().buildOrHints( - this, - stackSize, - bioUpgrade, - tTile.getWorld(), - transformFacing(getExtendedFacing()), - tTile.getXCoord(), - tTile.getYCoord(), - tTile.getZCoord(), - mBioOffsets[1], - 6, - mBioOffsets[0], - hintsOnly); + this, + stackSize, + bioUpgrade, + tTile.getWorld(), + transformFacing(getExtendedFacing()), + tTile.getXCoord(), + tTile.getYCoord(), + tTile.getZCoord(), + mBioOffsets[1], + 6, + mBioOffsets[0], + hintsOnly); } else { buildPiece(bioUpgrade, stackSize, hintsOnly, mBioOffsets[0], 6, mBioOffsets[1]); } @@ -426,57 +315,57 @@ public class GT_MetaTileEntity_PCBFactory extends if (mBioRotate) { final IGregTechTileEntity tTile = getBaseMetaTileEntity(); getStructureDefinition().survivalBuild( - this, - stackSize, - bioUpgrade, - tTile.getWorld(), - transformFacing(getExtendedFacing()), - tTile.getXCoord(), - tTile.getYCoord(), - tTile.getZCoord(), - mBioOffsets[1], - 6, - mBioOffsets[0], - elementBudget, - env, - false); + this, + stackSize, + bioUpgrade, + tTile.getWorld(), + transformFacing(getExtendedFacing()), + tTile.getXCoord(), + tTile.getYCoord(), + tTile.getZCoord(), + mBioOffsets[1], + 6, + mBioOffsets[0], + elementBudget, + env, + false); } else { built += survivialBuildPiece( - bioUpgrade, - stackSize, - mBioOffsets[0], - 6, - mBioOffsets[1], - elementBudget, - env, - false, - true); - } - } - - if (mOCTier1 && !mOCTier2) { - built += survivialBuildPiece( - ocTier1Upgrade, + bioUpgrade, stackSize, - mOCTier1Offsets[0], - 9, - mOCTier1Offsets[1], + mBioOffsets[0], + 6, + mBioOffsets[1], elementBudget, env, false, true); + } + } + + if (mOCTier1 && !mOCTier2) { + built += survivialBuildPiece( + ocTier1Upgrade, + stackSize, + mOCTier1Offsets[0], + 9, + mOCTier1Offsets[1], + elementBudget, + env, + false, + true); } if (!mOCTier1 && mOCTier2) { built += survivialBuildPiece( - ocTier2Upgrade, - stackSize, - mOCTier2Offsets[0], - 9, - mOCTier2Offsets[1], - elementBudget, - env, - false, - true); + ocTier2Upgrade, + stackSize, + mOCTier2Offsets[0], + 9, + mOCTier2Offsets[1], + elementBudget, + env, + false, + true); } return built; @@ -497,38 +386,39 @@ public class GT_MetaTileEntity_PCBFactory extends @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { if (aSide == aFacing) { - if (aActive) return new ITexture[] { + if (aActive) + return new ITexture[] { BlockIcons.getCasingTextureForId( - getTier() < 3 ? GT_Utility.getCasingTextureIndex(GregTech_API.sBlockCasings8, 11) - : GT_Utility.getCasingTextureIndex(GregTech_API.sBlockCasings8, 13)), + getTier() < 3 ? GT_Utility.getCasingTextureIndex(GregTech_API.sBlockCasings8, 11) + : GT_Utility.getCasingTextureIndex(GregTech_API.sBlockCasings8, 13)), TextureFactory.builder() - .addIcon(OVERLAY_FRONT_ASSEMBLY_LINE_ACTIVE) - .extFacing() - .build(), + .addIcon(OVERLAY_FRONT_ASSEMBLY_LINE_ACTIVE) + .extFacing() + .build(), TextureFactory.builder() - .addIcon(OVERLAY_FRONT_ASSEMBLY_LINE_ACTIVE_GLOW) - .extFacing() - .glow() - .build() }; + .addIcon(OVERLAY_FRONT_ASSEMBLY_LINE_ACTIVE_GLOW) + .extFacing() + .glow() + .build() }; return new ITexture[] { - BlockIcons.getCasingTextureForId( - getTier() < 3 ? GT_Utility.getCasingTextureIndex(GregTech_API.sBlockCasings8, 11) - : GT_Utility.getCasingTextureIndex(GregTech_API.sBlockCasings8, 13)), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_ASSEMBLY_LINE) - .extFacing() - .build(), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_ASSEMBLY_LINE_GLOW) - .extFacing() - .glow() - .build() }; + BlockIcons.getCasingTextureForId( + getTier() < 3 ? GT_Utility.getCasingTextureIndex(GregTech_API.sBlockCasings8, 11) + : GT_Utility.getCasingTextureIndex(GregTech_API.sBlockCasings8, 13)), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_ASSEMBLY_LINE) + .extFacing() + .build(), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_ASSEMBLY_LINE_GLOW) + .extFacing() + .glow() + .build() }; } return new ITexture[] { BlockIcons.getCasingTextureForId( - mSetTier < 3 ? ((GT_Block_Casings8) GregTech_API.sBlockCasings8).getTextureIndex(11) - : ((GT_Block_Casings8) GregTech_API.sBlockCasings8).getTextureIndex(13)) }; + mSetTier < 3 ? ((GT_Block_Casings8) GregTech_API.sBlockCasings8).getTextureIndex(11) + : ((GT_Block_Casings8) GregTech_API.sBlockCasings8).getTextureIndex(13)) }; } @Override @@ -564,17 +454,17 @@ public class GT_MetaTileEntity_PCBFactory extends if (mBioRotate) { final IGregTechTileEntity tTile = getBaseMetaTileEntity(); if (!getStructureDefinition().check( - this, - bioUpgrade, - tTile.getWorld(), - transformFacing(getExtendedFacing()), - tTile.getXCoord(), - tTile.getYCoord(), - tTile.getZCoord(), - mBioOffsets[1], - 6, - mBioOffsets[0], - !mMachine)) { + this, + bioUpgrade, + tTile.getWorld(), + transformFacing(getExtendedFacing()), + tTile.getXCoord(), + tTile.getYCoord(), + tTile.getZCoord(), + mBioOffsets[1], + 6, + mBioOffsets[0], + !mMachine)) { return false; } } else { @@ -608,8 +498,8 @@ public class GT_MetaTileEntity_PCBFactory extends getBaseMetaTileEntity().sendBlockEvent(GregTechTileClientEvents.CHANGE_CUSTOM_DATA, getUpdateData()); if (mMaintenanceHatches.size() != 1 || mOutputBusses.isEmpty() - || mInputBusses.isEmpty() - || mInputHatches.isEmpty()) { + || mInputBusses.isEmpty() + || mInputHatches.isEmpty()) { return false; } @@ -649,7 +539,7 @@ public class GT_MetaTileEntity_PCBFactory extends } private boolean processRecipe(ItemStack aStack, ItemStack[] aItemInputs, FluidStack[] aFluidInputs, - GT_Recipe.GT_Recipe_Map aMap) { + GT_Recipe.GT_Recipe_Map aMap) { mOutputItems = null; mOutputFluids = null; if (aItemInputs == null || aFluidInputs == null) { @@ -660,15 +550,8 @@ public class GT_MetaTileEntity_PCBFactory extends long amps = getMaxInputAmps(); int tier = GT_Utility.getTier(voltage); - GT_Recipe tRecipe = aMap.findRecipe( - getBaseMetaTileEntity(), - null, - true, - false, - V[tier], - aFluidInputs, - aStack, - aItemInputs); + GT_Recipe tRecipe = aMap + .findRecipe(getBaseMetaTileEntity(), null, true, false, V[tier], aFluidInputs, aStack, aItemInputs); if (tRecipe == null) { return false; @@ -696,19 +579,19 @@ public class GT_MetaTileEntity_PCBFactory extends } boolean recipeAllowed = (((recipeBitMap & mTier1BitMap) == mTier1BitMap && (mTier >= 1)) - || ((recipeBitMap & mTier2BitMap) == mTier2BitMap && (mTier >= 2)) - || ((recipeBitMap & mTier3BitMap) == mTier3BitMap && (mTier >= 3))) - && ((recipeBitMap & mBioBitMap) == 0 || ((recipeBitMap & mBioBitMap) == mBioBitMap && mBioUpgrade)); + || ((recipeBitMap & mTier2BitMap) == mTier2BitMap && (mTier >= 2)) + || ((recipeBitMap & mTier3BitMap) == mTier3BitMap && (mTier >= 3))) + && ((recipeBitMap & mBioBitMap) == 0 || ((recipeBitMap & mBioBitMap) == mBioBitMap && mBioUpgrade)); if (recipeAllowed) { GT_ParallelHelper helper = new GT_ParallelHelper().setRecipe(tRecipe) - .setItemInputs(aItemInputs) - .setFluidInputs(aFluidInputs) - .setMaxParallel(aMaxParallel) - .setAvailableEUt(getMaxInputEu()) - .setEUtModifier(aExtraPower) - .enableConsumption() - .build(); + .setItemInputs(aItemInputs) + .setFluidInputs(aFluidInputs) + .setMaxParallel(aMaxParallel) + .setAvailableEUt(getMaxInputEu()) + .setEUtModifier(aExtraPower) + .enableConsumption() + .build(); mCurrentParallel = helper.getCurrentParallel(); if (mCurrentParallel > 0) { @@ -719,14 +602,11 @@ public class GT_MetaTileEntity_PCBFactory extends if (mOCTier1 || mOCTier2) { GT_OverclockCalculator calc = new GT_OverclockCalculator().setRecipeEUt(tRecipe.mEUt) - .setDuration(tRecipe.mDuration) - .setEUt(voltage) - .setAmperage(amps) - .setEUtDiscount(aExtraPower) - .setSpeedBoost( - (float) Math.pow( - mRoughnessMultiplier, - 2)); + .setDuration(tRecipe.mDuration) + .setEUt(voltage) + .setAmperage(amps) + .setEUtDiscount(aExtraPower) + .setSpeedBoost((float) Math.pow(mRoughnessMultiplier, 2)); if (mOCTier2) { calc.enablePerfectOC(); } @@ -895,7 +775,7 @@ public class GT_MetaTileEntity_PCBFactory extends } } else if (curRotation == Rotation.CLOCKWISE || curRotation == Rotation.COUNTER_CLOCKWISE) { newFlip = curRotation == Rotation.CLOCKWISE ? curFlip == Flip.NONE ? Flip.NONE : Flip.HORIZONTAL - : curFlip != Flip.NONE ? Flip.NONE : Flip.HORIZONTAL; + : curFlip != Flip.NONE ? Flip.NONE : Flip.HORIZONTAL; newDirection = curRotation == Rotation.CLOCKWISE ? ForgeDirection.UP : ForgeDirection.DOWN; } else { newDirection = switch (curDirection) { @@ -936,7 +816,7 @@ public class GT_MetaTileEntity_PCBFactory extends @Override protected void calculateOverclockedNessMultiInternal(long aEUt, int aDuration, int mAmperage, long maxInputVoltage, - boolean perfectOC) { + boolean perfectOC) { int hatches = Math.max(getExoticEnergyHatches().size(), 1); long zMaxInputVoltage = maxInputVoltage; long zTime = aDuration; @@ -982,8 +862,8 @@ public class GT_MetaTileEntity_PCBFactory extends public void onScrewdriverRightClick(byte aSide, EntityPlayer aPlayer, float aX, float aY, float aZ) { inputSeparation = !inputSeparation; GT_Utility.sendChatToPlayer( - aPlayer, - StatCollector.translateToLocal("GT5U.machines.separatebus") + " " + inputSeparation); + aPlayer, + StatCollector.translateToLocal("GT5U.machines.separatebus") + " " + inputSeparation); } @Override @@ -1000,181 +880,180 @@ public class GT_MetaTileEntity_PCBFactory extends for (GT_MetaTileEntity_Hatch tHatch : getExoticAndNormalEnergyHatchList()) { if (isValidMetaTileEntity(tHatch)) { storedEnergy += tHatch.getBaseMetaTileEntity() - .getStoredEU(); + .getStoredEU(); maxEnergy += tHatch.getBaseMetaTileEntity() - .getEUCapacity(); + .getEUCapacity(); } } long voltage = getAverageInputVoltage(); long amps = getMaxInputAmps(); return new String[] { - /* 1 */ StatCollector.translateToLocal("GT5U.multiblock.Progress") + ": " - + EnumChatFormatting.GREEN - + GT_Utility.formatNumbers(mProgresstime / 20) - + EnumChatFormatting.RESET - + " s / " - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(mMaxProgresstime / 20) - + EnumChatFormatting.RESET - + " s", - /* 2 */ StatCollector.translateToLocal("GT5U.multiblock.energy") + ": " - + EnumChatFormatting.GREEN - + GT_Utility.formatNumbers(storedEnergy) - + EnumChatFormatting.RESET - + " EU / " - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(maxEnergy) - + EnumChatFormatting.RESET - + " EU", - /* 3 */ StatCollector.translateToLocal("GT5U.multiblock.usage") + ": " - + EnumChatFormatting.RED - + GT_Utility.formatNumbers(getActualEnergyUsage()) - + EnumChatFormatting.RESET - + " EU/t", - /* 4 */ StatCollector.translateToLocal("GT5U.multiblock.mei") + ": " - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(voltage) - + EnumChatFormatting.RESET - + " EU/t(*" - + amps - + " A)" - + StatCollector.translateToLocal("GT5U.machines.tier") - + ": " - + EnumChatFormatting.YELLOW - + VN[GT_Utility.getTier(voltage)] - + EnumChatFormatting.RESET, - /* 5 */ StatCollector.translateToLocal("GT5U.multiblock.problems") + ": " - + EnumChatFormatting.RED - + (getIdealStatus() - getRepairStatus()) - + EnumChatFormatting.RESET - + " " - + StatCollector.translateToLocal("GT5U.multiblock.efficiency") - + ": " - + EnumChatFormatting.YELLOW - + mEfficiency / 100.0F - + EnumChatFormatting.RESET - + " %", - /* 6 */ StatCollector.translateToLocal("GT5U.multiblock.pollution") + ": " - + EnumChatFormatting.GREEN - + mPollutionReduction - + EnumChatFormatting.RESET - + " %", - /* 7 */ StatCollector.translateToLocal("GT5U.multiblock.parallelism") + ": " - + EnumChatFormatting.GREEN - + mMaxParallel, - /* 8 */ StatCollector.translateToLocal("GT5U.multiblock.curparallelism") + ": " - + EnumChatFormatting.GREEN - + mCurrentParallel }; + /* 1 */ StatCollector.translateToLocal("GT5U.multiblock.Progress") + ": " + + EnumChatFormatting.GREEN + + GT_Utility.formatNumbers(mProgresstime / 20) + + EnumChatFormatting.RESET + + " s / " + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(mMaxProgresstime / 20) + + EnumChatFormatting.RESET + + " s", + /* 2 */ StatCollector.translateToLocal("GT5U.multiblock.energy") + ": " + + EnumChatFormatting.GREEN + + GT_Utility.formatNumbers(storedEnergy) + + EnumChatFormatting.RESET + + " EU / " + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(maxEnergy) + + EnumChatFormatting.RESET + + " EU", + /* 3 */ StatCollector.translateToLocal("GT5U.multiblock.usage") + ": " + + EnumChatFormatting.RED + + GT_Utility.formatNumbers(getActualEnergyUsage()) + + EnumChatFormatting.RESET + + " EU/t", + /* 4 */ StatCollector.translateToLocal("GT5U.multiblock.mei") + ": " + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(voltage) + + EnumChatFormatting.RESET + + " EU/t(*" + + amps + + " A)" + + StatCollector.translateToLocal("GT5U.machines.tier") + + ": " + + EnumChatFormatting.YELLOW + + VN[GT_Utility.getTier(voltage)] + + EnumChatFormatting.RESET, + /* 5 */ StatCollector.translateToLocal("GT5U.multiblock.problems") + ": " + + EnumChatFormatting.RED + + (getIdealStatus() - getRepairStatus()) + + EnumChatFormatting.RESET + + " " + + StatCollector.translateToLocal("GT5U.multiblock.efficiency") + + ": " + + EnumChatFormatting.YELLOW + + mEfficiency / 100.0F + + EnumChatFormatting.RESET + + " %", + /* 6 */ StatCollector.translateToLocal("GT5U.multiblock.pollution") + ": " + + EnumChatFormatting.GREEN + + mPollutionReduction + + EnumChatFormatting.RESET + + " %", + /* 7 */ StatCollector.translateToLocal("GT5U.multiblock.parallelism") + ": " + + EnumChatFormatting.GREEN + + mMaxParallel, + /* 8 */ StatCollector.translateToLocal("GT5U.multiblock.curparallelism") + ": " + + EnumChatFormatting.GREEN + + mCurrentParallel }; } @Override protected GT_Multiblock_Tooltip_Builder createTooltip() { GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder(); tt.addMachineType("Circuit Board Fabricator") - .addInfo("Controller for the PCB Factory") - .addInfo( - EnumChatFormatting.GOLD.toString() + EnumChatFormatting.BOLD - + "IMPORTANT!" - + " Check the configuration menu before building.") - .addInfo("Tier of the machine determines the available recipes.") - .addInfo("Machine tier (1-3) is set in the controller GUI.") - .addInfo("The configuration menu can be used to add upgrades.") - .addInfo("Each tier and upgrade requires additional structures.") - .addInfo("Power consumption is multiplied by Sqrt(structures).") - .addInfo("Tier 2 and 3 allow parallel by using extra nanites.") - .addInfo("Every doubling of nanites adds one parallel.") - .addInfo("1x->1, 2x->2, 4x->3, 8x->4 with no limit.") - .addInfo("Recipes require a cooling upgrade to be overclocked.") - .addInfo("Liquid Cooling uses 10 L/s of distilled water and enables default overclocks.") - .addInfo("Thermosink uses 10 L/s of Space Coolant and enables perfect overclocks.") - .addInfo("Trace size can be changed to modify the material usage and machine speed.") - .addInfo(AuthorBlueWeabo) - .beginStructureBlock(30, 38, 13, false) - .addSeparator() - .addMaintenanceHatch(EnumChatFormatting.GOLD + "1", 1) - .addEnergyHatch(EnumChatFormatting.GOLD + "1" + EnumChatFormatting.GRAY + "+", 1) - .addInputBus(EnumChatFormatting.GOLD + "1" + EnumChatFormatting.GRAY + "+", 1) - .addOutputBus(EnumChatFormatting.GOLD + "1" + EnumChatFormatting.GRAY + "+", 1) - .addInputHatch(EnumChatFormatting.GOLD + "1" + EnumChatFormatting.GRAY + "+", 1) - .addStructureInfo( - "Coolant Hatch (Input Hatch): " + EnumChatFormatting.GOLD - + "1" - + EnumChatFormatting.GRAY - + "Center of the Liquid Cooling/Thermosink") - .addStructureInfo( - EnumChatFormatting.BLUE + "Base Multi (Tier " - + EnumChatFormatting.DARK_PURPLE - + 1 - + EnumChatFormatting.BLUE - + "):") - .addStructureInfo(EnumChatFormatting.GOLD + "40" + EnumChatFormatting.GRAY + " Damascus Steel Frame Box") - .addStructureInfo(EnumChatFormatting.GOLD + "9" + EnumChatFormatting.GRAY + " Vibrant Alloy Frame Box") - .addStructureInfo(EnumChatFormatting.GOLD + "25" + EnumChatFormatting.GRAY + " Reinforced Glass") - .addStructureInfo( - EnumChatFormatting.GOLD + "77" + EnumChatFormatting.GRAY + " Basic Photolithography Framework Casing") - .addStructureInfo(EnumChatFormatting.GOLD + "12" + EnumChatFormatting.GRAY + " Grate Machine Casing") - .addStructureInfo(EnumChatFormatting.GOLD + "25" + EnumChatFormatting.GRAY + " Plascrete Block") - .addStructureInfo( - EnumChatFormatting.BLUE + "Tier " - + EnumChatFormatting.DARK_PURPLE - + 2 - + EnumChatFormatting.BLUE - + " (Adds to Tier " - + EnumChatFormatting.DARK_PURPLE - + 1 - + EnumChatFormatting.BLUE - + "):") - .addStructureInfo(EnumChatFormatting.GOLD + "34" + EnumChatFormatting.GRAY + " Duranium Frame Box") - .addStructureInfo( - EnumChatFormatting.GOLD + "158" - + EnumChatFormatting.GRAY - + " Reinforced Photolithography Framework Casing") - .addStructureInfo( - EnumChatFormatting.BLUE + "Tier " - + EnumChatFormatting.DARK_PURPLE - + 3 - + EnumChatFormatting.BLUE - + ":") - .addStructureInfo( - EnumChatFormatting.GOLD + "292" - + EnumChatFormatting.GRAY - + " Radiation Proof Photolithography Framework Casing") - .addStructureInfo(EnumChatFormatting.GOLD + "76" + EnumChatFormatting.GRAY + " Radiant Naquadah Alloy Casing") - .addStructureInfo(EnumChatFormatting.BLUE + "Biochamber Upgrade") - .addStructureInfo( - EnumChatFormatting.GOLD + "68" + EnumChatFormatting.GRAY + " Clean Stainless Steel Machine Casing") - .addStructureInfo(EnumChatFormatting.GOLD + "40" + EnumChatFormatting.GRAY + " Damascus Steel Frame Box") - .addStructureInfo(EnumChatFormatting.GOLD + "72" + EnumChatFormatting.GRAY + " Reinforced Glass") - .addStructureInfo( - EnumChatFormatting.BLUE + "Liquid Cooling Tower (Tier " - + EnumChatFormatting.DARK_PURPLE - + 1 - + EnumChatFormatting.BLUE - + "):") - .addStructureInfo(EnumChatFormatting.GOLD + "40" + EnumChatFormatting.GRAY + " Damascus Steel Frame Box") - .addStructureInfo(EnumChatFormatting.GOLD + "68" + EnumChatFormatting.GRAY + " Radiant Naquadah Alloy Casing") - .addStructureInfo(EnumChatFormatting.GOLD + "12" + EnumChatFormatting.GRAY + " Extreme Engine Intake Casing") - .addStructureInfo(EnumChatFormatting.GOLD + "20" + EnumChatFormatting.GRAY + " Tungstensteel Pipe Casing") - .addStructureInfo( - EnumChatFormatting.GOLD + "21" - + EnumChatFormatting.GRAY - + " Reinforced Photolithography Framework Casing") - .addStructureInfo( - EnumChatFormatting.BLUE + "Thermosink Radiator(Tier " - + EnumChatFormatting.DARK_PURPLE - + 2 - + EnumChatFormatting.BLUE - + "):") - .addStructureInfo(EnumChatFormatting.GOLD + "40" + EnumChatFormatting.GRAY + " Americium Frame Box") - .addStructureInfo( - EnumChatFormatting.GOLD + "41" - + EnumChatFormatting.GRAY - + " Reinforced Photolithography Framework Casing") - .addStructureInfo(EnumChatFormatting.GOLD + "8" + EnumChatFormatting.GRAY + " Superconducting Coil Block") - .addStructureInfo(EnumChatFormatting.GOLD + "20" + EnumChatFormatting.GRAY + " Tungstensteel Pipe Casing") - .addStructureInfo(EnumChatFormatting.GOLD + "48" + EnumChatFormatting.GRAY + " Infinity Cooled Casing") - .toolTipFinisher("GregTech"); + .addInfo("Controller for the PCB Factory") + .addInfo( + EnumChatFormatting.GOLD.toString() + EnumChatFormatting.BOLD + + "IMPORTANT!" + + " Check the configuration menu before building.") + .addInfo("Tier of the machine determines the available recipes.") + .addInfo("Machine tier (1-3) is set in the controller GUI.") + .addInfo("The configuration menu can be used to add upgrades.") + .addInfo("Each tier and upgrade requires additional structures.") + .addInfo("Power consumption is multiplied by Sqrt(structures).") + .addInfo("Tier 2 and 3 allow parallel by using extra nanites.") + .addInfo("Every doubling of nanites adds one parallel.") + .addInfo("1x->1, 2x->2, 4x->3, 8x->4 with no limit.") + .addInfo("Recipes require a cooling upgrade to be overclocked.") + .addInfo("Liquid Cooling uses 10 L/s of distilled water and enables default overclocks.") + .addInfo("Thermosink uses 10 L/s of Space Coolant and enables perfect overclocks.") + .addInfo("Trace size can be changed to modify the material usage and machine speed.") + .addInfo(AuthorBlueWeabo) + .beginStructureBlock(30, 38, 13, false) + .addSeparator() + .addMaintenanceHatch(EnumChatFormatting.GOLD + "1", 1) + .addEnergyHatch(EnumChatFormatting.GOLD + "1" + EnumChatFormatting.GRAY + "+", 1) + .addInputBus(EnumChatFormatting.GOLD + "1" + EnumChatFormatting.GRAY + "+", 1) + .addOutputBus(EnumChatFormatting.GOLD + "1" + EnumChatFormatting.GRAY + "+", 1) + .addInputHatch(EnumChatFormatting.GOLD + "1" + EnumChatFormatting.GRAY + "+", 1) + .addStructureInfo( + "Coolant Hatch (Input Hatch): " + EnumChatFormatting.GOLD + + "1" + + EnumChatFormatting.GRAY + + "Center of the Liquid Cooling/Thermosink") + .addStructureInfo( + EnumChatFormatting.BLUE + "Base Multi (Tier " + + EnumChatFormatting.DARK_PURPLE + + 1 + + EnumChatFormatting.BLUE + + "):") + .addStructureInfo(EnumChatFormatting.GOLD + "40" + EnumChatFormatting.GRAY + " Damascus Steel Frame Box") + .addStructureInfo(EnumChatFormatting.GOLD + "9" + EnumChatFormatting.GRAY + " Vibrant Alloy Frame Box") + .addStructureInfo(EnumChatFormatting.GOLD + "25" + EnumChatFormatting.GRAY + " Reinforced Glass") + .addStructureInfo( + EnumChatFormatting.GOLD + "77" + EnumChatFormatting.GRAY + " Basic Photolithography Framework Casing") + .addStructureInfo(EnumChatFormatting.GOLD + "12" + EnumChatFormatting.GRAY + " Grate Machine Casing") + .addStructureInfo(EnumChatFormatting.GOLD + "25" + EnumChatFormatting.GRAY + " Plascrete Block") + .addStructureInfo( + EnumChatFormatting.BLUE + "Tier " + + EnumChatFormatting.DARK_PURPLE + + 2 + + EnumChatFormatting.BLUE + + " (Adds to Tier " + + EnumChatFormatting.DARK_PURPLE + + 1 + + EnumChatFormatting.BLUE + + "):") + .addStructureInfo(EnumChatFormatting.GOLD + "34" + EnumChatFormatting.GRAY + " Duranium Frame Box") + .addStructureInfo( + EnumChatFormatting.GOLD + "158" + + EnumChatFormatting.GRAY + + " Reinforced Photolithography Framework Casing") + .addStructureInfo( + EnumChatFormatting.BLUE + "Tier " + EnumChatFormatting.DARK_PURPLE + 3 + EnumChatFormatting.BLUE + ":") + .addStructureInfo( + EnumChatFormatting.GOLD + "292" + + EnumChatFormatting.GRAY + + " Radiation Proof Photolithography Framework Casing") + .addStructureInfo( + EnumChatFormatting.GOLD + "76" + EnumChatFormatting.GRAY + " Radiant Naquadah Alloy Casing") + .addStructureInfo(EnumChatFormatting.BLUE + "Biochamber Upgrade") + .addStructureInfo( + EnumChatFormatting.GOLD + "68" + EnumChatFormatting.GRAY + " Clean Stainless Steel Machine Casing") + .addStructureInfo(EnumChatFormatting.GOLD + "40" + EnumChatFormatting.GRAY + " Damascus Steel Frame Box") + .addStructureInfo(EnumChatFormatting.GOLD + "72" + EnumChatFormatting.GRAY + " Reinforced Glass") + .addStructureInfo( + EnumChatFormatting.BLUE + "Liquid Cooling Tower (Tier " + + EnumChatFormatting.DARK_PURPLE + + 1 + + EnumChatFormatting.BLUE + + "):") + .addStructureInfo(EnumChatFormatting.GOLD + "40" + EnumChatFormatting.GRAY + " Damascus Steel Frame Box") + .addStructureInfo( + EnumChatFormatting.GOLD + "68" + EnumChatFormatting.GRAY + " Radiant Naquadah Alloy Casing") + .addStructureInfo( + EnumChatFormatting.GOLD + "12" + EnumChatFormatting.GRAY + " Extreme Engine Intake Casing") + .addStructureInfo(EnumChatFormatting.GOLD + "20" + EnumChatFormatting.GRAY + " Tungstensteel Pipe Casing") + .addStructureInfo( + EnumChatFormatting.GOLD + "21" + + EnumChatFormatting.GRAY + + " Reinforced Photolithography Framework Casing") + .addStructureInfo( + EnumChatFormatting.BLUE + "Thermosink Radiator(Tier " + + EnumChatFormatting.DARK_PURPLE + + 2 + + EnumChatFormatting.BLUE + + "):") + .addStructureInfo(EnumChatFormatting.GOLD + "40" + EnumChatFormatting.GRAY + " Americium Frame Box") + .addStructureInfo( + EnumChatFormatting.GOLD + "41" + + EnumChatFormatting.GRAY + + " Reinforced Photolithography Framework Casing") + .addStructureInfo(EnumChatFormatting.GOLD + "8" + EnumChatFormatting.GRAY + " Superconducting Coil Block") + .addStructureInfo(EnumChatFormatting.GOLD + "20" + EnumChatFormatting.GRAY + " Tungstensteel Pipe Casing") + .addStructureInfo(EnumChatFormatting.GOLD + "48" + EnumChatFormatting.GRAY + " Infinity Cooled Casing") + .toolTipFinisher("GregTech"); return tt; } @@ -1265,35 +1144,35 @@ public class GT_MetaTileEntity_PCBFactory extends super.addUIWidgets(builder, buildContext); buildContext.addSyncedWindow(10, this::createConfigurationWindow); builder.widget( - new ButtonWidget().setOnClick( - (clickData, widget) -> { - if (!widget.isClient()) widget.getContext() - .openSyncedWindow(10); - }) - .setSize(16, 16) - .setBackground(() -> { - List ret = new ArrayList<>(); - ret.add(GT_UITextures.BUTTON_STANDARD); - ret.add(GT_UITextures.OVERLAY_BUTTON_CYCLIC); - return ret.toArray(new IDrawable[0]); - }) - .addTooltip("Configuration Menu") - .setPos(174, 130)) - .widget( - new TextWidget(new Text("Tier")).setTextAlignment(Alignment.Center) - .setScale(0.91f) - .setSize(20, 16) - .setPos(173, 98)) - .widget( - new TextFieldWidget().setGetterInt(() -> mSetTier) - .setSetterInt(val -> mSetTier = val) - .setNumbers(1, 3) - .setTextColor(Color.WHITE.normal) - .setTextAlignment(Alignment.Center) - .addTooltip("PCB Factory Tier") - .setBackground(GT_UITextures.BACKGROUND_TEXT_FIELD) - .setSize(18, 18) - .setPos(173, 110)); + new ButtonWidget().setOnClick( + (clickData, widget) -> { + if (!widget.isClient()) widget.getContext() + .openSyncedWindow(10); + }) + .setSize(16, 16) + .setBackground(() -> { + List ret = new ArrayList<>(); + ret.add(GT_UITextures.BUTTON_STANDARD); + ret.add(GT_UITextures.OVERLAY_BUTTON_CYCLIC); + return ret.toArray(new IDrawable[0]); + }) + .addTooltip("Configuration Menu") + .setPos(174, 130)) + .widget( + new TextWidget(new Text("Tier")).setTextAlignment(Alignment.Center) + .setScale(0.91f) + .setSize(20, 16) + .setPos(173, 98)) + .widget( + new TextFieldWidget().setGetterInt(() -> mSetTier) + .setSetterInt(val -> mSetTier = val) + .setNumbers(1, 3) + .setTextColor(Color.WHITE.normal) + .setTextAlignment(Alignment.Center) + .addTooltip("PCB Factory Tier") + .setBackground(GT_UITextures.BACKGROUND_TEXT_FIELD) + .setSize(18, 18) + .setPos(173, 110)); } protected ModularWindow createConfigurationWindow(final EntityPlayer player) { @@ -1301,350 +1180,189 @@ public class GT_MetaTileEntity_PCBFactory extends builder.setBackground(GT_UITextures.BACKGROUND_SINGLEBLOCK_DEFAULT); builder.setGuiTint(getGUIColorization()); builder.widget( - new DrawableWidget().setDrawable(GT_UITextures.OVERLAY_BUTTON_CYCLIC) - .setPos(5, 5) - .setSize(16, 16)) - .widget(new TextWidget("Configuration Menu").setPos(25, 9)) - .widget( - ButtonWidget.closeWindowButton(true) - .setPos(185, 3)) - .widget( - new DynamicPositionedColumn().setSynced(false) - .widget( - new MultiChildWidget().addChild( - new CycleButtonWidget().setToggle( - () -> mBioUpgrade, - val -> { - mBioUpgrade = val; - if (!mBioUpgrade) { - GT_Utility.sendChatToPlayer( - player, - GT_Utility.trans( - "339.1", - "Biochamber Upgrade Disabled")); - } else { - GT_Utility.sendChatToPlayer( - player, - GT_Utility.trans( - "339", - "Biochamber Upgrade Enabled")); - } - }) - .setVariableBackground( - GT_UITextures.BUTTON_STANDARD_TOGGLE) - .setSize(90, 18) - .addTooltip( - "Enables nanites to construct organic circuitry. Required for Bioware and Wetware boards.")) - .addChild( - new DrawableWidget().setDrawable( - GT_UITextures.OVERLAY_BUTTON_CYCLIC) - .setSize( - 18, - 18)) - .addChild( - new TextWidget( - "Biochamber").setTextAlignment( - Alignment.Center) - .setPos( - 23, - 5)) - .setEnabled( - widget -> !getBaseMetaTileEntity().isActive())) - .widget( - new MultiChildWidget().addChild( - new CycleButtonWidget().setToggle( - () -> mBioRotate, - val -> { - mBioRotate = val; - if (!mBioRotate) { - GT_Utility.sendChatToPlayer( - player, - GT_Utility.trans( - "340.1", - "Rotated biochamber disabled")); - } else { - GT_Utility.sendChatToPlayer( - player, - GT_Utility.trans( - "340", - "Rotated biochamber enabled")); - } - }) - .setVariableBackground( - GT_UITextures.BUTTON_STANDARD_TOGGLE) - .setSize(90, 18) - .addTooltip( - "Rotates the biochamber by 90 degrees.")) - .addChild( - new DrawableWidget().setDrawable( - GT_UITextures.OVERLAY_BUTTON_CYCLIC) - .setSize( - 18, - 18)) - .addChild( - new TextWidget( - "Bio Rotation").setTextAlignment( - Alignment.Center) - .setPos( - 23, - 5)) - .setEnabled( - widget -> !getBaseMetaTileEntity().isActive())) - .widget( - new MultiChildWidget().addChild( - new CycleButtonWidget().setToggle( - () -> mOCTier1, - val -> { - mOCTier1 = val; - if (!mOCTier1) { - GT_Utility.sendChatToPlayer( - player, - GT_Utility.trans( - "341.1", - "Tier 1 cooling disabled")); - } else { - GT_Utility.sendChatToPlayer( - player, - GT_Utility.trans( - "341", - "Tier 1 cooling enabled")); - } - }) - .setVariableBackground( - GT_UITextures.BUTTON_STANDARD_TOGGLE) - .setSize(90, 18) - .addTooltip( - "Allows for overclocking. Requires 10 L/s of distilled water. Cooling upgrades are mutually exclusive.")) - .addChild( - new DrawableWidget().setDrawable( - GT_UITextures.OVERLAY_BUTTON_CYCLIC) - .setSize( - 18, - 18)) - .addChild( - new TextWidget( - "Liquid Cooling").setTextAlignment( - Alignment.Center) - .setPos( - 20, - 5)) - .setEnabled( - widget -> !getBaseMetaTileEntity().isActive())) - .widget( - new MultiChildWidget().addChild( - new CycleButtonWidget().setToggle( - () -> mOCTier2, - val -> { - mOCTier2 = val; - if (!mOCTier2) { - GT_Utility.sendChatToPlayer( - player, - GT_Utility.trans( - "342.1", - "Tier 2 cooling disabled")); - } else { - GT_Utility.sendChatToPlayer( - player, - GT_Utility.trans( - "342", - "Tier 2 cooling enabled")); - } - }) - .setVariableBackground( - GT_UITextures.BUTTON_STANDARD_TOGGLE) - .setSize(90, 18) - .addTooltip( - "Enables perfect overclocking by allowing nanites to work with extreme speed and efficiency. Uses 10 L/s of space coolant.")) - .addChild( - new DrawableWidget().setDrawable( - GT_UITextures.OVERLAY_BUTTON_CYCLIC) - .setSize( - 18, - 18)) - .addChild( - new TextWidget( - "Thermosink").setTextAlignment( - Alignment.Center) - .setPos( - 20, - 5)) - .setEnabled( - widget -> !getBaseMetaTileEntity().isActive())) - .widget( - new TextWidget(new Text("Trace Size")).setSize(90, 18) - .setEnabled( - widget -> !getBaseMetaTileEntity().isActive()) - .setPos(0, 4)) - .widget( - new TextFieldWidget().setGetterInt( - () -> (int) ((1f / mRoughnessMultiplier) * 100f)) - .setSetterInt( - val -> mRoughnessMultiplier = 100f - / val) - .setNumbers(50, 200) - .setTextColor(Color.WHITE.normal) - .setTextAlignment(Alignment.Center) - .addTooltip( - "Set the trace size. Smaller traces allow material savings but take longer to fabricate. Larger traces waste material but are fast. 50-200 μm.") - .setBackground( - GT_UITextures.BACKGROUND_TEXT_FIELD) - .setSize(90, 16)) - .widget( - new DrawableWidget().setDrawable( - GT_UITextures.OVERLAY_BUTTON_CROSS) - .setSize(18, 18) - .addTooltip( - new Text( - "Can't change configuration when running !").color( - Color.RED.dark( - 3))) - .setEnabled( - widget -> getBaseMetaTileEntity().isActive())) - .setPos(10, 25)) - .widget( - new DynamicPositionedColumn().setSynced(false) - .widget( - new TextWidget( - new Text("Bio Upgrade Offsets")).setSize(72, 18) - .setEnabled( - widget -> !getBaseMetaTileEntity().isActive())) - .widget( - new DynamicPositionedRow().setSynced(false) - .widget( - new TextFieldWidget().setGetterInt( - () -> mBioOffsets[0]) - .setSetterInt( - val -> mBioOffsets[0] = val) - .setNumbers( - -16, - 16) - .setTextColor( - Color.WHITE.normal) - .setTextAlignment( - Alignment.Center) - .addTooltip( - "X Offset") - .setBackground( - GT_UITextures.BACKGROUND_TEXT_FIELD) - .setSize( - 36, - 18)) - .widget( - new TextFieldWidget().setGetterInt( - () -> mBioOffsets[1]) - .setSetterInt( - val -> mBioOffsets[1] = val) - .setNumbers( - -16, - 16) - .setTextColor( - Color.WHITE.normal) - .setTextAlignment( - Alignment.Center) - .addTooltip( - "Z Offset") - .setBackground( - GT_UITextures.BACKGROUND_TEXT_FIELD) - .setSize( - 36, - 18)) - .setEnabled( - widget -> !getBaseMetaTileEntity().isActive())) - .widget( - new TextWidget( - new Text("Cooler Tier 1 Offsets")).setSize(72, 18) - .setEnabled( - widget -> !getBaseMetaTileEntity().isActive())) - .widget( - new DynamicPositionedRow().setSynced(false) - .widget( - new TextFieldWidget().setGetterInt( - () -> mOCTier1Offsets[0]) - .setSetterInt( - val -> mOCTier1Offsets[0] = val) - .setNumbers( - -16, - 16) - .setTextColor( - Color.WHITE.normal) - .setTextAlignment( - Alignment.Center) - .addTooltip( - "X Offset") - .setBackground( - GT_UITextures.BACKGROUND_TEXT_FIELD) - .setSize( - 36, - 18)) - .widget( - new TextFieldWidget().setGetterInt( - () -> mOCTier1Offsets[1]) - .setSetterInt( - val -> mOCTier1Offsets[1] = val) - .setNumbers( - -16, - 16) - .setTextColor( - Color.WHITE.normal) - .setTextAlignment( - Alignment.Center) - .addTooltip( - "Z Offset") - .setBackground( - GT_UITextures.BACKGROUND_TEXT_FIELD) - .setSize( - 36, - 18)) - .setEnabled( - widget -> !getBaseMetaTileEntity().isActive())) - .widget( - new TextWidget( - new Text("Cooler Tier 2 Offsets")).setSize(72, 18) - .setEnabled( - widget -> !getBaseMetaTileEntity().isActive())) - .widget( - new DynamicPositionedRow().setSynced(false) - .widget( - new TextFieldWidget().setGetterInt( - () -> mOCTier2Offsets[0]) - .setSetterInt( - val -> mOCTier2Offsets[0] = val) - .setNumbers( - -16, - 16) - .setTextColor( - Color.WHITE.normal) - .setTextAlignment( - Alignment.Center) - .addTooltip( - "X Offset") - .setBackground( - GT_UITextures.BACKGROUND_TEXT_FIELD) - .setSize( - 36, - 18)) - .widget( - new TextFieldWidget().setGetterInt( - () -> mOCTier2Offsets[1]) - .setSetterInt( - val -> mOCTier2Offsets[1] = val) - .setNumbers( - -16, - 16) - .setTextColor( - Color.WHITE.normal) - .setTextAlignment( - Alignment.Center) - .addTooltip( - "Z Offset") - .setBackground( - GT_UITextures.BACKGROUND_TEXT_FIELD) - .setSize( - 36, - 18)) - .setEnabled( - widget -> !getBaseMetaTileEntity().isActive())) - .setPos(110, 25)); + new DrawableWidget().setDrawable(GT_UITextures.OVERLAY_BUTTON_CYCLIC) + .setPos(5, 5) + .setSize(16, 16)) + .widget(new TextWidget("Configuration Menu").setPos(25, 9)) + .widget( + ButtonWidget.closeWindowButton(true) + .setPos(185, 3)) + .widget( + new DynamicPositionedColumn().setSynced(false) + .widget( + new MultiChildWidget().addChild(new CycleButtonWidget().setToggle(() -> mBioUpgrade, val -> { + mBioUpgrade = val; + if (!mBioUpgrade) { + GT_Utility + .sendChatToPlayer(player, GT_Utility.trans("339.1", "Biochamber Upgrade Disabled")); + } else { + GT_Utility + .sendChatToPlayer(player, GT_Utility.trans("339", "Biochamber Upgrade Enabled")); + } + }) + .setVariableBackground(GT_UITextures.BUTTON_STANDARD_TOGGLE) + .setSize(90, 18) + .addTooltip( + "Enables nanites to construct organic circuitry. Required for Bioware and Wetware boards.")) + .addChild( + new DrawableWidget().setDrawable(GT_UITextures.OVERLAY_BUTTON_CYCLIC) + .setSize(18, 18)) + .addChild( + new TextWidget("Biochamber").setTextAlignment(Alignment.Center) + .setPos(23, 5)) + .setEnabled(widget -> !getBaseMetaTileEntity().isActive())) + .widget(new MultiChildWidget().addChild(new CycleButtonWidget().setToggle(() -> mBioRotate, val -> { + mBioRotate = val; + if (!mBioRotate) { + GT_Utility + .sendChatToPlayer(player, GT_Utility.trans("340.1", "Rotated biochamber disabled")); + } else { + GT_Utility.sendChatToPlayer(player, GT_Utility.trans("340", "Rotated biochamber enabled")); + } + }) + .setVariableBackground(GT_UITextures.BUTTON_STANDARD_TOGGLE) + .setSize(90, 18) + .addTooltip("Rotates the biochamber by 90 degrees.")) + .addChild( + new DrawableWidget().setDrawable(GT_UITextures.OVERLAY_BUTTON_CYCLIC) + .setSize(18, 18)) + .addChild( + new TextWidget("Bio Rotation").setTextAlignment(Alignment.Center) + .setPos(23, 5)) + .setEnabled(widget -> !getBaseMetaTileEntity().isActive())) + .widget(new MultiChildWidget().addChild(new CycleButtonWidget().setToggle(() -> mOCTier1, val -> { + mOCTier1 = val; + if (!mOCTier1) { + GT_Utility.sendChatToPlayer(player, GT_Utility.trans("341.1", "Tier 1 cooling disabled")); + } else { + GT_Utility.sendChatToPlayer(player, GT_Utility.trans("341", "Tier 1 cooling enabled")); + } + }) + .setVariableBackground(GT_UITextures.BUTTON_STANDARD_TOGGLE) + .setSize(90, 18) + .addTooltip( + "Allows for overclocking. Requires 10 L/s of distilled water. Cooling upgrades are mutually exclusive.")) + .addChild( + new DrawableWidget().setDrawable(GT_UITextures.OVERLAY_BUTTON_CYCLIC) + .setSize(18, 18)) + .addChild( + new TextWidget("Liquid Cooling").setTextAlignment(Alignment.Center) + .setPos(20, 5)) + .setEnabled(widget -> !getBaseMetaTileEntity().isActive())) + .widget(new MultiChildWidget().addChild(new CycleButtonWidget().setToggle(() -> mOCTier2, val -> { + mOCTier2 = val; + if (!mOCTier2) { + GT_Utility.sendChatToPlayer(player, GT_Utility.trans("342.1", "Tier 2 cooling disabled")); + } else { + GT_Utility.sendChatToPlayer(player, GT_Utility.trans("342", "Tier 2 cooling enabled")); + } + }) + .setVariableBackground(GT_UITextures.BUTTON_STANDARD_TOGGLE) + .setSize(90, 18) + .addTooltip( + "Enables perfect overclocking by allowing nanites to work with extreme speed and efficiency. Uses 10 L/s of space coolant.")) + .addChild( + new DrawableWidget().setDrawable(GT_UITextures.OVERLAY_BUTTON_CYCLIC) + .setSize(18, 18)) + .addChild( + new TextWidget("Thermosink").setTextAlignment(Alignment.Center) + .setPos(20, 5)) + .setEnabled(widget -> !getBaseMetaTileEntity().isActive())) + .widget( + new TextWidget(new Text("Trace Size")).setSize(90, 18) + .setEnabled(widget -> !getBaseMetaTileEntity().isActive()) + .setPos(0, 4)) + .widget( + new TextFieldWidget().setGetterInt(() -> (int) ((1f / mRoughnessMultiplier) * 100f)) + .setSetterInt(val -> mRoughnessMultiplier = 100f / val) + .setNumbers(50, 200) + .setTextColor(Color.WHITE.normal) + .setTextAlignment(Alignment.Center) + .addTooltip( + "Set the trace size. Smaller traces allow material savings but take longer to fabricate. Larger traces waste material but are fast. 50-200 μm.") + .setBackground(GT_UITextures.BACKGROUND_TEXT_FIELD) + .setSize(90, 16)) + .widget( + new DrawableWidget().setDrawable(GT_UITextures.OVERLAY_BUTTON_CROSS) + .setSize(18, 18) + .addTooltip(new Text("Can't change configuration when running !").color(Color.RED.dark(3))) + .setEnabled(widget -> getBaseMetaTileEntity().isActive())) + .setPos(10, 25)) + .widget( + new DynamicPositionedColumn().setSynced(false) + .widget( + new TextWidget(new Text("Bio Upgrade Offsets")).setSize(72, 18) + .setEnabled(widget -> !getBaseMetaTileEntity().isActive())) + .widget( + new DynamicPositionedRow().setSynced(false) + .widget( + new TextFieldWidget().setGetterInt(() -> mBioOffsets[0]) + .setSetterInt(val -> mBioOffsets[0] = val) + .setNumbers(-16, 16) + .setTextColor(Color.WHITE.normal) + .setTextAlignment(Alignment.Center) + .addTooltip("X Offset") + .setBackground(GT_UITextures.BACKGROUND_TEXT_FIELD) + .setSize(36, 18)) + .widget( + new TextFieldWidget().setGetterInt(() -> mBioOffsets[1]) + .setSetterInt(val -> mBioOffsets[1] = val) + .setNumbers(-16, 16) + .setTextColor(Color.WHITE.normal) + .setTextAlignment(Alignment.Center) + .addTooltip("Z Offset") + .setBackground(GT_UITextures.BACKGROUND_TEXT_FIELD) + .setSize(36, 18)) + .setEnabled(widget -> !getBaseMetaTileEntity().isActive())) + .widget( + new TextWidget(new Text("Cooler Tier 1 Offsets")).setSize(72, 18) + .setEnabled(widget -> !getBaseMetaTileEntity().isActive())) + .widget( + new DynamicPositionedRow().setSynced(false) + .widget( + new TextFieldWidget().setGetterInt(() -> mOCTier1Offsets[0]) + .setSetterInt(val -> mOCTier1Offsets[0] = val) + .setNumbers(-16, 16) + .setTextColor(Color.WHITE.normal) + .setTextAlignment(Alignment.Center) + .addTooltip("X Offset") + .setBackground(GT_UITextures.BACKGROUND_TEXT_FIELD) + .setSize(36, 18)) + .widget( + new TextFieldWidget().setGetterInt(() -> mOCTier1Offsets[1]) + .setSetterInt(val -> mOCTier1Offsets[1] = val) + .setNumbers(-16, 16) + .setTextColor(Color.WHITE.normal) + .setTextAlignment(Alignment.Center) + .addTooltip("Z Offset") + .setBackground(GT_UITextures.BACKGROUND_TEXT_FIELD) + .setSize(36, 18)) + .setEnabled(widget -> !getBaseMetaTileEntity().isActive())) + .widget( + new TextWidget(new Text("Cooler Tier 2 Offsets")).setSize(72, 18) + .setEnabled(widget -> !getBaseMetaTileEntity().isActive())) + .widget( + new DynamicPositionedRow().setSynced(false) + .widget( + new TextFieldWidget().setGetterInt(() -> mOCTier2Offsets[0]) + .setSetterInt(val -> mOCTier2Offsets[0] = val) + .setNumbers(-16, 16) + .setTextColor(Color.WHITE.normal) + .setTextAlignment(Alignment.Center) + .addTooltip("X Offset") + .setBackground(GT_UITextures.BACKGROUND_TEXT_FIELD) + .setSize(36, 18)) + .widget( + new TextFieldWidget().setGetterInt(() -> mOCTier2Offsets[1]) + .setSetterInt(val -> mOCTier2Offsets[1] = val) + .setNumbers(-16, 16) + .setTextColor(Color.WHITE.normal) + .setTextAlignment(Alignment.Center) + .addTooltip("Z Offset") + .setBackground(GT_UITextures.BACKGROUND_TEXT_FIELD) + .setSize(36, 18)) + .setEnabled(widget -> !getBaseMetaTileEntity().isActive())) + .setPos(110, 25)); return builder.build(); } diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_PlasmaForge.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_PlasmaForge.java index 25c3b7157e..5f32ec190d 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_PlasmaForge.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_PlasmaForge.java @@ -44,7 +44,7 @@ import gregtech.api.util.GT_Recipe; import gregtech.api.util.GT_Utility; public class GT_MetaTileEntity_PlasmaForge extends GT_MetaTileEntity_AbstractMultiFurnace - implements ISurvivalConstructable { + implements ISurvivalConstructable { // 3600 seconds in an hour, 8 hours, 20 ticks in a second. private static final double max_efficiency_time_in_ticks = 3600d * 8d * 20d; @@ -52,8 +52,7 @@ public class GT_MetaTileEntity_PlasmaForge extends GT_MetaTileEntity_AbstractMul // Valid fuels which the discount will get applied to. private static final FluidStack[] valid_fuels = { Materials.ExcitedDTEC.getFluid(1L), - Materials.ExcitedDTRC.getFluid(1L), Materials.ExcitedDTPC.getFluid(1L), - Materials.ExcitedDTCC.getFluid(1L), }; + Materials.ExcitedDTRC.getFluid(1L), Materials.ExcitedDTPC.getFluid(1L), Materials.ExcitedDTCC.getFluid(1L), }; // Saves recomputing this every recipe check for overclocking. private static final double log4 = log(4); @@ -75,403 +74,399 @@ public class GT_MetaTileEntity_PlasmaForge extends GT_MetaTileEntity_AbstractMul private long EU_per_tick = 0; @SuppressWarnings("SpellCheckingInspection") - private static final String[][] structure_string = new String[][] { - { " ", " N N N N ", - " N N N N ", " N N N N ", - " ", " ", - " ", " N N N N ", - " N N N N ", " NNN NNN N N NNN NNN ", - " ", " ", - " ", " NNN NNN NNN NNN ", - " ", " ", - " ", " ", - " ", " NNN NNN NNN NNN ", - " ", " ", - " ", " NNN NNN NNN NNN " }, - { " N N N N ", " bCCCb bCCCb ", - " bCCCb bCCCb ", " bCCCb bCCCb ", - " N N N N ", " ", - " N N N N ", " bCCCb bCCCb ", - " bCCCb bCCCb ", "NbbbN NbbNCCCb bCCCNbbN NbbbN", - " CCC CCC N N CCC CCC ", " CCC CCC CCC CCC ", - " CCC CCC CCC CCC ", "NbbbN NbbbN NbbbN NbbbN", - " N N N N ", " N N N N ", - " ", " N N N N ", - " N N N N ", "NbbbN NbbbN NbbbN NbbbN", - " CCC CCC CCC CCC ", " CCC CCC CCC CCC ", - " CCC CCC CCC CCC ", "NbbbN NbbbN N N NbbbN NbbbN", }, - { " N N N N ", " bCCCb bCCCb ", - " NNNbbbbbNNsNNbbbbbNNN ", " ss bCCCb bCCCb ss ", - " s N N N N s ", " s s ", - " N N N N N N ", " N bCCCb bCCCb N ", - " N sbbbbbNNsNNbbbbbs N ", "NbbbN NbbNCCCb bCCCNbbN NbbbN", - " CbC CbC N N CbC CbC ", " CbC CbC CbC CbC ", - " CbC CbC CbC CbC ", "NbbbN NbbbN NbbbN NbbbN", - " NNN NNN NNN NNN ", " NNN NNN NNN NNN ", - " s s s s ", " NNN NNN NNN NNN ", - " NNN NNN NNN NNN ", "NbbbN NbbbN NbbbN NbbbN", - " CbC CbC CbC CbC ", " CbC CbC CbC CbC ", - " CbC CbC CbC CbC ", "NbbbN NbbbNNNNNsNsNNNNNbbbN NbbbN", }, - { " N N N N ", " bCCCb bCCCb ", - " ss bCCCb bCCCb ss ", " bCCCb bCCCb ", - " s NCCCN NCCCN s ", " s NCCCN NCCCN s ", - " NCCCN NCCCN ", " bCCCb bCCCb ", - " bCCCb bCCCb ", "NbbbNNNbbNCCCb bCCCNbbNNNbbbN", - " CCCCCCCCC N N CCCCCCCCC ", " CCCCCCCCC CCCCCCCCC ", - " CCCCCCCCC CCCCCCCCC ", "NbbbNNNbbbN NbbbNNNbbbN", - " N N N N ", " N N N N ", - " ", " N N N N ", - " N N N N ", "NbbbNNNbbbN NbbbNNNbbbN", - " CCCCCCCCC CCCCCCCCC ", " CCCCCCCCC CCCCCCCCC ", - " CCCCCCCCC CCCCCCCCC ", "NbbbNNNbbbN NbN NbbbNNNbbbN", }, - { " ", " N N N N ", - " s N N N N s ", " s NCCCN NCCCN s ", - " ", " ", - " ", " NCCCN NCCCN ", - " N N N N ", " NNN NN N N NN NNN ", - " C C C C ", " C C C C ", - " C C C C ", " NNN NNN NNN NNN ", - " ", " ", - " ", " ", - " ", " NNN NNN NNN NNN ", - " C C C C ", " C C C C ", - " C C C C ", " NNN NNN NbN NNN NNN ", }, - { " ", " ", - " s s ", " s NCCCN NCCCN s ", - " ", " ", - " ", " NCCCN NCCCN ", - " ", " N N N N ", - " C C C C ", " C C C C ", - " C C C C ", " N N N N ", - " ", " ", - " ", " ", - " ", " N N N N ", - " C C C C ", " C C C C ", - " C C C C ", " N N NbN N N ", }, - { " ", " N N N N ", - " N N N N N N ", " NCCCN NCCCN ", - " ", " ", - " ", " NCCCN NCCCN ", - " N N N N ", " NNN NN N N NN NNN ", - " C C C C ", " C C C C ", - " C C C C ", " NNN NNN NNN NNN ", - " ", " ", - " ", " ", - " ", " NNN NNN NNN NNN ", - " C C C C ", " C C C C ", - " C C C C ", " NNN NNN NbN NNN NNN ", }, - { " N N N N ", " bCCCb bCCCb ", - " N bCCCb bCCCb N ", " bCCCb bCCCb ", - " NCCCN NCCCN ", " NCCCN NCCCN ", - " NCCCN NCCCN ", " bCCCb bCCCb ", - " bCCCb bCCCb ", "NbbbNNNbbNCCCb bCCCNbbNNNbbbN", - " CCCCCCCCC N N CCCCCCCCC ", " CCCCCCCCC CCCCCCCCC ", - " CCCCCCCCC CCCCCCCCC ", "NbbbNNNbbbN NbbbNNNbbbN", - " N N N N ", " N N N N ", - " ", " N N N N ", - " N N N N ", "NbbbNNNbbbN NbbbNNNbbbN", - " CCCCCCCCC CCCCCCCCC ", " CCCCCCCCC CCCCCCCCC ", - " CCCCCCCCC CCCCCCCCC ", "NbbbNNNbbbN NbN NbbbNNNbbbN", }, - { " N N N N ", " bCCCb bCCCb ", - " N sbbbbbNNsNNbbbbbs N ", " bCCCb bCCCb ", - " N N N N ", " ", - " N N N N ", " bCCCb bCCCb ", - " s sbbbbbNNsNNbbbbbs s ", "NbbbN NbbNCCCb bCCCNbbN NbbbN", - " CbC CbC N N CbC CbC ", " CbC CbC CbC CbC ", - " CbC CbC CbC CbC ", "NbbbN NbbbN NbbbN NbbbN", - " NNN NNN NNN NNN ", " NNN NNN NNN NNN ", - " s s s s ", " NNN NNN NNN NNN ", - " NNN NNN NNN NNN ", "NbbbN NbbbN NbbbN NbbbN", - " CbC CbC CbC CbC ", " CbC CbC CbC CbC ", - " CbC CbC CbC CbC ", "NbbbN NbbbNNNNNsNsNNNNNbbbN NbbbN", }, - { " NNN NNN N N NNN NNN ", "NbbbN NbbNCCCb bCCCNbbN NbbbN", - "NbbbN NbbNCCCb bCCCNbbN NbbbN", "NbbbNNNbbNCCCb bCCCNbbNNNbbbN", - " NNN NNN N N NNN NNN ", " N N N N ", - " NNN NNN N N NNN NNN ", "NbbbNNNbbNCCCb bCCCNbbNNNbbbN", - "NbbbN NbbNCCCb bCCCNbbN NbbbN", "NNNN NNNCCCb bCCCNNN NNNN", - " CCC CCC N N CCC CCC ", " CCC CCC CCC CCC ", - " CCC CCC CCC CCC ", "NbbbN NbbbN NbbbN NbbbN", - " N N N N ", " N N N N ", - " ", " N N N N ", - " N N N N ", "NbbbN NbbbN NbbbN NbbbN", - " CCC CCC CCC CCC ", " CCC CCC CCC CCC ", - " CCC CCC CCC CCC ", "NbbbN NbbbN NbN NbbbN NbbbN", }, - { " ", " CCC CCC N N CCC CCC ", - " CbC CbC N N CbC CbC ", " CCCCCCCCC N N CCCCCCCCC ", - " C C C C ", " C C C C ", - " C C C C ", " CCCCCCCCC N N CCCCCCCCC ", - " CbC CbC N N CbC CbC ", " CCC CCC N N CCC CCC ", - " ", " ", - " ", " NNN NNN NNN NNN ", - " ", " ", - " ", " ", - " ", " NNN NNN NNN NNN ", - " ", " ", - " ", " NNN NNN NbN NNN NNN ", }, - { " ", " CCC CCC CCC CCC ", - " CbC CbC CbC CbC ", " CCCCCCCCC CCCCCCCCC ", - " C C C C ", " C C C C ", - " C C C C ", " CCCCCCCCC CCCCCCCCC ", - " CbC CbC CbC CbC ", " CCC CCC CCC CCC ", - " ", " ", - " ", " ", - " ", " ", - " ", " ", - " ", " ", - " ", " ", - " ", " N N NbN N N ", }, - { " ", " CCC CCC CCC CCC ", - " CbC CbC CbC CbC ", " CCCCCCCCC CCCCCCCCC ", - " C C C C ", " C C C C ", - " C C C C ", " CCCCCCCCC CCCCCCCCC ", - " CbC CbC CbC CbC ", " CCC CCC CCC CCC ", - " ", " ", - " ", " ", - " ", " ", - " ", " ", - " ", " ", - " ", " ", - " ", " N N NbN N N ", }, - { " NNN NNN NNN NNN ", "NbbbN NbbbN NbbbN NbbbN", - "NbbbN NbbbN NbbbN NbbbN", "NbbbNNNbbbN NbbbNNNbbbN", - " NNN NNN NNN NNN ", " N N N N ", - " NNN NNN NNN NNN ", "NbbbNNNbbbN NbbbNNNbbbN", - "NbbbN NbbbN NbbbN NbbbN", "NbbbN NbbbN NbbbN NbbbN", - " NNN NNN NNN NNN ", " ", - " ", " ", - " ", " ", - " ", " ", - " ", " ", - " ", " ", - " ", " N N NsNsN N N ", }, - { " ", " ", - " N N N N ", " ", - " ", " ", - " ", " ", - " N N N N ", " ", - " ", " ", - " ", " ", - " ", " ", - " ", " ", - " ", " ", - " ", " ", - " ", " N N NbbbbbN N N ", }, - { " ", " ", - " N N N N ", " ", - " ", " ", - " ", " ", - " N N N N ", " ", - " ", " ", - " ", " ", - " ", " ", - " ", " ", - " ", " ", - " ", " ", - " N ", " NsNNNNNsNNNNsbbbbbsNNNNsNNNNNsN ", }, - { " ", " ", - " s s s s ", " ", - " ", " ", - " ", " ", - " s s s s ", " ", - " ", " ", - " ", " ", - " ", " ", - " ", " ", - " ", " ", - " ", " ~ ", - " NNN ", " NbbbbbNbbbbNbbbbbNbbbbNbbbbbN ", }, - { " ", " ", - " N N N N ", " ", - " ", " ", - " ", " ", - " N N N N ", " ", - " ", " ", - " ", " ", - " ", " ", - " ", " ", - " ", " ", - " ", " ", - " N ", " NsNNNNNsNNNNsbbbbbsNNNNsNNNNNsN ", }, - { " ", " ", - " N N N N ", " ", - " ", " ", - " ", " ", - " N N N N ", " ", - " ", " ", - " ", " ", - " ", " ", - " ", " ", - " ", " ", - " ", " ", - " ", " N N NbbbbbN N N ", }, - { " NNN NNN NNN NNN ", "NbbbN NbbbN NbbbN NbbbN", - "NbbbN NbbbN NbbbN NbbbN", "NbbbNNNbbbN NbbbNNNbbbN", - " NNN NNN NNN NNN ", " N N N N ", - " NNN NNN NNN NNN ", "NbbbNNNbbbN NbbbNNNbbbN", - "NbbbN NbbbN NbbbN NbbbN", "NbbbN NbbbN NbbbN NbbbN", - " NNN NNN NNN NNN ", " ", - " ", " ", - " ", " ", - " ", " ", - " ", " ", - " ", " ", - " ", " N N NsNsN N N ", }, - { " ", " CCC CCC CCC CCC ", - " CbC CbC CbC CbC ", " CCCCCCCCC CCCCCCCCC ", - " C C C C ", " C C C C ", - " C C C C ", " CCCCCCCCC CCCCCCCCC ", - " CbC CbC CbC CbC ", " CCC CCC CCC CCC ", - " ", " ", - " ", " ", - " ", " ", - " ", " ", - " ", " ", - " ", " ", - " ", " N N NbN N N ", }, - { " ", " CCC CCC CCC CCC ", - " CbC CbC CbC CbC ", " CCCCCCCCC CCCCCCCCC ", - " C C C C ", " C C C C ", - " C C C C ", " CCCCCCCCC CCCCCCCCC ", - " CbC CbC CbC CbC ", " CCC CCC CCC CCC ", - " ", " ", - " ", " ", - " ", " ", - " ", " ", - " ", " ", - " ", " ", - " ", " N N NbN N N ", }, - { " ", " CCC CCC N N CCC CCC ", - " CbC CbC N N CbC CbC ", " CCCCCCCCC N N CCCCCCCCC ", - " C C C C ", " C C C C ", - " C C C C ", " CCCCCCCCC N N CCCCCCCCC ", - " CbC CbC N N CbC CbC ", " CCC CCC N N CCC CCC ", - " ", " ", - " ", " NNN NNN NNN NNN ", - " ", " ", - " ", " ", - " ", " NNN NNN NNN NNN ", - " ", " ", - " ", " NNN NNN NbN NNN NNN ", }, - { " NNN NNN N N NNN NNN ", "NbbbN NbbNCCCb bCCCNbbN NbbbN", - "NbbbN NbbNCCCb bCCCNbbN NbbbN", "NbbbNNNbbNCCCb bCCCNbbNNNbbbN", - " NNN NNN N N NNN NNN ", " N N N N ", - " NNN NNN N N NNN NNN ", "NbbbNNNbbNCCCb bCCCNbbNNNbbbN", - "NbbbN NbbNCCCb bCCCNbbN NbbbN", "NNNN NNNCCCb bCCCNNN NNNN", - " CCC CCC N N CCC CCC ", " CCC CCC CCC CCC ", - " CCC CCC CCC CCC ", "NbbbN NbbbN NbbbN NbbbN", - " N N N N ", " N N N N ", - " ", " N N N N ", - " N N N N ", "NbbbN NbbbN NbbbN NbbbN", - " CCC CCC CCC CCC ", " CCC CCC CCC CCC ", - " CCC CCC CCC CCC ", "NbbbN NbbbN NbN NbbbN NbbbN", }, - { " N N N N ", " bCCCb bCCCb ", - " N sbbbbbNNsNNbbbbbs N ", " bCCCb bCCCb ", - " N N N N ", " ", - " N N N N ", " bCCCb bCCCb ", - " s sbbbbbNNsNNbbbbbs s ", "NbbbN NbbNCCCb bCCCNbbN NbbbN", - " CbC CbC N N CbC CbC ", " CbC CbC CbC CbC ", - " CbC CbC CbC CbC ", "NbbbN NbbbN NbbbN NbbbN", - " NNN NNN NNN NNN ", " NNN NNN NNN NNN ", - " s s s s ", " NNN NNN NNN NNN ", - " NNN NNN NNN NNN ", "NbbbN NbbbN NbbbN NbbbN", - " CbC CbC CbC CbC ", " CbC CbC CbC CbC ", - " CbC CbC CbC CbC ", "NbbbN NbbbNNNNNsNsNNNNNbbbN NbbbN", }, - { " N N N N ", " bCCCb bCCCb ", - " N bCCCb bCCCb N ", " bCCCb bCCCb ", - " NCCCN NCCCN ", " NCCCN NCCCN ", - " NCCCN NCCCN ", " bCCCb bCCCb ", - " bCCCb bCCCb ", "NbbbNNNbbNCCCb bCCCNbbNNNbbbN", - " CCCCCCCCC N N CCCCCCCCC ", " CCCCCCCCC CCCCCCCCC ", - " CCCCCCCCC CCCCCCCCC ", "NbbbNNNbbbN NbbbNNNbbbN", - " N N N N ", " N N N N ", - " ", " N N N N ", - " N N N N ", "NbbbNNNbbbN NbbbNNNbbbN", - " CCCCCCCCC CCCCCCCCC ", " CCCCCCCCC CCCCCCCCC ", - " CCCCCCCCC CCCCCCCCC ", "NbbbNNNbbbN NbN NbbbNNNbbbN", }, - { " ", " N N N N ", - " N N N N N N ", " NCCCN NCCCN ", - " ", " ", - " ", " NCCCN NCCCN ", - " N N N N ", " NNN NN N N NN NNN ", - " C C C C ", " C C C C ", - " C C C C ", " NNN NNN NNN NNN ", - " ", " ", - " ", " ", - " ", " NNN NNN NNN NNN ", - " C C C C ", " C C C C ", - " C C C C ", " NNN NNN NbN NNN NNN ", }, - { " ", " ", - " s s ", " s NCCCN NCCCN s ", - " ", " ", - " ", " NCCCN NCCCN ", - " ", " N N N N ", - " C C C C ", " C C C C ", - " C C C C ", " N N N N ", - " ", " ", - " ", " ", - " ", " N N N N ", - " C C C C ", " C C C C ", - " C C C C ", " N N NbN N N ", }, - { " ", " N N N N ", - " s N N N N s ", " s NCCCN NCCCN s ", - " ", " ", - " ", " NCCCN NCCCN ", - " N N N N ", " NNN NN N N NN NNN ", - " C C C C ", " C C C C ", - " C C C C ", " NNN NNN NNN NNN ", - " ", " ", - " ", " ", - " ", " NNN NNN NNN NNN ", - " C C C C ", " C C C C ", - " C C C C ", " NNN NNN NbN NNN NNN ", }, - { " N N N N ", " bCCCb bCCCb ", - " ss bCCCb bCCCb ss ", " bCCCb bCCCb ", - " s NCCCN NCCCN s ", " s NCCCN NCCCN s ", - " NCCCN NCCCN ", " bCCCb bCCCb ", - " bCCCb bCCCb ", "NbbbNNNbbNCCCb bCCCNbbNNNbbbN", - " CCCCCCCCC N N CCCCCCCCC ", " CCCCCCCCC CCCCCCCCC ", - " CCCCCCCCC CCCCCCCCC ", "NbbbNNNbbbN NbbbNNNbbbN", - " N N N N ", " N N N N ", - " ", " N N N N ", - " N N N N ", "NbbbNNNbbbN NbbbNNNbbbN", - " CCCCCCCCC CCCCCCCCC ", " CCCCCCCCC CCCCCCCCC ", - " CCCCCCCCC CCCCCCCCC ", "NbbbNNNbbbN NbN NbbbNNNbbbN", }, - { " N N N N ", " bCCCb bCCCb ", - " NNNbbbbbNNsNNbbbbbNNN ", " ss bCCCb bCCCb ss ", - " s N N N N s ", " s s ", - " N N N N N N ", " N bCCCb bCCCb N ", - " N sbbbbbNNsNNbbbbbs N ", "NbbbN NbbNCCCb bCCCNbbN NbbbN", - " CbC CbC N N CbC CbC ", " CbC CbC CbC CbC ", - " CbC CbC CbC CbC ", "NbbbN NbbbN NbbbN NbbbN", - " NNN NNN NNN NNN ", " NNN NNN NNN NNN ", - " s s s s ", " NNN NNN NNN NNN ", - " NNN NNN NNN NNN ", "NbbbN NbbbN NbbbN NbbbN", - " CbC CbC CbC CbC ", " CbC CbC CbC CbC ", - " CbC CbC CbC CbC ", "NbbbN NbbbNNNNNsNsNNNNNbbbN NbbbN", }, - { " N N N N ", " bCCCb bCCCb ", - " bCCCb bCCCb ", " bCCCb bCCCb ", - " N N N N ", " ", - " N N N N ", " bCCCb bCCCb ", - " bCCCb bCCCb ", "NbbbN NbbNCCCb bCCCNbbN NbbbN", - " CCC CCC N N CCC CCC ", " CCC CCC CCC CCC ", - " CCC CCC CCC CCC ", "NbbbN NbbbN NbbbN NbbbN", - " N N N N ", " N N N N ", - " ", " N N N N ", - " N N N N ", "NbbbN NbbbN NbbbN NbbbN", - " CCC CCC CCC CCC ", " CCC CCC CCC CCC ", - " CCC CCC CCC CCC ", "NbbbN NbbbN N N NbbbN NbbbN", }, - { " ", " N N N N ", - " N N N N ", " N N N N ", - " ", " ", - " ", " N N N N ", - " N N N N ", " NNN NNN N N NNN NNN ", - " ", " ", - " ", " NNN NNN NNN NNN ", - " ", " ", - " ", " ", - " ", " NNN NNN NNN NNN ", - " ", " ", - " ", " NNN NNN NNN NNN ", } }; + private static final String[][] structure_string = new String[][] { { " ", + " N N N N ", " N N N N ", " N N N N ", + " ", " ", " ", + " N N N N ", " N N N N ", " NNN NNN N N NNN NNN ", + " ", " ", " ", + " NNN NNN NNN NNN ", " ", " ", + " ", " ", " ", + " NNN NNN NNN NNN ", " ", " ", + " ", " NNN NNN NNN NNN " }, + { " N N N N ", " bCCCb bCCCb ", " bCCCb bCCCb ", + " bCCCb bCCCb ", " N N N N ", + " ", " N N N N ", + " bCCCb bCCCb ", " bCCCb bCCCb ", + "NbbbN NbbNCCCb bCCCNbbN NbbbN", " CCC CCC N N CCC CCC ", + " CCC CCC CCC CCC ", " CCC CCC CCC CCC ", + "NbbbN NbbbN NbbbN NbbbN", " N N N N ", + " N N N N ", " ", + " N N N N ", " N N N N ", + "NbbbN NbbbN NbbbN NbbbN", " CCC CCC CCC CCC ", + " CCC CCC CCC CCC ", " CCC CCC CCC CCC ", + "NbbbN NbbbN N N NbbbN NbbbN", }, + { " N N N N ", " bCCCb bCCCb ", " NNNbbbbbNNsNNbbbbbNNN ", + " ss bCCCb bCCCb ss ", " s N N N N s ", + " s s ", " N N N N N N ", + " N bCCCb bCCCb N ", " N sbbbbbNNsNNbbbbbs N ", + "NbbbN NbbNCCCb bCCCNbbN NbbbN", " CbC CbC N N CbC CbC ", + " CbC CbC CbC CbC ", " CbC CbC CbC CbC ", + "NbbbN NbbbN NbbbN NbbbN", " NNN NNN NNN NNN ", + " NNN NNN NNN NNN ", " s s s s ", + " NNN NNN NNN NNN ", " NNN NNN NNN NNN ", + "NbbbN NbbbN NbbbN NbbbN", " CbC CbC CbC CbC ", + " CbC CbC CbC CbC ", " CbC CbC CbC CbC ", + "NbbbN NbbbNNNNNsNsNNNNNbbbN NbbbN", }, + { " N N N N ", " bCCCb bCCCb ", " ss bCCCb bCCCb ss ", + " bCCCb bCCCb ", " s NCCCN NCCCN s ", + " s NCCCN NCCCN s ", " NCCCN NCCCN ", + " bCCCb bCCCb ", " bCCCb bCCCb ", + "NbbbNNNbbNCCCb bCCCNbbNNNbbbN", " CCCCCCCCC N N CCCCCCCCC ", + " CCCCCCCCC CCCCCCCCC ", " CCCCCCCCC CCCCCCCCC ", + "NbbbNNNbbbN NbbbNNNbbbN", " N N N N ", + " N N N N ", " ", + " N N N N ", " N N N N ", + "NbbbNNNbbbN NbbbNNNbbbN", " CCCCCCCCC CCCCCCCCC ", + " CCCCCCCCC CCCCCCCCC ", " CCCCCCCCC CCCCCCCCC ", + "NbbbNNNbbbN NbN NbbbNNNbbbN", }, + { " ", " N N N N ", " s N N N N s ", + " s NCCCN NCCCN s ", " ", + " ", " ", + " NCCCN NCCCN ", " N N N N ", + " NNN NN N N NN NNN ", " C C C C ", + " C C C C ", " C C C C ", + " NNN NNN NNN NNN ", " ", + " ", " ", + " ", " ", + " NNN NNN NNN NNN ", " C C C C ", + " C C C C ", " C C C C ", + " NNN NNN NbN NNN NNN ", }, + { " ", " ", " s s ", + " s NCCCN NCCCN s ", " ", + " ", " ", + " NCCCN NCCCN ", " ", + " N N N N ", " C C C C ", + " C C C C ", " C C C C ", + " N N N N ", " ", + " ", " ", + " ", " ", + " N N N N ", " C C C C ", + " C C C C ", " C C C C ", + " N N NbN N N ", }, + { " ", " N N N N ", " N N N N N N ", + " NCCCN NCCCN ", " ", + " ", " ", + " NCCCN NCCCN ", " N N N N ", + " NNN NN N N NN NNN ", " C C C C ", + " C C C C ", " C C C C ", + " NNN NNN NNN NNN ", " ", + " ", " ", + " ", " ", + " NNN NNN NNN NNN ", " C C C C ", + " C C C C ", " C C C C ", + " NNN NNN NbN NNN NNN ", }, + { " N N N N ", " bCCCb bCCCb ", " N bCCCb bCCCb N ", + " bCCCb bCCCb ", " NCCCN NCCCN ", + " NCCCN NCCCN ", " NCCCN NCCCN ", + " bCCCb bCCCb ", " bCCCb bCCCb ", + "NbbbNNNbbNCCCb bCCCNbbNNNbbbN", " CCCCCCCCC N N CCCCCCCCC ", + " CCCCCCCCC CCCCCCCCC ", " CCCCCCCCC CCCCCCCCC ", + "NbbbNNNbbbN NbbbNNNbbbN", " N N N N ", + " N N N N ", " ", + " N N N N ", " N N N N ", + "NbbbNNNbbbN NbbbNNNbbbN", " CCCCCCCCC CCCCCCCCC ", + " CCCCCCCCC CCCCCCCCC ", " CCCCCCCCC CCCCCCCCC ", + "NbbbNNNbbbN NbN NbbbNNNbbbN", }, + { " N N N N ", " bCCCb bCCCb ", " N sbbbbbNNsNNbbbbbs N ", + " bCCCb bCCCb ", " N N N N ", + " ", " N N N N ", + " bCCCb bCCCb ", " s sbbbbbNNsNNbbbbbs s ", + "NbbbN NbbNCCCb bCCCNbbN NbbbN", " CbC CbC N N CbC CbC ", + " CbC CbC CbC CbC ", " CbC CbC CbC CbC ", + "NbbbN NbbbN NbbbN NbbbN", " NNN NNN NNN NNN ", + " NNN NNN NNN NNN ", " s s s s ", + " NNN NNN NNN NNN ", " NNN NNN NNN NNN ", + "NbbbN NbbbN NbbbN NbbbN", " CbC CbC CbC CbC ", + " CbC CbC CbC CbC ", " CbC CbC CbC CbC ", + "NbbbN NbbbNNNNNsNsNNNNNbbbN NbbbN", }, + { " NNN NNN N N NNN NNN ", "NbbbN NbbNCCCb bCCCNbbN NbbbN", "NbbbN NbbNCCCb bCCCNbbN NbbbN", + "NbbbNNNbbNCCCb bCCCNbbNNNbbbN", " NNN NNN N N NNN NNN ", + " N N N N ", " NNN NNN N N NNN NNN ", + "NbbbNNNbbNCCCb bCCCNbbNNNbbbN", "NbbbN NbbNCCCb bCCCNbbN NbbbN", + "NNNN NNNCCCb bCCCNNN NNNN", " CCC CCC N N CCC CCC ", + " CCC CCC CCC CCC ", " CCC CCC CCC CCC ", + "NbbbN NbbbN NbbbN NbbbN", " N N N N ", + " N N N N ", " ", + " N N N N ", " N N N N ", + "NbbbN NbbbN NbbbN NbbbN", " CCC CCC CCC CCC ", + " CCC CCC CCC CCC ", " CCC CCC CCC CCC ", + "NbbbN NbbbN NbN NbbbN NbbbN", }, + { " ", " CCC CCC N N CCC CCC ", " CbC CbC N N CbC CbC ", + " CCCCCCCCC N N CCCCCCCCC ", " C C C C ", + " C C C C ", " C C C C ", + " CCCCCCCCC N N CCCCCCCCC ", " CbC CbC N N CbC CbC ", + " CCC CCC N N CCC CCC ", " ", + " ", " ", + " NNN NNN NNN NNN ", " ", + " ", " ", + " ", " ", + " NNN NNN NNN NNN ", " ", + " ", " ", + " NNN NNN NbN NNN NNN ", }, + { " ", " CCC CCC CCC CCC ", " CbC CbC CbC CbC ", + " CCCCCCCCC CCCCCCCCC ", " C C C C ", + " C C C C ", " C C C C ", + " CCCCCCCCC CCCCCCCCC ", " CbC CbC CbC CbC ", + " CCC CCC CCC CCC ", " ", + " ", " ", + " ", " ", + " ", " ", + " ", " ", + " ", " ", + " ", " ", + " N N NbN N N ", }, + { " ", " CCC CCC CCC CCC ", " CbC CbC CbC CbC ", + " CCCCCCCCC CCCCCCCCC ", " C C C C ", + " C C C C ", " C C C C ", + " CCCCCCCCC CCCCCCCCC ", " CbC CbC CbC CbC ", + " CCC CCC CCC CCC ", " ", + " ", " ", + " ", " ", + " ", " ", + " ", " ", + " ", " ", + " ", " ", + " N N NbN N N ", }, + { " NNN NNN NNN NNN ", "NbbbN NbbbN NbbbN NbbbN", "NbbbN NbbbN NbbbN NbbbN", + "NbbbNNNbbbN NbbbNNNbbbN", " NNN NNN NNN NNN ", + " N N N N ", " NNN NNN NNN NNN ", + "NbbbNNNbbbN NbbbNNNbbbN", "NbbbN NbbbN NbbbN NbbbN", + "NbbbN NbbbN NbbbN NbbbN", " NNN NNN NNN NNN ", + " ", " ", + " ", " ", + " ", " ", + " ", " ", + " ", " ", + " ", " ", + " N N NsNsN N N ", }, + { " ", " ", " N N N N ", + " ", " ", + " ", " ", + " ", " N N N N ", + " ", " ", + " ", " ", + " ", " ", + " ", " ", + " ", " ", + " ", " ", + " ", " ", + " N N NbbbbbN N N ", }, + { " ", " ", " N N N N ", + " ", " ", + " ", " ", + " ", " N N N N ", + " ", " ", + " ", " ", + " ", " ", + " ", " ", + " ", " ", + " ", " ", + " ", " N ", + " NsNNNNNsNNNNsbbbbbsNNNNsNNNNNsN ", }, + { " ", " ", " s s s s ", + " ", " ", + " ", " ", + " ", " s s s s ", + " ", " ", + " ", " ", + " ", " ", + " ", " ", + " ", " ", + " ", " ", + " ~ ", " NNN ", + " NbbbbbNbbbbNbbbbbNbbbbNbbbbbN ", }, + { " ", " ", " N N N N ", + " ", " ", + " ", " ", + " ", " N N N N ", + " ", " ", + " ", " ", + " ", " ", + " ", " ", + " ", " ", + " ", " ", + " ", " N ", + " NsNNNNNsNNNNsbbbbbsNNNNsNNNNNsN ", }, + { " ", " ", " N N N N ", + " ", " ", + " ", " ", + " ", " N N N N ", + " ", " ", + " ", " ", + " ", " ", + " ", " ", + " ", " ", + " ", " ", + " ", " ", + " N N NbbbbbN N N ", }, + { " NNN NNN NNN NNN ", "NbbbN NbbbN NbbbN NbbbN", "NbbbN NbbbN NbbbN NbbbN", + "NbbbNNNbbbN NbbbNNNbbbN", " NNN NNN NNN NNN ", + " N N N N ", " NNN NNN NNN NNN ", + "NbbbNNNbbbN NbbbNNNbbbN", "NbbbN NbbbN NbbbN NbbbN", + "NbbbN NbbbN NbbbN NbbbN", " NNN NNN NNN NNN ", + " ", " ", + " ", " ", + " ", " ", + " ", " ", + " ", " ", + " ", " ", + " N N NsNsN N N ", }, + { " ", " CCC CCC CCC CCC ", " CbC CbC CbC CbC ", + " CCCCCCCCC CCCCCCCCC ", " C C C C ", + " C C C C ", " C C C C ", + " CCCCCCCCC CCCCCCCCC ", " CbC CbC CbC CbC ", + " CCC CCC CCC CCC ", " ", + " ", " ", + " ", " ", + " ", " ", + " ", " ", + " ", " ", + " ", " ", + " N N NbN N N ", }, + { " ", " CCC CCC CCC CCC ", " CbC CbC CbC CbC ", + " CCCCCCCCC CCCCCCCCC ", " C C C C ", + " C C C C ", " C C C C ", + " CCCCCCCCC CCCCCCCCC ", " CbC CbC CbC CbC ", + " CCC CCC CCC CCC ", " ", + " ", " ", + " ", " ", + " ", " ", + " ", " ", + " ", " ", + " ", " ", + " N N NbN N N ", }, + { " ", " CCC CCC N N CCC CCC ", " CbC CbC N N CbC CbC ", + " CCCCCCCCC N N CCCCCCCCC ", " C C C C ", + " C C C C ", " C C C C ", + " CCCCCCCCC N N CCCCCCCCC ", " CbC CbC N N CbC CbC ", + " CCC CCC N N CCC CCC ", " ", + " ", " ", + " NNN NNN NNN NNN ", " ", + " ", " ", + " ", " ", + " NNN NNN NNN NNN ", " ", + " ", " ", + " NNN NNN NbN NNN NNN ", }, + { " NNN NNN N N NNN NNN ", "NbbbN NbbNCCCb bCCCNbbN NbbbN", "NbbbN NbbNCCCb bCCCNbbN NbbbN", + "NbbbNNNbbNCCCb bCCCNbbNNNbbbN", " NNN NNN N N NNN NNN ", + " N N N N ", " NNN NNN N N NNN NNN ", + "NbbbNNNbbNCCCb bCCCNbbNNNbbbN", "NbbbN NbbNCCCb bCCCNbbN NbbbN", + "NNNN NNNCCCb bCCCNNN NNNN", " CCC CCC N N CCC CCC ", + " CCC CCC CCC CCC ", " CCC CCC CCC CCC ", + "NbbbN NbbbN NbbbN NbbbN", " N N N N ", + " N N N N ", " ", + " N N N N ", " N N N N ", + "NbbbN NbbbN NbbbN NbbbN", " CCC CCC CCC CCC ", + " CCC CCC CCC CCC ", " CCC CCC CCC CCC ", + "NbbbN NbbbN NbN NbbbN NbbbN", }, + { " N N N N ", " bCCCb bCCCb ", " N sbbbbbNNsNNbbbbbs N ", + " bCCCb bCCCb ", " N N N N ", + " ", " N N N N ", + " bCCCb bCCCb ", " s sbbbbbNNsNNbbbbbs s ", + "NbbbN NbbNCCCb bCCCNbbN NbbbN", " CbC CbC N N CbC CbC ", + " CbC CbC CbC CbC ", " CbC CbC CbC CbC ", + "NbbbN NbbbN NbbbN NbbbN", " NNN NNN NNN NNN ", + " NNN NNN NNN NNN ", " s s s s ", + " NNN NNN NNN NNN ", " NNN NNN NNN NNN ", + "NbbbN NbbbN NbbbN NbbbN", " CbC CbC CbC CbC ", + " CbC CbC CbC CbC ", " CbC CbC CbC CbC ", + "NbbbN NbbbNNNNNsNsNNNNNbbbN NbbbN", }, + { " N N N N ", " bCCCb bCCCb ", " N bCCCb bCCCb N ", + " bCCCb bCCCb ", " NCCCN NCCCN ", + " NCCCN NCCCN ", " NCCCN NCCCN ", + " bCCCb bCCCb ", " bCCCb bCCCb ", + "NbbbNNNbbNCCCb bCCCNbbNNNbbbN", " CCCCCCCCC N N CCCCCCCCC ", + " CCCCCCCCC CCCCCCCCC ", " CCCCCCCCC CCCCCCCCC ", + "NbbbNNNbbbN NbbbNNNbbbN", " N N N N ", + " N N N N ", " ", + " N N N N ", " N N N N ", + "NbbbNNNbbbN NbbbNNNbbbN", " CCCCCCCCC CCCCCCCCC ", + " CCCCCCCCC CCCCCCCCC ", " CCCCCCCCC CCCCCCCCC ", + "NbbbNNNbbbN NbN NbbbNNNbbbN", }, + { " ", " N N N N ", " N N N N N N ", + " NCCCN NCCCN ", " ", + " ", " ", + " NCCCN NCCCN ", " N N N N ", + " NNN NN N N NN NNN ", " C C C C ", + " C C C C ", " C C C C ", + " NNN NNN NNN NNN ", " ", + " ", " ", + " ", " ", + " NNN NNN NNN NNN ", " C C C C ", + " C C C C ", " C C C C ", + " NNN NNN NbN NNN NNN ", }, + { " ", " ", " s s ", + " s NCCCN NCCCN s ", " ", + " ", " ", + " NCCCN NCCCN ", " ", + " N N N N ", " C C C C ", + " C C C C ", " C C C C ", + " N N N N ", " ", + " ", " ", + " ", " ", + " N N N N ", " C C C C ", + " C C C C ", " C C C C ", + " N N NbN N N ", }, + { " ", " N N N N ", " s N N N N s ", + " s NCCCN NCCCN s ", " ", + " ", " ", + " NCCCN NCCCN ", " N N N N ", + " NNN NN N N NN NNN ", " C C C C ", + " C C C C ", " C C C C ", + " NNN NNN NNN NNN ", " ", + " ", " ", + " ", " ", + " NNN NNN NNN NNN ", " C C C C ", + " C C C C ", " C C C C ", + " NNN NNN NbN NNN NNN ", }, + { " N N N N ", " bCCCb bCCCb ", " ss bCCCb bCCCb ss ", + " bCCCb bCCCb ", " s NCCCN NCCCN s ", + " s NCCCN NCCCN s ", " NCCCN NCCCN ", + " bCCCb bCCCb ", " bCCCb bCCCb ", + "NbbbNNNbbNCCCb bCCCNbbNNNbbbN", " CCCCCCCCC N N CCCCCCCCC ", + " CCCCCCCCC CCCCCCCCC ", " CCCCCCCCC CCCCCCCCC ", + "NbbbNNNbbbN NbbbNNNbbbN", " N N N N ", + " N N N N ", " ", + " N N N N ", " N N N N ", + "NbbbNNNbbbN NbbbNNNbbbN", " CCCCCCCCC CCCCCCCCC ", + " CCCCCCCCC CCCCCCCCC ", " CCCCCCCCC CCCCCCCCC ", + "NbbbNNNbbbN NbN NbbbNNNbbbN", }, + { " N N N N ", " bCCCb bCCCb ", " NNNbbbbbNNsNNbbbbbNNN ", + " ss bCCCb bCCCb ss ", " s N N N N s ", + " s s ", " N N N N N N ", + " N bCCCb bCCCb N ", " N sbbbbbNNsNNbbbbbs N ", + "NbbbN NbbNCCCb bCCCNbbN NbbbN", " CbC CbC N N CbC CbC ", + " CbC CbC CbC CbC ", " CbC CbC CbC CbC ", + "NbbbN NbbbN NbbbN NbbbN", " NNN NNN NNN NNN ", + " NNN NNN NNN NNN ", " s s s s ", + " NNN NNN NNN NNN ", " NNN NNN NNN NNN ", + "NbbbN NbbbN NbbbN NbbbN", " CbC CbC CbC CbC ", + " CbC CbC CbC CbC ", " CbC CbC CbC CbC ", + "NbbbN NbbbNNNNNsNsNNNNNbbbN NbbbN", }, + { " N N N N ", " bCCCb bCCCb ", " bCCCb bCCCb ", + " bCCCb bCCCb ", " N N N N ", + " ", " N N N N ", + " bCCCb bCCCb ", " bCCCb bCCCb ", + "NbbbN NbbNCCCb bCCCNbbN NbbbN", " CCC CCC N N CCC CCC ", + " CCC CCC CCC CCC ", " CCC CCC CCC CCC ", + "NbbbN NbbbN NbbbN NbbbN", " N N N N ", + " N N N N ", " ", + " N N N N ", " N N N N ", + "NbbbN NbbbN NbbbN NbbbN", " CCC CCC CCC CCC ", + " CCC CCC CCC CCC ", " CCC CCC CCC CCC ", + "NbbbN NbbbN N N NbbbN NbbbN", }, + { " ", " N N N N ", " N N N N ", + " N N N N ", " ", + " ", " ", + " N N N N ", " N N N N ", + " NNN NNN N N NNN NNN ", " ", + " ", " ", + " NNN NNN NNN NNN ", " ", + " ", " ", + " ", " ", + " NNN NNN NNN NNN ", " ", + " ", " ", + " NNN NNN NNN NNN ", } }; protected static final int DIM_TRANS_CASING = 12; protected static final int DIM_INJECTION_CASING = 13; @@ -480,44 +475,22 @@ public class GT_MetaTileEntity_PlasmaForge extends GT_MetaTileEntity_AbstractMul private boolean isMultiChunkloaded = true; protected static final String STRUCTURE_PIECE_MAIN = "main"; - private static final IStructureDefinition STRUCTURE_DEFINITION = StructureDefinition.builder() - .addShape( - STRUCTURE_PIECE_MAIN, - structure_string) - .addElement( - 'C', - ofCoil( - GT_MetaTileEntity_PlasmaForge::setCoilLevel, - GT_MetaTileEntity_PlasmaForge::getCoilLevel)) - .addElement( - 'b', - buildHatchAdder( - GT_MetaTileEntity_PlasmaForge.class).atLeast( - InputHatch, - OutputHatch, - InputBus, - OutputBus, - Energy, - ExoticEnergy, - Maintenance) - .casingIndex( - DIM_INJECTION_CASING) - .dot( - 3) - .buildAndChain( - GregTech_API.sBlockCasings1, - DIM_INJECTION_CASING)) - .addElement( - 'N', - ofBlock( - GregTech_API.sBlockCasings1, - DIM_TRANS_CASING)) - .addElement( - 's', - ofBlock( - GregTech_API.sBlockCasings1, - DIM_BRIDGE_CASING)) - .build(); + private static final IStructureDefinition STRUCTURE_DEFINITION = StructureDefinition + .builder() + .addShape(STRUCTURE_PIECE_MAIN, structure_string) + .addElement( + 'C', + ofCoil(GT_MetaTileEntity_PlasmaForge::setCoilLevel, GT_MetaTileEntity_PlasmaForge::getCoilLevel)) + .addElement( + 'b', + buildHatchAdder(GT_MetaTileEntity_PlasmaForge.class) + .atLeast(InputHatch, OutputHatch, InputBus, OutputBus, Energy, ExoticEnergy, Maintenance) + .casingIndex(DIM_INJECTION_CASING) + .dot(3) + .buildAndChain(GregTech_API.sBlockCasings1, DIM_INJECTION_CASING)) + .addElement('N', ofBlock(GregTech_API.sBlockCasings1, DIM_TRANS_CASING)) + .addElement('s', ofBlock(GregTech_API.sBlockCasings1, DIM_BRIDGE_CASING)) + .build(); @Override protected boolean addBottomHatch(IGregTechTileEntity aTileEntity, int aBaseCasingIndex) { @@ -542,87 +515,87 @@ public class GT_MetaTileEntity_PlasmaForge extends GT_MetaTileEntity_AbstractMul protected GT_Multiblock_Tooltip_Builder createTooltip() { GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder(); tt.addInfo("Transcending Dimensional Boundaries.") - .addInfo( - "Takes " + EnumChatFormatting.RED - + GT_Utility.formatNumbers(max_efficiency_time_in_ticks / (3600 * 20)) - + EnumChatFormatting.GRAY - + " hours of continuous run time to fully breach dimensional") - .addInfo("boundaries and achieve maximum efficiency. This reduces fuel") - .addInfo( - "consumption by up to " + EnumChatFormatting.RED - + GT_Utility.formatNumbers(100 * maximum_discount) - + "%" - + EnumChatFormatting.GRAY - + ". Supports overclocking beyond MAX voltage.") - .addInfo(AuthorColen) - .addSeparator() - .beginStructureBlock(33, 24, 33, false) - .addStructureInfo("DTPF Structure is too complex! See schematic for details.") - .addStructureInfo(EnumChatFormatting.GOLD + "2,112" + EnumChatFormatting.GRAY + " Heating coils required.") - .addStructureInfo( - EnumChatFormatting.GOLD + "120" + EnumChatFormatting.GRAY + " Dimensional bridge blocks required.") - .addStructureInfo( - EnumChatFormatting.GOLD + "1,270" - + EnumChatFormatting.GRAY - + " Dimensional injection casings required.") - .addStructureInfo( - EnumChatFormatting.GOLD + "2,121" - + EnumChatFormatting.GRAY - + " Dimensionally transcendent casings required.") - .addStructureInfo("--------------------------------------------") - .addStructureInfo( - "Requires " + EnumChatFormatting.GOLD - + "1" - + EnumChatFormatting.GRAY - + "-" - + EnumChatFormatting.GOLD - + "2" - + EnumChatFormatting.GRAY - + " energy hatches or " - + EnumChatFormatting.GOLD - + "1" - + EnumChatFormatting.GRAY - + " TT energy hatch.") - .addStructureInfo( - "Requires " + EnumChatFormatting.GOLD + "1" + EnumChatFormatting.GRAY + " maintenance hatch.") - .addStructureInfo( - "Requires " + EnumChatFormatting.GOLD - + min_input_hatch - + EnumChatFormatting.GRAY - + "-" - + EnumChatFormatting.GOLD - + max_input_hatch - + EnumChatFormatting.GRAY - + " input hatches.") - .addStructureInfo( - "Requires " + EnumChatFormatting.GOLD - + min_output_hatch - + EnumChatFormatting.GRAY - + "-" - + EnumChatFormatting.GOLD - + max_output_hatch - + EnumChatFormatting.GRAY - + " output hatches.") - .addStructureInfo( - "Requires " + EnumChatFormatting.GOLD - + min_input_bus - + EnumChatFormatting.GRAY - + "-" - + EnumChatFormatting.GOLD - + max_input_bus - + EnumChatFormatting.GRAY - + " input busses.") - .addStructureInfo( - "Requires " + EnumChatFormatting.GOLD - + min_output_bus - + EnumChatFormatting.GRAY - + "-" - + EnumChatFormatting.GOLD - + max_input_bus - + EnumChatFormatting.GRAY - + " output busses.") - .addStructureInfo("--------------------------------------------") - .toolTipFinisher("Gregtech"); + .addInfo( + "Takes " + EnumChatFormatting.RED + + GT_Utility.formatNumbers(max_efficiency_time_in_ticks / (3600 * 20)) + + EnumChatFormatting.GRAY + + " hours of continuous run time to fully breach dimensional") + .addInfo("boundaries and achieve maximum efficiency. This reduces fuel") + .addInfo( + "consumption by up to " + EnumChatFormatting.RED + + GT_Utility.formatNumbers(100 * maximum_discount) + + "%" + + EnumChatFormatting.GRAY + + ". Supports overclocking beyond MAX voltage.") + .addInfo(AuthorColen) + .addSeparator() + .beginStructureBlock(33, 24, 33, false) + .addStructureInfo("DTPF Structure is too complex! See schematic for details.") + .addStructureInfo(EnumChatFormatting.GOLD + "2,112" + EnumChatFormatting.GRAY + " Heating coils required.") + .addStructureInfo( + EnumChatFormatting.GOLD + "120" + EnumChatFormatting.GRAY + " Dimensional bridge blocks required.") + .addStructureInfo( + EnumChatFormatting.GOLD + "1,270" + + EnumChatFormatting.GRAY + + " Dimensional injection casings required.") + .addStructureInfo( + EnumChatFormatting.GOLD + "2,121" + + EnumChatFormatting.GRAY + + " Dimensionally transcendent casings required.") + .addStructureInfo("--------------------------------------------") + .addStructureInfo( + "Requires " + EnumChatFormatting.GOLD + + "1" + + EnumChatFormatting.GRAY + + "-" + + EnumChatFormatting.GOLD + + "2" + + EnumChatFormatting.GRAY + + " energy hatches or " + + EnumChatFormatting.GOLD + + "1" + + EnumChatFormatting.GRAY + + " TT energy hatch.") + .addStructureInfo( + "Requires " + EnumChatFormatting.GOLD + "1" + EnumChatFormatting.GRAY + " maintenance hatch.") + .addStructureInfo( + "Requires " + EnumChatFormatting.GOLD + + min_input_hatch + + EnumChatFormatting.GRAY + + "-" + + EnumChatFormatting.GOLD + + max_input_hatch + + EnumChatFormatting.GRAY + + " input hatches.") + .addStructureInfo( + "Requires " + EnumChatFormatting.GOLD + + min_output_hatch + + EnumChatFormatting.GRAY + + "-" + + EnumChatFormatting.GOLD + + max_output_hatch + + EnumChatFormatting.GRAY + + " output hatches.") + .addStructureInfo( + "Requires " + EnumChatFormatting.GOLD + + min_input_bus + + EnumChatFormatting.GRAY + + "-" + + EnumChatFormatting.GOLD + + max_input_bus + + EnumChatFormatting.GRAY + + " input busses.") + .addStructureInfo( + "Requires " + EnumChatFormatting.GOLD + + min_output_bus + + EnumChatFormatting.GRAY + + "-" + + EnumChatFormatting.GOLD + + max_input_bus + + EnumChatFormatting.GRAY + + " output busses.") + .addStructureInfo("--------------------------------------------") + .toolTipFinisher("Gregtech"); return tt; } @@ -634,22 +607,21 @@ public class GT_MetaTileEntity_PlasmaForge extends GT_MetaTileEntity_AbstractMul @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { if (aSide == aFacing) { if (aActive) return new ITexture[] { casingTexturePages[0][DIM_BRIDGE_CASING], TextureFactory.builder() - .addIcon( - OVERLAY_DTPF_ON) - .extFacing() - .build(), - TextureFactory.builder() - .addIcon(OVERLAY_FUSION1_GLOW) - .extFacing() - .glow() - .build() }; + .addIcon(OVERLAY_DTPF_ON) + .extFacing() + .build(), + TextureFactory.builder() + .addIcon(OVERLAY_FUSION1_GLOW) + .extFacing() + .glow() + .build() }; return new ITexture[] { casingTexturePages[0][DIM_BRIDGE_CASING], TextureFactory.builder() - .addIcon(OVERLAY_DTPF_OFF) - .extFacing() - .build() }; + .addIcon(OVERLAY_DTPF_OFF) + .extFacing() + .build() }; } return new ITexture[] { casingTexturePages[0][DIM_BRIDGE_CASING] }; } @@ -692,12 +664,8 @@ public class GT_MetaTileEntity_PlasmaForge extends GT_MetaTileEntity_AbstractMul long tTotalEU = GT_ExoticEnergyInputHelper.getTotalEuMulti(getExoticAndNormalEnergyHatchList()); // Look up recipe. If not found it will return null. - GT_Recipe tRecipe_0 = GT_Recipe.GT_Recipe_Map.sPlasmaForgeRecipes.findRecipe( - getBaseMetaTileEntity(), - false, - tTotalEU, - tFluids, - tItems); + GT_Recipe tRecipe_0 = GT_Recipe.GT_Recipe_Map.sPlasmaForgeRecipes + .findRecipe(getBaseMetaTileEntity(), false, tTotalEU, tFluids, tItems); // Check if recipe found. if (tRecipe_0 == null) return false; @@ -847,69 +815,67 @@ public class GT_MetaTileEntity_PlasmaForge extends GT_MetaTileEntity_AbstractMul for (GT_MetaTileEntity_Hatch tHatch : mExoticEnergyHatches) { if (isValidMetaTileEntity(tHatch)) { storedEnergy += tHatch.getBaseMetaTileEntity() - .getStoredEU(); + .getStoredEU(); maxEnergy += tHatch.getBaseMetaTileEntity() - .getEUCapacity(); + .getEUCapacity(); } } return new String[] { "------------ Critical Information ------------", - StatCollector.translateToLocal("GT5U.multiblock.Progress") + ": " - + EnumChatFormatting.GREEN - + GT_Utility.formatNumbers(mProgresstime) - + EnumChatFormatting.RESET - + "t / " - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(mMaxProgresstime) - + EnumChatFormatting.RESET - + "t", - StatCollector.translateToLocal("GT5U.multiblock.energy") + ": " - + EnumChatFormatting.GREEN - + GT_Utility.formatNumbers(storedEnergy) - + EnumChatFormatting.RESET - + " EU / " - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(maxEnergy) - + EnumChatFormatting.RESET - + " EU", - StatCollector.translateToLocal("GT5U.multiblock.usage") + ": " - + EnumChatFormatting.RED - + GT_Utility.formatNumbers(-EU_per_tick) - + EnumChatFormatting.RESET - + " EU/t", - StatCollector.translateToLocal("GT5U.multiblock.mei") + ": " - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers( - GT_ExoticEnergyInputHelper.getAverageInputVoltageMulti( - getExoticAndNormalEnergyHatchList())) - + EnumChatFormatting.RESET - + " EU/t(*" - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers( - GT_ExoticEnergyInputHelper.getMaxWorkingInputAmpsMulti( - getExoticAndNormalEnergyHatchList())) - + EnumChatFormatting.RESET - + "A) " - + StatCollector.translateToLocal("GT5U.machines.tier") - + ": " - + EnumChatFormatting.YELLOW - + VN[GT_Utility.getTier( - GT_ExoticEnergyInputHelper.getTotalEuMulti(getExoticAndNormalEnergyHatchList()))] - + EnumChatFormatting.RESET, - StatCollector.translateToLocal("GT5U.EBF.heat") + ": " - + EnumChatFormatting.GREEN - + GT_Utility.formatNumbers(mHeatingCapacity) - + EnumChatFormatting.RESET - + " K", - "Ticks run: " + EnumChatFormatting.GREEN - + GT_Utility.formatNumbers(running_time) - + EnumChatFormatting.RESET - + ", Fuel Discount: " - + EnumChatFormatting.RED - + GT_Utility.formatNumbers(100 * (1 - discount)) - + EnumChatFormatting.RESET - + "%", - "-----------------------------------------" }; + StatCollector.translateToLocal("GT5U.multiblock.Progress") + ": " + + EnumChatFormatting.GREEN + + GT_Utility.formatNumbers(mProgresstime) + + EnumChatFormatting.RESET + + "t / " + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(mMaxProgresstime) + + EnumChatFormatting.RESET + + "t", + StatCollector.translateToLocal("GT5U.multiblock.energy") + ": " + + EnumChatFormatting.GREEN + + GT_Utility.formatNumbers(storedEnergy) + + EnumChatFormatting.RESET + + " EU / " + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(maxEnergy) + + EnumChatFormatting.RESET + + " EU", + StatCollector.translateToLocal("GT5U.multiblock.usage") + ": " + + EnumChatFormatting.RED + + GT_Utility.formatNumbers(-EU_per_tick) + + EnumChatFormatting.RESET + + " EU/t", + StatCollector.translateToLocal("GT5U.multiblock.mei") + ": " + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers( + GT_ExoticEnergyInputHelper.getAverageInputVoltageMulti(getExoticAndNormalEnergyHatchList())) + + EnumChatFormatting.RESET + + " EU/t(*" + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers( + GT_ExoticEnergyInputHelper.getMaxWorkingInputAmpsMulti(getExoticAndNormalEnergyHatchList())) + + EnumChatFormatting.RESET + + "A) " + + StatCollector.translateToLocal("GT5U.machines.tier") + + ": " + + EnumChatFormatting.YELLOW + + VN[GT_Utility + .getTier(GT_ExoticEnergyInputHelper.getTotalEuMulti(getExoticAndNormalEnergyHatchList()))] + + EnumChatFormatting.RESET, + StatCollector.translateToLocal("GT5U.EBF.heat") + ": " + + EnumChatFormatting.GREEN + + GT_Utility.formatNumbers(mHeatingCapacity) + + EnumChatFormatting.RESET + + " K", + "Ticks run: " + EnumChatFormatting.GREEN + + GT_Utility.formatNumbers(running_time) + + EnumChatFormatting.RESET + + ", Fuel Discount: " + + EnumChatFormatting.RED + + GT_Utility.formatNumbers(100 * (1 - discount)) + + EnumChatFormatting.RESET + + "%", + "-----------------------------------------" }; } public List getExoticAndNormalEnergyHatchList() { @@ -941,32 +907,32 @@ public class GT_MetaTileEntity_PlasmaForge extends GT_MetaTileEntity_AbstractMul int ControllerZCoordinate = ((TileEntity) aBaseMetaTileEntity).zCoord; GT_ChunkManager.requestChunkLoad( - (TileEntity) aBaseMetaTileEntity, - new ChunkCoordIntPair(ControllerXCoordinate, ControllerZCoordinate)); + (TileEntity) aBaseMetaTileEntity, + new ChunkCoordIntPair(ControllerXCoordinate, ControllerZCoordinate)); GT_ChunkManager.requestChunkLoad( - (TileEntity) aBaseMetaTileEntity, - new ChunkCoordIntPair(ControllerXCoordinate + 16, ControllerZCoordinate)); + (TileEntity) aBaseMetaTileEntity, + new ChunkCoordIntPair(ControllerXCoordinate + 16, ControllerZCoordinate)); GT_ChunkManager.requestChunkLoad( - (TileEntity) aBaseMetaTileEntity, - new ChunkCoordIntPair(ControllerXCoordinate - 16, ControllerZCoordinate)); + (TileEntity) aBaseMetaTileEntity, + new ChunkCoordIntPair(ControllerXCoordinate - 16, ControllerZCoordinate)); GT_ChunkManager.requestChunkLoad( - (TileEntity) aBaseMetaTileEntity, - new ChunkCoordIntPair(ControllerXCoordinate, ControllerZCoordinate + 16)); + (TileEntity) aBaseMetaTileEntity, + new ChunkCoordIntPair(ControllerXCoordinate, ControllerZCoordinate + 16)); GT_ChunkManager.requestChunkLoad( - (TileEntity) aBaseMetaTileEntity, - new ChunkCoordIntPair(ControllerXCoordinate, ControllerZCoordinate - 16)); + (TileEntity) aBaseMetaTileEntity, + new ChunkCoordIntPair(ControllerXCoordinate, ControllerZCoordinate - 16)); GT_ChunkManager.requestChunkLoad( - (TileEntity) aBaseMetaTileEntity, - new ChunkCoordIntPair(ControllerXCoordinate + 16, ControllerZCoordinate + 16)); + (TileEntity) aBaseMetaTileEntity, + new ChunkCoordIntPair(ControllerXCoordinate + 16, ControllerZCoordinate + 16)); GT_ChunkManager.requestChunkLoad( - (TileEntity) aBaseMetaTileEntity, - new ChunkCoordIntPair(ControllerXCoordinate + 16, ControllerZCoordinate - 16)); + (TileEntity) aBaseMetaTileEntity, + new ChunkCoordIntPair(ControllerXCoordinate + 16, ControllerZCoordinate - 16)); GT_ChunkManager.requestChunkLoad( - (TileEntity) aBaseMetaTileEntity, - new ChunkCoordIntPair(ControllerXCoordinate - 16, ControllerZCoordinate + 16)); + (TileEntity) aBaseMetaTileEntity, + new ChunkCoordIntPair(ControllerXCoordinate - 16, ControllerZCoordinate + 16)); GT_ChunkManager.requestChunkLoad( - (TileEntity) aBaseMetaTileEntity, - new ChunkCoordIntPair(ControllerXCoordinate - 16, ControllerZCoordinate - 16)); + (TileEntity) aBaseMetaTileEntity, + new ChunkCoordIntPair(ControllerXCoordinate - 16, ControllerZCoordinate - 16)); isMultiChunkloaded = true; } diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_PrimitiveBlastFurnace.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_PrimitiveBlastFurnace.java index 4c847e0fb7..ccd536d341 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_PrimitiveBlastFurnace.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_PrimitiveBlastFurnace.java @@ -44,7 +44,7 @@ import gregtech.api.util.WorldSpawnedEventBuilder.ParticleEventBuilder; import gregtech.common.GT_Pollution; public abstract class GT_MetaTileEntity_PrimitiveBlastFurnace extends MetaTileEntity - implements IAlignment, ISurvivalConstructable, IAddUIWidgets, IGetTitleColor { + implements IAlignment, ISurvivalConstructable, IAddUIWidgets, IGetTitleColor { public static final int INPUT_SLOTS = 3, OUTPUT_SLOTS = 3; private static final ClassValue> STRUCTURE_DEFINITION = new ClassValue<>() { @@ -52,20 +52,16 @@ public abstract class GT_MetaTileEntity_PrimitiveBlastFurnace extends MetaTileEn @Override protected IStructureDefinition computeValue(Class type) { return IStructureDefinition.builder() - .addShape( - "main", - transpose( - new String[][] { { "ccc", "c-c", "ccc" }, - { "ccc", "clc", "ccc" }, { "c~c", "clc", "ccc" }, - { "ccc", "ccc", "ccc" }, })) - .addElement('c', lazy(t -> ofBlock(t.getCasingBlock(), t.getCasingMetaID()))) - .addElement( - 'l', - ofChain( - isAir(), - ofBlockAnyMeta(Blocks.lava, 1), - ofBlockAnyMeta(Blocks.flowing_lava, 1))) - .build(); + .addShape( + "main", + transpose( + new String[][] { { "ccc", "c-c", "ccc" }, { "ccc", "clc", "ccc" }, { "c~c", "clc", "ccc" }, + { "ccc", "ccc", "ccc" }, })) + .addElement('c', lazy(t -> ofBlock(t.getCasingBlock(), t.getCasingMetaID()))) + .addElement( + 'l', + ofChain(isAir(), ofBlockAnyMeta(Blocks.lava, 1), ofBlockAnyMeta(Blocks.flowing_lava, 1))) + .build(); } }; @@ -160,8 +156,7 @@ public abstract class GT_MetaTileEntity_PrimitiveBlastFurnace extends MetaTileEn @Override public boolean allowCoverOnSide(byte aSide, GT_ItemStack aCoverID) { return (GregTech_API.getCoverBehaviorNew(aCoverID.toStack()) - .isSimpleCover()) - && (super.allowCoverOnSide(aSide, aCoverID)); + .isSimpleCover()) && (super.allowCoverOnSide(aSide, aCoverID)); } @Override @@ -207,8 +202,8 @@ public abstract class GT_MetaTileEntity_PrimitiveBlastFurnace extends MetaTileEn @Override public void setExtendedFacing(ExtendedFacing alignment) { getBaseMetaTileEntity().setFrontFacing( - (byte) alignment.getDirection() - .ordinal()); + (byte) alignment.getDirection() + .ordinal()); } @Override @@ -218,18 +213,18 @@ public abstract class GT_MetaTileEntity_PrimitiveBlastFurnace extends MetaTileEn private boolean checkMachine() { return STRUCTURE_DEFINITION.get(this.getClass()) - .check( - this, - "main", - getBaseMetaTileEntity().getWorld(), - getExtendedFacing(), - getBaseMetaTileEntity().getXCoord(), - getBaseMetaTileEntity().getYCoord(), - getBaseMetaTileEntity().getZCoord(), - 1, - 2, - 0, - !mMachine); + .check( + this, + "main", + getBaseMetaTileEntity().getWorld(), + getExtendedFacing(), + getBaseMetaTileEntity().getXCoord(), + getBaseMetaTileEntity().getYCoord(), + getBaseMetaTileEntity().getZCoord(), + 1, + 2, + 0, + !mMachine); } protected abstract Block getCasingBlock(); @@ -248,15 +243,13 @@ public abstract class GT_MetaTileEntity_PrimitiveBlastFurnace extends MetaTileEn if ((aBaseMetaTileEntity.isClientSide()) && (aBaseMetaTileEntity.isActive())) { new WorldSpawnedEventBuilder.ParticleEventBuilder().setMotion(0D, 0.3D, 0D) - .setIdentifier(ParticleFX.LARGE_SMOKE) - .setPosition( - lavaX + XSTR_INSTANCE.nextFloat(), - aBaseMetaTileEntity.getOffsetY( - aBaseMetaTileEntity.getBackFacing(), - 1), - lavaZ + XSTR_INSTANCE.nextFloat()) - .setWorld(getBaseMetaTileEntity().getWorld()) - .run(); + .setIdentifier(ParticleFX.LARGE_SMOKE) + .setPosition( + lavaX + XSTR_INSTANCE.nextFloat(), + aBaseMetaTileEntity.getOffsetY(aBaseMetaTileEntity.getBackFacing(), 1), + lavaZ + XSTR_INSTANCE.nextFloat()) + .setWorld(getBaseMetaTileEntity().getWorld()) + .run(); } if (aBaseMetaTileEntity.isServerSide()) { if (mUpdated) { @@ -275,9 +268,9 @@ public abstract class GT_MetaTileEntity_PrimitiveBlastFurnace extends MetaTileEn this.mProgresstime = 0; this.mMaxProgresstime = 0; GT_Mod.achievements.issueAchievement( - aBaseMetaTileEntity.getWorld() - .getPlayerEntityByName(aBaseMetaTileEntity.getOwnerName()), - "steel"); + aBaseMetaTileEntity.getWorld() + .getPlayerEntityByName(aBaseMetaTileEntity.getOwnerName()), + "steel"); } } else if (aBaseMetaTileEntity.isAllowedToWork()) { checkRecipe(); @@ -285,8 +278,8 @@ public abstract class GT_MetaTileEntity_PrimitiveBlastFurnace extends MetaTileEn } if (this.mMaxProgresstime > 0 && (aTimer % 20L == 0L)) { GT_Pollution.addPollution( - this.getBaseMetaTileEntity(), - GT_Mod.gregtechproxy.mPollutionPrimitveBlastFurnacePerSecond); + this.getBaseMetaTileEntity(), + GT_Mod.gregtechproxy.mPollutionPrimitveBlastFurnacePerSecond); } aBaseMetaTileEntity.setActive((this.mMaxProgresstime > 0) && (this.mMachine)); @@ -294,12 +287,12 @@ public abstract class GT_MetaTileEntity_PrimitiveBlastFurnace extends MetaTileEn if (aBaseMetaTileEntity.isActive()) { if (aBaseMetaTileEntity.getAir(lavaX, lavaY, lavaZ)) { aBaseMetaTileEntity.getWorld() - .setBlock(lavaX, lavaY, lavaZ, Blocks.lava, 1, 2); + .setBlock(lavaX, lavaY, lavaZ, Blocks.lava, 1, 2); this.mUpdate = 1; } if (aBaseMetaTileEntity.getAir(lavaX, lavaY + 1, lavaZ)) { aBaseMetaTileEntity.getWorld() - .setBlock(lavaX, lavaY + 1, lavaZ, Blocks.lava, 1, 2); + .setBlock(lavaX, lavaY + 1, lavaZ, Blocks.lava, 1, 2); this.mUpdate = 1; } } else { @@ -307,12 +300,12 @@ public abstract class GT_MetaTileEntity_PrimitiveBlastFurnace extends MetaTileEn Block upperLava = aBaseMetaTileEntity.getBlock(lavaX, lavaY + 1, lavaZ); if (lowerLava == Blocks.lava) { aBaseMetaTileEntity.getWorld() - .setBlock(lavaX, lavaY, lavaZ, Blocks.air, 0, 2); + .setBlock(lavaX, lavaY, lavaZ, Blocks.air, 0, 2); this.mUpdate = 1; } if (upperLava == Blocks.lava) { aBaseMetaTileEntity.getWorld() - .setBlock(lavaX, lavaY + 1, lavaZ, Blocks.air, 0, 2); + .setBlock(lavaX, lavaY + 1, lavaZ, Blocks.air, 0, 2); this.mUpdate = 1; } } @@ -364,13 +357,12 @@ public abstract class GT_MetaTileEntity_PrimitiveBlastFurnace extends MetaTileEn } ParticleEventBuilder particleEventBuilder = (new ParticleEventBuilder()).setMotion(0D, 0D, 0D) - .setPosition(x, y, z) - .setWorld( - getBaseMetaTileEntity().getWorld()); + .setPosition(x, y, z) + .setWorld(getBaseMetaTileEntity().getWorld()); particleEventBuilder.setIdentifier(ParticleFX.SMOKE) - .run(); + .run(); particleEventBuilder.setIdentifier(ParticleFX.FLAME) - .run(); + .run(); } } @@ -394,8 +386,8 @@ public abstract class GT_MetaTileEntity_PrimitiveBlastFurnace extends MetaTileEn this.mInventory[absi] = GT_Utility.copyOrNull(this.mOutputItems[i]); } else if (GT_Utility.areStacksEqual(this.mInventory[absi], this.mOutputItems[i])) { this.mInventory[absi].stackSize = Math.min( - this.mInventory[absi].getMaxStackSize(), - this.mInventory[absi].stackSize + this.mOutputItems[i].stackSize); + this.mInventory[absi].getMaxStackSize(), + this.mInventory[absi].stackSize + this.mOutputItems[i].stackSize); } } } @@ -406,8 +398,8 @@ public abstract class GT_MetaTileEntity_PrimitiveBlastFurnace extends MetaTileEn return true; } return ((this.mInventory[absoluteSlot].stackSize + outputStack.stackSize - <= this.mInventory[absoluteSlot].getMaxStackSize()) - && (GT_Utility.areStacksEqual(this.mInventory[absoluteSlot], outputStack))); + <= this.mInventory[absoluteSlot].getMaxStackSize()) + && (GT_Utility.areStacksEqual(this.mInventory[absoluteSlot], outputStack))); } private boolean checkRecipe() { @@ -469,21 +461,21 @@ public abstract class GT_MetaTileEntity_PrimitiveBlastFurnace extends MetaTileEn public int survivalConstruct(ItemStack stackSize, int elementBudget, ISurvivalBuildEnvironment env) { if (mMachine) return -1; return STRUCTURE_DEFINITION.get(getClass()) - .survivalBuild( - this, - stackSize, - "main", - getBaseMetaTileEntity().getWorld(), - getExtendedFacing(), - getBaseMetaTileEntity().getXCoord(), - getBaseMetaTileEntity().getYCoord(), - getBaseMetaTileEntity().getZCoord(), - 1, - 2, - 0, - elementBudget, - env, - false); + .survivalBuild( + this, + stackSize, + "main", + getBaseMetaTileEntity().getWorld(), + getExtendedFacing(), + getBaseMetaTileEntity().getXCoord(), + getBaseMetaTileEntity().getYCoord(), + getBaseMetaTileEntity().getZCoord(), + 1, + 2, + 0, + elementBudget, + env, + false); } @Override @@ -494,19 +486,19 @@ public abstract class GT_MetaTileEntity_PrimitiveBlastFurnace extends MetaTileEn @Override public void construct(ItemStack stackSize, boolean hintsOnly) { STRUCTURE_DEFINITION.get(getClass()) - .buildOrHints( - this, - stackSize, - "main", - getBaseMetaTileEntity().getWorld(), - getExtendedFacing(), - getBaseMetaTileEntity().getXCoord(), - getBaseMetaTileEntity().getYCoord(), - getBaseMetaTileEntity().getZCoord(), - 1, - 2, - 0, - hintsOnly); + .buildOrHints( + this, + stackSize, + "main", + getBaseMetaTileEntity().getWorld(), + getExtendedFacing(), + getBaseMetaTileEntity().getXCoord(), + getBaseMetaTileEntity().getYCoord(), + getBaseMetaTileEntity().getZCoord(), + 1, + 2, + 0, + hintsOnly); } @Override @@ -516,54 +508,49 @@ public abstract class GT_MetaTileEntity_PrimitiveBlastFurnace extends MetaTileEn @Override public void addUIWidgets(ModularWindow.Builder builder, UIBuildContext buildContext) { - builder.widget( + builder + .widget( new SlotWidget(inventoryHandler, 0) - .setBackground( - getGUITextureSet().getItemSlot(), - GT_UITextures.OVERLAY_SLOT_INGOT_STEAM.get( - getSteamVariant())) - .setPos(33, 15)) - .widget( - new SlotWidget(inventoryHandler, 1) - .setBackground( - getGUITextureSet().getItemSlot(), - GT_UITextures.OVERLAY_SLOT_DUST_STEAM.get( - getSteamVariant())) - .setPos(33, 33)) - .widget( - new SlotWidget(inventoryHandler, 2) - .setBackground( - getGUITextureSet().getItemSlot(), - GT_UITextures.OVERLAY_SLOT_FURNACE_STEAM.get( - getSteamVariant())) - .setPos(33, 51)) - .widget( - new SlotWidget(inventoryHandler, 3).setAccess(true, false) - .setBackground( - getGUITextureSet().getItemSlot(), - GT_UITextures.OVERLAY_SLOT_INGOT_STEAM.get( - getSteamVariant())) - .setPos(85, 24)) - .widget( - new SlotWidget(inventoryHandler, 4).setAccess(true, false) - .setBackground( - getGUITextureSet().getItemSlot(), - GT_UITextures.OVERLAY_SLOT_DUST_STEAM.get( - getSteamVariant())) - .setPos(103, 24)) - .widget( - new SlotWidget(inventoryHandler, 5).setAccess(true, false) - .setBackground( - getGUITextureSet().getItemSlot(), - GT_UITextures.OVERLAY_SLOT_DUST_STEAM.get( - getSteamVariant())) - .setPos(121, 24)) - .widget( - new ProgressBar().setTexture(GT_UITextures.PROGRESSBAR_ARROW_2_STEAM.get(getSteamVariant()), 20) - .setProgress(() -> (float) mProgresstime / mMaxProgresstime) - .setNEITransferRect(getRecipeMap().mNEIName) - .setPos(58, 24) - .setSize(20, 18)); + .setBackground( + getGUITextureSet().getItemSlot(), + GT_UITextures.OVERLAY_SLOT_INGOT_STEAM.get(getSteamVariant())) + .setPos(33, 15)) + .widget( + new SlotWidget(inventoryHandler, 1) + .setBackground( + getGUITextureSet().getItemSlot(), + GT_UITextures.OVERLAY_SLOT_DUST_STEAM.get(getSteamVariant())) + .setPos(33, 33)) + .widget( + new SlotWidget(inventoryHandler, 2) + .setBackground( + getGUITextureSet().getItemSlot(), + GT_UITextures.OVERLAY_SLOT_FURNACE_STEAM.get(getSteamVariant())) + .setPos(33, 51)) + .widget( + new SlotWidget(inventoryHandler, 3).setAccess(true, false) + .setBackground( + getGUITextureSet().getItemSlot(), + GT_UITextures.OVERLAY_SLOT_INGOT_STEAM.get(getSteamVariant())) + .setPos(85, 24)) + .widget( + new SlotWidget(inventoryHandler, 4).setAccess(true, false) + .setBackground( + getGUITextureSet().getItemSlot(), + GT_UITextures.OVERLAY_SLOT_DUST_STEAM.get(getSteamVariant())) + .setPos(103, 24)) + .widget( + new SlotWidget(inventoryHandler, 5).setAccess(true, false) + .setBackground( + getGUITextureSet().getItemSlot(), + GT_UITextures.OVERLAY_SLOT_DUST_STEAM.get(getSteamVariant())) + .setPos(121, 24)) + .widget( + new ProgressBar().setTexture(GT_UITextures.PROGRESSBAR_ARROW_2_STEAM.get(getSteamVariant()), 20) + .setProgress(() -> (float) mProgresstime / mMaxProgresstime) + .setNEITransferRect(getRecipeMap().mNEIName) + .setPos(58, 24) + .setSize(20, 18)); } @Override diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ProcessingArray.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ProcessingArray.java index d50b7debfa..6e60396af4 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ProcessingArray.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ProcessingArray.java @@ -59,7 +59,7 @@ import gregtech.api.util.GT_Utility; import gregtech.common.blocks.GT_Item_Machines; public class GT_MetaTileEntity_ProcessingArray - extends GT_MetaTileEntity_CubicMultiBlockBase { + extends GT_MetaTileEntity_CubicMultiBlockBase { private GT_Recipe_Map mLastRecipeMap; private GT_Recipe mLastRecipe; @@ -87,57 +87,55 @@ public class GT_MetaTileEntity_ProcessingArray protected GT_Multiblock_Tooltip_Builder createTooltip() { final GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder(); tt.addMachineType("Processing Array") - .addInfo("Runs supplied machines as if placed in the world") - .addInfo("Place up to 64 singleblock GT machines into the controller") - .addInfo("Note that you still need to supply power to them all") - .addInfo("Use a screwdriver to enable separate input busses") - .addInfo("Use a wire cutter to disable UEV+ downtiering") - .addInfo("Doesn't work on certain machines, deal with it") - .addInfo("Use it if you hate GT++, or want even more speed later on") - .addSeparator() - .beginStructureBlock(3, 3, 3, true) - .addController("Front center") - .addCasingInfoRange("Robust Tungstensteel Machine Casing", 14, 24, false) - .addEnergyHatch("Any casing", 1) - .addMaintenanceHatch("Any casing", 1) - .addInputBus("Any casing", 1) - .addInputHatch("Any casing", 1) - .addOutputBus("Any casing", 1) - .addOutputHatch("Any casing", 1) - .toolTipFinisher("Gregtech"); + .addInfo("Runs supplied machines as if placed in the world") + .addInfo("Place up to 64 singleblock GT machines into the controller") + .addInfo("Note that you still need to supply power to them all") + .addInfo("Use a screwdriver to enable separate input busses") + .addInfo("Use a wire cutter to disable UEV+ downtiering") + .addInfo("Doesn't work on certain machines, deal with it") + .addInfo("Use it if you hate GT++, or want even more speed later on") + .addSeparator() + .beginStructureBlock(3, 3, 3, true) + .addController("Front center") + .addCasingInfoRange("Robust Tungstensteel Machine Casing", 14, 24, false) + .addEnergyHatch("Any casing", 1) + .addMaintenanceHatch("Any casing", 1) + .addInputBus("Any casing", 1) + .addInputHatch("Any casing", 1) + .addOutputBus("Any casing", 1) + .addOutputHatch("Any casing", 1) + .toolTipFinisher("Gregtech"); return tt; } @Override public boolean addToMachineList(IGregTechTileEntity aTileEntity, int aBaseCasingIndex) { return super.addToMachineList(aTileEntity, aBaseCasingIndex) - || addExoticEnergyInputToMachineList(aTileEntity, aBaseCasingIndex); + || addExoticEnergyInputToMachineList(aTileEntity, aBaseCasingIndex); } @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { if (aSide == aFacing) { if (aActive) return new ITexture[] { BlockIcons.casingTexturePages[0][48], TextureFactory.builder() - .addIcon( - OVERLAY_FRONT_PROCESSING_ARRAY_ACTIVE) - .extFacing() - .build(), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_PROCESSING_ARRAY_ACTIVE_GLOW) - .extFacing() - .glow() - .build() }; + .addIcon(OVERLAY_FRONT_PROCESSING_ARRAY_ACTIVE) + .extFacing() + .build(), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_PROCESSING_ARRAY_ACTIVE_GLOW) + .extFacing() + .glow() + .build() }; return new ITexture[] { BlockIcons.casingTexturePages[0][48], TextureFactory.builder() - .addIcon( - OVERLAY_FRONT_PROCESSING_ARRAY) - .extFacing() - .build(), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_PROCESSING_ARRAY_GLOW) - .extFacing() - .glow() - .build() }; + .addIcon(OVERLAY_FRONT_PROCESSING_ARRAY) + .extFacing() + .build(), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_PROCESSING_ARRAY_GLOW) + .extFacing() + .glow() + .build() }; } return new ITexture[] { Textures.BlockIcons.casingTexturePages[0][48] }; } @@ -156,9 +154,9 @@ public class GT_MetaTileEntity_ProcessingArray public GT_Recipe_Map getRecipeMap() { if (isCorrectMachinePart(mInventory[1])) { int length = mInventory[1].getUnlocalizedName() - .length(); + .length(); String aMachineName = mInventory[1].getUnlocalizedName() - .substring(17, length - 8); + .substring(17, length - 8); return GT_ProcessingArray_Manager.giveRecipeMap(aMachineName); } return null; @@ -167,7 +165,7 @@ public class GT_MetaTileEntity_ProcessingArray @Override public boolean isCorrectMachinePart(ItemStack aStack) { return aStack != null && aStack.getUnlocalizedName() - .startsWith("gt.blockmachines."); + .startsWith("gt.blockmachines."); } @Override @@ -190,9 +188,9 @@ public class GT_MetaTileEntity_ProcessingArray boolean result = checkRecipe(mInventory[1]); if (result) { int length = mInventory[1].getUnlocalizedName() - .length(); + .length(); String aMachineName = mInventory[1].getUnlocalizedName() - .substring(17, length - 8); + .substring(17, length - 8); SoundResource sound = GT_ProcessingArray_Manager.getSoundResource(aMachineName); if (sound != null) { sendLoopStart((byte) sound.id); @@ -265,32 +263,31 @@ public class GT_MetaTileEntity_ProcessingArray int parallel = tSingleRecipeCheck.checkRecipeInputs(true, machines); return processRecipeOutputs( - tSingleRecipeCheck.getRecipe(), - tSingleRecipeCheck.getRecipeAmperage(), - parallel, - 1); + tSingleRecipeCheck.getRecipe(), + tSingleRecipeCheck.getRecipeAmperage(), + parallel, + 1); } public boolean processRecipe(ItemStack[] tInputs, FluidStack[] tFluids, GT_Recipe.GT_Recipe_Map map) { if (tInputs.length <= 0 && tFluids.length <= 0) return false; GT_Recipe tRecipe = map.findRecipe( - getBaseMetaTileEntity(), - mLastRecipe, - false, - gregtech.api.enums.GT_Values.V[tTier], - tFluids, - tInputs); + getBaseMetaTileEntity(), + mLastRecipe, + false, + gregtech.api.enums.GT_Values.V[tTier], + tFluids, + tInputs); if (tRecipe == null) return false; if (GT_Mod.gregtechproxy.mLowGravProcessing && tRecipe.mSpecialValue == -100 - && !isValidForLowGravity(tRecipe, getBaseMetaTileEntity().getWorld().provider.dimensionId)) - return false; + && !isValidForLowGravity(tRecipe, getBaseMetaTileEntity().getWorld().provider.dimensionId)) return false; GT_Single_Recipe_Check_Processing_Array.Builder tSingleRecipeCheckBuilder = null; if (mLockedToSingleRecipe) { // We're locked to a single recipe, but haven't built the recipe checker yet. // Build the checker on next successful recipe. tSingleRecipeCheckBuilder = GT_Single_Recipe_Check_Processing_Array.processingArrayBuilder(this) - .setBefore(tInputs, tFluids); + .setBefore(tInputs, tFluids); } boolean recipeLocked = false; @@ -303,9 +300,9 @@ public class GT_MetaTileEntity_ProcessingArray } else if (mLockedToSingleRecipe && !recipeLocked) { // We want to lock to a single run of the recipe. mSingleRecipeCheck = tSingleRecipeCheckBuilder.setAfter(tInputs, tFluids) - .setRecipe(tRecipe) - .setRecipeAmperage(map.mAmperage) - .build(); + .setRecipe(tRecipe) + .setRecipeAmperage(map.mAmperage) + .build(); recipeLocked = true; } } @@ -335,11 +332,11 @@ public class GT_MetaTileEntity_ProcessingArray this.mEfficiency = (10000 - (getIdealStatus() - getRepairStatus()) * 1000); this.mEfficiencyIncrease = 10000; ProcessingArrayCalculateOverclock( - aRecipe.mEUt, - aRecipe.mDuration * multiplier, - aAmperage, - GT_Values.V[tTier], - false); + aRecipe.mEUt, + aRecipe.mDuration * multiplier, + aAmperage, + GT_Values.V[tTier], + false); // In case recipe is too OP for that machine if (mMaxProgresstime == Integer.MAX_VALUE - 1 && mEUPerTick == Long.MAX_VALUE - 1) return false; mEUPerTick = mEUPerTick * parallel; @@ -352,14 +349,14 @@ public class GT_MetaTileEntity_ProcessingArray for (int h = 0; h < aRecipe.mOutputs.length; h++) { if (aRecipe.getOutput(h) != null) { tOut[h] = aRecipe.getOutput(h) - .copy(); + .copy(); tOut[h].stackSize = 0; } } FluidStack[] tFOut = new FluidStack[aRecipe.mFluidOutputs.length]; for (int i = 0; i < aRecipe.mFluidOutputs.length; i++) if (aRecipe.getFluidOutput(i) != null) tFOut[i] = aRecipe.getFluidOutput(i) - .copy(); + .copy(); for (int f = 0; f < tOut.length; f++) { if (aRecipe.mOutputs[f] != null && tOut[f] != null) { for (int g = 0; g < parallel * multiplier; g++) { @@ -378,10 +375,10 @@ public class GT_MetaTileEntity_ProcessingArray } this.mMaxProgresstime = Math.max(1, this.mMaxProgresstime); this.mOutputItems = Arrays.stream(tOut) - .filter(Objects::nonNull) - .flatMap(GT_MetaTileEntity_ProcessingArray::splitOversizedStack) - .filter(is -> is.stackSize > 0) - .toArray(ItemStack[]::new); + .filter(Objects::nonNull) + .flatMap(GT_MetaTileEntity_ProcessingArray::splitOversizedStack) + .filter(is -> is.stackSize > 0) + .toArray(ItemStack[]::new); this.mOutputFluids = tFOut; updateSlots(); return true; @@ -463,14 +460,14 @@ public class GT_MetaTileEntity_ProcessingArray } else { inputSeparation = !inputSeparation; GT_Utility.sendChatToPlayer( - aPlayer, - StatCollector.translateToLocal("GT5U.machines.separatebus") + " " + inputSeparation); + aPlayer, + StatCollector.translateToLocal("GT5U.machines.separatebus") + " " + inputSeparation); } } @Override public boolean onWireCutterRightClick(byte aSide, byte aWrenchingSide, EntityPlayer aPlayer, float aX, float aY, - float aZ) { + float aZ) { if (aPlayer.isSneaking()) { batchMode = !batchMode; if (batchMode) { @@ -504,15 +501,8 @@ public class GT_MetaTileEntity_ProcessingArray @Override protected List>> getAllowedHatches() { - return ImmutableList.of( - InputHatch, - OutputHatch, - InputBus, - OutputBus, - Muffler, - Maintenance, - Energy, - ExoticEnergy); + return ImmutableList + .of(InputHatch, OutputHatch, InputBus, OutputBus, Muffler, Maintenance, Energy, ExoticEnergy); } @Override @@ -533,78 +523,77 @@ public class GT_MetaTileEntity_ProcessingArray for (GT_MetaTileEntity_Hatch tHatch : mExoticEnergyHatches) { if (isValidMetaTileEntity(tHatch)) { storedEnergy += tHatch.getBaseMetaTileEntity() - .getStoredEU(); + .getStoredEU(); maxEnergy += tHatch.getBaseMetaTileEntity() - .getEUCapacity(); + .getEUCapacity(); } } return new String[] { - StatCollector.translateToLocal("GT5U.multiblock.Progress") + ": " - + EnumChatFormatting.GREEN - + GT_Utility.formatNumbers(mProgresstime / 20) - + EnumChatFormatting.RESET - + " s / " - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(mMaxProgresstime / 20) - + EnumChatFormatting.RESET - + " s", - StatCollector.translateToLocal("GT5U.multiblock.energy") + ": " - + EnumChatFormatting.GREEN - + GT_Utility.formatNumbers(storedEnergy) - + EnumChatFormatting.RESET - + " EU / " - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(maxEnergy) - + EnumChatFormatting.RESET - + " EU", - StatCollector.translateToLocal("GT5U.multiblock.usage") + ": " - + EnumChatFormatting.RED - + GT_Utility.formatNumbers(-mEUPerTick) - + EnumChatFormatting.RESET - + " EU/t", - StatCollector.translateToLocal("GT5U.multiblock.mei") + ": " - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers( - GT_ExoticEnergyInputHelper.getMaxInputVoltageMulti(getExoticAndNormalEnergyHatchList())) - + EnumChatFormatting.RESET - + " EU/t(*" - + GT_Utility.formatNumbers( - GT_ExoticEnergyInputHelper.getMaxInputAmpsMulti(getExoticAndNormalEnergyHatchList())) - + "A) " - + StatCollector.translateToLocal("GT5U.machines.tier") - + ": " - + EnumChatFormatting.YELLOW - + VN[GT_Utility.getTier( - GT_ExoticEnergyInputHelper.getMaxInputVoltageMulti( - getExoticAndNormalEnergyHatchList()))] - + EnumChatFormatting.RESET, - StatCollector.translateToLocal("GT5U.multiblock.problems") + ": " - + EnumChatFormatting.RED - + (getIdealStatus() - getRepairStatus()) - + EnumChatFormatting.RESET - + " " - + StatCollector.translateToLocal("GT5U.multiblock.efficiency") - + ": " - + EnumChatFormatting.YELLOW - + mEfficiency / 100.0F - + EnumChatFormatting.RESET - + " %", - StatCollector.translateToLocal("GT5U.PA.machinetier") + ": " - + EnumChatFormatting.GREEN - + tTier - + EnumChatFormatting.RESET - + " " - + StatCollector.translateToLocal("GT5U.PA.discount") - + ": " - + EnumChatFormatting.GREEN - + 1 - + EnumChatFormatting.RESET - + " x", - StatCollector.translateToLocal("GT5U.PA.parallel") + ": " - + EnumChatFormatting.GREEN - + GT_Utility.formatNumbers((mInventory[1] != null) ? (mInventory[1].stackSize << mMult) : 0) - + EnumChatFormatting.RESET }; + StatCollector.translateToLocal("GT5U.multiblock.Progress") + ": " + + EnumChatFormatting.GREEN + + GT_Utility.formatNumbers(mProgresstime / 20) + + EnumChatFormatting.RESET + + " s / " + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(mMaxProgresstime / 20) + + EnumChatFormatting.RESET + + " s", + StatCollector.translateToLocal("GT5U.multiblock.energy") + ": " + + EnumChatFormatting.GREEN + + GT_Utility.formatNumbers(storedEnergy) + + EnumChatFormatting.RESET + + " EU / " + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(maxEnergy) + + EnumChatFormatting.RESET + + " EU", + StatCollector.translateToLocal("GT5U.multiblock.usage") + ": " + + EnumChatFormatting.RED + + GT_Utility.formatNumbers(-mEUPerTick) + + EnumChatFormatting.RESET + + " EU/t", + StatCollector.translateToLocal("GT5U.multiblock.mei") + ": " + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers( + GT_ExoticEnergyInputHelper.getMaxInputVoltageMulti(getExoticAndNormalEnergyHatchList())) + + EnumChatFormatting.RESET + + " EU/t(*" + + GT_Utility + .formatNumbers(GT_ExoticEnergyInputHelper.getMaxInputAmpsMulti(getExoticAndNormalEnergyHatchList())) + + "A) " + + StatCollector.translateToLocal("GT5U.machines.tier") + + ": " + + EnumChatFormatting.YELLOW + + VN[GT_Utility + .getTier(GT_ExoticEnergyInputHelper.getMaxInputVoltageMulti(getExoticAndNormalEnergyHatchList()))] + + EnumChatFormatting.RESET, + StatCollector.translateToLocal("GT5U.multiblock.problems") + ": " + + EnumChatFormatting.RED + + (getIdealStatus() - getRepairStatus()) + + EnumChatFormatting.RESET + + " " + + StatCollector.translateToLocal("GT5U.multiblock.efficiency") + + ": " + + EnumChatFormatting.YELLOW + + mEfficiency / 100.0F + + EnumChatFormatting.RESET + + " %", + StatCollector.translateToLocal("GT5U.PA.machinetier") + ": " + + EnumChatFormatting.GREEN + + tTier + + EnumChatFormatting.RESET + + " " + + StatCollector.translateToLocal("GT5U.PA.discount") + + ": " + + EnumChatFormatting.GREEN + + 1 + + EnumChatFormatting.RESET + + " x", + StatCollector.translateToLocal("GT5U.PA.parallel") + ": " + + EnumChatFormatting.GREEN + + GT_Utility.formatNumbers((mInventory[1] != null) ? (mInventory[1].stackSize << mMult) : 0) + + EnumChatFormatting.RESET }; } public List getExoticAndNormalEnergyHatchList() { @@ -627,7 +616,7 @@ public class GT_MetaTileEntity_ProcessingArray } protected void ProcessingArrayCalculateOverclock(long aEUt, int aDuration, int mAmperage, long maxInputVoltage, - boolean perfectOC) { + boolean perfectOC) { byte mTier = (byte) Math.max(0, GT_Utility.getTier(maxInputVoltage)); if (mTier == 0) { // Long time calculation @@ -689,22 +678,22 @@ public class GT_MetaTileEntity_ProcessingArray super.addUIWidgets(builder, buildContext); builder.widget( - new ButtonWidget().setOnClick((clickData, widget) -> downtierUEV = !downtierUEV) - .setPlayClickSound(true) - .setBackground(() -> { - List ret = new ArrayList<>(); - ret.add(GT_UITextures.BUTTON_STANDARD); - if (downtierUEV) { - ret.add(GT_UITextures.OVERLAY_BUTTON_DOWN_TIERING_ON); - } else { - ret.add(GT_UITextures.OVERLAY_BUTTON_DOWN_TIERING_OFF); - } - return ret.toArray(new IDrawable[0]); - }) - .setPos(80, 91) - .setSize(16, 16) - .addTooltip(StatCollector.translateToLocal("GT5U.gui.button.down_tier")) - .setTooltipShowUpDelay(TOOLTIP_DELAY)) - .widget(new FakeSyncWidget.BooleanSyncer(() -> downtierUEV, val -> downtierUEV = val)); + new ButtonWidget().setOnClick((clickData, widget) -> downtierUEV = !downtierUEV) + .setPlayClickSound(true) + .setBackground(() -> { + List ret = new ArrayList<>(); + ret.add(GT_UITextures.BUTTON_STANDARD); + if (downtierUEV) { + ret.add(GT_UITextures.OVERLAY_BUTTON_DOWN_TIERING_ON); + } else { + ret.add(GT_UITextures.OVERLAY_BUTTON_DOWN_TIERING_OFF); + } + return ret.toArray(new IDrawable[0]); + }) + .setPos(80, 91) + .setSize(16, 16) + .addTooltip(StatCollector.translateToLocal("GT5U.gui.button.down_tier")) + .setTooltipShowUpDelay(TOOLTIP_DELAY)) + .widget(new FakeSyncWidget.BooleanSyncer(() -> downtierUEV, val -> downtierUEV = val)); } } diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_PyrolyseOven.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_PyrolyseOven.java index b674560fa5..00b3a1ff10 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_PyrolyseOven.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_PyrolyseOven.java @@ -38,8 +38,8 @@ import gregtech.api.util.GT_Recipe; import gregtech.api.util.GT_Single_Recipe_Check; import gregtech.api.util.GT_Utility; -public class GT_MetaTileEntity_PyrolyseOven extends - GT_MetaTileEntity_EnhancedMultiBlockBase implements ISurvivalConstructable { +public class GT_MetaTileEntity_PyrolyseOven + extends GT_MetaTileEntity_EnhancedMultiBlockBase implements ISurvivalConstructable { private HeatingCoilLevel coilHeat; // public static GT_CopiedBlockTexture mTextureULV = new @@ -50,53 +50,35 @@ public class GT_MetaTileEntity_PyrolyseOven extends private static IStructureDefinition createStructureDefinition() { IStructureElement tCasingElement = NewHorizonsCoreMod.isModLoaded() - ? ofBlockUnlocalizedName(NewHorizonsCoreMod.ID, "gt.blockcasingsNH", 2) - : ofBlock(GregTech_API.sBlockCasings1, 0); + ? ofBlockUnlocalizedName(NewHorizonsCoreMod.ID, "gt.blockcasingsNH", 2) + : ofBlock(GregTech_API.sBlockCasings1, 0); return StructureDefinition.builder() - .addShape( - "main", - transpose( - new String[][] { { "ccccc", "ctttc", "ctttc", "ctttc", "ccccc" }, - { "ccccc", "c---c", "c---c", "c---c", "ccccc" }, - { "ccccc", "c---c", "c---c", "c---c", "ccccc" }, - { "bb~bb", "bCCCb", "bCCCb", "bCCCb", "bbbbb" }, })) - .addElement( - 'c', - onElementPass(GT_MetaTileEntity_PyrolyseOven::onCasingAdded, tCasingElement)) - .addElement( - 'C', - ofCoil( - GT_MetaTileEntity_PyrolyseOven::setCoilLevel, - GT_MetaTileEntity_PyrolyseOven::getCoilLevel)) - .addElement( - 'b', - buildHatchAdder( - GT_MetaTileEntity_PyrolyseOven.class).atLeast( - OutputBus, - OutputHatch, - Energy, - Maintenance) - .casingIndex(CASING_INDEX) - .dot(1) - .buildAndChain( - onElementPass( - GT_MetaTileEntity_PyrolyseOven::onCasingAdded, - tCasingElement))) - .addElement( - 't', - buildHatchAdder( - GT_MetaTileEntity_PyrolyseOven.class).atLeast( - InputBus, - InputHatch, - Muffler) - .casingIndex(CASING_INDEX) - .dot(1) - .buildAndChain( - onElementPass( - GT_MetaTileEntity_PyrolyseOven::onCasingAdded, - tCasingElement))) - .build(); + .addShape( + "main", + transpose( + new String[][] { { "ccccc", "ctttc", "ctttc", "ctttc", "ccccc" }, + { "ccccc", "c---c", "c---c", "c---c", "ccccc" }, + { "ccccc", "c---c", "c---c", "c---c", "ccccc" }, + { "bb~bb", "bCCCb", "bCCCb", "bCCCb", "bbbbb" }, })) + .addElement('c', onElementPass(GT_MetaTileEntity_PyrolyseOven::onCasingAdded, tCasingElement)) + .addElement( + 'C', + ofCoil(GT_MetaTileEntity_PyrolyseOven::setCoilLevel, GT_MetaTileEntity_PyrolyseOven::getCoilLevel)) + .addElement( + 'b', + buildHatchAdder(GT_MetaTileEntity_PyrolyseOven.class) + .atLeast(OutputBus, OutputHatch, Energy, Maintenance) + .casingIndex(CASING_INDEX) + .dot(1) + .buildAndChain(onElementPass(GT_MetaTileEntity_PyrolyseOven::onCasingAdded, tCasingElement))) + .addElement( + 't', + buildHatchAdder(GT_MetaTileEntity_PyrolyseOven.class).atLeast(InputBus, InputHatch, Muffler) + .casingIndex(CASING_INDEX) + .dot(1) + .buildAndChain(onElementPass(GT_MetaTileEntity_PyrolyseOven::onCasingAdded, tCasingElement))) + .build(); } private int mCasingAmount; @@ -113,52 +95,50 @@ public class GT_MetaTileEntity_PyrolyseOven extends protected GT_Multiblock_Tooltip_Builder createTooltip() { final GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder(); tt.addMachineType("Coke Oven") - .addInfo("Controller block for the Pyrolyse Oven") - .addInfo("Industrial Charcoal producer") - .addInfo("Processing speed scales linearly with Coil tier:") - .addInfo("CuNi: 50%, FeAlCr: 100%, Ni4Cr: 150%, TPV: 200%, etc.") - .addInfo("EU/t is not affected by Coil tier") - .addPollutionAmount(getPollutionPerSecond(null)) - .addSeparator() - .beginStructureBlock(5, 4, 5, true) - .addController("Front center") - .addCasingInfoRange("Pyrolyse Oven Casing", 60, 80, false) - .addOtherStructurePart("Heating Coils", "Center 3x1x3 of the bottom layer") - .addEnergyHatch("Any bottom layer casing", 1) - .addMaintenanceHatch("Any bottom layer casing", 1) - .addMufflerHatch("Center 3x1x3 area in top layer", 2) - .addInputBus("Center 3x1x3 area in top layer", 2) - .addInputHatch("Center 3x1x3 area in top layer", 2) - .addOutputBus("Any bottom layer casing", 1) - .addOutputHatch("Any bottom layer casing", 1) - .toolTipFinisher("Gregtech"); + .addInfo("Controller block for the Pyrolyse Oven") + .addInfo("Industrial Charcoal producer") + .addInfo("Processing speed scales linearly with Coil tier:") + .addInfo("CuNi: 50%, FeAlCr: 100%, Ni4Cr: 150%, TPV: 200%, etc.") + .addInfo("EU/t is not affected by Coil tier") + .addPollutionAmount(getPollutionPerSecond(null)) + .addSeparator() + .beginStructureBlock(5, 4, 5, true) + .addController("Front center") + .addCasingInfoRange("Pyrolyse Oven Casing", 60, 80, false) + .addOtherStructurePart("Heating Coils", "Center 3x1x3 of the bottom layer") + .addEnergyHatch("Any bottom layer casing", 1) + .addMaintenanceHatch("Any bottom layer casing", 1) + .addMufflerHatch("Center 3x1x3 area in top layer", 2) + .addInputBus("Center 3x1x3 area in top layer", 2) + .addInputHatch("Center 3x1x3 area in top layer", 2) + .addOutputBus("Any bottom layer casing", 1) + .addOutputHatch("Any bottom layer casing", 1) + .toolTipFinisher("Gregtech"); return tt; } @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { if (aSide == aFacing) { if (aActive) return new ITexture[] { BlockIcons.casingTexturePages[8][66], TextureFactory.builder() - .addIcon( - OVERLAY_FRONT_PYROLYSE_OVEN_ACTIVE) - .extFacing() - .build(), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_PYROLYSE_OVEN_ACTIVE_GLOW) - .extFacing() - .glow() - .build() }; + .addIcon(OVERLAY_FRONT_PYROLYSE_OVEN_ACTIVE) + .extFacing() + .build(), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_PYROLYSE_OVEN_ACTIVE_GLOW) + .extFacing() + .glow() + .build() }; return new ITexture[] { BlockIcons.casingTexturePages[8][66], TextureFactory.builder() - .addIcon( - OVERLAY_FRONT_PYROLYSE_OVEN) - .extFacing() - .build(), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_PYROLYSE_OVEN_GLOW) - .extFacing() - .glow() - .build() }; + .addIcon(OVERLAY_FRONT_PYROLYSE_OVEN) + .extFacing() + .build(), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_PYROLYSE_OVEN_GLOW) + .extFacing() + .glow() + .build() }; } return new ITexture[] { Textures.BlockIcons.casingTexturePages[8][66] }; } @@ -196,22 +176,18 @@ public class GT_MetaTileEntity_PyrolyseOven extends // We're locked to a single recipe, but haven't built the recipe checker yet. // Build the checker on next successful recipe. tSingleRecipeCheckBuilder = GT_Single_Recipe_Check.builder(this) - .setBefore(); + .setBefore(); } - tRecipe = GT_Recipe.GT_Recipe_Map.sPyrolyseRecipes.findRecipe( - getBaseMetaTileEntity(), - false, - gregtech.api.enums.GT_Values.V[tTier], - tFluids, - tInputs); + tRecipe = GT_Recipe.GT_Recipe_Map.sPyrolyseRecipes + .findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[tTier], tFluids, tInputs); if (tRecipe == null || !tRecipe.isRecipeInputEqual(true, tFluids, tInputs)) return false; if (mLockedToSingleRecipe) { mSingleRecipeCheck = tSingleRecipeCheckBuilder.setAfter() - .setRecipe(tRecipe) - .build(); + .setRecipe(tRecipe) + .build(); } } @@ -252,8 +228,8 @@ public class GT_MetaTileEntity_PyrolyseOven extends mCasingAmount = 0; replaceDeprecatedCoils(aBaseMetaTileEntity); return checkPiece("main", 2, 3, 0) && mCasingAmount >= 60 - && mMaintenanceHatches.size() == 1 - && !mMufflerHatches.isEmpty(); + && mMaintenanceHatches.size() == 1 + && !mMufflerHatches.isEmpty(); } @Override @@ -295,9 +271,9 @@ public class GT_MetaTileEntity_PyrolyseOven extends for (int xPos = tX - 1; xPos <= tX + 1; xPos++) { for (int zPos = tZ - 1; zPos <= tZ + 1; zPos++) { if (aBaseMetaTileEntity.getBlock(xPos, tY, zPos) == GregTech_API.sBlockCasings1 - && aBaseMetaTileEntity.getMetaID(xPos, tY, zPos) == 13) { + && aBaseMetaTileEntity.getMetaID(xPos, tY, zPos) == 13) { aBaseMetaTileEntity.getWorld() - .setBlock(xPos, tY, zPos, GregTech_API.sBlockCasings5, 1, 3); + .setBlock(xPos, tY, zPos, GregTech_API.sBlockCasings5, 1, 3); } } } diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_TranscendentPlasmaMixer.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_TranscendentPlasmaMixer.java index e60e999e0c..b8d9b008e2 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_TranscendentPlasmaMixer.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_TranscendentPlasmaMixer.java @@ -32,47 +32,30 @@ import gregtech.api.util.GT_Recipe; import gregtech.common.items.GT_IntegratedCircuit_Item; public class GT_MetaTileEntity_TranscendentPlasmaMixer - extends GT_MetaTileEntity_EnhancedMultiBlockBase - implements IGlobalWirelessEnergy, ISurvivalConstructable { + extends GT_MetaTileEntity_EnhancedMultiBlockBase + implements IGlobalWirelessEnergy, ISurvivalConstructable { private static final String[][] structure = new String[][] { - { " CAC ", " ABA ", " ABA ", " A~A ", " ABA ", " ABA ", " CAC " }, - { "CBBBC", "A A", "A A", "A A", "A A", "A A", "CBBBC" }, - { "ABBBA", "B B", "B B", "B B", "B B", "B B", "ABBBA" }, - { "CBBBC", "A A", "A A", "A A", "A A", "A A", "CBBBC" }, - { " CAC ", " ABA ", " ABA ", " ABA ", " ABA ", " ABA ", " CAC " } }; + { " CAC ", " ABA ", " ABA ", " A~A ", " ABA ", " ABA ", " CAC " }, + { "CBBBC", "A A", "A A", "A A", "A A", "A A", "CBBBC" }, + { "ABBBA", "B B", "B B", "B B", "B B", "B B", "ABBBA" }, + { "CBBBC", "A A", "A A", "A A", "A A", "A A", "CBBBC" }, + { " CAC ", " ABA ", " ABA ", " ABA ", " ABA ", " ABA ", " CAC " } }; private static final String STRUCTURE_PIECE_MAIN = "MAIN"; - private static final IStructureDefinition STRUCTURE_DEFINITION = StructureDefinition.builder() - .addShape( - STRUCTURE_PIECE_MAIN, - structure) - .addElement( - 'B', - buildHatchAdder( - GT_MetaTileEntity_TranscendentPlasmaMixer.class).atLeast( - InputHatch, - OutputHatch, - InputBus, - Maintenance) - .casingIndex( - DIM_INJECTION_CASING) - .dot( - 1) - .buildAndChain( - GregTech_API.sBlockCasings1, - DIM_INJECTION_CASING)) - .addElement( - 'A', - ofBlock( - GregTech_API.sBlockCasings1, - DIM_TRANS_CASING)) - .addElement( - 'C', - ofBlock( - GregTech_API.sBlockCasings1, - DIM_BRIDGE_CASING)) - .build(); + private static final IStructureDefinition STRUCTURE_DEFINITION = StructureDefinition + .builder() + .addShape(STRUCTURE_PIECE_MAIN, structure) + .addElement( + 'B', + buildHatchAdder(GT_MetaTileEntity_TranscendentPlasmaMixer.class) + .atLeast(InputHatch, OutputHatch, InputBus, Maintenance) + .casingIndex(DIM_INJECTION_CASING) + .dot(1) + .buildAndChain(GregTech_API.sBlockCasings1, DIM_INJECTION_CASING)) + .addElement('A', ofBlock(GregTech_API.sBlockCasings1, DIM_TRANS_CASING)) + .addElement('C', ofBlock(GregTech_API.sBlockCasings1, DIM_BRIDGE_CASING)) + .build(); private String ownerUUID; @@ -93,19 +76,19 @@ public class GT_MetaTileEntity_TranscendentPlasmaMixer protected GT_Multiblock_Tooltip_Builder createTooltip() { final GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder(); tt.addMachineType("Transcendent Mixer") - .addInfo("Assisting in all your DTPF needs.") - .addInfo("This multiblock will run in parallel according to the circuit provided to the") - .addInfo("controller slot. E.g. 3x Circuit #16 = 48x parallel. All inputs will scale,") - .addInfo("except time. All EU is deducted from wireless EU networks only.") - .addInfo(AuthorColen) - .addInfo("Controller slot and circuit slot are separate.") - .addSeparator() - .beginStructureBlock(5, 7, 5, false) - .addStructureInfo(GOLD + "1+ " + GRAY + "Input Hatch") - .addStructureInfo(GOLD + "1+ " + GRAY + "Output Hatch") - .addStructureInfo(GOLD + "1+ " + GRAY + "Input Bus") - .addStructureInfo(GOLD + "1 " + GRAY + "Maintenance Hatch") - .toolTipFinisher("Gregtech"); + .addInfo("Assisting in all your DTPF needs.") + .addInfo("This multiblock will run in parallel according to the circuit provided to the") + .addInfo("controller slot. E.g. 3x Circuit #16 = 48x parallel. All inputs will scale,") + .addInfo("except time. All EU is deducted from wireless EU networks only.") + .addInfo(AuthorColen) + .addInfo("Controller slot and circuit slot are separate.") + .addSeparator() + .beginStructureBlock(5, 7, 5, false) + .addStructureInfo(GOLD + "1+ " + GRAY + "Input Hatch") + .addStructureInfo(GOLD + "1+ " + GRAY + "Output Hatch") + .addStructureInfo(GOLD + "1+ " + GRAY + "Input Bus") + .addStructureInfo(GOLD + "1 " + GRAY + "Maintenance Hatch") + .toolTipFinisher("Gregtech"); return tt; } @@ -116,22 +99,21 @@ public class GT_MetaTileEntity_TranscendentPlasmaMixer @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { if (aSide == aFacing) { if (aActive) return new ITexture[] { casingTexturePages[0][DIM_TRANS_CASING], TextureFactory.builder() - .addIcon( - OVERLAY_DTPF_ON) - .extFacing() - .build(), - TextureFactory.builder() - .addIcon(OVERLAY_FUSION1_GLOW) - .extFacing() - .glow() - .build() }; + .addIcon(OVERLAY_DTPF_ON) + .extFacing() + .build(), + TextureFactory.builder() + .addIcon(OVERLAY_FUSION1_GLOW) + .extFacing() + .glow() + .build() }; return new ITexture[] { casingTexturePages[0][DIM_TRANS_CASING], TextureFactory.builder() - .addIcon(OVERLAY_DTPF_OFF) - .extFacing() - .build() }; + .addIcon(OVERLAY_DTPF_OFF) + .extFacing() + .build() }; } return new ITexture[] { casingTexturePages[0][DIM_TRANS_CASING] }; @@ -156,12 +138,8 @@ public class GT_MetaTileEntity_TranscendentPlasmaMixer boolean processRecipe(ItemStack[] items, FluidStack[] fluids) { - GT_Recipe originalRecipe = GT_Recipe.GT_Recipe_Map.sTranscendentPlasmaMixerRecipes.findRecipe( - getBaseMetaTileEntity(), - false, - Long.MAX_VALUE, - fluids, - items); + GT_Recipe originalRecipe = GT_Recipe.GT_Recipe_Map.sTranscendentPlasmaMixerRecipes + .findRecipe(getBaseMetaTileEntity(), false, Long.MAX_VALUE, fluids, items); if (originalRecipe == null) { return false; @@ -217,15 +195,15 @@ public class GT_MetaTileEntity_TranscendentPlasmaMixer @Override public int survivalConstruct(ItemStack stackSize, int elementBudget, ISurvivalBuildEnvironment env) { return survivialBuildPiece( - STRUCTURE_PIECE_MAIN, - stackSize, - HORIZONTAL_OFFSET, - VERTICAL_OFFSET, - DEPTH_OFFSET, - elementBudget, - env, - false, - true); + STRUCTURE_PIECE_MAIN, + stackSize, + HORIZONTAL_OFFSET, + VERTICAL_OFFSET, + DEPTH_OFFSET, + elementBudget, + env, + false, + true); } @Override diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_VacuumFreezer.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_VacuumFreezer.java index eabdd8ee35..520fc01de0 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_VacuumFreezer.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_VacuumFreezer.java @@ -23,7 +23,7 @@ import gregtech.api.util.GT_Recipe; import gregtech.api.util.GT_Utility; public class GT_MetaTileEntity_VacuumFreezer - extends GT_MetaTileEntity_CubicMultiBlockBase { + extends GT_MetaTileEntity_CubicMultiBlockBase { public GT_MetaTileEntity_VacuumFreezer(int aID, String aName, String aNameRegional) { super(aID, aName, aNameRegional); @@ -42,49 +42,47 @@ public class GT_MetaTileEntity_VacuumFreezer protected GT_Multiblock_Tooltip_Builder createTooltip() { final GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder(); tt.addMachineType("Vacuum Freezer") - .addInfo("Controller Block for the Vacuum Freezer") - .addInfo("Cools hot ingots and cells") - .addSeparator() - .beginStructureBlock(3, 3, 3, true) - .addController("Front center") - .addCasingInfoRange("Frost Proof Machine Casing", 16, 24, false) - .addEnergyHatch("Any casing", 1) - .addMaintenanceHatch("Any casing", 1) - .addInputHatch("Any casing", 1) - .addOutputHatch("Any casing", 1) - .addInputBus("Any casing", 1) - .addOutputBus("Any casing", 1) - .toolTipFinisher("Gregtech"); + .addInfo("Controller Block for the Vacuum Freezer") + .addInfo("Cools hot ingots and cells") + .addSeparator() + .beginStructureBlock(3, 3, 3, true) + .addController("Front center") + .addCasingInfoRange("Frost Proof Machine Casing", 16, 24, false) + .addEnergyHatch("Any casing", 1) + .addMaintenanceHatch("Any casing", 1) + .addInputHatch("Any casing", 1) + .addOutputHatch("Any casing", 1) + .addInputBus("Any casing", 1) + .addOutputBus("Any casing", 1) + .toolTipFinisher("Gregtech"); return tt; } @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { ITexture[] rTexture; if (aSide == aFacing) { if (aActive) { rTexture = new ITexture[] { casingTexturePages[0][17], TextureFactory.builder() - .addIcon( - OVERLAY_FRONT_VACUUM_FREEZER_ACTIVE) - .extFacing() - .build(), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_VACUUM_FREEZER_ACTIVE_GLOW) - .extFacing() - .glow() - .build() }; + .addIcon(OVERLAY_FRONT_VACUUM_FREEZER_ACTIVE) + .extFacing() + .build(), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_VACUUM_FREEZER_ACTIVE_GLOW) + .extFacing() + .glow() + .build() }; } else { rTexture = new ITexture[] { casingTexturePages[0][17], TextureFactory.builder() - .addIcon( - OVERLAY_FRONT_VACUUM_FREEZER) - .extFacing() - .build(), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_VACUUM_FREEZER_GLOW) - .extFacing() - .glow() - .build() }; + .addIcon(OVERLAY_FRONT_VACUUM_FREEZER) + .extFacing() + .build(), + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_VACUUM_FREEZER_GLOW) + .extFacing() + .glow() + .build() }; } } else { rTexture = new ITexture[] { casingTexturePages[0][17] }; @@ -109,12 +107,8 @@ public class GT_MetaTileEntity_VacuumFreezer long tVoltage = getMaxInputVoltage(); byte tTier = (byte) Math.max(1, GT_Utility.getTier(tVoltage)); - GT_Recipe tRecipe = getRecipeMap().findRecipe( - getBaseMetaTileEntity(), - false, - gregtech.api.enums.GT_Values.V[tTier], - tFluidList, - tInputList); + GT_Recipe tRecipe = getRecipeMap() + .findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[tTier], tFluidList, tInputList); if (tRecipe != null) { if (tRecipe.isRecipeInputEqual(true, tFluidList, tInputList)) { this.mEfficiency = (10000 - (getIdealStatus() - getRepairStatus()) * 1000); diff --git a/src/main/java/gregtech/common/tileentities/machines/multiblock/MultiBlock_CokeOven.java b/src/main/java/gregtech/common/tileentities/machines/multiblock/MultiBlock_CokeOven.java index 4114ee5564..66e9333961 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multiblock/MultiBlock_CokeOven.java +++ b/src/main/java/gregtech/common/tileentities/machines/multiblock/MultiBlock_CokeOven.java @@ -34,7 +34,7 @@ import gregtech.api.util.GT_Multiblock_Tooltip_Builder; import gregtech.common.tileentities.machines.multiblock.logic.CokeOvenProcessingLogic; public class MultiBlock_CokeOven extends MultiBlockController - implements PollutionLogicHost, ProcessingLogicHost { + implements PollutionLogicHost, ProcessingLogicHost { private static IStructureDefinition STRUCTURE_DEFINITION = null; private static final Vec3Impl OFFSET = new Vec3Impl(1, 1, 0); @@ -79,11 +79,11 @@ public class MultiBlock_CokeOven extends MultiBlockController getStructureDefinition() { if (STRUCTURE_DEFINITION == null) { STRUCTURE_DEFINITION = StructureDefinition.builder() - .addShape( - MAIN, - new String[][] { { "AAA", "A~A", "AAA" }, - { "AAA", "A-A", "AAA" }, - { "AAA", "AAA", "AAA" } }) - .addElement( - 'A', - addMultiTileCasing( - "gt.multitileentity.casings", - getCasingMeta(), - ITEM_IN | ITEM_OUT)) - .build(); + .addShape( + MAIN, + new String[][] { { "AAA", "A~A", "AAA" }, { "AAA", "A-A", "AAA" }, { "AAA", "AAA", "AAA" } }) + .addElement('A', addMultiTileCasing("gt.multitileentity.casings", getCasingMeta(), ITEM_IN | ITEM_OUT)) + .build(); } return STRUCTURE_DEFINITION; } @@ -120,11 +113,11 @@ public class MultiBlock_CokeOven extends MultiBlockController titleLines = fontRenderer.listFormattedStringToWidth( - title, - getGUIWidth() - (TAB_PADDING + TITLE_PADDING) * 2); + final List titleLines = fontRenderer + .listFormattedStringToWidth(title, getGUIWidth() - (TAB_PADDING + TITLE_PADDING) * 2); titleWidth = titleLines.size() > 1 ? getGUIWidth() - (TAB_PADDING + TITLE_PADDING) * 2 - : fontRenderer.getStringWidth(title); + : fontRenderer.getStringWidth(title); // noinspection PointlessArithmeticExpression titleHeight = titleLines.size() * fontRenderer.FONT_HEIGHT + (titleLines.size() - 1); } final DrawableWidget tab = new DrawableWidget(); final TextWidget text = new TextWidget(title).setDefaultColor(getTitleColor()) - .setTextAlignment(Alignment.CenterLeft) - .setMaxWidth(titleWidth); + .setTextAlignment(Alignment.CenterLeft) + .setMaxWidth(titleWidth); if (GT_Mod.gregtechproxy.mTitleTabStyle == 1) { tab.setDrawable(getGUITextureSet().getTitleTabAngular()) - .setPos(0, -(titleHeight + TAB_PADDING) + 1) - .setSize(getGUIWidth(), titleHeight + TAB_PADDING * 2); + .setPos(0, -(titleHeight + TAB_PADDING) + 1) + .setSize(getGUIWidth(), titleHeight + TAB_PADDING * 2); text.setPos(TAB_PADDING + TITLE_PADDING, -titleHeight + TAB_PADDING); } else { tab.setDrawable(getGUITextureSet().getTitleTabDark()) - .setPos(0, -(titleHeight + TAB_PADDING * 2) + 1) - .setSize(titleWidth + (TAB_PADDING + TITLE_PADDING) * 2, titleHeight + TAB_PADDING * 2 - 1); + .setPos(0, -(titleHeight + TAB_PADDING * 2) + 1) + .setSize(titleWidth + (TAB_PADDING + TITLE_PADDING) * 2, titleHeight + TAB_PADDING * 2 - 1); text.setPos(TAB_PADDING + TITLE_PADDING, -titleHeight); } builder.widget(tab) - .widget(text); + .widget(text); } @Override diff --git a/src/main/java/gregtech/common/tileentities/machines/multiblock/MultiBlock_Macerator.java b/src/main/java/gregtech/common/tileentities/machines/multiblock/MultiBlock_Macerator.java index acd611ab12..c2bf782d40 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multiblock/MultiBlock_Macerator.java +++ b/src/main/java/gregtech/common/tileentities/machines/multiblock/MultiBlock_Macerator.java @@ -50,67 +50,30 @@ public class MultiBlock_Macerator extends MultiBlock_Stackable getStructureDefinition() { if (STRUCTURE_DEFINITION == null) { STRUCTURE_DEFINITION = StructureDefinition.builder() - .addShape( - STACKABLE_TOP, - transpose( - new String[][] { { " CCC ", "CCCCC", "CCCCC", - "CCCCC", " CCC " }, })) - .addShape( - STACKABLE_MIDDLE, - transpose( - new String[][] { { " BBB ", " B---B ", - "DC---CD", " B---B ", " BBB " }, })) - .addShape( - STACKABLE_BOTTOM, - transpose( - new String[][] { { " G~F ", "AAAAA", "AAAAA", - "AAAAA", " AAA " }, })) - .addElement( - 'A', - ofChain( - addMultiTileCasing( - "gt.multitileentity.casings", - getCasingMeta(), - ENERGY_IN))) - .addElement( - 'B', - ofChain( - addMultiTileCasing( - "gt.multitileentity.casings", - getCasingMeta(), - FLUID_IN | ITEM_IN - | FLUID_OUT - | ITEM_OUT))) - .addElement( - 'C', - addMultiTileCasing( - "gt.multitileentity.casings", - getCasingMeta(), - NOTHING)) - .addElement( - 'D', - addMultiTileCasing( - "gt.multitileentity.casings", - getCasingMeta(), - NOTHING)) - .addElement( - 'F', - ofChain( - addMultiTileCasing( - "gt.multitileentity.casings", - 20001, - NOTHING), - addMultiTileCasing( - "gt.multitileentity.casings", - 20002, - NOTHING))) - .addElement( - 'G', - addMultiTileCasing( - "gt.multitileentity.casings", - 10000, - NOTHING)) - .build(); + .addShape(STACKABLE_TOP, transpose(new String[][] { { " CCC ", "CCCCC", "CCCCC", "CCCCC", " CCC " }, })) + .addShape( + STACKABLE_MIDDLE, + transpose(new String[][] { { " BBB ", " B---B ", "DC---CD", " B---B ", " BBB " }, })) + .addShape( + STACKABLE_BOTTOM, + transpose(new String[][] { { " G~F ", "AAAAA", "AAAAA", "AAAAA", " AAA " }, })) + .addElement('A', ofChain(addMultiTileCasing("gt.multitileentity.casings", getCasingMeta(), ENERGY_IN))) + .addElement( + 'B', + ofChain( + addMultiTileCasing( + "gt.multitileentity.casings", + getCasingMeta(), + FLUID_IN | ITEM_IN | FLUID_OUT | ITEM_OUT))) + .addElement('C', addMultiTileCasing("gt.multitileentity.casings", getCasingMeta(), NOTHING)) + .addElement('D', addMultiTileCasing("gt.multitileentity.casings", getCasingMeta(), NOTHING)) + .addElement( + 'F', + ofChain( + addMultiTileCasing("gt.multitileentity.casings", 20001, NOTHING), + addMultiTileCasing("gt.multitileentity.casings", 20002, NOTHING))) + .addElement('G', addMultiTileCasing("gt.multitileentity.casings", 10000, NOTHING)) + .build(); } return STRUCTURE_DEFINITION; } @@ -134,19 +97,19 @@ public class MultiBlock_Macerator extends MultiBlock_Stackable 1 && aBaseMetaTileEntity.getCoverIDAtSide(mainFacing) == 0 - && !aBaseMetaTileEntity.getOpacityAtSide(mainFacing)) { + && !aBaseMetaTileEntity.getOpacityAtSide(mainFacing)) { final double oX = aBaseMetaTileEntity.getXCoord(); final double oY = aBaseMetaTileEntity.getYCoord(); @@ -182,11 +179,10 @@ public class GT_MetaTileEntity_ForgeHammer_Bronze extends GT_MetaTileEntity_Basi } ParticleEventBuilder particleEventBuilder = (new ParticleEventBuilder()).setMotion(mX, 0, mZ) - .setPosition(x, y, z) - .setWorld( - getBaseMetaTileEntity().getWorld()); + .setPosition(x, y, z) + .setWorld(getBaseMetaTileEntity().getWorld()); particleEventBuilder.setIdentifier(ParticleFX.LAVA) - .run(); + .run(); } } } diff --git a/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_ForgeHammer_Steel.java b/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_ForgeHammer_Steel.java index 22292c814b..75aaf48078 100644 --- a/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_ForgeHammer_Steel.java +++ b/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_ForgeHammer_Steel.java @@ -58,77 +58,74 @@ public class GT_MetaTileEntity_ForgeHammer_Steel extends GT_MetaTileEntity_Basic @Override public ITexture[] getSideFacingActive(byte aColor) { - return new ITexture[] { - super.getSideFacingActive(aColor)[0], TextureFactory.of(OVERLAY_SIDE_STEAM_HAMMER_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_SIDE_STEAM_HAMMER_ACTIVE_GLOW) - .glow() - .build() }; + return new ITexture[] { super.getSideFacingActive(aColor)[0], + TextureFactory.of(OVERLAY_SIDE_STEAM_HAMMER_ACTIVE), TextureFactory.builder() + .addIcon(OVERLAY_SIDE_STEAM_HAMMER_ACTIVE_GLOW) + .glow() + .build() }; } @Override public ITexture[] getSideFacingInactive(byte aColor) { return new ITexture[] { super.getSideFacingInactive(aColor)[0], TextureFactory.of(OVERLAY_SIDE_STEAM_HAMMER), - TextureFactory.builder() - .addIcon(OVERLAY_SIDE_STEAM_HAMMER_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(OVERLAY_SIDE_STEAM_HAMMER_GLOW) + .glow() + .build() }; } @Override public ITexture[] getFrontFacingActive(byte aColor) { - return new ITexture[] { - super.getFrontFacingActive(aColor)[0], TextureFactory.of(OVERLAY_FRONT_STEAM_HAMMER_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_STEAM_HAMMER_ACTIVE_GLOW) - .glow() - .build() }; + return new ITexture[] { super.getFrontFacingActive(aColor)[0], + TextureFactory.of(OVERLAY_FRONT_STEAM_HAMMER_ACTIVE), TextureFactory.builder() + .addIcon(OVERLAY_FRONT_STEAM_HAMMER_ACTIVE_GLOW) + .glow() + .build() }; } @Override public ITexture[] getFrontFacingInactive(byte aColor) { return new ITexture[] { super.getFrontFacingInactive(aColor)[0], TextureFactory.of(OVERLAY_FRONT_STEAM_HAMMER), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_STEAM_HAMMER_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_STEAM_HAMMER_GLOW) + .glow() + .build() }; } @Override public ITexture[] getTopFacingActive(byte aColor) { return new ITexture[] { super.getTopFacingActive(aColor)[0], TextureFactory.of(OVERLAY_TOP_STEAM_HAMMER_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_TOP_STEAM_HAMMER_ACTIVE_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(OVERLAY_TOP_STEAM_HAMMER_ACTIVE_GLOW) + .glow() + .build() }; } @Override public ITexture[] getTopFacingInactive(byte aColor) { return new ITexture[] { super.getTopFacingInactive(aColor)[0], TextureFactory.of(OVERLAY_TOP_STEAM_HAMMER), - TextureFactory.builder() - .addIcon(OVERLAY_TOP_STEAM_HAMMER_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(OVERLAY_TOP_STEAM_HAMMER_GLOW) + .glow() + .build() }; } @Override public ITexture[] getBottomFacingActive(byte aColor) { - return new ITexture[] { - super.getBottomFacingActive(aColor)[0], TextureFactory.of(OVERLAY_BOTTOM_STEAM_HAMMER_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_BOTTOM_STEAM_HAMMER_ACTIVE_GLOW) - .glow() - .build() }; + return new ITexture[] { super.getBottomFacingActive(aColor)[0], + TextureFactory.of(OVERLAY_BOTTOM_STEAM_HAMMER_ACTIVE), TextureFactory.builder() + .addIcon(OVERLAY_BOTTOM_STEAM_HAMMER_ACTIVE_GLOW) + .glow() + .build() }; } @Override public ITexture[] getBottomFacingInactive(byte aColor) { return new ITexture[] { super.getBottomFacingInactive(aColor)[0], - TextureFactory.of(OVERLAY_BOTTOM_STEAM_HAMMER), TextureFactory.builder() - .addIcon(OVERLAY_BOTTOM_STEAM_HAMMER_GLOW) - .glow() - .build() }; + TextureFactory.of(OVERLAY_BOTTOM_STEAM_HAMMER), TextureFactory.builder() + .addIcon(OVERLAY_BOTTOM_STEAM_HAMMER_GLOW) + .glow() + .build() }; } /** @@ -146,7 +143,7 @@ public class GT_MetaTileEntity_ForgeHammer_Steel extends GT_MetaTileEntity_Basic final byte mainFacing = (byte) this.mMainFacing; if (mainFacing > 1 && aBaseMetaTileEntity.getCoverIDAtSide(mainFacing) == 0 - && !aBaseMetaTileEntity.getOpacityAtSide(mainFacing)) { + && !aBaseMetaTileEntity.getOpacityAtSide(mainFacing)) { final double oX = aBaseMetaTileEntity.getXCoord(); final double oY = aBaseMetaTileEntity.getYCoord(); @@ -182,11 +179,10 @@ public class GT_MetaTileEntity_ForgeHammer_Steel extends GT_MetaTileEntity_Basic } ParticleEventBuilder particleEventBuilder = (new ParticleEventBuilder()).setMotion(mX, 0, mZ) - .setPosition(x, y, z) - .setWorld( - getBaseMetaTileEntity().getWorld()); + .setPosition(x, y, z) + .setWorld(getBaseMetaTileEntity().getWorld()); particleEventBuilder.setIdentifier(ParticleFX.LAVA) - .run(); + .run(); } } } diff --git a/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Furnace_Bronze.java b/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Furnace_Bronze.java index deb0d6c2d8..088292548a 100644 --- a/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Furnace_Bronze.java +++ b/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Furnace_Bronze.java @@ -55,9 +55,9 @@ public class GT_MetaTileEntity_Furnace_Bronze extends GT_MetaTileEntity_BasicMac @Override protected boolean allowPutStackValidated(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, - ItemStack aStack) { + ItemStack aStack) { return super.allowPutStackValidated(aBaseMetaTileEntity, aIndex, aSide, aStack) - && GT_ModHandler.getSmeltingOutput(GT_Utility.copyAmount(64L, aStack), false, null) != null; + && GT_ModHandler.getSmeltingOutput(GT_Utility.copyAmount(64L, aStack), false, null) != null; } @Override @@ -75,79 +75,75 @@ public class GT_MetaTileEntity_Furnace_Bronze extends GT_MetaTileEntity_BasicMac @Override public ITexture[] getSideFacingActive(byte aColor) { - return new ITexture[] { - super.getSideFacingActive(aColor)[0], TextureFactory.of(OVERLAY_SIDE_STEAM_FURNACE_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_SIDE_STEAM_FURNACE_ACTIVE_GLOW) - .glow() - .build() }; + return new ITexture[] { super.getSideFacingActive(aColor)[0], + TextureFactory.of(OVERLAY_SIDE_STEAM_FURNACE_ACTIVE), TextureFactory.builder() + .addIcon(OVERLAY_SIDE_STEAM_FURNACE_ACTIVE_GLOW) + .glow() + .build() }; } @Override public ITexture[] getSideFacingInactive(byte aColor) { return new ITexture[] { super.getSideFacingInactive(aColor)[0], TextureFactory.of(OVERLAY_SIDE_STEAM_FURNACE), - TextureFactory.builder() - .addIcon(OVERLAY_SIDE_STEAM_FURNACE_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(OVERLAY_SIDE_STEAM_FURNACE_GLOW) + .glow() + .build() }; } @Override public ITexture[] getFrontFacingActive(byte aColor) { - return new ITexture[] { - super.getFrontFacingActive(aColor)[0], TextureFactory.of(OVERLAY_FRONT_STEAM_FURNACE_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_STEAM_FURNACE_ACTIVE_GLOW) - .glow() - .build() }; + return new ITexture[] { super.getFrontFacingActive(aColor)[0], + TextureFactory.of(OVERLAY_FRONT_STEAM_FURNACE_ACTIVE), TextureFactory.builder() + .addIcon(OVERLAY_FRONT_STEAM_FURNACE_ACTIVE_GLOW) + .glow() + .build() }; } @Override public ITexture[] getFrontFacingInactive(byte aColor) { return new ITexture[] { super.getFrontFacingInactive(aColor)[0], TextureFactory.of(OVERLAY_FRONT_STEAM_FURNACE), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_STEAM_FURNACE_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_STEAM_FURNACE_GLOW) + .glow() + .build() }; } @Override public ITexture[] getTopFacingActive(byte aColor) { - return new ITexture[] { - super.getTopFacingActive(aColor)[0], TextureFactory.of(OVERLAY_TOP_STEAM_FURNACE_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_BOTTOM_STEAM_FURNACE_ACTIVE_GLOW) - .glow() - .build() }; + return new ITexture[] { super.getTopFacingActive(aColor)[0], + TextureFactory.of(OVERLAY_TOP_STEAM_FURNACE_ACTIVE), TextureFactory.builder() + .addIcon(OVERLAY_BOTTOM_STEAM_FURNACE_ACTIVE_GLOW) + .glow() + .build() }; } @Override public ITexture[] getTopFacingInactive(byte aColor) { return new ITexture[] { super.getTopFacingInactive(aColor)[0], TextureFactory.of(OVERLAY_TOP_STEAM_FURNACE), - TextureFactory.builder() - .addIcon(OVERLAY_TOP_STEAM_FURNACE_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(OVERLAY_TOP_STEAM_FURNACE_GLOW) + .glow() + .build() }; } @Override public ITexture[] getBottomFacingActive(byte aColor) { - return new ITexture[] { - super.getBottomFacingActive(aColor)[0], TextureFactory.of(OVERLAY_BOTTOM_STEAM_FURNACE_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_BOTTOM_STEAM_FURNACE_ACTIVE_GLOW) - .glow() - .build() }; + return new ITexture[] { super.getBottomFacingActive(aColor)[0], + TextureFactory.of(OVERLAY_BOTTOM_STEAM_FURNACE_ACTIVE), TextureFactory.builder() + .addIcon(OVERLAY_BOTTOM_STEAM_FURNACE_ACTIVE_GLOW) + .glow() + .build() }; } @Override public ITexture[] getBottomFacingInactive(byte aColor) { return new ITexture[] { super.getBottomFacingInactive(aColor)[0], - TextureFactory.of( - TextureFactory.of(OVERLAY_BOTTOM_STEAM_FURNACE), - TextureFactory.builder() - .addIcon(OVERLAY_BOTTOM_STEAM_FURNACE_GLOW) - .glow() - .build()) }; + TextureFactory.of( + TextureFactory.of(OVERLAY_BOTTOM_STEAM_FURNACE), + TextureFactory.builder() + .addIcon(OVERLAY_BOTTOM_STEAM_FURNACE_GLOW) + .glow() + .build()) }; } } diff --git a/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Furnace_Steel.java b/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Furnace_Steel.java index 285e85943f..49663fd852 100644 --- a/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Furnace_Steel.java +++ b/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Furnace_Steel.java @@ -55,9 +55,9 @@ public class GT_MetaTileEntity_Furnace_Steel extends GT_MetaTileEntity_BasicMach @Override protected boolean allowPutStackValidated(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, - ItemStack aStack) { + ItemStack aStack) { return super.allowPutStackValidated(aBaseMetaTileEntity, aIndex, aSide, aStack) - && GT_ModHandler.getSmeltingOutput(GT_Utility.copyAmount(64L, aStack), false, null) != null; + && GT_ModHandler.getSmeltingOutput(GT_Utility.copyAmount(64L, aStack), false, null) != null; } @Override @@ -75,78 +75,73 @@ public class GT_MetaTileEntity_Furnace_Steel extends GT_MetaTileEntity_BasicMach @Override public ITexture[] getSideFacingActive(byte aColor) { - return new ITexture[] { - super.getSideFacingActive(aColor)[0], TextureFactory.of(OVERLAY_SIDE_STEAM_FURNACE_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_SIDE_STEAM_FURNACE_ACTIVE_GLOW) - .glow() - .build() }; + return new ITexture[] { super.getSideFacingActive(aColor)[0], + TextureFactory.of(OVERLAY_SIDE_STEAM_FURNACE_ACTIVE), TextureFactory.builder() + .addIcon(OVERLAY_SIDE_STEAM_FURNACE_ACTIVE_GLOW) + .glow() + .build() }; } @Override public ITexture[] getSideFacingInactive(byte aColor) { return new ITexture[] { super.getSideFacingInactive(aColor)[0], TextureFactory.of(OVERLAY_SIDE_STEAM_FURNACE), - TextureFactory.builder() - .addIcon(OVERLAY_SIDE_STEAM_FURNACE_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(OVERLAY_SIDE_STEAM_FURNACE_GLOW) + .glow() + .build() }; } @Override public ITexture[] getFrontFacingActive(byte aColor) { - return new ITexture[] { - super.getFrontFacingActive(aColor)[0], TextureFactory.of(OVERLAY_FRONT_STEAM_FURNACE_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_STEAM_FURNACE_ACTIVE_GLOW) - .glow() - .build() }; + return new ITexture[] { super.getFrontFacingActive(aColor)[0], + TextureFactory.of(OVERLAY_FRONT_STEAM_FURNACE_ACTIVE), TextureFactory.builder() + .addIcon(OVERLAY_FRONT_STEAM_FURNACE_ACTIVE_GLOW) + .glow() + .build() }; } @Override public ITexture[] getFrontFacingInactive(byte aColor) { return new ITexture[] { super.getFrontFacingInactive(aColor)[0], TextureFactory.of(OVERLAY_FRONT_STEAM_FURNACE), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_STEAM_FURNACE_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(OVERLAY_FRONT_STEAM_FURNACE_GLOW) + .glow() + .build() }; } @Override public ITexture[] getTopFacingActive(byte aColor) { - return new ITexture[] { - super.getTopFacingActive(aColor)[0], TextureFactory.of(OVERLAY_TOP_STEAM_FURNACE_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_BOTTOM_STEAM_FURNACE_ACTIVE_GLOW) - .glow() - .build() }; + return new ITexture[] { super.getTopFacingActive(aColor)[0], + TextureFactory.of(OVERLAY_TOP_STEAM_FURNACE_ACTIVE), TextureFactory.builder() + .addIcon(OVERLAY_BOTTOM_STEAM_FURNACE_ACTIVE_GLOW) + .glow() + .build() }; } @Override public ITexture[] getTopFacingInactive(byte aColor) { return new ITexture[] { super.getTopFacingInactive(aColor)[0], TextureFactory.of(OVERLAY_TOP_STEAM_FURNACE), - TextureFactory.builder() - .addIcon(OVERLAY_TOP_STEAM_FURNACE_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(OVERLAY_TOP_STEAM_FURNACE_GLOW) + .glow() + .build() }; } @Override public ITexture[] getBottomFacingActive(byte aColor) { - return new ITexture[] { - super.getBottomFacingActive(aColor)[0], TextureFactory.of(OVERLAY_BOTTOM_STEAM_FURNACE_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_BOTTOM_STEAM_FURNACE_ACTIVE_GLOW) - .glow() - .build() }; + return new ITexture[] { super.getBottomFacingActive(aColor)[0], + TextureFactory.of(OVERLAY_BOTTOM_STEAM_FURNACE_ACTIVE), TextureFactory.builder() + .addIcon(OVERLAY_BOTTOM_STEAM_FURNACE_ACTIVE_GLOW) + .glow() + .build() }; } @Override public ITexture[] getBottomFacingInactive(byte aColor) { - return new ITexture[] { - super.getBottomFacingInactive(aColor)[0], TextureFactory.of(OVERLAY_BOTTOM_STEAM_FURNACE), - TextureFactory.builder() - .addIcon(OVERLAY_BOTTOM_STEAM_FURNACE_GLOW) - .glow() - .build() }; + return new ITexture[] { super.getBottomFacingInactive(aColor)[0], + TextureFactory.of(OVERLAY_BOTTOM_STEAM_FURNACE), TextureFactory.builder() + .addIcon(OVERLAY_BOTTOM_STEAM_FURNACE_GLOW) + .glow() + .build() }; } } diff --git a/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Macerator_Bronze.java b/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Macerator_Bronze.java index 936b75bc8c..7481b8716a 100644 --- a/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Macerator_Bronze.java +++ b/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Macerator_Bronze.java @@ -47,20 +47,17 @@ public class GT_MetaTileEntity_Macerator_Bronze extends GT_MetaTileEntity_BasicM final byte topFacing = (byte) ForgeDirection.UP.ordinal(); if (aBaseMetaTileEntity.getFrontFacing() != topFacing - && aBaseMetaTileEntity.getCoverIDAtSide(topFacing) == 0 - && !aBaseMetaTileEntity.getOpacityAtSide(topFacing)) { + && aBaseMetaTileEntity.getCoverIDAtSide(topFacing) == 0 + && !aBaseMetaTileEntity.getOpacityAtSide(topFacing)) { new ParticleEventBuilder().setMotion(0.0D, 0.0D, 0.0D) - .setIdentifier(ParticleFX.SMOKE) - .setPosition( - aBaseMetaTileEntity.getXCoord() + 0.8F - - XSTR_INSTANCE.nextFloat() * 0.6F, - aBaseMetaTileEntity.getYCoord() + 0.9F - + XSTR_INSTANCE.nextFloat() * 0.2F, - aBaseMetaTileEntity.getZCoord() + 0.8F - - XSTR_INSTANCE.nextFloat() * 0.6F) - .setWorld(getBaseMetaTileEntity().getWorld()) - .run(); + .setIdentifier(ParticleFX.SMOKE) + .setPosition( + aBaseMetaTileEntity.getXCoord() + 0.8F - XSTR_INSTANCE.nextFloat() * 0.6F, + aBaseMetaTileEntity.getYCoord() + 0.9F + XSTR_INSTANCE.nextFloat() * 0.2F, + aBaseMetaTileEntity.getZCoord() + 0.8F - XSTR_INSTANCE.nextFloat() * 0.6F) + .setWorld(getBaseMetaTileEntity().getWorld()) + .run(); } } } @@ -72,14 +69,8 @@ public class GT_MetaTileEntity_Macerator_Bronze extends GT_MetaTileEntity_BasicM @Override public int checkRecipe() { - GT_Recipe tRecipe = getRecipeList().findRecipe( - getBaseMetaTileEntity(), - mLastRecipe, - false, - V[mTier], - null, - null, - getAllInputs()); + GT_Recipe tRecipe = getRecipeList() + .findRecipe(getBaseMetaTileEntity(), mLastRecipe, false, V[mTier], null, null, getAllInputs()); if (tRecipe == null) return DID_NOT_FIND_RECIPE; if (tRecipe.mCanBeBuffered) mLastRecipe = tRecipe; if (!canOutput(tRecipe)) { @@ -96,9 +87,9 @@ public class GT_MetaTileEntity_Macerator_Bronze extends GT_MetaTileEntity_BasicM @Override protected boolean allowPutStackValidated(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, - ItemStack aStack) { + ItemStack aStack) { return super.allowPutStackValidated(aBaseMetaTileEntity, aIndex, aSide, aStack) - && GT_Recipe_Map.sMaceratorRecipes.containsInput(GT_Utility.copyAmount(64L, aStack)); + && GT_Recipe_Map.sMaceratorRecipes.containsInput(GT_Utility.copyAmount(64L, aStack)); } @Override @@ -116,79 +107,73 @@ public class GT_MetaTileEntity_Macerator_Bronze extends GT_MetaTileEntity_BasicM @Override public ITexture[] getSideFacingActive(byte aColor) { - return new ITexture[] { - super.getSideFacingActive(aColor)[0], TextureFactory.of(OVERLAY_SIDE_STEAM_MACERATOR_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_SIDE_STEAM_MACERATOR_ACTIVE_GLOW) - .glow() - .build() }; + return new ITexture[] { super.getSideFacingActive(aColor)[0], + TextureFactory.of(OVERLAY_SIDE_STEAM_MACERATOR_ACTIVE), TextureFactory.builder() + .addIcon(OVERLAY_SIDE_STEAM_MACERATOR_ACTIVE_GLOW) + .glow() + .build() }; } @Override public ITexture[] getSideFacingInactive(byte aColor) { return new ITexture[] { super.getSideFacingInactive(aColor)[0], TextureFactory.of(OVERLAY_SIDE_STEAM_MACERATOR), - TextureFactory.builder() - .addIcon(OVERLAY_SIDE_STEAM_MACERATOR_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(OVERLAY_SIDE_STEAM_MACERATOR_GLOW) + .glow() + .build() }; } @Override public ITexture[] getFrontFacingActive(byte aColor) { - return new ITexture[] { - super.getFrontFacingActive(aColor)[0], TextureFactory.of(OVERLAY_FRONT_STEAM_MACERATOR_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_STEAM_MACERATOR_ACTIVE_GLOW) - .glow() - .build() }; + return new ITexture[] { super.getFrontFacingActive(aColor)[0], + TextureFactory.of(OVERLAY_FRONT_STEAM_MACERATOR_ACTIVE), TextureFactory.builder() + .addIcon(OVERLAY_FRONT_STEAM_MACERATOR_ACTIVE_GLOW) + .glow() + .build() }; } @Override public ITexture[] getFrontFacingInactive(byte aColor) { - return new ITexture[] { - super.getFrontFacingInactive(aColor)[0], TextureFactory.of(OVERLAY_FRONT_STEAM_MACERATOR), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_STEAM_MACERATOR_GLOW) - .glow() - .build() }; + return new ITexture[] { super.getFrontFacingInactive(aColor)[0], + TextureFactory.of(OVERLAY_FRONT_STEAM_MACERATOR), TextureFactory.builder() + .addIcon(OVERLAY_FRONT_STEAM_MACERATOR_GLOW) + .glow() + .build() }; } @Override public ITexture[] getTopFacingActive(byte aColor) { - return new ITexture[] { - super.getTopFacingActive(aColor)[0], TextureFactory.of(OVERLAY_TOP_STEAM_MACERATOR_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_TOP_STEAM_MACERATOR_ACTIVE_GLOW) - .glow() - .build() }; + return new ITexture[] { super.getTopFacingActive(aColor)[0], + TextureFactory.of(OVERLAY_TOP_STEAM_MACERATOR_ACTIVE), TextureFactory.builder() + .addIcon(OVERLAY_TOP_STEAM_MACERATOR_ACTIVE_GLOW) + .glow() + .build() }; } @Override public ITexture[] getTopFacingInactive(byte aColor) { return new ITexture[] { super.getTopFacingInactive(aColor)[0], TextureFactory.of(OVERLAY_TOP_STEAM_MACERATOR), - TextureFactory.builder() - .addIcon(OVERLAY_TOP_STEAM_MACERATOR_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(OVERLAY_TOP_STEAM_MACERATOR_GLOW) + .glow() + .build() }; } @Override public ITexture[] getBottomFacingActive(byte aColor) { - return new ITexture[] { - super.getBottomFacingActive(aColor)[0], TextureFactory.of(OVERLAY_BOTTOM_STEAM_MACERATOR_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_BOTTOM_STEAM_MACERATOR_ACTIVE_GLOW) - .glow() - .build() }; + return new ITexture[] { super.getBottomFacingActive(aColor)[0], + TextureFactory.of(OVERLAY_BOTTOM_STEAM_MACERATOR_ACTIVE), TextureFactory.builder() + .addIcon(OVERLAY_BOTTOM_STEAM_MACERATOR_ACTIVE_GLOW) + .glow() + .build() }; } @Override public ITexture[] getBottomFacingInactive(byte aColor) { - return new ITexture[] { - super.getBottomFacingInactive(aColor)[0], TextureFactory.of(OVERLAY_BOTTOM_STEAM_MACERATOR), - TextureFactory.builder() - .addIcon(OVERLAY_BOTTOM_STEAM_MACERATOR_GLOW) - .glow() - .build() }; + return new ITexture[] { super.getBottomFacingInactive(aColor)[0], + TextureFactory.of(OVERLAY_BOTTOM_STEAM_MACERATOR), TextureFactory.builder() + .addIcon(OVERLAY_BOTTOM_STEAM_MACERATOR_GLOW) + .glow() + .build() }; } } diff --git a/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Macerator_Steel.java b/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Macerator_Steel.java index 64b44a5510..fb270fc95f 100644 --- a/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Macerator_Steel.java +++ b/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Macerator_Steel.java @@ -47,20 +47,17 @@ public class GT_MetaTileEntity_Macerator_Steel extends GT_MetaTileEntity_BasicMa final byte topFacing = (byte) ForgeDirection.UP.ordinal(); if (aBaseMetaTileEntity.getFrontFacing() != topFacing - && aBaseMetaTileEntity.getCoverIDAtSide(topFacing) == 0 - && !aBaseMetaTileEntity.getOpacityAtSide(topFacing)) { + && aBaseMetaTileEntity.getCoverIDAtSide(topFacing) == 0 + && !aBaseMetaTileEntity.getOpacityAtSide(topFacing)) { new WorldSpawnedEventBuilder.ParticleEventBuilder().setMotion(0.0D, 0.0D, 0.0D) - .setIdentifier(ParticleFX.SMOKE) - .setPosition( - aBaseMetaTileEntity.getXCoord() + 0.8F - - XSTR_INSTANCE.nextFloat() * 0.6F, - aBaseMetaTileEntity.getYCoord() + 0.9F - + XSTR_INSTANCE.nextFloat() * 0.2F, - aBaseMetaTileEntity.getZCoord() + 0.8F - - XSTR_INSTANCE.nextFloat() * 0.6F) - .setWorld(getBaseMetaTileEntity().getWorld()) - .run(); + .setIdentifier(ParticleFX.SMOKE) + .setPosition( + aBaseMetaTileEntity.getXCoord() + 0.8F - XSTR_INSTANCE.nextFloat() * 0.6F, + aBaseMetaTileEntity.getYCoord() + 0.9F + XSTR_INSTANCE.nextFloat() * 0.2F, + aBaseMetaTileEntity.getZCoord() + 0.8F - XSTR_INSTANCE.nextFloat() * 0.6F) + .setWorld(getBaseMetaTileEntity().getWorld()) + .run(); } } } @@ -72,14 +69,8 @@ public class GT_MetaTileEntity_Macerator_Steel extends GT_MetaTileEntity_BasicMa @Override public int checkRecipe() { - GT_Recipe tRecipe = getRecipeList().findRecipe( - getBaseMetaTileEntity(), - mLastRecipe, - false, - V[mTier], - null, - null, - getAllInputs()); + GT_Recipe tRecipe = getRecipeList() + .findRecipe(getBaseMetaTileEntity(), mLastRecipe, false, V[mTier], null, null, getAllInputs()); if (tRecipe == null) return DID_NOT_FIND_RECIPE; if (tRecipe.mCanBeBuffered) mLastRecipe = tRecipe; if (!canOutput(tRecipe)) { @@ -96,9 +87,9 @@ public class GT_MetaTileEntity_Macerator_Steel extends GT_MetaTileEntity_BasicMa @Override public boolean allowPutStackValidated(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, - ItemStack aStack) { + ItemStack aStack) { return super.allowPutStackValidated(aBaseMetaTileEntity, aIndex, aSide, aStack) - && GT_Recipe_Map.sMaceratorRecipes.containsInput(GT_Utility.copyAmount(64L, aStack)); + && GT_Recipe_Map.sMaceratorRecipes.containsInput(GT_Utility.copyAmount(64L, aStack)); } @Override @@ -116,79 +107,73 @@ public class GT_MetaTileEntity_Macerator_Steel extends GT_MetaTileEntity_BasicMa @Override public ITexture[] getSideFacingActive(byte aColor) { - return new ITexture[] { - super.getSideFacingActive(aColor)[0], TextureFactory.of(OVERLAY_SIDE_STEAM_MACERATOR_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_SIDE_STEAM_MACERATOR_ACTIVE_GLOW) - .glow() - .build() }; + return new ITexture[] { super.getSideFacingActive(aColor)[0], + TextureFactory.of(OVERLAY_SIDE_STEAM_MACERATOR_ACTIVE), TextureFactory.builder() + .addIcon(OVERLAY_SIDE_STEAM_MACERATOR_ACTIVE_GLOW) + .glow() + .build() }; } @Override public ITexture[] getSideFacingInactive(byte aColor) { return new ITexture[] { super.getSideFacingInactive(aColor)[0], TextureFactory.of(OVERLAY_SIDE_STEAM_MACERATOR), - TextureFactory.builder() - .addIcon(OVERLAY_SIDE_STEAM_MACERATOR_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(OVERLAY_SIDE_STEAM_MACERATOR_GLOW) + .glow() + .build() }; } @Override public ITexture[] getFrontFacingActive(byte aColor) { - return new ITexture[] { - super.getFrontFacingActive(aColor)[0], TextureFactory.of(OVERLAY_FRONT_STEAM_MACERATOR_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_STEAM_MACERATOR_ACTIVE_GLOW) - .glow() - .build() }; + return new ITexture[] { super.getFrontFacingActive(aColor)[0], + TextureFactory.of(OVERLAY_FRONT_STEAM_MACERATOR_ACTIVE), TextureFactory.builder() + .addIcon(OVERLAY_FRONT_STEAM_MACERATOR_ACTIVE_GLOW) + .glow() + .build() }; } @Override public ITexture[] getFrontFacingInactive(byte aColor) { - return new ITexture[] { - super.getFrontFacingInactive(aColor)[0], TextureFactory.of(OVERLAY_FRONT_STEAM_MACERATOR), - TextureFactory.builder() - .addIcon(OVERLAY_FRONT_STEAM_MACERATOR_GLOW) - .glow() - .build() }; + return new ITexture[] { super.getFrontFacingInactive(aColor)[0], + TextureFactory.of(OVERLAY_FRONT_STEAM_MACERATOR), TextureFactory.builder() + .addIcon(OVERLAY_FRONT_STEAM_MACERATOR_GLOW) + .glow() + .build() }; } @Override public ITexture[] getTopFacingActive(byte aColor) { - return new ITexture[] { - super.getTopFacingActive(aColor)[0], TextureFactory.of(OVERLAY_TOP_STEAM_MACERATOR_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_TOP_STEAM_MACERATOR_ACTIVE_GLOW) - .glow() - .build() }; + return new ITexture[] { super.getTopFacingActive(aColor)[0], + TextureFactory.of(OVERLAY_TOP_STEAM_MACERATOR_ACTIVE), TextureFactory.builder() + .addIcon(OVERLAY_TOP_STEAM_MACERATOR_ACTIVE_GLOW) + .glow() + .build() }; } @Override public ITexture[] getTopFacingInactive(byte aColor) { return new ITexture[] { super.getTopFacingInactive(aColor)[0], TextureFactory.of(OVERLAY_TOP_STEAM_MACERATOR), - TextureFactory.builder() - .addIcon(OVERLAY_TOP_STEAM_MACERATOR_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(OVERLAY_TOP_STEAM_MACERATOR_GLOW) + .glow() + .build() }; } @Override public ITexture[] getBottomFacingActive(byte aColor) { - return new ITexture[] { - super.getBottomFacingActive(aColor)[0], TextureFactory.of(OVERLAY_BOTTOM_STEAM_MACERATOR_ACTIVE), - TextureFactory.builder() - .addIcon(OVERLAY_BOTTOM_STEAM_MACERATOR_ACTIVE_GLOW) - .glow() - .build() }; + return new ITexture[] { super.getBottomFacingActive(aColor)[0], + TextureFactory.of(OVERLAY_BOTTOM_STEAM_MACERATOR_ACTIVE), TextureFactory.builder() + .addIcon(OVERLAY_BOTTOM_STEAM_MACERATOR_ACTIVE_GLOW) + .glow() + .build() }; } @Override public ITexture[] getBottomFacingInactive(byte aColor) { - return new ITexture[] { - super.getBottomFacingInactive(aColor)[0], TextureFactory.of(OVERLAY_BOTTOM_STEAM_MACERATOR), - TextureFactory.builder() - .addIcon(OVERLAY_BOTTOM_STEAM_MACERATOR_GLOW) - .glow() - .build() }; + return new ITexture[] { super.getBottomFacingInactive(aColor)[0], + TextureFactory.of(OVERLAY_BOTTOM_STEAM_MACERATOR), TextureFactory.builder() + .addIcon(OVERLAY_BOTTOM_STEAM_MACERATOR_GLOW) + .glow() + .build() }; } } diff --git a/src/main/java/gregtech/common/tileentities/storage/GT_MetaTileEntity_DigitalChestBase.java b/src/main/java/gregtech/common/tileentities/storage/GT_MetaTileEntity_DigitalChestBase.java index 23bf3d7c46..c9a3ad7650 100644 --- a/src/main/java/gregtech/common/tileentities/storage/GT_MetaTileEntity_DigitalChestBase.java +++ b/src/main/java/gregtech/common/tileentities/storage/GT_MetaTileEntity_DigitalChestBase.java @@ -41,7 +41,7 @@ import gregtech.api.util.GT_LanguageManager; import gregtech.api.util.GT_Utility; public abstract class GT_MetaTileEntity_DigitalChestBase extends GT_MetaTileEntity_TieredMachineBlock - implements appeng.api.storage.IMEMonitor, IAddUIWidgets { + implements appeng.api.storage.IMEMonitor, IAddUIWidgets { protected boolean mVoidOverflow = false; protected boolean mDisableFilter; @@ -49,14 +49,13 @@ public abstract class GT_MetaTileEntity_DigitalChestBase extends GT_MetaTileEnti public GT_MetaTileEntity_DigitalChestBase(int aID, String aName, String aNameRegional, int aTier) { super( - aID, - aName, - aNameRegional, - aTier, - 3, - new String[] { "This Chest stores " + GT_Utility.formatNumbers(commonSizeCompute(aTier)) + " Blocks", - "Use a screwdriver to enable", "voiding items on overflow", - "Will keep its contents when harvested", }); + aID, + aName, + aNameRegional, + aTier, + 3, + new String[] { "This Chest stores " + GT_Utility.formatNumbers(commonSizeCompute(aTier)) + " Blocks", + "Use a screwdriver to enable", "voiding items on overflow", "Will keep its contents when harvested", }); } protected static int commonSizeCompute(int tier) { @@ -80,53 +79,53 @@ public abstract class GT_MetaTileEntity_DigitalChestBase extends GT_MetaTileEnti } public GT_MetaTileEntity_DigitalChestBase(String aName, int aTier, String[] aDescription, - ITexture[][][] aTextures) { + ITexture[][][] aTextures) { super(aName, aTier, 3, aDescription, aTextures); } @Override public void addAdditionalTooltipInformation(ItemStack stack, List tooltip) { if (stack.hasTagCompound() && stack.stackTagCompound.hasKey("mItemStack")) { - final ItemStack tContents = ItemStack.loadItemStackFromNBT( - stack.stackTagCompound.getCompoundTag("mItemStack")); + final ItemStack tContents = ItemStack + .loadItemStackFromNBT(stack.stackTagCompound.getCompoundTag("mItemStack")); final int tSize = stack.stackTagCompound.getInteger("mItemCount"); if (tContents != null && tSize > 0) { tooltip.add( - GT_LanguageManager.addStringLocalization( - "TileEntity_CHEST_INFO", - "Contains Item: ", - !GregTech_API.sPostloadFinished) + EnumChatFormatting.YELLOW - + tContents.getDisplayName() - + EnumChatFormatting.GRAY); + GT_LanguageManager.addStringLocalization( + "TileEntity_CHEST_INFO", + "Contains Item: ", + !GregTech_API.sPostloadFinished) + EnumChatFormatting.YELLOW + + tContents.getDisplayName() + + EnumChatFormatting.GRAY); tooltip.add( - GT_LanguageManager.addStringLocalization( - "TileEntity_CHEST_AMOUNT", - "Item Amount: ", - !GregTech_API.sPostloadFinished) + EnumChatFormatting.GREEN - + GT_Utility.formatNumbers(tSize) - + EnumChatFormatting.GRAY); + GT_LanguageManager.addStringLocalization( + "TileEntity_CHEST_AMOUNT", + "Item Amount: ", + !GregTech_API.sPostloadFinished) + EnumChatFormatting.GREEN + + GT_Utility.formatNumbers(tSize) + + EnumChatFormatting.GRAY); } } } public static void registerAEIntegration() { appeng.api.AEApi.instance() - .registries() - .externalStorage() - .addExternalStorageInterface(new AE2DigitalChestHandler()); + .registries() + .externalStorage() + .addExternalStorageInterface(new AE2DigitalChestHandler()); } @Override public void addListener( - appeng.api.storage.IMEMonitorHandlerReceiver imeMonitorHandlerReceiver, - Object o) { + appeng.api.storage.IMEMonitorHandlerReceiver imeMonitorHandlerReceiver, + Object o) { if (listeners == null) listeners = new HashMap<>(); listeners.put(imeMonitorHandlerReceiver, o); } @Override public void removeListener( - appeng.api.storage.IMEMonitorHandlerReceiver imeMonitorHandlerReceiver) { + appeng.api.storage.IMEMonitorHandlerReceiver imeMonitorHandlerReceiver) { if (listeners == null) listeners = new HashMap<>(); listeners.remove(imeMonitorHandlerReceiver); } @@ -171,7 +170,7 @@ public abstract class GT_MetaTileEntity_DigitalChestBase extends GT_MetaTileEnti @Override public appeng.api.storage.data.IItemList getAvailableItems( - final appeng.api.storage.data.IItemList out) { + final appeng.api.storage.data.IItemList out) { ItemStack storedStack = getItemStack(); if (storedStack != null) { appeng.util.item.AEItemStack s = appeng.util.item.AEItemStack.create(storedStack); @@ -210,7 +209,7 @@ public abstract class GT_MetaTileEntity_DigitalChestBase extends GT_MetaTileEnti @Override public appeng.api.storage.data.IAEItemStack injectItems(final appeng.api.storage.data.IAEItemStack input, - final appeng.api.config.Actionable mode, final appeng.api.networking.security.BaseActionSource src) { + final appeng.api.config.Actionable mode, final appeng.api.networking.security.BaseActionSource src) { final ItemStack inputStack = input.getItemStack(); if (inputStack == null) return null; if (getBaseMetaTileEntity() == null) return input; @@ -246,7 +245,7 @@ public abstract class GT_MetaTileEntity_DigitalChestBase extends GT_MetaTileEnti @Override public appeng.api.storage.data.IAEItemStack extractItems(final appeng.api.storage.data.IAEItemStack request, - final appeng.api.config.Actionable mode, final appeng.api.networking.security.BaseActionSource src) { + final appeng.api.config.Actionable mode, final appeng.api.networking.security.BaseActionSource src) { if (request.isSameType(getItemStack())) { if (getBaseMetaTileEntity() == null) return null; if (mode != appeng.api.config.Actionable.SIMULATE) getBaseMetaTileEntity().markDirty(); @@ -273,22 +272,22 @@ public abstract class GT_MetaTileEntity_DigitalChestBase extends GT_MetaTileEnti public final void onScrewdriverRightClick(byte aSide, EntityPlayer aPlayer, float aX, float aY, float aZ) { mVoidOverflow = !mVoidOverflow; GT_Utility.sendChatToPlayer( - aPlayer, - StatCollector.translateToLocal( - mVoidOverflow ? "GT5U.machines.digitalchest.voidoverflow.enabled" - : "GT5U.machines.digitalchest.voidoverflow.disabled")); + aPlayer, + StatCollector.translateToLocal( + mVoidOverflow ? "GT5U.machines.digitalchest.voidoverflow.enabled" + : "GT5U.machines.digitalchest.voidoverflow.disabled")); } @Override public boolean onSolderingToolRightClick(byte aSide, byte aWrenchingSide, EntityPlayer aPlayer, float aX, float aY, - float aZ) { + float aZ) { if (super.onSolderingToolRightClick(aSide, aWrenchingSide, aPlayer, aX, aY, aZ)) return true; mDisableFilter = !mDisableFilter; GT_Utility.sendChatToPlayer( - aPlayer, - StatCollector.translateToLocal( - mDisableFilter ? "GT5U.machines.digitalchest.inputfilter.disabled" - : "GT5U.machines.digitalchest.inputfilter.enabled")); + aPlayer, + StatCollector.translateToLocal( + mDisableFilter ? "GT5U.machines.digitalchest.inputfilter.disabled" + : "GT5U.machines.digitalchest.inputfilter.enabled")); return true; } @@ -308,7 +307,7 @@ public abstract class GT_MetaTileEntity_DigitalChestBase extends GT_MetaTileEnti int savedCount = count; if ((mInventory[0] != null) && ((count < getMaxItemCount()) || mVoidOverflow) - && GT_Utility.areStacksEqual(mInventory[0], stack)) { + && GT_Utility.areStacksEqual(mInventory[0], stack)) { count += mInventory[0].stackSize; if (count <= getMaxItemCount()) { mInventory[0] = null; @@ -326,11 +325,11 @@ public abstract class GT_MetaTileEntity_DigitalChestBase extends GT_MetaTileEnti mInventory[1].stackSize = Math.min(stack.getMaxStackSize(), count); count -= mInventory[1].stackSize; } else if ((count > 0) && GT_Utility.areStacksEqual(mInventory[1], stack) - && mInventory[1].getMaxStackSize() > mInventory[1].stackSize) { - int tmp = Math.min(count, mInventory[1].getMaxStackSize() - mInventory[1].stackSize); - mInventory[1].stackSize += tmp; - count -= tmp; - } + && mInventory[1].getMaxStackSize() > mInventory[1].stackSize) { + int tmp = Math.min(count, mInventory[1].getMaxStackSize() - mInventory[1].stackSize); + mInventory[1].stackSize += tmp; + count -= tmp; + } setItemCount(count); if (stack != null) { mInventory[2] = stack.copy(); @@ -373,7 +372,7 @@ public abstract class GT_MetaTileEntity_DigitalChestBase extends GT_MetaTileEnti @Override public int getProgresstime() { return getItemCount() + (mInventory[0] == null ? 0 : mInventory[0].stackSize) - + (mInventory[1] == null ? 0 : mInventory[1].stackSize); + + (mInventory[1] == null ? 0 : mInventory[1].stackSize); } @Override @@ -391,22 +390,22 @@ public abstract class GT_MetaTileEntity_DigitalChestBase extends GT_MetaTileEnti if (getItemStack() == null) { return new String[] { EnumChatFormatting.BLUE + chestName() + EnumChatFormatting.RESET, "Stored Items:", - EnumChatFormatting.GOLD + "No Items" + EnumChatFormatting.RESET, - EnumChatFormatting.GREEN + "0" - + EnumChatFormatting.RESET - + " " - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(getMaxItemCount()) - + EnumChatFormatting.RESET }; + EnumChatFormatting.GOLD + "No Items" + EnumChatFormatting.RESET, + EnumChatFormatting.GREEN + "0" + + EnumChatFormatting.RESET + + " " + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(getMaxItemCount()) + + EnumChatFormatting.RESET }; } return new String[] { EnumChatFormatting.BLUE + chestName() + EnumChatFormatting.RESET, "Stored Items:", - EnumChatFormatting.GOLD + getItemStack().getDisplayName() + EnumChatFormatting.RESET, - EnumChatFormatting.GREEN + GT_Utility.formatNumbers(getItemCount()) - + EnumChatFormatting.RESET - + " " - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(getMaxItemCount()) - + EnumChatFormatting.RESET }; + EnumChatFormatting.GOLD + getItemStack().getDisplayName() + EnumChatFormatting.RESET, + EnumChatFormatting.GREEN + GT_Utility.formatNumbers(getItemCount()) + + EnumChatFormatting.RESET + + " " + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(getMaxItemCount()) + + EnumChatFormatting.RESET }; } @Override @@ -434,7 +433,8 @@ public abstract class GT_MetaTileEntity_DigitalChestBase extends GT_MetaTileEnti private boolean hasActiveMEConnection() { if (listeners == null || listeners.isEmpty()) return false; - for (Map.Entry, Object> e : listeners.entrySet()) { + for (Map.Entry, Object> e : listeners + .entrySet()) { if ((e.getKey() instanceof appeng.api.parts.IPart)) { appeng.api.networking.IGridNode n = ((appeng.api.parts.IPart) e.getKey()).getGridNode(); if (n != null && n.isActive()) return true; @@ -480,25 +480,25 @@ public abstract class GT_MetaTileEntity_DigitalChestBase extends GT_MetaTileEnti @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { if (aSide != aFacing) return new ITexture[] { MACHINE_CASINGS[mTier][aColorIndex + 1] }; return new ITexture[] { MACHINE_CASINGS[mTier][aColorIndex + 1], TextureFactory.of(OVERLAY_SCHEST), - TextureFactory.builder() - .addIcon(OVERLAY_SCHEST_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(OVERLAY_SCHEST_GLOW) + .glow() + .build() }; } @Override public void getWailaBody(ItemStack itemStack, List currenttip, IWailaDataAccessor accessor, - IWailaConfigHandler config) { + IWailaConfigHandler config) { super.getWailaBody(itemStack, currenttip, accessor, config); NBTTagCompound tag = accessor.getNBTData(); if (tag.hasKey("itemType", Constants.NBT.TAG_COMPOUND)) { currenttip.add("Item Count: " + GT_Utility.parseNumberToString(tag.getInteger("itemCount"))); currenttip.add( - "Item Type: " + ItemStack.loadItemStackFromNBT(tag.getCompoundTag("itemType")) - .getDisplayName()); + "Item Type: " + ItemStack.loadItemStackFromNBT(tag.getCompoundTag("itemType")) + .getDisplayName()); } else { currenttip.add("Chest Empty"); } @@ -506,7 +506,7 @@ public abstract class GT_MetaTileEntity_DigitalChestBase extends GT_MetaTileEnti @Override public void getWailaNBTData(EntityPlayerMP player, TileEntity tile, NBTTagCompound tag, World world, int x, int y, - int z) { + int z) { super.getWailaNBTData(player, tile, tag, world, x, y, z); ItemStack is = getItemStack(); if (GT_Utility.isStackInvalid(is)) return; @@ -525,36 +525,33 @@ public abstract class GT_MetaTileEntity_DigitalChestBase extends GT_MetaTileEnti @Override public void addUIWidgets(ModularWindow.Builder builder, UIBuildContext buildContext) { builder.widget( - new DrawableWidget().setDrawable(GT_UITextures.PICTURE_SCREEN_BLACK) - .setPos(7, 16) - .setSize(71, 45)) - .widget( - new SlotWidget(inventoryHandler, 0) - .setBackground( - getGUITextureSet().getItemSlot(), - GT_UITextures.OVERLAY_SLOT_IN) - .setPos(79, 16)) - .widget( - new SlotWidget(inventoryHandler, 1).setAccess(true, false) - .setBackground( - getGUITextureSet().getItemSlot(), - GT_UITextures.OVERLAY_SLOT_OUT) - .setPos(79, 52)) - .widget( - SlotWidget.phantom(inventoryHandler, 2) - .disableInteraction() - .setBackground(GT_UITextures.TRANSPARENT) - .setPos(59, 42)) - .widget( - new TextWidget("Item Amount").setDefaultColor(COLOR_TEXT_WHITE.get()) - .setPos(10, 20)) - .widget( - TextWidget.dynamicString( - () -> GT_Utility.parseNumberToString( - this instanceof GT_MetaTileEntity_QuantumChest - ? ((GT_MetaTileEntity_QuantumChest) this).mItemCount - : 0)) - .setDefaultColor(COLOR_TEXT_WHITE.get()) - .setPos(10, 30)); + new DrawableWidget().setDrawable(GT_UITextures.PICTURE_SCREEN_BLACK) + .setPos(7, 16) + .setSize(71, 45)) + .widget( + new SlotWidget(inventoryHandler, 0) + .setBackground(getGUITextureSet().getItemSlot(), GT_UITextures.OVERLAY_SLOT_IN) + .setPos(79, 16)) + .widget( + new SlotWidget(inventoryHandler, 1).setAccess(true, false) + .setBackground(getGUITextureSet().getItemSlot(), GT_UITextures.OVERLAY_SLOT_OUT) + .setPos(79, 52)) + .widget( + SlotWidget.phantom(inventoryHandler, 2) + .disableInteraction() + .setBackground(GT_UITextures.TRANSPARENT) + .setPos(59, 42)) + .widget( + new TextWidget("Item Amount").setDefaultColor(COLOR_TEXT_WHITE.get()) + .setPos(10, 20)) + .widget( + TextWidget + .dynamicString( + () -> GT_Utility.parseNumberToString( + this instanceof GT_MetaTileEntity_QuantumChest + ? ((GT_MetaTileEntity_QuantumChest) this).mItemCount + : 0)) + .setDefaultColor(COLOR_TEXT_WHITE.get()) + .setPos(10, 30)); } } diff --git a/src/main/java/gregtech/common/tileentities/storage/GT_MetaTileEntity_DigitalTankBase.java b/src/main/java/gregtech/common/tileentities/storage/GT_MetaTileEntity_DigitalTankBase.java index 1bf8705279..14f1501527 100644 --- a/src/main/java/gregtech/common/tileentities/storage/GT_MetaTileEntity_DigitalTankBase.java +++ b/src/main/java/gregtech/common/tileentities/storage/GT_MetaTileEntity_DigitalTankBase.java @@ -46,7 +46,7 @@ import gregtech.api.util.GT_Utility; import gregtech.common.gui.modularui.widget.FluidDisplaySlotWidget; public abstract class GT_MetaTileEntity_DigitalTankBase extends GT_MetaTileEntity_BasicTank - implements IFluidLockable, IAddUIWidgets { + implements IFluidLockable, IAddUIWidgets { public boolean mOutputFluid = false, mVoidFluidPart = false, mVoidFluidFull = false, mLockFluid = false; protected String lockedFluidName = null; @@ -54,16 +54,16 @@ public abstract class GT_MetaTileEntity_DigitalTankBase extends GT_MetaTileEntit public GT_MetaTileEntity_DigitalTankBase(int aID, String aName, String aNameRegional, int aTier) { super( - aID, - aName, - aNameRegional, - aTier, - 3, - new String[] { - StatCollector.translateToLocalFormatted( - "GT5U.machines.digitaltank.tooltip", - GT_Utility.formatNumbers(commonSizeCompute(aTier))), - StatCollector.translateToLocal("GT5U.machines.digitaltank.tooltip1"), }); + aID, + aName, + aNameRegional, + aTier, + 3, + new String[] { + StatCollector.translateToLocalFormatted( + "GT5U.machines.digitaltank.tooltip", + GT_Utility.formatNumbers(commonSizeCompute(aTier))), + StatCollector.translateToLocal("GT5U.machines.digitaltank.tooltip1"), }); } protected static int commonSizeCompute(int tier) { @@ -114,24 +114,24 @@ public abstract class GT_MetaTileEntity_DigitalTankBase extends GT_MetaTileEntit @Override public void addAdditionalTooltipInformation(ItemStack stack, List tooltip) { if (stack.hasTagCompound() && stack.stackTagCompound.hasKey("mFluid")) { - final FluidStack tContents = FluidStack.loadFluidStackFromNBT( - stack.stackTagCompound.getCompoundTag("mFluid")); + final FluidStack tContents = FluidStack + .loadFluidStackFromNBT(stack.stackTagCompound.getCompoundTag("mFluid")); if (tContents != null && tContents.amount > 0) { tooltip.add( - GT_LanguageManager.addStringLocalization( - "TileEntity_TANK_INFO", - "Contains Fluid: ", - !GregTech_API.sPostloadFinished) + EnumChatFormatting.YELLOW - + tContents.getLocalizedName() - + EnumChatFormatting.GRAY); + GT_LanguageManager.addStringLocalization( + "TileEntity_TANK_INFO", + "Contains Fluid: ", + !GregTech_API.sPostloadFinished) + EnumChatFormatting.YELLOW + + tContents.getLocalizedName() + + EnumChatFormatting.GRAY); tooltip.add( - GT_LanguageManager.addStringLocalization( - "TileEntity_TANK_AMOUNT", - "Fluid Amount: ", - !GregTech_API.sPostloadFinished) + EnumChatFormatting.GREEN - + GT_Utility.formatNumbers(tContents.amount) - + " L" - + EnumChatFormatting.GRAY); + GT_LanguageManager.addStringLocalization( + "TileEntity_TANK_AMOUNT", + "Fluid Amount: ", + !GregTech_API.sPostloadFinished) + EnumChatFormatting.GREEN + + GT_Utility.formatNumbers(tContents.amount) + + " L" + + EnumChatFormatting.GRAY); } } } @@ -178,9 +178,9 @@ public abstract class GT_MetaTileEntity_DigitalTankBase extends GT_MetaTileEntit @Override public boolean isFluidInputAllowed(FluidStack aFluid) { return !mLockFluid || lockedFluidName == null - || lockedFluidName.equals( - aFluid.getFluid() - .getName()); + || lockedFluidName.equals( + aFluid.getFluid() + .getName()); } @Override @@ -192,7 +192,7 @@ public abstract class GT_MetaTileEntity_DigitalTankBase extends GT_MetaTileEntit public void onEmptyingContainerWhenEmpty() { if (this.lockedFluidName == null && this.mFluid != null) { this.lockedFluidName = this.mFluid.getFluid() - .getName(); + .getName(); } } @@ -269,17 +269,17 @@ public abstract class GT_MetaTileEntity_DigitalTankBase extends GT_MetaTileEntit @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { if (aSide != ForgeDirection.UP.ordinal()) { if (aSide == aBaseMetaTileEntity.getFrontFacing()) { return new ITexture[] { MACHINE_CASINGS[mTier][aColorIndex + 1], TextureFactory.of(OVERLAY_PIPE) }; } else return new ITexture[] { MACHINE_CASINGS[mTier][aColorIndex + 1] }; } return new ITexture[] { MACHINE_CASINGS[mTier][aColorIndex + 1], TextureFactory.of(OVERLAY_QTANK), - TextureFactory.builder() - .addIcon(OVERLAY_QTANK_GLOW) - .glow() - .build() }; + TextureFactory.builder() + .addIcon(OVERLAY_QTANK_GLOW) + .glow() + .build() }; } @Override @@ -293,8 +293,8 @@ public abstract class GT_MetaTileEntity_DigitalTankBase extends GT_MetaTileEntit if (aSide == getBaseMetaTileEntity().getFrontFacing()) { mAllowInputFromOutputSide = !mAllowInputFromOutputSide; GT_Utility.sendChatToPlayer( - aPlayer, - mAllowInputFromOutputSide ? GT_Utility.getTrans("095") : GT_Utility.getTrans("096")); + aPlayer, + mAllowInputFromOutputSide ? GT_Utility.getTrans("095") : GT_Utility.getTrans("096")); } } @@ -338,9 +338,9 @@ public abstract class GT_MetaTileEntity_DigitalTankBase extends GT_MetaTileEntit if ((tFluid.amount <= getRealCapacity()) || mVoidFluidPart) { tFluid = tFluid.copy(); if (aBaseMetaTileEntity.addStackToSlot( - getOutputSlot(), - GT_Utility.getContainerForFilledItem(mInventory[getInputSlot()], true), - 1)) { + getOutputSlot(), + GT_Utility.getContainerForFilledItem(mInventory[getInputSlot()], true), + 1)) { setFillableStack(tFluid); this.onEmptyingContainerWhenEmpty(); aBaseMetaTileEntity.decrStackSize(getInputSlot(), 1); @@ -350,15 +350,14 @@ public abstract class GT_MetaTileEntity_DigitalTankBase extends GT_MetaTileEntit } else { if (tFluid.isFluidEqual(getFillableStack())) { if ((((long) tFluid.amount + getFillableStack().amount) <= (long) getRealCapacity()) - || mVoidFluidPart - || mVoidFluidFull) { + || mVoidFluidPart + || mVoidFluidFull) { if (aBaseMetaTileEntity.addStackToSlot( - getOutputSlot(), - GT_Utility.getContainerForFilledItem(mInventory[getInputSlot()], true), - 1)) { - getFillableStack().amount += Math.min( - tFluid.amount, - getRealCapacity() - getFillableStack().amount); + getOutputSlot(), + GT_Utility.getContainerForFilledItem(mInventory[getInputSlot()], true), + 1)) { + getFillableStack().amount += Math + .min(tFluid.amount, getRealCapacity() - getFillableStack().amount); aBaseMetaTileEntity.decrStackSize(getInputSlot(), 1); } } @@ -368,11 +367,8 @@ public abstract class GT_MetaTileEntity_DigitalTankBase extends GT_MetaTileEntit } if (doesFillContainers()) { - ItemStack tOutput = GT_Utility.fillFluidContainer( - getDrainableStack(), - mInventory[getInputSlot()], - false, - true); + ItemStack tOutput = GT_Utility + .fillFluidContainer(getDrainableStack(), mInventory[getInputSlot()], false, true); if (tOutput != null && aBaseMetaTileEntity.addStackToSlot(getOutputSlot(), tOutput, 1)) { FluidStack tFluid = GT_Utility.getFluidForFilledItem(tOutput, true); aBaseMetaTileEntity.decrStackSize(getInputSlot(), 1); @@ -386,9 +382,7 @@ public abstract class GT_MetaTileEntity_DigitalTankBase extends GT_MetaTileEntit @Override public int fill(FluidStack aFluid, boolean doFill) { if (aFluid == null || aFluid.getFluid() - .getID() - <= 0 || aFluid.amount <= 0 || !canTankBeFilled() || !isFluidInputAllowed(aFluid)) - return 0; + .getID() <= 0 || aFluid.amount <= 0 || !canTankBeFilled() || !isFluidInputAllowed(aFluid)) return 0; if (getFillableStack() != null && !getFillableStack().isFluidEqual(aFluid)) { return 0; } @@ -417,14 +411,12 @@ public abstract class GT_MetaTileEntity_DigitalTankBase extends GT_MetaTileEntit if (tTank != null) { FluidStack tDrained = drain(20 * (1 << (3 + 2 * tierPump(mTier))), false); if (tDrained != null) { - int tFilledAmount = tTank.fill( - ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()), - tDrained, - false); + int tFilledAmount = tTank + .fill(ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()), tDrained, false); if (tFilledAmount > 0) tTank.fill( - ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()), - drain(tFilledAmount, true), - true); + ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()), + drain(tFilledAmount, true), + true); } } } @@ -492,16 +484,15 @@ public abstract class GT_MetaTileEntity_DigitalTankBase extends GT_MetaTileEntit @Override public void getWailaBody(ItemStack itemStack, List currenttip, IWailaDataAccessor accessor, - IWailaConfigHandler config) { + IWailaConfigHandler config) { super.getWailaBody(itemStack, currenttip, accessor, config); NBTTagCompound tag = accessor.getNBTData(); FluidStack fluid = tag.hasKey("mFluid") ? FluidStack.loadFluidStackFromNBT(tag.getCompoundTag("mFluid")) : null; if (fluid != null && fluid.amount > 0) { currenttip.remove(0); - currenttip.add( - 0, - String.format("%d / %d mB %s", fluid.amount, getRealCapacity(), fluid.getLocalizedName())); + currenttip + .add(0, String.format("%d / %d mB %s", fluid.amount, getRealCapacity(), fluid.getLocalizedName())); } else { currenttip.add(0, "Tank Empty"); } @@ -509,7 +500,7 @@ public abstract class GT_MetaTileEntity_DigitalTankBase extends GT_MetaTileEntit @Override public void getWailaNBTData(EntityPlayerMP player, TileEntity tile, NBTTagCompound tag, World world, int x, int y, - int z) { + int z) { super.getWailaNBTData(player, tile, tag, world, x, y, z); FluidStack fluid = getFluid(); if (fluid != null) tag.setTag("mFluid", fluid.writeToNBT(new NBTTagCompound())); @@ -524,161 +515,142 @@ public abstract class GT_MetaTileEntity_DigitalTankBase extends GT_MetaTileEntit @Override public void addUIWidgets(ModularWindow.Builder builder, UIBuildContext buildContext) { builder.widget( - new DrawableWidget().setDrawable(GT_UITextures.PICTURE_SCREEN_BLACK) - .setPos(7, 16) - .setSize(71, 45)) - .widget( - new SlotWidget(inventoryHandler, getInputSlot()) - .setBackground( - getGUITextureSet().getItemSlot(), - GT_UITextures.OVERLAY_SLOT_IN) - .setPos(79, 16)) - .widget( - new SlotWidget(inventoryHandler, getOutputSlot()).setAccess(true, false) - .setBackground( - getGUITextureSet().getItemSlot(), - GT_UITextures.OVERLAY_SLOT_OUT) - .setPos(79, 43)) - .widget( - new FluidDisplaySlotWidget( - inventoryHandler, - getStackDisplaySlot()).setFluidAccessConstructor(() -> constructFluidAccess(false)) - .setIHasFluidDisplay(this) - .setCanDrain(true) - .setCanFill(!isDrainableStackSeparate()) - .setActionRealClick(FluidDisplaySlotWidget.Action.TRANSFER) - .setActionDragAndDrop(FluidDisplaySlotWidget.Action.LOCK) - .setBeforeRealClick((clickData, widget) -> { - if (NetworkUtils.isClient()) { - // propagate display item content to actual fluid stored in - // this tank - setDrainableStack( - GT_Utility.getFluidFromDisplayStack( - widget.getMcSlot() - .getStack())); - } - return true; - }) - .setBackground(GT_UITextures.TRANSPARENT) - .setPos(58, 41)) - .widget( - new TextWidget("Liquid Amount").setDefaultColor(COLOR_TEXT_WHITE.get()) - .setPos(10, 20)) - .widget( - TextWidget.dynamicString( - () -> GT_Utility.parseNumberToString(mFluid != null ? mFluid.amount : 0)) - .setDefaultColor(COLOR_TEXT_WHITE.get()) - .setPos(10, 30)) - .widget(new CycleButtonWidget().setToggle(() -> mOutputFluid, val -> { - mOutputFluid = val; - if (!mOutputFluid) { - GT_Utility.sendChatToPlayer( - buildContext.getPlayer(), - GT_Utility.trans("262", "Fluid Auto Output Disabled")); - } else { - GT_Utility.sendChatToPlayer( - buildContext.getPlayer(), - GT_Utility.trans("263", "Fluid Auto Output Enabled")); - } - }) - .setVariableBackground(GT_UITextures.BUTTON_STANDARD_TOGGLE) - .setStaticTexture(GT_UITextures.OVERLAY_BUTTON_AUTOOUTPUT_FLUID) - .setGTTooltip( - () -> mTooltipCache.getData( - "GT5U.machines.digitaltank.autooutput.tooltip")) - .setTooltipShowUpDelay(TOOLTIP_DELAY) - .setPos(7, 63) - .setSize(18, 18)) - .widget(new CycleButtonWidget().setToggle(() -> mLockFluid, val -> { - mLockFluid = val; - - String inBrackets; - if (mLockFluid) { - if (mFluid == null) { - setLockedFluidName(null); - inBrackets = GT_Utility.trans( - "264", - "currently none, will be locked to the next that is put in"); - } else { - setLockedFluidName( - getDrainableStack().getFluid() - .getName()); - inBrackets = getDrainableStack().getLocalizedName(); - } - GT_Utility.sendChatToPlayer( - buildContext.getPlayer(), - String.format("%s (%s)", GT_Utility.trans("265", "1 specific Fluid"), inBrackets)); - } else { - setLockedFluidName(null); - GT_Utility.sendChatToPlayer( - buildContext.getPlayer(), - GT_Utility.trans("266", "Lock Fluid Mode Disabled")); - } - }) - .setVariableBackground(GT_UITextures.BUTTON_STANDARD_TOGGLE) - .setStaticTexture(GT_UITextures.OVERLAY_BUTTON_LOCK) - .setGTTooltip( - () -> mTooltipCache.getData( - "GT5U.machines.digitaltank.lockfluid.tooltip")) - .setTooltipShowUpDelay(TOOLTIP_DELAY) - .setPos(25, 63) - .setSize(18, 18)) - .widget(new CycleButtonWidget().setToggle(() -> mAllowInputFromOutputSide, val -> { - mAllowInputFromOutputSide = val; - if (!mAllowInputFromOutputSide) { - GT_Utility.sendChatToPlayer(buildContext.getPlayer(), GT_Utility.getTrans("096")); - } else { - GT_Utility.sendChatToPlayer(buildContext.getPlayer(), GT_Utility.getTrans("095")); - } - }) - .setVariableBackground(GT_UITextures.BUTTON_STANDARD_TOGGLE) - .setStaticTexture(GT_UITextures.OVERLAY_BUTTON_INPUT_FROM_OUTPUT_SIDE) - .setGTTooltip( - () -> mTooltipCache.getData( - "GT5U.machines.digitaltank.inputfromoutput.tooltip")) - .setTooltipShowUpDelay(TOOLTIP_DELAY) - .setPos(43, 63) - .setSize(18, 18)) - .widget(new CycleButtonWidget().setToggle(() -> mVoidFluidPart, val -> { - mVoidFluidPart = val; - if (!mVoidFluidPart) { - GT_Utility.sendChatToPlayer( - buildContext.getPlayer(), - GT_Utility.trans("267", "Overflow Voiding Mode Disabled")); - } else { - GT_Utility.sendChatToPlayer( - buildContext.getPlayer(), - GT_Utility.trans("268", "Overflow Voiding Mode Enabled")); - } - }) - .setVariableBackground(GT_UITextures.BUTTON_STANDARD_TOGGLE) - .setStaticTexture(GT_UITextures.OVERLAY_BUTTON_VOID_EXCESS) - .setGTTooltip( - () -> mTooltipCache.getData( - "GT5U.machines.digitaltank.voidoverflow.tooltip")) - .setTooltipShowUpDelay(TOOLTIP_DELAY) - .setPos(151, 7) - .setSize(18, 18)) - .widget(new CycleButtonWidget().setToggle(() -> mVoidFluidFull, val -> { - mVoidFluidFull = val; - if (!mVoidFluidFull) { - GT_Utility.sendChatToPlayer( - buildContext.getPlayer(), - GT_Utility.trans("269", "Void Full Mode Disabled")); - } else { - GT_Utility.sendChatToPlayer( - buildContext.getPlayer(), - GT_Utility.trans("270", "Void Full Mode Enabled")); - } - }) - .setVariableBackground(GT_UITextures.BUTTON_STANDARD_TOGGLE) - .setStaticTexture(GT_UITextures.OVERLAY_BUTTON_VOID_ALL) - .setGTTooltip( - () -> mTooltipCache.getData( - "GT5U.machines.digitaltank.voidfull.tooltip")) - .setTooltipShowUpDelay(TOOLTIP_DELAY) - .setPos(151, 25) - .setSize(18, 18)); + new DrawableWidget().setDrawable(GT_UITextures.PICTURE_SCREEN_BLACK) + .setPos(7, 16) + .setSize(71, 45)) + .widget( + new SlotWidget(inventoryHandler, getInputSlot()) + .setBackground(getGUITextureSet().getItemSlot(), GT_UITextures.OVERLAY_SLOT_IN) + .setPos(79, 16)) + .widget( + new SlotWidget(inventoryHandler, getOutputSlot()).setAccess(true, false) + .setBackground(getGUITextureSet().getItemSlot(), GT_UITextures.OVERLAY_SLOT_OUT) + .setPos(79, 43)) + .widget( + new FluidDisplaySlotWidget(inventoryHandler, getStackDisplaySlot()) + .setFluidAccessConstructor(() -> constructFluidAccess(false)) + .setIHasFluidDisplay(this) + .setCanDrain(true) + .setCanFill(!isDrainableStackSeparate()) + .setActionRealClick(FluidDisplaySlotWidget.Action.TRANSFER) + .setActionDragAndDrop(FluidDisplaySlotWidget.Action.LOCK) + .setBeforeRealClick((clickData, widget) -> { + if (NetworkUtils.isClient()) { + // propagate display item content to actual fluid stored in + // this tank + setDrainableStack( + GT_Utility.getFluidFromDisplayStack( + widget.getMcSlot() + .getStack())); + } + return true; + }) + .setBackground(GT_UITextures.TRANSPARENT) + .setPos(58, 41)) + .widget( + new TextWidget("Liquid Amount").setDefaultColor(COLOR_TEXT_WHITE.get()) + .setPos(10, 20)) + .widget( + TextWidget.dynamicString(() -> GT_Utility.parseNumberToString(mFluid != null ? mFluid.amount : 0)) + .setDefaultColor(COLOR_TEXT_WHITE.get()) + .setPos(10, 30)) + .widget(new CycleButtonWidget().setToggle(() -> mOutputFluid, val -> { + mOutputFluid = val; + if (!mOutputFluid) { + GT_Utility.sendChatToPlayer( + buildContext.getPlayer(), + GT_Utility.trans("262", "Fluid Auto Output Disabled")); + } else { + GT_Utility.sendChatToPlayer( + buildContext.getPlayer(), + GT_Utility.trans("263", "Fluid Auto Output Enabled")); + } + }) + .setVariableBackground(GT_UITextures.BUTTON_STANDARD_TOGGLE) + .setStaticTexture(GT_UITextures.OVERLAY_BUTTON_AUTOOUTPUT_FLUID) + .setGTTooltip(() -> mTooltipCache.getData("GT5U.machines.digitaltank.autooutput.tooltip")) + .setTooltipShowUpDelay(TOOLTIP_DELAY) + .setPos(7, 63) + .setSize(18, 18)) + .widget(new CycleButtonWidget().setToggle(() -> mLockFluid, val -> { + mLockFluid = val; + + String inBrackets; + if (mLockFluid) { + if (mFluid == null) { + setLockedFluidName(null); + inBrackets = GT_Utility + .trans("264", "currently none, will be locked to the next that is put in"); + } else { + setLockedFluidName( + getDrainableStack().getFluid() + .getName()); + inBrackets = getDrainableStack().getLocalizedName(); + } + GT_Utility.sendChatToPlayer( + buildContext.getPlayer(), + String.format("%s (%s)", GT_Utility.trans("265", "1 specific Fluid"), inBrackets)); + } else { + setLockedFluidName(null); + GT_Utility.sendChatToPlayer( + buildContext.getPlayer(), + GT_Utility.trans("266", "Lock Fluid Mode Disabled")); + } + }) + .setVariableBackground(GT_UITextures.BUTTON_STANDARD_TOGGLE) + .setStaticTexture(GT_UITextures.OVERLAY_BUTTON_LOCK) + .setGTTooltip(() -> mTooltipCache.getData("GT5U.machines.digitaltank.lockfluid.tooltip")) + .setTooltipShowUpDelay(TOOLTIP_DELAY) + .setPos(25, 63) + .setSize(18, 18)) + .widget(new CycleButtonWidget().setToggle(() -> mAllowInputFromOutputSide, val -> { + mAllowInputFromOutputSide = val; + if (!mAllowInputFromOutputSide) { + GT_Utility.sendChatToPlayer(buildContext.getPlayer(), GT_Utility.getTrans("096")); + } else { + GT_Utility.sendChatToPlayer(buildContext.getPlayer(), GT_Utility.getTrans("095")); + } + }) + .setVariableBackground(GT_UITextures.BUTTON_STANDARD_TOGGLE) + .setStaticTexture(GT_UITextures.OVERLAY_BUTTON_INPUT_FROM_OUTPUT_SIDE) + .setGTTooltip(() -> mTooltipCache.getData("GT5U.machines.digitaltank.inputfromoutput.tooltip")) + .setTooltipShowUpDelay(TOOLTIP_DELAY) + .setPos(43, 63) + .setSize(18, 18)) + .widget(new CycleButtonWidget().setToggle(() -> mVoidFluidPart, val -> { + mVoidFluidPart = val; + if (!mVoidFluidPart) { + GT_Utility.sendChatToPlayer( + buildContext.getPlayer(), + GT_Utility.trans("267", "Overflow Voiding Mode Disabled")); + } else { + GT_Utility.sendChatToPlayer( + buildContext.getPlayer(), + GT_Utility.trans("268", "Overflow Voiding Mode Enabled")); + } + }) + .setVariableBackground(GT_UITextures.BUTTON_STANDARD_TOGGLE) + .setStaticTexture(GT_UITextures.OVERLAY_BUTTON_VOID_EXCESS) + .setGTTooltip(() -> mTooltipCache.getData("GT5U.machines.digitaltank.voidoverflow.tooltip")) + .setTooltipShowUpDelay(TOOLTIP_DELAY) + .setPos(151, 7) + .setSize(18, 18)) + .widget(new CycleButtonWidget().setToggle(() -> mVoidFluidFull, val -> { + mVoidFluidFull = val; + if (!mVoidFluidFull) { + GT_Utility + .sendChatToPlayer(buildContext.getPlayer(), GT_Utility.trans("269", "Void Full Mode Disabled")); + } else { + GT_Utility + .sendChatToPlayer(buildContext.getPlayer(), GT_Utility.trans("270", "Void Full Mode Enabled")); + } + }) + .setVariableBackground(GT_UITextures.BUTTON_STANDARD_TOGGLE) + .setStaticTexture(GT_UITextures.OVERLAY_BUTTON_VOID_ALL) + .setGTTooltip(() -> mTooltipCache.getData("GT5U.machines.digitaltank.voidfull.tooltip")) + .setTooltipShowUpDelay(TOOLTIP_DELAY) + .setPos(151, 25) + .setSize(18, 18)); } @Override diff --git a/src/main/java/gregtech/common/tileentities/storage/GT_MetaTileEntity_Locker.java b/src/main/java/gregtech/common/tileentities/storage/GT_MetaTileEntity_Locker.java index 3d81076bc9..32d1694cc8 100644 --- a/src/main/java/gregtech/common/tileentities/storage/GT_MetaTileEntity_Locker.java +++ b/src/main/java/gregtech/common/tileentities/storage/GT_MetaTileEntity_Locker.java @@ -58,10 +58,10 @@ public class GT_MetaTileEntity_Locker extends GT_MetaTileEntity_TieredMachineBlo @Override public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, - boolean aActive, boolean aRedstone) { + boolean aActive, boolean aRedstone) { if (aSide == aFacing) { return new ITexture[] { this.mTextures[2][(aColorIndex + 1)][0], this.mTextures[2][(aColorIndex + 1)][1], - LOCKERS[Math.abs(this.mType % LOCKERS.length)] }; + LOCKERS[Math.abs(this.mType % LOCKERS.length)] }; } return this.mTextures[0][(aColorIndex + 1)]; } @@ -177,7 +177,7 @@ public class GT_MetaTileEntity_Locker extends GT_MetaTileEntity_TieredMachineBlo @Override public boolean onRightclick(IGregTechTileEntity aBaseMetaTileEntity, EntityPlayer aPlayer, byte aSide, float aX, - float aY, float aZ) { + float aY, float aZ) { if ((aBaseMetaTileEntity.isServerSide()) && (aSide == aBaseMetaTileEntity.getFrontFacing())) { for (int i = 0; i < 4; i++) { ItemStack tSwapStack = this.mInventory[i]; diff --git a/src/main/java/gregtech/common/tileentities/storage/GT_MetaTileEntity_QuantumTank.java b/src/main/java/gregtech/common/tileentities/storage/GT_MetaTileEntity_QuantumTank.java index d6a936c745..4d51d0b634 100644 --- a/src/main/java/gregtech/common/tileentities/storage/GT_MetaTileEntity_QuantumTank.java +++ b/src/main/java/gregtech/common/tileentities/storage/GT_MetaTileEntity_QuantumTank.java @@ -31,25 +31,25 @@ public class GT_MetaTileEntity_QuantumTank extends GT_MetaTileEntity_DigitalTank if (mFluid == null) { return new String[] { EnumChatFormatting.BLUE + "Quantum Tank" + EnumChatFormatting.RESET, "Stored Fluid:", - EnumChatFormatting.GOLD + "No Fluid" + EnumChatFormatting.RESET, - EnumChatFormatting.GREEN + Integer.toString(0) - + " L" - + EnumChatFormatting.RESET - + " " - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(getCapacity()) - + " L" - + EnumChatFormatting.RESET }; + EnumChatFormatting.GOLD + "No Fluid" + EnumChatFormatting.RESET, + EnumChatFormatting.GREEN + Integer.toString(0) + + " L" + + EnumChatFormatting.RESET + + " " + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(getCapacity()) + + " L" + + EnumChatFormatting.RESET }; } return new String[] { EnumChatFormatting.BLUE + "Quantum Tank" + EnumChatFormatting.RESET, "Stored Fluid:", - EnumChatFormatting.GOLD + mFluid.getLocalizedName() + EnumChatFormatting.RESET, - EnumChatFormatting.GREEN + GT_Utility.formatNumbers(mFluid.amount) - + " L" - + EnumChatFormatting.RESET - + " " - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(getCapacity()) - + " L" - + EnumChatFormatting.RESET }; + EnumChatFormatting.GOLD + mFluid.getLocalizedName() + EnumChatFormatting.RESET, + EnumChatFormatting.GREEN + GT_Utility.formatNumbers(mFluid.amount) + + " L" + + EnumChatFormatting.RESET + + " " + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(getCapacity()) + + " L" + + EnumChatFormatting.RESET }; } } diff --git a/src/main/java/gregtech/common/tileentities/storage/GT_MetaTileEntity_SuperTank.java b/src/main/java/gregtech/common/tileentities/storage/GT_MetaTileEntity_SuperTank.java index 5dac66e49a..4493d57bd3 100644 --- a/src/main/java/gregtech/common/tileentities/storage/GT_MetaTileEntity_SuperTank.java +++ b/src/main/java/gregtech/common/tileentities/storage/GT_MetaTileEntity_SuperTank.java @@ -31,24 +31,24 @@ public class GT_MetaTileEntity_SuperTank extends GT_MetaTileEntity_DigitalTankBa if (mFluid == null) { return new String[] { EnumChatFormatting.BLUE + "Super Tank" + EnumChatFormatting.RESET, "Stored Fluid:", - EnumChatFormatting.GOLD + "No Fluid" + EnumChatFormatting.RESET, - EnumChatFormatting.GREEN + "0 L" - + EnumChatFormatting.RESET - + " " - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(getCapacity()) - + " L" - + EnumChatFormatting.RESET }; + EnumChatFormatting.GOLD + "No Fluid" + EnumChatFormatting.RESET, + EnumChatFormatting.GREEN + "0 L" + + EnumChatFormatting.RESET + + " " + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(getCapacity()) + + " L" + + EnumChatFormatting.RESET }; } return new String[] { EnumChatFormatting.BLUE + "Super Tank" + EnumChatFormatting.RESET, "Stored Fluid:", - EnumChatFormatting.GOLD + mFluid.getLocalizedName() + EnumChatFormatting.RESET, - EnumChatFormatting.GREEN + GT_Utility.formatNumbers(mFluid.amount) - + " L" - + EnumChatFormatting.RESET - + " " - + EnumChatFormatting.YELLOW - + GT_Utility.formatNumbers(getCapacity()) - + " L" - + EnumChatFormatting.RESET }; + EnumChatFormatting.GOLD + mFluid.getLocalizedName() + EnumChatFormatting.RESET, + EnumChatFormatting.GREEN + GT_Utility.formatNumbers(mFluid.amount) + + " L" + + EnumChatFormatting.RESET + + " " + + EnumChatFormatting.YELLOW + + GT_Utility.formatNumbers(getCapacity()) + + " L" + + EnumChatFormatting.RESET }; } } diff --git a/src/main/java/gregtech/common/tools/GT_Tool.java b/src/main/java/gregtech/common/tools/GT_Tool.java index 178005c6c5..ac3fe66542 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool.java +++ b/src/main/java/gregtech/common/tools/GT_Tool.java @@ -130,19 +130,19 @@ public abstract class GT_Tool implements IToolStats { @Override public DamageSource getDamageSource(EntityLivingBase aPlayer, Entity aEntity) { return GT_DamageSources.getCombatDamage( - (aPlayer instanceof EntityPlayer) ? "player" : "mob", - aPlayer, - (aEntity instanceof EntityLivingBase) ? getDeathMessage(aPlayer, (EntityLivingBase) aEntity) : null); + (aPlayer instanceof EntityPlayer) ? "player" : "mob", + aPlayer, + (aEntity instanceof EntityLivingBase) ? getDeathMessage(aPlayer, (EntityLivingBase) aEntity) : null); } public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) { - return new EntityDamageSource((aPlayer instanceof EntityPlayer) ? "player" : "mob", aPlayer).func_151519_b( - aEntity); + return new EntityDamageSource((aPlayer instanceof EntityPlayer) ? "player" : "mob", aPlayer) + .func_151519_b(aEntity); } @Override public int convertBlockDrops(List aDrops, ItemStack aStack, EntityPlayer aPlayer, Block aBlock, int aX, - int aY, int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent) { + int aY, int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent) { return 0; } @@ -173,19 +173,19 @@ public abstract class GT_Tool implements IToolStats { @Override public float getNormalDamageAgainstEntity(float aOriginalDamage, Entity aEntity, ItemStack aStack, - EntityPlayer aPlayer) { + EntityPlayer aPlayer) { return aOriginalDamage; } @Override public float getMagicDamageAgainstEntity(float aOriginalDamage, Entity aEntity, ItemStack aStack, - EntityPlayer aPlayer) { + EntityPlayer aPlayer) { return aOriginalDamage; } @Override public float getMiningSpeed(Block aBlock, byte aMetaData, float aDefault, EntityPlayer aPlayer, World worldObj, - int aX, int aY, int aZ) { + int aX, int aY, int aZ) { return aDefault; } } diff --git a/src/main/java/gregtech/common/tools/GT_Tool_Axe.java b/src/main/java/gregtech/common/tools/GT_Tool_Axe.java index bb5649a453..787803911b 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool_Axe.java +++ b/src/main/java/gregtech/common/tools/GT_Tool_Axe.java @@ -94,19 +94,19 @@ public class GT_Tool_Axe extends GT_Tool { @Override public boolean isMinableBlock(Block aBlock, byte aMetaData) { return GT_ToolHarvestHelper.isAppropriateTool(aBlock, aMetaData, "axe") - || GT_ToolHarvestHelper.isAppropriateMaterial(aBlock, Material.wood); + || GT_ToolHarvestHelper.isAppropriateMaterial(aBlock, Material.wood); } @Override public int convertBlockDrops(List aDrops, ItemStack aStack, EntityPlayer aPlayer, Block aBlock, int aX, - int aY, int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent) { + int aY, int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent) { int rAmount = 0; if ((GregTech_API.sTimber) && (!aPlayer.isSneaking()) - && (OrePrefixes.log.contains(new ItemStack(aBlock, 1, aMetaData)))) { + && (OrePrefixes.log.contains(new ItemStack(aBlock, 1, aMetaData)))) { int tY = aY + 1; for (int tH = aPlayer.worldObj.getHeight(); tY < tH; tY++) { if ((aPlayer.worldObj.getBlock(aX, tY, aZ) != aBlock) - || (!aPlayer.worldObj.func_147480_a(aX, tY, aZ, true))) { + || (!aPlayer.worldObj.func_147480_a(aX, tY, aZ, true))) { break; } rAmount++; @@ -117,15 +117,15 @@ public class GT_Tool_Axe extends GT_Tool { @Override public float getMiningSpeed(Block aBlock, byte aMetaData, float aDefault, EntityPlayer aPlayer, World aWorld, - int aX, int aY, int aZ) { + int aX, int aY, int aZ) { if (aBlock.isWood(aPlayer.worldObj, aX, aY, aZ) - && OrePrefixes.log.contains(new ItemStack(aBlock, 1, aMetaData))) { + && OrePrefixes.log.contains(new ItemStack(aBlock, 1, aMetaData))) { float rAmount = 1.0F; float tIncrement = 1.0F; if ((GregTech_API.sTimber) && !aPlayer.isSneaking()) { int tY = aY + 1; for (int tH = aPlayer.worldObj.getHeight(); (tY < tH) - && (aPlayer.worldObj.getBlock(aX, tY, aZ) == aBlock); tY++) { + && (aPlayer.worldObj.getBlock(aX, tY, aZ) == aBlock); tY++) { tIncrement += 0.1F; rAmount += tIncrement; } @@ -133,8 +133,8 @@ public class GT_Tool_Axe extends GT_Tool { return 2.0F * aDefault / rAmount; } return (aBlock.getMaterial() == Material.leaves) || (aBlock.getMaterial() == Material.vine) - || (aBlock.getMaterial() == Material.plants) - || (aBlock.getMaterial() == Material.gourd) ? aDefault / 4.0F : aDefault; + || (aBlock.getMaterial() == Material.plants) + || (aBlock.getMaterial() == Material.gourd) ? aDefault / 4.0F : aDefault; } @Override @@ -145,16 +145,14 @@ public class GT_Tool_Axe extends GT_Tool { @Override public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack) { return aIsToolHead - ? GT_MetaGenerated_Tool.getPrimaryMaterial( - aStack).mIconSet.mTextures[OrePrefixes.toolHeadAxe.mTextureIndex] - : GT_MetaGenerated_Tool.getSecondaryMaterial( - aStack).mIconSet.mTextures[OrePrefixes.stick.mTextureIndex]; + ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[OrePrefixes.toolHeadAxe.mTextureIndex] + : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mIconSet.mTextures[OrePrefixes.stick.mTextureIndex]; } @Override public short[] getRGBa(boolean aIsToolHead, ItemStack aStack) { return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa - : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; + : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; } @Override @@ -163,11 +161,11 @@ public class GT_Tool_Axe extends GT_Tool { @Override public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) { return new ChatComponentText( - EnumChatFormatting.RED + aEntity.getCommandSenderName() - + EnumChatFormatting.WHITE - + " has been chopped by " - + EnumChatFormatting.GREEN - + aPlayer.getCommandSenderName() - + EnumChatFormatting.WHITE); + EnumChatFormatting.RED + aEntity.getCommandSenderName() + + EnumChatFormatting.WHITE + + " has been chopped by " + + EnumChatFormatting.GREEN + + aPlayer.getCommandSenderName() + + EnumChatFormatting.WHITE); } } diff --git a/src/main/java/gregtech/common/tools/GT_Tool_BranchCutter.java b/src/main/java/gregtech/common/tools/GT_Tool_BranchCutter.java index 833f169e61..a8b83a0221 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool_BranchCutter.java +++ b/src/main/java/gregtech/common/tools/GT_Tool_BranchCutter.java @@ -45,14 +45,14 @@ public class GT_Tool_BranchCutter extends GT_Tool { @Override public int convertBlockDrops(List aDrops, ItemStack aStack, EntityPlayer aPlayer, Block aBlock, int aX, - int aY, int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent) { + int aY, int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent) { if (aBlock.getMaterial() == Material.leaves) { aEvent.dropChance = Math.min( - 1.0F, - Math.max( - aEvent.dropChance, - (aStack.getItem() - .getHarvestLevel(aStack, "") + 1) * 0.2F)); + 1.0F, + Math.max( + aEvent.dropChance, + (aStack.getItem() + .getHarvestLevel(aStack, "") + 1) * 0.2F)); if (aBlock == Blocks.leaves) { aDrops.clear(); if (((aMetaData & 0x3) == 0) && (aPlayer.worldObj.rand.nextInt(9) <= aFortune * 2)) { @@ -74,7 +74,7 @@ public class GT_Tool_BranchCutter extends GT_Tool { @Override public boolean isMinableBlock(Block aBlock, byte aMetaData) { return GT_ToolHarvestHelper.isAppropriateTool(aBlock, aMetaData, "grafter") - || GT_ToolHarvestHelper.isAppropriateMaterial(aBlock, Material.leaves); + || GT_ToolHarvestHelper.isAppropriateMaterial(aBlock, Material.leaves); } @Override @@ -85,17 +85,17 @@ public class GT_Tool_BranchCutter extends GT_Tool { @Override public short[] getRGBa(boolean aIsToolHead, ItemStack aStack) { return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa - : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; + : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; } @Override public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) { return new ChatComponentText( - EnumChatFormatting.RED + aEntity.getCommandSenderName() - + EnumChatFormatting.WHITE - + " has been trimmed by " - + EnumChatFormatting.GREEN - + aPlayer.getCommandSenderName() - + EnumChatFormatting.WHITE); + EnumChatFormatting.RED + aEntity.getCommandSenderName() + + EnumChatFormatting.WHITE + + " has been trimmed by " + + EnumChatFormatting.GREEN + + aPlayer.getCommandSenderName() + + EnumChatFormatting.WHITE); } } diff --git a/src/main/java/gregtech/common/tools/GT_Tool_ButcheryKnife.java b/src/main/java/gregtech/common/tools/GT_Tool_ButcheryKnife.java index a99dac9e57..bdfe66401a 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool_ButcheryKnife.java +++ b/src/main/java/gregtech/common/tools/GT_Tool_ButcheryKnife.java @@ -83,18 +83,18 @@ public class GT_Tool_ButcheryKnife extends GT_Tool { @Override public short[] getRGBa(boolean aIsToolHead, ItemStack aStack) { return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa - : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; + : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; } @Override public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) { return new ChatComponentText( - EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() - + EnumChatFormatting.WHITE - + " has butchered " - + EnumChatFormatting.RED - + aEntity.getCommandSenderName() - + EnumChatFormatting.WHITE); + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + + EnumChatFormatting.WHITE + + " has butchered " + + EnumChatFormatting.RED + + aEntity.getCommandSenderName() + + EnumChatFormatting.WHITE); } @Override diff --git a/src/main/java/gregtech/common/tools/GT_Tool_BuzzSaw.java b/src/main/java/gregtech/common/tools/GT_Tool_BuzzSaw.java index b12b8d37ea..4d7192ce93 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool_BuzzSaw.java +++ b/src/main/java/gregtech/common/tools/GT_Tool_BuzzSaw.java @@ -57,25 +57,25 @@ public class GT_Tool_BuzzSaw extends GT_Tool_Saw { @Override public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack) { return !aIsToolHead - ? GT_MetaGenerated_Tool.getPrimaryMaterial( - aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadBuzzSaw.mTextureIndex] - : Textures.ItemIcons.HANDLE_BUZZSAW; + ? GT_MetaGenerated_Tool.getPrimaryMaterial( + aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadBuzzSaw.mTextureIndex] + : Textures.ItemIcons.HANDLE_BUZZSAW; } @Override public short[] getRGBa(boolean aIsToolHead, ItemStack aStack) { return !aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa - : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; + : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; } @Override public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) { return new ChatComponentText( - EnumChatFormatting.RED + aEntity.getCommandSenderName() - + EnumChatFormatting.WHITE - + " got buzzed by " - + EnumChatFormatting.GREEN - + aPlayer.getCommandSenderName() - + EnumChatFormatting.WHITE); + EnumChatFormatting.RED + aEntity.getCommandSenderName() + + EnumChatFormatting.WHITE + + " got buzzed by " + + EnumChatFormatting.GREEN + + aPlayer.getCommandSenderName() + + EnumChatFormatting.WHITE); } } diff --git a/src/main/java/gregtech/common/tools/GT_Tool_Chainsaw_HV.java b/src/main/java/gregtech/common/tools/GT_Tool_Chainsaw_HV.java index 1895eff282..38c1d3acb8 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool_Chainsaw_HV.java +++ b/src/main/java/gregtech/common/tools/GT_Tool_Chainsaw_HV.java @@ -50,8 +50,8 @@ public class GT_Tool_Chainsaw_HV extends GT_Tool_Chainsaw_LV { @Override public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack) { return aIsToolHead - ? gregtech.api.items.GT_MetaGenerated_Tool.getPrimaryMaterial( - aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadChainsaw.mTextureIndex] - : Textures.ItemIcons.POWER_UNIT_HV; + ? gregtech.api.items.GT_MetaGenerated_Tool.getPrimaryMaterial( + aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadChainsaw.mTextureIndex] + : Textures.ItemIcons.POWER_UNIT_HV; } } diff --git a/src/main/java/gregtech/common/tools/GT_Tool_Chainsaw_LV.java b/src/main/java/gregtech/common/tools/GT_Tool_Chainsaw_LV.java index 56f623f771..a99d54993a 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool_Chainsaw_LV.java +++ b/src/main/java/gregtech/common/tools/GT_Tool_Chainsaw_LV.java @@ -107,34 +107,29 @@ public class GT_Tool_Chainsaw_LV extends GT_Tool_Saw { @Override public int convertBlockDrops(List aDrops, ItemStack aStack, EntityPlayer aPlayer, Block aBlock, int aX, - int aY, int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent) { + int aY, int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent) { int rAmount = 0; if ((aBlock.getMaterial() == Material.leaves) && ((aBlock instanceof IShearable))) { aPlayer.worldObj.setBlock(aX, aY, aZ, aBlock, aMetaData, 0); if (((IShearable) aBlock).isShearable(aStack, aPlayer.worldObj, aX, aY, aZ)) { - ArrayList tDrops = ((IShearable) aBlock).onSheared( - aStack, - aPlayer.worldObj, - aX, - aY, - aZ, - aFortune); + ArrayList tDrops = ((IShearable) aBlock) + .onSheared(aStack, aPlayer.worldObj, aX, aY, aZ, aFortune); aDrops.clear(); } aPlayer.worldObj.setBlock(aX, aY, aZ, Blocks.air, 0, 0); } else if (((aBlock.getMaterial() == Material.ice) || (aBlock.getMaterial() == Material.packedIce)) - && (aDrops.isEmpty())) { - aDrops.add(new ItemStack(aBlock, 1, aMetaData)); - aPlayer.worldObj.setBlockToAir(aX, aY, aZ); - aEvent.dropChance = 1.0F; - return 1; - } + && (aDrops.isEmpty())) { + aDrops.add(new ItemStack(aBlock, 1, aMetaData)); + aPlayer.worldObj.setBlockToAir(aX, aY, aZ); + aEvent.dropChance = 1.0F; + return 1; + } if ((GregTech_API.sTimber) && (!aPlayer.isSneaking()) - && (OrePrefixes.log.contains(new ItemStack(aBlock, 1, aMetaData)))) { + && (OrePrefixes.log.contains(new ItemStack(aBlock, 1, aMetaData)))) { int tY = aY + 1; for (int tH = aPlayer.worldObj.getHeight(); tY < tH; tY++) { if ((aPlayer.worldObj.getBlock(aX, tY, aZ) != aBlock) - || (!aPlayer.worldObj.func_147480_a(aX, tY, aZ, true))) { + || (!aPlayer.worldObj.func_147480_a(aX, tY, aZ, true))) { break; } rAmount++; @@ -145,15 +140,15 @@ public class GT_Tool_Chainsaw_LV extends GT_Tool_Saw { @Override public float getMiningSpeed(Block aBlock, byte aMetaData, float aDefault, EntityPlayer aPlayer, World aWorld, - int aX, int aY, int aZ) { + int aX, int aY, int aZ) { if (aBlock.isWood(aPlayer.worldObj, aX, aY, aZ) - && OrePrefixes.log.contains(new ItemStack(aBlock, 1, aMetaData))) { + && OrePrefixes.log.contains(new ItemStack(aBlock, 1, aMetaData))) { float rAmount = 1.0F; float tIncrement = 1.0F; if ((GregTech_API.sTimber) && !aPlayer.isSneaking()) { int tY = aY + 1; for (int tH = aPlayer.worldObj.getHeight(); (tY < tH) - && (aPlayer.worldObj.getBlock(aX, tY, aZ) == aBlock); tY++) { + && (aPlayer.worldObj.getBlock(aX, tY, aZ) == aBlock); tY++) { tIncrement += 0.1F; rAmount += tIncrement; } @@ -161,32 +156,32 @@ public class GT_Tool_Chainsaw_LV extends GT_Tool_Saw { return 2.0F * aDefault / rAmount; } return (aBlock.getMaterial() == Material.leaves) || (aBlock.getMaterial() == Material.vine) - || (aBlock.getMaterial() == Material.plants) - || (aBlock.getMaterial() == Material.gourd) ? aDefault / 4.0F : aDefault; + || (aBlock.getMaterial() == Material.plants) + || (aBlock.getMaterial() == Material.gourd) ? aDefault / 4.0F : aDefault; } @Override public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack) { return aIsToolHead - ? GT_MetaGenerated_Tool.getPrimaryMaterial( - aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadChainsaw.mTextureIndex] - : Textures.ItemIcons.POWER_UNIT_LV; + ? GT_MetaGenerated_Tool.getPrimaryMaterial( + aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadChainsaw.mTextureIndex] + : Textures.ItemIcons.POWER_UNIT_LV; } @Override public short[] getRGBa(boolean aIsToolHead, ItemStack aStack) { return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa - : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; + : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; } @Override public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) { return new ChatComponentText( - EnumChatFormatting.RED + aEntity.getCommandSenderName() - + EnumChatFormatting.WHITE - + " was massacred by " - + EnumChatFormatting.GREEN - + aPlayer.getCommandSenderName() - + EnumChatFormatting.WHITE); + EnumChatFormatting.RED + aEntity.getCommandSenderName() + + EnumChatFormatting.WHITE + + " was massacred by " + + EnumChatFormatting.GREEN + + aPlayer.getCommandSenderName() + + EnumChatFormatting.WHITE); } } diff --git a/src/main/java/gregtech/common/tools/GT_Tool_Chainsaw_MV.java b/src/main/java/gregtech/common/tools/GT_Tool_Chainsaw_MV.java index 863c26ac82..6c88895e48 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool_Chainsaw_MV.java +++ b/src/main/java/gregtech/common/tools/GT_Tool_Chainsaw_MV.java @@ -50,8 +50,8 @@ public class GT_Tool_Chainsaw_MV extends GT_Tool_Chainsaw_LV { @Override public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack) { return aIsToolHead - ? gregtech.api.items.GT_MetaGenerated_Tool.getPrimaryMaterial( - aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadChainsaw.mTextureIndex] - : Textures.ItemIcons.POWER_UNIT_MV; + ? gregtech.api.items.GT_MetaGenerated_Tool.getPrimaryMaterial( + aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadChainsaw.mTextureIndex] + : Textures.ItemIcons.POWER_UNIT_MV; } } diff --git a/src/main/java/gregtech/common/tools/GT_Tool_Crowbar.java b/src/main/java/gregtech/common/tools/GT_Tool_Crowbar.java index b5cc684469..f9f82fd373 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool_Crowbar.java +++ b/src/main/java/gregtech/common/tools/GT_Tool_Crowbar.java @@ -98,7 +98,7 @@ public class GT_Tool_Crowbar extends GT_Tool { String tTool = aBlock.getHarvestTool(aMetaData); if ((tTool == null) || (tTool.equals(""))) { for (Iterator i$ = GT_MetaGenerated_Tool_01.INSTANCE.mToolStats.values() - .iterator(); i$.hasNext(); i$.next()) { + .iterator(); i$.hasNext(); i$.next()) { if (((i$ instanceof GT_Tool_Crowbar)) && (!((IToolStats) i$).isMinableBlock(aBlock, aMetaData))) { return false; } @@ -131,11 +131,11 @@ public class GT_Tool_Crowbar extends GT_Tool { @Override public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) { return new ChatComponentText( - EnumChatFormatting.RED + aEntity.getCommandSenderName() - + EnumChatFormatting.WHITE - + " was removed by " - + EnumChatFormatting.GREEN - + aPlayer.getCommandSenderName() - + EnumChatFormatting.WHITE); + EnumChatFormatting.RED + aEntity.getCommandSenderName() + + EnumChatFormatting.WHITE + + " was removed by " + + EnumChatFormatting.GREEN + + aPlayer.getCommandSenderName() + + EnumChatFormatting.WHITE); } } diff --git a/src/main/java/gregtech/common/tools/GT_Tool_Drill_HV.java b/src/main/java/gregtech/common/tools/GT_Tool_Drill_HV.java index 77ab501e46..fa62c99ea8 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool_Drill_HV.java +++ b/src/main/java/gregtech/common/tools/GT_Tool_Drill_HV.java @@ -61,8 +61,8 @@ public class GT_Tool_Drill_HV extends GT_Tool_Drill_LV { @Override public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack) { return aIsToolHead - ? gregtech.api.items.GT_MetaGenerated_Tool.getPrimaryMaterial( - aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadDrill.mTextureIndex] - : Textures.ItemIcons.POWER_UNIT_HV; + ? gregtech.api.items.GT_MetaGenerated_Tool.getPrimaryMaterial( + aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadDrill.mTextureIndex] + : Textures.ItemIcons.POWER_UNIT_HV; } } diff --git a/src/main/java/gregtech/common/tools/GT_Tool_Drill_LV.java b/src/main/java/gregtech/common/tools/GT_Tool_Drill_LV.java index 395c7753ff..911374dc15 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool_Drill_LV.java +++ b/src/main/java/gregtech/common/tools/GT_Tool_Drill_LV.java @@ -92,17 +92,17 @@ public class GT_Tool_Drill_LV extends GT_Tool { @Override public boolean isMinableBlock(Block aBlock, byte aMetaData) { return GT_ToolHarvestHelper.isAppropriateTool(aBlock, aMetaData, "pickaxe", "shovel") - || GT_ToolHarvestHelper.isAppropriateMaterial( - aBlock, - Material.rock, - Material.iron, - Material.anvil, - Material.sand, - Material.grass, - Material.ground, - Material.snow, - Material.clay, - Material.glass); + || GT_ToolHarvestHelper.isAppropriateMaterial( + aBlock, + Material.rock, + Material.iron, + Material.anvil, + Material.sand, + Material.grass, + Material.ground, + Material.snow, + Material.clay, + Material.glass); } @Override @@ -113,15 +113,15 @@ public class GT_Tool_Drill_LV extends GT_Tool { @Override public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack) { return aIsToolHead - ? GT_MetaGenerated_Tool.getPrimaryMaterial( - aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadDrill.mTextureIndex] - : Textures.ItemIcons.POWER_UNIT_LV; + ? GT_MetaGenerated_Tool.getPrimaryMaterial( + aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadDrill.mTextureIndex] + : Textures.ItemIcons.POWER_UNIT_LV; } @Override public short[] getRGBa(boolean aIsToolHead, ItemStack aStack) { return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa - : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; + : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; } @Override @@ -141,12 +141,12 @@ public class GT_Tool_Drill_LV extends GT_Tool { @Override public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) { return new ChatComponentText( - EnumChatFormatting.RED + aEntity.getCommandSenderName() - + EnumChatFormatting.WHITE - + " got the Drill! (by " - + EnumChatFormatting.GREEN - + aPlayer.getCommandSenderName() - + EnumChatFormatting.WHITE - + ")"); + EnumChatFormatting.RED + aEntity.getCommandSenderName() + + EnumChatFormatting.WHITE + + " got the Drill! (by " + + EnumChatFormatting.GREEN + + aPlayer.getCommandSenderName() + + EnumChatFormatting.WHITE + + ")"); } } diff --git a/src/main/java/gregtech/common/tools/GT_Tool_Drill_MV.java b/src/main/java/gregtech/common/tools/GT_Tool_Drill_MV.java index e9aa60aa69..02e7a08dfc 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool_Drill_MV.java +++ b/src/main/java/gregtech/common/tools/GT_Tool_Drill_MV.java @@ -51,8 +51,8 @@ public class GT_Tool_Drill_MV extends GT_Tool_Drill_LV { @Override public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack) { return aIsToolHead - ? gregtech.api.items.GT_MetaGenerated_Tool.getPrimaryMaterial( - aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadDrill.mTextureIndex] - : Textures.ItemIcons.POWER_UNIT_MV; + ? gregtech.api.items.GT_MetaGenerated_Tool.getPrimaryMaterial( + aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadDrill.mTextureIndex] + : Textures.ItemIcons.POWER_UNIT_MV; } } diff --git a/src/main/java/gregtech/common/tools/GT_Tool_File.java b/src/main/java/gregtech/common/tools/GT_Tool_File.java index b642592775..0a8610a462 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool_File.java +++ b/src/main/java/gregtech/common/tools/GT_Tool_File.java @@ -97,15 +97,15 @@ public class GT_Tool_File extends GT_Tool { @Override public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack) { return !aIsToolHead - ? GT_MetaGenerated_Tool.getPrimaryMaterial( - aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadFile.mTextureIndex] - : Textures.ItemIcons.HANDLE_FILE; + ? GT_MetaGenerated_Tool.getPrimaryMaterial( + aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadFile.mTextureIndex] + : Textures.ItemIcons.HANDLE_FILE; } @Override public short[] getRGBa(boolean aIsToolHead, ItemStack aStack) { return !aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa - : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; + : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; } @Override @@ -114,11 +114,11 @@ public class GT_Tool_File extends GT_Tool { @Override public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) { return new ChatComponentText( - EnumChatFormatting.RED + aEntity.getCommandSenderName() - + EnumChatFormatting.WHITE - + " has been filed D for 'Dead' by " - + EnumChatFormatting.GREEN - + aPlayer.getCommandSenderName() - + EnumChatFormatting.WHITE); + EnumChatFormatting.RED + aEntity.getCommandSenderName() + + EnumChatFormatting.WHITE + + " has been filed D for 'Dead' by " + + EnumChatFormatting.GREEN + + aPlayer.getCommandSenderName() + + EnumChatFormatting.WHITE); } } diff --git a/src/main/java/gregtech/common/tools/GT_Tool_HardHammer.java b/src/main/java/gregtech/common/tools/GT_Tool_HardHammer.java index ac1ea88cc9..becca365e6 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool_HardHammer.java +++ b/src/main/java/gregtech/common/tools/GT_Tool_HardHammer.java @@ -28,15 +28,14 @@ import gregtech.common.items.behaviors.Behaviour_Prospecting; public class GT_Tool_HardHammer extends GT_Tool { - public static final List mEffectiveList = Arrays.asList( - EntityIronGolem.class.getName(), - "EntityTowerGuardian"); + public static final List mEffectiveList = Arrays + .asList(EntityIronGolem.class.getName(), "EntityTowerGuardian"); @Override public float getNormalDamageAgainstEntity(float aOriginalDamage, Entity aEntity, ItemStack aStack, - EntityPlayer aPlayer) { + EntityPlayer aPlayer) { String tName = aEntity.getClass() - .getName(); + .getName(); tName = tName.substring(tName.lastIndexOf('.') + 1); return (mEffectiveList.contains(tName)) || (tName.contains("Golem")) ? aOriginalDamage * 2.0F : aOriginalDamage; } @@ -124,33 +123,21 @@ public class GT_Tool_HardHammer extends GT_Tool { @Override public boolean isMinableBlock(Block aBlock, byte aMetaData) { return GT_ToolHarvestHelper.isAppropriateTool(aBlock, aMetaData, "hammer", "pickaxe") - || GT_ToolHarvestHelper.isAppropriateMaterial( - aBlock, - Material.rock, - Material.glass, - Material.ice, - Material.packedIce) - || GT_Recipe.GT_Recipe_Map.sHammerRecipes.containsInput(new ItemStack(aBlock, 1, aMetaData)); + || GT_ToolHarvestHelper + .isAppropriateMaterial(aBlock, Material.rock, Material.glass, Material.ice, Material.packedIce) + || GT_Recipe.GT_Recipe_Map.sHammerRecipes.containsInput(new ItemStack(aBlock, 1, aMetaData)); } @Override public int convertBlockDrops(List aDrops, ItemStack aStack, EntityPlayer aPlayer, Block aBlock, int aX, - int aY, int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent) { + int aY, int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent) { int rConversions = 0; - GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sHammerRecipes.findRecipe( - null, - true, - MAX_IC2, - null, - new ItemStack(aBlock, 1, aMetaData)); + GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sHammerRecipes + .findRecipe(null, true, MAX_IC2, null, new ItemStack(aBlock, 1, aMetaData)); if ((tRecipe == null) || (aBlock.hasTileEntity(aMetaData))) { for (ItemStack tDrop : aDrops) { - tRecipe = GT_Recipe.GT_Recipe_Map.sHammerRecipes.findRecipe( - null, - true, - MAX_IC2, - null, - GT_Utility.copyAmount(1L, tDrop)); + tRecipe = GT_Recipe.GT_Recipe_Map.sHammerRecipes + .findRecipe(null, true, MAX_IC2, null, GT_Utility.copyAmount(1L, tDrop)); if (tRecipe != null) { ItemStack tHammeringOutput = tRecipe.getOutput(0); if (tHammeringOutput != null) { @@ -177,16 +164,16 @@ public class GT_Tool_HardHammer extends GT_Tool { @Override public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack) { return aIsToolHead - ? GT_MetaGenerated_Tool.getPrimaryMaterial( - aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadHammer.mTextureIndex] - : GT_MetaGenerated_Tool.getSecondaryMaterial( - aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.stick.mTextureIndex]; + ? GT_MetaGenerated_Tool.getPrimaryMaterial( + aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadHammer.mTextureIndex] + : GT_MetaGenerated_Tool + .getSecondaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.stick.mTextureIndex]; } @Override public short[] getRGBa(boolean aIsToolHead, ItemStack aStack) { return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa - : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; + : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; } @Override @@ -197,12 +184,12 @@ public class GT_Tool_HardHammer extends GT_Tool { @Override public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) { return new ChatComponentText( - EnumChatFormatting.RED + aEntity.getCommandSenderName() - + EnumChatFormatting.WHITE - + " was squashed by " - + EnumChatFormatting.GREEN - + aPlayer.getCommandSenderName() - + EnumChatFormatting.WHITE); + EnumChatFormatting.RED + aEntity.getCommandSenderName() + + EnumChatFormatting.WHITE + + " was squashed by " + + EnumChatFormatting.GREEN + + aPlayer.getCommandSenderName() + + EnumChatFormatting.WHITE); } @Override diff --git a/src/main/java/gregtech/common/tools/GT_Tool_Hoe.java b/src/main/java/gregtech/common/tools/GT_Tool_Hoe.java index a108e7014c..2dc5496176 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool_Hoe.java +++ b/src/main/java/gregtech/common/tools/GT_Tool_Hoe.java @@ -85,7 +85,7 @@ public class GT_Tool_Hoe extends GT_Tool { @Override public boolean isMinableBlock(Block aBlock, byte aMetaData) { return GT_ToolHarvestHelper.isAppropriateTool(aBlock, aMetaData, "hoe") - || GT_ToolHarvestHelper.isAppropriateMaterial(aBlock, Material.gourd); + || GT_ToolHarvestHelper.isAppropriateMaterial(aBlock, Material.gourd); } @Override @@ -96,16 +96,16 @@ public class GT_Tool_Hoe extends GT_Tool { @Override public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack) { return aIsToolHead - ? GT_MetaGenerated_Tool.getPrimaryMaterial( - aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadHoe.mTextureIndex] - : GT_MetaGenerated_Tool.getSecondaryMaterial( - aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.stick.mTextureIndex]; + ? GT_MetaGenerated_Tool + .getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadHoe.mTextureIndex] + : GT_MetaGenerated_Tool + .getSecondaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.stick.mTextureIndex]; } @Override public short[] getRGBa(boolean aIsToolHead, ItemStack aStack) { return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa - : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; + : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; } @Override @@ -122,11 +122,11 @@ public class GT_Tool_Hoe extends GT_Tool { @Override public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) { return new ChatComponentText( - EnumChatFormatting.RED + aEntity.getCommandSenderName() - + EnumChatFormatting.WHITE - + " has been called a stupid Hoe by " - + EnumChatFormatting.GREEN - + aPlayer.getCommandSenderName() - + EnumChatFormatting.WHITE); + EnumChatFormatting.RED + aEntity.getCommandSenderName() + + EnumChatFormatting.WHITE + + " has been called a stupid Hoe by " + + EnumChatFormatting.GREEN + + aPlayer.getCommandSenderName() + + EnumChatFormatting.WHITE); } } diff --git a/src/main/java/gregtech/common/tools/GT_Tool_JackHammer.java b/src/main/java/gregtech/common/tools/GT_Tool_JackHammer.java index 2fc1c8f8e9..d6c609236e 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool_JackHammer.java +++ b/src/main/java/gregtech/common/tools/GT_Tool_JackHammer.java @@ -64,33 +64,25 @@ public class GT_Tool_JackHammer extends GT_Tool_Drill_LV { @Override public boolean isMinableBlock(Block aBlock, byte aMetaData) { return GT_ToolHarvestHelper.isAppropriateTool(aBlock, aMetaData, "pickaxe") // - || GT_ToolHarvestHelper.isAppropriateMaterial( - aBlock, // - Material.rock, // - Material.glass, // - Material.ice, // - Material.packedIce // - ); + || GT_ToolHarvestHelper.isAppropriateMaterial( + aBlock, // + Material.rock, // + Material.glass, // + Material.ice, // + Material.packedIce // + ); } @Override public int convertBlockDrops(List aDrops, ItemStack aStack, EntityPlayer aPlayer, Block aBlock, int aX, - int aY, int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent) { + int aY, int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent) { int rConversions = 0; - GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sHammerRecipes.findRecipe( - null, - true, - 2147483647L, - null, - new ItemStack(aBlock, 1, aMetaData)); + GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sHammerRecipes + .findRecipe(null, true, 2147483647L, null, new ItemStack(aBlock, 1, aMetaData)); if ((tRecipe == null) || (aBlock.hasTileEntity(aMetaData))) { for (ItemStack tDrop : aDrops) { - tRecipe = GT_Recipe.GT_Recipe_Map.sHammerRecipes.findRecipe( - null, - true, - 2147483647L, - null, - GT_Utility.copyAmount(1L, tDrop)); + tRecipe = GT_Recipe.GT_Recipe_Map.sHammerRecipes + .findRecipe(null, true, 2147483647L, null, GT_Utility.copyAmount(1L, tDrop)); if (tRecipe != null) { ItemStack tHammeringOutput = tRecipe.getOutput(0); if (tHammeringOutput != null) { @@ -125,11 +117,11 @@ public class GT_Tool_JackHammer extends GT_Tool_Drill_LV { @Override public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) { return new ChatComponentText( - EnumChatFormatting.RED + aEntity.getCommandSenderName() - + EnumChatFormatting.WHITE - + " has been jackhammered into pieces by " - + EnumChatFormatting.GREEN - + aPlayer.getCommandSenderName() - + EnumChatFormatting.WHITE); + EnumChatFormatting.RED + aEntity.getCommandSenderName() + + EnumChatFormatting.WHITE + + " has been jackhammered into pieces by " + + EnumChatFormatting.GREEN + + aPlayer.getCommandSenderName() + + EnumChatFormatting.WHITE); } } diff --git a/src/main/java/gregtech/common/tools/GT_Tool_Knife.java b/src/main/java/gregtech/common/tools/GT_Tool_Knife.java index 8354840ed7..152476fa2d 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool_Knife.java +++ b/src/main/java/gregtech/common/tools/GT_Tool_Knife.java @@ -60,17 +60,17 @@ public class GT_Tool_Knife extends GT_Tool_Sword { @Override public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) { return new ChatComponentText( - "<" + EnumChatFormatting.RED - + aEntity.getCommandSenderName() - + EnumChatFormatting.WHITE - + "> " - + EnumChatFormatting.GREEN - + aPlayer.getCommandSenderName() - + EnumChatFormatting.WHITE - + " what are you doing?, " - + EnumChatFormatting.GREEN - + aPlayer.getCommandSenderName() - + EnumChatFormatting.WHITE - + "?!? STAHP!!!"); + "<" + EnumChatFormatting.RED + + aEntity.getCommandSenderName() + + EnumChatFormatting.WHITE + + "> " + + EnumChatFormatting.GREEN + + aPlayer.getCommandSenderName() + + EnumChatFormatting.WHITE + + " what are you doing?, " + + EnumChatFormatting.GREEN + + aPlayer.getCommandSenderName() + + EnumChatFormatting.WHITE + + "?!? STAHP!!!"); } } diff --git a/src/main/java/gregtech/common/tools/GT_Tool_Mortar.java b/src/main/java/gregtech/common/tools/GT_Tool_Mortar.java index e7aae56c05..8e74d3bcc1 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool_Mortar.java +++ b/src/main/java/gregtech/common/tools/GT_Tool_Mortar.java @@ -110,11 +110,11 @@ public class GT_Tool_Mortar extends GT_Tool { @Override public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) { return new ChatComponentText( - EnumChatFormatting.RED + aEntity.getCommandSenderName() - + EnumChatFormatting.WHITE - + " was grounded by " - + EnumChatFormatting.GREEN - + aPlayer.getCommandSenderName() - + EnumChatFormatting.WHITE); + EnumChatFormatting.RED + aEntity.getCommandSenderName() + + EnumChatFormatting.WHITE + + " was grounded by " + + EnumChatFormatting.GREEN + + aPlayer.getCommandSenderName() + + EnumChatFormatting.WHITE); } } diff --git a/src/main/java/gregtech/common/tools/GT_Tool_Pickaxe.java b/src/main/java/gregtech/common/tools/GT_Tool_Pickaxe.java index 58394491eb..71bf9cfb17 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool_Pickaxe.java +++ b/src/main/java/gregtech/common/tools/GT_Tool_Pickaxe.java @@ -85,12 +85,12 @@ public class GT_Tool_Pickaxe extends GT_Tool { @Override public boolean isMinableBlock(Block aBlock, byte aMetaData) { return GT_ToolHarvestHelper.isAppropriateTool(aBlock, aMetaData, "pickaxe") // - || GT_ToolHarvestHelper.isAppropriateMaterial( - aBlock, // - Material.rock, - Material.iron, - Material.anvil, - Material.glass); + || GT_ToolHarvestHelper.isAppropriateMaterial( + aBlock, // + Material.rock, + Material.iron, + Material.anvil, + Material.glass); } @Override @@ -101,16 +101,16 @@ public class GT_Tool_Pickaxe extends GT_Tool { @Override public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack) { return aIsToolHead - ? GT_MetaGenerated_Tool.getPrimaryMaterial( - aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadPickaxe.mTextureIndex] - : GT_MetaGenerated_Tool.getSecondaryMaterial( - aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.stick.mTextureIndex]; + ? GT_MetaGenerated_Tool.getPrimaryMaterial( + aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadPickaxe.mTextureIndex] + : GT_MetaGenerated_Tool + .getSecondaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.stick.mTextureIndex]; } @Override public short[] getRGBa(boolean aIsToolHead, ItemStack aStack) { return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa - : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; + : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; } @Override @@ -129,11 +129,11 @@ public class GT_Tool_Pickaxe extends GT_Tool { @Override public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) { return new ChatComponentText( - EnumChatFormatting.RED + aEntity.getCommandSenderName() - + EnumChatFormatting.WHITE - + " got mined by " - + EnumChatFormatting.GREEN - + aPlayer.getCommandSenderName() - + EnumChatFormatting.WHITE); + EnumChatFormatting.RED + aEntity.getCommandSenderName() + + EnumChatFormatting.WHITE + + " got mined by " + + EnumChatFormatting.GREEN + + aPlayer.getCommandSenderName() + + EnumChatFormatting.WHITE); } } diff --git a/src/main/java/gregtech/common/tools/GT_Tool_Plow.java b/src/main/java/gregtech/common/tools/GT_Tool_Plow.java index 1c49c196f3..93db2f3627 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool_Plow.java +++ b/src/main/java/gregtech/common/tools/GT_Tool_Plow.java @@ -25,7 +25,7 @@ public class GT_Tool_Plow extends GT_Tool { @Override public float getNormalDamageAgainstEntity(float aOriginalDamage, Entity aEntity, ItemStack aStack, - EntityPlayer aPlayer) { + EntityPlayer aPlayer) { return (aEntity instanceof EntitySnowman) ? aOriginalDamage * 4.0F : aOriginalDamage; } @@ -37,12 +37,12 @@ public class GT_Tool_Plow extends GT_Tool { @Override public boolean isMinableBlock(Block aBlock, byte aMetaData) { return GT_ToolHarvestHelper.isAppropriateTool(aBlock, aMetaData, "plow") - || GT_ToolHarvestHelper.isAppropriateMaterial(aBlock, Material.snow, Material.craftedSnow); + || GT_ToolHarvestHelper.isAppropriateMaterial(aBlock, Material.snow, Material.craftedSnow); } @Override public int convertBlockDrops(List aDrops, ItemStack aStack, EntityPlayer aPlayer, Block aBlock, int aX, - int aY, int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent) { + int aY, int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent) { int rConversions = 0; if ((this.sIsHarvestingRightNow.get() == null) && ((aPlayer instanceof EntityPlayerMP))) { this.sIsHarvestingRightNow.set(this); @@ -50,21 +50,13 @@ public class GT_Tool_Plow extends GT_Tool { for (int j = -1; j < 2; j++) { for (int k = -1; k < 2; k++) { if (((i != 0) || (j != 0) || (k != 0)) && (aStack.getItem() - .getDigSpeed( - aStack, - aPlayer.worldObj.getBlock( - aX + i, - aY + j, - aZ + k), - aPlayer.worldObj.getBlockMetadata( - aX + i, - aY + j, - aZ + k)) - > 0.0F) - && (((EntityPlayerMP) aPlayer).theItemInWorldManager.tryHarvestBlock( - aX + i, - aY + j, - aZ + k))) { + .getDigSpeed( + aStack, + aPlayer.worldObj.getBlock(aX + i, aY + j, aZ + k), + aPlayer.worldObj.getBlockMetadata(aX + i, aY + j, aZ + k)) + > 0.0F) + && (((EntityPlayerMP) aPlayer).theItemInWorldManager + .tryHarvestBlock(aX + i, aY + j, aZ + k))) { rConversions++; } } @@ -78,26 +70,26 @@ public class GT_Tool_Plow extends GT_Tool { @Override public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack) { return aIsToolHead - ? GT_MetaGenerated_Tool.getPrimaryMaterial( - aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadPlow.mTextureIndex] - : GT_MetaGenerated_Tool.getSecondaryMaterial( - aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.stick.mTextureIndex]; + ? GT_MetaGenerated_Tool.getPrimaryMaterial( + aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadPlow.mTextureIndex] + : GT_MetaGenerated_Tool + .getSecondaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.stick.mTextureIndex]; } @Override public short[] getRGBa(boolean aIsToolHead, ItemStack aStack) { return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa - : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; + : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; } @Override public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) { return new ChatComponentText( - EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() - + EnumChatFormatting.WHITE - + " plew through the yard of " - + EnumChatFormatting.RED - + aEntity.getCommandSenderName() - + EnumChatFormatting.WHITE); + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + + EnumChatFormatting.WHITE + + " plew through the yard of " + + EnumChatFormatting.RED + + aEntity.getCommandSenderName() + + EnumChatFormatting.WHITE); } } diff --git a/src/main/java/gregtech/common/tools/GT_Tool_Plunger.java b/src/main/java/gregtech/common/tools/GT_Tool_Plunger.java index baf8b4b3cf..dc550989a0 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool_Plunger.java +++ b/src/main/java/gregtech/common/tools/GT_Tool_Plunger.java @@ -57,7 +57,7 @@ public class GT_Tool_Plunger extends GT_Tool { @Override public short[] getRGBa(boolean aIsToolHead, ItemStack aStack) { return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa - : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; + : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; } @Override @@ -67,11 +67,11 @@ public class GT_Tool_Plunger extends GT_Tool { aItem.addItemBehavior(aID, new Behaviour_Plunger_Fluid(getToolDamagePerDropConversion())); try { Object tObject = GT_Utility.callConstructor( - "gregtech.common.items.behaviors.Behaviour_Plunger_Essentia", - 0, - null, - false, - getToolDamagePerDropConversion()); + "gregtech.common.items.behaviors.Behaviour_Plunger_Essentia", + 0, + null, + false, + getToolDamagePerDropConversion()); if ((tObject instanceof IItemBehaviour)) { aItem.addItemBehavior(aID, (IItemBehaviour) tObject); } @@ -81,11 +81,11 @@ public class GT_Tool_Plunger extends GT_Tool { @Override public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) { return new ChatComponentText( - EnumChatFormatting.RED + aEntity.getCommandSenderName() - + EnumChatFormatting.WHITE - + " got stuck trying to escape through a Pipe while fighting " - + EnumChatFormatting.GREEN - + aPlayer.getCommandSenderName() - + EnumChatFormatting.WHITE); + EnumChatFormatting.RED + aEntity.getCommandSenderName() + + EnumChatFormatting.WHITE + + " got stuck trying to escape through a Pipe while fighting " + + EnumChatFormatting.GREEN + + aPlayer.getCommandSenderName() + + EnumChatFormatting.WHITE); } } diff --git a/src/main/java/gregtech/common/tools/GT_Tool_RollingPin.java b/src/main/java/gregtech/common/tools/GT_Tool_RollingPin.java index ca9b9d3fa8..9933c4eb13 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool_RollingPin.java +++ b/src/main/java/gregtech/common/tools/GT_Tool_RollingPin.java @@ -60,11 +60,11 @@ public class GT_Tool_RollingPin extends GT_Tool { @Override public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) { return new ChatComponentText( - EnumChatFormatting.RED + aEntity.getCommandSenderName() - + EnumChatFormatting.WHITE - + " got flattened by " - + EnumChatFormatting.GREEN - + aPlayer.getCommandSenderName() - + EnumChatFormatting.WHITE); + EnumChatFormatting.RED + aEntity.getCommandSenderName() + + EnumChatFormatting.WHITE + + " got flattened by " + + EnumChatFormatting.GREEN + + aPlayer.getCommandSenderName() + + EnumChatFormatting.WHITE); } } diff --git a/src/main/java/gregtech/common/tools/GT_Tool_Saw.java b/src/main/java/gregtech/common/tools/GT_Tool_Saw.java index 124127c28c..204fbc4aae 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool_Saw.java +++ b/src/main/java/gregtech/common/tools/GT_Tool_Saw.java @@ -79,43 +79,38 @@ public class GT_Tool_Saw extends GT_Tool { @Override public int convertBlockDrops(List aDrops, ItemStack aStack, EntityPlayer aPlayer, Block aBlock, int aX, - int aY, int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent) { + int aY, int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent) { if ((aBlock.getMaterial() == Material.leaves) && ((aBlock instanceof IShearable))) { aPlayer.worldObj.setBlock(aX, aY, aZ, aBlock, aMetaData, 0); if (((IShearable) aBlock).isShearable(aStack, aPlayer.worldObj, aX, aY, aZ)) { - ArrayList tDrops = ((IShearable) aBlock).onSheared( - aStack, - aPlayer.worldObj, - aX, - aY, - aZ, - aFortune); + ArrayList tDrops = ((IShearable) aBlock) + .onSheared(aStack, aPlayer.worldObj, aX, aY, aZ, aFortune); aDrops.clear(); aDrops.addAll(tDrops); aEvent.dropChance = 1.0F; } aPlayer.worldObj.setBlock(aX, aY, aZ, Blocks.air, 0, 0); } else if (((aBlock.getMaterial() == Material.ice) || (aBlock.getMaterial() == Material.packedIce)) - && (aDrops.isEmpty())) { - aDrops.add(new ItemStack(aBlock, 1, aMetaData)); - aPlayer.worldObj.setBlockToAir(aX, aY, aZ); - aEvent.dropChance = 1.0F; - return 1; - } + && (aDrops.isEmpty())) { + aDrops.add(new ItemStack(aBlock, 1, aMetaData)); + aPlayer.worldObj.setBlockToAir(aX, aY, aZ); + aEvent.dropChance = 1.0F; + return 1; + } return 0; } @Override public boolean isMinableBlock(Block aBlock, byte aMetaData) { return GT_ToolHarvestHelper.isAppropriateTool(aBlock, aMetaData, "axe", "saw") - || GT_ToolHarvestHelper.isAppropriateMaterial( - aBlock, - Material.leaves, - Material.vine, - Material.wood, - Material.cactus, - Material.ice, - Material.packedIce); + || GT_ToolHarvestHelper.isAppropriateMaterial( + aBlock, + Material.leaves, + Material.vine, + Material.wood, + Material.cactus, + Material.ice, + Material.packedIce); } @Override @@ -126,15 +121,15 @@ public class GT_Tool_Saw extends GT_Tool { @Override public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack) { return aIsToolHead - ? GT_MetaGenerated_Tool.getPrimaryMaterial( - aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadSaw.mTextureIndex] - : Textures.ItemIcons.HANDLE_SAW; + ? GT_MetaGenerated_Tool + .getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadSaw.mTextureIndex] + : Textures.ItemIcons.HANDLE_SAW; } @Override public short[] getRGBa(boolean aIsToolHead, ItemStack aStack) { return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa - : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; + : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; } @Override @@ -143,11 +138,11 @@ public class GT_Tool_Saw extends GT_Tool { @Override public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) { return new ChatComponentText( - EnumChatFormatting.RED + aEntity.getCommandSenderName() - + EnumChatFormatting.WHITE - + " was getting cut down by " - + EnumChatFormatting.GREEN - + aPlayer.getCommandSenderName() - + EnumChatFormatting.WHITE); + EnumChatFormatting.RED + aEntity.getCommandSenderName() + + EnumChatFormatting.WHITE + + " was getting cut down by " + + EnumChatFormatting.GREEN + + aPlayer.getCommandSenderName() + + EnumChatFormatting.WHITE); } } diff --git a/src/main/java/gregtech/common/tools/GT_Tool_Scoop.java b/src/main/java/gregtech/common/tools/GT_Tool_Scoop.java index 3784fbc7bc..3181e108bf 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool_Scoop.java +++ b/src/main/java/gregtech/common/tools/GT_Tool_Scoop.java @@ -89,7 +89,7 @@ public class GT_Tool_Scoop extends GT_Tool { @Override public boolean isMinableBlock(Block aBlock, byte aMetaData) { return GT_ToolHarvestHelper.isAppropriateTool(aBlock, aMetaData, "scoop") - || GT_ToolHarvestHelper.isAppropriateMaterial(aBlock, sBeeHiveMaterial); + || GT_ToolHarvestHelper.isAppropriateMaterial(aBlock, sBeeHiveMaterial); } @Override @@ -105,7 +105,7 @@ public class GT_Tool_Scoop extends GT_Tool { @Override public short[] getRGBa(boolean aIsToolHead, ItemStack aStack) { return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa - : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; + : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; } @Override @@ -120,11 +120,11 @@ public class GT_Tool_Scoop extends GT_Tool { @Override public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) { return new ChatComponentText( - EnumChatFormatting.RED + aEntity.getCommandSenderName() - + EnumChatFormatting.WHITE - + " got scooped up by " - + EnumChatFormatting.GREEN - + aPlayer.getCommandSenderName() - + EnumChatFormatting.WHITE); + EnumChatFormatting.RED + aEntity.getCommandSenderName() + + EnumChatFormatting.WHITE + + " got scooped up by " + + EnumChatFormatting.GREEN + + aPlayer.getCommandSenderName() + + EnumChatFormatting.WHITE); } } diff --git a/src/main/java/gregtech/common/tools/GT_Tool_Screwdriver.java b/src/main/java/gregtech/common/tools/GT_Tool_Screwdriver.java index f300abf5aa..1d7f4e655d 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool_Screwdriver.java +++ b/src/main/java/gregtech/common/tools/GT_Tool_Screwdriver.java @@ -25,18 +25,18 @@ import gregtech.common.items.behaviors.Behaviour_Screwdriver; public class GT_Tool_Screwdriver extends GT_Tool { public static final List mEffectiveList = Arrays.asList( - EntityCaveSpider.class.getName(), - EntitySpider.class.getName(), - "EntityTFHedgeSpider", - "EntityTFKingSpider", - "EntityTFSwarmSpider", - "EntityTFTowerBroodling"); + EntityCaveSpider.class.getName(), + EntitySpider.class.getName(), + "EntityTFHedgeSpider", + "EntityTFKingSpider", + "EntityTFSwarmSpider", + "EntityTFTowerBroodling"); @Override public float getNormalDamageAgainstEntity(float aOriginalDamage, Entity aEntity, ItemStack aStack, - EntityPlayer aPlayer) { + EntityPlayer aPlayer) { String tName = aEntity.getClass() - .getName(); + .getName(); tName = tName.substring(tName.lastIndexOf('.') + 1); return mEffectiveList.contains(tName) ? aOriginalDamage * 2.0F : aOriginalDamage; } @@ -119,7 +119,7 @@ public class GT_Tool_Screwdriver extends GT_Tool { @Override public boolean isMinableBlock(Block aBlock, byte aMetaData) { return GT_ToolHarvestHelper.isAppropriateTool(aBlock, aMetaData, "screwdriver") - || GT_ToolHarvestHelper.isAppropriateMaterial(aBlock, Material.circuits); + || GT_ToolHarvestHelper.isAppropriateMaterial(aBlock, Material.circuits); } @Override @@ -130,15 +130,15 @@ public class GT_Tool_Screwdriver extends GT_Tool { @Override public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack) { return !aIsToolHead - ? GT_MetaGenerated_Tool.getPrimaryMaterial( - aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadScrewdriver.mTextureIndex] - : Textures.ItemIcons.HANDLE_SCREWDRIVER; + ? GT_MetaGenerated_Tool.getPrimaryMaterial( + aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadScrewdriver.mTextureIndex] + : Textures.ItemIcons.HANDLE_SCREWDRIVER; } @Override public short[] getRGBa(boolean aIsToolHead, ItemStack aStack) { return !aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa - : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; + : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; } @Override @@ -149,12 +149,12 @@ public class GT_Tool_Screwdriver extends GT_Tool { @Override public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) { return new ChatComponentText( - EnumChatFormatting.RED + aEntity.getCommandSenderName() - + EnumChatFormatting.WHITE - + " is screwed! (by " - + EnumChatFormatting.GREEN - + aPlayer.getCommandSenderName() - + EnumChatFormatting.WHITE - + ")"); + EnumChatFormatting.RED + aEntity.getCommandSenderName() + + EnumChatFormatting.WHITE + + " is screwed! (by " + + EnumChatFormatting.GREEN + + aPlayer.getCommandSenderName() + + EnumChatFormatting.WHITE + + ")"); } } diff --git a/src/main/java/gregtech/common/tools/GT_Tool_Screwdriver_LV.java b/src/main/java/gregtech/common/tools/GT_Tool_Screwdriver_LV.java index acb032b26e..e49e020b7b 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool_Screwdriver_LV.java +++ b/src/main/java/gregtech/common/tools/GT_Tool_Screwdriver_LV.java @@ -21,14 +21,14 @@ public class GT_Tool_Screwdriver_LV extends GT_Tool_Screwdriver { @Override public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack) { return !aIsToolHead - ? GT_MetaGenerated_Tool.getPrimaryMaterial( - aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadScrewdriver.mTextureIndex] - : Textures.ItemIcons.HANDLE_ELECTRIC_SCREWDRIVER; + ? GT_MetaGenerated_Tool.getPrimaryMaterial( + aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadScrewdriver.mTextureIndex] + : Textures.ItemIcons.HANDLE_ELECTRIC_SCREWDRIVER; } @Override public short[] getRGBa(boolean aIsToolHead, ItemStack aStack) { return !aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa - : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; + : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; } } diff --git a/src/main/java/gregtech/common/tools/GT_Tool_Sense.java b/src/main/java/gregtech/common/tools/GT_Tool_Sense.java index 051193c3bc..ef699d4d15 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool_Sense.java +++ b/src/main/java/gregtech/common/tools/GT_Tool_Sense.java @@ -35,12 +35,12 @@ public class GT_Tool_Sense extends GT_Tool { @Override public boolean isMinableBlock(Block aBlock, byte aMetaData) { return GT_ToolHarvestHelper.isAppropriateTool(aBlock, aMetaData, "sense", "scythe") - || GT_ToolHarvestHelper.isAppropriateMaterial(aBlock, Material.plants, Material.leaves); + || GT_ToolHarvestHelper.isAppropriateMaterial(aBlock, Material.plants, Material.leaves); } @Override public int convertBlockDrops(List aDrops, ItemStack aStack, EntityPlayer aPlayer, Block aBlock, int aX, - int aY, int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent) { + int aY, int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent) { int rConversions = 0; if ((this.sIsHarvestingRightNow.get() == null) && ((aPlayer instanceof EntityPlayerMP))) { this.sIsHarvestingRightNow.set(this); @@ -48,21 +48,13 @@ public class GT_Tool_Sense extends GT_Tool { for (int j = -2; j < 3; j++) { for (int k = -2; k < 3; k++) { if (((i != 0) || (j != 0) || (k != 0)) && (aStack.getItem() - .getDigSpeed( - aStack, - aPlayer.worldObj.getBlock( - aX + i, - aY + j, - aZ + k), - aPlayer.worldObj.getBlockMetadata( - aX + i, - aY + j, - aZ + k)) - > 0.0F) - && (((EntityPlayerMP) aPlayer).theItemInWorldManager.tryHarvestBlock( - aX + i, - aY + j, - aZ + k))) { + .getDigSpeed( + aStack, + aPlayer.worldObj.getBlock(aX + i, aY + j, aZ + k), + aPlayer.worldObj.getBlockMetadata(aX + i, aY + j, aZ + k)) + > 0.0F) + && (((EntityPlayerMP) aPlayer).theItemInWorldManager + .tryHarvestBlock(aX + i, aY + j, aZ + k))) { rConversions++; } } @@ -76,16 +68,16 @@ public class GT_Tool_Sense extends GT_Tool { @Override public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack) { return aIsToolHead - ? GT_MetaGenerated_Tool.getPrimaryMaterial( - aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadSense.mTextureIndex] - : GT_MetaGenerated_Tool.getSecondaryMaterial( - aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.stick.mTextureIndex]; + ? GT_MetaGenerated_Tool.getPrimaryMaterial( + aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadSense.mTextureIndex] + : GT_MetaGenerated_Tool + .getSecondaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.stick.mTextureIndex]; } @Override public short[] getRGBa(boolean aIsToolHead, ItemStack aStack) { return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa - : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; + : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; } @Override @@ -96,11 +88,11 @@ public class GT_Tool_Sense extends GT_Tool { @Override public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) { return new ChatComponentText( - EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() - + EnumChatFormatting.WHITE - + " has taken the Soul of " - + EnumChatFormatting.RED - + aEntity.getCommandSenderName() - + EnumChatFormatting.WHITE); + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + + EnumChatFormatting.WHITE + + " has taken the Soul of " + + EnumChatFormatting.RED + + aEntity.getCommandSenderName() + + EnumChatFormatting.WHITE); } } diff --git a/src/main/java/gregtech/common/tools/GT_Tool_Shovel.java b/src/main/java/gregtech/common/tools/GT_Tool_Shovel.java index 91a0802c3d..886ca126e0 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool_Shovel.java +++ b/src/main/java/gregtech/common/tools/GT_Tool_Shovel.java @@ -82,13 +82,13 @@ public class GT_Tool_Shovel extends GT_Tool { @Override public boolean isMinableBlock(Block aBlock, byte aMetaData) { return GT_ToolHarvestHelper.isAppropriateTool(aBlock, aMetaData, "shovel") - || GT_ToolHarvestHelper.isAppropriateMaterial( - aBlock, - Material.sand, - Material.grass, - Material.ground, - Material.snow, - Material.clay); + || GT_ToolHarvestHelper.isAppropriateMaterial( + aBlock, + Material.sand, + Material.grass, + Material.ground, + Material.snow, + Material.clay); } @Override @@ -99,16 +99,16 @@ public class GT_Tool_Shovel extends GT_Tool { @Override public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack) { return aIsToolHead - ? GT_MetaGenerated_Tool.getPrimaryMaterial( - aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadShovel.mTextureIndex] - : GT_MetaGenerated_Tool.getSecondaryMaterial( - aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.stick.mTextureIndex]; + ? GT_MetaGenerated_Tool.getPrimaryMaterial( + aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadShovel.mTextureIndex] + : GT_MetaGenerated_Tool + .getSecondaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.stick.mTextureIndex]; } @Override public short[] getRGBa(boolean aIsToolHead, ItemStack aStack) { return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa - : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; + : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; } @Override @@ -117,11 +117,11 @@ public class GT_Tool_Shovel extends GT_Tool { @Override public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) { return new ChatComponentText( - EnumChatFormatting.RED + aEntity.getCommandSenderName() - + EnumChatFormatting.WHITE - + " got dug up by " - + EnumChatFormatting.GREEN - + aPlayer.getCommandSenderName() - + EnumChatFormatting.WHITE); + EnumChatFormatting.RED + aEntity.getCommandSenderName() + + EnumChatFormatting.WHITE + + " got dug up by " + + EnumChatFormatting.GREEN + + aPlayer.getCommandSenderName() + + EnumChatFormatting.WHITE); } } diff --git a/src/main/java/gregtech/common/tools/GT_Tool_SoftHammer.java b/src/main/java/gregtech/common/tools/GT_Tool_SoftHammer.java index 0745359227..cc3f5e738b 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool_SoftHammer.java +++ b/src/main/java/gregtech/common/tools/GT_Tool_SoftHammer.java @@ -109,16 +109,16 @@ public class GT_Tool_SoftHammer extends GT_Tool { @Override public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack) { return aIsToolHead - ? GT_MetaGenerated_Tool.getPrimaryMaterial( - aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadMallet.mTextureIndex] - : GT_MetaGenerated_Tool.getSecondaryMaterial( - aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.handleMallet.mTextureIndex]; + ? GT_MetaGenerated_Tool.getPrimaryMaterial( + aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadMallet.mTextureIndex] + : GT_MetaGenerated_Tool.getSecondaryMaterial( + aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.handleMallet.mTextureIndex]; } @Override public short[] getRGBa(boolean aIsToolHead, ItemStack aStack) { return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa - : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; + : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; } @Override @@ -129,11 +129,11 @@ public class GT_Tool_SoftHammer extends GT_Tool { @Override public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) { return new ChatComponentText( - EnumChatFormatting.RED + aEntity.getCommandSenderName() - + EnumChatFormatting.WHITE - + " was hammered to death by " - + EnumChatFormatting.GREEN - + aPlayer.getCommandSenderName() - + EnumChatFormatting.WHITE); + EnumChatFormatting.RED + aEntity.getCommandSenderName() + + EnumChatFormatting.WHITE + + " was hammered to death by " + + EnumChatFormatting.GREEN + + aPlayer.getCommandSenderName() + + EnumChatFormatting.WHITE); } } diff --git a/src/main/java/gregtech/common/tools/GT_Tool_Soldering_Iron.java b/src/main/java/gregtech/common/tools/GT_Tool_Soldering_Iron.java index 98a3820106..9b5ef3a638 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool_Soldering_Iron.java +++ b/src/main/java/gregtech/common/tools/GT_Tool_Soldering_Iron.java @@ -25,18 +25,18 @@ import gregtech.common.items.behaviors.Behaviour_Screwdriver; public class GT_Tool_Soldering_Iron extends GT_Tool { public static final List mEffectiveList = Arrays.asList( - EntityCaveSpider.class.getName(), - EntitySpider.class.getName(), - "EntityTFHedgeSpider", - "EntityTFKingSpider", - "EntityTFSwarmSpider", - "EntityTFTowerBroodling"); + EntityCaveSpider.class.getName(), + EntitySpider.class.getName(), + "EntityTFHedgeSpider", + "EntityTFKingSpider", + "EntityTFSwarmSpider", + "EntityTFTowerBroodling"); @Override public float getNormalDamageAgainstEntity(float aOriginalDamage, Entity aEntity, ItemStack aStack, - EntityPlayer aPlayer) { + EntityPlayer aPlayer) { String tName = aEntity.getClass() - .getName(); + .getName(); tName = tName.substring(tName.lastIndexOf('.') + 1); return mEffectiveList.contains(tName) ? aOriginalDamage * 2.0F : aOriginalDamage; } @@ -114,7 +114,7 @@ public class GT_Tool_Soldering_Iron extends GT_Tool { @Override public boolean isMinableBlock(Block aBlock, byte aMetaData) { return GT_ToolHarvestHelper.isAppropriateTool(aBlock, aMetaData, "soldering_iron") - || GT_ToolHarvestHelper.isAppropriateMaterial(aBlock, Material.circuits); + || GT_ToolHarvestHelper.isAppropriateMaterial(aBlock, Material.circuits); } @Override @@ -125,13 +125,13 @@ public class GT_Tool_Soldering_Iron extends GT_Tool { @Override public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack) { return !aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[49] - : Textures.ItemIcons.HANDLE_SOLDERING; + : Textures.ItemIcons.HANDLE_SOLDERING; } @Override public short[] getRGBa(boolean aIsToolHead, ItemStack aStack) { return !aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa - : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; + : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; } @Override @@ -142,12 +142,12 @@ public class GT_Tool_Soldering_Iron extends GT_Tool { @Override public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) { return new ChatComponentText( - EnumChatFormatting.RED + aEntity.getCommandSenderName() - + EnumChatFormatting.WHITE - + " got soldert! (by " - + EnumChatFormatting.GREEN - + aPlayer.getCommandSenderName() - + EnumChatFormatting.WHITE - + ")"); + EnumChatFormatting.RED + aEntity.getCommandSenderName() + + EnumChatFormatting.WHITE + + " got soldert! (by " + + EnumChatFormatting.GREEN + + aPlayer.getCommandSenderName() + + EnumChatFormatting.WHITE + + ")"); } } diff --git a/src/main/java/gregtech/common/tools/GT_Tool_Sword.java b/src/main/java/gregtech/common/tools/GT_Tool_Sword.java index bb8222d221..7bfaaee797 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool_Sword.java +++ b/src/main/java/gregtech/common/tools/GT_Tool_Sword.java @@ -86,19 +86,19 @@ public class GT_Tool_Sword extends GT_Tool { @Override public boolean isMinableBlock(Block aBlock, byte aMetaData) { return GT_ToolHarvestHelper.isAppropriateTool(aBlock, aMetaData, "sword") - || GT_ToolHarvestHelper.isAppropriateMaterial( - aBlock, - Material.leaves, - Material.gourd, - Material.vine, - Material.web, - Material.cloth, - Material.carpet, - Material.plants, - Material.cactus, - Material.cake, - Material.tnt, - Material.sponge); + || GT_ToolHarvestHelper.isAppropriateMaterial( + aBlock, + Material.leaves, + Material.gourd, + Material.vine, + Material.web, + Material.cloth, + Material.carpet, + Material.plants, + Material.cactus, + Material.cake, + Material.tnt, + Material.sponge); } @Override @@ -109,15 +109,15 @@ public class GT_Tool_Sword extends GT_Tool { @Override public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack) { return !aIsToolHead - ? GT_MetaGenerated_Tool.getPrimaryMaterial( - aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadSword.mTextureIndex] - : Textures.ItemIcons.HANDLE_SWORD; + ? GT_MetaGenerated_Tool.getPrimaryMaterial( + aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadSword.mTextureIndex] + : Textures.ItemIcons.HANDLE_SWORD; } @Override public short[] getRGBa(boolean aIsToolHead, ItemStack aStack) { return !aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa - : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; + : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; } @Override diff --git a/src/main/java/gregtech/common/tools/GT_Tool_Turbine.java b/src/main/java/gregtech/common/tools/GT_Tool_Turbine.java index 12d4d79884..daaf2c4438 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool_Turbine.java +++ b/src/main/java/gregtech/common/tools/GT_Tool_Turbine.java @@ -33,14 +33,14 @@ public abstract class GT_Tool_Turbine extends GT_Tool { @Override public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) { return new ChatComponentText( - EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() - + EnumChatFormatting.WHITE - + " put " - + EnumChatFormatting.RED - + aEntity.getCommandSenderName() - + "s" - + EnumChatFormatting.WHITE - + " head into a turbine"); + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + + EnumChatFormatting.WHITE + + " put " + + EnumChatFormatting.RED + + aEntity.getCommandSenderName() + + "s" + + EnumChatFormatting.WHITE + + " head into a turbine"); } public abstract IIconContainer getTurbineIcon(); diff --git a/src/main/java/gregtech/common/tools/GT_Tool_UniversalSpade.java b/src/main/java/gregtech/common/tools/GT_Tool_UniversalSpade.java index 1038c60dc4..184d506872 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool_UniversalSpade.java +++ b/src/main/java/gregtech/common/tools/GT_Tool_UniversalSpade.java @@ -91,26 +91,26 @@ public class GT_Tool_UniversalSpade extends GT_Tool { @Override public boolean isMinableBlock(Block aBlock, byte aMetaData) { return GT_ToolHarvestHelper.isAppropriateTool(aBlock, aMetaData, "shovel", "axe", "saw", "sword", "crowbar") - || GT_ToolHarvestHelper.isAppropriateMaterial( - aBlock, - Material.sand, - Material.grass, - Material.ground, - Material.snow, - Material.clay, - Material.leaves, - Material.vine, - Material.wood, - Material.cactus, - Material.circuits, - Material.gourd, - Material.web, - Material.cloth, - Material.carpet, - Material.plants, - Material.cake, - Material.tnt, - Material.sponge); + || GT_ToolHarvestHelper.isAppropriateMaterial( + aBlock, + Material.sand, + Material.grass, + Material.ground, + Material.snow, + Material.clay, + Material.leaves, + Material.vine, + Material.wood, + Material.cactus, + Material.circuits, + Material.gourd, + Material.web, + Material.cloth, + Material.carpet, + Material.plants, + Material.cake, + Material.tnt, + Material.sponge); } @Override @@ -121,16 +121,16 @@ public class GT_Tool_UniversalSpade extends GT_Tool { @Override public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack) { return aIsToolHead - ? GT_MetaGenerated_Tool.getPrimaryMaterial( - aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadUniversalSpade.mTextureIndex] - : GT_MetaGenerated_Tool.getSecondaryMaterial( - aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.stick.mTextureIndex]; + ? GT_MetaGenerated_Tool.getPrimaryMaterial( + aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadUniversalSpade.mTextureIndex] + : GT_MetaGenerated_Tool + .getSecondaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.stick.mTextureIndex]; } @Override public short[] getRGBa(boolean aIsToolHead, ItemStack aStack) { return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa - : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; + : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; } @Override @@ -150,11 +150,11 @@ public class GT_Tool_UniversalSpade extends GT_Tool { @Override public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) { return new ChatComponentText( - EnumChatFormatting.RED + aEntity.getCommandSenderName() - + EnumChatFormatting.WHITE - + " has been digged by " - + EnumChatFormatting.GREEN - + aPlayer.getCommandSenderName() - + EnumChatFormatting.WHITE); + EnumChatFormatting.RED + aEntity.getCommandSenderName() + + EnumChatFormatting.WHITE + + " has been digged by " + + EnumChatFormatting.GREEN + + aPlayer.getCommandSenderName() + + EnumChatFormatting.WHITE); } } diff --git a/src/main/java/gregtech/common/tools/GT_Tool_WireCutter.java b/src/main/java/gregtech/common/tools/GT_Tool_WireCutter.java index 2080d435ee..54b76e6d81 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool_WireCutter.java +++ b/src/main/java/gregtech/common/tools/GT_Tool_WireCutter.java @@ -98,7 +98,7 @@ public class GT_Tool_WireCutter extends GT_Tool { @Override public short[] getRGBa(boolean aIsToolHead, ItemStack aStack) { return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa - : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; + : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; } @Override @@ -107,11 +107,11 @@ public class GT_Tool_WireCutter extends GT_Tool { @Override public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) { return new ChatComponentText( - EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() - + EnumChatFormatting.WHITE - + " has cut the Cable for the Life Support Machine of " - + EnumChatFormatting.RED - + aEntity.getCommandSenderName() - + EnumChatFormatting.WHITE); + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + + EnumChatFormatting.WHITE + + " has cut the Cable for the Life Support Machine of " + + EnumChatFormatting.RED + + aEntity.getCommandSenderName() + + EnumChatFormatting.WHITE); } } diff --git a/src/main/java/gregtech/common/tools/GT_Tool_Wrench.java b/src/main/java/gregtech/common/tools/GT_Tool_Wrench.java index 71e35372ce..14206b26ee 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool_Wrench.java +++ b/src/main/java/gregtech/common/tools/GT_Tool_Wrench.java @@ -24,15 +24,14 @@ import gregtech.common.items.behaviors.Behaviour_Wrench; public class GT_Tool_Wrench extends GT_Tool { - public static final List mEffectiveList = Arrays.asList( - EntityIronGolem.class.getName(), - "EntityTowerGuardian"); + public static final List mEffectiveList = Arrays + .asList(EntityIronGolem.class.getName(), "EntityTowerGuardian"); @Override public float getNormalDamageAgainstEntity(float aOriginalDamage, Entity aEntity, ItemStack aStack, - EntityPlayer aPlayer) { + EntityPlayer aPlayer) { String tName = aEntity.getClass() - .getName(); + .getName(); tName = tName.substring(tName.lastIndexOf('.') + 1); return (mEffectiveList.contains(tName)) || (tName.contains("Golem")) ? aOriginalDamage * 2.0F : aOriginalDamage; } @@ -115,8 +114,8 @@ public class GT_Tool_Wrench extends GT_Tool { @Override public boolean isMinableBlock(Block aBlock, byte aMetaData) { return GT_ToolHarvestHelper.isAppropriateTool(aBlock, aMetaData, "wrench") - || GT_ToolHarvestHelper.isAppropriateMaterial(aBlock, Material.piston) - || GT_ToolHarvestHelper.isSpecialBlock(aBlock, Blocks.hopper, Blocks.dispenser, Blocks.dropper); + || GT_ToolHarvestHelper.isAppropriateMaterial(aBlock, Material.piston) + || GT_ToolHarvestHelper.isSpecialBlock(aBlock, Blocks.hopper, Blocks.dispenser, Blocks.dropper); } @Override @@ -142,11 +141,11 @@ public class GT_Tool_Wrench extends GT_Tool { @Override public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) { return new ChatComponentText( - EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() - + EnumChatFormatting.WHITE - + " threw a Monkey Wrench into the Plans of " - + EnumChatFormatting.RED - + aEntity.getCommandSenderName() - + EnumChatFormatting.WHITE); + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + + EnumChatFormatting.WHITE + + " threw a Monkey Wrench into the Plans of " + + EnumChatFormatting.RED + + aEntity.getCommandSenderName() + + EnumChatFormatting.WHITE); } } diff --git a/src/main/java/gregtech/common/tools/GT_Tool_Wrench_HV.java b/src/main/java/gregtech/common/tools/GT_Tool_Wrench_HV.java index 812c29dcec..7a7c725f8f 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool_Wrench_HV.java +++ b/src/main/java/gregtech/common/tools/GT_Tool_Wrench_HV.java @@ -56,14 +56,14 @@ public class GT_Tool_Wrench_HV extends GT_Tool_Wrench_LV { @Override public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack) { return aIsToolHead - ? GT_MetaGenerated_Tool.getPrimaryMaterial( - aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadWrench.mTextureIndex] - : Textures.ItemIcons.POWER_UNIT_HV; + ? GT_MetaGenerated_Tool.getPrimaryMaterial( + aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadWrench.mTextureIndex] + : Textures.ItemIcons.POWER_UNIT_HV; } @Override public short[] getRGBa(boolean aIsToolHead, ItemStack aStack) { return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa - : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; + : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; } } diff --git a/src/main/java/gregtech/common/tools/GT_Tool_Wrench_LV.java b/src/main/java/gregtech/common/tools/GT_Tool_Wrench_LV.java index 1ee87b442c..5f82a7d5b1 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool_Wrench_LV.java +++ b/src/main/java/gregtech/common/tools/GT_Tool_Wrench_LV.java @@ -12,7 +12,7 @@ public class GT_Tool_Wrench_LV extends GT_Tool_Wrench { @Override public float getNormalDamageAgainstEntity(float aOriginalDamage, Entity aEntity, ItemStack aStack, - EntityPlayer aPlayer) { + EntityPlayer aPlayer) { return aOriginalDamage; } @@ -64,14 +64,14 @@ public class GT_Tool_Wrench_LV extends GT_Tool_Wrench { @Override public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack) { return aIsToolHead - ? GT_MetaGenerated_Tool.getPrimaryMaterial( - aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadWrench.mTextureIndex] - : Textures.ItemIcons.POWER_UNIT_LV; + ? GT_MetaGenerated_Tool.getPrimaryMaterial( + aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadWrench.mTextureIndex] + : Textures.ItemIcons.POWER_UNIT_LV; } @Override public short[] getRGBa(boolean aIsToolHead, ItemStack aStack) { return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa - : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; + : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; } } diff --git a/src/main/java/gregtech/common/tools/GT_Tool_Wrench_MV.java b/src/main/java/gregtech/common/tools/GT_Tool_Wrench_MV.java index b8218eb3df..cc5b649647 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool_Wrench_MV.java +++ b/src/main/java/gregtech/common/tools/GT_Tool_Wrench_MV.java @@ -56,14 +56,14 @@ public class GT_Tool_Wrench_MV extends GT_Tool_Wrench_LV { @Override public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack) { return aIsToolHead - ? GT_MetaGenerated_Tool.getPrimaryMaterial( - aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadWrench.mTextureIndex] - : Textures.ItemIcons.POWER_UNIT_MV; + ? GT_MetaGenerated_Tool.getPrimaryMaterial( + aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadWrench.mTextureIndex] + : Textures.ItemIcons.POWER_UNIT_MV; } @Override public short[] getRGBa(boolean aIsToolHead, ItemStack aStack) { return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa - : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; + : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; } } diff --git a/src/main/java/gregtech/crossmod/GregtechWailaDataProvider.java b/src/main/java/gregtech/crossmod/GregtechWailaDataProvider.java index 2cc2e1a002..47702fe833 100644 --- a/src/main/java/gregtech/crossmod/GregtechWailaDataProvider.java +++ b/src/main/java/gregtech/crossmod/GregtechWailaDataProvider.java @@ -23,13 +23,13 @@ public class GregtechWailaDataProvider implements IWailaDataProvider { @Override public List getWailaHead(ItemStack itemStack, List currenttip, IWailaDataAccessor accessor, - IWailaConfigHandler config) { + IWailaConfigHandler config) { return currenttip; } @Override public List getWailaBody(ItemStack itemStack, List currenttip, IWailaDataAccessor accessor, - IWailaConfigHandler config) { + IWailaConfigHandler config) { final TileEntity tile = accessor.getTileEntity(); if (tile instanceof IGregtechWailaProvider) { ((IGregtechWailaProvider) tile).getWailaBody(itemStack, currenttip, accessor, config); @@ -40,14 +40,14 @@ public class GregtechWailaDataProvider implements IWailaDataProvider { @Override public List getWailaTail(ItemStack itemStack, List currenttip, IWailaDataAccessor accessor, - IWailaConfigHandler config) { + IWailaConfigHandler config) { final TileEntity tile = accessor.getTileEntity(); return currenttip; } @Override public NBTTagCompound getNBTData(final EntityPlayerMP player, final TileEntity tile, final NBTTagCompound tag, - final World world, int x, int y, int z) { + final World world, int x, int y, int z) { if (tile instanceof IGregtechWailaProvider) { ((IGregtechWailaProvider) tile).getWailaNBTData(player, tile, tag, world, x, y, z); } diff --git a/src/main/java/gregtech/loaders/ExtraIcons.java b/src/main/java/gregtech/loaders/ExtraIcons.java index 82601e5336..e682ec6046 100644 --- a/src/main/java/gregtech/loaders/ExtraIcons.java +++ b/src/main/java/gregtech/loaders/ExtraIcons.java @@ -26,21 +26,21 @@ public class ExtraIcons { TextureMap reg = event.map; if (reg.getTextureType() == 1) { // are for items steelLargeCellInner = reg.registerIcon(GregTech.getResourcePath(LARGE_FLUID_CELL_CUSTOM, "steel_inner")); - aluminiumLargeCellInner = reg.registerIcon( - GregTech.getResourcePath(LARGE_FLUID_CELL_CUSTOM, "aluminium_inner")); - stainlesssteelLargeCellInner = reg.registerIcon( - GregTech.getResourcePath(LARGE_FLUID_CELL_CUSTOM, "stainlesssteel_inner")); - tungstensteelLargeCellInner = reg.registerIcon( - GregTech.getResourcePath(LARGE_FLUID_CELL_CUSTOM, "tungstensteel_inner")); - titaniumLargeCellInner = reg.registerIcon( - GregTech.getResourcePath(LARGE_FLUID_CELL_CUSTOM, "titanium_inner")); - chromiumLargeCellInner = reg.registerIcon( - GregTech.getResourcePath(LARGE_FLUID_CELL_CUSTOM, "chromium_inner")); - iridiumLargeCellInner = reg.registerIcon( - GregTech.getResourcePath(LARGE_FLUID_CELL_CUSTOM, "iridium_inner")); + aluminiumLargeCellInner = reg + .registerIcon(GregTech.getResourcePath(LARGE_FLUID_CELL_CUSTOM, "aluminium_inner")); + stainlesssteelLargeCellInner = reg + .registerIcon(GregTech.getResourcePath(LARGE_FLUID_CELL_CUSTOM, "stainlesssteel_inner")); + tungstensteelLargeCellInner = reg + .registerIcon(GregTech.getResourcePath(LARGE_FLUID_CELL_CUSTOM, "tungstensteel_inner")); + titaniumLargeCellInner = reg + .registerIcon(GregTech.getResourcePath(LARGE_FLUID_CELL_CUSTOM, "titanium_inner")); + chromiumLargeCellInner = reg + .registerIcon(GregTech.getResourcePath(LARGE_FLUID_CELL_CUSTOM, "chromium_inner")); + iridiumLargeCellInner = reg + .registerIcon(GregTech.getResourcePath(LARGE_FLUID_CELL_CUSTOM, "iridium_inner")); osmiumLargeCellInner = reg.registerIcon(GregTech.getResourcePath(LARGE_FLUID_CELL_CUSTOM, "osmium_inner")); - neutroniumLargeCellInner = reg.registerIcon( - GregTech.getResourcePath(LARGE_FLUID_CELL_CUSTOM, "neutronium_inner")); + neutroniumLargeCellInner = reg + .registerIcon(GregTech.getResourcePath(LARGE_FLUID_CELL_CUSTOM, "neutronium_inner")); } } } diff --git a/src/main/java/gregtech/loaders/load/GT_FuelLoader.java b/src/main/java/gregtech/loaders/load/GT_FuelLoader.java index e87538c831..554fecb6f9 100644 --- a/src/main/java/gregtech/loaders/load/GT_FuelLoader.java +++ b/src/main/java/gregtech/loaders/load/GT_FuelLoader.java @@ -23,157 +23,137 @@ public class GT_FuelLoader implements Runnable { @Override public void run() { GT_Log.out.println("GT_Mod: Initializing various Fuels."); - ItemList.sBlueVitriol = GT_Mod.gregtechproxy.addFluid( - "solution.bluevitriol", - "Blue Vitriol water solution", - null, - 1, - 295); - ItemList.sNickelSulfate = GT_Mod.gregtechproxy.addFluid( - "solution.nickelsulfate", - "Nickel sulfate water solution", - null, - 1, - 295); - ItemList.sGreenVitriol = GT_Mod.gregtechproxy.addFluid( - "solution.greenvitriol", - "Green Vitriol water solution", - null, - 1, - 295); - ItemList.sIndiumConcentrate = GT_Mod.gregtechproxy.addFluid( - "indiumconcentrate", - "Indium Concentrate", - null, - 1, - 295); // TODO CHECK NEW x3 - ItemList.sLeadZincSolution = GT_Mod.gregtechproxy.addFluid( - "leadzincsolution", - "Lead-Zinc solution", - null, - 1, - 295); + ItemList.sBlueVitriol = GT_Mod.gregtechproxy + .addFluid("solution.bluevitriol", "Blue Vitriol water solution", null, 1, 295); + ItemList.sNickelSulfate = GT_Mod.gregtechproxy + .addFluid("solution.nickelsulfate", "Nickel sulfate water solution", null, 1, 295); + ItemList.sGreenVitriol = GT_Mod.gregtechproxy + .addFluid("solution.greenvitriol", "Green Vitriol water solution", null, 1, 295); + ItemList.sIndiumConcentrate = GT_Mod.gregtechproxy + .addFluid("indiumconcentrate", "Indium Concentrate", null, 1, 295); // TODO CHECK NEW x3 + ItemList.sLeadZincSolution = GT_Mod.gregtechproxy + .addFluid("leadzincsolution", "Lead-Zinc solution", null, 1, 295); ItemList.sRocketFuel = GT_Mod.gregtechproxy.addFluid("rocket_fuel", "Rocket Fuel", null, 1, 295); new GT_Recipe( - new ItemStack(Items.lava_bucket), - new ItemStack(Blocks.obsidian), - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Copper, 1L), - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Tin, 1L), - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Electrum, 1L), - 30, - 2); + new ItemStack(Items.lava_bucket), + new ItemStack(Blocks.obsidian), + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Copper, 1L), + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Tin, 1L), + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Electrum, 1L), + 30, + 2); GT_Recipe.GT_Recipe_Map.sSmallNaquadahReactorFuels.addRecipe( - true, - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.bolt, Materials.NaquadahEnriched, 1L) }, - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.bolt, Materials.Naquadah, 1L) }, - null, - null, - null, - 0, - 0, - 50000); + true, + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.bolt, Materials.NaquadahEnriched, 1L) }, + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.bolt, Materials.Naquadah, 1L) }, + null, + null, + null, + 0, + 0, + 50000); GT_Recipe.GT_Recipe_Map.sLargeNaquadahReactorFuels.addRecipe( - true, - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.stick, Materials.NaquadahEnriched, 1L) }, - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Naquadah, 1L) }, - null, - null, - null, - 0, - 0, - 250000); + true, + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.stick, Materials.NaquadahEnriched, 1L) }, + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Naquadah, 1L) }, + null, + null, + null, + 0, + 0, + 250000); GT_Recipe.GT_Recipe_Map.sHugeNaquadahReactorFuels.addRecipe( - true, - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.NaquadahEnriched, 1L) }, - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Naquadah, 1L) }, - null, - null, - null, - 0, - 0, - 500000); + true, + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.NaquadahEnriched, 1L) }, + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Naquadah, 1L) }, + null, + null, + null, + 0, + 0, + 500000); GT_Recipe.GT_Recipe_Map.sExtremeNaquadahReactorFuels.addRecipe( - true, - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.bolt, Materials.Naquadria, 1L) }, - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.bolt, Materials.Naquadah, 1L) }, - null, - null, - null, - 0, - 0, - 250000); + true, + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.bolt, Materials.Naquadria, 1L) }, + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.bolt, Materials.Naquadah, 1L) }, + null, + null, + null, + 0, + 0, + 250000); GT_Recipe.GT_Recipe_Map.sUltraHugeNaquadahReactorFuels.addRecipe( - true, - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Naquadria, 1L) }, - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Naquadah, 1L) }, - null, - null, - null, - 0, - 0, - 1000000); + true, + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Naquadria, 1L) }, + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Naquadah, 1L) }, + null, + null, + null, + 0, + 0, + 1000000); GT_Recipe.GT_Recipe_Map.sFluidNaquadahReactorFuels.addRecipe( - true, - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.cell, Materials.NaquadahEnriched, 1L) }, - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Naquadah, 1L) }, - null, - null, - null, - 0, - 0, - 1400000); + true, + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.cell, Materials.NaquadahEnriched, 1L) }, + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Naquadah, 1L) }, + null, + null, + null, + 0, + 0, + 1400000); // BloodMagic GT_Recipe.GT_Recipe_Map.sMagicFuels.addRecipe( - true, - new ItemStack[] { GT_ModHandler.getModItem(BloodMagic.ID, "reinforcedSlate", 1L) }, - new ItemStack[] { GT_ModHandler.getModItem(BloodMagic.ID, "blankSlate", 1L) }, - null, - null, - null, - 0, - 0, - 400); + true, + new ItemStack[] { GT_ModHandler.getModItem(BloodMagic.ID, "reinforcedSlate", 1L) }, + new ItemStack[] { GT_ModHandler.getModItem(BloodMagic.ID, "blankSlate", 1L) }, + null, + null, + null, + 0, + 0, + 400); GT_Recipe.GT_Recipe_Map.sMagicFuels.addRecipe( - true, - new ItemStack[] { GT_ModHandler.getModItem(BloodMagic.ID, "imbuedSlate", 1L) }, - new ItemStack[] { GT_ModHandler.getModItem(BloodMagic.ID, "reinforcedSlate", 1L) }, - null, - null, - null, - 0, - 0, - 1000); + true, + new ItemStack[] { GT_ModHandler.getModItem(BloodMagic.ID, "imbuedSlate", 1L) }, + new ItemStack[] { GT_ModHandler.getModItem(BloodMagic.ID, "reinforcedSlate", 1L) }, + null, + null, + null, + 0, + 0, + 1000); GT_Recipe.GT_Recipe_Map.sMagicFuels.addRecipe( - true, - new ItemStack[] { GT_ModHandler.getModItem(BloodMagic.ID, "demonicSlate", 1L) }, - new ItemStack[] { GT_ModHandler.getModItem(BloodMagic.ID, "imbuedSlate", 1L) }, - null, - null, - null, - 0, - 0, - 8000); + true, + new ItemStack[] { GT_ModHandler.getModItem(BloodMagic.ID, "demonicSlate", 1L) }, + new ItemStack[] { GT_ModHandler.getModItem(BloodMagic.ID, "imbuedSlate", 1L) }, + null, + null, + null, + 0, + 0, + 8000); GT_Recipe.GT_Recipe_Map.sMagicFuels.addRecipe( - true, - new ItemStack[] { GT_ModHandler.getModItem(BloodMagic.ID, "bloodMagicBaseItems", 1L, 27) }, - new ItemStack[] { GT_ModHandler.getModItem(BloodMagic.ID, "demonicSlate", 1L) }, - null, - null, - null, - 0, - 0, - 20000); + true, + new ItemStack[] { GT_ModHandler.getModItem(BloodMagic.ID, "bloodMagicBaseItems", 1L, 27) }, + new ItemStack[] { GT_ModHandler.getModItem(BloodMagic.ID, "demonicSlate", 1L) }, + null, + null, + null, + 0, + 0, + 20000); GT_Values.RA.addFuel(GT_ModHandler.getModItem(Thaumcraft.ID, "ItemResource", 1L, 4), null, 4, 5); GT_Values.RA.addFuel(new ItemStack(Items.experience_bottle, 1), null, 10, 5); GT_Values.RA.addFuel(new ItemStack(Items.ghast_tear, 1), null, 50, 5); GT_Values.RA.addFuel( - new ItemStack(Blocks.beacon, 1), - null, - Materials.NetherStar.mFuelPower * 2, - Materials.NetherStar.mFuelType); + new ItemStack(Blocks.beacon, 1), + null, + Materials.NetherStar.mFuelPower * 2, + Materials.NetherStar.mFuelType); GT_Values.RA.addFuel(GT_ModHandler.getModItem(EnderIO.ID, "bucketRocket_fuel", 1), null, 250, 1); } } diff --git a/src/main/java/gregtech/loaders/load/GT_ItemIterator.java b/src/main/java/gregtech/loaders/load/GT_ItemIterator.java index 8e6130eccb..fb70c2b395 100644 --- a/src/main/java/gregtech/loaders/load/GT_ItemIterator.java +++ b/src/main/java/gregtech/loaders/load/GT_ItemIterator.java @@ -33,129 +33,122 @@ public class GT_ItemIterator implements Runnable { ItemStack tStack2; ItemStack tStack; if (null != (tStack = GT_ModHandler.getRecipeOutput( - tStack2 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Bronze, 1L), - tStack2, - tStack2, - tStack2, - null, - tStack2, - tStack2, - tStack2, - tStack2))) { + tStack2 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Bronze, 1L), + tStack2, + tStack2, + tStack2, + null, + tStack2, + tStack2, + tStack2, + tStack2))) { GT_ModHandler.addPulverisationRecipe( - tStack, - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Bronze, 8L), - null, - 0, - false); + tStack, + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Bronze, 8L), + null, + 0, + false); GT_ModHandler.addSmeltingRecipe(tStack, GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Bronze, 8L)); } if (null != (tStack = GT_ModHandler.getRecipeOutput( - tStack2 = GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Bronze, 1L), - tStack2, - tStack2, - tStack2, - null, - tStack2, - tStack2, - tStack2, - tStack2))) { + tStack2 = GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Bronze, 1L), + tStack2, + tStack2, + tStack2, + null, + tStack2, + tStack2, + tStack2, + tStack2))) { GT_OreDictUnificator.registerOre(OreDictNames.craftingRawMachineTier00, tStack); GT_ModHandler.addPulverisationRecipe( - tStack, - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Bronze, 8L), - null, - 0, - false); + tStack, + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Bronze, 8L), + null, + 0, + false); GT_ModHandler.addSmeltingRecipe(tStack, GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Bronze, 8L)); } ItemStack tStack3; if (null != (tStack = GT_ModHandler.getRecipeOutput( - tStack2 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Iron, 1L), - tStack3 = new ItemStack(Blocks.glass, 1, 0), - tStack2, - tStack3, - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Gold, 1L), - tStack3, - tStack2, - tStack3, - tStack2))) { + tStack2 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Iron, 1L), + tStack3 = new ItemStack(Blocks.glass, 1, 0), + tStack2, + tStack3, + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Gold, 1L), + tStack3, + tStack2, + tStack3, + tStack2))) { GT_ModHandler.addPulverisationRecipe( - tStack, - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iron, 4L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gold, 1L), - 0, - false); + tStack, + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iron, 4L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gold, 1L), + 0, + false); } if (null != (tStack = GT_ModHandler.getRecipeOutput( - tStack2 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 1L), - tStack3 = new ItemStack(Blocks.glass, 1, 0), - tStack2, - tStack3, - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Gold, 1L), - tStack3, - tStack2, - tStack3, - tStack2))) { + tStack2 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 1L), + tStack3 = new ItemStack(Blocks.glass, 1, 0), + tStack2, + tStack3, + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Gold, 1L), + tStack3, + tStack2, + tStack3, + tStack2))) { GT_ModHandler.addPulverisationRecipe( - tStack, - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Steel, 4L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gold, 1L), - 0, - false); + tStack, + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Steel, 4L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gold, 1L), + 0, + false); } GT_Log.out.println("GT_Mod: Registering various Tools to be usable on GregTech Machines"); GregTech_API.registerScrewdriver( - GT_ModHandler.getRecipeOutput( - null, - new ItemStack(Items.iron_ingot, 1), - null, - new ItemStack(Items.stick, 1))); + GT_ModHandler + .getRecipeOutput(null, new ItemStack(Items.iron_ingot, 1), null, new ItemStack(Items.stick, 1))); GregTech_API.registerScrewdriver( - GT_ModHandler.getRecipeOutput( - new ItemStack(Items.iron_ingot, 1), - null, - null, - null, - new ItemStack(Items.stick, 1))); + GT_ModHandler + .getRecipeOutput(new ItemStack(Items.iron_ingot, 1), null, null, null, new ItemStack(Items.stick, 1))); GT_Log.out.println( - "GT_Mod: Adding Food Recipes to the Automatic Canning Machine. (also during the following Item Iteration)"); + "GT_Mod: Adding Food Recipes to the Automatic Canning Machine. (also during the following Item Iteration)"); GT_Values.RA.addCannerRecipe( - new ItemStack(Items.rotten_flesh, 2, 32767), - ItemList.IC2_Food_Can_Empty.get(1L), - ItemList.IC2_Food_Can_Spoiled.get(1L), - null, - 200, - 1); + new ItemStack(Items.rotten_flesh, 2, 32767), + ItemList.IC2_Food_Can_Empty.get(1L), + ItemList.IC2_Food_Can_Spoiled.get(1L), + null, + 200, + 1); GT_Values.RA.addCannerRecipe( - new ItemStack(Items.spider_eye, 2, 32767), - ItemList.IC2_Food_Can_Empty.get(1L), - ItemList.IC2_Food_Can_Spoiled.get(1L), - null, - 100, - 1); + new ItemStack(Items.spider_eye, 2, 32767), + ItemList.IC2_Food_Can_Empty.get(1L), + ItemList.IC2_Food_Can_Spoiled.get(1L), + null, + 100, + 1); GT_Values.RA.addCannerRecipe( - ItemList.Food_Poisonous_Potato.get(2L), - ItemList.IC2_Food_Can_Empty.get(1L), - ItemList.IC2_Food_Can_Spoiled.get(1L), - null, - 100, - 1); + ItemList.Food_Poisonous_Potato.get(2L), + ItemList.IC2_Food_Can_Empty.get(1L), + ItemList.IC2_Food_Can_Spoiled.get(1L), + null, + 100, + 1); GT_Values.RA.addCannerRecipe( - new ItemStack(Items.cake, 1, 32767), - ItemList.IC2_Food_Can_Empty.get(12L), - ItemList.IC2_Food_Can_Filled.get(12L), - null, - 600, - 1); + new ItemStack(Items.cake, 1, 32767), + ItemList.IC2_Food_Can_Empty.get(12L), + ItemList.IC2_Food_Can_Filled.get(12L), + null, + 600, + 1); GT_Values.RA.addCannerRecipe( - new ItemStack(Items.mushroom_stew, 1, 32767), - ItemList.IC2_Food_Can_Empty.get(6L), - ItemList.IC2_Food_Can_Filled.get(6L), - new ItemStack(Items.bowl, 1), - 300, - 1); + new ItemStack(Items.mushroom_stew, 1, 32767), + ItemList.IC2_Food_Can_Empty.get(6L), + ItemList.IC2_Food_Can_Filled.get(6L), + new ItemStack(Items.bowl, 1), + 300, + 1); GT_Log.out.println("GT_Mod: Scanning ItemList."); @@ -169,12 +162,11 @@ public class GT_ItemIterator implements Runnable { if ((tName = tItem.getUnlocalizedName()) != null) { if ((tItem instanceof IToolCrowbar)) { if ((!tItem.isDamageable()) - && (!GT_ModHandler.isElectricItem(new ItemStack(tItem, 1, 0)))) { + && (!GT_ModHandler.isElectricItem(new ItemStack(tItem, 1, 0)))) { if ((GregTech_API.sRecipeFile.get( - ConfigCategories.Recipes.disabledrecipes, - "infiniteDurabilityRCCrowbars", - false)) - && (GT_ModHandler.removeRecipeByOutput(new ItemStack(tItem, 1, 32767)))) { + ConfigCategories.Recipes.disabledrecipes, + "infiniteDurabilityRCCrowbars", + false)) && (GT_ModHandler.removeRecipeByOutput(new ItemStack(tItem, 1, 32767)))) { GT_Log.out.println("GT_Mod: Removed infinite RC Crowbar: " + tName); } } else if (GregTech_API.registerCrowbar(new ItemStack(tItem, 1, 32767))) { @@ -183,12 +175,11 @@ public class GT_ItemIterator implements Runnable { } if ((tItem instanceof IToolWrench)) { if ((!tItem.isDamageable()) - && (!GT_ModHandler.isElectricItem(new ItemStack(tItem, 1, 0)))) { + && (!GT_ModHandler.isElectricItem(new ItemStack(tItem, 1, 0)))) { if ((GregTech_API.sRecipeFile.get( - ConfigCategories.Recipes.disabledrecipes, - "infiniteDurabilityBCWrenches", - false)) - && (GT_ModHandler.removeRecipeByOutput(new ItemStack(tItem, 1, 32767)))) { + ConfigCategories.Recipes.disabledrecipes, + "infiniteDurabilityBCWrenches", + false)) && (GT_ModHandler.removeRecipeByOutput(new ItemStack(tItem, 1, 32767)))) { GT_Log.out.println("GT_Mod: Removed infinite BC Wrench: " + tName); } } else if (GregTech_API.registerWrench(new ItemStack(tItem, 1, 32767))) { @@ -202,25 +193,25 @@ public class GT_ItemIterator implements Runnable { gregtech.common.tools.GT_Tool_Scoop.sBeeHiveMaterial = tBlock.getMaterial(); } if (OrePrefixes.stone.mDefaultStackSize - < tItem.getItemStackLimit(new ItemStack(tItem, 1, 0))) { + < tItem.getItemStackLimit(new ItemStack(tItem, 1, 0))) { if ((tBlock.isReplaceableOreGen(GT_Values.DW, 0, 0, 0, Blocks.stone)) - || (tBlock.isReplaceableOreGen(GT_Values.DW, 0, 0, 0, Blocks.netherrack)) - || (tBlock.isReplaceableOreGen(GT_Values.DW, 0, 0, 0, Blocks.end_stone))) { + || (tBlock.isReplaceableOreGen(GT_Values.DW, 0, 0, 0, Blocks.netherrack)) + || (tBlock.isReplaceableOreGen(GT_Values.DW, 0, 0, 0, Blocks.end_stone))) { tItem.setMaxStackSize(OrePrefixes.stone.mDefaultStackSize); } } } if (((tItem instanceof ItemFood)) && (tItem != ItemList.IC2_Food_Can_Filled.getItem()) - && (tItem != ItemList.IC2_Food_Can_Spoiled.getItem())) { + && (tItem != ItemList.IC2_Food_Can_Spoiled.getItem())) { int tFoodValue = ((ItemFood) tItem).func_150905_g(new ItemStack(tItem, 1, 0)); if (tFoodValue > 0) { GT_Values.RA.addCannerRecipe( - new ItemStack(tItem, 1, 32767), - ItemList.IC2_Food_Can_Empty.get(tFoodValue), - ItemList.IC2_Food_Can_Filled.get(tFoodValue), - GT_Utility.getContainerItem(new ItemStack(tItem, 1, 0), true), - tFoodValue * 100, - 1); + new ItemStack(tItem, 1, 32767), + ItemList.IC2_Food_Can_Empty.get(tFoodValue), + ItemList.IC2_Food_Can_Filled.get(tFoodValue), + GT_Utility.getContainerItem(new ItemStack(tItem, 1, 0), true), + tFoodValue * 100, + 1); } } if ((tItem instanceof IFluidContainerItem)) { @@ -237,14 +228,14 @@ public class GT_ItemIterator implements Runnable { } if (tName.equals("tile.TFRoots")) { GT_ModHandler.addPulverisationRecipe( - new ItemStack(tItem, 1, 0), - new ItemStack(Items.stick, 2), - new ItemStack(Items.stick, 1), - 30); + new ItemStack(tItem, 1, 0), + new ItemStack(Items.stick, 2), + new ItemStack(Items.stick, 1), + 30); GT_ModHandler.addSawmillRecipe( - new ItemStack(tItem, 1, 0), - new ItemStack(Items.stick, 4), - new ItemStack(Items.stick, 2)); + new ItemStack(tItem, 1, 0), + new ItemStack(Items.stick, 4), + new ItemStack(Items.stick, 2)); GT_Values.RA.addFuel(new ItemStack(tItem, 1, 1), new ItemStack(Items.stick, 4), 32, 5); } if (tName.equals("item.tconstruct.manual")) { @@ -298,215 +289,122 @@ public class GT_ItemIterator implements Runnable { GT_OreDictUnificator.set(OrePrefixes.gem, Materials.Lignite, new ItemStack(tItem, 1, 0)); } if ((tName.equals("tile.extrabiomes.redrock")) || (tName.equals("tile.bop.redRocks"))) { - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Redrock, - new ItemStack(tItem, 1, 0)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Redrock, - new ItemStack(tItem, 1, 1)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Redrock, - new ItemStack(tItem, 1, 2)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Redrock, new ItemStack(tItem, 1, 0)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Redrock, new ItemStack(tItem, 1, 1)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Redrock, new ItemStack(tItem, 1, 2)); } if (tName.equals("tile.rpstone")) { - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Marble, - new ItemStack(tItem, 1, 0)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Basalt, - new ItemStack(tItem, 1, 1)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Marble, - new ItemStack(tItem, 1, 2)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Basalt, - new ItemStack(tItem, 1, 3)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Basalt, - new ItemStack(tItem, 1, 4)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Basalt, - new ItemStack(tItem, 1, 5)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Basalt, - new ItemStack(tItem, 1, 6)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Marble, new ItemStack(tItem, 1, 0)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Basalt, new ItemStack(tItem, 1, 1)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Marble, new ItemStack(tItem, 1, 2)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Basalt, new ItemStack(tItem, 1, 3)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Basalt, new ItemStack(tItem, 1, 4)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Basalt, new ItemStack(tItem, 1, 5)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Basalt, new ItemStack(tItem, 1, 6)); } if ( /** (tName.equals("tile.sedimentaryStone")) || **/ ((tName.equals("tile.igneousStone")) || (tName.equals("tile.igneousStoneBrick")) - || (tName.equals("tile.igneousCobblestone")))) { - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.GraniteRed, - new ItemStack(tItem, 1, 0)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.GraniteBlack, - new ItemStack(tItem, 1, 1)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Rhyolite, - new ItemStack(tItem, 1, 2)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Andesite, - new ItemStack(tItem, 1, 3)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Gabbro, - new ItemStack(tItem, 1, 4)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Basalt, - new ItemStack(tItem, 1, 5)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Komatiite, - new ItemStack(tItem, 1, 6)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Dacite, - new ItemStack(tItem, 1, 7)); + || (tName.equals("tile.igneousCobblestone")))) { + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.GraniteRed, new ItemStack(tItem, 1, 0)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.GraniteBlack, new ItemStack(tItem, 1, 1)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Rhyolite, new ItemStack(tItem, 1, 2)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Andesite, new ItemStack(tItem, 1, 3)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Gabbro, new ItemStack(tItem, 1, 4)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Basalt, new ItemStack(tItem, 1, 5)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Komatiite, new ItemStack(tItem, 1, 6)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Dacite, new ItemStack(tItem, 1, 7)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.GraniteRed, - new ItemStack(tItem, 1, 8)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.GraniteBlack, - new ItemStack(tItem, 1, 9)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Rhyolite, - new ItemStack(tItem, 1, 10)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Andesite, - new ItemStack(tItem, 1, 11)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Gabbro, - new ItemStack(tItem, 1, 12)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Basalt, - new ItemStack(tItem, 1, 13)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Komatiite, - new ItemStack(tItem, 1, 14)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Dacite, - new ItemStack(tItem, 1, 15)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.GraniteRed, new ItemStack(tItem, 1, 8)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.GraniteBlack, new ItemStack(tItem, 1, 9)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Rhyolite, new ItemStack(tItem, 1, 10)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Andesite, new ItemStack(tItem, 1, 11)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Gabbro, new ItemStack(tItem, 1, 12)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Basalt, new ItemStack(tItem, 1, 13)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Komatiite, new ItemStack(tItem, 1, 14)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Dacite, new ItemStack(tItem, 1, 15)); } if ((tName.equals("tile.metamorphicStone")) || (tName.equals("tile.metamorphicStoneBrick")) - || (tName.equals("tile.metamorphicCobblestone"))) { - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Gneiss, - new ItemStack(tItem, 1, 0)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Eclogite, - new ItemStack(tItem, 1, 1)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Marble, - new ItemStack(tItem, 1, 2)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Quartzite, - new ItemStack(tItem, 1, 3)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Blueschist, - new ItemStack(tItem, 1, 4)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Greenschist, - new ItemStack(tItem, 1, 5)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Soapstone, - new ItemStack(tItem, 1, 6)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Migmatite, - new ItemStack(tItem, 1, 7)); + || (tName.equals("tile.metamorphicCobblestone"))) { + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Gneiss, new ItemStack(tItem, 1, 0)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Eclogite, new ItemStack(tItem, 1, 1)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Marble, new ItemStack(tItem, 1, 2)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Quartzite, new ItemStack(tItem, 1, 3)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Blueschist, new ItemStack(tItem, 1, 4)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Greenschist, new ItemStack(tItem, 1, 5)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Soapstone, new ItemStack(tItem, 1, 6)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Migmatite, new ItemStack(tItem, 1, 7)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Gneiss, - new ItemStack(tItem, 1, 8)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Eclogite, - new ItemStack(tItem, 1, 9)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Marble, - new ItemStack(tItem, 1, 10)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Quartzite, - new ItemStack(tItem, 1, 11)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Blueschist, - new ItemStack(tItem, 1, 12)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Greenschist, - new ItemStack(tItem, 1, 13)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Soapstone, - new ItemStack(tItem, 1, 14)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Migmatite, - new ItemStack(tItem, 1, 15)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Gneiss, new ItemStack(tItem, 1, 8)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Eclogite, new ItemStack(tItem, 1, 9)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Marble, new ItemStack(tItem, 1, 10)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Quartzite, new ItemStack(tItem, 1, 11)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Blueschist, new ItemStack(tItem, 1, 12)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Greenschist, new ItemStack(tItem, 1, 13)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Soapstone, new ItemStack(tItem, 1, 14)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Migmatite, new ItemStack(tItem, 1, 15)); } if (tName.equals("tile.blockCosmeticSolid")) { - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Obsidian, - new ItemStack(tItem, 1, 0)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Obsidian, - new ItemStack(tItem, 1, 1)); - GT_OreDictUnificator.registerOre( - OrePrefixes.block, - Materials.Thaumium, - new ItemStack(tItem, 1, 4)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Obsidian, new ItemStack(tItem, 1, 0)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Obsidian, new ItemStack(tItem, 1, 1)); + GT_OreDictUnificator + .registerOre(OrePrefixes.block, Materials.Thaumium, new ItemStack(tItem, 1, 4)); } if (tName.equals("tile.enderchest")) { GT_OreDictUnificator.registerOre(OreDictNames.enderChest, new ItemStack(tItem, 1, 32767)); } if (tName.equals("tile.autoWorkbenchBlock")) { - GT_OreDictUnificator.registerOre( - OreDictNames.craftingWorkBench, - new ItemStack(tItem, 1, 0)); + GT_OreDictUnificator + .registerOre(OreDictNames.craftingWorkBench, new ItemStack(tItem, 1, 0)); } if (tName.equals("tile.pumpBlock")) { GT_OreDictUnificator.registerOre(OreDictNames.craftingPump, new ItemStack(tItem, 1, 0)); - if (GregTech_API.sRecipeFile.get( - ConfigCategories.Recipes.disabledrecipes, - "BCPump", - false)) { + if (GregTech_API.sRecipeFile + .get(ConfigCategories.Recipes.disabledrecipes, "BCPump", false)) { GT_ModHandler.removeRecipeByOutput(new ItemStack(tItem, 1, 0)); } } @@ -514,9 +412,8 @@ public class GT_ItemIterator implements Runnable { GT_OreDictUnificator.registerOre(OreDictNames.craftingTank, new ItemStack(tItem, 1, 0)); } if (tName.equals("item.drawplateDiamond")) { - GT_OreDictUnificator.registerOre( - ToolDictNames.craftingToolDrawplate, - new ItemStack(tItem, 1, 32767)); + GT_OreDictUnificator + .registerOre(ToolDictNames.craftingToolDrawplate, new ItemStack(tItem, 1, 32767)); } } } diff --git a/src/main/java/gregtech/loaders/load/GT_SonictronLoader.java b/src/main/java/gregtech/loaders/load/GT_SonictronLoader.java index 115e95a6d3..e5fb8042f7 100644 --- a/src/main/java/gregtech/loaders/load/GT_SonictronLoader.java +++ b/src/main/java/gregtech/loaders/load/GT_SonictronLoader.java @@ -112,8 +112,8 @@ public class GT_SonictronLoader implements Runnable { GT_Mod.gregtechproxy.mSoundItems.add(new ItemStack(Items.glass_bottle, 1)); GT_Mod.gregtechproxy.mSoundNames.add(SoundResource.RANDOM_BURP.toString()); GT_Mod.gregtechproxy.mSoundCounts.add(1); - GT_Mod.gregtechproxy.mSoundItems.add( - new ItemStack(Blocks.ender_chest == null ? Blocks.obsidian : Blocks.ender_chest, 1)); + GT_Mod.gregtechproxy.mSoundItems + .add(new ItemStack(Blocks.ender_chest == null ? Blocks.obsidian : Blocks.ender_chest, 1)); GT_Mod.gregtechproxy.mSoundNames.add(SoundResource.RANDOM_CHESTOPEN.toString()); GT_Mod.gregtechproxy.mSoundCounts.add(1); GT_Mod.gregtechproxy.mSoundItems.add(new ItemStack(Blocks.chest, 1)); diff --git a/src/main/java/gregtech/loaders/materialprocessing/ProcessingConfig.java b/src/main/java/gregtech/loaders/materialprocessing/ProcessingConfig.java index fe8ff8c12d..15f1922aab 100644 --- a/src/main/java/gregtech/loaders/materialprocessing/ProcessingConfig.java +++ b/src/main/java/gregtech/loaders/materialprocessing/ProcessingConfig.java @@ -19,34 +19,34 @@ public class ProcessingConfig implements gregtech.api.interfaces.IMaterialHandle if (false) { int i = 0; for (int j = GregTech_API.sMaterialProperties.get("general", "AmountOfCustomMaterialSlots", 16); i - < j; i++) { + < j; i++) { String aID = (i < 10 ? "0" : "") + i; new Materials( - -1, - TextureSet.SET_METALLIC, - 1.0F, - 0, - 0, - 0, - 255, - 255, - 255, - 0, - "CustomMat" + aID, - "CustomMat" + aID, - 0, - 0, - 0, - 0, - false, - false, - 1, - 1, - 1, - Dyes._NULL, - "custom", - true, - aID); + -1, + TextureSet.SET_METALLIC, + 1.0F, + 0, + 0, + 0, + 255, + 255, + 255, + 0, + "CustomMat" + aID, + "CustomMat" + aID, + 0, + 0, + 0, + 0, + false, + false, + 1, + 1, + 1, + Dyes._NULL, + "custom", + true, + aID); } } } diff --git a/src/main/java/gregtech/loaders/misc/GT_Achievements.java b/src/main/java/gregtech/loaders/misc/GT_Achievements.java index 5318e6cb39..5acd820499 100644 --- a/src/main/java/gregtech/loaders/misc/GT_Achievements.java +++ b/src/main/java/gregtech/loaders/misc/GT_Achievements.java @@ -48,12 +48,12 @@ public class GT_Achievements { registerAssAchievement(recipe); registerAchievement( - "flintpick", - 0, - 0, - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats(2, 1, Materials.Flint, Materials.Wood, null), - "", - false); + "flintpick", + 0, + 0, + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats(2, 1, Materials.Flint, Materials.Wood, null), + "", + false); registerAchievement("crops", -4, 0, GT_ModHandler.getIC2Item("crop", 1L), "flintpick", false); registerAchievement("havestlead", -4, 2, ItemList.Crop_Drop_Plumbilia.get(1), "crops", false); registerAchievement("havestcopper", -2, 1, ItemList.Crop_Drop_Coppon.get(1), "crops", false); @@ -65,133 +65,125 @@ public class GT_Achievements { registerAchievement("havestemeralds", -2, -8, ItemList.Crop_Drop_BobsYerUncleRanks.get(1), "havestgold", false); registerAchievement( - "tools", - 0, - 4, - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.HARDHAMMER, - 1, - Materials.Iron, - Materials.Wood, - null), - "flintpick", - false); + "tools", + 0, + 4, + GT_MetaGenerated_Tool_01.INSTANCE + .getToolWithStats(GT_MetaGenerated_Tool_01.HARDHAMMER, 1, Materials.Iron, Materials.Wood, null), + "flintpick", + false); registerAchievement( - "driltime", - 2, - 4, - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.DRILL_LV, - 1, - Materials.BlueSteel, - Materials.StainlessSteel, - null), - "tools", - false); + "driltime", + 2, + 4, + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.DRILL_LV, + 1, + Materials.BlueSteel, + Materials.StainlessSteel, + null), + "tools", + false); registerAchievement( - "brrrr", - 2, - 6, - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.CHAINSAW_LV, - 1, - Materials.BlueSteel, - Materials.StainlessSteel, - null), - "driltime", - false); + "brrrr", + 2, + 6, + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.CHAINSAW_LV, + 1, + Materials.BlueSteel, + Materials.StainlessSteel, + null), + "driltime", + false); registerAchievement( - "highpowerdrill", - 3, - 5, - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.DRILL_HV, - 1, - Materials.TungstenSteel, - Materials.TungstenSteel, - null), - "driltime", - false); + "highpowerdrill", + 3, + 5, + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.DRILL_HV, + 1, + Materials.TungstenSteel, + Materials.TungstenSteel, + null), + "driltime", + false); registerAchievement( - "hammertime", - 3, - 7, - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.JACKHAMMER, - 1, - Materials.TungstenSteel, - Materials.TungstenSteel, - null), - "highpowerdrill", - false); + "hammertime", + 3, + 7, + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.JACKHAMMER, + 1, + Materials.TungstenSteel, + Materials.TungstenSteel, + null), + "highpowerdrill", + false); registerAchievement( - "unitool", - -2, - 4, - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.UNIVERSALSPADE, - 1, - Materials.Steel, - Materials.Iron, - null), - "tools", - false); + "unitool", + -2, + 4, + GT_MetaGenerated_Tool_01.INSTANCE + .getToolWithStats(GT_MetaGenerated_Tool_01.UNIVERSALSPADE, 1, Materials.Steel, Materials.Iron, null), + "tools", + false); registerAchievement("recycling", -4, 4, ItemList.Machine_LV_ArcFurnace.get(1), "unitool", false); registerAchievement( - "crushed", - 0, - 6, - GT_OreDictUnificator.get(OrePrefixes.crushed, Materials.Tin, 1L), - "tools", - false); + "crushed", + 0, + 6, + GT_OreDictUnificator.get(OrePrefixes.crushed, Materials.Tin, 1L), + "tools", + false); registerAchievement( - "cleandust", - 0, - 10, - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1L), - "crushed", - false); + "cleandust", + 0, + 10, + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1L), + "crushed", + false); registerAchievement( - "washing", - -2, - 6, - GT_OreDictUnificator.get(OrePrefixes.crushedPurified, Materials.Iron, 1L), - "crushed", - false); + "washing", + -2, + 6, + GT_OreDictUnificator.get(OrePrefixes.crushedPurified, Materials.Iron, 1L), + "crushed", + false); registerAchievement( - "spinit", - -4, - 6, - GT_OreDictUnificator.get(OrePrefixes.crushedCentrifuged, Materials.Redstone, 1L), - "crushed", - false); + "spinit", + -4, + 6, + GT_OreDictUnificator.get(OrePrefixes.crushedCentrifuged, Materials.Redstone, 1L), + "crushed", + false); if (!GregTech_API.mIC2Classic) { registerAchievement("newfuel", -4, 8, ItemList.ThoriumCell_4.get(1), "spinit", false); registerAchievement( - "newmetal", - -4, - 10, - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lutetium, 1L), - "newfuel", - false); + "newmetal", + -4, + 10, + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lutetium, 1L), + "newfuel", + false); registerAchievement("reflect", -2, 9, ItemList.Neutron_Reflector.get(1), "newfuel", false); } registerAchievement( - "bronze", - 2, - 0, - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Bronze, 1L), - "flintpick", - false); + "bronze", + 2, + 0, + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Bronze, 1L), + "flintpick", + false); registerAchievement( - "simplyeco", - 2, - 2, - ItemList.Machine_Bronze_Boiler_Solar.get(1, ItemList.Machine_HP_Solar.get(1L)), - "bronze", - false); + "simplyeco", + 2, + 2, + ItemList.Machine_Bronze_Boiler_Solar.get(1, ItemList.Machine_HP_Solar.get(1L)), + "bronze", + false); registerAchievement("firststeam", 2, -2, ItemList.Machine_Bronze_Boiler.get(1), "bronze", false); registerAchievement("alloysmelter", 2, -4, ItemList.Machine_Bronze_AlloySmelter.get(1), "firststeam", false); registerAchievement("macerator", 0, -2, ItemList.Machine_Bronze_Macerator.get(1), "firststeam", false); @@ -207,19 +199,19 @@ public class GT_Achievements { registerAchievement("gtcleanroom", -11, -10, ItemList.Machine_Multi_Cleanroom.get(1), "gtlogiccircuit", false); registerAchievement("energyflow", -13, -10, ItemList.Circuit_Nanoprocessor.get(1), "gtcleanroom", false); registerAchievement( - "gtquantumprocessor", - -13, - -12, - ItemList.Circuit_Quantumprocessor.get(1), - "energyflow", - false); + "gtquantumprocessor", + -13, + -12, + ItemList.Circuit_Quantumprocessor.get(1), + "energyflow", + false); registerAchievement( - "gtcrystalprocessor", - -11, - -12, - ItemList.Circuit_Crystalprocessor.get(1), - "gtquantumprocessor", - false); + "gtcrystalprocessor", + -11, + -12, + ItemList.Circuit_Crystalprocessor.get(1), + "gtquantumprocessor", + false); registerAchievement("gtwetware", -9, -12, ItemList.Circuit_Neuroprocessor.get(1), "gtcrystalprocessor", false); registerAchievement("gtwetmain", -7, -12, ItemList.Circuit_Wetwaremainframe.get(1), "gtwetware", false); @@ -232,36 +224,36 @@ public class GT_Achievements { registerAchievement("luck", 2, -6, ItemList.ZPM.get(1), "", false); registerAchievement( - "steel", - 4, - 0, - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 1L), - "bronze", - false); + "steel", + 4, + 0, + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 1L), + "bronze", + false); registerAchievement("highpressure", 4, 2, ItemList.Machine_Steel_Boiler.get(1), "steel", false); registerAchievement( - "extremepressure", - 4, - 4, - ItemList.Machine_Multi_LargeBoiler_Steel.get(1), - "highpressure", - false); + "extremepressure", + 4, + 4, + ItemList.Machine_Multi_LargeBoiler_Steel.get(1), + "highpressure", + false); registerAchievement("cheapermac", 6, 1, ItemList.Machine_LV_Hammer.get(1), "steel", false); registerAchievement( - "complexalloys", - 6, - 3, - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.BlueSteel, 1L), - "cheapermac", - false); + "complexalloys", + 6, + 3, + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.BlueSteel, 1L), + "cheapermac", + false); registerAchievement( - "magneticiron", - 4, - -2, - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.IronMagnetic, 1L), - "steel", - false); + "magneticiron", + 4, + -2, + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.IronMagnetic, 1L), + "steel", + false); registerAchievement("lvmotor", 4, -6, ItemList.Electric_Motor_LV.get(1), "magneticiron", false); registerAchievement("pumpcover", 2, -8, ItemList.Electric_Pump_LV.get(1), "lvmotor", false); registerAchievement("closeit", 2, -10, ItemList.Cover_Shutter.get(1), "pumpcover", false); @@ -281,12 +273,12 @@ public class GT_Achievements { registerAchievement("energyhatch", 12, -6, ItemList.Hatch_Energy_LV.get(1), "ebf", false); registerAchievement( - "gtaluminium", - 8, - 0, - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Aluminium, 1L), - "steel", - false); + "gtaluminium", + 8, + 0, + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Aluminium, 1L), + "steel", + false); registerAchievement("highpowersmelt", 8, 2, ItemList.Machine_Multi_Furnace.get(1), "gtaluminium", false); registerAchievement("oilplant", 8, 4, ItemList.Distillation_Tower.get(1), "highpowersmelt", false); registerAchievement("factory", 8, 6, ItemList.Processing_Array.get(1), "oilplant", false); @@ -295,12 +287,12 @@ public class GT_Achievements { registerAchievement("upgrade", 10, 0, ItemList.Casing_Coil_Kanthal.get(1), "gtaluminium", false); registerAchievement( - "titan", - 14, - 0, - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Titanium, 1L), - "upgrade", - false); + "titan", + 14, + 0, + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Titanium, 1L), + "upgrade", + false); registerAchievement("magic", 14, 3, ItemList.MagicEnergyConverter_LV.get(1), "titan", false); registerAchievement("highmage", 10, 3, ItemList.MagicEnergyAbsorber_HV.get(1), "magic", false); registerAchievement("artificaldia", 12, 2, ItemList.IC2_Industrial_Diamond.get(1), "titan", false); @@ -309,19 +301,19 @@ public class GT_Achievements { registerAchievement("upgrade2", 16, 0, ItemList.Casing_Coil_Nichrome.get(1), "titan", false); registerAchievement( - "tungsten", - 16, - 2, - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Tungsten, 1L), - "upgrade2", - false); + "tungsten", + 16, + 2, + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Tungsten, 1L), + "upgrade2", + false); registerAchievement( - "osmium", - 16, - -2, - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Osmium, 1L), - "upgrade2", - false); + "osmium", + 16, + -2, + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Osmium, 1L), + "upgrade2", + false); registerAchievement("hightech", 15, -3, ItemList.Field_Generator_LV.get(1), "osmium", false); registerAchievement("amplifier", 16, -5, ItemList.Machine_LV_Amplifab.get(1), "hightech", false); registerAchievement("scanning", 13, -3, ItemList.Machine_HV_Scanner.get(1), "hightech", false); @@ -330,28 +322,28 @@ public class GT_Achievements { registerAchievement("replication", 17, -6, ItemList.Machine_LV_Replicator.get(1), "universal", false); registerAchievement( - "tungstensteel", - 16, - 4, - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.TungstenSteel, 1L), - "tungsten", - false); + "tungstensteel", + 16, + 4, + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.TungstenSteel, 1L), + "tungsten", + false); registerAchievement("upgrade3", 15, 5, ItemList.Casing_Coil_TungstenSteel.get(1), "tungstensteel", false); registerAchievement( - "hssg", - 13, - 5, - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.HSSG, 1L), - "upgrade3", - false); + "hssg", + 13, + 5, + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.HSSG, 1L), + "upgrade3", + false); registerAchievement("upgrade4", 11, 5, ItemList.Casing_Coil_HSSG.get(1), "hssg", false); registerAchievement( - "stargatematerial", - 11, - 7, - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Naquadah, 1L), - "upgrade4", - false); + "stargatematerial", + 11, + 7, + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Naquadah, 1L), + "upgrade4", + false); registerAchievement("conducting", 14, 6, ItemList.Casing_Coil_Superconductor.get(1), "upgrade3", false); registerAchievement("fusion", 15, 7, ItemList.FusionComputer_LuV.get(1), "tungstensteel", false); registerAchievement("higherefficency", 15, 9, ItemList.Generator_Plasma_IV.get(1), "fusion", false); @@ -362,20 +354,20 @@ public class GT_Achievements { registerAchievement("fullefficiency", 12, 10, ItemList.Generator_Plasma_ZPMV.get(1), "tothelimit", false); registerAchievement("upgrade5", 9, 9, ItemList.Casing_Coil_Naquadah.get(1), "stargateliquid", false); registerAchievement( - "alienmetallurgy", - 9, - 7, - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.NaquadahAlloy, 1L), - "upgrade5", - false); + "alienmetallurgy", + 9, + 7, + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.NaquadahAlloy, 1L), + "upgrade5", + false); registerAchievement("over9000", 7, 7, ItemList.Casing_Coil_NaquadahAlloy.get(1), "alienmetallurgy", false); registerAchievement( - "finalpreparations", - 7, - 9, - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Naquadria, 1L), - "over9000", - false); + "finalpreparations", + 7, + 9, + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Naquadria, 1L), + "over9000", + false); registerAchievement("denseaspossible", 6, 10, ItemList.FusionComputer_UV.get(1), "finalpreparations", false); if (GregTech_API.sOPStuff.get(ConfigCategories.Recipes.gregtechrecipes, "EnableZPMandUVBatteries", false)) { registerAchievement("zpmage", 8, 10, ItemList.Energy_Module.get(1), "denseaspossible", false); @@ -387,22 +379,22 @@ public class GT_Achievements { if (GT_Mod.gregtechproxy.mAchievements) { AchievementPage.registerAchievementPage( - new AchievementPage( - "GregTech 5", - this.achievementList.values() - .toArray(new Achievement[0]))); + new AchievementPage( + "GregTech 5", + this.achievementList.values() + .toArray(new Achievement[0]))); MinecraftForge.EVENT_BUS.register(this); FMLCommonHandler.instance() - .bus() - .register(this); + .bus() + .register(this); } } public static void registerOre(Materials aMaterial, int min, int max, int chance, boolean overworld, boolean nether, - boolean end) {} + boolean end) {} public Achievement registerAchievement(String textId, int x, int y, ItemStack icon, Achievement requirement, - boolean special) { + boolean special) { if (!GT_Mod.gregtechproxy.mAchievements) { return null; } @@ -420,17 +412,17 @@ public class GT_Achievements { } public Achievement registerAchievement(String textId, int x, int y, ItemStack icon, String requirement, - boolean special) { + boolean special) { if (!GT_Mod.gregtechproxy.mAchievements) { return null; } Achievement achievement = new Achievement( - textId, - textId, - this.adjX + x, - this.adjY + y, - icon, - getAchievement(requirement)); + textId, + textId, + this.adjX + x, + this.adjY + y, + icon, + getAchievement(requirement)); if (special) { achievement.setSpecial(); } @@ -453,24 +445,23 @@ public class GT_Achievements { return null; } if (recipe.getOutput(0) == null) { - GT_Mod.GT_FML_LOGGER.error( - "Invalid achievement registration attempt for recipe with null output", - new Exception()); + GT_Mod.GT_FML_LOGGER + .error("Invalid achievement registration attempt for recipe with null output", new Exception()); return null; } if (this.achievementList.get( - recipe.getOutput(0) - .getUnlocalizedName()) - == null) { + recipe.getOutput(0) + .getUnlocalizedName()) + == null) { assReg++; return registerAchievement( - recipe.getOutput(0) - .getUnlocalizedName(), - -(11 + assReg % 5), - ((assReg) / 5) - 8, - recipe.getOutput(0), - AchievementList.openInventory, - false); + recipe.getOutput(0) + .getUnlocalizedName(), + -(11 + assReg % 5), + ((assReg) / 5) - 8, + recipe.getOutput(0), + AchievementList.openInventory, + false); } return null; } @@ -519,7 +510,7 @@ public class GT_Achievements { } } if (stack.getUnlocalizedName() - .equals("ic2.itemPartIndustrialDiamond")) { + .equals("ic2.itemPartIndustrialDiamond")) { issueAchievement(player, "artificaldia"); issueAchievement(player, "buildCoalDiamond"); } @@ -530,7 +521,7 @@ public class GT_Achievements { return; } switch (fluid.getFluid() - .getUnlocalizedName()) { + .getUnlocalizedName()) { case "fluid.plasma.helium" -> issueAchievement(player, "fusion"); case "fluid.molten.europium" -> issueAchievement(player, "advancing"); case "fluid.molten.naquadah" -> issueAchievement(player, "stargateliquid"); @@ -554,7 +545,7 @@ public class GT_Achievements { } } if (stack.getUnlocalizedName() - .startsWith("gt.metaitem.")) { + .startsWith("gt.metaitem.")) { switch (stack.getUnlocalizedName()) { case "gt.metaitem.01.2300" -> issueAchievement(player, "bronze"); case "gt.metaitem.01.32700" -> issueAchievement(player, "smallparts"); @@ -570,276 +561,261 @@ public class GT_Achievements { case "gt.metaitem.01.32670" -> issueAchievement(player, "hightech"); } } else if (stack.getUnlocalizedName() - .equals("ic2.blockCrop")) { - issueAchievement(player, "crops"); - } else - if (stack.getUnlocalizedName() - .equals("ic2.itemPartCircuit")) { - issueAchievement(player, "gtbasiccircuit"); - } else - if (stack.getUnlocalizedName() - .equals("ic2.itemPartCircuitAdv")) { - issueAchievement(player, "stepforward"); - } else - if (stack.getUnlocalizedName() - .startsWith("gt.blockmachines.")) { - if (stack.getUnlocalizedName() - .startsWith("gt.blockmachines.basicmachine.arcfurnace.tier.")) { - issueAchievement(player, "recycling"); - } else if (stack.getUnlocalizedName() - .startsWith("gt.blockmachines.basicmachine.disassembler.tier.")) { - issueAchievement(player, "repair"); - } else - if (stack.getUnlocalizedName() - .equals("gt.blockmachines.boiler.solar")) { - issueAchievement(player, "simplyeco"); - } else - if (stack.getUnlocalizedName() - .equals("gt.blockmachines.boiler.bronze")) { - issueAchievement(player, "firststeam"); - } else - if (stack.getUnlocalizedName() - .equals("gt.blockmachines.boiler.steel")) { - issueAchievement(player, "highpressure"); - } else - if (stack.getUnlocalizedName() - .equals("gt.blockmachines.bronzemachine.macerator")) { - issueAchievement(player, "macerator"); - issueAchievement(player, "buildMacerator"); - } else - if (stack.getUnlocalizedName() - .equals("gt.blockmachines.bronzemachine.alloysmelter")) { - issueAchievement(player, "alloysmelter"); - issueAchievement(player, "buildElecFurnace"); - if (stack.getUnlocalizedName() - .equals( - "gt.blockmachines.bronzemachine.alloysmelter.tier.3")) { - issueAchievement(player, "buildIndFurnace"); - } - } else - if (stack.getUnlocalizedName() - .equals("gt.blockmachines.bronzemachine.extractor")) { - issueAchievement(player, "extract"); - issueAchievement(player, "buildCompressor"); - issueAchievement(player, "buildExtractor"); - } else - if (stack.getUnlocalizedName() - .startsWith( - "gt.blockmachines.automation.superbuffer.tier.")) { - issueAchievement( - player, - "superbuffer"); - } else - if (stack.getUnlocalizedName() - .startsWith( - "gt.blockmachines.quantum.tank.tier.")) { - issueAchievement( - player, - "whereistheocean"); - } else - if (stack.getUnlocalizedName() - .startsWith( - "gt.blockmachines.quantum.chest.tier.")) { - issueAchievement( - player, - "newstorage"); - } else - if (stack.getUnlocalizedName() - .startsWith( - "gt.blockmachines.basicmachine.hammer.tier.")) { - issueAchievement( - player, - "cheapermac"); - } else - if (stack.getUnlocalizedName() - .startsWith( - "gt.blockmachines.automation.chestbuffer.tier.")) { - issueAchievement( - player, - "buffer"); - issueAchievement( - player, - "buildBatBox"); - if (stack.getUnlocalizedName() - .startsWith( - "gt.blockmachines.automation.chestbuffer.tier.3")) { - issueAchievement( - player, - "buildMFE"); - } - } else - if (stack.getUnlocalizedName() - .startsWith( - "gt.blockmachines.basicgenerator.steamturbine.tier.")) { - issueAchievement( - player, - "steampower"); - issueAchievement( - player, - "buildGenerator"); - } else - if (stack.getUnlocalizedName() - .equals( - "gt.blockmachines.basicmachine.pump.tier.03")) { - issueAchievement( - player, - "slurp"); - } else - if (stack.getUnlocalizedName() - .startsWith( - "gt.blockmachines.basicmachine.assembler.tier.")) { - issueAchievement( - player, - "avengers"); - } else - if (stack.getUnlocalizedName() - .equals( - "gt.blockmachines.multimachine.blastfurnace")) { - issueAchievement( - player, - "ebf"); - } else - if (stack.getUnlocalizedName() - .startsWith( - "gt.blockmachines.batterybuffer.")) { - issueAchievement( - player, - "batterys"); - } else - if (stack.getUnlocalizedName() - .equals( - "gt.blockmachines.hatch.energy.tier.02")) { - issueAchievement( - player, - "upgradeebf"); - } else - if (stack.getUnlocalizedName() - .equals( - "gt.blockmachines.multimachine.multifurnace")) { - issueAchievement( - player, - "highpowersmelt"); - } else - if (stack.getUnlocalizedName() - .equals( - "gt.blockmachines.hatch.energy.tier.01")) { - issueAchievement( - player, - "energyhatch"); - } else - if (stack.getUnlocalizedName() - .equals( - "gt.blockmachines.multimachine.processingarray")) { - issueAchievement( - player, - "factory"); - } else - if (stack.getUnlocalizedName() - .equals( - "gt.blockmachines.basicgenerator.magicenergyconverter.tier.01")) { - issueAchievement( - player, - "magic"); - } else - if (stack.getUnlocalizedName() - .equals( - "gt.blockmachines.basicgenerator.magicenergyabsorber.tier.03")) { - issueAchievement( - player, - "highmage"); - } else - if (stack.getUnlocalizedName() - .startsWith( - "gt.blockmachines.basicmachine.amplifab.tier.")) { - issueAchievement( - player, - "amplifier"); - } else - if (stack.getUnlocalizedName() - .startsWith( - "gt.blockmachines.basicmachine.massfab.tier.")) { - issueAchievement( - player, - "universal"); - issueAchievement( - player, - "buildMassFab"); - } else - if (stack.getUnlocalizedName() - .startsWith( - "gt.blockmachines.basicgenerator.naquadah.tier.")) { - issueAchievement( - player, - "alienpower"); - } else - if (stack.getUnlocalizedName() - .startsWith( - "gt.blockmachines.basicmachine.replicator.tier.")) { - issueAchievement( - player, - "replication"); - } else - if (stack.getUnlocalizedName() - .equals( - "gt.blockmachines.basicgenerator.plasmagenerator.tier.07")) { - issueAchievement( - player, - "fullefficiency"); - } else - if (stack.getUnlocalizedName() - .equals( - "gt.blockmachines.multimachine.largeturbine")) { - issueAchievement( - player, - "muchsteam"); - } else - if (stack.getUnlocalizedName() - .equals( - "gt.blockmachines.multimachine.largehpturbine")) { - issueAchievement( - player, - "efficientsteam"); - } else - if (stack.getUnlocalizedName() - .equals( - "gt.blockmachines.multimachine.cleanroom")) { - issueAchievement( - player, - "gtcleanroom"); - } - } else - if (stack.getUnlocalizedName() - .equals("gt.neutronreflector")) { - issueAchievement(player, "reflect"); - } else + .equals("ic2.blockCrop")) { + issueAchievement(player, "crops"); + } else if (stack.getUnlocalizedName() + .equals("ic2.itemPartCircuit")) { + issueAchievement(player, "gtbasiccircuit"); + } else if (stack.getUnlocalizedName() + .equals("ic2.itemPartCircuitAdv")) { + issueAchievement(player, "stepforward"); + } else if (stack.getUnlocalizedName() + .startsWith("gt.blockmachines.")) { if (stack.getUnlocalizedName() - .equals("gt.blockcasings5.1")) { - issueAchievement(player, "upgrade"); - } else - if (stack.getUnlocalizedName() - .equals("gt.blockcasings5.2")) { - issueAchievement(player, "upgrade2"); - } else - if (stack.getUnlocalizedName() - .equals("gt.blockcasings5.3")) { - issueAchievement(player, "upgrade3"); - } else - if (stack.getUnlocalizedName() - .equals("gt.blockcasings5.4")) { - issueAchievement(player, "upgrade4"); - } else - if (stack.getUnlocalizedName() - .equals("gt.blockcasings5.5")) { - issueAchievement(player, "upgrade5"); - } else - if (stack.getUnlocalizedName() - .equals("gt.blockcasings5.6")) { - issueAchievement(player, "over9000"); - } else - if (stack.getUnlocalizedName() - .equals("gt.blockcasings.15")) { - issueAchievement(player, "conducting"); - } + .startsWith("gt.blockmachines.basicmachine.arcfurnace.tier.")) { + issueAchievement(player, "recycling"); + } else if (stack.getUnlocalizedName() + .startsWith("gt.blockmachines.basicmachine.disassembler.tier.")) { + issueAchievement(player, "repair"); + } else if (stack.getUnlocalizedName() + .equals("gt.blockmachines.boiler.solar")) { + issueAchievement(player, "simplyeco"); + } else if (stack.getUnlocalizedName() + .equals("gt.blockmachines.boiler.bronze")) { + issueAchievement(player, "firststeam"); + } else if (stack.getUnlocalizedName() + .equals("gt.blockmachines.boiler.steel")) { + issueAchievement(player, "highpressure"); + } else if (stack.getUnlocalizedName() + .equals("gt.blockmachines.bronzemachine.macerator")) { + issueAchievement(player, "macerator"); + issueAchievement(player, "buildMacerator"); + } else if (stack.getUnlocalizedName() + .equals("gt.blockmachines.bronzemachine.alloysmelter")) { + issueAchievement(player, "alloysmelter"); + issueAchievement(player, "buildElecFurnace"); + if (stack.getUnlocalizedName() + .equals( + "gt.blockmachines.bronzemachine.alloysmelter.tier.3")) { + issueAchievement(player, "buildIndFurnace"); + } + } else if (stack.getUnlocalizedName() + .equals("gt.blockmachines.bronzemachine.extractor")) { + issueAchievement(player, "extract"); + issueAchievement(player, "buildCompressor"); + issueAchievement(player, "buildExtractor"); + } else if (stack.getUnlocalizedName() + .startsWith( + "gt.blockmachines.automation.superbuffer.tier.")) { + issueAchievement(player, "superbuffer"); + } else + if (stack.getUnlocalizedName() + .startsWith("gt.blockmachines.quantum.tank.tier.")) { + issueAchievement(player, "whereistheocean"); + } else if (stack.getUnlocalizedName() + .startsWith( + "gt.blockmachines.quantum.chest.tier.")) { + issueAchievement(player, "newstorage"); + } else + if (stack.getUnlocalizedName() + .startsWith( + "gt.blockmachines.basicmachine.hammer.tier.")) { + issueAchievement(player, "cheapermac"); + } else + if (stack.getUnlocalizedName() + .startsWith( + "gt.blockmachines.automation.chestbuffer.tier.")) { + issueAchievement(player, "buffer"); + issueAchievement( + player, + "buildBatBox"); + if (stack.getUnlocalizedName() + .startsWith( + "gt.blockmachines.automation.chestbuffer.tier.3")) { + issueAchievement( + player, + "buildMFE"); + } + } else + if (stack.getUnlocalizedName() + .startsWith( + "gt.blockmachines.basicgenerator.steamturbine.tier.")) { + issueAchievement( + player, + "steampower"); + issueAchievement( + player, + "buildGenerator"); + } else + if (stack.getUnlocalizedName() + .equals( + "gt.blockmachines.basicmachine.pump.tier.03")) { + issueAchievement( + player, + "slurp"); + } else + if (stack.getUnlocalizedName() + .startsWith( + "gt.blockmachines.basicmachine.assembler.tier.")) { + issueAchievement( + player, + "avengers"); + } else + if (stack.getUnlocalizedName() + .equals( + "gt.blockmachines.multimachine.blastfurnace")) { + issueAchievement( + player, + "ebf"); + } else + if (stack + .getUnlocalizedName() + .startsWith( + "gt.blockmachines.batterybuffer.")) { + issueAchievement( + player, + "batterys"); + } else + if (stack + .getUnlocalizedName() + .equals( + "gt.blockmachines.hatch.energy.tier.02")) { + issueAchievement( + player, + "upgradeebf"); + } else + if (stack + .getUnlocalizedName() + .equals( + "gt.blockmachines.multimachine.multifurnace")) { + issueAchievement( + player, + "highpowersmelt"); + } else + if (stack + .getUnlocalizedName() + .equals( + "gt.blockmachines.hatch.energy.tier.01")) { + issueAchievement( + player, + "energyhatch"); + } else + if (stack + .getUnlocalizedName() + .equals( + "gt.blockmachines.multimachine.processingarray")) { + issueAchievement( + player, + "factory"); + } else + if (stack + .getUnlocalizedName() + .equals( + "gt.blockmachines.basicgenerator.magicenergyconverter.tier.01")) { + issueAchievement( + player, + "magic"); + } else + if (stack + .getUnlocalizedName() + .equals( + "gt.blockmachines.basicgenerator.magicenergyabsorber.tier.03")) { + issueAchievement( + player, + "highmage"); + } else + if (stack + .getUnlocalizedName() + .startsWith( + "gt.blockmachines.basicmachine.amplifab.tier.")) { + issueAchievement( + player, + "amplifier"); + } else + if (stack + .getUnlocalizedName() + .startsWith( + "gt.blockmachines.basicmachine.massfab.tier.")) { + issueAchievement( + player, + "universal"); + issueAchievement( + player, + "buildMassFab"); + } else + if (stack + .getUnlocalizedName() + .startsWith( + "gt.blockmachines.basicgenerator.naquadah.tier.")) { + issueAchievement( + player, + "alienpower"); + } else + if (stack + .getUnlocalizedName() + .startsWith( + "gt.blockmachines.basicmachine.replicator.tier.")) { + issueAchievement( + player, + "replication"); + } else + if (stack + .getUnlocalizedName() + .equals( + "gt.blockmachines.basicgenerator.plasmagenerator.tier.07")) { + issueAchievement( + player, + "fullefficiency"); + } else + if (stack + .getUnlocalizedName() + .equals( + "gt.blockmachines.multimachine.largeturbine")) { + issueAchievement( + player, + "muchsteam"); + } else + if (stack + .getUnlocalizedName() + .equals( + "gt.blockmachines.multimachine.largehpturbine")) { + issueAchievement( + player, + "efficientsteam"); + } else + if (stack + .getUnlocalizedName() + .equals( + "gt.blockmachines.multimachine.cleanroom")) { + issueAchievement( + player, + "gtcleanroom"); + } + } else if (stack.getUnlocalizedName() + .equals("gt.neutronreflector")) { + issueAchievement(player, "reflect"); + } else if (stack.getUnlocalizedName() + .equals("gt.blockcasings5.1")) { + issueAchievement(player, "upgrade"); + } else if (stack.getUnlocalizedName() + .equals("gt.blockcasings5.2")) { + issueAchievement(player, "upgrade2"); + } else if (stack.getUnlocalizedName() + .equals("gt.blockcasings5.3")) { + issueAchievement(player, "upgrade3"); + } else if (stack.getUnlocalizedName() + .equals("gt.blockcasings5.4")) { + issueAchievement(player, "upgrade4"); + } else if (stack.getUnlocalizedName() + .equals("gt.blockcasings5.5")) { + issueAchievement(player, "upgrade5"); + } else if (stack.getUnlocalizedName() + .equals("gt.blockcasings5.6")) { + issueAchievement(player, "over9000"); + } else if (stack.getUnlocalizedName() + .equals("gt.blockcasings.15")) { + issueAchievement(player, "conducting"); + } } @SubscribeEvent @@ -871,27 +847,26 @@ public class GT_Achievements { issueAchievement(player, "cleandust"); } } else if (data.mPrefix.name() - .startsWith("ore")) { - int data_getAllMaterialStacks_sS = data.getAllMaterialStacks() - .size(); - for (int i = 0; i < data_getAllMaterialStacks_sS; i++) { - issueAchievement( - player, - data.getAllMaterialStacks() - .get(i).mMaterial.mName); - if (data.getAllMaterialStacks() - .get(i).mMaterial == Materials.AnyIron) { - issueAchievement(player, "iron"); - } - if (data.getAllMaterialStacks() - .get(i).mMaterial == Materials.Copper - || data.getAllMaterialStacks() - .get(i).mMaterial == Materials.Tin) { - issueAchievement(event.entityPlayer, "mineOre"); - } - } - } else - if (data.mPrefix == OrePrefixes.crushed) { + .startsWith("ore")) { + int data_getAllMaterialStacks_sS = data.getAllMaterialStacks() + .size(); + for (int i = 0; i < data_getAllMaterialStacks_sS; i++) { + issueAchievement( + player, + data.getAllMaterialStacks() + .get(i).mMaterial.mName); + if (data.getAllMaterialStacks() + .get(i).mMaterial == Materials.AnyIron) { + issueAchievement(player, "iron"); + } + if (data.getAllMaterialStacks() + .get(i).mMaterial == Materials.Copper + || data.getAllMaterialStacks() + .get(i).mMaterial == Materials.Tin) { + issueAchievement(event.entityPlayer, "mineOre"); + } + } + } else if (data.mPrefix == OrePrefixes.crushed) { issueAchievement(player, "crushed"); } else if (data.mPrefix == OrePrefixes.crushedPurified) { issueAchievement(player, "washing"); @@ -901,9 +876,9 @@ public class GT_Achievements { if (data.mPrefix == OrePrefixes.ingot && stack.stackSize == stack.getMaxStackSize()) { issueAchievement(player, "steel"); } else if (data.mPrefix == OrePrefixes.nugget && Thaumcraft.isModLoaded() - && ThaumcraftApiHelper.isResearchComplete(player.getDisplayName(), "GT_IRON_TO_STEEL")) { - issueAchievement(player, "steel"); - } + && ThaumcraftApiHelper.isResearchComplete(player.getDisplayName(), "GT_IRON_TO_STEEL")) { + issueAchievement(player, "steel"); + } // } else if (data.mPrefix == OrePrefixes.circuit && data.mMaterial.mMaterial == // Materials.Advanced) { // issueAchievement(player, "stepforward"); @@ -911,7 +886,7 @@ public class GT_Achievements { } // GT_FML_LOGGER.info(stack.getUnlocalizedName()); if (stack.getUnlocalizedName() - .startsWith("gt.metaitem.")) { + .startsWith("gt.metaitem.")) { switch (stack.getUnlocalizedName()) { case "gt.metaitem.02.32500" -> issueAchievement(player, "havestlead"); case "gt.metaitem.02.32501" -> issueAchievement(player, "havestsilver"); @@ -942,71 +917,62 @@ public class GT_Achievements { case "gt.metaitem.03.32095" -> issueAchievement(player, "gtwetmain"); } } else if (stack.getUnlocalizedName() - .equals("gt.Thoriumcell")) { - issueAchievement(player, "newfuel"); - } else - if ((stack.getItem() == Ic2Items.quantumBodyarmor.getItem()) - || (stack.getItem() == Ic2Items.quantumBoots.getItem()) - || (stack.getItem() == Ic2Items.quantumHelmet.getItem()) - || (stack.getItem() == Ic2Items.quantumLeggings.getItem())) { - issueAchievement(player, "buildQArmor"); - } else - if (stack.getUnlocalizedName() - .equals("ic2.itemPartCircuitAdv")) { - issueAchievement(player, "stepforward"); - } else - if (stack.getUnlocalizedName() - .equals("gt.blockcasings5.1")) { - issueAchievement(player, "upgrade"); - } else - if (stack.getUnlocalizedName() - .equals("gt.blockcasings5.2")) { - issueAchievement(player, "upgrade2"); - } else - if (stack.getUnlocalizedName() - .equals("gt.blockcasings5.3")) { - issueAchievement(player, "upgrade3"); - } else - if (stack.getUnlocalizedName() - .equals("gt.blockcasings5.4")) { - issueAchievement(player, "upgrade4"); - } else - if (stack.getUnlocalizedName() - .equals("gt.blockcasings5.5")) { - issueAchievement(player, "upgrade5"); - } else - if (stack.getUnlocalizedName() - .equals("gt.blockcasings5.6")) { - issueAchievement(player, "over9000"); - } else - if (stack.getUnlocalizedName() - .equals("gt.blockcasings.15")) { - issueAchievement(player, "conducting"); - } + .equals("gt.Thoriumcell")) { + issueAchievement(player, "newfuel"); + } else if ((stack.getItem() == Ic2Items.quantumBodyarmor.getItem()) + || (stack.getItem() == Ic2Items.quantumBoots.getItem()) + || (stack.getItem() == Ic2Items.quantumHelmet.getItem()) + || (stack.getItem() == Ic2Items.quantumLeggings.getItem())) { + issueAchievement(player, "buildQArmor"); + } else if (stack.getUnlocalizedName() + .equals("ic2.itemPartCircuitAdv")) { + issueAchievement(player, "stepforward"); + } else if (stack.getUnlocalizedName() + .equals("gt.blockcasings5.1")) { + issueAchievement(player, "upgrade"); + } else if (stack.getUnlocalizedName() + .equals("gt.blockcasings5.2")) { + issueAchievement(player, "upgrade2"); + } else if (stack.getUnlocalizedName() + .equals("gt.blockcasings5.3")) { + issueAchievement(player, "upgrade3"); + } else if (stack.getUnlocalizedName() + .equals("gt.blockcasings5.4")) { + issueAchievement(player, "upgrade4"); + } else if (stack.getUnlocalizedName() + .equals("gt.blockcasings5.5")) { + issueAchievement(player, "upgrade5"); + } else if (stack.getUnlocalizedName() + .equals("gt.blockcasings5.6")) { + issueAchievement(player, "over9000"); + } else if (stack.getUnlocalizedName() + .equals("gt.blockcasings.15")) { + issueAchievement(player, "conducting"); + } if (player.capabilities.isCreativeMode && stack.getUnlocalizedName() - .equals("gt.metaitem.01.32761")) { // Debug - // Scanner - // pickup - // shows - // all - // assline - // recipes. + .equals("gt.metaitem.01.32761")) { // Debug + // Scanner + // pickup + // shows + // all + // assline + // recipes. for (GT_Recipe recipe : GT_Recipe.GT_Recipe_Map.sAssemblylineVisualRecipes.mRecipeList) { issueAchievement( - player, - recipe.getOutput(0) - .getUnlocalizedName()); + player, + recipe.getOutput(0) + .getUnlocalizedName()); recipe.mHidden = false; } } for (GT_Recipe recipe : GT_Recipe.GT_Recipe_Map.sAssemblylineVisualRecipes.mRecipeList) { if (recipe.getOutput(0) - .getUnlocalizedName() - .equals(stack.getUnlocalizedName())) { + .getUnlocalizedName() + .equals(stack.getUnlocalizedName())) { issueAchievement( - player, - recipe.getOutput(0) - .getUnlocalizedName()); + player, + recipe.getOutput(0) + .getUnlocalizedName()); recipe.mHidden = false; } } diff --git a/src/main/java/gregtech/loaders/misc/GT_BeeDefinition.java b/src/main/java/gregtech/loaders/misc/GT_BeeDefinition.java index 614c730ede..04735b5c87 100644 --- a/src/main/java/gregtech/loaders/misc/GT_BeeDefinition.java +++ b/src/main/java/gregtech/loaders/misc/GT_BeeDefinition.java @@ -72,10 +72,8 @@ public enum GT_BeeDefinition implements IBeeDefinition { AlleleHelper.instance.set(template, HUMIDITY_TOLERANCE, Tolerance.NONE); AlleleHelper.instance.set(template, FLOWER_PROVIDER, Flowers.VANILLA); }, dis -> { - IBeeMutationCustom tMutation = dis.registerMutation( - getSpecies(FORESTRY, "Industrious"), - getSpecies(FORESTRY, "Diligent"), - 10); + IBeeMutationCustom tMutation = dis + .registerMutation(getSpecies(FORESTRY, "Industrious"), getSpecies(FORESTRY, "Diligent"), 10); tMutation.requireResource(Blocks.clay, 0); // blockStainedHardenedClay }), SLIMEBALL(GT_BranchDefinition.ORGANIC, "SlimeBall", true, new Color(0x4E9E55), new Color(0x00FF15), beeSpecies -> { @@ -114,19 +112,19 @@ public enum GT_BeeDefinition implements IBeeDefinition { AlleleHelper.instance.set(template, HUMIDITY_TOLERANCE, Tolerance.NONE); }, dis -> dis.registerMutation(getSpecies(FORESTRY, "Rural"), CLAY, 10)), STICKYRESIN(GT_BranchDefinition.ORGANIC, "StickyResin", true, new Color(0x2E8F5B), new Color(0xDCC289), - beeSpecies -> { - beeSpecies.addProduct(GT_ModHandler.getModItem(Forestry.ID, "beeCombs", 1, 0), 0.30f); - beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.STICKY), 0.15f); - beeSpecies.addSpecialty(ItemList.IC2_Resin.get(1), 0.15f); - beeSpecies.setHumidity(EnumHumidity.NORMAL); - beeSpecies.setTemperature(EnumTemperature.NORMAL); - }, template -> { - AlleleHelper.instance.set(template, FLOWERING, Flowering.SLOWER); - AlleleHelper.instance.set(template, HUMIDITY_TOLERANCE, Tolerance.NONE); - }, dis -> { - IBeeMutationCustom tMutation = dis.registerMutation(SLIMEBALL, PEAT, 15); - tMutation.requireResource("logRubber"); - }), + beeSpecies -> { + beeSpecies.addProduct(GT_ModHandler.getModItem(Forestry.ID, "beeCombs", 1, 0), 0.30f); + beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.STICKY), 0.15f); + beeSpecies.addSpecialty(ItemList.IC2_Resin.get(1), 0.15f); + beeSpecies.setHumidity(EnumHumidity.NORMAL); + beeSpecies.setTemperature(EnumTemperature.NORMAL); + }, template -> { + AlleleHelper.instance.set(template, FLOWERING, Flowering.SLOWER); + AlleleHelper.instance.set(template, HUMIDITY_TOLERANCE, Tolerance.NONE); + }, dis -> { + IBeeMutationCustom tMutation = dis.registerMutation(SLIMEBALL, PEAT, 15); + tMutation.requireResource("logRubber"); + }), COAL(GT_BranchDefinition.ORGANIC, "Coal", true, new Color(0x666666), new Color(0x525252), beeSpecies -> { beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.LIGNIE), 0.30f); beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.COAL), 0.15f); @@ -209,43 +207,43 @@ public enum GT_BeeDefinition implements IBeeDefinition { tMutation.requireResource("blockApatite"); }), FERTILIZER(GT_BranchDefinition.ORGANIC, "Fertilizer", true, new Color(0x7fcef5), new Color(0x654525), - beeSpecies -> { - beeSpecies.addProduct(GT_ModHandler.getModItem(ExtraBees.ID, "honeyComb", 1, 9), 0.15f); - beeSpecies.addSpecialty(GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Ash, 1), 0.2f); - beeSpecies.addSpecialty(GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 1), 0.2f); - beeSpecies.addSpecialty(ItemList.FR_Fertilizer.get(1), 0.3f); - beeSpecies.addSpecialty(ItemList.IC2_Fertilizer.get(1), 0.3f); - beeSpecies.setHumidity(DAMP); - beeSpecies.setTemperature(WARM); - }, template -> { - AlleleHelper.instance.set(template, SPEED, Speed.FASTEST); - AlleleHelper.instance.set(template, LIFESPAN, Lifespan.LONGER); - AlleleHelper.instance.set(template, FLOWER_PROVIDER, Flowers.WHEAT); - AlleleHelper.instance.set(template, FLOWERING, Flowering.FASTER); - }, dis -> dis.registerMutation(ASH, APATITE, 8)), + beeSpecies -> { + beeSpecies.addProduct(GT_ModHandler.getModItem(ExtraBees.ID, "honeyComb", 1, 9), 0.15f); + beeSpecies.addSpecialty(GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Ash, 1), 0.2f); + beeSpecies.addSpecialty(GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 1), 0.2f); + beeSpecies.addSpecialty(ItemList.FR_Fertilizer.get(1), 0.3f); + beeSpecies.addSpecialty(ItemList.IC2_Fertilizer.get(1), 0.3f); + beeSpecies.setHumidity(DAMP); + beeSpecies.setTemperature(WARM); + }, template -> { + AlleleHelper.instance.set(template, SPEED, Speed.FASTEST); + AlleleHelper.instance.set(template, LIFESPAN, Lifespan.LONGER); + AlleleHelper.instance.set(template, FLOWER_PROVIDER, Flowers.WHEAT); + AlleleHelper.instance.set(template, FLOWERING, Flowering.FASTER); + }, dis -> dis.registerMutation(ASH, APATITE, 8)), // Phosphorus bee, Humidity: normal, Temperature: Hot, Parents: Apatite & Ash, Mutationrate: 12%, Combrate: 55% PHOSPHORUS(GT_BranchDefinition.ORGANIC, "Phosphorus", false, new Color(0xFFC826), new Color(0xC1C1F6), - beeSpecies -> { - beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.PHOSPHORUS), 0.55f); - beeSpecies.setHumidity(EnumHumidity.NORMAL); - beeSpecies.setTemperature(HOT); - beeSpecies.setNocturnal(); - beeSpecies.setHasEffect(); - }, template -> AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORTEST), dis -> { - IBeeMutationCustom tMutation = dis.registerMutation(APATITE, ASH, 12); - tMutation.restrictTemperature(HOT); - tMutation.requireResource(GameRegistry.findBlock(GregTech.ID, "gt.blockgem2"), 8); - }), + beeSpecies -> { + beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.PHOSPHORUS), 0.55f); + beeSpecies.setHumidity(EnumHumidity.NORMAL); + beeSpecies.setTemperature(HOT); + beeSpecies.setNocturnal(); + beeSpecies.setHasEffect(); + }, template -> AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORTEST), dis -> { + IBeeMutationCustom tMutation = dis.registerMutation(APATITE, ASH, 12); + tMutation.restrictTemperature(HOT); + tMutation.requireResource(GameRegistry.findBlock(GregTech.ID, "gt.blockgem2"), 8); + }), // Tea bee, Humidity: normal, Parents: Ash and Fertilizer, Mutationrate: 10%, combrate: 10% TEA(GT_BranchDefinition.ORGANIC, "Tea", false, new Color(0x65D13A), new Color(0x9a9679), beeSpecies -> { beeSpecies.addProduct( - GT_ModHandler.getModItem(PamsHarvestCraft.ID, "tealeafItem", 1, ItemList.Crop_Drop_TeaLeaf.get(1)), - 0.10f); + GT_ModHandler.getModItem(PamsHarvestCraft.ID, "tealeafItem", 1, ItemList.Crop_Drop_TeaLeaf.get(1)), + 0.10f); beeSpecies.setHumidity(EnumHumidity.NORMAL); beeSpecies.setTemperature(NORMAL); beeSpecies.setHasEffect(); }, template -> AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORTEST), - dis -> dis.registerMutation(FERTILIZER, ASH, 10)), + dis -> dis.registerMutation(FERTILIZER, ASH, 10)), // Mica bee, Humidity: normal, Parents: Silicon & PEAT, Mutationrate: 15%, Combrate: 25% MICA(GT_BranchDefinition.ORGANIC, "Mica", false, new Color(0xFFC826), new Color(0xC1C1F6), beeSpecies -> { beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.MICA), 0.25f); @@ -266,10 +264,8 @@ public enum GT_BeeDefinition implements IBeeDefinition { beeSpecies.setHumidity(EnumHumidity.NORMAL); beeSpecies.setTemperature(EnumTemperature.NORMAL); }, template -> AlleleHelper.instance.set(template, SPEED, Speed.SLOWER), dis -> { - IBeeMutationCustom tMutation = dis.registerMutation( - getSpecies(FORESTRY, "Industrious"), - getSpecies(FORESTRY, "Demonic"), - 10); + IBeeMutationCustom tMutation = dis + .registerMutation(getSpecies(FORESTRY, "Industrious"), getSpecies(FORESTRY, "Demonic"), 10); tMutation.requireResource("blockRedstone"); }), LAPIS(GT_BranchDefinition.GEM, "Lapis", true, new Color(0x1947D1), new Color(0x476CDA), beeSpecies -> { @@ -278,10 +274,8 @@ public enum GT_BeeDefinition implements IBeeDefinition { beeSpecies.setHumidity(EnumHumidity.NORMAL); beeSpecies.setTemperature(EnumTemperature.NORMAL); }, template -> AlleleHelper.instance.set(template, SPEED, Speed.SLOWER), dis -> { - IBeeMutationCustom tMutation = dis.registerMutation( - getSpecies(FORESTRY, "Demonic"), - getSpecies(FORESTRY, "Imperial"), - 10); + IBeeMutationCustom tMutation = dis + .registerMutation(getSpecies(FORESTRY, "Demonic"), getSpecies(FORESTRY, "Imperial"), 10); tMutation.requireResource("blockLapis"); }), CERTUS(GT_BranchDefinition.GEM, "CertusQuartz", true, new Color(0x57CFFB), new Color(0xBBEEFF), beeSpecies -> { @@ -338,7 +332,7 @@ public enum GT_BeeDefinition implements IBeeDefinition { beeSpecies.setHumidity(EnumHumidity.NORMAL); beeSpecies.setTemperature(EnumTemperature.NORMAL); }, template -> AlleleHelper.instance.set(template, SPEED, Speed.SLOWER), - dis -> dis.registerMutation(CERTUS, getSpecies(FORESTRY, "Ended"), 5)), + dis -> dis.registerMutation(CERTUS, getSpecies(FORESTRY, "Ended"), 5)), EMERALD(GT_BranchDefinition.GEM, "Emerald", false, new Color(0x248F24), new Color(0x2EB82E), beeSpecies -> { beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.STONE), 0.30f); beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.EMERALD), 0.15f); @@ -365,20 +359,20 @@ public enum GT_BeeDefinition implements IBeeDefinition { tMutation.requireResource("blockGarnetRed"); }), YELLOWGARNET(GT_BranchDefinition.GEM, "YellowGarnet", false, new Color(0xA3A341), new Color(0xEDEDCE), - beeSpecies -> { - beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.STONE), 0.30f); - beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.YELLOWGARNET), 0.15f); - beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.GROSSULAR), 0.05f); - beeSpecies.setHumidity(DAMP); - beeSpecies.setTemperature(WARM); - beeSpecies.setHasEffect(); - }, template -> { - AlleleHelper.instance.set(template, SPEED, Speed.FAST); - AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORTEST); - }, dis -> { - IBeeMutationCustom tMutation = dis.registerMutation(EMERALD, REDGARNET, 3); - tMutation.requireResource("blockGarnetYellow"); - }), + beeSpecies -> { + beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.STONE), 0.30f); + beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.YELLOWGARNET), 0.15f); + beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.GROSSULAR), 0.05f); + beeSpecies.setHumidity(DAMP); + beeSpecies.setTemperature(WARM); + beeSpecies.setHasEffect(); + }, template -> { + AlleleHelper.instance.set(template, SPEED, Speed.FAST); + AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORTEST); + }, dis -> { + IBeeMutationCustom tMutation = dis.registerMutation(EMERALD, REDGARNET, 3); + tMutation.requireResource("blockGarnetYellow"); + }), FIRESTONE(GT_BranchDefinition.GEM, "Firestone", false, new Color(0xC00000), new Color(0xFF0000), beeSpecies -> { beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.STONE), 0.30f); beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.FIRESTONE), 0.15f); @@ -508,16 +502,16 @@ public enum GT_BeeDefinition implements IBeeDefinition { // Rare Metals ALUMINIUM(GT_BranchDefinition.RAREMETAL, "Aluminium", true, new Color(0xB8B8FF), new Color(0xD6D6FF), - beeSpecies -> { - beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.SLAG), 0.30f); - beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.ALUMINIUM), 0.15f); - beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.BAUXITE), 0.05f); - beeSpecies.setHumidity(ARID); - beeSpecies.setTemperature(HOT); - }, template -> AlleleHelper.instance.set(template, SPEED, Speed.SLOWER), dis -> { - IBeeMutationCustom tMutation = dis.registerMutation(NICKEL, ZINC, 9); - tMutation.requireResource("blockAluminium"); - }), + beeSpecies -> { + beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.SLAG), 0.30f); + beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.ALUMINIUM), 0.15f); + beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.BAUXITE), 0.05f); + beeSpecies.setHumidity(ARID); + beeSpecies.setTemperature(HOT); + }, template -> AlleleHelper.instance.set(template, SPEED, Speed.SLOWER), dis -> { + IBeeMutationCustom tMutation = dis.registerMutation(NICKEL, ZINC, 9); + tMutation.requireResource("blockAluminium"); + }), TITANIUM(GT_BranchDefinition.RAREMETAL, "Titanium", true, new Color(0xCC99FF), new Color(0xDBB8FF), beeSpecies -> { beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.SLAG), 0.30f); beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.TITANIUM), 0.15f); @@ -529,24 +523,24 @@ public enum GT_BeeDefinition implements IBeeDefinition { tMutation.requireResource(GregTech_API.sBlockMetal7, 9); }), GLOWSTONE(GT_BranchDefinition.RAREMETAL, "Glowstone", false, new Color(0xE5CA2A), new Color(0xFFBC5E), - beeSpecies -> { - beeSpecies.addSpecialty(Materials.Glowstone.getDust(1), 0.20f); - beeSpecies.setHumidity(EnumHumidity.NORMAL); - beeSpecies.setNocturnal(); - beeSpecies.setHasEffect(); - }, template -> AlleleHelper.instance.set(template, LIFESPAN, Lifespan.NORMAL), - dis -> dis.registerMutation(REDSTONE, GOLD, 10)), + beeSpecies -> { + beeSpecies.addSpecialty(Materials.Glowstone.getDust(1), 0.20f); + beeSpecies.setHumidity(EnumHumidity.NORMAL); + beeSpecies.setNocturnal(); + beeSpecies.setHasEffect(); + }, template -> AlleleHelper.instance.set(template, LIFESPAN, Lifespan.NORMAL), + dis -> dis.registerMutation(REDSTONE, GOLD, 10)), SUNNARIUM(GT_BranchDefinition.RAREMETAL, "Sunnarium", false, new Color(0xFFBC5E), new Color(0xE5CA2A), - beeSpecies -> { - beeSpecies.addProduct(Materials.Glowstone.getDust(1), 0.40f); - beeSpecies.addSpecialty(Materials.Sunnarium.getDust(1), 0.20f); - beeSpecies.setHumidity(EnumHumidity.NORMAL); - beeSpecies.setNocturnal(); - beeSpecies.setHasEffect(); - }, template -> AlleleHelper.instance.set(template, LIFESPAN, Lifespan.LONGEST), dis -> { - IBeeMutationCustom tMutation = dis.registerMutation(GLOWSTONE, GOLD, 5); - tMutation.requireResource(GameRegistry.findBlock(GregTech.ID, "gt.blockcasings"), 15); - }), + beeSpecies -> { + beeSpecies.addProduct(Materials.Glowstone.getDust(1), 0.40f); + beeSpecies.addSpecialty(Materials.Sunnarium.getDust(1), 0.20f); + beeSpecies.setHumidity(EnumHumidity.NORMAL); + beeSpecies.setNocturnal(); + beeSpecies.setHasEffect(); + }, template -> AlleleHelper.instance.set(template, LIFESPAN, Lifespan.LONGEST), dis -> { + IBeeMutationCustom tMutation = dis.registerMutation(GLOWSTONE, GOLD, 5); + tMutation.requireResource(GameRegistry.findBlock(GregTech.ID, "gt.blockcasings"), 15); + }), CHROME(GT_BranchDefinition.RAREMETAL, "Chrome", true, new Color(0xEBA1EB), new Color(0xF2C3F2), beeSpecies -> { beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.SLAG), 0.30f); beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.CHROME), 0.15f); @@ -558,16 +552,16 @@ public enum GT_BeeDefinition implements IBeeDefinition { tMutation.requireResource(GregTech_API.sBlockMetal2, 3); }), MANGANESE(GT_BranchDefinition.RAREMETAL, "Manganese", true, new Color(0xD5D5D5), new Color(0xAAAAAA), - beeSpecies -> { - beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.SLAG), 0.30f); - beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.MANGANESE), 0.15f); - beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.IRON), 0.05f); - beeSpecies.setHumidity(ARID); - beeSpecies.setTemperature(HOT); - }, template -> AlleleHelper.instance.set(template, SPEED, Speed.SLOWER), dis -> { - IBeeMutationCustom tMutation = dis.registerMutation(TITANIUM, ALUMINIUM, 5); - tMutation.requireResource(GregTech_API.sBlockMetal4, 6); - }), + beeSpecies -> { + beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.SLAG), 0.30f); + beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.MANGANESE), 0.15f); + beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.IRON), 0.05f); + beeSpecies.setHumidity(ARID); + beeSpecies.setTemperature(HOT); + }, template -> AlleleHelper.instance.set(template, SPEED, Speed.SLOWER), dis -> { + IBeeMutationCustom tMutation = dis.registerMutation(TITANIUM, ALUMINIUM, 5); + tMutation.requireResource(GregTech_API.sBlockMetal4, 6); + }), TUNGSTEN(GT_BranchDefinition.RAREMETAL, "Tungsten", false, new Color(0x5C5C8A), new Color(0x7D7DA1), beeSpecies -> { beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.SLAG), 0.30f); beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.TUNGSTEN), 0.15f); @@ -631,16 +625,16 @@ public enum GT_BeeDefinition implements IBeeDefinition { tMutation.requireResource("frameGtLithium"); }), ELECTROTINE(GT_BranchDefinition.RAREMETAL, "Electrotine", false, new Color(0x1E90FF), new Color(0x3CB4C8), - beeSpecies -> { - beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.SLAG), 0.30f); - beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.ELECTROTINE), 0.15f); - beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.REDSTONE), 0.05f); - beeSpecies.setHumidity(EnumHumidity.NORMAL); - beeSpecies.setTemperature(HOT); - }, template -> AlleleHelper.instance.set(template, SPEED, Speed.SLOWER), dis -> { - IBeeMutationCustom tMutation = dis.registerMutation(REDSTONE, GOLD, 5); - tMutation.requireResource("blockElectrotine"); - }), + beeSpecies -> { + beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.SLAG), 0.30f); + beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.ELECTROTINE), 0.15f); + beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.REDSTONE), 0.05f); + beeSpecies.setHumidity(EnumHumidity.NORMAL); + beeSpecies.setTemperature(HOT); + }, template -> AlleleHelper.instance.set(template, SPEED, Speed.SLOWER), dis -> { + IBeeMutationCustom tMutation = dis.registerMutation(REDSTONE, GOLD, 5); + tMutation.requireResource("blockElectrotine"); + }), // Sulfur bee, Humidity: normal, Temperature: Hot, Parents: PEAT & Ash, Mutationrate: 15%, Combrate: 80% SULFUR(GT_BranchDefinition.RAREMETAL, "Sulfur", false, new Color(0x1E90FF), new Color(0x3CB4C8), beeSpecies -> { beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.SULFUR), 0.70f); @@ -648,7 +642,7 @@ public enum GT_BeeDefinition implements IBeeDefinition { beeSpecies.setHumidity(EnumHumidity.NORMAL); beeSpecies.setTemperature(HOT); }, template -> AlleleHelper.instance.set(template, SPEED, Speed.NORMAL), - dis -> dis.registerMutation(ASH, PEAT, 15)), + dis -> dis.registerMutation(ASH, PEAT, 15)), INDIUM(GT_BranchDefinition.RAREMETAL, "Indium", false, new Color(0xFFA9FF), new Color(0x8F5D99), beeSpecies -> { beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.INDIUM), 0.05f); @@ -675,15 +669,13 @@ public enum GT_BeeDefinition implements IBeeDefinition { AlleleHelper.instance.set(template, FLOWER_PROVIDER, Flowers.SNOW); AlleleHelper.instance.set(template, EFFECT, AlleleEffect.effectGlacial); }, dis -> { - IBeeMutationCustom tMutation = dis.registerMutation( - getSpecies(FORESTRY, "Icy"), - getSpecies(FORESTRY, "Glacial"), - 10); + IBeeMutationCustom tMutation = dis + .registerMutation(getSpecies(FORESTRY, "Icy"), getSpecies(FORESTRY, "Glacial"), 10); tMutation.requireResource( - Block.getBlockFromItem( - GT_ModHandler.getModItem(IndustrialCraft2.ID, "fluidCoolant", 1) - .getItem()), - 0); + Block.getBlockFromItem( + GT_ModHandler.getModItem(IndustrialCraft2.ID, "fluidCoolant", 1) + .getItem()), + 0); tMutation.restrictTemperature(ICY); }), ENERGY(GT_BranchDefinition.IC2, "Energy", false, new Color(0xC11F1F), new Color(0xEBB9B9), beeSpecies -> { @@ -701,15 +693,13 @@ public enum GT_BeeDefinition implements IBeeDefinition { AlleleHelper.instance.set(template, FLOWER_PROVIDER, Flowers.NETHER); AlleleHelper.instance.set(template, FLOWERING, Flowering.AVERAGE); }, dis -> { - IBeeMutationCustom tMutation = dis.registerMutation( - getSpecies(FORESTRY, "Demonic"), - getSpecies(EXTRABEES, "volcanic"), - 10); + IBeeMutationCustom tMutation = dis + .registerMutation(getSpecies(FORESTRY, "Demonic"), getSpecies(EXTRABEES, "volcanic"), 10); tMutation.requireResource( - Block.getBlockFromItem( - GT_ModHandler.getModItem(IndustrialCraft2.ID, "fluidHotCoolant", 1) - .getItem()), - 0); + Block.getBlockFromItem( + GT_ModHandler.getModItem(IndustrialCraft2.ID, "fluidHotCoolant", 1) + .getItem()), + 0); tMutation.addMutationCondition(new GT_Bees.BiomeIDMutationCondition(128, "Boneyard Biome")); // Boneyard Biome }), LAPOTRON(GT_BranchDefinition.IC2, "Lapotron", false, new Color(0x6478FF), new Color(0x1414FF), beeSpecies -> { @@ -800,77 +790,74 @@ public enum GT_BeeDefinition implements IBeeDefinition { tMutation.requireResource("blockRedAlloy"); }), REDSTONEALLOY(GT_BranchDefinition.GTALLOY, "RedStoneAlloy", false, new Color(0xA50808), new Color(0xE80000), - beeSpecies -> { - beeSpecies.addProduct(GT_ModHandler.getModItem(Forestry.ID, "beeCombs", 1, 7), 0.30f); - beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.REDSTONEALLOY), 0.15f); - beeSpecies.setHumidity(EnumHumidity.NORMAL); - beeSpecies.setTemperature(EnumTemperature.NORMAL); - }, template -> { - AlleleHelper.instance.set(template, SPEED, Speed.SLOWER); - AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORTER); - }, dis -> { - IBeeMutationCustom tMutation = dis.registerMutation(REDSTONE, REDALLOY, 8); - tMutation.requireResource("blockRedstoneAlloy"); - }), + beeSpecies -> { + beeSpecies.addProduct(GT_ModHandler.getModItem(Forestry.ID, "beeCombs", 1, 7), 0.30f); + beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.REDSTONEALLOY), 0.15f); + beeSpecies.setHumidity(EnumHumidity.NORMAL); + beeSpecies.setTemperature(EnumTemperature.NORMAL); + }, template -> { + AlleleHelper.instance.set(template, SPEED, Speed.SLOWER); + AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORTER); + }, dis -> { + IBeeMutationCustom tMutation = dis.registerMutation(REDSTONE, REDALLOY, 8); + tMutation.requireResource("blockRedstoneAlloy"); + }), CONDUCTIVEIRON(GT_BranchDefinition.GTALLOY, "ConductiveIron", false, new Color(0xCEADA3), new Color(0x817671), - beeSpecies -> { - beeSpecies.addProduct(GT_ModHandler.getModItem(Forestry.ID, "beeCombs", 1, 7), 0.30f); - beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.CONDUCTIVEIRON), 0.15f); - beeSpecies.setHumidity(DAMP); - beeSpecies.setTemperature(WARM); - beeSpecies.setHasEffect(); - }, template -> { - AlleleHelper.instance.set(template, SPEED, Speed.FAST); - AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORTEST); - }, dis -> { - IBeeMutationCustom tMutation = dis.registerMutation(REDSTONEALLOY, IRON, 8); - tMutation.requireResource("blockConductiveIron"); - }), + beeSpecies -> { + beeSpecies.addProduct(GT_ModHandler.getModItem(Forestry.ID, "beeCombs", 1, 7), 0.30f); + beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.CONDUCTIVEIRON), 0.15f); + beeSpecies.setHumidity(DAMP); + beeSpecies.setTemperature(WARM); + beeSpecies.setHasEffect(); + }, template -> { + AlleleHelper.instance.set(template, SPEED, Speed.FAST); + AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORTEST); + }, dis -> { + IBeeMutationCustom tMutation = dis.registerMutation(REDSTONEALLOY, IRON, 8); + tMutation.requireResource("blockConductiveIron"); + }), ENERGETICALLOY(GT_BranchDefinition.GTALLOY, "EnergeticAlloy", false, new Color(0xFF9933), new Color(0xFFAD5C), - beeSpecies -> { - beeSpecies.addProduct(GT_ModHandler.getModItem(Forestry.ID, "beeCombs", 1, 7), 0.30f); - beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.ENERGETICALLOY), 0.15f); - beeSpecies.setHumidity(DAMP); - beeSpecies.setTemperature(EnumTemperature.NORMAL); - }, template -> { - AlleleHelper.instance.set(template, SPEED, Speed.FAST); - AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORTEST); - }, dis -> { - IBeeMutationCustom tMutation = dis.registerMutation(REDSTONEALLOY, getSpecies(FORESTRY, "Demonic"), 9); - tMutation.requireResource("blockEnergeticAlloy"); - }), + beeSpecies -> { + beeSpecies.addProduct(GT_ModHandler.getModItem(Forestry.ID, "beeCombs", 1, 7), 0.30f); + beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.ENERGETICALLOY), 0.15f); + beeSpecies.setHumidity(DAMP); + beeSpecies.setTemperature(EnumTemperature.NORMAL); + }, template -> { + AlleleHelper.instance.set(template, SPEED, Speed.FAST); + AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORTEST); + }, dis -> { + IBeeMutationCustom tMutation = dis.registerMutation(REDSTONEALLOY, getSpecies(FORESTRY, "Demonic"), 9); + tMutation.requireResource("blockEnergeticAlloy"); + }), VIBRANTALLOY(GT_BranchDefinition.GTALLOY, "VibrantAlloy", false, new Color(0x86A12D), new Color(0xC4F2AE), - beeSpecies -> { - beeSpecies.addProduct(GT_ModHandler.getModItem(Forestry.ID, "beeCombs", 1, 7), 0.30f); - beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.VIBRANTALLOY), 0.15f); - beeSpecies.setHumidity(DAMP); - beeSpecies.setTemperature(EnumTemperature.NORMAL); - beeSpecies.setHasEffect(); - }, template -> { - AlleleHelper.instance.set(template, SPEED, Speed.SLOWER); - AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORTEST); - AlleleHelper.instance.set(template, FLOWERING, Flowering.FAST); - }, dis -> { - IBeeMutationCustom tMutation = dis.registerMutation( - ENERGETICALLOY, - getSpecies(FORESTRY, "Phantasmal"), - 6); - tMutation.requireResource("blockVibrantAlloy"); - tMutation.restrictTemperature(HOT, HELLISH); - }), + beeSpecies -> { + beeSpecies.addProduct(GT_ModHandler.getModItem(Forestry.ID, "beeCombs", 1, 7), 0.30f); + beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.VIBRANTALLOY), 0.15f); + beeSpecies.setHumidity(DAMP); + beeSpecies.setTemperature(EnumTemperature.NORMAL); + beeSpecies.setHasEffect(); + }, template -> { + AlleleHelper.instance.set(template, SPEED, Speed.SLOWER); + AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORTEST); + AlleleHelper.instance.set(template, FLOWERING, Flowering.FAST); + }, dis -> { + IBeeMutationCustom tMutation = dis.registerMutation(ENERGETICALLOY, getSpecies(FORESTRY, "Phantasmal"), 6); + tMutation.requireResource("blockVibrantAlloy"); + tMutation.restrictTemperature(HOT, HELLISH); + }), ELECTRICALSTEEL(GT_BranchDefinition.GTALLOY, "ElectricalSteel", false, new Color(0x787878), new Color(0xD8D8D8), - beeSpecies -> { - beeSpecies.addProduct(GT_ModHandler.getModItem(Forestry.ID, "beeCombs", 1, 7), 0.30f); - beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.ELECTRICALSTEEL), 0.15f); - beeSpecies.setHumidity(DAMP); - beeSpecies.setTemperature(EnumTemperature.NORMAL); - }, template -> { - AlleleHelper.instance.set(template, SPEED, Speed.SLOWER); - AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORTER); - }, dis -> { - IBeeMutationCustom tMutation = dis.registerMutation(STEEL, getSpecies(FORESTRY, "Demonic"), 9); - tMutation.requireResource("blockElectricalSteel"); - }), + beeSpecies -> { + beeSpecies.addProduct(GT_ModHandler.getModItem(Forestry.ID, "beeCombs", 1, 7), 0.30f); + beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.ELECTRICALSTEEL), 0.15f); + beeSpecies.setHumidity(DAMP); + beeSpecies.setTemperature(EnumTemperature.NORMAL); + }, template -> { + AlleleHelper.instance.set(template, SPEED, Speed.SLOWER); + AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORTER); + }, dis -> { + IBeeMutationCustom tMutation = dis.registerMutation(STEEL, getSpecies(FORESTRY, "Demonic"), 9); + tMutation.requireResource("blockElectricalSteel"); + }), DARKSTEEL(GT_BranchDefinition.GTALLOY, "DarkSteel", false, new Color(0x252525), new Color(0x443B44), beeSpecies -> { beeSpecies.addProduct(GT_ModHandler.getModItem(Forestry.ID, "beeCombs", 1, 7), 0.30f); beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.DARKSTEEL), 0.15f); @@ -884,34 +871,34 @@ public enum GT_BeeDefinition implements IBeeDefinition { tMutation.requireResource("blockDarkSteel"); }), PULSATINGIRON(GT_BranchDefinition.GTALLOY, "PulsatingIron", false, new Color(0x6DD284), new Color(0x006600), - beeSpecies -> { - beeSpecies.addProduct(GT_ModHandler.getModItem(Forestry.ID, "beeCombs", 1, 7), 0.30f); - beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.PULSATINGIRON), 0.15f); - beeSpecies.setHumidity(DAMP); - beeSpecies.setTemperature(EnumTemperature.NORMAL); - }, template -> { - AlleleHelper.instance.set(template, SPEED, Speed.FAST); - AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORTEST); - }, dis -> { - IBeeMutationCustom tMutation = dis.registerMutation(REDALLOY, getSpecies(FORESTRY, "Ended"), 9); - tMutation.requireResource("blockPulsatingIron"); - }), + beeSpecies -> { + beeSpecies.addProduct(GT_ModHandler.getModItem(Forestry.ID, "beeCombs", 1, 7), 0.30f); + beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.PULSATINGIRON), 0.15f); + beeSpecies.setHumidity(DAMP); + beeSpecies.setTemperature(EnumTemperature.NORMAL); + }, template -> { + AlleleHelper.instance.set(template, SPEED, Speed.FAST); + AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORTEST); + }, dis -> { + IBeeMutationCustom tMutation = dis.registerMutation(REDALLOY, getSpecies(FORESTRY, "Ended"), 9); + tMutation.requireResource("blockPulsatingIron"); + }), STAINLESSSTEEL(GT_BranchDefinition.GTALLOY, "StainlessSteel", false, new Color(0xC8C8DC), new Color(0x778899), - beeSpecies -> { - beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.SLAG), 0.30f); - beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.STEEL), 0.10f); - beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.STAINLESSSTEEL), 0.15f); - beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.CHROME), 0.05f); - beeSpecies.setHumidity(EnumHumidity.NORMAL); - beeSpecies.setTemperature(HOT); - }, template -> { - AlleleHelper.instance.set(template, SPEED, Speed.FAST); - AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORTEST); - AlleleHelper.instance.set(template, EFFECT, AlleleEffect.effectIgnition); - }, dis -> { - IBeeMutationCustom tMutation = dis.registerMutation(CHROME, STEEL, 9); - tMutation.requireResource("blockStainlessSteel"); - }), + beeSpecies -> { + beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.SLAG), 0.30f); + beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.STEEL), 0.10f); + beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.STAINLESSSTEEL), 0.15f); + beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.CHROME), 0.05f); + beeSpecies.setHumidity(EnumHumidity.NORMAL); + beeSpecies.setTemperature(HOT); + }, template -> { + AlleleHelper.instance.set(template, SPEED, Speed.FAST); + AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORTEST); + AlleleHelper.instance.set(template, EFFECT, AlleleEffect.effectIgnition); + }, dis -> { + IBeeMutationCustom tMutation = dis.registerMutation(CHROME, STEEL, 9); + tMutation.requireResource("blockStainlessSteel"); + }), ENDERIUM(GT_BranchDefinition.GTALLOY, "Enderium", false, new Color(0x599087), new Color(0x2E8B57), beeSpecies -> { beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.SLAG), 0.30f); beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.ENDERIUM), 0.15f); @@ -927,63 +914,61 @@ public enum GT_BeeDefinition implements IBeeDefinition { tMutation.requireResource("blockEnderium"); }), BEDROCKIUM(GT_BranchDefinition.GTALLOY, "Bedrockium", false, new Color(0x0C0C0C), new Color(0xC6C6C6), - beeSpecies -> { - beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.SLAG), 0.20f); - beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.BEDROCKIUM), 0.55f); - beeSpecies.setHumidity(EnumHumidity.NORMAL); - beeSpecies.setTemperature(HOT); - }, template -> { - AlleleHelper.instance.set(template, SPEED, Speed.SLOW); - AlleleHelper.instance.set(template, EFFECT, getEffect(EXTRABEES, "gravity")); - AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORTEST); - }, dis -> { - IBeeMutationCustom tMutation = dis.registerMutation(Explosive, DIAMOND, 2); - if (ExtraUtilities.isModLoaded()) - tMutation.requireResource(GameRegistry.findBlock(ExtraUtilities.ID, "block_bedrockium"), 0); - }), + beeSpecies -> { + beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.SLAG), 0.20f); + beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.BEDROCKIUM), 0.55f); + beeSpecies.setHumidity(EnumHumidity.NORMAL); + beeSpecies.setTemperature(HOT); + }, template -> { + AlleleHelper.instance.set(template, SPEED, Speed.SLOW); + AlleleHelper.instance.set(template, EFFECT, getEffect(EXTRABEES, "gravity")); + AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORTEST); + }, dis -> { + IBeeMutationCustom tMutation = dis.registerMutation(Explosive, DIAMOND, 2); + if (ExtraUtilities.isModLoaded()) + tMutation.requireResource(GameRegistry.findBlock(ExtraUtilities.ID, "block_bedrockium"), 0); + }), // thaumic THAUMIUMDUST(GT_BranchDefinition.THAUMIC, "ThaumiumDust", true, new Color(0x7A007A), new Color(0x5C005C), - beeSpecies -> { - beeSpecies.addProduct(GT_ModHandler.getModItem(Forestry.ID, "beeCombs", 1, 3), 0.30f); - beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.THAUMIUMDUST), 0.20f); - beeSpecies.setHumidity(EnumHumidity.NORMAL); - beeSpecies.setTemperature(EnumTemperature.NORMAL); - }, template -> { - AlleleHelper.instance.set(template, SPEED, Speed.SLOWEST); - AlleleHelper.instance.set(template, LIFESPAN, Lifespan.LONGER); - AlleleHelper.instance.set(template, TEMPERATURE_TOLERANCE, Tolerance.BOTH_2); - AlleleHelper.instance.set(template, EFFECT, AlleleEffect.effectExploration); - AlleleHelper.instance.set(template, HUMIDITY_TOLERANCE, Tolerance.UP_1); - AlleleHelper.instance.set(template, FLOWER_PROVIDER, Flowers.JUNGLE); - }, dis -> { - IBeeMutationCustom tMutation = dis.registerMutation( - getSpecies(MAGICBEES, "TCFire"), - getSpecies(FORESTRY, "Edenic"), - 10); - tMutation.requireResource("blockThaumium"); - tMutation.addMutationCondition(new GT_Bees.BiomeIDMutationCondition(192, "Magical Forest")); // magical - // forest - }), + beeSpecies -> { + beeSpecies.addProduct(GT_ModHandler.getModItem(Forestry.ID, "beeCombs", 1, 3), 0.30f); + beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.THAUMIUMDUST), 0.20f); + beeSpecies.setHumidity(EnumHumidity.NORMAL); + beeSpecies.setTemperature(EnumTemperature.NORMAL); + }, template -> { + AlleleHelper.instance.set(template, SPEED, Speed.SLOWEST); + AlleleHelper.instance.set(template, LIFESPAN, Lifespan.LONGER); + AlleleHelper.instance.set(template, TEMPERATURE_TOLERANCE, Tolerance.BOTH_2); + AlleleHelper.instance.set(template, EFFECT, AlleleEffect.effectExploration); + AlleleHelper.instance.set(template, HUMIDITY_TOLERANCE, Tolerance.UP_1); + AlleleHelper.instance.set(template, FLOWER_PROVIDER, Flowers.JUNGLE); + }, dis -> { + IBeeMutationCustom tMutation = dis + .registerMutation(getSpecies(MAGICBEES, "TCFire"), getSpecies(FORESTRY, "Edenic"), 10); + tMutation.requireResource("blockThaumium"); + tMutation.addMutationCondition(new GT_Bees.BiomeIDMutationCondition(192, "Magical Forest")); // magical + // forest + }), THAUMIUMSHARD(GT_BranchDefinition.THAUMIC, "ThaumiumShard", true, new Color(0x9966FF), new Color(0xAD85FF), - beeSpecies -> { - beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.THAUMIUMDUST), 0.30f); - beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.THAUMIUMSHARD), 0.20f); - beeSpecies.setHumidity(EnumHumidity.NORMAL); - beeSpecies.setTemperature(EnumTemperature.NORMAL); - beeSpecies.setHasEffect(); - }, template -> { - AlleleHelper.instance.set(template, SPEED, Speed.SLOWER); - AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORT); - AlleleHelper.instance.set(template, TEMPERATURE_TOLERANCE, Tolerance.UP_1); - AlleleHelper.instance.set(template, HUMIDITY_TOLERANCE, Tolerance.BOTH_1); - AlleleHelper.instance.set(template, FLOWER_PROVIDER, Flowers.SNOW); - AlleleHelper.instance.set(template, EFFECT, AlleleEffect.effectGlacial); - }, dis -> { - IBeeMutationCustom tMutation = dis.registerMutation(THAUMIUMDUST, getSpecies(MAGICBEES, "TCWater"), 10); - tMutation.addMutationCondition(new GT_Bees.BiomeIDMutationCondition(192, "Magical Forest")); // magical - // forest - }), + beeSpecies -> { + beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.THAUMIUMDUST), 0.30f); + beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.THAUMIUMSHARD), 0.20f); + beeSpecies.setHumidity(EnumHumidity.NORMAL); + beeSpecies.setTemperature(EnumTemperature.NORMAL); + beeSpecies.setHasEffect(); + }, template -> { + AlleleHelper.instance.set(template, SPEED, Speed.SLOWER); + AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORT); + AlleleHelper.instance.set(template, TEMPERATURE_TOLERANCE, Tolerance.UP_1); + AlleleHelper.instance.set(template, HUMIDITY_TOLERANCE, Tolerance.BOTH_1); + AlleleHelper.instance.set(template, FLOWER_PROVIDER, Flowers.SNOW); + AlleleHelper.instance.set(template, EFFECT, AlleleEffect.effectGlacial); + }, dis -> { + IBeeMutationCustom tMutation = dis.registerMutation(THAUMIUMDUST, getSpecies(MAGICBEES, "TCWater"), 10); + tMutation.addMutationCondition(new GT_Bees.BiomeIDMutationCondition(192, "Magical Forest")); // magical + // forest + }), AMBER(GT_BranchDefinition.THAUMIC, "Amber", true, new Color(0xEE7700), new Color(0x774B15), beeSpecies -> { beeSpecies.addProduct(GT_ModHandler.getModItem(Forestry.ID, "beeCombs", 1, 3), 0.30f); beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.AMBER), 0.20f); @@ -999,37 +984,37 @@ public enum GT_BeeDefinition implements IBeeDefinition { tMutation.requireResource("blockAmber"); }), QUICKSILVER(GT_BranchDefinition.THAUMIC, "Quicksilver", true, new Color(0x7A007A), new Color(0x5C005C), - beeSpecies -> { - beeSpecies.addProduct(GT_ModHandler.getModItem(Forestry.ID, "beeCombs", 1, 3), 0.30f); - beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.QUICKSILVER), 0.20f); - beeSpecies.setHumidity(EnumHumidity.NORMAL); - beeSpecies.setTemperature(EnumTemperature.NORMAL); - beeSpecies.setHasEffect(); - }, template -> { - AlleleHelper.instance.set(template, TEMPERATURE_TOLERANCE, Tolerance.UP_1); - AlleleHelper.instance.set(template, HUMIDITY_TOLERANCE, Tolerance.UP_1); - AlleleHelper.instance.set(template, FLOWER_PROVIDER, Flowers.JUNGLE); - AlleleHelper.instance.set(template, EFFECT, AlleleEffect.effectMiasmic); - }, dis -> dis.registerMutation(THAUMIUMDUST, SILVER, 10)), + beeSpecies -> { + beeSpecies.addProduct(GT_ModHandler.getModItem(Forestry.ID, "beeCombs", 1, 3), 0.30f); + beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.QUICKSILVER), 0.20f); + beeSpecies.setHumidity(EnumHumidity.NORMAL); + beeSpecies.setTemperature(EnumTemperature.NORMAL); + beeSpecies.setHasEffect(); + }, template -> { + AlleleHelper.instance.set(template, TEMPERATURE_TOLERANCE, Tolerance.UP_1); + AlleleHelper.instance.set(template, HUMIDITY_TOLERANCE, Tolerance.UP_1); + AlleleHelper.instance.set(template, FLOWER_PROVIDER, Flowers.JUNGLE); + AlleleHelper.instance.set(template, EFFECT, AlleleEffect.effectMiasmic); + }, dis -> dis.registerMutation(THAUMIUMDUST, SILVER, 10)), SALISMUNDUS(GT_BranchDefinition.THAUMIC, "SalisMundus", true, new Color(0xF7ADDE), new Color(0x592582), - beeSpecies -> { - beeSpecies.addProduct(GT_ModHandler.getModItem(Forestry.ID, "beeCombs", 1, 3), 0.30f); - beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.SALISMUNDUS), 0.20f); - beeSpecies.setHumidity(EnumHumidity.NORMAL); - beeSpecies.setTemperature(EnumTemperature.NORMAL); - beeSpecies.setHasEffect(); - }, template -> { - AlleleHelper.instance.set(template, TEMPERATURE_TOLERANCE, Tolerance.UP_1); - AlleleHelper.instance.set(template, HUMIDITY_TOLERANCE, Tolerance.UP_1); - AlleleHelper.instance.set(template, FLOWER_PROVIDER, Flowers.JUNGLE); - AlleleHelper.instance.set(template, EFFECT, AlleleEffect.effectMiasmic); - AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORT); - AlleleHelper.instance.set(template, SPEED, Speed.SLOWER); - }, dis -> { - IBeeMutationCustom tMutation = dis.registerMutation(THAUMIUMDUST, THAUMIUMSHARD, 8); - tMutation.addMutationCondition(new GT_Bees.BiomeIDMutationCondition(192, "Magical Forest")); // magical - // forest - }), + beeSpecies -> { + beeSpecies.addProduct(GT_ModHandler.getModItem(Forestry.ID, "beeCombs", 1, 3), 0.30f); + beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.SALISMUNDUS), 0.20f); + beeSpecies.setHumidity(EnumHumidity.NORMAL); + beeSpecies.setTemperature(EnumTemperature.NORMAL); + beeSpecies.setHasEffect(); + }, template -> { + AlleleHelper.instance.set(template, TEMPERATURE_TOLERANCE, Tolerance.UP_1); + AlleleHelper.instance.set(template, HUMIDITY_TOLERANCE, Tolerance.UP_1); + AlleleHelper.instance.set(template, FLOWER_PROVIDER, Flowers.JUNGLE); + AlleleHelper.instance.set(template, EFFECT, AlleleEffect.effectMiasmic); + AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORT); + AlleleHelper.instance.set(template, SPEED, Speed.SLOWER); + }, dis -> { + IBeeMutationCustom tMutation = dis.registerMutation(THAUMIUMDUST, THAUMIUMSHARD, 8); + tMutation.addMutationCondition(new GT_Bees.BiomeIDMutationCondition(192, "Magical Forest")); // magical + // forest + }), TAINTED(GT_BranchDefinition.THAUMIC, "Tainted", true, new Color(0x904BB8), new Color(0xE800FF), beeSpecies -> { beeSpecies.addProduct(GT_ModHandler.getModItem(Forestry.ID, "beeCombs", 1, 3), 0.30f); beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.TAINTED), 0.20f); @@ -1073,64 +1058,62 @@ public enum GT_BeeDefinition implements IBeeDefinition { } }), ASTRALSILVER(GT_BranchDefinition.THAUMIC, "AstralSilver", true, new Color(0xAFEEEE), new Color(0xE6E6FF), - beeSpecies -> { - beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.SILVER), 0.20f); - beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.ASTRALSILVER), 0.125f); - beeSpecies.setHumidity(EnumHumidity.NORMAL); - beeSpecies.setTemperature(EnumTemperature.NORMAL); - }, template -> { - AlleleHelper.instance.set(template, NOCTURNAL, true); - AlleleHelper.instance.set(template, CAVE_DWELLING, true); - AlleleHelper.instance.set(template, TOLERANT_FLYER, true); - AlleleHelper.instance.set(template, FERTILITY, Fertility.LOW); - AlleleHelper.instance.set(template, TEMPERATURE_TOLERANCE, Tolerance.BOTH_1); - AlleleHelper.instance.set(template, HUMIDITY_TOLERANCE, Tolerance.BOTH_1); - AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORT); - AlleleHelper.instance.set(template, FLOWER_PROVIDER, getFlowers(EXTRABEES, "rock")); - }, dis -> { - IBeeMutationCustom tMutation = dis.registerMutation(SILVER, IRON, 3); - tMutation.requireResource(GregTech_API.sBlockMetal1, 6); - }), + beeSpecies -> { + beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.SILVER), 0.20f); + beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.ASTRALSILVER), 0.125f); + beeSpecies.setHumidity(EnumHumidity.NORMAL); + beeSpecies.setTemperature(EnumTemperature.NORMAL); + }, template -> { + AlleleHelper.instance.set(template, NOCTURNAL, true); + AlleleHelper.instance.set(template, CAVE_DWELLING, true); + AlleleHelper.instance.set(template, TOLERANT_FLYER, true); + AlleleHelper.instance.set(template, FERTILITY, Fertility.LOW); + AlleleHelper.instance.set(template, TEMPERATURE_TOLERANCE, Tolerance.BOTH_1); + AlleleHelper.instance.set(template, HUMIDITY_TOLERANCE, Tolerance.BOTH_1); + AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORT); + AlleleHelper.instance.set(template, FLOWER_PROVIDER, getFlowers(EXTRABEES, "rock")); + }, dis -> { + IBeeMutationCustom tMutation = dis.registerMutation(SILVER, IRON, 3); + tMutation.requireResource(GregTech_API.sBlockMetal1, 6); + }), THAUMINITE(GT_BranchDefinition.THAUMIC, "Thauminite", true, new Color(0x2E2D79), new Color(0x7581E0), - beeSpecies -> { - beeSpecies.addProduct(GT_ModHandler.getModItem(MagicBees.ID, "comb", 1, 19), 0.20f); - beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.THAUMINITE), 0.125f); - beeSpecies.setHumidity(EnumHumidity.NORMAL); - beeSpecies.setTemperature(EnumTemperature.NORMAL); - beeSpecies.setHasEffect(); - }, template -> { - AlleleHelper.instance.set(template, SPEED, Speed.SLOWER); - AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORT); - AlleleHelper.instance.set(template, FLOWERING, Flowering.SLOW); - AlleleHelper.instance.set(template, NOCTURNAL, true); - }, dis -> { - IBeeMutationCustom tMutation = dis.registerMutation(getSpecies(MAGICBEES, "TCOrder"), THAUMIUMDUST, 8); - if (ThaumicBases.isModLoaded()) - tMutation.requireResource(GameRegistry.findBlock(ThaumicBases.ID, "thauminiteBlock"), 0); - }), + beeSpecies -> { + beeSpecies.addProduct(GT_ModHandler.getModItem(MagicBees.ID, "comb", 1, 19), 0.20f); + beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.THAUMINITE), 0.125f); + beeSpecies.setHumidity(EnumHumidity.NORMAL); + beeSpecies.setTemperature(EnumTemperature.NORMAL); + beeSpecies.setHasEffect(); + }, template -> { + AlleleHelper.instance.set(template, SPEED, Speed.SLOWER); + AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORT); + AlleleHelper.instance.set(template, FLOWERING, Flowering.SLOW); + AlleleHelper.instance.set(template, NOCTURNAL, true); + }, dis -> { + IBeeMutationCustom tMutation = dis.registerMutation(getSpecies(MAGICBEES, "TCOrder"), THAUMIUMDUST, 8); + if (ThaumicBases.isModLoaded()) + tMutation.requireResource(GameRegistry.findBlock(ThaumicBases.ID, "thauminiteBlock"), 0); + }), SHADOWMETAL(GT_BranchDefinition.THAUMIC, "ShadowMetal", true, new Color(0x100322), new Color(0x100342), - beeSpecies -> { - beeSpecies.addProduct(GT_ModHandler.getModItem(MagicBees.ID, "comb", 1, 20), 0.20f); - beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.SHADOWMETAL), 0.125f); - beeSpecies.setHumidity(EnumHumidity.NORMAL); - beeSpecies.setTemperature(EnumTemperature.NORMAL); - beeSpecies.setHasEffect(); - }, template -> { - AlleleHelper.instance.set(template, SPEED, Speed.SLOWER); - AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORT); - AlleleHelper.instance.set(template, FLOWERING, Flowering.SLOW); - AlleleHelper.instance.set(template, TEMPERATURE_TOLERANCE, Tolerance.NONE); - AlleleHelper.instance.set(template, HUMIDITY_TOLERANCE, Tolerance.NONE); - AlleleHelper.instance.set(template, NOCTURNAL, true); - }, dis -> { - IBeeMutationCustom tMutation = dis.registerMutation( - getSpecies(MAGICBEES, "TCChaos"), - getSpecies(MAGICBEES, "TCVoid"), - 6); - if (TaintedMagic.isModLoaded()) { - tMutation.requireResource("blockShadow"); - } - }), + beeSpecies -> { + beeSpecies.addProduct(GT_ModHandler.getModItem(MagicBees.ID, "comb", 1, 20), 0.20f); + beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.SHADOWMETAL), 0.125f); + beeSpecies.setHumidity(EnumHumidity.NORMAL); + beeSpecies.setTemperature(EnumTemperature.NORMAL); + beeSpecies.setHasEffect(); + }, template -> { + AlleleHelper.instance.set(template, SPEED, Speed.SLOWER); + AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORT); + AlleleHelper.instance.set(template, FLOWERING, Flowering.SLOW); + AlleleHelper.instance.set(template, TEMPERATURE_TOLERANCE, Tolerance.NONE); + AlleleHelper.instance.set(template, HUMIDITY_TOLERANCE, Tolerance.NONE); + AlleleHelper.instance.set(template, NOCTURNAL, true); + }, dis -> { + IBeeMutationCustom tMutation = dis + .registerMutation(getSpecies(MAGICBEES, "TCChaos"), getSpecies(MAGICBEES, "TCVoid"), 6); + if (TaintedMagic.isModLoaded()) { + tMutation.requireResource("blockShadow"); + } + }), DIVIDED(GT_BranchDefinition.THAUMIC, "Unstable", true, new Color(0xF0F0F0), new Color(0xDCDCDC), beeSpecies -> { beeSpecies.addProduct(GT_ModHandler.getModItem(ExtraBees.ID, "honeyComb", 1, 61), 0.20f); beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.DIVIDED), 0.125f); @@ -1161,27 +1144,25 @@ public enum GT_BeeDefinition implements IBeeDefinition { AlleleHelper.instance.set(template, NOCTURNAL, true); }, dis -> dis.registerMutation(DIAMOND, DIVIDED, 10)), SPARKELING(GT_BranchDefinition.THAUMIC, "NetherStar", true, new Color(0x7A007A), new Color(0xFFFFFF), - beeSpecies -> { - beeSpecies.addProduct(GT_ModHandler.getModItem(MagicBees.ID, "miscResources", 1, 3), 0.20f); - beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.SPARKELING), 0.125f); - beeSpecies.setHumidity(EnumHumidity.NORMAL); - beeSpecies.setTemperature(EnumTemperature.NORMAL); - }, template -> { - AlleleHelper.instance.set(template, TEMPERATURE_TOLERANCE, Tolerance.DOWN_2); - AlleleHelper.instance.set(template, NOCTURNAL, true); - AlleleHelper.instance.set(template, CAVE_DWELLING, true); - AlleleHelper.instance.set(template, FLOWER_PROVIDER, Flowers.NETHER); - AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORT); - AlleleHelper.instance.set(template, EFFECT, AlleleEffect.effectAggressive); - AlleleHelper.instance.set(template, FLOWERING, Flowering.AVERAGE); - }, dis -> { - IBeeMutationCustom tMutation = dis.registerMutation( - getSpecies(MAGICBEES, "Withering"), - getSpecies(MAGICBEES, "Draconic"), - 1); - tMutation.requireResource(GregTech_API.sBlockGem3, 3); - tMutation.addMutationCondition(new GT_Bees.BiomeIDMutationCondition(9, "END Biome")); // sky end biome - }), + beeSpecies -> { + beeSpecies.addProduct(GT_ModHandler.getModItem(MagicBees.ID, "miscResources", 1, 3), 0.20f); + beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.SPARKELING), 0.125f); + beeSpecies.setHumidity(EnumHumidity.NORMAL); + beeSpecies.setTemperature(EnumTemperature.NORMAL); + }, template -> { + AlleleHelper.instance.set(template, TEMPERATURE_TOLERANCE, Tolerance.DOWN_2); + AlleleHelper.instance.set(template, NOCTURNAL, true); + AlleleHelper.instance.set(template, CAVE_DWELLING, true); + AlleleHelper.instance.set(template, FLOWER_PROVIDER, Flowers.NETHER); + AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORT); + AlleleHelper.instance.set(template, EFFECT, AlleleEffect.effectAggressive); + AlleleHelper.instance.set(template, FLOWERING, Flowering.AVERAGE); + }, dis -> { + IBeeMutationCustom tMutation = dis + .registerMutation(getSpecies(MAGICBEES, "Withering"), getSpecies(MAGICBEES, "Draconic"), 1); + tMutation.requireResource(GregTech_API.sBlockGem3, 3); + tMutation.addMutationCondition(new GT_Bees.BiomeIDMutationCondition(9, "END Biome")); // sky end biome + }), ESSENTIA(GT_BranchDefinition.THAUMIC, "Essentia", true, new Color(0x7A007A), new Color(0xFFFFFF), beeSpecies -> { beeSpecies.addProduct(GT_ModHandler.getModItem(MagicBees.ID, "miscResources", 1, 3), 0.20f); @@ -1213,51 +1194,51 @@ public enum GT_BeeDefinition implements IBeeDefinition { tMutation.requireResource(GregTech_API.sBlockMetal7, 14); }), PLUTONIUM(GT_BranchDefinition.RADIOACTIVE, "Plutonium", true, new Color(0x570000), new Color(0x240000), - beeSpecies -> { - beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.SLAG), 0.30f); - beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.LEAD), 0.15f); - beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.PLUTONIUM), 0.15f); - beeSpecies.setHumidity(EnumHumidity.NORMAL); - beeSpecies.setTemperature(ICY); - beeSpecies.setNocturnal(); - }, template -> { - AlleleHelper.instance.set(template, SPEED, Speed.SLOWEST); - AlleleHelper.instance.set(template, LIFESPAN, Lifespan.LONGEST); - }, dis -> { - IBeeMutationCustom tMutation = dis.registerMutation(URANIUM, EMERALD, 3); - tMutation.requireResource(GregTech_API.sBlockMetal5, 13); - }), + beeSpecies -> { + beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.SLAG), 0.30f); + beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.LEAD), 0.15f); + beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.PLUTONIUM), 0.15f); + beeSpecies.setHumidity(EnumHumidity.NORMAL); + beeSpecies.setTemperature(ICY); + beeSpecies.setNocturnal(); + }, template -> { + AlleleHelper.instance.set(template, SPEED, Speed.SLOWEST); + AlleleHelper.instance.set(template, LIFESPAN, Lifespan.LONGEST); + }, dis -> { + IBeeMutationCustom tMutation = dis.registerMutation(URANIUM, EMERALD, 3); + tMutation.requireResource(GregTech_API.sBlockMetal5, 13); + }), NAQUADAH(GT_BranchDefinition.RADIOACTIVE, "Naquadah", false, new Color(0x003300), new Color(0x002400), - beeSpecies -> { - beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.SLAG), 0.30f); - beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.NAQUADAH), 0.15f); - beeSpecies.setHumidity(ARID); - beeSpecies.setTemperature(ICY); - beeSpecies.setNocturnal(); - beeSpecies.setHasEffect(); - }, template -> { - AlleleHelper.instance.set(template, SPEED, Speed.SLOWEST); - AlleleHelper.instance.set(template, LIFESPAN, Lifespan.LONGEST); - }, dis -> { - IBeeMutationCustom tMutation = dis.registerMutation(PLUTONIUM, IRIDIUM, 3); - tMutation.requireResource(GregTech_API.sBlockMetal4, 12); - }), + beeSpecies -> { + beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.SLAG), 0.30f); + beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.NAQUADAH), 0.15f); + beeSpecies.setHumidity(ARID); + beeSpecies.setTemperature(ICY); + beeSpecies.setNocturnal(); + beeSpecies.setHasEffect(); + }, template -> { + AlleleHelper.instance.set(template, SPEED, Speed.SLOWEST); + AlleleHelper.instance.set(template, LIFESPAN, Lifespan.LONGEST); + }, dis -> { + IBeeMutationCustom tMutation = dis.registerMutation(PLUTONIUM, IRIDIUM, 3); + tMutation.requireResource(GregTech_API.sBlockMetal4, 12); + }), NAQUADRIA(GT_BranchDefinition.RADIOACTIVE, "Naquadria", false, new Color(0x000000), new Color(0x002400), - beeSpecies -> { - beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.SLAG), 0.30f); - beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.NAQUADAH), 0.20f); - beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.NAQUADRIA), 0.15f); - beeSpecies.setHumidity(ARID); - beeSpecies.setTemperature(ICY); - beeSpecies.setNocturnal(); - beeSpecies.setHasEffect(); - }, template -> { - AlleleHelper.instance.set(template, SPEED, Speed.SLOWEST); - AlleleHelper.instance.set(template, LIFESPAN, Lifespan.LONGEST); - }, dis -> { - IBeeMutationCustom tMutation = dis.registerMutation(PLUTONIUM, IRIDIUM, 8, 10); - tMutation.requireResource(GregTech_API.sBlockMetal4, 15); - }), + beeSpecies -> { + beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.SLAG), 0.30f); + beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.NAQUADAH), 0.20f); + beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.NAQUADRIA), 0.15f); + beeSpecies.setHumidity(ARID); + beeSpecies.setTemperature(ICY); + beeSpecies.setNocturnal(); + beeSpecies.setHasEffect(); + }, template -> { + AlleleHelper.instance.set(template, SPEED, Speed.SLOWEST); + AlleleHelper.instance.set(template, LIFESPAN, Lifespan.LONGEST); + }, dis -> { + IBeeMutationCustom tMutation = dis.registerMutation(PLUTONIUM, IRIDIUM, 8, 10); + tMutation.requireResource(GregTech_API.sBlockMetal4, 15); + }), DOB(GT_BranchDefinition.RADIOACTIVE, "DOB", false, new Color(0x003300), new Color(0x002400), beeSpecies -> { beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.DOB), 0.75f); beeSpecies.setHumidity(EnumHumidity.NORMAL); @@ -1283,56 +1264,56 @@ public enum GT_BeeDefinition implements IBeeDefinition { AlleleHelper.instance.set(template, LIFESPAN, Lifespan.LONGEST); }, dis -> { IMutationCustom tMutation = dis.registerMutation(COAL, URANIUM, 3) - .setIsSecret(); + .setIsSecret(); tMutation.requireResource(GregTech_API.sBlockMetal7, 5); }), LUTETIUM(GT_BranchDefinition.RADIOACTIVE, "Lutetium", false, new Color(0xE6FFE6), new Color(0xFFFFFF), - beeSpecies -> { - beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.LUTETIUM), 0.15f); - beeSpecies.setHumidity(EnumHumidity.NORMAL); - beeSpecies.setTemperature(EnumTemperature.NORMAL); - beeSpecies.setNocturnal(); - beeSpecies.setHasEffect(); - }, template -> { - AlleleHelper.instance.set(template, SPEED, Speed.SLOWEST); - AlleleHelper.instance.set(template, LIFESPAN, Lifespan.LONGEST); - }, dis -> { - IMutationCustom tMutation = dis.registerMutation(THORIUM, getSpecies(EXTRABEES, "rotten"), 1) - .setIsSecret(); - tMutation.requireResource(GregTech_API.sBlockMetal4, 3); - }), + beeSpecies -> { + beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.LUTETIUM), 0.15f); + beeSpecies.setHumidity(EnumHumidity.NORMAL); + beeSpecies.setTemperature(EnumTemperature.NORMAL); + beeSpecies.setNocturnal(); + beeSpecies.setHasEffect(); + }, template -> { + AlleleHelper.instance.set(template, SPEED, Speed.SLOWEST); + AlleleHelper.instance.set(template, LIFESPAN, Lifespan.LONGEST); + }, dis -> { + IMutationCustom tMutation = dis.registerMutation(THORIUM, getSpecies(EXTRABEES, "rotten"), 1) + .setIsSecret(); + tMutation.requireResource(GregTech_API.sBlockMetal4, 3); + }), AMERICIUM(GT_BranchDefinition.RADIOACTIVE, "Americium", false, new Color(0xE6E6FF), new Color(0xC8C8C8), - beeSpecies -> { - beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.AMERICIUM), 0.075f); - beeSpecies.setHumidity(EnumHumidity.NORMAL); - beeSpecies.setTemperature(EnumTemperature.NORMAL); - beeSpecies.setNocturnal(); - beeSpecies.setHasEffect(); - // Makes it only work in the Mega Apiary NOTE: COMB MUST BE SPECIALITY COMB - beeSpecies.setJubilanceProvider(GT_JubilanceMegaApiary.instance); - }, template -> { - AlleleHelper.instance.set(template, SPEED, Speed.SLOWEST); - AlleleHelper.instance.set(template, LIFESPAN, Lifespan.LONGEST); - }, dis -> { - IMutationCustom tMutation = dis.registerMutation(LUTETIUM, CHROME, 5, 4) - .setIsSecret(); - tMutation.requireResource(GregTech_API.sBlockMetal1, 2); - }), + beeSpecies -> { + beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.AMERICIUM), 0.075f); + beeSpecies.setHumidity(EnumHumidity.NORMAL); + beeSpecies.setTemperature(EnumTemperature.NORMAL); + beeSpecies.setNocturnal(); + beeSpecies.setHasEffect(); + // Makes it only work in the Mega Apiary NOTE: COMB MUST BE SPECIALITY COMB + beeSpecies.setJubilanceProvider(GT_JubilanceMegaApiary.instance); + }, template -> { + AlleleHelper.instance.set(template, SPEED, Speed.SLOWEST); + AlleleHelper.instance.set(template, LIFESPAN, Lifespan.LONGEST); + }, dis -> { + IMutationCustom tMutation = dis.registerMutation(LUTETIUM, CHROME, 5, 4) + .setIsSecret(); + tMutation.requireResource(GregTech_API.sBlockMetal1, 2); + }), NEUTRONIUM(GT_BranchDefinition.RADIOACTIVE, "Neutronium", false, new Color(0xFFF0F0), new Color(0xFAFAFA), - beeSpecies -> { - beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.NEUTRONIUM), 0.02f); - beeSpecies.setHumidity(DAMP); - beeSpecies.setTemperature(HELLISH); - beeSpecies.setHasEffect(); - }, template -> { - AlleleHelper.instance.set(template, SPEED, Speed.SLOWEST); - AlleleHelper.instance.set(template, LIFESPAN, Lifespan.LONGEST); - AlleleHelper.instance.set(template, NOCTURNAL, true); - }, dis -> { - IMutationCustom tMutation = dis.registerMutation(NAQUADRIA, AMERICIUM, 2, 2) - .setIsSecret(); - tMutation.requireResource(GregTech_API.sBlockMetal5, 2); - }), + beeSpecies -> { + beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.NEUTRONIUM), 0.02f); + beeSpecies.setHumidity(DAMP); + beeSpecies.setTemperature(HELLISH); + beeSpecies.setHasEffect(); + }, template -> { + AlleleHelper.instance.set(template, SPEED, Speed.SLOWEST); + AlleleHelper.instance.set(template, LIFESPAN, Lifespan.LONGEST); + AlleleHelper.instance.set(template, NOCTURNAL, true); + }, dis -> { + IMutationCustom tMutation = dis.registerMutation(NAQUADRIA, AMERICIUM, 2, 2) + .setIsSecret(); + tMutation.requireResource(GregTech_API.sBlockMetal5, 2); + }), // Twilight NAGA(GT_BranchDefinition.TWILIGHT, "Naga", true, new Color(0x0D5A0D), new Color(0x28874B), beeSpecies -> { beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.SALISMUNDUS), 0.02f); @@ -1344,10 +1325,8 @@ public enum GT_BeeDefinition implements IBeeDefinition { AlleleHelper.instance.set(template, SPEED, Speed.FAST); AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORTEST); }, dis -> { - IBeeMutationCustom tMutation = dis.registerMutation( - getSpecies(MAGICBEES, "Eldritch"), - getSpecies(FORESTRY, "Imperial"), - 8); + IBeeMutationCustom tMutation = dis + .registerMutation(getSpecies(MAGICBEES, "Eldritch"), getSpecies(FORESTRY, "Imperial"), 8); tMutation.restrictHumidity(DAMP); }), LICH(GT_BranchDefinition.TWILIGHT, "Lich", true, new Color(0xC5C5C5), new Color(0x5C605E), beeSpecies -> { @@ -1469,42 +1448,42 @@ public enum GT_BeeDefinition implements IBeeDefinition { tMutation.addMutationCondition(new GT_Bees.DimensionMutationCondition(1, "End")); // End Dim }), ARCANESHARDS(GT_BranchDefinition.HEE, "Arcane Shards", true, new Color(0x9010AD), new Color(0x333D82), - beeSpecies -> { - beeSpecies.addProduct(GT_ModHandler.getModItem(Forestry.ID, "beeCombs", 1, 8), 0.30f); - beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.ARCANESHARD), 0.10f); - beeSpecies.setHumidity(ARID); - beeSpecies.setTemperature(EnumTemperature.NORMAL); - beeSpecies.setHasEffect(); - }, template -> { - AlleleHelper.instance.set(template, LIFESPAN, Lifespan.LONG); - AlleleHelper.instance.set(template, TEMPERATURE_TOLERANCE, Tolerance.BOTH_1); - AlleleHelper.instance.set(template, HUMIDITY_TOLERANCE, Tolerance.BOTH_1); - }, dis -> { - IBeeMutationCustom tMutation = dis.registerMutation(THAUMIUMSHARD, ENDDUST, 5); - tMutation.restrictHumidity(ARID); - if (HardcoreEnderExpansion.isModLoaded()) - tMutation.requireResource(GameRegistry.findBlock(HardcoreEnderExpansion.ID, "laboratory_floor"), 0); - tMutation.addMutationCondition(new GT_Bees.DimensionMutationCondition(1, "End")); // End Dim - }), + beeSpecies -> { + beeSpecies.addProduct(GT_ModHandler.getModItem(Forestry.ID, "beeCombs", 1, 8), 0.30f); + beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.ARCANESHARD), 0.10f); + beeSpecies.setHumidity(ARID); + beeSpecies.setTemperature(EnumTemperature.NORMAL); + beeSpecies.setHasEffect(); + }, template -> { + AlleleHelper.instance.set(template, LIFESPAN, Lifespan.LONG); + AlleleHelper.instance.set(template, TEMPERATURE_TOLERANCE, Tolerance.BOTH_1); + AlleleHelper.instance.set(template, HUMIDITY_TOLERANCE, Tolerance.BOTH_1); + }, dis -> { + IBeeMutationCustom tMutation = dis.registerMutation(THAUMIUMSHARD, ENDDUST, 5); + tMutation.restrictHumidity(ARID); + if (HardcoreEnderExpansion.isModLoaded()) + tMutation.requireResource(GameRegistry.findBlock(HardcoreEnderExpansion.ID, "laboratory_floor"), 0); + tMutation.addMutationCondition(new GT_Bees.DimensionMutationCondition(1, "End")); // End Dim + }), DRAGONESSENCE(GT_BranchDefinition.HEE, "Dragonessence", true, new Color(0xFFA12B), new Color(0x911ECE), - beeSpecies -> { - beeSpecies.addProduct(GT_ModHandler.getModItem(Forestry.ID, "beeCombs", 1, 8), 0.30f); - beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.DRAGONESSENCE), 0.10f); - beeSpecies.setHumidity(ARID); - beeSpecies.setTemperature(EnumTemperature.NORMAL); - beeSpecies.setHasEffect(); - }, template -> { - AlleleHelper.instance.set(template, LIFESPAN, Lifespan.LONGER); - AlleleHelper.instance.set(template, EFFECT, AlleleEffect.effectBeatific); - AlleleHelper.instance.set(template, TEMPERATURE_TOLERANCE, Tolerance.BOTH_3); - AlleleHelper.instance.set(template, HUMIDITY_TOLERANCE, Tolerance.BOTH_3); - }, dis -> { - IBeeMutationCustom tMutation = dis.registerMutation(ECTOPLASMA, ARCANESHARDS, 4); - tMutation.restrictHumidity(ARID); - if (HardcoreEnderExpansion.isModLoaded()) - tMutation.requireResource(GameRegistry.findBlock(HardcoreEnderExpansion.ID, "essence_altar"), 1); - tMutation.addMutationCondition(new GT_Bees.DimensionMutationCondition(1, "End")); // End Dim - }), + beeSpecies -> { + beeSpecies.addProduct(GT_ModHandler.getModItem(Forestry.ID, "beeCombs", 1, 8), 0.30f); + beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.DRAGONESSENCE), 0.10f); + beeSpecies.setHumidity(ARID); + beeSpecies.setTemperature(EnumTemperature.NORMAL); + beeSpecies.setHasEffect(); + }, template -> { + AlleleHelper.instance.set(template, LIFESPAN, Lifespan.LONGER); + AlleleHelper.instance.set(template, EFFECT, AlleleEffect.effectBeatific); + AlleleHelper.instance.set(template, TEMPERATURE_TOLERANCE, Tolerance.BOTH_3); + AlleleHelper.instance.set(template, HUMIDITY_TOLERANCE, Tolerance.BOTH_3); + }, dis -> { + IBeeMutationCustom tMutation = dis.registerMutation(ECTOPLASMA, ARCANESHARDS, 4); + tMutation.restrictHumidity(ARID); + if (HardcoreEnderExpansion.isModLoaded()) + tMutation.requireResource(GameRegistry.findBlock(HardcoreEnderExpansion.ID, "essence_altar"), 1); + tMutation.addMutationCondition(new GT_Bees.DimensionMutationCondition(1, "End")); // End Dim + }), FIREESSENCE(GT_BranchDefinition.HEE, "Fireessence", true, new Color(0xD41238), new Color(0xFFA157), beeSpecies -> { beeSpecies.addProduct(GT_ModHandler.getModItem(Forestry.ID, "beeCombs", 1, 8), 0.30f); beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.FIREESSENSE), 0.10f); @@ -1573,7 +1552,7 @@ public enum GT_BeeDefinition implements IBeeDefinition { AlleleHelper.instance.set(template, HUMIDITY_TOLERANCE, Tolerance.NONE); }, dis -> { IMutationCustom tMutation = dis.registerMutation(DRAGONESSENCE, STARDUST, 2) - .setIsSecret(); + .setIsSecret(); tMutation.restrictHumidity(ARID); if (EnderStorage.isModLoaded()) tMutation.requireResource(GameRegistry.findBlock(EnderStorage.ID, "enderChest"), 0); @@ -1592,11 +1571,8 @@ public enum GT_BeeDefinition implements IBeeDefinition { AlleleHelper.instance.set(template, HUMIDITY_TOLERANCE, Tolerance.BOTH_1); AlleleHelper.instance.set(template, NOCTURNAL, true); }, dis -> { - IBeeMutationCustom tMutation = dis.registerMutation( - getSpecies(MAGICBEES, "Watery"), - getSpecies(MAGICBEES, "Catty"), - 45, - 2); + IBeeMutationCustom tMutation = dis + .registerMutation(getSpecies(MAGICBEES, "Watery"), getSpecies(MAGICBEES, "Catty"), 45, 2); if (ExtraCells2.isModLoaded()) { tMutation.requireResource(GameRegistry.findBlock(ExtraCells2.ID, "walrus"), 0); } @@ -1608,24 +1584,22 @@ public enum GT_BeeDefinition implements IBeeDefinition { beeSpecies.setTemperature(ICY); beeSpecies.setNocturnal(); }, template -> {}, dis -> { - IBeeMutationCustom tMutation = dis.registerMutation( - getSpecies(FORESTRY, "Industrious"), - getSpecies(FORESTRY, "Heroic"), - 10); + IBeeMutationCustom tMutation = dis + .registerMutation(getSpecies(FORESTRY, "Industrious"), getSpecies(FORESTRY, "Heroic"), 10); tMutation.restrictTemperature(ICY); }), METEORICIRON(GT_BranchDefinition.SPACE, "MeteoricIron", true, new Color(0x321928), new Color(0x643250), - beeSpecies -> { - beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.SPACE), 0.04f); - beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.METEORICIRON), 0.10f); - beeSpecies.setHumidity(ARID); - beeSpecies.setTemperature(HOT); - beeSpecies.setNocturnal(); - }, template -> {}, dis -> { - IBeeMutationCustom tMutation = dis.registerMutation(SPACE, IRON, 9); - tMutation.requireResource(GregTech_API.sBlockMetal4, 7); - tMutation.addMutationCondition(new GT_Bees.DimensionMutationCondition(28, "Moon")); // Moon Dim - }), + beeSpecies -> { + beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.SPACE), 0.04f); + beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.METEORICIRON), 0.10f); + beeSpecies.setHumidity(ARID); + beeSpecies.setTemperature(HOT); + beeSpecies.setNocturnal(); + }, template -> {}, dis -> { + IBeeMutationCustom tMutation = dis.registerMutation(SPACE, IRON, 9); + tMutation.requireResource(GregTech_API.sBlockMetal4, 7); + tMutation.addMutationCondition(new GT_Bees.DimensionMutationCondition(28, "Moon")); // Moon Dim + }), DESH(GT_BranchDefinition.SPACE, "Desh", false, new Color(0x323232), new Color(0x282828), beeSpecies -> { beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.SPACE), 0.06f); beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.DESH), 0.10f); @@ -1658,25 +1632,23 @@ public enum GT_BeeDefinition implements IBeeDefinition { } }), CALLISTOICE(GT_BranchDefinition.SPACE, "CallistoIce", false, new Color(0x0074FF), new Color(0x1EB1FF), - beeSpecies -> { - beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.SPACE), 0.10f); - beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.CALLISTOICE), 0.10f); - beeSpecies.setHumidity(EnumHumidity.NORMAL); - beeSpecies.setTemperature(ICY); - beeSpecies.setHasEffect(); - }, template -> AlleleHelper.instance.set(template, EFFECT, getEffect(EXTRABEES, "freezing")), - new Consumer<>() { + beeSpecies -> { + beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.SPACE), 0.10f); + beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.CALLISTOICE), 0.10f); + beeSpecies.setHumidity(EnumHumidity.NORMAL); + beeSpecies.setTemperature(ICY); + beeSpecies.setHasEffect(); + }, template -> AlleleHelper.instance.set(template, EFFECT, getEffect(EXTRABEES, "freezing")), new Consumer<>() { - @Override - public void accept(GT_BeeDefinition dis) { - IBeeMutationCustom tMutation = dis.registerMutation(CALLISTO, getSpecies(EXTRABEES, "freezing"), 7); - if (NewHorizonsCoreMod.isModLoaded()) tMutation.requireResource( - GameRegistry.findBlock(NewHorizonsCoreMod.ID, "tile.CallistoColdIce"), - 0); - tMutation.addMutationCondition(new GT_Bees.DimensionMutationCondition(45, "Callisto")); // Callisto - // Dim - } - }), + @Override + public void accept(GT_BeeDefinition dis) { + IBeeMutationCustom tMutation = dis.registerMutation(CALLISTO, getSpecies(EXTRABEES, "freezing"), 7); + if (NewHorizonsCoreMod.isModLoaded()) + tMutation.requireResource(GameRegistry.findBlock(NewHorizonsCoreMod.ID, "tile.CallistoColdIce"), 0); + tMutation.addMutationCondition(new GT_Bees.DimensionMutationCondition(45, "Callisto")); // Callisto + // Dim + } + }), MYTRYL(GT_BranchDefinition.SPACE, "Mytryl", false, new Color(0xDAA520), new Color(0xF26404), beeSpecies -> { beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.SPACE), 0.16f); beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.MYTRYL), 0.10f); @@ -1728,44 +1700,42 @@ public enum GT_BeeDefinition implements IBeeDefinition { } }), MYSTERIOUSCRYSTAL(GT_BranchDefinition.SPACE, "MysteriousCrystal", false, new Color(0x3CB371), new Color(0x16856C), - beeSpecies -> { - beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.SPACE), 0.42f); - beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.MYSTERIOUSCRYSTAL), 0.30f); - beeSpecies.setHumidity(ARID); - beeSpecies.setTemperature(ICY); - beeSpecies.setNocturnal(); - beeSpecies.setHasEffect(); - }, template -> {}, new Consumer<>() { + beeSpecies -> { + beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.SPACE), 0.42f); + beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.MYSTERIOUSCRYSTAL), 0.30f); + beeSpecies.setHumidity(ARID); + beeSpecies.setTemperature(ICY); + beeSpecies.setNocturnal(); + beeSpecies.setHasEffect(); + }, template -> {}, new Consumer<>() { - @Override - public void accept(GT_BeeDefinition dis) { - IBeeMutationCustom tMutation = dis.registerMutation(ENCELADUS, EMERALD, 3); - if (NewHorizonsCoreMod.isModLoaded()) tMutation.requireResource( - GameRegistry.findBlock(NewHorizonsCoreMod.ID, "tile.MysteriousCrystal"), - 0); - tMutation.addMutationCondition(new GT_Bees.DimensionMutationCondition(41, "Enceladus")); // Enceladus - // Dim - } - }), + @Override + public void accept(GT_BeeDefinition dis) { + IBeeMutationCustom tMutation = dis.registerMutation(ENCELADUS, EMERALD, 3); + if (NewHorizonsCoreMod.isModLoaded()) tMutation + .requireResource(GameRegistry.findBlock(NewHorizonsCoreMod.ID, "tile.MysteriousCrystal"), 0); + tMutation.addMutationCondition(new GT_Bees.DimensionMutationCondition(41, "Enceladus")); // Enceladus + // Dim + } + }), BLACKPLUTONIUM(GT_BranchDefinition.SPACE, "BlackPlutonium", false, new Color(0x000000), new Color(0x323232), - beeSpecies -> { - beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.SPACE), 0.68f); - beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.BLACKPLUTONIUM), 0.10f); - beeSpecies.setHumidity(ARID); - beeSpecies.setTemperature(HELLISH); - beeSpecies.setNocturnal(); - beeSpecies.setHasEffect(); - }, template -> {}, new Consumer<>() { + beeSpecies -> { + beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.SPACE), 0.68f); + beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.BLACKPLUTONIUM), 0.10f); + beeSpecies.setHumidity(ARID); + beeSpecies.setTemperature(HELLISH); + beeSpecies.setNocturnal(); + beeSpecies.setHasEffect(); + }, template -> {}, new Consumer<>() { - @Override - public void accept(GT_BeeDefinition dis) { - IBeeMutationCustom tMutation = dis.registerMutation(PLUTO, PLUTONIUM, 2); - if (NewHorizonsCoreMod.isModLoaded()) tMutation.requireResource( - GameRegistry.findBlock(NewHorizonsCoreMod.ID, "tile.BlackPlutonium"), - 0); - tMutation.addMutationCondition(new GT_Bees.DimensionMutationCondition(49, "Pluto")); // Pluto Dim - } - }), + @Override + public void accept(GT_BeeDefinition dis) { + IBeeMutationCustom tMutation = dis.registerMutation(PLUTO, PLUTONIUM, 2); + if (NewHorizonsCoreMod.isModLoaded()) + tMutation.requireResource(GameRegistry.findBlock(NewHorizonsCoreMod.ID, "tile.BlackPlutonium"), 0); + tMutation.addMutationCondition(new GT_Bees.DimensionMutationCondition(49, "Pluto")); // Pluto Dim + } + }), TRINIUM(GT_BranchDefinition.SPACE, "Trinium", false, new Color(0xB0E0E6), new Color(0xC8C8D2), beeSpecies -> { beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.TRINIUM), 0.75f); beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.QUANTIUM), 0.10f); @@ -1814,9 +1784,8 @@ public enum GT_BeeDefinition implements IBeeDefinition { }), PHOBOS(GT_BranchDefinition.PLANET, "Phobos", true, new Color(0x220D05), new Color(0x7a5706), beeSpecies -> { beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.MARS), 0.25f); - if (NewHorizonsCoreMod.isModLoaded()) beeSpecies.addSpecialty( - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.PhobosStoneDust", 1, 0), - 0.10f); + if (NewHorizonsCoreMod.isModLoaded()) beeSpecies + .addSpecialty(GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.PhobosStoneDust", 1, 0), 0.10f); beeSpecies.setHumidity(ARID); beeSpecies.setTemperature(HOT); beeSpecies.setNocturnal(); @@ -1920,9 +1889,8 @@ public enum GT_BeeDefinition implements IBeeDefinition { SATURN(GT_BranchDefinition.PLANET, "Saturn", false, new Color(0xD2A472), new Color(0xF8C37B), beeSpecies -> { beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.SATURN), 0.35f); beeSpecies.addSpecialty(GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.TitanStoneDust", 1, 0), 0.05f); - beeSpecies.addSpecialty( - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.EnceladusStoneDust", 1, 0), - 0.05f); + beeSpecies + .addSpecialty(GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.EnceladusStoneDust", 1, 0), 0.05f); beeSpecies.addSpecialty(GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.EnceladusIceDust", 1, 0), 0.05f); beeSpecies.setHumidity(EnumHumidity.NORMAL); beeSpecies.setTemperature(COLD); @@ -1935,9 +1903,8 @@ public enum GT_BeeDefinition implements IBeeDefinition { }), ENCELADUS(GT_BranchDefinition.PLANET, "Enceladus", true, new Color(0xD2A472), new Color(0x193fa0), beeSpecies -> { beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.SATURN), 0.25f); - beeSpecies.addSpecialty( - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.EnceladusStoneDust", 1, 0), - 0.10f); + beeSpecies + .addSpecialty(GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.EnceladusStoneDust", 1, 0), 0.10f); beeSpecies.addSpecialty(GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.EnceladusIceDust", 1, 0), 0.10f); beeSpecies.setHumidity(EnumHumidity.NORMAL); beeSpecies.setTemperature(ICY); @@ -2071,9 +2038,8 @@ public enum GT_BeeDefinition implements IBeeDefinition { }), CENTAURI(GT_BranchDefinition.PLANET, "Centauri", false, new Color(0x2F2A14), new Color(0xB06B32), beeSpecies -> { beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.CENTAURI), 0.35f); - beeSpecies.addSpecialty( - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CentauriASurfaceDust", 1, 0), - 0.05f); + beeSpecies + .addSpecialty(GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CentauriASurfaceDust", 1, 0), 0.05f); beeSpecies.setHumidity(ARID); beeSpecies.setTemperature(HELLISH); beeSpecies.setHasEffect(); @@ -2085,9 +2051,8 @@ public enum GT_BeeDefinition implements IBeeDefinition { }), ACENTAURI(GT_BranchDefinition.PLANET, "aCentauri", false, new Color(0x2F2A14), new Color(0xa01e14), beeSpecies -> { beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.CENTAURI), 0.25f); - beeSpecies.addSpecialty( - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CentauriASurfaceDust", 1, 0), - 0.10f); + beeSpecies + .addSpecialty(GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CentauriASurfaceDust", 1, 0), 0.10f); beeSpecies.setHumidity(ARID); beeSpecies.setTemperature(HELLISH); }, template -> AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORTEST), new Consumer<>() { @@ -2148,12 +2113,10 @@ public enum GT_BeeDefinition implements IBeeDefinition { BARNARDA(GT_BranchDefinition.PLANET, "Barnarda", false, new Color(0x0D5A0D), new Color(0xE6C18D), beeSpecies -> { beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.BARNARDA), 0.35f); - beeSpecies.addSpecialty( - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.BarnardaEStoneDust", 1, 0), - 0.05f); - beeSpecies.addSpecialty( - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.BarnardaFStoneDust", 1, 0), - 0.05f); + beeSpecies + .addSpecialty(GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.BarnardaEStoneDust", 1, 0), 0.05f); + beeSpecies + .addSpecialty(GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.BarnardaFStoneDust", 1, 0), 0.05f); beeSpecies.setHumidity(ARID); beeSpecies.setTemperature(HOT); beeSpecies.setHasEffect(); @@ -2176,9 +2139,8 @@ public enum GT_BeeDefinition implements IBeeDefinition { }), BARNARDAE(GT_BranchDefinition.PLANET, "BarnardaE", false, new Color(0x0D5A0D), new Color(0x4c1f0a), beeSpecies -> { beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.BARNARDA), 0.25f); - beeSpecies.addSpecialty( - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.BarnardaEStoneDust", 1, 0), - 0.10f); + beeSpecies + .addSpecialty(GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.BarnardaEStoneDust", 1, 0), 0.10f); beeSpecies.setHumidity(ARID); beeSpecies.setTemperature(HOT); }, template -> AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORTEST), dis -> { @@ -2190,9 +2152,8 @@ public enum GT_BeeDefinition implements IBeeDefinition { }), BARNARDAF(GT_BranchDefinition.PLANET, "BarnardaF", false, new Color(0x0D5A0D), new Color(0x1e0b49), beeSpecies -> { beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.BARNARDA), 0.25f); - beeSpecies.addSpecialty( - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.BarnardaFStoneDust", 1, 0), - 0.10f); + beeSpecies + .addSpecialty(GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.BarnardaFStoneDust", 1, 0), 0.10f); beeSpecies.setHumidity(ARID); beeSpecies.setTemperature(HOT); }, template -> AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORTEST), dis -> { @@ -2218,9 +2179,8 @@ public enum GT_BeeDefinition implements IBeeDefinition { }), VEGAB(GT_BranchDefinition.PLANET, "VegaB", false, new Color(0x1A2036), new Color(0x81e261), beeSpecies -> { beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.VEGA), 0.35f); - if (NewHorizonsCoreMod.isModLoaded()) beeSpecies.addSpecialty( - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.VegaBStoneDust", 1, 0), - 0.10f); + if (NewHorizonsCoreMod.isModLoaded()) beeSpecies + .addSpecialty(GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.VegaBStoneDust", 1, 0), 0.10f); beeSpecies.setHumidity(ARID); beeSpecies.setTemperature(COLD); }, template -> AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORTEST), dis -> { @@ -2255,38 +2215,38 @@ public enum GT_BeeDefinition implements IBeeDefinition { // Infinity Line COSMICNEUTRONIUM(GT_BranchDefinition.PLANET, "CosmicNeutronium", false, new Color(0x484848), new Color(0x323232), - beeSpecies -> { - beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.COSMICNEUTRONIUM), 0.375f); - beeSpecies.setHumidity(DAMP); - beeSpecies.setTemperature(ICY); - beeSpecies.setNocturnal(); - beeSpecies.setHasEffect(); - // Makes it only work in the Mega Apiary NOTE: COMB MUST BE SPECIALITY COMB - beeSpecies.setJubilanceProvider(GT_JubilanceMegaApiary.instance); - }, template -> AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORTEST), dis -> { - IBeeMutationCustom tMutation = dis.registerMutation(NEUTRONIUM, BARNARDAF, 7, 10); - if (Avaritia.isModLoaded()) - tMutation.requireResource(GameRegistry.findBlock(Avaritia.ID, "Resource_Block"), 0); - }), + beeSpecies -> { + beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.COSMICNEUTRONIUM), 0.375f); + beeSpecies.setHumidity(DAMP); + beeSpecies.setTemperature(ICY); + beeSpecies.setNocturnal(); + beeSpecies.setHasEffect(); + // Makes it only work in the Mega Apiary NOTE: COMB MUST BE SPECIALITY COMB + beeSpecies.setJubilanceProvider(GT_JubilanceMegaApiary.instance); + }, template -> AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORTEST), dis -> { + IBeeMutationCustom tMutation = dis.registerMutation(NEUTRONIUM, BARNARDAF, 7, 10); + if (Avaritia.isModLoaded()) + tMutation.requireResource(GameRegistry.findBlock(Avaritia.ID, "Resource_Block"), 0); + }), INFINITYCATALYST(GT_BranchDefinition.PLANET, "InfinityCatalyst", false, new Color(0xFFFFFF), new Color(0xFFFFFF), - beeSpecies -> { - beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.INFINITYCATALYST), 0.015f); - beeSpecies.setHumidity(DAMP); - beeSpecies.setTemperature(HELLISH); - beeSpecies.setNocturnal(); - beeSpecies.setHasEffect(); - // Makes it only work in the Mega Apiary NOTE: COMB MUST BE SPECIALITY COMB - beeSpecies.setJubilanceProvider(GT_JubilanceMegaApiary.instance); - }, template -> { - AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORTEST); - AlleleHelper.instance.set(template, EFFECT, getEffect(EXTRABEES, "blindness")); - }, dis -> { - IMutationCustom tMutation = dis.registerMutation(DOB, COSMICNEUTRONIUM, 3, 10) - .setIsSecret(); - if (Avaritia.isModLoaded()) { - tMutation.requireResource(GameRegistry.findBlock(Avaritia.ID, "Resource_Block"), 1); - } - }), + beeSpecies -> { + beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.INFINITYCATALYST), 0.015f); + beeSpecies.setHumidity(DAMP); + beeSpecies.setTemperature(HELLISH); + beeSpecies.setNocturnal(); + beeSpecies.setHasEffect(); + // Makes it only work in the Mega Apiary NOTE: COMB MUST BE SPECIALITY COMB + beeSpecies.setJubilanceProvider(GT_JubilanceMegaApiary.instance); + }, template -> { + AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORTEST); + AlleleHelper.instance.set(template, EFFECT, getEffect(EXTRABEES, "blindness")); + }, dis -> { + IMutationCustom tMutation = dis.registerMutation(DOB, COSMICNEUTRONIUM, 3, 10) + .setIsSecret(); + if (Avaritia.isModLoaded()) { + tMutation.requireResource(GameRegistry.findBlock(Avaritia.ID, "Resource_Block"), 1); + } + }), INFINITY(GT_BranchDefinition.PLANET, "Infinity", false, new Color(0xFFFFFF), new Color(0xFFFFFF), beeSpecies -> { beeSpecies.addSpecialty(GT_Bees.combs.getStackForType(CombType.INFINITY), 0.015f); beeSpecies.setHumidity(EnumHumidity.NORMAL); @@ -2429,10 +2389,8 @@ public enum GT_BeeDefinition implements IBeeDefinition { beeSpecies.setHumidity(DAMP); beeSpecies.setHasEffect(); }, template -> AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORTEST), dis -> { - IBeeMutationCustom tMutation = dis.registerMutation( - getSpecies(MAGICBEES, "Supernatural"), - getSpecies(MAGICBEES, "Windy"), - 15); + IBeeMutationCustom tMutation = dis + .registerMutation(getSpecies(MAGICBEES, "Supernatural"), getSpecies(MAGICBEES, "Windy"), 15); tMutation.restrictTemperature(HOT); if (Thaumcraft.isModLoaded()) tMutation.requireResource(GameRegistry.findBlock(Thaumcraft.ID, "blockCrystal"), 0); @@ -2488,48 +2446,48 @@ public enum GT_BeeDefinition implements IBeeDefinition { tMutation.requireResource(GameRegistry.findBlock(Thaumcraft.ID, "blockCrystal"), 5); }), NETHERSHARD(GT_BranchDefinition.INFUSEDSHARD, "Nethershard", false, new Color(0xBE0135), new Color(0x350211), - beeSpecies -> { - beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.NETHERSHARD), 0.30f); - beeSpecies.setHumidity(ARID); - beeSpecies.setTemperature(HOT); - beeSpecies.setHasEffect(); - }, template -> AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORTEST), dis -> { - IBeeMutationCustom tMutation = dis.registerMutation(CHAOS, FIRE, 15); - tMutation.requireResource(GameRegistry.findBlock(GregTech.ID, "gt.blockgem3"), 3); - }), + beeSpecies -> { + beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.NETHERSHARD), 0.30f); + beeSpecies.setHumidity(ARID); + beeSpecies.setTemperature(HOT); + beeSpecies.setHasEffect(); + }, template -> AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORTEST), dis -> { + IBeeMutationCustom tMutation = dis.registerMutation(CHAOS, FIRE, 15); + tMutation.requireResource(GameRegistry.findBlock(GregTech.ID, "gt.blockgem3"), 3); + }), ENDSHARD(GT_BranchDefinition.INFUSEDSHARD, "Endshard", false, new Color(0x2E2E41), new Color(0x232129), - beeSpecies -> { - beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.ENDSHARD), 0.30f); - beeSpecies.setHumidity(EnumHumidity.NORMAL); - beeSpecies.setNocturnal(); - beeSpecies.setHasEffect(); - }, template -> AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORTEST), dis -> { - IBeeMutationCustom tMutation = dis.registerMutation(NETHERSHARD, ENDDUST, 15); - tMutation.restrictTemperature(ICY); - tMutation.requireResource(GameRegistry.findBlock(GregTech.ID, "gt.blockgem1"), 7); - }), + beeSpecies -> { + beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.ENDSHARD), 0.30f); + beeSpecies.setHumidity(EnumHumidity.NORMAL); + beeSpecies.setNocturnal(); + beeSpecies.setHasEffect(); + }, template -> AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORTEST), dis -> { + IBeeMutationCustom tMutation = dis.registerMutation(NETHERSHARD, ENDDUST, 15); + tMutation.restrictTemperature(ICY); + tMutation.requireResource(GameRegistry.findBlock(GregTech.ID, "gt.blockgem1"), 7); + }), // Organic branch 2.0 UNKNOWNWATER(GT_BranchDefinition.ORGANIC, "UnknownWater", false, new Color(0x4333A5), new Color(0x36ABFF), - beeSpecies -> { - beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.UNKNOWNWATER), 0.20f); - beeSpecies.setHumidity(EnumHumidity.NORMAL); - beeSpecies.setNocturnal(); - beeSpecies.setHasEffect(); - }, template -> AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORTEST), - dis -> dis.registerMutation(INFINITYCATALYST, MYSTERIOUSCRYSTAL, 5)), + beeSpecies -> { + beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.UNKNOWNWATER), 0.20f); + beeSpecies.setHumidity(EnumHumidity.NORMAL); + beeSpecies.setNocturnal(); + beeSpecies.setHasEffect(); + }, template -> AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORTEST), + dis -> dis.registerMutation(INFINITYCATALYST, MYSTERIOUSCRYSTAL, 5)), // Endgame bees JAEGERMEISTER(GT_BranchDefinition.ENDGAME, "JaegerMeister", false, new Color(0x05AD18), new Color(0xE7DAC3), - beeSpecies -> { - beeSpecies.addProduct(GT_ModHandler.getModItem(CropsPlusPlus.ID, "BppPotions", 1L, 8), 0.01f); - beeSpecies.setHumidity(EnumHumidity.NORMAL); - beeSpecies.setNocturnal(); - beeSpecies.setHasEffect(); - }, template -> AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORTEST), dis -> { - IBeeMutationCustom tMutation = dis.registerMutation(INFINITYCATALYST, NAQUADRIA, 5); - tMutation.requireResource(GameRegistry.findBlock(GregTech.ID, "gt.blockmachines"), 4684); - tMutation.addMutationCondition(new GT_Bees.DimensionMutationCondition(100, "Deep Dark")); // Deep Dark - // dim - }); + beeSpecies -> { + beeSpecies.addProduct(GT_ModHandler.getModItem(CropsPlusPlus.ID, "BppPotions", 1L, 8), 0.01f); + beeSpecies.setHumidity(EnumHumidity.NORMAL); + beeSpecies.setNocturnal(); + beeSpecies.setHasEffect(); + }, template -> AlleleHelper.instance.set(template, LIFESPAN, Lifespan.SHORTEST), dis -> { + IBeeMutationCustom tMutation = dis.registerMutation(INFINITYCATALYST, NAQUADRIA, 5); + tMutation.requireResource(GameRegistry.findBlock(GregTech.ID, "gt.blockmachines"), 4684); + tMutation.addMutationCondition(new GT_Bees.DimensionMutationCondition(100, "Deep Dark")); // Deep Dark + // dim + }); private final GT_BranchDefinition branch; private final GT_AlleleBeeSpecies species; @@ -2540,13 +2498,13 @@ public enum GT_BeeDefinition implements IBeeDefinition { private IBeeGenome genome; GT_BeeDefinition(GT_BranchDefinition branch, String binomial, boolean dominant, Color primary, Color secondary, - Consumer aSpeciesProperties, Consumer aAlleles, - Consumer aMutations) { + Consumer aSpeciesProperties, Consumer aAlleles, + Consumer aMutations) { this.mAlleles = aAlleles; this.mMutations = aMutations; this.mSpeciesProperties = aSpeciesProperties; String lowercaseName = this.toString() - .toLowerCase(Locale.ENGLISH); + .toLowerCase(Locale.ENGLISH); String species = WordUtils.capitalize(lowercaseName); String uid = "gregtech.bee.species" + species; @@ -2556,15 +2514,15 @@ public enum GT_BeeDefinition implements IBeeDefinition { this.branch = branch; this.species = new GT_AlleleBeeSpecies( - uid, - dominant, - name, - "GTNH", - description, - branch.getBranch(), - binomial, - primary, - secondary); + uid, + dominant, + name, + "GTNH", + description, + branch.getBranch(), + binomial, + primary, + secondary); } public static void initBees() { @@ -2660,22 +2618,22 @@ public enum GT_BeeDefinition implements IBeeDefinition { * chanceDivider */ private IBeeMutationCustom registerMutation(IAlleleBeeSpecies parent1, IAlleleBeeSpecies parent2, int chance, - float chanceDivider) { + float chanceDivider) { return new GT_Bee_Mutation(parent1, parent2, this.getTemplate(), chance, chanceDivider); } private IBeeMutationCustom registerMutation(GT_BeeDefinition parent1, IAlleleBeeSpecies parent2, int chance, - float chanceDivider) { + float chanceDivider) { return registerMutation(parent1.species, parent2, chance, chanceDivider); } private IBeeMutationCustom registerMutation(IAlleleBeeSpecies parent1, GT_BeeDefinition parent2, int chance, - float chanceDivider) { + float chanceDivider) { return registerMutation(parent1, parent2.species, chance, chanceDivider); } private IBeeMutationCustom registerMutation(GT_BeeDefinition parent1, GT_BeeDefinition parent2, int chance, - float chanceDivider) { + float chanceDivider) { return registerMutation(parent1.species, parent2, chance, chanceDivider); } diff --git a/src/main/java/gregtech/loaders/misc/GT_Bees.java b/src/main/java/gregtech/loaders/misc/GT_Bees.java index 49c5e7e1df..8feeb8bb1e 100644 --- a/src/main/java/gregtech/loaders/misc/GT_Bees.java +++ b/src/main/java/gregtech/loaders/misc/GT_Bees.java @@ -73,8 +73,8 @@ public class GT_Bees { noWork = new AlleleFloat("speedUnproductive", 0, false); superSpeed = new AlleleFloat("speedAccelerated", 4F, false); speedBlinding = AlleleManager.alleleRegistry.getAllele("magicbees.speedBlinding") == null - ? new AlleleFloat("speedBlinding", 2f, false) - : (IAlleleFloat) AlleleManager.alleleRegistry.getAllele("magicbees.speedBlinding"); + ? new AlleleFloat("speedBlinding", 2f, false) + : (IAlleleFloat) AlleleManager.alleleRegistry.getAllele("magicbees.speedBlinding"); blinkLife = new AlleleInteger("lifeBlink", 2, false, EnumBeeChromosome.LIFESPAN); superLife = new AlleleInteger("lifeEon", 600, false, EnumBeeChromosome.LIFESPAN); @@ -140,7 +140,7 @@ public class GT_Bees { @Override public float getChance(World world, int x, int y, int z, IAllele allele0, IAllele allele1, IGenome genome0, - IGenome genome1, IClimateProvider climate) { + IGenome genome1, IClimateProvider climate) { if (world.provider.dimensionId == dimID) return 1; return 0; } @@ -163,7 +163,7 @@ public class GT_Bees { @Override public float getChance(World world, int x, int y, int z, IAllele allele0, IAllele allele1, IGenome genome0, - IGenome genome1, IClimateProvider climate) { + IGenome genome1, IClimateProvider climate) { if (climate.getBiome().biomeID == biomeID) return 1; return 0; } diff --git a/src/main/java/gregtech/loaders/misc/GT_BranchDefinition.java b/src/main/java/gregtech/loaders/misc/GT_BranchDefinition.java index e7895837d0..ca80ad56f4 100644 --- a/src/main/java/gregtech/loaders/misc/GT_BranchDefinition.java +++ b/src/main/java/gregtech/loaders/misc/GT_BranchDefinition.java @@ -148,9 +148,9 @@ public enum GT_BranchDefinition { GT_BranchDefinition(String scientific, Consumer aBranchProperties) { this.branch = BeeManager.beeFactory.createBranch( - this.name() - .toLowerCase(), - scientific); + this.name() + .toLowerCase(), + scientific); this.mBranchProperties = aBranchProperties; } diff --git a/src/main/java/gregtech/loaders/misc/GT_CoverLoader.java b/src/main/java/gregtech/loaders/misc/GT_CoverLoader.java index d393dbc831..dc83202724 100644 --- a/src/main/java/gregtech/loaders/misc/GT_CoverLoader.java +++ b/src/main/java/gregtech/loaders/misc/GT_CoverLoader.java @@ -19,24 +19,24 @@ public class GT_CoverLoader implements Runnable { GregTech_API.registerCover(new ItemStack(Blocks.carpet, 1, i), TextureFactory.of(Blocks.wool, i), null); } GregTech_API.registerCover( - GT_ModHandler.getIC2Item("reactorVent", 1L, 1), - TextureFactory.of(VENT_NORMAL), - new GT_Cover_Vent(1)); + GT_ModHandler.getIC2Item("reactorVent", 1L, 1), + TextureFactory.of(VENT_NORMAL), + new GT_Cover_Vent(1)); GregTech_API.registerCover( - GT_ModHandler.getIC2Item("reactorVentCore", 1L, 1), - TextureFactory.of(VENT_NORMAL), - new GT_Cover_Vent(1)); + GT_ModHandler.getIC2Item("reactorVentCore", 1L, 1), + TextureFactory.of(VENT_NORMAL), + new GT_Cover_Vent(1)); GregTech_API.registerCover( - GT_ModHandler.getIC2Item("reactorVentGold", 1L, 1), - TextureFactory.of(VENT_ADVANCED), - new GT_Cover_Vent(2)); + GT_ModHandler.getIC2Item("reactorVentGold", 1L, 1), + TextureFactory.of(VENT_ADVANCED), + new GT_Cover_Vent(2)); GregTech_API.registerCover( - GT_ModHandler.getIC2Item("reactorVentSpread", 1L), - TextureFactory.of(VENT_NORMAL), - new GT_Cover_Vent(2)); + GT_ModHandler.getIC2Item("reactorVentSpread", 1L), + TextureFactory.of(VENT_NORMAL), + new GT_Cover_Vent(2)); GregTech_API.registerCover( - GT_ModHandler.getIC2Item("reactorVentDiamond", 1L, 1), - TextureFactory.of(VENT_ADVANCED), - new GT_Cover_Vent(3)); + GT_ModHandler.getIC2Item("reactorVentDiamond", 1L, 1), + TextureFactory.of(VENT_ADVANCED), + new GT_Cover_Vent(3)); } } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingAll.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingAll.java index 39b33b2d5f..2f390b25e8 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingAll.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingAll.java @@ -14,11 +14,11 @@ public class ProcessingAll implements gregtech.api.interfaces.IOreRecipeRegistra @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { - if (((aStack.getItem() instanceof net.minecraft.item.ItemBlock)) && (aPrefix.mDefaultStackSize - < aStack.getItem() - .getItemStackLimit(aStack))) + ItemStack aStack) { + if (((aStack.getItem() instanceof net.minecraft.item.ItemBlock)) + && (aPrefix.mDefaultStackSize < aStack.getItem() + .getItemStackLimit(aStack))) aStack.getItem() - .setMaxStackSize(aPrefix.mDefaultStackSize); + .setMaxStackSize(aPrefix.mDefaultStackSize); } } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingArrows.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingArrows.java index 9eb2fe13e0..0e5a2ae241 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingArrows.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingArrows.java @@ -19,104 +19,103 @@ public class ProcessingArrows implements gregtech.api.interfaces.IOreRecipeRegis @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { ItemStack tOutput = GT_Utility.copyAmount(1L, aStack); GT_Utility.updateItemStack(tOutput); GT_Utility.ItemNBT.addEnchantment( - tOutput, - Enchantment.smite, - EnchantmentHelper.getEnchantmentLevel(Enchantment.smite.effectId, tOutput) + 3); + tOutput, + Enchantment.smite, + EnchantmentHelper.getEnchantmentLevel(Enchantment.smite.effectId, tOutput) + 3); GT_Values.RA.addChemicalBathRecipe( - GT_Utility.copyAmount(1L, aStack), - Materials.HolyWater.getFluid(25L), - tOutput, - null, - null, - null, - 100, - 2); + GT_Utility.copyAmount(1L, aStack), + Materials.HolyWater.getFluid(25L), + tOutput, + null, + null, + null, + 100, + 2); tOutput = GT_Utility.copyAmount(1L, aStack); GT_Utility.updateItemStack(tOutput); GT_Utility.ItemNBT.addEnchantment( - tOutput, - Enchantment.fireAspect, - EnchantmentHelper.getEnchantmentLevel(Enchantment.fireAspect.effectId, tOutput) + 3); + tOutput, + Enchantment.fireAspect, + EnchantmentHelper.getEnchantmentLevel(Enchantment.fireAspect.effectId, tOutput) + 3); GT_Values.RA.addChemicalBathRecipe( - GT_Utility.copyAmount(1L, aStack), - Materials.FierySteel.getFluid(25L), - tOutput, - null, - null, - null, - 100, - 2); + GT_Utility.copyAmount(1L, aStack), + Materials.FierySteel.getFluid(25L), + tOutput, + null, + null, + null, + 100, + 2); tOutput = GT_Utility.copyAmount(1L, aStack); GT_Utility.updateItemStack(tOutput); GT_Utility.ItemNBT.addEnchantment( - tOutput, - Enchantment.fireAspect, - EnchantmentHelper.getEnchantmentLevel(Enchantment.fireAspect.effectId, tOutput) + 1); + tOutput, + Enchantment.fireAspect, + EnchantmentHelper.getEnchantmentLevel(Enchantment.fireAspect.effectId, tOutput) + 1); GT_Values.RA.addChemicalBathRecipe( - GT_Utility.copyAmount(1L, aStack), - Materials.Blaze.getMolten(18L), - tOutput, - null, - null, - null, - 100, - 2); + GT_Utility.copyAmount(1L, aStack), + Materials.Blaze.getMolten(18L), + tOutput, + null, + null, + null, + 100, + 2); tOutput = GT_Utility.copyAmount(1L, aStack); GT_Utility.updateItemStack(tOutput); GT_Utility.ItemNBT.addEnchantment( - tOutput, - Enchantment.knockback, - EnchantmentHelper.getEnchantmentLevel(Enchantment.knockback.effectId, tOutput) + 1); + tOutput, + Enchantment.knockback, + EnchantmentHelper.getEnchantmentLevel(Enchantment.knockback.effectId, tOutput) + 1); GT_Values.RA.addChemicalBathRecipe( - GT_Utility.copyAmount(1L, aStack), - Materials.Rubber.getMolten(18L), - tOutput, - null, - null, - null, - 100, - 2); + GT_Utility.copyAmount(1L, aStack), + Materials.Rubber.getMolten(18L), + tOutput, + null, + null, + null, + 100, + 2); tOutput = GT_Utility.copyAmount(1L, aStack); GT_Utility.updateItemStack(tOutput); GT_Utility.ItemNBT.addEnchantment( - tOutput, - gregtech.api.enchants.Enchantment_EnderDamage.INSTANCE, - EnchantmentHelper.getEnchantmentLevel( - gregtech.api.enchants.Enchantment_EnderDamage.INSTANCE.effectId, - tOutput) + 1); + tOutput, + gregtech.api.enchants.Enchantment_EnderDamage.INSTANCE, + EnchantmentHelper + .getEnchantmentLevel(gregtech.api.enchants.Enchantment_EnderDamage.INSTANCE.effectId, tOutput) + 1); GT_Values.RA.addChemicalBathRecipe( - GT_Utility.copyAmount(1L, aStack), - Materials.Mercury.getFluid(25L), - tOutput, - null, - null, - null, - 100, - 2); + GT_Utility.copyAmount(1L, aStack), + Materials.Mercury.getFluid(25L), + tOutput, + null, + null, + null, + 100, + 2); if ((aMaterial.mUnificatable) && (aMaterial.mMaterialInto == aMaterial) - && !aMaterial.contains(SubTag.NO_WORKING)) { + && !aMaterial.contains(SubTag.NO_WORKING)) { switch (aPrefix) { case arrowGtWood: GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.arrowGtWood, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { " A", " S ", "F ", 'S', OrePrefixes.stick.get(Materials.Wood), 'F', - OreDictNames.craftingFeather, 'A', OrePrefixes.toolHeadArrow.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.arrowGtWood, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { " A", " S ", "F ", 'S', OrePrefixes.stick.get(Materials.Wood), 'F', + OreDictNames.craftingFeather, 'A', OrePrefixes.toolHeadArrow.get(aMaterial) }); case arrowGtPlastic: GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.arrowGtPlastic, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { " A", " S ", "F ", 'S', OrePrefixes.stick.get(Materials.Plastic), 'F', - OreDictNames.craftingFeather, 'A', OrePrefixes.toolHeadArrow.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.arrowGtPlastic, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { " A", " S ", "F ", 'S', OrePrefixes.stick.get(Materials.Plastic), 'F', + OreDictNames.craftingFeather, 'A', OrePrefixes.toolHeadArrow.get(aMaterial) }); default: break; } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingBeans.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingBeans.java index 9fdf755c8a..9e57768273 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingBeans.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingBeans.java @@ -16,9 +16,9 @@ public class ProcessingBeans implements gregtech.api.interfaces.IOreRecipeRegist @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { if (aOreDictName.equals("beansCocoa")) GT_ModHandler.addPulverisationRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cocoa, 1L)); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cocoa, 1L)); } } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingBlock.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingBlock.java index 212459ab9c..5add59e42d 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingBlock.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingBlock.java @@ -18,17 +18,17 @@ public class ProcessingBlock implements gregtech.api.interfaces.IOreRecipeRegist @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { if (aMaterial != Materials.Clay && aMaterial != Materials.Basalt) { if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { GT_Values.RA.addCutterRecipe( - GT_Utility.copyAmount(1L, aStack), - aMaterial == MaterialsBotania.Livingrock || aMaterial == MaterialsBotania.Livingwood - || aMaterial == MaterialsBotania.Dreamwood ? GT_Utility.getIntegratedCircuit(3) : null, - GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 9L), - null, - (int) Math.max(aMaterial.getMass() * 10L, 1L), - 30); + GT_Utility.copyAmount(1L, aStack), + aMaterial == MaterialsBotania.Livingrock || aMaterial == MaterialsBotania.Livingwood + || aMaterial == MaterialsBotania.Dreamwood ? GT_Utility.getIntegratedCircuit(3) : null, + GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 9L), + null, + (int) Math.max(aMaterial.getMass() * 10L, 1L), + 30); } } @@ -38,66 +38,42 @@ public class ProcessingBlock implements gregtech.api.interfaces.IOreRecipeRegist GT_ModHandler.removeRecipeDelayed(GT_Utility.copyAmount(1L, aStack)); - if (tStack1 != null) GT_ModHandler.removeRecipeDelayed( - tStack1, - tStack1, - tStack1, - tStack1, - tStack1, - tStack1, - tStack1, - tStack1, - tStack1); - if (tStack2 != null) GT_ModHandler.removeRecipeDelayed( - tStack2, - tStack2, - tStack2, - tStack2, - tStack2, - tStack2, - tStack2, - tStack2, - tStack2); + if (tStack1 != null) GT_ModHandler + .removeRecipeDelayed(tStack1, tStack1, tStack1, tStack1, tStack1, tStack1, tStack1, tStack1, tStack1); + if (tStack2 != null) GT_ModHandler + .removeRecipeDelayed(tStack2, tStack2, tStack2, tStack2, tStack2, tStack2, tStack2, tStack2, tStack2); if (tStack3 != null) { - GT_ModHandler.removeRecipeDelayed( - tStack3, - tStack3, - tStack3, - tStack3, - tStack3, - tStack3, - tStack3, - tStack3, - tStack3); + GT_ModHandler + .removeRecipeDelayed(tStack3, tStack3, tStack3, tStack3, tStack3, tStack3, tStack3, tStack3, tStack3); } if (aMaterial.mStandardMoltenFluid != null) { if (!(aMaterial == Materials.AnnealedCopper || aMaterial == Materials.WroughtIron)) { if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { GT_Values.RA.addFluidSolidifierRecipe( - ItemList.Shape_Mold_Block.get(0L), - aMaterial.getMolten(1296L), - GT_OreDictUnificator.get(OrePrefixes.block, aMaterial, 1L), - 288, - 8); + ItemList.Shape_Mold_Block.get(0L), + aMaterial.getMolten(1296L), + GT_OreDictUnificator.get(OrePrefixes.block, aMaterial, 1L), + 288, + 8); } } } if (GregTech_API.sRecipeFile.get( - ConfigCategories.Recipes.storageblockcrafting, - OrePrefixes.block.get(aMaterial) - .toString(), - false)) { + ConfigCategories.Recipes.storageblockcrafting, + OrePrefixes.block.get(aMaterial) + .toString(), + false)) { if ((tStack1 == null) && (tStack2 == null) && (tStack3 != null)) GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.block, aMaterial, 1L), - new Object[] { "XXX", "XXX", "XXX", 'X', OrePrefixes.dust.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.block, aMaterial, 1L), + new Object[] { "XXX", "XXX", "XXX", 'X', OrePrefixes.dust.get(aMaterial) }); if (tStack2 != null) GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.block, aMaterial, 1L), - new Object[] { "XXX", "XXX", "XXX", 'X', OrePrefixes.gem.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.block, aMaterial, 1L), + new Object[] { "XXX", "XXX", "XXX", 'X', OrePrefixes.gem.get(aMaterial) }); if (tStack1 != null) { GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.block, aMaterial, 1L), - new Object[] { "XXX", "XXX", "XXX", 'X', OrePrefixes.ingot.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.block, aMaterial, 1L), + new Object[] { "XXX", "XXX", "XXX", 'X', OrePrefixes.ingot.get(aMaterial) }); } } if (tStack1 != null) tStack1.stackSize = 9; @@ -106,10 +82,10 @@ public class ProcessingBlock implements gregtech.api.interfaces.IOreRecipeRegist GT_Values.RA.addForgeHammerRecipe(aStack, tStack2, 100, 24); if (GregTech_API.sRecipeFile.get( - ConfigCategories.Recipes.storageblockdecrafting, - OrePrefixes.block.get(aMaterial) - .toString(), - tStack2 != null)) { + ConfigCategories.Recipes.storageblockdecrafting, + OrePrefixes.block.get(aMaterial) + .toString(), + tStack2 != null)) { if (tStack3 != null) GT_ModHandler.addShapelessCraftingRecipe(tStack3, new Object[] { OrePrefixes.block.get(aMaterial) }); if (tStack2 != null) @@ -120,21 +96,21 @@ public class ProcessingBlock implements gregtech.api.interfaces.IOreRecipeRegist if (!OrePrefixes.block.isIgnored(aMaterial)) { GT_ModHandler.addCompressionRecipe( - GT_OreDictUnificator.get(OrePrefixes.ingot, aMaterial, 9L), - GT_OreDictUnificator.get(OrePrefixes.block, aMaterial, 1L), - 300, - calculateRecipeEU(aMaterial, 2)); + GT_OreDictUnificator.get(OrePrefixes.ingot, aMaterial, 9L), + GT_OreDictUnificator.get(OrePrefixes.block, aMaterial, 1L), + 300, + calculateRecipeEU(aMaterial, 2)); } switch (aMaterial.mName) { case "Mercury" -> System.err.println( - "'blockQuickSilver'?, In which Ice Desert can you actually place this as a solid Block? On Pluto Greg :)"); + "'blockQuickSilver'?, In which Ice Desert can you actually place this as a solid Block? On Pluto Greg :)"); case "Iron", "WroughtIron", "Steel" -> GT_Values.RA.addAssemblerRecipe( - ItemList.IC2_Compressed_Coal_Ball.get(8L), - GT_Utility.copyAmount(1L, aStack), - ItemList.IC2_Compressed_Coal_Chunk.get(1L), - 400, - 4); + ItemList.IC2_Compressed_Coal_Ball.get(8L), + GT_Utility.copyAmount(1L, aStack), + ItemList.IC2_Compressed_Coal_Chunk.get(1L), + 400, + 4); } } } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingBolt.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingBolt.java index 96acfa1f17..278b7461ec 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingBolt.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingBolt.java @@ -15,14 +15,14 @@ public class ProcessingBolt implements gregtech.api.interfaces.IOreRecipeRegistr @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { if ((aMaterial.mUnificatable) && (aMaterial.mMaterialInto == aMaterial) - && !aMaterial.contains(SubTag.NO_WORKING)) { + && !aMaterial.contains(SubTag.NO_WORKING)) { GT_ModHandler.addCraftingRecipe( - GT_Utility.copyAmount(2L, aStack), - GT_Proxy.tBits, - new Object[] { "s ", " X", 'X', OrePrefixes.stick.get(aMaterial) }); + GT_Utility.copyAmount(2L, aStack), + GT_Proxy.tBits, + new Object[] { "s ", " X", 'X', OrePrefixes.stick.get(aMaterial) }); } } } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingCell.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingCell.java index c7c92b8daf..9d3475bcc8 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingCell.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingCell.java @@ -23,7 +23,7 @@ public class ProcessingCell implements IOreRecipeRegistrator { @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { switch (aPrefix) { case cell -> { if (aMaterial == Materials.Empty) { @@ -34,12 +34,12 @@ public class ProcessingCell implements IOreRecipeRegistrator { } else { if (aMaterial.mFuelPower > 0) { GT_Values.RA.addFuel( - GT_Utility.copyAmount(1L, aStack), - GT_Utility.getFluidForFilledItem(aStack, true) == null - ? GT_Utility.getContainerItem(aStack, true) - : null, - aMaterial.mFuelPower, - aMaterial.mFuelType); + GT_Utility.copyAmount(1L, aStack), + GT_Utility.getFluidForFilledItem(aStack, true) == null + ? GT_Utility.getContainerItem(aStack, true) + : null, + aMaterial.mFuelPower, + aMaterial.mFuelType); } if ((aMaterial.mMaterialList.size() > 0) && ((aMaterial.mExtraData & 0x3) != 0)) { int tAllAmount = 0; @@ -48,9 +48,9 @@ public class ProcessingCell implements IOreRecipeRegistrator { } long tItemAmount = 0L; long tCapsuleCount = GT_ModHandler.getCapsuleCellContainerCountMultipliedWithStackSize(aStack) - * -tAllAmount; + * -tAllAmount; long tDensityMultiplier = aMaterial.getDensity() > 3628800L ? aMaterial.getDensity() / 3628800L - : 1L; + : 1L; ArrayList tList = new ArrayList<>(); for (MaterialStack tMat : aMaterial.mMaterialList) { if (tMat.mAmount > 0L) { @@ -60,34 +60,29 @@ public class ProcessingCell implements IOreRecipeRegistrator { } else { tStack = GT_OreDictUnificator.get(OrePrefixes.dust, tMat.mMaterial, tMat.mAmount); if (tStack == null) { - tStack = GT_OreDictUnificator.get( - OrePrefixes.cell, - tMat.mMaterial, - tMat.mAmount); + tStack = GT_OreDictUnificator + .get(OrePrefixes.cell, tMat.mMaterial, tMat.mAmount); } } if (tItemAmount + tMat.mAmount * 3628800L - <= aStack.getMaxStackSize() * aMaterial.getDensity()) { + <= aStack.getMaxStackSize() * aMaterial.getDensity()) { tItemAmount += tMat.mAmount * 3628800L; if (tStack != null) { tStack.stackSize = ((int) (tStack.stackSize * tDensityMultiplier)); while ((tStack.stackSize > 64) - && (tCapsuleCount - + GT_ModHandler.getCapsuleCellContainerCount(tStack) * 64L < 0L - ? tList.size() < 5 - : tList.size() < 6) - && (tCapsuleCount - + GT_ModHandler.getCapsuleCellContainerCount(tStack) * 64L - <= 64L)) { + && (tCapsuleCount + GT_ModHandler.getCapsuleCellContainerCount(tStack) * 64L + < 0L ? tList.size() < 5 : tList.size() < 6) + && (tCapsuleCount + GT_ModHandler.getCapsuleCellContainerCount(tStack) * 64L + <= 64L)) { tCapsuleCount += GT_ModHandler.getCapsuleCellContainerCount(tStack) * 64L; tList.add(GT_Utility.copyAmount(64L, tStack)); tStack.stackSize -= 64; } - int tThisCapsuleCount = GT_ModHandler.getCapsuleCellContainerCountMultipliedWithStackSize( - tStack); + int tThisCapsuleCount = GT_ModHandler + .getCapsuleCellContainerCountMultipliedWithStackSize(tStack); if (tStack.stackSize > 0 && tCapsuleCount + tThisCapsuleCount <= 64L) { if (tCapsuleCount + tThisCapsuleCount < 0L ? tList.size() < 5 - : tList.size() < 6) { + : tList.size() < 6) { tCapsuleCount += tThisCapsuleCount; tList.add(tStack); } @@ -102,45 +97,45 @@ public class ProcessingCell implements IOreRecipeRegistrator { if (GT_Utility.getFluidForFilledItem(aStack, true) == null) { // dust stuffed cell e.g. Phosphate, Phosphorous Pentoxide GT_Values.RA.addElectrolyzerRecipe( - GT_Utility.copyAmount(tItemAmount, aStack), - tCapsuleCount <= 0L ? 0 : (int) tCapsuleCount, - tList.get(0), - tList.size() >= 2 ? tList.get(1) : null, - tList.size() >= 3 ? tList.get(2) : null, - tList.size() >= 4 ? tList.get(3) : null, - tList.size() >= 5 ? tList.get(4) : null, - tCapsuleCount >= 0L ? tList.size() >= 6 ? tList.get(5) : null - : ItemList.Cell_Empty.get(-tCapsuleCount), - (int) Math.max(1L, Math.abs(aMaterial.getProtons() * 2L * tItemAmount)), - Math.min(4, tList.size()) * 30); + GT_Utility.copyAmount(tItemAmount, aStack), + tCapsuleCount <= 0L ? 0 : (int) tCapsuleCount, + tList.get(0), + tList.size() >= 2 ? tList.get(1) : null, + tList.size() >= 3 ? tList.get(2) : null, + tList.size() >= 4 ? tList.get(3) : null, + tList.size() >= 5 ? tList.get(4) : null, + tCapsuleCount >= 0L ? tList.size() >= 6 ? tList.get(5) : null + : ItemList.Cell_Empty.get(-tCapsuleCount), + (int) Math.max(1L, Math.abs(aMaterial.getProtons() * 2L * tItemAmount)), + Math.min(4, tList.size()) * 30); } else { long tCellBalance = tCapsuleCount + tItemAmount - 1; GT_Values.RA.addElectrolyzerRecipe( - aStack, - tCellBalance <= 0L ? 0 : (int) tCellBalance, - tList.get(0), - tList.size() >= 2 ? tList.get(1) : null, - tList.size() >= 3 ? tList.get(2) : null, - tList.size() >= 4 ? tList.get(3) : null, - tList.size() >= 5 ? tList.get(4) : null, - tCapsuleCount >= 0L ? tList.size() >= 6 ? tList.get(5) : null - : tCellBalance < 0 ? ItemList.Cell_Empty.get(-tCellBalance) : null, - (int) Math.max(1L, Math.abs(aMaterial.getProtons() * 8L * tItemAmount)), - Math.min(4, tList.size()) * 30); - } - } - if ((aMaterial.mExtraData & 0x2) != 0) { - GT_Values.RA.addCentrifugeRecipe( - GT_Utility.copyAmount(tItemAmount, aStack), - tCapsuleCount <= 0L ? 0 : (int) tCapsuleCount, + aStack, + tCellBalance <= 0L ? 0 : (int) tCellBalance, tList.get(0), tList.size() >= 2 ? tList.get(1) : null, tList.size() >= 3 ? tList.get(2) : null, tList.size() >= 4 ? tList.get(3) : null, tList.size() >= 5 ? tList.get(4) : null, tCapsuleCount >= 0L ? tList.size() >= 6 ? tList.get(5) : null - : ItemList.Cell_Empty.get(-tCapsuleCount), - (int) Math.max(1L, Math.abs(aMaterial.getMass() * 2L * tItemAmount))); + : tCellBalance < 0 ? ItemList.Cell_Empty.get(-tCellBalance) : null, + (int) Math.max(1L, Math.abs(aMaterial.getProtons() * 8L * tItemAmount)), + Math.min(4, tList.size()) * 30); + } + } + if ((aMaterial.mExtraData & 0x2) != 0) { + GT_Values.RA.addCentrifugeRecipe( + GT_Utility.copyAmount(tItemAmount, aStack), + tCapsuleCount <= 0L ? 0 : (int) tCapsuleCount, + tList.get(0), + tList.size() >= 2 ? tList.get(1) : null, + tList.size() >= 3 ? tList.get(2) : null, + tList.size() >= 4 ? tList.get(3) : null, + tList.size() >= 5 ? tList.get(4) : null, + tCapsuleCount >= 0L ? tList.size() >= 6 ? tList.get(5) : null + : ItemList.Cell_Empty.get(-tCapsuleCount), + (int) Math.max(1L, Math.abs(aMaterial.getMass() * 2L * tItemAmount))); } } } @@ -151,16 +146,16 @@ public class ProcessingCell implements IOreRecipeRegistrator { GT_ModHandler.removeRecipeByOutputDelayed(aStack); } else { GT_Values.RA.addFuel( - GT_Utility.copyAmount(1L, aStack), - GT_Utility.getFluidForFilledItem(aStack, true) == null - ? GT_Utility.getContainerItem(aStack, true) - : null, - (int) Math.max(1024L, 1024L * aMaterial.getMass()), - 4); + GT_Utility.copyAmount(1L, aStack), + GT_Utility.getFluidForFilledItem(aStack, true) == null + ? GT_Utility.getContainerItem(aStack, true) + : null, + (int) Math.max(1024L, 1024L * aMaterial.getMass()), + 4); GT_Values.RA.addVacuumFreezerRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.cell, aMaterial, 1L), - (int) Math.max(aMaterial.getMass() * 2L, 1L)); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.cell, aMaterial, 1L), + (int) Math.max(aMaterial.getMass() * 2L, 1L)); } } default -> {} diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingCircuit.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingCircuit.java index 43a0656ae4..c5e0e9ce0d 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingCircuit.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingCircuit.java @@ -18,7 +18,7 @@ public class ProcessingCircuit implements gregtech.api.interfaces.IOreRecipeRegi @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { if (gregtech.api.util.GT_OreDictUnificator.isBlacklisted(aStack) && aModName.equals(GregTech.ID)) return; switch (aMaterial.mName) { case "Good", "Data", "Elite", "Master", "Ultimate", "Superconductor", "Infinite", "Bio" -> { @@ -29,16 +29,15 @@ public class ProcessingCircuit implements gregtech.api.interfaces.IOreRecipeRegi case "Basic" -> { GT_ModHandler.removeRecipeByOutputDelayed(aStack); GT_ModHandler.addCraftingRecipe( - aStack, - GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "RIR", "VBV", "CCC", 'R', ItemList.Circuit_Parts_Resistor.get(1), 'C', - GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.RedAlloy, 1), 'V', - ItemList.Circuit_Parts_Vacuum_Tube.get(1), 'B', - ItemList.Circuit_Board_Coated_Basic.get(1), 'I', - ItemList.IC2_Item_Casing_Steel.get(1) }); + aStack, + GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "RIR", "VBV", "CCC", 'R', ItemList.Circuit_Parts_Resistor.get(1), 'C', + GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.RedAlloy, 1), 'V', + ItemList.Circuit_Parts_Vacuum_Tube.get(1), 'B', ItemList.Circuit_Board_Coated_Basic.get(1), 'I', + ItemList.IC2_Item_Casing_Steel.get(1) }); GT_ModHandler.addShapelessCraftingRecipe( - GT_ModHandler.getIC2Item("electronicCircuit", 1L), - new Object[] { ItemList.Circuit_Integrated.getWildcard(1L) }); + GT_ModHandler.getIC2Item("electronicCircuit", 1L), + new Object[] { ItemList.Circuit_Integrated.getWildcard(1L) }); } } } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingCompressed.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingCompressed.java index 86478eb3d7..725d382dc1 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingCompressed.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingCompressed.java @@ -17,12 +17,10 @@ public class ProcessingCompressed implements IOreRecipeRegistrator { @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { GT_ModHandler.removeRecipeByOutputDelayed(aStack); - GregTech_API.registerCover( - aStack, - TextureFactory.of(aMaterial.mIconSet.mTextures[72], aMaterial.mRGBa, false), - null); + GregTech_API + .registerCover(aStack, TextureFactory.of(aMaterial.mIconSet.mTextures[72], aMaterial.mRGBa, false), null); // GT_RecipeRegistrator.registerUsagesForMaterials(null, false, GT_Utility.copyAmount(1L, aStack)); } } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingCrafting.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingCrafting.java index 2e9cb9a1d1..c81b97408a 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingCrafting.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingCrafting.java @@ -23,370 +23,370 @@ public class ProcessingCrafting implements gregtech.api.interfaces.IOreRecipeReg @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { switch (aOreDictName) { case "craftingQuartz" -> GT_Values.RA.addAssemblerRecipe( - new ItemStack(Blocks.redstone_torch, 3, 32767), - GT_Utility.copyAmount(1L, aStack), - Materials.Concrete.getMolten(144L), - new ItemStack(net.minecraft.init.Items.comparator, 1, 0), - 800, - 1); + new ItemStack(Blocks.redstone_torch, 3, 32767), + GT_Utility.copyAmount(1L, aStack), + Materials.Concrete.getMolten(144L), + new ItemStack(net.minecraft.init.Items.comparator, 1, 0), + 800, + 1); case "craftingWireCopper", "craftingWireTin" -> GT_Values.RA.addAssemblerRecipe( - ItemList.Circuit_Basic.get(1L), - GT_Utility.copyAmount(1L, aStack), - GT_ModHandler.getIC2Item("frequencyTransmitter", 1L), - 800, - 1); + ItemList.Circuit_Basic.get(1L), + GT_Utility.copyAmount(1L, aStack), + GT_ModHandler.getIC2Item("frequencyTransmitter", 1L), + 800, + 1); case "craftingLensBlue" -> { GT_Values.RA.addLaserEngraverRecipe( - GT_OreDictUnificator.get(OrePrefixes.block, Materials.Iron, 1L), - GT_Utility.copyAmount(0L, aStack), - GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 13), - 2000, - 1920); - GT_Values.RA.addLaserEngraverRecipe( - GT_OreDictUnificator.get(OrePrefixes.block, Materials.WroughtIron, 1L), - GT_Utility.copyAmount(0L, aStack), - GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 13), - 2000, - 1920); - GT_Values.RA.addLaserEngraverRecipe( - ItemList.IC2_LapotronCrystal.getWildcard(1L), - GT_Utility.copyAmount(0L, aStack), - ItemList.Circuit_Parts_Crystal_Chip_Master.get(3L), - 900, - 480, - true); - GT_Values.RA.addLaserEngraverRecipe( - ItemList.Circuit_Chip_CrystalCPU.get(1L), - GT_Utility.copyAmount(0L, aStack), - ItemList.Circuit_Chip_CrystalSoC.get(1), - 600, - 40000, - true); - GT_Values.RA.addLaserEngraverRecipe( - ItemList.Circuit_Silicon_Wafer2.get(1), - GT_Utility.copyAmount(0L, aStack), - ItemList.Circuit_Wafer_PIC.get(1), - 1200, - 480, - true); - GT_Values.RA.addLaserEngraverRecipe( - ItemList.Circuit_Silicon_Wafer3.get(1), - GT_Utility.copyAmount(0L, aStack), - ItemList.Circuit_Wafer_PIC.get(4), - 800, - 1920, - true); - GT_Values.RA.addLaserEngraverRecipe( - ItemList.Circuit_Silicon_Wafer5.get(1), - GT_Utility.copyAmount(0L, aStack), - ItemList.Circuit_Wafer_QPIC.get(1), - 2400, - 500000, - true); + GT_OreDictUnificator.get(OrePrefixes.block, Materials.Iron, 1L), + GT_Utility.copyAmount(0L, aStack), + GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 13), + 2000, + 1920); + GT_Values.RA.addLaserEngraverRecipe( + GT_OreDictUnificator.get(OrePrefixes.block, Materials.WroughtIron, 1L), + GT_Utility.copyAmount(0L, aStack), + GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 13), + 2000, + 1920); + GT_Values.RA.addLaserEngraverRecipe( + ItemList.IC2_LapotronCrystal.getWildcard(1L), + GT_Utility.copyAmount(0L, aStack), + ItemList.Circuit_Parts_Crystal_Chip_Master.get(3L), + 900, + 480, + true); + GT_Values.RA.addLaserEngraverRecipe( + ItemList.Circuit_Chip_CrystalCPU.get(1L), + GT_Utility.copyAmount(0L, aStack), + ItemList.Circuit_Chip_CrystalSoC.get(1), + 600, + 40000, + true); + GT_Values.RA.addLaserEngraverRecipe( + ItemList.Circuit_Silicon_Wafer2.get(1), + GT_Utility.copyAmount(0L, aStack), + ItemList.Circuit_Wafer_PIC.get(1), + 1200, + 480, + true); + GT_Values.RA.addLaserEngraverRecipe( + ItemList.Circuit_Silicon_Wafer3.get(1), + GT_Utility.copyAmount(0L, aStack), + ItemList.Circuit_Wafer_PIC.get(4), + 800, + 1920, + true); + GT_Values.RA.addLaserEngraverRecipe( + ItemList.Circuit_Silicon_Wafer5.get(1), + GT_Utility.copyAmount(0L, aStack), + ItemList.Circuit_Wafer_QPIC.get(1), + 2400, + 500000, + true); } case "craftingLensYellow" -> { GT_Values.RA.addLaserEngraverRecipe( - GT_OreDictUnificator.get(OrePrefixes.block, Materials.Iron, 1L), - GT_Utility.copyAmount(0L, aStack), - GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 14), - 2000, - 1920); - GT_Values.RA.addLaserEngraverRecipe( - GT_OreDictUnificator.get(OrePrefixes.block, Materials.WroughtIron, 1L), - GT_Utility.copyAmount(0L, aStack), - GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 14), - 2000, - 1920); - GT_Values.RA.addLaserEngraverRecipe( - ItemList.Circuit_Silicon_Wafer.get(1), - GT_Utility.copyAmount(0L, aStack), - ItemList.Circuit_Wafer_LPIC.get(1), - 800, - 120, - false); - GT_Values.RA.addLaserEngraverRecipe( - ItemList.Circuit_Silicon_Wafer2.get(1), - GT_Utility.copyAmount(0L, aStack), - ItemList.Circuit_Wafer_LPIC.get(4), - 600, - 480, - true); - GT_Values.RA.addLaserEngraverRecipe( - ItemList.Circuit_Silicon_Wafer3.get(1), - GT_Utility.copyAmount(0L, aStack), - ItemList.Circuit_Wafer_SoC.get(1), - 900, - 1920, - true); - GT_Values.RA.addLaserEngraverRecipe( - ItemList.Circuit_Silicon_Wafer4.get(1), - GT_Utility.copyAmount(0L, aStack), - ItemList.Circuit_Wafer_SoC.get(4), - 600, - 7680, - true); - GT_Values.RA.addLaserEngraverRecipe( - ItemList.Circuit_Silicon_Wafer5.get(1), - GT_Utility.copyAmount(0L, aStack), - ItemList.Circuit_Wafer_SoC.get(8), - 300, - 30720, - true); + GT_OreDictUnificator.get(OrePrefixes.block, Materials.Iron, 1L), + GT_Utility.copyAmount(0L, aStack), + GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 14), + 2000, + 1920); + GT_Values.RA.addLaserEngraverRecipe( + GT_OreDictUnificator.get(OrePrefixes.block, Materials.WroughtIron, 1L), + GT_Utility.copyAmount(0L, aStack), + GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 14), + 2000, + 1920); + GT_Values.RA.addLaserEngraverRecipe( + ItemList.Circuit_Silicon_Wafer.get(1), + GT_Utility.copyAmount(0L, aStack), + ItemList.Circuit_Wafer_LPIC.get(1), + 800, + 120, + false); + GT_Values.RA.addLaserEngraverRecipe( + ItemList.Circuit_Silicon_Wafer2.get(1), + GT_Utility.copyAmount(0L, aStack), + ItemList.Circuit_Wafer_LPIC.get(4), + 600, + 480, + true); + GT_Values.RA.addLaserEngraverRecipe( + ItemList.Circuit_Silicon_Wafer3.get(1), + GT_Utility.copyAmount(0L, aStack), + ItemList.Circuit_Wafer_SoC.get(1), + 900, + 1920, + true); + GT_Values.RA.addLaserEngraverRecipe( + ItemList.Circuit_Silicon_Wafer4.get(1), + GT_Utility.copyAmount(0L, aStack), + ItemList.Circuit_Wafer_SoC.get(4), + 600, + 7680, + true); + GT_Values.RA.addLaserEngraverRecipe( + ItemList.Circuit_Silicon_Wafer5.get(1), + GT_Utility.copyAmount(0L, aStack), + ItemList.Circuit_Wafer_SoC.get(8), + 300, + 30720, + true); } case "craftingLensOrange" -> { GT_Values.RA.addLaserEngraverRecipe( - ItemList.Circuit_Silicon_Wafer.get(1), - GT_Utility.copyAmount(0L, aStack), - ItemList.Circuit_Wafer_Simple_SoC.get(1), - 300, - 64, - false); - GT_Values.RA.addLaserEngraverRecipe( - ItemList.Circuit_Silicon_Wafer2.get(1), - GT_Utility.copyAmount(0L, aStack), - ItemList.Circuit_Wafer_Simple_SoC.get(4), - 300, - 256, - false); - GT_Values.RA.addLaserEngraverRecipe( - ItemList.Circuit_Silicon_Wafer3.get(1), - GT_Utility.copyAmount(0L, aStack), - ItemList.Circuit_Wafer_Simple_SoC.get(16), - 300, - 1024, - false); - GT_Values.RA.addLaserEngraverRecipe( - ItemList.Circuit_Silicon_Wafer4.get(1), - GT_Utility.copyAmount(0L, aStack), - ItemList.Circuit_Wafer_Simple_SoC.get(64), - 300, - 4096, - false); + ItemList.Circuit_Silicon_Wafer.get(1), + GT_Utility.copyAmount(0L, aStack), + ItemList.Circuit_Wafer_Simple_SoC.get(1), + 300, + 64, + false); + GT_Values.RA.addLaserEngraverRecipe( + ItemList.Circuit_Silicon_Wafer2.get(1), + GT_Utility.copyAmount(0L, aStack), + ItemList.Circuit_Wafer_Simple_SoC.get(4), + 300, + 256, + false); + GT_Values.RA.addLaserEngraverRecipe( + ItemList.Circuit_Silicon_Wafer3.get(1), + GT_Utility.copyAmount(0L, aStack), + ItemList.Circuit_Wafer_Simple_SoC.get(16), + 300, + 1024, + false); + GT_Values.RA.addLaserEngraverRecipe( + ItemList.Circuit_Silicon_Wafer4.get(1), + GT_Utility.copyAmount(0L, aStack), + ItemList.Circuit_Wafer_Simple_SoC.get(64), + 300, + 4096, + false); } case "craftingLensCyan" -> { GT_Values.RA.addLaserEngraverRecipe( - GT_OreDictUnificator.get(OrePrefixes.block, Materials.Iron, 1L), - GT_Utility.copyAmount(0L, aStack), - GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 15), - 2000, - 1920); - GT_Values.RA.addLaserEngraverRecipe( - GT_OreDictUnificator.get(OrePrefixes.block, Materials.WroughtIron, 1L), - GT_Utility.copyAmount(0L, aStack), - GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 15), - 2000, - 1920); - GT_Values.RA.addLaserEngraverRecipe( - ItemList.Circuit_Silicon_Wafer.get(1), - GT_Utility.copyAmount(0L, aStack), - ItemList.Circuit_Wafer_Ram.get(1), - 1200, - 120, - false); - GT_Values.RA.addLaserEngraverRecipe( - ItemList.Circuit_Silicon_Wafer2.get(1), - GT_Utility.copyAmount(0L, aStack), - ItemList.Circuit_Wafer_Ram.get(4), - 900, - 480, - true); - GT_Values.RA.addLaserEngraverRecipe( - ItemList.Circuit_Silicon_Wafer3.get(1), - GT_Utility.copyAmount(0L, aStack), - ItemList.Circuit_Wafer_Ram.get(8), - 600, - 1920, - true); - GT_Values.RA.addLaserEngraverRecipe( - ItemList.Circuit_Silicon_Wafer4.get(1), - GT_Utility.copyAmount(0L, aStack), - ItemList.Circuit_Wafer_Ram.get(16), - 300, - 7680, - true); - GT_Values.RA.addLaserEngraverRecipe( - ItemList.Circuit_Silicon_Wafer5.get(1), - GT_Utility.copyAmount(0L, aStack), - ItemList.Circuit_Wafer_Ram.get(32), - 150, - 30720, - true); + GT_OreDictUnificator.get(OrePrefixes.block, Materials.Iron, 1L), + GT_Utility.copyAmount(0L, aStack), + GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 15), + 2000, + 1920); + GT_Values.RA.addLaserEngraverRecipe( + GT_OreDictUnificator.get(OrePrefixes.block, Materials.WroughtIron, 1L), + GT_Utility.copyAmount(0L, aStack), + GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 15), + 2000, + 1920); + GT_Values.RA.addLaserEngraverRecipe( + ItemList.Circuit_Silicon_Wafer.get(1), + GT_Utility.copyAmount(0L, aStack), + ItemList.Circuit_Wafer_Ram.get(1), + 1200, + 120, + false); + GT_Values.RA.addLaserEngraverRecipe( + ItemList.Circuit_Silicon_Wafer2.get(1), + GT_Utility.copyAmount(0L, aStack), + ItemList.Circuit_Wafer_Ram.get(4), + 900, + 480, + true); + GT_Values.RA.addLaserEngraverRecipe( + ItemList.Circuit_Silicon_Wafer3.get(1), + GT_Utility.copyAmount(0L, aStack), + ItemList.Circuit_Wafer_Ram.get(8), + 600, + 1920, + true); + GT_Values.RA.addLaserEngraverRecipe( + ItemList.Circuit_Silicon_Wafer4.get(1), + GT_Utility.copyAmount(0L, aStack), + ItemList.Circuit_Wafer_Ram.get(16), + 300, + 7680, + true); + GT_Values.RA.addLaserEngraverRecipe( + ItemList.Circuit_Silicon_Wafer5.get(1), + GT_Utility.copyAmount(0L, aStack), + ItemList.Circuit_Wafer_Ram.get(32), + 150, + 30720, + true); } case "craftingLensRed" -> { GT_Values.RA.addLaserEngraverRecipe( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Redstone, 1L), - GT_Utility.copyAmount(0L, aStack), - GT_ModHandler.getModItem(BuildCraftSilicon.ID, "redstoneChipset", 1L, 0), - 50, - 120); - GT_Values.RA.addLaserEngraverRecipe( - GT_OreDictUnificator.get(OrePrefixes.foil, Materials.RedAlloy, 1L), - GT_Utility.copyAmount(0L, aStack), - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.EtchedLowVoltageWiring", 1L, 0), - 200, - 16); - GT_Values.RA.addLaserEngraverRecipe( - ItemList.Circuit_Silicon_Wafer.get(1), - GT_Utility.copyAmount(0L, aStack), - ItemList.Circuit_Wafer_ILC.get(1), - 1200, - 120, - false); - GT_Values.RA.addLaserEngraverRecipe( - ItemList.Circuit_Silicon_Wafer2.get(1), - GT_Utility.copyAmount(0L, aStack), - ItemList.Circuit_Wafer_ILC.get(4), - 900, - 480, - true); - GT_Values.RA.addLaserEngraverRecipe( - ItemList.Circuit_Silicon_Wafer3.get(1), - GT_Utility.copyAmount(0L, aStack), - ItemList.Circuit_Wafer_ILC.get(8), - 600, - 1920, - true); - GT_Values.RA.addLaserEngraverRecipe( - ItemList.Circuit_Silicon_Wafer4.get(1), - GT_Utility.copyAmount(0L, aStack), - ItemList.Circuit_Wafer_NPIC.get(1), - 1800, - 30720, - true); - GT_Values.RA.addLaserEngraverRecipe( - ItemList.Circuit_Silicon_Wafer5.get(1), - GT_Utility.copyAmount(0L, aStack), - ItemList.Circuit_Wafer_NPIC.get(4), - 1500, - 122880, - true); + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Redstone, 1L), + GT_Utility.copyAmount(0L, aStack), + GT_ModHandler.getModItem(BuildCraftSilicon.ID, "redstoneChipset", 1L, 0), + 50, + 120); + GT_Values.RA.addLaserEngraverRecipe( + GT_OreDictUnificator.get(OrePrefixes.foil, Materials.RedAlloy, 1L), + GT_Utility.copyAmount(0L, aStack), + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.EtchedLowVoltageWiring", 1L, 0), + 200, + 16); + GT_Values.RA.addLaserEngraverRecipe( + ItemList.Circuit_Silicon_Wafer.get(1), + GT_Utility.copyAmount(0L, aStack), + ItemList.Circuit_Wafer_ILC.get(1), + 1200, + 120, + false); + GT_Values.RA.addLaserEngraverRecipe( + ItemList.Circuit_Silicon_Wafer2.get(1), + GT_Utility.copyAmount(0L, aStack), + ItemList.Circuit_Wafer_ILC.get(4), + 900, + 480, + true); + GT_Values.RA.addLaserEngraverRecipe( + ItemList.Circuit_Silicon_Wafer3.get(1), + GT_Utility.copyAmount(0L, aStack), + ItemList.Circuit_Wafer_ILC.get(8), + 600, + 1920, + true); + GT_Values.RA.addLaserEngraverRecipe( + ItemList.Circuit_Silicon_Wafer4.get(1), + GT_Utility.copyAmount(0L, aStack), + ItemList.Circuit_Wafer_NPIC.get(1), + 1800, + 30720, + true); + GT_Values.RA.addLaserEngraverRecipe( + ItemList.Circuit_Silicon_Wafer5.get(1), + GT_Utility.copyAmount(0L, aStack), + ItemList.Circuit_Wafer_NPIC.get(4), + 1500, + 122880, + true); } case "craftingLensGreen" -> { GT_Values.RA.addLaserEngraverRecipe( - ItemList.Circuit_Parts_Crystal_Chip_Elite.get(1L), - GT_Utility.copyAmount(0L, aStack), - ItemList.Circuit_Chip_CrystalCPU.get(1), - 600, - 10000, - true); - GT_Values.RA.addLaserEngraverRecipe( - ItemList.Circuit_Chip_CrystalSoC.get(1L), - GT_Utility.copyAmount(0L, aStack), - ItemList.Circuit_Chip_CrystalSoC2.get(1), - 1200, - 80000, - true); - GT_Values.RA.addLaserEngraverRecipe( - ItemList.Circuit_Silicon_Wafer.get(1), - GT_Utility.copyAmount(0L, aStack), - ItemList.Circuit_Wafer_ULPIC.get(2), - 600, - 30, - false); - GT_Values.RA.addLaserEngraverRecipe( - ItemList.Circuit_Silicon_Wafer2.get(1), - GT_Utility.copyAmount(0L, aStack), - ItemList.Circuit_Wafer_ULPIC.get(8), - 600, - 120, - false); - GT_Values.RA.addLaserEngraverRecipe( - ItemList.Circuit_Silicon_Wafer3.get(1), - GT_Utility.copyAmount(0L, aStack), - ItemList.Circuit_Wafer_SoC2.get(1), - 1800, - 1920, - true); - GT_Values.RA.addLaserEngraverRecipe( - ItemList.Circuit_Silicon_Wafer4.get(1), - GT_Utility.copyAmount(0L, aStack), - ItemList.Circuit_Wafer_SoC2.get(2), - 1500, - 7680, - true); - GT_Values.RA.addLaserEngraverRecipe( - ItemList.Circuit_Silicon_Wafer5.get(1), - GT_Utility.copyAmount(0L, aStack), - ItemList.Circuit_Wafer_SoC2.get(4), - 1200, - 30720, - true); + ItemList.Circuit_Parts_Crystal_Chip_Elite.get(1L), + GT_Utility.copyAmount(0L, aStack), + ItemList.Circuit_Chip_CrystalCPU.get(1), + 600, + 10000, + true); + GT_Values.RA.addLaserEngraverRecipe( + ItemList.Circuit_Chip_CrystalSoC.get(1L), + GT_Utility.copyAmount(0L, aStack), + ItemList.Circuit_Chip_CrystalSoC2.get(1), + 1200, + 80000, + true); + GT_Values.RA.addLaserEngraverRecipe( + ItemList.Circuit_Silicon_Wafer.get(1), + GT_Utility.copyAmount(0L, aStack), + ItemList.Circuit_Wafer_ULPIC.get(2), + 600, + 30, + false); + GT_Values.RA.addLaserEngraverRecipe( + ItemList.Circuit_Silicon_Wafer2.get(1), + GT_Utility.copyAmount(0L, aStack), + ItemList.Circuit_Wafer_ULPIC.get(8), + 600, + 120, + false); + GT_Values.RA.addLaserEngraverRecipe( + ItemList.Circuit_Silicon_Wafer3.get(1), + GT_Utility.copyAmount(0L, aStack), + ItemList.Circuit_Wafer_SoC2.get(1), + 1800, + 1920, + true); + GT_Values.RA.addLaserEngraverRecipe( + ItemList.Circuit_Silicon_Wafer4.get(1), + GT_Utility.copyAmount(0L, aStack), + ItemList.Circuit_Wafer_SoC2.get(2), + 1500, + 7680, + true); + GT_Values.RA.addLaserEngraverRecipe( + ItemList.Circuit_Silicon_Wafer5.get(1), + GT_Utility.copyAmount(0L, aStack), + ItemList.Circuit_Wafer_SoC2.get(4), + 1200, + 30720, + true); } case "craftingLensWhite" -> { GT_Values.RA.addLaserEngraverRecipe( - GT_OreDictUnificator.get(OrePrefixes.block, Materials.Iron, 1L), - GT_Utility.copyAmount(0L, aStack), - GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 19), - 2000, - 1920); - GT_Values.RA.addLaserEngraverRecipe( - GT_OreDictUnificator.get(OrePrefixes.block, Materials.WroughtIron, 1L), - GT_Utility.copyAmount(0L, aStack), - GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 19), - 2000, - 1920); - GT_Values.RA.addLaserEngraverRecipe( - new ItemStack(Blocks.sandstone, 1, 2), - GT_Utility.copyAmount(0L, aStack), - new ItemStack(Blocks.sandstone, 1, 1), - 50, - 16); - GT_Values.RA.addLaserEngraverRecipe( - new ItemStack(Blocks.stone, 1, 0), - GT_Utility.copyAmount(0L, aStack), - new ItemStack(Blocks.stonebrick, 1, 3), - 50, - 16); - GT_Values.RA.addLaserEngraverRecipe( - new ItemStack(Blocks.quartz_block, 1, 0), - GT_Utility.copyAmount(0L, aStack), - new ItemStack(Blocks.quartz_block, 1, 1), - 50, - 16); - GT_Values.RA.addLaserEngraverRecipe( - GT_ModHandler.getModItem(AppliedEnergistics2.ID, "tile.BlockQuartz", 1L), - GT_Utility.copyAmount(0L, aStack), - GT_ModHandler.getModItem(AppliedEnergistics2.ID, "tile.BlockQuartzChiseled", 1L), - 50, - 16); - GT_Values.RA.addLaserEngraverRecipe( - ItemList.Circuit_Silicon_Wafer.get(1), - GT_Utility.copyAmount(0L, aStack), - ItemList.Circuit_Wafer_CPU.get(1), - 1200, - 120, - true); - GT_Values.RA.addLaserEngraverRecipe( - ItemList.Circuit_Silicon_Wafer2.get(1), - GT_Utility.copyAmount(0L, aStack), - ItemList.Circuit_Wafer_CPU.get(4), - 900, - 480, - true); - GT_Values.RA.addLaserEngraverRecipe( - ItemList.Circuit_Silicon_Wafer3.get(1), - GT_Utility.copyAmount(0L, aStack), - ItemList.Circuit_Wafer_CPU.get(8), - 600, - 1920, - true); - GT_Values.RA.addLaserEngraverRecipe( - ItemList.Circuit_Silicon_Wafer4.get(1), - GT_Utility.copyAmount(0L, aStack), - ItemList.Circuit_Wafer_CPU.get(16), - 300, - 7680, - true); - GT_Values.RA.addLaserEngraverRecipe( - ItemList.Circuit_Silicon_Wafer5.get(1), - GT_Utility.copyAmount(0L, aStack), - ItemList.Circuit_Wafer_CPU.get(32), - 150, - 30720, - true); + GT_OreDictUnificator.get(OrePrefixes.block, Materials.Iron, 1L), + GT_Utility.copyAmount(0L, aStack), + GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 19), + 2000, + 1920); + GT_Values.RA.addLaserEngraverRecipe( + GT_OreDictUnificator.get(OrePrefixes.block, Materials.WroughtIron, 1L), + GT_Utility.copyAmount(0L, aStack), + GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 19), + 2000, + 1920); + GT_Values.RA.addLaserEngraverRecipe( + new ItemStack(Blocks.sandstone, 1, 2), + GT_Utility.copyAmount(0L, aStack), + new ItemStack(Blocks.sandstone, 1, 1), + 50, + 16); + GT_Values.RA.addLaserEngraverRecipe( + new ItemStack(Blocks.stone, 1, 0), + GT_Utility.copyAmount(0L, aStack), + new ItemStack(Blocks.stonebrick, 1, 3), + 50, + 16); + GT_Values.RA.addLaserEngraverRecipe( + new ItemStack(Blocks.quartz_block, 1, 0), + GT_Utility.copyAmount(0L, aStack), + new ItemStack(Blocks.quartz_block, 1, 1), + 50, + 16); + GT_Values.RA.addLaserEngraverRecipe( + GT_ModHandler.getModItem(AppliedEnergistics2.ID, "tile.BlockQuartz", 1L), + GT_Utility.copyAmount(0L, aStack), + GT_ModHandler.getModItem(AppliedEnergistics2.ID, "tile.BlockQuartzChiseled", 1L), + 50, + 16); + GT_Values.RA.addLaserEngraverRecipe( + ItemList.Circuit_Silicon_Wafer.get(1), + GT_Utility.copyAmount(0L, aStack), + ItemList.Circuit_Wafer_CPU.get(1), + 1200, + 120, + true); + GT_Values.RA.addLaserEngraverRecipe( + ItemList.Circuit_Silicon_Wafer2.get(1), + GT_Utility.copyAmount(0L, aStack), + ItemList.Circuit_Wafer_CPU.get(4), + 900, + 480, + true); + GT_Values.RA.addLaserEngraverRecipe( + ItemList.Circuit_Silicon_Wafer3.get(1), + GT_Utility.copyAmount(0L, aStack), + ItemList.Circuit_Wafer_CPU.get(8), + 600, + 1920, + true); + GT_Values.RA.addLaserEngraverRecipe( + ItemList.Circuit_Silicon_Wafer4.get(1), + GT_Utility.copyAmount(0L, aStack), + ItemList.Circuit_Wafer_CPU.get(16), + 300, + 7680, + true); + GT_Values.RA.addLaserEngraverRecipe( + ItemList.Circuit_Silicon_Wafer5.get(1), + GT_Utility.copyAmount(0L, aStack), + ItemList.Circuit_Wafer_CPU.get(32), + 150, + 30720, + true); } } } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingCrate.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingCrate.java index d280492e01..d61d2bfc7b 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingCrate.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingCrate.java @@ -19,81 +19,81 @@ public class ProcessingCrate implements gregtech.api.interfaces.IOreRecipeRegist @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { boolean aSpecialRecipeReq2 = aMaterial.mUnificatable && (aMaterial.mMaterialInto == aMaterial) - && !aMaterial.contains(SubTag.NO_WORKING); + && !aMaterial.contains(SubTag.NO_WORKING); switch (aPrefix) { case crateGtDust -> { GT_Values.RA.addBoxingRecipe( - GT_Utility.copyAmount(16L, GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 16L)), - ItemList.Crate_Empty.get(1L), - GT_OreDictUnificator.get(OrePrefixes.crateGtDust, aMaterial, 1L), - 100, - 8); + GT_Utility.copyAmount(16L, GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 16L)), + ItemList.Crate_Empty.get(1L), + GT_OreDictUnificator.get(OrePrefixes.crateGtDust, aMaterial, 1L), + 100, + 8); GT_Values.RA.addUnboxingRecipe( - GT_OreDictUnificator.get(OrePrefixes.crateGtDust, aMaterial, 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 16L), - ItemList.Crate_Empty.get(1L), - 800, - 1); + GT_OreDictUnificator.get(OrePrefixes.crateGtDust, aMaterial, 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 16L), + ItemList.Crate_Empty.get(1L), + 800, + 1); if (aSpecialRecipeReq2) GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 16L), - GT_Proxy.tBits, - new Object[] { "Xc", 'X', OrePrefixes.crateGtDust.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 16L), + GT_Proxy.tBits, + new Object[] { "Xc", 'X', OrePrefixes.crateGtDust.get(aMaterial) }); } case crateGtIngot -> { GT_Values.RA.addBoxingRecipe( - GT_Utility.copyAmount(16L, GT_OreDictUnificator.get(OrePrefixes.ingot, aMaterial, 16L)), - ItemList.Crate_Empty.get(1L), - GT_OreDictUnificator.get(OrePrefixes.crateGtIngot, aMaterial, 1L), - 100, - 8); + GT_Utility.copyAmount(16L, GT_OreDictUnificator.get(OrePrefixes.ingot, aMaterial, 16L)), + ItemList.Crate_Empty.get(1L), + GT_OreDictUnificator.get(OrePrefixes.crateGtIngot, aMaterial, 1L), + 100, + 8); GT_Values.RA.addUnboxingRecipe( - GT_OreDictUnificator.get(OrePrefixes.crateGtIngot, aMaterial, 1L), - GT_OreDictUnificator.get(OrePrefixes.ingot, aMaterial, 16L), - ItemList.Crate_Empty.get(1L), - 800, - 1); + GT_OreDictUnificator.get(OrePrefixes.crateGtIngot, aMaterial, 1L), + GT_OreDictUnificator.get(OrePrefixes.ingot, aMaterial, 16L), + ItemList.Crate_Empty.get(1L), + 800, + 1); if (aSpecialRecipeReq2) GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.ingot, aMaterial, 16L), - GT_Proxy.tBits, - new Object[] { "Xc", 'X', OrePrefixes.crateGtIngot.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.ingot, aMaterial, 16L), + GT_Proxy.tBits, + new Object[] { "Xc", 'X', OrePrefixes.crateGtIngot.get(aMaterial) }); } case crateGtGem -> { GT_Values.RA.addBoxingRecipe( - GT_Utility.copyAmount(16L, GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 16L)), - ItemList.Crate_Empty.get(1L), - GT_OreDictUnificator.get(OrePrefixes.crateGtGem, aMaterial, 1L), - 100, - 8); + GT_Utility.copyAmount(16L, GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 16L)), + ItemList.Crate_Empty.get(1L), + GT_OreDictUnificator.get(OrePrefixes.crateGtGem, aMaterial, 1L), + 100, + 8); GT_Values.RA.addUnboxingRecipe( - GT_OreDictUnificator.get(OrePrefixes.crateGtGem, aMaterial, 1L), - GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 16L), - ItemList.Crate_Empty.get(1L), - 800, - 1); + GT_OreDictUnificator.get(OrePrefixes.crateGtGem, aMaterial, 1L), + GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 16L), + ItemList.Crate_Empty.get(1L), + 800, + 1); if (aSpecialRecipeReq2) GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 16L), - GT_Proxy.tBits, - new Object[] { "Xc", 'X', OrePrefixes.crateGtGem.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 16L), + GT_Proxy.tBits, + new Object[] { "Xc", 'X', OrePrefixes.crateGtGem.get(aMaterial) }); } case crateGtPlate -> { GT_Values.RA.addBoxingRecipe( - GT_Utility.copyAmount(16L, GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 16L)), - ItemList.Crate_Empty.get(1L), - GT_OreDictUnificator.get(OrePrefixes.crateGtPlate, aMaterial, 1L), - 100, - 8); + GT_Utility.copyAmount(16L, GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 16L)), + ItemList.Crate_Empty.get(1L), + GT_OreDictUnificator.get(OrePrefixes.crateGtPlate, aMaterial, 1L), + 100, + 8); GT_Values.RA.addUnboxingRecipe( - GT_OreDictUnificator.get(OrePrefixes.crateGtPlate, aMaterial, 1L), - GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 16L), - ItemList.Crate_Empty.get(1L), - 800, - 1); + GT_OreDictUnificator.get(OrePrefixes.crateGtPlate, aMaterial, 1L), + GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 16L), + ItemList.Crate_Empty.get(1L), + 800, + 1); if (aSpecialRecipeReq2) GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 16L), - GT_Proxy.tBits, - new Object[] { "Xc", 'X', OrePrefixes.crateGtPlate.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 16L), + GT_Proxy.tBits, + new Object[] { "Xc", 'X', OrePrefixes.crateGtPlate.get(aMaterial) }); } default -> {} } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingCrop.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingCrop.java index 4d582564f4..9fdcb14055 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingCrop.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingCrop.java @@ -17,106 +17,91 @@ public class ProcessingCrop implements gregtech.api.interfaces.IOreRecipeRegistr @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - net.minecraft.item.ItemStack aStack) { + net.minecraft.item.ItemStack aStack) { GT_ModHandler.addCompressionRecipe( - gregtech.api.util.GT_Utility.copyAmount(8L, aStack), - ItemList.IC2_PlantballCompressed.get(1L)); + gregtech.api.util.GT_Utility.copyAmount(8L, aStack), + ItemList.IC2_PlantballCompressed.get(1L)); switch (aOreDictName) { case "cropTea" -> { GT_Values.RA.addBrewingRecipe(aStack, FluidRegistry.WATER, FluidRegistry.getFluid("potion.tea"), false); GT_Values.RA.addBrewingRecipe( - aStack, - GT_ModHandler.getDistilledWater(1L) - .getFluid(), - FluidRegistry.getFluid("potion.tea"), - false); + aStack, + GT_ModHandler.getDistilledWater(1L) + .getFluid(), + FluidRegistry.getFluid("potion.tea"), + false); } case "cropGrape" -> { + GT_Values.RA + .addBrewingRecipe(aStack, FluidRegistry.WATER, FluidRegistry.getFluid("potion.grapejuice"), false); GT_Values.RA.addBrewingRecipe( - aStack, - FluidRegistry.WATER, - FluidRegistry.getFluid("potion.grapejuice"), - false); - GT_Values.RA.addBrewingRecipe( - aStack, - GT_ModHandler.getDistilledWater(1L) - .getFluid(), - FluidRegistry.getFluid("potion.grapejuice"), - false); - } - case "cropChilipepper" -> GT_ModHandler.addPulverisationRecipe( - aStack, - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Chili, 1L)); - case "cropCoffee" -> GT_ModHandler.addPulverisationRecipe( aStack, - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Coffee, 1L)); - case "cropPotato" -> { - GT_Values.RA.addSlicerRecipe( - aStack, - ItemList.Shape_Slicer_Flat.get(0L), - ItemList.Food_Raw_PotatoChips.get(1L), - 64, - 4); - GT_Values.RA.addSlicerRecipe( - aStack, - ItemList.Shape_Slicer_Stripes.get(0L), - ItemList.Food_Raw_Fries.get(1L), - 64, - 4); - GT_Values.RA.addBrewingRecipe( - aStack, - FluidRegistry.WATER, - FluidRegistry.getFluid("potion.potatojuice"), - true); - GT_Values.RA.addBrewingRecipe( - aStack, - GT_ModHandler.getDistilledWater(1L) - .getFluid(), - FluidRegistry.getFluid("potion.potatojuice"), - true); + GT_ModHandler.getDistilledWater(1L) + .getFluid(), + FluidRegistry.getFluid("potion.grapejuice"), + false); } - case "cropLemon" -> { + case "cropChilipepper" -> GT_ModHandler + .addPulverisationRecipe(aStack, GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Chili, 1L)); + case "cropCoffee" -> GT_ModHandler + .addPulverisationRecipe(aStack, GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Coffee, 1L)); + case "cropPotato" -> { GT_Values.RA.addSlicerRecipe( - aStack, - ItemList.Shape_Slicer_Flat.get(0L), - ItemList.Food_Sliced_Lemon.get(4L), - 64, - 4); - GT_Values.RA.addBrewingRecipe( - aStack, - FluidRegistry.WATER, - FluidRegistry.getFluid("potion.lemonjuice"), - false); - GT_Values.RA.addBrewingRecipe( - aStack, - GT_ModHandler.getDistilledWater(1L) - .getFluid(), - FluidRegistry.getFluid("potion.lemonjuice"), - false); - GT_Values.RA.addBrewingRecipe( - aStack, - FluidRegistry.getFluid("potion.vodka"), - FluidRegistry.getFluid("potion.leninade"), - true); - } - case "cropTomato" -> GT_Values.RA.addSlicerRecipe( aStack, ItemList.Shape_Slicer_Flat.get(0L), - ItemList.Food_Sliced_Tomato.get(4L), + ItemList.Food_Raw_PotatoChips.get(1L), 64, 4); - case "cropCucumber" -> GT_Values.RA.addSlicerRecipe( + GT_Values.RA.addSlicerRecipe( aStack, - ItemList.Shape_Slicer_Flat.get(0L), - ItemList.Food_Sliced_Cucumber.get(4L), + ItemList.Shape_Slicer_Stripes.get(0L), + ItemList.Food_Raw_Fries.get(1L), 64, 4); - case "cropOnion" -> GT_Values.RA.addSlicerRecipe( + GT_Values.RA + .addBrewingRecipe(aStack, FluidRegistry.WATER, FluidRegistry.getFluid("potion.potatojuice"), true); + GT_Values.RA.addBrewingRecipe( + aStack, + GT_ModHandler.getDistilledWater(1L) + .getFluid(), + FluidRegistry.getFluid("potion.potatojuice"), + true); + } + case "cropLemon" -> { + GT_Values.RA.addSlicerRecipe( aStack, ItemList.Shape_Slicer_Flat.get(0L), - ItemList.Food_Sliced_Onion.get(4L), + ItemList.Food_Sliced_Lemon.get(4L), 64, 4); + GT_Values.RA + .addBrewingRecipe(aStack, FluidRegistry.WATER, FluidRegistry.getFluid("potion.lemonjuice"), false); + GT_Values.RA.addBrewingRecipe( + aStack, + GT_ModHandler.getDistilledWater(1L) + .getFluid(), + FluidRegistry.getFluid("potion.lemonjuice"), + false); + GT_Values.RA.addBrewingRecipe( + aStack, + FluidRegistry.getFluid("potion.vodka"), + FluidRegistry.getFluid("potion.leninade"), + true); + } + case "cropTomato" -> GT_Values.RA.addSlicerRecipe( + aStack, + ItemList.Shape_Slicer_Flat.get(0L), + ItemList.Food_Sliced_Tomato.get(4L), + 64, + 4); + case "cropCucumber" -> GT_Values.RA.addSlicerRecipe( + aStack, + ItemList.Shape_Slicer_Flat.get(0L), + ItemList.Food_Sliced_Cucumber.get(4L), + 64, + 4); + case "cropOnion" -> GT_Values.RA + .addSlicerRecipe(aStack, ItemList.Shape_Slicer_Flat.get(0L), ItemList.Food_Sliced_Onion.get(4L), 64, 4); } } } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingCrushedOre.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingCrushedOre.java index 627cdc10d8..a0c9b56b53 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingCrushedOre.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingCrushedOre.java @@ -18,63 +18,63 @@ public class ProcessingCrushedOre implements gregtech.api.interfaces.IOreRecipeR @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { switch (aPrefix) { case crushedCentrifuged -> { GT_Values.RA.addForgeHammerRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial.mMacerateInto, 1L), - 10, - 16); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial.mMacerateInto, 1L), + 10, + 16); GT_ModHandler.addPulverisationRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial.mMacerateInto, 1L), - GT_OreDictUnificator.get( - OrePrefixes.dust, - GT_Utility.selectItemInList(2, aMaterial.mMacerateInto, aMaterial.mOreByProducts), - 1L), - 10, - false); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial.mMacerateInto, 1L), + GT_OreDictUnificator.get( + OrePrefixes.dust, + GT_Utility.selectItemInList(2, aMaterial.mMacerateInto, aMaterial.mOreByProducts), + 1L), + 10, + false); } case crushedPurified -> { GT_ModHandler.addThermalCentrifugeRecipe( - GT_Utility.copyAmount(1L, aStack), - new int[] { 10000, 1111 }, - (int) Math.min(5000L, Math.abs(aMaterial.getMass() * 20L)), - GT_OreDictUnificator.get( - OrePrefixes.crushedCentrifuged, - aMaterial.mMacerateInto, - GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial.mMacerateInto, 1L), - 1L), - GT_OreDictUnificator.get( - OrePrefixes.dust, - GT_Utility.selectItemInList(1, aMaterial.mMacerateInto, aMaterial.mOreByProducts), - 1L)); + GT_Utility.copyAmount(1L, aStack), + new int[] { 10000, 1111 }, + (int) Math.min(5000L, Math.abs(aMaterial.getMass() * 20L)), + GT_OreDictUnificator.get( + OrePrefixes.crushedCentrifuged, + aMaterial.mMacerateInto, + GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial.mMacerateInto, 1L), + 1L), + GT_OreDictUnificator.get( + OrePrefixes.dust, + GT_Utility.selectItemInList(1, aMaterial.mMacerateInto, aMaterial.mOreByProducts), + 1L)); ItemStack tGem = GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 1L); if (tGem != null) { switch (aMaterial.mName) { - case "Tanzanite", "Sapphire", "Olivine", "GreenSapphire", "Opal", "Amethyst", "Emerald", "Ruby", "Amber", "Diamond", "FoolsRuby", "BlueTopaz", "GarnetRed", "Topaz", "Jasper", "GarnetYellow" -> GT_Values.RA.addSifterRecipe( + case "Tanzanite", "Sapphire", "Olivine", "GreenSapphire", "Opal", "Amethyst", "Emerald", "Ruby", "Amber", "Diamond", "FoolsRuby", "BlueTopaz", "GarnetRed", "Topaz", "Jasper", "GarnetYellow" -> GT_Values.RA + .addSifterRecipe( GT_Utility.copyAmount(1L, aStack), new ItemStack[] { - GT_OreDictUnificator.get(OrePrefixes.gemExquisite, aMaterial, tGem, 1L), - GT_OreDictUnificator.get(OrePrefixes.gemFlawless, aMaterial, tGem, 1L), tGem, - GT_OreDictUnificator.get(OrePrefixes.gemFlawed, aMaterial, tGem, 1L), - GT_OreDictUnificator.get(OrePrefixes.gemChipped, aMaterial, tGem, 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, tGem, 1L) }, + GT_OreDictUnificator.get(OrePrefixes.gemExquisite, aMaterial, tGem, 1L), + GT_OreDictUnificator.get(OrePrefixes.gemFlawless, aMaterial, tGem, 1L), tGem, + GT_OreDictUnificator.get(OrePrefixes.gemFlawed, aMaterial, tGem, 1L), + GT_OreDictUnificator.get(OrePrefixes.gemChipped, aMaterial, tGem, 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, tGem, 1L) }, new int[] { 300, 1200, 4500, 1400, 2800, 3500 }, 800, 16); default -> GT_Values.RA.addSifterRecipe( - GT_Utility.copyAmount(1L, aStack), - new ItemStack[] { - GT_OreDictUnificator.get(OrePrefixes.gemExquisite, aMaterial, tGem, 1L), - GT_OreDictUnificator.get(OrePrefixes.gemFlawless, aMaterial, tGem, 1L), tGem, - GT_OreDictUnificator.get(OrePrefixes.gemFlawed, aMaterial, tGem, 1L), - GT_OreDictUnificator.get(OrePrefixes.gemChipped, aMaterial, tGem, 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, tGem, 1L) }, - new int[] { 100, 400, 1500, 2000, 4000, 5000 }, - 800, - 16); + GT_Utility.copyAmount(1L, aStack), + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.gemExquisite, aMaterial, tGem, 1L), + GT_OreDictUnificator.get(OrePrefixes.gemFlawless, aMaterial, tGem, 1L), tGem, + GT_OreDictUnificator.get(OrePrefixes.gemFlawed, aMaterial, tGem, 1L), + GT_OreDictUnificator.get(OrePrefixes.gemChipped, aMaterial, tGem, 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, tGem, 1L) }, + new int[] { 100, 400, 1500, 2000, 4000, 5000 }, + 800, + 16); } } } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingCrystallized.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingCrystallized.java index df2284a95c..3e64f05773 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingCrystallized.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingCrystallized.java @@ -18,17 +18,17 @@ public class ProcessingCrystallized implements gregtech.api.interfaces.IOreRecip @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { GT_Values.RA.addForgeHammerRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial.mMacerateInto, 1L), - 10, - 16); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial.mMacerateInto, 1L), + 10, + 16); GT_ModHandler.addPulverisationRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial.mMacerateInto, 1L), - null, - 10, - false); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial.mMacerateInto, 1L), + null, + 10, + false); } } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingDirty.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingDirty.java index e9a1b0425c..571b3d1a7f 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingDirty.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingDirty.java @@ -20,125 +20,123 @@ public class ProcessingDirty implements gregtech.api.interfaces.IOreRecipeRegist @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - net.minecraft.item.ItemStack aStack) { + net.minecraft.item.ItemStack aStack) { GT_Values.RA.addForgeHammerRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.dustImpure, aMaterial.mMacerateInto, 1L), - 10, - 16); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.dustImpure, aMaterial.mMacerateInto, 1L), + 10, + 16); GT_ModHandler.addPulverisationRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get( - OrePrefixes.dustImpure, - aMaterial.mMacerateInto, - GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial.mMacerateInto, 1L), - 1L), - GT_OreDictUnificator.get( - OrePrefixes.dust, - GT_Utility.selectItemInList(0, aMaterial.mMacerateInto, aMaterial.mOreByProducts), - 1L), - 10, - false); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get( + OrePrefixes.dustImpure, + aMaterial.mMacerateInto, + GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial.mMacerateInto, 1L), + 1L), + GT_OreDictUnificator.get( + OrePrefixes.dust, + GT_Utility.selectItemInList(0, aMaterial.mMacerateInto, aMaterial.mOreByProducts), + 1L), + 10, + false); GT_ModHandler.addOreWasherRecipe( - GT_Utility.copyAmount(1L, aStack), - new int[] { 10000, 1111, 10000 }, - 1000, - GT_OreDictUnificator.get( - aPrefix == OrePrefixes.crushed ? OrePrefixes.crushedPurified : OrePrefixes.dustPure, - aMaterial, - 1L), - GT_OreDictUnificator.get( - OrePrefixes.dust, - GT_Utility.selectItemInList(0, aMaterial.mMacerateInto, aMaterial.mOreByProducts), - 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Stone, 1L)); + GT_Utility.copyAmount(1L, aStack), + new int[] { 10000, 1111, 10000 }, + 1000, + GT_OreDictUnificator.get( + aPrefix == OrePrefixes.crushed ? OrePrefixes.crushedPurified : OrePrefixes.dustPure, + aMaterial, + 1L), + GT_OreDictUnificator.get( + OrePrefixes.dust, + GT_Utility.selectItemInList(0, aMaterial.mMacerateInto, aMaterial.mOreByProducts), + 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Stone, 1L)); GT_ModHandler.addThermalCentrifugeRecipe( - GT_Utility.copyAmount(1L, aStack), - new int[] { 10000, 1111, 10000 }, - (int) Math.min(5000L, Math.abs(aMaterial.getMass() * 20L)), - GT_OreDictUnificator.get( - aPrefix == OrePrefixes.crushed ? OrePrefixes.crushedCentrifuged : OrePrefixes.dust, - aMaterial, - 1L), - GT_OreDictUnificator.get( - OrePrefixes.dust, - GT_Utility.selectItemInList(1, aMaterial.mMacerateInto, aMaterial.mOreByProducts), - 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Stone, 1L)); + GT_Utility.copyAmount(1L, aStack), + new int[] { 10000, 1111, 10000 }, + (int) Math.min(5000L, Math.abs(aMaterial.getMass() * 20L)), + GT_OreDictUnificator + .get(aPrefix == OrePrefixes.crushed ? OrePrefixes.crushedCentrifuged : OrePrefixes.dust, aMaterial, 1L), + GT_OreDictUnificator.get( + OrePrefixes.dust, + GT_Utility.selectItemInList(1, aMaterial.mMacerateInto, aMaterial.mOreByProducts), + 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Stone, 1L)); if (aMaterial.contains(SubTag.WASHING_MERCURY)) GT_Values.RA.addChemicalBathRecipe( + GT_Utility.copyAmount(1L, aStack), + Materials.Mercury.getFluid(1000L), + GT_OreDictUnificator.get( + aPrefix == OrePrefixes.crushed ? OrePrefixes.crushedPurified : OrePrefixes.dustPure, + aMaterial, + 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial.mMacerateInto, 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Stone, 1L), + new int[] { 10000, 7000, 4000 }, + 800, + 8); + if (aMaterial.contains(SubTag.WASHING_MERCURY_99_PERCENT)) GT_Values.RA.addChemicalBathRecipe( + GT_Utility.copyAmount(1L, aStack), + Materials.Mercury.getFluid(1000L), + GT_OreDictUnificator.get( + aPrefix == OrePrefixes.crushed ? OrePrefixes.crushedPurified : OrePrefixes.dustPure, + aMaterial, + 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial.mMacerateInto, 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Stone, 1L), + new int[] { 10000, 9900, 4000 }, + 800, + 8); + if (aMaterial.contains(SubTag.WASHING_SODIUMPERSULFATE)) GT_Values.RA.addChemicalBathRecipe( + GT_Utility.copyAmount(1L, aStack), + Materials.SodiumPersulfate.getFluid(GT_Mod.gregtechproxy.mDisableOldChemicalRecipes ? 1000L : 100L), + GT_OreDictUnificator.get( + aPrefix == OrePrefixes.crushed ? OrePrefixes.crushedPurified : OrePrefixes.dustPure, + aMaterial, + 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial.mMacerateInto, 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Stone, 1L), + new int[] { 10000, 7000, 4000 }, + 800, + 8); + for (Materials tMaterial : aMaterial.mOreByProducts) { + if (tMaterial.contains(SubTag.WASHING_MERCURY)) GT_Values.RA.addChemicalBathRecipe( GT_Utility.copyAmount(1L, aStack), Materials.Mercury.getFluid(1000L), GT_OreDictUnificator.get( - aPrefix == OrePrefixes.crushed ? OrePrefixes.crushedPurified : OrePrefixes.dustPure, - aMaterial, - 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial.mMacerateInto, 1L), + aPrefix == OrePrefixes.crushed ? OrePrefixes.crushedPurified : OrePrefixes.dustPure, + aMaterial, + 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, tMaterial.mMacerateInto, 1L), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Stone, 1L), new int[] { 10000, 7000, 4000 }, 800, 8); - if (aMaterial.contains(SubTag.WASHING_MERCURY_99_PERCENT)) GT_Values.RA.addChemicalBathRecipe( + if (tMaterial.contains(SubTag.WASHING_MERCURY_99_PERCENT)) GT_Values.RA.addChemicalBathRecipe( GT_Utility.copyAmount(1L, aStack), Materials.Mercury.getFluid(1000L), GT_OreDictUnificator.get( - aPrefix == OrePrefixes.crushed ? OrePrefixes.crushedPurified : OrePrefixes.dustPure, - aMaterial, - 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial.mMacerateInto, 1L), + aPrefix == OrePrefixes.crushed ? OrePrefixes.crushedPurified : OrePrefixes.dustPure, + aMaterial, + 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, tMaterial.mMacerateInto, 1L), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Stone, 1L), new int[] { 10000, 9900, 4000 }, 800, 8); - if (aMaterial.contains(SubTag.WASHING_SODIUMPERSULFATE)) GT_Values.RA.addChemicalBathRecipe( + if (tMaterial.contains(SubTag.WASHING_SODIUMPERSULFATE)) GT_Values.RA.addChemicalBathRecipe( GT_Utility.copyAmount(1L, aStack), Materials.SodiumPersulfate.getFluid(GT_Mod.gregtechproxy.mDisableOldChemicalRecipes ? 1000L : 100L), GT_OreDictUnificator.get( - aPrefix == OrePrefixes.crushed ? OrePrefixes.crushedPurified : OrePrefixes.dustPure, - aMaterial, - 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial.mMacerateInto, 1L), + aPrefix == OrePrefixes.crushed ? OrePrefixes.crushedPurified : OrePrefixes.dustPure, + aMaterial, + 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, tMaterial.mMacerateInto, 1L), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Stone, 1L), new int[] { 10000, 7000, 4000 }, 800, 8); - for (Materials tMaterial : aMaterial.mOreByProducts) { - if (tMaterial.contains(SubTag.WASHING_MERCURY)) GT_Values.RA.addChemicalBathRecipe( - GT_Utility.copyAmount(1L, aStack), - Materials.Mercury.getFluid(1000L), - GT_OreDictUnificator.get( - aPrefix == OrePrefixes.crushed ? OrePrefixes.crushedPurified : OrePrefixes.dustPure, - aMaterial, - 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, tMaterial.mMacerateInto, 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Stone, 1L), - new int[] { 10000, 7000, 4000 }, - 800, - 8); - if (tMaterial.contains(SubTag.WASHING_MERCURY_99_PERCENT)) GT_Values.RA.addChemicalBathRecipe( - GT_Utility.copyAmount(1L, aStack), - Materials.Mercury.getFluid(1000L), - GT_OreDictUnificator.get( - aPrefix == OrePrefixes.crushed ? OrePrefixes.crushedPurified : OrePrefixes.dustPure, - aMaterial, - 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, tMaterial.mMacerateInto, 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Stone, 1L), - new int[] { 10000, 9900, 4000 }, - 800, - 8); - if (tMaterial.contains(SubTag.WASHING_SODIUMPERSULFATE)) GT_Values.RA.addChemicalBathRecipe( - GT_Utility.copyAmount(1L, aStack), - Materials.SodiumPersulfate.getFluid(GT_Mod.gregtechproxy.mDisableOldChemicalRecipes ? 1000L : 100L), - GT_OreDictUnificator.get( - aPrefix == OrePrefixes.crushed ? OrePrefixes.crushedPurified : OrePrefixes.dustPure, - aMaterial, - 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, tMaterial.mMacerateInto, 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Stone, 1L), - new int[] { 10000, 7000, 4000 }, - 800, - 8); } } } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingDust.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingDust.java index 9be8efb946..ab17077c16 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingDust.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingDust.java @@ -30,91 +30,85 @@ public class ProcessingDust implements gregtech.api.interfaces.IOreRecipeRegistr @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { switch (aPrefix) { case dust -> { - if (aMaterial.mFuelPower > 0) GT_Values.RA.addFuel( - GT_Utility.copyAmount(1L, aStack), - null, - aMaterial.mFuelPower, - aMaterial.mFuelType); + if (aMaterial.mFuelPower > 0) GT_Values.RA + .addFuel(GT_Utility.copyAmount(1L, aStack), null, aMaterial.mFuelPower, aMaterial.mFuelType); if (GT_Utility.getFluidForFilledItem(GT_OreDictUnificator.get(OrePrefixes.cell, aMaterial, 1L), true) - == null) + == null) GT_Values.RA.addCannerRecipe( - aStack, - ItemList.Cell_Empty.get(1L), - GT_OreDictUnificator.get(OrePrefixes.cell, aMaterial, 1L), - null, - 100, - 1); + aStack, + ItemList.Cell_Empty.get(1L), + GT_OreDictUnificator.get(OrePrefixes.cell, aMaterial, 1L), + null, + 100, + 1); if (!aMaterial.mBlastFurnaceRequired) { GT_RecipeRegistrator.registerReverseFluidSmelting(aStack, aMaterial, aPrefix.mMaterialAmount, null); if (aMaterial.mSmeltInto.mArcSmeltInto != aMaterial) { GT_RecipeRegistrator.registerReverseArcSmelting( - GT_Utility.copyAmount(1L, aStack), - aMaterial, - aPrefix.mMaterialAmount, - null, - null, - null); + GT_Utility.copyAmount(1L, aStack), + aMaterial, + aPrefix.mMaterialAmount, + null, + null, + null); } } ItemStack tDustStack; if ((null != (tDustStack = GT_OreDictUnificator.get(OrePrefixes.ingot, aMaterial.mSmeltInto, 1L))) - && (!aMaterial.contains(SubTag.NO_SMELTING))) { + && (!aMaterial.contains(SubTag.NO_SMELTING))) { if (aMaterial.mBlastFurnaceRequired) { GT_ModHandler.removeFurnaceSmelting(aStack); if (aMaterial.mAutoGenerateBlastFurnaceRecipes) { GT_Values.RA.addBlastRecipe( - GT_Utility.copyAmount(1L, aStack), - ItemList.Circuit_Integrated.getWithDamage(0L, 1L), - null, - null, - aMaterial.mBlastFurnaceTemp > 1750 - ? GT_OreDictUnificator.get( - OrePrefixes.ingotHot, - aMaterial.mSmeltInto, - tDustStack, - 1L) - : GT_Utility.copyAmount(1L, tDustStack), - null, - (int) Math.max(aMaterial.getMass() / 40L, 1L) * aMaterial.mBlastFurnaceTemp, - 120, - aMaterial.mBlastFurnaceTemp); + GT_Utility.copyAmount(1L, aStack), + ItemList.Circuit_Integrated.getWithDamage(0L, 1L), + null, + null, + aMaterial.mBlastFurnaceTemp > 1750 + ? GT_OreDictUnificator + .get(OrePrefixes.ingotHot, aMaterial.mSmeltInto, tDustStack, 1L) + : GT_Utility.copyAmount(1L, tDustStack), + null, + (int) Math.max(aMaterial.getMass() / 40L, 1L) * aMaterial.mBlastFurnaceTemp, + 120, + aMaterial.mBlastFurnaceTemp); } } else { GT_ModHandler.addSmeltingRecipe(aStack, tDustStack); } } else if (!aMaterial.contains(SubTag.NO_WORKING)) { if ((!OrePrefixes.block.isIgnored(aMaterial)) - && (null == GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 1L))) { + && (null == GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 1L))) { GT_ModHandler.addCompressionRecipe( - GT_Utility.copyAmount(9L, aStack), - GT_OreDictUnificator.get(OrePrefixes.block, aMaterial, 1L)); + GT_Utility.copyAmount(9L, aStack), + GT_OreDictUnificator.get(OrePrefixes.block, aMaterial, 1L)); } // This is so disgustingly bad. if (((OrePrefixes.block.isIgnored(aMaterial)) - || (null == GT_OreDictUnificator.get(OrePrefixes.block, aMaterial, 1L))) - && (aMaterial != Materials.GraniteRed) - && (aMaterial != Materials.GraniteBlack) - && (aMaterial != Materials.Basalt) - && (aMaterial != Materials.Marble) - && (aMaterial != Materials.Glass) - && (aMaterial != Materials.Obsidian) - && (aMaterial != Materials.Glowstone) - && (aMaterial != Materials.Paper) - && (aMaterial != Materials.TranscendentMetal) - && (aMaterial != Materials.Clay)) { + || (null == GT_OreDictUnificator.get(OrePrefixes.block, aMaterial, 1L))) + && (aMaterial != Materials.GraniteRed) + && (aMaterial != Materials.GraniteBlack) + && (aMaterial != Materials.Basalt) + && (aMaterial != Materials.Marble) + && (aMaterial != Materials.Glass) + && (aMaterial != Materials.Obsidian) + && (aMaterial != Materials.Glowstone) + && (aMaterial != Materials.Paper) + && (aMaterial != Materials.TranscendentMetal) + && (aMaterial != Materials.Clay)) { GT_ModHandler.addCompressionRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 1L)); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 1L)); } } if ((aMaterial.mMaterialList.size() > 0) && ((aMaterial.mExtraData & 0x3) != 0)) { long tItemAmount = 0L; long tCapsuleCount = 0L; long tDensityMultiplier = aMaterial.getDensity() > 3628800L ? aMaterial.getDensity() / 3628800L - : 1L; + : 1L; ArrayList tList = new ArrayList<>(); for (MaterialStack tMat : aMaterial.mMaterialList) if (tMat.mAmount > 0L) { if (tMat.mMaterial == Materials.Air) { @@ -125,45 +119,59 @@ public class ProcessingDust implements gregtech.api.interfaces.IOreRecipeRegistr tDustStack = GT_OreDictUnificator.get(OrePrefixes.cell, tMat.mMaterial, tMat.mAmount); } if (tItemAmount + tMat.mAmount * 3628800L - <= aStack.getMaxStackSize() * aMaterial.getDensity()) { + <= aStack.getMaxStackSize() * aMaterial.getDensity()) { tItemAmount += tMat.mAmount * 3628800L; if (tDustStack != null) { tDustStack.stackSize = ((int) (tDustStack.stackSize * tDensityMultiplier)); while ((tDustStack.stackSize > 64) && (tList.size() < 6) - && (tCapsuleCount + GT_ModHandler.getCapsuleCellContainerCount(tDustStack) * 64 - <= 64L)) { + && (tCapsuleCount + GT_ModHandler.getCapsuleCellContainerCount(tDustStack) * 64 + <= 64L)) { tCapsuleCount += GT_ModHandler.getCapsuleCellContainerCount(tDustStack) * 64; tList.add(GT_Utility.copyAmount(64L, tDustStack)); tDustStack.stackSize -= 64; } if ((tDustStack.stackSize > 0) && (tList.size() < 6) - && (tCapsuleCount - + GT_ModHandler.getCapsuleCellContainerCountMultipliedWithStackSize( - tDustStack) - <= 64L)) { - tCapsuleCount += GT_ModHandler.getCapsuleCellContainerCountMultipliedWithStackSize( - tDustStack); + && (tCapsuleCount + + GT_ModHandler.getCapsuleCellContainerCountMultipliedWithStackSize(tDustStack) + <= 64L)) { + tCapsuleCount += GT_ModHandler + .getCapsuleCellContainerCountMultipliedWithStackSize(tDustStack); tList.add(tDustStack); } } } } tItemAmount = (tItemAmount * tDensityMultiplier % aMaterial.getDensity() > 0L ? 1 : 0) - + tItemAmount * tDensityMultiplier / aMaterial.getDensity(); + + tItemAmount * tDensityMultiplier / aMaterial.getDensity(); if (tList.size() > 0) { FluidStack tFluid = null; int tList_sS = tList.size(); for (int i = 0; i < tList_sS; i++) { if ((!ItemList.Cell_Air.isStackEqual(tList.get(i))) - && ((tFluid = GT_Utility.getFluidForFilledItem(tList.get(i), true)) != null)) { + && ((tFluid = GT_Utility.getFluidForFilledItem(tList.get(i), true)) != null)) { tFluid.amount *= tList.get(i).stackSize; - tCapsuleCount -= GT_ModHandler.getCapsuleCellContainerCountMultipliedWithStackSize( - tList.get(i)); + tCapsuleCount -= GT_ModHandler + .getCapsuleCellContainerCountMultipliedWithStackSize(tList.get(i)); tList.remove(i); break; } } if ((aMaterial.mExtraData & 0x1) != 0) GT_Values.RA.addElectrolyzerRecipe( + GT_Utility.copyAmount(tItemAmount, aStack), + tCapsuleCount > 0L ? ItemList.Cell_Empty.get(tCapsuleCount) : null, + null, + tFluid, + tList.size() < 1 ? null : tList.get(0), + tList.size() < 2 ? null : tList.get(1), + tList.size() < 3 ? null : tList.get(2), + tList.size() < 4 ? null : tList.get(3), + tList.size() < 5 ? null : tList.get(4), + tList.size() < 6 ? null : tList.get(5), + null, + (int) Math.max(1L, Math.abs(aMaterial.getProtons() * 2L * tItemAmount)), + Math.min(4, tList.size()) * 30); + if ((aMaterial.mExtraData & 0x2) != 0) { + GT_Values.RA.addCentrifugeRecipe( GT_Utility.copyAmount(tItemAmount, aStack), tCapsuleCount > 0L ? ItemList.Cell_Empty.get(tCapsuleCount) : null, null, @@ -175,104 +183,88 @@ public class ProcessingDust implements gregtech.api.interfaces.IOreRecipeRegistr tList.size() < 5 ? null : tList.get(4), tList.size() < 6 ? null : tList.get(5), null, - (int) Math.max(1L, Math.abs(aMaterial.getProtons() * 2L * tItemAmount)), - Math.min(4, tList.size()) * 30); - if ((aMaterial.mExtraData & 0x2) != 0) { - GT_Values.RA.addCentrifugeRecipe( - GT_Utility.copyAmount(tItemAmount, aStack), - tCapsuleCount > 0L ? ItemList.Cell_Empty.get(tCapsuleCount) : null, - null, - tFluid, - tList.size() < 1 ? null : tList.get(0), - tList.size() < 2 ? null : tList.get(1), - tList.size() < 3 ? null : tList.get(2), - tList.size() < 4 ? null : tList.get(3), - tList.size() < 5 ? null : tList.get(4), - tList.size() < 6 ? null : tList.get(5), - null, - (int) Math.max(1L, Math.abs(aMaterial.getMass() * 4L * tItemAmount)), - Math.min(4, tList.size()) * 5); + (int) Math.max(1L, Math.abs(aMaterial.getMass() * 4L * tItemAmount)), + Math.min(4, tList.size()) * 5); } } } if (aMaterial.contains(SubTag.CRYSTALLISABLE)) { GT_Values.RA.addAutoclaveRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_Utility.getIntegratedCircuit(1), - Materials.Water.getFluid(200L), - GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 1L), - 7000, - 2000, - 24, - false); + GT_Utility.copyAmount(1L, aStack), + GT_Utility.getIntegratedCircuit(1), + Materials.Water.getFluid(200L), + GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 1L), + 7000, + 2000, + 24, + false); GT_Values.RA.addAutoclaveRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_Utility.getIntegratedCircuit(2), - GT_ModHandler.getDistilledWater(100L), - GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 1L), - 9000, - 1500, - 24, - false); + GT_Utility.copyAmount(1L, aStack), + GT_Utility.getIntegratedCircuit(2), + GT_ModHandler.getDistilledWater(100L), + GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 1L), + 9000, + 1500, + 24, + false); GT_Values.RA.addAutoclaveRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_Utility.getIntegratedCircuit(3), - Materials.Void.getMolten(36L), - GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 1L), - 10000, - 1200, - 24, - false); + GT_Utility.copyAmount(1L, aStack), + GT_Utility.getIntegratedCircuit(3), + Materials.Void.getMolten(36L), + GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 1L), + 10000, + 1200, + 24, + false); } switch (aMaterial.mName) { case "NULL": break; case "Glass": GT_ModHandler.addSmeltingRecipe( - GT_Utility.copyAmount(1L, aStack), - new ItemStack(net.minecraft.init.Blocks.glass)); + GT_Utility.copyAmount(1L, aStack), + new ItemStack(net.minecraft.init.Blocks.glass)); break; case "NetherQuartz": case "Quartz": case "CertusQuartz": if (gregtech.api.GregTech_API.sRecipeFile.get( - gregtech.api.enums.ConfigCategories.Recipes.disabledrecipes, - "QuartzDustSmeltingIntoAESilicon", - true)) - GT_ModHandler.removeFurnaceSmelting(aStack); + gregtech.api.enums.ConfigCategories.Recipes.disabledrecipes, + "QuartzDustSmeltingIntoAESilicon", + true)) GT_ModHandler.removeFurnaceSmelting(aStack); break; case "MeatRaw": GT_ModHandler.addSmeltingRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.MeatCooked, 1L)); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.MeatCooked, 1L)); break; case "Mercury": break; case "Oilsands": GT_Recipe.GT_Recipe_Map.sCentrifugeRecipes.addRecipe( - true, - new ItemStack[] { GT_Utility.copyAmount(1L, aStack) }, - null, - null, - null, - new FluidStack[] { Materials.OilHeavy.getFluid(1000) }, - 660, - 8, - 0); + true, + new ItemStack[] { GT_Utility.copyAmount(1L, aStack) }, + null, + null, + null, + new FluidStack[] { Materials.OilHeavy.getFluid(1000) }, + 660, + 8, + 0); break; case "Coal": break; case "HydratedCoal": GT_ModHandler.addSmeltingRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Coal, 1L)); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Coal, 1L)); break; case "Diamond": GT_Values.RA.addImplosionRecipe( - GT_Utility.copyAmount(4L, aStack), - 32, - ItemList.IC2_Industrial_Diamond.get(3L), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 16L)); + GT_Utility.copyAmount(4L, aStack), + 32, + ItemList.IC2_Industrial_Diamond.get(3L), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 16L)); break; case "Opal": case "Olivine": @@ -285,10 +277,10 @@ public class ProcessingDust implements gregtech.api.interfaces.IOreRecipeRegistr case "Tanzanite": case "Amethyst": GT_Values.RA.addImplosionRecipe( - GT_Utility.copyAmount(4L, aStack), - 24, - GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 3L), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 12L)); + GT_Utility.copyAmount(4L, aStack), + 24, + GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 3L), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 12L)); break; case "FoolsRuby": case "GarnetRed": @@ -300,215 +292,215 @@ public class ProcessingDust implements gregtech.api.interfaces.IOreRecipeRegistr case "Forcillium": case "Force": GT_Values.RA.addImplosionRecipe( - GT_Utility.copyAmount(4L, aStack), - 16, - GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 3L), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 8L)); + GT_Utility.copyAmount(4L, aStack), + 16, + GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 3L), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 8L)); } } case dustPure, dustImpure, dustRefined -> { Materials tByProduct = GT_Utility.selectItemInList( - aPrefix == OrePrefixes.dustRefined ? 2 : aPrefix == OrePrefixes.dustPure ? 1 : 0, - aMaterial, - aMaterial.mOreByProducts); + aPrefix == OrePrefixes.dustRefined ? 2 : aPrefix == OrePrefixes.dustPure ? 1 : 0, + aMaterial, + aMaterial.mOreByProducts); if (aPrefix == OrePrefixes.dustPure) { if (aMaterial.contains(SubTag.ELECTROMAGNETIC_SEPERATION_GOLD)) GT_Values.RA.addElectromagneticSeparatorRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 1L), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Gold, 1L), - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Gold, 1L), - new int[] { 10000, 4000, 2000 }, - 400, - 24); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 1L), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Gold, 1L), + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Gold, 1L), + new int[] { 10000, 4000, 2000 }, + 400, + 24); if (aMaterial.contains(SubTag.ELECTROMAGNETIC_SEPERATION_IRON)) GT_Values.RA.addElectromagneticSeparatorRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 1L), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Iron, 1L), - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Iron, 1L), - new int[] { 10000, 4000, 2000 }, - 400, - 24); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 1L), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Iron, 1L), + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Iron, 1L), + new int[] { 10000, 4000, 2000 }, + 400, + 24); if (aMaterial.contains(SubTag.ELECTROMAGNETIC_SEPERATION_NEODYMIUM)) { GT_Values.RA.addElectromagneticSeparatorRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 1L), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Neodymium, 1L), - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Neodymium, 1L), - new int[] { 10000, 4000, 2000 }, - 400, - 24); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 1L), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Neodymium, 1L), + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Neodymium, 1L), + new int[] { 10000, 4000, 2000 }, + 400, + 24); } } if (aMaterial.contains(SubTag.CRYSTALLISABLE)) { GT_Values.RA.addAutoclaveRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_Utility.getIntegratedCircuit(1), - Materials.Water.getFluid(200L), - GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 1L), - 9000, - 2000, - 24, - false); + GT_Utility.copyAmount(1L, aStack), + GT_Utility.getIntegratedCircuit(1), + Materials.Water.getFluid(200L), + GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 1L), + 9000, + 2000, + 24, + false); GT_Values.RA.addAutoclaveRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_Utility.getIntegratedCircuit(2), - GT_ModHandler.getDistilledWater(100L), - GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 1L), - 9500, - 1500, - 24, - false); + GT_Utility.copyAmount(1L, aStack), + GT_Utility.getIntegratedCircuit(2), + GT_ModHandler.getDistilledWater(100L), + GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 1L), + 9500, + 1500, + 24, + false); GT_Values.RA.addAutoclaveRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_Utility.getIntegratedCircuit(3), - Materials.Void.getMolten(36L), - GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 1L), - 10000, - 1200, - 24, - false); + GT_Utility.copyAmount(1L, aStack), + GT_Utility.getIntegratedCircuit(3), + Materials.Void.getMolten(36L), + GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 1L), + 10000, + 1200, + 24, + false); } ItemStack tImpureStack = GT_OreDictUnificator.get( - OrePrefixes.dustTiny, - tByProduct, - GT_OreDictUnificator.get(OrePrefixes.nugget, tByProduct, 1L), - 1L); + OrePrefixes.dustTiny, + tByProduct, + GT_OreDictUnificator.get(OrePrefixes.nugget, tByProduct, 1L), + 1L); if (tImpureStack == null) { tImpureStack = GT_OreDictUnificator.get(OrePrefixes.dustSmall, tByProduct, 1L); if (tImpureStack == null) { tImpureStack = GT_OreDictUnificator.get( - OrePrefixes.dust, - tByProduct, - GT_OreDictUnificator.get(OrePrefixes.gem, tByProduct, 1L), - 1L); + OrePrefixes.dust, + tByProduct, + GT_OreDictUnificator.get(OrePrefixes.gem, tByProduct, 1L), + 1L); if (tImpureStack == null) { tImpureStack = GT_OreDictUnificator.get(OrePrefixes.cell, tByProduct, 1L); if (tImpureStack == null) { GT_Values.RA.addCentrifugeRecipe( - GT_Utility.copyAmount(1L, aStack), - 0, - GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 1L), - null, - null, - null, - null, - null, - (int) Math.max(1L, aMaterial.getMass())); + GT_Utility.copyAmount(1L, aStack), + 0, + GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 1L), + null, + null, + null, + null, + null, + (int) Math.max(1L, aMaterial.getMass())); } else { FluidStack tFluid = GT_Utility.getFluidForFilledItem(tImpureStack, true); if (tFluid == null) { GT_Values.RA.addCentrifugeRecipe( - GT_Utility.copyAmount(9L, aStack), - 1, - GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 9L), - tImpureStack, - null, - null, - null, - null, - (int) Math.max(1L, aMaterial.getMass() * 72L)); + GT_Utility.copyAmount(9L, aStack), + 1, + GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 9L), + tImpureStack, + null, + null, + null, + null, + (int) Math.max(1L, aMaterial.getMass() * 72L)); } else { tFluid.amount /= 10; GT_Values.RA.addCentrifugeRecipe( - GT_Utility.copyAmount(1L, aStack), - null, - null, - tFluid, - GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 1L), - null, - null, - null, - null, - null, - null, - (int) Math.max(1L, aMaterial.getMass() * 8L), - 5); + GT_Utility.copyAmount(1L, aStack), + null, + null, + tFluid, + GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 1L), + null, + null, + null, + null, + null, + null, + (int) Math.max(1L, aMaterial.getMass() * 8L), + 5); } } } else { GT_Values.RA.addCentrifugeRecipe( - GT_Utility.copyAmount(9L, aStack), - 0, - GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 9L), - tImpureStack, - null, - null, - null, - null, - (int) Math.max(1L, aMaterial.getMass() * 72L)); - } - } else { - GT_Values.RA.addCentrifugeRecipe( - GT_Utility.copyAmount(2L, aStack), + GT_Utility.copyAmount(9L, aStack), 0, - GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 2L), + GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 9L), tImpureStack, null, null, null, null, - (int) Math.max(1L, aMaterial.getMass() * 16L)); - } - } else { - GT_Values.RA.addCentrifugeRecipe( - GT_Utility.copyAmount(1L, aStack), - null, - null, - null, - GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 1L), - GT_OreDictUnificator.get( - OrePrefixes.dust, - tByProduct, - GT_OreDictUnificator.get(OrePrefixes.nugget, tByProduct, 1L), - 1L), + (int) Math.max(1L, aMaterial.getMass() * 72L)); + } + } else { + GT_Values.RA.addCentrifugeRecipe( + GT_Utility.copyAmount(2L, aStack), + 0, + GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 2L), + tImpureStack, null, null, null, null, - new int[] { 10000, 1111 }, - (int) Math.max(1L, aMaterial.getMass() * 8L), - 5); + (int) Math.max(1L, aMaterial.getMass() * 16L)); + } + } else { + GT_Values.RA.addCentrifugeRecipe( + GT_Utility.copyAmount(1L, aStack), + null, + null, + null, + GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 1L), + GT_OreDictUnificator.get( + OrePrefixes.dust, + tByProduct, + GT_OreDictUnificator.get(OrePrefixes.nugget, tByProduct, 1L), + 1L), + null, + null, + null, + null, + new int[] { 10000, 1111 }, + (int) Math.max(1L, aMaterial.getMass() * 8L), + 5); } } case dustSmall -> { GT_Values.RA.addBoxingRecipe( - GT_Utility.copyAmount(4L, aStack), - ItemList.Schematic_Dust.get(0L), - GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 1L), - 20, - 4); + GT_Utility.copyAmount(4L, aStack), + ItemList.Schematic_Dust.get(0L), + GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 1L), + 20, + 4); if (!aMaterial.mBlastFurnaceRequired) { GT_RecipeRegistrator.registerReverseFluidSmelting(aStack, aMaterial, aPrefix.mMaterialAmount, null); if (aMaterial.mSmeltInto.mArcSmeltInto != aMaterial) { GT_RecipeRegistrator.registerReverseArcSmelting( - GT_Utility.copyAmount(1L, aStack), - aMaterial, - aPrefix.mMaterialAmount, - null, - null, - null); + GT_Utility.copyAmount(1L, aStack), + aMaterial, + aPrefix.mMaterialAmount, + null, + null, + null); } } } case dustTiny -> { GT_Values.RA.addBoxingRecipe( - GT_Utility.copyAmount(9L, aStack), - ItemList.Schematic_Dust.get(0L), - GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 1L), - 20, - 4); + GT_Utility.copyAmount(9L, aStack), + ItemList.Schematic_Dust.get(0L), + GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 1L), + 20, + 4); if (!aMaterial.mBlastFurnaceRequired) { GT_RecipeRegistrator.registerReverseFluidSmelting(aStack, aMaterial, aPrefix.mMaterialAmount, null); if (aMaterial.mSmeltInto.mArcSmeltInto != aMaterial) { GT_RecipeRegistrator.registerReverseArcSmelting( - GT_Utility.copyAmount(1L, aStack), - aMaterial, - aPrefix.mMaterialAmount, - null, - null, - null); + GT_Utility.copyAmount(1L, aStack), + aMaterial, + aPrefix.mMaterialAmount, + null, + null, + null); } } if (!aMaterial.contains(SubTag.NO_SMELTING)) { diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingDye.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingDye.java index f8b1519b8a..452a8e31fb 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingDye.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingDye.java @@ -23,60 +23,60 @@ public class ProcessingDye implements IOreRecipeRegistrator { @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { Dyes aDye = Dyes.get(aOreDictName); if ((aDye.mIndex >= 0) && (aDye.mIndex < 16) && (GT_Utility.getContainerItem(aStack, true) == null)) { GT_ModHandler.addAlloySmelterRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glass, 8L), - GT_Utility.copyAmount(1L, aStack), - new ItemStack(Blocks.stained_glass, 8, 15 - aDye.mIndex), - 200, - 8, - false); + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glass, 8L), + GT_Utility.copyAmount(1L, aStack), + new ItemStack(Blocks.stained_glass, 8, 15 - aDye.mIndex), + 200, + 8, + false); GT_ModHandler.addAlloySmelterRecipe( - new ItemStack(Blocks.glass, 8, 32767), - GT_Utility.copyAmount(1L, aStack), - new ItemStack(Blocks.stained_glass, 8, 15 - aDye.mIndex), - 200, - 8, - false); + new ItemStack(Blocks.glass, 8, 32767), + GT_Utility.copyAmount(1L, aStack), + new ItemStack(Blocks.stained_glass, 8, 15 - aDye.mIndex), + 200, + 8, + false); GT_Values.RA.addMixerRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_Utility.getIntegratedCircuit(1), - null, - null, - Materials.Water.getFluid(216L), - FluidRegistry.getFluidStack( - "dye.watermixed." + aDye.name() - .toLowerCase(Locale.ENGLISH), - 192), - null, - 16, - 4); + GT_Utility.copyAmount(1L, aStack), + GT_Utility.getIntegratedCircuit(1), + null, + null, + Materials.Water.getFluid(216L), + FluidRegistry.getFluidStack( + "dye.watermixed." + aDye.name() + .toLowerCase(Locale.ENGLISH), + 192), + null, + 16, + 4); GT_Values.RA.addMixerRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_Utility.getIntegratedCircuit(1), - null, - null, - GT_ModHandler.getDistilledWater(288L), - FluidRegistry.getFluidStack( - "dye.watermixed." + aDye.name() - .toLowerCase(Locale.ENGLISH), - 216), - null, - 16, - 4); + GT_Utility.copyAmount(1L, aStack), + GT_Utility.getIntegratedCircuit(1), + null, + null, + GT_ModHandler.getDistilledWater(288L), + FluidRegistry.getFluidStack( + "dye.watermixed." + aDye.name() + .toLowerCase(Locale.ENGLISH), + 216), + null, + 16, + 4); GT_Values.RA.addChemicalRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Salt, 2), - Materials.SulfuricAcid.getFluid(432), - FluidRegistry.getFluidStack( - "dye.chemical." + aDye.name() - .toLowerCase(Locale.ENGLISH), - 288), - GT_Values.NI, - 600, - 48); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Salt, 2), + Materials.SulfuricAcid.getFluid(432), + FluidRegistry.getFluidStack( + "dye.chemical." + aDye.name() + .toLowerCase(Locale.ENGLISH), + 288), + GT_Values.NI, + 600, + 48); } } } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingFineWire.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingFineWire.java index 941191132d..fdb78eae22 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingFineWire.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingFineWire.java @@ -18,16 +18,16 @@ public class ProcessingFineWire implements gregtech.api.interfaces.IOreRecipeReg @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { if (!aMaterial.contains(gregtech.api.enums.SubTag.NO_SMASHING)) { GT_RecipeRegistrator.registerWiremillRecipes(aMaterial, 100, 4); } if ((aMaterial.mUnificatable) && (aMaterial.mMaterialInto == aMaterial) - && !aMaterial.contains(SubTag.NO_WORKING)) { + && !aMaterial.contains(SubTag.NO_WORKING)) { GT_ModHandler.addCraftingRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_Proxy.tBits, - new Object[] { "Xx", 'X', OrePrefixes.foil.get(aMaterial) }); + GT_Utility.copyAmount(1L, aStack), + GT_Proxy.tBits, + new Object[] { "Xx", 'X', OrePrefixes.foil.get(aMaterial) }); } } } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingFoil.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingFoil.java index 31f7051c3d..22eb302aae 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingFoil.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingFoil.java @@ -21,15 +21,13 @@ public class ProcessingFoil implements IOreRecipeRegistrator { @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { GT_Values.RA.addBenderRecipe( - GT_Utility.copyAmount(1L, GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 4L)), - GT_OreDictUnificator.get(OrePrefixes.foil, aMaterial, 4L), - (int) Math.max(aMaterial.getMass(), 1L), - calculateRecipeEU(aMaterial, 24)); - GregTech_API.registerCover( - aStack, - TextureFactory.of(aMaterial.mIconSet.mTextures[70], aMaterial.mRGBa, false), - null); + GT_Utility.copyAmount(1L, GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 4L)), + GT_OreDictUnificator.get(OrePrefixes.foil, aMaterial, 4L), + (int) Math.max(aMaterial.getMass(), 1L), + calculateRecipeEU(aMaterial, 24)); + GregTech_API + .registerCover(aStack, TextureFactory.of(aMaterial.mIconSet.mTextures[70], aMaterial.mRGBa, false), null); } } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingFood.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingFood.java index ae606caaab..097a637f0e 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingFood.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingFood.java @@ -18,72 +18,69 @@ public class ProcessingFood implements gregtech.api.interfaces.IOreRecipeRegistr @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { switch (aOreDictName) { case "foodCheese" -> { GT_Values.RA.addSlicerRecipe( - aStack, - ItemList.Shape_Slicer_Flat.get(0L), - ItemList.Food_Sliced_Cheese.get(4L), - 64, - 4); + aStack, + ItemList.Shape_Slicer_Flat.get(0L), + ItemList.Food_Sliced_Cheese.get(4L), + 64, + 4); GT_OreDictUnificator.addItemData(aStack, new gregtech.api.objects.ItemData(Materials.Cheese, 3628800L)); } case "foodDough" -> { GT_ModHandler.removeFurnaceSmelting(aStack); - GT_Values.RA.addBenderRecipe( - GT_Utility.copyAmount(1L, aStack), - ItemList.Food_Flat_Dough.get(1L), - 16, - 4); + GT_Values.RA + .addBenderRecipe(GT_Utility.copyAmount(1L, aStack), ItemList.Food_Flat_Dough.get(1L), 16, 4); GT_Values.RA.addMixerRecipe( - aStack, - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sugar, 1L), - null, - null, - null, - null, - ItemList.Food_Dough_Sugar.get(2L), - 32, - 8); + aStack, + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sugar, 1L), + null, + null, + null, + null, + ItemList.Food_Dough_Sugar.get(2L), + 32, + 8); GT_Values.RA.addMixerRecipe( - aStack, - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cocoa, 1L), - null, - null, - null, - null, - ItemList.Food_Dough_Chocolate.get(2L), - 32, - 8); + aStack, + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cocoa, 1L), + null, + null, + null, + null, + ItemList.Food_Dough_Chocolate.get(2L), + 32, + 8); GT_Values.RA.addMixerRecipe( - aStack, - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Chocolate, 1L), - null, - null, - null, - null, - ItemList.Food_Dough_Chocolate.get(2L), - 32, - 8); + aStack, + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Chocolate, 1L), + null, + null, + null, + null, + ItemList.Food_Dough_Chocolate.get(2L), + 32, + 8); GT_Values.RA.addFormingPressRecipe( - GT_Utility.copyAmount(1L, aStack), - ItemList.Shape_Mold_Bun.get(0L), - ItemList.Food_Raw_Bun.get(1L), - 128, - 4); + GT_Utility.copyAmount(1L, aStack), + ItemList.Shape_Mold_Bun.get(0L), + ItemList.Food_Raw_Bun.get(1L), + 128, + 4); GT_Values.RA.addFormingPressRecipe( - GT_Utility.copyAmount(2L, aStack), - ItemList.Shape_Mold_Bread.get(0L), - ItemList.Food_Raw_Bread.get(1L), - 256, - 4); + GT_Utility.copyAmount(2L, aStack), + ItemList.Shape_Mold_Bread.get(0L), + ItemList.Food_Raw_Bread.get(1L), + 256, + 4); GT_Values.RA.addFormingPressRecipe( - GT_Utility.copyAmount(3L, aStack), - ItemList.Shape_Mold_Baguette.get(0L), - ItemList.Food_Raw_Baguette.get(1L), - 384, - 4); + GT_Utility.copyAmount(3L, aStack), + ItemList.Shape_Mold_Baguette.get(0L), + ItemList.Food_Raw_Baguette.get(1L), + 384, + 4); } } } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingGear.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingGear.java index ed0fa7fe94..2f6a568bae 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingGear.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingGear.java @@ -20,39 +20,39 @@ public class ProcessingGear implements gregtech.api.interfaces.IOreRecipeRegistr @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { switch (aPrefix) { case gearGt -> { GT_ModHandler.removeRecipeByOutputDelayed(aStack); if (aMaterial.mStandardMoltenFluid != null) if (!(aMaterial == Materials.AnnealedCopper || aMaterial == Materials.WroughtIron)) { GT_Values.RA.addFluidSolidifierRecipe( - ItemList.Shape_Mold_Gear.get(0L), - aMaterial.getMolten(576L), - GT_OreDictUnificator.get(aPrefix, aMaterial, 1L), - 128, - calculateRecipeEU(aMaterial, 8)); + ItemList.Shape_Mold_Gear.get(0L), + aMaterial.getMolten(576L), + GT_OreDictUnificator.get(aPrefix, aMaterial, 1L), + 128, + calculateRecipeEU(aMaterial, 8)); } if (aMaterial.mUnificatable && (aMaterial.mMaterialInto == aMaterial) - && !aMaterial.contains(SubTag.NO_WORKING)) { + && !aMaterial.contains(SubTag.NO_WORKING)) { switch (aMaterial.mName) { case "Wood" -> GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.gearGt, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { "SPS", "PsP", "SPS", 'P', OrePrefixes.plank.get(aMaterial), 'S', - OrePrefixes.stick.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.gearGt, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { "SPS", "PsP", "SPS", 'P', OrePrefixes.plank.get(aMaterial), 'S', + OrePrefixes.stick.get(aMaterial) }); case "Stone" -> GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.gearGt, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { "SPS", "PfP", "SPS", 'P', OrePrefixes.stoneSmooth, 'S', - new ItemStack(Blocks.stone_button, 1, 32767) }); + GT_OreDictUnificator.get(OrePrefixes.gearGt, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { "SPS", "PfP", "SPS", 'P', OrePrefixes.stoneSmooth, 'S', + new ItemStack(Blocks.stone_button, 1, 32767) }); default -> { if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.gearGt, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { "SPS", "PwP", "SPS", 'P', OrePrefixes.plate.get(aMaterial), 'S', - OrePrefixes.stick.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.gearGt, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { "SPS", "PwP", "SPS", 'P', OrePrefixes.plate.get(aMaterial), 'S', + OrePrefixes.stick.get(aMaterial) }); } } } @@ -62,30 +62,30 @@ public class ProcessingGear implements gregtech.api.interfaces.IOreRecipeRegistr if (aMaterial.mStandardMoltenFluid != null) if (!(aMaterial == Materials.AnnealedCopper || aMaterial == Materials.WroughtIron)) { GT_Values.RA.addFluidSolidifierRecipe( - ItemList.Shape_Mold_Gear_Small.get(0L), - aMaterial.getMolten(144L), - GT_Utility.copyAmount(1L, aStack), - 16, - calculateRecipeEU(aMaterial, 8)); + ItemList.Shape_Mold_Gear_Small.get(0L), + aMaterial.getMolten(144L), + GT_Utility.copyAmount(1L, aStack), + 16, + calculateRecipeEU(aMaterial, 8)); } if (aMaterial.mUnificatable && (aMaterial.mMaterialInto == aMaterial) - && !aMaterial.contains(SubTag.NO_WORKING)) { + && !aMaterial.contains(SubTag.NO_WORKING)) { switch (aMaterial.mName) { case "Wood" -> GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { "P ", " s", 'P', OrePrefixes.plank.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { "P ", " s", 'P', OrePrefixes.plank.get(aMaterial) }); case "Stone" -> GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { "P ", " f", 'P', OrePrefixes.stoneSmooth }); + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { "P ", " f", 'P', OrePrefixes.stoneSmooth }); default -> { if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { " S ", "hPx", " S ", 'S', OrePrefixes.stick.get(aMaterial), 'P', - OrePrefixes.plate.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { " S ", "hPx", " S ", 'S', OrePrefixes.stick.get(aMaterial), 'P', + OrePrefixes.plate.get(aMaterial) }); } } } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingGem.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingGem.java index 7a6a3ec004..75912ddf85 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingGem.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingGem.java @@ -26,105 +26,105 @@ public class ProcessingGem implements gregtech.api.interfaces.IOreRecipeRegistra @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { long aMaterialMass = aMaterial.getMass(); boolean aNoSmashing = aMaterial.contains(SubTag.NO_SMASHING); boolean aNoWorking = aMaterial.contains(SubTag.NO_WORKING); boolean aNoSmelting = aMaterial.contains(SubTag.NO_SMELTING); boolean aSpecialRecipeReq = (aMaterial.contains(SubTag.MORTAR_GRINDABLE)) - && (GregTech_API.sRecipeFile.get(ConfigCategories.Tools.mortar, aMaterial.mName, true)); + && (GregTech_API.sRecipeFile.get(ConfigCategories.Tools.mortar, aMaterial.mName, true)); boolean aFuelPower = aMaterial.mFuelPower > 0; switch (aPrefix) { case gem -> { if (aFuelPower) { GT_Values.RA.addFuel( - GT_Utility.copyAmount(1L, aStack), - null, - aMaterial.mFuelPower * 2, - aMaterial.mFuelType); + GT_Utility.copyAmount(1L, aStack), + null, + aMaterial.mFuelPower * 2, + aMaterial.mFuelType); } if (!OrePrefixes.block.isIgnored(aMaterial)) { GT_ModHandler.addCompressionRecipe( - GT_Utility.copyAmount(9L, aStack), - GT_OreDictUnificator.get(OrePrefixes.block, aMaterial, 1L)); + GT_Utility.copyAmount(9L, aStack), + GT_OreDictUnificator.get(OrePrefixes.block, aMaterial, 1L)); } if (!aNoSmelting) { GT_ModHandler.addSmeltingRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.ingot, aMaterial.mSmeltInto, 1L)); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.ingot, aMaterial.mSmeltInto, 1L)); } if (aNoSmashing) { GT_Values.RA.addForgeHammerRecipe( - aStack, - GT_OreDictUnificator.get(OrePrefixes.gemFlawed, aMaterial, 2L), - 64, - 16); + aStack, + GT_OreDictUnificator.get(OrePrefixes.gemFlawed, aMaterial, 2L), + 64, + 16); } else { GT_Values.RA.addForgeHammerRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 1L), - (int) Math.max(aMaterialMass, 1L), - calculateRecipeEU(aMaterial, 16)); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 1L), + (int) Math.max(aMaterialMass, 1L), + calculateRecipeEU(aMaterial, 16)); GT_Values.RA.addBenderRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 1L), - (int) Math.max(aMaterialMass * 2L, 1L), - calculateRecipeEU(aMaterial, 24)); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 1L), + (int) Math.max(aMaterialMass * 2L, 1L), + calculateRecipeEU(aMaterial, 24)); GT_Values.RA.addBenderRecipe( - GT_Utility.copyAmount(2L, aStack), - GT_OreDictUnificator.get(OrePrefixes.plateDouble, aMaterial, 1L), - (int) Math.max(aMaterialMass * 2L, 1L), - calculateRecipeEU(aMaterial, 96)); + GT_Utility.copyAmount(2L, aStack), + GT_OreDictUnificator.get(OrePrefixes.plateDouble, aMaterial, 1L), + (int) Math.max(aMaterialMass * 2L, 1L), + calculateRecipeEU(aMaterial, 96)); GT_Values.RA.addBenderRecipe( - GT_Utility.copyAmount(3L, aStack), - GT_OreDictUnificator.get(OrePrefixes.plateTriple, aMaterial, 1L), - (int) Math.max(aMaterialMass * 3L, 1L), - calculateRecipeEU(aMaterial, 96)); + GT_Utility.copyAmount(3L, aStack), + GT_OreDictUnificator.get(OrePrefixes.plateTriple, aMaterial, 1L), + (int) Math.max(aMaterialMass * 3L, 1L), + calculateRecipeEU(aMaterial, 96)); GT_Values.RA.addBenderRecipe( - GT_Utility.copyAmount(4L, aStack), - GT_OreDictUnificator.get(OrePrefixes.plateQuadruple, aMaterial, 1L), - (int) Math.max(aMaterialMass * 4L, 1L), - calculateRecipeEU(aMaterial, 96)); + GT_Utility.copyAmount(4L, aStack), + GT_OreDictUnificator.get(OrePrefixes.plateQuadruple, aMaterial, 1L), + (int) Math.max(aMaterialMass * 4L, 1L), + calculateRecipeEU(aMaterial, 96)); GT_Values.RA.addBenderRecipe( - GT_Utility.copyAmount(5L, aStack), - GT_OreDictUnificator.get(OrePrefixes.plateQuintuple, aMaterial, 1L), - (int) Math.max(aMaterialMass * 5L, 1L), - calculateRecipeEU(aMaterial, 96)); + GT_Utility.copyAmount(5L, aStack), + GT_OreDictUnificator.get(OrePrefixes.plateQuintuple, aMaterial, 1L), + (int) Math.max(aMaterialMass * 5L, 1L), + calculateRecipeEU(aMaterial, 96)); GT_Values.RA.addBenderRecipe( - GT_Utility.copyAmount(9L, aStack), - GT_OreDictUnificator.get(OrePrefixes.plateDense, aMaterial, 1L), - (int) Math.max(aMaterialMass * 9L, 1L), - calculateRecipeEU(aMaterial, 96)); + GT_Utility.copyAmount(9L, aStack), + GT_OreDictUnificator.get(OrePrefixes.plateDense, aMaterial, 1L), + (int) Math.max(aMaterialMass * 9L, 1L), + calculateRecipeEU(aMaterial, 96)); } if (aNoWorking) { if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { GT_Values.RA.addLatheRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.stick, aMaterial, 1L), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, aMaterial, 2L), - (int) Math.max(aMaterialMass, 1L), - calculateRecipeEU(aMaterial, 16)); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.stick, aMaterial, 1L), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, aMaterial, 2L), + (int) Math.max(aMaterialMass, 1L), + calculateRecipeEU(aMaterial, 16)); } } else { if (aMaterial.mUnificatable && (aMaterial.mMaterialInto == aMaterial)) { GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 2L), - GT_Proxy.tBits, - new Object[] { "h", "X", 'X', OrePrefixes.gemFlawless.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 2L), + GT_Proxy.tBits, + new Object[] { "h", "X", 'X', OrePrefixes.gemFlawless.get(aMaterial) }); GT_Values.RA.addImplosionRecipe( - GT_Utility.copyAmount(3L, aStack), - 8, - GT_OreDictUnificator.get(OrePrefixes.gemFlawless, aMaterial, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 2)); + GT_Utility.copyAmount(3L, aStack), + 8, + GT_OreDictUnificator.get(OrePrefixes.gemFlawless, aMaterial, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 2)); if (aMaterial.contains(SubTag.SMELTING_TO_GEM)) GT_ModHandler.addCraftingRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_Proxy.tBits, - new Object[] { "XXX", "XXX", "XXX", 'X', OrePrefixes.nugget.get(aMaterial) }); + GT_Utility.copyAmount(1L, aStack), + GT_Proxy.tBits, + new Object[] { "XXX", "XXX", "XXX", 'X', OrePrefixes.nugget.get(aMaterial) }); if (aSpecialRecipeReq) GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { "X", "m", 'X', OrePrefixes.gem.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { "X", "m", 'X', OrePrefixes.gem.get(aMaterial) }); } } // GT_RecipeRegistrator.registerUsagesForMaterials(OrePrefixes.plate.get(aMaterial).toString(), @@ -135,69 +135,64 @@ public class ProcessingGem implements gregtech.api.interfaces.IOreRecipeRegistra break; case "Coal": case "Charcoal": - if (GregTech_API.sRecipeFile.get( - ConfigCategories.Recipes.disabledrecipes, - "torchesFromCoal", - false)) { + if (GregTech_API.sRecipeFile + .get(ConfigCategories.Recipes.disabledrecipes, "torchesFromCoal", false)) { GT_ModHandler.removeRecipeDelayed( - GT_Utility.copyAmount(1L, aStack), - null, - null, - new ItemStack(net.minecraft.init.Items.stick, 1, 0)); + GT_Utility.copyAmount(1L, aStack), + null, + null, + new ItemStack(net.minecraft.init.Items.stick, 1, 0)); } break; case "CertusQuartz": GT_Values.RA.addElectrolyzerRecipe( - aStack, - 0, - GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 1), - null, - null, - null, - null, - null, - 2000, - 30); + aStack, + 0, + GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 1), + null, + null, + null, + null, + null, + 2000, + 30); } for (ItemStack is : OreDictionary.getOres("craftingLens" + aMaterial.mColor.mName.replace(" ", ""))) { // Engraver // Recipe // adder is.stackSize = 0; GT_Values.RA.addLaserEngraverRecipe( - GT_Utility.copyAmount(3L, aStack), - is, - GT_OreDictUnificator.get(OrePrefixes.gemFlawless, aMaterial, 1L), - 1200, - 480); + GT_Utility.copyAmount(3L, aStack), + is, + GT_OreDictUnificator.get(OrePrefixes.gemFlawless, aMaterial, 1L), + 1200, + 480); } } case gemChipped -> { - if (aFuelPower) GT_Values.RA.addFuel( - GT_Utility.copyAmount(1L, aStack), - null, - aMaterial.mFuelPower / 2, - aMaterial.mFuelType); + if (aFuelPower) GT_Values.RA + .addFuel(GT_Utility.copyAmount(1L, aStack), null, aMaterial.mFuelPower / 2, aMaterial.mFuelType); if (!aNoWorking) { GT_Values.RA.addLatheRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.bolt, aMaterial, 1L), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, aMaterial, 1L), - (int) Math.max(aMaterialMass, 1L), - 8); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.bolt, aMaterial, 1L), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, aMaterial, 1L), + (int) Math.max(aMaterialMass, 1L), + 8); if (aMaterial.mUnificatable && (aMaterial.mMaterialInto == aMaterial)) { GT_Values.RA.addImplosionRecipe( - GT_Utility.copyAmount(3L, aStack), - 8, - GT_OreDictUnificator.get(OrePrefixes.gemFlawed, aMaterial, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 2)); + GT_Utility.copyAmount(3L, aStack), + 8, + GT_OreDictUnificator.get(OrePrefixes.gemFlawed, aMaterial, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 2)); GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.gemChipped, aMaterial, 2L), - GT_Proxy.tBits, - new Object[] { "h", "X", 'X', OrePrefixes.gemFlawed.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.gemChipped, aMaterial, 2L), + GT_Proxy.tBits, + new Object[] { "h", "X", 'X', OrePrefixes.gemFlawed.get(aMaterial) }); if (aSpecialRecipeReq) GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dustSmall, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { "X", "m", 'X', OrePrefixes.gemChipped.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.dustSmall, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { "X", "m", 'X', OrePrefixes.gemChipped.get(aMaterial) }); } } for (ItemStack is : OreDictionary.getOres("craftingLens" + aMaterial.mColor.mName.replace(" ", ""))) { // Engraver @@ -205,124 +200,111 @@ public class ProcessingGem implements gregtech.api.interfaces.IOreRecipeRegistra // adder is.stackSize = 0; GT_Values.RA.addLaserEngraverRecipe( - GT_Utility.copyAmount(3L, aStack), - is, - GT_OreDictUnificator.get(OrePrefixes.gemFlawed, aMaterial, 1L), - 600, - 30); + GT_Utility.copyAmount(3L, aStack), + is, + GT_OreDictUnificator.get(OrePrefixes.gemFlawed, aMaterial, 1L), + 600, + 30); } } case gemExquisite -> { - if (aFuelPower) GT_Values.RA.addFuel( - GT_Utility.copyAmount(1L, aStack), - null, - aMaterial.mFuelPower * 8, - aMaterial.mFuelType); + if (aFuelPower) GT_Values.RA + .addFuel(GT_Utility.copyAmount(1L, aStack), null, aMaterial.mFuelPower * 8, aMaterial.mFuelType); if (!aNoWorking) { if (aMaterial.mUnificatable && (aMaterial.mMaterialInto == aMaterial)) if (aSpecialRecipeReq) GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 4L), - GT_Proxy.tBits, - new Object[] { "X", "m", 'X', OrePrefixes.gemExquisite.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 4L), + GT_Proxy.tBits, + new Object[] { "X", "m", 'X', OrePrefixes.gemExquisite.get(aMaterial) }); } GT_Values.RA.addForgeHammerRecipe( - aStack, - GT_OreDictUnificator.get(OrePrefixes.gemFlawless, aMaterial, 2L), - 64, - 16); + aStack, + GT_OreDictUnificator.get(OrePrefixes.gemFlawless, aMaterial, 2L), + 64, + 16); } case gemFlawed -> { - if (aFuelPower) GT_Values.RA.addFuel( - GT_Utility.copyAmount(1L, aStack), - null, - aMaterial.mFuelPower, - aMaterial.mFuelType); + if (aFuelPower) GT_Values.RA + .addFuel(GT_Utility.copyAmount(1L, aStack), null, aMaterial.mFuelPower, aMaterial.mFuelType); if (!aNoWorking) { GT_Values.RA.addLatheRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.bolt, aMaterial, 2L), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, aMaterial, 1L), - (int) Math.max(aMaterialMass, 1L), - 12); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.bolt, aMaterial, 2L), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, aMaterial, 1L), + (int) Math.max(aMaterialMass, 1L), + 12); if (aMaterial.mUnificatable && (aMaterial.mMaterialInto == aMaterial)) { GT_Values.RA.addImplosionRecipe( - GT_Utility.copyAmount(3L, aStack), - 8, - GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 2)); + GT_Utility.copyAmount(3L, aStack), + 8, + GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 2)); GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.gemFlawed, aMaterial, 2L), - GT_Proxy.tBits, - new Object[] { "h", "X", 'X', OrePrefixes.gem.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.gemFlawed, aMaterial, 2L), + GT_Proxy.tBits, + new Object[] { "h", "X", 'X', OrePrefixes.gem.get(aMaterial) }); if (aSpecialRecipeReq) GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dustSmall, aMaterial, 2L), - GT_Proxy.tBits, - new Object[] { "X", "m", 'X', OrePrefixes.gemFlawed.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.dustSmall, aMaterial, 2L), + GT_Proxy.tBits, + new Object[] { "X", "m", 'X', OrePrefixes.gemFlawed.get(aMaterial) }); } } GT_Values.RA.addForgeHammerRecipe( - aStack, - GT_OreDictUnificator.get(OrePrefixes.gemChipped, aMaterial, 2L), - 64, - 16); + aStack, + GT_OreDictUnificator.get(OrePrefixes.gemChipped, aMaterial, 2L), + 64, + 16); for (ItemStack is : OreDictionary.getOres("craftingLens" + aMaterial.mColor.mName.replace(" ", ""))) { // Engraver // Recipe // adder is.stackSize = 0; GT_Values.RA.addLaserEngraverRecipe( - GT_Utility.copyAmount(3L, aStack), - is, - GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 1L), - 600, - 120); + GT_Utility.copyAmount(3L, aStack), + is, + GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 1L), + 600, + 120); } } case gemFlawless -> { - if (aFuelPower) GT_Values.RA.addFuel( - GT_Utility.copyAmount(1L, aStack), - null, - aMaterial.mFuelPower * 4, - aMaterial.mFuelType); + if (aFuelPower) GT_Values.RA + .addFuel(GT_Utility.copyAmount(1L, aStack), null, aMaterial.mFuelPower * 4, aMaterial.mFuelType); if (!aNoWorking) { GT_Values.RA.addLatheRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.stickLong, aMaterial, 1L), - GT_OreDictUnificator.getDust( - aMaterial, - aPrefix.mMaterialAmount - OrePrefixes.stickLong.mMaterialAmount), - (int) Math.max(aMaterialMass * 5L, 1L), - 16); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.stickLong, aMaterial, 1L), + GT_OreDictUnificator + .getDust(aMaterial, aPrefix.mMaterialAmount - OrePrefixes.stickLong.mMaterialAmount), + (int) Math.max(aMaterialMass * 5L, 1L), + 16); if (aMaterial.mUnificatable && (aMaterial.mMaterialInto == aMaterial)) { GT_Values.RA.addImplosionRecipe( - GT_Utility.copyAmount(3L, aStack), - 8, - GT_OreDictUnificator.get(OrePrefixes.gemExquisite, aMaterial, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 2)); + GT_Utility.copyAmount(3L, aStack), + 8, + GT_OreDictUnificator.get(OrePrefixes.gemExquisite, aMaterial, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 2)); GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.gemFlawless, aMaterial, 2L), - GT_Proxy.tBits, - new Object[] { "h", "X", 'X', OrePrefixes.gemExquisite.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.gemFlawless, aMaterial, 2L), + GT_Proxy.tBits, + new Object[] { "h", "X", 'X', OrePrefixes.gemExquisite.get(aMaterial) }); if (aSpecialRecipeReq) GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 2L), - GT_Proxy.tBits, - new Object[] { "X", "m", 'X', OrePrefixes.gemFlawless.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 2L), + GT_Proxy.tBits, + new Object[] { "X", "m", 'X', OrePrefixes.gemFlawless.get(aMaterial) }); } } - GT_Values.RA.addForgeHammerRecipe( - aStack, - GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 2L), - 64, - 16); + GT_Values.RA + .addForgeHammerRecipe(aStack, GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 2L), 64, 16); for (ItemStack is : OreDictionary.getOres("craftingLens" + aMaterial.mColor.mName.replace(" ", ""))) { // Engraver // Recipe // adder is.stackSize = 0; GT_Values.RA.addLaserEngraverRecipe( - GT_Utility.copyAmount(3L, aStack), - is, - GT_OreDictUnificator.get(OrePrefixes.gemExquisite, aMaterial, 1L), - 2400, - 2000); + GT_Utility.copyAmount(3L, aStack), + is, + GT_OreDictUnificator.get(OrePrefixes.gemExquisite, aMaterial, 1L), + 2400, + 2000); } } default -> {} diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingIngot.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingIngot.java index fbc0766f81..0fd5d9e42e 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingIngot.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingIngot.java @@ -25,136 +25,125 @@ public class ProcessingIngot implements gregtech.api.interfaces.IOreRecipeRegist @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { boolean aNoSmashing = aMaterial.contains(SubTag.NO_SMASHING); boolean aNoSmelting = aMaterial.contains(SubTag.NO_SMELTING); long aMaterialMass = aMaterial.getMass(); boolean aSpecialRecipeReq = aMaterial.mUnificatable && (aMaterial.mMaterialInto == aMaterial) - && !aMaterial.contains(SubTag.NO_SMASHING); + && !aMaterial.contains(SubTag.NO_SMASHING); switch (aPrefix) { case ingot: if (aMaterial.mFuelPower > 0) { - GT_Values.RA.addFuel( - GT_Utility.copyAmount(1L, aStack), - null, - aMaterial.mFuelPower, - aMaterial.mFuelType); + GT_Values.RA + .addFuel(GT_Utility.copyAmount(1L, aStack), null, aMaterial.mFuelPower, aMaterial.mFuelType); } if (aMaterial.mStandardMoltenFluid != null) { if (!(aMaterial == Materials.AnnealedCopper || aMaterial == Materials.WroughtIron)) { GT_Values.RA.addFluidSolidifierRecipe( - ItemList.Shape_Mold_Ingot.get(0L), - aMaterial.getMolten(144L), - GT_OreDictUnificator.get(OrePrefixes.ingot, aMaterial, 1L), - 32, - calculateRecipeEU(aMaterial, 8)); + ItemList.Shape_Mold_Ingot.get(0L), + aMaterial.getMolten(144L), + GT_OreDictUnificator.get(OrePrefixes.ingot, aMaterial, 1L), + 32, + calculateRecipeEU(aMaterial, 8)); } } GT_RecipeRegistrator.registerReverseFluidSmelting(aStack, aMaterial, aPrefix.mMaterialAmount, null); - GT_RecipeRegistrator.registerReverseMacerating( - aStack, + GT_RecipeRegistrator + .registerReverseMacerating(aStack, aMaterial, aPrefix.mMaterialAmount, null, null, null, false); + if (aMaterial.mSmeltInto.mArcSmeltInto != aMaterial) { + GT_RecipeRegistrator.registerReverseArcSmelting( + GT_Utility.copyAmount(1L, aStack), aMaterial, aPrefix.mMaterialAmount, null, null, - null, - false); - if (aMaterial.mSmeltInto.mArcSmeltInto != aMaterial) { - GT_RecipeRegistrator.registerReverseArcSmelting( - GT_Utility.copyAmount(1L, aStack), - aMaterial, - aPrefix.mMaterialAmount, - null, - null, - null); + null); } ItemStack tStack; if ((null != (tStack = GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial.mMacerateInto, 1L))) - && ((aMaterial.mBlastFurnaceRequired) || aNoSmelting)) { + && ((aMaterial.mBlastFurnaceRequired) || aNoSmelting)) { GT_ModHandler.removeFurnaceSmelting(tStack); } if (aMaterial.mUnificatable && (aMaterial.mMaterialInto == aMaterial) - && !aMaterial.contains(SubTag.NO_WORKING)) { + && !aMaterial.contains(SubTag.NO_WORKING)) { if (!aMaterial.contains(SubTag.SMELTING_TO_GEM)) if ((aMaterial.contains(SubTag.MORTAR_GRINDABLE)) - && (GregTech_API.sRecipeFile.get(ConfigCategories.Tools.mortar, aMaterial.mName, true))) + && (GregTech_API.sRecipeFile.get(ConfigCategories.Tools.mortar, aMaterial.mName, true))) GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { ToolDictNames.craftingToolMortar, OrePrefixes.ingot.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { ToolDictNames.craftingToolMortar, OrePrefixes.ingot.get(aMaterial) }); } if (!aNoSmashing) { if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { GT_Values.RA.addForgeHammerRecipe( - GT_Utility.copyAmount(3L, aStack), - GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 2L), - (int) Math.max(aMaterialMass, 1L), - calculateRecipeEU(aMaterial, 16)); + GT_Utility.copyAmount(3L, aStack), + GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 2L), + (int) Math.max(aMaterialMass, 1L), + calculateRecipeEU(aMaterial, 16)); } GT_Values.RA.addBenderRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 1L), - (int) Math.max(aMaterialMass, 1L), - calculateRecipeEU(aMaterial, 24)); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 1L), + (int) Math.max(aMaterialMass, 1L), + calculateRecipeEU(aMaterial, 24)); GT_Values.RA.addBenderRecipe( - GT_Utility.copyAmount(2L, aStack), - GT_OreDictUnificator.get(OrePrefixes.plateDouble, aMaterial, 1L), - (int) Math.max(aMaterialMass * 2L, 1L), - calculateRecipeEU(aMaterial, 96)); + GT_Utility.copyAmount(2L, aStack), + GT_OreDictUnificator.get(OrePrefixes.plateDouble, aMaterial, 1L), + (int) Math.max(aMaterialMass * 2L, 1L), + calculateRecipeEU(aMaterial, 96)); GT_Values.RA.addBenderRecipe( - GT_Utility.copyAmount(3L, aStack), - GT_OreDictUnificator.get(OrePrefixes.plateTriple, aMaterial, 1L), - (int) Math.max(aMaterialMass * 3L, 1L), - calculateRecipeEU(aMaterial, 96)); + GT_Utility.copyAmount(3L, aStack), + GT_OreDictUnificator.get(OrePrefixes.plateTriple, aMaterial, 1L), + (int) Math.max(aMaterialMass * 3L, 1L), + calculateRecipeEU(aMaterial, 96)); GT_Values.RA.addBenderRecipe( - GT_Utility.copyAmount(4L, aStack), - GT_OreDictUnificator.get(OrePrefixes.plateQuadruple, aMaterial, 1L), - (int) Math.max(aMaterialMass * 4L, 1L), - calculateRecipeEU(aMaterial, 96)); + GT_Utility.copyAmount(4L, aStack), + GT_OreDictUnificator.get(OrePrefixes.plateQuadruple, aMaterial, 1L), + (int) Math.max(aMaterialMass * 4L, 1L), + calculateRecipeEU(aMaterial, 96)); GT_Values.RA.addBenderRecipe( - GT_Utility.copyAmount(5L, aStack), - GT_OreDictUnificator.get(OrePrefixes.plateQuintuple, aMaterial, 1L), - (int) Math.max(aMaterialMass * 5L, 1L), - calculateRecipeEU(aMaterial, 96)); + GT_Utility.copyAmount(5L, aStack), + GT_OreDictUnificator.get(OrePrefixes.plateQuintuple, aMaterial, 1L), + (int) Math.max(aMaterialMass * 5L, 1L), + calculateRecipeEU(aMaterial, 96)); GT_Values.RA.addBenderRecipe( - GT_Utility.copyAmount(9L, aStack), - GT_OreDictUnificator.get(OrePrefixes.plateDense, aMaterial, 1L), - (int) Math.max(aMaterialMass * 9L, 1L), - calculateRecipeEU(aMaterial, 96)); + GT_Utility.copyAmount(9L, aStack), + GT_OreDictUnificator.get(OrePrefixes.plateDense, aMaterial, 1L), + (int) Math.max(aMaterialMass * 9L, 1L), + calculateRecipeEU(aMaterial, 96)); GT_Values.RA.addBenderRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_Utility.getIntegratedCircuit(10), - GT_OreDictUnificator.get(OrePrefixes.foil, aMaterial, 4L), - (int) Math.max(aMaterialMass * 2L, 1L), - calculateRecipeEU(aMaterial, 24)); + GT_Utility.copyAmount(1L, aStack), + GT_Utility.getIntegratedCircuit(10), + GT_OreDictUnificator.get(OrePrefixes.foil, aMaterial, 4L), + (int) Math.max(aMaterialMass * 2L, 1L), + calculateRecipeEU(aMaterial, 24)); } break; case ingotDouble: if (!aNoSmashing) { GT_Values.RA.addBenderRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.plateDouble, aMaterial, 1L), - (int) Math.max(aMaterialMass, 1L), - calculateRecipeEU(aMaterial, 96)); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.plateDouble, aMaterial, 1L), + (int) Math.max(aMaterialMass, 1L), + calculateRecipeEU(aMaterial, 96)); GT_Values.RA.addBenderRecipe( - GT_Utility.copyAmount(2L, aStack), - GT_OreDictUnificator.get(OrePrefixes.plateQuadruple, aMaterial, 1L), - (int) Math.max(aMaterialMass * 2L, 1L), - calculateRecipeEU(aMaterial, 96)); + GT_Utility.copyAmount(2L, aStack), + GT_OreDictUnificator.get(OrePrefixes.plateQuadruple, aMaterial, 1L), + (int) Math.max(aMaterialMass * 2L, 1L), + calculateRecipeEU(aMaterial, 96)); // Enable crafting with hammer if tier is < IV. if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { - if (aSpecialRecipeReq && GregTech_API.sRecipeFile.get( - ConfigCategories.Tools.hammermultiingot, - aMaterial.toString(), - true)) { + if (aSpecialRecipeReq && GregTech_API.sRecipeFile + .get(ConfigCategories.Tools.hammermultiingot, aMaterial.toString(), true)) { GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.ingotDouble, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { "I", "I", "h", 'I', OrePrefixes.ingot.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.ingotDouble, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { "I", "I", "h", 'I', OrePrefixes.ingot.get(aMaterial) }); } } } @@ -162,25 +151,23 @@ public class ProcessingIngot implements gregtech.api.interfaces.IOreRecipeRegist case ingotTriple: if (!aNoSmashing) { GT_Values.RA.addBenderRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.plateTriple, aMaterial, 1L), - (int) Math.max(aMaterialMass, 1L), - calculateRecipeEU(aMaterial, 96)); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.plateTriple, aMaterial, 1L), + (int) Math.max(aMaterialMass, 1L), + calculateRecipeEU(aMaterial, 96)); GT_Values.RA.addBenderRecipe( - GT_Utility.copyAmount(3L, aStack), - GT_OreDictUnificator.get(OrePrefixes.plateDense, aMaterial, 1L), - (int) Math.max(aMaterialMass * 3L, 1L), - calculateRecipeEU(aMaterial, 96)); + GT_Utility.copyAmount(3L, aStack), + GT_OreDictUnificator.get(OrePrefixes.plateDense, aMaterial, 1L), + (int) Math.max(aMaterialMass * 3L, 1L), + calculateRecipeEU(aMaterial, 96)); if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { - if (aSpecialRecipeReq && GregTech_API.sRecipeFile.get( - ConfigCategories.Tools.hammermultiingot, - aMaterial.toString(), - true)) { + if (aSpecialRecipeReq && GregTech_API.sRecipeFile + .get(ConfigCategories.Tools.hammermultiingot, aMaterial.toString(), true)) { GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.ingotTriple, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { "I", "B", "h", 'I', OrePrefixes.ingotDouble.get(aMaterial), 'B', - OrePrefixes.ingot.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.ingotTriple, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { "I", "B", "h", 'I', OrePrefixes.ingotDouble.get(aMaterial), 'B', + OrePrefixes.ingot.get(aMaterial) }); } } } @@ -188,22 +175,20 @@ public class ProcessingIngot implements gregtech.api.interfaces.IOreRecipeRegist case ingotQuadruple: if (!aNoSmashing) { GT_Values.RA.addBenderRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.plateQuadruple, aMaterial, 1L), - (int) Math.max(aMaterialMass, 1L), - calculateRecipeEU(aMaterial, 96)); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.plateQuadruple, aMaterial, 1L), + (int) Math.max(aMaterialMass, 1L), + calculateRecipeEU(aMaterial, 96)); // If tier < IV add manual crafting. if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { - if (aSpecialRecipeReq && GregTech_API.sRecipeFile.get( - ConfigCategories.Tools.hammermultiingot, - aMaterial.toString(), - true)) { + if (aSpecialRecipeReq && GregTech_API.sRecipeFile + .get(ConfigCategories.Tools.hammermultiingot, aMaterial.toString(), true)) { GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.ingotQuadruple, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { "I", "B", "h", 'I', OrePrefixes.ingotTriple.get(aMaterial), 'B', - OrePrefixes.ingot.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.ingotQuadruple, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { "I", "B", "h", 'I', OrePrefixes.ingotTriple.get(aMaterial), 'B', + OrePrefixes.ingot.get(aMaterial) }); } } } @@ -211,21 +196,19 @@ public class ProcessingIngot implements gregtech.api.interfaces.IOreRecipeRegist case ingotQuintuple: if (!aNoSmashing) { GT_Values.RA.addBenderRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.plateQuintuple, aMaterial, 1L), - (int) Math.max(aMaterialMass, 1L), - calculateRecipeEU(aMaterial, 96)); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.plateQuintuple, aMaterial, 1L), + (int) Math.max(aMaterialMass, 1L), + calculateRecipeEU(aMaterial, 96)); if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { - if (aSpecialRecipeReq && GregTech_API.sRecipeFile.get( - ConfigCategories.Tools.hammermultiingot, - aMaterial.toString(), - true)) { + if (aSpecialRecipeReq && GregTech_API.sRecipeFile + .get(ConfigCategories.Tools.hammermultiingot, aMaterial.toString(), true)) { GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.ingotQuintuple, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { "I", "B", "h", 'I', OrePrefixes.ingotQuadruple.get(aMaterial), 'B', - OrePrefixes.ingot.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.ingotQuintuple, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { "I", "B", "h", 'I', OrePrefixes.ingotQuadruple.get(aMaterial), 'B', + OrePrefixes.ingot.get(aMaterial) }); } } } @@ -233,9 +216,9 @@ public class ProcessingIngot implements gregtech.api.interfaces.IOreRecipeRegist case ingotHot: if (aMaterial.mAutoGenerateVacuumFreezerRecipes) { GT_Values.RA.addVacuumFreezerRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.ingot, aMaterial, 1L), - (int) Math.max(aMaterialMass * 3L, 1L)); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.ingot, aMaterial, 1L), + (int) Math.max(aMaterialMass * 3L, 1L)); break; } default: diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingItem.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingItem.java index 46bcc170f1..6a132e2dba 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingItem.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingItem.java @@ -15,9 +15,9 @@ public class ProcessingItem implements gregtech.api.interfaces.IOreRecipeRegistr @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { if (GT_OreDictUnificator.getItemData(aStack) == null && !aOreDictName.equals("itemCertusQuartz") - && !aOreDictName.equals("itemNetherQuartz")) { + && !aOreDictName.equals("itemNetherQuartz")) { switch (aOreDictName) { case "itemSilicon": GT_OreDictUnificator.addItemData(aStack, new ItemData(Materials.Silicon, 3628800L)); diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingLens.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingLens.java index baa760dd3b..86b3caacbb 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingLens.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingLens.java @@ -19,48 +19,46 @@ public class ProcessingLens implements gregtech.api.interfaces.IOreRecipeRegistr @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { switch (aMaterial.mName) { case "Diamond", "Glass" -> { GT_Values.RA.addLatheRecipe( - GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 1L), - GT_OreDictUnificator.get(OrePrefixes.lens, aMaterial, 1L), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, aMaterial, 1L), - 1200, - 30); + GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 1L), + GT_OreDictUnificator.get(OrePrefixes.lens, aMaterial, 1L), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, aMaterial, 1L), + 1200, + 30); GT_Values.RA.addLatheRecipe( - GT_OreDictUnificator.get(OrePrefixes.gemExquisite, aMaterial, 1L), - GT_OreDictUnificator.get(OrePrefixes.lens, aMaterial, 3L), - GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 1L), - 2400, - 16); + GT_OreDictUnificator.get(OrePrefixes.gemExquisite, aMaterial, 1L), + GT_OreDictUnificator.get(OrePrefixes.lens, aMaterial, 3L), + GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 1L), + 2400, + 16); } case "ChromaticGlass" -> GT_Values.RA.addCompressorRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 16L), - GT_OreDictUnificator.get(OrePrefixes.lens, aMaterial, 1L), - 600 * 20, - 1966080); + GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 16L), + GT_OreDictUnificator.get(OrePrefixes.lens, aMaterial, 1L), + 600 * 20, + 1966080); default -> { GT_Values.RA.addLatheRecipe( - GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 1L), - GT_OreDictUnificator.get(OrePrefixes.lens, aMaterial, 1L), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, aMaterial, 1L), - 1200, - 120); + GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 1L), + GT_OreDictUnificator.get(OrePrefixes.lens, aMaterial, 1L), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, aMaterial, 1L), + 1200, + 120); GT_Values.RA.addLatheRecipe( - GT_OreDictUnificator.get(OrePrefixes.gemExquisite, aMaterial, 1L), - GT_OreDictUnificator.get(OrePrefixes.lens, aMaterial, 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 2L), - 2400, - 30); - final ITexture lensCoverTexture = TextureFactory.of( - Textures.BlockIcons.OVERLAY_LENS, - aMaterial.mRGBa, - false); + GT_OreDictUnificator.get(OrePrefixes.gemExquisite, aMaterial, 1L), + GT_OreDictUnificator.get(OrePrefixes.lens, aMaterial, 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 2L), + 2400, + 30); + final ITexture lensCoverTexture = TextureFactory + .of(Textures.BlockIcons.OVERLAY_LENS, aMaterial.mRGBa, false); GregTech_API.registerCover( - aStack, - TextureFactory.of(Textures.BlockIcons.MACHINE_CASINGS[2][0], lensCoverTexture), - new gregtech.common.covers.GT_Cover_Lens(aMaterial.mColor.mIndex, lensCoverTexture)); + aStack, + TextureFactory.of(Textures.BlockIcons.MACHINE_CASINGS[2][0], lensCoverTexture), + new gregtech.common.covers.GT_Cover_Lens(aMaterial.mColor.mIndex, lensCoverTexture)); } } } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingLog.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingLog.java index c3b57a61b7..83fe77d82e 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingLog.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingLog.java @@ -20,116 +20,112 @@ public class ProcessingLog implements gregtech.api.interfaces.IOreRecipeRegistra @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { if (aOreDictName.equals("logRubber")) { GT_Values.RA.addCentrifugeRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_Utility.getIntegratedCircuit(2), - null, - Materials.Methane.getGas(60L), - ItemList.IC2_Resin.get(1L), - GT_ModHandler.getIC2Item("plantBall", 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Carbon, 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 1L), - GT_Values.NI, - GT_Values.NI, - new int[] { 5000, 3750, 2500, 2500 }, - 200, - 20); + GT_Utility.copyAmount(1L, aStack), + GT_Utility.getIntegratedCircuit(2), + null, + Materials.Methane.getGas(60L), + ItemList.IC2_Resin.get(1L), + GT_ModHandler.getIC2Item("plantBall", 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Carbon, 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 1L), + GT_Values.NI, + GT_Values.NI, + new int[] { 5000, 3750, 2500, 2500 }, + 200, + 20); GT_ModHandler.addSawmillRecipe( - GT_Utility.copyAmount(1L, aStack), - ItemList.IC2_Resin.get(1L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 16L)); + GT_Utility.copyAmount(1L, aStack), + ItemList.IC2_Resin.get(1L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 16L)); GT_ModHandler.addExtractionRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.RawRubber, 1L)); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.RawRubber, 1L)); GT_ModHandler.addPulverisationRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 6L), - ItemList.IC2_Resin.get(1L), - 33, - false); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 6L), + ItemList.IC2_Resin.get(1L), + 33, + false); } else { GT_Values.RA.addCentrifugeRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_Utility.getIntegratedCircuit(1), - null, - Materials.Methane.getGas(60L), - GT_Values.NI, - GT_Values.NI, - GT_Values.NI, - GT_Values.NI, - GT_Values.NI, - GT_Values.NI, - null, - 200, - 20); + GT_Utility.copyAmount(1L, aStack), + GT_Utility.getIntegratedCircuit(1), + null, + Materials.Methane.getGas(60L), + GT_Values.NI, + GT_Values.NI, + GT_Values.NI, + GT_Values.NI, + GT_Values.NI, + GT_Values.NI, + null, + 200, + 20); GT_ModHandler.addPulverisationRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 6L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 1L), - 80, - false); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 6L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 1L), + 80, + false); } GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Wood, 2L), - gregtech.api.util.GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | gregtech.api.util.GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "sLf", 'L', GT_Utility.copyAmount(1L, aStack) }); + GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Wood, 2L), + gregtech.api.util.GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | gregtech.api.util.GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "sLf", 'L', GT_Utility.copyAmount(1L, aStack) }); GT_Values.RA.addLatheRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Wood, 4L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 2L), - 160, - 8); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Wood, 4L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 2L), + 160, + 8); GT_Values.RA.addAssemblerRecipe( - GT_Utility.copyAmount(1L, aStack), - ItemList.Circuit_Integrated.getWithDamage(0L, 2L), - Materials.SeedOil.getFluid(50L), - ItemList.FR_Stick.get(1L), - 16, - 8); + GT_Utility.copyAmount(1L, aStack), + ItemList.Circuit_Integrated.getWithDamage(0L, 2L), + Materials.SeedOil.getFluid(50L), + ItemList.FR_Stick.get(1L), + 16, + 8); GT_Values.RA.addAssemblerRecipe( - GT_Utility.copyAmount(8L, aStack), - ItemList.Circuit_Integrated.getWithDamage(0L, 8L), - Materials.SeedOil.getFluid(250L), - ItemList.FR_Casing_Impregnated.get(1L), - 64, - 16); + GT_Utility.copyAmount(8L, aStack), + ItemList.Circuit_Integrated.getWithDamage(0L, 8L), + Materials.SeedOil.getFluid(250L), + ItemList.FR_Casing_Impregnated.get(1L), + 64, + 16); GT_Values.RA.addChemicalBathRecipe( - GT_Utility.copyAmount(1L, aStack), - Materials.Creosote.getFluid(1000L), - GT_ModHandler.getModItem(Railcraft.ID, "tile.railcraft.cube", 1L, 8), - null, - null, - null, - 16, - 16); + GT_Utility.copyAmount(1L, aStack), + Materials.Creosote.getFluid(1000L), + GT_ModHandler.getModItem(Railcraft.ID, "tile.railcraft.cube", 1L, 8), + null, + null, + null, + 16, + 16); short aMeta = (short) aStack.getItemDamage(); if (aMeta == Short.MAX_VALUE) { if ((GT_Utility.areStacksEqual( - GT_ModHandler.getSmeltingOutput(GT_Utility.copyAmount(1L, aStack), false, null), - new ItemStack(Items.coal, 1, 1)))) { + GT_ModHandler.getSmeltingOutput(GT_Utility.copyAmount(1L, aStack), false, null), + new ItemStack(Items.coal, 1, 1)))) { addPyrolyeOvenRecipes(aStack); - if (GregTech_API.sRecipeFile.get( - ConfigCategories.Recipes.disabledrecipes, - "wood2charcoalsmelting", - true)) { + if (GregTech_API.sRecipeFile + .get(ConfigCategories.Recipes.disabledrecipes, "wood2charcoalsmelting", true)) { GT_ModHandler.removeFurnaceSmelting(GT_Utility.copyAmount(1L, aStack)); } } for (int i = 0; i < 32767; i++) { if ((GT_Utility.areStacksEqual( - GT_ModHandler.getSmeltingOutput(new ItemStack(aStack.getItem(), 1, i), false, null), - new ItemStack(Items.coal, 1, 1)))) { + GT_ModHandler.getSmeltingOutput(new ItemStack(aStack.getItem(), 1, i), false, null), + new ItemStack(Items.coal, 1, 1)))) { addPyrolyeOvenRecipes(aStack); - if (GregTech_API.sRecipeFile.get( - ConfigCategories.Recipes.disabledrecipes, - "wood2charcoalsmelting", - true)) { + if (GregTech_API.sRecipeFile + .get(ConfigCategories.Recipes.disabledrecipes, "wood2charcoalsmelting", true)) { GT_ModHandler.removeFurnaceSmelting(new ItemStack(aStack.getItem(), 1, i)); } } @@ -142,48 +138,45 @@ public class ProcessingLog implements gregtech.api.interfaces.IOreRecipeRegistra ItemStack tPlanks = GT_Utility.copyOrNull(tStack); tPlanks.stackSize = (tPlanks.stackSize * 3 / 2); GT_Values.RA.addCutterRecipe( - new ItemStack(aStack.getItem(), 1, i), - Materials.Lubricant.getFluid(1L), - GT_Utility.copyOrNull(tPlanks), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 1L), - 200, - 8); + new ItemStack(aStack.getItem(), 1, i), + Materials.Lubricant.getFluid(1L), + GT_Utility.copyOrNull(tPlanks), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 1L), + 200, + 8); GT_Values.RA.addCutterRecipe( - new ItemStack(aStack.getItem(), 1, i), - GT_Utility.copyAmount( - GT_Mod.gregtechproxy.mNerfedWoodPlank ? tStack.stackSize : tStack.stackSize * 5 / 4, - tStack), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 2L), - 200, - 8); + new ItemStack(aStack.getItem(), 1, i), + GT_Utility.copyAmount( + GT_Mod.gregtechproxy.mNerfedWoodPlank ? tStack.stackSize : tStack.stackSize * 5 / 4, + tStack), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 2L), + 200, + 8); GT_ModHandler.addSawmillRecipe( - new ItemStack(aStack.getItem(), 1, i), - tPlanks, - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 1L)); + new ItemStack(aStack.getItem(), 1, i), + tPlanks, + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 1L)); GT_ModHandler.removeRecipeDelayed(new ItemStack(aStack.getItem(), 1, i)); GT_ModHandler.addCraftingRecipe( - GT_Utility.copyAmount( - GT_Mod.gregtechproxy.mNerfedWoodPlank ? tStack.stackSize : tStack.stackSize * 5 / 4, - tStack), - GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "s", "L", 'L', new ItemStack(aStack.getItem(), 1, i) }); + GT_Utility.copyAmount( + GT_Mod.gregtechproxy.mNerfedWoodPlank ? tStack.stackSize : tStack.stackSize * 5 / 4, + tStack), + GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "s", "L", 'L', new ItemStack(aStack.getItem(), 1, i) }); GT_ModHandler.addShapelessCraftingRecipe( - GT_Utility.copyAmount( - tStack.stackSize / (GT_Mod.gregtechproxy.mNerfedWoodPlank ? 2 : 1), - tStack), - GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { new ItemStack(aStack.getItem(), 1, i) }); + GT_Utility + .copyAmount(tStack.stackSize / (GT_Mod.gregtechproxy.mNerfedWoodPlank ? 2 : 1), tStack), + GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { new ItemStack(aStack.getItem(), 1, i) }); } } } else { if ((GT_Utility.areStacksEqual( - GT_ModHandler.getSmeltingOutput(GT_Utility.copyAmount(1L, aStack), false, null), - new ItemStack(Items.coal, 1, 1)))) { + GT_ModHandler.getSmeltingOutput(GT_Utility.copyAmount(1L, aStack), false, null), + new ItemStack(Items.coal, 1, 1)))) { addPyrolyeOvenRecipes(aStack); - if (GregTech_API.sRecipeFile.get( - ConfigCategories.Recipes.disabledrecipes, - "wood2charcoalsmelting", - true)) { + if (GregTech_API.sRecipeFile + .get(ConfigCategories.Recipes.disabledrecipes, "wood2charcoalsmelting", true)) { GT_ModHandler.removeFurnaceSmelting(GT_Utility.copyAmount(1L, aStack)); } } @@ -192,41 +185,39 @@ public class ProcessingLog implements gregtech.api.interfaces.IOreRecipeRegistra ItemStack tPlanks = GT_Utility.copyOrNull(tStack); tPlanks.stackSize = (tPlanks.stackSize * 3 / 2); GT_Values.RA.addCutterRecipe( - GT_Utility.copyAmount(1L, aStack), - Materials.Lubricant.getFluid(1L), - GT_Utility.copyOrNull(tPlanks), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 1L), - 200, - 8); + GT_Utility.copyAmount(1L, aStack), + Materials.Lubricant.getFluid(1L), + GT_Utility.copyOrNull(tPlanks), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 1L), + 200, + 8); GT_Values.RA.addCutterRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_Utility.copyAmount( - GT_Mod.gregtechproxy.mNerfedWoodPlank ? tStack.stackSize : tStack.stackSize * 5 / 4, - tStack), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 2L), - 200, - 8); + GT_Utility.copyAmount(1L, aStack), + GT_Utility.copyAmount( + GT_Mod.gregtechproxy.mNerfedWoodPlank ? tStack.stackSize : tStack.stackSize * 5 / 4, + tStack), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 2L), + 200, + 8); GT_ModHandler.addSawmillRecipe( - GT_Utility.copyAmount(1L, aStack), - tPlanks, - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 1L)); + GT_Utility.copyAmount(1L, aStack), + tPlanks, + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 1L)); GT_ModHandler.removeRecipeDelayed(GT_Utility.copyAmount(1L, aStack)); GT_ModHandler.addCraftingRecipe( - GT_Utility.copyAmount( - GT_Mod.gregtechproxy.mNerfedWoodPlank ? tStack.stackSize : tStack.stackSize * 5 / 4, - tStack), - new Object[] { "s", "L", 'L', GT_Utility.copyAmount(1L, aStack) }); + GT_Utility.copyAmount( + GT_Mod.gregtechproxy.mNerfedWoodPlank ? tStack.stackSize : tStack.stackSize * 5 / 4, + tStack), + new Object[] { "s", "L", 'L', GT_Utility.copyAmount(1L, aStack) }); GT_ModHandler.addShapelessCraftingRecipe( - GT_Utility.copyAmount( - tStack.stackSize / (GT_Mod.gregtechproxy.mNerfedWoodPlank ? 2 : 1), - tStack), - new Object[] { GT_Utility.copyAmount(1L, aStack) }); + GT_Utility.copyAmount(tStack.stackSize / (GT_Mod.gregtechproxy.mNerfedWoodPlank ? 2 : 1), tStack), + new Object[] { GT_Utility.copyAmount(1L, aStack) }); } } if ((GT_Utility.areStacksEqual( - GT_ModHandler.getSmeltingOutput(GT_Utility.copyAmount(1L, aStack), false, null), - new ItemStack(Items.coal, 1, 1)))) { + GT_ModHandler.getSmeltingOutput(GT_Utility.copyAmount(1L, aStack), false, null), + new ItemStack(Items.coal, 1, 1)))) { addPyrolyeOvenRecipes(aStack); if (GregTech_API.sRecipeFile.get(ConfigCategories.Recipes.disabledrecipes, "wood2charcoalsmelting", true)) GT_ModHandler.removeFurnaceSmelting(GT_Utility.copyAmount(1L, aStack)); @@ -235,92 +226,92 @@ public class ProcessingLog implements gregtech.api.interfaces.IOreRecipeRegistra public static void addPyrolyeOvenRecipes(ItemStack logStack) { GT_Values.RA.addPyrolyseRecipe( - GT_Utility.copyAmount(16L, logStack), - GT_Values.NF, - 1, - Materials.Charcoal.getGems(20), - Materials.Creosote.getFluid(4000), - 640, - 64); + GT_Utility.copyAmount(16L, logStack), + GT_Values.NF, + 1, + Materials.Charcoal.getGems(20), + Materials.Creosote.getFluid(4000), + 640, + 64); GT_Values.RA.addPyrolyseRecipe( - GT_Utility.copyAmount(16L, logStack), - Materials.Nitrogen.getGas(1000), - 2, - Materials.Charcoal.getGems(20), - Materials.Creosote.getFluid(4000), - 320, - 96); + GT_Utility.copyAmount(16L, logStack), + Materials.Nitrogen.getGas(1000), + 2, + Materials.Charcoal.getGems(20), + Materials.Creosote.getFluid(4000), + 320, + 96); GT_Values.RA.addPyrolyseRecipe( - GT_Utility.copyAmount(16L, logStack), - GT_Values.NF, - 3, - Materials.Ash.getDust(4), - Materials.OilHeavy.getFluid(200), - 320, - 192); + GT_Utility.copyAmount(16L, logStack), + GT_Values.NF, + 3, + Materials.Ash.getDust(4), + Materials.OilHeavy.getFluid(200), + 320, + 192); GT_Values.RA.addPyrolyseRecipe( - GT_Utility.copyAmount(16L, logStack), - GT_Values.NF, - 3, - Materials.Charcoal.getGems(20), - Materials.CharcoalByproducts.getGas(4000), - 640, - 64); + GT_Utility.copyAmount(16L, logStack), + GT_Values.NF, + 3, + Materials.Charcoal.getGems(20), + Materials.CharcoalByproducts.getGas(4000), + 640, + 64); GT_Values.RA.addPyrolyseRecipe( - GT_Utility.copyAmount(16L, logStack), - Materials.Nitrogen.getGas(1000), - 4, - Materials.Charcoal.getGems(20), - Materials.CharcoalByproducts.getGas(4000), - 320, - 96); + GT_Utility.copyAmount(16L, logStack), + Materials.Nitrogen.getGas(1000), + 4, + Materials.Charcoal.getGems(20), + Materials.CharcoalByproducts.getGas(4000), + 320, + 96); GT_Values.RA.addPyrolyseRecipe( - GT_Utility.copyAmount(16L, logStack), - GT_Values.NF, - 5, - Materials.Charcoal.getGems(20), - Materials.WoodGas.getGas(1500), - 640, - 64); + GT_Utility.copyAmount(16L, logStack), + GT_Values.NF, + 5, + Materials.Charcoal.getGems(20), + Materials.WoodGas.getGas(1500), + 640, + 64); GT_Values.RA.addPyrolyseRecipe( - GT_Utility.copyAmount(16L, logStack), - Materials.Nitrogen.getGas(1000), - 6, - Materials.Charcoal.getGems(20), - Materials.WoodGas.getGas(1500), - 320, - 96); + GT_Utility.copyAmount(16L, logStack), + Materials.Nitrogen.getGas(1000), + 6, + Materials.Charcoal.getGems(20), + Materials.WoodGas.getGas(1500), + 320, + 96); GT_Values.RA.addPyrolyseRecipe( - GT_Utility.copyAmount(16L, logStack), - GT_Values.NF, - 7, - Materials.Charcoal.getGems(20), - Materials.WoodVinegar.getFluid(3000), - 640, - 64); + GT_Utility.copyAmount(16L, logStack), + GT_Values.NF, + 7, + Materials.Charcoal.getGems(20), + Materials.WoodVinegar.getFluid(3000), + 640, + 64); GT_Values.RA.addPyrolyseRecipe( - GT_Utility.copyAmount(16L, logStack), - Materials.Nitrogen.getGas(1000), - 8, - Materials.Charcoal.getGems(20), - Materials.WoodVinegar.getFluid(3000), - 320, - 96); + GT_Utility.copyAmount(16L, logStack), + Materials.Nitrogen.getGas(1000), + 8, + Materials.Charcoal.getGems(20), + Materials.WoodVinegar.getFluid(3000), + 320, + 96); GT_Values.RA.addPyrolyseRecipe( - GT_Utility.copyAmount(16L, logStack), - GT_Values.NF, - 9, - Materials.Charcoal.getGems(20), - Materials.WoodTar.getFluid(1500), - 640, - 64); + GT_Utility.copyAmount(16L, logStack), + GT_Values.NF, + 9, + Materials.Charcoal.getGems(20), + Materials.WoodTar.getFluid(1500), + 640, + 64); GT_Values.RA.addPyrolyseRecipe( - GT_Utility.copyAmount(16L, logStack), - Materials.Nitrogen.getGas(1000), - 10, - Materials.Charcoal.getGems(20), - Materials.WoodTar.getFluid(1500), - 320, - 96); + GT_Utility.copyAmount(16L, logStack), + Materials.Nitrogen.getGas(1000), + 10, + Materials.Charcoal.getGems(20), + Materials.WoodTar.getFluid(1500), + 320, + 96); } } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingNugget.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingNugget.java index af95ed62fd..bea8ab3bb7 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingNugget.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingNugget.java @@ -18,50 +18,44 @@ public class ProcessingNugget implements gregtech.api.interfaces.IOreRecipeRegis @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { GT_Values.RA.addAlloySmelterRecipe( - GT_Utility.copyAmount(9L, aStack), - aMaterial.contains(SubTag.SMELTING_TO_GEM) ? ItemList.Shape_Mold_Ball.get(0L) - : ItemList.Shape_Mold_Ingot.get(0L), - GT_OreDictUnificator.get( - aMaterial.contains(SubTag.SMELTING_TO_GEM) ? OrePrefixes.gem : OrePrefixes.ingot, - aMaterial.mSmeltInto, - 1L), - 200, - calculateRecipeEU(aMaterial, 2)); + GT_Utility.copyAmount(9L, aStack), + aMaterial.contains(SubTag.SMELTING_TO_GEM) ? ItemList.Shape_Mold_Ball.get(0L) + : ItemList.Shape_Mold_Ingot.get(0L), + GT_OreDictUnificator.get( + aMaterial.contains(SubTag.SMELTING_TO_GEM) ? OrePrefixes.gem : OrePrefixes.ingot, + aMaterial.mSmeltInto, + 1L), + 200, + calculateRecipeEU(aMaterial, 2)); if (aMaterial.mStandardMoltenFluid != null) if (!(aMaterial == Materials.AnnealedCopper || aMaterial == Materials.WroughtIron)) { GT_Values.RA.addFluidSolidifierRecipe( - ItemList.Shape_Mold_Nugget.get(0L), - aMaterial.getMolten(16L), - GT_OreDictUnificator.get(OrePrefixes.nugget, aMaterial, 1L), - 16, - calculateRecipeEU(aMaterial, 4)); + ItemList.Shape_Mold_Nugget.get(0L), + aMaterial.getMolten(16L), + GT_OreDictUnificator.get(OrePrefixes.nugget, aMaterial, 1L), + 16, + calculateRecipeEU(aMaterial, 4)); } GT_RecipeRegistrator.registerReverseFluidSmelting(aStack, aMaterial, aPrefix.mMaterialAmount, null); - GT_RecipeRegistrator.registerReverseMacerating( - aStack, - aMaterial, - aPrefix.mMaterialAmount, - null, - null, - null, - false); + GT_RecipeRegistrator + .registerReverseMacerating(aStack, aMaterial, aPrefix.mMaterialAmount, null, null, null, false); if (!aMaterial.contains(SubTag.NO_SMELTING)) { GT_Values.RA.addAlloySmelterRecipe( - GT_OreDictUnificator.get(OrePrefixes.ingot, aMaterial, 1L), - ItemList.Shape_Mold_Nugget.get(0L), - GT_Utility.copyAmount(9L, aStack), - 100, - calculateRecipeEU(aMaterial, 1)); + GT_OreDictUnificator.get(OrePrefixes.ingot, aMaterial, 1L), + ItemList.Shape_Mold_Nugget.get(0L), + GT_Utility.copyAmount(9L, aStack), + 100, + calculateRecipeEU(aMaterial, 1)); if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.nugget, aMaterial, 9L), - GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "sI ", 'I', OrePrefixes.ingot.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.nugget, aMaterial, 9L), + GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "sI ", 'I', OrePrefixes.ingot.get(aMaterial) }); } } } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingOre.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingOre.java index cba50285a6..a74aa229a5 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingOre.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingOre.java @@ -19,60 +19,56 @@ public class ProcessingOre implements gregtech.api.interfaces.IOreRecipeRegistra public ProcessingOre() { for (OrePrefixes tPrefix : OrePrefixes.values()) if ((tPrefix.name() - .startsWith("ore")) - && (tPrefix != OrePrefixes.orePoor) - && (tPrefix != OrePrefixes.oreSmall) - && (tPrefix != OrePrefixes.oreRich) - && (tPrefix != OrePrefixes.oreNormal)) - tPrefix.add(this); + .startsWith("ore")) && (tPrefix != OrePrefixes.orePoor) + && (tPrefix != OrePrefixes.oreSmall) + && (tPrefix != OrePrefixes.oreRich) + && (tPrefix != OrePrefixes.oreNormal)) tPrefix.add(this); } @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { boolean tIsRich = (aPrefix == OrePrefixes.oreNetherrack) || (aPrefix == OrePrefixes.oreNether) - || (aPrefix == OrePrefixes.oreEndstone) - || (aPrefix == OrePrefixes.oreEnd) - || (aPrefix == OrePrefixes.oreRich) - || (aPrefix == OrePrefixes.oreDense); + || (aPrefix == OrePrefixes.oreEndstone) + || (aPrefix == OrePrefixes.oreEnd) + || (aPrefix == OrePrefixes.oreRich) + || (aPrefix == OrePrefixes.oreDense); if (aMaterial == Materials.Oilsands) { GT_Values.RA.addCentrifugeRecipe( - GT_Utility.copyAmount(1L, aStack), - null, - null, - Materials.OilHeavy.getFluid(tIsRich ? 4000L : 2000L), - new ItemStack(net.minecraft.init.Blocks.sand, 1, 0), - null, - null, - null, - null, - null, - new int[] { tIsRich ? 2000 : 4000 }, - tIsRich ? 600 : 300, - 30); + GT_Utility.copyAmount(1L, aStack), + null, + null, + Materials.OilHeavy.getFluid(tIsRich ? 4000L : 2000L), + new ItemStack(net.minecraft.init.Blocks.sand, 1, 0), + null, + null, + null, + null, + null, + new int[] { tIsRich ? 2000 : 4000 }, + tIsRich ? 600 : 300, + 30); } else { registerStandardOreRecipes( - aPrefix, - aMaterial, - GT_Utility.copyAmount(1L, aStack), - Math.max( - 1, - gregtech.api.GregTech_API.sOPStuff.get( - gregtech.api.enums.ConfigCategories.Materials.oreprocessingoutputmultiplier, - aMaterial.toString(), - 1)) - * (tIsRich ? 2 : 1)); + aPrefix, + aMaterial, + GT_Utility.copyAmount(1L, aStack), + Math.max( + 1, + gregtech.api.GregTech_API.sOPStuff.get( + gregtech.api.enums.ConfigCategories.Materials.oreprocessingoutputmultiplier, + aMaterial.toString(), + 1)) + * (tIsRich ? 2 : 1)); } } private boolean registerStandardOreRecipes(OrePrefixes aPrefix, Materials aMaterial, ItemStack aOreStack, - int aMultiplier) { + int aMultiplier) { if ((aOreStack == null) || (aMaterial == null)) return false; - GT_ModHandler.addValuableOre( - GT_Utility.getBlockFromStack(aOreStack), - aOreStack.getItemDamage(), - aMaterial.mOreValue); + GT_ModHandler + .addValuableOre(GT_Utility.getBlockFromStack(aOreStack), aOreStack.getItemDamage(), aMaterial.mOreValue); Materials tMaterial = aMaterial.mOreReplacement; Materials tPrimaryByMaterial = null; aMultiplier = Math.max(1, aMultiplier); @@ -81,37 +77,37 @@ public class ProcessingOre implements gregtech.api.interfaces.IOreRecipeRegistra ItemStack tIngot = GT_OreDictUnificator.get(OrePrefixes.ingot, aMaterial.mDirectSmelting, 1L); ItemStack tGem = GT_OreDictUnificator.get(OrePrefixes.gem, tMaterial, 1L); - ItemStack tSmeltInto = tIngot == null ? null + ItemStack tSmeltInto = tIngot + == null + ? null : aMaterial.contains(SubTag.SMELTING_TO_GEM) - ? GT_OreDictUnificator.get( + ? GT_OreDictUnificator.get( + OrePrefixes.gem, + tMaterial.mDirectSmelting, + GT_OreDictUnificator.get( + OrePrefixes.crystal, + tMaterial.mDirectSmelting, + GT_OreDictUnificator.get( OrePrefixes.gem, - tMaterial.mDirectSmelting, - GT_OreDictUnificator.get( - OrePrefixes.crystal, - tMaterial.mDirectSmelting, - GT_OreDictUnificator.get( - OrePrefixes.gem, - tMaterial, - GT_OreDictUnificator.get(OrePrefixes.crystal, tMaterial, 1L), - 1L), - 1L), - 1L) - : tIngot; + tMaterial, + GT_OreDictUnificator.get(OrePrefixes.crystal, tMaterial, 1L), + 1L), + 1L), + 1L) + : tIngot; ItemStack tDust = GT_OreDictUnificator.get(OrePrefixes.dust, tMaterial, tGem, 1L); ItemStack tCleaned = GT_OreDictUnificator.get(OrePrefixes.crushedPurified, tMaterial, tDust, 1L); - ItemStack tCrushed = GT_OreDictUnificator.get( - OrePrefixes.crushed, - tMaterial, - aMaterial.mOreMultiplier * aMultiplier); + ItemStack tCrushed = GT_OreDictUnificator + .get(OrePrefixes.crushed, tMaterial, aMaterial.mOreMultiplier * aMultiplier); ItemStack tPrimaryByProduct = null; if (tCrushed == null) { tCrushed = GT_OreDictUnificator.get( - OrePrefixes.dustImpure, - tMaterial, - GT_Utility.copyAmount(aMaterial.mOreMultiplier * aMultiplier, tCleaned, tDust, tGem), - aMaterial.mOreMultiplier * aMultiplier); + OrePrefixes.dustImpure, + tMaterial, + GT_Utility.copyAmount(aMaterial.mOreMultiplier * aMultiplier, tCleaned, tDust, tGem), + aMaterial.mOreMultiplier * aMultiplier); } ArrayList tByProductStacks = new ArrayList<>(); @@ -122,32 +118,26 @@ public class ProcessingOre implements gregtech.api.interfaces.IOreRecipeRegistra if (tPrimaryByProduct == null) { tPrimaryByMaterial = tMat; tPrimaryByProduct = GT_OreDictUnificator.get(OrePrefixes.dust, tMat, 1L); - if (GT_OreDictUnificator.get(OrePrefixes.dustSmall, tMat, 1L) == null) GT_OreDictUnificator.get( - OrePrefixes.dustTiny, - tMat, - GT_OreDictUnificator.get(OrePrefixes.nugget, tMat, 2L), - 2L); + if (GT_OreDictUnificator.get(OrePrefixes.dustSmall, tMat, 1L) == null) GT_OreDictUnificator + .get(OrePrefixes.dustTiny, tMat, GT_OreDictUnificator.get(OrePrefixes.nugget, tMat, 2L), 2L); } GT_OreDictUnificator.get(OrePrefixes.dust, tMat, 1L); - if (GT_OreDictUnificator.get(OrePrefixes.dustSmall, tMat, 1L) == null) GT_OreDictUnificator.get( - OrePrefixes.dustTiny, - tMat, - GT_OreDictUnificator.get(OrePrefixes.nugget, tMat, 2L), - 2L); + if (GT_OreDictUnificator.get(OrePrefixes.dustSmall, tMat, 1L) == null) GT_OreDictUnificator + .get(OrePrefixes.dustTiny, tMat, GT_OreDictUnificator.get(OrePrefixes.nugget, tMat, 2L), 2L); } if ((!tByProductStacks.isEmpty()) && (!this.mAlreadyListedOres.contains(aMaterial))) { this.mAlreadyListedOres.add(aMaterial); gregtech.api.util.GT_Recipe.GT_Recipe_Map.sByProductList.addFakeRecipe( - false, - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.ore, aMaterial, aOreStack, 1L) }, - tByProductStacks.toArray(new ItemStack[0]), - null, - null, - null, - null, - 0, - 0, - 0); + false, + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.ore, aMaterial, aOreStack, 1L) }, + tByProductStacks.toArray(new ItemStack[0]), + null, + null, + null, + null, + 0, + 0, + 0); } if (tPrimaryByMaterial == null) tPrimaryByMaterial = tMaterial; @@ -159,105 +149,95 @@ public class ProcessingOre implements gregtech.api.interfaces.IOreRecipeRegistra GT_ModHandler.removeFurnaceSmelting(aOreStack); } else { tHasSmelting = GT_ModHandler.addSmeltingRecipe( - aOreStack, - GT_Utility.copyAmount(aMultiplier * aMaterial.mSmeltingMultiplier, tSmeltInto)); + aOreStack, + GT_Utility.copyAmount(aMultiplier * aMaterial.mSmeltingMultiplier, tSmeltInto)); } if (aMaterial.contains(SubTag.BLASTFURNACE_CALCITE_TRIPLE)) { if (aMaterial.mAutoGenerateBlastFurnaceRecipes) { GT_Values.RA.addBlastRecipe( - aOreStack, - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcite, aMultiplier), - null, - null, - GT_Utility.mul(aMultiplier * 3 * aMaterial.mSmeltingMultiplier, tSmeltInto), - ItemList.TE_Slag.get( - 1L, - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.DarkAsh, 1L)), - tSmeltInto.stackSize * 500, - 120, - 1500); + aOreStack, + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcite, aMultiplier), + null, + null, + GT_Utility.mul(aMultiplier * 3 * aMaterial.mSmeltingMultiplier, tSmeltInto), + ItemList.TE_Slag + .get(1L, GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.DarkAsh, 1L)), + tSmeltInto.stackSize * 500, + 120, + 1500); GT_Values.RA.addBlastRecipe( - aOreStack, - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Quicklime, aMultiplier), - null, - null, - GT_Utility.mul(aMultiplier * 3 * aMaterial.mSmeltingMultiplier, tSmeltInto), - ItemList.TE_Slag.get( - 1L, - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.DarkAsh, 1L)), - tSmeltInto.stackSize * 500, - 120, - 1500); + aOreStack, + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Quicklime, aMultiplier), + null, + null, + GT_Utility.mul(aMultiplier * 3 * aMaterial.mSmeltingMultiplier, tSmeltInto), + ItemList.TE_Slag + .get(1L, GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.DarkAsh, 1L)), + tSmeltInto.stackSize * 500, + 120, + 1500); } } else if (aMaterial.contains(SubTag.BLASTFURNACE_CALCITE_DOUBLE)) { if (aMaterial.mAutoGenerateBlastFurnaceRecipes) { GT_Values.RA.addBlastRecipe( - aOreStack, - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcite, aMultiplier), - null, - null, - GT_Utility.mul(aMultiplier * 2 * aMaterial.mSmeltingMultiplier, tSmeltInto), - ItemList.TE_Slag.get( - 1L, - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.DarkAsh, 1L)), - tSmeltInto.stackSize * 500, - 120, - 1500); + aOreStack, + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcite, aMultiplier), + null, + null, + GT_Utility.mul(aMultiplier * 2 * aMaterial.mSmeltingMultiplier, tSmeltInto), + ItemList.TE_Slag + .get(1L, GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.DarkAsh, 1L)), + tSmeltInto.stackSize * 500, + 120, + 1500); GT_Values.RA.addBlastRecipe( - aOreStack, - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Quicklime, aMultiplier), - null, - null, - GT_Utility.mul(aMultiplier * 2 * aMaterial.mSmeltingMultiplier, tSmeltInto), - ItemList.TE_Slag.get( - 1L, - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.DarkAsh, 1L)), - tSmeltInto.stackSize * 500, - 120, - 1500); + aOreStack, + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Quicklime, aMultiplier), + null, + null, + GT_Utility.mul(aMultiplier * 2 * aMaterial.mSmeltingMultiplier, tSmeltInto), + ItemList.TE_Slag + .get(1L, GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.DarkAsh, 1L)), + tSmeltInto.stackSize * 500, + 120, + 1500); } } } if (!tHasSmelting) { GT_ModHandler.addSmeltingRecipe( - aOreStack, - GT_OreDictUnificator.get( - OrePrefixes.gem, - tMaterial.mDirectSmelting, - Math.max(1, aMultiplier * aMaterial.mSmeltingMultiplier / 2))); + aOreStack, + GT_OreDictUnificator.get( + OrePrefixes.gem, + tMaterial.mDirectSmelting, + Math.max(1, aMultiplier * aMaterial.mSmeltingMultiplier / 2))); } if (tCrushed != null) { GT_Values.RA.addForgeHammerRecipe( - aOreStack, - GT_Utility.copy(GT_Utility.copyAmount(tCrushed.stackSize, tGem), tCrushed), - 16, - 10); + aOreStack, + GT_Utility.copy(GT_Utility.copyAmount(tCrushed.stackSize, tGem), tCrushed), + 16, + 10); GT_ModHandler.addPulverisationRecipe( - aOreStack, - GT_Utility.mul(2L, tCrushed), - tMaterial.contains(SubTag.PULVERIZING_CINNABAR) - ? GT_OreDictUnificator.get( - OrePrefixes.crystal, - Materials.Cinnabar, - GT_OreDictUnificator.get( - OrePrefixes.gem, - tPrimaryByMaterial, - GT_Utility.copyAmount(1L, tPrimaryByProduct), - 1L), - 1L) - : GT_OreDictUnificator.get( - OrePrefixes.gem, - tPrimaryByMaterial, - GT_Utility.copyAmount(1L, tPrimaryByProduct), - 1L), - tPrimaryByProduct == null ? 0 - : tPrimaryByProduct.stackSize * 10 * aMultiplier * aMaterial.mByProductMultiplier, - GT_OreDictUnificator.getDust(aPrefix.mSecondaryMaterial), - 50, - true); + aOreStack, + GT_Utility.mul(2L, tCrushed), + tMaterial.contains(SubTag.PULVERIZING_CINNABAR) + ? GT_OreDictUnificator.get( + OrePrefixes.crystal, + Materials.Cinnabar, + GT_OreDictUnificator + .get(OrePrefixes.gem, tPrimaryByMaterial, GT_Utility.copyAmount(1L, tPrimaryByProduct), 1L), + 1L) + : GT_OreDictUnificator + .get(OrePrefixes.gem, tPrimaryByMaterial, GT_Utility.copyAmount(1L, tPrimaryByProduct), 1L), + tPrimaryByProduct == null ? 0 + : tPrimaryByProduct.stackSize * 10 * aMultiplier * aMaterial.mByProductMultiplier, + GT_OreDictUnificator.getDust(aPrefix.mSecondaryMaterial), + 50, + true); } return true; } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingOrePoor.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingOrePoor.java index 11c7fb0a3c..e3b0a34016 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingOrePoor.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingOrePoor.java @@ -20,7 +20,7 @@ public class ProcessingOrePoor implements gregtech.api.interfaces.IOreRecipeRegi @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { int aMultiplier = 1; switch (aPrefix) { case oreSmall: @@ -39,24 +39,22 @@ public class ProcessingOrePoor implements gregtech.api.interfaces.IOreRecipeRegi } if (aMaterial != null) { GT_Values.RA.addForgeHammerRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, aMaterial, aMultiplier), - 16, - 10); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, aMaterial, aMultiplier), + 16, + 10); GT_ModHandler.addPulverisationRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, aMaterial, 2 * aMultiplier), - GT_OreDictUnificator.get( - OrePrefixes.dustTiny, - GT_Utility.selectItemInList(0, aMaterial, aMaterial.mOreByProducts), - 1L), - 5 * aMultiplier, - GT_OreDictUnificator.getDust(aPrefix.mSecondaryMaterial), - 100, - true); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, aMaterial, 2 * aMultiplier), + GT_OreDictUnificator + .get(OrePrefixes.dustTiny, GT_Utility.selectItemInList(0, aMaterial, aMaterial.mOreByProducts), 1L), + 5 * aMultiplier, + GT_OreDictUnificator.getDust(aPrefix.mSecondaryMaterial), + 100, + true); if (aMaterial.contains(gregtech.api.enums.SubTag.NO_SMELTING)) GT_ModHandler.addSmeltingRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.nugget, aMaterial.mDirectSmelting, aMultiplier)); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.nugget, aMaterial.mDirectSmelting, aMultiplier)); } } } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingOreSmelting.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingOreSmelting.java index 128a8d1368..04c359ae7a 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingOreSmelting.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingOreSmelting.java @@ -12,8 +12,8 @@ import gregtech.api.util.GT_Utility; public class ProcessingOreSmelting implements gregtech.api.interfaces.IOreRecipeRegistrator { private final OrePrefixes[] mSmeltingPrefixes = { OrePrefixes.crushed, OrePrefixes.crushedPurified, - OrePrefixes.crushedCentrifuged, OrePrefixes.dust, OrePrefixes.dustImpure, OrePrefixes.dustPure, - OrePrefixes.dustRefined }; + OrePrefixes.crushedCentrifuged, OrePrefixes.dust, OrePrefixes.dustImpure, OrePrefixes.dustPure, + OrePrefixes.dustRefined }; public ProcessingOreSmelting() { for (OrePrefixes tPrefix : this.mSmeltingPrefixes) tPrefix.add(this); @@ -21,28 +21,26 @@ public class ProcessingOreSmelting implements gregtech.api.interfaces.IOreRecipe @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { GT_ModHandler.removeFurnaceSmelting(aStack); if (!aMaterial.contains(SubTag.NO_SMELTING)) { if ((aMaterial.mBlastFurnaceRequired) || (aMaterial.mDirectSmelting.mBlastFurnaceRequired)) { if (aMaterial.mBlastFurnaceTemp < 1000 && aMaterial.mDirectSmelting.mBlastFurnaceTemp < 1000) if (aMaterial.mAutoGenerateBlastFurnaceRecipes) { GT_Values.RA.addBlastRecipe( - GT_Utility.copyAmount(1L, aStack), - ItemList.Circuit_Integrated.getWithDamage(0L, 1L), - null, - null, - aMaterial.mBlastFurnaceTemp > 1750 - ? GT_OreDictUnificator.get( - OrePrefixes.ingotHot, - aMaterial, - GT_OreDictUnificator.get(OrePrefixes.ingot, aMaterial, 1L), - 1L) - : GT_OreDictUnificator.get(OrePrefixes.ingot, aMaterial, 1L), - null, - (int) Math.max(aMaterial.getMass() / 4L, 1L) * aMaterial.mBlastFurnaceTemp, - 120, - aMaterial.mBlastFurnaceTemp); + GT_Utility.copyAmount(1L, aStack), + ItemList.Circuit_Integrated.getWithDamage(0L, 1L), + null, + null, + aMaterial.mBlastFurnaceTemp > 1750 ? GT_OreDictUnificator.get( + OrePrefixes.ingotHot, + aMaterial, + GT_OreDictUnificator.get(OrePrefixes.ingot, aMaterial, 1L), + 1L) : GT_OreDictUnificator.get(OrePrefixes.ingot, aMaterial, 1L), + null, + (int) Math.max(aMaterial.getMass() / 4L, 1L) * aMaterial.mBlastFurnaceTemp, + 120, + aMaterial.mBlastFurnaceTemp); } } else { OrePrefixes outputPrefix; @@ -69,71 +67,71 @@ public class ProcessingOreSmelting implements gregtech.api.interfaces.IOreRecipe if (aMaterial.mDirectSmelting != aMaterial) { if (!aMaterial.contains(SubTag.DONT_ADD_DEFAULT_BBF_RECIPE)) { GT_Values.RA.addPrimitiveBlastRecipe( - GT_Utility.copyAmount(2, aStack), - GT_Values.NI, - 2, - aMaterial.mDirectSmelting.getIngots(outputAmount), - GT_Values.NI, - 2400); + GT_Utility.copyAmount(2, aStack), + GT_Values.NI, + 2, + aMaterial.mDirectSmelting.getIngots(outputAmount), + GT_Values.NI, + 2400); } else if (aMaterial == Materials.Chalcopyrite) { GT_Values.RA.addPrimitiveBlastRecipe( - aMaterial.getDust(2), - new ItemStack(Blocks.sand, 2), - 2, - aMaterial.mDirectSmelting.getIngots(outputAmount), - Materials.Ferrosilite.getDustSmall(2 * outputAmount), - 2400); + aMaterial.getDust(2), + new ItemStack(Blocks.sand, 2), + 2, + aMaterial.mDirectSmelting.getIngots(outputAmount), + Materials.Ferrosilite.getDustSmall(2 * outputAmount), + 2400); GT_Values.RA.addPrimitiveBlastRecipe( - aMaterial.getDust(2), - Materials.Glass.getDust(2), - 2, - aMaterial.mDirectSmelting.getIngots(outputAmount), - Materials.Ferrosilite.getDustTiny(7 * outputAmount), - 2400); + aMaterial.getDust(2), + Materials.Glass.getDust(2), + 2, + aMaterial.mDirectSmelting.getIngots(outputAmount), + Materials.Ferrosilite.getDustTiny(7 * outputAmount), + 2400); GT_Values.RA.addPrimitiveBlastRecipe( - aMaterial.getDust(2), - Materials.SiliconDioxide.getDust(2), - 2, - aMaterial.mDirectSmelting.getIngots(outputAmount), - Materials.Ferrosilite.getDust(outputAmount), - 2400); + aMaterial.getDust(2), + Materials.SiliconDioxide.getDust(2), + 2, + aMaterial.mDirectSmelting.getIngots(outputAmount), + Materials.Ferrosilite.getDust(outputAmount), + 2400); GT_Values.RA.addPrimitiveBlastRecipe( - aMaterial.getDust(2), - Materials.Quartzite.getDust(4), - 2, - aMaterial.mDirectSmelting.getIngots(outputAmount), - Materials.Ferrosilite.getDust(outputAmount), - 2400); + aMaterial.getDust(2), + Materials.Quartzite.getDust(4), + 2, + aMaterial.mDirectSmelting.getIngots(outputAmount), + Materials.Ferrosilite.getDust(outputAmount), + 2400); GT_Values.RA.addPrimitiveBlastRecipe( - aMaterial.getDust(2), - Materials.NetherQuartz.getDust(2), - 2, - aMaterial.mDirectSmelting.getIngots(outputAmount), - Materials.Ferrosilite.getDust(outputAmount), - 2400); + aMaterial.getDust(2), + Materials.NetherQuartz.getDust(2), + 2, + aMaterial.mDirectSmelting.getIngots(outputAmount), + Materials.Ferrosilite.getDust(outputAmount), + 2400); GT_Values.RA.addPrimitiveBlastRecipe( - aMaterial.getDust(2), - Materials.CertusQuartz.getDust(2), - 2, - aMaterial.mDirectSmelting.getIngots(outputAmount), - Materials.Ferrosilite.getDust(outputAmount), - 2400); + aMaterial.getDust(2), + Materials.CertusQuartz.getDust(2), + 2, + aMaterial.mDirectSmelting.getIngots(outputAmount), + Materials.Ferrosilite.getDust(outputAmount), + 2400); } else if (aMaterial == Materials.Tetrahedrite) { GT_Values.RA.addPrimitiveBlastRecipe( - aMaterial.getDust(2), - GT_Values.NI, - 2, - aMaterial.mDirectSmelting.getIngots(outputAmount), - Materials.Antimony.getNuggets(3 * outputAmount), - 2400); + aMaterial.getDust(2), + GT_Values.NI, + 2, + aMaterial.mDirectSmelting.getIngots(outputAmount), + Materials.Antimony.getNuggets(3 * outputAmount), + 2400); } else if (aMaterial == Materials.Galena) { GT_Values.RA.addPrimitiveBlastRecipe( - aMaterial.getDust(2), - GT_Values.NI, - 2, - aMaterial.mDirectSmelting.getIngots(outputAmount), - Materials.Silver.getNuggets(3 * outputAmount), - 2400); + aMaterial.getDust(2), + GT_Values.NI, + 2, + aMaterial.mDirectSmelting.getIngots(outputAmount), + Materials.Silver.getNuggets(3 * outputAmount), + 2400); } } case dustImpure: @@ -159,9 +157,9 @@ public class ProcessingOreSmelting implements gregtech.api.interfaces.IOreRecipe } ItemStack tStack = GT_OreDictUnificator.get(outputPrefix, aMaterial.mDirectSmelting, outputSize); if (tStack == null) tStack = GT_OreDictUnificator.get( - aMaterial.contains(SubTag.SMELTING_TO_GEM) ? OrePrefixes.gem : OrePrefixes.ingot, - aMaterial.mDirectSmelting, - 1L); + aMaterial.contains(SubTag.SMELTING_TO_GEM) ? OrePrefixes.gem : OrePrefixes.ingot, + aMaterial.mDirectSmelting, + 1L); if ((tStack == null) && (!aMaterial.contains(SubTag.SMELTING_TO_GEM))) tStack = GT_OreDictUnificator.get(OrePrefixes.ingot, aMaterial.mDirectSmelting, 1L); GT_ModHandler.addSmeltingRecipe(aStack, tStack); diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingPipe.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingPipe.java index 58f0c6e29b..053fae9488 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingPipe.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingPipe.java @@ -29,60 +29,61 @@ public class ProcessingPipe implements gregtech.api.interfaces.IOreRecipeRegistr @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { switch (aPrefix) { case pipeHuge, pipeLarge, pipeMedium, pipeSmall, pipeTiny -> { if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.pipeTiny, aMaterial, 8L), - GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "PPP", "h w", "PPP", 'P', OrePrefixes.plate.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.pipeTiny, aMaterial, 8L), + GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "PPP", "h w", "PPP", 'P', OrePrefixes.plate.get(aMaterial) }); GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.pipeSmall, aMaterial, 6L), - GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "PWP", "P P", "PHP", 'P', - aMaterial == Materials.Wood ? OrePrefixes.plank.get(aMaterial) - : OrePrefixes.plate.get(aMaterial), - 'H', - aMaterial.contains(SubTag.WOOD) ? ToolDictNames.craftingToolSoftHammer - : ToolDictNames.craftingToolHardHammer, - 'W', aMaterial.contains(SubTag.WOOD) ? ToolDictNames.craftingToolSaw - : ToolDictNames.craftingToolWrench }); + GT_OreDictUnificator.get(OrePrefixes.pipeSmall, aMaterial, 6L), + GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "PWP", "P P", "PHP", 'P', + aMaterial == Materials.Wood ? OrePrefixes.plank.get(aMaterial) + : OrePrefixes.plate.get(aMaterial), + 'H', + aMaterial.contains(SubTag.WOOD) ? ToolDictNames.craftingToolSoftHammer + : ToolDictNames.craftingToolHardHammer, + 'W', aMaterial.contains(SubTag.WOOD) ? ToolDictNames.craftingToolSaw + : ToolDictNames.craftingToolWrench }); GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.pipeMedium, aMaterial, 2L), - GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "PPP", "W H", "PPP", 'P', - aMaterial == Materials.Wood ? OrePrefixes.plank.get(aMaterial) - : OrePrefixes.plate.get(aMaterial), - 'H', - aMaterial.contains(SubTag.WOOD) ? ToolDictNames.craftingToolSoftHammer - : ToolDictNames.craftingToolHardHammer, - 'W', aMaterial.contains(SubTag.WOOD) ? ToolDictNames.craftingToolSaw - : ToolDictNames.craftingToolWrench }); + GT_OreDictUnificator.get(OrePrefixes.pipeMedium, aMaterial, 2L), + GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "PPP", "W H", "PPP", 'P', + aMaterial == Materials.Wood ? OrePrefixes.plank.get(aMaterial) + : OrePrefixes.plate.get(aMaterial), + 'H', + aMaterial.contains(SubTag.WOOD) ? ToolDictNames.craftingToolSoftHammer + : ToolDictNames.craftingToolHardHammer, + 'W', aMaterial.contains(SubTag.WOOD) ? ToolDictNames.craftingToolSaw + : ToolDictNames.craftingToolWrench }); GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.pipeLarge, aMaterial, 1L), - GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "PHP", "P P", "PWP", 'P', - aMaterial == Materials.Wood ? OrePrefixes.plank.get(aMaterial) - : OrePrefixes.plate.get(aMaterial), - 'H', - aMaterial.contains(SubTag.WOOD) ? ToolDictNames.craftingToolSoftHammer - : ToolDictNames.craftingToolHardHammer, - 'W', aMaterial.contains(SubTag.WOOD) ? ToolDictNames.craftingToolSaw - : ToolDictNames.craftingToolWrench }); + GT_OreDictUnificator.get(OrePrefixes.pipeLarge, aMaterial, 1L), + GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "PHP", "P P", "PWP", 'P', + aMaterial == Materials.Wood ? OrePrefixes.plank.get(aMaterial) + : OrePrefixes.plate.get(aMaterial), + 'H', + aMaterial.contains(SubTag.WOOD) ? ToolDictNames.craftingToolSoftHammer + : ToolDictNames.craftingToolHardHammer, + 'W', aMaterial.contains(SubTag.WOOD) ? ToolDictNames.craftingToolSaw + : ToolDictNames.craftingToolWrench }); GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.pipeHuge, aMaterial, 1L), - GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "DhD", "D D", "DwD", 'D', OrePrefixes.plateDouble.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.pipeHuge, aMaterial, 1L), + GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "DhD", "D D", "DwD", 'D', OrePrefixes.plateDouble.get(aMaterial) }); } } - case pipeRestrictiveHuge, pipeRestrictiveLarge, pipeRestrictiveMedium, pipeRestrictiveSmall, pipeRestrictiveTiny -> RA.addAssemblerRecipe( + case pipeRestrictiveHuge, pipeRestrictiveLarge, pipeRestrictiveMedium, pipeRestrictiveSmall, pipeRestrictiveTiny -> RA + .addAssemblerRecipe( GT_OreDictUnificator.get(aOreDictName.replaceFirst("Restrictive", ""), null, 1L, false, true), GT_OreDictUnificator.get( - OrePrefixes.ring, - Materials.Steel, - aPrefix.mSecondaryMaterial.mAmount / OrePrefixes.ring.mMaterialAmount), + OrePrefixes.ring, + Materials.Steel, + aPrefix.mSecondaryMaterial.mAmount / OrePrefixes.ring.mMaterialAmount), GT_Utility.copyAmount(1L, aStack), (int) (aPrefix.mSecondaryMaterial.mAmount * 400L / OrePrefixes.ring.mMaterialAmount), 4); @@ -90,38 +91,33 @@ public class ProcessingPipe implements gregtech.api.interfaces.IOreRecipeRegistr if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.pipeQuadruple, aMaterial, 1), - GT_ModHandler.RecipeBits.REVERSIBLE | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "MM ", "MM ", " ", 'M', - GT_OreDictUnificator.get(OrePrefixes.pipeMedium, aMaterial, 1) }); + GT_OreDictUnificator.get(OrePrefixes.pipeQuadruple, aMaterial, 1), + GT_ModHandler.RecipeBits.REVERSIBLE | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "MM ", "MM ", " ", 'M', + GT_OreDictUnificator.get(OrePrefixes.pipeMedium, aMaterial, 1) }); } RA.addAssemblerRecipe( - GT_OreDictUnificator.get(OrePrefixes.pipeMedium, aMaterial, 4), - GT_Utility.getIntegratedCircuit(9), - GT_OreDictUnificator.get(OrePrefixes.pipeQuadruple, aMaterial, 1), - 60, - calculateRecipeEU(aMaterial, 4)); + GT_OreDictUnificator.get(OrePrefixes.pipeMedium, aMaterial, 4), + GT_Utility.getIntegratedCircuit(9), + GT_OreDictUnificator.get(OrePrefixes.pipeQuadruple, aMaterial, 1), + 60, + calculateRecipeEU(aMaterial, 4)); } case pipeNonuple -> { if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { GT_ModHandler.addCraftingRecipe( - GT_Utility.copyAmount(1, aStack), - GT_ModHandler.RecipeBits.REVERSIBLE | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "PPP", "PPP", "PPP", 'P', - GT_OreDictUnificator.get( - aOreDictName.replaceFirst("Nonuple", "Small"), - null, - 1L, - false, - true) }); + GT_Utility.copyAmount(1, aStack), + GT_ModHandler.RecipeBits.REVERSIBLE | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "PPP", "PPP", "PPP", 'P', GT_OreDictUnificator + .get(aOreDictName.replaceFirst("Nonuple", "Small"), null, 1L, false, true) }); } RA.addAssemblerRecipe( - GT_OreDictUnificator.get(OrePrefixes.pipeSmall, aMaterial, 9), - GT_Utility.getIntegratedCircuit(9), - GT_OreDictUnificator.get(OrePrefixes.pipeNonuple, aMaterial, 1), - 60, - calculateRecipeEU(aMaterial, 8)); + GT_OreDictUnificator.get(OrePrefixes.pipeSmall, aMaterial, 9), + GT_Utility.getIntegratedCircuit(9), + GT_OreDictUnificator.get(OrePrefixes.pipeNonuple, aMaterial, 1), + 60, + calculateRecipeEU(aMaterial, 8)); } default -> {} } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingPlank.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingPlank.java index 921491237a..e36eed66ab 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingPlank.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingPlank.java @@ -20,91 +20,91 @@ public class ProcessingPlank implements gregtech.api.interfaces.IOreRecipeRegist @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { if (aOreDictName.startsWith("plankWood")) { GT_Values.RA.addLatheRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2L), - null, - 10, - 8); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2L), + null, + 10, + 8); GT_Values.RA.addCNCRecipe( - GT_Utility.copyAmount(4L, aStack), - GT_OreDictUnificator.get(OrePrefixes.gearGt, Materials.Wood, 1L), - 800, - 1); + GT_Utility.copyAmount(4L, aStack), + GT_OreDictUnificator.get(OrePrefixes.gearGt, Materials.Wood, 1L), + 800, + 1); GT_Values.RA.addAssemblerRecipe( - GT_Utility.copyAmount(8L, aStack), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1L), - new ItemStack(Blocks.noteblock, 1), - 200, - 4); + GT_Utility.copyAmount(8L, aStack), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1L), + new ItemStack(Blocks.noteblock, 1), + 200, + 4); GT_Values.RA.addAssemblerRecipe( - GT_Utility.copyAmount(8L, aStack), - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Diamond, 1L), - new ItemStack(Blocks.jukebox, 1), - 400, - 4); + GT_Utility.copyAmount(8L, aStack), + GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Diamond, 1L), + new ItemStack(Blocks.jukebox, 1), + 400, + 4); GT_Values.RA.addAssemblerRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Iron, 1L), - ItemList.Crate_Empty.get(1L), - 200, - 1); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Iron, 1L), + ItemList.Crate_Empty.get(1L), + 200, + 1); GT_Values.RA.addAssemblerRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.WroughtIron, 1L), - ItemList.Crate_Empty.get(1L), - 200, - 1); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.WroughtIron, 1L), + ItemList.Crate_Empty.get(1L), + 200, + 1); GT_Values.RA.addAssemblerRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Steel, 1L), - ItemList.Crate_Empty.get(1L), - 200, - 1); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Steel, 1L), + ItemList.Crate_Empty.get(1L), + 200, + 1); GT_Values.RA.addAssemblerRecipe( - GT_Utility.copyAmount(1L, aStack), - ItemList.Circuit_Integrated.getWithDamage(0L, 1L), - new ItemStack(Blocks.wooden_button, 1), - 100, - 4); + GT_Utility.copyAmount(1L, aStack), + ItemList.Circuit_Integrated.getWithDamage(0L, 1L), + new ItemStack(Blocks.wooden_button, 1), + 100, + 4); GT_Values.RA.addAssemblerRecipe( - GT_Utility.copyAmount(2L, aStack), - ItemList.Circuit_Integrated.getWithDamage(0L, 2L), - new ItemStack(Blocks.wooden_pressure_plate, 1), - 200, - 4); + GT_Utility.copyAmount(2L, aStack), + ItemList.Circuit_Integrated.getWithDamage(0L, 2L), + new ItemStack(Blocks.wooden_pressure_plate, 1), + 200, + 4); GT_Values.RA.addAssemblerRecipe( - GT_Utility.copyAmount(3L, aStack), - ItemList.Circuit_Integrated.getWithDamage(0L, 3L), - new ItemStack(Blocks.trapdoor, 1), - 300, - 4); + GT_Utility.copyAmount(3L, aStack), + ItemList.Circuit_Integrated.getWithDamage(0L, 3L), + new ItemStack(Blocks.trapdoor, 1), + 300, + 4); GT_Values.RA.addAssemblerRecipe( - GT_Utility.copyAmount(4L, aStack), - ItemList.Circuit_Integrated.getWithDamage(0L, 4L), - new ItemStack(Blocks.crafting_table, 1), - 400, - 4); + GT_Utility.copyAmount(4L, aStack), + ItemList.Circuit_Integrated.getWithDamage(0L, 4L), + new ItemStack(Blocks.crafting_table, 1), + 400, + 4); GT_Values.RA.addAssemblerRecipe( - GT_Utility.copyAmount(6L, aStack), - ItemList.Circuit_Integrated.getWithDamage(0L, 6L), - new ItemStack(Items.wooden_door, 1), - 600, - 4); + GT_Utility.copyAmount(6L, aStack), + ItemList.Circuit_Integrated.getWithDamage(0L, 6L), + new ItemStack(Items.wooden_door, 1), + 600, + 4); GT_Values.RA.addAssemblerRecipe( - GT_Utility.copyAmount(8L, aStack), - ItemList.Circuit_Integrated.getWithDamage(0L, 8L), - new ItemStack(Blocks.chest, 1), - 800, - 4); + GT_Utility.copyAmount(8L, aStack), + ItemList.Circuit_Integrated.getWithDamage(0L, 8L), + new ItemStack(Blocks.chest, 1), + 800, + 4); GT_Values.RA.addAssemblerRecipe( - GT_Utility.copyAmount(6L, aStack), - new ItemStack(Items.book, 3), - new ItemStack(Blocks.bookshelf, 1), - 400, - 4); + GT_Utility.copyAmount(6L, aStack), + new ItemStack(Items.book, 3), + new ItemStack(Blocks.bookshelf, 1), + 400, + 4); if (aStack.getItemDamage() == 32767) { for (byte i = 0; i < 64; i = (byte) (i + 1)) { @@ -113,35 +113,35 @@ public class ProcessingPlank implements gregtech.api.interfaces.IOreRecipeRegist ItemStack tOutput = GT_ModHandler.getRecipeOutput(tStack, tStack, tStack); if ((tOutput != null) && (tOutput.stackSize >= 3)) { GT_Values.RA.addCutterRecipe( - GT_Utility.copyAmount(1L, tStack), - GT_Utility.copyAmount(tOutput.stackSize / 3, tOutput), - null, - 25, - 4); + GT_Utility.copyAmount(1L, tStack), + GT_Utility.copyAmount(tOutput.stackSize / 3, tOutput), + null, + 25, + 4); GT_ModHandler.removeRecipeDelayed(tStack, tStack, tStack); GT_ModHandler.addCraftingRecipe( - GT_Utility.copyAmount(tOutput.stackSize / 3, tOutput), - GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "sP", 'P', tStack }); + GT_Utility.copyAmount(tOutput.stackSize / 3, tOutput), + GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "sP", 'P', tStack }); } if ((tStack == null) && (i >= 16)) break; } } else { ItemStack tOutput = !aModName.equalsIgnoreCase("thaumcraft") - ? GT_ModHandler.getRecipeOutput(aStack, aStack, aStack) - : GT_ModHandler.getRecipeOutputNoOreDict(aStack, aStack, aStack); + ? GT_ModHandler.getRecipeOutput(aStack, aStack, aStack) + : GT_ModHandler.getRecipeOutputNoOreDict(aStack, aStack, aStack); if ((tOutput != null) && (tOutput.stackSize >= 3)) { GT_Values.RA.addCutterRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_Utility.copyAmount(tOutput.stackSize / 3, tOutput), - null, - 25, - 4); + GT_Utility.copyAmount(1L, aStack), + GT_Utility.copyAmount(tOutput.stackSize / 3, tOutput), + null, + 25, + 4); GT_ModHandler.removeRecipeDelayed(aStack, aStack, aStack); GT_ModHandler.addCraftingRecipe( - GT_Utility.copyAmount(tOutput.stackSize / 3, tOutput), - GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "sP", 'P', aStack }); + GT_Utility.copyAmount(tOutput.stackSize / 3, tOutput), + GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "sP", 'P', aStack }); } } } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingPlate.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingPlate.java index da12900bfd..f380b4ebdf 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingPlate.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingPlate.java @@ -48,7 +48,7 @@ public class ProcessingPlate implements gregtech.api.interfaces.IOreRecipeRegist */ @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { final boolean aNoSmashing = aMaterial.contains(SubTag.NO_SMASHING); final boolean aNoWorking = aMaterial.contains(SubTag.NO_WORKING); @@ -75,89 +75,87 @@ public class ProcessingPlate implements gregtech.api.interfaces.IOreRecipeRegist GT_ModHandler.removeRecipeDelayed(aStack); GT_Utility.removeSimpleIC2MachineRecipe( - GT_Utility.copyAmount(9L, aStack), - GT_ModHandler.getCompressorRecipeList(), - GT_OreDictUnificator.get(OrePrefixes.plateDense, aMaterial, 1L)); + GT_Utility.copyAmount(9L, aStack), + GT_ModHandler.getCompressorRecipeList(), + GT_OreDictUnificator.get(OrePrefixes.plateDense, aMaterial, 1L)); if (aMaterial.mFuelPower > 0) { RA.addFuel(GT_Utility.copyAmount(1L, aStack), NI, aMaterial.mFuelPower, aMaterial.mFuelType); } if (aMaterial.mStandardMoltenFluid != null - && !(aMaterial == Materials.AnnealedCopper || aMaterial == Materials.WroughtIron)) { + && !(aMaterial == Materials.AnnealedCopper || aMaterial == Materials.WroughtIron)) { RA.addFluidSolidifierRecipe( - ItemList.Shape_Mold_Plate.get(0L), - aMaterial.getMolten(L), - aMaterial.getPlates(1), - 32, - calculateRecipeEU(aMaterial, 8)); + ItemList.Shape_Mold_Plate.get(0L), + aMaterial.getMolten(L), + aMaterial.getPlates(1), + 32, + calculateRecipeEU(aMaterial, 8)); } GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.foil, aMaterial, 2L), - tBits, // DO_NOT_CHECK_FOR_COLLISIONS|BUFFERED|ONLY_ADD_IF_RESULT_IS_NOT_NULL|NOT_REMOVABLE - new Object[] { "hX", 'X', OrePrefixes.plate.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.foil, aMaterial, 2L), + tBits, // DO_NOT_CHECK_FOR_COLLISIONS|BUFFERED|ONLY_ADD_IF_RESULT_IS_NOT_NULL|NOT_REMOVABLE + new Object[] { "hX", 'X', OrePrefixes.plate.get(aMaterial) }); if (aMaterial == Materials.Paper) { GT_ModHandler.addCraftingRecipe( - GT_Utility.copyAmount(GregTech_API.sRecipeFile.get(harderrecipes, aStack, true) ? 2L : 3L, aStack), - BUFFERED, - new Object[] { "XXX", 'X', new ItemStack(Items.reeds, 1, W) }); + GT_Utility.copyAmount(GregTech_API.sRecipeFile.get(harderrecipes, aStack, true) ? 2L : 3L, aStack), + BUFFERED, + new Object[] { "XXX", 'X', new ItemStack(Items.reeds, 1, W) }); } if (aMaterial.mUnificatable && aMaterial.mMaterialInto == aMaterial) { if (!aNoSmashing - && GregTech_API.sRecipeFile.get(ConfigCategories.Tools.hammerplating, aMaterial.toString(), true)) { + && GregTech_API.sRecipeFile.get(ConfigCategories.Tools.hammerplating, aMaterial.toString(), true)) { if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { GT_ModHandler.addCraftingRecipe( - aMaterial.getPlates(1), - tBits, // DO_NOT_CHECK_FOR_COLLISIONS|BUFFERED|ONLY_ADD_IF_RESULT_IS_NOT_NULL|NOT_REMOVABLE - new Object[] { "h", // craftingToolHardHammer - "X", "X", 'X', OrePrefixes.ingot.get(aMaterial) }); + aMaterial.getPlates(1), + tBits, // DO_NOT_CHECK_FOR_COLLISIONS|BUFFERED|ONLY_ADD_IF_RESULT_IS_NOT_NULL|NOT_REMOVABLE + new Object[] { "h", // craftingToolHardHammer + "X", "X", 'X', OrePrefixes.ingot.get(aMaterial) }); // Only added if IC2 Forge Hammer is enabled in Recipes.cfg: B:ic2forgehammer_true=false GT_ModHandler.addCraftingRecipe( - aMaterial.getPlates(1), - tBits, // DO_NOT_CHECK_FOR_COLLISIONS|BUFFERED|ONLY_ADD_IF_RESULT_IS_NOT_NULL|NOT_REMOVABLE - new Object[] { "H", // craftingToolForgeHammer - "X", 'H', ToolDictNames.craftingToolForgeHammer, 'X', - OrePrefixes.ingot.get(aMaterial) }); + aMaterial.getPlates(1), + tBits, // DO_NOT_CHECK_FOR_COLLISIONS|BUFFERED|ONLY_ADD_IF_RESULT_IS_NOT_NULL|NOT_REMOVABLE + new Object[] { "H", // craftingToolForgeHammer + "X", 'H', ToolDictNames.craftingToolForgeHammer, 'X', OrePrefixes.ingot.get(aMaterial) }); GT_ModHandler.addCraftingRecipe( - aMaterial.getPlates(1), - tBits, // DO_NOT_CHECK_FOR_COLLISIONS|BUFFERED|ONLY_ADD_IF_RESULT_IS_NOT_NULL|NOT_REMOVABLE - new Object[] { "h", // craftingToolHardHammer - "X", 'X', OrePrefixes.gem.get(aMaterial) }); + aMaterial.getPlates(1), + tBits, // DO_NOT_CHECK_FOR_COLLISIONS|BUFFERED|ONLY_ADD_IF_RESULT_IS_NOT_NULL|NOT_REMOVABLE + new Object[] { "h", // craftingToolHardHammer + "X", 'X', OrePrefixes.gem.get(aMaterial) }); // Only added if IC2 Forge Hammer is enabled in Recipes.cfg: B:ic2forgehammer_true=false GT_ModHandler.addCraftingRecipe( - aMaterial.getPlates(1), - tBits, // DO_NOT_CHECK_FOR_COLLISIONS|BUFFERED|ONLY_ADD_IF_RESULT_IS_NOT_NULL|NOT_REMOVABLE - new Object[] { "H", // craftingToolForgeHammer - "X", 'H', ToolDictNames.craftingToolForgeHammer, 'X', - OrePrefixes.gem.get(aMaterial) }); + aMaterial.getPlates(1), + tBits, // DO_NOT_CHECK_FOR_COLLISIONS|BUFFERED|ONLY_ADD_IF_RESULT_IS_NOT_NULL|NOT_REMOVABLE + new Object[] { "H", // craftingToolForgeHammer + "X", 'H', ToolDictNames.craftingToolForgeHammer, 'X', OrePrefixes.gem.get(aMaterial) }); } } if ((aMaterial.contains(SubTag.MORTAR_GRINDABLE)) - && (GregTech_API.sRecipeFile.get(ConfigCategories.Tools.mortar, aMaterial.mName, true))) { + && (GregTech_API.sRecipeFile.get(ConfigCategories.Tools.mortar, aMaterial.mName, true))) { if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { GT_ModHandler.addShapelessCraftingRecipe( - aMaterial.getDust(1), - tBits, // DO_NOT_CHECK_FOR_COLLISIONS|BUFFERED|ONLY_ADD_IF_RESULT_IS_NOT_NULL|NOT_REMOVABLE - new Object[] { ToolDictNames.craftingToolMortar, OrePrefixes.plate.get(aMaterial) }); + aMaterial.getDust(1), + tBits, // DO_NOT_CHECK_FOR_COLLISIONS|BUFFERED|ONLY_ADD_IF_RESULT_IS_NOT_NULL|NOT_REMOVABLE + new Object[] { ToolDictNames.craftingToolMortar, OrePrefixes.plate.get(aMaterial) }); } } } } private void registerPlateDouble(final Materials aMaterial, final ItemStack aStack, final boolean aNoSmashing, - final long aMaterialMass) { + final long aMaterialMass) { registerCover(aMaterial, aStack); @@ -166,25 +164,25 @@ public class ProcessingPlate implements gregtech.api.interfaces.IOreRecipeRegist if (!aNoSmashing) { RA.addBenderRecipe( - GT_Utility.copyAmount(2L, aStack), - GT_OreDictUnificator.get(OrePrefixes.plateQuadruple, aMaterial, 1L), - (int) Math.max(aMaterialMass * 2L, 1L), - calculateRecipeEU(aMaterial, 96)); + GT_Utility.copyAmount(2L, aStack), + GT_OreDictUnificator.get(OrePrefixes.plateQuadruple, aMaterial, 1L), + (int) Math.max(aMaterialMass * 2L, 1L), + calculateRecipeEU(aMaterial, 96)); if (GregTech_API.sRecipeFile.get( - gregtech.api.enums.ConfigCategories.Tools.hammerdoubleplate, - OrePrefixes.plate.get(aMaterial) - .toString(), - true)) { + gregtech.api.enums.ConfigCategories.Tools.hammerdoubleplate, + OrePrefixes.plate.get(aMaterial) + .toString(), + true)) { Object aPlateStack = OrePrefixes.plate.get(aMaterial); if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { GT_ModHandler.addCraftingRecipe( - GT_Utility.copyAmount(1L, aStack), - DO_NOT_CHECK_FOR_COLLISIONS | BUFFERED, - new Object[] { "I", "B", "h", // craftingToolHardHammer - 'I', aPlateStack, 'B', aPlateStack }); + GT_Utility.copyAmount(1L, aStack), + DO_NOT_CHECK_FOR_COLLISIONS | BUFFERED, + new Object[] { "I", "B", "h", // craftingToolHardHammer + 'I', aPlateStack, 'B', aPlateStack }); } // Only added if IC2 Forge Hammer is enabled in Recipes.cfg: B:ic2forgehammer_true=false @@ -197,25 +195,25 @@ public class ProcessingPlate implements gregtech.api.interfaces.IOreRecipeRegist } RA.addBenderRecipe( - GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 2L), - GT_Utility.copyAmount(1L, aStack), - (int) Math.max(aMaterialMass * 2L, 1L), - calculateRecipeEU(aMaterial, 96)); + GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 2L), + GT_Utility.copyAmount(1L, aStack), + (int) Math.max(aMaterialMass * 2L, 1L), + calculateRecipeEU(aMaterial, 96)); } else { RA.addAssemblerRecipe( - GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 2L), - GT_Utility.getIntegratedCircuit(2), - Materials.Glue.getFluid(10L), - GT_Utility.copyAmount(1L, aStack), - 64, - 8); + GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 2L), + GT_Utility.getIntegratedCircuit(2), + Materials.Glue.getFluid(10L), + GT_Utility.copyAmount(1L, aStack), + 64, + 8); } } private void registerPlateTriple(final Materials aMaterial, final ItemStack aStack, final boolean aNoSmashing, - final long aMaterialMass) { + final long aMaterialMass) { registerCover(aMaterial, aStack); @@ -224,117 +222,117 @@ public class ProcessingPlate implements gregtech.api.interfaces.IOreRecipeRegist if (!aNoSmashing) { RA.addBenderRecipe( - GT_Utility.copyAmount(3L, aStack), - GT_OreDictUnificator.get(OrePrefixes.plateDense, aMaterial, 1L), - (int) Math.max(aMaterialMass * 3L, 1L), - calculateRecipeEU(aMaterial, 96)); + GT_Utility.copyAmount(3L, aStack), + GT_OreDictUnificator.get(OrePrefixes.plateDense, aMaterial, 1L), + (int) Math.max(aMaterialMass * 3L, 1L), + calculateRecipeEU(aMaterial, 96)); if (GregTech_API.sRecipeFile.get( - gregtech.api.enums.ConfigCategories.Tools.hammertripleplate, - OrePrefixes.plate.get(aMaterial) - .toString(), - true)) { + gregtech.api.enums.ConfigCategories.Tools.hammertripleplate, + OrePrefixes.plate.get(aMaterial) + .toString(), + true)) { if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { Object aPlateStack = OrePrefixes.plate.get(aMaterial); GT_ModHandler.addCraftingRecipe( - GT_Utility.copyAmount(1L, aStack), - DO_NOT_CHECK_FOR_COLLISIONS | BUFFERED, - new Object[] { "I", "B", "h", // craftingToolHardHammer - 'I', OrePrefixes.plateDouble.get(aMaterial), 'B', aPlateStack }); + GT_Utility.copyAmount(1L, aStack), + DO_NOT_CHECK_FOR_COLLISIONS | BUFFERED, + new Object[] { "I", "B", "h", // craftingToolHardHammer + 'I', OrePrefixes.plateDouble.get(aMaterial), 'B', aPlateStack }); GT_ModHandler.addShapelessCraftingRecipe( - GT_Utility.copyAmount(1L, aStack), - DO_NOT_CHECK_FOR_COLLISIONS | BUFFERED, - new Object[] { gregtech.api.enums.ToolDictNames.craftingToolForgeHammer, aPlateStack, - aPlateStack, aPlateStack }); + GT_Utility.copyAmount(1L, aStack), + DO_NOT_CHECK_FOR_COLLISIONS | BUFFERED, + new Object[] { gregtech.api.enums.ToolDictNames.craftingToolForgeHammer, aPlateStack, + aPlateStack, aPlateStack }); } } RA.addBenderRecipe( - GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 3L), - GT_Utility.copyAmount(1L, aStack), - (int) Math.max(aMaterialMass * 3L, 1L), - calculateRecipeEU(aMaterial, 96)); + GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 3L), + GT_Utility.copyAmount(1L, aStack), + (int) Math.max(aMaterialMass * 3L, 1L), + calculateRecipeEU(aMaterial, 96)); } else { RA.addAssemblerRecipe( - GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 3L), - GT_Utility.getIntegratedCircuit(3), - Materials.Glue.getFluid(20L), - GT_Utility.copyAmount(1L, aStack), - 96, - 8); + GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 3L), + GT_Utility.getIntegratedCircuit(3), + Materials.Glue.getFluid(20L), + GT_Utility.copyAmount(1L, aStack), + 96, + 8); } RA.addImplosionRecipe( - GT_Utility.copyAmount(1L, aStack), - 2, - GT_OreDictUnificator.get(OrePrefixes.compressed, aMaterial, 1L), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 1L)); + GT_Utility.copyAmount(1L, aStack), + 2, + GT_OreDictUnificator.get(OrePrefixes.compressed, aMaterial, 1L), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 1L)); } private void registerPlateQuadruple(final Materials aMaterial, final ItemStack aStack, final boolean aNoSmashing, - final long aMaterialMass, final boolean aNoWorking) { + final long aMaterialMass, final boolean aNoWorking) { registerCover(aMaterial, aStack); GT_ModHandler.removeRecipeByOutputDelayed(aStack); if (!aNoWorking) RA.addCNCRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.gearGt, aMaterial, 1L), - (int) Math.max(aMaterialMass * 2L, 1L), - 30); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.gearGt, aMaterial, 1L), + (int) Math.max(aMaterialMass * 2L, 1L), + 30); if (!aNoSmashing) { if (GregTech_API.sRecipeFile.get( - gregtech.api.enums.ConfigCategories.Tools.hammerquadrupleplate, - OrePrefixes.plate.get(aMaterial) - .toString(), - true)) { + gregtech.api.enums.ConfigCategories.Tools.hammerquadrupleplate, + OrePrefixes.plate.get(aMaterial) + .toString(), + true)) { if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { Object aPlateStack = OrePrefixes.plate.get(aMaterial); GT_ModHandler.addCraftingRecipe( - GT_Utility.copyAmount(1L, aStack), - DO_NOT_CHECK_FOR_COLLISIONS | BUFFERED, - new Object[] { "I", "B", "h", // craftingToolHardHammer - 'I', OrePrefixes.plateTriple.get(aMaterial), 'B', aPlateStack }); + GT_Utility.copyAmount(1L, aStack), + DO_NOT_CHECK_FOR_COLLISIONS | BUFFERED, + new Object[] { "I", "B", "h", // craftingToolHardHammer + 'I', OrePrefixes.plateTriple.get(aMaterial), 'B', aPlateStack }); GT_ModHandler.addShapelessCraftingRecipe( - GT_Utility.copyAmount(1L, aStack), - DO_NOT_CHECK_FOR_COLLISIONS | BUFFERED, - new Object[] { gregtech.api.enums.ToolDictNames.craftingToolForgeHammer, aPlateStack, - aPlateStack, aPlateStack, aPlateStack }); + GT_Utility.copyAmount(1L, aStack), + DO_NOT_CHECK_FOR_COLLISIONS | BUFFERED, + new Object[] { gregtech.api.enums.ToolDictNames.craftingToolForgeHammer, aPlateStack, + aPlateStack, aPlateStack, aPlateStack }); } } RA.addBenderRecipe( - GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 4L), - GT_Utility.copyAmount(1L, aStack), - (int) Math.max(aMaterialMass * 4L, 1L), - calculateRecipeEU(aMaterial, 96)); + GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 4L), + GT_Utility.copyAmount(1L, aStack), + (int) Math.max(aMaterialMass * 4L, 1L), + calculateRecipeEU(aMaterial, 96)); } else { RA.addAssemblerRecipe( - GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 4L), - GT_Utility.getIntegratedCircuit(4), - Materials.Glue.getFluid(30L), - GT_Utility.copyAmount(1L, aStack), - 128, - 8); + GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 4L), + GT_Utility.getIntegratedCircuit(4), + Materials.Glue.getFluid(30L), + GT_Utility.copyAmount(1L, aStack), + 128, + 8); } } private void registerPlateQuintuple(final Materials aMaterial, final ItemStack aStack, final boolean aNoSmashing, - final long aMaterialMass) { + final long aMaterialMass) { registerCover(aMaterial, aStack); @@ -343,48 +341,48 @@ public class ProcessingPlate implements gregtech.api.interfaces.IOreRecipeRegist if (!aNoSmashing) { if (GregTech_API.sRecipeFile.get( - gregtech.api.enums.ConfigCategories.Tools.hammerquintupleplate, - OrePrefixes.plate.get(aMaterial) - .toString(), - true)) { + gregtech.api.enums.ConfigCategories.Tools.hammerquintupleplate, + OrePrefixes.plate.get(aMaterial) + .toString(), + true)) { if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { Object aPlateStack = OrePrefixes.plate.get(aMaterial); GT_ModHandler.addCraftingRecipe( - GT_Utility.copyAmount(1L, aStack), - DO_NOT_CHECK_FOR_COLLISIONS | BUFFERED, - new Object[] { "I", "B", "h", // craftingToolHardHammer - 'I', OrePrefixes.plateQuadruple.get(aMaterial), 'B', aPlateStack }); + GT_Utility.copyAmount(1L, aStack), + DO_NOT_CHECK_FOR_COLLISIONS | BUFFERED, + new Object[] { "I", "B", "h", // craftingToolHardHammer + 'I', OrePrefixes.plateQuadruple.get(aMaterial), 'B', aPlateStack }); GT_ModHandler.addShapelessCraftingRecipe( - GT_Utility.copyAmount(1L, aStack), - DO_NOT_CHECK_FOR_COLLISIONS | BUFFERED, - new Object[] { ToolDictNames.craftingToolForgeHammer, aPlateStack, aPlateStack, aPlateStack, - aPlateStack, aPlateStack }); + GT_Utility.copyAmount(1L, aStack), + DO_NOT_CHECK_FOR_COLLISIONS | BUFFERED, + new Object[] { ToolDictNames.craftingToolForgeHammer, aPlateStack, aPlateStack, aPlateStack, + aPlateStack, aPlateStack }); } } RA.addBenderRecipe( - GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 5L), - GT_Utility.copyAmount(1L, aStack), - (int) Math.max(aMaterialMass * 5L, 1L), - calculateRecipeEU(aMaterial, 96)); + GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 5L), + GT_Utility.copyAmount(1L, aStack), + (int) Math.max(aMaterialMass * 5L, 1L), + calculateRecipeEU(aMaterial, 96)); } else { RA.addAssemblerRecipe( - gregtech.api.util.GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 5L), - ItemList.Circuit_Integrated.getWithDamage(0L, 5L), - Materials.Glue.getFluid(40L), - GT_Utility.copyAmount(1L, aStack), - 160, - 8); + gregtech.api.util.GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 5L), + ItemList.Circuit_Integrated.getWithDamage(0L, 5L), + Materials.Glue.getFluid(40L), + GT_Utility.copyAmount(1L, aStack), + 160, + 8); } } private void registerPlateDense(final Materials aMaterial, final ItemStack aStack, final boolean aNoSmashing, - final long aMaterialMass) { + final long aMaterialMass) { registerCover(aMaterial, aStack); @@ -393,67 +391,67 @@ public class ProcessingPlate implements gregtech.api.interfaces.IOreRecipeRegist if (!aNoSmashing) { RA.addBenderRecipe( - GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 9L), - GT_Utility.copyAmount(1L, aStack), - (int) Math.max(aMaterialMass * 9L, 1L), - calculateRecipeEU(aMaterial, 96)); + GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 9L), + GT_Utility.copyAmount(1L, aStack), + (int) Math.max(aMaterialMass * 9L, 1L), + calculateRecipeEU(aMaterial, 96)); } } private void registerItemCasing(final OrePrefixes aPrefix, final Materials aMaterial, final ItemStack aStack, - final boolean aNoSmashing) { + final boolean aNoSmashing) { GT_ModHandler.removeRecipeByOutputDelayed(aStack); if (aMaterial.mStandardMoltenFluid != null) { RA.addFluidSolidifierRecipe( - ItemList.Shape_Mold_Casing.get(0L), - aMaterial.getMolten(L / 2), - GT_OreDictUnificator.get(OrePrefixes.itemCasing, aMaterial, 1L), - 16, - calculateRecipeEU(aMaterial, 8)); + ItemList.Shape_Mold_Casing.get(0L), + aMaterial.getMolten(L / 2), + GT_OreDictUnificator.get(OrePrefixes.itemCasing, aMaterial, 1L), + 16, + calculateRecipeEU(aMaterial, 8)); } if (aMaterial.mUnificatable && aMaterial.mMaterialInto == aMaterial - && !aNoSmashing - && GregTech_API.sRecipeFile.get(ConfigCategories.Tools.hammerplating, aMaterial.toString(), true)) { + && !aNoSmashing + && GregTech_API.sRecipeFile.get(ConfigCategories.Tools.hammerplating, aMaterial.toString(), true)) { if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.itemCasing, aMaterial, 1L), - tBits, // DO_NOT_CHECK_FOR_COLLISIONS|BUFFERED|ONLY_ADD_IF_RESULT_IS_NOT_NULL|NOT_REMOVABLE - new Object[] { "h X", 'X', OrePrefixes.plate.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.itemCasing, aMaterial, 1L), + tBits, // DO_NOT_CHECK_FOR_COLLISIONS|BUFFERED|ONLY_ADD_IF_RESULT_IS_NOT_NULL|NOT_REMOVABLE + new Object[] { "h X", 'X', OrePrefixes.plate.get(aMaterial) }); // Only added if IC2 Forge Hammer is enabled in Recipes.cfg: B:ic2forgehammer_true=false GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.itemCasing, aMaterial, 1L), - tBits, // DO_NOT_CHECK_FOR_COLLISIONS|BUFFERED|ONLY_ADD_IF_RESULT_IS_NOT_NULL|NOT_REMOVABLE - new Object[] { "H X", 'H', ToolDictNames.craftingToolForgeHammer, 'X', - OrePrefixes.plate.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.itemCasing, aMaterial, 1L), + tBits, // DO_NOT_CHECK_FOR_COLLISIONS|BUFFERED|ONLY_ADD_IF_RESULT_IS_NOT_NULL|NOT_REMOVABLE + new Object[] { "H X", 'H', ToolDictNames.craftingToolForgeHammer, 'X', + OrePrefixes.plate.get(aMaterial) }); } } RA.addAlloySmelterRecipe( - GT_OreDictUnificator.get(OrePrefixes.ingot, aMaterial, 2L), - ItemList.Shape_Mold_Casing.get(0L), - GT_Utility.copyAmount(3L, aStack), - 128, - calculateRecipeEU(aMaterial, 15)); + GT_OreDictUnificator.get(OrePrefixes.ingot, aMaterial, 2L), + ItemList.Shape_Mold_Casing.get(0L), + GT_Utility.copyAmount(3L, aStack), + 128, + calculateRecipeEU(aMaterial, 15)); RA.addCutterRecipe( - GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 1L), - GT_OreDictUnificator.get(OrePrefixes.itemCasing, aMaterial, 2L), - NI, - (int) Math.max(aMaterial.getMass(), 1L), - calculateRecipeEU(aMaterial, 16)); + GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 1L), + GT_OreDictUnificator.get(OrePrefixes.itemCasing, aMaterial, 2L), + NI, + (int) Math.max(aMaterial.getMass(), 1L), + calculateRecipeEU(aMaterial, 16)); RA.addExtruderRecipe( - GT_OreDictUnificator.get(OrePrefixes.ingot, aMaterial, 1L), - ItemList.Shape_Extruder_Casing.get(0L), - GT_OreDictUnificator.get(OrePrefixes.itemCasing, aMaterial, 2L), - (int) Math.max(aMaterial.getMass(), 1L), - calculateRecipeEU(aMaterial, 45)); + GT_OreDictUnificator.get(OrePrefixes.ingot, aMaterial, 1L), + ItemList.Shape_Extruder_Casing.get(0L), + GT_OreDictUnificator.get(OrePrefixes.itemCasing, aMaterial, 2L), + (int) Math.max(aMaterial.getMass(), 1L), + calculateRecipeEU(aMaterial, 45)); GT_RecipeRegistrator.registerReverseFluidSmelting(aStack, aMaterial, aPrefix.mMaterialAmount, null); } @@ -463,41 +461,41 @@ public class ProcessingPlate implements gregtech.api.interfaces.IOreRecipeRegist switch (aOreDictName) { case "plateAlloyCarbon" -> { RA.addAssemblerRecipe( - GT_ModHandler.getIC2Item("generator", 1L), - GT_Utility.copyAmount(4L, aStack), - GT_ModHandler.getIC2Item("windMill", 1L), - 6400, - 8); + GT_ModHandler.getIC2Item("generator", 1L), + GT_Utility.copyAmount(4L, aStack), + GT_ModHandler.getIC2Item("windMill", 1L), + 6400, + 8); GT_ModHandler.addAlloySmelterRecipe( - GT_Utility.copyAmount(1L, aStack), - new ItemStack(Blocks.glass, 3, W), - GT_ModHandler.getIC2Item("reinforcedGlass", 4L), - 400, - 4, - false); + GT_Utility.copyAmount(1L, aStack), + new ItemStack(Blocks.glass, 3, W), + GT_ModHandler.getIC2Item("reinforcedGlass", 4L), + 400, + 4, + false); GT_ModHandler.addAlloySmelterRecipe( - GT_Utility.copyAmount(1L, aStack), - Materials.Glass.getDust(3), - GT_ModHandler.getIC2Item("reinforcedGlass", 4L), - 400, - 4, - false); + GT_Utility.copyAmount(1L, aStack), + Materials.Glass.getDust(3), + GT_ModHandler.getIC2Item("reinforcedGlass", 4L), + 400, + 4, + false); } case "plateAlloyAdvanced" -> { GT_ModHandler.addAlloySmelterRecipe( - GT_Utility.copyAmount(1L, aStack), - new ItemStack(Blocks.glass, 3, W), - GT_ModHandler.getIC2Item("reinforcedGlass", 4L), - 400, - 4, - false); + GT_Utility.copyAmount(1L, aStack), + new ItemStack(Blocks.glass, 3, W), + GT_ModHandler.getIC2Item("reinforcedGlass", 4L), + 400, + 4, + false); GT_ModHandler.addAlloySmelterRecipe( - GT_Utility.copyAmount(1L, aStack), - Materials.Glass.getDust(3), - GT_ModHandler.getIC2Item("reinforcedGlass", 4L), - 400, - 4, - false); + GT_Utility.copyAmount(1L, aStack), + Materials.Glass.getDust(3), + GT_ModHandler.getIC2Item("reinforcedGlass", 4L), + 400, + 4, + false); } case "plateAlloyIridium" -> @@ -513,24 +511,24 @@ public class ProcessingPlate implements gregtech.api.interfaces.IOreRecipeRegist ItemStack tStack = NI; // Try different prefixes to use same smooth stones as older GT5U for (OrePrefixes orePrefix : new OrePrefixes[] { OrePrefixes.block, OrePrefixes.block_, OrePrefixes.stoneSmooth, - OrePrefixes.stone }) { + OrePrefixes.stone }) { if ((tStack = GT_OreDictUnificator.get(orePrefix, aMaterial, 1)) != NI) break; } // Register the cover GregTech_API.registerCover( - aStack, - // If there is an ItemStack of Block for Materials - tStack == NI ? - // Use Materials mRGBa dyed blocs/materialicons/MATERIALSET/block1 icons - TextureFactory.builder() - .addIcon(aMaterial.mIconSet.mTextures[TextureSet.INDEX_block1]) - .setRGBA(aMaterial.mRGBa) - .stdOrient() - .build() - : - // or copy Block texture - TextureFactory.of(Block.getBlockFromItem(tStack.getItem()), tStack.getItemDamage()), - null); + aStack, + // If there is an ItemStack of Block for Materials + tStack == NI ? + // Use Materials mRGBa dyed blocs/materialicons/MATERIALSET/block1 icons + TextureFactory.builder() + .addIcon(aMaterial.mIconSet.mTextures[TextureSet.INDEX_block1]) + .setRGBA(aMaterial.mRGBa) + .stdOrient() + .build() + : + // or copy Block texture + TextureFactory.of(Block.getBlockFromItem(tStack.getItem()), tStack.getItemDamage()), + null); } } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingPure.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingPure.java index 25c2810a94..01addd678c 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingPure.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingPure.java @@ -19,24 +19,24 @@ public class ProcessingPure implements gregtech.api.interfaces.IOreRecipeRegistr @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { GT_Values.RA.addForgeHammerRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.dustPure, aMaterial.mMacerateInto, 1L), - 10, - 16); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.dustPure, aMaterial.mMacerateInto, 1L), + 10, + 16); GT_ModHandler.addPulverisationRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get( - OrePrefixes.dustPure, - aMaterial.mMacerateInto, - GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial.mMacerateInto, 1L), - 1L), - GT_OreDictUnificator.get( - OrePrefixes.dust, - GT_Utility.selectItemInList(1, aMaterial.mMacerateInto, aMaterial.mOreByProducts), - 1L), - 10, - false); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get( + OrePrefixes.dustPure, + aMaterial.mMacerateInto, + GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial.mMacerateInto, 1L), + 1L), + GT_OreDictUnificator.get( + OrePrefixes.dust, + GT_Utility.selectItemInList(1, aMaterial.mMacerateInto, aMaterial.mOreByProducts), + 1L), + 10, + false); } } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingRecycling.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingRecycling.java index 3f06f0676d..4f19d285ac 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingRecycling.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingRecycling.java @@ -19,15 +19,15 @@ public class ProcessingRecycling implements gregtech.api.interfaces.IOreRecipeRe @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { if ((aMaterial != Materials.Empty) && (GT_Utility.getFluidForFilledItem(aStack, true) == null) - && !aMaterial.contains(SubTag.SMELTING_TO_FLUID)) + && !aMaterial.contains(SubTag.SMELTING_TO_FLUID)) GT_Values.RA.addCannerRecipe( - aStack, - null, - GT_Utility.getContainerItem(aStack, true), - GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, aPrefix.mMaterialAmount / 3628800L), - (int) Math.max(aMaterial.getMass() / 2L, 1L), - 2); + aStack, + null, + GT_Utility.getContainerItem(aStack, true), + GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, aPrefix.mMaterialAmount / 3628800L), + (int) Math.max(aMaterial.getMass() / 2L, 1L), + 2); } } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingRotor.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingRotor.java index 6f05d874e0..b17b48e358 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingRotor.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingRotor.java @@ -18,9 +18,9 @@ public class ProcessingRotor implements gregtech.api.interfaces.IOreRecipeRegist @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { if ((aMaterial.mUnificatable) && (aMaterial.mMaterialInto == aMaterial) - && !aMaterial.contains(SubTag.NO_WORKING)) { + && !aMaterial.contains(SubTag.NO_WORKING)) { ItemStack tPlate = GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 4L); ItemStack tRing = GT_OreDictUnificator.get(OrePrefixes.ring, aMaterial, 1L); if (GT_Utility.isStackValid(tPlate) && GT_Utility.isStackValid(tRing)) { @@ -28,49 +28,49 @@ public class ProcessingRotor implements gregtech.api.interfaces.IOreRecipeRegist if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.rotor, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { "PhP", "SRf", "PdP", 'P', - aMaterial == Materials.Wood ? OrePrefixes.plank.get(aMaterial) - : OrePrefixes.plate.get(aMaterial), - 'R', OrePrefixes.ring.get(aMaterial), 'S', OrePrefixes.screw.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.rotor, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { "PhP", "SRf", "PdP", 'P', + aMaterial == Materials.Wood ? OrePrefixes.plank.get(aMaterial) + : OrePrefixes.plate.get(aMaterial), + 'R', OrePrefixes.ring.get(aMaterial), 'S', OrePrefixes.screw.get(aMaterial) }); } GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { tPlate.copy(), tRing.copy(), GT_Utility.getIntegratedCircuit(4) }, - Materials.Tin.getMolten(32), - GT_OreDictUnificator.get(OrePrefixes.rotor, aMaterial, 1L), - (int) Math.max(aMaterial.getMass(), 1L), - calculateRecipeEU(aMaterial, 24)); + new ItemStack[] { tPlate.copy(), tRing.copy(), GT_Utility.getIntegratedCircuit(4) }, + Materials.Tin.getMolten(32), + GT_OreDictUnificator.get(OrePrefixes.rotor, aMaterial, 1L), + (int) Math.max(aMaterial.getMass(), 1L), + calculateRecipeEU(aMaterial, 24)); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { tPlate.copy(), tRing.copy(), GT_Utility.getIntegratedCircuit(4) }, - Materials.Lead.getMolten(48), - GT_OreDictUnificator.get(OrePrefixes.rotor, aMaterial, 1L), - (int) Math.max(aMaterial.getMass(), 1L), - calculateRecipeEU(aMaterial, 24)); + new ItemStack[] { tPlate.copy(), tRing.copy(), GT_Utility.getIntegratedCircuit(4) }, + Materials.Lead.getMolten(48), + GT_OreDictUnificator.get(OrePrefixes.rotor, aMaterial, 1L), + (int) Math.max(aMaterial.getMass(), 1L), + calculateRecipeEU(aMaterial, 24)); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { tPlate.copy(), tRing.copy(), GT_Utility.getIntegratedCircuit(4) }, - Materials.SolderingAlloy.getMolten(16), - GT_OreDictUnificator.get(OrePrefixes.rotor, aMaterial, 1L), - (int) Math.max(aMaterial.getMass(), 1L), - calculateRecipeEU(aMaterial, 24)); - } - GT_Values.RA.addExtruderRecipe( - GT_OreDictUnificator.get(OrePrefixes.ingot, aMaterial, 5L), - ItemList.Shape_Extruder_Rotor.get(0L), + new ItemStack[] { tPlate.copy(), tRing.copy(), GT_Utility.getIntegratedCircuit(4) }, + Materials.SolderingAlloy.getMolten(16), GT_OreDictUnificator.get(OrePrefixes.rotor, aMaterial, 1L), (int) Math.max(aMaterial.getMass(), 1L), calculateRecipeEU(aMaterial, 24)); + } + GT_Values.RA.addExtruderRecipe( + GT_OreDictUnificator.get(OrePrefixes.ingot, aMaterial, 5L), + ItemList.Shape_Extruder_Rotor.get(0L), + GT_OreDictUnificator.get(OrePrefixes.rotor, aMaterial, 1L), + (int) Math.max(aMaterial.getMass(), 1L), + calculateRecipeEU(aMaterial, 24)); if (!(aMaterial == Materials.AnnealedCopper || aMaterial == Materials.WroughtIron)) { GT_Values.RA.addFluidSolidifierRecipe( - ItemList.Shape_Mold_Rotor.get(0L), - aMaterial.getMolten(612L), - GT_OreDictUnificator.get(OrePrefixes.rotor, aMaterial, 1L), - (int) Math.max(aMaterial.getMass(), 1L), - calculateRecipeEU(aMaterial, 24)); + ItemList.Shape_Mold_Rotor.get(0L), + aMaterial.getMolten(612L), + GT_OreDictUnificator.get(OrePrefixes.rotor, aMaterial, 1L), + (int) Math.max(aMaterial.getMass(), 1L), + calculateRecipeEU(aMaterial, 24)); } } } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingRound.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingRound.java index c470801b7e..0f28727558 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingRound.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingRound.java @@ -21,29 +21,29 @@ public class ProcessingRound implements gregtech.api.interfaces.IOreRecipeRegist @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { if (!aMaterial.contains(SubTag.NO_WORKING)) { GT_Values.RA.addLatheRecipe( - GT_OreDictUnificator.get(OrePrefixes.nugget, aMaterial, 1L), - GT_Utility.copyAmount(1L, aStack), - null, - (int) Math.max(aMaterial.getMass() / 4L, 1L), - 8); + GT_OreDictUnificator.get(OrePrefixes.nugget, aMaterial, 1L), + GT_Utility.copyAmount(1L, aStack), + null, + (int) Math.max(aMaterial.getMass() / 4L, 1L), + 8); if ((aMaterial.mUnificatable) && (aMaterial.mMaterialInto == aMaterial)) { GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.round, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { "fX", "Xh", 'X', OrePrefixes.nugget.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.round, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { "fX", "Xh", 'X', OrePrefixes.nugget.get(aMaterial) }); GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.round, aMaterial, 4L), - GT_Proxy.tBits, - new Object[] { "fXh", 'X', OrePrefixes.ingot.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.round, aMaterial, 4L), + GT_Proxy.tBits, + new Object[] { "fXh", 'X', OrePrefixes.ingot.get(aMaterial) }); } } if (GT_Mod.gregtechproxy.mAE2Integration) { Api.INSTANCE.registries() - .matterCannon() - .registerAmmo(GT_OreDictUnificator.get(OrePrefixes.round, aMaterial, 1L), aMaterial.getMass()); + .matterCannon() + .registerAmmo(GT_OreDictUnificator.get(OrePrefixes.round, aMaterial, 1L), aMaterial.getMass()); } } } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingSand.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingSand.java index 2e91eef9f5..b138ba6338 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingSand.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingSand.java @@ -17,18 +17,18 @@ public class ProcessingSand implements gregtech.api.interfaces.IOreRecipeRegistr @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { if (aOreDictName.equals("sandOil")) { GT_Values.RA.addCentrifugeRecipe( - GT_Utility.copyAmount(2L, aStack), - 1, - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Oil, 1L), - new ItemStack(Blocks.sand, 1, 0), - null, - null, - null, - null, - 1000); + GT_Utility.copyAmount(2L, aStack), + 1, + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Oil, 1L), + new ItemStack(Blocks.sand, 1, 0), + null, + null, + null, + null, + 1000); } } } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingSaplings.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingSaplings.java index 5ce42c6f45..dafde0e73d 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingSaplings.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingSaplings.java @@ -18,19 +18,19 @@ public class ProcessingSaplings implements gregtech.api.interfaces.IOreRecipeReg @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { GT_Values.RA.addPulveriserRecipe( - GT_Utility.copyAmount(1L, aStack), - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Wood, 2L) }, - new int[] { 10000 }, - 100, - 2); + GT_Utility.copyAmount(1L, aStack), + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Wood, 2L) }, + new int[] { 10000 }, + 100, + 2); GT_ModHandler.addCompressionRecipe(GT_Utility.copyAmount(8L, aStack), ItemList.IC2_Plantball.get(1L)); GT_Values.RA.addLatheRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 1L), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Wood, 1L), - 16, - 8); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 1L), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Wood, 1L), + 16, + 8); } } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingScrew.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingScrew.java index 65564437e4..4da8591a2b 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingScrew.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingScrew.java @@ -18,20 +18,20 @@ public class ProcessingScrew implements gregtech.api.interfaces.IOreRecipeRegist @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { if (!aMaterial.contains(SubTag.NO_WORKING)) { GT_Values.RA.addLatheRecipe( - GT_OreDictUnificator.get(OrePrefixes.bolt, aMaterial, 1L), - GT_Utility.copyAmount(1L, aStack), - null, - (int) Math.max(aMaterial.getMass() / 8L, 1L), - calculateRecipeEU(aMaterial, 4)); + GT_OreDictUnificator.get(OrePrefixes.bolt, aMaterial, 1L), + GT_Utility.copyAmount(1L, aStack), + null, + (int) Math.max(aMaterial.getMass() / 8L, 1L), + calculateRecipeEU(aMaterial, 4)); if ((aMaterial.mUnificatable) && (aMaterial.mMaterialInto == aMaterial)) if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.screw, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { "fX", "X ", 'X', OrePrefixes.bolt.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.screw, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { "fX", "X ", 'X', OrePrefixes.bolt.get(aMaterial) }); } } } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingShaping.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingShaping.java index aa12ca42ea..ae96f0eea9 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingShaping.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingShaping.java @@ -21,9 +21,9 @@ public class ProcessingShaping implements gregtech.api.interfaces.IOreRecipeRegi @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { if (((aMaterial == Materials.Glass) || (GT_OreDictUnificator.get(OrePrefixes.ingot, aMaterial, 1L) != null)) - && (!aMaterial.contains(SubTag.NO_SMELTING))) { + && (!aMaterial.contains(SubTag.NO_SMELTING))) { long aMaterialMass = aMaterial.getMass(); int tAmount = (int) (aPrefix.mMaterialAmount / 3628800L); if ((tAmount > 0) && (tAmount <= 64) && (aPrefix.mMaterialAmount % 3628800L == 0L)) { @@ -33,444 +33,444 @@ public class ProcessingShaping implements gregtech.api.interfaces.IOreRecipeRegi if (aMaterial.contains(SubTag.NO_SMASHING)) { tVoltageMultiplier /= 4; } else if (aPrefix.name() - .startsWith(OrePrefixes.dust.name())) { - return; - } + .startsWith(OrePrefixes.dust.name())) { + return; + } if (!OrePrefixes.block.isIgnored(aMaterial.mSmeltInto)) { GT_Values.RA.addExtruderRecipe( - GT_Utility.copyAmount(9L, aStack), - ItemList.Shape_Extruder_Block.get(0L), - GT_OreDictUnificator.get(OrePrefixes.block, aMaterial.mSmeltInto, tAmount), - 10 * tAmount, - calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); + GT_Utility.copyAmount(9L, aStack), + ItemList.Shape_Extruder_Block.get(0L), + GT_OreDictUnificator.get(OrePrefixes.block, aMaterial.mSmeltInto, tAmount), + 10 * tAmount, + calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); // Allow creation of alloy smelter recipes for material recycling if < IV tier. if (tTrueVoltage < TierEU.IV) { GT_Values.RA.addAlloySmelterRecipe( - GT_Utility.copyAmount(9L, aStack), - ItemList.Shape_Mold_Block.get(0L), - GT_OreDictUnificator.get(OrePrefixes.block, aMaterial.mSmeltInto, tAmount), - 5 * tAmount, - calculateRecipeEU(aMaterial, 4 * tVoltageMultiplier)); + GT_Utility.copyAmount(9L, aStack), + ItemList.Shape_Mold_Block.get(0L), + GT_OreDictUnificator.get(OrePrefixes.block, aMaterial.mSmeltInto, tAmount), + 5 * tAmount, + calculateRecipeEU(aMaterial, 4 * tVoltageMultiplier)); } } if (((aPrefix != OrePrefixes.ingot) || (aMaterial != aMaterial.mSmeltInto))) { GT_Values.RA.addExtruderRecipe( - GT_Utility.copyAmount(1L, aStack), - ItemList.Shape_Extruder_Ingot.get(0L), - GT_OreDictUnificator.get(OrePrefixes.ingot, aMaterial.mSmeltInto, tAmount), - 10, - calculateRecipeEU(aMaterial, 4 * tVoltageMultiplier)); + GT_Utility.copyAmount(1L, aStack), + ItemList.Shape_Extruder_Ingot.get(0L), + GT_OreDictUnificator.get(OrePrefixes.ingot, aMaterial.mSmeltInto, tAmount), + 10, + calculateRecipeEU(aMaterial, 4 * tVoltageMultiplier)); } GT_Values.RA.addExtruderRecipe( - GT_Utility.copyAmount(1L, aStack), - ItemList.Shape_Extruder_Pipe_Tiny.get(0L), - GT_OreDictUnificator.get(OrePrefixes.pipeTiny, aMaterial.mSmeltInto, tAmount * 2), - 4 * tAmount, - calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); + GT_Utility.copyAmount(1L, aStack), + ItemList.Shape_Extruder_Pipe_Tiny.get(0L), + GT_OreDictUnificator.get(OrePrefixes.pipeTiny, aMaterial.mSmeltInto, tAmount * 2), + 4 * tAmount, + calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); if (!(aMaterial == Materials.Redstone || aMaterial == Materials.Glowstone)) { GT_Values.RA.addExtruderRecipe( - GT_Utility.copyAmount(1L, aStack), - ItemList.Shape_Extruder_Pipe_Small.get(0L), - GT_OreDictUnificator.get(OrePrefixes.pipeSmall, aMaterial.mSmeltInto, tAmount), - 8 * tAmount, - calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); + GT_Utility.copyAmount(1L, aStack), + ItemList.Shape_Extruder_Pipe_Small.get(0L), + GT_OreDictUnificator.get(OrePrefixes.pipeSmall, aMaterial.mSmeltInto, tAmount), + 8 * tAmount, + calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); GT_Values.RA.addExtruderRecipe( - GT_Utility.copyAmount(3L, aStack), - ItemList.Shape_Extruder_Pipe_Medium.get(0L), - GT_OreDictUnificator.get(OrePrefixes.pipeMedium, aMaterial.mSmeltInto, tAmount), - 24 * tAmount, - calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); + GT_Utility.copyAmount(3L, aStack), + ItemList.Shape_Extruder_Pipe_Medium.get(0L), + GT_OreDictUnificator.get(OrePrefixes.pipeMedium, aMaterial.mSmeltInto, tAmount), + 24 * tAmount, + calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); GT_Values.RA.addExtruderRecipe( - GT_Utility.copyAmount(6L, aStack), - ItemList.Shape_Extruder_Pipe_Large.get(0L), - GT_OreDictUnificator.get(OrePrefixes.pipeLarge, aMaterial.mSmeltInto, tAmount), - 48 * tAmount, - calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); + GT_Utility.copyAmount(6L, aStack), + ItemList.Shape_Extruder_Pipe_Large.get(0L), + GT_OreDictUnificator.get(OrePrefixes.pipeLarge, aMaterial.mSmeltInto, tAmount), + 48 * tAmount, + calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); } GT_Values.RA.addExtruderRecipe( - GT_Utility.copyAmount(12L, aStack), - ItemList.Shape_Extruder_Pipe_Huge.get(0L), - GT_OreDictUnificator.get(OrePrefixes.pipeHuge, aMaterial.mSmeltInto, tAmount), - 96 * tAmount, - calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); + GT_Utility.copyAmount(12L, aStack), + ItemList.Shape_Extruder_Pipe_Huge.get(0L), + GT_OreDictUnificator.get(OrePrefixes.pipeHuge, aMaterial.mSmeltInto, tAmount), + 96 * tAmount, + calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); GT_Values.RA.addExtruderRecipe( - GT_Utility.copyAmount(1L, aStack), - ItemList.Shape_Extruder_Plate.get(0L), - GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial.mSmeltInto, tAmount), - (int) Math.max(aMaterialMass * tAmount, tAmount), - calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); + GT_Utility.copyAmount(1L, aStack), + ItemList.Shape_Extruder_Plate.get(0L), + GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial.mSmeltInto, tAmount), + (int) Math.max(aMaterialMass * tAmount, tAmount), + calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); GT_Values.RA.addExtruderRecipe( - GT_OreDictUnificator.get(OrePrefixes.ingot, aMaterial, 1L), - ItemList.Shape_Extruder_Small_Gear.get(0L), - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, aMaterial.mSmeltInto, tAmount), - (int) Math.max(aMaterialMass * tAmount, tAmount), - calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); + GT_OreDictUnificator.get(OrePrefixes.ingot, aMaterial, 1L), + ItemList.Shape_Extruder_Small_Gear.get(0L), + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, aMaterial.mSmeltInto, tAmount), + (int) Math.max(aMaterialMass * tAmount, tAmount), + calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); GT_Values.RA.addExtruderRecipe( - GT_Utility.copyAmount(6L, aStack), - ItemList.Shape_Extruder_Turbine_Blade.get(0L), - GT_OreDictUnificator.get(OrePrefixes.turbineBlade, aMaterial.mSmeltInto, tAmount), - (int) Math.max(aMaterialMass * tAmount, tAmount), - calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); + GT_Utility.copyAmount(6L, aStack), + ItemList.Shape_Extruder_Turbine_Blade.get(0L), + GT_OreDictUnificator.get(OrePrefixes.turbineBlade, aMaterial.mSmeltInto, tAmount), + (int) Math.max(aMaterialMass * tAmount, tAmount), + calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); if (!(aMaterial == Materials.AnnealedCopper || aMaterial == Materials.WroughtIron)) { GT_Values.RA.addFluidSolidifierRecipe( - ItemList.Shape_Mold_Ring.get(0L), - aMaterial.getMolten(36L), - GT_OreDictUnificator.get(OrePrefixes.ring, aMaterial, 1L), - 100, - calculateRecipeEU(aMaterial, 4 * tVoltageMultiplier)); + ItemList.Shape_Mold_Ring.get(0L), + aMaterial.getMolten(36L), + GT_OreDictUnificator.get(OrePrefixes.ring, aMaterial, 1L), + 100, + calculateRecipeEU(aMaterial, 4 * tVoltageMultiplier)); GT_Values.RA.addFluidSolidifierRecipe( - ItemList.Shape_Mold_Screw.get(0L), - aMaterial.getMolten(18L), - GT_OreDictUnificator.get(OrePrefixes.screw, aMaterial, 1L), - 50, - calculateRecipeEU(aMaterial, 2 * tVoltageMultiplier)); + ItemList.Shape_Mold_Screw.get(0L), + aMaterial.getMolten(18L), + GT_OreDictUnificator.get(OrePrefixes.screw, aMaterial, 1L), + 50, + calculateRecipeEU(aMaterial, 2 * tVoltageMultiplier)); GT_Values.RA.addFluidSolidifierRecipe( - ItemList.Shape_Mold_Rod.get(0L), - aMaterial.getMolten(72L), - GT_OreDictUnificator.get(OrePrefixes.stick, aMaterial, 1L), - 150, - calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); + ItemList.Shape_Mold_Rod.get(0L), + aMaterial.getMolten(72L), + GT_OreDictUnificator.get(OrePrefixes.stick, aMaterial, 1L), + 150, + calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); GT_Values.RA.addFluidSolidifierRecipe( - ItemList.Shape_Mold_Bolt.get(0L), - aMaterial.getMolten(18L), - GT_OreDictUnificator.get(OrePrefixes.bolt, aMaterial, 1L), - 50, - calculateRecipeEU(aMaterial, 2 * tVoltageMultiplier)); + ItemList.Shape_Mold_Bolt.get(0L), + aMaterial.getMolten(18L), + GT_OreDictUnificator.get(OrePrefixes.bolt, aMaterial, 1L), + 50, + calculateRecipeEU(aMaterial, 2 * tVoltageMultiplier)); GT_Values.RA.addFluidSolidifierRecipe( - ItemList.Shape_Mold_Round.get(0L), - aMaterial.getMolten(18L), - GT_OreDictUnificator.get(OrePrefixes.round, aMaterial, 1L), - 50, - calculateRecipeEU(aMaterial, 2 * tVoltageMultiplier)); + ItemList.Shape_Mold_Round.get(0L), + aMaterial.getMolten(18L), + GT_OreDictUnificator.get(OrePrefixes.round, aMaterial, 1L), + 50, + calculateRecipeEU(aMaterial, 2 * tVoltageMultiplier)); GT_Values.RA.addFluidSolidifierRecipe( - ItemList.Shape_Mold_Rod_Long.get(0L), - aMaterial.getMolten(144L), - GT_OreDictUnificator.get(OrePrefixes.stickLong, aMaterial, 1L), - 300, - calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); + ItemList.Shape_Mold_Rod_Long.get(0L), + aMaterial.getMolten(144L), + GT_OreDictUnificator.get(OrePrefixes.stickLong, aMaterial, 1L), + 300, + calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); GT_Values.RA.addFluidSolidifierRecipe( - ItemList.Shape_Mold_Turbine_Blade.get(0L), - aMaterial.getMolten(864L), - GT_OreDictUnificator.get(OrePrefixes.turbineBlade, aMaterial, 1L), - 400, - calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); + ItemList.Shape_Mold_Turbine_Blade.get(0L), + aMaterial.getMolten(864L), + GT_OreDictUnificator.get(OrePrefixes.turbineBlade, aMaterial, 1L), + 400, + calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); GT_Values.RA.addFluidSolidifierRecipe( - ItemList.Shape_Mold_Pipe_Tiny.get(0L), - aMaterial.getMolten(72L), - GT_OreDictUnificator.get(OrePrefixes.pipeTiny, aMaterial, 1L), - 20, - calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); + ItemList.Shape_Mold_Pipe_Tiny.get(0L), + aMaterial.getMolten(72L), + GT_OreDictUnificator.get(OrePrefixes.pipeTiny, aMaterial, 1L), + 20, + calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); GT_Values.RA.addFluidSolidifierRecipe( - ItemList.Shape_Mold_Pipe_Small.get(0L), - aMaterial.getMolten(144L), - GT_OreDictUnificator.get(OrePrefixes.pipeSmall, aMaterial, 1L), - 40, - calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); + ItemList.Shape_Mold_Pipe_Small.get(0L), + aMaterial.getMolten(144L), + GT_OreDictUnificator.get(OrePrefixes.pipeSmall, aMaterial, 1L), + 40, + calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); GT_Values.RA.addFluidSolidifierRecipe( - ItemList.Shape_Mold_Pipe_Medium.get(0L), - aMaterial.getMolten(432L), - GT_OreDictUnificator.get(OrePrefixes.pipeMedium, aMaterial, 1L), - 80, - calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); + ItemList.Shape_Mold_Pipe_Medium.get(0L), + aMaterial.getMolten(432L), + GT_OreDictUnificator.get(OrePrefixes.pipeMedium, aMaterial, 1L), + 80, + calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); GT_Values.RA.addFluidSolidifierRecipe( - ItemList.Shape_Mold_Pipe_Large.get(0L), - aMaterial.getMolten(864L), - GT_OreDictUnificator.get(OrePrefixes.pipeLarge, aMaterial, 1L), - 160, - calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); + ItemList.Shape_Mold_Pipe_Large.get(0L), + aMaterial.getMolten(864L), + GT_OreDictUnificator.get(OrePrefixes.pipeLarge, aMaterial, 1L), + 160, + calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); GT_Values.RA.addFluidSolidifierRecipe( - ItemList.Shape_Mold_Pipe_Huge.get(0L), - aMaterial.getMolten(1728L), - GT_OreDictUnificator.get(OrePrefixes.pipeHuge, aMaterial, 1L), - 320, - calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); + ItemList.Shape_Mold_Pipe_Huge.get(0L), + aMaterial.getMolten(1728L), + GT_OreDictUnificator.get(OrePrefixes.pipeHuge, aMaterial, 1L), + 320, + calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); } if (tAmount * 2 <= 64) { if (!(aMaterial == Materials.Aluminium)) { GT_Values.RA.addExtruderRecipe( - GT_Utility.copyAmount(1L, aStack), - ItemList.Shape_Extruder_Rod.get(0L), - GT_OreDictUnificator.get(OrePrefixes.stick, aMaterial.mSmeltInto, tAmount * 2), - (int) Math.max(aMaterialMass * 2L * tAmount, tAmount), - calculateRecipeEU(aMaterial, 6 * tVoltageMultiplier)); + GT_Utility.copyAmount(1L, aStack), + ItemList.Shape_Extruder_Rod.get(0L), + GT_OreDictUnificator.get(OrePrefixes.stick, aMaterial.mSmeltInto, tAmount * 2), + (int) Math.max(aMaterialMass * 2L * tAmount, tAmount), + calculateRecipeEU(aMaterial, 6 * tVoltageMultiplier)); } else { GT_Values.RA.addExtruderRecipe( - GT_Utility.copyAmount(1L, aStack), - ItemList.Shape_Extruder_Rod.get(0L), - GT_OreDictUnificator.get(OrePrefixes.stick, aMaterial.mSmeltInto, tAmount * 2), - 200, - calculateRecipeEU(aMaterial, 2 * tVoltageMultiplier)); + GT_Utility.copyAmount(1L, aStack), + ItemList.Shape_Extruder_Rod.get(0L), + GT_OreDictUnificator.get(OrePrefixes.stick, aMaterial.mSmeltInto, tAmount * 2), + 200, + calculateRecipeEU(aMaterial, 2 * tVoltageMultiplier)); } } if (tAmount * 2 <= 64) GT_Values.RA.addExtruderRecipe( - GT_Utility.copyAmount(1L, aStack), - ItemList.Shape_Extruder_Wire.get(0L), - GT_OreDictUnificator.get(OrePrefixes.wireGt01, aMaterial.mSmeltInto, tAmount * 2), - (int) Math.max(aMaterialMass * 2L * tAmount, tAmount), - calculateRecipeEU(aMaterial, 6 * tVoltageMultiplier)); + GT_Utility.copyAmount(1L, aStack), + ItemList.Shape_Extruder_Wire.get(0L), + GT_OreDictUnificator.get(OrePrefixes.wireGt01, aMaterial.mSmeltInto, tAmount * 2), + (int) Math.max(aMaterialMass * 2L * tAmount, tAmount), + calculateRecipeEU(aMaterial, 6 * tVoltageMultiplier)); if (tAmount * 8 <= 64) GT_Values.RA.addExtruderRecipe( - GT_Utility.copyAmount(1L, aStack), - ItemList.Shape_Extruder_Bolt.get(0L), - GT_OreDictUnificator.get(OrePrefixes.bolt, aMaterial.mSmeltInto, tAmount * 8), - (int) Math.max(aMaterialMass * 2L * tAmount, tAmount), - calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); + GT_Utility.copyAmount(1L, aStack), + ItemList.Shape_Extruder_Bolt.get(0L), + GT_OreDictUnificator.get(OrePrefixes.bolt, aMaterial.mSmeltInto, tAmount * 8), + (int) Math.max(aMaterialMass * 2L * tAmount, tAmount), + calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); if (tAmount * 4 <= 64) { GT_Values.RA.addExtruderRecipe( - GT_Utility.copyAmount(1L, aStack), - ItemList.Shape_Extruder_Ring.get(0L), - GT_OreDictUnificator.get(OrePrefixes.ring, aMaterial.mSmeltInto, tAmount * 4), - (int) Math.max(aMaterialMass * 2L * tAmount, tAmount), - calculateRecipeEU(aMaterial, 6 * tVoltageMultiplier)); + GT_Utility.copyAmount(1L, aStack), + ItemList.Shape_Extruder_Ring.get(0L), + GT_OreDictUnificator.get(OrePrefixes.ring, aMaterial.mSmeltInto, tAmount * 4), + (int) Math.max(aMaterialMass * 2L * tAmount, tAmount), + calculateRecipeEU(aMaterial, 6 * tVoltageMultiplier)); if ((aMaterial.mUnificatable) && (aMaterial.mMaterialInto == aMaterial) - && !aMaterial.contains(SubTag.NO_SMASHING)) + && !aMaterial.contains(SubTag.NO_SMASHING)) // If material tier < IV then add manual recipe. if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.ring, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { "h ", "fX", 'X', OrePrefixes.stick.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.ring, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { "h ", "fX", 'X', OrePrefixes.stick.get(aMaterial) }); } } GT_Values.RA.addExtruderRecipe( - GT_Utility.copyAmount(2L, aStack), - ItemList.Shape_Extruder_Sword.get(0L), - GT_OreDictUnificator.get(OrePrefixes.toolHeadSword, aMaterial.mSmeltInto, tAmount), - (int) Math.max(aMaterialMass * 2L * tAmount, tAmount), - calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); + GT_Utility.copyAmount(2L, aStack), + ItemList.Shape_Extruder_Sword.get(0L), + GT_OreDictUnificator.get(OrePrefixes.toolHeadSword, aMaterial.mSmeltInto, tAmount), + (int) Math.max(aMaterialMass * 2L * tAmount, tAmount), + calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); GT_Values.RA.addExtruderRecipe( - GT_Utility.copyAmount(3L, aStack), - ItemList.Shape_Extruder_Pickaxe.get(0L), - GT_OreDictUnificator.get(OrePrefixes.toolHeadPickaxe, aMaterial.mSmeltInto, tAmount), - (int) Math.max(aMaterialMass * 3L * tAmount, tAmount), - calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); + GT_Utility.copyAmount(3L, aStack), + ItemList.Shape_Extruder_Pickaxe.get(0L), + GT_OreDictUnificator.get(OrePrefixes.toolHeadPickaxe, aMaterial.mSmeltInto, tAmount), + (int) Math.max(aMaterialMass * 3L * tAmount, tAmount), + calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); GT_Values.RA.addExtruderRecipe( - GT_Utility.copyAmount(1L, aStack), - ItemList.Shape_Extruder_Shovel.get(0L), - GT_OreDictUnificator.get(OrePrefixes.toolHeadShovel, aMaterial.mSmeltInto, tAmount), - (int) Math.max(aMaterialMass * 1L * tAmount, tAmount), - calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); + GT_Utility.copyAmount(1L, aStack), + ItemList.Shape_Extruder_Shovel.get(0L), + GT_OreDictUnificator.get(OrePrefixes.toolHeadShovel, aMaterial.mSmeltInto, tAmount), + (int) Math.max(aMaterialMass * 1L * tAmount, tAmount), + calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); GT_Values.RA.addExtruderRecipe( - GT_Utility.copyAmount(3L, aStack), - ItemList.Shape_Extruder_Axe.get(0L), - GT_OreDictUnificator.get(OrePrefixes.toolHeadAxe, aMaterial.mSmeltInto, tAmount), - (int) Math.max(aMaterialMass * 3L * tAmount, tAmount), - calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); + GT_Utility.copyAmount(3L, aStack), + ItemList.Shape_Extruder_Axe.get(0L), + GT_OreDictUnificator.get(OrePrefixes.toolHeadAxe, aMaterial.mSmeltInto, tAmount), + (int) Math.max(aMaterialMass * 3L * tAmount, tAmount), + calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); GT_Values.RA.addExtruderRecipe( - GT_Utility.copyAmount(2L, aStack), - ItemList.Shape_Extruder_Hoe.get(0L), - GT_OreDictUnificator.get(OrePrefixes.toolHeadHoe, aMaterial.mSmeltInto, tAmount), - (int) Math.max(aMaterialMass * 2L * tAmount, tAmount), - calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); + GT_Utility.copyAmount(2L, aStack), + ItemList.Shape_Extruder_Hoe.get(0L), + GT_OreDictUnificator.get(OrePrefixes.toolHeadHoe, aMaterial.mSmeltInto, tAmount), + (int) Math.max(aMaterialMass * 2L * tAmount, tAmount), + calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); GT_Values.RA.addExtruderRecipe( - GT_Utility.copyAmount(6L, aStack), - ItemList.Shape_Extruder_Hammer.get(0L), - GT_OreDictUnificator.get(OrePrefixes.toolHeadHammer, aMaterial.mSmeltInto, tAmount), - (int) Math.max(aMaterialMass * 6L * tAmount, tAmount), - calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); + GT_Utility.copyAmount(6L, aStack), + ItemList.Shape_Extruder_Hammer.get(0L), + GT_OreDictUnificator.get(OrePrefixes.toolHeadHammer, aMaterial.mSmeltInto, tAmount), + (int) Math.max(aMaterialMass * 6L * tAmount, tAmount), + calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); GT_Values.RA.addExtruderRecipe( - GT_Utility.copyAmount(2L, aStack), - ItemList.Shape_Extruder_File.get(0L), - GT_OreDictUnificator.get(OrePrefixes.toolHeadFile, aMaterial.mSmeltInto, tAmount), - (int) Math.max(aMaterialMass * 2L * tAmount, tAmount), - calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); + GT_Utility.copyAmount(2L, aStack), + ItemList.Shape_Extruder_File.get(0L), + GT_OreDictUnificator.get(OrePrefixes.toolHeadFile, aMaterial.mSmeltInto, tAmount), + (int) Math.max(aMaterialMass * 2L * tAmount, tAmount), + calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); GT_Values.RA.addExtruderRecipe( - GT_Utility.copyAmount(2L, aStack), - ItemList.Shape_Extruder_Saw.get(0L), - GT_OreDictUnificator.get(OrePrefixes.toolHeadSaw, aMaterial.mSmeltInto, tAmount), - (int) Math.max(aMaterialMass * 2L * tAmount, tAmount), - calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); + GT_Utility.copyAmount(2L, aStack), + ItemList.Shape_Extruder_Saw.get(0L), + GT_OreDictUnificator.get(OrePrefixes.toolHeadSaw, aMaterial.mSmeltInto, tAmount), + (int) Math.max(aMaterialMass * 2L * tAmount, tAmount), + calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); GT_Values.RA.addExtruderRecipe( - GT_Utility.copyAmount(4L, aStack), - ItemList.Shape_Extruder_Gear.get(0L), - GT_OreDictUnificator.get(OrePrefixes.gearGt, aMaterial.mSmeltInto, tAmount), - (int) Math.max(aMaterialMass * 5L * tAmount, tAmount), - calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); + GT_Utility.copyAmount(4L, aStack), + ItemList.Shape_Extruder_Gear.get(0L), + GT_OreDictUnificator.get(OrePrefixes.gearGt, aMaterial.mSmeltInto, tAmount), + (int) Math.max(aMaterialMass * 5L * tAmount, tAmount), + calculateRecipeEU(aMaterial, 8 * tVoltageMultiplier)); if (!(aMaterial == Materials.StyreneButadieneRubber || aMaterial == Materials.Silicone)) { if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { GT_Values.RA.addAlloySmelterRecipe( - GT_Utility.copyAmount(2L, aStack), - ItemList.Shape_Mold_Plate.get(0L), - GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial.mSmeltInto, tAmount), - (int) Math.max(aMaterialMass * 2L * tAmount, tAmount), - calculateRecipeEU(aMaterial, 2 * tVoltageMultiplier)); + GT_Utility.copyAmount(2L, aStack), + ItemList.Shape_Mold_Plate.get(0L), + GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial.mSmeltInto, tAmount), + (int) Math.max(aMaterialMass * 2L * tAmount, tAmount), + calculateRecipeEU(aMaterial, 2 * tVoltageMultiplier)); } } else { // If tier < IV then add ability to turn ingots into plates via alloy smelter. if (tTrueVoltage < TierEU.IV) { GT_Values.RA.addAlloySmelterRecipe( - GT_Utility.copyAmount(1L, aStack), - ItemList.Shape_Mold_Plate.get(0L), - GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial.mSmeltInto, tAmount), - (int) Math.max(aMaterialMass * 2L * tAmount, tAmount), - calculateRecipeEU(aMaterial, 2 * tVoltageMultiplier)); + GT_Utility.copyAmount(1L, aStack), + ItemList.Shape_Mold_Plate.get(0L), + GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial.mSmeltInto, tAmount), + (int) Math.max(aMaterialMass * 2L * tAmount, tAmount), + calculateRecipeEU(aMaterial, 2 * tVoltageMultiplier)); } } // If tier < IV then add ability to turn ingots into gears via alloy smelter. if (tTrueVoltage < TierEU.IV) { GT_Values.RA.addAlloySmelterRecipe( - GT_Utility.copyAmount(8L, aStack), - ItemList.Shape_Mold_Gear.get(0L), - GT_OreDictUnificator.get(OrePrefixes.gearGt, aMaterial.mSmeltInto, tAmount), - (int) Math.max(aMaterialMass * 10L * tAmount, tAmount), - calculateRecipeEU(aMaterial, 2 * tVoltageMultiplier)); + GT_Utility.copyAmount(8L, aStack), + ItemList.Shape_Mold_Gear.get(0L), + GT_OreDictUnificator.get(OrePrefixes.gearGt, aMaterial.mSmeltInto, tAmount), + (int) Math.max(aMaterialMass * 10L * tAmount, tAmount), + calculateRecipeEU(aMaterial, 2 * tVoltageMultiplier)); } switch (aMaterial.mSmeltInto.mName) { case "Glass" -> { GT_Values.RA.addExtruderRecipe( - GT_Utility.copyAmount(1L, aStack), - ItemList.Shape_Extruder_Bottle.get(0L), - new ItemStack(Items.glass_bottle, 1), - tAmount * 32, - 16); + GT_Utility.copyAmount(1L, aStack), + ItemList.Shape_Extruder_Bottle.get(0L), + new ItemStack(Items.glass_bottle, 1), + tAmount * 32, + 16); GT_Values.RA.addAlloySmelterRecipe( - GT_Utility.copyAmount(1L, aStack), - ItemList.Shape_Mold_Bottle.get(0L), - new ItemStack(Items.glass_bottle, 1), - tAmount * 64, - 4); + GT_Utility.copyAmount(1L, aStack), + ItemList.Shape_Mold_Bottle.get(0L), + new ItemStack(Items.glass_bottle, 1), + tAmount * 64, + 4); } case "Steel" -> { GT_Values.RA.addExtruderRecipe( - GT_Utility.copyAmount(1L, aStack), - ItemList.Shape_Extruder_Cell.get(0L), - ItemList.Cell_Empty.get(tAmount), - tAmount * 128, - 30); + GT_Utility.copyAmount(1L, aStack), + ItemList.Shape_Extruder_Cell.get(0L), + ItemList.Cell_Empty.get(tAmount), + tAmount * 128, + 30); if (tAmount * 2 <= 64) GT_Values.RA.addExtruderRecipe( - GT_Utility.copyAmount(1L, aStack), - ItemList.Shape_Extruder_Casing.get(0L), - GT_ModHandler.getIC2Item("casingadviron", tAmount * 2), - tAmount * 32, - 3 * tVoltageMultiplier); + GT_Utility.copyAmount(1L, aStack), + ItemList.Shape_Extruder_Casing.get(0L), + GT_ModHandler.getIC2Item("casingadviron", tAmount * 2), + tAmount * 32, + 3 * tVoltageMultiplier); if (tAmount * 2 <= 64) GT_Values.RA.addAlloySmelterRecipe( - GT_Utility.copyAmount(2L, aStack), - ItemList.Shape_Mold_Casing.get(0L), - GT_ModHandler.getIC2Item("casingadviron", tAmount * 3), - tAmount * 128, - 1 * tVoltageMultiplier); + GT_Utility.copyAmount(2L, aStack), + ItemList.Shape_Mold_Casing.get(0L), + GT_ModHandler.getIC2Item("casingadviron", tAmount * 3), + tAmount * 128, + 1 * tVoltageMultiplier); } case "Iron", "WroughtIron" -> { GT_Values.RA.addExtruderRecipe( - GT_Utility.copyAmount(1L, aStack), - ItemList.Shape_Extruder_Cell.get(0L), - GT_ModHandler.getIC2Item("fuelRod", tAmount), - tAmount * 128, - 30); + GT_Utility.copyAmount(1L, aStack), + ItemList.Shape_Extruder_Cell.get(0L), + GT_ModHandler.getIC2Item("fuelRod", tAmount), + tAmount * 128, + 30); if (tAmount * 2 <= 64) GT_Values.RA.addExtruderRecipe( - GT_Utility.copyAmount(1L, aStack), - ItemList.Shape_Extruder_Casing.get(0L), - GT_ModHandler.getIC2Item("casingiron", tAmount * 2), - tAmount * 32, - 3 * tVoltageMultiplier); + GT_Utility.copyAmount(1L, aStack), + ItemList.Shape_Extruder_Casing.get(0L), + GT_ModHandler.getIC2Item("casingiron", tAmount * 2), + tAmount * 32, + 3 * tVoltageMultiplier); if (tAmount * 2 <= 64) GT_Values.RA.addAlloySmelterRecipe( - GT_Utility.copyAmount(2L, aStack), - ItemList.Shape_Mold_Casing.get(0L), - GT_ModHandler.getIC2Item("casingiron", tAmount * 3), - tAmount * 128, - 1 * tVoltageMultiplier); + GT_Utility.copyAmount(2L, aStack), + ItemList.Shape_Mold_Casing.get(0L), + GT_ModHandler.getIC2Item("casingiron", tAmount * 3), + tAmount * 128, + 1 * tVoltageMultiplier); if (tAmount * 31 <= 64) GT_Values.RA.addAlloySmelterRecipe( - GT_Utility.copyAmount(31L, aStack), - ItemList.Shape_Mold_Anvil.get(0L), - new ItemStack(Blocks.anvil, 1, 0), - tAmount * 512, - 4 * tVoltageMultiplier); + GT_Utility.copyAmount(31L, aStack), + ItemList.Shape_Mold_Anvil.get(0L), + new ItemStack(Blocks.anvil, 1, 0), + tAmount * 512, + 4 * tVoltageMultiplier); } case "Tin" -> { GT_Values.RA.addExtruderRecipe( - GT_Utility.copyAmount(2L, aStack), - ItemList.Shape_Extruder_Cell.get(0L), - ItemList.Cell_Empty.get(tAmount), - tAmount * 128, - 30); + GT_Utility.copyAmount(2L, aStack), + ItemList.Shape_Extruder_Cell.get(0L), + ItemList.Cell_Empty.get(tAmount), + tAmount * 128, + 30); if (tAmount * 2 <= 64) GT_Values.RA.addExtruderRecipe( - GT_Utility.copyAmount(1L, aStack), - ItemList.Shape_Extruder_Casing.get(0L), - GT_ModHandler.getIC2Item("casingtin", tAmount * 2), - tAmount * 32, - 3 * tVoltageMultiplier); + GT_Utility.copyAmount(1L, aStack), + ItemList.Shape_Extruder_Casing.get(0L), + GT_ModHandler.getIC2Item("casingtin", tAmount * 2), + tAmount * 32, + 3 * tVoltageMultiplier); if (tAmount * 2 <= 64) GT_Values.RA.addAlloySmelterRecipe( - GT_Utility.copyAmount(2L, aStack), - ItemList.Shape_Mold_Casing.get(0L), - GT_ModHandler.getIC2Item("casingtin", tAmount * 3), - tAmount * 128, - 1 * tVoltageMultiplier); + GT_Utility.copyAmount(2L, aStack), + ItemList.Shape_Mold_Casing.get(0L), + GT_ModHandler.getIC2Item("casingtin", tAmount * 3), + tAmount * 128, + 1 * tVoltageMultiplier); } case "Lead" -> { if (tAmount * 2 <= 64) GT_Values.RA.addExtruderRecipe( - GT_Utility.copyAmount(1L, aStack), - ItemList.Shape_Extruder_Casing.get(0L), - GT_ModHandler.getIC2Item("casinglead", tAmount * 2), - tAmount * 32, - 3 * tVoltageMultiplier); + GT_Utility.copyAmount(1L, aStack), + ItemList.Shape_Extruder_Casing.get(0L), + GT_ModHandler.getIC2Item("casinglead", tAmount * 2), + tAmount * 32, + 3 * tVoltageMultiplier); if (tAmount * 2 <= 64) GT_Values.RA.addAlloySmelterRecipe( - GT_Utility.copyAmount(2L, aStack), - ItemList.Shape_Mold_Casing.get(0L), - GT_ModHandler.getIC2Item("casinglead", tAmount * 3), - tAmount * 128, - 1 * tVoltageMultiplier); + GT_Utility.copyAmount(2L, aStack), + ItemList.Shape_Mold_Casing.get(0L), + GT_ModHandler.getIC2Item("casinglead", tAmount * 3), + tAmount * 128, + 1 * tVoltageMultiplier); } case "Copper", "AnnealedCopper" -> { if (tAmount * 2 <= 64) GT_Values.RA.addExtruderRecipe( - GT_Utility.copyAmount(1L, aStack), - ItemList.Shape_Extruder_Casing.get(0L), - GT_ModHandler.getIC2Item("casingcopper", tAmount * 2), - tAmount * 32, - 3 * tVoltageMultiplier); + GT_Utility.copyAmount(1L, aStack), + ItemList.Shape_Extruder_Casing.get(0L), + GT_ModHandler.getIC2Item("casingcopper", tAmount * 2), + tAmount * 32, + 3 * tVoltageMultiplier); if (tAmount * 2 <= 64) GT_Values.RA.addAlloySmelterRecipe( - GT_Utility.copyAmount(2L, aStack), - ItemList.Shape_Mold_Casing.get(0L), - GT_ModHandler.getIC2Item("casingcopper", tAmount * 3), - tAmount * 128, - 1 * tVoltageMultiplier); + GT_Utility.copyAmount(2L, aStack), + ItemList.Shape_Mold_Casing.get(0L), + GT_ModHandler.getIC2Item("casingcopper", tAmount * 3), + tAmount * 128, + 1 * tVoltageMultiplier); } case "Bronze" -> { if (tAmount * 2 <= 64) GT_Values.RA.addExtruderRecipe( - GT_Utility.copyAmount(1L, aStack), - ItemList.Shape_Extruder_Casing.get(0L), - GT_ModHandler.getIC2Item("casingbronze", tAmount * 2), - tAmount * 32, - 3 * tVoltageMultiplier); + GT_Utility.copyAmount(1L, aStack), + ItemList.Shape_Extruder_Casing.get(0L), + GT_ModHandler.getIC2Item("casingbronze", tAmount * 2), + tAmount * 32, + 3 * tVoltageMultiplier); if (tAmount * 2 <= 64) GT_Values.RA.addAlloySmelterRecipe( - GT_Utility.copyAmount(2L, aStack), - ItemList.Shape_Mold_Casing.get(0L), - GT_ModHandler.getIC2Item("casingbronze", tAmount * 3), - tAmount * 128, - 1 * tVoltageMultiplier); + GT_Utility.copyAmount(2L, aStack), + ItemList.Shape_Mold_Casing.get(0L), + GT_ModHandler.getIC2Item("casingbronze", tAmount * 3), + tAmount * 128, + 1 * tVoltageMultiplier); } case "Gold" -> { if (tAmount * 2 <= 64) GT_Values.RA.addExtruderRecipe( - GT_Utility.copyAmount(1L, aStack), - ItemList.Shape_Extruder_Casing.get(0L), - GT_ModHandler.getIC2Item("casinggold", tAmount * 2), - tAmount * 32, - 3 * tVoltageMultiplier); + GT_Utility.copyAmount(1L, aStack), + ItemList.Shape_Extruder_Casing.get(0L), + GT_ModHandler.getIC2Item("casinggold", tAmount * 2), + tAmount * 32, + 3 * tVoltageMultiplier); if (tAmount * 2 <= 64) GT_Values.RA.addAlloySmelterRecipe( - GT_Utility.copyAmount(2L, aStack), - ItemList.Shape_Mold_Casing.get(0L), - GT_ModHandler.getIC2Item("casinggold", tAmount * 3), - tAmount * 128, - 1 * tVoltageMultiplier); + GT_Utility.copyAmount(2L, aStack), + ItemList.Shape_Mold_Casing.get(0L), + GT_ModHandler.getIC2Item("casinggold", tAmount * 3), + tAmount * 128, + 1 * tVoltageMultiplier); } case "Polytetrafluoroethylene" -> // Recipe for cells from PTFE, why is it here? GT_Values.RA.addExtruderRecipe( - GT_Utility.copyAmount(1L, aStack), - ItemList.Shape_Extruder_Cell.get(0L), - ItemList.Cell_Empty.get(tAmount * 4), - tAmount * 128, - 30); + GT_Utility.copyAmount(1L, aStack), + ItemList.Shape_Extruder_Cell.get(0L), + ItemList.Cell_Empty.get(tAmount * 4), + tAmount * 128, + 30); } } } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingSlab.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingSlab.java index 9d2bad9783..6d4ed4cfe8 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingSlab.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingSlab.java @@ -18,18 +18,18 @@ public class ProcessingSlab implements gregtech.api.interfaces.IOreRecipeRegistr @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { if (aOreDictName.startsWith("slabWood")) { if (Railcraft.isModLoaded()) { GT_Values.RA.addChemicalBathRecipe( - GT_Utility.copyAmount(3L, aStack), - Materials.Creosote.getFluid(300L), - ItemList.RC_Tie_Wood.get(3L), - null, - null, - null, - 200, - 4); + GT_Utility.copyAmount(3L, aStack), + Materials.Creosote.getFluid(300L), + ItemList.RC_Tie_Wood.get(3L), + null, + null, + null, + 200, + 4); } } } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingStick.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingStick.java index 3e7470b5f7..a09e0ba0b2 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingStick.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingStick.java @@ -18,58 +18,58 @@ public class ProcessingStick implements gregtech.api.interfaces.IOreRecipeRegist @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.springSmall, aMaterial, 1L), - GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { " s ", "fPx", 'P', OrePrefixes.stick.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.springSmall, aMaterial, 1L), + GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { " s ", "fPx", 'P', OrePrefixes.stick.get(aMaterial) }); } if (!aMaterial.contains(gregtech.api.enums.SubTag.NO_WORKING)) { GT_Values.RA.addLatheRecipe( - aMaterial.contains(SubTag.CRYSTAL) ? GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 1L) - : GT_OreDictUnificator.get(OrePrefixes.ingot, aMaterial, 1L), - GT_OreDictUnificator.get(OrePrefixes.stick, aMaterial, 1L), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, aMaterial.mMacerateInto, 2L), - (int) Math.max(aMaterial.getMass() * 5L, 1L), - calculateRecipeEU(aMaterial, 16)); + aMaterial.contains(SubTag.CRYSTAL) ? GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 1L) + : GT_OreDictUnificator.get(OrePrefixes.ingot, aMaterial, 1L), + GT_OreDictUnificator.get(OrePrefixes.stick, aMaterial, 1L), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, aMaterial.mMacerateInto, 2L), + (int) Math.max(aMaterial.getMass() * 5L, 1L), + calculateRecipeEU(aMaterial, 16)); GT_Values.RA.addCutterRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.bolt, aMaterial, 4L), - null, - (int) Math.max(aMaterial.getMass() * 2L, 1L), - calculateRecipeEU(aMaterial, 4)); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.bolt, aMaterial, 4L), + null, + (int) Math.max(aMaterial.getMass() * 2L, 1L), + calculateRecipeEU(aMaterial, 4)); if ((aMaterial.mUnificatable) && (aMaterial.mMaterialInto == aMaterial)) { if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.stick, aMaterial, 2L), - GT_Proxy.tBits, - new Object[] { "s", "X", 'X', OrePrefixes.stickLong.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.stick, aMaterial, 2L), + GT_Proxy.tBits, + new Object[] { "s", "X", 'X', OrePrefixes.stickLong.get(aMaterial) }); GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.stick, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { "f ", " X", 'X', OrePrefixes.ingot.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.stick, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { "f ", " X", 'X', OrePrefixes.ingot.get(aMaterial) }); } } } if (!aMaterial.contains(gregtech.api.enums.SubTag.NO_SMASHING)) { GT_Values.RA.addBenderRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.springSmall, aMaterial, 2L), - 100, - calculateRecipeEU(aMaterial, 8)); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.springSmall, aMaterial, 2L), + 100, + calculateRecipeEU(aMaterial, 8)); GT_Values.RA.addForgeHammerRecipe( - GT_Utility.copyAmount(2L, aStack), - GT_OreDictUnificator.get(OrePrefixes.stickLong, aMaterial, 1L), - (int) Math.max(aMaterial.getMass(), 1L), - calculateRecipeEU(aMaterial, 16)); + GT_Utility.copyAmount(2L, aStack), + GT_OreDictUnificator.get(OrePrefixes.stickLong, aMaterial, 1L), + (int) Math.max(aMaterial.getMass(), 1L), + calculateRecipeEU(aMaterial, 16)); } GT_Values.RA.addAssemblerRecipe( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 1), - GT_Utility.getIntegratedCircuit(2), - Materials.SeedOil.getFluid(50L), - ItemList.FR_Stick.get(1L), - 16, - 8); + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 1), + GT_Utility.getIntegratedCircuit(2), + Materials.SeedOil.getFluid(50L), + ItemList.FR_Stick.get(1L), + 16, + 8); } } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingStickLong.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingStickLong.java index e586922891..29a872cc04 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingStickLong.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingStickLong.java @@ -18,45 +18,45 @@ public class ProcessingStickLong implements gregtech.api.interfaces.IOreRecipeRe @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.spring, aMaterial, 1L), - GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { " s ", "fSx", " S ", 'S', OrePrefixes.stickLong.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.spring, aMaterial, 1L), + GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { " s ", "fSx", " S ", 'S', OrePrefixes.stickLong.get(aMaterial) }); } if (!aMaterial.contains(SubTag.NO_WORKING)) { GT_Values.RA.addCutterRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.stick, aMaterial, 2L), - null, - (int) Math.max(aMaterial.getMass(), 1L), - calculateRecipeEU(aMaterial, 4)); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.stick, aMaterial, 2L), + null, + (int) Math.max(aMaterial.getMass(), 1L), + calculateRecipeEU(aMaterial, 4)); if (aMaterial.mUnificatable && (aMaterial.mMaterialInto == aMaterial)) { if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.stickLong, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { "sf", "G ", 'G', OrePrefixes.gemFlawless.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.stickLong, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { "sf", "G ", 'G', OrePrefixes.gemFlawless.get(aMaterial) }); GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.stickLong, aMaterial, 2L), - GT_Proxy.tBits, - new Object[] { "sf", "G ", 'G', OrePrefixes.gemExquisite.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.stickLong, aMaterial, 2L), + GT_Proxy.tBits, + new Object[] { "sf", "G ", 'G', OrePrefixes.gemExquisite.get(aMaterial) }); } } } if (!aMaterial.contains(SubTag.NO_SMASHING)) { GT_Values.RA.addBenderRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.spring, aMaterial, 1L), - 200, - calculateRecipeEU(aMaterial, 16)); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.spring, aMaterial, 1L), + 200, + calculateRecipeEU(aMaterial, 16)); if (aMaterial.mUnificatable && (aMaterial.mMaterialInto == aMaterial)) if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.stickLong, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { "ShS", 'S', OrePrefixes.stick.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.stickLong, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { "ShS", 'S', OrePrefixes.stick.get(aMaterial) }); } } } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingStone.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingStone.java index 7588139cfc..4936487f68 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingStone.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingStone.java @@ -24,206 +24,206 @@ public class ProcessingStone implements IOreRecipeRegistrator { @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { Block aBlock = GT_Utility.getBlockFromStack(aStack); switch (aMaterial.mName) { case "NULL": GT_Values.RA.addAssemblerRecipe( - GT_Utility.copyAmount(3L, aStack), - new ItemStack(Blocks.redstone_torch, 2), - Materials.Redstone.getMolten(144L), - new ItemStack(Items.repeater, 1), - 100, - 4); + GT_Utility.copyAmount(3L, aStack), + new ItemStack(Blocks.redstone_torch, 2), + Materials.Redstone.getMolten(144L), + new ItemStack(Items.repeater, 1), + 100, + 4); break; case "Sand": GT_ModHandler.addPulverisationRecipe( - GT_Utility.copyAmount(1L, aStack), - new ItemStack(Blocks.sand, 1, 0), - null, - 10, - false); + GT_Utility.copyAmount(1L, aStack), + new ItemStack(Blocks.sand, 1, 0), + null, + 10, + false); break; case "Endstone": GT_ModHandler.addPulverisationRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.dustImpure, Materials.Endstone, 1L), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Tungstate, 1L), - 5, - false); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.dustImpure, Materials.Endstone, 1L), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Tungstate, 1L), + 5, + false); break; case "Netherrack": GT_ModHandler.addPulverisationRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.dustImpure, Materials.Netherrack, 1L), - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Gold, 1L), - 5, - false); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.dustImpure, Materials.Netherrack, 1L), + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Gold, 1L), + 5, + false); break; case "NetherBrick": GT_Values.RA.addAssemblerRecipe( - GT_Utility.copyAmount(1L, aStack), - ItemList.Circuit_Integrated.getWithDamage(0L, 1L), - new ItemStack(Blocks.nether_brick_fence, 1), - 100, - 4); + GT_Utility.copyAmount(1L, aStack), + ItemList.Circuit_Integrated.getWithDamage(0L, 1L), + new ItemStack(Blocks.nether_brick_fence, 1), + 100, + 4); break; case "Obsidian": if (aBlock != Blocks.air) aBlock.setResistance(20.0F); GT_Values.RA.addAssemblerRecipe( - GT_Utility.copyAmount(1L, aStack), - ItemList.IC2_Compressed_Coal_Ball.get(8L), - ItemList.IC2_Compressed_Coal_Chunk.get(1L), - 400, - 4); - GT_ModHandler.addPulverisationRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_ModHandler.getModItem( - Railcraft.ID, - "cube.crushed.obsidian", - 1L, - GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 1L)), - GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 1L), - 10, - true); + GT_Utility.copyAmount(1L, aStack), + ItemList.IC2_Compressed_Coal_Ball.get(8L), + ItemList.IC2_Compressed_Coal_Chunk.get(1L), + 400, + 4); + GT_ModHandler.addPulverisationRecipe( + GT_Utility.copyAmount(1L, aStack), + GT_ModHandler.getModItem( + Railcraft.ID, + "cube.crushed.obsidian", + 1L, + GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 1L)), + GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 1L), + 10, + true); break; case "Concrete": GT_Values.RA.addCutterRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 1L), - null, - 100, - 30); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 1L), + null, + 100, + 30); GT_ModHandler.addPulverisationRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 1L)); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 1L)); break; case "Rhyolite": GT_ModHandler.addPulverisationRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.PotassiumFeldspar, 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Quartz, 1L), - 20, - false); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.PotassiumFeldspar, 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Quartz, 1L), + 20, + false); break; case "Komatiite": GT_ModHandler.addPulverisationRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Biotite, 1L), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Uranium, 1L), - 5, - false); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Biotite, 1L), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Uranium, 1L), + 5, + false); break; case "Dacite": case "Andesite": GT_ModHandler.addPulverisationRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconDioxide, 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Obsidian, 1L), - 20, - false); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconDioxide, 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Obsidian, 1L), + 20, + false); break; case "Gabbro": GT_ModHandler.addPulverisationRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.PotassiumFeldspar, 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Pyrite, 1L), - 20, - false); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.PotassiumFeldspar, 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Pyrite, 1L), + 20, + false); break; case "Eclogite": GT_ModHandler.addPulverisationRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconDioxide, 1L), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Rutile, 1L), - 10, - false); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconDioxide, 1L), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Rutile, 1L), + 10, + false); break; case "Soapstone": GT_ModHandler.addPulverisationRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.dustImpure, Materials.Talc, 1L), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Chromite, 1L), - 10, - false); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.dustImpure, Materials.Talc, 1L), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Chromite, 1L), + 10, + false); break; case "Greenschist": case "Blueschist": GT_ModHandler.addPulverisationRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Glauconite, 2L), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Basalt, 1L), - 100, - false); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Glauconite, 2L), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Basalt, 1L), + 100, + false); break; case "Gneiss": case "Migmatite": GT_ModHandler.addPulverisationRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconDioxide, 1L), - GT_OreDictUnificator.get(OrePrefixes.dustImpure, Materials.GraniteBlack, 1L), - 50, - false); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconDioxide, 1L), + GT_OreDictUnificator.get(OrePrefixes.dustImpure, Materials.GraniteBlack, 1L), + 50, + false); break; case "Redrock": case "Marble": GT_Values.RA.addCutterRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 1L), - null, - 200, - 30); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 1L), + null, + 200, + 30); case "Basalt": GT_Values.RA.addCutterRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_Utility.getIntegratedCircuit(3), - GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 1L), - null, - 200, - 30); + GT_Utility.copyAmount(1L, aStack), + GT_Utility.getIntegratedCircuit(3), + GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 1L), + null, + 200, + 30); case "Quartzite": GT_ModHandler.addPulverisationRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.dustImpure, aMaterial, 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 1L), - 10, - false); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.dustImpure, aMaterial, 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 1L), + 10, + false); break; case "Flint": GT_ModHandler.addPulverisationRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.dustImpure, aMaterial, 2L), - new ItemStack(Items.flint, 1), - 50, - false); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.dustImpure, aMaterial, 2L), + new ItemStack(Items.flint, 1), + 50, + false); break; case "GraniteBlack": GT_Values.RA.addCutterRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 1L), - null, - 200, - 30); - GT_ModHandler.addPulverisationRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.dustImpure, aMaterial, 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Thorium, 1L), - 1, - false); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 1L), + null, + 200, + 30); + GT_ModHandler.addPulverisationRecipe( + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.dustImpure, aMaterial, 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Thorium, 1L), + 1, + false); break; case "GraniteRed": GT_Values.RA.addCutterRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 1L), - null, - 200, - 30); - GT_ModHandler.addPulverisationRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.dustImpure, aMaterial, 1L), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Uranium, 1L), - 1, - false); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 1L), + null, + 200, + 30); + GT_ModHandler.addPulverisationRecipe( + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.dustImpure, aMaterial, 1L), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Uranium, 1L), + 1, + false); } } } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingStoneCobble.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingStoneCobble.java index fad83fe171..6b545f2d02 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingStoneCobble.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingStoneCobble.java @@ -19,31 +19,31 @@ public class ProcessingStoneCobble implements gregtech.api.interfaces.IOreRecipe @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { GT_Values.RA.addAssemblerRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 1L), - new ItemStack(Blocks.lever, 1), - 400, - 1); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 1L), + new ItemStack(Blocks.lever, 1), + 400, + 1); GT_Values.RA.addAssemblerRecipe( - GT_Utility.copyAmount(8L, aStack), - ItemList.Circuit_Integrated.getWithDamage(0L, 8L), - new ItemStack(Blocks.furnace, 1), - 400, - 4); + GT_Utility.copyAmount(8L, aStack), + ItemList.Circuit_Integrated.getWithDamage(0L, 8L), + new ItemStack(Blocks.furnace, 1), + 400, + 4); GT_Values.RA.addAssemblerRecipe( - GT_Utility.copyAmount(7L, aStack), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1L), - new ItemStack(Blocks.dropper, 1), - 400, - 4); + GT_Utility.copyAmount(7L, aStack), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1L), + new ItemStack(Blocks.dropper, 1), + 400, + 4); GT_Values.RA.addAssemblerRecipe( - GT_Utility.copyAmount(7L, aStack), - new ItemStack(Items.bow, 1, 0), - Materials.Redstone.getMolten(144L), - new ItemStack(Blocks.dispenser, 1), - 400, - 4); + GT_Utility.copyAmount(7L, aStack), + new ItemStack(Items.bow, 1, 0), + Materials.Redstone.getMolten(144L), + new ItemStack(Blocks.dispenser, 1), + 400, + 4); } } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingStoneVarious.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingStoneVarious.java index 1bab13c5b5..4dcc0ed73f 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingStoneVarious.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingStoneVarious.java @@ -23,20 +23,20 @@ public class ProcessingStoneVarious implements gregtech.api.interfaces.IOreRecip @Override public void registerOre(OrePrefixes aPrefix, gregtech.api.enums.Materials aMaterial, String aOreDictName, - String aModName, ItemStack aStack) { + String aModName, ItemStack aStack) { if (aPrefix == OrePrefixes.stoneSmooth) { GT_Values.RA.addAssemblerRecipe( - GT_Utility.copyAmount(1L, aStack), - ItemList.Circuit_Integrated.getWithDamage(0L, 1L), - new ItemStack(Blocks.stone_button, 1), - 100, - 4); + GT_Utility.copyAmount(1L, aStack), + ItemList.Circuit_Integrated.getWithDamage(0L, 1L), + new ItemStack(Blocks.stone_button, 1), + 100, + 4); GT_Values.RA.addAssemblerRecipe( - GT_Utility.copyAmount(2L, aStack), - ItemList.Circuit_Integrated.getWithDamage(0L, 2L), - new ItemStack(Blocks.stone_pressure_plate, 1), - 200, - 4); + GT_Utility.copyAmount(2L, aStack), + ItemList.Circuit_Integrated.getWithDamage(0L, 2L), + new ItemStack(Blocks.stone_pressure_plate, 1), + 200, + 4); } } } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingToolHead.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingToolHead.java index 178a5f9e77..c65b496649 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingToolHead.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingToolHead.java @@ -36,1217 +36,1141 @@ public class ProcessingToolHead implements gregtech.api.interfaces.IOreRecipeReg @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { boolean aSpecialRecipeReq1 = aMaterial.mUnificatable && (aMaterial.mMaterialInto == aMaterial) - && !aMaterial.contains(SubTag.NO_SMASHING); + && !aMaterial.contains(SubTag.NO_SMASHING); boolean aSpecialRecipeReq2 = aMaterial.mUnificatable && (aMaterial.mMaterialInto == aMaterial) - && !aMaterial.contains(SubTag.NO_WORKING); + && !aMaterial.contains(SubTag.NO_WORKING); boolean aNoWorking = aMaterial.contains(SubTag.NO_WORKING); switch (aPrefix) { case toolHeadArrow -> { if (aMaterial.mStandardMoltenFluid != null) if (!(aMaterial == Materials.AnnealedCopper || aMaterial == Materials.WroughtIron)) { GT_Values.RA.addFluidSolidifierRecipe( - ItemList.Shape_Mold_Arrow.get(0L), - aMaterial.getMolten(36L), - GT_Utility.copyAmount(1L, aStack), - 16, - 4); + ItemList.Shape_Mold_Arrow.get(0L), + aMaterial.getMolten(36L), + GT_Utility.copyAmount(1L, aStack), + 16, + 4); } if (aSpecialRecipeReq2) { GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.toolHeadArrow, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { "Xf", 'X', OrePrefixes.gemChipped.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.toolHeadArrow, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { "Xf", 'X', OrePrefixes.gemChipped.get(aMaterial) }); GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.toolHeadArrow, aMaterial, 3L), - GT_Proxy.tBits, - new Object[] { (aMaterial.contains(SubTag.WOOD) ? 115 : 'x') + "Pf", 'P', - OrePrefixes.plate.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.toolHeadArrow, aMaterial, 3L), + GT_Proxy.tBits, + new Object[] { (aMaterial.contains(SubTag.WOOD) ? 115 : 'x') + "Pf", 'P', + OrePrefixes.plate.get(aMaterial) }); } } case toolHeadAxe -> { GT_ModHandler.addShapelessCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.AXE, - 1, - aMaterial, - aMaterial.mHandleMaterial, - null), - new Object[] { aOreDictName, OrePrefixes.stick.get(aMaterial.mHandleMaterial) }); + GT_MetaGenerated_Tool_01.INSTANCE + .getToolWithStats(GT_MetaGenerated_Tool_01.AXE, 1, aMaterial, aMaterial.mHandleMaterial, null), + new Object[] { aOreDictName, OrePrefixes.stick.get(aMaterial.mHandleMaterial) }); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.stick, aMaterial.mHandleMaterial, 1L), - GT_OreDictUnificator.get(OrePrefixes.toolHeadAxe, aMaterial, 1L), - GT_Utility.getIntegratedCircuit(2) }, - GT_Values.NF, - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.AXE, - 1, - aMaterial, - aMaterial.mHandleMaterial, - null), - 200, - 120); - if (aSpecialRecipeReq1) GT_ModHandler.addCraftingRecipe( + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.stick, aMaterial.mHandleMaterial, 1L), GT_OreDictUnificator.get(OrePrefixes.toolHeadAxe, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { "PIh", "P ", "f ", 'P', OrePrefixes.plate.get(aMaterial), 'I', - OrePrefixes.ingot.get(aMaterial) }); + GT_Utility.getIntegratedCircuit(2) }, + GT_Values.NF, + GT_MetaGenerated_Tool_01.INSTANCE + .getToolWithStats(GT_MetaGenerated_Tool_01.AXE, 1, aMaterial, aMaterial.mHandleMaterial, null), + 200, + 120); + if (aSpecialRecipeReq1) GT_ModHandler.addCraftingRecipe( + GT_OreDictUnificator.get(OrePrefixes.toolHeadAxe, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { "PIh", "P ", "f ", 'P', OrePrefixes.plate.get(aMaterial), 'I', + OrePrefixes.ingot.get(aMaterial) }); if (!aNoWorking) GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.toolHeadAxe, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { "GG ", "G ", "f ", 'G', OrePrefixes.gem.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.toolHeadAxe, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { "GG ", "G ", "f ", 'G', OrePrefixes.gem.get(aMaterial) }); } case toolHeadBuzzSaw -> { GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.BUZZSAW_LV, - 1, - aMaterial, - Materials.Steel, - new long[] { 100000L, 32L, 1L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "PBM", "dXG", "SGP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_LV.get(1L), - 'S', OrePrefixes.screw.get(Materials.Steel), 'P', - OrePrefixes.plate.get(Materials.Steel), 'G', - OrePrefixes.gearGtSmall.get(Materials.Steel), 'B', - ItemList.Battery_RE_LV_Lithium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.BUZZSAW_LV, + 1, + aMaterial, + Materials.Steel, + new long[] { 100000L, 32L, 1L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "PBM", "dXG", "SGP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_LV.get(1L), 'S', + OrePrefixes.screw.get(Materials.Steel), 'P', OrePrefixes.plate.get(Materials.Steel), 'G', + OrePrefixes.gearGtSmall.get(Materials.Steel), 'B', ItemList.Battery_RE_LV_Lithium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.BUZZSAW_LV, - 1, - aMaterial, - Materials.Steel, - new long[] { 75000L, 32L, 1L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "PBM", "dXG", "SGP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_LV.get(1L), - 'S', OrePrefixes.screw.get(Materials.Steel), 'P', - OrePrefixes.plate.get(Materials.Steel), 'G', - OrePrefixes.gearGtSmall.get(Materials.Steel), 'B', - ItemList.Battery_RE_LV_Cadmium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.BUZZSAW_LV, + 1, + aMaterial, + Materials.Steel, + new long[] { 75000L, 32L, 1L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "PBM", "dXG", "SGP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_LV.get(1L), 'S', + OrePrefixes.screw.get(Materials.Steel), 'P', OrePrefixes.plate.get(Materials.Steel), 'G', + OrePrefixes.gearGtSmall.get(Materials.Steel), 'B', ItemList.Battery_RE_LV_Cadmium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.BUZZSAW_LV, - 1, - aMaterial, - Materials.Steel, - new long[] { 50000L, 32L, 1L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "PBM", "dXG", "SGP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_LV.get(1L), - 'S', OrePrefixes.screw.get(Materials.Steel), 'P', - OrePrefixes.plate.get(Materials.Steel), 'G', - OrePrefixes.gearGtSmall.get(Materials.Steel), 'B', - ItemList.Battery_RE_LV_Sodium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.BUZZSAW_LV, + 1, + aMaterial, + Materials.Steel, + new long[] { 50000L, 32L, 1L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "PBM", "dXG", "SGP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_LV.get(1L), 'S', + OrePrefixes.screw.get(Materials.Steel), 'P', OrePrefixes.plate.get(Materials.Steel), 'G', + OrePrefixes.gearGtSmall.get(Materials.Steel), 'B', ItemList.Battery_RE_LV_Sodium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.BUZZSAW_MV, - 1, - aMaterial, - Materials.Aluminium, - new long[] { 400000L, 128L, 2L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "PBM", "dXG", "SGP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_MV.get(1L), - 'S', OrePrefixes.screw.get(Materials.Aluminium), 'P', - OrePrefixes.plate.get(Materials.Aluminium), 'G', - OrePrefixes.gearGtSmall.get(Materials.Aluminium), 'B', - ItemList.Battery_RE_MV_Lithium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.BUZZSAW_MV, + 1, + aMaterial, + Materials.Aluminium, + new long[] { 400000L, 128L, 2L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "PBM", "dXG", "SGP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_MV.get(1L), 'S', + OrePrefixes.screw.get(Materials.Aluminium), 'P', OrePrefixes.plate.get(Materials.Aluminium), + 'G', OrePrefixes.gearGtSmall.get(Materials.Aluminium), 'B', + ItemList.Battery_RE_MV_Lithium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.BUZZSAW_MV, - 1, - aMaterial, - Materials.Aluminium, - new long[] { 300000L, 128L, 2L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "PBM", "dXG", "SGP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_MV.get(1L), - 'S', OrePrefixes.screw.get(Materials.Aluminium), 'P', - OrePrefixes.plate.get(Materials.Aluminium), 'G', - OrePrefixes.gearGtSmall.get(Materials.Aluminium), 'B', - ItemList.Battery_RE_MV_Cadmium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.BUZZSAW_MV, + 1, + aMaterial, + Materials.Aluminium, + new long[] { 300000L, 128L, 2L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "PBM", "dXG", "SGP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_MV.get(1L), 'S', + OrePrefixes.screw.get(Materials.Aluminium), 'P', OrePrefixes.plate.get(Materials.Aluminium), + 'G', OrePrefixes.gearGtSmall.get(Materials.Aluminium), 'B', + ItemList.Battery_RE_MV_Cadmium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.BUZZSAW_MV, - 1, - aMaterial, - Materials.Aluminium, - new long[] { 200000L, 128L, 2L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "PBM", "dXG", "SGP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_MV.get(1L), - 'S', OrePrefixes.screw.get(Materials.Aluminium), 'P', - OrePrefixes.plate.get(Materials.Aluminium), 'G', - OrePrefixes.gearGtSmall.get(Materials.Aluminium), 'B', - ItemList.Battery_RE_MV_Sodium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.BUZZSAW_MV, + 1, + aMaterial, + Materials.Aluminium, + new long[] { 200000L, 128L, 2L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "PBM", "dXG", "SGP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_MV.get(1L), 'S', + OrePrefixes.screw.get(Materials.Aluminium), 'P', OrePrefixes.plate.get(Materials.Aluminium), + 'G', OrePrefixes.gearGtSmall.get(Materials.Aluminium), 'B', + ItemList.Battery_RE_MV_Sodium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.BUZZSAW_HV, - 1, - aMaterial, - Materials.StainlessSteel, - new long[] { 1600000L, 512L, 3L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "PBM", "dXG", "SGP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_HV.get(1L), - 'S', OrePrefixes.screw.get(Materials.StainlessSteel), 'P', - OrePrefixes.plate.get(Materials.StainlessSteel), 'G', - OrePrefixes.gearGtSmall.get(Materials.StainlessSteel), 'B', - ItemList.Battery_RE_HV_Lithium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.BUZZSAW_HV, + 1, + aMaterial, + Materials.StainlessSteel, + new long[] { 1600000L, 512L, 3L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "PBM", "dXG", "SGP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_HV.get(1L), 'S', + OrePrefixes.screw.get(Materials.StainlessSteel), 'P', + OrePrefixes.plate.get(Materials.StainlessSteel), 'G', + OrePrefixes.gearGtSmall.get(Materials.StainlessSteel), 'B', + ItemList.Battery_RE_HV_Lithium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.BUZZSAW_HV, - 1, - aMaterial, - Materials.StainlessSteel, - new long[] { 1200000L, 512L, 3L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "PBM", "dXG", "SGP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_HV.get(1L), - 'S', OrePrefixes.screw.get(Materials.StainlessSteel), 'P', - OrePrefixes.plate.get(Materials.StainlessSteel), 'G', - OrePrefixes.gearGtSmall.get(Materials.StainlessSteel), 'B', - ItemList.Battery_RE_HV_Cadmium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.BUZZSAW_HV, + 1, + aMaterial, + Materials.StainlessSteel, + new long[] { 1200000L, 512L, 3L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "PBM", "dXG", "SGP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_HV.get(1L), 'S', + OrePrefixes.screw.get(Materials.StainlessSteel), 'P', + OrePrefixes.plate.get(Materials.StainlessSteel), 'G', + OrePrefixes.gearGtSmall.get(Materials.StainlessSteel), 'B', + ItemList.Battery_RE_HV_Cadmium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.BUZZSAW_HV, - 1, - aMaterial, - Materials.StainlessSteel, - new long[] { 800000L, 512L, 3L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "PBM", "dXG", "SGP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_HV.get(1L), - 'S', OrePrefixes.screw.get(Materials.StainlessSteel), 'P', - OrePrefixes.plate.get(Materials.StainlessSteel), 'G', - OrePrefixes.gearGtSmall.get(Materials.StainlessSteel), 'B', - ItemList.Battery_RE_HV_Sodium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.BUZZSAW_HV, + 1, + aMaterial, + Materials.StainlessSteel, + new long[] { 800000L, 512L, 3L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "PBM", "dXG", "SGP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_HV.get(1L), 'S', + OrePrefixes.screw.get(Materials.StainlessSteel), 'P', + OrePrefixes.plate.get(Materials.StainlessSteel), 'G', + OrePrefixes.gearGtSmall.get(Materials.StainlessSteel), 'B', + ItemList.Battery_RE_HV_Sodium.get(1L) }); if (aSpecialRecipeReq2) GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.toolHeadBuzzSaw, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { "wXh", "X X", "fXx", 'X', OrePrefixes.plate.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.toolHeadBuzzSaw, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { "wXh", "X X", "fXx", 'X', OrePrefixes.plate.get(aMaterial) }); } case toolHeadChainsaw -> { GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.CHAINSAW_LV, - 1, - aMaterial, - Materials.Steel, - new long[] { 100000L, 32L, 1L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_LV.get(1L), - 'S', OrePrefixes.screw.get(Materials.Steel), 'P', - OrePrefixes.plate.get(Materials.Steel), 'G', - OrePrefixes.gearGtSmall.get(Materials.Steel), 'B', - ItemList.Battery_RE_LV_Lithium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.CHAINSAW_LV, + 1, + aMaterial, + Materials.Steel, + new long[] { 100000L, 32L, 1L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_LV.get(1L), 'S', + OrePrefixes.screw.get(Materials.Steel), 'P', OrePrefixes.plate.get(Materials.Steel), 'G', + OrePrefixes.gearGtSmall.get(Materials.Steel), 'B', ItemList.Battery_RE_LV_Lithium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.CHAINSAW_LV, - 1, - aMaterial, - Materials.Steel, - new long[] { 75000L, 32L, 1L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_LV.get(1L), - 'S', OrePrefixes.screw.get(Materials.Steel), 'P', - OrePrefixes.plate.get(Materials.Steel), 'G', - OrePrefixes.gearGtSmall.get(Materials.Steel), 'B', - ItemList.Battery_RE_LV_Cadmium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.CHAINSAW_LV, + 1, + aMaterial, + Materials.Steel, + new long[] { 75000L, 32L, 1L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_LV.get(1L), 'S', + OrePrefixes.screw.get(Materials.Steel), 'P', OrePrefixes.plate.get(Materials.Steel), 'G', + OrePrefixes.gearGtSmall.get(Materials.Steel), 'B', ItemList.Battery_RE_LV_Cadmium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.CHAINSAW_LV, - 1, - aMaterial, - Materials.Steel, - new long[] { 50000L, 32L, 1L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_LV.get(1L), - 'S', OrePrefixes.screw.get(Materials.Steel), 'P', - OrePrefixes.plate.get(Materials.Steel), 'G', - OrePrefixes.gearGtSmall.get(Materials.Steel), 'B', - ItemList.Battery_RE_LV_Sodium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.CHAINSAW_LV, + 1, + aMaterial, + Materials.Steel, + new long[] { 50000L, 32L, 1L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_LV.get(1L), 'S', + OrePrefixes.screw.get(Materials.Steel), 'P', OrePrefixes.plate.get(Materials.Steel), 'G', + OrePrefixes.gearGtSmall.get(Materials.Steel), 'B', ItemList.Battery_RE_LV_Sodium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.CHAINSAW_MV, - 1, - aMaterial, - Materials.Aluminium, - new long[] { 400000L, 128L, 2L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_MV.get(1L), - 'S', OrePrefixes.screw.get(Materials.Aluminium), 'P', - OrePrefixes.plate.get(Materials.Aluminium), 'G', - OrePrefixes.gearGtSmall.get(Materials.Aluminium), 'B', - ItemList.Battery_RE_MV_Lithium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.CHAINSAW_MV, + 1, + aMaterial, + Materials.Aluminium, + new long[] { 400000L, 128L, 2L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_MV.get(1L), 'S', + OrePrefixes.screw.get(Materials.Aluminium), 'P', OrePrefixes.plate.get(Materials.Aluminium), + 'G', OrePrefixes.gearGtSmall.get(Materials.Aluminium), 'B', + ItemList.Battery_RE_MV_Lithium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.CHAINSAW_MV, - 1, - aMaterial, - Materials.Aluminium, - new long[] { 300000L, 128L, 2L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_MV.get(1L), - 'S', OrePrefixes.screw.get(Materials.Aluminium), 'P', - OrePrefixes.plate.get(Materials.Aluminium), 'G', - OrePrefixes.gearGtSmall.get(Materials.Aluminium), 'B', - ItemList.Battery_RE_MV_Cadmium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.CHAINSAW_MV, + 1, + aMaterial, + Materials.Aluminium, + new long[] { 300000L, 128L, 2L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_MV.get(1L), 'S', + OrePrefixes.screw.get(Materials.Aluminium), 'P', OrePrefixes.plate.get(Materials.Aluminium), + 'G', OrePrefixes.gearGtSmall.get(Materials.Aluminium), 'B', + ItemList.Battery_RE_MV_Cadmium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.CHAINSAW_MV, - 1, - aMaterial, - Materials.Aluminium, - new long[] { 200000L, 128L, 2L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_MV.get(1L), - 'S', OrePrefixes.screw.get(Materials.Aluminium), 'P', - OrePrefixes.plate.get(Materials.Aluminium), 'G', - OrePrefixes.gearGtSmall.get(Materials.Aluminium), 'B', - ItemList.Battery_RE_MV_Sodium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.CHAINSAW_MV, + 1, + aMaterial, + Materials.Aluminium, + new long[] { 200000L, 128L, 2L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_MV.get(1L), 'S', + OrePrefixes.screw.get(Materials.Aluminium), 'P', OrePrefixes.plate.get(Materials.Aluminium), + 'G', OrePrefixes.gearGtSmall.get(Materials.Aluminium), 'B', + ItemList.Battery_RE_MV_Sodium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.CHAINSAW_HV, - 1, - aMaterial, - Materials.StainlessSteel, - new long[] { 1600000L, 512L, 3L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_HV.get(1L), - 'S', OrePrefixes.screw.get(Materials.StainlessSteel), 'P', - OrePrefixes.plate.get(Materials.StainlessSteel), 'G', - OrePrefixes.gearGtSmall.get(Materials.StainlessSteel), 'B', - ItemList.Battery_RE_HV_Lithium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.CHAINSAW_HV, + 1, + aMaterial, + Materials.StainlessSteel, + new long[] { 1600000L, 512L, 3L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_HV.get(1L), 'S', + OrePrefixes.screw.get(Materials.StainlessSteel), 'P', + OrePrefixes.plate.get(Materials.StainlessSteel), 'G', + OrePrefixes.gearGtSmall.get(Materials.StainlessSteel), 'B', + ItemList.Battery_RE_HV_Lithium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.CHAINSAW_HV, - 1, - aMaterial, - Materials.StainlessSteel, - new long[] { 1200000L, 512L, 3L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_HV.get(1L), - 'S', OrePrefixes.screw.get(Materials.StainlessSteel), 'P', - OrePrefixes.plate.get(Materials.StainlessSteel), 'G', - OrePrefixes.gearGtSmall.get(Materials.StainlessSteel), 'B', - ItemList.Battery_RE_HV_Cadmium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.CHAINSAW_HV, + 1, + aMaterial, + Materials.StainlessSteel, + new long[] { 1200000L, 512L, 3L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_HV.get(1L), 'S', + OrePrefixes.screw.get(Materials.StainlessSteel), 'P', + OrePrefixes.plate.get(Materials.StainlessSteel), 'G', + OrePrefixes.gearGtSmall.get(Materials.StainlessSteel), 'B', + ItemList.Battery_RE_HV_Cadmium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.CHAINSAW_HV, - 1, - aMaterial, - Materials.StainlessSteel, - new long[] { 800000L, 512L, 3L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_HV.get(1L), - 'S', OrePrefixes.screw.get(Materials.StainlessSteel), 'P', - OrePrefixes.plate.get(Materials.StainlessSteel), 'G', - OrePrefixes.gearGtSmall.get(Materials.StainlessSteel), 'B', - ItemList.Battery_RE_HV_Sodium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.CHAINSAW_HV, + 1, + aMaterial, + Materials.StainlessSteel, + new long[] { 800000L, 512L, 3L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_HV.get(1L), 'S', + OrePrefixes.screw.get(Materials.StainlessSteel), 'P', + OrePrefixes.plate.get(Materials.StainlessSteel), 'G', + OrePrefixes.gearGtSmall.get(Materials.StainlessSteel), 'B', + ItemList.Battery_RE_HV_Sodium.get(1L) }); if (aSpecialRecipeReq2) GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.toolHeadChainsaw, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { "SRS", "XhX", "SRS", 'X', OrePrefixes.plate.get(aMaterial), 'S', - OrePrefixes.plate.get(Materials.Steel), 'R', OrePrefixes.ring.get(Materials.Steel) }); + GT_OreDictUnificator.get(OrePrefixes.toolHeadChainsaw, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { "SRS", "XhX", "SRS", 'X', OrePrefixes.plate.get(aMaterial), 'S', + OrePrefixes.plate.get(Materials.Steel), 'R', OrePrefixes.ring.get(Materials.Steel) }); } case toolHeadDrill -> { GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.DRILL_LV, - 1, - aMaterial, - Materials.Steel, - new long[] { 100_000L, 32L, 1L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_LV.get(1L), - 'S', OrePrefixes.screw.get(Materials.Steel), 'P', - OrePrefixes.plate.get(Materials.Steel), 'G', - OrePrefixes.gearGtSmall.get(Materials.Steel), 'B', - ItemList.Battery_RE_LV_Lithium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.DRILL_LV, + 1, + aMaterial, + Materials.Steel, + new long[] { 100_000L, 32L, 1L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_LV.get(1L), 'S', + OrePrefixes.screw.get(Materials.Steel), 'P', OrePrefixes.plate.get(Materials.Steel), 'G', + OrePrefixes.gearGtSmall.get(Materials.Steel), 'B', ItemList.Battery_RE_LV_Lithium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.DRILL_LV, - 1, - aMaterial, - Materials.Steel, - new long[] { 75_000L, 32L, 1L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_LV.get(1L), - 'S', OrePrefixes.screw.get(Materials.Steel), 'P', - OrePrefixes.plate.get(Materials.Steel), 'G', - OrePrefixes.gearGtSmall.get(Materials.Steel), 'B', - ItemList.Battery_RE_LV_Cadmium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.DRILL_LV, + 1, + aMaterial, + Materials.Steel, + new long[] { 75_000L, 32L, 1L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_LV.get(1L), 'S', + OrePrefixes.screw.get(Materials.Steel), 'P', OrePrefixes.plate.get(Materials.Steel), 'G', + OrePrefixes.gearGtSmall.get(Materials.Steel), 'B', ItemList.Battery_RE_LV_Cadmium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.DRILL_LV, - 1, - aMaterial, - Materials.Steel, - new long[] { 50_000L, 32L, 1L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_LV.get(1L), - 'S', OrePrefixes.screw.get(Materials.Steel), 'P', - OrePrefixes.plate.get(Materials.Steel), 'G', - OrePrefixes.gearGtSmall.get(Materials.Steel), 'B', - ItemList.Battery_RE_LV_Sodium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.DRILL_LV, + 1, + aMaterial, + Materials.Steel, + new long[] { 50_000L, 32L, 1L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_LV.get(1L), 'S', + OrePrefixes.screw.get(Materials.Steel), 'P', OrePrefixes.plate.get(Materials.Steel), 'G', + OrePrefixes.gearGtSmall.get(Materials.Steel), 'B', ItemList.Battery_RE_LV_Sodium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.DRILL_MV, - 1, - aMaterial, - Materials.Aluminium, - new long[] { 400_000L, 128L, 2L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_MV.get(1L), - 'S', OrePrefixes.screw.get(Materials.Aluminium), 'P', - OrePrefixes.plate.get(Materials.Aluminium), 'G', - OrePrefixes.gearGtSmall.get(Materials.Aluminium), 'B', - ItemList.Battery_RE_MV_Lithium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.DRILL_MV, + 1, + aMaterial, + Materials.Aluminium, + new long[] { 400_000L, 128L, 2L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_MV.get(1L), 'S', + OrePrefixes.screw.get(Materials.Aluminium), 'P', OrePrefixes.plate.get(Materials.Aluminium), + 'G', OrePrefixes.gearGtSmall.get(Materials.Aluminium), 'B', + ItemList.Battery_RE_MV_Lithium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.DRILL_MV, - 1, - aMaterial, - Materials.Aluminium, - new long[] { 300_000L, 128L, 2L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_MV.get(1L), - 'S', OrePrefixes.screw.get(Materials.Aluminium), 'P', - OrePrefixes.plate.get(Materials.Aluminium), 'G', - OrePrefixes.gearGtSmall.get(Materials.Aluminium), 'B', - ItemList.Battery_RE_MV_Cadmium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.DRILL_MV, + 1, + aMaterial, + Materials.Aluminium, + new long[] { 300_000L, 128L, 2L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_MV.get(1L), 'S', + OrePrefixes.screw.get(Materials.Aluminium), 'P', OrePrefixes.plate.get(Materials.Aluminium), + 'G', OrePrefixes.gearGtSmall.get(Materials.Aluminium), 'B', + ItemList.Battery_RE_MV_Cadmium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.DRILL_MV, - 1, - aMaterial, - Materials.Aluminium, - new long[] { 200_000L, 128L, 2L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_MV.get(1L), - 'S', OrePrefixes.screw.get(Materials.Aluminium), 'P', - OrePrefixes.plate.get(Materials.Aluminium), 'G', - OrePrefixes.gearGtSmall.get(Materials.Aluminium), 'B', - ItemList.Battery_RE_MV_Sodium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.DRILL_MV, + 1, + aMaterial, + Materials.Aluminium, + new long[] { 200_000L, 128L, 2L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_MV.get(1L), 'S', + OrePrefixes.screw.get(Materials.Aluminium), 'P', OrePrefixes.plate.get(Materials.Aluminium), + 'G', OrePrefixes.gearGtSmall.get(Materials.Aluminium), 'B', + ItemList.Battery_RE_MV_Sodium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.DRILL_HV, - 1, - aMaterial, - Materials.StainlessSteel, - new long[] { 1_600_000L, 512L, 3L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_HV.get(1L), - 'S', OrePrefixes.screw.get(Materials.StainlessSteel), 'P', - OrePrefixes.plate.get(Materials.StainlessSteel), 'G', - OrePrefixes.gearGtSmall.get(Materials.StainlessSteel), 'B', - ItemList.Battery_RE_HV_Lithium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.DRILL_HV, + 1, + aMaterial, + Materials.StainlessSteel, + new long[] { 1_600_000L, 512L, 3L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_HV.get(1L), 'S', + OrePrefixes.screw.get(Materials.StainlessSteel), 'P', + OrePrefixes.plate.get(Materials.StainlessSteel), 'G', + OrePrefixes.gearGtSmall.get(Materials.StainlessSteel), 'B', + ItemList.Battery_RE_HV_Lithium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.DRILL_HV, - 1, - aMaterial, - Materials.StainlessSteel, - new long[] { 1_200_000L, 512L, 3L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_HV.get(1L), - 'S', OrePrefixes.screw.get(Materials.StainlessSteel), 'P', - OrePrefixes.plate.get(Materials.StainlessSteel), 'G', - OrePrefixes.gearGtSmall.get(Materials.StainlessSteel), 'B', - ItemList.Battery_RE_HV_Cadmium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.DRILL_HV, + 1, + aMaterial, + Materials.StainlessSteel, + new long[] { 1_200_000L, 512L, 3L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_HV.get(1L), 'S', + OrePrefixes.screw.get(Materials.StainlessSteel), 'P', + OrePrefixes.plate.get(Materials.StainlessSteel), 'G', + OrePrefixes.gearGtSmall.get(Materials.StainlessSteel), 'B', + ItemList.Battery_RE_HV_Cadmium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.DRILL_HV, - 1, - aMaterial, - Materials.StainlessSteel, - new long[] { 800_000L, 512L, 3L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_HV.get(1L), - 'S', OrePrefixes.screw.get(Materials.StainlessSteel), 'P', - OrePrefixes.plate.get(Materials.StainlessSteel), 'G', - OrePrefixes.gearGtSmall.get(Materials.StainlessSteel), 'B', - ItemList.Battery_RE_HV_Sodium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.DRILL_HV, + 1, + aMaterial, + Materials.StainlessSteel, + new long[] { 800_000L, 512L, 3L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_HV.get(1L), 'S', + OrePrefixes.screw.get(Materials.StainlessSteel), 'P', + OrePrefixes.plate.get(Materials.StainlessSteel), 'G', + OrePrefixes.gearGtSmall.get(Materials.StainlessSteel), 'B', + ItemList.Battery_RE_HV_Sodium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.JACKHAMMER, - 1, - aMaterial, - Materials.StainlessSteel, - new long[] { 1_600_000L, 512L, 3L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "SXd", "PRP", "MPB", 'X', OrePrefixes.stickLong.get(aMaterial), 'M', - ItemList.Electric_Piston_HV.get(1L), 'S', - OrePrefixes.screw.get(Materials.StainlessSteel), 'P', - OrePrefixes.plate.get(Materials.StainlessSteel), 'R', - OrePrefixes.spring.get(Materials.StainlessSteel), 'B', - ItemList.Battery_RE_HV_Lithium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.JACKHAMMER, + 1, + aMaterial, + Materials.StainlessSteel, + new long[] { 1_600_000L, 512L, 3L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "SXd", "PRP", "MPB", 'X', OrePrefixes.stickLong.get(aMaterial), 'M', + ItemList.Electric_Piston_HV.get(1L), 'S', OrePrefixes.screw.get(Materials.StainlessSteel), 'P', + OrePrefixes.plate.get(Materials.StainlessSteel), 'R', + OrePrefixes.spring.get(Materials.StainlessSteel), 'B', + ItemList.Battery_RE_HV_Lithium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.JACKHAMMER, - 1, - aMaterial, - Materials.StainlessSteel, - new long[] { 1_200_000L, 512L, 3L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "SXd", "PRP", "MPB", 'X', OrePrefixes.stickLong.get(aMaterial), 'M', - ItemList.Electric_Piston_HV.get(1L), 'S', - OrePrefixes.screw.get(Materials.StainlessSteel), 'P', - OrePrefixes.plate.get(Materials.StainlessSteel), 'R', - OrePrefixes.spring.get(Materials.StainlessSteel), 'B', - ItemList.Battery_RE_HV_Cadmium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.JACKHAMMER, + 1, + aMaterial, + Materials.StainlessSteel, + new long[] { 1_200_000L, 512L, 3L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "SXd", "PRP", "MPB", 'X', OrePrefixes.stickLong.get(aMaterial), 'M', + ItemList.Electric_Piston_HV.get(1L), 'S', OrePrefixes.screw.get(Materials.StainlessSteel), 'P', + OrePrefixes.plate.get(Materials.StainlessSteel), 'R', + OrePrefixes.spring.get(Materials.StainlessSteel), 'B', + ItemList.Battery_RE_HV_Cadmium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.JACKHAMMER, - 1, - aMaterial, - Materials.StainlessSteel, - new long[] { 800_000L, 512L, 3L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "SXd", "PRP", "MPB", 'X', OrePrefixes.stickLong.get(aMaterial), 'M', - ItemList.Electric_Piston_HV.get(1L), 'S', - OrePrefixes.screw.get(Materials.StainlessSteel), 'P', - OrePrefixes.plate.get(Materials.StainlessSteel), 'R', - OrePrefixes.spring.get(Materials.StainlessSteel), 'B', - ItemList.Battery_RE_HV_Sodium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.JACKHAMMER, + 1, + aMaterial, + Materials.StainlessSteel, + new long[] { 800_000L, 512L, 3L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "SXd", "PRP", "MPB", 'X', OrePrefixes.stickLong.get(aMaterial), 'M', + ItemList.Electric_Piston_HV.get(1L), 'S', OrePrefixes.screw.get(Materials.StainlessSteel), 'P', + OrePrefixes.plate.get(Materials.StainlessSteel), 'R', + OrePrefixes.spring.get(Materials.StainlessSteel), 'B', ItemList.Battery_RE_HV_Sodium.get(1L) }); if (aSpecialRecipeReq2) { GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.toolHeadDrill, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { "XSX", "XSX", "ShS", 'X', OrePrefixes.plate.get(aMaterial), 'S', - OrePrefixes.plate.get(Materials.Steel) }); + GT_OreDictUnificator.get(OrePrefixes.toolHeadDrill, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { "XSX", "XSX", "ShS", 'X', OrePrefixes.plate.get(aMaterial), 'S', + OrePrefixes.plate.get(Materials.Steel) }); if (aMaterial.getMolten(1) != null) { GT_Values.RA.addFluidSolidifierRecipe( - ItemList.Shape_Mold_ToolHeadDrill.get(0), - aMaterial.getMolten(144 * 4), - GT_OreDictUnificator.get(OrePrefixes.toolHeadDrill, aMaterial, 1L), - 5 * 20, - calculateRecipeEU(aMaterial, (int) GT_Values.VP[2])); + ItemList.Shape_Mold_ToolHeadDrill.get(0), + aMaterial.getMolten(144 * 4), + GT_OreDictUnificator.get(OrePrefixes.toolHeadDrill, aMaterial, 1L), + 5 * 20, + calculateRecipeEU(aMaterial, (int) GT_Values.VP[2])); } if (aMaterial.getIngots(1) != null) { GT_Values.RA.addExtruderRecipe( - aMaterial.getIngots(4), - ItemList.Shape_Extruder_ToolHeadDrill.get(0), - GT_OreDictUnificator.get(OrePrefixes.toolHeadDrill, aMaterial, 1L), - 5 * 20, - calculateRecipeEU(aMaterial, (int) GT_Values.VP[2])); + aMaterial.getIngots(4), + ItemList.Shape_Extruder_ToolHeadDrill.get(0), + GT_OreDictUnificator.get(OrePrefixes.toolHeadDrill, aMaterial, 1L), + 5 * 20, + calculateRecipeEU(aMaterial, (int) GT_Values.VP[2])); } } } case toolHeadFile -> { if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { GT_ModHandler.addShapelessCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.FILE, + 1, + aMaterial, + aMaterial.mHandleMaterial, + null), + new Object[] { aOreDictName, OrePrefixes.stick.get(aMaterial.mHandleMaterial) }); + + if ((!aMaterial.contains(SubTag.NO_SMASHING)) && (!aMaterial.contains(SubTag.BOUNCY))) { + if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { + GT_ModHandler.addCraftingRecipe( + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( GT_MetaGenerated_Tool_01.FILE, 1, aMaterial, aMaterial.mHandleMaterial, null), - new Object[] { aOreDictName, OrePrefixes.stick.get(aMaterial.mHandleMaterial) }); - - if ((!aMaterial.contains(SubTag.NO_SMASHING)) && (!aMaterial.contains(SubTag.BOUNCY))) { - if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { - GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.FILE, - 1, - aMaterial, - aMaterial.mHandleMaterial, - null), - GT_ModHandler.RecipeBits.MIRRORED - | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "P", "P", "S", 'P', OrePrefixes.plate.get(aMaterial), 'S', - OrePrefixes.stick.get(aMaterial.mHandleMaterial) }); + GT_ModHandler.RecipeBits.MIRRORED | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "P", "P", "S", 'P', OrePrefixes.plate.get(aMaterial), 'S', + OrePrefixes.stick.get(aMaterial.mHandleMaterial) }); } } } GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.stick, aMaterial.mHandleMaterial, 1L), - GT_OreDictUnificator.get(OrePrefixes.toolHeadFile, aMaterial, 1L), - GT_Utility.getIntegratedCircuit(15) }, - GT_Values.NF, - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.FILE, - 1, - aMaterial, - aMaterial.mHandleMaterial, - null), - 200, - calculateRecipeEU(aMaterial, 120)); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.stick, aMaterial.mHandleMaterial, 1L), + GT_OreDictUnificator.get(OrePrefixes.toolHeadFile, aMaterial, 1L), + GT_Utility.getIntegratedCircuit(15) }, + GT_Values.NF, + GT_MetaGenerated_Tool_01.INSTANCE + .getToolWithStats(GT_MetaGenerated_Tool_01.FILE, 1, aMaterial, aMaterial.mHandleMaterial, null), + 200, + calculateRecipeEU(aMaterial, 120)); } case toolHeadHoe -> { if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { GT_ModHandler.addShapelessCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.HOE, - 1, - aMaterial, - aMaterial.mHandleMaterial, - null), - new Object[] { aOreDictName, OrePrefixes.stick.get(aMaterial.mHandleMaterial) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.HOE, + 1, + aMaterial, + aMaterial.mHandleMaterial, + null), + new Object[] { aOreDictName, OrePrefixes.stick.get(aMaterial.mHandleMaterial) }); } GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.stick, aMaterial.mHandleMaterial, 1L), - GT_OreDictUnificator.get(OrePrefixes.toolHeadHoe, aMaterial, 1L), - GT_Utility.getIntegratedCircuit(16) }, - GT_Values.NF, - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.HOE, - 1, - aMaterial, - aMaterial.mHandleMaterial, - null), - 200, - calculateRecipeEU(aMaterial, 120)); - if (aSpecialRecipeReq1) GT_ModHandler.addCraftingRecipe( + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.stick, aMaterial.mHandleMaterial, 1L), GT_OreDictUnificator.get(OrePrefixes.toolHeadHoe, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { "PIh", "f ", 'P', OrePrefixes.plate.get(aMaterial), 'I', - OrePrefixes.ingot.get(aMaterial) }); + GT_Utility.getIntegratedCircuit(16) }, + GT_Values.NF, + GT_MetaGenerated_Tool_01.INSTANCE + .getToolWithStats(GT_MetaGenerated_Tool_01.HOE, 1, aMaterial, aMaterial.mHandleMaterial, null), + 200, + calculateRecipeEU(aMaterial, 120)); + if (aSpecialRecipeReq1) GT_ModHandler.addCraftingRecipe( + GT_OreDictUnificator.get(OrePrefixes.toolHeadHoe, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { "PIh", "f ", 'P', OrePrefixes.plate.get(aMaterial), 'I', + OrePrefixes.ingot.get(aMaterial) }); if (!aNoWorking) GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.toolHeadHoe, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { "GG ", "f ", " ", 'G', OrePrefixes.gem.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.toolHeadHoe, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { "GG ", "f ", " ", 'G', OrePrefixes.gem.get(aMaterial) }); } case toolHeadPickaxe -> { if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { GT_ModHandler.addShapelessCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.PICKAXE, - 1, - aMaterial, - aMaterial.mHandleMaterial, - null), - new Object[] { aOreDictName, OrePrefixes.stick.get(aMaterial.mHandleMaterial) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.PICKAXE, + 1, + aMaterial, + aMaterial.mHandleMaterial, + null), + new Object[] { aOreDictName, OrePrefixes.stick.get(aMaterial.mHandleMaterial) }); if (aSpecialRecipeReq1) GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.toolHeadPickaxe, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { "PII", "f h", 'P', OrePrefixes.plate.get(aMaterial), 'I', - OrePrefixes.ingot.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.toolHeadPickaxe, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { "PII", "f h", 'P', OrePrefixes.plate.get(aMaterial), 'I', + OrePrefixes.ingot.get(aMaterial) }); if (!aNoWorking) GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.toolHeadPickaxe, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { "GGG", "f ", 'G', OrePrefixes.gem.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.toolHeadPickaxe, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { "GGG", "f ", 'G', OrePrefixes.gem.get(aMaterial) }); } GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.stick, aMaterial.mHandleMaterial, 1L), - GT_OreDictUnificator.get(OrePrefixes.toolHeadPickaxe, aMaterial, 1L), - GT_Utility.getIntegratedCircuit(5) }, - GT_Values.NF, - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.PICKAXE, - 1, - aMaterial, - aMaterial.mHandleMaterial, - null), - 200, - 120); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.stick, aMaterial.mHandleMaterial, 1L), + GT_OreDictUnificator.get(OrePrefixes.toolHeadPickaxe, aMaterial, 1L), + GT_Utility.getIntegratedCircuit(5) }, + GT_Values.NF, + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.PICKAXE, + 1, + aMaterial, + aMaterial.mHandleMaterial, + null), + 200, + 120); } case toolHeadPlow -> { if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { GT_ModHandler.addShapelessCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.PLOW, - 1, - aMaterial, - aMaterial.mHandleMaterial, - null), - new Object[] { aOreDictName, OrePrefixes.stick.get(aMaterial.mHandleMaterial) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.PLOW, + 1, + aMaterial, + aMaterial.mHandleMaterial, + null), + new Object[] { aOreDictName, OrePrefixes.stick.get(aMaterial.mHandleMaterial) }); if (aSpecialRecipeReq1) GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.toolHeadPlow, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { "PP", "PP", "hf", 'P', OrePrefixes.plate.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.toolHeadPlow, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { "PP", "PP", "hf", 'P', OrePrefixes.plate.get(aMaterial) }); if (!aNoWorking) GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.toolHeadPlow, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { "GG", "GG", " f", 'G', OrePrefixes.gem.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.toolHeadPlow, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { "GG", "GG", " f", 'G', OrePrefixes.gem.get(aMaterial) }); } GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.stick, aMaterial.mHandleMaterial, 1L), - GT_OreDictUnificator.get(OrePrefixes.toolHeadPlow, aMaterial, 1L), - GT_Utility.getIntegratedCircuit(6) }, - GT_Values.NF, - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.PLOW, - 1, - aMaterial, - aMaterial.mHandleMaterial, - null), - 200, - calculateRecipeEU(aMaterial, 120)); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.stick, aMaterial.mHandleMaterial, 1L), + GT_OreDictUnificator.get(OrePrefixes.toolHeadPlow, aMaterial, 1L), + GT_Utility.getIntegratedCircuit(6) }, + GT_Values.NF, + GT_MetaGenerated_Tool_01.INSTANCE + .getToolWithStats(GT_MetaGenerated_Tool_01.PLOW, 1, aMaterial, aMaterial.mHandleMaterial, null), + 200, + calculateRecipeEU(aMaterial, 120)); } case toolHeadSaw -> { if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { GT_ModHandler.addShapelessCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.SAW, - 1, - aMaterial, - aMaterial.mHandleMaterial, - null), - new Object[] { aOreDictName, OrePrefixes.stick.get(aMaterial.mHandleMaterial) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.SAW, + 1, + aMaterial, + aMaterial.mHandleMaterial, + null), + new Object[] { aOreDictName, OrePrefixes.stick.get(aMaterial.mHandleMaterial) }); if (aSpecialRecipeReq1) GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.toolHeadSaw, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { "PP ", "fh ", 'P', OrePrefixes.plate.get(aMaterial), 'I', - OrePrefixes.ingot.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.toolHeadSaw, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { "PP ", "fh ", 'P', OrePrefixes.plate.get(aMaterial), 'I', + OrePrefixes.ingot.get(aMaterial) }); if (!aNoWorking) GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.toolHeadSaw, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { "GGf", 'G', OrePrefixes.gem.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.toolHeadSaw, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { "GGf", 'G', OrePrefixes.gem.get(aMaterial) }); } GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.stick, aMaterial.mHandleMaterial, 1L), - GT_OreDictUnificator.get(OrePrefixes.toolHeadSaw, aMaterial, 1L), - GT_Utility.getIntegratedCircuit(7) }, - GT_Values.NF, - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.SAW, - 1, - aMaterial, - aMaterial.mHandleMaterial, - null), - 200, - calculateRecipeEU(aMaterial, 120)); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.stick, aMaterial.mHandleMaterial, 1L), + GT_OreDictUnificator.get(OrePrefixes.toolHeadSaw, aMaterial, 1L), + GT_Utility.getIntegratedCircuit(7) }, + GT_Values.NF, + GT_MetaGenerated_Tool_01.INSTANCE + .getToolWithStats(GT_MetaGenerated_Tool_01.SAW, 1, aMaterial, aMaterial.mHandleMaterial, null), + 200, + calculateRecipeEU(aMaterial, 120)); } case toolHeadSense -> { if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { GT_ModHandler.addShapelessCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.SENSE, - 1, - aMaterial, - aMaterial.mHandleMaterial, - null), - new Object[] { aOreDictName, OrePrefixes.stick.get(aMaterial.mHandleMaterial) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.SENSE, + 1, + aMaterial, + aMaterial.mHandleMaterial, + null), + new Object[] { aOreDictName, OrePrefixes.stick.get(aMaterial.mHandleMaterial) }); if (aSpecialRecipeReq1) GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.toolHeadSense, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { "PPI", "hf ", 'P', OrePrefixes.plate.get(aMaterial), 'I', - OrePrefixes.ingot.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.toolHeadSense, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { "PPI", "hf ", 'P', OrePrefixes.plate.get(aMaterial), 'I', + OrePrefixes.ingot.get(aMaterial) }); if (!aNoWorking) GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.toolHeadSense, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { "GGG", " f ", " ", 'G', OrePrefixes.gem.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.toolHeadSense, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { "GGG", " f ", " ", 'G', OrePrefixes.gem.get(aMaterial) }); } GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.stick, aMaterial.mHandleMaterial, 1L), - GT_OreDictUnificator.get(OrePrefixes.toolHeadSense, aMaterial, 1L), - GT_Utility.getIntegratedCircuit(8) }, - GT_Values.NF, - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.SENSE, - 1, - aMaterial, - aMaterial.mHandleMaterial, - null), - 200, - calculateRecipeEU(aMaterial, 120)); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.stick, aMaterial.mHandleMaterial, 1L), + GT_OreDictUnificator.get(OrePrefixes.toolHeadSense, aMaterial, 1L), + GT_Utility.getIntegratedCircuit(8) }, + GT_Values.NF, + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.SENSE, + 1, + aMaterial, + aMaterial.mHandleMaterial, + null), + 200, + calculateRecipeEU(aMaterial, 120)); } case toolHeadShovel -> { GT_ModHandler.addShapelessCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.SHOVEL, - 1, - aMaterial, - aMaterial.mHandleMaterial, - null), - new Object[] { aOreDictName, OrePrefixes.stick.get(aMaterial.mHandleMaterial) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.SHOVEL, + 1, + aMaterial, + aMaterial.mHandleMaterial, + null), + new Object[] { aOreDictName, OrePrefixes.stick.get(aMaterial.mHandleMaterial) }); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.stick, aMaterial.mHandleMaterial, 1L), - GT_OreDictUnificator.get(OrePrefixes.toolHeadShovel, aMaterial, 1L), - GT_Utility.getIntegratedCircuit(9) }, - GT_Values.NF, - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.SHOVEL, - 1, - aMaterial, - aMaterial.mHandleMaterial, - null), - 200, - 120); - if (aSpecialRecipeReq1) GT_ModHandler.addCraftingRecipe( + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.stick, aMaterial.mHandleMaterial, 1L), GT_OreDictUnificator.get(OrePrefixes.toolHeadShovel, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { "fPh", 'P', OrePrefixes.plate.get(aMaterial), 'I', - OrePrefixes.ingot.get(aMaterial) }); + GT_Utility.getIntegratedCircuit(9) }, + GT_Values.NF, + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.SHOVEL, + 1, + aMaterial, + aMaterial.mHandleMaterial, + null), + 200, + 120); + if (aSpecialRecipeReq1) GT_ModHandler.addCraftingRecipe( + GT_OreDictUnificator.get(OrePrefixes.toolHeadShovel, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { "fPh", 'P', OrePrefixes.plate.get(aMaterial), 'I', + OrePrefixes.ingot.get(aMaterial) }); if (!aNoWorking) GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.toolHeadShovel, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { "fG", 'G', OrePrefixes.gem.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.toolHeadShovel, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { "fG", 'G', OrePrefixes.gem.get(aMaterial) }); } case toolHeadSword -> { if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { GT_ModHandler.addShapelessCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.SWORD, - 1, - aMaterial, - aMaterial.mHandleMaterial, - null), - new Object[] { aOreDictName, OrePrefixes.stick.get(aMaterial.mHandleMaterial) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.SWORD, + 1, + aMaterial, + aMaterial.mHandleMaterial, + null), + new Object[] { aOreDictName, OrePrefixes.stick.get(aMaterial.mHandleMaterial) }); if (aSpecialRecipeReq1) GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.toolHeadSword, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { " P ", "fPh", 'P', OrePrefixes.plate.get(aMaterial), 'I', - OrePrefixes.ingot.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.toolHeadSword, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { " P ", "fPh", 'P', OrePrefixes.plate.get(aMaterial), 'I', + OrePrefixes.ingot.get(aMaterial) }); if (!aNoWorking) GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.toolHeadSword, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { " G", "fG", 'G', OrePrefixes.gem.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.toolHeadSword, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { " G", "fG", 'G', OrePrefixes.gem.get(aMaterial) }); } GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.stick, aMaterial.mHandleMaterial, 1L), - GT_OreDictUnificator.get(OrePrefixes.toolHeadSword, aMaterial, 1L), - GT_Utility.getIntegratedCircuit(10) }, - GT_Values.NF, - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.SWORD, - 1, - aMaterial, - aMaterial.mHandleMaterial, - null), - 200, - calculateRecipeEU(aMaterial, 120)); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.stick, aMaterial.mHandleMaterial, 1L), + GT_OreDictUnificator.get(OrePrefixes.toolHeadSword, aMaterial, 1L), + GT_Utility.getIntegratedCircuit(10) }, + GT_Values.NF, + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.SWORD, + 1, + aMaterial, + aMaterial.mHandleMaterial, + null), + 200, + calculateRecipeEU(aMaterial, 120)); } case toolHeadUniversalSpade -> { GT_ModHandler.addShapelessCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.UNIVERSALSPADE, - 1, - aMaterial, - aMaterial, - null), - new Object[] { aOreDictName, OrePrefixes.stick.get(aMaterial), OrePrefixes.screw.get(aMaterial), - ToolDictNames.craftingToolScrewdriver }); + GT_MetaGenerated_Tool_01.INSTANCE + .getToolWithStats(GT_MetaGenerated_Tool_01.UNIVERSALSPADE, 1, aMaterial, aMaterial, null), + new Object[] { aOreDictName, OrePrefixes.stick.get(aMaterial), OrePrefixes.screw.get(aMaterial), + ToolDictNames.craftingToolScrewdriver }); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.stick, aMaterial.mHandleMaterial, 1L), - GT_OreDictUnificator.get(OrePrefixes.screw, aMaterial, 1L), - GT_OreDictUnificator.get(OrePrefixes.toolHeadUniversalSpade, aMaterial, 1L), - GT_Utility.getIntegratedCircuit(11) }, - GT_Values.NF, - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.UNIVERSALSPADE, - 1, - aMaterial, - aMaterial.mHandleMaterial, - null), - 200, - 120); - if (aSpecialRecipeReq2) GT_ModHandler.addCraftingRecipe( + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.stick, aMaterial.mHandleMaterial, 1L), + GT_OreDictUnificator.get(OrePrefixes.screw, aMaterial, 1L), GT_OreDictUnificator.get(OrePrefixes.toolHeadUniversalSpade, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { "fX", 'X', OrePrefixes.toolHeadShovel.get(aMaterial) }); + GT_Utility.getIntegratedCircuit(11) }, + GT_Values.NF, + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.UNIVERSALSPADE, + 1, + aMaterial, + aMaterial.mHandleMaterial, + null), + 200, + 120); + if (aSpecialRecipeReq2) GT_ModHandler.addCraftingRecipe( + GT_OreDictUnificator.get(OrePrefixes.toolHeadUniversalSpade, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { "fX", 'X', OrePrefixes.toolHeadShovel.get(aMaterial) }); } case toolHeadWrench -> { GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.WRENCH_LV, - 1, - aMaterial, - Materials.Steel, - new long[] { 100000L, 32L, 1L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_LV.get(1L), - 'S', OrePrefixes.screw.get(Materials.Steel), 'P', - OrePrefixes.plate.get(Materials.Steel), 'G', - OrePrefixes.gearGtSmall.get(Materials.Steel), 'B', - ItemList.Battery_RE_LV_Lithium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.WRENCH_LV, + 1, + aMaterial, + Materials.Steel, + new long[] { 100000L, 32L, 1L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_LV.get(1L), 'S', + OrePrefixes.screw.get(Materials.Steel), 'P', OrePrefixes.plate.get(Materials.Steel), 'G', + OrePrefixes.gearGtSmall.get(Materials.Steel), 'B', ItemList.Battery_RE_LV_Lithium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.WRENCH_LV, - 1, - aMaterial, - Materials.Steel, - new long[] { 75000L, 32L, 1L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_LV.get(1L), - 'S', OrePrefixes.screw.get(Materials.Steel), 'P', - OrePrefixes.plate.get(Materials.Steel), 'G', - OrePrefixes.gearGtSmall.get(Materials.Steel), 'B', - ItemList.Battery_RE_LV_Cadmium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.WRENCH_LV, + 1, + aMaterial, + Materials.Steel, + new long[] { 75000L, 32L, 1L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_LV.get(1L), 'S', + OrePrefixes.screw.get(Materials.Steel), 'P', OrePrefixes.plate.get(Materials.Steel), 'G', + OrePrefixes.gearGtSmall.get(Materials.Steel), 'B', ItemList.Battery_RE_LV_Cadmium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.WRENCH_LV, - 1, - aMaterial, - Materials.Steel, - new long[] { 50000L, 32L, 1L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_LV.get(1L), - 'S', OrePrefixes.screw.get(Materials.Steel), 'P', - OrePrefixes.plate.get(Materials.Steel), 'G', - OrePrefixes.gearGtSmall.get(Materials.Steel), 'B', - ItemList.Battery_RE_LV_Sodium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.WRENCH_LV, + 1, + aMaterial, + Materials.Steel, + new long[] { 50000L, 32L, 1L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_LV.get(1L), 'S', + OrePrefixes.screw.get(Materials.Steel), 'P', OrePrefixes.plate.get(Materials.Steel), 'G', + OrePrefixes.gearGtSmall.get(Materials.Steel), 'B', ItemList.Battery_RE_LV_Sodium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.WRENCH_MV, - 1, - aMaterial, - Materials.Aluminium, - new long[] { 400000L, 128L, 2L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_MV.get(1L), - 'S', OrePrefixes.screw.get(Materials.Aluminium), 'P', - OrePrefixes.plate.get(Materials.Aluminium), 'G', - OrePrefixes.gearGtSmall.get(Materials.Aluminium), 'B', - ItemList.Battery_RE_MV_Lithium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.WRENCH_MV, + 1, + aMaterial, + Materials.Aluminium, + new long[] { 400000L, 128L, 2L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_MV.get(1L), 'S', + OrePrefixes.screw.get(Materials.Aluminium), 'P', OrePrefixes.plate.get(Materials.Aluminium), + 'G', OrePrefixes.gearGtSmall.get(Materials.Aluminium), 'B', + ItemList.Battery_RE_MV_Lithium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.WRENCH_MV, - 1, - aMaterial, - Materials.Aluminium, - new long[] { 300000L, 128L, 2L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_MV.get(1L), - 'S', OrePrefixes.screw.get(Materials.Aluminium), 'P', - OrePrefixes.plate.get(Materials.Aluminium), 'G', - OrePrefixes.gearGtSmall.get(Materials.Aluminium), 'B', - ItemList.Battery_RE_MV_Cadmium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.WRENCH_MV, + 1, + aMaterial, + Materials.Aluminium, + new long[] { 300000L, 128L, 2L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_MV.get(1L), 'S', + OrePrefixes.screw.get(Materials.Aluminium), 'P', OrePrefixes.plate.get(Materials.Aluminium), + 'G', OrePrefixes.gearGtSmall.get(Materials.Aluminium), 'B', + ItemList.Battery_RE_MV_Cadmium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.WRENCH_MV, - 1, - aMaterial, - Materials.Aluminium, - new long[] { 200000L, 128L, 2L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_MV.get(1L), - 'S', OrePrefixes.screw.get(Materials.Aluminium), 'P', - OrePrefixes.plate.get(Materials.Aluminium), 'G', - OrePrefixes.gearGtSmall.get(Materials.Aluminium), 'B', - ItemList.Battery_RE_MV_Sodium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.WRENCH_MV, + 1, + aMaterial, + Materials.Aluminium, + new long[] { 200000L, 128L, 2L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_MV.get(1L), 'S', + OrePrefixes.screw.get(Materials.Aluminium), 'P', OrePrefixes.plate.get(Materials.Aluminium), + 'G', OrePrefixes.gearGtSmall.get(Materials.Aluminium), 'B', + ItemList.Battery_RE_MV_Sodium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.WRENCH_HV, - 1, - aMaterial, - Materials.StainlessSteel, - new long[] { 1600000L, 512L, 3L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_HV.get(1L), - 'S', OrePrefixes.screw.get(Materials.StainlessSteel), 'P', - OrePrefixes.plate.get(Materials.StainlessSteel), 'G', - OrePrefixes.gearGtSmall.get(Materials.StainlessSteel), 'B', - ItemList.Battery_RE_HV_Lithium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.WRENCH_HV, + 1, + aMaterial, + Materials.StainlessSteel, + new long[] { 1600000L, 512L, 3L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_HV.get(1L), 'S', + OrePrefixes.screw.get(Materials.StainlessSteel), 'P', + OrePrefixes.plate.get(Materials.StainlessSteel), 'G', + OrePrefixes.gearGtSmall.get(Materials.StainlessSteel), 'B', + ItemList.Battery_RE_HV_Lithium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.WRENCH_HV, - 1, - aMaterial, - Materials.StainlessSteel, - new long[] { 1200000L, 512L, 3L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_HV.get(1L), - 'S', OrePrefixes.screw.get(Materials.StainlessSteel), 'P', - OrePrefixes.plate.get(Materials.StainlessSteel), 'G', - OrePrefixes.gearGtSmall.get(Materials.StainlessSteel), 'B', - ItemList.Battery_RE_HV_Cadmium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.WRENCH_HV, + 1, + aMaterial, + Materials.StainlessSteel, + new long[] { 1200000L, 512L, 3L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_HV.get(1L), 'S', + OrePrefixes.screw.get(Materials.StainlessSteel), 'P', + OrePrefixes.plate.get(Materials.StainlessSteel), 'G', + OrePrefixes.gearGtSmall.get(Materials.StainlessSteel), 'B', + ItemList.Battery_RE_HV_Cadmium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.WRENCH_HV, - 1, - aMaterial, - Materials.StainlessSteel, - new long[] { 800000L, 512L, 3L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_HV.get(1L), - 'S', OrePrefixes.screw.get(Materials.StainlessSteel), 'P', - OrePrefixes.plate.get(Materials.StainlessSteel), 'G', - OrePrefixes.gearGtSmall.get(Materials.StainlessSteel), 'B', - ItemList.Battery_RE_HV_Sodium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.WRENCH_HV, + 1, + aMaterial, + Materials.StainlessSteel, + new long[] { 800000L, 512L, 3L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "SXd", "GMG", "PBP", 'X', aOreDictName, 'M', ItemList.Electric_Motor_HV.get(1L), 'S', + OrePrefixes.screw.get(Materials.StainlessSteel), 'P', + OrePrefixes.plate.get(Materials.StainlessSteel), 'G', + OrePrefixes.gearGtSmall.get(Materials.StainlessSteel), 'B', + ItemList.Battery_RE_HV_Sodium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.SCREWDRIVER_LV, - 1, - aMaterial, - Materials.Steel, - new long[] { 100000L, 32L, 1L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "PdX", "MGS", "GBP", 'X', OrePrefixes.stickLong.get(aMaterial), 'M', - ItemList.Electric_Motor_LV.get(1L), 'S', OrePrefixes.screw.get(Materials.Steel), 'P', - OrePrefixes.plate.get(Materials.Steel), 'G', - OrePrefixes.gearGtSmall.get(Materials.Steel), 'B', - ItemList.Battery_RE_LV_Lithium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.SCREWDRIVER_LV, + 1, + aMaterial, + Materials.Steel, + new long[] { 100000L, 32L, 1L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "PdX", "MGS", "GBP", 'X', OrePrefixes.stickLong.get(aMaterial), 'M', + ItemList.Electric_Motor_LV.get(1L), 'S', OrePrefixes.screw.get(Materials.Steel), 'P', + OrePrefixes.plate.get(Materials.Steel), 'G', OrePrefixes.gearGtSmall.get(Materials.Steel), 'B', + ItemList.Battery_RE_LV_Lithium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.SCREWDRIVER_LV, - 1, - aMaterial, - Materials.Steel, - new long[] { 75000L, 32L, 1L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "PdX", "MGS", "GBP", 'X', OrePrefixes.stickLong.get(aMaterial), 'M', - ItemList.Electric_Motor_LV.get(1L), 'S', OrePrefixes.screw.get(Materials.Steel), 'P', - OrePrefixes.plate.get(Materials.Steel), 'G', - OrePrefixes.gearGtSmall.get(Materials.Steel), 'B', - ItemList.Battery_RE_LV_Cadmium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.SCREWDRIVER_LV, + 1, + aMaterial, + Materials.Steel, + new long[] { 75000L, 32L, 1L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "PdX", "MGS", "GBP", 'X', OrePrefixes.stickLong.get(aMaterial), 'M', + ItemList.Electric_Motor_LV.get(1L), 'S', OrePrefixes.screw.get(Materials.Steel), 'P', + OrePrefixes.plate.get(Materials.Steel), 'G', OrePrefixes.gearGtSmall.get(Materials.Steel), 'B', + ItemList.Battery_RE_LV_Cadmium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.SCREWDRIVER_LV, - 1, - aMaterial, - Materials.Steel, - new long[] { 50000L, 32L, 1L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "PdX", "MGS", "GBP", 'X', OrePrefixes.stickLong.get(aMaterial), 'M', - ItemList.Electric_Motor_LV.get(1L), 'S', OrePrefixes.screw.get(Materials.Steel), 'P', - OrePrefixes.plate.get(Materials.Steel), 'G', - OrePrefixes.gearGtSmall.get(Materials.Steel), 'B', - ItemList.Battery_RE_LV_Sodium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.SCREWDRIVER_LV, + 1, + aMaterial, + Materials.Steel, + new long[] { 50000L, 32L, 1L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "PdX", "MGS", "GBP", 'X', OrePrefixes.stickLong.get(aMaterial), 'M', + ItemList.Electric_Motor_LV.get(1L), 'S', OrePrefixes.screw.get(Materials.Steel), 'P', + OrePrefixes.plate.get(Materials.Steel), 'G', OrePrefixes.gearGtSmall.get(Materials.Steel), 'B', + ItemList.Battery_RE_LV_Sodium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.SCREWDRIVER_MV, - 1, - aMaterial, - Materials.Aluminium, - new long[] { 400000L, 128L, 2L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "PdX", "MGS", "GBP", 'X', OrePrefixes.stickLong.get(aMaterial), 'M', - ItemList.Electric_Motor_MV.get(1L), 'S', OrePrefixes.screw.get(Materials.Aluminium), - 'P', OrePrefixes.plate.get(Materials.Aluminium), 'G', - OrePrefixes.gearGtSmall.get(Materials.Aluminium), 'B', - ItemList.Battery_RE_MV_Lithium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.SCREWDRIVER_MV, + 1, + aMaterial, + Materials.Aluminium, + new long[] { 400000L, 128L, 2L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "PdX", "MGS", "GBP", 'X', OrePrefixes.stickLong.get(aMaterial), 'M', + ItemList.Electric_Motor_MV.get(1L), 'S', OrePrefixes.screw.get(Materials.Aluminium), 'P', + OrePrefixes.plate.get(Materials.Aluminium), 'G', + OrePrefixes.gearGtSmall.get(Materials.Aluminium), 'B', + ItemList.Battery_RE_MV_Lithium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.SCREWDRIVER_MV, - 1, - aMaterial, - Materials.Aluminium, - new long[] { 300000L, 128L, 2L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "PdX", "MGS", "GBP", 'X', OrePrefixes.stickLong.get(aMaterial), 'M', - ItemList.Electric_Motor_MV.get(1L), 'S', OrePrefixes.screw.get(Materials.Aluminium), - 'P', OrePrefixes.plate.get(Materials.Aluminium), 'G', - OrePrefixes.gearGtSmall.get(Materials.Aluminium), 'B', - ItemList.Battery_RE_MV_Cadmium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.SCREWDRIVER_MV, + 1, + aMaterial, + Materials.Aluminium, + new long[] { 300000L, 128L, 2L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "PdX", "MGS", "GBP", 'X', OrePrefixes.stickLong.get(aMaterial), 'M', + ItemList.Electric_Motor_MV.get(1L), 'S', OrePrefixes.screw.get(Materials.Aluminium), 'P', + OrePrefixes.plate.get(Materials.Aluminium), 'G', + OrePrefixes.gearGtSmall.get(Materials.Aluminium), 'B', + ItemList.Battery_RE_MV_Cadmium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.SCREWDRIVER_MV, - 1, - aMaterial, - Materials.Aluminium, - new long[] { 200000L, 128L, 2L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "PdX", "MGS", "GBP", 'X', OrePrefixes.stickLong.get(aMaterial), 'M', - ItemList.Electric_Motor_MV.get(1L), 'S', OrePrefixes.screw.get(Materials.Aluminium), - 'P', OrePrefixes.plate.get(Materials.Aluminium), 'G', - OrePrefixes.gearGtSmall.get(Materials.Aluminium), 'B', - ItemList.Battery_RE_MV_Sodium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.SCREWDRIVER_MV, + 1, + aMaterial, + Materials.Aluminium, + new long[] { 200000L, 128L, 2L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "PdX", "MGS", "GBP", 'X', OrePrefixes.stickLong.get(aMaterial), 'M', + ItemList.Electric_Motor_MV.get(1L), 'S', OrePrefixes.screw.get(Materials.Aluminium), 'P', + OrePrefixes.plate.get(Materials.Aluminium), 'G', + OrePrefixes.gearGtSmall.get(Materials.Aluminium), 'B', ItemList.Battery_RE_MV_Sodium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.SCREWDRIVER_HV, - 1, - aMaterial, - Materials.StainlessSteel, - new long[] { 1600000L, 512L, 3L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "PdX", "MGS", "GBP", 'X', OrePrefixes.stickLong.get(aMaterial), 'M', - ItemList.Electric_Motor_HV.get(1L), 'S', - OrePrefixes.screw.get(Materials.StainlessSteel), 'P', - OrePrefixes.plate.get(Materials.StainlessSteel), 'G', - OrePrefixes.gearGtSmall.get(Materials.StainlessSteel), 'B', - ItemList.Battery_RE_HV_Lithium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.SCREWDRIVER_HV, + 1, + aMaterial, + Materials.StainlessSteel, + new long[] { 1600000L, 512L, 3L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "PdX", "MGS", "GBP", 'X', OrePrefixes.stickLong.get(aMaterial), 'M', + ItemList.Electric_Motor_HV.get(1L), 'S', OrePrefixes.screw.get(Materials.StainlessSteel), 'P', + OrePrefixes.plate.get(Materials.StainlessSteel), 'G', + OrePrefixes.gearGtSmall.get(Materials.StainlessSteel), 'B', + ItemList.Battery_RE_HV_Lithium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.SCREWDRIVER_HV, - 1, - aMaterial, - Materials.StainlessSteel, - new long[] { 1200000L, 512L, 3L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "PdX", "MGS", "GBP", 'X', OrePrefixes.stickLong.get(aMaterial), 'M', - ItemList.Electric_Motor_HV.get(1L), 'S', - OrePrefixes.screw.get(Materials.StainlessSteel), 'P', - OrePrefixes.plate.get(Materials.StainlessSteel), 'G', - OrePrefixes.gearGtSmall.get(Materials.StainlessSteel), 'B', - ItemList.Battery_RE_HV_Cadmium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.SCREWDRIVER_HV, + 1, + aMaterial, + Materials.StainlessSteel, + new long[] { 1200000L, 512L, 3L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "PdX", "MGS", "GBP", 'X', OrePrefixes.stickLong.get(aMaterial), 'M', + ItemList.Electric_Motor_HV.get(1L), 'S', OrePrefixes.screw.get(Materials.StainlessSteel), 'P', + OrePrefixes.plate.get(Materials.StainlessSteel), 'G', + OrePrefixes.gearGtSmall.get(Materials.StainlessSteel), 'B', + ItemList.Battery_RE_HV_Cadmium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.SCREWDRIVER_HV, - 1, - aMaterial, - Materials.StainlessSteel, - new long[] { 800000L, 512L, 3L, -1L }), - GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS - | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "PdX", "MGS", "GBP", 'X', OrePrefixes.stickLong.get(aMaterial), 'M', - ItemList.Electric_Motor_HV.get(1L), 'S', - OrePrefixes.screw.get(Materials.StainlessSteel), 'P', - OrePrefixes.plate.get(Materials.StainlessSteel), 'G', - OrePrefixes.gearGtSmall.get(Materials.StainlessSteel), 'B', - ItemList.Battery_RE_HV_Sodium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.SCREWDRIVER_HV, + 1, + aMaterial, + Materials.StainlessSteel, + new long[] { 800000L, 512L, 3L, -1L }), + GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS + | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "PdX", "MGS", "GBP", 'X', OrePrefixes.stickLong.get(aMaterial), 'M', + ItemList.Electric_Motor_HV.get(1L), 'S', OrePrefixes.screw.get(Materials.StainlessSteel), 'P', + OrePrefixes.plate.get(Materials.StainlessSteel), 'G', + OrePrefixes.gearGtSmall.get(Materials.StainlessSteel), 'B', + ItemList.Battery_RE_HV_Sodium.get(1L) }); if (aSpecialRecipeReq2) GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.toolHeadWrench, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { "hXW", "XRX", "WXd", 'X', OrePrefixes.plate.get(aMaterial), 'S', - OrePrefixes.plate.get(Materials.Steel), 'R', OrePrefixes.ring.get(Materials.Steel), 'W', - OrePrefixes.screw.get(Materials.Steel) }); + GT_OreDictUnificator.get(OrePrefixes.toolHeadWrench, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { "hXW", "XRX", "WXd", 'X', OrePrefixes.plate.get(aMaterial), 'S', + OrePrefixes.plate.get(Materials.Steel), 'R', OrePrefixes.ring.get(Materials.Steel), 'W', + OrePrefixes.screw.get(Materials.Steel) }); } case toolHeadHammer, toolHeadMallet -> { GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.stick, aMaterial.mHandleMaterial, 1L), - GT_OreDictUnificator.get(OrePrefixes.toolHeadHammer, aMaterial, 1L), - GT_Utility.getIntegratedCircuit(14) }, - GT_Values.NF, - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - (aMaterial.contains(SubTag.BOUNCY)) || (aMaterial.contains(SubTag.WOOD)) - ? GT_MetaGenerated_Tool_01.SOFTMALLET - : GT_MetaGenerated_Tool_01.HARDHAMMER, - 1, - aMaterial, - aMaterial.mHandleMaterial, - null), - 200, - 120); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.stick, aMaterial.mHandleMaterial, 1L), + GT_OreDictUnificator.get(OrePrefixes.toolHeadHammer, aMaterial, 1L), + GT_Utility.getIntegratedCircuit(14) }, + GT_Values.NF, + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + (aMaterial.contains(SubTag.BOUNCY)) || (aMaterial.contains(SubTag.WOOD)) + ? GT_MetaGenerated_Tool_01.SOFTMALLET + : GT_MetaGenerated_Tool_01.HARDHAMMER, + 1, + aMaterial, + aMaterial.mHandleMaterial, + null), + 200, + 120); if ((aMaterial != Materials.Stone) && (aMaterial != Materials.Flint)) { GT_ModHandler.addShapelessCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - (aMaterial.contains(SubTag.BOUNCY)) || (aMaterial.contains(SubTag.WOOD)) - ? GT_MetaGenerated_Tool_01.SOFTMALLET - : GT_MetaGenerated_Tool_01.HARDHAMMER, - 1, - aMaterial, - aMaterial.mHandleMaterial, - null), - GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { aOreDictName, OrePrefixes.stick.get(aMaterial.mHandleMaterial) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + (aMaterial.contains(SubTag.BOUNCY)) || (aMaterial.contains(SubTag.WOOD)) + ? GT_MetaGenerated_Tool_01.SOFTMALLET + : GT_MetaGenerated_Tool_01.HARDHAMMER, + 1, + aMaterial, + aMaterial.mHandleMaterial, + null), + GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { aOreDictName, OrePrefixes.stick.get(aMaterial.mHandleMaterial) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - (aMaterial.contains(SubTag.BOUNCY)) || (aMaterial.contains(SubTag.WOOD)) - ? GT_MetaGenerated_Tool_01.SOFTMALLET - : GT_MetaGenerated_Tool_01.HARDHAMMER, - 1, - aMaterial, - aMaterial.mHandleMaterial, - null), - GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "XX ", "XXS", "XX ", 'X', - aMaterial == Materials.Wood ? OrePrefixes.plank.get(Materials.Wood) - : OrePrefixes.ingot.get(aMaterial), - 'S', OrePrefixes.stick.get(aMaterial.mHandleMaterial) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + (aMaterial.contains(SubTag.BOUNCY)) || (aMaterial.contains(SubTag.WOOD)) + ? GT_MetaGenerated_Tool_01.SOFTMALLET + : GT_MetaGenerated_Tool_01.HARDHAMMER, + 1, + aMaterial, + aMaterial.mHandleMaterial, + null), + GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "XX ", "XXS", "XX ", 'X', + aMaterial == Materials.Wood ? OrePrefixes.plank.get(Materials.Wood) + : OrePrefixes.ingot.get(aMaterial), + 'S', OrePrefixes.stick.get(aMaterial.mHandleMaterial) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - (aMaterial.contains(SubTag.BOUNCY)) || (aMaterial.contains(SubTag.WOOD)) - ? GT_MetaGenerated_Tool_01.SOFTMALLET - : GT_MetaGenerated_Tool_01.HARDHAMMER, - 1, - aMaterial, - aMaterial.mHandleMaterial, - null), - GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "XX ", "XXS", "XX ", 'X', - aMaterial == Materials.Wood ? OrePrefixes.plank.get(Materials.Wood) - : OrePrefixes.gem.get(aMaterial), - 'S', OrePrefixes.stick.get(aMaterial.mHandleMaterial) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + (aMaterial.contains(SubTag.BOUNCY)) || (aMaterial.contains(SubTag.WOOD)) + ? GT_MetaGenerated_Tool_01.SOFTMALLET + : GT_MetaGenerated_Tool_01.HARDHAMMER, + 1, + aMaterial, + aMaterial.mHandleMaterial, + null), + GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "XX ", "XXS", "XX ", 'X', + aMaterial == Materials.Wood ? OrePrefixes.plank.get(Materials.Wood) + : OrePrefixes.gem.get(aMaterial), + 'S', OrePrefixes.stick.get(aMaterial.mHandleMaterial) }); } if (aPrefix == OrePrefixes.toolHeadHammer) if (aSpecialRecipeReq1) GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.toolHeadHammer, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { "II ", "IIh", "II ", 'P', OrePrefixes.plate.get(aMaterial), 'I', - OrePrefixes.ingot.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.toolHeadHammer, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { "II ", "IIh", "II ", 'P', OrePrefixes.plate.get(aMaterial), 'I', + OrePrefixes.ingot.get(aMaterial) }); } case turbineBlade -> { GT_Values.RA.addAssemblerRecipe( - GT_OreDictUnificator.get(OrePrefixes.turbineBlade, aMaterial, 4L), - GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Magnalium, 1L), - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats(170, 1, aMaterial, aMaterial, null), - 160, - calculateRecipeEU(aMaterial, 100)); + GT_OreDictUnificator.get(OrePrefixes.turbineBlade, aMaterial, 4L), + GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Magnalium, 1L), + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats(170, 1, aMaterial, aMaterial, null), + 160, + calculateRecipeEU(aMaterial, 100)); GT_Values.RA.addAssemblerRecipe( - GT_OreDictUnificator.get(OrePrefixes.turbineBlade, aMaterial, 8L), - GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Titanium, 1L), - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats(172, 1, aMaterial, aMaterial, null), - 320, - calculateRecipeEU(aMaterial, 400)); + GT_OreDictUnificator.get(OrePrefixes.turbineBlade, aMaterial, 8L), + GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Titanium, 1L), + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats(172, 1, aMaterial, aMaterial, null), + 320, + calculateRecipeEU(aMaterial, 400)); GT_Values.RA.addAssemblerRecipe( - GT_OreDictUnificator.get(OrePrefixes.turbineBlade, aMaterial, 12L), - GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.TungstenSteel, 1L), - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats(174, 1, aMaterial, aMaterial, null), - 640, - calculateRecipeEU(aMaterial, 1600)); + GT_OreDictUnificator.get(OrePrefixes.turbineBlade, aMaterial, 12L), + GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.TungstenSteel, 1L), + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats(174, 1, aMaterial, aMaterial, null), + 640, + calculateRecipeEU(aMaterial, 1600)); GT_Values.RA.addAssemblerRecipe( - GT_OreDictUnificator.get(OrePrefixes.turbineBlade, aMaterial, 16L), - GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Americium, 1L), - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats(176, 1, aMaterial, aMaterial, null), - 1280, - calculateRecipeEU(aMaterial, 6400)); + GT_OreDictUnificator.get(OrePrefixes.turbineBlade, aMaterial, 16L), + GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Americium, 1L), + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats(176, 1, aMaterial, aMaterial, null), + 1280, + calculateRecipeEU(aMaterial, 6400)); if (aSpecialRecipeReq2) { if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.turbineBlade, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { "fPd", "SPS", " P ", 'P', - aMaterial == Materials.Wood ? OrePrefixes.plank.get(aMaterial) - : OrePrefixes.plateDouble.get(aMaterial), - 'R', OrePrefixes.ring.get(aMaterial), 'S', OrePrefixes.screw.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.turbineBlade, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { "fPd", "SPS", " P ", 'P', + aMaterial == Materials.Wood ? OrePrefixes.plank.get(aMaterial) + : OrePrefixes.plateDouble.get(aMaterial), + 'R', OrePrefixes.ring.get(aMaterial), 'S', OrePrefixes.screw.get(aMaterial) }); } GT_Values.RA.addFormingPressRecipe( - GT_OreDictUnificator.get(OrePrefixes.plateDouble, aMaterial, 3L), - GT_OreDictUnificator.get(OrePrefixes.screw, aMaterial, 2L), - GT_OreDictUnificator.get(OrePrefixes.turbineBlade, aMaterial, 1L), - 200, - calculateRecipeEU(aMaterial, 60)); + GT_OreDictUnificator.get(OrePrefixes.plateDouble, aMaterial, 3L), + GT_OreDictUnificator.get(OrePrefixes.screw, aMaterial, 2L), + GT_OreDictUnificator.get(OrePrefixes.turbineBlade, aMaterial, 1L), + 200, + calculateRecipeEU(aMaterial, 60)); } } default -> {} diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingToolOther.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingToolOther.java index 9925e013bf..ddb0bd46c7 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingToolOther.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingToolOther.java @@ -15,146 +15,109 @@ public class ProcessingToolOther implements gregtech.api.interfaces.IOreRecipeRe @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { if ((aMaterial != Materials.Stone) && (aMaterial != Materials.Flint)) { if (aMaterial != Materials.Rubber) { GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.PLUNGER, - 1, - aMaterial, - aMaterial, - null), - GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "xRR", " SR", "S f", 'S', OrePrefixes.stick.get(aMaterial), 'R', - OrePrefixes.plate.get(Materials.AnyRubber) }); + GT_MetaGenerated_Tool_01.INSTANCE + .getToolWithStats(GT_MetaGenerated_Tool_01.PLUNGER, 1, aMaterial, aMaterial, null), + GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "xRR", " SR", "S f", 'S', OrePrefixes.stick.get(aMaterial), 'R', + OrePrefixes.plate.get(Materials.AnyRubber) }); } if ((!aMaterial.contains(SubTag.WOOD)) && (!aMaterial.contains(SubTag.BOUNCY)) - && (!aMaterial.contains(SubTag.NO_SMASHING))) { + && (!aMaterial.contains(SubTag.NO_SMASHING))) { GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.WRENCH, - 1, - aMaterial, - aMaterial, - null), - GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "IhI", "III", " I ", 'I', OrePrefixes.ingot.get(aMaterial) }); + GT_MetaGenerated_Tool_01.INSTANCE + .getToolWithStats(GT_MetaGenerated_Tool_01.WRENCH, 1, aMaterial, aMaterial, null), + GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "IhI", "III", " I ", 'I', OrePrefixes.ingot.get(aMaterial) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.CROWBAR, - 1, - aMaterial, - aMaterial, - null), - GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "hDS", "DSD", "SDf", 'S', OrePrefixes.stick.get(aMaterial), 'D', Dyes.dyeBlue }); + GT_MetaGenerated_Tool_01.INSTANCE + .getToolWithStats(GT_MetaGenerated_Tool_01.CROWBAR, 1, aMaterial, aMaterial, null), + GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "hDS", "DSD", "SDf", 'S', OrePrefixes.stick.get(aMaterial), 'D', Dyes.dyeBlue }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.SCREWDRIVER, - 1, - aMaterial, - aMaterial.mHandleMaterial, - null), - GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { " fS", " Sh", "W ", 'S', OrePrefixes.stick.get(aMaterial), 'W', - OrePrefixes.stick.get(aMaterial.mHandleMaterial) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.SCREWDRIVER, + 1, + aMaterial, + aMaterial.mHandleMaterial, + null), + GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { " fS", " Sh", "W ", 'S', OrePrefixes.stick.get(aMaterial), 'W', + OrePrefixes.stick.get(aMaterial.mHandleMaterial) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.WIRECUTTER, - 1, - aMaterial, - aMaterial, - null), - GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "PfP", "hPd", "STS", 'S', OrePrefixes.stick.get(aMaterial), 'P', - OrePrefixes.plate.get(aMaterial), 'T', OrePrefixes.screw.get(aMaterial) }); + GT_MetaGenerated_Tool_01.INSTANCE + .getToolWithStats(GT_MetaGenerated_Tool_01.WIRECUTTER, 1, aMaterial, aMaterial, null), + GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "PfP", "hPd", "STS", 'S', OrePrefixes.stick.get(aMaterial), 'P', + OrePrefixes.plate.get(aMaterial), 'T', OrePrefixes.screw.get(aMaterial) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.SCOOP, - 1, - aMaterial, - aMaterial, - null), - GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "SWS", "SSS", "xSh", 'S', OrePrefixes.stick.get(aMaterial), 'W', - new ItemStack(Blocks.wool, 1, 32767) }); + GT_MetaGenerated_Tool_01.INSTANCE + .getToolWithStats(GT_MetaGenerated_Tool_01.SCOOP, 1, aMaterial, aMaterial, null), + GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "SWS", "SSS", "xSh", 'S', OrePrefixes.stick.get(aMaterial), 'W', + new ItemStack(Blocks.wool, 1, 32767) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.BRANCHCUTTER, - 1, - aMaterial, - aMaterial, - null), - GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "PfP", "PdP", "STS", 'S', OrePrefixes.stick.get(aMaterial), 'P', - OrePrefixes.plate.get(aMaterial), 'T', OrePrefixes.screw.get(aMaterial) }); + GT_MetaGenerated_Tool_01.INSTANCE + .getToolWithStats(GT_MetaGenerated_Tool_01.BRANCHCUTTER, 1, aMaterial, aMaterial, null), + GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "PfP", "PdP", "STS", 'S', OrePrefixes.stick.get(aMaterial), 'P', + OrePrefixes.plate.get(aMaterial), 'T', OrePrefixes.screw.get(aMaterial) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.KNIFE, - 1, - aMaterial, - aMaterial, - null), - GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "fPh", " S ", 'S', OrePrefixes.stick.get(aMaterial), 'P', - OrePrefixes.plate.get(aMaterial) }); + GT_MetaGenerated_Tool_01.INSTANCE + .getToolWithStats(GT_MetaGenerated_Tool_01.KNIFE, 1, aMaterial, aMaterial, null), + GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "fPh", " S ", 'S', OrePrefixes.stick.get(aMaterial), 'P', + OrePrefixes.plate.get(aMaterial) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.BUTCHERYKNIFE, - 1, - aMaterial, - aMaterial, - null), - GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "PPf", "PP ", "Sh ", 'S', OrePrefixes.stick.get(aMaterial), 'P', - OrePrefixes.plate.get(aMaterial) }); + GT_MetaGenerated_Tool_01.INSTANCE + .getToolWithStats(GT_MetaGenerated_Tool_01.BUTCHERYKNIFE, 1, aMaterial, aMaterial, null), + GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "PPf", "PP ", "Sh ", 'S', OrePrefixes.stick.get(aMaterial), 'P', + OrePrefixes.plate.get(aMaterial) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.SOLDERING_IRON_LV, - 1, - aMaterial, - Materials.Rubber, - new long[] { 100000L, 32L, 1L, -1L }), - GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "LBf", "Sd ", "P ", 'B', OrePrefixes.bolt.get(aMaterial), 'P', - OrePrefixes.plate.get(Materials.AnyRubber), 'S', OrePrefixes.stick.get(Materials.Iron), - 'L', ItemList.Battery_RE_LV_Lithium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.SOLDERING_IRON_LV, + 1, + aMaterial, + Materials.Rubber, + new long[] { 100000L, 32L, 1L, -1L }), + GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "LBf", "Sd ", "P ", 'B', OrePrefixes.bolt.get(aMaterial), 'P', + OrePrefixes.plate.get(Materials.AnyRubber), 'S', OrePrefixes.stick.get(Materials.Iron), 'L', + ItemList.Battery_RE_LV_Lithium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.SOLDERING_IRON_MV, - 1, - aMaterial, - Materials.Rubber, - new long[] { 400000L, 128L, 2L, -1L }), - GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "LBf", "Sd ", "P ", 'B', OrePrefixes.bolt.get(aMaterial), 'P', - OrePrefixes.plate.get(Materials.AnyRubber), 'S', OrePrefixes.stick.get(Materials.Steel), - 'L', ItemList.Battery_RE_MV_Lithium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.SOLDERING_IRON_MV, + 1, + aMaterial, + Materials.Rubber, + new long[] { 400000L, 128L, 2L, -1L }), + GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "LBf", "Sd ", "P ", 'B', OrePrefixes.bolt.get(aMaterial), 'P', + OrePrefixes.plate.get(Materials.AnyRubber), 'S', OrePrefixes.stick.get(Materials.Steel), 'L', + ItemList.Battery_RE_MV_Lithium.get(1L) }); GT_ModHandler.addCraftingRecipe( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.SOLDERING_IRON_HV, - 1, - aMaterial, - Materials.AnySyntheticRubber, - new long[] { 1600000L, 512L, 3L, -1L }), - GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "LBf", "Sd ", "P ", 'B', OrePrefixes.bolt.get(aMaterial), 'P', - OrePrefixes.plate.get(Materials.AnySyntheticRubber), 'S', - OrePrefixes.stick.get(Materials.StainlessSteel), 'L', - ItemList.Battery_RE_HV_Lithium.get(1L) }); + GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( + GT_MetaGenerated_Tool_01.SOLDERING_IRON_HV, + 1, + aMaterial, + Materials.AnySyntheticRubber, + new long[] { 1600000L, 512L, 3L, -1L }), + GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "LBf", "Sd ", "P ", 'B', OrePrefixes.bolt.get(aMaterial), 'P', + OrePrefixes.plate.get(Materials.AnySyntheticRubber), 'S', + OrePrefixes.stick.get(Materials.StainlessSteel), 'L', ItemList.Battery_RE_HV_Lithium.get(1L) }); GT_ModHandler.addCraftingRecipe( - (GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - GT_MetaGenerated_Tool_01.POCKET_MULTITOOL, - 1, - aMaterial, - aMaterial, - null)), - GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "ABC", "DEF", "CFG", 'A', OrePrefixes.stickLong.get(aMaterial), 'B', - OrePrefixes.toolHeadSaw.get(aMaterial), 'C', OrePrefixes.ring.get(aMaterial), 'D', - OrePrefixes.toolHeadFile.get(aMaterial), 'E', OrePrefixes.plate.get(aMaterial), 'F', - OrePrefixes.toolHeadSword.get(aMaterial), 'G', Dyes.dyeBlue }); + (GT_MetaGenerated_Tool_01.INSTANCE + .getToolWithStats(GT_MetaGenerated_Tool_01.POCKET_MULTITOOL, 1, aMaterial, aMaterial, null)), + GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "ABC", "DEF", "CFG", 'A', OrePrefixes.stickLong.get(aMaterial), 'B', + OrePrefixes.toolHeadSaw.get(aMaterial), 'C', OrePrefixes.ring.get(aMaterial), 'D', + OrePrefixes.toolHeadFile.get(aMaterial), 'E', OrePrefixes.plate.get(aMaterial), 'F', + OrePrefixes.toolHeadSword.get(aMaterial), 'G', Dyes.dyeBlue }); } } } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingTransforming.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingTransforming.java index 4d37fc2eb1..4c7b10f7cb 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingTransforming.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingTransforming.java @@ -14,110 +14,109 @@ public class ProcessingTransforming implements IOreRecipeRegistrator { public ProcessingTransforming() { for (OrePrefixes tPrefix : OrePrefixes.values()) if (((tPrefix.mMaterialAmount > 0L) && (!tPrefix.mIsContainer) && (!tPrefix.mIsEnchantable)) - || (tPrefix == OrePrefixes.plank)) - tPrefix.add(this); + || (tPrefix == OrePrefixes.plank)) tPrefix.add(this); } @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { if (aPrefix == OrePrefixes.plank) aPrefix = OrePrefixes.plate; switch (aMaterial.mName) { case "Wood": GT_Values.RA.addChemicalBathRecipe( - GT_Utility.copyAmount(1L, aStack), - Materials.SeedOil.getFluid( - GT_Utility.translateMaterialToAmount(aPrefix.mMaterialAmount, 120L, true)), - GT_OreDictUnificator.get(aPrefix, Materials.WoodSealed, 1L), - GT_Values.NI, - GT_Values.NI, - null, - 100, - 8); + GT_Utility.copyAmount(1L, aStack), + Materials.SeedOil + .getFluid(GT_Utility.translateMaterialToAmount(aPrefix.mMaterialAmount, 120L, true)), + GT_OreDictUnificator.get(aPrefix, Materials.WoodSealed, 1L), + GT_Values.NI, + GT_Values.NI, + null, + 100, + 8); GT_Values.RA.addChemicalBathRecipe( - GT_Utility.copyAmount(1L, aStack), - Materials.SeedOilLin.getFluid( - GT_Utility.translateMaterialToAmount(aPrefix.mMaterialAmount, 80L, true)), - GT_OreDictUnificator.get(aPrefix, Materials.WoodSealed, 1L), - GT_Values.NI, - GT_Values.NI, - null, - 100, - 8); + GT_Utility.copyAmount(1L, aStack), + Materials.SeedOilLin + .getFluid(GT_Utility.translateMaterialToAmount(aPrefix.mMaterialAmount, 80L, true)), + GT_OreDictUnificator.get(aPrefix, Materials.WoodSealed, 1L), + GT_Values.NI, + GT_Values.NI, + null, + 100, + 8); GT_Values.RA.addChemicalBathRecipe( - GT_Utility.copyAmount(1L, aStack), - Materials.SeedOilHemp.getFluid( - GT_Utility.translateMaterialToAmount(aPrefix.mMaterialAmount, 80L, true)), - GT_OreDictUnificator.get(aPrefix, Materials.WoodSealed, 1L), - GT_Values.NI, - GT_Values.NI, - null, - 100, - 8); + GT_Utility.copyAmount(1L, aStack), + Materials.SeedOilHemp + .getFluid(GT_Utility.translateMaterialToAmount(aPrefix.mMaterialAmount, 80L, true)), + GT_OreDictUnificator.get(aPrefix, Materials.WoodSealed, 1L), + GT_Values.NI, + GT_Values.NI, + null, + 100, + 8); break; case "Iron": GT_Values.RA.addChemicalBathRecipe( - GT_Utility.copyAmount(1L, aStack), - Materials.FierySteel.getFluid( - GT_Utility.translateMaterialToAmount(aPrefix.mMaterialAmount, 250L, true)), - GT_OreDictUnificator.get(aPrefix, Materials.FierySteel, 1L), - GT_Values.NI, - GT_Values.NI, - null, - 100, - 8); + GT_Utility.copyAmount(1L, aStack), + Materials.FierySteel + .getFluid(GT_Utility.translateMaterialToAmount(aPrefix.mMaterialAmount, 250L, true)), + GT_OreDictUnificator.get(aPrefix, Materials.FierySteel, 1L), + GT_Values.NI, + GT_Values.NI, + null, + 100, + 8); GT_Values.RA.addPolarizerRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(aPrefix, Materials.IronMagnetic, 1L), - (int) Math.max(16L, aPrefix.mMaterialAmount * 128L / 3628800L), - 16); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(aPrefix, Materials.IronMagnetic, 1L), + (int) Math.max(16L, aPrefix.mMaterialAmount * 128L / 3628800L), + 16); break; case "WroughtIron": GT_Values.RA.addChemicalBathRecipe( - GT_Utility.copyAmount(1L, aStack), - Materials.FierySteel.getFluid( - GT_Utility.translateMaterialToAmount(aPrefix.mMaterialAmount, 225L, true)), - GT_OreDictUnificator.get(aPrefix, Materials.FierySteel, 1L), - GT_Values.NI, - GT_Values.NI, - null, - 100, - 8); + GT_Utility.copyAmount(1L, aStack), + Materials.FierySteel + .getFluid(GT_Utility.translateMaterialToAmount(aPrefix.mMaterialAmount, 225L, true)), + GT_OreDictUnificator.get(aPrefix, Materials.FierySteel, 1L), + GT_Values.NI, + GT_Values.NI, + null, + 100, + 8); GT_Values.RA.addPolarizerRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(aPrefix, Materials.IronMagnetic, 1L), - (int) Math.max(16L, aPrefix.mMaterialAmount * 128L / 3628800L), - 16); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(aPrefix, Materials.IronMagnetic, 1L), + (int) Math.max(16L, aPrefix.mMaterialAmount * 128L / 3628800L), + 16); break; case "Steel": GT_Values.RA.addChemicalBathRecipe( - GT_Utility.copyAmount(1L, aStack), - Materials.FierySteel.getFluid( - GT_Utility.translateMaterialToAmount(aPrefix.mMaterialAmount, 200L, true)), - GT_OreDictUnificator.get(aPrefix, Materials.FierySteel, 1L), - GT_Values.NI, - GT_Values.NI, - null, - 100, - 8); + GT_Utility.copyAmount(1L, aStack), + Materials.FierySteel + .getFluid(GT_Utility.translateMaterialToAmount(aPrefix.mMaterialAmount, 200L, true)), + GT_OreDictUnificator.get(aPrefix, Materials.FierySteel, 1L), + GT_Values.NI, + GT_Values.NI, + null, + 100, + 8); GT_Values.RA.addPolarizerRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(aPrefix, Materials.SteelMagnetic, 1L), - (int) Math.max(16L, aPrefix.mMaterialAmount * 128L / 3628800L), - 16); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(aPrefix, Materials.SteelMagnetic, 1L), + (int) Math.max(16L, aPrefix.mMaterialAmount * 128L / 3628800L), + 16); break; case "Neodymium": GT_Values.RA.addPolarizerRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(aPrefix, Materials.NeodymiumMagnetic, 1L), - (int) Math.max(16L, aPrefix.mMaterialAmount * 128L / 3628800L), - 256); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(aPrefix, Materials.NeodymiumMagnetic, 1L), + (int) Math.max(16L, aPrefix.mMaterialAmount * 128L / 3628800L), + 256); case "Samarium": GT_Values.RA.addPolarizerRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(aPrefix, Materials.SamariumMagnetic, 1L), - (int) Math.max(16L, aPrefix.mMaterialAmount * 128L / 3628800L), - 4096); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(aPrefix, Materials.SamariumMagnetic, 1L), + (int) Math.max(16L, aPrefix.mMaterialAmount * 128L / 3628800L), + 4096); } } } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingWax.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingWax.java index 6b6580885e..299e0a92fe 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingWax.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingWax.java @@ -15,7 +15,7 @@ public class ProcessingWax implements gregtech.api.interfaces.IOreRecipeRegistra @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { if (aOreDictName.equals("waxMagical")) GT_Values.RA.addFuel(GT_Utility.copyAmount(1L, aStack), null, 6, 5); } } diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingWire.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingWire.java index 3ae77f5b91..8c4ce4953c 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingWire.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingWire.java @@ -35,7 +35,7 @@ public class ProcessingWire implements gregtech.api.interfaces.IOreRecipeRegistr @Override public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, - ItemStack aStack) { + ItemStack aStack) { if (GT_Mod.gregtechproxy.mAE2Integration) { if (tt == TunnelType.ME) { try { @@ -54,67 +54,67 @@ public class ProcessingWire implements gregtech.api.interfaces.IOreRecipeRegistr correspondingCable = OrePrefixes.cableGt01; if (!aMaterial.contains(SubTag.NO_SMASHING)) { GT_Values.RA.addBenderRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.springSmall, aMaterial, 2L), - 100, - calculateRecipeEU(aMaterial, 8)); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.springSmall, aMaterial, 2L), + 100, + calculateRecipeEU(aMaterial, 8)); GT_Values.RA.addWiremillRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_Utility.getIntegratedCircuit(1), - GT_OreDictUnificator.get(OrePrefixes.wireFine, aMaterial, 4L), - 200, - calculateRecipeEU(aMaterial, 8)); + GT_Utility.copyAmount(1L, aStack), + GT_Utility.getIntegratedCircuit(1), + GT_OreDictUnificator.get(OrePrefixes.wireFine, aMaterial, 4L), + 200, + calculateRecipeEU(aMaterial, 8)); } if (aMaterial.mUnificatable && (aMaterial.mMaterialInto == aMaterial) - && !aMaterial.contains(SubTag.NO_WORKING)) { + && !aMaterial.contains(SubTag.NO_WORKING)) { if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.wireGt01, aMaterial, 1L), - GT_Proxy.tBits, - new Object[] { "Xx", 'X', OrePrefixes.plate.get(aMaterial) }); + GT_OreDictUnificator.get(OrePrefixes.wireGt01, aMaterial, 1L), + GT_Proxy.tBits, + new Object[] { "Xx", 'X', OrePrefixes.plate.get(aMaterial) }); } } GT_Values.RA.addAssemblerRecipe( - GT_Utility.copyAmount(2L, aStack), - GT_Utility.getIntegratedCircuit(2), - GT_OreDictUnificator.get(OrePrefixes.wireGt02, aMaterial, 1L), - 150, - calculateRecipeEU(aMaterial, 8)); + GT_Utility.copyAmount(2L, aStack), + GT_Utility.getIntegratedCircuit(2), + GT_OreDictUnificator.get(OrePrefixes.wireGt02, aMaterial, 1L), + 150, + calculateRecipeEU(aMaterial, 8)); GT_Values.RA.addAssemblerRecipe( - GT_Utility.copyAmount(4L, aStack), - GT_Utility.getIntegratedCircuit(4), - GT_OreDictUnificator.get(OrePrefixes.wireGt04, aMaterial, 1L), - 200, - calculateRecipeEU(aMaterial, 8)); + GT_Utility.copyAmount(4L, aStack), + GT_Utility.getIntegratedCircuit(4), + GT_OreDictUnificator.get(OrePrefixes.wireGt04, aMaterial, 1L), + 200, + calculateRecipeEU(aMaterial, 8)); GT_Values.RA.addAssemblerRecipe( - GT_Utility.copyAmount(8L, aStack), - GT_Utility.getIntegratedCircuit(8), - GT_OreDictUnificator.get(OrePrefixes.wireGt08, aMaterial, 1L), - 300, - calculateRecipeEU(aMaterial, 8)); + GT_Utility.copyAmount(8L, aStack), + GT_Utility.getIntegratedCircuit(8), + GT_OreDictUnificator.get(OrePrefixes.wireGt08, aMaterial, 1L), + 300, + calculateRecipeEU(aMaterial, 8)); GT_Values.RA.addAssemblerRecipe( - GT_Utility.copyAmount(12L, aStack), - GT_Utility.getIntegratedCircuit(12), - GT_OreDictUnificator.get(OrePrefixes.wireGt12, aMaterial, 1L), - 400, - calculateRecipeEU(aMaterial, 8)); + GT_Utility.copyAmount(12L, aStack), + GT_Utility.getIntegratedCircuit(12), + GT_OreDictUnificator.get(OrePrefixes.wireGt12, aMaterial, 1L), + 400, + calculateRecipeEU(aMaterial, 8)); GT_Values.RA.addAssemblerRecipe( - GT_Utility.copyAmount(16L, aStack), - GT_Utility.getIntegratedCircuit(16), - GT_OreDictUnificator.get(OrePrefixes.wireGt16, aMaterial, 1L), - 500, - calculateRecipeEU(aMaterial, 8)); + GT_Utility.copyAmount(16L, aStack), + GT_Utility.getIntegratedCircuit(16), + GT_OreDictUnificator.get(OrePrefixes.wireGt16, aMaterial, 1L), + 500, + calculateRecipeEU(aMaterial, 8)); } case wireGt02 -> { cableWidth = 2; correspondingCable = OrePrefixes.cableGt02; if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.wireGt01, aMaterial, 2L), - new Object[] { aOreDictName }); + GT_OreDictUnificator.get(OrePrefixes.wireGt01, aMaterial, 2L), + new Object[] { aOreDictName }); GT_ModHandler.addShapelessCraftingRecipe( - GT_Utility.copyAmount(1L, aStack), - new Object[] { OrePrefixes.wireGt01.get(aMaterial), OrePrefixes.wireGt01.get(aMaterial) }); + GT_Utility.copyAmount(1L, aStack), + new Object[] { OrePrefixes.wireGt01.get(aMaterial), OrePrefixes.wireGt01.get(aMaterial) }); } } case wireGt04 -> { @@ -122,15 +122,15 @@ public class ProcessingWire implements gregtech.api.interfaces.IOreRecipeRegistr correspondingCable = OrePrefixes.cableGt04; if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.wireGt01, aMaterial, 4L), - new Object[] { aOreDictName }); + GT_OreDictUnificator.get(OrePrefixes.wireGt01, aMaterial, 4L), + new Object[] { aOreDictName }); GT_ModHandler.addShapelessCraftingRecipe( - GT_Utility.copyAmount(1L, aStack), - new Object[] { OrePrefixes.wireGt01.get(aMaterial), OrePrefixes.wireGt01.get(aMaterial), - OrePrefixes.wireGt01.get(aMaterial), OrePrefixes.wireGt01.get(aMaterial) }); + GT_Utility.copyAmount(1L, aStack), + new Object[] { OrePrefixes.wireGt01.get(aMaterial), OrePrefixes.wireGt01.get(aMaterial), + OrePrefixes.wireGt01.get(aMaterial), OrePrefixes.wireGt01.get(aMaterial) }); GT_ModHandler.addShapelessCraftingRecipe( - GT_Utility.copyAmount(1L, aStack), - new Object[] { OrePrefixes.wireGt02.get(aMaterial), OrePrefixes.wireGt02.get(aMaterial) }); + GT_Utility.copyAmount(1L, aStack), + new Object[] { OrePrefixes.wireGt02.get(aMaterial), OrePrefixes.wireGt02.get(aMaterial) }); } } case wireGt08 -> { @@ -138,17 +138,17 @@ public class ProcessingWire implements gregtech.api.interfaces.IOreRecipeRegistr correspondingCable = OrePrefixes.cableGt08; if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.wireGt01, aMaterial, 8L), - new Object[] { aOreDictName }); + GT_OreDictUnificator.get(OrePrefixes.wireGt01, aMaterial, 8L), + new Object[] { aOreDictName }); GT_ModHandler.addShapelessCraftingRecipe( - GT_Utility.copyAmount(1L, aStack), - new Object[] { OrePrefixes.wireGt01.get(aMaterial), OrePrefixes.wireGt01.get(aMaterial), - OrePrefixes.wireGt01.get(aMaterial), OrePrefixes.wireGt01.get(aMaterial), - OrePrefixes.wireGt01.get(aMaterial), OrePrefixes.wireGt01.get(aMaterial), - OrePrefixes.wireGt01.get(aMaterial), OrePrefixes.wireGt01.get(aMaterial) }); + GT_Utility.copyAmount(1L, aStack), + new Object[] { OrePrefixes.wireGt01.get(aMaterial), OrePrefixes.wireGt01.get(aMaterial), + OrePrefixes.wireGt01.get(aMaterial), OrePrefixes.wireGt01.get(aMaterial), + OrePrefixes.wireGt01.get(aMaterial), OrePrefixes.wireGt01.get(aMaterial), + OrePrefixes.wireGt01.get(aMaterial), OrePrefixes.wireGt01.get(aMaterial) }); GT_ModHandler.addShapelessCraftingRecipe( - GT_Utility.copyAmount(1L, aStack), - new Object[] { OrePrefixes.wireGt04.get(aMaterial), OrePrefixes.wireGt04.get(aMaterial) }); + GT_Utility.copyAmount(1L, aStack), + new Object[] { OrePrefixes.wireGt04.get(aMaterial), OrePrefixes.wireGt04.get(aMaterial) }); } } case wireGt12 -> { @@ -156,11 +156,11 @@ public class ProcessingWire implements gregtech.api.interfaces.IOreRecipeRegistr correspondingCable = OrePrefixes.cableGt12; if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.wireGt01, aMaterial, 12L), - new Object[] { aOreDictName }); + GT_OreDictUnificator.get(OrePrefixes.wireGt01, aMaterial, 12L), + new Object[] { aOreDictName }); GT_ModHandler.addShapelessCraftingRecipe( - GT_Utility.copyAmount(1L, aStack), - new Object[] { OrePrefixes.wireGt08.get(aMaterial), OrePrefixes.wireGt04.get(aMaterial) }); + GT_Utility.copyAmount(1L, aStack), + new Object[] { OrePrefixes.wireGt08.get(aMaterial), OrePrefixes.wireGt04.get(aMaterial) }); } } case wireGt16 -> { @@ -169,14 +169,14 @@ public class ProcessingWire implements gregtech.api.interfaces.IOreRecipeRegistr if (aMaterial.getProcessingMaterialTierEU() < TierEU.IV) { GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.wireGt01, aMaterial, 16L), - new Object[] { aOreDictName }); + GT_OreDictUnificator.get(OrePrefixes.wireGt01, aMaterial, 16L), + new Object[] { aOreDictName }); GT_ModHandler.addShapelessCraftingRecipe( - GT_Utility.copyAmount(1L, aStack), - new Object[] { OrePrefixes.wireGt08.get(aMaterial), OrePrefixes.wireGt08.get(aMaterial) }); + GT_Utility.copyAmount(1L, aStack), + new Object[] { OrePrefixes.wireGt08.get(aMaterial), OrePrefixes.wireGt08.get(aMaterial) }); GT_ModHandler.addShapelessCraftingRecipe( - GT_Utility.copyAmount(1L, aStack), - new Object[] { OrePrefixes.wireGt12.get(aMaterial), OrePrefixes.wireGt04.get(aMaterial) }); + GT_Utility.copyAmount(1L, aStack), + new Object[] { OrePrefixes.wireGt12.get(aMaterial), OrePrefixes.wireGt04.get(aMaterial) }); if (GT_Mod.gregtechproxy.mAE2Integration) { AE2addNewAttunement(aStack); @@ -185,9 +185,7 @@ public class ProcessingWire implements gregtech.api.interfaces.IOreRecipeRegistr } default -> { GT_Log.err.println( - "OrePrefix " + aPrefix.name() - + " cannot be registered as a cable for Material " - + aMaterial.mName); + "OrePrefix " + aPrefix.name() + " cannot be registered as a cable for Material " + aMaterial.mName); return; } } @@ -207,32 +205,32 @@ public class ProcessingWire implements gregtech.api.interfaces.IOreRecipeRegistr craftingListRubber.add(OrePrefixes.plate.get(Materials.Rubber)); } GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(correspondingCable, aMaterial, 1L), - craftingListRubber.toArray()); + GT_OreDictUnificator.get(correspondingCable, aMaterial, 1L), + craftingListRubber.toArray()); GT_Values.RA.addBoxingRecipe( - GT_Utility.copyAmount(1L, aStack), - GT_OreDictUnificator.get(OrePrefixes.plate.get(Materials.Rubber), costMultiplier), - GT_OreDictUnificator.get(correspondingCable, aMaterial, 1L), - 100, - 8); + GT_Utility.copyAmount(1L, aStack), + GT_OreDictUnificator.get(OrePrefixes.plate.get(Materials.Rubber), costMultiplier), + GT_OreDictUnificator.get(correspondingCable, aMaterial, 1L), + 100, + 8); GT_Values.RA.addAlloySmelterRecipe( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Rubber, 2L), - GT_OreDictUnificator.get(OrePrefixes.wireGt01, aMaterial, 1L), - GT_OreDictUnificator.get(OrePrefixes.cableGt01, aMaterial, 1L), - 100, - 8); + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Rubber, 2L), + GT_OreDictUnificator.get(OrePrefixes.wireGt01, aMaterial, 1L), + GT_OreDictUnificator.get(OrePrefixes.cableGt01, aMaterial, 1L), + 100, + 8); GT_Values.RA.addAlloySmelterRecipe( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Rubber, 2L), - GT_OreDictUnificator.get(OrePrefixes.wireGt02, aMaterial, 1L), - GT_OreDictUnificator.get(OrePrefixes.cableGt02, aMaterial, 1L), - 200, - 16); + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Rubber, 2L), + GT_OreDictUnificator.get(OrePrefixes.wireGt02, aMaterial, 1L), + GT_OreDictUnificator.get(OrePrefixes.cableGt02, aMaterial, 1L), + 200, + 16); GT_Values.RA.addAlloySmelterRecipe( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Rubber, 4L), - GT_OreDictUnificator.get(OrePrefixes.wireGt04, aMaterial, 1L), - GT_OreDictUnificator.get(OrePrefixes.cableGt04, aMaterial, 1L), - 300, - 30); + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Rubber, 4L), + GT_OreDictUnificator.get(OrePrefixes.wireGt04, aMaterial, 1L), + GT_OreDictUnificator.get(OrePrefixes.cableGt04, aMaterial, 1L), + 300, + 30); case "Iron": case "Nickel": case "Cupronickel": @@ -250,139 +248,135 @@ public class ProcessingWire implements gregtech.api.interfaces.IOreRecipeRegistr case "Aluminium": case "BlueAlloy": GT_Values.RA.addAssemblerRecipe( - aStack, - GT_Utility.getIntegratedCircuit(24), - Materials.Rubber.getMolten(144 * costMultiplier), - GT_OreDictUnificator.get(correspondingCable, aMaterial, 1L), - 100, - 8); + aStack, + GT_Utility.getIntegratedCircuit(24), + Materials.Rubber.getMolten(144 * costMultiplier), + GT_OreDictUnificator.get(correspondingCable, aMaterial, 1L), + 100, + 8); GT_Values.RA.addAssemblerRecipe( - aStack, - GT_Utility.getIntegratedCircuit(24), - Materials.StyreneButadieneRubber.getMolten(108 * costMultiplier), - GT_OreDictUnificator.get(correspondingCable, aMaterial, 1L), - 100, - 8); + aStack, + GT_Utility.getIntegratedCircuit(24), + Materials.StyreneButadieneRubber.getMolten(108 * costMultiplier), + GT_OreDictUnificator.get(correspondingCable, aMaterial, 1L), + 100, + 8); GT_Values.RA.addAssemblerRecipe( - aStack, - GT_Utility.getIntegratedCircuit(24), - Materials.Silicone.getMolten(72 * costMultiplier), - GT_OreDictUnificator.get(correspondingCable, aMaterial, 1L), - 100, - 8); + aStack, + GT_Utility.getIntegratedCircuit(24), + Materials.Silicone.getMolten(72 * costMultiplier), + GT_OreDictUnificator.get(correspondingCable, aMaterial, 1L), + 100, + 8); for (Materials dielectric : dielectrics) { for (Materials syntheticRubber : syntheticRubbers) { GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_Utility.copyAmount(4, aStack), - dielectric.getDust(costMultiplier) }, - syntheticRubber.getMolten(costMultiplier * 144), - GT_OreDictUnificator.get(correspondingCable, aMaterial, 4L), - 400, - 8); + new ItemStack[] { GT_Utility.copyAmount(4, aStack), dielectric.getDust(costMultiplier) }, + syntheticRubber.getMolten(costMultiplier * 144), + GT_OreDictUnificator.get(correspondingCable, aMaterial, 4L), + 400, + 8); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { aStack, dielectric.getDustSmall(costMultiplier) }, - syntheticRubber.getMolten(costMultiplier * 36), - GT_OreDictUnificator.get(correspondingCable, aMaterial, 1L), - 100, - 8); + new ItemStack[] { aStack, dielectric.getDustSmall(costMultiplier) }, + syntheticRubber.getMolten(costMultiplier * 36), + GT_OreDictUnificator.get(correspondingCable, aMaterial, 1L), + 100, + 8); } } case "RedstoneAlloy": GT_Values.RA.addAssemblerRecipe( + aStack, + GT_Utility.getIntegratedCircuit(24), + Materials.Rubber.getMolten(144 * costMultiplier), + GT_OreDictUnificator.get(correspondingCable, aMaterial, 1L), + 100, + 8); + GT_Values.RA.addAssemblerRecipe( + aStack, + GT_Utility.getIntegratedCircuit(24), + Materials.StyreneButadieneRubber.getMolten(108 * costMultiplier), + GT_OreDictUnificator.get(correspondingCable, aMaterial, 1L), + 100, + 8); + GT_Values.RA.addAssemblerRecipe( + aStack, + GT_Utility.getIntegratedCircuit(24), + Materials.Silicone.getMolten(72 * costMultiplier), + GT_OreDictUnificator.get(correspondingCable, aMaterial, 1L), + 100, + 8); + for (Materials dielectric : dielectrics) { + for (Materials syntheticRubber : syntheticRubbers) { + GT_Values.RA.addAssemblerRecipe( + new ItemStack[] { GT_Utility.copyAmount(4, aStack), dielectric.getDust(costMultiplier) }, + syntheticRubber.getMolten(costMultiplier * 144), + GT_OreDictUnificator.get(correspondingCable, aMaterial, 4L), + 400, + 8); + GT_Values.RA.addAssemblerRecipe( + new ItemStack[] { aStack, dielectric.getDustSmall(costMultiplier) }, + syntheticRubber.getMolten(costMultiplier * 36), + GT_OreDictUnificator.get(correspondingCable, aMaterial, 1L), + 100, + 8); + } + } + break; + default: + if (GT_Mod.gregtechproxy.mEasierIVPlusCables) { + GT_Values.RA.addAssemblerRecipe( aStack, GT_Utility.getIntegratedCircuit(24), Materials.Rubber.getMolten(144 * costMultiplier), GT_OreDictUnificator.get(correspondingCable, aMaterial, 1L), 100, - 8); - GT_Values.RA.addAssemblerRecipe( + calculateRecipeEU(aMaterial, 8)); + GT_Values.RA.addAssemblerRecipe( aStack, GT_Utility.getIntegratedCircuit(24), Materials.StyreneButadieneRubber.getMolten(108 * costMultiplier), GT_OreDictUnificator.get(correspondingCable, aMaterial, 1L), 100, - 8); - GT_Values.RA.addAssemblerRecipe( + calculateRecipeEU(aMaterial, 8)); + GT_Values.RA.addAssemblerRecipe( aStack, GT_Utility.getIntegratedCircuit(24), Materials.Silicone.getMolten(72 * costMultiplier), GT_OreDictUnificator.get(correspondingCable, aMaterial, 1L), 100, - 8); - for (Materials dielectric : dielectrics) { - for (Materials syntheticRubber : syntheticRubbers) { - GT_Values.RA.addAssemblerRecipe( + calculateRecipeEU(aMaterial, 8)); + for (Materials dielectric : dielectrics) { + for (Materials syntheticRubber : syntheticRubbers) { + GT_Values.RA.addAssemblerRecipe( new ItemStack[] { GT_Utility.copyAmount(4, aStack), - dielectric.getDust(costMultiplier) }, + dielectric.getDust(costMultiplier) }, syntheticRubber.getMolten(costMultiplier * 144), GT_OreDictUnificator.get(correspondingCable, aMaterial, 4L), 400, - 8); - GT_Values.RA.addAssemblerRecipe( + calculateRecipeEU(aMaterial, 8)); + GT_Values.RA.addAssemblerRecipe( new ItemStack[] { aStack, dielectric.getDustSmall(costMultiplier) }, syntheticRubber.getMolten(costMultiplier * 36), GT_OreDictUnificator.get(correspondingCable, aMaterial, 1L), 100, - 8); - } - } - break; - default: - if (GT_Mod.gregtechproxy.mEasierIVPlusCables) { - GT_Values.RA.addAssemblerRecipe( - aStack, - GT_Utility.getIntegratedCircuit(24), - Materials.Rubber.getMolten(144 * costMultiplier), - GT_OreDictUnificator.get(correspondingCable, aMaterial, 1L), - 100, - calculateRecipeEU(aMaterial, 8)); - GT_Values.RA.addAssemblerRecipe( - aStack, - GT_Utility.getIntegratedCircuit(24), - Materials.StyreneButadieneRubber.getMolten(108 * costMultiplier), - GT_OreDictUnificator.get(correspondingCable, aMaterial, 1L), - 100, - calculateRecipeEU(aMaterial, 8)); - GT_Values.RA.addAssemblerRecipe( - aStack, - GT_Utility.getIntegratedCircuit(24), - Materials.Silicone.getMolten(72 * costMultiplier), - GT_OreDictUnificator.get(correspondingCable, aMaterial, 1L), - 100, - calculateRecipeEU(aMaterial, 8)); - for (Materials dielectric : dielectrics) { - for (Materials syntheticRubber : syntheticRubbers) { - GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_Utility.copyAmount(4, aStack), - dielectric.getDust(costMultiplier) }, - syntheticRubber.getMolten(costMultiplier * 144), - GT_OreDictUnificator.get(correspondingCable, aMaterial, 4L), - 400, - calculateRecipeEU(aMaterial, 8)); - GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { aStack, dielectric.getDustSmall(costMultiplier) }, - syntheticRubber.getMolten(costMultiplier * 36), - GT_OreDictUnificator.get(correspondingCable, aMaterial, 1L), - 100, - calculateRecipeEU(aMaterial, 8)); + calculateRecipeEU(aMaterial, 8)); } } } else { GT_Values.RA.addAssemblerRecipe( + new ItemStack[] { aStack, GT_OreDictUnificator.get(OrePrefixes.foil, aMaterial, costMultiplier), + GT_Utility.getIntegratedCircuit(24) }, + Materials.Silicone.getMolten(costMultiplier * 72), + GT_OreDictUnificator.get(correspondingCable, aMaterial, 1L), + 100, + calculateRecipeEU(aMaterial, 8)); + GT_Values.RA + .addAssemblerRecipe( new ItemStack[] { aStack, - GT_OreDictUnificator.get(OrePrefixes.foil, aMaterial, costMultiplier), - GT_Utility.getIntegratedCircuit(24) }, - Materials.Silicone.getMolten(costMultiplier * 72), - GT_OreDictUnificator.get(correspondingCable, aMaterial, 1L), - 100, - calculateRecipeEU(aMaterial, 8)); - GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { aStack, - GT_OreDictUnificator.get( - OrePrefixes.foil, - Materials.PolyphenyleneSulfide, - costMultiplier), - GT_Utility.getIntegratedCircuit(24) }, + GT_OreDictUnificator + .get(OrePrefixes.foil, Materials.PolyphenyleneSulfide, costMultiplier), + GT_Utility.getIntegratedCircuit(24) }, Materials.Silicone.getMolten(costMultiplier * 72), GT_OreDictUnificator.get(correspondingCable, aMaterial, 1L), 100, @@ -390,41 +384,35 @@ public class ProcessingWire implements gregtech.api.interfaces.IOreRecipeRegistr for (Materials dielectric : dielectrics) { for (Materials syntheticRubber : syntheticRubbers) { GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_Utility.copyAmount(4, aStack), - dielectric.getDust(costMultiplier), - GT_OreDictUnificator.get(OrePrefixes.foil, aMaterial, costMultiplier * 4) }, - syntheticRubber.getMolten(costMultiplier * 144), - GT_OreDictUnificator.get(correspondingCable, aMaterial, 4L), - 400, - calculateRecipeEU(aMaterial, 8)); + new ItemStack[] { GT_Utility.copyAmount(4, aStack), dielectric.getDust(costMultiplier), + GT_OreDictUnificator.get(OrePrefixes.foil, aMaterial, costMultiplier * 4) }, + syntheticRubber.getMolten(costMultiplier * 144), + GT_OreDictUnificator.get(correspondingCable, aMaterial, 4L), + 400, + calculateRecipeEU(aMaterial, 8)); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_Utility.copyAmount(4, aStack), - dielectric.getDust(costMultiplier), - GT_OreDictUnificator.get( - OrePrefixes.foil, - Materials.PolyphenyleneSulfide, - costMultiplier * 4) }, - syntheticRubber.getMolten(costMultiplier * 144), - GT_OreDictUnificator.get(correspondingCable, aMaterial, 4L), - 400, - calculateRecipeEU(aMaterial, 8)); + new ItemStack[] { GT_Utility.copyAmount(4, aStack), dielectric.getDust(costMultiplier), + GT_OreDictUnificator + .get(OrePrefixes.foil, Materials.PolyphenyleneSulfide, costMultiplier * 4) }, + syntheticRubber.getMolten(costMultiplier * 144), + GT_OreDictUnificator.get(correspondingCable, aMaterial, 4L), + 400, + calculateRecipeEU(aMaterial, 8)); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { aStack, dielectric.getDustSmall(costMultiplier), - GT_OreDictUnificator.get(OrePrefixes.foil, aMaterial, costMultiplier) }, - syntheticRubber.getMolten(costMultiplier * 36), - GT_OreDictUnificator.get(correspondingCable, aMaterial, 1L), - 100, - calculateRecipeEU(aMaterial, 8)); + new ItemStack[] { aStack, dielectric.getDustSmall(costMultiplier), + GT_OreDictUnificator.get(OrePrefixes.foil, aMaterial, costMultiplier) }, + syntheticRubber.getMolten(costMultiplier * 36), + GT_OreDictUnificator.get(correspondingCable, aMaterial, 1L), + 100, + calculateRecipeEU(aMaterial, 8)); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { aStack, dielectric.getDustSmall(costMultiplier), - GT_OreDictUnificator.get( - OrePrefixes.foil, - Materials.PolyphenyleneSulfide, - costMultiplier) }, - syntheticRubber.getMolten(costMultiplier * 36), - GT_OreDictUnificator.get(correspondingCable, aMaterial, 1L), - 100, - calculateRecipeEU(aMaterial, 8)); + new ItemStack[] { aStack, dielectric.getDustSmall(costMultiplier), + GT_OreDictUnificator + .get(OrePrefixes.foil, Materials.PolyphenyleneSulfide, costMultiplier) }, + syntheticRubber.getMolten(costMultiplier * 36), + GT_OreDictUnificator.get(correspondingCable, aMaterial, 1L), + 100, + calculateRecipeEU(aMaterial, 8)); } } } @@ -432,11 +420,11 @@ public class ProcessingWire implements gregtech.api.interfaces.IOreRecipeRegistr } // Honestly when can this machine be removed? ); GT_Values.RA.addUnboxingRecipe( - GT_OreDictUnificator.get(correspondingCable, aMaterial, 1L), - GT_Utility.copyAmount(1L, aStack), - null, - 100, - calculateRecipeEU(aMaterial, 8)); + GT_OreDictUnificator.get(correspondingCable, aMaterial, 1L), + GT_Utility.copyAmount(1L, aStack), + null, + 100, + calculateRecipeEU(aMaterial, 8)); if (GT_Mod.gregtechproxy.mAE2Integration) { AE2AddNetAttunementCable(aStack, correspondingCable, aMaterial); } @@ -453,17 +441,17 @@ public class ProcessingWire implements gregtech.api.interfaces.IOreRecipeRegistr private void AE2addNewAttunement(ItemStack aStack) { Api.INSTANCE.registries() - .p2pTunnel() - .addNewAttunement(aStack, (TunnelType) tt); + .p2pTunnel() + .addNewAttunement(aStack, (TunnelType) tt); } private void AE2AddNetAttunementCable(ItemStack aStack, OrePrefixes correspondingCable, Materials aMaterial) { Api.INSTANCE.registries() - .p2pTunnel() - .addNewAttunement(aStack, (TunnelType) tt); + .p2pTunnel() + .addNewAttunement(aStack, (TunnelType) tt); Api.INSTANCE.registries() - .p2pTunnel() - .addNewAttunement(GT_OreDictUnificator.get(correspondingCable, aMaterial, 1L), (TunnelType) tt); + .p2pTunnel() + .addNewAttunement(GT_OreDictUnificator.get(correspondingCable, aMaterial, 1L), (TunnelType) tt); } // end region } diff --git a/src/main/java/gregtech/loaders/postload/GT_BookAndLootLoader.java b/src/main/java/gregtech/loaders/postload/GT_BookAndLootLoader.java index 0e4051c798..71c8d67741 100644 --- a/src/main/java/gregtech/loaders/postload/GT_BookAndLootLoader.java +++ b/src/main/java/gregtech/loaders/postload/GT_BookAndLootLoader.java @@ -49,459 +49,385 @@ public class GT_BookAndLootLoader implements Runnable { tChest.setMax(tChest.getMax() + 16); tChest.setMin(tChest.getMin() + 8); } - ChestGenHooks.addItem( - "bonusChest", - new WeightedRandomChestContent(ItemList.Bottle_Purple_Drink.get(1L), 8, 16, 2)); + ChestGenHooks + .addItem("bonusChest", new WeightedRandomChestContent(ItemList.Bottle_Purple_Drink.get(1L), 8, 16, 2)); - ChestGenHooks.addItem( - "dungeonChest", - new WeightedRandomChestContent(ItemList.Bottle_Holy_Water.get(1L), 4, 8, 20)); - ChestGenHooks.addItem( - "dungeonChest", - new WeightedRandomChestContent(ItemList.Bottle_Purple_Drink.get(1L), 8, 16, 80)); - ChestGenHooks.addItem( - "dungeonChest", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Silver, 1L), - 1, - 6, - 120)); - ChestGenHooks.addItem( - "dungeonChest", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Lead, 1L), - 1, - 6, - 30)); - ChestGenHooks.addItem( - "dungeonChest", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 1L), - 1, - 6, - 60)); - ChestGenHooks.addItem( - "dungeonChest", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Bronze, 1L), - 1, - 6, - 60)); - ChestGenHooks.addItem( - "dungeonChest", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Manganese, 1L), - 1, - 6, - 60)); - ChestGenHooks.addItem( - "dungeonChest", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.DamascusSteel, 1L), - 1, - 6, - 10)); - ChestGenHooks.addItem( - "dungeonChest", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Emerald, 1L), - 1, - 6, - 20)); - ChestGenHooks.addItem( - "dungeonChest", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Ruby, 1L), - 1, - 6, - 20)); - ChestGenHooks.addItem( - "dungeonChest", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Sapphire, 1L), - 1, - 6, - 20)); - ChestGenHooks.addItem( - "dungeonChest", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.GreenSapphire, 1L), - 1, - 6, - 20)); - ChestGenHooks.addItem( - "dungeonChest", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Olivine, 1L), - 1, - 6, - 20)); - ChestGenHooks.addItem( - "dungeonChest", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.GarnetRed, 1L), - 1, - 6, - 40)); - ChestGenHooks.addItem( - "dungeonChest", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.GarnetYellow, 1L), - 1, - 6, - 40)); - ChestGenHooks.addItem( - "dungeonChest", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Neodymium, 1L), - 1, - 6, - 40)); - ChestGenHooks.addItem( - "dungeonChest", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Chrome, 1L), - 1, - 3, - 40)); + ChestGenHooks + .addItem("dungeonChest", new WeightedRandomChestContent(ItemList.Bottle_Holy_Water.get(1L), 4, 8, 20)); + ChestGenHooks + .addItem("dungeonChest", new WeightedRandomChestContent(ItemList.Bottle_Purple_Drink.get(1L), 8, 16, 80)); + ChestGenHooks.addItem( + "dungeonChest", + new WeightedRandomChestContent( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Silver, 1L), + 1, + 6, + 120)); + ChestGenHooks.addItem( + "dungeonChest", + new WeightedRandomChestContent(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Lead, 1L), 1, 6, 30)); + ChestGenHooks.addItem( + "dungeonChest", + new WeightedRandomChestContent(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 1L), 1, 6, 60)); + ChestGenHooks.addItem( + "dungeonChest", + new WeightedRandomChestContent( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Bronze, 1L), + 1, + 6, + 60)); + ChestGenHooks.addItem( + "dungeonChest", + new WeightedRandomChestContent( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Manganese, 1L), + 1, + 6, + 60)); + ChestGenHooks.addItem( + "dungeonChest", + new WeightedRandomChestContent( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.DamascusSteel, 1L), + 1, + 6, + 10)); + ChestGenHooks.addItem( + "dungeonChest", + new WeightedRandomChestContent(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Emerald, 1L), 1, 6, 20)); + ChestGenHooks.addItem( + "dungeonChest", + new WeightedRandomChestContent(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Ruby, 1L), 1, 6, 20)); + ChestGenHooks.addItem( + "dungeonChest", + new WeightedRandomChestContent( + GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Sapphire, 1L), + 1, + 6, + 20)); + ChestGenHooks.addItem( + "dungeonChest", + new WeightedRandomChestContent( + GT_OreDictUnificator.get(OrePrefixes.gem, Materials.GreenSapphire, 1L), + 1, + 6, + 20)); + ChestGenHooks.addItem( + "dungeonChest", + new WeightedRandomChestContent(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Olivine, 1L), 1, 6, 20)); + ChestGenHooks.addItem( + "dungeonChest", + new WeightedRandomChestContent( + GT_OreDictUnificator.get(OrePrefixes.gem, Materials.GarnetRed, 1L), + 1, + 6, + 40)); + ChestGenHooks.addItem( + "dungeonChest", + new WeightedRandomChestContent( + GT_OreDictUnificator.get(OrePrefixes.gem, Materials.GarnetYellow, 1L), + 1, + 6, + 40)); + ChestGenHooks.addItem( + "dungeonChest", + new WeightedRandomChestContent( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Neodymium, 1L), + 1, + 6, + 40)); + ChestGenHooks.addItem( + "dungeonChest", + new WeightedRandomChestContent(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Chrome, 1L), 1, 3, 40)); ChestGenHooks.addItem( - "pyramidDesertyChest", - new WeightedRandomChestContent(ItemList.Bottle_Holy_Water.get(1L), 4, 8, 2)); - ChestGenHooks.addItem( - "pyramidDesertyChest", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Silver, 1L), - 4, - 16, - 12)); - ChestGenHooks.addItem( - "pyramidDesertyChest", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Platinum, 1L), - 2, - 8, - 4)); - ChestGenHooks.addItem( - "pyramidDesertyChest", - new WeightedRandomChestContent(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Ruby, 1L), 2, 8, 2)); - ChestGenHooks.addItem( - "pyramidDesertyChest", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Sapphire, 1L), - 2, - 8, - 2)); - ChestGenHooks.addItem( - "pyramidDesertyChest", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.GreenSapphire, 1L), - 2, - 8, - 2)); - ChestGenHooks.addItem( - "pyramidDesertyChest", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Olivine, 1L), - 2, - 8, - 2)); - ChestGenHooks.addItem( - "pyramidDesertyChest", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.GarnetRed, 1L), - 2, - 8, - 4)); - ChestGenHooks.addItem( - "pyramidDesertyChest", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.GarnetYellow, 1L), - 2, - 8, - 4)); + "pyramidDesertyChest", + new WeightedRandomChestContent(ItemList.Bottle_Holy_Water.get(1L), 4, 8, 2)); + ChestGenHooks.addItem( + "pyramidDesertyChest", + new WeightedRandomChestContent( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Silver, 1L), + 4, + 16, + 12)); + ChestGenHooks.addItem( + "pyramidDesertyChest", + new WeightedRandomChestContent( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Platinum, 1L), + 2, + 8, + 4)); + ChestGenHooks.addItem( + "pyramidDesertyChest", + new WeightedRandomChestContent(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Ruby, 1L), 2, 8, 2)); + ChestGenHooks.addItem( + "pyramidDesertyChest", + new WeightedRandomChestContent(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Sapphire, 1L), 2, 8, 2)); + ChestGenHooks.addItem( + "pyramidDesertyChest", + new WeightedRandomChestContent( + GT_OreDictUnificator.get(OrePrefixes.gem, Materials.GreenSapphire, 1L), + 2, + 8, + 2)); + ChestGenHooks.addItem( + "pyramidDesertyChest", + new WeightedRandomChestContent(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Olivine, 1L), 2, 8, 2)); + ChestGenHooks.addItem( + "pyramidDesertyChest", + new WeightedRandomChestContent( + GT_OreDictUnificator.get(OrePrefixes.gem, Materials.GarnetRed, 1L), + 2, + 8, + 4)); + ChestGenHooks.addItem( + "pyramidDesertyChest", + new WeightedRandomChestContent( + GT_OreDictUnificator.get(OrePrefixes.gem, Materials.GarnetYellow, 1L), + 2, + 8, + 4)); ChestGenHooks.addItem( - "pyramidJungleChest", - new WeightedRandomChestContent(ItemList.Coin_Gold_Ancient.get(1L), 16, 64, 10)); - ChestGenHooks.addItem( - "pyramidJungleChest", - new WeightedRandomChestContent(ItemList.ZPM.getWithCharge(1L, 2147483647), 1, 1, 1)); - ChestGenHooks.addItem( - "pyramidJungleChest", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Bronze, 1L), - 4, - 16, - 12)); - ChestGenHooks.addItem( - "pyramidJungleChest", - new WeightedRandomChestContent(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Ruby, 1L), 2, 8, 2)); - ChestGenHooks.addItem( - "pyramidJungleChest", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Sapphire, 1L), - 2, - 8, - 2)); - ChestGenHooks.addItem( - "pyramidJungleChest", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.GreenSapphire, 1L), - 2, - 8, - 2)); - ChestGenHooks.addItem( - "pyramidJungleChest", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Olivine, 1L), - 2, - 8, - 2)); - ChestGenHooks.addItem( - "pyramidJungleChest", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.GarnetRed, 1L), - 2, - 8, - 4)); - ChestGenHooks.addItem( - "pyramidJungleChest", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.GarnetYellow, 1L), - 2, - 8, - 4)); + "pyramidJungleChest", + new WeightedRandomChestContent(ItemList.Coin_Gold_Ancient.get(1L), 16, 64, 10)); + ChestGenHooks.addItem( + "pyramidJungleChest", + new WeightedRandomChestContent(ItemList.ZPM.getWithCharge(1L, 2147483647), 1, 1, 1)); + ChestGenHooks.addItem( + "pyramidJungleChest", + new WeightedRandomChestContent( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Bronze, 1L), + 4, + 16, + 12)); + ChestGenHooks.addItem( + "pyramidJungleChest", + new WeightedRandomChestContent(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Ruby, 1L), 2, 8, 2)); + ChestGenHooks.addItem( + "pyramidJungleChest", + new WeightedRandomChestContent(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Sapphire, 1L), 2, 8, 2)); + ChestGenHooks.addItem( + "pyramidJungleChest", + new WeightedRandomChestContent( + GT_OreDictUnificator.get(OrePrefixes.gem, Materials.GreenSapphire, 1L), + 2, + 8, + 2)); + ChestGenHooks.addItem( + "pyramidJungleChest", + new WeightedRandomChestContent(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Olivine, 1L), 2, 8, 2)); + ChestGenHooks.addItem( + "pyramidJungleChest", + new WeightedRandomChestContent( + GT_OreDictUnificator.get(OrePrefixes.gem, Materials.GarnetRed, 1L), + 2, + 8, + 4)); + ChestGenHooks.addItem( + "pyramidJungleChest", + new WeightedRandomChestContent( + GT_OreDictUnificator.get(OrePrefixes.gem, Materials.GarnetYellow, 1L), + 2, + 8, + 4)); ChestGenHooks.addItem( - "pyramidJungleDispenser", - new WeightedRandomChestContent(new ItemStack(Items.fire_charge, 1), 2, 8, 30)); + "pyramidJungleDispenser", + new WeightedRandomChestContent(new ItemStack(Items.fire_charge, 1), 2, 8, 30)); ChestGenHooks.addItem( - "pyramidJungleDispenser", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.arrowGtWood, Materials.DamascusSteel, 1L), - 8, - 16, - 20)); + "pyramidJungleDispenser", + new WeightedRandomChestContent( + GT_OreDictUnificator.get(OrePrefixes.arrowGtWood, Materials.DamascusSteel, 1L), + 8, + 16, + 20)); ChestGenHooks.addItem( - "mineshaftCorridor", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Silver, 1L), - 1, - 4, - 12)); - ChestGenHooks.addItem( - "mineshaftCorridor", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Lead, 1L), - 1, - 4, - 3)); - ChestGenHooks.addItem( - "mineshaftCorridor", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 1L), - 1, - 4, - 6)); - ChestGenHooks.addItem( - "mineshaftCorridor", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Bronze, 1L), - 1, - 4, - 6)); - ChestGenHooks.addItem( - "mineshaftCorridor", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Sapphire, 1L), - 1, - 4, - 2)); - ChestGenHooks.addItem( - "mineshaftCorridor", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.GreenSapphire, 1L), - 1, - 4, - 2)); - ChestGenHooks.addItem( - "mineshaftCorridor", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Olivine, 1L), - 1, - 4, - 2)); - ChestGenHooks.addItem( - "mineshaftCorridor", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.GarnetRed, 1L), - 1, - 4, - 4)); - ChestGenHooks.addItem( - "mineshaftCorridor", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.GarnetYellow, 1L), - 1, - 4, - 4)); - ChestGenHooks.addItem( - "mineshaftCorridor", - new WeightedRandomChestContent(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Ruby, 1L), 1, 4, 2)); - ChestGenHooks.addItem( - "mineshaftCorridor", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Emerald, 1L), - 1, - 4, - 2)); - ChestGenHooks.addItem( - "mineshaftCorridor", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.toolHeadPickaxe, Materials.DamascusSteel, 1L), - 1, - 4, - 1)); - ChestGenHooks.addItem( - "mineshaftCorridor", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.toolHeadShovel, Materials.DamascusSteel, 1L), - 1, - 4, - 1)); + "mineshaftCorridor", + new WeightedRandomChestContent( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Silver, 1L), + 1, + 4, + 12)); + ChestGenHooks.addItem( + "mineshaftCorridor", + new WeightedRandomChestContent(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Lead, 1L), 1, 4, 3)); + ChestGenHooks.addItem( + "mineshaftCorridor", + new WeightedRandomChestContent(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 1L), 1, 4, 6)); + ChestGenHooks.addItem( + "mineshaftCorridor", + new WeightedRandomChestContent(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Bronze, 1L), 1, 4, 6)); + ChestGenHooks.addItem( + "mineshaftCorridor", + new WeightedRandomChestContent(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Sapphire, 1L), 1, 4, 2)); + ChestGenHooks.addItem( + "mineshaftCorridor", + new WeightedRandomChestContent( + GT_OreDictUnificator.get(OrePrefixes.gem, Materials.GreenSapphire, 1L), + 1, + 4, + 2)); + ChestGenHooks.addItem( + "mineshaftCorridor", + new WeightedRandomChestContent(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Olivine, 1L), 1, 4, 2)); + ChestGenHooks.addItem( + "mineshaftCorridor", + new WeightedRandomChestContent( + GT_OreDictUnificator.get(OrePrefixes.gem, Materials.GarnetRed, 1L), + 1, + 4, + 4)); + ChestGenHooks.addItem( + "mineshaftCorridor", + new WeightedRandomChestContent( + GT_OreDictUnificator.get(OrePrefixes.gem, Materials.GarnetYellow, 1L), + 1, + 4, + 4)); + ChestGenHooks.addItem( + "mineshaftCorridor", + new WeightedRandomChestContent(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Ruby, 1L), 1, 4, 2)); + ChestGenHooks.addItem( + "mineshaftCorridor", + new WeightedRandomChestContent(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Emerald, 1L), 1, 4, 2)); + ChestGenHooks.addItem( + "mineshaftCorridor", + new WeightedRandomChestContent( + GT_OreDictUnificator.get(OrePrefixes.toolHeadPickaxe, Materials.DamascusSteel, 1L), + 1, + 4, + 1)); + ChestGenHooks.addItem( + "mineshaftCorridor", + new WeightedRandomChestContent( + GT_OreDictUnificator.get(OrePrefixes.toolHeadShovel, Materials.DamascusSteel, 1L), + 1, + 4, + 1)); - ChestGenHooks.addItem( - "villageBlacksmith", - new WeightedRandomChestContent(ItemList.McGuffium_239.get(1L), 1, 1, 1)); - ChestGenHooks.addItem( - "villageBlacksmith", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Chrome, 1L), - 1, - 4, - 6)); - ChestGenHooks.addItem( - "villageBlacksmith", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Neodymium, 1L), - 2, - 8, - 6)); - ChestGenHooks.addItem( - "villageBlacksmith", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Manganese, 1L), - 2, - 8, - 12)); - ChestGenHooks.addItem( - "villageBlacksmith", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 1L), - 4, - 12, - 12)); - ChestGenHooks.addItem( - "villageBlacksmith", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Bronze, 1L), - 4, - 12, - 12)); - ChestGenHooks.addItem( - "villageBlacksmith", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Brass, 1L), - 4, - 12, - 12)); - ChestGenHooks.addItem( - "villageBlacksmith", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.DamascusSteel, 1L), - 4, - 12, - 1)); + ChestGenHooks + .addItem("villageBlacksmith", new WeightedRandomChestContent(ItemList.McGuffium_239.get(1L), 1, 1, 1)); + ChestGenHooks.addItem( + "villageBlacksmith", + new WeightedRandomChestContent(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Chrome, 1L), 1, 4, 6)); + ChestGenHooks.addItem( + "villageBlacksmith", + new WeightedRandomChestContent( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Neodymium, 1L), + 2, + 8, + 6)); + ChestGenHooks.addItem( + "villageBlacksmith", + new WeightedRandomChestContent( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Manganese, 1L), + 2, + 8, + 12)); + ChestGenHooks.addItem( + "villageBlacksmith", + new WeightedRandomChestContent( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 1L), + 4, + 12, + 12)); + ChestGenHooks.addItem( + "villageBlacksmith", + new WeightedRandomChestContent( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Bronze, 1L), + 4, + 12, + 12)); + ChestGenHooks.addItem( + "villageBlacksmith", + new WeightedRandomChestContent( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Brass, 1L), + 4, + 12, + 12)); + ChestGenHooks.addItem( + "villageBlacksmith", + new WeightedRandomChestContent( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.DamascusSteel, 1L), + 4, + 12, + 1)); - ChestGenHooks.addItem( - "strongholdCrossing", - new WeightedRandomChestContent(ItemList.Bottle_Holy_Water.get(1L), 4, 8, 6)); - ChestGenHooks.addItem( - "strongholdCrossing", - new WeightedRandomChestContent(ItemList.McGuffium_239.get(1L), 1, 1, 10)); + ChestGenHooks + .addItem("strongholdCrossing", new WeightedRandomChestContent(ItemList.Bottle_Holy_Water.get(1L), 4, 8, 6)); + ChestGenHooks + .addItem("strongholdCrossing", new WeightedRandomChestContent(ItemList.McGuffium_239.get(1L), 1, 1, 10)); ChestGenHooks.addItem( - "strongholdCrossing", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.crateGtIngot, Materials.DamascusSteel, 1L), - 4, - 8, - 6)); - ChestGenHooks.addItem( - "strongholdCrossing", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.crateGtIngot, Materials.Steel, 1L), - 8, - 16, - 12)); - ChestGenHooks.addItem( - "strongholdCrossing", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.crateGtIngot, Materials.Bronze, 1L), - 8, - 16, - 12)); - ChestGenHooks.addItem( - "strongholdCrossing", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.crateGtIngot, Materials.Manganese, 1L), - 4, - 8, - 12)); - ChestGenHooks.addItem( - "strongholdCrossing", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.crateGtDust, Materials.Neodymium, 1L), - 4, - 8, - 6)); - ChestGenHooks.addItem( - "strongholdCrossing", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.crateGtDust, Materials.Chrome, 1L), - 2, - 4, - 6)); + "strongholdCrossing", + new WeightedRandomChestContent( + GT_OreDictUnificator.get(OrePrefixes.crateGtIngot, Materials.DamascusSteel, 1L), + 4, + 8, + 6)); + ChestGenHooks.addItem( + "strongholdCrossing", + new WeightedRandomChestContent( + GT_OreDictUnificator.get(OrePrefixes.crateGtIngot, Materials.Steel, 1L), + 8, + 16, + 12)); + ChestGenHooks.addItem( + "strongholdCrossing", + new WeightedRandomChestContent( + GT_OreDictUnificator.get(OrePrefixes.crateGtIngot, Materials.Bronze, 1L), + 8, + 16, + 12)); + ChestGenHooks.addItem( + "strongholdCrossing", + new WeightedRandomChestContent( + GT_OreDictUnificator.get(OrePrefixes.crateGtIngot, Materials.Manganese, 1L), + 4, + 8, + 12)); + ChestGenHooks.addItem( + "strongholdCrossing", + new WeightedRandomChestContent( + GT_OreDictUnificator.get(OrePrefixes.crateGtDust, Materials.Neodymium, 1L), + 4, + 8, + 6)); + ChestGenHooks.addItem( + "strongholdCrossing", + new WeightedRandomChestContent( + GT_OreDictUnificator.get(OrePrefixes.crateGtDust, Materials.Chrome, 1L), + 2, + 4, + 6)); ChestGenHooks.addItem( - "strongholdCorridor", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.toolHeadSword, Materials.DamascusSteel, 1L), - 1, - 4, - 6)); - ChestGenHooks.addItem( - "strongholdCorridor", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.toolHeadAxe, Materials.DamascusSteel, 1L), - 1, - 4, - 6)); - ChestGenHooks.addItem( - "strongholdCorridor", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.arrowGtWood, Materials.DamascusSteel, 1L), - 16, - 48, - 6)); - ChestGenHooks.addItem( - "strongholdCorridor", - new WeightedRandomChestContent( - GT_OreDictUnificator.get(OrePrefixes.arrowGtWood, Materials.SterlingSilver, 1L), - 8, - 24, - 6)); + "strongholdCorridor", + new WeightedRandomChestContent( + GT_OreDictUnificator.get(OrePrefixes.toolHeadSword, Materials.DamascusSteel, 1L), + 1, + 4, + 6)); + ChestGenHooks.addItem( + "strongholdCorridor", + new WeightedRandomChestContent( + GT_OreDictUnificator.get(OrePrefixes.toolHeadAxe, Materials.DamascusSteel, 1L), + 1, + 4, + 6)); + ChestGenHooks.addItem( + "strongholdCorridor", + new WeightedRandomChestContent( + GT_OreDictUnificator.get(OrePrefixes.arrowGtWood, Materials.DamascusSteel, 1L), + 16, + 48, + 6)); + ChestGenHooks.addItem( + "strongholdCorridor", + new WeightedRandomChestContent( + GT_OreDictUnificator.get(OrePrefixes.arrowGtWood, Materials.SterlingSilver, 1L), + 8, + 24, + 6)); } } diff --git a/src/main/java/gregtech/loaders/postload/GT_CraftingRecipeLoader.java b/src/main/java/gregtech/loaders/postload/GT_CraftingRecipeLoader.java index 5cf6a56ce4..cf646eaddc 100644 --- a/src/main/java/gregtech/loaders/postload/GT_CraftingRecipeLoader.java +++ b/src/main/java/gregtech/loaders/postload/GT_CraftingRecipeLoader.java @@ -36,74 +36,65 @@ public class GT_CraftingRecipeLoader implements Runnable { private static final String aTextIron1 = "X X"; private static final String aTextIron2 = "XXX"; private static final long bits_no_remove_buffered = GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.BUFFERED; + | GT_ModHandler.RecipeBits.BUFFERED; private static final long bits = GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE - | GT_ModHandler.RecipeBits.BUFFERED; + | GT_ModHandler.RecipeBits.BUFFERED; private static final String aTextPlateWrench = "PwP"; @Override public void run() { GT_Log.out.println("GT_Mod: Adding nerfed Vanilla Recipes."); GT_ModHandler.addCraftingRecipe( - new ItemStack(Items.bucket, 1), - bits_no_remove_buffered | GT_ModHandler.RecipeBits.DELETE_ALL_OTHER_SHAPED_RECIPES, - new Object[] { "XhX", " X ", 'X', OrePrefixes.plate.get(Materials.AnyIron) }); + new ItemStack(Items.bucket, 1), + bits_no_remove_buffered | GT_ModHandler.RecipeBits.DELETE_ALL_OTHER_SHAPED_RECIPES, + new Object[] { "XhX", " X ", 'X', OrePrefixes.plate.get(Materials.AnyIron) }); if (!GregTech_API.sRecipeFile.get(ConfigCategories.Recipes.recipereplacements, "Iron.Bucket", true)) { GT_ModHandler.addCraftingRecipe( - new ItemStack(Items.bucket, 1), - bits_no_remove_buffered, - new Object[] { aTextIron1, " X ", 'X', OrePrefixes.ingot.get(Materials.AnyIron) }); + new ItemStack(Items.bucket, 1), + bits_no_remove_buffered, + new Object[] { aTextIron1, " X ", 'X', OrePrefixes.ingot.get(Materials.AnyIron) }); } ItemStack tMat = new ItemStack(Items.iron_ingot); if (GregTech_API.sRecipeFile.get(ConfigCategories.Recipes.recipereplacements, "Iron.PressurePlate", true)) { ItemStack tStack; if (null != (tStack = GT_ModHandler.removeRecipe(tMat, tMat, null, null, null, null, null, null, null))) { GT_ModHandler.addCraftingRecipe( - tStack, - bits_no_remove_buffered | GT_ModHandler.RecipeBits.DELETE_ALL_OTHER_RECIPES, - new Object[] { "ShS", "XZX", "SdS", 'X', OrePrefixes.plate.get(Materials.AnyIron), 'S', - OrePrefixes.screw.get(Materials.Steel), 'Z', OrePrefixes.spring.get(Materials.Steel) }); + tStack, + bits_no_remove_buffered | GT_ModHandler.RecipeBits.DELETE_ALL_OTHER_RECIPES, + new Object[] { "ShS", "XZX", "SdS", 'X', OrePrefixes.plate.get(Materials.AnyIron), 'S', + OrePrefixes.screw.get(Materials.Steel), 'Z', OrePrefixes.spring.get(Materials.Steel) }); } } if (GregTech_API.sRecipeFile.get(ConfigCategories.Recipes.recipereplacements, "Iron.Door", true)) { ItemStack tStack; if (null != (tStack = GT_ModHandler.removeRecipe(tMat, tMat, null, tMat, tMat, null, tMat, tMat, null))) { GT_ModHandler.addCraftingRecipe( - tStack, - bits_no_remove_buffered | GT_ModHandler.RecipeBits.DELETE_ALL_OTHER_RECIPES, - new Object[] { "XX ", "XXh", "XX ", 'X', OrePrefixes.plate.get(Materials.AnyIron), 'S', - OrePrefixes.stick.get(Materials.Wood), 'I', OrePrefixes.ingot.get(Materials.AnyIron) }); + tStack, + bits_no_remove_buffered | GT_ModHandler.RecipeBits.DELETE_ALL_OTHER_RECIPES, + new Object[] { "XX ", "XXh", "XX ", 'X', OrePrefixes.plate.get(Materials.AnyIron), 'S', + OrePrefixes.stick.get(Materials.Wood), 'I', OrePrefixes.ingot.get(Materials.AnyIron) }); } } if (GregTech_API.sRecipeFile.get(ConfigCategories.Recipes.recipereplacements, "Iron.Cauldron", true)) { ItemStack tStack; if (null != (tStack = GT_ModHandler.removeRecipe(tMat, null, tMat, tMat, null, tMat, tMat, tMat, tMat))) { GT_ModHandler.addCraftingRecipe( - tStack, - bits_no_remove_buffered | GT_ModHandler.RecipeBits.DELETE_ALL_OTHER_RECIPES, - new Object[] { aTextIron1, "XhX", aTextIron2, 'X', OrePrefixes.plate.get(Materials.AnyIron), - 'S', OrePrefixes.stick.get(Materials.Wood), 'I', - OrePrefixes.ingot.get(Materials.AnyIron) }); + tStack, + bits_no_remove_buffered | GT_ModHandler.RecipeBits.DELETE_ALL_OTHER_RECIPES, + new Object[] { aTextIron1, "XhX", aTextIron2, 'X', OrePrefixes.plate.get(Materials.AnyIron), 'S', + OrePrefixes.stick.get(Materials.Wood), 'I', OrePrefixes.ingot.get(Materials.AnyIron) }); } } if (GregTech_API.sRecipeFile.get(ConfigCategories.Recipes.recipereplacements, "Iron.Hopper", true)) { ItemStack tStack; - if (null != (tStack = GT_ModHandler.removeRecipe( - tMat, - null, - tMat, - tMat, - new ItemStack(Blocks.chest, 1, 0), - tMat, - null, - tMat, - null))) { + if (null != (tStack = GT_ModHandler + .removeRecipe(tMat, null, tMat, tMat, new ItemStack(Blocks.chest, 1, 0), tMat, null, tMat, null))) { GT_ModHandler.addCraftingRecipe( - tStack, - bits_no_remove_buffered | GT_ModHandler.RecipeBits.DELETE_ALL_OTHER_RECIPES, - new Object[] { "XwX", "XCX", " X ", 'X', OrePrefixes.plate.get(Materials.AnyIron), 'S', - OrePrefixes.stick.get(Materials.Wood), 'I', OrePrefixes.ingot.get(Materials.AnyIron), - 'C', "craftingChest" }); + tStack, + bits_no_remove_buffered | GT_ModHandler.RecipeBits.DELETE_ALL_OTHER_RECIPES, + new Object[] { "XwX", "XCX", " X ", 'X', OrePrefixes.plate.get(Materials.AnyIron), 'S', + OrePrefixes.stick.get(Materials.Wood), 'I', OrePrefixes.ingot.get(Materials.AnyIron), 'C', + "craftingChest" }); } } if (GregTech_API.sRecipeFile.get(ConfigCategories.Recipes.recipereplacements, "Iron.Bars", true)) { @@ -111,28 +102,27 @@ public class GT_CraftingRecipeLoader implements Runnable { if (null != (tStack = GT_ModHandler.removeRecipe(tMat, tMat, tMat, tMat, tMat, tMat, null, null, null))) { tStack.stackSize /= 2; GT_ModHandler.addCraftingRecipe( - tStack, - bits_no_remove_buffered | GT_ModHandler.RecipeBits.DELETE_ALL_OTHER_RECIPES, - new Object[] { " w ", aTextIron2, aTextIron2, 'X', OrePrefixes.stick.get(Materials.AnyIron), - 'S', OrePrefixes.stick.get(Materials.Wood), 'I', - OrePrefixes.ingot.get(Materials.AnyIron) }); + tStack, + bits_no_remove_buffered | GT_ModHandler.RecipeBits.DELETE_ALL_OTHER_RECIPES, + new Object[] { " w ", aTextIron2, aTextIron2, 'X', OrePrefixes.stick.get(Materials.AnyIron), 'S', + OrePrefixes.stick.get(Materials.Wood), 'I', OrePrefixes.ingot.get(Materials.AnyIron) }); } } GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("ironFence", 6L), - bits_no_remove_buffered | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { aTextIron2, aTextIron2, " w ", 'X', OrePrefixes.stick.get(Materials.AnyIron), 'S', - OrePrefixes.stick.get(Materials.Wood), 'I', OrePrefixes.ingot.get(Materials.AnyIron) }); + GT_ModHandler.getIC2Item("ironFence", 6L), + bits_no_remove_buffered | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { aTextIron2, aTextIron2, " w ", 'X', OrePrefixes.stick.get(Materials.AnyIron), 'S', + OrePrefixes.stick.get(Materials.Wood), 'I', OrePrefixes.ingot.get(Materials.AnyIron) }); tMat = new ItemStack(Items.gold_ingot); if (GregTech_API.sRecipeFile.get(ConfigCategories.Recipes.recipereplacements, "Gold.PressurePlate", true)) { ItemStack tStack; if (null != (tStack = GT_ModHandler.removeRecipe(tMat, tMat, null, null, null, null, null, null, null))) { GT_ModHandler.addCraftingRecipe( - tStack, - bits_no_remove_buffered | GT_ModHandler.RecipeBits.DELETE_ALL_OTHER_RECIPES, - new Object[] { "ShS", "XZX", "SdS", 'X', OrePrefixes.plate.get(Materials.Gold), 'S', - OrePrefixes.screw.get(Materials.Steel), 'Z', OrePrefixes.spring.get(Materials.Steel) }); + tStack, + bits_no_remove_buffered | GT_ModHandler.RecipeBits.DELETE_ALL_OTHER_RECIPES, + new Object[] { "ShS", "XZX", "SdS", 'X', OrePrefixes.plate.get(Materials.Gold), 'S', + OrePrefixes.screw.get(Materials.Steel), 'Z', OrePrefixes.spring.get(Materials.Steel) }); } } tMat = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Rubber, 1L); @@ -140,9 +130,9 @@ public class GT_CraftingRecipeLoader implements Runnable { ItemStack tStack; if (null != (tStack = GT_ModHandler.removeRecipe(tMat, tMat, tMat, tMat, tMat, tMat, null, null, null))) { GT_ModHandler.addCraftingRecipe( - tStack, - bits_no_remove_buffered | GT_ModHandler.RecipeBits.DELETE_ALL_OTHER_RECIPES, - new Object[] { aTextIron2, aTextIron2, 'X', OrePrefixes.plate.get(Materials.Rubber) }); + tStack, + bits_no_remove_buffered | GT_ModHandler.RecipeBits.DELETE_ALL_OTHER_RECIPES, + new Object[] { aTextIron2, aTextIron2, 'X', OrePrefixes.plate.get(Materials.Rubber) }); } } GT_ModHandler.removeRecipeByOutputDelayed(ItemList.Bottle_Empty.get(1L)); @@ -165,1445 +155,1416 @@ public class GT_CraftingRecipeLoader implements Runnable { GT_ModHandler.removeRecipeByOutputDelayed(GT_ModHandler.getModItem(Forestry.ID, "engine", 1L, 2)); GT_ModHandler.removeRecipeByOutputDelayed(GT_ModHandler.getModItem(Forestry.ID, "engine", 1L, 4)); - ItemStack tStack = GT_ModHandler.removeRecipe( - new ItemStack(Blocks.planks, 1, 0), - null, - null, - new ItemStack(Blocks.planks, 1, 0)); + ItemStack tStack = GT_ModHandler + .removeRecipe(new ItemStack(Blocks.planks, 1, 0), null, null, new ItemStack(Blocks.planks, 1, 0)); if (tStack != null) { GT_ModHandler.addCraftingRecipe( - GT_Utility.copyAmount( - GT_Mod.gregtechproxy.mNerfedWoodPlank ? tStack.stackSize : tStack.stackSize * 5L / 4, - tStack), - bits_no_remove_buffered, - new Object[] { "s", "P", "P", 'P', OrePrefixes.plank.get(Materials.Wood) }); + GT_Utility.copyAmount( + GT_Mod.gregtechproxy.mNerfedWoodPlank ? tStack.stackSize : tStack.stackSize * 5L / 4, + tStack), + bits_no_remove_buffered, + new Object[] { "s", "P", "P", 'P', OrePrefixes.plank.get(Materials.Wood) }); GT_ModHandler.addCraftingRecipe( - GT_Utility.copyAmount( - GT_Mod.gregtechproxy.mNerfedWoodPlank ? tStack.stackSize / 2 : tStack.stackSize, - tStack), - bits_no_remove_buffered, - new Object[] { "P", "P", 'P', OrePrefixes.plank.get(Materials.Wood) }); + GT_Utility.copyAmount( + GT_Mod.gregtechproxy.mNerfedWoodPlank ? tStack.stackSize / 2 : tStack.stackSize, + tStack), + bits_no_remove_buffered, + new Object[] { "P", "P", 'P', OrePrefixes.plank.get(Materials.Wood) }); } GT_ModHandler.addCraftingRecipe( - new ItemStack(Blocks.stone_button, 2, 0), - bits_no_remove_buffered, - new Object[] { "S", "S", 'S', OrePrefixes.stone }); + new ItemStack(Blocks.stone_button, 2, 0), + bits_no_remove_buffered, + new Object[] { "S", "S", 'S', OrePrefixes.stone }); GT_ModHandler.addShapelessCraftingRecipe( - new ItemStack(Blocks.stone_button, 1, 0), - bits_no_remove_buffered, - new Object[] { OrePrefixes.stone }); + new ItemStack(Blocks.stone_button, 1, 0), + bits_no_remove_buffered, + new Object[] { OrePrefixes.stone }); GT_Log.out.println("GT_Mod: Adding Vanilla Convenience Recipes."); GT_ModHandler.addCraftingRecipe( - new ItemStack(Blocks.stonebrick, 1, 3), - bits_no_remove_buffered, - new Object[] { "f", "X", 'X', new ItemStack(Blocks.double_stone_slab, 1, 8) }); + new ItemStack(Blocks.stonebrick, 1, 3), + bits_no_remove_buffered, + new Object[] { "f", "X", 'X', new ItemStack(Blocks.double_stone_slab, 1, 8) }); GT_ModHandler.addCraftingRecipe( - new ItemStack(Blocks.gravel, 1, 0), - bits_no_remove_buffered, - new Object[] { "h", "X", 'X', new ItemStack(Blocks.cobblestone, 1, 0) }); + new ItemStack(Blocks.gravel, 1, 0), + bits_no_remove_buffered, + new Object[] { "h", "X", 'X', new ItemStack(Blocks.cobblestone, 1, 0) }); GT_ModHandler.addCraftingRecipe( - new ItemStack(Blocks.sand, 1, 0), - bits_no_remove_buffered, - new Object[] { "h", "X", 'X', new ItemStack(Blocks.gravel, 1, 0) }); + new ItemStack(Blocks.sand, 1, 0), + bits_no_remove_buffered, + new Object[] { "h", "X", 'X', new ItemStack(Blocks.gravel, 1, 0) }); GT_ModHandler.addCraftingRecipe( - new ItemStack(Blocks.cobblestone, 1, 0), - bits_no_remove_buffered, - new Object[] { "h", "X", 'X', new ItemStack(Blocks.stone, 1, 0) }); + new ItemStack(Blocks.cobblestone, 1, 0), + bits_no_remove_buffered, + new Object[] { "h", "X", 'X', new ItemStack(Blocks.stone, 1, 0) }); GT_ModHandler.addCraftingRecipe( - new ItemStack(Blocks.stonebrick, 1, 2), - bits_no_remove_buffered, - new Object[] { "h", "X", 'X', new ItemStack(Blocks.stonebrick, 1, 0) }); + new ItemStack(Blocks.stonebrick, 1, 2), + bits_no_remove_buffered, + new Object[] { "h", "X", 'X', new ItemStack(Blocks.stonebrick, 1, 0) }); GT_ModHandler.addShapelessCraftingRecipe( - new ItemStack(Blocks.double_stone_slab, 1, 8), - bits_no_remove_buffered, - new Object[] { new ItemStack(Blocks.double_stone_slab, 1, 0) }); + new ItemStack(Blocks.double_stone_slab, 1, 8), + bits_no_remove_buffered, + new Object[] { new ItemStack(Blocks.double_stone_slab, 1, 0) }); GT_ModHandler.addShapelessCraftingRecipe( - new ItemStack(Blocks.double_stone_slab, 1, 0), - bits_no_remove_buffered, - new Object[] { new ItemStack(Blocks.double_stone_slab, 1, 8) }); + new ItemStack(Blocks.double_stone_slab, 1, 0), + bits_no_remove_buffered, + new Object[] { new ItemStack(Blocks.double_stone_slab, 1, 8) }); GT_ModHandler.addCraftingRecipe( - new ItemStack(Blocks.double_stone_slab, 1, 0), - bits_no_remove_buffered, - new Object[] { "B", "B", 'B', new ItemStack(Blocks.stone_slab, 1, 0) }); + new ItemStack(Blocks.double_stone_slab, 1, 0), + bits_no_remove_buffered, + new Object[] { "B", "B", 'B', new ItemStack(Blocks.stone_slab, 1, 0) }); GT_ModHandler.addCraftingRecipe( - new ItemStack(Blocks.cobblestone, 1, 0), - bits_no_remove_buffered, - new Object[] { "B", "B", 'B', new ItemStack(Blocks.stone_slab, 1, 3) }); + new ItemStack(Blocks.cobblestone, 1, 0), + bits_no_remove_buffered, + new Object[] { "B", "B", 'B', new ItemStack(Blocks.stone_slab, 1, 3) }); GT_ModHandler.addCraftingRecipe( - new ItemStack(Blocks.brick_block, 1, 0), - bits_no_remove_buffered, - new Object[] { "B", "B", 'B', new ItemStack(Blocks.stone_slab, 1, 4) }); + new ItemStack(Blocks.brick_block, 1, 0), + bits_no_remove_buffered, + new Object[] { "B", "B", 'B', new ItemStack(Blocks.stone_slab, 1, 4) }); GT_ModHandler.addCraftingRecipe( - new ItemStack(Blocks.stonebrick, 1, 0), - bits_no_remove_buffered, - new Object[] { "B", "B", 'B', new ItemStack(Blocks.stone_slab, 1, 5) }); + new ItemStack(Blocks.stonebrick, 1, 0), + bits_no_remove_buffered, + new Object[] { "B", "B", 'B', new ItemStack(Blocks.stone_slab, 1, 5) }); GT_ModHandler.addCraftingRecipe( - new ItemStack(Blocks.nether_brick, 1, 0), - bits_no_remove_buffered, - new Object[] { "B", "B", 'B', new ItemStack(Blocks.stone_slab, 1, 6) }); + new ItemStack(Blocks.nether_brick, 1, 0), + bits_no_remove_buffered, + new Object[] { "B", "B", 'B', new ItemStack(Blocks.stone_slab, 1, 6) }); GT_ModHandler.addCraftingRecipe( - new ItemStack(Blocks.quartz_block, 1, 0), - bits_no_remove_buffered, - new Object[] { "B", "B", 'B', new ItemStack(Blocks.stone_slab, 1, 7) }); + new ItemStack(Blocks.quartz_block, 1, 0), + bits_no_remove_buffered, + new Object[] { "B", "B", 'B', new ItemStack(Blocks.stone_slab, 1, 7) }); GT_ModHandler.addCraftingRecipe( - new ItemStack(Blocks.double_stone_slab, 1, 8), - bits_no_remove_buffered, - new Object[] { "B", "B", 'B', new ItemStack(Blocks.stone_slab, 1, 8) }); + new ItemStack(Blocks.double_stone_slab, 1, 8), + bits_no_remove_buffered, + new Object[] { "B", "B", 'B', new ItemStack(Blocks.stone_slab, 1, 8) }); GT_ModHandler.addCraftingRecipe( - new ItemStack(Blocks.planks, 1, 0), - bits_no_remove_buffered, - new Object[] { "B", "B", 'B', new ItemStack(Blocks.wooden_slab, 1, 0) }); + new ItemStack(Blocks.planks, 1, 0), + bits_no_remove_buffered, + new Object[] { "B", "B", 'B', new ItemStack(Blocks.wooden_slab, 1, 0) }); GT_ModHandler.addCraftingRecipe( - new ItemStack(Blocks.planks, 1, 1), - bits_no_remove_buffered, - new Object[] { "B", "B", 'B', new ItemStack(Blocks.wooden_slab, 1, 1) }); + new ItemStack(Blocks.planks, 1, 1), + bits_no_remove_buffered, + new Object[] { "B", "B", 'B', new ItemStack(Blocks.wooden_slab, 1, 1) }); GT_ModHandler.addCraftingRecipe( - new ItemStack(Blocks.planks, 1, 2), - bits_no_remove_buffered, - new Object[] { "B", "B", 'B', new ItemStack(Blocks.wooden_slab, 1, 2) }); + new ItemStack(Blocks.planks, 1, 2), + bits_no_remove_buffered, + new Object[] { "B", "B", 'B', new ItemStack(Blocks.wooden_slab, 1, 2) }); GT_ModHandler.addCraftingRecipe( - new ItemStack(Blocks.planks, 1, 3), - bits_no_remove_buffered, - new Object[] { "B", "B", 'B', new ItemStack(Blocks.wooden_slab, 1, 3) }); + new ItemStack(Blocks.planks, 1, 3), + bits_no_remove_buffered, + new Object[] { "B", "B", 'B', new ItemStack(Blocks.wooden_slab, 1, 3) }); GT_ModHandler.addCraftingRecipe( - new ItemStack(Blocks.planks, 1, 4), - bits_no_remove_buffered, - new Object[] { "B", "B", 'B', new ItemStack(Blocks.wooden_slab, 1, 4) }); + new ItemStack(Blocks.planks, 1, 4), + bits_no_remove_buffered, + new Object[] { "B", "B", 'B', new ItemStack(Blocks.wooden_slab, 1, 4) }); GT_ModHandler.addCraftingRecipe( - new ItemStack(Blocks.planks, 1, 5), - bits_no_remove_buffered, - new Object[] { "B", "B", 'B', new ItemStack(Blocks.wooden_slab, 1, 5) }); + new ItemStack(Blocks.planks, 1, 5), + bits_no_remove_buffered, + new Object[] { "B", "B", 'B', new ItemStack(Blocks.wooden_slab, 1, 5) }); GT_ModHandler.addCraftingRecipe( - new ItemStack(Blocks.planks, 1, 6), - bits_no_remove_buffered, - new Object[] { "B", "B", 'B', new ItemStack(Blocks.wooden_slab, 1, 6) }); + new ItemStack(Blocks.planks, 1, 6), + bits_no_remove_buffered, + new Object[] { "B", "B", 'B', new ItemStack(Blocks.wooden_slab, 1, 6) }); GT_ModHandler.addCraftingRecipe( - new ItemStack(Blocks.planks, 1, 7), - bits_no_remove_buffered, - new Object[] { "B", "B", 'B', new ItemStack(Blocks.wooden_slab, 1, 7) }); + new ItemStack(Blocks.planks, 1, 7), + bits_no_remove_buffered, + new Object[] { "B", "B", 'B', new ItemStack(Blocks.wooden_slab, 1, 7) }); GT_ModHandler.addCraftingRecipe( - new ItemStack(Items.stick, 2, 0), - bits_no_remove_buffered, - new Object[] { "s", "X", 'X', new ItemStack(Blocks.deadbush, 1, 32767) }); + new ItemStack(Items.stick, 2, 0), + bits_no_remove_buffered, + new Object[] { "s", "X", 'X', new ItemStack(Blocks.deadbush, 1, 32767) }); GT_ModHandler.addCraftingRecipe( - new ItemStack(Items.stick, 2, 0), - bits_no_remove_buffered, - new Object[] { "s", "X", 'X', new ItemStack(Blocks.tallgrass, 1, 0) }); + new ItemStack(Items.stick, 2, 0), + bits_no_remove_buffered, + new Object[] { "s", "X", 'X', new ItemStack(Blocks.tallgrass, 1, 0) }); GT_ModHandler.addCraftingRecipe( - new ItemStack(Items.stick, 1, 0), - bits_no_remove_buffered, - new Object[] { "s", "X", 'X', OrePrefixes.treeSapling }); + new ItemStack(Items.stick, 1, 0), + bits_no_remove_buffered, + new Object[] { "s", "X", 'X', OrePrefixes.treeSapling }); GT_ModHandler.addCraftingRecipe( - new ItemStack(Items.comparator, 1, 0), - bits_no_remove_buffered, - new Object[] { " T ", "TQT", "SSS", 'Q', OreDictNames.craftingQuartz, 'S', OrePrefixes.stoneSmooth, 'T', - OreDictNames.craftingRedstoneTorch }); + new ItemStack(Items.comparator, 1, 0), + bits_no_remove_buffered, + new Object[] { " T ", "TQT", "SSS", 'Q', OreDictNames.craftingQuartz, 'S', OrePrefixes.stoneSmooth, 'T', + OreDictNames.craftingRedstoneTorch }); GT_Log.out.println("GT_Mod: Adding Tool Recipes."); GT_ModHandler.addCraftingRecipe( - new ItemStack(Items.minecart, 1), - bits_no_remove_buffered | GT_ModHandler.RecipeBits.DELETE_ALL_OTHER_SHAPED_RECIPES, - new Object[] { " h ", "PwP", "WPW", 'P', OrePrefixes.plate.get(Materials.AnyIron), 'W', - ItemList.Component_Minecart_Wheels_Iron }); + new ItemStack(Items.minecart, 1), + bits_no_remove_buffered | GT_ModHandler.RecipeBits.DELETE_ALL_OTHER_SHAPED_RECIPES, + new Object[] { " h ", "PwP", "WPW", 'P', OrePrefixes.plate.get(Materials.AnyIron), 'W', + ItemList.Component_Minecart_Wheels_Iron }); GT_ModHandler.addCraftingRecipe( - new ItemStack(Items.minecart, 1), - bits_no_remove_buffered, - new Object[] { " h ", "PwP", "WPW", 'P', OrePrefixes.plate.get(Materials.Steel), 'W', - ItemList.Component_Minecart_Wheels_Steel }); + new ItemStack(Items.minecart, 1), + bits_no_remove_buffered, + new Object[] { " h ", "PwP", "WPW", 'P', OrePrefixes.plate.get(Materials.Steel), 'W', + ItemList.Component_Minecart_Wheels_Steel }); GT_ModHandler.addCraftingRecipe( - new ItemStack(Items.chest_minecart, 1), - bits_no_remove_buffered | GT_ModHandler.RecipeBits.REVERSIBLE - | GT_ModHandler.RecipeBits.DELETE_ALL_OTHER_SHAPED_RECIPES, - new Object[] { "X", "C", 'C', new ItemStack(Items.minecart, 1), 'X', OreDictNames.craftingChest }); + new ItemStack(Items.chest_minecart, 1), + bits_no_remove_buffered | GT_ModHandler.RecipeBits.REVERSIBLE + | GT_ModHandler.RecipeBits.DELETE_ALL_OTHER_SHAPED_RECIPES, + new Object[] { "X", "C", 'C', new ItemStack(Items.minecart, 1), 'X', OreDictNames.craftingChest }); GT_ModHandler.addCraftingRecipe( - new ItemStack(Items.furnace_minecart, 1), - bits_no_remove_buffered | GT_ModHandler.RecipeBits.REVERSIBLE - | GT_ModHandler.RecipeBits.DELETE_ALL_OTHER_SHAPED_RECIPES, - new Object[] { "X", "C", 'C', new ItemStack(Items.minecart, 1), 'X', OreDictNames.craftingFurnace }); + new ItemStack(Items.furnace_minecart, 1), + bits_no_remove_buffered | GT_ModHandler.RecipeBits.REVERSIBLE + | GT_ModHandler.RecipeBits.DELETE_ALL_OTHER_SHAPED_RECIPES, + new Object[] { "X", "C", 'C', new ItemStack(Items.minecart, 1), 'X', OreDictNames.craftingFurnace }); GT_ModHandler.addCraftingRecipe( - new ItemStack(Items.hopper_minecart, 1), - bits_no_remove_buffered | GT_ModHandler.RecipeBits.REVERSIBLE - | GT_ModHandler.RecipeBits.DELETE_ALL_OTHER_SHAPED_RECIPES, - new Object[] { "X", "C", 'C', new ItemStack(Items.minecart, 1), 'X', - new ItemStack(Blocks.hopper, 1, 32767) }); + new ItemStack(Items.hopper_minecart, 1), + bits_no_remove_buffered | GT_ModHandler.RecipeBits.REVERSIBLE + | GT_ModHandler.RecipeBits.DELETE_ALL_OTHER_SHAPED_RECIPES, + new Object[] { "X", "C", 'C', new ItemStack(Items.minecart, 1), 'X', + new ItemStack(Blocks.hopper, 1, 32767) }); GT_ModHandler.addCraftingRecipe( - new ItemStack(Items.tnt_minecart, 1), - bits_no_remove_buffered | GT_ModHandler.RecipeBits.REVERSIBLE - | GT_ModHandler.RecipeBits.DELETE_ALL_OTHER_SHAPED_RECIPES, - new Object[] { "X", "C", 'C', new ItemStack(Items.minecart, 1), 'X', - new ItemStack(Blocks.tnt, 1, 32767) }); + new ItemStack(Items.tnt_minecart, 1), + bits_no_remove_buffered | GT_ModHandler.RecipeBits.REVERSIBLE + | GT_ModHandler.RecipeBits.DELETE_ALL_OTHER_SHAPED_RECIPES, + new Object[] { "X", "C", 'C', new ItemStack(Items.minecart, 1), 'X', new ItemStack(Blocks.tnt, 1, 32767) }); GT_ModHandler.addCraftingRecipe( - new ItemStack(Items.chainmail_helmet, 1), - bits_no_remove_buffered | GT_ModHandler.RecipeBits.REVERSIBLE - | GT_ModHandler.RecipeBits.DELETE_ALL_OTHER_SHAPED_RECIPES, - new Object[] { "RRR", "RhR", 'R', OrePrefixes.ring.get(Materials.Steel) }); + new ItemStack(Items.chainmail_helmet, 1), + bits_no_remove_buffered | GT_ModHandler.RecipeBits.REVERSIBLE + | GT_ModHandler.RecipeBits.DELETE_ALL_OTHER_SHAPED_RECIPES, + new Object[] { "RRR", "RhR", 'R', OrePrefixes.ring.get(Materials.Steel) }); GT_ModHandler.addCraftingRecipe( - new ItemStack(Items.chainmail_chestplate, 1), - bits_no_remove_buffered | GT_ModHandler.RecipeBits.REVERSIBLE - | GT_ModHandler.RecipeBits.DELETE_ALL_OTHER_SHAPED_RECIPES, - new Object[] { "RhR", "RRR", "RRR", 'R', OrePrefixes.ring.get(Materials.Steel) }); + new ItemStack(Items.chainmail_chestplate, 1), + bits_no_remove_buffered | GT_ModHandler.RecipeBits.REVERSIBLE + | GT_ModHandler.RecipeBits.DELETE_ALL_OTHER_SHAPED_RECIPES, + new Object[] { "RhR", "RRR", "RRR", 'R', OrePrefixes.ring.get(Materials.Steel) }); GT_ModHandler.addCraftingRecipe( - new ItemStack(Items.chainmail_leggings, 1), - bits_no_remove_buffered | GT_ModHandler.RecipeBits.REVERSIBLE - | GT_ModHandler.RecipeBits.DELETE_ALL_OTHER_SHAPED_RECIPES, - new Object[] { "RRR", "RhR", "R R", 'R', OrePrefixes.ring.get(Materials.Steel) }); + new ItemStack(Items.chainmail_leggings, 1), + bits_no_remove_buffered | GT_ModHandler.RecipeBits.REVERSIBLE + | GT_ModHandler.RecipeBits.DELETE_ALL_OTHER_SHAPED_RECIPES, + new Object[] { "RRR", "RhR", "R R", 'R', OrePrefixes.ring.get(Materials.Steel) }); GT_ModHandler.addCraftingRecipe( - new ItemStack(Items.chainmail_boots, 1), - bits_no_remove_buffered | GT_ModHandler.RecipeBits.REVERSIBLE - | GT_ModHandler.RecipeBits.DELETE_ALL_OTHER_SHAPED_RECIPES, - new Object[] { "R R", "RhR", 'R', OrePrefixes.ring.get(Materials.Steel) }); + new ItemStack(Items.chainmail_boots, 1), + bits_no_remove_buffered | GT_ModHandler.RecipeBits.REVERSIBLE + | GT_ModHandler.RecipeBits.DELETE_ALL_OTHER_SHAPED_RECIPES, + new Object[] { "R R", "RhR", 'R', OrePrefixes.ring.get(Materials.Steel) }); GT_Log.out.println("GT_Mod: Adding Wool and Color releated Recipes."); GT_ModHandler.addShapelessCraftingRecipe( - new ItemStack(Blocks.wool, 1, 1), - bits_no_remove_buffered, - new Object[] { new ItemStack(Blocks.wool, 1, 0), Dyes.dyeOrange }); + new ItemStack(Blocks.wool, 1, 1), + bits_no_remove_buffered, + new Object[] { new ItemStack(Blocks.wool, 1, 0), Dyes.dyeOrange }); GT_ModHandler.addShapelessCraftingRecipe( - new ItemStack(Blocks.wool, 1, 2), - bits_no_remove_buffered, - new Object[] { new ItemStack(Blocks.wool, 1, 0), Dyes.dyeMagenta }); + new ItemStack(Blocks.wool, 1, 2), + bits_no_remove_buffered, + new Object[] { new ItemStack(Blocks.wool, 1, 0), Dyes.dyeMagenta }); GT_ModHandler.addShapelessCraftingRecipe( - new ItemStack(Blocks.wool, 1, 3), - bits_no_remove_buffered, - new Object[] { new ItemStack(Blocks.wool, 1, 0), Dyes.dyeLightBlue }); + new ItemStack(Blocks.wool, 1, 3), + bits_no_remove_buffered, + new Object[] { new ItemStack(Blocks.wool, 1, 0), Dyes.dyeLightBlue }); GT_ModHandler.addShapelessCraftingRecipe( - new ItemStack(Blocks.wool, 1, 4), - bits_no_remove_buffered, - new Object[] { new ItemStack(Blocks.wool, 1, 0), Dyes.dyeYellow }); + new ItemStack(Blocks.wool, 1, 4), + bits_no_remove_buffered, + new Object[] { new ItemStack(Blocks.wool, 1, 0), Dyes.dyeYellow }); GT_ModHandler.addShapelessCraftingRecipe( - new ItemStack(Blocks.wool, 1, 5), - bits_no_remove_buffered, - new Object[] { new ItemStack(Blocks.wool, 1, 0), Dyes.dyeLime }); + new ItemStack(Blocks.wool, 1, 5), + bits_no_remove_buffered, + new Object[] { new ItemStack(Blocks.wool, 1, 0), Dyes.dyeLime }); GT_ModHandler.addShapelessCraftingRecipe( - new ItemStack(Blocks.wool, 1, 6), - bits_no_remove_buffered, - new Object[] { new ItemStack(Blocks.wool, 1, 0), Dyes.dyePink }); + new ItemStack(Blocks.wool, 1, 6), + bits_no_remove_buffered, + new Object[] { new ItemStack(Blocks.wool, 1, 0), Dyes.dyePink }); GT_ModHandler.addShapelessCraftingRecipe( - new ItemStack(Blocks.wool, 1, 7), - bits_no_remove_buffered, - new Object[] { new ItemStack(Blocks.wool, 1, 0), Dyes.dyeGray }); + new ItemStack(Blocks.wool, 1, 7), + bits_no_remove_buffered, + new Object[] { new ItemStack(Blocks.wool, 1, 0), Dyes.dyeGray }); GT_ModHandler.addShapelessCraftingRecipe( - new ItemStack(Blocks.wool, 1, 8), - bits_no_remove_buffered, - new Object[] { new ItemStack(Blocks.wool, 1, 0), Dyes.dyeLightGray }); + new ItemStack(Blocks.wool, 1, 8), + bits_no_remove_buffered, + new Object[] { new ItemStack(Blocks.wool, 1, 0), Dyes.dyeLightGray }); GT_ModHandler.addShapelessCraftingRecipe( - new ItemStack(Blocks.wool, 1, 9), - bits_no_remove_buffered, - new Object[] { new ItemStack(Blocks.wool, 1, 0), Dyes.dyeCyan }); + new ItemStack(Blocks.wool, 1, 9), + bits_no_remove_buffered, + new Object[] { new ItemStack(Blocks.wool, 1, 0), Dyes.dyeCyan }); GT_ModHandler.addShapelessCraftingRecipe( - new ItemStack(Blocks.wool, 1, 10), - bits_no_remove_buffered, - new Object[] { new ItemStack(Blocks.wool, 1, 0), Dyes.dyePurple }); + new ItemStack(Blocks.wool, 1, 10), + bits_no_remove_buffered, + new Object[] { new ItemStack(Blocks.wool, 1, 0), Dyes.dyePurple }); GT_ModHandler.addShapelessCraftingRecipe( - new ItemStack(Blocks.wool, 1, 11), - bits_no_remove_buffered, - new Object[] { new ItemStack(Blocks.wool, 1, 0), Dyes.dyeBlue }); + new ItemStack(Blocks.wool, 1, 11), + bits_no_remove_buffered, + new Object[] { new ItemStack(Blocks.wool, 1, 0), Dyes.dyeBlue }); GT_ModHandler.addShapelessCraftingRecipe( - new ItemStack(Blocks.wool, 1, 12), - bits_no_remove_buffered, - new Object[] { new ItemStack(Blocks.wool, 1, 0), Dyes.dyeBrown }); + new ItemStack(Blocks.wool, 1, 12), + bits_no_remove_buffered, + new Object[] { new ItemStack(Blocks.wool, 1, 0), Dyes.dyeBrown }); GT_ModHandler.addShapelessCraftingRecipe( - new ItemStack(Blocks.wool, 1, 13), - bits_no_remove_buffered, - new Object[] { new ItemStack(Blocks.wool, 1, 0), Dyes.dyeGreen }); + new ItemStack(Blocks.wool, 1, 13), + bits_no_remove_buffered, + new Object[] { new ItemStack(Blocks.wool, 1, 0), Dyes.dyeGreen }); GT_ModHandler.addShapelessCraftingRecipe( - new ItemStack(Blocks.wool, 1, 14), - bits_no_remove_buffered, - new Object[] { new ItemStack(Blocks.wool, 1, 0), Dyes.dyeRed }); + new ItemStack(Blocks.wool, 1, 14), + bits_no_remove_buffered, + new Object[] { new ItemStack(Blocks.wool, 1, 0), Dyes.dyeRed }); GT_ModHandler.addShapelessCraftingRecipe( - new ItemStack(Blocks.wool, 1, 15), - bits_no_remove_buffered, - new Object[] { new ItemStack(Blocks.wool, 1, 0), Dyes.dyeBlack }); + new ItemStack(Blocks.wool, 1, 15), + bits_no_remove_buffered, + new Object[] { new ItemStack(Blocks.wool, 1, 0), Dyes.dyeBlack }); GT_ModHandler.addCraftingRecipe( - new ItemStack(Blocks.stained_glass, 8, 0), - bits_no_remove_buffered, - new Object[] { "GGG", "GDG", "GGG", 'G', new ItemStack(Blocks.glass, 1), 'D', Dyes.dyeWhite }); + new ItemStack(Blocks.stained_glass, 8, 0), + bits_no_remove_buffered, + new Object[] { "GGG", "GDG", "GGG", 'G', new ItemStack(Blocks.glass, 1), 'D', Dyes.dyeWhite }); GT_Log.out.println("GT_Mod: Putting a Potato on a Stick."); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Packaged_PotatoChips.get(1L), - bits_no_remove_buffered, - new Object[] { OrePrefixes.foil.get(Materials.Aluminium), ItemList.Food_PotatoChips }); - GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Packaged_ChiliChips.get(1L), - bits_no_remove_buffered, - new Object[] { OrePrefixes.foil.get(Materials.Aluminium), ItemList.Food_ChiliChips }); - GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Packaged_Fries.get(1L), - bits_no_remove_buffered, - new Object[] { OrePrefixes.plateDouble.get(Materials.Paper), ItemList.Food_Fries }); - GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Chum_On_Stick.get(1L), - bits_no_remove_buffered, - new Object[] { OrePrefixes.stick.get(Materials.Wood), ItemList.Food_Chum }); - GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Potato_On_Stick.get(1L), - bits_no_remove_buffered, - new Object[] { OrePrefixes.stick.get(Materials.Wood), ItemList.Food_Raw_Potato }); - GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Potato_On_Stick_Roasted.get(1L), - bits_no_remove_buffered, - new Object[] { OrePrefixes.stick.get(Materials.Wood), ItemList.Food_Baked_Potato }); - GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Dough.get(1L), - bits_no_remove_buffered, - new Object[] { OrePrefixes.bucket.get(Materials.Water), OrePrefixes.dust.get(Materials.Wheat) }); - GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Dough_Sugar.get(2L), - bits_no_remove_buffered, - new Object[] { "foodDough", OrePrefixes.dust.get(Materials.Sugar) }); - GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Dough_Chocolate.get(2L), - bits_no_remove_buffered, - new Object[] { "foodDough", OrePrefixes.dust.get(Materials.Cocoa) }); - GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Dough_Chocolate.get(2L), - bits_no_remove_buffered, - new Object[] { "foodDough", OrePrefixes.dust.get(Materials.Chocolate) }); - GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Flat_Dough.get(1L), - bits_no_remove_buffered, - new Object[] { "foodDough", ToolDictNames.craftingToolRollingPin }); - GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Raw_Bun.get(1L), - bits_no_remove_buffered, - new Object[] { "foodDough" }); - GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Raw_Bread.get(1L), - bits_no_remove_buffered, - new Object[] { "foodDough", "foodDough" }); - GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Raw_Baguette.get(1L), - bits_no_remove_buffered, - new Object[] { "foodDough", "foodDough", "foodDough" }); - GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Raw_Cake.get(1L), - bits_no_remove_buffered, - new Object[] { ItemList.Food_Dough_Sugar, ItemList.Food_Dough_Sugar, ItemList.Food_Dough_Sugar, - ItemList.Food_Dough_Sugar }); - GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_ChiliChips.get(1L), - bits_no_remove_buffered, - new Object[] { ItemList.Food_PotatoChips, OrePrefixes.dust.get(Materials.Chili) }); - - GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Sliced_Buns.get(1L), - bits_no_remove_buffered, - new Object[] { ItemList.Food_Sliced_Bun, ItemList.Food_Sliced_Bun }); - GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Sliced_Breads.get(1L), - bits_no_remove_buffered, - new Object[] { ItemList.Food_Sliced_Bread, ItemList.Food_Sliced_Bread }); + ItemList.Food_Packaged_PotatoChips.get(1L), + bits_no_remove_buffered, + new Object[] { OrePrefixes.foil.get(Materials.Aluminium), ItemList.Food_PotatoChips }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Sliced_Baguettes.get(1L), - bits_no_remove_buffered, - new Object[] { ItemList.Food_Sliced_Baguette, ItemList.Food_Sliced_Baguette }); - GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Sliced_Bun.get(2L), - bits_no_remove_buffered, - new Object[] { ItemList.Food_Sliced_Buns }); - GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Sliced_Bread.get(2L), - bits_no_remove_buffered, - new Object[] { ItemList.Food_Sliced_Breads }); - GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Sliced_Baguette.get(2L), - bits_no_remove_buffered, - new Object[] { ItemList.Food_Sliced_Baguettes }); - - GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Burger_Veggie.get(1L), - bits_no_remove_buffered, - new Object[] { ItemList.Food_Sliced_Buns, ItemList.Food_Sliced_Cucumber, ItemList.Food_Sliced_Tomato, - ItemList.Food_Sliced_Onion }); - GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Burger_Cheese.get(1L), - bits_no_remove_buffered, - new Object[] { ItemList.Food_Sliced_Buns, ItemList.Food_Sliced_Cheese, ItemList.Food_Sliced_Cheese, - ItemList.Food_Sliced_Cheese }); + ItemList.Food_Packaged_ChiliChips.get(1L), + bits_no_remove_buffered, + new Object[] { OrePrefixes.foil.get(Materials.Aluminium), ItemList.Food_ChiliChips }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Burger_Meat.get(1L), - bits_no_remove_buffered, - new Object[] { ItemList.Food_Sliced_Buns, OrePrefixes.dust.get(Materials.MeatCooked) }); + ItemList.Food_Packaged_Fries.get(1L), + bits_no_remove_buffered, + new Object[] { OrePrefixes.plateDouble.get(Materials.Paper), ItemList.Food_Fries }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Burger_Chum.get(1L), - bits_no_remove_buffered, - new Object[] { ItemList.Food_Sliced_Buns, ItemList.Food_Chum }); + ItemList.Food_Chum_On_Stick.get(1L), + bits_no_remove_buffered, + new Object[] { OrePrefixes.stick.get(Materials.Wood), ItemList.Food_Chum }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Burger_Veggie.get(1L), - bits_no_remove_buffered, - new Object[] { ItemList.Food_Sliced_Bun, ItemList.Food_Sliced_Bun, ItemList.Food_Sliced_Cucumber, - ItemList.Food_Sliced_Tomato, ItemList.Food_Sliced_Onion }); + ItemList.Food_Potato_On_Stick.get(1L), + bits_no_remove_buffered, + new Object[] { OrePrefixes.stick.get(Materials.Wood), ItemList.Food_Raw_Potato }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Burger_Cheese.get(1L), - bits_no_remove_buffered, - new Object[] { ItemList.Food_Sliced_Bun, ItemList.Food_Sliced_Bun, ItemList.Food_Sliced_Cheese, - ItemList.Food_Sliced_Cheese, ItemList.Food_Sliced_Cheese }); + ItemList.Food_Potato_On_Stick_Roasted.get(1L), + bits_no_remove_buffered, + new Object[] { OrePrefixes.stick.get(Materials.Wood), ItemList.Food_Baked_Potato }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Burger_Meat.get(1L), - bits_no_remove_buffered, - new Object[] { ItemList.Food_Sliced_Bun, ItemList.Food_Sliced_Bun, - OrePrefixes.dust.get(Materials.MeatCooked) }); + ItemList.Food_Dough.get(1L), + bits_no_remove_buffered, + new Object[] { OrePrefixes.bucket.get(Materials.Water), OrePrefixes.dust.get(Materials.Wheat) }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Burger_Chum.get(1L), - bits_no_remove_buffered, - new Object[] { ItemList.Food_Sliced_Bun, ItemList.Food_Sliced_Bun, ItemList.Food_Chum }); - + ItemList.Food_Dough_Sugar.get(2L), + bits_no_remove_buffered, + new Object[] { "foodDough", OrePrefixes.dust.get(Materials.Sugar) }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Sandwich_Veggie.get(1L), - bits_no_remove_buffered, - new Object[] { ItemList.Food_Sliced_Breads, ItemList.Food_Sliced_Cucumber, - ItemList.Food_Sliced_Cucumber, ItemList.Food_Sliced_Tomato, ItemList.Food_Sliced_Tomato, - ItemList.Food_Sliced_Onion }); + ItemList.Food_Dough_Chocolate.get(2L), + bits_no_remove_buffered, + new Object[] { "foodDough", OrePrefixes.dust.get(Materials.Cocoa) }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Sandwich_Cheese.get(1L), - bits_no_remove_buffered, - new Object[] { ItemList.Food_Sliced_Breads, ItemList.Food_Sliced_Cheese, ItemList.Food_Sliced_Cheese, - ItemList.Food_Sliced_Cheese, ItemList.Food_Sliced_Cheese, ItemList.Food_Sliced_Cheese }); + ItemList.Food_Dough_Chocolate.get(2L), + bits_no_remove_buffered, + new Object[] { "foodDough", OrePrefixes.dust.get(Materials.Chocolate) }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Sandwich_Bacon.get(1L), - bits_no_remove_buffered, - new Object[] { ItemList.Food_Sliced_Breads, new ItemStack(Items.cooked_porkchop, 1) }); + ItemList.Food_Flat_Dough.get(1L), + bits_no_remove_buffered, + new Object[] { "foodDough", ToolDictNames.craftingToolRollingPin }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Sandwich_Steak.get(1L), - bits_no_remove_buffered, - new Object[] { ItemList.Food_Sliced_Breads, new ItemStack(Items.cooked_beef, 1) }); + ItemList.Food_Raw_Bun.get(1L), + bits_no_remove_buffered, + new Object[] { "foodDough" }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Sandwich_Veggie.get(1L), - bits_no_remove_buffered, - new Object[] { ItemList.Food_Sliced_Bread, ItemList.Food_Sliced_Bread, ItemList.Food_Sliced_Cucumber, - ItemList.Food_Sliced_Cucumber, ItemList.Food_Sliced_Tomato, ItemList.Food_Sliced_Tomato, - ItemList.Food_Sliced_Onion }); + ItemList.Food_Raw_Bread.get(1L), + bits_no_remove_buffered, + new Object[] { "foodDough", "foodDough" }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Sandwich_Cheese.get(1L), - bits_no_remove_buffered, - new Object[] { ItemList.Food_Sliced_Bread, ItemList.Food_Sliced_Bread, ItemList.Food_Sliced_Cheese, - ItemList.Food_Sliced_Cheese, ItemList.Food_Sliced_Cheese, ItemList.Food_Sliced_Cheese, - ItemList.Food_Sliced_Cheese }); + ItemList.Food_Raw_Baguette.get(1L), + bits_no_remove_buffered, + new Object[] { "foodDough", "foodDough", "foodDough" }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Sandwich_Bacon.get(1L), - bits_no_remove_buffered, - new Object[] { ItemList.Food_Sliced_Bread, ItemList.Food_Sliced_Bread, - new ItemStack(Items.cooked_porkchop, 1) }); + ItemList.Food_Raw_Cake.get(1L), + bits_no_remove_buffered, + new Object[] { ItemList.Food_Dough_Sugar, ItemList.Food_Dough_Sugar, ItemList.Food_Dough_Sugar, + ItemList.Food_Dough_Sugar }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Sandwich_Steak.get(1L), - bits_no_remove_buffered, - new Object[] { ItemList.Food_Sliced_Bread, ItemList.Food_Sliced_Bread, - new ItemStack(Items.cooked_beef, 1) }); + ItemList.Food_ChiliChips.get(1L), + bits_no_remove_buffered, + new Object[] { ItemList.Food_PotatoChips, OrePrefixes.dust.get(Materials.Chili) }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Large_Sandwich_Veggie.get(1L), - bits_no_remove_buffered, - new Object[] { ItemList.Food_Sliced_Baguettes, ItemList.Food_Sliced_Cucumber, - ItemList.Food_Sliced_Cucumber, ItemList.Food_Sliced_Cucumber, ItemList.Food_Sliced_Tomato, - ItemList.Food_Sliced_Tomato, ItemList.Food_Sliced_Tomato, ItemList.Food_Sliced_Onion }); - GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Large_Sandwich_Cheese.get(1L), - bits_no_remove_buffered, - new Object[] { ItemList.Food_Sliced_Baguettes, ItemList.Food_Sliced_Cheese, ItemList.Food_Sliced_Cheese, - ItemList.Food_Sliced_Cheese, ItemList.Food_Sliced_Cheese, ItemList.Food_Sliced_Cheese, - ItemList.Food_Sliced_Cheese, ItemList.Food_Sliced_Cheese }); - GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Large_Sandwich_Bacon.get(1L), - bits_no_remove_buffered, - new Object[] { ItemList.Food_Sliced_Baguettes, new ItemStack(Items.cooked_porkchop, 1), - new ItemStack(Items.cooked_porkchop, 1) }); - GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Large_Sandwich_Steak.get(1L), - bits_no_remove_buffered, - new Object[] { ItemList.Food_Sliced_Baguettes, new ItemStack(Items.cooked_beef, 1), - new ItemStack(Items.cooked_beef, 1) }); - GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Large_Sandwich_Veggie.get(1L), - bits_no_remove_buffered, - new Object[] { ItemList.Food_Sliced_Baguette, ItemList.Food_Sliced_Baguette, - ItemList.Food_Sliced_Cucumber, ItemList.Food_Sliced_Cucumber, ItemList.Food_Sliced_Cucumber, - ItemList.Food_Sliced_Tomato, ItemList.Food_Sliced_Tomato, ItemList.Food_Sliced_Tomato, - ItemList.Food_Sliced_Onion }); - GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Large_Sandwich_Cheese.get(1L), - bits_no_remove_buffered, - new Object[] { ItemList.Food_Sliced_Baguette, ItemList.Food_Sliced_Baguette, - ItemList.Food_Sliced_Cheese, ItemList.Food_Sliced_Cheese, ItemList.Food_Sliced_Cheese, - ItemList.Food_Sliced_Cheese, ItemList.Food_Sliced_Cheese, ItemList.Food_Sliced_Cheese, - ItemList.Food_Sliced_Cheese }); + ItemList.Food_Sliced_Buns.get(1L), + bits_no_remove_buffered, + new Object[] { ItemList.Food_Sliced_Bun, ItemList.Food_Sliced_Bun }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Large_Sandwich_Bacon.get(1L), - bits_no_remove_buffered, - new Object[] { ItemList.Food_Sliced_Baguette, ItemList.Food_Sliced_Baguette, - new ItemStack(Items.cooked_porkchop, 1), new ItemStack(Items.cooked_porkchop, 1) }); - GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Large_Sandwich_Steak.get(1L), - bits_no_remove_buffered, - new Object[] { ItemList.Food_Sliced_Baguette, ItemList.Food_Sliced_Baguette, - new ItemStack(Items.cooked_beef, 1), new ItemStack(Items.cooked_beef, 1) }); - + ItemList.Food_Sliced_Breads.get(1L), + bits_no_remove_buffered, + new Object[] { ItemList.Food_Sliced_Bread, ItemList.Food_Sliced_Bread }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Raw_Pizza_Veggie.get(1L), - bits_no_remove_buffered, - new Object[] { ItemList.Food_Flat_Dough, ItemList.Food_Sliced_Cucumber, ItemList.Food_Sliced_Tomato, - ItemList.Food_Sliced_Onion }); + ItemList.Food_Sliced_Baguettes.get(1L), + bits_no_remove_buffered, + new Object[] { ItemList.Food_Sliced_Baguette, ItemList.Food_Sliced_Baguette }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Raw_Pizza_Cheese.get(1L), - bits_no_remove_buffered, - new Object[] { ItemList.Food_Flat_Dough, ItemList.Food_Sliced_Cheese, ItemList.Food_Sliced_Cheese, - ItemList.Food_Sliced_Cheese }); + ItemList.Food_Sliced_Bun.get(2L), + bits_no_remove_buffered, + new Object[] { ItemList.Food_Sliced_Buns }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Food_Raw_Pizza_Meat.get(1L), - bits_no_remove_buffered, - new Object[] { ItemList.Food_Flat_Dough, OrePrefixes.dust.get(Materials.MeatCooked) }); - - GT_ModHandler.addCraftingRecipe( - ItemList.Food_Sliced_Cheese.get(4L), - bits_no_remove_buffered, - new Object[] { "kX", 'X', "foodCheese" }); - GT_ModHandler.addCraftingRecipe( - ItemList.Food_Sliced_Lemon.get(4L), - bits_no_remove_buffered, - new Object[] { "kX", 'X', "cropLemon" }); - GT_ModHandler.addCraftingRecipe( - ItemList.Food_Sliced_Tomato.get(4L), - bits_no_remove_buffered, - new Object[] { "kX", 'X', "cropTomato" }); - GT_ModHandler.addCraftingRecipe( - ItemList.Food_Sliced_Onion.get(4L), - bits_no_remove_buffered, - new Object[] { "kX", 'X', "cropOnion" }); - GT_ModHandler.addCraftingRecipe( - ItemList.Food_Sliced_Cucumber.get(4L), - bits_no_remove_buffered, - new Object[] { "kX", 'X', "cropCucumber" }); - GT_ModHandler.addCraftingRecipe( - ItemList.Food_Sliced_Bun.get(2L), - bits_no_remove_buffered, - new Object[] { "kX", 'X', ItemList.Food_Baked_Bun }); + ItemList.Food_Sliced_Bread.get(2L), + bits_no_remove_buffered, + new Object[] { ItemList.Food_Sliced_Breads }); + GT_ModHandler.addShapelessCraftingRecipe( + ItemList.Food_Sliced_Baguette.get(2L), + bits_no_remove_buffered, + new Object[] { ItemList.Food_Sliced_Baguettes }); + + GT_ModHandler.addShapelessCraftingRecipe( + ItemList.Food_Burger_Veggie.get(1L), + bits_no_remove_buffered, + new Object[] { ItemList.Food_Sliced_Buns, ItemList.Food_Sliced_Cucumber, ItemList.Food_Sliced_Tomato, + ItemList.Food_Sliced_Onion }); + GT_ModHandler.addShapelessCraftingRecipe( + ItemList.Food_Burger_Cheese.get(1L), + bits_no_remove_buffered, + new Object[] { ItemList.Food_Sliced_Buns, ItemList.Food_Sliced_Cheese, ItemList.Food_Sliced_Cheese, + ItemList.Food_Sliced_Cheese }); + GT_ModHandler.addShapelessCraftingRecipe( + ItemList.Food_Burger_Meat.get(1L), + bits_no_remove_buffered, + new Object[] { ItemList.Food_Sliced_Buns, OrePrefixes.dust.get(Materials.MeatCooked) }); + GT_ModHandler.addShapelessCraftingRecipe( + ItemList.Food_Burger_Chum.get(1L), + bits_no_remove_buffered, + new Object[] { ItemList.Food_Sliced_Buns, ItemList.Food_Chum }); + GT_ModHandler.addShapelessCraftingRecipe( + ItemList.Food_Burger_Veggie.get(1L), + bits_no_remove_buffered, + new Object[] { ItemList.Food_Sliced_Bun, ItemList.Food_Sliced_Bun, ItemList.Food_Sliced_Cucumber, + ItemList.Food_Sliced_Tomato, ItemList.Food_Sliced_Onion }); + GT_ModHandler.addShapelessCraftingRecipe( + ItemList.Food_Burger_Cheese.get(1L), + bits_no_remove_buffered, + new Object[] { ItemList.Food_Sliced_Bun, ItemList.Food_Sliced_Bun, ItemList.Food_Sliced_Cheese, + ItemList.Food_Sliced_Cheese, ItemList.Food_Sliced_Cheese }); + GT_ModHandler.addShapelessCraftingRecipe( + ItemList.Food_Burger_Meat.get(1L), + bits_no_remove_buffered, + new Object[] { ItemList.Food_Sliced_Bun, ItemList.Food_Sliced_Bun, + OrePrefixes.dust.get(Materials.MeatCooked) }); + GT_ModHandler.addShapelessCraftingRecipe( + ItemList.Food_Burger_Chum.get(1L), + bits_no_remove_buffered, + new Object[] { ItemList.Food_Sliced_Bun, ItemList.Food_Sliced_Bun, ItemList.Food_Chum }); + + GT_ModHandler.addShapelessCraftingRecipe( + ItemList.Food_Sandwich_Veggie.get(1L), + bits_no_remove_buffered, + new Object[] { ItemList.Food_Sliced_Breads, ItemList.Food_Sliced_Cucumber, ItemList.Food_Sliced_Cucumber, + ItemList.Food_Sliced_Tomato, ItemList.Food_Sliced_Tomato, ItemList.Food_Sliced_Onion }); + GT_ModHandler.addShapelessCraftingRecipe( + ItemList.Food_Sandwich_Cheese.get(1L), + bits_no_remove_buffered, + new Object[] { ItemList.Food_Sliced_Breads, ItemList.Food_Sliced_Cheese, ItemList.Food_Sliced_Cheese, + ItemList.Food_Sliced_Cheese, ItemList.Food_Sliced_Cheese, ItemList.Food_Sliced_Cheese }); + GT_ModHandler.addShapelessCraftingRecipe( + ItemList.Food_Sandwich_Bacon.get(1L), + bits_no_remove_buffered, + new Object[] { ItemList.Food_Sliced_Breads, new ItemStack(Items.cooked_porkchop, 1) }); + GT_ModHandler.addShapelessCraftingRecipe( + ItemList.Food_Sandwich_Steak.get(1L), + bits_no_remove_buffered, + new Object[] { ItemList.Food_Sliced_Breads, new ItemStack(Items.cooked_beef, 1) }); + GT_ModHandler.addShapelessCraftingRecipe( + ItemList.Food_Sandwich_Veggie.get(1L), + bits_no_remove_buffered, + new Object[] { ItemList.Food_Sliced_Bread, ItemList.Food_Sliced_Bread, ItemList.Food_Sliced_Cucumber, + ItemList.Food_Sliced_Cucumber, ItemList.Food_Sliced_Tomato, ItemList.Food_Sliced_Tomato, + ItemList.Food_Sliced_Onion }); + GT_ModHandler.addShapelessCraftingRecipe( + ItemList.Food_Sandwich_Cheese.get(1L), + bits_no_remove_buffered, + new Object[] { ItemList.Food_Sliced_Bread, ItemList.Food_Sliced_Bread, ItemList.Food_Sliced_Cheese, + ItemList.Food_Sliced_Cheese, ItemList.Food_Sliced_Cheese, ItemList.Food_Sliced_Cheese, + ItemList.Food_Sliced_Cheese }); + GT_ModHandler.addShapelessCraftingRecipe( + ItemList.Food_Sandwich_Bacon.get(1L), + bits_no_remove_buffered, + new Object[] { ItemList.Food_Sliced_Bread, ItemList.Food_Sliced_Bread, + new ItemStack(Items.cooked_porkchop, 1) }); + GT_ModHandler.addShapelessCraftingRecipe( + ItemList.Food_Sandwich_Steak.get(1L), + bits_no_remove_buffered, + new Object[] { ItemList.Food_Sliced_Bread, ItemList.Food_Sliced_Bread, + new ItemStack(Items.cooked_beef, 1) }); + + GT_ModHandler.addShapelessCraftingRecipe( + ItemList.Food_Large_Sandwich_Veggie.get(1L), + bits_no_remove_buffered, + new Object[] { ItemList.Food_Sliced_Baguettes, ItemList.Food_Sliced_Cucumber, ItemList.Food_Sliced_Cucumber, + ItemList.Food_Sliced_Cucumber, ItemList.Food_Sliced_Tomato, ItemList.Food_Sliced_Tomato, + ItemList.Food_Sliced_Tomato, ItemList.Food_Sliced_Onion }); + GT_ModHandler.addShapelessCraftingRecipe( + ItemList.Food_Large_Sandwich_Cheese.get(1L), + bits_no_remove_buffered, + new Object[] { ItemList.Food_Sliced_Baguettes, ItemList.Food_Sliced_Cheese, ItemList.Food_Sliced_Cheese, + ItemList.Food_Sliced_Cheese, ItemList.Food_Sliced_Cheese, ItemList.Food_Sliced_Cheese, + ItemList.Food_Sliced_Cheese, ItemList.Food_Sliced_Cheese }); + GT_ModHandler.addShapelessCraftingRecipe( + ItemList.Food_Large_Sandwich_Bacon.get(1L), + bits_no_remove_buffered, + new Object[] { ItemList.Food_Sliced_Baguettes, new ItemStack(Items.cooked_porkchop, 1), + new ItemStack(Items.cooked_porkchop, 1) }); + GT_ModHandler.addShapelessCraftingRecipe( + ItemList.Food_Large_Sandwich_Steak.get(1L), + bits_no_remove_buffered, + new Object[] { ItemList.Food_Sliced_Baguettes, new ItemStack(Items.cooked_beef, 1), + new ItemStack(Items.cooked_beef, 1) }); + GT_ModHandler.addShapelessCraftingRecipe( + ItemList.Food_Large_Sandwich_Veggie.get(1L), + bits_no_remove_buffered, + new Object[] { ItemList.Food_Sliced_Baguette, ItemList.Food_Sliced_Baguette, ItemList.Food_Sliced_Cucumber, + ItemList.Food_Sliced_Cucumber, ItemList.Food_Sliced_Cucumber, ItemList.Food_Sliced_Tomato, + ItemList.Food_Sliced_Tomato, ItemList.Food_Sliced_Tomato, ItemList.Food_Sliced_Onion }); + GT_ModHandler.addShapelessCraftingRecipe( + ItemList.Food_Large_Sandwich_Cheese.get(1L), + bits_no_remove_buffered, + new Object[] { ItemList.Food_Sliced_Baguette, ItemList.Food_Sliced_Baguette, ItemList.Food_Sliced_Cheese, + ItemList.Food_Sliced_Cheese, ItemList.Food_Sliced_Cheese, ItemList.Food_Sliced_Cheese, + ItemList.Food_Sliced_Cheese, ItemList.Food_Sliced_Cheese, ItemList.Food_Sliced_Cheese }); + GT_ModHandler.addShapelessCraftingRecipe( + ItemList.Food_Large_Sandwich_Bacon.get(1L), + bits_no_remove_buffered, + new Object[] { ItemList.Food_Sliced_Baguette, ItemList.Food_Sliced_Baguette, + new ItemStack(Items.cooked_porkchop, 1), new ItemStack(Items.cooked_porkchop, 1) }); + GT_ModHandler.addShapelessCraftingRecipe( + ItemList.Food_Large_Sandwich_Steak.get(1L), + bits_no_remove_buffered, + new Object[] { ItemList.Food_Sliced_Baguette, ItemList.Food_Sliced_Baguette, + new ItemStack(Items.cooked_beef, 1), new ItemStack(Items.cooked_beef, 1) }); + + GT_ModHandler.addShapelessCraftingRecipe( + ItemList.Food_Raw_Pizza_Veggie.get(1L), + bits_no_remove_buffered, + new Object[] { ItemList.Food_Flat_Dough, ItemList.Food_Sliced_Cucumber, ItemList.Food_Sliced_Tomato, + ItemList.Food_Sliced_Onion }); + GT_ModHandler.addShapelessCraftingRecipe( + ItemList.Food_Raw_Pizza_Cheese.get(1L), + bits_no_remove_buffered, + new Object[] { ItemList.Food_Flat_Dough, ItemList.Food_Sliced_Cheese, ItemList.Food_Sliced_Cheese, + ItemList.Food_Sliced_Cheese }); + GT_ModHandler.addShapelessCraftingRecipe( + ItemList.Food_Raw_Pizza_Meat.get(1L), + bits_no_remove_buffered, + new Object[] { ItemList.Food_Flat_Dough, OrePrefixes.dust.get(Materials.MeatCooked) }); + + GT_ModHandler.addCraftingRecipe( + ItemList.Food_Sliced_Cheese.get(4L), + bits_no_remove_buffered, + new Object[] { "kX", 'X', "foodCheese" }); + GT_ModHandler.addCraftingRecipe( + ItemList.Food_Sliced_Lemon.get(4L), + bits_no_remove_buffered, + new Object[] { "kX", 'X', "cropLemon" }); + GT_ModHandler.addCraftingRecipe( + ItemList.Food_Sliced_Tomato.get(4L), + bits_no_remove_buffered, + new Object[] { "kX", 'X', "cropTomato" }); + GT_ModHandler.addCraftingRecipe( + ItemList.Food_Sliced_Onion.get(4L), + bits_no_remove_buffered, + new Object[] { "kX", 'X', "cropOnion" }); + GT_ModHandler.addCraftingRecipe( + ItemList.Food_Sliced_Cucumber.get(4L), + bits_no_remove_buffered, + new Object[] { "kX", 'X', "cropCucumber" }); + GT_ModHandler.addCraftingRecipe( + ItemList.Food_Sliced_Bun.get(2L), + bits_no_remove_buffered, + new Object[] { "kX", 'X', ItemList.Food_Baked_Bun }); + GT_ModHandler.addCraftingRecipe( + ItemList.Food_Sliced_Bread.get(2L), + bits_no_remove_buffered, + new Object[] { "kX", 'X', ItemList.Food_Baked_Bread }); GT_ModHandler.addCraftingRecipe( - ItemList.Food_Sliced_Bread.get(2L), - bits_no_remove_buffered, - new Object[] { "kX", 'X', ItemList.Food_Baked_Bread }); - GT_ModHandler.addCraftingRecipe( - ItemList.Food_Sliced_Baguette.get(2L), - bits_no_remove_buffered, - new Object[] { "kX", 'X', ItemList.Food_Baked_Baguette }); + ItemList.Food_Sliced_Baguette.get(2L), + bits_no_remove_buffered, + new Object[] { "kX", 'X', ItemList.Food_Baked_Baguette }); GT_ModHandler.addCraftingRecipe( - ItemList.Food_Raw_PotatoChips.get(1L), - bits_no_remove_buffered, - new Object[] { "kX", 'X', "cropPotato" }); + ItemList.Food_Raw_PotatoChips.get(1L), + bits_no_remove_buffered, + new Object[] { "kX", 'X', "cropPotato" }); GT_ModHandler.addCraftingRecipe( - ItemList.Food_Raw_Cookie.get(4L), - bits_no_remove_buffered, - new Object[] { "kX", 'X', ItemList.Food_Dough_Chocolate }); + ItemList.Food_Raw_Cookie.get(4L), + bits_no_remove_buffered, + new Object[] { "kX", 'X', ItemList.Food_Dough_Chocolate }); GT_ModHandler.addCraftingRecipe( - ItemList.Food_Raw_Fries.get(1L), - bits_no_remove_buffered, - new Object[] { "k", "X", 'X', "cropPotato" }); + ItemList.Food_Raw_Fries.get(1L), + bits_no_remove_buffered, + new Object[] { "k", "X", 'X', "cropPotato" }); GT_ModHandler.addCraftingRecipe( - new ItemStack(Items.bowl, 1), - bits_no_remove_buffered, - new Object[] { "k", "X", 'X', OrePrefixes.plank.get(Materials.Wood) }); + new ItemStack(Items.bowl, 1), + bits_no_remove_buffered, + new Object[] { "k", "X", 'X', OrePrefixes.plank.get(Materials.Wood) }); GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Rubber, 1L), - bits_no_remove_buffered, - new Object[] { "k", "X", 'X', OrePrefixes.plate.get(Materials.Rubber) }); + GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Rubber, 1L), + bits_no_remove_buffered, + new Object[] { "k", "X", 'X', OrePrefixes.plate.get(Materials.Rubber) }); GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.toolHeadArrow, Materials.Flint, 1L), - bits_no_remove_buffered, - new Object[] { "f", "X", 'X', new ItemStack(Items.flint, 1, 32767) }); + GT_OreDictUnificator.get(OrePrefixes.toolHeadArrow, Materials.Flint, 1L), + bits_no_remove_buffered, + new Object[] { "f", "X", 'X', new ItemStack(Items.flint, 1, 32767) }); GT_ModHandler.addCraftingRecipe( - new ItemStack(Items.arrow, 1), - bits_no_remove_buffered | GT_ModHandler.RecipeBits.DELETE_ALL_OTHER_SHAPED_RECIPES, - new Object[] { " H", " S ", "F ", 'H', new ItemStack(Items.flint, 1, 32767), 'S', - OrePrefixes.stick.get(Materials.Wood), 'F', OreDictNames.craftingFeather }); + new ItemStack(Items.arrow, 1), + bits_no_remove_buffered | GT_ModHandler.RecipeBits.DELETE_ALL_OTHER_SHAPED_RECIPES, + new Object[] { " H", " S ", "F ", 'H', new ItemStack(Items.flint, 1, 32767), 'S', + OrePrefixes.stick.get(Materials.Wood), 'F', OreDictNames.craftingFeather }); GT_ModHandler.removeRecipe( - new ItemStack(Blocks.planks), - null, - new ItemStack(Blocks.planks), - null, - new ItemStack(Blocks.planks)); + new ItemStack(Blocks.planks), + null, + new ItemStack(Blocks.planks), + null, + new ItemStack(Blocks.planks)); GT_ModHandler.removeRecipeByOutputDelayed(ItemList.Food_Baked_Bread.get(1L)); GT_ModHandler.removeRecipeByOutputDelayed(new ItemStack(Items.cookie, 1)); GT_ModHandler.removeRecipe( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Copper, 1L), - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Tin, 1L), - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Copper, 1L)); + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Copper, 1L), + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Tin, 1L), + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Copper, 1L)); if (null != GT_Utility.setStack( - GT_ModHandler.getRecipeOutput( - true, - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Copper, 1L), - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Copper, 1L), - null, - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Copper, 1L), - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Tin, 1L)), - GT_OreDictUnificator.get( - OrePrefixes.ingot, - Materials.Bronze, - GregTech_API.sRecipeFile.get( - ConfigCategories.Recipes.disabledrecipes, - "bronzeingotcrafting", - true) ? 1L : 2L))) { + GT_ModHandler.getRecipeOutput( + true, + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Copper, 1L), + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Copper, 1L), + null, + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Copper, 1L), + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Tin, 1L)), + GT_OreDictUnificator.get( + OrePrefixes.ingot, + Materials.Bronze, + GregTech_API.sRecipeFile.get(ConfigCategories.Recipes.disabledrecipes, "bronzeingotcrafting", true) ? 1L + : 2L))) { GT_Log.out.println("GT_Mod: Changed Forestrys Bronze Recipe"); } if (GregTech_API.sRecipeFile.get(ConfigCategories.Recipes.disabledrecipes, "enchantmenttable", false)) { GT_Log.out.println( - "GT_Mod: Removing the Recipe of the Enchantment Table, to have more Fun at enchanting with the Anvil and Books from Dungeons."); + "GT_Mod: Removing the Recipe of the Enchantment Table, to have more Fun at enchanting with the Anvil and Books from Dungeons."); GT_ModHandler.removeRecipeByOutputDelayed(new ItemStack(Blocks.enchanting_table, 1)); } if (GregTech_API.sRecipeFile.get(ConfigCategories.Recipes.disabledrecipes, "enderchest", false)) { GT_ModHandler.removeRecipeByOutputDelayed(new ItemStack(Blocks.ender_chest, 1)); } - tStack = GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 1L); - - GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getRecipeOutput( - null, - new ItemStack(Blocks.sand, 1, 0), - null, - null, - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Apatite, 1L), - null, - null, - new ItemStack(Blocks.sand, 1, 0), - null), - GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "S", "A", "S", 'A', OrePrefixes.dust.get(Materials.Apatite), 'S', - new ItemStack(Blocks.sand, 1, 32767) }); - GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getRecipeOutput( - tStack, - tStack, - tStack, - tStack, - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Apatite, 1L), - tStack, - tStack, - tStack, - tStack), - GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "SSS", "SAS", "SSS", 'A', OrePrefixes.dust.get(Materials.Apatite), 'S', - OrePrefixes.dust.get(Materials.Ash) }); - - GT_Log.out.println("GT_Mod: Adding Mixed Metal Ingot Recipes."); - GT_ModHandler.removeRecipeByOutputDelayed(ItemList.IC2_Mixed_Metal_Ingot.get(1L)); - - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(1L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.AnyIron), 'Y', - OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Tin) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(1L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.AnyIron), 'Y', - OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Zinc) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(1L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.AnyIron), 'Y', - OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Aluminium) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(1L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.AnyIron), 'Y', - OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Tin) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(1L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.AnyIron), 'Y', - OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Zinc) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(1L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.AnyIron), 'Y', - OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Aluminium) }); - - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(1L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Nickel), 'Y', - OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Tin) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(1L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Nickel), 'Y', - OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Zinc) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(1L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Nickel), 'Y', - OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Aluminium) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(1L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Nickel), 'Y', - OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Tin) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(1L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Nickel), 'Y', - OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Zinc) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(1L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Nickel), 'Y', - OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Aluminium) }); - - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(2L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Invar), 'Y', - OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Tin) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(2L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Invar), 'Y', - OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Zinc) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(3L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Invar), 'Y', - OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Aluminium) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(2L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Invar), 'Y', - OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Tin) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(2L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Invar), 'Y', - OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Zinc) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(3L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Invar), 'Y', - OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Aluminium) }); - - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(2L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Steel), 'Y', - OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Tin) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(2L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Steel), 'Y', - OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Zinc) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(3L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Steel), 'Y', - OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Aluminium) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(2L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Steel), 'Y', - OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Tin) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(2L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Steel), 'Y', - OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Zinc) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(3L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Steel), 'Y', - OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Aluminium) }); - - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(3L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.StainlessSteel), 'Y', - OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Tin) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(3L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.StainlessSteel), 'Y', - OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Zinc) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(4L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.StainlessSteel), 'Y', - OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Aluminium) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(3L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.StainlessSteel), 'Y', - OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Tin) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(3L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.StainlessSteel), 'Y', - OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Zinc) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(4L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.StainlessSteel), 'Y', - OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Aluminium) }); - - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(3L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Titanium), 'Y', - OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Tin) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(3L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Titanium), 'Y', - OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Zinc) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(4L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Titanium), 'Y', - OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Aluminium) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(3L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Titanium), 'Y', - OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Tin) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(3L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Titanium), 'Y', - OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Zinc) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(4L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Titanium), 'Y', - OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Aluminium) }); - - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(3L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Tungsten), 'Y', - OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Tin) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(3L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Tungsten), 'Y', - OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Zinc) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(4L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Tungsten), 'Y', - OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Aluminium) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(3L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Tungsten), 'Y', - OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Tin) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(3L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Tungsten), 'Y', - OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Zinc) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(4L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Tungsten), 'Y', - OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Aluminium) }); - - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(5L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.TungstenSteel), 'Y', - OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Tin) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(5L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.TungstenSteel), 'Y', - OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Zinc) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(6L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.TungstenSteel), 'Y', - OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Aluminium) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(5L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.TungstenSteel), 'Y', - OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Tin) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(5L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.TungstenSteel), 'Y', - OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Zinc) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(6L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.TungstenSteel), 'Y', - OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Aluminium) }); - - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(8L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.TungstenSteel), 'Y', - OrePrefixes.plate.get(Materials.Chrome), 'Z', OrePrefixes.plate.get(Materials.Tin) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(8L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.TungstenSteel), 'Y', - OrePrefixes.plate.get(Materials.Chrome), 'Z', OrePrefixes.plate.get(Materials.Zinc) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(8L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.TungstenSteel), 'Y', - OrePrefixes.plate.get(Materials.Chrome), 'Z', OrePrefixes.plate.get(Materials.Aluminium) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(10L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.TungstenSteel), 'Y', - OrePrefixes.plate.get(Materials.StainlessSteel), 'Z', OrePrefixes.plate.get(Materials.Tin) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(10L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.TungstenSteel), 'Y', - OrePrefixes.plate.get(Materials.StainlessSteel), 'Z', OrePrefixes.plate.get(Materials.Zinc) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(10L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.TungstenSteel), 'Y', - OrePrefixes.plate.get(Materials.StainlessSteel), 'Z', - OrePrefixes.plate.get(Materials.Aluminium) }); - - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(12L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Iridium), 'Y', - OrePrefixes.plate.get(Materials.Chrome), 'Z', - OrePrefixes.plate.get(Materials.AnnealedCopper) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(12L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Iridium), 'Y', - OrePrefixes.plate.get(Materials.Chrome), 'Z', OrePrefixes.plate.get(Materials.RoseGold) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(12L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Iridium), 'Y', - OrePrefixes.plate.get(Materials.Chrome), 'Z', OrePrefixes.plate.get(Materials.AstralSilver) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(14L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Iridium), 'Y', - OrePrefixes.plate.get(Materials.StainlessSteel), 'Z', - OrePrefixes.plate.get(Materials.AnnealedCopper) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(14L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Iridium), 'Y', - OrePrefixes.plate.get(Materials.StainlessSteel), 'Z', - OrePrefixes.plate.get(Materials.RoseGold) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(14L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Iridium), 'Y', - OrePrefixes.plate.get(Materials.StainlessSteel), 'Z', - OrePrefixes.plate.get(Materials.AstralSilver) }); - - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(16L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.HSSG), 'Y', - OrePrefixes.plate.get(Materials.StainlessSteel), 'Z', - OrePrefixes.plate.get(Materials.AnnealedCopper) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(16L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.HSSG), 'Y', - OrePrefixes.plate.get(Materials.StainlessSteel), 'Z', - OrePrefixes.plate.get(Materials.RoseGold) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(16L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.HSSG), 'Y', - OrePrefixes.plate.get(Materials.StainlessSteel), 'Z', - OrePrefixes.plate.get(Materials.AstralSilver) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(18L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.HSSE), 'Y', - OrePrefixes.plate.get(Materials.Chrome), 'Z', - OrePrefixes.plate.get(Materials.AnnealedCopper) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(18L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.HSSE), 'Y', - OrePrefixes.plate.get(Materials.Chrome), 'Z', OrePrefixes.plate.get(Materials.RoseGold) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(18L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.HSSE), 'Y', - OrePrefixes.plate.get(Materials.Chrome), 'Z', OrePrefixes.plate.get(Materials.AstralSilver) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(20L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.HSSS), 'Y', - OrePrefixes.plate.get(Materials.TungstenSteel), 'Z', - OrePrefixes.plate.get(Materials.AnnealedCopper) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(20L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.HSSS), 'Y', - OrePrefixes.plate.get(Materials.TungstenSteel), 'Z', - OrePrefixes.plate.get(Materials.RoseGold) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(20L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.HSSS), 'Y', - OrePrefixes.plate.get(Materials.TungstenSteel), 'Z', - OrePrefixes.plate.get(Materials.AstralSilver) }); - - GT_ModHandler.addCraftingRecipe( - ItemList.Long_Distance_Pipeline_Fluid.get(1L), - GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { "GPG", "IwI", "GPG", 'G', - GT_OreDictUnificator.get(OrePrefixes.gear, Materials.Steel, 1L), 'P', - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Steel, 1L), 'I', - GT_OreDictUnificator.get(OrePrefixes.pipeHuge, Materials.Steel, 1L) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Long_Distance_Pipeline_Item.get(1L), - GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { "GPG", "IwI", "GPG", 'G', - GT_OreDictUnificator.get(OrePrefixes.gear, Materials.Steel, 1L), 'P', - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Steel, 1L), 'I', - GT_OreDictUnificator.get(OrePrefixes.pipeHuge, Materials.Tin, 1L) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Long_Distance_Pipeline_Fluid_Pipe.get(32L), - GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { "PPP", "IwI", "PPP", 'P', - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Steel, 1L), 'I', - GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.Steel, 1L) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Long_Distance_Pipeline_Item_Pipe.get(32L), - GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, - new Object[] { "PPP", "IwI", "PPP", 'P', - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Steel, 1L), 'I', - GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.Tin, 1L) }); - - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(22L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Naquadah), 'Y', - OrePrefixes.plate.get(Materials.Iridium), 'Z', OrePrefixes.plate.get(Materials.HSSG) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(24L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Naquadah), 'Y', - OrePrefixes.plate.get(Materials.Iridium), 'Z', OrePrefixes.plate.get(Materials.HSSE) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(26L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Naquadah), 'Y', - OrePrefixes.plate.get(Materials.Iridium), 'Z', OrePrefixes.plate.get(Materials.HSSS) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(28L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.NaquadahAlloy), 'Y', - OrePrefixes.plate.get(Materials.Osmiridium), 'Z', OrePrefixes.plate.get(Materials.HSSE) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(30L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.NaquadahAlloy), 'Y', - OrePrefixes.plate.get(Materials.Osmiridium), 'Z', OrePrefixes.plate.get(Materials.HSSG) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(32L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.NaquadahAlloy), 'Y', - OrePrefixes.plate.get(Materials.Osmiridium), 'Z', OrePrefixes.plate.get(Materials.HSSS) }); - - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(34L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Neutronium), 'Y', - OrePrefixes.plate.get(Materials.EnergeticAlloy), 'Z', - OrePrefixes.plate.get(Materials.Naquadah) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(36L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Neutronium), 'Y', - OrePrefixes.plate.get(Materials.EnergeticAlloy), 'Z', - OrePrefixes.plate.get(Materials.NaquadahAlloy) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(38L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Neutronium), 'Y', - OrePrefixes.plate.get(Materials.EnergeticAlloy), 'Z', - OrePrefixes.plate.get(Materials.Draconium) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(40L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.BlackPlutonium), 'Y', - OrePrefixes.plate.get(Materials.Sunnarium), 'Z', OrePrefixes.plate.get(Materials.Naquadah) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(42L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.BlackPlutonium), 'Y', - OrePrefixes.plate.get(Materials.Sunnarium), 'Z', - OrePrefixes.plate.get(Materials.NaquadahAlloy) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(44L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.BlackPlutonium), 'Y', - OrePrefixes.plate.get(Materials.Sunnarium), 'Z', OrePrefixes.plate.get(Materials.Draconium) }); - - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(48L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.DraconiumAwakened), 'Y', - OrePrefixes.plate.get(Materials.Neutronium), 'Z', OrePrefixes.plate.get(Materials.HSSS) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(52L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.DraconiumAwakened), 'Y', - OrePrefixes.plate.get(Materials.Neutronium), 'Z', OrePrefixes.plate.get(Materials.Naquadah) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(56L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.DraconiumAwakened), 'Y', - OrePrefixes.plate.get(Materials.Neutronium), 'Z', - OrePrefixes.plate.get(Materials.NaquadahAlloy) }); - GT_ModHandler.addCraftingRecipe( - ItemList.IC2_Mixed_Metal_Ingot.get(64L), - bits_no_remove_buffered, - new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.DraconiumAwakened), 'Y', - OrePrefixes.plate.get(Materials.Neutronium), 'Z', - OrePrefixes.plate.get(Materials.BlackPlutonium) }); + tStack = GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 1L); - GT_Log.out.println("GT_Mod: Beginning to add regular Crafting Recipes."); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("scaffold", 4L), - bits_no_remove_buffered, - new Object[] { "WWW", " S ", "S S", 'W', OrePrefixes.plank.get(Materials.Wood), 'S', - OrePrefixes.stick.get(Materials.Wood) }); - - GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.IronMagnetic, 1L), - bits_no_remove_buffered, - new Object[] { OrePrefixes.stick.get(Materials.AnyIron), OrePrefixes.dust.get(Materials.Redstone), - OrePrefixes.dust.get(Materials.Redstone), OrePrefixes.dust.get(Materials.Redstone), - OrePrefixes.dust.get(Materials.Redstone) }); + GT_ModHandler.getRecipeOutput( + null, + new ItemStack(Blocks.sand, 1, 0), + null, + null, + GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Apatite, 1L), + null, + null, + new ItemStack(Blocks.sand, 1, 0), + null), + GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "S", "A", "S", 'A', OrePrefixes.dust.get(Materials.Apatite), 'S', + new ItemStack(Blocks.sand, 1, 32767) }); GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Paper, 1L), - bits_no_remove_buffered, - new Object[] { "PPk", 'P', OrePrefixes.plate.get(Materials.Paper) }); + GT_ModHandler.getRecipeOutput( + tStack, + tStack, + tStack, + tStack, + GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Apatite, 1L), + tStack, + tStack, + tStack, + tStack), + GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "SSS", "SAS", "SSS", 'A', OrePrefixes.dust.get(Materials.Apatite), 'S', + OrePrefixes.dust.get(Materials.Ash) }); - GT_ModHandler.addCraftingRecipe( - new ItemStack(Blocks.torch, 2), - bits_no_remove_buffered, - new Object[] { "C", "S", 'C', OrePrefixes.dust.get(Materials.Sulfur), 'S', - OrePrefixes.stick.get(Materials.Wood) }); - GT_ModHandler.addCraftingRecipe( - new ItemStack(Blocks.torch, 6), - bits_no_remove_buffered, - new Object[] { "C", "S", 'C', OrePrefixes.dust.get(Materials.TricalciumPhosphate), 'S', - OrePrefixes.stick.get(Materials.Wood) }); + GT_Log.out.println("GT_Mod: Adding Mixed Metal Ingot Recipes."); + GT_ModHandler.removeRecipeByOutputDelayed(ItemList.IC2_Mixed_Metal_Ingot.get(1L)); GT_ModHandler.addCraftingRecipe( - new ItemStack(Blocks.piston, 1), - bits_no_remove_buffered, - new Object[] { "WWW", "CBC", "CRC", 'W', OrePrefixes.plank.get(Materials.Wood), 'C', - OrePrefixes.stoneCobble, 'R', OrePrefixes.dust.get(Materials.Redstone), 'B', - OrePrefixes.ingot.get(Materials.AnyIron) }); - GT_ModHandler.addCraftingRecipe( - new ItemStack(Blocks.piston, 1), - bits_no_remove_buffered, - new Object[] { "WWW", "CBC", "CRC", 'W', OrePrefixes.plank.get(Materials.Wood), 'C', - OrePrefixes.stoneCobble, 'R', OrePrefixes.dust.get(Materials.Redstone), 'B', - OrePrefixes.ingot.get(Materials.AnyBronze) }); - GT_ModHandler.addCraftingRecipe( - new ItemStack(Blocks.piston, 1), - bits_no_remove_buffered, - new Object[] { "WWW", "CBC", "CRC", 'W', OrePrefixes.plank.get(Materials.Wood), 'C', - OrePrefixes.stoneCobble, 'R', OrePrefixes.dust.get(Materials.Redstone), 'B', - OrePrefixes.ingot.get(Materials.Aluminium) }); - GT_ModHandler.addCraftingRecipe( - new ItemStack(Blocks.piston, 1), - bits_no_remove_buffered, - new Object[] { "WWW", "CBC", "CRC", 'W', OrePrefixes.plank.get(Materials.Wood), 'C', - OrePrefixes.stoneCobble, 'R', OrePrefixes.dust.get(Materials.Redstone), 'B', - OrePrefixes.ingot.get(Materials.Steel) }); - GT_ModHandler.addCraftingRecipe( - new ItemStack(Blocks.piston, 1), - bits_no_remove_buffered, - new Object[] { "WWW", "CBC", "CRC", 'W', OrePrefixes.plank.get(Materials.Wood), 'C', - OrePrefixes.stoneCobble, 'R', OrePrefixes.dust.get(Materials.Redstone), 'B', - OrePrefixes.ingot.get(Materials.Titanium) }); + ItemList.IC2_Mixed_Metal_Ingot.get(1L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.AnyIron), 'Y', + OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Tin) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(1L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.AnyIron), 'Y', + OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Zinc) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(1L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.AnyIron), 'Y', + OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Aluminium) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(1L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.AnyIron), 'Y', + OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Tin) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(1L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.AnyIron), 'Y', + OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Zinc) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(1L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.AnyIron), 'Y', + OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Aluminium) }); + + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(1L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Nickel), 'Y', + OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Tin) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(1L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Nickel), 'Y', + OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Zinc) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(1L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Nickel), 'Y', + OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Aluminium) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(1L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Nickel), 'Y', + OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Tin) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(1L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Nickel), 'Y', + OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Zinc) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(1L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Nickel), 'Y', + OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Aluminium) }); + + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(2L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Invar), 'Y', + OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Tin) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(2L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Invar), 'Y', + OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Zinc) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(3L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Invar), 'Y', + OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Aluminium) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(2L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Invar), 'Y', + OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Tin) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(2L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Invar), 'Y', + OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Zinc) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(3L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Invar), 'Y', + OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Aluminium) }); + + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(2L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Steel), 'Y', + OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Tin) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(2L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Steel), 'Y', + OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Zinc) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(3L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Steel), 'Y', + OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Aluminium) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(2L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Steel), 'Y', + OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Tin) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(2L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Steel), 'Y', + OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Zinc) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(3L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Steel), 'Y', + OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Aluminium) }); + + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(3L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.StainlessSteel), 'Y', + OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Tin) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(3L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.StainlessSteel), 'Y', + OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Zinc) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(4L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.StainlessSteel), 'Y', + OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Aluminium) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(3L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.StainlessSteel), 'Y', + OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Tin) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(3L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.StainlessSteel), 'Y', + OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Zinc) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(4L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.StainlessSteel), 'Y', + OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Aluminium) }); + + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(3L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Titanium), 'Y', + OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Tin) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(3L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Titanium), 'Y', + OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Zinc) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(4L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Titanium), 'Y', + OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Aluminium) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(3L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Titanium), 'Y', + OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Tin) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(3L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Titanium), 'Y', + OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Zinc) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(4L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Titanium), 'Y', + OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Aluminium) }); + + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(3L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Tungsten), 'Y', + OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Tin) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(3L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Tungsten), 'Y', + OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Zinc) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(4L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Tungsten), 'Y', + OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Aluminium) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(3L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Tungsten), 'Y', + OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Tin) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(3L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Tungsten), 'Y', + OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Zinc) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(4L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Tungsten), 'Y', + OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Aluminium) }); + + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(5L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.TungstenSteel), 'Y', + OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Tin) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(5L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.TungstenSteel), 'Y', + OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Zinc) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(6L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.TungstenSteel), 'Y', + OrePrefixes.plate.get(Materials.Bronze), 'Z', OrePrefixes.plate.get(Materials.Aluminium) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(5L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.TungstenSteel), 'Y', + OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Tin) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(5L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.TungstenSteel), 'Y', + OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Zinc) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(6L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.TungstenSteel), 'Y', + OrePrefixes.plate.get(Materials.Brass), 'Z', OrePrefixes.plate.get(Materials.Aluminium) }); + + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(8L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.TungstenSteel), 'Y', + OrePrefixes.plate.get(Materials.Chrome), 'Z', OrePrefixes.plate.get(Materials.Tin) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(8L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.TungstenSteel), 'Y', + OrePrefixes.plate.get(Materials.Chrome), 'Z', OrePrefixes.plate.get(Materials.Zinc) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(8L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.TungstenSteel), 'Y', + OrePrefixes.plate.get(Materials.Chrome), 'Z', OrePrefixes.plate.get(Materials.Aluminium) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(10L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.TungstenSteel), 'Y', + OrePrefixes.plate.get(Materials.StainlessSteel), 'Z', OrePrefixes.plate.get(Materials.Tin) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(10L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.TungstenSteel), 'Y', + OrePrefixes.plate.get(Materials.StainlessSteel), 'Z', OrePrefixes.plate.get(Materials.Zinc) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(10L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.TungstenSteel), 'Y', + OrePrefixes.plate.get(Materials.StainlessSteel), 'Z', OrePrefixes.plate.get(Materials.Aluminium) }); + + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(12L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Iridium), 'Y', + OrePrefixes.plate.get(Materials.Chrome), 'Z', OrePrefixes.plate.get(Materials.AnnealedCopper) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(12L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Iridium), 'Y', + OrePrefixes.plate.get(Materials.Chrome), 'Z', OrePrefixes.plate.get(Materials.RoseGold) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(12L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Iridium), 'Y', + OrePrefixes.plate.get(Materials.Chrome), 'Z', OrePrefixes.plate.get(Materials.AstralSilver) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(14L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Iridium), 'Y', + OrePrefixes.plate.get(Materials.StainlessSteel), 'Z', + OrePrefixes.plate.get(Materials.AnnealedCopper) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(14L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Iridium), 'Y', + OrePrefixes.plate.get(Materials.StainlessSteel), 'Z', OrePrefixes.plate.get(Materials.RoseGold) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(14L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Iridium), 'Y', + OrePrefixes.plate.get(Materials.StainlessSteel), 'Z', OrePrefixes.plate.get(Materials.AstralSilver) }); + + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(16L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.HSSG), 'Y', + OrePrefixes.plate.get(Materials.StainlessSteel), 'Z', + OrePrefixes.plate.get(Materials.AnnealedCopper) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(16L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.HSSG), 'Y', + OrePrefixes.plate.get(Materials.StainlessSteel), 'Z', OrePrefixes.plate.get(Materials.RoseGold) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(16L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.HSSG), 'Y', + OrePrefixes.plate.get(Materials.StainlessSteel), 'Z', OrePrefixes.plate.get(Materials.AstralSilver) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(18L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.HSSE), 'Y', + OrePrefixes.plate.get(Materials.Chrome), 'Z', OrePrefixes.plate.get(Materials.AnnealedCopper) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(18L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.HSSE), 'Y', + OrePrefixes.plate.get(Materials.Chrome), 'Z', OrePrefixes.plate.get(Materials.RoseGold) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(18L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.HSSE), 'Y', + OrePrefixes.plate.get(Materials.Chrome), 'Z', OrePrefixes.plate.get(Materials.AstralSilver) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(20L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.HSSS), 'Y', + OrePrefixes.plate.get(Materials.TungstenSteel), 'Z', OrePrefixes.plate.get(Materials.AnnealedCopper) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(20L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.HSSS), 'Y', + OrePrefixes.plate.get(Materials.TungstenSteel), 'Z', OrePrefixes.plate.get(Materials.RoseGold) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(20L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.HSSS), 'Y', + OrePrefixes.plate.get(Materials.TungstenSteel), 'Z', OrePrefixes.plate.get(Materials.AstralSilver) }); + + GT_ModHandler.addCraftingRecipe( + ItemList.Long_Distance_Pipeline_Fluid.get(1L), + GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { "GPG", "IwI", "GPG", 'G', GT_OreDictUnificator.get(OrePrefixes.gear, Materials.Steel, 1L), + 'P', GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Steel, 1L), 'I', + GT_OreDictUnificator.get(OrePrefixes.pipeHuge, Materials.Steel, 1L) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Long_Distance_Pipeline_Item.get(1L), + GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { "GPG", "IwI", "GPG", 'G', GT_OreDictUnificator.get(OrePrefixes.gear, Materials.Steel, 1L), + 'P', GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Steel, 1L), 'I', + GT_OreDictUnificator.get(OrePrefixes.pipeHuge, Materials.Tin, 1L) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Long_Distance_Pipeline_Fluid_Pipe.get(32L), + GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { "PPP", "IwI", "PPP", 'P', GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Steel, 1L), + 'I', GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.Steel, 1L) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Long_Distance_Pipeline_Item_Pipe.get(32L), + GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, + new Object[] { "PPP", "IwI", "PPP", 'P', GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Steel, 1L), + 'I', GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.Tin, 1L) }); + + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(22L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Naquadah), 'Y', + OrePrefixes.plate.get(Materials.Iridium), 'Z', OrePrefixes.plate.get(Materials.HSSG) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(24L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Naquadah), 'Y', + OrePrefixes.plate.get(Materials.Iridium), 'Z', OrePrefixes.plate.get(Materials.HSSE) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(26L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Naquadah), 'Y', + OrePrefixes.plate.get(Materials.Iridium), 'Z', OrePrefixes.plate.get(Materials.HSSS) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(28L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.NaquadahAlloy), 'Y', + OrePrefixes.plate.get(Materials.Osmiridium), 'Z', OrePrefixes.plate.get(Materials.HSSE) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(30L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.NaquadahAlloy), 'Y', + OrePrefixes.plate.get(Materials.Osmiridium), 'Z', OrePrefixes.plate.get(Materials.HSSG) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(32L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.NaquadahAlloy), 'Y', + OrePrefixes.plate.get(Materials.Osmiridium), 'Z', OrePrefixes.plate.get(Materials.HSSS) }); + + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(34L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Neutronium), 'Y', + OrePrefixes.plate.get(Materials.EnergeticAlloy), 'Z', OrePrefixes.plate.get(Materials.Naquadah) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(36L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Neutronium), 'Y', + OrePrefixes.plate.get(Materials.EnergeticAlloy), 'Z', OrePrefixes.plate.get(Materials.NaquadahAlloy) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(38L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.Neutronium), 'Y', + OrePrefixes.plate.get(Materials.EnergeticAlloy), 'Z', OrePrefixes.plate.get(Materials.Draconium) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(40L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.BlackPlutonium), 'Y', + OrePrefixes.plate.get(Materials.Sunnarium), 'Z', OrePrefixes.plate.get(Materials.Naquadah) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(42L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.BlackPlutonium), 'Y', + OrePrefixes.plate.get(Materials.Sunnarium), 'Z', OrePrefixes.plate.get(Materials.NaquadahAlloy) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(44L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.BlackPlutonium), 'Y', + OrePrefixes.plate.get(Materials.Sunnarium), 'Z', OrePrefixes.plate.get(Materials.Draconium) }); + + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(48L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.DraconiumAwakened), 'Y', + OrePrefixes.plate.get(Materials.Neutronium), 'Z', OrePrefixes.plate.get(Materials.HSSS) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(52L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.DraconiumAwakened), 'Y', + OrePrefixes.plate.get(Materials.Neutronium), 'Z', OrePrefixes.plate.get(Materials.Naquadah) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(56L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.DraconiumAwakened), 'Y', + OrePrefixes.plate.get(Materials.Neutronium), 'Z', OrePrefixes.plate.get(Materials.NaquadahAlloy) }); + GT_ModHandler.addCraftingRecipe( + ItemList.IC2_Mixed_Metal_Ingot.get(64L), + bits_no_remove_buffered, + new Object[] { "X", "Y", "Z", 'X', OrePrefixes.plate.get(Materials.DraconiumAwakened), 'Y', + OrePrefixes.plate.get(Materials.Neutronium), 'Z', OrePrefixes.plate.get(Materials.BlackPlutonium) }); + GT_Log.out.println("GT_Mod: Beginning to add regular Crafting Recipes."); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("reactorVent", 1L, 1), - bits_no_remove_buffered, - new Object[] { "AIA", "I I", "AIA", 'I', new ItemStack(Blocks.iron_bars, 1), 'A', - OrePrefixes.plate.get(Materials.Aluminium) }); - GT_ModHandler.addShapelessCraftingRecipe( - GT_ModHandler.getIC2Item("reactorPlatingExplosive", 1L), - bits_no_remove_buffered, - new Object[] { GT_ModHandler.getIC2Item("reactorPlating", 1L), OrePrefixes.plate.get(Materials.Lead) }); + GT_ModHandler.getIC2Item("scaffold", 4L), + bits_no_remove_buffered, + new Object[] { "WWW", " S ", "S S", 'W', OrePrefixes.plank.get(Materials.Wood), 'S', + OrePrefixes.stick.get(Materials.Wood) }); + + GT_ModHandler.addShapelessCraftingRecipe( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.IronMagnetic, 1L), + bits_no_remove_buffered, + new Object[] { OrePrefixes.stick.get(Materials.AnyIron), OrePrefixes.dust.get(Materials.Redstone), + OrePrefixes.dust.get(Materials.Redstone), OrePrefixes.dust.get(Materials.Redstone), + OrePrefixes.dust.get(Materials.Redstone) }); + GT_ModHandler.addCraftingRecipe( + GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Paper, 1L), + bits_no_remove_buffered, + new Object[] { "PPk", 'P', OrePrefixes.plate.get(Materials.Paper) }); + + GT_ModHandler.addCraftingRecipe( + new ItemStack(Blocks.torch, 2), + bits_no_remove_buffered, + new Object[] { "C", "S", 'C', OrePrefixes.dust.get(Materials.Sulfur), 'S', + OrePrefixes.stick.get(Materials.Wood) }); + GT_ModHandler.addCraftingRecipe( + new ItemStack(Blocks.torch, 6), + bits_no_remove_buffered, + new Object[] { "C", "S", 'C', OrePrefixes.dust.get(Materials.TricalciumPhosphate), 'S', + OrePrefixes.stick.get(Materials.Wood) }); + + GT_ModHandler.addCraftingRecipe( + new ItemStack(Blocks.piston, 1), + bits_no_remove_buffered, + new Object[] { "WWW", "CBC", "CRC", 'W', OrePrefixes.plank.get(Materials.Wood), 'C', + OrePrefixes.stoneCobble, 'R', OrePrefixes.dust.get(Materials.Redstone), 'B', + OrePrefixes.ingot.get(Materials.AnyIron) }); + GT_ModHandler.addCraftingRecipe( + new ItemStack(Blocks.piston, 1), + bits_no_remove_buffered, + new Object[] { "WWW", "CBC", "CRC", 'W', OrePrefixes.plank.get(Materials.Wood), 'C', + OrePrefixes.stoneCobble, 'R', OrePrefixes.dust.get(Materials.Redstone), 'B', + OrePrefixes.ingot.get(Materials.AnyBronze) }); + GT_ModHandler.addCraftingRecipe( + new ItemStack(Blocks.piston, 1), + bits_no_remove_buffered, + new Object[] { "WWW", "CBC", "CRC", 'W', OrePrefixes.plank.get(Materials.Wood), 'C', + OrePrefixes.stoneCobble, 'R', OrePrefixes.dust.get(Materials.Redstone), 'B', + OrePrefixes.ingot.get(Materials.Aluminium) }); + GT_ModHandler.addCraftingRecipe( + new ItemStack(Blocks.piston, 1), + bits_no_remove_buffered, + new Object[] { "WWW", "CBC", "CRC", 'W', OrePrefixes.plank.get(Materials.Wood), 'C', + OrePrefixes.stoneCobble, 'R', OrePrefixes.dust.get(Materials.Redstone), 'B', + OrePrefixes.ingot.get(Materials.Steel) }); + GT_ModHandler.addCraftingRecipe( + new ItemStack(Blocks.piston, 1), + bits_no_remove_buffered, + new Object[] { "WWW", "CBC", "CRC", 'W', OrePrefixes.plank.get(Materials.Wood), 'C', + OrePrefixes.stoneCobble, 'R', OrePrefixes.dust.get(Materials.Redstone), 'B', + OrePrefixes.ingot.get(Materials.Titanium) }); + + GT_ModHandler.addCraftingRecipe( + GT_ModHandler.getIC2Item("reactorVent", 1L, 1), + bits_no_remove_buffered, + new Object[] { "AIA", "I I", "AIA", 'I', new ItemStack(Blocks.iron_bars, 1), 'A', + OrePrefixes.plate.get(Materials.Aluminium) }); + GT_ModHandler.addShapelessCraftingRecipe( + GT_ModHandler.getIC2Item("reactorPlatingExplosive", 1L), + bits_no_remove_buffered, + new Object[] { GT_ModHandler.getIC2Item("reactorPlating", 1L), OrePrefixes.plate.get(Materials.Lead) }); if (!Materials.Steel.mBlastFurnaceRequired) { GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Steel, 1L), - bits_no_remove_buffered, - new Object[] { OrePrefixes.dust.get(Materials.Iron), OrePrefixes.dust.get(Materials.Coal), - OrePrefixes.dust.get(Materials.Coal) }); + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Steel, 1L), + bits_no_remove_buffered, + new Object[] { OrePrefixes.dust.get(Materials.Iron), OrePrefixes.dust.get(Materials.Coal), + OrePrefixes.dust.get(Materials.Coal) }); } if (GT_Mod.gregtechproxy.mNerfDustCrafting) { GT_ModHandler.removeRecipeByOutputDelayed(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Brass, 1L)); GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Brass, 3L), - bits_no_remove_buffered, - new Object[] { OrePrefixes.dust.get(Materials.AnyCopper), OrePrefixes.dust.get(Materials.AnyCopper), - OrePrefixes.dust.get(Materials.AnyCopper), OrePrefixes.dust.get(Materials.Zinc) }); + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Brass, 3L), + bits_no_remove_buffered, + new Object[] { OrePrefixes.dust.get(Materials.AnyCopper), OrePrefixes.dust.get(Materials.AnyCopper), + OrePrefixes.dust.get(Materials.AnyCopper), OrePrefixes.dust.get(Materials.Zinc) }); GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Brass, 9L), - bits_no_remove_buffered, - new Object[] { OrePrefixes.dust.get(Materials.Tetrahedrite), - OrePrefixes.dust.get(Materials.Tetrahedrite), OrePrefixes.dust.get(Materials.Tetrahedrite), - OrePrefixes.dust.get(Materials.Zinc) }); + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Brass, 9L), + bits_no_remove_buffered, + new Object[] { OrePrefixes.dust.get(Materials.Tetrahedrite), + OrePrefixes.dust.get(Materials.Tetrahedrite), OrePrefixes.dust.get(Materials.Tetrahedrite), + OrePrefixes.dust.get(Materials.Zinc) }); GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Bronze, 3L), - bits_no_remove_buffered, - new Object[] { OrePrefixes.dust.get(Materials.AnyCopper), OrePrefixes.dust.get(Materials.AnyCopper), - OrePrefixes.dust.get(Materials.AnyCopper), OrePrefixes.dust.get(Materials.Tin) }); + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Bronze, 3L), + bits_no_remove_buffered, + new Object[] { OrePrefixes.dust.get(Materials.AnyCopper), OrePrefixes.dust.get(Materials.AnyCopper), + OrePrefixes.dust.get(Materials.AnyCopper), OrePrefixes.dust.get(Materials.Tin) }); GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Bronze, 9L), - bits_no_remove_buffered, - new Object[] { OrePrefixes.dust.get(Materials.Tetrahedrite), - OrePrefixes.dust.get(Materials.Tetrahedrite), OrePrefixes.dust.get(Materials.Tetrahedrite), - OrePrefixes.dust.get(Materials.Tin) }); + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Bronze, 9L), + bits_no_remove_buffered, + new Object[] { OrePrefixes.dust.get(Materials.Tetrahedrite), + OrePrefixes.dust.get(Materials.Tetrahedrite), OrePrefixes.dust.get(Materials.Tetrahedrite), + OrePrefixes.dust.get(Materials.Tin) }); GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Invar, 9L), - bits_no_remove_buffered, - new Object[] { OrePrefixes.dust.get(Materials.Iron), OrePrefixes.dust.get(Materials.Iron), - OrePrefixes.dust.get(Materials.Nickel) }); + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Invar, 9L), + bits_no_remove_buffered, + new Object[] { OrePrefixes.dust.get(Materials.Iron), OrePrefixes.dust.get(Materials.Iron), + OrePrefixes.dust.get(Materials.Nickel) }); GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Cupronickel, 6L), - bits_no_remove_buffered, - new Object[] { OrePrefixes.dust.get(Materials.Nickel), OrePrefixes.dust.get(Materials.AnyCopper) }); + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Cupronickel, 6L), + bits_no_remove_buffered, + new Object[] { OrePrefixes.dust.get(Materials.Nickel), OrePrefixes.dust.get(Materials.AnyCopper) }); } else { GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Brass, 4L), - bits_no_remove_buffered, - new Object[] { OrePrefixes.dust.get(Materials.AnyCopper), OrePrefixes.dust.get(Materials.AnyCopper), - OrePrefixes.dust.get(Materials.AnyCopper), OrePrefixes.dust.get(Materials.Zinc) }); - GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Brass, 3L), - bits_no_remove_buffered, - new Object[] { OrePrefixes.dust.get(Materials.Tetrahedrite), - OrePrefixes.dust.get(Materials.Tetrahedrite), OrePrefixes.dust.get(Materials.Tetrahedrite), - OrePrefixes.dust.get(Materials.Zinc) }); - GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Bronze, 4L), - bits_no_remove_buffered, - new Object[] { OrePrefixes.dust.get(Materials.AnyCopper), OrePrefixes.dust.get(Materials.AnyCopper), - OrePrefixes.dust.get(Materials.AnyCopper), OrePrefixes.dust.get(Materials.Tin) }); - GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Bronze, 3L), - bits_no_remove_buffered, - new Object[] { OrePrefixes.dust.get(Materials.Tetrahedrite), - OrePrefixes.dust.get(Materials.Tetrahedrite), OrePrefixes.dust.get(Materials.Tetrahedrite), - OrePrefixes.dust.get(Materials.Tin) }); - GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Invar, 3L), - bits_no_remove_buffered, - new Object[] { OrePrefixes.dust.get(Materials.Iron), OrePrefixes.dust.get(Materials.Iron), - OrePrefixes.dust.get(Materials.Nickel) }); - GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cupronickel, 2L), - bits_no_remove_buffered, - new Object[] { OrePrefixes.dust.get(Materials.Nickel), OrePrefixes.dust.get(Materials.AnyCopper) }); - - } - GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.RoseGold, 4L), - bits_no_remove_buffered, - new Object[] { OrePrefixes.dust.get(Materials.Gold), OrePrefixes.dust.get(Materials.Gold), - OrePrefixes.dust.get(Materials.Gold), OrePrefixes.dust.get(Materials.Gold), - OrePrefixes.dust.get(Materials.AnyCopper) }); - GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SterlingSilver, 4L), - bits_no_remove_buffered, - new Object[] { OrePrefixes.dust.get(Materials.Silver), OrePrefixes.dust.get(Materials.Silver), - OrePrefixes.dust.get(Materials.Silver), OrePrefixes.dust.get(Materials.Silver), - OrePrefixes.dust.get(Materials.AnyCopper) }); - GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.BlackBronze, 4L), - bits_no_remove_buffered, - new Object[] { OrePrefixes.dust.get(Materials.Gold), OrePrefixes.dust.get(Materials.Silver), - OrePrefixes.dust.get(Materials.AnyCopper), OrePrefixes.dust.get(Materials.AnyCopper), - OrePrefixes.dust.get(Materials.AnyCopper) }); - GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.BismuthBronze, 4L), - bits_no_remove_buffered, - new Object[] { OrePrefixes.dust.get(Materials.Bismuth), OrePrefixes.dust.get(Materials.Zinc), - OrePrefixes.dust.get(Materials.AnyCopper), OrePrefixes.dust.get(Materials.AnyCopper), - OrePrefixes.dust.get(Materials.AnyCopper) }); - - GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.CobaltBrass, 8L), - bits_no_remove_buffered, - new Object[] { OrePrefixes.dust.get(Materials.Brass), OrePrefixes.dust.get(Materials.Brass), - OrePrefixes.dust.get(Materials.Brass), OrePrefixes.dust.get(Materials.Brass), - OrePrefixes.dust.get(Materials.Brass), OrePrefixes.dust.get(Materials.Brass), - OrePrefixes.dust.get(Materials.Brass), OrePrefixes.dust.get(Materials.Aluminium), - OrePrefixes.dust.get(Materials.Cobalt) }); - - GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DamascusSteel, 2L), - bits_no_remove_buffered, - new Object[] { OrePrefixes.dust.get(Materials.Steel), OrePrefixes.dustSmall.get(Materials.Nickel), - OrePrefixes.dustSmall.get(Materials.Nickel), OrePrefixes.dustSmall.get(Materials.Nickel), - OrePrefixes.dustTiny.get(Materials.Coal), OrePrefixes.dustTiny.get(Materials.Silicon), - OrePrefixes.dustTiny.get(Materials.Manganese), OrePrefixes.dustTiny.get(Materials.Chrome), - OrePrefixes.dustTiny.get(Materials.Molybdenum) }); - GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DamascusSteel, 2L), - bits_no_remove_buffered, - new Object[] { OrePrefixes.dust.get(Materials.Steel), OrePrefixes.dustSmall.get(Materials.Manganese), - OrePrefixes.dustSmall.get(Materials.Manganese), OrePrefixes.dustSmall.get(Materials.Chrome), - OrePrefixes.dustSmall.get(Materials.Chrome), OrePrefixes.dustTiny.get(Materials.Coal), - OrePrefixes.dustTiny.get(Materials.Silicon), OrePrefixes.dustTiny.get(Materials.Vanadium) }); - GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.HSLA, 2L), - bits_no_remove_buffered, - new Object[] { OrePrefixes.dust.get(Materials.Steel), OrePrefixes.dustSmall.get(Materials.Niobium), - OrePrefixes.dustSmall.get(Materials.AnnealedCopper), - OrePrefixes.dustSmall.get(Materials.Nickel), OrePrefixes.dustSmall.get(Materials.Vanadium), - OrePrefixes.dustSmall.get(Materials.Chrome), OrePrefixes.dustTiny.get(Materials.Molybdenum), - OrePrefixes.dustSmall.get(Materials.Titanium), OrePrefixes.dustTiny.get(Materials.Carbon) }); - - GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.RedstoneAlloy, 2L), - bits_no_remove_buffered, - new Object[] { OrePrefixes.dust.get(Materials.Redstone), OrePrefixes.dust.get(Materials.Silicon), - OrePrefixes.dust.get(Materials.Coal) }); - GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.CrudeSteel, 2L), - bits_no_remove_buffered, - new Object[] { OrePrefixes.dust.get(Materials.Clay), OrePrefixes.dust.get(Materials.Flint), - OrePrefixes.dust.get(Materials.Stone) }); - GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.ConductiveIron, 2L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Brass, 4L), bits_no_remove_buffered, - new Object[] { OrePrefixes.dust.get(Materials.RedstoneAlloy), OrePrefixes.dust.get(Materials.Iron), - OrePrefixes.dust.get(Materials.Silver) }); - GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.EnergeticAlloy, 2L), - bits_no_remove_buffered, - new Object[] { OrePrefixes.dust.get(Materials.ConductiveIron), OrePrefixes.dust.get(Materials.Gold), - OrePrefixes.dust.get(Materials.BlackSteel) }); - GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.EnergeticSilver, 2L), - bits_no_remove_buffered, - new Object[] { OrePrefixes.dust.get(Materials.ConductiveIron), OrePrefixes.dust.get(Materials.Silver), - OrePrefixes.dust.get(Materials.BlackSteel) }); - - GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.ElectricalSteel, 2L), - bits_no_remove_buffered, - new Object[] { OrePrefixes.dust.get(Materials.Steel), OrePrefixes.dust.get(Materials.Coal), - OrePrefixes.dust.get(Materials.Silicon) }); - - GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Soularium, 2L), - bits_no_remove_buffered, - new Object[] { new ItemStack(Blocks.soul_sand, 1, 32767), OrePrefixes.dust.get(Materials.Gold), - OrePrefixes.dust.get(Materials.Ash) }); - GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkSteel, 2L), + new Object[] { OrePrefixes.dust.get(Materials.AnyCopper), OrePrefixes.dust.get(Materials.AnyCopper), + OrePrefixes.dust.get(Materials.AnyCopper), OrePrefixes.dust.get(Materials.Zinc) }); + GT_ModHandler.addShapelessCraftingRecipe( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Brass, 3L), bits_no_remove_buffered, - new Object[] { OrePrefixes.dust.get(Materials.ElectricalSteel), OrePrefixes.dust.get(Materials.Coal), - OrePrefixes.dust.get(Materials.Obsidian) }); - - GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Manyullyn, 3L), + new Object[] { OrePrefixes.dust.get(Materials.Tetrahedrite), + OrePrefixes.dust.get(Materials.Tetrahedrite), OrePrefixes.dust.get(Materials.Tetrahedrite), + OrePrefixes.dust.get(Materials.Zinc) }); + GT_ModHandler.addShapelessCraftingRecipe( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Bronze, 4L), bits_no_remove_buffered, - new Object[] { OrePrefixes.dust.get(Materials.Ardite), OrePrefixes.dust.get(Materials.Ardite), - OrePrefixes.dust.get(Materials.Ardite), OrePrefixes.dust.get(Materials.Ardite), - OrePrefixes.dust.get(Materials.Cobalt), OrePrefixes.dust.get(Materials.Cobalt), - OrePrefixes.dust.get(Materials.Cobalt), OrePrefixes.dust.get(Materials.Cobalt) }); - - GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Haderoth, 1L), + new Object[] { OrePrefixes.dust.get(Materials.AnyCopper), OrePrefixes.dust.get(Materials.AnyCopper), + OrePrefixes.dust.get(Materials.AnyCopper), OrePrefixes.dust.get(Materials.Tin) }); + GT_ModHandler.addShapelessCraftingRecipe( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Bronze, 3L), bits_no_remove_buffered, - new Object[] { OrePrefixes.dust.get(Materials.Rubracium), OrePrefixes.dust.get(Materials.Mithril) }); - GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Celenegil, 1L), + new Object[] { OrePrefixes.dust.get(Materials.Tetrahedrite), + OrePrefixes.dust.get(Materials.Tetrahedrite), OrePrefixes.dust.get(Materials.Tetrahedrite), + OrePrefixes.dust.get(Materials.Tin) }); + GT_ModHandler.addShapelessCraftingRecipe( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Invar, 3L), bits_no_remove_buffered, - new Object[] { OrePrefixes.dust.get(Materials.Platinum), OrePrefixes.dust.get(Materials.Orichalcum) }); - - GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.IronWood, 2L), + new Object[] { OrePrefixes.dust.get(Materials.Iron), OrePrefixes.dust.get(Materials.Iron), + OrePrefixes.dust.get(Materials.Nickel) }); + GT_ModHandler.addShapelessCraftingRecipe( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cupronickel, 2L), bits_no_remove_buffered, - new Object[] { OrePrefixes.dust.get(Materials.Iron), OrePrefixes.dust.get(Materials.LiveRoot), - OrePrefixes.dustTiny.get(Materials.Gold) }); + new Object[] { OrePrefixes.dust.get(Materials.Nickel), OrePrefixes.dust.get(Materials.AnyCopper) }); + } GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Hepatizon, 3L), - bits_no_remove_buffered, - new Object[] { OrePrefixes.dust.get(Materials.Copper), OrePrefixes.dust.get(Materials.Copper), - OrePrefixes.dust.get(Materials.Copper), OrePrefixes.dustTiny.get(Materials.Gold), - OrePrefixes.dustTiny.get(Materials.Gold), OrePrefixes.dustTiny.get(Materials.Gold), - OrePrefixes.dustTiny.get(Materials.Silver), OrePrefixes.dustTiny.get(Materials.Silver), - OrePrefixes.dustTiny.get(Materials.Silver) }); - GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Angmallen, 2L), - bits_no_remove_buffered, - new Object[] { OrePrefixes.dust.get(Materials.Iron), OrePrefixes.dust.get(Materials.Gold) }); - GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Inolashite, 1L), - bits_no_remove_buffered, - new Object[] { OrePrefixes.dust.get(Materials.Alduorite), OrePrefixes.dust.get(Materials.Ceruclase) }); - + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.RoseGold, 4L), + bits_no_remove_buffered, + new Object[] { OrePrefixes.dust.get(Materials.Gold), OrePrefixes.dust.get(Materials.Gold), + OrePrefixes.dust.get(Materials.Gold), OrePrefixes.dust.get(Materials.Gold), + OrePrefixes.dust.get(Materials.AnyCopper) }); + GT_ModHandler.addShapelessCraftingRecipe( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SterlingSilver, 4L), + bits_no_remove_buffered, + new Object[] { OrePrefixes.dust.get(Materials.Silver), OrePrefixes.dust.get(Materials.Silver), + OrePrefixes.dust.get(Materials.Silver), OrePrefixes.dust.get(Materials.Silver), + OrePrefixes.dust.get(Materials.AnyCopper) }); + GT_ModHandler.addShapelessCraftingRecipe( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.BlackBronze, 4L), + bits_no_remove_buffered, + new Object[] { OrePrefixes.dust.get(Materials.Gold), OrePrefixes.dust.get(Materials.Silver), + OrePrefixes.dust.get(Materials.AnyCopper), OrePrefixes.dust.get(Materials.AnyCopper), + OrePrefixes.dust.get(Materials.AnyCopper) }); + GT_ModHandler.addShapelessCraftingRecipe( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.BismuthBronze, 4L), + bits_no_remove_buffered, + new Object[] { OrePrefixes.dust.get(Materials.Bismuth), OrePrefixes.dust.get(Materials.Zinc), + OrePrefixes.dust.get(Materials.AnyCopper), OrePrefixes.dust.get(Materials.AnyCopper), + OrePrefixes.dust.get(Materials.AnyCopper) }); + + GT_ModHandler.addShapelessCraftingRecipe( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.CobaltBrass, 8L), + bits_no_remove_buffered, + new Object[] { OrePrefixes.dust.get(Materials.Brass), OrePrefixes.dust.get(Materials.Brass), + OrePrefixes.dust.get(Materials.Brass), OrePrefixes.dust.get(Materials.Brass), + OrePrefixes.dust.get(Materials.Brass), OrePrefixes.dust.get(Materials.Brass), + OrePrefixes.dust.get(Materials.Brass), OrePrefixes.dust.get(Materials.Aluminium), + OrePrefixes.dust.get(Materials.Cobalt) }); + + GT_ModHandler.addShapelessCraftingRecipe( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DamascusSteel, 2L), + bits_no_remove_buffered, + new Object[] { OrePrefixes.dust.get(Materials.Steel), OrePrefixes.dustSmall.get(Materials.Nickel), + OrePrefixes.dustSmall.get(Materials.Nickel), OrePrefixes.dustSmall.get(Materials.Nickel), + OrePrefixes.dustTiny.get(Materials.Coal), OrePrefixes.dustTiny.get(Materials.Silicon), + OrePrefixes.dustTiny.get(Materials.Manganese), OrePrefixes.dustTiny.get(Materials.Chrome), + OrePrefixes.dustTiny.get(Materials.Molybdenum) }); + GT_ModHandler.addShapelessCraftingRecipe( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DamascusSteel, 2L), + bits_no_remove_buffered, + new Object[] { OrePrefixes.dust.get(Materials.Steel), OrePrefixes.dustSmall.get(Materials.Manganese), + OrePrefixes.dustSmall.get(Materials.Manganese), OrePrefixes.dustSmall.get(Materials.Chrome), + OrePrefixes.dustSmall.get(Materials.Chrome), OrePrefixes.dustTiny.get(Materials.Coal), + OrePrefixes.dustTiny.get(Materials.Silicon), OrePrefixes.dustTiny.get(Materials.Vanadium) }); + GT_ModHandler.addShapelessCraftingRecipe( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.HSLA, 2L), + bits_no_remove_buffered, + new Object[] { OrePrefixes.dust.get(Materials.Steel), OrePrefixes.dustSmall.get(Materials.Niobium), + OrePrefixes.dustSmall.get(Materials.AnnealedCopper), OrePrefixes.dustSmall.get(Materials.Nickel), + OrePrefixes.dustSmall.get(Materials.Vanadium), OrePrefixes.dustSmall.get(Materials.Chrome), + OrePrefixes.dustTiny.get(Materials.Molybdenum), OrePrefixes.dustSmall.get(Materials.Titanium), + OrePrefixes.dustTiny.get(Materials.Carbon) }); + + GT_ModHandler.addShapelessCraftingRecipe( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.RedstoneAlloy, 2L), + bits_no_remove_buffered, + new Object[] { OrePrefixes.dust.get(Materials.Redstone), OrePrefixes.dust.get(Materials.Silicon), + OrePrefixes.dust.get(Materials.Coal) }); + GT_ModHandler.addShapelessCraftingRecipe( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.CrudeSteel, 2L), + bits_no_remove_buffered, + new Object[] { OrePrefixes.dust.get(Materials.Clay), OrePrefixes.dust.get(Materials.Flint), + OrePrefixes.dust.get(Materials.Stone) }); + GT_ModHandler.addShapelessCraftingRecipe( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.ConductiveIron, 2L), + bits_no_remove_buffered, + new Object[] { OrePrefixes.dust.get(Materials.RedstoneAlloy), OrePrefixes.dust.get(Materials.Iron), + OrePrefixes.dust.get(Materials.Silver) }); + GT_ModHandler.addShapelessCraftingRecipe( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.EnergeticAlloy, 2L), + bits_no_remove_buffered, + new Object[] { OrePrefixes.dust.get(Materials.ConductiveIron), OrePrefixes.dust.get(Materials.Gold), + OrePrefixes.dust.get(Materials.BlackSteel) }); + GT_ModHandler.addShapelessCraftingRecipe( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.EnergeticSilver, 2L), + bits_no_remove_buffered, + new Object[] { OrePrefixes.dust.get(Materials.ConductiveIron), OrePrefixes.dust.get(Materials.Silver), + OrePrefixes.dust.get(Materials.BlackSteel) }); + + GT_ModHandler.addShapelessCraftingRecipe( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.ElectricalSteel, 2L), + bits_no_remove_buffered, + new Object[] { OrePrefixes.dust.get(Materials.Steel), OrePrefixes.dust.get(Materials.Coal), + OrePrefixes.dust.get(Materials.Silicon) }); + + GT_ModHandler.addShapelessCraftingRecipe( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Soularium, 2L), + bits_no_remove_buffered, + new Object[] { new ItemStack(Blocks.soul_sand, 1, 32767), OrePrefixes.dust.get(Materials.Gold), + OrePrefixes.dust.get(Materials.Ash) }); + GT_ModHandler.addShapelessCraftingRecipe( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkSteel, 2L), + bits_no_remove_buffered, + new Object[] { OrePrefixes.dust.get(Materials.ElectricalSteel), OrePrefixes.dust.get(Materials.Coal), + OrePrefixes.dust.get(Materials.Obsidian) }); + + GT_ModHandler.addShapelessCraftingRecipe( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Manyullyn, 3L), + bits_no_remove_buffered, + new Object[] { OrePrefixes.dust.get(Materials.Ardite), OrePrefixes.dust.get(Materials.Ardite), + OrePrefixes.dust.get(Materials.Ardite), OrePrefixes.dust.get(Materials.Ardite), + OrePrefixes.dust.get(Materials.Cobalt), OrePrefixes.dust.get(Materials.Cobalt), + OrePrefixes.dust.get(Materials.Cobalt), OrePrefixes.dust.get(Materials.Cobalt) }); + + GT_ModHandler.addShapelessCraftingRecipe( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Haderoth, 1L), + bits_no_remove_buffered, + new Object[] { OrePrefixes.dust.get(Materials.Rubracium), OrePrefixes.dust.get(Materials.Mithril) }); + GT_ModHandler.addShapelessCraftingRecipe( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Celenegil, 1L), + bits_no_remove_buffered, + new Object[] { OrePrefixes.dust.get(Materials.Platinum), OrePrefixes.dust.get(Materials.Orichalcum) }); + + GT_ModHandler.addShapelessCraftingRecipe( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.IronWood, 2L), + bits_no_remove_buffered, + new Object[] { OrePrefixes.dust.get(Materials.Iron), OrePrefixes.dust.get(Materials.LiveRoot), + OrePrefixes.dustTiny.get(Materials.Gold) }); + + GT_ModHandler.addShapelessCraftingRecipe( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Hepatizon, 3L), + bits_no_remove_buffered, + new Object[] { OrePrefixes.dust.get(Materials.Copper), OrePrefixes.dust.get(Materials.Copper), + OrePrefixes.dust.get(Materials.Copper), OrePrefixes.dustTiny.get(Materials.Gold), + OrePrefixes.dustTiny.get(Materials.Gold), OrePrefixes.dustTiny.get(Materials.Gold), + OrePrefixes.dustTiny.get(Materials.Silver), OrePrefixes.dustTiny.get(Materials.Silver), + OrePrefixes.dustTiny.get(Materials.Silver) }); + GT_ModHandler.addShapelessCraftingRecipe( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Angmallen, 2L), + bits_no_remove_buffered, + new Object[] { OrePrefixes.dust.get(Materials.Iron), OrePrefixes.dust.get(Materials.Gold) }); + GT_ModHandler.addShapelessCraftingRecipe( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Inolashite, 1L), + bits_no_remove_buffered, + new Object[] { OrePrefixes.dust.get(Materials.Alduorite), OrePrefixes.dust.get(Materials.Ceruclase) }); + GT_ModHandler.addShapelessCraftingRecipe( - new ItemStack(Items.gunpowder, 6), - bits_no_remove_buffered, - new Object[] { OrePrefixes.dust.get(Materials.Coal), OrePrefixes.dust.get(Materials.Coal), - OrePrefixes.dust.get(Materials.Coal), OrePrefixes.dust.get(Materials.Sulfur), - OrePrefixes.dust.get(Materials.Saltpeter), OrePrefixes.dust.get(Materials.Saltpeter) }); + new ItemStack(Items.gunpowder, 6), + bits_no_remove_buffered, + new Object[] { OrePrefixes.dust.get(Materials.Coal), OrePrefixes.dust.get(Materials.Coal), + OrePrefixes.dust.get(Materials.Coal), OrePrefixes.dust.get(Materials.Sulfur), + OrePrefixes.dust.get(Materials.Saltpeter), OrePrefixes.dust.get(Materials.Saltpeter) }); GT_ModHandler.addShapelessCraftingRecipe( - new ItemStack(Items.gunpowder, 6), - bits_no_remove_buffered, - new Object[] { OrePrefixes.dust.get(Materials.Charcoal), OrePrefixes.dust.get(Materials.Charcoal), - OrePrefixes.dust.get(Materials.Charcoal), OrePrefixes.dust.get(Materials.Sulfur), - OrePrefixes.dust.get(Materials.Saltpeter), OrePrefixes.dust.get(Materials.Saltpeter) }); + new ItemStack(Items.gunpowder, 6), + bits_no_remove_buffered, + new Object[] { OrePrefixes.dust.get(Materials.Charcoal), OrePrefixes.dust.get(Materials.Charcoal), + OrePrefixes.dust.get(Materials.Charcoal), OrePrefixes.dust.get(Materials.Sulfur), + OrePrefixes.dust.get(Materials.Saltpeter), OrePrefixes.dust.get(Materials.Saltpeter) }); GT_ModHandler.addShapelessCraftingRecipe( - new ItemStack(Items.gunpowder, 6), - bits_no_remove_buffered, - new Object[] { OrePrefixes.dust.get(Materials.Carbon), OrePrefixes.dust.get(Materials.Carbon), - OrePrefixes.dust.get(Materials.Carbon), OrePrefixes.dust.get(Materials.Sulfur), - OrePrefixes.dust.get(Materials.Saltpeter), OrePrefixes.dust.get(Materials.Saltpeter) }); + new ItemStack(Items.gunpowder, 6), + bits_no_remove_buffered, + new Object[] { OrePrefixes.dust.get(Materials.Carbon), OrePrefixes.dust.get(Materials.Carbon), + OrePrefixes.dust.get(Materials.Carbon), OrePrefixes.dust.get(Materials.Sulfur), + OrePrefixes.dust.get(Materials.Saltpeter), OrePrefixes.dust.get(Materials.Saltpeter) }); GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.IndiumGalliumPhosphide, 3L), - bits_no_remove_buffered, - new Object[] { OrePrefixes.dust.get(Materials.Indium), OrePrefixes.dust.get(Materials.Gallium), - OrePrefixes.dust.get(Materials.Phosphorus) }); + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.IndiumGalliumPhosphide, 3L), + bits_no_remove_buffered, + new Object[] { OrePrefixes.dust.get(Materials.Indium), OrePrefixes.dust.get(Materials.Gallium), + OrePrefixes.dust.get(Materials.Phosphorus) }); GT_ModHandler.addShapelessCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Saltpeter, 5L), - bits_no_remove_buffered, - new Object[] { OrePrefixes.dust.get(Materials.Potassium), OrePrefixes.cell.get(Materials.Nitrogen), - OrePrefixes.cell.get(Materials.Oxygen), OrePrefixes.cell.get(Materials.Oxygen), - OrePrefixes.cell.get(Materials.Oxygen) }); + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Saltpeter, 5L), + bits_no_remove_buffered, + new Object[] { OrePrefixes.dust.get(Materials.Potassium), OrePrefixes.cell.get(Materials.Nitrogen), + OrePrefixes.cell.get(Materials.Oxygen), OrePrefixes.cell.get(Materials.Oxygen), + OrePrefixes.cell.get(Materials.Oxygen) }); GT_ModHandler.removeRecipeByOutputDelayed(GT_ModHandler.getIC2Item("carbonFiber", 1L)); ItemStack[] tChestAndTank = new ItemStack[] { ItemList.Super_Chest_EV.get(1), ItemList.Super_Chest_IV.get(1), - ItemList.Super_Chest_HV.get(1), ItemList.Super_Chest_MV.get(1), ItemList.Super_Chest_LV.get(1), - ItemList.Quantum_Chest_EV.get(1), ItemList.Quantum_Chest_IV.get(1), ItemList.Quantum_Chest_HV.get(1), - ItemList.Quantum_Chest_MV.get(1), ItemList.Quantum_Chest_LV.get(1), ItemList.Super_Tank_EV.get(1), - ItemList.Super_Tank_IV.get(1), ItemList.Super_Tank_HV.get(1), ItemList.Super_Tank_MV.get(1), - ItemList.Super_Tank_LV.get(1), ItemList.Quantum_Tank_EV.get(1), ItemList.Quantum_Tank_IV.get(1), - ItemList.Quantum_Tank_HV.get(1), ItemList.Quantum_Tank_MV.get(1), ItemList.Quantum_Tank_LV.get(1) }; + ItemList.Super_Chest_HV.get(1), ItemList.Super_Chest_MV.get(1), ItemList.Super_Chest_LV.get(1), + ItemList.Quantum_Chest_EV.get(1), ItemList.Quantum_Chest_IV.get(1), ItemList.Quantum_Chest_HV.get(1), + ItemList.Quantum_Chest_MV.get(1), ItemList.Quantum_Chest_LV.get(1), ItemList.Super_Tank_EV.get(1), + ItemList.Super_Tank_IV.get(1), ItemList.Super_Tank_HV.get(1), ItemList.Super_Tank_MV.get(1), + ItemList.Super_Tank_LV.get(1), ItemList.Quantum_Tank_EV.get(1), ItemList.Quantum_Tank_IV.get(1), + ItemList.Quantum_Tank_HV.get(1), ItemList.Quantum_Tank_MV.get(1), ItemList.Quantum_Tank_LV.get(1) }; for (ItemStack tItem : tChestAndTank) { GT_ModHandler.addShapelessCraftingRecipe(tItem, new Object[] { tItem }); } @@ -1611,12 +1572,11 @@ public class GT_CraftingRecipeLoader implements Runnable { if (GT_Mod.gregtechproxy.mDisableIC2Cables) { List iToRemoveAndHide = Arrays.stream( - new String[] { "copperCableItem", "insulatedCopperCableItem", "goldCableItem", - "insulatedGoldCableItem", "insulatedIronCableItem", "glassFiberCableItem", "tinCableItem", - "ironCableItem", "insulatedTinCableItem", "detectorCableItem", "splitterCableItem", - "electrolyzer", "cutter" }) - .map(x -> GT_ModHandler.getIC2Item(x, 1L)) - .collect(Collectors.toList()); + new String[] { "copperCableItem", "insulatedCopperCableItem", "goldCableItem", "insulatedGoldCableItem", + "insulatedIronCableItem", "glassFiberCableItem", "tinCableItem", "ironCableItem", + "insulatedTinCableItem", "detectorCableItem", "splitterCableItem", "electrolyzer", "cutter" }) + .map(x -> GT_ModHandler.getIC2Item(x, 1L)) + .collect(Collectors.toList()); if (NotEnoughItems.isModLoaded()) { iToRemoveAndHide.forEach(item -> { @@ -1626,179 +1586,170 @@ public class GT_CraftingRecipeLoader implements Runnable { } Arrays.stream( - new String[] { "batBox", "mfeUnit", "lvTransformer", "mvTransformer", "hvTransformer", - "evTransformer", "cesuUnit", "luminator", "teleporter", "energyOMat", "advBattery", - "boatElectric", "cropnalyzer", "coil", "powerunit", "powerunitsmall", "remote", "odScanner", - "ovScanner", "solarHelmet", "staticBoots", "ecMeter", "obscurator", "overclockerUpgrade", - "transformerUpgrade", "energyStorageUpgrade", "ejectorUpgrade", "suBattery", - "frequencyTransmitter", "pullingUpgrade" }) - .map(x -> GT_ModHandler.getIC2Item(x, 1L)) - .forEach(GT_ModHandler::removeRecipeByOutputDelayed); + new String[] { "batBox", "mfeUnit", "lvTransformer", "mvTransformer", "hvTransformer", "evTransformer", + "cesuUnit", "luminator", "teleporter", "energyOMat", "advBattery", "boatElectric", "cropnalyzer", + "coil", "powerunit", "powerunitsmall", "remote", "odScanner", "ovScanner", "solarHelmet", + "staticBoots", "ecMeter", "obscurator", "overclockerUpgrade", "transformerUpgrade", + "energyStorageUpgrade", "ejectorUpgrade", "suBattery", "frequencyTransmitter", "pullingUpgrade" }) + .map(x -> GT_ModHandler.getIC2Item(x, 1L)) + .forEach(GT_ModHandler::removeRecipeByOutputDelayed); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("batBox", 1L), - bits_no_remove_buffered, - new Object[] { "PCP", "BBB", "PPP", 'C', OrePrefixes.cableGt01.get(Materials.Tin), 'P', - OrePrefixes.plank.get(Materials.Wood), 'B', OrePrefixes.battery.get(Materials.Basic) }); + GT_ModHandler.getIC2Item("batBox", 1L), + bits_no_remove_buffered, + new Object[] { "PCP", "BBB", "PPP", 'C', OrePrefixes.cableGt01.get(Materials.Tin), 'P', + OrePrefixes.plank.get(Materials.Wood), 'B', OrePrefixes.battery.get(Materials.Basic) }); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("mfeUnit", 1L), - bits_no_remove_buffered, - new Object[] { "CEC", "EME", "CEC", 'C', OrePrefixes.cableGt01.get(Materials.Gold), 'E', - OrePrefixes.battery.get(Materials.Elite), 'M', GT_ModHandler.getIC2Item("machine", 1L) }); + GT_ModHandler.getIC2Item("mfeUnit", 1L), + bits_no_remove_buffered, + new Object[] { "CEC", "EME", "CEC", 'C', OrePrefixes.cableGt01.get(Materials.Gold), 'E', + OrePrefixes.battery.get(Materials.Elite), 'M', GT_ModHandler.getIC2Item("machine", 1L) }); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("lvTransformer", 1L), - bits_no_remove_buffered, - new Object[] { "PCP", "POP", "PCP", 'C', OrePrefixes.cableGt01.get(Materials.Tin), 'O', - GT_ModHandler.getIC2Item("coil", 1L), 'P', OrePrefixes.plank.get(Materials.Wood) }); + GT_ModHandler.getIC2Item("lvTransformer", 1L), + bits_no_remove_buffered, + new Object[] { "PCP", "POP", "PCP", 'C', OrePrefixes.cableGt01.get(Materials.Tin), 'O', + GT_ModHandler.getIC2Item("coil", 1L), 'P', OrePrefixes.plank.get(Materials.Wood) }); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("mvTransformer", 1L), - bits_no_remove_buffered, - new Object[] { "CMC", 'C', OrePrefixes.cableGt01.get(Materials.Copper), 'M', - GT_ModHandler.getIC2Item("machine", 1L) }); + GT_ModHandler.getIC2Item("mvTransformer", 1L), + bits_no_remove_buffered, + new Object[] { "CMC", 'C', OrePrefixes.cableGt01.get(Materials.Copper), 'M', + GT_ModHandler.getIC2Item("machine", 1L) }); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("hvTransformer", 1L), - bits_no_remove_buffered, - new Object[] { " C ", "IMB", " C ", 'C', OrePrefixes.cableGt01.get(Materials.Gold), 'M', - GT_ModHandler.getIC2Item("mvTransformer", 1L), 'I', - OrePrefixes.circuit.get(Materials.Basic), 'B', - OrePrefixes.battery.get(Materials.Advanced) }); + GT_ModHandler.getIC2Item("hvTransformer", 1L), + bits_no_remove_buffered, + new Object[] { " C ", "IMB", " C ", 'C', OrePrefixes.cableGt01.get(Materials.Gold), 'M', + GT_ModHandler.getIC2Item("mvTransformer", 1L), 'I', OrePrefixes.circuit.get(Materials.Basic), 'B', + OrePrefixes.battery.get(Materials.Advanced) }); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("evTransformer", 1L), - bits_no_remove_buffered, - new Object[] { " C ", "IMB", " C ", 'C', OrePrefixes.cableGt01.get(Materials.Aluminium), 'M', - GT_ModHandler.getIC2Item("hvTransformer", 1L), 'I', - OrePrefixes.circuit.get(Materials.Advanced), 'B', - OrePrefixes.battery.get(Materials.Master) }); + GT_ModHandler.getIC2Item("evTransformer", 1L), + bits_no_remove_buffered, + new Object[] { " C ", "IMB", " C ", 'C', OrePrefixes.cableGt01.get(Materials.Aluminium), 'M', + GT_ModHandler.getIC2Item("hvTransformer", 1L), 'I', OrePrefixes.circuit.get(Materials.Advanced), + 'B', OrePrefixes.battery.get(Materials.Master) }); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("cesuUnit", 1L), - bits_no_remove_buffered, - new Object[] { "PCP", "BBB", "PPP", 'C', OrePrefixes.cableGt01.get(Materials.Copper), 'P', - OrePrefixes.plate.get(Materials.Bronze), 'B', - OrePrefixes.battery.get(Materials.Advanced) }); + GT_ModHandler.getIC2Item("cesuUnit", 1L), + bits_no_remove_buffered, + new Object[] { "PCP", "BBB", "PPP", 'C', OrePrefixes.cableGt01.get(Materials.Copper), 'P', + OrePrefixes.plate.get(Materials.Bronze), 'B', OrePrefixes.battery.get(Materials.Advanced) }); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("teleporter", 1L), - bits_no_remove_buffered, - new Object[] { "GFG", "CMC", "GDG", 'C', OrePrefixes.cableGt01.get(Materials.Platinum), 'G', - OrePrefixes.circuit.get(Materials.Advanced), 'D', OrePrefixes.gem.get(Materials.Diamond), - 'M', GT_ModHandler.getIC2Item("machine", 1L), 'F', - GT_ModHandler.getIC2Item("frequencyTransmitter", 1L) }); + GT_ModHandler.getIC2Item("teleporter", 1L), + bits_no_remove_buffered, + new Object[] { "GFG", "CMC", "GDG", 'C', OrePrefixes.cableGt01.get(Materials.Platinum), 'G', + OrePrefixes.circuit.get(Materials.Advanced), 'D', OrePrefixes.gem.get(Materials.Diamond), 'M', + GT_ModHandler.getIC2Item("machine", 1L), 'F', + GT_ModHandler.getIC2Item("frequencyTransmitter", 1L) }); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("energyOMat", 1L), - bits_no_remove_buffered, - new Object[] { "RBR", "CMC", 'C', OrePrefixes.cableGt01.get(Materials.Copper), 'R', - OrePrefixes.dust.get(Materials.Redstone), 'B', OrePrefixes.battery.get(Materials.Basic), - 'M', GT_ModHandler.getIC2Item("machine", 1L) }); + GT_ModHandler.getIC2Item("energyOMat", 1L), + bits_no_remove_buffered, + new Object[] { "RBR", "CMC", 'C', OrePrefixes.cableGt01.get(Materials.Copper), 'R', + OrePrefixes.dust.get(Materials.Redstone), 'B', OrePrefixes.battery.get(Materials.Basic), 'M', + GT_ModHandler.getIC2Item("machine", 1L) }); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("boatElectric", 1L), - bits_no_remove_buffered, - new Object[] { "CCC", "XWX", aTextIron2, 'C', OrePrefixes.cableGt01.get(Materials.Copper), 'X', - OrePrefixes.plate.get(Materials.Iron), 'W', GT_ModHandler.getIC2Item("waterMill", 1L) }); + GT_ModHandler.getIC2Item("boatElectric", 1L), + bits_no_remove_buffered, + new Object[] { "CCC", "XWX", aTextIron2, 'C', OrePrefixes.cableGt01.get(Materials.Copper), 'X', + OrePrefixes.plate.get(Materials.Iron), 'W', GT_ModHandler.getIC2Item("waterMill", 1L) }); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("cropnalyzer", 1L), - bits_no_remove_buffered, - new Object[] { "CC ", "RGR", "RIR", 'C', OrePrefixes.cableGt01.get(Materials.Copper), 'R', - OrePrefixes.dust.get(Materials.Redstone), 'G', OrePrefixes.block.get(Materials.Glass), 'I', - OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.getIC2Item("cropnalyzer", 1L), + bits_no_remove_buffered, + new Object[] { "CC ", "RGR", "RIR", 'C', OrePrefixes.cableGt01.get(Materials.Copper), 'R', + OrePrefixes.dust.get(Materials.Redstone), 'G', OrePrefixes.block.get(Materials.Glass), 'I', + OrePrefixes.circuit.get(Materials.Basic) }); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("coil", 1L), - bits_no_remove_buffered, - new Object[] { "CCC", "CXC", "CCC", 'C', OrePrefixes.wireGt01.get(Materials.Copper), 'X', - OrePrefixes.ingot.get(Materials.AnyIron) }); + GT_ModHandler.getIC2Item("coil", 1L), + bits_no_remove_buffered, + new Object[] { "CCC", "CXC", "CCC", 'C', OrePrefixes.wireGt01.get(Materials.Copper), 'X', + OrePrefixes.ingot.get(Materials.AnyIron) }); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("powerunit", 1L), - bits_no_remove_buffered, - new Object[] { "BCA", "BIM", "BCA", 'C', OrePrefixes.cableGt01.get(Materials.Copper), 'B', - OrePrefixes.battery.get(Materials.Basic), 'A', GT_ModHandler.getIC2Item("casingiron", 1L), - 'I', OrePrefixes.circuit.get(Materials.Basic), 'M', - GT_ModHandler.getIC2Item("elemotor", 1L) }); + GT_ModHandler.getIC2Item("powerunit", 1L), + bits_no_remove_buffered, + new Object[] { "BCA", "BIM", "BCA", 'C', OrePrefixes.cableGt01.get(Materials.Copper), 'B', + OrePrefixes.battery.get(Materials.Basic), 'A', GT_ModHandler.getIC2Item("casingiron", 1L), 'I', + OrePrefixes.circuit.get(Materials.Basic), 'M', GT_ModHandler.getIC2Item("elemotor", 1L) }); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("powerunitsmall", 1L), - bits_no_remove_buffered, - new Object[] { " CA", "BIM", " CA", 'C', OrePrefixes.cableGt01.get(Materials.Copper), 'B', - OrePrefixes.battery.get(Materials.Basic), 'A', GT_ModHandler.getIC2Item("casingiron", 1L), - 'I', OrePrefixes.circuit.get(Materials.Basic), 'M', - GT_ModHandler.getIC2Item("elemotor", 1L) }); + GT_ModHandler.getIC2Item("powerunitsmall", 1L), + bits_no_remove_buffered, + new Object[] { " CA", "BIM", " CA", 'C', OrePrefixes.cableGt01.get(Materials.Copper), 'B', + OrePrefixes.battery.get(Materials.Basic), 'A', GT_ModHandler.getIC2Item("casingiron", 1L), 'I', + OrePrefixes.circuit.get(Materials.Basic), 'M', GT_ModHandler.getIC2Item("elemotor", 1L) }); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("remote", 1L), - bits_no_remove_buffered, - new Object[] { " C ", "TLT", " F ", 'C', OrePrefixes.cableGt01.get(Materials.Copper), 'L', - OrePrefixes.dust.get(Materials.Lapis), 'T', GT_ModHandler.getIC2Item("casingtin", 1L), 'F', - GT_ModHandler.getIC2Item("frequencyTransmitter", 1L) }); + GT_ModHandler.getIC2Item("remote", 1L), + bits_no_remove_buffered, + new Object[] { " C ", "TLT", " F ", 'C', OrePrefixes.cableGt01.get(Materials.Copper), 'L', + OrePrefixes.dust.get(Materials.Lapis), 'T', GT_ModHandler.getIC2Item("casingtin", 1L), 'F', + GT_ModHandler.getIC2Item("frequencyTransmitter", 1L) }); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("odScanner", 1L), - bits_no_remove_buffered, - new Object[] { "PGP", "CBC", "WWW", 'W', OrePrefixes.cableGt01.get(Materials.Copper), 'G', - OrePrefixes.dust.get(Materials.Glowstone), 'B', OrePrefixes.battery.get(Materials.Advanced), - 'C', OrePrefixes.circuit.get(Materials.Advanced), 'P', - GT_ModHandler.getIC2Item("casinggold", 1L) }); + GT_ModHandler.getIC2Item("odScanner", 1L), + bits_no_remove_buffered, + new Object[] { "PGP", "CBC", "WWW", 'W', OrePrefixes.cableGt01.get(Materials.Copper), 'G', + OrePrefixes.dust.get(Materials.Glowstone), 'B', OrePrefixes.battery.get(Materials.Advanced), 'C', + OrePrefixes.circuit.get(Materials.Advanced), 'P', GT_ModHandler.getIC2Item("casinggold", 1L) }); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("ovScanner", 1L), - bits_no_remove_buffered, - new Object[] { "PDP", "GCG", "WSW", 'W', OrePrefixes.cableGt01.get(Materials.Gold), 'G', - OrePrefixes.dust.get(Materials.Glowstone), 'D', OrePrefixes.battery.get(Materials.Elite), - 'C', OrePrefixes.circuit.get(Materials.Advanced), 'P', - GT_ModHandler.getIC2Item("casinggold", 1L), 'S', - GT_ModHandler.getIC2Item("odScanner", 1L) }); + GT_ModHandler.getIC2Item("ovScanner", 1L), + bits_no_remove_buffered, + new Object[] { "PDP", "GCG", "WSW", 'W', OrePrefixes.cableGt01.get(Materials.Gold), 'G', + OrePrefixes.dust.get(Materials.Glowstone), 'D', OrePrefixes.battery.get(Materials.Elite), 'C', + OrePrefixes.circuit.get(Materials.Advanced), 'P', GT_ModHandler.getIC2Item("casinggold", 1L), 'S', + GT_ModHandler.getIC2Item("odScanner", 1L) }); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("staticBoots", 1L), - bits_no_remove_buffered, - new Object[] { "I I", "IWI", "CCC", 'C', OrePrefixes.cableGt01.get(Materials.Copper), 'I', - OrePrefixes.ingot.get(Materials.Iron), 'W', new ItemStack(Blocks.wool) }); + GT_ModHandler.getIC2Item("staticBoots", 1L), + bits_no_remove_buffered, + new Object[] { "I I", "IWI", "CCC", 'C', OrePrefixes.cableGt01.get(Materials.Copper), 'I', + OrePrefixes.ingot.get(Materials.Iron), 'W', new ItemStack(Blocks.wool) }); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("ecMeter", 1L), - bits_no_remove_buffered, - new Object[] { " G ", "CIC", "C C", 'C', OrePrefixes.cableGt01.get(Materials.Copper), 'G', - OrePrefixes.dust.get(Materials.Glowstone), 'I', OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.getIC2Item("ecMeter", 1L), + bits_no_remove_buffered, + new Object[] { " G ", "CIC", "C C", 'C', OrePrefixes.cableGt01.get(Materials.Copper), 'G', + OrePrefixes.dust.get(Materials.Glowstone), 'I', OrePrefixes.circuit.get(Materials.Basic) }); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("obscurator", 1L), - bits_no_remove_buffered, - new Object[] { "RER", "CAC", "RRR", 'C', OrePrefixes.cableGt01.get(Materials.Gold), 'R', - OrePrefixes.dust.get(Materials.Redstone), 'E', OrePrefixes.battery.get(Materials.Advanced), - 'A', OrePrefixes.circuit.get(Materials.Advanced) }); + GT_ModHandler.getIC2Item("obscurator", 1L), + bits_no_remove_buffered, + new Object[] { "RER", "CAC", "RRR", 'C', OrePrefixes.cableGt01.get(Materials.Gold), 'R', + OrePrefixes.dust.get(Materials.Redstone), 'E', OrePrefixes.battery.get(Materials.Advanced), 'A', + OrePrefixes.circuit.get(Materials.Advanced) }); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("overclockerUpgrade", 1L), - bits_no_remove_buffered, - new Object[] { "CCC", "WEW", 'W', OrePrefixes.cableGt01.get(Materials.Copper), 'C', - GT_ModHandler.getIC2Item("reactorCoolantSimple", 1L, 1), 'E', - OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.getIC2Item("overclockerUpgrade", 1L), + bits_no_remove_buffered, + new Object[] { "CCC", "WEW", 'W', OrePrefixes.cableGt01.get(Materials.Copper), 'C', + GT_ModHandler.getIC2Item("reactorCoolantSimple", 1L, 1), 'E', + OrePrefixes.circuit.get(Materials.Basic) }); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("transformerUpgrade", 1L), - bits_no_remove_buffered, - new Object[] { "GGG", "WTW", "GEG", 'W', OrePrefixes.cableGt01.get(Materials.Gold), 'T', - GT_ModHandler.getIC2Item("mvTransformer", 1L), 'E', - OrePrefixes.circuit.get(Materials.Basic), 'G', OrePrefixes.block.get(Materials.Glass) }); + GT_ModHandler.getIC2Item("transformerUpgrade", 1L), + bits_no_remove_buffered, + new Object[] { "GGG", "WTW", "GEG", 'W', OrePrefixes.cableGt01.get(Materials.Gold), 'T', + GT_ModHandler.getIC2Item("mvTransformer", 1L), 'E', OrePrefixes.circuit.get(Materials.Basic), 'G', + OrePrefixes.block.get(Materials.Glass) }); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("energyStorageUpgrade", 1L), - bits_no_remove_buffered, - new Object[] { "PPP", "WBW", "PEP", 'W', OrePrefixes.cableGt01.get(Materials.Copper), 'E', - OrePrefixes.circuit.get(Materials.Basic), 'P', OrePrefixes.plank.get(Materials.Wood), 'B', - OrePrefixes.battery.get(Materials.Basic) }); + GT_ModHandler.getIC2Item("energyStorageUpgrade", 1L), + bits_no_remove_buffered, + new Object[] { "PPP", "WBW", "PEP", 'W', OrePrefixes.cableGt01.get(Materials.Copper), 'E', + OrePrefixes.circuit.get(Materials.Basic), 'P', OrePrefixes.plank.get(Materials.Wood), 'B', + OrePrefixes.battery.get(Materials.Basic) }); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("ejectorUpgrade", 1L), - bits_no_remove_buffered, - new Object[] { "PHP", "WEW", 'W', OrePrefixes.cableGt01.get(Materials.Copper), 'E', - OrePrefixes.circuit.get(Materials.Basic), 'P', new ItemStack(Blocks.piston), 'H', - new ItemStack(Blocks.hopper) }); + GT_ModHandler.getIC2Item("ejectorUpgrade", 1L), + bits_no_remove_buffered, + new Object[] { "PHP", "WEW", 'W', OrePrefixes.cableGt01.get(Materials.Copper), 'E', + OrePrefixes.circuit.get(Materials.Basic), 'P', new ItemStack(Blocks.piston), 'H', + new ItemStack(Blocks.hopper) }); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("suBattery", 1L), - bits_no_remove_buffered, - new Object[] { "W", "C", "R", 'W', OrePrefixes.cableGt01.get(Materials.Copper), 'C', - OrePrefixes.dust.get(Materials.HydratedCoal), 'R', - OrePrefixes.dust.get(Materials.Redstone) }); + GT_ModHandler.getIC2Item("suBattery", 1L), + bits_no_remove_buffered, + new Object[] { "W", "C", "R", 'W', OrePrefixes.cableGt01.get(Materials.Copper), 'C', + OrePrefixes.dust.get(Materials.HydratedCoal), 'R', OrePrefixes.dust.get(Materials.Redstone) }); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("pullingUpgrade", 1L), - bits_no_remove_buffered, - new Object[] { "PHP", "WEW", 'W', OrePrefixes.cableGt01.get(Materials.Copper), 'P', - new ItemStack(Blocks.sticky_piston), 'R', new ItemStack(Blocks.hopper), 'E', - OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.getIC2Item("pullingUpgrade", 1L), + bits_no_remove_buffered, + new Object[] { "PHP", "WEW", 'W', OrePrefixes.cableGt01.get(Materials.Copper), 'P', + new ItemStack(Blocks.sticky_piston), 'R', new ItemStack(Blocks.hopper), 'E', + OrePrefixes.circuit.get(Materials.Basic) }); } else { GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("glassFiberCableItem", 1L), - bits_no_remove_buffered, - new Object[] { "GGG", "EDE", "GGG", 'G', new ItemStack(Blocks.glass, 1, 32767), 'D', - OrePrefixes.dust.get(Materials.Silver), 'E', ItemList.IC2_Energium_Dust.get(1L) }); + GT_ModHandler.getIC2Item("glassFiberCableItem", 1L), + bits_no_remove_buffered, + new Object[] { "GGG", "EDE", "GGG", 'G', new ItemStack(Blocks.glass, 1, 32767), 'D', + OrePrefixes.dust.get(Materials.Silver), 'E', ItemList.IC2_Energium_Dust.get(1L) }); } if (NotEnoughItems.isModLoaded()) { @@ -1810,117 +1761,117 @@ public class GT_CraftingRecipeLoader implements Runnable { codechicken.nei.api.API.hideItem(GT_ModHandler.getIC2Item("reactorMOXQuad", 1L, 1)); } GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("UranFuel", 1L), - bits_no_remove_buffered, - new Object[] { "UUU", "NNN", "UUU", 'U', OrePrefixes.ingot.get(Materials.Uranium), 'N', - OrePrefixes.nugget.get(Materials.Uranium235) }); + GT_ModHandler.getIC2Item("UranFuel", 1L), + bits_no_remove_buffered, + new Object[] { "UUU", "NNN", "UUU", 'U', OrePrefixes.ingot.get(Materials.Uranium), 'N', + OrePrefixes.nugget.get(Materials.Uranium235) }); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("MOXFuel", 1L), - bits_no_remove_buffered, - new Object[] { "UUU", "NNN", "UUU", 'U', OrePrefixes.ingot.get(Materials.Uranium), 'N', - OrePrefixes.ingot.get(Materials.Plutonium) }); + GT_ModHandler.getIC2Item("MOXFuel", 1L), + bits_no_remove_buffered, + new Object[] { "UUU", "NNN", "UUU", 'U', OrePrefixes.ingot.get(Materials.Uranium), 'N', + OrePrefixes.ingot.get(Materials.Plutonium) }); if (!GregTech_API.mIC2Classic) { GT_ModHandler.removeRecipeByOutputDelayed(Ic2Items.miningLaser.copy()); GT_ModHandler.addCraftingRecipe( - Ic2Items.miningLaser.copy(), - GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "PPP", "GEC", "SBd", 'P', OrePrefixes.plate.get(Materials.Titanium), 'G', - OrePrefixes.gemExquisite.get(Materials.Diamond), 'E', ItemList.Emitter_HV, 'C', - OrePrefixes.circuit.get(Materials.Elite), 'S', OrePrefixes.screw.get(Materials.Titanium), - 'B', new ItemStack( - Ic2Items.chargingEnergyCrystal.copy() - .getItem(), - 1, - GT_Values.W) }); + Ic2Items.miningLaser.copy(), + GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "PPP", "GEC", "SBd", 'P', OrePrefixes.plate.get(Materials.Titanium), 'G', + OrePrefixes.gemExquisite.get(Materials.Diamond), 'E', ItemList.Emitter_HV, 'C', + OrePrefixes.circuit.get(Materials.Elite), 'S', OrePrefixes.screw.get(Materials.Titanium), 'B', + new ItemStack( + Ic2Items.chargingEnergyCrystal.copy() + .getItem(), + 1, + GT_Values.W) }); GT_ModHandler.addCraftingRecipe( - Ic2Items.miningLaser.copy(), - GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "PPP", "GEC", "SBd", 'P', OrePrefixes.plate.get(Materials.Titanium), 'G', - OrePrefixes.gemExquisite.get(Materials.Ruby), 'E', ItemList.Emitter_HV, 'C', - OrePrefixes.circuit.get(Materials.Elite), 'S', OrePrefixes.screw.get(Materials.Titanium), - 'B', new ItemStack( - Ic2Items.chargingEnergyCrystal.copy() - .getItem(), - 1, - GT_Values.W) }); + Ic2Items.miningLaser.copy(), + GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "PPP", "GEC", "SBd", 'P', OrePrefixes.plate.get(Materials.Titanium), 'G', + OrePrefixes.gemExquisite.get(Materials.Ruby), 'E', ItemList.Emitter_HV, 'C', + OrePrefixes.circuit.get(Materials.Elite), 'S', OrePrefixes.screw.get(Materials.Titanium), 'B', + new ItemStack( + Ic2Items.chargingEnergyCrystal.copy() + .getItem(), + 1, + GT_Values.W) }); GT_ModHandler.addCraftingRecipe( - Ic2Items.miningLaser.copy(), - GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "PPP", "GEC", "SBd", 'P', OrePrefixes.plate.get(Materials.Titanium), 'G', - OrePrefixes.gemExquisite.get(Materials.Jasper), 'E', ItemList.Emitter_HV, 'C', - OrePrefixes.circuit.get(Materials.Elite), 'S', OrePrefixes.screw.get(Materials.Titanium), - 'B', new ItemStack( - Ic2Items.chargingEnergyCrystal.copy() - .getItem(), - 1, - GT_Values.W) }); + Ic2Items.miningLaser.copy(), + GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "PPP", "GEC", "SBd", 'P', OrePrefixes.plate.get(Materials.Titanium), 'G', + OrePrefixes.gemExquisite.get(Materials.Jasper), 'E', ItemList.Emitter_HV, 'C', + OrePrefixes.circuit.get(Materials.Elite), 'S', OrePrefixes.screw.get(Materials.Titanium), 'B', + new ItemStack( + Ic2Items.chargingEnergyCrystal.copy() + .getItem(), + 1, + GT_Values.W) }); GT_ModHandler.addCraftingRecipe( - Ic2Items.miningLaser.copy(), - GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "PPP", "GEC", "SBd", 'P', OrePrefixes.plate.get(Materials.Titanium), 'G', - OrePrefixes.gemExquisite.get(Materials.GarnetRed), 'E', ItemList.Emitter_HV, 'C', - OrePrefixes.circuit.get(Materials.Elite), 'S', OrePrefixes.screw.get(Materials.Titanium), - 'B', new ItemStack( - Ic2Items.chargingEnergyCrystal.copy() - .getItem(), - 1, - GT_Values.W) }); + Ic2Items.miningLaser.copy(), + GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "PPP", "GEC", "SBd", 'P', OrePrefixes.plate.get(Materials.Titanium), 'G', + OrePrefixes.gemExquisite.get(Materials.GarnetRed), 'E', ItemList.Emitter_HV, 'C', + OrePrefixes.circuit.get(Materials.Elite), 'S', OrePrefixes.screw.get(Materials.Titanium), 'B', + new ItemStack( + Ic2Items.chargingEnergyCrystal.copy() + .getItem(), + 1, + GT_Values.W) }); } GT_ModHandler.removeRecipeDelayed(GT_ModHandler.getIC2Item("miningPipe", 8)); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("miningPipe", 1), - GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "hPf", 'P', OrePrefixes.pipeSmall.get(Materials.Steel) }); + GT_ModHandler.getIC2Item("miningPipe", 1), + GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "hPf", 'P', OrePrefixes.pipeSmall.get(Materials.Steel) }); GT_Values.RA.addWiremillRecipe( - GT_OreDictUnificator.get(OrePrefixes.pipeTiny, Materials.Steel, 1), - GT_ModHandler.getIC2Item("miningPipe", 1), - 200, - 16); + GT_OreDictUnificator.get(OrePrefixes.pipeTiny, Materials.Steel, 1), + GT_ModHandler.getIC2Item("miningPipe", 1), + 200, + 16); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("luminator", 16L), - bits_no_remove_buffered, - new Object[] { "RTR", "GHG", "GGG", 'H', OrePrefixes.cell.get(Materials.Helium), 'T', - OrePrefixes.ingot.get(Materials.Tin), 'R', OrePrefixes.ingot.get(Materials.AnyIron), 'G', - new ItemStack(Blocks.glass, 1) }); + GT_ModHandler.getIC2Item("luminator", 16L), + bits_no_remove_buffered, + new Object[] { "RTR", "GHG", "GGG", 'H', OrePrefixes.cell.get(Materials.Helium), 'T', + OrePrefixes.ingot.get(Materials.Tin), 'R', OrePrefixes.ingot.get(Materials.AnyIron), 'G', + new ItemStack(Blocks.glass, 1) }); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("luminator", 16L), - bits_no_remove_buffered, - new Object[] { "RTR", "GHG", "GGG", 'H', OrePrefixes.cell.get(Materials.Mercury), 'T', - OrePrefixes.ingot.get(Materials.Tin), 'R', OrePrefixes.ingot.get(Materials.AnyIron), 'G', - new ItemStack(Blocks.glass, 1) }); + GT_ModHandler.getIC2Item("luminator", 16L), + bits_no_remove_buffered, + new Object[] { "RTR", "GHG", "GGG", 'H', OrePrefixes.cell.get(Materials.Mercury), 'T', + OrePrefixes.ingot.get(Materials.Tin), 'R', OrePrefixes.ingot.get(Materials.AnyIron), 'G', + new ItemStack(Blocks.glass, 1) }); GT_ModHandler.removeRecipeDelayed( - tStack = GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 1L), - tStack, - tStack, - tStack, - new ItemStack(Items.coal, 1, 0), - tStack, - tStack, - tStack, - tStack); + tStack = GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 1L), + tStack, + tStack, + tStack, + new ItemStack(Items.coal, 1, 0), + tStack, + tStack, + tStack, + tStack); GT_ModHandler.removeRecipeDelayed( - tStack = GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 1L), - tStack, - tStack, - tStack, - new ItemStack(Items.coal, 1, 1), - tStack, - tStack, - tStack, - tStack); + tStack = GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 1L), + tStack, + tStack, + tStack, + new ItemStack(Items.coal, 1, 1), + tStack, + tStack, + tStack, + tStack); GT_ModHandler.removeRecipeDelayed( - null, - tStack = new ItemStack(Items.coal, 1), - null, - tStack, - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Iron, 1L), - tStack, - null, - tStack, - null); + null, + tStack = new ItemStack(Items.coal, 1), + null, + tStack, + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Iron, 1L), + tStack, + null, + tStack, + null); GT_ModHandler.removeFurnaceSmelting(new ItemStack(Blocks.hopper)); @@ -1928,127 +1879,122 @@ public class GT_CraftingRecipeLoader implements Runnable { if (GregTech_API.sRecipeFile.get(ConfigCategories.Recipes.harderrecipes, "blockbreaker", false)) { tStack = GT_ModHandler.getRecipeOutput( - new ItemStack(Blocks.cobblestone, 1), - new ItemStack(Items.iron_pickaxe, 1), - new ItemStack(Blocks.cobblestone, 1), - new ItemStack(Blocks.cobblestone, 1), - new ItemStack(Blocks.piston, 1), - new ItemStack(Blocks.cobblestone, 1), - new ItemStack(Blocks.cobblestone, 1), - new ItemStack(Items.redstone, 1), - new ItemStack(Blocks.cobblestone, 1)); + new ItemStack(Blocks.cobblestone, 1), + new ItemStack(Items.iron_pickaxe, 1), + new ItemStack(Blocks.cobblestone, 1), + new ItemStack(Blocks.cobblestone, 1), + new ItemStack(Blocks.piston, 1), + new ItemStack(Blocks.cobblestone, 1), + new ItemStack(Blocks.cobblestone, 1), + new ItemStack(Items.redstone, 1), + new ItemStack(Blocks.cobblestone, 1)); GT_ModHandler.removeRecipeDelayed(tStack); GT_ModHandler.addCraftingRecipe( - tStack, - bits_no_remove_buffered, - new Object[] { "RGR", "RPR", "RCR", 'G', OreDictNames.craftingGrinder, 'C', - OrePrefixes.circuit.get(Materials.Advanced), 'R', OrePrefixes.plate.get(Materials.Steel), - 'P', OreDictNames.craftingPiston }); + tStack, + bits_no_remove_buffered, + new Object[] { "RGR", "RPR", "RCR", 'G', OreDictNames.craftingGrinder, 'C', + OrePrefixes.circuit.get(Materials.Advanced), 'R', OrePrefixes.plate.get(Materials.Steel), 'P', + OreDictNames.craftingPiston }); } if ((GregTech_API.sRecipeFile.get(ConfigCategories.Recipes.harderrecipes, "beryliumreflector", true))) { GT_ModHandler.removeRecipeByOutputDelayed(GT_ModHandler.getIC2Item("reactorReflectorThick", 1L, 1)); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("reactorReflectorThick", 1L, 1), - bits_no_remove_buffered, - new Object[] { " N ", "NBN", " N ", 'B', OrePrefixes.plateDouble.get(Materials.Beryllium), 'N', - GT_ModHandler.getIC2Item("reactorReflector", 1L, 1) }); + GT_ModHandler.getIC2Item("reactorReflectorThick", 1L, 1), + bits_no_remove_buffered, + new Object[] { " N ", "NBN", " N ", 'B', OrePrefixes.plateDouble.get(Materials.Beryllium), 'N', + GT_ModHandler.getIC2Item("reactorReflector", 1L, 1) }); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("reactorReflectorThick", 1L, 1), - bits_no_remove_buffered, - new Object[] { " B ", "NCN", " B ", 'B', OrePrefixes.plate.get(Materials.Beryllium), 'N', - GT_ModHandler.getIC2Item("reactorReflector", 1L, 1), 'C', - OrePrefixes.plate.get(Materials.TungstenCarbide) }); + GT_ModHandler.getIC2Item("reactorReflectorThick", 1L, 1), + bits_no_remove_buffered, + new Object[] { " B ", "NCN", " B ", 'B', OrePrefixes.plate.get(Materials.Beryllium), 'N', + GT_ModHandler.getIC2Item("reactorReflector", 1L, 1), 'C', + OrePrefixes.plate.get(Materials.TungstenCarbide) }); } if ((GregTech_API.sRecipeFile.get(ConfigCategories.Recipes.harderrecipes, "reflector", true))) { GT_ModHandler.removeRecipeByOutputDelayed(GT_ModHandler.getIC2Item("reactorReflector", 1L, 1)); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("reactorReflector", 1L, 1), - bits_no_remove_buffered, - new Object[] { "TGT", "GSG", "TGT", 'T', OrePrefixes.plate.get(Materials.Tin), 'G', - OrePrefixes.dust.get(Materials.Graphite), 'S', - OrePrefixes.plateDouble.get(Materials.Steel) }); + GT_ModHandler.getIC2Item("reactorReflector", 1L, 1), + bits_no_remove_buffered, + new Object[] { "TGT", "GSG", "TGT", 'T', OrePrefixes.plate.get(Materials.Tin), 'G', + OrePrefixes.dust.get(Materials.Graphite), 'S', OrePrefixes.plateDouble.get(Materials.Steel) }); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("reactorReflector", 1L, 1), - bits_no_remove_buffered, - new Object[] { "TTT", "GSG", "TTT", 'T', OrePrefixes.plate.get(Materials.TinAlloy), 'G', - OrePrefixes.dust.get(Materials.Graphite), 'S', - OrePrefixes.plate.get(Materials.Beryllium) }); + GT_ModHandler.getIC2Item("reactorReflector", 1L, 1), + bits_no_remove_buffered, + new Object[] { "TTT", "GSG", "TTT", 'T', OrePrefixes.plate.get(Materials.TinAlloy), 'G', + OrePrefixes.dust.get(Materials.Graphite), 'S', OrePrefixes.plate.get(Materials.Beryllium) }); } if ((GregTech_API.sRecipeFile.get(ConfigCategories.Recipes.harderrecipes, "cropharvester", true))) { GT_ModHandler.removeRecipeByOutputDelayed(GT_ModHandler.getIC2Item("crophavester", 1L)); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("crophavester", 1L), - bits_no_remove_buffered, - new Object[] { "ACA", "PMS", "WOW", 'M', ItemList.Hull_MV, 'C', - OrePrefixes.circuit.get(Materials.Good), 'A', ItemList.Robot_Arm_LV, 'P', - ItemList.Electric_Piston_LV, 'S', ItemList.Sensor_LV, 'W', - OrePrefixes.toolHeadSense.get(Materials.Aluminium), 'O', ItemList.Conveyor_Module_LV }); + GT_ModHandler.getIC2Item("crophavester", 1L), + bits_no_remove_buffered, + new Object[] { "ACA", "PMS", "WOW", 'M', ItemList.Hull_MV, 'C', OrePrefixes.circuit.get(Materials.Good), + 'A', ItemList.Robot_Arm_LV, 'P', ItemList.Electric_Piston_LV, 'S', ItemList.Sensor_LV, 'W', + OrePrefixes.toolHeadSense.get(Materials.Aluminium), 'O', ItemList.Conveyor_Module_LV }); } if ((GregTech_API.sRecipeFile.get(ConfigCategories.Recipes.harderrecipes, "rtg", true))) { GT_ModHandler.removeRecipeByOutputDelayed(GT_ModHandler.getIC2Item("RTGenerator", 1L)); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("RTGenerator", 1L), - bits_no_remove_buffered, - new Object[] { "III", "IMI", "ICI", 'I', OrePrefixes.itemCasing.get(Materials.Steel), 'C', - OrePrefixes.circuit.get(Materials.Master), 'M', ItemList.Hull_IV }); + GT_ModHandler.getIC2Item("RTGenerator", 1L), + bits_no_remove_buffered, + new Object[] { "III", "IMI", "ICI", 'I', OrePrefixes.itemCasing.get(Materials.Steel), 'C', + OrePrefixes.circuit.get(Materials.Master), 'M', ItemList.Hull_IV }); GT_ModHandler.removeRecipeByOutputDelayed(GT_ModHandler.getIC2Item("RTHeatGenerator", 1L)); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("RTHeatGenerator", 1L), - bits_no_remove_buffered, - new Object[] { "III", "IMB", "ICI", 'I', OrePrefixes.itemCasing.get(Materials.Steel), 'C', - OrePrefixes.circuit.get(Materials.Master), 'M', ItemList.Hull_IV, 'B', - GT_OreDictUnificator.get(OrePrefixes.block, Materials.Copper, 1) }); + GT_ModHandler.getIC2Item("RTHeatGenerator", 1L), + bits_no_remove_buffered, + new Object[] { "III", "IMB", "ICI", 'I', OrePrefixes.itemCasing.get(Materials.Steel), 'C', + OrePrefixes.circuit.get(Materials.Master), 'M', ItemList.Hull_IV, 'B', + GT_OreDictUnificator.get(OrePrefixes.block, Materials.Copper, 1) }); } if ((GregTech_API.sRecipeFile.get(ConfigCategories.Recipes.harderrecipes, "windRotor", true))) { GT_ModHandler.removeRecipeByOutputDelayed(GT_ModHandler.getIC2Item("carbonrotor", 1L)); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("carbonrotor", 1L), - bits_no_remove_buffered, - new Object[] { "dBS", "BTB", "SBw", 'B', GT_ModHandler.getIC2Item("carbonrotorblade", 1), 'S', - OrePrefixes.screw.get(Materials.Iridium), 'T', GT_ModHandler.getIC2Item("steelshaft", 1) }); + GT_ModHandler.getIC2Item("carbonrotor", 1L), + bits_no_remove_buffered, + new Object[] { "dBS", "BTB", "SBw", 'B', GT_ModHandler.getIC2Item("carbonrotorblade", 1), 'S', + OrePrefixes.screw.get(Materials.Iridium), 'T', GT_ModHandler.getIC2Item("steelshaft", 1) }); GT_ModHandler.removeRecipeByOutputDelayed(GT_ModHandler.getIC2Item("steelrotor", 1L)); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("steelrotor", 1L), - bits_no_remove_buffered, - new Object[] { "dBS", "BTB", "SBw", 'B', GT_ModHandler.getIC2Item("steelrotorblade", 1), 'S', - OrePrefixes.screw.get(Materials.StainlessSteel), 'T', - GT_ModHandler.getIC2Item("ironshaft", 1) }); + GT_ModHandler.getIC2Item("steelrotor", 1L), + bits_no_remove_buffered, + new Object[] { "dBS", "BTB", "SBw", 'B', GT_ModHandler.getIC2Item("steelrotorblade", 1), 'S', + OrePrefixes.screw.get(Materials.StainlessSteel), 'T', GT_ModHandler.getIC2Item("ironshaft", 1) }); GT_ModHandler.removeRecipeByOutputDelayed(GT_ModHandler.getIC2Item("ironrotor", 1L)); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("ironrotor", 1L), - bits_no_remove_buffered, - new Object[] { "dBS", "BTB", "SBw", 'B', GT_ModHandler.getIC2Item("ironrotorblade", 1), 'S', - OrePrefixes.screw.get(Materials.WroughtIron), 'T', - GT_ModHandler.getIC2Item("ironshaft", 1) }); + GT_ModHandler.getIC2Item("ironrotor", 1L), + bits_no_remove_buffered, + new Object[] { "dBS", "BTB", "SBw", 'B', GT_ModHandler.getIC2Item("ironrotorblade", 1), 'S', + OrePrefixes.screw.get(Materials.WroughtIron), 'T', GT_ModHandler.getIC2Item("ironshaft", 1) }); GT_ModHandler.removeRecipeByOutputDelayed(GT_ModHandler.getIC2Item("woodrotor", 1L)); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("woodrotor", 1L), - bits_no_remove_buffered, - new Object[] { "dBS", "BTB", "SBw", 'B', GT_ModHandler.getIC2Item("woodrotorblade", 1), 'S', - OrePrefixes.screw.get(Materials.WroughtIron), 'T', - OrePrefixes.stickLong.get(Materials.WroughtIron) }); + GT_ModHandler.getIC2Item("woodrotor", 1L), + bits_no_remove_buffered, + new Object[] { "dBS", "BTB", "SBw", 'B', GT_ModHandler.getIC2Item("woodrotorblade", 1), 'S', + OrePrefixes.screw.get(Materials.WroughtIron), 'T', + OrePrefixes.stickLong.get(Materials.WroughtIron) }); } if (GT_OreDictUnificator.get(OrePrefixes.gear, Materials.Diamond, 1L) != null) { tStack = GT_ModHandler.getRecipeOutput( - GT_OreDictUnificator.get(OrePrefixes.gear, Materials.Iron, 1L), - new ItemStack(Items.redstone, 1), - GT_OreDictUnificator.get(OrePrefixes.gear, Materials.Iron, 1L), - GT_OreDictUnificator.get(OrePrefixes.gear, Materials.Gold, 1L), - GT_OreDictUnificator.get(OrePrefixes.gear, Materials.Iron, 1L), - GT_OreDictUnificator.get(OrePrefixes.gear, Materials.Gold, 1L), - GT_OreDictUnificator.get(OrePrefixes.gear, Materials.Diamond, 1L), - new ItemStack(Items.diamond_pickaxe, 1), - GT_OreDictUnificator.get(OrePrefixes.gear, Materials.Diamond, 1L)); + GT_OreDictUnificator.get(OrePrefixes.gear, Materials.Iron, 1L), + new ItemStack(Items.redstone, 1), + GT_OreDictUnificator.get(OrePrefixes.gear, Materials.Iron, 1L), + GT_OreDictUnificator.get(OrePrefixes.gear, Materials.Gold, 1L), + GT_OreDictUnificator.get(OrePrefixes.gear, Materials.Iron, 1L), + GT_OreDictUnificator.get(OrePrefixes.gear, Materials.Gold, 1L), + GT_OreDictUnificator.get(OrePrefixes.gear, Materials.Diamond, 1L), + new ItemStack(Items.diamond_pickaxe, 1), + GT_OreDictUnificator.get(OrePrefixes.gear, Materials.Diamond, 1L)); if (GregTech_API.sRecipeFile.get(ConfigCategories.Recipes.harderrecipes, "quarry", true)) { GT_ModHandler.removeRecipeByOutputDelayed(tStack); GT_ModHandler.addCraftingRecipe( - tStack, - bits_no_remove_buffered, - new Object[] { "ICI", "GIG", "DPD", 'C', OrePrefixes.circuit.get(Materials.Advanced), 'D', - OrePrefixes.gear.get(Materials.Diamond), 'G', OrePrefixes.gear.get(Materials.Gold), 'I', - OrePrefixes.gear.get(Materials.Steel), 'P', - GT_ModHandler.getIC2Item("diamondDrill", 1L, 32767) }); + tStack, + bits_no_remove_buffered, + new Object[] { "ICI", "GIG", "DPD", 'C', OrePrefixes.circuit.get(Materials.Advanced), 'D', + OrePrefixes.gear.get(Materials.Diamond), 'G', OrePrefixes.gear.get(Materials.Gold), 'I', + OrePrefixes.gear.get(Materials.Steel), 'P', + GT_ModHandler.getIC2Item("diamondDrill", 1L, 32767) }); } if (GregTech_API.sRecipeFile.get(ConfigCategories.Recipes.disabledrecipes, "quarry", false)) { GT_ModHandler.removeRecipeByOutputDelayed(tStack); @@ -2059,38 +2005,37 @@ public class GT_CraftingRecipeLoader implements Runnable { GT_ModHandler.removeRecipeByOutputDelayed(new ItemStack(Items.paper)); GT_ModHandler.removeRecipeByOutputDelayed(new ItemStack(Items.sugar)); GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Paper, 2), - GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "SSS", " m ", 'S', new ItemStack(Items.reeds) }); + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Paper, 2), + GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "SSS", " m ", 'S', new ItemStack(Items.reeds) }); GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sugar, 1), - GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "Sm ", 'S', new ItemStack(Items.reeds) }); + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sugar, 1), + GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "Sm ", 'S', new ItemStack(Items.reeds) }); GT_ModHandler.addCraftingRecipe( - GT_OreDictUnificator.get(OrePrefixes.paper, Materials.Empty, 2), - GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { " C ", "SSS", " C ", 'S', - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Paper, 1), 'C', - new ItemStack(Blocks.stone_slab) }); + GT_OreDictUnificator.get(OrePrefixes.paper, Materials.Empty, 2), + GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { " C ", "SSS", " C ", 'S', GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Paper, 1), + 'C', new ItemStack(Blocks.stone_slab) }); } GT_Log.out.println("GT_Mod: Applying Recipes for Tools"); if ((GregTech_API.sRecipeFile.get(ConfigCategories.Recipes.harderrecipes, "nanosaber", true))) { GT_ModHandler.removeRecipeByOutputDelayed(GT_ModHandler.getIC2Item("nanoSaber", 1L)); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("nanoSaber", 1L), - bits_no_remove_buffered, - new Object[] { "PI ", "PI ", "CLC", 'L', OrePrefixes.battery.get(Materials.Master), 'I', - OrePrefixes.plateAlloy.get("Iridium"), 'P', OrePrefixes.plate.get(Materials.Platinum), 'C', - OrePrefixes.circuit.get(Materials.Elite) }); + GT_ModHandler.getIC2Item("nanoSaber", 1L), + bits_no_remove_buffered, + new Object[] { "PI ", "PI ", "CLC", 'L', OrePrefixes.battery.get(Materials.Master), 'I', + OrePrefixes.plateAlloy.get("Iridium"), 'P', OrePrefixes.plate.get(Materials.Platinum), 'C', + OrePrefixes.circuit.get(Materials.Elite) }); } if (GregTech_API.sRecipeFile.get(ConfigCategories.Recipes.harderrecipes, "namefix", true)) { GT_ModHandler.removeRecipeByOutputDelayed(new ItemStack(Items.flint_and_steel, 1)); GT_ModHandler.addCraftingRecipe( - new ItemStack(Items.flint_and_steel, 1), - bits_no_remove_buffered, - new Object[] { "S ", " F", 'F', new ItemStack(Items.flint, 1), 'S', "nuggetSteel" }); + new ItemStack(Items.flint_and_steel, 1), + bits_no_remove_buffered, + new Object[] { "S ", " F", 'F', new ItemStack(Items.flint, 1), 'S', "nuggetSteel" }); } GT_ModHandler.removeRecipeByOutputDelayed(GT_ModHandler.getIC2Item("diamondDrill", 1L)); @@ -2119,88 +2064,85 @@ public class GT_CraftingRecipeLoader implements Runnable { if (GraviSuite.isModLoaded()) { GT_ModHandler.removeRecipeByOutputDelayed( - GT_ModHandler.getModItem(GraviSuite.ID, "advNanoChestPlate", 1, GT_Values.W)); + GT_ModHandler.getModItem(GraviSuite.ID, "advNanoChestPlate", 1, GT_Values.W)); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getModItem(GraviSuite.ID, "advNanoChestPlate", 1, GT_Values.W), - bits_no_remove_buffered, - new Object[] { "CJC", "TNT", "WPW", 'C', OrePrefixes.plateAlloy.get(Materials.Advanced), 'T', - OrePrefixes.plate.get(Materials.TungstenSteel), 'J', - GT_ModHandler.getModItem(GraviSuite.ID, "advJetpack", 1, GT_Values.W), 'N', - GT_ModHandler.getModItem(IndustrialCraft2.ID, "itemArmorNanoChestplate", 1, GT_Values.W), - 'W', OrePrefixes.wireGt12.get(Materials.Platinum), 'P', - OrePrefixes.circuit.get(Materials.Elite) }); + GT_ModHandler.getModItem(GraviSuite.ID, "advNanoChestPlate", 1, GT_Values.W), + bits_no_remove_buffered, + new Object[] { "CJC", "TNT", "WPW", 'C', OrePrefixes.plateAlloy.get(Materials.Advanced), 'T', + OrePrefixes.plate.get(Materials.TungstenSteel), 'J', + GT_ModHandler.getModItem(GraviSuite.ID, "advJetpack", 1, GT_Values.W), 'N', + GT_ModHandler.getModItem(IndustrialCraft2.ID, "itemArmorNanoChestplate", 1, GT_Values.W), 'W', + OrePrefixes.wireGt12.get(Materials.Platinum), 'P', OrePrefixes.circuit.get(Materials.Elite) }); - GT_ModHandler.removeRecipeByOutputDelayed( - GT_ModHandler.getModItem(GraviSuite.ID, "advLappack", 1, GT_Values.W)); + GT_ModHandler + .removeRecipeByOutputDelayed(GT_ModHandler.getModItem(GraviSuite.ID, "advLappack", 1, GT_Values.W)); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getModItem(GraviSuite.ID, "advLappack", 1, GT_Values.W), - bits_no_remove_buffered, - new Object[] { "CEC", "EJE", "WPW", 'C', OrePrefixes.plateAlloy.get(Materials.Carbon), 'J', - GT_ModHandler.getModItem(IndustrialCraft2.ID, "itemArmorEnergypack", 1L, GT_Values.W), 'E', - GT_ModHandler.getModItem(IndustrialCraft2.ID, "itemBatCrystal", 1L, GT_Values.W), 'W', - OrePrefixes.wireGt04.get(Materials.Platinum), 'P', - OrePrefixes.circuit.get(Materials.Data) }); + GT_ModHandler.getModItem(GraviSuite.ID, "advLappack", 1, GT_Values.W), + bits_no_remove_buffered, + new Object[] { "CEC", "EJE", "WPW", 'C', OrePrefixes.plateAlloy.get(Materials.Carbon), 'J', + GT_ModHandler.getModItem(IndustrialCraft2.ID, "itemArmorEnergypack", 1L, GT_Values.W), 'E', + GT_ModHandler.getModItem(IndustrialCraft2.ID, "itemBatCrystal", 1L, GT_Values.W), 'W', + OrePrefixes.wireGt04.get(Materials.Platinum), 'P', OrePrefixes.circuit.get(Materials.Data) }); - GT_ModHandler.removeRecipeByOutputDelayed( - GT_ModHandler.getModItem(GraviSuite.ID, "advJetpack", 1, GT_Values.W)); + GT_ModHandler + .removeRecipeByOutputDelayed(GT_ModHandler.getModItem(GraviSuite.ID, "advJetpack", 1, GT_Values.W)); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getModItem(GraviSuite.ID, "advJetpack", 1, GT_Values.W), - bits_no_remove_buffered, - new Object[] { "CJC", "EXE", "YZY", 'C', OrePrefixes.plateAlloy.get(Materials.Carbon), 'J', - GT_ModHandler.getModItem(IndustrialCraft2.ID, "itemArmorJetpackElectric", 1, GT_Values.W), - 'E', OrePrefixes.plate.get(Materials.Titanium), 'X', - GT_ModHandler.getModItem(IndustrialCraft2.ID, "itemArmorAlloyChestplate", 1L), 'Z', - OrePrefixes.circuit.get(Materials.Data), 'Y', - OrePrefixes.wireGt02.get(Materials.Platinum) }); + GT_ModHandler.getModItem(GraviSuite.ID, "advJetpack", 1, GT_Values.W), + bits_no_remove_buffered, + new Object[] { "CJC", "EXE", "YZY", 'C', OrePrefixes.plateAlloy.get(Materials.Carbon), 'J', + GT_ModHandler.getModItem(IndustrialCraft2.ID, "itemArmorJetpackElectric", 1, GT_Values.W), 'E', + OrePrefixes.plate.get(Materials.Titanium), 'X', + GT_ModHandler.getModItem(IndustrialCraft2.ID, "itemArmorAlloyChestplate", 1L), 'Z', + OrePrefixes.circuit.get(Materials.Data), 'Y', OrePrefixes.wireGt02.get(Materials.Platinum) }); } GT_ModHandler.addShapelessCraftingRecipe( - Materials.Fireclay.getDust(2), - new Object[] { Materials.Brick.getDust(1), Materials.Clay.getDust(1) }); + Materials.Fireclay.getDust(2), + new Object[] { Materials.Brick.getDust(1), Materials.Clay.getDust(1) }); ItemStack flask = ItemList.VOLUMETRIC_FLASK.get(1); NBTTagCompound nbtFlask = new NBTTagCompound(); nbtFlask.setInteger("Capacity", 1000); flask.setTagCompound(nbtFlask); GT_Values.RA.addFluidSolidifierRecipe( - ItemList.Shape_Mold_Ball.get(0), - new FluidStack(FluidRegistry.getFluid("molten.borosilicateglass"), 144), - flask, - 44, - 24); + ItemList.Shape_Mold_Ball.get(0), + new FluidStack(FluidRegistry.getFluid("molten.borosilicateglass"), 144), + flask, + 44, + 24); if (BartWorks.isModLoaded()) { GT_ModHandler.addCraftingRecipe( - ItemList.Casing_Advanced_Rhodium_Palladium.get(1L), - bits, - new Object[] { "PhP", "PFP", aTextPlateWrench, 'P', - GT_ModHandler.getModItem(BartWorks.ID, "gt.bwMetaGeneratedplate", 1L, 88), 'F', - OrePrefixes.frameGt.get(Materials.Chrome) }); + ItemList.Casing_Advanced_Rhodium_Palladium.get(1L), + bits, + new Object[] { "PhP", "PFP", aTextPlateWrench, 'P', + GT_ModHandler.getModItem(BartWorks.ID, "gt.bwMetaGeneratedplate", 1L, 88), 'F', + OrePrefixes.frameGt.get(Materials.Chrome) }); } if (Forestry.isModLoaded()) { ItemStack[] coverIDs = { ItemList.Plank_Larch.get(2L), ItemList.Plank_Teak.get(2L), - ItemList.Plank_Acacia_Green.get(2L), ItemList.Plank_Lime.get(2L), ItemList.Plank_Chestnut.get(2L), - ItemList.Plank_Wenge.get(2L), ItemList.Plank_Baobab.get(2L), ItemList.Plank_Sequoia.get(2L), - ItemList.Plank_Kapok.get(2L), ItemList.Plank_Ebony.get(2L), ItemList.Plank_Mahagony.get(2L), - ItemList.Plank_Balsa.get(2L), ItemList.Plank_Willow.get(2L), ItemList.Plank_Walnut.get(2L), - ItemList.Plank_Greenheart.get(2L), ItemList.Plank_Cherry.get(2L), ItemList.Plank_Mahoe.get(2L), - ItemList.Plank_Poplar.get(2L), ItemList.Plank_Palm.get(2L), ItemList.Plank_Papaya.get(2L), - ItemList.Plank_Pine.get(2L), ItemList.Plank_Plum.get(2L), ItemList.Plank_Maple.get(2L), - ItemList.Plank_Citrus.get(2L) }; + ItemList.Plank_Acacia_Green.get(2L), ItemList.Plank_Lime.get(2L), ItemList.Plank_Chestnut.get(2L), + ItemList.Plank_Wenge.get(2L), ItemList.Plank_Baobab.get(2L), ItemList.Plank_Sequoia.get(2L), + ItemList.Plank_Kapok.get(2L), ItemList.Plank_Ebony.get(2L), ItemList.Plank_Mahagony.get(2L), + ItemList.Plank_Balsa.get(2L), ItemList.Plank_Willow.get(2L), ItemList.Plank_Walnut.get(2L), + ItemList.Plank_Greenheart.get(2L), ItemList.Plank_Cherry.get(2L), ItemList.Plank_Mahoe.get(2L), + ItemList.Plank_Poplar.get(2L), ItemList.Plank_Palm.get(2L), ItemList.Plank_Papaya.get(2L), + ItemList.Plank_Pine.get(2L), ItemList.Plank_Plum.get(2L), ItemList.Plank_Maple.get(2L), + ItemList.Plank_Citrus.get(2L) }; for (int i = 0; i < coverIDs.length; i++) { ItemStack slabWood = getModItem(Forestry.ID, "slabs", 1, i); ItemStack slabWoodFireproof = getModItem(Forestry.ID, "slabsFireproof", 1, i); GT_ModHandler.addCraftingRecipe( - coverIDs[i], - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "s ", " P", 'P', slabWood }); + coverIDs[i], + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "s ", " P", 'P', slabWood }); GT_ModHandler.addCraftingRecipe( - coverIDs[i], - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { "s ", " P", 'P', slabWoodFireproof }); + coverIDs[i], + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { "s ", " P", 'P', slabWoodFireproof }); } } } diff --git a/src/main/java/gregtech/loaders/postload/GT_CropLoader.java b/src/main/java/gregtech/loaders/postload/GT_CropLoader.java index 409bdb4bfe..e6608a52b6 100644 --- a/src/main/java/gregtech/loaders/postload/GT_CropLoader.java +++ b/src/main/java/gregtech/loaders/postload/GT_CropLoader.java @@ -21,1033 +21,1032 @@ public class GT_CropLoader implements Runnable { * Tags: Vines = Tendrilly Edible = Food */ ItemStack[] tI = { ItemList.Crop_Drop_Indigo.get(4L), ItemList.Crop_Drop_MilkWart.get(4L), - new ItemStack(Blocks.brown_mushroom, 4), new ItemStack(Blocks.red_mushroom, 4) }; + new ItemStack(Blocks.brown_mushroom, 4), new ItemStack(Blocks.red_mushroom, 4) }; new GT_BaseCrop( - 124, - "Indigo", - "Eloraam", - tI[0], - 2, - 4, - 0, - 1, - 4, - 1, - 1, - 0, - 4, - 0, - new String[] { "Flower", "Blue", "Ingredient" }, - ItemList.Crop_Drop_Indigo.get(1L), - null); + 124, + "Indigo", + "Eloraam", + tI[0], + 2, + 4, + 0, + 1, + 4, + 1, + 1, + 0, + 4, + 0, + new String[] { "Flower", "Blue", "Ingredient" }, + ItemList.Crop_Drop_Indigo.get(1L), + null); new GT_BaseCrop( - 125, - "Flax", - "Eloraam", - null, - 2, - 4, - 0, - 1, - 4, - 1, - 1, - 2, - 0, - 1, - new String[] { "Silk", "Tendrilly", "Addictive" }, - new ItemStack(Items.string, 1), - null); + 125, + "Flax", + "Eloraam", + null, + 2, + 4, + 0, + 1, + 4, + 1, + 1, + 2, + 0, + 1, + new String[] { "Silk", "Tendrilly", "Addictive" }, + new ItemStack(Items.string, 1), + null); new GT_BaseCrop( - 126, - "Oilberries", - "Spacetoad", - null, - 9, - 4, - 0, - 1, - 4, - 6, - 1, - 2, - 1, - 12, - new String[] { "Fire", "Dark", "Reed", "Rotten", "Coal", "Oil" }, - ItemList.Crop_Drop_OilBerry.get(1L), - null); + 126, + "Oilberries", + "Spacetoad", + null, + 9, + 4, + 0, + 1, + 4, + 6, + 1, + 2, + 1, + 12, + new String[] { "Fire", "Dark", "Reed", "Rotten", "Coal", "Oil" }, + ItemList.Crop_Drop_OilBerry.get(1L), + null); new GT_BaseCrop( - 127, - "Bobsyeruncleranks", - "GenerikB", - null, - 11, - 4, - 0, - 1, - 4, - 4, - 0, - 8, - 2, - 9, - new String[] { "Shiny", "Tendrilly", "Emerald", "Berylium", "Crystal" }, - Materials.Emerald, - ItemList.Crop_Drop_BobsYerUncleRanks.get(1L), - new ItemStack[] { new ItemStack(Items.emerald, 1) }); + 127, + "Bobsyeruncleranks", + "GenerikB", + null, + 11, + 4, + 0, + 1, + 4, + 4, + 0, + 8, + 2, + 9, + new String[] { "Shiny", "Tendrilly", "Emerald", "Berylium", "Crystal" }, + Materials.Emerald, + ItemList.Crop_Drop_BobsYerUncleRanks.get(1L), + new ItemStack[] { new ItemStack(Items.emerald, 1) }); new GT_BaseCrop( - 128, - "Diareed", - "Direwolf20", - null, - 12, - 4, - 0, - 1, - 4, - 5, - 0, - 10, - 2, - 10, - new String[] { "Fire", "Shiny", "Reed", "Coal", "Diamond", "Crystal" }, - Materials.Diamond, - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Diamond, 1L), - new ItemStack[] { new ItemStack(Items.diamond, 1) }); + 128, + "Diareed", + "Direwolf20", + null, + 12, + 4, + 0, + 1, + 4, + 5, + 0, + 10, + 2, + 10, + new String[] { "Fire", "Shiny", "Reed", "Coal", "Diamond", "Crystal" }, + Materials.Diamond, + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Diamond, 1L), + new ItemStack[] { new ItemStack(Items.diamond, 1) }); new GT_BaseCrop( - 129, - "Withereed", - "CovertJaguar", - null, - 8, - 4, - 0, - 1, - 4, - 2, - 0, - 4, - 1, - 3, - new String[] { "Fire", "Undead", "Reed", "Coal", "Rotten", "Wither" }, - Materials.Coal, - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Coal, 1L), - new ItemStack[] { new ItemStack(Items.coal, 1), new ItemStack(Items.coal, 1) }); + 129, + "Withereed", + "CovertJaguar", + null, + 8, + 4, + 0, + 1, + 4, + 2, + 0, + 4, + 1, + 3, + new String[] { "Fire", "Undead", "Reed", "Coal", "Rotten", "Wither" }, + Materials.Coal, + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Coal, 1L), + new ItemStack[] { new ItemStack(Items.coal, 1), new ItemStack(Items.coal, 1) }); new GT_BaseCrop( - 130, - "Blazereed", - "Mr. Brain", - null, - 6, - 4, - 0, - 1, - 4, - 0, - 4, - 1, - 0, - 0, - new String[] { "Fire", "Blaze", "Reed", "Sulfur" }, - new ItemStack(Items.blaze_powder, 1), - new ItemStack[] { new ItemStack(Items.blaze_rod, 1) }); + 130, + "Blazereed", + "Mr. Brain", + null, + 6, + 4, + 0, + 1, + 4, + 0, + 4, + 1, + 0, + 0, + new String[] { "Fire", "Blaze", "Reed", "Sulfur" }, + new ItemStack(Items.blaze_powder, 1), + new ItemStack[] { new ItemStack(Items.blaze_rod, 1) }); new GT_BaseCrop( - 131, - "Eggplant", - "Link", - null, - 6, - 3, - 900, - 2, - 3, - 0, - 4, - 1, - 0, - 0, - new String[] { "Chicken", "Egg", "Food", "Feather", "Flower", "Addictive" }, - new ItemStack(Items.egg, 1), - new ItemStack[] { new ItemStack(Items.chicken, 1), new ItemStack(Items.feather, 1), - new ItemStack(Items.feather, 1), new ItemStack(Items.feather, 1) }); + 131, + "Eggplant", + "Link", + null, + 6, + 3, + 900, + 2, + 3, + 0, + 4, + 1, + 0, + 0, + new String[] { "Chicken", "Egg", "Food", "Feather", "Flower", "Addictive" }, + new ItemStack(Items.egg, 1), + new ItemStack[] { new ItemStack(Items.chicken, 1), new ItemStack(Items.feather, 1), + new ItemStack(Items.feather, 1), new ItemStack(Items.feather, 1) }); new GT_BaseCrop( - 132, - "Corium", - "Gregorius Techneticies", - null, - 6, - 4, - 0, - 1, - 4, - 0, - 2, - 3, - 1, - 0, - new String[] { "Cow", "Silk", "Tendrilly" }, - new ItemStack(Items.leather, 1), - null); + 132, + "Corium", + "Gregorius Techneticies", + null, + 6, + 4, + 0, + 1, + 4, + 0, + 2, + 3, + 1, + 0, + new String[] { "Cow", "Silk", "Tendrilly" }, + new ItemStack(Items.leather, 1), + null); new GT_BaseCrop( - 133, - "Corpseplant", - "Mr. Kenny", - null, - 5, - 4, - 0, - 1, - 4, - 0, - 2, - 1, - 0, - 3, - new String[] { "Toxic", "Undead", "Tendrilly", "Food", "Rotten" }, - new ItemStack(Items.rotten_flesh, 1), - new ItemStack[] { ItemList.Dye_Bonemeal.get(1L), ItemList.Dye_Bonemeal.get(1L), - new ItemStack(Items.bone, 1) }); + 133, + "Corpseplant", + "Mr. Kenny", + null, + 5, + 4, + 0, + 1, + 4, + 0, + 2, + 1, + 0, + 3, + new String[] { "Toxic", "Undead", "Tendrilly", "Food", "Rotten" }, + new ItemStack(Items.rotten_flesh, 1), + new ItemStack[] { ItemList.Dye_Bonemeal.get(1L), ItemList.Dye_Bonemeal.get(1L), + new ItemStack(Items.bone, 1) }); new GT_BaseCrop( - 134, - "Creeperweed", - "General Spaz", - null, - 7, - 4, - 0, - 1, - 4, - 3, - 0, - 5, - 1, - 3, - new String[] { "Creeper", "Tendrilly", "Explosive", "Fire", "Sulfur", "Saltpeter", "Coal" }, - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gunpowder, 1L), - null); + 134, + "Creeperweed", + "General Spaz", + null, + 7, + 4, + 0, + 1, + 4, + 3, + 0, + 5, + 1, + 3, + new String[] { "Creeper", "Tendrilly", "Explosive", "Fire", "Sulfur", "Saltpeter", "Coal" }, + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gunpowder, 1L), + null); new GT_BaseCrop( - 135, - "Enderbloom", - "RichardG", - null, - 10, - 4, - 0, - 1, - 4, - 5, - 0, - 2, - 1, - 6, - new String[] { "Ender", "Flower", "Shiny" }, - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.EnderPearl, 1L), - new ItemStack[] { new ItemStack(Items.ender_pearl, 1), new ItemStack(Items.ender_pearl, 1), - new ItemStack(Items.ender_eye, 1) }); + 135, + "Enderbloom", + "RichardG", + null, + 10, + 4, + 0, + 1, + 4, + 5, + 0, + 2, + 1, + 6, + new String[] { "Ender", "Flower", "Shiny" }, + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.EnderPearl, 1L), + new ItemStack[] { new ItemStack(Items.ender_pearl, 1), new ItemStack(Items.ender_pearl, 1), + new ItemStack(Items.ender_eye, 1) }); new GT_BaseCrop( - 136, - "Meatrose", - "VintageBeef", - null, - 7, - 4, - 1500, - 1, - 4, - 0, - 4, - 1, - 3, - 0, - new String[] { "Food", "Flower", "Cow", "Fish", "Chicken", "Pig" }, - new ItemStack(Items.dye, 1, 9), - new ItemStack[] { new ItemStack(Items.beef, 1), new ItemStack(Items.porkchop, 1), - new ItemStack(Items.chicken, 1), new ItemStack(Items.fish, 1) }); + 136, + "Meatrose", + "VintageBeef", + null, + 7, + 4, + 1500, + 1, + 4, + 0, + 4, + 1, + 3, + 0, + new String[] { "Food", "Flower", "Cow", "Fish", "Chicken", "Pig" }, + new ItemStack(Items.dye, 1, 9), + new ItemStack[] { new ItemStack(Items.beef, 1), new ItemStack(Items.porkchop, 1), + new ItemStack(Items.chicken, 1), new ItemStack(Items.fish, 1) }); new GT_BaseCrop( - 137, - "Milkwart", - "Mr. Brain", - tI[1], - 6, - 3, - 900, - 1, - 3, - 0, - 3, - 0, - 1, - 0, - new String[] { "Food", "Milk", "Cow" }, - ItemList.Crop_Drop_MilkWart.get(1L), - null); + 137, + "Milkwart", + "Mr. Brain", + tI[1], + 6, + 3, + 900, + 1, + 3, + 0, + 3, + 0, + 1, + 0, + new String[] { "Food", "Milk", "Cow" }, + ItemList.Crop_Drop_MilkWart.get(1L), + null); new GT_BaseCrop( - 138, - "Slimeplant", - "Neowulf", - null, - 6, - 4, - 0, - 3, - 4, - 3, - 0, - 0, - 0, - 2, - new String[] { "Slime", "Bouncy", "Sticky", "Bush" }, - new ItemStack(Items.slime_ball, 1), - null); + 138, + "Slimeplant", + "Neowulf", + null, + 6, + 4, + 0, + 3, + 4, + 3, + 0, + 0, + 0, + 2, + new String[] { "Slime", "Bouncy", "Sticky", "Bush" }, + new ItemStack(Items.slime_ball, 1), + null); new GT_BaseCrop( - 139, - "Spidernip", - "Mr. Kenny", - null, - 4, - 4, - 600, - 1, - 4, - 2, - 1, - 4, - 1, - 3, - new String[] { "Toxic", "Silk", "Spider", "Flower", "Ingredient", "Addictive" }, - new ItemStack(Items.string, 1), - new ItemStack[] { new ItemStack(Items.spider_eye, 1), new ItemStack(Blocks.web, 1) }); + 139, + "Spidernip", + "Mr. Kenny", + null, + 4, + 4, + 600, + 1, + 4, + 2, + 1, + 4, + 1, + 3, + new String[] { "Toxic", "Silk", "Spider", "Flower", "Ingredient", "Addictive" }, + new ItemStack(Items.string, 1), + new ItemStack[] { new ItemStack(Items.spider_eye, 1), new ItemStack(Blocks.web, 1) }); new GT_BaseCrop( - 140, - "Tearstalks", - "Neowulf", - null, - 8, - 4, - 0, - 1, - 4, - 1, - 2, - 0, - 0, - 0, - new String[] { "Healing", "Nether", "Ingredient", "Reed", "Ghast" }, - new ItemStack(Items.ghast_tear, 1), - null); + 140, + "Tearstalks", + "Neowulf", + null, + 8, + 4, + 0, + 1, + 4, + 1, + 2, + 0, + 0, + 0, + new String[] { "Healing", "Nether", "Ingredient", "Reed", "Ghast" }, + new ItemStack(Items.ghast_tear, 1), + null); new GT_BaseCrop( - 141, - "Tine", - "Gregorius Techneticies", - null, - 5, - 3, - 0, - 2, - 3, - 2, - 0, - 3, - 0, - 0, - new String[] { "Shiny", "Metal", "Pine", "Tin", "Bush" }, - Materials.Tin, - ItemList.Crop_Drop_Tine.get(1L), - null); + 141, + "Tine", + "Gregorius Techneticies", + null, + 5, + 3, + 0, + 2, + 3, + 2, + 0, + 3, + 0, + 0, + new String[] { "Shiny", "Metal", "Pine", "Tin", "Bush" }, + Materials.Tin, + ItemList.Crop_Drop_Tine.get(1L), + null); new GT_BaseCrop( - 142, - "Coppon", - "Mr. Brain", - null, - 6, - 3, - 0, - 2, - 3, - 2, - 0, - 1, - 1, - 1, - new String[] { "Shiny", "Metal", "Cotton", "Copper", "Bush" }, - Materials.Copper, - ItemList.Crop_Drop_Coppon.get(1L), - null); + 142, + "Coppon", + "Mr. Brain", + null, + 6, + 3, + 0, + 2, + 3, + 2, + 0, + 1, + 1, + 1, + new String[] { "Shiny", "Metal", "Cotton", "Copper", "Bush" }, + Materials.Copper, + ItemList.Crop_Drop_Coppon.get(1L), + null); new GT_BaseCrop( - 143, - "Brown Mushrooms", - "Mr. Brain", - tI[2], - 1, - 3, - 0, - 1, - 3, - 0, - 2, - 0, - 0, - 2, - new String[] { "Food", "Mushroom", "Ingredient" }, - new ItemStack(Blocks.brown_mushroom, 1), - null); + 143, + "Brown Mushrooms", + "Mr. Brain", + tI[2], + 1, + 3, + 0, + 1, + 3, + 0, + 2, + 0, + 0, + 2, + new String[] { "Food", "Mushroom", "Ingredient" }, + new ItemStack(Blocks.brown_mushroom, 1), + null); new GT_BaseCrop( - 144, - "Red Mushrooms", - "Mr. Kenny", - tI[3], - 1, - 3, - 0, - 1, - 3, - 0, - 1, - 3, - 0, - 2, - new String[] { "Toxic", "Mushroom", "Ingredient" }, - new ItemStack(Blocks.red_mushroom, 1), - null); + 144, + "Red Mushrooms", + "Mr. Kenny", + tI[3], + 1, + 3, + 0, + 1, + 3, + 0, + 1, + 3, + 0, + 2, + new String[] { "Toxic", "Mushroom", "Ingredient" }, + new ItemStack(Blocks.red_mushroom, 1), + null); new GT_BaseCrop( - 145, - "Argentia", - "Eloraam", - null, - 7, - 4, - 0, - 3, - 4, - 2, - 0, - 1, - 0, - 0, - new String[] { "Shiny", "Metal", "Silver", "Reed" }, - Materials.Silver, - ItemList.Crop_Drop_Argentia.get(1L), - null); + 145, + "Argentia", + "Eloraam", + null, + 7, + 4, + 0, + 3, + 4, + 2, + 0, + 1, + 0, + 0, + new String[] { "Shiny", "Metal", "Silver", "Reed" }, + Materials.Silver, + ItemList.Crop_Drop_Argentia.get(1L), + null); new GT_BaseCrop( - 146, - "Plumbilia", - "KingLemming", - null, - 6, - 4, - 0, - 3, - 4, - 2, - 0, - 3, - 1, - 1, - new String[] { "Heavy", "Metal", "Lead", "Reed" }, - Materials.Lead, - ItemList.Crop_Drop_Plumbilia.get(1L), - null); + 146, + "Plumbilia", + "KingLemming", + null, + 6, + 4, + 0, + 3, + 4, + 2, + 0, + 3, + 1, + 1, + new String[] { "Heavy", "Metal", "Lead", "Reed" }, + Materials.Lead, + ItemList.Crop_Drop_Plumbilia.get(1L), + null); new GT_BaseCrop( - 147, - "Steeleafranks", - "Benimatic", - null, - 10, - 4, - 0, - 1, - 4, - 3, - 0, - 7, - 2, - 8, - new String[] { "Metal", "Tendrilly", "Iron" }, - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Steeleaf, 1L), - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steeleaf, 1L) }); + 147, + "Steeleafranks", + "Benimatic", + null, + 10, + 4, + 0, + 1, + 4, + 3, + 0, + 7, + 2, + 8, + new String[] { "Metal", "Tendrilly", "Iron" }, + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Steeleaf, 1L), + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steeleaf, 1L) }); new GT_BaseCrop( - 148, - "Liveroots", - "Benimatic", - null, - 8, - 4, - 0, - 1, - 4, - 2, - 0, - 5, - 2, - 6, - new String[] { "Wood", "Tendrilly" }, - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.LiveRoot, 1L), - new ItemStack[] { ItemList.TF_LiveRoot.get(1L) }); + 148, + "Liveroots", + "Benimatic", + null, + 8, + 4, + 0, + 1, + 4, + 2, + 0, + 5, + 2, + 6, + new String[] { "Wood", "Tendrilly" }, + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.LiveRoot, 1L), + new ItemStack[] { ItemList.TF_LiveRoot.get(1L) }); new GT_BaseCrop( - 149, - "Trollplant", - "unknown", - null, - 6, - 5, - 1000, - 1, - 4, - 0, - 0, - 5, - 2, - 8, - new String[] { "Troll", "Bad", "Scrap" }, - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.FoolsRuby, 1L), - new ItemStack[] { ItemList.IC2_Plantball.get(1), ItemList.IC2_Scrap.get(1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Plutonium241, 1L) }); + 149, + "Trollplant", + "unknown", + null, + 6, + 5, + 1000, + 1, + 4, + 0, + 0, + 5, + 2, + 8, + new String[] { "Troll", "Bad", "Scrap" }, + GT_OreDictUnificator.get(OrePrefixes.gem, Materials.FoolsRuby, 1L), + new ItemStack[] { ItemList.IC2_Plantball.get(1), ItemList.IC2_Scrap.get(1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Plutonium241, 1L) }); new GT_BaseCrop( - 150, - "Lazulia", - "unknown", - null, - 7, - 4, - 0, - 2, - 4, - 4, - 2, - 5, - 7, - 4, - new String[] { "Shiny", "Bad", "Crystal", "Lapis" }, - Materials.Lapis, - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lapis, 1L), - null); + 150, + "Lazulia", + "unknown", + null, + 7, + 4, + 0, + 2, + 4, + 4, + 2, + 5, + 7, + 4, + new String[] { "Shiny", "Bad", "Crystal", "Lapis" }, + Materials.Lapis, + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lapis, 1L), + null); new GT_BaseCrop( - 151, - "Glowheat", - "unknown", - null, - 10, - 7, - 0, - 5, - 7, - 3, - 3, - 3, - 5, - 4, - new String[] { "Light", "Shiny", "Crystal" }, - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glowstone, 1L), - null); + 151, + "Glowheat", + "unknown", + null, + 10, + 7, + 0, + 5, + 7, + 3, + 3, + 3, + 5, + 4, + new String[] { "Light", "Shiny", "Crystal" }, + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glowstone, 1L), + null); new GT_BaseCrop( - 153, - "Fertilia", - "unknown", - null, - 3, - 4, - 0, - 1, - 4, - 2, - 3, - 5, - 4, - 8, - new String[] { "Growth", "Healing", "Flower" }, - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcite, 1L), - new ItemStack[] { ItemList.IC2_Fertilizer.get(1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Apatite, 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Phosphate, 1L) }); + 153, + "Fertilia", + "unknown", + null, + 3, + 4, + 0, + 1, + 4, + 2, + 3, + 5, + 4, + 8, + new String[] { "Growth", "Healing", "Flower" }, + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcite, 1L), + new ItemStack[] { ItemList.IC2_Fertilizer.get(1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Apatite, 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Phosphate, 1L) }); new GT_BaseCrop( - 154, - "Bauxia", - "unknown", - null, - 6, - 3, - 0, - 2, - 3, - 5, - 0, - 2, - 3, - 3, - new String[] { "Metal", "Aluminium", "Reed", "Aluminium" }, - Materials.Aluminium, - ItemList.Crop_Drop_Bauxite.get(1), - null); + 154, + "Bauxia", + "unknown", + null, + 6, + 3, + 0, + 2, + 3, + 5, + 0, + 2, + 3, + 3, + new String[] { "Metal", "Aluminium", "Reed", "Aluminium" }, + Materials.Aluminium, + ItemList.Crop_Drop_Bauxite.get(1), + null); new GT_BaseCrop( - 155, - "Titania", - "unknown", - null, - 9, - 3, - 0, - 2, - 3, - 5, - 0, - 3, - 3, - 1, - new String[] { "Metal", "Heavy", "Reed", "Titanium" }, - Materials.Titanium, - ItemList.Crop_Drop_Ilmenite.get(1), - null); + 155, + "Titania", + "unknown", + null, + 9, + 3, + 0, + 2, + 3, + 5, + 0, + 3, + 3, + 1, + new String[] { "Metal", "Heavy", "Reed", "Titanium" }, + Materials.Titanium, + ItemList.Crop_Drop_Ilmenite.get(1), + null); new GT_BaseCrop( - 156, - "Reactoria", - "unknown", - null, - 12, - 4, - 0, - 2, - 4, - 4, - 0, - 1, - 2, - 1, - new String[] { "Radioactive", "Metal", "Danger", "Uranium" }, - Materials.Uranium, - ItemList.Crop_Drop_Pitchblende.get(1), - new ItemStack[] { ItemList.Crop_Drop_Uraninite.get(1) }); + 156, + "Reactoria", + "unknown", + null, + 12, + 4, + 0, + 2, + 4, + 4, + 0, + 1, + 2, + 1, + new String[] { "Radioactive", "Metal", "Danger", "Uranium" }, + Materials.Uranium, + ItemList.Crop_Drop_Pitchblende.get(1), + new ItemStack[] { ItemList.Crop_Drop_Uraninite.get(1) }); new GT_BaseCrop( - 157, - "God of Thunder", - "unknown", - null, - 9, - 4, - 0, - 2, - 4, - 3, - 0, - 5, - 1, - 2, - new String[] { "Radioactive", "Metal", "Coal", "Thorium" }, - Materials.Thorium, - ItemList.Crop_Drop_Thorium.get(1), - null); + 157, + "God of Thunder", + "unknown", + null, + 9, + 4, + 0, + 2, + 4, + 3, + 0, + 5, + 1, + 2, + new String[] { "Radioactive", "Metal", "Coal", "Thorium" }, + Materials.Thorium, + ItemList.Crop_Drop_Thorium.get(1), + null); new GT_BaseCrop( - 158, - "Transformium", - "unknown", - null, - 12, - 4, - 2500, - 1, - 4, - 6, - 2, - 1, - 6, - 1, - new String[] { "Transform", "Coal", "Reed" }, - ItemList.Crop_Drop_UUABerry.get(1L), - new ItemStack[] { ItemList.Crop_Drop_UUABerry.get(1L), ItemList.Crop_Drop_UUABerry.get(1L), - ItemList.Crop_Drop_UUABerry.get(1L), ItemList.Crop_Drop_UUABerry.get(1L), - ItemList.Crop_Drop_UUMBerry.get(1L) }); + 158, + "Transformium", + "unknown", + null, + 12, + 4, + 2500, + 1, + 4, + 6, + 2, + 1, + 6, + 1, + new String[] { "Transform", "Coal", "Reed" }, + ItemList.Crop_Drop_UUABerry.get(1L), + new ItemStack[] { ItemList.Crop_Drop_UUABerry.get(1L), ItemList.Crop_Drop_UUABerry.get(1L), + ItemList.Crop_Drop_UUABerry.get(1L), ItemList.Crop_Drop_UUABerry.get(1L), + ItemList.Crop_Drop_UUMBerry.get(1L) }); new GT_BaseCrop( - 159, - "Starwart", - "unknown", - null, - 12, - 4, - 4000, - 1, - 4, - 2, - 0, - 0, - 1, - 0, - new String[] { "Wither", "Nether", "Undead", "Netherstar" }, - Materials.NetherStar, - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Coal, 1L), - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Coal, 1L), - new ItemStack(Items.skull, 1), new ItemStack(Items.skull, 1, 1), - new ItemStack(Items.skull, 1, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.NetherStar, 1L) }); + 159, + "Starwart", + "unknown", + null, + 12, + 4, + 4000, + 1, + 4, + 2, + 0, + 0, + 1, + 0, + new String[] { "Wither", "Nether", "Undead", "Netherstar" }, + Materials.NetherStar, + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Coal, 1L), + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Coal, 1L), + new ItemStack(Items.skull, 1), new ItemStack(Items.skull, 1, 1), new ItemStack(Items.skull, 1, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.NetherStar, 1L) }); new GT_BaseCrop( - 160, - "Zomplant", - "unknown", - null, - 3, - 4, - 0, - 1, - 4, - 1, - 3, - 4, - 2, - 6, - new String[] { "Zombie", "Rotten", "Undead" }, - new ItemStack(Items.rotten_flesh), - null); + 160, + "Zomplant", + "unknown", + null, + 3, + 4, + 0, + 1, + 4, + 1, + 3, + 4, + 2, + 6, + new String[] { "Zombie", "Rotten", "Undead" }, + new ItemStack(Items.rotten_flesh), + null); new GT_BaseCrop( - 161, - "Nickelback", - "unknown", - null, - 5, - 3, - 0, - 2, - 3, - 3, - 0, - 1, - 2, - 2, - new String[] { "Metal", "Fire", "Alloy" }, - Materials.Nickel, - ItemList.Crop_Drop_Nickel.get(1), - null); + 161, + "Nickelback", + "unknown", + null, + 5, + 3, + 0, + 2, + 3, + 3, + 0, + 1, + 2, + 2, + new String[] { "Metal", "Fire", "Alloy" }, + Materials.Nickel, + ItemList.Crop_Drop_Nickel.get(1), + null); new GT_BaseCrop( - 162, - "Galvania", - "unknown", - null, - 6, - 3, - 0, - 2, - 3, - 3, - 0, - 2, - 2, - 3, - new String[] { "Metal", "Alloy", "Bush" }, - Materials.Zinc, - ItemList.Crop_Drop_Zinc.get(1), - null); + 162, + "Galvania", + "unknown", + null, + 6, + 3, + 0, + 2, + 3, + 3, + 0, + 2, + 2, + 3, + new String[] { "Metal", "Alloy", "Bush" }, + Materials.Zinc, + ItemList.Crop_Drop_Zinc.get(1), + null); new GT_BaseCrop( - 163, - "Evil Ore", - "unknown", - null, - 8, - 4, - 0, - 3, - 4, - 4, - 0, - 2, - 1, - 3, - new String[] { "Crystal", "Fire", "Nether" }, - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.NetherQuartz, 1L), - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.gem, Materials.NetherQuartz, 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.CertusQuartz, 1L), }); + 163, + "Evil Ore", + "unknown", + null, + 8, + 4, + 0, + 3, + 4, + 4, + 0, + 2, + 1, + 3, + new String[] { "Crystal", "Fire", "Nether" }, + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.NetherQuartz, 1L), + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.gem, Materials.NetherQuartz, 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.CertusQuartz, 1L), }); new GT_BaseCrop( - 164, - "Olivia", - "unknown", - null, - 2, - 4, - 0, - 3, - 4, - 1, - 0, - 1, - 4, - 0, - new String[] { "Crystal", "Shiny", "Processing", "Olivine" }, - Materials.Olivine, - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Olivine, 1L), - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Olivine, 1L), }); + 164, + "Olivia", + "unknown", + null, + 2, + 4, + 0, + 3, + 4, + 1, + 0, + 1, + 4, + 0, + new String[] { "Crystal", "Shiny", "Processing", "Olivine" }, + Materials.Olivine, + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Olivine, 1L), + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Olivine, 1L), }); new GT_BaseCrop( - 165, - "Sapphirum", - "unknown", - null, - 4, - 4, - 0, - 3, - 4, - 1, - 0, - 1, - 5, - 0, - new String[] { "Crystal", "Shiny", "Metal", "Sapphire" }, - Materials.Sapphire, - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sapphire, 1L), - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Sapphire, 1L), }); + 165, + "Sapphirum", + "unknown", + null, + 4, + 4, + 0, + 3, + 4, + 1, + 0, + 1, + 5, + 0, + new String[] { "Crystal", "Shiny", "Metal", "Sapphire" }, + Materials.Sapphire, + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sapphire, 1L), + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Sapphire, 1L), }); new GT_BaseCrop( - 166, - "Pyrolusium", - "unknown", - null, - 12, - 3, - 0, - 2, - 3, - 1, - 0, - 1, - 1, - 0, - new String[] { "Metal", "Clean", "Bush", "Manganese" }, - Materials.Manganese, - ItemList.Crop_Drop_Manganese.get(1), - null); + 166, + "Pyrolusium", + "unknown", + null, + 12, + 3, + 0, + 2, + 3, + 1, + 0, + 1, + 1, + 0, + new String[] { "Metal", "Clean", "Bush", "Manganese" }, + Materials.Manganese, + ItemList.Crop_Drop_Manganese.get(1), + null); new GT_BaseCrop( - 167, - "Scheelinium", - "unknown", - null, - 12, - 3, - 0, - 2, - 3, - 3, - 0, - 1, - 1, - 0, - new String[] { "Metal", "Hard", "Bush", "Tungsten" }, - Materials.Tungsten, - ItemList.Crop_Drop_Scheelite.get(1), - null); + 167, + "Scheelinium", + "unknown", + null, + 12, + 3, + 0, + 2, + 3, + 3, + 0, + 1, + 1, + 0, + new String[] { "Metal", "Hard", "Bush", "Tungsten" }, + Materials.Tungsten, + ItemList.Crop_Drop_Scheelite.get(1), + null); new GT_BaseCrop( - 168, - "Platina", - "unknown", - null, - 11, - 4, - 0, - 1, - 4, - 3, - 0, - 0, - 3, - 0, - new String[] { "Metal", "Shiny", "Reed", "Platinum" }, - Materials.Platinum, - ItemList.Crop_Drop_Platinum.get(1), - null); + 168, + "Platina", + "unknown", + null, + 11, + 4, + 0, + 1, + 4, + 3, + 0, + 0, + 3, + 0, + new String[] { "Metal", "Shiny", "Reed", "Platinum" }, + Materials.Platinum, + ItemList.Crop_Drop_Platinum.get(1), + null); new GT_BaseCrop( - 169, - "Quantaria", - "unknown", - null, - 12, - 4, - 1000, - 1, - 4, - 4, - 0, - 0, - 1, - 0, - new String[] { "Metal", "Iridium", "Reed" }, - Materials.Iridium, - ItemList.Crop_Drop_Iridium.get(1), - new ItemStack[] { ItemList.Crop_Drop_Osmium.get(1) }); + 169, + "Quantaria", + "unknown", + null, + 12, + 4, + 1000, + 1, + 4, + 4, + 0, + 0, + 1, + 0, + new String[] { "Metal", "Iridium", "Reed" }, + Materials.Iridium, + ItemList.Crop_Drop_Iridium.get(1), + new ItemStack[] { ItemList.Crop_Drop_Osmium.get(1) }); new GT_BaseCrop( - 170, - "Stargatium", - "unknown", - null, - 12, - 4, - 1500, - 1, - 4, - 4, - 0, - 0, - 2, - 0, - new String[] { "Metal", "Heavy", "Alien", "Naquadah" }, - Materials.Naquadah, - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Endstone, 1L), - new ItemStack[] { ItemList.Crop_Drop_Naquadah.get(1) }); + 170, + "Stargatium", + "unknown", + null, + 12, + 4, + 1500, + 1, + 4, + 4, + 0, + 0, + 2, + 0, + new String[] { "Metal", "Heavy", "Alien", "Naquadah" }, + Materials.Naquadah, + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Endstone, 1L), + new ItemStack[] { ItemList.Crop_Drop_Naquadah.get(1) }); new GT_BaseCrop( - 171, - "Lemon", - "unknown", - null, - 4, - 4, - 0, - 1, - 4, - 1, - 1, - 0, - 2, - 0, - new String[] { "Food", "Yellow", "Sour" }, - ItemList.Crop_Drop_Lemon.get(1), - null); + 171, + "Lemon", + "unknown", + null, + 4, + 4, + 0, + 1, + 4, + 1, + 1, + 0, + 2, + 0, + new String[] { "Food", "Yellow", "Sour" }, + ItemList.Crop_Drop_Lemon.get(1), + null); new GT_BaseCrop( - 172, - "Chilly", - "unknown", - null, - 4, - 4, - 0, - 1, - 4, - 1, - 1, - 0, - 2, - 0, - new String[] { "Food", "Red", "Spicy" }, - ItemList.Crop_Drop_Chilly.get(1), - null); + 172, + "Chilly", + "unknown", + null, + 4, + 4, + 0, + 1, + 4, + 1, + 1, + 0, + 2, + 0, + new String[] { "Food", "Red", "Spicy" }, + ItemList.Crop_Drop_Chilly.get(1), + null); new GT_BaseCrop( - 173, - "Tomato", - "unknown", - null, - 4, - 4, - 0, - 1, - 4, - 1, - 1, - 0, - 2, - 0, - new String[] { "Food", "Red" }, - ItemList.Crop_Drop_Tomato.get(1), - new ItemStack[] { ItemList.Crop_Drop_MTomato.get(1) }); + 173, + "Tomato", + "unknown", + null, + 4, + 4, + 0, + 1, + 4, + 1, + 1, + 0, + 2, + 0, + new String[] { "Food", "Red" }, + ItemList.Crop_Drop_Tomato.get(1), + new ItemStack[] { ItemList.Crop_Drop_MTomato.get(1) }); new GT_BaseCrop( - 174, - "Grape", - "unknown", - null, - 4, - 4, - 0, - 1, - 4, - 1, - 1, - 0, - 2, - 0, - new String[] { "Food", "Purple" }, - ItemList.Crop_Drop_Grapes.get(1), - null); + 174, + "Grape", + "unknown", + null, + 4, + 4, + 0, + 1, + 4, + 1, + 1, + 0, + 2, + 0, + new String[] { "Food", "Purple" }, + ItemList.Crop_Drop_Grapes.get(1), + null); new GT_BaseCrop( - 175, - "Onion", - "unknown", - null, - 4, - 4, - 0, - 1, - 4, - 1, - 1, - 0, - 2, - 0, - new String[] { "Food", "Brown" }, - ItemList.Crop_Drop_Onion.get(1), - null); + 175, + "Onion", + "unknown", + null, + 4, + 4, + 0, + 1, + 4, + 1, + 1, + 0, + 2, + 0, + new String[] { "Food", "Brown" }, + ItemList.Crop_Drop_Onion.get(1), + null); new GT_BaseCrop( - 176, - "Cucumber", - "unknown", - null, - 4, - 4, - 0, - 1, - 4, - 1, - 1, - 0, - 2, - 0, - new String[] { "Food", "Green" }, - ItemList.Crop_Drop_Cucumber.get(1), - null); + 176, + "Cucumber", + "unknown", + null, + 4, + 4, + 0, + 1, + 4, + 1, + 1, + 0, + 2, + 0, + new String[] { "Food", "Green" }, + ItemList.Crop_Drop_Cucumber.get(1), + null); new GT_BaseCrop( - 177, - "Tea", - "unknown", - null, - 4, - 4, - 0, - 1, - 4, - 1, - 1, - 0, - 2, - 0, - new String[] { "Food", "Green", "Ingredient" }, - ItemList.Crop_Drop_TeaLeaf.get(1), - null); + 177, + "Tea", + "unknown", + null, + 4, + 4, + 0, + 1, + 4, + 1, + 1, + 0, + 2, + 0, + new String[] { "Food", "Green", "Ingredient" }, + ItemList.Crop_Drop_TeaLeaf.get(1), + null); new GT_BaseCrop( - 178, - "Rape", - "unknown", - null, - 4, - 4, - 0, - 1, - 4, - 1, - 1, - 0, - 2, - 0, - new String[] { "Food", "Yellow", "Oil" }, - ItemList.Crop_Drop_Rape.get(1), - null); + 178, + "Rape", + "unknown", + null, + 4, + 4, + 0, + 1, + 4, + 1, + 1, + 0, + 2, + 0, + new String[] { "Food", "Yellow", "Oil" }, + ItemList.Crop_Drop_Rape.get(1), + null); new GT_BaseCrop( - 179, - "Micadia", - "bartimaeusnek", - null, - 9, - 3, - 0, - 2, - 3, - 2, - 0, - 3, - 0, - 0, - new String[] { "Metal", "Pine", "Mica", "Bush" }, - Materials.Mica, - ItemList.Crop_Drop_Mica.get(1L), - null); + 179, + "Micadia", + "bartimaeusnek", + null, + 9, + 3, + 0, + 2, + 3, + 2, + 0, + 3, + 0, + 0, + new String[] { "Metal", "Pine", "Mica", "Bush" }, + Materials.Mica, + ItemList.Crop_Drop_Mica.get(1L), + null); } catch (Throwable e) { GT_Log.err.println("GT_Mod: Failed to register Crops to IC2."); e.printStackTrace(GT_Log.err); diff --git a/src/main/java/gregtech/loaders/postload/GT_FakeRecipeLoader.java b/src/main/java/gregtech/loaders/postload/GT_FakeRecipeLoader.java index 5c97d4c8c8..38417e00a6 100644 --- a/src/main/java/gregtech/loaders/postload/GT_FakeRecipeLoader.java +++ b/src/main/java/gregtech/loaders/postload/GT_FakeRecipeLoader.java @@ -10,12 +10,12 @@ public class GT_FakeRecipeLoader implements Runnable { public void run() { if (!GregTech_API.mIC2Classic) { GT_Values.RA.addIC2ReactorBreederCell( - GT_ModHandler.getIC2Item("reactorLithiumCell", 1), - GT_ModHandler.getIC2Item("TritiumCell", 1), - true, - 3000, - 1, - 10000); + GT_ModHandler.getIC2Item("reactorLithiumCell", 1), + GT_ModHandler.getIC2Item("TritiumCell", 1), + true, + 3000, + 1, + 10000); } } } diff --git a/src/main/java/gregtech/loaders/postload/GT_ItemMaxStacksizeLoader.java b/src/main/java/gregtech/loaders/postload/GT_ItemMaxStacksizeLoader.java index c310a3501f..67f7f00d87 100644 --- a/src/main/java/gregtech/loaders/postload/GT_ItemMaxStacksizeLoader.java +++ b/src/main/java/gregtech/loaders/postload/GT_ItemMaxStacksizeLoader.java @@ -16,7 +16,7 @@ public class GT_ItemMaxStacksizeLoader implements Runnable { GT_Log.out.println("GT_Mod: Changing maximum Stacksizes if configured."); ItemList.Upgrade_Overclocker.getItem() - .setMaxStackSize(GT_Mod.gregtechproxy.mUpgradeCount); + .setMaxStackSize(GT_Mod.gregtechproxy.mUpgradeCount); Items.cake.setMaxStackSize(64); Items.wooden_door.setMaxStackSize(8); Items.iron_door.setMaxStackSize(8); diff --git a/src/main/java/gregtech/loaders/postload/GT_MachineRecipeLoader.java b/src/main/java/gregtech/loaders/postload/GT_MachineRecipeLoader.java index 6053311f40..ae5f32c0c0 100644 --- a/src/main/java/gregtech/loaders/postload/GT_MachineRecipeLoader.java +++ b/src/main/java/gregtech/loaders/postload/GT_MachineRecipeLoader.java @@ -18,7 +18,7 @@ public class GT_MachineRecipeLoader implements Runnable { public static final Boolean isAE2Loaded = true; public static final Materials[] solderingMats = new Materials[] { Materials.Lead, Materials.SolderingAlloy, - Materials.Tin }; + Materials.Tin }; @Override public void run() { diff --git a/src/main/java/gregtech/loaders/postload/GT_PostLoad.java b/src/main/java/gregtech/loaders/postload/GT_PostLoad.java index 5af192f33f..24229bd852 100644 --- a/src/main/java/gregtech/loaders/postload/GT_PostLoad.java +++ b/src/main/java/gregtech/loaders/postload/GT_PostLoad.java @@ -54,69 +54,53 @@ public class GT_PostLoad { GT_Mod.gregtechproxy.activateOreDictHandler(); // noinspection UnstableApiUsage// Stable enough for this project - GT_Mod.GT_FML_LOGGER.info( - "Congratulations, you have been waiting long enough (" + stopwatch.stop() + "). Have a Cake."); + GT_Mod.GT_FML_LOGGER + .info("Congratulations, you have been waiting long enough (" + stopwatch.stop() + "). Have a Cake."); GT_Log.out.println( - "GT_Mod: List of Lists of Tool Recipes: " - + GT_ModHandler.sSingleNonBlockDamagableRecipeList_list.toString()); + "GT_Mod: List of Lists of Tool Recipes: " + + GT_ModHandler.sSingleNonBlockDamagableRecipeList_list.toString()); GT_Log.out.println( - "GT_Mod: Vanilla Recipe List -> Outputs null or stackSize <=0: " - + GT_ModHandler.sVanillaRecipeList_warntOutput.toString()); + "GT_Mod: Vanilla Recipe List -> Outputs null or stackSize <=0: " + + GT_ModHandler.sVanillaRecipeList_warntOutput.toString()); GT_Log.out.println( - "GT_Mod: Single Non Block Damageable Recipe List -> Outputs null or stackSize <=0: " - + GT_ModHandler.sSingleNonBlockDamagableRecipeList_warntOutput.toString()); + "GT_Mod: Single Non Block Damageable Recipe List -> Outputs null or stackSize <=0: " + + GT_ModHandler.sSingleNonBlockDamagableRecipeList_warntOutput.toString()); } public static void removeIc2Recipes(Map aMaceratorRecipeList, - Map aCompressorRecipeList, Map aExtractorRecipeList, - Map aOreWashingRecipeList, - Map aThermalCentrifugeRecipeList) { + Map aCompressorRecipeList, Map aExtractorRecipeList, + Map aOreWashingRecipeList, + Map aThermalCentrifugeRecipeList) { @SuppressWarnings("UnstableApiUsage") // Stable enough for this project Stopwatch stopwatch = Stopwatch.createStarted(); // remove gemIridium exploit ItemStack iridiumOre = GT_ModHandler.getIC2Item("iridiumOre", 1); aCompressorRecipeList.entrySet() - .parallelStream() - .filter( - e -> e.getKey() - .getInputs() - .size() == 1 && e.getKey() - .getInputs() - .get(0) - .isItemEqual(iridiumOre)) - .findAny() - .ifPresent(e -> aCompressorRecipeList.remove(e.getKey())); + .parallelStream() + .filter( + e -> e.getKey() + .getInputs() + .size() == 1 && e.getKey() + .getInputs() + .get(0) + .isItemEqual(iridiumOre)) + .findAny() + .ifPresent(e -> aCompressorRecipeList.remove(e.getKey())); // Add default IC2 recipe to GT + GT_ModHandler + .addIC2RecipesToGT(aMaceratorRecipeList, GT_Recipe.GT_Recipe_Map.sMaceratorRecipes, true, true, true); + GT_ModHandler + .addIC2RecipesToGT(aCompressorRecipeList, GT_Recipe.GT_Recipe_Map.sCompressorRecipes, true, true, true); + GT_ModHandler + .addIC2RecipesToGT(aExtractorRecipeList, GT_Recipe.GT_Recipe_Map.sExtractorRecipes, true, true, true); + GT_ModHandler + .addIC2RecipesToGT(aOreWashingRecipeList, GT_Recipe.GT_Recipe_Map.sOreWasherRecipes, false, true, true); GT_ModHandler.addIC2RecipesToGT( - aMaceratorRecipeList, - GT_Recipe.GT_Recipe_Map.sMaceratorRecipes, - true, - true, - true); - GT_ModHandler.addIC2RecipesToGT( - aCompressorRecipeList, - GT_Recipe.GT_Recipe_Map.sCompressorRecipes, - true, - true, - true); - GT_ModHandler.addIC2RecipesToGT( - aExtractorRecipeList, - GT_Recipe.GT_Recipe_Map.sExtractorRecipes, - true, - true, - true); - GT_ModHandler.addIC2RecipesToGT( - aOreWashingRecipeList, - GT_Recipe.GT_Recipe_Map.sOreWasherRecipes, - false, - true, - true); - GT_ModHandler.addIC2RecipesToGT( - aThermalCentrifugeRecipeList, - GT_Recipe.GT_Recipe_Map.sThermalCentrifugeRecipes, - true, - true, - true); + aThermalCentrifugeRecipeList, + GT_Recipe.GT_Recipe_Map.sThermalCentrifugeRecipes, + true, + true, + true); // noinspection UnstableApiUsage// Stable enough for this project GT_Mod.GT_FML_LOGGER.info("IC2 Removal (" + stopwatch.stop() + "). Have a Cake."); } @@ -125,49 +109,50 @@ public class GT_PostLoad { ItemStack iSData0 = new ItemStack(Items.potionitem, 1, 0); ItemStack iLData0 = ItemList.Bottle_Empty.get(1L); - for (FluidContainerRegistry.FluidContainerData tData : FluidContainerRegistry.getRegisteredFluidContainerData()) { + for (FluidContainerRegistry.FluidContainerData tData : FluidContainerRegistry + .getRegisteredFluidContainerData()) { if ((tData.filledContainer.getItem() == Items.potionitem) && (tData.filledContainer.getItemDamage() == 0)) { GT_Recipe.GT_Recipe_Map.sFluidCannerRecipes.addRecipe( - true, - new ItemStack[] { iLData0 }, - new ItemStack[] { iSData0 }, - null, - new FluidStack[] { Materials.Water.getFluid(250L) }, - null, - 4, - 1, - 0); + true, + new ItemStack[] { iLData0 }, + new ItemStack[] { iSData0 }, + null, + new FluidStack[] { Materials.Water.getFluid(250L) }, + null, + 4, + 1, + 0); GT_Recipe.GT_Recipe_Map.sFluidCannerRecipes.addRecipe( - true, - new ItemStack[] { iSData0 }, - new ItemStack[] { iLData0 }, - null, - null, - null, - 4, - 1, - 0); + true, + new ItemStack[] { iSData0 }, + new ItemStack[] { iLData0 }, + null, + null, + null, + 4, + 1, + 0); } else { GT_Recipe.GT_Recipe_Map.sFluidCannerRecipes.addRecipe( - true, - new ItemStack[] { tData.emptyContainer }, - new ItemStack[] { tData.filledContainer }, - null, - new FluidStack[] { tData.fluid }, - null, - tData.fluid.amount / 62, - 1, - 0); + true, + new ItemStack[] { tData.emptyContainer }, + new ItemStack[] { tData.filledContainer }, + null, + new FluidStack[] { tData.fluid }, + null, + tData.fluid.amount / 62, + 1, + 0); GT_Recipe.GT_Recipe_Map.sFluidCannerRecipes.addRecipe( - true, - new ItemStack[] { tData.filledContainer }, - new ItemStack[] { GT_Utility.getContainerItem(tData.filledContainer, true) }, - null, - null, - new FluidStack[] { tData.fluid }, - tData.fluid.amount / 62, - 1, - 0); + true, + new ItemStack[] { tData.filledContainer }, + new ItemStack[] { GT_Utility.getContainerItem(tData.filledContainer, true) }, + null, + null, + new FluidStack[] { tData.fluid }, + tData.fluid.amount / 62, + 1, + 0); } } } @@ -181,219 +166,219 @@ public class GT_PostLoad { if (ItemList.IC2_Crop_Seeds.get(1L) != null) { GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes.addFakeRecipe( - false, - new ItemStack[] { ItemList.IC2_Crop_Seeds.getWildcard(1L) }, - new ItemStack[] { ItemList.IC2_Crop_Seeds.getWithName(1L, "Scanned Seeds") }, - null, - null, - null, - 160, - 8, - 0); - } - GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes.addFakeRecipe( false, - new ItemStack[] { new ItemStack(Items.written_book, 1, 32767) }, - new ItemStack[] { ItemList.Tool_DataStick.getWithName(1L, "Scanned Book Data") }, - ItemList.Tool_DataStick.getWithName(1L, "Stick to save it to"), + new ItemStack[] { ItemList.IC2_Crop_Seeds.getWildcard(1L) }, + new ItemStack[] { ItemList.IC2_Crop_Seeds.getWithName(1L, "Scanned Seeds") }, null, null, - 128, - 30, - 0); - GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes.addFakeRecipe( - false, - new ItemStack[] { new ItemStack(Items.filled_map, 1, 32767) }, - new ItemStack[] { ItemList.Tool_DataStick.getWithName(1L, "Scanned Map Data") }, - ItemList.Tool_DataStick.getWithName(1L, "Stick to save it to"), null, - null, - 128, - 30, + 160, + 8, 0); + } GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes.addFakeRecipe( - false, - new ItemStack[] { ItemList.Tool_DataOrb.getWithName(1L, "Orb to overwrite") }, - new ItemStack[] { ItemList.Tool_DataOrb.getWithName(1L, "Copy of the Orb") }, - ItemList.Tool_DataOrb.getWithName(0L, "Orb to copy"), - null, - null, - 512, - 30, - 0); + false, + new ItemStack[] { new ItemStack(Items.written_book, 1, 32767) }, + new ItemStack[] { ItemList.Tool_DataStick.getWithName(1L, "Scanned Book Data") }, + ItemList.Tool_DataStick.getWithName(1L, "Stick to save it to"), + null, + null, + 128, + 30, + 0); + GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes.addFakeRecipe( + false, + new ItemStack[] { new ItemStack(Items.filled_map, 1, 32767) }, + new ItemStack[] { ItemList.Tool_DataStick.getWithName(1L, "Scanned Map Data") }, + ItemList.Tool_DataStick.getWithName(1L, "Stick to save it to"), + null, + null, + 128, + 30, + 0); GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes.addFakeRecipe( + false, + new ItemStack[] { ItemList.Tool_DataOrb.getWithName(1L, "Orb to overwrite") }, + new ItemStack[] { ItemList.Tool_DataOrb.getWithName(1L, "Copy of the Orb") }, + ItemList.Tool_DataOrb.getWithName(0L, "Orb to copy"), + null, + null, + 512, + 30, + 0); + GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes.addFakeRecipe( + false, + new ItemStack[] { ItemList.Tool_DataStick.getWithName(1L, "Stick to overwrite") }, + new ItemStack[] { ItemList.Tool_DataStick.getWithName(1L, "Copy of the Stick") }, + ItemList.Tool_DataStick.getWithName(0L, "Stick to copy"), + null, + null, + 128, + 30, + 0); + GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes.addFakeRecipe( + false, + new ItemStack[] { ItemList.Tool_DataStick.getWithName(1L, "Raw Prospection Data") }, + new ItemStack[] { ItemList.Tool_DataStick.getWithName(1L, "Analyzed Prospection Data") }, + null, + null, + null, + 1000, + 30, + 0); + if (GalacticraftCore.isModLoaded()) { + GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes.addFakeRecipe( false, - new ItemStack[] { ItemList.Tool_DataStick.getWithName(1L, "Stick to overwrite") }, - new ItemStack[] { ItemList.Tool_DataStick.getWithName(1L, "Copy of the Stick") }, - ItemList.Tool_DataStick.getWithName(0L, "Stick to copy"), + new ItemStack[] { Objects + .requireNonNull(GT_ModHandler.getModItem(GalacticraftCore.ID, "item.schematic", 1, Short.MAX_VALUE)) + .setStackDisplayName("Any Schematic") }, + new ItemStack[] { ItemList.Tool_DataStick.getWithName(1L, "Scanned Schematic") }, + ItemList.Tool_DataStick.getWithName(1L, "Stick to save it to"), null, null, - 128, - 30, + 36000, + 480, 0); - GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes.addFakeRecipe( + if (GalacticraftMars.isModLoaded()) GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes.addFakeRecipe( false, - new ItemStack[] { ItemList.Tool_DataStick.getWithName(1L, "Raw Prospection Data") }, - new ItemStack[] { ItemList.Tool_DataStick.getWithName(1L, "Analyzed Prospection Data") }, - null, + new ItemStack[] { Objects + .requireNonNull(GT_ModHandler.getModItem(GalacticraftMars.ID, "item.schematic", 1, Short.MAX_VALUE)) + .setStackDisplayName("Any Schematic") }, + new ItemStack[] { ItemList.Tool_DataStick.getWithName(1L, "Scanned Schematic") }, + ItemList.Tool_DataStick.getWithName(1L, "Stick to save it to"), null, null, - 1000, - 30, + 36000, + 480, 0); - if (GalacticraftCore.isModLoaded()) { - GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes.addFakeRecipe( - false, - new ItemStack[] { Objects.requireNonNull( - GT_ModHandler.getModItem(GalacticraftCore.ID, "item.schematic", 1, Short.MAX_VALUE)) - .setStackDisplayName("Any Schematic") }, - new ItemStack[] { ItemList.Tool_DataStick.getWithName(1L, "Scanned Schematic") }, - ItemList.Tool_DataStick.getWithName(1L, "Stick to save it to"), - null, - null, - 36000, - 480, - 0); - if (GalacticraftMars.isModLoaded()) GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes.addFakeRecipe( - false, - new ItemStack[] { Objects.requireNonNull( - GT_ModHandler.getModItem(GalacticraftMars.ID, "item.schematic", 1, Short.MAX_VALUE)) - .setStackDisplayName("Any Schematic") }, - new ItemStack[] { ItemList.Tool_DataStick.getWithName(1L, "Scanned Schematic") }, - ItemList.Tool_DataStick.getWithName(1L, "Stick to save it to"), - null, - null, - 36000, - 480, - 0); if (GalaxySpace.isModLoaded()) { for (int i = 4; i < 9; i++) { GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes.addFakeRecipe( + false, + new ItemStack[] { GT_ModHandler.getModItem(GalaxySpace.ID, "item.SchematicTier" + i, 1) + .setStackDisplayName("Any Schematic") }, + new ItemStack[] { ItemList.Tool_DataStick.getWithName(1L, "Scanned Schematic") }, + ItemList.Tool_DataStick.getWithName(1L, "Stick to save it to"), + null, + null, + 36000, + 480, + 0); + } + } + } + Materials.getMaterialsMap() + .values() + .forEach(tMaterial -> { + if ((tMaterial.mElement != null) && (!tMaterial.mElement.mIsIsotope) + && (tMaterial != Materials.Magic) + && (tMaterial.getMass() > 0L)) { + ItemStack tOutput = ItemList.Tool_DataOrb.get(1L); + Behaviour_DataOrb.setDataTitle(tOutput, "Elemental-Scan"); + Behaviour_DataOrb.setDataName(tOutput, tMaterial.mElement.name()); + ItemStack tInput = GT_OreDictUnificator.get(OrePrefixes.dust, tMaterial, 1L); + ItemStack[] iSMat0 = new ItemStack[] { tInput }; + ItemStack[] iSMat1 = new ItemStack[] { tOutput }; + if (tInput != null) { + GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes.addFakeRecipe( false, - new ItemStack[] { GT_ModHandler.getModItem(GalaxySpace.ID, "item.SchematicTier" + i, 1) - .setStackDisplayName("Any Schematic") }, - new ItemStack[] { ItemList.Tool_DataStick.getWithName(1L, "Scanned Schematic") }, - ItemList.Tool_DataStick.getWithName(1L, "Stick to save it to"), + iSMat0, + iSMat1, + ItemList.Tool_DataOrb.get(1L), null, null, - 36000, - 480, + (int) (tMaterial.getMass() * 8192L), + 30, 0); + GT_Recipe.GT_Recipe_Map.sReplicatorFakeRecipes.addFakeRecipe( + false, + null, + iSMat0, + iSMat1, + new FluidStack[] { Materials.UUMatter.getFluid(tMaterial.getMass()) }, + null, + (int) (tMaterial.getMass() * 512L), + (int) VP[1], + 0); + } + tInput = GT_OreDictUnificator.get(OrePrefixes.cell, tMaterial, 1L); + iSMat0 = new ItemStack[] { tInput }; + if (tInput != null) { + GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes.addFakeRecipe( + false, + iSMat0, + iSMat1, + ItemList.Tool_DataOrb.get(1L), + null, + null, + (int) (tMaterial.getMass() * 8192L), + 30, + 0); + GT_Recipe.GT_Recipe_Map.sReplicatorFakeRecipes.addFakeRecipe( + false, + null, + iSMat0, + iSMat1, + new FluidStack[] { Materials.UUMatter.getFluid(tMaterial.getMass()) }, + null, + (int) (tMaterial.getMass() * 512L), + (int) VP[1], + 0); + } } - } - } - Materials.getMaterialsMap() - .values() - .forEach(tMaterial -> { - if ((tMaterial.mElement != null) && (!tMaterial.mElement.mIsIsotope) - && (tMaterial != Materials.Magic) - && (tMaterial.getMass() > 0L)) { - ItemStack tOutput = ItemList.Tool_DataOrb.get(1L); - Behaviour_DataOrb.setDataTitle(tOutput, "Elemental-Scan"); - Behaviour_DataOrb.setDataName(tOutput, tMaterial.mElement.name()); - ItemStack tInput = GT_OreDictUnificator.get(OrePrefixes.dust, tMaterial, 1L); - ItemStack[] iSMat0 = new ItemStack[] { tInput }; - ItemStack[] iSMat1 = new ItemStack[] { tOutput }; - if (tInput != null) { - GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes.addFakeRecipe( - false, - iSMat0, - iSMat1, - ItemList.Tool_DataOrb.get(1L), - null, - null, - (int) (tMaterial.getMass() * 8192L), - 30, - 0); - GT_Recipe.GT_Recipe_Map.sReplicatorFakeRecipes.addFakeRecipe( - false, - null, - iSMat0, - iSMat1, - new FluidStack[] { Materials.UUMatter.getFluid(tMaterial.getMass()) }, - null, - (int) (tMaterial.getMass() * 512L), - (int) VP[1], - 0); - } - tInput = GT_OreDictUnificator.get(OrePrefixes.cell, tMaterial, 1L); - iSMat0 = new ItemStack[] { tInput }; - if (tInput != null) { - GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes.addFakeRecipe( - false, - iSMat0, - iSMat1, - ItemList.Tool_DataOrb.get(1L), - null, - null, - (int) (tMaterial.getMass() * 8192L), - 30, - 0); - GT_Recipe.GT_Recipe_Map.sReplicatorFakeRecipes.addFakeRecipe( - false, - null, - iSMat0, - iSMat1, - new FluidStack[] { Materials.UUMatter.getFluid(tMaterial.getMass()) }, - null, - (int) (tMaterial.getMass() * 512L), - (int) VP[1], - 0); - } - } - }); + }); if (!GT_MetaTileEntity_Massfabricator.sRequiresUUA) GT_Recipe.GT_Recipe_Map.sMassFabFakeRecipes.addFakeRecipe( - false, - null, - null, - null, - null, - new FluidStack[] { Materials.UUMatter.getFluid(1L) }, - GT_MetaTileEntity_Massfabricator.sDurationMultiplier, - 256, - 0); + false, + null, + null, + null, + null, + new FluidStack[] { Materials.UUMatter.getFluid(1L) }, + GT_MetaTileEntity_Massfabricator.sDurationMultiplier, + 256, + 0); GT_Recipe.GT_Recipe_Map.sMassFabFakeRecipes.addFakeRecipe( - false, - new ItemStack[] { GT_Utility.getIntegratedCircuit(1) }, - null, - null, - new FluidStack[] { Materials.UUAmplifier.getFluid(GT_MetaTileEntity_Massfabricator.sUUAperUUM) }, - new FluidStack[] { Materials.UUMatter.getFluid(1L) }, - GT_MetaTileEntity_Massfabricator.sDurationMultiplier / GT_MetaTileEntity_Massfabricator.sUUASpeedBonus, - 256, - 0); + false, + new ItemStack[] { GT_Utility.getIntegratedCircuit(1) }, + null, + null, + new FluidStack[] { Materials.UUAmplifier.getFluid(GT_MetaTileEntity_Massfabricator.sUUAperUUM) }, + new FluidStack[] { Materials.UUMatter.getFluid(1L) }, + GT_MetaTileEntity_Massfabricator.sDurationMultiplier / GT_MetaTileEntity_Massfabricator.sUUASpeedBonus, + 256, + 0); GT_Recipe.GT_Recipe_Map.sRockBreakerFakeRecipes.addFakeRecipe( - false, - new ItemStack[] { ItemList.Display_ITS_FREE.getWithName(0L, "Place Lava on Side") }, - new ItemStack[] { new ItemStack(Blocks.cobblestone, 1) }, - null, - null, - null, - 16, - 30, - 0); + false, + new ItemStack[] { ItemList.Display_ITS_FREE.getWithName(0L, "Place Lava on Side") }, + new ItemStack[] { new ItemStack(Blocks.cobblestone, 1) }, + null, + null, + null, + 16, + 30, + 0); GT_Recipe.GT_Recipe_Map.sRockBreakerFakeRecipes.addFakeRecipe( - false, - new ItemStack[] { ItemList.Display_ITS_FREE.getWithName(0L, "Place Lava on Top") }, - new ItemStack[] { new ItemStack(Blocks.stone, 1) }, - null, - null, - null, - 16, - 30, - 0); + false, + new ItemStack[] { ItemList.Display_ITS_FREE.getWithName(0L, "Place Lava on Top") }, + new ItemStack[] { new ItemStack(Blocks.stone, 1) }, + null, + null, + null, + 16, + 30, + 0); GT_Recipe.GT_Recipe_Map.sRockBreakerFakeRecipes.addFakeRecipe( - false, - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1L), - GT_Utility.getIntegratedCircuit(1) }, - new ItemStack[] { new ItemStack(Blocks.obsidian, 1) }, - null, - null, - null, - 128, - 30, - 0); + false, + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1L), + GT_Utility.getIntegratedCircuit(1) }, + new ItemStack[] { new ItemStack(Blocks.obsidian, 1) }, + null, + null, + null, + 128, + 30, + 0); } public static void nerfVanillaTools() { @@ -436,15 +421,14 @@ public class GT_PostLoad { Stopwatch stopwatch = Stopwatch.createStarted(); GT_Mod.GT_FML_LOGGER.info("Replacing Vanilla Materials in recipes, please wait."); Set replaceVanillaItemsSet = GT_Mod.gregtechproxy.mUseGreatlyShrukenReplacementList - ? Arrays.stream(Materials.values()) - .filter(GT_RecipeRegistrator::hasVanillaRecipes) - .collect(Collectors.toSet()) - : new HashSet<>(Arrays.asList(Materials.values())); + ? Arrays.stream(Materials.values()) + .filter(GT_RecipeRegistrator::hasVanillaRecipes) + .collect(Collectors.toSet()) + : new HashSet<>(Arrays.asList(Materials.values())); @SuppressWarnings("deprecation") // stable API for MC 1.7.10 - ProgressManager.ProgressBar progressBar = ProgressManager.push( - "Register materials", - replaceVanillaItemsSet.size()); + ProgressManager.ProgressBar progressBar = ProgressManager + .push("Register materials", replaceVanillaItemsSet.size()); if (GT_Values.cls_enabled) { try { GT_CLS_Compat.doActualRegistrationCLS(progressBar, replaceVanillaItemsSet); @@ -466,7 +450,7 @@ public class GT_PostLoad { public static void doActualRegistration(Materials m) { String plateName = OrePrefixes.plate.get(m) - .toString(); + .toString(); boolean noSmash = !m.contains(SubTag.NO_SMASHING); if ((m.mTypes & 2) != 0) GT_RecipeRegistrator.registerUsagesForMaterials(plateName, noSmash, m.getIngots(1)); if ((m.mTypes & 4) != 0) GT_RecipeRegistrator.registerUsagesForMaterials(plateName, noSmash, m.getGems(1)); @@ -493,52 +477,28 @@ public class GT_PostLoad { public void displayAllReleventItems(List aList) { for (int i = 0; i < 32766; i += 2) { - if (GT_MetaGenerated_Tool_01.INSTANCE.getToolStats( - new ItemStack(GT_MetaGenerated_Tool_01.INSTANCE, 1, i)) != null) { + if (GT_MetaGenerated_Tool_01.INSTANCE + .getToolStats(new ItemStack(GT_MetaGenerated_Tool_01.INSTANCE, 1, i)) != null) { ItemStack tStack = new ItemStack(GT_MetaGenerated_Tool_01.INSTANCE, 1, i); GT_MetaGenerated_Tool_01.INSTANCE.isItemStackUsable(tStack); aList.add( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - i, - 1, - Materials.Lead, - Materials.Lead, - null)); + GT_MetaGenerated_Tool_01.INSTANCE + .getToolWithStats(i, 1, Materials.Lead, Materials.Lead, null)); aList.add( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - i, - 1, - Materials.Nickel, - Materials.Nickel, - null)); + GT_MetaGenerated_Tool_01.INSTANCE + .getToolWithStats(i, 1, Materials.Nickel, Materials.Nickel, null)); aList.add( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - i, - 1, - Materials.Cobalt, - Materials.Cobalt, - null)); + GT_MetaGenerated_Tool_01.INSTANCE + .getToolWithStats(i, 1, Materials.Cobalt, Materials.Cobalt, null)); aList.add( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - i, - 1, - Materials.Osmium, - Materials.Osmium, - null)); + GT_MetaGenerated_Tool_01.INSTANCE + .getToolWithStats(i, 1, Materials.Osmium, Materials.Osmium, null)); aList.add( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - i, - 1, - Materials.Adamantium, - Materials.Adamantium, - null)); + GT_MetaGenerated_Tool_01.INSTANCE + .getToolWithStats(i, 1, Materials.Adamantium, Materials.Adamantium, null)); aList.add( - GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats( - i, - 1, - Materials.Neutronium, - Materials.Neutronium, - null)); + GT_MetaGenerated_Tool_01.INSTANCE + .getToolWithStats(i, 1, Materials.Neutronium, Materials.Neutronium, null)); } } super.displayAllReleventItems(aList); @@ -548,32 +508,32 @@ public class GT_PostLoad { public static void addSolidFakeLargeBoilerFuels() { GT_Recipe.GT_Recipe_Map.sLargeBoilerFakeFuels.addSolidRecipes( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Charcoal, 1), - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Charcoal, 1), - GT_OreDictUnificator.get(OrePrefixes.block, Materials.Charcoal, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Coal, 1), - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Coal, 1), - GT_OreDictUnificator.get(OrePrefixes.block, Materials.Coal, 1), - GT_OreDictUnificator.get(OrePrefixes.crushed, Materials.Coal, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lignite, 1), - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Lignite, 1), - GT_OreDictUnificator.get(OrePrefixes.block, Materials.Lignite, 1), - GT_OreDictUnificator.get(OrePrefixes.crushed, Materials.Lignite, 1), - GT_OreDictUnificator.get(OrePrefixes.log, Materials.Wood, 1), - GT_OreDictUnificator.get(OrePrefixes.plank, Materials.Wood, 1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 1), - GT_OreDictUnificator.get(OrePrefixes.slab, Materials.Wood, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sodium, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lithium, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Caesium, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 1), - GT_OreDictUnificator.get(ItemList.Block_SSFUEL.get(1)), - GT_OreDictUnificator.get(ItemList.Block_MSSFUEL.get(1)), - GT_OreDictUnificator.get(OrePrefixes.rod, Materials.Blaze, 1)); + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Charcoal, 1), + GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Charcoal, 1), + GT_OreDictUnificator.get(OrePrefixes.block, Materials.Charcoal, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Coal, 1), + GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Coal, 1), + GT_OreDictUnificator.get(OrePrefixes.block, Materials.Coal, 1), + GT_OreDictUnificator.get(OrePrefixes.crushed, Materials.Coal, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lignite, 1), + GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Lignite, 1), + GT_OreDictUnificator.get(OrePrefixes.block, Materials.Lignite, 1), + GT_OreDictUnificator.get(OrePrefixes.crushed, Materials.Lignite, 1), + GT_OreDictUnificator.get(OrePrefixes.log, Materials.Wood, 1), + GT_OreDictUnificator.get(OrePrefixes.plank, Materials.Wood, 1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 1), + GT_OreDictUnificator.get(OrePrefixes.slab, Materials.Wood, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sodium, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lithium, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Caesium, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 1), + GT_OreDictUnificator.get(ItemList.Block_SSFUEL.get(1)), + GT_OreDictUnificator.get(ItemList.Block_MSSFUEL.get(1)), + GT_OreDictUnificator.get(OrePrefixes.rod, Materials.Blaze, 1)); if (Thaumcraft.isModLoaded()) { - GT_Recipe.GT_Recipe_Map.sLargeBoilerFakeFuels.addSolidRecipe( - GT_ModHandler.getModItem(Thaumcraft.ID, "ItemResource", 1)); + GT_Recipe.GT_Recipe_Map.sLargeBoilerFakeFuels + .addSolidRecipe(GT_ModHandler.getModItem(Thaumcraft.ID, "ItemResource", 1)); } } @@ -582,14 +542,14 @@ public class GT_PostLoad { final String[] superHeatedSteamCandidates = { "ic2superheatedsteam" }; GT_ModHandler.sAnySteamFluidIDs = Arrays.stream(steamCandidates) - .map(FluidRegistry::getFluid) - .filter(Objects::nonNull) - .map(FluidRegistry::getFluidID) - .collect(Collectors.toList()); + .map(FluidRegistry::getFluid) + .filter(Objects::nonNull) + .map(FluidRegistry::getFluidID) + .collect(Collectors.toList()); GT_ModHandler.sSuperHeatedSteamFluidIDs = Arrays.stream(superHeatedSteamCandidates) - .map(FluidRegistry::getFluid) - .filter(Objects::nonNull) - .map(FluidRegistry::getFluidID) - .collect(Collectors.toList()); + .map(FluidRegistry::getFluid) + .filter(Objects::nonNull) + .map(FluidRegistry::getFluidID) + .collect(Collectors.toList()); } } diff --git a/src/main/java/gregtech/loaders/postload/GT_ProcessingArrayRecipeLoader.java b/src/main/java/gregtech/loaders/postload/GT_ProcessingArrayRecipeLoader.java index 080330c7dd..32023df99a 100644 --- a/src/main/java/gregtech/loaders/postload/GT_ProcessingArrayRecipeLoader.java +++ b/src/main/java/gregtech/loaders/postload/GT_ProcessingArrayRecipeLoader.java @@ -10,14 +10,12 @@ public class GT_ProcessingArrayRecipeLoader { // Alloy Smelter GT_ProcessingArray_Manager.addRecipeMapToPA("basicmachine.alloysmelter", GT_Recipe_Map.sAlloySmelterRecipes); - GT_ProcessingArray_Manager.addSoundResourceToPA( - "basicmachine.alloysmelter", - SoundResource.IC2_MACHINES_INDUCTION_LOOP); + GT_ProcessingArray_Manager + .addSoundResourceToPA("basicmachine.alloysmelter", SoundResource.IC2_MACHINES_INDUCTION_LOOP); // Arc Furnace GT_ProcessingArray_Manager.addRecipeMapToPA("basicmachine.arcfurnace", GT_Recipe_Map.sArcFurnaceRecipes); - GT_ProcessingArray_Manager.addSoundResourceToPA( - "basicmachine.arcfurnace", - SoundResource.IC2_MACHINES_INDUCTION_LOOP); + GT_ProcessingArray_Manager + .addSoundResourceToPA("basicmachine.arcfurnace", SoundResource.IC2_MACHINES_INDUCTION_LOOP); // Assembler GT_ProcessingArray_Manager.addRecipeMapToPA("basicmachine.assembler", GT_Recipe_Map.sAssemblerRecipes); GT_ProcessingArray_Manager.addSoundResourceToPA("basicmachine.assembler", SoundResource.NONE); @@ -26,9 +24,8 @@ public class GT_ProcessingArrayRecipeLoader { GT_ProcessingArray_Manager.addSoundResourceToPA("basicmachine.autoclave", SoundResource.NONE); // Bender GT_ProcessingArray_Manager.addRecipeMapToPA("basicmachine.bender", GT_Recipe_Map.sBenderRecipes); - GT_ProcessingArray_Manager.addSoundResourceToPA( - "basicmachine.bender", - SoundResource.IC2_MACHINES_COMPRESSOR_OP); + GT_ProcessingArray_Manager + .addSoundResourceToPA("basicmachine.bender", SoundResource.IC2_MACHINES_COMPRESSOR_OP); // Boxinator GT_ProcessingArray_Manager.addRecipeMapToPA("basicmachine.boxinator", GT_Recipe_Map.sBoxinatorRecipes); GT_ProcessingArray_Manager.addSoundResourceToPA("basicmachine.boxinator", SoundResource.NONE); @@ -39,77 +36,63 @@ public class GT_ProcessingArrayRecipeLoader { GT_ProcessingArray_Manager.addRecipeMapToPA("basicmachine.canner", GT_Recipe_Map.sCannerRecipes); GT_ProcessingArray_Manager.addSoundResourceToPA("basicmachine.canner", SoundResource.IC2_MACHINES_EXTRACTOR_OP); // Centrifuge - GT_ProcessingArray_Manager.addRecipeMapToPA( - "basicmachine.centrifuge", - GT_Recipe_Map.sMultiblockCentrifugeRecipes); + GT_ProcessingArray_Manager + .addRecipeMapToPA("basicmachine.centrifuge", GT_Recipe_Map.sMultiblockCentrifugeRecipes); GT_ProcessingArray_Manager.addSoundResourceToPA("basicmachine.centrifuge", SoundResource.NONE); // Chemical Bath GT_ProcessingArray_Manager.addRecipeMapToPA("basicmachine.chemicalbath", GT_Recipe_Map.sChemicalBathRecipes); GT_ProcessingArray_Manager.addSoundResourceToPA("basicmachine.chemicalbath", SoundResource.NONE); // Chemical Reactor - GT_ProcessingArray_Manager.addRecipeMapToPA( - "basicmachine.chemicalreactor", - GT_Recipe_Map.sMultiblockChemicalRecipes); - GT_ProcessingArray_Manager.addSoundResourceToPA( - "basicmachine.chemicalreactor", - SoundResource.IC2_MACHINES_EXTRACTOR_OP); + GT_ProcessingArray_Manager + .addRecipeMapToPA("basicmachine.chemicalreactor", GT_Recipe_Map.sMultiblockChemicalRecipes); + GT_ProcessingArray_Manager + .addSoundResourceToPA("basicmachine.chemicalreactor", SoundResource.IC2_MACHINES_EXTRACTOR_OP); // Circuit Assembler - GT_ProcessingArray_Manager.addRecipeMapToPA( - "basicmachine.circuitassembler", - GT_Recipe_Map.sCircuitAssemblerRecipes); + GT_ProcessingArray_Manager + .addRecipeMapToPA("basicmachine.circuitassembler", GT_Recipe_Map.sCircuitAssemblerRecipes); GT_ProcessingArray_Manager.addSoundResourceToPA("basicmachine.circuitassembler", SoundResource.NONE); // Compressor GT_ProcessingArray_Manager.addRecipeMapToPA("basicmachine.compressor", GT_Recipe_Map.sCompressorRecipes); - GT_ProcessingArray_Manager.addSoundResourceToPA( - "basicmachine.compressor", - SoundResource.IC2_MACHINES_COMPRESSOR_OP); + GT_ProcessingArray_Manager + .addSoundResourceToPA("basicmachine.compressor", SoundResource.IC2_MACHINES_COMPRESSOR_OP); // Cutting Machine GT_ProcessingArray_Manager.addRecipeMapToPA("basicmachine.cutter", GT_Recipe_Map.sCutterRecipes); GT_ProcessingArray_Manager.addSoundResourceToPA("basicmachine.cutter", SoundResource.NONE); // Distillery GT_ProcessingArray_Manager.addRecipeMapToPA("basicmachine.distillery", GT_Recipe_Map.sDistilleryRecipes); - GT_ProcessingArray_Manager.addSoundResourceToPA( - "basicmachine.distillery", - SoundResource.GT_MACHINES_DISTILLERY_LOOP); + GT_ProcessingArray_Manager + .addSoundResourceToPA("basicmachine.distillery", SoundResource.GT_MACHINES_DISTILLERY_LOOP); // Electrolyzer - GT_ProcessingArray_Manager.addRecipeMapToPA( - "basicmachine.electrolyzer", - GT_Recipe_Map.sMultiblockElectrolyzerRecipes); - GT_ProcessingArray_Manager.addSoundResourceToPA( - "basicmachine.electrolyzer", - SoundResource.IC2_MACHINES_MAGNETIZER_LOOP); + GT_ProcessingArray_Manager + .addRecipeMapToPA("basicmachine.electrolyzer", GT_Recipe_Map.sMultiblockElectrolyzerRecipes); + GT_ProcessingArray_Manager + .addSoundResourceToPA("basicmachine.electrolyzer", SoundResource.IC2_MACHINES_MAGNETIZER_LOOP); // Extractor GT_ProcessingArray_Manager.addRecipeMapToPA("basicmachine.extractor", GT_Recipe_Map.sExtractorRecipes); - GT_ProcessingArray_Manager.addSoundResourceToPA( - "basicmachine.extractor", - SoundResource.IC2_MACHINES_EXTRACTOR_OP); + GT_ProcessingArray_Manager + .addSoundResourceToPA("basicmachine.extractor", SoundResource.IC2_MACHINES_EXTRACTOR_OP); // Extruder GT_ProcessingArray_Manager.addRecipeMapToPA("basicmachine.extruder", GT_Recipe_Map.sExtruderRecipes); - GT_ProcessingArray_Manager.addSoundResourceToPA( - "basicmachine.extruder", - SoundResource.IC2_MACHINES_INDUCTION_LOOP); + GT_ProcessingArray_Manager + .addSoundResourceToPA("basicmachine.extruder", SoundResource.IC2_MACHINES_INDUCTION_LOOP); // Fermenter GT_ProcessingArray_Manager.addRecipeMapToPA("basicmachine.fermenter", GT_Recipe_Map.sFermentingRecipes); GT_ProcessingArray_Manager.addSoundResourceToPA("basicmachine.fermenter", SoundResource.NONE); // Fluid Canner GT_ProcessingArray_Manager.addRecipeMapToPA("basicmachine.fluidcanner", GT_Recipe_Map.sFluidCannerRecipes); - GT_ProcessingArray_Manager.addSoundResourceToPA( - "basicmachine.fluidcanner", - SoundResource.IC2_MACHINES_EXTRACTOR_OP); + GT_ProcessingArray_Manager + .addSoundResourceToPA("basicmachine.fluidcanner", SoundResource.IC2_MACHINES_EXTRACTOR_OP); // Fluid Extractor - GT_ProcessingArray_Manager.addRecipeMapToPA( - "basicmachine.fluidextractor", - GT_Recipe_Map.sFluidExtractionRecipes); - GT_ProcessingArray_Manager.addSoundResourceToPA( - "basicmachine.fluidextractor", - SoundResource.IC2_MACHINES_EXTRACTOR_OP); + GT_ProcessingArray_Manager + .addRecipeMapToPA("basicmachine.fluidextractor", GT_Recipe_Map.sFluidExtractionRecipes); + GT_ProcessingArray_Manager + .addSoundResourceToPA("basicmachine.fluidextractor", SoundResource.IC2_MACHINES_EXTRACTOR_OP); // Fluid Heater GT_ProcessingArray_Manager.addRecipeMapToPA("basicmachine.fluidheater", GT_Recipe_Map.sFluidHeaterRecipes); GT_ProcessingArray_Manager.addSoundResourceToPA("basicmachine.fluidheater", SoundResource.NONE); // Fluid Solidifier - GT_ProcessingArray_Manager.addRecipeMapToPA( - "basicmachine.fluidsolidifier", - GT_Recipe_Map.sFluidSolidficationRecipes); + GT_ProcessingArray_Manager + .addRecipeMapToPA("basicmachine.fluidsolidifier", GT_Recipe_Map.sFluidSolidficationRecipes); GT_ProcessingArray_Manager.addSoundResourceToPA("basicmachine.fluidsolidifier", SoundResource.NONE); // Forge Hammer GT_ProcessingArray_Manager.addRecipeMapToPA("basicmachine.hammer", GT_Recipe_Map.sHammerRecipes); @@ -119,34 +102,28 @@ public class GT_ProcessingArrayRecipeLoader { GT_ProcessingArray_Manager.addSoundResourceToPA("basicmachine.press", SoundResource.IC2_MACHINES_COMPRESSOR_OP); // Laser Engraver GT_ProcessingArray_Manager.addRecipeMapToPA("basicmachine.laserengraver", GT_Recipe_Map.sLaserEngraverRecipes); - GT_ProcessingArray_Manager.addSoundResourceToPA( - "basicmachine.laserengraver", - SoundResource.IC2_MACHINES_MAGNETIZER_LOOP); + GT_ProcessingArray_Manager + .addSoundResourceToPA("basicmachine.laserengraver", SoundResource.IC2_MACHINES_MAGNETIZER_LOOP); // Lathe GT_ProcessingArray_Manager.addRecipeMapToPA("basicmachine.lathe", GT_Recipe_Map.sLatheRecipes); GT_ProcessingArray_Manager.addSoundResourceToPA("basicmachine.lathe", SoundResource.NONE); // Macerator GT_ProcessingArray_Manager.addRecipeMapToPA("basicmachine.macerator", GT_Recipe_Map.sMaceratorRecipes); - GT_ProcessingArray_Manager.addSoundResourceToPA( - "basicmachine.macerator", - SoundResource.IC2_MACHINES_MACERATOR_OP); + GT_ProcessingArray_Manager + .addSoundResourceToPA("basicmachine.macerator", SoundResource.IC2_MACHINES_MACERATOR_OP); // Magnetic Separator - GT_ProcessingArray_Manager.addRecipeMapToPA( - "basicmachine.electromagneticseparator", - GT_Recipe_Map.sElectroMagneticSeparatorRecipes); - GT_ProcessingArray_Manager.addSoundResourceToPA( - "basicmachine.electromagneticseparator", - SoundResource.IC2_MACHINES_MAGNETIZER_LOOP); + GT_ProcessingArray_Manager + .addRecipeMapToPA("basicmachine.electromagneticseparator", GT_Recipe_Map.sElectroMagneticSeparatorRecipes); + GT_ProcessingArray_Manager + .addSoundResourceToPA("basicmachine.electromagneticseparator", SoundResource.IC2_MACHINES_MAGNETIZER_LOOP); // Matter Amplifier GT_ProcessingArray_Manager.addRecipeMapToPA("basicmachine.amplifab", GT_Recipe_Map.sAmplifiers); - GT_ProcessingArray_Manager.addSoundResourceToPA( - "basicmachine.amplifab", - SoundResource.IC2_MACHINES_EXTRACTOR_OP); + GT_ProcessingArray_Manager + .addSoundResourceToPA("basicmachine.amplifab", SoundResource.IC2_MACHINES_EXTRACTOR_OP); // Microwave GT_ProcessingArray_Manager.addRecipeMapToPA("basicmachine.microwave", GT_Recipe_Map.sMicrowaveRecipes); - GT_ProcessingArray_Manager.addSoundResourceToPA( - "basicmachine.microwave", - SoundResource.IC2_MACHINES_ELECTROFURNACE_LOOP); + GT_ProcessingArray_Manager + .addSoundResourceToPA("basicmachine.microwave", SoundResource.IC2_MACHINES_ELECTROFURNACE_LOOP); // Mixer GT_ProcessingArray_Manager.addRecipeMapToPA("basicmachine.mixer", GT_Recipe_Map.sMultiblockMixerRecipes); GT_ProcessingArray_Manager.addSoundResourceToPA("basicmachine.mixer", SoundResource.NONE); @@ -154,32 +131,26 @@ public class GT_ProcessingArrayRecipeLoader { GT_ProcessingArray_Manager.addRecipeMapToPA("basicmachine.orewasher", GT_Recipe_Map.sOreWasherRecipes); GT_ProcessingArray_Manager.addSoundResourceToPA("basicmachine.orewasher", SoundResource.NONE); // Plasma Arc Furnace - GT_ProcessingArray_Manager.addRecipeMapToPA( - "basicmachine.plasmaarcfurnace", - GT_Recipe_Map.sPlasmaArcFurnaceRecipes); - GT_ProcessingArray_Manager.addSoundResourceToPA( - "basicmachine.plasmaarcfurnace", - SoundResource.IC2_MACHINES_INDUCTION_LOOP); + GT_ProcessingArray_Manager + .addRecipeMapToPA("basicmachine.plasmaarcfurnace", GT_Recipe_Map.sPlasmaArcFurnaceRecipes); + GT_ProcessingArray_Manager + .addSoundResourceToPA("basicmachine.plasmaarcfurnace", SoundResource.IC2_MACHINES_INDUCTION_LOOP); // Polarizer GT_ProcessingArray_Manager.addRecipeMapToPA("basicmachine.polarizer", GT_Recipe_Map.sPolarizerRecipes); - GT_ProcessingArray_Manager.addSoundResourceToPA( - "basicmachine.polarizer", - SoundResource.IC2_MACHINES_MAGNETIZER_LOOP); + GT_ProcessingArray_Manager + .addSoundResourceToPA("basicmachine.polarizer", SoundResource.IC2_MACHINES_MAGNETIZER_LOOP); // Printer GT_ProcessingArray_Manager.addRecipeMapToPA("basicmachine.printer", GT_Recipe_Map.sPrinterRecipes); - GT_ProcessingArray_Manager.addSoundResourceToPA( - "basicmachine.printer", - SoundResource.IC2_MACHINES_COMPRESSOR_OP); + GT_ProcessingArray_Manager + .addSoundResourceToPA("basicmachine.printer", SoundResource.IC2_MACHINES_COMPRESSOR_OP); // Recycler GT_ProcessingArray_Manager.addRecipeMapToPA("basicmachine.recycler", GT_Recipe_Map.sRecyclerRecipes); - GT_ProcessingArray_Manager.addSoundResourceToPA( - "basicmachine.recycler", - SoundResource.IC2_MACHINES_RECYCLER_OP); + GT_ProcessingArray_Manager + .addSoundResourceToPA("basicmachine.recycler", SoundResource.IC2_MACHINES_RECYCLER_OP); // Scanner GT_ProcessingArray_Manager.addRecipeMapToPA("basicmachine.scanner", GT_Recipe_Map.sScannerFakeRecipes); - GT_ProcessingArray_Manager.addSoundResourceToPA( - "basicmachine.scanner", - SoundResource.IC2_MACHINES_MAGNETIZER_LOOP); + GT_ProcessingArray_Manager + .addSoundResourceToPA("basicmachine.scanner", SoundResource.IC2_MACHINES_MAGNETIZER_LOOP); // Sifter GT_ProcessingArray_Manager.addRecipeMapToPA("basicmachine.sifter", GT_Recipe_Map.sSifterRecipes); GT_ProcessingArray_Manager.addSoundResourceToPA("basicmachine.sifter", SoundResource.NONE); @@ -187,17 +158,15 @@ public class GT_ProcessingArrayRecipeLoader { GT_ProcessingArray_Manager.addRecipeMapToPA("basicmachine.slicer", GT_Recipe_Map.sSlicerRecipes); GT_ProcessingArray_Manager.addSoundResourceToPA("basicmachine.slicer", SoundResource.NONE); // Thermal Centrifuge - GT_ProcessingArray_Manager.addRecipeMapToPA( - "basicmachine.thermalcentrifuge", - GT_Recipe_Map.sThermalCentrifugeRecipes); + GT_ProcessingArray_Manager + .addRecipeMapToPA("basicmachine.thermalcentrifuge", GT_Recipe_Map.sThermalCentrifugeRecipes); GT_ProcessingArray_Manager.addSoundResourceToPA("basicmachine.thermalcentrifuge", SoundResource.NONE); // Unboxinator GT_ProcessingArray_Manager.addRecipeMapToPA("basicmachine.unboxinator", GT_Recipe_Map.sUnboxinatorRecipes); GT_ProcessingArray_Manager.addSoundResourceToPA("basicmachine.unboxinator", SoundResource.NONE); // Wiremill GT_ProcessingArray_Manager.addRecipeMapToPA("basicmachine.wiremill", GT_Recipe_Map.sWiremillRecipes); - GT_ProcessingArray_Manager.addSoundResourceToPA( - "basicmachine.wiremill", - SoundResource.IC2_MACHINES_RECYCLER_OP); + GT_ProcessingArray_Manager + .addSoundResourceToPA("basicmachine.wiremill", SoundResource.IC2_MACHINES_RECYCLER_OP); } } diff --git a/src/main/java/gregtech/loaders/postload/GT_RecyclerBlacklistLoader.java b/src/main/java/gregtech/loaders/postload/GT_RecyclerBlacklistLoader.java index aab5f0ac55..45635b9902 100644 --- a/src/main/java/gregtech/loaders/postload/GT_RecyclerBlacklistLoader.java +++ b/src/main/java/gregtech/loaders/postload/GT_RecyclerBlacklistLoader.java @@ -30,16 +30,8 @@ public class GT_RecyclerBlacklistLoader implements Runnable { ItemStack tStack = new ItemStack(Blocks.cobblestone, 1, 0); while (tStack != null) { GT_ModHandler.addToRecyclerBlackList(tStack); - tStack = GT_ModHandler.getRecipeOutput( - tStack, - tStack, - tStack, - tStack, - tStack, - tStack, - tStack, - tStack, - tStack); + tStack = GT_ModHandler + .getRecipeOutput(tStack, tStack, tStack, tStack, tStack, tStack, tStack, tStack, tStack); } GT_ModHandler.addToRecyclerBlackList(new ItemStack(Blocks.gravel, 1, 32767)); GT_ModHandler.addToRecyclerBlackList(new ItemStack(Items.flint, 1, 32767)); @@ -48,65 +40,57 @@ public class GT_RecyclerBlacklistLoader implements Runnable { GT_ModHandler.addToRecyclerBlackList(new ItemStack(Blocks.stone_stairs, 1, 32767)); GT_ModHandler.addToRecyclerBlackList(new ItemStack(Blocks.stone_brick_stairs, 1, 32767)); GT_ModHandler.addToRecyclerBlackList( - GT_ModHandler.getSmeltingOutput(new ItemStack(Blocks.stone, 1, 0), false, null)); + GT_ModHandler.getSmeltingOutput(new ItemStack(Blocks.stone, 1, 0), false, null)); GT_ModHandler.addToRecyclerBlackList( - GT_ModHandler.getRecipeOutput( - new ItemStack(Blocks.glass, 1, 0), - null, - null, - new ItemStack(Blocks.glass, 1, 0))); + GT_ModHandler + .getRecipeOutput(new ItemStack(Blocks.glass, 1, 0), null, null, new ItemStack(Blocks.glass, 1, 0))); GT_ModHandler.addToRecyclerBlackList( - GT_ModHandler.getRecipeOutput( - new ItemStack(Blocks.stone, 1, 0), - null, - null, - new ItemStack(Blocks.stone, 1, 0))); + GT_ModHandler + .getRecipeOutput(new ItemStack(Blocks.stone, 1, 0), null, null, new ItemStack(Blocks.stone, 1, 0))); GT_ModHandler.addToRecyclerBlackList( - GT_ModHandler.getRecipeOutput( - new ItemStack(Blocks.cobblestone, 1, 0), - null, - null, - new ItemStack(Blocks.cobblestone, 1, 0))); + GT_ModHandler.getRecipeOutput( + new ItemStack(Blocks.cobblestone, 1, 0), + null, + null, + new ItemStack(Blocks.cobblestone, 1, 0))); GT_ModHandler.addToRecyclerBlackList( - GT_ModHandler.getRecipeOutput( - new ItemStack(Blocks.stone, 1, 0), - null, - new ItemStack(Blocks.stone, 1, 0), - null, - new ItemStack(Blocks.stone, 1, 0))); + GT_ModHandler.getRecipeOutput( + new ItemStack(Blocks.stone, 1, 0), + null, + new ItemStack(Blocks.stone, 1, 0), + null, + new ItemStack(Blocks.stone, 1, 0))); GT_ModHandler.addToRecyclerBlackList( - GT_ModHandler.getRecipeOutput( - new ItemStack(Blocks.stone, 1, 0), - new ItemStack(Blocks.glass, 1, 0), - new ItemStack(Blocks.stone, 1, 0))); + GT_ModHandler.getRecipeOutput( + new ItemStack(Blocks.stone, 1, 0), + new ItemStack(Blocks.glass, 1, 0), + new ItemStack(Blocks.stone, 1, 0))); GT_ModHandler.addToRecyclerBlackList( - GT_ModHandler.getRecipeOutput( - new ItemStack(Blocks.cobblestone, 1, 0), - new ItemStack(Blocks.glass, 1, 0), - new ItemStack(Blocks.cobblestone, 1, 0))); + GT_ModHandler.getRecipeOutput( + new ItemStack(Blocks.cobblestone, 1, 0), + new ItemStack(Blocks.glass, 1, 0), + new ItemStack(Blocks.cobblestone, 1, 0))); GT_ModHandler.addToRecyclerBlackList( - GT_ModHandler.getRecipeOutput( - new ItemStack(Blocks.sandstone, 1, 0), - new ItemStack(Blocks.glass, 1, 0), - new ItemStack(Blocks.sandstone, 1, 0))); + GT_ModHandler.getRecipeOutput( + new ItemStack(Blocks.sandstone, 1, 0), + new ItemStack(Blocks.glass, 1, 0), + new ItemStack(Blocks.sandstone, 1, 0))); GT_ModHandler.addToRecyclerBlackList( - GT_ModHandler.getRecipeOutput( - new ItemStack(Blocks.sand, 1, 0), - new ItemStack(Blocks.glass, 1, 0), - new ItemStack(Blocks.sand, 1, 0))); + GT_ModHandler.getRecipeOutput( + new ItemStack(Blocks.sand, 1, 0), + new ItemStack(Blocks.glass, 1, 0), + new ItemStack(Blocks.sand, 1, 0))); GT_ModHandler.addToRecyclerBlackList( - GT_ModHandler.getRecipeOutput( - new ItemStack(Blocks.sandstone, 1, 0), - new ItemStack(Blocks.sandstone, 1, 0), - new ItemStack(Blocks.sandstone, 1, 0), - new ItemStack(Blocks.sandstone, 1, 0), - new ItemStack(Blocks.sandstone, 1, 0), - new ItemStack(Blocks.sandstone, 1, 0))); + GT_ModHandler.getRecipeOutput( + new ItemStack(Blocks.sandstone, 1, 0), + new ItemStack(Blocks.sandstone, 1, 0), + new ItemStack(Blocks.sandstone, 1, 0), + new ItemStack(Blocks.sandstone, 1, 0), + new ItemStack(Blocks.sandstone, 1, 0), + new ItemStack(Blocks.sandstone, 1, 0))); GT_ModHandler.addToRecyclerBlackList(GT_ModHandler.getRecipeOutput(new ItemStack(Blocks.glass, 1, 0))); GT_ModHandler.addToRecyclerBlackList( - GT_ModHandler.getRecipeOutput( - new ItemStack(Blocks.glass, 1, 0), - new ItemStack(Blocks.glass, 1, 0))); + GT_ModHandler.getRecipeOutput(new ItemStack(Blocks.glass, 1, 0), new ItemStack(Blocks.glass, 1, 0))); } } } diff --git a/src/main/java/gregtech/loaders/postload/GT_Worldgenloader.java b/src/main/java/gregtech/loaders/postload/GT_Worldgenloader.java index 19d03c7f4c..b486f9d6c7 100644 --- a/src/main/java/gregtech/loaders/postload/GT_Worldgenloader.java +++ b/src/main/java/gregtech/loaders/postload/GT_Worldgenloader.java @@ -18,1616 +18,1616 @@ public class GT_Worldgenloader implements Runnable { new GT_Worldgenerator(); new GT_Worldgen_Stone( - "overworld.stone.blackgranite.tiny", - true, - GregTech_API.sBlockGranites, - 0, - 0, - 1, - 75, - 5, - 0, - 180, - null, - false); + "overworld.stone.blackgranite.tiny", + true, + GregTech_API.sBlockGranites, + 0, + 0, + 1, + 75, + 5, + 0, + 180, + null, + false); new GT_Worldgen_Stone( - "overworld.stone.blackgranite.small", - true, - GregTech_API.sBlockGranites, - 0, - 0, - 1, - 100, - 10, - 0, - 180, - null, - false); + "overworld.stone.blackgranite.small", + true, + GregTech_API.sBlockGranites, + 0, + 0, + 1, + 100, + 10, + 0, + 180, + null, + false); new GT_Worldgen_Stone( - "overworld.stone.blackgranite.medium", - true, - GregTech_API.sBlockGranites, - 0, - 0, - 1, - 200, - 10, - 0, - 180, - null, - false); + "overworld.stone.blackgranite.medium", + true, + GregTech_API.sBlockGranites, + 0, + 0, + 1, + 200, + 10, + 0, + 180, + null, + false); new GT_Worldgen_Stone( - "overworld.stone.blackgranite.large", - true, - GregTech_API.sBlockGranites, - 0, - 0, - 1, - 300, - 70, - 0, - 120, - null, - false); + "overworld.stone.blackgranite.large", + true, + GregTech_API.sBlockGranites, + 0, + 0, + 1, + 300, + 70, + 0, + 120, + null, + false); new GT_Worldgen_Stone( - "overworld.stone.blackgranite.huge", - true, - GregTech_API.sBlockGranites, - 0, - 0, - 1, - 400, - 150, - 0, - 120, - null, - false); + "overworld.stone.blackgranite.huge", + true, + GregTech_API.sBlockGranites, + 0, + 0, + 1, + 400, + 150, + 0, + 120, + null, + false); new GT_Worldgen_Stone( - "overworld.stone.redgranite.tiny", - true, - GregTech_API.sBlockGranites, - 8, - 0, - 1, - 75, - 5, - 0, - 180, - null, - false); + "overworld.stone.redgranite.tiny", + true, + GregTech_API.sBlockGranites, + 8, + 0, + 1, + 75, + 5, + 0, + 180, + null, + false); new GT_Worldgen_Stone( - "overworld.stone.redgranite.small", - true, - GregTech_API.sBlockGranites, - 8, - 0, - 1, - 100, - 10, - 0, - 180, - null, - false); + "overworld.stone.redgranite.small", + true, + GregTech_API.sBlockGranites, + 8, + 0, + 1, + 100, + 10, + 0, + 180, + null, + false); new GT_Worldgen_Stone( - "overworld.stone.redgranite.medium", - true, - GregTech_API.sBlockGranites, - 8, - 0, - 1, - 200, - 10, - 0, - 180, - null, - false); + "overworld.stone.redgranite.medium", + true, + GregTech_API.sBlockGranites, + 8, + 0, + 1, + 200, + 10, + 0, + 180, + null, + false); new GT_Worldgen_Stone( - "overworld.stone.redgranite.large", - true, - GregTech_API.sBlockGranites, - 8, - 0, - 1, - 300, - 70, - 0, - 120, - null, - false); + "overworld.stone.redgranite.large", + true, + GregTech_API.sBlockGranites, + 8, + 0, + 1, + 300, + 70, + 0, + 120, + null, + false); new GT_Worldgen_Stone( - "overworld.stone.redgranite.huge", - true, - GregTech_API.sBlockGranites, - 8, - 0, - 1, - 400, - 150, - 0, - 120, - null, - false); + "overworld.stone.redgranite.huge", + true, + GregTech_API.sBlockGranites, + 8, + 0, + 1, + 400, + 150, + 0, + 120, + null, + false); new GT_Worldgen_Stone( - "overworld.stone.marble.tiny", - true, - GregTech_API.sBlockStones, - 0, - 0, - 1, - 75, - 5, - 0, - 180, - null, - false); + "overworld.stone.marble.tiny", + true, + GregTech_API.sBlockStones, + 0, + 0, + 1, + 75, + 5, + 0, + 180, + null, + false); new GT_Worldgen_Stone( - "overworld.stone.marble.small", - true, - GregTech_API.sBlockStones, - 0, - 0, - 1, - 100, - 10, - 0, - 180, - null, - false); + "overworld.stone.marble.small", + true, + GregTech_API.sBlockStones, + 0, + 0, + 1, + 100, + 10, + 0, + 180, + null, + false); new GT_Worldgen_Stone( - "overworld.stone.marble.medium", - true, - GregTech_API.sBlockStones, - 0, - 0, - 1, - 200, - 10, - 0, - 180, - null, - false); + "overworld.stone.marble.medium", + true, + GregTech_API.sBlockStones, + 0, + 0, + 1, + 200, + 10, + 0, + 180, + null, + false); new GT_Worldgen_Stone( - "overworld.stone.marble.large", - true, - GregTech_API.sBlockStones, - 0, - 0, - 1, - 300, - 70, - 0, - 120, - null, - false); + "overworld.stone.marble.large", + true, + GregTech_API.sBlockStones, + 0, + 0, + 1, + 300, + 70, + 0, + 120, + null, + false); new GT_Worldgen_Stone( - "overworld.stone.marble.huge", - true, - GregTech_API.sBlockStones, - 0, - 0, - 1, - 400, - 150, - 0, - 120, - null, - false); + "overworld.stone.marble.huge", + true, + GregTech_API.sBlockStones, + 0, + 0, + 1, + 400, + 150, + 0, + 120, + null, + false); new GT_Worldgen_Stone( - "overworld.stone.basalt.tiny", - true, - GregTech_API.sBlockStones, - 8, - 0, - 1, - 75, - 5, - 0, - 180, - null, - false); + "overworld.stone.basalt.tiny", + true, + GregTech_API.sBlockStones, + 8, + 0, + 1, + 75, + 5, + 0, + 180, + null, + false); new GT_Worldgen_Stone( - "overworld.stone.basalt.small", - true, - GregTech_API.sBlockStones, - 8, - 0, - 1, - 100, - 10, - 0, - 180, - null, - false); + "overworld.stone.basalt.small", + true, + GregTech_API.sBlockStones, + 8, + 0, + 1, + 100, + 10, + 0, + 180, + null, + false); new GT_Worldgen_Stone( - "overworld.stone.basalt.medium", - true, - GregTech_API.sBlockStones, - 8, - 0, - 1, - 200, - 10, - 0, - 180, - null, - false); + "overworld.stone.basalt.medium", + true, + GregTech_API.sBlockStones, + 8, + 0, + 1, + 200, + 10, + 0, + 180, + null, + false); new GT_Worldgen_Stone( - "overworld.stone.basalt.large", - true, - GregTech_API.sBlockStones, - 8, - 0, - 1, - 300, - 70, - 0, - 120, - null, - false); + "overworld.stone.basalt.large", + true, + GregTech_API.sBlockStones, + 8, + 0, + 1, + 300, + 70, + 0, + 120, + null, + false); new GT_Worldgen_Stone( - "overworld.stone.basalt.huge", - true, - GregTech_API.sBlockStones, - 8, - 0, - 1, - 400, - 150, - 0, - 120, - null, - false); + "overworld.stone.basalt.huge", + true, + GregTech_API.sBlockStones, + 8, + 0, + 1, + 400, + 150, + 0, + 120, + null, + false); new GT_Worldgen_Stone( - "nether.stone.blackgranite.tiny", - false, - GregTech_API.sBlockGranites, - 0, - -1, - 1, - 50, - 45, - 0, - 120, - null, - false); + "nether.stone.blackgranite.tiny", + false, + GregTech_API.sBlockGranites, + 0, + -1, + 1, + 50, + 45, + 0, + 120, + null, + false); new GT_Worldgen_Stone( - "nether.stone.blackgranite.small", - false, - GregTech_API.sBlockGranites, - 0, - -1, - 1, - 100, - 60, - 0, - 120, - null, - false); + "nether.stone.blackgranite.small", + false, + GregTech_API.sBlockGranites, + 0, + -1, + 1, + 100, + 60, + 0, + 120, + null, + false); new GT_Worldgen_Stone( - "nether.stone.blackgranite.medium", - false, - GregTech_API.sBlockGranites, - 0, - -1, - 1, - 200, - 80, - 0, - 120, - null, - false); + "nether.stone.blackgranite.medium", + false, + GregTech_API.sBlockGranites, + 0, + -1, + 1, + 200, + 80, + 0, + 120, + null, + false); new GT_Worldgen_Stone( - "nether.stone.blackgranite.large", - false, - GregTech_API.sBlockGranites, - 0, - -1, - 1, - 300, - 70, - 0, - 120, - null, - false); + "nether.stone.blackgranite.large", + false, + GregTech_API.sBlockGranites, + 0, + -1, + 1, + 300, + 70, + 0, + 120, + null, + false); new GT_Worldgen_Stone( - "nether.stone.blackgranite.huge", - false, - GregTech_API.sBlockGranites, - 0, - -1, - 1, - 400, - 150, - 0, - 120, - null, - false); + "nether.stone.blackgranite.huge", + false, + GregTech_API.sBlockGranites, + 0, + -1, + 1, + 400, + 150, + 0, + 120, + null, + false); new GT_Worldgen_Stone( - "nether.stone.redgranite.tiny", - false, - GregTech_API.sBlockGranites, - 8, - -1, - 1, - 50, - 45, - 0, - 120, - null, - false); + "nether.stone.redgranite.tiny", + false, + GregTech_API.sBlockGranites, + 8, + -1, + 1, + 50, + 45, + 0, + 120, + null, + false); new GT_Worldgen_Stone( - "nether.stone.redgranite.small", - false, - GregTech_API.sBlockGranites, - 8, - -1, - 1, - 100, - 60, - 0, - 120, - null, - false); + "nether.stone.redgranite.small", + false, + GregTech_API.sBlockGranites, + 8, + -1, + 1, + 100, + 60, + 0, + 120, + null, + false); new GT_Worldgen_Stone( - "nether.stone.redgranite.medium", - false, - GregTech_API.sBlockGranites, - 8, - -1, - 1, - 200, - 80, - 0, - 120, - null, - false); + "nether.stone.redgranite.medium", + false, + GregTech_API.sBlockGranites, + 8, + -1, + 1, + 200, + 80, + 0, + 120, + null, + false); new GT_Worldgen_Stone( - "nether.stone.redgranite.large", - false, - GregTech_API.sBlockGranites, - 8, - -1, - 1, - 300, - 70, - 0, - 120, - null, - false); + "nether.stone.redgranite.large", + false, + GregTech_API.sBlockGranites, + 8, + -1, + 1, + 300, + 70, + 0, + 120, + null, + false); new GT_Worldgen_Stone( - "nether.stone.redgranite.huge", - false, - GregTech_API.sBlockGranites, - 8, - -1, - 1, - 400, - 150, - 0, - 120, - null, - false); + "nether.stone.redgranite.huge", + false, + GregTech_API.sBlockGranites, + 8, + -1, + 1, + 400, + 150, + 0, + 120, + null, + false); new GT_Worldgen_Stone( - "nether.stone.marble.tiny", - false, - GregTech_API.sBlockStones, - 0, - -1, - 1, - 50, - 45, - 0, - 120, - null, - false); + "nether.stone.marble.tiny", + false, + GregTech_API.sBlockStones, + 0, + -1, + 1, + 50, + 45, + 0, + 120, + null, + false); new GT_Worldgen_Stone( - "nether.stone.marble.small", - false, - GregTech_API.sBlockStones, - 0, - -1, - 1, - 100, - 60, - 0, - 120, - null, - false); + "nether.stone.marble.small", + false, + GregTech_API.sBlockStones, + 0, + -1, + 1, + 100, + 60, + 0, + 120, + null, + false); new GT_Worldgen_Stone( - "nether.stone.marble.medium", - false, - GregTech_API.sBlockStones, - 0, - -1, - 1, - 200, - 80, - 0, - 120, - null, - false); + "nether.stone.marble.medium", + false, + GregTech_API.sBlockStones, + 0, + -1, + 1, + 200, + 80, + 0, + 120, + null, + false); new GT_Worldgen_Stone( - "nether.stone.marble.large", - false, - GregTech_API.sBlockStones, - 0, - -1, - 1, - 300, - 70, - 0, - 120, - null, - false); + "nether.stone.marble.large", + false, + GregTech_API.sBlockStones, + 0, + -1, + 1, + 300, + 70, + 0, + 120, + null, + false); new GT_Worldgen_Stone( - "nether.stone.marble.huge", - false, - GregTech_API.sBlockStones, - 0, - -1, - 1, - 400, - 150, - 0, - 120, - null, - false); + "nether.stone.marble.huge", + false, + GregTech_API.sBlockStones, + 0, + -1, + 1, + 400, + 150, + 0, + 120, + null, + false); new GT_Worldgen_Stone( - "nether.stone.basalt.tiny", - false, - GregTech_API.sBlockStones, - 8, - -1, - 1, - 50, - 45, - 0, - 120, - null, - false); + "nether.stone.basalt.tiny", + false, + GregTech_API.sBlockStones, + 8, + -1, + 1, + 50, + 45, + 0, + 120, + null, + false); new GT_Worldgen_Stone( - "nether.stone.basalt.small", - false, - GregTech_API.sBlockStones, - 8, - -1, - 1, - 100, - 60, - 0, - 120, - null, - false); + "nether.stone.basalt.small", + false, + GregTech_API.sBlockStones, + 8, + -1, + 1, + 100, + 60, + 0, + 120, + null, + false); new GT_Worldgen_Stone( - "nether.stone.basalt.medium", - false, - GregTech_API.sBlockStones, - 8, - -1, - 1, - 200, - 80, - 0, - 120, - null, - false); + "nether.stone.basalt.medium", + false, + GregTech_API.sBlockStones, + 8, + -1, + 1, + 200, + 80, + 0, + 120, + null, + false); new GT_Worldgen_Stone( - "nether.stone.basalt.large", - false, - GregTech_API.sBlockStones, - 8, - -1, - 1, - 300, - 70, - 0, - 120, - null, - false); + "nether.stone.basalt.large", + false, + GregTech_API.sBlockStones, + 8, + -1, + 1, + 300, + 70, + 0, + 120, + null, + false); new GT_Worldgen_Stone( - "nether.stone.basalt.huge", - false, - GregTech_API.sBlockStones, - 8, - -1, - 1, - 400, - 150, - 0, - 120, - null, - false); + "nether.stone.basalt.huge", + false, + GregTech_API.sBlockStones, + 8, + -1, + 1, + 400, + 150, + 0, + 120, + null, + false); // GT Default Small Ores new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.copper", - true, - 60, - 180, - 32, - true, - true, - true, - true, - true, - false, - Materials.Copper); + "ore.small.copper", + true, + 60, + 180, + 32, + true, + true, + true, + true, + true, + false, + Materials.Copper); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.tin", - true, - 80, - 220, - 32, - true, - true, - true, - true, - true, - true, - Materials.Tin); + "ore.small.tin", + true, + 80, + 220, + 32, + true, + true, + true, + true, + true, + true, + Materials.Tin); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.bismuth", - true, - 80, - 120, - 8, - false, - true, - false, - true, - true, - false, - Materials.Bismuth); + "ore.small.bismuth", + true, + 80, + 120, + 8, + false, + true, + false, + true, + true, + false, + Materials.Bismuth); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.coal", - true, - 120, - 250, - 24, - true, - false, - false, - false, - false, - false, - Materials.Coal); + "ore.small.coal", + true, + 120, + 250, + 24, + true, + false, + false, + false, + false, + false, + Materials.Coal); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.iron", - true, - 40, - 100, - 16, - true, - true, - true, - true, - true, - false, - Materials.Iron); + "ore.small.iron", + true, + 40, + 100, + 16, + true, + true, + true, + true, + true, + false, + Materials.Iron); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.lead", - true, - 40, - 180, - 16, - false, - true, - true, - true, - true, - true, - Materials.Lead); + "ore.small.lead", + true, + 40, + 180, + 16, + false, + true, + true, + true, + true, + true, + Materials.Lead); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.zinc", - true, - 80, - 210, - 24, - true, - true, - true, - true, - true, - false, - Materials.Zinc); + "ore.small.zinc", + true, + 80, + 210, + 24, + true, + true, + true, + true, + true, + false, + Materials.Zinc); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.gold", - true, - 20, - 60, - 8, - true, - false, - true, - true, - true, - true, - Materials.Gold); + "ore.small.gold", + true, + 20, + 60, + 8, + true, + false, + true, + true, + true, + true, + Materials.Gold); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.silver", - true, - 20, - 60, - 20, - true, - true, - true, - true, - true, - true, - Materials.Silver); + "ore.small.silver", + true, + 20, + 60, + 20, + true, + true, + true, + true, + true, + true, + Materials.Silver); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.nickel", - true, - 80, - 150, - 8, - true, - false, - true, - true, - true, - true, - Materials.Nickel); + "ore.small.nickel", + true, + 80, + 150, + 8, + true, + false, + true, + true, + true, + true, + Materials.Nickel); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.lapis", - true, - 10, - 50, - 4, - true, - false, - false, - true, - false, - true, - Materials.Lapis); + "ore.small.lapis", + true, + 10, + 50, + 4, + true, + false, + false, + true, + false, + true, + Materials.Lapis); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.diamond", - true, - 5, - 15, - 2, - true, - false, - false, - true, - true, - true, - Materials.Diamond); + "ore.small.diamond", + true, + 5, + 15, + 2, + true, + false, + false, + true, + true, + true, + Materials.Diamond); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.emerald", - true, - 5, - 35, - 2, - false, - false, - false, - false, - true, - true, - Materials.Emerald); + "ore.small.emerald", + true, + 5, + 35, + 2, + false, + false, + false, + false, + true, + true, + Materials.Emerald); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.ruby", - true, - 5, - 35, - 2, - false, - false, - false, - false, - true, - true, - Materials.Ruby); + "ore.small.ruby", + true, + 5, + 35, + 2, + false, + false, + false, + false, + true, + true, + Materials.Ruby); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.sapphire", - true, - 5, - 35, - 2, - false, - false, - false, - false, - true, - true, - Materials.Sapphire); + "ore.small.sapphire", + true, + 5, + 35, + 2, + false, + false, + false, + false, + true, + true, + Materials.Sapphire); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.greensapphire", - true, - 5, - 35, - 2, - false, - false, - false, - false, - true, - true, - Materials.GreenSapphire); + "ore.small.greensapphire", + true, + 5, + 35, + 2, + false, + false, + false, + false, + true, + true, + Materials.GreenSapphire); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.olivine", - true, - 5, - 35, - 2, - false, - false, - false, - false, - true, - true, - Materials.Olivine); + "ore.small.olivine", + true, + 5, + 35, + 2, + false, + false, + false, + false, + true, + true, + Materials.Olivine); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.topaz", - true, - 5, - 35, - 2, - false, - false, - false, - false, - true, - true, - Materials.Topaz); + "ore.small.topaz", + true, + 5, + 35, + 2, + false, + false, + false, + false, + true, + true, + Materials.Topaz); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.tanzanite", - true, - 5, - 35, - 2, - false, - false, - false, - false, - true, - true, - Materials.Tanzanite); + "ore.small.tanzanite", + true, + 5, + 35, + 2, + false, + false, + false, + false, + true, + true, + Materials.Tanzanite); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.amethyst", - true, - 5, - 35, - 2, - false, - false, - false, - false, - true, - true, - Materials.Amethyst); + "ore.small.amethyst", + true, + 5, + 35, + 2, + false, + false, + false, + false, + true, + true, + Materials.Amethyst); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.opal", - true, - 5, - 35, - 2, - false, - false, - false, - false, - true, - true, - Materials.Opal); + "ore.small.opal", + true, + 5, + 35, + 2, + false, + false, + false, + false, + true, + true, + Materials.Opal); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.jasper", - true, - 5, - 35, - 2, - false, - false, - false, - false, - true, - true, - Materials.Jasper); + "ore.small.jasper", + true, + 5, + 35, + 2, + false, + false, + false, + false, + true, + true, + Materials.Jasper); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.bluetopaz", - true, - 5, - 35, - 2, - false, - false, - false, - false, - true, - true, - Materials.BlueTopaz); + "ore.small.bluetopaz", + true, + 5, + 35, + 2, + false, + false, + false, + false, + true, + true, + Materials.BlueTopaz); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.amber", - true, - 5, - 35, - 2, - false, - false, - false, - false, - true, - true, - Materials.Amber); + "ore.small.amber", + true, + 5, + 35, + 2, + false, + false, + false, + false, + true, + true, + Materials.Amber); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.foolsruby", - true, - 5, - 35, - 2, - false, - false, - false, - false, - true, - true, - Materials.FoolsRuby); + "ore.small.foolsruby", + true, + 5, + 35, + 2, + false, + false, + false, + false, + true, + true, + Materials.FoolsRuby); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.garnetred", - true, - 5, - 35, - 2, - false, - false, - false, - false, - true, - true, - Materials.GarnetRed); + "ore.small.garnetred", + true, + 5, + 35, + 2, + false, + false, + false, + false, + true, + true, + Materials.GarnetRed); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.garnetyellow", - true, - 5, - 35, - 2, - false, - false, - false, - false, - true, - true, - Materials.GarnetYellow); + "ore.small.garnetyellow", + true, + 5, + 35, + 2, + false, + false, + false, + false, + true, + true, + Materials.GarnetYellow); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.redstone", - true, - 5, - 25, - 8, - true, - true, - false, - true, - true, - true, - Materials.Redstone); + "ore.small.redstone", + true, + 5, + 25, + 8, + true, + true, + false, + true, + true, + true, + Materials.Redstone); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.netherquartz", - true, - 30, - 120, - 64, - false, - true, - false, - false, - false, - false, - Materials.NetherQuartz); + "ore.small.netherquartz", + true, + 30, + 120, + 64, + false, + true, + false, + false, + false, + false, + Materials.NetherQuartz); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.saltpeter", - true, - 10, - 60, - 8, - false, - true, - false, - false, - false, - false, - Materials.Saltpeter); + "ore.small.saltpeter", + true, + 10, + 60, + 8, + false, + true, + false, + false, + false, + false, + Materials.Saltpeter); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.sulfur", - true, - 5, - 60, - 40, - false, - true, - false, - false, - false, - false, - Materials.Sulfur); + "ore.small.sulfur", + true, + 5, + 60, + 40, + false, + true, + false, + false, + false, + false, + Materials.Sulfur); // TODO: GTNH Custom Small Ores new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.titanium", - true, - 10, - 180, - 32, - false, - false, - false, - Materials.Titanium); + "ore.small.titanium", + true, + 10, + 180, + 32, + false, + false, + false, + Materials.Titanium); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.tungsten", - true, - 10, - 120, - 16, - false, - false, - false, - Materials.Tungsten); + "ore.small.tungsten", + true, + 10, + 120, + 16, + false, + false, + false, + Materials.Tungsten); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.meteoriciron", - true, - 50, - 70, - 8, - false, - false, - false, - Materials.MeteoricIron); + "ore.small.meteoriciron", + true, + 50, + 70, + 8, + false, + false, + false, + Materials.MeteoricIron); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.firestone", - true, - 5, - 15, - 2, - false, - false, - false, - Materials.Firestone); + "ore.small.firestone", + true, + 5, + 15, + 2, + false, + false, + false, + Materials.Firestone); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.neutronium", - true, - 5, - 15, - 8, - false, - false, - false, - Materials.Neutronium); + "ore.small.neutronium", + true, + 5, + 15, + 8, + false, + false, + false, + Materials.Neutronium); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.chromite", - true, - 20, - 40, - 8, - false, - false, - false, - Materials.Chromite); + "ore.small.chromite", + true, + 20, + 40, + 8, + false, + false, + false, + Materials.Chromite); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.tungstate", - true, - 20, - 40, - 8, - false, - false, - false, - Materials.Tungstate); + "ore.small.tungstate", + true, + 20, + 40, + 8, + false, + false, + false, + Materials.Tungstate); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.naquadah", - true, - 5, - 25, - 8, - false, - false, - false, - Materials.Naquadah); + "ore.small.naquadah", + true, + 5, + 25, + 8, + false, + false, + false, + Materials.Naquadah); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.quantium", - true, - 5, - 25, - 6, - false, - false, - false, - Materials.Quantium); + "ore.small.quantium", + true, + 5, + 25, + 6, + false, + false, + false, + Materials.Quantium); new GT_Worldgen_GT_Ore_SmallPieces("ore.small.mythril", true, 5, 25, 6, false, false, false, Materials.Mytryl); new GT_Worldgen_GT_Ore_SmallPieces("ore.small.ledox", true, 40, 60, 4, false, false, false, Materials.Ledox); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.oriharukon", - true, - 20, - 40, - 6, - false, - false, - false, - Materials.Oriharukon); + "ore.small.oriharukon", + true, + 20, + 40, + 6, + false, + false, + false, + Materials.Oriharukon); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.draconium", - true, - 5, - 15, - 4, - false, - false, - false, - Materials.Draconium); + "ore.small.draconium", + true, + 5, + 15, + 4, + false, + false, + false, + Materials.Draconium); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.awdraconium", - true, - 5, - 15, - 2, - false, - false, - false, - Materials.DraconiumAwakened); + "ore.small.awdraconium", + true, + 5, + 15, + 2, + false, + false, + false, + Materials.DraconiumAwakened); new GT_Worldgen_GT_Ore_SmallPieces("ore.small.desh", true, 10, 30, 6, false, false, false, Materials.Desh); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.blackplutonium", - true, - 25, - 45, - 6, - false, - false, - false, - Materials.BlackPlutonium); + "ore.small.blackplutonium", + true, + 25, + 45, + 6, + false, + false, + false, + Materials.BlackPlutonium); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.infinitycatalyst", - true, - 40, - 80, - 6, - false, - false, - false, - Materials.InfinityCatalyst); + "ore.small.infinitycatalyst", + true, + 40, + 80, + 6, + false, + false, + false, + Materials.InfinityCatalyst); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.infinity", - true, - 2, - 40, - 2, - false, - false, - false, - Materials.Infinity); + "ore.small.infinity", + true, + 2, + 40, + 2, + false, + false, + false, + Materials.Infinity); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.bedrockium", - true, - 5, - 25, - 6, - false, - false, - false, - Materials.Bedrockium); + "ore.small.bedrockium", + true, + 5, + 25, + 6, + false, + false, + false, + Materials.Bedrockium); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.realgar", - true, - 15, - 85, - 32, - false, - true, - false, - Materials.Realgar); + "ore.small.realgar", + true, + 15, + 85, + 32, + false, + true, + false, + Materials.Realgar); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.certusquartz", - true, - 5, - 115, - 16, - false, - true, - false, - Materials.CertusQuartz); + "ore.small.certusquartz", + true, + 5, + 115, + 16, + false, + true, + false, + Materials.CertusQuartz); new GT_Worldgen_GT_Ore_SmallPieces("ore.small.jade", true, 5, 35, 2, false, false, false, Materials.Jade); new GT_Worldgen_GT_Ore_SmallPieces( - "ore.small.deepiron", - true, - 5, - 40, - 8, - false, - false, - false, - Materials.DeepIron); + "ore.small.deepiron", + true, + 5, + 40, + 8, + false, + false, + false, + Materials.DeepIron); // GT Default Veins new GT_Worldgen_GT_Ore_Layer( - "ore.mix.naquadah", - true, - 10, - 90, - 30, - 4, - 32, - false, - false, - false, - Materials.Naquadah, - Materials.Naquadah, - Materials.Naquadah, - Materials.NaquadahEnriched); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.lignite", - true, - 80, - 210, - 160, - 7, - 32, - true, - false, - false, - Materials.Lignite, - Materials.Lignite, - Materials.Lignite, - Materials.Coal); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.coal", - true, - 30, - 80, - 80, - 5, - 32, - true, - false, - false, - Materials.Coal, - Materials.Coal, - Materials.Coal, - Materials.Lignite); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.magnetite", - true, - 60, - 180, - 160, - 2, - 32, - true, - false, - false, - Materials.Magnetite, - Materials.Magnetite, - Materials.Iron, - Materials.VanadiumMagnetite); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.gold", - true, - 30, - 60, - 160, - 2, - 32, - true, - false, - true, - Materials.Magnetite, - Materials.Magnetite, - Materials.VanadiumMagnetite, - Materials.Gold); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.iron", - true, - 10, - 40, - 120, - 3, - 24, - true, - true, - false, - Materials.BrownLimonite, - Materials.YellowLimonite, - Materials.BandedIron, - Materials.Malachite); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.cassiterite", - true, - 60, - 220, - 50, - 4, - 24, - true, - false, - true, - Materials.Tin, - Materials.Tin, - Materials.Cassiterite, - Materials.Tin); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.tetrahedrite", - true, - 80, - 120, - 70, - 3, - 24, - false, - true, - true, - Materials.Tetrahedrite, - Materials.Tetrahedrite, - Materials.Copper, - Materials.Stibnite); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.netherquartz", - true, - 40, - 80, - 80, - 4, - 24, - false, - true, - false, - Materials.NetherQuartz, - Materials.NetherQuartz, - Materials.NetherQuartz, - Materials.Quartzite); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.sulfur", - true, - 5, - 20, - 100, - 4, - 24, - false, - true, - false, - Materials.Sulfur, - Materials.Sulfur, - Materials.Pyrite, - Materials.Sphalerite); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.copper", - true, - 5, - 60, - 80, - 3, - 24, - true, - true, - true, - Materials.Chalcopyrite, - Materials.Iron, - Materials.Pyrite, - Materials.Copper); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.bauxite", - true, - 10, - 80, - 80, - 3, - 24, - false, - false, - false, - Materials.Bauxite, - Materials.Ilmenite, - Materials.Aluminium, - Materials.Ilmenite); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.salts", - true, - 50, - 70, - 50, - 2, - 24, - true, - false, - false, - Materials.RockSalt, - Materials.Salt, - Materials.Lepidolite, - Materials.Spodumene); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.redstone", - true, - 5, - 40, - 60, - 2, - 24, - true, - true, - false, - Materials.Redstone, - Materials.Redstone, - Materials.Ruby, - Materials.Cinnabar); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.soapstone", - true, - 20, - 50, - 40, - 2, - 16, - true, - false, - false, - Materials.Soapstone, - Materials.Talc, - Materials.Glauconite, - Materials.Pentlandite); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.nickel", - true, - 10, - 40, - 40, - 2, - 16, - false, - false, - true, - Materials.Garnierite, - Materials.Nickel, - Materials.Cobaltite, - Materials.Pentlandite); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.platinum", - true, - 40, - 50, - 5, - 2, - 16, - false, - false, - false, - Materials.Cooperite, - Materials.Palladium, - Materials.Platinum, - Materials.Iridium); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.pitchblende", - true, - 30, - 60, - 40, - 2, - 16, - false, - false, - false, - Materials.Pitchblende, - Materials.Pitchblende, - Materials.Uraninite, - Materials.Uraninite); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.monazite", - true, - 20, - 40, - 30, - 2, - 16, - false, - false, - false, - Materials.Bastnasite, - Materials.Bastnasite, - Materials.Monazite, - Materials.Neodymium); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.molybdenum", - true, - 20, - 50, - 5, - 2, - 16, - false, - true, - true, - Materials.Wulfenite, - Materials.Molybdenite, - Materials.Molybdenum, - Materials.Powellite); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.tungstate", - true, - 20, - 60, - 10, - 2, - 16, - false, - false, - false, - Materials.Scheelite, - Materials.Scheelite, - Materials.Tungstate, - Materials.Lithium); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.sapphire", - true, - 10, - 40, - 60, - 2, - 16, - false, - false, - false, - Materials.Almandine, - Materials.Pyrope, - Materials.Sapphire, - Materials.GreenSapphire); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.manganese", - true, - 20, - 30, - 20, - 2, - 16, - true, - true, - false, - Materials.Grossular, - Materials.Spessartine, - Materials.Pyrolusite, - Materials.Tantalite); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.quartz", - true, - 80, - 120, - 30, - 2, - 16, - false, - true, - false, - Materials.Quartzite, - Materials.Barite, - Materials.CertusQuartz, - Materials.CertusQuartz); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.diamond", - true, - 5, - 20, - 40, - 1, - 16, - true, - false, - false, - Materials.Graphite, - Materials.Graphite, - Materials.Diamond, - Materials.Coal); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.olivine", - true, - 10, - 40, - 60, - 2, - 16, - false, - false, - false, - Materials.Bentonite, - Materials.Magnesite, - Materials.Olivine, - Materials.Glauconite); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.apatite", - true, - 40, - 60, - 60, - 2, - 16, - true, - false, - false, - Materials.Apatite, - Materials.Apatite, - Materials.TricalciumPhosphate, - Materials.Pyrochlore); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.galena", - true, - 5, - 45, - 40, - 4, - 16, - false, - false, - false, - Materials.Galena, - Materials.Galena, - Materials.Silver, - Materials.Lead); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.lapis", - true, - 20, - 50, - 40, - 4, - 16, - true, - false, - false, - Materials.Lazurite, - Materials.Sodalite, - Materials.Lapis, - Materials.Calcite); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.beryllium", - true, - 5, - 30, - 30, - 2, - 16, - false, - true, - true, - Materials.Beryllium, - Materials.Beryllium, - Materials.Emerald, - Materials.Thorium); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.uranium", - true, - 20, - 30, - 20, - 2, - 16, - false, - false, - false, - Materials.Uraninite, - Materials.Uraninite, - Materials.Uranium, - Materials.Uranium); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.oilsand", - true, - 50, - 80, - 40, - 5, - 16, - true, - false, - false, - Materials.Oilsands, - Materials.Oilsands, - Materials.Oilsands, - Materials.Oilsands); + "ore.mix.naquadah", + true, + 10, + 90, + 30, + 4, + 32, + false, + false, + false, + Materials.Naquadah, + Materials.Naquadah, + Materials.Naquadah, + Materials.NaquadahEnriched); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.lignite", + true, + 80, + 210, + 160, + 7, + 32, + true, + false, + false, + Materials.Lignite, + Materials.Lignite, + Materials.Lignite, + Materials.Coal); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.coal", + true, + 30, + 80, + 80, + 5, + 32, + true, + false, + false, + Materials.Coal, + Materials.Coal, + Materials.Coal, + Materials.Lignite); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.magnetite", + true, + 60, + 180, + 160, + 2, + 32, + true, + false, + false, + Materials.Magnetite, + Materials.Magnetite, + Materials.Iron, + Materials.VanadiumMagnetite); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.gold", + true, + 30, + 60, + 160, + 2, + 32, + true, + false, + true, + Materials.Magnetite, + Materials.Magnetite, + Materials.VanadiumMagnetite, + Materials.Gold); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.iron", + true, + 10, + 40, + 120, + 3, + 24, + true, + true, + false, + Materials.BrownLimonite, + Materials.YellowLimonite, + Materials.BandedIron, + Materials.Malachite); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.cassiterite", + true, + 60, + 220, + 50, + 4, + 24, + true, + false, + true, + Materials.Tin, + Materials.Tin, + Materials.Cassiterite, + Materials.Tin); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.tetrahedrite", + true, + 80, + 120, + 70, + 3, + 24, + false, + true, + true, + Materials.Tetrahedrite, + Materials.Tetrahedrite, + Materials.Copper, + Materials.Stibnite); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.netherquartz", + true, + 40, + 80, + 80, + 4, + 24, + false, + true, + false, + Materials.NetherQuartz, + Materials.NetherQuartz, + Materials.NetherQuartz, + Materials.Quartzite); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.sulfur", + true, + 5, + 20, + 100, + 4, + 24, + false, + true, + false, + Materials.Sulfur, + Materials.Sulfur, + Materials.Pyrite, + Materials.Sphalerite); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.copper", + true, + 5, + 60, + 80, + 3, + 24, + true, + true, + true, + Materials.Chalcopyrite, + Materials.Iron, + Materials.Pyrite, + Materials.Copper); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.bauxite", + true, + 10, + 80, + 80, + 3, + 24, + false, + false, + false, + Materials.Bauxite, + Materials.Ilmenite, + Materials.Aluminium, + Materials.Ilmenite); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.salts", + true, + 50, + 70, + 50, + 2, + 24, + true, + false, + false, + Materials.RockSalt, + Materials.Salt, + Materials.Lepidolite, + Materials.Spodumene); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.redstone", + true, + 5, + 40, + 60, + 2, + 24, + true, + true, + false, + Materials.Redstone, + Materials.Redstone, + Materials.Ruby, + Materials.Cinnabar); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.soapstone", + true, + 20, + 50, + 40, + 2, + 16, + true, + false, + false, + Materials.Soapstone, + Materials.Talc, + Materials.Glauconite, + Materials.Pentlandite); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.nickel", + true, + 10, + 40, + 40, + 2, + 16, + false, + false, + true, + Materials.Garnierite, + Materials.Nickel, + Materials.Cobaltite, + Materials.Pentlandite); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.platinum", + true, + 40, + 50, + 5, + 2, + 16, + false, + false, + false, + Materials.Cooperite, + Materials.Palladium, + Materials.Platinum, + Materials.Iridium); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.pitchblende", + true, + 30, + 60, + 40, + 2, + 16, + false, + false, + false, + Materials.Pitchblende, + Materials.Pitchblende, + Materials.Uraninite, + Materials.Uraninite); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.monazite", + true, + 20, + 40, + 30, + 2, + 16, + false, + false, + false, + Materials.Bastnasite, + Materials.Bastnasite, + Materials.Monazite, + Materials.Neodymium); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.molybdenum", + true, + 20, + 50, + 5, + 2, + 16, + false, + true, + true, + Materials.Wulfenite, + Materials.Molybdenite, + Materials.Molybdenum, + Materials.Powellite); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.tungstate", + true, + 20, + 60, + 10, + 2, + 16, + false, + false, + false, + Materials.Scheelite, + Materials.Scheelite, + Materials.Tungstate, + Materials.Lithium); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.sapphire", + true, + 10, + 40, + 60, + 2, + 16, + false, + false, + false, + Materials.Almandine, + Materials.Pyrope, + Materials.Sapphire, + Materials.GreenSapphire); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.manganese", + true, + 20, + 30, + 20, + 2, + 16, + true, + true, + false, + Materials.Grossular, + Materials.Spessartine, + Materials.Pyrolusite, + Materials.Tantalite); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.quartz", + true, + 80, + 120, + 30, + 2, + 16, + false, + true, + false, + Materials.Quartzite, + Materials.Barite, + Materials.CertusQuartz, + Materials.CertusQuartz); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.diamond", + true, + 5, + 20, + 40, + 1, + 16, + true, + false, + false, + Materials.Graphite, + Materials.Graphite, + Materials.Diamond, + Materials.Coal); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.olivine", + true, + 10, + 40, + 60, + 2, + 16, + false, + false, + false, + Materials.Bentonite, + Materials.Magnesite, + Materials.Olivine, + Materials.Glauconite); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.apatite", + true, + 40, + 60, + 60, + 2, + 16, + true, + false, + false, + Materials.Apatite, + Materials.Apatite, + Materials.TricalciumPhosphate, + Materials.Pyrochlore); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.galena", + true, + 5, + 45, + 40, + 4, + 16, + false, + false, + false, + Materials.Galena, + Materials.Galena, + Materials.Silver, + Materials.Lead); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.lapis", + true, + 20, + 50, + 40, + 4, + 16, + true, + false, + false, + Materials.Lazurite, + Materials.Sodalite, + Materials.Lapis, + Materials.Calcite); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.beryllium", + true, + 5, + 30, + 30, + 2, + 16, + false, + true, + true, + Materials.Beryllium, + Materials.Beryllium, + Materials.Emerald, + Materials.Thorium); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.uranium", + true, + 20, + 30, + 20, + 2, + 16, + false, + false, + false, + Materials.Uraninite, + Materials.Uraninite, + Materials.Uranium, + Materials.Uranium); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.oilsand", + true, + 50, + 80, + 40, + 5, + 16, + true, + false, + false, + Materials.Oilsands, + Materials.Oilsands, + Materials.Oilsands, + Materials.Oilsands); /* * TODO: custom GTNH OreMixes WARNING: NO DUPLICATES IN aName OR DEPRECATED MATERIALS IN HERE. Materials can be @@ -1637,605 +1637,605 @@ public class GT_Worldgenloader implements Runnable { // aName, aDefault, aMinY, aMaxY, aWeight, aDensity, aSize, aOverworld, aNether, aEnd, aPrimary, aSecondary, // aBetween, aSporadic new GT_Worldgen_GT_Ore_Layer( - "ore.mix.neutronium", - true, - 5, - 30, - 10, - 2, - 16, - false, - false, - false, - Materials.Neutronium, - Materials.Adamantium, - Materials.Naquadah, - Materials.Titanium); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.aquaignis", - true, - 5, - 35, - 16, - 2, - 16, - false, - false, - false, - Materials.InfusedWater, - Materials.InfusedFire, - Materials.Amber, - Materials.Cinnabar); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.terraaer", - true, - 5, - 35, - 16, - 2, - 16, - false, - false, - false, - Materials.InfusedEarth, - Materials.InfusedAir, - Materials.Amber, - Materials.Cinnabar); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.perditioordo", - true, - 5, - 35, - 16, - 2, - 16, - false, - false, - false, - Materials.InfusedEntropy, - Materials.InfusedOrder, - Materials.Amber, - Materials.Cinnabar); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.coppertin", - true, - 80, - 200, - 80, - 3, - 24, - true, - false, - false, - Materials.Chalcopyrite, - Materials.Vermiculite, - Materials.Cassiterite, - Materials.Alunite); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.titaniumchrome", - true, - 10, - 70, - 16, - 2, - 16, - false, - false, - false, - Materials.Ilmenite, - Materials.Chromite, - Materials.Uvarovite, - Materials.Perlite); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.mineralsand", - true, - 50, - 60, - 80, - 3, - 24, - true, - false, - false, - Materials.BasalticMineralSand, - Materials.GraniticMineralSand, - Materials.FullersEarth, - Materials.Gypsum); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.garnettin", - true, - 50, - 60, - 80, - 3, - 24, - true, - false, - false, - Materials.CassiteriteSand, - Materials.GarnetSand, - Materials.Asbestos, - Materials.Diatomite); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.kaolinitezeolite", - true, - 50, - 70, - 60, - 4, - 16, - true, - false, - false, - Materials.Kaolinite, - Materials.Zeolite, - Materials.FullersEarth, - Materials.GlauconiteSand); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.mica", - true, - 20, - 40, - 20, - 2, - 16, - true, - false, - false, - Materials.Kyanite, - Materials.Mica, - Materials.Cassiterite, - Materials.Pollucite); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.dolomite", - true, - 150, - 200, - 40, - 4, - 24, - true, - false, - false, - Materials.Dolomite, - Materials.Wollastonite, - Materials.Trona, - Materials.Andradite); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.platinumchrome", - true, - 5, - 30, - 10, - 2, - 16, - false, - false, - false, - Materials.Platinum, - Materials.Chrome, - Materials.Cooperite, - Materials.Palladium); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.iridiummytryl", - true, - 15, - 40, - 10, - 2, - 16, - false, - false, - false, - Materials.Nickel, - Materials.Iridium, - Materials.Palladium, - Materials.Mithril); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.osmium", - true, - 5, - 30, - 10, - 2, - 16, - false, - false, - false, - Materials.Nickel, - Materials.Osmium, - Materials.Iridium, - Materials.Nickel); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.saltpeterelectrotine", - true, - 5, - 45, - 40, - 3, - 16, - false, - true, - false, - Materials.Saltpeter, - Materials.Diatomite, - Materials.Electrotine, - Materials.Alunite); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.desh", - true, - 5, - 40, - 30, - 2, - 16, - false, - false, - false, - Materials.Desh, - Materials.Desh, - Materials.Scheelite, - Materials.Tungstate); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.draconium", - true, - 20, - 40, - 40, - 1, - 16, - false, - false, - false, - Materials.Draconium, - Materials.Electrotine, - Materials.Jade, - Materials.Vinteum); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.quantium", - true, - 5, - 25, - 30, - 3, - 24, - false, - false, - false, - Materials.Quantium, - Materials.Amethyst, - Materials.Rutile, - Materials.Ardite); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.callistoice", - true, - 40, - 60, - 40, - 2, - 16, - false, - false, - false, - Materials.CallistoIce, - Materials.Topaz, - Materials.BlueTopaz, - Materials.Alduorite); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.mytryl", - true, - 10, - 30, - 40, - 2, - 16, - false, - false, - false, - Materials.Mytryl, - Materials.Jasper, - Materials.Ceruclase, - Materials.Vulcanite); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.ledox", - true, - 55, - 65, - 30, - 2, - 24, - false, - false, - false, - Materials.Ledox, - Materials.Opal, - Materials.Orichalcum, - Materials.Rubracium); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.oriharukon", - true, - 30, - 60, - 40, - 2, - 16, - false, - false, - false, - Materials.Oriharukon, - Materials.Tanzanite, - Materials.Vyroxeres, - Materials.Mirabilite); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.blackplutonium", - true, - 5, - 25, - 40, - 2, - 24, - false, - false, - false, - Materials.BlackPlutonium, - Materials.GarnetRed, - Materials.GarnetYellow, - Materials.Borax); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.infusedgold", - true, - 15, - 40, - 30, - 2, - 16, - false, - false, - false, - Materials.Gold, - Materials.Gold, - Materials.InfusedGold, - Materials.Platinum); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.niobium", - true, - 5, - 30, - 60, - 2, - 24, - false, - false, - false, - Materials.Niobium, - Materials.Yttrium, - Materials.Gallium, - Materials.Gallium); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.tungstenirons", - true, - 5, - 25, - 16, - 2, - 30, - false, - false, - false, - Materials.Tungsten, - Materials.Silicon, - Materials.DeepIron, - Materials.ShadowIron); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.uraniumgtnh", - true, - 10, - 30, - 60, - 2, - 24, - false, - false, - false, - Materials.Thorium, - Materials.Uranium, - Materials.Plutonium241, - Materials.Uranium235); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.vanadiumgold", - true, - 10, - 50, - 60, - 2, - 24, - false, - false, - false, - Materials.Vanadium, - Materials.Magnetite, - Materials.Gold, - Materials.Chrome); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.netherstar", - true, - 20, - 60, - 60, - 2, - 24, - false, - false, - false, - Materials.GarnetSand, - Materials.NetherStar, - Materials.GarnetRed, - Materials.GarnetYellow); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.garnet", - true, - 10, - 30, - 40, - 2, - 16, - false, - false, - false, - Materials.GarnetRed, - Materials.GarnetYellow, - Materials.Chrysotile, - Materials.Realgar); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.rareearth", - true, - 30, - 60, - 40, - 2, - 24, - false, - false, - false, - Materials.Cadmium, - Materials.Caesium, - Materials.Lanthanum, - Materials.Cerium); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.richnuclear", - true, - 55, - 120, - 5, - 2, - 8, - false, - false, - false, - Materials.Uranium, - Materials.Plutonium, - Materials.Thorium, - Materials.Thorium); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.heavypentele", - true, - 40, - 60, - 60, - 5, - 32, - false, - false, - false, - Materials.Arsenic, - Materials.Bismuth, - Materials.Antimony, - Materials.Antimony); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.europa", - true, - 55, - 65, - 110, - 4, - 24, - false, - false, - false, - Materials.Magnesite, - Materials.BandedIron, - Materials.Sulfur, - Materials.Opal); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.europacore", - true, - 5, - 15, - 5, - 2, - 16, - false, - false, - false, - Materials.Chrome, - Materials.Tungstate, - Materials.Molybdenum, - Materials.Manganese); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.secondlanthanid", - true, - 10, - 40, - 10, - 3, - 24, - false, - false, - false, - Materials.Samarium, - Materials.Neodymium, - Materials.Tartarite, - Materials.Tartarite); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.quartzspace", - true, - 40, - 80, - 20, - 3, - 16, - false, - false, - false, - Materials.Quartzite, - Materials.Barite, - Materials.CertusQuartz, - Materials.CertusQuartz); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.rutile", - true, - 5, - 20, - 8, - 4, - 12, - false, - false, - false, - Materials.Rutile, - Materials.Titanium, - Materials.Bauxite, - Materials.MeteoricIron); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.tfgalena", - true, - 5, - 35, - 40, - 4, - 16, - false, - false, - false, - Materials.Galena, - Materials.Silver, - Materials.Lead, - Materials.Cryolite); - new GT_Worldgen_GT_Ore_Layer( - "ore.mix.luvtantalite", - true, - 20, - 30, - 10, - 4, - 16, - false, - false, - false, - Materials.Pyrolusite, - Materials.Apatite, - Materials.Tantalite, - Materials.Pyrochlore); + "ore.mix.neutronium", + true, + 5, + 30, + 10, + 2, + 16, + false, + false, + false, + Materials.Neutronium, + Materials.Adamantium, + Materials.Naquadah, + Materials.Titanium); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.aquaignis", + true, + 5, + 35, + 16, + 2, + 16, + false, + false, + false, + Materials.InfusedWater, + Materials.InfusedFire, + Materials.Amber, + Materials.Cinnabar); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.terraaer", + true, + 5, + 35, + 16, + 2, + 16, + false, + false, + false, + Materials.InfusedEarth, + Materials.InfusedAir, + Materials.Amber, + Materials.Cinnabar); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.perditioordo", + true, + 5, + 35, + 16, + 2, + 16, + false, + false, + false, + Materials.InfusedEntropy, + Materials.InfusedOrder, + Materials.Amber, + Materials.Cinnabar); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.coppertin", + true, + 80, + 200, + 80, + 3, + 24, + true, + false, + false, + Materials.Chalcopyrite, + Materials.Vermiculite, + Materials.Cassiterite, + Materials.Alunite); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.titaniumchrome", + true, + 10, + 70, + 16, + 2, + 16, + false, + false, + false, + Materials.Ilmenite, + Materials.Chromite, + Materials.Uvarovite, + Materials.Perlite); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.mineralsand", + true, + 50, + 60, + 80, + 3, + 24, + true, + false, + false, + Materials.BasalticMineralSand, + Materials.GraniticMineralSand, + Materials.FullersEarth, + Materials.Gypsum); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.garnettin", + true, + 50, + 60, + 80, + 3, + 24, + true, + false, + false, + Materials.CassiteriteSand, + Materials.GarnetSand, + Materials.Asbestos, + Materials.Diatomite); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.kaolinitezeolite", + true, + 50, + 70, + 60, + 4, + 16, + true, + false, + false, + Materials.Kaolinite, + Materials.Zeolite, + Materials.FullersEarth, + Materials.GlauconiteSand); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.mica", + true, + 20, + 40, + 20, + 2, + 16, + true, + false, + false, + Materials.Kyanite, + Materials.Mica, + Materials.Cassiterite, + Materials.Pollucite); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.dolomite", + true, + 150, + 200, + 40, + 4, + 24, + true, + false, + false, + Materials.Dolomite, + Materials.Wollastonite, + Materials.Trona, + Materials.Andradite); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.platinumchrome", + true, + 5, + 30, + 10, + 2, + 16, + false, + false, + false, + Materials.Platinum, + Materials.Chrome, + Materials.Cooperite, + Materials.Palladium); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.iridiummytryl", + true, + 15, + 40, + 10, + 2, + 16, + false, + false, + false, + Materials.Nickel, + Materials.Iridium, + Materials.Palladium, + Materials.Mithril); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.osmium", + true, + 5, + 30, + 10, + 2, + 16, + false, + false, + false, + Materials.Nickel, + Materials.Osmium, + Materials.Iridium, + Materials.Nickel); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.saltpeterelectrotine", + true, + 5, + 45, + 40, + 3, + 16, + false, + true, + false, + Materials.Saltpeter, + Materials.Diatomite, + Materials.Electrotine, + Materials.Alunite); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.desh", + true, + 5, + 40, + 30, + 2, + 16, + false, + false, + false, + Materials.Desh, + Materials.Desh, + Materials.Scheelite, + Materials.Tungstate); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.draconium", + true, + 20, + 40, + 40, + 1, + 16, + false, + false, + false, + Materials.Draconium, + Materials.Electrotine, + Materials.Jade, + Materials.Vinteum); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.quantium", + true, + 5, + 25, + 30, + 3, + 24, + false, + false, + false, + Materials.Quantium, + Materials.Amethyst, + Materials.Rutile, + Materials.Ardite); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.callistoice", + true, + 40, + 60, + 40, + 2, + 16, + false, + false, + false, + Materials.CallistoIce, + Materials.Topaz, + Materials.BlueTopaz, + Materials.Alduorite); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.mytryl", + true, + 10, + 30, + 40, + 2, + 16, + false, + false, + false, + Materials.Mytryl, + Materials.Jasper, + Materials.Ceruclase, + Materials.Vulcanite); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.ledox", + true, + 55, + 65, + 30, + 2, + 24, + false, + false, + false, + Materials.Ledox, + Materials.Opal, + Materials.Orichalcum, + Materials.Rubracium); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.oriharukon", + true, + 30, + 60, + 40, + 2, + 16, + false, + false, + false, + Materials.Oriharukon, + Materials.Tanzanite, + Materials.Vyroxeres, + Materials.Mirabilite); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.blackplutonium", + true, + 5, + 25, + 40, + 2, + 24, + false, + false, + false, + Materials.BlackPlutonium, + Materials.GarnetRed, + Materials.GarnetYellow, + Materials.Borax); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.infusedgold", + true, + 15, + 40, + 30, + 2, + 16, + false, + false, + false, + Materials.Gold, + Materials.Gold, + Materials.InfusedGold, + Materials.Platinum); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.niobium", + true, + 5, + 30, + 60, + 2, + 24, + false, + false, + false, + Materials.Niobium, + Materials.Yttrium, + Materials.Gallium, + Materials.Gallium); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.tungstenirons", + true, + 5, + 25, + 16, + 2, + 30, + false, + false, + false, + Materials.Tungsten, + Materials.Silicon, + Materials.DeepIron, + Materials.ShadowIron); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.uraniumgtnh", + true, + 10, + 30, + 60, + 2, + 24, + false, + false, + false, + Materials.Thorium, + Materials.Uranium, + Materials.Plutonium241, + Materials.Uranium235); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.vanadiumgold", + true, + 10, + 50, + 60, + 2, + 24, + false, + false, + false, + Materials.Vanadium, + Materials.Magnetite, + Materials.Gold, + Materials.Chrome); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.netherstar", + true, + 20, + 60, + 60, + 2, + 24, + false, + false, + false, + Materials.GarnetSand, + Materials.NetherStar, + Materials.GarnetRed, + Materials.GarnetYellow); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.garnet", + true, + 10, + 30, + 40, + 2, + 16, + false, + false, + false, + Materials.GarnetRed, + Materials.GarnetYellow, + Materials.Chrysotile, + Materials.Realgar); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.rareearth", + true, + 30, + 60, + 40, + 2, + 24, + false, + false, + false, + Materials.Cadmium, + Materials.Caesium, + Materials.Lanthanum, + Materials.Cerium); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.richnuclear", + true, + 55, + 120, + 5, + 2, + 8, + false, + false, + false, + Materials.Uranium, + Materials.Plutonium, + Materials.Thorium, + Materials.Thorium); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.heavypentele", + true, + 40, + 60, + 60, + 5, + 32, + false, + false, + false, + Materials.Arsenic, + Materials.Bismuth, + Materials.Antimony, + Materials.Antimony); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.europa", + true, + 55, + 65, + 110, + 4, + 24, + false, + false, + false, + Materials.Magnesite, + Materials.BandedIron, + Materials.Sulfur, + Materials.Opal); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.europacore", + true, + 5, + 15, + 5, + 2, + 16, + false, + false, + false, + Materials.Chrome, + Materials.Tungstate, + Materials.Molybdenum, + Materials.Manganese); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.secondlanthanid", + true, + 10, + 40, + 10, + 3, + 24, + false, + false, + false, + Materials.Samarium, + Materials.Neodymium, + Materials.Tartarite, + Materials.Tartarite); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.quartzspace", + true, + 40, + 80, + 20, + 3, + 16, + false, + false, + false, + Materials.Quartzite, + Materials.Barite, + Materials.CertusQuartz, + Materials.CertusQuartz); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.rutile", + true, + 5, + 20, + 8, + 4, + 12, + false, + false, + false, + Materials.Rutile, + Materials.Titanium, + Materials.Bauxite, + Materials.MeteoricIron); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.tfgalena", + true, + 5, + 35, + 40, + 4, + 16, + false, + false, + false, + Materials.Galena, + Materials.Silver, + Materials.Lead, + Materials.Cryolite); + new GT_Worldgen_GT_Ore_Layer( + "ore.mix.luvtantalite", + true, + 20, + 30, + 10, + 4, + 16, + false, + false, + false, + Materials.Pyrolusite, + Materials.Apatite, + Materials.Tantalite, + Materials.Pyrochlore); // DO NOT DELETE V THIS V - this is needed so that gregtech generates its Ore Layer's first (the ones up there), // which can then be transformed into "GT_Worldgen_GT_Ore_Layer_Space". Also, Reflexion is slow. diff --git a/src/main/java/gregtech/loaders/postload/PartP2PGTPower.java b/src/main/java/gregtech/loaders/postload/PartP2PGTPower.java index 9b20da4727..080ae1b00b 100644 --- a/src/main/java/gregtech/loaders/postload/PartP2PGTPower.java +++ b/src/main/java/gregtech/loaders/postload/PartP2PGTPower.java @@ -71,7 +71,7 @@ public class PartP2PGTPower extends PartP2PIC2Power implements IGridTickable { voltage = (long) getOfferedEnergy(); } if (((IEnergyConnected) t).injectEnergyUnits(GT_Utility.getOppositeSide(getSide().ordinal()), voltage, 1) - > 0) { + > 0) { drawEnergy(voltage); return true; } diff --git a/src/main/java/gregtech/loaders/postload/chains/GT_BauxiteRefineChain.java b/src/main/java/gregtech/loaders/postload/chains/GT_BauxiteRefineChain.java index fec3a30ad1..ab9162dcd7 100644 --- a/src/main/java/gregtech/loaders/postload/chains/GT_BauxiteRefineChain.java +++ b/src/main/java/gregtech/loaders/postload/chains/GT_BauxiteRefineChain.java @@ -13,269 +13,269 @@ public class GT_BauxiteRefineChain { public static void run() { GT_Values.RA.addMixerRecipe( - GT_OreDictUnificator.get(OrePrefixes.crushed, Materials.Bauxite, 32), - Materials.SodiumHydroxide.getDust(9), - Materials.Quicklime.getDust(4), - GT_Utility.getIntegratedCircuit(8), - Materials.Water.getFluid(5000), - MaterialsOreAlum.BauxiteSlurry.getFluid(8000), - GT_Values.NI, - 200, - 120); + GT_OreDictUnificator.get(OrePrefixes.crushed, Materials.Bauxite, 32), + Materials.SodiumHydroxide.getDust(9), + Materials.Quicklime.getDust(4), + GT_Utility.getIntegratedCircuit(8), + Materials.Water.getFluid(5000), + MaterialsOreAlum.BauxiteSlurry.getFluid(8000), + GT_Values.NI, + 200, + 120); GT_Values.RA.addMixerRecipe( - GT_OreDictUnificator.get(OrePrefixes.crushedPurified, Materials.Bauxite, 32), - Materials.SodiumHydroxide.getDust(9), - Materials.Quicklime.getDust(4), - GT_Utility.getIntegratedCircuit(8), - Materials.Water.getFluid(5000), - MaterialsOreAlum.BauxiteSlurry.getFluid(8000), - GT_Values.NI, - 200, - 120); + GT_OreDictUnificator.get(OrePrefixes.crushedPurified, Materials.Bauxite, 32), + Materials.SodiumHydroxide.getDust(9), + Materials.Quicklime.getDust(4), + GT_Utility.getIntegratedCircuit(8), + Materials.Water.getFluid(5000), + MaterialsOreAlum.BauxiteSlurry.getFluid(8000), + GT_Values.NI, + 200, + 120); GT_Values.RA.addCrackingRecipe( - 1, - MaterialsOreAlum.BauxiteSlurry.getFluid(32000), - GT_ModHandler.getSteam(2000), - MaterialsOreAlum.HeatedBauxiteSlurry.getFluid(32000), - 160, - 400); + 1, + MaterialsOreAlum.BauxiteSlurry.getFluid(32000), + GT_ModHandler.getSteam(2000), + MaterialsOreAlum.HeatedBauxiteSlurry.getFluid(32000), + 160, + 400); GT_Values.RA.addMultiblockChemicalRecipe( - new ItemStack[] { Materials.Aluminiumhydroxide.getDust(1), }, - new FluidStack[] { Materials.CarbonDioxide.getGas(5000), - MaterialsOreAlum.HeatedBauxiteSlurry.getFluid(8000) }, - new FluidStack[] { MaterialsOreAlum.SluiceJuice.getFluid(5000), }, - new ItemStack[] { Materials.Aluminiumoxide.getDust(64), Materials.Aluminiumoxide.getDust(16), - Materials.SodiumCarbonate.getDust(9), Materials.Calcite.getDust(10), - MaterialsOreAlum.BauxiteSlag.getDust(16) }, - 300, - 480); + new ItemStack[] { Materials.Aluminiumhydroxide.getDust(1), }, + new FluidStack[] { Materials.CarbonDioxide.getGas(5000), + MaterialsOreAlum.HeatedBauxiteSlurry.getFluid(8000) }, + new FluidStack[] { MaterialsOreAlum.SluiceJuice.getFluid(5000), }, + new ItemStack[] { Materials.Aluminiumoxide.getDust(64), Materials.Aluminiumoxide.getDust(16), + Materials.SodiumCarbonate.getDust(9), Materials.Calcite.getDust(10), + MaterialsOreAlum.BauxiteSlag.getDust(16) }, + 300, + 480); GT_Values.RA.addCentrifugeRecipe( - MaterialsOreAlum.BauxiteSlag.getDust(1), - GT_Values.NI, - GT_Values.NF, - GT_Values.NF, - Materials.Rutile.getDust(1), - Materials.Gallium.getDust(1), - Materials.Quicklime.getDust(1), - Materials.SiliconDioxide.getDust(1), - Materials.Iron.getDust(1), - GT_Values.NI, - new int[] { 8000, 6000, 2000, 9000, 8000 }, - 40, - 120); + MaterialsOreAlum.BauxiteSlag.getDust(1), + GT_Values.NI, + GT_Values.NF, + GT_Values.NF, + Materials.Rutile.getDust(1), + Materials.Gallium.getDust(1), + Materials.Quicklime.getDust(1), + Materials.SiliconDioxide.getDust(1), + Materials.Iron.getDust(1), + GT_Values.NI, + new int[] { 8000, 6000, 2000, 9000, 8000 }, + 40, + 120); GT_Values.RA.addChemicalBathRecipe( - GT_OreDictUnificator.get(OrePrefixes.crushedPurified, Materials.Ilmenite, 1), - Materials.SulfuricAcid.getFluid(1000), - new FluidStack(ItemList.sGreenVitriol, 2000), - Materials.Rutile.getDust(1), - MaterialsOreAlum.IlmeniteSlag.getDust(1), - GT_Values.NI, - new int[] { 8500, 3000 }, - 420, - 1000); + GT_OreDictUnificator.get(OrePrefixes.crushedPurified, Materials.Ilmenite, 1), + Materials.SulfuricAcid.getFluid(1000), + new FluidStack(ItemList.sGreenVitriol, 2000), + Materials.Rutile.getDust(1), + MaterialsOreAlum.IlmeniteSlag.getDust(1), + GT_Values.NI, + new int[] { 8500, 3000 }, + 420, + 1000); GT_Values.RA.addChemicalBathRecipe( - GT_OreDictUnificator.get(OrePrefixes.crushed, Materials.Ilmenite, 1), - Materials.SulfuricAcid.getFluid(1000), - new FluidStack(ItemList.sGreenVitriol, 2000), - Materials.Rutile.getDust(1), - MaterialsOreAlum.IlmeniteSlag.getDust(1), - GT_Values.NI, - new int[] { 8500, 6000 }, - 420, - 1000); + GT_OreDictUnificator.get(OrePrefixes.crushed, Materials.Ilmenite, 1), + Materials.SulfuricAcid.getFluid(1000), + new FluidStack(ItemList.sGreenVitriol, 2000), + Materials.Rutile.getDust(1), + MaterialsOreAlum.IlmeniteSlag.getDust(1), + GT_Values.NI, + new int[] { 8500, 6000 }, + 420, + 1000); GT_Values.RA.addCentrifugeRecipe( - MaterialsOreAlum.IlmeniteSlag.getDust(1), - GT_Values.NI, - GT_Values.NF, - GT_Values.NF, - Materials.Iron.getDust(1), - Materials.Niobium.getDust(1), - Materials.Tantalum.getDust(1), - Materials.Manganese.getDust(1), - Materials.Magnesium.getDust(1), - GT_Values.NI, - new int[] { 8000, 1000, 2000, 5000, 6000 }, - 40, - 120); + MaterialsOreAlum.IlmeniteSlag.getDust(1), + GT_Values.NI, + GT_Values.NF, + GT_Values.NF, + Materials.Iron.getDust(1), + Materials.Niobium.getDust(1), + Materials.Tantalum.getDust(1), + Materials.Manganese.getDust(1), + Materials.Magnesium.getDust(1), + GT_Values.NI, + new int[] { 8000, 1000, 2000, 5000, 6000 }, + 40, + 120); OrePrefixes[] washable = new OrePrefixes[] { OrePrefixes.crushed, OrePrefixes.crushedPurified, - OrePrefixes.dustImpure, OrePrefixes.dustPure }; + OrePrefixes.dustImpure, OrePrefixes.dustPure }; for (OrePrefixes ore : washable) { GT_Values.RA.addMixerRecipe( - GT_OreDictUnificator.get(ore, Materials.Sapphire, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.SodiumHydroxide, 1), - GT_Utility.getIntegratedCircuit(1), - null, - Materials.HydrochloricAcid.getFluid(1000), - MaterialsOreAlum.SapphireJuice.getFluid(1000), - null, - 40, - 100); - - GT_Values.RA.addMixerRecipe( - GT_OreDictUnificator.get(ore, Materials.GreenSapphire, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.SodiumHydroxide, 1), - GT_Utility.getIntegratedCircuit(1), - null, - Materials.HydrochloricAcid.getFluid(1000), - MaterialsOreAlum.GreenSapphireJuice.getFluid(1000), - null, - 40, - 100); - - GT_Values.RA.addMixerRecipe( - GT_OreDictUnificator.get(ore, Materials.Ruby, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.SodiumHydroxide, 1), - GT_Utility.getIntegratedCircuit(1), - null, - Materials.HydrochloricAcid.getFluid(1000), - MaterialsOreAlum.RubyJuice.getFluid(1000), - null, - 40, - 100); - } - - GT_Values.RA.addCentrifugeRecipe( + GT_OreDictUnificator.get(ore, Materials.Sapphire, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.SodiumHydroxide, 1), GT_Utility.getIntegratedCircuit(1), null, - MaterialsOreAlum.SapphireJuice.getFluid(1000), Materials.HydrochloricAcid.getFluid(1000), - Materials.Aluminiumhydroxide.getDust(3), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Iron, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Vanadium, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Magnesium, 1), - null, + MaterialsOreAlum.SapphireJuice.getFluid(1000), null, - new int[] { 10000, 2000, 2000, 2000 }, - 45, + 40, 100); - GT_Values.RA.addCentrifugeRecipe( + GT_Values.RA.addMixerRecipe( + GT_OreDictUnificator.get(ore, Materials.GreenSapphire, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.SodiumHydroxide, 1), GT_Utility.getIntegratedCircuit(1), null, - MaterialsOreAlum.GreenSapphireJuice.getFluid(1000), Materials.HydrochloricAcid.getFluid(1000), - Materials.Aluminiumhydroxide.getDust(3), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Iron, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Vanadium, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Manganese, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Beryllium, 1), + MaterialsOreAlum.GreenSapphireJuice.getFluid(1000), null, - new int[] { 10000, 2000, 2000, 2000, 2000 }, - 45, + 40, 100); - GT_Values.RA.addCentrifugeRecipe( + GT_Values.RA.addMixerRecipe( + GT_OreDictUnificator.get(ore, Materials.Ruby, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.SodiumHydroxide, 1), GT_Utility.getIntegratedCircuit(1), null, - MaterialsOreAlum.RubyJuice.getFluid(1000), Materials.HydrochloricAcid.getFluid(1000), - Materials.Aluminiumhydroxide.getDust(3), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Chrome, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Iron, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Vanadium, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Magnesium, 1), + MaterialsOreAlum.RubyJuice.getFluid(1000), null, - new int[] { 10000, 10000, 2000, 2000, 2000 }, - 45, + 40, 100); + } GT_Values.RA.addCentrifugeRecipe( - Materials.Pyrope.getDust(1), - null, - Materials.NitricAcid.getFluid(10), - MaterialsOreAlum.SluiceJuice.getFluid(10), - Materials.Aluminiumoxide.getDust(1), - Materials.Magnesia.getDust(1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Silver, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Iron, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Calcite, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Vanadium, 1), - new int[] { 5000, 4000, 2000, 2000, 2000, 2000 }, - 45, - 120); + GT_Utility.getIntegratedCircuit(1), + null, + MaterialsOreAlum.SapphireJuice.getFluid(1000), + Materials.HydrochloricAcid.getFluid(1000), + Materials.Aluminiumhydroxide.getDust(3), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Iron, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Vanadium, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Magnesium, 1), + null, + null, + new int[] { 10000, 2000, 2000, 2000 }, + 45, + 100); GT_Values.RA.addCentrifugeRecipe( - Materials.Almandine.getDust(1), - null, - Materials.NitricAcid.getFluid(10), - MaterialsOreAlum.SluiceJuice.getFluid(10), - Materials.Aluminiumoxide.getDust(1), - Materials.Iron.getDust(1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Gold, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Chrome, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Calcite, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Vanadium, 1), - new int[] { 5000, 4000, 2000, 2000, 2000, 2000 }, - 45, - 120); + GT_Utility.getIntegratedCircuit(1), + null, + MaterialsOreAlum.GreenSapphireJuice.getFluid(1000), + Materials.HydrochloricAcid.getFluid(1000), + Materials.Aluminiumhydroxide.getDust(3), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Iron, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Vanadium, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Manganese, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Beryllium, 1), + null, + new int[] { 10000, 2000, 2000, 2000, 2000 }, + 45, + 100); GT_Values.RA.addCentrifugeRecipe( - Materials.Spessartine.getDust(1), - null, - Materials.NitricAcid.getFluid(10), - MaterialsOreAlum.SluiceJuice.getFluid(10), - Materials.Aluminiumoxide.getDust(1), - Materials.Pyrolusite.getDust(1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Tantalum, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Iron, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Calcite, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Magnesium, 1), - new int[] { 5000, 4000, 2000, 2000, 2000, 2000 }, - 45, - 120); + GT_Utility.getIntegratedCircuit(1), + null, + MaterialsOreAlum.RubyJuice.getFluid(1000), + Materials.HydrochloricAcid.getFluid(1000), + Materials.Aluminiumhydroxide.getDust(3), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Chrome, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Iron, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Vanadium, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Magnesium, 1), + null, + new int[] { 10000, 10000, 2000, 2000, 2000 }, + 45, + 100); GT_Values.RA.addCentrifugeRecipe( - Materials.Andradite.getDust(1), - null, - Materials.NitricAcid.getFluid(10), - MaterialsOreAlum.SluiceJuice.getFluid(10), - Materials.Quicklime.getDust(1), - Materials.Iron.getDust(1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Rutile, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Gold, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Aluminiumoxide, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Vanadium, 1), - new int[] { 5000, 4000, 2000, 2000, 2000, 2000 }, - 45, - 120); + Materials.Pyrope.getDust(1), + null, + Materials.NitricAcid.getFluid(10), + MaterialsOreAlum.SluiceJuice.getFluid(10), + Materials.Aluminiumoxide.getDust(1), + Materials.Magnesia.getDust(1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Silver, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Iron, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Calcite, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Vanadium, 1), + new int[] { 5000, 4000, 2000, 2000, 2000, 2000 }, + 45, + 120); GT_Values.RA.addCentrifugeRecipe( - Materials.Uvarovite.getDust(1), - null, - Materials.NitricAcid.getFluid(10), - MaterialsOreAlum.SluiceJuice.getFluid(10), - Materials.Quicklime.getDust(1), - Materials.Chrome.getDust(1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Silver, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Iron, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Aluminiumoxide, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Manganese, 1), - new int[] { 5000, 1000, 2000, 2000, 2000, 2000 }, - 45, - 120); + Materials.Almandine.getDust(1), + null, + Materials.NitricAcid.getFluid(10), + MaterialsOreAlum.SluiceJuice.getFluid(10), + Materials.Aluminiumoxide.getDust(1), + Materials.Iron.getDust(1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Gold, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Chrome, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Calcite, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Vanadium, 1), + new int[] { 5000, 4000, 2000, 2000, 2000, 2000 }, + 45, + 120); GT_Values.RA.addCentrifugeRecipe( - Materials.Grossular.getDust(1), - null, - Materials.NitricAcid.getFluid(10), - MaterialsOreAlum.SluiceJuice.getFluid(10), - Materials.Quicklime.getDust(1), - Materials.Aluminiumoxide.getDust(1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Gold, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Iron, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Calcite, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Vanadium, 1), - new int[] { 5000, 4000, 2000, 2000, 2000, 2000 }, - 45, - 120); + Materials.Spessartine.getDust(1), + null, + Materials.NitricAcid.getFluid(10), + MaterialsOreAlum.SluiceJuice.getFluid(10), + Materials.Aluminiumoxide.getDust(1), + Materials.Pyrolusite.getDust(1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Tantalum, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Iron, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Calcite, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Magnesium, 1), + new int[] { 5000, 4000, 2000, 2000, 2000, 2000 }, + 45, + 120); + + GT_Values.RA.addCentrifugeRecipe( + Materials.Andradite.getDust(1), + null, + Materials.NitricAcid.getFluid(10), + MaterialsOreAlum.SluiceJuice.getFluid(10), + Materials.Quicklime.getDust(1), + Materials.Iron.getDust(1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Rutile, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Gold, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Aluminiumoxide, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Vanadium, 1), + new int[] { 5000, 4000, 2000, 2000, 2000, 2000 }, + 45, + 120); + + GT_Values.RA.addCentrifugeRecipe( + Materials.Uvarovite.getDust(1), + null, + Materials.NitricAcid.getFluid(10), + MaterialsOreAlum.SluiceJuice.getFluid(10), + Materials.Quicklime.getDust(1), + Materials.Chrome.getDust(1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Silver, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Iron, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Aluminiumoxide, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Manganese, 1), + new int[] { 5000, 1000, 2000, 2000, 2000, 2000 }, + 45, + 120); + + GT_Values.RA.addCentrifugeRecipe( + Materials.Grossular.getDust(1), + null, + Materials.NitricAcid.getFluid(10), + MaterialsOreAlum.SluiceJuice.getFluid(10), + Materials.Quicklime.getDust(1), + Materials.Aluminiumoxide.getDust(1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Gold, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Iron, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Calcite, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Vanadium, 1), + new int[] { 5000, 4000, 2000, 2000, 2000, 2000 }, + 45, + 120); } } diff --git a/src/main/java/gregtech/loaders/postload/chains/GT_NaniteChain.java b/src/main/java/gregtech/loaders/postload/chains/GT_NaniteChain.java index 63e4ab98ea..8413fc672f 100644 --- a/src/main/java/gregtech/loaders/postload/chains/GT_NaniteChain.java +++ b/src/main/java/gregtech/loaders/postload/chains/GT_NaniteChain.java @@ -29,35 +29,34 @@ public class GT_NaniteChain { // Carbon Nanite Recipe Before Nano Forge Fluid solderIndalloy = FluidRegistry.getFluid("molten.indalloy140") != null - ? FluidRegistry.getFluid("molten.indalloy140") - : FluidRegistry.getFluid("molten.solderingalloy"); + ? FluidRegistry.getFluid("molten.indalloy140") + : FluidRegistry.getFluid("molten.solderingalloy"); GT_Values.RA.addAssemblylineRecipe( - Materials.Carbon.getNanite(1), - 3600 * 20, - new Object[] { ItemList.Hull_UV.get(16), Materials.Carbon.getNanite(16), - ItemList.Field_Generator_ZPM.get(16), ItemList.Conveyor_Module_UV.get(16), - ItemList.Electric_Motor_UV.get(32), - new Object[] { OrePrefixes.circuit.get(Materials.Master), 16 }, - GT_OreDictUnificator.get(OrePrefixes.wireGt08, Materials.Naquadah, 32) }, - new FluidStack[] { new FluidStack(solderIndalloy, 144 * 32), Materials.HSSS.getMolten(144L * 32), - Materials.Osmiridium.getMolten(144L * 16) }, - ItemList.NanoForge.get(1), - 2400 * 20, - (int) GT_Values.VP[7]); + Materials.Carbon.getNanite(1), + 3600 * 20, + new Object[] { ItemList.Hull_UV.get(16), Materials.Carbon.getNanite(16), + ItemList.Field_Generator_ZPM.get(16), ItemList.Conveyor_Module_UV.get(16), + ItemList.Electric_Motor_UV.get(32), new Object[] { OrePrefixes.circuit.get(Materials.Master), 16 }, + GT_OreDictUnificator.get(OrePrefixes.wireGt08, Materials.Naquadah, 32) }, + new FluidStack[] { new FluidStack(solderIndalloy, 144 * 32), Materials.HSSS.getMolten(144L * 32), + Materials.Osmiridium.getMolten(144L * 16) }, + ItemList.NanoForge.get(1), + 2400 * 20, + (int) GT_Values.VP[7]); GT_Values.RA.addAssemblylineRecipe( - ItemList.Circuit_Crystalmainframe.get(1), - 144000, - new Object[] { new Object[] { OrePrefixes.circuit.get(Materials.SuperconductorUHV), 16 }, - ItemList.Robot_Arm_UV.get(16), ItemList.Circuit_Chip_Stemcell.get(32), - GT_OreDictUnificator.get(OrePrefixes.ring, Materials.NaquadahAlloy, 32), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.NaquadahAlloy, 16), - Materials.Carbon.getDust(64) }, - new FluidStack[] { Materials.UUMatter.getFluid(10000), new FluidStack(solderIndalloy, 144 * 32) }, - Materials.Carbon.getNanite(2), - 50 * 20, - (int) GT_Values.VP[8]); + ItemList.Circuit_Crystalmainframe.get(1), + 144000, + new Object[] { new Object[] { OrePrefixes.circuit.get(Materials.SuperconductorUHV), 16 }, + ItemList.Robot_Arm_UV.get(16), ItemList.Circuit_Chip_Stemcell.get(32), + GT_OreDictUnificator.get(OrePrefixes.ring, Materials.NaquadahAlloy, 32), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.NaquadahAlloy, 16), + Materials.Carbon.getDust(64) }, + new FluidStack[] { Materials.UUMatter.getFluid(10000), new FluidStack(solderIndalloy, 144 * 32) }, + Materials.Carbon.getNanite(2), + 50 * 20, + (int) GT_Values.VP[8]); /* * General Rules for making nanite recipes: 1. Never make a nanite that takes a long time to make and only gives @@ -68,137 +67,134 @@ public class GT_NaniteChain { // Carbon Nanites - Used to make more Nano Forge Controllers GT_Values.RA.addNanoForgeRecipe( - new ItemStack[] { aUVTierLens, - getModItem(BartWorks.ID, "bw.werkstoffblockscasingadvanced.01", 8, 31776), - ItemList.Circuit_Chip_SoC.get(64) }, - new FluidStack[] { Materials.UUMatter.getFluid(200_000) }, - new ItemStack[] { Materials.Carbon.getNanite(64), }, - null, - null, - 500 * 20, - 10_000_000, - 1); + new ItemStack[] { aUVTierLens, getModItem(BartWorks.ID, "bw.werkstoffblockscasingadvanced.01", 8, 31776), + ItemList.Circuit_Chip_SoC.get(64) }, + new FluidStack[] { Materials.UUMatter.getFluid(200_000) }, + new ItemStack[] { Materials.Carbon.getNanite(64), }, + null, + null, + 500 * 20, + 10_000_000, + 1); // Silver Nanites - Used in Tier 2 PCB Factory to improve board production GT_Values.RA.addNanoForgeRecipe( - new ItemStack[] { aUEVTierLens, Materials.Silver.getBlocks(8), ItemList.Circuit_Chip_SoC.get(16) }, - new FluidStack[] { Materials.UUMatter.getFluid(200000) }, - new ItemStack[] { Materials.Silver.getNanite(1) }, - null, - null, - 750 * 20, - 10_000_000, - 2); + new ItemStack[] { aUEVTierLens, Materials.Silver.getBlocks(8), ItemList.Circuit_Chip_SoC.get(16) }, + new FluidStack[] { Materials.UUMatter.getFluid(200000) }, + new ItemStack[] { Materials.Silver.getNanite(1) }, + null, + null, + 750 * 20, + 10_000_000, + 2); // Neutronium Nanites - Used to upgrade the Nano Forge to Tier 2 GT_Values.RA.addNanoForgeRecipe( - new ItemStack[] { aUHVTierLens, Materials.Neutronium.getBlocks(8), ItemList.Circuit_Chip_SoC2.get(64), - ItemList.Circuit_Chip_SoC2.get(32) }, - new FluidStack[] { Materials.UUMatter.getFluid(200000) }, - new ItemStack[] { Materials.Neutronium.getNanite(1) }, - null, - null, - 100 * 20, - 100_000_000, - 1); + new ItemStack[] { aUHVTierLens, Materials.Neutronium.getBlocks(8), ItemList.Circuit_Chip_SoC2.get(64), + ItemList.Circuit_Chip_SoC2.get(32) }, + new FluidStack[] { Materials.UUMatter.getFluid(200000) }, + new ItemStack[] { Materials.Neutronium.getNanite(1) }, + null, + null, + 100 * 20, + 100_000_000, + 1); // Glowstone Nanites - Used in the optical circuit line GT_Values.RA.addNanoForgeRecipe( - new ItemStack[] { aUEVTierLens, getModItem(GTPlusPlus.ID, "blockCompressedObsidian", 8, 7), // Double - // compressed - // glowstone - // blocks - // (yes, it's - // not - // obsidian) - ItemList.Circuit_Chip_SoC2.get(64) }, - new FluidStack[] { Materials.UUMatter.getFluid(50000) }, - new ItemStack[] { Materials.Glowstone.getNanite(64) }, - null, - null, - 200 * 20, - 50_000_000, - 2); + new ItemStack[] { aUEVTierLens, getModItem(GTPlusPlus.ID, "blockCompressedObsidian", 8, 7), // Double + // compressed + // glowstone + // blocks + // (yes, it's + // not + // obsidian) + ItemList.Circuit_Chip_SoC2.get(64) }, + new FluidStack[] { Materials.UUMatter.getFluid(50000) }, + new ItemStack[] { Materials.Glowstone.getNanite(64) }, + null, + null, + 200 * 20, + 50_000_000, + 2); // Gold Nanites - Used in Tier 3 PCB Factory to improve board production GT_Values.RA.addNanoForgeRecipe( - new ItemStack[] { aUMVTierLens, Materials.Gold.getBlocks(8), ItemList.Circuit_Chip_SoC.get(16) }, - new FluidStack[] { Materials.UUMatter.getFluid(300000) }, - new ItemStack[] { Materials.Gold.getNanite(1) }, - null, - null, - 1_000 * 20, - 100_000_000, - 3); + new ItemStack[] { aUMVTierLens, Materials.Gold.getBlocks(8), ItemList.Circuit_Chip_SoC.get(16) }, + new FluidStack[] { Materials.UUMatter.getFluid(300000) }, + new ItemStack[] { Materials.Gold.getNanite(1) }, + null, + null, + 1_000 * 20, + 100_000_000, + 3); // Transcendent Metal Nanites - Used to upgrade the Nano Forge to Tier 3 GT_Values.RA.addNanoForgeRecipe( - new ItemStack[] { aUIVTierLens, Materials.TranscendentMetal.getBlocks(8), - ItemList.Circuit_Chip_SoC2.get(64), ItemList.Circuit_Chip_SoC2.get(64), - ItemList.Circuit_Chip_SoC2.get(64) }, - new FluidStack[] { Materials.UUMatter.getFluid(2000000) }, - new ItemStack[] { Materials.TranscendentMetal.getNanite(1) }, - null, - null, - 750 * 20, - 1_000_000_000, - 2); + new ItemStack[] { aUIVTierLens, Materials.TranscendentMetal.getBlocks(8), + ItemList.Circuit_Chip_SoC2.get(64), ItemList.Circuit_Chip_SoC2.get(64), + ItemList.Circuit_Chip_SoC2.get(64) }, + new FluidStack[] { Materials.UUMatter.getFluid(2000000) }, + new ItemStack[] { Materials.TranscendentMetal.getNanite(1) }, + null, + null, + 750 * 20, + 1_000_000_000, + 2); // White Dwarf Matter Nanites. Used to make Magnetohydrodynamically constrained star matter. GT_Values.RA.addNanoForgeRecipe( - new ItemStack[] { aUMVTierLens, getModItem(BartWorks.ID, "gt.bwMetaGeneratedlens", 0, 36), // Magneto - // lens - getModItem(GTPlusPlus.ID, "MU-metaitem.01", 0, 32105), // Quantum Anomaly, couldn't find any - // better naming - Materials.WhiteDwarfMatter.getBlocks(8), - getModItem(NewHorizonsCoreMod.ID, "item.PicoWafer", 32), - getModItem(GoodGenerator.ID, "huiCircuit", 1, 4) // Paradox circuit - }, - new FluidStack[] { Materials.UUMatter.getFluid(500_000), Materials.RawStarMatter.getFluid(50_000), - Materials.Space.getMolten(720), }, - new ItemStack[] { Materials.WhiteDwarfMatter.getNanite(4) }, - null, - null, - 750 * 20, - 2_000_000_000, - 3); + new ItemStack[] { aUMVTierLens, getModItem(BartWorks.ID, "gt.bwMetaGeneratedlens", 0, 36), // Magneto + // lens + getModItem(GTPlusPlus.ID, "MU-metaitem.01", 0, 32105), // Quantum Anomaly, couldn't find any + // better naming + Materials.WhiteDwarfMatter.getBlocks(8), getModItem(NewHorizonsCoreMod.ID, "item.PicoWafer", 32), + getModItem(GoodGenerator.ID, "huiCircuit", 1, 4) // Paradox circuit + }, + new FluidStack[] { Materials.UUMatter.getFluid(500_000), Materials.RawStarMatter.getFluid(50_000), + Materials.Space.getMolten(720), }, + new ItemStack[] { Materials.WhiteDwarfMatter.getNanite(4) }, + null, + null, + 750 * 20, + 2_000_000_000, + 3); // Black Dwarf Matter Nanites. Used to make Magnetohydrodynamically constrained star matter. GT_Values.RA.addNanoForgeRecipe( - new ItemStack[] { aUMVTierLens, getModItem(BartWorks.ID, "gt.bwMetaGeneratedlens", 0, 36), // Magneto - // lens - getModItem(GTPlusPlus.ID, "MU-metaitem.01", 0, 32105), // Quantum Anomaly, couldn't find any - // better naming - Materials.BlackDwarfMatter.getBlocks(8), - getModItem(NewHorizonsCoreMod.ID, "item.PicoWafer", 32), - getModItem(GoodGenerator.ID, "huiCircuit", 1, 4) // Paradox circuit - }, - new FluidStack[] { Materials.UUMatter.getFluid(500_000), Materials.RawStarMatter.getFluid(50_000), - Materials.Time.getMolten(720), }, - new ItemStack[] { Materials.BlackDwarfMatter.getNanite(4) }, - null, - null, - 750 * 20, - 2_000_000_000, - 3); + new ItemStack[] { aUMVTierLens, getModItem(BartWorks.ID, "gt.bwMetaGeneratedlens", 0, 36), // Magneto + // lens + getModItem(GTPlusPlus.ID, "MU-metaitem.01", 0, 32105), // Quantum Anomaly, couldn't find any + // better naming + Materials.BlackDwarfMatter.getBlocks(8), getModItem(NewHorizonsCoreMod.ID, "item.PicoWafer", 32), + getModItem(GoodGenerator.ID, "huiCircuit", 1, 4) // Paradox circuit + }, + new FluidStack[] { Materials.UUMatter.getFluid(500_000), Materials.RawStarMatter.getFluid(50_000), + Materials.Time.getMolten(720), }, + new ItemStack[] { Materials.BlackDwarfMatter.getNanite(4) }, + null, + null, + 750 * 20, + 2_000_000_000, + 3); // Universium nanites. GT_Values.RA.addNanoForgeRecipe( - new ItemStack[] { aUMVTierLens, - // Quantum Anomaly, couldn't find any better naming. - getModItem(GTPlusPlus.ID, "MU-metaitem.01", 0, 32105), Materials.Universium.getBlocks(8), - - ItemList.Optically_Perfected_CPU.get(16), ItemList.Optically_Compatible_Memory.get(16), - getModItem(GoodGenerator.ID, "huiCircuit", 1, 4) // Paradox circuit - }, - new FluidStack[] { Materials.SpaceTime.getMolten(144), Materials.Infinity.getMolten(576), - Materials.UUMatter.getFluid(1_000_000), }, - new ItemStack[] { Materials.Universium.getNanite(2) }, - null, - null, - 750 * 20, - 2_000_000_000, - 3); + new ItemStack[] { aUMVTierLens, + // Quantum Anomaly, couldn't find any better naming. + getModItem(GTPlusPlus.ID, "MU-metaitem.01", 0, 32105), Materials.Universium.getBlocks(8), + + ItemList.Optically_Perfected_CPU.get(16), ItemList.Optically_Compatible_Memory.get(16), + getModItem(GoodGenerator.ID, "huiCircuit", 1, 4) // Paradox circuit + }, + new FluidStack[] { Materials.SpaceTime.getMolten(144), Materials.Infinity.getMolten(576), + Materials.UUMatter.getFluid(1_000_000), }, + new ItemStack[] { Materials.Universium.getNanite(2) }, + null, + null, + 750 * 20, + 2_000_000_000, + 3); } } diff --git a/src/main/java/gregtech/loaders/postload/chains/GT_PCBFactoryRecipes.java b/src/main/java/gregtech/loaders/postload/chains/GT_PCBFactoryRecipes.java index 51f8c930bf..432ee6d0bb 100644 --- a/src/main/java/gregtech/loaders/postload/chains/GT_PCBFactoryRecipes.java +++ b/src/main/java/gregtech/loaders/postload/chains/GT_PCBFactoryRecipes.java @@ -30,51 +30,50 @@ public class GT_PCBFactoryRecipes { final int mTier1BitMap = 0b1; final Fluid solderLuV = FluidRegistry.getFluid("molten.indalloy140") != null - ? FluidRegistry.getFluid("molten.indalloy140") - : FluidRegistry.getFluid("molten.solderingalloy"); + ? FluidRegistry.getFluid("molten.indalloy140") + : FluidRegistry.getFluid("molten.solderingalloy"); // Load Multi Recipes GT_Values.RA.addAssemblylineRecipe( - ItemList.Circuit_Board_Wetware.get(1), - 3600, - new Object[] { GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Neutronium, 32), - ItemList.Machine_ZPM_CircuitAssembler.get(4), - new Object[] { OrePrefixes.circuit.get(Materials.Master), 16 }, ItemList.Robot_Arm_ZPM.get(8) }, - new FluidStack[] { new FluidStack(solderLuV, 144 * 36), Materials.Naquadah.getMolten(144 * 18) }, - ItemList.PCBFactory.get(1), - 6000 * 20, - (int) GT_Values.VP[8]); + ItemList.Circuit_Board_Wetware.get(1), + 3600, + new Object[] { GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Neutronium, 32), + ItemList.Machine_ZPM_CircuitAssembler.get(4), + new Object[] { OrePrefixes.circuit.get(Materials.Master), 16 }, ItemList.Robot_Arm_ZPM.get(8) }, + new FluidStack[] { new FluidStack(solderLuV, 144 * 36), Materials.Naquadah.getMolten(144 * 18) }, + ItemList.PCBFactory.get(1), + 6000 * 20, + (int) GT_Values.VP[8]); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.NaquadahAlloy, 1), - Materials.get("Artherium-Sn") - .getPlates(6) }, - null, - ItemList.BasicPhotolithographicFrameworkCasing.get(1), - 30 * 20, - (int) GT_Values.VP[7]); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.NaquadahAlloy, 1), + Materials.get("Artherium-Sn") + .getPlates(6) }, + null, + ItemList.BasicPhotolithographicFrameworkCasing.get(1), + 30 * 20, + (int) GT_Values.VP[7]); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Infinity, 1), - Materials.EnrichedHolmium.getPlates(6) }, - null, - ItemList.ReinforcedPhotolithographicFrameworkCasing.get(1), - 30 * 20, - (int) GT_Values.VP[9]); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Infinity, 1), + Materials.EnrichedHolmium.getPlates(6) }, + null, + ItemList.ReinforcedPhotolithographicFrameworkCasing.get(1), + 30 * 20, + (int) GT_Values.VP[9]); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_ModHandler.getModItem(GTPlusPlus.ID, "blockFrameGtCelestialTungsten", 1), - Materials.get("Quantum") - .getPlates(6) }, - null, - ItemList.RadiationProofPhotolithographicFrameworkCasing.get(1), - 30 * 20, - (int) GT_Values.VP[11]); + new ItemStack[] { GT_ModHandler.getModItem(GTPlusPlus.ID, "blockFrameGtCelestialTungsten", 1), + Materials.get("Quantum") + .getPlates(6) }, + null, + ItemList.RadiationProofPhotolithographicFrameworkCasing.get(1), + 30 * 20, + (int) GT_Values.VP[11]); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_ModHandler.getModItem(GTPlusPlus.ID, "blockFrameGtHypogen", 1), - GT_OreDictUnificator.get(OrePrefixes.rotor, Materials.Infinity, 2), - Materials.Thulium.getPlates(6) }, - Materials.SpaceTime.getMolten(144 * 8), - ItemList.InfinityCooledCasing.get(1), - 10 * 20, - (int) GT_Values.VP[12]); + new ItemStack[] { GT_ModHandler.getModItem(GTPlusPlus.ID, "blockFrameGtHypogen", 1), + GT_OreDictUnificator.get(OrePrefixes.rotor, Materials.Infinity, 2), Materials.Thulium.getPlates(6) }, + Materials.SpaceTime.getMolten(144 * 8), + ItemList.InfinityCooledCasing.get(1), + 10 * 20, + (int) GT_Values.VP[12]); // Load CircuitBoard Recipes @@ -88,23 +87,18 @@ public class GT_PCBFactoryRecipes { } aBoards.add(ItemList.Circuit_Board_Plastic_Advanced.get(amountOfBoards)); GT_Values.RA.addPCBFactoryRecipe( - new ItemStack[] { GT_Utility.getIntegratedCircuit(1), - GT_PCBFactoryManager.getPlasticMaterialFromTier(tier) - .getPlates(1), - GT_OreDictUnificator.get( - OrePrefixes.foil, - Materials.AnnealedCopper, - (long) (16 * (Math.sqrt(tier)))), - GT_OreDictUnificator.get( - OrePrefixes.foil, - Materials.Copper, - (long) (16 * (Math.sqrt(tier)))) }, - new FluidStack[] { Materials.SulfuricAcid.getFluid((long) (500 * (Math.sqrt(tier)))), - Materials.IronIIIChloride.getFluid((long) (250 * (Math.sqrt(tier)))) }, - aBoards.toArray(new ItemStack[0]), - (int) Math.ceil(600 / Math.sqrt(Math.pow(1.5, tier - 1.5))), - (int) GT_Values.VP[tier] * 3 / 4, - mTier1BitMap | mTier2BitMap | mTier3BitMap); + new ItemStack[] { GT_Utility.getIntegratedCircuit(1), + GT_PCBFactoryManager.getPlasticMaterialFromTier(tier) + .getPlates(1), + GT_OreDictUnificator + .get(OrePrefixes.foil, Materials.AnnealedCopper, (long) (16 * (Math.sqrt(tier)))), + GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Copper, (long) (16 * (Math.sqrt(tier)))) }, + new FluidStack[] { Materials.SulfuricAcid.getFluid((long) (500 * (Math.sqrt(tier)))), + Materials.IronIIIChloride.getFluid((long) (250 * (Math.sqrt(tier)))) }, + aBoards.toArray(new ItemStack[0]), + (int) Math.ceil(600 / Math.sqrt(Math.pow(1.5, tier - 1.5))), + (int) GT_Values.VP[tier] * 3 / 4, + mTier1BitMap | mTier2BitMap | mTier3BitMap); } for (int tier = 1; tier <= GT_PCBFactoryManager.mTiersOfPlastics; tier++) { int amountOfBoards = (int) Math.ceil(8 * (Math.sqrt(Math.pow(2, tier - 0.5)))); @@ -115,24 +109,18 @@ public class GT_PCBFactoryRecipes { } aBoards.add(ItemList.Circuit_Board_Plastic_Advanced.get(amountOfBoards)); GT_Values.RA.addPCBFactoryRecipe( - new ItemStack[] { GT_Utility.getIntegratedCircuit(2), - GT_Utility.getNaniteAsCatalyst(Materials.Silver), - GT_PCBFactoryManager.getPlasticMaterialFromTier(tier) - .getPlates(1), - GT_OreDictUnificator.get( - OrePrefixes.foil, - Materials.AnnealedCopper, - (long) (16 * (Math.sqrt(tier)))), - GT_OreDictUnificator.get( - OrePrefixes.foil, - Materials.Copper, - (long) (16 * (Math.sqrt(tier)))) }, - new FluidStack[] { Materials.SulfuricAcid.getFluid((long) (500 * (Math.sqrt(tier)))), - Materials.IronIIIChloride.getFluid((long) (250 * (Math.sqrt(tier)))) }, - aBoards.toArray(new ItemStack[0]), - (int) Math.ceil(500 / Math.sqrt(Math.pow(1.5, tier - 1.5))), - (int) GT_Values.VP[tier + 1] * 3 / 4, - mTier2BitMap | mTier3BitMap); + new ItemStack[] { GT_Utility.getIntegratedCircuit(2), GT_Utility.getNaniteAsCatalyst(Materials.Silver), + GT_PCBFactoryManager.getPlasticMaterialFromTier(tier) + .getPlates(1), + GT_OreDictUnificator + .get(OrePrefixes.foil, Materials.AnnealedCopper, (long) (16 * (Math.sqrt(tier)))), + GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Copper, (long) (16 * (Math.sqrt(tier)))) }, + new FluidStack[] { Materials.SulfuricAcid.getFluid((long) (500 * (Math.sqrt(tier)))), + Materials.IronIIIChloride.getFluid((long) (250 * (Math.sqrt(tier)))) }, + aBoards.toArray(new ItemStack[0]), + (int) Math.ceil(500 / Math.sqrt(Math.pow(1.5, tier - 1.5))), + (int) GT_Values.VP[tier + 1] * 3 / 4, + mTier2BitMap | mTier3BitMap); } for (int tier = 1; tier <= GT_PCBFactoryManager.mTiersOfPlastics; tier++) { int amountOfBoards = (int) Math.ceil(8 * (Math.sqrt(Math.pow(2, tier)))); @@ -143,24 +131,18 @@ public class GT_PCBFactoryRecipes { } aBoards.add(ItemList.Circuit_Board_Plastic_Advanced.get(amountOfBoards)); GT_Values.RA.addPCBFactoryRecipe( - new ItemStack[] { GT_Utility.getIntegratedCircuit(3), - GT_Utility.getNaniteAsCatalyst(Materials.Gold), - GT_PCBFactoryManager.getPlasticMaterialFromTier(tier) - .getPlates(1), - GT_OreDictUnificator.get( - OrePrefixes.foil, - Materials.AnnealedCopper, - (long) (16 * (Math.sqrt(tier)))), - GT_OreDictUnificator.get( - OrePrefixes.foil, - Materials.Copper, - (long) (16 * (Math.sqrt(tier)))) }, - new FluidStack[] { Materials.SulfuricAcid.getFluid((long) (500 * (Math.sqrt(tier)))), - Materials.IronIIIChloride.getFluid((long) (250 * (Math.sqrt(tier)))) }, - aBoards.toArray(new ItemStack[0]), - (int) Math.ceil(400 / Math.sqrt(Math.pow(1.5, tier - 1.5))), - (int) GT_Values.VP[tier + 1] * 3 / 4, - mTier3BitMap); + new ItemStack[] { GT_Utility.getIntegratedCircuit(3), GT_Utility.getNaniteAsCatalyst(Materials.Gold), + GT_PCBFactoryManager.getPlasticMaterialFromTier(tier) + .getPlates(1), + GT_OreDictUnificator + .get(OrePrefixes.foil, Materials.AnnealedCopper, (long) (16 * (Math.sqrt(tier)))), + GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Copper, (long) (16 * (Math.sqrt(tier)))) }, + new FluidStack[] { Materials.SulfuricAcid.getFluid((long) (500 * (Math.sqrt(tier)))), + Materials.IronIIIChloride.getFluid((long) (250 * (Math.sqrt(tier)))) }, + aBoards.toArray(new ItemStack[0]), + (int) Math.ceil(400 / Math.sqrt(Math.pow(1.5, tier - 1.5))), + (int) GT_Values.VP[tier + 1] * 3 / 4, + mTier3BitMap); } // Advanced Circuit Board @@ -173,23 +155,18 @@ public class GT_PCBFactoryRecipes { } aBoards.add(ItemList.Circuit_Board_Epoxy_Advanced.get(amountOfBoards)); GT_Values.RA.addPCBFactoryRecipe( - new ItemStack[] { GT_Utility.getIntegratedCircuit(1), - GT_PCBFactoryManager.getPlasticMaterialFromTier(tier) - .getPlates(1), - GT_OreDictUnificator.get( - OrePrefixes.foil, - Materials.Gold, - (long) (16 * (Math.sqrt(tier - 1)))), - GT_OreDictUnificator.get( - OrePrefixes.foil, - Materials.Electrum, - (long) (16 * (Math.sqrt(tier - 1)))) }, - new FluidStack[] { Materials.SulfuricAcid.getFluid((long) (500 * (Math.sqrt(tier - 1)))), - Materials.IronIIIChloride.getFluid((long) (500 * (Math.sqrt(tier - 1)))) }, - aBoards.toArray(new ItemStack[0]), - (int) Math.ceil(600 / Math.sqrt(Math.pow(1.5, tier - 2.5))), - (int) GT_Values.VP[tier] * 3 / 4, - mTier1BitMap | mTier2BitMap | mTier3BitMap); + new ItemStack[] { GT_Utility.getIntegratedCircuit(1), + GT_PCBFactoryManager.getPlasticMaterialFromTier(tier) + .getPlates(1), + GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Gold, (long) (16 * (Math.sqrt(tier - 1)))), + GT_OreDictUnificator + .get(OrePrefixes.foil, Materials.Electrum, (long) (16 * (Math.sqrt(tier - 1)))) }, + new FluidStack[] { Materials.SulfuricAcid.getFluid((long) (500 * (Math.sqrt(tier - 1)))), + Materials.IronIIIChloride.getFluid((long) (500 * (Math.sqrt(tier - 1)))) }, + aBoards.toArray(new ItemStack[0]), + (int) Math.ceil(600 / Math.sqrt(Math.pow(1.5, tier - 2.5))), + (int) GT_Values.VP[tier] * 3 / 4, + mTier1BitMap | mTier2BitMap | mTier3BitMap); } for (int tier = 2; tier <= GT_PCBFactoryManager.mTiersOfPlastics; tier++) { int amountOfBoards = (int) Math.ceil(8 * (Math.sqrt(Math.pow(2, tier - 1.5)))); @@ -200,24 +177,18 @@ public class GT_PCBFactoryRecipes { } aBoards.add(ItemList.Circuit_Board_Epoxy_Advanced.get(amountOfBoards)); GT_Values.RA.addPCBFactoryRecipe( - new ItemStack[] { GT_Utility.getIntegratedCircuit(2), - GT_Utility.getNaniteAsCatalyst(Materials.Silver), - GT_PCBFactoryManager.getPlasticMaterialFromTier(tier) - .getPlates(1), - GT_OreDictUnificator.get( - OrePrefixes.foil, - Materials.Gold, - (long) (16 * (Math.sqrt(tier - 1)))), - GT_OreDictUnificator.get( - OrePrefixes.foil, - Materials.Electrum, - (long) (16 * (Math.sqrt(tier - 1)))) }, - new FluidStack[] { Materials.SulfuricAcid.getFluid((long) (500 * (Math.sqrt(tier - 1)))), - Materials.IronIIIChloride.getFluid((long) (500 * (Math.sqrt(tier - 1)))) }, - aBoards.toArray(new ItemStack[0]), - (int) Math.ceil(500 / Math.sqrt(Math.pow(1.5, tier - 2.5))), - (int) GT_Values.VP[tier + 1] * 3 / 4, - mTier2BitMap | mTier3BitMap); + new ItemStack[] { GT_Utility.getIntegratedCircuit(2), GT_Utility.getNaniteAsCatalyst(Materials.Silver), + GT_PCBFactoryManager.getPlasticMaterialFromTier(tier) + .getPlates(1), + GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Gold, (long) (16 * (Math.sqrt(tier - 1)))), + GT_OreDictUnificator + .get(OrePrefixes.foil, Materials.Electrum, (long) (16 * (Math.sqrt(tier - 1)))) }, + new FluidStack[] { Materials.SulfuricAcid.getFluid((long) (500 * (Math.sqrt(tier - 1)))), + Materials.IronIIIChloride.getFluid((long) (500 * (Math.sqrt(tier - 1)))) }, + aBoards.toArray(new ItemStack[0]), + (int) Math.ceil(500 / Math.sqrt(Math.pow(1.5, tier - 2.5))), + (int) GT_Values.VP[tier + 1] * 3 / 4, + mTier2BitMap | mTier3BitMap); } for (int tier = 2; tier <= GT_PCBFactoryManager.mTiersOfPlastics; tier++) { int amountOfBoards = (int) Math.ceil(8 * (Math.sqrt(Math.pow(2, tier - 1)))); @@ -228,24 +199,18 @@ public class GT_PCBFactoryRecipes { } aBoards.add(ItemList.Circuit_Board_Epoxy_Advanced.get(amountOfBoards)); GT_Values.RA.addPCBFactoryRecipe( - new ItemStack[] { GT_Utility.getIntegratedCircuit(3), - GT_Utility.getNaniteAsCatalyst(Materials.Gold), - GT_PCBFactoryManager.getPlasticMaterialFromTier(tier) - .getPlates(1), - GT_OreDictUnificator.get( - OrePrefixes.foil, - Materials.Gold, - (long) (16 * (Math.sqrt(tier - 1)))), - GT_OreDictUnificator.get( - OrePrefixes.foil, - Materials.Electrum, - (long) (16 * (Math.sqrt(tier - 1)))) }, - new FluidStack[] { Materials.SulfuricAcid.getFluid((long) (500 * (Math.sqrt(tier - 1)))), - Materials.IronIIIChloride.getFluid((long) (500 * (Math.sqrt(tier - 1)))) }, - aBoards.toArray(new ItemStack[0]), - (int) Math.ceil(400 / Math.sqrt(Math.pow(1.5, tier - 2.5))), - (int) GT_Values.VP[tier + 1] * 3 / 4, - mTier3BitMap); + new ItemStack[] { GT_Utility.getIntegratedCircuit(3), GT_Utility.getNaniteAsCatalyst(Materials.Gold), + GT_PCBFactoryManager.getPlasticMaterialFromTier(tier) + .getPlates(1), + GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Gold, (long) (16 * (Math.sqrt(tier - 1)))), + GT_OreDictUnificator + .get(OrePrefixes.foil, Materials.Electrum, (long) (16 * (Math.sqrt(tier - 1)))) }, + new FluidStack[] { Materials.SulfuricAcid.getFluid((long) (500 * (Math.sqrt(tier - 1)))), + Materials.IronIIIChloride.getFluid((long) (500 * (Math.sqrt(tier - 1)))) }, + aBoards.toArray(new ItemStack[0]), + (int) Math.ceil(400 / Math.sqrt(Math.pow(1.5, tier - 2.5))), + (int) GT_Values.VP[tier + 1] * 3 / 4, + mTier3BitMap); } // More Advanced Circuit Board @@ -258,23 +223,19 @@ public class GT_PCBFactoryRecipes { } aBoards.add(ItemList.Circuit_Board_Fiberglass_Advanced.get(amountOfBoards)); GT_Values.RA.addPCBFactoryRecipe( - new ItemStack[] { GT_Utility.getIntegratedCircuit(1), - GT_PCBFactoryManager.getPlasticMaterialFromTier(tier) - .getPlates(1), - GT_OreDictUnificator.get( - OrePrefixes.foil, - Materials.Aluminium, - (long) (16 * (Math.sqrt(tier - 2)))), - GT_OreDictUnificator.get( - OrePrefixes.foil, - Materials.EnergeticAlloy, - (long) (16 * (Math.sqrt(tier - 2)))) }, - new FluidStack[] { Materials.SulfuricAcid.getFluid((long) (500 * (Math.sqrt(tier - 2)))), - Materials.IronIIIChloride.getFluid((long) (1000 * (Math.sqrt(tier - 2)))) }, - aBoards.toArray(new ItemStack[0]), - (int) Math.ceil(600 / Math.sqrt(Math.pow(1.5, tier - 3.5))), - (int) GT_Values.VP[tier] * 3 / 4, - mTier1BitMap | mTier2BitMap | mTier3BitMap); + new ItemStack[] { GT_Utility.getIntegratedCircuit(1), + GT_PCBFactoryManager.getPlasticMaterialFromTier(tier) + .getPlates(1), + GT_OreDictUnificator + .get(OrePrefixes.foil, Materials.Aluminium, (long) (16 * (Math.sqrt(tier - 2)))), + GT_OreDictUnificator + .get(OrePrefixes.foil, Materials.EnergeticAlloy, (long) (16 * (Math.sqrt(tier - 2)))) }, + new FluidStack[] { Materials.SulfuricAcid.getFluid((long) (500 * (Math.sqrt(tier - 2)))), + Materials.IronIIIChloride.getFluid((long) (1000 * (Math.sqrt(tier - 2)))) }, + aBoards.toArray(new ItemStack[0]), + (int) Math.ceil(600 / Math.sqrt(Math.pow(1.5, tier - 3.5))), + (int) GT_Values.VP[tier] * 3 / 4, + mTier1BitMap | mTier2BitMap | mTier3BitMap); } for (int tier = 3; tier <= GT_PCBFactoryManager.mTiersOfPlastics; tier++) { int amountOfBoards = (int) Math.ceil(8 * (Math.sqrt(Math.pow(2, tier - 2.5)))); @@ -285,24 +246,19 @@ public class GT_PCBFactoryRecipes { } aBoards.add(ItemList.Circuit_Board_Fiberglass_Advanced.get(amountOfBoards)); GT_Values.RA.addPCBFactoryRecipe( - new ItemStack[] { GT_Utility.getIntegratedCircuit(2), - GT_Utility.getNaniteAsCatalyst(Materials.Silver), - GT_PCBFactoryManager.getPlasticMaterialFromTier(tier) - .getPlates(1), - GT_OreDictUnificator.get( - OrePrefixes.foil, - Materials.Aluminium, - (long) (16 * (Math.sqrt(tier - 2)))), - GT_OreDictUnificator.get( - OrePrefixes.foil, - Materials.EnergeticAlloy, - (long) (16 * (Math.sqrt(tier - 2)))) }, - new FluidStack[] { Materials.SulfuricAcid.getFluid((long) (500 * (Math.sqrt(tier - 2)))), - Materials.IronIIIChloride.getFluid((long) (1000 * (Math.sqrt(tier - 2)))) }, - aBoards.toArray(new ItemStack[0]), - (int) Math.ceil(500 / Math.sqrt(Math.pow(1.5, tier - 3.5))), - (int) GT_Values.VP[tier + 1] * 3 / 4, - mTier2BitMap | mTier3BitMap); + new ItemStack[] { GT_Utility.getIntegratedCircuit(2), GT_Utility.getNaniteAsCatalyst(Materials.Silver), + GT_PCBFactoryManager.getPlasticMaterialFromTier(tier) + .getPlates(1), + GT_OreDictUnificator + .get(OrePrefixes.foil, Materials.Aluminium, (long) (16 * (Math.sqrt(tier - 2)))), + GT_OreDictUnificator + .get(OrePrefixes.foil, Materials.EnergeticAlloy, (long) (16 * (Math.sqrt(tier - 2)))) }, + new FluidStack[] { Materials.SulfuricAcid.getFluid((long) (500 * (Math.sqrt(tier - 2)))), + Materials.IronIIIChloride.getFluid((long) (1000 * (Math.sqrt(tier - 2)))) }, + aBoards.toArray(new ItemStack[0]), + (int) Math.ceil(500 / Math.sqrt(Math.pow(1.5, tier - 3.5))), + (int) GT_Values.VP[tier + 1] * 3 / 4, + mTier2BitMap | mTier3BitMap); } for (int tier = 3; tier <= GT_PCBFactoryManager.mTiersOfPlastics; tier++) { int amountOfBoards = (int) Math.ceil(8 * (Math.sqrt(Math.pow(2, tier - 2)))); @@ -313,24 +269,19 @@ public class GT_PCBFactoryRecipes { } aBoards.add(ItemList.Circuit_Board_Fiberglass_Advanced.get(amountOfBoards)); GT_Values.RA.addPCBFactoryRecipe( - new ItemStack[] { GT_Utility.getIntegratedCircuit(3), - GT_Utility.getNaniteAsCatalyst(Materials.Gold), - GT_PCBFactoryManager.getPlasticMaterialFromTier(tier) - .getPlates(1), - GT_OreDictUnificator.get( - OrePrefixes.foil, - Materials.Aluminium, - (long) (16 * (Math.sqrt(tier - 2)))), - GT_OreDictUnificator.get( - OrePrefixes.foil, - Materials.EnergeticAlloy, - (long) (16 * (Math.sqrt(tier - 2)))) }, - new FluidStack[] { Materials.SulfuricAcid.getFluid((long) (500 * (Math.sqrt(tier - 2)))), - Materials.IronIIIChloride.getFluid((long) (1000 * (Math.sqrt(tier - 2)))) }, - aBoards.toArray(new ItemStack[0]), - (int) Math.ceil(400 / Math.sqrt(Math.pow(1.5, tier - 3.5))), - (int) GT_Values.VP[tier + 1] * 3 / 4, - mTier3BitMap); + new ItemStack[] { GT_Utility.getIntegratedCircuit(3), GT_Utility.getNaniteAsCatalyst(Materials.Gold), + GT_PCBFactoryManager.getPlasticMaterialFromTier(tier) + .getPlates(1), + GT_OreDictUnificator + .get(OrePrefixes.foil, Materials.Aluminium, (long) (16 * (Math.sqrt(tier - 2)))), + GT_OreDictUnificator + .get(OrePrefixes.foil, Materials.EnergeticAlloy, (long) (16 * (Math.sqrt(tier - 2)))) }, + new FluidStack[] { Materials.SulfuricAcid.getFluid((long) (500 * (Math.sqrt(tier - 2)))), + Materials.IronIIIChloride.getFluid((long) (1000 * (Math.sqrt(tier - 2)))) }, + aBoards.toArray(new ItemStack[0]), + (int) Math.ceil(400 / Math.sqrt(Math.pow(1.5, tier - 3.5))), + (int) GT_Values.VP[tier + 1] * 3 / 4, + mTier3BitMap); } // Elite Circuit Board @@ -343,23 +294,19 @@ public class GT_PCBFactoryRecipes { } aBoards.add(ItemList.Circuit_Board_Multifiberglass_Elite.get(amountOfBoards)); GT_Values.RA.addPCBFactoryRecipe( - new ItemStack[] { GT_Utility.getIntegratedCircuit(1), - GT_PCBFactoryManager.getPlasticMaterialFromTier(tier) - .getPlates(1), - GT_OreDictUnificator.get( - OrePrefixes.foil, - Materials.Palladium, - (long) (16 * (Math.sqrt(tier - 3)))), - GT_OreDictUnificator.get( - OrePrefixes.foil, - Materials.Platinum, - (long) (16 * (Math.sqrt(tier - 3)))) }, - new FluidStack[] { Materials.SulfuricAcid.getFluid((long) (500 * (Math.sqrt(tier - 3)))), - Materials.IronIIIChloride.getFluid((long) (2000 * (Math.sqrt(tier - 3)))) }, - aBoards.toArray(new ItemStack[0]), - (int) Math.ceil(600 / Math.sqrt(Math.pow(1.5, tier - 4.5))), - (int) GT_Values.VP[tier] * 3 / 4, - mTier1BitMap | mTier2BitMap | mTier3BitMap); + new ItemStack[] { GT_Utility.getIntegratedCircuit(1), + GT_PCBFactoryManager.getPlasticMaterialFromTier(tier) + .getPlates(1), + GT_OreDictUnificator + .get(OrePrefixes.foil, Materials.Palladium, (long) (16 * (Math.sqrt(tier - 3)))), + GT_OreDictUnificator + .get(OrePrefixes.foil, Materials.Platinum, (long) (16 * (Math.sqrt(tier - 3)))) }, + new FluidStack[] { Materials.SulfuricAcid.getFluid((long) (500 * (Math.sqrt(tier - 3)))), + Materials.IronIIIChloride.getFluid((long) (2000 * (Math.sqrt(tier - 3)))) }, + aBoards.toArray(new ItemStack[0]), + (int) Math.ceil(600 / Math.sqrt(Math.pow(1.5, tier - 4.5))), + (int) GT_Values.VP[tier] * 3 / 4, + mTier1BitMap | mTier2BitMap | mTier3BitMap); } for (int tier = 4; tier <= GT_PCBFactoryManager.mTiersOfPlastics; tier++) { int amountOfBoards = (int) Math.ceil(8 * (Math.sqrt(Math.pow(2, tier - 3.5)))); @@ -370,24 +317,19 @@ public class GT_PCBFactoryRecipes { } aBoards.add(ItemList.Circuit_Board_Multifiberglass_Elite.get(amountOfBoards)); GT_Values.RA.addPCBFactoryRecipe( - new ItemStack[] { GT_Utility.getIntegratedCircuit(2), - GT_Utility.getNaniteAsCatalyst(Materials.Silver), - GT_PCBFactoryManager.getPlasticMaterialFromTier(tier) - .getPlates(1), - GT_OreDictUnificator.get( - OrePrefixes.foil, - Materials.Palladium, - (long) (16 * (Math.sqrt(tier - 3)))), - GT_OreDictUnificator.get( - OrePrefixes.foil, - Materials.Platinum, - (long) (16 * (Math.sqrt(tier - 3)))) }, - new FluidStack[] { Materials.SulfuricAcid.getFluid((long) (500 * (Math.sqrt(tier - 3)))), - Materials.IronIIIChloride.getFluid((long) (2000 * (Math.sqrt(tier - 3)))) }, - aBoards.toArray(new ItemStack[0]), - (int) Math.ceil(500 / Math.sqrt(Math.pow(1.5, tier - 4.5))), - (int) GT_Values.VP[tier + 1] * 3 / 4, - mTier2BitMap | mTier3BitMap); + new ItemStack[] { GT_Utility.getIntegratedCircuit(2), GT_Utility.getNaniteAsCatalyst(Materials.Silver), + GT_PCBFactoryManager.getPlasticMaterialFromTier(tier) + .getPlates(1), + GT_OreDictUnificator + .get(OrePrefixes.foil, Materials.Palladium, (long) (16 * (Math.sqrt(tier - 3)))), + GT_OreDictUnificator + .get(OrePrefixes.foil, Materials.Platinum, (long) (16 * (Math.sqrt(tier - 3)))) }, + new FluidStack[] { Materials.SulfuricAcid.getFluid((long) (500 * (Math.sqrt(tier - 3)))), + Materials.IronIIIChloride.getFluid((long) (2000 * (Math.sqrt(tier - 3)))) }, + aBoards.toArray(new ItemStack[0]), + (int) Math.ceil(500 / Math.sqrt(Math.pow(1.5, tier - 4.5))), + (int) GT_Values.VP[tier + 1] * 3 / 4, + mTier2BitMap | mTier3BitMap); } for (int tier = 4; tier <= GT_PCBFactoryManager.mTiersOfPlastics; tier++) { int amountOfBoards = (int) Math.ceil(8 * (Math.sqrt(Math.pow(2, tier - 3)))); @@ -398,24 +340,19 @@ public class GT_PCBFactoryRecipes { } aBoards.add(ItemList.Circuit_Board_Multifiberglass_Elite.get(amountOfBoards)); GT_Values.RA.addPCBFactoryRecipe( - new ItemStack[] { GT_Utility.getIntegratedCircuit(3), - GT_Utility.getNaniteAsCatalyst(Materials.Gold), - GT_PCBFactoryManager.getPlasticMaterialFromTier(tier) - .getPlates(1), - GT_OreDictUnificator.get( - OrePrefixes.foil, - Materials.Palladium, - (long) (16 * (Math.sqrt(tier - 3)))), - GT_OreDictUnificator.get( - OrePrefixes.foil, - Materials.Platinum, - (long) (16 * (Math.sqrt(tier - 3)))) }, - new FluidStack[] { Materials.SulfuricAcid.getFluid((long) (500 * (Math.sqrt(tier - 3)))), - Materials.IronIIIChloride.getFluid((long) (2000 * (Math.sqrt(tier - 3)))) }, - aBoards.toArray(new ItemStack[0]), - (int) Math.ceil(400 / Math.sqrt(Math.pow(1.5, tier - 4.5))), - (int) GT_Values.VP[tier + 1] * 3 / 4, - mTier3BitMap); + new ItemStack[] { GT_Utility.getIntegratedCircuit(3), GT_Utility.getNaniteAsCatalyst(Materials.Gold), + GT_PCBFactoryManager.getPlasticMaterialFromTier(tier) + .getPlates(1), + GT_OreDictUnificator + .get(OrePrefixes.foil, Materials.Palladium, (long) (16 * (Math.sqrt(tier - 3)))), + GT_OreDictUnificator + .get(OrePrefixes.foil, Materials.Platinum, (long) (16 * (Math.sqrt(tier - 3)))) }, + new FluidStack[] { Materials.SulfuricAcid.getFluid((long) (500 * (Math.sqrt(tier - 3)))), + Materials.IronIIIChloride.getFluid((long) (2000 * (Math.sqrt(tier - 3)))) }, + aBoards.toArray(new ItemStack[0]), + (int) Math.ceil(400 / Math.sqrt(Math.pow(1.5, tier - 4.5))), + (int) GT_Values.VP[tier + 1] * 3 / 4, + mTier3BitMap); } // Wetware Circuit Board @@ -428,24 +365,20 @@ public class GT_PCBFactoryRecipes { } aBoards.add(ItemList.Circuit_Board_Wetware_Extreme.get(amountOfBoards)); GT_Values.RA.addPCBFactoryRecipe( - new ItemStack[] { GT_Utility.getIntegratedCircuit(1), - GT_PCBFactoryManager.getPlasticMaterialFromTier(tier) - .getPlates(1), - GT_OreDictUnificator.get( - OrePrefixes.foil, - Materials.EnrichedHolmium, - (long) (16 * (Math.sqrt(tier - 4)))), - GT_OreDictUnificator.get( - OrePrefixes.foil, - Materials.NiobiumTitanium, - (long) (16 * (Math.sqrt(tier - 4)))) }, - new FluidStack[] { Materials.SulfuricAcid.getFluid((long) (500 * (Math.sqrt(tier - 4)))), - Materials.IronIIIChloride.getFluid((long) (5000 * (Math.sqrt(tier - 4)))), - Materials.GrowthMediumSterilized.getFluid((long) (2000 * (Math.sqrt(tier - 4)))) }, - aBoards.toArray(new ItemStack[0]), - (int) Math.ceil(600 / Math.sqrt(Math.pow(1.5, tier - 5.5))), - (int) GT_Values.VP[tier] * 3 / 4, - mTier1BitMap | mTier2BitMap | mTier3BitMap | mBioUpgradeBitMap); + new ItemStack[] { GT_Utility.getIntegratedCircuit(1), + GT_PCBFactoryManager.getPlasticMaterialFromTier(tier) + .getPlates(1), + GT_OreDictUnificator + .get(OrePrefixes.foil, Materials.EnrichedHolmium, (long) (16 * (Math.sqrt(tier - 4)))), + GT_OreDictUnificator + .get(OrePrefixes.foil, Materials.NiobiumTitanium, (long) (16 * (Math.sqrt(tier - 4)))) }, + new FluidStack[] { Materials.SulfuricAcid.getFluid((long) (500 * (Math.sqrt(tier - 4)))), + Materials.IronIIIChloride.getFluid((long) (5000 * (Math.sqrt(tier - 4)))), + Materials.GrowthMediumSterilized.getFluid((long) (2000 * (Math.sqrt(tier - 4)))) }, + aBoards.toArray(new ItemStack[0]), + (int) Math.ceil(600 / Math.sqrt(Math.pow(1.5, tier - 5.5))), + (int) GT_Values.VP[tier] * 3 / 4, + mTier1BitMap | mTier2BitMap | mTier3BitMap | mBioUpgradeBitMap); } for (int tier = 5; tier <= GT_PCBFactoryManager.mTiersOfPlastics; tier++) { int amountOfBoards = (int) Math.ceil(8 * (Math.sqrt(Math.pow(2, tier - 4.5)))); @@ -456,25 +389,20 @@ public class GT_PCBFactoryRecipes { } aBoards.add(ItemList.Circuit_Board_Wetware_Extreme.get(amountOfBoards)); GT_Values.RA.addPCBFactoryRecipe( - new ItemStack[] { GT_Utility.getIntegratedCircuit(2), - GT_Utility.getNaniteAsCatalyst(Materials.Silver), - GT_PCBFactoryManager.getPlasticMaterialFromTier(tier) - .getPlates(1), - GT_OreDictUnificator.get( - OrePrefixes.foil, - Materials.EnrichedHolmium, - (long) (16 * (Math.sqrt(tier - 4)))), - GT_OreDictUnificator.get( - OrePrefixes.foil, - Materials.NiobiumTitanium, - (long) (16 * (Math.sqrt(tier - 4)))) }, - new FluidStack[] { Materials.SulfuricAcid.getFluid((long) (500 * (Math.sqrt(tier - 4)))), - Materials.IronIIIChloride.getFluid((long) (5000 * (Math.sqrt(tier - 4)))), - Materials.GrowthMediumSterilized.getFluid((long) (2000 * (Math.sqrt(tier - 4)))) }, - aBoards.toArray(new ItemStack[0]), - (int) Math.ceil(500 / Math.sqrt(Math.pow(1.5, tier - 5.5))), - (int) GT_Values.VP[tier + 1] * 3 / 4, - mTier2BitMap | mTier3BitMap | mBioUpgradeBitMap); + new ItemStack[] { GT_Utility.getIntegratedCircuit(2), GT_Utility.getNaniteAsCatalyst(Materials.Silver), + GT_PCBFactoryManager.getPlasticMaterialFromTier(tier) + .getPlates(1), + GT_OreDictUnificator + .get(OrePrefixes.foil, Materials.EnrichedHolmium, (long) (16 * (Math.sqrt(tier - 4)))), + GT_OreDictUnificator + .get(OrePrefixes.foil, Materials.NiobiumTitanium, (long) (16 * (Math.sqrt(tier - 4)))) }, + new FluidStack[] { Materials.SulfuricAcid.getFluid((long) (500 * (Math.sqrt(tier - 4)))), + Materials.IronIIIChloride.getFluid((long) (5000 * (Math.sqrt(tier - 4)))), + Materials.GrowthMediumSterilized.getFluid((long) (2000 * (Math.sqrt(tier - 4)))) }, + aBoards.toArray(new ItemStack[0]), + (int) Math.ceil(500 / Math.sqrt(Math.pow(1.5, tier - 5.5))), + (int) GT_Values.VP[tier + 1] * 3 / 4, + mTier2BitMap | mTier3BitMap | mBioUpgradeBitMap); } for (int tier = 5; tier <= GT_PCBFactoryManager.mTiersOfPlastics; tier++) { int amountOfBoards = (int) Math.ceil(8 * (Math.sqrt(Math.pow(2, tier - 4)))); @@ -485,25 +413,20 @@ public class GT_PCBFactoryRecipes { } aBoards.add(ItemList.Circuit_Board_Wetware_Extreme.get(amountOfBoards)); GT_Values.RA.addPCBFactoryRecipe( - new ItemStack[] { GT_Utility.getIntegratedCircuit(3), - GT_Utility.getNaniteAsCatalyst(Materials.Gold), - GT_PCBFactoryManager.getPlasticMaterialFromTier(tier) - .getPlates(1), - GT_OreDictUnificator.get( - OrePrefixes.foil, - Materials.EnrichedHolmium, - (long) (16 * (Math.sqrt(tier - 4)))), - GT_OreDictUnificator.get( - OrePrefixes.foil, - Materials.NiobiumTitanium, - (long) (16 * (Math.sqrt(tier - 4)))) }, - new FluidStack[] { Materials.SulfuricAcid.getFluid((long) (500 * (Math.sqrt(tier - 4)))), - Materials.IronIIIChloride.getFluid((long) (5000 * (Math.sqrt(tier - 4)))), - Materials.GrowthMediumSterilized.getFluid((long) (2000 * (Math.sqrt(tier - 4)))) }, - aBoards.toArray(new ItemStack[0]), - (int) Math.ceil(400 / Math.sqrt(Math.pow(1.5, tier - 5.5))), - (int) GT_Values.VP[tier + 1] * 3 / 4, - mTier3BitMap | mBioUpgradeBitMap); + new ItemStack[] { GT_Utility.getIntegratedCircuit(3), GT_Utility.getNaniteAsCatalyst(Materials.Gold), + GT_PCBFactoryManager.getPlasticMaterialFromTier(tier) + .getPlates(1), + GT_OreDictUnificator + .get(OrePrefixes.foil, Materials.EnrichedHolmium, (long) (16 * (Math.sqrt(tier - 4)))), + GT_OreDictUnificator + .get(OrePrefixes.foil, Materials.NiobiumTitanium, (long) (16 * (Math.sqrt(tier - 4)))) }, + new FluidStack[] { Materials.SulfuricAcid.getFluid((long) (500 * (Math.sqrt(tier - 4)))), + Materials.IronIIIChloride.getFluid((long) (5000 * (Math.sqrt(tier - 4)))), + Materials.GrowthMediumSterilized.getFluid((long) (2000 * (Math.sqrt(tier - 4)))) }, + aBoards.toArray(new ItemStack[0]), + (int) Math.ceil(400 / Math.sqrt(Math.pow(1.5, tier - 5.5))), + (int) GT_Values.VP[tier + 1] * 3 / 4, + mTier3BitMap | mBioUpgradeBitMap); } // Bioware Circuit Board @@ -516,24 +439,22 @@ public class GT_PCBFactoryRecipes { } aBoards.add(ItemList.Circuit_Board_Bio_Ultra.get(amountOfBoards)); GT_Values.RA.addPCBFactoryRecipe( - new ItemStack[] { GT_Utility.getIntegratedCircuit(1), - GT_PCBFactoryManager.getPlasticMaterialFromTier(tier) - .getPlates(1), - GT_OreDictUnificator.get( - OrePrefixes.foil, - Materials.Longasssuperconductornameforuvwire, - (long) (16 * (Math.sqrt(tier - 5)))), - GT_OreDictUnificator.get( - OrePrefixes.foil, - Materials.Neutronium, - (long) (16 * (Math.sqrt(tier - 5)))) }, - new FluidStack[] { Materials.SulfuricAcid.getFluid((long) (500 * (Math.sqrt(tier - 5)))), - Materials.IronIIIChloride.getFluid((long) (7500 * (Math.sqrt(tier - 5)))), - Materials.BioMediumSterilized.getFluid((long) (4000 * (Math.sqrt(tier - 5)))) }, - aBoards.toArray(new ItemStack[0]), - (int) Math.ceil(600 / Math.sqrt(Math.pow(1.5, tier - 5.5))), - (int) GT_Values.VP[tier] * 3 / 4, - mTier1BitMap | mTier2BitMap | mTier3BitMap | mBioUpgradeBitMap); + new ItemStack[] { GT_Utility.getIntegratedCircuit(1), + GT_PCBFactoryManager.getPlasticMaterialFromTier(tier) + .getPlates(1), + GT_OreDictUnificator.get( + OrePrefixes.foil, + Materials.Longasssuperconductornameforuvwire, + (long) (16 * (Math.sqrt(tier - 5)))), + GT_OreDictUnificator + .get(OrePrefixes.foil, Materials.Neutronium, (long) (16 * (Math.sqrt(tier - 5)))) }, + new FluidStack[] { Materials.SulfuricAcid.getFluid((long) (500 * (Math.sqrt(tier - 5)))), + Materials.IronIIIChloride.getFluid((long) (7500 * (Math.sqrt(tier - 5)))), + Materials.BioMediumSterilized.getFluid((long) (4000 * (Math.sqrt(tier - 5)))) }, + aBoards.toArray(new ItemStack[0]), + (int) Math.ceil(600 / Math.sqrt(Math.pow(1.5, tier - 5.5))), + (int) GT_Values.VP[tier] * 3 / 4, + mTier1BitMap | mTier2BitMap | mTier3BitMap | mBioUpgradeBitMap); } for (int tier = 6; tier <= GT_PCBFactoryManager.mTiersOfPlastics; tier++) { int amountOfBoards = (int) Math.ceil(8 * (Math.sqrt(Math.pow(2, tier - 5.5)))); @@ -544,25 +465,22 @@ public class GT_PCBFactoryRecipes { } aBoards.add(ItemList.Circuit_Board_Bio_Ultra.get(amountOfBoards)); GT_Values.RA.addPCBFactoryRecipe( - new ItemStack[] { GT_Utility.getIntegratedCircuit(2), - GT_Utility.getNaniteAsCatalyst(Materials.Silver), - GT_PCBFactoryManager.getPlasticMaterialFromTier(tier) - .getPlates(1), - GT_OreDictUnificator.get( - OrePrefixes.foil, - Materials.Longasssuperconductornameforuvwire, - (long) (16 * (Math.sqrt(tier - 5)))), - GT_OreDictUnificator.get( - OrePrefixes.foil, - Materials.Neutronium, - (long) (16 * (Math.sqrt(tier - 5)))) }, - new FluidStack[] { Materials.SulfuricAcid.getFluid((long) (500 * (Math.sqrt(tier - 5)))), - Materials.IronIIIChloride.getFluid((long) (7500 * (Math.sqrt(tier - 5)))), - Materials.BioMediumSterilized.getFluid((long) (4000 * (Math.sqrt(tier - 5)))) }, - aBoards.toArray(new ItemStack[0]), - (int) Math.ceil(500 / Math.sqrt(Math.pow(1.5, tier - 6.5))), - (int) GT_Values.VP[tier + 1] * 3 / 4, - mTier2BitMap | mTier3BitMap | mBioUpgradeBitMap); + new ItemStack[] { GT_Utility.getIntegratedCircuit(2), GT_Utility.getNaniteAsCatalyst(Materials.Silver), + GT_PCBFactoryManager.getPlasticMaterialFromTier(tier) + .getPlates(1), + GT_OreDictUnificator.get( + OrePrefixes.foil, + Materials.Longasssuperconductornameforuvwire, + (long) (16 * (Math.sqrt(tier - 5)))), + GT_OreDictUnificator + .get(OrePrefixes.foil, Materials.Neutronium, (long) (16 * (Math.sqrt(tier - 5)))) }, + new FluidStack[] { Materials.SulfuricAcid.getFluid((long) (500 * (Math.sqrt(tier - 5)))), + Materials.IronIIIChloride.getFluid((long) (7500 * (Math.sqrt(tier - 5)))), + Materials.BioMediumSterilized.getFluid((long) (4000 * (Math.sqrt(tier - 5)))) }, + aBoards.toArray(new ItemStack[0]), + (int) Math.ceil(500 / Math.sqrt(Math.pow(1.5, tier - 6.5))), + (int) GT_Values.VP[tier + 1] * 3 / 4, + mTier2BitMap | mTier3BitMap | mBioUpgradeBitMap); } for (int tier = 6; tier <= GT_PCBFactoryManager.mTiersOfPlastics; tier++) { int amountOfBoards = (int) Math.ceil(8 * (Math.sqrt(Math.pow(2, tier - 5)))); @@ -573,25 +491,22 @@ public class GT_PCBFactoryRecipes { } aBoards.add(ItemList.Circuit_Board_Bio_Ultra.get(amountOfBoards)); GT_Values.RA.addPCBFactoryRecipe( - new ItemStack[] { GT_Utility.getIntegratedCircuit(3), - GT_Utility.getNaniteAsCatalyst(Materials.Gold), - GT_PCBFactoryManager.getPlasticMaterialFromTier(tier) - .getPlates(1), - GT_OreDictUnificator.get( - OrePrefixes.foil, - Materials.Longasssuperconductornameforuvwire, - (long) (16 * (Math.sqrt(tier - 5)))), - GT_OreDictUnificator.get( - OrePrefixes.foil, - Materials.Neutronium, - (long) (16 * (Math.sqrt(tier - 5)))) }, - new FluidStack[] { Materials.SulfuricAcid.getFluid((long) (500 * (Math.sqrt(tier - 5)))), - Materials.IronIIIChloride.getFluid((long) (7500 * (Math.sqrt(tier - 5)))), - Materials.BioMediumSterilized.getFluid((long) (4000 * (Math.sqrt(tier - 5)))) }, - aBoards.toArray(new ItemStack[0]), - (int) Math.ceil(400 / Math.sqrt(Math.pow(1.5, tier - 6.5))), - (int) GT_Values.VP[tier + 1] * 3 / 4, - mTier3BitMap | mBioUpgradeBitMap); + new ItemStack[] { GT_Utility.getIntegratedCircuit(3), GT_Utility.getNaniteAsCatalyst(Materials.Gold), + GT_PCBFactoryManager.getPlasticMaterialFromTier(tier) + .getPlates(1), + GT_OreDictUnificator.get( + OrePrefixes.foil, + Materials.Longasssuperconductornameforuvwire, + (long) (16 * (Math.sqrt(tier - 5)))), + GT_OreDictUnificator + .get(OrePrefixes.foil, Materials.Neutronium, (long) (16 * (Math.sqrt(tier - 5)))) }, + new FluidStack[] { Materials.SulfuricAcid.getFluid((long) (500 * (Math.sqrt(tier - 5)))), + Materials.IronIIIChloride.getFluid((long) (7500 * (Math.sqrt(tier - 5)))), + Materials.BioMediumSterilized.getFluid((long) (4000 * (Math.sqrt(tier - 5)))) }, + aBoards.toArray(new ItemStack[0]), + (int) Math.ceil(400 / Math.sqrt(Math.pow(1.5, tier - 6.5))), + (int) GT_Values.VP[tier + 1] * 3 / 4, + mTier3BitMap | mBioUpgradeBitMap); } if (GTPlusPlus.isModLoaded()) { @@ -605,29 +520,25 @@ public class GT_PCBFactoryRecipes { } aBoards.add(ItemList.Circuit_Board_Optical.get(amountOfBoards)); GT_Values.RA.addPCBFactoryRecipe( - new ItemStack[] { GT_Utility.getIntegratedCircuit(1), - GT_PCBFactoryManager.getPlasticMaterialFromTier(tier) - .getPlates(1), - GT_ModHandler.getModItem( - BartWorks.ID, - "gt.bwMetaGeneratedfoil", - (long) (16 * (Math.sqrt(tier - 6))), - 10106), - GT_OreDictUnificator.get( - OrePrefixes.foil, - Materials.InfinityCatalyst, - (long) (16 * (Math.sqrt(tier - 6)))), - GT_ModHandler.getModItem( - "miscutils", - "itemFoilChromaticGlass", - (long) (16 * (Math.sqrt(tier - 6)))) }, - new FluidStack[] { Materials.SulfuricAcid.getFluid((long) (500 * (Math.sqrt(tier - 6)))), - Materials.IronIIIChloride.getFluid((long) (12500 * (Math.sqrt(tier - 6)))), - Materials.MysteriousCrystal.getMolten((long) (2880 * (Math.sqrt(tier - 6)))) }, - aBoards.toArray(new ItemStack[0]), - (int) Math.ceil(600 / Math.sqrt(Math.pow(1.5, tier - 5.5))), - (int) GT_Values.VP[tier] * 3 / 4, - mTier1BitMap | mTier2BitMap | mTier3BitMap); + new ItemStack[] { GT_Utility.getIntegratedCircuit(1), + GT_PCBFactoryManager.getPlasticMaterialFromTier(tier) + .getPlates(1), + GT_ModHandler.getModItem( + BartWorks.ID, + "gt.bwMetaGeneratedfoil", + (long) (16 * (Math.sqrt(tier - 6))), + 10106), + GT_OreDictUnificator + .get(OrePrefixes.foil, Materials.InfinityCatalyst, (long) (16 * (Math.sqrt(tier - 6)))), + GT_ModHandler + .getModItem("miscutils", "itemFoilChromaticGlass", (long) (16 * (Math.sqrt(tier - 6)))) }, + new FluidStack[] { Materials.SulfuricAcid.getFluid((long) (500 * (Math.sqrt(tier - 6)))), + Materials.IronIIIChloride.getFluid((long) (12500 * (Math.sqrt(tier - 6)))), + Materials.MysteriousCrystal.getMolten((long) (2880 * (Math.sqrt(tier - 6)))) }, + aBoards.toArray(new ItemStack[0]), + (int) Math.ceil(600 / Math.sqrt(Math.pow(1.5, tier - 5.5))), + (int) GT_Values.VP[tier] * 3 / 4, + mTier1BitMap | mTier2BitMap | mTier3BitMap); } for (int tier = 7; tier <= GT_PCBFactoryManager.mTiersOfPlastics; tier++) { int amountOfBoards = (int) Math.ceil(8 * (Math.sqrt(Math.pow(2, tier - 6.5)))); @@ -638,30 +549,26 @@ public class GT_PCBFactoryRecipes { } aBoards.add(ItemList.Circuit_Board_Optical.get(amountOfBoards)); GT_Values.RA.addPCBFactoryRecipe( - new ItemStack[] { GT_Utility.getIntegratedCircuit(2), - GT_Utility.getNaniteAsCatalyst(Materials.Silver), - GT_PCBFactoryManager.getPlasticMaterialFromTier(tier) - .getPlates(1), - GT_ModHandler.getModItem( - BartWorks.ID, - "gt.bwMetaGeneratedfoil", - (long) (16 * (Math.sqrt(tier - 6))), - 10106), - GT_OreDictUnificator.get( - OrePrefixes.foil, - Materials.InfinityCatalyst, - (long) (16 * (Math.sqrt(tier - 6)))), - GT_ModHandler.getModItem( - "miscutils", - "itemFoilChromaticGlass", - (long) (16 * (Math.sqrt(tier - 6)))) }, - new FluidStack[] { Materials.SulfuricAcid.getFluid((long) (500 * (Math.sqrt(tier - 6)))), - Materials.IronIIIChloride.getFluid((long) (12500 * (Math.sqrt(tier - 6)))), - Materials.MysteriousCrystal.getMolten((long) (2880 * (Math.sqrt(tier - 6)))) }, - aBoards.toArray(new ItemStack[0]), - (int) Math.ceil(500 / Math.sqrt(Math.pow(1.5, tier - 6.5))), - (int) GT_Values.VP[tier + 1] * 3 / 4, - mTier2BitMap | mTier3BitMap); + new ItemStack[] { GT_Utility.getIntegratedCircuit(2), + GT_Utility.getNaniteAsCatalyst(Materials.Silver), + GT_PCBFactoryManager.getPlasticMaterialFromTier(tier) + .getPlates(1), + GT_ModHandler.getModItem( + BartWorks.ID, + "gt.bwMetaGeneratedfoil", + (long) (16 * (Math.sqrt(tier - 6))), + 10106), + GT_OreDictUnificator + .get(OrePrefixes.foil, Materials.InfinityCatalyst, (long) (16 * (Math.sqrt(tier - 6)))), + GT_ModHandler + .getModItem("miscutils", "itemFoilChromaticGlass", (long) (16 * (Math.sqrt(tier - 6)))) }, + new FluidStack[] { Materials.SulfuricAcid.getFluid((long) (500 * (Math.sqrt(tier - 6)))), + Materials.IronIIIChloride.getFluid((long) (12500 * (Math.sqrt(tier - 6)))), + Materials.MysteriousCrystal.getMolten((long) (2880 * (Math.sqrt(tier - 6)))) }, + aBoards.toArray(new ItemStack[0]), + (int) Math.ceil(500 / Math.sqrt(Math.pow(1.5, tier - 6.5))), + (int) GT_Values.VP[tier + 1] * 3 / 4, + mTier2BitMap | mTier3BitMap); } for (int tier = 7; tier <= GT_PCBFactoryManager.mTiersOfPlastics; tier++) { int amountOfBoards = (int) Math.ceil(8 * (Math.sqrt(Math.pow(2, tier - 6)))); @@ -672,30 +579,26 @@ public class GT_PCBFactoryRecipes { } aBoards.add(ItemList.Circuit_Board_Optical.get(amountOfBoards)); GT_Values.RA.addPCBFactoryRecipe( - new ItemStack[] { GT_Utility.getIntegratedCircuit(3), - GT_Utility.getNaniteAsCatalyst(Materials.Gold), - GT_PCBFactoryManager.getPlasticMaterialFromTier(tier) - .getPlates(1), - GT_ModHandler.getModItem( - BartWorks.ID, - "gt.bwMetaGeneratedfoil", - (long) (16 * (Math.sqrt(tier - 6))), - 10106), - GT_OreDictUnificator.get( - OrePrefixes.foil, - Materials.InfinityCatalyst, - (long) (16 * (Math.sqrt(tier - 6)))), - GT_ModHandler.getModItem( - "miscutils", - "itemFoilChromaticGlass", - (long) (16 * (Math.sqrt(tier - 6)))) }, - new FluidStack[] { Materials.SulfuricAcid.getFluid((long) (500 * (Math.sqrt(tier - 6)))), - Materials.IronIIIChloride.getFluid((long) (12500 * (Math.sqrt(tier - 6)))), - Materials.MysteriousCrystal.getMolten((long) (2880 * (Math.sqrt(tier - 6)))) }, - aBoards.toArray(new ItemStack[0]), - (int) Math.ceil(400 / Math.sqrt(Math.pow(1.5, tier - 6.5))), - (int) GT_Values.VP[tier + 1] * 3 / 4, - mTier3BitMap); + new ItemStack[] { GT_Utility.getIntegratedCircuit(3), + GT_Utility.getNaniteAsCatalyst(Materials.Gold), + GT_PCBFactoryManager.getPlasticMaterialFromTier(tier) + .getPlates(1), + GT_ModHandler.getModItem( + BartWorks.ID, + "gt.bwMetaGeneratedfoil", + (long) (16 * (Math.sqrt(tier - 6))), + 10106), + GT_OreDictUnificator + .get(OrePrefixes.foil, Materials.InfinityCatalyst, (long) (16 * (Math.sqrt(tier - 6)))), + GT_ModHandler + .getModItem("miscutils", "itemFoilChromaticGlass", (long) (16 * (Math.sqrt(tier - 6)))) }, + new FluidStack[] { Materials.SulfuricAcid.getFluid((long) (500 * (Math.sqrt(tier - 6)))), + Materials.IronIIIChloride.getFluid((long) (12500 * (Math.sqrt(tier - 6)))), + Materials.MysteriousCrystal.getMolten((long) (2880 * (Math.sqrt(tier - 6)))) }, + aBoards.toArray(new ItemStack[0]), + (int) Math.ceil(400 / Math.sqrt(Math.pow(1.5, tier - 6.5))), + (int) GT_Values.VP[tier + 1] * 3 / 4, + mTier3BitMap); } } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/AlloySmelterRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/AlloySmelterRecipes.java index 0a8ae34d6e..deb37b2194 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/AlloySmelterRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/AlloySmelterRecipes.java @@ -14,119 +14,113 @@ import gregtech.api.util.GT_OreDictUnificator; public class AlloySmelterRecipes implements Runnable { private final MaterialStack[][] mAlloySmelterList = { - { new MaterialStack(Materials.Tetrahedrite, 3L), new MaterialStack(Materials.Tin, 1L), - new MaterialStack(Materials.Bronze, 3L) }, - { new MaterialStack(Materials.Tetrahedrite, 3L), new MaterialStack(Materials.Zinc, 1L), - new MaterialStack(Materials.Brass, 3L) }, - { new MaterialStack(Materials.Copper, 3L), new MaterialStack(Materials.Tin, 1L), - new MaterialStack(Materials.Bronze, 4L) }, - { new MaterialStack(Materials.Copper, 3L), new MaterialStack(Materials.Zinc, 1L), - new MaterialStack(Materials.Brass, 4L) }, - { new MaterialStack(Materials.Copper, 1L), new MaterialStack(Materials.Nickel, 1L), - new MaterialStack(Materials.Cupronickel, 2L) }, - { new MaterialStack(Materials.Copper, 1L), new MaterialStack(Materials.Redstone, 4L), - new MaterialStack(Materials.RedAlloy, 1L) }, - { new MaterialStack(Materials.AnnealedCopper, 3L), new MaterialStack(Materials.Tin, 1L), - new MaterialStack(Materials.Bronze, 4L) }, - { new MaterialStack(Materials.AnnealedCopper, 3L), new MaterialStack(Materials.Zinc, 1L), - new MaterialStack(Materials.Brass, 4L) }, - { new MaterialStack(Materials.AnnealedCopper, 1L), new MaterialStack(Materials.Nickel, 1L), - new MaterialStack(Materials.Cupronickel, 2L) }, - { new MaterialStack(Materials.AnnealedCopper, 1L), new MaterialStack(Materials.Redstone, 4L), - new MaterialStack(Materials.RedAlloy, 1L) }, - { new MaterialStack(Materials.Iron, 1L), new MaterialStack(Materials.Tin, 1L), - new MaterialStack(Materials.TinAlloy, 2L) }, - { new MaterialStack(Materials.WroughtIron, 1L), new MaterialStack(Materials.Tin, 1L), - new MaterialStack(Materials.TinAlloy, 2L) }, - { new MaterialStack(Materials.Iron, 2L), new MaterialStack(Materials.Nickel, 1L), - new MaterialStack(Materials.Invar, 3L) }, - { new MaterialStack(Materials.WroughtIron, 2L), new MaterialStack(Materials.Nickel, 1L), - new MaterialStack(Materials.Invar, 3L) }, - { new MaterialStack(Materials.Tin, 9L), new MaterialStack(Materials.Antimony, 1L), - new MaterialStack(Materials.SolderingAlloy, 10L) }, - { new MaterialStack(Materials.Lead, 4L), new MaterialStack(Materials.Antimony, 1L), - new MaterialStack(Materials.BatteryAlloy, 5L) }, - { new MaterialStack(Materials.Gold, 1L), new MaterialStack(Materials.Silver, 1L), - new MaterialStack(Materials.Electrum, 2L) }, - { new MaterialStack(Materials.Magnesium, 1L), new MaterialStack(Materials.Aluminium, 2L), - new MaterialStack(Materials.Magnalium, 3L) }, - { new MaterialStack(Materials.Silver, 1L), new MaterialStack(Materials.Electrotine, 4L), - new MaterialStack(Materials.BlueAlloy, 1L) }, - { new MaterialStack(Materials.Boron, 1L), new MaterialStack(Materials.Glass, 7L), - new MaterialStack(Materials.BorosilicateGlass, 8L) } }; + { new MaterialStack(Materials.Tetrahedrite, 3L), new MaterialStack(Materials.Tin, 1L), + new MaterialStack(Materials.Bronze, 3L) }, + { new MaterialStack(Materials.Tetrahedrite, 3L), new MaterialStack(Materials.Zinc, 1L), + new MaterialStack(Materials.Brass, 3L) }, + { new MaterialStack(Materials.Copper, 3L), new MaterialStack(Materials.Tin, 1L), + new MaterialStack(Materials.Bronze, 4L) }, + { new MaterialStack(Materials.Copper, 3L), new MaterialStack(Materials.Zinc, 1L), + new MaterialStack(Materials.Brass, 4L) }, + { new MaterialStack(Materials.Copper, 1L), new MaterialStack(Materials.Nickel, 1L), + new MaterialStack(Materials.Cupronickel, 2L) }, + { new MaterialStack(Materials.Copper, 1L), new MaterialStack(Materials.Redstone, 4L), + new MaterialStack(Materials.RedAlloy, 1L) }, + { new MaterialStack(Materials.AnnealedCopper, 3L), new MaterialStack(Materials.Tin, 1L), + new MaterialStack(Materials.Bronze, 4L) }, + { new MaterialStack(Materials.AnnealedCopper, 3L), new MaterialStack(Materials.Zinc, 1L), + new MaterialStack(Materials.Brass, 4L) }, + { new MaterialStack(Materials.AnnealedCopper, 1L), new MaterialStack(Materials.Nickel, 1L), + new MaterialStack(Materials.Cupronickel, 2L) }, + { new MaterialStack(Materials.AnnealedCopper, 1L), new MaterialStack(Materials.Redstone, 4L), + new MaterialStack(Materials.RedAlloy, 1L) }, + { new MaterialStack(Materials.Iron, 1L), new MaterialStack(Materials.Tin, 1L), + new MaterialStack(Materials.TinAlloy, 2L) }, + { new MaterialStack(Materials.WroughtIron, 1L), new MaterialStack(Materials.Tin, 1L), + new MaterialStack(Materials.TinAlloy, 2L) }, + { new MaterialStack(Materials.Iron, 2L), new MaterialStack(Materials.Nickel, 1L), + new MaterialStack(Materials.Invar, 3L) }, + { new MaterialStack(Materials.WroughtIron, 2L), new MaterialStack(Materials.Nickel, 1L), + new MaterialStack(Materials.Invar, 3L) }, + { new MaterialStack(Materials.Tin, 9L), new MaterialStack(Materials.Antimony, 1L), + new MaterialStack(Materials.SolderingAlloy, 10L) }, + { new MaterialStack(Materials.Lead, 4L), new MaterialStack(Materials.Antimony, 1L), + new MaterialStack(Materials.BatteryAlloy, 5L) }, + { new MaterialStack(Materials.Gold, 1L), new MaterialStack(Materials.Silver, 1L), + new MaterialStack(Materials.Electrum, 2L) }, + { new MaterialStack(Materials.Magnesium, 1L), new MaterialStack(Materials.Aluminium, 2L), + new MaterialStack(Materials.Magnalium, 3L) }, + { new MaterialStack(Materials.Silver, 1L), new MaterialStack(Materials.Electrotine, 4L), + new MaterialStack(Materials.BlueAlloy, 1L) }, + { new MaterialStack(Materials.Boron, 1L), new MaterialStack(Materials.Glass, 7L), + new MaterialStack(Materials.BorosilicateGlass, 8L) } }; @Override public void run() { for (MaterialStack[] materials : mAlloySmelterList) { ItemStack dust1 = GT_OreDictUnificator.get(OrePrefixes.dust, materials[0].mMaterial, materials[0].mAmount); ItemStack dust2 = GT_OreDictUnificator.get(OrePrefixes.dust, materials[1].mMaterial, materials[1].mAmount); - ItemStack ingot1 = GT_OreDictUnificator.get( - OrePrefixes.ingot, - materials[0].mMaterial, - materials[0].mAmount); - ItemStack ingot2 = GT_OreDictUnificator.get( - OrePrefixes.ingot, - materials[1].mMaterial, - materials[1].mAmount); - ItemStack outputIngot = GT_OreDictUnificator.get( - OrePrefixes.ingot, - materials[2].mMaterial, - materials[2].mAmount); + ItemStack ingot1 = GT_OreDictUnificator + .get(OrePrefixes.ingot, materials[0].mMaterial, materials[0].mAmount); + ItemStack ingot2 = GT_OreDictUnificator + .get(OrePrefixes.ingot, materials[1].mMaterial, materials[1].mAmount); + ItemStack outputIngot = GT_OreDictUnificator + .get(OrePrefixes.ingot, materials[2].mMaterial, materials[2].mAmount); if (outputIngot != GT_Values.NI) { if (ingot1 != null) { GT_Values.RA.stdBuilder() - .itemInputs(ingot1, dust2) - .itemOutputs(outputIngot) - .noFluidInputs() - .noFluidOutputs() - .duration((int) materials[2].mAmount * 50) - .eut(16) - .addTo(sAlloySmelterRecipes); + .itemInputs(ingot1, dust2) + .itemOutputs(outputIngot) + .noFluidInputs() + .noFluidOutputs() + .duration((int) materials[2].mAmount * 50) + .eut(16) + .addTo(sAlloySmelterRecipes); if (ingot2 != null) { GT_Values.RA.stdBuilder() - .itemInputs(ingot1, ingot2) - .itemOutputs(outputIngot) - .noFluidInputs() - .noFluidOutputs() - .duration((int) materials[2].mAmount * 50) - .eut(16) - .addTo(sAlloySmelterRecipes); + .itemInputs(ingot1, ingot2) + .itemOutputs(outputIngot) + .noFluidInputs() + .noFluidOutputs() + .duration((int) materials[2].mAmount * 50) + .eut(16) + .addTo(sAlloySmelterRecipes); } } if (ingot2 != null) { GT_Values.RA.stdBuilder() - .itemInputs(dust1, ingot2) - .itemOutputs(outputIngot) - .noFluidInputs() - .noFluidOutputs() - .duration((int) materials[2].mAmount * 50) - .eut(16) - .addTo(sAlloySmelterRecipes); + .itemInputs(dust1, ingot2) + .itemOutputs(outputIngot) + .noFluidInputs() + .noFluidOutputs() + .duration((int) materials[2].mAmount * 50) + .eut(16) + .addTo(sAlloySmelterRecipes); } GT_Values.RA.stdBuilder() - .itemInputs(dust1, dust2) - .itemOutputs(outputIngot) - .noFluidInputs() - .noFluidOutputs() - .duration((int) materials[2].mAmount * 50) - .eut(16) - .addTo(sAlloySmelterRecipes); + .itemInputs(dust1, dust2) + .itemOutputs(outputIngot) + .noFluidInputs() + .noFluidOutputs() + .duration((int) materials[2].mAmount * 50) + .eut(16) + .addTo(sAlloySmelterRecipes); } } // We use rubber GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.RawRubber, 3L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 1L)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Rubber, 1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(8) - .addTo(sAlloySmelterRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.RawRubber, 3L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 1L)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Rubber, 1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(8) + .addTo(sAlloySmelterRecipes); } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/ArcFurnaceRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/ArcFurnaceRecipes.java index ae4f840c85..91365261ec 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/ArcFurnaceRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/ArcFurnaceRecipes.java @@ -15,504 +15,504 @@ public class ArcFurnaceRecipes implements Runnable { public void run() { GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Block_TungstenSteelReinforced.get(1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.TungstenSteel, 2), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Concrete, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(8 * SECONDS) - .eut(96) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Long_Distance_Pipeline_Fluid.get(1L)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 19L)) - .noFluidInputs() - .noFluidOutputs() - .duration(9 * SECONDS) - .eut((int) TierEU.RECIPE_MV) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Long_Distance_Pipeline_Item.get(1L)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Tin, 12L), - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 7L)) - .noFluidInputs() - .noFluidOutputs() - .duration(9 * SECONDS) - .eut((int) TierEU.RECIPE_MV) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Long_Distance_Pipeline_Fluid_Pipe.get(1L)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Steel, 2L)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * TICKS) - .eut((int) TierEU.RECIPE_MV) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Long_Distance_Pipeline_Item_Pipe.get(1L)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Tin, 1L), - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Steel, 1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * TICKS) - .eut((int) TierEU.RECIPE_MV) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Casing_Coil_Cupronickel.get(1L)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Cupronickel, 8), - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Tin, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 2)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Casing_Coil_Kanthal.get(1L)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Kanthal, 8), - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Cupronickel, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 3)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Casing_Coil_Nichrome.get(1L)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Nichrome, 8), - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Kanthal, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 4)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Casing_Coil_TungstenSteel.get(1L)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.TPV, 8), - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Nichrome, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 5)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Casing_Coil_HSSG.get(1L)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.HSSG, 8), - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.TPV, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 6)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Casing_Coil_HSSS.get(1L)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.HSSS, 8), - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.HSSG, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 7)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Casing_Coil_Naquadah.get(1L)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Naquadah, 8), - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.HSSS, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 8)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Casing_Coil_NaquadahAlloy.get(1L)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.NaquadahAlloy, 8), - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Naquadah, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 9)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Casing_Coil_Trinium.get(1L)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Trinium, 8), - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.NaquadahAlloy, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 10)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Casing_Coil_ElectrumFlux.get(1L)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.ElectrumFlux, 8), - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Trinium, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 11)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Casing_Coil_AwakenedDraconium.get(1L)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.DraconiumAwakened, 8), - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.ElectrumFlux, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 12)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.beta", 1L, 0)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Iron, 2L)) - .noFluidInputs() - .noFluidOutputs() - .duration(7 * SECONDS + 10 * TICKS) - .eut(90) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.beta", 1L, 1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Iron, 1L), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Glass, 3)) - .noFluidInputs() - .noFluidOutputs() - .duration(7 * SECONDS + 10 * TICKS) - .eut(90) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.beta", 1L, 2)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Bronze, 12L), - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Iron, 6)) - .noFluidInputs() - .noFluidOutputs() - .duration(7 * SECONDS + 10 * TICKS) - .eut(90) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.beta", 1L, 13)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 2L)) - .noFluidInputs() - .noFluidOutputs() - .duration(9 * SECONDS) - .eut((int) TierEU.RECIPE_MV) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.beta", 1L, 14)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 1L), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Glass, 3)) - .noFluidInputs() - .noFluidOutputs() - .duration(9 * SECONDS) - .eut((int) TierEU.RECIPE_MV) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.beta", 1L, 15)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 12L), - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Steel, 6L)) - .noFluidInputs() - .noFluidOutputs() - .duration(9 * SECONDS) - .eut((int) TierEU.RECIPE_MV) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 0)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Aluminium, 2L)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS + 10 * TICKS) - .eut(150) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Aluminium, 3)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS + 10 * TICKS) - .eut(150) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 2)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 12L), - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Aluminium, 6L)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS + 10 * TICKS) - .eut(150) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 3)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.StainlessSteel, 2L)) - .noFluidInputs() - .noFluidOutputs() - .duration(12 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 4)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.StainlessSteel, 1L), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Glass, 3)) - .noFluidInputs() - .noFluidOutputs() - .duration(12 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 5)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.StainlessSteel, 12L), - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.StainlessSteel, 6L)) - .noFluidInputs() - .noFluidOutputs() - .duration(12 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 6)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Titanium, 2L)) - .noFluidInputs() - .noFluidOutputs() - .duration(13 * SECONDS + 10 * TICKS) - .eut(210) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 7)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Titanium, 1L), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Glass, 3)) - .noFluidInputs() - .noFluidOutputs() - .duration(13 * SECONDS + 10 * TICKS) - .eut(210) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 8)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Titanium, 12L), - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Titanium, 6L)) - .noFluidInputs() - .noFluidOutputs() - .duration(13 * SECONDS + 10 * TICKS) - .eut(210) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 9)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.TungstenSteel, 2L)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 10)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.TungstenSteel, 1L), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Glass, 3)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 11)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.TungstenSteel, 12L), - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.TungstenSteel, 6L)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 12)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Palladium, 2L)) - .noFluidInputs() - .noFluidOutputs() - .duration(16 * SECONDS + 10 * TICKS) - .eut(270) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 13)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Palladium, 1L), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Glass, 3)) - .noFluidInputs() - .noFluidOutputs() - .duration(16 * SECONDS + 10 * TICKS) - .eut(270) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 14)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.NiobiumTitanium, 12L), - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Chrome, 6L)) - .noFluidInputs() - .noFluidOutputs() - .duration(16 * SECONDS + 10 * TICKS) - .eut(270) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 0)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Iridium, 2L)) - .noFluidInputs() - .noFluidOutputs() - .duration(18 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Iridium, 1L), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Glass, 3)) - .noFluidInputs() - .noFluidOutputs() - .duration(18 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 2)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Enderium, 12L), - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Iridium, 6L)) - .noFluidInputs() - .noFluidOutputs() - .duration(18 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 3)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Osmium, 2L)) - .noFluidInputs() - .noFluidOutputs() - .duration(18 * SECONDS) - .eut(330) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 4)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Osmium, 1L), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Glass, 3)) - .noFluidInputs() - .noFluidOutputs() - .duration(18 * SECONDS) - .eut(330) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 5)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Naquadah, 12L), - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Osmium, 6L)) - .noFluidInputs() - .noFluidOutputs() - .duration(18 * SECONDS) - .eut(330) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 6)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Neutronium, 2L)) - .noFluidInputs() - .noFluidOutputs() - .duration(18 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 7)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Neutronium, 1L), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Glass, 3)) - .noFluidInputs() - .noFluidOutputs() - .duration(18 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 8)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Neutronium, 12L), - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Neutronium, 6L)) - .noFluidInputs() - .noFluidOutputs() - .duration(18 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(UniversalArcFurnace); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silicon, 1L)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconDioxide, 3)) - .fluidInputs(Materials.Oxygen.getGas(2000L)) - .noFluidOutputs() - .duration(60 * SECONDS) - .eut((int) TierEU.RECIPE_LV) - .addTo(UniversalArcFurnace); + .itemInputs(ItemList.Block_TungstenSteelReinforced.get(1)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.TungstenSteel, 2), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Concrete, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(8 * SECONDS) + .eut(96) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Long_Distance_Pipeline_Fluid.get(1L)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 19L)) + .noFluidInputs() + .noFluidOutputs() + .duration(9 * SECONDS) + .eut((int) TierEU.RECIPE_MV) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Long_Distance_Pipeline_Item.get(1L)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Tin, 12L), + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 7L)) + .noFluidInputs() + .noFluidOutputs() + .duration(9 * SECONDS) + .eut((int) TierEU.RECIPE_MV) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Long_Distance_Pipeline_Fluid_Pipe.get(1L)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Steel, 2L)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * TICKS) + .eut((int) TierEU.RECIPE_MV) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Long_Distance_Pipeline_Item_Pipe.get(1L)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Tin, 1L), + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Steel, 1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * TICKS) + .eut((int) TierEU.RECIPE_MV) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Casing_Coil_Cupronickel.get(1L)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Cupronickel, 8), + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Tin, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 2)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Casing_Coil_Kanthal.get(1L)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Kanthal, 8), + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Cupronickel, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 3)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Casing_Coil_Nichrome.get(1L)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Nichrome, 8), + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Kanthal, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 4)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Casing_Coil_TungstenSteel.get(1L)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.TPV, 8), + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Nichrome, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 5)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Casing_Coil_HSSG.get(1L)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.HSSG, 8), + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.TPV, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 6)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Casing_Coil_HSSS.get(1L)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.HSSS, 8), + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.HSSG, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 7)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Casing_Coil_Naquadah.get(1L)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Naquadah, 8), + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.HSSS, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 8)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Casing_Coil_NaquadahAlloy.get(1L)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.NaquadahAlloy, 8), + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Naquadah, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 9)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Casing_Coil_Trinium.get(1L)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Trinium, 8), + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.NaquadahAlloy, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 10)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Casing_Coil_ElectrumFlux.get(1L)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.ElectrumFlux, 8), + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Trinium, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 11)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Casing_Coil_AwakenedDraconium.get(1L)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.DraconiumAwakened, 8), + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.ElectrumFlux, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 12)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.beta", 1L, 0)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Iron, 2L)) + .noFluidInputs() + .noFluidOutputs() + .duration(7 * SECONDS + 10 * TICKS) + .eut(90) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.beta", 1L, 1)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Iron, 1L), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Glass, 3)) + .noFluidInputs() + .noFluidOutputs() + .duration(7 * SECONDS + 10 * TICKS) + .eut(90) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.beta", 1L, 2)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Bronze, 12L), + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Iron, 6)) + .noFluidInputs() + .noFluidOutputs() + .duration(7 * SECONDS + 10 * TICKS) + .eut(90) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.beta", 1L, 13)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 2L)) + .noFluidInputs() + .noFluidOutputs() + .duration(9 * SECONDS) + .eut((int) TierEU.RECIPE_MV) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.beta", 1L, 14)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 1L), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Glass, 3)) + .noFluidInputs() + .noFluidOutputs() + .duration(9 * SECONDS) + .eut((int) TierEU.RECIPE_MV) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.beta", 1L, 15)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 12L), + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Steel, 6L)) + .noFluidInputs() + .noFluidOutputs() + .duration(9 * SECONDS) + .eut((int) TierEU.RECIPE_MV) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 0)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Aluminium, 2L)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS + 10 * TICKS) + .eut(150) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Aluminium, 3)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS + 10 * TICKS) + .eut(150) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 2)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 12L), + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Aluminium, 6L)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS + 10 * TICKS) + .eut(150) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 3)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.StainlessSteel, 2L)) + .noFluidInputs() + .noFluidOutputs() + .duration(12 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 4)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.StainlessSteel, 1L), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Glass, 3)) + .noFluidInputs() + .noFluidOutputs() + .duration(12 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 5)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.StainlessSteel, 12L), + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.StainlessSteel, 6L)) + .noFluidInputs() + .noFluidOutputs() + .duration(12 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 6)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Titanium, 2L)) + .noFluidInputs() + .noFluidOutputs() + .duration(13 * SECONDS + 10 * TICKS) + .eut(210) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 7)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Titanium, 1L), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Glass, 3)) + .noFluidInputs() + .noFluidOutputs() + .duration(13 * SECONDS + 10 * TICKS) + .eut(210) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 8)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Titanium, 12L), + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Titanium, 6L)) + .noFluidInputs() + .noFluidOutputs() + .duration(13 * SECONDS + 10 * TICKS) + .eut(210) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 9)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.TungstenSteel, 2L)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 10)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.TungstenSteel, 1L), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Glass, 3)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 11)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.TungstenSteel, 12L), + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.TungstenSteel, 6L)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 12)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Palladium, 2L)) + .noFluidInputs() + .noFluidOutputs() + .duration(16 * SECONDS + 10 * TICKS) + .eut(270) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 13)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Palladium, 1L), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Glass, 3)) + .noFluidInputs() + .noFluidOutputs() + .duration(16 * SECONDS + 10 * TICKS) + .eut(270) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 14)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.NiobiumTitanium, 12L), + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Chrome, 6L)) + .noFluidInputs() + .noFluidOutputs() + .duration(16 * SECONDS + 10 * TICKS) + .eut(270) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 0)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Iridium, 2L)) + .noFluidInputs() + .noFluidOutputs() + .duration(18 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 1)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Iridium, 1L), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Glass, 3)) + .noFluidInputs() + .noFluidOutputs() + .duration(18 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 2)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Enderium, 12L), + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Iridium, 6L)) + .noFluidInputs() + .noFluidOutputs() + .duration(18 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 3)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Osmium, 2L)) + .noFluidInputs() + .noFluidOutputs() + .duration(18 * SECONDS) + .eut(330) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 4)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Osmium, 1L), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Glass, 3)) + .noFluidInputs() + .noFluidOutputs() + .duration(18 * SECONDS) + .eut(330) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 5)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Naquadah, 12L), + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Osmium, 6L)) + .noFluidInputs() + .noFluidOutputs() + .duration(18 * SECONDS) + .eut(330) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 6)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Neutronium, 2L)) + .noFluidInputs() + .noFluidOutputs() + .duration(18 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 7)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Neutronium, 1L), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Glass, 3)) + .noFluidInputs() + .noFluidOutputs() + .duration(18 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 8)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Neutronium, 12L), + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Neutronium, 6L)) + .noFluidInputs() + .noFluidOutputs() + .duration(18 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(UniversalArcFurnace); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silicon, 1L)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconDioxide, 3)) + .fluidInputs(Materials.Oxygen.getGas(2000L)) + .noFluidOutputs() + .duration(60 * SECONDS) + .eut((int) TierEU.RECIPE_LV) + .addTo(UniversalArcFurnace); } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/AssemblerRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/AssemblerRecipes.java index 67fd51bd6b..29e632f1d3 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/AssemblerRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/AssemblerRecipes.java @@ -37,7022 +37,6956 @@ public class AssemblerRecipes implements Runnable { this.withIC2NuclearControl(); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.BlackSteel, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Plastic, 1)) - .itemOutputs(ItemList.Block_Plascrete.get(1)) - .fluidInputs(Materials.Concrete.getMolten(144)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(48) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.BlackSteel, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Plastic, 1)) - .itemOutputs(ItemList.Block_Plascrete.get(1)) - .fluidInputs(Materials.Concrete.getMolten(144)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(48) - .addTo(sAssemblerRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.BlackSteel, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Plastic, 1)) + .itemOutputs(ItemList.Block_Plascrete.get(1)) + .fluidInputs(Materials.Concrete.getMolten(144)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(48) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.BlackSteel, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Plastic, 1)) + .itemOutputs(ItemList.Block_Plascrete.get(1)) + .fluidInputs(Materials.Concrete.getMolten(144)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(48) + .addTo(sAssemblerRecipes); for (byte i = 0; i < 16; i = (byte) (i + 1)) { for (int j = 0; j < Dyes.VALUES[i].getSizeOfFluidList(); j++) { GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.string, 3), GT_Utility.getIntegratedCircuit(3)) - .itemOutputs(new ItemStack(Blocks.carpet, 2, 15 - i)) - .fluidInputs(Dyes.VALUES[i].getFluidDye(j, 24)) - .noFluidOutputs() - .duration(6 * SECONDS + 8 * TICKS) - .eut(5) - .addTo(sAssemblerRecipes); + .itemInputs(new ItemStack(Items.string, 3), GT_Utility.getIntegratedCircuit(3)) + .itemOutputs(new ItemStack(Blocks.carpet, 2, 15 - i)) + .fluidInputs(Dyes.VALUES[i].getFluidDye(j, 24)) + .noFluidOutputs() + .duration(6 * SECONDS + 8 * TICKS) + .eut(5) + .addTo(sAssemblerRecipes); } } GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.foil, Materials.PolyvinylChloride, 1), - ItemList.Paper_Printed_Pages.get(1)) - .itemOutputs(new ItemStack(Items.written_book, 1, 0)) - .fluidInputs(Materials.Glue.getFluid(20)) - .noFluidOutputs() - .duration(1 * SECONDS + 12 * TICKS) - .eut(8) - .addTo(sAssemblerRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.foil, Materials.PolyvinylChloride, 1), + ItemList.Paper_Printed_Pages.get(1)) + .itemOutputs(new ItemStack(Items.written_book, 1, 0)) + .fluidInputs(Materials.Glue.getFluid(20)) + .noFluidOutputs() + .duration(1 * SECONDS + 12 * TICKS) + .eut(8) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.foil, Materials.PolyvinylChloride, 1), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Paper, 3)) + .itemOutputs(new ItemStack(Items.book, 1, 0)) + .fluidInputs(Materials.Glue.getFluid(20)) + .noFluidOutputs() + .duration(20 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_ModHandler.getIC2Item("carbonMesh", 4), + GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Zinc, 16), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Component_Filter.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(1 * MINUTES + 20 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Steel, 64), + GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Zinc, 16), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Component_Filter.get(1)) + .fluidInputs(Materials.Plastic.getMolten(144)) + .noFluidOutputs() + .duration(1 * MINUTES + 20 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Graphite, 64), + ItemList.Circuit_Silicon_Wafer2.get(32), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Graphene, 64)) + .fluidInputs(Materials.AdvancedGlue.getFluid(500)) + .noFluidOutputs() + .duration(2 * MINUTES + 40 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Graphite, 64), + ItemList.Circuit_Silicon_Wafer3.get(8), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Graphene, 64)) + .fluidInputs(Materials.AdvancedGlue.getFluid(250)) + .noFluidOutputs() + .duration(40 * SECONDS) + .eut(TierEU.RECIPE_IV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Electric_Pump_LV.get(1), + GT_OreDictUnificator.get(OrePrefixes.circuit.get(Materials.Basic), 2), + GT_Utility.getIntegratedCircuit(3)) + .itemOutputs(ItemList.FluidRegulator_LV.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Electric_Pump_MV.get(1), + GT_OreDictUnificator.get(OrePrefixes.circuit.get(Materials.Good), 2), + GT_Utility.getIntegratedCircuit(3)) + .itemOutputs(ItemList.FluidRegulator_MV.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(17 * SECONDS + 10 * TICKS) + .eut(TierEU.RECIPE_MV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Electric_Pump_HV.get(1), + GT_OreDictUnificator.get(OrePrefixes.circuit.get(Materials.Advanced), 2), + GT_Utility.getIntegratedCircuit(3)) + .itemOutputs(ItemList.FluidRegulator_HV.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Electric_Pump_EV.get(1), + GT_OreDictUnificator.get(OrePrefixes.circuit.get(Materials.Data), 2), + GT_Utility.getIntegratedCircuit(3)) + .itemOutputs(ItemList.FluidRegulator_EV.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(12 * SECONDS + 10 * TICKS) + .eut(TierEU.RECIPE_EV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Electric_Pump_IV.get(1), + GT_OreDictUnificator.get(OrePrefixes.circuit.get(Materials.Elite), 2), + GT_Utility.getIntegratedCircuit(3)) + .itemOutputs(ItemList.FluidRegulator_IV.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_IV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Electric_Pump_LuV.get(1), + GT_OreDictUnificator.get(OrePrefixes.circuit.get(Materials.Master), 2), + GT_Utility.getIntegratedCircuit(3)) + .itemOutputs(ItemList.FluidRegulator_LuV.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(7 * SECONDS + 10 * TICKS) + .eut(TierEU.RECIPE_LuV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Electric_Pump_ZPM.get(1), + GT_OreDictUnificator.get(OrePrefixes.circuit.get(Materials.Ultimate), 2), + GT_Utility.getIntegratedCircuit(3)) + .itemOutputs(ItemList.FluidRegulator_ZPM.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_ZPM) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Electric_Pump_UV.get(1), + GT_OreDictUnificator.get(OrePrefixes.circuit.get(Materials.SuperconductorUHV), 2), + GT_Utility.getIntegratedCircuit(3)) + .itemOutputs(ItemList.FluidRegulator_UV.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(500000) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Steam_Valve_LV.get(1), + GT_OreDictUnificator.get(OrePrefixes.circuit.get(Materials.Basic), 2), + GT_Utility.getIntegratedCircuit(3)) + .itemOutputs(ItemList.Steam_Regulator_LV.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Steam_Valve_MV.get(1), + GT_OreDictUnificator.get(OrePrefixes.circuit.get(Materials.Good), 2), + GT_Utility.getIntegratedCircuit(3)) + .itemOutputs(ItemList.Steam_Regulator_MV.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(17 * SECONDS + 10 * TICKS) + .eut(TierEU.RECIPE_MV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Steam_Valve_HV.get(1), + GT_OreDictUnificator.get(OrePrefixes.circuit.get(Materials.Advanced), 2), + GT_Utility.getIntegratedCircuit(3)) + .itemOutputs(ItemList.Steam_Regulator_HV.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Steam_Valve_EV.get(1), + GT_OreDictUnificator.get(OrePrefixes.circuit.get(Materials.Data), 2), + GT_Utility.getIntegratedCircuit(3)) + .itemOutputs(ItemList.Steam_Regulator_EV.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(12 * SECONDS + 10 * TICKS) + .eut(TierEU.RECIPE_EV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Steam_Valve_IV.get(1), + GT_OreDictUnificator.get(OrePrefixes.circuit.get(Materials.Elite), 2), + GT_Utility.getIntegratedCircuit(3)) + .itemOutputs(ItemList.Steam_Regulator_IV.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_IV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Electric_Pump_LV.get(1), + ItemList.Electric_Motor_LV.get(1), + GT_OreDictUnificator.get(OrePrefixes.gear.get(Materials.Steel), 2), + GT_Utility.getIntegratedCircuit(5)) + .itemOutputs(ItemList.Steam_Valve_LV.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Electric_Pump_MV.get(1), + ItemList.Electric_Motor_MV.get(1), + GT_OreDictUnificator.get(OrePrefixes.gear.get(Materials.Aluminium), 2), + GT_Utility.getIntegratedCircuit(5)) + .itemOutputs(ItemList.Steam_Valve_MV.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(17 * SECONDS + 10 * TICKS) + .eut(TierEU.RECIPE_MV) + .addTo(sAssemblerRecipes); - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.foil, Materials.PolyvinylChloride, 1), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Paper, 3)) - .itemOutputs(new ItemStack(Items.book, 1, 0)) - .fluidInputs(Materials.Glue.getFluid(20)) - .noFluidOutputs() - .duration(20 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); + { // limiting lifetime of the variables + ItemStack flask = ItemList.VOLUMETRIC_FLASK.get(1); + NBTTagCompound nbtFlask = new NBTTagCompound(); + int[] capacities = new int[] { 144, 288, 576, 720, 864, 72, 648, 936, 250, 500, 1000 }; + int[] circuitConfigurations = new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 24 }; + for (int i = 0; i < capacities.length; i++) { + nbtFlask.setInteger("Capacity", capacities[i]); + flask.setTagCompound(nbtFlask); - GT_Values.RA.stdBuilder() + GT_Values.RA.stdBuilder() .itemInputs( - GT_ModHandler.getIC2Item("carbonMesh", 4), - GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Zinc, 16), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Component_Filter.get(1)) + ItemList.VOLUMETRIC_FLASK.get(1), + GT_Utility.getIntegratedCircuit(circuitConfigurations[i])) + .itemOutputs(flask) .noFluidInputs() .noFluidOutputs() - .duration(1 * MINUTES + 20 * SECONDS) + .duration(10 * TICKS) .eut(TierEU.RECIPE_LV) .addTo(sAssemblerRecipes); + } + } GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Steel, 64), - GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Zinc, 16), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Component_Filter.get(1)) - .fluidInputs(Materials.Plastic.getMolten(144)) - .noFluidOutputs() - .duration(1 * MINUTES + 20 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Graphite, 64), - ItemList.Circuit_Silicon_Wafer2.get(32), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Graphene, 64)) - .fluidInputs(Materials.AdvancedGlue.getFluid(500)) - .noFluidOutputs() - .duration(2 * MINUTES + 40 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sAssemblerRecipes); + .itemInputs( + ItemList.Hull_LV.get(1), + GT_OreDictUnificator.get(OrePrefixes.pipeMedium, Materials.Bronze, 1), + GT_OreDictUnificator.get(OrePrefixes.rotor, Materials.Bronze, 1), + ItemList.Electric_Motor_LV.get(1), + GT_Utility.getIntegratedCircuit(3)) + .itemOutputs(ItemList.Hatch_Muffler_LV.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_MV.get(1), + GT_OreDictUnificator.get(OrePrefixes.pipeMedium, Materials.Steel, 1), + GT_OreDictUnificator.get(OrePrefixes.rotor, Materials.Steel, 1), + ItemList.Electric_Motor_MV.get(1), + GT_Utility.getIntegratedCircuit(3)) + .itemOutputs(ItemList.Hatch_Muffler_MV.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_HV.get(1), + GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.StainlessSteel, 1), + GT_OreDictUnificator.get(OrePrefixes.rotor, Materials.StainlessSteel, 1), + ItemList.Electric_Motor_HV.get(1), + GT_Utility.getIntegratedCircuit(3)) + .itemOutputs(ItemList.Hatch_Muffler_HV.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_EV.get(1), + GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.Titanium, 1), + ItemList.Electric_Motor_EV.get(1), + GT_OreDictUnificator.get(OrePrefixes.rotor, Materials.Titanium, 1), + GT_Utility.getIntegratedCircuit(3)) + .itemOutputs(ItemList.Hatch_Muffler_EV.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_IV.get(1), + GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.TungstenSteel, 1), + ItemList.Electric_Motor_IV.get(1), + GT_OreDictUnificator.get(OrePrefixes.rotor, Materials.TungstenSteel, 1), + GT_Utility.getIntegratedCircuit(3)) + .itemOutputs(ItemList.Hatch_Muffler_IV.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_IV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_LuV.get(1), + GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.Enderium, 1), + ItemList.Electric_Motor_LuV.get(1), + GT_OreDictUnificator.get(OrePrefixes.rotor, Materials.Enderium, 1), + GT_Utility.getIntegratedCircuit(3)) + .itemOutputs(ItemList.Hatch_Muffler_LuV.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LuV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_ZPM.get(1), + GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.Naquadah, 1), + ItemList.Electric_Motor_ZPM.get(1), + GT_OreDictUnificator.get(OrePrefixes.rotor, Materials.NaquadahAlloy, 1), + GT_Utility.getIntegratedCircuit(3)) + .itemOutputs(ItemList.Hatch_Muffler_ZPM.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_ZPM) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_UV.get(1), + GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.NetherStar, 1), + ItemList.Electric_Motor_UV.get(1), + GT_OreDictUnificator.get(OrePrefixes.rotor, Materials.Neutronium, 1), + GT_Utility.getIntegratedCircuit(3)) + .itemOutputs(ItemList.Hatch_Muffler_UV.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(500000) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_MAX.get(1), + GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.MysteriousCrystal, 1), + ItemList.Electric_Motor_UHV.get(1), + GT_OreDictUnificator.get(OrePrefixes.rotor, Materials.CosmicNeutronium, 1), + GT_Utility.getIntegratedCircuit(3)) + .itemOutputs(ItemList.Hatch_Muffler_MAX.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(2000000) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + new ItemStack(Blocks.redstone_torch, 2, 32767), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1)) + .itemOutputs(new ItemStack(Items.repeater, 1, 0)) + .fluidInputs(Materials.Concrete.getMolten(144)) + .noFluidOutputs() + .duration(4 * SECONDS) + .eut(10) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Items.leather, 1, 32767), new ItemStack(Items.lead, 1, 32767)) + .itemOutputs(new ItemStack(Items.name_tag, 1, 0)) + .fluidInputs(Materials.Glue.getFluid(72)) + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(8) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + getModItem(NewHorizonsCoreMod.ID, "item.ArtificialLeather", 1L, 0), + new ItemStack(Items.lead, 1, 32767)) + .itemOutputs(new ItemStack(Items.name_tag, 1, 0)) + .fluidInputs(Materials.Glue.getFluid(72)) + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(8) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Paper, 8), + new ItemStack(Items.compass, 1, 32767)) + .itemOutputs(new ItemStack(Items.map, 1, 0)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(8) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Tantalum, 1), + GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Manganese, 1)) + .itemOutputs(ItemList.Battery_RE_ULV_Tantalum.get(8)) + .fluidInputs(Materials.Plastic.getMolten(144)) + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(TwilightForest.ID, "item.charmOfLife1", 4L, 0), GT_Utility.getIntegratedCircuit(4)) + .itemOutputs(getModItem(TwilightForest.ID, "item.charmOfLife2", 1L, 0)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(8) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + getModItem(TwilightForest.ID, "item.charmOfKeeping1", 4L, 0), + GT_Utility.getIntegratedCircuit(4)) + .itemOutputs(getModItem(TwilightForest.ID, "item.charmOfKeeping2", 1L, 0)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(8) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + getModItem(TwilightForest.ID, "item.charmOfKeeping2", 4L, 0), + GT_Utility.getIntegratedCircuit(4)) + .itemOutputs(getModItem(TwilightForest.ID, "item.charmOfKeeping3", 1L, 0)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(8) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(TwilightForest.ID, "item.charmOfLife2", 1L, 0), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(getModItem(TwilightForest.ID, "item.charmOfLife1", 4L, 0)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(8) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + getModItem(TwilightForest.ID, "item.charmOfKeeping2", 1L, 0), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(getModItem(TwilightForest.ID, "item.charmOfKeeping1", 4L, 0)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(8) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + getModItem(TwilightForest.ID, "item.charmOfKeeping3", 1L, 0), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(getModItem(TwilightForest.ID, "item.charmOfKeeping2", 4L, 0)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(8) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 16), + getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 20)) + .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 23)) + .fluidInputs(Materials.Redstone.getMolten(144)) + .noFluidOutputs() + .duration(3 * SECONDS + 4 * TICKS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 17), + getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 20)) + .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 24)) + .fluidInputs(Materials.Redstone.getMolten(144)) + .noFluidOutputs() + .duration(3 * SECONDS + 4 * TICKS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 18), + getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 20)) + .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 22)) + .fluidInputs(Materials.Redstone.getMolten(144)) + .noFluidOutputs() + .duration(3 * SECONDS + 4 * TICKS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.CertusQuartz, 1), + new ItemStack(Blocks.sand, 1, 32767)) + .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemCrystalSeed", 2L, 0)) + .noFluidInputs() + .noFluidOutputs() + .duration(3 * SECONDS + 4 * TICKS) + .eut(8) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.NetherQuartz, 1), + new ItemStack(Blocks.sand, 1, 32767)) + .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemCrystalSeed", 2L, 600)) + .noFluidInputs() + .noFluidOutputs() + .duration(3 * SECONDS + 4 * TICKS) + .eut(8) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Fluix, 1), + new ItemStack(Blocks.sand, 1, 32767)) + .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemCrystalSeed", 2L, 1200)) + .noFluidInputs() + .noFluidOutputs() + .duration(3 * SECONDS + 4 * TICKS) + .eut(8) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.FR_Wax.get(6), new ItemStack(Items.string, 1, 32767)) + .itemOutputs(getModItem(Forestry.ID, "candle", 24L, 0)) + .fluidInputs(Materials.Water.getFluid(600)) + .noFluidOutputs() + .duration(3 * SECONDS + 4 * TICKS) + .eut(8) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.FR_Wax.get(2), ItemList.FR_Silk.get(1)) + .itemOutputs(getModItem(Forestry.ID, "candle", 8L, 0)) + .fluidInputs(Materials.Water.getFluid(200)) + .noFluidOutputs() + .duration(16 * TICKS) + .eut(8) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.FR_Silk.get(9), GT_Utility.getIntegratedCircuit(9)) + .itemOutputs(getModItem(Forestry.ID, "craftingMaterial", 1L, 3)) + .fluidInputs(Materials.Water.getFluid(500)) + .noFluidOutputs() + .duration(3 * SECONDS + 4 * TICKS) + .eut(8) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Forestry.ID, "propolis", 5L, 2), GT_Utility.getIntegratedCircuit(5)) + .itemOutputs(getModItem(Forestry.ID, "craftingMaterial", 1L, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(16 * TICKS) + .eut(8) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + getModItem(Forestry.ID, "sturdyMachine", 1L, 0), + GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Diamond, 4)) + .itemOutputs(ItemList.FR_Casing_Hardened.get(1)) + .fluidInputs(Materials.Water.getFluid(5000)) + .noFluidOutputs() + .duration(3 * SECONDS + 4 * TICKS) + .eut(32) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Bronze, 8), + GT_Utility.getIntegratedCircuit(8)) + .itemOutputs(ItemList.FR_Casing_Sturdy.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(1 * SECONDS + 12 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 1), + new ItemStack(Blocks.wool, 1, 32767)) + .itemOutputs(new ItemStack(Blocks.torch, 6, 0)) + .fluidInputs(Materials.Creosote.getFluid(1000)) + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(1) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Forestry.ID, "craftingMaterial", 5L, 1), GT_Utility.getIntegratedCircuit(5)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.EnderPearl, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(3 * SECONDS + 4 * TICKS) + .eut(8) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Blocks.piston, 1, 32767), new ItemStack(Items.slime_ball, 1, 32767)) + .itemOutputs(new ItemStack(Blocks.sticky_piston, 1, 0)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Blocks.piston, 1, 32767), ItemList.IC2_Resin.get(1)) + .itemOutputs(new ItemStack(Blocks.sticky_piston, 1, 0)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Blocks.piston, 1, 32767), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(new ItemStack(Blocks.sticky_piston, 1, 0)) + .fluidInputs(Materials.Glue.getFluid(100)) + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Rubber, 3), + GT_ModHandler.getIC2Item("carbonMesh", 3), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Duct_Tape.get(1)) + .fluidInputs(Materials.Glue.getFluid(300)) + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.StyreneButadieneRubber, 2), + GT_ModHandler.getIC2Item("carbonMesh", 2), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Duct_Tape.get(1)) + .fluidInputs(Materials.Glue.getFluid(200)) + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Silicone, 1), + GT_ModHandler.getIC2Item("carbonMesh", 1), + GT_Utility.getIntegratedCircuit(3)) + .itemOutputs(ItemList.Duct_Tape.get(1)) + .fluidInputs(Materials.Glue.getFluid(100)) + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sAssemblerRecipes); - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Graphite, 64), - ItemList.Circuit_Silicon_Wafer3.get(8), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Graphene, 64)) - .fluidInputs(Materials.AdvancedGlue.getFluid(250)) - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(TierEU.RECIPE_IV) - .addTo(sAssemblerRecipes); + // Maintenance Hatch Recipes Using BrainTech + Refined Glue. Info: One BrainTech Recipe Is In GT+ü Originally. + // The Maintenance Hatch Recipe using SuperGlue is there. GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Electric_Pump_LV.get(1), - GT_OreDictUnificator.get(OrePrefixes.circuit.get(Materials.Basic), 2), - GT_Utility.getIntegratedCircuit(3)) - .itemOutputs(ItemList.FluidRegulator_LV.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); + .itemInputs(ItemList.Hull_LV.get(1), ItemList.Duct_Tape.get(2), GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Maintenance.get(1)) + .fluidInputs(Materials.Glue.getFluid(1000)) + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Paper, 3), + new ItemStack(Items.leather, 1, 32767)) + .itemOutputs(new ItemStack(Items.book, 1, 0)) + .fluidInputs(Materials.Glue.getFluid(20)) + .noFluidOutputs() + .duration(1 * SECONDS + 12 * TICKS) + .eut(8) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Paper, 3), + getModItem(NewHorizonsCoreMod.ID, "item.ArtificialLeather", 1L, 0)) + .itemOutputs(new ItemStack(Items.book, 1, 0)) + .fluidInputs(Materials.Glue.getFluid(20)) + .noFluidOutputs() + .duration(1 * SECONDS + 12 * TICKS) + .eut(8) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Paper, 3), + GT_OreDictUnificator.get(OrePrefixes.plateQuadruple, Materials.Paper, 1)) + .itemOutputs(new ItemStack(Items.book, 1, 0)) + .fluidInputs(Materials.Glue.getFluid(20)) + .noFluidOutputs() + .duration(1 * SECONDS + 12 * TICKS) + .eut(8) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Paper_Printed_Pages.get(1), new ItemStack(Items.leather, 1, 32767)) + .itemOutputs(new ItemStack(Items.written_book, 1, 0)) + .fluidInputs(Materials.Glue.getFluid(20)) + .noFluidOutputs() + .duration(1 * SECONDS + 12 * TICKS) + .eut(8) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Paper_Printed_Pages.get(1), + getModItem(NewHorizonsCoreMod.ID, "item.ArtificialLeather", 1L, 0)) + .itemOutputs(new ItemStack(Items.written_book, 1, 0)) + .fluidInputs(Materials.Glue.getFluid(20)) + .noFluidOutputs() + .duration(1 * SECONDS + 12 * TICKS) + .eut(8) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.itemCasing, Materials.Tin, 4)) + .itemOutputs(ItemList.Cell_Universal_Fluid.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(6 * SECONDS + 8 * TICKS) + .eut(8) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Food_Baked_Cake.get(1), new ItemStack(Items.egg, 1, 0)) + .itemOutputs(new ItemStack(Items.cake, 1, 0)) + .fluidInputs(Materials.Milk.getFluid(3000)) + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(8) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Food_Sliced_Bun.get(2), GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Food_Sliced_Buns.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Food_Sliced_Bread.get(2), GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Food_Sliced_Breads.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Food_Sliced_Baguette.get(2), GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Food_Sliced_Baguettes.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Food_Sliced_Buns.get(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Food_Sliced_Bun.get(2)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Food_Sliced_Breads.get(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Food_Sliced_Bread.get(2)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Food_Sliced_Baguettes.get(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Food_Sliced_Baguette.get(2)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Food_Sliced_Bun.get(2), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.MeatCooked, 1)) + .itemOutputs(ItemList.Food_Burger_Meat.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Food_Sliced_Buns.get(1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.MeatCooked, 1)) + .itemOutputs(ItemList.Food_Burger_Meat.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Food_Sliced_Bun.get(2), ItemList.Food_Chum.get(1)) + .itemOutputs(ItemList.Food_Burger_Chum.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Food_Sliced_Buns.get(1), ItemList.Food_Chum.get(1)) + .itemOutputs(ItemList.Food_Burger_Chum.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Food_Sliced_Bun.get(2), ItemList.Food_Sliced_Cheese.get(3)) + .itemOutputs(ItemList.Food_Burger_Cheese.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Food_Sliced_Buns.get(1), ItemList.Food_Sliced_Cheese.get(3)) + .itemOutputs(ItemList.Food_Burger_Cheese.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Food_Flat_Dough.get(1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.MeatCooked, 1)) + .itemOutputs(ItemList.Food_Raw_Pizza_Meat.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Food_Flat_Dough.get(1), ItemList.Food_Sliced_Cheese.get(3)) + .itemOutputs(ItemList.Food_Raw_Pizza_Cheese.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(4) + .addTo(sAssemblerRecipes); - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Electric_Pump_MV.get(1), - GT_OreDictUnificator.get(OrePrefixes.circuit.get(Materials.Good), 2), - GT_Utility.getIntegratedCircuit(3)) - .itemOutputs(ItemList.FluidRegulator_MV.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(17 * SECONDS + 10 * TICKS) - .eut(TierEU.RECIPE_MV) - .addTo(sAssemblerRecipes); + // SC craft GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Electric_Pump_HV.get(1), - GT_OreDictUnificator.get(OrePrefixes.circuit.get(Materials.Advanced), 2), - GT_Utility.getIntegratedCircuit(3)) - .itemOutputs(ItemList.FluidRegulator_HV.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sAssemblerRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Pentacadmiummagnesiumhexaoxid, 3), + GT_OreDictUnificator.get(OrePrefixes.pipeTiny, Materials.StainlessSteel, 2), + ItemList.Electric_Pump_MV.get(1), + GT_Utility.getIntegratedCircuit(9)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorMV, 3)) + .fluidInputs(Materials.Helium.getGas(2000)) + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Titaniumonabariumdecacoppereikosaoxid, 6), + GT_OreDictUnificator.get(OrePrefixes.pipeTiny, Materials.Titanium, 4), + ItemList.Electric_Pump_HV.get(1), + GT_Utility.getIntegratedCircuit(9)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorHV, 6)) + .fluidInputs(Materials.Helium.getGas(4000)) + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Uraniumtriplatinid, 9), + GT_OreDictUnificator.get(OrePrefixes.pipeTiny, Materials.TungstenSteel, 6), + ItemList.Electric_Pump_EV.get(1), + GT_Utility.getIntegratedCircuit(9)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorEV, 9)) + .fluidInputs(Materials.Helium.getGas(6000)) + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Vanadiumtriindinid, 12), + GT_OreDictUnificator.get(OrePrefixes.pipeTiny, Materials.NiobiumTitanium, 8), + ItemList.Electric_Pump_IV.get(1), + GT_Utility.getIntegratedCircuit(9)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorIV, 12)) + .fluidInputs(Materials.Helium.getGas(8000)) + .noFluidOutputs() + .duration(40 * SECONDS) + .eut(TierEU.RECIPE_IV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get( + OrePrefixes.wireGt01, + Materials.Tetraindiumditindibariumtitaniumheptacoppertetrakaidekaoxid, + 15), + GT_OreDictUnificator.get(OrePrefixes.pipeTiny, Materials.Enderium, 10), + ItemList.Electric_Pump_LuV.get(1), + GT_Utility.getIntegratedCircuit(9)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorLuV, 15)) + .fluidInputs(Materials.Helium.getGas(12000)) + .noFluidOutputs() + .duration(40 * SECONDS) + .eut(TierEU.RECIPE_LuV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Tetranaquadahdiindiumhexaplatiumosminid, 18), + GT_OreDictUnificator.get(OrePrefixes.pipeTiny, Materials.Naquadah, 12), + ItemList.Electric_Pump_ZPM.get(1), + GT_Utility.getIntegratedCircuit(9)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorZPM, 18)) + .fluidInputs(Materials.Helium.getGas(16000)) + .noFluidOutputs() + .duration(1 * MINUTES + 20 * SECONDS) + .eut(TierEU.RECIPE_ZPM) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Longasssuperconductornameforuvwire, 21), + GT_OreDictUnificator.get(OrePrefixes.pipeTiny, Materials.Neutronium, 14), + ItemList.Electric_Pump_UV.get(1), + GT_Utility.getIntegratedCircuit(9)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorUV, 21)) + .fluidInputs(Materials.Helium.getGas(20000)) + .noFluidOutputs() + .duration(1 * MINUTES + 20 * SECONDS) + .eut(TierEU.RECIPE_UV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Longasssuperconductornameforuhvwire, 24), + GT_OreDictUnificator.get(OrePrefixes.pipeTiny, Materials.Bedrockium, 16), + ItemList.Electric_Pump_UHV.get(1), + GT_Utility.getIntegratedCircuit(9)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorUHV, 24)) + .fluidInputs(Materials.Helium.getGas(24000)) + .noFluidOutputs() + .duration(2 * MINUTES + 40 * SECONDS) + .eut(TierEU.RECIPE_UHV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.IronMagnetic, 1), + GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Lead, 16), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.ULV_Coil.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(8) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.IronMagnetic, 1), + GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Steel, 16), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.LV_Coil.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.SteelMagnetic, 1), + GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Aluminium, 16), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.MV_Coil.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.SteelMagnetic, 1), + GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.EnergeticAlloy, 16), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.HV_Coil.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.NeodymiumMagnetic, 1), + GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.TungstenSteel, 16), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.EV_Coil.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.NeodymiumMagnetic, 1), + GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Iridium, 16), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.IV_Coil.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_IV) + .addTo(sAssemblerRecipes); + Materials LuVMat = BartWorks.isModLoaded() ? Materials.get("Ruridit") : Materials.Osmiridium; GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Electric_Pump_EV.get(1), - GT_OreDictUnificator.get(OrePrefixes.circuit.get(Materials.Data), 2), - GT_Utility.getIntegratedCircuit(3)) - .itemOutputs(ItemList.FluidRegulator_EV.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(12 * SECONDS + 10 * TICKS) - .eut(TierEU.RECIPE_EV) - .addTo(sAssemblerRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.SamariumMagnetic, 1), + GT_OreDictUnificator.get(OrePrefixes.wireFine, LuVMat, 16), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.LuV_Coil.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LuV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.SamariumMagnetic, 1), + GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Europium, 16), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.ZPM_Coil.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_ZPM) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.SamariumMagnetic, 1), + GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.ElectrumFlux, 16), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.UV_Coil.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(500000) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.SamariumMagnetic, 1), + GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Tritanium, 16), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.UHV_Coil.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(2000000) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Wood, 6), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.Wood, 2)) + .fluidInputs(Materials.Glue.getFluid(10)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Wood, 3), + GT_Utility.getIntegratedCircuit(4)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.pipeMedium, Materials.Wood, 4)) + .fluidInputs(Materials.Glue.getFluid(20)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Wood, 1), + GT_Utility.getIntegratedCircuit(12)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.pipeSmall, Materials.Wood, 6)) + .fluidInputs(Materials.Glue.getFluid(60)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iridium, 4), + GT_OreDictUnificator.get(OrePrefixes.plateAlloy, Materials.Advanced, 4), + GT_OreDictUnificator.get(OrePrefixes.gemExquisite, Materials.Diamond, 1), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Ingot_IridiumAlloy.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(60 * SECONDS) + .eut(TierEU.RECIPE_IV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Iridium, 1), + ItemList.Electric_Motor_UV.get(1), + GT_OreDictUnificator.get(OrePrefixes.rotor, Materials.Iridium, 1), + ItemList.Component_Filter.get(8), + GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Iridium, 8)) + .itemOutputs(ItemList.Casing_Vent_T2.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(30 * SECONDS) + .eut(TierEU.RECIPE_LuV) + .addTo(sAssemblerRecipes); - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Electric_Pump_IV.get(1), - GT_OreDictUnificator.get(OrePrefixes.circuit.get(Materials.Elite), 2), - GT_Utility.getIntegratedCircuit(3)) - .itemOutputs(ItemList.FluidRegulator_IV.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_IV) - .addTo(sAssemblerRecipes); + if (!GregTech_API.sRecipeFile.get(ConfigCategories.Recipes.disabledrecipes, "torchesFromCoal", false)) { + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 1), + new ItemStack(Items.coal, 1, 32767)) + .itemOutputs(new ItemStack(Blocks.torch, 4)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(1) + .addTo(sAssemblerRecipes); + } GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Electric_Pump_LuV.get(1), - GT_OreDictUnificator.get(OrePrefixes.circuit.get(Materials.Master), 2), - GT_Utility.getIntegratedCircuit(3)) - .itemOutputs(ItemList.FluidRegulator_LuV.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(7 * SECONDS + 10 * TICKS) - .eut(TierEU.RECIPE_LuV) - .addTo(sAssemblerRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Gold, 2), + GT_OreDictUnificator.get(OrePrefixes.spring, Materials.Steel, 1)) + .itemOutputs(new ItemStack(Blocks.light_weighted_pressure_plate, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 2), + GT_OreDictUnificator.get(OrePrefixes.spring, Materials.Steel, 1)) + .itemOutputs(new ItemStack(Blocks.heavy_weighted_pressure_plate, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 6), + GT_Utility.getIntegratedCircuit(6)) + .itemOutputs(new ItemStack(Items.iron_door, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(30 * SECONDS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 7), + GT_Utility.getIntegratedCircuit(7)) + .itemOutputs(new ItemStack(Items.cauldron, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(35 * SECONDS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Iron, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_ModHandler.getIC2Item("ironFence", 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Iron, 3), + GT_Utility.getIntegratedCircuit(3)) + .itemOutputs(new ItemStack(Blocks.iron_bars, 4)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 6), + GT_Utility.getIntegratedCircuit(6)) + .itemOutputs(new ItemStack(Items.iron_door, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(30 * SECONDS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 7), + GT_Utility.getIntegratedCircuit(7)) + .itemOutputs(new ItemStack(Items.cauldron, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(35 * SECONDS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.WroughtIron, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_ModHandler.getIC2Item("ironFence", 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.WroughtIron, 3), + GT_Utility.getIntegratedCircuit(3)) + .itemOutputs(new ItemStack(Blocks.iron_bars, 4)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 3), + GT_Utility.getIntegratedCircuit(3)) + .itemOutputs(new ItemStack(Blocks.fence, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2), + GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Iron, 2)) + .itemOutputs(new ItemStack(Blocks.tripwire_hook, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2), + GT_OreDictUnificator.get(OrePrefixes.ring, Materials.WroughtIron, 2)) + .itemOutputs(new ItemStack(Blocks.tripwire_hook, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 3), + new ItemStack(Items.string, 3, 32767)) + .itemOutputs(new ItemStack(Items.bow, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 3), + ItemList.Component_Minecart_Wheels_Iron.get(2)) + .itemOutputs(new ItemStack(Items.minecart, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(25 * SECONDS) + .eut(2) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 3), + ItemList.Component_Minecart_Wheels_Iron.get(2)) + .itemOutputs(new ItemStack(Items.minecart, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(2) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Steel, 3), + ItemList.Component_Minecart_Wheels_Steel.get(2)) + .itemOutputs(new ItemStack(Items.minecart, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(2) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Iron, 1), + GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Iron, 2)) + .itemOutputs(ItemList.Component_Minecart_Wheels_Iron.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(25 * SECONDS) + .eut(2) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.WroughtIron, 1), + GT_OreDictUnificator.get(OrePrefixes.ring, Materials.WroughtIron, 2)) + .itemOutputs(ItemList.Component_Minecart_Wheels_Iron.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(2) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Steel, 1), + GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Steel, 2)) + .itemOutputs(ItemList.Component_Minecart_Wheels_Steel.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(2) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Items.minecart, 1), new ItemStack(Blocks.hopper, 1, 32767)) + .itemOutputs(new ItemStack(Items.hopper_minecart, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Items.minecart, 1), new ItemStack(Blocks.tnt, 1, 32767)) + .itemOutputs(new ItemStack(Items.tnt_minecart, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Items.minecart, 1), new ItemStack(Blocks.chest, 1, 32767)) + .itemOutputs(new ItemStack(Items.chest_minecart, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Items.minecart, 1), new ItemStack(Blocks.trapped_chest, 1, 32767)) + .itemOutputs(new ItemStack(Items.chest_minecart, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Items.minecart, 1), new ItemStack(Blocks.furnace, 1, 32767)) + .itemOutputs(new ItemStack(Items.furnace_minecart, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Blocks.tripwire_hook, 1), new ItemStack(Blocks.chest, 1, 32767)) + .itemOutputs(new ItemStack(Blocks.trapped_chest, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Blocks.stone, 1, 0), GT_Utility.getIntegratedCircuit(4)) + .itemOutputs(new ItemStack(Blocks.stonebrick, 1, 0)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Blocks.sandstone, 1, 0), GT_Utility.getIntegratedCircuit(23)) + .itemOutputs(new ItemStack(Blocks.sandstone, 1, 2)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Blocks.sandstone, 1, 1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(new ItemStack(Blocks.sandstone, 1, 0)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Blocks.sandstone, 1, 2), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(new ItemStack(Blocks.sandstone, 1, 0)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 8), + GT_Utility.getIntegratedCircuit(8)) + .itemOutputs(GT_ModHandler.getIC2Item("machine", 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(1 * SECONDS + 5 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 8), + GT_Utility.getIntegratedCircuit(8)) + .itemOutputs(ItemList.Casing_ULV.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(1 * SECONDS + 5 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Steel, 8), + GT_Utility.getIntegratedCircuit(8)) + .itemOutputs(ItemList.Casing_LV.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 8), + GT_Utility.getIntegratedCircuit(8)) + .itemOutputs(ItemList.Casing_MV.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.StainlessSteel, 8), + GT_Utility.getIntegratedCircuit(8)) + .itemOutputs(ItemList.Casing_HV.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Titanium, 8), + GT_Utility.getIntegratedCircuit(8)) + .itemOutputs(ItemList.Casing_EV.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.TungstenSteel, 8), + GT_Utility.getIntegratedCircuit(8)) + .itemOutputs(ItemList.Casing_IV.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Chrome, 8), + GT_Utility.getIntegratedCircuit(8)) + .itemOutputs(ItemList.Casing_LuV.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iridium, 8), + GT_Utility.getIntegratedCircuit(8)) + .itemOutputs(ItemList.Casing_ZPM.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Osmium, 8), + GT_Utility.getIntegratedCircuit(8)) + .itemOutputs(ItemList.Casing_UV.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Neutronium, 8), + GT_Utility.getIntegratedCircuit(8)) + .itemOutputs(ItemList.Casing_MAX.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Invar, 6), + GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Invar, 1)) + .itemOutputs(ItemList.Casing_HeatProof.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Steel, 6), + GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Steel, 1)) + .itemOutputs(ItemList.Casing_SolidSteel.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 6), + GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Aluminium, 1)) + .itemOutputs(ItemList.Casing_FrostProof.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.TungstenSteel, 6), + GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.TungstenSteel, 1)) + .itemOutputs(ItemList.Casing_RobustTungstenSteel.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.StainlessSteel, 6), + GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.StainlessSteel, 1)) + .itemOutputs(ItemList.Casing_CleanStainlessSteel.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Titanium, 6), + GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Titanium, 1)) + .itemOutputs(ItemList.Casing_StableTitanium.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Osmiridium, 6), + GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Osmiridium, 1)) + .itemOutputs(ItemList.Casing_MiningOsmiridium.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Neutronium, 6), + GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Neutronium, 1)) + .itemOutputs(ItemList.Casing_MiningNeutronium.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.BlackPlutonium, 6), + GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.BlackPlutonium, 1)) + .itemOutputs(ItemList.Casing_MiningBlackPlutonium.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.HSSS, 4), ItemList.Casing_LuV.get(1)) + .itemOutputs(ItemList.Casing_Fusion.get(1)) + .fluidInputs(Materials.HSSG.getMolten(288)) + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_IV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Americium, 4), + ItemList.Casing_Fusion.get(1)) + .itemOutputs(ItemList.Casing_Fusion2.get(1)) + .fluidInputs(Materials.NaquadahAlloy.getMolten(288)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LuV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Magnalium, 6), + GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.BlueSteel, 1)) + .itemOutputs(ItemList.Casing_Turbine.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.StainlessSteel, 6), + ItemList.Casing_Turbine.get(1)) + .itemOutputs(ItemList.Casing_Turbine1.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Titanium, 6), + ItemList.Casing_Turbine.get(1)) + .itemOutputs(ItemList.Casing_Turbine2.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.TungstenSteel, 6), + ItemList.Casing_Turbine.get(1)) + .itemOutputs(ItemList.Casing_Turbine3.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.HSSS, 6), ItemList.Casing_Turbine.get(1)) + .itemOutputs(ItemList.Casing_TurbineGasAdvanced.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Casing_SolidSteel.get(1), GT_Utility.getIntegratedCircuit(6)) + .itemOutputs(ItemList.Casing_Chemically_Inert.get(1)) + .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(216)) + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iridium, 6), + GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Iridium, 1)) + .itemOutputs(ItemList.Casing_Advanced_Iridium.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Electric_Pump_ZPM.get(1), - GT_OreDictUnificator.get(OrePrefixes.circuit.get(Materials.Ultimate), 2), - GT_Utility.getIntegratedCircuit(3)) - .itemOutputs(ItemList.FluidRegulator_ZPM.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_ZPM) - .addTo(sAssemblerRecipes); + if (GT_Mod.gregtechproxy.mHardMachineCasings) { + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Lead, 2), + ItemList.Casing_ULV.get(1)) + .itemOutputs(ItemList.Hull_ULV.get(1)) + .fluidInputs(Materials.Plastic.getMolten(288)) + .noFluidOutputs() + .duration(1 * SECONDS + 5 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Tin, 2), + ItemList.Casing_LV.get(1)) + .itemOutputs(ItemList.Hull_LV.get(1)) + .fluidInputs(Materials.Plastic.getMolten(288)) + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Copper, 2), + ItemList.Casing_MV.get(1)) + .itemOutputs(ItemList.Hull_MV.get(1)) + .fluidInputs(Materials.Plastic.getMolten(288)) + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.AnnealedCopper, 2), + ItemList.Casing_MV.get(1)) + .itemOutputs(ItemList.Hull_MV.get(1)) + .fluidInputs(Materials.Plastic.getMolten(288)) + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Gold, 2), + ItemList.Casing_HV.get(1)) + .itemOutputs(ItemList.Hull_HV.get(1)) + .fluidInputs(Materials.Plastic.getMolten(288)) + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Aluminium, 2), + ItemList.Casing_EV.get(1)) + .itemOutputs(ItemList.Hull_EV.get(1)) + .fluidInputs(Materials.Plastic.getMolten(288)) + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Tungsten, 2), + ItemList.Casing_IV.get(1)) + .itemOutputs(ItemList.Hull_IV.get(1)) + .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(288)) + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.VanadiumGallium, 2), + ItemList.Casing_LuV.get(1)) + .itemOutputs(ItemList.Hull_LuV.get(1)) + .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(288)) + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Naquadah, 2), + ItemList.Casing_ZPM.get(1)) + .itemOutputs(ItemList.Hull_ZPM.get(1)) + .fluidInputs(Materials.Polybenzimidazole.getMolten(288)) + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.wireGt04, Materials.NaquadahAlloy, 2), + ItemList.Casing_UV.get(1)) + .itemOutputs(ItemList.Hull_UV.get(1)) + .fluidInputs(Materials.Polybenzimidazole.getMolten(288)) + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.wireGt04, Materials.SuperconductorUV, 2), + ItemList.Casing_MAX.get(1)) + .itemOutputs(ItemList.Hull_MAX.get(1)) + .fluidInputs(Materials.Polybenzimidazole.getMolten(288)) + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + } else { + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Lead, 2), + ItemList.Casing_ULV.get(1)) + .itemOutputs(ItemList.Hull_ULV.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(1 * SECONDS + 5 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Tin, 2), + ItemList.Casing_LV.get(1)) + .itemOutputs(ItemList.Hull_LV.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Copper, 2), + ItemList.Casing_MV.get(1)) + .itemOutputs(ItemList.Hull_MV.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.AnnealedCopper, 2), + ItemList.Casing_MV.get(1)) + .itemOutputs(ItemList.Hull_MV.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Gold, 2), + ItemList.Casing_HV.get(1)) + .itemOutputs(ItemList.Hull_HV.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Aluminium, 2), + ItemList.Casing_EV.get(1)) + .itemOutputs(ItemList.Hull_EV.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Tungsten, 2), + ItemList.Casing_IV.get(1)) + .itemOutputs(ItemList.Hull_IV.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.VanadiumGallium, 2), + ItemList.Casing_LuV.get(1)) + .itemOutputs(ItemList.Hull_LuV.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Naquadah, 2), + ItemList.Casing_ZPM.get(1)) + .itemOutputs(ItemList.Hull_ZPM.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.wireGt04, Materials.NaquadahAlloy, 2), + ItemList.Casing_UV.get(1)) + .itemOutputs(ItemList.Hull_UV.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.wireGt04, Materials.SuperconductorUV, 2), + ItemList.Casing_MAX.get(1)) + .itemOutputs(ItemList.Hull_MAX.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + } GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Electric_Pump_UV.get(1), - GT_OreDictUnificator.get(OrePrefixes.circuit.get(Materials.SuperconductorUHV), 2), - GT_Utility.getIntegratedCircuit(3)) - .itemOutputs(ItemList.FluidRegulator_UV.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(500000) - .addTo(sAssemblerRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Tin, 1), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.BatteryAlloy, 1)) + .itemOutputs(ItemList.Battery_Hull_LV.get(1)) + .fluidInputs(Materials.Plastic.getMolten(144)) + .noFluidOutputs() + .duration(40 * SECONDS) + .eut(1) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Copper, 2), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.BatteryAlloy, 3)) + .itemOutputs(ItemList.Battery_Hull_MV.get(1)) + .fluidInputs(Materials.Plastic.getMolten(432)) + .noFluidOutputs() + .duration(1 * MINUTES + 20 * SECONDS) + .eut(2) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.AnnealedCopper, 2), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.BatteryAlloy, 3)) + .itemOutputs(ItemList.Battery_Hull_MV.get(1)) + .fluidInputs(Materials.Plastic.getMolten(432)) + .noFluidOutputs() + .duration(1 * MINUTES + 20 * SECONDS) + .eut(2) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Gold, 4), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.BatteryAlloy, 9)) + .itemOutputs(ItemList.Battery_Hull_HV.get(1)) + .fluidInputs(Materials.Plastic.getMolten(1296)) + .noFluidOutputs() + .duration(2 * MINUTES + 40 * SECONDS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Items.string, 4, 32767), new ItemStack(Items.slime_ball, 1, 32767)) + .itemOutputs(new ItemStack(Items.lead, 2)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(2) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.IC2_Compressed_Coal_Ball.get(8), new ItemStack(Blocks.brick_block, 1)) + .itemOutputs(ItemList.IC2_Compressed_Coal_Chunk.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_ModHandler.getIC2Item("waterMill", 2), GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(GT_ModHandler.getIC2Item("generator", 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * MINUTES + 20 * SECONDS) + .eut(8) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_ModHandler.getIC2Item("batPack", 1L, 32767), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.IC2_ReBattery.get(6)) + .noFluidInputs() + .noFluidOutputs() + .duration(40 * SECONDS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_ModHandler.getIC2Item("carbonFiber", 2), GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(GT_ModHandler.getIC2Item("carbonMesh", 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(40 * SECONDS) + .eut(2) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 4), + GT_ModHandler.getIC2Item("generator", 1)) + .itemOutputs(GT_ModHandler.getIC2Item("waterMill", 2)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * MINUTES + 20 * SECONDS) + .eut(8) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 5), + new ItemStack(Blocks.chest, 1, 32767)) + .itemOutputs(new ItemStack(Blocks.hopper)) + .noFluidInputs() + .noFluidOutputs() + .duration(40 * SECONDS) + .eut(2) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 5), + new ItemStack(Blocks.trapped_chest, 1, 32767)) + .itemOutputs(new ItemStack(Blocks.hopper)) + .noFluidInputs() + .noFluidOutputs() + .duration(40 * SECONDS) + .eut(2) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 5), + new ItemStack(Blocks.chest, 1, 32767)) + .itemOutputs(new ItemStack(Blocks.hopper)) + .noFluidInputs() + .noFluidOutputs() + .duration(40 * SECONDS) + .eut(2) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 5), + new ItemStack(Blocks.trapped_chest, 1, 32767)) + .itemOutputs(new ItemStack(Blocks.hopper)) + .noFluidInputs() + .noFluidOutputs() + .duration(40 * SECONDS) + .eut(2) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Magnalium, 2), + GT_ModHandler.getIC2Item("generator", 1)) + .itemOutputs(GT_ModHandler.getIC2Item("windMill", 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * MINUTES + 20 * SECONDS) + .eut(8) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.gem, Materials.EnderPearl, 1), + new ItemStack(Items.blaze_powder, 1, 0)) + .itemOutputs(new ItemStack(Items.ender_eye, 1, 0)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(2) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.gem, Materials.EnderPearl, 6), + new ItemStack(Items.blaze_rod, 1, 0)) + .itemOutputs(new ItemStack(Items.ender_eye, 6, 0)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * MINUTES + 5 * SECONDS) + .eut(2) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.gear, Materials.CobaltBrass, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Diamond, 1)) + .itemOutputs(ItemList.Component_Sawblade_Diamond.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(1 * MINUTES + 20 * SECONDS) + .eut(2) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 4), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glowstone, 4)) + .itemOutputs(new ItemStack(Blocks.redstone_lamp, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(1) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 1)) + .itemOutputs(new ItemStack(Blocks.redstone_torch, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(1) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 4)) + .itemOutputs(new ItemStack(Items.compass, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 4)) + .itemOutputs(new ItemStack(Items.compass, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Gold, 4)) + .itemOutputs(new ItemStack(Items.clock, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 1)) + .itemOutputs(new ItemStack(Blocks.torch, 2)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(1) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.TricalciumPhosphate, 1)) + .itemOutputs(new ItemStack(Blocks.torch, 6)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(1) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 1), ItemList.IC2_Resin.get(1)) + .itemOutputs(new ItemStack(Blocks.torch, 6)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(1) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Coal, 8), new ItemStack(Items.flint, 1)) + .itemOutputs(ItemList.IC2_Compressed_Coal_Ball.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(4) + .addTo(sAssemblerRecipes); + if (!GT_Mod.gregtechproxy.mDisableIC2Cables) { + GT_Values.RA.stdBuilder() + .itemInputs( + GT_ModHandler.getIC2Item("tinCableItem", 1), + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Rubber, 1)) + .itemOutputs(GT_ModHandler.getIC2Item("insulatedTinCableItem", 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(2) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_ModHandler.getIC2Item("copperCableItem", 1), + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Rubber, 1)) + .itemOutputs(GT_ModHandler.getIC2Item("insulatedCopperCableItem", 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(2) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_ModHandler.getIC2Item("goldCableItem", 1), + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Rubber, 2)) + .itemOutputs(GT_ModHandler.getIC2Item("insulatedGoldCableItem", 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(2) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_ModHandler.getIC2Item("ironCableItem", 1), + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Rubber, 3)) + .itemOutputs(GT_ModHandler.getIC2Item("insulatedIronCableItem", 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(2) + .addTo(sAssemblerRecipes); + } GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Steam_Valve_LV.get(1), - GT_OreDictUnificator.get(OrePrefixes.circuit.get(Materials.Basic), 2), - GT_Utility.getIntegratedCircuit(3)) - .itemOutputs(ItemList.Steam_Regulator_LV.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.toolHeadSword, Materials.Wood, 1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 1)) + .itemOutputs(new ItemStack(Items.wooden_sword, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.toolHeadSword, Materials.Stone, 1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 1)) + .itemOutputs(new ItemStack(Items.stone_sword, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.toolHeadSword, Materials.Iron, 1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 1)) + .itemOutputs(new ItemStack(Items.iron_sword, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.toolHeadSword, Materials.Gold, 1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 1)) + .itemOutputs(new ItemStack(Items.golden_sword, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.toolHeadSword, Materials.Diamond, 1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 1)) + .itemOutputs(new ItemStack(Items.diamond_sword, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.toolHeadSword, Materials.Bronze, 1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 1)) + .itemOutputs(ItemList.Tool_Sword_Bronze.getUndamaged(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.toolHeadSword, Materials.Steel, 1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 1)) + .itemOutputs(ItemList.Tool_Sword_Steel.getUndamaged(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.toolHeadPickaxe, Materials.Wood, 1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) + .itemOutputs(new ItemStack(Items.wooden_pickaxe, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.toolHeadPickaxe, Materials.Stone, 1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) + .itemOutputs(new ItemStack(Items.stone_pickaxe, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.toolHeadPickaxe, Materials.Iron, 1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) + .itemOutputs(new ItemStack(Items.iron_pickaxe, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.toolHeadPickaxe, Materials.Gold, 1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) + .itemOutputs(new ItemStack(Items.golden_pickaxe, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.toolHeadPickaxe, Materials.Diamond, 1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) + .itemOutputs(new ItemStack(Items.diamond_pickaxe, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.toolHeadPickaxe, Materials.Bronze, 1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) + .itemOutputs(ItemList.Tool_Pickaxe_Bronze.getUndamaged(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.toolHeadPickaxe, Materials.Steel, 1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) + .itemOutputs(ItemList.Tool_Pickaxe_Steel.getUndamaged(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.toolHeadShovel, Materials.Wood, 1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) + .itemOutputs(new ItemStack(Items.wooden_shovel, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.toolHeadShovel, Materials.Stone, 1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) + .itemOutputs(new ItemStack(Items.stone_shovel, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.toolHeadShovel, Materials.Iron, 1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) + .itemOutputs(new ItemStack(Items.iron_shovel, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.toolHeadShovel, Materials.Gold, 1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) + .itemOutputs(new ItemStack(Items.golden_shovel, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.toolHeadShovel, Materials.Diamond, 1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) + .itemOutputs(new ItemStack(Items.diamond_shovel, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.toolHeadShovel, Materials.Bronze, 1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) + .itemOutputs(ItemList.Tool_Shovel_Bronze.getUndamaged(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.toolHeadShovel, Materials.Steel, 1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) + .itemOutputs(ItemList.Tool_Shovel_Steel.getUndamaged(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.toolHeadAxe, Materials.Wood, 1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) + .itemOutputs(new ItemStack(Items.wooden_axe, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.toolHeadAxe, Materials.Stone, 1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) + .itemOutputs(new ItemStack(Items.stone_axe, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.toolHeadAxe, Materials.Iron, 1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) + .itemOutputs(new ItemStack(Items.iron_axe, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.toolHeadAxe, Materials.Gold, 1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) + .itemOutputs(new ItemStack(Items.golden_axe, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.toolHeadAxe, Materials.Diamond, 1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) + .itemOutputs(new ItemStack(Items.diamond_axe, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.toolHeadAxe, Materials.Bronze, 1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) + .itemOutputs(ItemList.Tool_Axe_Bronze.getUndamaged(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.toolHeadAxe, Materials.Steel, 1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) + .itemOutputs(ItemList.Tool_Axe_Steel.getUndamaged(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.toolHeadHoe, Materials.Wood, 1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) + .itemOutputs(new ItemStack(Items.wooden_hoe, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.toolHeadHoe, Materials.Stone, 1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) + .itemOutputs(new ItemStack(Items.stone_hoe, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.toolHeadHoe, Materials.Iron, 1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) + .itemOutputs(new ItemStack(Items.iron_hoe, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.toolHeadHoe, Materials.Gold, 1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) + .itemOutputs(new ItemStack(Items.golden_hoe, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.toolHeadHoe, Materials.Diamond, 1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) + .itemOutputs(new ItemStack(Items.diamond_hoe, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.toolHeadHoe, Materials.Bronze, 1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) + .itemOutputs(ItemList.Tool_Hoe_Bronze.getUndamaged(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.toolHeadHoe, Materials.Steel, 1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) + .itemOutputs(ItemList.Tool_Hoe_Steel.getUndamaged(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Steam_Valve_MV.get(1), - GT_OreDictUnificator.get(OrePrefixes.circuit.get(Materials.Good), 2), - GT_Utility.getIntegratedCircuit(3)) - .itemOutputs(ItemList.Steam_Regulator_MV.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(17 * SECONDS + 10 * TICKS) - .eut(TierEU.RECIPE_MV) - .addTo(sAssemblerRecipes); + // fuel rod assembler recipes GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Steam_Valve_HV.get(1), - GT_OreDictUnificator.get(OrePrefixes.circuit.get(Materials.Advanced), 2), - GT_Utility.getIntegratedCircuit(3)) - .itemOutputs(ItemList.Steam_Regulator_HV.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sAssemblerRecipes); + .itemInputs( + ItemList.ThoriumCell_1.get(2), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Steel, 4), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.ThoriumCell_2.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.ThoriumCell_1.get(4), + GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Steel, 6), + GT_Utility.getIntegratedCircuit(4)) + .itemOutputs(ItemList.ThoriumCell_4.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.ThoriumCell_2.get(2), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Steel, 4), + GT_Utility.getIntegratedCircuit(5)) + .itemOutputs(ItemList.ThoriumCell_4.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Uraniumcell_1.get(2), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Steel, 4), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Uraniumcell_2.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Uraniumcell_1.get(4), + GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Steel, 6), + GT_Utility.getIntegratedCircuit(4)) + .itemOutputs(ItemList.Uraniumcell_4.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Uraniumcell_2.get(2), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Steel, 4), + GT_Utility.getIntegratedCircuit(5)) + .itemOutputs(ItemList.Uraniumcell_4.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Moxcell_1.get(2), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Steel, 4), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Moxcell_2.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Moxcell_1.get(4), + GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Steel, 6), + GT_Utility.getIntegratedCircuit(4)) + .itemOutputs(ItemList.Moxcell_4.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Moxcell_2.get(2), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Steel, 4), + GT_Utility.getIntegratedCircuit(5)) + .itemOutputs(ItemList.Moxcell_4.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.NaquadahCell_1.get(2), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.TungstenSteel, 4), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.NaquadahCell_2.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(400) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.NaquadahCell_1.get(4), + GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.TungstenSteel, 6), + GT_Utility.getIntegratedCircuit(4)) + .itemOutputs(ItemList.NaquadahCell_4.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(7 * SECONDS + 10 * TICKS) + .eut(400) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.NaquadahCell_2.get(2), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.TungstenSteel, 4), + GT_Utility.getIntegratedCircuit(5)) + .itemOutputs(ItemList.NaquadahCell_4.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(400) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.MNqCell_1.get(2), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.TungstenSteel, 4), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.MNqCell_2.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(400) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.MNqCell_1.get(4), + GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.TungstenSteel, 6), + GT_Utility.getIntegratedCircuit(4)) + .itemOutputs(ItemList.MNqCell_4.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(7 * SECONDS + 10 * TICKS) + .eut(400) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.MNqCell_2.get(2), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.TungstenSteel, 4), + GT_Utility.getIntegratedCircuit(5)) + .itemOutputs(ItemList.MNqCell_4.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(400) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plateDense, Materials.Neutronium, 8), + GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Iridium, 4)) + .itemOutputs(ItemList.neutroniumHeatCapacitor.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_ZPM) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + Materials.NaquadahAlloy.getPlates(8), + GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.NaquadahAlloy, 1)) + .itemOutputs(ItemList.RadiantNaquadahAlloyCasing.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * TICKS) + .eut(400000) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.KevlarFiber.get(8), GT_Utility.getIntegratedCircuit(8)) + .itemOutputs(ItemList.WovenKevlar.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sAssemblerRecipes); - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Steam_Valve_EV.get(1), - GT_OreDictUnificator.get(OrePrefixes.circuit.get(Materials.Data), 2), - GT_Utility.getIntegratedCircuit(3)) - .itemOutputs(ItemList.Steam_Regulator_EV.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(12 * SECONDS + 10 * TICKS) - .eut(TierEU.RECIPE_EV) - .addTo(sAssemblerRecipes); + ItemStack[] plates = new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 1L), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 1L), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 1L) }; - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Steam_Valve_IV.get(1), - GT_OreDictUnificator.get(OrePrefixes.circuit.get(Materials.Elite), 2), - GT_Utility.getIntegratedCircuit(3)) - .itemOutputs(ItemList.Steam_Regulator_IV.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_IV) - .addTo(sAssemblerRecipes); + for (Materials tMat : solderingMats) { + int tMultiplier = tMat.contains(SubTag.SOLDERING_MATERIAL_GOOD) ? 1 + : tMat.contains(SubTag.SOLDERING_MATERIAL_BAD) ? 4 : 2; - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Electric_Pump_LV.get(1), - ItemList.Electric_Motor_LV.get(1), - GT_OreDictUnificator.get(OrePrefixes.gear.get(Materials.Steel), 2), - GT_Utility.getIntegratedCircuit(5)) - .itemOutputs(ItemList.Steam_Valve_LV.get(1)) - .noFluidInputs() + for (ItemStack tPlate : plates) { + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Blocks.lever, 1, 32767), tPlate, GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Cover_Controller.get(1)) + .fluidInputs(tMat.getMolten(144L * tMultiplier / 2)) .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_LV) + .duration(40 * SECONDS) + .eut(16) .addTo(sAssemblerRecipes); - GT_Values.RA.stdBuilder() + GT_Values.RA.stdBuilder() .itemInputs( - ItemList.Electric_Pump_MV.get(1), - ItemList.Electric_Motor_MV.get(1), - GT_OreDictUnificator.get(OrePrefixes.gear.get(Materials.Aluminium), 2), - GT_Utility.getIntegratedCircuit(5)) - .itemOutputs(ItemList.Steam_Valve_MV.get(1)) - .noFluidInputs() + new ItemStack(Blocks.redstone_torch, 1, 32767), + tPlate, + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Cover_ActivityDetector.get(1)) + .fluidInputs(tMat.getMolten(144L * tMultiplier / 2)) .noFluidOutputs() - .duration(17 * SECONDS + 10 * TICKS) - .eut(TierEU.RECIPE_MV) + .duration(40 * SECONDS) + .eut(16) .addTo(sAssemblerRecipes); - { // limiting lifetime of the variables - ItemStack flask = ItemList.VOLUMETRIC_FLASK.get(1); - NBTTagCompound nbtFlask = new NBTTagCompound(); - int[] capacities = new int[] { 144, 288, 576, 720, 864, 72, 648, 936, 250, 500, 1000 }; - int[] circuitConfigurations = new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 24 }; - for (int i = 0; i < capacities.length; i++) { - nbtFlask.setInteger("Capacity", capacities[i]); - flask.setTagCompound(nbtFlask); - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.VOLUMETRIC_FLASK.get(1), - GT_Utility.getIntegratedCircuit(circuitConfigurations[i])) - .itemOutputs(flask) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * TICKS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - } - } - - GT_Values.RA.stdBuilder() .itemInputs( - ItemList.Hull_LV.get(1), - GT_OreDictUnificator.get(OrePrefixes.pipeMedium, Materials.Bronze, 1), - GT_OreDictUnificator.get(OrePrefixes.rotor, Materials.Bronze, 1), - ItemList.Electric_Motor_LV.get(1), - GT_Utility.getIntegratedCircuit(3)) - .itemOutputs(ItemList.Hatch_Muffler_LV.get(1)) - .noFluidInputs() + new ItemStack(Blocks.heavy_weighted_pressure_plate, 1, 32767), + tPlate, + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Cover_FluidDetector.get(1)) + .fluidInputs(tMat.getMolten(144L * tMultiplier / 2)) .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) + .duration(40 * SECONDS) + .eut(16) .addTo(sAssemblerRecipes); - GT_Values.RA.stdBuilder() + GT_Values.RA.stdBuilder() .itemInputs( - ItemList.Hull_MV.get(1), - GT_OreDictUnificator.get(OrePrefixes.pipeMedium, Materials.Steel, 1), - GT_OreDictUnificator.get(OrePrefixes.rotor, Materials.Steel, 1), - ItemList.Electric_Motor_MV.get(1), - GT_Utility.getIntegratedCircuit(3)) - .itemOutputs(ItemList.Hatch_Muffler_MV.get(1)) - .noFluidInputs() + new ItemStack(Blocks.light_weighted_pressure_plate, 1, 32767), + tPlate, + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Cover_ItemDetector.get(1)) + .fluidInputs(tMat.getMolten(144L * tMultiplier / 2)) .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_MV) + .duration(40 * SECONDS) + .eut(16) .addTo(sAssemblerRecipes); - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_HV.get(1), - GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.StainlessSteel, 1), - GT_OreDictUnificator.get(OrePrefixes.rotor, Materials.StainlessSteel, 1), - ItemList.Electric_Motor_HV.get(1), - GT_Utility.getIntegratedCircuit(3)) - .itemOutputs(ItemList.Hatch_Muffler_HV.get(1)) - .noFluidInputs() + GT_Values.RA.stdBuilder() + .itemInputs(GT_ModHandler.getIC2Item("ecMeter", 1), tPlate, GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Cover_EnergyDetector.get(1)) + .fluidInputs(tMat.getMolten(144L * tMultiplier / 2)) .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_HV) + .duration(40 * SECONDS) + .eut(16) .addTo(sAssemblerRecipes); + } - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_EV.get(1), - GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.Titanium, 1), - ItemList.Electric_Motor_EV.get(1), - GT_OreDictUnificator.get(OrePrefixes.rotor, Materials.Titanium, 1), - GT_Utility.getIntegratedCircuit(3)) - .itemOutputs(ItemList.Hatch_Muffler_EV.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sAssemblerRecipes); + } + } - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_IV.get(1), - GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.TungstenSteel, 1), - ItemList.Electric_Motor_IV.get(1), - GT_OreDictUnificator.get(OrePrefixes.rotor, Materials.TungstenSteel, 1), - GT_Utility.getIntegratedCircuit(3)) - .itemOutputs(ItemList.Hatch_Muffler_IV.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_IV) - .addTo(sAssemblerRecipes); + /** + * Adds recipes for input buses from ULV to UHV + */ + public void loadInputBusesRecipes() { + // ULV input bus + { + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_ULV.get(1), + getModItem(NewHorizonsCoreMod.ID, "BabyChest", 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_Bus_ULV.get(1)) + .fluidInputs(Materials.Glue.getFluid(1 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_ULV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_ULV.get(1), + getModItem(NewHorizonsCoreMod.ID, "BabyChest", 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_Bus_ULV.get(1)) + .fluidInputs(Materials.Plastic.getMolten(1 * HALF_INGOT)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_ULV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_ULV.get(1), + getModItem(NewHorizonsCoreMod.ID, "BabyChest", 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_Bus_ULV.get(1)) + .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(1 * EIGHTH_INGOT)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_ULV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_ULV.get(1), + getModItem(NewHorizonsCoreMod.ID, "BabyChest", 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_Bus_ULV.get(1)) + .fluidInputs(Materials.Polybenzimidazole.getMolten(4)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_ULV) + .addTo(sAssemblerRecipes); + } - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_LuV.get(1), - GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.Enderium, 1), - ItemList.Electric_Motor_LuV.get(1), - GT_OreDictUnificator.get(OrePrefixes.rotor, Materials.Enderium, 1), - GT_Utility.getIntegratedCircuit(3)) - .itemOutputs(ItemList.Hatch_Muffler_LuV.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LuV) - .addTo(sAssemblerRecipes); + // LV input bus + { + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Hull_LV.get(1), new ItemStack(Blocks.chest), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_Bus_LV.get(1)) + .fluidInputs(Materials.Glue.getFluid(5 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Hull_LV.get(1), new ItemStack(Blocks.chest), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_Bus_LV.get(1)) + .fluidInputs(Materials.Plastic.getMolten(1 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Hull_LV.get(1), new ItemStack(Blocks.chest), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_Bus_LV.get(1)) + .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(1 * HALF_INGOT)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Hull_LV.get(1), new ItemStack(Blocks.chest), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_Bus_LV.get(1)) + .fluidInputs(Materials.Polybenzimidazole.getMolten(9)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + } - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_ZPM.get(1), - GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.Naquadah, 1), - ItemList.Electric_Motor_ZPM.get(1), - GT_OreDictUnificator.get(OrePrefixes.rotor, Materials.NaquadahAlloy, 1), - GT_Utility.getIntegratedCircuit(3)) - .itemOutputs(ItemList.Hatch_Muffler_ZPM.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_ZPM) - .addTo(sAssemblerRecipes); + // MV input bus + { + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_MV.get(1), + getModItem(IronChests.ID, "BlockIronChest", 1, 3), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_Bus_MV.get(1)) + .fluidInputs(Materials.Plastic.getMolten(2 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_MV.get(1), + getModItem(IronChests.ID, "BlockIronChest", 1, 3), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_Bus_MV.get(1)) + .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(1 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_MV.get(1), + getModItem(IronChests.ID, "BlockIronChest", 1, 3), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_Bus_MV.get(1)) + .fluidInputs(Materials.Polybenzimidazole.getMolten(1 * EIGHTH_INGOT)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sAssemblerRecipes); + } - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_UV.get(1), - GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.NetherStar, 1), - ItemList.Electric_Motor_UV.get(1), - GT_OreDictUnificator.get(OrePrefixes.rotor, Materials.Neutronium, 1), - GT_Utility.getIntegratedCircuit(3)) - .itemOutputs(ItemList.Hatch_Muffler_UV.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(500000) - .addTo(sAssemblerRecipes); + // HV input bus + { + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_HV.get(1), + getModItem(IronChests.ID, "BlockIronChest", 1, 0), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_Bus_HV.get(1)) + .fluidInputs(Materials.Plastic.getMolten(3 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_HV.get(1), + getModItem(IronChests.ID, "BlockIronChest", 1, 0), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_Bus_HV.get(1)) + .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(2 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_HV.get(1), + getModItem(IronChests.ID, "BlockIronChest", 1, 0), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_Bus_HV.get(1)) + .fluidInputs(Materials.Polybenzimidazole.getMolten(1 * QUARTER_INGOT)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sAssemblerRecipes); + } - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_MAX.get(1), - GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.MysteriousCrystal, 1), - ItemList.Electric_Motor_UHV.get(1), - GT_OreDictUnificator.get(OrePrefixes.rotor, Materials.CosmicNeutronium, 1), - GT_Utility.getIntegratedCircuit(3)) - .itemOutputs(ItemList.Hatch_Muffler_MAX.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(2000000) - .addTo(sAssemblerRecipes); + // EV input bus + { + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_EV.get(1), + getModItem(IronChests.ID, "BlockIronChest", 1, 4), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_Bus_EV.get(1)) + .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(4 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_EV.get(1), + getModItem(IronChests.ID, "BlockIronChest", 1, 4), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_Bus_EV.get(1)) + .fluidInputs(Materials.Polybenzimidazole.getMolten(1 * HALF_INGOT)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sAssemblerRecipes); + } - GT_Values.RA.stdBuilder() - .itemInputs( - new ItemStack(Blocks.redstone_torch, 2, 32767), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1)) - .itemOutputs(new ItemStack(Items.repeater, 1, 0)) - .fluidInputs(Materials.Concrete.getMolten(144)) - .noFluidOutputs() - .duration(4 * SECONDS) - .eut(10) - .addTo(sAssemblerRecipes); + // IV input bus + { + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_IV.get(1), + getModItem(IronChests.ID, "BlockIronChest", 1, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_Bus_IV.get(1)) + .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(8 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_IV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_IV.get(1), + getModItem(IronChests.ID, "BlockIronChest", 1, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_Bus_IV.get(1)) + .fluidInputs(Materials.Polybenzimidazole.getMolten(1 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_IV) + .addTo(sAssemblerRecipes); + } - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.leather, 1, 32767), new ItemStack(Items.lead, 1, 32767)) - .itemOutputs(new ItemStack(Items.name_tag, 1, 0)) - .fluidInputs(Materials.Glue.getFluid(72)) - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(8) - .addTo(sAssemblerRecipes); + // LuV input bus + { + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_LuV.get(1), + getModItem(IronChests.ID, "BlockIronChest", 1, 2), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_Bus_LuV.get(1)) + .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(16 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_LuV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_LuV.get(1), + getModItem(IronChests.ID, "BlockIronChest", 1, 2), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_Bus_LuV.get(1)) + .fluidInputs(Materials.Polybenzimidazole.getMolten(2 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_LuV) + .addTo(sAssemblerRecipes); + } - GT_Values.RA.stdBuilder() - .itemInputs( - getModItem(NewHorizonsCoreMod.ID, "item.ArtificialLeather", 1L, 0), - new ItemStack(Items.lead, 1, 32767)) - .itemOutputs(new ItemStack(Items.name_tag, 1, 0)) - .fluidInputs(Materials.Glue.getFluid(72)) - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(8) - .addTo(sAssemblerRecipes); + // ZPM input bus + { + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_ZPM.get(1), + getModItem(IronChests.ID, "BlockIronChest", 2, 5), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_Bus_ZPM.get(1)) + .fluidInputs(Materials.Polybenzimidazole.getMolten(4 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_ZPM) + .addTo(sAssemblerRecipes); + } - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Paper, 8), - new ItemStack(Items.compass, 1, 32767)) - .itemOutputs(new ItemStack(Items.map, 1, 0)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(8) - .addTo(sAssemblerRecipes); + // UV input bus + { + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_UV.get(1), + getModItem(IronChests.ID, "BlockIronChest", 2, 6), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_Bus_UV.get(1)) + .fluidInputs(Materials.Polybenzimidazole.getMolten(8 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_UV) + .addTo(sAssemblerRecipes); + } - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Tantalum, 1), - GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Manganese, 1)) - .itemOutputs(ItemList.Battery_RE_ULV_Tantalum.get(8)) - .fluidInputs(Materials.Plastic.getMolten(144)) - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - getModItem(TwilightForest.ID, "item.charmOfLife1", 4L, 0), - GT_Utility.getIntegratedCircuit(4)) - .itemOutputs(getModItem(TwilightForest.ID, "item.charmOfLife2", 1L, 0)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(8) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - getModItem(TwilightForest.ID, "item.charmOfKeeping1", 4L, 0), - GT_Utility.getIntegratedCircuit(4)) - .itemOutputs(getModItem(TwilightForest.ID, "item.charmOfKeeping2", 1L, 0)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(8) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - getModItem(TwilightForest.ID, "item.charmOfKeeping2", 4L, 0), - GT_Utility.getIntegratedCircuit(4)) - .itemOutputs(getModItem(TwilightForest.ID, "item.charmOfKeeping3", 1L, 0)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(8) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - getModItem(TwilightForest.ID, "item.charmOfLife2", 1L, 0), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(getModItem(TwilightForest.ID, "item.charmOfLife1", 4L, 0)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(8) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - getModItem(TwilightForest.ID, "item.charmOfKeeping2", 1L, 0), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(getModItem(TwilightForest.ID, "item.charmOfKeeping1", 4L, 0)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(8) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - getModItem(TwilightForest.ID, "item.charmOfKeeping3", 1L, 0), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(getModItem(TwilightForest.ID, "item.charmOfKeeping2", 4L, 0)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(8) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 16), - getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 20)) - .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 23)) - .fluidInputs(Materials.Redstone.getMolten(144)) - .noFluidOutputs() - .duration(3 * SECONDS + 4 * TICKS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 17), - getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 20)) - .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 24)) - .fluidInputs(Materials.Redstone.getMolten(144)) - .noFluidOutputs() - .duration(3 * SECONDS + 4 * TICKS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 18), - getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 20)) - .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 22)) - .fluidInputs(Materials.Redstone.getMolten(144)) - .noFluidOutputs() - .duration(3 * SECONDS + 4 * TICKS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.CertusQuartz, 1), - new ItemStack(Blocks.sand, 1, 32767)) - .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemCrystalSeed", 2L, 0)) - .noFluidInputs() - .noFluidOutputs() - .duration(3 * SECONDS + 4 * TICKS) - .eut(8) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.NetherQuartz, 1), - new ItemStack(Blocks.sand, 1, 32767)) - .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemCrystalSeed", 2L, 600)) - .noFluidInputs() - .noFluidOutputs() - .duration(3 * SECONDS + 4 * TICKS) - .eut(8) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Fluix, 1), - new ItemStack(Blocks.sand, 1, 32767)) - .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemCrystalSeed", 2L, 1200)) - .noFluidInputs() - .noFluidOutputs() - .duration(3 * SECONDS + 4 * TICKS) - .eut(8) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.FR_Wax.get(6), new ItemStack(Items.string, 1, 32767)) - .itemOutputs(getModItem(Forestry.ID, "candle", 24L, 0)) - .fluidInputs(Materials.Water.getFluid(600)) - .noFluidOutputs() - .duration(3 * SECONDS + 4 * TICKS) - .eut(8) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.FR_Wax.get(2), ItemList.FR_Silk.get(1)) - .itemOutputs(getModItem(Forestry.ID, "candle", 8L, 0)) - .fluidInputs(Materials.Water.getFluid(200)) - .noFluidOutputs() - .duration(16 * TICKS) - .eut(8) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.FR_Silk.get(9), GT_Utility.getIntegratedCircuit(9)) - .itemOutputs(getModItem(Forestry.ID, "craftingMaterial", 1L, 3)) - .fluidInputs(Materials.Water.getFluid(500)) - .noFluidOutputs() - .duration(3 * SECONDS + 4 * TICKS) - .eut(8) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Forestry.ID, "propolis", 5L, 2), GT_Utility.getIntegratedCircuit(5)) - .itemOutputs(getModItem(Forestry.ID, "craftingMaterial", 1L, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(16 * TICKS) - .eut(8) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - getModItem(Forestry.ID, "sturdyMachine", 1L, 0), - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Diamond, 4)) - .itemOutputs(ItemList.FR_Casing_Hardened.get(1)) - .fluidInputs(Materials.Water.getFluid(5000)) - .noFluidOutputs() - .duration(3 * SECONDS + 4 * TICKS) - .eut(32) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Bronze, 8), - GT_Utility.getIntegratedCircuit(8)) - .itemOutputs(ItemList.FR_Casing_Sturdy.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(1 * SECONDS + 12 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 1), - new ItemStack(Blocks.wool, 1, 32767)) - .itemOutputs(new ItemStack(Blocks.torch, 6, 0)) - .fluidInputs(Materials.Creosote.getFluid(1000)) - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(1) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Forestry.ID, "craftingMaterial", 5L, 1), GT_Utility.getIntegratedCircuit(5)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.EnderPearl, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(3 * SECONDS + 4 * TICKS) - .eut(8) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.piston, 1, 32767), new ItemStack(Items.slime_ball, 1, 32767)) - .itemOutputs(new ItemStack(Blocks.sticky_piston, 1, 0)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.piston, 1, 32767), ItemList.IC2_Resin.get(1)) - .itemOutputs(new ItemStack(Blocks.sticky_piston, 1, 0)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.piston, 1, 32767), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(new ItemStack(Blocks.sticky_piston, 1, 0)) - .fluidInputs(Materials.Glue.getFluid(100)) - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Rubber, 3), - GT_ModHandler.getIC2Item("carbonMesh", 3), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Duct_Tape.get(1)) - .fluidInputs(Materials.Glue.getFluid(300)) - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.StyreneButadieneRubber, 2), - GT_ModHandler.getIC2Item("carbonMesh", 2), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Duct_Tape.get(1)) - .fluidInputs(Materials.Glue.getFluid(200)) - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Silicone, 1), - GT_ModHandler.getIC2Item("carbonMesh", 1), - GT_Utility.getIntegratedCircuit(3)) - .itemOutputs(ItemList.Duct_Tape.get(1)) - .fluidInputs(Materials.Glue.getFluid(100)) - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sAssemblerRecipes); - - // Maintenance Hatch Recipes Using BrainTech + Refined Glue. Info: One BrainTech Recipe Is In GT+ü Originally. - // The Maintenance Hatch Recipe using SuperGlue is there. - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Hull_LV.get(1), ItemList.Duct_Tape.get(2), GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Maintenance.get(1)) - .fluidInputs(Materials.Glue.getFluid(1000)) - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Paper, 3), - new ItemStack(Items.leather, 1, 32767)) - .itemOutputs(new ItemStack(Items.book, 1, 0)) - .fluidInputs(Materials.Glue.getFluid(20)) - .noFluidOutputs() - .duration(1 * SECONDS + 12 * TICKS) - .eut(8) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Paper, 3), - getModItem(NewHorizonsCoreMod.ID, "item.ArtificialLeather", 1L, 0)) - .itemOutputs(new ItemStack(Items.book, 1, 0)) - .fluidInputs(Materials.Glue.getFluid(20)) - .noFluidOutputs() - .duration(1 * SECONDS + 12 * TICKS) - .eut(8) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Paper, 3), - GT_OreDictUnificator.get(OrePrefixes.plateQuadruple, Materials.Paper, 1)) - .itemOutputs(new ItemStack(Items.book, 1, 0)) - .fluidInputs(Materials.Glue.getFluid(20)) - .noFluidOutputs() - .duration(1 * SECONDS + 12 * TICKS) - .eut(8) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Paper_Printed_Pages.get(1), new ItemStack(Items.leather, 1, 32767)) - .itemOutputs(new ItemStack(Items.written_book, 1, 0)) - .fluidInputs(Materials.Glue.getFluid(20)) - .noFluidOutputs() - .duration(1 * SECONDS + 12 * TICKS) - .eut(8) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Paper_Printed_Pages.get(1), - getModItem(NewHorizonsCoreMod.ID, "item.ArtificialLeather", 1L, 0)) - .itemOutputs(new ItemStack(Items.written_book, 1, 0)) - .fluidInputs(Materials.Glue.getFluid(20)) - .noFluidOutputs() - .duration(1 * SECONDS + 12 * TICKS) - .eut(8) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.itemCasing, Materials.Tin, 4)) - .itemOutputs(ItemList.Cell_Universal_Fluid.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(6 * SECONDS + 8 * TICKS) - .eut(8) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Food_Baked_Cake.get(1), new ItemStack(Items.egg, 1, 0)) - .itemOutputs(new ItemStack(Items.cake, 1, 0)) - .fluidInputs(Materials.Milk.getFluid(3000)) - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(8) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Food_Sliced_Bun.get(2), GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Food_Sliced_Buns.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Food_Sliced_Bread.get(2), GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Food_Sliced_Breads.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Food_Sliced_Baguette.get(2), GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Food_Sliced_Baguettes.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Food_Sliced_Buns.get(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Food_Sliced_Bun.get(2)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Food_Sliced_Breads.get(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Food_Sliced_Bread.get(2)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Food_Sliced_Baguettes.get(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Food_Sliced_Baguette.get(2)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Food_Sliced_Bun.get(2), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.MeatCooked, 1)) - .itemOutputs(ItemList.Food_Burger_Meat.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Food_Sliced_Buns.get(1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.MeatCooked, 1)) - .itemOutputs(ItemList.Food_Burger_Meat.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Food_Sliced_Bun.get(2), ItemList.Food_Chum.get(1)) - .itemOutputs(ItemList.Food_Burger_Chum.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Food_Sliced_Buns.get(1), ItemList.Food_Chum.get(1)) - .itemOutputs(ItemList.Food_Burger_Chum.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Food_Sliced_Bun.get(2), ItemList.Food_Sliced_Cheese.get(3)) - .itemOutputs(ItemList.Food_Burger_Cheese.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Food_Sliced_Buns.get(1), ItemList.Food_Sliced_Cheese.get(3)) - .itemOutputs(ItemList.Food_Burger_Cheese.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Food_Flat_Dough.get(1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.MeatCooked, 1)) - .itemOutputs(ItemList.Food_Raw_Pizza_Meat.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Food_Flat_Dough.get(1), ItemList.Food_Sliced_Cheese.get(3)) - .itemOutputs(ItemList.Food_Raw_Pizza_Cheese.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(4) - .addTo(sAssemblerRecipes); - - // SC craft - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Pentacadmiummagnesiumhexaoxid, 3), - GT_OreDictUnificator.get(OrePrefixes.pipeTiny, Materials.StainlessSteel, 2), - ItemList.Electric_Pump_MV.get(1), - GT_Utility.getIntegratedCircuit(9)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorMV, 3)) - .fluidInputs(Materials.Helium.getGas(2000)) - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get( - OrePrefixes.wireGt01, - Materials.Titaniumonabariumdecacoppereikosaoxid, - 6), - GT_OreDictUnificator.get(OrePrefixes.pipeTiny, Materials.Titanium, 4), - ItemList.Electric_Pump_HV.get(1), - GT_Utility.getIntegratedCircuit(9)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorHV, 6)) - .fluidInputs(Materials.Helium.getGas(4000)) - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Uraniumtriplatinid, 9), - GT_OreDictUnificator.get(OrePrefixes.pipeTiny, Materials.TungstenSteel, 6), - ItemList.Electric_Pump_EV.get(1), - GT_Utility.getIntegratedCircuit(9)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorEV, 9)) - .fluidInputs(Materials.Helium.getGas(6000)) - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Vanadiumtriindinid, 12), - GT_OreDictUnificator.get(OrePrefixes.pipeTiny, Materials.NiobiumTitanium, 8), - ItemList.Electric_Pump_IV.get(1), - GT_Utility.getIntegratedCircuit(9)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorIV, 12)) - .fluidInputs(Materials.Helium.getGas(8000)) - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(TierEU.RECIPE_IV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get( - OrePrefixes.wireGt01, - Materials.Tetraindiumditindibariumtitaniumheptacoppertetrakaidekaoxid, - 15), - GT_OreDictUnificator.get(OrePrefixes.pipeTiny, Materials.Enderium, 10), - ItemList.Electric_Pump_LuV.get(1), - GT_Utility.getIntegratedCircuit(9)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorLuV, 15)) - .fluidInputs(Materials.Helium.getGas(12000)) - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(TierEU.RECIPE_LuV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get( - OrePrefixes.wireGt01, - Materials.Tetranaquadahdiindiumhexaplatiumosminid, - 18), - GT_OreDictUnificator.get(OrePrefixes.pipeTiny, Materials.Naquadah, 12), - ItemList.Electric_Pump_ZPM.get(1), - GT_Utility.getIntegratedCircuit(9)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorZPM, 18)) - .fluidInputs(Materials.Helium.getGas(16000)) - .noFluidOutputs() - .duration(1 * MINUTES + 20 * SECONDS) - .eut(TierEU.RECIPE_ZPM) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get( - OrePrefixes.wireGt01, - Materials.Longasssuperconductornameforuvwire, - 21), - GT_OreDictUnificator.get(OrePrefixes.pipeTiny, Materials.Neutronium, 14), - ItemList.Electric_Pump_UV.get(1), - GT_Utility.getIntegratedCircuit(9)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorUV, 21)) - .fluidInputs(Materials.Helium.getGas(20000)) - .noFluidOutputs() - .duration(1 * MINUTES + 20 * SECONDS) - .eut(TierEU.RECIPE_UV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get( - OrePrefixes.wireGt01, - Materials.Longasssuperconductornameforuhvwire, - 24), - GT_OreDictUnificator.get(OrePrefixes.pipeTiny, Materials.Bedrockium, 16), - ItemList.Electric_Pump_UHV.get(1), - GT_Utility.getIntegratedCircuit(9)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorUHV, 24)) - .fluidInputs(Materials.Helium.getGas(24000)) - .noFluidOutputs() - .duration(2 * MINUTES + 40 * SECONDS) - .eut(TierEU.RECIPE_UHV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.IronMagnetic, 1), - GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Lead, 16), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.ULV_Coil.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(8) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.IronMagnetic, 1), - GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Steel, 16), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.LV_Coil.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.SteelMagnetic, 1), - GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Aluminium, 16), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.MV_Coil.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.SteelMagnetic, 1), - GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.EnergeticAlloy, 16), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.HV_Coil.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.NeodymiumMagnetic, 1), - GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.TungstenSteel, 16), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.EV_Coil.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.NeodymiumMagnetic, 1), - GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Iridium, 16), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.IV_Coil.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_IV) - .addTo(sAssemblerRecipes); - - Materials LuVMat = BartWorks.isModLoaded() ? Materials.get("Ruridit") : Materials.Osmiridium; - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.SamariumMagnetic, 1), - GT_OreDictUnificator.get(OrePrefixes.wireFine, LuVMat, 16), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.LuV_Coil.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LuV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.SamariumMagnetic, 1), - GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Europium, 16), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.ZPM_Coil.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_ZPM) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.SamariumMagnetic, 1), - GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.ElectrumFlux, 16), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.UV_Coil.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(500000) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.SamariumMagnetic, 1), - GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Tritanium, 16), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.UHV_Coil.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(2000000) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Wood, 6), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.Wood, 2)) - .fluidInputs(Materials.Glue.getFluid(10)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Wood, 3), - GT_Utility.getIntegratedCircuit(4)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.pipeMedium, Materials.Wood, 4)) - .fluidInputs(Materials.Glue.getFluid(20)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Wood, 1), - GT_Utility.getIntegratedCircuit(12)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.pipeSmall, Materials.Wood, 6)) - .fluidInputs(Materials.Glue.getFluid(60)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iridium, 4), - GT_OreDictUnificator.get(OrePrefixes.plateAlloy, Materials.Advanced, 4), - GT_OreDictUnificator.get(OrePrefixes.gemExquisite, Materials.Diamond, 1), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Ingot_IridiumAlloy.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(60 * SECONDS) - .eut(TierEU.RECIPE_IV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Iridium, 1), - ItemList.Electric_Motor_UV.get(1), - GT_OreDictUnificator.get(OrePrefixes.rotor, Materials.Iridium, 1), - ItemList.Component_Filter.get(8), - GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Iridium, 8)) - .itemOutputs(ItemList.Casing_Vent_T2.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(30 * SECONDS) - .eut(TierEU.RECIPE_LuV) - .addTo(sAssemblerRecipes); - - if (!GregTech_API.sRecipeFile.get(ConfigCategories.Recipes.disabledrecipes, "torchesFromCoal", false)) { - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 1), - new ItemStack(Items.coal, 1, 32767)) - .itemOutputs(new ItemStack(Blocks.torch, 4)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(1) - .addTo(sAssemblerRecipes); - } - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Gold, 2), - GT_OreDictUnificator.get(OrePrefixes.spring, Materials.Steel, 1)) - .itemOutputs(new ItemStack(Blocks.light_weighted_pressure_plate, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 2), - GT_OreDictUnificator.get(OrePrefixes.spring, Materials.Steel, 1)) - .itemOutputs(new ItemStack(Blocks.heavy_weighted_pressure_plate, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 6), - GT_Utility.getIntegratedCircuit(6)) - .itemOutputs(new ItemStack(Items.iron_door, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(30 * SECONDS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 7), - GT_Utility.getIntegratedCircuit(7)) - .itemOutputs(new ItemStack(Items.cauldron, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(35 * SECONDS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Iron, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_ModHandler.getIC2Item("ironFence", 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Iron, 3), - GT_Utility.getIntegratedCircuit(3)) - .itemOutputs(new ItemStack(Blocks.iron_bars, 4)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 6), - GT_Utility.getIntegratedCircuit(6)) - .itemOutputs(new ItemStack(Items.iron_door, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(30 * SECONDS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 7), - GT_Utility.getIntegratedCircuit(7)) - .itemOutputs(new ItemStack(Items.cauldron, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(35 * SECONDS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.WroughtIron, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_ModHandler.getIC2Item("ironFence", 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.WroughtIron, 3), - GT_Utility.getIntegratedCircuit(3)) - .itemOutputs(new ItemStack(Blocks.iron_bars, 4)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 3), - GT_Utility.getIntegratedCircuit(3)) - .itemOutputs(new ItemStack(Blocks.fence, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2), - GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Iron, 2)) - .itemOutputs(new ItemStack(Blocks.tripwire_hook, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2), - GT_OreDictUnificator.get(OrePrefixes.ring, Materials.WroughtIron, 2)) - .itemOutputs(new ItemStack(Blocks.tripwire_hook, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 3), - new ItemStack(Items.string, 3, 32767)) - .itemOutputs(new ItemStack(Items.bow, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 3), - ItemList.Component_Minecart_Wheels_Iron.get(2)) - .itemOutputs(new ItemStack(Items.minecart, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(25 * SECONDS) - .eut(2) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 3), - ItemList.Component_Minecart_Wheels_Iron.get(2)) - .itemOutputs(new ItemStack(Items.minecart, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(2) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Steel, 3), - ItemList.Component_Minecart_Wheels_Steel.get(2)) - .itemOutputs(new ItemStack(Items.minecart, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(2) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Iron, 1), - GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Iron, 2)) - .itemOutputs(ItemList.Component_Minecart_Wheels_Iron.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(25 * SECONDS) - .eut(2) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.WroughtIron, 1), - GT_OreDictUnificator.get(OrePrefixes.ring, Materials.WroughtIron, 2)) - .itemOutputs(ItemList.Component_Minecart_Wheels_Iron.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(2) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Steel, 1), - GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Steel, 2)) - .itemOutputs(ItemList.Component_Minecart_Wheels_Steel.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(2) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.minecart, 1), new ItemStack(Blocks.hopper, 1, 32767)) - .itemOutputs(new ItemStack(Items.hopper_minecart, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.minecart, 1), new ItemStack(Blocks.tnt, 1, 32767)) - .itemOutputs(new ItemStack(Items.tnt_minecart, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.minecart, 1), new ItemStack(Blocks.chest, 1, 32767)) - .itemOutputs(new ItemStack(Items.chest_minecart, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.minecart, 1), new ItemStack(Blocks.trapped_chest, 1, 32767)) - .itemOutputs(new ItemStack(Items.chest_minecart, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.minecart, 1), new ItemStack(Blocks.furnace, 1, 32767)) - .itemOutputs(new ItemStack(Items.furnace_minecart, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.tripwire_hook, 1), new ItemStack(Blocks.chest, 1, 32767)) - .itemOutputs(new ItemStack(Blocks.trapped_chest, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.stone, 1, 0), GT_Utility.getIntegratedCircuit(4)) - .itemOutputs(new ItemStack(Blocks.stonebrick, 1, 0)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.sandstone, 1, 0), GT_Utility.getIntegratedCircuit(23)) - .itemOutputs(new ItemStack(Blocks.sandstone, 1, 2)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.sandstone, 1, 1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(new ItemStack(Blocks.sandstone, 1, 0)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.sandstone, 1, 2), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(new ItemStack(Blocks.sandstone, 1, 0)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 8), - GT_Utility.getIntegratedCircuit(8)) - .itemOutputs(GT_ModHandler.getIC2Item("machine", 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(1 * SECONDS + 5 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 8), - GT_Utility.getIntegratedCircuit(8)) - .itemOutputs(ItemList.Casing_ULV.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(1 * SECONDS + 5 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Steel, 8), - GT_Utility.getIntegratedCircuit(8)) - .itemOutputs(ItemList.Casing_LV.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 8), - GT_Utility.getIntegratedCircuit(8)) - .itemOutputs(ItemList.Casing_MV.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.StainlessSteel, 8), - GT_Utility.getIntegratedCircuit(8)) - .itemOutputs(ItemList.Casing_HV.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Titanium, 8), - GT_Utility.getIntegratedCircuit(8)) - .itemOutputs(ItemList.Casing_EV.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.TungstenSteel, 8), - GT_Utility.getIntegratedCircuit(8)) - .itemOutputs(ItemList.Casing_IV.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Chrome, 8), - GT_Utility.getIntegratedCircuit(8)) - .itemOutputs(ItemList.Casing_LuV.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iridium, 8), - GT_Utility.getIntegratedCircuit(8)) - .itemOutputs(ItemList.Casing_ZPM.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Osmium, 8), - GT_Utility.getIntegratedCircuit(8)) - .itemOutputs(ItemList.Casing_UV.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Neutronium, 8), - GT_Utility.getIntegratedCircuit(8)) - .itemOutputs(ItemList.Casing_MAX.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Invar, 6), - GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Invar, 1)) - .itemOutputs(ItemList.Casing_HeatProof.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Steel, 6), - GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Steel, 1)) - .itemOutputs(ItemList.Casing_SolidSteel.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 6), - GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Aluminium, 1)) - .itemOutputs(ItemList.Casing_FrostProof.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.TungstenSteel, 6), - GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.TungstenSteel, 1)) - .itemOutputs(ItemList.Casing_RobustTungstenSteel.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.StainlessSteel, 6), - GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.StainlessSteel, 1)) - .itemOutputs(ItemList.Casing_CleanStainlessSteel.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Titanium, 6), - GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Titanium, 1)) - .itemOutputs(ItemList.Casing_StableTitanium.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Osmiridium, 6), - GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Osmiridium, 1)) - .itemOutputs(ItemList.Casing_MiningOsmiridium.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Neutronium, 6), - GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Neutronium, 1)) - .itemOutputs(ItemList.Casing_MiningNeutronium.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.BlackPlutonium, 6), - GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.BlackPlutonium, 1)) - .itemOutputs(ItemList.Casing_MiningBlackPlutonium.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.HSSS, 4), - ItemList.Casing_LuV.get(1)) - .itemOutputs(ItemList.Casing_Fusion.get(1)) - .fluidInputs(Materials.HSSG.getMolten(288)) - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_IV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Americium, 4), - ItemList.Casing_Fusion.get(1)) - .itemOutputs(ItemList.Casing_Fusion2.get(1)) - .fluidInputs(Materials.NaquadahAlloy.getMolten(288)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LuV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Magnalium, 6), - GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.BlueSteel, 1)) - .itemOutputs(ItemList.Casing_Turbine.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.StainlessSteel, 6), - ItemList.Casing_Turbine.get(1)) - .itemOutputs(ItemList.Casing_Turbine1.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Titanium, 6), - ItemList.Casing_Turbine.get(1)) - .itemOutputs(ItemList.Casing_Turbine2.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.TungstenSteel, 6), - ItemList.Casing_Turbine.get(1)) - .itemOutputs(ItemList.Casing_Turbine3.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.HSSS, 6), - ItemList.Casing_Turbine.get(1)) - .itemOutputs(ItemList.Casing_TurbineGasAdvanced.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Casing_SolidSteel.get(1), GT_Utility.getIntegratedCircuit(6)) - .itemOutputs(ItemList.Casing_Chemically_Inert.get(1)) - .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(216)) - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iridium, 6), - GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Iridium, 1)) - .itemOutputs(ItemList.Casing_Advanced_Iridium.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - if (GT_Mod.gregtechproxy.mHardMachineCasings) { - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Lead, 2), - ItemList.Casing_ULV.get(1)) - .itemOutputs(ItemList.Hull_ULV.get(1)) - .fluidInputs(Materials.Plastic.getMolten(288)) - .noFluidOutputs() - .duration(1 * SECONDS + 5 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Tin, 2), - ItemList.Casing_LV.get(1)) - .itemOutputs(ItemList.Hull_LV.get(1)) - .fluidInputs(Materials.Plastic.getMolten(288)) - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Copper, 2), - ItemList.Casing_MV.get(1)) - .itemOutputs(ItemList.Hull_MV.get(1)) - .fluidInputs(Materials.Plastic.getMolten(288)) - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.AnnealedCopper, 2), - ItemList.Casing_MV.get(1)) - .itemOutputs(ItemList.Hull_MV.get(1)) - .fluidInputs(Materials.Plastic.getMolten(288)) - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Gold, 2), - ItemList.Casing_HV.get(1)) - .itemOutputs(ItemList.Hull_HV.get(1)) - .fluidInputs(Materials.Plastic.getMolten(288)) - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Aluminium, 2), - ItemList.Casing_EV.get(1)) - .itemOutputs(ItemList.Hull_EV.get(1)) - .fluidInputs(Materials.Plastic.getMolten(288)) - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Tungsten, 2), - ItemList.Casing_IV.get(1)) - .itemOutputs(ItemList.Hull_IV.get(1)) - .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(288)) - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.VanadiumGallium, 2), - ItemList.Casing_LuV.get(1)) - .itemOutputs(ItemList.Hull_LuV.get(1)) - .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(288)) - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Naquadah, 2), - ItemList.Casing_ZPM.get(1)) - .itemOutputs(ItemList.Hull_ZPM.get(1)) - .fluidInputs(Materials.Polybenzimidazole.getMolten(288)) - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.wireGt04, Materials.NaquadahAlloy, 2), - ItemList.Casing_UV.get(1)) - .itemOutputs(ItemList.Hull_UV.get(1)) - .fluidInputs(Materials.Polybenzimidazole.getMolten(288)) - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.wireGt04, Materials.SuperconductorUV, 2), - ItemList.Casing_MAX.get(1)) - .itemOutputs(ItemList.Hull_MAX.get(1)) - .fluidInputs(Materials.Polybenzimidazole.getMolten(288)) - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - } else { - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Lead, 2), - ItemList.Casing_ULV.get(1)) - .itemOutputs(ItemList.Hull_ULV.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(1 * SECONDS + 5 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Tin, 2), - ItemList.Casing_LV.get(1)) - .itemOutputs(ItemList.Hull_LV.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Copper, 2), - ItemList.Casing_MV.get(1)) - .itemOutputs(ItemList.Hull_MV.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.AnnealedCopper, 2), - ItemList.Casing_MV.get(1)) - .itemOutputs(ItemList.Hull_MV.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Gold, 2), - ItemList.Casing_HV.get(1)) - .itemOutputs(ItemList.Hull_HV.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Aluminium, 2), - ItemList.Casing_EV.get(1)) - .itemOutputs(ItemList.Hull_EV.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Tungsten, 2), - ItemList.Casing_IV.get(1)) - .itemOutputs(ItemList.Hull_IV.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.VanadiumGallium, 2), - ItemList.Casing_LuV.get(1)) - .itemOutputs(ItemList.Hull_LuV.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Naquadah, 2), - ItemList.Casing_ZPM.get(1)) - .itemOutputs(ItemList.Hull_ZPM.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.wireGt04, Materials.NaquadahAlloy, 2), - ItemList.Casing_UV.get(1)) - .itemOutputs(ItemList.Hull_UV.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.wireGt04, Materials.SuperconductorUV, 2), - ItemList.Casing_MAX.get(1)) - .itemOutputs(ItemList.Hull_MAX.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - } - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Tin, 1), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.BatteryAlloy, 1)) - .itemOutputs(ItemList.Battery_Hull_LV.get(1)) - .fluidInputs(Materials.Plastic.getMolten(144)) - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(1) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Copper, 2), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.BatteryAlloy, 3)) - .itemOutputs(ItemList.Battery_Hull_MV.get(1)) - .fluidInputs(Materials.Plastic.getMolten(432)) - .noFluidOutputs() - .duration(1 * MINUTES + 20 * SECONDS) - .eut(2) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.AnnealedCopper, 2), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.BatteryAlloy, 3)) - .itemOutputs(ItemList.Battery_Hull_MV.get(1)) - .fluidInputs(Materials.Plastic.getMolten(432)) - .noFluidOutputs() - .duration(1 * MINUTES + 20 * SECONDS) - .eut(2) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Gold, 4), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.BatteryAlloy, 9)) - .itemOutputs(ItemList.Battery_Hull_HV.get(1)) - .fluidInputs(Materials.Plastic.getMolten(1296)) - .noFluidOutputs() - .duration(2 * MINUTES + 40 * SECONDS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.string, 4, 32767), new ItemStack(Items.slime_ball, 1, 32767)) - .itemOutputs(new ItemStack(Items.lead, 2)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(2) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.IC2_Compressed_Coal_Ball.get(8), new ItemStack(Blocks.brick_block, 1)) - .itemOutputs(ItemList.IC2_Compressed_Coal_Chunk.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_ModHandler.getIC2Item("waterMill", 2), GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(GT_ModHandler.getIC2Item("generator", 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * MINUTES + 20 * SECONDS) - .eut(8) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_ModHandler.getIC2Item("batPack", 1L, 32767), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.IC2_ReBattery.get(6)) - .noFluidInputs() - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_ModHandler.getIC2Item("carbonFiber", 2), GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(GT_ModHandler.getIC2Item("carbonMesh", 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(2) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 4), - GT_ModHandler.getIC2Item("generator", 1)) - .itemOutputs(GT_ModHandler.getIC2Item("waterMill", 2)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * MINUTES + 20 * SECONDS) - .eut(8) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 5), - new ItemStack(Blocks.chest, 1, 32767)) - .itemOutputs(new ItemStack(Blocks.hopper)) - .noFluidInputs() - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(2) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 5), - new ItemStack(Blocks.trapped_chest, 1, 32767)) - .itemOutputs(new ItemStack(Blocks.hopper)) - .noFluidInputs() - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(2) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 5), - new ItemStack(Blocks.chest, 1, 32767)) - .itemOutputs(new ItemStack(Blocks.hopper)) - .noFluidInputs() - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(2) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 5), - new ItemStack(Blocks.trapped_chest, 1, 32767)) - .itemOutputs(new ItemStack(Blocks.hopper)) - .noFluidInputs() - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(2) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Magnalium, 2), - GT_ModHandler.getIC2Item("generator", 1)) - .itemOutputs(GT_ModHandler.getIC2Item("windMill", 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * MINUTES + 20 * SECONDS) - .eut(8) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.EnderPearl, 1), - new ItemStack(Items.blaze_powder, 1, 0)) - .itemOutputs(new ItemStack(Items.ender_eye, 1, 0)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(2) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.EnderPearl, 6), - new ItemStack(Items.blaze_rod, 1, 0)) - .itemOutputs(new ItemStack(Items.ender_eye, 6, 0)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * MINUTES + 5 * SECONDS) - .eut(2) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.gear, Materials.CobaltBrass, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Diamond, 1)) - .itemOutputs(ItemList.Component_Sawblade_Diamond.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(1 * MINUTES + 20 * SECONDS) - .eut(2) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 4), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glowstone, 4)) - .itemOutputs(new ItemStack(Blocks.redstone_lamp, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(1) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 1)) - .itemOutputs(new ItemStack(Blocks.redstone_torch, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(1) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 4)) - .itemOutputs(new ItemStack(Items.compass, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 4)) - .itemOutputs(new ItemStack(Items.compass, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Gold, 4)) - .itemOutputs(new ItemStack(Items.clock, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 1)) - .itemOutputs(new ItemStack(Blocks.torch, 2)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(1) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.TricalciumPhosphate, 1)) - .itemOutputs(new ItemStack(Blocks.torch, 6)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(1) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 1), - ItemList.IC2_Resin.get(1)) - .itemOutputs(new ItemStack(Blocks.torch, 6)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(1) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Coal, 8), - new ItemStack(Items.flint, 1)) - .itemOutputs(ItemList.IC2_Compressed_Coal_Ball.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(4) - .addTo(sAssemblerRecipes); - - if (!GT_Mod.gregtechproxy.mDisableIC2Cables) { - GT_Values.RA.stdBuilder() - .itemInputs( - GT_ModHandler.getIC2Item("tinCableItem", 1), - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Rubber, 1)) - .itemOutputs(GT_ModHandler.getIC2Item("insulatedTinCableItem", 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(2) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_ModHandler.getIC2Item("copperCableItem", 1), - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Rubber, 1)) - .itemOutputs(GT_ModHandler.getIC2Item("insulatedCopperCableItem", 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(2) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_ModHandler.getIC2Item("goldCableItem", 1), - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Rubber, 2)) - .itemOutputs(GT_ModHandler.getIC2Item("insulatedGoldCableItem", 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(2) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_ModHandler.getIC2Item("ironCableItem", 1), - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Rubber, 3)) - .itemOutputs(GT_ModHandler.getIC2Item("insulatedIronCableItem", 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(2) - .addTo(sAssemblerRecipes); - } - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.toolHeadSword, Materials.Wood, 1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 1)) - .itemOutputs(new ItemStack(Items.wooden_sword, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.toolHeadSword, Materials.Stone, 1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 1)) - .itemOutputs(new ItemStack(Items.stone_sword, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.toolHeadSword, Materials.Iron, 1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 1)) - .itemOutputs(new ItemStack(Items.iron_sword, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.toolHeadSword, Materials.Gold, 1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 1)) - .itemOutputs(new ItemStack(Items.golden_sword, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.toolHeadSword, Materials.Diamond, 1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 1)) - .itemOutputs(new ItemStack(Items.diamond_sword, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.toolHeadSword, Materials.Bronze, 1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 1)) - .itemOutputs(ItemList.Tool_Sword_Bronze.getUndamaged(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.toolHeadSword, Materials.Steel, 1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 1)) - .itemOutputs(ItemList.Tool_Sword_Steel.getUndamaged(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.toolHeadPickaxe, Materials.Wood, 1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) - .itemOutputs(new ItemStack(Items.wooden_pickaxe, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.toolHeadPickaxe, Materials.Stone, 1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) - .itemOutputs(new ItemStack(Items.stone_pickaxe, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.toolHeadPickaxe, Materials.Iron, 1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) - .itemOutputs(new ItemStack(Items.iron_pickaxe, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.toolHeadPickaxe, Materials.Gold, 1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) - .itemOutputs(new ItemStack(Items.golden_pickaxe, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.toolHeadPickaxe, Materials.Diamond, 1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) - .itemOutputs(new ItemStack(Items.diamond_pickaxe, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.toolHeadPickaxe, Materials.Bronze, 1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) - .itemOutputs(ItemList.Tool_Pickaxe_Bronze.getUndamaged(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.toolHeadPickaxe, Materials.Steel, 1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) - .itemOutputs(ItemList.Tool_Pickaxe_Steel.getUndamaged(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.toolHeadShovel, Materials.Wood, 1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) - .itemOutputs(new ItemStack(Items.wooden_shovel, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.toolHeadShovel, Materials.Stone, 1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) - .itemOutputs(new ItemStack(Items.stone_shovel, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.toolHeadShovel, Materials.Iron, 1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) - .itemOutputs(new ItemStack(Items.iron_shovel, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.toolHeadShovel, Materials.Gold, 1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) - .itemOutputs(new ItemStack(Items.golden_shovel, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.toolHeadShovel, Materials.Diamond, 1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) - .itemOutputs(new ItemStack(Items.diamond_shovel, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.toolHeadShovel, Materials.Bronze, 1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) - .itemOutputs(ItemList.Tool_Shovel_Bronze.getUndamaged(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.toolHeadShovel, Materials.Steel, 1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) - .itemOutputs(ItemList.Tool_Shovel_Steel.getUndamaged(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.toolHeadAxe, Materials.Wood, 1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) - .itemOutputs(new ItemStack(Items.wooden_axe, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.toolHeadAxe, Materials.Stone, 1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) - .itemOutputs(new ItemStack(Items.stone_axe, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.toolHeadAxe, Materials.Iron, 1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) - .itemOutputs(new ItemStack(Items.iron_axe, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.toolHeadAxe, Materials.Gold, 1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) - .itemOutputs(new ItemStack(Items.golden_axe, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.toolHeadAxe, Materials.Diamond, 1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) - .itemOutputs(new ItemStack(Items.diamond_axe, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.toolHeadAxe, Materials.Bronze, 1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) - .itemOutputs(ItemList.Tool_Axe_Bronze.getUndamaged(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.toolHeadAxe, Materials.Steel, 1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) - .itemOutputs(ItemList.Tool_Axe_Steel.getUndamaged(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.toolHeadHoe, Materials.Wood, 1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) - .itemOutputs(new ItemStack(Items.wooden_hoe, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.toolHeadHoe, Materials.Stone, 1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) - .itemOutputs(new ItemStack(Items.stone_hoe, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.toolHeadHoe, Materials.Iron, 1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) - .itemOutputs(new ItemStack(Items.iron_hoe, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.toolHeadHoe, Materials.Gold, 1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) - .itemOutputs(new ItemStack(Items.golden_hoe, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.toolHeadHoe, Materials.Diamond, 1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) - .itemOutputs(new ItemStack(Items.diamond_hoe, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.toolHeadHoe, Materials.Bronze, 1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) - .itemOutputs(ItemList.Tool_Hoe_Bronze.getUndamaged(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.toolHeadHoe, Materials.Steel, 1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Wood, 2)) - .itemOutputs(ItemList.Tool_Hoe_Steel.getUndamaged(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - // fuel rod assembler recipes - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.ThoriumCell_1.get(2), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Steel, 4), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.ThoriumCell_2.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.ThoriumCell_1.get(4), - GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Steel, 6), - GT_Utility.getIntegratedCircuit(4)) - .itemOutputs(ItemList.ThoriumCell_4.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.ThoriumCell_2.get(2), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Steel, 4), - GT_Utility.getIntegratedCircuit(5)) - .itemOutputs(ItemList.ThoriumCell_4.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Uraniumcell_1.get(2), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Steel, 4), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Uraniumcell_2.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Uraniumcell_1.get(4), - GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Steel, 6), - GT_Utility.getIntegratedCircuit(4)) - .itemOutputs(ItemList.Uraniumcell_4.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Uraniumcell_2.get(2), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Steel, 4), - GT_Utility.getIntegratedCircuit(5)) - .itemOutputs(ItemList.Uraniumcell_4.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Moxcell_1.get(2), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Steel, 4), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Moxcell_2.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Moxcell_1.get(4), - GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Steel, 6), - GT_Utility.getIntegratedCircuit(4)) - .itemOutputs(ItemList.Moxcell_4.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Moxcell_2.get(2), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Steel, 4), - GT_Utility.getIntegratedCircuit(5)) - .itemOutputs(ItemList.Moxcell_4.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.NaquadahCell_1.get(2), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.TungstenSteel, 4), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.NaquadahCell_2.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(400) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.NaquadahCell_1.get(4), - GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.TungstenSteel, 6), - GT_Utility.getIntegratedCircuit(4)) - .itemOutputs(ItemList.NaquadahCell_4.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(7 * SECONDS + 10 * TICKS) - .eut(400) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.NaquadahCell_2.get(2), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.TungstenSteel, 4), - GT_Utility.getIntegratedCircuit(5)) - .itemOutputs(ItemList.NaquadahCell_4.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(400) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.MNqCell_1.get(2), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.TungstenSteel, 4), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.MNqCell_2.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(400) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.MNqCell_1.get(4), - GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.TungstenSteel, 6), - GT_Utility.getIntegratedCircuit(4)) - .itemOutputs(ItemList.MNqCell_4.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(7 * SECONDS + 10 * TICKS) - .eut(400) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.MNqCell_2.get(2), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.TungstenSteel, 4), - GT_Utility.getIntegratedCircuit(5)) - .itemOutputs(ItemList.MNqCell_4.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(400) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plateDense, Materials.Neutronium, 8), - GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Iridium, 4)) - .itemOutputs(ItemList.neutroniumHeatCapacitor.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_ZPM) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - Materials.NaquadahAlloy.getPlates(8), - GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.NaquadahAlloy, 1)) - .itemOutputs(ItemList.RadiantNaquadahAlloyCasing.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * TICKS) - .eut(400000) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.KevlarFiber.get(8), GT_Utility.getIntegratedCircuit(8)) - .itemOutputs(ItemList.WovenKevlar.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sAssemblerRecipes); - - ItemStack[] plates = new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 1L), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 1L), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 1L) }; - - for (Materials tMat : solderingMats) { - int tMultiplier = tMat.contains(SubTag.SOLDERING_MATERIAL_GOOD) ? 1 - : tMat.contains(SubTag.SOLDERING_MATERIAL_BAD) ? 4 : 2; - - for (ItemStack tPlate : plates) { - GT_Values.RA.stdBuilder() - .itemInputs( - new ItemStack(Blocks.lever, 1, 32767), - tPlate, - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Cover_Controller.get(1)) - .fluidInputs(tMat.getMolten(144L * tMultiplier / 2)) - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - new ItemStack(Blocks.redstone_torch, 1, 32767), - tPlate, - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Cover_ActivityDetector.get(1)) - .fluidInputs(tMat.getMolten(144L * tMultiplier / 2)) - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - new ItemStack(Blocks.heavy_weighted_pressure_plate, 1, 32767), - tPlate, - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Cover_FluidDetector.get(1)) - .fluidInputs(tMat.getMolten(144L * tMultiplier / 2)) - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - new ItemStack(Blocks.light_weighted_pressure_plate, 1, 32767), - tPlate, - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Cover_ItemDetector.get(1)) - .fluidInputs(tMat.getMolten(144L * tMultiplier / 2)) - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_ModHandler.getIC2Item("ecMeter", 1), - tPlate, - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Cover_EnergyDetector.get(1)) - .fluidInputs(tMat.getMolten(144L * tMultiplier / 2)) - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - } - - } - } - - /** - * Adds recipes for input buses from ULV to UHV - */ - public void loadInputBusesRecipes() { - // ULV input bus - { - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_ULV.get(1), - getModItem(NewHorizonsCoreMod.ID, "BabyChest", 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_Bus_ULV.get(1)) - .fluidInputs(Materials.Glue.getFluid(1 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_ULV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_ULV.get(1), - getModItem(NewHorizonsCoreMod.ID, "BabyChest", 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_Bus_ULV.get(1)) - .fluidInputs(Materials.Plastic.getMolten(1 * HALF_INGOT)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_ULV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_ULV.get(1), - getModItem(NewHorizonsCoreMod.ID, "BabyChest", 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_Bus_ULV.get(1)) - .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(1 * EIGHTH_INGOT)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_ULV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_ULV.get(1), - getModItem(NewHorizonsCoreMod.ID, "BabyChest", 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_Bus_ULV.get(1)) - .fluidInputs(Materials.Polybenzimidazole.getMolten(4)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_ULV) - .addTo(sAssemblerRecipes); - } - - // LV input bus - { - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_LV.get(1), - new ItemStack(Blocks.chest), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_Bus_LV.get(1)) - .fluidInputs(Materials.Glue.getFluid(5 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_LV.get(1), - new ItemStack(Blocks.chest), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_Bus_LV.get(1)) - .fluidInputs(Materials.Plastic.getMolten(1 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_LV.get(1), - new ItemStack(Blocks.chest), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_Bus_LV.get(1)) - .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(1 * HALF_INGOT)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_LV.get(1), - new ItemStack(Blocks.chest), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_Bus_LV.get(1)) - .fluidInputs(Materials.Polybenzimidazole.getMolten(9)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - } - - // MV input bus - { - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_MV.get(1), - getModItem(IronChests.ID, "BlockIronChest", 1, 3), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_Bus_MV.get(1)) - .fluidInputs(Materials.Plastic.getMolten(2 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_MV.get(1), - getModItem(IronChests.ID, "BlockIronChest", 1, 3), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_Bus_MV.get(1)) - .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(1 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_MV.get(1), - getModItem(IronChests.ID, "BlockIronChest", 1, 3), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_Bus_MV.get(1)) - .fluidInputs(Materials.Polybenzimidazole.getMolten(1 * EIGHTH_INGOT)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sAssemblerRecipes); - } - - // HV input bus - { - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_HV.get(1), - getModItem(IronChests.ID, "BlockIronChest", 1, 0), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_Bus_HV.get(1)) - .fluidInputs(Materials.Plastic.getMolten(3 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_HV.get(1), - getModItem(IronChests.ID, "BlockIronChest", 1, 0), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_Bus_HV.get(1)) - .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(2 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_HV.get(1), - getModItem(IronChests.ID, "BlockIronChest", 1, 0), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_Bus_HV.get(1)) - .fluidInputs(Materials.Polybenzimidazole.getMolten(1 * QUARTER_INGOT)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sAssemblerRecipes); - } - - // EV input bus - { - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_EV.get(1), - getModItem(IronChests.ID, "BlockIronChest", 1, 4), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_Bus_EV.get(1)) - .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(4 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_EV.get(1), - getModItem(IronChests.ID, "BlockIronChest", 1, 4), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_Bus_EV.get(1)) - .fluidInputs(Materials.Polybenzimidazole.getMolten(1 * HALF_INGOT)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sAssemblerRecipes); - } - - // IV input bus - { - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_IV.get(1), - getModItem(IronChests.ID, "BlockIronChest", 1, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_Bus_IV.get(1)) - .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(8 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_IV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_IV.get(1), - getModItem(IronChests.ID, "BlockIronChest", 1, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_Bus_IV.get(1)) - .fluidInputs(Materials.Polybenzimidazole.getMolten(1 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_IV) - .addTo(sAssemblerRecipes); - } - - // LuV input bus - { - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_LuV.get(1), - getModItem(IronChests.ID, "BlockIronChest", 1, 2), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_Bus_LuV.get(1)) - .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(16 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_LuV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_LuV.get(1), - getModItem(IronChests.ID, "BlockIronChest", 1, 2), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_Bus_LuV.get(1)) - .fluidInputs(Materials.Polybenzimidazole.getMolten(2 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_LuV) - .addTo(sAssemblerRecipes); - } - - // ZPM input bus - { - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_ZPM.get(1), - getModItem(IronChests.ID, "BlockIronChest", 2, 5), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_Bus_ZPM.get(1)) - .fluidInputs(Materials.Polybenzimidazole.getMolten(4 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_ZPM) - .addTo(sAssemblerRecipes); - } - - // UV input bus - { - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_UV.get(1), - getModItem(IronChests.ID, "BlockIronChest", 2, 6), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_Bus_UV.get(1)) - .fluidInputs(Materials.Polybenzimidazole.getMolten(8 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_UV) - .addTo(sAssemblerRecipes); - } - - // UHV input bus - { - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_MAX.get(1), - getModItem(AvaritiaAddons.ID, "CompressedChest", 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_Bus_MAX.get(1)) - .fluidInputs(Materials.Polybenzimidazole.getMolten(16 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_UHV) - .addTo(sAssemblerRecipes); - } - } - - /** - * Adds recipes for output buses from ULV to UHV - */ - public void loadOutputBusesRecipes() { - - /* - * those early exits prevents further hatches recipes from being registered, but it's probably fine, as that - * means we aren't in full pack - */ - - if (!NewHorizonsCoreMod.isModLoaded()) { - return; - } - - // ULV output bus - { - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_ULV.get(1), - getModItem(NewHorizonsCoreMod.ID, "BabyChest", 1), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_Bus_ULV.get(1)) - .fluidInputs(Materials.Glue.getFluid(1 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_ULV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_ULV.get(1), - getModItem(NewHorizonsCoreMod.ID, "BabyChest", 1), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_Bus_ULV.get(1)) - .fluidInputs(Materials.Plastic.getMolten(1 * HALF_INGOT)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_ULV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_ULV.get(1), - getModItem(NewHorizonsCoreMod.ID, "BabyChest", 1), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_Bus_ULV.get(1)) - .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(1 * EIGHTH_INGOT)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_ULV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_ULV.get(1), - getModItem(NewHorizonsCoreMod.ID, "BabyChest", 1), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_Bus_ULV.get(1)) - .fluidInputs(Materials.Polybenzimidazole.getMolten(4)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_ULV) - .addTo(sAssemblerRecipes); - } - - // LV output bus - { - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_LV.get(1), - new ItemStack(Blocks.chest), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_Bus_LV.get(1)) - .fluidInputs(Materials.Glue.getFluid(5 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_LV.get(1), - new ItemStack(Blocks.chest), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_Bus_LV.get(1)) - .fluidInputs(Materials.Plastic.getMolten(1 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_LV.get(1), - new ItemStack(Blocks.chest), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_Bus_LV.get(1)) - .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(1 * HALF_INGOT)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_LV.get(1), - new ItemStack(Blocks.chest), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_Bus_LV.get(1)) - .fluidInputs(Materials.Polybenzimidazole.getMolten(9)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - } - - if (!IronChests.isModLoaded()) { - return; - } - - // MV output bus - { - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_MV.get(1), - getModItem(IronChests.ID, "BlockIronChest", 1, 3), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_Bus_MV.get(1)) - .fluidInputs(Materials.Plastic.getMolten(2 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_MV.get(1), - getModItem(IronChests.ID, "BlockIronChest", 1, 3), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_Bus_MV.get(1)) - .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(1 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_MV.get(1), - getModItem(IronChests.ID, "BlockIronChest", 1, 3), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_Bus_MV.get(1)) - .fluidInputs(Materials.Polybenzimidazole.getMolten(1 * EIGHTH_INGOT)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sAssemblerRecipes); - } - - // HV output bus - { - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_HV.get(1), - getModItem(IronChests.ID, "BlockIronChest", 1, 0), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_Bus_HV.get(1)) - .fluidInputs(Materials.Plastic.getMolten(3 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_HV.get(1), - getModItem(IronChests.ID, "BlockIronChest", 1, 0), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_Bus_HV.get(1)) - .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(2 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_HV.get(1), - getModItem(IronChests.ID, "BlockIronChest", 1, 0), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_Bus_HV.get(1)) - .fluidInputs(Materials.Polybenzimidazole.getMolten(1 * QUARTER_INGOT)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sAssemblerRecipes); - } - - // EV output bus - { - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_EV.get(1), - getModItem(IronChests.ID, "BlockIronChest", 1, 4), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_Bus_EV.get(1)) - .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(4 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_EV.get(1), - getModItem(IronChests.ID, "BlockIronChest", 1, 4), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_Bus_EV.get(1)) - .fluidInputs(Materials.Polybenzimidazole.getMolten(1 * HALF_INGOT)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sAssemblerRecipes); - } - - // IV output bus - { - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_IV.get(1), - getModItem(IronChests.ID, "BlockIronChest", 1, 1), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_Bus_IV.get(1)) - .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(8 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_IV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_IV.get(1), - getModItem(IronChests.ID, "BlockIronChest", 1, 1), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_Bus_IV.get(1)) - .fluidInputs(Materials.Polybenzimidazole.getMolten(1 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_IV) - .addTo(sAssemblerRecipes); - } - - // LuV output bus - { - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_LuV.get(1), - getModItem(IronChests.ID, "BlockIronChest", 1, 2), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_Bus_LuV.get(1)) - .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(16 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_LuV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_LuV.get(1), - getModItem(IronChests.ID, "BlockIronChest", 1, 2), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_Bus_LuV.get(1)) - .fluidInputs(Materials.Polybenzimidazole.getMolten(2 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_LuV) - .addTo(sAssemblerRecipes); - } - - // ZPM output bus - { - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_ZPM.get(1), - getModItem(IronChests.ID, "BlockIronChest", 2, 5), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_Bus_ZPM.get(1)) - .fluidInputs(Materials.Polybenzimidazole.getMolten(4 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_ZPM) - .addTo(sAssemblerRecipes); - } - - // UV output bus - { - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_UV.get(1), - getModItem(IronChests.ID, "BlockIronChest", 2, 6), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_Bus_UV.get(1)) - .fluidInputs(Materials.Polybenzimidazole.getMolten(8 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_UV) - .addTo(sAssemblerRecipes); - } - - if (!AvaritiaAddons.isModLoaded()) { - return; - } - - // UHV output bus - { - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_MAX.get(1), - getModItem(AvaritiaAddons.ID, "CompressedChest", 1), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_Bus_MAX.get(1)) - .fluidInputs(Materials.Polybenzimidazole.getMolten(16 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_UHV) - .addTo(sAssemblerRecipes); - } - } - - /** - * Adds recipes for input hatches from ULV to UHV - */ - public void loadInputHatchesRecipes() { - // ULV input hatch - { - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_ULV.get(1), - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Empty, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_ULV.get(1)) - .fluidInputs(Materials.Glue.getFluid(1 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_ULV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_ULV.get(1), - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Empty, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_ULV.get(1)) - .fluidInputs(Materials.Plastic.getMolten(1 * HALF_INGOT)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_ULV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_ULV.get(1), - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Empty, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_ULV.get(1)) - .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(1 * EIGHTH_INGOT)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_ULV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_ULV.get(1), - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Empty, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_ULV.get(1)) - .fluidInputs(Materials.Polybenzimidazole.getMolten(4)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_ULV) - .addTo(sAssemblerRecipes); - } - - /* - * those early exits prevents further hatches recipes from being registered, but it's probably fine, as that - * means we aren't in full pack - */ - - if (!BuildCraftFactory.isModLoaded()) { - return; - } - - // LV input hatch - { - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_LV.get(1), - getModItem(BuildCraftFactory.ID, "tankBlock", 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_LV.get(1)) - .fluidInputs(Materials.Glue.getFluid(5 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_LV.get(1), - getModItem(BuildCraftFactory.ID, "tankBlock", 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_LV.get(1)) - .fluidInputs(Materials.Plastic.getMolten(1 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_LV.get(1), - getModItem(BuildCraftFactory.ID, "tankBlock", 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_LV.get(1)) - .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(1 * HALF_INGOT)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_LV.get(1), - getModItem(BuildCraftFactory.ID, "tankBlock", 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_LV.get(1)) - .fluidInputs(Materials.Polybenzimidazole.getMolten(9)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - } - - if (!IronTanks.isModLoaded()) { - return; - } - - // MV input hatch - { - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_MV.get(1), - getModItem(IronTanks.ID, "copperTank", 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_MV.get(1)) - .fluidInputs(Materials.Plastic.getMolten(2 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_MV.get(1), - getModItem(IronTanks.ID, "copperTank", 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_MV.get(1)) - .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(1 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_MV.get(1), - getModItem(IronTanks.ID, "copperTank", 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_MV.get(1)) - .fluidInputs(Materials.Polybenzimidazole.getMolten(1 * EIGHTH_INGOT)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sAssemblerRecipes); - } - - // HV input hatch - { - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_HV.get(1), - getModItem(IronTanks.ID, "ironTank", 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_HV.get(1)) - .fluidInputs(Materials.Plastic.getMolten(3 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_HV.get(1), - getModItem(IronTanks.ID, "ironTank", 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_HV.get(1)) - .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(2 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_HV.get(1), - getModItem(IronTanks.ID, "ironTank", 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_HV.get(1)) - .fluidInputs(Materials.Polybenzimidazole.getMolten(1 * QUARTER_INGOT)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sAssemblerRecipes); - } - - // EV input hatch - { - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_EV.get(1), - getModItem(IronTanks.ID, "silverTank", 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_EV.get(1)) - .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(4 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_EV.get(1), - getModItem(IronTanks.ID, "silverTank", 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_EV.get(1)) - .fluidInputs(Materials.Polybenzimidazole.getMolten(1 * HALF_INGOT)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sAssemblerRecipes); - } - - // IV input hatch - { - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_IV.get(1), - getModItem(IronTanks.ID, "goldTank", 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_IV.get(1)) - .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(8 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_IV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_IV.get(1), - getModItem(IronTanks.ID, "goldTank", 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_IV.get(1)) - .fluidInputs(Materials.Polybenzimidazole.getMolten(1 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_IV) - .addTo(sAssemblerRecipes); - } - - // LuV input hatch - { - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_LuV.get(1), - getModItem(IronTanks.ID, "diamondTank", 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_LuV.get(1)) - .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(16 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_LuV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_LuV.get(1), - getModItem(IronTanks.ID, "diamondTank", 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_LuV.get(1)) - .fluidInputs(Materials.Polybenzimidazole.getMolten(2 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_LuV) - .addTo(sAssemblerRecipes); - } - - // ZPM input hatch - { - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_ZPM.get(1), - getModItem(IronTanks.ID, "obsidianTank", 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_ZPM.get(1)) - .fluidInputs(Materials.Polybenzimidazole.getMolten(4 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_ZPM) - .addTo(sAssemblerRecipes); - } - - // UV input hatch - { - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_UV.get(1), - ItemList.Super_Tank_LV.get(1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_UV.get(1)) - .fluidInputs(Materials.Polybenzimidazole.getMolten(8 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_UV) - .addTo(sAssemblerRecipes); - } - - // UHV input hatch - { - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_MAX.get(1), - ItemList.Super_Tank_MV.get(1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Hatch_Input_MAX.get(1)) - .fluidInputs(Materials.Polybenzimidazole.getMolten(16 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_UHV) - .addTo(sAssemblerRecipes); - } - } - - /** - * Adds recipes for output hatches from ULV to UHV - */ - public void loadOutputHatchesRecipes() { - // ULV output hatch - { - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_ULV.get(1), - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Empty, 1), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_ULV.get(1)) - .fluidInputs(Materials.Glue.getFluid(1 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_ULV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_ULV.get(1), - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Empty, 1), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_ULV.get(1)) - .fluidInputs(Materials.Plastic.getMolten(1 * HALF_INGOT)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_ULV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_ULV.get(1), - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Empty, 1), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_ULV.get(1)) - .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(1 * EIGHTH_INGOT)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_ULV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_ULV.get(1), - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Empty, 1), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_ULV.get(1)) - .fluidInputs(Materials.Polybenzimidazole.getMolten(4)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_ULV) - .addTo(sAssemblerRecipes); - } - - /* - * those early exits prevents further hatches recipes from being registered, but it's probably fine, as that - * means we aren't in full pack - */ - - if (!BuildCraftFactory.isModLoaded()) { - return; - } - - // LV output hatch - { - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_LV.get(1), - getModItem(BuildCraftFactory.ID, "tankBlock", 1), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_LV.get(1)) - .fluidInputs(Materials.Glue.getFluid(5 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_LV.get(1), - getModItem(BuildCraftFactory.ID, "tankBlock", 1), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_LV.get(1)) - .fluidInputs(Materials.Plastic.getMolten(1 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_LV.get(1), - getModItem(BuildCraftFactory.ID, "tankBlock", 1), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_LV.get(1)) - .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(1 * HALF_INGOT)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_LV.get(1), - getModItem(BuildCraftFactory.ID, "tankBlock", 1), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_LV.get(1)) - .fluidInputs(Materials.Polybenzimidazole.getMolten(9)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - } - - if (!IronTanks.isModLoaded()) { - return; - } - - // MV output hatch - { - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_MV.get(1), - getModItem(IronTanks.ID, "copperTank", 1), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_MV.get(1)) - .fluidInputs(Materials.Plastic.getMolten(2 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_MV.get(1), - getModItem(IronTanks.ID, "copperTank", 1), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_MV.get(1)) - .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(1 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_MV.get(1), - getModItem(IronTanks.ID, "copperTank", 1), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_MV.get(1)) - .fluidInputs(Materials.Polybenzimidazole.getMolten(1 * EIGHTH_INGOT)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sAssemblerRecipes); - } - - // HV output hatch - { - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_HV.get(1), - getModItem(IronTanks.ID, "ironTank", 1), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_HV.get(1)) - .fluidInputs(Materials.Plastic.getMolten(3 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_HV.get(1), - getModItem(IronTanks.ID, "ironTank", 1), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_HV.get(1)) - .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(2 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_HV.get(1), - getModItem(IronTanks.ID, "ironTank", 1), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_HV.get(1)) - .fluidInputs(Materials.Polybenzimidazole.getMolten(1 * QUARTER_INGOT)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sAssemblerRecipes); - } - - // EV output hatch - { - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_EV.get(1), - getModItem(IronTanks.ID, "silverTank", 1), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_EV.get(1)) - .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(4 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_EV.get(1), - getModItem(IronTanks.ID, "silverTank", 1), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_EV.get(1)) - .fluidInputs(Materials.Polybenzimidazole.getMolten(1 * HALF_INGOT)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sAssemblerRecipes); - } - - // IV output hatch - { - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_IV.get(1), - getModItem(IronTanks.ID, "goldTank", 1), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_IV.get(1)) - .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(8 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_IV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_IV.get(1), - getModItem(IronTanks.ID, "goldTank", 1), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_IV.get(1)) - .fluidInputs(Materials.Polybenzimidazole.getMolten(1 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_IV) - .addTo(sAssemblerRecipes); - } - - // LuV output hatch - { - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_LuV.get(1), - getModItem(IronTanks.ID, "diamondTank", 1), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_LuV.get(1)) - .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(16 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_LuV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_LuV.get(1), - getModItem(IronTanks.ID, "diamondTank", 1), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_LuV.get(1)) - .fluidInputs(Materials.Polybenzimidazole.getMolten(2 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_LuV) - .addTo(sAssemblerRecipes); - } - - // ZPM output hatch - { - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_ZPM.get(1), - getModItem(IronTanks.ID, "obsidianTank", 1), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_ZPM.get(1)) - .fluidInputs(Materials.Polybenzimidazole.getMolten(4 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_ZPM) - .addTo(sAssemblerRecipes); - } - - // UV output hatch - { - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_UV.get(1), - ItemList.Super_Tank_LV.get(1), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_UV.get(1)) - .fluidInputs(Materials.Polybenzimidazole.getMolten(8 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_UV) - .addTo(sAssemblerRecipes); - } - - // UHV output hatch - { - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Hull_MAX.get(1), - ItemList.Super_Tank_MV.get(1), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Hatch_Output_MAX.get(1)) - .fluidInputs(Materials.Polybenzimidazole.getMolten(16 * INGOTS)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_UHV) - .addTo(sAssemblerRecipes); - } - } - - /** - * Load all Railcraft recipes for GT Machines - */ - private void withRailcraft() { - if (!Railcraft.isModLoaded()) return; - - GT_Values.RA.stdBuilder() - .itemInputs( - new ItemStack(Blocks.stone_slab, 1, 0), - ItemList.RC_Rebar.get(1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.RC_Tie_Stone.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(6 * SECONDS + 8 * TICKS) - .eut(8) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - new ItemStack(Blocks.stone_slab, 1, 7), - ItemList.RC_Rebar.get(1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.RC_Tie_Stone.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(6 * SECONDS + 8 * TICKS) - .eut(8) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Steel, 3), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Electrum, 3), - GT_Utility.getIntegratedCircuit(8)) - .itemOutputs(ItemList.RC_Rail_HS.get(16)) - .fluidInputs(Materials.Blaze.getMolten(216)) - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Steel, 3), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Electrum, 3), - GT_Utility.getIntegratedCircuit(9)) - .itemOutputs(ItemList.RC_Rail_HS.get(8)) - .fluidInputs(Materials.ConductiveIron.getMolten(432)) - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Steel, 3), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Electrum, 3), - GT_Utility.getIntegratedCircuit(9)) - .itemOutputs(ItemList.RC_Rail_HS.get(32)) - .fluidInputs(Materials.VibrantAlloy.getMolten(216)) - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Steel, 3), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Electrum, 3), - GT_Utility.getIntegratedCircuit(9)) - .itemOutputs(ItemList.RC_Rail_HS.get(64)) - .fluidInputs(Materials.CrystallineAlloy.getMolten(216)) - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(48) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.RC_Rail_Standard.get(3), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Electrum, 3), - GT_Utility.getIntegratedCircuit(8)) - .itemOutputs(ItemList.RC_Rail_Adv.get(8)) - .fluidInputs(Materials.Redstone.getMolten(216)) - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.RC_Rail_Standard.get(3), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Electrum, 3), - GT_Utility.getIntegratedCircuit(8)) - .itemOutputs(ItemList.RC_Rail_Adv.get(16)) - .fluidInputs(Materials.RedAlloy.getMolten(216)) - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.RC_Rail_Standard.get(3), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Electrum, 3), - GT_Utility.getIntegratedCircuit(8)) - .itemOutputs(ItemList.RC_Rail_Adv.get(32)) - .fluidInputs(Materials.ConductiveIron.getMolten(216)) - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.RC_Rail_Standard.get(3), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Electrum, 3), - GT_Utility.getIntegratedCircuit(8)) - .itemOutputs(ItemList.RC_Rail_Adv.get(64)) - .fluidInputs(Materials.VibrantAlloy.getMolten(216)) - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(48) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.RC_Rail_Standard.get(1), - GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Copper, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.RC_Rail_Electric.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.RC_Rail_Standard.get(1), - GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.AnnealedCopper, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.RC_Rail_Electric.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.RC_Rail_Standard.get(1), - GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Gold, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.RC_Rail_Electric.get(2)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.RC_Rail_Standard.get(1), - GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Electrum, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.RC_Rail_Electric.get(4)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.RC_Rail_Standard.get(1), - GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Titanium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.RC_Rail_Electric.get(8)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.RC_Rail_Standard.get(1), - GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.TungstenSteel, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.RC_Rail_Electric.get(16)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(48) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.RC_Rail_Standard.get(1), - GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.HSSG, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.RC_Rail_Electric.get(32)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(64) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.RC_Rail_Standard.get(1), - GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Naquadah, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.RC_Rail_Electric.get(64)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(96) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.RC_Tie_Wood.get(1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Iron, 1), - GT_Utility.getIntegratedCircuit(10)) - .itemOutputs(ItemList.RC_Rail_Wooden.get(8)) - .noFluidInputs() - .noFluidOutputs() - .duration(6 * SECONDS + 13 * TICKS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.RC_Tie_Wood.get(1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.WroughtIron, 1), - GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(ItemList.RC_Rail_Wooden.get(8)) - .noFluidInputs() - .noFluidOutputs() - .duration(6 * SECONDS + 13 * TICKS) - .eut(4) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.RC_Tie_Wood.get(1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Steel, 1), - GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(ItemList.RC_Rail_Wooden.get(16)) - .noFluidInputs() - .noFluidOutputs() - .duration(6 * SECONDS + 13 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.RC_Tie_Wood.get(1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.StainlessSteel, 1), - GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(ItemList.RC_Rail_Wooden.get(32)) - .noFluidInputs() - .noFluidOutputs() - .duration(6 * SECONDS + 13 * TICKS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.RC_Tie_Wood.get(1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Titanium, 1), - GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(ItemList.RC_Rail_Wooden.get(64)) - .noFluidInputs() - .noFluidOutputs() - .duration(6 * SECONDS + 13 * TICKS) - .eut(48) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.RC_Tie_Wood.get(32), GT_Utility.getIntegratedCircuit(20)) - .itemOutputs(ItemList.RC_Bed_Wood.get(24)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.RC_Tie_Wood.get(64), GT_Utility.getIntegratedCircuit(24)) - .itemOutputs(ItemList.RC_Bed_Wood.get(48)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(48) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.RC_Tie_Stone.get(32), GT_Utility.getIntegratedCircuit(20)) - .itemOutputs(ItemList.RC_Bed_Stone.get(24)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); + // UHV input bus + { + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_MAX.get(1), + getModItem(AvaritiaAddons.ID, "CompressedChest", 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_Bus_MAX.get(1)) + .fluidInputs(Materials.Polybenzimidazole.getMolten(16 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_UHV) + .addTo(sAssemblerRecipes); + } + } - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.RC_Tie_Stone.get(64), GT_Utility.getIntegratedCircuit(24)) - .itemOutputs(ItemList.RC_Bed_Stone.get(48)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(48) - .addTo(sAssemblerRecipes); + /** + * Adds recipes for output buses from ULV to UHV + */ + public void loadOutputBusesRecipes() { - ItemStack tRailWood = getModItem(Railcraft.ID, "track", 64, 736); - if (tRailWood != null) { - NBTTagCompound tTagWood = new NBTTagCompound(); - tTagWood.setString("track", "railcraft:track.slow"); - tRailWood.stackTagCompound = tTagWood; + /* + * those early exits prevents further hatches recipes from being registered, but it's probably fine, as that + * means we aren't in full pack + */ - ItemStack tRailWoodB = getModItem(Railcraft.ID, "track.slow", 16); - NBTTagCompound tTagWoodB = new NBTTagCompound(); - tTagWoodB.setString("track", "railcraft:track.slow.boost"); - tRailWoodB.stackTagCompound = tTagWoodB; + if (!NewHorizonsCoreMod.isModLoaded()) { + return; + } + // ULV output bus + { GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.RC_Bed_Wood.get(1), - ItemList.RC_Rail_Wooden.get(6), - GT_Utility.getIntegratedCircuit(21)) - .itemOutputs(tRailWood) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailWood), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.RedAlloy, 1), - GT_Utility.getIntegratedCircuit(22)) - .itemOutputs(tRailWoodB) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); + .itemInputs( + ItemList.Hull_ULV.get(1), + getModItem(NewHorizonsCoreMod.ID, "BabyChest", 1), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_Bus_ULV.get(1)) + .fluidInputs(Materials.Glue.getFluid(1 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_ULV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_ULV.get(1), + getModItem(NewHorizonsCoreMod.ID, "BabyChest", 1), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_Bus_ULV.get(1)) + .fluidInputs(Materials.Plastic.getMolten(1 * HALF_INGOT)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_ULV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_ULV.get(1), + getModItem(NewHorizonsCoreMod.ID, "BabyChest", 1), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_Bus_ULV.get(1)) + .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(1 * EIGHTH_INGOT)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_ULV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_ULV.get(1), + getModItem(NewHorizonsCoreMod.ID, "BabyChest", 1), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_Bus_ULV.get(1)) + .fluidInputs(Materials.Polybenzimidazole.getMolten(4)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_ULV) + .addTo(sAssemblerRecipes); } - GT_Values.RA.stdBuilder() - .itemInputs( - new ItemStack(Blocks.rail, 1, 0), - ItemList.RC_Rail_Adv.get(2), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.RedAlloy, 1), - GT_Utility.getIntegratedCircuit(22)) - .itemOutputs(new ItemStack(Blocks.golden_rail, 16, 0)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.RC_Bed_Wood.get(1), - ItemList.RC_Rail_Standard.get(6), - GT_Utility.getIntegratedCircuit(21)) - .itemOutputs(new ItemStack(Blocks.rail, 64, 0)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - ItemStack tRailRe = getModItem(Railcraft.ID, "track", 64); - NBTTagCompound tTagRe = new NBTTagCompound(); - tTagRe.setString("track", "railcraft:track.reinforced"); - tRailRe.stackTagCompound = tTagRe; - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.RC_Bed_Stone.get(1), - ItemList.RC_Rail_Reinforced.get(6), - GT_Utility.getIntegratedCircuit(21)) - .itemOutputs(tRailRe) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - ItemStack tRailReB = getModItem(Railcraft.ID, "track.reinforced", 16); - NBTTagCompound tTagReB = new NBTTagCompound(); - tTagReB.setString("track", "railcraft:track.reinforced.boost"); - tRailReB.stackTagCompound = tTagReB; + // LV output bus + { + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Hull_LV.get(1), new ItemStack(Blocks.chest), GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_Bus_LV.get(1)) + .fluidInputs(Materials.Glue.getFluid(5 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Hull_LV.get(1), new ItemStack(Blocks.chest), GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_Bus_LV.get(1)) + .fluidInputs(Materials.Plastic.getMolten(1 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Hull_LV.get(1), new ItemStack(Blocks.chest), GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_Bus_LV.get(1)) + .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(1 * HALF_INGOT)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Hull_LV.get(1), new ItemStack(Blocks.chest), GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_Bus_LV.get(1)) + .fluidInputs(Materials.Polybenzimidazole.getMolten(9)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + } - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailRe), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.RedAlloy, 1), - GT_Utility.getIntegratedCircuit(22)) - .itemOutputs(tRailReB) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); + if (!IronChests.isModLoaded()) { + return; + } - ItemStack tRailEl = getModItem(Railcraft.ID, "track", 64); - NBTTagCompound tTagEl = new NBTTagCompound(); - tTagEl.setString("track", "railcraft:track.electric"); - tRailEl.stackTagCompound = tTagEl; + // MV output bus + { + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_MV.get(1), + getModItem(IronChests.ID, "BlockIronChest", 1, 3), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_Bus_MV.get(1)) + .fluidInputs(Materials.Plastic.getMolten(2 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_MV.get(1), + getModItem(IronChests.ID, "BlockIronChest", 1, 3), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_Bus_MV.get(1)) + .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(1 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_MV.get(1), + getModItem(IronChests.ID, "BlockIronChest", 1, 3), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_Bus_MV.get(1)) + .fluidInputs(Materials.Polybenzimidazole.getMolten(1 * EIGHTH_INGOT)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sAssemblerRecipes); + } - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.RC_Bed_Stone.get(1), - ItemList.RC_Rail_Electric.get(6), - GT_Utility.getIntegratedCircuit(21)) - .itemOutputs(tRailEl) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); + // HV output bus + { + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_HV.get(1), + getModItem(IronChests.ID, "BlockIronChest", 1, 0), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_Bus_HV.get(1)) + .fluidInputs(Materials.Plastic.getMolten(3 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_HV.get(1), + getModItem(IronChests.ID, "BlockIronChest", 1, 0), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_Bus_HV.get(1)) + .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(2 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_HV.get(1), + getModItem(IronChests.ID, "BlockIronChest", 1, 0), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_Bus_HV.get(1)) + .fluidInputs(Materials.Polybenzimidazole.getMolten(1 * QUARTER_INGOT)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sAssemblerRecipes); + } - ItemStack tRailHs = getModItem(Railcraft.ID, "track", 64, 816); - if (tRailHs != null) { - NBTTagCompound tTagHs = new NBTTagCompound(); - tTagHs.setString("track", "railcraft:track.speed"); - tRailHs.stackTagCompound = tTagHs; + // EV output bus + { + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_EV.get(1), + getModItem(IronChests.ID, "BlockIronChest", 1, 4), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_Bus_EV.get(1)) + .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(4 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_EV.get(1), + getModItem(IronChests.ID, "BlockIronChest", 1, 4), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_Bus_EV.get(1)) + .fluidInputs(Materials.Polybenzimidazole.getMolten(1 * HALF_INGOT)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sAssemblerRecipes); + } + // IV output bus + { GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.RC_Bed_Stone.get(1), - ItemList.RC_Rail_HS.get(6), - GT_Utility.getIntegratedCircuit(21)) - .itemOutputs(tRailHs) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); + .itemInputs( + ItemList.Hull_IV.get(1), + getModItem(IronChests.ID, "BlockIronChest", 1, 1), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_Bus_IV.get(1)) + .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(8 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_IV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_IV.get(1), + getModItem(IronChests.ID, "BlockIronChest", 1, 1), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_Bus_IV.get(1)) + .fluidInputs(Materials.Polybenzimidazole.getMolten(1 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_IV) + .addTo(sAssemblerRecipes); } - ItemStack tRailHsB = getModItem(Railcraft.ID, "track.speed", 16); - NBTTagCompound tTagHsB = new NBTTagCompound(); - tTagHsB.setString("track", "railcraft:track.speed.boost"); - tRailHsB.stackTagCompound = tTagHsB; - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailHs), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.RedAlloy, 1), - GT_Utility.getIntegratedCircuit(22)) - .itemOutputs(tRailHsB) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); + // LuV output bus + { + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_LuV.get(1), + getModItem(IronChests.ID, "BlockIronChest", 1, 2), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_Bus_LuV.get(1)) + .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(16 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_LuV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_LuV.get(1), + getModItem(IronChests.ID, "BlockIronChest", 1, 2), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_Bus_LuV.get(1)) + .fluidInputs(Materials.Polybenzimidazole.getMolten(2 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_LuV) + .addTo(sAssemblerRecipes); + } - // --- Wooden Switch Track --- - ItemStack tRailSS = getModItem(Railcraft.ID, "track.slow", 1, 19986); - if (tRailSS != null) { - NBTTagCompound tTagSS = new NBTTagCompound(); - tTagSS.setString("track", "railcraft:track.slow.switch"); - tRailSS.stackTagCompound = tTagSS; + // ZPM output bus + { + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_ZPM.get(1), + getModItem(IronChests.ID, "BlockIronChest", 2, 5), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_Bus_ZPM.get(1)) + .fluidInputs(Materials.Polybenzimidazole.getMolten(4 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_ZPM) + .addTo(sAssemblerRecipes); + } + // UV output bus + { GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailWood), - GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.AnyIron, 4), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(tRailSS) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(8) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailWood), - GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Steel, 2), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(2, tRailSS)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailWood), - GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.StainlessSteel, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(4, tRailSS)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailWood), - GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Titanium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(8, tRailSS)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(48) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailWood), - GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.TungstenSteel, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(16, tRailSS)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(64) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailWood), - GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Iridium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(32, tRailSS)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailWood), - GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Osmium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(64, tRailSS)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(256) - .addTo(sAssemblerRecipes); + .itemInputs( + ItemList.Hull_UV.get(1), + getModItem(IronChests.ID, "BlockIronChest", 2, 6), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_Bus_UV.get(1)) + .fluidInputs(Materials.Polybenzimidazole.getMolten(8 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_UV) + .addTo(sAssemblerRecipes); + } + + if (!AvaritiaAddons.isModLoaded()) { + return; } - // --- Wooden Wye Track --- - ItemStack tRailSW = getModItem(Railcraft.ID, "track.slow", 1); - if (tRailSW != null) { - NBTTagCompound tTagSW = new NBTTagCompound(); - tTagSW.setString("track", "railcraft:track.slow.wye"); - tRailSW.stackTagCompound = tTagSW; + // UHV output bus + { GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailWood), - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.AnyIron, 4), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(tRailSW) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(8) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailWood), - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Steel, 2), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(2, tRailSW)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailWood), - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.StainlessSteel, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(4, tRailSW)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailWood), - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Titanium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(8, tRailSW)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(48) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailWood), - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.TungstenSteel, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(16, tRailSW)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(64) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailWood), - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Iridium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(32, tRailSW)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailWood), - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Osmium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(64, tRailSW)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(256) - .addTo(sAssemblerRecipes); + .itemInputs( + ItemList.Hull_MAX.get(1), + getModItem(AvaritiaAddons.ID, "CompressedChest", 1), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_Bus_MAX.get(1)) + .fluidInputs(Materials.Polybenzimidazole.getMolten(16 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_UHV) + .addTo(sAssemblerRecipes); } - // --- Wooden Junction Tack --- - ItemStack tRailSJ = getModItem(Railcraft.ID, "track.slow", 1); - if (tRailSJ != null) { - NBTTagCompound tTagSJ = new NBTTagCompound(); - tTagSJ.setString("track", "railcraft:track.slow.junction"); - tRailSJ.stackTagCompound = tTagSJ; + } + /** + * Adds recipes for input hatches from ULV to UHV + */ + public void loadInputHatchesRecipes() { + // ULV input hatch + { GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailWood), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.AnyIron, 4), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(tRailSJ) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(8) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailWood), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Steel, 2), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(2, tRailSJ)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailWood), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.StainlessSteel, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(4, tRailSJ)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailWood), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Titanium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(8, tRailSJ)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(48) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailWood), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.TungstenSteel, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(16, tRailSJ)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(64) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailWood), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Iridium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(32, tRailSJ)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailWood), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Osmium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(64, tRailSJ)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(256) - .addTo(sAssemblerRecipes); + .itemInputs( + ItemList.Hull_ULV.get(1), + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Empty, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_ULV.get(1)) + .fluidInputs(Materials.Glue.getFluid(1 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_ULV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_ULV.get(1), + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Empty, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_ULV.get(1)) + .fluidInputs(Materials.Plastic.getMolten(1 * HALF_INGOT)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_ULV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_ULV.get(1), + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Empty, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_ULV.get(1)) + .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(1 * EIGHTH_INGOT)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_ULV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_ULV.get(1), + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Empty, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_ULV.get(1)) + .fluidInputs(Materials.Polybenzimidazole.getMolten(4)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_ULV) + .addTo(sAssemblerRecipes); } - // --- Switch Tack --- - ItemStack tRailNS = getModItem(Railcraft.ID, "track", 1, 4767); - if (tRailNS != null) { - NBTTagCompound tTagNS = new NBTTagCompound(); - tTagNS.setString("track", "railcraft:track.switch"); - tRailNS.stackTagCompound = tTagNS; - GT_Values.RA.stdBuilder() - .itemInputs( - new ItemStack(Blocks.rail, 2, 0), - GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Steel, 4), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(tRailNS) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - new ItemStack(Blocks.rail, 2, 0), - GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.StainlessSteel, 2), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(2, tRailNS)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - new ItemStack(Blocks.rail, 2, 0), - GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Titanium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(4, tRailNS)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(48) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - new ItemStack(Blocks.rail, 2, 0), - GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.TungstenSteel, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(8, tRailNS)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(64) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - new ItemStack(Blocks.rail, 2, 0), - GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Iridium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(16, tRailNS)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - new ItemStack(Blocks.rail, 2, 0), - GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Osmium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(32, tRailNS)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(256) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - new ItemStack(Blocks.rail, 2, 0), - GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Neutronium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(64, tRailNS)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sAssemblerRecipes); + /* + * those early exits prevents further hatches recipes from being registered, but it's probably fine, as that + * means we aren't in full pack + */ + if (!BuildCraftFactory.isModLoaded()) { + return; } - // --- Wye Tack --- - ItemStack tRailNW = getModItem(Railcraft.ID, "track", 1, 2144); - if (tRailNW != null) { - NBTTagCompound tTagNW = new NBTTagCompound(); - tTagNW.setString("track", "railcraft:track.wye"); - tRailNW.stackTagCompound = tTagNW; + // LV input hatch + { GT_Values.RA.stdBuilder() - .itemInputs( - new ItemStack(Blocks.rail, 2, 0), - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Steel, 4), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(tRailNW) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - new ItemStack(Blocks.rail, 2, 0), - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.StainlessSteel, 2), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(2, tRailNW)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - new ItemStack(Blocks.rail, 2, 0), - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Titanium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(4, tRailNW)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(48) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - new ItemStack(Blocks.rail, 2, 0), - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.TungstenSteel, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(8, tRailNW)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(64) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - new ItemStack(Blocks.rail, 2, 0), - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Iridium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(16, tRailNW)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - new ItemStack(Blocks.rail, 2, 0), - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Osmium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(32, tRailNW)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(256) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - new ItemStack(Blocks.rail, 2, 0), - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Neutronium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(64, tRailNW)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sAssemblerRecipes); + .itemInputs( + ItemList.Hull_LV.get(1), + getModItem(BuildCraftFactory.ID, "tankBlock", 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_LV.get(1)) + .fluidInputs(Materials.Glue.getFluid(5 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_LV.get(1), + getModItem(BuildCraftFactory.ID, "tankBlock", 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_LV.get(1)) + .fluidInputs(Materials.Plastic.getMolten(1 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_LV.get(1), + getModItem(BuildCraftFactory.ID, "tankBlock", 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_LV.get(1)) + .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(1 * HALF_INGOT)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_LV.get(1), + getModItem(BuildCraftFactory.ID, "tankBlock", 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_LV.get(1)) + .fluidInputs(Materials.Polybenzimidazole.getMolten(9)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); } - // --- Junction Tack --- - ItemStack tRailNJ = getModItem(Railcraft.ID, "track", 1); - if (tRailNJ != null) { - NBTTagCompound tTagNJ = new NBTTagCompound(); - tTagNJ.setString("track", "railcraft:track.junction"); - tRailNJ.stackTagCompound = tTagNJ; - GT_Values.RA.stdBuilder() - .itemInputs( - new ItemStack(Blocks.rail, 2, 0), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Steel, 4), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(tRailNJ) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - new ItemStack(Blocks.rail, 2, 0), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.StainlessSteel, 2), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(2, tRailNJ)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - new ItemStack(Blocks.rail, 2, 0), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Titanium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(4, tRailNJ)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(48) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - new ItemStack(Blocks.rail, 2, 0), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.TungstenSteel, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(8, tRailNJ)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(64) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - new ItemStack(Blocks.rail, 2, 0), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Iridium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(16, tRailNJ)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - new ItemStack(Blocks.rail, 2, 0), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Osmium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(32, tRailNJ)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(256) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - new ItemStack(Blocks.rail, 2, 0), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Neutronium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(64, tRailNJ)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sAssemblerRecipes); + if (!IronTanks.isModLoaded()) { + return; } - // --- Reinforced Switch Track --- - ItemStack tRailRS = getModItem(Railcraft.ID, "track.reinforced", 1); - if (tRailRS != null) { - NBTTagCompound tTagRS = new NBTTagCompound(); - tTagRS.setString("track", "railcraft:track.reinforced.switch"); - tRailRS.stackTagCompound = tTagRS; + // MV input hatch + { GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailRe), - GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Steel, 4), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(tRailRS) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailRe), - GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.StainlessSteel, 2), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(2, tRailRS)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailRe), - GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Titanium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(4, tRailRS)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(48) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailRe), - GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.TungstenSteel, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(8, tRailRS)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(64) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailRe), - GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Iridium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(16, tRailRS)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailRe), - GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Osmium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(32, tRailRS)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(256) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailRe), - GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Neutronium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(64, tRailRS)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sAssemblerRecipes); + .itemInputs( + ItemList.Hull_MV.get(1), + getModItem(IronTanks.ID, "copperTank", 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_MV.get(1)) + .fluidInputs(Materials.Plastic.getMolten(2 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_MV.get(1), + getModItem(IronTanks.ID, "copperTank", 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_MV.get(1)) + .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(1 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_MV.get(1), + getModItem(IronTanks.ID, "copperTank", 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_MV.get(1)) + .fluidInputs(Materials.Polybenzimidazole.getMolten(1 * EIGHTH_INGOT)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sAssemblerRecipes); } - // --- Reinforced Wye Track --- - ItemStack tRailRW = getModItem(Railcraft.ID, "track.reinforced", 1); - if (tRailRW != null) { - NBTTagCompound tTagRW = new NBTTagCompound(); - tTagRW.setString("track", "railcraft:track.reinforced.wye"); - tRailRW.stackTagCompound = tTagRW; + // HV input hatch + { GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailRe), - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Steel, 4), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(tRailRW) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailRe), - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.StainlessSteel, 2), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(2, tRailRW)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailRe), - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Titanium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(4, tRailRW)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(48) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailRe), - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.TungstenSteel, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(8, tRailRW)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(64) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailRe), - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Iridium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(16, tRailRW)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailRe), - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Osmium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(32, tRailRW)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(256) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailRe), - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Neutronium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(64, tRailRW)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sAssemblerRecipes); + .itemInputs( + ItemList.Hull_HV.get(1), + getModItem(IronTanks.ID, "ironTank", 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_HV.get(1)) + .fluidInputs(Materials.Plastic.getMolten(3 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_HV.get(1), + getModItem(IronTanks.ID, "ironTank", 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_HV.get(1)) + .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(2 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_HV.get(1), + getModItem(IronTanks.ID, "ironTank", 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_HV.get(1)) + .fluidInputs(Materials.Polybenzimidazole.getMolten(1 * QUARTER_INGOT)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sAssemblerRecipes); } - // --- Reinforced Junction Track --- - ItemStack tRailRJ = getModItem(Railcraft.ID, "track.reinforced", 1, 764); - if (tRailRJ != null) { - NBTTagCompound tTagRJ = new NBTTagCompound(); - tTagRJ.setString("track", "railcraft:track.reinforced.junction"); - tRailRJ.stackTagCompound = tTagRJ; + // EV input hatch + { GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailRe), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Steel, 4), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(tRailRJ) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailRe), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.StainlessSteel, 2), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(2, tRailRJ)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailRe), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Titanium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(4, tRailRJ)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(48) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailRe), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.TungstenSteel, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(8, tRailRJ)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(64) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailRe), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Iridium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(16, tRailRJ)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailRe), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Osmium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(32, tRailRJ)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(256) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailRe), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Neutronium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(64, tRailRJ)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sAssemblerRecipes); + .itemInputs( + ItemList.Hull_EV.get(1), + getModItem(IronTanks.ID, "silverTank", 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_EV.get(1)) + .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(4 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_EV.get(1), + getModItem(IronTanks.ID, "silverTank", 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_EV.get(1)) + .fluidInputs(Materials.Polybenzimidazole.getMolten(1 * HALF_INGOT)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sAssemblerRecipes); } - // --- H.S. Switch Track --- - ItemStack tRailSSw = getModItem(Railcraft.ID, "track.speed", 1, 7916); - if (tRailSSw != null) { - NBTTagCompound tTagRSSw = new NBTTagCompound(); - tTagRSSw.setString("track", "railcraft:track.speed.switch"); - tRailSSw.stackTagCompound = tTagRSSw; + // IV input hatch + { GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailHs), - GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Steel, 4), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(tRailSSw) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailHs), - GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.StainlessSteel, 2), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(2, tRailSSw)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailHs), - GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Titanium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(4, tRailSSw)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(48) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailHs), - GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.TungstenSteel, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(8, tRailSSw)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(64) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailHs), - GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Iridium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(16, tRailSSw)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailHs), - GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Osmium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(32, tRailSSw)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(256) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailHs), - GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Neutronium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(64, tRailSSw)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sAssemblerRecipes); + .itemInputs( + ItemList.Hull_IV.get(1), + getModItem(IronTanks.ID, "goldTank", 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_IV.get(1)) + .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(8 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_IV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_IV.get(1), + getModItem(IronTanks.ID, "goldTank", 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_IV.get(1)) + .fluidInputs(Materials.Polybenzimidazole.getMolten(1 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_IV) + .addTo(sAssemblerRecipes); } - // --- H.S. Wye Track --- - ItemStack tRailSWy = getModItem(Railcraft.ID, "track.speed", 1); - if (tRailSWy != null) { - NBTTagCompound tTagRSWy = new NBTTagCompound(); - tTagRSWy.setString("track", "railcraft:track.speed.wye"); - tRailSWy.stackTagCompound = tTagRSWy; + // LuV input hatch + { GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailHs), - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Steel, 4), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(tRailSWy) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailHs), - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.StainlessSteel, 2), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(2, tRailSWy)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailHs), - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Titanium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(4, tRailSWy)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(48) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailHs), - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.TungstenSteel, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(8, tRailSWy)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(64) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailHs), - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Iridium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(16, tRailSWy)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailHs), - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Osmium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(32, tRailSWy)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(256) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailHs), - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Neutronium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(64, tRailSWy)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sAssemblerRecipes); + .itemInputs( + ItemList.Hull_LuV.get(1), + getModItem(IronTanks.ID, "diamondTank", 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_LuV.get(1)) + .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(16 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_LuV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_LuV.get(1), + getModItem(IronTanks.ID, "diamondTank", 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_LuV.get(1)) + .fluidInputs(Materials.Polybenzimidazole.getMolten(2 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_LuV) + .addTo(sAssemblerRecipes); } - // --- H.S. Transition Track --- - ItemStack tRailSTt = getModItem(Railcraft.ID, "track.speed", 1, 26865); - if (tRailSTt != null) { - NBTTagCompound tTagRSTt = new NBTTagCompound(); - tTagRSTt.setString("track", "railcraft:track.speed.transition"); - tRailSTt.stackTagCompound = tTagRSTt; + // ZPM input hatch + { GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailHs), - ItemList.RC_Bed_Stone.get(1), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.RedAlloy, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(4, tRailSTt)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailHs), - ItemList.RC_Bed_Stone.get(1), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.ConductiveIron, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(8, tRailSTt)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(64) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailHs), - ItemList.RC_Bed_Stone.get(1), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.VibrantAlloy, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(16, tRailSTt)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailHs), - ItemList.RC_Bed_Stone.get(1), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.CrystallineAlloy, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(32, tRailSTt)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(256) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailHs), - ItemList.RC_Bed_Stone.get(1), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.MelodicAlloy, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(64, tRailSTt)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sAssemblerRecipes); + .itemInputs( + ItemList.Hull_ZPM.get(1), + getModItem(IronTanks.ID, "obsidianTank", 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_ZPM.get(1)) + .fluidInputs(Materials.Polybenzimidazole.getMolten(4 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_ZPM) + .addTo(sAssemblerRecipes); } - // --- Electric Switch Track --- - ItemStack tRailES = getModItem(Railcraft.ID, "track.electric", 1, 10488); - if (tRailES != null) { - NBTTagCompound tTagES = new NBTTagCompound(); - tTagES.setString("track", "railcraft:track.electric.switch"); - tRailES.stackTagCompound = tTagES; + // UV input hatch + { GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailEl), - GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Copper, 4), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(tRailES) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailEl), - GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Gold, 2), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(2, tRailES)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailEl), - GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Electrum, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(4, tRailES)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(48) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailEl), - GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Titanium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(8, tRailES)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(64) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailEl), - GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Platinum, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(16, tRailES)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailEl), - GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.VanadiumGallium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(32, tRailES)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(256) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailEl), - GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Naquadah, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(64, tRailES)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sAssemblerRecipes); + .itemInputs(ItemList.Hull_UV.get(1), ItemList.Super_Tank_LV.get(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_UV.get(1)) + .fluidInputs(Materials.Polybenzimidazole.getMolten(8 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_UV) + .addTo(sAssemblerRecipes); } - // --- Electric Wye Track --- - ItemStack tRailEw = getModItem(Railcraft.ID, "track.electric", 1); - if (tRailEw != null) { - NBTTagCompound tTagEw = new NBTTagCompound(); - tTagEw.setString("track", "railcraft:track.electric.wye"); - tRailEw.stackTagCompound = tTagEw; + // UHV input hatch + { GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailEl), - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Copper, 4), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(tRailEw) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailEl), - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Gold, 2), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(2, tRailEw)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailEl), - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Electrum, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(4, tRailEw)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(48) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailEl), - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Titanium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(8, tRailEw)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(64) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailEl), - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Platinum, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(16, tRailEw)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailEl), - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.VanadiumGallium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(32, tRailEw)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(256) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailEl), - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Naquadah, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(64, tRailEw)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sAssemblerRecipes); + .itemInputs(ItemList.Hull_MAX.get(1), ItemList.Super_Tank_MV.get(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Hatch_Input_MAX.get(1)) + .fluidInputs(Materials.Polybenzimidazole.getMolten(16 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_UHV) + .addTo(sAssemblerRecipes); } - // --- Electric Junction Track --- - ItemStack tRailEJ = getModItem(Railcraft.ID, "track.electric", 1); - if (tRailEJ != null) { - NBTTagCompound tTagREJ = new NBTTagCompound(); - tTagREJ.setString("track", "railcraft:track.electric.junction"); - tRailEJ.stackTagCompound = tTagREJ; + } + /** + * Adds recipes for output hatches from ULV to UHV + */ + public void loadOutputHatchesRecipes() { + // ULV output hatch + { GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailEl), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Copper, 4), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(tRailEJ) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailEl), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Gold, 2), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(2, tRailEJ)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailEl), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Electrum, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(4, tRailEJ)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(48) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailEl), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Titanium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(8, tRailEJ)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(64) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailEl), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Platinum, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(16, tRailEJ)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailEl), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.VanadiumGallium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(32, tRailEJ)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(256) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(2, tRailEl), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Naquadah, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_Utility.copyAmount(64, tRailEJ)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sAssemblerRecipes); + .itemInputs( + ItemList.Hull_ULV.get(1), + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Empty, 1), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_ULV.get(1)) + .fluidInputs(Materials.Glue.getFluid(1 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_ULV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_ULV.get(1), + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Empty, 1), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_ULV.get(1)) + .fluidInputs(Materials.Plastic.getMolten(1 * HALF_INGOT)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_ULV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_ULV.get(1), + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Empty, 1), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_ULV.get(1)) + .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(1 * EIGHTH_INGOT)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_ULV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_ULV.get(1), + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Empty, 1), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_ULV.get(1)) + .fluidInputs(Materials.Polybenzimidazole.getMolten(4)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_ULV) + .addTo(sAssemblerRecipes); } - // Shunting Wire - for (Materials tMat : solderingMats) { - int tMultiplier = tMat.contains(SubTag.SOLDERING_MATERIAL_GOOD) ? 1 - : tMat.contains(SubTag.SOLDERING_MATERIAL_BAD) ? 4 : 2; - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Copper, 1), - GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Lead, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.RC_ShuntingWire.get(1)) - .fluidInputs(tMat.getMolten(16L * tMultiplier / 2)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.AnnealedCopper, 1), - GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Lead, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.RC_ShuntingWire.get(1)) - .fluidInputs(tMat.getMolten(16L * tMultiplier / 2)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Gold, 1), - GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Lead, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.RC_ShuntingWire.get(4)) - .fluidInputs(tMat.getMolten(16L * tMultiplier / 2)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(24) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Electrum, 1), - GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Gold, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.RC_ShuntingWire.get(8)) - .fluidInputs(tMat.getMolten(16L * tMultiplier / 2)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Titanium, 1), - GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Electrum, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.RC_ShuntingWire.get(16)) - .fluidInputs(tMat.getMolten(16L * tMultiplier / 2)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(48) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Platinum, 1), - GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Titanium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.RC_ShuntingWire.get(32)) - .fluidInputs(tMat.getMolten(16L * tMultiplier / 2)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(64) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.VanadiumGallium, 1), - GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Platinum, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.RC_ShuntingWire.get(64)) - .fluidInputs(tMat.getMolten(16L * tMultiplier / 2)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sAssemblerRecipes); - - // chunkloader upgrade OC - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Circuit_Board_Plastic_Advanced.get(1), - GT_OreDictUnificator.get(OrePrefixes.itemCasing, Materials.Aluminium, 2), - getModItem(Railcraft.ID, "machine.alpha", 1L, 0), - getModItem(OpenComputers.ID, "item", 1L, 26), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(getModItem(OpenComputers.ID, "item", 1L, 62)) - .fluidInputs(tMat.getMolten(144L * tMultiplier / 2)) - .noFluidOutputs() - .duration(12 * SECONDS + 10 * TICKS) - .eut(256) - .addTo(sAssemblerRecipes); + /* + * those early exits prevents further hatches recipes from being registered, but it's probably fine, as that + * means we aren't in full pack + */ + if (!BuildCraftFactory.isModLoaded()) { + return; } - GT_Values.RA.stdBuilder() - .itemInputs( - new ItemStack(Blocks.piston, 1, 0), - ItemList.FR_Casing_Sturdy.get(1), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Lapis, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(getModItem(NewHorizonsCoreMod.ID, "item.EngineCore", 1L, 0)) - .fluidInputs(Materials.SeedOil.getFluid(250)) - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - new ItemStack(Blocks.piston, 1, 0), - ItemList.FR_Casing_Sturdy.get(1), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Lapis, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(getModItem(NewHorizonsCoreMod.ID, "item.EngineCore", 1L, 0)) - .fluidInputs(Materials.Lubricant.getFluid(125)) - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - getModItem(ExtraUtilities.ID, "trashcan", 1L, 0), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Obsidian, 4), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(getModItem(Railcraft.ID, "machine.beta", 1L, 11)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - getModItem(NewHorizonsCoreMod.ID, "item.EngineCore", 1), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.AnyCopper, 10), - GT_Utility.getIntegratedCircuit(10)) - .itemOutputs(getModItem(Railcraft.ID, "machine.beta", 1L, 7)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - getModItem(NewHorizonsCoreMod.ID, "item.EngineCore", 1), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Steel, 10), - GT_Utility.getIntegratedCircuit(10)) - .itemOutputs(getModItem(Railcraft.ID, "machine.beta", 1L, 8)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - getModItem(NewHorizonsCoreMod.ID, "item.EngineCore", 1), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 10), - GT_Utility.getIntegratedCircuit(10)) - .itemOutputs(getModItem(Railcraft.ID, "machine.beta", 1L, 9)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(16) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plateDouble, Materials.Gold, 2), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Diamond, 4), - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.EnderPearl, 1), - GT_OreDictUnificator.get(OrePrefixes.plateDense, Materials.Obsidian, 2), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(getModItem(Railcraft.ID, "machine.alpha", 1, 0)) - .noFluidInputs() - .noFluidOutputs() - .duration(30 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.AnyIron, 2), - GT_Utility.getIntegratedCircuit(20)) - .itemOutputs(getModItem(Railcraft.ID, "machine.beta", 1L, 0)) - .noFluidInputs() - .noFluidOutputs() - .duration(30 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.AnyIron, 2), - new ItemStack(Blocks.glass_pane, 2, 0), - GT_Utility.getIntegratedCircuit(21)) - .itemOutputs(getModItem(Railcraft.ID, "machine.beta", 2L, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); + // LV output hatch + { + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_LV.get(1), + getModItem(BuildCraftFactory.ID, "tankBlock", 1), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_LV.get(1)) + .fluidInputs(Materials.Glue.getFluid(5 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_LV.get(1), + getModItem(BuildCraftFactory.ID, "tankBlock", 1), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_LV.get(1)) + .fluidInputs(Materials.Plastic.getMolten(1 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_LV.get(1), + getModItem(BuildCraftFactory.ID, "tankBlock", 1), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_LV.get(1)) + .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(1 * HALF_INGOT)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_LV.get(1), + getModItem(BuildCraftFactory.ID, "tankBlock", 1), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_LV.get(1)) + .fluidInputs(Materials.Polybenzimidazole.getMolten(9)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + } - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.AnyIron, 2), - getModItem(TinkerConstruct.ID, "GlassPane", 2L, 0), - GT_Utility.getIntegratedCircuit(21)) - .itemOutputs(getModItem(Railcraft.ID, "machine.beta", 2L, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); + if (!IronTanks.isModLoaded()) { + return; + } - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.Bronze, 2), - new ItemStack(Blocks.iron_bars, 2, 0), - GT_Utility.getIntegratedCircuit(22)) - .itemOutputs(getModItem(Railcraft.ID, "machine.beta", 1L, 2)) - .noFluidInputs() - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); + // MV output hatch + { + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_MV.get(1), + getModItem(IronTanks.ID, "copperTank", 1), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_MV.get(1)) + .fluidInputs(Materials.Plastic.getMolten(2 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_MV.get(1), + getModItem(IronTanks.ID, "copperTank", 1), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_MV.get(1)) + .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(1 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_MV.get(1), + getModItem(IronTanks.ID, "copperTank", 1), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_MV.get(1)) + .fluidInputs(Materials.Polybenzimidazole.getMolten(1 * EIGHTH_INGOT)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sAssemblerRecipes); + } - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Steel, 2), - GT_Utility.getIntegratedCircuit(20)) - .itemOutputs(getModItem(Railcraft.ID, "machine.beta", 1L, 13)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(64) - .addTo(sAssemblerRecipes); + // HV output hatch + { + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_HV.get(1), + getModItem(IronTanks.ID, "ironTank", 1), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_HV.get(1)) + .fluidInputs(Materials.Plastic.getMolten(3 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_HV.get(1), + getModItem(IronTanks.ID, "ironTank", 1), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_HV.get(1)) + .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(2 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_HV.get(1), + getModItem(IronTanks.ID, "ironTank", 1), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_HV.get(1)) + .fluidInputs(Materials.Polybenzimidazole.getMolten(1 * QUARTER_INGOT)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sAssemblerRecipes); + } - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Steel, 2), - new ItemStack(Blocks.glass_pane, 2, 0), - GT_Utility.getIntegratedCircuit(21)) - .itemOutputs(getModItem(Railcraft.ID, "machine.beta", 2L, 14)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(64) - .addTo(sAssemblerRecipes); + // EV output hatch + { + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_EV.get(1), + getModItem(IronTanks.ID, "silverTank", 1), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_EV.get(1)) + .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(4 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_EV.get(1), + getModItem(IronTanks.ID, "silverTank", 1), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_EV.get(1)) + .fluidInputs(Materials.Polybenzimidazole.getMolten(1 * HALF_INGOT)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sAssemblerRecipes); + } - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Steel, 2), - getModItem(TinkerConstruct.ID, "GlassPane", 2L, 0), - GT_Utility.getIntegratedCircuit(21)) - .itemOutputs(getModItem(Railcraft.ID, "machine.beta", 2L, 14)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(64) - .addTo(sAssemblerRecipes); + // IV output hatch + { + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_IV.get(1), + getModItem(IronTanks.ID, "goldTank", 1), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_IV.get(1)) + .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(8 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_IV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_IV.get(1), + getModItem(IronTanks.ID, "goldTank", 1), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_IV.get(1)) + .fluidInputs(Materials.Polybenzimidazole.getMolten(1 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_IV) + .addTo(sAssemblerRecipes); + } - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.Steel, 2), - getModItem(NewHorizonsCoreMod.ID, "item.SteelBars", 2), - GT_Utility.getIntegratedCircuit(22)) - .itemOutputs(getModItem(Railcraft.ID, "machine.beta", 1L, 15)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(64) - .addTo(sAssemblerRecipes); + // LuV output hatch + { + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_LuV.get(1), + getModItem(IronTanks.ID, "diamondTank", 1), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_LuV.get(1)) + .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(16 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_LuV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_LuV.get(1), + getModItem(IronTanks.ID, "diamondTank", 1), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_LuV.get(1)) + .fluidInputs(Materials.Polybenzimidazole.getMolten(2 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_LuV) + .addTo(sAssemblerRecipes); + } - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 2), - GT_Utility.getIntegratedCircuit(20)) - .itemOutputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 0)) - .noFluidInputs() - .noFluidOutputs() - .duration(30 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sAssemblerRecipes); + // ZPM output hatch + { + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Hull_ZPM.get(1), + getModItem(IronTanks.ID, "obsidianTank", 1), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_ZPM.get(1)) + .fluidInputs(Materials.Polybenzimidazole.getMolten(4 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_ZPM) + .addTo(sAssemblerRecipes); + } - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 2), - new ItemStack(Blocks.glass_pane, 2, 0), - GT_Utility.getIntegratedCircuit(21)) - .itemOutputs(getModItem(Railcraft.ID, "machine.zeta", 2L, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sAssemblerRecipes); + // UV output hatch + { + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Hull_UV.get(1), ItemList.Super_Tank_LV.get(1), GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_UV.get(1)) + .fluidInputs(Materials.Polybenzimidazole.getMolten(8 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_UV) + .addTo(sAssemblerRecipes); + } - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 2), - getModItem(TinkerConstruct.ID, "GlassPane", 2L, 0), - GT_Utility.getIntegratedCircuit(21)) - .itemOutputs(getModItem(Railcraft.ID, "machine.zeta", 2L, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sAssemblerRecipes); + // UHV output hatch + { + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Hull_MAX.get(1), ItemList.Super_Tank_MV.get(1), GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Hatch_Output_MAX.get(1)) + .fluidInputs(Materials.Polybenzimidazole.getMolten(16 * INGOTS)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_UHV) + .addTo(sAssemblerRecipes); + } + } - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.Plastic, 2), - getModItem(NewHorizonsCoreMod.ID, "item.AluminiumBars", 2), - GT_Utility.getIntegratedCircuit(22)) - .itemOutputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 2)) - .noFluidInputs() - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sAssemblerRecipes); + /** + * Load all Railcraft recipes for GT Machines + */ + private void withRailcraft() { + if (!Railcraft.isModLoaded()) return; GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.StainlessSteel, 2), - GT_Utility.getIntegratedCircuit(20)) - .itemOutputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 3)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(256) - .addTo(sAssemblerRecipes); + .itemInputs( + new ItemStack(Blocks.stone_slab, 1, 0), + ItemList.RC_Rebar.get(1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.RC_Tie_Stone.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(6 * SECONDS + 8 * TICKS) + .eut(8) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + new ItemStack(Blocks.stone_slab, 1, 7), + ItemList.RC_Rebar.get(1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.RC_Tie_Stone.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(6 * SECONDS + 8 * TICKS) + .eut(8) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Steel, 3), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Electrum, 3), + GT_Utility.getIntegratedCircuit(8)) + .itemOutputs(ItemList.RC_Rail_HS.get(16)) + .fluidInputs(Materials.Blaze.getMolten(216)) + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Steel, 3), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Electrum, 3), + GT_Utility.getIntegratedCircuit(9)) + .itemOutputs(ItemList.RC_Rail_HS.get(8)) + .fluidInputs(Materials.ConductiveIron.getMolten(432)) + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Steel, 3), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Electrum, 3), + GT_Utility.getIntegratedCircuit(9)) + .itemOutputs(ItemList.RC_Rail_HS.get(32)) + .fluidInputs(Materials.VibrantAlloy.getMolten(216)) + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Steel, 3), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Electrum, 3), + GT_Utility.getIntegratedCircuit(9)) + .itemOutputs(ItemList.RC_Rail_HS.get(64)) + .fluidInputs(Materials.CrystallineAlloy.getMolten(216)) + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(48) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.RC_Rail_Standard.get(3), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Electrum, 3), + GT_Utility.getIntegratedCircuit(8)) + .itemOutputs(ItemList.RC_Rail_Adv.get(8)) + .fluidInputs(Materials.Redstone.getMolten(216)) + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.RC_Rail_Standard.get(3), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Electrum, 3), + GT_Utility.getIntegratedCircuit(8)) + .itemOutputs(ItemList.RC_Rail_Adv.get(16)) + .fluidInputs(Materials.RedAlloy.getMolten(216)) + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.RC_Rail_Standard.get(3), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Electrum, 3), + GT_Utility.getIntegratedCircuit(8)) + .itemOutputs(ItemList.RC_Rail_Adv.get(32)) + .fluidInputs(Materials.ConductiveIron.getMolten(216)) + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.RC_Rail_Standard.get(3), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Electrum, 3), + GT_Utility.getIntegratedCircuit(8)) + .itemOutputs(ItemList.RC_Rail_Adv.get(64)) + .fluidInputs(Materials.VibrantAlloy.getMolten(216)) + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(48) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.RC_Rail_Standard.get(1), + GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Copper, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.RC_Rail_Electric.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.RC_Rail_Standard.get(1), + GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.AnnealedCopper, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.RC_Rail_Electric.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.RC_Rail_Standard.get(1), + GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Gold, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.RC_Rail_Electric.get(2)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.RC_Rail_Standard.get(1), + GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Electrum, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.RC_Rail_Electric.get(4)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.RC_Rail_Standard.get(1), + GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Titanium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.RC_Rail_Electric.get(8)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.RC_Rail_Standard.get(1), + GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.TungstenSteel, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.RC_Rail_Electric.get(16)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(48) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.RC_Rail_Standard.get(1), + GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.HSSG, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.RC_Rail_Electric.get(32)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(64) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.RC_Rail_Standard.get(1), + GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Naquadah, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.RC_Rail_Electric.get(64)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(96) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.RC_Tie_Wood.get(1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Iron, 1), + GT_Utility.getIntegratedCircuit(10)) + .itemOutputs(ItemList.RC_Rail_Wooden.get(8)) + .noFluidInputs() + .noFluidOutputs() + .duration(6 * SECONDS + 13 * TICKS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.RC_Tie_Wood.get(1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.WroughtIron, 1), + GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(ItemList.RC_Rail_Wooden.get(8)) + .noFluidInputs() + .noFluidOutputs() + .duration(6 * SECONDS + 13 * TICKS) + .eut(4) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.RC_Tie_Wood.get(1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Steel, 1), + GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(ItemList.RC_Rail_Wooden.get(16)) + .noFluidInputs() + .noFluidOutputs() + .duration(6 * SECONDS + 13 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.RC_Tie_Wood.get(1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.StainlessSteel, 1), + GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(ItemList.RC_Rail_Wooden.get(32)) + .noFluidInputs() + .noFluidOutputs() + .duration(6 * SECONDS + 13 * TICKS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.RC_Tie_Wood.get(1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Titanium, 1), + GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(ItemList.RC_Rail_Wooden.get(64)) + .noFluidInputs() + .noFluidOutputs() + .duration(6 * SECONDS + 13 * TICKS) + .eut(48) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.RC_Tie_Wood.get(32), GT_Utility.getIntegratedCircuit(20)) + .itemOutputs(ItemList.RC_Bed_Wood.get(24)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.RC_Tie_Wood.get(64), GT_Utility.getIntegratedCircuit(24)) + .itemOutputs(ItemList.RC_Bed_Wood.get(48)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(48) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.RC_Tie_Stone.get(32), GT_Utility.getIntegratedCircuit(20)) + .itemOutputs(ItemList.RC_Bed_Stone.get(24)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.RC_Tie_Stone.get(64), GT_Utility.getIntegratedCircuit(24)) + .itemOutputs(ItemList.RC_Bed_Stone.get(48)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(48) + .addTo(sAssemblerRecipes); - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.StainlessSteel, 2), - new ItemStack(Blocks.glass_pane, 2, 0), - GT_Utility.getIntegratedCircuit(21)) - .itemOutputs(getModItem(Railcraft.ID, "machine.zeta", 2L, 4)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(256) - .addTo(sAssemblerRecipes); + ItemStack tRailWood = getModItem(Railcraft.ID, "track", 64, 736); + if (tRailWood != null) { + NBTTagCompound tTagWood = new NBTTagCompound(); + tTagWood.setString("track", "railcraft:track.slow"); + tRailWood.stackTagCompound = tTagWood; - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.StainlessSteel, 2), - getModItem(TinkerConstruct.ID, "GlassPane", 2L, 0), - GT_Utility.getIntegratedCircuit(21)) - .itemOutputs(getModItem(Railcraft.ID, "machine.zeta", 2L, 4)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(256) - .addTo(sAssemblerRecipes); + ItemStack tRailWoodB = getModItem(Railcraft.ID, "track.slow", 16); + NBTTagCompound tTagWoodB = new NBTTagCompound(); + tTagWoodB.setString("track", "railcraft:track.slow.boost"); + tRailWoodB.stackTagCompound = tTagWoodB; + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.RC_Bed_Wood.get(1), + ItemList.RC_Rail_Wooden.get(6), + GT_Utility.getIntegratedCircuit(21)) + .itemOutputs(tRailWood) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailWood), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.RedAlloy, 1), + GT_Utility.getIntegratedCircuit(22)) + .itemOutputs(tRailWoodB) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + } GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.StainlessSteel, 2), - getModItem(NewHorizonsCoreMod.ID, "item.StainlessSteelBars", 2), - GT_Utility.getIntegratedCircuit(22)) - .itemOutputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 5)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(256) - .addTo(sAssemblerRecipes); + .itemInputs( + new ItemStack(Blocks.rail, 1, 0), + ItemList.RC_Rail_Adv.get(2), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.RedAlloy, 1), + GT_Utility.getIntegratedCircuit(22)) + .itemOutputs(new ItemStack(Blocks.golden_rail, 16, 0)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.RC_Bed_Wood.get(1), + ItemList.RC_Rail_Standard.get(6), + GT_Utility.getIntegratedCircuit(21)) + .itemOutputs(new ItemStack(Blocks.rail, 64, 0)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Titanium, 2), - GT_Utility.getIntegratedCircuit(20)) - .itemOutputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 6)) - .noFluidInputs() - .noFluidOutputs() - .duration(30 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sAssemblerRecipes); + ItemStack tRailRe = getModItem(Railcraft.ID, "track", 64); + NBTTagCompound tTagRe = new NBTTagCompound(); + tTagRe.setString("track", "railcraft:track.reinforced"); + tRailRe.stackTagCompound = tTagRe; GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Titanium, 2), - new ItemStack(Blocks.glass_pane, 2, 0), - GT_Utility.getIntegratedCircuit(21)) - .itemOutputs(getModItem(Railcraft.ID, "machine.zeta", 2L, 7)) - .noFluidInputs() - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sAssemblerRecipes); + .itemInputs( + ItemList.RC_Bed_Stone.get(1), + ItemList.RC_Rail_Reinforced.get(6), + GT_Utility.getIntegratedCircuit(21)) + .itemOutputs(tRailRe) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Titanium, 2), - getModItem(TinkerConstruct.ID, "GlassPane", 2L, 0), - GT_Utility.getIntegratedCircuit(21)) - .itemOutputs(getModItem(Railcraft.ID, "machine.zeta", 2L, 7)) - .noFluidInputs() - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sAssemblerRecipes); + ItemStack tRailReB = getModItem(Railcraft.ID, "track.reinforced", 16); + NBTTagCompound tTagReB = new NBTTagCompound(); + tTagReB.setString("track", "railcraft:track.reinforced.boost"); + tRailReB.stackTagCompound = tTagReB; GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.Titanium, 2), - getModItem(NewHorizonsCoreMod.ID, "item.TitaniumBars", 2), - GT_Utility.getIntegratedCircuit(22)) - .itemOutputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 8)) - .noFluidInputs() - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sAssemblerRecipes); + .itemInputs( + GT_Utility.copyAmount(2, tRailRe), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.RedAlloy, 1), + GT_Utility.getIntegratedCircuit(22)) + .itemOutputs(tRailReB) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.TungstenSteel, 2), - GT_Utility.getIntegratedCircuit(20)) - .itemOutputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 9)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sAssemblerRecipes); + ItemStack tRailEl = getModItem(Railcraft.ID, "track", 64); + NBTTagCompound tTagEl = new NBTTagCompound(); + tTagEl.setString("track", "railcraft:track.electric"); + tRailEl.stackTagCompound = tTagEl; GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.TungstenSteel, 2), - new ItemStack(Blocks.glass_pane, 2, 0), - GT_Utility.getIntegratedCircuit(21)) - .itemOutputs(getModItem(Railcraft.ID, "machine.zeta", 2L, 10)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sAssemblerRecipes); + .itemInputs( + ItemList.RC_Bed_Stone.get(1), + ItemList.RC_Rail_Electric.get(6), + GT_Utility.getIntegratedCircuit(21)) + .itemOutputs(tRailEl) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.TungstenSteel, 2), - getModItem(TinkerConstruct.ID, "GlassPane", 2L, 0), - GT_Utility.getIntegratedCircuit(21)) - .itemOutputs(getModItem(Railcraft.ID, "machine.zeta", 2L, 10)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sAssemblerRecipes); + ItemStack tRailHs = getModItem(Railcraft.ID, "track", 64, 816); + if (tRailHs != null) { + NBTTagCompound tTagHs = new NBTTagCompound(); + tTagHs.setString("track", "railcraft:track.speed"); + tRailHs.stackTagCompound = tTagHs; - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.TungstenSteel, 2), - getModItem(NewHorizonsCoreMod.ID, "item.TungstenSteelBars", 2), - GT_Utility.getIntegratedCircuit(22)) - .itemOutputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 11)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sAssemblerRecipes); + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.RC_Bed_Stone.get(1), + ItemList.RC_Rail_HS.get(6), + GT_Utility.getIntegratedCircuit(21)) + .itemOutputs(tRailHs) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + } + ItemStack tRailHsB = getModItem(Railcraft.ID, "track.speed", 16); + NBTTagCompound tTagHsB = new NBTTagCompound(); + tTagHsB.setString("track", "railcraft:track.speed.boost"); + tRailHsB.stackTagCompound = tTagHsB; GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Palladium, 2), - GT_Utility.getIntegratedCircuit(20)) - .itemOutputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 12)) - .noFluidInputs() - .noFluidOutputs() - .duration(30 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sAssemblerRecipes); + .itemInputs( + GT_Utility.copyAmount(2, tRailHs), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.RedAlloy, 1), + GT_Utility.getIntegratedCircuit(22)) + .itemOutputs(tRailHsB) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Palladium, 2), - new ItemStack(Blocks.glass_pane, 2, 0), - GT_Utility.getIntegratedCircuit(21)) - .itemOutputs(getModItem(Railcraft.ID, "machine.zeta", 2L, 13)) - .noFluidInputs() - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sAssemblerRecipes); + // --- Wooden Switch Track --- + ItemStack tRailSS = getModItem(Railcraft.ID, "track.slow", 1, 19986); + if (tRailSS != null) { + NBTTagCompound tTagSS = new NBTTagCompound(); + tTagSS.setString("track", "railcraft:track.slow.switch"); + tRailSS.stackTagCompound = tTagSS; - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Palladium, 2), - getModItem(TinkerConstruct.ID, "GlassPane", 2L, 0), - GT_Utility.getIntegratedCircuit(21)) - .itemOutputs(getModItem(Railcraft.ID, "machine.zeta", 2L, 13)) - .noFluidInputs() - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sAssemblerRecipes); + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailWood), + GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.AnyIron, 4), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(tRailSS) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(8) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailWood), + GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Steel, 2), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(2, tRailSS)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailWood), + GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.StainlessSteel, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(4, tRailSS)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailWood), + GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Titanium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(8, tRailSS)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(48) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailWood), + GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.TungstenSteel, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(16, tRailSS)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(64) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailWood), + GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Iridium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(32, tRailSS)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailWood), + GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Osmium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(64, tRailSS)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(256) + .addTo(sAssemblerRecipes); + } + // --- Wooden Wye Track --- + ItemStack tRailSW = getModItem(Railcraft.ID, "track.slow", 1); + if (tRailSW != null) { + NBTTagCompound tTagSW = new NBTTagCompound(); + tTagSW.setString("track", "railcraft:track.slow.wye"); + tRailSW.stackTagCompound = tTagSW; - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.NiobiumTitanium, 2), - getModItem(NewHorizonsCoreMod.ID, "item.ChromeBars", 2), - GT_Utility.getIntegratedCircuit(22)) - .itemOutputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 14)) - .noFluidInputs() - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sAssemblerRecipes); + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailWood), + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.AnyIron, 4), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(tRailSW) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(8) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailWood), + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Steel, 2), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(2, tRailSW)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailWood), + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.StainlessSteel, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(4, tRailSW)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailWood), + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Titanium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(8, tRailSW)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(48) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailWood), + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.TungstenSteel, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(16, tRailSW)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(64) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailWood), + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Iridium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(32, tRailSW)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailWood), + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Osmium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(64, tRailSW)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(256) + .addTo(sAssemblerRecipes); + } + // --- Wooden Junction Tack --- + ItemStack tRailSJ = getModItem(Railcraft.ID, "track.slow", 1); + if (tRailSJ != null) { + NBTTagCompound tTagSJ = new NBTTagCompound(); + tTagSJ.setString("track", "railcraft:track.slow.junction"); + tRailSJ.stackTagCompound = tTagSJ; - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iridium, 2), - GT_Utility.getIntegratedCircuit(20)) - .itemOutputs(getModItem(Railcraft.ID, "machine.eta", 1L, 0)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(4096) - .addTo(sAssemblerRecipes); + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailWood), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.AnyIron, 4), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(tRailSJ) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(8) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailWood), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Steel, 2), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(2, tRailSJ)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailWood), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.StainlessSteel, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(4, tRailSJ)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailWood), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Titanium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(8, tRailSJ)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(48) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailWood), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.TungstenSteel, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(16, tRailSJ)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(64) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailWood), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Iridium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(32, tRailSJ)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailWood), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Osmium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(64, tRailSJ)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(256) + .addTo(sAssemblerRecipes); + } + // --- Switch Tack --- + ItemStack tRailNS = getModItem(Railcraft.ID, "track", 1, 4767); + if (tRailNS != null) { + NBTTagCompound tTagNS = new NBTTagCompound(); + tTagNS.setString("track", "railcraft:track.switch"); + tRailNS.stackTagCompound = tTagNS; - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iridium, 2), - new ItemStack(Blocks.glass_pane, 2, 0), - GT_Utility.getIntegratedCircuit(21)) - .itemOutputs(getModItem(Railcraft.ID, "machine.eta", 2L, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(4096) - .addTo(sAssemblerRecipes); + GT_Values.RA.stdBuilder() + .itemInputs( + new ItemStack(Blocks.rail, 2, 0), + GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Steel, 4), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(tRailNS) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + new ItemStack(Blocks.rail, 2, 0), + GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.StainlessSteel, 2), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(2, tRailNS)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + new ItemStack(Blocks.rail, 2, 0), + GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Titanium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(4, tRailNS)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(48) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + new ItemStack(Blocks.rail, 2, 0), + GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.TungstenSteel, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(8, tRailNS)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(64) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + new ItemStack(Blocks.rail, 2, 0), + GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Iridium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(16, tRailNS)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + new ItemStack(Blocks.rail, 2, 0), + GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Osmium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(32, tRailNS)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(256) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + new ItemStack(Blocks.rail, 2, 0), + GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Neutronium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(64, tRailNS)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sAssemblerRecipes); - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iridium, 2), - getModItem(TinkerConstruct.ID, "GlassPane", 2L, 0), - GT_Utility.getIntegratedCircuit(21)) - .itemOutputs(getModItem(Railcraft.ID, "machine.eta", 2L, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(4096) - .addTo(sAssemblerRecipes); + } + // --- Wye Tack --- + ItemStack tRailNW = getModItem(Railcraft.ID, "track", 1, 2144); + if (tRailNW != null) { + NBTTagCompound tTagNW = new NBTTagCompound(); + tTagNW.setString("track", "railcraft:track.wye"); + tRailNW.stackTagCompound = tTagNW; - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.Enderium, 2), - getModItem(NewHorizonsCoreMod.ID, "item.IridiumBars", 2), - GT_Utility.getIntegratedCircuit(22)) - .itemOutputs(getModItem(Railcraft.ID, "machine.eta", 1L, 2)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(4096) - .addTo(sAssemblerRecipes); + GT_Values.RA.stdBuilder() + .itemInputs( + new ItemStack(Blocks.rail, 2, 0), + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Steel, 4), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(tRailNW) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + new ItemStack(Blocks.rail, 2, 0), + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.StainlessSteel, 2), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(2, tRailNW)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + new ItemStack(Blocks.rail, 2, 0), + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Titanium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(4, tRailNW)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(48) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + new ItemStack(Blocks.rail, 2, 0), + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.TungstenSteel, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(8, tRailNW)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(64) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + new ItemStack(Blocks.rail, 2, 0), + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Iridium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(16, tRailNW)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + new ItemStack(Blocks.rail, 2, 0), + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Osmium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(32, tRailNW)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(256) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + new ItemStack(Blocks.rail, 2, 0), + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Neutronium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(64, tRailNW)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sAssemblerRecipes); + } + // --- Junction Tack --- + ItemStack tRailNJ = getModItem(Railcraft.ID, "track", 1); + if (tRailNJ != null) { + NBTTagCompound tTagNJ = new NBTTagCompound(); + tTagNJ.setString("track", "railcraft:track.junction"); + tRailNJ.stackTagCompound = tTagNJ; - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Osmium, 2), - GT_Utility.getIntegratedCircuit(20)) - .itemOutputs(getModItem(Railcraft.ID, "machine.eta", 1L, 3)) - .noFluidInputs() - .noFluidOutputs() - .duration(30 * SECONDS) - .eut(TierEU.RECIPE_IV) - .addTo(sAssemblerRecipes); + GT_Values.RA.stdBuilder() + .itemInputs( + new ItemStack(Blocks.rail, 2, 0), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Steel, 4), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(tRailNJ) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + new ItemStack(Blocks.rail, 2, 0), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.StainlessSteel, 2), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(2, tRailNJ)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + new ItemStack(Blocks.rail, 2, 0), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Titanium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(4, tRailNJ)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(48) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + new ItemStack(Blocks.rail, 2, 0), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.TungstenSteel, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(8, tRailNJ)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(64) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + new ItemStack(Blocks.rail, 2, 0), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Iridium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(16, tRailNJ)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + new ItemStack(Blocks.rail, 2, 0), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Osmium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(32, tRailNJ)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(256) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + new ItemStack(Blocks.rail, 2, 0), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Neutronium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(64, tRailNJ)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sAssemblerRecipes); + } + // --- Reinforced Switch Track --- + ItemStack tRailRS = getModItem(Railcraft.ID, "track.reinforced", 1); + if (tRailRS != null) { + NBTTagCompound tTagRS = new NBTTagCompound(); + tTagRS.setString("track", "railcraft:track.reinforced.switch"); + tRailRS.stackTagCompound = tTagRS; - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Osmium, 2), - new ItemStack(Blocks.glass_pane, 2, 0), - GT_Utility.getIntegratedCircuit(21)) - .itemOutputs(getModItem(Railcraft.ID, "machine.eta", 2L, 4)) - .noFluidInputs() - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(TierEU.RECIPE_IV) - .addTo(sAssemblerRecipes); + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailRe), + GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Steel, 4), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(tRailRS) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailRe), + GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.StainlessSteel, 2), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(2, tRailRS)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailRe), + GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Titanium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(4, tRailRS)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(48) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailRe), + GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.TungstenSteel, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(8, tRailRS)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(64) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailRe), + GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Iridium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(16, tRailRS)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailRe), + GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Osmium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(32, tRailRS)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(256) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailRe), + GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Neutronium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(64, tRailRS)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sAssemblerRecipes); + } + // --- Reinforced Wye Track --- + ItemStack tRailRW = getModItem(Railcraft.ID, "track.reinforced", 1); + if (tRailRW != null) { + NBTTagCompound tTagRW = new NBTTagCompound(); + tTagRW.setString("track", "railcraft:track.reinforced.wye"); + tRailRW.stackTagCompound = tTagRW; - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Osmium, 2), - getModItem(TinkerConstruct.ID, "GlassPane", 2L, 0), - GT_Utility.getIntegratedCircuit(21)) - .itemOutputs(getModItem(Railcraft.ID, "machine.eta", 2L, 4)) - .noFluidInputs() - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(TierEU.RECIPE_IV) - .addTo(sAssemblerRecipes); + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailRe), + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Steel, 4), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(tRailRW) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailRe), + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.StainlessSteel, 2), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(2, tRailRW)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailRe), + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Titanium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(4, tRailRW)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(48) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailRe), + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.TungstenSteel, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(8, tRailRW)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(64) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailRe), + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Iridium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(16, tRailRW)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailRe), + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Osmium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(32, tRailRW)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(256) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailRe), + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Neutronium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(64, tRailRW)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sAssemblerRecipes); + } + // --- Reinforced Junction Track --- + ItemStack tRailRJ = getModItem(Railcraft.ID, "track.reinforced", 1, 764); + if (tRailRJ != null) { + NBTTagCompound tTagRJ = new NBTTagCompound(); + tTagRJ.setString("track", "railcraft:track.reinforced.junction"); + tRailRJ.stackTagCompound = tTagRJ; + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailRe), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Steel, 4), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(tRailRJ) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailRe), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.StainlessSteel, 2), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(2, tRailRJ)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailRe), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Titanium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(4, tRailRJ)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(48) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailRe), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.TungstenSteel, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(8, tRailRJ)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(64) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailRe), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Iridium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(16, tRailRJ)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailRe), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Osmium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(32, tRailRJ)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(256) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailRe), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Neutronium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(64, tRailRJ)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sAssemblerRecipes); + } + // --- H.S. Switch Track --- + ItemStack tRailSSw = getModItem(Railcraft.ID, "track.speed", 1, 7916); + if (tRailSSw != null) { + NBTTagCompound tTagRSSw = new NBTTagCompound(); + tTagRSSw.setString("track", "railcraft:track.speed.switch"); + tRailSSw.stackTagCompound = tTagRSSw; - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.Naquadah, 2), - getModItem(NewHorizonsCoreMod.ID, "item.OsmiumBars", 2), - GT_Utility.getIntegratedCircuit(22)) - .itemOutputs(getModItem(Railcraft.ID, "machine.eta", 1L, 5)) - .noFluidInputs() - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(TierEU.RECIPE_IV) - .addTo(sAssemblerRecipes); + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailHs), + GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Steel, 4), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(tRailSSw) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailHs), + GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.StainlessSteel, 2), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(2, tRailSSw)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailHs), + GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Titanium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(4, tRailSSw)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(48) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailHs), + GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.TungstenSteel, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(8, tRailSSw)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(64) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailHs), + GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Iridium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(16, tRailSSw)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailHs), + GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Osmium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(32, tRailSSw)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(256) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailHs), + GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Neutronium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(64, tRailSSw)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sAssemblerRecipes); + } + // --- H.S. Wye Track --- + ItemStack tRailSWy = getModItem(Railcraft.ID, "track.speed", 1); + if (tRailSWy != null) { + NBTTagCompound tTagRSWy = new NBTTagCompound(); + tTagRSWy.setString("track", "railcraft:track.speed.wye"); + tRailSWy.stackTagCompound = tTagRSWy; - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Neutronium, 2), - GT_Utility.getIntegratedCircuit(20)) - .itemOutputs(getModItem(Railcraft.ID, "machine.eta", 1L, 6)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LuV) - .addTo(sAssemblerRecipes); + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailHs), + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Steel, 4), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(tRailSWy) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailHs), + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.StainlessSteel, 2), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(2, tRailSWy)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailHs), + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Titanium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(4, tRailSWy)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(48) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailHs), + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.TungstenSteel, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(8, tRailSWy)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(64) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailHs), + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Iridium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(16, tRailSWy)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailHs), + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Osmium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(32, tRailSWy)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(256) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailHs), + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Neutronium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(64, tRailSWy)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sAssemblerRecipes); + } + // --- H.S. Transition Track --- + ItemStack tRailSTt = getModItem(Railcraft.ID, "track.speed", 1, 26865); + if (tRailSTt != null) { + NBTTagCompound tTagRSTt = new NBTTagCompound(); + tTagRSTt.setString("track", "railcraft:track.speed.transition"); + tRailSTt.stackTagCompound = tTagRSTt; - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Neutronium, 2), - new ItemStack(Blocks.glass_pane, 2, 0), - GT_Utility.getIntegratedCircuit(21)) - .itemOutputs(getModItem(Railcraft.ID, "machine.eta", 2L, 7)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_LuV) - .addTo(sAssemblerRecipes); + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailHs), + ItemList.RC_Bed_Stone.get(1), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.RedAlloy, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(4, tRailSTt)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailHs), + ItemList.RC_Bed_Stone.get(1), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.ConductiveIron, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(8, tRailSTt)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(64) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailHs), + ItemList.RC_Bed_Stone.get(1), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.VibrantAlloy, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(16, tRailSTt)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailHs), + ItemList.RC_Bed_Stone.get(1), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.CrystallineAlloy, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(32, tRailSTt)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(256) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailHs), + ItemList.RC_Bed_Stone.get(1), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.MelodicAlloy, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(64, tRailSTt)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sAssemblerRecipes); + } + // --- Electric Switch Track --- + ItemStack tRailES = getModItem(Railcraft.ID, "track.electric", 1, 10488); + if (tRailES != null) { + NBTTagCompound tTagES = new NBTTagCompound(); + tTagES.setString("track", "railcraft:track.electric.switch"); + tRailES.stackTagCompound = tTagES; - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Neutronium, 2), - getModItem(TinkerConstruct.ID, "GlassPane", 2L, 0), - GT_Utility.getIntegratedCircuit(21)) - .itemOutputs(getModItem(Railcraft.ID, "machine.eta", 2L, 7)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_LuV) - .addTo(sAssemblerRecipes); + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailEl), + GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Copper, 4), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(tRailES) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailEl), + GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Gold, 2), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(2, tRailES)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailEl), + GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Electrum, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(4, tRailES)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(48) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailEl), + GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Titanium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(8, tRailES)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(64) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailEl), + GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Platinum, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(16, tRailES)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailEl), + GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.VanadiumGallium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(32, tRailES)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(256) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailEl), + GT_OreDictUnificator.get(OrePrefixes.springSmall, Materials.Naquadah, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(64, tRailES)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sAssemblerRecipes); + } + // --- Electric Wye Track --- + ItemStack tRailEw = getModItem(Railcraft.ID, "track.electric", 1); + if (tRailEw != null) { + NBTTagCompound tTagEw = new NBTTagCompound(); + tTagEw.setString("track", "railcraft:track.electric.wye"); + tRailEw.stackTagCompound = tTagEw; - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.Neutronium, 2), - getModItem(NewHorizonsCoreMod.ID, "item.NeutroniumBars", 2), - GT_Utility.getIntegratedCircuit(22)) - .itemOutputs(getModItem(Railcraft.ID, "machine.eta", 1L, 8)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_LuV) - .addTo(sAssemblerRecipes); + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailEl), + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Copper, 4), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(tRailEw) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailEl), + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Gold, 2), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(2, tRailEw)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailEl), + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Electrum, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(4, tRailEw)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(48) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailEl), + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Titanium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(8, tRailEw)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(64) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailEl), + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Platinum, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(16, tRailEw)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailEl), + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.VanadiumGallium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(32, tRailEw)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(256) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailEl), + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Naquadah, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(64, tRailEw)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sAssemblerRecipes); + } + // --- Electric Junction Track --- + ItemStack tRailEJ = getModItem(Railcraft.ID, "track.electric", 1); + if (tRailEJ != null) { + NBTTagCompound tTagREJ = new NBTTagCompound(); + tTagREJ.setString("track", "railcraft:track.electric.junction"); + tRailEJ.stackTagCompound = tTagREJ; - // Water Tank + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailEl), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Copper, 4), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(tRailEJ) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailEl), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Gold, 2), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(2, tRailEJ)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailEl), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Electrum, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(4, tRailEJ)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(48) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailEl), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Titanium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(8, tRailEJ)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(64) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailEl), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Platinum, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(16, tRailEJ)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailEl), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.VanadiumGallium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(32, tRailEJ)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(256) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.copyAmount(2, tRailEl), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Naquadah, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_Utility.copyAmount(64, tRailEJ)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sAssemblerRecipes); + } + // Shunting Wire + for (Materials tMat : solderingMats) { + int tMultiplier = tMat.contains(SubTag.SOLDERING_MATERIAL_GOOD) ? 1 + : tMat.contains(SubTag.SOLDERING_MATERIAL_BAD) ? 4 : 2; + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Copper, 1), + GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Lead, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.RC_ShuntingWire.get(1)) + .fluidInputs(tMat.getMolten(16L * tMultiplier / 2)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.AnnealedCopper, 1), + GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Lead, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.RC_ShuntingWire.get(1)) + .fluidInputs(tMat.getMolten(16L * tMultiplier / 2)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Gold, 1), + GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Lead, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.RC_ShuntingWire.get(4)) + .fluidInputs(tMat.getMolten(16L * tMultiplier / 2)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(24) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Electrum, 1), + GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Gold, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.RC_ShuntingWire.get(8)) + .fluidInputs(tMat.getMolten(16L * tMultiplier / 2)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Titanium, 1), + GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Electrum, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.RC_ShuntingWire.get(16)) + .fluidInputs(tMat.getMolten(16L * tMultiplier / 2)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(48) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Platinum, 1), + GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Titanium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.RC_ShuntingWire.get(32)) + .fluidInputs(tMat.getMolten(16L * tMultiplier / 2)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(64) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.VanadiumGallium, 1), + GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Platinum, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.RC_ShuntingWire.get(64)) + .fluidInputs(tMat.getMolten(16L * tMultiplier / 2)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sAssemblerRecipes); - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Iron, 1), - GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Wood, 2)) - .itemOutputs(getModItem(Railcraft.ID, "machine.alpha", 1L, 14)) - .fluidInputs(Materials.Glue.getFluid(36)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(8) - .addTo(sAssemblerRecipes); + // chunkloader upgrade OC - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.IronMagnetic, 1), - GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Wood, 2)) - .itemOutputs(getModItem(Railcraft.ID, "machine.alpha", 1L, 14)) - .fluidInputs(Materials.Glue.getFluid(36)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(8) - .addTo(sAssemblerRecipes); + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Circuit_Board_Plastic_Advanced.get(1), + GT_OreDictUnificator.get(OrePrefixes.itemCasing, Materials.Aluminium, 2), + getModItem(Railcraft.ID, "machine.alpha", 1L, 0), + getModItem(OpenComputers.ID, "item", 1L, 26), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(getModItem(OpenComputers.ID, "item", 1L, 62)) + .fluidInputs(tMat.getMolten(144L * tMultiplier / 2)) + .noFluidOutputs() + .duration(12 * SECONDS + 10 * TICKS) + .eut(256) + .addTo(sAssemblerRecipes); - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.WroughtIron, 1), - GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Wood, 2)) - .itemOutputs(getModItem(Railcraft.ID, "machine.alpha", 1L, 14)) - .fluidInputs(Materials.Glue.getFluid(36)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(8) - .addTo(sAssemblerRecipes); + } GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.bolt, Materials.Steel, 4), - GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Wood, 4)) - .itemOutputs(getModItem(Railcraft.ID, "machine.alpha", 3L, 14)) - .fluidInputs(Materials.Glue.getFluid(72)) - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(30) - .addTo(sAssemblerRecipes); + .itemInputs( + new ItemStack(Blocks.piston, 1, 0), + ItemList.FR_Casing_Sturdy.get(1), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Lapis, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(getModItem(NewHorizonsCoreMod.ID, "item.EngineCore", 1L, 0)) + .fluidInputs(Materials.SeedOil.getFluid(250)) + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + new ItemStack(Blocks.piston, 1, 0), + ItemList.FR_Casing_Sturdy.get(1), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Lapis, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(getModItem(NewHorizonsCoreMod.ID, "item.EngineCore", 1L, 0)) + .fluidInputs(Materials.Lubricant.getFluid(125)) + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + getModItem(ExtraUtilities.ID, "trashcan", 1L, 0), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Obsidian, 4), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(getModItem(Railcraft.ID, "machine.beta", 1L, 11)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + getModItem(NewHorizonsCoreMod.ID, "item.EngineCore", 1), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.AnyCopper, 10), + GT_Utility.getIntegratedCircuit(10)) + .itemOutputs(getModItem(Railcraft.ID, "machine.beta", 1L, 7)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + getModItem(NewHorizonsCoreMod.ID, "item.EngineCore", 1), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Steel, 10), + GT_Utility.getIntegratedCircuit(10)) + .itemOutputs(getModItem(Railcraft.ID, "machine.beta", 1L, 8)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + getModItem(NewHorizonsCoreMod.ID, "item.EngineCore", 1), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 10), + GT_Utility.getIntegratedCircuit(10)) + .itemOutputs(getModItem(Railcraft.ID, "machine.beta", 1L, 9)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(16) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plateDouble, Materials.Gold, 2), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Diamond, 4), + GT_OreDictUnificator.get(OrePrefixes.gem, Materials.EnderPearl, 1), + GT_OreDictUnificator.get(OrePrefixes.plateDense, Materials.Obsidian, 2), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(getModItem(Railcraft.ID, "machine.alpha", 1, 0)) + .noFluidInputs() + .noFluidOutputs() + .duration(30 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.AnyIron, 2), + GT_Utility.getIntegratedCircuit(20)) + .itemOutputs(getModItem(Railcraft.ID, "machine.beta", 1L, 0)) + .noFluidInputs() + .noFluidOutputs() + .duration(30 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.AnyIron, 2), + new ItemStack(Blocks.glass_pane, 2, 0), + GT_Utility.getIntegratedCircuit(21)) + .itemOutputs(getModItem(Railcraft.ID, "machine.beta", 2L, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(40 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.AnyIron, 2), + getModItem(TinkerConstruct.ID, "GlassPane", 2L, 0), + GT_Utility.getIntegratedCircuit(21)) + .itemOutputs(getModItem(Railcraft.ID, "machine.beta", 2L, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(40 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.Bronze, 2), + new ItemStack(Blocks.iron_bars, 2, 0), + GT_Utility.getIntegratedCircuit(22)) + .itemOutputs(getModItem(Railcraft.ID, "machine.beta", 1L, 2)) + .noFluidInputs() + .noFluidOutputs() + .duration(40 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Steel, 2), + GT_Utility.getIntegratedCircuit(20)) + .itemOutputs(getModItem(Railcraft.ID, "machine.beta", 1L, 13)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(64) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Steel, 2), + new ItemStack(Blocks.glass_pane, 2, 0), + GT_Utility.getIntegratedCircuit(21)) + .itemOutputs(getModItem(Railcraft.ID, "machine.beta", 2L, 14)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(64) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Steel, 2), + getModItem(TinkerConstruct.ID, "GlassPane", 2L, 0), + GT_Utility.getIntegratedCircuit(21)) + .itemOutputs(getModItem(Railcraft.ID, "machine.beta", 2L, 14)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(64) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.Steel, 2), + getModItem(NewHorizonsCoreMod.ID, "item.SteelBars", 2), + GT_Utility.getIntegratedCircuit(22)) + .itemOutputs(getModItem(Railcraft.ID, "machine.beta", 1L, 15)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(64) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 2), + GT_Utility.getIntegratedCircuit(20)) + .itemOutputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 0)) + .noFluidInputs() + .noFluidOutputs() + .duration(30 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 2), + new ItemStack(Blocks.glass_pane, 2, 0), + GT_Utility.getIntegratedCircuit(21)) + .itemOutputs(getModItem(Railcraft.ID, "machine.zeta", 2L, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(40 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 2), + getModItem(TinkerConstruct.ID, "GlassPane", 2L, 0), + GT_Utility.getIntegratedCircuit(21)) + .itemOutputs(getModItem(Railcraft.ID, "machine.zeta", 2L, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(40 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.Plastic, 2), + getModItem(NewHorizonsCoreMod.ID, "item.AluminiumBars", 2), + GT_Utility.getIntegratedCircuit(22)) + .itemOutputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 2)) + .noFluidInputs() + .noFluidOutputs() + .duration(40 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.StainlessSteel, 2), + GT_Utility.getIntegratedCircuit(20)) + .itemOutputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 3)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(256) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.StainlessSteel, 2), + new ItemStack(Blocks.glass_pane, 2, 0), + GT_Utility.getIntegratedCircuit(21)) + .itemOutputs(getModItem(Railcraft.ID, "machine.zeta", 2L, 4)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(256) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.StainlessSteel, 2), + getModItem(TinkerConstruct.ID, "GlassPane", 2L, 0), + GT_Utility.getIntegratedCircuit(21)) + .itemOutputs(getModItem(Railcraft.ID, "machine.zeta", 2L, 4)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(256) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.StainlessSteel, 2), + getModItem(NewHorizonsCoreMod.ID, "item.StainlessSteelBars", 2), + GT_Utility.getIntegratedCircuit(22)) + .itemOutputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 5)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(256) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Titanium, 2), + GT_Utility.getIntegratedCircuit(20)) + .itemOutputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 6)) + .noFluidInputs() + .noFluidOutputs() + .duration(30 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Titanium, 2), + new ItemStack(Blocks.glass_pane, 2, 0), + GT_Utility.getIntegratedCircuit(21)) + .itemOutputs(getModItem(Railcraft.ID, "machine.zeta", 2L, 7)) + .noFluidInputs() + .noFluidOutputs() + .duration(40 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Titanium, 2), + getModItem(TinkerConstruct.ID, "GlassPane", 2L, 0), + GT_Utility.getIntegratedCircuit(21)) + .itemOutputs(getModItem(Railcraft.ID, "machine.zeta", 2L, 7)) + .noFluidInputs() + .noFluidOutputs() + .duration(40 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.Titanium, 2), + getModItem(NewHorizonsCoreMod.ID, "item.TitaniumBars", 2), + GT_Utility.getIntegratedCircuit(22)) + .itemOutputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 8)) + .noFluidInputs() + .noFluidOutputs() + .duration(40 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.TungstenSteel, 2), + GT_Utility.getIntegratedCircuit(20)) + .itemOutputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 9)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.TungstenSteel, 2), + new ItemStack(Blocks.glass_pane, 2, 0), + GT_Utility.getIntegratedCircuit(21)) + .itemOutputs(getModItem(Railcraft.ID, "machine.zeta", 2L, 10)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.TungstenSteel, 2), + getModItem(TinkerConstruct.ID, "GlassPane", 2L, 0), + GT_Utility.getIntegratedCircuit(21)) + .itemOutputs(getModItem(Railcraft.ID, "machine.zeta", 2L, 10)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.TungstenSteel, 2), + getModItem(NewHorizonsCoreMod.ID, "item.TungstenSteelBars", 2), + GT_Utility.getIntegratedCircuit(22)) + .itemOutputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 11)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Palladium, 2), + GT_Utility.getIntegratedCircuit(20)) + .itemOutputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 12)) + .noFluidInputs() + .noFluidOutputs() + .duration(30 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Palladium, 2), + new ItemStack(Blocks.glass_pane, 2, 0), + GT_Utility.getIntegratedCircuit(21)) + .itemOutputs(getModItem(Railcraft.ID, "machine.zeta", 2L, 13)) + .noFluidInputs() + .noFluidOutputs() + .duration(40 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Palladium, 2), + getModItem(TinkerConstruct.ID, "GlassPane", 2L, 0), + GT_Utility.getIntegratedCircuit(21)) + .itemOutputs(getModItem(Railcraft.ID, "machine.zeta", 2L, 13)) + .noFluidInputs() + .noFluidOutputs() + .duration(40 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.NiobiumTitanium, 2), + getModItem(NewHorizonsCoreMod.ID, "item.ChromeBars", 2), + GT_Utility.getIntegratedCircuit(22)) + .itemOutputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 14)) + .noFluidInputs() + .noFluidOutputs() + .duration(40 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iridium, 2), + GT_Utility.getIntegratedCircuit(20)) + .itemOutputs(getModItem(Railcraft.ID, "machine.eta", 1L, 0)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(4096) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iridium, 2), + new ItemStack(Blocks.glass_pane, 2, 0), + GT_Utility.getIntegratedCircuit(21)) + .itemOutputs(getModItem(Railcraft.ID, "machine.eta", 2L, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(4096) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iridium, 2), + getModItem(TinkerConstruct.ID, "GlassPane", 2L, 0), + GT_Utility.getIntegratedCircuit(21)) + .itemOutputs(getModItem(Railcraft.ID, "machine.eta", 2L, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(4096) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.Enderium, 2), + getModItem(NewHorizonsCoreMod.ID, "item.IridiumBars", 2), + GT_Utility.getIntegratedCircuit(22)) + .itemOutputs(getModItem(Railcraft.ID, "machine.eta", 1L, 2)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(4096) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Osmium, 2), + GT_Utility.getIntegratedCircuit(20)) + .itemOutputs(getModItem(Railcraft.ID, "machine.eta", 1L, 3)) + .noFluidInputs() + .noFluidOutputs() + .duration(30 * SECONDS) + .eut(TierEU.RECIPE_IV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Osmium, 2), + new ItemStack(Blocks.glass_pane, 2, 0), + GT_Utility.getIntegratedCircuit(21)) + .itemOutputs(getModItem(Railcraft.ID, "machine.eta", 2L, 4)) + .noFluidInputs() + .noFluidOutputs() + .duration(40 * SECONDS) + .eut(TierEU.RECIPE_IV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Osmium, 2), + getModItem(TinkerConstruct.ID, "GlassPane", 2L, 0), + GT_Utility.getIntegratedCircuit(21)) + .itemOutputs(getModItem(Railcraft.ID, "machine.eta", 2L, 4)) + .noFluidInputs() + .noFluidOutputs() + .duration(40 * SECONDS) + .eut(TierEU.RECIPE_IV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.Naquadah, 2), + getModItem(NewHorizonsCoreMod.ID, "item.OsmiumBars", 2), + GT_Utility.getIntegratedCircuit(22)) + .itemOutputs(getModItem(Railcraft.ID, "machine.eta", 1L, 5)) + .noFluidInputs() + .noFluidOutputs() + .duration(40 * SECONDS) + .eut(TierEU.RECIPE_IV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Neutronium, 2), + GT_Utility.getIntegratedCircuit(20)) + .itemOutputs(getModItem(Railcraft.ID, "machine.eta", 1L, 6)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LuV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Neutronium, 2), + new ItemStack(Blocks.glass_pane, 2, 0), + GT_Utility.getIntegratedCircuit(21)) + .itemOutputs(getModItem(Railcraft.ID, "machine.eta", 2L, 7)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_LuV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Neutronium, 2), + getModItem(TinkerConstruct.ID, "GlassPane", 2L, 0), + GT_Utility.getIntegratedCircuit(21)) + .itemOutputs(getModItem(Railcraft.ID, "machine.eta", 2L, 7)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_LuV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.Neutronium, 2), + getModItem(NewHorizonsCoreMod.ID, "item.NeutroniumBars", 2), + GT_Utility.getIntegratedCircuit(22)) + .itemOutputs(getModItem(Railcraft.ID, "machine.eta", 1L, 8)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_LuV) + .addTo(sAssemblerRecipes); - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.bolt, Materials.Steel, 2), - GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.WoodSealed, 1)) - .itemOutputs(getModItem(Railcraft.ID, "machine.alpha", 3L, 14)) - .fluidInputs(Materials.Plastic.getMolten(36)) - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(30) - .addTo(sAssemblerRecipes); + // Water Tank GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.bolt, Materials.StainlessSteel, 4), - GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.WoodSealed, 4)) - .itemOutputs(getModItem(Railcraft.ID, "machine.alpha", 9L, 14)) - .fluidInputs(Materials.Plastic.getMolten(72)) - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sAssemblerRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Iron, 1), + GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Wood, 2)) + .itemOutputs(getModItem(Railcraft.ID, "machine.alpha", 1L, 14)) + .fluidInputs(Materials.Glue.getFluid(36)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(8) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.IronMagnetic, 1), + GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Wood, 2)) + .itemOutputs(getModItem(Railcraft.ID, "machine.alpha", 1L, 14)) + .fluidInputs(Materials.Glue.getFluid(36)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(8) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.WroughtIron, 1), + GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Wood, 2)) + .itemOutputs(getModItem(Railcraft.ID, "machine.alpha", 1L, 14)) + .fluidInputs(Materials.Glue.getFluid(36)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(8) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.bolt, Materials.Steel, 4), + GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Wood, 4)) + .itemOutputs(getModItem(Railcraft.ID, "machine.alpha", 3L, 14)) + .fluidInputs(Materials.Glue.getFluid(72)) + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(30) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.bolt, Materials.Steel, 2), + GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.WoodSealed, 1)) + .itemOutputs(getModItem(Railcraft.ID, "machine.alpha", 3L, 14)) + .fluidInputs(Materials.Plastic.getMolten(36)) + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(30) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.bolt, Materials.StainlessSteel, 4), + GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.WoodSealed, 4)) + .itemOutputs(getModItem(Railcraft.ID, "machine.alpha", 9L, 14)) + .fluidInputs(Materials.Plastic.getMolten(72)) + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sAssemblerRecipes); // Steam Boilers GT_Values.RA.stdBuilder() - .itemInputs(ItemList.IC2_Item_Casing_Iron.get(6), GT_Utility.getIntegratedCircuit(6)) - .itemOutputs(getModItem(Railcraft.ID, "machine.beta", 1L, 3)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); + .itemInputs(ItemList.IC2_Item_Casing_Iron.get(6), GT_Utility.getIntegratedCircuit(6)) + .itemOutputs(getModItem(Railcraft.ID, "machine.beta", 1L, 3)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.IC2_Item_Casing_Steel.get(6), GT_Utility.getIntegratedCircuit(6)) - .itemOutputs(getModItem(Railcraft.ID, "machine.beta", 1L, 4)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(64) - .addTo(sAssemblerRecipes); + .itemInputs(ItemList.IC2_Item_Casing_Steel.get(6), GT_Utility.getIntegratedCircuit(6)) + .itemOutputs(getModItem(Railcraft.ID, "machine.beta", 1L, 4)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(64) + .addTo(sAssemblerRecipes); } public void withBartWorks() { @@ -7061,15 +6995,15 @@ public class AssemblerRecipes implements Runnable { } GT_Values.RA.stdBuilder() - .itemInputs( - getModItem(BartWorks.ID, "gt.bwMetaGeneratedplate", 6L, 88), - GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Chrome, 1)) - .itemOutputs(ItemList.Casing_Advanced_Rhodium_Palladium.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sAssemblerRecipes); + .itemInputs( + getModItem(BartWorks.ID, "gt.bwMetaGeneratedplate", 6L, 88), + GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Chrome, 1)) + .itemOutputs(ItemList.Casing_Advanced_Rhodium_Palladium.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sAssemblerRecipes); } @@ -7079,41 +7013,41 @@ public class AssemblerRecipes implements Runnable { } GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.compressed, Materials.Bronze, 1), - GT_OreDictUnificator.get(OrePrefixes.compressed, Materials.Aluminium, 1), - GT_OreDictUnificator.get(OrePrefixes.compressed, Materials.Steel, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Ingot_Heavy1.get(1)) - .fluidInputs(Materials.StainlessSteel.getMolten(72)) - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - getModItem(GalacticraftCore.ID, "item.heavyPlating", 1), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.MeteoricIron, 2), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Ingot_Heavy2.get(1)) - .fluidInputs(Materials.TungstenSteel.getMolten(72)) - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - getModItem(GalacticraftMars.ID, "item.null", 1L, 3), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Desh, 4), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Ingot_Heavy3.get(1)) - .fluidInputs(Materials.Platinum.getMolten(72)) - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_IV) - .addTo(sAssemblerRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.compressed, Materials.Bronze, 1), + GT_OreDictUnificator.get(OrePrefixes.compressed, Materials.Aluminium, 1), + GT_OreDictUnificator.get(OrePrefixes.compressed, Materials.Steel, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Ingot_Heavy1.get(1)) + .fluidInputs(Materials.StainlessSteel.getMolten(72)) + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + getModItem(GalacticraftCore.ID, "item.heavyPlating", 1), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.MeteoricIron, 2), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Ingot_Heavy2.get(1)) + .fluidInputs(Materials.TungstenSteel.getMolten(72)) + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + getModItem(GalacticraftMars.ID, "item.null", 1L, 3), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Desh, 4), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Ingot_Heavy3.get(1)) + .fluidInputs(Materials.Platinum.getMolten(72)) + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_IV) + .addTo(sAssemblerRecipes); } public void withGalaxySpace() { @@ -7122,149 +7056,137 @@ public class AssemblerRecipes implements Runnable { } GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Pentacadmiummagnesiumhexaoxid, 3), - GT_OreDictUnificator.get(OrePrefixes.pipeTiny, Materials.StainlessSteel, 2), - ItemList.Electric_Pump_MV.get(1), - GT_Utility.getIntegratedCircuit(9)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorMV, 3)) - .fluidInputs(new FluidStack(FluidRegistry.getFluid("liquid helium"), 2000)) - .noFluidOutputs() - .duration(16 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get( - OrePrefixes.wireGt01, - Materials.Titaniumonabariumdecacoppereikosaoxid, - 6), - GT_OreDictUnificator.get(OrePrefixes.pipeTiny, Materials.Titanium, 4), - ItemList.Electric_Pump_HV.get(1), - GT_Utility.getIntegratedCircuit(9)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorHV, 6)) - .fluidInputs(new FluidStack(FluidRegistry.getFluid("liquid helium"), 4000)) - .noFluidOutputs() - .duration(16 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Uraniumtriplatinid, 9), - GT_OreDictUnificator.get(OrePrefixes.pipeTiny, Materials.TungstenSteel, 6), - ItemList.Electric_Pump_EV.get(1), - GT_Utility.getIntegratedCircuit(9)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorEV, 9)) - .fluidInputs(new FluidStack(FluidRegistry.getFluid("liquid helium"), 6000)) - .noFluidOutputs() - .duration(16 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Vanadiumtriindinid, 12), - GT_OreDictUnificator.get(OrePrefixes.pipeTiny, Materials.NiobiumTitanium, 8), - ItemList.Electric_Pump_IV.get(1), - GT_Utility.getIntegratedCircuit(9)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorIV, 12)) - .fluidInputs(new FluidStack(FluidRegistry.getFluid("liquid helium"), 8000)) - .noFluidOutputs() - .duration(32 * SECONDS) - .eut(TierEU.RECIPE_IV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get( - OrePrefixes.wireGt01, - Materials.Tetraindiumditindibariumtitaniumheptacoppertetrakaidekaoxid, - 15), - GT_OreDictUnificator.get(OrePrefixes.pipeTiny, Materials.Enderium, 10), - ItemList.Electric_Pump_LuV.get(1), - GT_Utility.getIntegratedCircuit(9)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorLuV, 15)) - .fluidInputs(new FluidStack(FluidRegistry.getFluid("liquid helium"), 12000)) - .noFluidOutputs() - .duration(32 * SECONDS) - .eut(TierEU.RECIPE_LuV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get( - OrePrefixes.wireGt01, - Materials.Tetranaquadahdiindiumhexaplatiumosminid, - 18), - GT_OreDictUnificator.get(OrePrefixes.pipeTiny, Materials.Naquadah, 12), - ItemList.Electric_Pump_ZPM.get(1), - GT_Utility.getIntegratedCircuit(9)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorZPM, 18)) - .fluidInputs(new FluidStack(FluidRegistry.getFluid("liquid helium"), 16000)) - .noFluidOutputs() - .duration(1 * MINUTES + 4 * SECONDS) - .eut(TierEU.RECIPE_ZPM) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get( - OrePrefixes.wireGt01, - Materials.Longasssuperconductornameforuvwire, - 21), - GT_OreDictUnificator.get(OrePrefixes.pipeTiny, Materials.Neutronium, 14), - ItemList.Electric_Pump_UV.get(1), - GT_Utility.getIntegratedCircuit(9)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorUV, 21)) - .fluidInputs(new FluidStack(FluidRegistry.getFluid("liquid helium"), 20000)) - .noFluidOutputs() - .duration(1 * MINUTES + 4 * SECONDS) - .eut(TierEU.RECIPE_UV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get( - OrePrefixes.wireGt01, - Materials.Longasssuperconductornameforuhvwire, - 24), - GT_OreDictUnificator.get(OrePrefixes.pipeTiny, Materials.Bedrockium, 16), - ItemList.Electric_Pump_UHV.get(1), - GT_Utility.getIntegratedCircuit(9)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorUHV, 24)) - .fluidInputs(new FluidStack(FluidRegistry.getFluid("liquid helium"), 24000)) - .noFluidOutputs() - .duration(2 * MINUTES + 8 * SECONDS) - .eut(TierEU.RECIPE_UHV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorUEVBase, 27), - GT_OreDictUnificator.get(OrePrefixes.pipeTiny, Materials.Infinity, 18), - ItemList.Electric_Pump_UEV.get(1), - GT_Utility.getIntegratedCircuit(9)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorUEV, 27)) - .fluidInputs(new FluidStack(FluidRegistry.getFluid("liquid helium"), 28000)) - .noFluidOutputs() - .duration(2 * MINUTES + 40 * SECONDS) - .eut(TierEU.RECIPE_UEV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorUMVBase, 33), - GT_OreDictUnificator.get(OrePrefixes.pipeTiny, Materials.SpaceTime, 22), - ItemList.Electric_Pump_UMV.get(1), - GT_Utility.getIntegratedCircuit(9)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorUMV, 33)) - .fluidInputs(new FluidStack(FluidRegistry.getFluid("liquid helium"), 36000)) - .noFluidOutputs() - .duration(2 * MINUTES + 40 * SECONDS) - .eut(TierEU.RECIPE_UMV) - .addTo(sAssemblerRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Pentacadmiummagnesiumhexaoxid, 3), + GT_OreDictUnificator.get(OrePrefixes.pipeTiny, Materials.StainlessSteel, 2), + ItemList.Electric_Pump_MV.get(1), + GT_Utility.getIntegratedCircuit(9)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorMV, 3)) + .fluidInputs(new FluidStack(FluidRegistry.getFluid("liquid helium"), 2000)) + .noFluidOutputs() + .duration(16 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Titaniumonabariumdecacoppereikosaoxid, 6), + GT_OreDictUnificator.get(OrePrefixes.pipeTiny, Materials.Titanium, 4), + ItemList.Electric_Pump_HV.get(1), + GT_Utility.getIntegratedCircuit(9)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorHV, 6)) + .fluidInputs(new FluidStack(FluidRegistry.getFluid("liquid helium"), 4000)) + .noFluidOutputs() + .duration(16 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Uraniumtriplatinid, 9), + GT_OreDictUnificator.get(OrePrefixes.pipeTiny, Materials.TungstenSteel, 6), + ItemList.Electric_Pump_EV.get(1), + GT_Utility.getIntegratedCircuit(9)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorEV, 9)) + .fluidInputs(new FluidStack(FluidRegistry.getFluid("liquid helium"), 6000)) + .noFluidOutputs() + .duration(16 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Vanadiumtriindinid, 12), + GT_OreDictUnificator.get(OrePrefixes.pipeTiny, Materials.NiobiumTitanium, 8), + ItemList.Electric_Pump_IV.get(1), + GT_Utility.getIntegratedCircuit(9)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorIV, 12)) + .fluidInputs(new FluidStack(FluidRegistry.getFluid("liquid helium"), 8000)) + .noFluidOutputs() + .duration(32 * SECONDS) + .eut(TierEU.RECIPE_IV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get( + OrePrefixes.wireGt01, + Materials.Tetraindiumditindibariumtitaniumheptacoppertetrakaidekaoxid, + 15), + GT_OreDictUnificator.get(OrePrefixes.pipeTiny, Materials.Enderium, 10), + ItemList.Electric_Pump_LuV.get(1), + GT_Utility.getIntegratedCircuit(9)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorLuV, 15)) + .fluidInputs(new FluidStack(FluidRegistry.getFluid("liquid helium"), 12000)) + .noFluidOutputs() + .duration(32 * SECONDS) + .eut(TierEU.RECIPE_LuV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Tetranaquadahdiindiumhexaplatiumosminid, 18), + GT_OreDictUnificator.get(OrePrefixes.pipeTiny, Materials.Naquadah, 12), + ItemList.Electric_Pump_ZPM.get(1), + GT_Utility.getIntegratedCircuit(9)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorZPM, 18)) + .fluidInputs(new FluidStack(FluidRegistry.getFluid("liquid helium"), 16000)) + .noFluidOutputs() + .duration(1 * MINUTES + 4 * SECONDS) + .eut(TierEU.RECIPE_ZPM) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Longasssuperconductornameforuvwire, 21), + GT_OreDictUnificator.get(OrePrefixes.pipeTiny, Materials.Neutronium, 14), + ItemList.Electric_Pump_UV.get(1), + GT_Utility.getIntegratedCircuit(9)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorUV, 21)) + .fluidInputs(new FluidStack(FluidRegistry.getFluid("liquid helium"), 20000)) + .noFluidOutputs() + .duration(1 * MINUTES + 4 * SECONDS) + .eut(TierEU.RECIPE_UV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.Longasssuperconductornameforuhvwire, 24), + GT_OreDictUnificator.get(OrePrefixes.pipeTiny, Materials.Bedrockium, 16), + ItemList.Electric_Pump_UHV.get(1), + GT_Utility.getIntegratedCircuit(9)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorUHV, 24)) + .fluidInputs(new FluidStack(FluidRegistry.getFluid("liquid helium"), 24000)) + .noFluidOutputs() + .duration(2 * MINUTES + 8 * SECONDS) + .eut(TierEU.RECIPE_UHV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorUEVBase, 27), + GT_OreDictUnificator.get(OrePrefixes.pipeTiny, Materials.Infinity, 18), + ItemList.Electric_Pump_UEV.get(1), + GT_Utility.getIntegratedCircuit(9)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorUEV, 27)) + .fluidInputs(new FluidStack(FluidRegistry.getFluid("liquid helium"), 28000)) + .noFluidOutputs() + .duration(2 * MINUTES + 40 * SECONDS) + .eut(TierEU.RECIPE_UEV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorUMVBase, 33), + GT_OreDictUnificator.get(OrePrefixes.pipeTiny, Materials.SpaceTime, 22), + ItemList.Electric_Pump_UMV.get(1), + GT_Utility.getIntegratedCircuit(9)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorUMV, 33)) + .fluidInputs(new FluidStack(FluidRegistry.getFluid("liquid helium"), 36000)) + .noFluidOutputs() + .duration(2 * MINUTES + 40 * SECONDS) + .eut(TierEU.RECIPE_UMV) + .addTo(sAssemblerRecipes); } public void withGTNHLanthAndGTPP() { @@ -7273,22 +7195,22 @@ public class AssemblerRecipes implements Runnable { } GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Electric_Pump_EV.get(4), - ItemList.Field_Generator_EV.get(4), - getModItem(GTPlusPlus.ID, "itemPlateInconel690", 4), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Titanium, 16), - GT_OreDictUnificator.get(OrePrefixes.ring, Materials.BorosilicateGlass, 16), - GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Aluminium, 2), - GT_OreDictUnificator.get(OrePrefixes.pipeTiny, Materials.Polytetrafluoroethylene, 4), - GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Data, 4), - ItemList.Shape_Extruder_Wire.get(16)) - .itemOutputs(ItemList.Spinneret.get(1)) - .fluidInputs(Materials.SolderingAlloy.getMolten(144)) - .noFluidOutputs() - .duration(2 * MINUTES) - .eut(TierEU.RECIPE_EV) - .addTo(sAssemblerRecipes); + .itemInputs( + ItemList.Electric_Pump_EV.get(4), + ItemList.Field_Generator_EV.get(4), + getModItem(GTPlusPlus.ID, "itemPlateInconel690", 4), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Titanium, 16), + GT_OreDictUnificator.get(OrePrefixes.ring, Materials.BorosilicateGlass, 16), + GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Aluminium, 2), + GT_OreDictUnificator.get(OrePrefixes.pipeTiny, Materials.Polytetrafluoroethylene, 4), + GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Data, 4), + ItemList.Shape_Extruder_Wire.get(16)) + .itemOutputs(ItemList.Spinneret.get(1)) + .fluidInputs(Materials.SolderingAlloy.getMolten(144)) + .noFluidOutputs() + .duration(2 * MINUTES) + .eut(TierEU.RECIPE_EV) + .addTo(sAssemblerRecipes); } public void withIC2NuclearControl() { @@ -7297,157 +7219,153 @@ public class AssemblerRecipes implements Runnable { } GT_Values.RA.stdBuilder() - .itemInputs( - getModItem(IC2NuclearControl.ID, "ItemVanillaMachineCard", 1L, 0), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_ModHandler.getIC2Item("electronicCircuit", 2)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - getModItem(IC2NuclearControl.ID, "ItemInventoryScannerCard", 1L, 0), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_ModHandler.getIC2Item("electronicCircuit", 2)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - getModItem(IC2NuclearControl.ID, "ItemEnergySensorLocationCard", 1L, 0), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_ModHandler.getIC2Item("electronicCircuit", 2)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - getModItem(IC2NuclearControl.ID, "RFSensorCard", 1L, 0), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_ModHandler.getIC2Item("electronicCircuit", 2)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - getModItem(IC2NuclearControl.ID, "ItemMultipleSensorLocationCard", 1L, 0), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_ModHandler.getIC2Item("electronicCircuit", 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); + .itemInputs( + getModItem(IC2NuclearControl.ID, "ItemVanillaMachineCard", 1L, 0), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_ModHandler.getIC2Item("electronicCircuit", 2)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + getModItem(IC2NuclearControl.ID, "ItemInventoryScannerCard", 1L, 0), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_ModHandler.getIC2Item("electronicCircuit", 2)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + getModItem(IC2NuclearControl.ID, "ItemEnergySensorLocationCard", 1L, 0), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_ModHandler.getIC2Item("electronicCircuit", 2)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(IC2NuclearControl.ID, "RFSensorCard", 1L, 0), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_ModHandler.getIC2Item("electronicCircuit", 2)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + getModItem(IC2NuclearControl.ID, "ItemMultipleSensorLocationCard", 1L, 0), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_ModHandler.getIC2Item("electronicCircuit", 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); // counter GT_Values.RA.stdBuilder() - .itemInputs( - getModItem(IC2NuclearControl.ID, "ItemMultipleSensorLocationCard", 1L, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_ModHandler.getIC2Item("electronicCircuit", 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); + .itemInputs( + getModItem(IC2NuclearControl.ID, "ItemMultipleSensorLocationCard", 1L, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_ModHandler.getIC2Item("electronicCircuit", 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); // liquid GT_Values.RA.stdBuilder() - .itemInputs( - getModItem(IC2NuclearControl.ID, "ItemMultipleSensorLocationCard", 1L, 2), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_ModHandler.getIC2Item("electronicCircuit", 2)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); + .itemInputs( + getModItem(IC2NuclearControl.ID, "ItemMultipleSensorLocationCard", 1L, 2), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_ModHandler.getIC2Item("electronicCircuit", 2)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); // generator GT_Values.RA.stdBuilder() - .itemInputs( - getModItem(IC2NuclearControl.ID, "ItemLiquidArrayLocationCard", 1L, 0), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_ModHandler.getIC2Item("electronicCircuit", 2)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); + .itemInputs( + getModItem(IC2NuclearControl.ID, "ItemLiquidArrayLocationCard", 1L, 0), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_ModHandler.getIC2Item("electronicCircuit", 2)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); // 2-6 liquid GT_Values.RA.stdBuilder() - .itemInputs( - getModItem(IC2NuclearControl.ID, "ItemEnergyArrayLocationCard", 1L, 0), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_ModHandler.getIC2Item("electronicCircuit", 2)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); + .itemInputs( + getModItem(IC2NuclearControl.ID, "ItemEnergyArrayLocationCard", 1L, 0), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_ModHandler.getIC2Item("electronicCircuit", 2)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); // 2-6 energy GT_Values.RA.stdBuilder() - .itemInputs( - getModItem(IC2NuclearControl.ID, "ItemSensorLocationCard", 1L, 0), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.circuit.get(Materials.Good), 2)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); + .itemInputs( + getModItem(IC2NuclearControl.ID, "ItemSensorLocationCard", 1L, 0), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.circuit.get(Materials.Good), 2)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); // non-fluid nuke GT_Values.RA.stdBuilder() - .itemInputs( - getModItem(IC2NuclearControl.ID, "Item55ReactorCard", 1L, 0), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.circuit.get(Materials.Good), 2)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - getModItem(IC2NuclearControl.ID, "CardAppeng", 1L, 0), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_ModHandler.getIC2Item("electronicCircuit", 2)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.NC_SensorCard.get(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_ModHandler.getIC2Item("electronicCircuit", 3)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAssemblerRecipes); + .itemInputs( + getModItem(IC2NuclearControl.ID, "Item55ReactorCard", 1L, 0), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.circuit.get(Materials.Good), 2)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(IC2NuclearControl.ID, "CardAppeng", 1L, 0), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_ModHandler.getIC2Item("electronicCircuit", 2)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.NC_SensorCard.get(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_ModHandler.getIC2Item("electronicCircuit", 3)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAssemblerRecipes); } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/AssemblyLineRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/AssemblyLineRecipes.java index c6d8b32a04..ece7692865 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/AssemblyLineRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/AssemblyLineRecipes.java @@ -22,7 +22,7 @@ public class AssemblyLineRecipes implements Runnable { public AssemblyLineRecipes() { solderIndalloy = GTPlusPlus.isModLoaded() ? FluidRegistry.getFluid("molten.indalloy140") - : FluidRegistry.getFluid("molten.solderingalloy"); + : FluidRegistry.getFluid("molten.solderingalloy"); LuVMat = BartWorks.isModLoaded() ? Materials.get("Ruridit") : Materials.Osmiridium; } @@ -45,838 +45,830 @@ public class AssemblyLineRecipes implements Runnable { { // LuV motor GT_Values.RA.stdBuilder() - .metadata(RESEARCH_ITEM, ItemList.Electric_Motor_IV.get(1)) - .metadata(RESEARCH_TIME, 2 * HOURS) - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.SamariumMagnetic, 1), - GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.HSSS, 2), - GT_OreDictUnificator.get(OrePrefixes.wireFine, LuVMat, 64), - GT_OreDictUnificator.get(OrePrefixes.wireFine, LuVMat, 64), - GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.YttriumBariumCuprate, 2)) - .fluidInputs(new FluidStack(solderIndalloy, 144), Materials.Lubricant.getFluid(250)) - .noFluidOutputs() - .itemOutputs(ItemList.Electric_Motor_LuV.get(1)) - .eut(TierEU.RECIPE_IV) - .duration(600) - .addTo(AssemblyLine); + .metadata(RESEARCH_ITEM, ItemList.Electric_Motor_IV.get(1)) + .metadata(RESEARCH_TIME, 2 * HOURS) + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.SamariumMagnetic, 1), + GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.HSSS, 2), + GT_OreDictUnificator.get(OrePrefixes.wireFine, LuVMat, 64), + GT_OreDictUnificator.get(OrePrefixes.wireFine, LuVMat, 64), + GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.YttriumBariumCuprate, 2)) + .fluidInputs(new FluidStack(solderIndalloy, 144), Materials.Lubricant.getFluid(250)) + .noFluidOutputs() + .itemOutputs(ItemList.Electric_Motor_LuV.get(1)) + .eut(TierEU.RECIPE_IV) + .duration(600) + .addTo(AssemblyLine); // ZPM motor GT_Values.RA.stdBuilder() - .metadata(RESEARCH_ITEM, ItemList.Electric_Motor_LuV.get(1)) - .metadata(RESEARCH_TIME, 2 * HOURS) - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.SamariumMagnetic, 2), - GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.NaquadahAlloy, 4), - GT_OreDictUnificator.get(OrePrefixes.ring, Materials.NaquadahAlloy, 4), - GT_OreDictUnificator.get(OrePrefixes.round, Materials.NaquadahAlloy, 16), - GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Europium, 64), - GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Europium, 64), - GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Europium, 64), - GT_OreDictUnificator.get(OrePrefixes.cableGt04, Materials.VanadiumGallium, 2)) - .fluidInputs(new FluidStack(solderIndalloy, 288), Materials.Lubricant.getFluid(750)) - .noFluidOutputs() - .itemOutputs(ItemList.Electric_Motor_ZPM.get(1)) - .eut(TierEU.RECIPE_LuV) - .duration(30 * SECONDS) - .addTo(AssemblyLine); + .metadata(RESEARCH_ITEM, ItemList.Electric_Motor_LuV.get(1)) + .metadata(RESEARCH_TIME, 2 * HOURS) + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.SamariumMagnetic, 2), + GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.NaquadahAlloy, 4), + GT_OreDictUnificator.get(OrePrefixes.ring, Materials.NaquadahAlloy, 4), + GT_OreDictUnificator.get(OrePrefixes.round, Materials.NaquadahAlloy, 16), + GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Europium, 64), + GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Europium, 64), + GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Europium, 64), + GT_OreDictUnificator.get(OrePrefixes.cableGt04, Materials.VanadiumGallium, 2)) + .fluidInputs(new FluidStack(solderIndalloy, 288), Materials.Lubricant.getFluid(750)) + .noFluidOutputs() + .itemOutputs(ItemList.Electric_Motor_ZPM.get(1)) + .eut(TierEU.RECIPE_LuV) + .duration(30 * SECONDS) + .addTo(AssemblyLine); // UV motor GT_Values.RA.stdBuilder() - .metadata(RESEARCH_ITEM, ItemList.Electric_Motor_ZPM.get(1)) - .metadata(RESEARCH_TIME, 4 * HOURS) - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.SamariumMagnetic, 2), - GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Neutronium, 4), - GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Neutronium, 4), - GT_OreDictUnificator.get(OrePrefixes.round, Materials.Neutronium, 16), - GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Americium, 64), - GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Americium, 64), - GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Americium, 64), - GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Americium, 64), - GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Americium, 64), - GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Americium, 64), - GT_OreDictUnificator.get(OrePrefixes.cableGt04, Materials.NaquadahAlloy, 2)) - .fluidInputs( - Materials.Naquadria.getMolten(1296), - new FluidStack(solderIndalloy, 1296), - Materials.Lubricant.getFluid(2000)) - .noFluidOutputs() - .itemOutputs(ItemList.Electric_Motor_UV.get(1)) - .eut(TierEU.RECIPE_ZPM) - .duration(30 * SECONDS) - .addTo(AssemblyLine); + .metadata(RESEARCH_ITEM, ItemList.Electric_Motor_ZPM.get(1)) + .metadata(RESEARCH_TIME, 4 * HOURS) + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.SamariumMagnetic, 2), + GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Neutronium, 4), + GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Neutronium, 4), + GT_OreDictUnificator.get(OrePrefixes.round, Materials.Neutronium, 16), + GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Americium, 64), + GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Americium, 64), + GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Americium, 64), + GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Americium, 64), + GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Americium, 64), + GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Americium, 64), + GT_OreDictUnificator.get(OrePrefixes.cableGt04, Materials.NaquadahAlloy, 2)) + .fluidInputs( + Materials.Naquadria.getMolten(1296), + new FluidStack(solderIndalloy, 1296), + Materials.Lubricant.getFluid(2000)) + .noFluidOutputs() + .itemOutputs(ItemList.Electric_Motor_UV.get(1)) + .eut(TierEU.RECIPE_ZPM) + .duration(30 * SECONDS) + .addTo(AssemblyLine); } // Pumps { // LuV Pump GT_Values.RA.stdBuilder() - .metadata(RESEARCH_ITEM, ItemList.Electric_Pump_IV.get(1)) - .metadata(RESEARCH_TIME, 2 * HOURS) - .itemInputs( - ItemList.Electric_Motor_LuV.get(1), - GT_OreDictUnificator.get(OrePrefixes.pipeSmall, Materials.NiobiumTitanium, 2), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.HSSS, 2), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.HSSS, 8), - new Object[] { OrePrefixes.ring.get(Materials.AnySyntheticRubber), 4 }, - GT_OreDictUnificator.get(OrePrefixes.rotor, Materials.HSSS, 2), - GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.YttriumBariumCuprate, 2)) - .fluidInputs(new FluidStack(solderIndalloy, 144), Materials.Lubricant.getFluid(250)) - .noFluidOutputs() - .itemOutputs(ItemList.Electric_Pump_LuV.get(1)) - .eut(TierEU.RECIPE_IV) - .duration(600) - .addTo(AssemblyLine); + .metadata(RESEARCH_ITEM, ItemList.Electric_Pump_IV.get(1)) + .metadata(RESEARCH_TIME, 2 * HOURS) + .itemInputs( + ItemList.Electric_Motor_LuV.get(1), + GT_OreDictUnificator.get(OrePrefixes.pipeSmall, Materials.NiobiumTitanium, 2), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.HSSS, 2), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.HSSS, 8), + new Object[] { OrePrefixes.ring.get(Materials.AnySyntheticRubber), 4 }, + GT_OreDictUnificator.get(OrePrefixes.rotor, Materials.HSSS, 2), + GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.YttriumBariumCuprate, 2)) + .fluidInputs(new FluidStack(solderIndalloy, 144), Materials.Lubricant.getFluid(250)) + .noFluidOutputs() + .itemOutputs(ItemList.Electric_Pump_LuV.get(1)) + .eut(TierEU.RECIPE_IV) + .duration(600) + .addTo(AssemblyLine); // ZPM Pump GT_Values.RA.stdBuilder() - .metadata(RESEARCH_ITEM, ItemList.Electric_Pump_LuV.get(1)) - .metadata(RESEARCH_TIME, 2 * HOURS) - .itemInputs( - ItemList.Electric_Motor_ZPM.get(1), - GT_OreDictUnificator.get(OrePrefixes.pipeMedium, Materials.Enderium, 2), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.NaquadahAlloy, 2), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.NaquadahAlloy, 8), - new Object[] { OrePrefixes.ring.get(Materials.AnySyntheticRubber), 8 }, - GT_OreDictUnificator.get(OrePrefixes.rotor, Materials.NaquadahAlloy, 2), - GT_OreDictUnificator.get(OrePrefixes.cableGt04, Materials.VanadiumGallium, 2)) - .fluidInputs(new FluidStack(solderIndalloy, 288), Materials.Lubricant.getFluid(750)) - .noFluidOutputs() - .itemOutputs(ItemList.Electric_Pump_ZPM.get(1)) - .eut(TierEU.RECIPE_LuV) - .duration(30 * SECONDS) - .addTo(AssemblyLine); + .metadata(RESEARCH_ITEM, ItemList.Electric_Pump_LuV.get(1)) + .metadata(RESEARCH_TIME, 2 * HOURS) + .itemInputs( + ItemList.Electric_Motor_ZPM.get(1), + GT_OreDictUnificator.get(OrePrefixes.pipeMedium, Materials.Enderium, 2), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.NaquadahAlloy, 2), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.NaquadahAlloy, 8), + new Object[] { OrePrefixes.ring.get(Materials.AnySyntheticRubber), 8 }, + GT_OreDictUnificator.get(OrePrefixes.rotor, Materials.NaquadahAlloy, 2), + GT_OreDictUnificator.get(OrePrefixes.cableGt04, Materials.VanadiumGallium, 2)) + .fluidInputs(new FluidStack(solderIndalloy, 288), Materials.Lubricant.getFluid(750)) + .noFluidOutputs() + .itemOutputs(ItemList.Electric_Pump_ZPM.get(1)) + .eut(TierEU.RECIPE_LuV) + .duration(30 * SECONDS) + .addTo(AssemblyLine); // UV Pump GT_Values.RA.stdBuilder() - .metadata(RESEARCH_ITEM, ItemList.Electric_Pump_ZPM.get(1)) - .metadata(RESEARCH_TIME, 4 * HOURS) - .itemInputs( - ItemList.Electric_Motor_UV.get(1), - GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.Naquadah, 2), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Neutronium, 2), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Neutronium, 8), - new Object[] { OrePrefixes.ring.get(Materials.AnySyntheticRubber), 16 }, - GT_OreDictUnificator.get(OrePrefixes.rotor, Materials.Neutronium, 2), - GT_OreDictUnificator.get(OrePrefixes.cableGt04, Materials.NaquadahAlloy, 2)) - .itemOutputs(ItemList.Electric_Pump_UV.get(1)) - .fluidInputs( - Materials.Naquadria.getMolten(1296), - new FluidStack(solderIndalloy, 1296), - Materials.Lubricant.getFluid(2000)) - .noFluidOutputs() - .duration(30 * SECONDS) - .eut((int) TierEU.RECIPE_ZPM) - .addTo(AssemblyLine); + .metadata(RESEARCH_ITEM, ItemList.Electric_Pump_ZPM.get(1)) + .metadata(RESEARCH_TIME, 4 * HOURS) + .itemInputs( + ItemList.Electric_Motor_UV.get(1), + GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.Naquadah, 2), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Neutronium, 2), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Neutronium, 8), + new Object[] { OrePrefixes.ring.get(Materials.AnySyntheticRubber), 16 }, + GT_OreDictUnificator.get(OrePrefixes.rotor, Materials.Neutronium, 2), + GT_OreDictUnificator.get(OrePrefixes.cableGt04, Materials.NaquadahAlloy, 2)) + .itemOutputs(ItemList.Electric_Pump_UV.get(1)) + .fluidInputs( + Materials.Naquadria.getMolten(1296), + new FluidStack(solderIndalloy, 1296), + Materials.Lubricant.getFluid(2000)) + .noFluidOutputs() + .duration(30 * SECONDS) + .eut((int) TierEU.RECIPE_ZPM) + .addTo(AssemblyLine); } // Conveyors { // LuV Conveyor GT_Values.RA.stdBuilder() - .metadata(RESEARCH_ITEM, ItemList.Conveyor_Module_IV.get(1)) - .metadata(RESEARCH_TIME, 2 * HOURS) - .itemInputs( - ItemList.Electric_Motor_LuV.get(2), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.HSSS, 2), - GT_OreDictUnificator.get(OrePrefixes.ring, Materials.HSSS, 4), - GT_OreDictUnificator.get(OrePrefixes.round, Materials.HSSS, 32), - GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.YttriumBariumCuprate, 2), - new Object[] { OrePrefixes.plate.get(Materials.AnySyntheticRubber), 10 }) - .itemOutputs(ItemList.Conveyor_Module_LuV.get(1)) - .fluidInputs(new FluidStack(solderIndalloy, 144), Materials.Lubricant.getFluid(250)) - .noFluidOutputs() - .duration(30 * SECONDS) - .eut((int) TierEU.RECIPE_IV) - .addTo(AssemblyLine); + .metadata(RESEARCH_ITEM, ItemList.Conveyor_Module_IV.get(1)) + .metadata(RESEARCH_TIME, 2 * HOURS) + .itemInputs( + ItemList.Electric_Motor_LuV.get(2), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.HSSS, 2), + GT_OreDictUnificator.get(OrePrefixes.ring, Materials.HSSS, 4), + GT_OreDictUnificator.get(OrePrefixes.round, Materials.HSSS, 32), + GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.YttriumBariumCuprate, 2), + new Object[] { OrePrefixes.plate.get(Materials.AnySyntheticRubber), 10 }) + .itemOutputs(ItemList.Conveyor_Module_LuV.get(1)) + .fluidInputs(new FluidStack(solderIndalloy, 144), Materials.Lubricant.getFluid(250)) + .noFluidOutputs() + .duration(30 * SECONDS) + .eut((int) TierEU.RECIPE_IV) + .addTo(AssemblyLine); // ZPM Conveyor GT_Values.RA.stdBuilder() - .metadata(RESEARCH_ITEM, ItemList.Conveyor_Module_LuV.get(1)) - .metadata(RESEARCH_TIME, 2 * HOURS) - .itemInputs( - ItemList.Electric_Motor_ZPM.get(2), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.NaquadahAlloy, 2), - GT_OreDictUnificator.get(OrePrefixes.ring, Materials.NaquadahAlloy, 4), - GT_OreDictUnificator.get(OrePrefixes.round, Materials.NaquadahAlloy, 32), - GT_OreDictUnificator.get(OrePrefixes.cableGt04, Materials.VanadiumGallium, 2), - new Object[] { OrePrefixes.plate.get(Materials.AnySyntheticRubber), 20 }) - .itemOutputs(ItemList.Conveyor_Module_ZPM.get(1)) - .fluidInputs(new FluidStack(solderIndalloy, 288), Materials.Lubricant.getFluid(750)) - .noFluidOutputs() - .duration(30 * SECONDS) - .eut((int) TierEU.RECIPE_LuV) - .addTo(AssemblyLine); + .metadata(RESEARCH_ITEM, ItemList.Conveyor_Module_LuV.get(1)) + .metadata(RESEARCH_TIME, 2 * HOURS) + .itemInputs( + ItemList.Electric_Motor_ZPM.get(2), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.NaquadahAlloy, 2), + GT_OreDictUnificator.get(OrePrefixes.ring, Materials.NaquadahAlloy, 4), + GT_OreDictUnificator.get(OrePrefixes.round, Materials.NaquadahAlloy, 32), + GT_OreDictUnificator.get(OrePrefixes.cableGt04, Materials.VanadiumGallium, 2), + new Object[] { OrePrefixes.plate.get(Materials.AnySyntheticRubber), 20 }) + .itemOutputs(ItemList.Conveyor_Module_ZPM.get(1)) + .fluidInputs(new FluidStack(solderIndalloy, 288), Materials.Lubricant.getFluid(750)) + .noFluidOutputs() + .duration(30 * SECONDS) + .eut((int) TierEU.RECIPE_LuV) + .addTo(AssemblyLine); // UV Conveyor GT_Values.RA.stdBuilder() - .metadata(RESEARCH_ITEM, ItemList.Conveyor_Module_ZPM.get(1)) - .metadata(RESEARCH_TIME, 4 * HOURS) - .itemInputs( - ItemList.Electric_Motor_UV.get(2), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Neutronium, 2), - GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Neutronium, 4), - GT_OreDictUnificator.get(OrePrefixes.round, Materials.Neutronium, 32), - GT_OreDictUnificator.get(OrePrefixes.cableGt04, Materials.NaquadahAlloy, 2), - new Object[] { OrePrefixes.plate.get(Materials.AnySyntheticRubber), 40 }) - .itemOutputs(ItemList.Conveyor_Module_UV.get(1)) - .fluidInputs( - Materials.Naquadria.getMolten(1296), - new FluidStack(solderIndalloy, 1296), - Materials.Lubricant.getFluid(2000)) - .noFluidOutputs() - .duration(30 * SECONDS) - .eut((int) TierEU.RECIPE_ZPM) - .addTo(AssemblyLine); + .metadata(RESEARCH_ITEM, ItemList.Conveyor_Module_ZPM.get(1)) + .metadata(RESEARCH_TIME, 4 * HOURS) + .itemInputs( + ItemList.Electric_Motor_UV.get(2), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Neutronium, 2), + GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Neutronium, 4), + GT_OreDictUnificator.get(OrePrefixes.round, Materials.Neutronium, 32), + GT_OreDictUnificator.get(OrePrefixes.cableGt04, Materials.NaquadahAlloy, 2), + new Object[] { OrePrefixes.plate.get(Materials.AnySyntheticRubber), 40 }) + .itemOutputs(ItemList.Conveyor_Module_UV.get(1)) + .fluidInputs( + Materials.Naquadria.getMolten(1296), + new FluidStack(solderIndalloy, 1296), + Materials.Lubricant.getFluid(2000)) + .noFluidOutputs() + .duration(30 * SECONDS) + .eut((int) TierEU.RECIPE_ZPM) + .addTo(AssemblyLine); } // Pistons { // LuV Piston GT_Values.RA.stdBuilder() - .metadata(RESEARCH_ITEM, ItemList.Electric_Piston_IV.get(1)) - .metadata(RESEARCH_TIME, 2 * HOURS) - .itemInputs( - ItemList.Electric_Motor_LuV.get(1), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.HSSS, 6), - GT_OreDictUnificator.get(OrePrefixes.ring, Materials.HSSS, 4), - GT_OreDictUnificator.get(OrePrefixes.round, Materials.HSSS, 32), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.HSSS, 4), - GT_OreDictUnificator.get(OrePrefixes.gear, Materials.HSSS, 1), - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.HSSS, 2), - GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.YttriumBariumCuprate, 4)) - .itemOutputs(ItemList.Electric_Piston_LuV.get(1)) - .fluidInputs(new FluidStack(solderIndalloy, 144), Materials.Lubricant.getFluid(250)) - .noFluidOutputs() - .duration(30 * SECONDS) - .eut((int) TierEU.RECIPE_IV) - .addTo(AssemblyLine); + .metadata(RESEARCH_ITEM, ItemList.Electric_Piston_IV.get(1)) + .metadata(RESEARCH_TIME, 2 * HOURS) + .itemInputs( + ItemList.Electric_Motor_LuV.get(1), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.HSSS, 6), + GT_OreDictUnificator.get(OrePrefixes.ring, Materials.HSSS, 4), + GT_OreDictUnificator.get(OrePrefixes.round, Materials.HSSS, 32), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.HSSS, 4), + GT_OreDictUnificator.get(OrePrefixes.gear, Materials.HSSS, 1), + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.HSSS, 2), + GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.YttriumBariumCuprate, 4)) + .itemOutputs(ItemList.Electric_Piston_LuV.get(1)) + .fluidInputs(new FluidStack(solderIndalloy, 144), Materials.Lubricant.getFluid(250)) + .noFluidOutputs() + .duration(30 * SECONDS) + .eut((int) TierEU.RECIPE_IV) + .addTo(AssemblyLine); // ZPM Pistons GT_Values.RA.stdBuilder() - .metadata(RESEARCH_ITEM, ItemList.Electric_Piston_LuV.get(1)) - .metadata(RESEARCH_TIME, 2 * HOURS) - .itemInputs( - ItemList.Electric_Motor_ZPM.get(1), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.NaquadahAlloy, 6), - GT_OreDictUnificator.get(OrePrefixes.ring, Materials.NaquadahAlloy, 4), - GT_OreDictUnificator.get(OrePrefixes.round, Materials.NaquadahAlloy, 32), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.NaquadahAlloy, 4), - GT_OreDictUnificator.get(OrePrefixes.gear, Materials.NaquadahAlloy, 1), - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.NaquadahAlloy, 2), - GT_OreDictUnificator.get(OrePrefixes.cableGt04, Materials.VanadiumGallium, 4)) - .itemOutputs(ItemList.Electric_Piston_ZPM.get(1)) - .fluidInputs(new FluidStack(solderIndalloy, 288), Materials.Lubricant.getFluid(750)) - .noFluidOutputs() - .duration(30 * SECONDS) - .eut((int) TierEU.RECIPE_LuV) - .addTo(AssemblyLine); + .metadata(RESEARCH_ITEM, ItemList.Electric_Piston_LuV.get(1)) + .metadata(RESEARCH_TIME, 2 * HOURS) + .itemInputs( + ItemList.Electric_Motor_ZPM.get(1), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.NaquadahAlloy, 6), + GT_OreDictUnificator.get(OrePrefixes.ring, Materials.NaquadahAlloy, 4), + GT_OreDictUnificator.get(OrePrefixes.round, Materials.NaquadahAlloy, 32), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.NaquadahAlloy, 4), + GT_OreDictUnificator.get(OrePrefixes.gear, Materials.NaquadahAlloy, 1), + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.NaquadahAlloy, 2), + GT_OreDictUnificator.get(OrePrefixes.cableGt04, Materials.VanadiumGallium, 4)) + .itemOutputs(ItemList.Electric_Piston_ZPM.get(1)) + .fluidInputs(new FluidStack(solderIndalloy, 288), Materials.Lubricant.getFluid(750)) + .noFluidOutputs() + .duration(30 * SECONDS) + .eut((int) TierEU.RECIPE_LuV) + .addTo(AssemblyLine); // UV Piston GT_Values.RA.stdBuilder() - .metadata(RESEARCH_ITEM, ItemList.Electric_Piston_ZPM.get(1)) - .metadata(RESEARCH_TIME, 4 * HOURS) - .itemInputs( - ItemList.Electric_Motor_UV.get(1), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Neutronium, 6), - GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Neutronium, 4), - GT_OreDictUnificator.get(OrePrefixes.round, Materials.Neutronium, 32), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Neutronium, 4), - GT_OreDictUnificator.get(OrePrefixes.gear, Materials.Neutronium, 1), - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Neutronium, 2), - GT_OreDictUnificator.get(OrePrefixes.cableGt04, Materials.NaquadahAlloy, 4)) - .itemOutputs(ItemList.Electric_Piston_UV.get(1)) - .fluidInputs( - Materials.Naquadria.getMolten(1296), - new FluidStack(solderIndalloy, 1296), - Materials.Lubricant.getFluid(2000)) - .noFluidOutputs() - .duration(30 * SECONDS) - .eut((int) TierEU.RECIPE_ZPM) - .addTo(AssemblyLine); + .metadata(RESEARCH_ITEM, ItemList.Electric_Piston_ZPM.get(1)) + .metadata(RESEARCH_TIME, 4 * HOURS) + .itemInputs( + ItemList.Electric_Motor_UV.get(1), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Neutronium, 6), + GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Neutronium, 4), + GT_OreDictUnificator.get(OrePrefixes.round, Materials.Neutronium, 32), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Neutronium, 4), + GT_OreDictUnificator.get(OrePrefixes.gear, Materials.Neutronium, 1), + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Neutronium, 2), + GT_OreDictUnificator.get(OrePrefixes.cableGt04, Materials.NaquadahAlloy, 4)) + .itemOutputs(ItemList.Electric_Piston_UV.get(1)) + .fluidInputs( + Materials.Naquadria.getMolten(1296), + new FluidStack(solderIndalloy, 1296), + Materials.Lubricant.getFluid(2000)) + .noFluidOutputs() + .duration(30 * SECONDS) + .eut((int) TierEU.RECIPE_ZPM) + .addTo(AssemblyLine); } // RobotArms { // LuV Robot Arm GT_Values.RA.stdBuilder() - .metadata(RESEARCH_ITEM, ItemList.Robot_Arm_IV.get(1)) - .metadata(RESEARCH_TIME, 2 * HOURS) - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.HSSS, 4), - GT_OreDictUnificator.get(OrePrefixes.gear, Materials.HSSS, 1), - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.HSSS, 3), - ItemList.Electric_Motor_LuV.get(2), - ItemList.Electric_Piston_LuV.get(1), - new Object[] { OrePrefixes.circuit.get(Materials.Master), 2 }, - new Object[] { OrePrefixes.circuit.get(Materials.Elite), 4 }, - new Object[] { OrePrefixes.circuit.get(Materials.Data), 8 }, - GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.YttriumBariumCuprate, 6)) - .itemOutputs(ItemList.Robot_Arm_LuV.get(1)) - .fluidInputs(new FluidStack(solderIndalloy, 576), Materials.Lubricant.getFluid(250)) - .noFluidOutputs() - .duration(30 * SECONDS) - .eut((int) TierEU.RECIPE_IV) - .addTo(AssemblyLine); + .metadata(RESEARCH_ITEM, ItemList.Robot_Arm_IV.get(1)) + .metadata(RESEARCH_TIME, 2 * HOURS) + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.HSSS, 4), + GT_OreDictUnificator.get(OrePrefixes.gear, Materials.HSSS, 1), + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.HSSS, 3), + ItemList.Electric_Motor_LuV.get(2), + ItemList.Electric_Piston_LuV.get(1), + new Object[] { OrePrefixes.circuit.get(Materials.Master), 2 }, + new Object[] { OrePrefixes.circuit.get(Materials.Elite), 4 }, + new Object[] { OrePrefixes.circuit.get(Materials.Data), 8 }, + GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.YttriumBariumCuprate, 6)) + .itemOutputs(ItemList.Robot_Arm_LuV.get(1)) + .fluidInputs(new FluidStack(solderIndalloy, 576), Materials.Lubricant.getFluid(250)) + .noFluidOutputs() + .duration(30 * SECONDS) + .eut((int) TierEU.RECIPE_IV) + .addTo(AssemblyLine); // ZPM Robot Arm GT_Values.RA.stdBuilder() - .metadata(RESEARCH_ITEM, ItemList.Robot_Arm_LuV.get(1)) - .metadata(RESEARCH_TIME, 2 * HOURS) - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.NaquadahAlloy, 4), - GT_OreDictUnificator.get(OrePrefixes.gear, Materials.NaquadahAlloy, 1), - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.NaquadahAlloy, 3), - ItemList.Electric_Motor_ZPM.get(2), - ItemList.Electric_Piston_ZPM.get(1), - new Object[] { OrePrefixes.circuit.get(Materials.Ultimate), 2 }, - new Object[] { OrePrefixes.circuit.get(Materials.Master), 4 }, - new Object[] { OrePrefixes.circuit.get(Materials.Elite), 8 }, - GT_OreDictUnificator.get(OrePrefixes.cableGt04, Materials.VanadiumGallium, 6)) - .itemOutputs(ItemList.Robot_Arm_ZPM.get(1)) - .fluidInputs(new FluidStack(solderIndalloy, 1152), Materials.Lubricant.getFluid(750)) - .noFluidOutputs() - .duration(30 * SECONDS) - .eut((int) TierEU.RECIPE_LuV) - .addTo(AssemblyLine); + .metadata(RESEARCH_ITEM, ItemList.Robot_Arm_LuV.get(1)) + .metadata(RESEARCH_TIME, 2 * HOURS) + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.NaquadahAlloy, 4), + GT_OreDictUnificator.get(OrePrefixes.gear, Materials.NaquadahAlloy, 1), + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.NaquadahAlloy, 3), + ItemList.Electric_Motor_ZPM.get(2), + ItemList.Electric_Piston_ZPM.get(1), + new Object[] { OrePrefixes.circuit.get(Materials.Ultimate), 2 }, + new Object[] { OrePrefixes.circuit.get(Materials.Master), 4 }, + new Object[] { OrePrefixes.circuit.get(Materials.Elite), 8 }, + GT_OreDictUnificator.get(OrePrefixes.cableGt04, Materials.VanadiumGallium, 6)) + .itemOutputs(ItemList.Robot_Arm_ZPM.get(1)) + .fluidInputs(new FluidStack(solderIndalloy, 1152), Materials.Lubricant.getFluid(750)) + .noFluidOutputs() + .duration(30 * SECONDS) + .eut((int) TierEU.RECIPE_LuV) + .addTo(AssemblyLine); // UV Robot Arm GT_Values.RA.stdBuilder() - .metadata(RESEARCH_ITEM, ItemList.Robot_Arm_ZPM.get(1)) - .metadata(RESEARCH_TIME, 4 * HOURS) - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Neutronium, 4), - GT_OreDictUnificator.get(OrePrefixes.gear, Materials.Neutronium, 1), - GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Neutronium, 3), - ItemList.Electric_Motor_UV.get(2), - ItemList.Electric_Piston_UV.get(1), - new Object[] { OrePrefixes.circuit.get(Materials.SuperconductorUHV), 2 }, - new Object[] { OrePrefixes.circuit.get(Materials.Ultimate), 4 }, - new Object[] { OrePrefixes.circuit.get(Materials.Master), 8 }, - GT_OreDictUnificator.get(OrePrefixes.cableGt04, Materials.NaquadahAlloy, 6)) - .itemOutputs(ItemList.Robot_Arm_UV.get(1)) - .fluidInputs( - Materials.Naquadria.getMolten(1296), - new FluidStack(solderIndalloy, 2304), - Materials.Lubricant.getFluid(2000)) - .noFluidOutputs() - .duration(30 * SECONDS) - .eut((int) TierEU.RECIPE_ZPM) - .addTo(AssemblyLine); + .metadata(RESEARCH_ITEM, ItemList.Robot_Arm_ZPM.get(1)) + .metadata(RESEARCH_TIME, 4 * HOURS) + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Neutronium, 4), + GT_OreDictUnificator.get(OrePrefixes.gear, Materials.Neutronium, 1), + GT_OreDictUnificator.get(OrePrefixes.gearGtSmall, Materials.Neutronium, 3), + ItemList.Electric_Motor_UV.get(2), + ItemList.Electric_Piston_UV.get(1), + new Object[] { OrePrefixes.circuit.get(Materials.SuperconductorUHV), 2 }, + new Object[] { OrePrefixes.circuit.get(Materials.Ultimate), 4 }, + new Object[] { OrePrefixes.circuit.get(Materials.Master), 8 }, + GT_OreDictUnificator.get(OrePrefixes.cableGt04, Materials.NaquadahAlloy, 6)) + .itemOutputs(ItemList.Robot_Arm_UV.get(1)) + .fluidInputs( + Materials.Naquadria.getMolten(1296), + new FluidStack(solderIndalloy, 2304), + Materials.Lubricant.getFluid(2000)) + .noFluidOutputs() + .duration(30 * SECONDS) + .eut((int) TierEU.RECIPE_ZPM) + .addTo(AssemblyLine); } // Emitters { // LuV Emitter GT_Values.RA.stdBuilder() - .metadata(RESEARCH_ITEM, ItemList.Emitter_IV.get(1)) - .metadata(RESEARCH_TIME, 2 * HOURS) - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.HSSS, 1), - ItemList.Electric_Motor_LuV.get(1), - GT_OreDictUnificator.get(OrePrefixes.stick, LuVMat, 8), - ItemList.QuantumStar.get(1), - new Object[] { OrePrefixes.circuit.get(Materials.Master), 4 }, - GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Gallium, 64), - GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Gallium, 64), - GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Gallium, 64), - GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.YttriumBariumCuprate, 7)) - .itemOutputs(ItemList.Emitter_LuV.get(1)) - .fluidInputs(new FluidStack(solderIndalloy, 576)) - .noFluidOutputs() - .duration(30 * SECONDS) - .eut((int) TierEU.RECIPE_IV) - .addTo(AssemblyLine); + .metadata(RESEARCH_ITEM, ItemList.Emitter_IV.get(1)) + .metadata(RESEARCH_TIME, 2 * HOURS) + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.HSSS, 1), + ItemList.Electric_Motor_LuV.get(1), + GT_OreDictUnificator.get(OrePrefixes.stick, LuVMat, 8), + ItemList.QuantumStar.get(1), + new Object[] { OrePrefixes.circuit.get(Materials.Master), 4 }, + GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Gallium, 64), + GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Gallium, 64), + GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Gallium, 64), + GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.YttriumBariumCuprate, 7)) + .itemOutputs(ItemList.Emitter_LuV.get(1)) + .fluidInputs(new FluidStack(solderIndalloy, 576)) + .noFluidOutputs() + .duration(30 * SECONDS) + .eut((int) TierEU.RECIPE_IV) + .addTo(AssemblyLine); // ZPM Emitter GT_Values.RA.stdBuilder() - .metadata(RESEARCH_ITEM, ItemList.Emitter_LuV.get(1)) - .metadata(RESEARCH_TIME, 2 * HOURS) - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.NaquadahAlloy, 1), - ItemList.Electric_Motor_ZPM.get(1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Osmiridium, 8), - ItemList.QuantumStar.get(2), - new Object[] { OrePrefixes.circuit.get(Materials.Ultimate), 4 }, - GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Trinium, 64), - GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Trinium, 64), - GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Trinium, 64), - GT_OreDictUnificator.get(OrePrefixes.cableGt04, Materials.VanadiumGallium, 7)) - .itemOutputs(ItemList.Emitter_ZPM.get(1)) - .fluidInputs(new FluidStack(solderIndalloy, 1152)) - .noFluidOutputs() - .duration(30 * SECONDS) - .eut((int) TierEU.RECIPE_LuV) - .addTo(AssemblyLine); + .metadata(RESEARCH_ITEM, ItemList.Emitter_LuV.get(1)) + .metadata(RESEARCH_TIME, 2 * HOURS) + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.NaquadahAlloy, 1), + ItemList.Electric_Motor_ZPM.get(1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Osmiridium, 8), + ItemList.QuantumStar.get(2), + new Object[] { OrePrefixes.circuit.get(Materials.Ultimate), 4 }, + GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Trinium, 64), + GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Trinium, 64), + GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Trinium, 64), + GT_OreDictUnificator.get(OrePrefixes.cableGt04, Materials.VanadiumGallium, 7)) + .itemOutputs(ItemList.Emitter_ZPM.get(1)) + .fluidInputs(new FluidStack(solderIndalloy, 1152)) + .noFluidOutputs() + .duration(30 * SECONDS) + .eut((int) TierEU.RECIPE_LuV) + .addTo(AssemblyLine); // UV Emitter GT_Values.RA.stdBuilder() - .metadata(RESEARCH_ITEM, ItemList.Emitter_ZPM.get(1)) - .metadata(RESEARCH_TIME, 4 * HOURS) - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Neutronium, 1), - ItemList.Electric_Motor_UV.get(1), - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Neutronium, 8), - ItemList.Gravistar.get(4), - new Object[] { OrePrefixes.circuit.get(Materials.SuperconductorUHV), 4 }, - GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Naquadria, 64), - GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Naquadria, 64), - GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Naquadria, 64), - GT_OreDictUnificator.get(OrePrefixes.cableGt04, Materials.NaquadahAlloy, 7)) - .itemOutputs(ItemList.Emitter_UV.get(1)) - .fluidInputs(Materials.Naquadria.getMolten(1296), new FluidStack(solderIndalloy, 2304)) - .noFluidOutputs() - .duration(30 * SECONDS) - .eut((int) TierEU.RECIPE_ZPM) - .addTo(AssemblyLine); + .metadata(RESEARCH_ITEM, ItemList.Emitter_ZPM.get(1)) + .metadata(RESEARCH_TIME, 4 * HOURS) + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Neutronium, 1), + ItemList.Electric_Motor_UV.get(1), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Neutronium, 8), + ItemList.Gravistar.get(4), + new Object[] { OrePrefixes.circuit.get(Materials.SuperconductorUHV), 4 }, + GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Naquadria, 64), + GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Naquadria, 64), + GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Naquadria, 64), + GT_OreDictUnificator.get(OrePrefixes.cableGt04, Materials.NaquadahAlloy, 7)) + .itemOutputs(ItemList.Emitter_UV.get(1)) + .fluidInputs(Materials.Naquadria.getMolten(1296), new FluidStack(solderIndalloy, 2304)) + .noFluidOutputs() + .duration(30 * SECONDS) + .eut((int) TierEU.RECIPE_ZPM) + .addTo(AssemblyLine); } // Sensors { // LuV Sensor GT_Values.RA.stdBuilder() - .metadata(RESEARCH_ITEM, ItemList.Sensor_IV.get(1)) - .metadata(RESEARCH_TIME, 2 * HOURS) - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.HSSS, 1), - ItemList.Electric_Motor_LuV.get(1), - GT_OreDictUnificator.get(OrePrefixes.plate, LuVMat, 8), - ItemList.QuantumStar.get(1), - new Object[] { OrePrefixes.circuit.get(Materials.Master), 4 }, - GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Gallium, 64), - GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Gallium, 64), - GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Gallium, 64), - GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.YttriumBariumCuprate, 7)) - .itemOutputs(ItemList.Sensor_LuV.get(1)) - .fluidInputs(new FluidStack(solderIndalloy, 576)) - .noFluidOutputs() - .duration(30 * SECONDS) - .eut((int) TierEU.RECIPE_IV) - .addTo(AssemblyLine); + .metadata(RESEARCH_ITEM, ItemList.Sensor_IV.get(1)) + .metadata(RESEARCH_TIME, 2 * HOURS) + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.HSSS, 1), + ItemList.Electric_Motor_LuV.get(1), + GT_OreDictUnificator.get(OrePrefixes.plate, LuVMat, 8), + ItemList.QuantumStar.get(1), + new Object[] { OrePrefixes.circuit.get(Materials.Master), 4 }, + GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Gallium, 64), + GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Gallium, 64), + GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Gallium, 64), + GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.YttriumBariumCuprate, 7)) + .itemOutputs(ItemList.Sensor_LuV.get(1)) + .fluidInputs(new FluidStack(solderIndalloy, 576)) + .noFluidOutputs() + .duration(30 * SECONDS) + .eut((int) TierEU.RECIPE_IV) + .addTo(AssemblyLine); // ZPM Sensor GT_Values.RA.stdBuilder() - .metadata(RESEARCH_ITEM, ItemList.Sensor_LuV.get(1)) - .metadata(RESEARCH_TIME, 2 * HOURS) - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.NaquadahAlloy, 1), - ItemList.Electric_Motor_ZPM.get(1), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Osmiridium, 8), - ItemList.QuantumStar.get(2), - new Object[] { OrePrefixes.circuit.get(Materials.Ultimate), 4 }, - GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Trinium, 64), - GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Trinium, 64), - GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Trinium, 64), - GT_OreDictUnificator.get(OrePrefixes.cableGt04, Materials.VanadiumGallium, 7)) - .itemOutputs(ItemList.Sensor_ZPM.get(1)) - .fluidInputs(new FluidStack(solderIndalloy, 1152)) - .noFluidOutputs() - .duration(30 * SECONDS) - .eut((int) TierEU.RECIPE_LuV) - .addTo(AssemblyLine); + .metadata(RESEARCH_ITEM, ItemList.Sensor_LuV.get(1)) + .metadata(RESEARCH_TIME, 2 * HOURS) + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.NaquadahAlloy, 1), + ItemList.Electric_Motor_ZPM.get(1), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Osmiridium, 8), + ItemList.QuantumStar.get(2), + new Object[] { OrePrefixes.circuit.get(Materials.Ultimate), 4 }, + GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Trinium, 64), + GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Trinium, 64), + GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Trinium, 64), + GT_OreDictUnificator.get(OrePrefixes.cableGt04, Materials.VanadiumGallium, 7)) + .itemOutputs(ItemList.Sensor_ZPM.get(1)) + .fluidInputs(new FluidStack(solderIndalloy, 1152)) + .noFluidOutputs() + .duration(30 * SECONDS) + .eut((int) TierEU.RECIPE_LuV) + .addTo(AssemblyLine); // UV Sensor GT_Values.RA.stdBuilder() - .metadata(RESEARCH_ITEM, ItemList.Sensor_ZPM.get(1)) - .metadata(RESEARCH_TIME, 4 * HOURS) - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Neutronium, 1), - ItemList.Electric_Motor_UV.get(1), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Neutronium, 8), - ItemList.Gravistar.get(4), - new Object[] { OrePrefixes.circuit.get(Materials.SuperconductorUHV), 4 }, - GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Naquadria, 64), - GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Naquadria, 64), - GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Naquadria, 64), - GT_OreDictUnificator.get(OrePrefixes.cableGt04, Materials.NaquadahAlloy, 7)) - .itemOutputs(ItemList.Sensor_UV.get(1)) - .fluidInputs(Materials.Naquadria.getMolten(1296), new FluidStack(solderIndalloy, 2304)) - .noFluidOutputs() - .duration(30 * SECONDS) - .eut((int) TierEU.RECIPE_ZPM) - .addTo(AssemblyLine); + .metadata(RESEARCH_ITEM, ItemList.Sensor_ZPM.get(1)) + .metadata(RESEARCH_TIME, 4 * HOURS) + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Neutronium, 1), + ItemList.Electric_Motor_UV.get(1), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Neutronium, 8), + ItemList.Gravistar.get(4), + new Object[] { OrePrefixes.circuit.get(Materials.SuperconductorUHV), 4 }, + GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Naquadria, 64), + GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Naquadria, 64), + GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Naquadria, 64), + GT_OreDictUnificator.get(OrePrefixes.cableGt04, Materials.NaquadahAlloy, 7)) + .itemOutputs(ItemList.Sensor_UV.get(1)) + .fluidInputs(Materials.Naquadria.getMolten(1296), new FluidStack(solderIndalloy, 2304)) + .noFluidOutputs() + .duration(30 * SECONDS) + .eut((int) TierEU.RECIPE_ZPM) + .addTo(AssemblyLine); } // Field Generators { // LuV Field Generator GT_Values.RA.stdBuilder() - .metadata(RESEARCH_ITEM, ItemList.Field_Generator_IV.get(1)) - .metadata(RESEARCH_TIME, 2 * HOURS) - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.HSSS, 1), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.HSSS, 6), - ItemList.QuantumStar.get(2), - ItemList.Emitter_LuV.get(4), - new Object[] { OrePrefixes.circuit.get(Materials.Ultimate), 4 }, - GT_OreDictUnificator.get(OrePrefixes.wireFine, LuVMat, 64), - GT_OreDictUnificator.get(OrePrefixes.wireFine, LuVMat, 64), - GT_OreDictUnificator.get(OrePrefixes.wireFine, LuVMat, 64), - GT_OreDictUnificator.get(OrePrefixes.wireFine, LuVMat, 64), - GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.YttriumBariumCuprate, 8)) - .itemOutputs(ItemList.Field_Generator_LuV.get(1)) - .fluidInputs(new FluidStack(solderIndalloy, 576)) - .noFluidOutputs() - .duration(30 * SECONDS) - .eut((int) TierEU.RECIPE_IV) - .addTo(AssemblyLine); + .metadata(RESEARCH_ITEM, ItemList.Field_Generator_IV.get(1)) + .metadata(RESEARCH_TIME, 2 * HOURS) + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.HSSS, 1), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.HSSS, 6), + ItemList.QuantumStar.get(2), + ItemList.Emitter_LuV.get(4), + new Object[] { OrePrefixes.circuit.get(Materials.Ultimate), 4 }, + GT_OreDictUnificator.get(OrePrefixes.wireFine, LuVMat, 64), + GT_OreDictUnificator.get(OrePrefixes.wireFine, LuVMat, 64), + GT_OreDictUnificator.get(OrePrefixes.wireFine, LuVMat, 64), + GT_OreDictUnificator.get(OrePrefixes.wireFine, LuVMat, 64), + GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.YttriumBariumCuprate, 8)) + .itemOutputs(ItemList.Field_Generator_LuV.get(1)) + .fluidInputs(new FluidStack(solderIndalloy, 576)) + .noFluidOutputs() + .duration(30 * SECONDS) + .eut((int) TierEU.RECIPE_IV) + .addTo(AssemblyLine); // ZPM Field Generator GT_Values.RA.stdBuilder() - .metadata(RESEARCH_ITEM, ItemList.Field_Generator_LuV.get(1)) - .metadata(RESEARCH_TIME, 2 * HOURS) - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.NaquadahAlloy, 1), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.NaquadahAlloy, 6), - ItemList.QuantumStar.get(2), - ItemList.Emitter_ZPM.get(4), - new Object[] { OrePrefixes.circuit.get(Materials.SuperconductorUHV), 4 }, - GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Europium, 64), - GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Europium, 64), - GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Europium, 64), - GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Europium, 64), - GT_OreDictUnificator.get(OrePrefixes.cableGt04, Materials.VanadiumGallium, 8)) - .itemOutputs(ItemList.Field_Generator_ZPM.get(1)) - .fluidInputs(new FluidStack(solderIndalloy, 1152)) - .noFluidOutputs() - .duration(30 * SECONDS) - .eut((int) TierEU.RECIPE_LuV) - .addTo(AssemblyLine); + .metadata(RESEARCH_ITEM, ItemList.Field_Generator_LuV.get(1)) + .metadata(RESEARCH_TIME, 2 * HOURS) + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.NaquadahAlloy, 1), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.NaquadahAlloy, 6), + ItemList.QuantumStar.get(2), + ItemList.Emitter_ZPM.get(4), + new Object[] { OrePrefixes.circuit.get(Materials.SuperconductorUHV), 4 }, + GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Europium, 64), + GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Europium, 64), + GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Europium, 64), + GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Europium, 64), + GT_OreDictUnificator.get(OrePrefixes.cableGt04, Materials.VanadiumGallium, 8)) + .itemOutputs(ItemList.Field_Generator_ZPM.get(1)) + .fluidInputs(new FluidStack(solderIndalloy, 1152)) + .noFluidOutputs() + .duration(30 * SECONDS) + .eut((int) TierEU.RECIPE_LuV) + .addTo(AssemblyLine); // UV Field Generator GT_Values.RA.stdBuilder() - .metadata(RESEARCH_ITEM, ItemList.Field_Generator_ZPM.get(1)) - .metadata(RESEARCH_TIME, 4 * HOURS) - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Neutronium, 1), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Neutronium, 6), - ItemList.Gravistar.get(2), - ItemList.Emitter_UV.get(4), - new Object[] { OrePrefixes.circuit.get(Materials.Infinite), 4 }, - GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Americium, 64), - GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Americium, 64), - GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Americium, 64), - GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Americium, 64), - GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Americium, 64), - GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Americium, 64), - GT_OreDictUnificator.get(OrePrefixes.cableGt04, Materials.NaquadahAlloy, 8)) - .itemOutputs(ItemList.Field_Generator_UV.get(1)) - .fluidInputs(Materials.Naquadria.getMolten(1296), new FluidStack(solderIndalloy, 2304)) - .noFluidOutputs() - .duration(30 * SECONDS) - .eut((int) TierEU.RECIPE_ZPM) - .addTo(AssemblyLine); + .metadata(RESEARCH_ITEM, ItemList.Field_Generator_ZPM.get(1)) + .metadata(RESEARCH_TIME, 4 * HOURS) + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Neutronium, 1), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Neutronium, 6), + ItemList.Gravistar.get(2), + ItemList.Emitter_UV.get(4), + new Object[] { OrePrefixes.circuit.get(Materials.Infinite), 4 }, + GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Americium, 64), + GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Americium, 64), + GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Americium, 64), + GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Americium, 64), + GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Americium, 64), + GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Americium, 64), + GT_OreDictUnificator.get(OrePrefixes.cableGt04, Materials.NaquadahAlloy, 8)) + .itemOutputs(ItemList.Field_Generator_UV.get(1)) + .fluidInputs(Materials.Naquadria.getMolten(1296), new FluidStack(solderIndalloy, 2304)) + .noFluidOutputs() + .duration(30 * SECONDS) + .eut((int) TierEU.RECIPE_ZPM) + .addTo(AssemblyLine); } // Energy Hatches { // LuV Energy Hatch GT_Values.RA.stdBuilder() - .metadata(RESEARCH_ITEM, ItemList.Hatch_Energy_IV.get(1)) - .metadata(RESEARCH_TIME, 60 * MINUTES) - .itemInputs( - ItemList.Hull_LuV.get(1), - GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorLuV, 2), - ItemList.Circuit_Chip_UHPIC.get(2), - new Object[] { OrePrefixes.circuit.get(Materials.Master), 2 }, - ItemList.LuV_Coil.get(2), - new ItemStack[] { ItemList.Reactor_Coolant_He_3.get(1), - ItemList.Reactor_Coolant_NaK_3.get(1), ItemList.Reactor_Coolant_Sp_1.get(1) }, - new ItemStack[] { ItemList.Reactor_Coolant_He_3.get(1), - ItemList.Reactor_Coolant_NaK_3.get(1), ItemList.Reactor_Coolant_Sp_1.get(1) }, - ItemList.Electric_Pump_LuV.get(1)) - .itemOutputs(ItemList.Hatch_Energy_LuV.get(1)) - .fluidInputs( - new FluidStack(FluidRegistry.getFluid("ic2coolant"), 2000), - new FluidStack(solderIndalloy, 720)) - .noFluidOutputs() - .duration(20 * SECONDS) - .eut((int) TierEU.RECIPE_LuV) - .addTo(AssemblyLine); + .metadata(RESEARCH_ITEM, ItemList.Hatch_Energy_IV.get(1)) + .metadata(RESEARCH_TIME, 60 * MINUTES) + .itemInputs( + ItemList.Hull_LuV.get(1), + GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorLuV, 2), + ItemList.Circuit_Chip_UHPIC.get(2), + new Object[] { OrePrefixes.circuit.get(Materials.Master), 2 }, + ItemList.LuV_Coil.get(2), + new ItemStack[] { ItemList.Reactor_Coolant_He_3.get(1), ItemList.Reactor_Coolant_NaK_3.get(1), + ItemList.Reactor_Coolant_Sp_1.get(1) }, + new ItemStack[] { ItemList.Reactor_Coolant_He_3.get(1), ItemList.Reactor_Coolant_NaK_3.get(1), + ItemList.Reactor_Coolant_Sp_1.get(1) }, + ItemList.Electric_Pump_LuV.get(1)) + .itemOutputs(ItemList.Hatch_Energy_LuV.get(1)) + .fluidInputs( + new FluidStack(FluidRegistry.getFluid("ic2coolant"), 2000), + new FluidStack(solderIndalloy, 720)) + .noFluidOutputs() + .duration(20 * SECONDS) + .eut((int) TierEU.RECIPE_LuV) + .addTo(AssemblyLine); // ZPM Energy Hatch GT_Values.RA.stdBuilder() - .metadata(RESEARCH_ITEM, ItemList.Hatch_Energy_LuV.get(1)) - .metadata(RESEARCH_TIME, 2 * HOURS) - .itemInputs( - ItemList.Hull_ZPM.get(1), - GT_OreDictUnificator.get(OrePrefixes.wireGt02, Materials.SuperconductorZPM, 2), - ItemList.Circuit_Chip_NPIC.get(2), - new Object[] { OrePrefixes.circuit.get(Materials.Ultimate), 2 }, - ItemList.ZPM_Coil.get(2), - new ItemStack[] { ItemList.Reactor_Coolant_He_6.get(1), - ItemList.Reactor_Coolant_NaK_6.get(1), ItemList.Reactor_Coolant_Sp_2.get(1) }, - new ItemStack[] { ItemList.Reactor_Coolant_He_6.get(1), - ItemList.Reactor_Coolant_NaK_6.get(1), ItemList.Reactor_Coolant_Sp_2.get(1) }, - ItemList.Electric_Pump_ZPM.get(1)) - .itemOutputs(ItemList.Hatch_Energy_ZPM.get(1)) - .fluidInputs( - new FluidStack(FluidRegistry.getFluid("ic2coolant"), 4000), - new FluidStack(solderIndalloy, 1440)) - .noFluidOutputs() - .duration(30 * SECONDS) - .eut((int) TierEU.RECIPE_ZPM) - .addTo(AssemblyLine); + .metadata(RESEARCH_ITEM, ItemList.Hatch_Energy_LuV.get(1)) + .metadata(RESEARCH_TIME, 2 * HOURS) + .itemInputs( + ItemList.Hull_ZPM.get(1), + GT_OreDictUnificator.get(OrePrefixes.wireGt02, Materials.SuperconductorZPM, 2), + ItemList.Circuit_Chip_NPIC.get(2), + new Object[] { OrePrefixes.circuit.get(Materials.Ultimate), 2 }, + ItemList.ZPM_Coil.get(2), + new ItemStack[] { ItemList.Reactor_Coolant_He_6.get(1), ItemList.Reactor_Coolant_NaK_6.get(1), + ItemList.Reactor_Coolant_Sp_2.get(1) }, + new ItemStack[] { ItemList.Reactor_Coolant_He_6.get(1), ItemList.Reactor_Coolant_NaK_6.get(1), + ItemList.Reactor_Coolant_Sp_2.get(1) }, + ItemList.Electric_Pump_ZPM.get(1)) + .itemOutputs(ItemList.Hatch_Energy_ZPM.get(1)) + .fluidInputs( + new FluidStack(FluidRegistry.getFluid("ic2coolant"), 4000), + new FluidStack(solderIndalloy, 1440)) + .noFluidOutputs() + .duration(30 * SECONDS) + .eut((int) TierEU.RECIPE_ZPM) + .addTo(AssemblyLine); // UV Energy Hatch GT_Values.RA.stdBuilder() - .metadata(RESEARCH_ITEM, ItemList.Hatch_Energy_ZPM.get(1)) - .metadata(RESEARCH_TIME, 4 * HOURS) - .itemInputs( - ItemList.Hull_UV.get(1), - GT_OreDictUnificator.get(OrePrefixes.wireGt02, Materials.SuperconductorUV, 2), - ItemList.Circuit_Chip_PPIC.get(2), - new Object[] { OrePrefixes.circuit.get(Materials.SuperconductorUHV), 2 }, - ItemList.UV_Coil.get(2), - new ItemStack[] { ItemList.Reactor_Coolant_He_6.get(1), - ItemList.Reactor_Coolant_NaK_6.get(1), ItemList.Reactor_Coolant_Sp_2.get(1) }, - new ItemStack[] { ItemList.Reactor_Coolant_He_6.get(1), - ItemList.Reactor_Coolant_NaK_6.get(1), ItemList.Reactor_Coolant_Sp_2.get(1) }, - new ItemStack[] { ItemList.Reactor_Coolant_He_6.get(1), - ItemList.Reactor_Coolant_NaK_6.get(1), ItemList.Reactor_Coolant_Sp_2.get(1) }, - new ItemStack[] { ItemList.Reactor_Coolant_He_6.get(1), - ItemList.Reactor_Coolant_NaK_6.get(1), ItemList.Reactor_Coolant_Sp_2.get(1) }, - ItemList.Electric_Pump_UV.get(1)) - .itemOutputs(ItemList.Hatch_Energy_UV.get(1)) - .fluidInputs( - new FluidStack(FluidRegistry.getFluid("ic2coolant"), 8000), - new FluidStack(solderIndalloy, 2880)) - .noFluidOutputs() - .duration(40 * SECONDS) - .eut((int) TierEU.RECIPE_UV) - .addTo(AssemblyLine); + .metadata(RESEARCH_ITEM, ItemList.Hatch_Energy_ZPM.get(1)) + .metadata(RESEARCH_TIME, 4 * HOURS) + .itemInputs( + ItemList.Hull_UV.get(1), + GT_OreDictUnificator.get(OrePrefixes.wireGt02, Materials.SuperconductorUV, 2), + ItemList.Circuit_Chip_PPIC.get(2), + new Object[] { OrePrefixes.circuit.get(Materials.SuperconductorUHV), 2 }, + ItemList.UV_Coil.get(2), + new ItemStack[] { ItemList.Reactor_Coolant_He_6.get(1), ItemList.Reactor_Coolant_NaK_6.get(1), + ItemList.Reactor_Coolant_Sp_2.get(1) }, + new ItemStack[] { ItemList.Reactor_Coolant_He_6.get(1), ItemList.Reactor_Coolant_NaK_6.get(1), + ItemList.Reactor_Coolant_Sp_2.get(1) }, + new ItemStack[] { ItemList.Reactor_Coolant_He_6.get(1), ItemList.Reactor_Coolant_NaK_6.get(1), + ItemList.Reactor_Coolant_Sp_2.get(1) }, + new ItemStack[] { ItemList.Reactor_Coolant_He_6.get(1), ItemList.Reactor_Coolant_NaK_6.get(1), + ItemList.Reactor_Coolant_Sp_2.get(1) }, + ItemList.Electric_Pump_UV.get(1)) + .itemOutputs(ItemList.Hatch_Energy_UV.get(1)) + .fluidInputs( + new FluidStack(FluidRegistry.getFluid("ic2coolant"), 8000), + new FluidStack(solderIndalloy, 2880)) + .noFluidOutputs() + .duration(40 * SECONDS) + .eut((int) TierEU.RECIPE_UV) + .addTo(AssemblyLine); } // Dynamo Hatches { // LuV Dynamo Hatch GT_Values.RA.stdBuilder() - .metadata(RESEARCH_ITEM, ItemList.Hatch_Dynamo_IV.get(1)) - .metadata(RESEARCH_TIME, 60 * MINUTES) - .itemInputs( - ItemList.Hull_LuV.get(1), - GT_OreDictUnificator.get( - OrePrefixes.spring, - Materials.Tetraindiumditindibariumtitaniumheptacoppertetrakaidekaoxid, - 2), - ItemList.Circuit_Chip_UHPIC.get(2), - new Object[] { OrePrefixes.circuit.get(Materials.Master), 2 }, - ItemList.LuV_Coil.get(2), - new ItemStack[] { ItemList.Reactor_Coolant_He_3.get(1), - ItemList.Reactor_Coolant_NaK_3.get(1), ItemList.Reactor_Coolant_Sp_1.get(1) }, - new ItemStack[] { ItemList.Reactor_Coolant_He_3.get(1), - ItemList.Reactor_Coolant_NaK_3.get(1), ItemList.Reactor_Coolant_Sp_1.get(1) }, - ItemList.Electric_Pump_LuV.get(1)) - .itemOutputs(ItemList.Hatch_Dynamo_LuV.get(1)) - .fluidInputs( - new FluidStack(FluidRegistry.getFluid("ic2coolant"), 2000), - new FluidStack(solderIndalloy, 720)) - .noFluidOutputs() - .duration(20 * SECONDS) - .eut((int) TierEU.RECIPE_LuV) - .addTo(AssemblyLine); + .metadata(RESEARCH_ITEM, ItemList.Hatch_Dynamo_IV.get(1)) + .metadata(RESEARCH_TIME, 60 * MINUTES) + .itemInputs( + ItemList.Hull_LuV.get(1), + GT_OreDictUnificator.get( + OrePrefixes.spring, + Materials.Tetraindiumditindibariumtitaniumheptacoppertetrakaidekaoxid, + 2), + ItemList.Circuit_Chip_UHPIC.get(2), + new Object[] { OrePrefixes.circuit.get(Materials.Master), 2 }, + ItemList.LuV_Coil.get(2), + new ItemStack[] { ItemList.Reactor_Coolant_He_3.get(1), ItemList.Reactor_Coolant_NaK_3.get(1), + ItemList.Reactor_Coolant_Sp_1.get(1) }, + new ItemStack[] { ItemList.Reactor_Coolant_He_3.get(1), ItemList.Reactor_Coolant_NaK_3.get(1), + ItemList.Reactor_Coolant_Sp_1.get(1) }, + ItemList.Electric_Pump_LuV.get(1)) + .itemOutputs(ItemList.Hatch_Dynamo_LuV.get(1)) + .fluidInputs( + new FluidStack(FluidRegistry.getFluid("ic2coolant"), 2000), + new FluidStack(solderIndalloy, 720)) + .noFluidOutputs() + .duration(20 * SECONDS) + .eut((int) TierEU.RECIPE_LuV) + .addTo(AssemblyLine); // ZPM Dynamo Hatch GT_Values.RA.stdBuilder() - .metadata(RESEARCH_ITEM, ItemList.Hatch_Dynamo_LuV.get(1)) - .metadata(RESEARCH_TIME, 2 * HOURS) - .itemInputs( - ItemList.Hull_ZPM.get(1), - GT_OreDictUnificator.get( - OrePrefixes.spring, - Materials.Tetranaquadahdiindiumhexaplatiumosminid, - 4), - ItemList.Circuit_Chip_NPIC.get(2), - new Object[] { OrePrefixes.circuit.get(Materials.Ultimate), 2 }, - ItemList.ZPM_Coil.get(2), - new ItemStack[] { ItemList.Reactor_Coolant_He_6.get(1), - ItemList.Reactor_Coolant_NaK_6.get(1), ItemList.Reactor_Coolant_Sp_2.get(1) }, - new ItemStack[] { ItemList.Reactor_Coolant_He_6.get(1), - ItemList.Reactor_Coolant_NaK_6.get(1), ItemList.Reactor_Coolant_Sp_2.get(1) }, - ItemList.Electric_Pump_ZPM.get(1)) - .itemOutputs(ItemList.Hatch_Dynamo_ZPM.get(1)) - .fluidInputs( - new FluidStack(FluidRegistry.getFluid("ic2coolant"), 4000), - new FluidStack(solderIndalloy, 1440)) - .noFluidOutputs() - .duration(30 * SECONDS) - .eut((int) TierEU.RECIPE_ZPM) - .addTo(AssemblyLine); + .metadata(RESEARCH_ITEM, ItemList.Hatch_Dynamo_LuV.get(1)) + .metadata(RESEARCH_TIME, 2 * HOURS) + .itemInputs( + ItemList.Hull_ZPM.get(1), + GT_OreDictUnificator.get(OrePrefixes.spring, Materials.Tetranaquadahdiindiumhexaplatiumosminid, 4), + ItemList.Circuit_Chip_NPIC.get(2), + new Object[] { OrePrefixes.circuit.get(Materials.Ultimate), 2 }, + ItemList.ZPM_Coil.get(2), + new ItemStack[] { ItemList.Reactor_Coolant_He_6.get(1), ItemList.Reactor_Coolant_NaK_6.get(1), + ItemList.Reactor_Coolant_Sp_2.get(1) }, + new ItemStack[] { ItemList.Reactor_Coolant_He_6.get(1), ItemList.Reactor_Coolant_NaK_6.get(1), + ItemList.Reactor_Coolant_Sp_2.get(1) }, + ItemList.Electric_Pump_ZPM.get(1)) + .itemOutputs(ItemList.Hatch_Dynamo_ZPM.get(1)) + .fluidInputs( + new FluidStack(FluidRegistry.getFluid("ic2coolant"), 4000), + new FluidStack(solderIndalloy, 1440)) + .noFluidOutputs() + .duration(30 * SECONDS) + .eut((int) TierEU.RECIPE_ZPM) + .addTo(AssemblyLine); // UV Dynamo Hatch GT_Values.RA.stdBuilder() - .metadata(RESEARCH_ITEM, ItemList.Hatch_Dynamo_ZPM.get(1)) - .metadata(RESEARCH_TIME, 4 * HOURS) - .itemInputs( - ItemList.Hull_UV.get(1), - GT_OreDictUnificator.get( - OrePrefixes.spring, - Materials.Longasssuperconductornameforuvwire, - 4), - ItemList.Circuit_Chip_PPIC.get(2), - new Object[] { OrePrefixes.circuit.get(Materials.SuperconductorUHV), 2 }, - ItemList.UV_Coil.get(2), - new ItemStack[] { ItemList.Reactor_Coolant_He_6.get(1), - ItemList.Reactor_Coolant_NaK_6.get(1), ItemList.Reactor_Coolant_Sp_2.get(1) }, - new ItemStack[] { ItemList.Reactor_Coolant_He_6.get(1), - ItemList.Reactor_Coolant_NaK_6.get(1), ItemList.Reactor_Coolant_Sp_2.get(1) }, - new ItemStack[] { ItemList.Reactor_Coolant_He_6.get(1), - ItemList.Reactor_Coolant_NaK_6.get(1), ItemList.Reactor_Coolant_Sp_2.get(1) }, - new ItemStack[] { ItemList.Reactor_Coolant_He_6.get(1), - ItemList.Reactor_Coolant_NaK_6.get(1), ItemList.Reactor_Coolant_Sp_2.get(1) }, - ItemList.Electric_Pump_UV.get(1)) - .itemOutputs(ItemList.Hatch_Dynamo_UV.get(1)) - .fluidInputs( - new FluidStack(FluidRegistry.getFluid("ic2coolant"), 8000), - new FluidStack(solderIndalloy, 2880)) - .noFluidOutputs() - .duration(40 * SECONDS) - .eut((int) TierEU.RECIPE_UV) - .addTo(AssemblyLine); + .metadata(RESEARCH_ITEM, ItemList.Hatch_Dynamo_ZPM.get(1)) + .metadata(RESEARCH_TIME, 4 * HOURS) + .itemInputs( + ItemList.Hull_UV.get(1), + GT_OreDictUnificator.get(OrePrefixes.spring, Materials.Longasssuperconductornameforuvwire, 4), + ItemList.Circuit_Chip_PPIC.get(2), + new Object[] { OrePrefixes.circuit.get(Materials.SuperconductorUHV), 2 }, + ItemList.UV_Coil.get(2), + new ItemStack[] { ItemList.Reactor_Coolant_He_6.get(1), ItemList.Reactor_Coolant_NaK_6.get(1), + ItemList.Reactor_Coolant_Sp_2.get(1) }, + new ItemStack[] { ItemList.Reactor_Coolant_He_6.get(1), ItemList.Reactor_Coolant_NaK_6.get(1), + ItemList.Reactor_Coolant_Sp_2.get(1) }, + new ItemStack[] { ItemList.Reactor_Coolant_He_6.get(1), ItemList.Reactor_Coolant_NaK_6.get(1), + ItemList.Reactor_Coolant_Sp_2.get(1) }, + new ItemStack[] { ItemList.Reactor_Coolant_He_6.get(1), ItemList.Reactor_Coolant_NaK_6.get(1), + ItemList.Reactor_Coolant_Sp_2.get(1) }, + ItemList.Electric_Pump_UV.get(1)) + .itemOutputs(ItemList.Hatch_Dynamo_UV.get(1)) + .fluidInputs( + new FluidStack(FluidRegistry.getFluid("ic2coolant"), 8000), + new FluidStack(solderIndalloy, 2880)) + .noFluidOutputs() + .duration(40 * SECONDS) + .eut((int) TierEU.RECIPE_UV) + .addTo(AssemblyLine); } // Fusion Controller { // mkI GT_Values.RA.stdBuilder() - .metadata( - RESEARCH_ITEM, - GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorLuV, 1)) - .metadata(RESEARCH_TIME, 2 * HOURS) - .itemInputs( - ItemList.Casing_Fusion_Coil.get(1), - new Object[] { OrePrefixes.circuit.get(Materials.Ultimate), 1 }, - new Object[] { OrePrefixes.circuit.get(Materials.Ultimate), 1 }, - new Object[] { OrePrefixes.circuit.get(Materials.Ultimate), 1 }, - new Object[] { OrePrefixes.circuit.get(Materials.Ultimate), 1 }, - GT_OreDictUnificator.get(OrePrefixes.plateDense, Materials.NaquadahAlloy, 4), - GT_OreDictUnificator.get(OrePrefixes.plateDense, Materials.Osmiridium, 4), - ItemList.Field_Generator_LuV.get(2), - ItemList.Circuit_Wafer_UHPIC.get(32), - GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorLuV, 32)) - .itemOutputs(ItemList.FusionComputer_LuV.get(1)) - .fluidInputs(new FluidStack(solderIndalloy, 2880), Materials.VanadiumGallium.getMolten(1152)) - .noFluidOutputs() - .duration(50 * SECONDS) - .eut((int) TierEU.RECIPE_LuV) - .addTo(AssemblyLine); + .metadata(RESEARCH_ITEM, GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorLuV, 1)) + .metadata(RESEARCH_TIME, 2 * HOURS) + .itemInputs( + ItemList.Casing_Fusion_Coil.get(1), + new Object[] { OrePrefixes.circuit.get(Materials.Ultimate), 1 }, + new Object[] { OrePrefixes.circuit.get(Materials.Ultimate), 1 }, + new Object[] { OrePrefixes.circuit.get(Materials.Ultimate), 1 }, + new Object[] { OrePrefixes.circuit.get(Materials.Ultimate), 1 }, + GT_OreDictUnificator.get(OrePrefixes.plateDense, Materials.NaquadahAlloy, 4), + GT_OreDictUnificator.get(OrePrefixes.plateDense, Materials.Osmiridium, 4), + ItemList.Field_Generator_LuV.get(2), + ItemList.Circuit_Wafer_UHPIC.get(32), + GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorLuV, 32)) + .itemOutputs(ItemList.FusionComputer_LuV.get(1)) + .fluidInputs(new FluidStack(solderIndalloy, 2880), Materials.VanadiumGallium.getMolten(1152)) + .noFluidOutputs() + .duration(50 * SECONDS) + .eut((int) TierEU.RECIPE_LuV) + .addTo(AssemblyLine); // mkII GT_Values.RA.stdBuilder() - .metadata(RESEARCH_ITEM, GT_OreDictUnificator.get(OrePrefixes.block, Materials.Europium, 1)) - .metadata(RESEARCH_TIME, 4 * HOURS) - .itemInputs( - ItemList.Casing_Fusion_Coil.get(1), - new Object[] { OrePrefixes.circuit.get(Materials.SuperconductorUHV), 1 }, - new Object[] { OrePrefixes.circuit.get(Materials.SuperconductorUHV), 1 }, - new Object[] { OrePrefixes.circuit.get(Materials.SuperconductorUHV), 1 }, - new Object[] { OrePrefixes.circuit.get(Materials.SuperconductorUHV), 1 }, - GT_OreDictUnificator.get(OrePrefixes.plateDense, Materials.Europium, 4), - ItemList.Field_Generator_ZPM.get(2), - ItemList.Circuit_Wafer_PPIC.get(48), - GT_OreDictUnificator.get(OrePrefixes.wireGt02, Materials.SuperconductorZPM, 32)) - .itemOutputs(ItemList.FusionComputer_ZPMV.get(1)) - .fluidInputs(new FluidStack(solderIndalloy, 2880), Materials.NiobiumTitanium.getMolten(1152)) - .noFluidOutputs() - .duration(50 * SECONDS) - .eut(TierEU.RECIPE_LuV) - .addTo(AssemblyLine); + .metadata(RESEARCH_ITEM, GT_OreDictUnificator.get(OrePrefixes.block, Materials.Europium, 1)) + .metadata(RESEARCH_TIME, 4 * HOURS) + .itemInputs( + ItemList.Casing_Fusion_Coil.get(1), + new Object[] { OrePrefixes.circuit.get(Materials.SuperconductorUHV), 1 }, + new Object[] { OrePrefixes.circuit.get(Materials.SuperconductorUHV), 1 }, + new Object[] { OrePrefixes.circuit.get(Materials.SuperconductorUHV), 1 }, + new Object[] { OrePrefixes.circuit.get(Materials.SuperconductorUHV), 1 }, + GT_OreDictUnificator.get(OrePrefixes.plateDense, Materials.Europium, 4), + ItemList.Field_Generator_ZPM.get(2), + ItemList.Circuit_Wafer_PPIC.get(48), + GT_OreDictUnificator.get(OrePrefixes.wireGt02, Materials.SuperconductorZPM, 32)) + .itemOutputs(ItemList.FusionComputer_ZPMV.get(1)) + .fluidInputs(new FluidStack(solderIndalloy, 2880), Materials.NiobiumTitanium.getMolten(1152)) + .noFluidOutputs() + .duration(50 * SECONDS) + .eut(TierEU.RECIPE_LuV) + .addTo(AssemblyLine); // mkIII GT_Values.RA.stdBuilder() - .metadata(RESEARCH_ITEM, GT_OreDictUnificator.get(OrePrefixes.block, Materials.Americium, 1)) - .metadata(RESEARCH_TIME, 6 * HOURS) - .itemInputs( - ItemList.Casing_Fusion_Coil.get(1), - new Object[] { OrePrefixes.circuit.get(Materials.Infinite), 1 }, - new Object[] { OrePrefixes.circuit.get(Materials.Infinite), 1 }, - new Object[] { OrePrefixes.circuit.get(Materials.Infinite), 1 }, - new Object[] { OrePrefixes.circuit.get(Materials.Infinite), 1 }, - GT_OreDictUnificator.get(OrePrefixes.plateDense, Materials.Americium, 4), - ItemList.Field_Generator_UV.get(2), - ItemList.Circuit_Wafer_QPIC.get(64), - GT_OreDictUnificator.get(OrePrefixes.wireGt04, Materials.SuperconductorUV, 32)) - .itemOutputs(ItemList.FusionComputer_UV.get(1)) - .fluidInputs(new FluidStack(solderIndalloy, 2880), Materials.ElectrumFlux.getMolten(1152)) - .noFluidOutputs() - .duration(50 * SECONDS) - .eut(TierEU.RECIPE_ZPM) - .addTo(AssemblyLine); + .metadata(RESEARCH_ITEM, GT_OreDictUnificator.get(OrePrefixes.block, Materials.Americium, 1)) + .metadata(RESEARCH_TIME, 6 * HOURS) + .itemInputs( + ItemList.Casing_Fusion_Coil.get(1), + new Object[] { OrePrefixes.circuit.get(Materials.Infinite), 1 }, + new Object[] { OrePrefixes.circuit.get(Materials.Infinite), 1 }, + new Object[] { OrePrefixes.circuit.get(Materials.Infinite), 1 }, + new Object[] { OrePrefixes.circuit.get(Materials.Infinite), 1 }, + GT_OreDictUnificator.get(OrePrefixes.plateDense, Materials.Americium, 4), + ItemList.Field_Generator_UV.get(2), + ItemList.Circuit_Wafer_QPIC.get(64), + GT_OreDictUnificator.get(OrePrefixes.wireGt04, Materials.SuperconductorUV, 32)) + .itemOutputs(ItemList.FusionComputer_UV.get(1)) + .fluidInputs(new FluidStack(solderIndalloy, 2880), Materials.ElectrumFlux.getMolten(1152)) + .noFluidOutputs() + .duration(50 * SECONDS) + .eut(TierEU.RECIPE_ZPM) + .addTo(AssemblyLine); } // Energy Module GT_Values.RA.stdBuilder() - .metadata(RESEARCH_ITEM, ItemList.Energy_LapotronicOrb2.get(1)) - .metadata(RESEARCH_TIME, 4 * HOURS) - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Europium, 16), - new Object[] { OrePrefixes.circuit.get(Materials.Ultimate), 1 }, - new Object[] { OrePrefixes.circuit.get(Materials.Ultimate), 1 }, - new Object[] { OrePrefixes.circuit.get(Materials.Ultimate), 1 }, - new Object[] { OrePrefixes.circuit.get(Materials.Ultimate), 1 }, - ItemList.Energy_LapotronicOrb2.get(8), - ItemList.Field_Generator_LuV.get(2), - ItemList.Circuit_Wafer_SoC2.get(64), - ItemList.Circuit_Wafer_SoC2.get(64), - ItemList.Circuit_Parts_DiodeASMD.get(8), - GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Naquadah, 32)) - .itemOutputs(ItemList.Energy_Module.get(1)) - .fluidInputs( - new FluidStack(solderIndalloy, 2880), - new FluidStack(FluidRegistry.getFluid("ic2coolant"), 16000)) - .noFluidOutputs() - .duration(1 * MINUTES + 40 * SECONDS) - .eut((int) TierEU.RECIPE_ZPM) - .addTo(AssemblyLine); + .metadata(RESEARCH_ITEM, ItemList.Energy_LapotronicOrb2.get(1)) + .metadata(RESEARCH_TIME, 4 * HOURS) + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Europium, 16), + new Object[] { OrePrefixes.circuit.get(Materials.Ultimate), 1 }, + new Object[] { OrePrefixes.circuit.get(Materials.Ultimate), 1 }, + new Object[] { OrePrefixes.circuit.get(Materials.Ultimate), 1 }, + new Object[] { OrePrefixes.circuit.get(Materials.Ultimate), 1 }, + ItemList.Energy_LapotronicOrb2.get(8), + ItemList.Field_Generator_LuV.get(2), + ItemList.Circuit_Wafer_SoC2.get(64), + ItemList.Circuit_Wafer_SoC2.get(64), + ItemList.Circuit_Parts_DiodeASMD.get(8), + GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Naquadah, 32)) + .itemOutputs(ItemList.Energy_Module.get(1)) + .fluidInputs( + new FluidStack(solderIndalloy, 2880), + new FluidStack(FluidRegistry.getFluid("ic2coolant"), 16000)) + .noFluidOutputs() + .duration(1 * MINUTES + 40 * SECONDS) + .eut((int) TierEU.RECIPE_ZPM) + .addTo(AssemblyLine); // Energy Cluster GT_Values.RA.stdBuilder() - .metadata(RESEARCH_ITEM, ItemList.Energy_Module.get(1)) - .metadata(RESEARCH_TIME, 4 * HOURS) - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Americium, 32), - new Object[] { OrePrefixes.circuit.get(Materials.SuperconductorUHV), 1 }, - new Object[] { OrePrefixes.circuit.get(Materials.SuperconductorUHV), 1 }, - new Object[] { OrePrefixes.circuit.get(Materials.SuperconductorUHV), 1 }, - new Object[] { OrePrefixes.circuit.get(Materials.SuperconductorUHV), 1 }, - ItemList.Energy_Module.get(8), - ItemList.Field_Generator_ZPM.get(2), - ItemList.Circuit_Wafer_HPIC.get(64), - ItemList.Circuit_Wafer_HPIC.get(64), - ItemList.Circuit_Parts_DiodeASMD.get(16), - GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.NaquadahAlloy, 32)) - .itemOutputs(ItemList.Energy_Cluster.get(1)) - .fluidInputs( - new FluidStack(solderIndalloy, 2880), - new FluidStack(FluidRegistry.getFluid("ic2coolant"), 16000)) - .noFluidOutputs() - .duration(1 * MINUTES + 40 * SECONDS) - .eut(200000) - .addTo(AssemblyLine); + .metadata(RESEARCH_ITEM, ItemList.Energy_Module.get(1)) + .metadata(RESEARCH_TIME, 4 * HOURS) + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Americium, 32), + new Object[] { OrePrefixes.circuit.get(Materials.SuperconductorUHV), 1 }, + new Object[] { OrePrefixes.circuit.get(Materials.SuperconductorUHV), 1 }, + new Object[] { OrePrefixes.circuit.get(Materials.SuperconductorUHV), 1 }, + new Object[] { OrePrefixes.circuit.get(Materials.SuperconductorUHV), 1 }, + ItemList.Energy_Module.get(8), + ItemList.Field_Generator_ZPM.get(2), + ItemList.Circuit_Wafer_HPIC.get(64), + ItemList.Circuit_Wafer_HPIC.get(64), + ItemList.Circuit_Parts_DiodeASMD.get(16), + GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.NaquadahAlloy, 32)) + .itemOutputs(ItemList.Energy_Cluster.get(1)) + .fluidInputs( + new FluidStack(solderIndalloy, 2880), + new FluidStack(FluidRegistry.getFluid("ic2coolant"), 16000)) + .noFluidOutputs() + .duration(1 * MINUTES + 40 * SECONDS) + .eut(200000) + .addTo(AssemblyLine); // Integrated Ore Factory GT_Values.RA.stdBuilder() - .metadata(RESEARCH_ITEM, ItemList.Machine_IV_OreWasher.get(1)) - .metadata(RESEARCH_TIME, 6 * HOURS) - .itemInputs( - ItemList.Hull_MAX.get(1), - ItemList.Electric_Motor_UHV.get(32), - ItemList.Electric_Piston_UHV.get(8), - ItemList.Electric_Pump_UHV.get(16), - ItemList.Conveyor_Module_UHV.get(8), - ItemList.Robot_Arm_UHV.get(8), - new Object[] { OrePrefixes.circuit.get(Materials.Bio), 4 }, - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.wireGt04, Materials.Duranium, 32), - GT_OreDictUnificator.get(OrePrefixes.wireGt04, Materials.NaquadahAlloy, 32) }, - GT_OreDictUnificator.get(OrePrefixes.pipeMedium, Materials.Polybenzimidazole, 64), - new ItemStack[] { ItemList.Component_Grinder_Tungsten.get(64), - ItemList.Component_Grinder_Diamond.get(64) }, - GT_OreDictUnificator.get(OrePrefixes.plateDouble, Materials.StainlessSteel, 32), - GT_OreDictUnificator.get(OrePrefixes.rotor, Materials.Chrome, 16)) - .itemOutputs(ItemList.Ore_Processor.get(1)) - .fluidInputs(new FluidStack(solderIndalloy, 2880), Materials.Naquadria.getMolten(1440)) - .noFluidOutputs() - .duration(60 * SECONDS) - .eut(TierEU.RECIPE_UV) - .addTo(AssemblyLine); + .metadata(RESEARCH_ITEM, ItemList.Machine_IV_OreWasher.get(1)) + .metadata(RESEARCH_TIME, 6 * HOURS) + .itemInputs( + ItemList.Hull_MAX.get(1), + ItemList.Electric_Motor_UHV.get(32), + ItemList.Electric_Piston_UHV.get(8), + ItemList.Electric_Pump_UHV.get(16), + ItemList.Conveyor_Module_UHV.get(8), + ItemList.Robot_Arm_UHV.get(8), + new Object[] { OrePrefixes.circuit.get(Materials.Bio), 4 }, + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.wireGt04, Materials.Duranium, 32), + GT_OreDictUnificator.get(OrePrefixes.wireGt04, Materials.NaquadahAlloy, 32) }, + GT_OreDictUnificator.get(OrePrefixes.pipeMedium, Materials.Polybenzimidazole, 64), + new ItemStack[] { ItemList.Component_Grinder_Tungsten.get(64), + ItemList.Component_Grinder_Diamond.get(64) }, + GT_OreDictUnificator.get(OrePrefixes.plateDouble, Materials.StainlessSteel, 32), + GT_OreDictUnificator.get(OrePrefixes.rotor, Materials.Chrome, 16)) + .itemOutputs(ItemList.Ore_Processor.get(1)) + .fluidInputs(new FluidStack(solderIndalloy, 2880), Materials.Naquadria.getMolten(1440)) + .noFluidOutputs() + .duration(60 * SECONDS) + .eut(TierEU.RECIPE_UV) + .addTo(AssemblyLine); } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/AutoclaveRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/AutoclaveRecipes.java index 621900167a..13df75964b 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/AutoclaveRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/AutoclaveRecipes.java @@ -15,237 +15,237 @@ public class AutoclaveRecipes implements Runnable { @Override public void run() { GT_Values.RA.stdBuilder() - .itemInputs(ItemList.IC2_Energium_Dust.get(9L)) - .itemOutputs(ItemList.IC2_EnergyCrystal.get(1L)) - .outputChances(10000) - .fluidInputs(Materials.EnergeticAlloy.getMolten(288)) - .noFluidOutputs() - .duration(30 * SECONDS) - .eut(256) - .addTo(sAutoclaveRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.IC2_Energium_Dust.get(9L)) - .itemOutputs(ItemList.IC2_EnergyCrystal.get(1L)) - .outputChances(10000) - .fluidInputs(Materials.ConductiveIron.getMolten(576)) - .noFluidOutputs() - .duration(60 * SECONDS) - .eut(256) - .addTo(sAutoclaveRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(AppliedEnergistics2.ID, "item.ItemCrystalSeed", 1L, 0)) - .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 10)) - .outputChances(8000) - .fluidInputs(Materials.Water.getFluid(200L)) - .noFluidOutputs() - .duration(1 * MINUTES + 40 * SECONDS) - .eut(24) - .addTo(sAutoclaveRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(AppliedEnergistics2.ID, "item.ItemCrystalSeed", 1L, 600)) - .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 11)) - .outputChances(8000) - .fluidInputs(Materials.Water.getFluid(200L)) - .noFluidOutputs() - .duration(1 * MINUTES + 40 * SECONDS) - .eut(24) - .addTo(sAutoclaveRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(AppliedEnergistics2.ID, "item.ItemCrystalSeed", 1L, 1200)) - .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 12)) - .outputChances(8000) - .fluidInputs(Materials.Water.getFluid(200L)) - .noFluidOutputs() - .duration(1 * MINUTES + 40 * SECONDS) - .eut(24) - .addTo(sAutoclaveRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(AppliedEnergistics2.ID, "item.ItemCrystalSeed", 1L, 0)) - .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 10)) - .outputChances(9000) - .fluidInputs(GT_ModHandler.getDistilledWater(100L)) - .noFluidOutputs() - .duration(50 * SECONDS) - .eut(24) - .addTo(sAutoclaveRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(AppliedEnergistics2.ID, "item.ItemCrystalSeed", 1L, 600)) - .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 11)) - .outputChances(9000) - .fluidInputs(GT_ModHandler.getDistilledWater(100L)) - .noFluidOutputs() - .duration(50 * SECONDS) - .eut(24) - .addTo(sAutoclaveRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(AppliedEnergistics2.ID, "item.ItemCrystalSeed", 1L, 1200)) - .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 12)) - .outputChances(9000) - .fluidInputs(GT_ModHandler.getDistilledWater(100L)) - .noFluidOutputs() - .duration(50 * SECONDS) - .eut(24) - .addTo(sAutoclaveRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(AppliedEnergistics2.ID, "item.ItemCrystalSeed", 1L, 0)) - .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 10)) - .outputChances(10000) - .fluidInputs(Materials.Void.getMolten(36L)) - .noFluidOutputs() - .duration(25 * SECONDS) - .eut(24) - .addTo(sAutoclaveRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(AppliedEnergistics2.ID, "item.ItemCrystalSeed", 1L, 600)) - .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 11)) - .outputChances(10000) - .fluidInputs(Materials.Void.getMolten(36L)) - .noFluidOutputs() - .duration(25 * SECONDS) - .eut(24) - .addTo(sAutoclaveRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(AppliedEnergistics2.ID, "item.ItemCrystalSeed", 1L, 1200)) - .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 12)) - .outputChances(10000) - .fluidInputs(Materials.Void.getMolten(36L)) - .noFluidOutputs() - .duration(25 * SECONDS) - .eut(24) - .addTo(sAutoclaveRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Carbon, 32)) - .itemOutputs(GT_ModHandler.getIC2Item("carbonFiber", 64L)) - .outputChances(10000) - .fluidInputs(Materials.Polybenzimidazole.getMolten(36L)) - .noFluidOutputs() - .duration(7 * SECONDS + 10 * TICKS) - .eut((int) TierEU.RECIPE_EV) - .addTo(sAutoclaveRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Carbon, 64)) - .itemOutputs(GT_ModHandler.getIC2Item("carbonFiber", 64L)) - .outputChances(10000) - .fluidInputs(Materials.Epoxid.getMolten(144L)) - .noFluidOutputs() - .duration(15 * SECONDS) - .eut((int) TierEU.RECIPE_HV) - .addTo(sAutoclaveRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Carbon, 64)) - .itemOutputs(GT_ModHandler.getIC2Item("carbonFiber", 32L)) - .outputChances(10000) - .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(288L)) - .noFluidOutputs() - .duration(20 * SECONDS) - .eut((int) TierEU.RECIPE_MV) - .addTo(sAutoclaveRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Carbon, 64)) - .itemOutputs(GT_ModHandler.getIC2Item("carbonFiber", 16L)) - .outputChances(10000) - .fluidInputs(Materials.Plastic.getMolten(576L)) - .noFluidOutputs() - .duration(30 * SECONDS) - .eut((int) TierEU.RECIPE_LV) - .addTo(sAutoclaveRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.NetherStar, 1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.NetherStar, 1)) - .outputChances(3333) - .fluidInputs(Materials.UUMatter.getFluid(576L)) - .noFluidOutputs() - .duration(60 * MINUTES) - .eut((int) TierEU.RECIPE_HV) - .addTo(sAutoclaveRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(ItemList.QuantumStar.get(1L))) - .itemOutputs(ItemList.Gravistar.get(1L)) - .outputChances(10000) - .fluidInputs(Materials.Neutronium.getMolten(288)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut((int) TierEU.RECIPE_IV) - .addTo(sAutoclaveRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(ItemList.Gravistar.get(16L))) - .itemOutputs(ItemList.NuclearStar.get(1L)) - .outputChances(10000) - .fluidInputs(Materials.Infinity.getMolten(288)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_UEV) - .addTo(sAutoclaveRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.SiliconDioxide.getDust(1)) - .itemOutputs(Materials.Quartzite.getGems(1)) - .outputChances(750) - .fluidInputs(Materials.Water.getFluid(200L)) - .noFluidOutputs() - .duration(1 * MINUTES + 40 * SECONDS) - .eut(24) - .addTo(sAutoclaveRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.SiliconDioxide.getDust(1)) - .itemOutputs(Materials.Quartzite.getGems(1)) - .outputChances(1000) - .fluidInputs(GT_ModHandler.getDistilledWater(100L)) - .noFluidOutputs() - .duration(1 * MINUTES + 15 * SECONDS) - .eut(24) - .addTo(sAutoclaveRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.SiliconDioxide.getDust(1)) - .itemOutputs(Materials.Quartzite.getGems(1)) - .outputChances(10000) - .fluidInputs(Materials.Void.getMolten(36L)) - .noFluidOutputs() - .duration(50 * SECONDS) - .eut(24) - .addTo(sAutoclaveRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silicon, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconDioxide, 3)) - .outputChances(7500) - .fluidInputs(Materials.Water.getFluid(1000L)) - .noFluidOutputs() - .duration(60 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAutoclaveRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silicon, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconDioxide, 3)) - .outputChances(9000) - .fluidInputs(GT_ModHandler.getDistilledWater(1000L)) - .noFluidOutputs() - .duration(60 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAutoclaveRecipes); + .itemInputs(ItemList.IC2_Energium_Dust.get(9L)) + .itemOutputs(ItemList.IC2_EnergyCrystal.get(1L)) + .outputChances(10000) + .fluidInputs(Materials.EnergeticAlloy.getMolten(288)) + .noFluidOutputs() + .duration(30 * SECONDS) + .eut(256) + .addTo(sAutoclaveRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.IC2_Energium_Dust.get(9L)) + .itemOutputs(ItemList.IC2_EnergyCrystal.get(1L)) + .outputChances(10000) + .fluidInputs(Materials.ConductiveIron.getMolten(576)) + .noFluidOutputs() + .duration(60 * SECONDS) + .eut(256) + .addTo(sAutoclaveRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(AppliedEnergistics2.ID, "item.ItemCrystalSeed", 1L, 0)) + .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 10)) + .outputChances(8000) + .fluidInputs(Materials.Water.getFluid(200L)) + .noFluidOutputs() + .duration(1 * MINUTES + 40 * SECONDS) + .eut(24) + .addTo(sAutoclaveRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(AppliedEnergistics2.ID, "item.ItemCrystalSeed", 1L, 600)) + .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 11)) + .outputChances(8000) + .fluidInputs(Materials.Water.getFluid(200L)) + .noFluidOutputs() + .duration(1 * MINUTES + 40 * SECONDS) + .eut(24) + .addTo(sAutoclaveRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(AppliedEnergistics2.ID, "item.ItemCrystalSeed", 1L, 1200)) + .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 12)) + .outputChances(8000) + .fluidInputs(Materials.Water.getFluid(200L)) + .noFluidOutputs() + .duration(1 * MINUTES + 40 * SECONDS) + .eut(24) + .addTo(sAutoclaveRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(AppliedEnergistics2.ID, "item.ItemCrystalSeed", 1L, 0)) + .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 10)) + .outputChances(9000) + .fluidInputs(GT_ModHandler.getDistilledWater(100L)) + .noFluidOutputs() + .duration(50 * SECONDS) + .eut(24) + .addTo(sAutoclaveRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(AppliedEnergistics2.ID, "item.ItemCrystalSeed", 1L, 600)) + .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 11)) + .outputChances(9000) + .fluidInputs(GT_ModHandler.getDistilledWater(100L)) + .noFluidOutputs() + .duration(50 * SECONDS) + .eut(24) + .addTo(sAutoclaveRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(AppliedEnergistics2.ID, "item.ItemCrystalSeed", 1L, 1200)) + .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 12)) + .outputChances(9000) + .fluidInputs(GT_ModHandler.getDistilledWater(100L)) + .noFluidOutputs() + .duration(50 * SECONDS) + .eut(24) + .addTo(sAutoclaveRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(AppliedEnergistics2.ID, "item.ItemCrystalSeed", 1L, 0)) + .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 10)) + .outputChances(10000) + .fluidInputs(Materials.Void.getMolten(36L)) + .noFluidOutputs() + .duration(25 * SECONDS) + .eut(24) + .addTo(sAutoclaveRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(AppliedEnergistics2.ID, "item.ItemCrystalSeed", 1L, 600)) + .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 11)) + .outputChances(10000) + .fluidInputs(Materials.Void.getMolten(36L)) + .noFluidOutputs() + .duration(25 * SECONDS) + .eut(24) + .addTo(sAutoclaveRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(AppliedEnergistics2.ID, "item.ItemCrystalSeed", 1L, 1200)) + .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 12)) + .outputChances(10000) + .fluidInputs(Materials.Void.getMolten(36L)) + .noFluidOutputs() + .duration(25 * SECONDS) + .eut(24) + .addTo(sAutoclaveRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Carbon, 32)) + .itemOutputs(GT_ModHandler.getIC2Item("carbonFiber", 64L)) + .outputChances(10000) + .fluidInputs(Materials.Polybenzimidazole.getMolten(36L)) + .noFluidOutputs() + .duration(7 * SECONDS + 10 * TICKS) + .eut((int) TierEU.RECIPE_EV) + .addTo(sAutoclaveRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Carbon, 64)) + .itemOutputs(GT_ModHandler.getIC2Item("carbonFiber", 64L)) + .outputChances(10000) + .fluidInputs(Materials.Epoxid.getMolten(144L)) + .noFluidOutputs() + .duration(15 * SECONDS) + .eut((int) TierEU.RECIPE_HV) + .addTo(sAutoclaveRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Carbon, 64)) + .itemOutputs(GT_ModHandler.getIC2Item("carbonFiber", 32L)) + .outputChances(10000) + .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(288L)) + .noFluidOutputs() + .duration(20 * SECONDS) + .eut((int) TierEU.RECIPE_MV) + .addTo(sAutoclaveRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Carbon, 64)) + .itemOutputs(GT_ModHandler.getIC2Item("carbonFiber", 16L)) + .outputChances(10000) + .fluidInputs(Materials.Plastic.getMolten(576L)) + .noFluidOutputs() + .duration(30 * SECONDS) + .eut((int) TierEU.RECIPE_LV) + .addTo(sAutoclaveRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.NetherStar, 1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.NetherStar, 1)) + .outputChances(3333) + .fluidInputs(Materials.UUMatter.getFluid(576L)) + .noFluidOutputs() + .duration(60 * MINUTES) + .eut((int) TierEU.RECIPE_HV) + .addTo(sAutoclaveRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(ItemList.QuantumStar.get(1L))) + .itemOutputs(ItemList.Gravistar.get(1L)) + .outputChances(10000) + .fluidInputs(Materials.Neutronium.getMolten(288)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut((int) TierEU.RECIPE_IV) + .addTo(sAutoclaveRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(ItemList.Gravistar.get(16L))) + .itemOutputs(ItemList.NuclearStar.get(1L)) + .outputChances(10000) + .fluidInputs(Materials.Infinity.getMolten(288)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_UEV) + .addTo(sAutoclaveRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.SiliconDioxide.getDust(1)) + .itemOutputs(Materials.Quartzite.getGems(1)) + .outputChances(750) + .fluidInputs(Materials.Water.getFluid(200L)) + .noFluidOutputs() + .duration(1 * MINUTES + 40 * SECONDS) + .eut(24) + .addTo(sAutoclaveRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.SiliconDioxide.getDust(1)) + .itemOutputs(Materials.Quartzite.getGems(1)) + .outputChances(1000) + .fluidInputs(GT_ModHandler.getDistilledWater(100L)) + .noFluidOutputs() + .duration(1 * MINUTES + 15 * SECONDS) + .eut(24) + .addTo(sAutoclaveRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.SiliconDioxide.getDust(1)) + .itemOutputs(Materials.Quartzite.getGems(1)) + .outputChances(10000) + .fluidInputs(Materials.Void.getMolten(36L)) + .noFluidOutputs() + .duration(50 * SECONDS) + .eut(24) + .addTo(sAutoclaveRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silicon, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconDioxide, 3)) + .outputChances(7500) + .fluidInputs(Materials.Water.getFluid(1000L)) + .noFluidOutputs() + .duration(60 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAutoclaveRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silicon, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconDioxide, 3)) + .outputChances(9000) + .fluidInputs(GT_ModHandler.getDistilledWater(1000L)) + .noFluidOutputs() + .duration(60 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAutoclaveRecipes); } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/BenderRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/BenderRecipes.java index eed056c59c..f5e99899f2 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/BenderRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/BenderRecipes.java @@ -17,362 +17,362 @@ public class BenderRecipes implements Runnable { @Override public void run() { GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Aluminium, 20L), - GT_Utility.getIntegratedCircuit(10)) - .itemOutputs(ItemList.RC_Rail_Standard.get(64L)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sBenderRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Iron, 48L), - GT_Utility.getIntegratedCircuit(10)) - .itemOutputs(ItemList.RC_Rail_Standard.get(64L)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sBenderRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.WroughtIron, 32L), - GT_Utility.getIntegratedCircuit(10)) - .itemOutputs(ItemList.RC_Rail_Standard.get(64L)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sBenderRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Bronze, 32L), - GT_Utility.getIntegratedCircuit(10)) - .itemOutputs(ItemList.RC_Rail_Standard.get(64L)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sBenderRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Steel, 24L), - GT_Utility.getIntegratedCircuit(10)) - .itemOutputs(ItemList.RC_Rail_Standard.get(64L)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sBenderRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.StainlessSteel, 16L), - GT_Utility.getIntegratedCircuit(10)) - .itemOutputs(ItemList.RC_Rail_Standard.get(64L)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sBenderRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Titanium, 12L), - GT_Utility.getIntegratedCircuit(10)) - .itemOutputs(ItemList.RC_Rail_Standard.get(64L)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sBenderRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.TungstenSteel, 9L), - GT_Utility.getIntegratedCircuit(10)) - .itemOutputs(ItemList.RC_Rail_Standard.get(64L)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sBenderRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Iridium, 6L), - GT_Utility.getIntegratedCircuit(10)) - .itemOutputs(ItemList.RC_Rail_Standard.get(64L)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sBenderRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Osmium, 3L), - GT_Utility.getIntegratedCircuit(10)) - .itemOutputs(ItemList.RC_Rail_Standard.get(64L)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sBenderRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Osmiridium, 2L), - GT_Utility.getIntegratedCircuit(10)) - .itemOutputs(ItemList.RC_Rail_Standard.get(64L)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sBenderRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Obsidian, 24L), - GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(ItemList.RC_Rail_Reinforced.get(64L)) - .noFluidInputs() - .noFluidOutputs() - .duration(30 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sBenderRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.StainlessSteel, 12L), - GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(ItemList.RC_Rail_Reinforced.get(64L)) - .noFluidInputs() - .noFluidOutputs() - .duration(30 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sBenderRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.TungstenSteel, 6L), - GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(ItemList.RC_Rail_Reinforced.get(64L)) - .noFluidInputs() - .noFluidOutputs() - .duration(30 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sBenderRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Iridium, 3L), - GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(ItemList.RC_Rail_Reinforced.get(64L)) - .noFluidInputs() - .noFluidOutputs() - .duration(30 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sBenderRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Osmium, 1L), - GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(ItemList.RC_Rail_Reinforced.get(64L)) - .noFluidInputs() - .noFluidOutputs() - .duration(30 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sBenderRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Aluminium, 20L), - GT_Utility.getIntegratedCircuit(12)) - .itemOutputs(ItemList.RC_Rebar.get(64L)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(200) - .addTo(sBenderRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Iron, 48L), - GT_Utility.getIntegratedCircuit(12)) - .itemOutputs(ItemList.RC_Rebar.get(64L)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(200) - .addTo(sBenderRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.WroughtIron, 24L), - GT_Utility.getIntegratedCircuit(12)) - .itemOutputs(ItemList.RC_Rebar.get(64L)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(200) - .addTo(sBenderRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Bronze, 32L), - GT_Utility.getIntegratedCircuit(12)) - .itemOutputs(ItemList.RC_Rebar.get(64L)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(200) - .addTo(sBenderRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Steel, 16L), - GT_Utility.getIntegratedCircuit(12)) - .itemOutputs(ItemList.RC_Rebar.get(64L)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(200) - .addTo(sBenderRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.StainlessSteel, 12L), - GT_Utility.getIntegratedCircuit(12)) - .itemOutputs(ItemList.RC_Rebar.get(64L)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(200) - .addTo(sBenderRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Titanium, 8), - GT_Utility.getIntegratedCircuit(12)) - .itemOutputs(ItemList.RC_Rebar.get(64L)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(200) - .addTo(sBenderRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.TungstenSteel, 6L), - GT_Utility.getIntegratedCircuit(12)) - .itemOutputs(ItemList.RC_Rebar.get(64L)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(200) - .addTo(sBenderRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Iridium, 4L), - GT_Utility.getIntegratedCircuit(12)) - .itemOutputs(ItemList.RC_Rebar.get(64L)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(200) - .addTo(sBenderRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Osmium, 2L), - GT_Utility.getIntegratedCircuit(12)) - .itemOutputs(ItemList.RC_Rebar.get(64L)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(200) - .addTo(sBenderRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.IC2_Mixed_Metal_Ingot.get(1L)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.plateAlloy, Materials.Advanced, 1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(8) - .addTo(sBenderRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Tin, 12L)) - .itemOutputs(ItemList.Cell_Empty.get(6L)) - .noFluidInputs() - .noFluidOutputs() - .duration(60 * SECONDS) - .eut(8) - .addTo(sBenderRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Steel, 12L)) - .itemOutputs(ItemList.Cell_Empty.get(12L)) - .noFluidInputs() - .noFluidOutputs() - .duration(60 * SECONDS) - .eut(8) - .addTo(sBenderRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Polytetrafluoroethylene, 12L)) - .itemOutputs(ItemList.Cell_Empty.get(48L)) - .noFluidInputs() - .noFluidOutputs() - .duration(60 * SECONDS) - .eut(8) - .addTo(sBenderRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 12L)) - .itemOutputs(new ItemStack(Items.bucket, 4, 0)) - .noFluidInputs() - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(4) - .addTo(sBenderRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 12L)) - .itemOutputs(new ItemStack(Items.bucket, 4, 0)) - .noFluidInputs() - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(4) - .addTo(sBenderRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.itemCasing, Materials.Iron, 2L)) - .itemOutputs(GT_ModHandler.getIC2Item("fuelRod", 1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(8) - .addTo(sBenderRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.itemCasing, Materials.Tin, 1L)) - .itemOutputs(ItemList.IC2_Food_Can_Empty.get(1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * TICKS) - .eut((int) TierEU.RECIPE_HV) - .addTo(sBenderRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Aluminium, 20L), + GT_Utility.getIntegratedCircuit(10)) + .itemOutputs(ItemList.RC_Rail_Standard.get(64L)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sBenderRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Iron, 48L), + GT_Utility.getIntegratedCircuit(10)) + .itemOutputs(ItemList.RC_Rail_Standard.get(64L)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sBenderRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.WroughtIron, 32L), + GT_Utility.getIntegratedCircuit(10)) + .itemOutputs(ItemList.RC_Rail_Standard.get(64L)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sBenderRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Bronze, 32L), + GT_Utility.getIntegratedCircuit(10)) + .itemOutputs(ItemList.RC_Rail_Standard.get(64L)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sBenderRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Steel, 24L), + GT_Utility.getIntegratedCircuit(10)) + .itemOutputs(ItemList.RC_Rail_Standard.get(64L)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sBenderRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.StainlessSteel, 16L), + GT_Utility.getIntegratedCircuit(10)) + .itemOutputs(ItemList.RC_Rail_Standard.get(64L)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sBenderRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Titanium, 12L), + GT_Utility.getIntegratedCircuit(10)) + .itemOutputs(ItemList.RC_Rail_Standard.get(64L)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sBenderRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.TungstenSteel, 9L), + GT_Utility.getIntegratedCircuit(10)) + .itemOutputs(ItemList.RC_Rail_Standard.get(64L)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sBenderRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Iridium, 6L), + GT_Utility.getIntegratedCircuit(10)) + .itemOutputs(ItemList.RC_Rail_Standard.get(64L)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sBenderRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Osmium, 3L), + GT_Utility.getIntegratedCircuit(10)) + .itemOutputs(ItemList.RC_Rail_Standard.get(64L)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sBenderRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Osmiridium, 2L), + GT_Utility.getIntegratedCircuit(10)) + .itemOutputs(ItemList.RC_Rail_Standard.get(64L)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sBenderRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Obsidian, 24L), + GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(ItemList.RC_Rail_Reinforced.get(64L)) + .noFluidInputs() + .noFluidOutputs() + .duration(30 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sBenderRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.StainlessSteel, 12L), + GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(ItemList.RC_Rail_Reinforced.get(64L)) + .noFluidInputs() + .noFluidOutputs() + .duration(30 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sBenderRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.TungstenSteel, 6L), + GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(ItemList.RC_Rail_Reinforced.get(64L)) + .noFluidInputs() + .noFluidOutputs() + .duration(30 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sBenderRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Iridium, 3L), + GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(ItemList.RC_Rail_Reinforced.get(64L)) + .noFluidInputs() + .noFluidOutputs() + .duration(30 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sBenderRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Osmium, 1L), + GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(ItemList.RC_Rail_Reinforced.get(64L)) + .noFluidInputs() + .noFluidOutputs() + .duration(30 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sBenderRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Aluminium, 20L), + GT_Utility.getIntegratedCircuit(12)) + .itemOutputs(ItemList.RC_Rebar.get(64L)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(200) + .addTo(sBenderRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Iron, 48L), + GT_Utility.getIntegratedCircuit(12)) + .itemOutputs(ItemList.RC_Rebar.get(64L)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(200) + .addTo(sBenderRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.WroughtIron, 24L), + GT_Utility.getIntegratedCircuit(12)) + .itemOutputs(ItemList.RC_Rebar.get(64L)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(200) + .addTo(sBenderRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Bronze, 32L), + GT_Utility.getIntegratedCircuit(12)) + .itemOutputs(ItemList.RC_Rebar.get(64L)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(200) + .addTo(sBenderRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Steel, 16L), + GT_Utility.getIntegratedCircuit(12)) + .itemOutputs(ItemList.RC_Rebar.get(64L)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(200) + .addTo(sBenderRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.StainlessSteel, 12L), + GT_Utility.getIntegratedCircuit(12)) + .itemOutputs(ItemList.RC_Rebar.get(64L)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(200) + .addTo(sBenderRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Titanium, 8), + GT_Utility.getIntegratedCircuit(12)) + .itemOutputs(ItemList.RC_Rebar.get(64L)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(200) + .addTo(sBenderRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.TungstenSteel, 6L), + GT_Utility.getIntegratedCircuit(12)) + .itemOutputs(ItemList.RC_Rebar.get(64L)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(200) + .addTo(sBenderRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Iridium, 4L), + GT_Utility.getIntegratedCircuit(12)) + .itemOutputs(ItemList.RC_Rebar.get(64L)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(200) + .addTo(sBenderRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Osmium, 2L), + GT_Utility.getIntegratedCircuit(12)) + .itemOutputs(ItemList.RC_Rebar.get(64L)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(200) + .addTo(sBenderRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.IC2_Mixed_Metal_Ingot.get(1L)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.plateAlloy, Materials.Advanced, 1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(8) + .addTo(sBenderRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Tin, 12L)) + .itemOutputs(ItemList.Cell_Empty.get(6L)) + .noFluidInputs() + .noFluidOutputs() + .duration(60 * SECONDS) + .eut(8) + .addTo(sBenderRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Steel, 12L)) + .itemOutputs(ItemList.Cell_Empty.get(12L)) + .noFluidInputs() + .noFluidOutputs() + .duration(60 * SECONDS) + .eut(8) + .addTo(sBenderRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Polytetrafluoroethylene, 12L)) + .itemOutputs(ItemList.Cell_Empty.get(48L)) + .noFluidInputs() + .noFluidOutputs() + .duration(60 * SECONDS) + .eut(8) + .addTo(sBenderRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 12L)) + .itemOutputs(new ItemStack(Items.bucket, 4, 0)) + .noFluidInputs() + .noFluidOutputs() + .duration(40 * SECONDS) + .eut(4) + .addTo(sBenderRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 12L)) + .itemOutputs(new ItemStack(Items.bucket, 4, 0)) + .noFluidInputs() + .noFluidOutputs() + .duration(40 * SECONDS) + .eut(4) + .addTo(sBenderRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.itemCasing, Materials.Iron, 2L)) + .itemOutputs(GT_ModHandler.getIC2Item("fuelRod", 1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(8) + .addTo(sBenderRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.itemCasing, Materials.Tin, 1L)) + .itemOutputs(ItemList.IC2_Food_Can_Empty.get(1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * TICKS) + .eut((int) TierEU.RECIPE_HV) + .addTo(sBenderRecipes); } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/BlastFurnaceRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/BlastFurnaceRecipes.java index 68a63a0115..ce935cf5ec 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/BlastFurnaceRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/BlastFurnaceRecipes.java @@ -27,687 +27,687 @@ public class BlastFurnaceRecipes implements Runnable { public void registerBlastFurnaceRecipes() { GT_Values.RA.stdBuilder() - .itemInputs(Materials.Gypsum.getDust(8)) - .itemOutputs(Materials.Quicklime.getDust(1)) - .noFluidInputs() - .fluidOutputs(Materials.DilutedSulfuricAcid.getFluid(1500)) - .duration(10 * SECONDS) - .eut((int) TierEU.RECIPE_HV) - .metadata(COIL_HEAT, 3200) - .addTo(sBlastRecipes); + .itemInputs(Materials.Gypsum.getDust(8)) + .itemOutputs(Materials.Quicklime.getDust(1)) + .noFluidInputs() + .fluidOutputs(Materials.DilutedSulfuricAcid.getFluid(1500)) + .duration(10 * SECONDS) + .eut((int) TierEU.RECIPE_HV) + .metadata(COIL_HEAT, 3200) + .addTo(sBlastRecipes); // Carbothermic Reduction // Depend on real amount except real ores int outputIngotAmount = GT_Mod.gregtechproxy.mMixedOreOnlyYieldsTwoThirdsOfPureOre ? 2 : 3; GT_Values.RA.stdBuilder() - .itemInputs(Materials.RoastedCopper.getDust(2), Materials.Carbon.getDust(1)) - .itemOutputs(Materials.Copper.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) - .noFluidInputs() - .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) - .duration(12 * SECONDS) - .eut((int) TierEU.RECIPE_MV) - .metadata(COIL_HEAT, 1200) - .addTo(sBlastRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.RoastedAntimony.getDust(2), Materials.Carbon.getDust(1)) - .itemOutputs(Materials.Antimony.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) - .noFluidInputs() - .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) - .duration(12 * SECONDS) - .eut((int) TierEU.RECIPE_MV) - .metadata(COIL_HEAT, 1200) - .addTo(sBlastRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.RoastedIron.getDust(2), Materials.Carbon.getDust(1)) - .itemOutputs(Materials.Iron.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) - .noFluidInputs() - .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) - .duration(12 * SECONDS) - .eut((int) TierEU.RECIPE_MV) - .metadata(COIL_HEAT, 1200) - .addTo(sBlastRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.RoastedNickel.getDust(2), Materials.Carbon.getDust(1)) - .itemOutputs(Materials.Nickel.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) - .noFluidInputs() - .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) - .duration(12 * SECONDS) - .eut((int) TierEU.RECIPE_MV) - .metadata(COIL_HEAT, 1200) - .addTo(sBlastRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.RoastedZinc.getDust(2), Materials.Carbon.getDust(1)) - .itemOutputs(Materials.Zinc.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) - .noFluidInputs() - .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) - .duration(12 * SECONDS) - .eut((int) TierEU.RECIPE_MV) - .metadata(COIL_HEAT, 1200) - .addTo(sBlastRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.RoastedCobalt.getDust(2), Materials.Carbon.getDust(1)) - .itemOutputs(Materials.Cobalt.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) - .noFluidInputs() - .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) - .duration(12 * SECONDS) - .eut((int) TierEU.RECIPE_MV) - .metadata(COIL_HEAT, 1200) - .addTo(sBlastRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.RoastedArsenic.getDust(2), Materials.Carbon.getDust(1)) - .itemOutputs(Materials.Arsenic.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) - .noFluidInputs() - .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) - .duration(12 * SECONDS) - .eut((int) TierEU.RECIPE_MV) - .metadata(COIL_HEAT, 1200) - .addTo(sBlastRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.RoastedLead.getDust(2), Materials.Carbon.getDust(1)) - .itemOutputs(Materials.Lead.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) - .noFluidInputs() - .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) - .duration(12 * SECONDS) - .eut((int) TierEU.RECIPE_MV) - .metadata(COIL_HEAT, 1200) - .addTo(sBlastRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Malachite.getDust(2), Materials.Carbon.getDust(1)) - .itemOutputs(Materials.Copper.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) - .noFluidInputs() - .fluidOutputs(Materials.CarbonDioxide.getGas(3000)) - .duration(12 * SECONDS) - .eut((int) TierEU.RECIPE_MV) - .metadata(COIL_HEAT, 1200) - .addTo(sBlastRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Magnetite.getDust(2), Materials.Carbon.getDust(1)) - .itemOutputs(Materials.Iron.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) - .noFluidInputs() - .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) - .duration(12 * SECONDS) - .eut((int) TierEU.RECIPE_MV) - .metadata(COIL_HEAT, 1200) - .addTo(sBlastRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.YellowLimonite.getDust(2), Materials.Carbon.getDust(1)) - .itemOutputs(Materials.Iron.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) - .noFluidInputs() - .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) - .duration(12 * SECONDS) - .eut((int) TierEU.RECIPE_MV) - .metadata(COIL_HEAT, 1200) - .addTo(sBlastRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.BrownLimonite.getDust(2), Materials.Carbon.getDust(1)) - .itemOutputs(Materials.Iron.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) - .noFluidInputs() - .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) - .duration(12 * SECONDS) - .eut((int) TierEU.RECIPE_MV) - .metadata(COIL_HEAT, 1200) - .addTo(sBlastRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.BasalticMineralSand.getDust(2), Materials.Carbon.getDust(1)) - .itemOutputs(Materials.Iron.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) - .noFluidInputs() - .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) - .duration(12 * SECONDS) - .eut((int) TierEU.RECIPE_MV) - .metadata(COIL_HEAT, 1200) - .addTo(sBlastRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.GraniticMineralSand.getDust(2), Materials.Carbon.getDust(1)) - .itemOutputs(Materials.Iron.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) - .noFluidInputs() - .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) - .duration(12 * SECONDS) - .eut((int) TierEU.RECIPE_MV) - .metadata(COIL_HEAT, 1200) - .addTo(sBlastRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Cassiterite.getDust(2), Materials.Carbon.getDust(1)) - .itemOutputs(Materials.Tin.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) - .noFluidInputs() - .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) - .duration(12 * SECONDS) - .eut((int) TierEU.RECIPE_MV) - .metadata(COIL_HEAT, 1200) - .addTo(sBlastRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.CassiteriteSand.getDust(2), Materials.Carbon.getDust(1)) - .itemOutputs(Materials.Tin.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) - .noFluidInputs() - .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) - .duration(12 * SECONDS) - .eut((int) TierEU.RECIPE_MV) - .metadata(COIL_HEAT, 1200) - .addTo(sBlastRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.SiliconDioxide.getDust(3), Materials.Carbon.getDust(2)) - .itemOutputs(Materials.Silicon.getIngots(1), Materials.Ash.getDustTiny(1)) - .noFluidInputs() - .fluidOutputs(Materials.CarbonMonoxide.getGas(2000)) - .duration(4 * SECONDS) - .eut((int) TierEU.RECIPE_MV) - .metadata(COIL_HEAT, 1200) - .addTo(sBlastRecipes); + .itemInputs(Materials.RoastedCopper.getDust(2), Materials.Carbon.getDust(1)) + .itemOutputs(Materials.Copper.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) + .noFluidInputs() + .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) + .duration(12 * SECONDS) + .eut((int) TierEU.RECIPE_MV) + .metadata(COIL_HEAT, 1200) + .addTo(sBlastRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.RoastedAntimony.getDust(2), Materials.Carbon.getDust(1)) + .itemOutputs(Materials.Antimony.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) + .noFluidInputs() + .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) + .duration(12 * SECONDS) + .eut((int) TierEU.RECIPE_MV) + .metadata(COIL_HEAT, 1200) + .addTo(sBlastRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.RoastedIron.getDust(2), Materials.Carbon.getDust(1)) + .itemOutputs(Materials.Iron.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) + .noFluidInputs() + .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) + .duration(12 * SECONDS) + .eut((int) TierEU.RECIPE_MV) + .metadata(COIL_HEAT, 1200) + .addTo(sBlastRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.RoastedNickel.getDust(2), Materials.Carbon.getDust(1)) + .itemOutputs(Materials.Nickel.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) + .noFluidInputs() + .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) + .duration(12 * SECONDS) + .eut((int) TierEU.RECIPE_MV) + .metadata(COIL_HEAT, 1200) + .addTo(sBlastRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.RoastedZinc.getDust(2), Materials.Carbon.getDust(1)) + .itemOutputs(Materials.Zinc.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) + .noFluidInputs() + .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) + .duration(12 * SECONDS) + .eut((int) TierEU.RECIPE_MV) + .metadata(COIL_HEAT, 1200) + .addTo(sBlastRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.RoastedCobalt.getDust(2), Materials.Carbon.getDust(1)) + .itemOutputs(Materials.Cobalt.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) + .noFluidInputs() + .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) + .duration(12 * SECONDS) + .eut((int) TierEU.RECIPE_MV) + .metadata(COIL_HEAT, 1200) + .addTo(sBlastRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.RoastedArsenic.getDust(2), Materials.Carbon.getDust(1)) + .itemOutputs(Materials.Arsenic.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) + .noFluidInputs() + .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) + .duration(12 * SECONDS) + .eut((int) TierEU.RECIPE_MV) + .metadata(COIL_HEAT, 1200) + .addTo(sBlastRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.RoastedLead.getDust(2), Materials.Carbon.getDust(1)) + .itemOutputs(Materials.Lead.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) + .noFluidInputs() + .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) + .duration(12 * SECONDS) + .eut((int) TierEU.RECIPE_MV) + .metadata(COIL_HEAT, 1200) + .addTo(sBlastRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Malachite.getDust(2), Materials.Carbon.getDust(1)) + .itemOutputs(Materials.Copper.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) + .noFluidInputs() + .fluidOutputs(Materials.CarbonDioxide.getGas(3000)) + .duration(12 * SECONDS) + .eut((int) TierEU.RECIPE_MV) + .metadata(COIL_HEAT, 1200) + .addTo(sBlastRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Magnetite.getDust(2), Materials.Carbon.getDust(1)) + .itemOutputs(Materials.Iron.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) + .noFluidInputs() + .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) + .duration(12 * SECONDS) + .eut((int) TierEU.RECIPE_MV) + .metadata(COIL_HEAT, 1200) + .addTo(sBlastRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.YellowLimonite.getDust(2), Materials.Carbon.getDust(1)) + .itemOutputs(Materials.Iron.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) + .noFluidInputs() + .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) + .duration(12 * SECONDS) + .eut((int) TierEU.RECIPE_MV) + .metadata(COIL_HEAT, 1200) + .addTo(sBlastRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.BrownLimonite.getDust(2), Materials.Carbon.getDust(1)) + .itemOutputs(Materials.Iron.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) + .noFluidInputs() + .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) + .duration(12 * SECONDS) + .eut((int) TierEU.RECIPE_MV) + .metadata(COIL_HEAT, 1200) + .addTo(sBlastRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.BasalticMineralSand.getDust(2), Materials.Carbon.getDust(1)) + .itemOutputs(Materials.Iron.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) + .noFluidInputs() + .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) + .duration(12 * SECONDS) + .eut((int) TierEU.RECIPE_MV) + .metadata(COIL_HEAT, 1200) + .addTo(sBlastRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.GraniticMineralSand.getDust(2), Materials.Carbon.getDust(1)) + .itemOutputs(Materials.Iron.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) + .noFluidInputs() + .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) + .duration(12 * SECONDS) + .eut((int) TierEU.RECIPE_MV) + .metadata(COIL_HEAT, 1200) + .addTo(sBlastRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Cassiterite.getDust(2), Materials.Carbon.getDust(1)) + .itemOutputs(Materials.Tin.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) + .noFluidInputs() + .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) + .duration(12 * SECONDS) + .eut((int) TierEU.RECIPE_MV) + .metadata(COIL_HEAT, 1200) + .addTo(sBlastRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.CassiteriteSand.getDust(2), Materials.Carbon.getDust(1)) + .itemOutputs(Materials.Tin.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) + .noFluidInputs() + .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) + .duration(12 * SECONDS) + .eut((int) TierEU.RECIPE_MV) + .metadata(COIL_HEAT, 1200) + .addTo(sBlastRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.SiliconDioxide.getDust(3), Materials.Carbon.getDust(2)) + .itemOutputs(Materials.Silicon.getIngots(1), Materials.Ash.getDustTiny(1)) + .noFluidInputs() + .fluidOutputs(Materials.CarbonMonoxide.getGas(2000)) + .duration(4 * SECONDS) + .eut((int) TierEU.RECIPE_MV) + .metadata(COIL_HEAT, 1200) + .addTo(sBlastRecipes); if (GT_Mod.gregtechproxy.mMixedOreOnlyYieldsTwoThirdsOfPureOre) { GT_Values.RA.stdBuilder() - .itemInputs(Materials.CupricOxide.getDust(2), Materials.Carbon.getDustSmall(4)) - .itemOutputs(Materials.Copper.getIngots(1), Materials.Ash.getDustTiny(2)) - .noFluidInputs() - .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) - .duration(12 * SECONDS) - .eut((int) TierEU.RECIPE_MV) - .metadata(COIL_HEAT, 1200) - .addTo(sBlastRecipes); + .itemInputs(Materials.CupricOxide.getDust(2), Materials.Carbon.getDustSmall(4)) + .itemOutputs(Materials.Copper.getIngots(1), Materials.Ash.getDustTiny(2)) + .noFluidInputs() + .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) + .duration(12 * SECONDS) + .eut((int) TierEU.RECIPE_MV) + .metadata(COIL_HEAT, 1200) + .addTo(sBlastRecipes); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Malachite.getDust(2), Materials.Carbon.getDustSmall(4)) - .itemOutputs(Materials.Copper.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) - .noFluidInputs() - .fluidOutputs(Materials.CarbonDioxide.getGas(3000)) - .duration(12 * SECONDS) - .eut((int) TierEU.RECIPE_MV) - .metadata(COIL_HEAT, 1200) - .addTo(sBlastRecipes); + .itemInputs(Materials.Malachite.getDust(2), Materials.Carbon.getDustSmall(4)) + .itemOutputs(Materials.Copper.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) + .noFluidInputs() + .fluidOutputs(Materials.CarbonDioxide.getGas(3000)) + .duration(12 * SECONDS) + .eut((int) TierEU.RECIPE_MV) + .metadata(COIL_HEAT, 1200) + .addTo(sBlastRecipes); GT_Values.RA.stdBuilder() - .itemInputs(Materials.AntimonyTrioxide.getDust(5), Materials.Carbon.getDustSmall(4)) - .itemOutputs(Materials.Antimony.getIngots(2), Materials.Ash.getDustTiny(2)) - .noFluidInputs() - .fluidOutputs(Materials.CarbonDioxide.getGas(3000)) - .duration(12 * SECONDS) - .eut((int) TierEU.RECIPE_MV) - .metadata(COIL_HEAT, 1200) - .addTo(sBlastRecipes); + .itemInputs(Materials.AntimonyTrioxide.getDust(5), Materials.Carbon.getDustSmall(4)) + .itemOutputs(Materials.Antimony.getIngots(2), Materials.Ash.getDustTiny(2)) + .noFluidInputs() + .fluidOutputs(Materials.CarbonDioxide.getGas(3000)) + .duration(12 * SECONDS) + .eut((int) TierEU.RECIPE_MV) + .metadata(COIL_HEAT, 1200) + .addTo(sBlastRecipes); GT_Values.RA.stdBuilder() - .itemInputs(Materials.BandedIron.getDust(5), Materials.Carbon.getDustSmall(4)) - .itemOutputs(Materials.Iron.getIngots(2), Materials.Ash.getDustTiny(2)) - .noFluidInputs() - .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) - .duration(12 * SECONDS) - .eut((int) TierEU.RECIPE_MV) - .metadata(COIL_HEAT, 1200) - .addTo(sBlastRecipes); + .itemInputs(Materials.BandedIron.getDust(5), Materials.Carbon.getDustSmall(4)) + .itemOutputs(Materials.Iron.getIngots(2), Materials.Ash.getDustTiny(2)) + .noFluidInputs() + .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) + .duration(12 * SECONDS) + .eut((int) TierEU.RECIPE_MV) + .metadata(COIL_HEAT, 1200) + .addTo(sBlastRecipes); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Magnetite.getDust(2), Materials.Carbon.getDustSmall(4)) - .itemOutputs(Materials.Iron.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) - .noFluidInputs() - .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) - .duration(12 * SECONDS) - .eut((int) TierEU.RECIPE_MV) - .metadata(COIL_HEAT, 1200) - .addTo(sBlastRecipes); + .itemInputs(Materials.Magnetite.getDust(2), Materials.Carbon.getDustSmall(4)) + .itemOutputs(Materials.Iron.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) + .noFluidInputs() + .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) + .duration(12 * SECONDS) + .eut((int) TierEU.RECIPE_MV) + .metadata(COIL_HEAT, 1200) + .addTo(sBlastRecipes); GT_Values.RA.stdBuilder() - .itemInputs(Materials.YellowLimonite.getDust(2), Materials.Carbon.getDustSmall(4)) - .itemOutputs(Materials.Iron.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) - .noFluidInputs() - .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) - .duration(12 * SECONDS) - .eut((int) TierEU.RECIPE_MV) - .metadata(COIL_HEAT, 1200) - .addTo(sBlastRecipes); + .itemInputs(Materials.YellowLimonite.getDust(2), Materials.Carbon.getDustSmall(4)) + .itemOutputs(Materials.Iron.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) + .noFluidInputs() + .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) + .duration(12 * SECONDS) + .eut((int) TierEU.RECIPE_MV) + .metadata(COIL_HEAT, 1200) + .addTo(sBlastRecipes); GT_Values.RA.stdBuilder() - .itemInputs(Materials.BrownLimonite.getDust(2), Materials.Carbon.getDustSmall(4)) - .itemOutputs(Materials.Iron.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) - .noFluidInputs() - .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) - .duration(12 * SECONDS) - .eut((int) TierEU.RECIPE_MV) - .metadata(COIL_HEAT, 1200) - .addTo(sBlastRecipes); + .itemInputs(Materials.BrownLimonite.getDust(2), Materials.Carbon.getDustSmall(4)) + .itemOutputs(Materials.Iron.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) + .noFluidInputs() + .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) + .duration(12 * SECONDS) + .eut((int) TierEU.RECIPE_MV) + .metadata(COIL_HEAT, 1200) + .addTo(sBlastRecipes); GT_Values.RA.stdBuilder() - .itemInputs(Materials.BasalticMineralSand.getDust(2), Materials.Carbon.getDustSmall(4)) - .itemOutputs(Materials.Iron.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) - .noFluidInputs() - .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) - .duration(12 * SECONDS) - .eut((int) TierEU.RECIPE_MV) - .metadata(COIL_HEAT, 1200) - .addTo(sBlastRecipes); + .itemInputs(Materials.BasalticMineralSand.getDust(2), Materials.Carbon.getDustSmall(4)) + .itemOutputs(Materials.Iron.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) + .noFluidInputs() + .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) + .duration(12 * SECONDS) + .eut((int) TierEU.RECIPE_MV) + .metadata(COIL_HEAT, 1200) + .addTo(sBlastRecipes); GT_Values.RA.stdBuilder() - .itemInputs(Materials.GraniticMineralSand.getDust(2), Materials.Carbon.getDustSmall(4)) - .itemOutputs(Materials.Iron.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) - .noFluidInputs() - .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) - .duration(12 * SECONDS) - .eut((int) TierEU.RECIPE_MV) - .metadata(COIL_HEAT, 1200) - .addTo(sBlastRecipes); + .itemInputs(Materials.GraniticMineralSand.getDust(2), Materials.Carbon.getDustSmall(4)) + .itemOutputs(Materials.Iron.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) + .noFluidInputs() + .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) + .duration(12 * SECONDS) + .eut((int) TierEU.RECIPE_MV) + .metadata(COIL_HEAT, 1200) + .addTo(sBlastRecipes); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Cassiterite.getDust(2), Materials.Carbon.getDustSmall(4)) - .itemOutputs(Materials.Tin.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) - .noFluidInputs() - .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) - .duration(12 * SECONDS) - .eut((int) TierEU.RECIPE_MV) - .metadata(COIL_HEAT, 1200) - .addTo(sBlastRecipes); + .itemInputs(Materials.Cassiterite.getDust(2), Materials.Carbon.getDustSmall(4)) + .itemOutputs(Materials.Tin.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) + .noFluidInputs() + .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) + .duration(12 * SECONDS) + .eut((int) TierEU.RECIPE_MV) + .metadata(COIL_HEAT, 1200) + .addTo(sBlastRecipes); GT_Values.RA.stdBuilder() - .itemInputs(Materials.CassiteriteSand.getDust(2), Materials.Carbon.getDustSmall(4)) - .itemOutputs(Materials.Tin.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) - .noFluidInputs() - .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) - .duration(12 * SECONDS) - .eut((int) TierEU.RECIPE_MV) - .metadata(COIL_HEAT, 1200) - .addTo(sBlastRecipes); + .itemInputs(Materials.CassiteriteSand.getDust(2), Materials.Carbon.getDustSmall(4)) + .itemOutputs(Materials.Tin.getIngots(outputIngotAmount), Materials.Ash.getDustTiny(2)) + .noFluidInputs() + .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) + .duration(12 * SECONDS) + .eut((int) TierEU.RECIPE_MV) + .metadata(COIL_HEAT, 1200) + .addTo(sBlastRecipes); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Garnierite.getDust(2), Materials.Carbon.getDustSmall(4)) - .itemOutputs(Materials.Nickel.getIngots(1), Materials.Ash.getDustTiny(2)) - .noFluidInputs() - .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) - .duration(12 * SECONDS) - .eut((int) TierEU.RECIPE_MV) - .metadata(COIL_HEAT, 1200) - .addTo(sBlastRecipes); + .itemInputs(Materials.Garnierite.getDust(2), Materials.Carbon.getDustSmall(4)) + .itemOutputs(Materials.Nickel.getIngots(1), Materials.Ash.getDustTiny(2)) + .noFluidInputs() + .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) + .duration(12 * SECONDS) + .eut((int) TierEU.RECIPE_MV) + .metadata(COIL_HEAT, 1200) + .addTo(sBlastRecipes); GT_Values.RA.stdBuilder() - .itemInputs(Materials.CobaltOxide.getDust(2), Materials.Carbon.getDustSmall(4)) - .itemOutputs(Materials.Cobalt.getIngots(1), Materials.Ash.getDustTiny(2)) - .noFluidInputs() - .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) - .duration(12 * SECONDS) - .eut((int) TierEU.RECIPE_MV) - .metadata(COIL_HEAT, 1200) - .addTo(sBlastRecipes); + .itemInputs(Materials.CobaltOxide.getDust(2), Materials.Carbon.getDustSmall(4)) + .itemOutputs(Materials.Cobalt.getIngots(1), Materials.Ash.getDustTiny(2)) + .noFluidInputs() + .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) + .duration(12 * SECONDS) + .eut((int) TierEU.RECIPE_MV) + .metadata(COIL_HEAT, 1200) + .addTo(sBlastRecipes); GT_Values.RA.stdBuilder() - .itemInputs(Materials.ArsenicTrioxide.getDust(5), Materials.Carbon.getDustSmall(4)) - .itemOutputs(Materials.Arsenic.getIngots(2), Materials.Ash.getDustTiny(2)) - .noFluidInputs() - .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) - .duration(12 * SECONDS) - .eut((int) TierEU.RECIPE_MV) - .metadata(COIL_HEAT, 1200) - .addTo(sBlastRecipes); + .itemInputs(Materials.ArsenicTrioxide.getDust(5), Materials.Carbon.getDustSmall(4)) + .itemOutputs(Materials.Arsenic.getIngots(2), Materials.Ash.getDustTiny(2)) + .noFluidInputs() + .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) + .duration(12 * SECONDS) + .eut((int) TierEU.RECIPE_MV) + .metadata(COIL_HEAT, 1200) + .addTo(sBlastRecipes); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Massicot.getDust(2), Materials.Carbon.getDustSmall(4)) - .itemOutputs(Materials.Lead.getIngots(1), Materials.Ash.getDustTiny(2)) - .noFluidInputs() - .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) - .duration(12 * SECONDS) - .eut((int) TierEU.RECIPE_MV) - .metadata(COIL_HEAT, 1200) - .addTo(sBlastRecipes); + .itemInputs(Materials.Massicot.getDust(2), Materials.Carbon.getDustSmall(4)) + .itemOutputs(Materials.Lead.getIngots(1), Materials.Ash.getDustTiny(2)) + .noFluidInputs() + .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) + .duration(12 * SECONDS) + .eut((int) TierEU.RECIPE_MV) + .metadata(COIL_HEAT, 1200) + .addTo(sBlastRecipes); } GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconSG, 32), - ItemList.GalliumArsenideCrystalSmallPart.get(1), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Circuit_Silicon_Ingot.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(7 * MINUTES + 30 * SECONDS) - .eut((int) TierEU.RECIPE_MV) - .metadata(COIL_HEAT, 1784) - .addTo(sBlastRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconSG, 64), - ItemList.GalliumArsenideCrystalSmallPart.get(2), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Phosphorus, 8), - GT_Utility.getIntegratedCircuit(3)) - .itemOutputs(ItemList.Circuit_Silicon_Ingot2.get(1)) - .fluidInputs(Materials.Nitrogen.getGas(8000)) - .noFluidOutputs() - .duration(10 * MINUTES) - .eut((int) TierEU.RECIPE_HV) - .metadata(COIL_HEAT, 2484) - .addTo(sBlastRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.block, Materials.SiliconSG, 16), - ItemList.GalliumArsenideCrystal.get(1), - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Naquadah, 1), - GT_Utility.getIntegratedCircuit(3)) - .itemOutputs(ItemList.Circuit_Silicon_Ingot3.get(1)) - .fluidInputs(Materials.Argon.getGas(8000)) - .noFluidOutputs() - .duration(12 * MINUTES + 30 * SECONDS) - .eut((int) TierEU.RECIPE_EV) - .metadata(COIL_HEAT, 4484) - .addTo(sBlastRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.block, Materials.SiliconSG, 32), - ItemList.GalliumArsenideCrystal.get(2), - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Europium, 2), - GT_Utility.getIntegratedCircuit(3)) - .itemOutputs(ItemList.Circuit_Silicon_Ingot4.get(1)) - .fluidInputs(Materials.Radon.getGas(8000)) - .noFluidOutputs() - .duration(15 * MINUTES) - .eut((int) TierEU.RECIPE_IV) - .metadata(COIL_HEAT, 6484) - .addTo(sBlastRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.block, Materials.SiliconSG, 64), - ItemList.GalliumArsenideCrystal.get(4), - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Americium, 4), - GT_Utility.getIntegratedCircuit(3)) - .itemOutputs(ItemList.Circuit_Silicon_Ingot5.get(1)) - .fluidInputs(Materials.Radon.getGas(16000)) - .noFluidOutputs() - .duration(17 * MINUTES + 30 * SECONDS) - .eut((int) TierEU.RECIPE_LuV) - .metadata(COIL_HEAT, 9000) - .addTo(sBlastRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconSG, 32), + ItemList.GalliumArsenideCrystalSmallPart.get(1), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Circuit_Silicon_Ingot.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(7 * MINUTES + 30 * SECONDS) + .eut((int) TierEU.RECIPE_MV) + .metadata(COIL_HEAT, 1784) + .addTo(sBlastRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconSG, 64), + ItemList.GalliumArsenideCrystalSmallPart.get(2), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Phosphorus, 8), + GT_Utility.getIntegratedCircuit(3)) + .itemOutputs(ItemList.Circuit_Silicon_Ingot2.get(1)) + .fluidInputs(Materials.Nitrogen.getGas(8000)) + .noFluidOutputs() + .duration(10 * MINUTES) + .eut((int) TierEU.RECIPE_HV) + .metadata(COIL_HEAT, 2484) + .addTo(sBlastRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.block, Materials.SiliconSG, 16), + ItemList.GalliumArsenideCrystal.get(1), + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Naquadah, 1), + GT_Utility.getIntegratedCircuit(3)) + .itemOutputs(ItemList.Circuit_Silicon_Ingot3.get(1)) + .fluidInputs(Materials.Argon.getGas(8000)) + .noFluidOutputs() + .duration(12 * MINUTES + 30 * SECONDS) + .eut((int) TierEU.RECIPE_EV) + .metadata(COIL_HEAT, 4484) + .addTo(sBlastRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.block, Materials.SiliconSG, 32), + ItemList.GalliumArsenideCrystal.get(2), + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Europium, 2), + GT_Utility.getIntegratedCircuit(3)) + .itemOutputs(ItemList.Circuit_Silicon_Ingot4.get(1)) + .fluidInputs(Materials.Radon.getGas(8000)) + .noFluidOutputs() + .duration(15 * MINUTES) + .eut((int) TierEU.RECIPE_IV) + .metadata(COIL_HEAT, 6484) + .addTo(sBlastRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.block, Materials.SiliconSG, 64), + ItemList.GalliumArsenideCrystal.get(4), + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Americium, 4), + GT_Utility.getIntegratedCircuit(3)) + .itemOutputs(ItemList.Circuit_Silicon_Ingot5.get(1)) + .fluidInputs(Materials.Radon.getGas(16000)) + .noFluidOutputs() + .duration(17 * MINUTES + 30 * SECONDS) + .eut((int) TierEU.RECIPE_LuV) + .metadata(COIL_HEAT, 9000) + .addTo(sBlastRecipes); // CaH2 + 2Si = CaSi2 + 2H GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calciumhydride, 3), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silicon, 2)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.CalciumDisilicide, 3)) - .noFluidInputs() - .fluidOutputs(Materials.Hydrogen.getGas(2000)) - .duration(15 * SECONDS) - .eut((int) TierEU.RECIPE_MV) - .metadata(COIL_HEAT, 1273) - .addTo(sBlastRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SuperconductorUEVBase, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingotHot, Materials.SuperconductorUEVBase, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(16 * MINUTES + 23 * SECONDS) - .eut((int) TierEU.RECIPE_UV) - .metadata(COIL_HEAT, 11800) - .addTo(sBlastRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SuperconductorUEVBase, 1), - GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingotHot, Materials.SuperconductorUEVBase, 1)) - .fluidInputs(Materials.Radon.getGas(1000)) - .noFluidOutputs() - .duration(7 * MINUTES + 22 * SECONDS + 7 * TICKS) - .eut((int) TierEU.RECIPE_UV) - .metadata(COIL_HEAT, 11800) - .addTo(sBlastRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calciumhydride, 3), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silicon, 2)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.CalciumDisilicide, 3)) + .noFluidInputs() + .fluidOutputs(Materials.Hydrogen.getGas(2000)) + .duration(15 * SECONDS) + .eut((int) TierEU.RECIPE_MV) + .metadata(COIL_HEAT, 1273) + .addTo(sBlastRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SuperconductorUEVBase, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingotHot, Materials.SuperconductorUEVBase, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(16 * MINUTES + 23 * SECONDS) + .eut((int) TierEU.RECIPE_UV) + .metadata(COIL_HEAT, 11800) + .addTo(sBlastRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SuperconductorUEVBase, 1), + GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingotHot, Materials.SuperconductorUEVBase, 1)) + .fluidInputs(Materials.Radon.getGas(1000)) + .noFluidOutputs() + .duration(7 * MINUTES + 22 * SECONDS + 7 * TICKS) + .eut((int) TierEU.RECIPE_UV) + .metadata(COIL_HEAT, 11800) + .addTo(sBlastRecipes); // 0.45 * 19660 = 8847 GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SuperconductorUIVBase, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingotHot, Materials.SuperconductorUIVBase, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(16 * MINUTES + 23 * SECONDS) - .eut((int) TierEU.RECIPE_UHV) - .metadata(COIL_HEAT, 12700) - .addTo(sBlastRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SuperconductorUIVBase, 1), - GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingotHot, Materials.SuperconductorUIVBase, 1)) - .fluidInputs(Materials.Radon.getGas(1000)) - .noFluidOutputs() - .duration(7 * MINUTES + 22 * SECONDS + 7 * TICKS) - .eut((int) TierEU.RECIPE_UHV) - .metadata(COIL_HEAT, 12700) - .addTo(sBlastRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SuperconductorUIVBase, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingotHot, Materials.SuperconductorUIVBase, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(16 * MINUTES + 23 * SECONDS) + .eut((int) TierEU.RECIPE_UHV) + .metadata(COIL_HEAT, 12700) + .addTo(sBlastRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SuperconductorUIVBase, 1), + GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingotHot, Materials.SuperconductorUIVBase, 1)) + .fluidInputs(Materials.Radon.getGas(1000)) + .noFluidOutputs() + .duration(7 * MINUTES + 22 * SECONDS + 7 * TICKS) + .eut((int) TierEU.RECIPE_UHV) + .metadata(COIL_HEAT, 12700) + .addTo(sBlastRecipes); // 0.45 * 19660 = 8847 GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SuperconductorUMVBase, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingotHot, Materials.SuperconductorUMVBase, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(16 * MINUTES + 23 * SECONDS) - .eut((int) TierEU.RECIPE_UEV) - .metadata(COIL_HEAT, 13600) - .addTo(sBlastRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SuperconductorUMVBase, 1), - GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingotHot, Materials.SuperconductorUMVBase, 1)) - .fluidInputs(Materials.Radon.getGas(1000)) - .noFluidOutputs() - .duration(7 * MINUTES + 22 * SECONDS + 7 * TICKS) - .eut((int) TierEU.RECIPE_UEV) - .metadata(COIL_HEAT, 13600) - .addTo(sBlastRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SuperconductorUMVBase, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingotHot, Materials.SuperconductorUMVBase, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(16 * MINUTES + 23 * SECONDS) + .eut((int) TierEU.RECIPE_UEV) + .metadata(COIL_HEAT, 13600) + .addTo(sBlastRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SuperconductorUMVBase, 1), + GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingotHot, Materials.SuperconductorUMVBase, 1)) + .fluidInputs(Materials.Radon.getGas(1000)) + .noFluidOutputs() + .duration(7 * MINUTES + 22 * SECONDS + 7 * TICKS) + .eut((int) TierEU.RECIPE_UEV) + .metadata(COIL_HEAT, 13600) + .addTo(sBlastRecipes); // 0.45 * 19660 = 8847 // CaO + 3C = CaC2 + CO GT_Values.RA.stdBuilder() - .itemInputs(Materials.Quicklime.getDust(2), Materials.Carbon.getDust(3)) - .itemOutputs(MaterialsKevlar.CalciumCarbide.getDust(3)) - .noFluidInputs() - .fluidOutputs(Materials.CarbonMonoxide.getGas(1000)) - .duration(30 * SECONDS) - .eut((int) TierEU.RECIPE_HV) - .metadata(COIL_HEAT, 2573) - .addTo(sBlastRecipes); + .itemInputs(Materials.Quicklime.getDust(2), Materials.Carbon.getDust(3)) + .itemOutputs(MaterialsKevlar.CalciumCarbide.getDust(3)) + .noFluidInputs() + .fluidOutputs(Materials.CarbonMonoxide.getGas(1000)) + .duration(30 * SECONDS) + .eut((int) TierEU.RECIPE_HV) + .metadata(COIL_HEAT, 2573) + .addTo(sBlastRecipes); // Ni + 3Al = NiAl3 GT_Values.RA.stdBuilder() - .itemInputs(Materials.Nickel.getDust(1), Materials.Aluminium.getDust(3)) - .itemOutputs(MaterialsKevlar.NickelAluminide.getIngots(4)) - .noFluidInputs() - .noFluidOutputs() - .duration(45 * SECONDS) - .eut((int) TierEU.RECIPE_HV) - .metadata(COIL_HEAT, 1688) - .addTo(sBlastRecipes); + .itemInputs(Materials.Nickel.getDust(1), Materials.Aluminium.getDust(3)) + .itemOutputs(MaterialsKevlar.NickelAluminide.getIngots(4)) + .noFluidInputs() + .noFluidOutputs() + .duration(45 * SECONDS) + .eut((int) TierEU.RECIPE_HV) + .metadata(COIL_HEAT, 1688) + .addTo(sBlastRecipes); ItemStack[] tSiliconDioxide = new ItemStack[] { Materials.SiliconDioxide.getDust(3), - Materials.NetherQuartz.getDust(3), Materials.CertusQuartz.getDust(3), Materials.Quartzite.getDust(6) }; + Materials.NetherQuartz.getDust(3), Materials.CertusQuartz.getDust(3), Materials.Quartzite.getDust(6) }; // Roasting for (ItemStack silicon : tSiliconDioxide) { GT_Values.RA.addBlastRecipe( - Materials.Chalcopyrite.getDust(1), - silicon, - Materials.Oxygen.getGas(3000), - Materials.SulfurDioxide.getGas(2000), - Materials.RoastedCopper.getDust(1), - Materials.Ferrosilite.getDust(5), - 120, - (int) TierEU.RECIPE_MV, - 1200); - } - - GT_Values.RA.addBlastRecipe( - Materials.Tetrahedrite.getDust(1), - GT_Values.NI, + Materials.Chalcopyrite.getDust(1), + silicon, Materials.Oxygen.getGas(3000), Materials.SulfurDioxide.getGas(2000), Materials.RoastedCopper.getDust(1), - Materials.RoastedAntimony.getDustTiny(3), + Materials.Ferrosilite.getDust(5), 120, (int) TierEU.RECIPE_MV, 1200); + } GT_Values.RA.addBlastRecipe( - Materials.Pyrite.getDust(1), - GT_Values.NI, - Materials.Oxygen.getGas(3000), - Materials.SulfurDioxide.getGas(2000), - Materials.RoastedIron.getDust(1), - Materials.Ash.getDustTiny(1), - 120, - (int) TierEU.RECIPE_MV, - 1200); + Materials.Tetrahedrite.getDust(1), + GT_Values.NI, + Materials.Oxygen.getGas(3000), + Materials.SulfurDioxide.getGas(2000), + Materials.RoastedCopper.getDust(1), + Materials.RoastedAntimony.getDustTiny(3), + 120, + (int) TierEU.RECIPE_MV, + 1200); GT_Values.RA.addBlastRecipe( - Materials.Pentlandite.getDust(1), - GT_Values.NI, - Materials.Oxygen.getGas(3000), - Materials.SulfurDioxide.getGas(1000), - Materials.RoastedNickel.getDust(1), - Materials.Ash.getDustTiny(1), - 120, - (int) TierEU.RECIPE_MV, - 1200); + Materials.Pyrite.getDust(1), + GT_Values.NI, + Materials.Oxygen.getGas(3000), + Materials.SulfurDioxide.getGas(2000), + Materials.RoastedIron.getDust(1), + Materials.Ash.getDustTiny(1), + 120, + (int) TierEU.RECIPE_MV, + 1200); GT_Values.RA.addBlastRecipe( - Materials.Sphalerite.getDust(1), - GT_Values.NI, - Materials.Oxygen.getGas(3000), - Materials.SulfurDioxide.getGas(1000), - Materials.RoastedZinc.getDust(1), - Materials.Ash.getDustTiny(1), - 120, - (int) TierEU.RECIPE_MV, - 1200); + Materials.Pentlandite.getDust(1), + GT_Values.NI, + Materials.Oxygen.getGas(3000), + Materials.SulfurDioxide.getGas(1000), + Materials.RoastedNickel.getDust(1), + Materials.Ash.getDustTiny(1), + 120, + (int) TierEU.RECIPE_MV, + 1200); GT_Values.RA.addBlastRecipe( - Materials.Cobaltite.getDust(1), - GT_Values.NI, - Materials.Oxygen.getGas(3000), - Materials.SulfurDioxide.getGas(1000), - Materials.RoastedCobalt.getDust(1), - Materials.RoastedArsenic.getDust(1), - 120, - (int) TierEU.RECIPE_MV, - 1200); + Materials.Sphalerite.getDust(1), + GT_Values.NI, + Materials.Oxygen.getGas(3000), + Materials.SulfurDioxide.getGas(1000), + Materials.RoastedZinc.getDust(1), + Materials.Ash.getDustTiny(1), + 120, + (int) TierEU.RECIPE_MV, + 1200); GT_Values.RA.addBlastRecipe( - Materials.Stibnite.getDust(1), - GT_Values.NI, - Materials.Oxygen.getGas(3000), - Materials.SulfurDioxide.getGas(1500), - Materials.RoastedAntimony.getDust(1), - Materials.Ash.getDustTiny(1), - 120, - (int) TierEU.RECIPE_MV, - 1200); + Materials.Cobaltite.getDust(1), + GT_Values.NI, + Materials.Oxygen.getGas(3000), + Materials.SulfurDioxide.getGas(1000), + Materials.RoastedCobalt.getDust(1), + Materials.RoastedArsenic.getDust(1), + 120, + (int) TierEU.RECIPE_MV, + 1200); GT_Values.RA.addBlastRecipe( - Materials.Galena.getDust(1), - GT_Values.NI, - Materials.Oxygen.getGas(3000), - Materials.SulfurDioxide.getGas(1000), - Materials.RoastedLead.getDust(1), - Materials.Ash.getDustTiny(1), - 120, - (int) TierEU.RECIPE_MV, - 1200); + Materials.Stibnite.getDust(1), + GT_Values.NI, + Materials.Oxygen.getGas(3000), + Materials.SulfurDioxide.getGas(1500), + Materials.RoastedAntimony.getDust(1), + Materials.Ash.getDustTiny(1), + 120, + (int) TierEU.RECIPE_MV, + 1200); + + GT_Values.RA.addBlastRecipe( + Materials.Galena.getDust(1), + GT_Values.NI, + Materials.Oxygen.getGas(3000), + Materials.SulfurDioxide.getGas(1000), + Materials.RoastedLead.getDust(1), + Materials.Ash.getDustTiny(1), + 120, + (int) TierEU.RECIPE_MV, + 1200); if (GTNHLanthanides.isModLoaded() && GTPlusPlus.isModLoaded()) { GT_Values.RA.stdBuilder() - .itemInputs(Materials.TranscendentMetal.getDust(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingotHot, Materials.TranscendentMetal, 1)) - .fluidInputs(Materials.Tungsten.getMolten(144)) - .fluidOutputs(new FluidStack(FluidRegistry.getFluid("molten.celestialtungsten"), 72)) - .duration(3 * MINUTES) - .eut(32000000) - .metadata(COIL_HEAT, 11701) - .addTo(sBlastRecipes); + .itemInputs(Materials.TranscendentMetal.getDust(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingotHot, Materials.TranscendentMetal, 1)) + .fluidInputs(Materials.Tungsten.getMolten(144)) + .fluidOutputs(new FluidStack(FluidRegistry.getFluid("molten.celestialtungsten"), 72)) + .duration(3 * MINUTES) + .eut(32000000) + .metadata(COIL_HEAT, 11701) + .addTo(sBlastRecipes); // Rh + 3Cl = RhCl3 GT_Values.RA.stdBuilder() - .itemInputs( - getModItem(BartWorks.ID, "gt.bwMetaGenerateddust", 1L, 78), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(MaterialsKevlar.RhodiumChloride.getDust(4)) - .fluidInputs(Materials.Chlorine.getGas(3000)) - .noFluidOutputs() - .duration(30 * SECONDS) - .eut((int) TierEU.RECIPE_HV) - .metadata(COIL_HEAT, 573) - .addTo(sBlastRecipes); + .itemInputs( + getModItem(BartWorks.ID, "gt.bwMetaGenerateddust", 1L, 78), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(MaterialsKevlar.RhodiumChloride.getDust(4)) + .fluidInputs(Materials.Chlorine.getGas(3000)) + .noFluidOutputs() + .duration(30 * SECONDS) + .eut((int) TierEU.RECIPE_HV) + .metadata(COIL_HEAT, 573) + .addTo(sBlastRecipes); } } public void registerPrimitiveBlastFurnaceRecipes() { GT_Values.RA.stdBuilder() - .itemInputs(Materials.Iron.getIngots(1)) - .itemOutputs(Materials.Steel.getIngots(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(6 * MINUTES) - .eut(0) - .metadata(ADDITIVE_AMOUNT, 4) - .addTo(sPrimitiveBlastRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Iron.getDust(1)) - .itemOutputs(Materials.Steel.getIngots(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(6 * MINUTES) - .eut(0) - .metadata(ADDITIVE_AMOUNT, 4) - .addTo(sPrimitiveBlastRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Iron.getBlocks(1)) - .itemOutputs(Materials.Steel.getIngots(9)) - .noFluidInputs() - .noFluidOutputs() - .duration(54 * MINUTES) - .eut(0) - .metadata(ADDITIVE_AMOUNT, 36) - .addTo(sPrimitiveBlastRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Steel.getDust(1)) - .itemOutputs(Materials.Steel.getIngots(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(6 * MINUTES) - .eut(0) - .metadata(ADDITIVE_AMOUNT, 2) - .addTo(sPrimitiveBlastRecipes); + .itemInputs(Materials.Iron.getIngots(1)) + .itemOutputs(Materials.Steel.getIngots(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(6 * MINUTES) + .eut(0) + .metadata(ADDITIVE_AMOUNT, 4) + .addTo(sPrimitiveBlastRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Iron.getDust(1)) + .itemOutputs(Materials.Steel.getIngots(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(6 * MINUTES) + .eut(0) + .metadata(ADDITIVE_AMOUNT, 4) + .addTo(sPrimitiveBlastRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Iron.getBlocks(1)) + .itemOutputs(Materials.Steel.getIngots(9)) + .noFluidInputs() + .noFluidOutputs() + .duration(54 * MINUTES) + .eut(0) + .metadata(ADDITIVE_AMOUNT, 36) + .addTo(sPrimitiveBlastRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Steel.getDust(1)) + .itemOutputs(Materials.Steel.getIngots(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(6 * MINUTES) + .eut(0) + .metadata(ADDITIVE_AMOUNT, 2) + .addTo(sPrimitiveBlastRecipes); } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/BreweryRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/BreweryRecipes.java index b7b2afb821..3724af440d 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/BreweryRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/BreweryRecipes.java @@ -24,67 +24,67 @@ public class BreweryRecipes implements Runnable { @Override public void run() { ItemStack[] brewingItems = new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Talc, 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Soapstone, 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1L) }; + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Soapstone, 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1L) }; for (ItemStack item : brewingItems) { // creosote to lubricant recipes GT_Values.RA.stdBuilder() - .itemInputs(item) - .noItemOutputs() - .fluidInputs(getFluidStack("creosote", 750)) - .fluidOutputs(getFluidStack("lubricant", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(item) + .noItemOutputs() + .fluidInputs(getFluidStack("creosote", 750)) + .fluidOutputs(getFluidStack("lubricant", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); // seed oil to lubricant recipes GT_Values.RA.stdBuilder() - .itemInputs(item) - .noItemOutputs() - .fluidInputs(getFluidStack("seedoil", 750)) - .fluidOutputs(getFluidStack("lubricant", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(item) + .noItemOutputs() + .fluidInputs(getFluidStack("seedoil", 750)) + .fluidOutputs(getFluidStack("lubricant", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); // lubricant recipes { GT_Values.RA.stdBuilder() - .itemInputs(item) - .noItemOutputs() - .fluidInputs(getFluidStack("oil", 750)) - .fluidOutputs(getFluidStack("lubricant", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(item) + .noItemOutputs() + .fluidInputs(getFluidStack("oil", 750)) + .fluidOutputs(getFluidStack("lubricant", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(item) - .noItemOutputs() - .fluidInputs(getFluidStack("liquid_light_oil", 750)) - .fluidOutputs(getFluidStack("lubricant", 500)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(item) + .noItemOutputs() + .fluidInputs(getFluidStack("liquid_light_oil", 750)) + .fluidOutputs(getFluidStack("lubricant", 500)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(item) - .noItemOutputs() - .fluidInputs(getFluidStack("liquid_medium_oil", 750)) - .fluidOutputs(getFluidStack("lubricant", 500)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(item) + .noItemOutputs() + .fluidInputs(getFluidStack("liquid_medium_oil", 750)) + .fluidOutputs(getFluidStack("lubricant", 500)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(item) - .noItemOutputs() - .fluidInputs(getFluidStack("liquid_heavy_oil", 500)) - .fluidOutputs(getFluidStack("lubricant", 750)) - .duration(3 * SECONDS + 4 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(item) + .noItemOutputs() + .fluidInputs(getFluidStack("liquid_heavy_oil", 500)) + .fluidOutputs(getFluidStack("lubricant", 750)) + .duration(3 * SECONDS + 4 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); } } @@ -98,247 +98,247 @@ public class BreweryRecipes implements Runnable { */ if (IndustrialCraft2.isModLoaded()) { waterArray = new Fluid[] { FluidRegistry.WATER, GT_ModHandler.getDistilledWater(1L) - .getFluid() }; + .getFluid() }; } else { waterArray = new Fluid[] { FluidRegistry.WATER }; } for (Fluid tFluid : waterArray) { GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Milk, 1L)) - .noItemOutputs() - .fluidInputs(new FluidStack(tFluid, 750)) - .fluidOutputs(getFluidStack("milk", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Milk, 1L)) + .noItemOutputs() + .fluidInputs(new FluidStack(tFluid, 750)) + .fluidOutputs(getFluidStack("milk", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wheat, 1L)) - .noItemOutputs() - .fluidInputs(new FluidStack(tFluid, 750)) - .fluidOutputs(getFluidStack("potion.wheatyjuice", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wheat, 1L)) + .noItemOutputs() + .fluidInputs(new FluidStack(tFluid, 750)) + .fluidOutputs(getFluidStack("potion.wheatyjuice", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Potassium, 1L)) - .noItemOutputs() - .fluidInputs(new FluidStack(tFluid, 750)) - .fluidOutputs(getFluidStack("potion.mineralwater", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Potassium, 1L)) + .noItemOutputs() + .fluidInputs(new FluidStack(tFluid, 750)) + .fluidOutputs(getFluidStack("potion.mineralwater", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sodium, 1L)) - .noItemOutputs() - .fluidInputs(new FluidStack(tFluid, 750)) - .fluidOutputs(getFluidStack("potion.mineralwater", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sodium, 1L)) + .noItemOutputs() + .fluidInputs(new FluidStack(tFluid, 750)) + .fluidOutputs(getFluidStack("potion.mineralwater", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcium, 1L)) - .noItemOutputs() - .fluidInputs(new FluidStack(tFluid, 750)) - .fluidOutputs(getFluidStack("potion.mineralwater", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcium, 1L)) + .noItemOutputs() + .fluidInputs(new FluidStack(tFluid, 750)) + .fluidOutputs(getFluidStack("potion.mineralwater", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Magnesium, 1L)) - .noItemOutputs() - .fluidInputs(new FluidStack(tFluid, 750)) - .fluidOutputs(getFluidStack("potion.mineralwater", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Magnesium, 1L)) + .noItemOutputs() + .fluidInputs(new FluidStack(tFluid, 750)) + .fluidOutputs(getFluidStack("potion.mineralwater", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glowstone, 1L)) - .noItemOutputs() - .fluidInputs(new FluidStack(tFluid, 750)) - .fluidOutputs(getFluidStack("potion.thick", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glowstone, 1L)) + .noItemOutputs() + .fluidInputs(new FluidStack(tFluid, 750)) + .fluidOutputs(getFluidStack("potion.thick", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1L)) - .noItemOutputs() - .fluidInputs(new FluidStack(tFluid, 750)) - .fluidOutputs(getFluidStack("potion.mundane", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1L)) + .noItemOutputs() + .fluidInputs(new FluidStack(tFluid, 750)) + .fluidOutputs(getFluidStack("potion.mundane", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sugar, 1L)) - .noItemOutputs() - .fluidInputs(new FluidStack(tFluid, 750)) - .fluidOutputs(getFluidStack("potion.mundane", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sugar, 1L)) + .noItemOutputs() + .fluidInputs(new FluidStack(tFluid, 750)) + .fluidOutputs(getFluidStack("potion.mundane", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Blaze, 1L)) - .noItemOutputs() - .fluidInputs(new FluidStack(tFluid, 750)) - .fluidOutputs(getFluidStack("potion.mundane", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Blaze, 1L)) + .noItemOutputs() + .fluidInputs(new FluidStack(tFluid, 750)) + .fluidOutputs(getFluidStack("potion.mundane", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.magma_cream, 1, 0)) - .noItemOutputs() - .fluidInputs(new FluidStack(tFluid, 750)) - .fluidOutputs(getFluidStack("potion.mundane", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(new ItemStack(Items.magma_cream, 1, 0)) + .noItemOutputs() + .fluidInputs(new FluidStack(tFluid, 750)) + .fluidOutputs(getFluidStack("potion.mundane", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.fermented_spider_eye, 1, 0)) - .noItemOutputs() - .fluidInputs(new FluidStack(tFluid, 750)) - .fluidOutputs(getFluidStack("potion.mundane", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(new ItemStack(Items.fermented_spider_eye, 1, 0)) + .noItemOutputs() + .fluidInputs(new FluidStack(tFluid, 750)) + .fluidOutputs(getFluidStack("potion.mundane", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.spider_eye, 1, 0)) - .noItemOutputs() - .fluidInputs(new FluidStack(tFluid, 750)) - .fluidOutputs(getFluidStack("potion.mundane", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(new ItemStack(Items.spider_eye, 1, 0)) + .noItemOutputs() + .fluidInputs(new FluidStack(tFluid, 750)) + .fluidOutputs(getFluidStack("potion.mundane", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.speckled_melon, 1, 0)) - .noItemOutputs() - .fluidInputs(new FluidStack(tFluid, 750)) - .fluidOutputs(getFluidStack("potion.mundane", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(new ItemStack(Items.speckled_melon, 1, 0)) + .noItemOutputs() + .fluidInputs(new FluidStack(tFluid, 750)) + .fluidOutputs(getFluidStack("potion.mundane", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.ghast_tear, 1, 0)) - .noItemOutputs() - .fluidInputs(new FluidStack(tFluid, 750)) - .fluidOutputs(getFluidStack("potion.mundane", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(new ItemStack(Items.ghast_tear, 1, 0)) + .noItemOutputs() + .fluidInputs(new FluidStack(tFluid, 750)) + .fluidOutputs(getFluidStack("potion.mundane", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.nether_wart, 1, 0)) - .noItemOutputs() - .fluidInputs(new FluidStack(tFluid, 750)) - .fluidOutputs(getFluidStack("potion.awkward", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(new ItemStack(Items.nether_wart, 1, 0)) + .noItemOutputs() + .fluidInputs(new FluidStack(tFluid, 750)) + .fluidOutputs(getFluidStack("potion.awkward", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.red_mushroom, 1, 0)) - .noItemOutputs() - .fluidInputs(new FluidStack(tFluid, 750)) - .fluidOutputs(getFluidStack("potion.poison", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(new ItemStack(Blocks.red_mushroom, 1, 0)) + .noItemOutputs() + .fluidInputs(new FluidStack(tFluid, 750)) + .fluidOutputs(getFluidStack("potion.poison", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.fish, 1, 3)) - .noItemOutputs() - .fluidInputs(new FluidStack(tFluid, 750)) - .fluidOutputs(getFluidStack("potion.poison.strong", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .hidden() - .addTo(sBrewingRecipes); + .itemInputs(new ItemStack(Items.fish, 1, 3)) + .noItemOutputs() + .fluidInputs(new FluidStack(tFluid, 750)) + .fluidOutputs(getFluidStack("potion.poison.strong", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .hidden() + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.IC2_Grin_Powder.get(1L)) - .noItemOutputs() - .fluidInputs(new FluidStack(tFluid, 750)) - .fluidOutputs(getFluidStack("potion.poison.strong", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(ItemList.IC2_Grin_Powder.get(1L)) + .noItemOutputs() + .fluidInputs(new FluidStack(tFluid, 750)) + .fluidOutputs(getFluidStack("potion.poison.strong", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.reeds, 1, 0)) - .noItemOutputs() - .fluidInputs(new FluidStack(tFluid, 750)) - .fluidOutputs(getFluidStack("potion.reedwater", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(new ItemStack(Items.reeds, 1, 0)) + .noItemOutputs() + .fluidInputs(new FluidStack(tFluid, 750)) + .fluidOutputs(getFluidStack("potion.reedwater", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.apple, 1, 0)) - .noItemOutputs() - .fluidInputs(new FluidStack(tFluid, 750)) - .fluidOutputs(getFluidStack("potion.applejuice", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(new ItemStack(Items.apple, 1, 0)) + .noItemOutputs() + .fluidInputs(new FluidStack(tFluid, 750)) + .fluidOutputs(getFluidStack("potion.applejuice", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.golden_apple, 1, 0)) - .noItemOutputs() - .fluidInputs(new FluidStack(tFluid, 750)) - .fluidOutputs(getFluidStack("potion.goldenapplejuice", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .hidden() - .addTo(sBrewingRecipes); + .itemInputs(new ItemStack(Items.golden_apple, 1, 0)) + .noItemOutputs() + .fluidInputs(new FluidStack(tFluid, 750)) + .fluidOutputs(getFluidStack("potion.goldenapplejuice", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .hidden() + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.golden_apple, 1, 1)) - .noItemOutputs() - .fluidInputs(new FluidStack(tFluid, 750)) - .fluidOutputs(getFluidStack("potion.idunsapplejuice", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .hidden() - .addTo(sBrewingRecipes); + .itemInputs(new ItemStack(Items.golden_apple, 1, 1)) + .noItemOutputs() + .fluidInputs(new FluidStack(tFluid, 750)) + .fluidOutputs(getFluidStack("potion.idunsapplejuice", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .hidden() + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.IC2_Hops.get(1L)) - .noItemOutputs() - .fluidInputs(new FluidStack(tFluid, 750)) - .fluidOutputs(getFluidStack("potion.hopsjuice", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(ItemList.IC2_Hops.get(1L)) + .noItemOutputs() + .fluidInputs(new FluidStack(tFluid, 750)) + .fluidOutputs(getFluidStack("potion.hopsjuice", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Coffee, 1L)) - .noItemOutputs() - .fluidInputs(new FluidStack(tFluid, 750)) - .fluidOutputs(getFluidStack("potion.darkcoffee", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Coffee, 1L)) + .noItemOutputs() + .fluidInputs(new FluidStack(tFluid, 750)) + .fluidOutputs(getFluidStack("potion.darkcoffee", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Chili, 1L)) - .noItemOutputs() - .fluidInputs(new FluidStack(tFluid, 750)) - .fluidOutputs(getFluidStack("potion.chillysauce", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Chili, 1L)) + .noItemOutputs() + .fluidInputs(new FluidStack(tFluid, 750)) + .fluidOutputs(getFluidStack("potion.chillysauce", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); } } @@ -346,226 +346,226 @@ public class BreweryRecipes implements Runnable { // potion brewing 1 { GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Chili, 1L)) - .noItemOutputs() - .fluidInputs(getFluidStack("potion.chillysauce", 750)) - .fluidOutputs(getFluidStack("potion.hotsauce", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Chili, 1L)) + .noItemOutputs() + .fluidInputs(getFluidStack("potion.chillysauce", 750)) + .fluidOutputs(getFluidStack("potion.hotsauce", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Chili, 1L)) - .noItemOutputs() - .fluidInputs(getFluidStack("potion.hotsauce", 750)) - .fluidOutputs(getFluidStack("potion.diabolosauce", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .hidden() - .addTo(sBrewingRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Chili, 1L)) + .noItemOutputs() + .fluidInputs(getFluidStack("potion.hotsauce", 750)) + .fluidOutputs(getFluidStack("potion.diabolosauce", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .hidden() + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Chili, 1L)) - .noItemOutputs() - .fluidInputs(getFluidStack("potion.diabolosauce", 750)) - .fluidOutputs(getFluidStack("potion.diablosauce", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .hidden() - .addTo(sBrewingRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Chili, 1L)) + .noItemOutputs() + .fluidInputs(getFluidStack("potion.diabolosauce", 750)) + .fluidOutputs(getFluidStack("potion.diablosauce", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .hidden() + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Coffee, 1L)) - .noItemOutputs() - .fluidInputs(getFluidStack("milk", 750)) - .fluidOutputs(getFluidStack("potion.coffee", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Coffee, 1L)) + .noItemOutputs() + .fluidInputs(getFluidStack("milk", 750)) + .fluidOutputs(getFluidStack("potion.coffee", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cocoa, 1L)) - .noItemOutputs() - .fluidInputs(getFluidStack("milk", 750)) - .fluidOutputs(getFluidStack("potion.darkchocolatemilk", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cocoa, 1L)) + .noItemOutputs() + .fluidInputs(getFluidStack("milk", 750)) + .fluidOutputs(getFluidStack("potion.darkchocolatemilk", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.IC2_Hops.get(1L)) - .noItemOutputs() - .fluidInputs(getFluidStack("potion.wheatyjuice", 750)) - .fluidOutputs(getFluidStack("potion.wheatyhopsjuice", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(ItemList.IC2_Hops.get(1L)) + .noItemOutputs() + .fluidInputs(getFluidStack("potion.wheatyjuice", 750)) + .fluidOutputs(getFluidStack("potion.wheatyhopsjuice", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wheat, 1L)) - .noItemOutputs() - .fluidInputs(getFluidStack("potion.hopsjuice", 750)) - .fluidOutputs(getFluidStack("potion.wheatyhopsjuice", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wheat, 1L)) + .noItemOutputs() + .fluidInputs(getFluidStack("potion.hopsjuice", 750)) + .fluidOutputs(getFluidStack("potion.wheatyhopsjuice", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sugar, 1L)) - .noItemOutputs() - .fluidInputs(getFluidStack("potion.tea", 750)) - .fluidOutputs(getFluidStack("potion.sweettea", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .hidden() - .addTo(sBrewingRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sugar, 1L)) + .noItemOutputs() + .fluidInputs(getFluidStack("potion.tea", 750)) + .fluidOutputs(getFluidStack("potion.sweettea", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .hidden() + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sugar, 1L)) - .noItemOutputs() - .fluidInputs(getFluidStack("potion.coffee", 750)) - .fluidOutputs(getFluidStack("potion.cafeaulait", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sugar, 1L)) + .noItemOutputs() + .fluidInputs(getFluidStack("potion.coffee", 750)) + .fluidOutputs(getFluidStack("potion.cafeaulait", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sugar, 1L)) - .noItemOutputs() - .fluidInputs(getFluidStack("potion.cafeaulait", 750)) - .fluidOutputs(getFluidStack("potion.laitaucafe", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .hidden() - .addTo(sBrewingRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sugar, 1L)) + .noItemOutputs() + .fluidInputs(getFluidStack("potion.cafeaulait", 750)) + .fluidOutputs(getFluidStack("potion.laitaucafe", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .hidden() + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sugar, 1L)) - .noItemOutputs() - .fluidInputs(getFluidStack("potion.lemonjuice", 750)) - .fluidOutputs(getFluidStack("potion.lemonade", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sugar, 1L)) + .noItemOutputs() + .fluidInputs(getFluidStack("potion.lemonjuice", 750)) + .fluidOutputs(getFluidStack("potion.lemonade", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sugar, 1L)) - .noItemOutputs() - .fluidInputs(getFluidStack("potion.darkcoffee", 750)) - .fluidOutputs(getFluidStack("potion.darkcafeaulait", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .hidden() - .addTo(sBrewingRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sugar, 1L)) + .noItemOutputs() + .fluidInputs(getFluidStack("potion.darkcoffee", 750)) + .fluidOutputs(getFluidStack("potion.darkcafeaulait", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .hidden() + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sugar, 1L)) - .noItemOutputs() - .fluidInputs(getFluidStack("potion.darkchocolatemilk", 750)) - .fluidOutputs(getFluidStack("potion.chocolatemilk", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sugar, 1L)) + .noItemOutputs() + .fluidInputs(getFluidStack("potion.darkchocolatemilk", 750)) + .fluidOutputs(getFluidStack("potion.chocolatemilk", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ice, 1L)) - .noItemOutputs() - .fluidInputs(getFluidStack("potion.tea", 750)) - .fluidOutputs(getFluidStack("potion.icetea", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ice, 1L)) + .noItemOutputs() + .fluidInputs(getFluidStack("potion.tea", 750)) + .fluidOutputs(getFluidStack("potion.icetea", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gunpowder, 1L)) - .noItemOutputs() - .fluidInputs(getFluidStack("potion.lemonade", 750)) - .fluidOutputs(getFluidStack("potion.cavejohnsonsgrenadejuice", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .hidden() - .addTo(sBrewingRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gunpowder, 1L)) + .noItemOutputs() + .fluidInputs(getFluidStack("potion.lemonade", 750)) + .fluidOutputs(getFluidStack("potion.cavejohnsonsgrenadejuice", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .hidden() + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sugar, 1L)) - .noItemOutputs() - .fluidInputs(getFluidStack("potion.mundane", 750)) - .fluidOutputs(getFluidStack("potion.purpledrink", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .hidden() - .addTo(sBrewingRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sugar, 1L)) + .noItemOutputs() + .fluidInputs(getFluidStack("potion.mundane", 750)) + .fluidOutputs(getFluidStack("potion.purpledrink", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .hidden() + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.fermented_spider_eye, 1, 0)) - .noItemOutputs() - .fluidInputs(getFluidStack("potion.mundane", 750)) - .fluidOutputs(getFluidStack("potion.weakness", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(new ItemStack(Items.fermented_spider_eye, 1, 0)) + .noItemOutputs() + .fluidInputs(getFluidStack("potion.mundane", 750)) + .fluidOutputs(getFluidStack("potion.weakness", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.fermented_spider_eye, 1, 0)) - .noItemOutputs() - .fluidInputs(getFluidStack("potion.thick", 750)) - .fluidOutputs(getFluidStack("potion.weakness", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(new ItemStack(Items.fermented_spider_eye, 1, 0)) + .noItemOutputs() + .fluidInputs(getFluidStack("potion.thick", 750)) + .fluidOutputs(getFluidStack("potion.weakness", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); } // biomass recipes { GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Forestry.ID, "fertilizerBio", 4L, 0)) - .noItemOutputs() - .fluidInputs(GT_ModHandler.getWater(750L)) - .fluidOutputs(getFluidStack("biomass", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(getModItem(Forestry.ID, "fertilizerBio", 4L, 0)) + .noItemOutputs() + .fluidInputs(GT_ModHandler.getWater(750L)) + .fluidOutputs(getFluidStack("biomass", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Forestry.ID, "mulch", 16L, 0)) - .noItemOutputs() - .fluidInputs(GT_ModHandler.getDistilledWater(750L)) - .fluidOutputs(getFluidStack("biomass", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(getModItem(Forestry.ID, "mulch", 16L, 0)) + .noItemOutputs() + .fluidInputs(GT_ModHandler.getDistilledWater(750L)) + .fluidOutputs(getFluidStack("biomass", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Forestry.ID, "mulch", 8L, 0)) - .noItemOutputs() - .fluidInputs(getFluidStack("juice", 500)) - .fluidOutputs(getFluidStack("biomass", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(getModItem(Forestry.ID, "mulch", 8L, 0)) + .noItemOutputs() + .fluidInputs(getFluidStack("juice", 500)) + .fluidOutputs(getFluidStack("biomass", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); } // ic2 biomass recipes { GT_Values.RA.stdBuilder() - .itemInputs(GT_ModHandler.getIC2Item("biochaff", 1)) - .noItemOutputs() - .fluidInputs(GT_ModHandler.getWater(1000L)) - .fluidOutputs(getFluidStack("ic2biomass", 1000)) - .duration(8 * SECONDS + 10 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(GT_ModHandler.getIC2Item("biochaff", 1)) + .noItemOutputs() + .fluidInputs(GT_ModHandler.getWater(1000L)) + .fluidOutputs(getFluidStack("ic2biomass", 1000)) + .duration(8 * SECONDS + 10 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); // Would add 2 different amount of water input if IC2 isn't loaded if (IndustrialCraft2.isModLoaded()) { GT_Values.RA.stdBuilder() - .itemInputs(GT_ModHandler.getIC2Item("biochaff", 1)) - .noItemOutputs() - .fluidInputs(GT_ModHandler.getDistilledWater(500L)) - .fluidOutputs(getFluidStack("ic2biomass", 1000)) - .duration(10 * TICKS) - .eut((int) TierEU.RECIPE_LV) - .addTo(sBrewingRecipes); + .itemInputs(GT_ModHandler.getIC2Item("biochaff", 1)) + .noItemOutputs() + .fluidInputs(GT_ModHandler.getDistilledWater(500L)) + .fluidOutputs(getFluidStack("ic2biomass", 1000)) + .duration(10 * TICKS) + .eut((int) TierEU.RECIPE_LV) + .addTo(sBrewingRecipes); } } @@ -586,36 +586,36 @@ public class BreweryRecipes implements Runnable { public void addPotionRecipes(String aName, ItemStack aItem) { // normal GT_Values.RA.stdBuilder() - .itemInputs(aItem) - .noItemOutputs() - .fluidInputs(getFluidStack("potion.awkward", 750)) - .fluidOutputs(getFluidStack("potion." + aName, 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(aItem) + .noItemOutputs() + .fluidInputs(getFluidStack("potion.awkward", 750)) + .fluidOutputs(getFluidStack("potion." + aName, 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); // strong if (aName == "regen" || aName == "speed" || aName == "health" || aName == "strength" || aName == "poison") { GT_Values.RA.stdBuilder() - .itemInputs(aItem) - .noItemOutputs() - .fluidInputs(getFluidStack("potion.thick", 750)) - .fluidOutputs(getFluidStack("potion." + aName + ".strong", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(aItem) + .noItemOutputs() + .fluidInputs(getFluidStack("potion.thick", 750)) + .fluidOutputs(getFluidStack("potion." + aName + ".strong", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); } // long if (aName != "health") { GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1L)) - .noItemOutputs() - .fluidInputs(getFluidStack("potion." + aName, 750)) - .fluidOutputs(getFluidStack("potion." + aName + ".long", 750)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sBrewingRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1L)) + .noItemOutputs() + .fluidInputs(getFluidStack("potion." + aName, 750)) + .fluidOutputs(getFluidStack("potion." + aName + ".long", 750)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sBrewingRecipes); } MixerRecipes.addMixerPotionRecipes(aName); diff --git a/src/main/java/gregtech/loaders/postload/recipes/CannerRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/CannerRecipes.java index 60fa4306eb..aa27e0c8cd 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/CannerRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/CannerRecipes.java @@ -21,66 +21,66 @@ public class CannerRecipes implements Runnable { if (IndustrialCraft2.isModLoaded()) { // todo: remove tiny dust in this recipe GT_Values.RA.stdBuilder() - .itemInputs( - GT_ModHandler.getIC2Item("fuelRod", 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Lithium, 1L)) - .itemOutputs(GT_ModHandler.getIC2Item("reactorLithiumCell", 1, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(16 * TICKS) - .eut(64) - .addTo(sCannerRecipes); + .itemInputs( + GT_ModHandler.getIC2Item("fuelRod", 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Lithium, 1L)) + .itemOutputs(GT_ModHandler.getIC2Item("reactorLithiumCell", 1, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(16 * TICKS) + .eut(64) + .addTo(sCannerRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_ModHandler.getIC2Item("fuelRod", 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Thorium, 3)) - .itemOutputs(ItemList.ThoriumCell_1.get(1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(1 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sCannerRecipes); + .itemInputs( + GT_ModHandler.getIC2Item("fuelRod", 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Thorium, 3)) + .itemOutputs(ItemList.ThoriumCell_1.get(1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(1 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sCannerRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_ModHandler.getIC2Item("fuelRod", 1), GT_ModHandler.getIC2Item("UranFuel", 1)) - .itemOutputs(ItemList.Uraniumcell_1.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(1 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sCannerRecipes); + .itemInputs(GT_ModHandler.getIC2Item("fuelRod", 1), GT_ModHandler.getIC2Item("UranFuel", 1)) + .itemOutputs(ItemList.Uraniumcell_1.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(1 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sCannerRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_ModHandler.getIC2Item("fuelRod", 1), GT_ModHandler.getIC2Item("MOXFuel", 1)) - .itemOutputs(ItemList.Moxcell_1.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(1 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sCannerRecipes); + .itemInputs(GT_ModHandler.getIC2Item("fuelRod", 1), GT_ModHandler.getIC2Item("MOXFuel", 1)) + .itemOutputs(ItemList.Moxcell_1.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(1 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sCannerRecipes); } GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Large_Fluid_Cell_TungstenSteel.get(1L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.NaquadahEnriched, 3)) - .itemOutputs(ItemList.NaquadahCell_1.get(1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(1 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sCannerRecipes); + .itemInputs( + ItemList.Large_Fluid_Cell_TungstenSteel.get(1L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.NaquadahEnriched, 3)) + .itemOutputs(ItemList.NaquadahCell_1.get(1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(1 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sCannerRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Large_Fluid_Cell_TungstenSteel.get(1L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadria, 3)) - .itemOutputs(ItemList.MNqCell_1.get(1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(1 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sCannerRecipes); + .itemInputs( + ItemList.Large_Fluid_Cell_TungstenSteel.get(1L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadria, 3)) + .itemOutputs(ItemList.MNqCell_1.get(1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(1 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sCannerRecipes); } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/CentrifugeRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/CentrifugeRecipes.java index 4eecdc63e2..a7c306a0c0 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/CentrifugeRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/CentrifugeRecipes.java @@ -24,963 +24,957 @@ public class CentrifugeRecipes implements Runnable { public void run() { GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.InfusedGold, 1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gold, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gold, 1), - getModItem(Thaumcraft.ID, "ItemResource", 2L, 14)) - .outputChances(10000, 10000, 9000) - .fluidInputs(Materials.Mercury.getFluid(200)) - .noFluidOutputs() - .duration(20 * SECONDS) - .eut((int) TierEU.RECIPE_MV) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Cell_Empty.get(1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Oxygen, 1)) - .fluidInputs(Materials.Air.getGas(10000)) - .fluidOutputs(Materials.Nitrogen.getGas(3900)) - .duration(1 * MINUTES + 20 * SECONDS) - .eut(8) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.PlatinumGroupSludge, 9)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconDioxide, 9), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gold, 9), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Platinum, 9), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Palladium, 3), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iridium, 3), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Osmium, 3)) - .outputChances(10000, 10000, 10000, 9500, 9000, 8500) - .noFluidInputs() - .noFluidOutputs() - .duration(6 * MINUTES + 45 * SECONDS) - .eut(30) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .itemOutputs( - Materials.Stone.getDust(1), - Materials.Iron.getDust(1), - Materials.Copper.getDust(1), - Materials.Tin.getDust(1), - Materials.Nickel.getDust(1), - Materials.Antimony.getDust(1)) - .outputChances(10000, 4000, 2000, 2000, 2000, 2000) - .fluidInputs(MaterialsOreAlum.SluiceJuice.getFluid(1000)) - .fluidOutputs(Materials.Water.getFluid(500)) - .duration(2 * SECONDS) - .eut((int) TierEU.RECIPE_MV) - .addTo(sCentrifugeRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.InfusedGold, 1)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gold, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gold, 1), + getModItem(Thaumcraft.ID, "ItemResource", 2L, 14)) + .outputChances(10000, 10000, 9000) + .fluidInputs(Materials.Mercury.getFluid(200)) + .noFluidOutputs() + .duration(20 * SECONDS) + .eut((int) TierEU.RECIPE_MV) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Cell_Empty.get(1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Oxygen, 1)) + .fluidInputs(Materials.Air.getGas(10000)) + .fluidOutputs(Materials.Nitrogen.getGas(3900)) + .duration(1 * MINUTES + 20 * SECONDS) + .eut(8) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.PlatinumGroupSludge, 9)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconDioxide, 9), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gold, 9), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Platinum, 9), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Palladium, 3), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iridium, 3), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Osmium, 3)) + .outputChances(10000, 10000, 10000, 9500, 9000, 8500) + .noFluidInputs() + .noFluidOutputs() + .duration(6 * MINUTES + 45 * SECONDS) + .eut(30) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .itemOutputs( + Materials.Stone.getDust(1), + Materials.Iron.getDust(1), + Materials.Copper.getDust(1), + Materials.Tin.getDust(1), + Materials.Nickel.getDust(1), + Materials.Antimony.getDust(1)) + .outputChances(10000, 4000, 2000, 2000, 2000, 2000) + .fluidInputs(MaterialsOreAlum.SluiceJuice.getFluid(1000)) + .fluidOutputs(Materials.Water.getFluid(500)) + .duration(2 * SECONDS) + .eut((int) TierEU.RECIPE_MV) + .addTo(sCentrifugeRecipes); // food ->CH4 GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.golden_apple, 1, 1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(new ItemStack(Items.gold_ingot, 64)) - .noFluidInputs() - .fluidOutputs(Materials.Methane.getGas(4608)) - .duration(7 * MINUTES + 40 * SECONDS + 16 * TICKS) - .eut(5) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.golden_apple, 1, 0), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(new ItemStack(Items.gold_ingot, 7)) - .noFluidInputs() - .fluidOutputs(Materials.Methane.getGas(576)) - .duration(7 * MINUTES + 40 * SECONDS + 16 * TICKS) - .eut(5) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.golden_carrot, 1, 0), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(new ItemStack(Items.gold_nugget, 6)) - .noFluidInputs() - .fluidOutputs(Materials.Methane.getGas(576)) - .duration(7 * MINUTES + 40 * SECONDS + 16 * TICKS) - .eut(5) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.speckled_melon, 1, 0), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(new ItemStack(Items.gold_nugget, 6)) - .noFluidInputs() - .fluidOutputs(Materials.Methane.getGas(576)) - .duration(7 * MINUTES + 40 * SECONDS + 16 * TICKS) - .eut(5) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.mushroom_stew, 16, 0), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(new ItemStack(Items.bowl, 16, 0)) - .noFluidInputs() - .fluidOutputs(Materials.Methane.getGas(576)) - .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) - .eut(5) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.apple, 32, 0), GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Methane.getGas(576)) - .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) - .eut(5) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.bread, 64, 0), GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Methane.getGas(576)) - .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) - .eut(5) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.porkchop, 12, 0), GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Methane.getGas(576)) - .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) - .eut(5) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.cooked_porkchop, 16, 0), GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Methane.getGas(576)) - .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) - .eut(5) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.beef, 12, 0), GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Methane.getGas(576)) - .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) - .eut(5) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.cooked_beef, 16, 0), GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Methane.getGas(576)) - .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) - .eut(5) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.fish, 12, 32767), GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Methane.getGas(576)) - .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) - .eut(5) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.cooked_fished, 16, 32767), GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Methane.getGas(576)) - .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) - .eut(5) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.chicken, 12, 0), GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Methane.getGas(576)) - .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) - .eut(5) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.cooked_chicken, 16, 0), GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Methane.getGas(576)) - .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) - .eut(5) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.melon, 64, 0), GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Methane.getGas(576)) - .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) - .eut(5) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.pumpkin, 16, 0), GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Methane.getGas(576)) - .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) - .eut(5) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.rotten_flesh, 16, 0), GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Methane.getGas(576)) - .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) - .eut(5) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.spider_eye, 32, 0), GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Methane.getGas(576)) - .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) - .eut(5) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.carrot, 16, 0), GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Methane.getGas(576)) - .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) - .eut(5) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Food_Raw_Potato.get(16), GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Methane.getGas(576)) - .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) - .eut(5) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Food_Poisonous_Potato.get(12), GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Methane.getGas(576)) - .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) - .eut(5) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Food_Baked_Potato.get(24), GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Methane.getGas(576)) - .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) - .eut(5) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.cookie, 64, 0), GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Methane.getGas(576)) - .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) - .eut(5) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.cake, 8, 0), GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Methane.getGas(576)) - .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) - .eut(5) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - new ItemStack(Blocks.brown_mushroom_block, 12, 32767), - GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Methane.getGas(576)) - .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) - .eut(5) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.red_mushroom_block, 12, 32767), GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Methane.getGas(576)) - .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) - .eut(5) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.brown_mushroom, 32, 32767), GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Methane.getGas(576)) - .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) - .eut(5) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.red_mushroom, 32, 32767), GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Methane.getGas(576)) - .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) - .eut(5) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.nether_wart, 32, 32767), GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Methane.getGas(576)) - .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) - .eut(5) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_ModHandler.getIC2Item("terraWart", 16), GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Methane.getGas(576)) - .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) - .eut(5) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - getModItem(TwilightForest.ID, "item.meefRaw", 12L, 32767), - GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Methane.getGas(576)) - .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) - .eut(5) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - getModItem(TwilightForest.ID, "item.meefSteak", 16L, 32767), - GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Methane.getGas(576)) - .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) - .eut(5) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - getModItem(TwilightForest.ID, "item.venisonRaw", 12L, 32767), - GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Methane.getGas(576)) - .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) - .eut(5) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - getModItem(TwilightForest.ID, "item.venisonCooked", 16L, 32767), - GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Methane.getGas(576)) - .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) - .eut(5) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.log, Materials.Wood, 1), - GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Methane.getGas(60)) - .duration(10 * SECONDS) - .eut(20) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.sand, 1, 1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iron, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Diamond, 1), - new ItemStack(Blocks.sand, 1)) - .outputChances(5000, 100, 5000) - .noFluidInputs() - .noFluidOutputs() - .duration(30 * SECONDS) - .eut((int) TierEU.RECIPE_MV) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.dirt, 1, 32767)) - .itemOutputs( - ItemList.IC2_Plantball.get(1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Clay, 1), - new ItemStack(Blocks.sand, 1)) - .outputChances(1250, 5000, 5000) - .noFluidInputs() - .noFluidOutputs() - .duration(12 * SECONDS + 10 * TICKS) - .eut(30) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.grass, 1, 32767)) - .itemOutputs( - ItemList.IC2_Plantball.get(1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Clay, 1), - new ItemStack(Blocks.sand, 1)) - .outputChances(2500, 5000, 5000) - .noFluidInputs() - .noFluidOutputs() - .duration(12 * SECONDS + 10 * TICKS) - .eut(30) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.mycelium, 1, 32767)) - .itemOutputs( - new ItemStack(Blocks.brown_mushroom, 1), - new ItemStack(Blocks.red_mushroom, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Clay, 1), - new ItemStack(Blocks.sand, 1)) - .outputChances(2500, 2500, 5000, 5000) - .noFluidInputs() - .noFluidOutputs() - .duration(32 * SECONDS + 10 * TICKS) - .eut(30) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.IC2_Resin.get(1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.RawRubber, 3), - ItemList.IC2_Plantball.get(1)) - .outputChances(10000, 1000) - .noFluidInputs() - .fluidOutputs(Materials.Glue.getFluid(100)) - .duration(15 * SECONDS) - .eut(5) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Uranium, 1), - GT_Utility.getIntegratedCircuit(10)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Uranium235, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Plutonium, 1)) - .outputChances(1000, 500) - .noFluidInputs() - .noFluidOutputs() - .duration(1 * MINUTES + 40 * SECONDS) - .eut((int) TierEU.RECIPE_HV) - .addTo(sCentrifugeRecipes); + .itemInputs(new ItemStack(Items.golden_apple, 1, 1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(new ItemStack(Items.gold_ingot, 64)) + .noFluidInputs() + .fluidOutputs(Materials.Methane.getGas(4608)) + .duration(7 * MINUTES + 40 * SECONDS + 16 * TICKS) + .eut(5) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Items.golden_apple, 1, 0), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(new ItemStack(Items.gold_ingot, 7)) + .noFluidInputs() + .fluidOutputs(Materials.Methane.getGas(576)) + .duration(7 * MINUTES + 40 * SECONDS + 16 * TICKS) + .eut(5) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Items.golden_carrot, 1, 0), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(new ItemStack(Items.gold_nugget, 6)) + .noFluidInputs() + .fluidOutputs(Materials.Methane.getGas(576)) + .duration(7 * MINUTES + 40 * SECONDS + 16 * TICKS) + .eut(5) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Items.speckled_melon, 1, 0), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(new ItemStack(Items.gold_nugget, 6)) + .noFluidInputs() + .fluidOutputs(Materials.Methane.getGas(576)) + .duration(7 * MINUTES + 40 * SECONDS + 16 * TICKS) + .eut(5) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Items.mushroom_stew, 16, 0), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(new ItemStack(Items.bowl, 16, 0)) + .noFluidInputs() + .fluidOutputs(Materials.Methane.getGas(576)) + .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) + .eut(5) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Items.apple, 32, 0), GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Methane.getGas(576)) + .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) + .eut(5) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Items.bread, 64, 0), GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Methane.getGas(576)) + .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) + .eut(5) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Items.porkchop, 12, 0), GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Methane.getGas(576)) + .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) + .eut(5) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Items.cooked_porkchop, 16, 0), GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Methane.getGas(576)) + .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) + .eut(5) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Items.beef, 12, 0), GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Methane.getGas(576)) + .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) + .eut(5) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Items.cooked_beef, 16, 0), GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Methane.getGas(576)) + .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) + .eut(5) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Items.fish, 12, 32767), GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Methane.getGas(576)) + .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) + .eut(5) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Items.cooked_fished, 16, 32767), GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Methane.getGas(576)) + .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) + .eut(5) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Items.chicken, 12, 0), GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Methane.getGas(576)) + .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) + .eut(5) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Items.cooked_chicken, 16, 0), GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Methane.getGas(576)) + .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) + .eut(5) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Items.melon, 64, 0), GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Methane.getGas(576)) + .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) + .eut(5) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Blocks.pumpkin, 16, 0), GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Methane.getGas(576)) + .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) + .eut(5) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Items.rotten_flesh, 16, 0), GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Methane.getGas(576)) + .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) + .eut(5) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Items.spider_eye, 32, 0), GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Methane.getGas(576)) + .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) + .eut(5) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Items.carrot, 16, 0), GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Methane.getGas(576)) + .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) + .eut(5) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Food_Raw_Potato.get(16), GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Methane.getGas(576)) + .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) + .eut(5) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Food_Poisonous_Potato.get(12), GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Methane.getGas(576)) + .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) + .eut(5) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Food_Baked_Potato.get(24), GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Methane.getGas(576)) + .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) + .eut(5) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Items.cookie, 64, 0), GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Methane.getGas(576)) + .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) + .eut(5) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Items.cake, 8, 0), GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Methane.getGas(576)) + .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) + .eut(5) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Blocks.brown_mushroom_block, 12, 32767), GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Methane.getGas(576)) + .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) + .eut(5) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Blocks.red_mushroom_block, 12, 32767), GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Methane.getGas(576)) + .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) + .eut(5) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Blocks.brown_mushroom, 32, 32767), GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Methane.getGas(576)) + .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) + .eut(5) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Blocks.red_mushroom, 32, 32767), GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Methane.getGas(576)) + .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) + .eut(5) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Items.nether_wart, 32, 32767), GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Methane.getGas(576)) + .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) + .eut(5) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_ModHandler.getIC2Item("terraWart", 16), GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Methane.getGas(576)) + .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) + .eut(5) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(TwilightForest.ID, "item.meefRaw", 12L, 32767), GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Methane.getGas(576)) + .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) + .eut(5) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(TwilightForest.ID, "item.meefSteak", 16L, 32767), GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Methane.getGas(576)) + .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) + .eut(5) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + getModItem(TwilightForest.ID, "item.venisonRaw", 12L, 32767), + GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Methane.getGas(576)) + .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) + .eut(5) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + getModItem(TwilightForest.ID, "item.venisonCooked", 16L, 32767), + GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Methane.getGas(576)) + .duration(3 * MINUTES + 50 * SECONDS + 8 * TICKS) + .eut(5) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.log, Materials.Wood, 1), + GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Methane.getGas(60)) + .duration(10 * SECONDS) + .eut(20) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Blocks.sand, 1, 1)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iron, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Diamond, 1), + new ItemStack(Blocks.sand, 1)) + .outputChances(5000, 100, 5000) + .noFluidInputs() + .noFluidOutputs() + .duration(30 * SECONDS) + .eut((int) TierEU.RECIPE_MV) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Blocks.dirt, 1, 32767)) + .itemOutputs( + ItemList.IC2_Plantball.get(1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Clay, 1), + new ItemStack(Blocks.sand, 1)) + .outputChances(1250, 5000, 5000) + .noFluidInputs() + .noFluidOutputs() + .duration(12 * SECONDS + 10 * TICKS) + .eut(30) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Blocks.grass, 1, 32767)) + .itemOutputs( + ItemList.IC2_Plantball.get(1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Clay, 1), + new ItemStack(Blocks.sand, 1)) + .outputChances(2500, 5000, 5000) + .noFluidInputs() + .noFluidOutputs() + .duration(12 * SECONDS + 10 * TICKS) + .eut(30) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Blocks.mycelium, 1, 32767)) + .itemOutputs( + new ItemStack(Blocks.brown_mushroom, 1), + new ItemStack(Blocks.red_mushroom, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Clay, 1), + new ItemStack(Blocks.sand, 1)) + .outputChances(2500, 2500, 5000, 5000) + .noFluidInputs() + .noFluidOutputs() + .duration(32 * SECONDS + 10 * TICKS) + .eut(30) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.IC2_Resin.get(1)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.RawRubber, 3), + ItemList.IC2_Plantball.get(1)) + .outputChances(10000, 1000) + .noFluidInputs() + .fluidOutputs(Materials.Glue.getFluid(100)) + .duration(15 * SECONDS) + .eut(5) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Uranium, 1), + GT_Utility.getIntegratedCircuit(10)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Uranium235, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Plutonium, 1)) + .outputChances(1000, 500) + .noFluidInputs() + .noFluidOutputs() + .duration(1 * MINUTES + 40 * SECONDS) + .eut((int) TierEU.RECIPE_HV) + .addTo(sCentrifugeRecipes); // Uranium Enrichment in Centrifuge by adding Fluorine (Uranium Hexafluoride) GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Uranium, 1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Uranium235, 1)) - .outputChances(10000) - .fluidInputs(Materials.Fluorine.getGas(4000)) - .noFluidOutputs() - .duration(3 * MINUTES + 20 * SECONDS) - .eut((int) TierEU.RECIPE_EV) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Plutonium, 1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Plutonium241, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Uranium, 1)) - .outputChances(2000, 3000) - .noFluidInputs() - .noFluidOutputs() - .duration(1 * MINUTES + 20 * SECONDS) - .eut(320) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadah, 9)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.NaquadahEnriched, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadria, 1)) - .outputChances(5000, 1000) - .noFluidInputs() - .noFluidOutputs() - .duration(24 * MINUTES) - .eut(320) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.NaquadahEnriched, 4)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadria, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadah, 1)) - .outputChances(2000, 3000) - .noFluidInputs() - .noFluidOutputs() - .duration(21 * MINUTES + 20 * SECONDS) - .eut(640) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.Hydrogen.getGas(160)) - .fluidOutputs(Materials.Deuterium.getGas(40)) - .duration(8 * SECONDS) - .eut(20) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.Deuterium.getGas(160)) - .fluidOutputs(Materials.Tritium.getGas(40)) - .duration(8 * SECONDS) - .eut(80) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.Helium.getGas(80)) - .fluidOutputs(Materials.Helium_3.getGas(5)) - .duration(8 * SECONDS) - .eut(80) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glowstone, 2)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gold, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(48 * SECONDS + 16 * TICKS) - .eut(80) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Endstone, 36)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Tungstate, 3), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Platinum, 1), - new ItemStack(Blocks.sand, 36)) - .outputChances(3750, 2500, 9000) - .noFluidInputs() - .fluidOutputs(Materials.Helium.getGas(4320)) - .duration(9 * MINUTES + 36 * SECONDS) - .eut(20) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Netherrack, 36)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 4), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 9), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Coal, 4), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gold, 1)) - .outputChances(5625, 9900, 5625, 2500) - .noFluidInputs() - .noFluidOutputs() - .duration(4 * MINUTES + 48 * SECONDS) - .eut(20) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(10)) - .itemOutputs( - Materials.SiliconDioxide.getDust(1), - Materials.Magnesia.getDust(1), - Materials.Quicklime.getDust(1), - Materials.Gold.getNuggets(4), - Materials.Sapphire.getDust(1), - Materials.Tantalite.getDust(1)) - .outputChances(5000, 1000, 1000, 250, 1250, 500) - .fluidInputs(Materials.Lava.getFluid(400)) - .noFluidOutputs() - .duration(16 * SECONDS) - .eut(80) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(20)) - .itemOutputs( - Materials.SiliconDioxide.getDust(5), - Materials.Magnesia.getDust(1), - Materials.Quicklime.getDust(1), - Materials.Gold.getIngots(1), - Materials.Sapphire.getDust(3), - Materials.Tantalite.getDust(1)) - .outputChances(9000, 9000, 9000, 1000, 3750, 4500) - .fluidInputs(Materials.Lava.getFluid(3600)) - .noFluidOutputs() - .duration(2 * MINUTES + 24 * SECONDS) - .eut(80) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.soul_sand, 1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Saltpeter, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Coal, 1), - new ItemStack(Blocks.sand, 1)) - .outputChances(1000, 700, 9000) - .noFluidInputs() - .fluidOutputs(Materials.Oil.getFluid(200)) - .duration(10 * SECONDS) - .eut(12) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(10)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Copper, 1), - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Tin, 1), - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Silver, 1), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Phosphorus, 1), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Scheelite, 1), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Bauxite, 1)) - .outputChances(2000, 1000, 250, 50, 250, 500) - .fluidInputs(getFluidStack("ic2pahoehoelava", 100)) - .noFluidOutputs() - .duration(2 * SECONDS) - .eut(1024) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(20)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Copper, 1), - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Tin, 1), - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Silver, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Phosphorus, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Scheelite, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Bauxite, 1)) - .outputChances(8000, 4000, 1000, 450, 2250, 4500) - .fluidInputs(getFluidStack("ic2pahoehoelava", 3600)) - .noFluidOutputs() - .duration(16 * SECONDS + 8 * TICKS) - .eut(4096) - .addTo(sCentrifugeRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Uranium, 1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Uranium235, 1)) + .outputChances(10000) + .fluidInputs(Materials.Fluorine.getGas(4000)) + .noFluidOutputs() + .duration(3 * MINUTES + 20 * SECONDS) + .eut((int) TierEU.RECIPE_EV) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Plutonium, 1)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Plutonium241, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Uranium, 1)) + .outputChances(2000, 3000) + .noFluidInputs() + .noFluidOutputs() + .duration(1 * MINUTES + 20 * SECONDS) + .eut(320) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadah, 9)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.NaquadahEnriched, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadria, 1)) + .outputChances(5000, 1000) + .noFluidInputs() + .noFluidOutputs() + .duration(24 * MINUTES) + .eut(320) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.NaquadahEnriched, 4)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadria, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadah, 1)) + .outputChances(2000, 3000) + .noFluidInputs() + .noFluidOutputs() + .duration(21 * MINUTES + 20 * SECONDS) + .eut(640) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.Hydrogen.getGas(160)) + .fluidOutputs(Materials.Deuterium.getGas(40)) + .duration(8 * SECONDS) + .eut(20) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.Deuterium.getGas(160)) + .fluidOutputs(Materials.Tritium.getGas(40)) + .duration(8 * SECONDS) + .eut(80) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.Helium.getGas(80)) + .fluidOutputs(Materials.Helium_3.getGas(5)) + .duration(8 * SECONDS) + .eut(80) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glowstone, 2)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gold, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(48 * SECONDS + 16 * TICKS) + .eut(80) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Endstone, 36)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Tungstate, 3), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Platinum, 1), + new ItemStack(Blocks.sand, 36)) + .outputChances(3750, 2500, 9000) + .noFluidInputs() + .fluidOutputs(Materials.Helium.getGas(4320)) + .duration(9 * MINUTES + 36 * SECONDS) + .eut(20) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Netherrack, 36)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 4), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 9), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Coal, 4), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gold, 1)) + .outputChances(5625, 9900, 5625, 2500) + .noFluidInputs() + .noFluidOutputs() + .duration(4 * MINUTES + 48 * SECONDS) + .eut(20) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(10)) + .itemOutputs( + Materials.SiliconDioxide.getDust(1), + Materials.Magnesia.getDust(1), + Materials.Quicklime.getDust(1), + Materials.Gold.getNuggets(4), + Materials.Sapphire.getDust(1), + Materials.Tantalite.getDust(1)) + .outputChances(5000, 1000, 1000, 250, 1250, 500) + .fluidInputs(Materials.Lava.getFluid(400)) + .noFluidOutputs() + .duration(16 * SECONDS) + .eut(80) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(20)) + .itemOutputs( + Materials.SiliconDioxide.getDust(5), + Materials.Magnesia.getDust(1), + Materials.Quicklime.getDust(1), + Materials.Gold.getIngots(1), + Materials.Sapphire.getDust(3), + Materials.Tantalite.getDust(1)) + .outputChances(9000, 9000, 9000, 1000, 3750, 4500) + .fluidInputs(Materials.Lava.getFluid(3600)) + .noFluidOutputs() + .duration(2 * MINUTES + 24 * SECONDS) + .eut(80) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Blocks.soul_sand, 1)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Saltpeter, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Coal, 1), + new ItemStack(Blocks.sand, 1)) + .outputChances(1000, 700, 9000) + .noFluidInputs() + .fluidOutputs(Materials.Oil.getFluid(200)) + .duration(10 * SECONDS) + .eut(12) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(10)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Copper, 1), + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Tin, 1), + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Silver, 1), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Phosphorus, 1), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Scheelite, 1), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Bauxite, 1)) + .outputChances(2000, 1000, 250, 50, 250, 500) + .fluidInputs(getFluidStack("ic2pahoehoelava", 100)) + .noFluidOutputs() + .duration(2 * SECONDS) + .eut(1024) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(20)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Copper, 1), + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Tin, 1), + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Silver, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Phosphorus, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Scheelite, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Bauxite, 1)) + .outputChances(8000, 4000, 1000, 450, 2250, 4500) + .fluidInputs(getFluidStack("ic2pahoehoelava", 3600)) + .noFluidOutputs() + .duration(16 * SECONDS + 8 * TICKS) + .eut(4096) + .addTo(sCentrifugeRecipes); // rare earth ( why this still remain GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.RareEarth, 1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Neodymium, 1), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Yttrium, 1), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Lanthanum, 1), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Cerium, 1), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Cadmium, 1), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Caesium, 1)) - .outputChances(2500, 2500, 2500, 2500, 2500, 2500) - .noFluidInputs() - .noFluidOutputs() - .duration(3 * SECONDS + 4 * TICKS) - .eut(20) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 45), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.BasalticMineralSand, 1), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Olivine, 1), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Obsidian, 1), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Basalt, 1), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Flint, 1), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.RareEarth, 1)) - .outputChances(2000, 2000, 2000, 2000, 2000, 2000) - .noFluidInputs() - .noFluidOutputs() - .duration(3 * SECONDS + 4 * TICKS) - .eut(20) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 36L, 45), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.BasalticMineralSand, 2), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Olivine, 2), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Obsidian, 2), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Basalt, 2), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Flint, 2), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.RareEarth, 2)) - .outputChances(9000, 9000, 9000, 9000, 9000, 9000) - .noFluidInputs() - .noFluidOutputs() - .duration(25 * SECONDS + 18 * TICKS) - .eut(80) - .addTo(sCentrifugeRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.RareEarth, 1)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Neodymium, 1), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Yttrium, 1), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Lanthanum, 1), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Cerium, 1), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Cadmium, 1), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Caesium, 1)) + .outputChances(2500, 2500, 2500, 2500, 2500, 2500) + .noFluidInputs() + .noFluidOutputs() + .duration(3 * SECONDS + 4 * TICKS) + .eut(20) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 45), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.BasalticMineralSand, 1), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Olivine, 1), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Obsidian, 1), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Basalt, 1), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Flint, 1), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.RareEarth, 1)) + .outputChances(2000, 2000, 2000, 2000, 2000, 2000) + .noFluidInputs() + .noFluidOutputs() + .duration(3 * SECONDS + 4 * TICKS) + .eut(20) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 36L, 45), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.BasalticMineralSand, 2), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Olivine, 2), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Obsidian, 2), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Basalt, 2), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Flint, 2), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.RareEarth, 2)) + .outputChances(9000, 9000, 9000, 9000, 9000, 9000) + .noFluidInputs() + .noFluidOutputs() + .duration(25 * SECONDS + 18 * TICKS) + .eut(80) + .addTo(sCentrifugeRecipes); // Ash centrifuge recipes GT_Values.RA.stdBuilder() - .itemInputs(Materials.Ash.getDust(36)) - .itemOutputs( - Materials.Quicklime.getDust(18), - Materials.Potash.getDust(9), - Materials.Magnesia.getDust(1), - Materials.PhosphorousPentoxide.getDust(2), - Materials.SodaAsh.getDust(1), - Materials.BandedIron.getDust(4)) - .outputChances(6400, 6000, 4500, 10000, 10000, 10000) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * MINUTES) - .eut(30) - .addTo(sCentrifugeRecipes); + .itemInputs(Materials.Ash.getDust(36)) + .itemOutputs( + Materials.Quicklime.getDust(18), + Materials.Potash.getDust(9), + Materials.Magnesia.getDust(1), + Materials.PhosphorousPentoxide.getDust(2), + Materials.SodaAsh.getDust(1), + Materials.BandedIron.getDust(4)) + .outputChances(6400, 6000, 4500, 10000, 10000, 10000) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * MINUTES) + .eut(30) + .addTo(sCentrifugeRecipes); // Stone Dust and Metal Mixture centrifuge recipes GT_Values.RA.stdBuilder() - .itemInputs(Materials.Stone.getDust(36)) - .itemOutputs( - Materials.Quartzite.getDust(9), - Materials.PotassiumFeldspar.getDust(9), - Materials.Marble.getDust(8), - Materials.Biotite.getDust(4), - Materials.MetalMixture.getDust(3), - Materials.Sodalite.getDust(2)) - .outputChances(10000, 10000, 10000, 10000, 10000, 10000) - .noFluidInputs() - .noFluidOutputs() - .duration(7 * MINUTES + 12 * SECONDS) - .eut(30) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.MetalMixture.getDust(36)) - .itemOutputs( - Materials.BandedIron.getDust(9), - Materials.Bauxite.getDust(9), - Materials.Pyrolusite.getDust(8), - Materials.Barite.getDust(4), - Materials.Chromite.getDust(3), - Materials.Ilmenite.getDust(2)) - .outputChances(10000, 10000, 10000, 10000, 10000, 10000) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * MINUTES + 56 * SECONDS + 5 * TICKS) - .eut((int) TierEU.RECIPE_EV) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.Propane.getGas(320)) - .fluidOutputs(Materials.LPG.getFluid(290)) - .duration(20 * TICKS) - .eut(5) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.Butane.getGas(320)) - .fluidOutputs(Materials.LPG.getFluid(370)) - .duration(20 * TICKS) - .eut(5) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadah, 8), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.ElectrumFlux, 8)) - .outputChances(10000, 10000) - .fluidInputs(Materials.EnrichedNaquadria.getFluid(9216)) - .fluidOutputs(Materials.FluidNaquadahFuel.getFluid(4806)) - .duration(30 * SECONDS) - .eut(2000000) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkAsh, 1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 1), - ItemList.TE_Slag.get(1L, GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Carbon, 1))) - .noFluidInputs() - .noFluidOutputs() - .duration(12 * SECONDS + 10 * TICKS) - .eut(5) - .addTo(sCentrifugeRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.magma_cream, 1)) - .itemOutputs(new ItemStack(Items.blaze_powder, 1), new ItemStack(Items.slime_ball, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(25 * SECONDS) - .eut(5) - .addTo(sCentrifugeRecipes); + .itemInputs(Materials.Stone.getDust(36)) + .itemOutputs( + Materials.Quartzite.getDust(9), + Materials.PotassiumFeldspar.getDust(9), + Materials.Marble.getDust(8), + Materials.Biotite.getDust(4), + Materials.MetalMixture.getDust(3), + Materials.Sodalite.getDust(2)) + .outputChances(10000, 10000, 10000, 10000, 10000, 10000) + .noFluidInputs() + .noFluidOutputs() + .duration(7 * MINUTES + 12 * SECONDS) + .eut(30) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.MetalMixture.getDust(36)) + .itemOutputs( + Materials.BandedIron.getDust(9), + Materials.Bauxite.getDust(9), + Materials.Pyrolusite.getDust(8), + Materials.Barite.getDust(4), + Materials.Chromite.getDust(3), + Materials.Ilmenite.getDust(2)) + .outputChances(10000, 10000, 10000, 10000, 10000, 10000) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * MINUTES + 56 * SECONDS + 5 * TICKS) + .eut((int) TierEU.RECIPE_EV) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.Propane.getGas(320)) + .fluidOutputs(Materials.LPG.getFluid(290)) + .duration(20 * TICKS) + .eut(5) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.Butane.getGas(320)) + .fluidOutputs(Materials.LPG.getFluid(370)) + .duration(20 * TICKS) + .eut(5) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadah, 8), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.ElectrumFlux, 8)) + .outputChances(10000, 10000) + .fluidInputs(Materials.EnrichedNaquadria.getFluid(9216)) + .fluidOutputs(Materials.FluidNaquadahFuel.getFluid(4806)) + .duration(30 * SECONDS) + .eut(2000000) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkAsh, 1)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 1), + ItemList.TE_Slag.get(1L, GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Carbon, 1))) + .noFluidInputs() + .noFluidOutputs() + .duration(12 * SECONDS + 10 * TICKS) + .eut(5) + .addTo(sCentrifugeRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Items.magma_cream, 1)) + .itemOutputs(new ItemStack(Items.blaze_powder, 1), new ItemStack(Items.slime_ball, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(25 * SECONDS) + .eut(5) + .addTo(sCentrifugeRecipes); if (Thaumcraft.isModLoaded()) { // air GT_Values.RA.stdBuilder() - .itemInputs(getModItem(GregTech.ID, "gt.comb", 1L, 144), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.InfusedAir, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(51 * SECONDS + 4 * TICKS) - .eut(12) - .addTo(sCentrifugeRecipes); + .itemInputs(getModItem(GregTech.ID, "gt.comb", 1L, 144), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.InfusedAir, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(51 * SECONDS + 4 * TICKS) + .eut(12) + .addTo(sCentrifugeRecipes); // fire GT_Values.RA.stdBuilder() - .itemInputs(getModItem(GregTech.ID, "gt.comb", 1L, 146), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.InfusedFire, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(51 * SECONDS + 4 * TICKS) - .eut(12) - .addTo(sCentrifugeRecipes); + .itemInputs(getModItem(GregTech.ID, "gt.comb", 1L, 146), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.InfusedFire, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(51 * SECONDS + 4 * TICKS) + .eut(12) + .addTo(sCentrifugeRecipes); // aqua GT_Values.RA.stdBuilder() - .itemInputs(getModItem(GregTech.ID, "gt.comb", 1L, 147), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.InfusedWater, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(51 * SECONDS + 4 * TICKS) - .eut(12) - .addTo(sCentrifugeRecipes); + .itemInputs(getModItem(GregTech.ID, "gt.comb", 1L, 147), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.InfusedWater, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(51 * SECONDS + 4 * TICKS) + .eut(12) + .addTo(sCentrifugeRecipes); // terra GT_Values.RA.stdBuilder() - .itemInputs(getModItem(GregTech.ID, "gt.comb", 1L, 145), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.InfusedEarth, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(51 * SECONDS + 4 * TICKS) - .eut(12) - .addTo(sCentrifugeRecipes); + .itemInputs(getModItem(GregTech.ID, "gt.comb", 1L, 145), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.InfusedEarth, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(51 * SECONDS + 4 * TICKS) + .eut(12) + .addTo(sCentrifugeRecipes); // ordo GT_Values.RA.stdBuilder() - .itemInputs(getModItem(GregTech.ID, "gt.comb", 1L, 148), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.InfusedOrder, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(51 * SECONDS + 4 * TICKS) - .eut(12) - .addTo(sCentrifugeRecipes); + .itemInputs(getModItem(GregTech.ID, "gt.comb", 1L, 148), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.InfusedOrder, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(51 * SECONDS + 4 * TICKS) + .eut(12) + .addTo(sCentrifugeRecipes); // perditio GT_Values.RA.stdBuilder() - .itemInputs(getModItem(GregTech.ID, "gt.comb", 1L, 149), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.InfusedEntropy, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(51 * SECONDS + 4 * TICKS) - .eut(12) - .addTo(sCentrifugeRecipes); + .itemInputs(getModItem(GregTech.ID, "gt.comb", 1L, 149), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.InfusedEntropy, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(51 * SECONDS + 4 * TICKS) + .eut(12) + .addTo(sCentrifugeRecipes); // Nethershard GT_Values.RA.stdBuilder() - .itemInputs(getModItem(GregTech.ID, "gt.comb", 1L, 152), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(getModItem(ThaumicTinkerer.ID, "kamiResource", 1L, 6)) - .noFluidInputs() - .noFluidOutputs() - .duration(6 * SECONDS + 8 * TICKS) - .eut(512) - .addTo(sCentrifugeRecipes); + .itemInputs(getModItem(GregTech.ID, "gt.comb", 1L, 152), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(getModItem(ThaumicTinkerer.ID, "kamiResource", 1L, 6)) + .noFluidInputs() + .noFluidOutputs() + .duration(6 * SECONDS + 8 * TICKS) + .eut(512) + .addTo(sCentrifugeRecipes); // Endshard GT_Values.RA.stdBuilder() - .itemInputs(getModItem(GregTech.ID, "gt.comb", 1L, 153), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(getModItem(ThaumicTinkerer.ID, "kamiResource", 1L, 7)) - .noFluidInputs() - .noFluidOutputs() - .duration(6 * SECONDS + 8 * TICKS) - .eut(512) - .addTo(sCentrifugeRecipes); + .itemInputs(getModItem(GregTech.ID, "gt.comb", 1L, 153), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(getModItem(ThaumicTinkerer.ID, "kamiResource", 1L, 7)) + .noFluidInputs() + .noFluidOutputs() + .duration(6 * SECONDS + 8 * TICKS) + .eut(512) + .addTo(sCentrifugeRecipes); } if (ExtraUtilities.isModLoaded()) { // Caelestis red GT_Values.RA.stdBuilder() - .itemInputs(getModItem(GregTech.ID, "gt.comb", 1L, 154), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs( - getModItem(ExtraUtilities.ID, "greenscreen", 1L, 2), - getModItem(ExtraUtilities.ID, "greenscreen", 1L, 10), - getModItem(ExtraUtilities.ID, "greenscreen", 1L, 14), - getModItem(ExtraUtilities.ID, "greenscreen", 1L, 1), - getModItem(ExtraUtilities.ID, "greenscreen", 1L, 12), - getModItem(ExtraUtilities.ID, "greenscreen", 1L, 6)) - .noFluidInputs() - .noFluidOutputs() - .duration(25 * SECONDS + 12 * TICKS) - .eut(12) - .addTo(sCentrifugeRecipes); + .itemInputs(getModItem(GregTech.ID, "gt.comb", 1L, 154), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs( + getModItem(ExtraUtilities.ID, "greenscreen", 1L, 2), + getModItem(ExtraUtilities.ID, "greenscreen", 1L, 10), + getModItem(ExtraUtilities.ID, "greenscreen", 1L, 14), + getModItem(ExtraUtilities.ID, "greenscreen", 1L, 1), + getModItem(ExtraUtilities.ID, "greenscreen", 1L, 12), + getModItem(ExtraUtilities.ID, "greenscreen", 1L, 6)) + .noFluidInputs() + .noFluidOutputs() + .duration(25 * SECONDS + 12 * TICKS) + .eut(12) + .addTo(sCentrifugeRecipes); // Caelestis green GT_Values.RA.stdBuilder() - .itemInputs(getModItem(GregTech.ID, "gt.comb", 1L, 155), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs( - getModItem(ExtraUtilities.ID, "greenscreen", 1L, 13), - getModItem(ExtraUtilities.ID, "greenscreen", 1L, 5), - getModItem(ExtraUtilities.ID, "greenscreen", 1L, 4), - getModItem(ExtraUtilities.ID, "greenscreen", 1L, 8), - getModItem(ExtraUtilities.ID, "greenscreen", 1L, 0), - NI) - .noFluidInputs() - .noFluidOutputs() - .duration(25 * SECONDS + 12 * TICKS) - .eut(12) - .addTo(sCentrifugeRecipes); + .itemInputs(getModItem(GregTech.ID, "gt.comb", 1L, 155), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs( + getModItem(ExtraUtilities.ID, "greenscreen", 1L, 13), + getModItem(ExtraUtilities.ID, "greenscreen", 1L, 5), + getModItem(ExtraUtilities.ID, "greenscreen", 1L, 4), + getModItem(ExtraUtilities.ID, "greenscreen", 1L, 8), + getModItem(ExtraUtilities.ID, "greenscreen", 1L, 0), + NI) + .noFluidInputs() + .noFluidOutputs() + .duration(25 * SECONDS + 12 * TICKS) + .eut(12) + .addTo(sCentrifugeRecipes); // Caelestis blue GT_Values.RA.stdBuilder() - .itemInputs(getModItem(GregTech.ID, "gt.comb", 1L, 156), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs( - getModItem(ExtraUtilities.ID, "greenscreen", 1L, 3), - getModItem(ExtraUtilities.ID, "greenscreen", 1L, 9), - getModItem(ExtraUtilities.ID, "greenscreen", 1L, 11), - getModItem(ExtraUtilities.ID, "greenscreen", 1L, 7), - getModItem(ExtraUtilities.ID, "greenscreen", 1L, 15), - NI) - .noFluidInputs() - .noFluidOutputs() - .duration(25 * SECONDS + 12 * TICKS) - .eut(12) - .addTo(sCentrifugeRecipes); + .itemInputs(getModItem(GregTech.ID, "gt.comb", 1L, 156), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs( + getModItem(ExtraUtilities.ID, "greenscreen", 1L, 3), + getModItem(ExtraUtilities.ID, "greenscreen", 1L, 9), + getModItem(ExtraUtilities.ID, "greenscreen", 1L, 11), + getModItem(ExtraUtilities.ID, "greenscreen", 1L, 7), + getModItem(ExtraUtilities.ID, "greenscreen", 1L, 15), + NI) + .noFluidInputs() + .noFluidOutputs() + .duration(25 * SECONDS + 12 * TICKS) + .eut(12) + .addTo(sCentrifugeRecipes); } } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/ChemicalBathRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/ChemicalBathRecipes.java index 6b6f2526c7..bf7a2a67a3 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/ChemicalBathRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/ChemicalBathRecipes.java @@ -22,358 +22,358 @@ public class ChemicalBathRecipes implements Runnable { @Override public void run() { GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Food_Raw_Fries.get(1)) - .itemOutputs(ItemList.Food_Fries.get(1)) - .fluidInputs(Materials.FryingOilHot.getFluid(10)) - .noFluidOutputs() - .duration(16 * TICKS) - .eut(4) - .addTo(sChemicalBathRecipes); + .itemInputs(ItemList.Food_Raw_Fries.get(1)) + .itemOutputs(ItemList.Food_Fries.get(1)) + .fluidInputs(Materials.FryingOilHot.getFluid(10)) + .noFluidOutputs() + .duration(16 * TICKS) + .eut(4) + .addTo(sChemicalBathRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_ModHandler.getIC2Item("dynamite", 1)) - .itemOutputs(GT_ModHandler.getIC2Item("stickyDynamite", 1)) - .fluidInputs(Materials.Glue.getFluid(10)) - .noFluidOutputs() - .duration(16 * TICKS) - .eut(4) - .addTo(sChemicalBathRecipes); + .itemInputs(GT_ModHandler.getIC2Item("dynamite", 1)) + .itemOutputs(GT_ModHandler.getIC2Item("stickyDynamite", 1)) + .fluidInputs(Materials.Glue.getFluid(10)) + .noFluidOutputs() + .duration(16 * TICKS) + .eut(4) + .addTo(sChemicalBathRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Steel, 1)) - .itemOutputs(GT_ModHandler.getIC2Item("reinforcedStone", 1)) - .fluidInputs(Materials.Concrete.getMolten(144)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(4) - .addTo(sChemicalBathRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Steel, 1)) + .itemOutputs(GT_ModHandler.getIC2Item("reinforcedStone", 1)) + .fluidInputs(Materials.Concrete.getMolten(144)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(4) + .addTo(sChemicalBathRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Coal, 1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.HydratedCoal, 1)) - .fluidInputs(Materials.Water.getFluid(125)) - .noFluidOutputs() - .duration(12 * TICKS) - .eut(4) - .addTo(sChemicalBathRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Coal, 1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.HydratedCoal, 1)) + .fluidInputs(Materials.Water.getFluid(125)) + .noFluidOutputs() + .duration(12 * TICKS) + .eut(4) + .addTo(sChemicalBathRecipes); // paper creation recipes ItemStack[] paperSources = new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Paper, 1L), new ItemStack(Items.reeds, 1, 32767) }; + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Paper, 1L), new ItemStack(Items.reeds, 1, 32767) }; for (ItemStack paperSource : paperSources) { GT_Values.RA.stdBuilder() - .itemInputs(paperSource) - .itemOutputs(new ItemStack(Items.paper, 1, 0)) - .fluidInputs(Materials.Water.getFluid(100)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(4) - .addTo(sChemicalBathRecipes); + .itemInputs(paperSource) + .itemOutputs(new ItemStack(Items.paper, 1, 0)) + .fluidInputs(Materials.Water.getFluid(100)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(4) + .addTo(sChemicalBathRecipes); GT_Values.RA.stdBuilder() - .itemInputs(paperSource) - .itemOutputs(new ItemStack(Items.paper, 1, 0)) - .fluidInputs(GT_ModHandler.getDistilledWater(100)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(4) - .addTo(sChemicalBathRecipes); + .itemInputs(paperSource) + .itemOutputs(new ItemStack(Items.paper, 1, 0)) + .fluidInputs(GT_ModHandler.getDistilledWater(100)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(4) + .addTo(sChemicalBathRecipes); } GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Coal, 1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.HydratedCoal, 1)) - .fluidInputs(GT_ModHandler.getDistilledWater(125)) - .noFluidOutputs() - .duration(12 * TICKS) - .eut(4) - .addTo(sChemicalBathRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Coal, 1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.HydratedCoal, 1)) + .fluidInputs(GT_ModHandler.getDistilledWater(125)) + .noFluidOutputs() + .duration(12 * TICKS) + .eut(4) + .addTo(sChemicalBathRecipes); for (int i = 1; i < 16; i++) { // wool cleaning recipes GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.wool, 1, i)) - .itemOutputs(new ItemStack(Blocks.wool, 1, 0)) - .fluidInputs(Materials.Chlorine.getGas(50)) - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(2) - .addTo(sChemicalBathRecipes); + .itemInputs(new ItemStack(Blocks.wool, 1, i)) + .itemOutputs(new ItemStack(Blocks.wool, 1, 0)) + .fluidInputs(Materials.Chlorine.getGas(50)) + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(2) + .addTo(sChemicalBathRecipes); // carpet cleaning recipes GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.carpet, 1, 32767)) - .itemOutputs(new ItemStack(Blocks.carpet, 1, 0)) - .fluidInputs(Materials.Chlorine.getGas(25)) - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(2) - .addTo(sChemicalBathRecipes); + .itemInputs(new ItemStack(Blocks.carpet, 1, 32767)) + .itemOutputs(new ItemStack(Blocks.carpet, 1, 0)) + .fluidInputs(Materials.Chlorine.getGas(25)) + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(2) + .addTo(sChemicalBathRecipes); } // stained hardened clay cleaning GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.stained_hardened_clay, 1, 32767)) - .itemOutputs(new ItemStack(Blocks.hardened_clay, 1, 0)) - .fluidInputs(Materials.Chlorine.getGas(50)) - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(2) - .addTo(sChemicalBathRecipes); + .itemInputs(new ItemStack(Blocks.stained_hardened_clay, 1, 32767)) + .itemOutputs(new ItemStack(Blocks.hardened_clay, 1, 0)) + .fluidInputs(Materials.Chlorine.getGas(50)) + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(2) + .addTo(sChemicalBathRecipes); // stained glass cleaning GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.stained_glass, 1, 32767)) - .itemOutputs(new ItemStack(Blocks.glass, 1, 0)) - .fluidInputs(Materials.Chlorine.getGas(50)) - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(2) - .addTo(sChemicalBathRecipes); + .itemInputs(new ItemStack(Blocks.stained_glass, 1, 32767)) + .itemOutputs(new ItemStack(Blocks.glass, 1, 0)) + .fluidInputs(Materials.Chlorine.getGas(50)) + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(2) + .addTo(sChemicalBathRecipes); // stained glass pane cleaning GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.stained_glass_pane, 1, 32767)) - .itemOutputs(new ItemStack(Blocks.glass_pane, 1, 0)) - .fluidInputs(Materials.Chlorine.getGas(20)) - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(2) - .addTo(sChemicalBathRecipes); + .itemInputs(new ItemStack(Blocks.stained_glass_pane, 1, 32767)) + .itemOutputs(new ItemStack(Blocks.glass_pane, 1, 0)) + .fluidInputs(Materials.Chlorine.getGas(20)) + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(2) + .addTo(sChemicalBathRecipes); // light -> dark concrete recipes for (int i = 0; i < 8; i++) { GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(GregTech_API.sBlockConcretes, 1, i + 8)) - .itemOutputs(new ItemStack(GregTech_API.sBlockConcretes, 1, i)) - .fluidInputs(Materials.Water.getFluid(250)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(4) - .addTo(sChemicalBathRecipes); + .itemInputs(new ItemStack(GregTech_API.sBlockConcretes, 1, i + 8)) + .itemOutputs(new ItemStack(GregTech_API.sBlockConcretes, 1, i)) + .fluidInputs(Materials.Water.getFluid(250)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(4) + .addTo(sChemicalBathRecipes); GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(GregTech_API.sBlockConcretes, 1, i + 8)) - .itemOutputs(new ItemStack(GregTech_API.sBlockConcretes, 1, i)) - .fluidInputs(GT_ModHandler.getDistilledWater(250)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(4) - .addTo(sChemicalBathRecipes); + .itemInputs(new ItemStack(GregTech_API.sBlockConcretes, 1, i + 8)) + .itemOutputs(new ItemStack(GregTech_API.sBlockConcretes, 1, i)) + .fluidInputs(GT_ModHandler.getDistilledWater(250)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(4) + .addTo(sChemicalBathRecipes); } // reinforced blocks { GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Bronze, 1)) - .itemOutputs(ItemList.Block_BronzePlate.get(1)) - .fluidInputs(Materials.Concrete.getMolten(144)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(4) - .addTo(sChemicalBathRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Bronze, 1)) + .itemOutputs(ItemList.Block_BronzePlate.get(1)) + .fluidInputs(Materials.Concrete.getMolten(144)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(4) + .addTo(sChemicalBathRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Steel, 1)) - .itemOutputs(ItemList.Block_SteelPlate.get(1)) - .fluidInputs(Materials.Steel.getMolten(288)) - .noFluidOutputs() - .duration(12 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sChemicalBathRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Steel, 1)) + .itemOutputs(ItemList.Block_SteelPlate.get(1)) + .fluidInputs(Materials.Steel.getMolten(288)) + .noFluidOutputs() + .duration(12 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sChemicalBathRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Titanium, 1)) - .itemOutputs(ItemList.Block_TitaniumPlate.get(1)) - .fluidInputs(Materials.Titanium.getMolten(144)) - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sChemicalBathRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Titanium, 1)) + .itemOutputs(ItemList.Block_TitaniumPlate.get(1)) + .fluidInputs(Materials.Titanium.getMolten(144)) + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sChemicalBathRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.TungstenSteel, 1)) - .itemOutputs(ItemList.Block_TungstenSteelReinforced.get(1)) - .fluidInputs(Materials.TungstenSteel.getMolten(144)) - .noFluidOutputs() - .duration(17 * SECONDS + 10 * TICKS) - .eut(64) - .addTo(sChemicalBathRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.TungstenSteel, 1)) + .itemOutputs(ItemList.Block_TungstenSteelReinforced.get(1)) + .fluidInputs(Materials.TungstenSteel.getMolten(144)) + .noFluidOutputs() + .duration(17 * SECONDS + 10 * TICKS) + .eut(64) + .addTo(sChemicalBathRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Iridium, 1)) - .itemOutputs(ItemList.Block_IridiumTungstensteel.get(1)) - .fluidInputs(Materials.Iridium.getMolten(144)) - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sChemicalBathRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Iridium, 1)) + .itemOutputs(ItemList.Block_IridiumTungstensteel.get(1)) + .fluidInputs(Materials.Iridium.getMolten(144)) + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sChemicalBathRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Naquadah, 1)) - .itemOutputs(ItemList.Block_NaquadahPlate.get(1)) - .fluidInputs(Materials.Osmium.getMolten(144)) - .noFluidOutputs() - .duration(22 * SECONDS + 10 * TICKS) - .eut(256) - .addTo(sChemicalBathRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Naquadah, 1)) + .itemOutputs(ItemList.Block_NaquadahPlate.get(1)) + .fluidInputs(Materials.Osmium.getMolten(144)) + .noFluidOutputs() + .duration(22 * SECONDS + 10 * TICKS) + .eut(256) + .addTo(sChemicalBathRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Neutronium, 1)) - .itemOutputs(ItemList.Block_NeutroniumPlate.get(1)) - .fluidInputs(Materials.Naquadria.getMolten(144)) - .noFluidOutputs() - .duration(25 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sChemicalBathRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Neutronium, 1)) + .itemOutputs(ItemList.Block_NeutroniumPlate.get(1)) + .fluidInputs(Materials.Naquadria.getMolten(144)) + .noFluidOutputs() + .duration(25 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sChemicalBathRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.TungstenSteel, 1)) - .itemOutputs(ItemList.Block_TungstenSteelReinforced.get(1)) - .fluidInputs(Materials.Concrete.getMolten(144)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(4) - .addTo(sChemicalBathRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.TungstenSteel, 1)) + .itemOutputs(ItemList.Block_TungstenSteelReinforced.get(1)) + .fluidInputs(Materials.Concrete.getMolten(144)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(4) + .addTo(sChemicalBathRecipes); } for (int j = 0; j < Dyes.dyeRed.getSizeOfFluidList(); j++) { GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.RedAlloy, 1)) - .itemOutputs(getModItem(BuildCraftTransport.ID, "pipeWire", 4L, 0)) - .fluidInputs(Dyes.dyeRed.getFluidDye(j, 72)) - .noFluidOutputs() - .duration(1 * SECONDS + 12 * TICKS) - .eut(16) - .addTo(sChemicalBathRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.RedAlloy, 1)) + .itemOutputs(getModItem(BuildCraftTransport.ID, "pipeWire", 4L, 0)) + .fluidInputs(Dyes.dyeRed.getFluidDye(j, 72)) + .noFluidOutputs() + .duration(1 * SECONDS + 12 * TICKS) + .eut(16) + .addTo(sChemicalBathRecipes); } for (int j = 0; j < Dyes.dyeBlue.getSizeOfFluidList(); j++) { GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.RedAlloy, 1)) - .itemOutputs(getModItem(BuildCraftTransport.ID, "pipeWire", 4L, 1)) - .fluidInputs(Dyes.dyeBlue.getFluidDye(j, 72)) - .noFluidOutputs() - .duration(1 * SECONDS + 12 * TICKS) - .eut(16) - .addTo(sChemicalBathRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.RedAlloy, 1)) + .itemOutputs(getModItem(BuildCraftTransport.ID, "pipeWire", 4L, 1)) + .fluidInputs(Dyes.dyeBlue.getFluidDye(j, 72)) + .noFluidOutputs() + .duration(1 * SECONDS + 12 * TICKS) + .eut(16) + .addTo(sChemicalBathRecipes); } for (int j = 0; j < Dyes.dyeGreen.getSizeOfFluidList(); j++) { GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.RedAlloy, 1)) - .itemOutputs(getModItem(BuildCraftTransport.ID, "pipeWire", 4L, 2)) - .fluidInputs(Dyes.dyeGreen.getFluidDye(j, 72)) - .noFluidOutputs() - .duration(1 * SECONDS + 12 * TICKS) - .eut(16) - .addTo(sChemicalBathRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.RedAlloy, 1)) + .itemOutputs(getModItem(BuildCraftTransport.ID, "pipeWire", 4L, 2)) + .fluidInputs(Dyes.dyeGreen.getFluidDye(j, 72)) + .noFluidOutputs() + .duration(1 * SECONDS + 12 * TICKS) + .eut(16) + .addTo(sChemicalBathRecipes); } for (int j = 0; j < Dyes.dyeYellow.getSizeOfFluidList(); j++) { GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.RedAlloy, 1)) - .itemOutputs(getModItem(BuildCraftTransport.ID, "pipeWire", 4L, 3)) - .fluidInputs(Dyes.dyeYellow.getFluidDye(j, 72)) - .noFluidOutputs() - .duration(1 * SECONDS + 12 * TICKS) - .eut(16) - .addTo(sChemicalBathRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.RedAlloy, 1)) + .itemOutputs(getModItem(BuildCraftTransport.ID, "pipeWire", 4L, 3)) + .fluidInputs(Dyes.dyeYellow.getFluidDye(j, 72)) + .noFluidOutputs() + .duration(1 * SECONDS + 12 * TICKS) + .eut(16) + .addTo(sChemicalBathRecipes); } for (byte i = 0; i < 16; i = (byte) (i + 1)) { for (int j = 0; j < Dyes.VALUES[i].getSizeOfFluidList(); j++) { if (i != 15) { GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.wool, 1, 0)) - .itemOutputs(new ItemStack(Blocks.wool, 1, 15 - i)) - .fluidInputs(Dyes.VALUES[i].getFluidDye(j, 72)) - .noFluidOutputs() - .duration(3 * SECONDS + 4 * TICKS) - .eut(2) - .addTo(sChemicalBathRecipes); + .itemInputs(new ItemStack(Blocks.wool, 1, 0)) + .itemOutputs(new ItemStack(Blocks.wool, 1, 15 - i)) + .fluidInputs(Dyes.VALUES[i].getFluidDye(j, 72)) + .noFluidOutputs() + .duration(3 * SECONDS + 4 * TICKS) + .eut(2) + .addTo(sChemicalBathRecipes); } GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.glass, 1, 0)) - .itemOutputs(new ItemStack(Blocks.stained_glass, 1, 15 - i)) - .fluidInputs(Dyes.VALUES[i].getFluidDye(j, 18)) - .noFluidOutputs() - .duration(3 * SECONDS + 4 * TICKS) - .eut(2) - .addTo(sChemicalBathRecipes); + .itemInputs(new ItemStack(Blocks.glass, 1, 0)) + .itemOutputs(new ItemStack(Blocks.stained_glass, 1, 15 - i)) + .fluidInputs(Dyes.VALUES[i].getFluidDye(j, 18)) + .noFluidOutputs() + .duration(3 * SECONDS + 4 * TICKS) + .eut(2) + .addTo(sChemicalBathRecipes); GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.hardened_clay, 1, 0)) - .itemOutputs(new ItemStack(Blocks.stained_hardened_clay, 1, 15 - i)) - .fluidInputs(Dyes.VALUES[i].getFluidDye(j, 18)) - .noFluidOutputs() - .duration(3 * SECONDS + 4 * TICKS) - .eut(2) - .addTo(sChemicalBathRecipes); + .itemInputs(new ItemStack(Blocks.hardened_clay, 1, 0)) + .itemOutputs(new ItemStack(Blocks.stained_hardened_clay, 1, 15 - i)) + .fluidInputs(Dyes.VALUES[i].getFluidDye(j, 18)) + .noFluidOutputs() + .duration(3 * SECONDS + 4 * TICKS) + .eut(2) + .addTo(sChemicalBathRecipes); } } // Rn relate quantum recipe GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.EnderEye, 1)) - .itemOutputs(ItemList.QuantumEye.get(1)) - .fluidInputs(Materials.Radon.getGas(250)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(384) - .addTo(sChemicalBathRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.EnderEye, 1)) + .itemOutputs(ItemList.QuantumEye.get(1)) + .fluidInputs(Materials.Radon.getGas(250)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(384) + .addTo(sChemicalBathRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.NetherStar, 1)) - .itemOutputs(ItemList.QuantumStar.get(1)) - .fluidInputs(Materials.Radon.getGas(1250)) - .noFluidOutputs() - .duration(1 * MINUTES + 36 * SECONDS) - .eut(384) - .addTo(sChemicalBathRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.NetherStar, 1)) + .itemOutputs(ItemList.QuantumStar.get(1)) + .fluidInputs(Materials.Radon.getGas(1250)) + .noFluidOutputs() + .duration(1 * MINUTES + 36 * SECONDS) + .eut(384) + .addTo(sChemicalBathRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.WovenKevlar.get(1)) - .itemOutputs(MaterialsKevlar.Kevlar.getPlates(1)) - .fluidInputs(MaterialsKevlar.PolyurethaneResin.getFluid(1000)) - .noFluidOutputs() - .duration(60 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sChemicalBathRecipes); + .itemInputs(ItemList.WovenKevlar.get(1)) + .itemOutputs(MaterialsKevlar.Kevlar.getPlates(1)) + .fluidInputs(MaterialsKevlar.PolyurethaneResin.getFluid(1000)) + .noFluidOutputs() + .duration(60 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sChemicalBathRecipes); // Na + H2O = NaOH + H GT_Values.RA.stdBuilder() - .itemInputs(Materials.Sodium.getDust(1)) - .itemOutputs(Materials.SodiumHydroxide.getDust(3)) - .fluidInputs(Materials.Water.getFluid(1000)) - .fluidOutputs(Materials.Hydrogen.getGas(1000)) - .duration(5 * SECONDS) - .eut(4) - .addTo(sChemicalBathRecipes); + .itemInputs(Materials.Sodium.getDust(1)) + .itemOutputs(Materials.SodiumHydroxide.getDust(3)) + .fluidInputs(Materials.Water.getFluid(1000)) + .fluidOutputs(Materials.Hydrogen.getGas(1000)) + .duration(5 * SECONDS) + .eut(4) + .addTo(sChemicalBathRecipes); // Custom Sodium Persulfate Ore Processing Recipes Materials[] materialList = new Materials[] { Materials.Tantalite, Materials.Pyrolusite, Materials.Quartzite, - Materials.CertusQuartz, Materials.Bauxite, Materials.Thorium, Materials.Stibnite }; + Materials.CertusQuartz, Materials.Bauxite, Materials.Thorium, Materials.Stibnite }; for (Materials material : materialList) { GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.crushed, material, 1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.crushedPurified, material, 1), - Materials.Tantalum.getDust(1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Stone, 1)) - .outputChances(10000, 3000, 4000) - .fluidInputs(Materials.SodiumPersulfate.getFluid(100)) - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(8) - .addTo(sChemicalBathRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.crushed, material, 1)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.crushedPurified, material, 1), + Materials.Tantalum.getDust(1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Stone, 1)) + .outputChances(10000, 3000, 4000) + .fluidInputs(Materials.SodiumPersulfate.getFluid(100)) + .noFluidOutputs() + .duration(40 * SECONDS) + .eut(8) + .addTo(sChemicalBathRecipes); } GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.log, Materials.Wood, 1)) - .itemOutputs(getModItem(Railcraft.ID, "cube", 1, 8)) - .fluidInputs(Materials.Creosote.getFluid(100)) - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(4) - .addTo(sChemicalBathRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.log, Materials.Wood, 1)) + .itemOutputs(getModItem(Railcraft.ID, "cube", 1, 8)) + .fluidInputs(Materials.Creosote.getFluid(100)) + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(4) + .addTo(sChemicalBathRecipes); } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/ChemicalRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/ChemicalRecipes.java index 3b7db2711c..2e273cca2a 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/ChemicalRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/ChemicalRecipes.java @@ -36,3896 +36,3882 @@ public class ChemicalRecipes implements Runnable { public void registerBoth() { GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.paper, 1), new ItemStack(Items.string, 1)) - .itemOutputs(GT_ModHandler.getIC2Item("dynamite", 1)) - .fluidInputs(Materials.Glyceryl.getFluid(500)) - .noFluidOutputs() - .duration(8 * SECONDS) - .eut(4) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Aluminium, 4), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Indium, 1)) - .fluidInputs(new FluidStack(ItemList.sIndiumConcentrate, 8000)) - .fluidOutputs(new FluidStack(ItemList.sLeadZincSolution, 8000)) - .duration(2 * SECONDS + 10 * TICKS) - .eut(TierEU.RECIPE_HV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Aluminium, 36), - GT_Utility.getIntegratedCircuit(9)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Indium, 1)) - .fluidInputs(new FluidStack(ItemList.sIndiumConcentrate, 72000)) - .fluidOutputs(new FluidStack(ItemList.sLeadZincSolution, 72000)) - .duration(22 * SECONDS + 10 * TICKS) - .eut(TierEU.RECIPE_HV) - .addTo(UniversalChemical); + .itemInputs(new ItemStack(Items.paper, 1), new ItemStack(Items.string, 1)) + .itemOutputs(GT_ModHandler.getIC2Item("dynamite", 1)) + .fluidInputs(Materials.Glyceryl.getFluid(500)) + .noFluidOutputs() + .duration(8 * SECONDS) + .eut(4) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Aluminium, 4), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Indium, 1)) + .fluidInputs(new FluidStack(ItemList.sIndiumConcentrate, 8000)) + .fluidOutputs(new FluidStack(ItemList.sLeadZincSolution, 8000)) + .duration(2 * SECONDS + 10 * TICKS) + .eut(TierEU.RECIPE_HV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Aluminium, 36), + GT_Utility.getIntegratedCircuit(9)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Indium, 1)) + .fluidInputs(new FluidStack(ItemList.sIndiumConcentrate, 72000)) + .fluidOutputs(new FluidStack(ItemList.sLeadZincSolution, 72000)) + .duration(22 * SECONDS + 10 * TICKS) + .eut(TierEU.RECIPE_HV) + .addTo(UniversalChemical); // Platinum Group Sludge chain GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.crushedPurified, Materials.Pentlandite, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.PlatinumGroupSludge, 1)) - .fluidInputs(Materials.SulfuricAcid.getFluid(1000)) - .fluidOutputs(new FluidStack(ItemList.sNickelSulfate, 2000)) - .duration(2 * SECONDS + 10 * TICKS) - .eut(30) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.crushedPurified, Materials.Pentlandite, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.PlatinumGroupSludge, 1)) + .fluidInputs(Materials.SulfuricAcid.getFluid(1000)) + .fluidOutputs(new FluidStack(ItemList.sNickelSulfate, 2000)) + .duration(2 * SECONDS + 10 * TICKS) + .eut(30) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.crushedPurified, Materials.Chalcopyrite, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.PlatinumGroupSludge, 1)) - .fluidInputs(Materials.SulfuricAcid.getFluid(1000)) - .fluidOutputs(new FluidStack(ItemList.sBlueVitriol, 2000)) - .duration(2 * SECONDS + 10 * TICKS) - .eut(30) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.crushedPurified, Materials.Chalcopyrite, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.PlatinumGroupSludge, 1)) + .fluidInputs(Materials.SulfuricAcid.getFluid(1000)) + .fluidOutputs(new FluidStack(ItemList.sBlueVitriol, 2000)) + .duration(2 * SECONDS + 10 * TICKS) + .eut(30) + .addTo(UniversalChemical); // Fe + 3HCl = FeCl3 + 3H GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iron, 1), - ItemList.Cell_Empty.get(3)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Hydrogen, 3)) - .fluidInputs(Materials.HydrochloricAcid.getFluid(3000)) - .fluidOutputs(Materials.IronIIIChloride.getFluid(1000)) - .duration(20 * SECONDS) - .eut(30) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.InfusedGold, 8), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iron, 8)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Thaumium, 16)) - .fluidInputs(new FluidStack(FluidRegistry.getFluid("ic2coolant"), 1000)) - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(GalaxySpace.ID, "item.UnknowCrystal", 4), Materials.Osmiridium.getDust(2)) - .itemOutputs(ItemList.Circuit_Chip_Stemcell.get(64)) - .fluidInputs(Materials.GrowthMediumSterilized.getFluid(1000)) - .fluidOutputs(getFluidStack("bacterialsludge", 1000)) - .duration(30 * SECONDS) - .eut(TierEU.RECIPE_LuV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Circuit_Chip_Stemcell.get(32), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.CosmicNeutronium, 4)) - .itemOutputs(ItemList.Circuit_Chip_Biocell.get(32)) - .fluidInputs(Materials.BioMediumSterilized.getFluid(2000)) - .fluidOutputs(getFluidStack("mutagen", 2000)) - .duration(60 * SECONDS) - .eut(500000) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs( - new ItemStack(Items.sugar), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Plastic, 1)) - .itemOutputs(ItemList.GelledToluene.get(2)) - .fluidInputs(new FluidStack(ItemList.sToluene, 133)) - .noFluidOutputs() - .duration(7 * SECONDS) - .eut(192) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs( - new ItemStack(Items.sugar, 9), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Plastic, 1)) - .itemOutputs(ItemList.GelledToluene.get(18)) - .fluidInputs(new FluidStack(ItemList.sToluene, 1197)) - .noFluidOutputs() - .duration(1 * MINUTES + 3 * SECONDS) - .eut(192) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.GelledToluene.get(4), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(new ItemStack(Blocks.tnt, 1)) - .fluidInputs(Materials.SulfuricAcid.getFluid(250)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(24) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.GelledToluene.get(4), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_ModHandler.getIC2Item("industrialTnt", 1)) - .fluidInputs(new FluidStack(ItemList.sNitrationMixture, 200)) - .fluidOutputs(Materials.DilutedSulfuricAcid.getFluid(150)) - .duration(4 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Hydrogen, 2), - GT_Utility.getIntegratedCircuit(4)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.HydricSulfide, 1), - Materials.Empty.getCells(1)) - .fluidInputs(Materials.NatruralGas.getGas(16000)) - .fluidOutputs(Materials.Gas.getGas(16000)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.NatruralGas, 16), - GT_Utility.getIntegratedCircuit(4)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Gas, 16)) - .fluidInputs(Materials.Hydrogen.getGas(2000)) - .fluidOutputs(Materials.HydricSulfide.getGas(1000)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Hydrogen, 2), - GT_Utility.getIntegratedCircuit(4)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.HydricSulfide, 1), - Materials.Empty.getCells(1)) - .fluidInputs(Materials.SulfuricGas.getGas(16000)) - .fluidOutputs(Materials.Gas.getGas(16000)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.SulfuricGas, 16), - GT_Utility.getIntegratedCircuit(4)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Gas, 16)) - .fluidInputs(Materials.Hydrogen.getGas(2000)) - .fluidOutputs(Materials.HydricSulfide.getGas(1000)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Hydrogen, 2), - GT_Utility.getIntegratedCircuit(4)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.HydricSulfide, 1), - Materials.Empty.getCells(1)) - .fluidInputs(Materials.SulfuricNaphtha.getFluid(12000)) - .fluidOutputs(Materials.Naphtha.getFluid(12000)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.SulfuricNaphtha, 12), - GT_Utility.getIntegratedCircuit(4)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Naphtha, 12)) - .fluidInputs(Materials.Hydrogen.getGas(2000)) - .fluidOutputs(Materials.HydricSulfide.getGas(1000)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Hydrogen, 2), - GT_Utility.getIntegratedCircuit(4)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.HydricSulfide, 1), - Materials.Empty.getCells(1)) - .fluidInputs(Materials.SulfuricLightFuel.getFluid(12000)) - .fluidOutputs(Materials.LightFuel.getFluid(12000)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.SulfuricLightFuel, 12), - GT_Utility.getIntegratedCircuit(4)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.LightFuel, 12)) - .fluidInputs(Materials.Hydrogen.getGas(2000)) - .fluidOutputs(Materials.HydricSulfide.getGas(1000)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Hydrogen, 2), - GT_Utility.getIntegratedCircuit(4)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.HydricSulfide, 1), - Materials.Empty.getCells(1)) - .fluidInputs(Materials.SulfuricHeavyFuel.getFluid(8000)) - .fluidOutputs(Materials.HeavyFuel.getFluid(8000)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.SulfuricHeavyFuel, 8), - GT_Utility.getIntegratedCircuit(4)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.HeavyFuel, 8)) - .fluidInputs(Materials.Hydrogen.getGas(2000)) - .fluidOutputs(Materials.HydricSulfide.getGas(1000)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Saltpeter, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Potassium, 1)) - .fluidInputs(Materials.Naphtha.getFluid(576)) - .fluidOutputs(Materials.Polycaprolactam.getMolten(1296)) - .duration(32 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Saltpeter, 9), - GT_Utility.getIntegratedCircuit(9)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Potassium, 1)) - .fluidInputs(Materials.Naphtha.getFluid(5184)) - .fluidOutputs(Materials.Polycaprolactam.getMolten(11664)) - .duration(4 * MINUTES + 48 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iron, 1), ItemList.Cell_Empty.get(3)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Hydrogen, 3)) + .fluidInputs(Materials.HydrochloricAcid.getFluid(3000)) + .fluidOutputs(Materials.IronIIIChloride.getFluid(1000)) + .duration(20 * SECONDS) + .eut(30) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.InfusedGold, 8), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iron, 8)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Thaumium, 16)) + .fluidInputs(new FluidStack(FluidRegistry.getFluid("ic2coolant"), 1000)) + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(GalaxySpace.ID, "item.UnknowCrystal", 4), Materials.Osmiridium.getDust(2)) + .itemOutputs(ItemList.Circuit_Chip_Stemcell.get(64)) + .fluidInputs(Materials.GrowthMediumSterilized.getFluid(1000)) + .fluidOutputs(getFluidStack("bacterialsludge", 1000)) + .duration(30 * SECONDS) + .eut(TierEU.RECIPE_LuV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.Circuit_Chip_Stemcell.get(32), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.CosmicNeutronium, 4)) + .itemOutputs(ItemList.Circuit_Chip_Biocell.get(32)) + .fluidInputs(Materials.BioMediumSterilized.getFluid(2000)) + .fluidOutputs(getFluidStack("mutagen", 2000)) + .duration(60 * SECONDS) + .eut(500000) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs( + new ItemStack(Items.sugar), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Plastic, 1)) + .itemOutputs(ItemList.GelledToluene.get(2)) + .fluidInputs(new FluidStack(ItemList.sToluene, 133)) + .noFluidOutputs() + .duration(7 * SECONDS) + .eut(192) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Items.sugar, 9), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Plastic, 1)) + .itemOutputs(ItemList.GelledToluene.get(18)) + .fluidInputs(new FluidStack(ItemList.sToluene, 1197)) + .noFluidOutputs() + .duration(1 * MINUTES + 3 * SECONDS) + .eut(192) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.GelledToluene.get(4), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(new ItemStack(Blocks.tnt, 1)) + .fluidInputs(Materials.SulfuricAcid.getFluid(250)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(24) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.GelledToluene.get(4), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_ModHandler.getIC2Item("industrialTnt", 1)) + .fluidInputs(new FluidStack(ItemList.sNitrationMixture, 200)) + .fluidOutputs(Materials.DilutedSulfuricAcid.getFluid(150)) + .duration(4 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Hydrogen, 2), + GT_Utility.getIntegratedCircuit(4)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.HydricSulfide, 1), + Materials.Empty.getCells(1)) + .fluidInputs(Materials.NatruralGas.getGas(16000)) + .fluidOutputs(Materials.Gas.getGas(16000)) + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.NatruralGas, 16), + GT_Utility.getIntegratedCircuit(4)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Gas, 16)) + .fluidInputs(Materials.Hydrogen.getGas(2000)) + .fluidOutputs(Materials.HydricSulfide.getGas(1000)) + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Hydrogen, 2), + GT_Utility.getIntegratedCircuit(4)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.HydricSulfide, 1), + Materials.Empty.getCells(1)) + .fluidInputs(Materials.SulfuricGas.getGas(16000)) + .fluidOutputs(Materials.Gas.getGas(16000)) + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.SulfuricGas, 16), + GT_Utility.getIntegratedCircuit(4)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Gas, 16)) + .fluidInputs(Materials.Hydrogen.getGas(2000)) + .fluidOutputs(Materials.HydricSulfide.getGas(1000)) + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Hydrogen, 2), + GT_Utility.getIntegratedCircuit(4)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.HydricSulfide, 1), + Materials.Empty.getCells(1)) + .fluidInputs(Materials.SulfuricNaphtha.getFluid(12000)) + .fluidOutputs(Materials.Naphtha.getFluid(12000)) + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.SulfuricNaphtha, 12), + GT_Utility.getIntegratedCircuit(4)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Naphtha, 12)) + .fluidInputs(Materials.Hydrogen.getGas(2000)) + .fluidOutputs(Materials.HydricSulfide.getGas(1000)) + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Hydrogen, 2), + GT_Utility.getIntegratedCircuit(4)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.HydricSulfide, 1), + Materials.Empty.getCells(1)) + .fluidInputs(Materials.SulfuricLightFuel.getFluid(12000)) + .fluidOutputs(Materials.LightFuel.getFluid(12000)) + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.SulfuricLightFuel, 12), + GT_Utility.getIntegratedCircuit(4)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.LightFuel, 12)) + .fluidInputs(Materials.Hydrogen.getGas(2000)) + .fluidOutputs(Materials.HydricSulfide.getGas(1000)) + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Hydrogen, 2), + GT_Utility.getIntegratedCircuit(4)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.HydricSulfide, 1), + Materials.Empty.getCells(1)) + .fluidInputs(Materials.SulfuricHeavyFuel.getFluid(8000)) + .fluidOutputs(Materials.HeavyFuel.getFluid(8000)) + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.SulfuricHeavyFuel, 8), + GT_Utility.getIntegratedCircuit(4)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.HeavyFuel, 8)) + .fluidInputs(Materials.Hydrogen.getGas(2000)) + .fluidOutputs(Materials.HydricSulfide.getGas(1000)) + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Saltpeter, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Potassium, 1)) + .fluidInputs(Materials.Naphtha.getFluid(576)) + .fluidOutputs(Materials.Polycaprolactam.getMolten(1296)) + .duration(32 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Saltpeter, 9), + GT_Utility.getIntegratedCircuit(9)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Potassium, 1)) + .fluidInputs(Materials.Naphtha.getFluid(5184)) + .fluidOutputs(Materials.Polycaprolactam.getMolten(11664)) + .duration(4 * MINUTES + 48 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); for (Fluid tFluid : new Fluid[] { FluidRegistry.WATER, GT_ModHandler.getDistilledWater(1L) - .getFluid() }) { + .getFluid() }) { GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcite, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 1)) - .itemOutputs(ItemList.IC2_Fertilizer.get(2)) - .fluidInputs(new FluidStack(tFluid, 1000)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcite, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 1)) + .itemOutputs(ItemList.IC2_Fertilizer.get(2)) + .fluidInputs(new FluidStack(tFluid, 1000)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcite, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.TricalciumPhosphate, 1)) - .itemOutputs(ItemList.IC2_Fertilizer.get(3)) - .fluidInputs(new FluidStack(tFluid, 1000)) - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcite, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.TricalciumPhosphate, 1)) + .itemOutputs(ItemList.IC2_Fertilizer.get(3)) + .fluidInputs(new FluidStack(tFluid, 1000)) + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcite, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Phosphate, 1)) - .itemOutputs(ItemList.IC2_Fertilizer.get(2)) - .fluidInputs(new FluidStack(tFluid, 1000)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcite, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Phosphate, 1)) + .itemOutputs(ItemList.IC2_Fertilizer.get(2)) + .fluidInputs(new FluidStack(tFluid, 1000)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcite, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 3)) - .itemOutputs(ItemList.IC2_Fertilizer.get(1)) - .fluidInputs(new FluidStack(tFluid, 1000)) - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcite, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 3)) + .itemOutputs(ItemList.IC2_Fertilizer.get(1)) + .fluidInputs(new FluidStack(tFluid, 1000)) + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcite, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkAsh, 1)) - .itemOutputs(ItemList.IC2_Fertilizer.get(1)) - .fluidInputs(new FluidStack(tFluid, 1000)) - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcite, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkAsh, 1)) + .itemOutputs(ItemList.IC2_Fertilizer.get(1)) + .fluidInputs(new FluidStack(tFluid, 1000)) + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcium, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 1)) - .itemOutputs(ItemList.IC2_Fertilizer.get(3)) - .fluidInputs(new FluidStack(tFluid, 1000)) - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcium, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 1)) + .itemOutputs(ItemList.IC2_Fertilizer.get(3)) + .fluidInputs(new FluidStack(tFluid, 1000)) + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcium, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.TricalciumPhosphate, 1)) - .itemOutputs(ItemList.IC2_Fertilizer.get(4)) - .fluidInputs(new FluidStack(tFluid, 1000)) - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcium, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.TricalciumPhosphate, 1)) + .itemOutputs(ItemList.IC2_Fertilizer.get(4)) + .fluidInputs(new FluidStack(tFluid, 1000)) + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcium, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Phosphate, 1)) - .itemOutputs(ItemList.IC2_Fertilizer.get(3)) - .fluidInputs(new FluidStack(tFluid, 1000)) - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcium, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Phosphate, 1)) + .itemOutputs(ItemList.IC2_Fertilizer.get(3)) + .fluidInputs(new FluidStack(tFluid, 1000)) + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcium, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 3)) - .itemOutputs(ItemList.IC2_Fertilizer.get(2)) - .fluidInputs(new FluidStack(tFluid, 1000)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcium, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 3)) + .itemOutputs(ItemList.IC2_Fertilizer.get(2)) + .fluidInputs(new FluidStack(tFluid, 1000)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcium, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkAsh, 1)) - .itemOutputs(ItemList.IC2_Fertilizer.get(2)) - .fluidInputs(new FluidStack(tFluid, 1000)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcium, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkAsh, 1)) + .itemOutputs(ItemList.IC2_Fertilizer.get(2)) + .fluidInputs(new FluidStack(tFluid, 1000)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Apatite, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 1)) - .itemOutputs(ItemList.IC2_Fertilizer.get(3)) - .fluidInputs(new FluidStack(tFluid, 1000)) - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Apatite, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 1)) + .itemOutputs(ItemList.IC2_Fertilizer.get(3)) + .fluidInputs(new FluidStack(tFluid, 1000)) + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Apatite, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.TricalciumPhosphate, 1)) - .itemOutputs(ItemList.IC2_Fertilizer.get(4)) - .fluidInputs(new FluidStack(tFluid, 1000)) - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Apatite, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.TricalciumPhosphate, 1)) + .itemOutputs(ItemList.IC2_Fertilizer.get(4)) + .fluidInputs(new FluidStack(tFluid, 1000)) + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Apatite, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Phosphate, 1)) - .itemOutputs(ItemList.IC2_Fertilizer.get(3)) - .fluidInputs(new FluidStack(tFluid, 1000)) - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Apatite, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Phosphate, 1)) + .itemOutputs(ItemList.IC2_Fertilizer.get(3)) + .fluidInputs(new FluidStack(tFluid, 1000)) + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Apatite, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 3)) - .itemOutputs(ItemList.IC2_Fertilizer.get(2)) - .fluidInputs(new FluidStack(tFluid, 1000)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Apatite, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 3)) + .itemOutputs(ItemList.IC2_Fertilizer.get(2)) + .fluidInputs(new FluidStack(tFluid, 1000)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Apatite, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkAsh, 1)) - .itemOutputs(ItemList.IC2_Fertilizer.get(2)) - .fluidInputs(new FluidStack(tFluid, 1000)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Apatite, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkAsh, 1)) + .itemOutputs(ItemList.IC2_Fertilizer.get(2)) + .fluidInputs(new FluidStack(tFluid, 1000)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glauconite, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 1)) - .itemOutputs(ItemList.IC2_Fertilizer.get(3)) - .fluidInputs(new FluidStack(tFluid, 1000)) - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glauconite, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 1)) + .itemOutputs(ItemList.IC2_Fertilizer.get(3)) + .fluidInputs(new FluidStack(tFluid, 1000)) + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glauconite, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.TricalciumPhosphate, 1)) - .itemOutputs(ItemList.IC2_Fertilizer.get(4)) - .fluidInputs(new FluidStack(tFluid, 1000)) - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glauconite, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.TricalciumPhosphate, 1)) + .itemOutputs(ItemList.IC2_Fertilizer.get(4)) + .fluidInputs(new FluidStack(tFluid, 1000)) + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glauconite, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Phosphate, 1)) - .itemOutputs(ItemList.IC2_Fertilizer.get(3)) - .fluidInputs(new FluidStack(tFluid, 1000)) - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glauconite, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Phosphate, 1)) + .itemOutputs(ItemList.IC2_Fertilizer.get(3)) + .fluidInputs(new FluidStack(tFluid, 1000)) + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glauconite, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 3)) - .itemOutputs(ItemList.IC2_Fertilizer.get(2)) - .fluidInputs(new FluidStack(tFluid, 1000)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glauconite, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 3)) + .itemOutputs(ItemList.IC2_Fertilizer.get(2)) + .fluidInputs(new FluidStack(tFluid, 1000)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glauconite, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkAsh, 1)) - .itemOutputs(ItemList.IC2_Fertilizer.get(2)) - .fluidInputs(new FluidStack(tFluid, 1000)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glauconite, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkAsh, 1)) + .itemOutputs(ItemList.IC2_Fertilizer.get(2)) + .fluidInputs(new FluidStack(tFluid, 1000)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.GlauconiteSand, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 1)) - .itemOutputs(ItemList.IC2_Fertilizer.get(3)) - .fluidInputs(new FluidStack(tFluid, 1000)) - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.GlauconiteSand, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 1)) + .itemOutputs(ItemList.IC2_Fertilizer.get(3)) + .fluidInputs(new FluidStack(tFluid, 1000)) + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.GlauconiteSand, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.TricalciumPhosphate, 1)) - .itemOutputs(ItemList.IC2_Fertilizer.get(4)) - .fluidInputs(new FluidStack(tFluid, 1000)) - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.GlauconiteSand, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.TricalciumPhosphate, 1)) + .itemOutputs(ItemList.IC2_Fertilizer.get(4)) + .fluidInputs(new FluidStack(tFluid, 1000)) + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.GlauconiteSand, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Phosphate, 1)) - .itemOutputs(ItemList.IC2_Fertilizer.get(3)) - .fluidInputs(new FluidStack(tFluid, 1000)) - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.GlauconiteSand, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Phosphate, 1)) + .itemOutputs(ItemList.IC2_Fertilizer.get(3)) + .fluidInputs(new FluidStack(tFluid, 1000)) + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.GlauconiteSand, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 3)) - .itemOutputs(ItemList.IC2_Fertilizer.get(2)) - .fluidInputs(new FluidStack(tFluid, 1000)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.GlauconiteSand, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 3)) + .itemOutputs(ItemList.IC2_Fertilizer.get(2)) + .fluidInputs(new FluidStack(tFluid, 1000)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.GlauconiteSand, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkAsh, 1)) - .itemOutputs(ItemList.IC2_Fertilizer.get(2)) - .fluidInputs(new FluidStack(tFluid, 1000)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.GlauconiteSand, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkAsh, 1)) + .itemOutputs(ItemList.IC2_Fertilizer.get(2)) + .fluidInputs(new FluidStack(tFluid, 1000)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); } // 3quartz dust + Na + H2O = 3quartz gem (Na loss GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.NetherQuartz, 3), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sodium, 1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.NetherQuartz, 3)) - .fluidInputs(Materials.Water.getFluid(1000)) - .noFluidOutputs() - .duration(25 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.CertusQuartz, 3), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sodium, 1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.CertusQuartz, 3)) - .fluidInputs(Materials.Water.getFluid(1000)) - .noFluidOutputs() - .duration(25 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Quartzite, 3), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sodium, 1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Quartzite, 3)) - .fluidInputs(Materials.Water.getFluid(1000)) - .noFluidOutputs() - .duration(25 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.NetherQuartz, 3), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sodium, 1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.NetherQuartz, 3)) - .fluidInputs(GT_ModHandler.getDistilledWater(1000)) - .noFluidOutputs() - .duration(25 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.CertusQuartz, 3), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sodium, 1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.CertusQuartz, 3)) - .fluidInputs(GT_ModHandler.getDistilledWater(1000)) - .noFluidOutputs() - .duration(25 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Quartzite, 3), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sodium, 1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Quartzite, 3)) - .fluidInputs(GT_ModHandler.getDistilledWater(1000)) - .noFluidOutputs() - .duration(25 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.NetherQuartz, 3), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sodium, 1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.NetherQuartz, 3)) + .fluidInputs(Materials.Water.getFluid(1000)) + .noFluidOutputs() + .duration(25 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.CertusQuartz, 3), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sodium, 1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.CertusQuartz, 3)) + .fluidInputs(Materials.Water.getFluid(1000)) + .noFluidOutputs() + .duration(25 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Quartzite, 3), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sodium, 1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Quartzite, 3)) + .fluidInputs(Materials.Water.getFluid(1000)) + .noFluidOutputs() + .duration(25 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.NetherQuartz, 3), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sodium, 1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.NetherQuartz, 3)) + .fluidInputs(GT_ModHandler.getDistilledWater(1000)) + .noFluidOutputs() + .duration(25 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.CertusQuartz, 3), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sodium, 1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.CertusQuartz, 3)) + .fluidInputs(GT_ModHandler.getDistilledWater(1000)) + .noFluidOutputs() + .duration(25 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Quartzite, 3), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sodium, 1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Quartzite, 3)) + .fluidInputs(GT_ModHandler.getDistilledWater(1000)) + .noFluidOutputs() + .duration(25 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); // 3UO2 + 4Al = 3U + 2Al2O3 GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Uraninite, 9), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Aluminium, 4)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Uranium, 3), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Aluminiumoxide, 10)) - .noFluidInputs() - .noFluidOutputs() - .duration(50 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Uraninite, 9), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Aluminium, 4)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Uranium, 3), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Aluminiumoxide, 10)) + .noFluidInputs() + .noFluidOutputs() + .duration(50 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); // UO2 + 2Mg = U + 2MgO GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Uraninite, 3), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Magnesium, 2)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Uranium, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Magnesia, 4)) - .noFluidInputs() - .noFluidOutputs() - .duration(50 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Uraninite, 3), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Magnesium, 2)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Uranium, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Magnesia, 4)) + .noFluidInputs() + .noFluidOutputs() + .duration(50 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); // Ca + C + 3O = CaCO3 GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcium, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Carbon, 1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcite, 5)) - .fluidInputs(Materials.Oxygen.getGas(3000)) - .noFluidOutputs() - .duration(25 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcium, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Carbon, 1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcite, 5)) + .fluidInputs(Materials.Oxygen.getGas(3000)) + .noFluidOutputs() + .duration(25 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); // C + 4H = CH4 GT_Values.RA.stdBuilder() - .itemInputs(Materials.Carbon.getDust(1), GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .fluidInputs(Materials.Hydrogen.getGas(4000)) - .fluidOutputs(Materials.Methane.getGas(1000)) - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Carbon.getDust(1), GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .fluidInputs(Materials.Hydrogen.getGas(4000)) + .fluidOutputs(Materials.Methane.getGas(1000)) + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); // TiO2 + 2C + 4Cl = TiCl4 + 2CO GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Rutile, 1), - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Carbon, 2)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.CarbonMonoxide, 2)) - .fluidInputs(Materials.Chlorine.getGas(4000)) - .fluidOutputs(Materials.Titaniumtetrachloride.getFluid(1000)) - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Rutile, 1), + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Carbon, 2)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.CarbonMonoxide, 2)) + .fluidInputs(Materials.Chlorine.getGas(4000)) + .fluidOutputs(Materials.Titaniumtetrachloride.getFluid(1000)) + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Rutile, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Carbon, 2)) - .noItemOutputs() - .fluidInputs(Materials.Chlorine.getGas(4000)) - .fluidOutputs(Materials.Titaniumtetrachloride.getFluid(1000)) - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Rutile, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Carbon, 2)) + .noItemOutputs() + .fluidInputs(Materials.Chlorine.getGas(4000)) + .fluidOutputs(Materials.Titaniumtetrachloride.getFluid(1000)) + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(UniversalChemical); // 4Na + 2MgCl2 = 2Mg + 4NaCl GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sodium, 4), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Magnesiumchloride, 6)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Magnesium, 2), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Salt, 8)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sodium, 4), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Magnesiumchloride, 6)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Magnesium, 2), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Salt, 8)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(UniversalChemical); // rubber GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.RawRubber, 9), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 1)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Rubber.getMolten(1296)) - .duration(30 * SECONDS) - .eut(16) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.RawRubber, 9), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 1)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Rubber.getMolten(1296)) + .duration(30 * SECONDS) + .eut(16) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.RawRubber, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Sulfur, 1)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Rubber.getMolten(144)) - .duration(5 * SECONDS) - .eut(16) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.RawRubber, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Sulfur, 1)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Rubber.getMolten(144)) + .duration(5 * SECONDS) + .eut(16) + .addTo(UniversalChemical); // vanilla recipe GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Gold, 8), - new ItemStack(Items.melon, 1, 32767)) - .itemOutputs(new ItemStack(Items.speckled_melon, 1, 0)) - .noFluidInputs() - .noFluidOutputs() - .duration(50) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Gold, 8), - new ItemStack(Items.carrot, 1, 32767)) - .itemOutputs(new ItemStack(Items.golden_carrot, 1, 0)) - .noFluidInputs() - .noFluidOutputs() - .duration(50) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Gold, 8), - new ItemStack(Items.apple, 1, 32767)) - .itemOutputs(new ItemStack(Items.golden_apple, 1, 0)) - .noFluidInputs() - .noFluidOutputs() - .duration(50) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.block, Materials.Gold, 8), - new ItemStack(Items.apple, 1, 32767)) - .itemOutputs(new ItemStack(Items.golden_apple, 1, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(50) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Blaze, 1), - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.EnderPearl, 1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.EnderEye, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Blaze, 1), - new ItemStack(Items.slime_ball, 1, 32767)) - .itemOutputs(new ItemStack(Items.magma_cream, 1, 0)) - .noFluidInputs() - .noFluidOutputs() - .duration(50) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Gold, 8), + new ItemStack(Items.melon, 1, 32767)) + .itemOutputs(new ItemStack(Items.speckled_melon, 1, 0)) + .noFluidInputs() + .noFluidOutputs() + .duration(50) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Gold, 8), + new ItemStack(Items.carrot, 1, 32767)) + .itemOutputs(new ItemStack(Items.golden_carrot, 1, 0)) + .noFluidInputs() + .noFluidOutputs() + .duration(50) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Gold, 8), + new ItemStack(Items.apple, 1, 32767)) + .itemOutputs(new ItemStack(Items.golden_apple, 1, 0)) + .noFluidInputs() + .noFluidOutputs() + .duration(50) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.block, Materials.Gold, 8), + new ItemStack(Items.apple, 1, 32767)) + .itemOutputs(new ItemStack(Items.golden_apple, 1, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(50) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Blaze, 1), + GT_OreDictUnificator.get(OrePrefixes.gem, Materials.EnderPearl, 1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.EnderEye, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Blaze, 1), + new ItemStack(Items.slime_ball, 1, 32767)) + .itemOutputs(new ItemStack(Items.magma_cream, 1, 0)) + .noFluidInputs() + .noFluidOutputs() + .duration(50) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); // 1/9U +Air ==Pu== 0.1Rn GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Plutonium, 8), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Uranium, 1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Plutonium, 8)) - .fluidInputs(Materials.Air.getGas(1000)) - .fluidOutputs(Materials.Radon.getGas(100)) - .duration(10 * MINUTES) - .eut(8) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Plutonium, 8), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Uranium, 1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Plutonium, 8)) + .fluidInputs(Materials.Air.getGas(1000)) + .fluidOutputs(Materials.Radon.getGas(100)) + .duration(10 * MINUTES) + .eut(8) + .addTo(UniversalChemical); // Silicon Line // SiO2 + 2Mg = 2MgO + Si GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconDioxide, 3), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Magnesium, 2)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silicon, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Magnesia, 4)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(8) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.NetherQuartz, 3), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Magnesium, 2)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silicon, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Magnesia, 4)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(8) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Quartzite, 6), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Magnesium, 2)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silicon, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Magnesia, 4)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(8) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.CertusQuartz, 3), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Magnesium, 2)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silicon, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Magnesia, 4)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(8) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconDioxide, 3), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Magnesium, 2)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silicon, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Magnesia, 4)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(8) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.NetherQuartz, 3), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Magnesium, 2)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silicon, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Magnesia, 4)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(8) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Quartzite, 6), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Magnesium, 2)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silicon, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Magnesia, 4)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(8) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.CertusQuartz, 3), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Magnesium, 2)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silicon, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Magnesia, 4)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(8) + .addTo(UniversalChemical); // 3SiF4 + 4Al = 3Si + 4AlF3 GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Aluminium, 4), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silicon, 3), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.AluminiumFluoride, 16)) - .fluidInputs(Materials.SiliconTetrafluoride.getGas(3000)) - .noFluidOutputs() - .duration(30 * SECONDS) - .eut(30) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Aluminium, 4), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silicon, 3), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.AluminiumFluoride, 16)) + .fluidInputs(Materials.SiliconTetrafluoride.getGas(3000)) + .noFluidOutputs() + .duration(30 * SECONDS) + .eut(30) + .addTo(UniversalChemical); // SiO2 + 4HF = SiF4 + 2H2O GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconDioxide, 3), - GT_Utility.getIntegratedCircuit(2)) - .noItemOutputs() - .fluidInputs(Materials.HydrofluoricAcid.getFluid(4000)) - .fluidOutputs(Materials.SiliconTetrafluoride.getGas(1000)) - .duration(15 * SECONDS) - .eut(30) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.NetherQuartz, 3), - GT_Utility.getIntegratedCircuit(2)) - .noItemOutputs() - .fluidInputs(Materials.HydrofluoricAcid.getFluid(4000)) - .fluidOutputs(Materials.SiliconTetrafluoride.getGas(1000)) - .duration(15 * SECONDS) - .eut(30) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.CertusQuartz, 3), - GT_Utility.getIntegratedCircuit(2)) - .noItemOutputs() - .fluidInputs(Materials.HydrofluoricAcid.getFluid(4000)) - .fluidOutputs(Materials.SiliconTetrafluoride.getGas(1000)) - .duration(15 * SECONDS) - .eut(30) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Quartzite, 6), - GT_Utility.getIntegratedCircuit(2)) - .noItemOutputs() - .fluidInputs(Materials.HydrofluoricAcid.getFluid(4000)) - .fluidOutputs(Materials.SiliconTetrafluoride.getGas(1000)) - .duration(15 * SECONDS) - .eut(30) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconDioxide, 3), + GT_Utility.getIntegratedCircuit(2)) + .noItemOutputs() + .fluidInputs(Materials.HydrofluoricAcid.getFluid(4000)) + .fluidOutputs(Materials.SiliconTetrafluoride.getGas(1000)) + .duration(15 * SECONDS) + .eut(30) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.NetherQuartz, 3), + GT_Utility.getIntegratedCircuit(2)) + .noItemOutputs() + .fluidInputs(Materials.HydrofluoricAcid.getFluid(4000)) + .fluidOutputs(Materials.SiliconTetrafluoride.getGas(1000)) + .duration(15 * SECONDS) + .eut(30) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.CertusQuartz, 3), + GT_Utility.getIntegratedCircuit(2)) + .noItemOutputs() + .fluidInputs(Materials.HydrofluoricAcid.getFluid(4000)) + .fluidOutputs(Materials.SiliconTetrafluoride.getGas(1000)) + .duration(15 * SECONDS) + .eut(30) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Quartzite, 6), + GT_Utility.getIntegratedCircuit(2)) + .noItemOutputs() + .fluidInputs(Materials.HydrofluoricAcid.getFluid(4000)) + .fluidOutputs(Materials.SiliconTetrafluoride.getGas(1000)) + .duration(15 * SECONDS) + .eut(30) + .addTo(UniversalChemical); // 4Na + SiCl4 = 4NaCl + Si GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sodium, 4), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconSG, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Salt, 8)) - .fluidInputs(Materials.SiliconTetrachloride.getFluid(1000)) - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(30) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sodium, 4), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconSG, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Salt, 8)) + .fluidInputs(Materials.SiliconTetrachloride.getFluid(1000)) + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(30) + .addTo(UniversalChemical); // HSiCl3 + 2H = 3HCl + Si GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Hydrogen, 2), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconSG, 1), - ItemList.Cell_Empty.get(2)) - .fluidInputs(Materials.Trichlorosilane.getFluid(1000)) - .fluidOutputs(Materials.HydrochloricAcid.getFluid(3000)) - .duration(15 * SECONDS) - .eut(30) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Trichlorosilane, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconSG, 1), - ItemList.Cell_Empty.get(1)) - .fluidInputs(Materials.Hydrogen.getGas(2000)) - .fluidOutputs(Materials.HydrochloricAcid.getFluid(3000)) - .duration(15 * SECONDS) - .eut(30) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Hydrogen, 2), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconSG, 1), ItemList.Cell_Empty.get(2)) + .fluidInputs(Materials.Trichlorosilane.getFluid(1000)) + .fluidOutputs(Materials.HydrochloricAcid.getFluid(3000)) + .duration(15 * SECONDS) + .eut(30) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Trichlorosilane, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconSG, 1), ItemList.Cell_Empty.get(1)) + .fluidInputs(Materials.Hydrogen.getGas(2000)) + .fluidOutputs(Materials.HydrochloricAcid.getFluid(3000)) + .duration(15 * SECONDS) + .eut(30) + .addTo(UniversalChemical); // 4HSiCl3 = 3SiCl4 + SiH4 GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Cell_Empty.get(1), GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Silane, 1)) - .fluidInputs(Materials.Trichlorosilane.getFluid(4000)) - .fluidOutputs(Materials.SiliconTetrachloride.getFluid(3000)) - .duration(12 * SECONDS) - .eut(30) - .addTo(UniversalChemical); + .itemInputs(ItemList.Cell_Empty.get(1), GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Silane, 1)) + .fluidInputs(Materials.Trichlorosilane.getFluid(4000)) + .fluidOutputs(Materials.SiliconTetrachloride.getFluid(3000)) + .duration(12 * SECONDS) + .eut(30) + .addTo(UniversalChemical); // SiH4 = Si + 4H GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconSG, 1)) - .fluidInputs(Materials.Silane.getGas(1000)) - .fluidOutputs(Materials.Hydrogen.getGas(4000)) - .duration(15 * SECONDS) - .eut(30) - .addTo(UniversalChemical); + .itemInputs(GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconSG, 1)) + .fluidInputs(Materials.Silane.getGas(1000)) + .fluidOutputs(Materials.Hydrogen.getGas(4000)) + .duration(15 * SECONDS) + .eut(30) + .addTo(UniversalChemical); // Ca + 2H = CaH2 GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calciumhydride, 3)) - .fluidInputs(Materials.Hydrogen.getGas(2000)) - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(30) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calciumhydride, 3)) + .fluidInputs(Materials.Hydrogen.getGas(2000)) + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(30) + .addTo(UniversalChemical); // Si + 4Cl = SiCl4 GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silicon, 1), - GT_Utility.getIntegratedCircuit(2)) - .noItemOutputs() - .fluidInputs(Materials.Chlorine.getGas(4000)) - .fluidOutputs(Materials.SiliconTetrachloride.getFluid(1000)) - .duration(20 * SECONDS) - .eut(30) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silicon, 1), + GT_Utility.getIntegratedCircuit(2)) + .noItemOutputs() + .fluidInputs(Materials.Chlorine.getGas(4000)) + .fluidOutputs(Materials.SiliconTetrachloride.getFluid(1000)) + .duration(20 * SECONDS) + .eut(30) + .addTo(UniversalChemical); // 2Na + S = Na2S GT_Values.RA.stdBuilder() - .itemInputs(Materials.Sodium.getDust(2), Materials.Sulfur.getDust(1)) - .itemOutputs(Materials.SodiumSulfide.getDust(3)) - .noFluidInputs() - .noFluidOutputs() - .duration(60) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Sodium.getDust(2), Materials.Sulfur.getDust(1)) + .itemOutputs(Materials.SodiumSulfide.getDust(3)) + .noFluidInputs() + .noFluidOutputs() + .duration(60) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); // H2S + H2O + (O2) = 0.5H2SO4(Diluted) ( S loss GT_Values.RA.stdBuilder() - .itemInputs(Materials.HydricSulfide.getCells(1)) - .itemOutputs(Materials.Empty.getCells(1)) - .fluidInputs(Materials.Water.getFluid(1000)) - .fluidOutputs(Materials.DilutedSulfuricAcid.getFluid(750)) - .duration(3 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.HydricSulfide.getCells(1)) + .itemOutputs(Materials.Empty.getCells(1)) + .fluidInputs(Materials.Water.getFluid(1000)) + .fluidOutputs(Materials.DilutedSulfuricAcid.getFluid(750)) + .duration(3 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Water.getCells(1)) - .itemOutputs(Materials.Empty.getCells(1)) - .fluidInputs(Materials.HydricSulfide.getGas(1000)) - .fluidOutputs(Materials.DilutedSulfuricAcid.getFluid(750)) - .duration(3 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Water.getCells(1)) + .itemOutputs(Materials.Empty.getCells(1)) + .fluidInputs(Materials.HydricSulfide.getGas(1000)) + .fluidOutputs(Materials.DilutedSulfuricAcid.getFluid(750)) + .duration(3 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); // Ni + 4CO = Ni(CO)4 GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Nickel, 1), - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.CarbonMonoxide, 4)) - .itemOutputs(ItemList.Cell_Empty.get(4)) - .noFluidInputs() - .fluidOutputs(MaterialsKevlar.NickelTetracarbonyl.getFluid(1000)) - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Nickel, 1), - GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .fluidInputs(Materials.CarbonMonoxide.getGas(4000)) - .fluidOutputs(MaterialsKevlar.NickelTetracarbonyl.getFluid(1000)) - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Nickel, 1), - ItemList.Cell_Empty.get(1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, MaterialsKevlar.NickelTetracarbonyl, 1)) - .fluidInputs(Materials.CarbonMonoxide.getGas(4000)) - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Nickel, 1), + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.CarbonMonoxide, 4)) + .itemOutputs(ItemList.Cell_Empty.get(4)) + .noFluidInputs() + .fluidOutputs(MaterialsKevlar.NickelTetracarbonyl.getFluid(1000)) + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Nickel, 1), + GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .fluidInputs(Materials.CarbonMonoxide.getGas(4000)) + .fluidOutputs(MaterialsKevlar.NickelTetracarbonyl.getFluid(1000)) + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Nickel, 1), ItemList.Cell_Empty.get(1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, MaterialsKevlar.NickelTetracarbonyl, 1)) + .fluidInputs(Materials.CarbonMonoxide.getGas(4000)) + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(UniversalChemical); // C2H4O + H2O = C2H6O2 GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cell, MaterialsKevlar.EthyleneOxide, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Cell_Empty.get(1)) - .fluidInputs(Materials.Water.getFluid(1000)) - .fluidOutputs(MaterialsKevlar.Ethyleneglycol.getFluid(1000)) - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cell, MaterialsKevlar.EthyleneOxide, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Cell_Empty.get(1)) + .fluidInputs(Materials.Water.getFluid(1000)) + .fluidOutputs(MaterialsKevlar.Ethyleneglycol.getFluid(1000)) + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(UniversalChemical); // C2H4 + O = C2H4O GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Ethylene, 2), - GT_Utility.getIntegratedCircuit(4)) - .itemOutputs(ItemList.Cell_Empty.get(2)) - .fluidInputs(Materials.Oxygen.getGas(1000)) - .fluidOutputs(MaterialsKevlar.Acetaldehyde.getGas(1000)) - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Ethylene, 2), + GT_Utility.getIntegratedCircuit(4)) + .itemOutputs(ItemList.Cell_Empty.get(2)) + .fluidInputs(Materials.Oxygen.getGas(1000)) + .fluidOutputs(MaterialsKevlar.Acetaldehyde.getGas(1000)) + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Oxygen, 1), - GT_Utility.getIntegratedCircuit(5)) - .itemOutputs(ItemList.Cell_Empty.get(1)) - .fluidInputs(Materials.Ethylene.getGas(2000)) - .fluidOutputs(MaterialsKevlar.Acetaldehyde.getGas(1000)) - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Oxygen, 1), + GT_Utility.getIntegratedCircuit(5)) + .itemOutputs(ItemList.Cell_Empty.get(1)) + .fluidInputs(Materials.Ethylene.getGas(2000)) + .fluidOutputs(MaterialsKevlar.Acetaldehyde.getGas(1000)) + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); // NiAl3 + 2NaOH + 2H2O = NiAl + 2NaAlO2 + 6H GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.ingot, MaterialsKevlar.NickelAluminide, 4), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SodiumHydroxide, 6)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.RaneyNickelActivated, 2), - Materials.SodiumAluminate.getDust(8)) - .fluidInputs(Materials.Water.getFluid(2000)) - .fluidOutputs(Materials.Hydrogen.getGas(6000)) - .duration(60 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.ingot, MaterialsKevlar.NickelAluminide, 4), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SodiumHydroxide, 6)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.RaneyNickelActivated, 2), + Materials.SodiumAluminate.getDust(8)) + .fluidInputs(Materials.Water.getFluid(2000)) + .fluidOutputs(Materials.Hydrogen.getGas(6000)) + .duration(60 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(UniversalChemical); // Cu + O = CuO GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Copper, 1), - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Oxygen, 1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.CupricOxide, 2), - ItemList.Cell_Empty.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(30) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Copper, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.CupricOxide, 2)) - .fluidInputs(Materials.Oxygen.getGas(1000)) - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(30) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Copper, 1), + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Oxygen, 1)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.CupricOxide, 2), + ItemList.Cell_Empty.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(30) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Copper, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.CupricOxide, 2)) + .fluidInputs(Materials.Oxygen.getGas(1000)) + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(30) + .addTo(UniversalChemical); // 2Bi + 3O = Bi2O3 GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Bismuth, 4), - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Oxygen, 6)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.BismuthIIIOxide, 10), - ItemList.Cell_Empty.get(6)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Bismuth, 4), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.BismuthIIIOxide, 10)) - .fluidInputs(Materials.Oxygen.getGas(6000)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Bismuth, 4), + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Oxygen, 6)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.BismuthIIIOxide, 10), + ItemList.Cell_Empty.get(6)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Bismuth, 4), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.BismuthIIIOxide, 10)) + .fluidInputs(Materials.Oxygen.getGas(6000)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); // C4H6O2 + CNH5 = C5H9NO + H2O GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cell, MaterialsKevlar.Methylamine, 1), - GT_OreDictUnificator.get(OrePrefixes.cell, MaterialsKevlar.GammaButyrolactone, 1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.cell, MaterialsKevlar.NMethylIIPyrrolidone, 1), - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Water, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(30 * SECONDS) - .eut(TierEU.RECIPE_IV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 8), - GT_Utility.getIntegratedCircuit(2)) - .noItemOutputs() - .fluidInputs(Materials.Chlorine.getGas(16000)) - .fluidOutputs(MaterialsKevlar.SulfurDichloride.getFluid(8000)) - .duration(40 * SECONDS) - .eut(30) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cell, MaterialsKevlar.Methylamine, 1), + GT_OreDictUnificator.get(OrePrefixes.cell, MaterialsKevlar.GammaButyrolactone, 1)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.cell, MaterialsKevlar.NMethylIIPyrrolidone, 1), + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Water, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(30 * SECONDS) + .eut(TierEU.RECIPE_IV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 8), + GT_Utility.getIntegratedCircuit(2)) + .noItemOutputs() + .fluidInputs(Materials.Chlorine.getGas(16000)) + .fluidOutputs(MaterialsKevlar.SulfurDichloride.getFluid(8000)) + .duration(40 * SECONDS) + .eut(30) + .addTo(UniversalChemical); // SCl2 + SO3 = SO2 + SOCl2 GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.SulfurTrioxide, 1), - GT_OreDictUnificator.get(OrePrefixes.cell, MaterialsKevlar.SulfurDichloride, 1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.cell, MaterialsKevlar.ThionylChloride, 1), - ItemList.Cell_Empty.get(1)) - .noFluidInputs() - .fluidOutputs(Materials.SulfurDioxide.getGas(1000)) - .duration(7 * SECONDS + 10 * TICKS) - .eut(TierEU.RECIPE_HV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.SulfurTrioxide, 1), + GT_OreDictUnificator.get(OrePrefixes.cell, MaterialsKevlar.SulfurDichloride, 1)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.cell, MaterialsKevlar.ThionylChloride, 1), + ItemList.Cell_Empty.get(1)) + .noFluidInputs() + .fluidOutputs(Materials.SulfurDioxide.getGas(1000)) + .duration(7 * SECONDS + 10 * TICKS) + .eut(TierEU.RECIPE_HV) + .addTo(UniversalChemical); // C8H10 + 6O =CoC22H14O4= C8H6O4 + 2H2O GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cell, MaterialsKevlar.IVDimethylbenzene, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.CobaltIINaphthenate, 41)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, MaterialsKevlar.TerephthalicAcid, 1)) - .fluidInputs(Materials.Oxygen.getGas(6000)) - .fluidOutputs(Materials.Water.getFluid(2000)) - .duration(7 * SECONDS + 10 * TICKS) - .eut(TierEU.RECIPE_HV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cell, MaterialsKevlar.IVDimethylbenzene, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.CobaltIINaphthenate, 41)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, MaterialsKevlar.TerephthalicAcid, 1)) + .fluidInputs(Materials.Oxygen.getGas(6000)) + .fluidOutputs(Materials.Water.getFluid(2000)) + .duration(7 * SECONDS + 10 * TICKS) + .eut(TierEU.RECIPE_HV) + .addTo(UniversalChemical); // 2CH4 + C6H6 = C8H10 + 4H GT_Values.RA.stdBuilder() - .itemInputs(Materials.Methane.getCells(2), GT_Utility.getIntegratedCircuit(13)) - .itemOutputs(MaterialsKevlar.IIIDimethylbenzene.getCells(1), Materials.Empty.getCells(1)) - .fluidInputs(Materials.Benzene.getFluid(1000)) - .fluidOutputs(Materials.Hydrogen.getGas(4000)) - .duration(3 * MINUTES + 20 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); + .itemInputs(Materials.Methane.getCells(2), GT_Utility.getIntegratedCircuit(13)) + .itemOutputs(MaterialsKevlar.IIIDimethylbenzene.getCells(1), Materials.Empty.getCells(1)) + .fluidInputs(Materials.Benzene.getFluid(1000)) + .fluidOutputs(Materials.Hydrogen.getGas(4000)) + .duration(3 * MINUTES + 20 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Benzene.getCells(1), GT_Utility.getIntegratedCircuit(14)) - .itemOutputs(MaterialsKevlar.IIIDimethylbenzene.getCells(1)) - .fluidInputs(Materials.Methane.getGas(2000)) - .fluidOutputs(Materials.Hydrogen.getGas(4000)) - .duration(3 * MINUTES + 20 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); + .itemInputs(Materials.Benzene.getCells(1), GT_Utility.getIntegratedCircuit(14)) + .itemOutputs(MaterialsKevlar.IIIDimethylbenzene.getCells(1)) + .fluidInputs(Materials.Methane.getGas(2000)) + .fluidOutputs(Materials.Hydrogen.getGas(4000)) + .duration(3 * MINUTES + 20 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); // 2CH4 + C6H6 = C8H10 + 4H GT_Values.RA.stdBuilder() - .itemInputs(Materials.Methane.getCells(2), GT_Utility.getIntegratedCircuit(15)) - .itemOutputs(MaterialsKevlar.IVDimethylbenzene.getCells(1), Materials.Empty.getCells(1)) - .fluidInputs(Materials.Benzene.getFluid(1000)) - .fluidOutputs(Materials.Hydrogen.getGas(4000)) - .duration(3 * MINUTES + 20 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); + .itemInputs(Materials.Methane.getCells(2), GT_Utility.getIntegratedCircuit(15)) + .itemOutputs(MaterialsKevlar.IVDimethylbenzene.getCells(1), Materials.Empty.getCells(1)) + .fluidInputs(Materials.Benzene.getFluid(1000)) + .fluidOutputs(Materials.Hydrogen.getGas(4000)) + .duration(3 * MINUTES + 20 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Benzene.getCells(1), GT_Utility.getIntegratedCircuit(16)) - .itemOutputs(MaterialsKevlar.IVDimethylbenzene.getCells(1)) - .fluidInputs(Materials.Methane.getGas(2000)) - .fluidOutputs(Materials.Hydrogen.getGas(4000)) - .duration(3 * MINUTES + 20 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); + .itemInputs(Materials.Benzene.getCells(1), GT_Utility.getIntegratedCircuit(16)) + .itemOutputs(MaterialsKevlar.IVDimethylbenzene.getCells(1)) + .fluidInputs(Materials.Methane.getGas(2000)) + .fluidOutputs(Materials.Hydrogen.getGas(4000)) + .duration(3 * MINUTES + 20 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(MaterialsKevlar.CobaltIIHydroxide.getDust(5), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(MaterialsKevlar.CobaltIINaphthenate.getDust(41)) - .fluidInputs(MaterialsKevlar.NaphthenicAcid.getFluid(1000)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(UniversalChemical); + .itemInputs(MaterialsKevlar.CobaltIIHydroxide.getDust(5), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(MaterialsKevlar.CobaltIINaphthenate.getDust(41)) + .fluidInputs(MaterialsKevlar.NaphthenicAcid.getFluid(1000)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(MaterialsKevlar.CobaltIIAcetate.getDust(15), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(MaterialsKevlar.CobaltIINaphthenate.getDust(41)) - .fluidInputs(MaterialsKevlar.NaphthenicAcid.getFluid(1000)) - .fluidOutputs(Materials.AceticAcid.getFluid(1500)) - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(UniversalChemical); + .itemInputs(MaterialsKevlar.CobaltIIAcetate.getDust(15), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(MaterialsKevlar.CobaltIINaphthenate.getDust(41)) + .fluidInputs(MaterialsKevlar.NaphthenicAcid.getFluid(1000)) + .fluidOutputs(Materials.AceticAcid.getFluid(1500)) + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(UniversalChemical); // Co + 2HNO3 = Co(NO3)2 + 2H GT_Values.RA.stdBuilder() - .itemInputs(Materials.Cobalt.getDust(1), Materials.NitricAcid.getCells(2)) - .itemOutputs( - MaterialsKevlar.CobaltIINitrate.getDust(9), - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Hydrogen, 2)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); + .itemInputs(Materials.Cobalt.getDust(1), Materials.NitricAcid.getCells(2)) + .itemOutputs( + MaterialsKevlar.CobaltIINitrate.getDust(9), + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Hydrogen, 2)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); // Co(NO3)2 + 2KOH = CoH2O2 + 2KNO3 GT_Values.RA.stdBuilder() - .itemInputs( - MaterialsKevlar.CobaltIINitrate.getDust(9), - getModItem(NewHorizonsCoreMod.ID, "item.PotassiumHydroxideDust", 6L, 0)) - .itemOutputs(MaterialsKevlar.CobaltIIHydroxide.getDust(5), Materials.Saltpeter.getDust(10)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); + .itemInputs( + MaterialsKevlar.CobaltIINitrate.getDust(9), + getModItem(NewHorizonsCoreMod.ID, "item.PotassiumHydroxideDust", 6L, 0)) + .itemOutputs(MaterialsKevlar.CobaltIIHydroxide.getDust(5), Materials.Saltpeter.getDust(10)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); // CoO + 2C2H4O2 = CoC4H6O4 + 2H GT_Values.RA.stdBuilder() - .itemInputs(Materials.CobaltOxide.getDust(2), Materials.AceticAcid.getCells(2)) - .itemOutputs(MaterialsKevlar.CobaltIIAcetate.getDust(15), ItemList.Cell_Empty.get(2)) - .noFluidInputs() - .fluidOutputs(Materials.Water.getFluid(2000)) - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); + .itemInputs(Materials.CobaltOxide.getDust(2), Materials.AceticAcid.getCells(2)) + .itemOutputs(MaterialsKevlar.CobaltIIAcetate.getDust(15), ItemList.Cell_Empty.get(2)) + .noFluidInputs() + .fluidOutputs(Materials.Water.getFluid(2000)) + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Phosphorus.getDust(1), GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .fluidInputs(Materials.Chlorine.getGas(3000)) - .fluidOutputs(MaterialsKevlar.PhosphorusTrichloride.getFluid(1000)) - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); + .itemInputs(Materials.Phosphorus.getDust(1), GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .fluidInputs(Materials.Chlorine.getGas(3000)) + .fluidOutputs(MaterialsKevlar.PhosphorusTrichloride.getFluid(1000)) + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Phosphorus.getDust(9), GT_Utility.getIntegratedCircuit(9)) - .noItemOutputs() - .fluidInputs(Materials.Chlorine.getGas(27000)) - .fluidOutputs(MaterialsKevlar.PhosphorusTrichloride.getFluid(9000)) - .duration(1 * MINUTES + 15 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); + .itemInputs(Materials.Phosphorus.getDust(9), GT_Utility.getIntegratedCircuit(9)) + .noItemOutputs() + .fluidInputs(Materials.Chlorine.getGas(27000)) + .fluidOutputs(MaterialsKevlar.PhosphorusTrichloride.getFluid(9000)) + .duration(1 * MINUTES + 15 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); // Na + H = NaH GT_Values.RA.stdBuilder() - .itemInputs(Materials.Sodium.getDust(1), GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(MaterialsKevlar.SodiumHydride.getDust(2)) - .fluidInputs(Materials.Hydrogen.getGas(1000)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); + .itemInputs(Materials.Sodium.getDust(1), GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(MaterialsKevlar.SodiumHydride.getDust(2)) + .fluidInputs(Materials.Hydrogen.getGas(1000)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); // CH3ONa + H2O = CH4O + NaOH GT_Values.RA.stdBuilder() - .itemInputs(MaterialsKevlar.SodiumMethoxide.getDust(6), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.SodiumHydroxide.getDust(3)) - .fluidInputs(Materials.Water.getFluid(1000)) - .fluidOutputs(Materials.Methanol.getFluid(1000)) - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(UniversalChemical); + .itemInputs(MaterialsKevlar.SodiumMethoxide.getDust(6), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.SodiumHydroxide.getDust(3)) + .fluidInputs(Materials.Water.getFluid(1000)) + .fluidOutputs(Materials.Methanol.getFluid(1000)) + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(UniversalChemical); // K + HNO3 = KNO3 + H (not real, but gameplay GT_Values.RA.stdBuilder() - .itemInputs(Materials.Potassium.getDust(1), GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(Materials.Saltpeter.getDust(5)) - .fluidInputs(Materials.NitricAcid.getFluid(1000)) - .fluidOutputs(Materials.Hydrogen.getGas(1000)) - .duration(5 * SECONDS) - .eut(30) - .addTo(UniversalChemical); + .itemInputs(Materials.Potassium.getDust(1), GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(Materials.Saltpeter.getDust(5)) + .fluidInputs(Materials.NitricAcid.getFluid(1000)) + .fluidOutputs(Materials.Hydrogen.getGas(1000)) + .duration(5 * SECONDS) + .eut(30) + .addTo(UniversalChemical); // CH3COOH + CH3OH = CH3COOCH3 + H2O GT_Values.RA.stdBuilder() - .itemInputs(Materials.AceticAcid.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Water.getCells(1)) - .fluidInputs(Materials.Methanol.getFluid(1000)) - .fluidOutputs(Materials.MethylAcetate.getFluid(1000)) - .duration(12 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Methanol.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Water.getCells(1)) - .fluidInputs(Materials.AceticAcid.getFluid(1000)) - .fluidOutputs(Materials.MethylAcetate.getFluid(1000)) - .duration(12 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.AceticAcid.getCells(1), GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(Materials.Empty.getCells(1)) - .fluidInputs(Materials.Methanol.getFluid(1000)) - .fluidOutputs(Materials.MethylAcetate.getFluid(1000)) - .duration(12 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Methanol.getCells(1), GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(Materials.Empty.getCells(1)) - .fluidInputs(Materials.AceticAcid.getFluid(1000)) - .fluidOutputs(Materials.MethylAcetate.getFluid(1000)) - .duration(12 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.AceticAcid.getCells(1), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.MethylAcetate.getCells(1)) - .fluidInputs(Materials.Methanol.getFluid(1000)) - .fluidOutputs(Materials.Water.getFluid(1000)) - .duration(12 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Methanol.getCells(1), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.MethylAcetate.getCells(1)) - .fluidInputs(Materials.AceticAcid.getFluid(1000)) - .fluidOutputs(Materials.Water.getFluid(1000)) - .duration(12 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.AceticAcid.getCells(1), GT_Utility.getIntegratedCircuit(12)) - .itemOutputs(Materials.MethylAcetate.getCells(1)) - .fluidInputs(Materials.Methanol.getFluid(1000)) - .noFluidOutputs() - .duration(12 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Methanol.getCells(1), GT_Utility.getIntegratedCircuit(12)) - .itemOutputs(Materials.MethylAcetate.getCells(1)) - .fluidInputs(Materials.AceticAcid.getFluid(1000)) - .noFluidOutputs() - .duration(12 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.AceticAcid.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Water.getCells(1)) + .fluidInputs(Materials.Methanol.getFluid(1000)) + .fluidOutputs(Materials.MethylAcetate.getFluid(1000)) + .duration(12 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Methanol.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Water.getCells(1)) + .fluidInputs(Materials.AceticAcid.getFluid(1000)) + .fluidOutputs(Materials.MethylAcetate.getFluid(1000)) + .duration(12 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.AceticAcid.getCells(1), GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(Materials.Empty.getCells(1)) + .fluidInputs(Materials.Methanol.getFluid(1000)) + .fluidOutputs(Materials.MethylAcetate.getFluid(1000)) + .duration(12 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Methanol.getCells(1), GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(Materials.Empty.getCells(1)) + .fluidInputs(Materials.AceticAcid.getFluid(1000)) + .fluidOutputs(Materials.MethylAcetate.getFluid(1000)) + .duration(12 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.AceticAcid.getCells(1), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.MethylAcetate.getCells(1)) + .fluidInputs(Materials.Methanol.getFluid(1000)) + .fluidOutputs(Materials.Water.getFluid(1000)) + .duration(12 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Methanol.getCells(1), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.MethylAcetate.getCells(1)) + .fluidInputs(Materials.AceticAcid.getFluid(1000)) + .fluidOutputs(Materials.Water.getFluid(1000)) + .duration(12 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.AceticAcid.getCells(1), GT_Utility.getIntegratedCircuit(12)) + .itemOutputs(Materials.MethylAcetate.getCells(1)) + .fluidInputs(Materials.Methanol.getFluid(1000)) + .noFluidOutputs() + .duration(12 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Methanol.getCells(1), GT_Utility.getIntegratedCircuit(12)) + .itemOutputs(Materials.MethylAcetate.getCells(1)) + .fluidInputs(Materials.AceticAcid.getFluid(1000)) + .noFluidOutputs() + .duration(12 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); // CO and CO2 recipes GT_Values.RA.stdBuilder() - .itemInputs(Materials.Carbon.getDust(1), GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .fluidInputs(Materials.Oxygen.getGas(1000)) - .fluidOutputs(Materials.CarbonMonoxide.getGas(1000)) - .duration(2 * SECONDS) - .eut(8) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Coal.getGems(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Ash.getDustTiny(1)) - .fluidInputs(Materials.Oxygen.getGas(1000)) - .fluidOutputs(Materials.CarbonMonoxide.getGas(1000)) - .duration(4 * SECONDS) - .eut(8) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Coal.getDust(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Ash.getDustTiny(1)) - .fluidInputs(Materials.Oxygen.getGas(1000)) - .fluidOutputs(Materials.CarbonMonoxide.getGas(1000)) - .duration(4 * SECONDS) - .eut(8) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Charcoal.getGems(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Ash.getDustTiny(1)) - .fluidInputs(Materials.Oxygen.getGas(1000)) - .fluidOutputs(Materials.CarbonMonoxide.getGas(1000)) - .duration(4 * SECONDS) - .eut(8) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Charcoal.getDust(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Ash.getDustTiny(1)) - .fluidInputs(Materials.Oxygen.getGas(1000)) - .fluidOutputs(Materials.CarbonMonoxide.getGas(1000)) - .duration(4 * SECONDS) - .eut(8) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Carbon.getDust(1), GT_Utility.getIntegratedCircuit(2)) - .noItemOutputs() - .fluidInputs(Materials.Oxygen.getGas(2000)) - .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) - .duration(2 * SECONDS) - .eut(8) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Coal.getGems(1), GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(Materials.Ash.getDustTiny(1)) - .fluidInputs(Materials.Oxygen.getGas(2000)) - .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) - .duration(2 * SECONDS) - .eut(8) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Coal.getDust(1), GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(Materials.Ash.getDustTiny(1)) - .fluidInputs(Materials.Oxygen.getGas(2000)) - .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) - .duration(2 * SECONDS) - .eut(8) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Charcoal.getGems(1), GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(Materials.Ash.getDustTiny(1)) - .fluidInputs(Materials.Oxygen.getGas(2000)) - .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) - .duration(2 * SECONDS) - .eut(8) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Charcoal.getDust(1), GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(Materials.Ash.getDustTiny(1)) - .fluidInputs(Materials.Oxygen.getGas(2000)) - .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) - .duration(2 * SECONDS) - .eut(8) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Carbon.getDust(1)) - .noItemOutputs() - .fluidInputs(Materials.CarbonDioxide.getGas(1000)) - .fluidOutputs(Materials.CarbonMonoxide.getGas(2000)) - .duration(40 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Coal.getGems(9), GT_Utility.getIntegratedCircuit(9)) - .itemOutputs(Materials.Ash.getDust(1)) - .fluidInputs(Materials.Oxygen.getGas(9000)) - .fluidOutputs(Materials.CarbonMonoxide.getGas(9000)) - .duration(36 * SECONDS) - .eut(8) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Coal.getDust(9), GT_Utility.getIntegratedCircuit(9)) - .itemOutputs(Materials.Ash.getDust(1)) - .fluidInputs(Materials.Oxygen.getGas(9000)) - .fluidOutputs(Materials.CarbonMonoxide.getGas(9000)) - .duration(36 * SECONDS) - .eut(8) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Charcoal.getGems(9), GT_Utility.getIntegratedCircuit(9)) - .itemOutputs(Materials.Ash.getDust(1)) - .fluidInputs(Materials.Oxygen.getGas(9000)) - .fluidOutputs(Materials.CarbonMonoxide.getGas(9000)) - .duration(36 * SECONDS) - .eut(8) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Charcoal.getDust(9), GT_Utility.getIntegratedCircuit(9)) - .itemOutputs(Materials.Ash.getDust(1)) - .fluidInputs(Materials.Oxygen.getGas(9000)) - .fluidOutputs(Materials.CarbonMonoxide.getGas(9000)) - .duration(36 * SECONDS) - .eut(8) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Coal.getGems(9), GT_Utility.getIntegratedCircuit(8)) - .itemOutputs(Materials.Ash.getDust(1)) - .fluidInputs(Materials.Oxygen.getGas(18000)) - .fluidOutputs(Materials.CarbonDioxide.getGas(9000)) - .duration(18 * SECONDS) - .eut(8) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Coal.getDust(9), GT_Utility.getIntegratedCircuit(8)) - .itemOutputs(Materials.Ash.getDust(1)) - .fluidInputs(Materials.Oxygen.getGas(18000)) - .fluidOutputs(Materials.CarbonDioxide.getGas(9000)) - .duration(18 * SECONDS) - .eut(8) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Charcoal.getGems(9), GT_Utility.getIntegratedCircuit(8)) - .itemOutputs(Materials.Ash.getDust(1)) - .fluidInputs(Materials.Oxygen.getGas(18000)) - .fluidOutputs(Materials.CarbonDioxide.getGas(9000)) - .duration(18 * SECONDS) - .eut(8) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Charcoal.getDust(9), GT_Utility.getIntegratedCircuit(8)) - .itemOutputs(Materials.Ash.getDust(1)) - .fluidInputs(Materials.Oxygen.getGas(18000)) - .fluidOutputs(Materials.CarbonDioxide.getGas(9000)) - .duration(18 * SECONDS) - .eut(8) - .addTo(UniversalChemical); + .itemInputs(Materials.Carbon.getDust(1), GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .fluidInputs(Materials.Oxygen.getGas(1000)) + .fluidOutputs(Materials.CarbonMonoxide.getGas(1000)) + .duration(2 * SECONDS) + .eut(8) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Coal.getGems(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Ash.getDustTiny(1)) + .fluidInputs(Materials.Oxygen.getGas(1000)) + .fluidOutputs(Materials.CarbonMonoxide.getGas(1000)) + .duration(4 * SECONDS) + .eut(8) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Coal.getDust(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Ash.getDustTiny(1)) + .fluidInputs(Materials.Oxygen.getGas(1000)) + .fluidOutputs(Materials.CarbonMonoxide.getGas(1000)) + .duration(4 * SECONDS) + .eut(8) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Charcoal.getGems(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Ash.getDustTiny(1)) + .fluidInputs(Materials.Oxygen.getGas(1000)) + .fluidOutputs(Materials.CarbonMonoxide.getGas(1000)) + .duration(4 * SECONDS) + .eut(8) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Charcoal.getDust(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Ash.getDustTiny(1)) + .fluidInputs(Materials.Oxygen.getGas(1000)) + .fluidOutputs(Materials.CarbonMonoxide.getGas(1000)) + .duration(4 * SECONDS) + .eut(8) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Carbon.getDust(1), GT_Utility.getIntegratedCircuit(2)) + .noItemOutputs() + .fluidInputs(Materials.Oxygen.getGas(2000)) + .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) + .duration(2 * SECONDS) + .eut(8) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Coal.getGems(1), GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(Materials.Ash.getDustTiny(1)) + .fluidInputs(Materials.Oxygen.getGas(2000)) + .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) + .duration(2 * SECONDS) + .eut(8) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Coal.getDust(1), GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(Materials.Ash.getDustTiny(1)) + .fluidInputs(Materials.Oxygen.getGas(2000)) + .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) + .duration(2 * SECONDS) + .eut(8) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Charcoal.getGems(1), GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(Materials.Ash.getDustTiny(1)) + .fluidInputs(Materials.Oxygen.getGas(2000)) + .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) + .duration(2 * SECONDS) + .eut(8) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Charcoal.getDust(1), GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(Materials.Ash.getDustTiny(1)) + .fluidInputs(Materials.Oxygen.getGas(2000)) + .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) + .duration(2 * SECONDS) + .eut(8) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Carbon.getDust(1)) + .noItemOutputs() + .fluidInputs(Materials.CarbonDioxide.getGas(1000)) + .fluidOutputs(Materials.CarbonMonoxide.getGas(2000)) + .duration(40 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Coal.getGems(9), GT_Utility.getIntegratedCircuit(9)) + .itemOutputs(Materials.Ash.getDust(1)) + .fluidInputs(Materials.Oxygen.getGas(9000)) + .fluidOutputs(Materials.CarbonMonoxide.getGas(9000)) + .duration(36 * SECONDS) + .eut(8) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Coal.getDust(9), GT_Utility.getIntegratedCircuit(9)) + .itemOutputs(Materials.Ash.getDust(1)) + .fluidInputs(Materials.Oxygen.getGas(9000)) + .fluidOutputs(Materials.CarbonMonoxide.getGas(9000)) + .duration(36 * SECONDS) + .eut(8) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Charcoal.getGems(9), GT_Utility.getIntegratedCircuit(9)) + .itemOutputs(Materials.Ash.getDust(1)) + .fluidInputs(Materials.Oxygen.getGas(9000)) + .fluidOutputs(Materials.CarbonMonoxide.getGas(9000)) + .duration(36 * SECONDS) + .eut(8) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Charcoal.getDust(9), GT_Utility.getIntegratedCircuit(9)) + .itemOutputs(Materials.Ash.getDust(1)) + .fluidInputs(Materials.Oxygen.getGas(9000)) + .fluidOutputs(Materials.CarbonMonoxide.getGas(9000)) + .duration(36 * SECONDS) + .eut(8) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Coal.getGems(9), GT_Utility.getIntegratedCircuit(8)) + .itemOutputs(Materials.Ash.getDust(1)) + .fluidInputs(Materials.Oxygen.getGas(18000)) + .fluidOutputs(Materials.CarbonDioxide.getGas(9000)) + .duration(18 * SECONDS) + .eut(8) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Coal.getDust(9), GT_Utility.getIntegratedCircuit(8)) + .itemOutputs(Materials.Ash.getDust(1)) + .fluidInputs(Materials.Oxygen.getGas(18000)) + .fluidOutputs(Materials.CarbonDioxide.getGas(9000)) + .duration(18 * SECONDS) + .eut(8) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Charcoal.getGems(9), GT_Utility.getIntegratedCircuit(8)) + .itemOutputs(Materials.Ash.getDust(1)) + .fluidInputs(Materials.Oxygen.getGas(18000)) + .fluidOutputs(Materials.CarbonDioxide.getGas(9000)) + .duration(18 * SECONDS) + .eut(8) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Charcoal.getDust(9), GT_Utility.getIntegratedCircuit(8)) + .itemOutputs(Materials.Ash.getDust(1)) + .fluidInputs(Materials.Oxygen.getGas(18000)) + .fluidOutputs(Materials.CarbonDioxide.getGas(9000)) + .duration(18 * SECONDS) + .eut(8) + .addTo(UniversalChemical); // CO + 4H = CH3OH GT_Values.RA.stdBuilder() - .itemInputs(Materials.CarbonMonoxide.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Empty.getCells(1)) - .fluidInputs(Materials.Hydrogen.getGas(4000)) - .fluidOutputs(Materials.Methanol.getFluid(1000)) - .duration(6 * SECONDS) - .eut(96) - .addTo(UniversalChemical); + .itemInputs(Materials.CarbonMonoxide.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Empty.getCells(1)) + .fluidInputs(Materials.Hydrogen.getGas(4000)) + .fluidOutputs(Materials.Methanol.getFluid(1000)) + .duration(6 * SECONDS) + .eut(96) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Hydrogen.getCells(4), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Empty.getCells(4)) - .fluidInputs(Materials.CarbonMonoxide.getGas(1000)) - .fluidOutputs(Materials.Methanol.getFluid(1000)) - .duration(6 * SECONDS) - .eut(96) - .addTo(UniversalChemical); + .itemInputs(Materials.Hydrogen.getCells(4), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Empty.getCells(4)) + .fluidInputs(Materials.CarbonMonoxide.getGas(1000)) + .fluidOutputs(Materials.Methanol.getFluid(1000)) + .duration(6 * SECONDS) + .eut(96) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.CarbonMonoxide.getCells(1), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.Methanol.getCells(1)) - .fluidInputs(Materials.Hydrogen.getGas(4000)) - .noFluidOutputs() - .duration(6 * SECONDS) - .eut(96) - .addTo(UniversalChemical); + .itemInputs(Materials.CarbonMonoxide.getCells(1), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.Methanol.getCells(1)) + .fluidInputs(Materials.Hydrogen.getGas(4000)) + .noFluidOutputs() + .duration(6 * SECONDS) + .eut(96) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Hydrogen.getCells(4), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.Methanol.getCells(1), Materials.Empty.getCells(3)) - .fluidInputs(Materials.CarbonMonoxide.getGas(1000)) - .noFluidOutputs() - .duration(6 * SECONDS) - .eut(96) - .addTo(UniversalChemical); + .itemInputs(Materials.Hydrogen.getCells(4), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.Methanol.getCells(1), Materials.Empty.getCells(3)) + .fluidInputs(Materials.CarbonMonoxide.getGas(1000)) + .noFluidOutputs() + .duration(6 * SECONDS) + .eut(96) + .addTo(UniversalChemical); // CO2 + 6H = CH3OH + H2O GT_Values.RA.stdBuilder() - .itemInputs(Materials.CarbonDioxide.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Water.getCells(1)) - .fluidInputs(Materials.Hydrogen.getGas(6000)) - .fluidOutputs(Materials.Methanol.getFluid(1000)) - .duration(6 * SECONDS) - .eut(96) - .addTo(UniversalChemical); + .itemInputs(Materials.CarbonDioxide.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Water.getCells(1)) + .fluidInputs(Materials.Hydrogen.getGas(6000)) + .fluidOutputs(Materials.Methanol.getFluid(1000)) + .duration(6 * SECONDS) + .eut(96) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Hydrogen.getCells(6), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Water.getCells(1), Materials.Empty.getCells(5)) - .fluidInputs(Materials.CarbonDioxide.getGas(1000)) - .fluidOutputs(Materials.Methanol.getFluid(1000)) - .duration(6 * SECONDS) - .eut(96) - .addTo(UniversalChemical); + .itemInputs(Materials.Hydrogen.getCells(6), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Water.getCells(1), Materials.Empty.getCells(5)) + .fluidInputs(Materials.CarbonDioxide.getGas(1000)) + .fluidOutputs(Materials.Methanol.getFluid(1000)) + .duration(6 * SECONDS) + .eut(96) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.CarbonDioxide.getCells(1), GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(Materials.Empty.getCells(1)) - .fluidInputs(Materials.Hydrogen.getGas(6000)) - .fluidOutputs(Materials.Methanol.getFluid(1000)) - .duration(6 * SECONDS) - .eut(96) - .addTo(UniversalChemical); + .itemInputs(Materials.CarbonDioxide.getCells(1), GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(Materials.Empty.getCells(1)) + .fluidInputs(Materials.Hydrogen.getGas(6000)) + .fluidOutputs(Materials.Methanol.getFluid(1000)) + .duration(6 * SECONDS) + .eut(96) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Hydrogen.getCells(6), GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(Materials.Empty.getCells(6)) - .fluidInputs(Materials.CarbonDioxide.getGas(1000)) - .fluidOutputs(Materials.Methanol.getFluid(1000)) - .duration(6 * SECONDS) - .eut(96) - .addTo(UniversalChemical); + .itemInputs(Materials.Hydrogen.getCells(6), GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(Materials.Empty.getCells(6)) + .fluidInputs(Materials.CarbonDioxide.getGas(1000)) + .fluidOutputs(Materials.Methanol.getFluid(1000)) + .duration(6 * SECONDS) + .eut(96) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.CarbonDioxide.getCells(1), GT_Utility.getIntegratedCircuit(12)) - .itemOutputs(Materials.Methanol.getCells(1)) - .fluidInputs(Materials.Hydrogen.getGas(6000)) - .noFluidOutputs() - .duration(6 * SECONDS) - .eut(96) - .addTo(UniversalChemical); + .itemInputs(Materials.CarbonDioxide.getCells(1), GT_Utility.getIntegratedCircuit(12)) + .itemOutputs(Materials.Methanol.getCells(1)) + .fluidInputs(Materials.Hydrogen.getGas(6000)) + .noFluidOutputs() + .duration(6 * SECONDS) + .eut(96) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Hydrogen.getCells(6), GT_Utility.getIntegratedCircuit(12)) - .itemOutputs(Materials.Methanol.getCells(1), Materials.Empty.getCells(5)) - .fluidInputs(Materials.CarbonDioxide.getGas(1000)) - .noFluidOutputs() - .duration(6 * SECONDS) - .eut(96) - .addTo(UniversalChemical); + .itemInputs(Materials.Hydrogen.getCells(6), GT_Utility.getIntegratedCircuit(12)) + .itemOutputs(Materials.Methanol.getCells(1), Materials.Empty.getCells(5)) + .fluidInputs(Materials.CarbonDioxide.getGas(1000)) + .noFluidOutputs() + .duration(6 * SECONDS) + .eut(96) + .addTo(UniversalChemical); // CH3OH + CO = CH3COOH GT_Values.RA.stdBuilder() - .itemInputs(Materials.Methanol.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Empty.getCells(1)) - .fluidInputs(Materials.CarbonMonoxide.getGas(1000)) - .fluidOutputs(Materials.AceticAcid.getFluid(1000)) - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Methanol.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Empty.getCells(1)) + .fluidInputs(Materials.CarbonMonoxide.getGas(1000)) + .fluidOutputs(Materials.AceticAcid.getFluid(1000)) + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.CarbonMonoxide.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Empty.getCells(1)) - .fluidInputs(Materials.Methanol.getFluid(1000)) - .fluidOutputs(Materials.AceticAcid.getFluid(1000)) - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.CarbonMonoxide.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Empty.getCells(1)) + .fluidInputs(Materials.Methanol.getFluid(1000)) + .fluidOutputs(Materials.AceticAcid.getFluid(1000)) + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Methanol.getCells(1), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.AceticAcid.getCells(1)) - .fluidInputs(Materials.CarbonMonoxide.getGas(1000)) - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Methanol.getCells(1), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.AceticAcid.getCells(1)) + .fluidInputs(Materials.CarbonMonoxide.getGas(1000)) + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.CarbonMonoxide.getCells(1), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.AceticAcid.getCells(1)) - .fluidInputs(Materials.Methanol.getFluid(1000)) - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.CarbonMonoxide.getCells(1), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.AceticAcid.getCells(1)) + .fluidInputs(Materials.Methanol.getFluid(1000)) + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); // CH2CH2 + 2O = CH3COOH GT_Values.RA.stdBuilder() - .itemInputs(Materials.Ethylene.getCells(1), GT_Utility.getIntegratedCircuit(9)) - .itemOutputs(Materials.Empty.getCells(1)) - .fluidInputs(Materials.Oxygen.getGas(2000)) - .fluidOutputs(Materials.AceticAcid.getFluid(1000)) - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Ethylene.getCells(1), GT_Utility.getIntegratedCircuit(9)) + .itemOutputs(Materials.Empty.getCells(1)) + .fluidInputs(Materials.Oxygen.getGas(2000)) + .fluidOutputs(Materials.AceticAcid.getFluid(1000)) + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Oxygen.getCells(2), GT_Utility.getIntegratedCircuit(9)) - .itemOutputs(Materials.Empty.getCells(2)) - .fluidInputs(Materials.Ethylene.getGas(1000)) - .fluidOutputs(Materials.AceticAcid.getFluid(1000)) - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Oxygen.getCells(2), GT_Utility.getIntegratedCircuit(9)) + .itemOutputs(Materials.Empty.getCells(2)) + .fluidInputs(Materials.Ethylene.getGas(1000)) + .fluidOutputs(Materials.AceticAcid.getFluid(1000)) + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Ethylene.getCells(1), GT_Utility.getIntegratedCircuit(19)) - .itemOutputs(Materials.AceticAcid.getCells(1)) - .fluidInputs(Materials.Oxygen.getGas(2000)) - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Ethylene.getCells(1), GT_Utility.getIntegratedCircuit(19)) + .itemOutputs(Materials.AceticAcid.getCells(1)) + .fluidInputs(Materials.Oxygen.getGas(2000)) + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Oxygen.getCells(2), GT_Utility.getIntegratedCircuit(19)) - .itemOutputs(Materials.AceticAcid.getCells(1), Materials.Empty.getCells(1)) - .fluidInputs(Materials.Ethylene.getGas(1000)) - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Oxygen.getCells(2), GT_Utility.getIntegratedCircuit(19)) + .itemOutputs(Materials.AceticAcid.getCells(1), Materials.Empty.getCells(1)) + .fluidInputs(Materials.Ethylene.getGas(1000)) + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); // O + C2H4O2 + C2H4 = C4H6O2 + H2O GT_Values.RA.stdBuilder() - .itemInputs(Materials.Ethylene.getCells(1), Materials.AceticAcid.getCells(1)) - .itemOutputs(Materials.Water.getCells(1), Materials.Empty.getCells(1)) - .fluidInputs(Materials.Oxygen.getGas(1000)) - .fluidOutputs(Materials.VinylAcetate.getFluid(1000)) - .duration(9 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Ethylene.getCells(1), Materials.AceticAcid.getCells(1)) + .itemOutputs(Materials.Water.getCells(1), Materials.Empty.getCells(1)) + .fluidInputs(Materials.Oxygen.getGas(1000)) + .fluidOutputs(Materials.VinylAcetate.getFluid(1000)) + .duration(9 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.AceticAcid.getCells(1), Materials.Oxygen.getCells(1)) - .itemOutputs(Materials.Water.getCells(1), Materials.Empty.getCells(1)) - .fluidInputs(Materials.Ethylene.getGas(1000)) - .fluidOutputs(Materials.VinylAcetate.getFluid(1000)) - .duration(9 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.AceticAcid.getCells(1), Materials.Oxygen.getCells(1)) + .itemOutputs(Materials.Water.getCells(1), Materials.Empty.getCells(1)) + .fluidInputs(Materials.Ethylene.getGas(1000)) + .fluidOutputs(Materials.VinylAcetate.getFluid(1000)) + .duration(9 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Oxygen.getCells(1), Materials.Ethylene.getCells(1)) - .itemOutputs(Materials.Water.getCells(1), Materials.Empty.getCells(1)) - .fluidInputs(Materials.AceticAcid.getFluid(1000)) - .fluidOutputs(Materials.VinylAcetate.getFluid(1000)) - .duration(9 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Oxygen.getCells(1), Materials.Ethylene.getCells(1)) + .itemOutputs(Materials.Water.getCells(1), Materials.Empty.getCells(1)) + .fluidInputs(Materials.AceticAcid.getFluid(1000)) + .fluidOutputs(Materials.VinylAcetate.getFluid(1000)) + .duration(9 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); // Ethanol -> Ethylene (Intended loss for Sulfuric Acid) GT_Values.RA.stdBuilder() - .itemInputs(Materials.Ethanol.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Ethylene.getCells(1)) - .fluidInputs(Materials.SulfuricAcid.getFluid(1000)) - .fluidOutputs(Materials.DilutedSulfuricAcid.getFluid(1000)) - .duration(60 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); + .itemInputs(Materials.Ethanol.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Ethylene.getCells(1)) + .fluidInputs(Materials.SulfuricAcid.getFluid(1000)) + .fluidOutputs(Materials.DilutedSulfuricAcid.getFluid(1000)) + .duration(60 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.SulfuricAcid.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Ethylene.getCells(1)) - .fluidInputs(Materials.Ethanol.getFluid(1000)) - .fluidOutputs(Materials.DilutedSulfuricAcid.getFluid(1000)) - .duration(60 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); + .itemInputs(Materials.SulfuricAcid.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Ethylene.getCells(1)) + .fluidInputs(Materials.Ethanol.getFluid(1000)) + .fluidOutputs(Materials.DilutedSulfuricAcid.getFluid(1000)) + .duration(60 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Ethanol.getCells(1), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.DilutedSulfuricAcid.getCells(1)) - .fluidInputs(Materials.SulfuricAcid.getFluid(1000)) - .fluidOutputs(Materials.Ethylene.getGas(1000)) - .duration(60 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); + .itemInputs(Materials.Ethanol.getCells(1), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.DilutedSulfuricAcid.getCells(1)) + .fluidInputs(Materials.SulfuricAcid.getFluid(1000)) + .fluidOutputs(Materials.Ethylene.getGas(1000)) + .duration(60 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.SulfuricAcid.getCells(1), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.DilutedSulfuricAcid.getCells(1)) - .fluidInputs(Materials.Ethanol.getFluid(1000)) - .fluidOutputs(Materials.Ethylene.getGas(1000)) - .duration(60 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); + .itemInputs(Materials.SulfuricAcid.getCells(1), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.DilutedSulfuricAcid.getCells(1)) + .fluidInputs(Materials.Ethanol.getFluid(1000)) + .fluidOutputs(Materials.Ethylene.getGas(1000)) + .duration(60 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); // H2O + Na = NaOH + H GT_Values.RA.stdBuilder() - .itemInputs(Materials.Sodium.getDust(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.SodiumHydroxide.getDust(3)) - .fluidInputs(Materials.Water.getFluid(1000)) - .fluidOutputs(Materials.Hydrogen.getGas(1000)) - .duration(10 * SECONDS) - .eut(30) - .addTo(UniversalChemical); + .itemInputs(Materials.Sodium.getDust(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.SodiumHydroxide.getDust(3)) + .fluidInputs(Materials.Water.getFluid(1000)) + .fluidOutputs(Materials.Hydrogen.getGas(1000)) + .duration(10 * SECONDS) + .eut(30) + .addTo(UniversalChemical); // H + Cl = HCl GT_Values.RA.stdBuilder() - .itemInputs(Materials.Chlorine.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Empty.getCells(1)) - .fluidInputs(Materials.Hydrogen.getGas(1000)) - .fluidOutputs(Materials.HydrochloricAcid.getFluid(1000)) - .duration(3 * SECONDS) - .eut(8) - .addTo(UniversalChemical); + .itemInputs(Materials.Chlorine.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Empty.getCells(1)) + .fluidInputs(Materials.Hydrogen.getGas(1000)) + .fluidOutputs(Materials.HydrochloricAcid.getFluid(1000)) + .duration(3 * SECONDS) + .eut(8) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Hydrogen.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Empty.getCells(1)) - .fluidInputs(Materials.Chlorine.getGas(1000)) - .fluidOutputs(Materials.HydrochloricAcid.getFluid(1000)) - .duration(3 * SECONDS) - .eut(8) - .addTo(UniversalChemical); + .itemInputs(Materials.Hydrogen.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Empty.getCells(1)) + .fluidInputs(Materials.Chlorine.getGas(1000)) + .fluidOutputs(Materials.HydrochloricAcid.getFluid(1000)) + .duration(3 * SECONDS) + .eut(8) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Chlorine.getCells(1), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.HydrochloricAcid.getCells(1)) - .fluidInputs(Materials.Hydrogen.getGas(1000)) - .noFluidOutputs() - .duration(3 * SECONDS) - .eut(8) - .addTo(UniversalChemical); + .itemInputs(Materials.Chlorine.getCells(1), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.HydrochloricAcid.getCells(1)) + .fluidInputs(Materials.Hydrogen.getGas(1000)) + .noFluidOutputs() + .duration(3 * SECONDS) + .eut(8) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Hydrogen.getCells(1), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.HydrochloricAcid.getCells(1)) - .fluidInputs(Materials.Chlorine.getGas(1000)) - .noFluidOutputs() - .duration(3 * SECONDS) - .eut(8) - .addTo(UniversalChemical); + .itemInputs(Materials.Hydrogen.getCells(1), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.HydrochloricAcid.getCells(1)) + .fluidInputs(Materials.Chlorine.getGas(1000)) + .noFluidOutputs() + .duration(3 * SECONDS) + .eut(8) + .addTo(UniversalChemical); // C3H6 + 2Cl = HCl + C3H5Cl GT_Values.RA.stdBuilder() - .itemInputs(Materials.Chlorine.getCells(2), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.HydrochloricAcid.getCells(1), Materials.Empty.getCells(1)) - .fluidInputs(Materials.Propene.getGas(1000)) - .fluidOutputs(Materials.AllylChloride.getFluid(1000)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Chlorine.getCells(2), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.HydrochloricAcid.getCells(1), Materials.Empty.getCells(1)) + .fluidInputs(Materials.Propene.getGas(1000)) + .fluidOutputs(Materials.AllylChloride.getFluid(1000)) + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Propene.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.HydrochloricAcid.getCells(1)) - .fluidInputs(Materials.Chlorine.getGas(2000)) - .fluidOutputs(Materials.AllylChloride.getFluid(1000)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Propene.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.HydrochloricAcid.getCells(1)) + .fluidInputs(Materials.Chlorine.getGas(2000)) + .fluidOutputs(Materials.AllylChloride.getFluid(1000)) + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Chlorine.getCells(2), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.AllylChloride.getCells(1), Materials.Empty.getCells(1)) - .fluidInputs(Materials.Propene.getGas(1000)) - .fluidOutputs(Materials.HydrochloricAcid.getFluid(1000)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Chlorine.getCells(2), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.AllylChloride.getCells(1), Materials.Empty.getCells(1)) + .fluidInputs(Materials.Propene.getGas(1000)) + .fluidOutputs(Materials.HydrochloricAcid.getFluid(1000)) + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Propene.getCells(1), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.AllylChloride.getCells(1)) - .fluidInputs(Materials.Chlorine.getGas(2000)) - .fluidOutputs(Materials.HydrochloricAcid.getFluid(1000)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Propene.getCells(1), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.AllylChloride.getCells(1)) + .fluidInputs(Materials.Chlorine.getGas(2000)) + .fluidOutputs(Materials.HydrochloricAcid.getFluid(1000)) + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); // 2Cl + H2O = HCl + HClO (Intended loss) GT_Values.RA.stdBuilder() - .itemInputs(Materials.Chlorine.getCells(2), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.DilutedHydrochloricAcid.getCells(1), Materials.Empty.getCells(1)) - .fluidInputs(Materials.Water.getFluid(1000)) - .fluidOutputs(Materials.HypochlorousAcid.getFluid(1000)) - .duration(6 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Chlorine.getCells(2), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.DilutedHydrochloricAcid.getCells(1), Materials.Empty.getCells(1)) + .fluidInputs(Materials.Water.getFluid(1000)) + .fluidOutputs(Materials.HypochlorousAcid.getFluid(1000)) + .duration(6 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Water.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.DilutedHydrochloricAcid.getCells(1)) - .fluidInputs(Materials.Chlorine.getGas(2000)) - .fluidOutputs(Materials.HypochlorousAcid.getFluid(1000)) - .duration(6 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Water.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.DilutedHydrochloricAcid.getCells(1)) + .fluidInputs(Materials.Chlorine.getGas(2000)) + .fluidOutputs(Materials.HypochlorousAcid.getFluid(1000)) + .duration(6 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Chlorine.getCells(2), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.HypochlorousAcid.getCells(1), Materials.Empty.getCells(1)) - .fluidInputs(Materials.Water.getFluid(1000)) - .fluidOutputs(Materials.DilutedHydrochloricAcid.getFluid(1000)) - .duration(6 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Chlorine.getCells(2), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.HypochlorousAcid.getCells(1), Materials.Empty.getCells(1)) + .fluidInputs(Materials.Water.getFluid(1000)) + .fluidOutputs(Materials.DilutedHydrochloricAcid.getFluid(1000)) + .duration(6 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Water.getCells(1), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.HypochlorousAcid.getCells(1)) - .fluidInputs(Materials.Chlorine.getGas(2000)) - .fluidOutputs(Materials.DilutedHydrochloricAcid.getFluid(1000)) - .duration(6 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Water.getCells(1), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.HypochlorousAcid.getCells(1)) + .fluidInputs(Materials.Chlorine.getGas(2000)) + .fluidOutputs(Materials.DilutedHydrochloricAcid.getFluid(1000)) + .duration(6 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); // HClO + NaOH + C3H5Cl = C3H5ClO + NaCl·H2O GT_Values.RA.stdBuilder() - .itemInputs(Materials.HypochlorousAcid.getCells(1), Materials.SodiumHydroxide.getDust(3)) - .itemOutputs(Materials.SaltWater.getCells(1)) - .fluidInputs(Materials.AllylChloride.getFluid(1000)) - .fluidOutputs(Materials.Epichlorohydrin.getFluid(1000)) - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.SodiumHydroxide.getDust(3), Materials.AllylChloride.getCells(1)) - .itemOutputs(Materials.SaltWater.getCells(1)) - .fluidInputs(Materials.HypochlorousAcid.getFluid(1000)) - .fluidOutputs(Materials.Epichlorohydrin.getFluid(1000)) - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.HydrochloricAcid.getCells(1), Materials.Empty.getCells(1)) - .itemOutputs(Materials.Water.getCells(2)) - .fluidInputs(Materials.Glycerol.getFluid(1000)) - .fluidOutputs(Materials.Epichlorohydrin.getFluid(1000)) - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Glycerol.getCells(1), Materials.Empty.getCells(1)) - .itemOutputs(Materials.Water.getCells(2)) - .fluidInputs(Materials.HydrochloricAcid.getFluid(1000)) - .fluidOutputs(Materials.Epichlorohydrin.getFluid(1000)) - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.HydrochloricAcid.getCells(1), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.Epichlorohydrin.getCells(1)) - .fluidInputs(Materials.Glycerol.getFluid(1000)) - .fluidOutputs(Materials.Water.getFluid(2000)) - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Glycerol.getCells(1), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.Epichlorohydrin.getCells(1)) - .fluidInputs(Materials.HydrochloricAcid.getFluid(1000)) - .fluidOutputs(Materials.Water.getFluid(2000)) - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.HydrochloricAcid.getCells(1), GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(Materials.Empty.getCells(1)) - .fluidInputs(Materials.Glycerol.getFluid(1000)) - .fluidOutputs(Materials.Epichlorohydrin.getFluid(1000)) - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Glycerol.getCells(1), GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(Materials.Empty.getCells(1)) - .fluidInputs(Materials.HydrochloricAcid.getFluid(1000)) - .fluidOutputs(Materials.Epichlorohydrin.getFluid(1000)) - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.HydrochloricAcid.getCells(1), GT_Utility.getIntegratedCircuit(12)) - .itemOutputs(Materials.Epichlorohydrin.getCells(1)) - .fluidInputs(Materials.Glycerol.getFluid(1000)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Glycerol.getCells(1), GT_Utility.getIntegratedCircuit(12)) - .itemOutputs(Materials.Epichlorohydrin.getCells(1)) - .fluidInputs(Materials.HydrochloricAcid.getFluid(1000)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.HypochlorousAcid.getCells(1), Materials.SodiumHydroxide.getDust(3)) + .itemOutputs(Materials.SaltWater.getCells(1)) + .fluidInputs(Materials.AllylChloride.getFluid(1000)) + .fluidOutputs(Materials.Epichlorohydrin.getFluid(1000)) + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.SodiumHydroxide.getDust(3), Materials.AllylChloride.getCells(1)) + .itemOutputs(Materials.SaltWater.getCells(1)) + .fluidInputs(Materials.HypochlorousAcid.getFluid(1000)) + .fluidOutputs(Materials.Epichlorohydrin.getFluid(1000)) + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.HydrochloricAcid.getCells(1), Materials.Empty.getCells(1)) + .itemOutputs(Materials.Water.getCells(2)) + .fluidInputs(Materials.Glycerol.getFluid(1000)) + .fluidOutputs(Materials.Epichlorohydrin.getFluid(1000)) + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Glycerol.getCells(1), Materials.Empty.getCells(1)) + .itemOutputs(Materials.Water.getCells(2)) + .fluidInputs(Materials.HydrochloricAcid.getFluid(1000)) + .fluidOutputs(Materials.Epichlorohydrin.getFluid(1000)) + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.HydrochloricAcid.getCells(1), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.Epichlorohydrin.getCells(1)) + .fluidInputs(Materials.Glycerol.getFluid(1000)) + .fluidOutputs(Materials.Water.getFluid(2000)) + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Glycerol.getCells(1), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.Epichlorohydrin.getCells(1)) + .fluidInputs(Materials.HydrochloricAcid.getFluid(1000)) + .fluidOutputs(Materials.Water.getFluid(2000)) + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.HydrochloricAcid.getCells(1), GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(Materials.Empty.getCells(1)) + .fluidInputs(Materials.Glycerol.getFluid(1000)) + .fluidOutputs(Materials.Epichlorohydrin.getFluid(1000)) + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Glycerol.getCells(1), GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(Materials.Empty.getCells(1)) + .fluidInputs(Materials.HydrochloricAcid.getFluid(1000)) + .fluidOutputs(Materials.Epichlorohydrin.getFluid(1000)) + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.HydrochloricAcid.getCells(1), GT_Utility.getIntegratedCircuit(12)) + .itemOutputs(Materials.Epichlorohydrin.getCells(1)) + .fluidInputs(Materials.Glycerol.getFluid(1000)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Glycerol.getCells(1), GT_Utility.getIntegratedCircuit(12)) + .itemOutputs(Materials.Epichlorohydrin.getCells(1)) + .fluidInputs(Materials.HydrochloricAcid.getFluid(1000)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); // P4O10 + 6H2O = 4H3PO4 GT_Values.RA.stdBuilder() - .itemInputs(Materials.PhosphorousPentoxide.getDust(14)) - .noItemOutputs() - .fluidInputs(Materials.Water.getFluid(6000)) - .fluidOutputs(Materials.PhosphoricAcid.getFluid(4000)) - .duration(2 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.PhosphorousPentoxide.getDust(14)) + .noItemOutputs() + .fluidInputs(Materials.Water.getFluid(6000)) + .fluidOutputs(Materials.PhosphoricAcid.getFluid(4000)) + .duration(2 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); // C9H12 + 2O = C6H6O + C3H6O GT_Values.RA.stdBuilder() - .itemInputs(Materials.Cumene.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Phenol.getCells(1)) - .fluidInputs(Materials.Oxygen.getGas(2000)) - .fluidOutputs(Materials.Acetone.getFluid(1000)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Cumene.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Phenol.getCells(1)) + .fluidInputs(Materials.Oxygen.getGas(2000)) + .fluidOutputs(Materials.Acetone.getFluid(1000)) + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Oxygen.getCells(2), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Phenol.getCells(1), Materials.Empty.getCells(1)) - .fluidInputs(Materials.Cumene.getFluid(1000)) - .fluidOutputs(Materials.Acetone.getFluid(1000)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Oxygen.getCells(2), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Phenol.getCells(1), Materials.Empty.getCells(1)) + .fluidInputs(Materials.Cumene.getFluid(1000)) + .fluidOutputs(Materials.Acetone.getFluid(1000)) + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Cumene.getCells(1), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.Acetone.getCells(1)) - .fluidInputs(Materials.Oxygen.getGas(2000)) - .fluidOutputs(Materials.Phenol.getFluid(1000)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Cumene.getCells(1), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.Acetone.getCells(1)) + .fluidInputs(Materials.Oxygen.getGas(2000)) + .fluidOutputs(Materials.Phenol.getFluid(1000)) + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Oxygen.getCells(2), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.Acetone.getCells(1), Materials.Empty.getCells(1)) - .fluidInputs(Materials.Cumene.getFluid(1000)) - .fluidOutputs(Materials.Phenol.getFluid(1000)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Oxygen.getCells(2), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.Acetone.getCells(1), Materials.Empty.getCells(1)) + .fluidInputs(Materials.Cumene.getFluid(1000)) + .fluidOutputs(Materials.Phenol.getFluid(1000)) + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); // C15H16O2 + 2C3H5ClO + 2NaOH = C15H14O2(C3H5O)2 + 2NaCl·H2O GT_Values.RA.stdBuilder() - .itemInputs(Materials.SodiumHydroxide.getDust(6), Materials.Epichlorohydrin.getCells(2)) - .itemOutputs(Materials.SaltWater.getCells(2)) - .fluidInputs(Materials.BisphenolA.getFluid(1000)) - .fluidOutputs(Materials.Epoxid.getMolten(1000)) - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.SodiumHydroxide.getDust(6), Materials.Epichlorohydrin.getCells(2)) + .itemOutputs(Materials.SaltWater.getCells(2)) + .fluidInputs(Materials.BisphenolA.getFluid(1000)) + .fluidOutputs(Materials.Epoxid.getMolten(1000)) + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); // CH4O + HCl = CH3Cl + H2O GT_Values.RA.stdBuilder() - .itemInputs(Materials.Methanol.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Water.getCells(1)) - .fluidInputs(Materials.HydrochloricAcid.getFluid(1000)) - .fluidOutputs(Materials.Chloromethane.getGas(1000)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.HydrochloricAcid.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Water.getCells(1)) - .fluidInputs(Materials.Methanol.getFluid(1000)) - .fluidOutputs(Materials.Chloromethane.getGas(1000)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Methanol.getCells(1), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.Chloromethane.getCells(1)) - .fluidInputs(Materials.HydrochloricAcid.getFluid(1000)) - .fluidOutputs(Materials.Water.getFluid(1000)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.HydrochloricAcid.getCells(1), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.Chloromethane.getCells(1)) - .fluidInputs(Materials.Methanol.getFluid(1000)) - .fluidOutputs(Materials.Water.getFluid(1000)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Methanol.getCells(1), GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(Materials.Empty.getCells(1)) - .fluidInputs(Materials.HydrochloricAcid.getFluid(1000)) - .fluidOutputs(Materials.Chloromethane.getGas(1000)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.HydrochloricAcid.getCells(1), GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(Materials.Empty.getCells(1)) - .fluidInputs(Materials.Methanol.getFluid(1000)) - .fluidOutputs(Materials.Chloromethane.getGas(1000)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Methanol.getCells(1), GT_Utility.getIntegratedCircuit(12)) - .itemOutputs(Materials.Chloromethane.getCells(1)) - .fluidInputs(Materials.HydrochloricAcid.getFluid(1000)) - .noFluidOutputs() - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.HydrochloricAcid.getCells(1), GT_Utility.getIntegratedCircuit(12)) - .itemOutputs(Materials.Chloromethane.getCells(1)) - .fluidInputs(Materials.Methanol.getFluid(1000)) - .noFluidOutputs() - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Chlorine.getCells(2), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.HydrochloricAcid.getCells(1), Materials.Empty.getCells(1)) - .fluidInputs(Materials.Methane.getGas(1000)) - .fluidOutputs(Materials.Chloromethane.getGas(1000)) - .duration(4 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Methane.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.HydrochloricAcid.getCells(1)) - .fluidInputs(Materials.Chlorine.getGas(2000)) - .fluidOutputs(Materials.Chloromethane.getGas(1000)) - .duration(4 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Chlorine.getCells(2), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.Chloromethane.getCells(1), Materials.Empty.getCells(1)) - .fluidInputs(Materials.Methane.getGas(1000)) - .fluidOutputs(Materials.HydrochloricAcid.getFluid(1000)) - .duration(4 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Methane.getCells(1), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.Chloromethane.getCells(1)) - .fluidInputs(Materials.Chlorine.getGas(2000)) - .fluidOutputs(Materials.HydrochloricAcid.getFluid(1000)) - .duration(4 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Methanol.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Water.getCells(1)) + .fluidInputs(Materials.HydrochloricAcid.getFluid(1000)) + .fluidOutputs(Materials.Chloromethane.getGas(1000)) + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.HydrochloricAcid.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Water.getCells(1)) + .fluidInputs(Materials.Methanol.getFluid(1000)) + .fluidOutputs(Materials.Chloromethane.getGas(1000)) + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Methanol.getCells(1), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.Chloromethane.getCells(1)) + .fluidInputs(Materials.HydrochloricAcid.getFluid(1000)) + .fluidOutputs(Materials.Water.getFluid(1000)) + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.HydrochloricAcid.getCells(1), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.Chloromethane.getCells(1)) + .fluidInputs(Materials.Methanol.getFluid(1000)) + .fluidOutputs(Materials.Water.getFluid(1000)) + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Methanol.getCells(1), GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(Materials.Empty.getCells(1)) + .fluidInputs(Materials.HydrochloricAcid.getFluid(1000)) + .fluidOutputs(Materials.Chloromethane.getGas(1000)) + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.HydrochloricAcid.getCells(1), GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(Materials.Empty.getCells(1)) + .fluidInputs(Materials.Methanol.getFluid(1000)) + .fluidOutputs(Materials.Chloromethane.getGas(1000)) + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Methanol.getCells(1), GT_Utility.getIntegratedCircuit(12)) + .itemOutputs(Materials.Chloromethane.getCells(1)) + .fluidInputs(Materials.HydrochloricAcid.getFluid(1000)) + .noFluidOutputs() + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.HydrochloricAcid.getCells(1), GT_Utility.getIntegratedCircuit(12)) + .itemOutputs(Materials.Chloromethane.getCells(1)) + .fluidInputs(Materials.Methanol.getFluid(1000)) + .noFluidOutputs() + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Chlorine.getCells(2), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.HydrochloricAcid.getCells(1), Materials.Empty.getCells(1)) + .fluidInputs(Materials.Methane.getGas(1000)) + .fluidOutputs(Materials.Chloromethane.getGas(1000)) + .duration(4 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Methane.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.HydrochloricAcid.getCells(1)) + .fluidInputs(Materials.Chlorine.getGas(2000)) + .fluidOutputs(Materials.Chloromethane.getGas(1000)) + .duration(4 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Chlorine.getCells(2), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.Chloromethane.getCells(1), Materials.Empty.getCells(1)) + .fluidInputs(Materials.Methane.getGas(1000)) + .fluidOutputs(Materials.HydrochloricAcid.getFluid(1000)) + .duration(4 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Methane.getCells(1), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.Chloromethane.getCells(1)) + .fluidInputs(Materials.Chlorine.getGas(2000)) + .fluidOutputs(Materials.HydrochloricAcid.getFluid(1000)) + .duration(4 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); // Cl6 + CH4 = CHCl3 + 3HCl GT_Values.RA.stdBuilder() - .itemInputs(Materials.Chlorine.getCells(6), GT_Utility.getIntegratedCircuit(3)) - .itemOutputs(Materials.HydrochloricAcid.getCells(3), Materials.Empty.getCells(3)) - .fluidInputs(Materials.Methane.getGas(1000)) - .fluidOutputs(Materials.Chloroform.getFluid(1000)) - .duration(4 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Chlorine.getCells(6), GT_Utility.getIntegratedCircuit(3)) + .itemOutputs(Materials.HydrochloricAcid.getCells(3), Materials.Empty.getCells(3)) + .fluidInputs(Materials.Methane.getGas(1000)) + .fluidOutputs(Materials.Chloroform.getFluid(1000)) + .duration(4 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Chlorine.getCells(6), GT_Utility.getIntegratedCircuit(13)) - .itemOutputs(Materials.Chloroform.getCells(1), Materials.Empty.getCells(5)) - .fluidInputs(Materials.Methane.getGas(1000)) - .fluidOutputs(Materials.HydrochloricAcid.getFluid(3000)) - .duration(4 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Chlorine.getCells(6), GT_Utility.getIntegratedCircuit(13)) + .itemOutputs(Materials.Chloroform.getCells(1), Materials.Empty.getCells(5)) + .fluidInputs(Materials.Methane.getGas(1000)) + .fluidOutputs(Materials.HydrochloricAcid.getFluid(3000)) + .duration(4 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Methane.getCells(1), GT_Utility.getIntegratedCircuit(13)) - .itemOutputs(Materials.Chloroform.getCells(1)) - .fluidInputs(Materials.Chlorine.getGas(6000)) - .fluidOutputs(Materials.HydrochloricAcid.getFluid(3000)) - .duration(4 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Methane.getCells(1), GT_Utility.getIntegratedCircuit(13)) + .itemOutputs(Materials.Chloroform.getCells(1)) + .fluidInputs(Materials.Chlorine.getGas(6000)) + .fluidOutputs(Materials.HydrochloricAcid.getFluid(3000)) + .duration(4 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); // H + F = HF GT_Values.RA.stdBuilder() - .itemInputs(Materials.Fluorine.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Empty.getCells(1)) - .fluidInputs(Materials.Hydrogen.getGas(1000)) - .fluidOutputs(Materials.HydrofluoricAcid.getFluid(1000)) - .duration(3 * SECONDS) - .eut(8) - .addTo(UniversalChemical); + .itemInputs(Materials.Fluorine.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Empty.getCells(1)) + .fluidInputs(Materials.Hydrogen.getGas(1000)) + .fluidOutputs(Materials.HydrofluoricAcid.getFluid(1000)) + .duration(3 * SECONDS) + .eut(8) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Hydrogen.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Empty.getCells(1)) - .fluidInputs(Materials.Fluorine.getGas(1000)) - .fluidOutputs(Materials.HydrofluoricAcid.getFluid(1000)) - .duration(3 * SECONDS) - .eut(8) - .addTo(UniversalChemical); + .itemInputs(Materials.Hydrogen.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Empty.getCells(1)) + .fluidInputs(Materials.Fluorine.getGas(1000)) + .fluidOutputs(Materials.HydrofluoricAcid.getFluid(1000)) + .duration(3 * SECONDS) + .eut(8) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Fluorine.getCells(1), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.HydrofluoricAcid.getCells(1)) - .fluidInputs(Materials.Hydrogen.getGas(1000)) - .noFluidOutputs() - .duration(3 * SECONDS) - .eut(8) - .addTo(UniversalChemical); + .itemInputs(Materials.Fluorine.getCells(1), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.HydrofluoricAcid.getCells(1)) + .fluidInputs(Materials.Hydrogen.getGas(1000)) + .noFluidOutputs() + .duration(3 * SECONDS) + .eut(8) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Hydrogen.getCells(1), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.HydrofluoricAcid.getCells(1)) - .fluidInputs(Materials.Fluorine.getGas(1000)) - .noFluidOutputs() - .duration(3 * SECONDS) - .eut(8) - .addTo(UniversalChemical); + .itemInputs(Materials.Hydrogen.getCells(1), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.HydrofluoricAcid.getCells(1)) + .fluidInputs(Materials.Fluorine.getGas(1000)) + .noFluidOutputs() + .duration(3 * SECONDS) + .eut(8) + .addTo(UniversalChemical); // 4HF + 2CHCl3 = C2F4 + 6HCl GT_Values.RA.stdBuilder() - .itemInputs(Materials.Chloroform.getCells(2), Materials.HydrofluoricAcid.getCells(4)) - .itemOutputs(Materials.HydrochloricAcid.getCells(6)) - .noFluidInputs() - .fluidOutputs(Materials.Tetrafluoroethylene.getGas(1000)) - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); + .itemInputs(Materials.Chloroform.getCells(2), Materials.HydrofluoricAcid.getCells(4)) + .itemOutputs(Materials.HydrochloricAcid.getCells(6)) + .noFluidInputs() + .fluidOutputs(Materials.Tetrafluoroethylene.getGas(1000)) + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Chloroform.getCells(2), Materials.Empty.getCells(4)) - .itemOutputs(Materials.HydrochloricAcid.getCells(6)) - .fluidInputs(Materials.HydrofluoricAcid.getFluid(4000)) - .fluidOutputs(Materials.Tetrafluoroethylene.getGas(1000)) - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); + .itemInputs(Materials.Chloroform.getCells(2), Materials.Empty.getCells(4)) + .itemOutputs(Materials.HydrochloricAcid.getCells(6)) + .fluidInputs(Materials.HydrofluoricAcid.getFluid(4000)) + .fluidOutputs(Materials.Tetrafluoroethylene.getGas(1000)) + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.HydrofluoricAcid.getCells(4), Materials.Empty.getCells(2)) - .itemOutputs(Materials.HydrochloricAcid.getCells(6)) - .fluidInputs(Materials.Chloroform.getFluid(2000)) - .fluidOutputs(Materials.Tetrafluoroethylene.getGas(1000)) - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); + .itemInputs(Materials.HydrofluoricAcid.getCells(4), Materials.Empty.getCells(2)) + .itemOutputs(Materials.HydrochloricAcid.getCells(6)) + .fluidInputs(Materials.Chloroform.getFluid(2000)) + .fluidOutputs(Materials.Tetrafluoroethylene.getGas(1000)) + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.HydrofluoricAcid.getCells(4), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.Tetrafluoroethylene.getCells(1), Materials.Empty.getCells(3)) - .fluidInputs(Materials.Chloroform.getFluid(2000)) - .fluidOutputs(Materials.HydrochloricAcid.getFluid(6000)) - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); + .itemInputs(Materials.HydrofluoricAcid.getCells(4), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.Tetrafluoroethylene.getCells(1), Materials.Empty.getCells(3)) + .fluidInputs(Materials.Chloroform.getFluid(2000)) + .fluidOutputs(Materials.HydrochloricAcid.getFluid(6000)) + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Chloroform.getCells(2), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.Tetrafluoroethylene.getCells(1), Materials.Empty.getCells(1)) - .fluidInputs(Materials.HydrofluoricAcid.getFluid(4000)) - .fluidOutputs(Materials.HydrochloricAcid.getFluid(6000)) - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); + .itemInputs(Materials.Chloroform.getCells(2), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.Tetrafluoroethylene.getCells(1), Materials.Empty.getCells(1)) + .fluidInputs(Materials.HydrofluoricAcid.getFluid(4000)) + .fluidOutputs(Materials.HydrochloricAcid.getFluid(6000)) + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); // Si + 2CH3Cl = C2H6Cl2Si GT_Values.RA.stdBuilder() - .itemInputs(Materials.Silicon.getDust(1), GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .fluidInputs(Materials.Chloromethane.getGas(2000)) - .fluidOutputs(Materials.Dimethyldichlorosilane.getFluid(1000)) - .duration(12 * SECONDS) - .eut(96) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Dimethyldichlorosilane.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Polydimethylsiloxane.getDust(3), Materials.Empty.getCells(1)) - .fluidInputs(Materials.Water.getFluid(1000)) - .fluidOutputs(Materials.DilutedHydrochloricAcid.getFluid(1000)) - .duration(12 * SECONDS) - .eut(96) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Water.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Polydimethylsiloxane.getDust(3), Materials.Empty.getCells(1)) - .fluidInputs(Materials.Dimethyldichlorosilane.getFluid(1000)) - .fluidOutputs(Materials.DilutedHydrochloricAcid.getFluid(1000)) - .duration(12 * SECONDS) - .eut(96) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Dimethyldichlorosilane.getCells(1), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs( - Materials.Polydimethylsiloxane.getDust(3), - Materials.DilutedHydrochloricAcid.getCells(1)) - .fluidInputs(Materials.Water.getFluid(1000)) - .noFluidOutputs() - .duration(12 * SECONDS) - .eut(96) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Water.getCells(1), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs( - Materials.Polydimethylsiloxane.getDust(3), - Materials.DilutedHydrochloricAcid.getCells(1)) - .fluidInputs(Materials.Dimethyldichlorosilane.getFluid(1000)) - .noFluidOutputs() - .duration(12 * SECONDS) - .eut(96) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Polydimethylsiloxane.getDust(9), Materials.Sulfur.getDust(1)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Silicone.getMolten(1296)) - .duration(30 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Silicon.getDust(1), GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .fluidInputs(Materials.Chloromethane.getGas(2000)) + .fluidOutputs(Materials.Dimethyldichlorosilane.getFluid(1000)) + .duration(12 * SECONDS) + .eut(96) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Dimethyldichlorosilane.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Polydimethylsiloxane.getDust(3), Materials.Empty.getCells(1)) + .fluidInputs(Materials.Water.getFluid(1000)) + .fluidOutputs(Materials.DilutedHydrochloricAcid.getFluid(1000)) + .duration(12 * SECONDS) + .eut(96) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Water.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Polydimethylsiloxane.getDust(3), Materials.Empty.getCells(1)) + .fluidInputs(Materials.Dimethyldichlorosilane.getFluid(1000)) + .fluidOutputs(Materials.DilutedHydrochloricAcid.getFluid(1000)) + .duration(12 * SECONDS) + .eut(96) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Dimethyldichlorosilane.getCells(1), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.Polydimethylsiloxane.getDust(3), Materials.DilutedHydrochloricAcid.getCells(1)) + .fluidInputs(Materials.Water.getFluid(1000)) + .noFluidOutputs() + .duration(12 * SECONDS) + .eut(96) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Water.getCells(1), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.Polydimethylsiloxane.getDust(3), Materials.DilutedHydrochloricAcid.getCells(1)) + .fluidInputs(Materials.Dimethyldichlorosilane.getFluid(1000)) + .noFluidOutputs() + .duration(12 * SECONDS) + .eut(96) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Polydimethylsiloxane.getDust(9), Materials.Sulfur.getDust(1)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Silicone.getMolten(1296)) + .duration(30 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); // Potassium Nitride // K + HNO3 = KNO3 + H GT_Values.RA.stdBuilder() - .itemInputs(Materials.Potassium.getDust(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.PotassiumNitrade.getDust(5)) - .fluidInputs(Materials.NitricAcid.getFluid(1000)) - .fluidOutputs(Materials.Hydrogen.getGas(1000)) - .duration(5 * SECONDS) - .eut(30) - .addTo(UniversalChemical); + .itemInputs(Materials.Potassium.getDust(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.PotassiumNitrade.getDust(5)) + .fluidInputs(Materials.NitricAcid.getFluid(1000)) + .fluidOutputs(Materials.Hydrogen.getGas(1000)) + .duration(5 * SECONDS) + .eut(30) + .addTo(UniversalChemical); // Chromium Trioxide // CrO2 + O = CrO3 GT_Values.RA.stdBuilder() - .itemInputs(Materials.ChromiumDioxide.getDust(3), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.ChromiumTrioxide.getDust(4)) - .fluidInputs(Materials.Oxygen.getGas(1000)) - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); + .itemInputs(Materials.ChromiumDioxide.getDust(3), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.ChromiumTrioxide.getDust(4)) + .fluidInputs(Materials.Oxygen.getGas(1000)) + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); // Nitrochlorobenzene // C6H5Cl + HNO3 = C6H4ClNO2 + H2O GT_Values.RA.stdBuilder() - .itemInputs(Materials.Chlorobenzene.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Nitrochlorobenzene.getCells(1)) - .fluidInputs(Materials.NitrationMixture.getFluid(2000)) - .fluidOutputs(Materials.DilutedSulfuricAcid.getFluid(1000)) - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(UniversalChemical); + .itemInputs(Materials.Chlorobenzene.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Nitrochlorobenzene.getCells(1)) + .fluidInputs(Materials.NitrationMixture.getFluid(2000)) + .fluidOutputs(Materials.DilutedSulfuricAcid.getFluid(1000)) + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Chlorobenzene.getCells(1), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.DilutedSulfuricAcid.getCells(1)) - .fluidInputs(Materials.NitrationMixture.getFluid(2000)) - .fluidOutputs(Materials.Nitrochlorobenzene.getFluid(1000)) - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(UniversalChemical); + .itemInputs(Materials.Chlorobenzene.getCells(1), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.DilutedSulfuricAcid.getCells(1)) + .fluidInputs(Materials.NitrationMixture.getFluid(2000)) + .fluidOutputs(Materials.Nitrochlorobenzene.getFluid(1000)) + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.NitrationMixture.getCells(2), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Nitrochlorobenzene.getCells(1), Materials.Empty.getCells(1)) - .fluidInputs(Materials.Chlorobenzene.getFluid(1000)) - .fluidOutputs(Materials.DilutedSulfuricAcid.getFluid(1000)) - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(UniversalChemical); + .itemInputs(Materials.NitrationMixture.getCells(2), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Nitrochlorobenzene.getCells(1), Materials.Empty.getCells(1)) + .fluidInputs(Materials.Chlorobenzene.getFluid(1000)) + .fluidOutputs(Materials.DilutedSulfuricAcid.getFluid(1000)) + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.NitrationMixture.getCells(2), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.DilutedSulfuricAcid.getCells(1), Materials.Empty.getCells(1)) - .fluidInputs(Materials.Chlorobenzene.getFluid(1000)) - .fluidOutputs(Materials.Nitrochlorobenzene.getFluid(1000)) - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(UniversalChemical); + .itemInputs(Materials.NitrationMixture.getCells(2), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.DilutedSulfuricAcid.getCells(1), Materials.Empty.getCells(1)) + .fluidInputs(Materials.Chlorobenzene.getFluid(1000)) + .fluidOutputs(Materials.Nitrochlorobenzene.getFluid(1000)) + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(UniversalChemical); // C6H6 + 2CH4 = C8H10 + 4H GT_Values.RA.stdBuilder() - .itemInputs(Materials.Methane.getCells(2), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.Dimethylbenzene.getCells(1), Materials.Empty.getCells(1)) - .fluidInputs(Materials.Benzene.getFluid(1000)) - .fluidOutputs(Materials.Hydrogen.getGas(4000)) - .duration(3 * MINUTES + 20 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); + .itemInputs(Materials.Methane.getCells(2), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.Dimethylbenzene.getCells(1), Materials.Empty.getCells(1)) + .fluidInputs(Materials.Benzene.getFluid(1000)) + .fluidOutputs(Materials.Hydrogen.getGas(4000)) + .duration(3 * MINUTES + 20 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Benzene.getCells(1), GT_Utility.getIntegratedCircuit(12)) - .itemOutputs(Materials.Dimethylbenzene.getCells(1)) - .fluidInputs(Materials.Methane.getGas(2000)) - .fluidOutputs(Materials.Hydrogen.getGas(4000)) - .duration(3 * MINUTES + 20 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); + .itemInputs(Materials.Benzene.getCells(1), GT_Utility.getIntegratedCircuit(12)) + .itemOutputs(Materials.Dimethylbenzene.getCells(1)) + .fluidInputs(Materials.Methane.getGas(2000)) + .fluidOutputs(Materials.Hydrogen.getGas(4000)) + .duration(3 * MINUTES + 20 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); // Phthalic Acid // C8H10 + 6O =K2Cr2O7= C8H6O4 + 2H2O GT_Values.RA.stdBuilder() - .itemInputs(Materials.Dimethylbenzene.getCells(1), Materials.Potassiumdichromate.getDustTiny(1)) - .itemOutputs(Materials.PhthalicAcid.getCells(1)) - .fluidInputs(Materials.Oxygen.getGas(6000)) - .fluidOutputs(Materials.Water.getFluid(2000)) - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(UniversalChemical); + .itemInputs(Materials.Dimethylbenzene.getCells(1), Materials.Potassiumdichromate.getDustTiny(1)) + .itemOutputs(Materials.PhthalicAcid.getCells(1)) + .fluidInputs(Materials.Oxygen.getGas(6000)) + .fluidOutputs(Materials.Water.getFluid(2000)) + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Oxygen.getCells(6), Materials.Potassiumdichromate.getDustTiny(1)) - .itemOutputs(Materials.PhthalicAcid.getCells(1), ItemList.Cell_Empty.get(5)) - .fluidInputs(Materials.Dimethylbenzene.getFluid(1000)) - .fluidOutputs(Materials.Water.getFluid(2000)) - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(UniversalChemical); + .itemInputs(Materials.Oxygen.getCells(6), Materials.Potassiumdichromate.getDustTiny(1)) + .itemOutputs(Materials.PhthalicAcid.getCells(1), ItemList.Cell_Empty.get(5)) + .fluidInputs(Materials.Dimethylbenzene.getFluid(1000)) + .fluidOutputs(Materials.Water.getFluid(2000)) + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Dimethylbenzene.getCells(9), Materials.Potassiumdichromate.getDust(1)) - .itemOutputs(Materials.PhthalicAcid.getCells(9)) - .fluidInputs(Materials.Oxygen.getGas(54000)) - .fluidOutputs(Materials.Water.getFluid(18000)) - .duration(45 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(UniversalChemical); + .itemInputs(Materials.Dimethylbenzene.getCells(9), Materials.Potassiumdichromate.getDust(1)) + .itemOutputs(Materials.PhthalicAcid.getCells(9)) + .fluidInputs(Materials.Oxygen.getGas(54000)) + .fluidOutputs(Materials.Water.getFluid(18000)) + .duration(45 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Oxygen.getCells(54), Materials.Potassiumdichromate.getDust(1)) - .itemOutputs(Materials.PhthalicAcid.getCells(9), ItemList.Cell_Empty.get(45)) - .fluidInputs(Materials.Dimethylbenzene.getFluid(9000)) - .fluidOutputs(Materials.Water.getFluid(18000)) - .duration(45 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(UniversalChemical); + .itemInputs(Materials.Oxygen.getCells(54), Materials.Potassiumdichromate.getDust(1)) + .itemOutputs(Materials.PhthalicAcid.getCells(9), ItemList.Cell_Empty.get(45)) + .fluidInputs(Materials.Dimethylbenzene.getFluid(9000)) + .fluidOutputs(Materials.Water.getFluid(18000)) + .duration(45 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(UniversalChemical); // These following recipes are broken in element term. // But they are kept in gamewise, too much existed setup will be broken. // Dichlorobenzidine GT_Values.RA.stdBuilder() - .itemInputs(Materials.Copper.getDustTiny(1), GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .fluidInputs(Materials.Nitrochlorobenzene.getFluid(2000)) - .fluidOutputs(Materials.Dichlorobenzidine.getFluid(1000)) - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(UniversalChemical); + .itemInputs(Materials.Copper.getDustTiny(1), GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .fluidInputs(Materials.Nitrochlorobenzene.getFluid(2000)) + .fluidOutputs(Materials.Dichlorobenzidine.getFluid(1000)) + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Copper.getDust(1), GT_Utility.getIntegratedCircuit(9)) - .noItemOutputs() - .fluidInputs(Materials.Nitrochlorobenzene.getFluid(18000)) - .fluidOutputs(Materials.Dichlorobenzidine.getFluid(9000)) - .duration(1 * MINUTES + 30 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(UniversalChemical); + .itemInputs(Materials.Copper.getDust(1), GT_Utility.getIntegratedCircuit(9)) + .noItemOutputs() + .fluidInputs(Materials.Nitrochlorobenzene.getFluid(18000)) + .fluidOutputs(Materials.Dichlorobenzidine.getFluid(9000)) + .duration(1 * MINUTES + 30 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(UniversalChemical); // Diphenyl Isophthalate GT_Values.RA.stdBuilder() - .itemInputs(Materials.PhthalicAcid.getCells(1), Materials.SulfuricAcid.getCells(1)) - .itemOutputs(Materials.Diphenylisophthalate.getCells(1), ItemList.Cell_Empty.get(1)) - .fluidInputs(Materials.Phenol.getFluid(2000)) - .fluidOutputs(Materials.DilutedSulfuricAcid.getFluid(1000)) - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_IV) - .addTo(UniversalChemical); + .itemInputs(Materials.PhthalicAcid.getCells(1), Materials.SulfuricAcid.getCells(1)) + .itemOutputs(Materials.Diphenylisophthalate.getCells(1), ItemList.Cell_Empty.get(1)) + .fluidInputs(Materials.Phenol.getFluid(2000)) + .fluidOutputs(Materials.DilutedSulfuricAcid.getFluid(1000)) + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_IV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.PhthalicAcid.getCells(1), Materials.Phenol.getCells(2)) - .itemOutputs(Materials.Diphenylisophthalate.getCells(1), ItemList.Cell_Empty.get(2)) - .fluidInputs(Materials.SulfuricAcid.getFluid(1000)) - .fluidOutputs(Materials.DilutedSulfuricAcid.getFluid(1000)) - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_IV) - .addTo(UniversalChemical); + .itemInputs(Materials.PhthalicAcid.getCells(1), Materials.Phenol.getCells(2)) + .itemOutputs(Materials.Diphenylisophthalate.getCells(1), ItemList.Cell_Empty.get(2)) + .fluidInputs(Materials.SulfuricAcid.getFluid(1000)) + .fluidOutputs(Materials.DilutedSulfuricAcid.getFluid(1000)) + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_IV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.SulfuricAcid.getCells(1), Materials.Phenol.getCells(2)) - .itemOutputs(Materials.Diphenylisophthalate.getCells(1), ItemList.Cell_Empty.get(2)) - .fluidInputs(Materials.PhthalicAcid.getFluid(1000)) - .fluidOutputs(Materials.DilutedSulfuricAcid.getFluid(1000)) - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_IV) - .addTo(UniversalChemical); + .itemInputs(Materials.SulfuricAcid.getCells(1), Materials.Phenol.getCells(2)) + .itemOutputs(Materials.Diphenylisophthalate.getCells(1), ItemList.Cell_Empty.get(2)) + .fluidInputs(Materials.PhthalicAcid.getFluid(1000)) + .fluidOutputs(Materials.DilutedSulfuricAcid.getFluid(1000)) + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_IV) + .addTo(UniversalChemical); // Diaminobenzidin GT_Values.RA.stdBuilder() - .itemInputs(Materials.Ammonia.getCells(2), Materials.Zinc.getDust(1)) - .itemOutputs(Materials.Diaminobenzidin.getCells(1), ItemList.Cell_Empty.get(1)) - .fluidInputs(Materials.Dichlorobenzidine.getFluid(1000)) - .fluidOutputs(Materials.HydrochloricAcid.getFluid(2000)) - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_IV) - .addTo(UniversalChemical); + .itemInputs(Materials.Ammonia.getCells(2), Materials.Zinc.getDust(1)) + .itemOutputs(Materials.Diaminobenzidin.getCells(1), ItemList.Cell_Empty.get(1)) + .fluidInputs(Materials.Dichlorobenzidine.getFluid(1000)) + .fluidOutputs(Materials.HydrochloricAcid.getFluid(2000)) + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_IV) + .addTo(UniversalChemical); // Polybenzimidazole // C12H14N4 + C20H14O4 = C20H12N4 + 2C6H6O + 2H2O GT_Values.RA.stdBuilder() - .itemInputs(Materials.Diphenylisophthalate.getCells(1), Materials.Diaminobenzidin.getCells(1)) - .itemOutputs(Materials.Phenol.getCells(2)) - .noFluidInputs() - .fluidOutputs(Materials.Polybenzimidazole.getMolten(1000)) - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_IV) - .addTo(UniversalChemical); + .itemInputs(Materials.Diphenylisophthalate.getCells(1), Materials.Diaminobenzidin.getCells(1)) + .itemOutputs(Materials.Phenol.getCells(2)) + .noFluidInputs() + .fluidOutputs(Materials.Polybenzimidazole.getMolten(1000)) + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_IV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Tin, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Saltpeter, 1)) - .itemOutputs(getModItem(Railcraft.ID, "tile.railcraft.glass", 6)) - .fluidInputs(Materials.Glass.getMolten(864)) - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Tin, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Saltpeter, 1)) + .itemOutputs(getModItem(Railcraft.ID, "tile.railcraft.glass", 6)) + .fluidInputs(Materials.Glass.getMolten(864)) + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); // NH3 + 2CH4O = C2H7N + 2H2O GT_Values.RA.stdBuilder() - .itemInputs(Materials.Methanol.getCells(2), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Water.getCells(2)) - .fluidInputs(Materials.Ammonia.getGas(1000)) - .fluidOutputs(Materials.Dimethylamine.getGas(1000)) - .duration(12 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); + .itemInputs(Materials.Methanol.getCells(2), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Water.getCells(2)) + .fluidInputs(Materials.Ammonia.getGas(1000)) + .fluidOutputs(Materials.Dimethylamine.getGas(1000)) + .duration(12 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Methanol.getCells(2), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.Dimethylamine.getCells(1), Materials.Empty.getCells(1)) - .fluidInputs(Materials.Ammonia.getGas(1000)) - .fluidOutputs(Materials.Water.getFluid(1000)) - .duration(12 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); + .itemInputs(Materials.Methanol.getCells(2), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.Dimethylamine.getCells(1), Materials.Empty.getCells(1)) + .fluidInputs(Materials.Ammonia.getGas(1000)) + .fluidOutputs(Materials.Water.getFluid(1000)) + .duration(12 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Ammonia.getCells(1), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.Dimethylamine.getCells(1)) - .fluidInputs(Materials.Methanol.getFluid(2000)) - .fluidOutputs(Materials.Water.getFluid(1000)) - .duration(12 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); + .itemInputs(Materials.Ammonia.getCells(1), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.Dimethylamine.getCells(1)) + .fluidInputs(Materials.Methanol.getFluid(2000)) + .fluidOutputs(Materials.Water.getFluid(1000)) + .duration(12 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Methanol.getCells(2), GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(Materials.Empty.getCells(2)) - .fluidInputs(Materials.Ammonia.getGas(1000)) - .fluidOutputs(Materials.Dimethylamine.getGas(1000)) - .duration(12 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); + .itemInputs(Materials.Methanol.getCells(2), GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(Materials.Empty.getCells(2)) + .fluidInputs(Materials.Ammonia.getGas(1000)) + .fluidOutputs(Materials.Dimethylamine.getGas(1000)) + .duration(12 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Methanol.getCells(2), GT_Utility.getIntegratedCircuit(12)) - .itemOutputs(Materials.Dimethylamine.getCells(1), Materials.Empty.getCells(1)) - .fluidInputs(Materials.Ammonia.getGas(1000)) - .noFluidOutputs() - .duration(12 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); + .itemInputs(Materials.Methanol.getCells(2), GT_Utility.getIntegratedCircuit(12)) + .itemOutputs(Materials.Dimethylamine.getCells(1), Materials.Empty.getCells(1)) + .fluidInputs(Materials.Ammonia.getGas(1000)) + .noFluidOutputs() + .duration(12 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Ammonia.getCells(1), GT_Utility.getIntegratedCircuit(12)) - .itemOutputs(Materials.Dimethylamine.getCells(1)) - .fluidInputs(Materials.Methanol.getFluid(2000)) - .noFluidOutputs() - .duration(12 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); + .itemInputs(Materials.Ammonia.getCells(1), GT_Utility.getIntegratedCircuit(12)) + .itemOutputs(Materials.Dimethylamine.getCells(1)) + .fluidInputs(Materials.Methanol.getFluid(2000)) + .noFluidOutputs() + .duration(12 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); // NH3 + HClO = NH2Cl + H2O GT_Values.RA.stdBuilder() - .itemInputs(Materials.Ammonia.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Water.getCells(1)) - .fluidInputs(Materials.HypochlorousAcid.getFluid(1000)) - .fluidOutputs(Materials.Chloramine.getFluid(1000)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.HypochlorousAcid.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Water.getCells(1)) - .fluidInputs(Materials.Ammonia.getGas(1000)) - .fluidOutputs(Materials.Chloramine.getFluid(1000)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Ammonia.getCells(1), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.Chloramine.getCells(1)) - .fluidInputs(Materials.HypochlorousAcid.getFluid(1000)) - .fluidOutputs(Materials.Water.getFluid(1000)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.HypochlorousAcid.getCells(1), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.Chloramine.getCells(1)) - .fluidInputs(Materials.Ammonia.getGas(1000)) - .fluidOutputs(Materials.Water.getFluid(1000)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Ammonia.getCells(1), GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(Materials.Empty.getCells(1)) - .fluidInputs(Materials.HypochlorousAcid.getFluid(1000)) - .fluidOutputs(Materials.Chloramine.getFluid(1000)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.HypochlorousAcid.getCells(1), GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(Materials.Empty.getCells(1)) - .fluidInputs(Materials.Ammonia.getGas(1000)) - .fluidOutputs(Materials.Chloramine.getFluid(1000)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Ammonia.getCells(1), GT_Utility.getIntegratedCircuit(12)) - .itemOutputs(Materials.Chloramine.getCells(1)) - .fluidInputs(Materials.HypochlorousAcid.getFluid(1000)) - .noFluidOutputs() - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.HypochlorousAcid.getCells(1), GT_Utility.getIntegratedCircuit(12)) - .itemOutputs(Materials.Chloramine.getCells(1)) - .fluidInputs(Materials.Ammonia.getGas(1000)) - .noFluidOutputs() - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Ammonia.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Water.getCells(1)) + .fluidInputs(Materials.HypochlorousAcid.getFluid(1000)) + .fluidOutputs(Materials.Chloramine.getFluid(1000)) + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.HypochlorousAcid.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Water.getCells(1)) + .fluidInputs(Materials.Ammonia.getGas(1000)) + .fluidOutputs(Materials.Chloramine.getFluid(1000)) + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Ammonia.getCells(1), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.Chloramine.getCells(1)) + .fluidInputs(Materials.HypochlorousAcid.getFluid(1000)) + .fluidOutputs(Materials.Water.getFluid(1000)) + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.HypochlorousAcid.getCells(1), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.Chloramine.getCells(1)) + .fluidInputs(Materials.Ammonia.getGas(1000)) + .fluidOutputs(Materials.Water.getFluid(1000)) + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Ammonia.getCells(1), GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(Materials.Empty.getCells(1)) + .fluidInputs(Materials.HypochlorousAcid.getFluid(1000)) + .fluidOutputs(Materials.Chloramine.getFluid(1000)) + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.HypochlorousAcid.getCells(1), GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(Materials.Empty.getCells(1)) + .fluidInputs(Materials.Ammonia.getGas(1000)) + .fluidOutputs(Materials.Chloramine.getFluid(1000)) + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Ammonia.getCells(1), GT_Utility.getIntegratedCircuit(12)) + .itemOutputs(Materials.Chloramine.getCells(1)) + .fluidInputs(Materials.HypochlorousAcid.getFluid(1000)) + .noFluidOutputs() + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.HypochlorousAcid.getCells(1), GT_Utility.getIntegratedCircuit(12)) + .itemOutputs(Materials.Chloramine.getCells(1)) + .fluidInputs(Materials.Ammonia.getGas(1000)) + .noFluidOutputs() + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); // 2NO2 = N2O4 GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(2)) - .noItemOutputs() - .fluidInputs(Materials.NitrogenDioxide.getGas(2000)) - .fluidOutputs(Materials.DinitrogenTetroxide.getGas(1000)) - .duration(32 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(GT_Utility.getIntegratedCircuit(2)) + .noItemOutputs() + .fluidInputs(Materials.NitrogenDioxide.getGas(2000)) + .fluidOutputs(Materials.DinitrogenTetroxide.getGas(1000)) + .duration(32 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.NitrogenDioxide.getCells(2), GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(Materials.Empty.getCells(2)) - .noFluidInputs() - .fluidOutputs(Materials.DinitrogenTetroxide.getGas(1000)) - .duration(32 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.NitrogenDioxide.getCells(2), GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(Materials.Empty.getCells(2)) + .noFluidInputs() + .fluidOutputs(Materials.DinitrogenTetroxide.getGas(1000)) + .duration(32 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.NitrogenDioxide.getCells(2), GT_Utility.getIntegratedCircuit(12)) - .itemOutputs(Materials.DinitrogenTetroxide.getCells(1), Materials.Empty.getCells(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(32 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.NitrogenDioxide.getCells(2), GT_Utility.getIntegratedCircuit(12)) + .itemOutputs(Materials.DinitrogenTetroxide.getCells(1), Materials.Empty.getCells(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(32 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); // 2NH3 + 5O = 2NO + 3H2O GT_Values.RA.stdBuilder() - .itemInputs(Materials.Ammonia.getCells(4), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.NitricOxide.getCells(4)) - .fluidInputs(Materials.Oxygen.getGas(10000)) - .fluidOutputs(Materials.Water.getFluid(6000)) - .duration(16 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Ammonia.getCells(4), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.NitricOxide.getCells(4)) + .fluidInputs(Materials.Oxygen.getGas(10000)) + .fluidOutputs(Materials.Water.getFluid(6000)) + .duration(16 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Oxygen.getCells(10), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.NitricOxide.getCells(4), Materials.Empty.getCells(6)) - .fluidInputs(Materials.Ammonia.getGas(4000)) - .fluidOutputs(Materials.Water.getFluid(6000)) - .duration(16 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Oxygen.getCells(10), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.NitricOxide.getCells(4), Materials.Empty.getCells(6)) + .fluidInputs(Materials.Ammonia.getGas(4000)) + .fluidOutputs(Materials.Water.getFluid(6000)) + .duration(16 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Oxygen.getCells(10), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.Water.getCells(6), Materials.Empty.getCells(4)) - .fluidInputs(Materials.Ammonia.getGas(4000)) - .fluidOutputs(Materials.NitricOxide.getGas(4000)) - .duration(16 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Oxygen.getCells(10), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.Water.getCells(6), Materials.Empty.getCells(4)) + .fluidInputs(Materials.Ammonia.getGas(4000)) + .fluidOutputs(Materials.NitricOxide.getGas(4000)) + .duration(16 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Ammonia.getCells(4), GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(Materials.NitricOxide.getCells(4)) - .fluidInputs(Materials.Oxygen.getGas(10000)) - .noFluidOutputs() - .duration(16 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Ammonia.getCells(4), GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(Materials.NitricOxide.getCells(4)) + .fluidInputs(Materials.Oxygen.getGas(10000)) + .noFluidOutputs() + .duration(16 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Oxygen.getCells(10), GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(Materials.NitricOxide.getCells(4), Materials.Empty.getCells(6)) - .fluidInputs(Materials.Ammonia.getGas(4000)) - .noFluidOutputs() - .duration(16 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Oxygen.getCells(10), GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(Materials.NitricOxide.getCells(4), Materials.Empty.getCells(6)) + .fluidInputs(Materials.Ammonia.getGas(4000)) + .noFluidOutputs() + .duration(16 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Oxygen.getCells(10), GT_Utility.getIntegratedCircuit(12)) - .itemOutputs(Materials.Empty.getCells(10)) - .fluidInputs(Materials.Ammonia.getGas(4000)) - .fluidOutputs(Materials.NitricOxide.getGas(4000)) - .duration(16 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Oxygen.getCells(10), GT_Utility.getIntegratedCircuit(12)) + .itemOutputs(Materials.Empty.getCells(10)) + .fluidInputs(Materials.Ammonia.getGas(4000)) + .fluidOutputs(Materials.NitricOxide.getGas(4000)) + .duration(16 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); // NO + O = NO2 GT_Values.RA.stdBuilder() - .itemInputs(Materials.NitricOxide.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Empty.getCells(1)) - .fluidInputs(Materials.Oxygen.getGas(1000)) - .fluidOutputs(Materials.NitrogenDioxide.getGas(1000)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.NitricOxide.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Empty.getCells(1)) + .fluidInputs(Materials.Oxygen.getGas(1000)) + .fluidOutputs(Materials.NitrogenDioxide.getGas(1000)) + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Oxygen.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Empty.getCells(1)) - .fluidInputs(Materials.NitricOxide.getGas(1000)) - .fluidOutputs(Materials.NitrogenDioxide.getGas(1000)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Oxygen.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Empty.getCells(1)) + .fluidInputs(Materials.NitricOxide.getGas(1000)) + .fluidOutputs(Materials.NitrogenDioxide.getGas(1000)) + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.NitricOxide.getCells(1), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.NitrogenDioxide.getCells(1)) - .fluidInputs(Materials.Oxygen.getGas(1000)) - .noFluidOutputs() - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.NitricOxide.getCells(1), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.NitrogenDioxide.getCells(1)) + .fluidInputs(Materials.Oxygen.getGas(1000)) + .noFluidOutputs() + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Oxygen.getCells(1), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.NitrogenDioxide.getCells(1)) - .fluidInputs(Materials.NitricOxide.getGas(1000)) - .noFluidOutputs() - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Oxygen.getCells(1), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.NitrogenDioxide.getCells(1)) + .fluidInputs(Materials.NitricOxide.getGas(1000)) + .noFluidOutputs() + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); // H2O + 3NO2 = 2HNO3 + NO GT_Values.RA.stdBuilder() - .itemInputs(Materials.Water.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.NitricOxide.getCells(1)) - .fluidInputs(Materials.NitrogenDioxide.getGas(3000)) - .fluidOutputs(Materials.NitricAcid.getFluid(2000)) - .duration(12 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Water.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.NitricOxide.getCells(1)) + .fluidInputs(Materials.NitrogenDioxide.getGas(3000)) + .fluidOutputs(Materials.NitricAcid.getFluid(2000)) + .duration(12 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.NitrogenDioxide.getCells(3), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.NitricOxide.getCells(1), Materials.Empty.getCells(2)) - .fluidInputs(Materials.Water.getFluid(1000)) - .fluidOutputs(Materials.NitricAcid.getFluid(2000)) - .duration(12 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.NitrogenDioxide.getCells(3), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.NitricOxide.getCells(1), Materials.Empty.getCells(2)) + .fluidInputs(Materials.Water.getFluid(1000)) + .fluidOutputs(Materials.NitricAcid.getFluid(2000)) + .duration(12 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.NitrogenDioxide.getCells(3), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.NitricAcid.getCells(2), Materials.Empty.getCells(1)) - .fluidInputs(Materials.Water.getFluid(1000)) - .fluidOutputs(Materials.NitricOxide.getGas(1000)) - .duration(12 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.NitrogenDioxide.getCells(3), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.NitricAcid.getCells(2), Materials.Empty.getCells(1)) + .fluidInputs(Materials.Water.getFluid(1000)) + .fluidOutputs(Materials.NitricOxide.getGas(1000)) + .duration(12 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); // S + 2H = H2S GT_Values.RA.stdBuilder() - .itemInputs(Materials.Sulfur.getDust(1), GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .fluidInputs(Materials.Hydrogen.getGas(2000)) - .fluidOutputs(Materials.HydricSulfide.getGas(1000)) - .duration(3 * SECONDS) - .eut(8) - .addTo(UniversalChemical); + .itemInputs(Materials.Sulfur.getDust(1), GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .fluidInputs(Materials.Hydrogen.getGas(2000)) + .fluidOutputs(Materials.HydricSulfide.getGas(1000)) + .duration(3 * SECONDS) + .eut(8) + .addTo(UniversalChemical); // S + 2O = SO2 GT_Values.RA.stdBuilder() - .itemInputs(Materials.Sulfur.getDust(1), GT_Utility.getIntegratedCircuit(3)) - .noItemOutputs() - .fluidInputs(Materials.Oxygen.getGas(2000)) - .fluidOutputs(Materials.SulfurDioxide.getGas(1000)) - .duration(3 * SECONDS) - .eut(8) - .addTo(UniversalChemical); + .itemInputs(Materials.Sulfur.getDust(1), GT_Utility.getIntegratedCircuit(3)) + .noItemOutputs() + .fluidInputs(Materials.Oxygen.getGas(2000)) + .fluidOutputs(Materials.SulfurDioxide.getGas(1000)) + .duration(3 * SECONDS) + .eut(8) + .addTo(UniversalChemical); // H2S + 3O = SO2 + H2O GT_Values.RA.stdBuilder() - .itemInputs(Materials.HydricSulfide.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Water.getCells(1)) - .fluidInputs(Materials.Oxygen.getGas(3000)) - .fluidOutputs(Materials.SulfurDioxide.getGas(1000)) - .duration(6 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Oxygen.getCells(3), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Water.getCells(1), Materials.Empty.getCells(2)) - .fluidInputs(Materials.HydricSulfide.getGas(1000)) - .fluidOutputs(Materials.SulfurDioxide.getGas(1000)) - .duration(6 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.HydricSulfide.getCells(1), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.SulfurDioxide.getCells(1)) - .fluidInputs(Materials.Oxygen.getGas(3000)) - .fluidOutputs(Materials.Water.getFluid(1000)) - .duration(6 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Oxygen.getCells(3), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.SulfurDioxide.getCells(1), Materials.Empty.getCells(2)) - .fluidInputs(Materials.HydricSulfide.getGas(1000)) - .fluidOutputs(Materials.Water.getFluid(1000)) - .duration(6 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.HydricSulfide.getCells(1), GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(Materials.Empty.getCells(1)) - .fluidInputs(Materials.Oxygen.getGas(3000)) - .fluidOutputs(Materials.SulfurDioxide.getGas(1000)) - .duration(6 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Oxygen.getCells(3), GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(Materials.Empty.getCells(3)) - .fluidInputs(Materials.HydricSulfide.getGas(1000)) - .fluidOutputs(Materials.SulfurDioxide.getGas(1000)) - .duration(6 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.HydricSulfide.getCells(1), GT_Utility.getIntegratedCircuit(12)) - .itemOutputs(Materials.SulfurDioxide.getCells(1)) - .fluidInputs(Materials.Oxygen.getGas(3000)) - .noFluidOutputs() - .duration(6 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Oxygen.getCells(3), GT_Utility.getIntegratedCircuit(12)) - .itemOutputs(Materials.SulfurDioxide.getCells(1), Materials.Empty.getCells(2)) - .fluidInputs(Materials.HydricSulfide.getGas(1000)) - .noFluidOutputs() - .duration(6 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.HydricSulfide.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Water.getCells(1)) + .fluidInputs(Materials.Oxygen.getGas(3000)) + .fluidOutputs(Materials.SulfurDioxide.getGas(1000)) + .duration(6 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Oxygen.getCells(3), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Water.getCells(1), Materials.Empty.getCells(2)) + .fluidInputs(Materials.HydricSulfide.getGas(1000)) + .fluidOutputs(Materials.SulfurDioxide.getGas(1000)) + .duration(6 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.HydricSulfide.getCells(1), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.SulfurDioxide.getCells(1)) + .fluidInputs(Materials.Oxygen.getGas(3000)) + .fluidOutputs(Materials.Water.getFluid(1000)) + .duration(6 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Oxygen.getCells(3), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.SulfurDioxide.getCells(1), Materials.Empty.getCells(2)) + .fluidInputs(Materials.HydricSulfide.getGas(1000)) + .fluidOutputs(Materials.Water.getFluid(1000)) + .duration(6 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.HydricSulfide.getCells(1), GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(Materials.Empty.getCells(1)) + .fluidInputs(Materials.Oxygen.getGas(3000)) + .fluidOutputs(Materials.SulfurDioxide.getGas(1000)) + .duration(6 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Oxygen.getCells(3), GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(Materials.Empty.getCells(3)) + .fluidInputs(Materials.HydricSulfide.getGas(1000)) + .fluidOutputs(Materials.SulfurDioxide.getGas(1000)) + .duration(6 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.HydricSulfide.getCells(1), GT_Utility.getIntegratedCircuit(12)) + .itemOutputs(Materials.SulfurDioxide.getCells(1)) + .fluidInputs(Materials.Oxygen.getGas(3000)) + .noFluidOutputs() + .duration(6 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Oxygen.getCells(3), GT_Utility.getIntegratedCircuit(12)) + .itemOutputs(Materials.SulfurDioxide.getCells(1), Materials.Empty.getCells(2)) + .fluidInputs(Materials.HydricSulfide.getGas(1000)) + .noFluidOutputs() + .duration(6 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); // 2H2S + SO2 = 3S + 2H2O GT_Values.RA.stdBuilder() - .itemInputs(Materials.SulfurDioxide.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Sulfur.getDust(3), Materials.Empty.getCells(1)) - .fluidInputs(Materials.HydricSulfide.getGas(2000)) - .fluidOutputs(Materials.Water.getFluid(2000)) - .duration(6 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.SulfurDioxide.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Sulfur.getDust(3), Materials.Empty.getCells(1)) + .fluidInputs(Materials.HydricSulfide.getGas(2000)) + .fluidOutputs(Materials.Water.getFluid(2000)) + .duration(6 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.HydricSulfide.getCells(2), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Sulfur.getDust(3), Materials.Empty.getCells(2)) - .fluidInputs(Materials.SulfurDioxide.getGas(1000)) - .fluidOutputs(Materials.Water.getFluid(2000)) - .duration(6 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.HydricSulfide.getCells(2), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Sulfur.getDust(3), Materials.Empty.getCells(2)) + .fluidInputs(Materials.SulfurDioxide.getGas(1000)) + .fluidOutputs(Materials.Water.getFluid(2000)) + .duration(6 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.SulfurDioxide.getCells(1), GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(Materials.Sulfur.getDust(3), Materials.Empty.getCells(1)) - .fluidInputs(Materials.HydricSulfide.getGas(2000)) - .noFluidOutputs() - .duration(6 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.SulfurDioxide.getCells(1), GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(Materials.Sulfur.getDust(3), Materials.Empty.getCells(1)) + .fluidInputs(Materials.HydricSulfide.getGas(2000)) + .noFluidOutputs() + .duration(6 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.HydricSulfide.getCells(2), GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(Materials.Sulfur.getDust(3), Materials.Empty.getCells(2)) - .fluidInputs(Materials.SulfurDioxide.getGas(1000)) - .noFluidOutputs() - .duration(6 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.HydricSulfide.getCells(2), GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(Materials.Sulfur.getDust(3), Materials.Empty.getCells(2)) + .fluidInputs(Materials.SulfurDioxide.getGas(1000)) + .noFluidOutputs() + .duration(6 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); // SO2 + O = SO3 GT_Values.RA.stdBuilder() - .itemInputs(Materials.Oxygen.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Empty.getCells(1)) - .fluidInputs(Materials.SulfurDioxide.getGas(1000)) - .fluidOutputs(Materials.SulfurTrioxide.getGas(1000)) - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Oxygen.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Empty.getCells(1)) + .fluidInputs(Materials.SulfurDioxide.getGas(1000)) + .fluidOutputs(Materials.SulfurTrioxide.getGas(1000)) + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.SulfurDioxide.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Empty.getCells(1)) - .fluidInputs(Materials.Oxygen.getGas(1000)) - .fluidOutputs(Materials.SulfurTrioxide.getGas(1000)) - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.SulfurDioxide.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Empty.getCells(1)) + .fluidInputs(Materials.Oxygen.getGas(1000)) + .fluidOutputs(Materials.SulfurTrioxide.getGas(1000)) + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Oxygen.getCells(1), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.SulfurTrioxide.getCells(1)) - .fluidInputs(Materials.SulfurDioxide.getGas(1000)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Oxygen.getCells(1), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.SulfurTrioxide.getCells(1)) + .fluidInputs(Materials.SulfurDioxide.getGas(1000)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.SulfurDioxide.getCells(1), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.SulfurTrioxide.getCells(1)) - .fluidInputs(Materials.Oxygen.getGas(1000)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.SulfurDioxide.getCells(1), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.SulfurTrioxide.getCells(1)) + .fluidInputs(Materials.Oxygen.getGas(1000)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); // SO3 + H2O = H2SO4 GT_Values.RA.stdBuilder() - .itemInputs(Materials.Water.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Empty.getCells(1)) - .fluidInputs(Materials.SulfurTrioxide.getGas(1000)) - .fluidOutputs(Materials.SulfuricAcid.getFluid(1000)) - .duration(16 * SECONDS) - .eut(8) - .addTo(UniversalChemical); + .itemInputs(Materials.Water.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Empty.getCells(1)) + .fluidInputs(Materials.SulfurTrioxide.getGas(1000)) + .fluidOutputs(Materials.SulfuricAcid.getFluid(1000)) + .duration(16 * SECONDS) + .eut(8) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.SulfurTrioxide.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Empty.getCells(1)) - .fluidInputs(Materials.Water.getFluid(1000)) - .fluidOutputs(Materials.SulfuricAcid.getFluid(1000)) - .duration(16 * SECONDS) - .eut(8) - .addTo(UniversalChemical); + .itemInputs(Materials.SulfurTrioxide.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Empty.getCells(1)) + .fluidInputs(Materials.Water.getFluid(1000)) + .fluidOutputs(Materials.SulfuricAcid.getFluid(1000)) + .duration(16 * SECONDS) + .eut(8) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Water.getCells(1), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.SulfuricAcid.getCells(1)) - .fluidInputs(Materials.SulfurTrioxide.getGas(1000)) - .noFluidOutputs() - .duration(16 * SECONDS) - .eut(8) - .addTo(UniversalChemical); + .itemInputs(Materials.Water.getCells(1), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.SulfuricAcid.getCells(1)) + .fluidInputs(Materials.SulfurTrioxide.getGas(1000)) + .noFluidOutputs() + .duration(16 * SECONDS) + .eut(8) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.SulfurTrioxide.getCells(1), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.SulfuricAcid.getCells(1)) - .fluidInputs(Materials.Water.getFluid(1000)) - .noFluidOutputs() - .duration(16 * SECONDS) - .eut(8) - .addTo(UniversalChemical); + .itemInputs(Materials.SulfurTrioxide.getCells(1), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.SulfuricAcid.getCells(1)) + .fluidInputs(Materials.Water.getFluid(1000)) + .noFluidOutputs() + .duration(16 * SECONDS) + .eut(8) + .addTo(UniversalChemical); // C2H4 + 2Cl = C2H3Cl + HCl GT_Values.RA.stdBuilder() - .itemInputs(Materials.Chlorine.getCells(2), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.HydrochloricAcid.getCells(1), Materials.Empty.getCells(1)) - .fluidInputs(Materials.Ethylene.getGas(1000)) - .fluidOutputs(Materials.VinylChloride.getGas(1000)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Chlorine.getCells(2), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.HydrochloricAcid.getCells(1), Materials.Empty.getCells(1)) + .fluidInputs(Materials.Ethylene.getGas(1000)) + .fluidOutputs(Materials.VinylChloride.getGas(1000)) + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Ethylene.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.HydrochloricAcid.getCells(1)) - .fluidInputs(Materials.Chlorine.getGas(2000)) - .fluidOutputs(Materials.VinylChloride.getGas(1000)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Ethylene.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.HydrochloricAcid.getCells(1)) + .fluidInputs(Materials.Chlorine.getGas(2000)) + .fluidOutputs(Materials.VinylChloride.getGas(1000)) + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Chlorine.getCells(2), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.VinylChloride.getCells(1), Materials.Empty.getCells(1)) - .fluidInputs(Materials.Ethylene.getGas(1000)) - .fluidOutputs(Materials.HydrochloricAcid.getFluid(1000)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Chlorine.getCells(2), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.VinylChloride.getCells(1), Materials.Empty.getCells(1)) + .fluidInputs(Materials.Ethylene.getGas(1000)) + .fluidOutputs(Materials.HydrochloricAcid.getFluid(1000)) + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Ethylene.getCells(1), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.VinylChloride.getCells(1)) - .fluidInputs(Materials.Chlorine.getGas(2000)) - .fluidOutputs(Materials.HydrochloricAcid.getFluid(1000)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Ethylene.getCells(1), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.VinylChloride.getCells(1)) + .fluidInputs(Materials.Chlorine.getGas(2000)) + .fluidOutputs(Materials.HydrochloricAcid.getFluid(1000)) + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); // C2H4O2 =H2SO4= C2H2O + H2O GT_Values.RA.stdBuilder() - .itemInputs(Materials.AceticAcid.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Ethenone.getCells(1)) - .fluidInputs(Materials.SulfuricAcid.getFluid(1000)) - .fluidOutputs(Materials.DilutedSulfuricAcid.getFluid(1000)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); + .itemInputs(Materials.AceticAcid.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Ethenone.getCells(1)) + .fluidInputs(Materials.SulfuricAcid.getFluid(1000)) + .fluidOutputs(Materials.DilutedSulfuricAcid.getFluid(1000)) + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.SulfuricAcid.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Ethenone.getCells(1)) - .fluidInputs(Materials.AceticAcid.getFluid(1000)) - .fluidOutputs(Materials.DilutedSulfuricAcid.getFluid(1000)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); + .itemInputs(Materials.SulfuricAcid.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Ethenone.getCells(1)) + .fluidInputs(Materials.AceticAcid.getFluid(1000)) + .fluidOutputs(Materials.DilutedSulfuricAcid.getFluid(1000)) + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.AceticAcid.getCells(1), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.DilutedSulfuricAcid.getCells(1)) - .fluidInputs(Materials.SulfuricAcid.getFluid(1000)) - .fluidOutputs(Materials.Ethenone.getGas(1000)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); + .itemInputs(Materials.AceticAcid.getCells(1), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.DilutedSulfuricAcid.getCells(1)) + .fluidInputs(Materials.SulfuricAcid.getFluid(1000)) + .fluidOutputs(Materials.Ethenone.getGas(1000)) + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.SulfuricAcid.getCells(1), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.DilutedSulfuricAcid.getCells(1)) - .fluidInputs(Materials.AceticAcid.getFluid(1000)) - .fluidOutputs(Materials.Ethenone.getGas(1000)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); + .itemInputs(Materials.SulfuricAcid.getCells(1), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.DilutedSulfuricAcid.getCells(1)) + .fluidInputs(Materials.AceticAcid.getFluid(1000)) + .fluidOutputs(Materials.Ethenone.getGas(1000)) + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); // C2H2O + 8HNO3 = 2CN4O8 + 9H2O // Chemically this recipe is wrong, but kept for minimizing breaking change. GT_Values.RA.stdBuilder() - .itemInputs(Materials.Ethenone.getCells(1), Materials.Empty.getCells(1)) - .itemOutputs(Materials.Tetranitromethane.getCells(2)) - .fluidInputs(Materials.NitricAcid.getFluid(8000)) - .fluidOutputs(Materials.Water.getFluid(9000)) - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Ethenone.getCells(1), GT_Utility.getIntegratedCircuit(12)) - .itemOutputs(Materials.Empty.getCells(1)) - .fluidInputs(Materials.NitricAcid.getFluid(8000)) - .fluidOutputs(Materials.Tetranitromethane.getFluid(2000)) - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.NitricAcid.getCells(8), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Tetranitromethane.getCells(2), Materials.Empty.getCells(6)) - .fluidInputs(Materials.Ethenone.getGas(1000)) - .fluidOutputs(Materials.Water.getFluid(9000)) - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.NitricAcid.getCells(8), GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(Materials.Tetranitromethane.getCells(2), Materials.Empty.getCells(6)) - .fluidInputs(Materials.Ethenone.getGas(1000)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.NitricAcid.getCells(8), GT_Utility.getIntegratedCircuit(12)) - .itemOutputs(Materials.Empty.getCells(8)) - .fluidInputs(Materials.Ethenone.getGas(1000)) - .fluidOutputs(Materials.Tetranitromethane.getFluid(2000)) - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.NitricAcid.getCells(8), Materials.Empty.getCells(1)) - .itemOutputs(Materials.Water.getCells(9)) - .fluidInputs(Materials.Ethenone.getGas(1000)) - .fluidOutputs(Materials.Tetranitromethane.getFluid(2000)) - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Ethenone.getCells(1), Materials.NitricAcid.getCells(8)) - .itemOutputs(Materials.Water.getCells(9)) - .noFluidInputs() - .fluidOutputs(Materials.Tetranitromethane.getFluid(2000)) - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); + .itemInputs(Materials.Ethenone.getCells(1), Materials.Empty.getCells(1)) + .itemOutputs(Materials.Tetranitromethane.getCells(2)) + .fluidInputs(Materials.NitricAcid.getFluid(8000)) + .fluidOutputs(Materials.Water.getFluid(9000)) + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Ethenone.getCells(1), GT_Utility.getIntegratedCircuit(12)) + .itemOutputs(Materials.Empty.getCells(1)) + .fluidInputs(Materials.NitricAcid.getFluid(8000)) + .fluidOutputs(Materials.Tetranitromethane.getFluid(2000)) + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.NitricAcid.getCells(8), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Tetranitromethane.getCells(2), Materials.Empty.getCells(6)) + .fluidInputs(Materials.Ethenone.getGas(1000)) + .fluidOutputs(Materials.Water.getFluid(9000)) + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.NitricAcid.getCells(8), GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(Materials.Tetranitromethane.getCells(2), Materials.Empty.getCells(6)) + .fluidInputs(Materials.Ethenone.getGas(1000)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.NitricAcid.getCells(8), GT_Utility.getIntegratedCircuit(12)) + .itemOutputs(Materials.Empty.getCells(8)) + .fluidInputs(Materials.Ethenone.getGas(1000)) + .fluidOutputs(Materials.Tetranitromethane.getFluid(2000)) + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.NitricAcid.getCells(8), Materials.Empty.getCells(1)) + .itemOutputs(Materials.Water.getCells(9)) + .fluidInputs(Materials.Ethenone.getGas(1000)) + .fluidOutputs(Materials.Tetranitromethane.getFluid(2000)) + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Ethenone.getCells(1), Materials.NitricAcid.getCells(8)) + .itemOutputs(Materials.Water.getCells(9)) + .noFluidInputs() + .fluidOutputs(Materials.Tetranitromethane.getFluid(2000)) + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); // C3H6 + C2H4 = C5H8 + 2H GT_Values.RA.stdBuilder() - .itemInputs(Materials.Propene.getCells(1), Materials.Empty.getCells(1)) - .itemOutputs(Materials.Hydrogen.getCells(2)) - .fluidInputs(Materials.Ethylene.getGas(1000)) - .fluidOutputs(Materials.Isoprene.getFluid(1000)) - .duration(6 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Ethylene.getCells(1), Materials.Empty.getCells(1)) - .itemOutputs(Materials.Hydrogen.getCells(2)) - .fluidInputs(Materials.Propene.getGas(1000)) - .fluidOutputs(Materials.Isoprene.getFluid(1000)) - .duration(6 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Propene.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Isoprene.getCells(1)) - .fluidInputs(Materials.Ethylene.getGas(1000)) - .fluidOutputs(Materials.Hydrogen.getGas(2000)) - .duration(6 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Ethylene.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Isoprene.getCells(1)) - .fluidInputs(Materials.Propene.getGas(1000)) - .fluidOutputs(Materials.Hydrogen.getGas(2000)) - .duration(6 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Empty.getCells(1), GT_Utility.getIntegratedCircuit(5)) - .itemOutputs(Materials.Methane.getCells(1)) - .fluidInputs(Materials.Propene.getGas(2000)) - .fluidOutputs(Materials.Isoprene.getFluid(1000)) - .duration(6 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Propene.getCells(2), GT_Utility.getIntegratedCircuit(5)) - .itemOutputs(Materials.Methane.getCells(1), Materials.Empty.getCells(1)) - .noFluidInputs() - .fluidOutputs(Materials.Isoprene.getFluid(1000)) - .duration(6 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Empty.getCells(1), GT_Utility.getIntegratedCircuit(15)) - .itemOutputs(Materials.Isoprene.getCells(1)) - .fluidInputs(Materials.Propene.getGas(2000)) - .fluidOutputs(Materials.Methane.getGas(1000)) - .duration(6 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Propene.getCells(2), GT_Utility.getIntegratedCircuit(15)) - .itemOutputs(Materials.Isoprene.getCells(1), Materials.Empty.getCells(1)) - .noFluidInputs() - .fluidOutputs(Materials.Methane.getGas(1000)) - .duration(6 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Cell_Air.get(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.RawRubber.getDust(1), Materials.Empty.getCells(1)) - .fluidInputs(Materials.Isoprene.getFluid(144)) - .noFluidOutputs() - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Oxygen.getCells(2), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.RawRubber.getDust(3), Materials.Empty.getCells(2)) - .fluidInputs(Materials.Isoprene.getFluid(288)) - .noFluidOutputs() - .duration(16 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Isoprene.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.RawRubber.getDust(7), Materials.Empty.getCells(1)) - .fluidInputs(Materials.Air.getGas(14000)) - .noFluidOutputs() - .duration(56 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Isoprene.getCells(2), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.RawRubber.getDust(21), Materials.Empty.getCells(2)) - .fluidInputs(Materials.Oxygen.getGas(14000)) - .noFluidOutputs() - .duration(1 * MINUTES + 52 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Benzene.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Styrene.getCells(1)) - .fluidInputs(Materials.Ethylene.getGas(1000)) - .fluidOutputs(Materials.Hydrogen.getGas(2000)) - .duration(6 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Ethylene.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Styrene.getCells(1)) - .fluidInputs(Materials.Benzene.getFluid(1000)) - .fluidOutputs(Materials.Hydrogen.getGas(2000)) - .duration(6 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Benzene.getCells(1), Materials.Empty.getCells(1)) - .itemOutputs(Materials.Hydrogen.getCells(2)) - .fluidInputs(Materials.Ethylene.getGas(1000)) - .fluidOutputs(Materials.Styrene.getFluid(1000)) - .duration(6 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Ethylene.getCells(1), Materials.Empty.getCells(1)) - .itemOutputs(Materials.Hydrogen.getCells(2)) - .fluidInputs(Materials.Benzene.getFluid(1000)) - .fluidOutputs(Materials.Styrene.getFluid(1000)) - .duration(6 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.RawStyreneButadieneRubber.getDust(9), Materials.Sulfur.getDust(1)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.StyreneButadieneRubber.getMolten(1296)) - .duration(30 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Propene.getCells(1), Materials.Empty.getCells(1)) + .itemOutputs(Materials.Hydrogen.getCells(2)) + .fluidInputs(Materials.Ethylene.getGas(1000)) + .fluidOutputs(Materials.Isoprene.getFluid(1000)) + .duration(6 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Ethylene.getCells(1), Materials.Empty.getCells(1)) + .itemOutputs(Materials.Hydrogen.getCells(2)) + .fluidInputs(Materials.Propene.getGas(1000)) + .fluidOutputs(Materials.Isoprene.getFluid(1000)) + .duration(6 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Propene.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Isoprene.getCells(1)) + .fluidInputs(Materials.Ethylene.getGas(1000)) + .fluidOutputs(Materials.Hydrogen.getGas(2000)) + .duration(6 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Ethylene.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Isoprene.getCells(1)) + .fluidInputs(Materials.Propene.getGas(1000)) + .fluidOutputs(Materials.Hydrogen.getGas(2000)) + .duration(6 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Empty.getCells(1), GT_Utility.getIntegratedCircuit(5)) + .itemOutputs(Materials.Methane.getCells(1)) + .fluidInputs(Materials.Propene.getGas(2000)) + .fluidOutputs(Materials.Isoprene.getFluid(1000)) + .duration(6 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Propene.getCells(2), GT_Utility.getIntegratedCircuit(5)) + .itemOutputs(Materials.Methane.getCells(1), Materials.Empty.getCells(1)) + .noFluidInputs() + .fluidOutputs(Materials.Isoprene.getFluid(1000)) + .duration(6 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Empty.getCells(1), GT_Utility.getIntegratedCircuit(15)) + .itemOutputs(Materials.Isoprene.getCells(1)) + .fluidInputs(Materials.Propene.getGas(2000)) + .fluidOutputs(Materials.Methane.getGas(1000)) + .duration(6 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Propene.getCells(2), GT_Utility.getIntegratedCircuit(15)) + .itemOutputs(Materials.Isoprene.getCells(1), Materials.Empty.getCells(1)) + .noFluidInputs() + .fluidOutputs(Materials.Methane.getGas(1000)) + .duration(6 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Cell_Air.get(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.RawRubber.getDust(1), Materials.Empty.getCells(1)) + .fluidInputs(Materials.Isoprene.getFluid(144)) + .noFluidOutputs() + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Oxygen.getCells(2), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.RawRubber.getDust(3), Materials.Empty.getCells(2)) + .fluidInputs(Materials.Isoprene.getFluid(288)) + .noFluidOutputs() + .duration(16 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Isoprene.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.RawRubber.getDust(7), Materials.Empty.getCells(1)) + .fluidInputs(Materials.Air.getGas(14000)) + .noFluidOutputs() + .duration(56 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Isoprene.getCells(2), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.RawRubber.getDust(21), Materials.Empty.getCells(2)) + .fluidInputs(Materials.Oxygen.getGas(14000)) + .noFluidOutputs() + .duration(1 * MINUTES + 52 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Benzene.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Styrene.getCells(1)) + .fluidInputs(Materials.Ethylene.getGas(1000)) + .fluidOutputs(Materials.Hydrogen.getGas(2000)) + .duration(6 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Ethylene.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Styrene.getCells(1)) + .fluidInputs(Materials.Benzene.getFluid(1000)) + .fluidOutputs(Materials.Hydrogen.getGas(2000)) + .duration(6 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Benzene.getCells(1), Materials.Empty.getCells(1)) + .itemOutputs(Materials.Hydrogen.getCells(2)) + .fluidInputs(Materials.Ethylene.getGas(1000)) + .fluidOutputs(Materials.Styrene.getFluid(1000)) + .duration(6 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Ethylene.getCells(1), Materials.Empty.getCells(1)) + .itemOutputs(Materials.Hydrogen.getCells(2)) + .fluidInputs(Materials.Benzene.getFluid(1000)) + .fluidOutputs(Materials.Styrene.getFluid(1000)) + .duration(6 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.RawStyreneButadieneRubber.getDust(9), Materials.Sulfur.getDust(1)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.StyreneButadieneRubber.getMolten(1296)) + .duration(30 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); // C6H6 + 4Cl = C6H4Cl2 + 2HCl GT_Values.RA.stdBuilder() - .itemInputs(Materials.Benzene.getCells(1), GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(Materials.Dichlorobenzene.getCells(1)) - .fluidInputs(Materials.Chlorine.getGas(4000)) - .fluidOutputs(Materials.HydrochloricAcid.getFluid(2000)) - .duration(12 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Benzene.getCells(1), GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(Materials.Dichlorobenzene.getCells(1)) + .fluidInputs(Materials.Chlorine.getGas(4000)) + .fluidOutputs(Materials.HydrochloricAcid.getFluid(2000)) + .duration(12 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Chlorine.getCells(4), GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(Materials.Dichlorobenzene.getCells(1), Materials.Empty.getCells(3)) - .fluidInputs(Materials.Benzene.getFluid(1000)) - .fluidOutputs(Materials.HydrochloricAcid.getFluid(2000)) - .duration(12 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Chlorine.getCells(4), GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(Materials.Dichlorobenzene.getCells(1), Materials.Empty.getCells(3)) + .fluidInputs(Materials.Benzene.getFluid(1000)) + .fluidOutputs(Materials.HydrochloricAcid.getFluid(2000)) + .duration(12 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Chlorine.getCells(4), GT_Utility.getIntegratedCircuit(12)) - .itemOutputs(Materials.HydrochloricAcid.getCells(2), Materials.Empty.getCells(2)) - .fluidInputs(Materials.Benzene.getFluid(1000)) - .fluidOutputs(Materials.Dichlorobenzene.getFluid(1000)) - .duration(12 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Chlorine.getCells(4), GT_Utility.getIntegratedCircuit(12)) + .itemOutputs(Materials.HydrochloricAcid.getCells(2), Materials.Empty.getCells(2)) + .fluidInputs(Materials.Benzene.getFluid(1000)) + .fluidOutputs(Materials.Dichlorobenzene.getFluid(1000)) + .duration(12 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.SodiumSulfide.getDust(3), ItemList.Cell_Air.get(8)) - .itemOutputs(Materials.Salt.getDust(2), Materials.Empty.getCells(8)) - .fluidInputs(Materials.Dichlorobenzene.getFluid(1000)) - .fluidOutputs(Materials.PolyphenyleneSulfide.getMolten(1000)) - .duration(12 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(UniversalChemical); + .itemInputs(Materials.SodiumSulfide.getDust(3), ItemList.Cell_Air.get(8)) + .itemOutputs(Materials.Salt.getDust(2), Materials.Empty.getCells(8)) + .fluidInputs(Materials.Dichlorobenzene.getFluid(1000)) + .fluidOutputs(Materials.PolyphenyleneSulfide.getMolten(1000)) + .duration(12 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.SodiumSulfide.getDust(3), Materials.Oxygen.getCells(8)) - .itemOutputs(Materials.Salt.getDust(2), Materials.Empty.getCells(8)) - .fluidInputs(Materials.Dichlorobenzene.getFluid(1000)) - .fluidOutputs(Materials.PolyphenyleneSulfide.getMolten(1500)) - .duration(12 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(UniversalChemical); + .itemInputs(Materials.SodiumSulfide.getDust(3), Materials.Oxygen.getCells(8)) + .itemOutputs(Materials.Salt.getDust(2), Materials.Empty.getCells(8)) + .fluidInputs(Materials.Dichlorobenzene.getFluid(1000)) + .fluidOutputs(Materials.PolyphenyleneSulfide.getMolten(1500)) + .duration(12 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(UniversalChemical); // NaCl + H2SO4 = NaHSO4 + HCl GT_Values.RA.stdBuilder() - .itemInputs(Materials.Salt.getDust(2), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.SodiumBisulfate.getDust(7)) - .fluidInputs(Materials.SulfuricAcid.getFluid(1000)) - .fluidOutputs(Materials.HydrochloricAcid.getFluid(1000)) - .duration(3 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Salt.getDust(2), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.SodiumBisulfate.getDust(7)) + .fluidInputs(Materials.SulfuricAcid.getFluid(1000)) + .fluidOutputs(Materials.HydrochloricAcid.getFluid(1000)) + .duration(3 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); // NaOH + H2SO4 = NaHSO4 + H2O GT_Values.RA.stdBuilder() - .itemInputs(Materials.SodiumHydroxide.getDust(3), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.SodiumBisulfate.getDust(7)) - .fluidInputs(Materials.SulfuricAcid.getFluid(1000)) - .fluidOutputs(Materials.Water.getFluid(1000)) - .duration(3 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.SodiumHydroxide.getDust(3), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.SodiumBisulfate.getDust(7)) + .fluidInputs(Materials.SulfuricAcid.getFluid(1000)) + .fluidOutputs(Materials.Water.getFluid(1000)) + .duration(3 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); // Biodiesel recipes GT_Values.RA.stdBuilder() - .itemInputs(Materials.SodiumHydroxide.getDustTiny(1), Materials.Methanol.getCells(1)) - .itemOutputs(Materials.Glycerol.getCells(1)) - .fluidInputs(Materials.SeedOil.getFluid(6000)) - .fluidOutputs(Materials.BioDiesel.getFluid(6000)) - .duration(30 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.SodiumHydroxide.getDustTiny(1), Materials.SeedOil.getCells(6)) - .itemOutputs(Materials.BioDiesel.getCells(6)) - .fluidInputs(Materials.Methanol.getFluid(1000)) - .fluidOutputs(Materials.Glycerol.getFluid(1000)) - .duration(30 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.SodiumHydroxide.getDustTiny(1), Materials.Methanol.getCells(1)) - .itemOutputs(Materials.Glycerol.getCells(1)) - .fluidInputs(Materials.FishOil.getFluid(6000)) - .fluidOutputs(Materials.BioDiesel.getFluid(6000)) - .duration(30 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.SodiumHydroxide.getDustTiny(1), Materials.FishOil.getCells(6)) - .itemOutputs(Materials.BioDiesel.getCells(6)) - .fluidInputs(Materials.Methanol.getFluid(1000)) - .fluidOutputs(Materials.Glycerol.getFluid(1000)) - .duration(30 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.SodiumHydroxide.getDustTiny(1), Materials.Ethanol.getCells(1)) - .itemOutputs(Materials.Glycerol.getCells(1)) - .fluidInputs(Materials.SeedOil.getFluid(6000)) - .fluidOutputs(Materials.BioDiesel.getFluid(6000)) - .duration(30 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.SodiumHydroxide.getDustTiny(1), Materials.SeedOil.getCells(6)) - .itemOutputs(Materials.BioDiesel.getCells(6)) - .fluidInputs(Materials.Ethanol.getFluid(1000)) - .fluidOutputs(Materials.Glycerol.getFluid(1000)) - .duration(30 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.SodiumHydroxide.getDustTiny(1), Materials.Ethanol.getCells(1)) - .itemOutputs(Materials.Glycerol.getCells(1)) - .fluidInputs(Materials.FishOil.getFluid(6000)) - .fluidOutputs(Materials.BioDiesel.getFluid(6000)) - .duration(30 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.SodiumHydroxide.getDustTiny(1), Materials.FishOil.getCells(6)) - .itemOutputs(Materials.BioDiesel.getCells(6)) - .fluidInputs(Materials.Ethanol.getFluid(1000)) - .fluidOutputs(Materials.Glycerol.getFluid(1000)) - .duration(30 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.SodiumHydroxide.getDust(1), Materials.Methanol.getCells(9)) - .itemOutputs(Materials.Glycerol.getCells(9)) - .fluidInputs(Materials.SeedOil.getFluid(54000)) - .fluidOutputs(Materials.BioDiesel.getFluid(54000)) - .duration(4 * MINUTES + 30 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.SodiumHydroxide.getDust(1), Materials.SeedOil.getCells(54)) - .itemOutputs(Materials.BioDiesel.getCells(54)) - .fluidInputs(Materials.Methanol.getFluid(9000)) - .fluidOutputs(Materials.Glycerol.getFluid(9000)) - .duration(4 * MINUTES + 30 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.SodiumHydroxide.getDust(1), Materials.Methanol.getCells(9)) - .itemOutputs(Materials.Glycerol.getCells(9)) - .fluidInputs(Materials.FishOil.getFluid(54000)) - .fluidOutputs(Materials.BioDiesel.getFluid(54000)) - .duration(4 * MINUTES + 30 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.SodiumHydroxide.getDust(1), Materials.FishOil.getCells(54)) - .itemOutputs(Materials.BioDiesel.getCells(54)) - .fluidInputs(Materials.Methanol.getFluid(9000)) - .fluidOutputs(Materials.Glycerol.getFluid(9000)) - .duration(4 * MINUTES + 30 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.SodiumHydroxide.getDust(1), Materials.Ethanol.getCells(9)) - .itemOutputs(Materials.Glycerol.getCells(9)) - .fluidInputs(Materials.SeedOil.getFluid(54000)) - .fluidOutputs(Materials.BioDiesel.getFluid(54000)) - .duration(4 * MINUTES + 30 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.SodiumHydroxide.getDust(1), Materials.SeedOil.getCells(54)) - .itemOutputs(Materials.BioDiesel.getCells(54)) - .fluidInputs(Materials.Ethanol.getFluid(9000)) - .fluidOutputs(Materials.Glycerol.getFluid(9000)) - .duration(4 * MINUTES + 30 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.SodiumHydroxide.getDust(1), Materials.Ethanol.getCells(9)) - .itemOutputs(Materials.Glycerol.getCells(9)) - .fluidInputs(Materials.FishOil.getFluid(54000)) - .fluidOutputs(Materials.BioDiesel.getFluid(54000)) - .duration(4 * MINUTES + 30 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.SodiumHydroxide.getDust(1), Materials.FishOil.getCells(54)) - .itemOutputs(Materials.BioDiesel.getCells(54)) - .fluidInputs(Materials.Ethanol.getFluid(9000)) - .fluidOutputs(Materials.Glycerol.getFluid(9000)) - .duration(4 * MINUTES + 30 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.SodiumHydroxide.getDustTiny(1), Materials.Methanol.getCells(1)) + .itemOutputs(Materials.Glycerol.getCells(1)) + .fluidInputs(Materials.SeedOil.getFluid(6000)) + .fluidOutputs(Materials.BioDiesel.getFluid(6000)) + .duration(30 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.SodiumHydroxide.getDustTiny(1), Materials.SeedOil.getCells(6)) + .itemOutputs(Materials.BioDiesel.getCells(6)) + .fluidInputs(Materials.Methanol.getFluid(1000)) + .fluidOutputs(Materials.Glycerol.getFluid(1000)) + .duration(30 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.SodiumHydroxide.getDustTiny(1), Materials.Methanol.getCells(1)) + .itemOutputs(Materials.Glycerol.getCells(1)) + .fluidInputs(Materials.FishOil.getFluid(6000)) + .fluidOutputs(Materials.BioDiesel.getFluid(6000)) + .duration(30 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.SodiumHydroxide.getDustTiny(1), Materials.FishOil.getCells(6)) + .itemOutputs(Materials.BioDiesel.getCells(6)) + .fluidInputs(Materials.Methanol.getFluid(1000)) + .fluidOutputs(Materials.Glycerol.getFluid(1000)) + .duration(30 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.SodiumHydroxide.getDustTiny(1), Materials.Ethanol.getCells(1)) + .itemOutputs(Materials.Glycerol.getCells(1)) + .fluidInputs(Materials.SeedOil.getFluid(6000)) + .fluidOutputs(Materials.BioDiesel.getFluid(6000)) + .duration(30 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.SodiumHydroxide.getDustTiny(1), Materials.SeedOil.getCells(6)) + .itemOutputs(Materials.BioDiesel.getCells(6)) + .fluidInputs(Materials.Ethanol.getFluid(1000)) + .fluidOutputs(Materials.Glycerol.getFluid(1000)) + .duration(30 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.SodiumHydroxide.getDustTiny(1), Materials.Ethanol.getCells(1)) + .itemOutputs(Materials.Glycerol.getCells(1)) + .fluidInputs(Materials.FishOil.getFluid(6000)) + .fluidOutputs(Materials.BioDiesel.getFluid(6000)) + .duration(30 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.SodiumHydroxide.getDustTiny(1), Materials.FishOil.getCells(6)) + .itemOutputs(Materials.BioDiesel.getCells(6)) + .fluidInputs(Materials.Ethanol.getFluid(1000)) + .fluidOutputs(Materials.Glycerol.getFluid(1000)) + .duration(30 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.SodiumHydroxide.getDust(1), Materials.Methanol.getCells(9)) + .itemOutputs(Materials.Glycerol.getCells(9)) + .fluidInputs(Materials.SeedOil.getFluid(54000)) + .fluidOutputs(Materials.BioDiesel.getFluid(54000)) + .duration(4 * MINUTES + 30 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.SodiumHydroxide.getDust(1), Materials.SeedOil.getCells(54)) + .itemOutputs(Materials.BioDiesel.getCells(54)) + .fluidInputs(Materials.Methanol.getFluid(9000)) + .fluidOutputs(Materials.Glycerol.getFluid(9000)) + .duration(4 * MINUTES + 30 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.SodiumHydroxide.getDust(1), Materials.Methanol.getCells(9)) + .itemOutputs(Materials.Glycerol.getCells(9)) + .fluidInputs(Materials.FishOil.getFluid(54000)) + .fluidOutputs(Materials.BioDiesel.getFluid(54000)) + .duration(4 * MINUTES + 30 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.SodiumHydroxide.getDust(1), Materials.FishOil.getCells(54)) + .itemOutputs(Materials.BioDiesel.getCells(54)) + .fluidInputs(Materials.Methanol.getFluid(9000)) + .fluidOutputs(Materials.Glycerol.getFluid(9000)) + .duration(4 * MINUTES + 30 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.SodiumHydroxide.getDust(1), Materials.Ethanol.getCells(9)) + .itemOutputs(Materials.Glycerol.getCells(9)) + .fluidInputs(Materials.SeedOil.getFluid(54000)) + .fluidOutputs(Materials.BioDiesel.getFluid(54000)) + .duration(4 * MINUTES + 30 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.SodiumHydroxide.getDust(1), Materials.SeedOil.getCells(54)) + .itemOutputs(Materials.BioDiesel.getCells(54)) + .fluidInputs(Materials.Ethanol.getFluid(9000)) + .fluidOutputs(Materials.Glycerol.getFluid(9000)) + .duration(4 * MINUTES + 30 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.SodiumHydroxide.getDust(1), Materials.Ethanol.getCells(9)) + .itemOutputs(Materials.Glycerol.getCells(9)) + .fluidInputs(Materials.FishOil.getFluid(54000)) + .fluidOutputs(Materials.BioDiesel.getFluid(54000)) + .duration(4 * MINUTES + 30 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.SodiumHydroxide.getDust(1), Materials.FishOil.getCells(54)) + .itemOutputs(Materials.BioDiesel.getCells(54)) + .fluidInputs(Materials.Ethanol.getFluid(9000)) + .fluidOutputs(Materials.Glycerol.getFluid(9000)) + .duration(4 * MINUTES + 30 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); // C3H8O3 + 3HNO3 =H2SO4= C3H5N3O9 + 3H2O GT_Values.RA.stdBuilder() - .itemInputs(Materials.Glycerol.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Glyceryl.getCells(1)) - .fluidInputs(Materials.NitrationMixture.getFluid(6000)) - .fluidOutputs(Materials.DilutedSulfuricAcid.getFluid(3000)) - .duration(9 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Glycerol.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Glyceryl.getCells(1)) + .fluidInputs(Materials.NitrationMixture.getFluid(6000)) + .fluidOutputs(Materials.DilutedSulfuricAcid.getFluid(3000)) + .duration(9 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.NitrationMixture.getCells(6), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Glyceryl.getCells(1), Materials.Empty.getCells(5)) - .fluidInputs(Materials.Glycerol.getFluid(1000)) - .fluidOutputs(Materials.DilutedSulfuricAcid.getFluid(3000)) - .duration(9 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.NitrationMixture.getCells(6), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Glyceryl.getCells(1), Materials.Empty.getCells(5)) + .fluidInputs(Materials.Glycerol.getFluid(1000)) + .fluidOutputs(Materials.DilutedSulfuricAcid.getFluid(3000)) + .duration(9 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.NitrationMixture.getCells(6), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.DilutedSulfuricAcid.getCells(3), Materials.Empty.getCells(3)) - .fluidInputs(Materials.Glycerol.getFluid(1000)) - .fluidOutputs(Materials.Glyceryl.getFluid(1000)) - .duration(9 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.NitrationMixture.getCells(6), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.DilutedSulfuricAcid.getCells(3), Materials.Empty.getCells(3)) + .fluidInputs(Materials.Glycerol.getFluid(1000)) + .fluidOutputs(Materials.Glyceryl.getFluid(1000)) + .duration(9 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); // CaO + CO2 = CaCO3 GT_Values.RA.stdBuilder() - .itemInputs(Materials.Quicklime.getDust(2)) - .itemOutputs(Materials.Calcite.getDust(5)) - .fluidInputs(Materials.CarbonDioxide.getGas(1000)) - .noFluidOutputs() - .duration(4 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Quicklime.getDust(2)) + .itemOutputs(Materials.Calcite.getDust(5)) + .fluidInputs(Materials.CarbonDioxide.getGas(1000)) + .noFluidOutputs() + .duration(4 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Calcite.getDust(5), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Quicklime.getDust(2)) - .noFluidInputs() - .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) - .duration(12 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Calcite.getDust(5), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Quicklime.getDust(2)) + .noFluidInputs() + .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) + .duration(12 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); // MgO + CO2 = MgCO3 GT_Values.RA.stdBuilder() - .itemInputs(Materials.Magnesia.getDust(2)) - .itemOutputs(Materials.Magnesite.getDust(5)) - .fluidInputs(Materials.CarbonDioxide.getGas(1000)) - .noFluidOutputs() - .duration(4 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Magnesia.getDust(2)) + .itemOutputs(Materials.Magnesite.getDust(5)) + .fluidInputs(Materials.CarbonDioxide.getGas(1000)) + .noFluidOutputs() + .duration(4 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Magnesite.getDust(5), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Magnesia.getDust(2)) - .noFluidInputs() - .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) - .duration(12 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Magnesite.getDust(5), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Magnesia.getDust(2)) + .noFluidInputs() + .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) + .duration(12 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); // C6H6 + 2Cl = C6H5Cl + HCl GT_Values.RA.stdBuilder() - .itemInputs(Materials.Benzene.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Chlorobenzene.getCells(1)) - .fluidInputs(Materials.Chlorine.getGas(2000)) - .fluidOutputs(Materials.HydrochloricAcid.getFluid(1000)) - .duration(12 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Benzene.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Chlorobenzene.getCells(1)) + .fluidInputs(Materials.Chlorine.getGas(2000)) + .fluidOutputs(Materials.HydrochloricAcid.getFluid(1000)) + .duration(12 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Chlorine.getCells(2), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Chlorobenzene.getCells(1), Materials.Empty.getCells(1)) - .fluidInputs(Materials.Benzene.getFluid(1000)) - .fluidOutputs(Materials.HydrochloricAcid.getFluid(1000)) - .duration(12 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Chlorine.getCells(2), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Chlorobenzene.getCells(1), Materials.Empty.getCells(1)) + .fluidInputs(Materials.Benzene.getFluid(1000)) + .fluidOutputs(Materials.HydrochloricAcid.getFluid(1000)) + .duration(12 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Chlorine.getCells(2), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.HydrochloricAcid.getCells(1), Materials.Empty.getCells(1)) - .fluidInputs(Materials.Benzene.getFluid(1000)) - .fluidOutputs(Materials.Chlorobenzene.getFluid(1000)) - .duration(12 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Chlorine.getCells(2), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.HydrochloricAcid.getCells(1), Materials.Empty.getCells(1)) + .fluidInputs(Materials.Benzene.getFluid(1000)) + .fluidOutputs(Materials.Chlorobenzene.getFluid(1000)) + .duration(12 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); // C6H5Cl + H2O = C6H6O + HCl GT_Values.RA.stdBuilder() - .itemInputs(Materials.Water.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.DilutedHydrochloricAcid.getCells(1)) - .fluidInputs(Materials.Chlorobenzene.getFluid(1000)) - .fluidOutputs(Materials.Phenol.getFluid(1000)) - .duration(12 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Water.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.DilutedHydrochloricAcid.getCells(1)) + .fluidInputs(Materials.Chlorobenzene.getFluid(1000)) + .fluidOutputs(Materials.Phenol.getFluid(1000)) + .duration(12 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Chlorobenzene.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.DilutedHydrochloricAcid.getCells(1)) - .fluidInputs(Materials.Water.getFluid(1000)) - .fluidOutputs(Materials.Phenol.getFluid(1000)) - .duration(12 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Chlorobenzene.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.DilutedHydrochloricAcid.getCells(1)) + .fluidInputs(Materials.Water.getFluid(1000)) + .fluidOutputs(Materials.Phenol.getFluid(1000)) + .duration(12 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Water.getCells(1), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.Phenol.getCells(1)) - .fluidInputs(Materials.Chlorobenzene.getFluid(1000)) - .fluidOutputs(Materials.DilutedHydrochloricAcid.getFluid(1000)) - .duration(12 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Water.getCells(1), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.Phenol.getCells(1)) + .fluidInputs(Materials.Chlorobenzene.getFluid(1000)) + .fluidOutputs(Materials.DilutedHydrochloricAcid.getFluid(1000)) + .duration(12 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Chlorobenzene.getCells(1), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.Phenol.getCells(1)) - .fluidInputs(Materials.Water.getFluid(1000)) - .fluidOutputs(Materials.DilutedHydrochloricAcid.getFluid(1000)) - .duration(12 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.Chlorobenzene.getCells(1), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.Phenol.getCells(1)) + .fluidInputs(Materials.Water.getFluid(1000)) + .fluidOutputs(Materials.DilutedHydrochloricAcid.getFluid(1000)) + .duration(12 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); // C6H5Cl + NaOH = C6H6O + NaCl GT_Values.RA.stdBuilder() - .itemInputs(Materials.SodiumHydroxide.getDust(12), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Salt.getDust(8)) - .fluidInputs(Materials.Chlorobenzene.getFluid(4000)) - .fluidOutputs(Materials.Phenol.getFluid(4000)) - .duration(48 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(UniversalChemical); + .itemInputs(Materials.SodiumHydroxide.getDust(12), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Salt.getDust(8)) + .fluidInputs(Materials.Chlorobenzene.getFluid(4000)) + .fluidOutputs(Materials.Phenol.getFluid(4000)) + .duration(48 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(Materials.GasolineRaw.getCells(10), Materials.Toluene.getCells(1)) - .itemOutputs(Materials.GasolineRegular.getCells(11)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * TICKS) - .eut(TierEU.RECIPE_HV) - .addTo(UniversalChemical); + .itemInputs(Materials.GasolineRaw.getCells(10), Materials.Toluene.getCells(1)) + .itemOutputs(Materials.GasolineRegular.getCells(11)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * TICKS) + .eut(TierEU.RECIPE_HV) + .addTo(UniversalChemical); // Oxide Recipe GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(2), Materials.Antimony.getDust(2)) - .itemOutputs(Materials.AntimonyTrioxide.getDust(5)) - .fluidInputs(Materials.Oxygen.getGas(3000)) - .noFluidOutputs() - .duration(20 * TICKS) - .eut(30) - .addTo(UniversalChemical); + .itemInputs(GT_Utility.getIntegratedCircuit(2), Materials.Antimony.getDust(2)) + .itemOutputs(Materials.AntimonyTrioxide.getDust(5)) + .fluidInputs(Materials.Oxygen.getGas(3000)) + .noFluidOutputs() + .duration(20 * TICKS) + .eut(30) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(2), Materials.Lead.getDust(1)) - .itemOutputs(Materials.Massicot.getDust(2)) - .fluidInputs(Materials.Oxygen.getGas(1000)) - .noFluidOutputs() - .duration(20 * TICKS) - .eut(30) - .addTo(UniversalChemical); + .itemInputs(GT_Utility.getIntegratedCircuit(2), Materials.Lead.getDust(1)) + .itemOutputs(Materials.Massicot.getDust(2)) + .fluidInputs(Materials.Oxygen.getGas(1000)) + .noFluidOutputs() + .duration(20 * TICKS) + .eut(30) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(2), Materials.Arsenic.getDust(2)) - .itemOutputs(Materials.ArsenicTrioxide.getDust(5)) - .fluidInputs(Materials.Oxygen.getGas(3000)) - .noFluidOutputs() - .duration(20 * TICKS) - .eut(30) - .addTo(UniversalChemical); + .itemInputs(GT_Utility.getIntegratedCircuit(2), Materials.Arsenic.getDust(2)) + .itemOutputs(Materials.ArsenicTrioxide.getDust(5)) + .fluidInputs(Materials.Oxygen.getGas(3000)) + .noFluidOutputs() + .duration(20 * TICKS) + .eut(30) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(2), Materials.Cobalt.getDust(1)) - .itemOutputs(Materials.CobaltOxide.getDust(2)) - .fluidInputs(Materials.Oxygen.getGas(1000)) - .noFluidOutputs() - .duration(20 * TICKS) - .eut(30) - .addTo(UniversalChemical); + .itemInputs(GT_Utility.getIntegratedCircuit(2), Materials.Cobalt.getDust(1)) + .itemOutputs(Materials.CobaltOxide.getDust(2)) + .fluidInputs(Materials.Oxygen.getGas(1000)) + .noFluidOutputs() + .duration(20 * TICKS) + .eut(30) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(2), Materials.Zinc.getDust(1)) - .itemOutputs(Materials.Zincite.getDust(2)) - .fluidInputs(Materials.Oxygen.getGas(1000)) - .noFluidOutputs() - .duration(20 * TICKS) - .eut(30) - .addTo(UniversalChemical); + .itemInputs(GT_Utility.getIntegratedCircuit(2), Materials.Zinc.getDust(1)) + .itemOutputs(Materials.Zincite.getDust(2)) + .fluidInputs(Materials.Oxygen.getGas(1000)) + .noFluidOutputs() + .duration(20 * TICKS) + .eut(30) + .addTo(UniversalChemical); if (BartWorks.isModLoaded()) { // CaSi2 + 2HCl = 2Si + CaCl2 + 2H GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.CalciumDisilicide, 3), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silicon, 2), - getModItem(BartWorks.ID, "gt.bwMetaGenerateddust", 3L, 63)) - .fluidInputs(Materials.HydrochloricAcid.getFluid(2000)) - .fluidOutputs(Materials.Hydrogen.getGas(2000)) - .duration(45 * SECONDS) - .eut(30) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.CalciumDisilicide, 3), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silicon, 2), + getModItem(BartWorks.ID, "gt.bwMetaGenerateddust", 3L, 63)) + .fluidInputs(Materials.HydrochloricAcid.getFluid(2000)) + .fluidOutputs(Materials.Hydrogen.getGas(2000)) + .duration(45 * SECONDS) + .eut(30) + .addTo(UniversalChemical); // SiCl4 + 2Zn = 2ZnCl2 + Si GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Zinc, 2), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconSG, 1), - getModItem(BartWorks.ID, "gt.bwMetaGenerateddust", 6L, 10052)) - .fluidInputs(Materials.SiliconTetrachloride.getFluid(1000)) - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(30) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Zinc, 2), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconSG, 1), + getModItem(BartWorks.ID, "gt.bwMetaGenerateddust", 6L, 10052)) + .fluidInputs(Materials.SiliconTetrachloride.getFluid(1000)) + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(30) + .addTo(UniversalChemical); } if (GTNHLanthanides.isModLoaded() && GTPlusPlus.isModLoaded()) { @@ -3933,2406 +3919,2355 @@ public class ChemicalRecipes implements Runnable { // C4H8O + 2H =Pd= C4H10O GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cell, MaterialsKevlar.Butyraldehyde, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Palladium, 1)) - .itemOutputs(ItemList.Cell_Empty.get(1)) - .fluidInputs(Materials.Hydrogen.getGas(2000)) - .fluidOutputs(new FluidStack(FluidRegistry.getFluid("butanol"), 1000)) - .duration(10 * SECONDS) - .eut(30) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cell, MaterialsKevlar.Butyraldehyde, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Palladium, 1)) + .itemOutputs(ItemList.Cell_Empty.get(1)) + .fluidInputs(Materials.Hydrogen.getGas(2000)) + .fluidOutputs(new FluidStack(FluidRegistry.getFluid("butanol"), 1000)) + .duration(10 * SECONDS) + .eut(30) + .addTo(UniversalChemical); // 4CH2O + C2H4O =NaOH= C5H12O4 + CO GT_Values.RA.stdBuilder() - .itemInputs( - getModItem(GTPlusPlus.ID, "Formaldehyde", 4), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SodiumHydroxide, 1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.Pentaerythritol, 21), - Materials.Empty.getCells(4)) - .fluidInputs(MaterialsKevlar.Acetaldehyde.getGas(1000)) - .fluidOutputs(Materials.CarbonMonoxide.getGas(1000)) - .duration(30 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(UniversalChemical); + .itemInputs( + getModItem(GTPlusPlus.ID, "Formaldehyde", 4), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SodiumHydroxide, 1)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.Pentaerythritol, 21), + Materials.Empty.getCells(4)) + .fluidInputs(MaterialsKevlar.Acetaldehyde.getGas(1000)) + .fluidOutputs(Materials.CarbonMonoxide.getGas(1000)) + .duration(30 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(UniversalChemical); // 4CH2O + C2H4O =NaOH= C5H12O4 + CO GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cell, MaterialsKevlar.Acetaldehyde, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SodiumHydroxide, 1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.Pentaerythritol, 21), - Materials.Empty.getCells(1)) - .fluidInputs(new FluidStack(FluidRegistry.getFluid("formaldehyde"), 4000)) - .fluidOutputs(Materials.CarbonMonoxide.getGas(1000)) - .duration(30 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cell, MaterialsKevlar.Acetaldehyde, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SodiumHydroxide, 1)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.Pentaerythritol, 21), + Materials.Empty.getCells(1)) + .fluidInputs(new FluidStack(FluidRegistry.getFluid("formaldehyde"), 4000)) + .fluidOutputs(Materials.CarbonMonoxide.getGas(1000)) + .duration(30 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(UniversalChemical); // CaC2 + 2H2O = Ca(OH)2 + C2H2 GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.CalciumCarbide, 3), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(getModItem(GTPlusPlus.ID, "itemDustCalciumHydroxide", 5)) - .fluidInputs(Materials.Water.getFluid(2000)) - .fluidOutputs(MaterialsKevlar.Acetylene.getGas(1000)) - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(UniversalChemical); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.CalciumCarbide, 3), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(getModItem(GTPlusPlus.ID, "itemDustCalciumHydroxide", 5)) + .fluidInputs(Materials.Water.getFluid(2000)) + .fluidOutputs(MaterialsKevlar.Acetylene.getGas(1000)) + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(UniversalChemical); // Co(NO3)2 + 2NaOH = Co(OH)2 + 2NaNO3 GT_Values.RA.stdBuilder() - .itemInputs( - MaterialsKevlar.CobaltIINitrate.getDust(9), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SodiumHydroxide, 6)) - .itemOutputs( - MaterialsKevlar.CobaltIIHydroxide.getDust(5), - getModItem(GTPlusPlus.ID, "itemDustSodiumNitrate", 10)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(UniversalChemical); + .itemInputs( + MaterialsKevlar.CobaltIINitrate.getDust(9), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SodiumHydroxide, 6)) + .itemOutputs( + MaterialsKevlar.CobaltIIHydroxide.getDust(5), + getModItem(GTPlusPlus.ID, "itemDustSodiumNitrate", 10)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(UniversalChemical); } } public void addDefaultPolymerizationRecipes(Fluid aBasicMaterial, ItemStack aBasicMaterialCell, Fluid aPolymer) { // Oxygen/Titaniumtetrafluoride -> +50% Output each GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Cell_Air.get(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Empty.getCells(1)) - .fluidInputs(new GT_FluidStack(aBasicMaterial, 144)) - .fluidOutputs(new GT_FluidStack(aPolymer, 144)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Oxygen.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Empty.getCells(1)) - .fluidInputs(new GT_FluidStack(aBasicMaterial, 144)) - .fluidOutputs(new GT_FluidStack(aPolymer, 216)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(aBasicMaterialCell, GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Empty.getCells(1)) - .fluidInputs(Materials.Air.getGas(14000)) - .fluidOutputs(new GT_FluidStack(aPolymer, 1000)) - .duration(56 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(aBasicMaterialCell, GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Empty.getCells(1)) - .fluidInputs(Materials.Oxygen.getGas(7000)) - .fluidOutputs(new GT_FluidStack(aPolymer, 1500)) - .duration(56 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(2)) - .noItemOutputs() - .fluidInputs( - new GT_FluidStack(aBasicMaterial, 2160), - Materials.Air.getGas(7500), - Materials.Titaniumtetrachloride.getFluid(100)) - .fluidOutputs(new GT_FluidStack(aPolymer, 3240)) - .duration(40 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(2)) - .noItemOutputs() - .fluidInputs( - new GT_FluidStack(aBasicMaterial, 2160), - Materials.Oxygen.getGas(7500), - Materials.Titaniumtetrachloride.getFluid(100)) - .fluidOutputs(new GT_FluidStack(aPolymer, 4320)) - .duration(40 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sMultiblockChemicalRecipes); + .itemInputs(ItemList.Cell_Air.get(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Empty.getCells(1)) + .fluidInputs(new GT_FluidStack(aBasicMaterial, 144)) + .fluidOutputs(new GT_FluidStack(aPolymer, 144)) + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Oxygen.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Empty.getCells(1)) + .fluidInputs(new GT_FluidStack(aBasicMaterial, 144)) + .fluidOutputs(new GT_FluidStack(aPolymer, 216)) + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(aBasicMaterialCell, GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Empty.getCells(1)) + .fluidInputs(Materials.Air.getGas(14000)) + .fluidOutputs(new GT_FluidStack(aPolymer, 1000)) + .duration(56 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(aBasicMaterialCell, GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Empty.getCells(1)) + .fluidInputs(Materials.Oxygen.getGas(7000)) + .fluidOutputs(new GT_FluidStack(aPolymer, 1500)) + .duration(56 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(2)) + .noItemOutputs() + .fluidInputs( + new GT_FluidStack(aBasicMaterial, 2160), + Materials.Air.getGas(7500), + Materials.Titaniumtetrachloride.getFluid(100)) + .fluidOutputs(new GT_FluidStack(aPolymer, 3240)) + .duration(40 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(2)) + .noItemOutputs() + .fluidInputs( + new GT_FluidStack(aBasicMaterial, 2160), + Materials.Oxygen.getGas(7500), + Materials.Titaniumtetrachloride.getFluid(100)) + .fluidOutputs(new GT_FluidStack(aPolymer, 4320)) + .duration(40 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sMultiblockChemicalRecipes); } public void polymerizationRecipes() { addDefaultPolymerizationRecipes( - Materials.VinylAcetate.mFluid, - Materials.VinylAcetate.getCells(1), - Materials.PolyvinylAcetate.mFluid); + Materials.VinylAcetate.mFluid, + Materials.VinylAcetate.getCells(1), + Materials.PolyvinylAcetate.mFluid); addDefaultPolymerizationRecipes( - Materials.Ethylene.mGas, - Materials.Ethylene.getCells(1), - Materials.Plastic.mStandardMoltenFluid); + Materials.Ethylene.mGas, + Materials.Ethylene.getCells(1), + Materials.Plastic.mStandardMoltenFluid); addDefaultPolymerizationRecipes( - Materials.Tetrafluoroethylene.mGas, - Materials.Tetrafluoroethylene.getCells(1), - Materials.Polytetrafluoroethylene.mStandardMoltenFluid); + Materials.Tetrafluoroethylene.mGas, + Materials.Tetrafluoroethylene.getCells(1), + Materials.Polytetrafluoroethylene.mStandardMoltenFluid); addDefaultPolymerizationRecipes( - Materials.VinylChloride.mGas, - Materials.VinylChloride.getCells(1), - Materials.PolyvinylChloride.mStandardMoltenFluid); + Materials.VinylChloride.mGas, + Materials.VinylChloride.getCells(1), + Materials.PolyvinylChloride.mStandardMoltenFluid); addDefaultPolymerizationRecipes( - Materials.Styrene.mFluid, - Materials.Styrene.getCells(1), - Materials.Polystyrene.mStandardMoltenFluid); + Materials.Styrene.mFluid, + Materials.Styrene.getCells(1), + Materials.Polystyrene.mStandardMoltenFluid); } public void singleBlockOnly() { GT_Values.RA.stdBuilder() - .itemInputs(Materials.Methane.getCells(1), Materials.Empty.getCells(2)) - .itemOutputs(Materials.HydrochloricAcid.getCells(3)) - .fluidInputs(Materials.Chlorine.getGas(6000)) - .fluidOutputs(Materials.Chloroform.getFluid(1000)) - .duration(4 * SECONDS) - .eut(30) - .addTo(sChemicalRecipes); + .itemInputs(Materials.Methane.getCells(1), Materials.Empty.getCells(2)) + .itemOutputs(Materials.HydrochloricAcid.getCells(3)) + .fluidInputs(Materials.Chlorine.getGas(6000)) + .fluidOutputs(Materials.Chloroform.getFluid(1000)) + .duration(4 * SECONDS) + .eut(30) + .addTo(sChemicalRecipes); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Silicon.getDust(1), Materials.Chloromethane.getCells(2)) - .itemOutputs(Materials.Empty.getCells(2)) - .noFluidInputs() - .fluidOutputs(Materials.Dimethyldichlorosilane.getFluid(1000)) - .duration(12 * SECONDS) - .eut(96) - .addTo(sChemicalRecipes); + .itemInputs(Materials.Silicon.getDust(1), Materials.Chloromethane.getCells(2)) + .itemOutputs(Materials.Empty.getCells(2)) + .noFluidInputs() + .fluidOutputs(Materials.Dimethyldichlorosilane.getFluid(1000)) + .duration(12 * SECONDS) + .eut(96) + .addTo(sChemicalRecipes); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Dimethyldichlorosilane.getCells(1), Materials.Water.getCells(1)) - .itemOutputs(Materials.Polydimethylsiloxane.getDust(3), Materials.Empty.getCells(2)) - .noFluidInputs() - .fluidOutputs(Materials.DilutedHydrochloricAcid.getFluid(1000)) - .duration(12 * SECONDS) - .eut(96) - .addTo(sChemicalRecipes); + .itemInputs(Materials.Dimethyldichlorosilane.getCells(1), Materials.Water.getCells(1)) + .itemOutputs(Materials.Polydimethylsiloxane.getDust(3), Materials.Empty.getCells(2)) + .noFluidInputs() + .fluidOutputs(Materials.DilutedHydrochloricAcid.getFluid(1000)) + .duration(12 * SECONDS) + .eut(96) + .addTo(sChemicalRecipes); // Ca5(PO4)3Cl + 5H2SO4 + 10H2O = 5CaSO4(H2O)2 + HCl + 3H3PO4 GT_Values.RA.stdBuilder() - .itemInputs(Materials.Apatite.getDust(9), Materials.SulfuricAcid.getCells(5)) - .itemOutputs(Materials.HydrochloricAcid.getCells(1), Materials.Empty.getCells(4)) - .fluidInputs(Materials.Water.getFluid(10000)) - .fluidOutputs(Materials.PhosphoricAcid.getFluid(3000)) - .duration(16 * SECONDS) - .eut(30) - .addTo(sChemicalRecipes); + .itemInputs(Materials.Apatite.getDust(9), Materials.SulfuricAcid.getCells(5)) + .itemOutputs(Materials.HydrochloricAcid.getCells(1), Materials.Empty.getCells(4)) + .fluidInputs(Materials.Water.getFluid(10000)) + .fluidOutputs(Materials.PhosphoricAcid.getFluid(3000)) + .duration(16 * SECONDS) + .eut(30) + .addTo(sChemicalRecipes); // 10O + 4P = P4O10 GT_Values.RA.stdBuilder() - .itemInputs(Materials.Phosphorus.getDust(4)) - .itemOutputs(Materials.PhosphorousPentoxide.getDust(14)) - .fluidInputs(Materials.Oxygen.getGas(10000)) - .noFluidOutputs() - .duration(2 * SECONDS) - .eut(30) - .addTo(sChemicalRecipes); + .itemInputs(Materials.Phosphorus.getDust(4)) + .itemOutputs(Materials.PhosphorousPentoxide.getDust(14)) + .fluidInputs(Materials.Oxygen.getGas(10000)) + .noFluidOutputs() + .duration(2 * SECONDS) + .eut(30) + .addTo(sChemicalRecipes); // HCl + C3H8O3 = C3H5ClO + 2H2O GT_Values.RA.stdBuilder() - .itemInputs(Materials.HydrochloricAcid.getCells(1), Materials.Glycerol.getCells(1)) - .itemOutputs(Materials.Water.getCells(2)) - .noFluidInputs() - .fluidOutputs(Materials.Epichlorohydrin.getFluid(1000)) - .duration(24 * SECONDS) - .eut(30) - .addTo(sChemicalRecipes); + .itemInputs(Materials.HydrochloricAcid.getCells(1), Materials.Glycerol.getCells(1)) + .itemOutputs(Materials.Water.getCells(2)) + .noFluidInputs() + .fluidOutputs(Materials.Epichlorohydrin.getFluid(1000)) + .duration(24 * SECONDS) + .eut(30) + .addTo(sChemicalRecipes); // H2O + Cl =Hg= HClO + H GT_Values.RA.stdBuilder() - .itemInputs(Materials.Chlorine.getCells(10), Materials.Mercury.getCells(1)) - .itemOutputs(Materials.Hydrogen.getCells(10), Materials.Empty.getCells(1)) - .fluidInputs(Materials.Water.getFluid(10000)) - .fluidOutputs(Materials.HypochlorousAcid.getFluid(10000)) - .duration(30 * SECONDS) - .eut(8) - .addTo(sChemicalRecipes); + .itemInputs(Materials.Chlorine.getCells(10), Materials.Mercury.getCells(1)) + .itemOutputs(Materials.Hydrogen.getCells(10), Materials.Empty.getCells(1)) + .fluidInputs(Materials.Water.getFluid(10000)) + .fluidOutputs(Materials.HypochlorousAcid.getFluid(10000)) + .duration(30 * SECONDS) + .eut(8) + .addTo(sChemicalRecipes); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Water.getCells(10), Materials.Mercury.getCells(1)) - .itemOutputs(Materials.Hydrogen.getCells(10), Materials.Empty.getCells(1)) - .fluidInputs(Materials.Chlorine.getGas(10000)) - .fluidOutputs(Materials.HypochlorousAcid.getFluid(10000)) - .duration(30 * SECONDS) - .eut(8) - .addTo(sChemicalRecipes); + .itemInputs(Materials.Water.getCells(10), Materials.Mercury.getCells(1)) + .itemOutputs(Materials.Hydrogen.getCells(10), Materials.Empty.getCells(1)) + .fluidInputs(Materials.Chlorine.getGas(10000)) + .fluidOutputs(Materials.HypochlorousAcid.getFluid(10000)) + .duration(30 * SECONDS) + .eut(8) + .addTo(sChemicalRecipes); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Chlorine.getCells(1), Materials.Water.getCells(1)) - .itemOutputs(Materials.Hydrogen.getCells(1), Materials.Empty.getCells(1)) - .fluidInputs(Materials.Mercury.getFluid(100)) - .fluidOutputs(Materials.HypochlorousAcid.getFluid(1000)) - .duration(3 * SECONDS) - .eut(8) - .addTo(sChemicalRecipes); + .itemInputs(Materials.Chlorine.getCells(1), Materials.Water.getCells(1)) + .itemOutputs(Materials.Hydrogen.getCells(1), Materials.Empty.getCells(1)) + .fluidInputs(Materials.Mercury.getFluid(100)) + .fluidOutputs(Materials.HypochlorousAcid.getFluid(1000)) + .duration(3 * SECONDS) + .eut(8) + .addTo(sChemicalRecipes); // P + 3Cl = PCl3 GT_Values.RA.stdBuilder() - .itemInputs(Materials.Phosphorus.getDust(1), Materials.Chlorine.getCells(3)) - .itemOutputs(ItemList.Cell_Empty.get(3)) - .noFluidInputs() - .fluidOutputs(MaterialsKevlar.PhosphorusTrichloride.getFluid(1000)) - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cell, MaterialsKevlar.EthyleneOxide, 1), - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Water, 5)) - .itemOutputs(ItemList.Cell_Empty.get(6)) - .fluidInputs(Materials.Dimethyldichlorosilane.getFluid(4000)) - .fluidOutputs(MaterialsKevlar.SiliconOil.getFluid(5000)) - .duration(30 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cell, MaterialsKevlar.EthyleneOxide, 1), - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Dimethyldichlorosilane, 4)) - .itemOutputs(ItemList.Cell_Empty.get(5)) - .fluidInputs(Materials.Water.getFluid(5000)) - .fluidOutputs(MaterialsKevlar.SiliconOil.getFluid(5000)) - .duration(30 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Water, 1), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(ItemList.Cell_Empty.get(1)) - .fluidInputs(MaterialsKevlar.EthyleneOxide.getGas(1000)) - .fluidOutputs(MaterialsKevlar.Ethyleneglycol.getFluid(1000)) - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - MaterialsKevlar.CobaltIIHydroxide.getDust(5), - MaterialsKevlar.NaphthenicAcid.getCells(1)) - .itemOutputs(MaterialsKevlar.CobaltIINaphthenate.getDust(41), ItemList.Cell_Empty.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(MaterialsKevlar.CobaltIIAcetate.getDust(15), MaterialsKevlar.NaphthenicAcid.getCells(1)) - .itemOutputs(MaterialsKevlar.CobaltIINaphthenate.getDust(41), ItemList.Cell_Empty.get(1)) - .noFluidInputs() - .fluidOutputs(Materials.AceticAcid.getFluid(1500)) - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silicon, 1), - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Chlorine, 4)) - .itemOutputs(ItemList.Cell_Empty.get(4)) - .noFluidInputs() - .fluidOutputs(Materials.SiliconTetrachloride.getFluid(1000)) - .duration(20 * SECONDS) - .eut(30) - .addTo(sChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.crushedPurified, Materials.Galena, 3), - GT_OreDictUnificator.get(OrePrefixes.crushedPurified, Materials.Sphalerite, 1)) - .noItemOutputs() - .fluidInputs(Materials.SulfuricAcid.getFluid(4000)) - .fluidOutputs(new FluidStack(ItemList.sIndiumConcentrate, 8000)) - .duration(3 * SECONDS) - .eut(150) - .addTo(sChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Carbon.getDust(1), Materials.Empty.getCells(1)) - .itemOutputs(Materials.Methane.getCells(1)) - .fluidInputs(Materials.Hydrogen.getGas(4000)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(30) - .addTo(sChemicalRecipes); + .itemInputs(Materials.Phosphorus.getDust(1), Materials.Chlorine.getCells(3)) + .itemOutputs(ItemList.Cell_Empty.get(3)) + .noFluidInputs() + .fluidOutputs(MaterialsKevlar.PhosphorusTrichloride.getFluid(1000)) + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cell, MaterialsKevlar.EthyleneOxide, 1), + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Water, 5)) + .itemOutputs(ItemList.Cell_Empty.get(6)) + .fluidInputs(Materials.Dimethyldichlorosilane.getFluid(4000)) + .fluidOutputs(MaterialsKevlar.SiliconOil.getFluid(5000)) + .duration(30 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cell, MaterialsKevlar.EthyleneOxide, 1), + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Dimethyldichlorosilane, 4)) + .itemOutputs(ItemList.Cell_Empty.get(5)) + .fluidInputs(Materials.Water.getFluid(5000)) + .fluidOutputs(MaterialsKevlar.SiliconOil.getFluid(5000)) + .duration(30 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Water, 1), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(ItemList.Cell_Empty.get(1)) + .fluidInputs(MaterialsKevlar.EthyleneOxide.getGas(1000)) + .fluidOutputs(MaterialsKevlar.Ethyleneglycol.getFluid(1000)) + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(MaterialsKevlar.CobaltIIHydroxide.getDust(5), MaterialsKevlar.NaphthenicAcid.getCells(1)) + .itemOutputs(MaterialsKevlar.CobaltIINaphthenate.getDust(41), ItemList.Cell_Empty.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(MaterialsKevlar.CobaltIIAcetate.getDust(15), MaterialsKevlar.NaphthenicAcid.getCells(1)) + .itemOutputs(MaterialsKevlar.CobaltIINaphthenate.getDust(41), ItemList.Cell_Empty.get(1)) + .noFluidInputs() + .fluidOutputs(Materials.AceticAcid.getFluid(1500)) + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silicon, 1), + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Chlorine, 4)) + .itemOutputs(ItemList.Cell_Empty.get(4)) + .noFluidInputs() + .fluidOutputs(Materials.SiliconTetrachloride.getFluid(1000)) + .duration(20 * SECONDS) + .eut(30) + .addTo(sChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.crushedPurified, Materials.Galena, 3), + GT_OreDictUnificator.get(OrePrefixes.crushedPurified, Materials.Sphalerite, 1)) + .noItemOutputs() + .fluidInputs(Materials.SulfuricAcid.getFluid(4000)) + .fluidOutputs(new FluidStack(ItemList.sIndiumConcentrate, 8000)) + .duration(3 * SECONDS) + .eut(150) + .addTo(sChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Carbon.getDust(1), Materials.Empty.getCells(1)) + .itemOutputs(Materials.Methane.getCells(1)) + .fluidInputs(Materials.Hydrogen.getGas(4000)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(30) + .addTo(sChemicalRecipes); // O + 2H = H2O GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Oxygen, 1), - GT_Utility.getIntegratedCircuit(22)) - .itemOutputs(ItemList.Cell_Empty.get(1)) - .fluidInputs(Materials.Hydrogen.getGas(2000)) - .fluidOutputs(GT_ModHandler.getDistilledWater(1000)) - .duration(10 * TICKS) - .eut(30) - .addTo(sChemicalRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Oxygen, 1), + GT_Utility.getIntegratedCircuit(22)) + .itemOutputs(ItemList.Cell_Empty.get(1)) + .fluidInputs(Materials.Hydrogen.getGas(2000)) + .fluidOutputs(GT_ModHandler.getDistilledWater(1000)) + .duration(10 * TICKS) + .eut(30) + .addTo(sChemicalRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Hydrogen, 1), - GT_Utility.getIntegratedCircuit(22)) - .itemOutputs(ItemList.Cell_Empty.get(1)) - .fluidInputs(Materials.Oxygen.getGas(500)) - .fluidOutputs(GT_ModHandler.getDistilledWater(500)) - .duration(5 * TICKS) - .eut(30) - .addTo(sChemicalRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Hydrogen, 1), + GT_Utility.getIntegratedCircuit(22)) + .itemOutputs(ItemList.Cell_Empty.get(1)) + .fluidInputs(Materials.Oxygen.getGas(500)) + .fluidOutputs(GT_ModHandler.getDistilledWater(500)) + .duration(5 * TICKS) + .eut(30) + .addTo(sChemicalRecipes); // Si + 4Cl = SiCl4 GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silicon, 1), - ItemList.Cell_Empty.get(2)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Hydrogen, 2)) - .fluidInputs(Materials.HydrochloricAcid.getFluid(3000)) - .fluidOutputs(Materials.Trichlorosilane.getFluid(1000)) - .duration(15 * SECONDS) - .eut(30) - .addTo(sChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Silane, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconSG, 1), - ItemList.Cell_Empty.get(1)) - .noFluidInputs() - .fluidOutputs(Materials.Hydrogen.getGas(4000)) - .duration(15 * SECONDS) - .eut(30) - .addTo(sChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Silane, 1), - ItemList.Cell_Empty.get(3)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconSG, 1), - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Hydrogen, 4)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(30) - .addTo(sChemicalRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silicon, 1), ItemList.Cell_Empty.get(2)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Hydrogen, 2)) + .fluidInputs(Materials.HydrochloricAcid.getFluid(3000)) + .fluidOutputs(Materials.Trichlorosilane.getFluid(1000)) + .duration(15 * SECONDS) + .eut(30) + .addTo(sChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Silane, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconSG, 1), ItemList.Cell_Empty.get(1)) + .noFluidInputs() + .fluidOutputs(Materials.Hydrogen.getGas(4000)) + .duration(15 * SECONDS) + .eut(30) + .addTo(sChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Silane, 1), ItemList.Cell_Empty.get(3)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconSG, 1), + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Hydrogen, 4)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(30) + .addTo(sChemicalRecipes); // S + 2Cl = SCl2 GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 8), - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Chlorine, 16)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.cell, MaterialsKevlar.SulfurDichloride, 8), - ItemList.Cell_Empty.get(8)) - .noFluidInputs() - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(30) - .addTo(sChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 8), - ItemList.Cell_Empty.get(8)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, MaterialsKevlar.SulfurDichloride, 8)) - .fluidInputs(Materials.Chlorine.getGas(16000)) - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(30) - .addTo(sChemicalRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 8), + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Chlorine, 16)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.cell, MaterialsKevlar.SulfurDichloride, 8), + ItemList.Cell_Empty.get(8)) + .noFluidInputs() + .noFluidOutputs() + .duration(40 * SECONDS) + .eut(30) + .addTo(sChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 8), ItemList.Cell_Empty.get(8)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, MaterialsKevlar.SulfurDichloride, 8)) + .fluidInputs(Materials.Chlorine.getGas(16000)) + .noFluidOutputs() + .duration(40 * SECONDS) + .eut(30) + .addTo(sChemicalRecipes); // C6H6 + C3H6 = C9H12 GT_Values.RA.stdBuilder() - .itemInputs(Materials.Propene.getCells(8), Materials.PhosphoricAcid.getCells(1)) - .itemOutputs(Materials.Empty.getCells(9)) - .fluidInputs(Materials.Benzene.getFluid(8000)) - .fluidOutputs(Materials.Cumene.getFluid(8000)) - .duration(1 * MINUTES + 36 * SECONDS) - .eut(30) - .addTo(sChemicalRecipes); + .itemInputs(Materials.Propene.getCells(8), Materials.PhosphoricAcid.getCells(1)) + .itemOutputs(Materials.Empty.getCells(9)) + .fluidInputs(Materials.Benzene.getFluid(8000)) + .fluidOutputs(Materials.Cumene.getFluid(8000)) + .duration(1 * MINUTES + 36 * SECONDS) + .eut(30) + .addTo(sChemicalRecipes); GT_Values.RA.stdBuilder() - .itemInputs(Materials.PhosphoricAcid.getCells(1), Materials.Benzene.getCells(8)) - .itemOutputs(Materials.Empty.getCells(9)) - .fluidInputs(Materials.Propene.getGas(8000)) - .fluidOutputs(Materials.Cumene.getFluid(8000)) - .duration(1 * MINUTES + 36 * SECONDS) - .eut(30) - .addTo(sChemicalRecipes); + .itemInputs(Materials.PhosphoricAcid.getCells(1), Materials.Benzene.getCells(8)) + .itemOutputs(Materials.Empty.getCells(9)) + .fluidInputs(Materials.Propene.getGas(8000)) + .fluidOutputs(Materials.Cumene.getFluid(8000)) + .duration(1 * MINUTES + 36 * SECONDS) + .eut(30) + .addTo(sChemicalRecipes); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Benzene.getCells(1), Materials.Propene.getCells(1)) - .itemOutputs(Materials.Empty.getCells(2)) - .fluidInputs(Materials.PhosphoricAcid.getFluid(125)) - .fluidOutputs(Materials.Cumene.getFluid(1000)) - .duration(12 * SECONDS) - .eut(30) - .addTo(sChemicalRecipes); + .itemInputs(Materials.Benzene.getCells(1), Materials.Propene.getCells(1)) + .itemOutputs(Materials.Empty.getCells(2)) + .fluidInputs(Materials.PhosphoricAcid.getFluid(125)) + .fluidOutputs(Materials.Cumene.getFluid(1000)) + .duration(12 * SECONDS) + .eut(30) + .addTo(sChemicalRecipes); // C3H6O + 2C6H6O =HCl= C15H16O2 + H2O GT_Values.RA.stdBuilder() - .itemInputs(Materials.Acetone.getCells(1), Materials.Phenol.getCells(2)) - .itemOutputs(Materials.Water.getCells(1), Materials.Empty.getCells(2)) - .fluidInputs(Materials.HydrochloricAcid.getFluid(1000)) - .fluidOutputs(Materials.BisphenolA.getFluid(1000)) - .duration(8 * SECONDS) - .eut(30) - .addTo(sChemicalRecipes); + .itemInputs(Materials.Acetone.getCells(1), Materials.Phenol.getCells(2)) + .itemOutputs(Materials.Water.getCells(1), Materials.Empty.getCells(2)) + .fluidInputs(Materials.HydrochloricAcid.getFluid(1000)) + .fluidOutputs(Materials.BisphenolA.getFluid(1000)) + .duration(8 * SECONDS) + .eut(30) + .addTo(sChemicalRecipes); GT_Values.RA.stdBuilder() - .itemInputs(Materials.HydrochloricAcid.getCells(1), Materials.Acetone.getCells(1)) - .itemOutputs(Materials.Water.getCells(1), Materials.Empty.getCells(1)) - .fluidInputs(Materials.Phenol.getFluid(2000)) - .fluidOutputs(Materials.BisphenolA.getFluid(1000)) - .duration(8 * SECONDS) - .eut(30) - .addTo(sChemicalRecipes); + .itemInputs(Materials.HydrochloricAcid.getCells(1), Materials.Acetone.getCells(1)) + .itemOutputs(Materials.Water.getCells(1), Materials.Empty.getCells(1)) + .fluidInputs(Materials.Phenol.getFluid(2000)) + .fluidOutputs(Materials.BisphenolA.getFluid(1000)) + .duration(8 * SECONDS) + .eut(30) + .addTo(sChemicalRecipes); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Phenol.getCells(2), Materials.HydrochloricAcid.getCells(1)) - .itemOutputs(Materials.Water.getCells(1), Materials.Empty.getCells(2)) - .fluidInputs(Materials.Acetone.getFluid(1000)) - .fluidOutputs(Materials.BisphenolA.getFluid(1000)) - .duration(8 * SECONDS) - .eut(30) - .addTo(sChemicalRecipes); + .itemInputs(Materials.Phenol.getCells(2), Materials.HydrochloricAcid.getCells(1)) + .itemOutputs(Materials.Water.getCells(1), Materials.Empty.getCells(2)) + .fluidInputs(Materials.Acetone.getFluid(1000)) + .fluidOutputs(Materials.BisphenolA.getFluid(1000)) + .duration(8 * SECONDS) + .eut(30) + .addTo(sChemicalRecipes); // N + 3H = NH3 GT_Values.RA.stdBuilder() - .itemInputs(Materials.Nitrogen.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Empty.getCells(1)) - .fluidInputs(Materials.Hydrogen.getGas(3000)) - .fluidOutputs(Materials.Ammonia.getGas(1000)) - .duration(16 * SECONDS) - .eut(384) - .addTo(sChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Hydrogen.getCells(3), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Empty.getCells(3)) - .fluidInputs(Materials.Nitrogen.getGas(1000)) - .fluidOutputs(Materials.Ammonia.getGas(1000)) - .duration(16 * SECONDS) - .eut(384) - .addTo(sChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Nitrogen.getCells(1), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.Ammonia.getCells(1)) - .fluidInputs(Materials.Hydrogen.getGas(3000)) - .noFluidOutputs() - .duration(16 * SECONDS) - .eut(384) - .addTo(sChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Hydrogen.getCells(3), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.Ammonia.getCells(1), Materials.Empty.getCells(2)) - .fluidInputs(Materials.Nitrogen.getGas(1000)) - .noFluidOutputs() - .duration(16 * SECONDS) - .eut(384) - .addTo(sChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Ammonia.getCells(1), Materials.Empty.getCells(1)) - .itemOutputs(Materials.Water.getCells(2)) - .fluidInputs(Materials.Methanol.getFluid(2000)) - .fluidOutputs(Materials.Dimethylamine.getGas(1000)) - .duration(12 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Ammonia.getCells(4), Materials.Empty.getCells(2)) - .itemOutputs(Materials.Water.getCells(6)) - .fluidInputs(Materials.Oxygen.getGas(10000)) - .fluidOutputs(Materials.NitricOxide.getGas(4000)) - .duration(16 * SECONDS) - .eut(30) - .addTo(sChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Water.getCells(1), Materials.Empty.getCells(1)) - .itemOutputs(Materials.NitricAcid.getCells(2)) - .fluidInputs(Materials.NitrogenDioxide.getGas(3000)) - .fluidOutputs(Materials.NitricOxide.getGas(1000)) - .duration(12 * SECONDS) - .eut(30) - .addTo(sChemicalRecipes); + .itemInputs(Materials.Nitrogen.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Empty.getCells(1)) + .fluidInputs(Materials.Hydrogen.getGas(3000)) + .fluidOutputs(Materials.Ammonia.getGas(1000)) + .duration(16 * SECONDS) + .eut(384) + .addTo(sChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Hydrogen.getCells(3), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Empty.getCells(3)) + .fluidInputs(Materials.Nitrogen.getGas(1000)) + .fluidOutputs(Materials.Ammonia.getGas(1000)) + .duration(16 * SECONDS) + .eut(384) + .addTo(sChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Nitrogen.getCells(1), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.Ammonia.getCells(1)) + .fluidInputs(Materials.Hydrogen.getGas(3000)) + .noFluidOutputs() + .duration(16 * SECONDS) + .eut(384) + .addTo(sChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Hydrogen.getCells(3), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.Ammonia.getCells(1), Materials.Empty.getCells(2)) + .fluidInputs(Materials.Nitrogen.getGas(1000)) + .noFluidOutputs() + .duration(16 * SECONDS) + .eut(384) + .addTo(sChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Ammonia.getCells(1), Materials.Empty.getCells(1)) + .itemOutputs(Materials.Water.getCells(2)) + .fluidInputs(Materials.Methanol.getFluid(2000)) + .fluidOutputs(Materials.Dimethylamine.getGas(1000)) + .duration(12 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Ammonia.getCells(4), Materials.Empty.getCells(2)) + .itemOutputs(Materials.Water.getCells(6)) + .fluidInputs(Materials.Oxygen.getGas(10000)) + .fluidOutputs(Materials.NitricOxide.getGas(4000)) + .duration(16 * SECONDS) + .eut(30) + .addTo(sChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Water.getCells(1), Materials.Empty.getCells(1)) + .itemOutputs(Materials.NitricAcid.getCells(2)) + .fluidInputs(Materials.NitrogenDioxide.getGas(3000)) + .fluidOutputs(Materials.NitricOxide.getGas(1000)) + .duration(12 * SECONDS) + .eut(30) + .addTo(sChemicalRecipes); // 2NO2 + O + H2O = 2HNO3 GT_Values.RA.stdBuilder() - .itemInputs(Materials.NitrogenDioxide.getCells(2), Materials.Oxygen.getCells(1)) - .itemOutputs(Materials.Empty.getCells(3)) - .fluidInputs(Materials.Water.getFluid(1000)) - .fluidOutputs(Materials.NitricAcid.getFluid(2000)) - .duration(12 * SECONDS) - .eut(30) - .addTo(sChemicalRecipes); + .itemInputs(Materials.NitrogenDioxide.getCells(2), Materials.Oxygen.getCells(1)) + .itemOutputs(Materials.Empty.getCells(3)) + .fluidInputs(Materials.Water.getFluid(1000)) + .fluidOutputs(Materials.NitricAcid.getFluid(2000)) + .duration(12 * SECONDS) + .eut(30) + .addTo(sChemicalRecipes); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Oxygen.getCells(1), Materials.Water.getCells(1)) - .itemOutputs(Materials.Empty.getCells(2)) - .fluidInputs(Materials.NitrogenDioxide.getGas(2000)) - .fluidOutputs(Materials.NitricAcid.getFluid(2000)) - .duration(12 * SECONDS) - .eut(30) - .addTo(sChemicalRecipes); + .itemInputs(Materials.Oxygen.getCells(1), Materials.Water.getCells(1)) + .itemOutputs(Materials.Empty.getCells(2)) + .fluidInputs(Materials.NitrogenDioxide.getGas(2000)) + .fluidOutputs(Materials.NitricAcid.getFluid(2000)) + .duration(12 * SECONDS) + .eut(30) + .addTo(sChemicalRecipes); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Water.getCells(1), Materials.NitrogenDioxide.getCells(2)) - .itemOutputs(Materials.Empty.getCells(3)) - .fluidInputs(Materials.Oxygen.getGas(1000)) - .fluidOutputs(Materials.NitricAcid.getFluid(2000)) - .duration(12 * SECONDS) - .eut(30) - .addTo(sChemicalRecipes); + .itemInputs(Materials.Water.getCells(1), Materials.NitrogenDioxide.getCells(2)) + .itemOutputs(Materials.Empty.getCells(3)) + .fluidInputs(Materials.Oxygen.getGas(1000)) + .fluidOutputs(Materials.NitricAcid.getFluid(2000)) + .duration(12 * SECONDS) + .eut(30) + .addTo(sChemicalRecipes); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Sulfur.getDust(1), Materials.Empty.getCells(1)) - .itemOutputs(Materials.HydricSulfide.getCells(1)) - .fluidInputs(Materials.Hydrogen.getGas(2000)) - .noFluidOutputs() - .duration(3 * SECONDS) - .eut(8) - .addTo(sChemicalRecipes); + .itemInputs(Materials.Sulfur.getDust(1), Materials.Empty.getCells(1)) + .itemOutputs(Materials.HydricSulfide.getCells(1)) + .fluidInputs(Materials.Hydrogen.getGas(2000)) + .noFluidOutputs() + .duration(3 * SECONDS) + .eut(8) + .addTo(sChemicalRecipes); // C2H4 + HCl + O = C2H3Cl + H2O GT_Values.RA.stdBuilder() - .itemInputs(Materials.Ethylene.getCells(1), Materials.HydrochloricAcid.getCells(1)) - .itemOutputs(Materials.Water.getCells(1), Materials.Empty.getCells(1)) - .fluidInputs(Materials.Oxygen.getGas(1000)) - .fluidOutputs(Materials.VinylChloride.getGas(1000)) - .duration(8 * SECONDS) - .eut(30) - .addTo(sChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.HydrochloricAcid.getCells(1), Materials.Oxygen.getCells(1)) - .itemOutputs(Materials.Water.getCells(1), Materials.Empty.getCells(1)) - .fluidInputs(Materials.Ethylene.getGas(1000)) - .fluidOutputs(Materials.VinylChloride.getGas(1000)) - .duration(8 * SECONDS) - .eut(30) - .addTo(sChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Oxygen.getCells(1), Materials.Ethylene.getCells(1)) - .itemOutputs(Materials.Water.getCells(1), Materials.Empty.getCells(1)) - .fluidInputs(Materials.HydrochloricAcid.getFluid(1000)) - .fluidOutputs(Materials.VinylChloride.getGas(1000)) - .duration(8 * SECONDS) - .eut(30) - .addTo(sChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Butadiene.getCells(1), ItemList.Cell_Air.get(5)) - .itemOutputs(Materials.RawStyreneButadieneRubber.getDust(9), Materials.Empty.getCells(6)) - .fluidInputs(Materials.Styrene.getFluid(350)) - .noFluidOutputs() - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Butadiene.getCells(1), Materials.Oxygen.getCells(5)) - .itemOutputs(Materials.RawStyreneButadieneRubber.getDust(13), Materials.Empty.getCells(6)) - .fluidInputs(Materials.Styrene.getFluid(350)) - .noFluidOutputs() - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Styrene.getCells(1), ItemList.Cell_Air.get(15)) - .itemOutputs(Materials.RawStyreneButadieneRubber.getDust(27), Materials.Empty.getCells(16)) - .fluidInputs(Materials.Butadiene.getGas(3000)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Styrene.getCells(1), Materials.Oxygen.getCells(15)) - .itemOutputs(Materials.RawStyreneButadieneRubber.getDust(41), Materials.Empty.getCells(16)) - .fluidInputs(Materials.Butadiene.getGas(3000)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Styrene.getCells(1), Materials.Butadiene.getCells(3)) - .itemOutputs(Materials.RawStyreneButadieneRubber.getDust(27), Materials.Empty.getCells(4)) - .fluidInputs(Materials.Air.getGas(15000)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Styrene.getCells(1), Materials.Butadiene.getCells(3)) - .itemOutputs(Materials.RawStyreneButadieneRubber.getDust(41), Materials.Empty.getCells(4)) - .fluidInputs(Materials.Oxygen.getGas(15000)) - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Benzene.getCells(1), Materials.Empty.getCells(1)) - .itemOutputs(Materials.HydrochloricAcid.getCells(2)) - .fluidInputs(Materials.Chlorine.getGas(4000)) - .fluidOutputs(Materials.Dichlorobenzene.getFluid(1000)) - .duration(12 * SECONDS) - .eut(30) - .addTo(sChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Glycerol.getCells(1), Materials.Empty.getCells(2)) - .itemOutputs(Materials.DilutedSulfuricAcid.getCells(3)) - .fluidInputs(Materials.NitrationMixture.getFluid(6000)) - .fluidOutputs(Materials.Glyceryl.getFluid(1000)) - .duration(9 * SECONDS) - .eut(30) - .addTo(sChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.SodiumHydroxide.getDust(12), Materials.Empty.getCells(4)) - .itemOutputs(Materials.Salt.getDust(8), Materials.Phenol.getCells(4)) - .fluidInputs(Materials.Chlorobenzene.getFluid(4000)) - .noFluidOutputs() - .duration(48 * SECONDS) - .eut(30) - .addTo(sChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.SodiumHydroxide.getDust(12), Materials.Chlorobenzene.getCells(4)) - .itemOutputs(Materials.Salt.getDust(8), Materials.Phenol.getCells(4)) - .noFluidInputs() - .noFluidOutputs() - .duration(48 * SECONDS) - .eut(30) - .addTo(sChemicalRecipes); + .itemInputs(Materials.Ethylene.getCells(1), Materials.HydrochloricAcid.getCells(1)) + .itemOutputs(Materials.Water.getCells(1), Materials.Empty.getCells(1)) + .fluidInputs(Materials.Oxygen.getGas(1000)) + .fluidOutputs(Materials.VinylChloride.getGas(1000)) + .duration(8 * SECONDS) + .eut(30) + .addTo(sChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.HydrochloricAcid.getCells(1), Materials.Oxygen.getCells(1)) + .itemOutputs(Materials.Water.getCells(1), Materials.Empty.getCells(1)) + .fluidInputs(Materials.Ethylene.getGas(1000)) + .fluidOutputs(Materials.VinylChloride.getGas(1000)) + .duration(8 * SECONDS) + .eut(30) + .addTo(sChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Oxygen.getCells(1), Materials.Ethylene.getCells(1)) + .itemOutputs(Materials.Water.getCells(1), Materials.Empty.getCells(1)) + .fluidInputs(Materials.HydrochloricAcid.getFluid(1000)) + .fluidOutputs(Materials.VinylChloride.getGas(1000)) + .duration(8 * SECONDS) + .eut(30) + .addTo(sChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Butadiene.getCells(1), ItemList.Cell_Air.get(5)) + .itemOutputs(Materials.RawStyreneButadieneRubber.getDust(9), Materials.Empty.getCells(6)) + .fluidInputs(Materials.Styrene.getFluid(350)) + .noFluidOutputs() + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Butadiene.getCells(1), Materials.Oxygen.getCells(5)) + .itemOutputs(Materials.RawStyreneButadieneRubber.getDust(13), Materials.Empty.getCells(6)) + .fluidInputs(Materials.Styrene.getFluid(350)) + .noFluidOutputs() + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Styrene.getCells(1), ItemList.Cell_Air.get(15)) + .itemOutputs(Materials.RawStyreneButadieneRubber.getDust(27), Materials.Empty.getCells(16)) + .fluidInputs(Materials.Butadiene.getGas(3000)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Styrene.getCells(1), Materials.Oxygen.getCells(15)) + .itemOutputs(Materials.RawStyreneButadieneRubber.getDust(41), Materials.Empty.getCells(16)) + .fluidInputs(Materials.Butadiene.getGas(3000)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Styrene.getCells(1), Materials.Butadiene.getCells(3)) + .itemOutputs(Materials.RawStyreneButadieneRubber.getDust(27), Materials.Empty.getCells(4)) + .fluidInputs(Materials.Air.getGas(15000)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Styrene.getCells(1), Materials.Butadiene.getCells(3)) + .itemOutputs(Materials.RawStyreneButadieneRubber.getDust(41), Materials.Empty.getCells(4)) + .fluidInputs(Materials.Oxygen.getGas(15000)) + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Benzene.getCells(1), Materials.Empty.getCells(1)) + .itemOutputs(Materials.HydrochloricAcid.getCells(2)) + .fluidInputs(Materials.Chlorine.getGas(4000)) + .fluidOutputs(Materials.Dichlorobenzene.getFluid(1000)) + .duration(12 * SECONDS) + .eut(30) + .addTo(sChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Glycerol.getCells(1), Materials.Empty.getCells(2)) + .itemOutputs(Materials.DilutedSulfuricAcid.getCells(3)) + .fluidInputs(Materials.NitrationMixture.getFluid(6000)) + .fluidOutputs(Materials.Glyceryl.getFluid(1000)) + .duration(9 * SECONDS) + .eut(30) + .addTo(sChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.SodiumHydroxide.getDust(12), Materials.Empty.getCells(4)) + .itemOutputs(Materials.Salt.getDust(8), Materials.Phenol.getCells(4)) + .fluidInputs(Materials.Chlorobenzene.getFluid(4000)) + .noFluidOutputs() + .duration(48 * SECONDS) + .eut(30) + .addTo(sChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.SodiumHydroxide.getDust(12), Materials.Chlorobenzene.getCells(4)) + .itemOutputs(Materials.Salt.getDust(8), Materials.Phenol.getCells(4)) + .noFluidInputs() + .noFluidOutputs() + .duration(48 * SECONDS) + .eut(30) + .addTo(sChemicalRecipes); // Recipes for gasoline // 2N + O = N2O GT_Values.RA.stdBuilder() - .itemInputs(Materials.Nitrogen.getCells(2), Materials.Oxygen.getCells(1)) - .itemOutputs(Materials.NitrousOxide.getCells(1), Materials.Empty.getCells(2)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(30) - .addTo(sChemicalRecipes); + .itemInputs(Materials.Nitrogen.getCells(2), Materials.Oxygen.getCells(1)) + .itemOutputs(Materials.NitrousOxide.getCells(1), Materials.Empty.getCells(2)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(30) + .addTo(sChemicalRecipes); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Nitrogen.getCells(2), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Empty.getCells(2)) - .fluidInputs(Materials.Oxygen.getGas(1000)) - .fluidOutputs(Materials.NitrousOxide.getGas(1000)) - .duration(10 * SECONDS) - .eut(30) - .addTo(sChemicalRecipes); + .itemInputs(Materials.Nitrogen.getCells(2), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Empty.getCells(2)) + .fluidInputs(Materials.Oxygen.getGas(1000)) + .fluidOutputs(Materials.NitrousOxide.getGas(1000)) + .duration(10 * SECONDS) + .eut(30) + .addTo(sChemicalRecipes); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Nitrogen.getCells(2), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.NitrousOxide.getCells(1), Materials.Empty.getCells(1)) - .fluidInputs(Materials.Oxygen.getGas(1000)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(30) - .addTo(sChemicalRecipes); + .itemInputs(Materials.Nitrogen.getCells(2), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.NitrousOxide.getCells(1), Materials.Empty.getCells(1)) + .fluidInputs(Materials.Oxygen.getGas(1000)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(30) + .addTo(sChemicalRecipes); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Oxygen.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Empty.getCells(1)) - .fluidInputs(Materials.Nitrogen.getGas(2000)) - .fluidOutputs(Materials.NitrousOxide.getGas(1000)) - .duration(10 * SECONDS) - .eut(30) - .addTo(sChemicalRecipes); + .itemInputs(Materials.Oxygen.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Empty.getCells(1)) + .fluidInputs(Materials.Nitrogen.getGas(2000)) + .fluidOutputs(Materials.NitrousOxide.getGas(1000)) + .duration(10 * SECONDS) + .eut(30) + .addTo(sChemicalRecipes); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Oxygen.getCells(1), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.NitrousOxide.getCells(1)) - .fluidInputs(Materials.Nitrogen.getGas(2000)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(30) - .addTo(sChemicalRecipes); + .itemInputs(Materials.Oxygen.getCells(1), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.NitrousOxide.getCells(1)) + .fluidInputs(Materials.Nitrogen.getGas(2000)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(30) + .addTo(sChemicalRecipes); // C2H6O + C4H8 = C6H14O GT_Values.RA.stdBuilder() - .itemInputs(Materials.Ethanol.getCells(1), Materials.Butene.getCells(1)) - .itemOutputs(Materials.AntiKnock.getCells(1), Materials.Empty.getCells(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sChemicalRecipes); + .itemInputs(Materials.Ethanol.getCells(1), Materials.Butene.getCells(1)) + .itemOutputs(Materials.AntiKnock.getCells(1), Materials.Empty.getCells(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sChemicalRecipes); // Potassium Dichromate // 2KNO3 + 2CrO3 = K2Cr2O7 + 2NO + 3O GT_Values.RA.stdBuilder() - .itemInputs(Materials.Saltpeter.getDust(10), Materials.ChromiumTrioxide.getDust(8)) - .itemOutputs(Materials.Potassiumdichromate.getDust(11)) - .noFluidInputs() - .fluidOutputs(Materials.NitricOxide.getGas(2000)) - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sChemicalRecipes); + .itemInputs(Materials.Saltpeter.getDust(10), Materials.ChromiumTrioxide.getDust(8)) + .itemOutputs(Materials.Potassiumdichromate.getDust(11)) + .noFluidInputs() + .fluidOutputs(Materials.NitricOxide.getGas(2000)) + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sChemicalRecipes); GT_Values.RA.stdBuilder() - .itemInputs(Materials.PotassiumNitrade.getDust(10), Materials.ChromiumTrioxide.getDust(8)) - .itemOutputs(Materials.Potassiumdichromate.getDust(11)) - .noFluidInputs() - .fluidOutputs(Materials.NitricOxide.getGas(2000)) - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sChemicalRecipes); + .itemInputs(Materials.PotassiumNitrade.getDust(10), Materials.ChromiumTrioxide.getDust(8)) + .itemOutputs(Materials.Potassiumdichromate.getDust(11)) + .noFluidInputs() + .fluidOutputs(Materials.NitricOxide.getGas(2000)) + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sChemicalRecipes); } public void multiblockOnly() { GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(22)) - .itemOutputs() - .fluidInputs(Materials.Hydrogen.getGas(16000), Materials.Oxygen.getGas(8000)) - .fluidOutputs(GT_ModHandler.getDistilledWater(8000)) - .duration(4 * SECONDS) - .eut(30) - .addTo(sMultiblockChemicalRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(22)) + .itemOutputs() + .fluidInputs(Materials.Hydrogen.getGas(16000), Materials.Oxygen.getGas(8000)) + .fluidOutputs(GT_ModHandler.getDistilledWater(8000)) + .duration(4 * SECONDS) + .eut(30) + .addTo(sMultiblockChemicalRecipes); GT_Values.RA.stdBuilder() - .itemInputs(Materials.PotassiumNitrade.getDust(10), Materials.ChromiumTrioxide.getDust(8)) - .itemOutputs(Materials.Potassiumdichromate.getDust(11)) - .noFluidInputs() - .fluidOutputs(Materials.NitricOxide.getGas(2000), Materials.Oxygen.getGas(3000)) - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMultiblockChemicalRecipes); + .itemInputs(Materials.PotassiumNitrade.getDust(10), Materials.ChromiumTrioxide.getDust(8)) + .itemOutputs(Materials.Potassiumdichromate.getDust(11)) + .noFluidInputs() + .fluidOutputs(Materials.NitricOxide.getGas(2000), Materials.Oxygen.getGas(3000)) + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sMultiblockChemicalRecipes); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Saltpeter.getDust(10), Materials.ChromiumTrioxide.getDust(8)) - .itemOutputs(Materials.Potassiumdichromate.getDust(11)) - .noFluidInputs() - .fluidOutputs(Materials.NitricOxide.getGas(2000), Materials.Oxygen.getGas(3000)) - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMultiblockChemicalRecipes); + .itemInputs(Materials.Saltpeter.getDust(10), Materials.ChromiumTrioxide.getDust(8)) + .itemOutputs(Materials.Potassiumdichromate.getDust(11)) + .noFluidInputs() + .fluidOutputs(Materials.NitricOxide.getGas(2000), Materials.Oxygen.getGas(3000)) + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sMultiblockChemicalRecipes); // Potassium Dichromate shortcut // 2 Cr + 6O + 10 Saltpeter/Potassium Dichromate = 10 K2Cr2O7 + 2NO + 3O GT_Values.RA.stdBuilder() - .itemInputs( - Materials.PotassiumNitrade.getDust(64), - Materials.PotassiumNitrade.getDust(64), - Materials.PotassiumNitrade.getDust(32), - Materials.Chrome.getDust(2 * 16), - GT_Utility.getIntegratedCircuit(11)) - .itemOutputs( - Materials.Potassiumdichromate.getDust(64), - Materials.Potassiumdichromate.getDust(64), - Materials.Potassiumdichromate.getDust(48)) - .fluidInputs(Materials.Oxygen.getGas(6000 * 16)) - .fluidOutputs(Materials.NitricOxide.getGas(2000 * 16), Materials.Oxygen.getGas(3000 * 16)) - .duration(2 * MINUTES + 8 * SECONDS) - .eut((int) GT_Values.VP[7]) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - Materials.Saltpeter.getDust(64), - Materials.Saltpeter.getDust(64), - Materials.Saltpeter.getDust(32), - Materials.Chrome.getDust(2 * 16), - GT_Utility.getIntegratedCircuit(11)) - .itemOutputs( - Materials.Potassiumdichromate.getDust(64), - Materials.Potassiumdichromate.getDust(64), - Materials.Potassiumdichromate.getDust(48)) - .fluidInputs(Materials.Oxygen.getGas(6000 * 16)) - .fluidOutputs(Materials.NitricOxide.getGas(2000 * 16), Materials.Oxygen.getGas(3000 * 16)) - .duration(2 * MINUTES + 8 * SECONDS) - .eut((int) GT_Values.VP[7]) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .fluidInputs(Materials.Benzene.getFluid(1000), Materials.Methane.getGas(2000)) - .fluidOutputs(Materials.Dimethylbenzene.getFluid(1000), Materials.Hydrogen.getGas(4000)) - .duration(3 * MINUTES + 20 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.getIntegratedCircuit(1), - GT_OreDictUnificator.get(OrePrefixes.crushedPurified, Materials.Galena, 3), - GT_OreDictUnificator.get(OrePrefixes.crushedPurified, Materials.Sphalerite, 1)) - .noItemOutputs() - .fluidInputs(Materials.SulfuricAcid.getFluid(4000)) - .fluidOutputs(new FluidStack(ItemList.sIndiumConcentrate, 8000)) - .duration(3 * SECONDS) - .eut(150) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.getIntegratedCircuit(8), - GT_OreDictUnificator.get(OrePrefixes.crushedPurified, Materials.Galena, 27), - GT_OreDictUnificator.get(OrePrefixes.crushedPurified, Materials.Sphalerite, 9)) - .noItemOutputs() - .fluidInputs(Materials.SulfuricAcid.getFluid(36000)) - .fluidOutputs(new FluidStack(ItemList.sIndiumConcentrate, 72000)) - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.getIntegratedCircuit(9), - GT_OreDictUnificator.get(OrePrefixes.crushedPurified, Materials.Pentlandite, 9)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.PlatinumGroupSludge, 1)) - .fluidInputs(Materials.SulfuricAcid.getFluid(9000)) - .fluidOutputs(new FluidStack(ItemList.sNickelSulfate, 18000)) - .duration(1 * SECONDS + 5 * TICKS) - .eut(TierEU.RECIPE_HV) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.getIntegratedCircuit(9), - GT_OreDictUnificator.get(OrePrefixes.crushedPurified, Materials.Chalcopyrite, 9)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.PlatinumGroupSludge, 1)) - .fluidInputs(Materials.SulfuricAcid.getFluid(9000)) - .fluidOutputs(new FluidStack(ItemList.sBlueVitriol, 18000)) - .duration(1 * SECONDS + 5 * TICKS) - .eut(TierEU.RECIPE_HV) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Plutonium, 64), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Uranium, 1), - GT_Utility.getIntegratedCircuit(8)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Plutonium, 64)) - .fluidInputs(Materials.Air.getGas(8000)) - .fluidOutputs(Materials.Radon.getGas(800)) - .duration(1 * MINUTES + 15 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMultiblockChemicalRecipes); + .itemInputs( + Materials.PotassiumNitrade.getDust(64), + Materials.PotassiumNitrade.getDust(64), + Materials.PotassiumNitrade.getDust(32), + Materials.Chrome.getDust(2 * 16), + GT_Utility.getIntegratedCircuit(11)) + .itemOutputs( + Materials.Potassiumdichromate.getDust(64), + Materials.Potassiumdichromate.getDust(64), + Materials.Potassiumdichromate.getDust(48)) + .fluidInputs(Materials.Oxygen.getGas(6000 * 16)) + .fluidOutputs(Materials.NitricOxide.getGas(2000 * 16), Materials.Oxygen.getGas(3000 * 16)) + .duration(2 * MINUTES + 8 * SECONDS) + .eut((int) GT_Values.VP[7]) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + Materials.Saltpeter.getDust(64), + Materials.Saltpeter.getDust(64), + Materials.Saltpeter.getDust(32), + Materials.Chrome.getDust(2 * 16), + GT_Utility.getIntegratedCircuit(11)) + .itemOutputs( + Materials.Potassiumdichromate.getDust(64), + Materials.Potassiumdichromate.getDust(64), + Materials.Potassiumdichromate.getDust(48)) + .fluidInputs(Materials.Oxygen.getGas(6000 * 16)) + .fluidOutputs(Materials.NitricOxide.getGas(2000 * 16), Materials.Oxygen.getGas(3000 * 16)) + .duration(2 * MINUTES + 8 * SECONDS) + .eut((int) GT_Values.VP[7]) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .fluidInputs(Materials.Benzene.getFluid(1000), Materials.Methane.getGas(2000)) + .fluidOutputs(Materials.Dimethylbenzene.getFluid(1000), Materials.Hydrogen.getGas(4000)) + .duration(3 * MINUTES + 20 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.getIntegratedCircuit(1), + GT_OreDictUnificator.get(OrePrefixes.crushedPurified, Materials.Galena, 3), + GT_OreDictUnificator.get(OrePrefixes.crushedPurified, Materials.Sphalerite, 1)) + .noItemOutputs() + .fluidInputs(Materials.SulfuricAcid.getFluid(4000)) + .fluidOutputs(new FluidStack(ItemList.sIndiumConcentrate, 8000)) + .duration(3 * SECONDS) + .eut(150) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.getIntegratedCircuit(8), + GT_OreDictUnificator.get(OrePrefixes.crushedPurified, Materials.Galena, 27), + GT_OreDictUnificator.get(OrePrefixes.crushedPurified, Materials.Sphalerite, 9)) + .noItemOutputs() + .fluidInputs(Materials.SulfuricAcid.getFluid(36000)) + .fluidOutputs(new FluidStack(ItemList.sIndiumConcentrate, 72000)) + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.getIntegratedCircuit(9), + GT_OreDictUnificator.get(OrePrefixes.crushedPurified, Materials.Pentlandite, 9)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.PlatinumGroupSludge, 1)) + .fluidInputs(Materials.SulfuricAcid.getFluid(9000)) + .fluidOutputs(new FluidStack(ItemList.sNickelSulfate, 18000)) + .duration(1 * SECONDS + 5 * TICKS) + .eut(TierEU.RECIPE_HV) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.getIntegratedCircuit(9), + GT_OreDictUnificator.get(OrePrefixes.crushedPurified, Materials.Chalcopyrite, 9)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.PlatinumGroupSludge, 1)) + .fluidInputs(Materials.SulfuricAcid.getFluid(9000)) + .fluidOutputs(new FluidStack(ItemList.sBlueVitriol, 18000)) + .duration(1 * SECONDS + 5 * TICKS) + .eut(TierEU.RECIPE_HV) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Plutonium, 64), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Uranium, 1), + GT_Utility.getIntegratedCircuit(8)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Plutonium, 64)) + .fluidInputs(Materials.Air.getGas(8000)) + .fluidOutputs(Materials.Radon.getGas(800)) + .duration(1 * MINUTES + 15 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sMultiblockChemicalRecipes); // 3SiO2 + 4Al = 3Si + 2Al2O3 GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.getIntegratedCircuit(1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconDioxide, 9), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Aluminium, 4)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silicon, 3), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Aluminiumoxide, 10)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * TICKS) - .eut(TierEU.RECIPE_MV) - .addTo(sMultiblockChemicalRecipes); + .itemInputs( + GT_Utility.getIntegratedCircuit(1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconDioxide, 9), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Aluminium, 4)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silicon, 3), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Aluminiumoxide, 10)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * TICKS) + .eut(TierEU.RECIPE_MV) + .addTo(sMultiblockChemicalRecipes); // 10Si + 30HCl -> 0.3 SiH2Cl2 + 9 HSiCl3 + 0.3 SiCl4 + 0.2 Si2Cl6 + 20.4H GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.getIntegratedCircuit(9), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silicon, 10)) - .noItemOutputs() - .fluidInputs(Materials.HydrochloricAcid.getFluid(30000)) - .fluidOutputs( - Materials.Trichlorosilane.getFluid(9000), - Materials.SiliconTetrachloride.getFluid(300), - Materials.Hexachlorodisilane.getFluid(200), - Materials.Dichlorosilane.getGas(300), - Materials.Hydrogen.getGas(20400)) - .duration(7 * SECONDS + 10 * TICKS) - .eut(TierEU.RECIPE_HV) - .addTo(sMultiblockChemicalRecipes); + .itemInputs( + GT_Utility.getIntegratedCircuit(9), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silicon, 10)) + .noItemOutputs() + .fluidInputs(Materials.HydrochloricAcid.getFluid(30000)) + .fluidOutputs( + Materials.Trichlorosilane.getFluid(9000), + Materials.SiliconTetrachloride.getFluid(300), + Materials.Hexachlorodisilane.getFluid(200), + Materials.Dichlorosilane.getGas(300), + Materials.Hydrogen.getGas(20400)) + .duration(7 * SECONDS + 10 * TICKS) + .eut(TierEU.RECIPE_HV) + .addTo(sMultiblockChemicalRecipes); // 2CO + 2C3H6 + 4H =RhHCO(P(C6H5)3)3= C4H8O + C4H8O GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.getIntegratedCircuit(4), - MaterialsKevlar.OrganorhodiumCatalyst.getDustTiny(1)) - .noItemOutputs() - .fluidInputs( - Materials.Hydrogen.getGas(4000), - Materials.Propene.getGas(2000), - Materials.CarbonMonoxide.getGas(2000)) - .fluidOutputs( - MaterialsKevlar.Butyraldehyde.getFluid(1000), - MaterialsKevlar.Isobutyraldehyde.getFluid(1000)) - .duration(15 * SECONDS) - .eut(30) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(9), MaterialsKevlar.OrganorhodiumCatalyst.getDust(1)) - .noItemOutputs() - .fluidInputs( - Materials.Hydrogen.getGas(36000), - Materials.Propene.getGas(18000), - Materials.CarbonMonoxide.getGas(18000)) - .fluidOutputs( - MaterialsKevlar.Butyraldehyde.getFluid(9000), - MaterialsKevlar.Isobutyraldehyde.getFluid(9000)) - .duration(1 * MINUTES + 40 * SECONDS) - .eut(30) - .addTo(sMultiblockChemicalRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(4), MaterialsKevlar.OrganorhodiumCatalyst.getDustTiny(1)) + .noItemOutputs() + .fluidInputs( + Materials.Hydrogen.getGas(4000), + Materials.Propene.getGas(2000), + Materials.CarbonMonoxide.getGas(2000)) + .fluidOutputs(MaterialsKevlar.Butyraldehyde.getFluid(1000), MaterialsKevlar.Isobutyraldehyde.getFluid(1000)) + .duration(15 * SECONDS) + .eut(30) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(9), MaterialsKevlar.OrganorhodiumCatalyst.getDust(1)) + .noItemOutputs() + .fluidInputs( + Materials.Hydrogen.getGas(36000), + Materials.Propene.getGas(18000), + Materials.CarbonMonoxide.getGas(18000)) + .fluidOutputs(MaterialsKevlar.Butyraldehyde.getFluid(9000), MaterialsKevlar.Isobutyraldehyde.getFluid(9000)) + .duration(1 * MINUTES + 40 * SECONDS) + .eut(30) + .addTo(sMultiblockChemicalRecipes); // C2H4 + O =Al2O3,Ag= C2H4O GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.getIntegratedCircuit(2), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silver, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Aluminiumoxide, 1)) - .noItemOutputs() - .fluidInputs(Materials.Ethylene.getGas(1000), Materials.Oxygen.getGas(1000)) - .fluidOutputs(MaterialsKevlar.EthyleneOxide.getGas(1000)) - .duration(2 * SECONDS + 10 * TICKS) - .eut(TierEU.RECIPE_HV) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.getIntegratedCircuit(8), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silver, 9), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Aluminiumoxide, 9)) - .noItemOutputs() - .fluidInputs(Materials.Ethylene.getGas(9000), Materials.Oxygen.getGas(9000)) - .fluidOutputs(MaterialsKevlar.EthyleneOxide.getGas(9000)) - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(2)) - .noItemOutputs() - .fluidInputs( - MaterialsKevlar.EthyleneOxide.getGas(1000), - Materials.Dimethyldichlorosilane.getFluid(4000), - Materials.Water.getFluid(5000)) - .fluidOutputs(MaterialsKevlar.SiliconOil.getFluid(5000)) - .duration(15 * TICKS) - .eut(TierEU.RECIPE_EV) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(8)) - .noItemOutputs() - .fluidInputs( - MaterialsKevlar.EthyleneOxide.getGas(9000), - Materials.Dimethyldichlorosilane.getFluid(36000), - Materials.Water.getFluid(45000)) - .fluidOutputs(MaterialsKevlar.SiliconOil.getFluid(45000)) - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sMultiblockChemicalRecipes); + .itemInputs( + GT_Utility.getIntegratedCircuit(2), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silver, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Aluminiumoxide, 1)) + .noItemOutputs() + .fluidInputs(Materials.Ethylene.getGas(1000), Materials.Oxygen.getGas(1000)) + .fluidOutputs(MaterialsKevlar.EthyleneOxide.getGas(1000)) + .duration(2 * SECONDS + 10 * TICKS) + .eut(TierEU.RECIPE_HV) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.getIntegratedCircuit(8), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silver, 9), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Aluminiumoxide, 9)) + .noItemOutputs() + .fluidInputs(Materials.Ethylene.getGas(9000), Materials.Oxygen.getGas(9000)) + .fluidOutputs(MaterialsKevlar.EthyleneOxide.getGas(9000)) + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(2)) + .noItemOutputs() + .fluidInputs( + MaterialsKevlar.EthyleneOxide.getGas(1000), + Materials.Dimethyldichlorosilane.getFluid(4000), + Materials.Water.getFluid(5000)) + .fluidOutputs(MaterialsKevlar.SiliconOil.getFluid(5000)) + .duration(15 * TICKS) + .eut(TierEU.RECIPE_EV) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(8)) + .noItemOutputs() + .fluidInputs( + MaterialsKevlar.EthyleneOxide.getGas(9000), + Materials.Dimethyldichlorosilane.getFluid(36000), + Materials.Water.getFluid(45000)) + .fluidOutputs(MaterialsKevlar.SiliconOil.getFluid(45000)) + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sMultiblockChemicalRecipes); // NH3 + CH4O =SiO2,Al2O3= CH5N + H2O GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.getIntegratedCircuit(10), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Aluminiumoxide, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconDioxide, 1)) - .noItemOutputs() - .fluidInputs(Materials.Methanol.getFluid(1000), Materials.Ammonia.getGas(1000)) - .fluidOutputs(MaterialsKevlar.Methylamine.getGas(1000), Materials.Water.getFluid(1000)) - .duration(1 * MINUTES + 15 * SECONDS) - .eut(500000) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.getIntegratedCircuit(1), - GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.KevlarCatalyst, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.Pentaerythritol, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.DiphenylmethaneDiisocyanate, 5)) - .noItemOutputs() - .fluidInputs( - MaterialsKevlar.Ethyleneglycol.getFluid(4000), - MaterialsKevlar.SiliconOil.getFluid(1000)) - .fluidOutputs(MaterialsKevlar.PolyurethaneResin.getFluid(1000)) - .duration(10 * SECONDS) - .eut(500000) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.getIntegratedCircuit(9), - GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.KevlarCatalyst, 9), - GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.Pentaerythritol, 9), - GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.DiphenylmethaneDiisocyanate, 45)) - .noItemOutputs() - .fluidInputs( - MaterialsKevlar.Ethyleneglycol.getFluid(36000), - MaterialsKevlar.SiliconOil.getFluid(9000)) - .fluidOutputs(MaterialsKevlar.PolyurethaneResin.getFluid(9000)) - .duration(1 * MINUTES + 15 * SECONDS) - .eut(500000) - .addTo(sMultiblockChemicalRecipes); + .itemInputs( + GT_Utility.getIntegratedCircuit(10), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Aluminiumoxide, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconDioxide, 1)) + .noItemOutputs() + .fluidInputs(Materials.Methanol.getFluid(1000), Materials.Ammonia.getGas(1000)) + .fluidOutputs(MaterialsKevlar.Methylamine.getGas(1000), Materials.Water.getFluid(1000)) + .duration(1 * MINUTES + 15 * SECONDS) + .eut(500000) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.getIntegratedCircuit(1), + GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.KevlarCatalyst, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.Pentaerythritol, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.DiphenylmethaneDiisocyanate, 5)) + .noItemOutputs() + .fluidInputs(MaterialsKevlar.Ethyleneglycol.getFluid(4000), MaterialsKevlar.SiliconOil.getFluid(1000)) + .fluidOutputs(MaterialsKevlar.PolyurethaneResin.getFluid(1000)) + .duration(10 * SECONDS) + .eut(500000) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.getIntegratedCircuit(9), + GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.KevlarCatalyst, 9), + GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.Pentaerythritol, 9), + GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.DiphenylmethaneDiisocyanate, 45)) + .noItemOutputs() + .fluidInputs(MaterialsKevlar.Ethyleneglycol.getFluid(36000), MaterialsKevlar.SiliconOil.getFluid(9000)) + .fluidOutputs(MaterialsKevlar.PolyurethaneResin.getFluid(9000)) + .duration(1 * MINUTES + 15 * SECONDS) + .eut(500000) + .addTo(sMultiblockChemicalRecipes); // 3NH3 + 6CH4O =Al2O3,SiO2= CH5N + C2H7N + C3H9N + 6H2O GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.getIntegratedCircuit(3), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Aluminiumoxide, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconDioxide, 1)) - .noItemOutputs() - .fluidInputs(Materials.Methanol.getFluid(6000), Materials.Ammonia.getGas(3000)) - .fluidOutputs( - MaterialsKevlar.Methylamine.getGas(1000), - Materials.Dimethylamine.getGas(1000), - MaterialsKevlar.Trimethylamine.getGas(1000), - Materials.Water.getFluid(6000)) - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.getIntegratedCircuit(11), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Aluminiumoxide, 9), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconDioxide, 9)) - .noItemOutputs() - .fluidInputs(Materials.Methanol.getFluid(54000), Materials.Ammonia.getGas(27000)) - .fluidOutputs( - MaterialsKevlar.Methylamine.getGas(9000), - Materials.Dimethylamine.getGas(9000), - MaterialsKevlar.Trimethylamine.getGas(9000), - Materials.Water.getFluid(54000)) - .duration(2 * MINUTES + 30 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sMultiblockChemicalRecipes); + .itemInputs( + GT_Utility.getIntegratedCircuit(3), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Aluminiumoxide, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconDioxide, 1)) + .noItemOutputs() + .fluidInputs(Materials.Methanol.getFluid(6000), Materials.Ammonia.getGas(3000)) + .fluidOutputs( + MaterialsKevlar.Methylamine.getGas(1000), + Materials.Dimethylamine.getGas(1000), + MaterialsKevlar.Trimethylamine.getGas(1000), + Materials.Water.getFluid(6000)) + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.getIntegratedCircuit(11), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Aluminiumoxide, 9), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconDioxide, 9)) + .noItemOutputs() + .fluidInputs(Materials.Methanol.getFluid(54000), Materials.Ammonia.getGas(27000)) + .fluidOutputs( + MaterialsKevlar.Methylamine.getGas(9000), + Materials.Dimethylamine.getGas(9000), + MaterialsKevlar.Trimethylamine.getGas(9000), + Materials.Water.getFluid(54000)) + .duration(2 * MINUTES + 30 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sMultiblockChemicalRecipes); // 18SOCl2 + 5C10H10O4 + 6CO2 = 7C8H4Cl2O2 + 22HCl + 18SO2 GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.TerephthaloylChloride, 64), - GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.TerephthaloylChloride, 48)) - .fluidInputs( - MaterialsKevlar.ThionylChloride.getFluid(18000), - MaterialsKevlar.DimethylTerephthalate.getFluid(5000), - Materials.CarbonDioxide.getGas(6000)) - .fluidOutputs( - Materials.DilutedHydrochloricAcid.getFluid(22000), - Materials.SulfurDioxide.getGas(18000)) - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sMultiblockChemicalRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(1)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.TerephthaloylChloride, 64), + GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.TerephthaloylChloride, 48)) + .fluidInputs( + MaterialsKevlar.ThionylChloride.getFluid(18000), + MaterialsKevlar.DimethylTerephthalate.getFluid(5000), + Materials.CarbonDioxide.getGas(6000)) + .fluidOutputs(Materials.DilutedHydrochloricAcid.getFluid(22000), Materials.SulfurDioxide.getGas(18000)) + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sMultiblockChemicalRecipes); // 2CH4O + C8H6O4 =H2SO4= C10H10O4 + 2H2O GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .fluidInputs( - MaterialsKevlar.TerephthalicAcid.getFluid(1000), - Materials.Methanol.getFluid(2000), - Materials.SulfuricAcid.getFluid(2000)) - .fluidOutputs( - MaterialsKevlar.DimethylTerephthalate.getFluid(1000), - Materials.DilutedSulfuricAcid.getFluid(2000)) - .duration(12 * SECONDS + 10 * TICKS) - .eut(TierEU.RECIPE_EV) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(9)) - .noItemOutputs() - .fluidInputs( - MaterialsKevlar.TerephthalicAcid.getFluid(9000), - Materials.Methanol.getFluid(18000), - Materials.SulfuricAcid.getFluid(18000)) - .fluidOutputs( - MaterialsKevlar.DimethylTerephthalate.getFluid(9000), - Materials.DilutedSulfuricAcid.getFluid(18000)) - .duration(1 * MINUTES + 27 * SECONDS + 10 * TICKS) - .eut(TierEU.RECIPE_EV) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(2)) - .noItemOutputs() - .fluidInputs(Materials.Benzene.getFluid(1000), Materials.Methane.getGas(2000)) - .fluidOutputs(MaterialsKevlar.IIIDimethylbenzene.getFluid(1000), Materials.Hydrogen.getGas(4000)) - .duration(3 * MINUTES + 20 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(3)) - .noItemOutputs() - .fluidInputs(Materials.Benzene.getFluid(1000), Materials.Methane.getGas(2000)) - .fluidOutputs(MaterialsKevlar.IVDimethylbenzene.getFluid(1000), Materials.Hydrogen.getGas(4000)) - .duration(3 * MINUTES + 20 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.getIntegratedCircuit(9), - GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.CobaltIIHydroxide, 45)) - .itemOutputs( - MaterialsKevlar.CobaltIINaphthenate.getDust(64), - MaterialsKevlar.CobaltIINaphthenate.getDust(64), - MaterialsKevlar.CobaltIINaphthenate.getDust(64), - MaterialsKevlar.CobaltIINaphthenate.getDust(64), - MaterialsKevlar.CobaltIINaphthenate.getDust(64), - MaterialsKevlar.CobaltIINaphthenate.getDust(49)) - .fluidInputs(MaterialsKevlar.NaphthenicAcid.getFluid(10000)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.getIntegratedCircuit(9), - GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.CobaltIIAcetate, 64), - GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.CobaltIIAcetate, 64), - GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.CobaltIIAcetate, 7)) - .itemOutputs( - MaterialsKevlar.CobaltIINaphthenate.getDust(64), - MaterialsKevlar.CobaltIINaphthenate.getDust(64), - MaterialsKevlar.CobaltIINaphthenate.getDust(64), - MaterialsKevlar.CobaltIINaphthenate.getDust(64), - MaterialsKevlar.CobaltIINaphthenate.getDust(64), - MaterialsKevlar.CobaltIINaphthenate.getDust(49)) - .fluidInputs(MaterialsKevlar.NaphthenicAcid.getFluid(10000)) - .fluidOutputs(Materials.AceticAcid.getFluid(15000)) - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sMultiblockChemicalRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .fluidInputs( + MaterialsKevlar.TerephthalicAcid.getFluid(1000), + Materials.Methanol.getFluid(2000), + Materials.SulfuricAcid.getFluid(2000)) + .fluidOutputs( + MaterialsKevlar.DimethylTerephthalate.getFluid(1000), + Materials.DilutedSulfuricAcid.getFluid(2000)) + .duration(12 * SECONDS + 10 * TICKS) + .eut(TierEU.RECIPE_EV) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(9)) + .noItemOutputs() + .fluidInputs( + MaterialsKevlar.TerephthalicAcid.getFluid(9000), + Materials.Methanol.getFluid(18000), + Materials.SulfuricAcid.getFluid(18000)) + .fluidOutputs( + MaterialsKevlar.DimethylTerephthalate.getFluid(9000), + Materials.DilutedSulfuricAcid.getFluid(18000)) + .duration(1 * MINUTES + 27 * SECONDS + 10 * TICKS) + .eut(TierEU.RECIPE_EV) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(2)) + .noItemOutputs() + .fluidInputs(Materials.Benzene.getFluid(1000), Materials.Methane.getGas(2000)) + .fluidOutputs(MaterialsKevlar.IIIDimethylbenzene.getFluid(1000), Materials.Hydrogen.getGas(4000)) + .duration(3 * MINUTES + 20 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(3)) + .noItemOutputs() + .fluidInputs(Materials.Benzene.getFluid(1000), Materials.Methane.getGas(2000)) + .fluidOutputs(MaterialsKevlar.IVDimethylbenzene.getFluid(1000), Materials.Hydrogen.getGas(4000)) + .duration(3 * MINUTES + 20 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.getIntegratedCircuit(9), + GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.CobaltIIHydroxide, 45)) + .itemOutputs( + MaterialsKevlar.CobaltIINaphthenate.getDust(64), + MaterialsKevlar.CobaltIINaphthenate.getDust(64), + MaterialsKevlar.CobaltIINaphthenate.getDust(64), + MaterialsKevlar.CobaltIINaphthenate.getDust(64), + MaterialsKevlar.CobaltIINaphthenate.getDust(64), + MaterialsKevlar.CobaltIINaphthenate.getDust(49)) + .fluidInputs(MaterialsKevlar.NaphthenicAcid.getFluid(10000)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_Utility.getIntegratedCircuit(9), + GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.CobaltIIAcetate, 64), + GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.CobaltIIAcetate, 64), + GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.CobaltIIAcetate, 7)) + .itemOutputs( + MaterialsKevlar.CobaltIINaphthenate.getDust(64), + MaterialsKevlar.CobaltIINaphthenate.getDust(64), + MaterialsKevlar.CobaltIINaphthenate.getDust(64), + MaterialsKevlar.CobaltIINaphthenate.getDust(64), + MaterialsKevlar.CobaltIINaphthenate.getDust(64), + MaterialsKevlar.CobaltIINaphthenate.getDust(49)) + .fluidInputs(MaterialsKevlar.NaphthenicAcid.getFluid(10000)) + .fluidOutputs(Materials.AceticAcid.getFluid(15000)) + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sMultiblockChemicalRecipes); // PCl3 + 3C6H5Cl + 6Na = 6NaCl + C18H15P GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.getIntegratedCircuit(1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sodium, 6)) - .itemOutputs(MaterialsKevlar.Triphenylphosphene.getDust(34), Materials.Salt.getDust(12)) - .fluidInputs( - MaterialsKevlar.PhosphorusTrichloride.getFluid(1000), - Materials.Chlorobenzene.getFluid(3000)) - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sMultiblockChemicalRecipes); + .itemInputs( + GT_Utility.getIntegratedCircuit(1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sodium, 6)) + .itemOutputs(MaterialsKevlar.Triphenylphosphene.getDust(34), Materials.Salt.getDust(12)) + .fluidInputs(MaterialsKevlar.PhosphorusTrichloride.getFluid(1000), Materials.Chlorobenzene.getFluid(3000)) + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sMultiblockChemicalRecipes); // 4NaH + C3H9BO3 = NaBH4 + 3CH3ONa GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(1), MaterialsKevlar.SodiumHydride.getDust(8)) - .itemOutputs( - MaterialsKevlar.SodiumBorohydride.getDust(6), - MaterialsKevlar.SodiumMethoxide.getDust(18)) - .fluidInputs(MaterialsKevlar.TrimethylBorate.getFluid(1000)) - .noFluidOutputs() - .duration(30 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(9), MaterialsKevlar.SodiumHydride.getDust(64)) - .itemOutputs( - MaterialsKevlar.SodiumBorohydride.getDust(48), - MaterialsKevlar.SodiumMethoxide.getDust(64), - MaterialsKevlar.SodiumMethoxide.getDust(64), - MaterialsKevlar.SodiumMethoxide.getDust(16)) - .fluidInputs(MaterialsKevlar.TrimethylBorate.getFluid(8000)) - .noFluidOutputs() - .duration(30 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sMultiblockChemicalRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(1), MaterialsKevlar.SodiumHydride.getDust(8)) + .itemOutputs(MaterialsKevlar.SodiumBorohydride.getDust(6), MaterialsKevlar.SodiumMethoxide.getDust(18)) + .fluidInputs(MaterialsKevlar.TrimethylBorate.getFluid(1000)) + .noFluidOutputs() + .duration(30 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(9), MaterialsKevlar.SodiumHydride.getDust(64)) + .itemOutputs( + MaterialsKevlar.SodiumBorohydride.getDust(48), + MaterialsKevlar.SodiumMethoxide.getDust(64), + MaterialsKevlar.SodiumMethoxide.getDust(64), + MaterialsKevlar.SodiumMethoxide.getDust(16)) + .fluidInputs(MaterialsKevlar.TrimethylBorate.getFluid(8000)) + .noFluidOutputs() + .duration(30 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sMultiblockChemicalRecipes); // 2CH3COOH = CH3COCH3 + CO2 + H GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(0, Materials.Calcite.getDust(5)), - GT_Utility.getIntegratedCircuit(24)) - .noItemOutputs() - .fluidInputs(Materials.AceticAcid.getFluid(2000)) - .fluidOutputs( - Materials.Acetone.getFluid(1000), - Materials.CarbonDioxide.getGas(1000), - Materials.Water.getFluid(1000)) - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(0, Materials.Calcium.getDust(1)), - GT_Utility.getIntegratedCircuit(24)) - .noItemOutputs() - .fluidInputs(Materials.AceticAcid.getFluid(2000)) - .fluidOutputs( - Materials.Acetone.getFluid(1000), - Materials.CarbonDioxide.getGas(1000), - Materials.Water.getFluid(1000)) - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(0, Materials.Quicklime.getDust(2)), - GT_Utility.getIntegratedCircuit(24)) - .noItemOutputs() - .fluidInputs(Materials.AceticAcid.getFluid(2000)) - .fluidOutputs( - Materials.Acetone.getFluid(1000), - Materials.CarbonDioxide.getGas(1000), - Materials.Water.getFluid(1000)) - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMultiblockChemicalRecipes); + .itemInputs(GT_Utility.copyAmount(0, Materials.Calcite.getDust(5)), GT_Utility.getIntegratedCircuit(24)) + .noItemOutputs() + .fluidInputs(Materials.AceticAcid.getFluid(2000)) + .fluidOutputs( + Materials.Acetone.getFluid(1000), + Materials.CarbonDioxide.getGas(1000), + Materials.Water.getFluid(1000)) + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.copyAmount(0, Materials.Calcium.getDust(1)), GT_Utility.getIntegratedCircuit(24)) + .noItemOutputs() + .fluidInputs(Materials.AceticAcid.getFluid(2000)) + .fluidOutputs( + Materials.Acetone.getFluid(1000), + Materials.CarbonDioxide.getGas(1000), + Materials.Water.getFluid(1000)) + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.copyAmount(0, Materials.Quicklime.getDust(2)), GT_Utility.getIntegratedCircuit(24)) + .noItemOutputs() + .fluidInputs(Materials.AceticAcid.getFluid(2000)) + .fluidOutputs( + Materials.Acetone.getFluid(1000), + Materials.CarbonDioxide.getGas(1000), + Materials.Water.getFluid(1000)) + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sMultiblockChemicalRecipes); // C + 4H + O = CH3OH GT_Values.RA.stdBuilder() - .itemInputs(Materials.Carbon.getDust(1), GT_Utility.getIntegratedCircuit(23)) - .noItemOutputs() - .fluidInputs(Materials.Hydrogen.getGas(4000), Materials.Oxygen.getGas(1000)) - .fluidOutputs(Materials.Methanol.getFluid(1000)) - .duration(16 * SECONDS) - .eut(96) - .addTo(sMultiblockChemicalRecipes); + .itemInputs(Materials.Carbon.getDust(1), GT_Utility.getIntegratedCircuit(23)) + .noItemOutputs() + .fluidInputs(Materials.Hydrogen.getGas(4000), Materials.Oxygen.getGas(1000)) + .fluidOutputs(Materials.Methanol.getFluid(1000)) + .duration(16 * SECONDS) + .eut(96) + .addTo(sMultiblockChemicalRecipes); // This recipe collides with one for Vinyl Chloride // 2C + 4H + 2O = CH3COOH GT_Values.RA.stdBuilder() - .itemInputs(Materials.Carbon.getDust(2), GT_Utility.getIntegratedCircuit(24)) - .noItemOutputs() - .fluidInputs(Materials.Hydrogen.getGas(4000), Materials.Oxygen.getGas(2000)) - .fluidOutputs(Materials.AceticAcid.getFluid(1000)) - .duration(24 * SECONDS) - .eut(30) - .addTo(sMultiblockChemicalRecipes); + .itemInputs(Materials.Carbon.getDust(2), GT_Utility.getIntegratedCircuit(24)) + .noItemOutputs() + .fluidInputs(Materials.Hydrogen.getGas(4000), Materials.Oxygen.getGas(2000)) + .fluidOutputs(Materials.AceticAcid.getFluid(1000)) + .duration(24 * SECONDS) + .eut(30) + .addTo(sMultiblockChemicalRecipes); // 2CO + 4H = CH3COOH GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(24)) - .noItemOutputs() - .fluidInputs(Materials.CarbonMonoxide.getGas(2000), Materials.Hydrogen.getGas(4000)) - .fluidOutputs(Materials.AceticAcid.getFluid(1000)) - .duration(16 * SECONDS) - .eut(30) - .addTo(sMultiblockChemicalRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(24)) + .noItemOutputs() + .fluidInputs(Materials.CarbonMonoxide.getGas(2000), Materials.Hydrogen.getGas(4000)) + .fluidOutputs(Materials.AceticAcid.getFluid(1000)) + .duration(16 * SECONDS) + .eut(30) + .addTo(sMultiblockChemicalRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(8)) - .noItemOutputs() - .fluidInputs(Materials.Hydrogen.getGas(9000), Materials.Chlorine.getGas(9000)) - .fluidOutputs(Materials.HydrochloricAcid.getFluid(9000)) - .duration(7 * TICKS) - .eut(TierEU.RECIPE_HV) - .addTo(sMultiblockChemicalRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(8)) + .noItemOutputs() + .fluidInputs(Materials.Hydrogen.getGas(9000), Materials.Chlorine.getGas(9000)) + .fluidOutputs(Materials.HydrochloricAcid.getFluid(9000)) + .duration(7 * TICKS) + .eut(TierEU.RECIPE_HV) + .addTo(sMultiblockChemicalRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(2)) - .noItemOutputs() - .fluidInputs( - Materials.Chlorine.getGas(10000), - Materials.Water.getFluid(10000), - Materials.Mercury.getFluid(1000)) - .fluidOutputs(Materials.HypochlorousAcid.getFluid(10000), Materials.Hydrogen.getGas(10000)) - .duration(30 * SECONDS) - .eut(8) - .addTo(sMultiblockChemicalRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(2)) + .noItemOutputs() + .fluidInputs( + Materials.Chlorine.getGas(10000), + Materials.Water.getFluid(10000), + Materials.Mercury.getFluid(1000)) + .fluidOutputs(Materials.HypochlorousAcid.getFluid(10000), Materials.Hydrogen.getGas(10000)) + .duration(30 * SECONDS) + .eut(8) + .addTo(sMultiblockChemicalRecipes); // H2O + 4Cl + C3H6 + NaOH = C3H5ClO + NaCl·H2O + 2HCl GT_Values.RA.stdBuilder() - .itemInputs(Materials.SodiumHydroxide.getDust(3), GT_Utility.getIntegratedCircuit(23)) - .noItemOutputs() - .fluidInputs( - Materials.Propene.getGas(1000), - Materials.Chlorine.getGas(4000), - Materials.Water.getFluid(1000)) - .fluidOutputs( - Materials.Epichlorohydrin.getFluid(1000), - Materials.SaltWater.getFluid(1000), - Materials.HydrochloricAcid.getFluid(2000)) - .duration(32 * SECONDS) - .eut(30) - .addTo(sMultiblockChemicalRecipes); + .itemInputs(Materials.SodiumHydroxide.getDust(3), GT_Utility.getIntegratedCircuit(23)) + .noItemOutputs() + .fluidInputs( + Materials.Propene.getGas(1000), + Materials.Chlorine.getGas(4000), + Materials.Water.getFluid(1000)) + .fluidOutputs( + Materials.Epichlorohydrin.getFluid(1000), + Materials.SaltWater.getFluid(1000), + Materials.HydrochloricAcid.getFluid(2000)) + .duration(32 * SECONDS) + .eut(30) + .addTo(sMultiblockChemicalRecipes); // H2O + 2Cl + C3H6 + NaOH =Hg= C3H5ClO + NaCl·H2O + 2H GT_Values.RA.stdBuilder() - .itemInputs(Materials.SodiumHydroxide.getDust(3), GT_Utility.getIntegratedCircuit(24)) - .noItemOutputs() - .fluidInputs( - Materials.Propene.getGas(1000), - Materials.Chlorine.getGas(2000), - Materials.Water.getFluid(1000), - Materials.Mercury.getFluid(100)) - .fluidOutputs( - Materials.Epichlorohydrin.getFluid(1000), - Materials.SaltWater.getFluid(1000), - Materials.Hydrogen.getGas(2000)) - .duration(32 * SECONDS) - .eut(30) - .addTo(sMultiblockChemicalRecipes); + .itemInputs(Materials.SodiumHydroxide.getDust(3), GT_Utility.getIntegratedCircuit(24)) + .noItemOutputs() + .fluidInputs( + Materials.Propene.getGas(1000), + Materials.Chlorine.getGas(2000), + Materials.Water.getFluid(1000), + Materials.Mercury.getFluid(100)) + .fluidOutputs( + Materials.Epichlorohydrin.getFluid(1000), + Materials.SaltWater.getFluid(1000), + Materials.Hydrogen.getGas(2000)) + .duration(32 * SECONDS) + .eut(30) + .addTo(sMultiblockChemicalRecipes); // HClO + 2Cl + C3H6 + NaOH = C3H5ClO + NaCl·H2O + HCl GT_Values.RA.stdBuilder() - .itemInputs(Materials.SodiumHydroxide.getDust(3), GT_Utility.getIntegratedCircuit(24)) - .noItemOutputs() - .fluidInputs( - Materials.Propene.getGas(1000), - Materials.Chlorine.getGas(2000), - Materials.HypochlorousAcid.getFluid(1000)) - .fluidOutputs( - Materials.Epichlorohydrin.getFluid(1000), - Materials.SaltWater.getFluid(1000), - Materials.HydrochloricAcid.getFluid(1000)) - .duration(32 * SECONDS) - .eut(30) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Apatite.getDust(9)) - .itemOutputs(Materials.Gypsum.getDust(40)) - .fluidInputs(Materials.SulfuricAcid.getFluid(5000), Materials.Water.getFluid(10000)) - .fluidOutputs(Materials.PhosphoricAcid.getFluid(3000), Materials.HydrochloricAcid.getFluid(1000)) - .duration(16 * SECONDS) - .eut(30) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Phosphorus.getDust(4), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.PhosphorousPentoxide.getDust(14)) - .fluidInputs(Materials.Oxygen.getGas(10000)) - .noFluidOutputs() - .duration(2 * SECONDS) - .eut(30) - .addTo(sMultiblockChemicalRecipes); + .itemInputs(Materials.SodiumHydroxide.getDust(3), GT_Utility.getIntegratedCircuit(24)) + .noItemOutputs() + .fluidInputs( + Materials.Propene.getGas(1000), + Materials.Chlorine.getGas(2000), + Materials.HypochlorousAcid.getFluid(1000)) + .fluidOutputs( + Materials.Epichlorohydrin.getFluid(1000), + Materials.SaltWater.getFluid(1000), + Materials.HydrochloricAcid.getFluid(1000)) + .duration(32 * SECONDS) + .eut(30) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Apatite.getDust(9)) + .itemOutputs(Materials.Gypsum.getDust(40)) + .fluidInputs(Materials.SulfuricAcid.getFluid(5000), Materials.Water.getFluid(10000)) + .fluidOutputs(Materials.PhosphoricAcid.getFluid(3000), Materials.HydrochloricAcid.getFluid(1000)) + .duration(16 * SECONDS) + .eut(30) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Phosphorus.getDust(4), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.PhosphorousPentoxide.getDust(14)) + .fluidInputs(Materials.Oxygen.getGas(10000)) + .noFluidOutputs() + .duration(2 * SECONDS) + .eut(30) + .addTo(sMultiblockChemicalRecipes); // 2P + 5O + 3H2O = 2H3PO4 GT_Values.RA.stdBuilder() - .itemInputs(Materials.Phosphorus.getDust(1), GT_Utility.getIntegratedCircuit(24)) - .noItemOutputs() - .fluidInputs(Materials.Oxygen.getGas(2500), Materials.Water.getFluid(1500)) - .fluidOutputs(Materials.PhosphoricAcid.getFluid(1000)) - .duration(16 * SECONDS) - .eut(30) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .fluidInputs( - Materials.Propene.getGas(8000), - Materials.Benzene.getFluid(8000), - Materials.PhosphoricAcid.getFluid(1000)) - .fluidOutputs(Materials.Cumene.getFluid(8000)) - .duration(1 * MINUTES + 36 * SECONDS) - .eut(30) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(24)) - .noItemOutputs() - .fluidInputs( - Materials.Propene.getGas(1000), - Materials.Benzene.getFluid(1000), - Materials.PhosphoricAcid.getFluid(100), - Materials.Oxygen.getGas(2000)) - .fluidOutputs(Materials.Phenol.getFluid(1000), Materials.Acetone.getFluid(1000)) - .duration(24 * SECONDS) - .eut(30) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .fluidInputs( - Materials.Acetone.getFluid(1000), - Materials.Phenol.getFluid(2000), - Materials.HydrochloricAcid.getFluid(1000)) - .fluidOutputs(Materials.BisphenolA.getFluid(1000), Materials.Water.getFluid(1000)) - .duration(8 * SECONDS) - .eut(30) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.SodiumHydroxide.getDust(6), GT_Utility.getIntegratedCircuit(24)) - .noItemOutputs() - .fluidInputs( - Materials.Acetone.getFluid(1000), - Materials.Phenol.getFluid(2000), - Materials.HydrochloricAcid.getFluid(1000), - Materials.Epichlorohydrin.getFluid(2000)) - .fluidOutputs(Materials.Epoxid.getMolten(1000), Materials.SaltWater.getFluid(2000)) - .duration(24 * SECONDS) - .eut(30) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(9)) - .noItemOutputs() - .fluidInputs(Materials.Hydrogen.getGas(9000), Materials.Fluorine.getGas(9000)) - .fluidOutputs(Materials.HydrofluoricAcid.getFluid(9000)) - .duration(7 * TICKS) - .eut(TierEU.RECIPE_HV) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(24)) - .noItemOutputs() - .fluidInputs( - Materials.HydrofluoricAcid.getFluid(4000), - Materials.Methane.getGas(2000), - Materials.Chlorine.getGas(12000)) - .fluidOutputs( - Materials.Tetrafluoroethylene.getGas(1000), - Materials.HydrochloricAcid.getFluid(12000)) - .duration(27 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Silicon.getDust(1), GT_Utility.getIntegratedCircuit(24)) - .itemOutputs(Materials.Polydimethylsiloxane.getDust(3)) - .fluidInputs( - Materials.Methane.getGas(2000), - Materials.Chlorine.getGas(4000), - Materials.Water.getFluid(1000)) - .fluidOutputs( - Materials.HydrochloricAcid.getFluid(2000), - Materials.DilutedHydrochloricAcid.getFluid(2000)) - .duration(24 * SECONDS) - .eut(96) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Silicon.getDust(1), GT_Utility.getIntegratedCircuit(24)) - .itemOutputs(Materials.Polydimethylsiloxane.getDust(3)) - .fluidInputs(Materials.Methanol.getFluid(2000), Materials.HydrochloricAcid.getFluid(2000)) - .fluidOutputs(Materials.DilutedHydrochloricAcid.getFluid(2000)) - .duration(24 * SECONDS) - .eut(96) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(24)) - .noItemOutputs() - .fluidInputs(Materials.Nitrogen.getGas(10000), Materials.Hydrogen.getGas(30000)) - .fluidOutputs(Materials.Ammonia.getGas(10000)) - .duration(40 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMultiblockChemicalRecipes); + .itemInputs(Materials.Phosphorus.getDust(1), GT_Utility.getIntegratedCircuit(24)) + .noItemOutputs() + .fluidInputs(Materials.Oxygen.getGas(2500), Materials.Water.getFluid(1500)) + .fluidOutputs(Materials.PhosphoricAcid.getFluid(1000)) + .duration(16 * SECONDS) + .eut(30) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .fluidInputs( + Materials.Propene.getGas(8000), + Materials.Benzene.getFluid(8000), + Materials.PhosphoricAcid.getFluid(1000)) + .fluidOutputs(Materials.Cumene.getFluid(8000)) + .duration(1 * MINUTES + 36 * SECONDS) + .eut(30) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(24)) + .noItemOutputs() + .fluidInputs( + Materials.Propene.getGas(1000), + Materials.Benzene.getFluid(1000), + Materials.PhosphoricAcid.getFluid(100), + Materials.Oxygen.getGas(2000)) + .fluidOutputs(Materials.Phenol.getFluid(1000), Materials.Acetone.getFluid(1000)) + .duration(24 * SECONDS) + .eut(30) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .fluidInputs( + Materials.Acetone.getFluid(1000), + Materials.Phenol.getFluid(2000), + Materials.HydrochloricAcid.getFluid(1000)) + .fluidOutputs(Materials.BisphenolA.getFluid(1000), Materials.Water.getFluid(1000)) + .duration(8 * SECONDS) + .eut(30) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.SodiumHydroxide.getDust(6), GT_Utility.getIntegratedCircuit(24)) + .noItemOutputs() + .fluidInputs( + Materials.Acetone.getFluid(1000), + Materials.Phenol.getFluid(2000), + Materials.HydrochloricAcid.getFluid(1000), + Materials.Epichlorohydrin.getFluid(2000)) + .fluidOutputs(Materials.Epoxid.getMolten(1000), Materials.SaltWater.getFluid(2000)) + .duration(24 * SECONDS) + .eut(30) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(9)) + .noItemOutputs() + .fluidInputs(Materials.Hydrogen.getGas(9000), Materials.Fluorine.getGas(9000)) + .fluidOutputs(Materials.HydrofluoricAcid.getFluid(9000)) + .duration(7 * TICKS) + .eut(TierEU.RECIPE_HV) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(24)) + .noItemOutputs() + .fluidInputs( + Materials.HydrofluoricAcid.getFluid(4000), + Materials.Methane.getGas(2000), + Materials.Chlorine.getGas(12000)) + .fluidOutputs(Materials.Tetrafluoroethylene.getGas(1000), Materials.HydrochloricAcid.getFluid(12000)) + .duration(27 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Silicon.getDust(1), GT_Utility.getIntegratedCircuit(24)) + .itemOutputs(Materials.Polydimethylsiloxane.getDust(3)) + .fluidInputs( + Materials.Methane.getGas(2000), + Materials.Chlorine.getGas(4000), + Materials.Water.getFluid(1000)) + .fluidOutputs(Materials.HydrochloricAcid.getFluid(2000), Materials.DilutedHydrochloricAcid.getFluid(2000)) + .duration(24 * SECONDS) + .eut(96) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Silicon.getDust(1), GT_Utility.getIntegratedCircuit(24)) + .itemOutputs(Materials.Polydimethylsiloxane.getDust(3)) + .fluidInputs(Materials.Methanol.getFluid(2000), Materials.HydrochloricAcid.getFluid(2000)) + .fluidOutputs(Materials.DilutedHydrochloricAcid.getFluid(2000)) + .duration(24 * SECONDS) + .eut(96) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(24)) + .noItemOutputs() + .fluidInputs(Materials.Nitrogen.getGas(10000), Materials.Hydrogen.getGas(30000)) + .fluidOutputs(Materials.Ammonia.getGas(10000)) + .duration(40 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sMultiblockChemicalRecipes); // 2NH3 + 7O = N2O4 + 3H2O GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(23)) - .noItemOutputs() - .fluidInputs(Materials.Ammonia.getGas(2000), Materials.Oxygen.getGas(7000)) - .fluidOutputs(Materials.DinitrogenTetroxide.getGas(1000), Materials.Water.getFluid(3000)) - .duration(24 * SECONDS) - .eut(30) - .addTo(sMultiblockChemicalRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(23)) + .noItemOutputs() + .fluidInputs(Materials.Ammonia.getGas(2000), Materials.Oxygen.getGas(7000)) + .fluidOutputs(Materials.DinitrogenTetroxide.getGas(1000), Materials.Water.getFluid(3000)) + .duration(24 * SECONDS) + .eut(30) + .addTo(sMultiblockChemicalRecipes); // 7O + 6H + 2N = N2O4 + 3H2O GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(23)) - .noItemOutputs() - .fluidInputs( - Materials.Nitrogen.getGas(2000), - Materials.Hydrogen.getGas(6000), - Materials.Oxygen.getGas(7000)) - .fluidOutputs(Materials.DinitrogenTetroxide.getGas(1000), Materials.Water.getFluid(3000)) - .duration(55 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(9)) - .noItemOutputs() - .fluidInputs(Materials.Oxygen.getGas(100000), Materials.Ammonia.getGas(36000)) - .fluidOutputs(Materials.NitricOxide.getGas(36000), Materials.Water.getFluid(54000)) - .duration(8 * SECONDS + 10 * TICKS) - .eut(TierEU.RECIPE_HV) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(8)) - .noItemOutputs() - .fluidInputs(Materials.Oxygen.getGas(100000), Materials.Ammonia.getGas(36000)) - .fluidOutputs(Materials.NitricOxide.getGas(36000)) - .duration(8 * SECONDS + 10 * TICKS) - .eut(TierEU.RECIPE_HV) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(9)) - .noItemOutputs() - .fluidInputs(Materials.NitricOxide.getGas(9000), Materials.Oxygen.getGas(9000)) - .fluidOutputs(Materials.NitrogenDioxide.getGas(9000)) - .duration(4 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(9)) - .noItemOutputs() - .fluidInputs(Materials.NitrogenDioxide.getGas(27000), Materials.Water.getFluid(9000)) - .fluidOutputs(Materials.NitricAcid.getFluid(18000), Materials.NitricOxide.getGas(9000)) - .duration(6 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(24)) - .noItemOutputs() - .fluidInputs( - Materials.Hydrogen.getGas(3000), - Materials.Nitrogen.getGas(1000), - Materials.Oxygen.getGas(4000)) - .fluidOutputs(Materials.NitricAcid.getFluid(1000), Materials.Water.getFluid(1000)) - .duration(16 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(24)) - .noItemOutputs() - .fluidInputs(Materials.Ammonia.getGas(1000), Materials.Oxygen.getGas(4000)) - .fluidOutputs(Materials.NitricAcid.getFluid(1000), Materials.Water.getFluid(1000)) - .duration(16 * SECONDS) - .eut(30) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(24)) - .noItemOutputs() - .fluidInputs( - Materials.NitrogenDioxide.getGas(2000), - Materials.Oxygen.getGas(1000), - Materials.Water.getFluid(1000)) - .fluidOutputs(Materials.NitricAcid.getFluid(2000)) - .duration(16 * SECONDS) - .eut(30) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(9), Materials.Sulfur.getDust(9)) - .noItemOutputs() - .fluidInputs(Materials.Hydrogen.getGas(18000)) - .fluidOutputs(Materials.HydricSulfide.getGas(9000)) - .duration(4 * TICKS) - .eut(TierEU.RECIPE_MV) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(9), Materials.Sulfur.getDust(9)) - .noItemOutputs() - .fluidInputs(Materials.Oxygen.getGas(18000)) - .fluidOutputs(Materials.SulfurDioxide.getGas(9000)) - .duration(4 * TICKS) - .eut(TierEU.RECIPE_MV) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(9)) - .noItemOutputs() - .fluidInputs(Materials.HydricSulfide.getGas(9000), Materials.Oxygen.getGas(27000)) - .fluidOutputs(Materials.SulfurDioxide.getGas(9000), Materials.Water.getFluid(9000)) - .duration(3 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(8)) - .noItemOutputs() - .fluidInputs(Materials.HydricSulfide.getGas(9000), Materials.Oxygen.getGas(27000)) - .fluidOutputs(Materials.SulfurDioxide.getGas(9000)) - .duration(3 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(7)) - .itemOutputs(Materials.Sulfur.getDust(27)) - .fluidInputs(Materials.SulfurDioxide.getGas(9000), Materials.HydricSulfide.getGas(18000)) - .noFluidOutputs() - .duration(3 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(9)) - .noItemOutputs() - .fluidInputs(Materials.SulfurTrioxide.getGas(9000), Materials.Water.getFluid(9000)) - .fluidOutputs(Materials.SulfuricAcid.getFluid(9000)) - .duration(13 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMultiblockChemicalRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(23)) + .noItemOutputs() + .fluidInputs( + Materials.Nitrogen.getGas(2000), + Materials.Hydrogen.getGas(6000), + Materials.Oxygen.getGas(7000)) + .fluidOutputs(Materials.DinitrogenTetroxide.getGas(1000), Materials.Water.getFluid(3000)) + .duration(55 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(9)) + .noItemOutputs() + .fluidInputs(Materials.Oxygen.getGas(100000), Materials.Ammonia.getGas(36000)) + .fluidOutputs(Materials.NitricOxide.getGas(36000), Materials.Water.getFluid(54000)) + .duration(8 * SECONDS + 10 * TICKS) + .eut(TierEU.RECIPE_HV) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(8)) + .noItemOutputs() + .fluidInputs(Materials.Oxygen.getGas(100000), Materials.Ammonia.getGas(36000)) + .fluidOutputs(Materials.NitricOxide.getGas(36000)) + .duration(8 * SECONDS + 10 * TICKS) + .eut(TierEU.RECIPE_HV) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(9)) + .noItemOutputs() + .fluidInputs(Materials.NitricOxide.getGas(9000), Materials.Oxygen.getGas(9000)) + .fluidOutputs(Materials.NitrogenDioxide.getGas(9000)) + .duration(4 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(9)) + .noItemOutputs() + .fluidInputs(Materials.NitrogenDioxide.getGas(27000), Materials.Water.getFluid(9000)) + .fluidOutputs(Materials.NitricAcid.getFluid(18000), Materials.NitricOxide.getGas(9000)) + .duration(6 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(24)) + .noItemOutputs() + .fluidInputs( + Materials.Hydrogen.getGas(3000), + Materials.Nitrogen.getGas(1000), + Materials.Oxygen.getGas(4000)) + .fluidOutputs(Materials.NitricAcid.getFluid(1000), Materials.Water.getFluid(1000)) + .duration(16 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(24)) + .noItemOutputs() + .fluidInputs(Materials.Ammonia.getGas(1000), Materials.Oxygen.getGas(4000)) + .fluidOutputs(Materials.NitricAcid.getFluid(1000), Materials.Water.getFluid(1000)) + .duration(16 * SECONDS) + .eut(30) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(24)) + .noItemOutputs() + .fluidInputs( + Materials.NitrogenDioxide.getGas(2000), + Materials.Oxygen.getGas(1000), + Materials.Water.getFluid(1000)) + .fluidOutputs(Materials.NitricAcid.getFluid(2000)) + .duration(16 * SECONDS) + .eut(30) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(9), Materials.Sulfur.getDust(9)) + .noItemOutputs() + .fluidInputs(Materials.Hydrogen.getGas(18000)) + .fluidOutputs(Materials.HydricSulfide.getGas(9000)) + .duration(4 * TICKS) + .eut(TierEU.RECIPE_MV) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(9), Materials.Sulfur.getDust(9)) + .noItemOutputs() + .fluidInputs(Materials.Oxygen.getGas(18000)) + .fluidOutputs(Materials.SulfurDioxide.getGas(9000)) + .duration(4 * TICKS) + .eut(TierEU.RECIPE_MV) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(9)) + .noItemOutputs() + .fluidInputs(Materials.HydricSulfide.getGas(9000), Materials.Oxygen.getGas(27000)) + .fluidOutputs(Materials.SulfurDioxide.getGas(9000), Materials.Water.getFluid(9000)) + .duration(3 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(8)) + .noItemOutputs() + .fluidInputs(Materials.HydricSulfide.getGas(9000), Materials.Oxygen.getGas(27000)) + .fluidOutputs(Materials.SulfurDioxide.getGas(9000)) + .duration(3 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(7)) + .itemOutputs(Materials.Sulfur.getDust(27)) + .fluidInputs(Materials.SulfurDioxide.getGas(9000), Materials.HydricSulfide.getGas(18000)) + .noFluidOutputs() + .duration(3 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(9)) + .noItemOutputs() + .fluidInputs(Materials.SulfurTrioxide.getGas(9000), Materials.Water.getFluid(9000)) + .fluidOutputs(Materials.SulfuricAcid.getFluid(9000)) + .duration(13 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sMultiblockChemicalRecipes); // S + O3 + H2O = H2SO4 GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(24), Materials.Sulfur.getDust(1)) - .noItemOutputs() - .fluidInputs(Materials.Oxygen.getGas(3000), Materials.Water.getFluid(1000)) - .fluidOutputs(Materials.SulfuricAcid.getFluid(1000)) - .duration(24 * SECONDS) - .eut(30) - .addTo(sMultiblockChemicalRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(24), Materials.Sulfur.getDust(1)) + .noItemOutputs() + .fluidInputs(Materials.Oxygen.getGas(3000), Materials.Water.getFluid(1000)) + .fluidOutputs(Materials.SulfuricAcid.getFluid(1000)) + .duration(24 * SECONDS) + .eut(30) + .addTo(sMultiblockChemicalRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(7), Materials.Sulfur.getDust(9)) - .noItemOutputs() - .fluidInputs(Materials.Oxygen.getGas(27000), Materials.Water.getFluid(9000)) - .fluidOutputs(Materials.SulfuricAcid.getFluid(9000)) - .duration(13 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMultiblockChemicalRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(7), Materials.Sulfur.getDust(9)) + .noItemOutputs() + .fluidInputs(Materials.Oxygen.getGas(27000), Materials.Water.getFluid(9000)) + .fluidOutputs(Materials.SulfuricAcid.getFluid(9000)) + .duration(13 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sMultiblockChemicalRecipes); // H2S + O4 = H2SO4 GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(24)) - .noItemOutputs() - .fluidInputs(Materials.HydricSulfide.getGas(1000), Materials.Oxygen.getGas(4000)) - .fluidOutputs(Materials.SulfuricAcid.getFluid(1000)) - .duration(24 * SECONDS) - .eut(30) - .addTo(sMultiblockChemicalRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(24)) + .noItemOutputs() + .fluidInputs(Materials.HydricSulfide.getGas(1000), Materials.Oxygen.getGas(4000)) + .fluidOutputs(Materials.SulfuricAcid.getFluid(1000)) + .duration(24 * SECONDS) + .eut(30) + .addTo(sMultiblockChemicalRecipes); // SO2 + O + H2O = H2SO4 GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(24)) - .noItemOutputs() - .fluidInputs( - Materials.SulfurDioxide.getGas(1000), - Materials.Oxygen.getGas(1000), - Materials.Water.getFluid(1000)) - .fluidOutputs(Materials.SulfuricAcid.getFluid(1000)) - .duration(30 * SECONDS) - .eut(30) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(9)) - .noItemOutputs() - .fluidInputs( - Materials.SulfurDioxide.getGas(9000), - Materials.Oxygen.getGas(9000), - Materials.Water.getFluid(9000)) - .fluidOutputs(Materials.SulfuricAcid.getFluid(9000)) - .duration(7 * SECONDS + 10 * TICKS) - .eut(TierEU.RECIPE_HV) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(2)) - .noItemOutputs() - .fluidInputs( - Materials.HydrochloricAcid.getFluid(1000), - Materials.Ethylene.getGas(1000), - Materials.Oxygen.getGas(1000)) - .fluidOutputs(Materials.VinylChloride.getGas(1000), Materials.Water.getFluid(1000)) - .duration(8 * SECONDS) - .eut(30) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(24)) - .noItemOutputs() - .fluidInputs( - Materials.Chlorine.getGas(2000), - Materials.Ethylene.getGas(2000), - Materials.Oxygen.getGas(1000)) - .fluidOutputs(Materials.VinylChloride.getGas(2000), Materials.Water.getFluid(1000)) - .duration(12 * SECONDS) - .eut(30) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(Materials.RawRubber.getDust(18)) - .fluidInputs( - Materials.Isoprene.getFluid(1728), - Materials.Air.getGas(6000), - Materials.Titaniumtetrachloride.getFluid(80)) - .noFluidOutputs() - .duration(32 * SECONDS) - .eut(30) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(Materials.RawRubber.getDust(24)) - .fluidInputs( - Materials.Isoprene.getFluid(1728), - Materials.Oxygen.getGas(6000), - Materials.Titaniumtetrachloride.getFluid(80)) - .noFluidOutputs() - .duration(32 * SECONDS) - .eut(30) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(3)) - .itemOutputs(Materials.RawStyreneButadieneRubber.getDust(1)) - .fluidInputs( - Materials.Styrene.getFluid(36), - Materials.Butadiene.getGas(108), - Materials.Air.getGas(2000)) - .noFluidOutputs() - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(3)) - .itemOutputs(Materials.RawStyreneButadieneRubber.getDust(3)) - .fluidInputs( - Materials.Styrene.getFluid(72), - Materials.Butadiene.getGas(216), - Materials.Oxygen.getGas(2000)) - .noFluidOutputs() - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(4)) - .itemOutputs( - Materials.RawStyreneButadieneRubber.getDust(22), - Materials.RawStyreneButadieneRubber.getDustSmall(2)) - .fluidInputs( - Materials.Styrene.getFluid(540), - Materials.Butadiene.getGas(1620), - Materials.Titaniumtetrachloride.getFluid(100), - Materials.Air.getGas(15000)) - .noFluidOutputs() - .duration(32 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(4)) - .itemOutputs(Materials.RawStyreneButadieneRubber.getDust(30)) - .fluidInputs( - Materials.Styrene.getFluid(540), - Materials.Butadiene.getGas(1620), - Materials.Titaniumtetrachloride.getFluid(100), - Materials.Oxygen.getGas(7500)) - .noFluidOutputs() - .duration(32 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(9), Materials.Salt.getDust(18)) - .itemOutputs(Materials.SodiumBisulfate.getDust(63)) - .fluidInputs(Materials.SulfuricAcid.getFluid(9000)) - .fluidOutputs(Materials.HydrochloricAcid.getFluid(9000)) - .duration(6 * SECONDS + 15 * TICKS) - .eut(TierEU.RECIPE_MV) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(9), Materials.SodiumHydroxide.getDust(27)) - .itemOutputs(Materials.SodiumBisulfate.getDust(63)) - .fluidInputs(Materials.SulfuricAcid.getFluid(9000)) - .fluidOutputs(Materials.Water.getFluid(9000)) - .duration(6 * SECONDS + 15 * TICKS) - .eut(TierEU.RECIPE_MV) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(24)) - .noItemOutputs() - .fluidInputs( - Materials.Benzene.getFluid(1000), - Materials.Chlorine.getGas(2000), - Materials.Water.getFluid(1000)) - .fluidOutputs( - Materials.Phenol.getFluid(1000), - Materials.HydrochloricAcid.getFluid(1000), - Materials.DilutedHydrochloricAcid.getFluid(1000)) - .duration(28 * SECONDS) - .eut(30) - .addTo(sMultiblockChemicalRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(24)) + .noItemOutputs() + .fluidInputs( + Materials.SulfurDioxide.getGas(1000), + Materials.Oxygen.getGas(1000), + Materials.Water.getFluid(1000)) + .fluidOutputs(Materials.SulfuricAcid.getFluid(1000)) + .duration(30 * SECONDS) + .eut(30) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(9)) + .noItemOutputs() + .fluidInputs( + Materials.SulfurDioxide.getGas(9000), + Materials.Oxygen.getGas(9000), + Materials.Water.getFluid(9000)) + .fluidOutputs(Materials.SulfuricAcid.getFluid(9000)) + .duration(7 * SECONDS + 10 * TICKS) + .eut(TierEU.RECIPE_HV) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(2)) + .noItemOutputs() + .fluidInputs( + Materials.HydrochloricAcid.getFluid(1000), + Materials.Ethylene.getGas(1000), + Materials.Oxygen.getGas(1000)) + .fluidOutputs(Materials.VinylChloride.getGas(1000), Materials.Water.getFluid(1000)) + .duration(8 * SECONDS) + .eut(30) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(24)) + .noItemOutputs() + .fluidInputs( + Materials.Chlorine.getGas(2000), + Materials.Ethylene.getGas(2000), + Materials.Oxygen.getGas(1000)) + .fluidOutputs(Materials.VinylChloride.getGas(2000), Materials.Water.getFluid(1000)) + .duration(12 * SECONDS) + .eut(30) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(Materials.RawRubber.getDust(18)) + .fluidInputs( + Materials.Isoprene.getFluid(1728), + Materials.Air.getGas(6000), + Materials.Titaniumtetrachloride.getFluid(80)) + .noFluidOutputs() + .duration(32 * SECONDS) + .eut(30) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(Materials.RawRubber.getDust(24)) + .fluidInputs( + Materials.Isoprene.getFluid(1728), + Materials.Oxygen.getGas(6000), + Materials.Titaniumtetrachloride.getFluid(80)) + .noFluidOutputs() + .duration(32 * SECONDS) + .eut(30) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(3)) + .itemOutputs(Materials.RawStyreneButadieneRubber.getDust(1)) + .fluidInputs(Materials.Styrene.getFluid(36), Materials.Butadiene.getGas(108), Materials.Air.getGas(2000)) + .noFluidOutputs() + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(3)) + .itemOutputs(Materials.RawStyreneButadieneRubber.getDust(3)) + .fluidInputs(Materials.Styrene.getFluid(72), Materials.Butadiene.getGas(216), Materials.Oxygen.getGas(2000)) + .noFluidOutputs() + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(4)) + .itemOutputs( + Materials.RawStyreneButadieneRubber.getDust(22), + Materials.RawStyreneButadieneRubber.getDustSmall(2)) + .fluidInputs( + Materials.Styrene.getFluid(540), + Materials.Butadiene.getGas(1620), + Materials.Titaniumtetrachloride.getFluid(100), + Materials.Air.getGas(15000)) + .noFluidOutputs() + .duration(32 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(4)) + .itemOutputs(Materials.RawStyreneButadieneRubber.getDust(30)) + .fluidInputs( + Materials.Styrene.getFluid(540), + Materials.Butadiene.getGas(1620), + Materials.Titaniumtetrachloride.getFluid(100), + Materials.Oxygen.getGas(7500)) + .noFluidOutputs() + .duration(32 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(9), Materials.Salt.getDust(18)) + .itemOutputs(Materials.SodiumBisulfate.getDust(63)) + .fluidInputs(Materials.SulfuricAcid.getFluid(9000)) + .fluidOutputs(Materials.HydrochloricAcid.getFluid(9000)) + .duration(6 * SECONDS + 15 * TICKS) + .eut(TierEU.RECIPE_MV) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(9), Materials.SodiumHydroxide.getDust(27)) + .itemOutputs(Materials.SodiumBisulfate.getDust(63)) + .fluidInputs(Materials.SulfuricAcid.getFluid(9000)) + .fluidOutputs(Materials.Water.getFluid(9000)) + .duration(6 * SECONDS + 15 * TICKS) + .eut(TierEU.RECIPE_MV) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(24)) + .noItemOutputs() + .fluidInputs( + Materials.Benzene.getFluid(1000), + Materials.Chlorine.getGas(2000), + Materials.Water.getFluid(1000)) + .fluidOutputs( + Materials.Phenol.getFluid(1000), + Materials.HydrochloricAcid.getFluid(1000), + Materials.DilutedHydrochloricAcid.getFluid(1000)) + .duration(28 * SECONDS) + .eut(30) + .addTo(sMultiblockChemicalRecipes); // C6H6 + 2Cl + NaOH = C6H6O + NaCl + HCl GT_Values.RA.stdBuilder() - .itemInputs(Materials.SodiumHydroxide.getDust(6), GT_Utility.getIntegratedCircuit(24)) - .itemOutputs(Materials.Salt.getDust(4)) - .fluidInputs(Materials.Benzene.getFluid(2000), Materials.Chlorine.getGas(4000)) - .fluidOutputs(Materials.Phenol.getFluid(2000), Materials.HydrochloricAcid.getFluid(2000)) - .duration(56 * SECONDS) - .eut(30) - .addTo(sMultiblockChemicalRecipes); + .itemInputs(Materials.SodiumHydroxide.getDust(6), GT_Utility.getIntegratedCircuit(24)) + .itemOutputs(Materials.Salt.getDust(4)) + .fluidInputs(Materials.Benzene.getFluid(2000), Materials.Chlorine.getGas(4000)) + .fluidOutputs(Materials.Phenol.getFluid(2000), Materials.HydrochloricAcid.getFluid(2000)) + .duration(56 * SECONDS) + .eut(30) + .addTo(sMultiblockChemicalRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(24)) - .noItemOutputs() - .fluidInputs(Materials.LightFuel.getFluid(20000), Materials.HeavyFuel.getFluid(4000)) - .fluidOutputs(Materials.Fuel.getFluid(24000)) - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMultiblockChemicalRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(24)) + .noItemOutputs() + .fluidInputs(Materials.LightFuel.getFluid(20000), Materials.HeavyFuel.getFluid(4000)) + .fluidOutputs(Materials.Fuel.getFluid(24000)) + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sMultiblockChemicalRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(24)) - .noItemOutputs() - .fluidInputs(Materials.Fuel.getFluid(10000), Materials.Tetranitromethane.getFluid(200)) - .fluidOutputs(Materials.NitroFuel.getFluid(10000)) - .duration(6 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMultiblockChemicalRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(24)) + .noItemOutputs() + .fluidInputs(Materials.Fuel.getFluid(10000), Materials.Tetranitromethane.getFluid(200)) + .fluidOutputs(Materials.NitroFuel.getFluid(10000)) + .duration(6 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sMultiblockChemicalRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(24)) - .noItemOutputs() - .fluidInputs(Materials.BioDiesel.getFluid(10000), Materials.Tetranitromethane.getFluid(400)) - .fluidOutputs(Materials.NitroFuel.getFluid(9000)) - .duration(6 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMultiblockChemicalRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(24)) + .noItemOutputs() + .fluidInputs(Materials.BioDiesel.getFluid(10000), Materials.Tetranitromethane.getFluid(400)) + .fluidOutputs(Materials.NitroFuel.getFluid(9000)) + .duration(6 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sMultiblockChemicalRecipes); // CH4 + 2H2O = CO2 + 8H GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(11)) - .noItemOutputs() - .fluidInputs(Materials.Methane.getGas(5000), GT_ModHandler.getDistilledWater(10000)) - .fluidOutputs(Materials.CarbonDioxide.getGas(5000), Materials.Hydrogen.getGas(40000)) - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMultiblockChemicalRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(11)) + .noItemOutputs() + .fluidInputs(Materials.Methane.getGas(5000), GT_ModHandler.getDistilledWater(10000)) + .fluidOutputs(Materials.CarbonDioxide.getGas(5000), Materials.Hydrogen.getGas(40000)) + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sMultiblockChemicalRecipes); // CH4 + H2O = CO + 6H GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(12)) - .noItemOutputs() - .fluidInputs(Materials.Methane.getGas(5000), GT_ModHandler.getDistilledWater(5000)) - .fluidOutputs(Materials.CarbonMonoxide.getGas(5000), Materials.Hydrogen.getGas(30000)) - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(24)) - .noItemOutputs() - .fluidInputs(Materials.Nitrogen.getGas(20000), Materials.Oxygen.getGas(10000)) - .fluidOutputs(Materials.NitrousOxide.getGas(10000)) - .duration(2 * SECONDS + 10 * TICKS) - .eut(TierEU.RECIPE_HV) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(24)) - .noItemOutputs() - .fluidInputs( - Materials.Naphtha.getFluid(16000), - Materials.Gas.getGas(2000), - Materials.Methanol.getFluid(1000), - Materials.Acetone.getFluid(1000)) - .fluidOutputs(Materials.GasolineRaw.getFluid(20000)) - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(24)) - .noItemOutputs() - .fluidInputs(Materials.GasolineRaw.getFluid(10000), Materials.Toluene.getFluid(1000)) - .fluidOutputs(Materials.GasolineRegular.getFluid(11000)) - .duration(10 * TICKS) - .eut(TierEU.RECIPE_HV) - .addTo(sMultiblockChemicalRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(24)) - .noItemOutputs() - .fluidInputs( - Materials.GasolineRegular.getFluid(20000), - Materials.Octane.getFluid(2000), - Materials.NitrousOxide.getGas(6000), - Materials.Toluene.getFluid(1000), - Materials.AntiKnock.getFluid(3000)) - .fluidOutputs(Materials.GasolinePremium.getFluid(32000)) - .duration(2 * SECONDS + 10 * TICKS) - .eut(TierEU.RECIPE_EV) - .addTo(sMultiblockChemicalRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(12)) + .noItemOutputs() + .fluidInputs(Materials.Methane.getGas(5000), GT_ModHandler.getDistilledWater(5000)) + .fluidOutputs(Materials.CarbonMonoxide.getGas(5000), Materials.Hydrogen.getGas(30000)) + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(24)) + .noItemOutputs() + .fluidInputs(Materials.Nitrogen.getGas(20000), Materials.Oxygen.getGas(10000)) + .fluidOutputs(Materials.NitrousOxide.getGas(10000)) + .duration(2 * SECONDS + 10 * TICKS) + .eut(TierEU.RECIPE_HV) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(24)) + .noItemOutputs() + .fluidInputs( + Materials.Naphtha.getFluid(16000), + Materials.Gas.getGas(2000), + Materials.Methanol.getFluid(1000), + Materials.Acetone.getFluid(1000)) + .fluidOutputs(Materials.GasolineRaw.getFluid(20000)) + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(24)) + .noItemOutputs() + .fluidInputs(Materials.GasolineRaw.getFluid(10000), Materials.Toluene.getFluid(1000)) + .fluidOutputs(Materials.GasolineRegular.getFluid(11000)) + .duration(10 * TICKS) + .eut(TierEU.RECIPE_HV) + .addTo(sMultiblockChemicalRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(24)) + .noItemOutputs() + .fluidInputs( + Materials.GasolineRegular.getFluid(20000), + Materials.Octane.getFluid(2000), + Materials.NitrousOxide.getGas(6000), + Materials.Toluene.getFluid(1000), + Materials.AntiKnock.getFluid(3000)) + .fluidOutputs(Materials.GasolinePremium.getFluid(32000)) + .duration(2 * SECONDS + 10 * TICKS) + .eut(TierEU.RECIPE_EV) + .addTo(sMultiblockChemicalRecipes); // C2H6O + C4H8 = C6H14O GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(24)) - .noItemOutputs() - .fluidInputs(Materials.Ethanol.getFluid(1000), Materials.Butene.getGas(1000)) - .fluidOutputs(Materials.AntiKnock.getFluid(1000)) - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMultiblockChemicalRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(24)) + .noItemOutputs() + .fluidInputs(Materials.Ethanol.getFluid(1000), Materials.Butene.getGas(1000)) + .fluidOutputs(Materials.AntiKnock.getFluid(1000)) + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sMultiblockChemicalRecipes); // CH4O + C4H8 = C5H12O GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(24)) - .noItemOutputs() - .fluidInputs(Materials.Methanol.getFluid(1000), Materials.Butene.getGas(1000)) - .fluidOutputs(Materials.MTBEMixture.getGas(1000)) - .duration(20 * TICKS) - .eut(TierEU.RECIPE_HV) - .addTo(sMultiblockChemicalRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(24)) + .noItemOutputs() + .fluidInputs(Materials.Methanol.getFluid(1000), Materials.Butene.getGas(1000)) + .fluidOutputs(Materials.MTBEMixture.getGas(1000)) + .duration(20 * TICKS) + .eut(TierEU.RECIPE_HV) + .addTo(sMultiblockChemicalRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(24)) - .noItemOutputs() - .fluidInputs( - Materials.Naquadria.getMolten(4608), - Materials.ElectrumFlux.getMolten(4608), - Materials.Radon.getGas(16000)) - .fluidOutputs(Materials.EnrichedNaquadria.getFluid(9216)) - .duration(30 * SECONDS) - .eut(500000) - .addTo(sMultiblockChemicalRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(24)) + .noItemOutputs() + .fluidInputs( + Materials.Naquadria.getMolten(4608), + Materials.ElectrumFlux.getMolten(4608), + Materials.Radon.getGas(16000)) + .fluidOutputs(Materials.EnrichedNaquadria.getFluid(9216)) + .duration(30 * SECONDS) + .eut(500000) + .addTo(sMultiblockChemicalRecipes); if (GTNHLanthanides.isModLoaded() && GTPlusPlus.isModLoaded()) { // CH2O + 2C6H7N + HCl = C13H14N2(HCl) + H2O GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .fluidInputs( - new FluidStack(FluidRegistry.getFluid("formaldehyde"), 1000), - new FluidStack(FluidRegistry.getFluid("aniline"), 2000), - Materials.HydrochloricAcid.getFluid(1000)) - .fluidOutputs(MaterialsKevlar.DiaminodiphenylmethanMixture.getFluid(1000)) - .duration(60 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sMultiblockChemicalRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .fluidInputs( + new FluidStack(FluidRegistry.getFluid("formaldehyde"), 1000), + new FluidStack(FluidRegistry.getFluid("aniline"), 2000), + Materials.HydrochloricAcid.getFluid(1000)) + .fluidOutputs(MaterialsKevlar.DiaminodiphenylmethanMixture.getFluid(1000)) + .duration(60 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sMultiblockChemicalRecipes); // C6H5NO2 + 6H =Pd= C6H7N + 2H2O GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.getIntegratedCircuit(1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Palladium, 1)) - .noItemOutputs() - .fluidInputs( - new FluidStack(FluidRegistry.getFluid("nitrobenzene"), 9000), - Materials.Hydrogen.getGas(54000)) - .fluidOutputs( - Materials.Water.getFluid(18000), - new FluidStack(FluidRegistry.getFluid("aniline"), 9000)) - .duration(45 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sMultiblockChemicalRecipes); + .itemInputs( + GT_Utility.getIntegratedCircuit(1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Palladium, 1)) + .noItemOutputs() + .fluidInputs( + new FluidStack(FluidRegistry.getFluid("nitrobenzene"), 9000), + Materials.Hydrogen.getGas(54000)) + .fluidOutputs(Materials.Water.getFluid(18000), new FluidStack(FluidRegistry.getFluid("aniline"), 9000)) + .duration(45 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sMultiblockChemicalRecipes); // C6H6 + HNO3 =H2SO4= C6H5NO2 + H2O GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .fluidInputs( - Materials.Benzene.getFluid(5000), - Materials.SulfuricAcid.getFluid(3000), - Materials.NitricAcid.getFluid(5000), - GT_ModHandler.getDistilledWater(10000)) - .fluidOutputs( - new FluidStack(FluidRegistry.getFluid("nitrobenzene"), 5000), - Materials.DilutedSulfuricAcid.getFluid(3000)) - .duration(8 * TICKS) - .eut(TierEU.RECIPE_ZPM) - .addTo(sMultiblockChemicalRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .fluidInputs( + Materials.Benzene.getFluid(5000), + Materials.SulfuricAcid.getFluid(3000), + Materials.NitricAcid.getFluid(5000), + GT_ModHandler.getDistilledWater(10000)) + .fluidOutputs( + new FluidStack(FluidRegistry.getFluid("nitrobenzene"), 5000), + Materials.DilutedSulfuricAcid.getFluid(3000)) + .duration(8 * TICKS) + .eut(TierEU.RECIPE_ZPM) + .addTo(sMultiblockChemicalRecipes); // C13H14N2(HCl) + 2COCl2 = C15H10N2O2(5HCl) GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .fluidInputs( - MaterialsKevlar.DiaminodiphenylmethanMixture.getFluid(1000), - new FluidStack(FluidRegistry.getFluid("phosgene"), 2000)) - .fluidOutputs(MaterialsKevlar.DiphenylmethaneDiisocyanateMixture.getFluid(1000)) - .duration(30 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sMultiblockChemicalRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .fluidInputs( + MaterialsKevlar.DiaminodiphenylmethanMixture.getFluid(1000), + new FluidStack(FluidRegistry.getFluid("phosgene"), 2000)) + .fluidOutputs(MaterialsKevlar.DiphenylmethaneDiisocyanateMixture.getFluid(1000)) + .duration(30 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sMultiblockChemicalRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.getIntegratedCircuit(9), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Palladium, 1)) - .noItemOutputs() - .fluidInputs(MaterialsKevlar.Butyraldehyde.getFluid(9000), Materials.Hydrogen.getGas(18000)) - .fluidOutputs(new FluidStack(FluidRegistry.getFluid("butanol"), 9000)) - .duration(4 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMultiblockChemicalRecipes); + .itemInputs( + GT_Utility.getIntegratedCircuit(9), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Palladium, 1)) + .noItemOutputs() + .fluidInputs(MaterialsKevlar.Butyraldehyde.getFluid(9000), Materials.Hydrogen.getGas(18000)) + .fluidOutputs(new FluidStack(FluidRegistry.getFluid("butanol"), 9000)) + .duration(4 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sMultiblockChemicalRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.getIntegratedCircuit(1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Tin, 1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.KevlarCatalyst, 1)) - .fluidInputs( - new FluidStack(FluidRegistry.getFluid("butanol"), 2000), - new FluidStack(FluidRegistry.getFluid("propionicacid"), 1000), - Materials.IronIIIChloride.getFluid(100)) - .noFluidOutputs() - .duration(30 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sMultiblockChemicalRecipes); + .itemInputs( + GT_Utility.getIntegratedCircuit(1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Tin, 1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.KevlarCatalyst, 1)) + .fluidInputs( + new FluidStack(FluidRegistry.getFluid("butanol"), 2000), + new FluidStack(FluidRegistry.getFluid("propionicacid"), 1000), + Materials.IronIIIChloride.getFluid(100)) + .noFluidOutputs() + .duration(30 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sMultiblockChemicalRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.getIntegratedCircuit(9), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Tin, 9)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.KevlarCatalyst, 9)) - .fluidInputs( - new FluidStack(FluidRegistry.getFluid("butanol"), 18000), - new FluidStack(FluidRegistry.getFluid("propionicacid"), 9000), - Materials.IronIIIChloride.getFluid(900)) - .noFluidOutputs() - .duration(3 * MINUTES + 45 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sMultiblockChemicalRecipes); + .itemInputs( + GT_Utility.getIntegratedCircuit(9), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Tin, 9)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.KevlarCatalyst, 9)) + .fluidInputs( + new FluidStack(FluidRegistry.getFluid("butanol"), 18000), + new FluidStack(FluidRegistry.getFluid("propionicacid"), 9000), + Materials.IronIIIChloride.getFluid(900)) + .noFluidOutputs() + .duration(3 * MINUTES + 45 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sMultiblockChemicalRecipes); // C2H4 + CO + H2O =C4NiO= C3H6O2 GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .fluidInputs( - Materials.Ethylene.getGas(1000), - Materials.CarbonMonoxide.getGas(1000), - MaterialsKevlar.NickelTetracarbonyl.getFluid(100), - Materials.Water.getFluid(1000)) - .fluidOutputs(new FluidStack(FluidRegistry.getFluid("propionicacid"), 1000)) - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sMultiblockChemicalRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .fluidInputs( + Materials.Ethylene.getGas(1000), + Materials.CarbonMonoxide.getGas(1000), + MaterialsKevlar.NickelTetracarbonyl.getFluid(100), + Materials.Water.getFluid(1000)) + .fluidOutputs(new FluidStack(FluidRegistry.getFluid("propionicacid"), 1000)) + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sMultiblockChemicalRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(9)) - .noItemOutputs() - .fluidInputs( - Materials.Ethylene.getGas(9000), - Materials.CarbonMonoxide.getGas(9000), - MaterialsKevlar.NickelTetracarbonyl.getFluid(900), - Materials.Water.getFluid(9000)) - .fluidOutputs(new FluidStack(FluidRegistry.getFluid("propionicacid"), 9000)) - .duration(1 * MINUTES + 15 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sMultiblockChemicalRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(9)) + .noItemOutputs() + .fluidInputs( + Materials.Ethylene.getGas(9000), + Materials.CarbonMonoxide.getGas(9000), + MaterialsKevlar.NickelTetracarbonyl.getFluid(900), + Materials.Water.getFluid(9000)) + .fluidOutputs(new FluidStack(FluidRegistry.getFluid("propionicacid"), 9000)) + .duration(1 * MINUTES + 15 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sMultiblockChemicalRecipes); // C6H7N + HNO3 =H2SO4,C4H6O3= C6H6N2O2 + H2O GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(2)) - .noItemOutputs() - .fluidInputs( - new FluidStack(FluidRegistry.getFluid("aniline"), 1000), - new FluidStack(FluidRegistry.getFluid("molten.aceticanhydride"), 100), - Materials.NitrationMixture.getFluid(2000)) - .fluidOutputs( - MaterialsKevlar.IVNitroaniline.getFluid(1000), - Materials.DilutedSulfuricAcid.getFluid(1000)) - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sMultiblockChemicalRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(2)) + .noItemOutputs() + .fluidInputs( + new FluidStack(FluidRegistry.getFluid("aniline"), 1000), + new FluidStack(FluidRegistry.getFluid("molten.aceticanhydride"), 100), + Materials.NitrationMixture.getFluid(2000)) + .fluidOutputs( + MaterialsKevlar.IVNitroaniline.getFluid(1000), + Materials.DilutedSulfuricAcid.getFluid(1000)) + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sMultiblockChemicalRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(9)) - .noItemOutputs() - .fluidInputs( - new FluidStack(FluidRegistry.getFluid("aniline"), 9000), - new FluidStack(FluidRegistry.getFluid("molten.aceticanhydride"), 900), - Materials.NitrationMixture.getFluid(18000)) - .fluidOutputs( - MaterialsKevlar.IVNitroaniline.getFluid(9000), - Materials.DilutedSulfuricAcid.getFluid(9000)) - .duration(1 * MINUTES + 40 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sMultiblockChemicalRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(9)) + .noItemOutputs() + .fluidInputs( + new FluidStack(FluidRegistry.getFluid("aniline"), 9000), + new FluidStack(FluidRegistry.getFluid("molten.aceticanhydride"), 900), + Materials.NitrationMixture.getFluid(18000)) + .fluidOutputs( + MaterialsKevlar.IVNitroaniline.getFluid(9000), + Materials.DilutedSulfuricAcid.getFluid(9000)) + .duration(1 * MINUTES + 40 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sMultiblockChemicalRecipes); // C6H6N2O2 + 6H =Pd,NO2= C6H8N2 + 2H2O GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.getIntegratedCircuit(1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Palladium, 1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.ParaPhenylenediamine, 16)) - .fluidInputs( - Materials.NitrogenDioxide.getGas(100), - Materials.Hydrogen.getGas(6000), - MaterialsKevlar.IVNitroaniline.getFluid(1000)) - .fluidOutputs(Materials.Water.getFluid(2000)) - .duration(20 * SECONDS) - .eut(500000) - .addTo(sMultiblockChemicalRecipes); + .itemInputs( + GT_Utility.getIntegratedCircuit(1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Palladium, 1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.ParaPhenylenediamine, 16)) + .fluidInputs( + Materials.NitrogenDioxide.getGas(100), + Materials.Hydrogen.getGas(6000), + MaterialsKevlar.IVNitroaniline.getFluid(1000)) + .fluidOutputs(Materials.Water.getFluid(2000)) + .duration(20 * SECONDS) + .eut(500000) + .addTo(sMultiblockChemicalRecipes); // C4H10O2 =Cu= C4H6O2 + 4H GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.getIntegratedCircuit(1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Copper, 1)) - .noItemOutputs() - .fluidInputs(new FluidStack(FluidRegistry.getFluid("1,4-butanediol"), 1000)) - .fluidOutputs( - MaterialsKevlar.GammaButyrolactone.getFluid(1000), - Materials.Hydrogen.getGas(4000)) - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sMultiblockChemicalRecipes); + .itemInputs( + GT_Utility.getIntegratedCircuit(1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Copper, 1)) + .noItemOutputs() + .fluidInputs(new FluidStack(FluidRegistry.getFluid("1,4-butanediol"), 1000)) + .fluidOutputs(MaterialsKevlar.GammaButyrolactone.getFluid(1000), Materials.Hydrogen.getGas(4000)) + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sMultiblockChemicalRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.getIntegratedCircuit(9), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Copper, 9)) - .noItemOutputs() - .fluidInputs(new FluidStack(FluidRegistry.getFluid("1,4-butanediol"), 9000)) - .fluidOutputs( - MaterialsKevlar.GammaButyrolactone.getFluid(9000), - Materials.Hydrogen.getGas(36000)) - .duration(35 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sMultiblockChemicalRecipes); + .itemInputs( + GT_Utility.getIntegratedCircuit(9), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Copper, 9)) + .noItemOutputs() + .fluidInputs(new FluidStack(FluidRegistry.getFluid("1,4-butanediol"), 9000)) + .fluidOutputs(MaterialsKevlar.GammaButyrolactone.getFluid(9000), Materials.Hydrogen.getGas(36000)) + .duration(35 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sMultiblockChemicalRecipes); // 2CH2O + C2H2 =SiO2,CuO,Bi2O3= C4H6O2 GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.getIntegratedCircuit(1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.CupricOxide, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.BismuthIIIOxide, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconDioxide, 1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.IIButinIIVdiol, 12)) - .fluidInputs( - MaterialsKevlar.Acetylene.getGas(1000), - new FluidStack(FluidRegistry.getFluid("formaldehyde"), 2000)) - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sMultiblockChemicalRecipes); + .itemInputs( + GT_Utility.getIntegratedCircuit(1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.CupricOxide, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.BismuthIIIOxide, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconDioxide, 1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.IIButinIIVdiol, 12)) + .fluidInputs( + MaterialsKevlar.Acetylene.getGas(1000), + new FluidStack(FluidRegistry.getFluid("formaldehyde"), 2000)) + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sMultiblockChemicalRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.getIntegratedCircuit(9), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.CupricOxide, 9), - GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.BismuthIIIOxide, 9), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconDioxide, 9)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.IIButinIIVdiol, 64), - GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.IIButinIIVdiol, 44)) - .fluidInputs( - MaterialsKevlar.Acetylene.getGas(9000), - new FluidStack(FluidRegistry.getFluid("formaldehyde"), 18000)) - .noFluidOutputs() - .duration(2 * MINUTES + 30 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sMultiblockChemicalRecipes); + .itemInputs( + GT_Utility.getIntegratedCircuit(9), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.CupricOxide, 9), + GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.BismuthIIIOxide, 9), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconDioxide, 9)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.IIButinIIVdiol, 64), + GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.IIButinIIVdiol, 44)) + .fluidInputs( + MaterialsKevlar.Acetylene.getGas(9000), + new FluidStack(FluidRegistry.getFluid("formaldehyde"), 18000)) + .noFluidOutputs() + .duration(2 * MINUTES + 30 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sMultiblockChemicalRecipes); // C4H6O2 + 4H =NiAl= C4H10O2 GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.getIntegratedCircuit(1), - GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.IIButinIIVdiol, 12), - GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.RaneyNickelActivated, 1)) - .noItemOutputs() - .fluidInputs(Materials.Hydrogen.getGas(4000)) - .fluidOutputs(new FluidStack(FluidRegistry.getFluid("1,4-butanediol"), 1000)) - .duration(15 * SECONDS) - .eut(500000) - .addTo(sMultiblockChemicalRecipes); + .itemInputs( + GT_Utility.getIntegratedCircuit(1), + GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.IIButinIIVdiol, 12), + GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.RaneyNickelActivated, 1)) + .noItemOutputs() + .fluidInputs(Materials.Hydrogen.getGas(4000)) + .fluidOutputs(new FluidStack(FluidRegistry.getFluid("1,4-butanediol"), 1000)) + .duration(15 * SECONDS) + .eut(500000) + .addTo(sMultiblockChemicalRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.getIntegratedCircuit(1), - getModItem(GTPlusPlus.ID, "itemDustCalciumChloride", 1), - GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.ParaPhenylenediamine, 9), - GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.TerephthaloylChloride, 9)) - .noItemOutputs() - .fluidInputs(MaterialsKevlar.NMethylIIPyrrolidone.getFluid(1000)) - .fluidOutputs( - MaterialsKevlar.LiquidCrystalKevlar.getFluid(9000), - Materials.DilutedHydrochloricAcid.getFluid(2000)) - .duration(30 * SECONDS) - .eut(500000) - .addTo(sMultiblockChemicalRecipes); + .itemInputs( + GT_Utility.getIntegratedCircuit(1), + getModItem(GTPlusPlus.ID, "itemDustCalciumChloride", 1), + GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.ParaPhenylenediamine, 9), + GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.TerephthaloylChloride, 9)) + .noItemOutputs() + .fluidInputs(MaterialsKevlar.NMethylIIPyrrolidone.getFluid(1000)) + .fluidOutputs( + MaterialsKevlar.LiquidCrystalKevlar.getFluid(9000), + Materials.DilutedHydrochloricAcid.getFluid(2000)) + .duration(30 * SECONDS) + .eut(500000) + .addTo(sMultiblockChemicalRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.getIntegratedCircuit(9), - getModItem(GTPlusPlus.ID, "itemDustCalciumChloride", 7), - GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.ParaPhenylenediamine, 63), - GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.TerephthaloylChloride, 63)) - .noItemOutputs() - .fluidInputs(MaterialsKevlar.NMethylIIPyrrolidone.getFluid(7000)) - .fluidOutputs( - MaterialsKevlar.LiquidCrystalKevlar.getFluid(63000), - Materials.DilutedHydrochloricAcid.getFluid(14000)) - .duration(2 * MINUTES + 55 * SECONDS) - .eut(500000) - .addTo(sMultiblockChemicalRecipes); + .itemInputs( + GT_Utility.getIntegratedCircuit(9), + getModItem(GTPlusPlus.ID, "itemDustCalciumChloride", 7), + GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.ParaPhenylenediamine, 63), + GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.TerephthaloylChloride, 63)) + .noItemOutputs() + .fluidInputs(MaterialsKevlar.NMethylIIPyrrolidone.getFluid(7000)) + .fluidOutputs( + MaterialsKevlar.LiquidCrystalKevlar.getFluid(63000), + Materials.DilutedHydrochloricAcid.getFluid(14000)) + .duration(2 * MINUTES + 55 * SECONDS) + .eut(500000) + .addTo(sMultiblockChemicalRecipes); // Na2B4O7(H2O)10 + 2HCl = 2NaCl + 4H3BO3 + 5H2O GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.getIntegratedCircuit(1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Borax, 23)) - .itemOutputs(Materials.Salt.getDust(4)) - .fluidInputs(Materials.HydrochloricAcid.getFluid(2000)) - .fluidOutputs( - new FluidStack(FluidRegistry.getFluid("boricacid"), 4000), - Materials.Water.getFluid(5000)) - .duration(40 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMultiblockChemicalRecipes); + .itemInputs( + GT_Utility.getIntegratedCircuit(1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Borax, 23)) + .itemOutputs(Materials.Salt.getDust(4)) + .fluidInputs(Materials.HydrochloricAcid.getFluid(2000)) + .fluidOutputs(new FluidStack(FluidRegistry.getFluid("boricacid"), 4000), Materials.Water.getFluid(5000)) + .duration(40 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sMultiblockChemicalRecipes); // H3BO3 + 3CH4O =H2SO4= C3H9BO3 + 3H2O GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .fluidInputs( - Materials.Methanol.getFluid(3000), - new FluidStack(FluidRegistry.getFluid("boricacid"), 1000), - Materials.SulfuricAcid.getFluid(6000)) - .fluidOutputs( - Materials.DilutedSulfuricAcid.getFluid(6000), - MaterialsKevlar.TrimethylBorate.getFluid(1000)) - .duration(30 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sMultiblockChemicalRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .fluidInputs( + Materials.Methanol.getFluid(3000), + new FluidStack(FluidRegistry.getFluid("boricacid"), 1000), + Materials.SulfuricAcid.getFluid(6000)) + .fluidOutputs( + Materials.DilutedSulfuricAcid.getFluid(6000), + MaterialsKevlar.TrimethylBorate.getFluid(1000)) + .duration(30 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sMultiblockChemicalRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(9)) - .noItemOutputs() - .fluidInputs( - Materials.Methanol.getFluid(27000), - new FluidStack(FluidRegistry.getFluid("boricacid"), 9000), - Materials.SulfuricAcid.getFluid(54000)) - .fluidOutputs( - Materials.DilutedSulfuricAcid.getFluid(54000), - MaterialsKevlar.TrimethylBorate.getFluid(9000)) - .duration(3 * MINUTES + 45 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sMultiblockChemicalRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(9)) + .noItemOutputs() + .fluidInputs( + Materials.Methanol.getFluid(27000), + new FluidStack(FluidRegistry.getFluid("boricacid"), 9000), + Materials.SulfuricAcid.getFluid(54000)) + .fluidOutputs( + Materials.DilutedSulfuricAcid.getFluid(54000), + MaterialsKevlar.TrimethylBorate.getFluid(9000)) + .duration(3 * MINUTES + 45 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sMultiblockChemicalRecipes); // RhCl3 + 3C18H15P + 3NaBH4 + CO = RhC55H46P3O + 3NaCl + 3B + 11H GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.getIntegratedCircuit(1), - GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.RhodiumChloride, 4), - MaterialsKevlar.Triphenylphosphene.getDust(64), - MaterialsKevlar.Triphenylphosphene.getDust(38), - MaterialsKevlar.SodiumBorohydride.getDust(18)) - .itemOutputs( - MaterialsKevlar.OrganorhodiumCatalyst.getDust(64), - MaterialsKevlar.OrganorhodiumCatalyst.getDust(42), - Materials.Salt.getDust(6), - Materials.Boron.getDust(3)) - .fluidInputs(Materials.CarbonMonoxide.getGas(1000)) - .fluidOutputs(Materials.Hydrogen.getGas(11000)) - .duration(40 * SECONDS) - .eut(500000) - .addTo(sMultiblockChemicalRecipes); + .itemInputs( + GT_Utility.getIntegratedCircuit(1), + GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.RhodiumChloride, 4), + MaterialsKevlar.Triphenylphosphene.getDust(64), + MaterialsKevlar.Triphenylphosphene.getDust(38), + MaterialsKevlar.SodiumBorohydride.getDust(18)) + .itemOutputs( + MaterialsKevlar.OrganorhodiumCatalyst.getDust(64), + MaterialsKevlar.OrganorhodiumCatalyst.getDust(42), + Materials.Salt.getDust(6), + Materials.Boron.getDust(3)) + .fluidInputs(Materials.CarbonMonoxide.getGas(1000)) + .fluidOutputs(Materials.Hydrogen.getGas(11000)) + .duration(40 * SECONDS) + .eut(500000) + .addTo(sMultiblockChemicalRecipes); // 2NaOH + N2H4 =Mn= 2N + 2H2O + 2NaH GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.getIntegratedCircuit(9), - Materials.SodiumHydroxide.getDust(6), - Materials.Manganese.getDustTiny(1)) - .itemOutputs(MaterialsKevlar.SodiumHydride.getDust(4)) - .fluidInputs(new FluidStack(FluidRegistry.getFluid("hydrazine"), 1000)) - .fluidOutputs(Materials.Nitrogen.getGas(2000), Materials.Water.getFluid(2000)) - .duration(10 * TICKS) - .eut(TierEU.RECIPE_EV) - .addTo(sMultiblockChemicalRecipes); + .itemInputs( + GT_Utility.getIntegratedCircuit(9), + Materials.SodiumHydroxide.getDust(6), + Materials.Manganese.getDustTiny(1)) + .itemOutputs(MaterialsKevlar.SodiumHydride.getDust(4)) + .fluidInputs(new FluidStack(FluidRegistry.getFluid("hydrazine"), 1000)) + .fluidOutputs(Materials.Nitrogen.getGas(2000), Materials.Water.getFluid(2000)) + .duration(10 * TICKS) + .eut(TierEU.RECIPE_EV) + .addTo(sMultiblockChemicalRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.getIntegratedCircuit(18), - Materials.SodiumHydroxide.getDust(54), - Materials.Manganese.getDust(1)) - .itemOutputs(MaterialsKevlar.SodiumHydride.getDust(36)) - .fluidInputs(new FluidStack(FluidRegistry.getFluid("hydrazine"), 9000)) - .fluidOutputs(Materials.Nitrogen.getGas(18000), Materials.Water.getFluid(18000)) - .duration(3 * SECONDS + 10 * TICKS) - .eut(TierEU.RECIPE_EV) - .addTo(sMultiblockChemicalRecipes); + .itemInputs( + GT_Utility.getIntegratedCircuit(18), + Materials.SodiumHydroxide.getDust(54), + Materials.Manganese.getDust(1)) + .itemOutputs(MaterialsKevlar.SodiumHydride.getDust(36)) + .fluidInputs(new FluidStack(FluidRegistry.getFluid("hydrazine"), 9000)) + .fluidOutputs(Materials.Nitrogen.getGas(18000), Materials.Water.getFluid(18000)) + .duration(3 * SECONDS + 10 * TICKS) + .eut(TierEU.RECIPE_EV) + .addTo(sMultiblockChemicalRecipes); } } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/CircuitAssemblerRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/CircuitAssemblerRecipes.java index 0be78dc630..4a4f1b7c59 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/CircuitAssemblerRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/CircuitAssemblerRecipes.java @@ -28,177 +28,177 @@ public class CircuitAssemblerRecipes implements Runnable { for (Materials tMat : solderingMats) { int tMultiplier = tMat.contains(SubTag.SOLDERING_MATERIAL_GOOD) ? 1 - : tMat.contains(SubTag.SOLDERING_MATERIAL_BAD) ? 4 : 2; + : tMat.contains(SubTag.SOLDERING_MATERIAL_BAD) ? 4 : 2; // Railcraft Circuits GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Circuit_Board_Coated_Basic.get(1), - GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Basic, 1), - ItemList.Cover_Controller.get(1)) - .itemOutputs(getModItem(Railcraft.ID, "part.circuit", 4L, 0)) - .fluidInputs(tMat.getMolten(144L * tMultiplier / 2)) - .noFluidOutputs() - .duration(15 * SECONDS) - .eut((int) TierEU.RECIPE_LV) - .addTo(sCircuitAssemblerRecipes); + .itemInputs( + ItemList.Circuit_Board_Coated_Basic.get(1), + GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Basic, 1), + ItemList.Cover_Controller.get(1)) + .itemOutputs(getModItem(Railcraft.ID, "part.circuit", 4L, 0)) + .fluidInputs(tMat.getMolten(144L * tMultiplier / 2)) + .noFluidOutputs() + .duration(15 * SECONDS) + .eut((int) TierEU.RECIPE_LV) + .addTo(sCircuitAssemblerRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Circuit_Board_Coated_Basic.get(1), - GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Basic, 1), - ItemList.Sensor_LV.get(1)) - .itemOutputs(getModItem(Railcraft.ID, "part.circuit", 4L, 1)) - .fluidInputs(tMat.getMolten(144L * tMultiplier / 2)) - .noFluidOutputs() - .duration(15 * SECONDS) - .eut((int) TierEU.RECIPE_LV) - .addTo(sCircuitAssemblerRecipes); + .itemInputs( + ItemList.Circuit_Board_Coated_Basic.get(1), + GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Basic, 1), + ItemList.Sensor_LV.get(1)) + .itemOutputs(getModItem(Railcraft.ID, "part.circuit", 4L, 1)) + .fluidInputs(tMat.getMolten(144L * tMultiplier / 2)) + .noFluidOutputs() + .duration(15 * SECONDS) + .eut((int) TierEU.RECIPE_LV) + .addTo(sCircuitAssemblerRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Circuit_Board_Coated_Basic.get(1), - GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Basic, 1), - getModItem(Railcraft.ID, "part.signal.lamp", 1L, 0)) - .itemOutputs(getModItem(Railcraft.ID, "part.circuit", 4L, 2)) - .fluidInputs(tMat.getMolten(144L * tMultiplier / 2)) - .noFluidOutputs() - .duration(15 * SECONDS) - .eut((int) TierEU.RECIPE_LV) - .addTo(sCircuitAssemblerRecipes); + .itemInputs( + ItemList.Circuit_Board_Coated_Basic.get(1), + GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Basic, 1), + getModItem(Railcraft.ID, "part.signal.lamp", 1L, 0)) + .itemOutputs(getModItem(Railcraft.ID, "part.circuit", 4L, 2)) + .fluidInputs(tMat.getMolten(144L * tMultiplier / 2)) + .noFluidOutputs() + .duration(15 * SECONDS) + .eut((int) TierEU.RECIPE_LV) + .addTo(sCircuitAssemblerRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Circuit_Board_Phenolic_Good.get(1), - GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Good, 1), - ItemList.Cover_Controller.get(1)) - .itemOutputs(getModItem(Railcraft.ID, "part.circuit", 8L, 0)) - .fluidInputs(tMat.getMolten(144L * tMultiplier / 2)) - .noFluidOutputs() - .duration(20 * SECONDS) - .eut((int) TierEU.RECIPE_LV) - .addTo(sCircuitAssemblerRecipes); + .itemInputs( + ItemList.Circuit_Board_Phenolic_Good.get(1), + GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Good, 1), + ItemList.Cover_Controller.get(1)) + .itemOutputs(getModItem(Railcraft.ID, "part.circuit", 8L, 0)) + .fluidInputs(tMat.getMolten(144L * tMultiplier / 2)) + .noFluidOutputs() + .duration(20 * SECONDS) + .eut((int) TierEU.RECIPE_LV) + .addTo(sCircuitAssemblerRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Circuit_Board_Phenolic_Good.get(1), - GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Good, 1), - ItemList.Sensor_LV.get(1)) - .itemOutputs(getModItem(Railcraft.ID, "part.circuit", 8L, 1)) - .fluidInputs(tMat.getMolten(144L * tMultiplier / 2)) - .noFluidOutputs() - .duration(20 * SECONDS) - .eut((int) TierEU.RECIPE_LV) - .addTo(sCircuitAssemblerRecipes); + .itemInputs( + ItemList.Circuit_Board_Phenolic_Good.get(1), + GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Good, 1), + ItemList.Sensor_LV.get(1)) + .itemOutputs(getModItem(Railcraft.ID, "part.circuit", 8L, 1)) + .fluidInputs(tMat.getMolten(144L * tMultiplier / 2)) + .noFluidOutputs() + .duration(20 * SECONDS) + .eut((int) TierEU.RECIPE_LV) + .addTo(sCircuitAssemblerRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Circuit_Board_Phenolic_Good.get(1), - GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Good, 1), - getModItem(Railcraft.ID, "part.signal.lamp", 1L, 0)) - .itemOutputs(getModItem(Railcraft.ID, "part.circuit", 8L, 2)) - .fluidInputs(tMat.getMolten(144L * tMultiplier / 2)) - .noFluidOutputs() - .duration(20 * SECONDS) - .eut((int) TierEU.RECIPE_LV) - .addTo(sCircuitAssemblerRecipes); + .itemInputs( + ItemList.Circuit_Board_Phenolic_Good.get(1), + GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Good, 1), + getModItem(Railcraft.ID, "part.signal.lamp", 1L, 0)) + .itemOutputs(getModItem(Railcraft.ID, "part.circuit", 8L, 2)) + .fluidInputs(tMat.getMolten(144L * tMultiplier / 2)) + .noFluidOutputs() + .duration(20 * SECONDS) + .eut((int) TierEU.RECIPE_LV) + .addTo(sCircuitAssemblerRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Circuit_Board_Epoxy_Advanced.get(1), - GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Advanced, 1), - ItemList.Cover_Controller.get(1)) - .itemOutputs(getModItem(Railcraft.ID, "part.circuit", 16L, 0)) - .fluidInputs(tMat.getMolten(144L * tMultiplier / 2)) - .noFluidOutputs() - .duration(25 * SECONDS) - .eut((int) TierEU.RECIPE_LV) - .addTo(sCircuitAssemblerRecipes); + .itemInputs( + ItemList.Circuit_Board_Epoxy_Advanced.get(1), + GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Advanced, 1), + ItemList.Cover_Controller.get(1)) + .itemOutputs(getModItem(Railcraft.ID, "part.circuit", 16L, 0)) + .fluidInputs(tMat.getMolten(144L * tMultiplier / 2)) + .noFluidOutputs() + .duration(25 * SECONDS) + .eut((int) TierEU.RECIPE_LV) + .addTo(sCircuitAssemblerRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Circuit_Board_Epoxy_Advanced.get(1), - GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Advanced, 1), - ItemList.Sensor_LV.get(1)) - .itemOutputs(getModItem(Railcraft.ID, "part.circuit", 16L, 1)) - .fluidInputs(tMat.getMolten(144L * tMultiplier / 2)) - .noFluidOutputs() - .duration(25 * SECONDS) - .eut((int) TierEU.RECIPE_LV) - .addTo(sCircuitAssemblerRecipes); + .itemInputs( + ItemList.Circuit_Board_Epoxy_Advanced.get(1), + GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Advanced, 1), + ItemList.Sensor_LV.get(1)) + .itemOutputs(getModItem(Railcraft.ID, "part.circuit", 16L, 1)) + .fluidInputs(tMat.getMolten(144L * tMultiplier / 2)) + .noFluidOutputs() + .duration(25 * SECONDS) + .eut((int) TierEU.RECIPE_LV) + .addTo(sCircuitAssemblerRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Circuit_Board_Epoxy_Advanced.get(1), - GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Advanced, 1), - getModItem(Railcraft.ID, "part.signal.lamp", 1L, 0)) - .itemOutputs(getModItem(Railcraft.ID, "part.circuit", 16L, 2)) - .fluidInputs(tMat.getMolten(144L * tMultiplier / 2)) - .noFluidOutputs() - .duration(25 * SECONDS) - .eut((int) TierEU.RECIPE_LV) - .addTo(sCircuitAssemblerRecipes); + .itemInputs( + ItemList.Circuit_Board_Epoxy_Advanced.get(1), + GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Advanced, 1), + getModItem(Railcraft.ID, "part.signal.lamp", 1L, 0)) + .itemOutputs(getModItem(Railcraft.ID, "part.circuit", 16L, 2)) + .fluidInputs(tMat.getMolten(144L * tMultiplier / 2)) + .noFluidOutputs() + .duration(25 * SECONDS) + .eut((int) TierEU.RECIPE_LV) + .addTo(sCircuitAssemblerRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Circuit_Board_Coated_Basic.get(1), - GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Primitive, 2), - GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Iron, 2), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Iron, 4), - GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Iron, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(getModItem(Forestry.ID, "chipsets", 1L, 0)) - .fluidInputs(tMat.getMolten(1152L * tMultiplier / 2)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut((int) TierEU.RECIPE_LV) - .addTo(sCircuitAssemblerRecipes); + .itemInputs( + ItemList.Circuit_Board_Coated_Basic.get(1), + GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Primitive, 2), + GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Iron, 2), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Iron, 4), + GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Iron, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(getModItem(Forestry.ID, "chipsets", 1L, 0)) + .fluidInputs(tMat.getMolten(1152L * tMultiplier / 2)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut((int) TierEU.RECIPE_LV) + .addTo(sCircuitAssemblerRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Circuit_Board_Coated_Basic.get(1), - GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Basic, 2), - GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Bronze, 2), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Bronze, 4), - GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Bronze, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(getModItem(Forestry.ID, "chipsets", 1L, 1)) - .fluidInputs(tMat.getMolten(1152L * tMultiplier / 2)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut((int) TierEU.RECIPE_LV) - .addTo(sCircuitAssemblerRecipes); + .itemInputs( + ItemList.Circuit_Board_Coated_Basic.get(1), + GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Basic, 2), + GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Bronze, 2), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Bronze, 4), + GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Bronze, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(getModItem(Forestry.ID, "chipsets", 1L, 1)) + .fluidInputs(tMat.getMolten(1152L * tMultiplier / 2)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut((int) TierEU.RECIPE_LV) + .addTo(sCircuitAssemblerRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Circuit_Board_Phenolic_Good.get(1), - GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Good, 2), - GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Steel, 2), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Steel, 4), - GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Steel, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(getModItem(Forestry.ID, "chipsets", 1L, 2)) - .fluidInputs(tMat.getMolten(1152L * tMultiplier / 2)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut((int) TierEU.RECIPE_LV) - .addTo(sCircuitAssemblerRecipes); + .itemInputs( + ItemList.Circuit_Board_Phenolic_Good.get(1), + GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Good, 2), + GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Steel, 2), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Steel, 4), + GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Steel, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(getModItem(Forestry.ID, "chipsets", 1L, 2)) + .fluidInputs(tMat.getMolten(1152L * tMultiplier / 2)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut((int) TierEU.RECIPE_LV) + .addTo(sCircuitAssemblerRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Circuit_Board_Phenolic_Good.get(1), - GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Advanced, 2), - GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Electrum, 2), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Electrum, 4), - GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Electrum, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(getModItem(Forestry.ID, "chipsets", 1L, 3)) - .fluidInputs(tMat.getMolten(1152L * tMultiplier / 2)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut((int) TierEU.RECIPE_LV) - .addTo(sCircuitAssemblerRecipes); + .itemInputs( + ItemList.Circuit_Board_Phenolic_Good.get(1), + GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Advanced, 2), + GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Electrum, 2), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Electrum, 4), + GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Electrum, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(getModItem(Forestry.ID, "chipsets", 1L, 3)) + .fluidInputs(tMat.getMolten(1152L * tMultiplier / 2)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut((int) TierEU.RECIPE_LV) + .addTo(sCircuitAssemblerRecipes); } } @@ -211,128 +211,128 @@ public class CircuitAssemblerRecipes implements Runnable { // alternative version of the copper electron tube GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.RedAlloy, 1), - GT_OreDictUnificator.get(OrePrefixes.bolt, Materials.Gold, 2), - GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Copper, 2), - GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.AnnealedCopper, 2)) - .itemOutputs(getModItem(Forestry.ID, "thermionicTubes", 4L, 0)) - .fluidInputs(Materials.Glass.getMolten(576)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut((int) TierEU.RECIPE_LV) - .addTo(sCircuitAssemblerRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.RedAlloy, 1), + GT_OreDictUnificator.get(OrePrefixes.bolt, Materials.Gold, 2), + GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Copper, 2), + GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.AnnealedCopper, 2)) + .itemOutputs(getModItem(Forestry.ID, "thermionicTubes", 4L, 0)) + .fluidInputs(Materials.Glass.getMolten(576)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut((int) TierEU.RECIPE_LV) + .addTo(sCircuitAssemblerRecipes); // alternative version of the iron electron tube GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.RedAlloy, 1), - GT_OreDictUnificator.get(OrePrefixes.bolt, Materials.Gold, 2), - GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Copper, 2), - GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.WroughtIron, 2)) - .itemOutputs(getModItem(Forestry.ID, "thermionicTubes", 4L, 3)) - .fluidInputs(Materials.Glass.getMolten(576)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut((int) TierEU.RECIPE_LV) - .addTo(sCircuitAssemblerRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.RedAlloy, 1), + GT_OreDictUnificator.get(OrePrefixes.bolt, Materials.Gold, 2), + GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Copper, 2), + GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.WroughtIron, 2)) + .itemOutputs(getModItem(Forestry.ID, "thermionicTubes", 4L, 3)) + .fluidInputs(Materials.Glass.getMolten(576)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut((int) TierEU.RECIPE_LV) + .addTo(sCircuitAssemblerRecipes); ItemStack[] rodMaterials = new ItemStack[] { - GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Copper, 2L), - GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Tin, 2L), - GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Bronze, 2L), - GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Iron, 2L), - GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Gold, 2L), - GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Diamond, 2L), - getModItem(NewHorizonsCoreMod.ID, "item.LongObsidianRod", 2L, 0), - GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Blaze, 2L), - GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Rubber, 2L), - GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Emerald, 2L), - GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Apatite, 2L), - GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Lapis, 2L), - GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.EnderEye, 2L), - GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Uranium, 2L), }; + GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Copper, 2L), + GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Tin, 2L), + GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Bronze, 2L), + GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Iron, 2L), + GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Gold, 2L), + GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Diamond, 2L), + getModItem(NewHorizonsCoreMod.ID, "item.LongObsidianRod", 2L, 0), + GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Blaze, 2L), + GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Rubber, 2L), + GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Emerald, 2L), + GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Apatite, 2L), + GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Lapis, 2L), + GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.EnderEye, 2L), + GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Uranium, 2L), }; for (int metaid = 0; metaid < rodMaterials.length; metaid++) { GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.RedAlloy, 1), - GT_OreDictUnificator.get(OrePrefixes.bolt, Materials.Gold, 2), - GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Copper, 2), - rodMaterials[metaid]) - .itemOutputs(getModItem(Forestry.ID, "thermionicTubes", 4L, metaid)) - .fluidInputs(Materials.Glass.getMolten(576)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut((int) TierEU.RECIPE_LV) - .addTo(sCircuitAssemblerRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.RedAlloy, 1), + GT_OreDictUnificator.get(OrePrefixes.bolt, Materials.Gold, 2), + GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Copper, 2), + rodMaterials[metaid]) + .itemOutputs(getModItem(Forestry.ID, "thermionicTubes", 4L, metaid)) + .fluidInputs(Materials.Glass.getMolten(576)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut((int) TierEU.RECIPE_LV) + .addTo(sCircuitAssemblerRecipes); } for (Materials tMat : solderingMats) { int tMultiplier = tMat.contains(SubTag.SOLDERING_MATERIAL_GOOD) ? 1 - : tMat.contains(SubTag.SOLDERING_MATERIAL_BAD) ? 4 : 2; + : tMat.contains(SubTag.SOLDERING_MATERIAL_BAD) ? 4 : 2; GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Circuit_Board_Coated_Basic.get(1), - GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Primitive, 2), - GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Iron, 2), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Iron, 4), - GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Iron, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(getModItem(Forestry.ID, "chipsets", 1L, 0)) - .fluidInputs(tMat.getMolten(1152L * tMultiplier / 2)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut((int) TierEU.RECIPE_LV) - .addTo(sCircuitAssemblerRecipes); + .itemInputs( + ItemList.Circuit_Board_Coated_Basic.get(1), + GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Primitive, 2), + GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Iron, 2), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Iron, 4), + GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Iron, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(getModItem(Forestry.ID, "chipsets", 1L, 0)) + .fluidInputs(tMat.getMolten(1152L * tMultiplier / 2)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut((int) TierEU.RECIPE_LV) + .addTo(sCircuitAssemblerRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Circuit_Board_Coated_Basic.get(1), - GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Basic, 2), - GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Bronze, 2), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Bronze, 4), - GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Bronze, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(getModItem(Forestry.ID, "chipsets", 1L, 1)) - .fluidInputs(tMat.getMolten(1152L * tMultiplier / 2)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut((int) TierEU.RECIPE_LV) - .addTo(sCircuitAssemblerRecipes); + .itemInputs( + ItemList.Circuit_Board_Coated_Basic.get(1), + GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Basic, 2), + GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Bronze, 2), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Bronze, 4), + GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Bronze, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(getModItem(Forestry.ID, "chipsets", 1L, 1)) + .fluidInputs(tMat.getMolten(1152L * tMultiplier / 2)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut((int) TierEU.RECIPE_LV) + .addTo(sCircuitAssemblerRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Circuit_Board_Phenolic_Good.get(1), - GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Good, 2), - GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Steel, 2), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Steel, 4), - GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Steel, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(getModItem(Forestry.ID, "chipsets", 1L, 2)) - .fluidInputs(tMat.getMolten(1152L * tMultiplier / 2)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut((int) TierEU.RECIPE_LV) - .addTo(sCircuitAssemblerRecipes); + .itemInputs( + ItemList.Circuit_Board_Phenolic_Good.get(1), + GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Good, 2), + GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Steel, 2), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Steel, 4), + GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Steel, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(getModItem(Forestry.ID, "chipsets", 1L, 2)) + .fluidInputs(tMat.getMolten(1152L * tMultiplier / 2)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut((int) TierEU.RECIPE_LV) + .addTo(sCircuitAssemblerRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Circuit_Board_Phenolic_Good.get(1), - GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Advanced, 2), - GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Electrum, 2), - GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Electrum, 4), - GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Electrum, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(getModItem(Forestry.ID, "chipsets", 1L, 3)) - .fluidInputs(tMat.getMolten(1152L * tMultiplier / 2)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut((int) TierEU.RECIPE_LV) - .addTo(sCircuitAssemblerRecipes); + .itemInputs( + ItemList.Circuit_Board_Phenolic_Good.get(1), + GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Advanced, 2), + GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Electrum, 2), + GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Electrum, 4), + GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Electrum, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(getModItem(Forestry.ID, "chipsets", 1L, 3)) + .fluidInputs(tMat.getMolten(1152L * tMultiplier / 2)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut((int) TierEU.RECIPE_LV) + .addTo(sCircuitAssemblerRecipes); } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/CompressorRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/CompressorRecipes.java index 353af1593b..9adaa8a2fd 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/CompressorRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/CompressorRecipes.java @@ -24,130 +24,130 @@ public class CompressorRecipes implements Runnable { @Override public void run() { GT_Values.RA.stdBuilder() - .itemInputs(getModItem(GTPlusPlus.ID, "blockRainforestOakSapling", 8, 0)) - .itemOutputs(ItemList.IC2_Plantball.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(2) - .addTo(sCompressorRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.IC2_Compressed_Coal_Chunk.get(1)) - .itemOutputs(ItemList.IC2_Industrial_Diamond.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(2) - .addTo(sCompressorRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Uranium, 1)) - .itemOutputs(GT_ModHandler.getIC2Item("Uran238", 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(2) - .addTo(sCompressorRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Uranium235, 1)) - .itemOutputs(GT_ModHandler.getIC2Item("Uran235", 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(2) - .addTo(sCompressorRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Plutonium, 1)) - .itemOutputs(GT_ModHandler.getIC2Item("Plutonium", 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(2) - .addTo(sCompressorRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Uranium235, 1)) - .itemOutputs(GT_ModHandler.getIC2Item("smallUran235", 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(2) - .addTo(sCompressorRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Plutonium, 1)) - .itemOutputs(GT_ModHandler.getIC2Item("smallPlutonium", 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(2) - .addTo(sCompressorRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.ice, 2, 32767)) - .itemOutputs(new ItemStack(Blocks.packed_ice, 1, 0)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(2) - .addTo(sCompressorRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ice, 1)) - .itemOutputs(new ItemStack(Blocks.ice, 1, 0)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(2) - .addTo(sCompressorRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.CertusQuartz, 4)) - .itemOutputs(getModItem(AppliedEnergistics2.ID, "tile.BlockQuartz", 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(2) - .addTo(sCompressorRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 8L, 10)) - .itemOutputs(getModItem(AppliedEnergistics2.ID, "tile.BlockQuartz", 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(2) - .addTo(sCompressorRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 8L, 11)) - .itemOutputs(new ItemStack(Blocks.quartz_block, 1, 0)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(2) - .addTo(sCompressorRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 8L, 12)) - .itemOutputs(getModItem(AppliedEnergistics2.ID, "tile.BlockFluix", 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(2) - .addTo(sCompressorRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.quartz, 4, 0)) - .itemOutputs(new ItemStack(Blocks.quartz_block, 1, 0)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(2) - .addTo(sCompressorRecipes); + .itemInputs(getModItem(GTPlusPlus.ID, "blockRainforestOakSapling", 8, 0)) + .itemOutputs(ItemList.IC2_Plantball.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(2) + .addTo(sCompressorRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.IC2_Compressed_Coal_Chunk.get(1)) + .itemOutputs(ItemList.IC2_Industrial_Diamond.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(2) + .addTo(sCompressorRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Uranium, 1)) + .itemOutputs(GT_ModHandler.getIC2Item("Uran238", 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(2) + .addTo(sCompressorRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Uranium235, 1)) + .itemOutputs(GT_ModHandler.getIC2Item("Uran235", 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(2) + .addTo(sCompressorRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Plutonium, 1)) + .itemOutputs(GT_ModHandler.getIC2Item("Plutonium", 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(2) + .addTo(sCompressorRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Uranium235, 1)) + .itemOutputs(GT_ModHandler.getIC2Item("smallUran235", 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(2) + .addTo(sCompressorRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Plutonium, 1)) + .itemOutputs(GT_ModHandler.getIC2Item("smallPlutonium", 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(2) + .addTo(sCompressorRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Blocks.ice, 2, 32767)) + .itemOutputs(new ItemStack(Blocks.packed_ice, 1, 0)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(2) + .addTo(sCompressorRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ice, 1)) + .itemOutputs(new ItemStack(Blocks.ice, 1, 0)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(2) + .addTo(sCompressorRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.CertusQuartz, 4)) + .itemOutputs(getModItem(AppliedEnergistics2.ID, "tile.BlockQuartz", 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(2) + .addTo(sCompressorRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 8L, 10)) + .itemOutputs(getModItem(AppliedEnergistics2.ID, "tile.BlockQuartz", 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(2) + .addTo(sCompressorRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 8L, 11)) + .itemOutputs(new ItemStack(Blocks.quartz_block, 1, 0)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(2) + .addTo(sCompressorRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 8L, 12)) + .itemOutputs(getModItem(AppliedEnergistics2.ID, "tile.BlockFluix", 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(2) + .addTo(sCompressorRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Items.quartz, 4, 0)) + .itemOutputs(new ItemStack(Blocks.quartz_block, 1, 0)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(2) + .addTo(sCompressorRecipes); /* * GT_Values.RA.stdBuilder() .itemInputs( new ItemStack(Items.wheat, 9, 0) ) .itemOutputs( new @@ -156,32 +156,32 @@ public class CompressorRecipes implements Runnable { */ GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glowstone, 4)) - .itemOutputs(new ItemStack(Blocks.glowstone, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(2) - .addTo(sCompressorRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glowstone, 4)) + .itemOutputs(new ItemStack(Blocks.glowstone, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(2) + .addTo(sCompressorRecipes); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Fireclay.getDust(1)) - .itemOutputs(ItemList.CompressedFireclay.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(4 * SECONDS) - .eut(4) - .addTo(sCompressorRecipes); + .itemInputs(Materials.Fireclay.getDust(1)) + .itemOutputs(ItemList.CompressedFireclay.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(4 * SECONDS) + .eut(4) + .addTo(sCompressorRecipes); if (Railcraft.isModLoaded()) { GT_Values.RA.stdBuilder() - .itemInputs(RailcraftToolItems.getCoalCoke(9)) - .itemOutputs(EnumCube.COKE_BLOCK.getItem()) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(2) - .addTo(sCompressorRecipes); + .itemInputs(RailcraftToolItems.getCoalCoke(9)) + .itemOutputs(EnumCube.COKE_BLOCK.getItem()) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(2) + .addTo(sCompressorRecipes); } } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/CropProcessingRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/CropProcessingRecipes.java index da333eab87..ff2f6521bd 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/CropProcessingRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/CropProcessingRecipes.java @@ -124,56 +124,49 @@ public class CropProcessingRecipes implements Runnable { } public void addProcess(ItemStack tCrop, Materials aMaterial, Materials aMaterialOut, int chance, - boolean aMainOutput) { + boolean aMainOutput) { if (tCrop == null || aMaterial == null || GT_OreDictUnificator.get(OrePrefixes.crushed, aMaterial, 1) == null) return; if (GT_Mod.gregtechproxy.mNerfedCrops) { FluidStack fluidOutputChemReactor = aMaterialOut.mOreByProducts.isEmpty() ? null - : aMaterialOut.mOreByProducts.get(0) - .getMolten(144); + : aMaterialOut.mOreByProducts.get(0) + .getMolten(144); GT_RecipeBuilder buildChemRecipe = GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(9, tCrop), - GT_OreDictUnificator.get( - OrePrefixes.crushed, - aMaterial, - 1)) - .itemOutputs( - GT_OreDictUnificator.get( - OrePrefixes.crushedPurified, - aMaterial, - 4)) - .fluidInputs(Materials.Water.getFluid(1000)); + .itemInputs( + GT_Utility.copyAmount(9, tCrop), + GT_OreDictUnificator.get(OrePrefixes.crushed, aMaterial, 1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.crushedPurified, aMaterial, 4)) + .fluidInputs(Materials.Water.getFluid(1000)); if (fluidOutputChemReactor == null) { buildChemRecipe.noFluidOutputs(); } else { buildChemRecipe.fluidOutputs(fluidOutputChemReactor); } buildChemRecipe.duration(4 * SECONDS + 16 * TICKS) - .eut(24) - .addTo(UniversalChemical); + .eut(24) + .addTo(UniversalChemical); GT_Values.RA.stdBuilder() - .itemInputs( - GT_Utility.copyAmount(16, tCrop), - GT_OreDictUnificator.get(OrePrefixes.crushed, aMaterial, 1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.crushedPurified, aMaterial, 1)) - .fluidInputs(Materials.UUMatter.getFluid(Math.max(1, ((aMaterial.getMass() + 9) / 10)))) - .noFluidOutputs() - .duration((int) (aMaterial.getMass() * 128)) - .eut(384) - .addTo(sAutoclaveRecipes); + .itemInputs( + GT_Utility.copyAmount(16, tCrop), + GT_OreDictUnificator.get(OrePrefixes.crushed, aMaterial, 1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.crushedPurified, aMaterial, 1)) + .fluidInputs(Materials.UUMatter.getFluid(Math.max(1, ((aMaterial.getMass() + 9) / 10)))) + .noFluidOutputs() + .duration((int) (aMaterial.getMass() * 128)) + .eut(384) + .addTo(sAutoclaveRecipes); } else { if (aMainOutput) { GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.copyAmount(9, tCrop)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(2) - .addTo(sExtractorRecipes); + .itemInputs(GT_Utility.copyAmount(9, tCrop)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(2) + .addTo(sExtractorRecipes); } } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/CuttingRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/CuttingRecipes.java index 8f684f9a06..5d43f374e3 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/CuttingRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/CuttingRecipes.java @@ -21,278 +21,277 @@ public class CuttingRecipes implements Runnable { // silicon wafer recipes { recipeWithClassicFluids( - new ItemStack[] { ItemList.Circuit_Silicon_Ingot.get(1) }, - new ItemStack[] { ItemList.Circuit_Silicon_Wafer.get(16), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconSG, 4) }, - 20 * SECONDS, - TierEU.RECIPE_LV, - false); + new ItemStack[] { ItemList.Circuit_Silicon_Ingot.get(1) }, + new ItemStack[] { ItemList.Circuit_Silicon_Wafer.get(16), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconSG, 4) }, + 20 * SECONDS, + TierEU.RECIPE_LV, + false); recipeWithClassicFluids( - new ItemStack[] { ItemList.Circuit_Silicon_Ingot2.get(1) }, - new ItemStack[] { ItemList.Circuit_Silicon_Wafer2.get(32), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconSG, 8) }, - 40 * SECONDS, - TierEU.RECIPE_MV, - true); + new ItemStack[] { ItemList.Circuit_Silicon_Ingot2.get(1) }, + new ItemStack[] { ItemList.Circuit_Silicon_Wafer2.get(32), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconSG, 8) }, + 40 * SECONDS, + TierEU.RECIPE_MV, + true); recipeWithClassicFluids( - new ItemStack[] { ItemList.Circuit_Silicon_Ingot3.get(1) }, - new ItemStack[] { ItemList.Circuit_Silicon_Wafer3.get(64), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconSG, 16) }, - 1 * MINUTES + 20 * SECONDS, - TierEU.RECIPE_HV, - true); + new ItemStack[] { ItemList.Circuit_Silicon_Ingot3.get(1) }, + new ItemStack[] { ItemList.Circuit_Silicon_Wafer3.get(64), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconSG, 16) }, + 1 * MINUTES + 20 * SECONDS, + TierEU.RECIPE_HV, + true); recipeWithClassicFluids( - new ItemStack[] { ItemList.Circuit_Silicon_Ingot4.get(1) }, - new ItemStack[] { ItemList.Circuit_Silicon_Wafer4.get(64), ItemList.Circuit_Silicon_Wafer4.get(32), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconSG, 32) }, - 2 * MINUTES, - TierEU.RECIPE_EV, - true); + new ItemStack[] { ItemList.Circuit_Silicon_Ingot4.get(1) }, + new ItemStack[] { ItemList.Circuit_Silicon_Wafer4.get(64), ItemList.Circuit_Silicon_Wafer4.get(32), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconSG, 32) }, + 2 * MINUTES, + TierEU.RECIPE_EV, + true); recipeWithClassicFluids( - new ItemStack[] { ItemList.Circuit_Silicon_Ingot5.get(1) }, - new ItemStack[] { ItemList.Circuit_Silicon_Wafer5.get(64), ItemList.Circuit_Silicon_Wafer5.get(64), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconSG, 64) }, - 2 * MINUTES + 40 * SECONDS, - TierEU.RECIPE_IV, - true); + new ItemStack[] { ItemList.Circuit_Silicon_Ingot5.get(1) }, + new ItemStack[] { ItemList.Circuit_Silicon_Wafer5.get(64), ItemList.Circuit_Silicon_Wafer5.get(64), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconSG, 64) }, + 2 * MINUTES + 40 * SECONDS, + TierEU.RECIPE_IV, + true); } // doesnt seem to be in game? recipeWithClassicFluids( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.block, Materials.Graphite, 1) }, - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Graphite, 9) }, - 25 * SECONDS, - 48, - true); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.block, Materials.Graphite, 1) }, + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Graphite, 9) }, + 25 * SECONDS, + 48, + true); // glass pane recipes { // stained-glass -> glass pane recipes for (int i = 0; i < 16; i++) { recipeWithClassicFluids( - new ItemStack[] { new ItemStack(Blocks.stained_glass, 3, i) }, - new ItemStack[] { new ItemStack(Blocks.stained_glass, 3, i), - new ItemStack(Blocks.stained_glass_pane, 8, i) }, - 2 * SECONDS + 10 * TICKS, - 8, - false); + new ItemStack[] { new ItemStack(Blocks.stained_glass, 3, i) }, + new ItemStack[] { new ItemStack(Blocks.stained_glass, 3, i), + new ItemStack(Blocks.stained_glass_pane, 8, i) }, + 2 * SECONDS + 10 * TICKS, + 8, + false); } recipeWithClassicFluids( - new ItemStack[] { new ItemStack(Blocks.glass, 3, 0) }, - new ItemStack[] { new ItemStack(Blocks.glass, 3, 0), new ItemStack(Blocks.glass_pane, 8, 0) }, - 2 * SECONDS + 10 * TICKS, - 8, - false); + new ItemStack[] { new ItemStack(Blocks.glass, 3, 0) }, + new ItemStack[] { new ItemStack(Blocks.glass, 3, 0), new ItemStack(Blocks.glass_pane, 8, 0) }, + 2 * SECONDS + 10 * TICKS, + 8, + false); if (TinkerConstruct.isModLoaded()) { recipeWithClassicFluids( - new ItemStack[] { getModItem(TinkerConstruct.ID, "GlassBlock", 3L, 0) }, - new ItemStack[] { getModItem(TinkerConstruct.ID, "GlassBlock", 3L, 0), - getModItem(TinkerConstruct.ID, "GlassPane", 8L, 0) }, - 2 * SECONDS + 10 * TICKS, - 8, - false); + new ItemStack[] { getModItem(TinkerConstruct.ID, "GlassBlock", 3L, 0) }, + new ItemStack[] { getModItem(TinkerConstruct.ID, "GlassBlock", 3L, 0), + getModItem(TinkerConstruct.ID, "GlassPane", 8L, 0) }, + 2 * SECONDS + 10 * TICKS, + 8, + false); } } // stone slab recipes { recipeWithClassicFluids( - new ItemStack[] { new ItemStack(Blocks.stone, 1, 0) }, - new ItemStack[] { new ItemStack(Blocks.stone, 1, 0), new ItemStack(Blocks.stone_slab, 2, 0) }, - 1 * SECONDS + 5 * TICKS, - 8, - false); + new ItemStack[] { new ItemStack(Blocks.stone, 1, 0) }, + new ItemStack[] { new ItemStack(Blocks.stone, 1, 0), new ItemStack(Blocks.stone_slab, 2, 0) }, + 1 * SECONDS + 5 * TICKS, + 8, + false); recipeWithClassicFluids( - new ItemStack[] { new ItemStack(Blocks.sandstone, 1, 0) }, - new ItemStack[] { new ItemStack(Blocks.sandstone, 1, 0), new ItemStack(Blocks.stone_slab, 2, 1) }, - 1 * SECONDS + 5 * TICKS, - 8, - false); + new ItemStack[] { new ItemStack(Blocks.sandstone, 1, 0) }, + new ItemStack[] { new ItemStack(Blocks.sandstone, 1, 0), new ItemStack(Blocks.stone_slab, 2, 1) }, + 1 * SECONDS + 5 * TICKS, + 8, + false); recipeWithClassicFluids( - new ItemStack[] { new ItemStack(Blocks.cobblestone, 1, 0) }, - new ItemStack[] { new ItemStack(Blocks.cobblestone, 1, 0), new ItemStack(Blocks.stone_slab, 2, 3) }, - 1 * SECONDS + 5 * TICKS, - 8, - false); + new ItemStack[] { new ItemStack(Blocks.cobblestone, 1, 0) }, + new ItemStack[] { new ItemStack(Blocks.cobblestone, 1, 0), new ItemStack(Blocks.stone_slab, 2, 3) }, + 1 * SECONDS + 5 * TICKS, + 8, + false); recipeWithClassicFluids( - new ItemStack[] { new ItemStack(Blocks.brick_block, 1, 0) }, - new ItemStack[] { new ItemStack(Blocks.brick_block, 1, 0), new ItemStack(Blocks.stone_slab, 2, 4) }, - 1 * SECONDS + 5 * TICKS, - 8, - false); + new ItemStack[] { new ItemStack(Blocks.brick_block, 1, 0) }, + new ItemStack[] { new ItemStack(Blocks.brick_block, 1, 0), new ItemStack(Blocks.stone_slab, 2, 4) }, + 1 * SECONDS + 5 * TICKS, + 8, + false); recipeWithClassicFluids( - new ItemStack[] { new ItemStack(Blocks.stonebrick, 1, 0) }, - new ItemStack[] { new ItemStack(Blocks.stonebrick, 1, 0), new ItemStack(Blocks.stone_slab, 2, 5) }, - 1 * SECONDS + 5 * TICKS, - 8, - false); + new ItemStack[] { new ItemStack(Blocks.stonebrick, 1, 0) }, + new ItemStack[] { new ItemStack(Blocks.stonebrick, 1, 0), new ItemStack(Blocks.stone_slab, 2, 5) }, + 1 * SECONDS + 5 * TICKS, + 8, + false); recipeWithClassicFluids( - new ItemStack[] { new ItemStack(Blocks.nether_brick, 1, 0) }, - new ItemStack[] { new ItemStack(Blocks.nether_brick, 1, 0), - new ItemStack(Blocks.stone_slab, 2, 6) }, - 1 * SECONDS + 5 * TICKS, - 8, - false); + new ItemStack[] { new ItemStack(Blocks.nether_brick, 1, 0) }, + new ItemStack[] { new ItemStack(Blocks.nether_brick, 1, 0), new ItemStack(Blocks.stone_slab, 2, 6) }, + 1 * SECONDS + 5 * TICKS, + 8, + false); recipeWithClassicFluids( - new ItemStack[] { new ItemStack(Blocks.quartz_block, 1, 32767) }, - new ItemStack[] { new ItemStack(Blocks.quartz_block, 1, 32767), - new ItemStack(Blocks.stone_slab, 2, 7) }, - 1 * SECONDS + 5 * TICKS, - 8, - false); + new ItemStack[] { new ItemStack(Blocks.quartz_block, 1, 32767) }, + new ItemStack[] { new ItemStack(Blocks.quartz_block, 1, 32767), + new ItemStack(Blocks.stone_slab, 2, 7) }, + 1 * SECONDS + 5 * TICKS, + 8, + false); } recipeWithClassicFluids( - new ItemStack[] { new ItemStack(Blocks.glowstone, 1, 0) }, - new ItemStack[] { new ItemStack(Blocks.glowstone, 1, 0), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Glowstone, 4) }, - 5 * SECONDS, - 16, - false); + new ItemStack[] { new ItemStack(Blocks.glowstone, 1, 0) }, + new ItemStack[] { new ItemStack(Blocks.glowstone, 1, 0), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Glowstone, 4) }, + 5 * SECONDS, + 16, + false); for (byte i = 0; i < 16; i++) { recipeWithClassicFluids( - new ItemStack[] { new ItemStack(Blocks.wool, 1, i) }, - new ItemStack[] { new ItemStack(Blocks.wool, 1, i), new ItemStack(Blocks.carpet, 2, i) }, - 2 * SECONDS + 10 * TICKS, - 8, - false); + new ItemStack[] { new ItemStack(Blocks.wool, 1, i) }, + new ItemStack[] { new ItemStack(Blocks.wool, 1, i), new ItemStack(Blocks.carpet, 2, i) }, + 2 * SECONDS + 10 * TICKS, + 8, + false); } // vanilla planks recipes { ItemStack[] plankArray = new ItemStack[] { ItemList.Plank_Oak.get(2L), ItemList.Plank_Spruce.get(2L), - ItemList.Plank_Birch.get(2L), ItemList.Plank_Jungle.get(2L), ItemList.Plank_Acacia.get(2L), - ItemList.Plank_DarkOak.get(2L) }; + ItemList.Plank_Birch.get(2L), ItemList.Plank_Jungle.get(2L), ItemList.Plank_Acacia.get(2L), + ItemList.Plank_DarkOak.get(2L) }; for (int i = 0; i < 6; i++) { recipeWithClassicFluids( - new ItemStack[] { new ItemStack(Blocks.wooden_slab, 1, i) }, - new ItemStack[] { new ItemStack(Blocks.wooden_slab, 1, i), plankArray[i] }, - 2 * SECONDS + 10 * TICKS, - 8, - false); + new ItemStack[] { new ItemStack(Blocks.wooden_slab, 1, i) }, + new ItemStack[] { new ItemStack(Blocks.wooden_slab, 1, i), plankArray[i] }, + 2 * SECONDS + 10 * TICKS, + 8, + false); } } if (Forestry.isModLoaded()) { ItemStack[] coverIDs = { ItemList.Plank_Larch.get(2L), ItemList.Plank_Teak.get(2L), - ItemList.Plank_Acacia_Green.get(2L), ItemList.Plank_Lime.get(2L), ItemList.Plank_Chestnut.get(2L), - ItemList.Plank_Wenge.get(2L), ItemList.Plank_Baobab.get(2L), ItemList.Plank_Sequoia.get(2L), - ItemList.Plank_Kapok.get(2L), ItemList.Plank_Ebony.get(2L), ItemList.Plank_Mahagony.get(2L), - ItemList.Plank_Balsa.get(2L), ItemList.Plank_Willow.get(2L), ItemList.Plank_Walnut.get(2L), - ItemList.Plank_Greenheart.get(2L), ItemList.Plank_Cherry.get(2L), ItemList.Plank_Mahoe.get(2L), - ItemList.Plank_Poplar.get(2L), ItemList.Plank_Palm.get(2L), ItemList.Plank_Papaya.get(2L), - ItemList.Plank_Pine.get(2L), ItemList.Plank_Plum.get(2L), ItemList.Plank_Maple.get(2L), - ItemList.Plank_Citrus.get(2L) }; + ItemList.Plank_Acacia_Green.get(2L), ItemList.Plank_Lime.get(2L), ItemList.Plank_Chestnut.get(2L), + ItemList.Plank_Wenge.get(2L), ItemList.Plank_Baobab.get(2L), ItemList.Plank_Sequoia.get(2L), + ItemList.Plank_Kapok.get(2L), ItemList.Plank_Ebony.get(2L), ItemList.Plank_Mahagony.get(2L), + ItemList.Plank_Balsa.get(2L), ItemList.Plank_Willow.get(2L), ItemList.Plank_Walnut.get(2L), + ItemList.Plank_Greenheart.get(2L), ItemList.Plank_Cherry.get(2L), ItemList.Plank_Mahoe.get(2L), + ItemList.Plank_Poplar.get(2L), ItemList.Plank_Palm.get(2L), ItemList.Plank_Papaya.get(2L), + ItemList.Plank_Pine.get(2L), ItemList.Plank_Plum.get(2L), ItemList.Plank_Maple.get(2L), + ItemList.Plank_Citrus.get(2L) }; for (int i = 0; i < coverIDs.length; i++) { ItemStack slabWood = getModItem(Forestry.ID, "slabs", 1, i); ItemStack slabWoodFireproof = getModItem(Forestry.ID, "slabsFireproof", 1, i); recipeWithClassicFluids( - new ItemStack[] { slabWood }, - new ItemStack[] { slabWood, coverIDs[i] }, - 2 * SECONDS, - 8, - false); + new ItemStack[] { slabWood }, + new ItemStack[] { slabWood, coverIDs[i] }, + 2 * SECONDS, + 8, + false); recipeWithClassicFluids( - new ItemStack[] { slabWoodFireproof }, - new ItemStack[] { slabWoodFireproof, coverIDs[i] }, - 2 * SECONDS, - 8, - false); + new ItemStack[] { slabWoodFireproof }, + new ItemStack[] { slabWoodFireproof, coverIDs[i] }, + 2 * SECONDS, + 8, + false); } } if (BuildCraftTransport.isModLoaded()) { recipeWithClassicFluids( - new ItemStack[] { - getModItem(BuildCraftTransport.ID, "item.buildcraftPipe.pipestructurecobblestone", 1L, 0) }, - new ItemStack[] { - getModItem(BuildCraftTransport.ID, "item.buildcraftPipe.pipestructurecobblestone", 1L, 0), - getModItem(BuildCraftTransport.ID, "pipePlug", 8L, 0) }, - 1 * SECONDS + 12 * TICKS, - 16, - false); + new ItemStack[] { + getModItem(BuildCraftTransport.ID, "item.buildcraftPipe.pipestructurecobblestone", 1L, 0) }, + new ItemStack[] { + getModItem(BuildCraftTransport.ID, "item.buildcraftPipe.pipestructurecobblestone", 1L, 0), + getModItem(BuildCraftTransport.ID, "pipePlug", 8L, 0) }, + 1 * SECONDS + 12 * TICKS, + 16, + false); } } public void recipeWithClassicFluids(ItemStack[] inputs, ItemStack[] outputs, int duration, long eut, - boolean cleanroomRequired) { + boolean cleanroomRequired) { if (cleanroomRequired) { GT_Values.RA.stdBuilder() - .itemInputs(inputs) - .itemOutputs(outputs) - .fluidInputs(Materials.Water.getFluid(Math.max(4, Math.min(1000, duration * eut / 320)))) - .noFluidOutputs() - .duration(2 * duration) - .eut(eut) - .requiresCleanRoom() - .addTo(sCutterRecipes); + .itemInputs(inputs) + .itemOutputs(outputs) + .fluidInputs(Materials.Water.getFluid(Math.max(4, Math.min(1000, duration * eut / 320)))) + .noFluidOutputs() + .duration(2 * duration) + .eut(eut) + .requiresCleanRoom() + .addTo(sCutterRecipes); GT_Values.RA.stdBuilder() - .itemInputs(inputs) - .itemOutputs(outputs) - .fluidInputs(GT_ModHandler.getDistilledWater(Math.max(3, Math.min(750, duration * eut / 426)))) - .noFluidOutputs() - .duration(2 * duration) - .eut(eut) - .requiresCleanRoom() - .addTo(sCutterRecipes); + .itemInputs(inputs) + .itemOutputs(outputs) + .fluidInputs(GT_ModHandler.getDistilledWater(Math.max(3, Math.min(750, duration * eut / 426)))) + .noFluidOutputs() + .duration(2 * duration) + .eut(eut) + .requiresCleanRoom() + .addTo(sCutterRecipes); GT_Values.RA.stdBuilder() - .itemInputs(inputs) - .itemOutputs(outputs) - .fluidInputs(Materials.Lubricant.getFluid(Math.max(1, Math.min(250, duration * eut / 1280)))) - .noFluidOutputs() - .duration(duration) - .eut(eut) - .requiresCleanRoom() - .addTo(sCutterRecipes); + .itemInputs(inputs) + .itemOutputs(outputs) + .fluidInputs(Materials.Lubricant.getFluid(Math.max(1, Math.min(250, duration * eut / 1280)))) + .noFluidOutputs() + .duration(duration) + .eut(eut) + .requiresCleanRoom() + .addTo(sCutterRecipes); } else { GT_Values.RA.stdBuilder() - .itemInputs(inputs) - .itemOutputs(outputs) - .fluidInputs(Materials.Water.getFluid(Math.max(4, Math.min(1000, duration * eut / 320)))) - .noFluidOutputs() - .duration(2 * duration) - .eut(eut) - .addTo(sCutterRecipes); + .itemInputs(inputs) + .itemOutputs(outputs) + .fluidInputs(Materials.Water.getFluid(Math.max(4, Math.min(1000, duration * eut / 320)))) + .noFluidOutputs() + .duration(2 * duration) + .eut(eut) + .addTo(sCutterRecipes); GT_Values.RA.stdBuilder() - .itemInputs(inputs) - .itemOutputs(outputs) - .fluidInputs(GT_ModHandler.getDistilledWater(Math.max(3, Math.min(750, duration * eut / 426)))) - .noFluidOutputs() - .duration(2 * duration) - .eut(eut) - .addTo(sCutterRecipes); + .itemInputs(inputs) + .itemOutputs(outputs) + .fluidInputs(GT_ModHandler.getDistilledWater(Math.max(3, Math.min(750, duration * eut / 426)))) + .noFluidOutputs() + .duration(2 * duration) + .eut(eut) + .addTo(sCutterRecipes); GT_Values.RA.stdBuilder() - .itemInputs(inputs) - .itemOutputs(outputs) - .fluidInputs(Materials.Lubricant.getFluid(Math.max(1, Math.min(250, duration * eut / 1280)))) - .noFluidOutputs() - .duration(duration) - .eut(eut) - .addTo(sCutterRecipes); + .itemInputs(inputs) + .itemOutputs(outputs) + .fluidInputs(Materials.Lubricant.getFluid(Math.max(1, Math.min(250, duration * eut / 1280)))) + .noFluidOutputs() + .duration(duration) + .eut(eut) + .addTo(sCutterRecipes); } } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/DistilleryRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/DistilleryRecipes.java index 1c7a5a411c..4e39e02522 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/DistilleryRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/DistilleryRecipes.java @@ -27,1308 +27,1300 @@ public class DistilleryRecipes implements Runnable { universalDistillationTowerRecipes(); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(24)) - .noItemOutputs() - .fluidInputs(Materials.Creosote.getFluid(100L)) - .fluidOutputs(Materials.Lubricant.getFluid(32L)) - .duration(12 * SECONDS) - .eut(30) - .addTo(sDistilleryRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(24)) + .noItemOutputs() + .fluidInputs(Materials.Creosote.getFluid(100L)) + .fluidOutputs(Materials.Lubricant.getFluid(32L)) + .duration(12 * SECONDS) + .eut(30) + .addTo(sDistilleryRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(24)) - .noItemOutputs() - .fluidInputs(Materials.SeedOil.getFluid(32L)) - .fluidOutputs(Materials.Lubricant.getFluid(8L)) - .duration(4 * SECONDS) - .eut(30) - .addTo(sDistilleryRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(24)) + .noItemOutputs() + .fluidInputs(Materials.SeedOil.getFluid(32L)) + .fluidOutputs(Materials.Lubricant.getFluid(8L)) + .duration(4 * SECONDS) + .eut(30) + .addTo(sDistilleryRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(24)) - .noItemOutputs() - .fluidInputs(Materials.FishOil.getFluid(32L)) - .fluidOutputs(Materials.Lubricant.getFluid(8L)) - .duration(4 * SECONDS) - .eut(30) - .addTo(sDistilleryRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(24)) + .noItemOutputs() + .fluidInputs(Materials.FishOil.getFluid(32L)) + .fluidOutputs(Materials.Lubricant.getFluid(8L)) + .duration(4 * SECONDS) + .eut(30) + .addTo(sDistilleryRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(24)) - .noItemOutputs() - .fluidInputs(Materials.Oil.getFluid(120L)) - .fluidOutputs(Materials.Lubricant.getFluid(60L)) - .duration(8 * SECONDS) - .eut(30) - .addTo(sDistilleryRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(24)) + .noItemOutputs() + .fluidInputs(Materials.Oil.getFluid(120L)) + .fluidOutputs(Materials.Lubricant.getFluid(60L)) + .duration(8 * SECONDS) + .eut(30) + .addTo(sDistilleryRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(24)) - .noItemOutputs() - .fluidInputs(Materials.OilLight.getFluid(120L)) - .fluidOutputs(Materials.Lubricant.getFluid(30L)) - .duration(8 * SECONDS) - .eut(30) - .addTo(sDistilleryRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(24)) + .noItemOutputs() + .fluidInputs(Materials.OilLight.getFluid(120L)) + .fluidOutputs(Materials.Lubricant.getFluid(30L)) + .duration(8 * SECONDS) + .eut(30) + .addTo(sDistilleryRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(24)) - .noItemOutputs() - .fluidInputs(Materials.OilMedium.getFluid(120L)) - .fluidOutputs(Materials.Lubricant.getFluid(60L)) - .duration(8 * SECONDS) - .eut(30) - .addTo(sDistilleryRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(24)) + .noItemOutputs() + .fluidInputs(Materials.OilMedium.getFluid(120L)) + .fluidOutputs(Materials.Lubricant.getFluid(60L)) + .duration(8 * SECONDS) + .eut(30) + .addTo(sDistilleryRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(24)) - .noItemOutputs() - .fluidInputs(Materials.OilHeavy.getFluid(120L)) - .fluidOutputs(Materials.Lubricant.getFluid(90L)) - .duration(8 * SECONDS) - .eut(30) - .addTo(sDistilleryRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(24)) + .noItemOutputs() + .fluidInputs(Materials.OilHeavy.getFluid(120L)) + .fluidOutputs(Materials.Lubricant.getFluid(90L)) + .duration(8 * SECONDS) + .eut(30) + .addTo(sDistilleryRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .fluidInputs(Materials.Biomass.getFluid(40L)) - .fluidOutputs(Materials.Ethanol.getFluid(12L)) - .duration(16 * TICKS) - .eut(24) - .addTo(sDistilleryRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .fluidInputs(Materials.Biomass.getFluid(40L)) + .fluidOutputs(Materials.Ethanol.getFluid(12L)) + .duration(16 * TICKS) + .eut(24) + .addTo(sDistilleryRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(5)) - .noItemOutputs() - .fluidInputs(Materials.Biomass.getFluid(40L)) - .fluidOutputs(Materials.Water.getFluid(12L)) - .duration(16 * TICKS) - .eut(24) - .addTo(sDistilleryRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(5)) + .noItemOutputs() + .fluidInputs(Materials.Biomass.getFluid(40L)) + .fluidOutputs(Materials.Water.getFluid(12L)) + .duration(16 * TICKS) + .eut(24) + .addTo(sDistilleryRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(5)) - .noItemOutputs() - .fluidInputs(Materials.Water.getFluid(5L)) - .fluidOutputs(GT_ModHandler.getDistilledWater(5L)) - .duration(16 * TICKS) - .eut(10) - .addTo(sDistilleryRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(5)) + .noItemOutputs() + .fluidInputs(Materials.Water.getFluid(5L)) + .fluidOutputs(GT_ModHandler.getDistilledWater(5L)) + .duration(16 * TICKS) + .eut(10) + .addTo(sDistilleryRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .fluidInputs(getFluidStack("potion.potatojuice", 2)) - .fluidOutputs(getFluidStack("potion.vodka", 1)) - .duration(16 * TICKS) - .eut(16) - .addTo(sDistilleryRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .fluidInputs(getFluidStack("potion.potatojuice", 2)) + .fluidOutputs(getFluidStack("potion.vodka", 1)) + .duration(16 * TICKS) + .eut(16) + .addTo(sDistilleryRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .fluidInputs(getFluidStack("potion.lemonade", 2)) - .fluidOutputs(getFluidStack("potion.alcopops", 1)) - .duration(16 * TICKS) - .eut(16) - .addTo(sDistilleryRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .fluidInputs(getFluidStack("potion.lemonade", 2)) + .fluidOutputs(getFluidStack("potion.alcopops", 1)) + .duration(16 * TICKS) + .eut(16) + .addTo(sDistilleryRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(4)) - .noItemOutputs() - .fluidInputs(Materials.OilLight.getFluid(300L)) - .fluidOutputs(Materials.Oil.getFluid(100L)) - .duration(16 * TICKS) - .eut(24) - .addTo(sDistilleryRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(4)) + .noItemOutputs() + .fluidInputs(Materials.OilLight.getFluid(300L)) + .fluidOutputs(Materials.Oil.getFluid(100L)) + .duration(16 * TICKS) + .eut(24) + .addTo(sDistilleryRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(4)) - .noItemOutputs() - .fluidInputs(Materials.OilMedium.getFluid(200L)) - .fluidOutputs(Materials.Oil.getFluid(100L)) - .duration(16 * TICKS) - .eut(24) - .addTo(sDistilleryRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(4)) + .noItemOutputs() + .fluidInputs(Materials.OilMedium.getFluid(200L)) + .fluidOutputs(Materials.Oil.getFluid(100L)) + .duration(16 * TICKS) + .eut(24) + .addTo(sDistilleryRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(4)) - .noItemOutputs() - .fluidInputs(Materials.OilHeavy.getFluid(100L)) - .fluidOutputs(Materials.Oil.getFluid(100L)) - .duration(16 * TICKS) - .eut(24) - .addTo(sDistilleryRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(4)) + .noItemOutputs() + .fluidInputs(Materials.OilHeavy.getFluid(100L)) + .fluidOutputs(Materials.Oil.getFluid(100L)) + .duration(16 * TICKS) + .eut(24) + .addTo(sDistilleryRecipes); GT_Values.RA.stdBuilder() - .noItemInputs() - .itemOutputs(MaterialsOreAlum.SluiceSand.getDust(1)) - .fluidInputs(MaterialsOreAlum.SluiceJuice.getFluid(1000)) - .fluidOutputs(Materials.Water.getFluid(500)) - .duration(5 * SECONDS) - .eut(16) - .addTo(sDistilleryRecipes); + .noItemInputs() + .itemOutputs(MaterialsOreAlum.SluiceSand.getDust(1)) + .fluidInputs(MaterialsOreAlum.SluiceJuice.getFluid(1000)) + .fluidOutputs(Materials.Water.getFluid(500)) + .duration(5 * SECONDS) + .eut(16) + .addTo(sDistilleryRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(6)) - .noItemOutputs() - .fluidInputs(Materials.WoodTar.getFluid(200)) - .fluidOutputs(MaterialsKevlar.IIIDimethylbenzene.getFluid(30)) - .duration(16 * TICKS) - .eut(64) - .addTo(sDistilleryRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(6)) + .noItemOutputs() + .fluidInputs(Materials.WoodTar.getFluid(200)) + .fluidOutputs(MaterialsKevlar.IIIDimethylbenzene.getFluid(30)) + .duration(16 * TICKS) + .eut(64) + .addTo(sDistilleryRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(6)) - .noItemOutputs() - .fluidInputs(Materials.CharcoalByproducts.getGas(200)) - .fluidOutputs(MaterialsKevlar.IIIDimethylbenzene.getFluid(20)) - .duration(5 * SECONDS) - .eut(64) - .addTo(sDistilleryRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(6)) + .noItemOutputs() + .fluidInputs(Materials.CharcoalByproducts.getGas(200)) + .fluidOutputs(MaterialsKevlar.IIIDimethylbenzene.getFluid(20)) + .duration(5 * SECONDS) + .eut(64) + .addTo(sDistilleryRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(7)) - .noItemOutputs() - .fluidInputs(Materials.WoodTar.getFluid(200)) - .fluidOutputs(MaterialsKevlar.IVDimethylbenzene.getFluid(30)) - .duration(16 * TICKS) - .eut(64) - .addTo(sDistilleryRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(7)) + .noItemOutputs() + .fluidInputs(Materials.WoodTar.getFluid(200)) + .fluidOutputs(MaterialsKevlar.IVDimethylbenzene.getFluid(30)) + .duration(16 * TICKS) + .eut(64) + .addTo(sDistilleryRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(7)) - .noItemOutputs() - .fluidInputs(Materials.CharcoalByproducts.getGas(200)) - .fluidOutputs(MaterialsKevlar.IVDimethylbenzene.getFluid(20)) - .duration(5 * SECONDS) - .eut(64) - .addTo(sDistilleryRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(7)) + .noItemOutputs() + .fluidInputs(Materials.CharcoalByproducts.getGas(200)) + .fluidOutputs(MaterialsKevlar.IVDimethylbenzene.getFluid(20)) + .duration(5 * SECONDS) + .eut(64) + .addTo(sDistilleryRecipes); // (NaCl·H2O) = NaCl + H2O GT_Values.RA.stdBuilder() - .noItemInputs() - .itemOutputs(Materials.Salt.getDust(2)) - .fluidInputs(Materials.SaltWater.getFluid(1000)) - .fluidOutputs(GT_ModHandler.getDistilledWater(1000)) - .duration(1 * MINUTES + 20 * SECONDS) - .eut(30) - .addTo(sDistilleryRecipes); + .noItemInputs() + .itemOutputs(Materials.Salt.getDust(2)) + .fluidInputs(Materials.SaltWater.getFluid(1000)) + .fluidOutputs(GT_ModHandler.getDistilledWater(1000)) + .duration(1 * MINUTES + 20 * SECONDS) + .eut(30) + .addTo(sDistilleryRecipes); GT_Values.RA.stdBuilder() - .noItemInputs() - .itemOutputs(ItemList.IC2_Fertilizer.get(1)) - .fluidInputs(Materials.FermentedBiomass.getFluid(1000)) - .fluidOutputs(Materials.AceticAcid.getFluid(25)) - .duration(1 * MINUTES + 15 * SECONDS) - .eut(8) - .addTo(sDistilleryRecipes); + .noItemInputs() + .itemOutputs(ItemList.IC2_Fertilizer.get(1)) + .fluidInputs(Materials.FermentedBiomass.getFluid(1000)) + .fluidOutputs(Materials.AceticAcid.getFluid(25)) + .duration(1 * MINUTES + 15 * SECONDS) + .eut(8) + .addTo(sDistilleryRecipes); GT_Values.RA.stdBuilder() - .noItemInputs() - .itemOutputs(ItemList.IC2_Fertilizer.get(1)) - .fluidInputs(Materials.FermentedBiomass.getFluid(1000)) - .fluidOutputs(Materials.Water.getFluid(375)) - .duration(1 * MINUTES + 15 * SECONDS) - .eut(8) - .addTo(sDistilleryRecipes); + .noItemInputs() + .itemOutputs(ItemList.IC2_Fertilizer.get(1)) + .fluidInputs(Materials.FermentedBiomass.getFluid(1000)) + .fluidOutputs(Materials.Water.getFluid(375)) + .duration(1 * MINUTES + 15 * SECONDS) + .eut(8) + .addTo(sDistilleryRecipes); GT_Values.RA.stdBuilder() - .noItemInputs() - .itemOutputs(ItemList.IC2_Fertilizer.get(1)) - .fluidInputs(Materials.FermentedBiomass.getFluid(1000)) - .fluidOutputs(Materials.Ethanol.getFluid(150)) - .duration(1 * MINUTES + 15 * SECONDS) - .eut(8) - .addTo(sDistilleryRecipes); + .noItemInputs() + .itemOutputs(ItemList.IC2_Fertilizer.get(1)) + .fluidInputs(Materials.FermentedBiomass.getFluid(1000)) + .fluidOutputs(Materials.Ethanol.getFluid(150)) + .duration(1 * MINUTES + 15 * SECONDS) + .eut(8) + .addTo(sDistilleryRecipes); GT_Values.RA.stdBuilder() - .noItemInputs() - .itemOutputs(ItemList.IC2_Fertilizer.get(1)) - .fluidInputs(Materials.FermentedBiomass.getFluid(1000)) - .fluidOutputs(Materials.Methanol.getFluid(150)) - .duration(1 * MINUTES + 15 * SECONDS) - .eut(8) - .addTo(sDistilleryRecipes); + .noItemInputs() + .itemOutputs(ItemList.IC2_Fertilizer.get(1)) + .fluidInputs(Materials.FermentedBiomass.getFluid(1000)) + .fluidOutputs(Materials.Methanol.getFluid(150)) + .duration(1 * MINUTES + 15 * SECONDS) + .eut(8) + .addTo(sDistilleryRecipes); GT_Values.RA.stdBuilder() - .noItemInputs() - .itemOutputs(ItemList.IC2_Fertilizer.get(1)) - .fluidInputs(Materials.FermentedBiomass.getFluid(1000)) - .fluidOutputs(Materials.Ammonia.getGas(100)) - .duration(1 * MINUTES + 15 * SECONDS) - .eut(8) - .addTo(sDistilleryRecipes); + .noItemInputs() + .itemOutputs(ItemList.IC2_Fertilizer.get(1)) + .fluidInputs(Materials.FermentedBiomass.getFluid(1000)) + .fluidOutputs(Materials.Ammonia.getGas(100)) + .duration(1 * MINUTES + 15 * SECONDS) + .eut(8) + .addTo(sDistilleryRecipes); GT_Values.RA.stdBuilder() - .noItemInputs() - .itemOutputs(ItemList.IC2_Fertilizer.get(1)) - .fluidInputs(Materials.FermentedBiomass.getFluid(1000)) - .fluidOutputs(Materials.CarbonDioxide.getGas(400)) - .duration(1 * MINUTES + 15 * SECONDS) - .eut(8) - .addTo(sDistilleryRecipes); + .noItemInputs() + .itemOutputs(ItemList.IC2_Fertilizer.get(1)) + .fluidInputs(Materials.FermentedBiomass.getFluid(1000)) + .fluidOutputs(Materials.CarbonDioxide.getGas(400)) + .duration(1 * MINUTES + 15 * SECONDS) + .eut(8) + .addTo(sDistilleryRecipes); GT_Values.RA.stdBuilder() - .noItemInputs() - .itemOutputs(ItemList.IC2_Fertilizer.get(1)) - .fluidInputs(Materials.FermentedBiomass.getFluid(1000)) - .fluidOutputs(Materials.Methane.getGas(600)) - .duration(1 * MINUTES + 15 * SECONDS) - .eut(8) - .addTo(sDistilleryRecipes); + .noItemInputs() + .itemOutputs(ItemList.IC2_Fertilizer.get(1)) + .fluidInputs(Materials.FermentedBiomass.getFluid(1000)) + .fluidOutputs(Materials.Methane.getGas(600)) + .duration(1 * MINUTES + 15 * SECONDS) + .eut(8) + .addTo(sDistilleryRecipes); GT_Values.RA.stdBuilder() - .noItemInputs() - .itemOutputs(ItemList.IC2_Fertilizer.get(1)) - .fluidInputs(Materials.FermentedBiomass.getFluid(1000)) - .fluidOutputs(new FluidStack(FluidRegistry.getFluid("ic2biogas"), 1800)) - .duration(1 * MINUTES + 20 * SECONDS) - .eut(8) - .addTo(sDistilleryRecipes); + .noItemInputs() + .itemOutputs(ItemList.IC2_Fertilizer.get(1)) + .fluidInputs(Materials.FermentedBiomass.getFluid(1000)) + .fluidOutputs(new FluidStack(FluidRegistry.getFluid("ic2biogas"), 1800)) + .duration(1 * MINUTES + 20 * SECONDS) + .eut(8) + .addTo(sDistilleryRecipes); GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.Methane.getGas(1000)) - .fluidOutputs(new FluidStack(FluidRegistry.getFluid("ic2biogas"), 3000)) - .duration(8 * SECONDS) - .eut(8) - .addTo(sDistilleryRecipes); + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.Methane.getGas(1000)) + .fluidOutputs(new FluidStack(FluidRegistry.getFluid("ic2biogas"), 3000)) + .duration(8 * SECONDS) + .eut(8) + .addTo(sDistilleryRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(2)) - .noItemOutputs() - .fluidInputs(Materials.HeavyFuel.getFluid(100)) - .fluidOutputs(Materials.Benzene.getFluid(40)) - .duration(8 * SECONDS) - .eut(24) - .addTo(sDistilleryRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(2)) + .noItemOutputs() + .fluidInputs(Materials.HeavyFuel.getFluid(100)) + .fluidOutputs(Materials.Benzene.getFluid(40)) + .duration(8 * SECONDS) + .eut(24) + .addTo(sDistilleryRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(3)) - .noItemOutputs() - .fluidInputs(Materials.HeavyFuel.getFluid(100)) - .fluidOutputs(Materials.Phenol.getFluid(25)) - .duration(8 * SECONDS) - .eut(24) - .addTo(sDistilleryRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(3)) + .noItemOutputs() + .fluidInputs(Materials.HeavyFuel.getFluid(100)) + .fluidOutputs(Materials.Phenol.getFluid(25)) + .duration(8 * SECONDS) + .eut(24) + .addTo(sDistilleryRecipes); // Dimethylbenzene GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(5)) - .noItemOutputs() - .fluidInputs(Materials.WoodTar.getFluid(200)) - .fluidOutputs(Materials.Dimethylbenzene.getFluid(30)) - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sDistilleryRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(5)) + .noItemOutputs() + .fluidInputs(Materials.WoodTar.getFluid(200)) + .fluidOutputs(Materials.Dimethylbenzene.getFluid(30)) + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sDistilleryRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(5)) - .noItemOutputs() - .fluidInputs(Materials.CharcoalByproducts.getGas(200)) - .fluidOutputs(Materials.Dimethylbenzene.getFluid(20)) - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sDistilleryRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(5)) + .noItemOutputs() + .fluidInputs(Materials.CharcoalByproducts.getGas(200)) + .fluidOutputs(Materials.Dimethylbenzene.getFluid(20)) + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sDistilleryRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .fluidInputs(new FluidStack(ItemList.sOilExtraHeavy, 10)) - .fluidOutputs(Materials.OilHeavy.getFluid(15)) - .duration(16 * TICKS) - .eut(24) - .addTo(sDistilleryRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .fluidInputs(new FluidStack(ItemList.sOilExtraHeavy, 10)) + .fluidOutputs(Materials.OilHeavy.getFluid(15)) + .duration(16 * TICKS) + .eut(24) + .addTo(sDistilleryRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .fluidInputs(Materials.HeavyFuel.getFluid(10L)) - .fluidOutputs(new FluidStack(ItemList.sToluene, 4)) - .duration(16 * TICKS) - .eut(24) - .addTo(sDistilleryRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .fluidInputs(Materials.HeavyFuel.getFluid(10L)) + .fluidOutputs(new FluidStack(ItemList.sToluene, 4)) + .duration(16 * TICKS) + .eut(24) + .addTo(sDistilleryRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .fluidInputs(new FluidStack(ItemList.sToluene, 30)) - .fluidOutputs(Materials.LightFuel.getFluid(30L)) - .duration(16 * TICKS) - .eut(24) - .addTo(sDistilleryRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .fluidInputs(new FluidStack(ItemList.sToluene, 30)) + .fluidOutputs(Materials.LightFuel.getFluid(30L)) + .duration(16 * TICKS) + .eut(24) + .addTo(sDistilleryRecipes); if (TinkerConstruct.isModLoaded()) { GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .fluidInputs(Materials.Glue.getFluid(8L)) - .fluidOutputs(getFluidStack("glue", 8)) - .duration(1 * TICKS) - .eut(24) - .addTo(sDistilleryRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .fluidInputs(Materials.Glue.getFluid(8L)) + .fluidOutputs(getFluidStack("glue", 8)) + .duration(1 * TICKS) + .eut(24) + .addTo(sDistilleryRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .fluidInputs(getFluidStack("glue", 8)) - .fluidOutputs(Materials.Glue.getFluid(4L)) - .duration(1 * TICKS) - .eut(24) - .addTo(sDistilleryRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .fluidInputs(getFluidStack("glue", 8)) + .fluidOutputs(Materials.Glue.getFluid(4L)) + .duration(1 * TICKS) + .eut(24) + .addTo(sDistilleryRecipes); } if (!GregTech_API.mIC2Classic) { GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .fluidInputs(new FluidStack(FluidRegistry.getFluid("ic2biomass"), 20)) - .fluidOutputs(new FluidStack(FluidRegistry.getFluid("ic2biogas"), 32)) - .duration(2 * SECONDS) - .eut(16) - .addTo(sDistilleryRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .fluidInputs(new FluidStack(FluidRegistry.getFluid("ic2biomass"), 20)) + .fluidOutputs(new FluidStack(FluidRegistry.getFluid("ic2biogas"), 32)) + .duration(2 * SECONDS) + .eut(16) + .addTo(sDistilleryRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(2)) - .noItemOutputs() - .fluidInputs(new FluidStack(FluidRegistry.getFluid("ic2biomass"), 4)) - .fluidOutputs(Materials.Water.getFluid(2)) - .duration(4 * SECONDS) - .eut(30) - .addTo(sDistilleryRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(2)) + .noItemOutputs() + .fluidInputs(new FluidStack(FluidRegistry.getFluid("ic2biomass"), 4)) + .fluidOutputs(Materials.Water.getFluid(2)) + .duration(4 * SECONDS) + .eut(30) + .addTo(sDistilleryRecipes); } } public void distillationTowerRecipes() { GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.Creosote.getFluid(1000L)) - .fluidOutputs(Materials.Lubricant.getFluid(500L)) - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sDistillationRecipes); + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.Creosote.getFluid(1000L)) + .fluidOutputs(Materials.Lubricant.getFluid(500L)) + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sDistillationRecipes); GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.SeedOil.getFluid(1400L)) - .fluidOutputs(Materials.Lubricant.getFluid(500L)) - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sDistillationRecipes); + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.SeedOil.getFluid(1400L)) + .fluidOutputs(Materials.Lubricant.getFluid(500L)) + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sDistillationRecipes); GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.FishOil.getFluid(1200L)) - .fluidOutputs(Materials.Lubricant.getFluid(500L)) - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sDistillationRecipes); + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.FishOil.getFluid(1200L)) + .fluidOutputs(Materials.Lubricant.getFluid(500L)) + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sDistillationRecipes); GT_Values.RA.stdBuilder() - .noItemInputs() - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Wood, 2L)) - .fluidInputs(Materials.Biomass.getFluid(1000L)) - .fluidOutputs(Materials.Ethanol.getFluid(600L), Materials.Water.getFluid(300L)) - .duration(1 * SECONDS + 12 * TICKS) - .eut(400) - .addTo(sDistillationRecipes); + .noItemInputs() + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Wood, 2L)) + .fluidInputs(Materials.Biomass.getFluid(1000L)) + .fluidOutputs(Materials.Ethanol.getFluid(600L), Materials.Water.getFluid(300L)) + .duration(1 * SECONDS + 12 * TICKS) + .eut(400) + .addTo(sDistillationRecipes); GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.Water.getFluid(1000L)) - .fluidOutputs(GT_ModHandler.getDistilledWater(1000L)) - .duration(1 * SECONDS + 12 * TICKS) - .eut(TierEU.RECIPE_MV) - .addTo(sDistillationRecipes); + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.Water.getFluid(1000L)) + .fluidOutputs(GT_ModHandler.getDistilledWater(1000L)) + .duration(1 * SECONDS + 12 * TICKS) + .eut(TierEU.RECIPE_MV) + .addTo(sDistillationRecipes); GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.OilLight.getFluid(1000L)) - .fluidOutputs(Materials.Lubricant.getFluid(250L)) - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sDistillationRecipes); + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.OilLight.getFluid(1000L)) + .fluidOutputs(Materials.Lubricant.getFluid(250L)) + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sDistillationRecipes); GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.OilMedium.getFluid(1000L)) - .fluidOutputs(Materials.Lubricant.getFluid(500L)) - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sDistillationRecipes); + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.OilMedium.getFluid(1000L)) + .fluidOutputs(Materials.Lubricant.getFluid(500L)) + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sDistillationRecipes); GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.OilHeavy.getFluid(1000L)) - .fluidOutputs(Materials.Lubricant.getFluid(750L)) - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sDistillationRecipes); + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.OilHeavy.getFluid(1000L)) + .fluidOutputs(Materials.Lubricant.getFluid(750L)) + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sDistillationRecipes); // C15H10N2O2(5HCl) = C15H10N2O2 + 5HCl GT_Values.RA.stdBuilder() - .noItemInputs() - .itemOutputs( - GT_OreDictUnificator.get( - OrePrefixes.dust, - MaterialsKevlar.DiphenylmethaneDiisocyanate, - 29L)) - .fluidInputs(MaterialsKevlar.DiphenylmethaneDiisocyanateMixture.getFluid(1000L)) - .fluidOutputs(Materials.HydrochloricAcid.getFluid(5000L)) - .duration(2 * MINUTES + 5 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sDistillationRecipes); + .noItemInputs() + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, MaterialsKevlar.DiphenylmethaneDiisocyanate, 29L)) + .fluidInputs(MaterialsKevlar.DiphenylmethaneDiisocyanateMixture.getFluid(1000L)) + .fluidOutputs(Materials.HydrochloricAcid.getFluid(5000L)) + .duration(2 * MINUTES + 5 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sDistillationRecipes); GT_Values.RA.stdBuilder() - .noItemInputs() - .itemOutputs(Materials.Charcoal.getDustSmall(1)) - .fluidInputs(Materials.CharcoalByproducts.getGas(1000)) - .fluidOutputs( - Materials.WoodTar.getFluid(250), - Materials.WoodVinegar.getFluid(400), - Materials.WoodGas.getGas(250), - MaterialsKevlar.IIIDimethylbenzene.getFluid(100)) - .duration(2 * SECONDS) - .eut(256) - .addTo(sDistillationRecipes); + .noItemInputs() + .itemOutputs(Materials.Charcoal.getDustSmall(1)) + .fluidInputs(Materials.CharcoalByproducts.getGas(1000)) + .fluidOutputs( + Materials.WoodTar.getFluid(250), + Materials.WoodVinegar.getFluid(400), + Materials.WoodGas.getGas(250), + MaterialsKevlar.IIIDimethylbenzene.getFluid(100)) + .duration(2 * SECONDS) + .eut(256) + .addTo(sDistillationRecipes); GT_Values.RA.stdBuilder() - .noItemInputs() - .itemOutputs(GT_Values.NI) - .fluidInputs(Materials.WoodTar.getFluid(1000)) - .fluidOutputs( - Materials.Creosote.getFluid(250), - Materials.Phenol.getFluid(100), - Materials.Benzene.getFluid(400), - Materials.Toluene.getFluid(100), - MaterialsKevlar.IIIDimethylbenzene.getFluid(150)) - .duration(2 * SECONDS) - .eut(256) - .addTo(sDistillationRecipes); + .noItemInputs() + .itemOutputs(GT_Values.NI) + .fluidInputs(Materials.WoodTar.getFluid(1000)) + .fluidOutputs( + Materials.Creosote.getFluid(250), + Materials.Phenol.getFluid(100), + Materials.Benzene.getFluid(400), + Materials.Toluene.getFluid(100), + MaterialsKevlar.IIIDimethylbenzene.getFluid(150)) + .duration(2 * SECONDS) + .eut(256) + .addTo(sDistillationRecipes); GT_Values.RA.stdBuilder() - .noItemInputs() - .itemOutputs(Materials.Charcoal.getDustSmall(1)) - .fluidInputs(Materials.CharcoalByproducts.getGas(1000)) - .fluidOutputs( - Materials.WoodTar.getFluid(250), - Materials.WoodVinegar.getFluid(400), - Materials.WoodGas.getGas(250), - MaterialsKevlar.IVDimethylbenzene.getFluid(100)) - .duration(2 * SECONDS) - .eut(256) - .addTo(sDistillationRecipes); + .noItemInputs() + .itemOutputs(Materials.Charcoal.getDustSmall(1)) + .fluidInputs(Materials.CharcoalByproducts.getGas(1000)) + .fluidOutputs( + Materials.WoodTar.getFluid(250), + Materials.WoodVinegar.getFluid(400), + Materials.WoodGas.getGas(250), + MaterialsKevlar.IVDimethylbenzene.getFluid(100)) + .duration(2 * SECONDS) + .eut(256) + .addTo(sDistillationRecipes); GT_Values.RA.stdBuilder() - .noItemInputs() - .itemOutputs(Materials.Charcoal.getDustSmall(1)) - .fluidInputs(Materials.CharcoalByproducts.getGas(1000)) - .fluidOutputs( - Materials.WoodTar.getFluid(250), - Materials.WoodVinegar.getFluid(400), - Materials.WoodGas.getGas(250), - Materials.Dimethylbenzene.getFluid(20), - MaterialsKevlar.IIIDimethylbenzene.getFluid(60), - MaterialsKevlar.IVDimethylbenzene.getFluid(20)) - .duration(2 * SECONDS) - .eut(256) - .addTo(sDistillationRecipes); + .noItemInputs() + .itemOutputs(Materials.Charcoal.getDustSmall(1)) + .fluidInputs(Materials.CharcoalByproducts.getGas(1000)) + .fluidOutputs( + Materials.WoodTar.getFluid(250), + Materials.WoodVinegar.getFluid(400), + Materials.WoodGas.getGas(250), + Materials.Dimethylbenzene.getFluid(20), + MaterialsKevlar.IIIDimethylbenzene.getFluid(60), + MaterialsKevlar.IVDimethylbenzene.getFluid(20)) + .duration(2 * SECONDS) + .eut(256) + .addTo(sDistillationRecipes); GT_Values.RA.stdBuilder() - .noItemInputs() - .itemOutputs(GT_Values.NI) - .fluidInputs(Materials.WoodTar.getFluid(1000)) - .fluidOutputs( - Materials.Creosote.getFluid(250), - Materials.Phenol.getFluid(100), - Materials.Benzene.getFluid(400), - Materials.Toluene.getFluid(100), - Materials.Dimethylbenzene.getFluid(30), - MaterialsKevlar.IIIDimethylbenzene.getFluid(90), - MaterialsKevlar.IVDimethylbenzene.getFluid(30)) - .duration(2 * SECONDS) - .eut(256) - .addTo(sDistillationRecipes); + .noItemInputs() + .itemOutputs(GT_Values.NI) + .fluidInputs(Materials.WoodTar.getFluid(1000)) + .fluidOutputs( + Materials.Creosote.getFluid(250), + Materials.Phenol.getFluid(100), + Materials.Benzene.getFluid(400), + Materials.Toluene.getFluid(100), + Materials.Dimethylbenzene.getFluid(30), + MaterialsKevlar.IIIDimethylbenzene.getFluid(90), + MaterialsKevlar.IVDimethylbenzene.getFluid(30)) + .duration(2 * SECONDS) + .eut(256) + .addTo(sDistillationRecipes); GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.OilLight.getFluid(1500)) - .fluidOutputs( - Materials.SulfuricHeavyFuel.getFluid(100), - Materials.SulfuricLightFuel.getFluid(200), - Materials.SulfuricNaphtha.getFluid(300), - MaterialsKevlar.NaphthenicAcid.getFluid(25), - Materials.SulfuricGas.getGas(2400)) - .duration(1 * SECONDS + 12 * TICKS) - .eut(TierEU.RECIPE_HV) - .addTo(sDistillationRecipes); + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.OilLight.getFluid(1500)) + .fluidOutputs( + Materials.SulfuricHeavyFuel.getFluid(100), + Materials.SulfuricLightFuel.getFluid(200), + Materials.SulfuricNaphtha.getFluid(300), + MaterialsKevlar.NaphthenicAcid.getFluid(25), + Materials.SulfuricGas.getGas(2400)) + .duration(1 * SECONDS + 12 * TICKS) + .eut(TierEU.RECIPE_HV) + .addTo(sDistillationRecipes); GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.OilMedium.getFluid(1000)) - .fluidOutputs( - Materials.SulfuricHeavyFuel.getFluid(100), - Materials.SulfuricLightFuel.getFluid(500), - Materials.SulfuricNaphtha.getFluid(1500), - MaterialsKevlar.NaphthenicAcid.getFluid(25), - Materials.SulfuricGas.getGas(600)) - .duration(1 * SECONDS + 12 * TICKS) - .eut(TierEU.RECIPE_HV) - .addTo(sDistillationRecipes); + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.OilMedium.getFluid(1000)) + .fluidOutputs( + Materials.SulfuricHeavyFuel.getFluid(100), + Materials.SulfuricLightFuel.getFluid(500), + Materials.SulfuricNaphtha.getFluid(1500), + MaterialsKevlar.NaphthenicAcid.getFluid(25), + Materials.SulfuricGas.getGas(600)) + .duration(1 * SECONDS + 12 * TICKS) + .eut(TierEU.RECIPE_HV) + .addTo(sDistillationRecipes); GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.Oil.getFluid(500L)) - .fluidOutputs( - Materials.SulfuricHeavyFuel.getFluid(150), - Materials.SulfuricLightFuel.getFluid(500), - Materials.SulfuricNaphtha.getFluid(200), - MaterialsKevlar.NaphthenicAcid.getFluid(25), - Materials.SulfuricGas.getGas(600)) - .duration(1 * SECONDS + 12 * TICKS) - .eut(TierEU.RECIPE_HV) - .addTo(sDistillationRecipes); + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.Oil.getFluid(500L)) + .fluidOutputs( + Materials.SulfuricHeavyFuel.getFluid(150), + Materials.SulfuricLightFuel.getFluid(500), + Materials.SulfuricNaphtha.getFluid(200), + MaterialsKevlar.NaphthenicAcid.getFluid(25), + Materials.SulfuricGas.getGas(600)) + .duration(1 * SECONDS + 12 * TICKS) + .eut(TierEU.RECIPE_HV) + .addTo(sDistillationRecipes); GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.OilHeavy.getFluid(1000)) - .fluidOutputs( - Materials.SulfuricHeavyFuel.getFluid(2500), - Materials.SulfuricLightFuel.getFluid(450), - Materials.SulfuricNaphtha.getFluid(150), - MaterialsKevlar.NaphthenicAcid.getFluid(50), - Materials.SulfuricGas.getGas(600)) - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sDistillationRecipes); + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.OilHeavy.getFluid(1000)) + .fluidOutputs( + Materials.SulfuricHeavyFuel.getFluid(2500), + Materials.SulfuricLightFuel.getFluid(450), + Materials.SulfuricNaphtha.getFluid(150), + MaterialsKevlar.NaphthenicAcid.getFluid(50), + Materials.SulfuricGas.getGas(600)) + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sDistillationRecipes); // 9C5H12O = 4C6H14O + 5CH4O + 4C4H8 GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.MTBEMixture.getGas(900L)) - .fluidOutputs( - Materials.AntiKnock.getFluid(400L), - Materials.Methanol.getFluid(500L), - Materials.Butene.getGas(400L)) - .duration(2 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sDistillationRecipes); + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.MTBEMixture.getGas(900L)) + .fluidOutputs( + Materials.AntiKnock.getFluid(400L), + Materials.Methanol.getFluid(500L), + Materials.Butene.getGas(400L)) + .duration(2 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sDistillationRecipes); GT_Values.RA.stdBuilder() - .noItemInputs() - .itemOutputs(ItemList.IC2_Fertilizer.get(1)) - .fluidInputs(Materials.FermentedBiomass.getFluid(1000)) - .fluidOutputs( - Materials.AceticAcid.getFluid(25), - Materials.Water.getFluid(375), - Materials.Ethanol.getFluid(150), - Materials.Methanol.getFluid(150), - Materials.Ammonia.getGas(100), - Materials.CarbonDioxide.getGas(400), - Materials.Methane.getGas(600)) - .duration(3 * SECONDS + 15 * TICKS) - .eut(TierEU.RECIPE_MV) - .addTo(sDistillationRecipes); + .noItemInputs() + .itemOutputs(ItemList.IC2_Fertilizer.get(1)) + .fluidInputs(Materials.FermentedBiomass.getFluid(1000)) + .fluidOutputs( + Materials.AceticAcid.getFluid(25), + Materials.Water.getFluid(375), + Materials.Ethanol.getFluid(150), + Materials.Methanol.getFluid(150), + Materials.Ammonia.getGas(100), + Materials.CarbonDioxide.getGas(400), + Materials.Methane.getGas(600)) + .duration(3 * SECONDS + 15 * TICKS) + .eut(TierEU.RECIPE_MV) + .addTo(sDistillationRecipes); if (!GregTech_API.mIC2Classic) { GT_Values.RA.stdBuilder() - .noItemInputs() - .itemOutputs(ItemList.IC2_Fertilizer.get(1)) - .fluidInputs(new FluidStack(FluidRegistry.getFluid("ic2biomass"), 3000)) - .fluidOutputs( - new FluidStack(FluidRegistry.getFluid("ic2biogas"), 8000), - Materials.Water.getFluid(125L)) - .duration(12 * SECONDS + 10 * TICKS) - .eut(TierEU.RECIPE_HV) - .addTo(sDistillationRecipes); + .noItemInputs() + .itemOutputs(ItemList.IC2_Fertilizer.get(1)) + .fluidInputs(new FluidStack(FluidRegistry.getFluid("ic2biomass"), 3000)) + .fluidOutputs(new FluidStack(FluidRegistry.getFluid("ic2biogas"), 8000), Materials.Water.getFluid(125L)) + .duration(12 * SECONDS + 10 * TICKS) + .eut(TierEU.RECIPE_HV) + .addTo(sDistillationRecipes); } } public void universalDistillationTowerRecipes() { addUniversalDistillationRecipewithCircuit( - Materials.WoodTar.getFluid(1000), - new ItemStack[] { GT_Utility.getIntegratedCircuit(3) }, - new FluidStack[] { Materials.Creosote.getFluid(250), Materials.Phenol.getFluid(100), - Materials.Benzene.getFluid(400), Materials.Toluene.getFluid(100), - MaterialsKevlar.IVDimethylbenzene.getFluid(150) }, - GT_Values.NI, - 40, - 256); + Materials.WoodTar.getFluid(1000), + new ItemStack[] { GT_Utility.getIntegratedCircuit(3) }, + new FluidStack[] { Materials.Creosote.getFluid(250), Materials.Phenol.getFluid(100), + Materials.Benzene.getFluid(400), Materials.Toluene.getFluid(100), + MaterialsKevlar.IVDimethylbenzene.getFluid(150) }, + GT_Values.NI, + 40, + 256); addUniversalDistillationRecipewithCircuit( - Materials.CharcoalByproducts.getGas(1000), - new ItemStack[] { GT_Utility.getIntegratedCircuit(1) }, - new FluidStack[] { Materials.WoodTar.getFluid(250), Materials.WoodVinegar.getFluid(400), - Materials.WoodGas.getGas(250), Materials.Dimethylbenzene.getFluid(100) }, - Materials.Charcoal.getDustSmall(1), - 40, - 256); + Materials.CharcoalByproducts.getGas(1000), + new ItemStack[] { GT_Utility.getIntegratedCircuit(1) }, + new FluidStack[] { Materials.WoodTar.getFluid(250), Materials.WoodVinegar.getFluid(400), + Materials.WoodGas.getGas(250), Materials.Dimethylbenzene.getFluid(100) }, + Materials.Charcoal.getDustSmall(1), + 40, + 256); addUniversalDistillationRecipewithCircuit( - Materials.WoodGas.getGas(1000), - new ItemStack[] { GT_Utility.getIntegratedCircuit(1) }, - new FluidStack[] { Materials.CarbonDioxide.getGas(390), Materials.Ethylene.getGas(120), - Materials.Methane.getGas(130), Materials.CarbonMonoxide.getGas(240), - Materials.Hydrogen.getGas(120) }, - GT_Values.NI, - 40, - 256); + Materials.WoodGas.getGas(1000), + new ItemStack[] { GT_Utility.getIntegratedCircuit(1) }, + new FluidStack[] { Materials.CarbonDioxide.getGas(390), Materials.Ethylene.getGas(120), + Materials.Methane.getGas(130), Materials.CarbonMonoxide.getGas(240), Materials.Hydrogen.getGas(120) }, + GT_Values.NI, + 40, + 256); addUniversalDistillationRecipewithCircuit( - Materials.WoodVinegar.getFluid(1000), - new ItemStack[] { GT_Utility.getIntegratedCircuit(1) }, - new FluidStack[] { Materials.AceticAcid.getFluid(100), Materials.Water.getFluid(500), - Materials.Ethanol.getFluid(10), Materials.Methanol.getFluid(300), - Materials.Acetone.getFluid(50), Materials.MethylAcetate.getFluid(10) }, - GT_Values.NI, - 40, - 256); + Materials.WoodVinegar.getFluid(1000), + new ItemStack[] { GT_Utility.getIntegratedCircuit(1) }, + new FluidStack[] { Materials.AceticAcid.getFluid(100), Materials.Water.getFluid(500), + Materials.Ethanol.getFluid(10), Materials.Methanol.getFluid(300), Materials.Acetone.getFluid(50), + Materials.MethylAcetate.getFluid(10) }, + GT_Values.NI, + 40, + 256); addUniversalDistillationRecipewithCircuit( - Materials.WoodTar.getFluid(1000), - new ItemStack[] { GT_Utility.getIntegratedCircuit(1) }, - new FluidStack[] { Materials.Creosote.getFluid(250), Materials.Phenol.getFluid(100), - Materials.Benzene.getFluid(400), Materials.Toluene.getFluid(100), - Materials.Dimethylbenzene.getFluid(150) }, - GT_Values.NI, - 40, - 256); + Materials.WoodTar.getFluid(1000), + new ItemStack[] { GT_Utility.getIntegratedCircuit(1) }, + new FluidStack[] { Materials.Creosote.getFluid(250), Materials.Phenol.getFluid(100), + Materials.Benzene.getFluid(400), Materials.Toluene.getFluid(100), + Materials.Dimethylbenzene.getFluid(150) }, + GT_Values.NI, + 40, + 256); addUniversalDistillationRecipewithCircuit( - Materials.OilLight.getFluid(150), - new ItemStack[] { GT_Utility.getIntegratedCircuit(1) }, - new FluidStack[] { Materials.SulfuricHeavyFuel.getFluid(10), Materials.SulfuricLightFuel.getFluid(20), - Materials.SulfuricNaphtha.getFluid(30), Materials.SulfuricGas.getGas(240) }, - null, - 20, - 96); + Materials.OilLight.getFluid(150), + new ItemStack[] { GT_Utility.getIntegratedCircuit(1) }, + new FluidStack[] { Materials.SulfuricHeavyFuel.getFluid(10), Materials.SulfuricLightFuel.getFluid(20), + Materials.SulfuricNaphtha.getFluid(30), Materials.SulfuricGas.getGas(240) }, + null, + 20, + 96); addUniversalDistillationRecipewithCircuit( - Materials.OilMedium.getFluid(100), - new ItemStack[] { GT_Utility.getIntegratedCircuit(1) }, - new FluidStack[] { Materials.SulfuricHeavyFuel.getFluid(10), Materials.SulfuricLightFuel.getFluid(50), - Materials.SulfuricNaphtha.getFluid(150), Materials.SulfuricGas.getGas(60) }, - null, - 20, - 96); + Materials.OilMedium.getFluid(100), + new ItemStack[] { GT_Utility.getIntegratedCircuit(1) }, + new FluidStack[] { Materials.SulfuricHeavyFuel.getFluid(10), Materials.SulfuricLightFuel.getFluid(50), + Materials.SulfuricNaphtha.getFluid(150), Materials.SulfuricGas.getGas(60) }, + null, + 20, + 96); addUniversalDistillationRecipewithCircuit( - Materials.Oil.getFluid(50L), - new ItemStack[] { GT_Utility.getIntegratedCircuit(1) }, - new FluidStack[] { Materials.SulfuricHeavyFuel.getFluid(15), Materials.SulfuricLightFuel.getFluid(50), - Materials.SulfuricNaphtha.getFluid(20), Materials.SulfuricGas.getGas(60) }, - null, - 20, - 96); + Materials.Oil.getFluid(50L), + new ItemStack[] { GT_Utility.getIntegratedCircuit(1) }, + new FluidStack[] { Materials.SulfuricHeavyFuel.getFluid(15), Materials.SulfuricLightFuel.getFluid(50), + Materials.SulfuricNaphtha.getFluid(20), Materials.SulfuricGas.getGas(60) }, + null, + 20, + 96); addUniversalDistillationRecipewithCircuit( - Materials.OilHeavy.getFluid(100), - new ItemStack[] { GT_Utility.getIntegratedCircuit(1) }, - new FluidStack[] { Materials.SulfuricHeavyFuel.getFluid(250), Materials.SulfuricLightFuel.getFluid(45), - Materials.SulfuricNaphtha.getFluid(15), Materials.SulfuricGas.getGas(60) }, - null, - 20, - 288); + Materials.OilHeavy.getFluid(100), + new ItemStack[] { GT_Utility.getIntegratedCircuit(1) }, + new FluidStack[] { Materials.SulfuricHeavyFuel.getFluid(250), Materials.SulfuricLightFuel.getFluid(45), + Materials.SulfuricNaphtha.getFluid(15), Materials.SulfuricGas.getGas(60) }, + null, + 20, + 288); // 2 0.5HCl(Diluted) = HCl + H2O addUniversalDistillationRecipe( - Materials.DilutedHydrochloricAcid.getFluid(2000), - new FluidStack[] { Materials.Water.getFluid(1000), Materials.HydrochloricAcid.getFluid(1000) }, - GT_Values.NI, - 600, - 64); + Materials.DilutedHydrochloricAcid.getFluid(2000), + new FluidStack[] { Materials.Water.getFluid(1000), Materials.HydrochloricAcid.getFluid(1000) }, + GT_Values.NI, + 600, + 64); addUniversalDistillationRecipe( - getFluidStack("potion.vinegar", 40), - new FluidStack[] { Materials.AceticAcid.getFluid(5), Materials.Water.getFluid(35) }, - GT_Values.NI, - 20, - 64); + getFluidStack("potion.vinegar", 40), + new FluidStack[] { Materials.AceticAcid.getFluid(5), Materials.Water.getFluid(35) }, + GT_Values.NI, + 20, + 64); addUniversalDistillationRecipe( - Materials.CalciumAcetateSolution.getFluid(1000), - new FluidStack[] { Materials.Acetone.getFluid(1000), Materials.CarbonDioxide.getGas(1000) }, - Materials.Quicklime.getDust(2), - 80, - 480); + Materials.CalciumAcetateSolution.getFluid(1000), + new FluidStack[] { Materials.Acetone.getFluid(1000), Materials.CarbonDioxide.getGas(1000) }, + Materials.Quicklime.getDust(2), + 80, + 480); addUniversalDistillationRecipe( - Materials.DilutedSulfuricAcid.getFluid(3000), - new FluidStack[] { Materials.SulfuricAcid.getFluid(2000), Materials.Water.getFluid(1000) }, - GT_Values.NI, - 600, - 120); + Materials.DilutedSulfuricAcid.getFluid(3000), + new FluidStack[] { Materials.SulfuricAcid.getFluid(2000), Materials.Water.getFluid(1000) }, + GT_Values.NI, + 600, + 120); // C3H6O = C2H2O + CH4 addUniversalDistillationRecipe( - Materials.Acetone.getFluid(1000), - new FluidStack[] { Materials.Ethenone.getGas(1000), Materials.Methane.getGas(1000) }, - GT_Values.NI, - 80, - 640); - - addUniversalDistillationRecipe( - Materials.Gas.getGas(1000), - new FluidStack[] { Materials.Butane.getGas(60), Materials.Propane.getGas(70), - Materials.Ethane.getGas(100), Materials.Methane.getGas(750), Materials.Helium.getGas(20) }, - GT_Values.NI, - 240, - 120); - - addUniversalDistillationRecipe( - Materials.Ethylene.getLightlyHydroCracked(1000), - new FluidStack[] { Materials.Ethane.getGas(1000) }, - GT_Values.NI, - 120, - 120); - addUniversalDistillationRecipe( - Materials.Ethylene.getModeratelyHydroCracked(1000), - new FluidStack[] { Materials.Methane.getGas(2000) }, - null, - 120, - 120); - addUniversalDistillationRecipe( - Materials.Ethylene.getSeverelyHydroCracked(1000), - new FluidStack[] { Materials.Methane.getGas(2000), Materials.Hydrogen.getGas(2000) }, - GT_Values.NI, - 120, - 120); - addUniversalDistillationRecipe( - Materials.Ethylene.getLightlySteamCracked(1000), - new FluidStack[] { Materials.Methane.getGas(1000) }, - Materials.Carbon.getDust(1), - 120, - 120); - addUniversalDistillationRecipe( - Materials.Ethylene.getModeratelySteamCracked(1000), - new FluidStack[] { Materials.Methane.getGas(1000) }, - Materials.Carbon.getDust(1), - 120, - 120); - addUniversalDistillationRecipe( - Materials.Ethylene.getSeverelySteamCracked(1000), - new FluidStack[] { Materials.Methane.getGas(1000) }, - Materials.Carbon.getDust(1), - 120, - 120); - - addUniversalDistillationRecipe( - Materials.Ethane.getLightlyHydroCracked(1000), - new FluidStack[] { Materials.Methane.getGas(2000) }, - GT_Values.NI, - 120, - 120); - addUniversalDistillationRecipe( - Materials.Ethane.getModeratelyHydroCracked(1000), - new FluidStack[] { Materials.Methane.getGas(2000), Materials.Hydrogen.getGas(2000) }, - GT_Values.NI, - 120, - 120); - addUniversalDistillationRecipe( - Materials.Ethane.getSeverelyHydroCracked(1000), - new FluidStack[] { Materials.Methane.getGas(2000), Materials.Hydrogen.getGas(4000) }, - GT_Values.NI, - 120, - 120); - addUniversalDistillationRecipe( - Materials.Ethane.getLightlySteamCracked(1000), - new FluidStack[] { Materials.Ethylene.getGas(250), Materials.Methane.getGas(1250) }, - Materials.Carbon.getDustSmall(1), - 120, - 120); - addUniversalDistillationRecipe( - Materials.Ethane.getModeratelySteamCracked(1000), - new FluidStack[] { Materials.Ethylene.getGas(125), Materials.Methane.getGas(1375) }, - Materials.Carbon.getDustTiny(6), - 120, - 120); - addUniversalDistillationRecipe( - Materials.Ethane.getSeverelySteamCracked(1000), - new FluidStack[] { Materials.Methane.getGas(1500) }, - Materials.Carbon.getDustSmall(2), - 120, - 120); - - addUniversalDistillationRecipe( - Materials.Propene.getLightlyHydroCracked(1000), - new FluidStack[] { Materials.Propane.getGas(500), Materials.Ethylene.getGas(500), - Materials.Methane.getGas(500) }, - GT_Values.NI, - 120, - 120); - addUniversalDistillationRecipe( - Materials.Propene.getModeratelyHydroCracked(1000), - new FluidStack[] { Materials.Ethane.getGas(1000), Materials.Methane.getGas(1000) }, - GT_Values.NI, - 120, - 120); - addUniversalDistillationRecipe( - Materials.Propene.getSeverelyHydroCracked(1000), - new FluidStack[] { Materials.Methane.getGas(3000) }, - GT_Values.NI, - 120, - 120); - addUniversalDistillationRecipe( - Materials.Propene.getLightlySteamCracked(1000), - new FluidStack[] { Materials.Ethylene.getGas(1000), Materials.Methane.getGas(500) }, - Materials.Carbon.getDustSmall(2), - 120, - 120); - addUniversalDistillationRecipe( - Materials.Propene.getModeratelySteamCracked(1000), - new FluidStack[] { Materials.Ethylene.getGas(750), Materials.Methane.getGas(750) }, - Materials.Carbon.getDustSmall(3), - 180, - 120); - addUniversalDistillationRecipe( - Materials.Propene.getSeverelySteamCracked(1000), - new FluidStack[] { Materials.Methane.getGas(1500) }, - Materials.Carbon.getDustSmall(6), - 180, - 120); - - addUniversalDistillationRecipe( - Materials.Propane.getLightlyHydroCracked(1000), - new FluidStack[] { Materials.Ethane.getGas(1000), Materials.Methane.getGas(1000) }, - GT_Values.NI, - 120, - 120); - addUniversalDistillationRecipe( - Materials.Propane.getModeratelyHydroCracked(1000), - new FluidStack[] { Materials.Methane.getGas(3000) }, - GT_Values.NI, - 120, - 120); - addUniversalDistillationRecipe( - Materials.Propane.getSeverelyHydroCracked(1000), - new FluidStack[] { Materials.Methane.getGas(3000), Materials.Hydrogen.getGas(2000) }, - GT_Values.NI, - 120, - 120); - addUniversalDistillationRecipe( - Materials.Propane.getLightlySteamCracked(1000), - new FluidStack[] { Materials.Ethylene.getGas(750), Materials.Methane.getGas(1250) }, - Materials.Carbon.getDustTiny(2), - 120, - 120); - addUniversalDistillationRecipe( - Materials.Propane.getModeratelySteamCracked(1000), - new FluidStack[] { Materials.Ethylene.getGas(500), Materials.Methane.getGas(1500) }, - Materials.Carbon.getDustSmall(1), - 120, - 120); - addUniversalDistillationRecipe( - Materials.Propane.getSeverelySteamCracked(1000), - new FluidStack[] { Materials.Ethylene.getGas(250), Materials.Methane.getGas(1750) }, - Materials.Carbon.getDustTiny(4), - 120, - 120); - - addUniversalDistillationRecipe( - Materials.Butadiene.getLightlyHydroCracked(1000), - new FluidStack[] { Materials.Butene.getGas(667), Materials.Ethylene.getGas(667) }, - GT_Values.NI, - 120, - 120); - addUniversalDistillationRecipe( - Materials.Butadiene.getModeratelyHydroCracked(1000), - new FluidStack[] { Materials.Butane.getGas(223), Materials.Propene.getGas(223), - Materials.Ethane.getGas(400), Materials.Ethylene.getGas(445), Materials.Methane.getGas(223) }, - GT_Values.NI, - 120, - 120); - addUniversalDistillationRecipe( - Materials.Butadiene.getSeverelyHydroCracked(1000), - new FluidStack[] { Materials.Propane.getGas(260), Materials.Ethane.getGas(926), - Materials.Ethylene.getGas(389), Materials.Methane.getGas(2667) }, - GT_Values.NI, - 112, - 120); - addUniversalDistillationRecipe( - Materials.Butadiene.getLightlySteamCracked(1000), - new FluidStack[] { Materials.Propene.getGas(750), Materials.Ethylene.getGas(188), - Materials.Methane.getGas(188) }, - Materials.Carbon.getDustSmall(3), - 120, - 120); - addUniversalDistillationRecipe( - Materials.Butadiene.getModeratelySteamCracked(1000), - new FluidStack[] { Materials.Propene.getGas(125), Materials.Ethylene.getGas(1125), - Materials.Methane.getGas(188) }, - Materials.Carbon.getDustSmall(3), - 120, - 120); - addUniversalDistillationRecipe( - Materials.Butadiene.getSeverelySteamCracked(1000), - new FluidStack[] { Materials.Propene.getGas(125), Materials.Ethylene.getGas(188), - Materials.Methane.getGas(1125) }, - Materials.Carbon.getDust(1), - 120, - 120); - - addUniversalDistillationRecipe( - Materials.Butene.getLightlyHydroCracked(1000), - new FluidStack[] { Materials.Butane.getGas(334), Materials.Propene.getGas(334), - Materials.Ethane.getGas(334), Materials.Ethylene.getGas(334), Materials.Methane.getGas(334) }, - GT_Values.NI, - 120, - 120); - addUniversalDistillationRecipe( - Materials.Butene.getModeratelyHydroCracked(1000), - new FluidStack[] { Materials.Propane.getGas(389), Materials.Ethane.getGas(556), - Materials.Ethylene.getGas(334), Materials.Methane.getGas(1056) }, - GT_Values.NI, - 120, - 120); - addUniversalDistillationRecipe( - Materials.Butene.getSeverelyHydroCracked(1000), - new FluidStack[] { Materials.Ethane.getGas(1000), Materials.Methane.getGas(2000) }, - GT_Values.NI, - 120, - 120); - addUniversalDistillationRecipe( - Materials.Butene.getLightlySteamCracked(1000), - new FluidStack[] { Materials.Propene.getGas(750), Materials.Ethylene.getGas(500), - Materials.Methane.getGas(250) }, - Materials.Carbon.getDustSmall(1), - 120, - 120); - addUniversalDistillationRecipe( - Materials.Butene.getModeratelySteamCracked(1000), - new FluidStack[] { Materials.Propene.getGas(200), Materials.Ethylene.getGas(1300), - Materials.Methane.getGas(400) }, - Materials.Carbon.getDustSmall(1), - 192, - 120); - addUniversalDistillationRecipe( - Materials.Butene.getSeverelySteamCracked(1000), - new FluidStack[] { Materials.Propene.getGas(125), Materials.Ethylene.getGas(313), - Materials.Methane.getGas(1500) }, - Materials.Carbon.getDustSmall(6), - 120, - 120); - - addUniversalDistillationRecipe( - Materials.Butane.getLightlyHydroCracked(1000), - new FluidStack[] { Materials.Propane.getGas(667), Materials.Ethane.getGas(667), - Materials.Methane.getGas(667) }, - GT_Values.NI, - 120, - 120); - addUniversalDistillationRecipe( - Materials.Butane.getModeratelyHydroCracked(1000), - new FluidStack[] { Materials.Ethane.getGas(1000), Materials.Methane.getGas(2000) }, - GT_Values.NI, - 120, - 120); - addUniversalDistillationRecipe( - Materials.Butane.getSeverelyHydroCracked(1000), - new FluidStack[] { Materials.Methane.getGas(1000) }, - GT_Values.NI, - 120, - 120); - addUniversalDistillationRecipe( - Materials.Butane.getLightlySteamCracked(1000), - new FluidStack[] { Materials.Propane.getGas(750), Materials.Ethane.getGas(125), - Materials.Ethylene.getGas(125), Materials.Methane.getGas(1063) }, - Materials.Carbon.getDustTiny(2), - 120, - 120); - addUniversalDistillationRecipe( - Materials.Butane.getModeratelySteamCracked(1000), - new FluidStack[] { Materials.Propane.getGas(125), Materials.Ethane.getGas(750), - Materials.Ethylene.getGas(750), Materials.Methane.getGas(438) }, - Materials.Carbon.getDustTiny(2), - 120, - 120); - addUniversalDistillationRecipe( - Materials.Butane.getSeverelySteamCracked(1000), - new FluidStack[] { Materials.Propane.getGas(125), Materials.Ethane.getGas(125), - Materials.Ethylene.getGas(125), Materials.Methane.getGas(2000) }, - Materials.Carbon.getDustTiny(11), - 120, - 120); - - addUniversalDistillationRecipe( - Materials.Gas.getLightlyHydroCracked(1000), - new FluidStack[] { Materials.Methane.getGas(1300), Materials.Hydrogen.getGas(1500), - Materials.Helium.getGas(100) }, - GT_Values.NI, - 120, - 120); - addUniversalDistillationRecipe( - Materials.Gas.getModeratelyHydroCracked(1000), - new FluidStack[] { Materials.Methane.getGas(1400), Materials.Hydrogen.getGas(3000), - Materials.Helium.getGas(150) }, - GT_Values.NI, - 120, - 120); - addUniversalDistillationRecipe( - Materials.Gas.getSeverelyHydroCracked(1000), - new FluidStack[] { Materials.Methane.getGas(1500), Materials.Hydrogen.getGas(4000), - Materials.Helium.getGas(200) }, - GT_Values.NI, - 120, - 120); - addUniversalDistillationRecipe( - Materials.Gas.getLightlySteamCracked(1000), - new FluidStack[] { Materials.Propene.getGas(50), Materials.Ethane.getGas(10), - Materials.Ethylene.getGas(100), Materials.Methane.getGas(500), Materials.Helium.getGas(50) }, - Materials.Carbon.getDustTiny(1), - 120, - 120); - addUniversalDistillationRecipe( - Materials.Gas.getModeratelySteamCracked(1000), - new FluidStack[] { Materials.Propene.getGas(10), Materials.Ethane.getGas(50), - Materials.Ethylene.getGas(200), Materials.Methane.getGas(600), Materials.Helium.getGas(70) }, - Materials.Carbon.getDustTiny(1), - 120, - 120); - addUniversalDistillationRecipe( - Materials.Gas.getSeverelySteamCracked(1000), - new FluidStack[] { Materials.Propene.getGas(10), Materials.Ethane.getGas(10), - Materials.Ethylene.getGas(300), Materials.Methane.getGas(700), Materials.Helium.getGas(100) }, - Materials.Carbon.getDustTiny(1), - 120, - 120); - - addUniversalDistillationRecipe( - Materials.Naphtha.getLightlyHydroCracked(1000), - new FluidStack[] { Materials.Butane.getGas(800), Materials.Propane.getGas(300), - Materials.Ethane.getGas(250), Materials.Methane.getGas(250) }, - GT_Values.NI, - 120, - 120); - addUniversalDistillationRecipe( - Materials.Naphtha.getModeratelyHydroCracked(1000), - new FluidStack[] { Materials.Butane.getGas(200), Materials.Propane.getGas(1100), - Materials.Ethane.getGas(400), Materials.Methane.getGas(400) }, - GT_Values.NI, - 120, - 120); - addUniversalDistillationRecipe( - Materials.Naphtha.getSeverelyHydroCracked(1000), - new FluidStack[] { Materials.Butane.getGas(125), Materials.Propane.getGas(125), - Materials.Ethane.getGas(1500), Materials.Methane.getGas(1500) }, - GT_Values.NI, - 120, - 120); - addUniversalDistillationRecipe( - Materials.Naphtha.getLightlySteamCracked(1000), - new FluidStack[] { Materials.HeavyFuel.getFluid(75), Materials.LightFuel.getFluid(150), - Materials.Toluene.getFluid(40), Materials.Benzene.getFluid(150), Materials.Butene.getGas(80), - Materials.Butadiene.getGas(150), Materials.Propane.getGas(15), Materials.Propene.getGas(200), - Materials.Ethane.getGas(35), Materials.Ethylene.getGas(200), Materials.Methane.getGas(200) }, - Materials.Carbon.getDustTiny(1), - 120, - 120); - addUniversalDistillationRecipe( - Materials.Naphtha.getModeratelySteamCracked(1000), - new FluidStack[] { Materials.HeavyFuel.getFluid(50), Materials.LightFuel.getFluid(100), - Materials.Toluene.getFluid(30), Materials.Benzene.getFluid(125), Materials.Butene.getGas(65), - Materials.Butadiene.getGas(100), Materials.Propane.getGas(30), Materials.Propene.getGas(400), - Materials.Ethane.getGas(50), Materials.Ethylene.getGas(350), Materials.Methane.getGas(350) }, - Materials.Carbon.getDustTiny(2), - 120, - 120); - addUniversalDistillationRecipe( - Materials.Naphtha.getSeverelySteamCracked(1000), - new FluidStack[] { Materials.HeavyFuel.getFluid(25), Materials.LightFuel.getFluid(50), - Materials.Toluene.getFluid(20), Materials.Benzene.getFluid(100), Materials.Butene.getGas(50), - Materials.Butadiene.getGas(50), Materials.Propane.getGas(15), Materials.Propene.getGas(300), - Materials.Ethane.getGas(65), Materials.Ethylene.getGas(500), Materials.Methane.getGas(500) }, - Materials.Carbon.getDustTiny(3), - 120, - 120); - - addUniversalDistillationRecipe( - Materials.LightFuel.getLightlyHydroCracked(1000), - new FluidStack[] { Materials.Naphtha.getFluid(800), Materials.Octane.getFluid(100), - Materials.Butane.getGas(150), Materials.Propane.getGas(200), Materials.Ethane.getGas(125), - Materials.Methane.getGas(125) }, - GT_Values.NI, - 120, - 120); - addUniversalDistillationRecipe( - Materials.LightFuel.getModeratelyHydroCracked(1000), - new FluidStack[] { Materials.Naphtha.getFluid(500), Materials.Octane.getFluid(50), - Materials.Butane.getGas(200), Materials.Propane.getGas(1100), Materials.Ethane.getGas(400), - Materials.Methane.getGas(400) }, - GT_Values.NI, - 120, - 120); - addUniversalDistillationRecipe( - Materials.LightFuel.getSeverelyHydroCracked(1000), - new FluidStack[] { Materials.Naphtha.getFluid(200), Materials.Octane.getFluid(20), - Materials.Butane.getGas(125), Materials.Propane.getGas(125), Materials.Ethane.getGas(1500), - Materials.Methane.getGas(1500) }, - GT_Values.NI, - 120, - 120); - addUniversalDistillationRecipe( - Materials.LightFuel.getLightlySteamCracked(1000), - new FluidStack[] { Materials.HeavyFuel.getFluid(150), Materials.Naphtha.getFluid(400), - Materials.Toluene.getFluid(40), Materials.Benzene.getFluid(200), Materials.Butene.getGas(75), - Materials.Butadiene.getGas(60), Materials.Propane.getGas(20), Materials.Propene.getGas(150), - Materials.Ethane.getGas(10), Materials.Ethylene.getGas(50), Materials.Methane.getGas(50) }, - Materials.Carbon.getDustTiny(1), - 120, - 120); - addUniversalDistillationRecipe( - Materials.LightFuel.getModeratelySteamCracked(1000), - new FluidStack[] { Materials.HeavyFuel.getFluid(100), Materials.Naphtha.getFluid(250), - Materials.Toluene.getFluid(50), Materials.Benzene.getFluid(300), Materials.Butene.getGas(90), - Materials.Butadiene.getGas(75), Materials.Propane.getGas(35), Materials.Propene.getGas(200), - Materials.Ethane.getGas(30), Materials.Ethylene.getGas(150), Materials.Methane.getGas(150) }, - Materials.Carbon.getDustTiny(2), - 120, - 120); - addUniversalDistillationRecipe( - Materials.LightFuel.getSeverelySteamCracked(1000), - new FluidStack[] { Materials.HeavyFuel.getFluid(50), Materials.Naphtha.getFluid(100), - Materials.Toluene.getFluid(30), Materials.Benzene.getFluid(150), Materials.Butene.getGas(65), - Materials.Butadiene.getGas(50), Materials.Propane.getGas(50), Materials.Propene.getGas(250), - Materials.Ethane.getGas(50), Materials.Ethylene.getGas(250), Materials.Methane.getGas(250) }, - Materials.Carbon.getDustTiny(3), - 120, - 120); - - addUniversalDistillationRecipe( - Materials.HeavyFuel.getLightlyHydroCracked(1000), - new FluidStack[] { Materials.LightFuel.getFluid(600), Materials.Naphtha.getFluid(100), - Materials.Butane.getGas(100), Materials.Propane.getGas(100), Materials.Ethane.getGas(75), - Materials.Methane.getGas(75) }, - GT_Values.NI, - 120, - 120); - addUniversalDistillationRecipe( - Materials.HeavyFuel.getModeratelyHydroCracked(1000), - new FluidStack[] { Materials.LightFuel.getFluid(400), Materials.Naphtha.getFluid(400), - Materials.Butane.getGas(150), Materials.Propane.getGas(150), Materials.Ethane.getGas(100), - Materials.Methane.getGas(100) }, - GT_Values.NI, - 120, - 120); - addUniversalDistillationRecipe( - Materials.HeavyFuel.getSeverelyHydroCracked(1000), - new FluidStack[] { Materials.LightFuel.getFluid(200), Materials.Naphtha.getFluid(250), - Materials.Butane.getGas(300), Materials.Propane.getGas(300), Materials.Ethane.getGas(175), - Materials.Methane.getGas(175) }, - GT_Values.NI, - 120, - 120); - addUniversalDistillationRecipe( - Materials.HeavyFuel.getLightlySteamCracked(1000), - new FluidStack[] { Materials.LightFuel.getFluid(300), Materials.Naphtha.getFluid(50), - Materials.Toluene.getFluid(25), Materials.Benzene.getFluid(125), Materials.Butene.getGas(25), - Materials.Butadiene.getGas(15), Materials.Propane.getGas(3), Materials.Propene.getGas(30), - Materials.Ethane.getGas(5), Materials.Ethylene.getGas(50), Materials.Methane.getGas(50) }, - Materials.Carbon.getDustTiny(1), - 120, - 120); - addUniversalDistillationRecipe( - Materials.HeavyFuel.getModeratelySteamCracked(1000), - new FluidStack[] { Materials.LightFuel.getFluid(200), Materials.Naphtha.getFluid(200), - Materials.Toluene.getFluid(40), Materials.Benzene.getFluid(200), Materials.Butene.getGas(40), - Materials.Butadiene.getGas(25), Materials.Propane.getGas(5), Materials.Propene.getGas(50), - Materials.Ethane.getGas(7), Materials.Ethylene.getGas(75), Materials.Methane.getGas(75) }, - Materials.Carbon.getDustTiny(2), - 120, - 120); - addUniversalDistillationRecipe( - Materials.HeavyFuel.getSeverelySteamCracked(1000), - new FluidStack[] { Materials.LightFuel.getFluid(100), Materials.Naphtha.getFluid(125), - Materials.Toluene.getFluid(80), Materials.Benzene.getFluid(400), Materials.Butene.getGas(80), - Materials.Butadiene.getGas(50), Materials.Propane.getGas(10), Materials.Propene.getGas(100), - Materials.Ethane.getGas(15), Materials.Ethylene.getGas(150), Materials.Methane.getGas(150) }, - Materials.Carbon.getDustTiny(3), - 120, - 120); + Materials.Acetone.getFluid(1000), + new FluidStack[] { Materials.Ethenone.getGas(1000), Materials.Methane.getGas(1000) }, + GT_Values.NI, + 80, + 640); + + addUniversalDistillationRecipe( + Materials.Gas.getGas(1000), + new FluidStack[] { Materials.Butane.getGas(60), Materials.Propane.getGas(70), Materials.Ethane.getGas(100), + Materials.Methane.getGas(750), Materials.Helium.getGas(20) }, + GT_Values.NI, + 240, + 120); + + addUniversalDistillationRecipe( + Materials.Ethylene.getLightlyHydroCracked(1000), + new FluidStack[] { Materials.Ethane.getGas(1000) }, + GT_Values.NI, + 120, + 120); + addUniversalDistillationRecipe( + Materials.Ethylene.getModeratelyHydroCracked(1000), + new FluidStack[] { Materials.Methane.getGas(2000) }, + null, + 120, + 120); + addUniversalDistillationRecipe( + Materials.Ethylene.getSeverelyHydroCracked(1000), + new FluidStack[] { Materials.Methane.getGas(2000), Materials.Hydrogen.getGas(2000) }, + GT_Values.NI, + 120, + 120); + addUniversalDistillationRecipe( + Materials.Ethylene.getLightlySteamCracked(1000), + new FluidStack[] { Materials.Methane.getGas(1000) }, + Materials.Carbon.getDust(1), + 120, + 120); + addUniversalDistillationRecipe( + Materials.Ethylene.getModeratelySteamCracked(1000), + new FluidStack[] { Materials.Methane.getGas(1000) }, + Materials.Carbon.getDust(1), + 120, + 120); + addUniversalDistillationRecipe( + Materials.Ethylene.getSeverelySteamCracked(1000), + new FluidStack[] { Materials.Methane.getGas(1000) }, + Materials.Carbon.getDust(1), + 120, + 120); + + addUniversalDistillationRecipe( + Materials.Ethane.getLightlyHydroCracked(1000), + new FluidStack[] { Materials.Methane.getGas(2000) }, + GT_Values.NI, + 120, + 120); + addUniversalDistillationRecipe( + Materials.Ethane.getModeratelyHydroCracked(1000), + new FluidStack[] { Materials.Methane.getGas(2000), Materials.Hydrogen.getGas(2000) }, + GT_Values.NI, + 120, + 120); + addUniversalDistillationRecipe( + Materials.Ethane.getSeverelyHydroCracked(1000), + new FluidStack[] { Materials.Methane.getGas(2000), Materials.Hydrogen.getGas(4000) }, + GT_Values.NI, + 120, + 120); + addUniversalDistillationRecipe( + Materials.Ethane.getLightlySteamCracked(1000), + new FluidStack[] { Materials.Ethylene.getGas(250), Materials.Methane.getGas(1250) }, + Materials.Carbon.getDustSmall(1), + 120, + 120); + addUniversalDistillationRecipe( + Materials.Ethane.getModeratelySteamCracked(1000), + new FluidStack[] { Materials.Ethylene.getGas(125), Materials.Methane.getGas(1375) }, + Materials.Carbon.getDustTiny(6), + 120, + 120); + addUniversalDistillationRecipe( + Materials.Ethane.getSeverelySteamCracked(1000), + new FluidStack[] { Materials.Methane.getGas(1500) }, + Materials.Carbon.getDustSmall(2), + 120, + 120); + + addUniversalDistillationRecipe( + Materials.Propene.getLightlyHydroCracked(1000), + new FluidStack[] { Materials.Propane.getGas(500), Materials.Ethylene.getGas(500), + Materials.Methane.getGas(500) }, + GT_Values.NI, + 120, + 120); + addUniversalDistillationRecipe( + Materials.Propene.getModeratelyHydroCracked(1000), + new FluidStack[] { Materials.Ethane.getGas(1000), Materials.Methane.getGas(1000) }, + GT_Values.NI, + 120, + 120); + addUniversalDistillationRecipe( + Materials.Propene.getSeverelyHydroCracked(1000), + new FluidStack[] { Materials.Methane.getGas(3000) }, + GT_Values.NI, + 120, + 120); + addUniversalDistillationRecipe( + Materials.Propene.getLightlySteamCracked(1000), + new FluidStack[] { Materials.Ethylene.getGas(1000), Materials.Methane.getGas(500) }, + Materials.Carbon.getDustSmall(2), + 120, + 120); + addUniversalDistillationRecipe( + Materials.Propene.getModeratelySteamCracked(1000), + new FluidStack[] { Materials.Ethylene.getGas(750), Materials.Methane.getGas(750) }, + Materials.Carbon.getDustSmall(3), + 180, + 120); + addUniversalDistillationRecipe( + Materials.Propene.getSeverelySteamCracked(1000), + new FluidStack[] { Materials.Methane.getGas(1500) }, + Materials.Carbon.getDustSmall(6), + 180, + 120); + + addUniversalDistillationRecipe( + Materials.Propane.getLightlyHydroCracked(1000), + new FluidStack[] { Materials.Ethane.getGas(1000), Materials.Methane.getGas(1000) }, + GT_Values.NI, + 120, + 120); + addUniversalDistillationRecipe( + Materials.Propane.getModeratelyHydroCracked(1000), + new FluidStack[] { Materials.Methane.getGas(3000) }, + GT_Values.NI, + 120, + 120); + addUniversalDistillationRecipe( + Materials.Propane.getSeverelyHydroCracked(1000), + new FluidStack[] { Materials.Methane.getGas(3000), Materials.Hydrogen.getGas(2000) }, + GT_Values.NI, + 120, + 120); + addUniversalDistillationRecipe( + Materials.Propane.getLightlySteamCracked(1000), + new FluidStack[] { Materials.Ethylene.getGas(750), Materials.Methane.getGas(1250) }, + Materials.Carbon.getDustTiny(2), + 120, + 120); + addUniversalDistillationRecipe( + Materials.Propane.getModeratelySteamCracked(1000), + new FluidStack[] { Materials.Ethylene.getGas(500), Materials.Methane.getGas(1500) }, + Materials.Carbon.getDustSmall(1), + 120, + 120); + addUniversalDistillationRecipe( + Materials.Propane.getSeverelySteamCracked(1000), + new FluidStack[] { Materials.Ethylene.getGas(250), Materials.Methane.getGas(1750) }, + Materials.Carbon.getDustTiny(4), + 120, + 120); + + addUniversalDistillationRecipe( + Materials.Butadiene.getLightlyHydroCracked(1000), + new FluidStack[] { Materials.Butene.getGas(667), Materials.Ethylene.getGas(667) }, + GT_Values.NI, + 120, + 120); + addUniversalDistillationRecipe( + Materials.Butadiene.getModeratelyHydroCracked(1000), + new FluidStack[] { Materials.Butane.getGas(223), Materials.Propene.getGas(223), + Materials.Ethane.getGas(400), Materials.Ethylene.getGas(445), Materials.Methane.getGas(223) }, + GT_Values.NI, + 120, + 120); + addUniversalDistillationRecipe( + Materials.Butadiene.getSeverelyHydroCracked(1000), + new FluidStack[] { Materials.Propane.getGas(260), Materials.Ethane.getGas(926), + Materials.Ethylene.getGas(389), Materials.Methane.getGas(2667) }, + GT_Values.NI, + 112, + 120); + addUniversalDistillationRecipe( + Materials.Butadiene.getLightlySteamCracked(1000), + new FluidStack[] { Materials.Propene.getGas(750), Materials.Ethylene.getGas(188), + Materials.Methane.getGas(188) }, + Materials.Carbon.getDustSmall(3), + 120, + 120); + addUniversalDistillationRecipe( + Materials.Butadiene.getModeratelySteamCracked(1000), + new FluidStack[] { Materials.Propene.getGas(125), Materials.Ethylene.getGas(1125), + Materials.Methane.getGas(188) }, + Materials.Carbon.getDustSmall(3), + 120, + 120); + addUniversalDistillationRecipe( + Materials.Butadiene.getSeverelySteamCracked(1000), + new FluidStack[] { Materials.Propene.getGas(125), Materials.Ethylene.getGas(188), + Materials.Methane.getGas(1125) }, + Materials.Carbon.getDust(1), + 120, + 120); + + addUniversalDistillationRecipe( + Materials.Butene.getLightlyHydroCracked(1000), + new FluidStack[] { Materials.Butane.getGas(334), Materials.Propene.getGas(334), + Materials.Ethane.getGas(334), Materials.Ethylene.getGas(334), Materials.Methane.getGas(334) }, + GT_Values.NI, + 120, + 120); + addUniversalDistillationRecipe( + Materials.Butene.getModeratelyHydroCracked(1000), + new FluidStack[] { Materials.Propane.getGas(389), Materials.Ethane.getGas(556), + Materials.Ethylene.getGas(334), Materials.Methane.getGas(1056) }, + GT_Values.NI, + 120, + 120); + addUniversalDistillationRecipe( + Materials.Butene.getSeverelyHydroCracked(1000), + new FluidStack[] { Materials.Ethane.getGas(1000), Materials.Methane.getGas(2000) }, + GT_Values.NI, + 120, + 120); + addUniversalDistillationRecipe( + Materials.Butene.getLightlySteamCracked(1000), + new FluidStack[] { Materials.Propene.getGas(750), Materials.Ethylene.getGas(500), + Materials.Methane.getGas(250) }, + Materials.Carbon.getDustSmall(1), + 120, + 120); + addUniversalDistillationRecipe( + Materials.Butene.getModeratelySteamCracked(1000), + new FluidStack[] { Materials.Propene.getGas(200), Materials.Ethylene.getGas(1300), + Materials.Methane.getGas(400) }, + Materials.Carbon.getDustSmall(1), + 192, + 120); + addUniversalDistillationRecipe( + Materials.Butene.getSeverelySteamCracked(1000), + new FluidStack[] { Materials.Propene.getGas(125), Materials.Ethylene.getGas(313), + Materials.Methane.getGas(1500) }, + Materials.Carbon.getDustSmall(6), + 120, + 120); + + addUniversalDistillationRecipe( + Materials.Butane.getLightlyHydroCracked(1000), + new FluidStack[] { Materials.Propane.getGas(667), Materials.Ethane.getGas(667), + Materials.Methane.getGas(667) }, + GT_Values.NI, + 120, + 120); + addUniversalDistillationRecipe( + Materials.Butane.getModeratelyHydroCracked(1000), + new FluidStack[] { Materials.Ethane.getGas(1000), Materials.Methane.getGas(2000) }, + GT_Values.NI, + 120, + 120); + addUniversalDistillationRecipe( + Materials.Butane.getSeverelyHydroCracked(1000), + new FluidStack[] { Materials.Methane.getGas(1000) }, + GT_Values.NI, + 120, + 120); + addUniversalDistillationRecipe( + Materials.Butane.getLightlySteamCracked(1000), + new FluidStack[] { Materials.Propane.getGas(750), Materials.Ethane.getGas(125), + Materials.Ethylene.getGas(125), Materials.Methane.getGas(1063) }, + Materials.Carbon.getDustTiny(2), + 120, + 120); + addUniversalDistillationRecipe( + Materials.Butane.getModeratelySteamCracked(1000), + new FluidStack[] { Materials.Propane.getGas(125), Materials.Ethane.getGas(750), + Materials.Ethylene.getGas(750), Materials.Methane.getGas(438) }, + Materials.Carbon.getDustTiny(2), + 120, + 120); + addUniversalDistillationRecipe( + Materials.Butane.getSeverelySteamCracked(1000), + new FluidStack[] { Materials.Propane.getGas(125), Materials.Ethane.getGas(125), + Materials.Ethylene.getGas(125), Materials.Methane.getGas(2000) }, + Materials.Carbon.getDustTiny(11), + 120, + 120); + + addUniversalDistillationRecipe( + Materials.Gas.getLightlyHydroCracked(1000), + new FluidStack[] { Materials.Methane.getGas(1300), Materials.Hydrogen.getGas(1500), + Materials.Helium.getGas(100) }, + GT_Values.NI, + 120, + 120); + addUniversalDistillationRecipe( + Materials.Gas.getModeratelyHydroCracked(1000), + new FluidStack[] { Materials.Methane.getGas(1400), Materials.Hydrogen.getGas(3000), + Materials.Helium.getGas(150) }, + GT_Values.NI, + 120, + 120); + addUniversalDistillationRecipe( + Materials.Gas.getSeverelyHydroCracked(1000), + new FluidStack[] { Materials.Methane.getGas(1500), Materials.Hydrogen.getGas(4000), + Materials.Helium.getGas(200) }, + GT_Values.NI, + 120, + 120); + addUniversalDistillationRecipe( + Materials.Gas.getLightlySteamCracked(1000), + new FluidStack[] { Materials.Propene.getGas(50), Materials.Ethane.getGas(10), + Materials.Ethylene.getGas(100), Materials.Methane.getGas(500), Materials.Helium.getGas(50) }, + Materials.Carbon.getDustTiny(1), + 120, + 120); + addUniversalDistillationRecipe( + Materials.Gas.getModeratelySteamCracked(1000), + new FluidStack[] { Materials.Propene.getGas(10), Materials.Ethane.getGas(50), + Materials.Ethylene.getGas(200), Materials.Methane.getGas(600), Materials.Helium.getGas(70) }, + Materials.Carbon.getDustTiny(1), + 120, + 120); + addUniversalDistillationRecipe( + Materials.Gas.getSeverelySteamCracked(1000), + new FluidStack[] { Materials.Propene.getGas(10), Materials.Ethane.getGas(10), + Materials.Ethylene.getGas(300), Materials.Methane.getGas(700), Materials.Helium.getGas(100) }, + Materials.Carbon.getDustTiny(1), + 120, + 120); + + addUniversalDistillationRecipe( + Materials.Naphtha.getLightlyHydroCracked(1000), + new FluidStack[] { Materials.Butane.getGas(800), Materials.Propane.getGas(300), + Materials.Ethane.getGas(250), Materials.Methane.getGas(250) }, + GT_Values.NI, + 120, + 120); + addUniversalDistillationRecipe( + Materials.Naphtha.getModeratelyHydroCracked(1000), + new FluidStack[] { Materials.Butane.getGas(200), Materials.Propane.getGas(1100), + Materials.Ethane.getGas(400), Materials.Methane.getGas(400) }, + GT_Values.NI, + 120, + 120); + addUniversalDistillationRecipe( + Materials.Naphtha.getSeverelyHydroCracked(1000), + new FluidStack[] { Materials.Butane.getGas(125), Materials.Propane.getGas(125), + Materials.Ethane.getGas(1500), Materials.Methane.getGas(1500) }, + GT_Values.NI, + 120, + 120); + addUniversalDistillationRecipe( + Materials.Naphtha.getLightlySteamCracked(1000), + new FluidStack[] { Materials.HeavyFuel.getFluid(75), Materials.LightFuel.getFluid(150), + Materials.Toluene.getFluid(40), Materials.Benzene.getFluid(150), Materials.Butene.getGas(80), + Materials.Butadiene.getGas(150), Materials.Propane.getGas(15), Materials.Propene.getGas(200), + Materials.Ethane.getGas(35), Materials.Ethylene.getGas(200), Materials.Methane.getGas(200) }, + Materials.Carbon.getDustTiny(1), + 120, + 120); + addUniversalDistillationRecipe( + Materials.Naphtha.getModeratelySteamCracked(1000), + new FluidStack[] { Materials.HeavyFuel.getFluid(50), Materials.LightFuel.getFluid(100), + Materials.Toluene.getFluid(30), Materials.Benzene.getFluid(125), Materials.Butene.getGas(65), + Materials.Butadiene.getGas(100), Materials.Propane.getGas(30), Materials.Propene.getGas(400), + Materials.Ethane.getGas(50), Materials.Ethylene.getGas(350), Materials.Methane.getGas(350) }, + Materials.Carbon.getDustTiny(2), + 120, + 120); + addUniversalDistillationRecipe( + Materials.Naphtha.getSeverelySteamCracked(1000), + new FluidStack[] { Materials.HeavyFuel.getFluid(25), Materials.LightFuel.getFluid(50), + Materials.Toluene.getFluid(20), Materials.Benzene.getFluid(100), Materials.Butene.getGas(50), + Materials.Butadiene.getGas(50), Materials.Propane.getGas(15), Materials.Propene.getGas(300), + Materials.Ethane.getGas(65), Materials.Ethylene.getGas(500), Materials.Methane.getGas(500) }, + Materials.Carbon.getDustTiny(3), + 120, + 120); + + addUniversalDistillationRecipe( + Materials.LightFuel.getLightlyHydroCracked(1000), + new FluidStack[] { Materials.Naphtha.getFluid(800), Materials.Octane.getFluid(100), + Materials.Butane.getGas(150), Materials.Propane.getGas(200), Materials.Ethane.getGas(125), + Materials.Methane.getGas(125) }, + GT_Values.NI, + 120, + 120); + addUniversalDistillationRecipe( + Materials.LightFuel.getModeratelyHydroCracked(1000), + new FluidStack[] { Materials.Naphtha.getFluid(500), Materials.Octane.getFluid(50), + Materials.Butane.getGas(200), Materials.Propane.getGas(1100), Materials.Ethane.getGas(400), + Materials.Methane.getGas(400) }, + GT_Values.NI, + 120, + 120); + addUniversalDistillationRecipe( + Materials.LightFuel.getSeverelyHydroCracked(1000), + new FluidStack[] { Materials.Naphtha.getFluid(200), Materials.Octane.getFluid(20), + Materials.Butane.getGas(125), Materials.Propane.getGas(125), Materials.Ethane.getGas(1500), + Materials.Methane.getGas(1500) }, + GT_Values.NI, + 120, + 120); + addUniversalDistillationRecipe( + Materials.LightFuel.getLightlySteamCracked(1000), + new FluidStack[] { Materials.HeavyFuel.getFluid(150), Materials.Naphtha.getFluid(400), + Materials.Toluene.getFluid(40), Materials.Benzene.getFluid(200), Materials.Butene.getGas(75), + Materials.Butadiene.getGas(60), Materials.Propane.getGas(20), Materials.Propene.getGas(150), + Materials.Ethane.getGas(10), Materials.Ethylene.getGas(50), Materials.Methane.getGas(50) }, + Materials.Carbon.getDustTiny(1), + 120, + 120); + addUniversalDistillationRecipe( + Materials.LightFuel.getModeratelySteamCracked(1000), + new FluidStack[] { Materials.HeavyFuel.getFluid(100), Materials.Naphtha.getFluid(250), + Materials.Toluene.getFluid(50), Materials.Benzene.getFluid(300), Materials.Butene.getGas(90), + Materials.Butadiene.getGas(75), Materials.Propane.getGas(35), Materials.Propene.getGas(200), + Materials.Ethane.getGas(30), Materials.Ethylene.getGas(150), Materials.Methane.getGas(150) }, + Materials.Carbon.getDustTiny(2), + 120, + 120); + addUniversalDistillationRecipe( + Materials.LightFuel.getSeverelySteamCracked(1000), + new FluidStack[] { Materials.HeavyFuel.getFluid(50), Materials.Naphtha.getFluid(100), + Materials.Toluene.getFluid(30), Materials.Benzene.getFluid(150), Materials.Butene.getGas(65), + Materials.Butadiene.getGas(50), Materials.Propane.getGas(50), Materials.Propene.getGas(250), + Materials.Ethane.getGas(50), Materials.Ethylene.getGas(250), Materials.Methane.getGas(250) }, + Materials.Carbon.getDustTiny(3), + 120, + 120); + + addUniversalDistillationRecipe( + Materials.HeavyFuel.getLightlyHydroCracked(1000), + new FluidStack[] { Materials.LightFuel.getFluid(600), Materials.Naphtha.getFluid(100), + Materials.Butane.getGas(100), Materials.Propane.getGas(100), Materials.Ethane.getGas(75), + Materials.Methane.getGas(75) }, + GT_Values.NI, + 120, + 120); + addUniversalDistillationRecipe( + Materials.HeavyFuel.getModeratelyHydroCracked(1000), + new FluidStack[] { Materials.LightFuel.getFluid(400), Materials.Naphtha.getFluid(400), + Materials.Butane.getGas(150), Materials.Propane.getGas(150), Materials.Ethane.getGas(100), + Materials.Methane.getGas(100) }, + GT_Values.NI, + 120, + 120); + addUniversalDistillationRecipe( + Materials.HeavyFuel.getSeverelyHydroCracked(1000), + new FluidStack[] { Materials.LightFuel.getFluid(200), Materials.Naphtha.getFluid(250), + Materials.Butane.getGas(300), Materials.Propane.getGas(300), Materials.Ethane.getGas(175), + Materials.Methane.getGas(175) }, + GT_Values.NI, + 120, + 120); + addUniversalDistillationRecipe( + Materials.HeavyFuel.getLightlySteamCracked(1000), + new FluidStack[] { Materials.LightFuel.getFluid(300), Materials.Naphtha.getFluid(50), + Materials.Toluene.getFluid(25), Materials.Benzene.getFluid(125), Materials.Butene.getGas(25), + Materials.Butadiene.getGas(15), Materials.Propane.getGas(3), Materials.Propene.getGas(30), + Materials.Ethane.getGas(5), Materials.Ethylene.getGas(50), Materials.Methane.getGas(50) }, + Materials.Carbon.getDustTiny(1), + 120, + 120); + addUniversalDistillationRecipe( + Materials.HeavyFuel.getModeratelySteamCracked(1000), + new FluidStack[] { Materials.LightFuel.getFluid(200), Materials.Naphtha.getFluid(200), + Materials.Toluene.getFluid(40), Materials.Benzene.getFluid(200), Materials.Butene.getGas(40), + Materials.Butadiene.getGas(25), Materials.Propane.getGas(5), Materials.Propene.getGas(50), + Materials.Ethane.getGas(7), Materials.Ethylene.getGas(75), Materials.Methane.getGas(75) }, + Materials.Carbon.getDustTiny(2), + 120, + 120); + addUniversalDistillationRecipe( + Materials.HeavyFuel.getSeverelySteamCracked(1000), + new FluidStack[] { Materials.LightFuel.getFluid(100), Materials.Naphtha.getFluid(125), + Materials.Toluene.getFluid(80), Materials.Benzene.getFluid(400), Materials.Butene.getGas(80), + Materials.Butadiene.getGas(50), Materials.Propane.getGas(10), Materials.Propene.getGas(100), + Materials.Ethane.getGas(15), Materials.Ethylene.getGas(150), Materials.Methane.getGas(150) }, + Materials.Carbon.getDustTiny(3), + 120, + 120); if (GregTech_API.sSpecialFile.get("general", "EnableLagencyOilGalactiCraft", false) - && FluidRegistry.getFluid("oilgc") != null) + && FluidRegistry.getFluid("oilgc") != null) addUniversalDistillationRecipe( - new FluidStack(FluidRegistry.getFluid("oilgc"), 50), - new FluidStack[] { Materials.SulfuricHeavyFuel.getFluid(15), - Materials.SulfuricLightFuel.getFluid(50), Materials.SulfuricNaphtha.getFluid(20), - Materials.SulfuricGas.getGas(60) }, - null, - 20, - 96); + new FluidStack(FluidRegistry.getFluid("oilgc"), 50), + new FluidStack[] { Materials.SulfuricHeavyFuel.getFluid(15), Materials.SulfuricLightFuel.getFluid(50), + Materials.SulfuricNaphtha.getFluid(20), Materials.SulfuricGas.getGas(60) }, + null, + 20, + 96); } public void addUniversalDistillationRecipewithCircuit(FluidStack aInput, ItemStack[] aCircuit, - FluidStack[] aOutputs, ItemStack aOutput2, int aDuration, int aEUt) { + FluidStack[] aOutputs, ItemStack aOutput2, int aDuration, int aEUt) { for (int i = 0; i < Math.min(aOutputs.length, 11); i++) { GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(i + 1)) - .itemOutputs(aOutput2) - .fluidInputs(aInput) - .fluidOutputs(aOutputs[i]) - .duration(2 * aDuration) - .eut(aEUt / 4) - .addTo(sDistilleryRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(i + 1)) + .itemOutputs(aOutput2) + .fluidInputs(aInput) + .fluidOutputs(aOutputs[i]) + .duration(2 * aDuration) + .eut(aEUt / 4) + .addTo(sDistilleryRecipes); } GT_Values.RA.stdBuilder() - .itemInputs(aCircuit) - .itemOutputs(aOutput2) - .fluidInputs(aInput) - .fluidOutputs(aOutputs) - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sDistillationRecipes); + .itemInputs(aCircuit) + .itemOutputs(aOutput2) + .fluidInputs(aInput) + .fluidOutputs(aOutputs) + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sDistillationRecipes); } public void addUniversalDistillationRecipe(FluidStack aInput, FluidStack[] aOutputs, ItemStack aOutput2, - int aDuration, int aEUt) { + int aDuration, int aEUt) { if (aOutput2 == null) { for (int i = 0; i < Math.min(aOutputs.length, 11); i++) { GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(i + 1)) - .noItemOutputs() - .fluidInputs(aInput) - .fluidOutputs(aOutputs[i]) - .duration(2 * aDuration) - .eut(aEUt / 4) - .addTo(sDistilleryRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(i + 1)) + .noItemOutputs() + .fluidInputs(aInput) + .fluidOutputs(aOutputs[i]) + .duration(2 * aDuration) + .eut(aEUt / 4) + .addTo(sDistilleryRecipes); } } else { for (int i = 0; i < Math.min(aOutputs.length, 11); i++) { GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(i + 1)) - .itemOutputs(aOutput2) - .fluidInputs(aInput) - .fluidOutputs(aOutputs[i]) - .duration(2 * aDuration) - .eut(aEUt / 4) - .addTo(sDistilleryRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(i + 1)) + .itemOutputs(aOutput2) + .fluidInputs(aInput) + .fluidOutputs(aOutputs[i]) + .duration(2 * aDuration) + .eut(aEUt / 4) + .addTo(sDistilleryRecipes); } } GT_Values.RA.stdBuilder() - .noItemInputs() - .itemOutputs(aOutput2) - .fluidInputs(aInput) - .fluidOutputs(aOutputs) - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sDistillationRecipes); + .noItemInputs() + .itemOutputs(aOutput2) + .fluidInputs(aInput) + .fluidOutputs(aOutputs) + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sDistillationRecipes); } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/ElectrolyzerRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/ElectrolyzerRecipes.java index 10d9dee0f1..e8da2986c2 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/ElectrolyzerRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/ElectrolyzerRecipes.java @@ -25,307 +25,301 @@ public class ElectrolyzerRecipes implements Runnable { // H2O = 2H + O GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(1), ItemList.Cell_Empty.get(1L)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Oxygen, 1L)) - .fluidInputs(Materials.Water.getFluid(1000L)) - .fluidOutputs(Materials.Hydrogen.getGas(2000L)) - .duration(1 * MINUTES + 40 * SECONDS) - .eut(30) - .addTo(sElectrolyzerRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(1), ItemList.Cell_Empty.get(1L)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Oxygen, 1L)) + .fluidInputs(Materials.Water.getFluid(1000L)) + .fluidOutputs(Materials.Hydrogen.getGas(2000L)) + .duration(1 * MINUTES + 40 * SECONDS) + .eut(30) + .addTo(sElectrolyzerRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(2), ItemList.Cell_Empty.get(1L)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Oxygen, 1L)) - .fluidInputs(GT_ModHandler.getDistilledWater(1000L)) - .fluidOutputs(Materials.Hydrogen.getGas(2000L)) - .duration(1 * MINUTES + 40 * SECONDS) - .eut(30) - .addTo(sElectrolyzerRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(2), ItemList.Cell_Empty.get(1L)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Oxygen, 1L)) + .fluidInputs(GT_ModHandler.getDistilledWater(1000L)) + .fluidOutputs(Materials.Hydrogen.getGas(2000L)) + .duration(1 * MINUTES + 40 * SECONDS) + .eut(30) + .addTo(sElectrolyzerRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(3), ItemList.Cell_Empty.get(2L)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Hydrogen, 2L)) - .fluidInputs(Materials.Water.getFluid(1000L)) - .fluidOutputs(Materials.Oxygen.getGas(1000L)) - .duration(1 * MINUTES + 40 * SECONDS) - .eut(30) - .addTo(sElectrolyzerRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(3), ItemList.Cell_Empty.get(2L)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Hydrogen, 2L)) + .fluidInputs(Materials.Water.getFluid(1000L)) + .fluidOutputs(Materials.Oxygen.getGas(1000L)) + .duration(1 * MINUTES + 40 * SECONDS) + .eut(30) + .addTo(sElectrolyzerRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(4), ItemList.Cell_Empty.get(2L)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Hydrogen, 2L)) - .fluidInputs(GT_ModHandler.getDistilledWater(1000L)) - .fluidOutputs(Materials.Oxygen.getGas(1000L)) - .duration(1 * MINUTES + 40 * SECONDS) - .eut(30) - .addTo(sElectrolyzerRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(4), ItemList.Cell_Empty.get(2L)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Hydrogen, 2L)) + .fluidInputs(GT_ModHandler.getDistilledWater(1000L)) + .fluidOutputs(Materials.Oxygen.getGas(1000L)) + .duration(1 * MINUTES + 40 * SECONDS) + .eut(30) + .addTo(sElectrolyzerRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_ModHandler.getIC2Item("electrolyzedWaterCell", 1L), ItemList.Cell_Empty.get(2L)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Hydrogen, 2L), - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Oxygen, 1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(1 * SECONDS + 10 * TICKS) - .eut(30) - .addTo(sElectrolyzerRecipes); + .itemInputs(GT_ModHandler.getIC2Item("electrolyzedWaterCell", 1L), ItemList.Cell_Empty.get(2L)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Hydrogen, 2L), + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Oxygen, 1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(1 * SECONDS + 10 * TICKS) + .eut(30) + .addTo(sElectrolyzerRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_ModHandler.getIC2Item("electrolyzedWaterCell", 1L), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Oxygen, 1L)) - .noFluidInputs() - .fluidOutputs(Materials.Hydrogen.getGas(2000L)) - .duration(1 * SECONDS + 10 * TICKS) - .eut(30) - .addTo(sElectrolyzerRecipes); + .itemInputs(GT_ModHandler.getIC2Item("electrolyzedWaterCell", 1L), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Oxygen, 1L)) + .noFluidInputs() + .fluidOutputs(Materials.Hydrogen.getGas(2000L)) + .duration(1 * SECONDS + 10 * TICKS) + .eut(30) + .addTo(sElectrolyzerRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Water, 1L), - ItemList.Cell_Empty.get(0)) - .itemOutputs(GT_ModHandler.getIC2Item("electrolyzedWaterCell", 1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(1 * MINUTES + 13 * SECONDS + 10 * TICKS) - .eut(30) - .addTo(sElectrolyzerRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Water, 1L), ItemList.Cell_Empty.get(0)) + .itemOutputs(GT_ModHandler.getIC2Item("electrolyzedWaterCell", 1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(1 * MINUTES + 13 * SECONDS + 10 * TICKS) + .eut(30) + .addTo(sElectrolyzerRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Dye_Bonemeal.get(3L), ItemList.Cell_Empty.get(0)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcium, 1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(4 * SECONDS + 18 * TICKS) - .eut(26) - .addTo(sElectrolyzerRecipes); + .itemInputs(ItemList.Dye_Bonemeal.get(3L), ItemList.Cell_Empty.get(0)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcium, 1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(4 * SECONDS + 18 * TICKS) + .eut(26) + .addTo(sElectrolyzerRecipes); GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.sand, 8, 0), ItemList.Cell_Empty.get(0)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconDioxide, 3L)) - .noFluidInputs() - .noFluidOutputs() - .duration(25 * SECONDS) - .eut(25) - .addTo(sElectrolyzerRecipes); + .itemInputs(new ItemStack(Blocks.sand, 8, 0), ItemList.Cell_Empty.get(0)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconDioxide, 3L)) + .noFluidInputs() + .noFluidOutputs() + .duration(25 * SECONDS) + .eut(25) + .addTo(sElectrolyzerRecipes); GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.sand, 8, 1), ItemList.Cell_Empty.get(0)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconDioxide, 3L)) - .noFluidInputs() - .noFluidOutputs() - .duration(25 * SECONDS) - .eut(25) - .addTo(sElectrolyzerRecipes); + .itemInputs(new ItemStack(Blocks.sand, 8, 1), ItemList.Cell_Empty.get(0)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconDioxide, 3L)) + .noFluidInputs() + .noFluidOutputs() + .duration(25 * SECONDS) + .eut(25) + .addTo(sElectrolyzerRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Graphite, 1), - ItemList.Cell_Empty.get(0)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Carbon, 4)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(64) - .addTo(sElectrolyzerRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Graphite, 1), ItemList.Cell_Empty.get(0)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Carbon, 4)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(64) + .addTo(sElectrolyzerRecipes); // ZnS = Zn + S + 1 Ga(9.17%) GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sphalerite, 2)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Zinc, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gallium, 1)) - .outputChances(10000, 10000, 917) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(30) - .addTo(sElectrolyzerRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sphalerite, 2)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Zinc, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gallium, 1)) + .outputChances(10000, 10000, 917) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(30) + .addTo(sElectrolyzerRecipes); // IC2 Fertilizer = H2O + CaCO3 + C GT_Values.RA.stdBuilder() - .itemInputs(ItemList.IC2_Fertilizer.get(1L)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcite, 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Carbon, 1L)) - .noFluidInputs() - .fluidOutputs(Materials.Water.getFluid(1000L)) - .duration(5 * SECONDS) - .eut(30) - .addTo(sElectrolyzerRecipes); + .itemInputs(ItemList.IC2_Fertilizer.get(1L)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcite, 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Carbon, 1L)) + .noFluidInputs() + .fluidOutputs(Materials.Water.getFluid(1000L)) + .duration(5 * SECONDS) + .eut(30) + .addTo(sElectrolyzerRecipes); // NaOH = Na + O + H GT_Values.RA.stdBuilder() - .itemInputs(Materials.SodiumHydroxide.getDust(3), Materials.Empty.getCells(1)) - .itemOutputs(Materials.Sodium.getDust(1), Materials.Hydrogen.getCells(1)) - .outputChances(10000, 10000) - .noFluidInputs() - .fluidOutputs(Materials.Oxygen.getGas(1000)) - .duration(50 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sElectrolyzerRecipes); + .itemInputs(Materials.SodiumHydroxide.getDust(3), Materials.Empty.getCells(1)) + .itemOutputs(Materials.Sodium.getDust(1), Materials.Hydrogen.getCells(1)) + .outputChances(10000, 10000) + .noFluidInputs() + .fluidOutputs(Materials.Oxygen.getGas(1000)) + .duration(50 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sElectrolyzerRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Carbon.getDust(1)) - .fluidInputs(Materials.CarbonDioxide.getGas(1000)) - .fluidOutputs(Materials.Oxygen.getGas(2000)) - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sElectrolyzerRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Carbon.getDust(1)) + .fluidInputs(Materials.CarbonDioxide.getGas(1000)) + .fluidOutputs(Materials.Oxygen.getGas(2000)) + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sElectrolyzerRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(11), Materials.Empty.getCells(2)) - .itemOutputs(Materials.Carbon.getDust(1), Materials.Oxygen.getCells(2)) - .fluidInputs(Materials.CarbonDioxide.getGas(1000)) - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sElectrolyzerRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(11), Materials.Empty.getCells(2)) + .itemOutputs(Materials.Carbon.getDust(1), Materials.Oxygen.getCells(2)) + .fluidInputs(Materials.CarbonDioxide.getGas(1000)) + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sElectrolyzerRecipes); // SO2 = S + 2O GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Sulfur.getDust(1)) - .fluidInputs(Materials.SulfurDioxide.getGas(1000)) - .fluidOutputs(Materials.Oxygen.getGas(2000)) - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sElectrolyzerRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Sulfur.getDust(1)) + .fluidInputs(Materials.SulfurDioxide.getGas(1000)) + .fluidOutputs(Materials.Oxygen.getGas(2000)) + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sElectrolyzerRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(11), Materials.Empty.getCells(2)) - .itemOutputs(Materials.Sulfur.getDust(1), Materials.Oxygen.getCells(2)) - .fluidInputs(Materials.SulfurDioxide.getGas(1000)) - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sElectrolyzerRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(11), Materials.Empty.getCells(2)) + .itemOutputs(Materials.Sulfur.getDust(1), Materials.Oxygen.getCells(2)) + .fluidInputs(Materials.SulfurDioxide.getGas(1000)) + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sElectrolyzerRecipes); // NaCl = Na +Cl GT_Values.RA.stdBuilder() - .itemInputs(Materials.Salt.getDust(2)) - .itemOutputs(Materials.Sodium.getDust(1)) - .noFluidInputs() - .fluidOutputs(Materials.Chlorine.getGas(1000)) - .duration(16 * SECONDS) - .eut(30) - .addTo(sElectrolyzerRecipes); + .itemInputs(Materials.Salt.getDust(2)) + .itemOutputs(Materials.Sodium.getDust(1)) + .noFluidInputs() + .fluidOutputs(Materials.Chlorine.getGas(1000)) + .duration(16 * SECONDS) + .eut(30) + .addTo(sElectrolyzerRecipes); // (NaCl·H2O)= NaOH + H GT_Values.RA.stdBuilder() - .itemInputs(Materials.Empty.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.SodiumHydroxide.getDust(3), Materials.Hydrogen.getCells(1)) - .fluidInputs(Materials.SaltWater.getFluid(1000)) - .fluidOutputs(Materials.Chlorine.getGas(1000)) - .duration(36 * SECONDS) - .eut(30) - .addTo(sElectrolyzerRecipes); + .itemInputs(Materials.Empty.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.SodiumHydroxide.getDust(3), Materials.Hydrogen.getCells(1)) + .fluidInputs(Materials.SaltWater.getFluid(1000)) + .fluidOutputs(Materials.Chlorine.getGas(1000)) + .duration(36 * SECONDS) + .eut(30) + .addTo(sElectrolyzerRecipes); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Empty.getCells(1), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.SodiumHydroxide.getDust(3), Materials.Chlorine.getCells(1)) - .fluidInputs(Materials.SaltWater.getFluid(1000)) - .fluidOutputs(Materials.Hydrogen.getGas(1000)) - .duration(36 * SECONDS) - .eut(30) - .addTo(sElectrolyzerRecipes); + .itemInputs(Materials.Empty.getCells(1), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.SodiumHydroxide.getDust(3), Materials.Chlorine.getCells(1)) + .fluidInputs(Materials.SaltWater.getFluid(1000)) + .fluidOutputs(Materials.Hydrogen.getGas(1000)) + .duration(36 * SECONDS) + .eut(30) + .addTo(sElectrolyzerRecipes); // HCl = H + Cl GT_Values.RA.stdBuilder() - .itemInputs(Materials.Empty.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Hydrogen.getCells(1)) - .fluidInputs(Materials.HydrochloricAcid.getFluid(1000)) - .fluidOutputs(Materials.Chlorine.getGas(1000)) - .duration(36 * SECONDS) - .eut(30) - .addTo(sElectrolyzerRecipes); + .itemInputs(Materials.Empty.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Hydrogen.getCells(1)) + .fluidInputs(Materials.HydrochloricAcid.getFluid(1000)) + .fluidOutputs(Materials.Chlorine.getGas(1000)) + .duration(36 * SECONDS) + .eut(30) + .addTo(sElectrolyzerRecipes); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Empty.getCells(1), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.Chlorine.getCells(1)) - .fluidInputs(Materials.HydrochloricAcid.getFluid(1000)) - .fluidOutputs(Materials.Hydrogen.getGas(1000)) - .duration(36 * SECONDS) - .eut(30) - .addTo(sElectrolyzerRecipes); + .itemInputs(Materials.Empty.getCells(1), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.Chlorine.getCells(1)) + .fluidInputs(Materials.HydrochloricAcid.getFluid(1000)) + .fluidOutputs(Materials.Hydrogen.getGas(1000)) + .duration(36 * SECONDS) + .eut(30) + .addTo(sElectrolyzerRecipes); GT_Values.RA.stdBuilder() - .itemInputs(Materials.HydrochloricAcid.getCells(1), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Hydrogen.getCells(1)) - .noFluidInputs() - .fluidOutputs(Materials.Chlorine.getGas(1000)) - .duration(36 * SECONDS) - .eut(30) - .addTo(sElectrolyzerRecipes); + .itemInputs(Materials.HydrochloricAcid.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Hydrogen.getCells(1)) + .noFluidInputs() + .fluidOutputs(Materials.Chlorine.getGas(1000)) + .duration(36 * SECONDS) + .eut(30) + .addTo(sElectrolyzerRecipes); GT_Values.RA.stdBuilder() - .itemInputs(Materials.HydrochloricAcid.getCells(1), GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.Chlorine.getCells(1)) - .noFluidInputs() - .fluidOutputs(Materials.Hydrogen.getGas(1000)) - .duration(36 * SECONDS) - .eut(30) - .addTo(sElectrolyzerRecipes); + .itemInputs(Materials.HydrochloricAcid.getCells(1), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.Chlorine.getCells(1)) + .noFluidInputs() + .fluidOutputs(Materials.Hydrogen.getGas(1000)) + .duration(36 * SECONDS) + .eut(30) + .addTo(sElectrolyzerRecipes); // 2NaHSO4 = 2H + Na2S2O8 GT_Values.RA.stdBuilder() - .itemInputs(Materials.SodiumBisulfate.getDust(14), Materials.Empty.getCells(2)) - .itemOutputs(Materials.Hydrogen.getCells(2)) - .noFluidInputs() - .fluidOutputs(Materials.SodiumPersulfate.getFluid(1000)) - .duration(30 * SECONDS) - .eut(30) - .addTo(sElectrolyzerRecipes); + .itemInputs(Materials.SodiumBisulfate.getDust(14), Materials.Empty.getCells(2)) + .itemOutputs(Materials.Hydrogen.getCells(2)) + .noFluidInputs() + .fluidOutputs(Materials.SodiumPersulfate.getFluid(1000)) + .duration(30 * SECONDS) + .eut(30) + .addTo(sElectrolyzerRecipes); GT_Values.RA.stdBuilder() - .noItemInputs() - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lead, 3), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silver, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Zinc, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 4)) - .fluidInputs(new FluidStack(ItemList.sLeadZincSolution, 8000)) - .fluidOutputs(Materials.Water.getFluid(2000)) - .duration(15 * SECONDS) - .eut(192) - .addTo(sElectrolyzerRecipes); + .noItemInputs() + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lead, 3), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silver, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Zinc, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 4)) + .fluidInputs(new FluidStack(ItemList.sLeadZincSolution, 8000)) + .fluidOutputs(Materials.Water.getFluid(2000)) + .duration(15 * SECONDS) + .eut(192) + .addTo(sElectrolyzerRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Cell_Empty.get(1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Copper, 1), - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Oxygen, 1)) - .fluidInputs(new FluidStack(ItemList.sBlueVitriol, 2000)) - .fluidOutputs(Materials.SulfuricAcid.getFluid(1000)) - .duration(45 * SECONDS) - .eut(30) - .addTo(sElectrolyzerRecipes); + .itemInputs(ItemList.Cell_Empty.get(1)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Copper, 1), + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Oxygen, 1)) + .fluidInputs(new FluidStack(ItemList.sBlueVitriol, 2000)) + .fluidOutputs(Materials.SulfuricAcid.getFluid(1000)) + .duration(45 * SECONDS) + .eut(30) + .addTo(sElectrolyzerRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Cell_Empty.get(1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Nickel, 1), - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Oxygen, 1)) - .fluidInputs(new FluidStack(ItemList.sNickelSulfate, 2000)) - .fluidOutputs(Materials.SulfuricAcid.getFluid(1000)) - .duration(45 * SECONDS) - .eut(30) - .addTo(sElectrolyzerRecipes); + .itemInputs(ItemList.Cell_Empty.get(1)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Nickel, 1), + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Oxygen, 1)) + .fluidInputs(new FluidStack(ItemList.sNickelSulfate, 2000)) + .fluidOutputs(Materials.SulfuricAcid.getFluid(1000)) + .duration(45 * SECONDS) + .eut(30) + .addTo(sElectrolyzerRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Cell_Empty.get(1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iron, 1), - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Oxygen, 1)) - .fluidInputs(new FluidStack(ItemList.sGreenVitriol, 2000)) - .fluidOutputs(Materials.SulfuricAcid.getFluid(1000)) - .duration(45 * SECONDS) - .eut(30) - .addTo(sElectrolyzerRecipes); + .itemInputs(ItemList.Cell_Empty.get(1)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iron, 1), + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Oxygen, 1)) + .fluidInputs(new FluidStack(ItemList.sGreenVitriol, 2000)) + .fluidOutputs(Materials.SulfuricAcid.getFluid(1000)) + .duration(45 * SECONDS) + .eut(30) + .addTo(sElectrolyzerRecipes); } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/ElectromagneticSeparatorRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/ElectromagneticSeparatorRecipes.java index cb10bde54d..28f2d349b8 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/ElectromagneticSeparatorRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/ElectromagneticSeparatorRecipes.java @@ -12,14 +12,14 @@ public class ElectromagneticSeparatorRecipes implements Runnable { @Override public void run() { GT_Values.RA.stdBuilder() - .itemInputs(MaterialsOreAlum.SluiceSand.getDust(1)) - .itemOutputs(Materials.Iron.getDust(1), Materials.Neodymium.getDust(1), Materials.Chrome.getDust(1)) - .outputChances(4000, 2000, 2000) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(240) - .addTo(sElectroMagneticSeparatorRecipes); + .itemInputs(MaterialsOreAlum.SluiceSand.getDust(1)) + .itemOutputs(Materials.Iron.getDust(1), Materials.Neodymium.getDust(1), Materials.Chrome.getDust(1)) + .outputChances(4000, 2000, 2000) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(240) + .addTo(sElectroMagneticSeparatorRecipes); } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/ExtractorRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/ExtractorRecipes.java index 12ddbd54f1..334c603cc8 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/ExtractorRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/ExtractorRecipes.java @@ -21,17 +21,17 @@ public class ExtractorRecipes implements Runnable { public void run() { addExtractionRecipe(new ItemStack(Blocks.bookshelf, 1, WILDCARD), new ItemStack(Items.book, 3, 0)); addExtractionRecipe( - new ItemStack(Items.slime_ball, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.RawRubber, 2L)); + new ItemStack(Items.slime_ball, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.RawRubber, 2L)); addExtractionRecipe( - ItemList.IC2_Resin.get(1L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.RawRubber, 3L)); + ItemList.IC2_Resin.get(1L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.RawRubber, 3L)); addExtractionRecipe( - getIC2Item("rubberSapling", 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.RawRubber, 1L)); + getIC2Item("rubberSapling", 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.RawRubber, 1L)); addExtractionRecipe( - getIC2Item("rubberLeaves", 16L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.RawRubber, 1L)); + getIC2Item("rubberLeaves", 16L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.RawRubber, 1L)); addExtractionRecipe(ItemList.Cell_Air.get(1L), ItemList.Cell_Empty.get(1L)); } @@ -39,12 +39,12 @@ public class ExtractorRecipes implements Runnable { public void addExtractionRecipe(ItemStack input, ItemStack output) { output = GT_OreDictUnificator.get(true, output); GT_Values.RA.stdBuilder() - .itemInputs(input) - .itemOutputs(output) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(2) - .addTo(sExtractorRecipes); + .itemInputs(input) + .itemOutputs(output) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(2) + .addTo(sExtractorRecipes); } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/ExtruderRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/ExtruderRecipes.java index 65975bc0a7..200aa915e2 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/ExtruderRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/ExtruderRecipes.java @@ -13,21 +13,21 @@ public class ExtruderRecipes implements Runnable { public void run() { // wax capsule GT_Values.RA.stdBuilder() - .itemInputs(ItemList.FR_Wax.get(1L), ItemList.Shape_Extruder_Cell.get(0L)) - .itemOutputs(ItemList.FR_WaxCapsule.get(1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(3 * SECONDS + 4 * TICKS) - .eut(16) - .addTo(sExtruderRecipes); + .itemInputs(ItemList.FR_Wax.get(1L), ItemList.Shape_Extruder_Cell.get(0L)) + .itemOutputs(ItemList.FR_WaxCapsule.get(1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(3 * SECONDS + 4 * TICKS) + .eut(16) + .addTo(sExtruderRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.FR_RefractoryWax.get(1L), ItemList.Shape_Extruder_Cell.get(0L)) - .itemOutputs(ItemList.FR_WaxCapsule.get(1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(6 * SECONDS + 8 * TICKS) - .eut(16) - .addTo(sExtruderRecipes); + .itemInputs(ItemList.FR_RefractoryWax.get(1L), ItemList.Shape_Extruder_Cell.get(0L)) + .itemOutputs(ItemList.FR_WaxCapsule.get(1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(6 * SECONDS + 8 * TICKS) + .eut(16) + .addTo(sExtruderRecipes); } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/FermenterRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/FermenterRecipes.java index 381fdad4a8..b2c82ad602 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/FermenterRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/FermenterRecipes.java @@ -18,400 +18,400 @@ public class FermenterRecipes implements Runnable { public void run() { GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.Biomass.getFluid(100)) - .fluidOutputs(Materials.FermentedBiomass.getFluid(100)) - .duration(7 * SECONDS + 10 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(new FluidStack(FluidRegistry.getFluid("ic2biomass"), 100)) - .fluidOutputs(Materials.FermentedBiomass.getFluid(100)) - .duration(7 * SECONDS + 10 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(getFluidStack("milk", 50)) - .fluidOutputs(getFluidStack("potion.mundane", 25)) - .duration(51 * SECONDS + 4 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(getFluidStack("potion.lemonjuice", 50)) - .fluidOutputs(getFluidStack("potion.limoncello", 25)) - .duration(51 * SECONDS + 4 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(getFluidStack("potion.applejuice", 50)) - .fluidOutputs(getFluidStack("potion.cider", 25)) - .duration(51 * SECONDS + 4 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(getFluidStack("potion.goldenapplejuice", 50)) - .fluidOutputs(getFluidStack("potion.goldencider", 25)) - .duration(51 * SECONDS + 4 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(getFluidStack("potion.idunsapplejuice", 50)) - .fluidOutputs(getFluidStack("potion.notchesbrew", 25)) - .duration(51 * SECONDS + 4 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(getFluidStack("potion.reedwater", 50)) - .fluidOutputs(getFluidStack("potion.rum", 25)) - .duration(51 * SECONDS + 4 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(getFluidStack("potion.rum", 50)) - .fluidOutputs(getFluidStack("potion.piratebrew", 10)) - .duration(1 * MINUTES + 42 * SECONDS + 8 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(getFluidStack("potion.grapejuice", 50)) - .fluidOutputs(getFluidStack("potion.wine", 25)) - .duration(51 * SECONDS + 4 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(getFluidStack("potion.wine", 50)) - .fluidOutputs(getFluidStack("potion.vinegar", 10)) - .duration(1 * MINUTES + 42 * SECONDS + 8 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(getFluidStack("potion.wheatyjuice", 50)) - .fluidOutputs(getFluidStack("potion.scotch", 25)) - .duration(51 * SECONDS + 4 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(getFluidStack("potion.scotch", 50)) - .fluidOutputs(getFluidStack("potion.glenmckenner", 10)) - .duration(1 * MINUTES + 42 * SECONDS + 8 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(getFluidStack("potion.wheatyhopsjuice", 50)) - .fluidOutputs(getFluidStack("potion.beer", 25)) - .duration(51 * SECONDS + 4 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(getFluidStack("potion.hopsjuice", 50)) - .fluidOutputs(getFluidStack("potion.darkbeer", 25)) - .duration(51 * SECONDS + 4 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(getFluidStack("potion.darkbeer", 50)) - .fluidOutputs(getFluidStack("potion.dragonblood", 10)) - .duration(1 * MINUTES + 42 * SECONDS + 8 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(getFluidStack("potion.beer", 75)) - .fluidOutputs(getFluidStack("potion.vinegar", 50)) - .duration(1 * MINUTES + 42 * SECONDS + 8 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(getFluidStack("potion.cider", 75)) - .fluidOutputs(getFluidStack("potion.vinegar", 50)) - .duration(1 * MINUTES + 42 * SECONDS + 8 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(getFluidStack("potion.goldencider", 75)) - .fluidOutputs(getFluidStack("potion.vinegar", 50)) - .duration(1 * MINUTES + 42 * SECONDS + 8 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(getFluidStack("potion.rum", 75)) - .fluidOutputs(getFluidStack("potion.vinegar", 50)) - .duration(1 * MINUTES + 42 * SECONDS + 8 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(getFluidStack("potion.wine", 75)) - .fluidOutputs(getFluidStack("potion.vinegar", 50)) - .duration(1 * MINUTES + 42 * SECONDS + 8 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(getFluidStack("potion.awkward", 50)) - .fluidOutputs(getFluidStack("potion.weakness", 25)) - .duration(51 * SECONDS + 4 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(getFluidStack("potion.mundane", 50)) - .fluidOutputs(getFluidStack("potion.weakness", 25)) - .duration(51 * SECONDS + 4 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(getFluidStack("potion.thick", 50)) - .fluidOutputs(getFluidStack("potion.weakness", 25)) - .duration(51 * SECONDS + 4 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(getFluidStack("potion.poison", 50)) - .fluidOutputs(getFluidStack("potion.damage", 25)) - .duration(51 * SECONDS + 4 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(getFluidStack("potion.health", 50)) - .fluidOutputs(getFluidStack("potion.damage", 25)) - .duration(51 * SECONDS + 4 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(getFluidStack("potion.waterbreathing", 50)) - .fluidOutputs(getFluidStack("potion.damage", 25)) - .duration(51 * SECONDS + 4 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(getFluidStack("potion.nightvision", 50)) - .fluidOutputs(getFluidStack("potion.invisibility", 25)) - .duration(51 * SECONDS + 4 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(getFluidStack("potion.fireresistance", 50)) - .fluidOutputs(getFluidStack("potion.slowness", 25)) - .duration(51 * SECONDS + 4 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(getFluidStack("potion.speed", 50)) - .fluidOutputs(getFluidStack("potion.slowness", 25)) - .duration(51 * SECONDS + 4 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(getFluidStack("potion.strength", 50)) - .fluidOutputs(getFluidStack("potion.weakness", 25)) - .duration(51 * SECONDS + 4 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(getFluidStack("potion.regen", 50)) - .fluidOutputs(getFluidStack("potion.poison", 25)) - .duration(51 * SECONDS + 4 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(getFluidStack("potion.poison.strong", 50)) - .fluidOutputs(getFluidStack("potion.damage.strong", 10)) - .duration(1 * MINUTES + 42 * SECONDS + 8 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(getFluidStack("potion.health.strong", 50)) - .fluidOutputs(getFluidStack("potion.damage.strong", 10)) - .duration(1 * MINUTES + 42 * SECONDS + 8 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(getFluidStack("potion.speed.strong", 50)) - .fluidOutputs(getFluidStack("potion.slowness.strong", 10)) - .duration(1 * MINUTES + 42 * SECONDS + 8 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(getFluidStack("potion.strength.strong", 50)) - .fluidOutputs(getFluidStack("potion.weakness.strong", 10)) - .duration(1 * MINUTES + 42 * SECONDS + 8 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(getFluidStack("potion.nightvision.long", 50)) - .fluidOutputs(getFluidStack("potion.invisibility.long", 10)) - .duration(1 * MINUTES + 42 * SECONDS + 8 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(getFluidStack("potion.regen.strong", 50)) - .fluidOutputs(getFluidStack("potion.poison.strong", 10)) - .duration(1 * MINUTES + 42 * SECONDS + 8 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(getFluidStack("potion.poison.long", 50)) - .fluidOutputs(getFluidStack("potion.damage.long", 10)) - .duration(1 * MINUTES + 42 * SECONDS + 8 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(getFluidStack("potion.waterbreathing.long", 50)) - .fluidOutputs(getFluidStack("potion.damage.long", 10)) - .duration(1 * MINUTES + 42 * SECONDS + 8 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(getFluidStack("potion.fireresistance.long", 50)) - .fluidOutputs(getFluidStack("potion.slowness.long", 10)) - .duration(1 * MINUTES + 42 * SECONDS + 8 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(getFluidStack("potion.speed.long", 50)) - .fluidOutputs(getFluidStack("potion.slowness.long", 10)) - .duration(1 * MINUTES + 42 * SECONDS + 8 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(getFluidStack("potion.strength.long", 50)) - .fluidOutputs(getFluidStack("potion.weakness.long", 10)) - .duration(1 * MINUTES + 42 * SECONDS + 8 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); - - GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(getFluidStack("potion.regen.long", 50)) - .fluidOutputs(getFluidStack("potion.poison.long", 10)) - .duration(1 * MINUTES + 42 * SECONDS + 8 * TICKS) - .eut(2) - .addTo(sFermentingRecipes); + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.Biomass.getFluid(100)) + .fluidOutputs(Materials.FermentedBiomass.getFluid(100)) + .duration(7 * SECONDS + 10 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(new FluidStack(FluidRegistry.getFluid("ic2biomass"), 100)) + .fluidOutputs(Materials.FermentedBiomass.getFluid(100)) + .duration(7 * SECONDS + 10 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(getFluidStack("milk", 50)) + .fluidOutputs(getFluidStack("potion.mundane", 25)) + .duration(51 * SECONDS + 4 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(getFluidStack("potion.lemonjuice", 50)) + .fluidOutputs(getFluidStack("potion.limoncello", 25)) + .duration(51 * SECONDS + 4 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(getFluidStack("potion.applejuice", 50)) + .fluidOutputs(getFluidStack("potion.cider", 25)) + .duration(51 * SECONDS + 4 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(getFluidStack("potion.goldenapplejuice", 50)) + .fluidOutputs(getFluidStack("potion.goldencider", 25)) + .duration(51 * SECONDS + 4 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(getFluidStack("potion.idunsapplejuice", 50)) + .fluidOutputs(getFluidStack("potion.notchesbrew", 25)) + .duration(51 * SECONDS + 4 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(getFluidStack("potion.reedwater", 50)) + .fluidOutputs(getFluidStack("potion.rum", 25)) + .duration(51 * SECONDS + 4 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(getFluidStack("potion.rum", 50)) + .fluidOutputs(getFluidStack("potion.piratebrew", 10)) + .duration(1 * MINUTES + 42 * SECONDS + 8 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(getFluidStack("potion.grapejuice", 50)) + .fluidOutputs(getFluidStack("potion.wine", 25)) + .duration(51 * SECONDS + 4 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(getFluidStack("potion.wine", 50)) + .fluidOutputs(getFluidStack("potion.vinegar", 10)) + .duration(1 * MINUTES + 42 * SECONDS + 8 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(getFluidStack("potion.wheatyjuice", 50)) + .fluidOutputs(getFluidStack("potion.scotch", 25)) + .duration(51 * SECONDS + 4 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(getFluidStack("potion.scotch", 50)) + .fluidOutputs(getFluidStack("potion.glenmckenner", 10)) + .duration(1 * MINUTES + 42 * SECONDS + 8 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(getFluidStack("potion.wheatyhopsjuice", 50)) + .fluidOutputs(getFluidStack("potion.beer", 25)) + .duration(51 * SECONDS + 4 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(getFluidStack("potion.hopsjuice", 50)) + .fluidOutputs(getFluidStack("potion.darkbeer", 25)) + .duration(51 * SECONDS + 4 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(getFluidStack("potion.darkbeer", 50)) + .fluidOutputs(getFluidStack("potion.dragonblood", 10)) + .duration(1 * MINUTES + 42 * SECONDS + 8 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(getFluidStack("potion.beer", 75)) + .fluidOutputs(getFluidStack("potion.vinegar", 50)) + .duration(1 * MINUTES + 42 * SECONDS + 8 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(getFluidStack("potion.cider", 75)) + .fluidOutputs(getFluidStack("potion.vinegar", 50)) + .duration(1 * MINUTES + 42 * SECONDS + 8 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(getFluidStack("potion.goldencider", 75)) + .fluidOutputs(getFluidStack("potion.vinegar", 50)) + .duration(1 * MINUTES + 42 * SECONDS + 8 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(getFluidStack("potion.rum", 75)) + .fluidOutputs(getFluidStack("potion.vinegar", 50)) + .duration(1 * MINUTES + 42 * SECONDS + 8 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(getFluidStack("potion.wine", 75)) + .fluidOutputs(getFluidStack("potion.vinegar", 50)) + .duration(1 * MINUTES + 42 * SECONDS + 8 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(getFluidStack("potion.awkward", 50)) + .fluidOutputs(getFluidStack("potion.weakness", 25)) + .duration(51 * SECONDS + 4 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(getFluidStack("potion.mundane", 50)) + .fluidOutputs(getFluidStack("potion.weakness", 25)) + .duration(51 * SECONDS + 4 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(getFluidStack("potion.thick", 50)) + .fluidOutputs(getFluidStack("potion.weakness", 25)) + .duration(51 * SECONDS + 4 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(getFluidStack("potion.poison", 50)) + .fluidOutputs(getFluidStack("potion.damage", 25)) + .duration(51 * SECONDS + 4 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(getFluidStack("potion.health", 50)) + .fluidOutputs(getFluidStack("potion.damage", 25)) + .duration(51 * SECONDS + 4 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(getFluidStack("potion.waterbreathing", 50)) + .fluidOutputs(getFluidStack("potion.damage", 25)) + .duration(51 * SECONDS + 4 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(getFluidStack("potion.nightvision", 50)) + .fluidOutputs(getFluidStack("potion.invisibility", 25)) + .duration(51 * SECONDS + 4 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(getFluidStack("potion.fireresistance", 50)) + .fluidOutputs(getFluidStack("potion.slowness", 25)) + .duration(51 * SECONDS + 4 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(getFluidStack("potion.speed", 50)) + .fluidOutputs(getFluidStack("potion.slowness", 25)) + .duration(51 * SECONDS + 4 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(getFluidStack("potion.strength", 50)) + .fluidOutputs(getFluidStack("potion.weakness", 25)) + .duration(51 * SECONDS + 4 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(getFluidStack("potion.regen", 50)) + .fluidOutputs(getFluidStack("potion.poison", 25)) + .duration(51 * SECONDS + 4 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(getFluidStack("potion.poison.strong", 50)) + .fluidOutputs(getFluidStack("potion.damage.strong", 10)) + .duration(1 * MINUTES + 42 * SECONDS + 8 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(getFluidStack("potion.health.strong", 50)) + .fluidOutputs(getFluidStack("potion.damage.strong", 10)) + .duration(1 * MINUTES + 42 * SECONDS + 8 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(getFluidStack("potion.speed.strong", 50)) + .fluidOutputs(getFluidStack("potion.slowness.strong", 10)) + .duration(1 * MINUTES + 42 * SECONDS + 8 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(getFluidStack("potion.strength.strong", 50)) + .fluidOutputs(getFluidStack("potion.weakness.strong", 10)) + .duration(1 * MINUTES + 42 * SECONDS + 8 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(getFluidStack("potion.nightvision.long", 50)) + .fluidOutputs(getFluidStack("potion.invisibility.long", 10)) + .duration(1 * MINUTES + 42 * SECONDS + 8 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(getFluidStack("potion.regen.strong", 50)) + .fluidOutputs(getFluidStack("potion.poison.strong", 10)) + .duration(1 * MINUTES + 42 * SECONDS + 8 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(getFluidStack("potion.poison.long", 50)) + .fluidOutputs(getFluidStack("potion.damage.long", 10)) + .duration(1 * MINUTES + 42 * SECONDS + 8 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(getFluidStack("potion.waterbreathing.long", 50)) + .fluidOutputs(getFluidStack("potion.damage.long", 10)) + .duration(1 * MINUTES + 42 * SECONDS + 8 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(getFluidStack("potion.fireresistance.long", 50)) + .fluidOutputs(getFluidStack("potion.slowness.long", 10)) + .duration(1 * MINUTES + 42 * SECONDS + 8 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(getFluidStack("potion.speed.long", 50)) + .fluidOutputs(getFluidStack("potion.slowness.long", 10)) + .duration(1 * MINUTES + 42 * SECONDS + 8 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(getFluidStack("potion.strength.long", 50)) + .fluidOutputs(getFluidStack("potion.weakness.long", 10)) + .duration(1 * MINUTES + 42 * SECONDS + 8 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); + + GT_Values.RA.stdBuilder() + .noItemInputs() + .noItemOutputs() + .fluidInputs(getFluidStack("potion.regen.long", 50)) + .fluidOutputs(getFluidStack("potion.poison.long", 10)) + .duration(1 * MINUTES + 42 * SECONDS + 8 * TICKS) + .eut(2) + .addTo(sFermentingRecipes); } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/FluidCannerRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/FluidCannerRecipes.java index b1da72f477..d2c60cb516 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/FluidCannerRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/FluidCannerRecipes.java @@ -11,75 +11,75 @@ public class FluidCannerRecipes implements Runnable { @Override public void run() { GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Battery_Hull_LV.get(1)) - .itemOutputs(ItemList.IC2_ReBattery.get(1)) - .fluidInputs(Materials.Redstone.getMolten(288)) - .noFluidOutputs() - .duration(4) - .eut(1) - .addTo(sFluidCannerRecipes); + .itemInputs(ItemList.Battery_Hull_LV.get(1)) + .itemOutputs(ItemList.IC2_ReBattery.get(1)) + .fluidInputs(Materials.Redstone.getMolten(288)) + .noFluidOutputs() + .duration(4) + .eut(1) + .addTo(sFluidCannerRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Battery_Hull_LV.get(1)) - .itemOutputs(ItemList.Battery_SU_LV_Mercury.getWithCharge(1, Integer.MAX_VALUE)) - .fluidInputs(Materials.Mercury.getFluid(1000)) - .noFluidOutputs() - .duration(16) - .eut(1) - .addTo(sFluidCannerRecipes); + .itemInputs(ItemList.Battery_Hull_LV.get(1)) + .itemOutputs(ItemList.Battery_SU_LV_Mercury.getWithCharge(1, Integer.MAX_VALUE)) + .fluidInputs(Materials.Mercury.getFluid(1000)) + .noFluidOutputs() + .duration(16) + .eut(1) + .addTo(sFluidCannerRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Battery_Hull_MV.get(1)) - .itemOutputs(ItemList.Battery_SU_MV_Mercury.getWithCharge(1, Integer.MAX_VALUE)) - .fluidInputs(Materials.Mercury.getFluid(4000)) - .noFluidOutputs() - .duration(64) - .eut(1) - .addTo(sFluidCannerRecipes); + .itemInputs(ItemList.Battery_Hull_MV.get(1)) + .itemOutputs(ItemList.Battery_SU_MV_Mercury.getWithCharge(1, Integer.MAX_VALUE)) + .fluidInputs(Materials.Mercury.getFluid(4000)) + .noFluidOutputs() + .duration(64) + .eut(1) + .addTo(sFluidCannerRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Battery_Hull_HV.get(1)) - .itemOutputs(ItemList.Battery_SU_HV_Mercury.getWithCharge(1, Integer.MAX_VALUE)) - .fluidInputs(Materials.Mercury.getFluid(16000)) - .noFluidOutputs() - .duration(258) - .eut(1) - .addTo(sFluidCannerRecipes); + .itemInputs(ItemList.Battery_Hull_HV.get(1)) + .itemOutputs(ItemList.Battery_SU_HV_Mercury.getWithCharge(1, Integer.MAX_VALUE)) + .fluidInputs(Materials.Mercury.getFluid(16000)) + .noFluidOutputs() + .duration(258) + .eut(1) + .addTo(sFluidCannerRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Battery_Hull_LV.get(1)) - .itemOutputs(ItemList.Battery_SU_LV_SulfuricAcid.getWithCharge(1, Integer.MAX_VALUE)) - .fluidInputs(Materials.SulfuricAcid.getFluid(1000)) - .noFluidOutputs() - .duration(16) - .eut(1) - .addTo(sFluidCannerRecipes); + .itemInputs(ItemList.Battery_Hull_LV.get(1)) + .itemOutputs(ItemList.Battery_SU_LV_SulfuricAcid.getWithCharge(1, Integer.MAX_VALUE)) + .fluidInputs(Materials.SulfuricAcid.getFluid(1000)) + .noFluidOutputs() + .duration(16) + .eut(1) + .addTo(sFluidCannerRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Battery_Hull_MV.get(1)) - .itemOutputs(ItemList.Battery_SU_MV_SulfuricAcid.getWithCharge(1, Integer.MAX_VALUE)) - .fluidInputs(Materials.SulfuricAcid.getFluid(4000)) - .noFluidOutputs() - .duration(64) - .eut(1) - .addTo(sFluidCannerRecipes); + .itemInputs(ItemList.Battery_Hull_MV.get(1)) + .itemOutputs(ItemList.Battery_SU_MV_SulfuricAcid.getWithCharge(1, Integer.MAX_VALUE)) + .fluidInputs(Materials.SulfuricAcid.getFluid(4000)) + .noFluidOutputs() + .duration(64) + .eut(1) + .addTo(sFluidCannerRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Battery_Hull_HV.get(1)) - .itemOutputs(ItemList.Battery_SU_HV_SulfuricAcid.getWithCharge(1, Integer.MAX_VALUE)) - .fluidInputs(Materials.SulfuricAcid.getFluid(16000)) - .noFluidOutputs() - .duration(258) - .eut(1) - .addTo(sFluidCannerRecipes); + .itemInputs(ItemList.Battery_Hull_HV.get(1)) + .itemOutputs(ItemList.Battery_SU_HV_SulfuricAcid.getWithCharge(1, Integer.MAX_VALUE)) + .fluidInputs(Materials.SulfuricAcid.getFluid(16000)) + .noFluidOutputs() + .duration(258) + .eut(1) + .addTo(sFluidCannerRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.TF_Vial_FieryTears.get(1)) - .itemOutputs(ItemList.Bottle_Empty.get(1)) - .noFluidInputs() - .fluidOutputs(Materials.FierySteel.getFluid(250)) - .duration(4) - .eut(1) - .addTo(sFluidCannerRecipes); + .itemInputs(ItemList.TF_Vial_FieryTears.get(1)) + .itemOutputs(ItemList.Bottle_Empty.get(1)) + .noFluidInputs() + .fluidOutputs(Materials.FierySteel.getFluid(250)) + .duration(4) + .eut(1) + .addTo(sFluidCannerRecipes); } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/FluidExtractorRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/FluidExtractorRecipes.java index 827d45cf00..603f1ef115 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/FluidExtractorRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/FluidExtractorRecipes.java @@ -26,620 +26,620 @@ public class FluidExtractorRecipes implements Runnable { public void run() { GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Dye_SquidInk.get(1L)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(getFluidStack("squidink", 144)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Dye_Indigo.get(1L)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(getFluidStack("indigo", 144)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Crop_Drop_Indigo.get(1L)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(getFluidStack("indigo", 144)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Crop_Drop_MilkWart.get(1L)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Milk, 1L)) - .outputChances(1000) - .noFluidInputs() - .fluidOutputs(GT_ModHandler.getMilk(150L)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Crop_Drop_OilBerry.get(1L)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Oil.getFluid(100L)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Crop_Drop_UUMBerry.get(1L)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.UUMatter.getFluid(4L)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Crop_Drop_UUABerry.get(1L)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.UUAmplifier.getFluid(4L)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.fish, 1, 0)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.FishOil.getFluid(40L)) - .duration(16 * TICKS) - .eut(4) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.fish, 1, 1)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.FishOil.getFluid(60L)) - .duration(16 * TICKS) - .eut(4) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.fish, 1, 2)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.FishOil.getFluid(70L)) - .duration(16 * TICKS) - .eut(4) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.fish, 1, 3)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.FishOil.getFluid(30L)) - .duration(16 * TICKS) - .eut(4) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.coal, 1, 1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 1L)) - .outputChances(1000) - .noFluidInputs() - .fluidOutputs(Materials.WoodTar.getFluid(100L)) - .duration(1 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 1L)) - .itemOutputs(ItemList.IC2_Plantball.get(1L)) - .outputChances(100) - .noFluidInputs() - .fluidOutputs(Materials.Creosote.getFluid(5L)) - .duration(16 * TICKS) - .eut(4) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.HydratedCoal, 1L)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Coal, 1L)) - .outputChances(10000) - .noFluidInputs() - .fluidOutputs(Materials.Water.getFluid(100L)) - .duration(1 * SECONDS + 12 * TICKS) - .eut(4) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Thaumcraft.ID, "ItemResource", 1, 3)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Mercury.getFluid(1000L)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Mercury, 1L)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Mercury.getFluid(1000L)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Monazite, 1L)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Helium.getGas(200L)) - .duration(3 * SECONDS + 4 * TICKS) - .eut(64) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(IndustrialCraft2.ID, "blockAlloyGlass", 1L, 0)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.ReinforceGlass.getMolten(144)) - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(NewHorizonsCoreMod.ID, "item.ReinforcedGlassPlate", 1L, 0)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.ReinforceGlass.getMolten(72)) - .duration(2 * SECONDS + 10 * TICKS) - .eut(TierEU.RECIPE_EV) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(NewHorizonsCoreMod.ID, "item.ReinforcedGlassLense", 1L, 0)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.ReinforceGlass.getMolten(54)) - .duration(2 * SECONDS + 10 * TICKS) - .eut(TierEU.RECIPE_EV) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Long_Distance_Pipeline_Fluid.get(1L)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Steel.getMolten(19 * 144)) - .duration(20 * SECONDS) - .eut(90) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Long_Distance_Pipeline_Item.get(1L)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 7L)) - .outputChances(10000) - .noFluidInputs() - .fluidOutputs(Materials.Tin.getMolten(12 * 144)) - .duration(20 * SECONDS) - .eut(90) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Long_Distance_Pipeline_Fluid_Pipe.get(4L)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Steel.getMolten(189)) - .duration(2 * SECONDS) - .eut(90) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Long_Distance_Pipeline_Item_Pipe.get(16L)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Tin, 3L)) - .outputChances(10000) - .noFluidInputs() - .fluidOutputs(Materials.Steel.getMolten(324)) - .duration(20 * SECONDS) - .eut(90) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_ModHandler.getIC2Item("TritiumCell", 1)) - .itemOutputs(GT_ModHandler.getIC2Item("fuelRod", 1)) - .outputChances(10000) - .noFluidInputs() - .fluidOutputs(Materials.Tritium.getGas(32)) - .duration(16 * TICKS) - .eut(64) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Quartzite, 1L)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Glass.getMolten(72)) - .duration(30 * SECONDS) - .eut(28) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.beta", 1L, 0)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Iron.getMolten(288)) - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.beta", 1L, 1)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Iron.getMolten(144)) - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.beta", 1L, 2)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Iron, 6)) - .outputChances(10000) - .noFluidInputs() - .fluidOutputs(Materials.Bronze.getMolten(1728)) - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.beta", 1L, 13)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Steel.getMolten(288)) - .duration(20 * SECONDS) - .eut(90) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.beta", 1L, 14)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Steel.getMolten(144)) - .duration(20 * SECONDS) - .eut(90) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.beta", 1L, 15)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Steel.getMolten(1836)) - .duration(20 * SECONDS) - .eut(90) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 0)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Aluminium.getMolten(288)) - .duration(25 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 1)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Aluminium.getMolten(144)) - .duration(25 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 2)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 12L)) - .outputChances(10000) - .noFluidInputs() - .fluidOutputs(Materials.Aluminium.getMolten(108L)) - .duration(25 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 3)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.StainlessSteel.getMolten(288)) - .duration(30 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 4)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.StainlessSteel.getMolten(144)) - .duration(30 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 5)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.StainlessSteel.getMolten(1836)) - .duration(30 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 6)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Titanium.getMolten(288)) - .duration(35 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 7)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Titanium.getMolten(144)) - .duration(35 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 8)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Titanium.getMolten(1836)) - .duration(35 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 9)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.TungstenSteel.getMolten(288)) - .duration(40 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 10)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.TungstenSteel.getMolten(144)) - .duration(40 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 11)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.TungstenSteel.getMolten(1836)) - .duration(40 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 12)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Palladium.getMolten(288)) - .duration(45 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 13)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Palladium.getMolten(144)) - .duration(45 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 14)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Chrome, 6L)) - .outputChances(10000) - .noFluidInputs() - .fluidOutputs(Materials.NiobiumTitanium.getMolten(1728)) - .duration(45 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 0)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Iridium.getMolten(288)) - .duration(50 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 1)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Iridium.getMolten(144)) - .duration(50 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 2)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Iridium, 6L)) - .outputChances(10000) - .noFluidInputs() - .fluidOutputs(Materials.Enderium.getMolten(1728)) - .duration(50 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 3)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Osmium.getMolten(288)) - .duration(55 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 4)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Osmium.getMolten(144)) - .duration(55 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 5)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Osmium, 6L)) - .outputChances(10000) - .noFluidInputs() - .fluidOutputs(Materials.Naquadah.getMolten(1728)) - .duration(55 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 6)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Neutronium.getMolten(288)) - .duration(60 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 7)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Neutronium.getMolten(144)) - .duration(60 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 8)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Neutronium.getMolten(1836)) - .duration(60 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.wheat_seeds, 1, 32767)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.SeedOil.getFluid(10)) - .duration(1 * SECONDS + 12 * TICKS) - .eut(2) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.melon_seeds, 1, 32767)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.SeedOil.getFluid(10)) - .duration(1 * SECONDS + 12 * TICKS) - .eut(2) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.pumpkin_seeds, 1, 32767)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.SeedOil.getFluid(10)) - .duration(1 * SECONDS + 12 * TICKS) - .eut(2) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Crop_Drop_Rape.get(1)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.SeedOil.getFluid(125)) - .duration(1 * SECONDS + 12 * TICKS) - .eut(2) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.snowball, 1, 0)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Water.getFluid(250L)) - .duration(1 * SECONDS + 12 * TICKS) - .eut(4) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.snow, 1, 0)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Water.getFluid(1000L)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ice, 1L)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.Ice.getSolid(1000L)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sFluidExtractionRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Forestry.ID, "phosphor", 1L)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Phosphorus, 1L)) - .outputChances(1000) - .noFluidInputs() - .fluidOutputs(Materials.Lava.getFluid(800L)) - .duration(12 * SECONDS + 16 * TICKS) - .eut(128) - .addTo(sFluidExtractionRecipes); + .itemInputs(ItemList.Dye_SquidInk.get(1L)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(getFluidStack("squidink", 144)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Dye_Indigo.get(1L)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(getFluidStack("indigo", 144)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Crop_Drop_Indigo.get(1L)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(getFluidStack("indigo", 144)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Crop_Drop_MilkWart.get(1L)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Milk, 1L)) + .outputChances(1000) + .noFluidInputs() + .fluidOutputs(GT_ModHandler.getMilk(150L)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Crop_Drop_OilBerry.get(1L)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Oil.getFluid(100L)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Crop_Drop_UUMBerry.get(1L)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.UUMatter.getFluid(4L)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Crop_Drop_UUABerry.get(1L)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.UUAmplifier.getFluid(4L)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Items.fish, 1, 0)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.FishOil.getFluid(40L)) + .duration(16 * TICKS) + .eut(4) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Items.fish, 1, 1)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.FishOil.getFluid(60L)) + .duration(16 * TICKS) + .eut(4) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Items.fish, 1, 2)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.FishOil.getFluid(70L)) + .duration(16 * TICKS) + .eut(4) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Items.fish, 1, 3)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.FishOil.getFluid(30L)) + .duration(16 * TICKS) + .eut(4) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Items.coal, 1, 1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 1L)) + .outputChances(1000) + .noFluidInputs() + .fluidOutputs(Materials.WoodTar.getFluid(100L)) + .duration(1 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 1L)) + .itemOutputs(ItemList.IC2_Plantball.get(1L)) + .outputChances(100) + .noFluidInputs() + .fluidOutputs(Materials.Creosote.getFluid(5L)) + .duration(16 * TICKS) + .eut(4) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.HydratedCoal, 1L)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Coal, 1L)) + .outputChances(10000) + .noFluidInputs() + .fluidOutputs(Materials.Water.getFluid(100L)) + .duration(1 * SECONDS + 12 * TICKS) + .eut(4) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Thaumcraft.ID, "ItemResource", 1, 3)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Mercury.getFluid(1000L)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Mercury, 1L)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Mercury.getFluid(1000L)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Monazite, 1L)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Helium.getGas(200L)) + .duration(3 * SECONDS + 4 * TICKS) + .eut(64) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(IndustrialCraft2.ID, "blockAlloyGlass", 1L, 0)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.ReinforceGlass.getMolten(144)) + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(NewHorizonsCoreMod.ID, "item.ReinforcedGlassPlate", 1L, 0)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.ReinforceGlass.getMolten(72)) + .duration(2 * SECONDS + 10 * TICKS) + .eut(TierEU.RECIPE_EV) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(NewHorizonsCoreMod.ID, "item.ReinforcedGlassLense", 1L, 0)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.ReinforceGlass.getMolten(54)) + .duration(2 * SECONDS + 10 * TICKS) + .eut(TierEU.RECIPE_EV) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Long_Distance_Pipeline_Fluid.get(1L)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Steel.getMolten(19 * 144)) + .duration(20 * SECONDS) + .eut(90) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Long_Distance_Pipeline_Item.get(1L)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 7L)) + .outputChances(10000) + .noFluidInputs() + .fluidOutputs(Materials.Tin.getMolten(12 * 144)) + .duration(20 * SECONDS) + .eut(90) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Long_Distance_Pipeline_Fluid_Pipe.get(4L)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Steel.getMolten(189)) + .duration(2 * SECONDS) + .eut(90) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Long_Distance_Pipeline_Item_Pipe.get(16L)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Tin, 3L)) + .outputChances(10000) + .noFluidInputs() + .fluidOutputs(Materials.Steel.getMolten(324)) + .duration(20 * SECONDS) + .eut(90) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_ModHandler.getIC2Item("TritiumCell", 1)) + .itemOutputs(GT_ModHandler.getIC2Item("fuelRod", 1)) + .outputChances(10000) + .noFluidInputs() + .fluidOutputs(Materials.Tritium.getGas(32)) + .duration(16 * TICKS) + .eut(64) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Quartzite, 1L)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Glass.getMolten(72)) + .duration(30 * SECONDS) + .eut(28) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.beta", 1L, 0)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Iron.getMolten(288)) + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.beta", 1L, 1)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Iron.getMolten(144)) + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.beta", 1L, 2)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Iron, 6)) + .outputChances(10000) + .noFluidInputs() + .fluidOutputs(Materials.Bronze.getMolten(1728)) + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.beta", 1L, 13)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Steel.getMolten(288)) + .duration(20 * SECONDS) + .eut(90) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.beta", 1L, 14)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Steel.getMolten(144)) + .duration(20 * SECONDS) + .eut(90) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.beta", 1L, 15)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Steel.getMolten(1836)) + .duration(20 * SECONDS) + .eut(90) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 0)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Aluminium.getMolten(288)) + .duration(25 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 1)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Aluminium.getMolten(144)) + .duration(25 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 2)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 12L)) + .outputChances(10000) + .noFluidInputs() + .fluidOutputs(Materials.Aluminium.getMolten(108L)) + .duration(25 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 3)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.StainlessSteel.getMolten(288)) + .duration(30 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 4)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.StainlessSteel.getMolten(144)) + .duration(30 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 5)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.StainlessSteel.getMolten(1836)) + .duration(30 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 6)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Titanium.getMolten(288)) + .duration(35 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 7)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Titanium.getMolten(144)) + .duration(35 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 8)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Titanium.getMolten(1836)) + .duration(35 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 9)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.TungstenSteel.getMolten(288)) + .duration(40 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 10)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.TungstenSteel.getMolten(144)) + .duration(40 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 11)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.TungstenSteel.getMolten(1836)) + .duration(40 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 12)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Palladium.getMolten(288)) + .duration(45 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 13)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Palladium.getMolten(144)) + .duration(45 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 14)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Chrome, 6L)) + .outputChances(10000) + .noFluidInputs() + .fluidOutputs(Materials.NiobiumTitanium.getMolten(1728)) + .duration(45 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 0)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Iridium.getMolten(288)) + .duration(50 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 1)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Iridium.getMolten(144)) + .duration(50 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 2)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Iridium, 6L)) + .outputChances(10000) + .noFluidInputs() + .fluidOutputs(Materials.Enderium.getMolten(1728)) + .duration(50 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 3)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Osmium.getMolten(288)) + .duration(55 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 4)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Osmium.getMolten(144)) + .duration(55 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 5)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Osmium, 6L)) + .outputChances(10000) + .noFluidInputs() + .fluidOutputs(Materials.Naquadah.getMolten(1728)) + .duration(55 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 6)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Neutronium.getMolten(288)) + .duration(60 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 7)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Neutronium.getMolten(144)) + .duration(60 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 8)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Neutronium.getMolten(1836)) + .duration(60 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Items.wheat_seeds, 1, 32767)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.SeedOil.getFluid(10)) + .duration(1 * SECONDS + 12 * TICKS) + .eut(2) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Items.melon_seeds, 1, 32767)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.SeedOil.getFluid(10)) + .duration(1 * SECONDS + 12 * TICKS) + .eut(2) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Items.pumpkin_seeds, 1, 32767)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.SeedOil.getFluid(10)) + .duration(1 * SECONDS + 12 * TICKS) + .eut(2) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Crop_Drop_Rape.get(1)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.SeedOil.getFluid(125)) + .duration(1 * SECONDS + 12 * TICKS) + .eut(2) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Items.snowball, 1, 0)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Water.getFluid(250L)) + .duration(1 * SECONDS + 12 * TICKS) + .eut(4) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Blocks.snow, 1, 0)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Water.getFluid(1000L)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ice, 1L)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.Ice.getSolid(1000L)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sFluidExtractionRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Forestry.ID, "phosphor", 1L)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Phosphorus, 1L)) + .outputChances(1000) + .noFluidInputs() + .fluidOutputs(Materials.Lava.getFluid(800L)) + .duration(12 * SECONDS + 16 * TICKS) + .eut(128) + .addTo(sFluidExtractionRecipes); // Beecombs fluid extractor recipes if (BartWorks.isModLoaded()) { // xenon GT_Values.RA.addFluidExtractionRecipe( - getModItem(GregTech.ID, "gt.comb", 1L, 134), - null, - getFluidStack("xenon", 250), - 100 * 100, - 50, - 8192); + getModItem(GregTech.ID, "gt.comb", 1L, 134), + null, + getFluidStack("xenon", 250), + 100 * 100, + 50, + 8192); // neon GT_Values.RA.addFluidExtractionRecipe( - getModItem(GregTech.ID, "gt.comb", 1L, 135), - null, - getFluidStack("neon", 250), - 100 * 100, - 15, - 8192); + getModItem(GregTech.ID, "gt.comb", 1L, 135), + null, + getFluidStack("neon", 250), + 100 * 100, + 15, + 8192); // krpton GT_Values.RA.addFluidExtractionRecipe( - getModItem(GregTech.ID, "gt.comb", 1L, 136), - null, - getFluidStack("krypton", 250), - 100 * 100, - 25, - 8192); + getModItem(GregTech.ID, "gt.comb", 1L, 136), + null, + getFluidStack("krypton", 250), + 100 * 100, + 25, + 8192); } } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/FluidHeaterRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/FluidHeaterRecipes.java index b7085ad8bb..2dcbfa718d 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/FluidHeaterRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/FluidHeaterRecipes.java @@ -16,89 +16,89 @@ public class FluidHeaterRecipes implements Runnable { public void run() { GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .fluidInputs(Materials.GrowthMediumRaw.getFluid(1000)) - .fluidOutputs(Materials.GrowthMediumSterilized.getFluid(1000)) - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_IV) - .addTo(sFluidHeaterRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .fluidInputs(Materials.GrowthMediumRaw.getFluid(1000)) + .fluidOutputs(Materials.GrowthMediumSterilized.getFluid(1000)) + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_IV) + .addTo(sFluidHeaterRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .fluidInputs(Materials.BioMediumRaw.getFluid(1000)) - .fluidOutputs(Materials.BioMediumSterilized.getFluid(1000)) - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_LuV) - .addTo(sFluidHeaterRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .fluidInputs(Materials.BioMediumRaw.getFluid(1000)) + .fluidOutputs(Materials.BioMediumSterilized.getFluid(1000)) + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_LuV) + .addTo(sFluidHeaterRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .fluidInputs(Materials.Water.getFluid(6)) - .fluidOutputs(Materials.Water.getGas(960)) - .duration(1 * SECONDS + 10 * TICKS) - .eut(30) - .addTo(sFluidHeaterRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .fluidInputs(Materials.Water.getFluid(6)) + .fluidOutputs(Materials.Water.getGas(960)) + .duration(1 * SECONDS + 10 * TICKS) + .eut(30) + .addTo(sFluidHeaterRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .fluidInputs(GT_ModHandler.getDistilledWater(6)) - .fluidOutputs(Materials.Water.getGas(960)) - .duration(1 * SECONDS + 10 * TICKS) - .eut(30) - .addTo(sFluidHeaterRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .fluidInputs(GT_ModHandler.getDistilledWater(6)) + .fluidOutputs(Materials.Water.getGas(960)) + .duration(1 * SECONDS + 10 * TICKS) + .eut(30) + .addTo(sFluidHeaterRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .fluidInputs(Materials.SeedOil.getFluid(16)) - .fluidOutputs(Materials.FryingOilHot.getFluid(16)) - .duration(16 * TICKS) - .eut(30) - .addTo(sFluidHeaterRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .fluidInputs(Materials.SeedOil.getFluid(16)) + .fluidOutputs(Materials.FryingOilHot.getFluid(16)) + .duration(16 * TICKS) + .eut(30) + .addTo(sFluidHeaterRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .fluidInputs(Materials.FishOil.getFluid(16)) - .fluidOutputs(Materials.FryingOilHot.getFluid(16)) - .duration(16 * TICKS) - .eut(30) - .addTo(sFluidHeaterRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .fluidInputs(Materials.FishOil.getFluid(16)) + .fluidOutputs(Materials.FryingOilHot.getFluid(16)) + .duration(16 * TICKS) + .eut(30) + .addTo(sFluidHeaterRecipes); // Ca(CH3COO)2 = CH3COCH3 + CaO + CO2 GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .fluidInputs(Materials.CalciumAcetateSolution.getFluid(1000)) - .fluidOutputs(Materials.Acetone.getFluid(1000)) - .duration(4 * SECONDS) - .eut(30) - .addTo(sFluidHeaterRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .fluidInputs(Materials.CalciumAcetateSolution.getFluid(1000)) + .fluidOutputs(Materials.Acetone.getFluid(1000)) + .duration(4 * SECONDS) + .eut(30) + .addTo(sFluidHeaterRecipes); // Fluid Sodium GT_Values.RA.stdBuilder() - .itemInputs(Materials.Sodium.getDust(1)) - .noItemOutputs() - .fluidInputs( + .itemInputs(Materials.Sodium.getDust(1)) + .noItemOutputs() + .fluidInputs( - ) - .fluidOutputs(Materials.Sodium.getFluid(1000)) - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sFluidHeaterRecipes); + ) + .fluidOutputs(Materials.Sodium.getFluid(1000)) + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sFluidHeaterRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .fluidInputs(Materials.Acetone.getFluid(1000)) - .fluidOutputs(Materials.Ethenone.getGas(1000)) - .duration(8 * SECONDS) - .eut(160) - .addTo(sFluidHeaterRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .fluidInputs(Materials.Acetone.getFluid(1000)) + .fluidOutputs(Materials.Ethenone.getGas(1000)) + .duration(8 * SECONDS) + .eut(160) + .addTo(sFluidHeaterRecipes); } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/FluidSolidifierRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/FluidSolidifierRecipes.java index ae21f1a311..ca478e01e0 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/FluidSolidifierRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/FluidSolidifierRecipes.java @@ -24,14 +24,14 @@ public class FluidSolidifierRecipes implements Runnable { @Override public void run() { Materials[] materialArray = new Materials[] { Materials.Iron, Materials.WroughtIron, Materials.Gold, - Materials.Bronze, Materials.Copper, Materials.AnnealedCopper, Materials.Tin, Materials.Lead, - Materials.Steel }; + Materials.Bronze, Materials.Copper, Materials.AnnealedCopper, Materials.Tin, Materials.Lead, + Materials.Steel }; ItemStack[] materialCasing = new ItemStack[] { ItemList.IC2_Item_Casing_Iron.get(1L), - ItemList.IC2_Item_Casing_Iron.get(1L), ItemList.IC2_Item_Casing_Gold.get(1L), - ItemList.IC2_Item_Casing_Bronze.get(1L), ItemList.IC2_Item_Casing_Copper.get(1L), - ItemList.IC2_Item_Casing_Copper.get(1L), ItemList.IC2_Item_Casing_Tin.get(1L), - ItemList.IC2_Item_Casing_Lead.get(1L), ItemList.IC2_Item_Casing_Steel.get(1L) }; + ItemList.IC2_Item_Casing_Iron.get(1L), ItemList.IC2_Item_Casing_Gold.get(1L), + ItemList.IC2_Item_Casing_Bronze.get(1L), ItemList.IC2_Item_Casing_Copper.get(1L), + ItemList.IC2_Item_Casing_Copper.get(1L), ItemList.IC2_Item_Casing_Tin.get(1L), + ItemList.IC2_Item_Casing_Lead.get(1L), ItemList.IC2_Item_Casing_Steel.get(1L) }; for (int i = 0; i < materialArray.length; i++) { if (materialArray[i].mStandardMoltenFluid == null) { @@ -39,576 +39,576 @@ public class FluidSolidifierRecipes implements Runnable { } GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Mold_Casing.get(0L)) - .itemOutputs(materialCasing[i]) - .fluidInputs(materialArray[i].getMolten(72L)) - .noFluidOutputs() - .duration(16 * TICKS) - .eut(8) - .addTo(sFluidSolidficationRecipes); + .itemInputs(ItemList.Shape_Mold_Casing.get(0L)) + .itemOutputs(materialCasing[i]) + .fluidInputs(materialArray[i].getMolten(72L)) + .noFluidOutputs() + .duration(16 * TICKS) + .eut(8) + .addTo(sFluidSolidficationRecipes); } GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Mold_Ball.get(0L)) - .itemOutputs(getModItem(Thaumcraft.ID, "ItemResource", 1, 3)) - .fluidInputs(Materials.Mercury.getFluid(1000L)) - .noFluidOutputs() - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sFluidSolidficationRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Mold_Ball.get(0L)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Mercury, 1L)) - .fluidInputs(Materials.Mercury.getFluid(1000L)) - .noFluidOutputs() - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sFluidSolidficationRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Mold_Ball.get(0L)) - .itemOutputs(new ItemStack(Items.snowball, 1, 0)) - .fluidInputs(Materials.Water.getFluid(250L)) - .noFluidOutputs() - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sFluidSolidficationRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Mold_Ball.get(0L)) - .itemOutputs(new ItemStack(Items.snowball, 1, 0)) - .fluidInputs(GT_ModHandler.getDistilledWater(250L)) - .noFluidOutputs() - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sFluidSolidficationRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Mold_Block.get(0L)) - .itemOutputs(new ItemStack(Blocks.snow, 1, 0)) - .fluidInputs(Materials.Water.getFluid(1000L)) - .noFluidOutputs() - .duration(25 * SECONDS + 12 * TICKS) - .eut(4) - .addTo(sFluidSolidficationRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Mold_Block.get(0L)) - .itemOutputs(new ItemStack(Blocks.snow, 1, 0)) - .fluidInputs(GT_ModHandler.getDistilledWater(1000L)) - .noFluidOutputs() - .duration(25 * SECONDS + 12 * TICKS) - .eut(4) - .addTo(sFluidSolidficationRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Mold_Block.get(0L)) - .itemOutputs(new ItemStack(Blocks.obsidian, 1, 0)) - .fluidInputs(Materials.Lava.getFluid(1000L)) - .noFluidOutputs() - .duration(51 * SECONDS + 4 * TICKS) - .eut(16) - .addTo(sFluidSolidficationRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Mold_Block.get(0L)) - .itemOutputs(new ItemStack(GregTech_API.sBlockConcretes, 1, 8)) - .fluidInputs(Materials.Concrete.getMolten(144L)) - .noFluidOutputs() - .duration(12 * TICKS) - .eut(4) - .addTo(sFluidSolidficationRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Mold_Block.get(0L)) - .itemOutputs(new ItemStack(Blocks.glowstone, 1, 0)) - .fluidInputs(Materials.Glowstone.getMolten(576L)) - .noFluidOutputs() - .duration(12 * TICKS) - .eut(4) - .addTo(sFluidSolidficationRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Mold_Block.get(0L)) - .itemOutputs(new ItemStack(Blocks.glass, 1, 0)) - .fluidInputs(Materials.Glass.getMolten(144L)) - .noFluidOutputs() - .duration(12 * TICKS) - .eut(4) - .addTo(sFluidSolidficationRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Mold_Plate.get(0L)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Glass, 1L)) - .fluidInputs(Materials.Glass.getMolten(144L)) - .noFluidOutputs() - .duration(12 * TICKS) - .eut(4) - .addTo(sFluidSolidficationRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Mold_Bottle.get(0L)) - .itemOutputs(ItemList.Bottle_Empty.get(1L)) - .fluidInputs(Materials.Glass.getMolten(144L)) - .noFluidOutputs() - .duration(12 * TICKS) - .eut(4) - .addTo(sFluidSolidficationRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Mold_Cylinder.get(0L)) - .itemOutputs(ItemList.Food_Cheese.get(1L)) - .fluidInputs(Materials.Milk.getFluid(250L)) - .noFluidOutputs() - .duration(51 * SECONDS + 4 * TICKS) - .eut(4) - .addTo(sFluidSolidficationRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Mold_Cylinder.get(0L)) - .itemOutputs(ItemList.Food_Cheese.get(1L)) - .fluidInputs(Materials.Cheese.getMolten(144L)) - .noFluidOutputs() - .duration(3 * SECONDS + 4 * TICKS) - .eut(8) - .addTo(sFluidSolidficationRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Mold_Anvil.get(0L)) - .itemOutputs(new ItemStack(Blocks.anvil, 1, 0)) - .fluidInputs(Materials.Iron.getMolten(4464L)) - .noFluidOutputs() - .duration(6 * SECONDS + 8 * TICKS) - .eut(16) - .addTo(sFluidSolidficationRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Mold_Anvil.get(0L)) - .itemOutputs(new ItemStack(Blocks.anvil, 1, 0)) - .fluidInputs(Materials.WroughtIron.getMolten(4464L)) - .noFluidOutputs() - .duration(6 * SECONDS + 8 * TICKS) - .eut(16) - .addTo(sFluidSolidficationRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Boron.getDust(1)) - .fluidInputs(Materials.Boron.getMolten(144L)) - .noFluidOutputs() - .duration(1 * SECONDS + 10 * TICKS) - .eut(30) - .addTo(sFluidSolidficationRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Mold_Cylinder.get(0)) - .itemOutputs(ItemList.Circuit_Parts_PetriDish.get(1)) - .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(36)) - .noFluidOutputs() - .duration(8 * SECONDS) - .eut(16) - .addTo(sFluidSolidficationRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Mold_Cylinder.get(0)) - .itemOutputs(ItemList.Circuit_Parts_PetriDish.get(1)) - .fluidInputs(Materials.Polystyrene.getMolten(36)) - .noFluidOutputs() - .duration(8 * SECONDS) - .eut(16) - .addTo(sFluidSolidficationRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Mold_Cylinder.get(0)) - .itemOutputs(ItemList.Circuit_Parts_PetriDish.get(1)) - .fluidInputs(Materials.BorosilicateGlass.getMolten(72)) - .noFluidOutputs() - .duration(8 * SECONDS) - .eut(16) - .addTo(sFluidSolidficationRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Mold_Plate.get(0L)) - .itemOutputs(getModItem(NewHorizonsCoreMod.ID, "item.ReinforcedGlassPlate", 1L, 0)) - .fluidInputs(Materials.ReinforceGlass.getMolten(72)) - .noFluidOutputs() - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sFluidSolidficationRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Mold_Block.get(0L)) - .itemOutputs(getModItem(IndustrialCraft2.ID, "blockAlloyGlass", 1L)) - .fluidInputs(Materials.ReinforceGlass.getMolten(144)) - .noFluidOutputs() - .duration(8 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sFluidSolidficationRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Mold_Ball.get(0L)) - .itemOutputs(ItemList.Circuit_Parts_Glass_Tube.get(1)) - .fluidInputs(Materials.Glass.getMolten(144)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(24) - .addTo(sFluidSolidficationRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Mold_Ball.get(0L)) - .itemOutputs(ItemList.Circuit_Parts_Reinforced_Glass_Tube.get(1)) - .fluidInputs(Materials.ReinforceGlass.getMolten(288)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sFluidSolidficationRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Mold_Ball.get(0L)) - .itemOutputs(ItemList.Circuit_Parts_Glass_Tube.get(1)) - .fluidInputs(getFluidStack("glass.molten", 1000)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(24) - .addTo(sFluidSolidficationRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Mold_Ball.get(0L)) - .itemOutputs(ItemList.GelledToluene.get(1)) - .fluidInputs(new FluidStack(ItemList.sToluene, 100)) - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sFluidSolidficationRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Mold_Nugget.get(0L)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Copper, 1L)) - .fluidInputs(Materials.AnnealedCopper.getMolten(16)) - .noFluidOutputs() - .duration(16 * TICKS) - .eut(4) - .addTo(sFluidSolidficationRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Mold_Ingot.get(0L)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Copper, 1L)) - .fluidInputs(Materials.AnnealedCopper.getMolten(144)) - .noFluidOutputs() - .duration(1 * SECONDS + 12 * TICKS) - .eut(8) - .addTo(sFluidSolidficationRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Mold_Block.get(0L)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.block, Materials.Copper, 1L)) - .fluidInputs(Materials.AnnealedCopper.getMolten(1296)) - .noFluidOutputs() - .duration(14 * SECONDS + 8 * TICKS) - .eut(8) - .addTo(sFluidSolidficationRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Mold_Nugget.get(0L)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Iron, 1L)) - .fluidInputs(Materials.WroughtIron.getMolten(16)) - .noFluidOutputs() - .duration(16 * TICKS) - .eut(4) - .addTo(sFluidSolidficationRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Mold_Ingot.get(0L)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Iron, 1L)) - .fluidInputs(Materials.WroughtIron.getMolten(144)) - .noFluidOutputs() - .duration(1 * SECONDS + 12 * TICKS) - .eut(8) - .addTo(sFluidSolidficationRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Mold_Block.get(0L)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.block, Materials.Iron, 1L)) - .fluidInputs(Materials.WroughtIron.getMolten(1296)) - .noFluidOutputs() - .duration(14 * SECONDS + 8 * TICKS) - .eut(8) - .addTo(sFluidSolidficationRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Spinneret.get(0L)) - .itemOutputs(ItemList.KevlarFiber.get(8L)) - .fluidInputs(MaterialsKevlar.LiquidCrystalKevlar.getFluid(144L)) - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sFluidSolidficationRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Mold_Anvil.get(0L)) - .itemOutputs(getModItem(Railcraft.ID, "tile.railcraft.anvil", 1L, 0)) - .fluidInputs(Materials.Steel.getMolten(4464L)) - .noFluidOutputs() - .duration(6 * SECONDS + 8 * TICKS) - .eut(16) - .addTo(sFluidSolidficationRecipes); + .itemInputs(ItemList.Shape_Mold_Ball.get(0L)) + .itemOutputs(getModItem(Thaumcraft.ID, "ItemResource", 1, 3)) + .fluidInputs(Materials.Mercury.getFluid(1000L)) + .noFluidOutputs() + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sFluidSolidficationRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Shape_Mold_Ball.get(0L)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Mercury, 1L)) + .fluidInputs(Materials.Mercury.getFluid(1000L)) + .noFluidOutputs() + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sFluidSolidficationRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Shape_Mold_Ball.get(0L)) + .itemOutputs(new ItemStack(Items.snowball, 1, 0)) + .fluidInputs(Materials.Water.getFluid(250L)) + .noFluidOutputs() + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sFluidSolidficationRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Shape_Mold_Ball.get(0L)) + .itemOutputs(new ItemStack(Items.snowball, 1, 0)) + .fluidInputs(GT_ModHandler.getDistilledWater(250L)) + .noFluidOutputs() + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sFluidSolidficationRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Shape_Mold_Block.get(0L)) + .itemOutputs(new ItemStack(Blocks.snow, 1, 0)) + .fluidInputs(Materials.Water.getFluid(1000L)) + .noFluidOutputs() + .duration(25 * SECONDS + 12 * TICKS) + .eut(4) + .addTo(sFluidSolidficationRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Shape_Mold_Block.get(0L)) + .itemOutputs(new ItemStack(Blocks.snow, 1, 0)) + .fluidInputs(GT_ModHandler.getDistilledWater(1000L)) + .noFluidOutputs() + .duration(25 * SECONDS + 12 * TICKS) + .eut(4) + .addTo(sFluidSolidficationRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Shape_Mold_Block.get(0L)) + .itemOutputs(new ItemStack(Blocks.obsidian, 1, 0)) + .fluidInputs(Materials.Lava.getFluid(1000L)) + .noFluidOutputs() + .duration(51 * SECONDS + 4 * TICKS) + .eut(16) + .addTo(sFluidSolidficationRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Shape_Mold_Block.get(0L)) + .itemOutputs(new ItemStack(GregTech_API.sBlockConcretes, 1, 8)) + .fluidInputs(Materials.Concrete.getMolten(144L)) + .noFluidOutputs() + .duration(12 * TICKS) + .eut(4) + .addTo(sFluidSolidficationRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Shape_Mold_Block.get(0L)) + .itemOutputs(new ItemStack(Blocks.glowstone, 1, 0)) + .fluidInputs(Materials.Glowstone.getMolten(576L)) + .noFluidOutputs() + .duration(12 * TICKS) + .eut(4) + .addTo(sFluidSolidficationRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Shape_Mold_Block.get(0L)) + .itemOutputs(new ItemStack(Blocks.glass, 1, 0)) + .fluidInputs(Materials.Glass.getMolten(144L)) + .noFluidOutputs() + .duration(12 * TICKS) + .eut(4) + .addTo(sFluidSolidficationRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Shape_Mold_Plate.get(0L)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Glass, 1L)) + .fluidInputs(Materials.Glass.getMolten(144L)) + .noFluidOutputs() + .duration(12 * TICKS) + .eut(4) + .addTo(sFluidSolidficationRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Shape_Mold_Bottle.get(0L)) + .itemOutputs(ItemList.Bottle_Empty.get(1L)) + .fluidInputs(Materials.Glass.getMolten(144L)) + .noFluidOutputs() + .duration(12 * TICKS) + .eut(4) + .addTo(sFluidSolidficationRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Shape_Mold_Cylinder.get(0L)) + .itemOutputs(ItemList.Food_Cheese.get(1L)) + .fluidInputs(Materials.Milk.getFluid(250L)) + .noFluidOutputs() + .duration(51 * SECONDS + 4 * TICKS) + .eut(4) + .addTo(sFluidSolidficationRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Shape_Mold_Cylinder.get(0L)) + .itemOutputs(ItemList.Food_Cheese.get(1L)) + .fluidInputs(Materials.Cheese.getMolten(144L)) + .noFluidOutputs() + .duration(3 * SECONDS + 4 * TICKS) + .eut(8) + .addTo(sFluidSolidficationRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Shape_Mold_Anvil.get(0L)) + .itemOutputs(new ItemStack(Blocks.anvil, 1, 0)) + .fluidInputs(Materials.Iron.getMolten(4464L)) + .noFluidOutputs() + .duration(6 * SECONDS + 8 * TICKS) + .eut(16) + .addTo(sFluidSolidficationRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Shape_Mold_Anvil.get(0L)) + .itemOutputs(new ItemStack(Blocks.anvil, 1, 0)) + .fluidInputs(Materials.WroughtIron.getMolten(4464L)) + .noFluidOutputs() + .duration(6 * SECONDS + 8 * TICKS) + .eut(16) + .addTo(sFluidSolidficationRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Boron.getDust(1)) + .fluidInputs(Materials.Boron.getMolten(144L)) + .noFluidOutputs() + .duration(1 * SECONDS + 10 * TICKS) + .eut(30) + .addTo(sFluidSolidficationRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Shape_Mold_Cylinder.get(0)) + .itemOutputs(ItemList.Circuit_Parts_PetriDish.get(1)) + .fluidInputs(Materials.Polytetrafluoroethylene.getMolten(36)) + .noFluidOutputs() + .duration(8 * SECONDS) + .eut(16) + .addTo(sFluidSolidficationRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Shape_Mold_Cylinder.get(0)) + .itemOutputs(ItemList.Circuit_Parts_PetriDish.get(1)) + .fluidInputs(Materials.Polystyrene.getMolten(36)) + .noFluidOutputs() + .duration(8 * SECONDS) + .eut(16) + .addTo(sFluidSolidficationRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Shape_Mold_Cylinder.get(0)) + .itemOutputs(ItemList.Circuit_Parts_PetriDish.get(1)) + .fluidInputs(Materials.BorosilicateGlass.getMolten(72)) + .noFluidOutputs() + .duration(8 * SECONDS) + .eut(16) + .addTo(sFluidSolidficationRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Shape_Mold_Plate.get(0L)) + .itemOutputs(getModItem(NewHorizonsCoreMod.ID, "item.ReinforcedGlassPlate", 1L, 0)) + .fluidInputs(Materials.ReinforceGlass.getMolten(72)) + .noFluidOutputs() + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sFluidSolidficationRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Shape_Mold_Block.get(0L)) + .itemOutputs(getModItem(IndustrialCraft2.ID, "blockAlloyGlass", 1L)) + .fluidInputs(Materials.ReinforceGlass.getMolten(144)) + .noFluidOutputs() + .duration(8 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sFluidSolidficationRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Shape_Mold_Ball.get(0L)) + .itemOutputs(ItemList.Circuit_Parts_Glass_Tube.get(1)) + .fluidInputs(Materials.Glass.getMolten(144)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(24) + .addTo(sFluidSolidficationRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Shape_Mold_Ball.get(0L)) + .itemOutputs(ItemList.Circuit_Parts_Reinforced_Glass_Tube.get(1)) + .fluidInputs(Materials.ReinforceGlass.getMolten(288)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sFluidSolidficationRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Shape_Mold_Ball.get(0L)) + .itemOutputs(ItemList.Circuit_Parts_Glass_Tube.get(1)) + .fluidInputs(getFluidStack("glass.molten", 1000)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(24) + .addTo(sFluidSolidficationRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Shape_Mold_Ball.get(0L)) + .itemOutputs(ItemList.GelledToluene.get(1)) + .fluidInputs(new FluidStack(ItemList.sToluene, 100)) + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sFluidSolidficationRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Shape_Mold_Nugget.get(0L)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Copper, 1L)) + .fluidInputs(Materials.AnnealedCopper.getMolten(16)) + .noFluidOutputs() + .duration(16 * TICKS) + .eut(4) + .addTo(sFluidSolidficationRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Shape_Mold_Ingot.get(0L)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Copper, 1L)) + .fluidInputs(Materials.AnnealedCopper.getMolten(144)) + .noFluidOutputs() + .duration(1 * SECONDS + 12 * TICKS) + .eut(8) + .addTo(sFluidSolidficationRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Shape_Mold_Block.get(0L)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.block, Materials.Copper, 1L)) + .fluidInputs(Materials.AnnealedCopper.getMolten(1296)) + .noFluidOutputs() + .duration(14 * SECONDS + 8 * TICKS) + .eut(8) + .addTo(sFluidSolidficationRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Shape_Mold_Nugget.get(0L)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Iron, 1L)) + .fluidInputs(Materials.WroughtIron.getMolten(16)) + .noFluidOutputs() + .duration(16 * TICKS) + .eut(4) + .addTo(sFluidSolidficationRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Shape_Mold_Ingot.get(0L)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Iron, 1L)) + .fluidInputs(Materials.WroughtIron.getMolten(144)) + .noFluidOutputs() + .duration(1 * SECONDS + 12 * TICKS) + .eut(8) + .addTo(sFluidSolidficationRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Shape_Mold_Block.get(0L)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.block, Materials.Iron, 1L)) + .fluidInputs(Materials.WroughtIron.getMolten(1296)) + .noFluidOutputs() + .duration(14 * SECONDS + 8 * TICKS) + .eut(8) + .addTo(sFluidSolidficationRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Spinneret.get(0L)) + .itemOutputs(ItemList.KevlarFiber.get(8L)) + .fluidInputs(MaterialsKevlar.LiquidCrystalKevlar.getFluid(144L)) + .noFluidOutputs() + .duration(40 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sFluidSolidficationRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Shape_Mold_Anvil.get(0L)) + .itemOutputs(getModItem(Railcraft.ID, "tile.railcraft.anvil", 1L, 0)) + .fluidInputs(Materials.Steel.getMolten(4464L)) + .noFluidOutputs() + .duration(6 * SECONDS + 8 * TICKS) + .eut(16) + .addTo(sFluidSolidficationRecipes); final int whiteDwarfShapeSolidifierTime = 10 * SECONDS; final int fluidPerShapeSolidifierRecipe = 4 * INGOTS; { GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Extruder_Bottle.get(1)) - .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Bottle.get(1)) - .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) - .noFluidOutputs() - .duration(whiteDwarfShapeSolidifierTime) - .eut(TierEU.RECIPE_UMV) - .addTo(sFluidSolidficationRecipes); + .itemInputs(ItemList.Shape_Extruder_Bottle.get(1)) + .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Bottle.get(1)) + .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) + .noFluidOutputs() + .duration(whiteDwarfShapeSolidifierTime) + .eut(TierEU.RECIPE_UMV) + .addTo(sFluidSolidficationRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Extruder_Plate.get(1)) - .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Plate.get(1)) - .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) - .noFluidOutputs() - .duration(whiteDwarfShapeSolidifierTime) - .eut(TierEU.RECIPE_UMV) - .addTo(sFluidSolidficationRecipes); + .itemInputs(ItemList.Shape_Extruder_Plate.get(1)) + .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Plate.get(1)) + .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) + .noFluidOutputs() + .duration(whiteDwarfShapeSolidifierTime) + .eut(TierEU.RECIPE_UMV) + .addTo(sFluidSolidficationRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Extruder_Cell.get(1)) - .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Cell.get(1)) - .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) - .noFluidOutputs() - .duration(whiteDwarfShapeSolidifierTime) - .eut(TierEU.RECIPE_UMV) - .addTo(sFluidSolidficationRecipes); + .itemInputs(ItemList.Shape_Extruder_Cell.get(1)) + .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Cell.get(1)) + .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) + .noFluidOutputs() + .duration(whiteDwarfShapeSolidifierTime) + .eut(TierEU.RECIPE_UMV) + .addTo(sFluidSolidficationRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Extruder_Ring.get(1)) - .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Ring.get(1)) - .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) - .noFluidOutputs() - .duration(whiteDwarfShapeSolidifierTime) - .eut(TierEU.RECIPE_UMV) - .addTo(sFluidSolidficationRecipes); + .itemInputs(ItemList.Shape_Extruder_Ring.get(1)) + .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Ring.get(1)) + .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) + .noFluidOutputs() + .duration(whiteDwarfShapeSolidifierTime) + .eut(TierEU.RECIPE_UMV) + .addTo(sFluidSolidficationRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Extruder_Rod.get(1)) - .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Rod.get(1)) - .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) - .noFluidOutputs() - .duration(whiteDwarfShapeSolidifierTime) - .eut(TierEU.RECIPE_UMV) - .addTo(sFluidSolidficationRecipes); + .itemInputs(ItemList.Shape_Extruder_Rod.get(1)) + .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Rod.get(1)) + .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) + .noFluidOutputs() + .duration(whiteDwarfShapeSolidifierTime) + .eut(TierEU.RECIPE_UMV) + .addTo(sFluidSolidficationRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Extruder_Bolt.get(1)) - .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Bolt.get(1)) - .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) - .noFluidOutputs() - .duration(whiteDwarfShapeSolidifierTime) - .eut(TierEU.RECIPE_UMV) - .addTo(sFluidSolidficationRecipes); + .itemInputs(ItemList.Shape_Extruder_Bolt.get(1)) + .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Bolt.get(1)) + .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) + .noFluidOutputs() + .duration(whiteDwarfShapeSolidifierTime) + .eut(TierEU.RECIPE_UMV) + .addTo(sFluidSolidficationRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Extruder_Ingot.get(1)) - .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Ingot.get(1)) - .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) - .noFluidOutputs() - .duration(whiteDwarfShapeSolidifierTime) - .eut(TierEU.RECIPE_UMV) - .addTo(sFluidSolidficationRecipes); + .itemInputs(ItemList.Shape_Extruder_Ingot.get(1)) + .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Ingot.get(1)) + .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) + .noFluidOutputs() + .duration(whiteDwarfShapeSolidifierTime) + .eut(TierEU.RECIPE_UMV) + .addTo(sFluidSolidficationRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Extruder_Wire.get(1)) - .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Wire.get(1)) - .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) - .noFluidOutputs() - .duration(whiteDwarfShapeSolidifierTime) - .eut(TierEU.RECIPE_UMV) - .addTo(sFluidSolidficationRecipes); + .itemInputs(ItemList.Shape_Extruder_Wire.get(1)) + .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Wire.get(1)) + .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) + .noFluidOutputs() + .duration(whiteDwarfShapeSolidifierTime) + .eut(TierEU.RECIPE_UMV) + .addTo(sFluidSolidficationRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Extruder_Casing.get(1)) - .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Casing.get(1)) - .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) - .noFluidOutputs() - .duration(whiteDwarfShapeSolidifierTime) - .eut(TierEU.RECIPE_UMV) - .addTo(sFluidSolidficationRecipes); + .itemInputs(ItemList.Shape_Extruder_Casing.get(1)) + .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Casing.get(1)) + .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) + .noFluidOutputs() + .duration(whiteDwarfShapeSolidifierTime) + .eut(TierEU.RECIPE_UMV) + .addTo(sFluidSolidficationRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Extruder_Pipe_Tiny.get(1)) - .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Pipe_Tiny.get(1)) - .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) - .noFluidOutputs() - .duration(whiteDwarfShapeSolidifierTime) - .eut(TierEU.RECIPE_UMV) - .addTo(sFluidSolidficationRecipes); + .itemInputs(ItemList.Shape_Extruder_Pipe_Tiny.get(1)) + .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Pipe_Tiny.get(1)) + .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) + .noFluidOutputs() + .duration(whiteDwarfShapeSolidifierTime) + .eut(TierEU.RECIPE_UMV) + .addTo(sFluidSolidficationRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Extruder_Pipe_Small.get(1)) - .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Pipe_Small.get(1)) - .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) - .noFluidOutputs() - .duration(whiteDwarfShapeSolidifierTime) - .eut(TierEU.RECIPE_UMV) - .addTo(sFluidSolidficationRecipes); + .itemInputs(ItemList.Shape_Extruder_Pipe_Small.get(1)) + .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Pipe_Small.get(1)) + .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) + .noFluidOutputs() + .duration(whiteDwarfShapeSolidifierTime) + .eut(TierEU.RECIPE_UMV) + .addTo(sFluidSolidficationRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Extruder_Pipe_Medium.get(1)) - .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Pipe_Medium.get(1)) - .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) - .noFluidOutputs() - .duration(whiteDwarfShapeSolidifierTime) - .eut(TierEU.RECIPE_UMV) - .addTo(sFluidSolidficationRecipes); + .itemInputs(ItemList.Shape_Extruder_Pipe_Medium.get(1)) + .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Pipe_Medium.get(1)) + .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) + .noFluidOutputs() + .duration(whiteDwarfShapeSolidifierTime) + .eut(TierEU.RECIPE_UMV) + .addTo(sFluidSolidficationRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Extruder_Pipe_Large.get(1)) - .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Pipe_Large.get(1)) - .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) - .noFluidOutputs() - .duration(whiteDwarfShapeSolidifierTime) - .eut(TierEU.RECIPE_UMV) - .addTo(sFluidSolidficationRecipes); + .itemInputs(ItemList.Shape_Extruder_Pipe_Large.get(1)) + .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Pipe_Large.get(1)) + .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) + .noFluidOutputs() + .duration(whiteDwarfShapeSolidifierTime) + .eut(TierEU.RECIPE_UMV) + .addTo(sFluidSolidficationRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Extruder_Pipe_Huge.get(1)) - .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Pipe_Huge.get(1)) - .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) - .noFluidOutputs() - .duration(whiteDwarfShapeSolidifierTime) - .eut(TierEU.RECIPE_UMV) - .addTo(sFluidSolidficationRecipes); + .itemInputs(ItemList.Shape_Extruder_Pipe_Huge.get(1)) + .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Pipe_Huge.get(1)) + .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) + .noFluidOutputs() + .duration(whiteDwarfShapeSolidifierTime) + .eut(TierEU.RECIPE_UMV) + .addTo(sFluidSolidficationRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Extruder_Block.get(1)) - .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Block.get(1)) - .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) - .noFluidOutputs() - .duration(whiteDwarfShapeSolidifierTime) - .eut(TierEU.RECIPE_UMV) - .addTo(sFluidSolidficationRecipes); + .itemInputs(ItemList.Shape_Extruder_Block.get(1)) + .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Block.get(1)) + .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) + .noFluidOutputs() + .duration(whiteDwarfShapeSolidifierTime) + .eut(TierEU.RECIPE_UMV) + .addTo(sFluidSolidficationRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Extruder_Sword.get(1)) - .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Sword.get(1)) - .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) - .noFluidOutputs() - .duration(whiteDwarfShapeSolidifierTime) - .eut(TierEU.RECIPE_UMV) - .addTo(sFluidSolidficationRecipes); + .itemInputs(ItemList.Shape_Extruder_Sword.get(1)) + .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Sword.get(1)) + .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) + .noFluidOutputs() + .duration(whiteDwarfShapeSolidifierTime) + .eut(TierEU.RECIPE_UMV) + .addTo(sFluidSolidficationRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Extruder_Pickaxe.get(1)) - .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Pickaxe.get(1)) - .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) - .noFluidOutputs() - .duration(whiteDwarfShapeSolidifierTime) - .eut(TierEU.RECIPE_UMV) - .addTo(sFluidSolidficationRecipes); + .itemInputs(ItemList.Shape_Extruder_Pickaxe.get(1)) + .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Pickaxe.get(1)) + .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) + .noFluidOutputs() + .duration(whiteDwarfShapeSolidifierTime) + .eut(TierEU.RECIPE_UMV) + .addTo(sFluidSolidficationRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Extruder_Shovel.get(1)) - .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Shovel.get(1)) - .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) - .noFluidOutputs() - .duration(whiteDwarfShapeSolidifierTime) - .eut(TierEU.RECIPE_UMV) - .addTo(sFluidSolidficationRecipes); + .itemInputs(ItemList.Shape_Extruder_Shovel.get(1)) + .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Shovel.get(1)) + .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) + .noFluidOutputs() + .duration(whiteDwarfShapeSolidifierTime) + .eut(TierEU.RECIPE_UMV) + .addTo(sFluidSolidficationRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Extruder_Axe.get(1)) - .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Axe.get(1)) - .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) - .noFluidOutputs() - .duration(whiteDwarfShapeSolidifierTime) - .eut(TierEU.RECIPE_UMV) - .addTo(sFluidSolidficationRecipes); + .itemInputs(ItemList.Shape_Extruder_Axe.get(1)) + .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Axe.get(1)) + .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) + .noFluidOutputs() + .duration(whiteDwarfShapeSolidifierTime) + .eut(TierEU.RECIPE_UMV) + .addTo(sFluidSolidficationRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Extruder_Hoe.get(1)) - .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Hoe.get(1)) - .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) - .noFluidOutputs() - .duration(whiteDwarfShapeSolidifierTime) - .eut(TierEU.RECIPE_UMV) - .addTo(sFluidSolidficationRecipes); + .itemInputs(ItemList.Shape_Extruder_Hoe.get(1)) + .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Hoe.get(1)) + .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) + .noFluidOutputs() + .duration(whiteDwarfShapeSolidifierTime) + .eut(TierEU.RECIPE_UMV) + .addTo(sFluidSolidficationRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Extruder_Hammer.get(1)) - .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Hammer.get(1)) - .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) - .noFluidOutputs() - .duration(whiteDwarfShapeSolidifierTime) - .eut(TierEU.RECIPE_UMV) - .addTo(sFluidSolidficationRecipes); + .itemInputs(ItemList.Shape_Extruder_Hammer.get(1)) + .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Hammer.get(1)) + .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) + .noFluidOutputs() + .duration(whiteDwarfShapeSolidifierTime) + .eut(TierEU.RECIPE_UMV) + .addTo(sFluidSolidficationRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Extruder_File.get(1)) - .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_File.get(1)) - .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) - .noFluidOutputs() - .duration(whiteDwarfShapeSolidifierTime) - .eut(TierEU.RECIPE_UMV) - .addTo(sFluidSolidficationRecipes); + .itemInputs(ItemList.Shape_Extruder_File.get(1)) + .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_File.get(1)) + .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) + .noFluidOutputs() + .duration(whiteDwarfShapeSolidifierTime) + .eut(TierEU.RECIPE_UMV) + .addTo(sFluidSolidficationRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Extruder_Saw.get(1)) - .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Saw.get(1)) - .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) - .noFluidOutputs() - .duration(whiteDwarfShapeSolidifierTime) - .eut(TierEU.RECIPE_UMV) - .addTo(sFluidSolidficationRecipes); + .itemInputs(ItemList.Shape_Extruder_Saw.get(1)) + .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Saw.get(1)) + .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) + .noFluidOutputs() + .duration(whiteDwarfShapeSolidifierTime) + .eut(TierEU.RECIPE_UMV) + .addTo(sFluidSolidficationRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Extruder_Gear.get(1)) - .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Gear.get(1)) - .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) - .noFluidOutputs() - .duration(whiteDwarfShapeSolidifierTime) - .eut(TierEU.RECIPE_UMV) - .addTo(sFluidSolidficationRecipes); + .itemInputs(ItemList.Shape_Extruder_Gear.get(1)) + .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Gear.get(1)) + .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) + .noFluidOutputs() + .duration(whiteDwarfShapeSolidifierTime) + .eut(TierEU.RECIPE_UMV) + .addTo(sFluidSolidficationRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Extruder_Rotor.get(1)) - .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Rotor.get(1)) - .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) - .noFluidOutputs() - .duration(whiteDwarfShapeSolidifierTime) - .eut(TierEU.RECIPE_UMV) - .addTo(sFluidSolidficationRecipes); + .itemInputs(ItemList.Shape_Extruder_Rotor.get(1)) + .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Rotor.get(1)) + .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) + .noFluidOutputs() + .duration(whiteDwarfShapeSolidifierTime) + .eut(TierEU.RECIPE_UMV) + .addTo(sFluidSolidficationRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Extruder_Turbine_Blade.get(1)) - .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Turbine_Blade.get(1)) - .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) - .noFluidOutputs() - .duration(whiteDwarfShapeSolidifierTime) - .eut(TierEU.RECIPE_UMV) - .addTo(sFluidSolidficationRecipes); + .itemInputs(ItemList.Shape_Extruder_Turbine_Blade.get(1)) + .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Turbine_Blade.get(1)) + .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) + .noFluidOutputs() + .duration(whiteDwarfShapeSolidifierTime) + .eut(TierEU.RECIPE_UMV) + .addTo(sFluidSolidficationRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Extruder_Small_Gear.get(1)) - .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Small_Gear.get(1)) - .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) - .noFluidOutputs() - .duration(whiteDwarfShapeSolidifierTime) - .eut(TierEU.RECIPE_UMV) - .addTo(sFluidSolidficationRecipes); + .itemInputs(ItemList.Shape_Extruder_Small_Gear.get(1)) + .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_Small_Gear.get(1)) + .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) + .noFluidOutputs() + .duration(whiteDwarfShapeSolidifierTime) + .eut(TierEU.RECIPE_UMV) + .addTo(sFluidSolidficationRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Shape_Extruder_ToolHeadDrill.get(1)) - .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_ToolHeadDrill.get(1)) - .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) - .noFluidOutputs() - .duration(whiteDwarfShapeSolidifierTime) - .eut(TierEU.RECIPE_UMV) - .addTo(sFluidSolidficationRecipes); + .itemInputs(ItemList.Shape_Extruder_ToolHeadDrill.get(1)) + .itemOutputs(ItemList.White_Dwarf_Shape_Extruder_ToolHeadDrill.get(1)) + .fluidInputs(Materials.WhiteDwarfMatter.getMolten(fluidPerShapeSolidifierRecipe)) + .noFluidOutputs() + .duration(whiteDwarfShapeSolidifierTime) + .eut(TierEU.RECIPE_UMV) + .addTo(sFluidSolidficationRecipes); } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/ForgeHammerRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/ForgeHammerRecipes.java index 9f05b95aa0..0d61dc8b17 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/ForgeHammerRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/ForgeHammerRecipes.java @@ -20,169 +20,169 @@ public class ForgeHammerRecipes implements Runnable { public void run() { GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.stonebrick, 1, 0)) - .itemOutputs(new ItemStack(Blocks.stonebrick, 1, 2)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * TICKS) - .eut(16) - .addTo(sHammerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.stone, 1, 0)) - .itemOutputs(new ItemStack(Blocks.cobblestone, 1, 0)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * TICKS) - .eut(16) - .addTo(sHammerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.cobblestone, 1, 0)) - .itemOutputs(new ItemStack(Blocks.gravel, 1, 0)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * TICKS) - .eut(16) - .addTo(sHammerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.gravel, 1, 0)) - .itemOutputs(new ItemStack(Blocks.sand, 1, 0)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * TICKS) - .eut(16) - .addTo(sHammerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.sandstone, 1, 32767)) - .itemOutputs(new ItemStack(Blocks.sand, 1, 0)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * TICKS) - .eut(16) - .addTo(sHammerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.ice, 1, 0)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ice, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * TICKS) - .eut(16) - .addTo(sHammerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.packed_ice, 1, 0)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ice, 2)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * TICKS) - .eut(16) - .addTo(sHammerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.brick_block, 1, 0)) - .itemOutputs(new ItemStack(Items.brick, 3, 0)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * TICKS) - .eut(16) - .addTo(sHammerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.nether_brick, 1, 0)) - .itemOutputs(new ItemStack(Items.netherbrick, 3, 0)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * TICKS) - .eut(16) - .addTo(sHammerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.stained_glass, 1, 32767)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glass, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * TICKS) - .eut(16) - .addTo(sHammerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.glass, 1, 32767)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glass, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * TICKS) - .eut(10) - .addTo(sHammerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.stained_glass_pane, 1, 32767)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Glass, 3)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * TICKS) - .eut(16) - .addTo(sHammerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.glass_pane, 1, 32767)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Glass, 3)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * TICKS) - .eut(16) - .addTo(sHammerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Brick.getIngots(1)) - .itemOutputs(Materials.Brick.getDustSmall(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * TICKS) - .eut(16) - .addTo(sHammerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Firebrick.get(1)) - .itemOutputs(Materials.Brick.getDust(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * TICKS) - .eut(16) - .addTo(sHammerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Casing_Firebricks.get(1)) - .itemOutputs(ItemList.Firebrick.get(3)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * TICKS) - .eut(16) - .addTo(sHammerRecipes); + .itemInputs(new ItemStack(Blocks.stonebrick, 1, 0)) + .itemOutputs(new ItemStack(Blocks.stonebrick, 1, 2)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * TICKS) + .eut(16) + .addTo(sHammerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Blocks.stone, 1, 0)) + .itemOutputs(new ItemStack(Blocks.cobblestone, 1, 0)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * TICKS) + .eut(16) + .addTo(sHammerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Blocks.cobblestone, 1, 0)) + .itemOutputs(new ItemStack(Blocks.gravel, 1, 0)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * TICKS) + .eut(16) + .addTo(sHammerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Blocks.gravel, 1, 0)) + .itemOutputs(new ItemStack(Blocks.sand, 1, 0)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * TICKS) + .eut(16) + .addTo(sHammerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Blocks.sandstone, 1, 32767)) + .itemOutputs(new ItemStack(Blocks.sand, 1, 0)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * TICKS) + .eut(16) + .addTo(sHammerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Blocks.ice, 1, 0)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ice, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * TICKS) + .eut(16) + .addTo(sHammerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Blocks.packed_ice, 1, 0)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ice, 2)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * TICKS) + .eut(16) + .addTo(sHammerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Blocks.brick_block, 1, 0)) + .itemOutputs(new ItemStack(Items.brick, 3, 0)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * TICKS) + .eut(16) + .addTo(sHammerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Blocks.nether_brick, 1, 0)) + .itemOutputs(new ItemStack(Items.netherbrick, 3, 0)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * TICKS) + .eut(16) + .addTo(sHammerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Blocks.stained_glass, 1, 32767)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glass, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * TICKS) + .eut(16) + .addTo(sHammerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Blocks.glass, 1, 32767)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glass, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * TICKS) + .eut(10) + .addTo(sHammerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Blocks.stained_glass_pane, 1, 32767)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Glass, 3)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * TICKS) + .eut(16) + .addTo(sHammerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(new ItemStack(Blocks.glass_pane, 1, 32767)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Glass, 3)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * TICKS) + .eut(16) + .addTo(sHammerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Brick.getIngots(1)) + .itemOutputs(Materials.Brick.getDustSmall(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * TICKS) + .eut(16) + .addTo(sHammerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Firebrick.get(1)) + .itemOutputs(Materials.Brick.getDust(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * TICKS) + .eut(16) + .addTo(sHammerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Casing_Firebricks.get(1)) + .itemOutputs(ItemList.Firebrick.get(3)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * TICKS) + .eut(16) + .addTo(sHammerRecipes); if (GTPlusPlus.isModLoaded()) { GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Tesseract.get(1L), getModItem(GTPlusPlus.ID, "MU-metaitem.01", 1, 32105)) - .noItemOutputs() - .fluidInputs(Materials.SpaceTime.getMolten(2880L)) - .fluidOutputs(Materials.Space.getMolten(1440L), Materials.Time.getMolten(1440L)) - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_UXV) - .addTo(sHammerRecipes); + .itemInputs(ItemList.Tesseract.get(1L), getModItem(GTPlusPlus.ID, "MU-metaitem.01", 1, 32105)) + .noItemOutputs() + .fluidInputs(Materials.SpaceTime.getMolten(2880L)) + .fluidOutputs(Materials.Space.getMolten(1440L), Materials.Time.getMolten(1440L)) + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_UXV) + .addTo(sHammerRecipes); } if (HardcoreEnderExpansion.isModLoaded()) { GT_Values.RA.stdBuilder() - .itemInputs(getModItem(HardcoreEnderExpansion.ID, "endium_ore", 1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.crushed, Materials.HeeEndium, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(16) - .eut(10) - .addTo(sHammerRecipes); + .itemInputs(getModItem(HardcoreEnderExpansion.ID, "endium_ore", 1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.crushed, Materials.HeeEndium, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(16) + .eut(10) + .addTo(sHammerRecipes); } } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/FormingPressRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/FormingPressRecipes.java index 0c0cd555c6..3e636d82e3 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/FormingPressRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/FormingPressRecipes.java @@ -20,211 +20,211 @@ public class FormingPressRecipes implements Runnable { public void run() { if (BuildCraftSilicon.isModLoaded()) { GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 1L), - getModItem(BuildCraftSilicon.ID, "redstoneChipset", 1L, 0)) - .itemOutputs(getModItem(BuildCraftSilicon.ID, "redstoneChipset", 1L, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sPressRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 1L), + getModItem(BuildCraftSilicon.ID, "redstoneChipset", 1L, 0)) + .itemOutputs(getModItem(BuildCraftSilicon.ID, "redstoneChipset", 1L, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sPressRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 1L), - getModItem(BuildCraftSilicon.ID, "redstoneChipset", 1L, 0)) - .itemOutputs(getModItem(BuildCraftSilicon.ID, "redstoneChipset", 1L, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sPressRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 1L), + getModItem(BuildCraftSilicon.ID, "redstoneChipset", 1L, 0)) + .itemOutputs(getModItem(BuildCraftSilicon.ID, "redstoneChipset", 1L, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sPressRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Gold, 1L), - getModItem(BuildCraftSilicon.ID, "redstoneChipset", 1L, 0)) - .itemOutputs(getModItem(BuildCraftSilicon.ID, "redstoneChipset", 1L, 2)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sPressRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Gold, 1L), + getModItem(BuildCraftSilicon.ID, "redstoneChipset", 1L, 0)) + .itemOutputs(getModItem(BuildCraftSilicon.ID, "redstoneChipset", 1L, 2)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sPressRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Diamond, 1L), - getModItem(BuildCraftSilicon.ID, "redstoneChipset", 1L, 0)) - .itemOutputs(getModItem(BuildCraftSilicon.ID, "redstoneChipset", 1L, 3)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sPressRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Diamond, 1L), + getModItem(BuildCraftSilicon.ID, "redstoneChipset", 1L, 0)) + .itemOutputs(getModItem(BuildCraftSilicon.ID, "redstoneChipset", 1L, 3)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sPressRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.EnderPearl, 1L), - getModItem(BuildCraftSilicon.ID, "redstoneChipset", 1L, 0)) - .itemOutputs(getModItem(BuildCraftSilicon.ID, "redstoneChipset", 2L, 4)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sPressRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.gem, Materials.EnderPearl, 1L), + getModItem(BuildCraftSilicon.ID, "redstoneChipset", 1L, 0)) + .itemOutputs(getModItem(BuildCraftSilicon.ID, "redstoneChipset", 2L, 4)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sPressRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.NetherQuartz, 1L), - getModItem(BuildCraftSilicon.ID, "redstoneChipset", 1L, 0)) - .itemOutputs(getModItem(BuildCraftSilicon.ID, "redstoneChipset", 1L, 5)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sPressRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.NetherQuartz, 1L), + getModItem(BuildCraftSilicon.ID, "redstoneChipset", 1L, 0)) + .itemOutputs(getModItem(BuildCraftSilicon.ID, "redstoneChipset", 1L, 5)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sPressRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - new ItemStack(Items.comparator, 1, 32767), - getModItem(BuildCraftSilicon.ID, "redstoneChipset", 1L, 0)) - .itemOutputs(getModItem(BuildCraftSilicon.ID, "redstoneChipset", 1L, 6)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sPressRecipes); + .itemInputs( + new ItemStack(Items.comparator, 1, 32767), + getModItem(BuildCraftSilicon.ID, "redstoneChipset", 1L, 0)) + .itemOutputs(getModItem(BuildCraftSilicon.ID, "redstoneChipset", 1L, 6)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sPressRecipes); } if (AppliedEnergistics2.isModLoaded()) { GT_Values.RA.stdBuilder() - .itemInputs( - getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 10), - getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 0L, 13)) - .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 16)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(16) - .addTo(sPressRecipes); + .itemInputs( + getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 10), + getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 0L, 13)) + .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 16)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(16) + .addTo(sPressRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.CertusQuartz, 1L), - getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 0L, 13)) - .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 16)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(16) - .addTo(sPressRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.CertusQuartz, 1L), + getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 0L, 13)) + .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 16)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(16) + .addTo(sPressRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Diamond, 1L), - getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 0L, 14)) - .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 17)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(16) - .addTo(sPressRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Diamond, 1L), + getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 0L, 14)) + .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 17)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(16) + .addTo(sPressRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Gold, 1L), - getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 0L, 15)) - .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 18)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(16) - .addTo(sPressRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Gold, 1L), + getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 0L, 15)) + .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 18)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(16) + .addTo(sPressRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.SiliconSG, 1L), - getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 0L, 19)) - .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 20)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(16) - .addTo(sPressRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.SiliconSG, 1L), + getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 0L, 19)) + .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 20)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(16) + .addTo(sPressRecipes); } GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Food_Dough_Sugar.get(4L), ItemList.Shape_Mold_Cylinder.get(0L)) - .itemOutputs(ItemList.Food_Raw_Cake.get(1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(19 * SECONDS + 4 * TICKS) - .eut(4) - .addTo(sPressRecipes); + .itemInputs(ItemList.Food_Dough_Sugar.get(4L), ItemList.Shape_Mold_Cylinder.get(0L)) + .itemOutputs(ItemList.Food_Raw_Cake.get(1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(19 * SECONDS + 4 * TICKS) + .eut(4) + .addTo(sPressRecipes); GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.glass, 1, 32767), ItemList.Shape_Mold_Arrow.get(0L)) - .itemOutputs(ItemList.Arrow_Head_Glass_Emtpy.get(1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(3 * SECONDS + 4 * TICKS) - .eut(4) - .addTo(sPressRecipes); + .itemInputs(new ItemStack(Blocks.glass, 1, 32767), ItemList.Shape_Mold_Arrow.get(0L)) + .itemOutputs(ItemList.Arrow_Head_Glass_Emtpy.get(1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(3 * SECONDS + 4 * TICKS) + .eut(4) + .addTo(sPressRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Cupronickel, 1L), - ItemList.Shape_Mold_Credit.get(0L)) - .itemOutputs(ItemList.Credit_Greg_Cupronickel.get(4L)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sPressRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Cupronickel, 1L), + ItemList.Shape_Mold_Credit.get(0L)) + .itemOutputs(ItemList.Credit_Greg_Cupronickel.get(4L)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sPressRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Brass, 1L), - ItemList.Shape_Mold_Credit.get(0L)) - .itemOutputs(ItemList.Coin_Doge.get(4L)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sPressRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Brass, 1L), + ItemList.Shape_Mold_Credit.get(0L)) + .itemOutputs(ItemList.Coin_Doge.get(4L)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sPressRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 1L), - ItemList.Shape_Mold_Credit.get(0L)) - .itemOutputs(ItemList.Credit_Iron.get(4L)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sPressRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 1L), + ItemList.Shape_Mold_Credit.get(0L)) + .itemOutputs(ItemList.Credit_Iron.get(4L)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sPressRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 1L), - ItemList.Shape_Mold_Credit.get(0L)) - .itemOutputs(ItemList.Credit_Iron.get(4L)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sPressRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 1L), + ItemList.Shape_Mold_Credit.get(0L)) + .itemOutputs(ItemList.Credit_Iron.get(4L)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sPressRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Brick, 1L), - ItemList.Shape_Mold_Ingot.get(0L)) - .itemOutputs(new ItemStack(Items.brick, 1, 0)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(16) - .addTo(sPressRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Brick, 1L), + ItemList.Shape_Mold_Ingot.get(0L)) + .itemOutputs(new ItemStack(Items.brick, 1, 0)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(16) + .addTo(sPressRecipes); } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/FuelRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/FuelRecipes.java index bccafd3983..0db6a520bf 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/FuelRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/FuelRecipes.java @@ -21,193 +21,193 @@ public class FuelRecipes implements Runnable { public void run() { if (!GregTech_API.mIC2Classic) { GT_Values.RA.stdBuilder() - .itemInputs(GT_ModHandler.getIC2Item("biogasCell", 1L)) - .noItemOutputs() - .noFluidInputs() - .noFluidOutputs() - .metadata(FUEL_VALUE, 40) - .metadata(FUEL_TYPE, 1) - .duration(0) - .eut(0) - .addTo(GT_RecipeConstants.Fuel); + .itemInputs(GT_ModHandler.getIC2Item("biogasCell", 1L)) + .noItemOutputs() + .noFluidInputs() + .noFluidOutputs() + .metadata(FUEL_VALUE, 40) + .metadata(FUEL_TYPE, 1) + .duration(0) + .eut(0) + .addTo(GT_RecipeConstants.Fuel); } GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.golden_apple, 1, 1)) - .itemOutputs(new ItemStack(Items.apple, 1)) - .noFluidInputs() - .noFluidOutputs() - .metadata(FUEL_VALUE, 6400) - .metadata(FUEL_TYPE, 5) - .duration(0) - .eut(0) - .addTo(GT_RecipeConstants.Fuel); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Thaumcraft.ID, "ItemShard", 1L, 6)) - .noItemOutputs() - .noFluidInputs() - .noFluidOutputs() - .metadata(FUEL_VALUE, 720) - .metadata(FUEL_TYPE, 5) - .duration(0) - .eut(0) - .addTo(GT_RecipeConstants.Fuel); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(ForbiddenMagic.ID, "GluttonyShard", 1L)) - .noItemOutputs() - .noFluidInputs() - .noFluidOutputs() - .metadata(FUEL_VALUE, 720) - .metadata(FUEL_TYPE, 5) - .duration(0) - .eut(0) - .addTo(GT_RecipeConstants.Fuel); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(ForbiddenMagic.ID, "FMResource", 1L, 3)) - .noItemOutputs() - .noFluidInputs() - .noFluidOutputs() - .metadata(FUEL_VALUE, 720) - .metadata(FUEL_TYPE, 5) - .duration(0) - .eut(0) - .addTo(GT_RecipeConstants.Fuel); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(ForbiddenMagic.ID, "NetherShard", 1L)) - .noItemOutputs() - .noFluidInputs() - .noFluidOutputs() - .metadata(FUEL_VALUE, 720) - .metadata(FUEL_TYPE, 5) - .duration(0) - .eut(0) - .addTo(GT_RecipeConstants.Fuel); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(ForbiddenMagic.ID, "NetherShard", 1L, 1)) - .noItemOutputs() - .noFluidInputs() - .noFluidOutputs() - .metadata(FUEL_VALUE, 720) - .metadata(FUEL_TYPE, 5) - .duration(0) - .eut(0) - .addTo(GT_RecipeConstants.Fuel); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(ForbiddenMagic.ID, "NetherShard", 1L, 2)) - .noItemOutputs() - .noFluidInputs() - .noFluidOutputs() - .metadata(FUEL_VALUE, 720) - .metadata(FUEL_TYPE, 5) - .duration(0) - .eut(0) - .addTo(GT_RecipeConstants.Fuel); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(ForbiddenMagic.ID, "NetherShard", 1L, 3)) - .noItemOutputs() - .noFluidInputs() - .noFluidOutputs() - .metadata(FUEL_VALUE, 720) - .metadata(FUEL_TYPE, 5) - .duration(0) - .eut(0) - .addTo(GT_RecipeConstants.Fuel); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(ForbiddenMagic.ID, "NetherShard", 1L, 4)) - .noItemOutputs() - .noFluidInputs() - .noFluidOutputs() - .metadata(FUEL_VALUE, 720) - .metadata(FUEL_TYPE, 5) - .duration(0) - .eut(0) - .addTo(GT_RecipeConstants.Fuel); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(ForbiddenMagic.ID, "NetherShard", 1L, 5)) - .noItemOutputs() - .noFluidInputs() - .noFluidOutputs() - .metadata(FUEL_VALUE, 720) - .metadata(FUEL_TYPE, 5) - .duration(0) - .eut(0) - .addTo(GT_RecipeConstants.Fuel); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(ForbiddenMagic.ID, "NetherShard", 1L, 6)) - .noItemOutputs() - .noFluidInputs() - .noFluidOutputs() - .metadata(FUEL_VALUE, 720) - .metadata(FUEL_TYPE, 5) - .duration(0) - .eut(0) - .addTo(GT_RecipeConstants.Fuel); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(TaintedMagic.ID, "WarpedShard", 1L)) - .noItemOutputs() - .noFluidInputs() - .noFluidOutputs() - .metadata(FUEL_VALUE, 720) - .metadata(FUEL_TYPE, 5) - .duration(0) - .eut(0) - .addTo(GT_RecipeConstants.Fuel); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(TaintedMagic.ID, "FluxShard", 1L)) - .noItemOutputs() - .noFluidInputs() - .noFluidOutputs() - .metadata(FUEL_VALUE, 720) - .metadata(FUEL_TYPE, 5) - .duration(0) - .eut(0) - .addTo(GT_RecipeConstants.Fuel); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(TaintedMagic.ID, "EldritchShard", 1L)) - .noItemOutputs() - .noFluidInputs() - .noFluidOutputs() - .metadata(FUEL_VALUE, 720) - .metadata(FUEL_TYPE, 5) - .duration(0) - .eut(0) - .addTo(GT_RecipeConstants.Fuel); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(ThaumicTinkerer.ID, "kamiResource", 1L, 6)) - .noItemOutputs() - .noFluidInputs() - .noFluidOutputs() - .metadata(FUEL_VALUE, 720) - .metadata(FUEL_TYPE, 5) - .duration(0) - .eut(0) - .addTo(GT_RecipeConstants.Fuel); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(ThaumicTinkerer.ID, "kamiResource", 1L, 7)) - .noItemOutputs() - .noFluidInputs() - .noFluidOutputs() - .metadata(FUEL_VALUE, 720) - .metadata(FUEL_TYPE, 5) - .duration(0) - .eut(0) - .addTo(GT_RecipeConstants.Fuel); + .itemInputs(new ItemStack(Items.golden_apple, 1, 1)) + .itemOutputs(new ItemStack(Items.apple, 1)) + .noFluidInputs() + .noFluidOutputs() + .metadata(FUEL_VALUE, 6400) + .metadata(FUEL_TYPE, 5) + .duration(0) + .eut(0) + .addTo(GT_RecipeConstants.Fuel); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Thaumcraft.ID, "ItemShard", 1L, 6)) + .noItemOutputs() + .noFluidInputs() + .noFluidOutputs() + .metadata(FUEL_VALUE, 720) + .metadata(FUEL_TYPE, 5) + .duration(0) + .eut(0) + .addTo(GT_RecipeConstants.Fuel); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(ForbiddenMagic.ID, "GluttonyShard", 1L)) + .noItemOutputs() + .noFluidInputs() + .noFluidOutputs() + .metadata(FUEL_VALUE, 720) + .metadata(FUEL_TYPE, 5) + .duration(0) + .eut(0) + .addTo(GT_RecipeConstants.Fuel); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(ForbiddenMagic.ID, "FMResource", 1L, 3)) + .noItemOutputs() + .noFluidInputs() + .noFluidOutputs() + .metadata(FUEL_VALUE, 720) + .metadata(FUEL_TYPE, 5) + .duration(0) + .eut(0) + .addTo(GT_RecipeConstants.Fuel); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(ForbiddenMagic.ID, "NetherShard", 1L)) + .noItemOutputs() + .noFluidInputs() + .noFluidOutputs() + .metadata(FUEL_VALUE, 720) + .metadata(FUEL_TYPE, 5) + .duration(0) + .eut(0) + .addTo(GT_RecipeConstants.Fuel); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(ForbiddenMagic.ID, "NetherShard", 1L, 1)) + .noItemOutputs() + .noFluidInputs() + .noFluidOutputs() + .metadata(FUEL_VALUE, 720) + .metadata(FUEL_TYPE, 5) + .duration(0) + .eut(0) + .addTo(GT_RecipeConstants.Fuel); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(ForbiddenMagic.ID, "NetherShard", 1L, 2)) + .noItemOutputs() + .noFluidInputs() + .noFluidOutputs() + .metadata(FUEL_VALUE, 720) + .metadata(FUEL_TYPE, 5) + .duration(0) + .eut(0) + .addTo(GT_RecipeConstants.Fuel); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(ForbiddenMagic.ID, "NetherShard", 1L, 3)) + .noItemOutputs() + .noFluidInputs() + .noFluidOutputs() + .metadata(FUEL_VALUE, 720) + .metadata(FUEL_TYPE, 5) + .duration(0) + .eut(0) + .addTo(GT_RecipeConstants.Fuel); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(ForbiddenMagic.ID, "NetherShard", 1L, 4)) + .noItemOutputs() + .noFluidInputs() + .noFluidOutputs() + .metadata(FUEL_VALUE, 720) + .metadata(FUEL_TYPE, 5) + .duration(0) + .eut(0) + .addTo(GT_RecipeConstants.Fuel); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(ForbiddenMagic.ID, "NetherShard", 1L, 5)) + .noItemOutputs() + .noFluidInputs() + .noFluidOutputs() + .metadata(FUEL_VALUE, 720) + .metadata(FUEL_TYPE, 5) + .duration(0) + .eut(0) + .addTo(GT_RecipeConstants.Fuel); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(ForbiddenMagic.ID, "NetherShard", 1L, 6)) + .noItemOutputs() + .noFluidInputs() + .noFluidOutputs() + .metadata(FUEL_VALUE, 720) + .metadata(FUEL_TYPE, 5) + .duration(0) + .eut(0) + .addTo(GT_RecipeConstants.Fuel); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(TaintedMagic.ID, "WarpedShard", 1L)) + .noItemOutputs() + .noFluidInputs() + .noFluidOutputs() + .metadata(FUEL_VALUE, 720) + .metadata(FUEL_TYPE, 5) + .duration(0) + .eut(0) + .addTo(GT_RecipeConstants.Fuel); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(TaintedMagic.ID, "FluxShard", 1L)) + .noItemOutputs() + .noFluidInputs() + .noFluidOutputs() + .metadata(FUEL_VALUE, 720) + .metadata(FUEL_TYPE, 5) + .duration(0) + .eut(0) + .addTo(GT_RecipeConstants.Fuel); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(TaintedMagic.ID, "EldritchShard", 1L)) + .noItemOutputs() + .noFluidInputs() + .noFluidOutputs() + .metadata(FUEL_VALUE, 720) + .metadata(FUEL_TYPE, 5) + .duration(0) + .eut(0) + .addTo(GT_RecipeConstants.Fuel); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(ThaumicTinkerer.ID, "kamiResource", 1L, 6)) + .noItemOutputs() + .noFluidInputs() + .noFluidOutputs() + .metadata(FUEL_VALUE, 720) + .metadata(FUEL_TYPE, 5) + .duration(0) + .eut(0) + .addTo(GT_RecipeConstants.Fuel); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(ThaumicTinkerer.ID, "kamiResource", 1L, 7)) + .noItemOutputs() + .noFluidInputs() + .noFluidOutputs() + .metadata(FUEL_VALUE, 720) + .metadata(FUEL_TYPE, 5) + .duration(0) + .eut(0) + .addTo(GT_RecipeConstants.Fuel); } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/FusionReactorRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/FusionReactorRecipes.java index 1d2848e8fa..8243265759 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/FusionReactorRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/FusionReactorRecipes.java @@ -21,314 +21,314 @@ public class FusionReactorRecipes implements Runnable { // available on the tier) GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.Lithium.getMolten(16), Materials.Tungsten.getMolten(16)) - .fluidOutputs(Materials.Iridium.getMolten(16)) - .duration(3 * SECONDS + 4 * TICKS) - .eut(TierEU.RECIPE_LuV) - .metadata(FUSION_THRESHOLD, 300000000) - .addTo(sFusionRecipes); // FT1+ - utility + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.Lithium.getMolten(16), Materials.Tungsten.getMolten(16)) + .fluidOutputs(Materials.Iridium.getMolten(16)) + .duration(3 * SECONDS + 4 * TICKS) + .eut(TierEU.RECIPE_LuV) + .metadata(FUSION_THRESHOLD, 300000000) + .addTo(sFusionRecipes); // FT1+ - utility GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.Deuterium.getGas(125), Materials.Tritium.getGas(125)) - .fluidOutputs(Materials.Helium.getPlasma(125)) - .duration(16 * TICKS) - .eut(4096) - .metadata(FUSION_THRESHOLD, 40000000) - .addTo(sFusionRecipes); // FT1 Cheap - farmable + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.Deuterium.getGas(125), Materials.Tritium.getGas(125)) + .fluidOutputs(Materials.Helium.getPlasma(125)) + .duration(16 * TICKS) + .eut(4096) + .metadata(FUSION_THRESHOLD, 40000000) + .addTo(sFusionRecipes); // FT1 Cheap - farmable GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.Deuterium.getGas(125), Materials.Helium_3.getGas(125)) - .fluidOutputs(Materials.Helium.getPlasma(125)) - .duration(16 * TICKS) - .eut(2048) - .metadata(FUSION_THRESHOLD, 60000000) - .addTo(sFusionRecipes); // FT1 Expensive // + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.Deuterium.getGas(125), Materials.Helium_3.getGas(125)) + .fluidOutputs(Materials.Helium.getPlasma(125)) + .duration(16 * TICKS) + .eut(2048) + .metadata(FUSION_THRESHOLD, 60000000) + .addTo(sFusionRecipes); // FT1 Expensive // GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.Aluminium.getMolten(16), Materials.Lithium.getMolten(16)) - .fluidOutputs(Materials.Sulfur.getPlasma(144)) - .duration(1 * SECONDS + 12 * TICKS) - .eut(10240) - .metadata(FUSION_THRESHOLD, 240000000) - .addTo(sFusionRecipes); // FT1+ Cheap + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.Aluminium.getMolten(16), Materials.Lithium.getMolten(16)) + .fluidOutputs(Materials.Sulfur.getPlasma(144)) + .duration(1 * SECONDS + 12 * TICKS) + .eut(10240) + .metadata(FUSION_THRESHOLD, 240000000) + .addTo(sFusionRecipes); // FT1+ Cheap GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.Beryllium.getMolten(16), Materials.Deuterium.getGas(375)) - .fluidOutputs(Materials.Nitrogen.getPlasma(125)) - .duration(16 * TICKS) - .eut(16384) - .metadata(FUSION_THRESHOLD, 180000000) - .addTo(sFusionRecipes); // FT1+ Expensive // + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.Beryllium.getMolten(16), Materials.Deuterium.getGas(375)) + .fluidOutputs(Materials.Nitrogen.getPlasma(125)) + .duration(16 * TICKS) + .eut(16384) + .metadata(FUSION_THRESHOLD, 180000000) + .addTo(sFusionRecipes); // FT1+ Expensive // GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.Silicon.getMolten(16), Materials.Magnesium.getMolten(16)) - .fluidOutputs(Materials.Iron.getPlasma(144)) - .duration(1 * SECONDS + 12 * TICKS) - .eut(8192) - .metadata(FUSION_THRESHOLD, 360000000) - .addTo(sFusionRecipes); // FT1++ Cheap // + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.Silicon.getMolten(16), Materials.Magnesium.getMolten(16)) + .fluidOutputs(Materials.Iron.getPlasma(144)) + .duration(1 * SECONDS + 12 * TICKS) + .eut(8192) + .metadata(FUSION_THRESHOLD, 360000000) + .addTo(sFusionRecipes); // FT1++ Cheap // GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.Potassium.getMolten(16), Materials.Fluorine.getGas(144)) - .fluidOutputs(Materials.Nickel.getPlasma(144)) - .duration(16 * TICKS) - .eut(TierEU.RECIPE_LuV) - .metadata(FUSION_THRESHOLD, 480000000) - .addTo(sFusionRecipes); // FT1++ Expensive // + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.Potassium.getMolten(16), Materials.Fluorine.getGas(144)) + .fluidOutputs(Materials.Nickel.getPlasma(144)) + .duration(16 * TICKS) + .eut(TierEU.RECIPE_LuV) + .metadata(FUSION_THRESHOLD, 480000000) + .addTo(sFusionRecipes); // FT1++ Expensive // GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.Beryllium.getMolten(16), Materials.Tungsten.getMolten(16)) - .fluidOutputs(Materials.Platinum.getMolten(16)) - .duration(1 * SECONDS + 12 * TICKS) - .eut(TierEU.RECIPE_LuV) - .metadata(FUSION_THRESHOLD, 150000000) - .addTo(sFusionRecipes); // FT1 - utility + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.Beryllium.getMolten(16), Materials.Tungsten.getMolten(16)) + .fluidOutputs(Materials.Platinum.getMolten(16)) + .duration(1 * SECONDS + 12 * TICKS) + .eut(TierEU.RECIPE_LuV) + .metadata(FUSION_THRESHOLD, 150000000) + .addTo(sFusionRecipes); // FT1 - utility GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.Neodymium.getMolten(16), Materials.Hydrogen.getGas(48)) - .fluidOutputs(Materials.Europium.getMolten(16)) - .duration(1 * SECONDS + 12 * TICKS) - .eut(24576) - .metadata(FUSION_THRESHOLD, 150000000) - .addTo(sFusionRecipes); // FT1 - utility + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.Neodymium.getMolten(16), Materials.Hydrogen.getGas(48)) + .fluidOutputs(Materials.Europium.getMolten(16)) + .duration(1 * SECONDS + 12 * TICKS) + .eut(24576) + .metadata(FUSION_THRESHOLD, 150000000) + .addTo(sFusionRecipes); // FT1 - utility GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.Lutetium.getMolten(16), Materials.Chrome.getMolten(16)) - .fluidOutputs(Materials.Americium.getMolten(16)) - .duration(4 * SECONDS + 16 * TICKS) - .eut(49152) - .metadata(FUSION_THRESHOLD, 200000000) - .addTo(sFusionRecipes); // FT2 - utility + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.Lutetium.getMolten(16), Materials.Chrome.getMolten(16)) + .fluidOutputs(Materials.Americium.getMolten(16)) + .duration(4 * SECONDS + 16 * TICKS) + .eut(49152) + .metadata(FUSION_THRESHOLD, 200000000) + .addTo(sFusionRecipes); // FT2 - utility GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.Plutonium.getMolten(16), Materials.Thorium.getMolten(16)) - .fluidOutputs(Materials.Naquadah.getMolten(16)) - .duration(3 * SECONDS + 4 * TICKS) - .eut(TierEU.RECIPE_LuV) - .metadata(FUSION_THRESHOLD, 300000000) - .addTo(sFusionRecipes); // FT1+ - utility + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.Plutonium.getMolten(16), Materials.Thorium.getMolten(16)) + .fluidOutputs(Materials.Naquadah.getMolten(16)) + .duration(3 * SECONDS + 4 * TICKS) + .eut(TierEU.RECIPE_LuV) + .metadata(FUSION_THRESHOLD, 300000000) + .addTo(sFusionRecipes); // FT1+ - utility GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.Americium.getMolten(144), Materials.Naquadria.getMolten(144)) - .fluidOutputs(Materials.Neutronium.getMolten(144)) - .duration(12 * SECONDS) - .eut(TierEU.RECIPE_ZPM) - .metadata(FUSION_THRESHOLD, 640000000) - .addTo(sFusionRecipes); // FT3 - utility + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.Americium.getMolten(144), Materials.Naquadria.getMolten(144)) + .fluidOutputs(Materials.Neutronium.getMolten(144)) + .duration(12 * SECONDS) + .eut(TierEU.RECIPE_ZPM) + .metadata(FUSION_THRESHOLD, 640000000) + .addTo(sFusionRecipes); // FT3 - utility GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.Glowstone.getMolten(16), Materials.Helium.getPlasma(4)) - .fluidOutputs(Materials.Sunnarium.getMolten(16)) - .duration(1 * SECONDS + 12 * TICKS) - .eut(TierEU.RECIPE_IV) - .metadata(FUSION_THRESHOLD, 40000000) - .addTo(sFusionRecipes); // Mark 1 Expensive - // // + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.Glowstone.getMolten(16), Materials.Helium.getPlasma(4)) + .fluidOutputs(Materials.Sunnarium.getMolten(16)) + .duration(1 * SECONDS + 12 * TICKS) + .eut(TierEU.RECIPE_IV) + .metadata(FUSION_THRESHOLD, 40000000) + .addTo(sFusionRecipes); // Mark 1 Expensive + // // GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.Tungsten.getMolten(16), Materials.Helium.getGas(16)) - .fluidOutputs(Materials.Osmium.getMolten(16)) - .duration(12 * SECONDS + 16 * TICKS) - .eut(24578) - .metadata(FUSION_THRESHOLD, 150000000) - .addTo(sFusionRecipes); // FT1 - utility + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.Tungsten.getMolten(16), Materials.Helium.getGas(16)) + .fluidOutputs(Materials.Osmium.getMolten(16)) + .duration(12 * SECONDS + 16 * TICKS) + .eut(24578) + .metadata(FUSION_THRESHOLD, 150000000) + .addTo(sFusionRecipes); // FT1 - utility GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.Manganese.getMolten(16), Materials.Hydrogen.getGas(16)) - .fluidOutputs(Materials.Iron.getMolten(16)) - .duration(3 * SECONDS + 4 * TICKS) - .eut(8192) - .metadata(FUSION_THRESHOLD, 120000000) - .addTo(sFusionRecipes); // FT1 - utility + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.Manganese.getMolten(16), Materials.Hydrogen.getGas(16)) + .fluidOutputs(Materials.Iron.getMolten(16)) + .duration(3 * SECONDS + 4 * TICKS) + .eut(8192) + .metadata(FUSION_THRESHOLD, 120000000) + .addTo(sFusionRecipes); // FT1 - utility GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.Magnesium.getMolten(128), Materials.Oxygen.getGas(128)) - .fluidOutputs(Materials.Calcium.getPlasma(16)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(8192) - .metadata(FUSION_THRESHOLD, 120000000) - .addTo(sFusionRecipes); // + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.Magnesium.getMolten(128), Materials.Oxygen.getGas(128)) + .fluidOutputs(Materials.Calcium.getPlasma(16)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(8192) + .metadata(FUSION_THRESHOLD, 120000000) + .addTo(sFusionRecipes); // GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.Mercury.getFluid(16), Materials.Magnesium.getMolten(16)) - .fluidOutputs(Materials.Uranium.getMolten(16)) - .duration(3 * SECONDS + 4 * TICKS) - .eut(49152) - .metadata(FUSION_THRESHOLD, 240000000) - .addTo(sFusionRecipes); // FT2 - utility + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.Mercury.getFluid(16), Materials.Magnesium.getMolten(16)) + .fluidOutputs(Materials.Uranium.getMolten(16)) + .duration(3 * SECONDS + 4 * TICKS) + .eut(49152) + .metadata(FUSION_THRESHOLD, 240000000) + .addTo(sFusionRecipes); // FT2 - utility GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.Gold.getMolten(16), Materials.Aluminium.getMolten(16)) - .fluidOutputs(Materials.Uranium.getMolten(16)) - .duration(3 * SECONDS + 4 * TICKS) - .eut(49152) - .metadata(FUSION_THRESHOLD, 240000000) - .addTo(sFusionRecipes); // FT2 - utility + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.Gold.getMolten(16), Materials.Aluminium.getMolten(16)) + .fluidOutputs(Materials.Uranium.getMolten(16)) + .duration(3 * SECONDS + 4 * TICKS) + .eut(49152) + .metadata(FUSION_THRESHOLD, 240000000) + .addTo(sFusionRecipes); // FT2 - utility GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.Uranium.getMolten(16), Materials.Helium.getGas(16)) - .fluidOutputs(Materials.Plutonium.getMolten(16)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(49152) - .metadata(FUSION_THRESHOLD, 480000000) - .addTo(sFusionRecipes); // FT2+ - utility + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.Uranium.getMolten(16), Materials.Helium.getGas(16)) + .fluidOutputs(Materials.Plutonium.getMolten(16)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(49152) + .metadata(FUSION_THRESHOLD, 480000000) + .addTo(sFusionRecipes); // FT2+ - utility GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.Vanadium.getMolten(16), Materials.Hydrogen.getGas(125)) - .fluidOutputs(Materials.Chrome.getMolten(16)) - .duration(3 * SECONDS + 4 * TICKS) - .eut(24576) - .metadata(FUSION_THRESHOLD, 140000000) - .addTo(sFusionRecipes); // FT1 - utility + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.Vanadium.getMolten(16), Materials.Hydrogen.getGas(125)) + .fluidOutputs(Materials.Chrome.getMolten(16)) + .duration(3 * SECONDS + 4 * TICKS) + .eut(24576) + .metadata(FUSION_THRESHOLD, 140000000) + .addTo(sFusionRecipes); // FT1 - utility GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.Gallium.getMolten(16), Materials.Radon.getGas(125)) - .fluidOutputs(Materials.Duranium.getMolten(16)) - .duration(3 * SECONDS + 4 * TICKS) - .eut(16384) - .metadata(FUSION_THRESHOLD, 140000000) - .addTo(sFusionRecipes); + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.Gallium.getMolten(16), Materials.Radon.getGas(125)) + .fluidOutputs(Materials.Duranium.getMolten(16)) + .duration(3 * SECONDS + 4 * TICKS) + .eut(16384) + .metadata(FUSION_THRESHOLD, 140000000) + .addTo(sFusionRecipes); GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.Titanium.getMolten(48), Materials.Duranium.getMolten(32)) - .fluidOutputs(Materials.Tritanium.getMolten(16)) - .duration(3 * SECONDS + 4 * TICKS) - .eut(TierEU.RECIPE_LuV) - .metadata(FUSION_THRESHOLD, 200000000) - .addTo(sFusionRecipes); + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.Titanium.getMolten(48), Materials.Duranium.getMolten(32)) + .fluidOutputs(Materials.Tritanium.getMolten(16)) + .duration(3 * SECONDS + 4 * TICKS) + .eut(TierEU.RECIPE_LuV) + .metadata(FUSION_THRESHOLD, 200000000) + .addTo(sFusionRecipes); GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.Tantalum.getMolten(16), Materials.Tritium.getGas(16)) - .fluidOutputs(Materials.Tungsten.getMolten(16)) - .duration(16 * TICKS) - .eut(24576) - .metadata(FUSION_THRESHOLD, 200000000) - .addTo(sFusionRecipes); // + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.Tantalum.getMolten(16), Materials.Tritium.getGas(16)) + .fluidOutputs(Materials.Tungsten.getMolten(16)) + .duration(16 * TICKS) + .eut(24576) + .metadata(FUSION_THRESHOLD, 200000000) + .addTo(sFusionRecipes); // GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.Silver.getMolten(16), Materials.Lithium.getMolten(16)) - .fluidOutputs(Materials.Indium.getMolten(16)) - .duration(1 * SECONDS + 12 * TICKS) - .eut(24576) - .metadata(FUSION_THRESHOLD, 380000000) - .addTo(sFusionRecipes); // + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.Silver.getMolten(16), Materials.Lithium.getMolten(16)) + .fluidOutputs(Materials.Indium.getMolten(16)) + .duration(1 * SECONDS + 12 * TICKS) + .eut(24576) + .metadata(FUSION_THRESHOLD, 380000000) + .addTo(sFusionRecipes); // GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.Copper.getMolten(72), Materials.Tritium.getGas(250)) - .fluidOutputs(Materials.Zinc.getPlasma(72)) - .duration(16 * TICKS) - .eut(49152) - .metadata(FUSION_THRESHOLD, 180000000) - .addTo(sFusionRecipes); // FT2 - farmable + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.Copper.getMolten(72), Materials.Tritium.getGas(250)) + .fluidOutputs(Materials.Zinc.getPlasma(72)) + .duration(16 * TICKS) + .eut(49152) + .metadata(FUSION_THRESHOLD, 180000000) + .addTo(sFusionRecipes); // FT2 - farmable GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.Cobalt.getMolten(144), Materials.Silicon.getMolten(144)) - .fluidOutputs(Materials.Niobium.getPlasma(144)) - .duration(16 * TICKS) - .eut(49152) - .metadata(FUSION_THRESHOLD, 200000000) - .addTo(sFusionRecipes); // FT2 - utility + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.Cobalt.getMolten(144), Materials.Silicon.getMolten(144)) + .fluidOutputs(Materials.Niobium.getPlasma(144)) + .duration(16 * TICKS) + .eut(49152) + .metadata(FUSION_THRESHOLD, 200000000) + .addTo(sFusionRecipes); // FT2 - utility GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.Gold.getMolten(144), Materials.Arsenic.getMolten(144)) - .fluidOutputs(Materials.Silver.getPlasma(144)) - .duration(16 * TICKS) - .eut(49152) - .metadata(FUSION_THRESHOLD, 350000000) - .addTo(sFusionRecipes); // FT2+ + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.Gold.getMolten(144), Materials.Arsenic.getMolten(144)) + .fluidOutputs(Materials.Silver.getPlasma(144)) + .duration(16 * TICKS) + .eut(49152) + .metadata(FUSION_THRESHOLD, 350000000) + .addTo(sFusionRecipes); // FT2+ GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.Silver.getMolten(144), Materials.Helium_3.getGas(375)) - .fluidOutputs(Materials.Tin.getPlasma(144)) - .duration(16 * TICKS) - .eut(49152) - .metadata(FUSION_THRESHOLD, 280000000) - .addTo(sFusionRecipes); // FT2 + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.Silver.getMolten(144), Materials.Helium_3.getGas(375)) + .fluidOutputs(Materials.Tin.getPlasma(144)) + .duration(16 * TICKS) + .eut(49152) + .metadata(FUSION_THRESHOLD, 280000000) + .addTo(sFusionRecipes); // FT2 GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.Tantalum.getMolten(144), Materials.Zinc.getPlasma(72)) - .fluidOutputs(Materials.Bismuth.getPlasma(144)) - .duration(16 * TICKS) - .eut(98304) - .metadata(FUSION_THRESHOLD, 350000000) - .addTo(sFusionRecipes); // FT3 - farmable + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.Tantalum.getMolten(144), Materials.Zinc.getPlasma(72)) + .fluidOutputs(Materials.Bismuth.getPlasma(144)) + .duration(16 * TICKS) + .eut(98304) + .metadata(FUSION_THRESHOLD, 350000000) + .addTo(sFusionRecipes); // FT3 - farmable GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.Iridium.getMolten(144), Materials.Fluorine.getGas(500)) - .fluidOutputs(Materials.Radon.getPlasma(144)) - .duration(1 * SECONDS + 12 * TICKS) - .eut(98304) - .metadata(FUSION_THRESHOLD, 450000000) - .addTo(sFusionRecipes); // FT3 - utility + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.Iridium.getMolten(144), Materials.Fluorine.getGas(500)) + .fluidOutputs(Materials.Radon.getPlasma(144)) + .duration(1 * SECONDS + 12 * TICKS) + .eut(98304) + .metadata(FUSION_THRESHOLD, 450000000) + .addTo(sFusionRecipes); // FT3 - utility GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.Plutonium241.getMolten(144), Materials.Hydrogen.getGas(2000)) - .fluidOutputs(Materials.Americium.getPlasma(144)) - .duration(3 * SECONDS + 4 * TICKS) - .eut(98304) - .metadata(FUSION_THRESHOLD, 500000000) - .addTo(sFusionRecipes); // FT3 + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.Plutonium241.getMolten(144), Materials.Hydrogen.getGas(2000)) + .fluidOutputs(Materials.Americium.getPlasma(144)) + .duration(3 * SECONDS + 4 * TICKS) + .eut(98304) + .metadata(FUSION_THRESHOLD, 500000000) + .addTo(sFusionRecipes); // FT3 } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/ImplosionCompressorRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/ImplosionCompressorRecipes.java index f9d85db610..b44e01d2e9 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/ImplosionCompressorRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/ImplosionCompressorRecipes.java @@ -22,36 +22,36 @@ public class ImplosionCompressorRecipes implements Runnable { @Override public void run() { addImplosionRecipe( - ItemList.IC2_Compressed_Coal_Chunk.get(1L), - 8, - new ItemStack[] { ItemList.IC2_Industrial_Diamond.get(1L), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 4L) }); + ItemList.IC2_Compressed_Coal_Chunk.get(1L), + 8, + new ItemStack[] { ItemList.IC2_Industrial_Diamond.get(1L), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 4L) }); addImplosionRecipe( - ItemList.Ingot_IridiumAlloy.get(1L), - 8, - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plateAlloy, Materials.Iridium, 1L), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 4L) }); + ItemList.Ingot_IridiumAlloy.get(1L), + 8, + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plateAlloy, Materials.Iridium, 1L), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 4L) }); if (GalacticraftMars.isModLoaded()) { addImplosionRecipe( - ItemList.Ingot_Heavy1.get(1L), - 8, - new ItemStack[] { getModItem(GalacticraftCore.ID, "item.heavyPlating", 1L), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.StainlessSteel, 1L) }); + ItemList.Ingot_Heavy1.get(1L), + 8, + new ItemStack[] { getModItem(GalacticraftCore.ID, "item.heavyPlating", 1L), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.StainlessSteel, 1L) }); addImplosionRecipe( - ItemList.Ingot_Heavy2.get(1L), - 16, - new ItemStack[] { getModItem(GalacticraftMars.ID, "item.null", 1L, 3), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.TungstenSteel, 2L) }); + ItemList.Ingot_Heavy2.get(1L), + 16, + new ItemStack[] { getModItem(GalacticraftMars.ID, "item.null", 1L, 3), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.TungstenSteel, 2L) }); addImplosionRecipe( - ItemList.Ingot_Heavy3.get(1L), - 24, - new ItemStack[] { getModItem(GalacticraftMars.ID, "item.itemBasicAsteroids", 1L), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Platinum, 3L) }); + ItemList.Ingot_Heavy3.get(1L), + 24, + new ItemStack[] { getModItem(GalacticraftMars.ID, "item.itemBasicAsteroids", 1L), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Platinum, 3L) }); } } @@ -65,42 +65,42 @@ public class ImplosionCompressorRecipes implements Runnable { if (tGunpowder < 65) { GT_Values.RA.stdBuilder() - .itemInputs(input, ItemList.Block_Powderbarrel.get(tGunpowder)) - .itemOutputs(outputs) - .noFluidInputs() - .noFluidOutputs() - .duration(1 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sImplosionRecipes); + .itemInputs(input, ItemList.Block_Powderbarrel.get(tGunpowder)) + .itemOutputs(outputs) + .noFluidInputs() + .noFluidOutputs() + .duration(1 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sImplosionRecipes); } if (tDynamite < 17) { GT_Values.RA.stdBuilder() - .itemInputs(input, GT_ModHandler.getIC2Item("dynamite", tDynamite, null)) - .itemOutputs(outputs) - .noFluidInputs() - .noFluidOutputs() - .duration(1 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sImplosionRecipes); + .itemInputs(input, GT_ModHandler.getIC2Item("dynamite", tDynamite, null)) + .itemOutputs(outputs) + .noFluidInputs() + .noFluidOutputs() + .duration(1 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sImplosionRecipes); } GT_Values.RA.stdBuilder() - .itemInputs(input, new ItemStack(Blocks.tnt, tTNT)) - .itemOutputs(outputs) - .noFluidInputs() - .noFluidOutputs() - .duration(1 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sImplosionRecipes); + .itemInputs(input, new ItemStack(Blocks.tnt, tTNT)) + .itemOutputs(outputs) + .noFluidInputs() + .noFluidOutputs() + .duration(1 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sImplosionRecipes); GT_Values.RA.stdBuilder() - .itemInputs(input, GT_ModHandler.getIC2Item("industrialTnt", tITNT)) - .itemOutputs(outputs) - .noFluidInputs() - .noFluidOutputs() - .duration(1 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sImplosionRecipes); + .itemInputs(input, GT_ModHandler.getIC2Item("industrialTnt", tITNT)) + .itemOutputs(outputs) + .noFluidInputs() + .noFluidOutputs() + .duration(1 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sImplosionRecipes); } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/LaserEngraverRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/LaserEngraverRecipes.java index 6791780c0e..7808656a90 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/LaserEngraverRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/LaserEngraverRecipes.java @@ -14,44 +14,44 @@ public class LaserEngraverRecipes implements Runnable { public void run() { GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.DimensionallyTranscendentCrudeCatalyst.getFluid(1000)) - .fluidOutputs(Materials.ExcitedDTCC.getFluid(1000)) - .requiresCleanRoom() - .duration(41 * MINUTES + 40 * SECONDS) - .eut((int) TierEU.RECIPE_ZPM) - .addTo(sLaserEngraverRecipes); + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.DimensionallyTranscendentCrudeCatalyst.getFluid(1000)) + .fluidOutputs(Materials.ExcitedDTCC.getFluid(1000)) + .requiresCleanRoom() + .duration(41 * MINUTES + 40 * SECONDS) + .eut((int) TierEU.RECIPE_ZPM) + .addTo(sLaserEngraverRecipes); GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.DimensionallyTranscendentProsaicCatalyst.getFluid(1000)) - .fluidOutputs(Materials.ExcitedDTPC.getFluid(1000)) - .requiresCleanRoom() - .duration(41 * MINUTES + 40 * SECONDS) - .eut((int) TierEU.RECIPE_UV) - .addTo(sLaserEngraverRecipes); + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.DimensionallyTranscendentProsaicCatalyst.getFluid(1000)) + .fluidOutputs(Materials.ExcitedDTPC.getFluid(1000)) + .requiresCleanRoom() + .duration(41 * MINUTES + 40 * SECONDS) + .eut((int) TierEU.RECIPE_UV) + .addTo(sLaserEngraverRecipes); GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.DimensionallyTranscendentResplendentCatalyst.getFluid(1000)) - .fluidOutputs(Materials.ExcitedDTRC.getFluid(1000)) - .requiresCleanRoom() - .duration(41 * MINUTES + 40 * SECONDS) - .eut((int) TierEU.RECIPE_UHV) - .addTo(sLaserEngraverRecipes); + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.DimensionallyTranscendentResplendentCatalyst.getFluid(1000)) + .fluidOutputs(Materials.ExcitedDTRC.getFluid(1000)) + .requiresCleanRoom() + .duration(41 * MINUTES + 40 * SECONDS) + .eut((int) TierEU.RECIPE_UHV) + .addTo(sLaserEngraverRecipes); GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.DimensionallyTranscendentExoticCatalyst.getFluid(1000)) - .fluidOutputs(Materials.ExcitedDTEC.getFluid(1000)) - .requiresCleanRoom() - .duration(41 * MINUTES + 40 * SECONDS) - .eut((int) TierEU.RECIPE_UEV) - .addTo(sLaserEngraverRecipes); + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.DimensionallyTranscendentExoticCatalyst.getFluid(1000)) + .fluidOutputs(Materials.ExcitedDTEC.getFluid(1000)) + .requiresCleanRoom() + .duration(41 * MINUTES + 40 * SECONDS) + .eut((int) TierEU.RECIPE_UEV) + .addTo(sLaserEngraverRecipes); } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/LatheRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/LatheRecipes.java index 58e871713a..9e51df0296 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/LatheRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/LatheRecipes.java @@ -20,25 +20,25 @@ public class LatheRecipes implements Runnable { @Override public void run() { GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.wooden_slab, 1, GT_Values.W)) - .itemOutputs( - new ItemStack(Items.bowl, 1), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Wood, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(8) - .addTo(sLatheRecipes); + .itemInputs(new ItemStack(Blocks.wooden_slab, 1, GT_Values.W)) + .itemOutputs( + new ItemStack(Items.bowl, 1), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Wood, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(8) + .addTo(sLatheRecipes); GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Forestry.ID, "slabs", 1L, GT_Values.W)) - .itemOutputs( - new ItemStack(Items.bowl, 1), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Wood, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(8) - .addTo(sLatheRecipes); + .itemInputs(getModItem(Forestry.ID, "slabs", 1L, GT_Values.W)) + .itemOutputs( + new ItemStack(Items.bowl, 1), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Wood, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(8) + .addTo(sLatheRecipes); } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/MatterAmplifierRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/MatterAmplifierRecipes.java index 9b4bcf87d9..75587d1397 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/MatterAmplifierRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/MatterAmplifierRecipes.java @@ -13,21 +13,21 @@ public class MatterAmplifierRecipes implements Runnable { @Override public void run() { GT_Values.RA.stdBuilder() - .itemInputs(ItemList.IC2_Scrap.get(9L)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.UUAmplifier.getFluid(1)) - .duration(9 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAmplifiers); + .itemInputs(ItemList.IC2_Scrap.get(9L)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.UUAmplifier.getFluid(1)) + .duration(9 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAmplifiers); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.IC2_Scrapbox.get(1L)) - .noItemOutputs() - .noFluidInputs() - .fluidOutputs(Materials.UUAmplifier.getFluid(1)) - .duration(9 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sAmplifiers); + .itemInputs(ItemList.IC2_Scrapbox.get(1L)) + .noItemOutputs() + .noFluidInputs() + .fluidOutputs(Materials.UUAmplifier.getFluid(1)) + .duration(9 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sAmplifiers); } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/MixerRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/MixerRecipes.java index 02828bf884..50d370c8ca 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/MixerRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/MixerRecipes.java @@ -43,1846 +43,1764 @@ public class MixerRecipes implements Runnable { registerSingleBlockAndMulti(); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.EnderPearl, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Blaze, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_OreDictUnificator.getDust(Materials.EnderEye, OrePrefixes.dust.mMaterialAmount)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(48) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gold, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silver, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs( - GT_OreDictUnificator.getDust(Materials.Electrum, 2L * OrePrefixes.dust.mMaterialAmount)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(8) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iron, 2), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Nickel, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_OreDictUnificator.getDust(Materials.Invar, 3L * OrePrefixes.dust.mMaterialAmount)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(8) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iron, 4), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Invar, 3), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Manganese, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Chrome, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs( - GT_OreDictUnificator.getDust( - Materials.StainlessSteel, - 9L * OrePrefixes.dust.mMaterialAmount)) - .noFluidInputs() - .noFluidOutputs() - .duration(45 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iron, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Aluminium, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Chrome, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_OreDictUnificator.getDust(Materials.Kanthal, 3L * OrePrefixes.dust.mMaterialAmount)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Copper, 3), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Zinc, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_OreDictUnificator.getDust(Materials.Brass, 4L * OrePrefixes.dust.mMaterialAmount)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS) - .eut(8) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Copper, 3), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Tin, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_OreDictUnificator.getDust(Materials.Bronze, 4L * OrePrefixes.dust.mMaterialAmount)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS) - .eut(8) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Copper, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Nickel, 1), - GT_Utility.getIntegratedCircuit(3)) - .itemOutputs( - GT_OreDictUnificator.getDust(Materials.Cupronickel, 2L * OrePrefixes.dust.mMaterialAmount)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(24) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Copper, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silver, 4), - GT_Utility.getIntegratedCircuit(4)) - .itemOutputs( - GT_OreDictUnificator.getDust( - Materials.SterlingSilver, - 5L * OrePrefixes.dust.mMaterialAmount)) - .noFluidInputs() - .noFluidOutputs() - .duration(25 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Copper, 3), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Electrum, 2), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs( - GT_OreDictUnificator.getDust(Materials.BlackBronze, 5L * OrePrefixes.dust.mMaterialAmount)) - .noFluidInputs() - .noFluidOutputs() - .duration(25 * SECONDS) - .eut(8) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Bismuth, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Brass, 4), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs( - GT_OreDictUnificator.getDust( - Materials.BismuthBronze, - 5L * OrePrefixes.dust.mMaterialAmount)) - .noFluidInputs() - .noFluidOutputs() - .duration(25 * SECONDS) - .eut(8) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.BlackBronze, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Nickel, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Steel, 3), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs( - GT_OreDictUnificator.getDust(Materials.BlackSteel, 5L * OrePrefixes.dust.mMaterialAmount)) - .noFluidInputs() - .noFluidOutputs() - .duration(25 * SECONDS) - .eut(8) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SterlingSilver, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.BismuthBronze, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.BlackSteel, 4), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Steel, 2), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs( - GT_OreDictUnificator.getDust(Materials.RedSteel, 8L * OrePrefixes.dust.mMaterialAmount)) - .noFluidInputs() - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(8) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.RoseGold, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Brass, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.BlackSteel, 4), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Steel, 2), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs( - GT_OreDictUnificator.getDust(Materials.BlueSteel, 8L * OrePrefixes.dust.mMaterialAmount)) - .noFluidInputs() - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(8) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Copper, 3), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gold, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silver, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Nickel, 5), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Steel, 15), - GT_Utility.getIntegratedCircuit(14)) - .itemOutputs( - GT_OreDictUnificator.getDust(Materials.BlackSteel, 25L * OrePrefixes.dust.mMaterialAmount)) - .noFluidInputs() - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Copper, 4), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silver, 4), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Bismuth, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Zinc, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.BlackSteel, 20), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Steel, 10), - GT_Utility.getIntegratedCircuit(15)) - .itemOutputs( - GT_OreDictUnificator.getDust(Materials.RedSteel, 40L * OrePrefixes.dust.mMaterialAmount)) - .noFluidInputs() - .noFluidOutputs() - .duration(60 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Copper, 19), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gold, 16), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Zinc, 5), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.BlackSteel, 64), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.BlackSteel, 16), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Steel, 40), - GT_Utility.getIntegratedCircuit(16)) - .itemOutputs( - GT_OreDictUnificator.getDust(Materials.BlueSteel, 64L * OrePrefixes.dust.mMaterialAmount), - GT_OreDictUnificator.getDust(Materials.BlueSteel, 64L * OrePrefixes.dust.mMaterialAmount), - GT_OreDictUnificator.getDust(Materials.BlueSteel, 32L * OrePrefixes.dust.mMaterialAmount)) - .noFluidInputs() - .noFluidOutputs() - .duration(3 * MINUTES) - .eut(TierEU.RECIPE_HV) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cobalt, 5), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Chrome, 2), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Nickel, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Molybdenum, 1), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(GT_OreDictUnificator.getDust(Materials.Ultimet, 9L * OrePrefixes.dust.mMaterialAmount)) - .noFluidInputs() - .noFluidOutputs() - .duration(45 * SECONDS) - .eut(500) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Brass, 7), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Aluminium, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cobalt, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs( - GT_OreDictUnificator.getDust(Materials.CobaltBrass, 9L * OrePrefixes.dust.mMaterialAmount)) - .noFluidInputs() - .noFluidOutputs() - .duration(45 * SECONDS) - .eut(8) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Saltpeter, 2), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Coal, 3), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs( - GT_OreDictUnificator.getDust(Materials.Gunpowder, 6L * OrePrefixes.dust.mMaterialAmount)) - .noFluidInputs() - .noFluidOutputs() - .duration(30 * SECONDS) - .eut(8) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Saltpeter, 2), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Charcoal, 3), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs( - GT_OreDictUnificator.getDust(Materials.Gunpowder, 6L * OrePrefixes.dust.mMaterialAmount)) - .noFluidInputs() - .noFluidOutputs() - .duration(30 * SECONDS) - .eut(8) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Saltpeter, 2), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Carbon, 3), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs( - GT_OreDictUnificator.getDust(Materials.Gunpowder, 6L * OrePrefixes.dust.mMaterialAmount)) - .noFluidInputs() - .noFluidOutputs() - .duration(30 * SECONDS) - .eut(8) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Indium, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gallium, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Phosphorus, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs( - GT_OreDictUnificator.getDust( - Materials.IndiumGalliumPhosphide, - 3L * OrePrefixes.dust.mMaterialAmount)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(8) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Brick, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Clay, 1)) - .itemOutputs( - GT_OreDictUnificator.getDust(Materials.Fireclay, 2L * OrePrefixes.dust.mMaterialAmount)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(8) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Nickel, 4), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Chrome, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs( - GT_OreDictUnificator.getDust(Materials.Nichrome, 5L * OrePrefixes.dust.mMaterialAmount)) - .noFluidInputs() - .noFluidOutputs() - .duration(25 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Osmium, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iridium, 3), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs( - GT_OreDictUnificator.getDust(Materials.Osmiridium, 4L * OrePrefixes.dust.mMaterialAmount)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS) - .eut(2000) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Niobium, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Titanium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs( - GT_OreDictUnificator.getDust( - Materials.NiobiumTitanium, - 2L * OrePrefixes.dust.mMaterialAmount)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(2000) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Vanadium, 3), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gallium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs( - GT_OreDictUnificator.getDust( - Materials.VanadiumGallium, - 4L * OrePrefixes.dust.mMaterialAmount)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS) - .eut(2000) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Tungsten, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Carbon, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs( - GT_OreDictUnificator.getDust( - Materials.TungstenCarbide, - 2L * OrePrefixes.dust.mMaterialAmount)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(500) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Tungsten, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Steel, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs( - GT_OreDictUnificator.getDust( - Materials.TungstenSteel, - 2L * OrePrefixes.dust.mMaterialAmount)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(TierEU.RECIPE_EV) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Titanium, 3), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Platinum, 3), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Vanadium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_OreDictUnificator.getDust(Materials.TPV, 7L * OrePrefixes.dust.mMaterialAmount)) - .noFluidInputs() - .noFluidOutputs() - .duration(8 * SECONDS + 15 * TICKS) - .eut(TierEU.RECIPE_EV) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.TungstenSteel, 5), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Chrome, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Molybdenum, 2), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Vanadium, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_OreDictUnificator.getDust(Materials.HSSG, 9L * OrePrefixes.dust.mMaterialAmount)) - .noFluidInputs() - .noFluidOutputs() - .duration(30 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.HSSG, 6), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cobalt, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Manganese, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silicon, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_OreDictUnificator.getDust(Materials.HSSE, 9L * OrePrefixes.dust.mMaterialAmount)) - .noFluidInputs() - .noFluidOutputs() - .duration(35 * SECONDS) - .eut(4096) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.HSSG, 6), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iridium, 2), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Osmium, 1), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(GT_OreDictUnificator.getDust(Materials.HSSS, 9L * OrePrefixes.dust.mMaterialAmount)) - .noFluidInputs() - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(TierEU.RECIPE_IV) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Nickel, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Zinc, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iron, 4)) - .itemOutputs( - GT_OreDictUnificator.getDust( - Materials.FerriteMixture, - 6L * OrePrefixes.dust.mMaterialAmount)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(8) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Boron, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glass, 7)) - .itemOutputs( - GT_OreDictUnificator.getDust( - Materials.BorosilicateGlass, - 8L * OrePrefixes.dust.mMaterialAmount)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(8) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - new ItemStack(Items.rotten_flesh, 1, 0), - new ItemStack(Items.fermented_spider_eye, 1, 0), - ItemList.IC2_Scrap.get(1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.MeatRaw, 1)) - .itemOutputs(ItemList.Food_Chum.get(4)) - .fluidInputs(getFluidStack("potion.purpledrink", 750)) - .fluidOutputs(getFluidStack("sludge", 1000)) - .duration(6 * SECONDS + 8 * TICKS) - .eut(24) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wheat, 1)) - .itemOutputs(ItemList.Food_Dough.get(2)) - .fluidInputs(Materials.Water.getFluid(1000)) - .noFluidOutputs() - .duration(1 * SECONDS + 12 * TICKS) - .eut(8) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Chili, 1), - ItemList.Food_PotatoChips.get(1)) - .itemOutputs(ItemList.Food_ChiliChips.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(1 * SECONDS + 12 * TICKS) - .eut(8) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Redstone, 5), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Ruby, 4)) - .itemOutputs(ItemList.IC2_Energium_Dust.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 5), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ruby, 4)) - .itemOutputs(ItemList.IC2_Energium_Dust.get(9)) - .noFluidInputs() - .noFluidOutputs() - .duration(30 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sugar, 1), - new ItemStack(Blocks.brown_mushroom, 1), - new ItemStack(Items.spider_eye, 1)) - .itemOutputs(new ItemStack(Items.fermented_spider_eye, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(8) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Gold, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iron, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.LiveRoot, 1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.IronWood, 2)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(8) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gold, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iron, 9), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.LiveRoot, 9)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.IronWood, 18)) - .noFluidInputs() - .noFluidOutputs() - .duration(45 * SECONDS) - .eut(8) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1), - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.NetherQuartz, 1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Fluix, 2)) - .fluidInputs(Materials.Water.getFluid(500)) - .noFluidOutputs() - .duration(20 * TICKS) - .eut(16) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1), - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.NetherQuartz, 1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Fluix, 2)) - .fluidInputs(GT_ModHandler.getDistilledWater(500)) - .noFluidOutputs() - .duration(20 * TICKS) - .eut(16) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.IC2_Fertilizer.get(1), - new ItemStack(Blocks.dirt, 8, 32767), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(getModItem(Forestry.ID, "soil", 8L, 0)) - .fluidInputs(Materials.Water.getFluid(1000)) - .noFluidOutputs() - .duration(3 * SECONDS + 4 * TICKS) - .eut(16) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.FR_Fertilizer.get(1), - new ItemStack(Blocks.dirt, 8, 32767), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(getModItem(Forestry.ID, "soil", 8L, 0)) - .fluidInputs(Materials.Water.getFluid(1000)) - .noFluidOutputs() - .duration(3 * SECONDS + 4 * TICKS) - .eut(16) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.FR_Compost.get(1), - new ItemStack(Blocks.dirt, 8, 32767), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(getModItem(Forestry.ID, "soil", 8L, 0)) - .fluidInputs(Materials.Water.getFluid(1000)) - .noFluidOutputs() - .duration(3 * SECONDS + 4 * TICKS) - .eut(16) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.FR_Mulch.get(8), - new ItemStack(Blocks.dirt, 8, 32767), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(getModItem(Forestry.ID, "soil", 8L, 0)) - .fluidInputs(Materials.Water.getFluid(1000)) - .noFluidOutputs() - .duration(3 * SECONDS + 4 * TICKS) - .eut(16) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - new ItemStack(Blocks.sand, 1, 32767), - new ItemStack(Blocks.dirt, 1, 32767), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(getModItem(Forestry.ID, "soil", 2L, 1)) - .fluidInputs(Materials.Water.getFluid(250)) - .noFluidOutputs() - .duration(16 * TICKS) - .eut(16) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.LightFuel, 5), - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.HeavyFuel, 1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Fuel, 6)) - .noFluidInputs() - .noFluidOutputs() - .duration(16 * TICKS) - .eut(TierEU.RECIPE_MV) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.LightFuel, 5), - Materials.Empty.getCells(1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Fuel, 6)) - .fluidInputs(Materials.HeavyFuel.getFluid(1000)) - .noFluidOutputs() - .duration(16 * TICKS) - .eut(TierEU.RECIPE_MV) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.HeavyFuel, 1), - Materials.Empty.getCells(5), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Fuel, 6)) - .fluidInputs(Materials.LightFuel.getFluid(5000)) - .noFluidOutputs() - .duration(16 * TICKS) - .eut(TierEU.RECIPE_MV) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.LightFuel, 5), - GT_Utility.getIntegratedCircuit(5)) - .itemOutputs(Materials.Empty.getCells(5)) - .fluidInputs(Materials.HeavyFuel.getFluid(1000)) - .fluidOutputs(Materials.Fuel.getFluid(6000)) - .duration(16 * TICKS) - .eut(TierEU.RECIPE_MV) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.HeavyFuel, 1), - GT_Utility.getIntegratedCircuit(6)) - .itemOutputs(Materials.Empty.getCells(1)) - .fluidInputs(Materials.LightFuel.getFluid(5000)) - .fluidOutputs(Materials.Fuel.getFluid(6000)) - .duration(16 * TICKS) - .eut(TierEU.RECIPE_MV) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Water, 5), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Stone, 1)) - .itemOutputs(Materials.Empty.getCells(5)) - .fluidInputs(Materials.Lubricant.getFluid(20)) - .fluidOutputs(new FluidStack(ItemList.sDrillingFluid, 5000)) - .duration(3 * SECONDS + 4 * TICKS) - .eut(16) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lapis, 1), - GT_Utility.getIntegratedCircuit(4)) - .noItemOutputs() - .fluidInputs(Materials.Water.getFluid(125)) - .fluidOutputs(getFluidStack("ic2coolant", 125)) - .duration(12 * SECONDS + 16 * TICKS) - .eut(48) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lapis, 1), - GT_Utility.getIntegratedCircuit(4)) - .noItemOutputs() - .fluidInputs(GT_ModHandler.getDistilledWater(1000)) - .fluidOutputs(getFluidStack("ic2coolant", 1000)) - .duration(12 * SECONDS + 16 * TICKS) - .eut(48) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sodium, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 4), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.SFMixture.get(4)) - .fluidInputs(Materials.AdvancedGlue.getFluid(200)) - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(16) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lithium, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 4), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.SFMixture.get(8)) - .fluidInputs(Materials.AdvancedGlue.getFluid(200)) - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(16) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Caesium, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 4), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.SFMixture.get(12)) - .fluidInputs(Materials.AdvancedGlue.getFluid(200)) - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(16) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.SFMixture.get(2), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.EnderEye, 1)) - .itemOutputs(ItemList.MSFMixture.get(4)) - .fluidInputs(Materials.Mercury.getFluid(1000)) - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(64) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.SFMixture.get(1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Blaze, 1)) - .itemOutputs(ItemList.MSFMixture.get(1)) - .fluidInputs(Materials.Mercury.getFluid(500)) - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(64) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.block, Materials.Lignite, 4), - ItemList.MSFMixture.get(24), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Diamond, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Block_MSSFUEL.get(4)) - .fluidInputs(Materials.NitroFuel.getFluid(4000)) - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.block, Materials.Charcoal, 4), - ItemList.MSFMixture.get(16), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Diamond, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Block_MSSFUEL.get(4)) - .fluidInputs(Materials.NitroFuel.getFluid(3000)) - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.block, Materials.Coal, 4), - ItemList.MSFMixture.get(8), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Diamond, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Block_MSSFUEL.get(4)) - .fluidInputs(Materials.NitroFuel.getFluid(2000)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.block, Materials.Lignite, 4), - ItemList.MSFMixture.get(24), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Diamond, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Block_MSSFUEL.get(4)) - .fluidInputs(Materials.GasolinePremium.getFluid(1600)) - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.block, Materials.Charcoal, 4), - ItemList.MSFMixture.get(16), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Diamond, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Block_MSSFUEL.get(4)) - .fluidInputs(Materials.GasolinePremium.getFluid(1200)) - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.block, Materials.Coal, 4), - ItemList.MSFMixture.get(8), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Diamond, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Block_MSSFUEL.get(4)) - .fluidInputs(Materials.GasolinePremium.getFluid(800)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMixerRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.EnderPearl, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Blaze, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.getDust(Materials.EnderEye, OrePrefixes.dust.mMaterialAmount)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(48) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gold, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silver, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.getDust(Materials.Electrum, 2L * OrePrefixes.dust.mMaterialAmount)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(8) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iron, 2), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Nickel, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.getDust(Materials.Invar, 3L * OrePrefixes.dust.mMaterialAmount)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(8) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iron, 4), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Invar, 3), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Manganese, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Chrome, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.getDust(Materials.StainlessSteel, 9L * OrePrefixes.dust.mMaterialAmount)) + .noFluidInputs() + .noFluidOutputs() + .duration(45 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iron, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Aluminium, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Chrome, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.getDust(Materials.Kanthal, 3L * OrePrefixes.dust.mMaterialAmount)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Copper, 3), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Zinc, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.getDust(Materials.Brass, 4L * OrePrefixes.dust.mMaterialAmount)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS) + .eut(8) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Copper, 3), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Tin, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.getDust(Materials.Bronze, 4L * OrePrefixes.dust.mMaterialAmount)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS) + .eut(8) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Copper, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Nickel, 1), + GT_Utility.getIntegratedCircuit(3)) + .itemOutputs(GT_OreDictUnificator.getDust(Materials.Cupronickel, 2L * OrePrefixes.dust.mMaterialAmount)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(24) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Copper, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silver, 4), + GT_Utility.getIntegratedCircuit(4)) + .itemOutputs(GT_OreDictUnificator.getDust(Materials.SterlingSilver, 5L * OrePrefixes.dust.mMaterialAmount)) + .noFluidInputs() + .noFluidOutputs() + .duration(25 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Copper, 3), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Electrum, 2), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.getDust(Materials.BlackBronze, 5L * OrePrefixes.dust.mMaterialAmount)) + .noFluidInputs() + .noFluidOutputs() + .duration(25 * SECONDS) + .eut(8) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Bismuth, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Brass, 4), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.getDust(Materials.BismuthBronze, 5L * OrePrefixes.dust.mMaterialAmount)) + .noFluidInputs() + .noFluidOutputs() + .duration(25 * SECONDS) + .eut(8) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.BlackBronze, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Nickel, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Steel, 3), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.getDust(Materials.BlackSteel, 5L * OrePrefixes.dust.mMaterialAmount)) + .noFluidInputs() + .noFluidOutputs() + .duration(25 * SECONDS) + .eut(8) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SterlingSilver, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.BismuthBronze, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.BlackSteel, 4), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Steel, 2), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.getDust(Materials.RedSteel, 8L * OrePrefixes.dust.mMaterialAmount)) + .noFluidInputs() + .noFluidOutputs() + .duration(40 * SECONDS) + .eut(8) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.RoseGold, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Brass, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.BlackSteel, 4), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Steel, 2), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.getDust(Materials.BlueSteel, 8L * OrePrefixes.dust.mMaterialAmount)) + .noFluidInputs() + .noFluidOutputs() + .duration(40 * SECONDS) + .eut(8) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Copper, 3), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gold, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silver, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Nickel, 5), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Steel, 15), + GT_Utility.getIntegratedCircuit(14)) + .itemOutputs(GT_OreDictUnificator.getDust(Materials.BlackSteel, 25L * OrePrefixes.dust.mMaterialAmount)) + .noFluidInputs() + .noFluidOutputs() + .duration(40 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Copper, 4), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silver, 4), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Bismuth, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Zinc, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.BlackSteel, 20), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Steel, 10), + GT_Utility.getIntegratedCircuit(15)) + .itemOutputs(GT_OreDictUnificator.getDust(Materials.RedSteel, 40L * OrePrefixes.dust.mMaterialAmount)) + .noFluidInputs() + .noFluidOutputs() + .duration(60 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Copper, 19), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gold, 16), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Zinc, 5), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.BlackSteel, 64), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.BlackSteel, 16), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Steel, 40), + GT_Utility.getIntegratedCircuit(16)) + .itemOutputs( + GT_OreDictUnificator.getDust(Materials.BlueSteel, 64L * OrePrefixes.dust.mMaterialAmount), + GT_OreDictUnificator.getDust(Materials.BlueSteel, 64L * OrePrefixes.dust.mMaterialAmount), + GT_OreDictUnificator.getDust(Materials.BlueSteel, 32L * OrePrefixes.dust.mMaterialAmount)) + .noFluidInputs() + .noFluidOutputs() + .duration(3 * MINUTES) + .eut(TierEU.RECIPE_HV) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cobalt, 5), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Chrome, 2), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Nickel, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Molybdenum, 1), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(GT_OreDictUnificator.getDust(Materials.Ultimet, 9L * OrePrefixes.dust.mMaterialAmount)) + .noFluidInputs() + .noFluidOutputs() + .duration(45 * SECONDS) + .eut(500) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Brass, 7), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Aluminium, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cobalt, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.getDust(Materials.CobaltBrass, 9L * OrePrefixes.dust.mMaterialAmount)) + .noFluidInputs() + .noFluidOutputs() + .duration(45 * SECONDS) + .eut(8) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Saltpeter, 2), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Coal, 3), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.getDust(Materials.Gunpowder, 6L * OrePrefixes.dust.mMaterialAmount)) + .noFluidInputs() + .noFluidOutputs() + .duration(30 * SECONDS) + .eut(8) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Saltpeter, 2), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Charcoal, 3), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.getDust(Materials.Gunpowder, 6L * OrePrefixes.dust.mMaterialAmount)) + .noFluidInputs() + .noFluidOutputs() + .duration(30 * SECONDS) + .eut(8) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Saltpeter, 2), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Carbon, 3), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.getDust(Materials.Gunpowder, 6L * OrePrefixes.dust.mMaterialAmount)) + .noFluidInputs() + .noFluidOutputs() + .duration(30 * SECONDS) + .eut(8) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Indium, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gallium, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Phosphorus, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs( + GT_OreDictUnificator.getDust(Materials.IndiumGalliumPhosphide, 3L * OrePrefixes.dust.mMaterialAmount)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(8) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Brick, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Clay, 1)) + .itemOutputs(GT_OreDictUnificator.getDust(Materials.Fireclay, 2L * OrePrefixes.dust.mMaterialAmount)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(8) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Nickel, 4), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Chrome, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.getDust(Materials.Nichrome, 5L * OrePrefixes.dust.mMaterialAmount)) + .noFluidInputs() + .noFluidOutputs() + .duration(25 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Osmium, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iridium, 3), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.getDust(Materials.Osmiridium, 4L * OrePrefixes.dust.mMaterialAmount)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS) + .eut(2000) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Niobium, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Titanium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.getDust(Materials.NiobiumTitanium, 2L * OrePrefixes.dust.mMaterialAmount)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(2000) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Vanadium, 3), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gallium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.getDust(Materials.VanadiumGallium, 4L * OrePrefixes.dust.mMaterialAmount)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS) + .eut(2000) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Tungsten, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Carbon, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.getDust(Materials.TungstenCarbide, 2L * OrePrefixes.dust.mMaterialAmount)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(500) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Tungsten, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Steel, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.getDust(Materials.TungstenSteel, 2L * OrePrefixes.dust.mMaterialAmount)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(TierEU.RECIPE_EV) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Titanium, 3), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Platinum, 3), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Vanadium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.getDust(Materials.TPV, 7L * OrePrefixes.dust.mMaterialAmount)) + .noFluidInputs() + .noFluidOutputs() + .duration(8 * SECONDS + 15 * TICKS) + .eut(TierEU.RECIPE_EV) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.TungstenSteel, 5), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Chrome, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Molybdenum, 2), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Vanadium, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.getDust(Materials.HSSG, 9L * OrePrefixes.dust.mMaterialAmount)) + .noFluidInputs() + .noFluidOutputs() + .duration(30 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.HSSG, 6), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cobalt, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Manganese, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silicon, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.getDust(Materials.HSSE, 9L * OrePrefixes.dust.mMaterialAmount)) + .noFluidInputs() + .noFluidOutputs() + .duration(35 * SECONDS) + .eut(4096) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.HSSG, 6), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iridium, 2), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Osmium, 1), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(GT_OreDictUnificator.getDust(Materials.HSSS, 9L * OrePrefixes.dust.mMaterialAmount)) + .noFluidInputs() + .noFluidOutputs() + .duration(40 * SECONDS) + .eut(TierEU.RECIPE_IV) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Nickel, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Zinc, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iron, 4)) + .itemOutputs(GT_OreDictUnificator.getDust(Materials.FerriteMixture, 6L * OrePrefixes.dust.mMaterialAmount)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(8) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Boron, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glass, 7)) + .itemOutputs( + GT_OreDictUnificator.getDust(Materials.BorosilicateGlass, 8L * OrePrefixes.dust.mMaterialAmount)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(8) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + new ItemStack(Items.rotten_flesh, 1, 0), + new ItemStack(Items.fermented_spider_eye, 1, 0), + ItemList.IC2_Scrap.get(1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.MeatRaw, 1)) + .itemOutputs(ItemList.Food_Chum.get(4)) + .fluidInputs(getFluidStack("potion.purpledrink", 750)) + .fluidOutputs(getFluidStack("sludge", 1000)) + .duration(6 * SECONDS + 8 * TICKS) + .eut(24) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wheat, 1)) + .itemOutputs(ItemList.Food_Dough.get(2)) + .fluidInputs(Materials.Water.getFluid(1000)) + .noFluidOutputs() + .duration(1 * SECONDS + 12 * TICKS) + .eut(8) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Chili, 1), + ItemList.Food_PotatoChips.get(1)) + .itemOutputs(ItemList.Food_ChiliChips.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(1 * SECONDS + 12 * TICKS) + .eut(8) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Redstone, 5), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Ruby, 4)) + .itemOutputs(ItemList.IC2_Energium_Dust.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 5), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ruby, 4)) + .itemOutputs(ItemList.IC2_Energium_Dust.get(9)) + .noFluidInputs() + .noFluidOutputs() + .duration(30 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sugar, 1), + new ItemStack(Blocks.brown_mushroom, 1), + new ItemStack(Items.spider_eye, 1)) + .itemOutputs(new ItemStack(Items.fermented_spider_eye, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(8) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Gold, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iron, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.LiveRoot, 1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.IronWood, 2)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(8) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gold, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iron, 9), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.LiveRoot, 9)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.IronWood, 18)) + .noFluidInputs() + .noFluidOutputs() + .duration(45 * SECONDS) + .eut(8) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1), + GT_OreDictUnificator.get(OrePrefixes.gem, Materials.NetherQuartz, 1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Fluix, 2)) + .fluidInputs(Materials.Water.getFluid(500)) + .noFluidOutputs() + .duration(20 * TICKS) + .eut(16) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1), + GT_OreDictUnificator.get(OrePrefixes.gem, Materials.NetherQuartz, 1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Fluix, 2)) + .fluidInputs(GT_ModHandler.getDistilledWater(500)) + .noFluidOutputs() + .duration(20 * TICKS) + .eut(16) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.IC2_Fertilizer.get(1), + new ItemStack(Blocks.dirt, 8, 32767), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(getModItem(Forestry.ID, "soil", 8L, 0)) + .fluidInputs(Materials.Water.getFluid(1000)) + .noFluidOutputs() + .duration(3 * SECONDS + 4 * TICKS) + .eut(16) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.FR_Fertilizer.get(1), + new ItemStack(Blocks.dirt, 8, 32767), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(getModItem(Forestry.ID, "soil", 8L, 0)) + .fluidInputs(Materials.Water.getFluid(1000)) + .noFluidOutputs() + .duration(3 * SECONDS + 4 * TICKS) + .eut(16) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.FR_Compost.get(1), + new ItemStack(Blocks.dirt, 8, 32767), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(getModItem(Forestry.ID, "soil", 8L, 0)) + .fluidInputs(Materials.Water.getFluid(1000)) + .noFluidOutputs() + .duration(3 * SECONDS + 4 * TICKS) + .eut(16) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + ItemList.FR_Mulch.get(8), + new ItemStack(Blocks.dirt, 8, 32767), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(getModItem(Forestry.ID, "soil", 8L, 0)) + .fluidInputs(Materials.Water.getFluid(1000)) + .noFluidOutputs() + .duration(3 * SECONDS + 4 * TICKS) + .eut(16) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + new ItemStack(Blocks.sand, 1, 32767), + new ItemStack(Blocks.dirt, 1, 32767), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(getModItem(Forestry.ID, "soil", 2L, 1)) + .fluidInputs(Materials.Water.getFluid(250)) + .noFluidOutputs() + .duration(16 * TICKS) + .eut(16) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.LightFuel, 5), + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.HeavyFuel, 1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Fuel, 6)) + .noFluidInputs() + .noFluidOutputs() + .duration(16 * TICKS) + .eut(TierEU.RECIPE_MV) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.LightFuel, 5), + Materials.Empty.getCells(1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Fuel, 6)) + .fluidInputs(Materials.HeavyFuel.getFluid(1000)) + .noFluidOutputs() + .duration(16 * TICKS) + .eut(TierEU.RECIPE_MV) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.HeavyFuel, 1), + Materials.Empty.getCells(5), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Fuel, 6)) + .fluidInputs(Materials.LightFuel.getFluid(5000)) + .noFluidOutputs() + .duration(16 * TICKS) + .eut(TierEU.RECIPE_MV) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.LightFuel, 5), + GT_Utility.getIntegratedCircuit(5)) + .itemOutputs(Materials.Empty.getCells(5)) + .fluidInputs(Materials.HeavyFuel.getFluid(1000)) + .fluidOutputs(Materials.Fuel.getFluid(6000)) + .duration(16 * TICKS) + .eut(TierEU.RECIPE_MV) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.HeavyFuel, 1), + GT_Utility.getIntegratedCircuit(6)) + .itemOutputs(Materials.Empty.getCells(1)) + .fluidInputs(Materials.LightFuel.getFluid(5000)) + .fluidOutputs(Materials.Fuel.getFluid(6000)) + .duration(16 * TICKS) + .eut(TierEU.RECIPE_MV) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Water, 5), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Stone, 1)) + .itemOutputs(Materials.Empty.getCells(5)) + .fluidInputs(Materials.Lubricant.getFluid(20)) + .fluidOutputs(new FluidStack(ItemList.sDrillingFluid, 5000)) + .duration(3 * SECONDS + 4 * TICKS) + .eut(16) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lapis, 1), + GT_Utility.getIntegratedCircuit(4)) + .noItemOutputs() + .fluidInputs(Materials.Water.getFluid(125)) + .fluidOutputs(getFluidStack("ic2coolant", 125)) + .duration(12 * SECONDS + 16 * TICKS) + .eut(48) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lapis, 1), + GT_Utility.getIntegratedCircuit(4)) + .noItemOutputs() + .fluidInputs(GT_ModHandler.getDistilledWater(1000)) + .fluidOutputs(getFluidStack("ic2coolant", 1000)) + .duration(12 * SECONDS + 16 * TICKS) + .eut(48) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sodium, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 4), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.SFMixture.get(4)) + .fluidInputs(Materials.AdvancedGlue.getFluid(200)) + .noFluidOutputs() + .duration(40 * SECONDS) + .eut(16) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lithium, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 4), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.SFMixture.get(8)) + .fluidInputs(Materials.AdvancedGlue.getFluid(200)) + .noFluidOutputs() + .duration(40 * SECONDS) + .eut(16) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Caesium, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 4), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.SFMixture.get(12)) + .fluidInputs(Materials.AdvancedGlue.getFluid(200)) + .noFluidOutputs() + .duration(40 * SECONDS) + .eut(16) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.SFMixture.get(2), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.EnderEye, 1)) + .itemOutputs(ItemList.MSFMixture.get(4)) + .fluidInputs(Materials.Mercury.getFluid(1000)) + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(64) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.SFMixture.get(1), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Blaze, 1)) + .itemOutputs(ItemList.MSFMixture.get(1)) + .fluidInputs(Materials.Mercury.getFluid(500)) + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(64) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.block, Materials.Lignite, 4), + ItemList.MSFMixture.get(24), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Diamond, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Block_MSSFUEL.get(4)) + .fluidInputs(Materials.NitroFuel.getFluid(4000)) + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.block, Materials.Charcoal, 4), + ItemList.MSFMixture.get(16), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Diamond, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Block_MSSFUEL.get(4)) + .fluidInputs(Materials.NitroFuel.getFluid(3000)) + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.block, Materials.Coal, 4), + ItemList.MSFMixture.get(8), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Diamond, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Block_MSSFUEL.get(4)) + .fluidInputs(Materials.NitroFuel.getFluid(2000)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.block, Materials.Lignite, 4), + ItemList.MSFMixture.get(24), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Diamond, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Block_MSSFUEL.get(4)) + .fluidInputs(Materials.GasolinePremium.getFluid(1600)) + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.block, Materials.Charcoal, 4), + ItemList.MSFMixture.get(16), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Diamond, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Block_MSSFUEL.get(4)) + .fluidInputs(Materials.GasolinePremium.getFluid(1200)) + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.block, Materials.Coal, 4), + ItemList.MSFMixture.get(8), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Diamond, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Block_MSSFUEL.get(4)) + .fluidInputs(Materials.GasolinePremium.getFluid(800)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sMixerRecipes); if (Thaumcraft.isModLoaded()) { GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.SFMixture.get(20), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.InfusedAir, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.MSFMixture.get(20)) - .fluidInputs(Materials.FierySteel.getFluid(50)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(64) - .addTo(sMixerRecipes); + .itemInputs( + ItemList.SFMixture.get(20), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.InfusedAir, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.MSFMixture.get(20)) + .fluidInputs(Materials.FierySteel.getFluid(50)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(64) + .addTo(sMixerRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.SFMixture.get(20), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.InfusedEarth, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.MSFMixture.get(20)) - .fluidInputs(Materials.FierySteel.getFluid(50)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(64) - .addTo(sMixerRecipes); + .itemInputs( + ItemList.SFMixture.get(20), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.InfusedEarth, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.MSFMixture.get(20)) + .fluidInputs(Materials.FierySteel.getFluid(50)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(64) + .addTo(sMixerRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.SFMixture.get(20), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.InfusedEntropy, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.MSFMixture.get(20)) - .fluidInputs(Materials.FierySteel.getFluid(50)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(64) - .addTo(sMixerRecipes); + .itemInputs( + ItemList.SFMixture.get(20), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.InfusedEntropy, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.MSFMixture.get(20)) + .fluidInputs(Materials.FierySteel.getFluid(50)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(64) + .addTo(sMixerRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.SFMixture.get(20), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.InfusedFire, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.MSFMixture.get(20)) - .fluidInputs(Materials.FierySteel.getFluid(50)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(64) - .addTo(sMixerRecipes); + .itemInputs( + ItemList.SFMixture.get(20), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.InfusedFire, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.MSFMixture.get(20)) + .fluidInputs(Materials.FierySteel.getFluid(50)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(64) + .addTo(sMixerRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.SFMixture.get(20), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.InfusedOrder, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.MSFMixture.get(20)) - .fluidInputs(Materials.FierySteel.getFluid(50)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(64) - .addTo(sMixerRecipes); + .itemInputs( + ItemList.SFMixture.get(20), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.InfusedOrder, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.MSFMixture.get(20)) + .fluidInputs(Materials.FierySteel.getFluid(50)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(64) + .addTo(sMixerRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.SFMixture.get(20), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.InfusedWater, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.MSFMixture.get(20)) - .fluidInputs(Materials.FierySteel.getFluid(50)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(64) - .addTo(sMixerRecipes); + .itemInputs( + ItemList.SFMixture.get(20), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.InfusedWater, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.MSFMixture.get(20)) + .fluidInputs(Materials.FierySteel.getFluid(50)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(64) + .addTo(sMixerRecipes); FluidStack tFD = getFluidStack("fluiddeath", 30); if (tFD != null && tFD.getFluid() != null && tFD.amount > 0) { GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.SFMixture.get(30), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.InfusedAir, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.MSFMixture.get(30)) - .fluidInputs(tFD) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(64) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.SFMixture.get(30), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.InfusedEarth, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.MSFMixture.get(30)) - .fluidInputs(tFD) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(64) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.SFMixture.get(30), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.InfusedEntropy, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.MSFMixture.get(30)) - .fluidInputs(tFD) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(64) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.SFMixture.get(30), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.InfusedFire, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.MSFMixture.get(30)) - .fluidInputs(tFD) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(64) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.SFMixture.get(30), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.InfusedOrder, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.MSFMixture.get(30)) - .fluidInputs(tFD) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(64) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.SFMixture.get(30), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.InfusedWater, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.MSFMixture.get(30)) - .fluidInputs(tFD) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(64) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.block, Materials.Lignite, 1), - ItemList.MSFMixture.get(6), - getModItem(Thaumcraft.ID, "ItemResource", 4), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Block_MSSFUEL.get(1)) - .fluidInputs(Materials.NitroFuel.getFluid(1000)) - .noFluidOutputs() - .duration(7 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.block, Materials.Charcoal, 1), - ItemList.MSFMixture.get(4), - getModItem(Thaumcraft.ID, "ItemResource", 4), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Block_MSSFUEL.get(1)) - .fluidInputs(Materials.NitroFuel.getFluid(750)) - .noFluidOutputs() - .duration(6 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.block, Materials.Coal, 1), - ItemList.MSFMixture.get(2), - getModItem(Thaumcraft.ID, "ItemResource", 4), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Block_MSSFUEL.get(1)) - .fluidInputs(Materials.NitroFuel.getFluid(500)) - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.block, Materials.Lignite, 1), - ItemList.MSFMixture.get(6), - getModItem(Thaumcraft.ID, "ItemResource", 4), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Block_MSSFUEL.get(1)) - .fluidInputs(Materials.GasolinePremium.getFluid(400)) - .noFluidOutputs() - .duration(7 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.block, Materials.Charcoal, 1), - ItemList.MSFMixture.get(4), - getModItem(Thaumcraft.ID, "ItemResource", 4), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Block_MSSFUEL.get(1)) - .fluidInputs(Materials.GasolinePremium.getFluid(300)) - .noFluidOutputs() - .duration(6 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.block, Materials.Coal, 1), - ItemList.MSFMixture.get(2), - getModItem(Thaumcraft.ID, "ItemResource", 4), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Block_MSSFUEL.get(1)) - .fluidInputs(Materials.GasolinePremium.getFluid(200)) - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMixerRecipes); - } - } - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.block, Materials.Lignite, 1), - ItemList.SFMixture.get(6), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Block_SSFUEL.get(1)) - .fluidInputs(Materials.NitroFuel.getFluid(1000)) - .noFluidOutputs() - .duration(7 * SECONDS) - .eut(250) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.block, Materials.Charcoal, 1), - ItemList.SFMixture.get(4), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Block_SSFUEL.get(1)) - .fluidInputs(Materials.NitroFuel.getFluid(750)) - .noFluidOutputs() - .duration(6 * SECONDS) - .eut(250) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.block, Materials.Coal, 1), - ItemList.SFMixture.get(2), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Block_SSFUEL.get(1)) - .fluidInputs(Materials.NitroFuel.getFluid(500)) - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(250) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.block, Materials.Lignite, 1), - ItemList.SFMixture.get(6), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Block_SSFUEL.get(1)) - .fluidInputs(Materials.GasolinePremium.getFluid(400)) - .noFluidOutputs() - .duration(7 * SECONDS) - .eut(250) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.block, Materials.Charcoal, 1), - ItemList.SFMixture.get(4), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Block_SSFUEL.get(1)) - .fluidInputs(Materials.GasolinePremium.getFluid(300)) - .noFluidOutputs() - .duration(6 * SECONDS) - .eut(250) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.block, Materials.Coal, 1), - ItemList.SFMixture.get(2), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Block_SSFUEL.get(1)) - .fluidInputs(Materials.GasolinePremium.getFluid(200)) - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(250) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.SulfuricAcid, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Cell_Empty.get(1)) - .fluidInputs(Materials.NitricAcid.getFluid(1000)) - .fluidOutputs(new FluidStack(ItemList.sNitrationMixture, 2000)) - .duration(24 * SECONDS) - .eut(2) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.SulfuricAcid, 1), - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.NitricAcid, 1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.NitrationMixture, 2)) - .noFluidInputs() - .noFluidOutputs() - .duration(24 * SECONDS) - .eut(2) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - new ItemStack(Blocks.dirt, 1, 32767), - new ItemStack(Items.wheat, 4, 32767), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(getModItem(Forestry.ID, "fertilizerBio", 1L, 0)) - .fluidInputs(Materials.Water.getFluid(100)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(16) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() .itemInputs( - new ItemStack(Blocks.dirt, 1, 2), - new ItemStack(Items.wheat, 4, 32767), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(getModItem(Forestry.ID, "fertilizerBio", 1L, 0)) - .fluidInputs(Materials.Water.getFluid(100)) + ItemList.SFMixture.get(30), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.InfusedAir, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.MSFMixture.get(30)) + .fluidInputs(tFD) .noFluidOutputs() .duration(10 * SECONDS) - .eut(16) + .eut(64) .addTo(sMixerRecipes); - GT_Values.RA.stdBuilder() + GT_Values.RA.stdBuilder() .itemInputs( - new ItemStack(Blocks.dirt, 1, 32767), - getModItem(BiomesOPlenty.ID, "plants", 4, 6), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(getModItem(Forestry.ID, "fertilizerBio", 1L, 0)) - .fluidInputs(Materials.Water.getFluid(100)) + ItemList.SFMixture.get(30), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.InfusedEarth, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.MSFMixture.get(30)) + .fluidInputs(tFD) .noFluidOutputs() .duration(10 * SECONDS) - .eut(16) + .eut(64) .addTo(sMixerRecipes); - GT_Values.RA.stdBuilder() + GT_Values.RA.stdBuilder() .itemInputs( - new ItemStack(Blocks.dirt, 1, 2), - getModItem(BiomesOPlenty.ID, "plants", 4, 6), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(getModItem(Forestry.ID, "fertilizerBio", 1L, 0)) - .fluidInputs(Materials.Water.getFluid(100)) + ItemList.SFMixture.get(30), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.InfusedEntropy, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.MSFMixture.get(30)) + .fluidInputs(tFD) .noFluidOutputs() .duration(10 * SECONDS) - .eut(16) + .eut(64) .addTo(sMixerRecipes); - GT_Values.RA.stdBuilder() + GT_Values.RA.stdBuilder() .itemInputs( - new ItemStack(Blocks.dirt, 1, 32767), - getModItem(PamsHarvestCraft.ID, "oatsItem", 4), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(getModItem(Forestry.ID, "fertilizerBio", 1L, 0)) - .fluidInputs(Materials.Water.getFluid(100)) + ItemList.SFMixture.get(30), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.InfusedFire, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.MSFMixture.get(30)) + .fluidInputs(tFD) .noFluidOutputs() .duration(10 * SECONDS) - .eut(16) + .eut(64) .addTo(sMixerRecipes); - GT_Values.RA.stdBuilder() + GT_Values.RA.stdBuilder() .itemInputs( - new ItemStack(Blocks.dirt, 1, 2), - getModItem(PamsHarvestCraft.ID, "oatsItem", 4), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(getModItem(Forestry.ID, "fertilizerBio", 1L, 0)) - .fluidInputs(Materials.Water.getFluid(100)) + ItemList.SFMixture.get(30), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.InfusedOrder, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.MSFMixture.get(30)) + .fluidInputs(tFD) .noFluidOutputs() .duration(10 * SECONDS) - .eut(16) + .eut(64) .addTo(sMixerRecipes); - GT_Values.RA.stdBuilder() + GT_Values.RA.stdBuilder() .itemInputs( - new ItemStack(Blocks.dirt, 1, 32767), - getModItem(PamsHarvestCraft.ID, "ryeItem", 4), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(getModItem(Forestry.ID, "fertilizerBio", 1L, 0)) - .fluidInputs(Materials.Water.getFluid(100)) + ItemList.SFMixture.get(30), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.InfusedWater, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.MSFMixture.get(30)) + .fluidInputs(tFD) .noFluidOutputs() .duration(10 * SECONDS) - .eut(16) + .eut(64) .addTo(sMixerRecipes); - GT_Values.RA.stdBuilder() + GT_Values.RA.stdBuilder() .itemInputs( - new ItemStack(Blocks.dirt, 1, 2), - getModItem(PamsHarvestCraft.ID, "ryeItem", 4), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(getModItem(Forestry.ID, "fertilizerBio", 1L, 0)) - .fluidInputs(Materials.Water.getFluid(100)) + GT_OreDictUnificator.get(OrePrefixes.block, Materials.Lignite, 1), + ItemList.MSFMixture.get(6), + getModItem(Thaumcraft.ID, "ItemResource", 4), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Block_MSSFUEL.get(1)) + .fluidInputs(Materials.NitroFuel.getFluid(1000)) .noFluidOutputs() - .duration(10 * SECONDS) - .eut(16) + .duration(7 * SECONDS) + .eut(TierEU.RECIPE_HV) .addTo(sMixerRecipes); - GT_Values.RA.stdBuilder() + GT_Values.RA.stdBuilder() .itemInputs( - new ItemStack(Blocks.dirt, 1, 32767), - getModItem(PamsHarvestCraft.ID, "barleyItem", 4), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(getModItem(Forestry.ID, "fertilizerBio", 1L, 0)) - .fluidInputs(Materials.Water.getFluid(100)) + GT_OreDictUnificator.get(OrePrefixes.block, Materials.Charcoal, 1), + ItemList.MSFMixture.get(4), + getModItem(Thaumcraft.ID, "ItemResource", 4), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Block_MSSFUEL.get(1)) + .fluidInputs(Materials.NitroFuel.getFluid(750)) .noFluidOutputs() - .duration(10 * SECONDS) - .eut(16) + .duration(6 * SECONDS) + .eut(TierEU.RECIPE_HV) .addTo(sMixerRecipes); - GT_Values.RA.stdBuilder() + GT_Values.RA.stdBuilder() .itemInputs( - new ItemStack(Blocks.dirt, 1, 2), - getModItem(PamsHarvestCraft.ID, "barleyItem", 4, 6), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(getModItem(Forestry.ID, "fertilizerBio", 1L, 0)) - .fluidInputs(Materials.Water.getFluid(100)) + GT_OreDictUnificator.get(OrePrefixes.block, Materials.Coal, 1), + ItemList.MSFMixture.get(2), + getModItem(Thaumcraft.ID, "ItemResource", 4), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Block_MSSFUEL.get(1)) + .fluidInputs(Materials.NitroFuel.getFluid(500)) .noFluidOutputs() - .duration(10 * SECONDS) - .eut(16) + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_HV) .addTo(sMixerRecipes); - GT_Values.RA.stdBuilder() + GT_Values.RA.stdBuilder() .itemInputs( - new ItemStack(Blocks.dirt, 1, 32767), - getModItem(Natura.ID, "barleyFood", 4), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(getModItem(Forestry.ID, "fertilizerBio", 1L, 0)) - .fluidInputs(Materials.Water.getFluid(100)) + GT_OreDictUnificator.get(OrePrefixes.block, Materials.Lignite, 1), + ItemList.MSFMixture.get(6), + getModItem(Thaumcraft.ID, "ItemResource", 4), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Block_MSSFUEL.get(1)) + .fluidInputs(Materials.GasolinePremium.getFluid(400)) .noFluidOutputs() - .duration(10 * SECONDS) - .eut(16) + .duration(7 * SECONDS) + .eut(TierEU.RECIPE_HV) .addTo(sMixerRecipes); - GT_Values.RA.stdBuilder() + GT_Values.RA.stdBuilder() .itemInputs( - new ItemStack(Blocks.dirt, 1, 2), - getModItem(Natura.ID, "barleyFood", 4), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(getModItem(Forestry.ID, "fertilizerBio", 1L, 0)) - .fluidInputs(Materials.Water.getFluid(100)) + GT_OreDictUnificator.get(OrePrefixes.block, Materials.Charcoal, 1), + ItemList.MSFMixture.get(4), + getModItem(Thaumcraft.ID, "ItemResource", 4), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Block_MSSFUEL.get(1)) + .fluidInputs(Materials.GasolinePremium.getFluid(300)) .noFluidOutputs() - .duration(10 * SECONDS) - .eut(16) + .duration(6 * SECONDS) + .eut(TierEU.RECIPE_HV) .addTo(sMixerRecipes); - GT_Values.RA.stdBuilder() + GT_Values.RA.stdBuilder() .itemInputs( - new ItemStack(Blocks.dirt, 1, 32767), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 4), - GT_Utility.getIntegratedCircuit(3)) - .itemOutputs(getModItem(Forestry.ID, "fertilizerBio", 1L, 0)) - .fluidInputs(Materials.Water.getFluid(100)) + GT_OreDictUnificator.get(OrePrefixes.block, Materials.Coal, 1), + ItemList.MSFMixture.get(2), + getModItem(Thaumcraft.ID, "ItemResource", 4), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Block_MSSFUEL.get(1)) + .fluidInputs(Materials.GasolinePremium.getFluid(200)) .noFluidOutputs() - .duration(10 * SECONDS) - .eut(16) + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_HV) .addTo(sMixerRecipes); + } + } GT_Values.RA.stdBuilder() - .itemInputs( - new ItemStack(Blocks.dirt, 1, 2), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 4), - GT_Utility.getIntegratedCircuit(3)) - .itemOutputs(getModItem(Forestry.ID, "fertilizerBio", 1L, 0)) - .fluidInputs(Materials.Water.getFluid(100)) - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(16) - .addTo(sMixerRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.block, Materials.Lignite, 1), + ItemList.SFMixture.get(6), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Block_SSFUEL.get(1)) + .fluidInputs(Materials.NitroFuel.getFluid(1000)) + .noFluidOutputs() + .duration(7 * SECONDS) + .eut(250) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.block, Materials.Charcoal, 1), + ItemList.SFMixture.get(4), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Block_SSFUEL.get(1)) + .fluidInputs(Materials.NitroFuel.getFluid(750)) + .noFluidOutputs() + .duration(6 * SECONDS) + .eut(250) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.block, Materials.Coal, 1), + ItemList.SFMixture.get(2), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Block_SSFUEL.get(1)) + .fluidInputs(Materials.NitroFuel.getFluid(500)) + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(250) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.block, Materials.Lignite, 1), + ItemList.SFMixture.get(6), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Block_SSFUEL.get(1)) + .fluidInputs(Materials.GasolinePremium.getFluid(400)) + .noFluidOutputs() + .duration(7 * SECONDS) + .eut(250) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.block, Materials.Charcoal, 1), + ItemList.SFMixture.get(4), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Block_SSFUEL.get(1)) + .fluidInputs(Materials.GasolinePremium.getFluid(300)) + .noFluidOutputs() + .duration(6 * SECONDS) + .eut(250) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.block, Materials.Coal, 1), + ItemList.SFMixture.get(2), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Block_SSFUEL.get(1)) + .fluidInputs(Materials.GasolinePremium.getFluid(200)) + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(250) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.SulfuricAcid, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Cell_Empty.get(1)) + .fluidInputs(Materials.NitricAcid.getFluid(1000)) + .fluidOutputs(new FluidStack(ItemList.sNitrationMixture, 2000)) + .duration(24 * SECONDS) + .eut(2) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.SulfuricAcid, 1), + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.NitricAcid, 1), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.NitrationMixture, 2)) + .noFluidInputs() + .noFluidOutputs() + .duration(24 * SECONDS) + .eut(2) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + new ItemStack(Blocks.dirt, 1, 32767), + new ItemStack(Items.wheat, 4, 32767), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(getModItem(Forestry.ID, "fertilizerBio", 1L, 0)) + .fluidInputs(Materials.Water.getFluid(100)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(16) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + new ItemStack(Blocks.dirt, 1, 2), + new ItemStack(Items.wheat, 4, 32767), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(getModItem(Forestry.ID, "fertilizerBio", 1L, 0)) + .fluidInputs(Materials.Water.getFluid(100)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(16) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + new ItemStack(Blocks.dirt, 1, 32767), + getModItem(BiomesOPlenty.ID, "plants", 4, 6), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(getModItem(Forestry.ID, "fertilizerBio", 1L, 0)) + .fluidInputs(Materials.Water.getFluid(100)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(16) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + new ItemStack(Blocks.dirt, 1, 2), + getModItem(BiomesOPlenty.ID, "plants", 4, 6), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(getModItem(Forestry.ID, "fertilizerBio", 1L, 0)) + .fluidInputs(Materials.Water.getFluid(100)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(16) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + new ItemStack(Blocks.dirt, 1, 32767), + getModItem(PamsHarvestCraft.ID, "oatsItem", 4), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(getModItem(Forestry.ID, "fertilizerBio", 1L, 0)) + .fluidInputs(Materials.Water.getFluid(100)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(16) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + new ItemStack(Blocks.dirt, 1, 2), + getModItem(PamsHarvestCraft.ID, "oatsItem", 4), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(getModItem(Forestry.ID, "fertilizerBio", 1L, 0)) + .fluidInputs(Materials.Water.getFluid(100)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(16) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + new ItemStack(Blocks.dirt, 1, 32767), + getModItem(PamsHarvestCraft.ID, "ryeItem", 4), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(getModItem(Forestry.ID, "fertilizerBio", 1L, 0)) + .fluidInputs(Materials.Water.getFluid(100)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(16) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + new ItemStack(Blocks.dirt, 1, 2), + getModItem(PamsHarvestCraft.ID, "ryeItem", 4), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(getModItem(Forestry.ID, "fertilizerBio", 1L, 0)) + .fluidInputs(Materials.Water.getFluid(100)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(16) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + new ItemStack(Blocks.dirt, 1, 32767), + getModItem(PamsHarvestCraft.ID, "barleyItem", 4), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(getModItem(Forestry.ID, "fertilizerBio", 1L, 0)) + .fluidInputs(Materials.Water.getFluid(100)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(16) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + new ItemStack(Blocks.dirt, 1, 2), + getModItem(PamsHarvestCraft.ID, "barleyItem", 4, 6), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(getModItem(Forestry.ID, "fertilizerBio", 1L, 0)) + .fluidInputs(Materials.Water.getFluid(100)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(16) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + new ItemStack(Blocks.dirt, 1, 32767), + getModItem(Natura.ID, "barleyFood", 4), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(getModItem(Forestry.ID, "fertilizerBio", 1L, 0)) + .fluidInputs(Materials.Water.getFluid(100)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(16) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + new ItemStack(Blocks.dirt, 1, 2), + getModItem(Natura.ID, "barleyFood", 4), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(getModItem(Forestry.ID, "fertilizerBio", 1L, 0)) + .fluidInputs(Materials.Water.getFluid(100)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(16) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + new ItemStack(Blocks.dirt, 1, 32767), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 4), + GT_Utility.getIntegratedCircuit(3)) + .itemOutputs(getModItem(Forestry.ID, "fertilizerBio", 1L, 0)) + .fluidInputs(Materials.Water.getFluid(100)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(16) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + new ItemStack(Blocks.dirt, 1, 2), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 4), + GT_Utility.getIntegratedCircuit(3)) + .itemOutputs(getModItem(Forestry.ID, "fertilizerBio", 1L, 0)) + .fluidInputs(Materials.Water.getFluid(100)) + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(16) + .addTo(sMixerRecipes); // radiation manufacturing GT_Values.RA.stdBuilder() - .itemInputs(GT_ModHandler.getIC2Item("fuelRod", 1), new ItemStack(Items.glowstone_dust, 9), NI, NI) - .itemOutputs(ItemList.GlowstoneCell.get(1)) - .fluidInputs(Materials.Helium.getGas(250)) - .fluidOutputs(NF) - .duration(1 * SECONDS + 10 * TICKS) - .eut(16) - .addTo(sMixerRecipes); + .itemInputs(GT_ModHandler.getIC2Item("fuelRod", 1), new ItemStack(Items.glowstone_dust, 9), NI, NI) + .itemOutputs(ItemList.GlowstoneCell.get(1)) + .fluidInputs(Materials.Helium.getGas(250)) + .fluidOutputs(NF) + .duration(1 * SECONDS + 10 * TICKS) + .eut(16) + .addTo(sMixerRecipes); GT_Values.RA.stdBuilder() - .itemInputs(MaterialsOreAlum.SluiceSand.getDust(1)) - .noItemOutputs() - .fluidInputs(Materials.Water.getFluid(500)) - .fluidOutputs(MaterialsOreAlum.SluiceJuice.getFluid(1000)) - .duration(5 * SECONDS) - .eut(16) - .addTo(sMixerRecipes); + .itemInputs(MaterialsOreAlum.SluiceSand.getDust(1)) + .noItemOutputs() + .fluidInputs(Materials.Water.getFluid(500)) + .fluidOutputs(MaterialsOreAlum.SluiceJuice.getFluid(1000)) + .duration(5 * SECONDS) + .eut(16) + .addTo(sMixerRecipes); // NaCl + H2O = (NaCl·H2O) GT_Values.RA.stdBuilder() - .itemInputs(Materials.Salt.getDust(2), GT_Utility.getIntegratedCircuit(3)) - .noItemOutputs() - .fluidInputs(Materials.Water.getFluid(1000)) - .fluidOutputs(Materials.SaltWater.getFluid(1000)) - .duration(5 * SECONDS) - .eut(8) - .addTo(sMixerRecipes); + .itemInputs(Materials.Salt.getDust(2), GT_Utility.getIntegratedCircuit(3)) + .noItemOutputs() + .fluidInputs(Materials.Water.getFluid(1000)) + .fluidOutputs(Materials.SaltWater.getFluid(1000)) + .duration(5 * SECONDS) + .eut(8) + .addTo(sMixerRecipes); // CaCO3 + 2 CH3COOH = Ca(CH3COO)2 + H2O + CO2 GT_Values.RA.stdBuilder() - .itemInputs( - Materials.Calcite.getDust(5), - Materials.Empty.getCells(2), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Water.getCells(1), Materials.CarbonDioxide.getCells(1)) - .fluidInputs(Materials.AceticAcid.getFluid(2000)) - .fluidOutputs(Materials.CalciumAcetateSolution.getFluid(1000)) - .duration(12 * SECONDS) - .eut(16) - .addTo(sMixerRecipes); + .itemInputs(Materials.Calcite.getDust(5), Materials.Empty.getCells(2), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Water.getCells(1), Materials.CarbonDioxide.getCells(1)) + .fluidInputs(Materials.AceticAcid.getFluid(2000)) + .fluidOutputs(Materials.CalciumAcetateSolution.getFluid(1000)) + .duration(12 * SECONDS) + .eut(16) + .addTo(sMixerRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - Materials.Calcite.getDust(5), - Materials.Empty.getCells(2), - GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.CalciumAcetateSolution.getCells(1), Materials.CarbonDioxide.getCells(1)) - .fluidInputs(Materials.AceticAcid.getFluid(2000)) - .fluidOutputs(Materials.Water.getFluid(1000)) - .duration(12 * SECONDS) - .eut(16) - .addTo(sMixerRecipes); + .itemInputs(Materials.Calcite.getDust(5), Materials.Empty.getCells(2), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.CalciumAcetateSolution.getCells(1), Materials.CarbonDioxide.getCells(1)) + .fluidInputs(Materials.AceticAcid.getFluid(2000)) + .fluidOutputs(Materials.Water.getFluid(1000)) + .duration(12 * SECONDS) + .eut(16) + .addTo(sMixerRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - Materials.Calcite.getDust(5), - Materials.Empty.getCells(2), - GT_Utility.getIntegratedCircuit(21)) - .itemOutputs(Materials.Water.getCells(1), Materials.CalciumAcetateSolution.getCells(1)) - .fluidInputs(Materials.AceticAcid.getFluid(2000)) - .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) - .duration(12 * SECONDS) - .eut(16) - .addTo(sMixerRecipes); + .itemInputs(Materials.Calcite.getDust(5), Materials.Empty.getCells(2), GT_Utility.getIntegratedCircuit(21)) + .itemOutputs(Materials.Water.getCells(1), Materials.CalciumAcetateSolution.getCells(1)) + .fluidInputs(Materials.AceticAcid.getFluid(2000)) + .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) + .duration(12 * SECONDS) + .eut(16) + .addTo(sMixerRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - Materials.Calcite.getDust(5), - Materials.Empty.getCells(1), - GT_Utility.getIntegratedCircuit(4)) - .itemOutputs(Materials.CarbonDioxide.getCells(1)) - .fluidInputs(Materials.AceticAcid.getFluid(2000)) - .fluidOutputs(Materials.CalciumAcetateSolution.getFluid(1000)) - .duration(12 * SECONDS) - .eut(16) - .addTo(sMixerRecipes); + .itemInputs(Materials.Calcite.getDust(5), Materials.Empty.getCells(1), GT_Utility.getIntegratedCircuit(4)) + .itemOutputs(Materials.CarbonDioxide.getCells(1)) + .fluidInputs(Materials.AceticAcid.getFluid(2000)) + .fluidOutputs(Materials.CalciumAcetateSolution.getFluid(1000)) + .duration(12 * SECONDS) + .eut(16) + .addTo(sMixerRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - Materials.Calcite.getDust(5), - Materials.Empty.getCells(1), - GT_Utility.getIntegratedCircuit(14)) - .itemOutputs(Materials.CalciumAcetateSolution.getCells(1)) - .fluidInputs(Materials.AceticAcid.getFluid(2000)) - .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) - .duration(12 * SECONDS) - .eut(16) - .addTo(sMixerRecipes); + .itemInputs(Materials.Calcite.getDust(5), Materials.Empty.getCells(1), GT_Utility.getIntegratedCircuit(14)) + .itemOutputs(Materials.CalciumAcetateSolution.getCells(1)) + .fluidInputs(Materials.AceticAcid.getFluid(2000)) + .fluidOutputs(Materials.CarbonDioxide.getGas(1000)) + .duration(12 * SECONDS) + .eut(16) + .addTo(sMixerRecipes); // Ca + 2 CH3COOH = Ca(CH3COO)2 + 2H GT_Values.RA.stdBuilder() - .itemInputs( - Materials.Calcium.getDust(1), - Materials.Empty.getCells(2), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Hydrogen.getCells(2)) - .fluidInputs(Materials.AceticAcid.getFluid(2000)) - .fluidOutputs(Materials.CalciumAcetateSolution.getFluid(1000)) - .duration(4 * SECONDS) - .eut(16) - .addTo(sMixerRecipes); + .itemInputs(Materials.Calcium.getDust(1), Materials.Empty.getCells(2), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Hydrogen.getCells(2)) + .fluidInputs(Materials.AceticAcid.getFluid(2000)) + .fluidOutputs(Materials.CalciumAcetateSolution.getFluid(1000)) + .duration(4 * SECONDS) + .eut(16) + .addTo(sMixerRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - Materials.Calcium.getDust(1), - Materials.Empty.getCells(1), - GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.CalciumAcetateSolution.getCells(1)) - .fluidInputs(Materials.AceticAcid.getFluid(2000)) - .fluidOutputs(Materials.Hydrogen.getGas(2000)) - .duration(4 * SECONDS) - .eut(16) - .addTo(sMixerRecipes); + .itemInputs(Materials.Calcium.getDust(1), Materials.Empty.getCells(1), GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.CalciumAcetateSolution.getCells(1)) + .fluidInputs(Materials.AceticAcid.getFluid(2000)) + .fluidOutputs(Materials.Hydrogen.getGas(2000)) + .duration(4 * SECONDS) + .eut(16) + .addTo(sMixerRecipes); // CaO + 2 CH3COOH = Ca(CH3COO)2 + H2O GT_Values.RA.stdBuilder() - .itemInputs( - Materials.Quicklime.getDust(2), - Materials.Empty.getCells(1), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Water.getCells(1)) - .fluidInputs(Materials.AceticAcid.getFluid(2000)) - .fluidOutputs(Materials.CalciumAcetateSolution.getFluid(1000)) - .duration(4 * SECONDS) - .eut(16) - .addTo(sMixerRecipes); + .itemInputs(Materials.Quicklime.getDust(2), Materials.Empty.getCells(1), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Water.getCells(1)) + .fluidInputs(Materials.AceticAcid.getFluid(2000)) + .fluidOutputs(Materials.CalciumAcetateSolution.getFluid(1000)) + .duration(4 * SECONDS) + .eut(16) + .addTo(sMixerRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - Materials.Quicklime.getDust(2), - Materials.Empty.getCells(1), - GT_Utility.getIntegratedCircuit(11)) - .itemOutputs(Materials.CalciumAcetateSolution.getCells(1)) - .fluidInputs(Materials.AceticAcid.getFluid(2000)) - .fluidOutputs(Materials.Water.getFluid(1000)) - .duration(4 * SECONDS) - .eut(16) - .addTo(sMixerRecipes); + .itemInputs( + Materials.Quicklime.getDust(2), + Materials.Empty.getCells(1), + GT_Utility.getIntegratedCircuit(11)) + .itemOutputs(Materials.CalciumAcetateSolution.getCells(1)) + .fluidInputs(Materials.AceticAcid.getFluid(2000)) + .fluidOutputs(Materials.Water.getFluid(1000)) + .duration(4 * SECONDS) + .eut(16) + .addTo(sMixerRecipes); // 2CH3COOCH3 + 3CH3COCH3/(C4H6O2)n = 5Glue GT_Values.RA.stdBuilder() - .itemInputs(Materials.Acetone.getCells(3)) - .itemOutputs(Materials.Empty.getCells(3)) - .fluidInputs(Materials.PolyvinylAcetate.getFluid(2000)) - .fluidOutputs(Materials.AdvancedGlue.getFluid(5000)) - .duration(5 * SECONDS) - .eut(8) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.PolyvinylAcetate.getCells(2)) - .itemOutputs(Materials.Empty.getCells(2)) - .fluidInputs(Materials.Acetone.getFluid(3000)) - .fluidOutputs(Materials.AdvancedGlue.getFluid(5000)) - .duration(5 * SECONDS) - .eut(8) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.MethylAcetate.getCells(3)) - .itemOutputs(Materials.Empty.getCells(3)) - .fluidInputs(Materials.PolyvinylAcetate.getFluid(2000)) - .fluidOutputs(Materials.AdvancedGlue.getFluid(5000)) - .duration(5 * SECONDS) - .eut(8) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.PolyvinylAcetate.getCells(2)) - .itemOutputs(Materials.Empty.getCells(2)) - .fluidInputs(Materials.MethylAcetate.getFluid(3000)) - .fluidOutputs(Materials.AdvancedGlue.getFluid(5000)) - .duration(5 * SECONDS) - .eut(8) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Sugar.getDust(4)) - .itemOutputs(Materials.Charcoal.getGems(1)) - .fluidInputs(Materials.SulfuricAcid.getFluid(1000)) - .fluidOutputs(Materials.DilutedSulfuricAcid.getFluid(1000)) - .duration(60 * SECONDS) - .eut(2) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Wood.getDust(4)) - .itemOutputs(Materials.Charcoal.getGems(1)) - .fluidInputs(Materials.SulfuricAcid.getFluid(1000)) - .fluidOutputs(Materials.DilutedSulfuricAcid.getFluid(1000)) - .duration(60 * SECONDS) - .eut(2) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.Fuel.getCells(1)) - .itemOutputs(Materials.Empty.getCells(1)) - .fluidInputs(Materials.Tetranitromethane.getFluid(20)) - .fluidOutputs(Materials.NitroFuel.getFluid(1000)) - .duration(20 * TICKS) - .eut(TierEU.RECIPE_HV) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(Materials.BioDiesel.getCells(1)) - .itemOutputs(Materials.Empty.getCells(1)) - .fluidInputs(Materials.Tetranitromethane.getFluid(40)) - .fluidOutputs(Materials.NitroFuel.getFluid(900)) - .duration(20 * TICKS) - .eut(TierEU.RECIPE_HV) - .addTo(sMixerRecipes); + .itemInputs(Materials.Acetone.getCells(3)) + .itemOutputs(Materials.Empty.getCells(3)) + .fluidInputs(Materials.PolyvinylAcetate.getFluid(2000)) + .fluidOutputs(Materials.AdvancedGlue.getFluid(5000)) + .duration(5 * SECONDS) + .eut(8) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.PolyvinylAcetate.getCells(2)) + .itemOutputs(Materials.Empty.getCells(2)) + .fluidInputs(Materials.Acetone.getFluid(3000)) + .fluidOutputs(Materials.AdvancedGlue.getFluid(5000)) + .duration(5 * SECONDS) + .eut(8) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.MethylAcetate.getCells(3)) + .itemOutputs(Materials.Empty.getCells(3)) + .fluidInputs(Materials.PolyvinylAcetate.getFluid(2000)) + .fluidOutputs(Materials.AdvancedGlue.getFluid(5000)) + .duration(5 * SECONDS) + .eut(8) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.PolyvinylAcetate.getCells(2)) + .itemOutputs(Materials.Empty.getCells(2)) + .fluidInputs(Materials.MethylAcetate.getFluid(3000)) + .fluidOutputs(Materials.AdvancedGlue.getFluid(5000)) + .duration(5 * SECONDS) + .eut(8) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Sugar.getDust(4)) + .itemOutputs(Materials.Charcoal.getGems(1)) + .fluidInputs(Materials.SulfuricAcid.getFluid(1000)) + .fluidOutputs(Materials.DilutedSulfuricAcid.getFluid(1000)) + .duration(60 * SECONDS) + .eut(2) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Wood.getDust(4)) + .itemOutputs(Materials.Charcoal.getGems(1)) + .fluidInputs(Materials.SulfuricAcid.getFluid(1000)) + .fluidOutputs(Materials.DilutedSulfuricAcid.getFluid(1000)) + .duration(60 * SECONDS) + .eut(2) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.Fuel.getCells(1)) + .itemOutputs(Materials.Empty.getCells(1)) + .fluidInputs(Materials.Tetranitromethane.getFluid(20)) + .fluidOutputs(Materials.NitroFuel.getFluid(1000)) + .duration(20 * TICKS) + .eut(TierEU.RECIPE_HV) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(Materials.BioDiesel.getCells(1)) + .itemOutputs(Materials.Empty.getCells(1)) + .fluidInputs(Materials.Tetranitromethane.getFluid(40)) + .fluidOutputs(Materials.NitroFuel.getFluid(900)) + .duration(20 * TICKS) + .eut(TierEU.RECIPE_HV) + .addTo(sMixerRecipes); // CH4O + C4H8 = C5H12O GT_Values.RA.stdBuilder() - .itemInputs(Materials.Methanol.getCells(1), Materials.Butene.getCells(1)) - .itemOutputs(Materials.MTBEMixture.getCells(1), Materials.Empty.getCells(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * TICKS) - .eut(TierEU.RECIPE_HV) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - Materials.Naphtha.getCells(16), - Materials.Gas.getCells(2), - Materials.Methanol.getCells(1), - Materials.Acetone.getCells(1)) - .itemOutputs(Materials.GasolineRaw.getCells(20)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMixerRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs( - Materials.GasolineRegular.getCells(20), - Materials.Octane.getCells(2), - Materials.NitrousOxide.getCells(6), - Materials.Toluene.getCells(1)) - .itemOutputs(Materials.Empty.getCells(29)) - .fluidInputs(Materials.AntiKnock.getFluid(3000)) - .fluidOutputs(Materials.GasolinePremium.getFluid(32000)) - .duration(2 * SECONDS + 10 * TICKS) - .eut(TierEU.RECIPE_EV) - .addTo(sMixerRecipes); + .itemInputs(Materials.Methanol.getCells(1), Materials.Butene.getCells(1)) + .itemOutputs(Materials.MTBEMixture.getCells(1), Materials.Empty.getCells(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * TICKS) + .eut(TierEU.RECIPE_HV) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + Materials.Naphtha.getCells(16), + Materials.Gas.getCells(2), + Materials.Methanol.getCells(1), + Materials.Acetone.getCells(1)) + .itemOutputs(Materials.GasolineRaw.getCells(20)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sMixerRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs( + Materials.GasolineRegular.getCells(20), + Materials.Octane.getCells(2), + Materials.NitrousOxide.getCells(6), + Materials.Toluene.getCells(1)) + .itemOutputs(Materials.Empty.getCells(29)) + .fluidInputs(Materials.AntiKnock.getFluid(3000)) + .fluidOutputs(Materials.GasolinePremium.getFluid(32000)) + .duration(2 * SECONDS + 10 * TICKS) + .eut(TierEU.RECIPE_EV) + .addTo(sMixerRecipes); if (Railcraft.isModLoaded()) { GT_Values.RA.stdBuilder() - .itemInputs( - EnumCube.COKE_BLOCK.getItem(), - ItemList.SFMixture.get(2), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Block_SSFUEL.get(1)) - .fluidInputs(Materials.NitroFuel.getFluid(300)) - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(250) - .addTo(sMixerRecipes); + .itemInputs( + EnumCube.COKE_BLOCK.getItem(), + ItemList.SFMixture.get(2), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Block_SSFUEL.get(1)) + .fluidInputs(Materials.NitroFuel.getFluid(300)) + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(250) + .addTo(sMixerRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - EnumCube.COKE_BLOCK.getItem(), - ItemList.SFMixture.get(2), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Block_SSFUEL.get(1)) - .fluidInputs(Materials.GasolinePremium.getFluid(120)) - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(250) - .addTo(sMixerRecipes); + .itemInputs( + EnumCube.COKE_BLOCK.getItem(), + ItemList.SFMixture.get(2), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Block_SSFUEL.get(1)) + .fluidInputs(Materials.GasolinePremium.getFluid(120)) + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(250) + .addTo(sMixerRecipes); } if (Thaumcraft.isModLoaded() && Railcraft.isModLoaded()) { GT_Values.RA.stdBuilder() - .itemInputs( - EnumCube.COKE_BLOCK.getItem(), - ItemList.MSFMixture.get(2), - getModItem(Thaumcraft.ID, "ItemResource", 4), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Block_MSSFUEL.get(1)) - .fluidInputs(Materials.NitroFuel.getFluid(300)) - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMixerRecipes); + .itemInputs( + EnumCube.COKE_BLOCK.getItem(), + ItemList.MSFMixture.get(2), + getModItem(Thaumcraft.ID, "ItemResource", 4), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Block_MSSFUEL.get(1)) + .fluidInputs(Materials.NitroFuel.getFluid(300)) + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sMixerRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - EnumCube.COKE_BLOCK.getItem(), - ItemList.MSFMixture.get(2), - getModItem(Thaumcraft.ID, "ItemResource", 4), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(ItemList.Block_MSSFUEL.get(1)) - .fluidInputs(Materials.GasolinePremium.getFluid(120)) - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMixerRecipes); + .itemInputs( + EnumCube.COKE_BLOCK.getItem(), + ItemList.MSFMixture.get(2), + getModItem(Thaumcraft.ID, "ItemResource", 4), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(ItemList.Block_MSSFUEL.get(1)) + .fluidInputs(Materials.GasolinePremium.getFluid(120)) + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sMixerRecipes); } } public static void addMixerPotionRecipes(String aName) { boolean splash = !(FluidRegistry.getFluid("potion." + aName) == null - || FluidRegistry.getFluid("potion." + aName + ".splash") == null); + || FluidRegistry.getFluid("potion." + aName + ".splash") == null); boolean splashStrong = !(FluidRegistry.getFluid("potion." + aName + ".strong") == null - || FluidRegistry.getFluid("potion." + aName + ".strong.splash") == null); + || FluidRegistry.getFluid("potion." + aName + ".strong.splash") == null); boolean splashLong = !(FluidRegistry.getFluid("potion." + aName + ".long") == null - || FluidRegistry.getFluid("potion." + aName + ".long.splash") == null); + || FluidRegistry.getFluid("potion." + aName + ".long.splash") == null); if (splash) GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gunpowder, 1)) - .noItemOutputs() - .fluidInputs(new FluidStack(FluidRegistry.getFluid("potion." + aName), 750)) - .fluidOutputs( - new FluidStack(FluidRegistry.getFluid("potion." + aName + ".splash"), 750)) - .duration(10 * SECONDS) - .eut(24) - .addTo(sMixerRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gunpowder, 1)) + .noItemOutputs() + .fluidInputs(new FluidStack(FluidRegistry.getFluid("potion." + aName), 750)) + .fluidOutputs(new FluidStack(FluidRegistry.getFluid("potion." + aName + ".splash"), 750)) + .duration(10 * SECONDS) + .eut(24) + .addTo(sMixerRecipes); if (splashStrong) GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gunpowder, 1)) - .noItemOutputs() - .fluidInputs( - new FluidStack( - FluidRegistry.getFluid("potion." + aName + ".strong"), - 750)) - .fluidOutputs( - new FluidStack( - FluidRegistry.getFluid("potion." + aName + ".strong.splash"), - 750)) - .duration(10 * SECONDS) - .eut(24) - .addTo(sMixerRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gunpowder, 1)) + .noItemOutputs() + .fluidInputs(new FluidStack(FluidRegistry.getFluid("potion." + aName + ".strong"), 750)) + .fluidOutputs(new FluidStack(FluidRegistry.getFluid("potion." + aName + ".strong.splash"), 750)) + .duration(10 * SECONDS) + .eut(24) + .addTo(sMixerRecipes); if (splashLong) GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gunpowder, 1)) - .noItemOutputs() - .fluidInputs( - new FluidStack(FluidRegistry.getFluid("potion." + aName + ".long"), 750)) - .fluidOutputs( - new FluidStack( - FluidRegistry.getFluid("potion." + aName + ".long.splash"), - 750)) - .duration(10 * SECONDS) - .eut(24) - .addTo(sMixerRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gunpowder, 1)) + .noItemOutputs() + .fluidInputs(new FluidStack(FluidRegistry.getFluid("potion." + aName + ".long"), 750)) + .fluidOutputs(new FluidStack(FluidRegistry.getFluid("potion." + aName + ".long.splash"), 750)) + .duration(10 * SECONDS) + .eut(24) + .addTo(sMixerRecipes); } public void registerSingleBlockAndMulti() { GT_Values.RA.stdBuilder() - .itemInputs( - Materials.NaquadahEnriched.getDust(8), - Materials.Holmium.getDust(2), - GT_Utility.getIntegratedCircuit(4)) - .itemOutputs(Materials.EnrichedHolmium.getDust(10)) - .noFluidInputs() - .noFluidOutputs() - .duration(30 * SECONDS) - .eut(TierEU.RECIPE_ZPM) - .addTo(sMixerRecipes); + .itemInputs( + Materials.NaquadahEnriched.getDust(8), + Materials.Holmium.getDust(2), + GT_Utility.getIntegratedCircuit(4)) + .itemOutputs(Materials.EnrichedHolmium.getDust(10)) + .noFluidInputs() + .noFluidOutputs() + .duration(30 * SECONDS) + .eut(TierEU.RECIPE_ZPM) + .addTo(sMixerRecipes); // Catalysts for Plasma Forge. { GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(9)) - .noItemOutputs() - .fluidInputs( - Materials.Helium.getPlasma(1000L), - Materials.Iron.getPlasma(1000L), - Materials.Calcium.getPlasma(1000L), - Materials.Niobium.getPlasma(1000L)) - .fluidOutputs(Materials.DimensionallyTranscendentCrudeCatalyst.getFluid(1000L)) - .duration(41 * MINUTES + 40 * SECONDS) - .eut(TierEU.RECIPE_ZPM) - .addTo(sMixerRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(9)) + .noItemOutputs() + .fluidInputs( + Materials.Helium.getPlasma(1000L), + Materials.Iron.getPlasma(1000L), + Materials.Calcium.getPlasma(1000L), + Materials.Niobium.getPlasma(1000L)) + .fluidOutputs(Materials.DimensionallyTranscendentCrudeCatalyst.getFluid(1000L)) + .duration(41 * MINUTES + 40 * SECONDS) + .eut(TierEU.RECIPE_ZPM) + .addTo(sMixerRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(10)) - .noItemOutputs() - .fluidInputs( - Materials.DimensionallyTranscendentCrudeCatalyst.getFluid(1000L), - Materials.Radon.getPlasma(1000L), - Materials.Nickel.getPlasma(1000L), - Materials.Boron.getPlasma(1000L), - Materials.Sulfur.getPlasma(1000L)) - .fluidOutputs(Materials.DimensionallyTranscendentProsaicCatalyst.getFluid(1000L)) - .duration(41 * MINUTES + 40 * SECONDS) - .eut(TierEU.RECIPE_ZPM) - .addTo(sMixerRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(10)) + .noItemOutputs() + .fluidInputs( + Materials.DimensionallyTranscendentCrudeCatalyst.getFluid(1000L), + Materials.Radon.getPlasma(1000L), + Materials.Nickel.getPlasma(1000L), + Materials.Boron.getPlasma(1000L), + Materials.Sulfur.getPlasma(1000L)) + .fluidOutputs(Materials.DimensionallyTranscendentProsaicCatalyst.getFluid(1000L)) + .duration(41 * MINUTES + 40 * SECONDS) + .eut(TierEU.RECIPE_ZPM) + .addTo(sMixerRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(11)) - .noItemOutputs() - .fluidInputs( - Materials.DimensionallyTranscendentProsaicCatalyst.getFluid(1000L), - Materials.Nitrogen.getPlasma(1000L), - Materials.Zinc.getPlasma(1000L), - Materials.Silver.getPlasma(1000L), - Materials.Titanium.getPlasma(1000L)) - .fluidOutputs(Materials.DimensionallyTranscendentResplendentCatalyst.getFluid(1000L)) - .duration(41 * MINUTES + 40 * SECONDS) - .eut(TierEU.RECIPE_ZPM) - .addTo(sMixerRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(11)) + .noItemOutputs() + .fluidInputs( + Materials.DimensionallyTranscendentProsaicCatalyst.getFluid(1000L), + Materials.Nitrogen.getPlasma(1000L), + Materials.Zinc.getPlasma(1000L), + Materials.Silver.getPlasma(1000L), + Materials.Titanium.getPlasma(1000L)) + .fluidOutputs(Materials.DimensionallyTranscendentResplendentCatalyst.getFluid(1000L)) + .duration(41 * MINUTES + 40 * SECONDS) + .eut(TierEU.RECIPE_ZPM) + .addTo(sMixerRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(12)) - .noItemOutputs() - .fluidInputs( - Materials.DimensionallyTranscendentResplendentCatalyst.getFluid(1000L), - Materials.Americium.getPlasma(1000L), - Materials.Bismuth.getPlasma(1000L), - Materials.Oxygen.getPlasma(1000L), - Materials.Tin.getPlasma(1000L)) - .fluidOutputs(Materials.DimensionallyTranscendentExoticCatalyst.getFluid(1000L)) - .duration(41 * MINUTES + 40 * SECONDS) - .eut(TierEU.RECIPE_ZPM) - .addTo(sMixerRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(12)) + .noItemOutputs() + .fluidInputs( + Materials.DimensionallyTranscendentResplendentCatalyst.getFluid(1000L), + Materials.Americium.getPlasma(1000L), + Materials.Bismuth.getPlasma(1000L), + Materials.Oxygen.getPlasma(1000L), + Materials.Tin.getPlasma(1000L)) + .fluidOutputs(Materials.DimensionallyTranscendentExoticCatalyst.getFluid(1000L)) + .duration(41 * MINUTES + 40 * SECONDS) + .eut(TierEU.RECIPE_ZPM) + .addTo(sMixerRecipes); } GT_Values.RA.stdBuilder() - .itemInputs(ItemList.IC2_Spray_WeedEx.get(1)) - .noItemOutputs() - .fluidInputs(MaterialsKevlar.NaphthenicAcid.getFluid(10)) - .fluidOutputs(Materials.WeedEX9000.getFluid(750)) - .duration(5 * SECONDS) - .eut(100) - .addTo(sMixerRecipes); + .itemInputs(ItemList.IC2_Spray_WeedEx.get(1)) + .noItemOutputs() + .fluidInputs(MaterialsKevlar.NaphthenicAcid.getFluid(10)) + .fluidOutputs(Materials.WeedEX9000.getFluid(750)) + .duration(5 * SECONDS) + .eut(100) + .addTo(sMixerRecipes); } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/NEIHiding.java b/src/main/java/gregtech/loaders/postload/recipes/NEIHiding.java index 961488991c..dad2388ae6 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/NEIHiding.java +++ b/src/main/java/gregtech/loaders/postload/recipes/NEIHiding.java @@ -23,14 +23,14 @@ public class NEIHiding implements Runnable { if (Forestry.isModLoaded()) { ItemStack[] coverIDs = { ItemList.Plank_Larch.get(2L), ItemList.Plank_Teak.get(2L), - ItemList.Plank_Acacia_Green.get(2L), ItemList.Plank_Lime.get(2L), ItemList.Plank_Chestnut.get(2L), - ItemList.Plank_Wenge.get(2L), ItemList.Plank_Baobab.get(2L), ItemList.Plank_Sequoia.get(2L), - ItemList.Plank_Kapok.get(2L), ItemList.Plank_Ebony.get(2L), ItemList.Plank_Mahagony.get(2L), - ItemList.Plank_Balsa.get(2L), ItemList.Plank_Willow.get(2L), ItemList.Plank_Walnut.get(2L), - ItemList.Plank_Greenheart.get(2L), ItemList.Plank_Cherry.get(2L), ItemList.Plank_Mahoe.get(2L), - ItemList.Plank_Poplar.get(2L), ItemList.Plank_Palm.get(2L), ItemList.Plank_Papaya.get(2L), - ItemList.Plank_Pine.get(2L), ItemList.Plank_Plum.get(2L), ItemList.Plank_Maple.get(2L), - ItemList.Plank_Citrus.get(2L) }; + ItemList.Plank_Acacia_Green.get(2L), ItemList.Plank_Lime.get(2L), ItemList.Plank_Chestnut.get(2L), + ItemList.Plank_Wenge.get(2L), ItemList.Plank_Baobab.get(2L), ItemList.Plank_Sequoia.get(2L), + ItemList.Plank_Kapok.get(2L), ItemList.Plank_Ebony.get(2L), ItemList.Plank_Mahagony.get(2L), + ItemList.Plank_Balsa.get(2L), ItemList.Plank_Willow.get(2L), ItemList.Plank_Walnut.get(2L), + ItemList.Plank_Greenheart.get(2L), ItemList.Plank_Cherry.get(2L), ItemList.Plank_Mahoe.get(2L), + ItemList.Plank_Poplar.get(2L), ItemList.Plank_Palm.get(2L), ItemList.Plank_Papaya.get(2L), + ItemList.Plank_Pine.get(2L), ItemList.Plank_Plum.get(2L), ItemList.Plank_Maple.get(2L), + ItemList.Plank_Citrus.get(2L) }; for (ItemStack cover : coverIDs) { API.hideItem(cover); diff --git a/src/main/java/gregtech/loaders/postload/recipes/OreDictUnification.java b/src/main/java/gregtech/loaders/postload/recipes/OreDictUnification.java index 1b78bfd4e9..f8c816dc5c 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/OreDictUnification.java +++ b/src/main/java/gregtech/loaders/postload/recipes/OreDictUnification.java @@ -13,11 +13,11 @@ public class OreDictUnification implements Runnable { public void run() { if (HardcoreEnderExpansion.isModLoaded()) { GT_OreDictUnificator.set( - OrePrefixes.ingot, - Materials.HeeEndium, - getModItem(HardcoreEnderExpansion.ID, "endium_ingot", 1), - true, - true); + OrePrefixes.ingot, + Materials.HeeEndium, + getModItem(HardcoreEnderExpansion.ID, "endium_ingot", 1), + true, + true); } } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/PackagerRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/PackagerRecipes.java index 760c7a5969..b27dd6d59c 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/PackagerRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/PackagerRecipes.java @@ -15,45 +15,45 @@ public class PackagerRecipes implements Runnable { @Override public void run() { GT_Values.RA.stdBuilder() - .itemInputs(ItemList.IC2_Scrap.get(9), ItemList.Schematic_3by3.get(0)) - .itemOutputs(ItemList.IC2_Scrapbox.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(16 * TICKS) - .eut(1) - .addTo(sBoxinatorRecipes); + .itemInputs(ItemList.IC2_Scrap.get(9), ItemList.Schematic_3by3.get(0)) + .itemOutputs(ItemList.IC2_Scrapbox.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(16 * TICKS) + .eut(1) + .addTo(sBoxinatorRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Food_Fries.get(1), - GT_OreDictUnificator.get(OrePrefixes.plateDouble, Materials.Paper, 1)) - .itemOutputs(ItemList.Food_Packaged_Fries.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(3 * SECONDS + 4 * TICKS) - .eut(16) - .addTo(sBoxinatorRecipes); + .itemInputs( + ItemList.Food_Fries.get(1), + GT_OreDictUnificator.get(OrePrefixes.plateDouble, Materials.Paper, 1)) + .itemOutputs(ItemList.Food_Packaged_Fries.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(3 * SECONDS + 4 * TICKS) + .eut(16) + .addTo(sBoxinatorRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Food_PotatoChips.get(1), - GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Aluminium, 1)) - .itemOutputs(ItemList.Food_Packaged_PotatoChips.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(3 * SECONDS + 4 * TICKS) - .eut(16) - .addTo(sBoxinatorRecipes); + .itemInputs( + ItemList.Food_PotatoChips.get(1), + GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Aluminium, 1)) + .itemOutputs(ItemList.Food_Packaged_PotatoChips.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(3 * SECONDS + 4 * TICKS) + .eut(16) + .addTo(sBoxinatorRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Food_ChiliChips.get(1), - GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Aluminium, 1)) - .itemOutputs(ItemList.Food_Packaged_ChiliChips.get(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(3 * SECONDS + 4 * TICKS) - .eut(16) - .addTo(sBoxinatorRecipes); + .itemInputs( + ItemList.Food_ChiliChips.get(1), + GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Aluminium, 1)) + .itemOutputs(ItemList.Food_Packaged_ChiliChips.get(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(3 * SECONDS + 4 * TICKS) + .eut(16) + .addTo(sBoxinatorRecipes); } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/PlasmaForgeRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/PlasmaForgeRecipes.java index 332d32efeb..5546dadc86 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/PlasmaForgeRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/PlasmaForgeRecipes.java @@ -14,32 +14,30 @@ public class PlasmaForgeRecipes implements Runnable { public void run() { // Giga chad trophy. GT_Values.RA.stdBuilder() - .itemInputs( - ItemList.Field_Generator_UEV.get(64), - ItemList.Field_Generator_UIV.get(64), - ItemList.Field_Generator_UMV.get(64)) - .fluidInputs( - Materials.ExcitedDTEC.getFluid(100_000_000), - Materials.SpaceTime.getMolten(64 * 2 * 9 * 144)) - .itemOutputs(ItemList.GigaChad.get(1)) - .noFluidOutputs() - .duration(86400 * 20 * 2) - .eut(2_000_000_000) - .metadata(COIL_HEAT, 13500) - .addTo(sPlasmaForgeRecipes); + .itemInputs( + ItemList.Field_Generator_UEV.get(64), + ItemList.Field_Generator_UIV.get(64), + ItemList.Field_Generator_UMV.get(64)) + .fluidInputs(Materials.ExcitedDTEC.getFluid(100_000_000), Materials.SpaceTime.getMolten(64 * 2 * 9 * 144)) + .itemOutputs(ItemList.GigaChad.get(1)) + .noFluidOutputs() + .duration(86400 * 20 * 2) + .eut(2_000_000_000) + .metadata(COIL_HEAT, 13500) + .addTo(sPlasmaForgeRecipes); // Quantum anomaly recipe bypass for UEV+. Avoids RNG. GT_Values.RA.stdBuilder() - .itemInputs( - getModItem(GTPlusPlus.ID, "particleBase", 1, 24), - getModItem(NewHorizonsCoreMod.ID, "item.ChromaticLens", 0), - getModItem(GoodGenerator.ID, "huiCircuit", 0, 4)) - .fluidInputs(Materials.ExcitedDTRC.getFluid(92), Materials.Duranium.getMolten(144)) - .itemOutputs(getModItem(GTPlusPlus.ID, "MU-metaitem.01", 1, 32105)) - .noFluidOutputs() - .duration(60 * SECONDS) - .eut((int) TierEU.RECIPE_UEV) - .metadata(COIL_HEAT, 10800) - .addTo(sPlasmaForgeRecipes); + .itemInputs( + getModItem(GTPlusPlus.ID, "particleBase", 1, 24), + getModItem(NewHorizonsCoreMod.ID, "item.ChromaticLens", 0), + getModItem(GoodGenerator.ID, "huiCircuit", 0, 4)) + .fluidInputs(Materials.ExcitedDTRC.getFluid(92), Materials.Duranium.getMolten(144)) + .itemOutputs(getModItem(GTPlusPlus.ID, "MU-metaitem.01", 1, 32105)) + .noFluidOutputs() + .duration(60 * SECONDS) + .eut((int) TierEU.RECIPE_UEV) + .metadata(COIL_HEAT, 10800) + .addTo(sPlasmaForgeRecipes); } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/PrinterRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/PrinterRecipes.java index f839e7efc0..6884be9112 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/PrinterRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/PrinterRecipes.java @@ -19,51 +19,51 @@ public class PrinterRecipes implements Runnable { @Override public void run() { GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.plateDouble, Materials.Paper, 1L)) - .itemOutputs(ItemList.Paper_Punch_Card_Empty.get(1L)) - .fluidInputs(getFluidStack("squidink", 36)) - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(2) - .addTo(sPrinterRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.plateDouble, Materials.Paper, 1L)) + .itemOutputs(ItemList.Paper_Punch_Card_Empty.get(1L)) + .fluidInputs(getFluidStack("squidink", 36)) + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(2) + .addTo(sPrinterRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Paper_Punch_Card_Empty.get(1L)) - .specialItem(ItemList.Tool_DataStick.getWithName(0L, "With Punch Card Data")) - .itemOutputs(ItemList.Paper_Punch_Card_Encoded.get(1L)) - .fluidInputs(getFluidStack("squidink", 36)) - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(2) - .addTo(sPrinterRecipes); + .itemInputs(ItemList.Paper_Punch_Card_Empty.get(1L)) + .specialItem(ItemList.Tool_DataStick.getWithName(0L, "With Punch Card Data")) + .itemOutputs(ItemList.Paper_Punch_Card_Encoded.get(1L)) + .fluidInputs(getFluidStack("squidink", 36)) + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(2) + .addTo(sPrinterRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Paper, 3L)) - .specialItem(ItemList.Tool_DataStick.getWithName(0L, "With Scanned Book Data")) - .itemOutputs(ItemList.Paper_Printed_Pages.get(1L)) - .fluidInputs(getFluidStack("squidink", 144)) - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(2) - .addTo(sPrinterRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Paper, 3L)) + .specialItem(ItemList.Tool_DataStick.getWithName(0L, "With Scanned Book Data")) + .itemOutputs(ItemList.Paper_Printed_Pages.get(1L)) + .fluidInputs(getFluidStack("squidink", 144)) + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(2) + .addTo(sPrinterRecipes); GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.map, 1, 32767)) - .specialItem(ItemList.Tool_DataStick.getWithName(0L, "With Scanned Map Data")) - .itemOutputs(new ItemStack(Items.filled_map, 1, 0)) - .fluidInputs(getFluidStack("squidink", 144)) - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(2) - .addTo(sPrinterRecipes); + .itemInputs(new ItemStack(Items.map, 1, 32767)) + .specialItem(ItemList.Tool_DataStick.getWithName(0L, "With Scanned Map Data")) + .itemOutputs(new ItemStack(Items.filled_map, 1, 0)) + .fluidInputs(getFluidStack("squidink", 144)) + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(2) + .addTo(sPrinterRecipes); GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.book, 1, 32767)) - .itemOutputs(GT_Utility.getWrittenBook("Manual_Printer", ItemList.Book_Written_01.get(1L))) - .fluidInputs(getFluidStack("squidink", 144)) - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(2) - .addTo(sPrinterRecipes); + .itemInputs(new ItemStack(Items.book, 1, 32767)) + .itemOutputs(GT_Utility.getWrittenBook("Manual_Printer", ItemList.Book_Written_01.get(1L))) + .fluidInputs(getFluidStack("squidink", 144)) + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(2) + .addTo(sPrinterRecipes); } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/Pulverizer.java b/src/main/java/gregtech/loaders/postload/recipes/Pulverizer.java index 0c800b0518..b75d9bf03e 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/Pulverizer.java +++ b/src/main/java/gregtech/loaders/postload/recipes/Pulverizer.java @@ -19,687 +19,687 @@ public class Pulverizer implements Runnable { // recycling Long Distance Pipes { GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Long_Distance_Pipeline_Fluid.get(1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Steel, 19)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(4) - .addTo(sMaceratorRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Long_Distance_Pipeline_Item.get(1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Tin, 12), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Steel, 7)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(4) - .addTo(sMaceratorRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Long_Distance_Pipeline_Fluid_Pipe.get(1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Steel, 2)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * TICKS) - .eut(4) - .addTo(sMaceratorRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Long_Distance_Pipeline_Item_Pipe.get(1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Tin, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Steel, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * TICKS) - .eut(4) - .addTo(sMaceratorRecipes); + .itemInputs(ItemList.Long_Distance_Pipeline_Fluid.get(1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Steel, 19)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(4) + .addTo(sMaceratorRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Long_Distance_Pipeline_Item.get(1)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Tin, 12), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Steel, 7)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(4) + .addTo(sMaceratorRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Long_Distance_Pipeline_Fluid_Pipe.get(1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Steel, 2)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * TICKS) + .eut(4) + .addTo(sMaceratorRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(ItemList.Long_Distance_Pipeline_Item_Pipe.get(1)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Tin, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Steel, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * TICKS) + .eut(4) + .addTo(sMaceratorRecipes); } // marbe dust( stone dust GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.block, Materials.Marble, 1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Marble, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(8 * SECONDS) - .eut(4) - .addTo(sMaceratorRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.block, Materials.Marble, 1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Marble, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(8 * SECONDS) + .eut(4) + .addTo(sMaceratorRecipes); GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Thaumcraft.ID, "ItemResource", 1, 18)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Gold, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(1 * SECONDS + 1 * TICKS) - .eut(4) - .addTo(sMaceratorRecipes); + .itemInputs(getModItem(Thaumcraft.ID, "ItemResource", 1, 18)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Gold, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(1 * SECONDS + 1 * TICKS) + .eut(4) + .addTo(sMaceratorRecipes); GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.reeds, 1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sugar, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(2) - .addTo(sMaceratorRecipes); + .itemInputs(new ItemStack(Items.reeds, 1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sugar, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(2) + .addTo(sMaceratorRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Casing_Coil_Cupronickel.get(1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cupronickel, 8), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Tin, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.QuartzSand, 2)) - .noFluidInputs() - .noFluidOutputs() - .duration(1 * MINUTES + 15 * SECONDS) - .eut(80) - .addTo(sMaceratorRecipes); + .itemInputs(ItemList.Casing_Coil_Cupronickel.get(1)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cupronickel, 8), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Tin, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.QuartzSand, 2)) + .noFluidInputs() + .noFluidOutputs() + .duration(1 * MINUTES + 15 * SECONDS) + .eut(80) + .addTo(sMaceratorRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Casing_Coil_Kanthal.get(1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Kanthal, 8), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cupronickel, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.QuartzSand, 3)) - .noFluidInputs() - .noFluidOutputs() - .duration(1 * MINUTES + 15 * SECONDS) - .eut(80) - .addTo(sMaceratorRecipes); + .itemInputs(ItemList.Casing_Coil_Kanthal.get(1)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Kanthal, 8), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cupronickel, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.QuartzSand, 3)) + .noFluidInputs() + .noFluidOutputs() + .duration(1 * MINUTES + 15 * SECONDS) + .eut(80) + .addTo(sMaceratorRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Casing_Coil_Nichrome.get(1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Nichrome, 8), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Kanthal, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.QuartzSand, 4)) - .noFluidInputs() - .noFluidOutputs() - .duration(1 * MINUTES + 15 * SECONDS) - .eut(80) - .addTo(sMaceratorRecipes); + .itemInputs(ItemList.Casing_Coil_Nichrome.get(1)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Nichrome, 8), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Kanthal, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.QuartzSand, 4)) + .noFluidInputs() + .noFluidOutputs() + .duration(1 * MINUTES + 15 * SECONDS) + .eut(80) + .addTo(sMaceratorRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Casing_Coil_TungstenSteel.get(1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.TPV, 8), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Nichrome, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.QuartzSand, 5)) - .noFluidInputs() - .noFluidOutputs() - .duration(1 * MINUTES + 15 * SECONDS) - .eut(80) - .addTo(sMaceratorRecipes); + .itemInputs(ItemList.Casing_Coil_TungstenSteel.get(1)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.TPV, 8), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Nichrome, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.QuartzSand, 5)) + .noFluidInputs() + .noFluidOutputs() + .duration(1 * MINUTES + 15 * SECONDS) + .eut(80) + .addTo(sMaceratorRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Casing_Coil_HSSG.get(1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.HSSG, 8), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.TPV, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.QuartzSand, 6)) - .noFluidInputs() - .noFluidOutputs() - .duration(1 * MINUTES + 15 * SECONDS) - .eut(80) - .addTo(sMaceratorRecipes); + .itemInputs(ItemList.Casing_Coil_HSSG.get(1)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.HSSG, 8), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.TPV, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.QuartzSand, 6)) + .noFluidInputs() + .noFluidOutputs() + .duration(1 * MINUTES + 15 * SECONDS) + .eut(80) + .addTo(sMaceratorRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Casing_Coil_HSSS.get(1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.HSSS, 8), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.HSSG, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.QuartzSand, 7)) - .noFluidInputs() - .noFluidOutputs() - .duration(1 * MINUTES + 15 * SECONDS) - .eut(80) - .addTo(sMaceratorRecipes); + .itemInputs(ItemList.Casing_Coil_HSSS.get(1)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.HSSS, 8), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.HSSG, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.QuartzSand, 7)) + .noFluidInputs() + .noFluidOutputs() + .duration(1 * MINUTES + 15 * SECONDS) + .eut(80) + .addTo(sMaceratorRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Casing_Coil_Naquadah.get(1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadah, 8), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.HSSS, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.QuartzSand, 8)) - .noFluidInputs() - .noFluidOutputs() - .duration(1 * MINUTES + 15 * SECONDS) - .eut(80) - .addTo(sMaceratorRecipes); + .itemInputs(ItemList.Casing_Coil_Naquadah.get(1)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadah, 8), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.HSSS, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.QuartzSand, 8)) + .noFluidInputs() + .noFluidOutputs() + .duration(1 * MINUTES + 15 * SECONDS) + .eut(80) + .addTo(sMaceratorRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Casing_Coil_NaquadahAlloy.get(1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.NaquadahAlloy, 8), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadah, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.QuartzSand, 9)) - .noFluidInputs() - .noFluidOutputs() - .duration(1 * MINUTES + 15 * SECONDS) - .eut(80) - .addTo(sMaceratorRecipes); + .itemInputs(ItemList.Casing_Coil_NaquadahAlloy.get(1)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.NaquadahAlloy, 8), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadah, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.QuartzSand, 9)) + .noFluidInputs() + .noFluidOutputs() + .duration(1 * MINUTES + 15 * SECONDS) + .eut(80) + .addTo(sMaceratorRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Casing_Coil_Trinium.get(1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Trinium, 8), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.NaquadahAlloy, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.QuartzSand, 10)) - .noFluidInputs() - .noFluidOutputs() - .duration(1 * MINUTES + 15 * SECONDS) - .eut(80) - .addTo(sMaceratorRecipes); + .itemInputs(ItemList.Casing_Coil_Trinium.get(1)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Trinium, 8), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.NaquadahAlloy, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.QuartzSand, 10)) + .noFluidInputs() + .noFluidOutputs() + .duration(1 * MINUTES + 15 * SECONDS) + .eut(80) + .addTo(sMaceratorRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Casing_Coil_ElectrumFlux.get(1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.ElectrumFlux, 8), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Trinium, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.QuartzSand, 11)) - .noFluidInputs() - .noFluidOutputs() - .duration(1 * MINUTES + 15 * SECONDS) - .eut(80) - .addTo(sMaceratorRecipes); + .itemInputs(ItemList.Casing_Coil_ElectrumFlux.get(1)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.ElectrumFlux, 8), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Trinium, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.QuartzSand, 11)) + .noFluidInputs() + .noFluidOutputs() + .duration(1 * MINUTES + 15 * SECONDS) + .eut(80) + .addTo(sMaceratorRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Casing_Coil_AwakenedDraconium.get(1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DraconiumAwakened, 8), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.ElectrumFlux, 1), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.QuartzSand, 12)) - .noFluidInputs() - .noFluidOutputs() - .duration(1 * MINUTES + 15 * SECONDS) - .eut(80) - .addTo(sMaceratorRecipes); + .itemInputs(ItemList.Casing_Coil_AwakenedDraconium.get(1)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DraconiumAwakened, 8), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.ElectrumFlux, 1), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.QuartzSand, 12)) + .noFluidInputs() + .noFluidOutputs() + .duration(1 * MINUTES + 15 * SECONDS) + .eut(80) + .addTo(sMaceratorRecipes); if (Railcraft.isModLoaded()) { // recycling RC Tanks // Iron GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.beta", 1L, 0)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iron, 2)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(2) - .addTo(sMaceratorRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.beta", 1L, 1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iron, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Glass, 3)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(2) - .addTo(sMaceratorRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.beta", 1L, 2)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Bronze, 12), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Iron, 3)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(2) - .addTo(sMaceratorRecipes); + .itemInputs(getModItem(Railcraft.ID, "machine.beta", 1L, 0)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iron, 2)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(2) + .addTo(sMaceratorRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.beta", 1L, 1)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iron, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Glass, 3)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(2) + .addTo(sMaceratorRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.beta", 1L, 2)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Bronze, 12), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Iron, 3)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(2) + .addTo(sMaceratorRecipes); // Steel GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.beta", 1L, 13)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Steel, 2)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(2) - .addTo(sMaceratorRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.beta", 1L, 14)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Steel, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Glass, 3)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(2) - .addTo(sMaceratorRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.beta", 1L, 15)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Steel, 12), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Steel, 3)) - .noFluidInputs() - .noFluidOutputs() - .duration(15 * SECONDS) - .eut(2) - .addTo(sMaceratorRecipes); + .itemInputs(getModItem(Railcraft.ID, "machine.beta", 1L, 13)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Steel, 2)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(2) + .addTo(sMaceratorRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.beta", 1L, 14)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Steel, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Glass, 3)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(2) + .addTo(sMaceratorRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.beta", 1L, 15)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Steel, 12), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Steel, 3)) + .noFluidInputs() + .noFluidOutputs() + .duration(15 * SECONDS) + .eut(2) + .addTo(sMaceratorRecipes); // Aluminium GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 0)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Aluminium, 2)) - .noFluidInputs() - .noFluidOutputs() - .duration(22 * SECONDS + 10 * TICKS) - .eut(8) - .addTo(sMaceratorRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Aluminium, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Glass, 3)) - .noFluidInputs() - .noFluidOutputs() - .duration(22 * SECONDS + 10 * TICKS) - .eut(8) - .addTo(sMaceratorRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 2)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Plastic, 12), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Aluminium, 3)) - .noFluidInputs() - .noFluidOutputs() - .duration(22 * SECONDS + 10 * TICKS) - .eut(8) - .addTo(sMaceratorRecipes); + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 0)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Aluminium, 2)) + .noFluidInputs() + .noFluidOutputs() + .duration(22 * SECONDS + 10 * TICKS) + .eut(8) + .addTo(sMaceratorRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 1)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Aluminium, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Glass, 3)) + .noFluidInputs() + .noFluidOutputs() + .duration(22 * SECONDS + 10 * TICKS) + .eut(8) + .addTo(sMaceratorRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 2)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Plastic, 12), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Aluminium, 3)) + .noFluidInputs() + .noFluidOutputs() + .duration(22 * SECONDS + 10 * TICKS) + .eut(8) + .addTo(sMaceratorRecipes); // Stainless Steel GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 3)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.StainlessSteel, 2)) - .noFluidInputs() - .noFluidOutputs() - .duration(30 * SECONDS) - .eut(16) - .addTo(sMaceratorRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 4)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.StainlessSteel, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Glass, 3)) - .noFluidInputs() - .noFluidOutputs() - .duration(30 * SECONDS) - .eut(16) - .addTo(sMaceratorRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 5)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.StainlessSteel, 12), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.StainlessSteel, 3)) - .noFluidInputs() - .noFluidOutputs() - .duration(30 * SECONDS) - .eut(16) - .addTo(sMaceratorRecipes); + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 3)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.StainlessSteel, 2)) + .noFluidInputs() + .noFluidOutputs() + .duration(30 * SECONDS) + .eut(16) + .addTo(sMaceratorRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 4)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.StainlessSteel, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Glass, 3)) + .noFluidInputs() + .noFluidOutputs() + .duration(30 * SECONDS) + .eut(16) + .addTo(sMaceratorRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 5)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.StainlessSteel, 12), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.StainlessSteel, 3)) + .noFluidInputs() + .noFluidOutputs() + .duration(30 * SECONDS) + .eut(16) + .addTo(sMaceratorRecipes); // Titanium GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 6)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Titanium, 2)) - .noFluidInputs() - .noFluidOutputs() - .duration(30 * SECONDS) - .eut(30) - .addTo(sMaceratorRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 7)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Titanium, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Glass, 3)) - .noFluidInputs() - .noFluidOutputs() - .duration(30 * SECONDS) - .eut(30) - .addTo(sMaceratorRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 8)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Titanium, 12), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Titanium, 3)) - .noFluidInputs() - .noFluidOutputs() - .duration(30 * SECONDS) - .eut(30) - .addTo(sMaceratorRecipes); + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 6)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Titanium, 2)) + .noFluidInputs() + .noFluidOutputs() + .duration(30 * SECONDS) + .eut(30) + .addTo(sMaceratorRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 7)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Titanium, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Glass, 3)) + .noFluidInputs() + .noFluidOutputs() + .duration(30 * SECONDS) + .eut(30) + .addTo(sMaceratorRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 8)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Titanium, 12), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Titanium, 3)) + .noFluidInputs() + .noFluidOutputs() + .duration(30 * SECONDS) + .eut(30) + .addTo(sMaceratorRecipes); // Tungesten Steel GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 9)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.TungstenSteel, 2)) - .noFluidInputs() - .noFluidOutputs() - .duration(30 * SECONDS) - .eut(30) - .addTo(sMaceratorRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 10)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.TungstenSteel, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Glass, 3)) - .noFluidInputs() - .noFluidOutputs() - .duration(30 * SECONDS) - .eut(30) - .addTo(sMaceratorRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 11)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.TungstenSteel, 12), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.TungstenSteel, 3)) - .noFluidInputs() - .noFluidOutputs() - .duration(30 * SECONDS) - .eut(30) - .addTo(sMaceratorRecipes); + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 9)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.TungstenSteel, 2)) + .noFluidInputs() + .noFluidOutputs() + .duration(30 * SECONDS) + .eut(30) + .addTo(sMaceratorRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 10)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.TungstenSteel, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Glass, 3)) + .noFluidInputs() + .noFluidOutputs() + .duration(30 * SECONDS) + .eut(30) + .addTo(sMaceratorRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 11)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.TungstenSteel, 12), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.TungstenSteel, 3)) + .noFluidInputs() + .noFluidOutputs() + .duration(30 * SECONDS) + .eut(30) + .addTo(sMaceratorRecipes); // Palladium GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 12)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Palladium, 2)) - .noFluidInputs() - .noFluidOutputs() - .duration(37 * SECONDS + 10 * TICKS) - .eut(64) - .addTo(sMaceratorRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 13)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Palladium, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Glass, 3)) - .noFluidInputs() - .noFluidOutputs() - .duration(37 * SECONDS + 10 * TICKS) - .eut(64) - .addTo(sMaceratorRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 14)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.NiobiumTitanium, 12), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Chrome, 3)) - .noFluidInputs() - .noFluidOutputs() - .duration(37 * SECONDS + 10 * TICKS) - .eut(64) - .addTo(sMaceratorRecipes); + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 12)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Palladium, 2)) + .noFluidInputs() + .noFluidOutputs() + .duration(37 * SECONDS + 10 * TICKS) + .eut(64) + .addTo(sMaceratorRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 13)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Palladium, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Glass, 3)) + .noFluidInputs() + .noFluidOutputs() + .duration(37 * SECONDS + 10 * TICKS) + .eut(64) + .addTo(sMaceratorRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.zeta", 1L, 14)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.NiobiumTitanium, 12), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Chrome, 3)) + .noFluidInputs() + .noFluidOutputs() + .duration(37 * SECONDS + 10 * TICKS) + .eut(64) + .addTo(sMaceratorRecipes); // Iridium GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 0)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iridium, 2)) - .noFluidInputs() - .noFluidOutputs() - .duration(45 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sMaceratorRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iridium, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Glass, 3)) - .noFluidInputs() - .noFluidOutputs() - .duration(45 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sMaceratorRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 2)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Enderium, 12), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Iridium, 3)) - .noFluidInputs() - .noFluidOutputs() - .duration(45 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sMaceratorRecipes); + .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 0)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iridium, 2)) + .noFluidInputs() + .noFluidOutputs() + .duration(45 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sMaceratorRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 1)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iridium, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Glass, 3)) + .noFluidInputs() + .noFluidOutputs() + .duration(45 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sMaceratorRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 2)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Enderium, 12), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Iridium, 3)) + .noFluidInputs() + .noFluidOutputs() + .duration(45 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sMaceratorRecipes); // Osmium GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 3)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Osmium, 2)) - .noFluidInputs() - .noFluidOutputs() - .duration(52 * SECONDS + 10 * TICKS) - .eut(256) - .addTo(sMaceratorRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 4)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Osmium, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Glass, 3)) - .noFluidInputs() - .noFluidOutputs() - .duration(52 * SECONDS + 10 * TICKS) - .eut(256) - .addTo(sMaceratorRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 5)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadah, 12), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Osmium, 3)) - .noFluidInputs() - .noFluidOutputs() - .duration(52 * SECONDS + 10 * TICKS) - .eut(256) - .addTo(sMaceratorRecipes); + .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 3)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Osmium, 2)) + .noFluidInputs() + .noFluidOutputs() + .duration(52 * SECONDS + 10 * TICKS) + .eut(256) + .addTo(sMaceratorRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 4)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Osmium, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Glass, 3)) + .noFluidInputs() + .noFluidOutputs() + .duration(52 * SECONDS + 10 * TICKS) + .eut(256) + .addTo(sMaceratorRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 5)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadah, 12), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Osmium, 3)) + .noFluidInputs() + .noFluidOutputs() + .duration(52 * SECONDS + 10 * TICKS) + .eut(256) + .addTo(sMaceratorRecipes); // Neutronium GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 6)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Neutronium, 2)) - .noFluidInputs() - .noFluidOutputs() - .duration(60 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMaceratorRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 7)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Neutronium, 1), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Glass, 3)) - .noFluidInputs() - .noFluidOutputs() - .duration(60 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMaceratorRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 8)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Neutronium, 12), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Neutronium, 3)) - .noFluidInputs() - .noFluidOutputs() - .duration(60 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sMaceratorRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Railcraft.ID, "cube.crushed.obsidian", 1L)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Obsidian, 1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(2) - .addTo(sMaceratorRecipes); + .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 6)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Neutronium, 2)) + .noFluidInputs() + .noFluidOutputs() + .duration(60 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sMaceratorRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 7)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Neutronium, 1), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Glass, 3)) + .noFluidInputs() + .noFluidOutputs() + .duration(60 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sMaceratorRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "machine.eta", 1L, 8)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Neutronium, 12), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Neutronium, 3)) + .noFluidInputs() + .noFluidOutputs() + .duration(60 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sMaceratorRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(Railcraft.ID, "cube.crushed.obsidian", 1L)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Obsidian, 1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(2) + .addTo(sMaceratorRecipes); } if (AppliedEnergistics2.isModLoaded()) { GT_Values.RA.stdBuilder() - .itemInputs(getModItem(AppliedEnergistics2.ID, "tile.BlockSkyStone", 1L, 32767)) - .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 45)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(2) - .addTo(sMaceratorRecipes); - - GT_Values.RA.stdBuilder() - .itemInputs(getModItem(AppliedEnergistics2.ID, "tile.BlockSkyChest", 1L, 32767)) - .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 8L, 45)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(2) - .addTo(sMaceratorRecipes); + .itemInputs(getModItem(AppliedEnergistics2.ID, "tile.BlockSkyStone", 1L, 32767)) + .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 45)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(2) + .addTo(sMaceratorRecipes); + + GT_Values.RA.stdBuilder() + .itemInputs(getModItem(AppliedEnergistics2.ID, "tile.BlockSkyChest", 1L, 32767)) + .itemOutputs(getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 8L, 45)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(2) + .addTo(sMaceratorRecipes); } GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.blaze_rod, 1)) - .itemOutputs(new ItemStack(Items.blaze_powder, 3), new ItemStack(Items.blaze_powder, 1)) - .outputChances(10000, 5000) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(2) - .addTo(sMaceratorRecipes); + .itemInputs(new ItemStack(Items.blaze_rod, 1)) + .itemOutputs(new ItemStack(Items.blaze_powder, 3), new ItemStack(Items.blaze_powder, 1)) + .outputChances(10000, 5000) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(2) + .addTo(sMaceratorRecipes); GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.web, 1, 0)) - .itemOutputs(new ItemStack(Items.string, 1), new ItemStack(Items.string, 1)) - .outputChances(10000, 5000) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(2) - .addTo(sMaceratorRecipes); + .itemInputs(new ItemStack(Blocks.web, 1, 0)) + .itemOutputs(new ItemStack(Items.string, 1), new ItemStack(Items.string, 1)) + .outputChances(10000, 5000) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(2) + .addTo(sMaceratorRecipes); GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.red_mushroom, 1, 32767)) - .itemOutputs(ItemList.IC2_Grin_Powder.get(1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(2) - .addTo(sMaceratorRecipes); + .itemInputs(new ItemStack(Blocks.red_mushroom, 1, 32767)) + .itemOutputs(ItemList.IC2_Grin_Powder.get(1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(2) + .addTo(sMaceratorRecipes); GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.item_frame, 1, 32767)) - .itemOutputs( - new ItemStack(Items.leather, 1), - GT_OreDictUnificator.getDust(Materials.Wood, OrePrefixes.stick.mMaterialAmount * 4L)) - .outputChances(10000, 9500) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(2) - .addTo(sMaceratorRecipes); + .itemInputs(new ItemStack(Items.item_frame, 1, 32767)) + .itemOutputs( + new ItemStack(Items.leather, 1), + GT_OreDictUnificator.getDust(Materials.Wood, OrePrefixes.stick.mMaterialAmount * 4L)) + .outputChances(10000, 9500) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(2) + .addTo(sMaceratorRecipes); GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Items.bow, 1, 0)) - .itemOutputs( - new ItemStack(Items.string, 3), - GT_OreDictUnificator.getDust(Materials.Wood, OrePrefixes.stick.mMaterialAmount * 3)) - .outputChances(10000, 9500) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(2) - .addTo(sMaceratorRecipes); + .itemInputs(new ItemStack(Items.bow, 1, 0)) + .itemOutputs( + new ItemStack(Items.string, 3), + GT_OreDictUnificator.getDust(Materials.Wood, OrePrefixes.stick.mMaterialAmount * 3)) + .outputChances(10000, 9500) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(2) + .addTo(sMaceratorRecipes); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Brick.getIngots(1)) - .itemOutputs(Materials.Brick.getDustSmall(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(2) - .addTo(sMaceratorRecipes); + .itemInputs(Materials.Brick.getIngots(1)) + .itemOutputs(Materials.Brick.getDustSmall(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(2) + .addTo(sMaceratorRecipes); GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.brick_stairs, 1, 0)) - .itemOutputs(Materials.Brick.getDustSmall(6)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(2) - .addTo(sMaceratorRecipes); + .itemInputs(new ItemStack(Blocks.brick_stairs, 1, 0)) + .itemOutputs(Materials.Brick.getDustSmall(6)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(2) + .addTo(sMaceratorRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.CompressedFireclay.get(1)) - .itemOutputs(Materials.Fireclay.getDustSmall(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(2) - .addTo(sMaceratorRecipes); + .itemInputs(ItemList.CompressedFireclay.get(1)) + .itemOutputs(Materials.Fireclay.getDustSmall(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(2) + .addTo(sMaceratorRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Firebrick.get(1)) - .itemOutputs(Materials.Brick.getDust(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(2) - .addTo(sMaceratorRecipes); + .itemInputs(ItemList.Firebrick.get(1)) + .itemOutputs(Materials.Brick.getDust(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(2) + .addTo(sMaceratorRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Casing_Firebricks.get(1)) - .itemOutputs(Materials.Brick.getDust(4)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(2) - .addTo(sMaceratorRecipes); + .itemInputs(ItemList.Casing_Firebricks.get(1)) + .itemOutputs(Materials.Brick.getDust(4)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(2) + .addTo(sMaceratorRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Machine_Bricked_BlastFurnace.get(1)) - .itemOutputs(Materials.Brick.getDust(8), Materials.Iron.getDust(1)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(2) - .addTo(sMaceratorRecipes); + .itemInputs(ItemList.Machine_Bricked_BlastFurnace.get(1)) + .itemOutputs(Materials.Brick.getDust(8), Materials.Iron.getDust(1)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(2) + .addTo(sMaceratorRecipes); if (HardcoreEnderExpansion.isModLoaded()) { GT_Values.RA.stdBuilder() - .itemInputs(getModItem(HardcoreEnderExpansion.ID, "endium_ore", 1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.crushed, Materials.HeeEndium, 2), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Endstone, 1)) - .outputChances(10000, 5000) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(2) - .addTo(sMaceratorRecipes); + .itemInputs(getModItem(HardcoreEnderExpansion.ID, "endium_ore", 1)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.crushed, Materials.HeeEndium, 2), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Endstone, 1)) + .outputChances(10000, 5000) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(2) + .addTo(sMaceratorRecipes); } } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/PyrolyseRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/PyrolyseRecipes.java index 062df3d472..502102616e 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/PyrolyseRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/PyrolyseRecipes.java @@ -27,124 +27,124 @@ public class PyrolyseRecipes implements Runnable { public void run() { if (Railcraft.isModLoaded()) { GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Coal, 16), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(RailcraftToolItems.getCoalCoke(16)) - .noFluidInputs() - .fluidOutputs(Materials.Creosote.getFluid(8000)) - .duration(32 * SECONDS) - .eut(64) - .addTo(sPyrolyseRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Coal, 16), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(RailcraftToolItems.getCoalCoke(16)) + .noFluidInputs() + .fluidOutputs(Materials.Creosote.getFluid(8000)) + .duration(32 * SECONDS) + .eut(64) + .addTo(sPyrolyseRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Coal, 16), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(RailcraftToolItems.getCoalCoke(16)) - .fluidInputs(Materials.Nitrogen.getGas(1000)) - .fluidOutputs(Materials.Creosote.getFluid(8000)) - .duration(16 * SECONDS) - .eut(96) - .addTo(sPyrolyseRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Coal, 16), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(RailcraftToolItems.getCoalCoke(16)) + .fluidInputs(Materials.Nitrogen.getGas(1000)) + .fluidOutputs(Materials.Creosote.getFluid(8000)) + .duration(16 * SECONDS) + .eut(96) + .addTo(sPyrolyseRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.block, Materials.Coal, 8), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(EnumCube.COKE_BLOCK.getItem(8)) - .noFluidInputs() - .fluidOutputs(Materials.Creosote.getFluid(32000)) - .duration(2 * MINUTES + 8 * SECONDS) - .eut(64) - .addTo(sPyrolyseRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.block, Materials.Coal, 8), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(EnumCube.COKE_BLOCK.getItem(8)) + .noFluidInputs() + .fluidOutputs(Materials.Creosote.getFluid(32000)) + .duration(2 * MINUTES + 8 * SECONDS) + .eut(64) + .addTo(sPyrolyseRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(OrePrefixes.block, Materials.Coal, 8), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(EnumCube.COKE_BLOCK.getItem(8)) - .fluidInputs(Materials.Nitrogen.getGas(1000)) - .fluidOutputs(Materials.Creosote.getFluid(32000)) - .duration(1 * MINUTES + 4 * SECONDS) - .eut(96) - .addTo(sPyrolyseRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.block, Materials.Coal, 8), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(EnumCube.COKE_BLOCK.getItem(8)) + .fluidInputs(Materials.Nitrogen.getGas(1000)) + .fluidOutputs(Materials.Creosote.getFluid(32000)) + .duration(1 * MINUTES + 4 * SECONDS) + .eut(96) + .addTo(sPyrolyseRecipes); } if (!GregTech_API.mIC2Classic) { GT_Values.RA.stdBuilder() - .itemInputs(GT_ModHandler.getIC2Item("biochaff", 4), GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .fluidInputs(Materials.Water.getFluid(4000)) - .fluidOutputs(new FluidStack(FluidRegistry.getFluid("ic2biomass"), 5000)) - .duration(45 * SECONDS) - .eut(10) - .addTo(sPyrolyseRecipes); + .itemInputs(GT_ModHandler.getIC2Item("biochaff", 4), GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .fluidInputs(Materials.Water.getFluid(4000)) + .fluidOutputs(new FluidStack(FluidRegistry.getFluid("ic2biomass"), 5000)) + .duration(45 * SECONDS) + .eut(10) + .addTo(sPyrolyseRecipes); } if (Forestry.isModLoaded()) { GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Forestry.ID, "fertilizerBio", 4), GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .fluidInputs(Materials.Water.getFluid(4000)) - .fluidOutputs(Materials.Biomass.getFluid(5000)) - .duration(45 * SECONDS) - .eut(10) - .addTo(sPyrolyseRecipes); + .itemInputs(getModItem(Forestry.ID, "fertilizerBio", 4), GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .fluidInputs(Materials.Water.getFluid(4000)) + .fluidOutputs(Materials.Biomass.getFluid(5000)) + .duration(45 * SECONDS) + .eut(10) + .addTo(sPyrolyseRecipes); GT_Values.RA.stdBuilder() - .itemInputs(getModItem(Forestry.ID, "mulch", 32), GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .fluidInputs(Materials.Water.getFluid(4000)) - .fluidOutputs(Materials.Biomass.getFluid(5000)) - .duration(45 * SECONDS) - .eut(10) - .addTo(sPyrolyseRecipes); + .itemInputs(getModItem(Forestry.ID, "mulch", 32), GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .fluidInputs(Materials.Water.getFluid(4000)) + .fluidOutputs(Materials.Biomass.getFluid(5000)) + .duration(45 * SECONDS) + .eut(10) + .addTo(sPyrolyseRecipes); } GT_Values.RA.stdBuilder() - .itemInputs(GT_ModHandler.getIC2Item("biochaff", 1), GT_Utility.getIntegratedCircuit(2)) - .noItemOutputs() - .fluidInputs(Materials.Water.getFluid(1500)) - .fluidOutputs(Materials.FermentedBiomass.getFluid(1500)) - .duration(10 * SECONDS) - .eut(10) - .addTo(sPyrolyseRecipes); + .itemInputs(GT_ModHandler.getIC2Item("biochaff", 1), GT_Utility.getIntegratedCircuit(2)) + .noItemOutputs() + .fluidInputs(Materials.Water.getFluid(1500)) + .fluidOutputs(Materials.FermentedBiomass.getFluid(1500)) + .duration(10 * SECONDS) + .eut(10) + .addTo(sPyrolyseRecipes); GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(new FluidStack(FluidRegistry.getFluid("ic2biomass"), 1000)) - .fluidOutputs(Materials.FermentedBiomass.getFluid(1000)) - .duration(5 * SECONDS) - .eut(10) - .addTo(sPyrolyseRecipes); + .noItemInputs() + .noItemOutputs() + .fluidInputs(new FluidStack(FluidRegistry.getFluid("ic2biomass"), 1000)) + .fluidOutputs(Materials.FermentedBiomass.getFluid(1000)) + .duration(5 * SECONDS) + .eut(10) + .addTo(sPyrolyseRecipes); GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.Biomass.getFluid(1000)) - .fluidOutputs(Materials.FermentedBiomass.getFluid(1000)) - .duration(5 * SECONDS) - .eut(10) - .addTo(sPyrolyseRecipes); + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.Biomass.getFluid(1000)) + .fluidOutputs(Materials.FermentedBiomass.getFluid(1000)) + .duration(5 * SECONDS) + .eut(10) + .addTo(sPyrolyseRecipes); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Sugar.getDust(23), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(Materials.Charcoal.getDust(12)) - .noFluidInputs() - .fluidOutputs(Materials.Water.getFluid(1500)) - .duration(16 * SECONDS) - .eut(64) - .addTo(sPyrolyseRecipes); + .itemInputs(Materials.Sugar.getDust(23), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(Materials.Charcoal.getDust(12)) + .noFluidInputs() + .fluidOutputs(Materials.Water.getFluid(1500)) + .duration(16 * SECONDS) + .eut(64) + .addTo(sPyrolyseRecipes); GT_Values.RA.stdBuilder() - .itemInputs(Materials.Sugar.getDust(23), GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(Materials.Charcoal.getDust(12)) - .fluidInputs(Materials.Nitrogen.getGas(500)) - .fluidOutputs(Materials.Water.getFluid(1500)) - .duration(8 * SECONDS) - .eut(96) - .addTo(sPyrolyseRecipes); + .itemInputs(Materials.Sugar.getDust(23), GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(Materials.Charcoal.getDust(12)) + .fluidInputs(Materials.Nitrogen.getGas(500)) + .fluidOutputs(Materials.Water.getFluid(1500)) + .duration(8 * SECONDS) + .eut(96) + .addTo(sPyrolyseRecipes); } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/RecipeRemover.java b/src/main/java/gregtech/loaders/postload/recipes/RecipeRemover.java index cf2e88f364..708ffa4cec 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/RecipeRemover.java +++ b/src/main/java/gregtech/loaders/postload/recipes/RecipeRemover.java @@ -41,89 +41,91 @@ public class RecipeRemover implements Runnable { try { GT_Utility.removeSimpleIC2MachineRecipe( - GT_Values.NI, - ic2.api.recipe.Recipes.metalformerExtruding.getRecipes(), - ItemList.Cell_Empty.get(3L)); + GT_Values.NI, + ic2.api.recipe.Recipes.metalformerExtruding.getRecipes(), + ItemList.Cell_Empty.get(3L)); GT_Utility.removeSimpleIC2MachineRecipe( - ItemList.IC2_Energium_Dust.get(1L), - ic2.api.recipe.Recipes.compressor.getRecipes(), - GT_Values.NI); + ItemList.IC2_Energium_Dust.get(1L), + ic2.api.recipe.Recipes.compressor.getRecipes(), + GT_Values.NI); GT_Utility.removeSimpleIC2MachineRecipe( - new ItemStack(Items.gunpowder), - ic2.api.recipe.Recipes.extractor.getRecipes(), - GT_Values.NI); + new ItemStack(Items.gunpowder), + ic2.api.recipe.Recipes.extractor.getRecipes(), + GT_Values.NI); GT_Utility.removeSimpleIC2MachineRecipe( - new ItemStack(Blocks.wool, 1, 32767), - ic2.api.recipe.Recipes.extractor.getRecipes(), - GT_Values.NI); + new ItemStack(Blocks.wool, 1, 32767), + ic2.api.recipe.Recipes.extractor.getRecipes(), + GT_Values.NI); GT_Utility.removeSimpleIC2MachineRecipe( - new ItemStack(Blocks.gravel), - ic2.api.recipe.Recipes.oreWashing.getRecipes(), - GT_Values.NI); + new ItemStack(Blocks.gravel), + ic2.api.recipe.Recipes.oreWashing.getRecipes(), + GT_Values.NI); } catch (Throwable ignored) {} GT_Utility.removeIC2BottleRecipe( - GT_ModHandler.getIC2Item("fuelRod", 1), - GT_ModHandler.getIC2Item("UranFuel", 1), - ic2.api.recipe.Recipes.cannerBottle.getRecipes(), - GT_ModHandler.getIC2Item("reactorUraniumSimple", 1, 1)); + GT_ModHandler.getIC2Item("fuelRod", 1), + GT_ModHandler.getIC2Item("UranFuel", 1), + ic2.api.recipe.Recipes.cannerBottle.getRecipes(), + GT_ModHandler.getIC2Item("reactorUraniumSimple", 1, 1)); GT_Utility.removeIC2BottleRecipe( - GT_ModHandler.getIC2Item("fuelRod", 1), - GT_ModHandler.getIC2Item("MOXFuel", 1), - ic2.api.recipe.Recipes.cannerBottle.getRecipes(), - GT_ModHandler.getIC2Item("reactorMOXSimple", 1, 1)); + GT_ModHandler.getIC2Item("fuelRod", 1), + GT_ModHandler.getIC2Item("MOXFuel", 1), + ic2.api.recipe.Recipes.cannerBottle.getRecipes(), + GT_ModHandler.getIC2Item("reactorMOXSimple", 1, 1)); GT_Utility.removeSimpleIC2MachineRecipe( - new ItemStack(Blocks.cobblestone), - GT_ModHandler.getMaceratorRecipeList(), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Stone, 1L)); + new ItemStack(Blocks.cobblestone), + GT_ModHandler.getMaceratorRecipeList(), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Stone, 1L)); GT_Utility.removeSimpleIC2MachineRecipe( - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Lapis, 1L), - GT_ModHandler.getMaceratorRecipeList(), - ItemList.IC2_Plantball.get(1L)); + GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Lapis, 1L), + GT_ModHandler.getMaceratorRecipeList(), + ItemList.IC2_Plantball.get(1L)); GT_Utility.removeSimpleIC2MachineRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1L), - GT_ModHandler.getMaceratorRecipeList(), - ItemList.IC2_Plantball.get(1L)); + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1L), + GT_ModHandler.getMaceratorRecipeList(), + ItemList.IC2_Plantball.get(1L)); GT_Utility.removeSimpleIC2MachineRecipe( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glowstone, 1L), - GT_ModHandler.getMaceratorRecipeList(), - ItemList.IC2_Plantball.get(1L)); + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glowstone, 1L), + GT_ModHandler.getMaceratorRecipeList(), + ItemList.IC2_Plantball.get(1L)); GT_Utility.removeSimpleIC2MachineRecipe( - GT_Values.NI, - GT_ModHandler.getMaceratorRecipeList(), - getModItem(IndustrialCraft2.ID, "itemBiochaff", 1L)); + GT_Values.NI, + GT_ModHandler.getMaceratorRecipeList(), + getModItem(IndustrialCraft2.ID, "itemBiochaff", 1L)); GT_Utility.removeSimpleIC2MachineRecipe( - new ItemStack(Blocks.cactus, 8, 0), - GT_ModHandler.getCompressorRecipeList(), - getModItem(IndustrialCraft2.ID, "itemFuelPlantBall", 1L)); + new ItemStack(Blocks.cactus, 8, 0), + GT_ModHandler.getCompressorRecipeList(), + getModItem(IndustrialCraft2.ID, "itemFuelPlantBall", 1L)); GT_Utility.removeSimpleIC2MachineRecipe( - getModItem(ExtraTrees.ID, "food", 8L, 24), - GT_ModHandler.getCompressorRecipeList(), - getModItem(IndustrialCraft2.ID, "itemFuelPlantBall", 1L)); + getModItem(ExtraTrees.ID, "food", 8L, 24), + GT_ModHandler.getCompressorRecipeList(), + getModItem(IndustrialCraft2.ID, "itemFuelPlantBall", 1L)); GT_Utility.removeSimpleIC2MachineRecipe( - ItemList.Crop_Drop_BobsYerUncleRanks.get(1L), - GT_ModHandler.getExtractorRecipeList(), - null); + ItemList.Crop_Drop_BobsYerUncleRanks.get(1L), + GT_ModHandler.getExtractorRecipeList(), + null); GT_Utility.removeSimpleIC2MachineRecipe( - ItemList.Crop_Drop_Ferru.get(1L), - GT_ModHandler.getExtractorRecipeList(), - null); + ItemList.Crop_Drop_Ferru.get(1L), + GT_ModHandler.getExtractorRecipeList(), + null); GT_Utility.removeSimpleIC2MachineRecipe( - ItemList.Crop_Drop_Aurelia.get(1L), - GT_ModHandler.getExtractorRecipeList(), - null); + ItemList.Crop_Drop_Aurelia.get(1L), + GT_ModHandler.getExtractorRecipeList(), + null); if (!GregTech_API.mIC2Classic) { try { - Map tLiqExchange = ic2.api.recipe.Recipes.liquidCooldownManager.getHeatExchangeProperties(); - Iterator> tIterator = tLiqExchange.entrySet() - .iterator(); + Map tLiqExchange = ic2.api.recipe.Recipes.liquidCooldownManager + .getHeatExchangeProperties(); + Iterator> tIterator = tLiqExchange + .entrySet() + .iterator(); while (tIterator.hasNext()) { Map.Entry tEntry = tIterator.next(); if (tEntry.getKey() - .equals("ic2hotcoolant")) { + .equals("ic2hotcoolant")) { tIterator.remove(); Recipes.liquidCooldownManager.addFluid("ic2hotcoolant", "ic2coolant", 100); } @@ -133,13 +135,15 @@ public class RecipeRemover implements Runnable { } try { - Map tLiqExchange = ic2.api.recipe.Recipes.liquidHeatupManager.getHeatExchangeProperties(); - Iterator> tIterator = tLiqExchange.entrySet() - .iterator(); + Map tLiqExchange = ic2.api.recipe.Recipes.liquidHeatupManager + .getHeatExchangeProperties(); + Iterator> tIterator = tLiqExchange + .entrySet() + .iterator(); while (tIterator.hasNext()) { Map.Entry tEntry = tIterator.next(); if (tEntry.getKey() - .equals("ic2coolant")) { + .equals("ic2coolant")) { tIterator.remove(); Recipes.liquidHeatupManager.addFluid("ic2coolant", "ic2hotcoolant", 100); } @@ -152,13 +156,13 @@ public class RecipeRemover implements Runnable { public void removeSmelting() { GT_ModHandler.removeFurnaceSmelting(GT_OreDictUnificator.get(OrePrefixes.ore, Materials.Graphite, 1L)); - GT_ModHandler.removeFurnaceSmelting( - GT_OreDictUnificator.get(OrePrefixes.oreBlackgranite, Materials.Graphite, 1L)); + GT_ModHandler + .removeFurnaceSmelting(GT_OreDictUnificator.get(OrePrefixes.oreBlackgranite, Materials.Graphite, 1L)); GT_ModHandler.removeFurnaceSmelting(GT_OreDictUnificator.get(OrePrefixes.oreEndstone, Materials.Graphite, 1L)); - GT_ModHandler.removeFurnaceSmelting( - GT_OreDictUnificator.get(OrePrefixes.oreNetherrack, Materials.Graphite, 1L)); - GT_ModHandler.removeFurnaceSmelting( - GT_OreDictUnificator.get(OrePrefixes.oreRedgranite, Materials.Graphite, 1L)); + GT_ModHandler + .removeFurnaceSmelting(GT_OreDictUnificator.get(OrePrefixes.oreNetherrack, Materials.Graphite, 1L)); + GT_ModHandler + .removeFurnaceSmelting(GT_OreDictUnificator.get(OrePrefixes.oreRedgranite, Materials.Graphite, 1L)); GT_ModHandler.removeFurnaceSmelting(ItemList.IC2_Resin.get(1L)); } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/SifterRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/SifterRecipes.java index c6d02c3c97..93568ce733 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/SifterRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/SifterRecipes.java @@ -17,35 +17,35 @@ public class SifterRecipes implements Runnable { @Override public void run() { GT_Values.RA.stdBuilder() - .itemInputs(new ItemStack(Blocks.gravel, 1, 0)) - .itemOutputs( - new ItemStack(Items.flint, 1, 0), - new ItemStack(Items.flint, 1, 0), - new ItemStack(Items.flint, 1, 0), - new ItemStack(Items.flint, 1, 0), - new ItemStack(Items.flint, 1, 0), - new ItemStack(Items.flint, 1, 0)) - .outputChances(10000, 9000, 8000, 6000, 3300, 2500) - .noFluidInputs() - .noFluidOutputs() - .duration(30 * SECONDS) - .eut(16) - .addTo(sSifterRecipes); + .itemInputs(new ItemStack(Blocks.gravel, 1, 0)) + .itemOutputs( + new ItemStack(Items.flint, 1, 0), + new ItemStack(Items.flint, 1, 0), + new ItemStack(Items.flint, 1, 0), + new ItemStack(Items.flint, 1, 0), + new ItemStack(Items.flint, 1, 0), + new ItemStack(Items.flint, 1, 0)) + .outputChances(10000, 9000, 8000, 6000, 3300, 2500) + .noFluidInputs() + .noFluidOutputs() + .duration(30 * SECONDS) + .eut(16) + .addTo(sSifterRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.crushedPurified, Materials.Coal, 1L)) - .itemOutputs( - new ItemStack(Items.coal, 1, 0), - new ItemStack(Items.coal, 1, 0), - new ItemStack(Items.coal, 1, 0), - new ItemStack(Items.coal, 1, 0), - new ItemStack(Items.coal, 1, 0), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Coal, 1L)) - .outputChances(10000, 9000, 8000, 7000, 6000, 5000) - .noFluidInputs() - .noFluidOutputs() - .duration(30 * SECONDS) - .eut(16) - .addTo(sSifterRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.crushedPurified, Materials.Coal, 1L)) + .itemOutputs( + new ItemStack(Items.coal, 1, 0), + new ItemStack(Items.coal, 1, 0), + new ItemStack(Items.coal, 1, 0), + new ItemStack(Items.coal, 1, 0), + new ItemStack(Items.coal, 1, 0), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Coal, 1L)) + .outputChances(10000, 9000, 8000, 7000, 6000, 5000) + .noFluidInputs() + .noFluidOutputs() + .duration(30 * SECONDS) + .eut(16) + .addTo(sSifterRecipes); } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/SlicerRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/SlicerRecipes.java index 05c0a53f69..530dd5abce 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/SlicerRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/SlicerRecipes.java @@ -12,39 +12,39 @@ public class SlicerRecipes implements Runnable { @Override public void run() { GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Food_Dough_Chocolate.get(1), ItemList.Shape_Slicer_Flat.get(0)) - .itemOutputs(ItemList.Food_Raw_Cookie.get(4)) - .noFluidInputs() - .noFluidOutputs() - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sSlicerRecipes); + .itemInputs(ItemList.Food_Dough_Chocolate.get(1), ItemList.Shape_Slicer_Flat.get(0)) + .itemOutputs(ItemList.Food_Raw_Cookie.get(4)) + .noFluidInputs() + .noFluidOutputs() + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sSlicerRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Food_Baked_Bun.get(1), ItemList.Shape_Slicer_Flat.get(0)) - .itemOutputs(ItemList.Food_Sliced_Bun.get(2)) - .noFluidInputs() - .noFluidOutputs() - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sSlicerRecipes); + .itemInputs(ItemList.Food_Baked_Bun.get(1), ItemList.Shape_Slicer_Flat.get(0)) + .itemOutputs(ItemList.Food_Sliced_Bun.get(2)) + .noFluidInputs() + .noFluidOutputs() + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sSlicerRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Food_Baked_Bread.get(1), ItemList.Shape_Slicer_Flat.get(0)) - .itemOutputs(ItemList.Food_Sliced_Bread.get(2)) - .noFluidInputs() - .noFluidOutputs() - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sSlicerRecipes); + .itemInputs(ItemList.Food_Baked_Bread.get(1), ItemList.Shape_Slicer_Flat.get(0)) + .itemOutputs(ItemList.Food_Sliced_Bread.get(2)) + .noFluidInputs() + .noFluidOutputs() + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sSlicerRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Food_Baked_Baguette.get(1), ItemList.Shape_Slicer_Flat.get(0)) - .itemOutputs(ItemList.Food_Sliced_Baguette.get(2)) - .noFluidInputs() - .noFluidOutputs() - .duration(6 * SECONDS + 8 * TICKS) - .eut(4) - .addTo(sSlicerRecipes); + .itemInputs(ItemList.Food_Baked_Baguette.get(1), ItemList.Shape_Slicer_Flat.get(0)) + .itemOutputs(ItemList.Food_Sliced_Baguette.get(2)) + .noFluidInputs() + .noFluidOutputs() + .duration(6 * SECONDS + 8 * TICKS) + .eut(4) + .addTo(sSlicerRecipes); } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/SmelterRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/SmelterRecipes.java index 7507c1f58e..e56cc613e7 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/SmelterRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/SmelterRecipes.java @@ -16,9 +16,8 @@ public class SmelterRecipes implements Runnable { public void run() { GT_ModHandler.addSmeltingRecipe(ItemList.Food_Raw_PotatoChips.get(1L), ItemList.Food_PotatoChips.get(1L)); - GT_ModHandler.addSmeltingRecipe( - ItemList.Food_Potato_On_Stick.get(1L), - ItemList.Food_Potato_On_Stick_Roasted.get(1L)); + GT_ModHandler + .addSmeltingRecipe(ItemList.Food_Potato_On_Stick.get(1L), ItemList.Food_Potato_On_Stick_Roasted.get(1L)); GT_ModHandler.addSmeltingRecipe(ItemList.Food_Raw_Bun.get(1L), ItemList.Food_Baked_Bun.get(1L)); @@ -26,13 +25,11 @@ public class SmelterRecipes implements Runnable { GT_ModHandler.addSmeltingRecipe(ItemList.Food_Raw_Baguette.get(1L), ItemList.Food_Baked_Baguette.get(1L)); - GT_ModHandler.addSmeltingRecipe( - ItemList.Food_Raw_Pizza_Veggie.get(1L), - ItemList.Food_Baked_Pizza_Veggie.get(1L)); + GT_ModHandler + .addSmeltingRecipe(ItemList.Food_Raw_Pizza_Veggie.get(1L), ItemList.Food_Baked_Pizza_Veggie.get(1L)); - GT_ModHandler.addSmeltingRecipe( - ItemList.Food_Raw_Pizza_Cheese.get(1L), - ItemList.Food_Baked_Pizza_Cheese.get(1L)); + GT_ModHandler + .addSmeltingRecipe(ItemList.Food_Raw_Pizza_Cheese.get(1L), ItemList.Food_Baked_Pizza_Cheese.get(1L)); GT_ModHandler.addSmeltingRecipe(ItemList.Food_Raw_Pizza_Meat.get(1L), ItemList.Food_Baked_Pizza_Meat.get(1L)); @@ -45,28 +42,28 @@ public class SmelterRecipes implements Runnable { GT_ModHandler.addSmeltingRecipe(new ItemStack(Items.slime_ball, 1), ItemList.IC2_Resin.get(1L)); GT_ModHandler.addSmeltingRecipe( - GT_OreDictUnificator.get(OrePrefixes.ore, Materials.Graphite, 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Graphite, 1L)); + GT_OreDictUnificator.get(OrePrefixes.ore, Materials.Graphite, 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Graphite, 1L)); GT_ModHandler.addSmeltingRecipe( - GT_OreDictUnificator.get(OrePrefixes.oreBlackgranite, Materials.Graphite, 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Graphite, 1L)); + GT_OreDictUnificator.get(OrePrefixes.oreBlackgranite, Materials.Graphite, 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Graphite, 1L)); GT_ModHandler.addSmeltingRecipe( - GT_OreDictUnificator.get(OrePrefixes.oreEndstone, Materials.Graphite, 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Graphite, 1L)); + GT_OreDictUnificator.get(OrePrefixes.oreEndstone, Materials.Graphite, 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Graphite, 1L)); GT_ModHandler.addSmeltingRecipe( - GT_OreDictUnificator.get(OrePrefixes.oreNetherrack, Materials.Graphite, 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Graphite, 1L)); + GT_OreDictUnificator.get(OrePrefixes.oreNetherrack, Materials.Graphite, 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Graphite, 1L)); GT_ModHandler.addSmeltingRecipe( - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Iron, 1L), - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.WroughtIron, 1L)); + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Iron, 1L), + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.WroughtIron, 1L)); GT_ModHandler.addSmeltingRecipe( - GT_OreDictUnificator.get(OrePrefixes.oreRedgranite, Materials.Graphite, 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Graphite, 1L)); + GT_OreDictUnificator.get(OrePrefixes.oreRedgranite, Materials.Graphite, 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Graphite, 1L)); GameRegistry.addSmelting(ItemList.CompressedFireclay.get(1), ItemList.Firebrick.get(1), 0); } diff --git a/src/main/java/gregtech/loaders/postload/recipes/ThaumcraftRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/ThaumcraftRecipes.java index 9af6836ce3..d44e1aa640 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/ThaumcraftRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/ThaumcraftRecipes.java @@ -32,933 +32,930 @@ public class ThaumcraftRecipes implements Runnable { // Add Recipe for TC Crucible: Salis Mundus to Balanced Shards String tKey = "GT_BALANCE_SHARD_RECIPE"; GregTech_API.sThaumcraftCompat.addCrucibleRecipe( - "TB.SM", - getModItem(Thaumcraft.ID, "ItemResource", 1L, 14), - getModItem(Thaumcraft.ID, "ItemShard", 1L, 6), - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.PRAECANTATIO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 1L))); + "TB.SM", + getModItem(Thaumcraft.ID, "ItemResource", 1L, 14), + getModItem(Thaumcraft.ID, "ItemShard", 1L, 6), + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.PRAECANTATIO, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 1L))); tKey = "GT_WOOD_TO_CHARCOAL"; GT_LanguageManager.addStringLocalization( - GT_MachineRecipeLoader.aTextTCGTPage + tKey, - "You have discovered a way of making charcoal magically instead of using regular ovens for this purpose.

To create charcoal from wood you first need an air-free environment, some vacuus essentia is needed for that, then you need to incinerate the wood using ignis essentia and wait until all the water inside the wood is burned away.

This method however doesn't create creosote oil as byproduct."); + GT_MachineRecipeLoader.aTextTCGTPage + tKey, + "You have discovered a way of making charcoal magically instead of using regular ovens for this purpose.

To create charcoal from wood you first need an air-free environment, some vacuus essentia is needed for that, then you need to incinerate the wood using ignis essentia and wait until all the water inside the wood is burned away.

This method however doesn't create creosote oil as byproduct."); GregTech_API.sThaumcraftCompat.addResearch( - tKey, - "Charcoal Transmutation", - "Turning wood into charcoal", - new String[] { "ALUMENTUM" }, - "ALCHEMY", - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Charcoal, 1L), - 2, - 0, - 13, - 5, - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 10L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 8L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 8L)), - null, - new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, - GregTech_API.sThaumcraftCompat.addCrucibleRecipe( - tKey, - OrePrefixes.log.get(Materials.Wood), - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Charcoal, 1L), - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))) }); + tKey, + "Charcoal Transmutation", + "Turning wood into charcoal", + new String[] { "ALUMENTUM" }, + "ALCHEMY", + GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Charcoal, 1L), + 2, + 0, + 13, + 5, + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 10L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 8L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 8L)), + null, + new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, + GregTech_API.sThaumcraftCompat.addCrucibleRecipe( + tKey, + OrePrefixes.log.get(Materials.Wood), + GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Charcoal, 1L), + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))) }); tKey = "GT_FILL_WATER_BUCKET"; GT_LanguageManager.addStringLocalization( - GT_MachineRecipeLoader.aTextTCGTPage + tKey, - "You have discovered a way of filling a bucket with aqua essentia in order to simply get water."); + GT_MachineRecipeLoader.aTextTCGTPage + tKey, + "You have discovered a way of filling a bucket with aqua essentia in order to simply get water."); GregTech_API.sThaumcraftCompat.addResearch( - tKey, - "Water Transmutation", - "Filling buckets with water", - null, - "ALCHEMY", - GT_OreDictUnificator.get(OrePrefixes.bucket, Materials.Water, 1L), - 2, - 0, - 16, - 5, - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 4L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 4L)), - null, - new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, - GregTech_API.sThaumcraftCompat.addCrucibleRecipe( - tKey, - GT_OreDictUnificator.get(OrePrefixes.bucket, Materials.Empty, 1L), - GT_OreDictUnificator.get(OrePrefixes.bucket, Materials.Water, 1L), - Collections.singletonList(new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 4L))), - GregTech_API.sThaumcraftCompat.addCrucibleRecipe( - tKey, - GT_OreDictUnificator.get(OrePrefixes.bucketClay, Materials.Empty, 1L), - GT_OreDictUnificator.get(OrePrefixes.bucketClay, Materials.Water, 1L), - Collections.singletonList(new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 4L))), - GregTech_API.sThaumcraftCompat.addCrucibleRecipe( - tKey, - GT_OreDictUnificator.get(OrePrefixes.capsule, Materials.Empty, 1L), - GT_OreDictUnificator.get(OrePrefixes.capsule, Materials.Water, 1L), - Collections.singletonList(new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 4L))), - GregTech_API.sThaumcraftCompat.addCrucibleRecipe( - tKey, - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Empty, 1L), - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Water, 1L), - Collections.singletonList(new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 4L))) }); + tKey, + "Water Transmutation", + "Filling buckets with water", + null, + "ALCHEMY", + GT_OreDictUnificator.get(OrePrefixes.bucket, Materials.Water, 1L), + 2, + 0, + 16, + 5, + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 4L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 4L)), + null, + new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, + GregTech_API.sThaumcraftCompat.addCrucibleRecipe( + tKey, + GT_OreDictUnificator.get(OrePrefixes.bucket, Materials.Empty, 1L), + GT_OreDictUnificator.get(OrePrefixes.bucket, Materials.Water, 1L), + Collections.singletonList(new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 4L))), + GregTech_API.sThaumcraftCompat.addCrucibleRecipe( + tKey, + GT_OreDictUnificator.get(OrePrefixes.bucketClay, Materials.Empty, 1L), + GT_OreDictUnificator.get(OrePrefixes.bucketClay, Materials.Water, 1L), + Collections.singletonList(new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 4L))), + GregTech_API.sThaumcraftCompat.addCrucibleRecipe( + tKey, + GT_OreDictUnificator.get(OrePrefixes.capsule, Materials.Empty, 1L), + GT_OreDictUnificator.get(OrePrefixes.capsule, Materials.Water, 1L), + Collections.singletonList(new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 4L))), + GregTech_API.sThaumcraftCompat.addCrucibleRecipe( + tKey, + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Empty, 1L), + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Water, 1L), + Collections.singletonList(new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 4L))) }); tKey = "GT_TRANSZINC"; GT_LanguageManager.addStringLocalization( - GT_MachineRecipeLoader.aTextTCGTPage + tKey, - "You have discovered a way to multiply zinc by steeping zinc nuggets in metallum harvested from other metals."); + GT_MachineRecipeLoader.aTextTCGTPage + tKey, + "You have discovered a way to multiply zinc by steeping zinc nuggets in metallum harvested from other metals."); GregTech_API.sThaumcraftCompat.addResearch( - tKey, - "Zinc Transmutation", - "Transformation of metals into zinc", - new String[] { "TRANSTIN" }, - "ALCHEMY", - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Zinc, 1L), - 2, - 1, - 9, - 13, - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 5L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 3L), - new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 3L)), - null, - new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, - GregTech_API.sThaumcraftCompat.addCrucibleRecipe( - tKey, - OrePrefixes.nugget.get(Materials.Zinc), - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Zinc, 3L), - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 1L))) }); + tKey, + "Zinc Transmutation", + "Transformation of metals into zinc", + new String[] { "TRANSTIN" }, + "ALCHEMY", + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Zinc, 1L), + 2, + 1, + 9, + 13, + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 5L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 3L), + new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 3L)), + null, + new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, + GregTech_API.sThaumcraftCompat.addCrucibleRecipe( + tKey, + OrePrefixes.nugget.get(Materials.Zinc), + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Zinc, 3L), + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 1L))) }); tKey = "GT_TRANSANTIMONY"; GT_LanguageManager.addStringLocalization( - GT_MachineRecipeLoader.aTextTCGTPage + tKey, - "You have discovered a way to multiply antimony by steeping antimony nuggets in metallum harvested from other metals."); + GT_MachineRecipeLoader.aTextTCGTPage + tKey, + "You have discovered a way to multiply antimony by steeping antimony nuggets in metallum harvested from other metals."); GregTech_API.sThaumcraftCompat.addResearch( - tKey, - "Antimony Transmutation", - "Transformation of metals into antimony", - new String[] { "GT_TRANSZINC", "TRANSLEAD" }, - "ALCHEMY", - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Antimony, 1L), - 2, - 1, - 9, - 14, - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 5L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 3L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 3L)), - null, - new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, - GregTech_API.sThaumcraftCompat.addCrucibleRecipe( - tKey, - OrePrefixes.nugget.get(Materials.Antimony), - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Antimony, 3L), - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L))) }); + tKey, + "Antimony Transmutation", + "Transformation of metals into antimony", + new String[] { "GT_TRANSZINC", "TRANSLEAD" }, + "ALCHEMY", + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Antimony, 1L), + 2, + 1, + 9, + 14, + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 5L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 3L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 3L)), + null, + new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, + GregTech_API.sThaumcraftCompat.addCrucibleRecipe( + tKey, + OrePrefixes.nugget.get(Materials.Antimony), + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Antimony, 3L), + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L))) }); tKey = "GT_TRANSNICKEL"; GT_LanguageManager.addStringLocalization( - GT_MachineRecipeLoader.aTextTCGTPage + tKey, - "You have discovered a way to multiply nickel by steeping nickel nuggets in metallum harvested from other metals."); + GT_MachineRecipeLoader.aTextTCGTPage + tKey, + "You have discovered a way to multiply nickel by steeping nickel nuggets in metallum harvested from other metals."); GregTech_API.sThaumcraftCompat.addResearch( - tKey, - "Nickel Transmutation", - "Transformation of metals into nickel", - new String[] { "TRANSLEAD" }, - "ALCHEMY", - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Nickel, 1L), - 2, - 1, - 9, - 15, - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 5L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 3L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 3L)), - null, - new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, - GregTech_API.sThaumcraftCompat.addCrucibleRecipe( - tKey, - OrePrefixes.nugget.get(Materials.Nickel), - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Nickel, 3L), - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))) }); + tKey, + "Nickel Transmutation", + "Transformation of metals into nickel", + new String[] { "TRANSLEAD" }, + "ALCHEMY", + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Nickel, 1L), + 2, + 1, + 9, + 15, + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 5L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 3L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 3L)), + null, + new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, + GregTech_API.sThaumcraftCompat.addCrucibleRecipe( + tKey, + OrePrefixes.nugget.get(Materials.Nickel), + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Nickel, 3L), + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))) }); tKey = "GT_TRANSCOBALT"; GT_LanguageManager.addStringLocalization( - GT_MachineRecipeLoader.aTextTCGTPage + tKey, - "You have discovered a way to multiply cobalt by steeping cobalt nuggets in metallum harvested from other metals."); + GT_MachineRecipeLoader.aTextTCGTPage + tKey, + "You have discovered a way to multiply cobalt by steeping cobalt nuggets in metallum harvested from other metals."); GregTech_API.sThaumcraftCompat.addResearch( - tKey, - "Cobalt Transmutation", - "Transformation of metals into cobalt", - new String[] { "GT_TRANSNICKEL" }, - "ALCHEMY", - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Cobalt, 1L), - 2, - 1, - 9, - 16, - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 5L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 3L), - new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 3L)), - null, - new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, - GregTech_API.sThaumcraftCompat.addCrucibleRecipe( - tKey, - OrePrefixes.nugget.get(Materials.Cobalt), - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Cobalt, 3L), - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 1L))) }); + tKey, + "Cobalt Transmutation", + "Transformation of metals into cobalt", + new String[] { "GT_TRANSNICKEL" }, + "ALCHEMY", + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Cobalt, 1L), + 2, + 1, + 9, + 16, + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 5L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 3L), + new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 3L)), + null, + new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, + GregTech_API.sThaumcraftCompat.addCrucibleRecipe( + tKey, + OrePrefixes.nugget.get(Materials.Cobalt), + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Cobalt, 3L), + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 1L))) }); tKey = "GT_TRANSBISMUTH"; GT_LanguageManager.addStringLocalization( - GT_MachineRecipeLoader.aTextTCGTPage + tKey, - "You have discovered a way to multiply bismuth by steeping bismuth nuggets in metallum harvested from other metals."); + GT_MachineRecipeLoader.aTextTCGTPage + tKey, + "You have discovered a way to multiply bismuth by steeping bismuth nuggets in metallum harvested from other metals."); GregTech_API.sThaumcraftCompat.addResearch( - tKey, - "Bismuth Transmutation", - "Transformation of metals into bismuth", - new String[] { "GT_TRANSCOBALT" }, - "ALCHEMY", - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Bismuth, 1L), - 2, - 1, - 11, - 17, - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 5L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 3L), - new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 3L)), - null, - new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, - GregTech_API.sThaumcraftCompat.addCrucibleRecipe( - tKey, - OrePrefixes.nugget.get(Materials.Bismuth), - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Bismuth, 3L), - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 1L))) }); + tKey, + "Bismuth Transmutation", + "Transformation of metals into bismuth", + new String[] { "GT_TRANSCOBALT" }, + "ALCHEMY", + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Bismuth, 1L), + 2, + 1, + 11, + 17, + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 5L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 3L), + new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 3L)), + null, + new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, + GregTech_API.sThaumcraftCompat.addCrucibleRecipe( + tKey, + OrePrefixes.nugget.get(Materials.Bismuth), + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Bismuth, 3L), + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 1L))) }); tKey = "GT_IRON_TO_STEEL"; GT_LanguageManager.addStringLocalization( - GT_MachineRecipeLoader.aTextTCGTPage + tKey, - "You have discovered a way of making Iron harder by just re-ordering its components.

This Method can be used to create a Material called Steel, which is used in many non-Thaumaturgic applications."); + GT_MachineRecipeLoader.aTextTCGTPage + tKey, + "You have discovered a way of making Iron harder by just re-ordering its components.

This Method can be used to create a Material called Steel, which is used in many non-Thaumaturgic applications."); GregTech_API.sThaumcraftCompat.addResearch( - tKey, - "Steel Transmutation", - "Transforming iron to steel", - new String[] { "TRANSIRON", "GT_WOOD_TO_CHARCOAL" }, - "ALCHEMY", - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Steel, 1L), - 3, - 0, - 13, - 8, - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 5L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 3L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 3L)), - null, - new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, - GregTech_API.sThaumcraftCompat.addCrucibleRecipe( - tKey, - OrePrefixes.nugget.get(Materials.Iron), - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Steel, 1L), - Collections.singletonList(new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 1L))) }); + tKey, + "Steel Transmutation", + "Transforming iron to steel", + new String[] { "TRANSIRON", "GT_WOOD_TO_CHARCOAL" }, + "ALCHEMY", + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Steel, 1L), + 3, + 0, + 13, + 8, + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 5L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 3L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 3L)), + null, + new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, + GregTech_API.sThaumcraftCompat.addCrucibleRecipe( + tKey, + OrePrefixes.nugget.get(Materials.Iron), + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Steel, 1L), + Collections.singletonList(new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 1L))) }); tKey = "GT_TRANSBRONZE"; GT_LanguageManager.addStringLocalization( - GT_MachineRecipeLoader.aTextTCGTPage + tKey, - "You have discovered a way of creating Alloys using the already known transmutations of Copper and Tin.

This Method can be used to create a Bronze directly without having to go through an alloying process."); + GT_MachineRecipeLoader.aTextTCGTPage + tKey, + "You have discovered a way of creating Alloys using the already known transmutations of Copper and Tin.

This Method can be used to create a Bronze directly without having to go through an alloying process."); GregTech_API.sThaumcraftCompat.addResearch( - tKey, - "Bronze Transmutation", - "Transformation of metals into bronze", - new String[] { "TRANSTIN", "TRANSCOPPER" }, - "ALCHEMY", - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Bronze, 1L), - 2, - 0, - 13, - 11, - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 5L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 3L), - new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 3L)), - null, - new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, - GregTech_API.sThaumcraftCompat.addCrucibleRecipe( - tKey, - OrePrefixes.nugget.get(Materials.Bronze), - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Bronze, 3L), - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 1L))) }); + tKey, + "Bronze Transmutation", + "Transformation of metals into bronze", + new String[] { "TRANSTIN", "TRANSCOPPER" }, + "ALCHEMY", + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Bronze, 1L), + 2, + 0, + 13, + 11, + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 5L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 3L), + new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 3L)), + null, + new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, + GregTech_API.sThaumcraftCompat.addCrucibleRecipe( + tKey, + OrePrefixes.nugget.get(Materials.Bronze), + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Bronze, 3L), + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 1L))) }); tKey = "GT_TRANSELECTRUM"; GT_LanguageManager.addStringLocalization( - GT_MachineRecipeLoader.aTextTCGTPage + tKey, - "Your discovery of Bronze Transmutation has lead you to the conclusion it works with other Alloys such as Electrum as well."); + GT_MachineRecipeLoader.aTextTCGTPage + tKey, + "Your discovery of Bronze Transmutation has lead you to the conclusion it works with other Alloys such as Electrum as well."); GregTech_API.sThaumcraftCompat.addResearch( - tKey, - "Electrum Transmutation", - "Transformation of metals into electrum", - new String[] { "GT_TRANSBRONZE", "TRANSGOLD", "TRANSSILVER" }, - "ALCHEMY", - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Electrum, 1L), - 2, - 1, - 11, - 11, - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 5L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 3L), - new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 3L)), - null, - new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, - GregTech_API.sThaumcraftCompat.addCrucibleRecipe( - tKey, - OrePrefixes.nugget.get(Materials.Electrum), - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Electrum, 3L), - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 1L))) }); + tKey, + "Electrum Transmutation", + "Transformation of metals into electrum", + new String[] { "GT_TRANSBRONZE", "TRANSGOLD", "TRANSSILVER" }, + "ALCHEMY", + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Electrum, 1L), + 2, + 1, + 11, + 11, + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 5L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 3L), + new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 3L)), + null, + new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, + GregTech_API.sThaumcraftCompat.addCrucibleRecipe( + tKey, + OrePrefixes.nugget.get(Materials.Electrum), + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Electrum, 3L), + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 1L))) }); tKey = "GT_TRANSBRASS"; GT_LanguageManager.addStringLocalization( - GT_MachineRecipeLoader.aTextTCGTPage + tKey, - "Your discovery of Bronze Transmutation has lead you to the conclusion it works with other Alloys such as Brass as well."); + GT_MachineRecipeLoader.aTextTCGTPage + tKey, + "Your discovery of Bronze Transmutation has lead you to the conclusion it works with other Alloys such as Brass as well."); GregTech_API.sThaumcraftCompat.addResearch( - tKey, - "Brass Transmutation", - "Transformation of metals into brass", - new String[] { "GT_TRANSBRONZE", "GT_TRANSZINC" }, - "ALCHEMY", - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Brass, 1L), - 2, - 1, - 11, - 12, - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 5L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 3L), - new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 3L)), - null, - new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, - GregTech_API.sThaumcraftCompat.addCrucibleRecipe( - tKey, - OrePrefixes.nugget.get(Materials.Brass), - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Brass, 3L), - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 1L))) }); + tKey, + "Brass Transmutation", + "Transformation of metals into brass", + new String[] { "GT_TRANSBRONZE", "GT_TRANSZINC" }, + "ALCHEMY", + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Brass, 1L), + 2, + 1, + 11, + 12, + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 5L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 3L), + new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 3L)), + null, + new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, + GregTech_API.sThaumcraftCompat.addCrucibleRecipe( + tKey, + OrePrefixes.nugget.get(Materials.Brass), + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Brass, 3L), + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 1L))) }); tKey = "GT_TRANSINVAR"; GT_LanguageManager.addStringLocalization( - GT_MachineRecipeLoader.aTextTCGTPage + tKey, - "Your discovery of Bronze Transmutation has lead you to the conclusion it works with other Alloys such as Invar as well."); + GT_MachineRecipeLoader.aTextTCGTPage + tKey, + "Your discovery of Bronze Transmutation has lead you to the conclusion it works with other Alloys such as Invar as well."); GregTech_API.sThaumcraftCompat.addResearch( - tKey, - "Invar Transmutation", - "Transformation of metals into invar", - new String[] { "GT_TRANSBRONZE", "GT_TRANSNICKEL" }, - "ALCHEMY", - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Invar, 1L), - 2, - 1, - 11, - 15, - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 5L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 3L), - new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 3L)), - null, - new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, - GregTech_API.sThaumcraftCompat.addCrucibleRecipe( - tKey, - OrePrefixes.nugget.get(Materials.Invar), - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Invar, 3L), - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L))) }); + tKey, + "Invar Transmutation", + "Transformation of metals into invar", + new String[] { "GT_TRANSBRONZE", "GT_TRANSNICKEL" }, + "ALCHEMY", + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Invar, 1L), + 2, + 1, + 11, + 15, + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 5L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 3L), + new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 3L)), + null, + new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, + GregTech_API.sThaumcraftCompat.addCrucibleRecipe( + tKey, + OrePrefixes.nugget.get(Materials.Invar), + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Invar, 3L), + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L))) }); tKey = "GT_TRANSCUPRONICKEL"; GT_LanguageManager.addStringLocalization( - GT_MachineRecipeLoader.aTextTCGTPage + tKey, - "Your discovery of Bronze Transmutation has lead you to the conclusion it works with other Alloys such as Cupronickel as well."); + GT_MachineRecipeLoader.aTextTCGTPage + tKey, + "Your discovery of Bronze Transmutation has lead you to the conclusion it works with other Alloys such as Cupronickel as well."); GregTech_API.sThaumcraftCompat.addResearch( - tKey, - "Cupronickel Transmutation", - "Transformation of metals into cupronickel", - new String[] { "GT_TRANSBRONZE", "GT_TRANSNICKEL" }, - "ALCHEMY", - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Cupronickel, 1L), - 2, - 1, - 11, - 16, - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 5L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 3L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 3L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 3L)), - null, - new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, - GregTech_API.sThaumcraftCompat.addCrucibleRecipe( - tKey, - OrePrefixes.nugget.get(Materials.Cupronickel), - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Cupronickel, 3L), - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))) }); + tKey, + "Cupronickel Transmutation", + "Transformation of metals into cupronickel", + new String[] { "GT_TRANSBRONZE", "GT_TRANSNICKEL" }, + "ALCHEMY", + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Cupronickel, 1L), + 2, + 1, + 11, + 16, + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 5L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 3L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 3L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 3L)), + null, + new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, + GregTech_API.sThaumcraftCompat.addCrucibleRecipe( + tKey, + OrePrefixes.nugget.get(Materials.Cupronickel), + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Cupronickel, 3L), + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))) }); tKey = "GT_TRANSBATTERYALLOY"; GT_LanguageManager.addStringLocalization( - GT_MachineRecipeLoader.aTextTCGTPage + tKey, - "Your discovery of Bronze Transmutation has lead you to the conclusion it works with other Alloys such as Battery Alloy as well."); + GT_MachineRecipeLoader.aTextTCGTPage + tKey, + "Your discovery of Bronze Transmutation has lead you to the conclusion it works with other Alloys such as Battery Alloy as well."); GregTech_API.sThaumcraftCompat.addResearch( - tKey, - "Battery Alloy Transmutation", - "Transformation of metals into battery alloy", - new String[] { "GT_TRANSBRONZE", "GT_TRANSANTIMONY" }, - "ALCHEMY", - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.BatteryAlloy, 1L), - 2, - 1, - 11, - 13, - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 5L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 3L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 3L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 3L)), - null, - new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, - GregTech_API.sThaumcraftCompat.addCrucibleRecipe( - tKey, - OrePrefixes.nugget.get(Materials.BatteryAlloy), - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.BatteryAlloy, 3L), - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 1L))) }); + tKey, + "Battery Alloy Transmutation", + "Transformation of metals into battery alloy", + new String[] { "GT_TRANSBRONZE", "GT_TRANSANTIMONY" }, + "ALCHEMY", + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.BatteryAlloy, 1L), + 2, + 1, + 11, + 13, + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 5L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 3L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 3L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 3L)), + null, + new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, + GregTech_API.sThaumcraftCompat.addCrucibleRecipe( + tKey, + OrePrefixes.nugget.get(Materials.BatteryAlloy), + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.BatteryAlloy, 3L), + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 1L))) }); tKey = "GT_TRANSSOLDERINGALLOY"; GT_LanguageManager.addStringLocalization( - GT_MachineRecipeLoader.aTextTCGTPage + tKey, - "Your discovery of Bronze Transmutation has lead you to the conclusion it works with other Alloys such as Soldering Alloy as well."); + GT_MachineRecipeLoader.aTextTCGTPage + tKey, + "Your discovery of Bronze Transmutation has lead you to the conclusion it works with other Alloys such as Soldering Alloy as well."); GregTech_API.sThaumcraftCompat.addResearch( - tKey, - "Soldering Alloy Transmutation", - "Transformation of metals into soldering alloy", - new String[] { "GT_TRANSBRONZE", "GT_TRANSANTIMONY" }, - "ALCHEMY", - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.SolderingAlloy, 1L), - 2, - 1, - 11, - 14, - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 5L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 3L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 3L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 3L)), - null, - new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, - GregTech_API.sThaumcraftCompat.addCrucibleRecipe( - tKey, - OrePrefixes.nugget.get(Materials.SolderingAlloy), - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.SolderingAlloy, 3L), - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L))) }); + tKey, + "Soldering Alloy Transmutation", + "Transformation of metals into soldering alloy", + new String[] { "GT_TRANSBRONZE", "GT_TRANSANTIMONY" }, + "ALCHEMY", + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.SolderingAlloy, 1L), + 2, + 1, + 11, + 14, + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 5L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 3L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 3L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 3L)), + null, + new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, + GregTech_API.sThaumcraftCompat.addCrucibleRecipe( + tKey, + OrePrefixes.nugget.get(Materials.SolderingAlloy), + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.SolderingAlloy, 3L), + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L))) }); tKey = "GT_ADVANCEDMETALLURGY"; GT_LanguageManager.addStringLocalization( - GT_MachineRecipeLoader.aTextTCGTPage + tKey, - "Now that you have discovered all the basic metals, you can finally move on to the next Level of magic metallurgy and create more advanced metals"); + GT_MachineRecipeLoader.aTextTCGTPage + tKey, + "Now that you have discovered all the basic metals, you can finally move on to the next Level of magic metallurgy and create more advanced metals"); GregTech_API.sThaumcraftCompat.addResearch( - tKey, - "Advanced Metallurgic Transmutation", - "Mastering the basic metals", - new String[] { "GT_TRANSBISMUTH", "GT_IRON_TO_STEEL", "GT_TRANSSOLDERINGALLOY", "GT_TRANSBATTERYALLOY", - "GT_TRANSBRASS", "GT_TRANSELECTRUM", "GT_TRANSCUPRONICKEL", "GT_TRANSINVAR" }, - "ALCHEMY", - GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Iron, 1L), - 3, - 0, - 16, - 14, - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 50L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 20L), - new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 20L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PRAECANTATIO, 20L), - new TC_Aspects.TC_AspectStack(TC_Aspects.NEBRISUM, 20L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MAGNETO, 20L)), - null, - new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey }); + tKey, + "Advanced Metallurgic Transmutation", + "Mastering the basic metals", + new String[] { "GT_TRANSBISMUTH", "GT_IRON_TO_STEEL", "GT_TRANSSOLDERINGALLOY", "GT_TRANSBATTERYALLOY", + "GT_TRANSBRASS", "GT_TRANSELECTRUM", "GT_TRANSCUPRONICKEL", "GT_TRANSINVAR" }, + "ALCHEMY", + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Iron, 1L), + 3, + 0, + 16, + 14, + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 50L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 20L), + new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 20L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PRAECANTATIO, 20L), + new TC_Aspects.TC_AspectStack(TC_Aspects.NEBRISUM, 20L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MAGNETO, 20L)), + null, + new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey }); tKey = "GT_TRANSALUMINIUM"; GT_LanguageManager.addStringLocalization( - GT_MachineRecipeLoader.aTextTCGTPage + tKey, - "You have discovered a way to multiply aluminium by steeping aluminium nuggets in metallum harvested from other metals.

This transmutation is slightly harder to achieve, because aluminium has special properties, which require more order to achieve the desired result."); + GT_MachineRecipeLoader.aTextTCGTPage + tKey, + "You have discovered a way to multiply aluminium by steeping aluminium nuggets in metallum harvested from other metals.

This transmutation is slightly harder to achieve, because aluminium has special properties, which require more order to achieve the desired result."); GregTech_API.sThaumcraftCompat.addResearch( - tKey, - "Aluminium Transmutation", - "Transformation of metals into aluminium", - new String[] { "GT_ADVANCEDMETALLURGY" }, - "ALCHEMY", - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Aluminium, 1L), - 4, - 0, - 19, - 14, - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 5L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 3L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VOLATUS, 3L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 3L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 3L)), - null, - new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, - GregTech_API.sThaumcraftCompat.addCrucibleRecipe( - tKey, - OrePrefixes.nugget.get(Materials.Aluminium), - GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Aluminium, 3L), - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VOLATUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))) }); + tKey, + "Aluminium Transmutation", + "Transformation of metals into aluminium", + new String[] { "GT_ADVANCEDMETALLURGY" }, + "ALCHEMY", + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Aluminium, 1L), + 4, + 0, + 19, + 14, + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 5L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 3L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VOLATUS, 3L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 3L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 3L)), + null, + new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, + GregTech_API.sThaumcraftCompat.addCrucibleRecipe( + tKey, + OrePrefixes.nugget.get(Materials.Aluminium), + GT_OreDictUnificator.get(OrePrefixes.nugget, Materials.Aluminium, 3L), + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VOLATUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))) }); tKey = "GT_TRANSSKYSTONE"; GT_LanguageManager.addStringLocalization( - GT_MachineRecipeLoader.aTextTCGTPage + tKey, - "You have discovered a way to convert obsidian to skystone.

Not sure why you'd want to do this, unless skystone is somehow unavailable in your world."); + GT_MachineRecipeLoader.aTextTCGTPage + tKey, + "You have discovered a way to convert obsidian to skystone.

Not sure why you'd want to do this, unless skystone is somehow unavailable in your world."); GregTech_API.sThaumcraftCompat.addResearch( - tKey, - "Skystone Transmutation", - "Transformation of obsidian into skystone", - new String[] { "GT_ADVANCEDMETALLURGY" }, - "ALCHEMY", - getModItem(AppliedEnergistics2.ID, "tile.BlockSkyStone", 1), - 4, - 0, - 19, - 15, - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 5L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 3L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VOLATUS, 3L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ALIENIS, 3L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TERRA, 3L)), - null, - new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, - GregTech_API.sThaumcraftCompat.addCrucibleRecipe( - tKey, - new ItemStack(Blocks.obsidian), - getModItem(AppliedEnergistics2.ID, "tile.BlockSkyStone", 1), - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VOLATUS, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TERRA, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ALIENIS, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 1L))) }); + tKey, + "Skystone Transmutation", + "Transformation of obsidian into skystone", + new String[] { "GT_ADVANCEDMETALLURGY" }, + "ALCHEMY", + getModItem(AppliedEnergistics2.ID, "tile.BlockSkyStone", 1), + 4, + 0, + 19, + 15, + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 5L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 3L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VOLATUS, 3L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ALIENIS, 3L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TERRA, 3L)), + null, + new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, + GregTech_API.sThaumcraftCompat.addCrucibleRecipe( + tKey, + new ItemStack(Blocks.obsidian), + getModItem(AppliedEnergistics2.ID, "tile.BlockSkyStone", 1), + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VOLATUS, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TERRA, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ALIENIS, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 1L))) }); tKey = "GT_TRANSMINERAL"; GT_LanguageManager.addStringLocalization( - GT_MachineRecipeLoader.aTextTCGTPage + tKey, - "You have discovered a way to convert basaltic mineral sand to granitic mineral sand and vice versa.

Handy for people living in the sky who can't access it normally, or if you really want one or the other."); + GT_MachineRecipeLoader.aTextTCGTPage + tKey, + "You have discovered a way to convert basaltic mineral sand to granitic mineral sand and vice versa.

Handy for people living in the sky who can't access it normally, or if you really want one or the other."); GregTech_API.sThaumcraftCompat.addResearch( - tKey, - "Basaltic Mineral Transmutation", - "Transformation of mineral sands", - new String[] { "GT_ADVANCEDMETALLURGY" }, - "ALCHEMY", - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.GraniticMineralSand, 1L), - 4, - 0, - 19, - 16, - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 5L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 3L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VOLATUS, 3L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MAGNETO, 3L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TERRA, 3L)), - null, - new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, - GregTech_API.sThaumcraftCompat.addCrucibleRecipe( - tKey, - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.BasalticMineralSand, 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.GraniticMineralSand, 1L), - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MAGNETO, 1L))), - GregTech_API.sThaumcraftCompat.addCrucibleRecipe( - tKey, - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.GraniticMineralSand, 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.BasalticMineralSand, 1L), - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MAGNETO, 1L))) }); + tKey, + "Basaltic Mineral Transmutation", + "Transformation of mineral sands", + new String[] { "GT_ADVANCEDMETALLURGY" }, + "ALCHEMY", + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.GraniticMineralSand, 1L), + 4, + 0, + 19, + 16, + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 5L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 3L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VOLATUS, 3L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MAGNETO, 3L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TERRA, 3L)), + null, + new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, + GregTech_API.sThaumcraftCompat.addCrucibleRecipe( + tKey, + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.BasalticMineralSand, 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.GraniticMineralSand, 1L), + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MAGNETO, 1L))), + GregTech_API.sThaumcraftCompat.addCrucibleRecipe( + tKey, + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.GraniticMineralSand, 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.BasalticMineralSand, 1L), + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MAGNETO, 1L))) }); tKey = "GT_CRYSTALLISATION"; GT_LanguageManager.addStringLocalization( - GT_MachineRecipeLoader.aTextTCGTPage + tKey, - "Sometimes when processing your Crystal Shards they become a pile of Dust instead of the mostly required Shard.

You have finally found a way to reverse this Process by using Vitreus Essentia for recrystallising the Shards."); + GT_MachineRecipeLoader.aTextTCGTPage + tKey, + "Sometimes when processing your Crystal Shards they become a pile of Dust instead of the mostly required Shard.

You have finally found a way to reverse this Process by using Vitreus Essentia for recrystallising the Shards."); GregTech_API.sThaumcraftCompat.addResearch( - tKey, - "Shard Recrystallisation", - "Fixing your precious crystals", - new String[] { "ALCHEMICALMANUFACTURE" }, - "ALCHEMY", - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.InfusedOrder, 1L), - 3, - 0, - -11, - -3, - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 5L), - new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 3L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 3L)), - null, - new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, - GregTech_API.sThaumcraftCompat.addCrucibleRecipe( - tKey, - OrePrefixes.dust.get(Materials.Amber), - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Amber, 1L), - Arrays.asList(new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 4L))), - GregTech_API.sThaumcraftCompat.addCrucibleRecipe( - tKey, - OrePrefixes.dust.get(Materials.InfusedOrder), - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.InfusedOrder, 1L), - Collections.singletonList(new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 4L))), - GregTech_API.sThaumcraftCompat.addCrucibleRecipe( - tKey, - OrePrefixes.dust.get(Materials.InfusedEntropy), - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.InfusedEntropy, 1L), - Collections.singletonList(new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 4L))), - GregTech_API.sThaumcraftCompat.addCrucibleRecipe( - tKey, - OrePrefixes.dust.get(Materials.InfusedAir), - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.InfusedAir, 1L), - Collections.singletonList(new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 4L))), - GregTech_API.sThaumcraftCompat.addCrucibleRecipe( - tKey, - OrePrefixes.dust.get(Materials.InfusedEarth), - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.InfusedEarth, 1L), - Collections.singletonList(new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 4L))), - GregTech_API.sThaumcraftCompat.addCrucibleRecipe( - tKey, - OrePrefixes.dust.get(Materials.InfusedFire), - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.InfusedFire, 1L), - Collections.singletonList(new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 4L))), - GregTech_API.sThaumcraftCompat.addCrucibleRecipe( - tKey, - OrePrefixes.dust.get(Materials.InfusedWater), - GT_OreDictUnificator.get(OrePrefixes.gem, Materials.InfusedWater, 1L), - Collections.singletonList(new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 4L))) }); + tKey, + "Shard Recrystallisation", + "Fixing your precious crystals", + new String[] { "ALCHEMICALMANUFACTURE" }, + "ALCHEMY", + GT_OreDictUnificator.get(OrePrefixes.gem, Materials.InfusedOrder, 1L), + 3, + 0, + -11, + -3, + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 5L), + new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 3L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 3L)), + null, + new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, + GregTech_API.sThaumcraftCompat.addCrucibleRecipe( + tKey, + OrePrefixes.dust.get(Materials.Amber), + GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Amber, 1L), + Arrays.asList(new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 4L))), + GregTech_API.sThaumcraftCompat.addCrucibleRecipe( + tKey, + OrePrefixes.dust.get(Materials.InfusedOrder), + GT_OreDictUnificator.get(OrePrefixes.gem, Materials.InfusedOrder, 1L), + Collections.singletonList(new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 4L))), + GregTech_API.sThaumcraftCompat.addCrucibleRecipe( + tKey, + OrePrefixes.dust.get(Materials.InfusedEntropy), + GT_OreDictUnificator.get(OrePrefixes.gem, Materials.InfusedEntropy, 1L), + Collections.singletonList(new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 4L))), + GregTech_API.sThaumcraftCompat.addCrucibleRecipe( + tKey, + OrePrefixes.dust.get(Materials.InfusedAir), + GT_OreDictUnificator.get(OrePrefixes.gem, Materials.InfusedAir, 1L), + Collections.singletonList(new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 4L))), + GregTech_API.sThaumcraftCompat.addCrucibleRecipe( + tKey, + OrePrefixes.dust.get(Materials.InfusedEarth), + GT_OreDictUnificator.get(OrePrefixes.gem, Materials.InfusedEarth, 1L), + Collections.singletonList(new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 4L))), + GregTech_API.sThaumcraftCompat.addCrucibleRecipe( + tKey, + OrePrefixes.dust.get(Materials.InfusedFire), + GT_OreDictUnificator.get(OrePrefixes.gem, Materials.InfusedFire, 1L), + Collections.singletonList(new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 4L))), + GregTech_API.sThaumcraftCompat.addCrucibleRecipe( + tKey, + OrePrefixes.dust.get(Materials.InfusedWater), + GT_OreDictUnificator.get(OrePrefixes.gem, Materials.InfusedWater, 1L), + Collections.singletonList(new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 4L))) }); tKey = "GT_MAGICENERGY"; GT_LanguageManager.addStringLocalization( - GT_MachineRecipeLoader.aTextTCGTPage + tKey, - "While trying to find new ways to integrate magic into your industrial factories, you have discovered a way to convert magical energy into electrical power."); + GT_MachineRecipeLoader.aTextTCGTPage + tKey, + "While trying to find new ways to integrate magic into your industrial factories, you have discovered a way to convert magical energy into electrical power."); GregTech_API.sThaumcraftCompat.addResearch( - tKey, - "Magic Energy Conversion", - "Magic to Power", - new String[] { "ARCANEBORE" }, - "ARTIFICE", - ItemList.MagicEnergyConverter_LV.get(1L), - 3, - 0, - -3, - 10, - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 10L), - new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 10L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 20L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 10L)), - null, - new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, - GregTech_API.sThaumcraftCompat.addInfusionRecipe( - tKey, - ItemList.Hull_LV.get(1L), - new ItemStack[] { new ItemStack(Blocks.beacon), - GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Good, 1L), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 1L), - ItemList.Sensor_MV.get(2L), - GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Good, 1L), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Thaumium, 1L), - ItemList.Sensor_MV.get(2L) }, - ItemList.MagicEnergyConverter_LV.get(1L), - 5, - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 32L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 32L))) }); + tKey, + "Magic Energy Conversion", + "Magic to Power", + new String[] { "ARCANEBORE" }, + "ARTIFICE", + ItemList.MagicEnergyConverter_LV.get(1L), + 3, + 0, + -3, + 10, + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 10L), + new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 10L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 20L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 10L)), + null, + new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, + GregTech_API.sThaumcraftCompat.addInfusionRecipe( + tKey, + ItemList.Hull_LV.get(1L), + new ItemStack[] { new ItemStack(Blocks.beacon), + GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Good, 1L), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 1L), + ItemList.Sensor_MV.get(2L), GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Good, 1L), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Thaumium, 1L), + ItemList.Sensor_MV.get(2L) }, + ItemList.MagicEnergyConverter_LV.get(1L), + 5, + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 32L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 32L))) }); tKey = "GT_MAGICENERGY2"; GT_LanguageManager.addStringLocalization( - GT_MachineRecipeLoader.aTextTCGTPage + tKey, - "Attempts to increase the output of your Magic Energy generators have resulted in significant improvements."); + GT_MachineRecipeLoader.aTextTCGTPage + tKey, + "Attempts to increase the output of your Magic Energy generators have resulted in significant improvements."); GregTech_API.sThaumcraftCompat.addResearch( - tKey, - "Adept Magic Energy Conversion", - "Magic to Power", - new String[] { "GT_MAGICENERGY" }, - "ARTIFICE", - ItemList.MagicEnergyConverter_MV.get(1L), - 1, - 1, - -4, - 12, - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 10L), - new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 10L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 20L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 10L)), - null, - new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, - GregTech_API.sThaumcraftCompat.addInfusionRecipe( - tKey, - ItemList.Hull_MV.get(1L), - new ItemStack[] { new ItemStack(Blocks.beacon), - GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Advanced, 1L), - GT_OreDictUnificator.get(OrePrefixes.plateDouble, Materials.Thaumium, 1L), - ItemList.Sensor_HV.get(2L), - GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Advanced, 1L), - GT_OreDictUnificator.get(OrePrefixes.plateDouble, Materials.StainlessSteel, 1L), - ItemList.Sensor_HV.get(2L) }, - ItemList.MagicEnergyConverter_MV.get(1L), - 6, - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 64L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 32L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 64L))) }); + tKey, + "Adept Magic Energy Conversion", + "Magic to Power", + new String[] { "GT_MAGICENERGY" }, + "ARTIFICE", + ItemList.MagicEnergyConverter_MV.get(1L), + 1, + 1, + -4, + 12, + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 10L), + new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 10L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 20L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 10L)), + null, + new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, + GregTech_API.sThaumcraftCompat.addInfusionRecipe( + tKey, + ItemList.Hull_MV.get(1L), + new ItemStack[] { new ItemStack(Blocks.beacon), + GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Advanced, 1L), + GT_OreDictUnificator.get(OrePrefixes.plateDouble, Materials.Thaumium, 1L), + ItemList.Sensor_HV.get(2L), + GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Advanced, 1L), + GT_OreDictUnificator.get(OrePrefixes.plateDouble, Materials.StainlessSteel, 1L), + ItemList.Sensor_HV.get(2L) }, + ItemList.MagicEnergyConverter_MV.get(1L), + 6, + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 64L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 32L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 64L))) }); tKey = "GT_MAGICENERGY3"; GT_LanguageManager.addStringLocalization( - GT_MachineRecipeLoader.aTextTCGTPage + tKey, - "Attempts to further increase the output of your Magic Energy generators have resulted in great improvements."); + GT_MachineRecipeLoader.aTextTCGTPage + tKey, + "Attempts to further increase the output of your Magic Energy generators have resulted in great improvements."); GregTech_API.sThaumcraftCompat.addResearch( - tKey, - "Master Magic Energy Conversion", - "Magic to Power", - new String[] { "GT_MAGICENERGY2" }, - "ARTIFICE", - ItemList.MagicEnergyConverter_HV.get(1L), - 1, - 1, - -4, - 14, - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 20L), - new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 20L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 40L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 20L)), - null, - new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, - GregTech_API.sThaumcraftCompat.addInfusionRecipe( - tKey, - ItemList.Hull_HV.get(1L), - new ItemStack[] { new ItemStack(Blocks.beacon), - GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Data, 1L), - GT_OreDictUnificator.get(OrePrefixes.plateDense, Materials.Thaumium, 1L), - ItemList.Field_Generator_MV.get(1L), - GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Data, 1L), - GT_OreDictUnificator.get(OrePrefixes.plateDense, Materials.Titanium, 1L), - ItemList.Field_Generator_MV.get(1L) }, - ItemList.MagicEnergyConverter_HV.get(1L), - 8, - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 128L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 128L))) }); + tKey, + "Master Magic Energy Conversion", + "Magic to Power", + new String[] { "GT_MAGICENERGY2" }, + "ARTIFICE", + ItemList.MagicEnergyConverter_HV.get(1L), + 1, + 1, + -4, + 14, + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 20L), + new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 20L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 40L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 20L)), + null, + new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, + GregTech_API.sThaumcraftCompat.addInfusionRecipe( + tKey, + ItemList.Hull_HV.get(1L), + new ItemStack[] { new ItemStack(Blocks.beacon), + GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Data, 1L), + GT_OreDictUnificator.get(OrePrefixes.plateDense, Materials.Thaumium, 1L), + ItemList.Field_Generator_MV.get(1L), + GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Data, 1L), + GT_OreDictUnificator.get(OrePrefixes.plateDense, Materials.Titanium, 1L), + ItemList.Field_Generator_MV.get(1L) }, + ItemList.MagicEnergyConverter_HV.get(1L), + 8, + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 128L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 128L))) }); tKey = "GT_MAGICABSORB"; GT_LanguageManager.addStringLocalization( - GT_MachineRecipeLoader.aTextTCGTPage + tKey, - "Research into magical energy conversion methods has identified a way to convert surrounding energies into electrical power."); + GT_MachineRecipeLoader.aTextTCGTPage + tKey, + "Research into magical energy conversion methods has identified a way to convert surrounding energies into electrical power."); GregTech_API.sThaumcraftCompat.addResearch( - tKey, - "Magic Energy Absorption", - "Harvesting Magic", - new String[] { "GT_MAGICENERGY" }, - "ARTIFICE", - ItemList.MagicEnergyAbsorber_LV.get(1L), - 3, - 0, - -2, - 12, - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 10L), - new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 10L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 20L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 10L)), - null, - new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, - GregTech_API.sThaumcraftCompat.addInfusionRecipe( - tKey, - ItemList.Hull_LV.get(1L), - new ItemStack[] { ItemList.MagicEnergyConverter_LV.get(1L), - GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Good, 1L), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Thaumium, 1L), - ItemList.Sensor_MV.get(2L) }, - ItemList.MagicEnergyAbsorber_LV.get(1L), - 6, - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 32L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 32L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 32L), - new TC_Aspects.TC_AspectStack(TC_Aspects.STRONTIO, 4L))) }); + tKey, + "Magic Energy Absorption", + "Harvesting Magic", + new String[] { "GT_MAGICENERGY" }, + "ARTIFICE", + ItemList.MagicEnergyAbsorber_LV.get(1L), + 3, + 0, + -2, + 12, + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 10L), + new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 10L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 20L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 10L)), + null, + new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, + GregTech_API.sThaumcraftCompat.addInfusionRecipe( + tKey, + ItemList.Hull_LV.get(1L), + new ItemStack[] { ItemList.MagicEnergyConverter_LV.get(1L), + GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Good, 1L), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Thaumium, 1L), + ItemList.Sensor_MV.get(2L) }, + ItemList.MagicEnergyAbsorber_LV.get(1L), + 6, + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 32L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 32L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 32L), + new TC_Aspects.TC_AspectStack(TC_Aspects.STRONTIO, 4L))) }); tKey = "GT_MAGICABSORB2"; - GT_LanguageManager.addStringLocalization( - GT_MachineRecipeLoader.aTextTCGTPage + tKey, - "Moar output! Drain all the Magic!"); + GT_LanguageManager + .addStringLocalization(GT_MachineRecipeLoader.aTextTCGTPage + tKey, "Moar output! Drain all the Magic!"); GregTech_API.sThaumcraftCompat.addResearch( - tKey, - "Improved Magic Energy Absorption", - "Harvesting Magic", - new String[] { "GT_MAGICABSORB" }, - "ARTIFICE", - ItemList.MagicEnergyAbsorber_EV.get(1L), - 3, - 1, - -2, - 14, - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 10L), - new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 10L), - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 20L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 10L)), - null, - new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, - GregTech_API.sThaumcraftCompat.addInfusionRecipe( - tKey, - ItemList.Hull_MV.get(1L), - new ItemStack[] { ItemList.MagicEnergyConverter_MV.get(1L), - GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Advanced, 1L), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Thaumium, 1L), - ItemList.Sensor_HV.get(2L), - GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Advanced, 1L), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Thaumium, 1L) }, - ItemList.MagicEnergyAbsorber_MV.get(1L), - 6, - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 64L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 32L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 64L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 32L), - new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 64L), - new TC_Aspects.TC_AspectStack(TC_Aspects.STRONTIO, 8L))), - GregTech_API.sThaumcraftCompat.addInfusionRecipe( - tKey, - ItemList.Hull_HV.get(1L), - new ItemStack[] { ItemList.MagicEnergyConverter_MV.get(1L), - GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Data, 1L), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Void, 1), - ItemList.Field_Generator_MV.get(1L), - GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Data, 1L), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Void, 1), }, - ItemList.MagicEnergyAbsorber_HV.get(1L), - 8, - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 128L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 128L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 64L), - new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 128L), - new TC_Aspects.TC_AspectStack(TC_Aspects.STRONTIO, 16L))), - GregTech_API.sThaumcraftCompat.addInfusionRecipe( - tKey, - ItemList.Hull_EV.get(1L), - new ItemStack[] { ItemList.MagicEnergyConverter_HV.get(1L), - GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Elite, 1L), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Void, 1), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.TungstenSteel, 1), - ItemList.Field_Generator_HV.get(1L), - GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Elite, 1L), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Void, 1), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.TungstenSteel, 1), }, - ItemList.MagicEnergyAbsorber_EV.get(1L), - 10, - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 256L), - new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 128L), - new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 256L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 128L), - new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 256L), - new TC_Aspects.TC_AspectStack(TC_Aspects.STRONTIO, 64L))) }); + tKey, + "Improved Magic Energy Absorption", + "Harvesting Magic", + new String[] { "GT_MAGICABSORB" }, + "ARTIFICE", + ItemList.MagicEnergyAbsorber_EV.get(1L), + 3, + 1, + -2, + 14, + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 10L), + new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITIO, 10L), + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 20L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 10L)), + null, + new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, + GregTech_API.sThaumcraftCompat.addInfusionRecipe( + tKey, + ItemList.Hull_MV.get(1L), + new ItemStack[] { ItemList.MagicEnergyConverter_MV.get(1L), + GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Advanced, 1L), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Thaumium, 1L), ItemList.Sensor_HV.get(2L), + GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Advanced, 1L), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Thaumium, 1L) }, + ItemList.MagicEnergyAbsorber_MV.get(1L), + 6, + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 64L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 32L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 64L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 32L), + new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 64L), + new TC_Aspects.TC_AspectStack(TC_Aspects.STRONTIO, 8L))), + GregTech_API.sThaumcraftCompat.addInfusionRecipe( + tKey, + ItemList.Hull_HV.get(1L), + new ItemStack[] { ItemList.MagicEnergyConverter_MV.get(1L), + GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Data, 1L), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Void, 1), + ItemList.Field_Generator_MV.get(1L), + GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Data, 1L), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Void, 1), }, + ItemList.MagicEnergyAbsorber_HV.get(1L), + 8, + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 128L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 128L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 64L), + new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 128L), + new TC_Aspects.TC_AspectStack(TC_Aspects.STRONTIO, 16L))), + GregTech_API.sThaumcraftCompat.addInfusionRecipe( + tKey, + ItemList.Hull_EV.get(1L), + new ItemStack[] { ItemList.MagicEnergyConverter_HV.get(1L), + GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Elite, 1L), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Void, 1), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.TungstenSteel, 1), + ItemList.Field_Generator_HV.get(1L), + GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Elite, 1L), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Void, 1), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.TungstenSteel, 1), }, + ItemList.MagicEnergyAbsorber_EV.get(1L), + 10, + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 256L), + new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 128L), + new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 256L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 128L), + new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 256L), + new TC_Aspects.TC_AspectStack(TC_Aspects.STRONTIO, 64L))) }); tKey = "GT_HAZMATENCH"; GT_LanguageManager.addStringLocalization( - GT_MachineRecipeLoader.aTextTCGTPage + tKey, - "You have discovered a way to magically enchant a mundane piece of armor with the protective properties of a Hazmat suite."); + GT_MachineRecipeLoader.aTextTCGTPage + tKey, + "You have discovered a way to magically enchant a mundane piece of armor with the protective properties of a Hazmat suite."); GregTech_API.sThaumcraftCompat.addResearch( - tKey, - "Hazmat Protection", - "Magical protection from physical hazards", - new String[] { "INFUSIONENCHANTMENT" }, - "ARTIFICE", - GT_ModHandler.getIC2Item("hazmatChestplate", 1), - 4, - 0, - -7, - 13, - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.VITIUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.RADIO, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 1L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L)), - null, - new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, - GregTech_API.sThaumcraftCompat.addInfusionEnchantmentRecipe( - tKey, - Enchantment_Hazmat.INSTANCE, - 5, - Arrays.asList( - new TC_Aspects.TC_AspectStack(TC_Aspects.VITIUM, 8L), - new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.RADIO, 16L), - new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 32L), - new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 16L)), - new ItemStack[] { getModItem(Thaumcraft.ID, "ItemResource", 1L, 14), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Titanium, 1), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Rubber, 1), - GT_OreDictUnificator.get(OrePrefixes.plateDense, Materials.Lead, 1), - getModItem(Thaumcraft.ID, "ItemResource", 1L, 14), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Titanium, 1), - GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Rubber, 1), - GT_OreDictUnificator.get(OrePrefixes.plateDense, Materials.Lead, 1) }) }); + tKey, + "Hazmat Protection", + "Magical protection from physical hazards", + new String[] { "INFUSIONENCHANTMENT" }, + "ARTIFICE", + GT_ModHandler.getIC2Item("hazmatChestplate", 1), + 4, + 0, + -7, + 13, + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.VITIUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.RADIO, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 1L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L)), + null, + new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey, + GregTech_API.sThaumcraftCompat.addInfusionEnchantmentRecipe( + tKey, + Enchantment_Hazmat.INSTANCE, + 5, + Arrays.asList( + new TC_Aspects.TC_AspectStack(TC_Aspects.VITIUM, 8L), + new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.RADIO, 16L), + new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 32L), + new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 16L)), + new ItemStack[] { getModItem(Thaumcraft.ID, "ItemResource", 1L, 14), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Titanium, 1), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Rubber, 1), + GT_OreDictUnificator.get(OrePrefixes.plateDense, Materials.Lead, 1), + getModItem(Thaumcraft.ID, "ItemResource", 1L, 14), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Titanium, 1), + GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Rubber, 1), + GT_OreDictUnificator.get(OrePrefixes.plateDense, Materials.Lead, 1) }) }); } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/ThermalCentrifugeRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/ThermalCentrifugeRecipes.java index d2b763d394..bd5687ad0a 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/ThermalCentrifugeRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/ThermalCentrifugeRecipes.java @@ -14,15 +14,15 @@ public class ThermalCentrifugeRecipes implements Runnable { @Override public void run() { GT_Values.RA.stdBuilder() - .itemInputs(ItemList.SunnariumCell.get(1)) - .itemOutputs( - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sunnarium, 1), - new ItemStack(Items.glowstone_dust, 2), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iron, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(25 * SECONDS) - .eut(TierEU.RECIPE_LV) - .addTo(sThermalCentrifugeRecipes); + .itemInputs(ItemList.SunnariumCell.get(1)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sunnarium, 1), + new ItemStack(Items.glowstone_dust, 2), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iron, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(25 * SECONDS) + .eut(TierEU.RECIPE_LV) + .addTo(sThermalCentrifugeRecipes); } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/TranscendentPlasmaMixerRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/TranscendentPlasmaMixerRecipes.java index 5b9ed524d6..53cb4524b5 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/TranscendentPlasmaMixerRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/TranscendentPlasmaMixerRecipes.java @@ -18,101 +18,101 @@ public class TranscendentPlasmaMixerRecipes implements Runnable { @Deprecated private static void addTranscendentPlasmaMixerRecipe(final FluidStack fluidOutput, final int circuitNumber, - final FluidStack[] fluidInput, final int EUPerL) { + final FluidStack[] fluidInput, final int EUPerL) { sTranscendentPlasmaMixerRecipes.addRecipe( - false, - new ItemStack[] { GT_Utility.getIntegratedCircuit(circuitNumber) }, - null, - null, - fluidInput, - new FluidStack[] { fluidOutput }, - 100, - EUPerL, // NOT EU/T, I am simply using the field for this purpose. - 0); + false, + new ItemStack[] { GT_Utility.getIntegratedCircuit(circuitNumber) }, + null, + null, + fluidInput, + new FluidStack[] { fluidOutput }, + 100, + EUPerL, // NOT EU/T, I am simply using the field for this purpose. + 0); } @Override public void run() { GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(1)) - .noItemOutputs() - .fluidInputs( - Materials.Helium.getPlasma(1000), - Materials.Iron.getPlasma(1000), - Materials.Calcium.getPlasma(1000), - Materials.Niobium.getPlasma(1000)) - .fluidOutputs(Materials.ExcitedDTCC.getFluid(1000L)) - .duration(100) - .eut(CRUDE_EU_PER_L) - .noOptimize() - .addTo(sTranscendentPlasmaMixerRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(1)) + .noItemOutputs() + .fluidInputs( + Materials.Helium.getPlasma(1000), + Materials.Iron.getPlasma(1000), + Materials.Calcium.getPlasma(1000), + Materials.Niobium.getPlasma(1000)) + .fluidOutputs(Materials.ExcitedDTCC.getFluid(1000L)) + .duration(100) + .eut(CRUDE_EU_PER_L) + .noOptimize() + .addTo(sTranscendentPlasmaMixerRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(2)) - .noItemOutputs() - .fluidInputs( - Materials.Helium.getPlasma(1000), - Materials.Iron.getPlasma(1000), - Materials.Calcium.getPlasma(1000), - Materials.Niobium.getPlasma(1000), - Materials.Radon.getPlasma(1000), - Materials.Nickel.getPlasma(1000), - Materials.Boron.getPlasma(1000), - Materials.Sulfur.getPlasma(1000)) - .fluidOutputs(Materials.ExcitedDTPC.getFluid(1000L)) - .duration(100) - .eut(PROSAIC_EU_PER_L) - .noOptimize() - .addTo(sTranscendentPlasmaMixerRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(2)) + .noItemOutputs() + .fluidInputs( + Materials.Helium.getPlasma(1000), + Materials.Iron.getPlasma(1000), + Materials.Calcium.getPlasma(1000), + Materials.Niobium.getPlasma(1000), + Materials.Radon.getPlasma(1000), + Materials.Nickel.getPlasma(1000), + Materials.Boron.getPlasma(1000), + Materials.Sulfur.getPlasma(1000)) + .fluidOutputs(Materials.ExcitedDTPC.getFluid(1000L)) + .duration(100) + .eut(PROSAIC_EU_PER_L) + .noOptimize() + .addTo(sTranscendentPlasmaMixerRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(3)) - .noItemOutputs() - .fluidInputs( - Materials.Helium.getPlasma(1000), - Materials.Iron.getPlasma(1000), - Materials.Calcium.getPlasma(1000), - Materials.Niobium.getPlasma(1000), - Materials.Radon.getPlasma(1000), - Materials.Nickel.getPlasma(1000), - Materials.Boron.getPlasma(1000), - Materials.Sulfur.getPlasma(1000), - Materials.Nitrogen.getPlasma(1000), - Materials.Zinc.getPlasma(1000), - Materials.Silver.getPlasma(1000), - Materials.Titanium.getPlasma(1000)) - .fluidOutputs(Materials.ExcitedDTRC.getFluid(1000L)) - .duration(100) - .eut(RESPLENDENT_EU_PER_L) - .noOptimize() - .addTo(sTranscendentPlasmaMixerRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(3)) + .noItemOutputs() + .fluidInputs( + Materials.Helium.getPlasma(1000), + Materials.Iron.getPlasma(1000), + Materials.Calcium.getPlasma(1000), + Materials.Niobium.getPlasma(1000), + Materials.Radon.getPlasma(1000), + Materials.Nickel.getPlasma(1000), + Materials.Boron.getPlasma(1000), + Materials.Sulfur.getPlasma(1000), + Materials.Nitrogen.getPlasma(1000), + Materials.Zinc.getPlasma(1000), + Materials.Silver.getPlasma(1000), + Materials.Titanium.getPlasma(1000)) + .fluidOutputs(Materials.ExcitedDTRC.getFluid(1000L)) + .duration(100) + .eut(RESPLENDENT_EU_PER_L) + .noOptimize() + .addTo(sTranscendentPlasmaMixerRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_Utility.getIntegratedCircuit(4)) - .noItemOutputs() - .fluidInputs( - Materials.Helium.getPlasma(1000), - Materials.Iron.getPlasma(1000), - Materials.Calcium.getPlasma(1000), - Materials.Niobium.getPlasma(1000), - Materials.Radon.getPlasma(1000), - Materials.Nickel.getPlasma(1000), - Materials.Boron.getPlasma(1000), - Materials.Sulfur.getPlasma(1000), - Materials.Nitrogen.getPlasma(1000), - Materials.Zinc.getPlasma(1000), - Materials.Silver.getPlasma(1000), - Materials.Titanium.getPlasma(1000), - Materials.Americium.getPlasma(1000), - Materials.Bismuth.getPlasma(1000), - Materials.Oxygen.getPlasma(1000), - Materials.Tin.getPlasma(1000)) - .fluidOutputs(Materials.ExcitedDTEC.getFluid(1000L)) - .duration(100) - .eut(EXOTIC_EU_PER_L) - .noOptimize() - .addTo(sTranscendentPlasmaMixerRecipes); + .itemInputs(GT_Utility.getIntegratedCircuit(4)) + .noItemOutputs() + .fluidInputs( + Materials.Helium.getPlasma(1000), + Materials.Iron.getPlasma(1000), + Materials.Calcium.getPlasma(1000), + Materials.Niobium.getPlasma(1000), + Materials.Radon.getPlasma(1000), + Materials.Nickel.getPlasma(1000), + Materials.Boron.getPlasma(1000), + Materials.Sulfur.getPlasma(1000), + Materials.Nitrogen.getPlasma(1000), + Materials.Zinc.getPlasma(1000), + Materials.Silver.getPlasma(1000), + Materials.Titanium.getPlasma(1000), + Materials.Americium.getPlasma(1000), + Materials.Bismuth.getPlasma(1000), + Materials.Oxygen.getPlasma(1000), + Materials.Tin.getPlasma(1000)) + .fluidOutputs(Materials.ExcitedDTEC.getFluid(1000L)) + .duration(100) + .eut(EXOTIC_EU_PER_L) + .noOptimize() + .addTo(sTranscendentPlasmaMixerRecipes); } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/VacuumFreezerRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/VacuumFreezerRecipes.java index 0557d14640..cb71eaf766 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/VacuumFreezerRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/VacuumFreezerRecipes.java @@ -20,219 +20,219 @@ public class VacuumFreezerRecipes implements Runnable { // reactor heat switch { GT_Values.RA.stdBuilder() - .itemInputs(GT_ModHandler.getIC2Item("reactorHeatSwitch", 1L, 32767)) - .itemOutputs(GT_ModHandler.getIC2Item("reactorHeatSwitch", 1L, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sVacuumRecipes); + .itemInputs(GT_ModHandler.getIC2Item("reactorHeatSwitch", 1L, 32767)) + .itemOutputs(GT_ModHandler.getIC2Item("reactorHeatSwitch", 1L, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sVacuumRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_ModHandler.getIC2Item("reactorHeatSwitchCore", 1L, 32767)) - .itemOutputs(GT_ModHandler.getIC2Item("reactorHeatSwitchCore", 1L, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sVacuumRecipes); + .itemInputs(GT_ModHandler.getIC2Item("reactorHeatSwitchCore", 1L, 32767)) + .itemOutputs(GT_ModHandler.getIC2Item("reactorHeatSwitchCore", 1L, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sVacuumRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_ModHandler.getIC2Item("reactorHeatSwitchSpread", 1L, 32767)) - .itemOutputs(GT_ModHandler.getIC2Item("reactorHeatSwitchSpread", 1L, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sVacuumRecipes); + .itemInputs(GT_ModHandler.getIC2Item("reactorHeatSwitchSpread", 1L, 32767)) + .itemOutputs(GT_ModHandler.getIC2Item("reactorHeatSwitchSpread", 1L, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sVacuumRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_ModHandler.getIC2Item("reactorHeatSwitchDiamond", 1L, 32767)) - .itemOutputs(GT_ModHandler.getIC2Item("reactorHeatSwitchDiamond", 1L, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sVacuumRecipes); + .itemInputs(GT_ModHandler.getIC2Item("reactorHeatSwitchDiamond", 1L, 32767)) + .itemOutputs(GT_ModHandler.getIC2Item("reactorHeatSwitchDiamond", 1L, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sVacuumRecipes); } // reactor vent { GT_Values.RA.stdBuilder() - .itemInputs(GT_ModHandler.getIC2Item("reactorVent", 1L, 32767)) - .itemOutputs(GT_ModHandler.getIC2Item("reactorVent", 1L, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sVacuumRecipes); + .itemInputs(GT_ModHandler.getIC2Item("reactorVent", 1L, 32767)) + .itemOutputs(GT_ModHandler.getIC2Item("reactorVent", 1L, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sVacuumRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_ModHandler.getIC2Item("reactorVentCore", 1L, 32767)) - .itemOutputs(GT_ModHandler.getIC2Item("reactorVentCore", 1L, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sVacuumRecipes); + .itemInputs(GT_ModHandler.getIC2Item("reactorVentCore", 1L, 32767)) + .itemOutputs(GT_ModHandler.getIC2Item("reactorVentCore", 1L, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sVacuumRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_ModHandler.getIC2Item("reactorVentGold", 1L, 32767)) - .itemOutputs(GT_ModHandler.getIC2Item("reactorVentGold", 1L, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sVacuumRecipes); + .itemInputs(GT_ModHandler.getIC2Item("reactorVentGold", 1L, 32767)) + .itemOutputs(GT_ModHandler.getIC2Item("reactorVentGold", 1L, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sVacuumRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_ModHandler.getIC2Item("reactorVentDiamond", 1L, 32767)) - .itemOutputs(GT_ModHandler.getIC2Item("reactorVentDiamond", 1L, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sVacuumRecipes); + .itemInputs(GT_ModHandler.getIC2Item("reactorVentDiamond", 1L, 32767)) + .itemOutputs(GT_ModHandler.getIC2Item("reactorVentDiamond", 1L, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sVacuumRecipes); } // reactor vent spread GT_Values.RA.stdBuilder() - .itemInputs(GT_ModHandler.getIC2Item("reactorVentSpread", 1L, 32767)) - .itemOutputs(GT_ModHandler.getIC2Item("reactorVentSpread", 1L, 0)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sVacuumRecipes); + .itemInputs(GT_ModHandler.getIC2Item("reactorVentSpread", 1L, 32767)) + .itemOutputs(GT_ModHandler.getIC2Item("reactorVentSpread", 1L, 0)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sVacuumRecipes); // reactor coolant { GT_Values.RA.stdBuilder() - .itemInputs(GT_ModHandler.getIC2Item("reactorCoolantSimple", 1L, 32767)) - .itemOutputs(GT_ModHandler.getIC2Item("reactorCoolantSimple", 1L, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * TICKS) - .eut(TierEU.RECIPE_MV) - .addTo(sVacuumRecipes); + .itemInputs(GT_ModHandler.getIC2Item("reactorCoolantSimple", 1L, 32767)) + .itemOutputs(GT_ModHandler.getIC2Item("reactorCoolantSimple", 1L, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * TICKS) + .eut(TierEU.RECIPE_MV) + .addTo(sVacuumRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_ModHandler.getIC2Item("reactorCoolantTriple", 1L, 32767)) - .itemOutputs(GT_ModHandler.getIC2Item("reactorCoolantTriple", 1L, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(1 * SECONDS + 10 * TICKS) - .eut(TierEU.RECIPE_MV) - .addTo(sVacuumRecipes); + .itemInputs(GT_ModHandler.getIC2Item("reactorCoolantTriple", 1L, 32767)) + .itemOutputs(GT_ModHandler.getIC2Item("reactorCoolantTriple", 1L, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(1 * SECONDS + 10 * TICKS) + .eut(TierEU.RECIPE_MV) + .addTo(sVacuumRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_ModHandler.getIC2Item("reactorCoolantSix", 1L, 32767)) - .itemOutputs(GT_ModHandler.getIC2Item("reactorCoolantSix", 1L, 1)) - .noFluidInputs() - .noFluidOutputs() - .duration(3 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sVacuumRecipes); + .itemInputs(GT_ModHandler.getIC2Item("reactorCoolantSix", 1L, 32767)) + .itemOutputs(GT_ModHandler.getIC2Item("reactorCoolantSix", 1L, 1)) + .noFluidInputs() + .noFluidOutputs() + .duration(3 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sVacuumRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Reactor_Coolant_He_1.getWildcard(1L)) - .itemOutputs(ItemList.Reactor_Coolant_He_1.get(1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(3 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sVacuumRecipes); + .itemInputs(ItemList.Reactor_Coolant_He_1.getWildcard(1L)) + .itemOutputs(ItemList.Reactor_Coolant_He_1.get(1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(3 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sVacuumRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Reactor_Coolant_He_3.getWildcard(1L)) - .itemOutputs(ItemList.Reactor_Coolant_He_3.get(1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(9 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sVacuumRecipes); + .itemInputs(ItemList.Reactor_Coolant_He_3.getWildcard(1L)) + .itemOutputs(ItemList.Reactor_Coolant_He_3.get(1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(9 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sVacuumRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Reactor_Coolant_He_6.getWildcard(1L)) - .itemOutputs(ItemList.Reactor_Coolant_He_6.get(1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(18 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sVacuumRecipes); + .itemInputs(ItemList.Reactor_Coolant_He_6.getWildcard(1L)) + .itemOutputs(ItemList.Reactor_Coolant_He_6.get(1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(18 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sVacuumRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Reactor_Coolant_NaK_1.getWildcard(1L)) - .itemOutputs(ItemList.Reactor_Coolant_NaK_1.get(1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(3 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sVacuumRecipes); + .itemInputs(ItemList.Reactor_Coolant_NaK_1.getWildcard(1L)) + .itemOutputs(ItemList.Reactor_Coolant_NaK_1.get(1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(3 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sVacuumRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Reactor_Coolant_NaK_3.getWildcard(1L)) - .itemOutputs(ItemList.Reactor_Coolant_NaK_3.get(1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(9 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sVacuumRecipes); + .itemInputs(ItemList.Reactor_Coolant_NaK_3.getWildcard(1L)) + .itemOutputs(ItemList.Reactor_Coolant_NaK_3.get(1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(9 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sVacuumRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Reactor_Coolant_NaK_6.getWildcard(1L)) - .itemOutputs(ItemList.Reactor_Coolant_NaK_6.get(1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(18 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sVacuumRecipes); + .itemInputs(ItemList.Reactor_Coolant_NaK_6.getWildcard(1L)) + .itemOutputs(ItemList.Reactor_Coolant_NaK_6.get(1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(18 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sVacuumRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.neutroniumHeatCapacitor.getWildcard(1L)) - .itemOutputs(ItemList.neutroniumHeatCapacitor.get(1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(13 * HOURS + 53 * MINUTES + 20 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sVacuumRecipes); + .itemInputs(ItemList.neutroniumHeatCapacitor.getWildcard(1L)) + .itemOutputs(ItemList.neutroniumHeatCapacitor.get(1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(13 * HOURS + 53 * MINUTES + 20 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sVacuumRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Reactor_Coolant_Sp_1.getWildcard(1L)) - .itemOutputs(ItemList.Reactor_Coolant_Sp_1.get(1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(9 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sVacuumRecipes); + .itemInputs(ItemList.Reactor_Coolant_Sp_1.getWildcard(1L)) + .itemOutputs(ItemList.Reactor_Coolant_Sp_1.get(1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(9 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sVacuumRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Reactor_Coolant_Sp_2.getWildcard(1L)) - .itemOutputs(ItemList.Reactor_Coolant_Sp_2.get(1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(18 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sVacuumRecipes); + .itemInputs(ItemList.Reactor_Coolant_Sp_2.getWildcard(1L)) + .itemOutputs(ItemList.Reactor_Coolant_Sp_2.get(1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(18 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sVacuumRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Reactor_Coolant_Sp_3.getWildcard(1L)) - .itemOutputs(ItemList.Reactor_Coolant_Sp_3.get(1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(27 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sVacuumRecipes); + .itemInputs(ItemList.Reactor_Coolant_Sp_3.getWildcard(1L)) + .itemOutputs(ItemList.Reactor_Coolant_Sp_3.get(1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(27 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sVacuumRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Reactor_Coolant_Sp_6.getWildcard(1L)) - .itemOutputs(ItemList.Reactor_Coolant_Sp_6.get(1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(54 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sVacuumRecipes); + .itemInputs(ItemList.Reactor_Coolant_Sp_6.getWildcard(1L)) + .itemOutputs(ItemList.Reactor_Coolant_Sp_6.get(1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(54 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sVacuumRecipes); } } @@ -240,298 +240,267 @@ public class VacuumFreezerRecipes implements Runnable { // fluid vacuum { GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Water, 1L)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Ice, 1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * SECONDS + 10 * TICKS) - .eut(TierEU.RECIPE_MV) - .addTo(sVacuumRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Water, 1L)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Ice, 1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS) + .eut(TierEU.RECIPE_MV) + .addTo(sVacuumRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Oxygen, 1L)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.LiquidOxygen, 1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(60 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sVacuumRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Oxygen, 1L)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.LiquidOxygen, 1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(60 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sVacuumRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Nitrogen, 1L)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.LiquidNitrogen, 1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(60 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sVacuumRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Nitrogen, 1L)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.LiquidNitrogen, 1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(60 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sVacuumRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_ModHandler.getIC2Item("airCell", 1L)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.LiquidAir, 1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(1 * SECONDS + 8 * TICKS) - .eut(TierEU.RECIPE_HV) - .addTo(sVacuumRecipes); + .itemInputs(GT_ModHandler.getIC2Item("airCell", 1L)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.LiquidAir, 1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(1 * SECONDS + 8 * TICKS) + .eut(TierEU.RECIPE_HV) + .addTo(sVacuumRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Reactor_Coolant_Sp_1.getWildcard(1L)) - .itemOutputs(ItemList.Reactor_Coolant_Sp_1.get(1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(1 * MINUTES + 30 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sVacuumRecipes); + .itemInputs(ItemList.Reactor_Coolant_Sp_1.getWildcard(1L)) + .itemOutputs(ItemList.Reactor_Coolant_Sp_1.get(1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(1 * MINUTES + 30 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sVacuumRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Reactor_Coolant_Sp_2.getWildcard(1L)) - .itemOutputs(ItemList.Reactor_Coolant_Sp_2.get(1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(3 * MINUTES) - .eut(TierEU.RECIPE_MV) - .addTo(sVacuumRecipes); + .itemInputs(ItemList.Reactor_Coolant_Sp_2.getWildcard(1L)) + .itemOutputs(ItemList.Reactor_Coolant_Sp_2.get(1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(3 * MINUTES) + .eut(TierEU.RECIPE_MV) + .addTo(sVacuumRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Reactor_Coolant_Sp_3.getWildcard(1L)) - .itemOutputs(ItemList.Reactor_Coolant_Sp_3.get(1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(4 * MINUTES + 30 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sVacuumRecipes); + .itemInputs(ItemList.Reactor_Coolant_Sp_3.getWildcard(1L)) + .itemOutputs(ItemList.Reactor_Coolant_Sp_3.get(1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(4 * MINUTES + 30 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sVacuumRecipes); GT_Values.RA.stdBuilder() - .itemInputs(ItemList.Reactor_Coolant_Sp_6.getWildcard(1L)) - .itemOutputs(ItemList.Reactor_Coolant_Sp_6.get(1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(9 * MINUTES) - .eut(TierEU.RECIPE_MV) - .addTo(sVacuumRecipes); + .itemInputs(ItemList.Reactor_Coolant_Sp_6.getWildcard(1L)) + .itemOutputs(ItemList.Reactor_Coolant_Sp_6.get(1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(9 * MINUTES) + .eut(TierEU.RECIPE_MV) + .addTo(sVacuumRecipes); } // Freeze superconductors. { GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get( - OrePrefixes.ingotHot, - Materials.Pentacadmiummagnesiumhexaoxid, - 1L)) - .itemOutputs( - GT_OreDictUnificator.get( - OrePrefixes.ingot, - Materials.Pentacadmiummagnesiumhexaoxid, - 1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_MV) - .addTo(sVacuumRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.ingotHot, Materials.Pentacadmiummagnesiumhexaoxid, 1L)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Pentacadmiummagnesiumhexaoxid, 1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_MV) + .addTo(sVacuumRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get( - OrePrefixes.ingotHot, - Materials.Titaniumonabariumdecacoppereikosaoxid, - 1L)) - .itemOutputs( - GT_OreDictUnificator.get( - OrePrefixes.ingot, - Materials.Titaniumonabariumdecacoppereikosaoxid, - 1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_HV) - .addTo(sVacuumRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.ingotHot, Materials.Titaniumonabariumdecacoppereikosaoxid, 1L)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Titaniumonabariumdecacoppereikosaoxid, 1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_HV) + .addTo(sVacuumRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.ingotHot, Materials.Uraniumtriplatinid, 1L)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Uraniumtriplatinid, 1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_EV) - .addTo(sVacuumRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.ingotHot, Materials.Uraniumtriplatinid, 1L)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Uraniumtriplatinid, 1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_EV) + .addTo(sVacuumRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.ingotHot, Materials.Vanadiumtriindinid, 1L)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Vanadiumtriindinid, 1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(TierEU.RECIPE_IV) - .addTo(sVacuumRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.ingotHot, Materials.Vanadiumtriindinid, 1L)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Vanadiumtriindinid, 1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(TierEU.RECIPE_IV) + .addTo(sVacuumRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get( - OrePrefixes.ingotHot, - Materials.Tetraindiumditindibariumtitaniumheptacoppertetrakaidekaoxid, - 1L)) - .itemOutputs( - GT_OreDictUnificator.get( - OrePrefixes.ingot, - Materials.Tetraindiumditindibariumtitaniumheptacoppertetrakaidekaoxid, - 1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_LuV) - .addTo(sVacuumRecipes); + .itemInputs( + GT_OreDictUnificator.get( + OrePrefixes.ingotHot, + Materials.Tetraindiumditindibariumtitaniumheptacoppertetrakaidekaoxid, + 1L)) + .itemOutputs( + GT_OreDictUnificator.get( + OrePrefixes.ingot, + Materials.Tetraindiumditindibariumtitaniumheptacoppertetrakaidekaoxid, + 1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_LuV) + .addTo(sVacuumRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get( - OrePrefixes.ingotHot, - Materials.Tetranaquadahdiindiumhexaplatiumosminid, - 1L)) - .itemOutputs( - GT_OreDictUnificator.get( - OrePrefixes.ingot, - Materials.Tetranaquadahdiindiumhexaplatiumosminid, - 1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * SECONDS) - .eut(TierEU.RECIPE_ZPM) - .addTo(sVacuumRecipes); + .itemInputs( + GT_OreDictUnificator + .get(OrePrefixes.ingotHot, Materials.Tetranaquadahdiindiumhexaplatiumosminid, 1L)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Tetranaquadahdiindiumhexaplatiumosminid, 1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * SECONDS) + .eut(TierEU.RECIPE_ZPM) + .addTo(sVacuumRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get( - OrePrefixes.ingotHot, - Materials.Longasssuperconductornameforuvwire, - 1L)) - .itemOutputs( - GT_OreDictUnificator.get( - OrePrefixes.ingot, - Materials.Longasssuperconductornameforuvwire, - 1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(40 * SECONDS) - .eut(TierEU.RECIPE_UV) - .addTo(sVacuumRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.ingotHot, Materials.Longasssuperconductornameforuvwire, 1L)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Longasssuperconductornameforuvwire, 1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(40 * SECONDS) + .eut(TierEU.RECIPE_UV) + .addTo(sVacuumRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get( - OrePrefixes.ingotHot, - Materials.Longasssuperconductornameforuhvwire, - 1L)) - .itemOutputs( - GT_OreDictUnificator.get( - OrePrefixes.ingot, - Materials.Longasssuperconductornameforuhvwire, - 1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(1 * MINUTES + 20 * SECONDS) - .eut(TierEU.RECIPE_UHV) - .addTo(sVacuumRecipes); + .itemInputs( + GT_OreDictUnificator.get(OrePrefixes.ingotHot, Materials.Longasssuperconductornameforuhvwire, 1L)) + .itemOutputs( + GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Longasssuperconductornameforuhvwire, 1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(1 * MINUTES + 20 * SECONDS) + .eut(TierEU.RECIPE_UHV) + .addTo(sVacuumRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.ingotHot, Materials.SuperconductorUEVBase, 1L)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.SuperconductorUEVBase, 1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * MINUTES + 40 * SECONDS) - .eut(TierEU.RECIPE_UEV) - .addTo(sVacuumRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.ingotHot, Materials.SuperconductorUEVBase, 1L)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.SuperconductorUEVBase, 1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * MINUTES + 40 * SECONDS) + .eut(TierEU.RECIPE_UEV) + .addTo(sVacuumRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.ingotHot, Materials.SuperconductorUIVBase, 1L)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.SuperconductorUIVBase, 1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * MINUTES + 40 * SECONDS) - .eut(TierEU.RECIPE_UIV) - .addTo(sVacuumRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.ingotHot, Materials.SuperconductorUIVBase, 1L)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.SuperconductorUIVBase, 1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * MINUTES + 40 * SECONDS) + .eut(TierEU.RECIPE_UIV) + .addTo(sVacuumRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.ingotHot, Materials.SuperconductorUMVBase, 1L)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.SuperconductorUMVBase, 1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(2 * MINUTES + 40 * SECONDS) - .eut(TierEU.RECIPE_UMV) - .addTo(sVacuumRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.ingotHot, Materials.SuperconductorUMVBase, 1L)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.SuperconductorUMVBase, 1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(2 * MINUTES + 40 * SECONDS) + .eut(TierEU.RECIPE_UMV) + .addTo(sVacuumRecipes); } // Plasma Freezing { GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.cellPlasma, Materials.Americium, 1L)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cellMolten, Materials.Americium, 1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(20 * TICKS) - .eut(TierEU.RECIPE_LuV) - .addTo(sVacuumRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.cellPlasma, Materials.Americium, 1L)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cellMolten, Materials.Americium, 1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(20 * TICKS) + .eut(TierEU.RECIPE_LuV) + .addTo(sVacuumRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.cellPlasma, Materials.Helium, 1L)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Helium, 1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * TICKS) - .eut(TierEU.RECIPE_MV) - .addTo(sVacuumRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.cellPlasma, Materials.Helium, 1L)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Helium, 1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * TICKS) + .eut(TierEU.RECIPE_MV) + .addTo(sVacuumRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.cellPlasma, Materials.Nitrogen, 1L)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Nitrogen, 1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(1 * SECONDS + 8 * TICKS) - .eut(TierEU.RECIPE_MV) - .addTo(sVacuumRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.cellPlasma, Materials.Nitrogen, 1L)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Nitrogen, 1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(1 * SECONDS + 8 * TICKS) + .eut(TierEU.RECIPE_MV) + .addTo(sVacuumRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.cellPlasma, Materials.Oxygen, 1L)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Oxygen, 1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(1 * SECONDS + 12 * TICKS) - .eut(TierEU.RECIPE_MV) - .addTo(sVacuumRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.cellPlasma, Materials.Oxygen, 1L)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Oxygen, 1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(1 * SECONDS + 12 * TICKS) + .eut(TierEU.RECIPE_MV) + .addTo(sVacuumRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.cellPlasma, Materials.Radon, 1L)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Radon, 1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS + 10 * TICKS) - .eut(TierEU.RECIPE_HV) - .addTo(sVacuumRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.cellPlasma, Materials.Radon, 1L)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Radon, 1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS + 10 * TICKS) + .eut(TierEU.RECIPE_HV) + .addTo(sVacuumRecipes); GT_Values.RA.stdBuilder() - .noItemInputs() - .noItemOutputs() - .fluidInputs(Materials.Boron.getPlasma(144L)) - .fluidOutputs(Materials.Boron.getPlasma(144L)) - .duration(20 * TICKS) - .eut(12) - .addTo(sVacuumRecipes); + .noItemInputs() + .noItemOutputs() + .fluidInputs(Materials.Boron.getPlasma(144L)) + .fluidOutputs(Materials.Boron.getPlasma(144L)) + .duration(20 * TICKS) + .eut(12) + .addTo(sVacuumRecipes); } if (GTPlusPlus.isModLoaded()) { // hot transcendent metal ingot cooling GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.ingotHot, Materials.TranscendentMetal, 1L)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.TranscendentMetal, 1L)) - .fluidInputs( - new FluidStack(FluidRegistry.getFluid("molten.titansteel"), 144), - Materials.SuperCoolant.getFluid(1000)) - .noFluidOutputs() - .duration(20 * TICKS) - .eut(TierEU.RECIPE_UIV) - .addTo(sVacuumRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.ingotHot, Materials.TranscendentMetal, 1L)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.TranscendentMetal, 1L)) + .fluidInputs( + new FluidStack(FluidRegistry.getFluid("molten.titansteel"), 144), + Materials.SuperCoolant.getFluid(1000)) + .noFluidOutputs() + .duration(20 * TICKS) + .eut(TierEU.RECIPE_UIV) + .addTo(sVacuumRecipes); } } } diff --git a/src/main/java/gregtech/loaders/postload/recipes/WiremillRecipes.java b/src/main/java/gregtech/loaders/postload/recipes/WiremillRecipes.java index d43747401b..37161f3e28 100644 --- a/src/main/java/gregtech/loaders/postload/recipes/WiremillRecipes.java +++ b/src/main/java/gregtech/loaders/postload/recipes/WiremillRecipes.java @@ -18,174 +18,170 @@ public class WiremillRecipes implements Runnable { // directly copied from GT code but converted to RA2 format void registerWiremillRecipes(Materials materials, int baseDuration, int eut, OrePrefixes prefix1, - OrePrefixes prefix2, int multiplier) { + OrePrefixes prefix2, int multiplier) { GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(prefix1, materials, 1L), GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, materials, multiplier)) - .noFluidInputs() - .noFluidOutputs() - .duration(baseDuration) - .eut(eut) - .addTo(sWiremillRecipes); + .itemInputs(GT_OreDictUnificator.get(prefix1, materials, 1L), GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, materials, multiplier)) + .noFluidInputs() + .noFluidOutputs() + .duration(baseDuration) + .eut(eut) + .addTo(sWiremillRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(prefix1, materials, 2L / multiplier), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt02, materials, 1L)) - .noFluidInputs() - .noFluidOutputs() - .duration((int) (baseDuration * 1.5f)) - .eut(eut) - .addTo(sWiremillRecipes); + .itemInputs( + GT_OreDictUnificator.get(prefix1, materials, 2L / multiplier), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt02, materials, 1L)) + .noFluidInputs() + .noFluidOutputs() + .duration((int) (baseDuration * 1.5f)) + .eut(eut) + .addTo(sWiremillRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(prefix1, materials, 4L / multiplier), - GT_Utility.getIntegratedCircuit(4)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt04, materials, 1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(baseDuration * 2) - .eut(eut) - .addTo(sWiremillRecipes); + .itemInputs( + GT_OreDictUnificator.get(prefix1, materials, 4L / multiplier), + GT_Utility.getIntegratedCircuit(4)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt04, materials, 1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(baseDuration * 2) + .eut(eut) + .addTo(sWiremillRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(prefix1, materials, 8L / multiplier), - GT_Utility.getIntegratedCircuit(8)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt08, materials, 1L)) - .noFluidInputs() - .noFluidOutputs() - .duration((int) (baseDuration * 2.5f)) - .eut(eut) - .addTo(sWiremillRecipes); + .itemInputs( + GT_OreDictUnificator.get(prefix1, materials, 8L / multiplier), + GT_Utility.getIntegratedCircuit(8)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt08, materials, 1L)) + .noFluidInputs() + .noFluidOutputs() + .duration((int) (baseDuration * 2.5f)) + .eut(eut) + .addTo(sWiremillRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(prefix1, materials, 12L / multiplier), - GT_Utility.getIntegratedCircuit(12)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt12, materials, 1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(baseDuration * 3) - .eut(eut) - .addTo(sWiremillRecipes); + .itemInputs( + GT_OreDictUnificator.get(prefix1, materials, 12L / multiplier), + GT_Utility.getIntegratedCircuit(12)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt12, materials, 1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(baseDuration * 3) + .eut(eut) + .addTo(sWiremillRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(prefix1, materials, 16L / multiplier), - GT_Utility.getIntegratedCircuit(16)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt16, materials, 1L)) - .noFluidInputs() - .noFluidOutputs() - .duration((int) (baseDuration * 3.5f)) - .eut(eut) - .addTo(sWiremillRecipes); + .itemInputs( + GT_OreDictUnificator.get(prefix1, materials, 16L / multiplier), + GT_Utility.getIntegratedCircuit(16)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt16, materials, 1L)) + .noFluidInputs() + .noFluidOutputs() + .duration((int) (baseDuration * 3.5f)) + .eut(eut) + .addTo(sWiremillRecipes); if (GT_OreDictUnificator.get(prefix2, materials, 1L) != null) { GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(prefix2, materials, 2L / multiplier), - GT_Utility.getIntegratedCircuit(1)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, materials, 1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(baseDuration / 2) - .eut(eut) - .addTo(sWiremillRecipes); + .itemInputs( + GT_OreDictUnificator.get(prefix2, materials, 2L / multiplier), + GT_Utility.getIntegratedCircuit(1)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt01, materials, 1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(baseDuration / 2) + .eut(eut) + .addTo(sWiremillRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(prefix2, materials, 4L / multiplier), - GT_Utility.getIntegratedCircuit(2)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt02, materials, 1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(baseDuration) - .eut(eut) - .addTo(sWiremillRecipes); + .itemInputs( + GT_OreDictUnificator.get(prefix2, materials, 4L / multiplier), + GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt02, materials, 1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(baseDuration) + .eut(eut) + .addTo(sWiremillRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(prefix2, materials, 8L / multiplier), - GT_Utility.getIntegratedCircuit(4)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt04, materials, 1L)) - .noFluidInputs() - .noFluidOutputs() - .duration((int) (baseDuration * 1.5f)) - .eut(eut) - .addTo(sWiremillRecipes); + .itemInputs( + GT_OreDictUnificator.get(prefix2, materials, 8L / multiplier), + GT_Utility.getIntegratedCircuit(4)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt04, materials, 1L)) + .noFluidInputs() + .noFluidOutputs() + .duration((int) (baseDuration * 1.5f)) + .eut(eut) + .addTo(sWiremillRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(prefix2, materials, 16L / multiplier), - GT_Utility.getIntegratedCircuit(8)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt08, materials, 1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(baseDuration * 2) - .eut(eut) - .addTo(sWiremillRecipes); + .itemInputs( + GT_OreDictUnificator.get(prefix2, materials, 16L / multiplier), + GT_Utility.getIntegratedCircuit(8)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt08, materials, 1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(baseDuration * 2) + .eut(eut) + .addTo(sWiremillRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(prefix2, materials, 24L / multiplier), - GT_Utility.getIntegratedCircuit(12)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt12, materials, 1L)) - .noFluidInputs() - .noFluidOutputs() - .duration((int) (baseDuration * 2.5f)) - .eut(eut) - .addTo(sWiremillRecipes); + .itemInputs( + GT_OreDictUnificator.get(prefix2, materials, 24L / multiplier), + GT_Utility.getIntegratedCircuit(12)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt12, materials, 1L)) + .noFluidInputs() + .noFluidOutputs() + .duration((int) (baseDuration * 2.5f)) + .eut(eut) + .addTo(sWiremillRecipes); GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(prefix2, materials, 32L / multiplier), - GT_Utility.getIntegratedCircuit(16)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt16, materials, 1L)) - .noFluidInputs() - .noFluidOutputs() - .duration(baseDuration * 3) - .eut(eut) - .addTo(sWiremillRecipes); + .itemInputs( + GT_OreDictUnificator.get(prefix2, materials, 32L / multiplier), + GT_Utility.getIntegratedCircuit(16)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireGt16, materials, 1L)) + .noFluidInputs() + .noFluidOutputs() + .duration(baseDuration * 3) + .eut(eut) + .addTo(sWiremillRecipes); } if (GT_OreDictUnificator.get(OrePrefixes.wireFine, materials, 1L) != null) { GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(prefix1, materials, 1L), - GT_Utility.getIntegratedCircuit(3)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireFine, materials, 4L * multiplier)) - .noFluidInputs() - .noFluidOutputs() - .duration(baseDuration) - .eut(eut) - .addTo(sWiremillRecipes); + .itemInputs(GT_OreDictUnificator.get(prefix1, materials, 1L), GT_Utility.getIntegratedCircuit(3)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireFine, materials, 4L * multiplier)) + .noFluidInputs() + .noFluidOutputs() + .duration(baseDuration) + .eut(eut) + .addTo(sWiremillRecipes); if (GT_OreDictUnificator.get(prefix2, materials, 1L) != null) { GT_Values.RA.stdBuilder() - .itemInputs( - GT_OreDictUnificator.get(prefix2, materials, 1L), - GT_Utility.getIntegratedCircuit(3)) - .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireFine, materials, 2L * multiplier)) - .noFluidInputs() - .noFluidOutputs() - .duration(baseDuration / 2) - .eut(eut) - .addTo(sWiremillRecipes); + .itemInputs(GT_OreDictUnificator.get(prefix2, materials, 1L), GT_Utility.getIntegratedCircuit(3)) + .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.wireFine, materials, 2L * multiplier)) + .noFluidInputs() + .noFluidOutputs() + .duration(baseDuration / 2) + .eut(eut) + .addTo(sWiremillRecipes); } } } void registerWiremillRecipes(Materials aMaterial, int baseDuration, int aEUt) { registerWiremillRecipes( - aMaterial, - baseDuration, - calculateRecipeEU(aMaterial, aEUt), - OrePrefixes.ingot, - OrePrefixes.stick, - 2); + aMaterial, + baseDuration, + calculateRecipeEU(aMaterial, aEUt), + OrePrefixes.ingot, + OrePrefixes.stick, + 2); } @Override @@ -196,68 +192,68 @@ public class WiremillRecipes implements Runnable { registerWiremillRecipes(Materials.SpaceTime, 20 * SECONDS, 32_000); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Polycaprolactam, 1L)) - .itemOutputs(new ItemStack(Items.string, 32)) - .noFluidInputs() - .noFluidOutputs() - .duration(4 * SECONDS) - .eut(48) - .addTo(sWiremillRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Polycaprolactam, 1L)) + .itemOutputs(new ItemStack(Items.string, 32)) + .noFluidInputs() + .noFluidOutputs() + .duration(4 * SECONDS) + .eut(48) + .addTo(sWiremillRecipes); if (!GT_Mod.gregtechproxy.mDisableIC2Cables) { GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Copper, 1L)) - .itemOutputs(GT_ModHandler.getIC2Item("copperCableItem", 3L)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(2) - .addTo(sWiremillRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Copper, 1L)) + .itemOutputs(GT_ModHandler.getIC2Item("copperCableItem", 3L)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(2) + .addTo(sWiremillRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.AnnealedCopper, 1L)) - .itemOutputs(GT_ModHandler.getIC2Item("copperCableItem", 3L)) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(2) - .addTo(sWiremillRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.AnnealedCopper, 1L)) + .itemOutputs(GT_ModHandler.getIC2Item("copperCableItem", 3L)) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(2) + .addTo(sWiremillRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Tin, 1L)) - .itemOutputs(GT_ModHandler.getIC2Item("tinCableItem", 4L)) - .noFluidInputs() - .noFluidOutputs() - .duration(7 * SECONDS + 10 * TICKS) - .eut(1) - .addTo(sWiremillRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Tin, 1L)) + .itemOutputs(GT_ModHandler.getIC2Item("tinCableItem", 4L)) + .noFluidInputs() + .noFluidOutputs() + .duration(7 * SECONDS + 10 * TICKS) + .eut(1) + .addTo(sWiremillRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 1L)) - .itemOutputs(GT_ModHandler.getIC2Item("ironCableItem", 6L)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(2) - .addTo(sWiremillRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 1L)) + .itemOutputs(GT_ModHandler.getIC2Item("ironCableItem", 6L)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(2) + .addTo(sWiremillRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 1L)) - .itemOutputs(GT_ModHandler.getIC2Item("ironCableItem", 6L)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(2) - .addTo(sWiremillRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 1L)) + .itemOutputs(GT_ModHandler.getIC2Item("ironCableItem", 6L)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(2) + .addTo(sWiremillRecipes); GT_Values.RA.stdBuilder() - .itemInputs(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Gold, 1L)) - .itemOutputs(GT_ModHandler.getIC2Item("goldCableItem", 6L)) - .noFluidInputs() - .noFluidOutputs() - .duration(10 * SECONDS) - .eut(1) - .addTo(sWiremillRecipes); + .itemInputs(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Gold, 1L)) + .itemOutputs(GT_ModHandler.getIC2Item("goldCableItem", 6L)) + .noFluidInputs() + .noFluidOutputs() + .duration(10 * SECONDS) + .eut(1) + .addTo(sWiremillRecipes); } } } diff --git a/src/main/java/gregtech/loaders/preload/GT_Loader_ItemData.java b/src/main/java/gregtech/loaders/preload/GT_Loader_ItemData.java index 2aad0220a2..3d7ec27d93 100644 --- a/src/main/java/gregtech/loaders/preload/GT_Loader_ItemData.java +++ b/src/main/java/gregtech/loaders/preload/GT_Loader_ItemData.java @@ -27,424 +27,359 @@ public class GT_Loader_ItemData implements Runnable { public void run() { GT_Log.out.println("GT_Mod: Loading Item Data Tags"); GT_OreDictUnificator.addItemData( - GT_ModHandler.getModItem(TwilightForest.ID, "item.giantPick", 1L, 0), - new ItemData(Materials.Stone, 696729600L, new MaterialStack(Materials.Wood, 464486400L))); + GT_ModHandler.getModItem(TwilightForest.ID, "item.giantPick", 1L, 0), + new ItemData(Materials.Stone, 696729600L, new MaterialStack(Materials.Wood, 464486400L))); GT_OreDictUnificator.addItemData( - GT_ModHandler.getModItem(TwilightForest.ID, "item.giantSword", 1L, 0), - new ItemData(Materials.Stone, 464486400L, new MaterialStack(Materials.Wood, 232243200L))); + GT_ModHandler.getModItem(TwilightForest.ID, "item.giantSword", 1L, 0), + new ItemData(Materials.Stone, 464486400L, new MaterialStack(Materials.Wood, 232243200L))); GT_OreDictUnificator.addItemData( - GT_ModHandler.getModItem(TwilightForest.ID, "tile.GiantLog", 1L, 32767), - new ItemData(Materials.Wood, 232243200L)); + GT_ModHandler.getModItem(TwilightForest.ID, "tile.GiantLog", 1L, 32767), + new ItemData(Materials.Wood, 232243200L)); GT_OreDictUnificator.addItemData( - GT_ModHandler.getModItem(TwilightForest.ID, "tile.GiantCobble", 1L, 32767), - new ItemData(Materials.Stone, 232243200L)); + GT_ModHandler.getModItem(TwilightForest.ID, "tile.GiantCobble", 1L, 32767), + new ItemData(Materials.Stone, 232243200L)); GT_OreDictUnificator.addItemData( - GT_ModHandler.getModItem(TwilightForest.ID, "tile.GiantObsidian", 1L, 32767), - new ItemData(Materials.Obsidian, 232243200L)); + GT_ModHandler.getModItem(TwilightForest.ID, "tile.GiantObsidian", 1L, 32767), + new ItemData(Materials.Obsidian, 232243200L)); GT_OreDictUnificator.addItemData( - GT_ModHandler.getModItem(TwilightForest.ID, "item.minotaurAxe", 1L, 0), - new ItemData( - Materials.Diamond, - 14515200L, - new MaterialStack(Materials.Wood, OrePrefixes.stick.mMaterialAmount * 2L))); + GT_ModHandler.getModItem(TwilightForest.ID, "item.minotaurAxe", 1L, 0), + new ItemData( + Materials.Diamond, + 14515200L, + new MaterialStack(Materials.Wood, OrePrefixes.stick.mMaterialAmount * 2L))); GT_OreDictUnificator.addItemData( - GT_ModHandler.getModItem(TwilightForest.ID, "item.armorShards", 1L, 0), - new ItemData(Materials.Knightmetal, 403200L)); + GT_ModHandler.getModItem(TwilightForest.ID, "item.armorShards", 1L, 0), + new ItemData(Materials.Knightmetal, 403200L)); GT_OreDictUnificator.addItemData( - GT_ModHandler.getModItem(TwilightForest.ID, "item.shardCluster", 1L, 0), - new ItemData(Materials.Knightmetal, 3628800L)); + GT_ModHandler.getModItem(TwilightForest.ID, "item.shardCluster", 1L, 0), + new ItemData(Materials.Knightmetal, 3628800L)); GT_OreDictUnificator.addItemData(ItemList.TF_LiveRoot.get(1L), new ItemData(Materials.LiveRoot, 3628800L)); GT_OreDictUnificator.addItemData( - GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 10), - new ItemData(Materials.CertusQuartz, 1814400L)); + GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 10), + new ItemData(Materials.CertusQuartz, 1814400L)); GT_OreDictUnificator.addItemData( - GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 11), - new ItemData(Materials.NetherQuartz, 1814400L)); + GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 11), + new ItemData(Materials.NetherQuartz, 1814400L)); GT_OreDictUnificator.addItemData( - GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 12), - new ItemData(Materials.Fluix, 1814400L)); + GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 12), + new ItemData(Materials.Fluix, 1814400L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.quartz_block, 1, 32767), new ItemData(Materials.NetherQuartz, 14515200L)); GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.quartz_block, 1, 32767), - new ItemData(Materials.NetherQuartz, 14515200L)); + GT_ModHandler.getModItem(AppliedEnergistics2.ID, "tile.BlockQuartz", 1L, 32767), + new ItemData(Materials.CertusQuartz, 14515200L)); GT_OreDictUnificator.addItemData( - GT_ModHandler.getModItem(AppliedEnergistics2.ID, "tile.BlockQuartz", 1L, 32767), - new ItemData(Materials.CertusQuartz, 14515200L)); + GT_ModHandler.getModItem(AppliedEnergistics2.ID, "tile.BlockQuartzPillar", 1L, 32767), + new ItemData(Materials.CertusQuartz, 14515200L)); GT_OreDictUnificator.addItemData( - GT_ModHandler.getModItem(AppliedEnergistics2.ID, "tile.BlockQuartzPillar", 1L, 32767), - new ItemData(Materials.CertusQuartz, 14515200L)); - GT_OreDictUnificator.addItemData( - GT_ModHandler.getModItem(AppliedEnergistics2.ID, "tile.BlockQuartzChiseled", 1L, 32767), - new ItemData(Materials.CertusQuartz, 14515200L)); + GT_ModHandler.getModItem(AppliedEnergistics2.ID, "tile.BlockQuartzChiseled", 1L, 32767), + new ItemData(Materials.CertusQuartz, 14515200L)); GT_OreDictUnificator.addItemData(new ItemStack(Items.wheat, 1, 32767), new ItemData(Materials.Wheat, 3628800L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.hay_block, 1, 32767), - new ItemData(Materials.Wheat, 32659200L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Items.snowball, 1, 32767), - new ItemData(Materials.Snow, 907200L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.hay_block, 1, 32767), new ItemData(Materials.Wheat, 32659200L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Items.snowball, 1, 32767), new ItemData(Materials.Snow, 907200L)); GT_OreDictUnificator.addItemData(new ItemStack(Blocks.snow, 1, 32767), new ItemData(Materials.Snow, 3628800L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.glowstone, 1, 32767), - new ItemData(Materials.Glowstone, 14515200L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.redstone_lamp, 1, 32767), - new ItemData( - Materials.Glowstone, - 14515200L, - new MaterialStack(Materials.Redstone, OrePrefixes.dust.mMaterialAmount * 4L))); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.lit_redstone_lamp, 1, 32767), - new ItemData( - Materials.Glowstone, - 14515200L, - new MaterialStack(Materials.Redstone, OrePrefixes.dust.mMaterialAmount * 4L))); - GT_OreDictUnificator.addItemData( - GT_ModHandler.getModItem(Forestry.ID, "craftingMaterial", 1L, 5), - new ItemData(Materials.Ice, 3628800L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.glowstone, 1, 32767), new ItemData(Materials.Glowstone, 14515200L)); + GT_OreDictUnificator.addItemData( + new ItemStack(Blocks.redstone_lamp, 1, 32767), + new ItemData( + Materials.Glowstone, + 14515200L, + new MaterialStack(Materials.Redstone, OrePrefixes.dust.mMaterialAmount * 4L))); + GT_OreDictUnificator.addItemData( + new ItemStack(Blocks.lit_redstone_lamp, 1, 32767), + new ItemData( + Materials.Glowstone, + 14515200L, + new MaterialStack(Materials.Redstone, OrePrefixes.dust.mMaterialAmount * 4L))); + GT_OreDictUnificator.addItemData( + GT_ModHandler.getModItem(Forestry.ID, "craftingMaterial", 1L, 5), + new ItemData(Materials.Ice, 3628800L)); GT_OreDictUnificator.addItemData(new ItemStack(Blocks.ice, 1, 32767), new ItemData(Materials.Ice, 3628800L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.packed_ice, 1, 32767), - new ItemData(Materials.Ice, 7257600L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Items.clay_ball, 1, 32767), - new ItemData(Materials.Clay, 1814400L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.packed_ice, 1, 32767), new ItemData(Materials.Ice, 7257600L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Items.clay_ball, 1, 32767), new ItemData(Materials.Clay, 1814400L)); GT_OreDictUnificator.addItemData(new ItemStack(Blocks.clay, 1, 32767), new ItemData(Materials.Clay, 7257600L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.hardened_clay, 1, 32767), - new ItemData(Materials.Clay, 3628800L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.stained_hardened_clay, 1, 32767), - new ItemData(Materials.Clay, 3628800L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.brick_block, 1, 32767), - new ItemData(Materials.Brick, 3628800L)); - GT_OreDictUnificator.addItemData( - GT_ModHandler.getIC2Item("Uran238", 1L), - new ItemData(Materials.Uranium, 3628800L)); - GT_OreDictUnificator.addItemData( - GT_ModHandler.getIC2Item("Uran235", 1L), - new ItemData(Materials.Uranium235, 3628800L)); - GT_OreDictUnificator.addItemData( - GT_ModHandler.getIC2Item("Plutonium", 1L), - new ItemData(Materials.Plutonium, 3628800L)); - GT_OreDictUnificator.addItemData( - GT_ModHandler.getIC2Item("smallUran235", 1L), - new ItemData(Materials.Uranium235, 403200L)); - GT_OreDictUnificator.addItemData( - GT_ModHandler.getIC2Item("smallPlutonium", 1L), - new ItemData(Materials.Plutonium, 403200L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.hardened_clay, 1, 32767), new ItemData(Materials.Clay, 3628800L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.stained_hardened_clay, 1, 32767), new ItemData(Materials.Clay, 3628800L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.brick_block, 1, 32767), new ItemData(Materials.Brick, 3628800L)); + GT_OreDictUnificator + .addItemData(GT_ModHandler.getIC2Item("Uran238", 1L), new ItemData(Materials.Uranium, 3628800L)); + GT_OreDictUnificator + .addItemData(GT_ModHandler.getIC2Item("Uran235", 1L), new ItemData(Materials.Uranium235, 3628800L)); + GT_OreDictUnificator + .addItemData(GT_ModHandler.getIC2Item("Plutonium", 1L), new ItemData(Materials.Plutonium, 3628800L)); + GT_OreDictUnificator + .addItemData(GT_ModHandler.getIC2Item("smallUran235", 1L), new ItemData(Materials.Uranium235, 403200L)); + GT_OreDictUnificator + .addItemData(GT_ModHandler.getIC2Item("smallPlutonium", 1L), new ItemData(Materials.Plutonium, 403200L)); GT_OreDictUnificator.addItemData(ItemList.IC2_Item_Casing_Iron.get(1L), new ItemData(Materials.Iron, 1814400L)); GT_OreDictUnificator.addItemData(ItemList.IC2_Item_Casing_Gold.get(1L), new ItemData(Materials.Gold, 1814400L)); - GT_OreDictUnificator.addItemData( - ItemList.IC2_Item_Casing_Bronze.get(1L), - new ItemData(Materials.Bronze, 1814400L)); - GT_OreDictUnificator.addItemData( - ItemList.IC2_Item_Casing_Copper.get(1L), - new ItemData(Materials.Copper, 1814400L)); + GT_OreDictUnificator + .addItemData(ItemList.IC2_Item_Casing_Bronze.get(1L), new ItemData(Materials.Bronze, 1814400L)); + GT_OreDictUnificator + .addItemData(ItemList.IC2_Item_Casing_Copper.get(1L), new ItemData(Materials.Copper, 1814400L)); GT_OreDictUnificator.addItemData(ItemList.IC2_Item_Casing_Tin.get(1L), new ItemData(Materials.Tin, 1814400L)); GT_OreDictUnificator.addItemData(ItemList.IC2_Item_Casing_Lead.get(1L), new ItemData(Materials.Lead, 1814400L)); - GT_OreDictUnificator.addItemData( - ItemList.IC2_Item_Casing_Steel.get(1L), - new ItemData(Materials.Steel, 1814400L)); + GT_OreDictUnificator + .addItemData(ItemList.IC2_Item_Casing_Steel.get(1L), new ItemData(Materials.Steel, 1814400L)); GT_OreDictUnificator.addItemData(new ItemStack(Items.book, 1, 32767), new ItemData(Materials.Paper, 10886400L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Items.written_book, 1, 32767), new ItemData(Materials.Paper, 10886400L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Items.writable_book, 1, 32767), new ItemData(Materials.Paper, 10886400L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Items.enchanted_book, 1, 32767), new ItemData(Materials.Paper, 10886400L)); GT_OreDictUnificator.addItemData( - new ItemStack(Items.written_book, 1, 32767), - new ItemData(Materials.Paper, 10886400L)); + new ItemStack(Items.golden_apple, 1, 1), + new ItemData(Materials.Gold, OrePrefixes.block.mMaterialAmount * 8L)); GT_OreDictUnificator.addItemData( - new ItemStack(Items.writable_book, 1, 32767), - new ItemData(Materials.Paper, 10886400L)); + new ItemStack(Items.golden_apple, 1, 0), + new ItemData(Materials.Gold, OrePrefixes.ingot.mMaterialAmount * 8L)); GT_OreDictUnificator.addItemData( - new ItemStack(Items.enchanted_book, 1, 32767), - new ItemData(Materials.Paper, 10886400L)); + new ItemStack(Items.golden_carrot, 1, 0), + new ItemData(Materials.Gold, OrePrefixes.nugget.mMaterialAmount * 8L)); GT_OreDictUnificator.addItemData( - new ItemStack(Items.golden_apple, 1, 1), - new ItemData(Materials.Gold, OrePrefixes.block.mMaterialAmount * 8L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Items.golden_apple, 1, 0), - new ItemData(Materials.Gold, OrePrefixes.ingot.mMaterialAmount * 8L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Items.golden_carrot, 1, 0), - new ItemData(Materials.Gold, OrePrefixes.nugget.mMaterialAmount * 8L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Items.speckled_melon, 1, 0), - new ItemData(Materials.Gold, OrePrefixes.nugget.mMaterialAmount * 8L)); + new ItemStack(Items.speckled_melon, 1, 0), + new ItemData(Materials.Gold, OrePrefixes.nugget.mMaterialAmount * 8L)); GT_OreDictUnificator.addItemData(new ItemStack(Items.minecart, 1), new ItemData(Materials.Iron, 18144000L)); GT_OreDictUnificator.addItemData(new ItemStack(Items.iron_door, 1), new ItemData(Materials.Iron, 21772800L)); GT_OreDictUnificator.addItemData(new ItemStack(Items.cauldron, 1), new ItemData(Materials.Iron, 25401600L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.iron_bars, 8, 32767), new ItemData(Materials.Iron, 10886400L)); GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.iron_bars, 8, 32767), - new ItemData(Materials.Iron, 10886400L)); - GT_OreDictUnificator.addItemData( - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.SteelBars", 8L, 0), - new ItemData(Materials.Steel, 10886400L)); - GT_OreDictUnificator.addItemData( - GT_ModHandler.getIC2Item("ironFurnace", 1L), - new ItemData(Materials.Iron, 18144000L)); + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.SteelBars", 8L, 0), + new ItemData(Materials.Steel, 10886400L)); + GT_OreDictUnificator + .addItemData(GT_ModHandler.getIC2Item("ironFurnace", 1L), new ItemData(Materials.Iron, 18144000L)); GT_OreDictUnificator.addItemData(ItemList.IC2_Food_Can_Empty.get(1L), new ItemData(Materials.Tin, 1814400L)); GT_OreDictUnificator.addItemData(ItemList.IC2_Fuel_Rod_Empty.get(1L), new ItemData(Materials.Iron, 3628800L)); GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.light_weighted_pressure_plate, 1, 32767), - new ItemData(Materials.Gold, 7257600L)); + new ItemStack(Blocks.light_weighted_pressure_plate, 1, 32767), + new ItemData(Materials.Gold, 7257600L)); GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.heavy_weighted_pressure_plate, 1, 32767), - new ItemData(Materials.Iron, 7257600L)); + new ItemStack(Blocks.heavy_weighted_pressure_plate, 1, 32767), + new ItemData(Materials.Iron, 7257600L)); GT_OreDictUnificator.addItemData( - GT_ModHandler.getModItem(Railcraft.ID, "tile.railcraft.anvil", 1L, 0), - new ItemData(Materials.Steel, 108864000L)); + GT_ModHandler.getModItem(Railcraft.ID, "tile.railcraft.anvil", 1L, 0), + new ItemData(Materials.Steel, 108864000L)); GT_OreDictUnificator.addItemData( - GT_ModHandler.getModItem(Railcraft.ID, "tile.railcraft.anvil", 1L, 1), - new ItemData(Materials.Steel, 72576000L)); + GT_ModHandler.getModItem(Railcraft.ID, "tile.railcraft.anvil", 1L, 1), + new ItemData(Materials.Steel, 72576000L)); GT_OreDictUnificator.addItemData( - GT_ModHandler.getModItem(Railcraft.ID, "tile.railcraft.anvil", 1L, 2), - new ItemData(Materials.Steel, 36288000L)); + GT_ModHandler.getModItem(Railcraft.ID, "tile.railcraft.anvil", 1L, 2), + new ItemData(Materials.Steel, 36288000L)); GT_OreDictUnificator.addItemData(new ItemStack(Blocks.anvil, 1, 0), new ItemData(Materials.Iron, 108864000L)); GT_OreDictUnificator.addItemData(new ItemStack(Blocks.anvil, 1, 1), new ItemData(Materials.Iron, 72576000L)); GT_OreDictUnificator.addItemData(new ItemStack(Blocks.anvil, 1, 2), new ItemData(Materials.Iron, 36288000L)); GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.hopper, 1, 32767), - new ItemData(Materials.Iron, 18144000L, new MaterialStack(Materials.Wood, 29030400L))); + new ItemStack(Blocks.hopper, 1, 32767), + new ItemData(Materials.Iron, 18144000L, new MaterialStack(Materials.Wood, 29030400L))); GT_OreDictUnificator.addItemData(ItemList.Cell_Universal_Fluid.get(1L), new ItemData(Materials.Tin, 7257600L)); GT_OreDictUnificator.addItemData(ItemList.Cell_Empty.get(1L), new ItemData(Materials.Tin, 7257600L)); GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.tripwire_hook, 1, 32767), - new ItemData( - Materials.Iron, - OrePrefixes.ring.mMaterialAmount * 2L, - new MaterialStack(Materials.Wood, 3628800L))); + new ItemStack(Blocks.tripwire_hook, 1, 32767), + new ItemData( + Materials.Iron, + OrePrefixes.ring.mMaterialAmount * 2L, + new MaterialStack(Materials.Wood, 3628800L))); GT_OreDictUnificator.addItemData(ItemList.Bottle_Empty.get(1L), new ItemData(Materials.Glass, 3628800L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Items.potionitem, 1, 32767), - new ItemData(Materials.Glass, 3628800L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.stained_glass, 1, 32767), - new ItemData(Materials.Glass, 3628800L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.glass, 1, 32767), - new ItemData(Materials.Glass, 3628800L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.stained_glass_pane, 1, 32767), - new ItemData(Materials.Glass, 1360800L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.glass_pane, 1, 32767), - new ItemData(Materials.Glass, 1360800L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Items.clock, 1, 32767), - new ItemData(Materials.Gold, 14515200L, new MaterialStack(Materials.Redstone, 3628800L))); - GT_OreDictUnificator.addItemData( - new ItemStack(Items.compass, 1, 32767), - new ItemData(Materials.Iron, 14515200L, new MaterialStack(Materials.Redstone, 3628800L))); - GT_OreDictUnificator.addItemData( - new ItemStack(Items.iron_horse_armor, 1, 32767), - new ItemData(Materials.Iron, 29030400L, new MaterialStack(Materials.Leather, 21772800L))); - GT_OreDictUnificator.addItemData( - new ItemStack(Items.golden_horse_armor, 1, 32767), - new ItemData(Materials.Gold, 29030400L, new MaterialStack(Materials.Leather, 21772800L))); - GT_OreDictUnificator.addItemData( - new ItemStack(Items.diamond_horse_armor, 1, 32767), - new ItemData(Materials.Diamond, 29030400L, new MaterialStack(Materials.Leather, 21772800L))); - GT_OreDictUnificator.addItemData( - new ItemStack(Items.leather, 1, 32767), - new ItemData(Materials.Leather, 3628800L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.beacon, 1, 32767), - new ItemData( - Materials.NetherStar, - 3628800L, - new MaterialStack(Materials.Obsidian, 10886400L), - new MaterialStack(Materials.Glass, 18144000L))); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.enchanting_table, 1, 32767), - new ItemData( - Materials.Diamond, - 7257600L, - new MaterialStack(Materials.Obsidian, 14515200L), - new MaterialStack(Materials.Paper, 10886400L))); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.ender_chest, 1, 32767), - new ItemData(Materials.EnderEye, 3628800L, new MaterialStack(Materials.Obsidian, 29030400L))); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.bookshelf, 1, 32767), - new ItemData(Materials.Paper, 32659200L, new MaterialStack(Materials.Wood, 21772800L))); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.lever, 1, 32767), - new ItemData(Materials.Stone, 3628800L, new MaterialStack(Materials.Wood, 1814400L))); + GT_OreDictUnificator + .addItemData(new ItemStack(Items.potionitem, 1, 32767), new ItemData(Materials.Glass, 3628800L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.stained_glass, 1, 32767), new ItemData(Materials.Glass, 3628800L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.glass, 1, 32767), new ItemData(Materials.Glass, 3628800L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.stained_glass_pane, 1, 32767), new ItemData(Materials.Glass, 1360800L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.glass_pane, 1, 32767), new ItemData(Materials.Glass, 1360800L)); + GT_OreDictUnificator.addItemData( + new ItemStack(Items.clock, 1, 32767), + new ItemData(Materials.Gold, 14515200L, new MaterialStack(Materials.Redstone, 3628800L))); + GT_OreDictUnificator.addItemData( + new ItemStack(Items.compass, 1, 32767), + new ItemData(Materials.Iron, 14515200L, new MaterialStack(Materials.Redstone, 3628800L))); + GT_OreDictUnificator.addItemData( + new ItemStack(Items.iron_horse_armor, 1, 32767), + new ItemData(Materials.Iron, 29030400L, new MaterialStack(Materials.Leather, 21772800L))); + GT_OreDictUnificator.addItemData( + new ItemStack(Items.golden_horse_armor, 1, 32767), + new ItemData(Materials.Gold, 29030400L, new MaterialStack(Materials.Leather, 21772800L))); + GT_OreDictUnificator.addItemData( + new ItemStack(Items.diamond_horse_armor, 1, 32767), + new ItemData(Materials.Diamond, 29030400L, new MaterialStack(Materials.Leather, 21772800L))); + GT_OreDictUnificator + .addItemData(new ItemStack(Items.leather, 1, 32767), new ItemData(Materials.Leather, 3628800L)); + GT_OreDictUnificator.addItemData( + new ItemStack(Blocks.beacon, 1, 32767), + new ItemData( + Materials.NetherStar, + 3628800L, + new MaterialStack(Materials.Obsidian, 10886400L), + new MaterialStack(Materials.Glass, 18144000L))); + GT_OreDictUnificator.addItemData( + new ItemStack(Blocks.enchanting_table, 1, 32767), + new ItemData( + Materials.Diamond, + 7257600L, + new MaterialStack(Materials.Obsidian, 14515200L), + new MaterialStack(Materials.Paper, 10886400L))); + GT_OreDictUnificator.addItemData( + new ItemStack(Blocks.ender_chest, 1, 32767), + new ItemData(Materials.EnderEye, 3628800L, new MaterialStack(Materials.Obsidian, 29030400L))); + GT_OreDictUnificator.addItemData( + new ItemStack(Blocks.bookshelf, 1, 32767), + new ItemData(Materials.Paper, 32659200L, new MaterialStack(Materials.Wood, 21772800L))); + GT_OreDictUnificator.addItemData( + new ItemStack(Blocks.lever, 1, 32767), + new ItemData(Materials.Stone, 3628800L, new MaterialStack(Materials.Wood, 1814400L))); GT_OreDictUnificator.addItemData(new ItemStack(Blocks.ice, 1, 32767), new ItemData(Materials.Ice, 3628800L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.packed_ice, 1, 32767), - new ItemData(Materials.Ice, 7257600L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.packed_ice, 1, 32767), new ItemData(Materials.Ice, 7257600L)); GT_OreDictUnificator.addItemData(new ItemStack(Blocks.snow, 1, 32767), new ItemData(Materials.Snow, 3628800L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Items.snowball, 1, 32767), - new ItemData(Materials.Snow, 907200L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Items.snowball, 1, 32767), new ItemData(Materials.Snow, 907200L)); GT_OreDictUnificator.addItemData(new ItemStack(Blocks.snow_layer, 1, 32767), new ItemData(Materials.Snow, -1L)); GT_OreDictUnificator.addItemData(new ItemStack(Blocks.sand, 1, 32767), new ItemData(Materials.Sand, 3628800L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.sandstone, 1, 32767), - new ItemData(Materials.Sand, 3628800L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.stone_slab, 1, 0), - new ItemData(Materials.Stone, 1814400L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.stone_slab, 1, 8), - new ItemData(Materials.Stone, 1814400L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.double_stone_slab, 1, 0), - new ItemData(Materials.Stone, 3628800L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.double_stone_slab, 1, 8), - new ItemData(Materials.Stone, 3628800L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.stone_slab, 1, 1), - new ItemData(Materials.Sand, 1814400L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.stone_slab, 1, 9), - new ItemData(Materials.Sand, 1814400L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.double_stone_slab, 1, 1), - new ItemData(Materials.Sand, 3628800L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.double_stone_slab, 1, 9), - new ItemData(Materials.Sand, 3628800L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.stone_slab, 1, 2), - new ItemData(Materials.Wood, 1814400L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.stone_slab, 1, 10), - new ItemData(Materials.Wood, 1814400L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.double_stone_slab, 1, 2), - new ItemData(Materials.Wood, 3628800L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.double_stone_slab, 1, 10), - new ItemData(Materials.Wood, 3628800L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.stone_slab, 1, 3), - new ItemData(Materials.Stone, 1814400L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.stone_slab, 1, 11), - new ItemData(Materials.Stone, 1814400L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.double_stone_slab, 1, 3), - new ItemData(Materials.Stone, 3628800L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.double_stone_slab, 1, 11), - new ItemData(Materials.Stone, 3628800L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.stone_slab, 1, 5), - new ItemData(Materials.Stone, 1814400L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.stone_slab, 1, 13), - new ItemData(Materials.Stone, 1814400L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.double_stone_slab, 1, 5), - new ItemData(Materials.Stone, 3628800L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.double_stone_slab, 1, 13), - new ItemData(Materials.Stone, 3628800L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.stone, 1, 32767), - new ItemData(Materials.Stone, 3628800L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.furnace, 1, 32767), - new ItemData(Materials.Stone, 29030400L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.lit_furnace, 1, 32767), - new ItemData(Materials.Stone, 29030400L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.stonebrick, 1, 32767), - new ItemData(Materials.Stone, 3628800L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.cobblestone, 1, 32767), - new ItemData(Materials.Stone, 3628800L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.mossy_cobblestone, 1, 32767), - new ItemData(Materials.Stone, 3628800L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.stone_button, 1, 32767), - new ItemData(Materials.Stone, 3628800L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.stone_pressure_plate, 1, 32767), - new ItemData(Materials.Stone, 7257600L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.ladder, 1, 32767), - new ItemData(Materials.Wood, 3628800L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.wooden_button, 1, 32767), - new ItemData(Materials.Wood, 3628800L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.wooden_pressure_plate, 1, 32767), - new ItemData(Materials.Wood, 7257600L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.sandstone, 1, 32767), new ItemData(Materials.Sand, 3628800L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.stone_slab, 1, 0), new ItemData(Materials.Stone, 1814400L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.stone_slab, 1, 8), new ItemData(Materials.Stone, 1814400L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.double_stone_slab, 1, 0), new ItemData(Materials.Stone, 3628800L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.double_stone_slab, 1, 8), new ItemData(Materials.Stone, 3628800L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.stone_slab, 1, 1), new ItemData(Materials.Sand, 1814400L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.stone_slab, 1, 9), new ItemData(Materials.Sand, 1814400L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.double_stone_slab, 1, 1), new ItemData(Materials.Sand, 3628800L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.double_stone_slab, 1, 9), new ItemData(Materials.Sand, 3628800L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.stone_slab, 1, 2), new ItemData(Materials.Wood, 1814400L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.stone_slab, 1, 10), new ItemData(Materials.Wood, 1814400L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.double_stone_slab, 1, 2), new ItemData(Materials.Wood, 3628800L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.double_stone_slab, 1, 10), new ItemData(Materials.Wood, 3628800L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.stone_slab, 1, 3), new ItemData(Materials.Stone, 1814400L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.stone_slab, 1, 11), new ItemData(Materials.Stone, 1814400L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.double_stone_slab, 1, 3), new ItemData(Materials.Stone, 3628800L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.double_stone_slab, 1, 11), new ItemData(Materials.Stone, 3628800L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.stone_slab, 1, 5), new ItemData(Materials.Stone, 1814400L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.stone_slab, 1, 13), new ItemData(Materials.Stone, 1814400L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.double_stone_slab, 1, 5), new ItemData(Materials.Stone, 3628800L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.double_stone_slab, 1, 13), new ItemData(Materials.Stone, 3628800L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.stone, 1, 32767), new ItemData(Materials.Stone, 3628800L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.furnace, 1, 32767), new ItemData(Materials.Stone, 29030400L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.lit_furnace, 1, 32767), new ItemData(Materials.Stone, 29030400L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.stonebrick, 1, 32767), new ItemData(Materials.Stone, 3628800L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.cobblestone, 1, 32767), new ItemData(Materials.Stone, 3628800L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.mossy_cobblestone, 1, 32767), new ItemData(Materials.Stone, 3628800L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.stone_button, 1, 32767), new ItemData(Materials.Stone, 3628800L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.stone_pressure_plate, 1, 32767), new ItemData(Materials.Stone, 7257600L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.ladder, 1, 32767), new ItemData(Materials.Wood, 3628800L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.wooden_button, 1, 32767), new ItemData(Materials.Wood, 3628800L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.wooden_pressure_plate, 1, 32767), new ItemData(Materials.Wood, 7257600L)); GT_OreDictUnificator.addItemData(new ItemStack(Blocks.fence, 1, 32767), new ItemData(Materials.Wood, 5443200L)); GT_OreDictUnificator.addItemData(new ItemStack(Items.bowl, 1, 32767), new ItemData(Materials.Wood, 3628800L)); GT_OreDictUnificator.addItemData(new ItemStack(Items.sign, 1, 32767), new ItemData(Materials.Wood, 7257600L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Items.wooden_door, 1, 32767), new ItemData(Materials.Wood, 21772800L)); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.chest, 1, 32767), new ItemData(Materials.Wood, 29030400L)); GT_OreDictUnificator.addItemData( - new ItemStack(Items.wooden_door, 1, 32767), - new ItemData(Materials.Wood, 21772800L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.chest, 1, 32767), - new ItemData(Materials.Wood, 29030400L)); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.trapped_chest, 1, 32767), - new ItemData( - Materials.Wood, - 32659200L, - new MaterialStack(Materials.Iron, OrePrefixes.ring.mMaterialAmount * 2L))); - GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.unlit_redstone_torch, 1, 32767), - new ItemData(Materials.Wood, 1814400L, new MaterialStack(Materials.Redstone, 3628800L))); + new ItemStack(Blocks.trapped_chest, 1, 32767), + new ItemData( + Materials.Wood, + 32659200L, + new MaterialStack(Materials.Iron, OrePrefixes.ring.mMaterialAmount * 2L))); GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.redstone_torch, 1, 32767), - new ItemData(Materials.Wood, 1814400L, new MaterialStack(Materials.Redstone, 3628800L))); + new ItemStack(Blocks.unlit_redstone_torch, 1, 32767), + new ItemData(Materials.Wood, 1814400L, new MaterialStack(Materials.Redstone, 3628800L))); GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.noteblock, 1, 32767), - new ItemData(Materials.Wood, 29030400L, new MaterialStack(Materials.Redstone, 3628800L))); + new ItemStack(Blocks.redstone_torch, 1, 32767), + new ItemData(Materials.Wood, 1814400L, new MaterialStack(Materials.Redstone, 3628800L))); GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.jukebox, 1, 32767), - new ItemData(Materials.Wood, 29030400L, new MaterialStack(Materials.Diamond, 3628800L))); + new ItemStack(Blocks.noteblock, 1, 32767), + new ItemData(Materials.Wood, 29030400L, new MaterialStack(Materials.Redstone, 3628800L))); GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.crafting_table, 1, 32767), - new ItemData(Materials.Wood, 14515200L)); + new ItemStack(Blocks.jukebox, 1, 32767), + new ItemData(Materials.Wood, 29030400L, new MaterialStack(Materials.Diamond, 3628800L))); + GT_OreDictUnificator + .addItemData(new ItemStack(Blocks.crafting_table, 1, 32767), new ItemData(Materials.Wood, 14515200L)); GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.piston, 1, 32767), - new ItemData(Materials.Stone, 14515200L, new MaterialStack(Materials.Wood, 10886400L))); + new ItemStack(Blocks.piston, 1, 32767), + new ItemData(Materials.Stone, 14515200L, new MaterialStack(Materials.Wood, 10886400L))); GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.sticky_piston, 1, 32767), - new ItemData(Materials.Stone, 14515200L, new MaterialStack(Materials.Wood, 10886400L))); + new ItemStack(Blocks.sticky_piston, 1, 32767), + new ItemData(Materials.Stone, 14515200L, new MaterialStack(Materials.Wood, 10886400L))); GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.dispenser, 1, 32767), - new ItemData(Materials.Stone, 25401600L, new MaterialStack(Materials.Redstone, 3628800L))); + new ItemStack(Blocks.dispenser, 1, 32767), + new ItemData(Materials.Stone, 25401600L, new MaterialStack(Materials.Redstone, 3628800L))); GT_OreDictUnificator.addItemData( - new ItemStack(Blocks.dropper, 1, 32767), - new ItemData(Materials.Stone, 25401600L, new MaterialStack(Materials.Redstone, 3628800L))); + new ItemStack(Blocks.dropper, 1, 32767), + new ItemData(Materials.Stone, 25401600L, new MaterialStack(Materials.Redstone, 3628800L))); GT_OreDictUnificator.addItemData( - GT_ModHandler.getModItem(Thaumcraft.ID, "ItemNuggetChicken", 1L, 32767), - new ItemData(Materials.MeatCooked, 403200L)); + GT_ModHandler.getModItem(Thaumcraft.ID, "ItemNuggetChicken", 1L, 32767), + new ItemData(Materials.MeatCooked, 403200L)); GT_OreDictUnificator.addItemData( - GT_ModHandler.getModItem(Thaumcraft.ID, "ItemNuggetBeef", 1L, 32767), - new ItemData(Materials.MeatCooked, 403200L)); + GT_ModHandler.getModItem(Thaumcraft.ID, "ItemNuggetBeef", 1L, 32767), + new ItemData(Materials.MeatCooked, 403200L)); GT_OreDictUnificator.addItemData( - GT_ModHandler.getModItem(Thaumcraft.ID, "ItemNuggetPork", 1L, 32767), - new ItemData(Materials.MeatCooked, 403200L)); + GT_ModHandler.getModItem(Thaumcraft.ID, "ItemNuggetPork", 1L, 32767), + new ItemData(Materials.MeatCooked, 403200L)); GT_OreDictUnificator.addItemData( - GT_ModHandler.getModItem(Thaumcraft.ID, "ItemNuggetFish", 1L, 32767), - new ItemData(Materials.MeatCooked, 403200L)); + GT_ModHandler.getModItem(Thaumcraft.ID, "ItemNuggetFish", 1L, 32767), + new ItemData(Materials.MeatCooked, 403200L)); for (ItemStack tItem : new ItemStack[] { GT_ModHandler.getModItem(TwilightForest.ID, "item.meefRaw", 1L, 0), - GT_ModHandler.getModItem(TwilightForest.ID, "item.venisonRaw", 1L, 0), new ItemStack(Items.porkchop), - new ItemStack(Items.beef), new ItemStack(Items.chicken), new ItemStack(Items.fish) }) { + GT_ModHandler.getModItem(TwilightForest.ID, "item.venisonRaw", 1L, 0), new ItemStack(Items.porkchop), + new ItemStack(Items.beef), new ItemStack(Items.chicken), new ItemStack(Items.fish) }) { if (tItem != null) { GT_OreDictUnificator.addItemData( - GT_Utility.copyMetaData(32767L, tItem), - new ItemData(Materials.MeatRaw, 3628800L, new MaterialStack(Materials.Bone, 403200L))); + GT_Utility.copyMetaData(32767L, tItem), + new ItemData(Materials.MeatRaw, 3628800L, new MaterialStack(Materials.Bone, 403200L))); } } for (ItemStack tItem : new ItemStack[] { GT_ModHandler.getModItem(TwilightForest.ID, "item.meefSteak", 1L, 0), - GT_ModHandler.getModItem(TwilightForest.ID, "item.venisonCooked", 1L, 0), - new ItemStack(Items.cooked_porkchop), new ItemStack(Items.cooked_beef), - new ItemStack(Items.cooked_chicken), new ItemStack(Items.cooked_fished) }) { + GT_ModHandler.getModItem(TwilightForest.ID, "item.venisonCooked", 1L, 0), + new ItemStack(Items.cooked_porkchop), new ItemStack(Items.cooked_beef), new ItemStack(Items.cooked_chicken), + new ItemStack(Items.cooked_fished) }) { if (tItem != null) { GT_OreDictUnificator.addItemData( - GT_Utility.copyMetaData(32767L, tItem), - new ItemData(Materials.MeatCooked, 3628800L, new MaterialStack(Materials.Bone, 403200L))); + GT_Utility.copyMetaData(32767L, tItem), + new ItemData(Materials.MeatCooked, 3628800L, new MaterialStack(Materials.Bone, 403200L))); } } } diff --git a/src/main/java/gregtech/loaders/preload/GT_Loader_Item_Block_And_Fluid.java b/src/main/java/gregtech/loaders/preload/GT_Loader_Item_Block_And_Fluid.java index 780f2afeff..4180ad6e12 100644 --- a/src/main/java/gregtech/loaders/preload/GT_Loader_Item_Block_And_Fluid.java +++ b/src/main/java/gregtech/loaders/preload/GT_Loader_Item_Block_And_Fluid.java @@ -63,55 +63,55 @@ public class GT_Loader_Item_Block_And_Fluid implements Runnable { @Override public void run() { Materials.Water.mFluid = (Materials.Ice.mFluid = GT_ModHandler.getWater(1000L) - .getFluid()); + .getFluid()); Materials.Lava.mFluid = GT_ModHandler.getLava(1000L) - .getFluid(); + .getFluid(); GT_Log.out.println("GT_Mod: Register Books."); GT_Utility.getWrittenBook( - "Manual_Printer", - "Printer Manual V2.0", - "Gregorius Techneticies", - "This Manual explains the different Functionalities the GregTech Printing Factory has built in, which are not in NEI. Most got NEI Support now, but there is still some left without it.", - "1. Coloring Items and Blocks: You know those Crafting Recipes, which have a dye surrounded by 8 Item to dye them? Or the ones which have just one Item and one Dye in the Grid? Those two Recipe Types can be cheaply automated using the Printer.", - "The Colorization Functionality even optimizes the Recipes, which normally require 8 Items + 1 Dye to 1 Item and an 8th of the normally used Dye in Fluid Form, isn't that awesome?", - "2. Copying Books: This Task got slightly harder. The first Step is putting the written and signed Book inside the Scanner with a Data Stick ready to receive the Data.", - "Now insert the Stick into the Data Slot of the Printer and add 3 pieces of Paper together with 144 Liters of actual Ink Fluid. Water mixed and chemical Dyes won't work on Paper without messing things up!", - "You got a stack of Pages for your new Book, just put them into the Assembler with some Glue and a piece of Leather for the Binding, and you receive an identical copy of the Book, which would stack together with the original.", - "3. Renaming Items: This Functionality is no longer Part of the Printer. There is now a Name Mold for the Forming Press to imprint a Name into an Item, just rename the Mold in an Anvil and use it in the Forming Press on any Item.", - "4. Crafting of Books, Maps, Nametags etc etc etc: Those Recipes moved to other Machines, just look them up in NEI."); + "Manual_Printer", + "Printer Manual V2.0", + "Gregorius Techneticies", + "This Manual explains the different Functionalities the GregTech Printing Factory has built in, which are not in NEI. Most got NEI Support now, but there is still some left without it.", + "1. Coloring Items and Blocks: You know those Crafting Recipes, which have a dye surrounded by 8 Item to dye them? Or the ones which have just one Item and one Dye in the Grid? Those two Recipe Types can be cheaply automated using the Printer.", + "The Colorization Functionality even optimizes the Recipes, which normally require 8 Items + 1 Dye to 1 Item and an 8th of the normally used Dye in Fluid Form, isn't that awesome?", + "2. Copying Books: This Task got slightly harder. The first Step is putting the written and signed Book inside the Scanner with a Data Stick ready to receive the Data.", + "Now insert the Stick into the Data Slot of the Printer and add 3 pieces of Paper together with 144 Liters of actual Ink Fluid. Water mixed and chemical Dyes won't work on Paper without messing things up!", + "You got a stack of Pages for your new Book, just put them into the Assembler with some Glue and a piece of Leather for the Binding, and you receive an identical copy of the Book, which would stack together with the original.", + "3. Renaming Items: This Functionality is no longer Part of the Printer. There is now a Name Mold for the Forming Press to imprint a Name into an Item, just rename the Mold in an Anvil and use it in the Forming Press on any Item.", + "4. Crafting of Books, Maps, Nametags etc etc etc: Those Recipes moved to other Machines, just look them up in NEI."); GT_Utility.getWrittenBook( - "Manual_Punch_Cards", - "Punch Card Manual V0.0", - "Gregorius Techneticies", - "This Manual will explain the Functionality of the Punch Cards, once they are fully implemented. And no, they won't be like the IRL Punch Cards. This is just a current Idea Collection.", - "(i1&&i2)?o1=15:o1=0;=10", - "ignore all Whitespace Characters, use Long for saving the Numbers", - "&& || ^^ & | ^ ! ++ -- + - % / // * ** << >> >>> < > <= >= == != ~ ( ) ?: , ; ;= ;=X; = i0 i1 i2 i3 i4 i5 o0 o1 o2 o3 o4 o5 v0 v1 v2 v3 v4 v5 v6 v7 v8 v9 m0 m1 m2 m3 m4 m5 m6 m7 m8 m9 A B C D E F", - "'0' = false, 'everything but 0' = true, '!' turns '0' into '1' and everything else into '0'", - "',' is just a separator for multiple executed Codes in a row.", - "';' means that the Program waits until the next tick before continuing. ';=10' and ';=10;' both mean that it will wait 10 Ticks instead of 1. And ';=0' or anything < 0 will default to 0.", - "If the '=' Operator is used within Brackets, it returns the value the variable has been set to.", - "The Program saves the Char Index of the current Task, the 10 Variables (which reset to 0 as soon as the Program Loop stops), the 10 Member Variables and the remaining waiting Time in its NBT.", - "A = 10, B = 11, C = 12, D = 13, E = 14, F = 15, just for Hexadecimal Space saving, since Redstone has only 4 Bits.", - "For implementing Loops you just need 1 Punch Card per Loop, these Cards can restart once they are finished, depending on how many other Cards there are in the Program Loop you inserted your Card into, since it will process them procedurally.", - "A Punch Card Processor can run up to four Loops, each with the length of seven Punch Cards, parallel.", - "Why does the Punch Card need Ink to be made, you ask? Because the empty one needs to have some lines on, and the for the punched one it prints the Code to execute in a human readable format on the Card."); + "Manual_Punch_Cards", + "Punch Card Manual V0.0", + "Gregorius Techneticies", + "This Manual will explain the Functionality of the Punch Cards, once they are fully implemented. And no, they won't be like the IRL Punch Cards. This is just a current Idea Collection.", + "(i1&&i2)?o1=15:o1=0;=10", + "ignore all Whitespace Characters, use Long for saving the Numbers", + "&& || ^^ & | ^ ! ++ -- + - % / // * ** << >> >>> < > <= >= == != ~ ( ) ?: , ; ;= ;=X; = i0 i1 i2 i3 i4 i5 o0 o1 o2 o3 o4 o5 v0 v1 v2 v3 v4 v5 v6 v7 v8 v9 m0 m1 m2 m3 m4 m5 m6 m7 m8 m9 A B C D E F", + "'0' = false, 'everything but 0' = true, '!' turns '0' into '1' and everything else into '0'", + "',' is just a separator for multiple executed Codes in a row.", + "';' means that the Program waits until the next tick before continuing. ';=10' and ';=10;' both mean that it will wait 10 Ticks instead of 1. And ';=0' or anything < 0 will default to 0.", + "If the '=' Operator is used within Brackets, it returns the value the variable has been set to.", + "The Program saves the Char Index of the current Task, the 10 Variables (which reset to 0 as soon as the Program Loop stops), the 10 Member Variables and the remaining waiting Time in its NBT.", + "A = 10, B = 11, C = 12, D = 13, E = 14, F = 15, just for Hexadecimal Space saving, since Redstone has only 4 Bits.", + "For implementing Loops you just need 1 Punch Card per Loop, these Cards can restart once they are finished, depending on how many other Cards there are in the Program Loop you inserted your Card into, since it will process them procedurally.", + "A Punch Card Processor can run up to four Loops, each with the length of seven Punch Cards, parallel.", + "Why does the Punch Card need Ink to be made, you ask? Because the empty one needs to have some lines on, and the for the punched one it prints the Code to execute in a human readable format on the Card."); GT_Utility.getWrittenBook( - "Manual_Microwave", - "Microwave Oven Manual", - "Kitchen Industries", - "Congratulations, you inserted a random seemingly empty Book into the Microwave and these Letters appeared out of nowhere.", - "You just got a Microwave Oven and asked yourself 'why do I even need it?'. It's simple, the Microwave can cook for just 128 EU and at an insane speed. Not even a normal E-furnace can do it that fast and cheap!", - "This is the cheapest and fastest way to cook for you. That is why the Microwave Oven can be found in almost every Kitchen (see www.youwannabuyakitchen.ly).", - "Long time exposure to Microwaves can cause Cancer, but we doubt Steve lives long enough to die because of that.", - "Do not insert any Metals. It might result in an Explosion.", - "Do not dry Animals with it. It will result in a Hot Dog, no matter which Animal you put into it.", - "Do not insert inflammable Objects. The Oven will catch on Fire.", - "Do not insert Explosives such as Eggs. Just don't."); + "Manual_Microwave", + "Microwave Oven Manual", + "Kitchen Industries", + "Congratulations, you inserted a random seemingly empty Book into the Microwave and these Letters appeared out of nowhere.", + "You just got a Microwave Oven and asked yourself 'why do I even need it?'. It's simple, the Microwave can cook for just 128 EU and at an insane speed. Not even a normal E-furnace can do it that fast and cheap!", + "This is the cheapest and fastest way to cook for you. That is why the Microwave Oven can be found in almost every Kitchen (see www.youwannabuyakitchen.ly).", + "Long time exposure to Microwaves can cause Cancer, but we doubt Steve lives long enough to die because of that.", + "Do not insert any Metals. It might result in an Explosion.", + "Do not dry Animals with it. It will result in a Hot Dog, no matter which Animal you put into it.", + "Do not insert inflammable Objects. The Oven will catch on Fire.", + "Do not insert Explosives such as Eggs. Just don't."); GT_Log.out.println("GT_Mod: Register Items."); @@ -139,358 +139,352 @@ public class GT_Loader_Item_Block_And_Fluid implements Runnable { ItemList.VOLUMETRIC_FLASK.set(new GT_VolumetricFlask("Volumetric_Flask", "Volumetric flask", 1000)); Item tItem = (Item) GT_Utility.callConstructor( - "gregtech.common.items.GT_SensorCard_Item", - 0, - null, - false, - new Object[] { "sensorcard", "GregTech Sensor Card" }); + "gregtech.common.items.GT_SensorCard_Item", + 0, + null, + false, + new Object[] { "sensorcard", "GregTech Sensor Card" }); ItemList.NC_SensorCard.set( - tItem == null - ? new GT_Generic_Item( - "sensorcard", - "GregTech Sensor Card", - "Nuclear Control not installed", - false) - : tItem); - - ItemList.Neutron_Reflector.set( - new GT_NeutronReflector_Item("neutronreflector", "Iridium Neutron Reflector", 0)); - ItemList.Reactor_Coolant_He_1.set( - GregTech_API.constructCoolantCellItem("60k_Helium_Coolantcell", "60k He Coolant Cell", 60000)); - ItemList.Reactor_Coolant_He_3.set( - GregTech_API.constructCoolantCellItem("180k_Helium_Coolantcell", "180k He Coolant Cell", 180000)); - ItemList.Reactor_Coolant_He_6.set( - GregTech_API.constructCoolantCellItem("360k_Helium_Coolantcell", "360k He Coolant Cell", 360000)); - ItemList.Reactor_Coolant_NaK_1.set( - GregTech_API.constructCoolantCellItem("60k_NaK_Coolantcell", "60k NaK Coolantcell", 60000)); - ItemList.Reactor_Coolant_NaK_3.set( - GregTech_API.constructCoolantCellItem("180k_NaK_Coolantcell", "180k NaK Coolantcell", 180000)); - ItemList.Reactor_Coolant_NaK_6.set( - GregTech_API.constructCoolantCellItem("360k_NaK_Coolantcell", "360k NaK Coolantcell", 360000)); - - ItemList.Reactor_Coolant_Sp_1.set( - GregTech_API.constructCoolantCellItem("180k_Space_Coolantcell", "180k Sp Coolant Cell", 180000)); - - ItemList.Reactor_Coolant_Sp_2.set( - GregTech_API.constructCoolantCellItem("360k_Space_Coolantcell", "360k Sp Coolant Cell", 360000)); - - ItemList.Reactor_Coolant_Sp_3.set( - GregTech_API.constructCoolantCellItem("540k_Space_Coolantcell", "540k Sp Coolant Cell", 540000)); - - ItemList.Reactor_Coolant_Sp_6.set( - GregTech_API.constructCoolantCellItem("1080k_Space_Coolantcell", "1080k Sp Coolant Cell", 1080000)); + tItem == null + ? new GT_Generic_Item("sensorcard", "GregTech Sensor Card", "Nuclear Control not installed", false) + : tItem); + + ItemList.Neutron_Reflector + .set(new GT_NeutronReflector_Item("neutronreflector", "Iridium Neutron Reflector", 0)); + ItemList.Reactor_Coolant_He_1 + .set(GregTech_API.constructCoolantCellItem("60k_Helium_Coolantcell", "60k He Coolant Cell", 60000)); + ItemList.Reactor_Coolant_He_3 + .set(GregTech_API.constructCoolantCellItem("180k_Helium_Coolantcell", "180k He Coolant Cell", 180000)); + ItemList.Reactor_Coolant_He_6 + .set(GregTech_API.constructCoolantCellItem("360k_Helium_Coolantcell", "360k He Coolant Cell", 360000)); + ItemList.Reactor_Coolant_NaK_1 + .set(GregTech_API.constructCoolantCellItem("60k_NaK_Coolantcell", "60k NaK Coolantcell", 60000)); + ItemList.Reactor_Coolant_NaK_3 + .set(GregTech_API.constructCoolantCellItem("180k_NaK_Coolantcell", "180k NaK Coolantcell", 180000)); + ItemList.Reactor_Coolant_NaK_6 + .set(GregTech_API.constructCoolantCellItem("360k_NaK_Coolantcell", "360k NaK Coolantcell", 360000)); + + ItemList.Reactor_Coolant_Sp_1 + .set(GregTech_API.constructCoolantCellItem("180k_Space_Coolantcell", "180k Sp Coolant Cell", 180000)); + + ItemList.Reactor_Coolant_Sp_2 + .set(GregTech_API.constructCoolantCellItem("360k_Space_Coolantcell", "360k Sp Coolant Cell", 360000)); + + ItemList.Reactor_Coolant_Sp_3 + .set(GregTech_API.constructCoolantCellItem("540k_Space_Coolantcell", "540k Sp Coolant Cell", 540000)); + + ItemList.Reactor_Coolant_Sp_6 + .set(GregTech_API.constructCoolantCellItem("1080k_Space_Coolantcell", "1080k Sp Coolant Cell", 1080000)); ItemList.GlowstoneCell.set( - new GT_BreederCell_Item( - "glowstoneCell", - "Glowstone Fuel Rod", - "Source of sunnarium", - 3000, - 1, - 10000, - () -> ItemList.SunnariumCell.get(1))); + new GT_BreederCell_Item( + "glowstoneCell", + "Glowstone Fuel Rod", + "Source of sunnarium", + 3000, + 1, + 10000, + () -> ItemList.SunnariumCell.get(1))); ItemList.SunnariumCell.set(new GT_DepletetCell_Item("sunnariumCell", "Sunnarium Fuel Rod", 1)); if (!GregTech_API.mIC2Classic) { ItemList.neutroniumHeatCapacitor.set( - GregTech_API.constructCoolantCellItem( - "neutroniumHeatCapacitor", - "1G Neutronium Heat Capacitor", - 1000000000)); - - ItemList.Depleted_Thorium_1.set( - new GT_DepletetCell_Item("ThoriumcellDep", "Fuel Rod (Depleted Thorium)", 1)); - ItemList.Depleted_Thorium_2.set( - new GT_DepletetCell_Item("Double_ThoriumcellDep", "Dual Fuel Rod (Depleted Thorium)", 1)); // TODO - // CHECK - // num - ItemList.Depleted_Thorium_4.set( - new GT_DepletetCell_Item("Quad_ThoriumcellDep", "Quad Fuel Rod (Depleted Thorium)", 1)); // TODO - // CHECK - // num + GregTech_API + .constructCoolantCellItem("neutroniumHeatCapacitor", "1G Neutronium Heat Capacitor", 1000000000)); + + ItemList.Depleted_Thorium_1 + .set(new GT_DepletetCell_Item("ThoriumcellDep", "Fuel Rod (Depleted Thorium)", 1)); + ItemList.Depleted_Thorium_2 + .set(new GT_DepletetCell_Item("Double_ThoriumcellDep", "Dual Fuel Rod (Depleted Thorium)", 1)); // TODO + // CHECK + // num + ItemList.Depleted_Thorium_4 + .set(new GT_DepletetCell_Item("Quad_ThoriumcellDep", "Quad Fuel Rod (Depleted Thorium)", 1)); // TODO + // CHECK + // num ItemList.ThoriumCell_1.set( - new GT_RadioactiveCellIC_Item( - "Thoriumcell", - "Fuel Rod (Thorium)", - 1, - 50000, - 0.4F, - 0, - 0.25F, - ItemList.Depleted_Thorium_1.get(1), - false)); + new GT_RadioactiveCellIC_Item( + "Thoriumcell", + "Fuel Rod (Thorium)", + 1, + 50000, + 0.4F, + 0, + 0.25F, + ItemList.Depleted_Thorium_1.get(1), + false)); ItemList.ThoriumCell_2.set( - new GT_RadioactiveCellIC_Item( - "Double_Thoriumcell", - "Dual Fuel Rod (Thorium)", - 2, - 50000, - 0.4F, - 0, - 0.25F, - ItemList.Depleted_Thorium_2.get(1), - false)); + new GT_RadioactiveCellIC_Item( + "Double_Thoriumcell", + "Dual Fuel Rod (Thorium)", + 2, + 50000, + 0.4F, + 0, + 0.25F, + ItemList.Depleted_Thorium_2.get(1), + false)); ItemList.ThoriumCell_4.set( - new GT_RadioactiveCellIC_Item( - "Quad_Thoriumcell", - "Quad Fuel Rod (Thorium)", - 4, - 50000, - 0.4F, - 0, - 0.25F, - ItemList.Depleted_Thorium_4.get(1), - false)); + new GT_RadioactiveCellIC_Item( + "Quad_Thoriumcell", + "Quad Fuel Rod (Thorium)", + 4, + 50000, + 0.4F, + 0, + 0.25F, + ItemList.Depleted_Thorium_4.get(1), + false)); GT_ModHandler.addThermalCentrifugeRecipe( - ItemList.Depleted_Thorium_1.get(1), - 5000, - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Lutetium, 2L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Thorium, 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iron, 1L)); + ItemList.Depleted_Thorium_1.get(1), + 5000, + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Lutetium, 2L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Thorium, 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iron, 1L)); GT_ModHandler.addThermalCentrifugeRecipe( - ItemList.Depleted_Thorium_2.get(1), - 5000, - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lutetium, 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Thorium, 2L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iron, 3L)); + ItemList.Depleted_Thorium_2.get(1), + 5000, + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lutetium, 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Thorium, 2L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iron, 3L)); GT_ModHandler.addThermalCentrifugeRecipe( - ItemList.Depleted_Thorium_4.get(1), - 5000, - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lutetium, 2L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Thorium, 4L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iron, 6L)); - - ItemList.Depleted_Naquadah_1.set( - new GT_DepletetCell_Item("NaquadahcellDep", "Fuel Rod (Depleted Naquadah)", 1)); - ItemList.Depleted_Naquadah_2.set( - new GT_DepletetCell_Item("Double_NaquadahcellDep", "Dual Fuel Rod (Depleted Naquadah)", 1)); - ItemList.Depleted_Naquadah_4.set( - new GT_DepletetCell_Item("Quad_NaquadahcellDep", "Quad Fuel Rod (Depleted Naquadah)", 1)); + ItemList.Depleted_Thorium_4.get(1), + 5000, + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lutetium, 2L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Thorium, 4L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iron, 6L)); + + ItemList.Depleted_Naquadah_1 + .set(new GT_DepletetCell_Item("NaquadahcellDep", "Fuel Rod (Depleted Naquadah)", 1)); + ItemList.Depleted_Naquadah_2 + .set(new GT_DepletetCell_Item("Double_NaquadahcellDep", "Dual Fuel Rod (Depleted Naquadah)", 1)); + ItemList.Depleted_Naquadah_4 + .set(new GT_DepletetCell_Item("Quad_NaquadahcellDep", "Quad Fuel Rod (Depleted Naquadah)", 1)); ItemList.NaquadahCell_1.set( - new GT_RadioactiveCellIC_Item( - "Naquadahcell", - "Fuel Rod (Naquadah)", - 1, - 100000, - 4F, - 1, - 1F, - ItemList.Depleted_Naquadah_1.get(1), - false)); + new GT_RadioactiveCellIC_Item( + "Naquadahcell", + "Fuel Rod (Naquadah)", + 1, + 100000, + 4F, + 1, + 1F, + ItemList.Depleted_Naquadah_1.get(1), + false)); ItemList.NaquadahCell_2.set( - new GT_RadioactiveCellIC_Item( - "Double_Naquadahcell", - "Dual Fuel Rod (Naquadah)", - 2, - 100000, - 4F, - 1, - 1F, - ItemList.Depleted_Naquadah_2.get(1), - false)); + new GT_RadioactiveCellIC_Item( + "Double_Naquadahcell", + "Dual Fuel Rod (Naquadah)", + 2, + 100000, + 4F, + 1, + 1F, + ItemList.Depleted_Naquadah_2.get(1), + false)); ItemList.NaquadahCell_4.set( - new GT_RadioactiveCellIC_Item( - "Quad_Naquadahcell", - "Quad Fuel Rod (Naquadah)", - 4, - 100000, - 4F, - 1, - 1F, - ItemList.Depleted_Naquadah_4.get(1), - false)); + new GT_RadioactiveCellIC_Item( + "Quad_Naquadahcell", + "Quad Fuel Rod (Naquadah)", + 4, + 100000, + 4F, + 1, + 1F, + ItemList.Depleted_Naquadah_4.get(1), + false)); GT_Values.RA.addCentrifugeRecipe( - ItemList.Depleted_Naquadah_1.get(1), - null, - null, - null, - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadah, 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadah, 1L), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Naquadria, 2L), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.NaquadahEnriched, 2L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.TungstenSteel, 8L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Platinum, 1L), - new int[] { 10_000, 5_000, 5_000, 2_500, 10_000, 10_000 }, - 500, - 2000); + ItemList.Depleted_Naquadah_1.get(1), + null, + null, + null, + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadah, 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadah, 1L), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Naquadria, 2L), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.NaquadahEnriched, 2L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.TungstenSteel, 8L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Platinum, 1L), + new int[] { 10_000, 5_000, 5_000, 2_500, 10_000, 10_000 }, + 500, + 2000); GT_Values.RA.addCentrifugeRecipe( - ItemList.Depleted_Naquadah_2.get(1), - null, - null, - null, - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadah, 2L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadah, 2L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadria, 1L), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.NaquadahEnriched, 4L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.TungstenSteel, 18L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Platinum, 2L), - new int[] { 10_000, 5_000, 5_000, 2_500, 10_000, 10_000 }, - 1000, - 2000); + ItemList.Depleted_Naquadah_2.get(1), + null, + null, + null, + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadah, 2L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadah, 2L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadria, 1L), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.NaquadahEnriched, 4L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.TungstenSteel, 18L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Platinum, 2L), + new int[] { 10_000, 5_000, 5_000, 2_500, 10_000, 10_000 }, + 1000, + 2000); GT_Values.RA.addCentrifugeRecipe( - ItemList.Depleted_Naquadah_4.get(1), - null, - null, - null, - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadah, 4L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadah, 4L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadria, 2L), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.NaquadahEnriched, 8L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.TungstenSteel, 38L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Platinum, 4L), - new int[] { 10_000, 5_000, 5_000, 2_500, 10_000, 10_000 }, - 2000, - 2000); + ItemList.Depleted_Naquadah_4.get(1), + null, + null, + null, + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadah, 4L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadah, 4L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadria, 2L), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.NaquadahEnriched, 8L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.TungstenSteel, 38L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Platinum, 4L), + new int[] { 10_000, 5_000, 5_000, 2_500, 10_000, 10_000 }, + 2000, + 2000); ItemList.Depleted_MNq_1.set(new GT_DepletetCell_Item("MNqCellDep", "Fuel Rod (Depleted Nq*)", 1)); - ItemList.Depleted_MNq_2.set( - new GT_DepletetCell_Item("Double_MNqCellDep", "Dual Fuel Rod (Depleted Nq*)", 1)); + ItemList.Depleted_MNq_2 + .set(new GT_DepletetCell_Item("Double_MNqCellDep", "Dual Fuel Rod (Depleted Nq*)", 1)); ItemList.Depleted_MNq_4.set(new GT_DepletetCell_Item("Quad_MNqCellDep", "Quad Fuel Rod (Depleted Nq*)", 1)); ItemList.MNqCell_1.set( - new GT_RadioactiveCellIC_Item( - "MNqCell", - "Fuel Rod (Nq* - MOX like behaviour)", - 1, - 100000, - 4F, - 1, - 1F, - ItemList.Depleted_MNq_1.get(1), - true)); + new GT_RadioactiveCellIC_Item( + "MNqCell", + "Fuel Rod (Nq* - MOX like behaviour)", + 1, + 100000, + 4F, + 1, + 1F, + ItemList.Depleted_MNq_1.get(1), + true)); ItemList.MNqCell_2.set( - new GT_RadioactiveCellIC_Item( - "Double_MNqCell", - "Dual Fuel Rod (Nq* - MOX like behaviour)", - 2, - 100000, - 4F, - 1, - 1F, - ItemList.Depleted_MNq_2.get(1), - true)); + new GT_RadioactiveCellIC_Item( + "Double_MNqCell", + "Dual Fuel Rod (Nq* - MOX like behaviour)", + 2, + 100000, + 4F, + 1, + 1F, + ItemList.Depleted_MNq_2.get(1), + true)); ItemList.MNqCell_4.set( - new GT_RadioactiveCellIC_Item( - "Quad_MNqCell", - "Quad Fuel Rod (Nq* - MOX like behaviour)", - 4, - 100000, - 4F, - 1, - 1F, - ItemList.Depleted_MNq_4.get(1), - true)); + new GT_RadioactiveCellIC_Item( + "Quad_MNqCell", + "Quad Fuel Rod (Nq* - MOX like behaviour)", + 4, + 100000, + 4F, + 1, + 1F, + ItemList.Depleted_MNq_4.get(1), + true)); GT_Values.RA.addCentrifugeRecipe( - ItemList.Depleted_MNq_1.get(1), - null, - null, - null, - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadah, 1L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadah, 1L), - GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.NaquadahEnriched, 2L), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Naquadria, 2L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.TungstenSteel, 8L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Platinum, 1L), - new int[] { 10_000, 5_000, 5_000, 2_500, 10_000, 10_000 }, - 500, - 2000); + ItemList.Depleted_MNq_1.get(1), + null, + null, + null, + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadah, 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadah, 1L), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.NaquadahEnriched, 2L), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Naquadria, 2L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.TungstenSteel, 8L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Platinum, 1L), + new int[] { 10_000, 5_000, 5_000, 2_500, 10_000, 10_000 }, + 500, + 2000); GT_Values.RA.addCentrifugeRecipe( - ItemList.Depleted_MNq_2.get(1), - null, - null, - null, - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadah, 2L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadah, 2L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.NaquadahEnriched, 1L), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Naquadria, 4L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.TungstenSteel, 18L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Platinum, 2L), - new int[] { 10_000, 5_000, 5_000, 2_500, 10_000, 10_000 }, - 1000, - 2000); + ItemList.Depleted_MNq_2.get(1), + null, + null, + null, + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadah, 2L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadah, 2L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.NaquadahEnriched, 1L), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Naquadria, 4L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.TungstenSteel, 18L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Platinum, 2L), + new int[] { 10_000, 5_000, 5_000, 2_500, 10_000, 10_000 }, + 1000, + 2000); GT_Values.RA.addCentrifugeRecipe( - ItemList.Depleted_MNq_4.get(1), - null, - null, - null, - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadah, 4L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadah, 4L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.NaquadahEnriched, 2L), - GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Naquadria, 8L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.TungstenSteel, 38L), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Platinum, 4L), - new int[] { 10_000, 5_000, 5_000, 2_500, 10_000, 10_000 }, - 2000, - 2000); + ItemList.Depleted_MNq_4.get(1), + null, + null, + null, + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadah, 4L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadah, 4L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.NaquadahEnriched, 2L), + GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Naquadria, 8L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.TungstenSteel, 38L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Platinum, 4L), + new int[] { 10_000, 5_000, 5_000, 2_500, 10_000, 10_000 }, + 2000, + 2000); ItemList.Uraniumcell_1.set( - new GT_RadioactiveCellIC_Item( - "reactorUraniumSimple", - "Fuel Rod (Uranium)", - 1, - 20000, - 2F, - 1, - 1F, - GT_ModHandler.getIC2Item("reactorDepletedUraniumSimple", 1), - false)); + new GT_RadioactiveCellIC_Item( + "reactorUraniumSimple", + "Fuel Rod (Uranium)", + 1, + 20000, + 2F, + 1, + 1F, + GT_ModHandler.getIC2Item("reactorDepletedUraniumSimple", 1), + false)); ItemList.Uraniumcell_2.set( - new GT_RadioactiveCellIC_Item( - "reactorUraniumDual", - "Dual Fuel Rod (Uranium)", - 2, - 20000, - 2F, - 1, - 1F, - GT_ModHandler.getIC2Item("reactorDepletedUraniumDual", 1), - false)); + new GT_RadioactiveCellIC_Item( + "reactorUraniumDual", + "Dual Fuel Rod (Uranium)", + 2, + 20000, + 2F, + 1, + 1F, + GT_ModHandler.getIC2Item("reactorDepletedUraniumDual", 1), + false)); ItemList.Uraniumcell_4.set( - new GT_RadioactiveCellIC_Item( - "reactorUraniumQuad", - "Quad Fuel Rod (Uranium)", - 4, - 20000, - 2F, - 1, - 1F, - GT_ModHandler.getIC2Item("reactorDepletedUraniumQuad", 1), - false)); + new GT_RadioactiveCellIC_Item( + "reactorUraniumQuad", + "Quad Fuel Rod (Uranium)", + 4, + 20000, + 2F, + 1, + 1F, + GT_ModHandler.getIC2Item("reactorDepletedUraniumQuad", 1), + false)); ItemList.Moxcell_1.set( - new GT_RadioactiveCellIC_Item( - "reactorMOXSimple", - "Fuel Rod (Mox)", - 1, - 10000, - 2F, - 1, - 1F, - GT_ModHandler.getIC2Item("reactorDepletedMOXSimple", 1), - true)); + new GT_RadioactiveCellIC_Item( + "reactorMOXSimple", + "Fuel Rod (Mox)", + 1, + 10000, + 2F, + 1, + 1F, + GT_ModHandler.getIC2Item("reactorDepletedMOXSimple", 1), + true)); ItemList.Moxcell_2.set( - new GT_RadioactiveCellIC_Item( - "reactorMOXDual", - "Dual Fuel Rod (Mox)", - 2, - 10000, - 2F, - 1, - 1F, - GT_ModHandler.getIC2Item("reactorDepletedMOXDual", 1), - true)); + new GT_RadioactiveCellIC_Item( + "reactorMOXDual", + "Dual Fuel Rod (Mox)", + 2, + 10000, + 2F, + 1, + 1F, + GT_ModHandler.getIC2Item("reactorDepletedMOXDual", 1), + true)); ItemList.Moxcell_4.set( - new GT_RadioactiveCellIC_Item( - "reactorMOXQuad", - "Quad Fuel Rod (Mox)", - 4, - 10000, - 2F, - 1, - 1F, - GT_ModHandler.getIC2Item("reactorDepletedMOXQuad", 1), - true)); + new GT_RadioactiveCellIC_Item( + "reactorMOXQuad", + "Quad Fuel Rod (Mox)", + 4, + 10000, + 2F, + 1, + 1F, + GT_ModHandler.getIC2Item("reactorDepletedMOXQuad", 1), + true)); } GT_Log.out.println("GT_Mod: Adding Blocks."); @@ -512,111 +506,110 @@ public class GT_Loader_Item_Block_And_Fluid implements Runnable { // meta ID order, DO NOT CHANGE ORDER GregTech_API.sBlockMetal1 = new GT_Block_Metal( - "gt.blockmetal1", - new Materials[] { Materials.Adamantium, Materials.Aluminium, Materials.Americium, - Materials.AnnealedCopper, Materials.Antimony, Materials.Arsenic, Materials.AstralSilver, - Materials.BatteryAlloy, Materials.Beryllium, Materials.Bismuth, Materials.BismuthBronze, - Materials.BlackBronze, Materials.BlackSteel, Materials.BlueAlloy, Materials.BlueSteel, - Materials.Brass }, - OrePrefixes.block, - gregtech.api.enums.Textures.BlockIcons.STORAGE_BLOCKS1); + "gt.blockmetal1", + new Materials[] { Materials.Adamantium, Materials.Aluminium, Materials.Americium, Materials.AnnealedCopper, + Materials.Antimony, Materials.Arsenic, Materials.AstralSilver, Materials.BatteryAlloy, + Materials.Beryllium, Materials.Bismuth, Materials.BismuthBronze, Materials.BlackBronze, + Materials.BlackSteel, Materials.BlueAlloy, Materials.BlueSteel, Materials.Brass }, + OrePrefixes.block, + gregtech.api.enums.Textures.BlockIcons.STORAGE_BLOCKS1); GregTech_API.sBlockMetal2 = new GT_Block_Metal( - "gt.blockmetal2", - new Materials[] { Materials.Bronze, Materials.Caesium, Materials.Cerium, Materials.Chrome, - Materials.ChromiumDioxide, Materials.Cobalt, Materials.CobaltBrass, Materials.Copper, - Materials.Cupronickel, Materials.DamascusSteel, Materials.DarkIron, Materials.DeepIron, - Materials.Desh, Materials.Duranium, Materials.Dysprosium, Materials.Electrum }, - OrePrefixes.block, - gregtech.api.enums.Textures.BlockIcons.STORAGE_BLOCKS2); + "gt.blockmetal2", + new Materials[] { Materials.Bronze, Materials.Caesium, Materials.Cerium, Materials.Chrome, + Materials.ChromiumDioxide, Materials.Cobalt, Materials.CobaltBrass, Materials.Copper, + Materials.Cupronickel, Materials.DamascusSteel, Materials.DarkIron, Materials.DeepIron, Materials.Desh, + Materials.Duranium, Materials.Dysprosium, Materials.Electrum }, + OrePrefixes.block, + gregtech.api.enums.Textures.BlockIcons.STORAGE_BLOCKS2); GregTech_API.sBlockMetal3 = new GT_Block_Metal( - "gt.blockmetal3", - new Materials[] { Materials.ElectrumFlux, Materials.Enderium, Materials.Erbium, Materials.Europium, - Materials.FierySteel, Materials.Gadolinium, Materials.Gallium, Materials.Holmium, - Materials.HSLA, Materials.Indium, Materials.InfusedGold, Materials.Invar, Materials.Iridium, - Materials.IronMagnetic, Materials.IronWood, Materials.Kanthal }, - OrePrefixes.block, - gregtech.api.enums.Textures.BlockIcons.STORAGE_BLOCKS3); + "gt.blockmetal3", + new Materials[] { Materials.ElectrumFlux, Materials.Enderium, Materials.Erbium, Materials.Europium, + Materials.FierySteel, Materials.Gadolinium, Materials.Gallium, Materials.Holmium, Materials.HSLA, + Materials.Indium, Materials.InfusedGold, Materials.Invar, Materials.Iridium, Materials.IronMagnetic, + Materials.IronWood, Materials.Kanthal }, + OrePrefixes.block, + gregtech.api.enums.Textures.BlockIcons.STORAGE_BLOCKS3); GregTech_API.sBlockMetal4 = new GT_Block_Metal( - "gt.blockmetal4", - new Materials[] { Materials.Knightmetal, Materials.Lanthanum, Materials.Lead, Materials.Lutetium, - Materials.Magnalium, Materials.Magnesium, Materials.Manganese, Materials.MeteoricIron, - Materials.MeteoricSteel, Materials.Trinium, Materials.Mithril, Materials.Molybdenum, - Materials.Naquadah, Materials.NaquadahAlloy, Materials.NaquadahEnriched, Materials.Naquadria }, - OrePrefixes.block, - gregtech.api.enums.Textures.BlockIcons.STORAGE_BLOCKS4); + "gt.blockmetal4", + new Materials[] { Materials.Knightmetal, Materials.Lanthanum, Materials.Lead, Materials.Lutetium, + Materials.Magnalium, Materials.Magnesium, Materials.Manganese, Materials.MeteoricIron, + Materials.MeteoricSteel, Materials.Trinium, Materials.Mithril, Materials.Molybdenum, Materials.Naquadah, + Materials.NaquadahAlloy, Materials.NaquadahEnriched, Materials.Naquadria }, + OrePrefixes.block, + gregtech.api.enums.Textures.BlockIcons.STORAGE_BLOCKS4); GregTech_API.sBlockMetal5 = new GT_Block_Metal( - "gt.blockmetal5", - new Materials[] { Materials.Neodymium, Materials.NeodymiumMagnetic, Materials.Neutronium, - Materials.Nichrome, Materials.Nickel, Materials.Niobium, Materials.NiobiumNitride, - Materials.NiobiumTitanium, Materials.Osmiridium, Materials.Osmium, Materials.Palladium, - Materials.PigIron, Materials.Platinum, Materials.Plutonium, Materials.Plutonium241, - Materials.Praseodymium }, - OrePrefixes.block, - gregtech.api.enums.Textures.BlockIcons.STORAGE_BLOCKS5); + "gt.blockmetal5", + new Materials[] { Materials.Neodymium, Materials.NeodymiumMagnetic, Materials.Neutronium, + Materials.Nichrome, Materials.Nickel, Materials.Niobium, Materials.NiobiumNitride, + Materials.NiobiumTitanium, Materials.Osmiridium, Materials.Osmium, Materials.Palladium, + Materials.PigIron, Materials.Platinum, Materials.Plutonium, Materials.Plutonium241, + Materials.Praseodymium }, + OrePrefixes.block, + gregtech.api.enums.Textures.BlockIcons.STORAGE_BLOCKS5); GregTech_API.sBlockMetal6 = new GT_Block_Metal( - "gt.blockmetal6", - new Materials[] { Materials.Promethium, Materials.RedAlloy, Materials.RedSteel, Materials.RoseGold, - Materials.Rubidium, Materials.Samarium, Materials.Scandium, Materials.ShadowIron, - Materials.ShadowSteel, Materials.Silicon, Materials.Silver, Materials.SolderingAlloy, - Materials.StainlessSteel, Materials.Steel, Materials.SteelMagnetic, Materials.SterlingSilver }, - OrePrefixes.block, - gregtech.api.enums.Textures.BlockIcons.STORAGE_BLOCKS6); + "gt.blockmetal6", + new Materials[] { Materials.Promethium, Materials.RedAlloy, Materials.RedSteel, Materials.RoseGold, + Materials.Rubidium, Materials.Samarium, Materials.Scandium, Materials.ShadowIron, Materials.ShadowSteel, + Materials.Silicon, Materials.Silver, Materials.SolderingAlloy, Materials.StainlessSteel, + Materials.Steel, Materials.SteelMagnetic, Materials.SterlingSilver }, + OrePrefixes.block, + gregtech.api.enums.Textures.BlockIcons.STORAGE_BLOCKS6); GregTech_API.sBlockMetal7 = new GT_Block_Metal( - "gt.blockmetal7", - new Materials[] { Materials.Sunnarium, Materials.Tantalum, Materials.Tellurium, Materials.Terbium, - Materials.Thaumium, Materials.Thorium, Materials.Thulium, Materials.Tin, Materials.TinAlloy, - Materials.Titanium, Materials.Tritanium, Materials.Tungsten, Materials.TungstenSteel, - Materials.Ultimet, Materials.Uranium, Materials.Uranium235 }, - OrePrefixes.block, - gregtech.api.enums.Textures.BlockIcons.STORAGE_BLOCKS7); + "gt.blockmetal7", + new Materials[] { Materials.Sunnarium, Materials.Tantalum, Materials.Tellurium, Materials.Terbium, + Materials.Thaumium, Materials.Thorium, Materials.Thulium, Materials.Tin, Materials.TinAlloy, + Materials.Titanium, Materials.Tritanium, Materials.Tungsten, Materials.TungstenSteel, Materials.Ultimet, + Materials.Uranium, Materials.Uranium235 }, + OrePrefixes.block, + gregtech.api.enums.Textures.BlockIcons.STORAGE_BLOCKS7); GregTech_API.sBlockMetal8 = new GT_Block_Metal( - "gt.blockmetal8", - new Materials[] { Materials.Vanadium, Materials.VanadiumGallium, Materials.WroughtIron, - Materials.Ytterbium, Materials.Yttrium, Materials.YttriumBariumCuprate, Materials.Zinc, - Materials.TungstenCarbide, Materials.VanadiumSteel, Materials.HSSG, Materials.HSSE, - Materials.HSSS, Materials.Steeleaf, Materials.Ichorium, Materials.Firestone, Materials.Shadow }, - OrePrefixes.block, - gregtech.api.enums.Textures.BlockIcons.STORAGE_BLOCKS8); + "gt.blockmetal8", + new Materials[] { Materials.Vanadium, Materials.VanadiumGallium, Materials.WroughtIron, Materials.Ytterbium, + Materials.Yttrium, Materials.YttriumBariumCuprate, Materials.Zinc, Materials.TungstenCarbide, + Materials.VanadiumSteel, Materials.HSSG, Materials.HSSE, Materials.HSSS, Materials.Steeleaf, + Materials.Ichorium, Materials.Firestone, Materials.Shadow }, + OrePrefixes.block, + gregtech.api.enums.Textures.BlockIcons.STORAGE_BLOCKS8); GregTech_API.sBlockGem1 = new GT_Block_Metal( - "gt.blockgem1", - new Materials[] { Materials.InfusedAir, Materials.Amber, Materials.Amethyst, Materials.InfusedWater, - Materials.BlueTopaz, Materials.CertusQuartz, Materials.Dilithium, Materials.EnderEye, - Materials.EnderPearl, Materials.FoolsRuby, Materials.Force, Materials.Forcicium, - Materials.Forcillium, Materials.GreenSapphire, Materials.InfusedFire, Materials.Jasper }, - OrePrefixes.block, - gregtech.api.enums.Textures.BlockIcons.STORAGE_BLOCKS9); + "gt.blockgem1", + new Materials[] { Materials.InfusedAir, Materials.Amber, Materials.Amethyst, Materials.InfusedWater, + Materials.BlueTopaz, Materials.CertusQuartz, Materials.Dilithium, Materials.EnderEye, + Materials.EnderPearl, Materials.FoolsRuby, Materials.Force, Materials.Forcicium, Materials.Forcillium, + Materials.GreenSapphire, Materials.InfusedFire, Materials.Jasper }, + OrePrefixes.block, + gregtech.api.enums.Textures.BlockIcons.STORAGE_BLOCKS9); GregTech_API.sBlockGem2 = new GT_Block_Metal( - "gt.blockgem2", - new Materials[] { Materials.Lazurite, Materials.Lignite, Materials.Monazite, Materials.Niter, - Materials.Olivine, Materials.Opal, Materials.InfusedOrder, Materials.InfusedEntropy, - Materials.TricalciumPhosphate, Materials.Quartzite, Materials.GarnetRed, Materials.Ruby, - Materials.Sapphire, Materials.Sodalite, Materials.Tanzanite, Materials.InfusedEarth }, - OrePrefixes.block, - gregtech.api.enums.Textures.BlockIcons.STORAGE_BLOCKS10); + "gt.blockgem2", + new Materials[] { Materials.Lazurite, Materials.Lignite, Materials.Monazite, Materials.Niter, + Materials.Olivine, Materials.Opal, Materials.InfusedOrder, Materials.InfusedEntropy, + Materials.TricalciumPhosphate, Materials.Quartzite, Materials.GarnetRed, Materials.Ruby, + Materials.Sapphire, Materials.Sodalite, Materials.Tanzanite, Materials.InfusedEarth }, + OrePrefixes.block, + gregtech.api.enums.Textures.BlockIcons.STORAGE_BLOCKS10); GregTech_API.sBlockGem3 = new GT_Block_Metal( - "gt.blockgem3", - new Materials[] { Materials.Topaz, Materials.Vinteum, Materials.GarnetYellow, Materials.NetherStar, - Materials.Charcoal, Materials.Blaze }, - OrePrefixes.block, - gregtech.api.enums.Textures.BlockIcons.STORAGE_BLOCKS11); + "gt.blockgem3", + new Materials[] { Materials.Topaz, Materials.Vinteum, Materials.GarnetYellow, Materials.NetherStar, + Materials.Charcoal, Materials.Blaze }, + OrePrefixes.block, + gregtech.api.enums.Textures.BlockIcons.STORAGE_BLOCKS11); GregTech_API.sBlockMetal9 = new GT_Block_Metal( - "gt.blockmetal9", - new Materials[] { Materials.Cryolite, Materials.SiliconSG, MaterialsKevlar.NickelAluminide, - Materials.SpaceTime, Materials.TranscendentMetal, Materials.Oriharukon, - Materials.WhiteDwarfMatter, Materials.BlackDwarfMatter, Materials.Universium }, - OrePrefixes.block, - gregtech.api.enums.Textures.BlockIcons.STORAGE_BLOCKS12); + "gt.blockmetal9", + new Materials[] { Materials.Cryolite, Materials.SiliconSG, MaterialsKevlar.NickelAluminide, + Materials.SpaceTime, Materials.TranscendentMetal, Materials.Oriharukon, Materials.WhiteDwarfMatter, + Materials.BlackDwarfMatter, Materials.Universium }, + OrePrefixes.block, + gregtech.api.enums.Textures.BlockIcons.STORAGE_BLOCKS12); GregTech_API.sBlockReinforced = new GT_Block_Reinforced("gt.blockreinforced"); @@ -632,10 +625,10 @@ public class GT_Loader_Item_Block_And_Fluid implements Runnable { GT_Log.out.println("GT_Mod: Registering the BaseMetaTileEntity."); GameRegistry.registerTileEntity(tBaseMetaTileEntity.getClass(), "BaseMetaTileEntity"); FMLInterModComms.sendMessage( - AppliedEnergistics2.ID, - "whitelist-spatial", - tBaseMetaTileEntity.getClass() - .getName()); + AppliedEnergistics2.ID, + "whitelist-spatial", + tBaseMetaTileEntity.getClass() + .getName()); GT_Log.out.println("GT_Mod: Registering the BaseMetaPipeEntity."); GameRegistry.registerTileEntity(BaseMetaPipeEntity.class, "BaseMetaPipeEntity"); @@ -646,630 +639,616 @@ public class GT_Loader_Item_Block_And_Fluid implements Runnable { FMLInterModComms.sendMessage(AppliedEnergistics2.ID, "whitelist-spatial", GT_TileEntity_Ores.class.getName()); if (!GregTech_API.mIC2Classic) { GT_Log.out.println("GT_Mod: Registering Fluids."); - Materials.ConstructionFoam.mFluid = GT_Utility.getFluidForFilledItem( - GT_ModHandler.getIC2Item("CFCell", 1L), - true) - .getFluid(); - Materials.UUMatter.mFluid = GT_Utility.getFluidForFilledItem( - GT_ModHandler.getIC2Item("uuMatterCell", 1L), - true) - .getFluid(); + Materials.ConstructionFoam.mFluid = GT_Utility + .getFluidForFilledItem(GT_ModHandler.getIC2Item("CFCell", 1L), true) + .getFluid(); + Materials.UUMatter.mFluid = GT_Utility + .getFluidForFilledItem(GT_ModHandler.getIC2Item("uuMatterCell", 1L), true) + .getFluid(); } GT_FluidFactory.builder("Air") - .withLocalizedName("Air") - .withStateAndTemperature(GAS, 295) - .buildAndRegister() - .configureMaterials(Materials.Air) - .registerContainers(ItemList.Cell_Air.get(1L), ItemList.Cell_Empty.get(1L), 2000); + .withLocalizedName("Air") + .withStateAndTemperature(GAS, 295) + .buildAndRegister() + .configureMaterials(Materials.Air) + .registerContainers(ItemList.Cell_Air.get(1L), ItemList.Cell_Empty.get(1L), 2000); GT_FluidFactory.builder("LiquidOxygen") - .withLocalizedName("Liquid Oxygen") - .withStateAndTemperature(GAS, 60) - .buildAndRegister() - .configureMaterials(Materials.LiquidOxygen) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.LiquidOxygen, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Liquid Oxygen") + .withStateAndTemperature(GAS, 60) + .buildAndRegister() + .configureMaterials(Materials.LiquidOxygen) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.LiquidOxygen, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("LiquidNitrogen") - .withLocalizedName("Liquid Nitrogen") - .withStateAndTemperature(GAS, 77) - .buildAndRegister() - .configureMaterials(Materials.LiquidNitrogen) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.LiquidNitrogen, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Liquid Nitrogen") + .withStateAndTemperature(GAS, 77) + .buildAndRegister() + .configureMaterials(Materials.LiquidNitrogen) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.LiquidNitrogen, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("LiquidAir") - .withLocalizedName("Liquid Air") - .withStateAndTemperature(LIQUID, 77) - .buildAndRegister() - .configureMaterials(Materials.LiquidAir) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.LiquidAir, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Liquid Air") + .withStateAndTemperature(LIQUID, 77) + .buildAndRegister() + .configureMaterials(Materials.LiquidAir) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.LiquidAir, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("Oxygen") - .withLocalizedName("Oxygen") - .withStateAndTemperature(GAS, 295) - .buildAndRegister() - .configureMaterials(Materials.Oxygen) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Oxygen, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Oxygen") + .withStateAndTemperature(GAS, 295) + .buildAndRegister() + .configureMaterials(Materials.Oxygen) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Oxygen, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("Hydrogen") - .withLocalizedName("Hydrogen") - .withStateAndTemperature(GAS, 295) - .buildAndRegister() - .configureMaterials(Materials.Hydrogen) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Hydrogen, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Hydrogen") + .withStateAndTemperature(GAS, 295) + .buildAndRegister() + .configureMaterials(Materials.Hydrogen) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Hydrogen, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("Deuterium") - .withLocalizedName("Deuterium") - .withStateAndTemperature(GAS, 295) - .buildAndRegister() - .configureMaterials(Materials.Deuterium) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Deuterium, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Deuterium") + .withStateAndTemperature(GAS, 295) + .buildAndRegister() + .configureMaterials(Materials.Deuterium) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Deuterium, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("Tritium") - .withLocalizedName("Tritium") - .withStateAndTemperature(GAS, 295) - .buildAndRegister() - .configureMaterials(Materials.Tritium) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Tritium, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Tritium") + .withStateAndTemperature(GAS, 295) + .buildAndRegister() + .configureMaterials(Materials.Tritium) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Tritium, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("Helium") - .withLocalizedName("Helium") - .withStateAndTemperature(GAS, 295) - .buildAndRegister() - .configureMaterials(Materials.Helium) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Helium, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Helium") + .withStateAndTemperature(GAS, 295) + .buildAndRegister() + .configureMaterials(Materials.Helium) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Helium, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("Argon") - .withLocalizedName("Argon") - .withStateAndTemperature(GAS, 295) - .buildAndRegister() - .configureMaterials(Materials.Argon) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Argon, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Argon") + .withStateAndTemperature(GAS, 295) + .buildAndRegister() + .configureMaterials(Materials.Argon) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Argon, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("Radon") - .withLocalizedName("Radon") - .withStateAndTemperature(GAS, 295) - .buildAndRegister() - .configureMaterials(Materials.Radon) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Radon, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Radon") + .withStateAndTemperature(GAS, 295) + .buildAndRegister() + .configureMaterials(Materials.Radon) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Radon, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("Fluorine") - .withLocalizedName("Fluorine") - .withStateAndTemperature(GAS, 53) - .buildAndRegister() - .configureMaterials(Materials.Fluorine) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Fluorine, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Fluorine") + .withStateAndTemperature(GAS, 53) + .buildAndRegister() + .configureMaterials(Materials.Fluorine) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Fluorine, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("Titaniumtetrachloride") - .withLocalizedName("Titaniumtetrachloride") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .configureMaterials(Materials.Titaniumtetrachloride) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Titaniumtetrachloride, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Titaniumtetrachloride") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .configureMaterials(Materials.Titaniumtetrachloride) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Titaniumtetrachloride, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("Helium-3") - .withLocalizedName("Helium-3") - .withStateAndTemperature(GAS, 295) - .buildAndRegister() - .configureMaterials(Materials.Helium_3) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Helium_3, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Helium-3") + .withStateAndTemperature(GAS, 295) + .buildAndRegister() + .configureMaterials(Materials.Helium_3) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Helium_3, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("Methane") - .withLocalizedName("Methane") - .withStateAndTemperature(GAS, 295) - .buildAndRegister() - .configureMaterials(Materials.Methane) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Methane, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Methane") + .withStateAndTemperature(GAS, 295) + .buildAndRegister() + .configureMaterials(Materials.Methane) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Methane, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("Nitrogen") - .withLocalizedName("Nitrogen") - .withStateAndTemperature(GAS, 295) - .buildAndRegister() - .configureMaterials(Materials.Nitrogen) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Nitrogen, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Nitrogen") + .withStateAndTemperature(GAS, 295) + .buildAndRegister() + .configureMaterials(Materials.Nitrogen) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Nitrogen, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("NitrogenDioxide") - .withLocalizedName("Nitrogen Dioxide") - .withStateAndTemperature(GAS, 295) - .buildAndRegister() - .configureMaterials(Materials.NitrogenDioxide) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.NitrogenDioxide, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Nitrogen Dioxide") + .withStateAndTemperature(GAS, 295) + .buildAndRegister() + .configureMaterials(Materials.NitrogenDioxide) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.NitrogenDioxide, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("Steam") - .withLocalizedName("Steam") - .withStateAndTemperature(GAS, 375) - .buildAndRegister() - .configureMaterials(Materials.Water) - .registerBContainers(GT_ModHandler.getIC2Item("steamCell", 1), Materials.Empty.getCells(1)); + .withLocalizedName("Steam") + .withStateAndTemperature(GAS, 375) + .buildAndRegister() + .configureMaterials(Materials.Water) + .registerBContainers(GT_ModHandler.getIC2Item("steamCell", 1), Materials.Empty.getCells(1)); GT_Values.RA.addFluidCannerRecipe( - Materials.Empty.getCells(1), - GT_ModHandler.getIC2Item("steamCell", 1), - GT_ModHandler.getSteam(1000), - null); + Materials.Empty.getCells(1), + GT_ModHandler.getIC2Item("steamCell", 1), + GT_ModHandler.getSteam(1000), + null); Materials.Ice.mGas = Materials.Water.mGas; Materials.Water.mGas.setTemperature(375) - .setGaseous(true); + .setGaseous(true); ItemList.sOilExtraHeavy = GT_FluidFactory.of("liquid_extra_heavy_oil", "Very Heavy Oil", LIQUID, 295); ItemList.sEpichlorhydrin = GT_FluidFactory.builder("liquid_epichlorhydrin") - .withLocalizedName("Epichlorohydrin") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .configureMaterials(Materials.Epichlorohydrin) - .registerBContainers( - Materials.Epichlorohydrin.getCells(1), - Materials.Empty.getCells(1)) - .asFluid(); + .withLocalizedName("Epichlorohydrin") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .configureMaterials(Materials.Epichlorohydrin) + .registerBContainers(Materials.Epichlorohydrin.getCells(1), Materials.Empty.getCells(1)) + .asFluid(); ItemList.sDrillingFluid = GT_FluidFactory.of("liquid_drillingfluid", "Drilling Fluid", LIQUID, 295); ItemList.sToluene = GT_FluidFactory.builder("liquid_toluene") - .withLocalizedName("Toluene") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .configureMaterials(Materials.Toluene) - .registerBContainers( - Materials.Toluene.getCells(1), - Materials.Empty.getCells(1)) - .asFluid(); + .withLocalizedName("Toluene") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .configureMaterials(Materials.Toluene) + .registerBContainers(Materials.Toluene.getCells(1), Materials.Empty.getCells(1)) + .asFluid(); ItemList.sNitrationMixture = GT_FluidFactory.builder("liquid_nitrationmixture") - .withLocalizedName("Nitration Mixture") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .configureMaterials(Materials.NitrationMixture) - .registerBContainers( - Materials.NitrationMixture.getCells(1), - Materials.Empty.getCells(1)) - .asFluid(); + .withLocalizedName("Nitration Mixture") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .configureMaterials(Materials.NitrationMixture) + .registerBContainers(Materials.NitrationMixture.getCells(1), Materials.Empty.getCells(1)) + .asFluid(); GT_FluidFactory.builder("liquid_heavy_oil") - .withLocalizedName("Heavy Oil") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .configureMaterials(Materials.OilHeavy) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.OilHeavy, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Heavy Oil") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .configureMaterials(Materials.OilHeavy) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.OilHeavy, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("liquid_medium_oil") - .withLocalizedName("Raw Oil") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .configureMaterials(Materials.OilMedium) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.OilMedium, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Raw Oil") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .configureMaterials(Materials.OilMedium) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.OilMedium, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("liquid_light_oil") - .withLocalizedName("Light Oil") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .configureMaterials(Materials.OilLight) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.OilLight, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Light Oil") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .configureMaterials(Materials.OilLight) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.OilLight, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("gas_natural_gas") - .withLocalizedName("Natural Gas") - .withStateAndTemperature(GAS, 295) - .buildAndRegister() - .configureMaterials(Materials.NatruralGas) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.NatruralGas, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Natural Gas") + .withStateAndTemperature(GAS, 295) + .buildAndRegister() + .configureMaterials(Materials.NatruralGas) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.NatruralGas, 1L), + ItemList.Cell_Empty.get(1L)); ItemList.sHydricSulfur = GT_FluidFactory.builder("liquid_hydricsulfur") - .withLocalizedName("Hydrogen Sulfide") - .withStateAndTemperature(GAS, 295) - .buildAndRegister() - .configureMaterials(Materials.HydricSulfide) - .registerBContainers( - GT_OreDictUnificator.get( - OrePrefixes.cell, - Materials.HydricSulfide, - 1L), - ItemList.Cell_Empty.get(1L)) - .asFluid(); + .withLocalizedName("Hydrogen Sulfide") + .withStateAndTemperature(GAS, 295) + .buildAndRegister() + .configureMaterials(Materials.HydricSulfide) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.HydricSulfide, 1L), + ItemList.Cell_Empty.get(1L)) + .asFluid(); GT_FluidFactory.builder("gas_sulfuricgas") - .withLocalizedName("Sulfuric Gas") - .withStateAndTemperature(GAS, 295) - .buildAndRegister() - .configureMaterials(Materials.SulfuricGas) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.SulfuricGas, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Sulfuric Gas") + .withStateAndTemperature(GAS, 295) + .buildAndRegister() + .configureMaterials(Materials.SulfuricGas) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.SulfuricGas, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("gas_gas") - .withLocalizedName("Refinery Gas") - .withStateAndTemperature(GAS, 295) - .buildAndRegister() - .configureMaterials(Materials.Gas) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Gas, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Refinery Gas") + .withStateAndTemperature(GAS, 295) + .buildAndRegister() + .configureMaterials(Materials.Gas) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Gas, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("liquid_sulfuricnaphtha") - .withLocalizedName("Sulfuric Naphtha") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .configureMaterials(Materials.SulfuricNaphtha) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.SulfuricNaphtha, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Sulfuric Naphtha") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .configureMaterials(Materials.SulfuricNaphtha) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.SulfuricNaphtha, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("liquid_sufluriclight_fuel") - .withLocalizedName("Sulfuric Light Fuel") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .configureMaterials(Materials.SulfuricLightFuel) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.SulfuricLightFuel, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Sulfuric Light Fuel") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .configureMaterials(Materials.SulfuricLightFuel) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.SulfuricLightFuel, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("liquid_sulfuricheavy_fuel") - .withLocalizedName("Sulfuric Heavy Fuel") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .configureMaterials(Materials.SulfuricHeavyFuel) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.SulfuricHeavyFuel, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Sulfuric Heavy Fuel") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .configureMaterials(Materials.SulfuricHeavyFuel) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.SulfuricHeavyFuel, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("liquid_naphtha") - .withLocalizedName("Naphtha") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .configureMaterials(Materials.Naphtha) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Naphtha, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Naphtha") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .configureMaterials(Materials.Naphtha) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Naphtha, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("liquid_light_fuel") - .withLocalizedName("Light Fuel") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .configureMaterials(Materials.LightFuel) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.LightFuel, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Light Fuel") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .configureMaterials(Materials.LightFuel) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.LightFuel, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("liquid_heavy_fuel") - .withLocalizedName("Heavy Fuel") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .configureMaterials(Materials.HeavyFuel) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.HeavyFuel, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Heavy Fuel") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .configureMaterials(Materials.HeavyFuel) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.HeavyFuel, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("liquid_lpg") - .withLocalizedName("LPG") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .configureMaterials(Materials.LPG) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.LPG, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("LPG") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .configureMaterials(Materials.LPG) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.LPG, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("charcoal_byproducts") - .withTextureName("molten.autogenerated") - .withLocalizedName("Charcoal Byproducts") - .withColorRGBA(Materials.CharcoalByproducts.mRGBa) - .withStateAndTemperature(GAS, 775) - .buildAndRegister() - .configureMaterials(Materials.CharcoalByproducts) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.CharcoalByproducts, 1L), - ItemList.Cell_Empty.get(1L)); + .withTextureName("molten.autogenerated") + .withLocalizedName("Charcoal Byproducts") + .withColorRGBA(Materials.CharcoalByproducts.mRGBa) + .withStateAndTemperature(GAS, 775) + .buildAndRegister() + .configureMaterials(Materials.CharcoalByproducts) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.CharcoalByproducts, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("molten.bisphenol_a") - .withTextureName("molten.autogenerated") - .withLocalizedName("Molten Bisphenol A") - .withColorRGBA(Materials.BisphenolA.mRGBa) - .withStateAndTemperature(LIQUID, 432) - .buildAndRegister() - .configureMaterials(Materials.BisphenolA) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.BisphenolA, 1L), - ItemList.Cell_Empty.get(1L)); + .withTextureName("molten.autogenerated") + .withLocalizedName("Molten Bisphenol A") + .withColorRGBA(Materials.BisphenolA.mRGBa) + .withStateAndTemperature(LIQUID, 432) + .buildAndRegister() + .configureMaterials(Materials.BisphenolA) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.BisphenolA, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("UUAmplifier") - .withLocalizedName("UU Amplifier") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .configureMaterials(Materials.UUAmplifier) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.UUAmplifier, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("UU Amplifier") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .configureMaterials(Materials.UUAmplifier) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.UUAmplifier, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("Chlorine") - .withLocalizedName("Chlorine") - .withStateAndTemperature(GAS, 295) - .buildAndRegister() - .configureMaterials(Materials.Chlorine) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Chlorine, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Chlorine") + .withStateAndTemperature(GAS, 295) + .buildAndRegister() + .configureMaterials(Materials.Chlorine) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Chlorine, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("Mercury") - .withLocalizedName("Mercury") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .configureMaterials(Materials.Mercury) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Mercury, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Mercury") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .configureMaterials(Materials.Mercury) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Mercury, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("NitroFuel") - .withLocalizedName("Cetane-Boosted Diesel") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .configureMaterials(Materials.NitroFuel) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.NitroFuel, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Cetane-Boosted Diesel") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .configureMaterials(Materials.NitroFuel) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.NitroFuel, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("SodiumPersulfate") - .withLocalizedName("Sodium Persulfate") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .configureMaterials(Materials.SodiumPersulfate) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.SodiumPersulfate, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Sodium Persulfate") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .configureMaterials(Materials.SodiumPersulfate) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.SodiumPersulfate, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("Glyceryl") - .withLocalizedName("Glyceryl Trinitrate") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .configureMaterials(Materials.Glyceryl) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Glyceryl, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Glyceryl Trinitrate") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .configureMaterials(Materials.Glyceryl) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Glyceryl, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("lubricant") - .withLocalizedName("Lubricant") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .configureMaterials(Materials.Lubricant) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Lubricant, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Lubricant") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .configureMaterials(Materials.Lubricant) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Lubricant, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("creosote") - .withLocalizedName("Creosote Oil") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .configureMaterials(Materials.Creosote) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Creosote, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Creosote Oil") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .configureMaterials(Materials.Creosote) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Creosote, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("seedoil") - .withLocalizedName("Seed Oil") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .configureMaterials(Materials.SeedOil) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.SeedOil, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Seed Oil") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .configureMaterials(Materials.SeedOil) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.SeedOil, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("fishoil") - .withLocalizedName("Fish Oil") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .configureMaterials(Materials.FishOil) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.FishOil, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Fish Oil") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .configureMaterials(Materials.FishOil) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.FishOil, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("oil") - .withLocalizedName("Oil") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .configureMaterials(Materials.Oil) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Oil, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Oil") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .configureMaterials(Materials.Oil) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Oil, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("fuel") - .withLocalizedName("Diesel") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .configureMaterials(Materials.Fuel) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Fuel, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Diesel") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .configureMaterials(Materials.Fuel) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Fuel, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("for.honey") - .withLocalizedName("Honey") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .configureMaterials(Materials.Honey) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Honey, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Honey") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .configureMaterials(Materials.Honey) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Honey, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("biomass") - .withLocalizedName("Biomass") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .configureMaterials(Materials.Biomass) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Biomass, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Biomass") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .configureMaterials(Materials.Biomass) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Biomass, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("bioethanol") - .withLocalizedName("Bio Ethanol") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .configureMaterials(Materials.Ethanol) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Ethanol, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Bio Ethanol") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .configureMaterials(Materials.Ethanol) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Ethanol, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("sulfuricacid") - .withLocalizedName("Sulfuric Acid") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .configureMaterials(Materials.SulfuricAcid) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.SulfuricAcid, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Sulfuric Acid") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .configureMaterials(Materials.SulfuricAcid) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.SulfuricAcid, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("milk") - .withLocalizedName("Milk") - .withStateAndTemperature(LIQUID, 290) - .buildAndRegister() - .configureMaterials(Materials.Milk) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Milk, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Milk") + .withStateAndTemperature(LIQUID, 290) + .buildAndRegister() + .configureMaterials(Materials.Milk) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Milk, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("mcguffium") - .withLocalizedName("Mc Guffium 239") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .configureMaterials(Materials.McGuffium239) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.McGuffium239, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Mc Guffium 239") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .configureMaterials(Materials.McGuffium239) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.McGuffium239, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("refinedGlue") - .withLocalizedName("Refined Glue") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .configureMaterials(Materials.Glue) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Glue, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Refined Glue") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .configureMaterials(Materials.Glue) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Glue, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("hotfryingoil") - .withLocalizedName("Hot Frying Oil") - .withStateAndTemperature(LIQUID, 400) - .buildAndRegister() - .configureMaterials(Materials.FryingOilHot) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.FryingOilHot, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Hot Frying Oil") + .withStateAndTemperature(LIQUID, 400) + .buildAndRegister() + .configureMaterials(Materials.FryingOilHot) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.FryingOilHot, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("DimensionallyTranscendentResidue") - .withLocalizedName("Dimensionally Transcendent Residue") - .withStateAndTemperature(LIQUID, 2000000000) - .buildAndRegister() - .configureMaterials(Materials.DimensionallyTranscendentResidue) - .registerBContainers( - GT_OreDictUnificator.get( - OrePrefixes.cell, - Materials.DimensionallyTranscendentResidue, - 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Dimensionally Transcendent Residue") + .withStateAndTemperature(LIQUID, 2000000000) + .buildAndRegister() + .configureMaterials(Materials.DimensionallyTranscendentResidue) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.DimensionallyTranscendentResidue, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("ExcitedDTCC") - .withLocalizedName("Excited Dimensionally Transcendent Crude Catalyst") - .withStateAndTemperature(LIQUID, 500000000) - .buildAndRegister() - .configureMaterials(Materials.ExcitedDTCC) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.ExcitedDTCC, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Excited Dimensionally Transcendent Crude Catalyst") + .withStateAndTemperature(LIQUID, 500000000) + .buildAndRegister() + .configureMaterials(Materials.ExcitedDTCC) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.ExcitedDTCC, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("ExcitedDTPC") - .withLocalizedName("Excited Dimensionally Transcendent Prosaic Catalyst") - .withStateAndTemperature(LIQUID, 500000000) - .buildAndRegister() - .configureMaterials(Materials.ExcitedDTPC) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.ExcitedDTPC, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Excited Dimensionally Transcendent Prosaic Catalyst") + .withStateAndTemperature(LIQUID, 500000000) + .buildAndRegister() + .configureMaterials(Materials.ExcitedDTPC) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.ExcitedDTPC, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("ExcitedDTRC") - .withLocalizedName("Excited Dimensionally Transcendent Resplendent Catalyst") - .withStateAndTemperature(LIQUID, 500000000) - .buildAndRegister() - .configureMaterials(Materials.ExcitedDTRC) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.ExcitedDTRC, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Excited Dimensionally Transcendent Resplendent Catalyst") + .withStateAndTemperature(LIQUID, 500000000) + .buildAndRegister() + .configureMaterials(Materials.ExcitedDTRC) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.ExcitedDTRC, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("ExcitedDTEC") - .withLocalizedName("Excited Dimensionally Transcendent Exotic Catalyst") - .withStateAndTemperature(LIQUID, 500000000) - .buildAndRegister() - .configureMaterials(Materials.ExcitedDTEC) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.ExcitedDTEC, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Excited Dimensionally Transcendent Exotic Catalyst") + .withStateAndTemperature(LIQUID, 500000000) + .buildAndRegister() + .configureMaterials(Materials.ExcitedDTEC) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.ExcitedDTEC, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder(Materials.RawStarMatter.mName) - .withLocalizedName(Materials.RawStarMatter.mLocalizedName) - .withStateAndTemperature(LIQUID, 10_000_000) - .buildAndRegister() - .configureMaterials(Materials.RawStarMatter) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.RawStarMatter, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName(Materials.RawStarMatter.mLocalizedName) + .withStateAndTemperature(LIQUID, 10_000_000) + .buildAndRegister() + .configureMaterials(Materials.RawStarMatter) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.RawStarMatter, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder(Materials.Space.mName) - .withLocalizedName(Materials.Space.mLocalizedName) - .withStateAndTemperature(MOLTEN, 0) - .buildAndRegister() - .configureMaterials(Materials.Space) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Space, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName(Materials.Space.mLocalizedName) + .withStateAndTemperature(MOLTEN, 0) + .buildAndRegister() + .configureMaterials(Materials.Space) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Space, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder(Materials.Time.mName) - .withLocalizedName(Materials.Time.mLocalizedName) - .withStateAndTemperature(MOLTEN, 0) - .buildAndRegister() - .configureMaterials(Materials.Time) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Time, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName(Materials.Time.mLocalizedName) + .withStateAndTemperature(MOLTEN, 0) + .buildAndRegister() + .configureMaterials(Materials.Time) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Time, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("fieryblood") - .withLocalizedName("Fiery Blood") - .withStateAndTemperature(LIQUID, 6400) - .buildAndRegister() - .configureMaterials(Materials.FierySteel) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.FierySteel, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Fiery Blood") + .withStateAndTemperature(LIQUID, 6400) + .buildAndRegister() + .configureMaterials(Materials.FierySteel) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.FierySteel, 1L), + ItemList.Cell_Empty.get(1L)); GT_FluidFactory.builder("holywater") - .withLocalizedName("Holy Water") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .configureMaterials(Materials.HolyWater) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.HolyWater, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Holy Water") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .configureMaterials(Materials.HolyWater) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.HolyWater, 1L), + ItemList.Cell_Empty.get(1L)); if (ItemList.TF_Vial_FieryBlood.get(1L) != null) { FluidContainerRegistry.registerFluidContainer( - new FluidContainerRegistry.FluidContainerData( - Materials.FierySteel.getFluid(250L), - ItemList.TF_Vial_FieryBlood.get(1L), - ItemList.Bottle_Empty.get(1L))); + new FluidContainerRegistry.FluidContainerData( + Materials.FierySteel.getFluid(250L), + ItemList.TF_Vial_FieryBlood.get(1L), + ItemList.Bottle_Empty.get(1L))); GT_FluidFactory.builder("liquid_sodium") - .withLocalizedName("Liquid Sodium") - .withStateAndTemperature(LIQUID, 495) - .buildAndRegister() - .configureMaterials(Materials.Sodium) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Sodium, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Liquid Sodium") + .withStateAndTemperature(LIQUID, 495) + .buildAndRegister() + .configureMaterials(Materials.Sodium) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Sodium, 1L), + ItemList.Cell_Empty.get(1L)); } FluidContainerRegistry.registerFluidContainer( - new FluidContainerRegistry.FluidContainerData( - Materials.Milk.getFluid(1000L), - GT_OreDictUnificator.get(OrePrefixes.bucket, Materials.Milk, 1L), - GT_OreDictUnificator.get(OrePrefixes.bucket, Materials.Empty, 1L))); + new FluidContainerRegistry.FluidContainerData( + Materials.Milk.getFluid(1000L), + GT_OreDictUnificator.get(OrePrefixes.bucket, Materials.Milk, 1L), + GT_OreDictUnificator.get(OrePrefixes.bucket, Materials.Empty, 1L))); FluidContainerRegistry.registerFluidContainer( - new FluidContainerRegistry.FluidContainerData( - Materials.Milk.getFluid(250L), - ItemList.Bottle_Milk.get(1L), - ItemList.Bottle_Empty.get(1L))); + new FluidContainerRegistry.FluidContainerData( + Materials.Milk.getFluid(250L), + ItemList.Bottle_Milk.get(1L), + ItemList.Bottle_Empty.get(1L))); FluidContainerRegistry.registerFluidContainer( - new FluidContainerRegistry.FluidContainerData( - Materials.HolyWater.getFluid(250L), - ItemList.Bottle_Holy_Water.get(1L), - ItemList.Bottle_Empty.get(1L))); + new FluidContainerRegistry.FluidContainerData( + Materials.HolyWater.getFluid(250L), + ItemList.Bottle_Holy_Water.get(1L), + ItemList.Bottle_Empty.get(1L))); FluidContainerRegistry.registerFluidContainer( - new FluidContainerRegistry.FluidContainerData( - Materials.McGuffium239.getFluid(250L), - ItemList.McGuffium_239.get(1L), - ItemList.Bottle_Empty.get(1L))); + new FluidContainerRegistry.FluidContainerData( + Materials.McGuffium239.getFluid(250L), + ItemList.McGuffium_239.get(1L), + ItemList.Bottle_Empty.get(1L))); FluidContainerRegistry.registerFluidContainer( - new FluidContainerRegistry.FluidContainerData( - Materials.Fuel.getFluid(100L), - ItemList.Tool_Lighter_Invar_Full.get(1L), - ItemList.Tool_Lighter_Invar_Empty.get(1L))); + new FluidContainerRegistry.FluidContainerData( + Materials.Fuel.getFluid(100L), + ItemList.Tool_Lighter_Invar_Full.get(1L), + ItemList.Tool_Lighter_Invar_Empty.get(1L))); FluidContainerRegistry.registerFluidContainer( - new FluidContainerRegistry.FluidContainerData( - Materials.Fuel.getFluid(1000L), - ItemList.Tool_Lighter_Platinum_Full.get(1L), - ItemList.Tool_Lighter_Platinum_Empty.get(1L))); + new FluidContainerRegistry.FluidContainerData( + Materials.Fuel.getFluid(1000L), + ItemList.Tool_Lighter_Platinum_Full.get(1L), + ItemList.Tool_Lighter_Platinum_Empty.get(1L))); Dyes.dyeBlack.addFluidDye(GT_FluidFactory.of("squidink", "Squid Ink", LIQUID, 295)); Dyes.dyeBlue.addFluidDye(GT_FluidFactory.of("indigo", "Indigo Dye", LIQUID, 295)); @@ -1277,80 +1256,77 @@ public class GT_Loader_Item_Block_And_Fluid implements Runnable { Dyes tDye = Dyes.VALUES[i]; Fluid tFluid; tDye.addFluidDye( - GT_FluidFactory.builder( - "dye.watermixed." + tDye.name() - .toLowerCase(Locale.ENGLISH)) - .withTextureName("dyes") - .withLocalizedName("Water Mixed " + tDye.mName + " Dye") - .withColorRGBA(tDye.getRGBA()) - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .asFluid()); + GT_FluidFactory.builder( + "dye.watermixed." + tDye.name() + .toLowerCase(Locale.ENGLISH)) + .withTextureName("dyes") + .withLocalizedName("Water Mixed " + tDye.mName + " Dye") + .withColorRGBA(tDye.getRGBA()) + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .asFluid()); tDye.addFluidDye( - GT_FluidFactory.builder( - "dye.chemical." + tDye.name() - .toLowerCase(Locale.ENGLISH)) - .withTextureName("dyes") - .withLocalizedName("Chemical " + tDye.mName + " Dye") - .withColorRGBA(tDye.getRGBA()) - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerContainers( - ItemList.SPRAY_CAN_DYES[i].get(1L), - ItemList.Spray_Empty.get(1L), - 2304) - .asFluid()); + GT_FluidFactory.builder( + "dye.chemical." + tDye.name() + .toLowerCase(Locale.ENGLISH)) + .withTextureName("dyes") + .withLocalizedName("Chemical " + tDye.mName + " Dye") + .withColorRGBA(tDye.getRGBA()) + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerContainers(ItemList.SPRAY_CAN_DYES[i].get(1L), ItemList.Spray_Empty.get(1L), 2304) + .asFluid()); } GT_FluidFactory.builder("ice") - .withLocalizedName("Crushed Ice") - .withStateAndTemperature(SLURRY, 270) - .buildAndRegister() - .configureMaterials(Materials.Ice) - .registerBContainers( - GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Ice, 1L), - ItemList.Cell_Empty.get(1L)); + .withLocalizedName("Crushed Ice") + .withStateAndTemperature(SLURRY, 270) + .buildAndRegister() + .configureMaterials(Materials.Ice) + .registerBContainers( + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Ice, 1L), + ItemList.Cell_Empty.get(1L)); Materials.Water.mSolid = Materials.Ice.mSolid; GT_FluidFactory.builder("molten.glass") - .withLocalizedName("Molten Glass") - .withStateAndTemperature(MOLTEN, 1500) - .buildAndRegister() - .configureMaterials(Materials.Glass) - .registerContainers( - GT_OreDictUnificator.get(OrePrefixes.cellMolten, Materials.Glass, 1L), - ItemList.Cell_Empty.get(1L), - 144); + .withLocalizedName("Molten Glass") + .withStateAndTemperature(MOLTEN, 1500) + .buildAndRegister() + .configureMaterials(Materials.Glass) + .registerContainers( + GT_OreDictUnificator.get(OrePrefixes.cellMolten, Materials.Glass, 1L), + ItemList.Cell_Empty.get(1L), + 144); GT_FluidFactory.builder("molten.redstone") - .withLocalizedName("Molten Redstone") - .withStateAndTemperature(MOLTEN, 500) - .buildAndRegister() - .configureMaterials(Materials.Redstone) - .registerContainers( - GT_OreDictUnificator.get(OrePrefixes.cellMolten, Materials.Redstone, 1L), - ItemList.Cell_Empty.get(1L), - 144); + .withLocalizedName("Molten Redstone") + .withStateAndTemperature(MOLTEN, 500) + .buildAndRegister() + .configureMaterials(Materials.Redstone) + .registerContainers( + GT_OreDictUnificator.get(OrePrefixes.cellMolten, Materials.Redstone, 1L), + ItemList.Cell_Empty.get(1L), + 144); GT_FluidFactory.builder("molten.blaze") - .withLocalizedName("Molten Blaze") - .withStateAndTemperature(MOLTEN, 6400) - .buildAndRegister() - .configureMaterials(Materials.Blaze) - .registerContainers( - GT_OreDictUnificator.get(OrePrefixes.cellMolten, Materials.Blaze, 1L), - ItemList.Cell_Empty.get(1L), - 144); + .withLocalizedName("Molten Blaze") + .withStateAndTemperature(MOLTEN, 6400) + .buildAndRegister() + .configureMaterials(Materials.Blaze) + .registerContainers( + GT_OreDictUnificator.get(OrePrefixes.cellMolten, Materials.Blaze, 1L), + ItemList.Cell_Empty.get(1L), + 144); GT_FluidFactory.builder("wet.concrete") - .withLocalizedName("Wet Concrete") - .withStateAndTemperature(MOLTEN, 300) - .buildAndRegister() - .configureMaterials(Materials.Concrete) - .registerContainers( - GT_OreDictUnificator.get(OrePrefixes.cellMolten, Materials.Concrete, 1L), - ItemList.Cell_Empty.get(1L), - 144); + .withLocalizedName("Wet Concrete") + .withStateAndTemperature(MOLTEN, 300) + .buildAndRegister() + .configureMaterials(Materials.Concrete) + .registerContainers( + GT_OreDictUnificator.get(OrePrefixes.cellMolten, Materials.Concrete, 1L), + ItemList.Cell_Empty.get(1L), + 144); for (Materials tMaterial : Materials.values()) { if ((tMaterial.mStandardMoltenFluid == null) && (tMaterial.contains(SubTag.SMELTING_TO_FLUID)) - && (!tMaterial.contains(SubTag.NO_SMELTING))) { + && (!tMaterial.contains(SubTag.NO_SMELTING))) { GT_Mod.gregtechproxy.addAutogeneratedMoltenFluid(tMaterial); if ((tMaterial.mSmeltInto != tMaterial) && (tMaterial.mSmeltInto.mStandardMoltenFluid == null)) { GT_Mod.gregtechproxy.addAutogeneratedMoltenFluid(tMaterial.mSmeltInto); @@ -1372,676 +1348,662 @@ public class GT_Loader_Item_Block_And_Fluid implements Runnable { } GT_FluidFactory.builder("potion.awkward") - .withLocalizedName("Awkward Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 16), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Awkward Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 16), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.thick") - .withLocalizedName("Thick Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 32), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Thick Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 32), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.mundane") - .withLocalizedName("Mundane Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 64), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Mundane Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 64), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.damage") - .withLocalizedName("Harming Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 8204), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Harming Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 8204), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.damage.strong") - .withLocalizedName("Strong Harming Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 8236), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Strong Harming Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 8236), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.damage.splash") - .withLocalizedName("Splash Harming Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 16396), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Splash Harming Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 16396), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.damage.strong.splash") - .withLocalizedName("Strong Splash Harming Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 16428), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Strong Splash Harming Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 16428), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.health") - .withLocalizedName("Healing Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 8197), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Healing Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 8197), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.health.strong") - .withLocalizedName("Strong Healing Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 8229), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Strong Healing Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 8229), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.health.splash") - .withLocalizedName("Splash Healing Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 16389), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Splash Healing Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 16389), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.health.strong.splash") - .withLocalizedName("Strong Splash Healing Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 16421), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Strong Splash Healing Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 16421), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.speed") - .withLocalizedName("Swiftness Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 8194), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Swiftness Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 8194), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.speed.strong") - .withLocalizedName("Strong Swiftness Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 8226), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Strong Swiftness Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 8226), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.speed.long") - .withLocalizedName("Stretched Swiftness Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 8258), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Stretched Swiftness Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 8258), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.speed.splash") - .withLocalizedName("Splash Swiftness Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 16386), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Splash Swiftness Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 16386), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.speed.strong.splash") - .withLocalizedName("Strong Splash Swiftness Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 16418), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Strong Splash Swiftness Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 16418), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.speed.long.splash") - .withLocalizedName("Stretched Splash Swiftness Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 16450), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Stretched Splash Swiftness Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 16450), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.strength") - .withLocalizedName("Strength Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 8201), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Strength Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 8201), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.strength.strong") - .withLocalizedName("Strong Strength Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 8233), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Strong Strength Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 8233), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.strength.long") - .withLocalizedName("Stretched Strength Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 8265), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Stretched Strength Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 8265), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.strength.splash") - .withLocalizedName("Splash Strength Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 16393), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Splash Strength Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 16393), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.strength.strong.splash") - .withLocalizedName("Strong Splash Strength Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 16425), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Strong Splash Strength Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 16425), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.strength.long.splash") - .withLocalizedName("Stretched Splash Strength Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 16457), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Stretched Splash Strength Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 16457), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.regen") - .withLocalizedName("Regenerating Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 8193), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Regenerating Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 8193), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.regen.strong") - .withLocalizedName("Strong Regenerating Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 8225), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Strong Regenerating Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 8225), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.regen.long") - .withLocalizedName("Stretched Regenerating Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 8257), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Stretched Regenerating Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 8257), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.regen.splash") - .withLocalizedName("Splash Regenerating Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 16385), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Splash Regenerating Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 16385), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.regen.strong.splash") - .withLocalizedName("Strong Splash Regenerating Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 16417), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Strong Splash Regenerating Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 16417), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.regen.long.splash") - .withLocalizedName("Stretched Splash Regenerating Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 16449), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Stretched Splash Regenerating Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 16449), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.poison") - .withLocalizedName("Poisonous Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 8196), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Poisonous Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 8196), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.poison.strong") - .withLocalizedName("Strong Poisonous Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 8228), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Strong Poisonous Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 8228), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.poison.long") - .withLocalizedName("Stretched Poisonous Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 8260), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Stretched Poisonous Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 8260), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.poison.splash") - .withLocalizedName("Splash Poisonous Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 16388), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Splash Poisonous Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 16388), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.poison.strong.splash") - .withLocalizedName("Strong Splash Poisonous Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 16420), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Strong Splash Poisonous Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 16420), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.poison.long.splash") - .withLocalizedName("Stretched Splash Poisonous Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 16452), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Stretched Splash Poisonous Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 16452), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.fireresistance") - .withLocalizedName("Fire Resistant Brew") - .withStateAndTemperature(LIQUID, 375) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 8195), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Fire Resistant Brew") + .withStateAndTemperature(LIQUID, 375) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 8195), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.fireresistance.long") - .withLocalizedName("Stretched Fire Resistant Brew") - .withStateAndTemperature(LIQUID, 375) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 8259), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Stretched Fire Resistant Brew") + .withStateAndTemperature(LIQUID, 375) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 8259), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.fireresistance.splash") - .withLocalizedName("Splash Fire Resistant Brew") - .withStateAndTemperature(LIQUID, 375) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 16387), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Splash Fire Resistant Brew") + .withStateAndTemperature(LIQUID, 375) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 16387), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.fireresistance.long.splash") - .withLocalizedName("Stretched Splash Fire Resistant Brew") - .withStateAndTemperature(LIQUID, 375) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 16451), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Stretched Splash Fire Resistant Brew") + .withStateAndTemperature(LIQUID, 375) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 16451), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.nightvision") - .withLocalizedName("Night Vision Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 8198), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Night Vision Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 8198), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.nightvision.long") - .withLocalizedName("Stretched Night Vision Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 8262), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Stretched Night Vision Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 8262), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.nightvision.splash") - .withLocalizedName("Splash Night Vision Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 16390), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Splash Night Vision Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 16390), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.nightvision.long.splash") - .withLocalizedName("Stretched Splash Night Vision Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 16454), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Stretched Splash Night Vision Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 16454), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.weakness") - .withLocalizedName("Weakening Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 8200), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Weakening Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 8200), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.weakness.long") - .withLocalizedName("Stretched Weakening Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 8264), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Stretched Weakening Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 8264), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.weakness.splash") - .withLocalizedName("Splash Weakening Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 16392), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Splash Weakening Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 16392), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.weakness.long.splash") - .withLocalizedName("Stretched Splash Weakening Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 16456), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Stretched Splash Weakening Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 16456), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.slowness") - .withLocalizedName("Lame Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 8202), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Lame Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 8202), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.slowness.long") - .withLocalizedName("Stretched Lame Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 8266), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Stretched Lame Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 8266), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.slowness.splash") - .withLocalizedName("Splash Lame Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 16394), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Splash Lame Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 16394), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.slowness.long.splash") - .withLocalizedName("Stretched Splash Lame Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 16458), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Stretched Splash Lame Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 16458), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.waterbreathing") - .withLocalizedName("Fishy Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 8205), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Fishy Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 8205), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.waterbreathing.long") - .withLocalizedName("Stretched Fishy Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 8269), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Stretched Fishy Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 8269), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.waterbreathing.splash") - .withLocalizedName("Splash Fishy Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 16397), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Splash Fishy Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 16397), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.waterbreathing.long.splash") - .withLocalizedName("Stretched Splash Fishy Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 16461), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Stretched Splash Fishy Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 16461), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.invisibility") - .withLocalizedName("Invisible Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 8206), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Invisible Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 8206), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.invisibility.long") - .withLocalizedName("Stretched Invisible Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 8270), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Stretched Invisible Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 8270), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.invisibility.splash") - .withLocalizedName("Splash Invisible Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 16398), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Splash Invisible Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 16398), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.invisibility.long.splash") - .withLocalizedName("Stretched Splash Invisible Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(new ItemStack(Items.potionitem, 1, 16462), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Stretched Splash Invisible Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(new ItemStack(Items.potionitem, 1, 16462), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.purpledrink") - .withLocalizedName("Purple Drink") - .withStateAndTemperature(LIQUID, 275) - .buildAndRegister() - .registerPContainers(ItemList.Bottle_Purple_Drink.get(1L), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Purple Drink") + .withStateAndTemperature(LIQUID, 275) + .buildAndRegister() + .registerPContainers(ItemList.Bottle_Purple_Drink.get(1L), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.grapejuice") - .withLocalizedName("Grape Juice") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(ItemList.Bottle_Grape_Juice.get(1L), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Grape Juice") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(ItemList.Bottle_Grape_Juice.get(1L), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.wine") - .withLocalizedName("Wine") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(ItemList.Bottle_Wine.get(1L), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Wine") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(ItemList.Bottle_Wine.get(1L), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.vinegar") - .withLocalizedName("Vinegar") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .configureMaterials(Materials.Vinegar) - .registerPContainers(ItemList.Bottle_Vinegar.get(1L), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Vinegar") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .configureMaterials(Materials.Vinegar) + .registerPContainers(ItemList.Bottle_Vinegar.get(1L), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.potatojuice") - .withLocalizedName("Potato Juice") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(ItemList.Bottle_Potato_Juice.get(1L), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Potato Juice") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(ItemList.Bottle_Potato_Juice.get(1L), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.vodka") - .withLocalizedName("Vodka") - .withStateAndTemperature(LIQUID, 275) - .buildAndRegister() - .registerPContainers(ItemList.Bottle_Vodka.get(1L), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Vodka") + .withStateAndTemperature(LIQUID, 275) + .buildAndRegister() + .registerPContainers(ItemList.Bottle_Vodka.get(1L), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.leninade") - .withLocalizedName("Leninade") - .withStateAndTemperature(LIQUID, 275) - .buildAndRegister() - .registerPContainers(ItemList.Bottle_Leninade.get(1L), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Leninade") + .withStateAndTemperature(LIQUID, 275) + .buildAndRegister() + .registerPContainers(ItemList.Bottle_Leninade.get(1L), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.mineralwater") - .withLocalizedName("Mineral Water") - .withStateAndTemperature(LIQUID, 275) - .buildAndRegister() - .registerPContainers(ItemList.Bottle_Mineral_Water.get(1L), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Mineral Water") + .withStateAndTemperature(LIQUID, 275) + .buildAndRegister() + .registerPContainers(ItemList.Bottle_Mineral_Water.get(1L), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.saltywater") - .withLocalizedName("Salty Water") - .withStateAndTemperature(LIQUID, 275) - .buildAndRegister() - .registerPContainers(ItemList.Bottle_Salty_Water.get(1L), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Salty Water") + .withStateAndTemperature(LIQUID, 275) + .buildAndRegister() + .registerPContainers(ItemList.Bottle_Salty_Water.get(1L), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.reedwater") - .withLocalizedName("Reed Water") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(ItemList.Bottle_Reed_Water.get(1L), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Reed Water") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(ItemList.Bottle_Reed_Water.get(1L), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.rum") - .withLocalizedName("Rum") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(ItemList.Bottle_Rum.get(1L), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Rum") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(ItemList.Bottle_Rum.get(1L), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.piratebrew") - .withLocalizedName("Pirate Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(ItemList.Bottle_Pirate_Brew.get(1L), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Pirate Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(ItemList.Bottle_Pirate_Brew.get(1L), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.hopsjuice") - .withLocalizedName("Hops Juice") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(ItemList.Bottle_Hops_Juice.get(1L), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Hops Juice") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(ItemList.Bottle_Hops_Juice.get(1L), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.darkbeer") - .withLocalizedName("Dark Beer") - .withStateAndTemperature(LIQUID, 275) - .buildAndRegister() - .registerPContainers(ItemList.Bottle_Dark_Beer.get(1L), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Dark Beer") + .withStateAndTemperature(LIQUID, 275) + .buildAndRegister() + .registerPContainers(ItemList.Bottle_Dark_Beer.get(1L), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.dragonblood") - .withLocalizedName("Dragon Blood") - .withStateAndTemperature(LIQUID, 375) - .buildAndRegister() - .registerPContainers(ItemList.Bottle_Dragon_Blood.get(1L), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Dragon Blood") + .withStateAndTemperature(LIQUID, 375) + .buildAndRegister() + .registerPContainers(ItemList.Bottle_Dragon_Blood.get(1L), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.wheatyjuice") - .withLocalizedName("Wheaty Juice") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(ItemList.Bottle_Wheaty_Juice.get(1L), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Wheaty Juice") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(ItemList.Bottle_Wheaty_Juice.get(1L), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.scotch") - .withLocalizedName("Scotch") - .withStateAndTemperature(LIQUID, 275) - .buildAndRegister() - .registerPContainers(ItemList.Bottle_Scotch.get(1L), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Scotch") + .withStateAndTemperature(LIQUID, 275) + .buildAndRegister() + .registerPContainers(ItemList.Bottle_Scotch.get(1L), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.glenmckenner") - .withLocalizedName("Glen McKenner") - .withStateAndTemperature(LIQUID, 275) - .buildAndRegister() - .registerPContainers(ItemList.Bottle_Glen_McKenner.get(1L), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Glen McKenner") + .withStateAndTemperature(LIQUID, 275) + .buildAndRegister() + .registerPContainers(ItemList.Bottle_Glen_McKenner.get(1L), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.wheatyhopsjuice") - .withLocalizedName("Wheaty Hops Juice") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(ItemList.Bottle_Wheaty_Hops_Juice.get(1L), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Wheaty Hops Juice") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(ItemList.Bottle_Wheaty_Hops_Juice.get(1L), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.beer") - .withLocalizedName("Beer") - .withStateAndTemperature(LIQUID, 275) - .buildAndRegister() - .registerPContainers(ItemList.Bottle_Beer.get(1L), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Beer") + .withStateAndTemperature(LIQUID, 275) + .buildAndRegister() + .registerPContainers(ItemList.Bottle_Beer.get(1L), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.chillysauce") - .withLocalizedName("Chilly Sauce") - .withStateAndTemperature(LIQUID, 375) - .buildAndRegister() - .registerPContainers(ItemList.Bottle_Chilly_Sauce.get(1L), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Chilly Sauce") + .withStateAndTemperature(LIQUID, 375) + .buildAndRegister() + .registerPContainers(ItemList.Bottle_Chilly_Sauce.get(1L), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.hotsauce") - .withLocalizedName("Hot Sauce") - .withStateAndTemperature(LIQUID, 380) - .buildAndRegister() - .registerPContainers(ItemList.Bottle_Hot_Sauce.get(1L), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Hot Sauce") + .withStateAndTemperature(LIQUID, 380) + .buildAndRegister() + .registerPContainers(ItemList.Bottle_Hot_Sauce.get(1L), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.diabolosauce") - .withLocalizedName("Diabolo Sauce") - .withStateAndTemperature(LIQUID, 385) - .buildAndRegister() - .registerPContainers(ItemList.Bottle_Diabolo_Sauce.get(1L), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Diabolo Sauce") + .withStateAndTemperature(LIQUID, 385) + .buildAndRegister() + .registerPContainers(ItemList.Bottle_Diabolo_Sauce.get(1L), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.diablosauce") - .withLocalizedName("Diablo Sauce") - .withStateAndTemperature(LIQUID, 390) - .buildAndRegister() - .registerPContainers(ItemList.Bottle_Diablo_Sauce.get(1L), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Diablo Sauce") + .withStateAndTemperature(LIQUID, 390) + .buildAndRegister() + .registerPContainers(ItemList.Bottle_Diablo_Sauce.get(1L), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.diablosauce.strong") - .withLocalizedName("Old Man Snitches glitched Diablo Sauce") - .withStateAndTemperature(LIQUID, 999) - .buildAndRegister() - .registerPContainers( - ItemList.Bottle_Snitches_Glitch_Sauce.get(1L), - ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Old Man Snitches glitched Diablo Sauce") + .withStateAndTemperature(LIQUID, 999) + .buildAndRegister() + .registerPContainers(ItemList.Bottle_Snitches_Glitch_Sauce.get(1L), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.applejuice") - .withLocalizedName("Apple Juice") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(ItemList.Bottle_Apple_Juice.get(1L), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Apple Juice") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(ItemList.Bottle_Apple_Juice.get(1L), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.cider") - .withLocalizedName("Cider") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(ItemList.Bottle_Cider.get(1L), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Cider") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(ItemList.Bottle_Cider.get(1L), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.goldenapplejuice") - .withLocalizedName("Golden Apple Juice") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(ItemList.Bottle_Golden_Apple_Juice.get(1L), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Golden Apple Juice") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(ItemList.Bottle_Golden_Apple_Juice.get(1L), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.goldencider") - .withLocalizedName("Golden Cider") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(ItemList.Bottle_Golden_Cider.get(1L), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Golden Cider") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(ItemList.Bottle_Golden_Cider.get(1L), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.idunsapplejuice") - .withLocalizedName("Idun's Apple Juice") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(ItemList.Bottle_Iduns_Apple_Juice.get(1L), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Idun's Apple Juice") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(ItemList.Bottle_Iduns_Apple_Juice.get(1L), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.notchesbrew") - .withLocalizedName("Notches Brew") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(ItemList.Bottle_Notches_Brew.get(1L), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Notches Brew") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(ItemList.Bottle_Notches_Brew.get(1L), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.lemonjuice") - .withLocalizedName("Lemon Juice") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(ItemList.Bottle_Lemon_Juice.get(1L), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Lemon Juice") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(ItemList.Bottle_Lemon_Juice.get(1L), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.limoncello") - .withLocalizedName("Limoncello") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(ItemList.Bottle_Limoncello.get(1L), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Limoncello") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(ItemList.Bottle_Limoncello.get(1L), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.lemonade") - .withLocalizedName("Lemonade") - .withStateAndTemperature(LIQUID, 275) - .buildAndRegister() - .registerPContainers(ItemList.Bottle_Lemonade.get(1L), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Lemonade") + .withStateAndTemperature(LIQUID, 275) + .buildAndRegister() + .registerPContainers(ItemList.Bottle_Lemonade.get(1L), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.alcopops") - .withLocalizedName("Alcopops") - .withStateAndTemperature(LIQUID, 275) - .buildAndRegister() - .registerPContainers(ItemList.Bottle_Alcopops.get(1L), ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Alcopops") + .withStateAndTemperature(LIQUID, 275) + .buildAndRegister() + .registerPContainers(ItemList.Bottle_Alcopops.get(1L), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.cavejohnsonsgrenadejuice") - .withLocalizedName("Cave Johnsons Grenade Juice") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers( - ItemList.Bottle_Cave_Johnsons_Grenade_Juice.get(1L), - ItemList.Bottle_Empty.get(1L)); + .withLocalizedName("Cave Johnsons Grenade Juice") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(ItemList.Bottle_Cave_Johnsons_Grenade_Juice.get(1L), ItemList.Bottle_Empty.get(1L)); GT_FluidFactory.builder("potion.darkcoffee") - .withLocalizedName("Dark Coffee") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(ItemList.ThermosCan_Dark_Coffee.get(1L), ItemList.ThermosCan_Empty.get(1L)); + .withLocalizedName("Dark Coffee") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(ItemList.ThermosCan_Dark_Coffee.get(1L), ItemList.ThermosCan_Empty.get(1L)); GT_FluidFactory.builder("potion.darkcafeaulait") - .withLocalizedName("Dark Cafe au lait") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers( - ItemList.ThermosCan_Dark_Cafe_au_lait.get(1L), - ItemList.ThermosCan_Empty.get(1L)); + .withLocalizedName("Dark Cafe au lait") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(ItemList.ThermosCan_Dark_Cafe_au_lait.get(1L), ItemList.ThermosCan_Empty.get(1L)); GT_FluidFactory.builder("potion.coffee") - .withLocalizedName("Coffee") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(ItemList.ThermosCan_Coffee.get(1L), ItemList.ThermosCan_Empty.get(1L)); + .withLocalizedName("Coffee") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(ItemList.ThermosCan_Coffee.get(1L), ItemList.ThermosCan_Empty.get(1L)); GT_FluidFactory.builder("potion.cafeaulait") - .withLocalizedName("Cafe au lait") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers( - ItemList.ThermosCan_Cafe_au_lait.get(1L), - ItemList.ThermosCan_Empty.get(1L)); + .withLocalizedName("Cafe au lait") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(ItemList.ThermosCan_Cafe_au_lait.get(1L), ItemList.ThermosCan_Empty.get(1L)); GT_FluidFactory.builder("potion.laitaucafe") - .withLocalizedName("Lait au cafe") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers( - ItemList.ThermosCan_Lait_au_cafe.get(1L), - ItemList.ThermosCan_Empty.get(1L)); + .withLocalizedName("Lait au cafe") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(ItemList.ThermosCan_Lait_au_cafe.get(1L), ItemList.ThermosCan_Empty.get(1L)); GT_FluidFactory.builder("potion.darkchocolatemilk") - .withLocalizedName("Bitter Chocolate Milk") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers( - ItemList.ThermosCan_Dark_Chocolate_Milk.get(1L), - ItemList.ThermosCan_Empty.get(1L)); + .withLocalizedName("Bitter Chocolate Milk") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(ItemList.ThermosCan_Dark_Chocolate_Milk.get(1L), ItemList.ThermosCan_Empty.get(1L)); GT_FluidFactory.builder("potion.chocolatemilk") - .withLocalizedName("Chocolate Milk") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers( - ItemList.ThermosCan_Chocolate_Milk.get(1L), - ItemList.ThermosCan_Empty.get(1L)); + .withLocalizedName("Chocolate Milk") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(ItemList.ThermosCan_Chocolate_Milk.get(1L), ItemList.ThermosCan_Empty.get(1L)); GT_FluidFactory.builder("potion.tea") - .withLocalizedName("Tea") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(ItemList.ThermosCan_Tea.get(1L), ItemList.ThermosCan_Empty.get(1L)); + .withLocalizedName("Tea") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(ItemList.ThermosCan_Tea.get(1L), ItemList.ThermosCan_Empty.get(1L)); GT_FluidFactory.builder("potion.sweettea") - .withLocalizedName("Sweet Tea") - .withStateAndTemperature(LIQUID, 295) - .buildAndRegister() - .registerPContainers(ItemList.ThermosCan_Sweet_Tea.get(1L), ItemList.ThermosCan_Empty.get(1L)); + .withLocalizedName("Sweet Tea") + .withStateAndTemperature(LIQUID, 295) + .buildAndRegister() + .registerPContainers(ItemList.ThermosCan_Sweet_Tea.get(1L), ItemList.ThermosCan_Empty.get(1L)); GT_FluidFactory.builder("potion.icetea") - .withLocalizedName("Ice Tea") - .withStateAndTemperature(LIQUID, 255) - .buildAndRegister() - .registerPContainers(ItemList.ThermosCan_Ice_Tea.get(1L), ItemList.ThermosCan_Empty.get(1L)); + .withLocalizedName("Ice Tea") + .withStateAndTemperature(LIQUID, 255) + .buildAndRegister() + .registerPContainers(ItemList.ThermosCan_Ice_Tea.get(1L), ItemList.ThermosCan_Empty.get(1L)); FluidContainerRegistry.registerFluidContainer( - new FluidContainerRegistry.FluidContainerData( - FluidRegistry.getFluidStack("potion.poison.strong", 750), - ItemList.IC2_Spray_WeedEx.get(1L), - ItemList.Spray_Empty.get(1L))); + new FluidContainerRegistry.FluidContainerData( + FluidRegistry.getFluidStack("potion.poison.strong", 750), + ItemList.IC2_Spray_WeedEx.get(1L), + ItemList.Spray_Empty.get(1L))); FluidContainerRegistry.registerFluidContainer( - new FluidContainerRegistry.FluidContainerData( - FluidRegistry.getFluidStack("potion.poison", 125), - ItemList.Arrow_Head_Glass_Poison.get(1L), - ItemList.Arrow_Head_Glass_Emtpy.get(1L))); + new FluidContainerRegistry.FluidContainerData( + FluidRegistry.getFluidStack("potion.poison", 125), + ItemList.Arrow_Head_Glass_Poison.get(1L), + ItemList.Arrow_Head_Glass_Emtpy.get(1L))); FluidContainerRegistry.registerFluidContainer( - new FluidContainerRegistry.FluidContainerData( - FluidRegistry.getFluidStack("potion.poison.long", 125), - ItemList.Arrow_Head_Glass_Poison_Long.get(1L), - ItemList.Arrow_Head_Glass_Emtpy.get(1L))); + new FluidContainerRegistry.FluidContainerData( + FluidRegistry.getFluidStack("potion.poison.long", 125), + ItemList.Arrow_Head_Glass_Poison_Long.get(1L), + ItemList.Arrow_Head_Glass_Emtpy.get(1L))); FluidContainerRegistry.registerFluidContainer( - new FluidContainerRegistry.FluidContainerData( - FluidRegistry.getFluidStack("potion.poison.strong", 125), - ItemList.Arrow_Head_Glass_Poison_Strong.get(1L), - ItemList.Arrow_Head_Glass_Emtpy.get(1L))); + new FluidContainerRegistry.FluidContainerData( + FluidRegistry.getFluidStack("potion.poison.strong", 125), + ItemList.Arrow_Head_Glass_Poison_Strong.get(1L), + ItemList.Arrow_Head_Glass_Emtpy.get(1L))); FluidContainerRegistry.registerFluidContainer( - new FluidContainerRegistry.FluidContainerData( - FluidRegistry.getFluidStack("potion.slowness", 125), - ItemList.Arrow_Head_Glass_Slowness.get(1L), - ItemList.Arrow_Head_Glass_Emtpy.get(1L))); + new FluidContainerRegistry.FluidContainerData( + FluidRegistry.getFluidStack("potion.slowness", 125), + ItemList.Arrow_Head_Glass_Slowness.get(1L), + ItemList.Arrow_Head_Glass_Emtpy.get(1L))); FluidContainerRegistry.registerFluidContainer( - new FluidContainerRegistry.FluidContainerData( - FluidRegistry.getFluidStack("potion.slowness.long", 125), - ItemList.Arrow_Head_Glass_Slowness_Long.get(1L), - ItemList.Arrow_Head_Glass_Emtpy.get(1L))); + new FluidContainerRegistry.FluidContainerData( + FluidRegistry.getFluidStack("potion.slowness.long", 125), + ItemList.Arrow_Head_Glass_Slowness_Long.get(1L), + ItemList.Arrow_Head_Glass_Emtpy.get(1L))); FluidContainerRegistry.registerFluidContainer( - new FluidContainerRegistry.FluidContainerData( - FluidRegistry.getFluidStack("potion.weakness", 125), - ItemList.Arrow_Head_Glass_Weakness.get(1L), - ItemList.Arrow_Head_Glass_Emtpy.get(1L))); + new FluidContainerRegistry.FluidContainerData( + FluidRegistry.getFluidStack("potion.weakness", 125), + ItemList.Arrow_Head_Glass_Weakness.get(1L), + ItemList.Arrow_Head_Glass_Emtpy.get(1L))); FluidContainerRegistry.registerFluidContainer( - new FluidContainerRegistry.FluidContainerData( - FluidRegistry.getFluidStack("potion.weakness.long", 125), - ItemList.Arrow_Head_Glass_Weakness_Long.get(1L), - ItemList.Arrow_Head_Glass_Emtpy.get(1L))); + new FluidContainerRegistry.FluidContainerData( + FluidRegistry.getFluidStack("potion.weakness.long", 125), + ItemList.Arrow_Head_Glass_Weakness_Long.get(1L), + ItemList.Arrow_Head_Glass_Emtpy.get(1L))); FluidContainerRegistry.registerFluidContainer( - new FluidContainerRegistry.FluidContainerData( - FluidRegistry.getFluidStack("holywater", 125), - ItemList.Arrow_Head_Glass_Holy_Water.get(1L), - ItemList.Arrow_Head_Glass_Emtpy.get(1L))); + new FluidContainerRegistry.FluidContainerData( + FluidRegistry.getFluidStack("holywater", 125), + ItemList.Arrow_Head_Glass_Holy_Water.get(1L), + ItemList.Arrow_Head_Glass_Emtpy.get(1L))); FluidContainerRegistry.registerFluidContainer( - new FluidContainerRegistry.FluidContainerData( - FluidRegistry.getFluidStack("potion.poison", 125), - ItemList.Arrow_Wooden_Glass_Poison.get(1L), - ItemList.Arrow_Wooden_Glass_Emtpy.get(1L))); + new FluidContainerRegistry.FluidContainerData( + FluidRegistry.getFluidStack("potion.poison", 125), + ItemList.Arrow_Wooden_Glass_Poison.get(1L), + ItemList.Arrow_Wooden_Glass_Emtpy.get(1L))); FluidContainerRegistry.registerFluidContainer( - new FluidContainerRegistry.FluidContainerData( - FluidRegistry.getFluidStack("potion.poison.long", 125), - ItemList.Arrow_Wooden_Glass_Poison_Long.get(1L), - ItemList.Arrow_Wooden_Glass_Emtpy.get(1L))); + new FluidContainerRegistry.FluidContainerData( + FluidRegistry.getFluidStack("potion.poison.long", 125), + ItemList.Arrow_Wooden_Glass_Poison_Long.get(1L), + ItemList.Arrow_Wooden_Glass_Emtpy.get(1L))); FluidContainerRegistry.registerFluidContainer( - new FluidContainerRegistry.FluidContainerData( - FluidRegistry.getFluidStack("potion.poison.strong", 125), - ItemList.Arrow_Wooden_Glass_Poison_Strong.get(1L), - ItemList.Arrow_Wooden_Glass_Emtpy.get(1L))); + new FluidContainerRegistry.FluidContainerData( + FluidRegistry.getFluidStack("potion.poison.strong", 125), + ItemList.Arrow_Wooden_Glass_Poison_Strong.get(1L), + ItemList.Arrow_Wooden_Glass_Emtpy.get(1L))); FluidContainerRegistry.registerFluidContainer( - new FluidContainerRegistry.FluidContainerData( - FluidRegistry.getFluidStack("potion.slowness", 125), - ItemList.Arrow_Wooden_Glass_Slowness.get(1L), - ItemList.Arrow_Wooden_Glass_Emtpy.get(1L))); + new FluidContainerRegistry.FluidContainerData( + FluidRegistry.getFluidStack("potion.slowness", 125), + ItemList.Arrow_Wooden_Glass_Slowness.get(1L), + ItemList.Arrow_Wooden_Glass_Emtpy.get(1L))); FluidContainerRegistry.registerFluidContainer( - new FluidContainerRegistry.FluidContainerData( - FluidRegistry.getFluidStack("potion.slowness.long", 125), - ItemList.Arrow_Wooden_Glass_Slowness_Long.get(1L), - ItemList.Arrow_Wooden_Glass_Emtpy.get(1L))); + new FluidContainerRegistry.FluidContainerData( + FluidRegistry.getFluidStack("potion.slowness.long", 125), + ItemList.Arrow_Wooden_Glass_Slowness_Long.get(1L), + ItemList.Arrow_Wooden_Glass_Emtpy.get(1L))); FluidContainerRegistry.registerFluidContainer( - new FluidContainerRegistry.FluidContainerData( - FluidRegistry.getFluidStack("potion.weakness", 125), - ItemList.Arrow_Wooden_Glass_Weakness.get(1L), - ItemList.Arrow_Wooden_Glass_Emtpy.get(1L))); + new FluidContainerRegistry.FluidContainerData( + FluidRegistry.getFluidStack("potion.weakness", 125), + ItemList.Arrow_Wooden_Glass_Weakness.get(1L), + ItemList.Arrow_Wooden_Glass_Emtpy.get(1L))); FluidContainerRegistry.registerFluidContainer( - new FluidContainerRegistry.FluidContainerData( - FluidRegistry.getFluidStack("potion.weakness.long", 125), - ItemList.Arrow_Wooden_Glass_Weakness_Long.get(1L), - ItemList.Arrow_Wooden_Glass_Emtpy.get(1L))); + new FluidContainerRegistry.FluidContainerData( + FluidRegistry.getFluidStack("potion.weakness.long", 125), + ItemList.Arrow_Wooden_Glass_Weakness_Long.get(1L), + ItemList.Arrow_Wooden_Glass_Emtpy.get(1L))); FluidContainerRegistry.registerFluidContainer( - new FluidContainerRegistry.FluidContainerData( - FluidRegistry.getFluidStack("holywater", 125), - ItemList.Arrow_Wooden_Glass_Holy_Water.get(1L), - ItemList.Arrow_Wooden_Glass_Emtpy.get(1L))); + new FluidContainerRegistry.FluidContainerData( + FluidRegistry.getFluidStack("holywater", 125), + ItemList.Arrow_Wooden_Glass_Holy_Water.get(1L), + ItemList.Arrow_Wooden_Glass_Emtpy.get(1L))); FluidContainerRegistry.registerFluidContainer( - new FluidContainerRegistry.FluidContainerData( - FluidRegistry.getFluidStack("potion.poison", 125), - ItemList.Arrow_Plastic_Glass_Poison.get(1L), - ItemList.Arrow_Plastic_Glass_Emtpy.get(1L))); + new FluidContainerRegistry.FluidContainerData( + FluidRegistry.getFluidStack("potion.poison", 125), + ItemList.Arrow_Plastic_Glass_Poison.get(1L), + ItemList.Arrow_Plastic_Glass_Emtpy.get(1L))); FluidContainerRegistry.registerFluidContainer( - new FluidContainerRegistry.FluidContainerData( - FluidRegistry.getFluidStack("potion.poison.long", 125), - ItemList.Arrow_Plastic_Glass_Poison_Long.get(1L), - ItemList.Arrow_Plastic_Glass_Emtpy.get(1L))); + new FluidContainerRegistry.FluidContainerData( + FluidRegistry.getFluidStack("potion.poison.long", 125), + ItemList.Arrow_Plastic_Glass_Poison_Long.get(1L), + ItemList.Arrow_Plastic_Glass_Emtpy.get(1L))); FluidContainerRegistry.registerFluidContainer( - new FluidContainerRegistry.FluidContainerData( - FluidRegistry.getFluidStack("potion.poison.strong", 125), - ItemList.Arrow_Plastic_Glass_Poison_Strong.get(1L), - ItemList.Arrow_Plastic_Glass_Emtpy.get(1L))); + new FluidContainerRegistry.FluidContainerData( + FluidRegistry.getFluidStack("potion.poison.strong", 125), + ItemList.Arrow_Plastic_Glass_Poison_Strong.get(1L), + ItemList.Arrow_Plastic_Glass_Emtpy.get(1L))); FluidContainerRegistry.registerFluidContainer( - new FluidContainerRegistry.FluidContainerData( - FluidRegistry.getFluidStack("potion.slowness", 125), - ItemList.Arrow_Plastic_Glass_Slowness.get(1L), - ItemList.Arrow_Plastic_Glass_Emtpy.get(1L))); + new FluidContainerRegistry.FluidContainerData( + FluidRegistry.getFluidStack("potion.slowness", 125), + ItemList.Arrow_Plastic_Glass_Slowness.get(1L), + ItemList.Arrow_Plastic_Glass_Emtpy.get(1L))); FluidContainerRegistry.registerFluidContainer( - new FluidContainerRegistry.FluidContainerData( - FluidRegistry.getFluidStack("potion.slowness.long", 125), - ItemList.Arrow_Plastic_Glass_Slowness_Long.get(1L), - ItemList.Arrow_Plastic_Glass_Emtpy.get(1L))); + new FluidContainerRegistry.FluidContainerData( + FluidRegistry.getFluidStack("potion.slowness.long", 125), + ItemList.Arrow_Plastic_Glass_Slowness_Long.get(1L), + ItemList.Arrow_Plastic_Glass_Emtpy.get(1L))); FluidContainerRegistry.registerFluidContainer( - new FluidContainerRegistry.FluidContainerData( - FluidRegistry.getFluidStack("potion.weakness", 125), - ItemList.Arrow_Plastic_Glass_Weakness.get(1L), - ItemList.Arrow_Plastic_Glass_Emtpy.get(1L))); + new FluidContainerRegistry.FluidContainerData( + FluidRegistry.getFluidStack("potion.weakness", 125), + ItemList.Arrow_Plastic_Glass_Weakness.get(1L), + ItemList.Arrow_Plastic_Glass_Emtpy.get(1L))); FluidContainerRegistry.registerFluidContainer( - new FluidContainerRegistry.FluidContainerData( - FluidRegistry.getFluidStack("potion.weakness.long", 125), - ItemList.Arrow_Plastic_Glass_Weakness_Long.get(1L), - ItemList.Arrow_Plastic_Glass_Emtpy.get(1L))); + new FluidContainerRegistry.FluidContainerData( + FluidRegistry.getFluidStack("potion.weakness.long", 125), + ItemList.Arrow_Plastic_Glass_Weakness_Long.get(1L), + ItemList.Arrow_Plastic_Glass_Emtpy.get(1L))); FluidContainerRegistry.registerFluidContainer( - new FluidContainerRegistry.FluidContainerData( - FluidRegistry.getFluidStack("holywater", 125), - ItemList.Arrow_Plastic_Glass_Holy_Water.get(1L), - ItemList.Arrow_Plastic_Glass_Emtpy.get(1L))); + new FluidContainerRegistry.FluidContainerData( + FluidRegistry.getFluidStack("holywater", 125), + ItemList.Arrow_Plastic_Glass_Holy_Water.get(1L), + ItemList.Arrow_Plastic_Glass_Emtpy.get(1L))); if (!GT_Values.D1) { try { Class.forName("codechicken.nei.api.API"); @@ -2054,185 +2016,144 @@ public class GT_Loader_Item_Block_And_Fluid implements Runnable { } } GT_ModHandler.addPulverisationRecipe( - new ItemStack(Blocks.cobblestone, 1, 32767), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Stone, 1L), - null, - 0, - false); + new ItemStack(Blocks.cobblestone, 1, 32767), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Stone, 1L), + null, + 0, + false); GT_ModHandler.addPulverisationRecipe( - new ItemStack(Blocks.gravel, 1, 32767), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Stone, 1L), - new ItemStack(Items.flint, 1), - 10, - false); + new ItemStack(Blocks.gravel, 1, 32767), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Stone, 1L), + new ItemStack(Items.flint, 1), + 10, + false); GT_ModHandler.addPulverisationRecipe( - new ItemStack(Blocks.furnace, 1, 32767), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Stone, 8L), - null, - 0, - false); + new ItemStack(Blocks.furnace, 1, 32767), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Stone, 8L), + null, + 0, + false); GT_ModHandler.addPulverisationRecipe( - new ItemStack(Blocks.lit_furnace, 1, 32767), - GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Stone, 8L), - null, - 0, - false); + new ItemStack(Blocks.lit_furnace, 1, 32767), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Stone, 8L), + null, + 0, + false); GT_OreDictUnificator.set( - OrePrefixes.ingot, - Materials.FierySteel, - GT_ModHandler.getModItem(TwilightForest.ID, "item.fieryIngot", 1L, 0)); + OrePrefixes.ingot, + Materials.FierySteel, + GT_ModHandler.getModItem(TwilightForest.ID, "item.fieryIngot", 1L, 0)); GT_OreDictUnificator.set( - OrePrefixes.ingot, - Materials.Knightmetal, - GT_ModHandler.getModItem(TwilightForest.ID, "item.knightMetal", 1L, 0)); + OrePrefixes.ingot, + Materials.Knightmetal, + GT_ModHandler.getModItem(TwilightForest.ID, "item.knightMetal", 1L, 0)); GT_OreDictUnificator.set( - OrePrefixes.ingot, - Materials.Steeleaf, - GT_ModHandler.getModItem(TwilightForest.ID, "item.steeleafIngot", 1L, 0)); + OrePrefixes.ingot, + Materials.Steeleaf, + GT_ModHandler.getModItem(TwilightForest.ID, "item.steeleafIngot", 1L, 0)); GT_OreDictUnificator.set( - OrePrefixes.ingot, - Materials.IronWood, - GT_ModHandler.getModItem(TwilightForest.ID, "item.ironwoodIngot", 1L, 0)); + OrePrefixes.ingot, + Materials.IronWood, + GT_ModHandler.getModItem(TwilightForest.ID, "item.ironwoodIngot", 1L, 0)); + GT_OreDictUnificator + .set(OrePrefixes.gem, Materials.InfusedAir, GT_ModHandler.getModItem(Thaumcraft.ID, "ItemShard", 1L, 0)); + GT_OreDictUnificator + .set(OrePrefixes.gem, Materials.InfusedFire, GT_ModHandler.getModItem(Thaumcraft.ID, "ItemShard", 1L, 1)); + GT_OreDictUnificator + .set(OrePrefixes.gem, Materials.InfusedWater, GT_ModHandler.getModItem(Thaumcraft.ID, "ItemShard", 1L, 2)); + GT_OreDictUnificator + .set(OrePrefixes.gem, Materials.InfusedEarth, GT_ModHandler.getModItem(Thaumcraft.ID, "ItemShard", 1L, 3)); + GT_OreDictUnificator + .set(OrePrefixes.gem, Materials.InfusedOrder, GT_ModHandler.getModItem(Thaumcraft.ID, "ItemShard", 1L, 4)); GT_OreDictUnificator.set( - OrePrefixes.gem, - Materials.InfusedAir, - GT_ModHandler.getModItem(Thaumcraft.ID, "ItemShard", 1L, 0)); + OrePrefixes.gem, + Materials.InfusedEntropy, + GT_ModHandler.getModItem(Thaumcraft.ID, "ItemShard", 1L, 5)); + GT_OreDictUnificator + .set(OrePrefixes.nugget, Materials.Mercury, GT_ModHandler.getModItem(Thaumcraft.ID, "ItemNugget", 1L, 5)); + GT_OreDictUnificator + .set(OrePrefixes.nugget, Materials.Thaumium, GT_ModHandler.getModItem(Thaumcraft.ID, "ItemNugget", 1L, 6)); + GT_OreDictUnificator + .set(OrePrefixes.ingot, Materials.Thaumium, GT_ModHandler.getModItem(Thaumcraft.ID, "ItemResource", 1L, 2)); + GT_OreDictUnificator + .set(OrePrefixes.gem, Materials.Mercury, GT_ModHandler.getModItem(Thaumcraft.ID, "ItemResource", 1L, 3)); + GT_OreDictUnificator + .set(OrePrefixes.gem, Materials.Amber, GT_ModHandler.getModItem(Thaumcraft.ID, "ItemResource", 1L, 6)); + GT_OreDictUnificator + .set(OrePrefixes.gem, Materials.Firestone, GT_ModHandler.getModItem(Railcraft.ID, "firestone.raw", 1L)); + + GT_OreDictUnificator + .set(OrePrefixes.nugget, Materials.Void, GT_ModHandler.getModItem(Thaumcraft.ID, "ItemNugget", 1L, 7)); + GT_OreDictUnificator + .set(OrePrefixes.ingot, Materials.Void, GT_ModHandler.getModItem(Thaumcraft.ID, "ItemResource", 1L, 16)); GT_OreDictUnificator.set( - OrePrefixes.gem, - Materials.InfusedFire, - GT_ModHandler.getModItem(Thaumcraft.ID, "ItemShard", 1L, 1)); - GT_OreDictUnificator.set( - OrePrefixes.gem, - Materials.InfusedWater, - GT_ModHandler.getModItem(Thaumcraft.ID, "ItemShard", 1L, 2)); - GT_OreDictUnificator.set( - OrePrefixes.gem, - Materials.InfusedEarth, - GT_ModHandler.getModItem(Thaumcraft.ID, "ItemShard", 1L, 3)); - GT_OreDictUnificator.set( - OrePrefixes.gem, - Materials.InfusedOrder, - GT_ModHandler.getModItem(Thaumcraft.ID, "ItemShard", 1L, 4)); - GT_OreDictUnificator.set( - OrePrefixes.gem, - Materials.InfusedEntropy, - GT_ModHandler.getModItem(Thaumcraft.ID, "ItemShard", 1L, 5)); - GT_OreDictUnificator.set( - OrePrefixes.nugget, - Materials.Mercury, - GT_ModHandler.getModItem(Thaumcraft.ID, "ItemNugget", 1L, 5)); - GT_OreDictUnificator.set( - OrePrefixes.nugget, - Materials.Thaumium, - GT_ModHandler.getModItem(Thaumcraft.ID, "ItemNugget", 1L, 6)); - GT_OreDictUnificator.set( - OrePrefixes.ingot, - Materials.Thaumium, - GT_ModHandler.getModItem(Thaumcraft.ID, "ItemResource", 1L, 2)); - GT_OreDictUnificator.set( - OrePrefixes.gem, - Materials.Mercury, - GT_ModHandler.getModItem(Thaumcraft.ID, "ItemResource", 1L, 3)); - GT_OreDictUnificator.set( - OrePrefixes.gem, - Materials.Amber, - GT_ModHandler.getModItem(Thaumcraft.ID, "ItemResource", 1L, 6)); - GT_OreDictUnificator.set( - OrePrefixes.gem, - Materials.Firestone, - GT_ModHandler.getModItem(Railcraft.ID, "firestone.raw", 1L)); - - GT_OreDictUnificator.set( - OrePrefixes.nugget, - Materials.Void, - GT_ModHandler.getModItem(Thaumcraft.ID, "ItemNugget", 1L, 7)); - GT_OreDictUnificator.set( - OrePrefixes.ingot, - Materials.Void, - GT_ModHandler.getModItem(Thaumcraft.ID, "ItemResource", 1L, 16)); - GT_OreDictUnificator.set( - OrePrefixes.ingot, - Materials.BloodInfusedIron, - GT_ModHandler.getModItem(BloodArsenal.ID, "blood_infused_iron", 1L, 0)); - - if (GregTech_API.sUnification.get( - ConfigCategories.specialunificationtargets + "." + "railcraft", - "plateIron", - true)) { - GT_OreDictUnificator.set( - OrePrefixes.plate, - Materials.Iron, - GT_ModHandler.getModItem(Railcraft.ID, "part.plate", 1L, 0)); + OrePrefixes.ingot, + Materials.BloodInfusedIron, + GT_ModHandler.getModItem(BloodArsenal.ID, "blood_infused_iron", 1L, 0)); + + if (GregTech_API.sUnification + .get(ConfigCategories.specialunificationtargets + "." + "railcraft", "plateIron", true)) { + GT_OreDictUnificator + .set(OrePrefixes.plate, Materials.Iron, GT_ModHandler.getModItem(Railcraft.ID, "part.plate", 1L, 0)); } else { GT_OreDictUnificator.set( - OrePrefixes.plate, - Materials.Iron, - GT_ModHandler.getModItem(Railcraft.ID, "part.plate", 1L, 0), - false, - false); + OrePrefixes.plate, + Materials.Iron, + GT_ModHandler.getModItem(Railcraft.ID, "part.plate", 1L, 0), + false, + false); } - if (GregTech_API.sUnification.get( - ConfigCategories.specialunificationtargets + "." + "railcraft", - "plateSteel", - true)) { - GT_OreDictUnificator.set( - OrePrefixes.plate, - Materials.Steel, - GT_ModHandler.getModItem(Railcraft.ID, "part.plate", 1L, 1)); + if (GregTech_API.sUnification + .get(ConfigCategories.specialunificationtargets + "." + "railcraft", "plateSteel", true)) { + GT_OreDictUnificator + .set(OrePrefixes.plate, Materials.Steel, GT_ModHandler.getModItem(Railcraft.ID, "part.plate", 1L, 1)); } else { GT_OreDictUnificator.set( - OrePrefixes.plate, - Materials.Steel, - GT_ModHandler.getModItem(Railcraft.ID, "part.plate", 1L, 1), - false, - false); + OrePrefixes.plate, + Materials.Steel, + GT_ModHandler.getModItem(Railcraft.ID, "part.plate", 1L, 1), + false, + false); } - if (GregTech_API.sUnification.get( - ConfigCategories.specialunificationtargets + "." + "railcraft", - "plateTinAlloy", - true)) { + if (GregTech_API.sUnification + .get(ConfigCategories.specialunificationtargets + "." + "railcraft", "plateTinAlloy", true)) { GT_OreDictUnificator.set( - OrePrefixes.plate, - Materials.TinAlloy, - GT_ModHandler.getModItem(Railcraft.ID, "part.plate", 1L, 2)); + OrePrefixes.plate, + Materials.TinAlloy, + GT_ModHandler.getModItem(Railcraft.ID, "part.plate", 1L, 2)); } else { GT_OreDictUnificator.set( - OrePrefixes.plate, - Materials.TinAlloy, - GT_ModHandler.getModItem(Railcraft.ID, "part.plate", 1L, 2), - false, - false); + OrePrefixes.plate, + Materials.TinAlloy, + GT_ModHandler.getModItem(Railcraft.ID, "part.plate", 1L, 2), + false, + false); } - if (GregTech_API.sUnification.get( - ConfigCategories.specialunificationtargets + "." + "railcraft", - "plateCopper", - true)) { - GT_OreDictUnificator.set( - OrePrefixes.plate, - Materials.Copper, - GT_ModHandler.getModItem(Railcraft.ID, "part.plate", 1L, 3)); + if (GregTech_API.sUnification + .get(ConfigCategories.specialunificationtargets + "." + "railcraft", "plateCopper", true)) { + GT_OreDictUnificator + .set(OrePrefixes.plate, Materials.Copper, GT_ModHandler.getModItem(Railcraft.ID, "part.plate", 1L, 3)); } else { GT_OreDictUnificator.set( - OrePrefixes.plate, - Materials.Copper, - GT_ModHandler.getModItem(Railcraft.ID, "part.plate", 1L, 3), - false, - false); + OrePrefixes.plate, + Materials.Copper, + GT_ModHandler.getModItem(Railcraft.ID, "part.plate", 1L, 3), + false, + false); } GT_OreDictUnificator.set( - OrePrefixes.dust, - Materials.Cocoa, - GT_ModHandler.getModItem(PamsHarvestCraft.ID, "cocoapowderItem", 1L, 0)); + OrePrefixes.dust, + Materials.Cocoa, + GT_ModHandler.getModItem(PamsHarvestCraft.ID, "cocoapowderItem", 1L, 0)); GT_OreDictUnificator.set(OrePrefixes.dust, Materials.Coffee, ItemList.IC2_CoffeePowder.get(1L)); - GregTech_API.registerMachineBlock( - GT_Utility.getBlockFromStack(GT_ModHandler.getIC2Item("reinforcedGlass", 0)), - 0); + GregTech_API + .registerMachineBlock(GT_Utility.getBlockFromStack(GT_ModHandler.getIC2Item("reinforcedGlass", 0)), 0); GregTech_API.sSolenoidCoilCasings = new GT_Cyclotron_Coils(); } diff --git a/src/main/java/gregtech/loaders/preload/GT_Loader_MetaTileEntities.java b/src/main/java/gregtech/loaders/preload/GT_Loader_MetaTileEntities.java index caaa8f16dd..86069b8327 100644 --- a/src/main/java/gregtech/loaders/preload/GT_Loader_MetaTileEntities.java +++ b/src/main/java/gregtech/loaders/preload/GT_Loader_MetaTileEntities.java @@ -221,498 +221,463 @@ public class GT_Loader_MetaTileEntities implements Runnable { // TODO CHECK CIRC private static final String aTextMotorWire = "EWE"; private static final String aTextWirePump = "WPW"; public static final String imagination = EnumChatFormatting.RESET + "You just need " - + EnumChatFormatting.DARK_PURPLE - + "I" - + EnumChatFormatting.LIGHT_PURPLE - + "m" - + EnumChatFormatting.DARK_RED - + "a" - + EnumChatFormatting.RED - + "g" - + EnumChatFormatting.YELLOW - + "i" - + EnumChatFormatting.GREEN - + "n" - + EnumChatFormatting.AQUA - + "a" - + EnumChatFormatting.DARK_AQUA - + "t" - + EnumChatFormatting.BLUE - + "i" - + EnumChatFormatting.DARK_BLUE - + "o" - + EnumChatFormatting.DARK_PURPLE - + "n" - + EnumChatFormatting.RESET - + " to use this."; + + EnumChatFormatting.DARK_PURPLE + + "I" + + EnumChatFormatting.LIGHT_PURPLE + + "m" + + EnumChatFormatting.DARK_RED + + "a" + + EnumChatFormatting.RED + + "g" + + EnumChatFormatting.YELLOW + + "i" + + EnumChatFormatting.GREEN + + "n" + + EnumChatFormatting.AQUA + + "a" + + EnumChatFormatting.DARK_AQUA + + "t" + + EnumChatFormatting.BLUE + + "i" + + EnumChatFormatting.DARK_BLUE + + "o" + + EnumChatFormatting.DARK_PURPLE + + "n" + + EnumChatFormatting.RESET + + " to use this."; private static final long bits = GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE - | GT_ModHandler.RecipeBits.BUFFERED; + | GT_ModHandler.RecipeBits.BUFFERED; private static final long bitsd = GT_ModHandler.RecipeBits.DISMANTLEABLE | bits; private static void run1() { GT_ModHandler.addCraftingRecipe( - ItemList.Casing_Pipe_Polytetrafluoroethylene.get(1L), - bits, - new Object[] { "PIP", "IFI", "PIP", 'P', OrePrefixes.plate.get(Materials.Polytetrafluoroethylene), 'F', - OrePrefixes.frameGt.get(Materials.Polytetrafluoroethylene), 'I', - OrePrefixes.pipeMedium.get(Materials.Polytetrafluoroethylene) }); - - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_Pipe_Polybenzimidazole.get(1L), - bits, - new Object[] { "PIP", "IFI", "PIP", 'P', OrePrefixes.plate.get(Materials.Polybenzimidazole), 'F', - OrePrefixes.frameGt.get(Materials.Polybenzimidazole), 'I', - OrePrefixes.pipeMedium.get(Materials.Polybenzimidazole) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_ULV.get(1L), - bits, - new Object[] { aTextPlate, aTextPlateWrench, aTextPlate, 'P', - OrePrefixes.plate.get(Materials.WroughtIron) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_LV.get(1L), - bits, - new Object[] { aTextPlate, aTextPlateWrench, aTextPlate, 'P', OrePrefixes.plate.get(Materials.Steel) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_MV.get(1L), - bits, - new Object[] { aTextPlate, aTextPlateWrench, aTextPlate, 'P', - OrePrefixes.plate.get(Materials.Aluminium) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_HV.get(1L), - bits, - new Object[] { aTextPlate, aTextPlateWrench, aTextPlate, 'P', - OrePrefixes.plate.get(Materials.StainlessSteel) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_EV.get(1L), - bits, - new Object[] { aTextPlate, aTextPlateWrench, aTextPlate, 'P', - OrePrefixes.plate.get(Materials.Titanium) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_IV.get(1L), - bits, - new Object[] { aTextPlate, aTextPlateWrench, aTextPlate, 'P', - OrePrefixes.plate.get(Materials.TungstenSteel) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_LuV.get(1L), - bits, - new Object[] { aTextPlate, aTextPlateWrench, aTextPlate, 'P', - OrePrefixes.plate.get(Materials.Chrome) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_ZPM.get(1L), - bits, - new Object[] { aTextPlate, aTextPlateWrench, aTextPlate, 'P', - OrePrefixes.plate.get(Materials.Iridium) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_UV.get(1L), - bits, - new Object[] { aTextPlate, aTextPlateWrench, aTextPlate, 'P', - OrePrefixes.plate.get(Materials.Osmium) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_MAX.get(1L), - bits, - new Object[] { aTextPlate, aTextPlateWrench, aTextPlate, 'P', - OrePrefixes.plate.get(Materials.Neutronium) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_BronzePlatedBricks.get(1L), - bits, - new Object[] { "PhP", "PBP", aTextPlateWrench, 'P', OrePrefixes.plate.get(Materials.Bronze), 'B', - new ItemStack(Blocks.brick_block, 1) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_SolidSteel.get(1L), - bits, - new Object[] { "PhP", "PFP", aTextPlateWrench, 'P', OrePrefixes.plate.get(Materials.Steel), 'F', - OrePrefixes.frameGt.get(Materials.Steel) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_StableTitanium.get(1L), - bits, - new Object[] { "PhP", "PFP", aTextPlateWrench, 'P', OrePrefixes.plate.get(Materials.Titanium), 'F', - OrePrefixes.frameGt.get(Materials.Titanium) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_HeatProof.get(1L), - bits, - new Object[] { "PhP", "PFP", aTextPlateWrench, 'P', OrePrefixes.plate.get(Materials.Invar), 'F', - OrePrefixes.frameGt.get(Materials.Invar) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_FrostProof.get(1L), - bits, - new Object[] { "PhP", "PFP", aTextPlateWrench, 'P', OrePrefixes.plate.get(Materials.Aluminium), 'F', - OrePrefixes.frameGt.get(Materials.Aluminium) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_CleanStainlessSteel.get(1L), - bits, - new Object[] { "PhP", "PFP", aTextPlateWrench, 'P', OrePrefixes.plate.get(Materials.StainlessSteel), - 'F', OrePrefixes.frameGt.get(Materials.StainlessSteel) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_RobustTungstenSteel.get(1L), - bits, - new Object[] { "PhP", "PFP", aTextPlateWrench, 'P', OrePrefixes.plate.get(Materials.TungstenSteel), 'F', - OrePrefixes.frameGt.get(Materials.TungstenSteel) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_MiningOsmiridium.get(1L), - bits, - new Object[] { "PhP", "PFP", aTextPlateWrench, 'P', OrePrefixes.plate.get(Materials.Osmiridium), 'F', - OrePrefixes.frameGt.get(Materials.Osmiridium) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_MiningNeutronium.get(1L), - bits, - new Object[] { "PhP", "PFP", aTextPlateWrench, 'P', OrePrefixes.plate.get(Materials.Neutronium), 'F', - OrePrefixes.frameGt.get(Materials.Neutronium) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_MiningBlackPlutonium.get(1L), - bits, - new Object[] { "PhP", "PFP", aTextPlateWrench, 'P', OrePrefixes.plate.get(Materials.BlackPlutonium), - 'F', OrePrefixes.frameGt.get(Materials.BlackPlutonium) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_Turbine.get(1L), - bits, - new Object[] { "PhP", "PFP", aTextPlateWrench, 'P', OrePrefixes.plate.get(Materials.Magnalium), 'F', - OrePrefixes.frameGt.get(Materials.BlueSteel) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_Turbine1.get(1L), - bits, - new Object[] { "PhP", "PFP", aTextPlateWrench, 'P', OrePrefixes.plate.get(Materials.StainlessSteel), - 'F', ItemList.Casing_Turbine }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_Turbine2.get(1L), - bits, - new Object[] { "PhP", "PFP", aTextPlateWrench, 'P', OrePrefixes.plate.get(Materials.Titanium), 'F', - ItemList.Casing_Turbine }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_Turbine3.get(1L), - bits, - new Object[] { "PhP", "PFP", aTextPlateWrench, 'P', OrePrefixes.plate.get(Materials.TungstenSteel), 'F', - ItemList.Casing_Turbine }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_TurbineGasAdvanced.get(1L), - bits, - new Object[] { "PhP", "PFP", aTextPlateWrench, 'P', OrePrefixes.plate.get(Materials.HSSS), 'F', - ItemList.Casing_Turbine }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_Pipe_Bronze.get(1L), - bits, - new Object[] { "PIP", "IFI", "PIP", 'P', OrePrefixes.plate.get(Materials.Bronze), 'F', - OrePrefixes.frameGt.get(Materials.Bronze), 'I', OrePrefixes.pipeMedium.get(Materials.Bronze) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_Pipe_Steel.get(1L), - bits, - new Object[] { "PIP", "IFI", "PIP", 'P', OrePrefixes.plate.get(Materials.Steel), 'F', - OrePrefixes.frameGt.get(Materials.Steel), 'I', OrePrefixes.pipeMedium.get(Materials.Steel) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_Pipe_Titanium.get(1L), - bits, - new Object[] { "PIP", "IFI", "PIP", 'P', OrePrefixes.plate.get(Materials.Titanium), 'F', - OrePrefixes.frameGt.get(Materials.Titanium), 'I', - OrePrefixes.pipeMedium.get(Materials.Titanium) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_Pipe_TungstenSteel.get(1L), - bits, - new Object[] { "PIP", "IFI", "PIP", 'P', OrePrefixes.plate.get(Materials.TungstenSteel), 'F', - OrePrefixes.frameGt.get(Materials.TungstenSteel), 'I', - OrePrefixes.pipeMedium.get(Materials.TungstenSteel) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_Gearbox_Bronze.get(1L), - bits, - new Object[] { "PhP", "GFG", aTextPlateWrench, 'P', OrePrefixes.plate.get(Materials.Bronze), 'F', - OrePrefixes.frameGt.get(Materials.Bronze), 'G', OrePrefixes.gearGt.get(Materials.Bronze) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_Gearbox_Steel.get(1L), - bits, - new Object[] { "PhP", "GFG", aTextPlateWrench, 'P', OrePrefixes.plate.get(Materials.Steel), 'F', - OrePrefixes.frameGt.get(Materials.Steel), 'G', OrePrefixes.gearGt.get(Materials.Steel) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_Gearbox_Titanium.get(1L), - bits, - new Object[] { "PhP", "GFG", aTextPlateWrench, 'P', OrePrefixes.plate.get(Materials.Steel), 'F', - OrePrefixes.frameGt.get(Materials.Titanium), 'G', OrePrefixes.gearGt.get(Materials.Titanium) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_Gearbox_TungstenSteel.get(1L), - bits, - new Object[] { "PhP", "GFG", aTextPlateWrench, 'P', OrePrefixes.plate.get(Materials.Steel), 'F', - OrePrefixes.frameGt.get(Materials.TungstenSteel), 'G', ItemList.Robot_Arm_IV }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_Grate.get(1L), - bits, - new Object[] { "PVP", "PFP", aTextPlateMotor, 'P', new ItemStack(Blocks.iron_bars, 1), 'F', - OrePrefixes.frameGt.get(Materials.Steel), 'M', ItemList.Electric_Motor_MV, 'V', - OrePrefixes.rotor.get(Materials.Steel) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_Assembler.get(1L), - bits, - new Object[] { "PVP", "PFP", aTextPlateMotor, 'P', OrePrefixes.circuit.get(Materials.Ultimate), 'F', - OrePrefixes.frameGt.get(Materials.TungstenSteel), 'M', ItemList.Electric_Motor_IV, 'V', - OrePrefixes.circuit.get(Materials.Master) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_Firebox_Bronze.get(1L), - bits, - new Object[] { "PSP", "SFS", "PSP", 'P', OrePrefixes.plate.get(Materials.Bronze), 'F', - OrePrefixes.frameGt.get(Materials.Bronze), 'S', OrePrefixes.stick.get(Materials.Bronze) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_Firebox_Steel.get(1L), - bits, - new Object[] { "PSP", "SFS", "PSP", 'P', OrePrefixes.plate.get(Materials.Steel), 'F', - OrePrefixes.frameGt.get(Materials.Steel), 'S', OrePrefixes.stick.get(Materials.Steel) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_Firebox_Titanium.get(1L), - bits, - new Object[] { "PSP", "SFS", "PSP", 'P', OrePrefixes.plate.get(Materials.Titanium), 'F', - OrePrefixes.frameGt.get(Materials.Titanium), 'S', OrePrefixes.stick.get(Materials.Titanium) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_Firebox_TungstenSteel.get(1L), - bits, - new Object[] { "PSP", "SFS", "PSP", 'P', OrePrefixes.plate.get(Materials.TungstenSteel), 'F', - OrePrefixes.frameGt.get(Materials.TungstenSteel), 'S', - OrePrefixes.stick.get(Materials.TungstenSteel) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_Stripes_A.get(1L), - bits, - new Object[] { "Y ", " M ", " B", 'M', ItemList.Casing_SolidSteel, 'Y', Dyes.dyeYellow, 'B', - Dyes.dyeBlack }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_Stripes_B.get(1L), - bits, - new Object[] { " Y", " M ", "B ", 'M', ItemList.Casing_SolidSteel, 'Y', Dyes.dyeYellow, 'B', - Dyes.dyeBlack }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_RadioactiveHazard.get(1L), - bits, - new Object[] { " YB", " M ", " ", 'M', ItemList.Casing_SolidSteel, 'Y', Dyes.dyeYellow, 'B', - Dyes.dyeBlack }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_BioHazard.get(1L), - bits, - new Object[] { " Y ", " MB", " ", 'M', ItemList.Casing_SolidSteel, 'Y', Dyes.dyeYellow, 'B', - Dyes.dyeBlack }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_ExplosionHazard.get(1L), - bits, - new Object[] { " Y ", " M ", " B", 'M', ItemList.Casing_SolidSteel, 'Y', Dyes.dyeYellow, 'B', - Dyes.dyeBlack }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_FireHazard.get(1L), - bits, - new Object[] { " Y ", " M ", " B ", 'M', ItemList.Casing_SolidSteel, 'Y', Dyes.dyeYellow, 'B', - Dyes.dyeBlack }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_AcidHazard.get(1L), - bits, - new Object[] { " Y ", " M ", "B ", 'M', ItemList.Casing_SolidSteel, 'Y', Dyes.dyeYellow, 'B', - Dyes.dyeBlack }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_MagicHazard.get(1L), - bits, - new Object[] { " Y ", "BM ", " ", 'M', ItemList.Casing_SolidSteel, 'Y', Dyes.dyeYellow, 'B', - Dyes.dyeBlack }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_FrostHazard.get(1L), - bits, - new Object[] { "BY ", " M ", " ", 'M', ItemList.Casing_SolidSteel, 'Y', Dyes.dyeYellow, 'B', - Dyes.dyeBlack }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_NoiseHazard.get(1L), - bits, - new Object[] { " ", " M ", "BY ", 'M', ItemList.Casing_SolidSteel, 'Y', Dyes.dyeYellow, 'B', - Dyes.dyeBlack }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_Advanced_Iridium.get(1L), - bits, - new Object[] { "PhP", "PFP", aTextPlateWrench, 'P', OrePrefixes.plate.get(Materials.Iridium), 'F', - OrePrefixes.frameGt.get(Materials.Iridium) }); + ItemList.Casing_Pipe_Polytetrafluoroethylene.get(1L), + bits, + new Object[] { "PIP", "IFI", "PIP", 'P', OrePrefixes.plate.get(Materials.Polytetrafluoroethylene), 'F', + OrePrefixes.frameGt.get(Materials.Polytetrafluoroethylene), 'I', + OrePrefixes.pipeMedium.get(Materials.Polytetrafluoroethylene) }); + + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_Pipe_Polybenzimidazole.get(1L), + bits, + new Object[] { "PIP", "IFI", "PIP", 'P', OrePrefixes.plate.get(Materials.Polybenzimidazole), 'F', + OrePrefixes.frameGt.get(Materials.Polybenzimidazole), 'I', + OrePrefixes.pipeMedium.get(Materials.Polybenzimidazole) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_ULV.get(1L), + bits, + new Object[] { aTextPlate, aTextPlateWrench, aTextPlate, 'P', + OrePrefixes.plate.get(Materials.WroughtIron) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_LV.get(1L), + bits, + new Object[] { aTextPlate, aTextPlateWrench, aTextPlate, 'P', OrePrefixes.plate.get(Materials.Steel) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_MV.get(1L), + bits, + new Object[] { aTextPlate, aTextPlateWrench, aTextPlate, 'P', OrePrefixes.plate.get(Materials.Aluminium) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_HV.get(1L), + bits, + new Object[] { aTextPlate, aTextPlateWrench, aTextPlate, 'P', + OrePrefixes.plate.get(Materials.StainlessSteel) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_EV.get(1L), + bits, + new Object[] { aTextPlate, aTextPlateWrench, aTextPlate, 'P', OrePrefixes.plate.get(Materials.Titanium) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_IV.get(1L), + bits, + new Object[] { aTextPlate, aTextPlateWrench, aTextPlate, 'P', + OrePrefixes.plate.get(Materials.TungstenSteel) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_LuV.get(1L), + bits, + new Object[] { aTextPlate, aTextPlateWrench, aTextPlate, 'P', OrePrefixes.plate.get(Materials.Chrome) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_ZPM.get(1L), + bits, + new Object[] { aTextPlate, aTextPlateWrench, aTextPlate, 'P', OrePrefixes.plate.get(Materials.Iridium) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_UV.get(1L), + bits, + new Object[] { aTextPlate, aTextPlateWrench, aTextPlate, 'P', OrePrefixes.plate.get(Materials.Osmium) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_MAX.get(1L), + bits, + new Object[] { aTextPlate, aTextPlateWrench, aTextPlate, 'P', + OrePrefixes.plate.get(Materials.Neutronium) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_BronzePlatedBricks.get(1L), + bits, + new Object[] { "PhP", "PBP", aTextPlateWrench, 'P', OrePrefixes.plate.get(Materials.Bronze), 'B', + new ItemStack(Blocks.brick_block, 1) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_SolidSteel.get(1L), + bits, + new Object[] { "PhP", "PFP", aTextPlateWrench, 'P', OrePrefixes.plate.get(Materials.Steel), 'F', + OrePrefixes.frameGt.get(Materials.Steel) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_StableTitanium.get(1L), + bits, + new Object[] { "PhP", "PFP", aTextPlateWrench, 'P', OrePrefixes.plate.get(Materials.Titanium), 'F', + OrePrefixes.frameGt.get(Materials.Titanium) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_HeatProof.get(1L), + bits, + new Object[] { "PhP", "PFP", aTextPlateWrench, 'P', OrePrefixes.plate.get(Materials.Invar), 'F', + OrePrefixes.frameGt.get(Materials.Invar) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_FrostProof.get(1L), + bits, + new Object[] { "PhP", "PFP", aTextPlateWrench, 'P', OrePrefixes.plate.get(Materials.Aluminium), 'F', + OrePrefixes.frameGt.get(Materials.Aluminium) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_CleanStainlessSteel.get(1L), + bits, + new Object[] { "PhP", "PFP", aTextPlateWrench, 'P', OrePrefixes.plate.get(Materials.StainlessSteel), 'F', + OrePrefixes.frameGt.get(Materials.StainlessSteel) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_RobustTungstenSteel.get(1L), + bits, + new Object[] { "PhP", "PFP", aTextPlateWrench, 'P', OrePrefixes.plate.get(Materials.TungstenSteel), 'F', + OrePrefixes.frameGt.get(Materials.TungstenSteel) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_MiningOsmiridium.get(1L), + bits, + new Object[] { "PhP", "PFP", aTextPlateWrench, 'P', OrePrefixes.plate.get(Materials.Osmiridium), 'F', + OrePrefixes.frameGt.get(Materials.Osmiridium) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_MiningNeutronium.get(1L), + bits, + new Object[] { "PhP", "PFP", aTextPlateWrench, 'P', OrePrefixes.plate.get(Materials.Neutronium), 'F', + OrePrefixes.frameGt.get(Materials.Neutronium) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_MiningBlackPlutonium.get(1L), + bits, + new Object[] { "PhP", "PFP", aTextPlateWrench, 'P', OrePrefixes.plate.get(Materials.BlackPlutonium), 'F', + OrePrefixes.frameGt.get(Materials.BlackPlutonium) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_Turbine.get(1L), + bits, + new Object[] { "PhP", "PFP", aTextPlateWrench, 'P', OrePrefixes.plate.get(Materials.Magnalium), 'F', + OrePrefixes.frameGt.get(Materials.BlueSteel) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_Turbine1.get(1L), + bits, + new Object[] { "PhP", "PFP", aTextPlateWrench, 'P', OrePrefixes.plate.get(Materials.StainlessSteel), 'F', + ItemList.Casing_Turbine }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_Turbine2.get(1L), + bits, + new Object[] { "PhP", "PFP", aTextPlateWrench, 'P', OrePrefixes.plate.get(Materials.Titanium), 'F', + ItemList.Casing_Turbine }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_Turbine3.get(1L), + bits, + new Object[] { "PhP", "PFP", aTextPlateWrench, 'P', OrePrefixes.plate.get(Materials.TungstenSteel), 'F', + ItemList.Casing_Turbine }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_TurbineGasAdvanced.get(1L), + bits, + new Object[] { "PhP", "PFP", aTextPlateWrench, 'P', OrePrefixes.plate.get(Materials.HSSS), 'F', + ItemList.Casing_Turbine }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_Pipe_Bronze.get(1L), + bits, + new Object[] { "PIP", "IFI", "PIP", 'P', OrePrefixes.plate.get(Materials.Bronze), 'F', + OrePrefixes.frameGt.get(Materials.Bronze), 'I', OrePrefixes.pipeMedium.get(Materials.Bronze) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_Pipe_Steel.get(1L), + bits, + new Object[] { "PIP", "IFI", "PIP", 'P', OrePrefixes.plate.get(Materials.Steel), 'F', + OrePrefixes.frameGt.get(Materials.Steel), 'I', OrePrefixes.pipeMedium.get(Materials.Steel) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_Pipe_Titanium.get(1L), + bits, + new Object[] { "PIP", "IFI", "PIP", 'P', OrePrefixes.plate.get(Materials.Titanium), 'F', + OrePrefixes.frameGt.get(Materials.Titanium), 'I', OrePrefixes.pipeMedium.get(Materials.Titanium) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_Pipe_TungstenSteel.get(1L), + bits, + new Object[] { "PIP", "IFI", "PIP", 'P', OrePrefixes.plate.get(Materials.TungstenSteel), 'F', + OrePrefixes.frameGt.get(Materials.TungstenSteel), 'I', + OrePrefixes.pipeMedium.get(Materials.TungstenSteel) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_Gearbox_Bronze.get(1L), + bits, + new Object[] { "PhP", "GFG", aTextPlateWrench, 'P', OrePrefixes.plate.get(Materials.Bronze), 'F', + OrePrefixes.frameGt.get(Materials.Bronze), 'G', OrePrefixes.gearGt.get(Materials.Bronze) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_Gearbox_Steel.get(1L), + bits, + new Object[] { "PhP", "GFG", aTextPlateWrench, 'P', OrePrefixes.plate.get(Materials.Steel), 'F', + OrePrefixes.frameGt.get(Materials.Steel), 'G', OrePrefixes.gearGt.get(Materials.Steel) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_Gearbox_Titanium.get(1L), + bits, + new Object[] { "PhP", "GFG", aTextPlateWrench, 'P', OrePrefixes.plate.get(Materials.Steel), 'F', + OrePrefixes.frameGt.get(Materials.Titanium), 'G', OrePrefixes.gearGt.get(Materials.Titanium) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_Gearbox_TungstenSteel.get(1L), + bits, + new Object[] { "PhP", "GFG", aTextPlateWrench, 'P', OrePrefixes.plate.get(Materials.Steel), 'F', + OrePrefixes.frameGt.get(Materials.TungstenSteel), 'G', ItemList.Robot_Arm_IV }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_Grate.get(1L), + bits, + new Object[] { "PVP", "PFP", aTextPlateMotor, 'P', new ItemStack(Blocks.iron_bars, 1), 'F', + OrePrefixes.frameGt.get(Materials.Steel), 'M', ItemList.Electric_Motor_MV, 'V', + OrePrefixes.rotor.get(Materials.Steel) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_Assembler.get(1L), + bits, + new Object[] { "PVP", "PFP", aTextPlateMotor, 'P', OrePrefixes.circuit.get(Materials.Ultimate), 'F', + OrePrefixes.frameGt.get(Materials.TungstenSteel), 'M', ItemList.Electric_Motor_IV, 'V', + OrePrefixes.circuit.get(Materials.Master) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_Firebox_Bronze.get(1L), + bits, + new Object[] { "PSP", "SFS", "PSP", 'P', OrePrefixes.plate.get(Materials.Bronze), 'F', + OrePrefixes.frameGt.get(Materials.Bronze), 'S', OrePrefixes.stick.get(Materials.Bronze) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_Firebox_Steel.get(1L), + bits, + new Object[] { "PSP", "SFS", "PSP", 'P', OrePrefixes.plate.get(Materials.Steel), 'F', + OrePrefixes.frameGt.get(Materials.Steel), 'S', OrePrefixes.stick.get(Materials.Steel) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_Firebox_Titanium.get(1L), + bits, + new Object[] { "PSP", "SFS", "PSP", 'P', OrePrefixes.plate.get(Materials.Titanium), 'F', + OrePrefixes.frameGt.get(Materials.Titanium), 'S', OrePrefixes.stick.get(Materials.Titanium) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_Firebox_TungstenSteel.get(1L), + bits, + new Object[] { "PSP", "SFS", "PSP", 'P', OrePrefixes.plate.get(Materials.TungstenSteel), 'F', + OrePrefixes.frameGt.get(Materials.TungstenSteel), 'S', + OrePrefixes.stick.get(Materials.TungstenSteel) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_Stripes_A.get(1L), + bits, + new Object[] { "Y ", " M ", " B", 'M', ItemList.Casing_SolidSteel, 'Y', Dyes.dyeYellow, 'B', + Dyes.dyeBlack }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_Stripes_B.get(1L), + bits, + new Object[] { " Y", " M ", "B ", 'M', ItemList.Casing_SolidSteel, 'Y', Dyes.dyeYellow, 'B', + Dyes.dyeBlack }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_RadioactiveHazard.get(1L), + bits, + new Object[] { " YB", " M ", " ", 'M', ItemList.Casing_SolidSteel, 'Y', Dyes.dyeYellow, 'B', + Dyes.dyeBlack }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_BioHazard.get(1L), + bits, + new Object[] { " Y ", " MB", " ", 'M', ItemList.Casing_SolidSteel, 'Y', Dyes.dyeYellow, 'B', + Dyes.dyeBlack }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_ExplosionHazard.get(1L), + bits, + new Object[] { " Y ", " M ", " B", 'M', ItemList.Casing_SolidSteel, 'Y', Dyes.dyeYellow, 'B', + Dyes.dyeBlack }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_FireHazard.get(1L), + bits, + new Object[] { " Y ", " M ", " B ", 'M', ItemList.Casing_SolidSteel, 'Y', Dyes.dyeYellow, 'B', + Dyes.dyeBlack }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_AcidHazard.get(1L), + bits, + new Object[] { " Y ", " M ", "B ", 'M', ItemList.Casing_SolidSteel, 'Y', Dyes.dyeYellow, 'B', + Dyes.dyeBlack }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_MagicHazard.get(1L), + bits, + new Object[] { " Y ", "BM ", " ", 'M', ItemList.Casing_SolidSteel, 'Y', Dyes.dyeYellow, 'B', + Dyes.dyeBlack }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_FrostHazard.get(1L), + bits, + new Object[] { "BY ", " M ", " ", 'M', ItemList.Casing_SolidSteel, 'Y', Dyes.dyeYellow, 'B', + Dyes.dyeBlack }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_NoiseHazard.get(1L), + bits, + new Object[] { " ", " M ", "BY ", 'M', ItemList.Casing_SolidSteel, 'Y', Dyes.dyeYellow, 'B', + Dyes.dyeBlack }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_Advanced_Iridium.get(1L), + bits, + new Object[] { "PhP", "PFP", aTextPlateWrench, 'P', OrePrefixes.plate.get(Materials.Iridium), 'F', + OrePrefixes.frameGt.get(Materials.Iridium) }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Casing_SolidSteel.get(1L), - bits, - new Object[] { ItemList.Casing_Stripes_A }); + ItemList.Casing_SolidSteel.get(1L), + bits, + new Object[] { ItemList.Casing_Stripes_A }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Casing_SolidSteel.get(1L), - bits, - new Object[] { ItemList.Casing_Stripes_B }); + ItemList.Casing_SolidSteel.get(1L), + bits, + new Object[] { ItemList.Casing_Stripes_B }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Casing_SolidSteel.get(1L), - bits, - new Object[] { ItemList.Casing_RadioactiveHazard }); + ItemList.Casing_SolidSteel.get(1L), + bits, + new Object[] { ItemList.Casing_RadioactiveHazard }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Casing_SolidSteel.get(1L), - bits, - new Object[] { ItemList.Casing_BioHazard }); + ItemList.Casing_SolidSteel.get(1L), + bits, + new Object[] { ItemList.Casing_BioHazard }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Casing_SolidSteel.get(1L), - bits, - new Object[] { ItemList.Casing_ExplosionHazard }); + ItemList.Casing_SolidSteel.get(1L), + bits, + new Object[] { ItemList.Casing_ExplosionHazard }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Casing_SolidSteel.get(1L), - bits, - new Object[] { ItemList.Casing_FireHazard }); + ItemList.Casing_SolidSteel.get(1L), + bits, + new Object[] { ItemList.Casing_FireHazard }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Casing_SolidSteel.get(1L), - bits, - new Object[] { ItemList.Casing_AcidHazard }); + ItemList.Casing_SolidSteel.get(1L), + bits, + new Object[] { ItemList.Casing_AcidHazard }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Casing_SolidSteel.get(1L), - bits, - new Object[] { ItemList.Casing_MagicHazard }); + ItemList.Casing_SolidSteel.get(1L), + bits, + new Object[] { ItemList.Casing_MagicHazard }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Casing_SolidSteel.get(1L), - bits, - new Object[] { ItemList.Casing_FrostHazard }); + ItemList.Casing_SolidSteel.get(1L), + bits, + new Object[] { ItemList.Casing_FrostHazard }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Casing_SolidSteel.get(1L), - bits, - new Object[] { ItemList.Casing_NoiseHazard }); + ItemList.Casing_SolidSteel.get(1L), + bits, + new Object[] { ItemList.Casing_NoiseHazard }); ItemList.Machine_Bricked_BlastFurnace.set( - new GT_MetaTileEntity_BrickedBlastFurnace( - 140, - "multimachine.brickedblastfurnace", - "Bricked Blast Furnace").getStackForm(1L)); + new GT_MetaTileEntity_BrickedBlastFurnace(140, "multimachine.brickedblastfurnace", "Bricked Blast Furnace") + .getStackForm(1L)); GT_ModHandler.addCraftingRecipe( - ItemList.Machine_Bricked_BlastFurnace.get(1L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "BFB", "FwF", "BFB", 'B', ItemList.Casing_Firebricks, 'F', - OreDictNames.craftingIronFurnace }); + ItemList.Machine_Bricked_BlastFurnace.get(1L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "BFB", "FwF", "BFB", 'B', ItemList.Casing_Firebricks, 'F', + OreDictNames.craftingIronFurnace }); ItemList.Hull_Bronze.set( - new GT_MetaTileEntity_BasicHull_Bronze( - 1, - "hull.bronze", - "Bronze Hull", - 0, - "For your first Steam Machines").getStackForm(1L)); + new GT_MetaTileEntity_BasicHull_Bronze(1, "hull.bronze", "Bronze Hull", 0, "For your first Steam Machines") + .getStackForm(1L)); ItemList.Hull_Bronze_Bricks.set( - new GT_MetaTileEntity_BasicHull_BronzeBricks( - 2, - "hull.bronze_bricked", - "Bricked Bronze Hull", - 0, - "For your first Steam Machines").getStackForm(1L)); + new GT_MetaTileEntity_BasicHull_BronzeBricks( + 2, + "hull.bronze_bricked", + "Bricked Bronze Hull", + 0, + "For your first Steam Machines").getStackForm(1L)); ItemList.Hull_HP.set( - new GT_MetaTileEntity_BasicHull_Steel( - 3, - "hull.steel", - "Steel Hull", - 0, - "For improved Steam Machines").getStackForm(1L)); + new GT_MetaTileEntity_BasicHull_Steel(3, "hull.steel", "Steel Hull", 0, "For improved Steam Machines") + .getStackForm(1L)); ItemList.Hull_HP_Bricks.set( - new GT_MetaTileEntity_BasicHull_SteelBricks( - 4, - "hull.steel_bricked", - "Bricked Wrought Iron Hull", - 0, - "For improved Steam Machines").getStackForm(1L)); + new GT_MetaTileEntity_BasicHull_SteelBricks( + 4, + "hull.steel_bricked", + "Bricked Wrought Iron Hull", + 0, + "For improved Steam Machines").getStackForm(1L)); GT_ModHandler.addCraftingRecipe( - ItemList.Hull_Bronze.get(1L), - bits, - new Object[] { aTextPlate, "PhP", aTextPlate, 'P', OrePrefixes.plate.get(Materials.Bronze) }); + ItemList.Hull_Bronze.get(1L), + bits, + new Object[] { aTextPlate, "PhP", aTextPlate, 'P', OrePrefixes.plate.get(Materials.Bronze) }); GT_ModHandler.addCraftingRecipe( - ItemList.Hull_Bronze_Bricks.get(1L), - bits, - new Object[] { aTextPlate, "PhP", "BBB", 'P', OrePrefixes.plate.get(Materials.Bronze), 'B', - new ItemStack(Blocks.brick_block, 1) }); + ItemList.Hull_Bronze_Bricks.get(1L), + bits, + new Object[] { aTextPlate, "PhP", "BBB", 'P', OrePrefixes.plate.get(Materials.Bronze), 'B', + new ItemStack(Blocks.brick_block, 1) }); GT_ModHandler.addCraftingRecipe( - ItemList.Hull_HP.get(1L), - bits, - new Object[] { aTextPlate, "PhP", aTextPlate, 'P', OrePrefixes.plate.get(Materials.Steel) }); + ItemList.Hull_HP.get(1L), + bits, + new Object[] { aTextPlate, "PhP", aTextPlate, 'P', OrePrefixes.plate.get(Materials.Steel) }); GT_ModHandler.addCraftingRecipe( - ItemList.Hull_HP_Bricks.get(1L), - bits, - new Object[] { aTextPlate, "PhP", "BBB", 'P', OrePrefixes.plate.get(Materials.WroughtIron), 'B', - new ItemStack(Blocks.brick_block, 1) }); + ItemList.Hull_HP_Bricks.get(1L), + bits, + new Object[] { aTextPlate, "PhP", "BBB", 'P', OrePrefixes.plate.get(Materials.WroughtIron), 'B', + new ItemStack(Blocks.brick_block, 1) }); ItemList.Hull_ULV.set( - new GT_MetaTileEntity_BasicHull(10, "hull.tier.00", "ULV Machine Hull", 0, imagination).getStackForm( - 1L)); + new GT_MetaTileEntity_BasicHull(10, "hull.tier.00", "ULV Machine Hull", 0, imagination).getStackForm(1L)); ItemList.Hull_LV.set( - new GT_MetaTileEntity_BasicHull(11, "hull.tier.01", "LV Machine Hull", 1, imagination).getStackForm( - 1L)); + new GT_MetaTileEntity_BasicHull(11, "hull.tier.01", "LV Machine Hull", 1, imagination).getStackForm(1L)); ItemList.Hull_MV.set( - new GT_MetaTileEntity_BasicHull(12, "hull.tier.02", "MV Machine Hull", 2, imagination).getStackForm( - 1L)); + new GT_MetaTileEntity_BasicHull(12, "hull.tier.02", "MV Machine Hull", 2, imagination).getStackForm(1L)); ItemList.Hull_HV.set( - new GT_MetaTileEntity_BasicHull(13, "hull.tier.03", "HV Machine Hull", 3, imagination).getStackForm( - 1L)); + new GT_MetaTileEntity_BasicHull(13, "hull.tier.03", "HV Machine Hull", 3, imagination).getStackForm(1L)); ItemList.Hull_EV.set( - new GT_MetaTileEntity_BasicHull(14, "hull.tier.04", "EV Machine Hull", 4, imagination).getStackForm( - 1L)); + new GT_MetaTileEntity_BasicHull(14, "hull.tier.04", "EV Machine Hull", 4, imagination).getStackForm(1L)); ItemList.Hull_IV.set( - new GT_MetaTileEntity_BasicHull(15, "hull.tier.05", "IV Machine Hull", 5, imagination).getStackForm( - 1L)); + new GT_MetaTileEntity_BasicHull(15, "hull.tier.05", "IV Machine Hull", 5, imagination).getStackForm(1L)); ItemList.Hull_LuV.set( - new GT_MetaTileEntity_BasicHull(16, "hull.tier.06", "LuV Machine Hull", 6, imagination).getStackForm( - 1L)); + new GT_MetaTileEntity_BasicHull(16, "hull.tier.06", "LuV Machine Hull", 6, imagination).getStackForm(1L)); ItemList.Hull_ZPM.set( - new GT_MetaTileEntity_BasicHull(17, "hull.tier.07", "ZPM Machine Hull", 7, imagination).getStackForm( - 1L)); + new GT_MetaTileEntity_BasicHull(17, "hull.tier.07", "ZPM Machine Hull", 7, imagination).getStackForm(1L)); ItemList.Hull_UV.set( - new GT_MetaTileEntity_BasicHull(18, "hull.tier.08", "UV Machine Hull", 8, imagination).getStackForm( - 1L)); + new GT_MetaTileEntity_BasicHull(18, "hull.tier.08", "UV Machine Hull", 8, imagination).getStackForm(1L)); ItemList.Hull_MAX.set( - new GT_MetaTileEntity_BasicHull(19, "hull.tier.09", "UHV Machine Hull", 9, imagination).getStackForm( - 1L)); - - GT_ModHandler.addCraftingRecipe( - ItemList.Hull_ULV.get(1L), - GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { aTextCableHull, 'M', ItemList.Casing_ULV, 'C', OrePrefixes.cableGt01.get(Materials.Lead), - 'H', OrePrefixes.plate.get(Materials.WroughtIron), 'P', - OrePrefixes.plate.get(Materials.Wood) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Hull_LV.get(1L), - GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { aTextCableHull, 'M', ItemList.Casing_LV, 'C', OrePrefixes.cableGt01.get(Materials.Tin), - 'H', OrePrefixes.plate.get(Materials.Steel), 'P', - OrePrefixes.plate.get(Materials.WroughtIron) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Hull_MV.get(1L), - GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { aTextCableHull, 'M', ItemList.Casing_MV, 'C', - OrePrefixes.cableGt01.get(Materials.AnyCopper), 'H', OrePrefixes.plate.get(Materials.Aluminium), - 'P', OrePrefixes.plate.get(Materials.WroughtIron) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Hull_HV.get(1L), - GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { aTextCableHull, 'M', ItemList.Casing_HV, 'C', OrePrefixes.cableGt01.get(Materials.Gold), - 'H', OrePrefixes.plate.get(Materials.StainlessSteel), 'P', - OrePrefixes.plate.get(Materials.Plastic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Hull_EV.get(1L), - GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { aTextCableHull, 'M', ItemList.Casing_EV, 'C', - OrePrefixes.cableGt01.get(Materials.Aluminium), 'H', OrePrefixes.plate.get(Materials.Titanium), - 'P', OrePrefixes.plate.get(Materials.Plastic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Hull_IV.get(1L), - GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { aTextCableHull, 'M', ItemList.Casing_IV, 'C', - OrePrefixes.cableGt01.get(Materials.Tungsten), 'H', - OrePrefixes.plate.get(Materials.TungstenSteel), 'P', - OrePrefixes.plate.get(Materials.Polytetrafluoroethylene) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Hull_LuV.get(1L), - GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { aTextCableHull, 'M', ItemList.Casing_LuV, 'C', - OrePrefixes.cableGt01.get(Materials.VanadiumGallium), 'H', - OrePrefixes.plate.get(Materials.Chrome), 'P', - OrePrefixes.plate.get(Materials.Polytetrafluoroethylene) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Hull_ZPM.get(1L), - GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { aTextCableHull, 'M', ItemList.Casing_ZPM, 'C', - OrePrefixes.cableGt02.get(Materials.Naquadah), 'H', OrePrefixes.plate.get(Materials.Iridium), - 'P', OrePrefixes.plate.get(Materials.Polybenzimidazole) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Hull_UV.get(1L), - GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { aTextCableHull, 'M', ItemList.Casing_UV, 'C', - OrePrefixes.cableGt04.get(Materials.NaquadahAlloy), 'H', - OrePrefixes.plate.get(Materials.Osmium), 'P', - OrePrefixes.plate.get(Materials.Polybenzimidazole) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Hull_MAX.get(1L), - GT_ModHandler.RecipeBits.REVERSIBLE, - new Object[] { aTextCableHull, 'M', ItemList.Casing_MAX, 'C', - OrePrefixes.wireGt04.get(Materials.SuperconductorUV), 'H', - OrePrefixes.plate.get(Materials.Neutronium), 'P', - OrePrefixes.plate.get(Materials.Polybenzimidazole) }); + new GT_MetaTileEntity_BasicHull(19, "hull.tier.09", "UHV Machine Hull", 9, imagination).getStackForm(1L)); + + GT_ModHandler.addCraftingRecipe( + ItemList.Hull_ULV.get(1L), + GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { aTextCableHull, 'M', ItemList.Casing_ULV, 'C', OrePrefixes.cableGt01.get(Materials.Lead), + 'H', OrePrefixes.plate.get(Materials.WroughtIron), 'P', OrePrefixes.plate.get(Materials.Wood) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Hull_LV.get(1L), + GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { aTextCableHull, 'M', ItemList.Casing_LV, 'C', OrePrefixes.cableGt01.get(Materials.Tin), 'H', + OrePrefixes.plate.get(Materials.Steel), 'P', OrePrefixes.plate.get(Materials.WroughtIron) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Hull_MV.get(1L), + GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { aTextCableHull, 'M', ItemList.Casing_MV, 'C', OrePrefixes.cableGt01.get(Materials.AnyCopper), + 'H', OrePrefixes.plate.get(Materials.Aluminium), 'P', OrePrefixes.plate.get(Materials.WroughtIron) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Hull_HV.get(1L), + GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { aTextCableHull, 'M', ItemList.Casing_HV, 'C', OrePrefixes.cableGt01.get(Materials.Gold), 'H', + OrePrefixes.plate.get(Materials.StainlessSteel), 'P', OrePrefixes.plate.get(Materials.Plastic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Hull_EV.get(1L), + GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { aTextCableHull, 'M', ItemList.Casing_EV, 'C', OrePrefixes.cableGt01.get(Materials.Aluminium), + 'H', OrePrefixes.plate.get(Materials.Titanium), 'P', OrePrefixes.plate.get(Materials.Plastic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Hull_IV.get(1L), + GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { aTextCableHull, 'M', ItemList.Casing_IV, 'C', OrePrefixes.cableGt01.get(Materials.Tungsten), + 'H', OrePrefixes.plate.get(Materials.TungstenSteel), 'P', + OrePrefixes.plate.get(Materials.Polytetrafluoroethylene) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Hull_LuV.get(1L), + GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { aTextCableHull, 'M', ItemList.Casing_LuV, 'C', + OrePrefixes.cableGt01.get(Materials.VanadiumGallium), 'H', OrePrefixes.plate.get(Materials.Chrome), 'P', + OrePrefixes.plate.get(Materials.Polytetrafluoroethylene) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Hull_ZPM.get(1L), + GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { aTextCableHull, 'M', ItemList.Casing_ZPM, 'C', OrePrefixes.cableGt02.get(Materials.Naquadah), + 'H', OrePrefixes.plate.get(Materials.Iridium), 'P', + OrePrefixes.plate.get(Materials.Polybenzimidazole) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Hull_UV.get(1L), + GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { aTextCableHull, 'M', ItemList.Casing_UV, 'C', + OrePrefixes.cableGt04.get(Materials.NaquadahAlloy), 'H', OrePrefixes.plate.get(Materials.Osmium), 'P', + OrePrefixes.plate.get(Materials.Polybenzimidazole) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Hull_MAX.get(1L), + GT_ModHandler.RecipeBits.REVERSIBLE, + new Object[] { aTextCableHull, 'M', ItemList.Casing_MAX, 'C', + OrePrefixes.wireGt04.get(Materials.SuperconductorUV), 'H', OrePrefixes.plate.get(Materials.Neutronium), + 'P', OrePrefixes.plate.get(Materials.Polybenzimidazole) }); GT_ModHandler.removeRecipeByOutput(ItemList.Hull_ULV.get(1L)); GT_ModHandler.removeRecipeByOutput(ItemList.Hull_LV.get(1L)); @@ -727,8670 +692,8233 @@ public class GT_Loader_MetaTileEntities implements Runnable { // TODO CHECK CIRC if (GT_Mod.gregtechproxy.mHardMachineCasings) { GT_ModHandler.addCraftingRecipe( - ItemList.Hull_ULV.get(1L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "PHP", aTextCableHull, 'M', ItemList.Casing_ULV, 'C', - OrePrefixes.cableGt01.get(Materials.Lead), 'H', - OrePrefixes.plate.get(Materials.WroughtIron), 'P', OrePrefixes.plate.get(Materials.Wood) }); + ItemList.Hull_ULV.get(1L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "PHP", aTextCableHull, 'M', ItemList.Casing_ULV, 'C', + OrePrefixes.cableGt01.get(Materials.Lead), 'H', OrePrefixes.plate.get(Materials.WroughtIron), 'P', + OrePrefixes.plate.get(Materials.Wood) }); GT_ModHandler.addCraftingRecipe( - ItemList.Hull_LV.get(1L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "PHP", aTextCableHull, 'M', ItemList.Casing_LV, 'C', - OrePrefixes.cableGt01.get(Materials.Tin), 'H', OrePrefixes.plate.get(Materials.Steel), 'P', - OrePrefixes.plate.get(Materials.WroughtIron) }); + ItemList.Hull_LV.get(1L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "PHP", aTextCableHull, 'M', ItemList.Casing_LV, 'C', + OrePrefixes.cableGt01.get(Materials.Tin), 'H', OrePrefixes.plate.get(Materials.Steel), 'P', + OrePrefixes.plate.get(Materials.WroughtIron) }); GT_ModHandler.addCraftingRecipe( - ItemList.Hull_MV.get(1L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "PHP", aTextCableHull, 'M', ItemList.Casing_MV, 'C', - OrePrefixes.cableGt01.get(Materials.Copper), 'H', - OrePrefixes.plate.get(Materials.Aluminium), 'P', - OrePrefixes.plate.get(Materials.WroughtIron) }); + ItemList.Hull_MV.get(1L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "PHP", aTextCableHull, 'M', ItemList.Casing_MV, 'C', + OrePrefixes.cableGt01.get(Materials.Copper), 'H', OrePrefixes.plate.get(Materials.Aluminium), 'P', + OrePrefixes.plate.get(Materials.WroughtIron) }); GT_ModHandler.addCraftingRecipe( - ItemList.Hull_HV.get(1L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "PHP", aTextCableHull, 'M', ItemList.Casing_HV, 'C', - OrePrefixes.cableGt01.get(Materials.Gold), 'H', - OrePrefixes.plate.get(Materials.StainlessSteel), 'P', - OrePrefixes.plate.get(Materials.Plastic) }); + ItemList.Hull_HV.get(1L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "PHP", aTextCableHull, 'M', ItemList.Casing_HV, 'C', + OrePrefixes.cableGt01.get(Materials.Gold), 'H', OrePrefixes.plate.get(Materials.StainlessSteel), + 'P', OrePrefixes.plate.get(Materials.Plastic) }); GT_ModHandler.addCraftingRecipe( - ItemList.Hull_EV.get(1L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "PHP", aTextCableHull, 'M', ItemList.Casing_EV, 'C', - OrePrefixes.cableGt01.get(Materials.Aluminium), 'H', - OrePrefixes.plate.get(Materials.Titanium), 'P', OrePrefixes.plate.get(Materials.Plastic) }); + ItemList.Hull_EV.get(1L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "PHP", aTextCableHull, 'M', ItemList.Casing_EV, 'C', + OrePrefixes.cableGt01.get(Materials.Aluminium), 'H', OrePrefixes.plate.get(Materials.Titanium), 'P', + OrePrefixes.plate.get(Materials.Plastic) }); GT_ModHandler.addCraftingRecipe( - ItemList.Hull_IV.get(1L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "PHP", aTextCableHull, 'M', ItemList.Casing_IV, 'C', - OrePrefixes.cableGt01.get(Materials.Tungsten), 'H', - OrePrefixes.plate.get(Materials.TungstenSteel), 'P', - OrePrefixes.plate.get(Materials.Polytetrafluoroethylene) }); + ItemList.Hull_IV.get(1L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "PHP", aTextCableHull, 'M', ItemList.Casing_IV, 'C', + OrePrefixes.cableGt01.get(Materials.Tungsten), 'H', OrePrefixes.plate.get(Materials.TungstenSteel), + 'P', OrePrefixes.plate.get(Materials.Polytetrafluoroethylene) }); GT_ModHandler.addCraftingRecipe( - ItemList.Hull_LuV.get(1L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "PHP", aTextCableHull, 'M', ItemList.Casing_LuV, 'C', - OrePrefixes.cableGt01.get(Materials.VanadiumGallium), 'H', - OrePrefixes.plate.get(Materials.Chrome), 'P', - OrePrefixes.plate.get(Materials.Polytetrafluoroethylene) }); + ItemList.Hull_LuV.get(1L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "PHP", aTextCableHull, 'M', ItemList.Casing_LuV, 'C', + OrePrefixes.cableGt01.get(Materials.VanadiumGallium), 'H', OrePrefixes.plate.get(Materials.Chrome), + 'P', OrePrefixes.plate.get(Materials.Polytetrafluoroethylene) }); GT_ModHandler.addCraftingRecipe( - ItemList.Hull_ZPM.get(1L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "PHP", aTextCableHull, 'M', ItemList.Casing_ZPM, 'C', - OrePrefixes.cableGt01.get(Materials.Naquadah), 'H', - OrePrefixes.plate.get(Materials.Iridium), 'P', - OrePrefixes.plate.get(Materials.Polybenzimidazole) }); + ItemList.Hull_ZPM.get(1L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "PHP", aTextCableHull, 'M', ItemList.Casing_ZPM, 'C', + OrePrefixes.cableGt01.get(Materials.Naquadah), 'H', OrePrefixes.plate.get(Materials.Iridium), 'P', + OrePrefixes.plate.get(Materials.Polybenzimidazole) }); GT_ModHandler.addCraftingRecipe( - ItemList.Hull_UV.get(1L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "PHP", aTextCableHull, 'M', ItemList.Casing_UV, 'C', - OrePrefixes.wireGt04.get(Materials.NaquadahAlloy), 'H', - OrePrefixes.plate.get(Materials.Osmium), 'P', - OrePrefixes.plate.get(Materials.Polybenzimidazole) }); + ItemList.Hull_UV.get(1L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "PHP", aTextCableHull, 'M', ItemList.Casing_UV, 'C', + OrePrefixes.wireGt04.get(Materials.NaquadahAlloy), 'H', OrePrefixes.plate.get(Materials.Osmium), + 'P', OrePrefixes.plate.get(Materials.Polybenzimidazole) }); GT_ModHandler.addCraftingRecipe( - ItemList.Hull_MAX.get(1L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "PHP", aTextCableHull, 'M', ItemList.Casing_MAX, 'C', - OrePrefixes.wireGt04.get(Materials.SuperconductorUV), 'H', - OrePrefixes.plate.get(Materials.Neutronium), 'P', - OrePrefixes.plate.get(Materials.Polybenzimidazole) }); + ItemList.Hull_MAX.get(1L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "PHP", aTextCableHull, 'M', ItemList.Casing_MAX, 'C', + OrePrefixes.wireGt04.get(Materials.SuperconductorUV), 'H', + OrePrefixes.plate.get(Materials.Neutronium), 'P', + OrePrefixes.plate.get(Materials.Polybenzimidazole) }); } else { GT_ModHandler.addCraftingRecipe( - ItemList.Hull_ULV.get(1L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { aTextCableHull, 'M', ItemList.Casing_ULV, 'C', - OrePrefixes.cableGt01.get(Materials.Lead) }); + ItemList.Hull_ULV.get(1L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { aTextCableHull, 'M', ItemList.Casing_ULV, 'C', + OrePrefixes.cableGt01.get(Materials.Lead) }); GT_ModHandler.addCraftingRecipe( - ItemList.Hull_LV.get(1L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { aTextCableHull, 'M', ItemList.Casing_LV, 'C', - OrePrefixes.cableGt01.get(Materials.Tin) }); + ItemList.Hull_LV.get(1L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { aTextCableHull, 'M', ItemList.Casing_LV, 'C', + OrePrefixes.cableGt01.get(Materials.Tin) }); GT_ModHandler.addCraftingRecipe( - ItemList.Hull_MV.get(1L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { aTextCableHull, 'M', ItemList.Casing_MV, 'C', - OrePrefixes.cableGt01.get(Materials.Copper) }); + ItemList.Hull_MV.get(1L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { aTextCableHull, 'M', ItemList.Casing_MV, 'C', + OrePrefixes.cableGt01.get(Materials.Copper) }); GT_ModHandler.addCraftingRecipe( - ItemList.Hull_HV.get(1L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { aTextCableHull, 'M', ItemList.Casing_HV, 'C', - OrePrefixes.cableGt01.get(Materials.Gold) }); + ItemList.Hull_HV.get(1L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { aTextCableHull, 'M', ItemList.Casing_HV, 'C', + OrePrefixes.cableGt01.get(Materials.Gold) }); GT_ModHandler.addCraftingRecipe( - ItemList.Hull_EV.get(1L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { aTextCableHull, 'M', ItemList.Casing_EV, 'C', - OrePrefixes.cableGt01.get(Materials.Aluminium) }); + ItemList.Hull_EV.get(1L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { aTextCableHull, 'M', ItemList.Casing_EV, 'C', + OrePrefixes.cableGt01.get(Materials.Aluminium) }); GT_ModHandler.addCraftingRecipe( - ItemList.Hull_IV.get(1L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { aTextCableHull, 'M', ItemList.Casing_IV, 'C', - OrePrefixes.cableGt01.get(Materials.Tungsten) }); + ItemList.Hull_IV.get(1L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { aTextCableHull, 'M', ItemList.Casing_IV, 'C', + OrePrefixes.cableGt01.get(Materials.Tungsten) }); GT_ModHandler.addCraftingRecipe( - ItemList.Hull_LuV.get(1L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { aTextCableHull, 'M', ItemList.Casing_LuV, 'C', - OrePrefixes.cableGt01.get(Materials.VanadiumGallium) }); + ItemList.Hull_LuV.get(1L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { aTextCableHull, 'M', ItemList.Casing_LuV, 'C', + OrePrefixes.cableGt01.get(Materials.VanadiumGallium) }); GT_ModHandler.addCraftingRecipe( - ItemList.Hull_ZPM.get(1L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { aTextCableHull, 'M', ItemList.Casing_ZPM, 'C', - OrePrefixes.cableGt01.get(Materials.Naquadah) }); + ItemList.Hull_ZPM.get(1L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { aTextCableHull, 'M', ItemList.Casing_ZPM, 'C', + OrePrefixes.cableGt01.get(Materials.Naquadah) }); GT_ModHandler.addCraftingRecipe( - ItemList.Hull_UV.get(1L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { aTextCableHull, 'M', ItemList.Casing_UV, 'C', - OrePrefixes.wireGt04.get(Materials.NaquadahAlloy) }); + ItemList.Hull_UV.get(1L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { aTextCableHull, 'M', ItemList.Casing_UV, 'C', + OrePrefixes.wireGt04.get(Materials.NaquadahAlloy) }); GT_ModHandler.addCraftingRecipe( - ItemList.Hull_MAX.get(1L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { aTextCableHull, 'M', ItemList.Casing_MAX, 'C', - OrePrefixes.wireGt04.get(Materials.SuperconductorUV) }); + ItemList.Hull_MAX.get(1L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { aTextCableHull, 'M', ItemList.Casing_MAX, 'C', + OrePrefixes.wireGt04.get(Materials.SuperconductorUV) }); } ItemList.Transformer_LV_ULV.set( - new GT_MetaTileEntity_Transformer( - 20, - "transformer.tier.00", - "Ultra Low Voltage Transformer", - 0, - "LV -> ULV (Use Soft Mallet to invert)").getStackForm(1L)); + new GT_MetaTileEntity_Transformer( + 20, + "transformer.tier.00", + "Ultra Low Voltage Transformer", + 0, + "LV -> ULV (Use Soft Mallet to invert)").getStackForm(1L)); ItemList.Transformer_MV_LV.set( - new GT_MetaTileEntity_Transformer( - 21, - "transformer.tier.01", - "Low Voltage Transformer", - 1, - "MV -> LV (Use Soft Mallet to invert)").getStackForm(1L)); + new GT_MetaTileEntity_Transformer( + 21, + "transformer.tier.01", + "Low Voltage Transformer", + 1, + "MV -> LV (Use Soft Mallet to invert)").getStackForm(1L)); ItemList.Transformer_HV_MV.set( - new GT_MetaTileEntity_Transformer( - 22, - "transformer.tier.02", - "Medium Voltage Transformer", - 2, - "HV -> MV (Use Soft Mallet to invert)").getStackForm(1L)); + new GT_MetaTileEntity_Transformer( + 22, + "transformer.tier.02", + "Medium Voltage Transformer", + 2, + "HV -> MV (Use Soft Mallet to invert)").getStackForm(1L)); ItemList.Transformer_EV_HV.set( - new GT_MetaTileEntity_Transformer( - 23, - "transformer.tier.03", - "High Voltage Transformer", - 3, - "EV -> HV (Use Soft Mallet to invert)").getStackForm(1L)); + new GT_MetaTileEntity_Transformer( + 23, + "transformer.tier.03", + "High Voltage Transformer", + 3, + "EV -> HV (Use Soft Mallet to invert)").getStackForm(1L)); ItemList.Transformer_IV_EV.set( - new GT_MetaTileEntity_Transformer( - 24, - "transformer.tier.04", - "Extreme Transformer", - 4, - "IV -> EV (Use Soft Mallet to invert)").getStackForm(1L)); + new GT_MetaTileEntity_Transformer( + 24, + "transformer.tier.04", + "Extreme Transformer", + 4, + "IV -> EV (Use Soft Mallet to invert)").getStackForm(1L)); ItemList.Transformer_LuV_IV.set( - new GT_MetaTileEntity_Transformer( - 25, - "transformer.tier.05", - "Insane Transformer", - 5, - "LuV -> IV (Use Soft Mallet to invert)").getStackForm(1L)); + new GT_MetaTileEntity_Transformer( + 25, + "transformer.tier.05", + "Insane Transformer", + 5, + "LuV -> IV (Use Soft Mallet to invert)").getStackForm(1L)); ItemList.Transformer_ZPM_LuV.set( - new GT_MetaTileEntity_Transformer( - 26, - "transformer.tier.06", - "Ludicrous Transformer", - 6, - "ZPM -> LuV (Use Soft Mallet to invert)").getStackForm(1L)); + new GT_MetaTileEntity_Transformer( + 26, + "transformer.tier.06", + "Ludicrous Transformer", + 6, + "ZPM -> LuV (Use Soft Mallet to invert)").getStackForm(1L)); ItemList.Transformer_UV_ZPM.set( - new GT_MetaTileEntity_Transformer( - 27, - "transformer.tier.07", - "ZPM Voltage Transformer", - 7, - "UV -> ZPM (Use Soft Mallet to invert)").getStackForm(1L)); + new GT_MetaTileEntity_Transformer( + 27, + "transformer.tier.07", + "ZPM Voltage Transformer", + 7, + "UV -> ZPM (Use Soft Mallet to invert)").getStackForm(1L)); ItemList.Transformer_MAX_UV.set( - new GT_MetaTileEntity_Transformer( - 28, - "transformer.tier.08", - "Ultimate Transformer", - 8, - "UHV -> UV (Use Soft Mallet to invert)").getStackForm(1L)); - - GT_ModHandler.addCraftingRecipe( - ItemList.Transformer_LV_ULV.get(1L), - bitsd, - new Object[] { " BB", "CM ", " BB", 'M', ItemList.Hull_ULV, 'C', - OrePrefixes.cableGt01.get(Materials.Tin), 'B', OrePrefixes.cableGt01.get(Materials.Lead) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Transformer_MV_LV.get(1L), - bitsd, - new Object[] { " BB", "CM ", " BB", 'M', ItemList.Hull_LV, 'C', - OrePrefixes.cableGt01.get(Materials.AnyCopper), 'B', - OrePrefixes.cableGt01.get(Materials.Tin) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Transformer_HV_MV.get(1L), - bitsd, - new Object[] { "KBB", "CM ", "KBB", 'M', ItemList.Hull_MV, 'C', - OrePrefixes.cableGt01.get(Materials.Gold), 'B', OrePrefixes.cableGt01.get(Materials.AnyCopper), - 'K', ItemList.Circuit_Parts_Coil }); - GT_ModHandler.addCraftingRecipe( - ItemList.Transformer_EV_HV.get(1L), - bitsd, - new Object[] { "KBB", "CM ", "KBB", 'M', ItemList.Hull_HV, 'C', - OrePrefixes.cableGt01.get(Materials.Aluminium), 'B', OrePrefixes.cableGt01.get(Materials.Gold), - 'K', ItemList.Circuit_Chip_ULPIC }); - GT_ModHandler.addCraftingRecipe( - ItemList.Transformer_IV_EV.get(1L), - bitsd, - new Object[] { "KBB", "CM ", "KBB", 'M', ItemList.Hull_EV, 'C', - OrePrefixes.cableGt01.get(Materials.Tungsten), 'B', - OrePrefixes.cableGt01.get(Materials.Aluminium), 'K', ItemList.Circuit_Chip_LPIC }); - GT_ModHandler.addCraftingRecipe( - ItemList.Transformer_LuV_IV.get(1L), - bitsd, - new Object[] { "KBB", "CM ", "KBB", 'M', ItemList.Hull_IV, 'C', - OrePrefixes.cableGt01.get(Materials.VanadiumGallium), 'B', - OrePrefixes.cableGt01.get(Materials.Tungsten), 'K', ItemList.Circuit_Chip_PIC }); - GT_ModHandler.addCraftingRecipe( - ItemList.Transformer_ZPM_LuV.get(1L), - bitsd, - new Object[] { "KBB", "CM ", "KBB", 'M', ItemList.Hull_LuV, 'C', - OrePrefixes.cableGt01.get(Materials.Naquadah), 'B', - OrePrefixes.cableGt01.get(Materials.VanadiumGallium), 'K', ItemList.Circuit_Chip_HPIC }); - GT_ModHandler.addCraftingRecipe( - ItemList.Transformer_UV_ZPM.get(1L), - bitsd, - new Object[] { "KBB", "CM ", "KBB", 'M', ItemList.Hull_ZPM, 'C', - OrePrefixes.cableGt01.get(Materials.NaquadahAlloy), 'B', - OrePrefixes.cableGt01.get(Materials.Naquadah), 'K', ItemList.Circuit_Chip_UHPIC }); - GT_ModHandler.addCraftingRecipe( - ItemList.Transformer_MAX_UV.get(1L), - bitsd, - new Object[] { "KBB", "CM ", "KBB", 'M', ItemList.Hull_UV, 'C', - OrePrefixes.wireGt01.get(Materials.Bedrockium), 'B', - OrePrefixes.cableGt01.get(Materials.NaquadahAlloy), 'K', ItemList.Circuit_Chip_NPIC }); + new GT_MetaTileEntity_Transformer( + 28, + "transformer.tier.08", + "Ultimate Transformer", + 8, + "UHV -> UV (Use Soft Mallet to invert)").getStackForm(1L)); + + GT_ModHandler.addCraftingRecipe( + ItemList.Transformer_LV_ULV.get(1L), + bitsd, + new Object[] { " BB", "CM ", " BB", 'M', ItemList.Hull_ULV, 'C', OrePrefixes.cableGt01.get(Materials.Tin), + 'B', OrePrefixes.cableGt01.get(Materials.Lead) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Transformer_MV_LV.get(1L), + bitsd, + new Object[] { " BB", "CM ", " BB", 'M', ItemList.Hull_LV, 'C', + OrePrefixes.cableGt01.get(Materials.AnyCopper), 'B', OrePrefixes.cableGt01.get(Materials.Tin) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Transformer_HV_MV.get(1L), + bitsd, + new Object[] { "KBB", "CM ", "KBB", 'M', ItemList.Hull_MV, 'C', OrePrefixes.cableGt01.get(Materials.Gold), + 'B', OrePrefixes.cableGt01.get(Materials.AnyCopper), 'K', ItemList.Circuit_Parts_Coil }); + GT_ModHandler.addCraftingRecipe( + ItemList.Transformer_EV_HV.get(1L), + bitsd, + new Object[] { "KBB", "CM ", "KBB", 'M', ItemList.Hull_HV, 'C', + OrePrefixes.cableGt01.get(Materials.Aluminium), 'B', OrePrefixes.cableGt01.get(Materials.Gold), 'K', + ItemList.Circuit_Chip_ULPIC }); + GT_ModHandler.addCraftingRecipe( + ItemList.Transformer_IV_EV.get(1L), + bitsd, + new Object[] { "KBB", "CM ", "KBB", 'M', ItemList.Hull_EV, 'C', + OrePrefixes.cableGt01.get(Materials.Tungsten), 'B', OrePrefixes.cableGt01.get(Materials.Aluminium), 'K', + ItemList.Circuit_Chip_LPIC }); + GT_ModHandler.addCraftingRecipe( + ItemList.Transformer_LuV_IV.get(1L), + bitsd, + new Object[] { "KBB", "CM ", "KBB", 'M', ItemList.Hull_IV, 'C', + OrePrefixes.cableGt01.get(Materials.VanadiumGallium), 'B', + OrePrefixes.cableGt01.get(Materials.Tungsten), 'K', ItemList.Circuit_Chip_PIC }); + GT_ModHandler.addCraftingRecipe( + ItemList.Transformer_ZPM_LuV.get(1L), + bitsd, + new Object[] { "KBB", "CM ", "KBB", 'M', ItemList.Hull_LuV, 'C', + OrePrefixes.cableGt01.get(Materials.Naquadah), 'B', + OrePrefixes.cableGt01.get(Materials.VanadiumGallium), 'K', ItemList.Circuit_Chip_HPIC }); + GT_ModHandler.addCraftingRecipe( + ItemList.Transformer_UV_ZPM.get(1L), + bitsd, + new Object[] { "KBB", "CM ", "KBB", 'M', ItemList.Hull_ZPM, 'C', + OrePrefixes.cableGt01.get(Materials.NaquadahAlloy), 'B', OrePrefixes.cableGt01.get(Materials.Naquadah), + 'K', ItemList.Circuit_Chip_UHPIC }); + GT_ModHandler.addCraftingRecipe( + ItemList.Transformer_MAX_UV.get(1L), + bitsd, + new Object[] { "KBB", "CM ", "KBB", 'M', ItemList.Hull_UV, 'C', + OrePrefixes.wireGt01.get(Materials.Bedrockium), 'B', OrePrefixes.cableGt01.get(Materials.NaquadahAlloy), + 'K', ItemList.Circuit_Chip_NPIC }); ItemList.Hatch_Dynamo_ULV.set( - new GT_MetaTileEntity_Hatch_Dynamo(30, "hatch.dynamo.tier.00", "ULV Dynamo Hatch", 0).getStackForm(1L)); - ItemList.Hatch_Dynamo_LV.set( - new GT_MetaTileEntity_Hatch_Dynamo(31, "hatch.dynamo.tier.01", "LV Dynamo Hatch", 1).getStackForm(1L)); - ItemList.Hatch_Dynamo_MV.set( - new GT_MetaTileEntity_Hatch_Dynamo(32, "hatch.dynamo.tier.02", "MV Dynamo Hatch", 2).getStackForm(1L)); - ItemList.Hatch_Dynamo_HV.set( - new GT_MetaTileEntity_Hatch_Dynamo(33, "hatch.dynamo.tier.03", "HV Dynamo Hatch", 3).getStackForm(1L)); - ItemList.Hatch_Dynamo_EV.set( - new GT_MetaTileEntity_Hatch_Dynamo(34, "hatch.dynamo.tier.04", "EV Dynamo Hatch", 4).getStackForm(1L)); - ItemList.Hatch_Dynamo_IV.set( - new GT_MetaTileEntity_Hatch_Dynamo(35, "hatch.dynamo.tier.05", "IV Dynamo Hatch", 5).getStackForm(1L)); + new GT_MetaTileEntity_Hatch_Dynamo(30, "hatch.dynamo.tier.00", "ULV Dynamo Hatch", 0).getStackForm(1L)); + ItemList.Hatch_Dynamo_LV + .set(new GT_MetaTileEntity_Hatch_Dynamo(31, "hatch.dynamo.tier.01", "LV Dynamo Hatch", 1).getStackForm(1L)); + ItemList.Hatch_Dynamo_MV + .set(new GT_MetaTileEntity_Hatch_Dynamo(32, "hatch.dynamo.tier.02", "MV Dynamo Hatch", 2).getStackForm(1L)); + ItemList.Hatch_Dynamo_HV + .set(new GT_MetaTileEntity_Hatch_Dynamo(33, "hatch.dynamo.tier.03", "HV Dynamo Hatch", 3).getStackForm(1L)); + ItemList.Hatch_Dynamo_EV + .set(new GT_MetaTileEntity_Hatch_Dynamo(34, "hatch.dynamo.tier.04", "EV Dynamo Hatch", 4).getStackForm(1L)); + ItemList.Hatch_Dynamo_IV + .set(new GT_MetaTileEntity_Hatch_Dynamo(35, "hatch.dynamo.tier.05", "IV Dynamo Hatch", 5).getStackForm(1L)); ItemList.Hatch_Dynamo_LuV.set( - new GT_MetaTileEntity_Hatch_Dynamo(36, "hatch.dynamo.tier.06", "LuV Dynamo Hatch", 6).getStackForm(1L)); + new GT_MetaTileEntity_Hatch_Dynamo(36, "hatch.dynamo.tier.06", "LuV Dynamo Hatch", 6).getStackForm(1L)); ItemList.Hatch_Dynamo_ZPM.set( - new GT_MetaTileEntity_Hatch_Dynamo(37, "hatch.dynamo.tier.07", "ZPM Dynamo Hatch", 7).getStackForm(1L)); - ItemList.Hatch_Dynamo_UV.set( - new GT_MetaTileEntity_Hatch_Dynamo(38, "hatch.dynamo.tier.08", "UV Dynamo Hatch", 8).getStackForm(1L)); + new GT_MetaTileEntity_Hatch_Dynamo(37, "hatch.dynamo.tier.07", "ZPM Dynamo Hatch", 7).getStackForm(1L)); + ItemList.Hatch_Dynamo_UV + .set(new GT_MetaTileEntity_Hatch_Dynamo(38, "hatch.dynamo.tier.08", "UV Dynamo Hatch", 8).getStackForm(1L)); ItemList.Hatch_Dynamo_MAX.set( - new GT_MetaTileEntity_Hatch_Dynamo(39, "hatch.dynamo.tier.09", "UHV Dynamo Hatch", 9).getStackForm(1L)); - - GT_ModHandler.addCraftingRecipe( - ItemList.Hatch_Dynamo_ULV.get(1L), - bitsd, - new Object[] { "XOL", "SMP", "XOL", 'M', ItemList.Hull_ULV, 'S', OrePrefixes.spring.get(Materials.Lead), - 'X', OrePrefixes.circuit.get(Materials.Primitive), 'O', ItemList.ULV_Coil, 'L', - OrePrefixes.cell.get(Materials.Lubricant), 'P', OrePrefixes.rotor.get(Materials.Lead) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Hatch_Dynamo_LV.get(1L), - bitsd, - new Object[] { "XOL", "SMP", "XOL", 'M', ItemList.Hull_LV, 'S', OrePrefixes.spring.get(Materials.Tin), - 'X', OrePrefixes.circuit.get(Materials.Basic), 'O', ItemList.LV_Coil, 'L', - OrePrefixes.cell.get(Materials.Lubricant), 'P', ItemList.Electric_Pump_LV }); - GT_ModHandler.addCraftingRecipe( - ItemList.Hatch_Dynamo_MV.get(1L), - bitsd, - new Object[] { "XOL", "SMP", "XOL", 'M', ItemList.Hull_MV, 'S', - OrePrefixes.spring.get(Materials.Copper), 'X', ItemList.Circuit_Chip_ULPIC, 'O', - ItemList.MV_Coil, 'L', OrePrefixes.cell.get(Materials.Lubricant), 'P', - ItemList.Electric_Pump_MV }); + new GT_MetaTileEntity_Hatch_Dynamo(39, "hatch.dynamo.tier.09", "UHV Dynamo Hatch", 9).getStackForm(1L)); + + GT_ModHandler.addCraftingRecipe( + ItemList.Hatch_Dynamo_ULV.get(1L), + bitsd, + new Object[] { "XOL", "SMP", "XOL", 'M', ItemList.Hull_ULV, 'S', OrePrefixes.spring.get(Materials.Lead), + 'X', OrePrefixes.circuit.get(Materials.Primitive), 'O', ItemList.ULV_Coil, 'L', + OrePrefixes.cell.get(Materials.Lubricant), 'P', OrePrefixes.rotor.get(Materials.Lead) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Hatch_Dynamo_LV.get(1L), + bitsd, + new Object[] { "XOL", "SMP", "XOL", 'M', ItemList.Hull_LV, 'S', OrePrefixes.spring.get(Materials.Tin), 'X', + OrePrefixes.circuit.get(Materials.Basic), 'O', ItemList.LV_Coil, 'L', + OrePrefixes.cell.get(Materials.Lubricant), 'P', ItemList.Electric_Pump_LV }); + GT_ModHandler.addCraftingRecipe( + ItemList.Hatch_Dynamo_MV.get(1L), + bitsd, + new Object[] { "XOL", "SMP", "XOL", 'M', ItemList.Hull_MV, 'S', OrePrefixes.spring.get(Materials.Copper), + 'X', ItemList.Circuit_Chip_ULPIC, 'O', ItemList.MV_Coil, 'L', OrePrefixes.cell.get(Materials.Lubricant), + 'P', ItemList.Electric_Pump_MV }); // 1234 ItemList.Hatch_Energy_ULV.set( - new GT_MetaTileEntity_Hatch_Energy(40, "hatch.energy.tier.00", "ULV Energy Hatch", 0).getStackForm(1L)); - ItemList.Hatch_Energy_LV.set( - new GT_MetaTileEntity_Hatch_Energy(41, "hatch.energy.tier.01", "LV Energy Hatch", 1).getStackForm(1L)); - ItemList.Hatch_Energy_MV.set( - new GT_MetaTileEntity_Hatch_Energy(42, "hatch.energy.tier.02", "MV Energy Hatch", 2).getStackForm(1L)); - ItemList.Hatch_Energy_HV.set( - new GT_MetaTileEntity_Hatch_Energy(43, "hatch.energy.tier.03", "HV Energy Hatch", 3).getStackForm(1L)); - ItemList.Hatch_Energy_EV.set( - new GT_MetaTileEntity_Hatch_Energy(44, "hatch.energy.tier.04", "EV Energy Hatch", 4).getStackForm(1L)); - ItemList.Hatch_Energy_IV.set( - new GT_MetaTileEntity_Hatch_Energy(45, "hatch.energy.tier.05", "IV Energy Hatch", 5).getStackForm(1L)); + new GT_MetaTileEntity_Hatch_Energy(40, "hatch.energy.tier.00", "ULV Energy Hatch", 0).getStackForm(1L)); + ItemList.Hatch_Energy_LV + .set(new GT_MetaTileEntity_Hatch_Energy(41, "hatch.energy.tier.01", "LV Energy Hatch", 1).getStackForm(1L)); + ItemList.Hatch_Energy_MV + .set(new GT_MetaTileEntity_Hatch_Energy(42, "hatch.energy.tier.02", "MV Energy Hatch", 2).getStackForm(1L)); + ItemList.Hatch_Energy_HV + .set(new GT_MetaTileEntity_Hatch_Energy(43, "hatch.energy.tier.03", "HV Energy Hatch", 3).getStackForm(1L)); + ItemList.Hatch_Energy_EV + .set(new GT_MetaTileEntity_Hatch_Energy(44, "hatch.energy.tier.04", "EV Energy Hatch", 4).getStackForm(1L)); + ItemList.Hatch_Energy_IV + .set(new GT_MetaTileEntity_Hatch_Energy(45, "hatch.energy.tier.05", "IV Energy Hatch", 5).getStackForm(1L)); ItemList.Hatch_Energy_LuV.set( - new GT_MetaTileEntity_Hatch_Energy(46, "hatch.energy.tier.06", "LuV Energy Hatch", 6).getStackForm(1L)); + new GT_MetaTileEntity_Hatch_Energy(46, "hatch.energy.tier.06", "LuV Energy Hatch", 6).getStackForm(1L)); ItemList.Hatch_Energy_ZPM.set( - new GT_MetaTileEntity_Hatch_Energy(47, "hatch.energy.tier.07", "ZPM Energy Hatch", 7).getStackForm(1L)); - ItemList.Hatch_Energy_UV.set( - new GT_MetaTileEntity_Hatch_Energy(48, "hatch.energy.tier.08", "UV Energy Hatch", 8).getStackForm(1L)); + new GT_MetaTileEntity_Hatch_Energy(47, "hatch.energy.tier.07", "ZPM Energy Hatch", 7).getStackForm(1L)); + ItemList.Hatch_Energy_UV + .set(new GT_MetaTileEntity_Hatch_Energy(48, "hatch.energy.tier.08", "UV Energy Hatch", 8).getStackForm(1L)); ItemList.Hatch_Energy_MAX.set( - new GT_MetaTileEntity_Hatch_Energy(49, "hatch.energy.tier.09", "UHV Energy Hatch", 9).getStackForm(1L)); - - GT_ModHandler.addCraftingRecipe( - ItemList.Hatch_Energy_ULV.get(1L), - bitsd, - new Object[] { "COL", "XMP", "COL", 'M', ItemList.Hull_ULV, 'C', - OrePrefixes.cableGt01.get(Materials.Lead), 'X', OrePrefixes.circuit.get(Materials.Primitive), - 'O', ItemList.ULV_Coil, 'L', OrePrefixes.cell.get(Materials.Lubricant), 'P', - OrePrefixes.rotor.get(Materials.Lead) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Hatch_Energy_LV.get(1L), - bitsd, - new Object[] { "COL", "XMP", "COL", 'M', ItemList.Hull_LV, 'C', - OrePrefixes.cableGt01.get(Materials.Tin), 'X', OrePrefixes.circuit.get(Materials.Basic), 'O', - ItemList.LV_Coil, 'L', OrePrefixes.cell.get(Materials.Lubricant), 'P', - ItemList.Electric_Pump_LV }); - GT_ModHandler.addCraftingRecipe( - ItemList.Hatch_Energy_MV.get(1L), - bitsd, - new Object[] { "XOL", "CMP", "XOL", 'M', ItemList.Hull_MV, 'C', - OrePrefixes.cableGt01.get(Materials.Copper), 'X', ItemList.Circuit_Chip_ULPIC, 'O', - ItemList.MV_Coil, 'L', OrePrefixes.cell.get(Materials.Lubricant), 'P', - ItemList.Electric_Pump_MV }); - - ItemList.Hatch_Input_ULV.set( - new GT_MetaTileEntity_Hatch_Input(50, "hatch.input.tier.00", "Input Hatch (ULV)", 0).getStackForm(1L)); - ItemList.Hatch_Input_LV.set( - new GT_MetaTileEntity_Hatch_Input(51, "hatch.input.tier.01", "Input Hatch (LV)", 1).getStackForm(1L)); - ItemList.Hatch_Input_MV.set( - new GT_MetaTileEntity_Hatch_Input(52, "hatch.input.tier.02", "Input Hatch (MV)", 2).getStackForm(1L)); - ItemList.Hatch_Input_HV.set( - new GT_MetaTileEntity_Hatch_Input(53, "hatch.input.tier.03", "Input Hatch (HV)", 3).getStackForm(1L)); - ItemList.Hatch_Input_EV.set( - new GT_MetaTileEntity_Hatch_Input(54, "hatch.input.tier.04", "Input Hatch (EV)", 4).getStackForm(1L)); - ItemList.Hatch_Input_IV.set( - new GT_MetaTileEntity_Hatch_Input(55, "hatch.input.tier.05", "Input Hatch (IV)", 5).getStackForm(1L)); - ItemList.Hatch_Input_LuV.set( - new GT_MetaTileEntity_Hatch_Input(56, "hatch.input.tier.06", "Input Hatch (LuV)", 6).getStackForm(1L)); - ItemList.Hatch_Input_ZPM.set( - new GT_MetaTileEntity_Hatch_Input(57, "hatch.input.tier.07", "Input Hatch (ZPM)", 7).getStackForm(1L)); - ItemList.Hatch_Input_UV.set( - new GT_MetaTileEntity_Hatch_Input(58, "hatch.input.tier.08", "Input Hatch (UV)", 8).getStackForm(1L)); - ItemList.Hatch_Input_MAX.set( - new GT_MetaTileEntity_Hatch_Input(59, "hatch.input.tier.09", "Input Hatch (UHV)", 9).getStackForm(1L)); + new GT_MetaTileEntity_Hatch_Energy(49, "hatch.energy.tier.09", "UHV Energy Hatch", 9).getStackForm(1L)); + + GT_ModHandler.addCraftingRecipe( + ItemList.Hatch_Energy_ULV.get(1L), + bitsd, + new Object[] { "COL", "XMP", "COL", 'M', ItemList.Hull_ULV, 'C', OrePrefixes.cableGt01.get(Materials.Lead), + 'X', OrePrefixes.circuit.get(Materials.Primitive), 'O', ItemList.ULV_Coil, 'L', + OrePrefixes.cell.get(Materials.Lubricant), 'P', OrePrefixes.rotor.get(Materials.Lead) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Hatch_Energy_LV.get(1L), + bitsd, + new Object[] { "COL", "XMP", "COL", 'M', ItemList.Hull_LV, 'C', OrePrefixes.cableGt01.get(Materials.Tin), + 'X', OrePrefixes.circuit.get(Materials.Basic), 'O', ItemList.LV_Coil, 'L', + OrePrefixes.cell.get(Materials.Lubricant), 'P', ItemList.Electric_Pump_LV }); + GT_ModHandler.addCraftingRecipe( + ItemList.Hatch_Energy_MV.get(1L), + bitsd, + new Object[] { "XOL", "CMP", "XOL", 'M', ItemList.Hull_MV, 'C', OrePrefixes.cableGt01.get(Materials.Copper), + 'X', ItemList.Circuit_Chip_ULPIC, 'O', ItemList.MV_Coil, 'L', OrePrefixes.cell.get(Materials.Lubricant), + 'P', ItemList.Electric_Pump_MV }); + + ItemList.Hatch_Input_ULV + .set(new GT_MetaTileEntity_Hatch_Input(50, "hatch.input.tier.00", "Input Hatch (ULV)", 0).getStackForm(1L)); + ItemList.Hatch_Input_LV + .set(new GT_MetaTileEntity_Hatch_Input(51, "hatch.input.tier.01", "Input Hatch (LV)", 1).getStackForm(1L)); + ItemList.Hatch_Input_MV + .set(new GT_MetaTileEntity_Hatch_Input(52, "hatch.input.tier.02", "Input Hatch (MV)", 2).getStackForm(1L)); + ItemList.Hatch_Input_HV + .set(new GT_MetaTileEntity_Hatch_Input(53, "hatch.input.tier.03", "Input Hatch (HV)", 3).getStackForm(1L)); + ItemList.Hatch_Input_EV + .set(new GT_MetaTileEntity_Hatch_Input(54, "hatch.input.tier.04", "Input Hatch (EV)", 4).getStackForm(1L)); + ItemList.Hatch_Input_IV + .set(new GT_MetaTileEntity_Hatch_Input(55, "hatch.input.tier.05", "Input Hatch (IV)", 5).getStackForm(1L)); + ItemList.Hatch_Input_LuV + .set(new GT_MetaTileEntity_Hatch_Input(56, "hatch.input.tier.06", "Input Hatch (LuV)", 6).getStackForm(1L)); + ItemList.Hatch_Input_ZPM + .set(new GT_MetaTileEntity_Hatch_Input(57, "hatch.input.tier.07", "Input Hatch (ZPM)", 7).getStackForm(1L)); + ItemList.Hatch_Input_UV + .set(new GT_MetaTileEntity_Hatch_Input(58, "hatch.input.tier.08", "Input Hatch (UV)", 8).getStackForm(1L)); + ItemList.Hatch_Input_MAX + .set(new GT_MetaTileEntity_Hatch_Input(59, "hatch.input.tier.09", "Input Hatch (UHV)", 9).getStackForm(1L)); ItemList.Hatch_Input_Multi_2x2_EV.set( - new GT_MetaTileEntity_Hatch_MultiInput( - 200, - 4, - "hatch.multi.input.tier.01", - "Quadruple Input Hatch (EV)", - 4).getStackForm(1L)); + new GT_MetaTileEntity_Hatch_MultiInput(200, 4, "hatch.multi.input.tier.01", "Quadruple Input Hatch (EV)", 4) + .getStackForm(1L)); ItemList.Hatch_Input_Multi_2x2_IV.set( - new GT_MetaTileEntity_Hatch_MultiInput( - 710, - 4, - "hatch.multi.input.tier.02", - "Quadruple Input Hatch (IV)", - 5).getStackForm(1L)); + new GT_MetaTileEntity_Hatch_MultiInput(710, 4, "hatch.multi.input.tier.02", "Quadruple Input Hatch (IV)", 5) + .getStackForm(1L)); ItemList.Hatch_Input_Multi_2x2_LuV.set( - new GT_MetaTileEntity_Hatch_MultiInput( - 711, - 4, - "hatch.multi.input.tier.03", - "Quadruple Input Hatch (LuV)", - 6).getStackForm(1L)); + new GT_MetaTileEntity_Hatch_MultiInput( + 711, + 4, + "hatch.multi.input.tier.03", + "Quadruple Input Hatch (LuV)", + 6).getStackForm(1L)); ItemList.Hatch_Input_Multi_2x2_ZPM.set( - new GT_MetaTileEntity_Hatch_MultiInput( - 712, - 4, - "hatch.multi.input.tier.04", - "Quadruple Input Hatch (ZPM)", - 7).getStackForm(1L)); + new GT_MetaTileEntity_Hatch_MultiInput( + 712, + 4, + "hatch.multi.input.tier.04", + "Quadruple Input Hatch (ZPM)", + 7).getStackForm(1L)); ItemList.Hatch_Input_Multi_2x2_UV.set( - new GT_MetaTileEntity_Hatch_MultiInput( - 713, - 4, - "hatch.multi.input.tier.05", - "Quadruple Input Hatch (UV)", - 8).getStackForm(1L)); + new GT_MetaTileEntity_Hatch_MultiInput(713, 4, "hatch.multi.input.tier.05", "Quadruple Input Hatch (UV)", 8) + .getStackForm(1L)); ItemList.Hatch_Input_Multi_2x2_UHV.set( - new GT_MetaTileEntity_Hatch_MultiInput( - 714, - 4, - "hatch.multi.input.tier.06", - "Quadruple Input Hatch (UHV)", - 9).getStackForm(1L)); + new GT_MetaTileEntity_Hatch_MultiInput( + 714, + 4, + "hatch.multi.input.tier.06", + "Quadruple Input Hatch (UHV)", + 9).getStackForm(1L)); ItemList.Hatch_Input_Multi_2x2_UEV.set( - new GT_MetaTileEntity_Hatch_MultiInput( - 715, - 4, - "hatch.multi.input.tier.07", - "Quadruple Input Hatch (UEV)", - 10).getStackForm(1L)); + new GT_MetaTileEntity_Hatch_MultiInput( + 715, + 4, + "hatch.multi.input.tier.07", + "Quadruple Input Hatch (UEV)", + 10).getStackForm(1L)); ItemList.Hatch_Input_Multi_2x2_UIV.set( - new GT_MetaTileEntity_Hatch_MultiInput( - 716, - 4, - "hatch.multi.input.tier.08", - "Quadruple Input Hatch (UIV)", - 11).getStackForm(1L)); + new GT_MetaTileEntity_Hatch_MultiInput( + 716, + 4, + "hatch.multi.input.tier.08", + "Quadruple Input Hatch (UIV)", + 11).getStackForm(1L)); ItemList.Hatch_Output_ULV.set( - new GT_MetaTileEntity_Hatch_Output(60, "hatch.output.tier.00", "Output Hatch (ULV)", 0).getStackForm( - 1L)); + new GT_MetaTileEntity_Hatch_Output(60, "hatch.output.tier.00", "Output Hatch (ULV)", 0).getStackForm(1L)); ItemList.Hatch_Output_LV.set( - new GT_MetaTileEntity_Hatch_Output(61, "hatch.output.tier.01", "Output Hatch (LV)", 1).getStackForm( - 1L)); + new GT_MetaTileEntity_Hatch_Output(61, "hatch.output.tier.01", "Output Hatch (LV)", 1).getStackForm(1L)); ItemList.Hatch_Output_MV.set( - new GT_MetaTileEntity_Hatch_Output(62, "hatch.output.tier.02", "Output Hatch (MV)", 2).getStackForm( - 1L)); + new GT_MetaTileEntity_Hatch_Output(62, "hatch.output.tier.02", "Output Hatch (MV)", 2).getStackForm(1L)); ItemList.Hatch_Output_HV.set( - new GT_MetaTileEntity_Hatch_Output(63, "hatch.output.tier.03", "Output Hatch (HV)", 3).getStackForm( - 1L)); + new GT_MetaTileEntity_Hatch_Output(63, "hatch.output.tier.03", "Output Hatch (HV)", 3).getStackForm(1L)); ItemList.Hatch_Output_EV.set( - new GT_MetaTileEntity_Hatch_Output(64, "hatch.output.tier.04", "Output Hatch (EV)", 4).getStackForm( - 1L)); + new GT_MetaTileEntity_Hatch_Output(64, "hatch.output.tier.04", "Output Hatch (EV)", 4).getStackForm(1L)); ItemList.Hatch_Output_IV.set( - new GT_MetaTileEntity_Hatch_Output(65, "hatch.output.tier.05", "Output Hatch (IV)", 5).getStackForm( - 1L)); + new GT_MetaTileEntity_Hatch_Output(65, "hatch.output.tier.05", "Output Hatch (IV)", 5).getStackForm(1L)); ItemList.Hatch_Output_LuV.set( - new GT_MetaTileEntity_Hatch_Output(66, "hatch.output.tier.06", "Output Hatch (LuV)", 6).getStackForm( - 1L)); + new GT_MetaTileEntity_Hatch_Output(66, "hatch.output.tier.06", "Output Hatch (LuV)", 6).getStackForm(1L)); ItemList.Hatch_Output_ZPM.set( - new GT_MetaTileEntity_Hatch_Output(67, "hatch.output.tier.07", "Output Hatch (ZPM)", 7).getStackForm( - 1L)); + new GT_MetaTileEntity_Hatch_Output(67, "hatch.output.tier.07", "Output Hatch (ZPM)", 7).getStackForm(1L)); ItemList.Hatch_Output_UV.set( - new GT_MetaTileEntity_Hatch_Output(68, "hatch.output.tier.08", "Output Hatch (UV)", 8).getStackForm( - 1L)); + new GT_MetaTileEntity_Hatch_Output(68, "hatch.output.tier.08", "Output Hatch (UV)", 8).getStackForm(1L)); ItemList.Hatch_Output_MAX.set( - new GT_MetaTileEntity_Hatch_Output(69, "hatch.output.tier.09", "Output Hatch (UHV)", 9).getStackForm( - 1L)); + new GT_MetaTileEntity_Hatch_Output(69, "hatch.output.tier.09", "Output Hatch (UHV)", 9).getStackForm(1L)); - ItemList.Quantum_Tank_LV.set( - new GT_MetaTileEntity_QuantumTank(120, "quantum.tank.tier.06", "Quantum Tank I", 6).getStackForm(1L)); - ItemList.Quantum_Tank_MV.set( - new GT_MetaTileEntity_QuantumTank(121, "quantum.tank.tier.07", "Quantum Tank II", 7).getStackForm(1L)); + ItemList.Quantum_Tank_LV + .set(new GT_MetaTileEntity_QuantumTank(120, "quantum.tank.tier.06", "Quantum Tank I", 6).getStackForm(1L)); + ItemList.Quantum_Tank_MV + .set(new GT_MetaTileEntity_QuantumTank(121, "quantum.tank.tier.07", "Quantum Tank II", 7).getStackForm(1L)); ItemList.Quantum_Tank_HV.set( - new GT_MetaTileEntity_QuantumTank(122, "quantum.tank.tier.08", "Quantum Tank III", 8).getStackForm(1L)); - ItemList.Quantum_Tank_EV.set( - new GT_MetaTileEntity_QuantumTank(123, "quantum.tank.tier.09", "Quantum Tank IV", 9).getStackForm(1L)); - ItemList.Quantum_Tank_IV.set( - new GT_MetaTileEntity_QuantumTank(124, "quantum.tank.tier.10", "Quantum Tank V", 10).getStackForm(1L)); + new GT_MetaTileEntity_QuantumTank(122, "quantum.tank.tier.08", "Quantum Tank III", 8).getStackForm(1L)); + ItemList.Quantum_Tank_EV + .set(new GT_MetaTileEntity_QuantumTank(123, "quantum.tank.tier.09", "Quantum Tank IV", 9).getStackForm(1L)); + ItemList.Quantum_Tank_IV + .set(new GT_MetaTileEntity_QuantumTank(124, "quantum.tank.tier.10", "Quantum Tank V", 10).getStackForm(1L)); ItemList.Quantum_Chest_LV.set( - new GT_MetaTileEntity_QuantumChest(125, "quantum.chest.tier.06", "Quantum Chest I", 6).getStackForm( - 1L)); + new GT_MetaTileEntity_QuantumChest(125, "quantum.chest.tier.06", "Quantum Chest I", 6).getStackForm(1L)); ItemList.Quantum_Chest_MV.set( - new GT_MetaTileEntity_QuantumChest(126, "quantum.chest.tier.07", "Quantum Chest II", 7).getStackForm( - 1L)); + new GT_MetaTileEntity_QuantumChest(126, "quantum.chest.tier.07", "Quantum Chest II", 7).getStackForm(1L)); ItemList.Quantum_Chest_HV.set( - new GT_MetaTileEntity_QuantumChest(127, "quantum.chest.tier.08", "Quantum Chest III", 8).getStackForm( - 1L)); + new GT_MetaTileEntity_QuantumChest(127, "quantum.chest.tier.08", "Quantum Chest III", 8).getStackForm(1L)); ItemList.Quantum_Chest_EV.set( - new GT_MetaTileEntity_QuantumChest(128, "quantum.chest.tier.09", "Quantum Chest IV", 9).getStackForm( - 1L)); + new GT_MetaTileEntity_QuantumChest(128, "quantum.chest.tier.09", "Quantum Chest IV", 9).getStackForm(1L)); ItemList.Quantum_Chest_IV.set( - new GT_MetaTileEntity_QuantumChest(129, "quantum.chest.tier.10", "Quantum Chest V", 10).getStackForm( - 1L)); - - ItemList.Super_Tank_LV.set( - new GT_MetaTileEntity_SuperTank(130, "super.tank.tier.01", "Super Tank I", 1).getStackForm(1L)); - ItemList.Super_Tank_MV.set( - new GT_MetaTileEntity_SuperTank(131, "super.tank.tier.02", "Super Tank II", 2).getStackForm(1L)); - ItemList.Super_Tank_HV.set( - new GT_MetaTileEntity_SuperTank(132, "super.tank.tier.03", "Super Tank III", 3).getStackForm(1L)); - ItemList.Super_Tank_EV.set( - new GT_MetaTileEntity_SuperTank(133, "super.tank.tier.04", "Super Tank IV", 4).getStackForm(1L)); - ItemList.Super_Tank_IV.set( - new GT_MetaTileEntity_SuperTank(134, "super.tank.tier.05", "Super Tank V", 5).getStackForm(1L)); - - ItemList.Super_Chest_LV.set( - new GT_MetaTileEntity_SuperChest(135, "super.chest.tier.01", "Super Chest I", 1).getStackForm(1L)); - ItemList.Super_Chest_MV.set( - new GT_MetaTileEntity_SuperChest(136, "super.chest.tier.02", "Super Chest II", 2).getStackForm(1L)); - ItemList.Super_Chest_HV.set( - new GT_MetaTileEntity_SuperChest(137, "super.chest.tier.03", "Super Chest III", 3).getStackForm(1L)); - ItemList.Super_Chest_EV.set( - new GT_MetaTileEntity_SuperChest(138, "super.chest.tier.04", "Super Chest IV", 4).getStackForm(1L)); - ItemList.Super_Chest_IV.set( - new GT_MetaTileEntity_SuperChest(139, "super.chest.tier.05", "Super Chest V", 5).getStackForm(1L)); + new GT_MetaTileEntity_QuantumChest(129, "quantum.chest.tier.10", "Quantum Chest V", 10).getStackForm(1L)); + + ItemList.Super_Tank_LV + .set(new GT_MetaTileEntity_SuperTank(130, "super.tank.tier.01", "Super Tank I", 1).getStackForm(1L)); + ItemList.Super_Tank_MV + .set(new GT_MetaTileEntity_SuperTank(131, "super.tank.tier.02", "Super Tank II", 2).getStackForm(1L)); + ItemList.Super_Tank_HV + .set(new GT_MetaTileEntity_SuperTank(132, "super.tank.tier.03", "Super Tank III", 3).getStackForm(1L)); + ItemList.Super_Tank_EV + .set(new GT_MetaTileEntity_SuperTank(133, "super.tank.tier.04", "Super Tank IV", 4).getStackForm(1L)); + ItemList.Super_Tank_IV + .set(new GT_MetaTileEntity_SuperTank(134, "super.tank.tier.05", "Super Tank V", 5).getStackForm(1L)); + + ItemList.Super_Chest_LV + .set(new GT_MetaTileEntity_SuperChest(135, "super.chest.tier.01", "Super Chest I", 1).getStackForm(1L)); + ItemList.Super_Chest_MV + .set(new GT_MetaTileEntity_SuperChest(136, "super.chest.tier.02", "Super Chest II", 2).getStackForm(1L)); + ItemList.Super_Chest_HV + .set(new GT_MetaTileEntity_SuperChest(137, "super.chest.tier.03", "Super Chest III", 3).getStackForm(1L)); + ItemList.Super_Chest_EV + .set(new GT_MetaTileEntity_SuperChest(138, "super.chest.tier.04", "Super Chest IV", 4).getStackForm(1L)); + ItemList.Super_Chest_IV + .set(new GT_MetaTileEntity_SuperChest(139, "super.chest.tier.05", "Super Chest V", 5).getStackForm(1L)); ItemList.Long_Distance_Pipeline_Fluid.set( - new GT_MetaTileEntity_LongDistancePipelineFluid( - 2700, - "long.distance.pipeline.fluid", - "Long Distance Fluid Pipeline", - 1).getStackForm(1L)); + new GT_MetaTileEntity_LongDistancePipelineFluid( + 2700, + "long.distance.pipeline.fluid", + "Long Distance Fluid Pipeline", + 1).getStackForm(1L)); ItemList.Long_Distance_Pipeline_Item.set( - new GT_MetaTileEntity_LongDistancePipelineItem( - 2701, - "long.distance.pipeline.item", - "Long Distance Item Pipeline", - 1).getStackForm(1L)); + new GT_MetaTileEntity_LongDistancePipelineItem( + 2701, + "long.distance.pipeline.item", + "Long Distance Item Pipeline", + 1).getStackForm(1L)); ItemList.AdvDebugStructureWriter.set( - new GT_MetaTileEntity_AdvDebugStructureWriter( - 349, - "advdebugstructurewriter", - "Advanced Debug Structure Writer", - 5).getStackForm(1L)); + new GT_MetaTileEntity_AdvDebugStructureWriter( + 349, + "advdebugstructurewriter", + "Advanced Debug Structure Writer", + 5).getStackForm(1L)); if (GregTech_API.mAE2) { ItemList.Hatch_Output_Bus_ME.set( - new GT_MetaTileEntity_Hatch_OutputBus_ME( - 2710, - "hatch.output_bus.me", - "Output Bus (ME)").getStackForm(1L)); + new GT_MetaTileEntity_Hatch_OutputBus_ME(2710, "hatch.output_bus.me", "Output Bus (ME)") + .getStackForm(1L)); ItemList.Hatch_Input_Bus_ME.set( - new GT_MetaTileEntity_Hatch_InputBus_ME( - 2711, - "hatch.input_bus.me", - "Stocking Input Bus (ME)").getStackForm(1L)); + new GT_MetaTileEntity_Hatch_InputBus_ME(2711, "hatch.input_bus.me", "Stocking Input Bus (ME)") + .getStackForm(1L)); // ItemList.Hatch_CraftingInput_Bus_ME.set(new GT_MetaTileEntity_Hatch_CraftingInputBus_ME(2712, // "hatch.crafting_input_bus.me", "Crafting Input Bus (ME)").getStackForm(1L)); ItemList.Hatch_Output_ME.set( - new GT_MetaTileEntity_Hatch_Output_ME(2713, "hatch.output.me", "Output Hatch (ME)").getStackForm( - 1L)); + new GT_MetaTileEntity_Hatch_Output_ME(2713, "hatch.output.me", "Output Hatch (ME)").getStackForm(1L)); } ItemList.Hatch_Input_Bus_ULV.set( - new GT_MetaTileEntity_Hatch_InputBus(70, "hatch.input_bus.tier.00", "Input Bus (ULV)", 0).getStackForm( - 1L)); + new GT_MetaTileEntity_Hatch_InputBus(70, "hatch.input_bus.tier.00", "Input Bus (ULV)", 0).getStackForm(1L)); ItemList.Hatch_Input_Bus_LV.set( - new GT_MetaTileEntity_Hatch_InputBus(71, "hatch.input_bus.tier.01", "Input Bus (LV)", 1).getStackForm( - 1L)); + new GT_MetaTileEntity_Hatch_InputBus(71, "hatch.input_bus.tier.01", "Input Bus (LV)", 1).getStackForm(1L)); ItemList.Hatch_Input_Bus_MV.set( - new GT_MetaTileEntity_Hatch_InputBus(72, "hatch.input_bus.tier.02", "Input Bus (MV)", 2).getStackForm( - 1L)); + new GT_MetaTileEntity_Hatch_InputBus(72, "hatch.input_bus.tier.02", "Input Bus (MV)", 2).getStackForm(1L)); ItemList.Hatch_Input_Bus_HV.set( - new GT_MetaTileEntity_Hatch_InputBus(73, "hatch.input_bus.tier.03", "Input Bus (HV)", 3).getStackForm( - 1L)); + new GT_MetaTileEntity_Hatch_InputBus(73, "hatch.input_bus.tier.03", "Input Bus (HV)", 3).getStackForm(1L)); ItemList.Hatch_Input_Bus_EV.set( - new GT_MetaTileEntity_Hatch_InputBus(74, "hatch.input_bus.tier.04", "Input Bus (EV)", 4).getStackForm( - 1L)); + new GT_MetaTileEntity_Hatch_InputBus(74, "hatch.input_bus.tier.04", "Input Bus (EV)", 4).getStackForm(1L)); ItemList.Hatch_Input_Bus_IV.set( - new GT_MetaTileEntity_Hatch_InputBus(75, "hatch.input_bus.tier.05", "Input Bus (IV)", 5).getStackForm( - 1L)); + new GT_MetaTileEntity_Hatch_InputBus(75, "hatch.input_bus.tier.05", "Input Bus (IV)", 5).getStackForm(1L)); ItemList.Hatch_Input_Bus_LuV.set( - new GT_MetaTileEntity_Hatch_InputBus(76, "hatch.input_bus.tier.06", "Input Bus (LuV)", 6).getStackForm( - 1L)); + new GT_MetaTileEntity_Hatch_InputBus(76, "hatch.input_bus.tier.06", "Input Bus (LuV)", 6).getStackForm(1L)); ItemList.Hatch_Input_Bus_ZPM.set( - new GT_MetaTileEntity_Hatch_InputBus(77, "hatch.input_bus.tier.07", "Input Bus (ZPM)", 7).getStackForm( - 1L)); + new GT_MetaTileEntity_Hatch_InputBus(77, "hatch.input_bus.tier.07", "Input Bus (ZPM)", 7).getStackForm(1L)); ItemList.Hatch_Input_Bus_UV.set( - new GT_MetaTileEntity_Hatch_InputBus(78, "hatch.input_bus.tier.08", "Input Bus (UV)", 8).getStackForm( - 1L)); + new GT_MetaTileEntity_Hatch_InputBus(78, "hatch.input_bus.tier.08", "Input Bus (UV)", 8).getStackForm(1L)); ItemList.Hatch_Input_Bus_MAX.set( - new GT_MetaTileEntity_Hatch_InputBus(79, "hatch.input_bus.tier.09", "Input Bus (UHV)", 9).getStackForm( - 1L)); + new GT_MetaTileEntity_Hatch_InputBus(79, "hatch.input_bus.tier.09", "Input Bus (UHV)", 9).getStackForm(1L)); ItemList.Hatch_Output_Bus_ULV.set( - new GT_MetaTileEntity_Hatch_OutputBus( - 80, - "hatch.output_bus.tier.00", - "Output Bus (ULV)", - 0).getStackForm(1L)); + new GT_MetaTileEntity_Hatch_OutputBus(80, "hatch.output_bus.tier.00", "Output Bus (ULV)", 0) + .getStackForm(1L)); ItemList.Hatch_Output_Bus_LV.set( - new GT_MetaTileEntity_Hatch_OutputBus( - 81, - "hatch.output_bus.tier.01", - "Output Bus (LV)", - 1).getStackForm(1L)); + new GT_MetaTileEntity_Hatch_OutputBus(81, "hatch.output_bus.tier.01", "Output Bus (LV)", 1) + .getStackForm(1L)); ItemList.Hatch_Output_Bus_MV.set( - new GT_MetaTileEntity_Hatch_OutputBus( - 82, - "hatch.output_bus.tier.02", - "Output Bus (MV)", - 2).getStackForm(1L)); + new GT_MetaTileEntity_Hatch_OutputBus(82, "hatch.output_bus.tier.02", "Output Bus (MV)", 2) + .getStackForm(1L)); ItemList.Hatch_Output_Bus_HV.set( - new GT_MetaTileEntity_Hatch_OutputBus( - 83, - "hatch.output_bus.tier.03", - "Output Bus (HV)", - 3).getStackForm(1L)); + new GT_MetaTileEntity_Hatch_OutputBus(83, "hatch.output_bus.tier.03", "Output Bus (HV)", 3) + .getStackForm(1L)); ItemList.Hatch_Output_Bus_EV.set( - new GT_MetaTileEntity_Hatch_OutputBus( - 84, - "hatch.output_bus.tier.04", - "Output Bus (EV)", - 4).getStackForm(1L)); + new GT_MetaTileEntity_Hatch_OutputBus(84, "hatch.output_bus.tier.04", "Output Bus (EV)", 4) + .getStackForm(1L)); ItemList.Hatch_Output_Bus_IV.set( - new GT_MetaTileEntity_Hatch_OutputBus( - 85, - "hatch.output_bus.tier.05", - "Output Bus (IV)", - 5).getStackForm(1L)); + new GT_MetaTileEntity_Hatch_OutputBus(85, "hatch.output_bus.tier.05", "Output Bus (IV)", 5) + .getStackForm(1L)); ItemList.Hatch_Output_Bus_LuV.set( - new GT_MetaTileEntity_Hatch_OutputBus( - 86, - "hatch.output_bus.tier.06", - "Output Bus (LuV)", - 6).getStackForm(1L)); + new GT_MetaTileEntity_Hatch_OutputBus(86, "hatch.output_bus.tier.06", "Output Bus (LuV)", 6) + .getStackForm(1L)); ItemList.Hatch_Output_Bus_ZPM.set( - new GT_MetaTileEntity_Hatch_OutputBus( - 87, - "hatch.output_bus.tier.07", - "Output Bus (ZPM)", - 7).getStackForm(1L)); + new GT_MetaTileEntity_Hatch_OutputBus(87, "hatch.output_bus.tier.07", "Output Bus (ZPM)", 7) + .getStackForm(1L)); ItemList.Hatch_Output_Bus_UV.set( - new GT_MetaTileEntity_Hatch_OutputBus( - 88, - "hatch.output_bus.tier.08", - "Output Bus (UV)", - 8).getStackForm(1L)); + new GT_MetaTileEntity_Hatch_OutputBus(88, "hatch.output_bus.tier.08", "Output Bus (UV)", 8) + .getStackForm(1L)); ItemList.Hatch_Output_Bus_MAX.set( - new GT_MetaTileEntity_Hatch_OutputBus( - 89, - "hatch.output_bus.tier.09", - "Output Bus (UHV)", - 9).getStackForm(1L)); + new GT_MetaTileEntity_Hatch_OutputBus(89, "hatch.output_bus.tier.09", "Output Bus (UHV)", 9) + .getStackForm(1L)); ItemList.Hatch_Maintenance.set( - new GT_MetaTileEntity_Hatch_Maintenance(90, "hatch.maintenance", "Maintenance Hatch", 1).getStackForm( - 1L)); + new GT_MetaTileEntity_Hatch_Maintenance(90, "hatch.maintenance", "Maintenance Hatch", 1).getStackForm(1L)); GT_ModHandler.addCraftingRecipe( - ItemList.Hatch_Maintenance.get(1L), - bitsd, - new Object[] { "dwx", "hMc", "fsr", 'M', ItemList.Hull_LV }); + ItemList.Hatch_Maintenance.get(1L), + bitsd, + new Object[] { "dwx", "hMc", "fsr", 'M', ItemList.Hull_LV }); GT_ModHandler.addCraftingRecipe( - ItemList.Hatch_Maintenance.get(1L), - bitsd, - new Object[] { "dwx", "hMC", "fsr", 'M', ItemList.Hull_LV, 'C', - GT_ModHandler.getModItem(Railcraft.ID, "tool.crowbar", 1L, 0) }); + ItemList.Hatch_Maintenance.get(1L), + bitsd, + new Object[] { "dwx", "hMC", "fsr", 'M', ItemList.Hull_LV, 'C', + GT_ModHandler.getModItem(Railcraft.ID, "tool.crowbar", 1L, 0) }); GT_ModHandler.addCraftingRecipe( - ItemList.Hatch_Maintenance.get(1L), - bitsd, - new Object[] { "dwx", "hMC", "fsr", 'M', ItemList.Hull_LV, 'C', - GT_ModHandler.getModItem(Railcraft.ID, "tool.crowbar.reinforced", 1L, 0) }); + ItemList.Hatch_Maintenance.get(1L), + bitsd, + new Object[] { "dwx", "hMC", "fsr", 'M', ItemList.Hull_LV, 'C', + GT_ModHandler.getModItem(Railcraft.ID, "tool.crowbar.reinforced", 1L, 0) }); GT_ModHandler.addCraftingRecipe( - ItemList.Hatch_Maintenance.get(1L), - bitsd, - new Object[] { "dwx", "hMC", "fsr", 'M', ItemList.Hull_LV, 'C', - GT_ModHandler.getModItem(Railcraft.ID, "tool.crowbar.magic", 1L, 0) }); + ItemList.Hatch_Maintenance.get(1L), + bitsd, + new Object[] { "dwx", "hMC", "fsr", 'M', ItemList.Hull_LV, 'C', + GT_ModHandler.getModItem(Railcraft.ID, "tool.crowbar.magic", 1L, 0) }); GT_ModHandler.addCraftingRecipe( - ItemList.Hatch_Maintenance.get(1L), - bitsd, - new Object[] { "dwx", "hMC", "fsr", 'M', ItemList.Hull_LV, 'C', - GT_ModHandler.getModItem(Railcraft.ID, "tool.crowbar.void", 1L, 0) }); + ItemList.Hatch_Maintenance.get(1L), + bitsd, + new Object[] { "dwx", "hMC", "fsr", 'M', ItemList.Hull_LV, 'C', + GT_ModHandler.getModItem(Railcraft.ID, "tool.crowbar.void", 1L, 0) }); ItemList.Hatch_AutoMaintenance.set( - new GT_MetaTileEntity_Hatch_Maintenance( - 111, - "hatch.maintenance.auto", - "Auto Maintenance Hatch", - 6, - true).getStackForm(1L)); + new GT_MetaTileEntity_Hatch_Maintenance(111, "hatch.maintenance.auto", "Auto Maintenance Hatch", 6, true) + .getStackForm(1L)); ItemList.Hatch_DataAccess_EV.set( - new GT_MetaTileEntity_Hatch_DataAccess(145, "hatch.dataaccess", "Data Access Hatch", 4).getStackForm( - 1L)); + new GT_MetaTileEntity_Hatch_DataAccess(145, "hatch.dataaccess", "Data Access Hatch", 4).getStackForm(1L)); ItemList.Hatch_DataAccess_LuV.set( - new GT_MetaTileEntity_Hatch_DataAccess( - 146, - "hatch.dataaccess.adv", - "Advanced Data Access Hatch", - 6).getStackForm(1L)); + new GT_MetaTileEntity_Hatch_DataAccess(146, "hatch.dataaccess.adv", "Advanced Data Access Hatch", 6) + .getStackForm(1L)); ItemList.Hatch_DataAccess_UV.set( - new GT_MetaTileEntity_Hatch_DataAccess( - 147, - "hatch.dataaccess.auto", - "Automatable Data Access Hatch", - 8).getStackForm(1L)); + new GT_MetaTileEntity_Hatch_DataAccess(147, "hatch.dataaccess.auto", "Automatable Data Access Hatch", 8) + .getStackForm(1L)); GT_ModHandler.addCraftingRecipe( - ItemList.Hatch_DataAccess_EV.get(1L), - bitsd, - new Object[] { "COC", "OMO", "COC", 'M', ItemList.Hull_EV, 'O', ItemList.Tool_DataStick, 'C', - OrePrefixes.circuit.get(Materials.Elite) }); + ItemList.Hatch_DataAccess_EV.get(1L), + bitsd, + new Object[] { "COC", "OMO", "COC", 'M', ItemList.Hull_EV, 'O', ItemList.Tool_DataStick, 'C', + OrePrefixes.circuit.get(Materials.Elite) }); GT_ModHandler.addCraftingRecipe( - ItemList.Hatch_DataAccess_LuV.get(1L), - bitsd, - new Object[] { "COC", "OMO", "COC", 'M', ItemList.Hull_LuV, 'O', ItemList.Tool_DataOrb, 'C', - OrePrefixes.circuit.get(Materials.Ultimate) }); + ItemList.Hatch_DataAccess_LuV.get(1L), + bitsd, + new Object[] { "COC", "OMO", "COC", 'M', ItemList.Hull_LuV, 'O', ItemList.Tool_DataOrb, 'C', + OrePrefixes.circuit.get(Materials.Ultimate) }); GT_ModHandler.addCraftingRecipe( - ItemList.Hatch_DataAccess_UV.get(1L), - bitsd, - new Object[] { "CRC", "OMO", "CRC", 'M', ItemList.Hull_UV, 'O', ItemList.Tool_DataOrb, 'C', - OrePrefixes.circuit.get(Materials.Infinite), 'R', ItemList.Robot_Arm_UV }); + ItemList.Hatch_DataAccess_UV.get(1L), + bitsd, + new Object[] { "CRC", "OMO", "CRC", 'M', ItemList.Hull_UV, 'O', ItemList.Tool_DataOrb, 'C', + OrePrefixes.circuit.get(Materials.Infinite), 'R', ItemList.Robot_Arm_UV }); GT_ModHandler.addCraftingRecipe( - ItemList.Hatch_AutoMaintenance.get(1L), - bitsd, - new Object[] { "CHC", "AMA", "CHC", 'M', ItemList.Hull_LuV, 'H', ItemList.Hatch_Maintenance, 'A', - ItemList.Robot_Arm_LuV, 'C', OrePrefixes.circuit.get(Materials.Ultimate) }); + ItemList.Hatch_AutoMaintenance.get(1L), + bitsd, + new Object[] { "CHC", "AMA", "CHC", 'M', ItemList.Hull_LuV, 'H', ItemList.Hatch_Maintenance, 'A', + ItemList.Robot_Arm_LuV, 'C', OrePrefixes.circuit.get(Materials.Ultimate) }); ItemList.Hatch_Muffler_LV.set( - new GT_MetaTileEntity_Hatch_Muffler(91, "hatch.muffler.tier.01", "Muffler Hatch (LV)", 1).getStackForm( - 1L)); + new GT_MetaTileEntity_Hatch_Muffler(91, "hatch.muffler.tier.01", "Muffler Hatch (LV)", 1).getStackForm(1L)); ItemList.Hatch_Muffler_MV.set( - new GT_MetaTileEntity_Hatch_Muffler(92, "hatch.muffler.tier.02", "Muffler Hatch (MV)", 2).getStackForm( - 1L)); + new GT_MetaTileEntity_Hatch_Muffler(92, "hatch.muffler.tier.02", "Muffler Hatch (MV)", 2).getStackForm(1L)); ItemList.Hatch_Muffler_HV.set( - new GT_MetaTileEntity_Hatch_Muffler(93, "hatch.muffler.tier.03", "Muffler Hatch (HV)", 3).getStackForm( - 1L)); + new GT_MetaTileEntity_Hatch_Muffler(93, "hatch.muffler.tier.03", "Muffler Hatch (HV)", 3).getStackForm(1L)); ItemList.Hatch_Muffler_EV.set( - new GT_MetaTileEntity_Hatch_Muffler(94, "hatch.muffler.tier.04", "Muffler Hatch (EV)", 4).getStackForm( - 1L)); + new GT_MetaTileEntity_Hatch_Muffler(94, "hatch.muffler.tier.04", "Muffler Hatch (EV)", 4).getStackForm(1L)); ItemList.Hatch_Muffler_IV.set( - new GT_MetaTileEntity_Hatch_Muffler(95, "hatch.muffler.tier.05", "Muffler Hatch (IV)", 5).getStackForm( - 1L)); + new GT_MetaTileEntity_Hatch_Muffler(95, "hatch.muffler.tier.05", "Muffler Hatch (IV)", 5).getStackForm(1L)); ItemList.Hatch_Muffler_LuV.set( - new GT_MetaTileEntity_Hatch_Muffler(96, "hatch.muffler.tier.06", "Muffler Hatch (LuV)", 6).getStackForm( - 1L)); + new GT_MetaTileEntity_Hatch_Muffler(96, "hatch.muffler.tier.06", "Muffler Hatch (LuV)", 6) + .getStackForm(1L)); ItemList.Hatch_Muffler_ZPM.set( - new GT_MetaTileEntity_Hatch_Muffler(97, "hatch.muffler.tier.07", "Muffler Hatch (ZPM)", 7).getStackForm( - 1L)); + new GT_MetaTileEntity_Hatch_Muffler(97, "hatch.muffler.tier.07", "Muffler Hatch (ZPM)", 7) + .getStackForm(1L)); ItemList.Hatch_Muffler_UV.set( - new GT_MetaTileEntity_Hatch_Muffler(98, "hatch.muffler.tier.08", "Muffler Hatch (UV)", 8).getStackForm( - 1L)); + new GT_MetaTileEntity_Hatch_Muffler(98, "hatch.muffler.tier.08", "Muffler Hatch (UV)", 8).getStackForm(1L)); ItemList.Hatch_Muffler_MAX.set( - new GT_MetaTileEntity_Hatch_Muffler(99, "hatch.muffler.tier.09", "Muffler Hatch (UHV)", 9).getStackForm( - 1L)); - - GT_ModHandler.addCraftingRecipe( - ItemList.Hatch_Muffler_LV.get(1L), - bitsd, - new Object[] { "MX ", "PR ", 'M', ItemList.Hull_LV, 'P', OrePrefixes.pipeMedium.get(Materials.Bronze), - 'R', OrePrefixes.rotor.get(Materials.Bronze), 'X', ItemList.Electric_Motor_LV }); - GT_ModHandler.addCraftingRecipe( - ItemList.Hatch_Muffler_MV.get(1L), - bitsd, - new Object[] { "MX ", "PR ", 'M', ItemList.Hull_MV, 'P', OrePrefixes.pipeMedium.get(Materials.Steel), - 'R', OrePrefixes.rotor.get(Materials.Steel), 'X', ItemList.Electric_Motor_MV }); - - ItemList.Machine_Bronze_Boiler.set( - new GT_MetaTileEntity_Boiler_Bronze(100, "boiler.bronze", "Small Coal Boiler").getStackForm(1L)); - ItemList.Machine_Steel_Boiler.set( - new GT_MetaTileEntity_Boiler_Steel(101, "boiler.steel", "High Pressure Coal Boiler").getStackForm(1L)); - ItemList.Machine_Steel_Boiler_Lava.set( - new GT_MetaTileEntity_Boiler_Lava(102, "boiler.lava", "High Pressure Lava Boiler").getStackForm(1L)); - ItemList.Machine_Bronze_Boiler_Solar.set( - new GT_MetaTileEntity_Boiler_Solar(105, "boiler.solar", "Simple Solar Boiler").getStackForm(1L)); + new GT_MetaTileEntity_Hatch_Muffler(99, "hatch.muffler.tier.09", "Muffler Hatch (UHV)", 9) + .getStackForm(1L)); + + GT_ModHandler.addCraftingRecipe( + ItemList.Hatch_Muffler_LV.get(1L), + bitsd, + new Object[] { "MX ", "PR ", 'M', ItemList.Hull_LV, 'P', OrePrefixes.pipeMedium.get(Materials.Bronze), 'R', + OrePrefixes.rotor.get(Materials.Bronze), 'X', ItemList.Electric_Motor_LV }); + GT_ModHandler.addCraftingRecipe( + ItemList.Hatch_Muffler_MV.get(1L), + bitsd, + new Object[] { "MX ", "PR ", 'M', ItemList.Hull_MV, 'P', OrePrefixes.pipeMedium.get(Materials.Steel), 'R', + OrePrefixes.rotor.get(Materials.Steel), 'X', ItemList.Electric_Motor_MV }); + + ItemList.Machine_Bronze_Boiler + .set(new GT_MetaTileEntity_Boiler_Bronze(100, "boiler.bronze", "Small Coal Boiler").getStackForm(1L)); + ItemList.Machine_Steel_Boiler + .set(new GT_MetaTileEntity_Boiler_Steel(101, "boiler.steel", "High Pressure Coal Boiler").getStackForm(1L)); + ItemList.Machine_Steel_Boiler_Lava + .set(new GT_MetaTileEntity_Boiler_Lava(102, "boiler.lava", "High Pressure Lava Boiler").getStackForm(1L)); + ItemList.Machine_Bronze_Boiler_Solar + .set(new GT_MetaTileEntity_Boiler_Solar(105, "boiler.solar", "Simple Solar Boiler").getStackForm(1L)); ItemList.Machine_HP_Solar.set( - new GT_MetaTileEntity_Boiler_Solar_Steel( - 114, - "boiler.steel.solar", - "High Pressure Solar Boiler").getStackForm(1L)); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_Bronze_Boiler.get(1L), - bitsd, - new Object[] { aTextPlate, "PwP", "BFB", 'F', OreDictNames.craftingIronFurnace, 'P', - OrePrefixes.plate.get(Materials.Bronze), 'B', new ItemStack(Blocks.brick_block, 1) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_Steel_Boiler.get(1L), - bitsd, - new Object[] { aTextPlate, "PwP", "BFB", 'F', OreDictNames.craftingIronFurnace, 'P', - OrePrefixes.plate.get(Materials.Steel), 'B', new ItemStack(Blocks.brick_block, 1) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_Steel_Boiler_Lava.get(1L), - bitsd, - new Object[] { aTextPlate, "PTP", aTextPlateMotor, 'M', ItemList.Hull_HP, 'P', - OrePrefixes.plate.get(Materials.Steel), 'T', - GT_ModHandler.getModItem(BuildCraftFactory.ID, "tankBlock", 1L, 0) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_Bronze_Boiler_Solar.get(1L), - bitsd, - new Object[] { "GGG", "SSS", aTextPlateMotor, 'M', ItemList.Hull_Bronze_Bricks, 'P', - OrePrefixes.pipeSmall.get(Materials.Bronze), 'S', OrePrefixes.plateDouble.get(Materials.Silver), - 'G', new ItemStack(Blocks.glass, 1) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_HP_Solar.get(1L), - bitsd, - new Object[] { "GGG", "SSS", aTextPlateMotor, 'M', ItemList.Hull_HP_Bricks, 'P', - OrePrefixes.pipeSmall.get(Materials.Steel), 'S', OrePrefixes.plateTriple.get(Materials.Silver), - 'G', GT_ModHandler.getModItem(IndustrialCraft2.ID, "blockAlloyGlass", 1L) }); + new GT_MetaTileEntity_Boiler_Solar_Steel(114, "boiler.steel.solar", "High Pressure Solar Boiler") + .getStackForm(1L)); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_Bronze_Boiler.get(1L), + bitsd, + new Object[] { aTextPlate, "PwP", "BFB", 'F', OreDictNames.craftingIronFurnace, 'P', + OrePrefixes.plate.get(Materials.Bronze), 'B', new ItemStack(Blocks.brick_block, 1) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_Steel_Boiler.get(1L), + bitsd, + new Object[] { aTextPlate, "PwP", "BFB", 'F', OreDictNames.craftingIronFurnace, 'P', + OrePrefixes.plate.get(Materials.Steel), 'B', new ItemStack(Blocks.brick_block, 1) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_Steel_Boiler_Lava.get(1L), + bitsd, + new Object[] { aTextPlate, "PTP", aTextPlateMotor, 'M', ItemList.Hull_HP, 'P', + OrePrefixes.plate.get(Materials.Steel), 'T', + GT_ModHandler.getModItem(BuildCraftFactory.ID, "tankBlock", 1L, 0) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_Bronze_Boiler_Solar.get(1L), + bitsd, + new Object[] { "GGG", "SSS", aTextPlateMotor, 'M', ItemList.Hull_Bronze_Bricks, 'P', + OrePrefixes.pipeSmall.get(Materials.Bronze), 'S', OrePrefixes.plateDouble.get(Materials.Silver), 'G', + new ItemStack(Blocks.glass, 1) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_HP_Solar.get(1L), + bitsd, + new Object[] { "GGG", "SSS", aTextPlateMotor, 'M', ItemList.Hull_HP_Bricks, 'P', + OrePrefixes.pipeSmall.get(Materials.Steel), 'S', OrePrefixes.plateTriple.get(Materials.Silver), 'G', + GT_ModHandler.getModItem(IndustrialCraft2.ID, "blockAlloyGlass", 1L) }); ItemList.Machine_Bronze_BlastFurnace.set( - new GT_MetaTileEntity_BronzeBlastFurnace( - 108, - "bronzemachine.blastfurnace", - "Bronze Plated Blast Furnace").getStackForm(1L)); - ItemList.Machine_Bronze_Furnace.set( - new GT_MetaTileEntity_Furnace_Bronze(103, "bronzemachine.furnace", "Steam Furnace").getStackForm(1L)); + new GT_MetaTileEntity_BronzeBlastFurnace(108, "bronzemachine.blastfurnace", "Bronze Plated Blast Furnace") + .getStackForm(1L)); + ItemList.Machine_Bronze_Furnace + .set(new GT_MetaTileEntity_Furnace_Bronze(103, "bronzemachine.furnace", "Steam Furnace").getStackForm(1L)); ItemList.Machine_HP_Furnace.set( - new GT_MetaTileEntity_Furnace_Steel(104, "hpmachine.furnace", "High Pressure Furnace").getStackForm( - 1L)); + new GT_MetaTileEntity_Furnace_Steel(104, "hpmachine.furnace", "High Pressure Furnace").getStackForm(1L)); ItemList.Machine_Bronze_Macerator.set( - new GT_MetaTileEntity_Macerator_Bronze(106, "bronzemachine.macerator", "Steam Macerator").getStackForm( - 1L)); + new GT_MetaTileEntity_Macerator_Bronze(106, "bronzemachine.macerator", "Steam Macerator").getStackForm(1L)); ItemList.Machine_HP_Macerator.set( - new GT_MetaTileEntity_Macerator_Steel( - 107, - "hpmachine.macerator", - "High Pressure Macerator").getStackForm(1L)); + new GT_MetaTileEntity_Macerator_Steel(107, "hpmachine.macerator", "High Pressure Macerator") + .getStackForm(1L)); ItemList.Machine_Bronze_Extractor.set( - new GT_MetaTileEntity_Extractor_Bronze(109, "bronzemachine.extractor", "Steam Extractor").getStackForm( - 1L)); + new GT_MetaTileEntity_Extractor_Bronze(109, "bronzemachine.extractor", "Steam Extractor").getStackForm(1L)); ItemList.Machine_HP_Extractor.set( - new GT_MetaTileEntity_Extractor_Steel( - 110, - "hpmachine.extractor", - "High Pressure Extractor").getStackForm(1L)); + new GT_MetaTileEntity_Extractor_Steel(110, "hpmachine.extractor", "High Pressure Extractor") + .getStackForm(1L)); ItemList.Machine_Bronze_Hammer.set( - new GT_MetaTileEntity_ForgeHammer_Bronze( - 112, - "bronzemachine.hammer", - "Steam Forge Hammer").getStackForm(1L)); + new GT_MetaTileEntity_ForgeHammer_Bronze(112, "bronzemachine.hammer", "Steam Forge Hammer") + .getStackForm(1L)); ItemList.Machine_HP_Hammer.set( - new GT_MetaTileEntity_ForgeHammer_Steel( - 113, - "hpmachine.hammer", - "High Pressure Forge Hammer").getStackForm(1L)); + new GT_MetaTileEntity_ForgeHammer_Steel(113, "hpmachine.hammer", "High Pressure Forge Hammer") + .getStackForm(1L)); ItemList.Machine_Bronze_Compressor.set( - new GT_MetaTileEntity_Compressor_Bronze( - 115, - "bronzemachine.compressor", - "Steam Compressor").getStackForm(1L)); + new GT_MetaTileEntity_Compressor_Bronze(115, "bronzemachine.compressor", "Steam Compressor") + .getStackForm(1L)); ItemList.Machine_HP_Compressor.set( - new GT_MetaTileEntity_Compressor_Steel( - 116, - "hpmachine.compressor", - "High Pressure Compressor").getStackForm(1L)); + new GT_MetaTileEntity_Compressor_Steel(116, "hpmachine.compressor", "High Pressure Compressor") + .getStackForm(1L)); ItemList.Machine_Bronze_AlloySmelter.set( - new GT_MetaTileEntity_AlloySmelter_Bronze( - 118, - "bronzemachine.alloysmelter", - "Steam Alloy Smelter").getStackForm(1L)); + new GT_MetaTileEntity_AlloySmelter_Bronze(118, "bronzemachine.alloysmelter", "Steam Alloy Smelter") + .getStackForm(1L)); ItemList.Machine_HP_AlloySmelter.set( - new GT_MetaTileEntity_AlloySmelter_Steel( - 119, - "hpmachine.alloysmelter", - "High Pressure Alloy Smelter").getStackForm(1L)); - - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_Bronze_Furnace.get(1L), - bitsd, - new Object[] { "XXX", "XMX", "XFX", 'M', ItemList.Hull_Bronze_Bricks, 'X', - OrePrefixes.pipeSmall.get(Materials.Bronze), 'F', OreDictNames.craftingFurnace }); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_HP_Furnace.get(1L), - bitsd, - new Object[] { "XSX", "PMP", "XXX", 'M', ItemList.Machine_Bronze_Furnace, 'X', - OrePrefixes.pipeSmall.get(Materials.WroughtIron), 'P', - OrePrefixes.plate.get(Materials.WroughtIron), 'S', OrePrefixes.plate.get(Materials.Steel) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_Bronze_Macerator.get(1L), - bitsd, - new Object[] { "DXD", "XMX", "PXP", 'M', ItemList.Hull_Bronze, 'X', - OrePrefixes.pipeSmall.get(Materials.Bronze), 'P', OreDictNames.craftingPiston, 'D', - OrePrefixes.gem.get(Materials.Diamond) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_HP_Macerator.get(1L), - bitsd, - new Object[] { "PSP", "XMX", "PPP", 'M', ItemList.Machine_Bronze_Macerator, 'X', - OrePrefixes.pipeSmall.get(Materials.WroughtIron), 'P', - OrePrefixes.plate.get(Materials.WroughtIron), 'S', OrePrefixes.plate.get(Materials.Steel) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_Bronze_Extractor.get(1L), - bitsd, - new Object[] { "XXX", "PMG", "XXX", 'M', ItemList.Hull_Bronze, 'X', - OrePrefixes.pipeSmall.get(Materials.Bronze), 'P', OreDictNames.craftingPiston, 'G', - new ItemStack(Blocks.glass, 1) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_HP_Extractor.get(1L), - bitsd, - new Object[] { "XSX", "PMP", "XXX", 'M', ItemList.Machine_Bronze_Extractor, 'X', - OrePrefixes.pipeSmall.get(Materials.WroughtIron), 'P', - OrePrefixes.plate.get(Materials.WroughtIron), 'S', OrePrefixes.plate.get(Materials.Steel) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_Bronze_Hammer.get(1L), - bitsd, - new Object[] { "XPX", "XMX", "XAX", 'M', ItemList.Hull_Bronze, 'X', - OrePrefixes.pipeSmall.get(Materials.Bronze), 'P', OreDictNames.craftingPiston, 'A', - OreDictNames.craftingAnvil }); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_HP_Hammer.get(1L), - bitsd, - new Object[] { "PSP", "XMX", "PPP", 'M', ItemList.Machine_Bronze_Hammer, 'X', - OrePrefixes.pipeSmall.get(Materials.WroughtIron), 'P', - OrePrefixes.plate.get(Materials.WroughtIron), 'S', OrePrefixes.plate.get(Materials.Steel) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_Bronze_Compressor.get(1L), - bitsd, - new Object[] { "XXX", aTextPlateMotor, "XXX", 'M', ItemList.Hull_Bronze, 'X', - OrePrefixes.pipeSmall.get(Materials.Bronze), 'P', OreDictNames.craftingPiston }); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_HP_Compressor.get(1L), - bitsd, - new Object[] { "XSX", "PMP", "XXX", 'M', ItemList.Machine_Bronze_Compressor, 'X', - OrePrefixes.pipeSmall.get(Materials.WroughtIron), 'P', - OrePrefixes.plate.get(Materials.WroughtIron), 'S', OrePrefixes.plate.get(Materials.Steel) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_Bronze_AlloySmelter.get(1L), - bitsd, - new Object[] { "XXX", "FMF", "XXX", 'M', ItemList.Hull_Bronze_Bricks, 'X', - OrePrefixes.pipeSmall.get(Materials.Bronze), 'F', OreDictNames.craftingFurnace }); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_HP_AlloySmelter.get(1L), - bitsd, - new Object[] { "PSP", "PMP", "PXP", 'M', ItemList.Machine_Bronze_AlloySmelter, 'X', - OrePrefixes.pipeSmall.get(Materials.WroughtIron), 'P', - OrePrefixes.plate.get(Materials.WroughtIron), 'S', OrePrefixes.plate.get(Materials.Steel) }); - - ItemList.Locker_ULV.set( - new GT_MetaTileEntity_Locker(150, "locker.tier.00", "Ultra Low Voltage Locker", 0).getStackForm(1L)); - ItemList.Locker_LV.set( - new GT_MetaTileEntity_Locker(151, "locker.tier.01", "Low Voltage Locker", 1).getStackForm(1L)); - ItemList.Locker_MV.set( - new GT_MetaTileEntity_Locker(152, "locker.tier.02", "Medium Voltage Locker", 2).getStackForm(1L)); - ItemList.Locker_HV.set( - new GT_MetaTileEntity_Locker(153, "locker.tier.03", "High Voltage Locker", 3).getStackForm(1L)); - ItemList.Locker_EV.set( - new GT_MetaTileEntity_Locker(154, "locker.tier.04", "Extreme Voltage Locker", 4).getStackForm(1L)); - ItemList.Locker_IV.set( - new GT_MetaTileEntity_Locker(155, "locker.tier.05", "Insane Voltage Locker", 5).getStackForm(1L)); - ItemList.Locker_LuV.set( - new GT_MetaTileEntity_Locker(156, "locker.tier.06", "Ludicrous Voltage Locker", 6).getStackForm(1L)); - ItemList.Locker_ZPM.set( - new GT_MetaTileEntity_Locker(157, "locker.tier.07", "ZPM Voltage Locker", 7).getStackForm(1L)); - ItemList.Locker_UV.set( - new GT_MetaTileEntity_Locker(158, "locker.tier.08", "Ultimate Voltage Locker", 8).getStackForm(1L)); + new GT_MetaTileEntity_AlloySmelter_Steel(119, "hpmachine.alloysmelter", "High Pressure Alloy Smelter") + .getStackForm(1L)); + + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_Bronze_Furnace.get(1L), + bitsd, + new Object[] { "XXX", "XMX", "XFX", 'M', ItemList.Hull_Bronze_Bricks, 'X', + OrePrefixes.pipeSmall.get(Materials.Bronze), 'F', OreDictNames.craftingFurnace }); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_HP_Furnace.get(1L), + bitsd, + new Object[] { "XSX", "PMP", "XXX", 'M', ItemList.Machine_Bronze_Furnace, 'X', + OrePrefixes.pipeSmall.get(Materials.WroughtIron), 'P', OrePrefixes.plate.get(Materials.WroughtIron), + 'S', OrePrefixes.plate.get(Materials.Steel) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_Bronze_Macerator.get(1L), + bitsd, + new Object[] { "DXD", "XMX", "PXP", 'M', ItemList.Hull_Bronze, 'X', + OrePrefixes.pipeSmall.get(Materials.Bronze), 'P', OreDictNames.craftingPiston, 'D', + OrePrefixes.gem.get(Materials.Diamond) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_HP_Macerator.get(1L), + bitsd, + new Object[] { "PSP", "XMX", "PPP", 'M', ItemList.Machine_Bronze_Macerator, 'X', + OrePrefixes.pipeSmall.get(Materials.WroughtIron), 'P', OrePrefixes.plate.get(Materials.WroughtIron), + 'S', OrePrefixes.plate.get(Materials.Steel) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_Bronze_Extractor.get(1L), + bitsd, + new Object[] { "XXX", "PMG", "XXX", 'M', ItemList.Hull_Bronze, 'X', + OrePrefixes.pipeSmall.get(Materials.Bronze), 'P', OreDictNames.craftingPiston, 'G', + new ItemStack(Blocks.glass, 1) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_HP_Extractor.get(1L), + bitsd, + new Object[] { "XSX", "PMP", "XXX", 'M', ItemList.Machine_Bronze_Extractor, 'X', + OrePrefixes.pipeSmall.get(Materials.WroughtIron), 'P', OrePrefixes.plate.get(Materials.WroughtIron), + 'S', OrePrefixes.plate.get(Materials.Steel) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_Bronze_Hammer.get(1L), + bitsd, + new Object[] { "XPX", "XMX", "XAX", 'M', ItemList.Hull_Bronze, 'X', + OrePrefixes.pipeSmall.get(Materials.Bronze), 'P', OreDictNames.craftingPiston, 'A', + OreDictNames.craftingAnvil }); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_HP_Hammer.get(1L), + bitsd, + new Object[] { "PSP", "XMX", "PPP", 'M', ItemList.Machine_Bronze_Hammer, 'X', + OrePrefixes.pipeSmall.get(Materials.WroughtIron), 'P', OrePrefixes.plate.get(Materials.WroughtIron), + 'S', OrePrefixes.plate.get(Materials.Steel) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_Bronze_Compressor.get(1L), + bitsd, + new Object[] { "XXX", aTextPlateMotor, "XXX", 'M', ItemList.Hull_Bronze, 'X', + OrePrefixes.pipeSmall.get(Materials.Bronze), 'P', OreDictNames.craftingPiston }); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_HP_Compressor.get(1L), + bitsd, + new Object[] { "XSX", "PMP", "XXX", 'M', ItemList.Machine_Bronze_Compressor, 'X', + OrePrefixes.pipeSmall.get(Materials.WroughtIron), 'P', OrePrefixes.plate.get(Materials.WroughtIron), + 'S', OrePrefixes.plate.get(Materials.Steel) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_Bronze_AlloySmelter.get(1L), + bitsd, + new Object[] { "XXX", "FMF", "XXX", 'M', ItemList.Hull_Bronze_Bricks, 'X', + OrePrefixes.pipeSmall.get(Materials.Bronze), 'F', OreDictNames.craftingFurnace }); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_HP_AlloySmelter.get(1L), + bitsd, + new Object[] { "PSP", "PMP", "PXP", 'M', ItemList.Machine_Bronze_AlloySmelter, 'X', + OrePrefixes.pipeSmall.get(Materials.WroughtIron), 'P', OrePrefixes.plate.get(Materials.WroughtIron), + 'S', OrePrefixes.plate.get(Materials.Steel) }); + + ItemList.Locker_ULV + .set(new GT_MetaTileEntity_Locker(150, "locker.tier.00", "Ultra Low Voltage Locker", 0).getStackForm(1L)); + ItemList.Locker_LV + .set(new GT_MetaTileEntity_Locker(151, "locker.tier.01", "Low Voltage Locker", 1).getStackForm(1L)); + ItemList.Locker_MV + .set(new GT_MetaTileEntity_Locker(152, "locker.tier.02", "Medium Voltage Locker", 2).getStackForm(1L)); + ItemList.Locker_HV + .set(new GT_MetaTileEntity_Locker(153, "locker.tier.03", "High Voltage Locker", 3).getStackForm(1L)); + ItemList.Locker_EV + .set(new GT_MetaTileEntity_Locker(154, "locker.tier.04", "Extreme Voltage Locker", 4).getStackForm(1L)); + ItemList.Locker_IV + .set(new GT_MetaTileEntity_Locker(155, "locker.tier.05", "Insane Voltage Locker", 5).getStackForm(1L)); + ItemList.Locker_LuV + .set(new GT_MetaTileEntity_Locker(156, "locker.tier.06", "Ludicrous Voltage Locker", 6).getStackForm(1L)); + ItemList.Locker_ZPM + .set(new GT_MetaTileEntity_Locker(157, "locker.tier.07", "ZPM Voltage Locker", 7).getStackForm(1L)); + ItemList.Locker_UV + .set(new GT_MetaTileEntity_Locker(158, "locker.tier.08", "Ultimate Voltage Locker", 8).getStackForm(1L)); ItemList.Locker_MAX.set( - new GT_MetaTileEntity_Locker(159, "locker.tier.09", "Highly Ultimate Voltage Locker", 9).getStackForm( - 1L)); + new GT_MetaTileEntity_Locker(159, "locker.tier.09", "Highly Ultimate Voltage Locker", 9).getStackForm(1L)); ItemList.Battery_Buffer_1by1_ULV.set( - new GT_MetaTileEntity_BasicBatteryBuffer( - 160, - "batterybuffer.01.tier.00", - "Ultra Low Voltage Battery Buffer", - 0, - "", - 1).getStackForm(1L)); + new GT_MetaTileEntity_BasicBatteryBuffer( + 160, + "batterybuffer.01.tier.00", + "Ultra Low Voltage Battery Buffer", + 0, + "", + 1).getStackForm(1L)); ItemList.Battery_Buffer_1by1_LV.set( - new GT_MetaTileEntity_BasicBatteryBuffer( - 161, - "batterybuffer.01.tier.01", - "Low Voltage Battery Buffer", - 1, - "", - 1).getStackForm(1L)); + new GT_MetaTileEntity_BasicBatteryBuffer( + 161, + "batterybuffer.01.tier.01", + "Low Voltage Battery Buffer", + 1, + "", + 1).getStackForm(1L)); ItemList.Battery_Buffer_1by1_MV.set( - new GT_MetaTileEntity_BasicBatteryBuffer( - 162, - "batterybuffer.01.tier.02", - "Medium Voltage Battery Buffer", - 2, - "", - 1).getStackForm(1L)); + new GT_MetaTileEntity_BasicBatteryBuffer( + 162, + "batterybuffer.01.tier.02", + "Medium Voltage Battery Buffer", + 2, + "", + 1).getStackForm(1L)); ItemList.Battery_Buffer_1by1_HV.set( - new GT_MetaTileEntity_BasicBatteryBuffer( - 163, - "batterybuffer.01.tier.03", - "High Voltage Battery Buffer", - 3, - "", - 1).getStackForm(1L)); + new GT_MetaTileEntity_BasicBatteryBuffer( + 163, + "batterybuffer.01.tier.03", + "High Voltage Battery Buffer", + 3, + "", + 1).getStackForm(1L)); ItemList.Battery_Buffer_1by1_EV.set( - new GT_MetaTileEntity_BasicBatteryBuffer( - 164, - "batterybuffer.01.tier.04", - "Extreme Voltage Battery Buffer", - 4, - "", - 1).getStackForm(1L)); + new GT_MetaTileEntity_BasicBatteryBuffer( + 164, + "batterybuffer.01.tier.04", + "Extreme Voltage Battery Buffer", + 4, + "", + 1).getStackForm(1L)); ItemList.Battery_Buffer_1by1_IV.set( - new GT_MetaTileEntity_BasicBatteryBuffer( - 165, - "batterybuffer.01.tier.05", - "Insane Voltage Battery Buffer", - 5, - "", - 1).getStackForm(1L)); + new GT_MetaTileEntity_BasicBatteryBuffer( + 165, + "batterybuffer.01.tier.05", + "Insane Voltage Battery Buffer", + 5, + "", + 1).getStackForm(1L)); ItemList.Battery_Buffer_1by1_LuV.set( - new GT_MetaTileEntity_BasicBatteryBuffer( - 166, - "batterybuffer.01.tier.06", - "Ludicrous Voltage Battery Buffer", - 6, - "", - 1).getStackForm(1L)); + new GT_MetaTileEntity_BasicBatteryBuffer( + 166, + "batterybuffer.01.tier.06", + "Ludicrous Voltage Battery Buffer", + 6, + "", + 1).getStackForm(1L)); ItemList.Battery_Buffer_1by1_ZPM.set( - new GT_MetaTileEntity_BasicBatteryBuffer( - 167, - "batterybuffer.01.tier.07", - "ZPM Voltage Battery Buffer", - 7, - "", - 1).getStackForm(1L)); + new GT_MetaTileEntity_BasicBatteryBuffer( + 167, + "batterybuffer.01.tier.07", + "ZPM Voltage Battery Buffer", + 7, + "", + 1).getStackForm(1L)); ItemList.Battery_Buffer_1by1_UV.set( - new GT_MetaTileEntity_BasicBatteryBuffer( - 168, - "batterybuffer.01.tier.08", - "Ultimate Voltage Battery Buffer", - 8, - "", - 1).getStackForm(1L)); + new GT_MetaTileEntity_BasicBatteryBuffer( + 168, + "batterybuffer.01.tier.08", + "Ultimate Voltage Battery Buffer", + 8, + "", + 1).getStackForm(1L)); ItemList.Battery_Buffer_1by1_MAX.set( - new GT_MetaTileEntity_BasicBatteryBuffer( - 169, - "batterybuffer.01.tier.09", - "Highly Ultimate Voltage Battery Buffer", - 9, - "", - 1).getStackForm(1L)); - - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Buffer_1by1_ULV.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_ULV, 'W', - OrePrefixes.wireGt01.get(Materials.Lead), 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Buffer_1by1_LV.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_LV, 'W', - OrePrefixes.wireGt01.get(Materials.Tin), 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Buffer_1by1_MV.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_MV, 'W', - OrePrefixes.wireGt01.get(Materials.AnyCopper), 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Buffer_1by1_HV.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_HV, 'W', - OrePrefixes.wireGt01.get(Materials.Gold), 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Buffer_1by1_EV.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_EV, 'W', - OrePrefixes.wireGt01.get(Materials.Aluminium), 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Buffer_1by1_IV.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_IV, 'W', - OrePrefixes.wireGt01.get(Materials.Tungsten), 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Buffer_1by1_LuV.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_LuV, 'W', - OrePrefixes.wireGt01.get(Materials.VanadiumGallium), 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Buffer_1by1_ZPM.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_ZPM, 'W', - OrePrefixes.wireGt01.get(Materials.Naquadah), 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Buffer_1by1_UV.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_UV, 'W', - OrePrefixes.wireGt01.get(Materials.NaquadahAlloy), 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Buffer_1by1_MAX.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_MAX, 'W', - OrePrefixes.wireGt01.get(Materials.SuperconductorUHV), 'T', OreDictNames.craftingChest }); + new GT_MetaTileEntity_BasicBatteryBuffer( + 169, + "batterybuffer.01.tier.09", + "Highly Ultimate Voltage Battery Buffer", + 9, + "", + 1).getStackForm(1L)); + + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Buffer_1by1_ULV.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_ULV, 'W', + OrePrefixes.wireGt01.get(Materials.Lead), 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Buffer_1by1_LV.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_LV, 'W', + OrePrefixes.wireGt01.get(Materials.Tin), 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Buffer_1by1_MV.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_MV, 'W', + OrePrefixes.wireGt01.get(Materials.AnyCopper), 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Buffer_1by1_HV.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_HV, 'W', + OrePrefixes.wireGt01.get(Materials.Gold), 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Buffer_1by1_EV.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_EV, 'W', + OrePrefixes.wireGt01.get(Materials.Aluminium), 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Buffer_1by1_IV.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_IV, 'W', + OrePrefixes.wireGt01.get(Materials.Tungsten), 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Buffer_1by1_LuV.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_LuV, 'W', + OrePrefixes.wireGt01.get(Materials.VanadiumGallium), 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Buffer_1by1_ZPM.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_ZPM, 'W', + OrePrefixes.wireGt01.get(Materials.Naquadah), 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Buffer_1by1_UV.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_UV, 'W', + OrePrefixes.wireGt01.get(Materials.NaquadahAlloy), 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Buffer_1by1_MAX.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_MAX, 'W', + OrePrefixes.wireGt01.get(Materials.SuperconductorUHV), 'T', OreDictNames.craftingChest }); ItemList.Battery_Buffer_2by2_ULV.set( - new GT_MetaTileEntity_BasicBatteryBuffer( - 170, - "batterybuffer.04.tier.00", - "Ultra Low Voltage Battery Buffer", - 0, - "", - 4).getStackForm(1L)); + new GT_MetaTileEntity_BasicBatteryBuffer( + 170, + "batterybuffer.04.tier.00", + "Ultra Low Voltage Battery Buffer", + 0, + "", + 4).getStackForm(1L)); ItemList.Battery_Buffer_2by2_LV.set( - new GT_MetaTileEntity_BasicBatteryBuffer( - 171, - "batterybuffer.04.tier.01", - "Low Voltage Battery Buffer", - 1, - "", - 4).getStackForm(1L)); + new GT_MetaTileEntity_BasicBatteryBuffer( + 171, + "batterybuffer.04.tier.01", + "Low Voltage Battery Buffer", + 1, + "", + 4).getStackForm(1L)); ItemList.Battery_Buffer_2by2_MV.set( - new GT_MetaTileEntity_BasicBatteryBuffer( - 172, - "batterybuffer.04.tier.02", - "Medium Voltage Battery Buffer", - 2, - "", - 4).getStackForm(1L)); + new GT_MetaTileEntity_BasicBatteryBuffer( + 172, + "batterybuffer.04.tier.02", + "Medium Voltage Battery Buffer", + 2, + "", + 4).getStackForm(1L)); ItemList.Battery_Buffer_2by2_HV.set( - new GT_MetaTileEntity_BasicBatteryBuffer( - 173, - "batterybuffer.04.tier.03", - "High Voltage Battery Buffer", - 3, - "", - 4).getStackForm(1L)); + new GT_MetaTileEntity_BasicBatteryBuffer( + 173, + "batterybuffer.04.tier.03", + "High Voltage Battery Buffer", + 3, + "", + 4).getStackForm(1L)); ItemList.Battery_Buffer_2by2_EV.set( - new GT_MetaTileEntity_BasicBatteryBuffer( - 174, - "batterybuffer.04.tier.04", - "Extreme Voltage Battery Buffer", - 4, - "", - 4).getStackForm(1L)); + new GT_MetaTileEntity_BasicBatteryBuffer( + 174, + "batterybuffer.04.tier.04", + "Extreme Voltage Battery Buffer", + 4, + "", + 4).getStackForm(1L)); ItemList.Battery_Buffer_2by2_IV.set( - new GT_MetaTileEntity_BasicBatteryBuffer( - 175, - "batterybuffer.04.tier.05", - "Insane Voltage Battery Buffer", - 5, - "", - 4).getStackForm(1L)); + new GT_MetaTileEntity_BasicBatteryBuffer( + 175, + "batterybuffer.04.tier.05", + "Insane Voltage Battery Buffer", + 5, + "", + 4).getStackForm(1L)); ItemList.Battery_Buffer_2by2_LuV.set( - new GT_MetaTileEntity_BasicBatteryBuffer( - 176, - "batterybuffer.04.tier.06", - "Ludicrous Voltage Battery Buffer", - 6, - "", - 4).getStackForm(1L)); + new GT_MetaTileEntity_BasicBatteryBuffer( + 176, + "batterybuffer.04.tier.06", + "Ludicrous Voltage Battery Buffer", + 6, + "", + 4).getStackForm(1L)); ItemList.Battery_Buffer_2by2_ZPM.set( - new GT_MetaTileEntity_BasicBatteryBuffer( - 177, - "batterybuffer.04.tier.07", - "ZPM Voltage Battery Buffer", - 7, - "", - 4).getStackForm(1L)); + new GT_MetaTileEntity_BasicBatteryBuffer( + 177, + "batterybuffer.04.tier.07", + "ZPM Voltage Battery Buffer", + 7, + "", + 4).getStackForm(1L)); ItemList.Battery_Buffer_2by2_UV.set( - new GT_MetaTileEntity_BasicBatteryBuffer( - 178, - "batterybuffer.04.tier.08", - "Ultimate Voltage Battery Buffer", - 8, - "", - 4).getStackForm(1L)); + new GT_MetaTileEntity_BasicBatteryBuffer( + 178, + "batterybuffer.04.tier.08", + "Ultimate Voltage Battery Buffer", + 8, + "", + 4).getStackForm(1L)); ItemList.Battery_Buffer_2by2_MAX.set( - new GT_MetaTileEntity_BasicBatteryBuffer( - 179, - "batterybuffer.04.tier.09", - "Highly Ultimate Voltage Battery Buffer", - 9, - "", - 4).getStackForm(1L)); - - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Buffer_2by2_ULV.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_ULV, 'W', - OrePrefixes.wireGt04.get(Materials.Lead), 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Buffer_2by2_LV.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_LV, 'W', - OrePrefixes.wireGt04.get(Materials.Tin), 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Buffer_2by2_MV.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_MV, 'W', - OrePrefixes.wireGt04.get(Materials.AnyCopper), 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Buffer_2by2_HV.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_HV, 'W', - OrePrefixes.wireGt04.get(Materials.Gold), 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Buffer_2by2_EV.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_EV, 'W', - OrePrefixes.wireGt04.get(Materials.Aluminium), 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Buffer_2by2_IV.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_IV, 'W', - OrePrefixes.wireGt04.get(Materials.Tungsten), 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Buffer_2by2_LuV.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_LuV, 'W', - OrePrefixes.wireGt04.get(Materials.VanadiumGallium), 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Buffer_2by2_ZPM.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_ZPM, 'W', - OrePrefixes.wireGt04.get(Materials.Naquadah), 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Buffer_2by2_UV.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_UV, 'W', - OrePrefixes.wireGt04.get(Materials.NaquadahAlloy), 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Buffer_2by2_MAX.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_MAX, 'W', - OrePrefixes.wireGt04.get(Materials.SuperconductorUHV), 'T', OreDictNames.craftingChest }); + new GT_MetaTileEntity_BasicBatteryBuffer( + 179, + "batterybuffer.04.tier.09", + "Highly Ultimate Voltage Battery Buffer", + 9, + "", + 4).getStackForm(1L)); + + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Buffer_2by2_ULV.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_ULV, 'W', + OrePrefixes.wireGt04.get(Materials.Lead), 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Buffer_2by2_LV.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_LV, 'W', + OrePrefixes.wireGt04.get(Materials.Tin), 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Buffer_2by2_MV.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_MV, 'W', + OrePrefixes.wireGt04.get(Materials.AnyCopper), 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Buffer_2by2_HV.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_HV, 'W', + OrePrefixes.wireGt04.get(Materials.Gold), 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Buffer_2by2_EV.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_EV, 'W', + OrePrefixes.wireGt04.get(Materials.Aluminium), 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Buffer_2by2_IV.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_IV, 'W', + OrePrefixes.wireGt04.get(Materials.Tungsten), 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Buffer_2by2_LuV.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_LuV, 'W', + OrePrefixes.wireGt04.get(Materials.VanadiumGallium), 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Buffer_2by2_ZPM.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_ZPM, 'W', + OrePrefixes.wireGt04.get(Materials.Naquadah), 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Buffer_2by2_UV.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_UV, 'W', + OrePrefixes.wireGt04.get(Materials.NaquadahAlloy), 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Buffer_2by2_MAX.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_MAX, 'W', + OrePrefixes.wireGt04.get(Materials.SuperconductorUHV), 'T', OreDictNames.craftingChest }); ItemList.Battery_Buffer_3by3_ULV.set( - new GT_MetaTileEntity_BasicBatteryBuffer( - 180, - "batterybuffer.09.tier.00", - "Ultra Low Voltage Battery Buffer", - 0, - "", - 9).getStackForm(1L)); + new GT_MetaTileEntity_BasicBatteryBuffer( + 180, + "batterybuffer.09.tier.00", + "Ultra Low Voltage Battery Buffer", + 0, + "", + 9).getStackForm(1L)); ItemList.Battery_Buffer_3by3_LV.set( - new GT_MetaTileEntity_BasicBatteryBuffer( - 181, - "batterybuffer.09.tier.01", - "Low Voltage Battery Buffer", - 1, - "", - 9).getStackForm(1L)); + new GT_MetaTileEntity_BasicBatteryBuffer( + 181, + "batterybuffer.09.tier.01", + "Low Voltage Battery Buffer", + 1, + "", + 9).getStackForm(1L)); ItemList.Battery_Buffer_3by3_MV.set( - new GT_MetaTileEntity_BasicBatteryBuffer( - 182, - "batterybuffer.09.tier.02", - "Medium Voltage Battery Buffer", - 2, - "", - 9).getStackForm(1L)); + new GT_MetaTileEntity_BasicBatteryBuffer( + 182, + "batterybuffer.09.tier.02", + "Medium Voltage Battery Buffer", + 2, + "", + 9).getStackForm(1L)); ItemList.Battery_Buffer_3by3_HV.set( - new GT_MetaTileEntity_BasicBatteryBuffer( - 183, - "batterybuffer.09.tier.03", - "High Voltage Battery Buffer", - 3, - "", - 9).getStackForm(1L)); + new GT_MetaTileEntity_BasicBatteryBuffer( + 183, + "batterybuffer.09.tier.03", + "High Voltage Battery Buffer", + 3, + "", + 9).getStackForm(1L)); ItemList.Battery_Buffer_3by3_EV.set( - new GT_MetaTileEntity_BasicBatteryBuffer( - 184, - "batterybuffer.09.tier.04", - "Extreme Voltage Battery Buffer", - 4, - "", - 9).getStackForm(1L)); + new GT_MetaTileEntity_BasicBatteryBuffer( + 184, + "batterybuffer.09.tier.04", + "Extreme Voltage Battery Buffer", + 4, + "", + 9).getStackForm(1L)); ItemList.Battery_Buffer_3by3_IV.set( - new GT_MetaTileEntity_BasicBatteryBuffer( - 185, - "batterybuffer.09.tier.05", - "Insane Voltage Battery Buffer", - 5, - "", - 9).getStackForm(1L)); + new GT_MetaTileEntity_BasicBatteryBuffer( + 185, + "batterybuffer.09.tier.05", + "Insane Voltage Battery Buffer", + 5, + "", + 9).getStackForm(1L)); ItemList.Battery_Buffer_3by3_LuV.set( - new GT_MetaTileEntity_BasicBatteryBuffer( - 186, - "batterybuffer.09.tier.06", - "Ludicrous Voltage Battery Buffer", - 6, - "", - 9).getStackForm(1L)); + new GT_MetaTileEntity_BasicBatteryBuffer( + 186, + "batterybuffer.09.tier.06", + "Ludicrous Voltage Battery Buffer", + 6, + "", + 9).getStackForm(1L)); ItemList.Battery_Buffer_3by3_ZPM.set( - new GT_MetaTileEntity_BasicBatteryBuffer( - 187, - "batterybuffer.09.tier.07", - "ZPM Voltage Battery Buffer", - 7, - "", - 9).getStackForm(1L)); + new GT_MetaTileEntity_BasicBatteryBuffer( + 187, + "batterybuffer.09.tier.07", + "ZPM Voltage Battery Buffer", + 7, + "", + 9).getStackForm(1L)); ItemList.Battery_Buffer_3by3_UV.set( - new GT_MetaTileEntity_BasicBatteryBuffer( - 188, - "batterybuffer.09.tier.08", - "Ultimate Voltage Battery Buffer", - 8, - "", - 9).getStackForm(1L)); + new GT_MetaTileEntity_BasicBatteryBuffer( + 188, + "batterybuffer.09.tier.08", + "Ultimate Voltage Battery Buffer", + 8, + "", + 9).getStackForm(1L)); ItemList.Battery_Buffer_3by3_MAX.set( - new GT_MetaTileEntity_BasicBatteryBuffer( - 189, - "batterybuffer.09.tier.09", - "Highly Ultimate Voltage Battery Buffer", - 9, - "", - 9).getStackForm(1L)); - - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Buffer_3by3_ULV.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_ULV, 'W', - OrePrefixes.wireGt08.get(Materials.Lead), 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Buffer_3by3_LV.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_LV, 'W', - OrePrefixes.wireGt08.get(Materials.Tin), 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Buffer_3by3_MV.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_MV, 'W', - OrePrefixes.wireGt08.get(Materials.AnyCopper), 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Buffer_3by3_HV.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_HV, 'W', - OrePrefixes.wireGt08.get(Materials.Gold), 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Buffer_3by3_EV.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_EV, 'W', - OrePrefixes.wireGt08.get(Materials.Aluminium), 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Buffer_3by3_IV.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_IV, 'W', - OrePrefixes.wireGt08.get(Materials.Tungsten), 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Buffer_3by3_LuV.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_LuV, 'W', - OrePrefixes.wireGt08.get(Materials.VanadiumGallium), 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Buffer_3by3_ZPM.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_ZPM, 'W', - OrePrefixes.wireGt08.get(Materials.Naquadah), 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Buffer_3by3_UV.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_UV, 'W', - OrePrefixes.wireGt08.get(Materials.NaquadahAlloy), 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Buffer_3by3_MAX.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_MAX, 'W', - OrePrefixes.wireGt08.get(Materials.SuperconductorUHV), 'T', OreDictNames.craftingChest }); + new GT_MetaTileEntity_BasicBatteryBuffer( + 189, + "batterybuffer.09.tier.09", + "Highly Ultimate Voltage Battery Buffer", + 9, + "", + 9).getStackForm(1L)); + + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Buffer_3by3_ULV.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_ULV, 'W', + OrePrefixes.wireGt08.get(Materials.Lead), 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Buffer_3by3_LV.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_LV, 'W', + OrePrefixes.wireGt08.get(Materials.Tin), 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Buffer_3by3_MV.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_MV, 'W', + OrePrefixes.wireGt08.get(Materials.AnyCopper), 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Buffer_3by3_HV.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_HV, 'W', + OrePrefixes.wireGt08.get(Materials.Gold), 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Buffer_3by3_EV.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_EV, 'W', + OrePrefixes.wireGt08.get(Materials.Aluminium), 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Buffer_3by3_IV.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_IV, 'W', + OrePrefixes.wireGt08.get(Materials.Tungsten), 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Buffer_3by3_LuV.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_LuV, 'W', + OrePrefixes.wireGt08.get(Materials.VanadiumGallium), 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Buffer_3by3_ZPM.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_ZPM, 'W', + OrePrefixes.wireGt08.get(Materials.Naquadah), 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Buffer_3by3_UV.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_UV, 'W', + OrePrefixes.wireGt08.get(Materials.NaquadahAlloy), 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Buffer_3by3_MAX.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_MAX, 'W', + OrePrefixes.wireGt08.get(Materials.SuperconductorUHV), 'T', OreDictNames.craftingChest }); ItemList.Battery_Buffer_4by4_ULV.set( - new GT_MetaTileEntity_BasicBatteryBuffer( - 190, - "batterybuffer.16.tier.00", - "Ultra Low Voltage Battery Buffer", - 0, - "", - 16).getStackForm(1L)); + new GT_MetaTileEntity_BasicBatteryBuffer( + 190, + "batterybuffer.16.tier.00", + "Ultra Low Voltage Battery Buffer", + 0, + "", + 16).getStackForm(1L)); ItemList.Battery_Buffer_4by4_LV.set( - new GT_MetaTileEntity_BasicBatteryBuffer( - 191, - "batterybuffer.16.tier.01", - "Low Voltage Battery Buffer", - 1, - "", - 16).getStackForm(1L)); + new GT_MetaTileEntity_BasicBatteryBuffer( + 191, + "batterybuffer.16.tier.01", + "Low Voltage Battery Buffer", + 1, + "", + 16).getStackForm(1L)); ItemList.Battery_Buffer_4by4_MV.set( - new GT_MetaTileEntity_BasicBatteryBuffer( - 192, - "batterybuffer.16.tier.02", - "Medium Voltage Battery Buffer", - 2, - "", - 16).getStackForm(1L)); + new GT_MetaTileEntity_BasicBatteryBuffer( + 192, + "batterybuffer.16.tier.02", + "Medium Voltage Battery Buffer", + 2, + "", + 16).getStackForm(1L)); ItemList.Battery_Buffer_4by4_HV.set( - new GT_MetaTileEntity_BasicBatteryBuffer( - 193, - "batterybuffer.16.tier.03", - "High Voltage Battery Buffer", - 3, - "", - 16).getStackForm(1L)); + new GT_MetaTileEntity_BasicBatteryBuffer( + 193, + "batterybuffer.16.tier.03", + "High Voltage Battery Buffer", + 3, + "", + 16).getStackForm(1L)); ItemList.Battery_Buffer_4by4_EV.set( - new GT_MetaTileEntity_BasicBatteryBuffer( - 194, - "batterybuffer.16.tier.04", - "Extreme Voltage Battery Buffer", - 4, - "", - 16).getStackForm(1L)); + new GT_MetaTileEntity_BasicBatteryBuffer( + 194, + "batterybuffer.16.tier.04", + "Extreme Voltage Battery Buffer", + 4, + "", + 16).getStackForm(1L)); ItemList.Battery_Buffer_4by4_IV.set( - new GT_MetaTileEntity_BasicBatteryBuffer( - 195, - "batterybuffer.16.tier.05", - "Insane Voltage Battery Buffer", - 5, - "", - 16).getStackForm(1L)); + new GT_MetaTileEntity_BasicBatteryBuffer( + 195, + "batterybuffer.16.tier.05", + "Insane Voltage Battery Buffer", + 5, + "", + 16).getStackForm(1L)); ItemList.Battery_Buffer_4by4_LuV.set( - new GT_MetaTileEntity_BasicBatteryBuffer( - 196, - "batterybuffer.16.tier.06", - "Ludicrous Voltage Battery Buffer", - 6, - "", - 16).getStackForm(1L)); + new GT_MetaTileEntity_BasicBatteryBuffer( + 196, + "batterybuffer.16.tier.06", + "Ludicrous Voltage Battery Buffer", + 6, + "", + 16).getStackForm(1L)); ItemList.Battery_Buffer_4by4_ZPM.set( - new GT_MetaTileEntity_BasicBatteryBuffer( - 197, - "batterybuffer.16.tier.07", - "ZPM Voltage Battery Buffer", - 7, - "", - 16).getStackForm(1L)); + new GT_MetaTileEntity_BasicBatteryBuffer( + 197, + "batterybuffer.16.tier.07", + "ZPM Voltage Battery Buffer", + 7, + "", + 16).getStackForm(1L)); ItemList.Battery_Buffer_4by4_UV.set( - new GT_MetaTileEntity_BasicBatteryBuffer( - 198, - "batterybuffer.16.tier.08", - "Ultimate Voltage Battery Buffer", - 8, - "", - 16).getStackForm(1L)); + new GT_MetaTileEntity_BasicBatteryBuffer( + 198, + "batterybuffer.16.tier.08", + "Ultimate Voltage Battery Buffer", + 8, + "", + 16).getStackForm(1L)); ItemList.Battery_Buffer_4by4_MAX.set( - new GT_MetaTileEntity_BasicBatteryBuffer( - 199, - "batterybuffer.16.tier.09", - "Highly Ultimate Voltage Battery Buffer", - 9, - "", - 16).getStackForm(1L)); - - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Buffer_4by4_ULV.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_ULV, 'W', - OrePrefixes.wireGt16.get(Materials.Lead), 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Buffer_4by4_LV.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_LV, 'W', - OrePrefixes.wireGt16.get(Materials.Tin), 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Buffer_4by4_MV.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_MV, 'W', - OrePrefixes.wireGt16.get(Materials.AnyCopper), 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Buffer_4by4_HV.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_HV, 'W', - OrePrefixes.wireGt16.get(Materials.Gold), 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Buffer_4by4_EV.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_EV, 'W', - OrePrefixes.wireGt16.get(Materials.Aluminium), 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Buffer_4by4_IV.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_IV, 'W', - OrePrefixes.wireGt16.get(Materials.Tungsten), 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Buffer_4by4_LuV.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_LuV, 'W', - OrePrefixes.wireGt16.get(Materials.VanadiumGallium), 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Buffer_4by4_ZPM.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_ZPM, 'W', - OrePrefixes.wireGt16.get(Materials.Naquadah), 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Buffer_4by4_UV.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_UV, 'W', - OrePrefixes.wireGt16.get(Materials.NaquadahAlloy), 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Buffer_4by4_MAX.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_MAX, 'W', - OrePrefixes.wireGt16.get(Materials.SuperconductorUHV), 'T', OreDictNames.craftingChest }); + new GT_MetaTileEntity_BasicBatteryBuffer( + 199, + "batterybuffer.16.tier.09", + "Highly Ultimate Voltage Battery Buffer", + 9, + "", + 16).getStackForm(1L)); + + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Buffer_4by4_ULV.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_ULV, 'W', + OrePrefixes.wireGt16.get(Materials.Lead), 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Buffer_4by4_LV.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_LV, 'W', + OrePrefixes.wireGt16.get(Materials.Tin), 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Buffer_4by4_MV.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_MV, 'W', + OrePrefixes.wireGt16.get(Materials.AnyCopper), 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Buffer_4by4_HV.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_HV, 'W', + OrePrefixes.wireGt16.get(Materials.Gold), 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Buffer_4by4_EV.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_EV, 'W', + OrePrefixes.wireGt16.get(Materials.Aluminium), 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Buffer_4by4_IV.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_IV, 'W', + OrePrefixes.wireGt16.get(Materials.Tungsten), 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Buffer_4by4_LuV.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_LuV, 'W', + OrePrefixes.wireGt16.get(Materials.VanadiumGallium), 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Buffer_4by4_ZPM.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_ZPM, 'W', + OrePrefixes.wireGt16.get(Materials.Naquadah), 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Buffer_4by4_UV.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_UV, 'W', + OrePrefixes.wireGt16.get(Materials.NaquadahAlloy), 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Buffer_4by4_MAX.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, 'M', ItemList.Hull_MAX, 'W', + OrePrefixes.wireGt16.get(Materials.SuperconductorUHV), 'T', OreDictNames.craftingChest }); ItemList.Battery_Charger_4by4_ULV.set( - new GT_MetaTileEntity_Charger( - 690, - "batterycharger.16.tier.00", - "Ultra Low Voltage Battery Charger", - 0, - "Each battery gives 8A in/4A out (min 4A/2A)", - 4).getStackForm(1L)); + new GT_MetaTileEntity_Charger( + 690, + "batterycharger.16.tier.00", + "Ultra Low Voltage Battery Charger", + 0, + "Each battery gives 8A in/4A out (min 4A/2A)", + 4).getStackForm(1L)); ItemList.Battery_Charger_4by4_LV.set( - new GT_MetaTileEntity_Charger( - 691, - "batterycharger.16.tier.01", - "Low Voltage Battery Charger", - 1, - "Each battery gives 8A in/4A out (min 4A/2A)", - 4).getStackForm(1L)); + new GT_MetaTileEntity_Charger( + 691, + "batterycharger.16.tier.01", + "Low Voltage Battery Charger", + 1, + "Each battery gives 8A in/4A out (min 4A/2A)", + 4).getStackForm(1L)); ItemList.Battery_Charger_4by4_MV.set( - new GT_MetaTileEntity_Charger( - 692, - "batterycharger.16.tier.02", - "Medium Voltage Battery Charger", - 2, - "Each battery gives 8A in/4A out (min 4A/2A)", - 4).getStackForm(1L)); + new GT_MetaTileEntity_Charger( + 692, + "batterycharger.16.tier.02", + "Medium Voltage Battery Charger", + 2, + "Each battery gives 8A in/4A out (min 4A/2A)", + 4).getStackForm(1L)); ItemList.Battery_Charger_4by4_HV.set( - new GT_MetaTileEntity_Charger( - 693, - "batterycharger.16.tier.03", - "High Voltage Battery Charger", - 3, - "Each battery gives 8A in/4A out (min 4A/2A)", - 4).getStackForm(1L)); + new GT_MetaTileEntity_Charger( + 693, + "batterycharger.16.tier.03", + "High Voltage Battery Charger", + 3, + "Each battery gives 8A in/4A out (min 4A/2A)", + 4).getStackForm(1L)); ItemList.Battery_Charger_4by4_EV.set( - new GT_MetaTileEntity_Charger( - 694, - "batterycharger.16.tier.04", - "Extreme Voltage Battery Charger", - 4, - "Each battery gives 8A in/4A out (min 4A/2A)", - 4).getStackForm(1L)); + new GT_MetaTileEntity_Charger( + 694, + "batterycharger.16.tier.04", + "Extreme Voltage Battery Charger", + 4, + "Each battery gives 8A in/4A out (min 4A/2A)", + 4).getStackForm(1L)); ItemList.Battery_Charger_4by4_IV.set( - new GT_MetaTileEntity_Charger( - 695, - "batterycharger.16.tier.05", - "Insane Voltage Battery Charger", - 5, - "Each battery gives 8A in/4A out (min 4A/2A)", - 4).getStackForm(1L)); + new GT_MetaTileEntity_Charger( + 695, + "batterycharger.16.tier.05", + "Insane Voltage Battery Charger", + 5, + "Each battery gives 8A in/4A out (min 4A/2A)", + 4).getStackForm(1L)); ItemList.Battery_Charger_4by4_LuV.set( - new GT_MetaTileEntity_Charger( - 696, - "batterycharger.16.tier.06", - "Ludicrous Voltage Battery Charger", - 6, - "Each battery gives 8A in/4A out (min 4A/2A)", - 4).getStackForm(1L)); + new GT_MetaTileEntity_Charger( + 696, + "batterycharger.16.tier.06", + "Ludicrous Voltage Battery Charger", + 6, + "Each battery gives 8A in/4A out (min 4A/2A)", + 4).getStackForm(1L)); ItemList.Battery_Charger_4by4_ZPM.set( - new GT_MetaTileEntity_Charger( - 697, - "batterycharger.16.tier.07", - "ZPM Voltage Battery Charger", - 7, - "Each battery gives 8A in/4A out (min 4A/2A)", - 4).getStackForm(1L)); + new GT_MetaTileEntity_Charger( + 697, + "batterycharger.16.tier.07", + "ZPM Voltage Battery Charger", + 7, + "Each battery gives 8A in/4A out (min 4A/2A)", + 4).getStackForm(1L)); ItemList.Battery_Charger_4by4_UV.set( - new GT_MetaTileEntity_Charger( - 698, - "batterycharger.16.tier.08", - "Ultimate Voltage Battery Charger", - 8, - "Each battery gives 8A in/4A out (min 4A/2A)", - 4).getStackForm(1L)); + new GT_MetaTileEntity_Charger( + 698, + "batterycharger.16.tier.08", + "Ultimate Voltage Battery Charger", + 8, + "Each battery gives 8A in/4A out (min 4A/2A)", + 4).getStackForm(1L)); ItemList.Battery_Charger_4by4_MAX.set( - new GT_MetaTileEntity_Charger( - 699, - "batterycharger.16.tier.09", - "Highly Ultimate Voltage Battery Charger", - 9, - "Each battery gives 8A in/4A out (min 4A/2A)", - 4).getStackForm(1L)); + new GT_MetaTileEntity_Charger( + 699, + "batterycharger.16.tier.09", + "Highly Ultimate Voltage Battery Charger", + 9, + "Each battery gives 8A in/4A out (min 4A/2A)", + 4).getStackForm(1L)); { // Wireless Energy Hatches ItemList.Wireless_Hatch_Energy_ULV.set( - new GT_MetaTileEntity_Wireless_Hatch( - 206, - "hatch.wireless.receiver.tier.00", - "ULV Wireless Energy Hatch", - 0).getStackForm(1L)); + new GT_MetaTileEntity_Wireless_Hatch( + 206, + "hatch.wireless.receiver.tier.00", + "ULV Wireless Energy Hatch", + 0).getStackForm(1L)); ItemList.Wireless_Hatch_Energy_LV.set( - new GT_MetaTileEntity_Wireless_Hatch( - 207, - "hatch.wireless.receiver.tier.01", - "LV Wireless Energy Hatch", - 1).getStackForm(1L)); + new GT_MetaTileEntity_Wireless_Hatch( + 207, + "hatch.wireless.receiver.tier.01", + "LV Wireless Energy Hatch", + 1).getStackForm(1L)); ItemList.Wireless_Hatch_Energy_MV.set( - new GT_MetaTileEntity_Wireless_Hatch( - 208, - "hatch.wireless.receiver.tier.02", - "MV Wireless Energy Hatch", - 2).getStackForm(1L)); + new GT_MetaTileEntity_Wireless_Hatch( + 208, + "hatch.wireless.receiver.tier.02", + "MV Wireless Energy Hatch", + 2).getStackForm(1L)); ItemList.Wireless_Hatch_Energy_HV.set( - new GT_MetaTileEntity_Wireless_Hatch( - 209, - "hatch.wireless.receiver.tier.03", - "HV Wireless Energy Hatch", - 3).getStackForm(1L)); + new GT_MetaTileEntity_Wireless_Hatch( + 209, + "hatch.wireless.receiver.tier.03", + "HV Wireless Energy Hatch", + 3).getStackForm(1L)); ItemList.Wireless_Hatch_Energy_EV.set( - new GT_MetaTileEntity_Wireless_Hatch( - 216, - "hatch.wireless.receiver.tier.04", - "EV Wireless Energy Hatch", - 4).getStackForm(1L)); + new GT_MetaTileEntity_Wireless_Hatch( + 216, + "hatch.wireless.receiver.tier.04", + "EV Wireless Energy Hatch", + 4).getStackForm(1L)); ItemList.Wireless_Hatch_Energy_IV.set( - new GT_MetaTileEntity_Wireless_Hatch( - 217, - "hatch.wireless.receiver.tier.05", - "IV Wireless Energy Hatch", - 5).getStackForm(1L)); + new GT_MetaTileEntity_Wireless_Hatch( + 217, + "hatch.wireless.receiver.tier.05", + "IV Wireless Energy Hatch", + 5).getStackForm(1L)); ItemList.Wireless_Hatch_Energy_LuV.set( - new GT_MetaTileEntity_Wireless_Hatch( - 218, - "hatch.wireless.receiver.tier.06", - "LuV Wireless Energy Hatch", - 6).getStackForm(1L)); + new GT_MetaTileEntity_Wireless_Hatch( + 218, + "hatch.wireless.receiver.tier.06", + "LuV Wireless Energy Hatch", + 6).getStackForm(1L)); ItemList.Wireless_Hatch_Energy_ZPM.set( - new GT_MetaTileEntity_Wireless_Hatch( - 219, - "hatch.wireless.receiver.tier.07", - "ZPM Wireless Energy Hatch", - 7).getStackForm(1L)); + new GT_MetaTileEntity_Wireless_Hatch( + 219, + "hatch.wireless.receiver.tier.07", + "ZPM Wireless Energy Hatch", + 7).getStackForm(1L)); ItemList.Wireless_Hatch_Energy_UV.set( - new GT_MetaTileEntity_Wireless_Hatch( - 227, - "hatch.wireless.receiver.tier.08", - "UV Wireless Energy Hatch", - 8).getStackForm(1L)); + new GT_MetaTileEntity_Wireless_Hatch( + 227, + "hatch.wireless.receiver.tier.08", + "UV Wireless Energy Hatch", + 8).getStackForm(1L)); ItemList.Wireless_Hatch_Energy_UHV.set( - new GT_MetaTileEntity_Wireless_Hatch( - 229, - "hatch.wireless.receiver.tier.09", - "UHV Wireless Energy Hatch", - 9).getStackForm(1L)); + new GT_MetaTileEntity_Wireless_Hatch( + 229, + "hatch.wireless.receiver.tier.09", + "UHV Wireless Energy Hatch", + 9).getStackForm(1L)); ItemList.Wireless_Hatch_Energy_UEV.set( - new GT_MetaTileEntity_Wireless_Hatch( - 266, - "hatch.wireless.receiver.tier.10", - "UEV Wireless Energy Hatch", - 10).getStackForm(1L)); + new GT_MetaTileEntity_Wireless_Hatch( + 266, + "hatch.wireless.receiver.tier.10", + "UEV Wireless Energy Hatch", + 10).getStackForm(1L)); ItemList.Wireless_Hatch_Energy_UIV.set( - new GT_MetaTileEntity_Wireless_Hatch( - 267, - "hatch.wireless.receiver.tier.11", - "UIV Wireless Energy Hatch", - 11).getStackForm(1L)); + new GT_MetaTileEntity_Wireless_Hatch( + 267, + "hatch.wireless.receiver.tier.11", + "UIV Wireless Energy Hatch", + 11).getStackForm(1L)); ItemList.Wireless_Hatch_Energy_UMV.set( - new GT_MetaTileEntity_Wireless_Hatch( - 268, - "hatch.wireless.receiver.tier.12", - "UMV Wireless Energy Hatch", - 12).getStackForm(1L)); + new GT_MetaTileEntity_Wireless_Hatch( + 268, + "hatch.wireless.receiver.tier.12", + "UMV Wireless Energy Hatch", + 12).getStackForm(1L)); ItemList.Wireless_Hatch_Energy_UXV.set( - new GT_MetaTileEntity_Wireless_Hatch( - 269, - "hatch.wireless.receiver.tier.13", - "UXV Wireless Energy Hatch", - 13).getStackForm(1L)); + new GT_MetaTileEntity_Wireless_Hatch( + 269, + "hatch.wireless.receiver.tier.13", + "UXV Wireless Energy Hatch", + 13).getStackForm(1L)); ItemList.Wireless_Hatch_Energy_MAX.set( - new GT_MetaTileEntity_Wireless_Hatch( - 286, - "hatch.wireless.receiver.tier.14", - "MAX Wireless Energy Hatch", - 14).getStackForm(1L)); + new GT_MetaTileEntity_Wireless_Hatch( + 286, + "hatch.wireless.receiver.tier.14", + "MAX Wireless Energy Hatch", + 14).getStackForm(1L)); // Wireless Dynamo Hatches ItemList.Wireless_Dynamo_Energy_ULV.set( - new GT_MetaTileEntity_Wireless_Dynamo( - 287, - "hatch.wireless.transmitter.tier.00", - "ULV Wireless Energy Dynamo", - 0).getStackForm(1L)); + new GT_MetaTileEntity_Wireless_Dynamo( + 287, + "hatch.wireless.transmitter.tier.00", + "ULV Wireless Energy Dynamo", + 0).getStackForm(1L)); ItemList.Wireless_Dynamo_Energy_LV.set( - new GT_MetaTileEntity_Wireless_Dynamo( - 288, - "hatch.wireless.transmitter.tier.01", - "LV Wireless Energy Dynamo", - 1).getStackForm(1L)); + new GT_MetaTileEntity_Wireless_Dynamo( + 288, + "hatch.wireless.transmitter.tier.01", + "LV Wireless Energy Dynamo", + 1).getStackForm(1L)); ItemList.Wireless_Dynamo_Energy_MV.set( - new GT_MetaTileEntity_Wireless_Dynamo( - 289, - "hatch.wireless.transmitter.tier.02", - "MV Wireless Energy Dynamo", - 2).getStackForm(1L)); + new GT_MetaTileEntity_Wireless_Dynamo( + 289, + "hatch.wireless.transmitter.tier.02", + "MV Wireless Energy Dynamo", + 2).getStackForm(1L)); ItemList.Wireless_Dynamo_Energy_HV.set( - new GT_MetaTileEntity_Wireless_Dynamo( - 296, - "hatch.wireless.transmitter.tier.03", - "HV Wireless Energy Dynamo", - 3).getStackForm(1L)); + new GT_MetaTileEntity_Wireless_Dynamo( + 296, + "hatch.wireless.transmitter.tier.03", + "HV Wireless Energy Dynamo", + 3).getStackForm(1L)); ItemList.Wireless_Dynamo_Energy_EV.set( - new GT_MetaTileEntity_Wireless_Dynamo( - 297, - "hatch.wireless.transmitter.tier.04", - "EV Wireless Energy Dynamo", - 4).getStackForm(1L)); + new GT_MetaTileEntity_Wireless_Dynamo( + 297, + "hatch.wireless.transmitter.tier.04", + "EV Wireless Energy Dynamo", + 4).getStackForm(1L)); ItemList.Wireless_Dynamo_Energy_IV.set( - new GT_MetaTileEntity_Wireless_Dynamo( - 298, - "hatch.wireless.transmitter.tier.05", - "IV Wireless Energy Dynamo", - 5).getStackForm(1L)); + new GT_MetaTileEntity_Wireless_Dynamo( + 298, + "hatch.wireless.transmitter.tier.05", + "IV Wireless Energy Dynamo", + 5).getStackForm(1L)); ItemList.Wireless_Dynamo_Energy_LuV.set( - new GT_MetaTileEntity_Wireless_Dynamo( - 299, - "hatch.wireless.transmitter.tier.06", - "LuV Wireless Energy Dynamo", - 6).getStackForm(1L)); + new GT_MetaTileEntity_Wireless_Dynamo( + 299, + "hatch.wireless.transmitter.tier.06", + "LuV Wireless Energy Dynamo", + 6).getStackForm(1L)); ItemList.Wireless_Dynamo_Energy_ZPM.set( - new GT_MetaTileEntity_Wireless_Dynamo( - 310, - "hatch.wireless.transmitter.tier.07", - "ZPM Wireless Energy Dynamo", - 7).getStackForm(1L)); + new GT_MetaTileEntity_Wireless_Dynamo( + 310, + "hatch.wireless.transmitter.tier.07", + "ZPM Wireless Energy Dynamo", + 7).getStackForm(1L)); ItemList.Wireless_Dynamo_Energy_UV.set( - new GT_MetaTileEntity_Wireless_Dynamo( - 316, - "hatch.wireless.transmitter.tier.08", - "UV Wireless Energy Dynamo", - 8).getStackForm(1L)); + new GT_MetaTileEntity_Wireless_Dynamo( + 316, + "hatch.wireless.transmitter.tier.08", + "UV Wireless Energy Dynamo", + 8).getStackForm(1L)); ItemList.Wireless_Dynamo_Energy_UHV.set( - new GT_MetaTileEntity_Wireless_Dynamo( - 317, - "hatch.wireless.transmitter.tier.09", - "UHV Wireless Energy Dynamo", - 9).getStackForm(1L)); + new GT_MetaTileEntity_Wireless_Dynamo( + 317, + "hatch.wireless.transmitter.tier.09", + "UHV Wireless Energy Dynamo", + 9).getStackForm(1L)); ItemList.Wireless_Dynamo_Energy_UEV.set( - new GT_MetaTileEntity_Wireless_Dynamo( - 318, - "hatch.wireless.transmitter.tier.10", - "UEV Wireless Energy Dynamo", - 10).getStackForm(1L)); + new GT_MetaTileEntity_Wireless_Dynamo( + 318, + "hatch.wireless.transmitter.tier.10", + "UEV Wireless Energy Dynamo", + 10).getStackForm(1L)); ItemList.Wireless_Dynamo_Energy_UIV.set( - new GT_MetaTileEntity_Wireless_Dynamo( - 319, - "hatch.wireless.transmitter.tier.11", - "UIV Wireless Energy Dynamo", - 11).getStackForm(1L)); + new GT_MetaTileEntity_Wireless_Dynamo( + 319, + "hatch.wireless.transmitter.tier.11", + "UIV Wireless Energy Dynamo", + 11).getStackForm(1L)); ItemList.Wireless_Dynamo_Energy_UMV.set( - new GT_MetaTileEntity_Wireless_Dynamo( - 346, - "hatch.wireless.transmitter.tier.12", - "UMV Wireless Energy Dynamo", - 12).getStackForm(1L)); + new GT_MetaTileEntity_Wireless_Dynamo( + 346, + "hatch.wireless.transmitter.tier.12", + "UMV Wireless Energy Dynamo", + 12).getStackForm(1L)); ItemList.Wireless_Dynamo_Energy_UXV.set( - new GT_MetaTileEntity_Wireless_Dynamo( - 347, - "hatch.wireless.transmitter.tier.13", - "UXV Wireless Energy Dynamo", - 13).getStackForm(1L)); + new GT_MetaTileEntity_Wireless_Dynamo( + 347, + "hatch.wireless.transmitter.tier.13", + "UXV Wireless Energy Dynamo", + 13).getStackForm(1L)); ItemList.Wireless_Dynamo_Energy_MAX.set( - new GT_MetaTileEntity_Wireless_Dynamo( - 348, - "hatch.wireless.transmitter.tier.14", - "MAX Wireless Energy Dynamo", - 14).getStackForm(1L)); + new GT_MetaTileEntity_Wireless_Dynamo( + 348, + "hatch.wireless.transmitter.tier.14", + "MAX Wireless Energy Dynamo", + 14).getStackForm(1L)); } GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Charger_4by4_ULV.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, "BCB", 'M', ItemList.Hull_ULV, 'W', - OrePrefixes.wireGt16.get(Materials.Lead), 'T', OreDictNames.craftingChest, 'B', - ItemList.Battery_RE_ULV_Tantalum, 'C', OrePrefixes.circuit.get(Materials.Primitive) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Charger_4by4_LV.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, "BCB", 'M', ItemList.Hull_LV, 'W', - OrePrefixes.wireGt16.get(Materials.Tin), 'T', OreDictNames.craftingChest, 'B', - ItemList.Battery_RE_LV_Lithium, 'C', OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Charger_4by4_MV.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, "BCB", 'M', ItemList.Hull_MV, 'W', - OrePrefixes.wireGt16.get(Materials.AnyCopper), 'T', OreDictNames.craftingChest, 'B', - ItemList.Battery_RE_MV_Lithium, 'C', OrePrefixes.circuit.get(Materials.Good) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Charger_4by4_HV.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, "BCB", 'M', ItemList.Hull_HV, 'W', - OrePrefixes.wireGt16.get(Materials.Gold), 'T', OreDictNames.craftingChest, 'B', - ItemList.Battery_RE_HV_Lithium, 'C', OrePrefixes.circuit.get(Materials.Advanced) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Charger_4by4_EV.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, "BCB", 'M', ItemList.Hull_EV, 'W', - OrePrefixes.wireGt16.get(Materials.Aluminium), 'T', OreDictNames.craftingChest, 'B', - OrePrefixes.battery.get(Materials.Master), 'C', OrePrefixes.circuit.get(Materials.Data) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Charger_4by4_IV.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, "BCB", 'M', ItemList.Hull_IV, 'W', - OrePrefixes.wireGt16.get(Materials.Tungsten), 'T', OreDictNames.craftingChest, 'B', - ItemList.Energy_LapotronicOrb, 'C', OrePrefixes.circuit.get(Materials.Elite) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Charger_4by4_LuV.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, "BCB", 'M', ItemList.Hull_LuV, 'W', - OrePrefixes.wireGt16.get(Materials.VanadiumGallium), 'T', OreDictNames.craftingChest, 'B', - ItemList.Energy_LapotronicOrb2, 'C', OrePrefixes.circuit.get(Materials.Master) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Charger_4by4_ZPM.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, "BCB", 'M', ItemList.Hull_ZPM, 'W', - OrePrefixes.wireGt16.get(Materials.Naquadah), 'T', OreDictNames.craftingChest, 'B', - ItemList.Energy_LapotronicOrb2, 'C', OrePrefixes.circuit.get(Materials.Ultimate) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Charger_4by4_UV.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, "BCB", 'M', ItemList.Hull_UV, 'W', - OrePrefixes.wireGt16.get(Materials.NaquadahAlloy), 'T', OreDictNames.craftingChest, 'B', - ItemList.ZPM2, 'C', OrePrefixes.circuit.get(Materials.SuperconductorUHV) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Battery_Charger_4by4_MAX.get(1L), - bitsd, - new Object[] { aTextWireChest, aTextWireHull, "BCB", 'M', ItemList.Hull_MAX, 'W', - OrePrefixes.wireGt16.get(Materials.SuperconductorUHV), 'T', OreDictNames.craftingChest, 'B', - ItemList.ZPM2, 'C', OrePrefixes.circuit.get(Materials.Infinite) }); - - GT_ModHandler.addCraftingRecipe( - ItemList.Locker_ULV.get(1L), - bitsd, - new Object[] { "T", "M", 'M', ItemList.Battery_Buffer_2by2_ULV, 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Locker_LV.get(1L), - bitsd, - new Object[] { "T", "M", 'M', ItemList.Battery_Buffer_2by2_LV, 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Locker_MV.get(1L), - bitsd, - new Object[] { "T", "M", 'M', ItemList.Battery_Buffer_2by2_MV, 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Locker_HV.get(1L), - bitsd, - new Object[] { "T", "M", 'M', ItemList.Battery_Buffer_2by2_HV, 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Locker_EV.get(1L), - bitsd, - new Object[] { "T", "M", 'M', ItemList.Battery_Buffer_2by2_EV, 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Locker_IV.get(1L), - bitsd, - new Object[] { "T", "M", 'M', ItemList.Battery_Buffer_2by2_IV, 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Locker_LuV.get(1L), - bitsd, - new Object[] { "T", "M", 'M', ItemList.Battery_Buffer_2by2_LuV, 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Locker_ZPM.get(1L), - bitsd, - new Object[] { "T", "M", 'M', ItemList.Battery_Buffer_2by2_ZPM, 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Locker_UV.get(1L), - bitsd, - new Object[] { "T", "M", 'M', ItemList.Battery_Buffer_2by2_UV, 'T', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Locker_MAX.get(1L), - bitsd, - new Object[] { "T", "M", 'M', ItemList.Battery_Buffer_2by2_MAX, 'T', OreDictNames.craftingChest }); + ItemList.Battery_Charger_4by4_ULV.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, "BCB", 'M', ItemList.Hull_ULV, 'W', + OrePrefixes.wireGt16.get(Materials.Lead), 'T', OreDictNames.craftingChest, 'B', + ItemList.Battery_RE_ULV_Tantalum, 'C', OrePrefixes.circuit.get(Materials.Primitive) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Charger_4by4_LV.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, "BCB", 'M', ItemList.Hull_LV, 'W', + OrePrefixes.wireGt16.get(Materials.Tin), 'T', OreDictNames.craftingChest, 'B', + ItemList.Battery_RE_LV_Lithium, 'C', OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Charger_4by4_MV.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, "BCB", 'M', ItemList.Hull_MV, 'W', + OrePrefixes.wireGt16.get(Materials.AnyCopper), 'T', OreDictNames.craftingChest, 'B', + ItemList.Battery_RE_MV_Lithium, 'C', OrePrefixes.circuit.get(Materials.Good) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Charger_4by4_HV.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, "BCB", 'M', ItemList.Hull_HV, 'W', + OrePrefixes.wireGt16.get(Materials.Gold), 'T', OreDictNames.craftingChest, 'B', + ItemList.Battery_RE_HV_Lithium, 'C', OrePrefixes.circuit.get(Materials.Advanced) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Charger_4by4_EV.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, "BCB", 'M', ItemList.Hull_EV, 'W', + OrePrefixes.wireGt16.get(Materials.Aluminium), 'T', OreDictNames.craftingChest, 'B', + OrePrefixes.battery.get(Materials.Master), 'C', OrePrefixes.circuit.get(Materials.Data) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Charger_4by4_IV.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, "BCB", 'M', ItemList.Hull_IV, 'W', + OrePrefixes.wireGt16.get(Materials.Tungsten), 'T', OreDictNames.craftingChest, 'B', + ItemList.Energy_LapotronicOrb, 'C', OrePrefixes.circuit.get(Materials.Elite) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Charger_4by4_LuV.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, "BCB", 'M', ItemList.Hull_LuV, 'W', + OrePrefixes.wireGt16.get(Materials.VanadiumGallium), 'T', OreDictNames.craftingChest, 'B', + ItemList.Energy_LapotronicOrb2, 'C', OrePrefixes.circuit.get(Materials.Master) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Charger_4by4_ZPM.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, "BCB", 'M', ItemList.Hull_ZPM, 'W', + OrePrefixes.wireGt16.get(Materials.Naquadah), 'T', OreDictNames.craftingChest, 'B', + ItemList.Energy_LapotronicOrb2, 'C', OrePrefixes.circuit.get(Materials.Ultimate) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Charger_4by4_UV.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, "BCB", 'M', ItemList.Hull_UV, 'W', + OrePrefixes.wireGt16.get(Materials.NaquadahAlloy), 'T', OreDictNames.craftingChest, 'B', ItemList.ZPM2, + 'C', OrePrefixes.circuit.get(Materials.SuperconductorUHV) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Battery_Charger_4by4_MAX.get(1L), + bitsd, + new Object[] { aTextWireChest, aTextWireHull, "BCB", 'M', ItemList.Hull_MAX, 'W', + OrePrefixes.wireGt16.get(Materials.SuperconductorUHV), 'T', OreDictNames.craftingChest, 'B', + ItemList.ZPM2, 'C', OrePrefixes.circuit.get(Materials.Infinite) }); + + GT_ModHandler.addCraftingRecipe( + ItemList.Locker_ULV.get(1L), + bitsd, + new Object[] { "T", "M", 'M', ItemList.Battery_Buffer_2by2_ULV, 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Locker_LV.get(1L), + bitsd, + new Object[] { "T", "M", 'M', ItemList.Battery_Buffer_2by2_LV, 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Locker_MV.get(1L), + bitsd, + new Object[] { "T", "M", 'M', ItemList.Battery_Buffer_2by2_MV, 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Locker_HV.get(1L), + bitsd, + new Object[] { "T", "M", 'M', ItemList.Battery_Buffer_2by2_HV, 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Locker_EV.get(1L), + bitsd, + new Object[] { "T", "M", 'M', ItemList.Battery_Buffer_2by2_EV, 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Locker_IV.get(1L), + bitsd, + new Object[] { "T", "M", 'M', ItemList.Battery_Buffer_2by2_IV, 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Locker_LuV.get(1L), + bitsd, + new Object[] { "T", "M", 'M', ItemList.Battery_Buffer_2by2_LuV, 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Locker_ZPM.get(1L), + bitsd, + new Object[] { "T", "M", 'M', ItemList.Battery_Buffer_2by2_ZPM, 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Locker_UV.get(1L), + bitsd, + new Object[] { "T", "M", 'M', ItemList.Battery_Buffer_2by2_UV, 'T', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Locker_MAX.get(1L), + bitsd, + new Object[] { "T", "M", 'M', ItemList.Battery_Buffer_2by2_MAX, 'T', OreDictNames.craftingChest }); } private static void run2() { ItemList.Machine_LV_AlloySmelter.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 201, - "basicmachine.alloysmelter.tier.01", - "Basic Alloy Smelter", - 1, - "HighTech combination Smelter", - GT_Recipe.GT_Recipe_Map.sAlloySmelterRecipes, - 2, - 1, - 0, - 0, - 1, - "AlloySmelter.png", - SoundResource.IC2_MACHINES_INDUCTION_LOOP, - false, - false, - SpecialEffects.NONE, - "ALLOY_SMELTER", - new Object[] { "ECE", aTextCableHull, aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 201, + "basicmachine.alloysmelter.tier.01", + "Basic Alloy Smelter", + 1, + "HighTech combination Smelter", + GT_Recipe.GT_Recipe_Map.sAlloySmelterRecipes, + 2, + 1, + 0, + 0, + 1, + "AlloySmelter.png", + SoundResource.IC2_MACHINES_INDUCTION_LOOP, + false, + false, + SpecialEffects.NONE, + "ALLOY_SMELTER", + new Object[] { "ECE", aTextCableHull, aTextWireCoil, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE }).getStackForm(1L)); ItemList.Machine_MV_AlloySmelter.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 202, - "basicmachine.alloysmelter.tier.02", - "Advanced Alloy Smelter", - 2, - "HighTech combination Smelter", - GT_Recipe.GT_Recipe_Map.sAlloySmelterRecipes, - 2, - 1, - 0, - 0, - 1, - "AlloySmelter.png", - SoundResource.IC2_MACHINES_INDUCTION_LOOP, - false, - false, - SpecialEffects.NONE, - "ALLOY_SMELTER", - new Object[] { "ECE", aTextCableHull, aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 202, + "basicmachine.alloysmelter.tier.02", + "Advanced Alloy Smelter", + 2, + "HighTech combination Smelter", + GT_Recipe.GT_Recipe_Map.sAlloySmelterRecipes, + 2, + 1, + 0, + 0, + 1, + "AlloySmelter.png", + SoundResource.IC2_MACHINES_INDUCTION_LOOP, + false, + false, + SpecialEffects.NONE, + "ALLOY_SMELTER", + new Object[] { "ECE", aTextCableHull, aTextWireCoil, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE }).getStackForm(1L)); ItemList.Machine_HV_AlloySmelter.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 203, - "basicmachine.alloysmelter.tier.03", - "Advanced Alloy Smelter II", - 3, - "HighTech combination Smelter", - GT_Recipe.GT_Recipe_Map.sAlloySmelterRecipes, - 2, - 1, - 0, - 0, - 1, - "AlloySmelter.png", - SoundResource.IC2_MACHINES_INDUCTION_LOOP, - false, - false, - SpecialEffects.NONE, - "ALLOY_SMELTER", - new Object[] { "ECE", aTextCableHull, aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 203, + "basicmachine.alloysmelter.tier.03", + "Advanced Alloy Smelter II", + 3, + "HighTech combination Smelter", + GT_Recipe.GT_Recipe_Map.sAlloySmelterRecipes, + 2, + 1, + 0, + 0, + 1, + "AlloySmelter.png", + SoundResource.IC2_MACHINES_INDUCTION_LOOP, + false, + false, + SpecialEffects.NONE, + "ALLOY_SMELTER", + new Object[] { "ECE", aTextCableHull, aTextWireCoil, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE }).getStackForm(1L)); ItemList.Machine_EV_AlloySmelter.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 204, - "basicmachine.alloysmelter.tier.04", - "Advanced Alloy Smelter III", - 4, - "HighTech combination Smelter", - GT_Recipe.GT_Recipe_Map.sAlloySmelterRecipes, - 2, - 1, - 0, - 0, - 1, - "AlloySmelter.png", - SoundResource.IC2_MACHINES_INDUCTION_LOOP, - false, - false, - SpecialEffects.NONE, - "ALLOY_SMELTER", - new Object[] { "ECE", aTextCableHull, aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 204, + "basicmachine.alloysmelter.tier.04", + "Advanced Alloy Smelter III", + 4, + "HighTech combination Smelter", + GT_Recipe.GT_Recipe_Map.sAlloySmelterRecipes, + 2, + 1, + 0, + 0, + 1, + "AlloySmelter.png", + SoundResource.IC2_MACHINES_INDUCTION_LOOP, + false, + false, + SpecialEffects.NONE, + "ALLOY_SMELTER", + new Object[] { "ECE", aTextCableHull, aTextWireCoil, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE }).getStackForm(1L)); ItemList.Machine_IV_AlloySmelter.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 205, - "basicmachine.alloysmelter.tier.05", - "Advanced Alloy Smelter IV", - 5, - "HighTech combination Smelter", - GT_Recipe.GT_Recipe_Map.sAlloySmelterRecipes, - 2, - 1, - 0, - 0, - 1, - "AlloySmelter.png", - SoundResource.IC2_MACHINES_INDUCTION_LOOP, - false, - false, - SpecialEffects.NONE, - "ALLOY_SMELTER", - new Object[] { "ECE", aTextCableHull, aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 205, + "basicmachine.alloysmelter.tier.05", + "Advanced Alloy Smelter IV", + 5, + "HighTech combination Smelter", + GT_Recipe.GT_Recipe_Map.sAlloySmelterRecipes, + 2, + 1, + 0, + 0, + 1, + "AlloySmelter.png", + SoundResource.IC2_MACHINES_INDUCTION_LOOP, + false, + false, + SpecialEffects.NONE, + "ALLOY_SMELTER", + new Object[] { "ECE", aTextCableHull, aTextWireCoil, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE }).getStackForm(1L)); ItemList.Machine_LV_Assembler.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 211, - "basicmachine.assembler.tier.01", - "Basic Assembling Machine", - 1, - "Avengers, Assemble!", - GT_Recipe.GT_Recipe_Map.sAssemblerRecipes, - 6, - 1, - 16000, - 0, - 1, - "Assembler.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "ASSEMBLER", - new Object[] { "ACA", "VMV", aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'V', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'A', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROBOT_ARM, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 211, + "basicmachine.assembler.tier.01", + "Basic Assembling Machine", + 1, + "Avengers, Assemble!", + GT_Recipe.GT_Recipe_Map.sAssemblerRecipes, + 6, + 1, + 16000, + 0, + 1, + "Assembler.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "ASSEMBLER", + new Object[] { "ACA", "VMV", aTextWireCoil, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'V', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'A', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROBOT_ARM, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_MV_Assembler.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 212, - "basicmachine.assembler.tier.02", - "Advanced Assembling Machine", - 2, - "Avengers, Assemble!", - GT_Recipe.GT_Recipe_Map.sAssemblerRecipes, - 9, - 1, - 24000, - 0, - 1, - "Assembler2.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "ASSEMBLER", - new Object[] { "ACA", "VMV", aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'V', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'A', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROBOT_ARM, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 212, + "basicmachine.assembler.tier.02", + "Advanced Assembling Machine", + 2, + "Avengers, Assemble!", + GT_Recipe.GT_Recipe_Map.sAssemblerRecipes, + 9, + 1, + 24000, + 0, + 1, + "Assembler2.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "ASSEMBLER", + new Object[] { "ACA", "VMV", aTextWireCoil, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'V', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'A', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROBOT_ARM, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_HV_Assembler.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 213, - "basicmachine.assembler.tier.03", - "Advanced Assembling Machine II", - 3, - "Avengers, Assemble!", - GT_Recipe.GT_Recipe_Map.sAssemblerRecipes, - 9, - 1, - 32000, - 0, - 1, - "Assembler2.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "ASSEMBLER", - new Object[] { "ACA", "VMV", aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'V', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'A', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROBOT_ARM, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 213, + "basicmachine.assembler.tier.03", + "Advanced Assembling Machine II", + 3, + "Avengers, Assemble!", + GT_Recipe.GT_Recipe_Map.sAssemblerRecipes, + 9, + 1, + 32000, + 0, + 1, + "Assembler2.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "ASSEMBLER", + new Object[] { "ACA", "VMV", aTextWireCoil, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'V', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'A', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROBOT_ARM, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_EV_Assembler.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 214, - "basicmachine.assembler.tier.04", - "Advanced Assembling Machine III", - 4, - "Avengers, Assemble!", - GT_Recipe.GT_Recipe_Map.sAssemblerRecipes, - 9, - 1, - 48000, - 0, - 1, - "Assembler2.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "ASSEMBLER", - new Object[] { "ACA", "VMV", aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'V', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'A', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROBOT_ARM, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 214, + "basicmachine.assembler.tier.04", + "Advanced Assembling Machine III", + 4, + "Avengers, Assemble!", + GT_Recipe.GT_Recipe_Map.sAssemblerRecipes, + 9, + 1, + 48000, + 0, + 1, + "Assembler2.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "ASSEMBLER", + new Object[] { "ACA", "VMV", aTextWireCoil, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'V', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'A', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROBOT_ARM, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_IV_Assembler.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 215, - "basicmachine.assembler.tier.05", - "Advanced Assembling Machine IV", - 5, - "Avengers, Assemble!", - GT_Recipe.GT_Recipe_Map.sAssemblerRecipes, - 9, - 1, - 64000, - 0, - 1, - "Assembler2.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "ASSEMBLER", - new Object[] { "ACA", "VMV", aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'V', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'A', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROBOT_ARM, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 215, + "basicmachine.assembler.tier.05", + "Advanced Assembling Machine IV", + 5, + "Avengers, Assemble!", + GT_Recipe.GT_Recipe_Map.sAssemblerRecipes, + 9, + 1, + 64000, + 0, + 1, + "Assembler2.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "ASSEMBLER", + new Object[] { "ACA", "VMV", aTextWireCoil, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'V', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'A', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROBOT_ARM, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_LV_Bender.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 221, - "basicmachine.bender.tier.01", - "Basic Bending Machine", - 1, - "Boo, he's bad! We want BENDER!!!", - GT_Recipe.GT_Recipe_Map.sBenderRecipes, - 2, - 1, - 0, - 0, - 1, - "Bender.png", - SoundResource.IC2_MACHINES_COMPRESSOR_OP, - false, - false, - SpecialEffects.NONE, - "BENDER", - new Object[] { aTextPlateWrench, aTextCableHull, aTextMotorWire, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 221, + "basicmachine.bender.tier.01", + "Basic Bending Machine", + 1, + "Boo, he's bad! We want BENDER!!!", + GT_Recipe.GT_Recipe_Map.sBenderRecipes, + 2, + 1, + 0, + 0, + 1, + "Bender.png", + SoundResource.IC2_MACHINES_COMPRESSOR_OP, + false, + false, + SpecialEffects.NONE, + "BENDER", + new Object[] { aTextPlateWrench, aTextCableHull, aTextMotorWire, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_MV_Bender.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 222, - "basicmachine.bender.tier.02", - "Advanced Bending Machine", - 2, - "Boo, he's bad! We want BENDER!!!", - GT_Recipe.GT_Recipe_Map.sBenderRecipes, - 2, - 1, - 0, - 0, - 1, - "Bender.png", - SoundResource.IC2_MACHINES_COMPRESSOR_OP, - false, - false, - SpecialEffects.NONE, - "BENDER", - new Object[] { aTextPlateWrench, aTextCableHull, aTextMotorWire, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 222, + "basicmachine.bender.tier.02", + "Advanced Bending Machine", + 2, + "Boo, he's bad! We want BENDER!!!", + GT_Recipe.GT_Recipe_Map.sBenderRecipes, + 2, + 1, + 0, + 0, + 1, + "Bender.png", + SoundResource.IC2_MACHINES_COMPRESSOR_OP, + false, + false, + SpecialEffects.NONE, + "BENDER", + new Object[] { aTextPlateWrench, aTextCableHull, aTextMotorWire, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_HV_Bender.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 223, - "basicmachine.bender.tier.03", - "Advanced Bending Machine II", - 3, - "Boo, he's bad! We want BENDER!!!", - GT_Recipe.GT_Recipe_Map.sBenderRecipes, - 2, - 1, - 0, - 0, - 1, - "Bender.png", - SoundResource.IC2_MACHINES_COMPRESSOR_OP, - false, - false, - SpecialEffects.NONE, - "BENDER", - new Object[] { aTextPlateWrench, aTextCableHull, aTextMotorWire, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 223, + "basicmachine.bender.tier.03", + "Advanced Bending Machine II", + 3, + "Boo, he's bad! We want BENDER!!!", + GT_Recipe.GT_Recipe_Map.sBenderRecipes, + 2, + 1, + 0, + 0, + 1, + "Bender.png", + SoundResource.IC2_MACHINES_COMPRESSOR_OP, + false, + false, + SpecialEffects.NONE, + "BENDER", + new Object[] { aTextPlateWrench, aTextCableHull, aTextMotorWire, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_EV_Bender.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 224, - "basicmachine.bender.tier.04", - "Advanced Bending Machine III", - 4, - "Boo, he's bad! We want BENDER!!!", - GT_Recipe.GT_Recipe_Map.sBenderRecipes, - 2, - 1, - 0, - 0, - 1, - "Bender.png", - SoundResource.IC2_MACHINES_COMPRESSOR_OP, - false, - false, - SpecialEffects.NONE, - "BENDER", - new Object[] { aTextPlateWrench, aTextCableHull, aTextMotorWire, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 224, + "basicmachine.bender.tier.04", + "Advanced Bending Machine III", + 4, + "Boo, he's bad! We want BENDER!!!", + GT_Recipe.GT_Recipe_Map.sBenderRecipes, + 2, + 1, + 0, + 0, + 1, + "Bender.png", + SoundResource.IC2_MACHINES_COMPRESSOR_OP, + false, + false, + SpecialEffects.NONE, + "BENDER", + new Object[] { aTextPlateWrench, aTextCableHull, aTextMotorWire, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_IV_Bender.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 225, - "basicmachine.bender.tier.05", - "Advanced Bending Machine IV", - 5, - "Boo, he's bad! We want BENDER!!!", - GT_Recipe.GT_Recipe_Map.sBenderRecipes, - 2, - 1, - 0, - 0, - 1, - "Bender.png", - SoundResource.IC2_MACHINES_COMPRESSOR_OP, - false, - false, - SpecialEffects.NONE, - "BENDER", - new Object[] { aTextPlateWrench, aTextCableHull, aTextMotorWire, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 225, + "basicmachine.bender.tier.05", + "Advanced Bending Machine IV", + 5, + "Boo, he's bad! We want BENDER!!!", + GT_Recipe.GT_Recipe_Map.sBenderRecipes, + 2, + 1, + 0, + 0, + 1, + "Bender.png", + SoundResource.IC2_MACHINES_COMPRESSOR_OP, + false, + false, + SpecialEffects.NONE, + "BENDER", + new Object[] { aTextPlateWrench, aTextCableHull, aTextMotorWire, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_LV_Canner.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 231, - "basicmachine.canner.tier.01", - "Basic Canning Machine", - 1, - "Unmobile Food Canning Machine GTA4", - GT_Recipe.GT_Recipe_Map.sCannerRecipes, - 2, - 2, - 0, - 0, - 1, - "Canner.png", - SoundResource.IC2_MACHINES_EXTRACTOR_OP, - false, - false, - SpecialEffects.NONE, - "CANNER", - new Object[] { aTextWirePump, aTextCableHull, "GGG", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 231, + "basicmachine.canner.tier.01", + "Basic Canning Machine", + 1, + "Unmobile Food Canning Machine GTA4", + GT_Recipe.GT_Recipe_Map.sCannerRecipes, + 2, + 2, + 0, + 0, + 1, + "Canner.png", + SoundResource.IC2_MACHINES_EXTRACTOR_OP, + false, + false, + SpecialEffects.NONE, + "CANNER", + new Object[] { aTextWirePump, aTextCableHull, "GGG", 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_MV_Canner.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 232, - "basicmachine.canner.tier.02", - "Advanced Canning Machine", - 2, - "Unmobile Food Canning Machine GTA4", - GT_Recipe.GT_Recipe_Map.sCannerRecipes, - 2, - 2, - 0, - 0, - 1, - "Canner.png", - SoundResource.IC2_MACHINES_EXTRACTOR_OP, - false, - false, - SpecialEffects.NONE, - "CANNER", - new Object[] { aTextWirePump, aTextCableHull, "GGG", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 232, + "basicmachine.canner.tier.02", + "Advanced Canning Machine", + 2, + "Unmobile Food Canning Machine GTA4", + GT_Recipe.GT_Recipe_Map.sCannerRecipes, + 2, + 2, + 0, + 0, + 1, + "Canner.png", + SoundResource.IC2_MACHINES_EXTRACTOR_OP, + false, + false, + SpecialEffects.NONE, + "CANNER", + new Object[] { aTextWirePump, aTextCableHull, "GGG", 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_HV_Canner.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 233, - "basicmachine.canner.tier.03", - "Advanced Canning Machine II", - 3, - "Unmobile Food Canning Machine GTA4", - GT_Recipe.GT_Recipe_Map.sCannerRecipes, - 2, - 2, - 0, - 0, - 1, - "Canner.png", - SoundResource.IC2_MACHINES_EXTRACTOR_OP, - false, - false, - SpecialEffects.NONE, - "CANNER", - new Object[] { aTextWirePump, aTextCableHull, "GGG", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 233, + "basicmachine.canner.tier.03", + "Advanced Canning Machine II", + 3, + "Unmobile Food Canning Machine GTA4", + GT_Recipe.GT_Recipe_Map.sCannerRecipes, + 2, + 2, + 0, + 0, + 1, + "Canner.png", + SoundResource.IC2_MACHINES_EXTRACTOR_OP, + false, + false, + SpecialEffects.NONE, + "CANNER", + new Object[] { aTextWirePump, aTextCableHull, "GGG", 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_EV_Canner.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 234, - "basicmachine.canner.tier.04", - "Advanced Canning Machine III", - 4, - "Unmobile Food Canning Machine GTA4", - GT_Recipe.GT_Recipe_Map.sCannerRecipes, - 2, - 2, - 0, - 0, - 1, - "Canner.png", - SoundResource.IC2_MACHINES_EXTRACTOR_OP, - false, - false, - SpecialEffects.NONE, - "CANNER", - new Object[] { aTextWirePump, aTextCableHull, "GGG", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 234, + "basicmachine.canner.tier.04", + "Advanced Canning Machine III", + 4, + "Unmobile Food Canning Machine GTA4", + GT_Recipe.GT_Recipe_Map.sCannerRecipes, + 2, + 2, + 0, + 0, + 1, + "Canner.png", + SoundResource.IC2_MACHINES_EXTRACTOR_OP, + false, + false, + SpecialEffects.NONE, + "CANNER", + new Object[] { aTextWirePump, aTextCableHull, "GGG", 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_IV_Canner.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 235, - "basicmachine.canner.tier.05", - "Advanced Canning Machine IV", - 5, - "Unmobile Food Canning Machine GTA4", - GT_Recipe.GT_Recipe_Map.sCannerRecipes, - 2, - 2, - 0, - 0, - 1, - "Canner.png", - SoundResource.IC2_MACHINES_EXTRACTOR_OP, - false, - false, - SpecialEffects.NONE, - "CANNER", - new Object[] { aTextWirePump, aTextCableHull, "GGG", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 235, + "basicmachine.canner.tier.05", + "Advanced Canning Machine IV", + 5, + "Unmobile Food Canning Machine GTA4", + GT_Recipe.GT_Recipe_Map.sCannerRecipes, + 2, + 2, + 0, + 0, + 1, + "Canner.png", + SoundResource.IC2_MACHINES_EXTRACTOR_OP, + false, + false, + SpecialEffects.NONE, + "CANNER", + new Object[] { aTextWirePump, aTextCableHull, "GGG", 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_LV_Compressor.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 241, - "basicmachine.compressor.tier.01", - "Basic Compressor", - 1, - "Compress-O-Matic C77", - GT_Recipe.GT_Recipe_Map.sCompressorRecipes, - 1, - 1, - 0, - 0, - 1, - "Compressor.png", - SoundResource.IC2_MACHINES_COMPRESSOR_OP, - false, - false, - SpecialEffects.NONE, - "COMPRESSOR", - new Object[] { aTextWireCoil, aTextPlateMotor, aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 241, + "basicmachine.compressor.tier.01", + "Basic Compressor", + 1, + "Compress-O-Matic C77", + GT_Recipe.GT_Recipe_Map.sCompressorRecipes, + 1, + 1, + 0, + 0, + 1, + "Compressor.png", + SoundResource.IC2_MACHINES_COMPRESSOR_OP, + false, + false, + SpecialEffects.NONE, + "COMPRESSOR", + new Object[] { aTextWireCoil, aTextPlateMotor, aTextWireCoil, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_MV_Compressor.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 242, - "basicmachine.compressor.tier.02", - "Advanced Compressor", - 2, - "Compress-O-Matic C77", - GT_Recipe.GT_Recipe_Map.sCompressorRecipes, - 1, - 1, - 0, - 0, - 1, - "Compressor.png", - SoundResource.IC2_MACHINES_COMPRESSOR_OP, - false, - false, - SpecialEffects.NONE, - "COMPRESSOR", - new Object[] { aTextWireCoil, aTextPlateMotor, aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 242, + "basicmachine.compressor.tier.02", + "Advanced Compressor", + 2, + "Compress-O-Matic C77", + GT_Recipe.GT_Recipe_Map.sCompressorRecipes, + 1, + 1, + 0, + 0, + 1, + "Compressor.png", + SoundResource.IC2_MACHINES_COMPRESSOR_OP, + false, + false, + SpecialEffects.NONE, + "COMPRESSOR", + new Object[] { aTextWireCoil, aTextPlateMotor, aTextWireCoil, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_HV_Compressor.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 243, - "basicmachine.compressor.tier.03", - "Advanced Compressor II", - 3, - "Compress-O-Matic C77", - GT_Recipe.GT_Recipe_Map.sCompressorRecipes, - 1, - 1, - 0, - 0, - 1, - "Compressor.png", - SoundResource.IC2_MACHINES_COMPRESSOR_OP, - false, - false, - SpecialEffects.NONE, - "COMPRESSOR", - new Object[] { aTextWireCoil, aTextPlateMotor, aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 243, + "basicmachine.compressor.tier.03", + "Advanced Compressor II", + 3, + "Compress-O-Matic C77", + GT_Recipe.GT_Recipe_Map.sCompressorRecipes, + 1, + 1, + 0, + 0, + 1, + "Compressor.png", + SoundResource.IC2_MACHINES_COMPRESSOR_OP, + false, + false, + SpecialEffects.NONE, + "COMPRESSOR", + new Object[] { aTextWireCoil, aTextPlateMotor, aTextWireCoil, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_EV_Compressor.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 244, - "basicmachine.compressor.tier.04", - "Advanced Compressor III", - 4, - "Compress-O-Matic C77", - GT_Recipe.GT_Recipe_Map.sCompressorRecipes, - 1, - 1, - 0, - 0, - 1, - "Compressor.png", - SoundResource.IC2_MACHINES_COMPRESSOR_OP, - false, - false, - SpecialEffects.NONE, - "COMPRESSOR", - new Object[] { aTextWireCoil, aTextPlateMotor, aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 244, + "basicmachine.compressor.tier.04", + "Advanced Compressor III", + 4, + "Compress-O-Matic C77", + GT_Recipe.GT_Recipe_Map.sCompressorRecipes, + 1, + 1, + 0, + 0, + 1, + "Compressor.png", + SoundResource.IC2_MACHINES_COMPRESSOR_OP, + false, + false, + SpecialEffects.NONE, + "COMPRESSOR", + new Object[] { aTextWireCoil, aTextPlateMotor, aTextWireCoil, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_IV_Compressor.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 245, - "basicmachine.compressor.tier.05", - "Singularity Compressor", - 5, - "Compress-O-Matic C77", - GT_Recipe.GT_Recipe_Map.sCompressorRecipes, - 1, - 1, - 0, - 0, - 1, - "Compressor.png", - SoundResource.IC2_MACHINES_COMPRESSOR_OP, - false, - false, - SpecialEffects.NONE, - "COMPRESSOR", - new Object[] { aTextWireCoil, aTextPlateMotor, aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 245, + "basicmachine.compressor.tier.05", + "Singularity Compressor", + 5, + "Compress-O-Matic C77", + GT_Recipe.GT_Recipe_Map.sCompressorRecipes, + 1, + 1, + 0, + 0, + 1, + "Compressor.png", + SoundResource.IC2_MACHINES_COMPRESSOR_OP, + false, + false, + SpecialEffects.NONE, + "COMPRESSOR", + new Object[] { aTextWireCoil, aTextPlateMotor, aTextWireCoil, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_LV_Cutter.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 251, - "basicmachine.cutter.tier.01", - "Basic Cutting Machine", - 1, - "Slice'N Dice", - GT_Recipe.GT_Recipe_Map.sCutterRecipes, - 1, - 2, - 8000, - 0, - 1, - "Cutter.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "CUTTER", - new Object[] { "WCG", "VMB", "CWE", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'V', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS, 'B', - OreDictNames.craftingDiamondBlade }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 251, + "basicmachine.cutter.tier.01", + "Basic Cutting Machine", + 1, + "Slice'N Dice", + GT_Recipe.GT_Recipe_Map.sCutterRecipes, + 1, + 2, + 8000, + 0, + 1, + "Cutter.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "CUTTER", + new Object[] { "WCG", "VMB", "CWE", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'V', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS, 'B', OreDictNames.craftingDiamondBlade }) + .getStackForm(1L)); ItemList.Machine_MV_Cutter.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 252, - "basicmachine.cutter.tier.02", - "Advanced Cutting Machine", - 2, - "Slice'N Dice", - GT_Recipe.GT_Recipe_Map.sCutterRecipes, - 2, - 2, - 16000, - 0, - 1, - "Cutter2.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "CUTTER", - new Object[] { "WCG", "VMB", "CWE", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'V', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS, 'B', - OreDictNames.craftingDiamondBlade }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 252, + "basicmachine.cutter.tier.02", + "Advanced Cutting Machine", + 2, + "Slice'N Dice", + GT_Recipe.GT_Recipe_Map.sCutterRecipes, + 2, + 2, + 16000, + 0, + 1, + "Cutter2.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "CUTTER", + new Object[] { "WCG", "VMB", "CWE", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'V', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS, 'B', OreDictNames.craftingDiamondBlade }) + .getStackForm(1L)); ItemList.Machine_HV_Cutter.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 253, - "basicmachine.cutter.tier.03", - "Advanced Cutting Machine II", - 3, - "Slice'N Dice", - GT_Recipe.GT_Recipe_Map.sCutterRecipes, - 2, - 4, - 32000, - 0, - 1, - "Cutter4.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "CUTTER", - new Object[] { "WCG", "VMB", "CWE", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'V', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS, 'B', - OreDictNames.craftingDiamondBlade }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 253, + "basicmachine.cutter.tier.03", + "Advanced Cutting Machine II", + 3, + "Slice'N Dice", + GT_Recipe.GT_Recipe_Map.sCutterRecipes, + 2, + 4, + 32000, + 0, + 1, + "Cutter4.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "CUTTER", + new Object[] { "WCG", "VMB", "CWE", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'V', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS, 'B', OreDictNames.craftingDiamondBlade }) + .getStackForm(1L)); ItemList.Machine_EV_Cutter.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 254, - "basicmachine.cutter.tier.04", - "Advanced Cutting Machine III", - 4, - "Slice'N Dice", - GT_Recipe.GT_Recipe_Map.sCutterRecipes, - 2, - 4, - 64000, - 0, - 1, - "Cutter4.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "CUTTER", - new Object[] { "WCG", "VMB", "CWE", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'V', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS, 'B', - OreDictNames.craftingDiamondBlade }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 254, + "basicmachine.cutter.tier.04", + "Advanced Cutting Machine III", + 4, + "Slice'N Dice", + GT_Recipe.GT_Recipe_Map.sCutterRecipes, + 2, + 4, + 64000, + 0, + 1, + "Cutter4.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "CUTTER", + new Object[] { "WCG", "VMB", "CWE", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'V', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS, 'B', OreDictNames.craftingDiamondBlade }) + .getStackForm(1L)); ItemList.Machine_IV_Cutter.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 255, - "basicmachine.cutter.tier.05", - "Advanced Cutting Machine IV", - 5, - "Slice'N Dice", - GT_Recipe.GT_Recipe_Map.sCutterRecipes, - 2, - 4, - 96000, - 0, - 1, - "Cutter4.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "CUTTER", - new Object[] { "WCG", "VMB", "CWE", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'V', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS, 'B', - OreDictNames.craftingDiamondBlade }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 255, + "basicmachine.cutter.tier.05", + "Advanced Cutting Machine IV", + 5, + "Slice'N Dice", + GT_Recipe.GT_Recipe_Map.sCutterRecipes, + 2, + 4, + 96000, + 0, + 1, + "Cutter4.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "CUTTER", + new Object[] { "WCG", "VMB", "CWE", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'V', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS, 'B', OreDictNames.craftingDiamondBlade }) + .getStackForm(1L)); ItemList.Machine_LV_E_Furnace.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 261, - "basicmachine.e_furnace.tier.01", - "Basic Electric Furnace", - 1, - "Not like using a Commodore 64", - GT_Recipe.GT_Recipe_Map.sFurnaceRecipes, - 1, - 1, - 0, - 0, - 1, - "E_Furnace.png", - SoundResource.IC2_MACHINES_ELECTROFURNACE_LOOP, - false, - false, - SpecialEffects.NONE, - "ELECTRIC_FURNACE", - new Object[] { "ECE", aTextCableHull, aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING }).setProgressBarTextureName( - "E_Furnace") - .getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 261, + "basicmachine.e_furnace.tier.01", + "Basic Electric Furnace", + 1, + "Not like using a Commodore 64", + GT_Recipe.GT_Recipe_Map.sFurnaceRecipes, + 1, + 1, + 0, + 0, + 1, + "E_Furnace.png", + SoundResource.IC2_MACHINES_ELECTROFURNACE_LOOP, + false, + false, + SpecialEffects.NONE, + "ELECTRIC_FURNACE", + new Object[] { "ECE", aTextCableHull, aTextWireCoil, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING }).setProgressBarTextureName("E_Furnace") + .getStackForm(1L)); ItemList.Machine_MV_E_Furnace.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 262, - "basicmachine.e_furnace.tier.02", - "Advanced Electric Furnace", - 2, - "Not like using a Commodore 64", - GT_Recipe.GT_Recipe_Map.sFurnaceRecipes, - 1, - 1, - 0, - 0, - 1, - "E_Furnace.png", - SoundResource.IC2_MACHINES_ELECTROFURNACE_LOOP, - false, - false, - SpecialEffects.NONE, - "ELECTRIC_FURNACE", - new Object[] { "ECE", aTextCableHull, aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING }).setProgressBarTextureName( - "E_Furnace") - .getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 262, + "basicmachine.e_furnace.tier.02", + "Advanced Electric Furnace", + 2, + "Not like using a Commodore 64", + GT_Recipe.GT_Recipe_Map.sFurnaceRecipes, + 1, + 1, + 0, + 0, + 1, + "E_Furnace.png", + SoundResource.IC2_MACHINES_ELECTROFURNACE_LOOP, + false, + false, + SpecialEffects.NONE, + "ELECTRIC_FURNACE", + new Object[] { "ECE", aTextCableHull, aTextWireCoil, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING }).setProgressBarTextureName("E_Furnace") + .getStackForm(1L)); ItemList.Machine_HV_E_Furnace.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 263, - "basicmachine.e_furnace.tier.03", - "Advanced Electric Furnace II", - 3, - "Not like using a Commodore 64", - GT_Recipe.GT_Recipe_Map.sFurnaceRecipes, - 1, - 1, - 0, - 0, - 1, - "E_Furnace.png", - SoundResource.IC2_MACHINES_ELECTROFURNACE_LOOP, - false, - false, - SpecialEffects.NONE, - "ELECTRIC_FURNACE", - new Object[] { "ECE", aTextCableHull, aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING }).setProgressBarTextureName( - "E_Furnace") - .getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 263, + "basicmachine.e_furnace.tier.03", + "Advanced Electric Furnace II", + 3, + "Not like using a Commodore 64", + GT_Recipe.GT_Recipe_Map.sFurnaceRecipes, + 1, + 1, + 0, + 0, + 1, + "E_Furnace.png", + SoundResource.IC2_MACHINES_ELECTROFURNACE_LOOP, + false, + false, + SpecialEffects.NONE, + "ELECTRIC_FURNACE", + new Object[] { "ECE", aTextCableHull, aTextWireCoil, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING }).setProgressBarTextureName("E_Furnace") + .getStackForm(1L)); ItemList.Machine_EV_E_Furnace.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 264, - "basicmachine.e_furnace.tier.04", - "Advanced Electric Furnace III", - 4, - "Not like using a Commodore 64", - GT_Recipe.GT_Recipe_Map.sFurnaceRecipes, - 1, - 1, - 0, - 0, - 1, - "E_Furnace.png", - SoundResource.IC2_MACHINES_ELECTROFURNACE_LOOP, - false, - false, - SpecialEffects.NONE, - "ELECTRIC_FURNACE", - new Object[] { "ECE", aTextCableHull, aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING }).setProgressBarTextureName( - "E_Furnace") - .getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 264, + "basicmachine.e_furnace.tier.04", + "Advanced Electric Furnace III", + 4, + "Not like using a Commodore 64", + GT_Recipe.GT_Recipe_Map.sFurnaceRecipes, + 1, + 1, + 0, + 0, + 1, + "E_Furnace.png", + SoundResource.IC2_MACHINES_ELECTROFURNACE_LOOP, + false, + false, + SpecialEffects.NONE, + "ELECTRIC_FURNACE", + new Object[] { "ECE", aTextCableHull, aTextWireCoil, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING }).setProgressBarTextureName("E_Furnace") + .getStackForm(1L)); ItemList.Machine_IV_E_Furnace.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 265, - "basicmachine.e_furnace.tier.05", - "Electron Exitement Processor", - 5, - "Not like using a Commodore 64", - GT_Recipe.GT_Recipe_Map.sFurnaceRecipes, - 1, - 1, - 0, - 0, - 1, - "E_Furnace.png", - SoundResource.IC2_MACHINES_ELECTROFURNACE_LOOP, - false, - false, - SpecialEffects.NONE, - "ELECTRIC_FURNACE", - new Object[] { "ECE", aTextCableHull, aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING }).setProgressBarTextureName( - "E_Furnace") - .getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 265, + "basicmachine.e_furnace.tier.05", + "Electron Exitement Processor", + 5, + "Not like using a Commodore 64", + GT_Recipe.GT_Recipe_Map.sFurnaceRecipes, + 1, + 1, + 0, + 0, + 1, + "E_Furnace.png", + SoundResource.IC2_MACHINES_ELECTROFURNACE_LOOP, + false, + false, + SpecialEffects.NONE, + "ELECTRIC_FURNACE", + new Object[] { "ECE", aTextCableHull, aTextWireCoil, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING }).setProgressBarTextureName("E_Furnace") + .getStackForm(1L)); ItemList.Machine_LV_Extractor.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 271, - "basicmachine.extractor.tier.01", - "Basic Extractor", - 1, - "Dejuicer-Device of Doom - D123", - GT_Recipe.GT_Recipe_Map.sExtractorRecipes, - 1, - 1, - 0, - 0, - 1, - "Extractor.png", - SoundResource.IC2_MACHINES_EXTRACTOR_OP, - false, - false, - SpecialEffects.NONE, - "EXTRACTOR", - new Object[] { "GCG", "EMP", aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 271, + "basicmachine.extractor.tier.01", + "Basic Extractor", + 1, + "Dejuicer-Device of Doom - D123", + GT_Recipe.GT_Recipe_Map.sExtractorRecipes, + 1, + 1, + 0, + 0, + 1, + "Extractor.png", + SoundResource.IC2_MACHINES_EXTRACTOR_OP, + false, + false, + SpecialEffects.NONE, + "EXTRACTOR", + new Object[] { "GCG", "EMP", aTextWireCoil, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_MV_Extractor.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 272, - "basicmachine.extractor.tier.02", - "Advanced Extractor", - 2, - "Dejuicer-Device of Doom - D123", - GT_Recipe.GT_Recipe_Map.sExtractorRecipes, - 1, - 1, - 0, - 0, - 1, - "Extractor.png", - SoundResource.IC2_MACHINES_EXTRACTOR_OP, - false, - false, - SpecialEffects.NONE, - "EXTRACTOR", - new Object[] { "GCG", "EMP", aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 272, + "basicmachine.extractor.tier.02", + "Advanced Extractor", + 2, + "Dejuicer-Device of Doom - D123", + GT_Recipe.GT_Recipe_Map.sExtractorRecipes, + 1, + 1, + 0, + 0, + 1, + "Extractor.png", + SoundResource.IC2_MACHINES_EXTRACTOR_OP, + false, + false, + SpecialEffects.NONE, + "EXTRACTOR", + new Object[] { "GCG", "EMP", aTextWireCoil, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_HV_Extractor.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 273, - "basicmachine.extractor.tier.03", - "Advanced Extractor II", - 3, - "Dejuicer-Device of Doom - D123", - GT_Recipe.GT_Recipe_Map.sExtractorRecipes, - 1, - 1, - 0, - 0, - 1, - "Extractor.png", - SoundResource.IC2_MACHINES_EXTRACTOR_OP, - false, - false, - SpecialEffects.NONE, - "EXTRACTOR", - new Object[] { "GCG", "EMP", aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 273, + "basicmachine.extractor.tier.03", + "Advanced Extractor II", + 3, + "Dejuicer-Device of Doom - D123", + GT_Recipe.GT_Recipe_Map.sExtractorRecipes, + 1, + 1, + 0, + 0, + 1, + "Extractor.png", + SoundResource.IC2_MACHINES_EXTRACTOR_OP, + false, + false, + SpecialEffects.NONE, + "EXTRACTOR", + new Object[] { "GCG", "EMP", aTextWireCoil, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_EV_Extractor.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 274, - "basicmachine.extractor.tier.04", - "Advanced Extractor III", - 4, - "Dejuicer-Device of Doom - D123", - GT_Recipe.GT_Recipe_Map.sExtractorRecipes, - 1, - 1, - 0, - 0, - 1, - "Extractor.png", - SoundResource.IC2_MACHINES_EXTRACTOR_OP, - false, - false, - SpecialEffects.NONE, - "EXTRACTOR", - new Object[] { "GCG", "EMP", aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 274, + "basicmachine.extractor.tier.04", + "Advanced Extractor III", + 4, + "Dejuicer-Device of Doom - D123", + GT_Recipe.GT_Recipe_Map.sExtractorRecipes, + 1, + 1, + 0, + 0, + 1, + "Extractor.png", + SoundResource.IC2_MACHINES_EXTRACTOR_OP, + false, + false, + SpecialEffects.NONE, + "EXTRACTOR", + new Object[] { "GCG", "EMP", aTextWireCoil, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_IV_Extractor.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 275, - "basicmachine.extractor.tier.05", - "Vacuum Extractor", - 5, - "Dejuicer-Device of Doom - D123", - GT_Recipe.GT_Recipe_Map.sExtractorRecipes, - 1, - 1, - 0, - 0, - 1, - "Extractor.png", - SoundResource.IC2_MACHINES_EXTRACTOR_OP, - false, - false, - SpecialEffects.NONE, - "EXTRACTOR", - new Object[] { "GCG", "EMP", aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 275, + "basicmachine.extractor.tier.05", + "Vacuum Extractor", + 5, + "Dejuicer-Device of Doom - D123", + GT_Recipe.GT_Recipe_Map.sExtractorRecipes, + 1, + 1, + 0, + 0, + 1, + "Extractor.png", + SoundResource.IC2_MACHINES_EXTRACTOR_OP, + false, + false, + SpecialEffects.NONE, + "EXTRACTOR", + new Object[] { "GCG", "EMP", aTextWireCoil, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_LV_Extruder.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 281, - "basicmachine.extruder.tier.01", - "Basic Extruder", - 1, - "Universal Machine for Metal Working", - GT_Recipe.GT_Recipe_Map.sExtruderRecipes, - 2, - 1, - 0, - 0, - 1, - "Extruder.png", - SoundResource.IC2_MACHINES_INDUCTION_LOOP, - false, - false, - SpecialEffects.NONE, - "EXTRUDER", - new Object[] { "CCE", "XMP", "CCE", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'X', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PIPE, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 281, + "basicmachine.extruder.tier.01", + "Basic Extruder", + 1, + "Universal Machine for Metal Working", + GT_Recipe.GT_Recipe_Map.sExtruderRecipes, + 2, + 1, + 0, + 0, + 1, + "Extruder.png", + SoundResource.IC2_MACHINES_INDUCTION_LOOP, + false, + false, + SpecialEffects.NONE, + "EXTRUDER", + new Object[] { "CCE", "XMP", "CCE", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'X', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PIPE, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE }).getStackForm(1L)); ItemList.Machine_MV_Extruder.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 282, - "basicmachine.extruder.tier.02", - "Advanced Extruder", - 2, - "Universal Machine for Metal Working", - GT_Recipe.GT_Recipe_Map.sExtruderRecipes, - 2, - 1, - 0, - 0, - 1, - "Extruder.png", - SoundResource.IC2_MACHINES_INDUCTION_LOOP, - false, - false, - SpecialEffects.NONE, - "EXTRUDER", - new Object[] { "CCE", "XMP", "CCE", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'X', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PIPE, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 282, + "basicmachine.extruder.tier.02", + "Advanced Extruder", + 2, + "Universal Machine for Metal Working", + GT_Recipe.GT_Recipe_Map.sExtruderRecipes, + 2, + 1, + 0, + 0, + 1, + "Extruder.png", + SoundResource.IC2_MACHINES_INDUCTION_LOOP, + false, + false, + SpecialEffects.NONE, + "EXTRUDER", + new Object[] { "CCE", "XMP", "CCE", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'X', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PIPE, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE }).getStackForm(1L)); ItemList.Machine_HV_Extruder.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 283, - "basicmachine.extruder.tier.03", - "Advanced Extruder II", - 3, - "Universal Machine for Metal Working", - GT_Recipe.GT_Recipe_Map.sExtruderRecipes, - 2, - 1, - 0, - 0, - 1, - "Extruder.png", - SoundResource.IC2_MACHINES_INDUCTION_LOOP, - false, - false, - SpecialEffects.NONE, - "EXTRUDER", - new Object[] { "CCE", "XMP", "CCE", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'X', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PIPE, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 283, + "basicmachine.extruder.tier.03", + "Advanced Extruder II", + 3, + "Universal Machine for Metal Working", + GT_Recipe.GT_Recipe_Map.sExtruderRecipes, + 2, + 1, + 0, + 0, + 1, + "Extruder.png", + SoundResource.IC2_MACHINES_INDUCTION_LOOP, + false, + false, + SpecialEffects.NONE, + "EXTRUDER", + new Object[] { "CCE", "XMP", "CCE", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'X', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PIPE, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE }).getStackForm(1L)); ItemList.Machine_EV_Extruder.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 284, - "basicmachine.extruder.tier.04", - "Advanced Extruder III", - 4, - "Universal Machine for Metal Working", - GT_Recipe.GT_Recipe_Map.sExtruderRecipes, - 2, - 1, - 0, - 0, - 1, - "Extruder.png", - SoundResource.IC2_MACHINES_INDUCTION_LOOP, - false, - false, - SpecialEffects.NONE, - "EXTRUDER", - new Object[] { "CCE", "XMP", "CCE", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'X', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PIPE, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 284, + "basicmachine.extruder.tier.04", + "Advanced Extruder III", + 4, + "Universal Machine for Metal Working", + GT_Recipe.GT_Recipe_Map.sExtruderRecipes, + 2, + 1, + 0, + 0, + 1, + "Extruder.png", + SoundResource.IC2_MACHINES_INDUCTION_LOOP, + false, + false, + SpecialEffects.NONE, + "EXTRUDER", + new Object[] { "CCE", "XMP", "CCE", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'X', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PIPE, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE }).getStackForm(1L)); ItemList.Machine_IV_Extruder.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 285, - "basicmachine.extruder.tier.05", - "Advanced Extruder IV", - 5, - "Universal Machine for Metal Working", - GT_Recipe.GT_Recipe_Map.sExtruderRecipes, - 2, - 1, - 0, - 0, - 1, - "Extruder.png", - SoundResource.IC2_MACHINES_INDUCTION_LOOP, - false, - false, - SpecialEffects.NONE, - "EXTRUDER", - new Object[] { "CCE", "XMP", "CCE", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'X', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PIPE, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 285, + "basicmachine.extruder.tier.05", + "Advanced Extruder IV", + 5, + "Universal Machine for Metal Working", + GT_Recipe.GT_Recipe_Map.sExtruderRecipes, + 2, + 1, + 0, + 0, + 1, + "Extruder.png", + SoundResource.IC2_MACHINES_INDUCTION_LOOP, + false, + false, + SpecialEffects.NONE, + "EXTRUDER", + new Object[] { "CCE", "XMP", "CCE", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'X', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PIPE, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE }).getStackForm(1L)); ItemList.Machine_LV_Lathe.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 291, - "basicmachine.lathe.tier.01", - "Basic Lathe", - 1, - "Produces Rods more efficiently", - GT_Recipe.GT_Recipe_Map.sLatheRecipes, - 1, - 2, - 0, - 0, - 1, - "Lathe.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "LATHE", - new Object[] { aTextWireCoil, "EMD", "CWP", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'D', - OrePrefixes.gem.get(Materials.Diamond) }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 291, + "basicmachine.lathe.tier.01", + "Basic Lathe", + 1, + "Produces Rods more efficiently", + GT_Recipe.GT_Recipe_Map.sLatheRecipes, + 1, + 2, + 0, + 0, + 1, + "Lathe.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "LATHE", + new Object[] { aTextWireCoil, "EMD", "CWP", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'D', OrePrefixes.gem.get(Materials.Diamond) }) + .getStackForm(1L)); ItemList.Machine_MV_Lathe.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 292, - "basicmachine.lathe.tier.02", - "Advanced Lathe", - 2, - "Produces Rods more efficiently", - GT_Recipe.GT_Recipe_Map.sLatheRecipes, - 1, - 2, - 0, - 0, - 1, - "Lathe.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "LATHE", - new Object[] { aTextWireCoil, "EMD", "CWP", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'D', - OrePrefixes.gemFlawless.get(Materials.Diamond) }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 292, + "basicmachine.lathe.tier.02", + "Advanced Lathe", + 2, + "Produces Rods more efficiently", + GT_Recipe.GT_Recipe_Map.sLatheRecipes, + 1, + 2, + 0, + 0, + 1, + "Lathe.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "LATHE", + new Object[] { aTextWireCoil, "EMD", "CWP", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'D', + OrePrefixes.gemFlawless.get(Materials.Diamond) }).getStackForm(1L)); ItemList.Machine_HV_Lathe.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 293, - "basicmachine.lathe.tier.03", - "Advanced Lathe II", - 3, - "Produces Rods more efficiently", - GT_Recipe.GT_Recipe_Map.sLatheRecipes, - 1, - 2, - 0, - 0, - 1, - "Lathe.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "LATHE", - new Object[] { aTextWireCoil, "EMD", "CWP", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'D', - OreDictNames.craftingIndustrialDiamond }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 293, + "basicmachine.lathe.tier.03", + "Advanced Lathe II", + 3, + "Produces Rods more efficiently", + GT_Recipe.GT_Recipe_Map.sLatheRecipes, + 1, + 2, + 0, + 0, + 1, + "Lathe.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "LATHE", + new Object[] { aTextWireCoil, "EMD", "CWP", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'D', OreDictNames.craftingIndustrialDiamond }) + .getStackForm(1L)); ItemList.Machine_EV_Lathe.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 294, - "basicmachine.lathe.tier.04", - "Advanced Lathe III", - 4, - "Produces Rods more efficiently", - GT_Recipe.GT_Recipe_Map.sLatheRecipes, - 1, - 2, - 0, - 0, - 1, - "Lathe.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "LATHE", - new Object[] { aTextWireCoil, "EMD", "CWP", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'D', - OreDictNames.craftingIndustrialDiamond }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 294, + "basicmachine.lathe.tier.04", + "Advanced Lathe III", + 4, + "Produces Rods more efficiently", + GT_Recipe.GT_Recipe_Map.sLatheRecipes, + 1, + 2, + 0, + 0, + 1, + "Lathe.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "LATHE", + new Object[] { aTextWireCoil, "EMD", "CWP", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'D', OreDictNames.craftingIndustrialDiamond }) + .getStackForm(1L)); ItemList.Machine_IV_Lathe.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 295, - "basicmachine.lathe.tier.05", - "Advanced Lathe IV", - 5, - "Produces Rods more efficiently", - GT_Recipe.GT_Recipe_Map.sLatheRecipes, - 1, - 2, - 0, - 0, - 1, - "Lathe.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "LATHE", - new Object[] { aTextWireCoil, "EMD", "CWP", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'D', - OreDictNames.craftingIndustrialDiamond }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 295, + "basicmachine.lathe.tier.05", + "Advanced Lathe IV", + 5, + "Produces Rods more efficiently", + GT_Recipe.GT_Recipe_Map.sLatheRecipes, + 1, + 2, + 0, + 0, + 1, + "Lathe.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "LATHE", + new Object[] { aTextWireCoil, "EMD", "CWP", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'D', OreDictNames.craftingIndustrialDiamond }) + .getStackForm(1L)); ItemList.Machine_LV_Macerator.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 301, - "basicmachine.macerator.tier.01", - "Basic Macerator", - 1, - "Schreddering your Ores", - GT_Recipe.GT_Recipe_Map.sMaceratorRecipes, - 1, - 1, - 0, - 0, - 1, - "Macerator1.png", - SoundResource.IC2_MACHINES_MACERATOR_OP, - false, - false, - SpecialEffects.TOP_SMOKE, - "MACERATOR", - new Object[] { "PEG", "WWM", "CCW", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - OrePrefixes.gem.get(Materials.Diamond) }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 301, + "basicmachine.macerator.tier.01", + "Basic Macerator", + 1, + "Schreddering your Ores", + GT_Recipe.GT_Recipe_Map.sMaceratorRecipes, + 1, + 1, + 0, + 0, + 1, + "Macerator1.png", + SoundResource.IC2_MACHINES_MACERATOR_OP, + false, + false, + SpecialEffects.TOP_SMOKE, + "MACERATOR", + new Object[] { "PEG", "WWM", "CCW", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', OrePrefixes.gem.get(Materials.Diamond) }) + .getStackForm(1L)); ItemList.Machine_MV_Macerator.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 302, - "basicmachine.macerator.tier.02", - "Advanced Macerator", - 2, - "Schreddering your Ores", - GT_Recipe.GT_Recipe_Map.sMaceratorRecipes, - 1, - 1, - 0, - 0, - 1, - "Macerator1.png", - SoundResource.IC2_MACHINES_MACERATOR_OP, - false, - false, - SpecialEffects.TOP_SMOKE, - "MACERATOR", - new Object[] { "PEG", "WWM", "CCW", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - OrePrefixes.gemFlawless.get(Materials.Diamond) }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 302, + "basicmachine.macerator.tier.02", + "Advanced Macerator", + 2, + "Schreddering your Ores", + GT_Recipe.GT_Recipe_Map.sMaceratorRecipes, + 1, + 1, + 0, + 0, + 1, + "Macerator1.png", + SoundResource.IC2_MACHINES_MACERATOR_OP, + false, + false, + SpecialEffects.TOP_SMOKE, + "MACERATOR", + new Object[] { "PEG", "WWM", "CCW", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + OrePrefixes.gemFlawless.get(Materials.Diamond) }).getStackForm(1L)); ItemList.Machine_HV_Macerator.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 303, - "basicmachine.macerator.tier.03", - "Universal Macerator", - 3, - "Schreddering your Ores with Byproducts", - GT_Recipe.GT_Recipe_Map.sMaceratorRecipes, - 1, - 2, - 0, - 0, - 1, - "Macerator2.png", - SoundResource.IC2_MACHINES_MACERATOR_OP, - false, - false, - SpecialEffects.TOP_SMOKE, - "PULVERIZER", - new Object[] { "PEG", "WWM", "CCW", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', OreDictNames.craftingGrinder }) - .getStackForm( - 1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 303, + "basicmachine.macerator.tier.03", + "Universal Macerator", + 3, + "Schreddering your Ores with Byproducts", + GT_Recipe.GT_Recipe_Map.sMaceratorRecipes, + 1, + 2, + 0, + 0, + 1, + "Macerator2.png", + SoundResource.IC2_MACHINES_MACERATOR_OP, + false, + false, + SpecialEffects.TOP_SMOKE, + "PULVERIZER", + new Object[] { "PEG", "WWM", "CCW", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', OreDictNames.craftingGrinder }) + .getStackForm(1L)); ItemList.Machine_EV_Macerator.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 304, - "basicmachine.macerator.tier.04", - "Universal Pulverizer", - 4, - "Schreddering your Ores with Byproducts", - GT_Recipe.GT_Recipe_Map.sMaceratorRecipes, - 1, - 3, - 0, - 0, - 1, - "Macerator3.png", - SoundResource.IC2_MACHINES_MACERATOR_OP, - false, - false, - SpecialEffects.TOP_SMOKE, - "PULVERIZER", - new Object[] { "PEG", "WWM", "CCW", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', OreDictNames.craftingGrinder }) - .getStackForm( - 1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 304, + "basicmachine.macerator.tier.04", + "Universal Pulverizer", + 4, + "Schreddering your Ores with Byproducts", + GT_Recipe.GT_Recipe_Map.sMaceratorRecipes, + 1, + 3, + 0, + 0, + 1, + "Macerator3.png", + SoundResource.IC2_MACHINES_MACERATOR_OP, + false, + false, + SpecialEffects.TOP_SMOKE, + "PULVERIZER", + new Object[] { "PEG", "WWM", "CCW", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', OreDictNames.craftingGrinder }) + .getStackForm(1L)); ItemList.Machine_IV_Macerator.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 305, - "basicmachine.macerator.tier.05", - "Blend-O-Matic 9001", - 5, - "Schreddering your Ores with Byproducts", - GT_Recipe.GT_Recipe_Map.sMaceratorRecipes, - 1, - 4, - 0, - 0, - 1, - "Macerator4.png", - SoundResource.IC2_MACHINES_MACERATOR_OP, - false, - false, - SpecialEffects.TOP_SMOKE, - "PULVERIZER", - new Object[] { "PEG", "WWM", "CCW", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', OreDictNames.craftingGrinder }) - .getStackForm( - 1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 305, + "basicmachine.macerator.tier.05", + "Blend-O-Matic 9001", + 5, + "Schreddering your Ores with Byproducts", + GT_Recipe.GT_Recipe_Map.sMaceratorRecipes, + 1, + 4, + 0, + 0, + 1, + "Macerator4.png", + SoundResource.IC2_MACHINES_MACERATOR_OP, + false, + false, + SpecialEffects.TOP_SMOKE, + "PULVERIZER", + new Object[] { "PEG", "WWM", "CCW", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', OreDictNames.craftingGrinder }) + .getStackForm(1L)); ItemList.Machine_LV_Microwave.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 311, - "basicmachine.microwave.tier.01", - "Basic Microwave", - 1, - "Did you really read the instruction Manual?", - GT_Recipe.GT_Recipe_Map.sMicrowaveRecipes, - 1, - 1, - 0, - 0, - 1, - "E_Furnace.png", - SoundResource.IC2_MACHINES_ELECTROFURNACE_LOOP, - false, - false, - SpecialEffects.NONE, - "MICROWAVE", - new Object[] { "LWC", "LMR", "LEC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'R', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.EMITTER, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'L', - OrePrefixes.plate.get(Materials.Lead) }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 311, + "basicmachine.microwave.tier.01", + "Basic Microwave", + 1, + "Did you really read the instruction Manual?", + GT_Recipe.GT_Recipe_Map.sMicrowaveRecipes, + 1, + 1, + 0, + 0, + 1, + "E_Furnace.png", + SoundResource.IC2_MACHINES_ELECTROFURNACE_LOOP, + false, + false, + SpecialEffects.NONE, + "MICROWAVE", + new Object[] { "LWC", "LMR", "LEC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'R', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.EMITTER, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'L', OrePrefixes.plate.get(Materials.Lead) }) + .getStackForm(1L)); ItemList.Machine_MV_Microwave.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 312, - "basicmachine.microwave.tier.02", - "Advanced Microwave", - 2, - "Did you really read the instruction Manual?", - GT_Recipe.GT_Recipe_Map.sMicrowaveRecipes, - 1, - 1, - 0, - 0, - 1, - "E_Furnace.png", - SoundResource.IC2_MACHINES_ELECTROFURNACE_LOOP, - false, - false, - SpecialEffects.NONE, - "MICROWAVE", - new Object[] { "LWC", "LMR", "LEC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'R', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.EMITTER, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'L', - OrePrefixes.plate.get(Materials.Lead) }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 312, + "basicmachine.microwave.tier.02", + "Advanced Microwave", + 2, + "Did you really read the instruction Manual?", + GT_Recipe.GT_Recipe_Map.sMicrowaveRecipes, + 1, + 1, + 0, + 0, + 1, + "E_Furnace.png", + SoundResource.IC2_MACHINES_ELECTROFURNACE_LOOP, + false, + false, + SpecialEffects.NONE, + "MICROWAVE", + new Object[] { "LWC", "LMR", "LEC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'R', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.EMITTER, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'L', OrePrefixes.plate.get(Materials.Lead) }) + .getStackForm(1L)); ItemList.Machine_HV_Microwave.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 313, - "basicmachine.microwave.tier.03", - "Advanced Microwave II", - 3, - "Did you really read the instruction Manual?", - GT_Recipe.GT_Recipe_Map.sMicrowaveRecipes, - 1, - 1, - 0, - 0, - 1, - "E_Furnace.png", - SoundResource.IC2_MACHINES_ELECTROFURNACE_LOOP, - false, - false, - SpecialEffects.NONE, - "MICROWAVE", - new Object[] { "LWC", "LMR", "LEC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'R', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.EMITTER, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'L', - OrePrefixes.plate.get(Materials.Lead) }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 313, + "basicmachine.microwave.tier.03", + "Advanced Microwave II", + 3, + "Did you really read the instruction Manual?", + GT_Recipe.GT_Recipe_Map.sMicrowaveRecipes, + 1, + 1, + 0, + 0, + 1, + "E_Furnace.png", + SoundResource.IC2_MACHINES_ELECTROFURNACE_LOOP, + false, + false, + SpecialEffects.NONE, + "MICROWAVE", + new Object[] { "LWC", "LMR", "LEC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'R', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.EMITTER, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'L', OrePrefixes.plate.get(Materials.Lead) }) + .getStackForm(1L)); ItemList.Machine_EV_Microwave.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 314, - "basicmachine.microwave.tier.04", - "Advanced Microwave III", - 4, - "Did you really read the instruction Manual?", - GT_Recipe.GT_Recipe_Map.sMicrowaveRecipes, - 1, - 1, - 0, - 0, - 1, - "E_Furnace.png", - SoundResource.IC2_MACHINES_ELECTROFURNACE_LOOP, - false, - false, - SpecialEffects.NONE, - "MICROWAVE", - new Object[] { "LWC", "LMR", "LEC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'R', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.EMITTER, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'L', - OrePrefixes.plate.get(Materials.Lead) }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 314, + "basicmachine.microwave.tier.04", + "Advanced Microwave III", + 4, + "Did you really read the instruction Manual?", + GT_Recipe.GT_Recipe_Map.sMicrowaveRecipes, + 1, + 1, + 0, + 0, + 1, + "E_Furnace.png", + SoundResource.IC2_MACHINES_ELECTROFURNACE_LOOP, + false, + false, + SpecialEffects.NONE, + "MICROWAVE", + new Object[] { "LWC", "LMR", "LEC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'R', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.EMITTER, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'L', OrePrefixes.plate.get(Materials.Lead) }) + .getStackForm(1L)); ItemList.Machine_IV_Microwave.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 315, - "basicmachine.microwave.tier.05", - "Advanced Microwave IV", - 5, - "Did you really read the instruction Manual?", - GT_Recipe.GT_Recipe_Map.sMicrowaveRecipes, - 1, - 1, - 0, - 0, - 1, - "E_Furnace.png", - SoundResource.IC2_MACHINES_ELECTROFURNACE_LOOP, - false, - false, - SpecialEffects.NONE, - "MICROWAVE", - new Object[] { "LWC", "LMR", "LEC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'R', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.EMITTER, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'L', - OrePrefixes.plate.get(Materials.Lead) }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 315, + "basicmachine.microwave.tier.05", + "Advanced Microwave IV", + 5, + "Did you really read the instruction Manual?", + GT_Recipe.GT_Recipe_Map.sMicrowaveRecipes, + 1, + 1, + 0, + 0, + 1, + "E_Furnace.png", + SoundResource.IC2_MACHINES_ELECTROFURNACE_LOOP, + false, + false, + SpecialEffects.NONE, + "MICROWAVE", + new Object[] { "LWC", "LMR", "LEC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'R', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.EMITTER, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'L', OrePrefixes.plate.get(Materials.Lead) }) + .getStackForm(1L)); ItemList.Machine_LV_Printer.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 321, - "basicmachine.printer.tier.01", - "Basic Printer", - 1, - "It can copy Books and paint Stuff", - GT_Recipe.GT_Recipe_Map.sPrinterRecipes, - 1, - 1, - 16000, - 0, - 1, - "Printer.png", - SoundResource.IC2_MACHINES_COMPRESSOR_OP, - false, - false, - SpecialEffects.TOP_SMOKE, - "PRINTER", - new Object[] { aTextMotorWire, aTextCableHull, "WEW", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 321, + "basicmachine.printer.tier.01", + "Basic Printer", + 1, + "It can copy Books and paint Stuff", + GT_Recipe.GT_Recipe_Map.sPrinterRecipes, + 1, + 1, + 16000, + 0, + 1, + "Printer.png", + SoundResource.IC2_MACHINES_COMPRESSOR_OP, + false, + false, + SpecialEffects.TOP_SMOKE, + "PRINTER", + new Object[] { aTextMotorWire, aTextCableHull, "WEW", 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_MV_Printer.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 322, - "basicmachine.printer.tier.02", - "Advanced Printer", - 2, - "It can copy Books and paint Stuff", - GT_Recipe.GT_Recipe_Map.sPrinterRecipes, - 1, - 1, - 16000, - 0, - 1, - "Printer.png", - SoundResource.IC2_MACHINES_COMPRESSOR_OP, - false, - false, - SpecialEffects.TOP_SMOKE, - "PRINTER", - new Object[] { aTextMotorWire, aTextCableHull, "WEW", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 322, + "basicmachine.printer.tier.02", + "Advanced Printer", + 2, + "It can copy Books and paint Stuff", + GT_Recipe.GT_Recipe_Map.sPrinterRecipes, + 1, + 1, + 16000, + 0, + 1, + "Printer.png", + SoundResource.IC2_MACHINES_COMPRESSOR_OP, + false, + false, + SpecialEffects.TOP_SMOKE, + "PRINTER", + new Object[] { aTextMotorWire, aTextCableHull, "WEW", 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_HV_Printer.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 323, - "basicmachine.printer.tier.03", - "Advanced Printer II", - 3, - "It can copy Books and paint Stuff", - GT_Recipe.GT_Recipe_Map.sPrinterRecipes, - 1, - 1, - 16000, - 0, - 1, - "Printer.png", - SoundResource.IC2_MACHINES_COMPRESSOR_OP, - false, - false, - SpecialEffects.TOP_SMOKE, - "PRINTER", - new Object[] { aTextMotorWire, aTextCableHull, "WEW", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 323, + "basicmachine.printer.tier.03", + "Advanced Printer II", + 3, + "It can copy Books and paint Stuff", + GT_Recipe.GT_Recipe_Map.sPrinterRecipes, + 1, + 1, + 16000, + 0, + 1, + "Printer.png", + SoundResource.IC2_MACHINES_COMPRESSOR_OP, + false, + false, + SpecialEffects.TOP_SMOKE, + "PRINTER", + new Object[] { aTextMotorWire, aTextCableHull, "WEW", 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_EV_Printer.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 324, - "basicmachine.printer.tier.04", - "Advanced Printer III", - 4, - "It can copy Books and paint Stuff", - GT_Recipe.GT_Recipe_Map.sPrinterRecipes, - 1, - 1, - 16000, - 0, - 1, - "Printer.png", - SoundResource.IC2_MACHINES_COMPRESSOR_OP, - false, - false, - SpecialEffects.TOP_SMOKE, - "PRINTER", - new Object[] { aTextMotorWire, aTextCableHull, "WEW", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 324, + "basicmachine.printer.tier.04", + "Advanced Printer III", + 4, + "It can copy Books and paint Stuff", + GT_Recipe.GT_Recipe_Map.sPrinterRecipes, + 1, + 1, + 16000, + 0, + 1, + "Printer.png", + SoundResource.IC2_MACHINES_COMPRESSOR_OP, + false, + false, + SpecialEffects.TOP_SMOKE, + "PRINTER", + new Object[] { aTextMotorWire, aTextCableHull, "WEW", 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_IV_Printer.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 325, - "basicmachine.printer.tier.05", - "Advanced Printer IV", - 5, - "It can copy Books and paint Stuff", - GT_Recipe.GT_Recipe_Map.sPrinterRecipes, - 1, - 1, - 16000, - 0, - 1, - "Printer.png", - SoundResource.IC2_MACHINES_COMPRESSOR_OP, - false, - false, - SpecialEffects.TOP_SMOKE, - "PRINTER", - new Object[] { aTextMotorWire, aTextCableHull, "WEW", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 325, + "basicmachine.printer.tier.05", + "Advanced Printer IV", + 5, + "It can copy Books and paint Stuff", + GT_Recipe.GT_Recipe_Map.sPrinterRecipes, + 1, + 1, + 16000, + 0, + 1, + "Printer.png", + SoundResource.IC2_MACHINES_COMPRESSOR_OP, + false, + false, + SpecialEffects.TOP_SMOKE, + "PRINTER", + new Object[] { aTextMotorWire, aTextCableHull, "WEW", 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_LuV_Printer.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 326, - "basicmachine.printer.tier.06", - "Advanced Printer V", - 6, - "It can copy Books and paint Stuff", - GT_Recipe.GT_Recipe_Map.sPrinterRecipes, - 1, - 1, - 16000, - 0, - 1, - "Printer.png", - SoundResource.IC2_MACHINES_COMPRESSOR_OP, - false, - false, - SpecialEffects.TOP_SMOKE, - "PRINTER", - new Object[] { aTextMotorWire, aTextCableHull, "WEW", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 326, + "basicmachine.printer.tier.06", + "Advanced Printer V", + 6, + "It can copy Books and paint Stuff", + GT_Recipe.GT_Recipe_Map.sPrinterRecipes, + 1, + 1, + 16000, + 0, + 1, + "Printer.png", + SoundResource.IC2_MACHINES_COMPRESSOR_OP, + false, + false, + SpecialEffects.TOP_SMOKE, + "PRINTER", + new Object[] { aTextMotorWire, aTextCableHull, "WEW", 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_ZPM_Printer.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 327, - "basicmachine.printer.tier.07", - "Advanced Printer VI", - 7, - "It can copy Books and paint Stuff", - GT_Recipe.GT_Recipe_Map.sPrinterRecipes, - 1, - 1, - 16000, - 0, - 1, - "Printer.png", - SoundResource.IC2_MACHINES_COMPRESSOR_OP, - false, - false, - SpecialEffects.TOP_SMOKE, - "PRINTER", - new Object[] { aTextMotorWire, aTextCableHull, "WEW", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 327, + "basicmachine.printer.tier.07", + "Advanced Printer VI", + 7, + "It can copy Books and paint Stuff", + GT_Recipe.GT_Recipe_Map.sPrinterRecipes, + 1, + 1, + 16000, + 0, + 1, + "Printer.png", + SoundResource.IC2_MACHINES_COMPRESSOR_OP, + false, + false, + SpecialEffects.TOP_SMOKE, + "PRINTER", + new Object[] { aTextMotorWire, aTextCableHull, "WEW", 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_UV_Printer.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 328, - "basicmachine.printer.tier.08", - "Advanced Printer VII", - 8, - "It can copy Books and paint Stuff", - GT_Recipe.GT_Recipe_Map.sPrinterRecipes, - 1, - 1, - 16000, - 0, - 1, - "Printer.png", - SoundResource.IC2_MACHINES_COMPRESSOR_OP, - false, - false, - SpecialEffects.TOP_SMOKE, - "PRINTER", - new Object[] { aTextMotorWire, aTextCableHull, "WEW", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 328, + "basicmachine.printer.tier.08", + "Advanced Printer VII", + 8, + "It can copy Books and paint Stuff", + GT_Recipe.GT_Recipe_Map.sPrinterRecipes, + 1, + 1, + 16000, + 0, + 1, + "Printer.png", + SoundResource.IC2_MACHINES_COMPRESSOR_OP, + false, + false, + SpecialEffects.TOP_SMOKE, + "PRINTER", + new Object[] { aTextMotorWire, aTextCableHull, "WEW", 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_LV_Recycler.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 331, - "basicmachine.recycler.tier.01", - "Basic Recycler", - 1, - "Compress, burn, obliterate and filter EVERYTHING", - GT_Recipe.GT_Recipe_Map.sRecyclerRecipes, - 1, - 1, - 0, - 0, - 1, - "Recycler.png", - SoundResource.IC2_MACHINES_RECYCLER_OP, - false, - false, - SpecialEffects.NONE, - "RECYCLER", - new Object[] { "GCG", aTextPlateMotor, aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - OrePrefixes.dust.get(Materials.Glowstone) }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 331, + "basicmachine.recycler.tier.01", + "Basic Recycler", + 1, + "Compress, burn, obliterate and filter EVERYTHING", + GT_Recipe.GT_Recipe_Map.sRecyclerRecipes, + 1, + 1, + 0, + 0, + 1, + "Recycler.png", + SoundResource.IC2_MACHINES_RECYCLER_OP, + false, + false, + SpecialEffects.NONE, + "RECYCLER", + new Object[] { "GCG", aTextPlateMotor, aTextWireCoil, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', OrePrefixes.dust.get(Materials.Glowstone) }) + .getStackForm(1L)); ItemList.Machine_MV_Recycler.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 332, - "basicmachine.recycler.tier.02", - "Advanced Recycler", - 2, - "Compress, burn, obliterate and filter EVERYTHING", - GT_Recipe.GT_Recipe_Map.sRecyclerRecipes, - 1, - 1, - 0, - 0, - 1, - "Recycler.png", - SoundResource.IC2_MACHINES_RECYCLER_OP, - false, - false, - SpecialEffects.NONE, - "RECYCLER", - new Object[] { "GCG", aTextPlateMotor, aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - OrePrefixes.dust.get(Materials.Glowstone) }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 332, + "basicmachine.recycler.tier.02", + "Advanced Recycler", + 2, + "Compress, burn, obliterate and filter EVERYTHING", + GT_Recipe.GT_Recipe_Map.sRecyclerRecipes, + 1, + 1, + 0, + 0, + 1, + "Recycler.png", + SoundResource.IC2_MACHINES_RECYCLER_OP, + false, + false, + SpecialEffects.NONE, + "RECYCLER", + new Object[] { "GCG", aTextPlateMotor, aTextWireCoil, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', OrePrefixes.dust.get(Materials.Glowstone) }) + .getStackForm(1L)); ItemList.Machine_HV_Recycler.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 333, - "basicmachine.recycler.tier.03", - "Advanced Recycler II", - 3, - "Compress, burn, obliterate and filter EVERYTHING", - GT_Recipe.GT_Recipe_Map.sRecyclerRecipes, - 1, - 1, - 0, - 0, - 1, - "Recycler.png", - SoundResource.IC2_MACHINES_RECYCLER_OP, - false, - false, - SpecialEffects.NONE, - "RECYCLER", - new Object[] { "GCG", aTextPlateMotor, aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - OrePrefixes.dust.get(Materials.Glowstone) }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 333, + "basicmachine.recycler.tier.03", + "Advanced Recycler II", + 3, + "Compress, burn, obliterate and filter EVERYTHING", + GT_Recipe.GT_Recipe_Map.sRecyclerRecipes, + 1, + 1, + 0, + 0, + 1, + "Recycler.png", + SoundResource.IC2_MACHINES_RECYCLER_OP, + false, + false, + SpecialEffects.NONE, + "RECYCLER", + new Object[] { "GCG", aTextPlateMotor, aTextWireCoil, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', OrePrefixes.dust.get(Materials.Glowstone) }) + .getStackForm(1L)); ItemList.Machine_EV_Recycler.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 334, - "basicmachine.recycler.tier.04", - "Advanced Recycler III", - 4, - "Compress, burn, obliterate and filter EVERYTHING", - GT_Recipe.GT_Recipe_Map.sRecyclerRecipes, - 1, - 1, - 0, - 0, - 1, - "Recycler.png", - SoundResource.IC2_MACHINES_RECYCLER_OP, - false, - false, - SpecialEffects.NONE, - "RECYCLER", - new Object[] { "GCG", aTextPlateMotor, aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - OrePrefixes.dust.get(Materials.Glowstone) }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 334, + "basicmachine.recycler.tier.04", + "Advanced Recycler III", + 4, + "Compress, burn, obliterate and filter EVERYTHING", + GT_Recipe.GT_Recipe_Map.sRecyclerRecipes, + 1, + 1, + 0, + 0, + 1, + "Recycler.png", + SoundResource.IC2_MACHINES_RECYCLER_OP, + false, + false, + SpecialEffects.NONE, + "RECYCLER", + new Object[] { "GCG", aTextPlateMotor, aTextWireCoil, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', OrePrefixes.dust.get(Materials.Glowstone) }) + .getStackForm(1L)); ItemList.Machine_IV_Recycler.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 335, - "basicmachine.recycler.tier.05", - "The Oblitterator", - 5, - "Compress, burn, obliterate and filter EVERYTHING", - GT_Recipe.GT_Recipe_Map.sRecyclerRecipes, - 1, - 1, - 0, - 0, - 1, - "Recycler.png", - SoundResource.IC2_MACHINES_RECYCLER_OP, - false, - false, - SpecialEffects.NONE, - "RECYCLER", - new Object[] { "GCG", aTextPlateMotor, aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - OrePrefixes.dust.get(Materials.Glowstone) }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 335, + "basicmachine.recycler.tier.05", + "The Oblitterator", + 5, + "Compress, burn, obliterate and filter EVERYTHING", + GT_Recipe.GT_Recipe_Map.sRecyclerRecipes, + 1, + 1, + 0, + 0, + 1, + "Recycler.png", + SoundResource.IC2_MACHINES_RECYCLER_OP, + false, + false, + SpecialEffects.NONE, + "RECYCLER", + new Object[] { "GCG", aTextPlateMotor, aTextWireCoil, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', OrePrefixes.dust.get(Materials.Glowstone) }) + .getStackForm(1L)); ItemList.Machine_LV_Scanner.set( - new GT_MetaTileEntity_Scanner(341, "basicmachine.scanner.tier.01", "Basic Scanner", 1).getStackForm( - 1L)); + new GT_MetaTileEntity_Scanner(341, "basicmachine.scanner.tier.01", "Basic Scanner", 1).getStackForm(1L)); ItemList.Machine_MV_Scanner.set( - new GT_MetaTileEntity_Scanner(342, "basicmachine.scanner.tier.02", "Advanced Scanner", 2).getStackForm( - 1L)); + new GT_MetaTileEntity_Scanner(342, "basicmachine.scanner.tier.02", "Advanced Scanner", 2).getStackForm(1L)); ItemList.Machine_HV_Scanner.set( - new GT_MetaTileEntity_Scanner( - 343, - "basicmachine.scanner.tier.03", - "Advanced Scanner II", - 3).getStackForm(1L)); + new GT_MetaTileEntity_Scanner(343, "basicmachine.scanner.tier.03", "Advanced Scanner II", 3) + .getStackForm(1L)); ItemList.Machine_EV_Scanner.set( - new GT_MetaTileEntity_Scanner( - 344, - "basicmachine.scanner.tier.04", - "Advanced Scanner III", - 4).getStackForm(1L)); + new GT_MetaTileEntity_Scanner(344, "basicmachine.scanner.tier.04", "Advanced Scanner III", 4) + .getStackForm(1L)); ItemList.Machine_IV_Scanner.set( - new GT_MetaTileEntity_Scanner( - 345, - "basicmachine.scanner.tier.05", - "Advanced Scanner IV", - 5).getStackForm(1L)); - - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_LV_Scanner.get(1L), - bitsd, - new Object[] { "CTC", aTextWireHull, "CRC", 'M', ItemList.Hull_LV, 'T', ItemList.Emitter_LV, 'R', - ItemList.Sensor_LV, 'C', OrePrefixes.circuit.get(Materials.Good), 'W', - OrePrefixes.cableGt01.get(Materials.Tin) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_MV_Scanner.get(1L), - bitsd, - new Object[] { "CTC", aTextWireHull, "CRC", 'M', ItemList.Hull_MV, 'T', ItemList.Emitter_MV, 'R', - ItemList.Sensor_MV, 'C', OrePrefixes.circuit.get(Materials.Advanced), 'W', - OrePrefixes.cableGt01.get(Materials.AnyCopper) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_HV_Scanner.get(1L), - bitsd, - new Object[] { "CTC", aTextWireHull, "CRC", 'M', ItemList.Hull_HV, 'T', ItemList.Emitter_HV, 'R', - ItemList.Sensor_HV, 'C', OrePrefixes.circuit.get(Materials.Data), 'W', - OrePrefixes.cableGt01.get(Materials.Gold) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_EV_Scanner.get(1L), - bitsd, - new Object[] { "CTC", aTextWireHull, "CRC", 'M', ItemList.Hull_EV, 'T', ItemList.Emitter_EV, 'R', - ItemList.Sensor_EV, 'C', OrePrefixes.circuit.get(Materials.Elite), 'W', - OrePrefixes.cableGt01.get(Materials.Aluminium) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_IV_Scanner.get(1L), - bitsd, - new Object[] { "CTC", aTextWireHull, "CRC", 'M', ItemList.Hull_IV, 'T', ItemList.Emitter_IV, 'R', - ItemList.Sensor_IV, 'C', OrePrefixes.circuit.get(Materials.Master), 'W', - OrePrefixes.cableGt01.get(Materials.Tungsten) }); + new GT_MetaTileEntity_Scanner(345, "basicmachine.scanner.tier.05", "Advanced Scanner IV", 5) + .getStackForm(1L)); + + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_LV_Scanner.get(1L), + bitsd, + new Object[] { "CTC", aTextWireHull, "CRC", 'M', ItemList.Hull_LV, 'T', ItemList.Emitter_LV, 'R', + ItemList.Sensor_LV, 'C', OrePrefixes.circuit.get(Materials.Good), 'W', + OrePrefixes.cableGt01.get(Materials.Tin) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_MV_Scanner.get(1L), + bitsd, + new Object[] { "CTC", aTextWireHull, "CRC", 'M', ItemList.Hull_MV, 'T', ItemList.Emitter_MV, 'R', + ItemList.Sensor_MV, 'C', OrePrefixes.circuit.get(Materials.Advanced), 'W', + OrePrefixes.cableGt01.get(Materials.AnyCopper) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_HV_Scanner.get(1L), + bitsd, + new Object[] { "CTC", aTextWireHull, "CRC", 'M', ItemList.Hull_HV, 'T', ItemList.Emitter_HV, 'R', + ItemList.Sensor_HV, 'C', OrePrefixes.circuit.get(Materials.Data), 'W', + OrePrefixes.cableGt01.get(Materials.Gold) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_EV_Scanner.get(1L), + bitsd, + new Object[] { "CTC", aTextWireHull, "CRC", 'M', ItemList.Hull_EV, 'T', ItemList.Emitter_EV, 'R', + ItemList.Sensor_EV, 'C', OrePrefixes.circuit.get(Materials.Elite), 'W', + OrePrefixes.cableGt01.get(Materials.Aluminium) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_IV_Scanner.get(1L), + bitsd, + new Object[] { "CTC", aTextWireHull, "CRC", 'M', ItemList.Hull_IV, 'T', ItemList.Emitter_IV, 'R', + ItemList.Sensor_IV, 'C', OrePrefixes.circuit.get(Materials.Master), 'W', + OrePrefixes.cableGt01.get(Materials.Tungsten) }); ItemList.Machine_LV_Wiremill.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 351, - "basicmachine.wiremill.tier.01", - "Basic Wiremill", - 1, - "Produces Wires more efficiently", - GT_Recipe.GT_Recipe_Map.sWiremillRecipes, - 2, - 1, - 0, - 0, - 1, - "Wiremill.png", - SoundResource.IC2_MACHINES_RECYCLER_OP, - false, - false, - SpecialEffects.NONE, - "WIREMILL", - new Object[] { aTextMotorWire, aTextCableHull, aTextMotorWire, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 351, + "basicmachine.wiremill.tier.01", + "Basic Wiremill", + 1, + "Produces Wires more efficiently", + GT_Recipe.GT_Recipe_Map.sWiremillRecipes, + 2, + 1, + 0, + 0, + 1, + "Wiremill.png", + SoundResource.IC2_MACHINES_RECYCLER_OP, + false, + false, + SpecialEffects.NONE, + "WIREMILL", + new Object[] { aTextMotorWire, aTextCableHull, aTextMotorWire, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_MV_Wiremill.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 352, - "basicmachine.wiremill.tier.02", - "Advanced Wiremill", - 2, - "Produces Wires more efficiently", - GT_Recipe.GT_Recipe_Map.sWiremillRecipes, - 2, - 1, - 0, - 0, - 1, - "Wiremill.png", - SoundResource.IC2_MACHINES_RECYCLER_OP, - false, - false, - SpecialEffects.NONE, - "WIREMILL", - new Object[] { aTextMotorWire, aTextCableHull, aTextMotorWire, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 352, + "basicmachine.wiremill.tier.02", + "Advanced Wiremill", + 2, + "Produces Wires more efficiently", + GT_Recipe.GT_Recipe_Map.sWiremillRecipes, + 2, + 1, + 0, + 0, + 1, + "Wiremill.png", + SoundResource.IC2_MACHINES_RECYCLER_OP, + false, + false, + SpecialEffects.NONE, + "WIREMILL", + new Object[] { aTextMotorWire, aTextCableHull, aTextMotorWire, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_HV_Wiremill.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 353, - "basicmachine.wiremill.tier.03", - "Advanced Wiremill II", - 3, - "Produces Wires more efficiently", - GT_Recipe.GT_Recipe_Map.sWiremillRecipes, - 2, - 1, - 0, - 0, - 1, - "Wiremill.png", - SoundResource.IC2_MACHINES_RECYCLER_OP, - false, - false, - SpecialEffects.NONE, - "WIREMILL", - new Object[] { aTextMotorWire, aTextCableHull, aTextMotorWire, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 353, + "basicmachine.wiremill.tier.03", + "Advanced Wiremill II", + 3, + "Produces Wires more efficiently", + GT_Recipe.GT_Recipe_Map.sWiremillRecipes, + 2, + 1, + 0, + 0, + 1, + "Wiremill.png", + SoundResource.IC2_MACHINES_RECYCLER_OP, + false, + false, + SpecialEffects.NONE, + "WIREMILL", + new Object[] { aTextMotorWire, aTextCableHull, aTextMotorWire, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_EV_Wiremill.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 354, - "basicmachine.wiremill.tier.04", - "Advanced Wiremill III", - 4, - "Produces Wires more efficiently", - GT_Recipe.GT_Recipe_Map.sWiremillRecipes, - 2, - 1, - 0, - 0, - 1, - "Wiremill.png", - SoundResource.IC2_MACHINES_RECYCLER_OP, - false, - false, - SpecialEffects.NONE, - "WIREMILL", - new Object[] { aTextMotorWire, aTextCableHull, aTextMotorWire, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 354, + "basicmachine.wiremill.tier.04", + "Advanced Wiremill III", + 4, + "Produces Wires more efficiently", + GT_Recipe.GT_Recipe_Map.sWiremillRecipes, + 2, + 1, + 0, + 0, + 1, + "Wiremill.png", + SoundResource.IC2_MACHINES_RECYCLER_OP, + false, + false, + SpecialEffects.NONE, + "WIREMILL", + new Object[] { aTextMotorWire, aTextCableHull, aTextMotorWire, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_IV_Wiremill.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 355, - "basicmachine.wiremill.tier.05", - "Advanced Wiremill IV", - 5, - "Produces Wires more efficiently", - GT_Recipe.GT_Recipe_Map.sWiremillRecipes, - 2, - 1, - 0, - 0, - 1, - "Wiremill.png", - SoundResource.IC2_MACHINES_RECYCLER_OP, - false, - false, - SpecialEffects.NONE, - "WIREMILL", - new Object[] { aTextMotorWire, aTextCableHull, aTextMotorWire, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 355, + "basicmachine.wiremill.tier.05", + "Advanced Wiremill IV", + 5, + "Produces Wires more efficiently", + GT_Recipe.GT_Recipe_Map.sWiremillRecipes, + 2, + 1, + 0, + 0, + 1, + "Wiremill.png", + SoundResource.IC2_MACHINES_RECYCLER_OP, + false, + false, + SpecialEffects.NONE, + "WIREMILL", + new Object[] { aTextMotorWire, aTextCableHull, aTextMotorWire, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_LV_Centrifuge.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 361, - "basicmachine.centrifuge.tier.01", - "Basic Centrifuge", - 1, - "Separating Molecules", - GT_Recipe.GT_Recipe_Map.sCentrifugeRecipes, - 2, - 6, - 64000, - 0, - 1, - "Centrifuge.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "CENTRIFUGE", - new Object[] { "CEC", aTextWireHull, "CEC", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 361, + "basicmachine.centrifuge.tier.01", + "Basic Centrifuge", + 1, + "Separating Molecules", + GT_Recipe.GT_Recipe_Map.sCentrifugeRecipes, + 2, + 6, + 64000, + 0, + 1, + "Centrifuge.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "CENTRIFUGE", + new Object[] { "CEC", aTextWireHull, "CEC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_MV_Centrifuge.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 362, - "basicmachine.centrifuge.tier.02", - "Advanced Centrifuge", - 2, - "Separating Molecules", - GT_Recipe.GT_Recipe_Map.sCentrifugeRecipes, - 2, - 6, - 64000, - 0, - 1, - "Centrifuge.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "CENTRIFUGE", - new Object[] { "CEC", aTextWireHull, "CEC", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 362, + "basicmachine.centrifuge.tier.02", + "Advanced Centrifuge", + 2, + "Separating Molecules", + GT_Recipe.GT_Recipe_Map.sCentrifugeRecipes, + 2, + 6, + 64000, + 0, + 1, + "Centrifuge.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "CENTRIFUGE", + new Object[] { "CEC", aTextWireHull, "CEC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_HV_Centrifuge.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 363, - "basicmachine.centrifuge.tier.03", - "Turbo Centrifuge", - 3, - "Separating Molecules", - GT_Recipe.GT_Recipe_Map.sCentrifugeRecipes, - 2, - 6, - 64000, - 0, - 1, - "Centrifuge.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "CENTRIFUGE", - new Object[] { "CEC", aTextWireHull, "CEC", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 363, + "basicmachine.centrifuge.tier.03", + "Turbo Centrifuge", + 3, + "Separating Molecules", + GT_Recipe.GT_Recipe_Map.sCentrifugeRecipes, + 2, + 6, + 64000, + 0, + 1, + "Centrifuge.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "CENTRIFUGE", + new Object[] { "CEC", aTextWireHull, "CEC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_EV_Centrifuge.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 364, - "basicmachine.centrifuge.tier.04", - "Molecular Separator", - 4, - "Separating Molecules", - GT_Recipe.GT_Recipe_Map.sCentrifugeRecipes, - 2, - 6, - 64000, - 0, - 1, - "Centrifuge.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "CENTRIFUGE", - new Object[] { "CEC", aTextWireHull, "CEC", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 364, + "basicmachine.centrifuge.tier.04", + "Molecular Separator", + 4, + "Separating Molecules", + GT_Recipe.GT_Recipe_Map.sCentrifugeRecipes, + 2, + 6, + 64000, + 0, + 1, + "Centrifuge.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "CENTRIFUGE", + new Object[] { "CEC", aTextWireHull, "CEC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_IV_Centrifuge.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 365, - "basicmachine.centrifuge.tier.05", - "Molecular Cyclone", - 5, - "Separating Molecules", - GT_Recipe.GT_Recipe_Map.sCentrifugeRecipes, - 2, - 6, - 64000, - 0, - 1, - "Centrifuge.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "CENTRIFUGE", - new Object[] { "CEC", aTextWireHull, "CEC", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 365, + "basicmachine.centrifuge.tier.05", + "Molecular Cyclone", + 5, + "Separating Molecules", + GT_Recipe.GT_Recipe_Map.sCentrifugeRecipes, + 2, + 6, + 64000, + 0, + 1, + "Centrifuge.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "CENTRIFUGE", + new Object[] { "CEC", aTextWireHull, "CEC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_LV_Electrolyzer.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 371, - "basicmachine.electrolyzer.tier.01", - "Basic Electrolyzer", - 1, - "Electrolyzing Molecules", - GT_Recipe.GT_Recipe_Map.sElectrolyzerRecipes, - 2, - 6, - 64000, - 0, - 1, - "Electrolyzer.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "ELECTROLYZER", - new Object[] { "IGI", "IMI", "CWC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'I', - OrePrefixes.wireGt01.get(Materials.Gold), 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 371, + "basicmachine.electrolyzer.tier.01", + "Basic Electrolyzer", + 1, + "Electrolyzing Molecules", + GT_Recipe.GT_Recipe_Map.sElectrolyzerRecipes, + 2, + 6, + 64000, + 0, + 1, + "Electrolyzer.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "ELECTROLYZER", + new Object[] { "IGI", "IMI", "CWC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'I', OrePrefixes.wireGt01.get(Materials.Gold), 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_MV_Electrolyzer.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 372, - "basicmachine.electrolyzer.tier.02", - "Advanced Electrolyzer", - 2, - "Electrolyzing Molecules", - GT_Recipe.GT_Recipe_Map.sElectrolyzerRecipes, - 2, - 6, - 64000, - 0, - 1, - "Electrolyzer.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "ELECTROLYZER", - new Object[] { "IGI", "IMI", "CWC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'I', - OrePrefixes.wireGt01.get(Materials.Silver), 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 372, + "basicmachine.electrolyzer.tier.02", + "Advanced Electrolyzer", + 2, + "Electrolyzing Molecules", + GT_Recipe.GT_Recipe_Map.sElectrolyzerRecipes, + 2, + 6, + 64000, + 0, + 1, + "Electrolyzer.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "ELECTROLYZER", + new Object[] { "IGI", "IMI", "CWC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'I', OrePrefixes.wireGt01.get(Materials.Silver), + 'G', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_HV_Electrolyzer.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 373, - "basicmachine.electrolyzer.tier.03", - "Advanced Electrolyzer II", - 3, - "Electrolyzing Molecules", - GT_Recipe.GT_Recipe_Map.sElectrolyzerRecipes, - 2, - 6, - 64000, - 0, - 1, - "Electrolyzer.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "ELECTROLYZER", - new Object[] { "IGI", "IMI", "CWC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'I', - OrePrefixes.wireGt01.get(Materials.Electrum), 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 373, + "basicmachine.electrolyzer.tier.03", + "Advanced Electrolyzer II", + 3, + "Electrolyzing Molecules", + GT_Recipe.GT_Recipe_Map.sElectrolyzerRecipes, + 2, + 6, + 64000, + 0, + 1, + "Electrolyzer.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "ELECTROLYZER", + new Object[] { "IGI", "IMI", "CWC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'I', OrePrefixes.wireGt01.get(Materials.Electrum), + 'G', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_EV_Electrolyzer.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 374, - "basicmachine.electrolyzer.tier.04", - "Advanced Electrolyzer III", - 4, - "Electrolyzing Molecules", - GT_Recipe.GT_Recipe_Map.sElectrolyzerRecipes, - 2, - 6, - 64000, - 0, - 1, - "Electrolyzer.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "ELECTROLYZER", - new Object[] { "IGI", "IMI", "CWC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'I', - OrePrefixes.wireGt01.get(Materials.Platinum), 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 374, + "basicmachine.electrolyzer.tier.04", + "Advanced Electrolyzer III", + 4, + "Electrolyzing Molecules", + GT_Recipe.GT_Recipe_Map.sElectrolyzerRecipes, + 2, + 6, + 64000, + 0, + 1, + "Electrolyzer.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "ELECTROLYZER", + new Object[] { "IGI", "IMI", "CWC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'I', OrePrefixes.wireGt01.get(Materials.Platinum), + 'G', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_IV_Electrolyzer.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 375, - "basicmachine.electrolyzer.tier.05", - "Molecular Disintegrator E-4908", - 5, - "Electrolyzing Molecules", - GT_Recipe.GT_Recipe_Map.sElectrolyzerRecipes, - 2, - 6, - 64000, - 0, - 1, - "Electrolyzer.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "ELECTROLYZER", - new Object[] { "IGI", "IMI", "CWC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'I', - OrePrefixes.wireGt01.get(Materials.HSSG), 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 375, + "basicmachine.electrolyzer.tier.05", + "Molecular Disintegrator E-4908", + 5, + "Electrolyzing Molecules", + GT_Recipe.GT_Recipe_Map.sElectrolyzerRecipes, + 2, + 6, + 64000, + 0, + 1, + "Electrolyzer.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "ELECTROLYZER", + new Object[] { "IGI", "IMI", "CWC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'I', OrePrefixes.wireGt01.get(Materials.HSSG), 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_LV_ThermalCentrifuge.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 381, - "basicmachine.thermalcentrifuge.tier.01", - "Basic Thermal Centrifuge", - 1, - "Separating Ores more precisely", - GT_Recipe.GT_Recipe_Map.sThermalCentrifugeRecipes, - 1, - 3, - 0, - 0, - 1, - "ThermalCentrifuge.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "THERMAL_CENTRIFUGE", - new Object[] { "CEC", "OMO", "WEW", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'O', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 381, + "basicmachine.thermalcentrifuge.tier.01", + "Basic Thermal Centrifuge", + 1, + "Separating Ores more precisely", + GT_Recipe.GT_Recipe_Map.sThermalCentrifugeRecipes, + 1, + 3, + 0, + 0, + 1, + "ThermalCentrifuge.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "THERMAL_CENTRIFUGE", + new Object[] { "CEC", "OMO", "WEW", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'O', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE }).getStackForm(1L)); ItemList.Machine_MV_ThermalCentrifuge.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 382, - "basicmachine.thermalcentrifuge.tier.02", - "Advanced Thermal Centrifuge", - 2, - "Separating Ores more precisely", - GT_Recipe.GT_Recipe_Map.sThermalCentrifugeRecipes, - 1, - 3, - 0, - 0, - 1, - "ThermalCentrifuge.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "THERMAL_CENTRIFUGE", - new Object[] { "CEC", "OMO", "WEW", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'O', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 382, + "basicmachine.thermalcentrifuge.tier.02", + "Advanced Thermal Centrifuge", + 2, + "Separating Ores more precisely", + GT_Recipe.GT_Recipe_Map.sThermalCentrifugeRecipes, + 1, + 3, + 0, + 0, + 1, + "ThermalCentrifuge.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "THERMAL_CENTRIFUGE", + new Object[] { "CEC", "OMO", "WEW", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'O', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE }).getStackForm(1L)); ItemList.Machine_HV_ThermalCentrifuge.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 383, - "basicmachine.thermalcentrifuge.tier.03", - "Advanced Thermal Centrifuge II", - 3, - "Separating Ores more precisely", - GT_Recipe.GT_Recipe_Map.sThermalCentrifugeRecipes, - 1, - 3, - 0, - 0, - 1, - "ThermalCentrifuge.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "THERMAL_CENTRIFUGE", - new Object[] { "CEC", "OMO", "WEW", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'O', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 383, + "basicmachine.thermalcentrifuge.tier.03", + "Advanced Thermal Centrifuge II", + 3, + "Separating Ores more precisely", + GT_Recipe.GT_Recipe_Map.sThermalCentrifugeRecipes, + 1, + 3, + 0, + 0, + 1, + "ThermalCentrifuge.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "THERMAL_CENTRIFUGE", + new Object[] { "CEC", "OMO", "WEW", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'O', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE }).getStackForm(1L)); ItemList.Machine_EV_ThermalCentrifuge.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 384, - "basicmachine.thermalcentrifuge.tier.04", - "Advanced Thermal Centrifuge III", - 4, - "Separating Ores more precisely", - GT_Recipe.GT_Recipe_Map.sThermalCentrifugeRecipes, - 1, - 3, - 0, - 0, - 1, - "ThermalCentrifuge.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "THERMAL_CENTRIFUGE", - new Object[] { "CEC", "OMO", "WEW", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'O', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 384, + "basicmachine.thermalcentrifuge.tier.04", + "Advanced Thermal Centrifuge III", + 4, + "Separating Ores more precisely", + GT_Recipe.GT_Recipe_Map.sThermalCentrifugeRecipes, + 1, + 3, + 0, + 0, + 1, + "ThermalCentrifuge.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "THERMAL_CENTRIFUGE", + new Object[] { "CEC", "OMO", "WEW", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'O', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE }).getStackForm(1L)); ItemList.Machine_IV_ThermalCentrifuge.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 385, - "basicmachine.thermalcentrifuge.tier.05", - "Blaze Sweatshop T-6350", - 5, - "Separating Ores more precisely", - GT_Recipe.GT_Recipe_Map.sThermalCentrifugeRecipes, - 1, - 3, - 0, - 0, - 1, - "ThermalCentrifuge.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "THERMAL_CENTRIFUGE", - new Object[] { "CEC", "OMO", "WEW", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'O', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 385, + "basicmachine.thermalcentrifuge.tier.05", + "Blaze Sweatshop T-6350", + 5, + "Separating Ores more precisely", + GT_Recipe.GT_Recipe_Map.sThermalCentrifugeRecipes, + 1, + 3, + 0, + 0, + 1, + "ThermalCentrifuge.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "THERMAL_CENTRIFUGE", + new Object[] { "CEC", "OMO", "WEW", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'O', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE }).getStackForm(1L)); ItemList.Machine_LV_OreWasher.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 391, - "basicmachine.orewasher.tier.01", - "Basic Ore Washing Plant", - 1, - "Getting more Byproducts from your Ores", - GT_Recipe.GT_Recipe_Map.sOreWasherRecipes, - 1, - 3, - 16000, - 0, - 1, - "OreWasher.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "ORE_WASHER", - new Object[] { "RGR", "CEC", aTextWireHull, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'R', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROTOR, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 391, + "basicmachine.orewasher.tier.01", + "Basic Ore Washing Plant", + 1, + "Getting more Byproducts from your Ores", + GT_Recipe.GT_Recipe_Map.sOreWasherRecipes, + 1, + 3, + 16000, + 0, + 1, + "OreWasher.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "ORE_WASHER", + new Object[] { "RGR", "CEC", aTextWireHull, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'R', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROTOR, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP }).getStackForm(1L)); ItemList.Machine_MV_OreWasher.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 392, - "basicmachine.orewasher.tier.02", - "Advanced Ore Washing Plant", - 2, - "Getting more Byproducts from your Ores", - GT_Recipe.GT_Recipe_Map.sOreWasherRecipes, - 1, - 3, - 24000, - 0, - 1, - "OreWasher.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "ORE_WASHER", - new Object[] { "RGR", "CEC", aTextWireHull, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'R', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROTOR, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 392, + "basicmachine.orewasher.tier.02", + "Advanced Ore Washing Plant", + 2, + "Getting more Byproducts from your Ores", + GT_Recipe.GT_Recipe_Map.sOreWasherRecipes, + 1, + 3, + 24000, + 0, + 1, + "OreWasher.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "ORE_WASHER", + new Object[] { "RGR", "CEC", aTextWireHull, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'R', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROTOR, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP }).getStackForm(1L)); ItemList.Machine_HV_OreWasher.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 393, - "basicmachine.orewasher.tier.03", - "Advanced Ore Washing Plant II", - 3, - "Getting more Byproducts from your Ores", - GT_Recipe.GT_Recipe_Map.sOreWasherRecipes, - 1, - 3, - 32000, - 0, - 1, - "OreWasher.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "ORE_WASHER", - new Object[] { "RGR", "CEC", aTextWireHull, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'R', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROTOR, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 393, + "basicmachine.orewasher.tier.03", + "Advanced Ore Washing Plant II", + 3, + "Getting more Byproducts from your Ores", + GT_Recipe.GT_Recipe_Map.sOreWasherRecipes, + 1, + 3, + 32000, + 0, + 1, + "OreWasher.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "ORE_WASHER", + new Object[] { "RGR", "CEC", aTextWireHull, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'R', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROTOR, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP }).getStackForm(1L)); ItemList.Machine_EV_OreWasher.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 394, - "basicmachine.orewasher.tier.04", - "Advanced Ore Washing Plant III", - 4, - "Getting more Byproducts from your Ores", - GT_Recipe.GT_Recipe_Map.sOreWasherRecipes, - 1, - 3, - 40000, - 0, - 1, - "OreWasher.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "ORE_WASHER", - new Object[] { "RGR", "CEC", aTextWireHull, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'R', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROTOR, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 394, + "basicmachine.orewasher.tier.04", + "Advanced Ore Washing Plant III", + 4, + "Getting more Byproducts from your Ores", + GT_Recipe.GT_Recipe_Map.sOreWasherRecipes, + 1, + 3, + 40000, + 0, + 1, + "OreWasher.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "ORE_WASHER", + new Object[] { "RGR", "CEC", aTextWireHull, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'R', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROTOR, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP }).getStackForm(1L)); ItemList.Machine_IV_OreWasher.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 395, - "basicmachine.orewasher.tier.05", - "Repurposed Laundry-Washer I-360", - 5, - "Getting more Byproducts from your Ores", - GT_Recipe.GT_Recipe_Map.sOreWasherRecipes, - 1, - 3, - 48000, - 0, - 1, - "OreWasher.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "ORE_WASHER", - new Object[] { "RGR", "CEC", aTextWireHull, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'R', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROTOR, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 395, + "basicmachine.orewasher.tier.05", + "Repurposed Laundry-Washer I-360", + 5, + "Getting more Byproducts from your Ores", + GT_Recipe.GT_Recipe_Map.sOreWasherRecipes, + 1, + 3, + 48000, + 0, + 1, + "OreWasher.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "ORE_WASHER", + new Object[] { "RGR", "CEC", aTextWireHull, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'R', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROTOR, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP }).getStackForm(1L)); ItemList.Machine_LV_Boxinator.set( - new GT_MetaTileEntity_Boxinator( - 401, - "basicmachine.boxinator.tier.01", - "Basic Packager", - 1).getStackForm(1L)); + new GT_MetaTileEntity_Boxinator(401, "basicmachine.boxinator.tier.01", "Basic Packager", 1) + .getStackForm(1L)); ItemList.Machine_MV_Boxinator.set( - new GT_MetaTileEntity_Boxinator( - 402, - "basicmachine.boxinator.tier.02", - "Advanced Packager", - 2).getStackForm(1L)); + new GT_MetaTileEntity_Boxinator(402, "basicmachine.boxinator.tier.02", "Advanced Packager", 2) + .getStackForm(1L)); ItemList.Machine_HV_Boxinator.set( - new GT_MetaTileEntity_Boxinator( - 403, - "basicmachine.boxinator.tier.03", - "Advanced Packager II", - 3).getStackForm(1L)); + new GT_MetaTileEntity_Boxinator(403, "basicmachine.boxinator.tier.03", "Advanced Packager II", 3) + .getStackForm(1L)); ItemList.Machine_EV_Boxinator.set( - new GT_MetaTileEntity_Boxinator( - 404, - "basicmachine.boxinator.tier.04", - "Advanced Packager III", - 4).getStackForm(1L)); + new GT_MetaTileEntity_Boxinator(404, "basicmachine.boxinator.tier.04", "Advanced Packager III", 4) + .getStackForm(1L)); ItemList.Machine_IV_Boxinator.set( - new GT_MetaTileEntity_Boxinator(405, "basicmachine.boxinator.tier.05", "Boxinator", 5).getStackForm( - 1L)); + new GT_MetaTileEntity_Boxinator(405, "basicmachine.boxinator.tier.05", "Boxinator", 5).getStackForm(1L)); ItemList.Machine_LuV_Boxinator.set( - new GT_MetaTileEntity_Boxinator(406, "basicmachine.boxinator.tier.06", "Boxinator", 6).getStackForm( - 1L)); + new GT_MetaTileEntity_Boxinator(406, "basicmachine.boxinator.tier.06", "Boxinator", 6).getStackForm(1L)); ItemList.Machine_ZPM_Boxinator.set( - new GT_MetaTileEntity_Boxinator(407, "basicmachine.boxinator.tier.07", "Boxinator", 7).getStackForm( - 1L)); + new GT_MetaTileEntity_Boxinator(407, "basicmachine.boxinator.tier.07", "Boxinator", 7).getStackForm(1L)); ItemList.Machine_UV_Boxinator.set( - new GT_MetaTileEntity_Boxinator(408, "basicmachine.boxinator.tier.08", "Boxinator", 8).getStackForm( - 1L)); - - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_LV_Boxinator.get(1L), - bitsd, - new Object[] { "BCB", "RMV", aTextWireCoil, 'M', ItemList.Hull_LV, 'R', ItemList.Robot_Arm_LV, 'V', - ItemList.Conveyor_Module_LV, 'C', OrePrefixes.circuit.get(Materials.Basic), 'W', - OrePrefixes.cableGt01.get(Materials.Tin), 'B', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_MV_Boxinator.get(1L), - bitsd, - new Object[] { "BCB", "RMV", aTextWireCoil, 'M', ItemList.Hull_MV, 'R', ItemList.Robot_Arm_MV, 'V', - ItemList.Conveyor_Module_MV, 'C', OrePrefixes.circuit.get(Materials.Good), 'W', - OrePrefixes.cableGt01.get(Materials.AnyCopper), 'B', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_HV_Boxinator.get(1L), - bitsd, - new Object[] { "BCB", "RMV", aTextWireCoil, 'M', ItemList.Hull_HV, 'R', ItemList.Robot_Arm_HV, 'V', - ItemList.Conveyor_Module_HV, 'C', OrePrefixes.circuit.get(Materials.Advanced), 'W', - OrePrefixes.cableGt01.get(Materials.Gold), 'B', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_EV_Boxinator.get(1L), - bitsd, - new Object[] { "BCB", "RMV", aTextWireCoil, 'M', ItemList.Hull_EV, 'R', ItemList.Robot_Arm_EV, 'V', - ItemList.Conveyor_Module_EV, 'C', OrePrefixes.circuit.get(Materials.Data), 'W', - OrePrefixes.cableGt01.get(Materials.Aluminium), 'B', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_IV_Boxinator.get(1L), - bitsd, - new Object[] { "BCB", "RMV", aTextWireCoil, 'M', ItemList.Hull_IV, 'R', ItemList.Robot_Arm_IV, 'V', - ItemList.Conveyor_Module_IV, 'C', OrePrefixes.circuit.get(Materials.Elite), 'W', - OrePrefixes.cableGt01.get(Materials.Tungsten), 'B', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_LuV_Boxinator.get(1L), - bitsd, - new Object[] { "BCB", "RMV", aTextWireCoil, 'M', ItemList.Hull_LuV, 'R', ItemList.Robot_Arm_LuV, 'V', - ItemList.Conveyor_Module_LuV, 'C', OrePrefixes.circuit.get(Materials.Master), 'W', - OrePrefixes.cableGt01.get(Materials.VanadiumGallium), 'B', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_ZPM_Boxinator.get(1L), - bitsd, - new Object[] { "BCB", "RMV", aTextWireCoil, 'M', ItemList.Hull_ZPM, 'R', ItemList.Robot_Arm_ZPM, 'V', - ItemList.Conveyor_Module_ZPM, 'C', OrePrefixes.circuit.get(Materials.Ultimate), 'W', - OrePrefixes.cableGt01.get(Materials.Naquadah), 'B', OreDictNames.craftingChest }); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_UV_Boxinator.get(1L), - bitsd, - new Object[] { "BCB", "RMV", aTextWireCoil, 'M', ItemList.Hull_UV, 'R', ItemList.Robot_Arm_UV, 'V', - ItemList.Conveyor_Module_UV, 'C', OrePrefixes.circuit.get(Materials.SuperconductorUHV), 'W', - OrePrefixes.cableGt01.get(Materials.NaquadahAlloy), 'B', OreDictNames.craftingChest }); + new GT_MetaTileEntity_Boxinator(408, "basicmachine.boxinator.tier.08", "Boxinator", 8).getStackForm(1L)); + + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_LV_Boxinator.get(1L), + bitsd, + new Object[] { "BCB", "RMV", aTextWireCoil, 'M', ItemList.Hull_LV, 'R', ItemList.Robot_Arm_LV, 'V', + ItemList.Conveyor_Module_LV, 'C', OrePrefixes.circuit.get(Materials.Basic), 'W', + OrePrefixes.cableGt01.get(Materials.Tin), 'B', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_MV_Boxinator.get(1L), + bitsd, + new Object[] { "BCB", "RMV", aTextWireCoil, 'M', ItemList.Hull_MV, 'R', ItemList.Robot_Arm_MV, 'V', + ItemList.Conveyor_Module_MV, 'C', OrePrefixes.circuit.get(Materials.Good), 'W', + OrePrefixes.cableGt01.get(Materials.AnyCopper), 'B', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_HV_Boxinator.get(1L), + bitsd, + new Object[] { "BCB", "RMV", aTextWireCoil, 'M', ItemList.Hull_HV, 'R', ItemList.Robot_Arm_HV, 'V', + ItemList.Conveyor_Module_HV, 'C', OrePrefixes.circuit.get(Materials.Advanced), 'W', + OrePrefixes.cableGt01.get(Materials.Gold), 'B', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_EV_Boxinator.get(1L), + bitsd, + new Object[] { "BCB", "RMV", aTextWireCoil, 'M', ItemList.Hull_EV, 'R', ItemList.Robot_Arm_EV, 'V', + ItemList.Conveyor_Module_EV, 'C', OrePrefixes.circuit.get(Materials.Data), 'W', + OrePrefixes.cableGt01.get(Materials.Aluminium), 'B', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_IV_Boxinator.get(1L), + bitsd, + new Object[] { "BCB", "RMV", aTextWireCoil, 'M', ItemList.Hull_IV, 'R', ItemList.Robot_Arm_IV, 'V', + ItemList.Conveyor_Module_IV, 'C', OrePrefixes.circuit.get(Materials.Elite), 'W', + OrePrefixes.cableGt01.get(Materials.Tungsten), 'B', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_LuV_Boxinator.get(1L), + bitsd, + new Object[] { "BCB", "RMV", aTextWireCoil, 'M', ItemList.Hull_LuV, 'R', ItemList.Robot_Arm_LuV, 'V', + ItemList.Conveyor_Module_LuV, 'C', OrePrefixes.circuit.get(Materials.Master), 'W', + OrePrefixes.cableGt01.get(Materials.VanadiumGallium), 'B', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_ZPM_Boxinator.get(1L), + bitsd, + new Object[] { "BCB", "RMV", aTextWireCoil, 'M', ItemList.Hull_ZPM, 'R', ItemList.Robot_Arm_ZPM, 'V', + ItemList.Conveyor_Module_ZPM, 'C', OrePrefixes.circuit.get(Materials.Ultimate), 'W', + OrePrefixes.cableGt01.get(Materials.Naquadah), 'B', OreDictNames.craftingChest }); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_UV_Boxinator.get(1L), + bitsd, + new Object[] { "BCB", "RMV", aTextWireCoil, 'M', ItemList.Hull_UV, 'R', ItemList.Robot_Arm_UV, 'V', + ItemList.Conveyor_Module_UV, 'C', OrePrefixes.circuit.get(Materials.SuperconductorUHV), 'W', + OrePrefixes.cableGt01.get(Materials.NaquadahAlloy), 'B', OreDictNames.craftingChest }); ItemList.Machine_LV_Unboxinator.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 411, - "basicmachine.unboxinator.tier.01", - "Basic Unpackager", - 1, - "Grabs things out of Boxes", - GT_Recipe.GT_Recipe_Map.sUnboxinatorRecipes, - 1, - 2, - 0, - 0, - 1, - "Unpackager.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "UNBOXINATOR", - new Object[] { "BCB", "VMR", aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'R', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROBOT_ARM, 'V', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'B', OreDictNames.craftingChest }) - .getStackForm( - 1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 411, + "basicmachine.unboxinator.tier.01", + "Basic Unpackager", + 1, + "Grabs things out of Boxes", + GT_Recipe.GT_Recipe_Map.sUnboxinatorRecipes, + 1, + 2, + 0, + 0, + 1, + "Unpackager.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "UNBOXINATOR", + new Object[] { "BCB", "VMR", aTextWireCoil, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'R', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROBOT_ARM, 'V', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'B', OreDictNames.craftingChest }) + .getStackForm(1L)); ItemList.Machine_MV_Unboxinator.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 412, - "basicmachine.unboxinator.tier.02", - "Advanced Unpackager", - 2, - "Grabs things out of Boxes", - GT_Recipe.GT_Recipe_Map.sUnboxinatorRecipes, - 1, - 2, - 0, - 0, - 1, - "Unpackager.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "UNBOXINATOR", - new Object[] { "BCB", "VMR", aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'R', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROBOT_ARM, 'V', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'B', OreDictNames.craftingChest }) - .getStackForm( - 1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 412, + "basicmachine.unboxinator.tier.02", + "Advanced Unpackager", + 2, + "Grabs things out of Boxes", + GT_Recipe.GT_Recipe_Map.sUnboxinatorRecipes, + 1, + 2, + 0, + 0, + 1, + "Unpackager.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "UNBOXINATOR", + new Object[] { "BCB", "VMR", aTextWireCoil, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'R', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROBOT_ARM, 'V', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'B', OreDictNames.craftingChest }) + .getStackForm(1L)); ItemList.Machine_HV_Unboxinator.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 413, - "basicmachine.unboxinator.tier.03", - "Advanced Unpackager II", - 3, - "Grabs things out of Boxes", - GT_Recipe.GT_Recipe_Map.sUnboxinatorRecipes, - 1, - 2, - 0, - 0, - 1, - "Unpackager.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "UNBOXINATOR", - new Object[] { "BCB", "VMR", aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'R', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROBOT_ARM, 'V', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'B', OreDictNames.craftingChest }) - .getStackForm( - 1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 413, + "basicmachine.unboxinator.tier.03", + "Advanced Unpackager II", + 3, + "Grabs things out of Boxes", + GT_Recipe.GT_Recipe_Map.sUnboxinatorRecipes, + 1, + 2, + 0, + 0, + 1, + "Unpackager.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "UNBOXINATOR", + new Object[] { "BCB", "VMR", aTextWireCoil, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'R', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROBOT_ARM, 'V', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'B', OreDictNames.craftingChest }) + .getStackForm(1L)); ItemList.Machine_EV_Unboxinator.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 414, - "basicmachine.unboxinator.tier.04", - "Advanced Unpackager III", - 4, - "Grabs things out of Boxes", - GT_Recipe.GT_Recipe_Map.sUnboxinatorRecipes, - 1, - 2, - 0, - 0, - 1, - "Unpackager.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "UNBOXINATOR", - new Object[] { "BCB", "VMR", aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'R', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROBOT_ARM, 'V', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'B', OreDictNames.craftingChest }) - .getStackForm( - 1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 414, + "basicmachine.unboxinator.tier.04", + "Advanced Unpackager III", + 4, + "Grabs things out of Boxes", + GT_Recipe.GT_Recipe_Map.sUnboxinatorRecipes, + 1, + 2, + 0, + 0, + 1, + "Unpackager.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "UNBOXINATOR", + new Object[] { "BCB", "VMR", aTextWireCoil, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'R', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROBOT_ARM, 'V', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'B', OreDictNames.craftingChest }) + .getStackForm(1L)); ItemList.Machine_IV_Unboxinator.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 415, - "basicmachine.unboxinator.tier.05", - "Unboxinator", - 5, - "Grabs things out of Boxes", - GT_Recipe.GT_Recipe_Map.sUnboxinatorRecipes, - 1, - 2, - 0, - 0, - 1, - "Unpackager.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "UNBOXINATOR", - new Object[] { "BCB", "VMR", aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'R', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROBOT_ARM, 'V', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'B', OreDictNames.craftingChest }) - .getStackForm( - 1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 415, + "basicmachine.unboxinator.tier.05", + "Unboxinator", + 5, + "Grabs things out of Boxes", + GT_Recipe.GT_Recipe_Map.sUnboxinatorRecipes, + 1, + 2, + 0, + 0, + 1, + "Unpackager.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "UNBOXINATOR", + new Object[] { "BCB", "VMR", aTextWireCoil, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'R', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROBOT_ARM, 'V', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'B', OreDictNames.craftingChest }) + .getStackForm(1L)); ItemList.Machine_LuV_Unboxinator.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 416, - "basicmachine.unboxinator.tier.06", - "Unboxinator", - 6, - "Grabs things out of Boxes", - GT_Recipe.GT_Recipe_Map.sUnboxinatorRecipes, - 1, - 2, - 0, - 0, - 1, - "Unpackager.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "UNBOXINATOR", - new Object[] { "BCB", "VMR", aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'R', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROBOT_ARM, 'V', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'B', OreDictNames.craftingChest }) - .getStackForm( - 1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 416, + "basicmachine.unboxinator.tier.06", + "Unboxinator", + 6, + "Grabs things out of Boxes", + GT_Recipe.GT_Recipe_Map.sUnboxinatorRecipes, + 1, + 2, + 0, + 0, + 1, + "Unpackager.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "UNBOXINATOR", + new Object[] { "BCB", "VMR", aTextWireCoil, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'R', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROBOT_ARM, 'V', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'B', OreDictNames.craftingChest }) + .getStackForm(1L)); ItemList.Machine_ZPM_Unboxinator.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 417, - "basicmachine.unboxinator.tier.07", - "Unboxinator", - 7, - "Grabs things out of Boxes", - GT_Recipe.GT_Recipe_Map.sUnboxinatorRecipes, - 1, - 2, - 0, - 0, - 1, - "Unpackager.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "UNBOXINATOR", - new Object[] { "BCB", "VMR", aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'R', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROBOT_ARM, 'V', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'B', OreDictNames.craftingChest }) - .getStackForm( - 1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 417, + "basicmachine.unboxinator.tier.07", + "Unboxinator", + 7, + "Grabs things out of Boxes", + GT_Recipe.GT_Recipe_Map.sUnboxinatorRecipes, + 1, + 2, + 0, + 0, + 1, + "Unpackager.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "UNBOXINATOR", + new Object[] { "BCB", "VMR", aTextWireCoil, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'R', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROBOT_ARM, 'V', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'B', OreDictNames.craftingChest }) + .getStackForm(1L)); ItemList.Machine_UV_Unboxinator.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 418, - "basicmachine.unboxinator.tier.08", - "Unboxinator", - 8, - "Grabs things out of Boxes", - GT_Recipe.GT_Recipe_Map.sUnboxinatorRecipes, - 1, - 2, - 0, - 0, - 1, - "Unpackager.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "UNBOXINATOR", - new Object[] { "BCB", "VMR", aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'R', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROBOT_ARM, 'V', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'B', OreDictNames.craftingChest }) - .getStackForm( - 1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 418, + "basicmachine.unboxinator.tier.08", + "Unboxinator", + 8, + "Grabs things out of Boxes", + GT_Recipe.GT_Recipe_Map.sUnboxinatorRecipes, + 1, + 2, + 0, + 0, + 1, + "Unpackager.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "UNBOXINATOR", + new Object[] { "BCB", "VMR", aTextWireCoil, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'R', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROBOT_ARM, 'V', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'B', OreDictNames.craftingChest }) + .getStackForm(1L)); ItemList.Machine_LV_ChemicalReactor.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 421, - "basicmachine.chemicalreactor.tier.01", - "Basic Chemical Reactor", - 1, - "Letting Chemicals react with each other", - GT_Recipe.GT_Recipe_Map.sChemicalRecipes, - 2, - 2, - 16000, - 0, - 1, - "ChemicalReactor.png", - SoundResource.IC2_MACHINES_EXTRACTOR_OP, - false, - false, - SpecialEffects.NONE, - "CHEMICAL_REACTOR", - new Object[] { "GRG", "WEW", aTextCableHull, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'R', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROTOR, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 421, + "basicmachine.chemicalreactor.tier.01", + "Basic Chemical Reactor", + 1, + "Letting Chemicals react with each other", + GT_Recipe.GT_Recipe_Map.sChemicalRecipes, + 2, + 2, + 16000, + 0, + 1, + "ChemicalReactor.png", + SoundResource.IC2_MACHINES_EXTRACTOR_OP, + false, + false, + SpecialEffects.NONE, + "CHEMICAL_REACTOR", + new Object[] { "GRG", "WEW", aTextCableHull, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'R', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROTOR, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_MV_ChemicalReactor.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 422, - "basicmachine.chemicalreactor.tier.02", - "Advanced Chemical Reactor", - 2, - "Letting Chemicals react with each other", - GT_Recipe.GT_Recipe_Map.sChemicalRecipes, - 2, - 2, - 16000, - 0, - 1, - "ChemicalReactor.png", - SoundResource.IC2_MACHINES_EXTRACTOR_OP, - false, - false, - SpecialEffects.NONE, - "CHEMICAL_REACTOR", - new Object[] { "GRG", "WEW", aTextCableHull, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'R', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROTOR, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 422, + "basicmachine.chemicalreactor.tier.02", + "Advanced Chemical Reactor", + 2, + "Letting Chemicals react with each other", + GT_Recipe.GT_Recipe_Map.sChemicalRecipes, + 2, + 2, + 16000, + 0, + 1, + "ChemicalReactor.png", + SoundResource.IC2_MACHINES_EXTRACTOR_OP, + false, + false, + SpecialEffects.NONE, + "CHEMICAL_REACTOR", + new Object[] { "GRG", "WEW", aTextCableHull, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'R', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROTOR, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_HV_ChemicalReactor.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 423, - "basicmachine.chemicalreactor.tier.03", - "Advanced Chemical Reactor II", - 3, - "Letting Chemicals react with each other", - GT_Recipe.GT_Recipe_Map.sChemicalRecipes, - 2, - 2, - 16000, - 0, - 1, - "ChemicalReactor.png", - SoundResource.IC2_MACHINES_EXTRACTOR_OP, - false, - false, - SpecialEffects.NONE, - "CHEMICAL_REACTOR", - new Object[] { "GRG", "WEW", aTextCableHull, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'R', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROTOR, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - OrePrefixes.pipeMedium.get(Materials.Plastic) }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 423, + "basicmachine.chemicalreactor.tier.03", + "Advanced Chemical Reactor II", + 3, + "Letting Chemicals react with each other", + GT_Recipe.GT_Recipe_Map.sChemicalRecipes, + 2, + 2, + 16000, + 0, + 1, + "ChemicalReactor.png", + SoundResource.IC2_MACHINES_EXTRACTOR_OP, + false, + false, + SpecialEffects.NONE, + "CHEMICAL_REACTOR", + new Object[] { "GRG", "WEW", aTextCableHull, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'R', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROTOR, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + OrePrefixes.pipeMedium.get(Materials.Plastic) }).getStackForm(1L)); ItemList.Machine_EV_ChemicalReactor.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 424, - "basicmachine.chemicalreactor.tier.04", - "Advanced Chemical Reactor III", - 4, - "Letting Chemicals react with each other", - GT_Recipe.GT_Recipe_Map.sChemicalRecipes, - 2, - 2, - 16000, - 0, - 1, - "ChemicalReactor.png", - SoundResource.IC2_MACHINES_EXTRACTOR_OP, - false, - false, - SpecialEffects.NONE, - "CHEMICAL_REACTOR", - new Object[] { "GRG", "WEW", aTextCableHull, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'R', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROTOR, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - OrePrefixes.pipeLarge.get(Materials.Plastic) }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 424, + "basicmachine.chemicalreactor.tier.04", + "Advanced Chemical Reactor III", + 4, + "Letting Chemicals react with each other", + GT_Recipe.GT_Recipe_Map.sChemicalRecipes, + 2, + 2, + 16000, + 0, + 1, + "ChemicalReactor.png", + SoundResource.IC2_MACHINES_EXTRACTOR_OP, + false, + false, + SpecialEffects.NONE, + "CHEMICAL_REACTOR", + new Object[] { "GRG", "WEW", aTextCableHull, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'R', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROTOR, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + OrePrefixes.pipeLarge.get(Materials.Plastic) }).getStackForm(1L)); ItemList.Machine_IV_ChemicalReactor.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 425, - "basicmachine.chemicalreactor.tier.05", - "Advanced Chemical Reactor IV", - 5, - "Letting Chemicals react with each other", - GT_Recipe.GT_Recipe_Map.sChemicalRecipes, - 2, - 2, - 16000, - 0, - 1, - "ChemicalReactor.png", - SoundResource.IC2_MACHINES_EXTRACTOR_OP, - false, - false, - SpecialEffects.NONE, - "CHEMICAL_REACTOR", - new Object[] { "GRG", "WEW", aTextCableHull, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'R', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROTOR, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - OrePrefixes.pipeHuge.get(Materials.Plastic) }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 425, + "basicmachine.chemicalreactor.tier.05", + "Advanced Chemical Reactor IV", + 5, + "Letting Chemicals react with each other", + GT_Recipe.GT_Recipe_Map.sChemicalRecipes, + 2, + 2, + 16000, + 0, + 1, + "ChemicalReactor.png", + SoundResource.IC2_MACHINES_EXTRACTOR_OP, + false, + false, + SpecialEffects.NONE, + "CHEMICAL_REACTOR", + new Object[] { "GRG", "WEW", aTextCableHull, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'R', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROTOR, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', OrePrefixes.pipeHuge.get(Materials.Plastic) }) + .getStackForm(1L)); ItemList.Machine_LV_FluidCanner.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 431, - "basicmachine.fluidcanner.tier.01", - "Basic Fluid Canner", - 1, - "Puts Fluids into and out of Containers", - GT_Recipe.GT_Recipe_Map.sFluidCannerRecipes, - 1, - 1, - 16000, - 0, - 1, - "FluidCanner.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "FLUID_CANNER", - new Object[] { "GCG", "GMG", "WPW", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 431, + "basicmachine.fluidcanner.tier.01", + "Basic Fluid Canner", + 1, + "Puts Fluids into and out of Containers", + GT_Recipe.GT_Recipe_Map.sFluidCannerRecipes, + 1, + 1, + 16000, + 0, + 1, + "FluidCanner.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "FLUID_CANNER", + new Object[] { "GCG", "GMG", "WPW", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_MV_FluidCanner.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 432, - "basicmachine.fluidcanner.tier.02", - "Advanced Fluid Canner", - 2, - "Puts Fluids into and out of Containers", - GT_Recipe.GT_Recipe_Map.sFluidCannerRecipes, - 1, - 1, - 32000, - 0, - 1, - "FluidCanner.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "FLUID_CANNER", - new Object[] { "GCG", "GMG", "WPW", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 432, + "basicmachine.fluidcanner.tier.02", + "Advanced Fluid Canner", + 2, + "Puts Fluids into and out of Containers", + GT_Recipe.GT_Recipe_Map.sFluidCannerRecipes, + 1, + 1, + 32000, + 0, + 1, + "FluidCanner.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "FLUID_CANNER", + new Object[] { "GCG", "GMG", "WPW", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_HV_FluidCanner.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 433, - "basicmachine.fluidcanner.tier.03", - "Quick Fluid Canner", - 3, - "Puts Fluids into and out of Containers", - GT_Recipe.GT_Recipe_Map.sFluidCannerRecipes, - 1, - 1, - 48000, - 0, - 1, - "FluidCanner.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "FLUID_CANNER", - new Object[] { "GCG", "GMG", "WPW", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 433, + "basicmachine.fluidcanner.tier.03", + "Quick Fluid Canner", + 3, + "Puts Fluids into and out of Containers", + GT_Recipe.GT_Recipe_Map.sFluidCannerRecipes, + 1, + 1, + 48000, + 0, + 1, + "FluidCanner.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "FLUID_CANNER", + new Object[] { "GCG", "GMG", "WPW", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_EV_FluidCanner.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 434, - "basicmachine.fluidcanner.tier.04", - "Turbo Fluid Canner", - 4, - "Puts Fluids into and out of Containers", - GT_Recipe.GT_Recipe_Map.sFluidCannerRecipes, - 1, - 1, - 64000, - 0, - 1, - "FluidCanner.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "FLUID_CANNER", - new Object[] { "GCG", "GMG", "WPW", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 434, + "basicmachine.fluidcanner.tier.04", + "Turbo Fluid Canner", + 4, + "Puts Fluids into and out of Containers", + GT_Recipe.GT_Recipe_Map.sFluidCannerRecipes, + 1, + 1, + 64000, + 0, + 1, + "FluidCanner.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "FLUID_CANNER", + new Object[] { "GCG", "GMG", "WPW", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_IV_FluidCanner.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 435, - "basicmachine.fluidcanner.tier.05", - "Instant Fluid Canner", - 5, - "Puts Fluids into and out of Containers", - GT_Recipe.GT_Recipe_Map.sFluidCannerRecipes, - 1, - 1, - 80000, - 0, - 1, - "FluidCanner.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "FLUID_CANNER", - new Object[] { "GCG", "GMG", "WPW", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 435, + "basicmachine.fluidcanner.tier.05", + "Instant Fluid Canner", + 5, + "Puts Fluids into and out of Containers", + GT_Recipe.GT_Recipe_Map.sFluidCannerRecipes, + 1, + 1, + 80000, + 0, + 1, + "FluidCanner.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "FLUID_CANNER", + new Object[] { "GCG", "GMG", "WPW", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_LV_RockBreaker.set( - new GT_MetaTileEntity_RockBreaker( - 441, - "basicmachine.rockbreaker.tier.01", - "Basic Rock Breaker", - 1).getStackForm(1L)); + new GT_MetaTileEntity_RockBreaker(441, "basicmachine.rockbreaker.tier.01", "Basic Rock Breaker", 1) + .getStackForm(1L)); ItemList.Machine_MV_RockBreaker.set( - new GT_MetaTileEntity_RockBreaker( - 442, - "basicmachine.rockbreaker.tier.02", - "Advanced Rock Breaker", - 2).getStackForm(1L)); + new GT_MetaTileEntity_RockBreaker(442, "basicmachine.rockbreaker.tier.02", "Advanced Rock Breaker", 2) + .getStackForm(1L)); ItemList.Machine_HV_RockBreaker.set( - new GT_MetaTileEntity_RockBreaker( - 443, - "basicmachine.rockbreaker.tier.03", - "Advanced Rock Breaker II", - 3).getStackForm(1L)); + new GT_MetaTileEntity_RockBreaker(443, "basicmachine.rockbreaker.tier.03", "Advanced Rock Breaker II", 3) + .getStackForm(1L)); ItemList.Machine_EV_RockBreaker.set( - new GT_MetaTileEntity_RockBreaker( - 444, - "basicmachine.rockbreaker.tier.04", - "Advanced Rock Breaker III", - 4).getStackForm(1L)); + new GT_MetaTileEntity_RockBreaker(444, "basicmachine.rockbreaker.tier.04", "Advanced Rock Breaker III", 4) + .getStackForm(1L)); ItemList.Machine_IV_RockBreaker.set( - new GT_MetaTileEntity_RockBreaker( - 445, - "basicmachine.rockbreaker.tier.05", - "Cryogenic Magma Solidifier R-8200", - 5).getStackForm(1L)); - - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_LV_RockBreaker.get(1L), - bitsd, - new Object[] { "PED", aTextWireHull, "GGG", 'M', ItemList.Hull_LV, 'D', OreDictNames.craftingGrinder, - 'E', ItemList.Electric_Motor_LV, 'P', ItemList.Electric_Piston_LV, 'C', - OrePrefixes.circuit.get(Materials.Basic), 'W', OrePrefixes.cableGt01.get(Materials.Tin), 'G', - new ItemStack(Blocks.glass, 1) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_MV_RockBreaker.get(1L), - bitsd, - new Object[] { "PED", aTextWireHull, "GGG", 'M', ItemList.Hull_MV, 'D', OreDictNames.craftingGrinder, - 'E', ItemList.Electric_Motor_MV, 'P', ItemList.Electric_Piston_MV, 'C', - OrePrefixes.circuit.get(Materials.Good), 'W', OrePrefixes.cableGt01.get(Materials.AnyCopper), - 'G', new ItemStack(Blocks.glass, 1) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_HV_RockBreaker.get(1L), - bitsd, - new Object[] { "PED", aTextWireHull, "GGG", 'M', ItemList.Hull_HV, 'D', OreDictNames.craftingGrinder, - 'E', ItemList.Electric_Motor_HV, 'P', ItemList.Electric_Piston_HV, 'C', - OrePrefixes.circuit.get(Materials.Advanced), 'W', OrePrefixes.cableGt01.get(Materials.Gold), - 'G', new ItemStack(Blocks.glass, 1) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_EV_RockBreaker.get(1L), - bitsd, - new Object[] { "PED", aTextWireHull, "GGG", 'M', ItemList.Hull_EV, 'D', OreDictNames.craftingGrinder, - 'E', ItemList.Electric_Motor_EV, 'P', ItemList.Electric_Piston_EV, 'C', - OrePrefixes.circuit.get(Materials.Data), 'W', OrePrefixes.cableGt01.get(Materials.Aluminium), - 'G', new ItemStack(Blocks.glass, 1) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_IV_RockBreaker.get(1L), - bitsd, - new Object[] { "PED", aTextWireHull, "GGG", 'M', ItemList.Hull_IV, 'D', OreDictNames.craftingGrinder, - 'E', ItemList.Electric_Motor_IV, 'P', ItemList.Electric_Piston_IV, 'C', - OrePrefixes.circuit.get(Materials.Elite), 'W', OrePrefixes.cableGt01.get(Materials.Tungsten), - 'G', new ItemStack(Blocks.glass, 1) }); + new GT_MetaTileEntity_RockBreaker( + 445, + "basicmachine.rockbreaker.tier.05", + "Cryogenic Magma Solidifier R-8200", + 5).getStackForm(1L)); + + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_LV_RockBreaker.get(1L), + bitsd, + new Object[] { "PED", aTextWireHull, "GGG", 'M', ItemList.Hull_LV, 'D', OreDictNames.craftingGrinder, 'E', + ItemList.Electric_Motor_LV, 'P', ItemList.Electric_Piston_LV, 'C', + OrePrefixes.circuit.get(Materials.Basic), 'W', OrePrefixes.cableGt01.get(Materials.Tin), 'G', + new ItemStack(Blocks.glass, 1) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_MV_RockBreaker.get(1L), + bitsd, + new Object[] { "PED", aTextWireHull, "GGG", 'M', ItemList.Hull_MV, 'D', OreDictNames.craftingGrinder, 'E', + ItemList.Electric_Motor_MV, 'P', ItemList.Electric_Piston_MV, 'C', + OrePrefixes.circuit.get(Materials.Good), 'W', OrePrefixes.cableGt01.get(Materials.AnyCopper), 'G', + new ItemStack(Blocks.glass, 1) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_HV_RockBreaker.get(1L), + bitsd, + new Object[] { "PED", aTextWireHull, "GGG", 'M', ItemList.Hull_HV, 'D', OreDictNames.craftingGrinder, 'E', + ItemList.Electric_Motor_HV, 'P', ItemList.Electric_Piston_HV, 'C', + OrePrefixes.circuit.get(Materials.Advanced), 'W', OrePrefixes.cableGt01.get(Materials.Gold), 'G', + new ItemStack(Blocks.glass, 1) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_EV_RockBreaker.get(1L), + bitsd, + new Object[] { "PED", aTextWireHull, "GGG", 'M', ItemList.Hull_EV, 'D', OreDictNames.craftingGrinder, 'E', + ItemList.Electric_Motor_EV, 'P', ItemList.Electric_Piston_EV, 'C', + OrePrefixes.circuit.get(Materials.Data), 'W', OrePrefixes.cableGt01.get(Materials.Aluminium), 'G', + new ItemStack(Blocks.glass, 1) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_IV_RockBreaker.get(1L), + bitsd, + new Object[] { "PED", aTextWireHull, "GGG", 'M', ItemList.Hull_IV, 'D', OreDictNames.craftingGrinder, 'E', + ItemList.Electric_Motor_IV, 'P', ItemList.Electric_Piston_IV, 'C', + OrePrefixes.circuit.get(Materials.Elite), 'W', OrePrefixes.cableGt01.get(Materials.Tungsten), 'G', + new ItemStack(Blocks.glass, 1) }); if (Forestry.isModLoaded()) { ItemList.Machine_IndustrialApiary.set( - new GT_MetaTileEntity_IndustrialApiary( - 9399, - "basicmachine.industrialapiary", - "Industrial Apiary", - 8).getStackForm(1L)); + new GT_MetaTileEntity_IndustrialApiary(9399, "basicmachine.industrialapiary", "Industrial Apiary", 8) + .getStackForm(1L)); /* Conversion recipes */ // TODO: Move those recipes with the other recipes if (Gendustry.isModLoaded()) { GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Machine_IndustrialApiary.get(1L), - new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "IndustrialApiary", 1, 0) }); + ItemList.Machine_IndustrialApiary.get(1L), + new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "IndustrialApiary", 1, 0) }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.IndustrialApiary_Upgrade_Frame.get(1), - new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "UpgradeFrame", 1) }); + ItemList.IndustrialApiary_Upgrade_Frame.get(1), + new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "UpgradeFrame", 1) }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.IndustrialApiary_Upgrade_PRODUCTION.get(1L), - new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "ApiaryUpgrade", 1, 0) }); + ItemList.IndustrialApiary_Upgrade_PRODUCTION.get(1L), + new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "ApiaryUpgrade", 1, 0) }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.IndustrialApiary_Upgrade_PLAINS.get(1L), - new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "ApiaryUpgrade", 1, 17) }); + ItemList.IndustrialApiary_Upgrade_PLAINS.get(1L), + new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "ApiaryUpgrade", 1, 17) }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.IndustrialApiary_Upgrade_LIGHT.get(1L), - new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "ApiaryUpgrade", 1, 11) }); + ItemList.IndustrialApiary_Upgrade_LIGHT.get(1L), + new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "ApiaryUpgrade", 1, 11) }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.IndustrialApiary_Upgrade_FLOWERING.get(1L), - new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "ApiaryUpgrade", 1, 2) }); + ItemList.IndustrialApiary_Upgrade_FLOWERING.get(1L), + new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "ApiaryUpgrade", 1, 2) }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.IndustrialApiary_Upgrade_WINTER.get(1L), - new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "ApiaryUpgrade", 1, 20) }); + ItemList.IndustrialApiary_Upgrade_WINTER.get(1L), + new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "ApiaryUpgrade", 1, 20) }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.IndustrialApiary_Upgrade_DRYER.get(1L), - new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "ApiaryUpgrade", 1, 5) }); + ItemList.IndustrialApiary_Upgrade_DRYER.get(1L), + new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "ApiaryUpgrade", 1, 5) }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.IndustrialApiary_Upgrade_AUTOMATION.get(1L), - new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "ApiaryUpgrade", 1, 14) }); + ItemList.IndustrialApiary_Upgrade_AUTOMATION.get(1L), + new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "ApiaryUpgrade", 1, 14) }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.IndustrialApiary_Upgrade_HUMIDIFIER.get(1L), - new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "ApiaryUpgrade", 1, 4) }); + ItemList.IndustrialApiary_Upgrade_HUMIDIFIER.get(1L), + new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "ApiaryUpgrade", 1, 4) }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.IndustrialApiary_Upgrade_HELL.get(1L), - new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "ApiaryUpgrade", 1, 13) }); + ItemList.IndustrialApiary_Upgrade_HELL.get(1L), + new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "ApiaryUpgrade", 1, 13) }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.IndustrialApiary_Upgrade_POLLEN.get(1L), - new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "ApiaryUpgrade", 1, 22) }); + ItemList.IndustrialApiary_Upgrade_POLLEN.get(1L), + new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "ApiaryUpgrade", 1, 22) }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.IndustrialApiary_Upgrade_DESERT.get(1L), - new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "ApiaryUpgrade", 1, 16) }); + ItemList.IndustrialApiary_Upgrade_DESERT.get(1L), + new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "ApiaryUpgrade", 1, 16) }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.IndustrialApiary_Upgrade_COOLER.get(1L), - new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "ApiaryUpgrade", 1, 7) }); + ItemList.IndustrialApiary_Upgrade_COOLER.get(1L), + new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "ApiaryUpgrade", 1, 7) }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.IndustrialApiary_Upgrade_LIFESPAN.get(1L), - new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "ApiaryUpgrade", 1, 1) }); + ItemList.IndustrialApiary_Upgrade_LIFESPAN.get(1L), + new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "ApiaryUpgrade", 1, 1) }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.IndustrialApiary_Upgrade_SEAL.get(1L), - new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "ApiaryUpgrade", 1, 10) }); + ItemList.IndustrialApiary_Upgrade_SEAL.get(1L), + new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "ApiaryUpgrade", 1, 10) }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.IndustrialApiary_Upgrade_STABILIZER.get(1L), - new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "ApiaryUpgrade", 1, 19) }); + ItemList.IndustrialApiary_Upgrade_STABILIZER.get(1L), + new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "ApiaryUpgrade", 1, 19) }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.IndustrialApiary_Upgrade_JUNGLE.get(1L), - new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "ApiaryUpgrade", 1, 18) }); + ItemList.IndustrialApiary_Upgrade_JUNGLE.get(1L), + new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "ApiaryUpgrade", 1, 18) }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.IndustrialApiary_Upgrade_TERRITORY.get(1L), - new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "ApiaryUpgrade", 1, 3) }); + ItemList.IndustrialApiary_Upgrade_TERRITORY.get(1L), + new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "ApiaryUpgrade", 1, 3) }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.IndustrialApiary_Upgrade_OCEAN.get(1L), - new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "ApiaryUpgrade", 1, 21) }); + ItemList.IndustrialApiary_Upgrade_OCEAN.get(1L), + new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "ApiaryUpgrade", 1, 21) }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.IndustrialApiary_Upgrade_SKY.get(1L), - new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "ApiaryUpgrade", 1, 12) }); + ItemList.IndustrialApiary_Upgrade_SKY.get(1L), + new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "ApiaryUpgrade", 1, 12) }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.IndustrialApiary_Upgrade_HEATER.get(1L), - new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "ApiaryUpgrade", 1, 6) }); + ItemList.IndustrialApiary_Upgrade_HEATER.get(1L), + new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "ApiaryUpgrade", 1, 6) }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.IndustrialApiary_Upgrade_SIEVE.get(1L), - new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "ApiaryUpgrade", 1, 15) }); + ItemList.IndustrialApiary_Upgrade_SIEVE.get(1L), + new Object[] { GT_ModHandler.getModItem(Gendustry.ID, "ApiaryUpgrade", 1, 15) }); } } ItemList.Machine_LV_Massfab.set( - new GT_MetaTileEntity_Massfabricator( - 461, - "basicmachine.massfab.tier.01", - "Basic Mass Fabricator", - 1).getStackForm(1L)); + new GT_MetaTileEntity_Massfabricator(461, "basicmachine.massfab.tier.01", "Basic Mass Fabricator", 1) + .getStackForm(1L)); ItemList.Machine_MV_Massfab.set( - new GT_MetaTileEntity_Massfabricator( - 462, - "basicmachine.massfab.tier.02", - "Advanced Mass Fabricator", - 2).getStackForm(1L)); + new GT_MetaTileEntity_Massfabricator(462, "basicmachine.massfab.tier.02", "Advanced Mass Fabricator", 2) + .getStackForm(1L)); ItemList.Machine_HV_Massfab.set( - new GT_MetaTileEntity_Massfabricator( - 463, - "basicmachine.massfab.tier.03", - "Advanced Mass Fabricator II", - 3).getStackForm(1L)); + new GT_MetaTileEntity_Massfabricator(463, "basicmachine.massfab.tier.03", "Advanced Mass Fabricator II", 3) + .getStackForm(1L)); ItemList.Machine_EV_Massfab.set( - new GT_MetaTileEntity_Massfabricator( - 464, - "basicmachine.massfab.tier.04", - "Advanced Mass Fabricator III", - 4).getStackForm(1L)); + new GT_MetaTileEntity_Massfabricator(464, "basicmachine.massfab.tier.04", "Advanced Mass Fabricator III", 4) + .getStackForm(1L)); ItemList.Machine_IV_Massfab.set( - new GT_MetaTileEntity_Massfabricator( - 465, - "basicmachine.massfab.tier.05", - "Advanced Mass Fabricator IV", - 5).getStackForm(1L)); + new GT_MetaTileEntity_Massfabricator(465, "basicmachine.massfab.tier.05", "Advanced Mass Fabricator IV", 5) + .getStackForm(1L)); GT_ModHandler.addCraftingRecipe( - ItemList.Machine_LV_Massfab.get(1L), - bitsd, - new Object[] { "CFC", aTextWireHull, "CFC", 'M', ItemList.Hull_LV, 'F', ItemList.Field_Generator_LV, - 'C', OrePrefixes.circuit.get(Materials.Good), 'W', OrePrefixes.cableGt04.get(Materials.Tin) }); + ItemList.Machine_LV_Massfab.get(1L), + bitsd, + new Object[] { "CFC", aTextWireHull, "CFC", 'M', ItemList.Hull_LV, 'F', ItemList.Field_Generator_LV, 'C', + OrePrefixes.circuit.get(Materials.Good), 'W', OrePrefixes.cableGt04.get(Materials.Tin) }); GT_ModHandler.addCraftingRecipe( - ItemList.Machine_MV_Massfab.get(1L), - bitsd, - new Object[] { "CFC", aTextWireHull, "CFC", 'M', ItemList.Hull_MV, 'F', ItemList.Field_Generator_MV, - 'C', OrePrefixes.circuit.get(Materials.Advanced), 'W', - OrePrefixes.cableGt04.get(Materials.AnyCopper) }); + ItemList.Machine_MV_Massfab.get(1L), + bitsd, + new Object[] { "CFC", aTextWireHull, "CFC", 'M', ItemList.Hull_MV, 'F', ItemList.Field_Generator_MV, 'C', + OrePrefixes.circuit.get(Materials.Advanced), 'W', OrePrefixes.cableGt04.get(Materials.AnyCopper) }); GT_ModHandler.addCraftingRecipe( - ItemList.Machine_HV_Massfab.get(1L), - bitsd, - new Object[] { "CFC", aTextWireHull, "CFC", 'M', ItemList.Hull_HV, 'F', ItemList.Field_Generator_HV, - 'C', OrePrefixes.circuit.get(Materials.Data), 'W', OrePrefixes.cableGt04.get(Materials.Gold) }); + ItemList.Machine_HV_Massfab.get(1L), + bitsd, + new Object[] { "CFC", aTextWireHull, "CFC", 'M', ItemList.Hull_HV, 'F', ItemList.Field_Generator_HV, 'C', + OrePrefixes.circuit.get(Materials.Data), 'W', OrePrefixes.cableGt04.get(Materials.Gold) }); GT_ModHandler.addCraftingRecipe( - ItemList.Machine_EV_Massfab.get(1L), - bitsd, - new Object[] { "CFC", aTextWireHull, "CFC", 'M', ItemList.Hull_EV, 'F', ItemList.Field_Generator_EV, - 'C', OrePrefixes.circuit.get(Materials.Elite), 'W', - OrePrefixes.cableGt04.get(Materials.Aluminium) }); + ItemList.Machine_EV_Massfab.get(1L), + bitsd, + new Object[] { "CFC", aTextWireHull, "CFC", 'M', ItemList.Hull_EV, 'F', ItemList.Field_Generator_EV, 'C', + OrePrefixes.circuit.get(Materials.Elite), 'W', OrePrefixes.cableGt04.get(Materials.Aluminium) }); GT_ModHandler.addCraftingRecipe( - ItemList.Machine_IV_Massfab.get(1L), - bitsd, - new Object[] { "CFC", aTextWireHull, "CFC", 'M', ItemList.Hull_IV, 'F', ItemList.Field_Generator_IV, - 'C', OrePrefixes.circuit.get(Materials.Master), 'W', - OrePrefixes.cableGt04.get(Materials.Tungsten) }); + ItemList.Machine_IV_Massfab.get(1L), + bitsd, + new Object[] { "CFC", aTextWireHull, "CFC", 'M', ItemList.Hull_IV, 'F', ItemList.Field_Generator_IV, 'C', + OrePrefixes.circuit.get(Materials.Master), 'W', OrePrefixes.cableGt04.get(Materials.Tungsten) }); ItemList.Machine_LV_Amplifab.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 471, - "basicmachine.amplifab.tier.01", - "Basic Amplifabricator", - 1, - "Extracting UU Amplifier", - GT_Recipe.GT_Recipe_Map.sAmplifiers, - 1, - 1, - 1000, - 0, - 1, - "Amplifabricator.png", - SoundResource.IC2_MACHINES_EXTRACTOR_OP, - false, - false, - SpecialEffects.NONE, - "AMPLIFAB", - new Object[] { aTextWirePump, aTextPlateMotor, "CPC", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.BETTER_CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE4 }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 471, + "basicmachine.amplifab.tier.01", + "Basic Amplifabricator", + 1, + "Extracting UU Amplifier", + GT_Recipe.GT_Recipe_Map.sAmplifiers, + 1, + 1, + 1000, + 0, + 1, + "Amplifabricator.png", + SoundResource.IC2_MACHINES_EXTRACTOR_OP, + false, + false, + SpecialEffects.NONE, + "AMPLIFAB", + new Object[] { aTextWirePump, aTextPlateMotor, "CPC", 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.BETTER_CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE4 }).getStackForm(1L)); ItemList.Machine_MV_Amplifab.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 472, - "basicmachine.amplifab.tier.02", - "Advanced Amplifabricator", - 2, - "Extracting UU Amplifier", - GT_Recipe.GT_Recipe_Map.sAmplifiers, - 1, - 1, - 1000, - 0, - 1, - "Amplifabricator.png", - SoundResource.IC2_MACHINES_EXTRACTOR_OP, - false, - false, - SpecialEffects.NONE, - "AMPLIFAB", - new Object[] { aTextWirePump, aTextPlateMotor, "CPC", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.BETTER_CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE4 }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 472, + "basicmachine.amplifab.tier.02", + "Advanced Amplifabricator", + 2, + "Extracting UU Amplifier", + GT_Recipe.GT_Recipe_Map.sAmplifiers, + 1, + 1, + 1000, + 0, + 1, + "Amplifabricator.png", + SoundResource.IC2_MACHINES_EXTRACTOR_OP, + false, + false, + SpecialEffects.NONE, + "AMPLIFAB", + new Object[] { aTextWirePump, aTextPlateMotor, "CPC", 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.BETTER_CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE4 }).getStackForm(1L)); ItemList.Machine_HV_Amplifab.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 473, - "basicmachine.amplifab.tier.03", - "Advanced Amplifabricator II", - 3, - "Extracting UU Amplifier", - GT_Recipe.GT_Recipe_Map.sAmplifiers, - 1, - 1, - 1000, - 0, - 1, - "Amplifabricator.png", - SoundResource.IC2_MACHINES_EXTRACTOR_OP, - false, - false, - SpecialEffects.NONE, - "AMPLIFAB", - new Object[] { aTextWirePump, aTextPlateMotor, "CPC", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.BETTER_CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE4 }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 473, + "basicmachine.amplifab.tier.03", + "Advanced Amplifabricator II", + 3, + "Extracting UU Amplifier", + GT_Recipe.GT_Recipe_Map.sAmplifiers, + 1, + 1, + 1000, + 0, + 1, + "Amplifabricator.png", + SoundResource.IC2_MACHINES_EXTRACTOR_OP, + false, + false, + SpecialEffects.NONE, + "AMPLIFAB", + new Object[] { aTextWirePump, aTextPlateMotor, "CPC", 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.BETTER_CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE4 }).getStackForm(1L)); ItemList.Machine_EV_Amplifab.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 474, - "basicmachine.amplifab.tier.04", - "Advanced Amplifabricator III", - 4, - "Extracting UU Amplifier", - GT_Recipe.GT_Recipe_Map.sAmplifiers, - 1, - 1, - 1000, - 0, - 1, - "Amplifabricator.png", - SoundResource.IC2_MACHINES_EXTRACTOR_OP, - false, - false, - SpecialEffects.NONE, - "AMPLIFAB", - new Object[] { aTextWirePump, aTextPlateMotor, "CPC", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.BETTER_CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE4 }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 474, + "basicmachine.amplifab.tier.04", + "Advanced Amplifabricator III", + 4, + "Extracting UU Amplifier", + GT_Recipe.GT_Recipe_Map.sAmplifiers, + 1, + 1, + 1000, + 0, + 1, + "Amplifabricator.png", + SoundResource.IC2_MACHINES_EXTRACTOR_OP, + false, + false, + SpecialEffects.NONE, + "AMPLIFAB", + new Object[] { aTextWirePump, aTextPlateMotor, "CPC", 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.BETTER_CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE4 }).getStackForm(1L)); ItemList.Machine_IV_Amplifab.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 475, - "basicmachine.amplifab.tier.05", - "Advanced Amplifabricator IV", - 5, - "Extracting UU Amplifier", - GT_Recipe.GT_Recipe_Map.sAmplifiers, - 1, - 1, - 1000, - 0, - 1, - "Amplifabricator.png", - SoundResource.IC2_MACHINES_EXTRACTOR_OP, - false, - false, - SpecialEffects.NONE, - "AMPLIFAB", - new Object[] { aTextWirePump, aTextPlateMotor, "CPC", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.BETTER_CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE4 }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 475, + "basicmachine.amplifab.tier.05", + "Advanced Amplifabricator IV", + 5, + "Extracting UU Amplifier", + GT_Recipe.GT_Recipe_Map.sAmplifiers, + 1, + 1, + 1000, + 0, + 1, + "Amplifabricator.png", + SoundResource.IC2_MACHINES_EXTRACTOR_OP, + false, + false, + SpecialEffects.NONE, + "AMPLIFAB", + new Object[] { aTextWirePump, aTextPlateMotor, "CPC", 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.BETTER_CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE4 }).getStackForm(1L)); ItemList.Machine_LV_Replicator.set( - new GT_MetaTileEntity_Replicator( - 481, - "basicmachine.replicator.tier.01", - "Basic Replicator", - 1).getStackForm(1L)); + new GT_MetaTileEntity_Replicator(481, "basicmachine.replicator.tier.01", "Basic Replicator", 1) + .getStackForm(1L)); ItemList.Machine_MV_Replicator.set( - new GT_MetaTileEntity_Replicator( - 482, - "basicmachine.replicator.tier.02", - "Advanced Replicator", - 2).getStackForm(1L)); + new GT_MetaTileEntity_Replicator(482, "basicmachine.replicator.tier.02", "Advanced Replicator", 2) + .getStackForm(1L)); ItemList.Machine_HV_Replicator.set( - new GT_MetaTileEntity_Replicator( - 483, - "basicmachine.replicator.tier.03", - "Advanced Replicator II", - 3).getStackForm(1L)); + new GT_MetaTileEntity_Replicator(483, "basicmachine.replicator.tier.03", "Advanced Replicator II", 3) + .getStackForm(1L)); ItemList.Machine_EV_Replicator.set( - new GT_MetaTileEntity_Replicator( - 484, - "basicmachine.replicator.tier.04", - "Advanced Replicator III", - 4).getStackForm(1L)); + new GT_MetaTileEntity_Replicator(484, "basicmachine.replicator.tier.04", "Advanced Replicator III", 4) + .getStackForm(1L)); ItemList.Machine_IV_Replicator.set( - new GT_MetaTileEntity_Replicator( - 485, - "basicmachine.replicator.tier.05", - "Advanced Replicator IV", - 5).getStackForm(1L)); - - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_LV_Replicator.get(1L), - bitsd, - new Object[] { "EFE", aTextCableHull, aTextMotorWire, 'M', ItemList.Hull_LV, 'F', - ItemList.Field_Generator_LV, 'E', ItemList.Emitter_LV, 'C', - OrePrefixes.circuit.get(Materials.Good), 'W', OrePrefixes.cableGt04.get(Materials.Tin) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_MV_Replicator.get(1L), - bitsd, - new Object[] { "EFE", aTextCableHull, aTextMotorWire, 'M', ItemList.Hull_MV, 'F', - ItemList.Field_Generator_MV, 'E', ItemList.Emitter_MV, 'C', - OrePrefixes.circuit.get(Materials.Advanced), 'W', - OrePrefixes.cableGt04.get(Materials.AnyCopper) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_HV_Replicator.get(1L), - bitsd, - new Object[] { "EFE", aTextCableHull, aTextMotorWire, 'M', ItemList.Hull_HV, 'F', - ItemList.Field_Generator_HV, 'E', ItemList.Emitter_HV, 'C', - OrePrefixes.circuit.get(Materials.Data), 'W', OrePrefixes.cableGt04.get(Materials.Gold) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_EV_Replicator.get(1L), - bitsd, - new Object[] { "EFE", aTextCableHull, aTextMotorWire, 'M', ItemList.Hull_EV, 'F', - ItemList.Field_Generator_EV, 'E', ItemList.Emitter_EV, 'C', - OrePrefixes.circuit.get(Materials.Elite), 'W', - OrePrefixes.cableGt04.get(Materials.Aluminium) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_IV_Replicator.get(1L), - bitsd, - new Object[] { "EFE", aTextCableHull, aTextMotorWire, 'M', ItemList.Hull_IV, 'F', - ItemList.Field_Generator_IV, 'E', ItemList.Emitter_IV, 'C', - OrePrefixes.circuit.get(Materials.Master), 'W', - OrePrefixes.cableGt04.get(Materials.Tungsten) }); + new GT_MetaTileEntity_Replicator(485, "basicmachine.replicator.tier.05", "Advanced Replicator IV", 5) + .getStackForm(1L)); + + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_LV_Replicator.get(1L), + bitsd, + new Object[] { "EFE", aTextCableHull, aTextMotorWire, 'M', ItemList.Hull_LV, 'F', + ItemList.Field_Generator_LV, 'E', ItemList.Emitter_LV, 'C', OrePrefixes.circuit.get(Materials.Good), + 'W', OrePrefixes.cableGt04.get(Materials.Tin) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_MV_Replicator.get(1L), + bitsd, + new Object[] { "EFE", aTextCableHull, aTextMotorWire, 'M', ItemList.Hull_MV, 'F', + ItemList.Field_Generator_MV, 'E', ItemList.Emitter_MV, 'C', OrePrefixes.circuit.get(Materials.Advanced), + 'W', OrePrefixes.cableGt04.get(Materials.AnyCopper) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_HV_Replicator.get(1L), + bitsd, + new Object[] { "EFE", aTextCableHull, aTextMotorWire, 'M', ItemList.Hull_HV, 'F', + ItemList.Field_Generator_HV, 'E', ItemList.Emitter_HV, 'C', OrePrefixes.circuit.get(Materials.Data), + 'W', OrePrefixes.cableGt04.get(Materials.Gold) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_EV_Replicator.get(1L), + bitsd, + new Object[] { "EFE", aTextCableHull, aTextMotorWire, 'M', ItemList.Hull_EV, 'F', + ItemList.Field_Generator_EV, 'E', ItemList.Emitter_EV, 'C', OrePrefixes.circuit.get(Materials.Elite), + 'W', OrePrefixes.cableGt04.get(Materials.Aluminium) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_IV_Replicator.get(1L), + bitsd, + new Object[] { "EFE", aTextCableHull, aTextMotorWire, 'M', ItemList.Hull_IV, 'F', + ItemList.Field_Generator_IV, 'E', ItemList.Emitter_IV, 'C', OrePrefixes.circuit.get(Materials.Master), + 'W', OrePrefixes.cableGt04.get(Materials.Tungsten) }); ItemList.Machine_LV_Brewery.set( - new GT_MetaTileEntity_PotionBrewer( - 491, - "basicmachine.brewery.tier.01", - "Basic Brewery", - 1).getStackForm(1L)); + new GT_MetaTileEntity_PotionBrewer(491, "basicmachine.brewery.tier.01", "Basic Brewery", 1) + .getStackForm(1L)); ItemList.Machine_MV_Brewery.set( - new GT_MetaTileEntity_PotionBrewer( - 492, - "basicmachine.brewery.tier.02", - "Advanced Brewery", - 2).getStackForm(1L)); + new GT_MetaTileEntity_PotionBrewer(492, "basicmachine.brewery.tier.02", "Advanced Brewery", 2) + .getStackForm(1L)); ItemList.Machine_HV_Brewery.set( - new GT_MetaTileEntity_PotionBrewer( - 493, - "basicmachine.brewery.tier.03", - "Advanced Brewery II", - 3).getStackForm(1L)); + new GT_MetaTileEntity_PotionBrewer(493, "basicmachine.brewery.tier.03", "Advanced Brewery II", 3) + .getStackForm(1L)); ItemList.Machine_EV_Brewery.set( - new GT_MetaTileEntity_PotionBrewer( - 494, - "basicmachine.brewery.tier.04", - "Advanced Brewery III", - 4).getStackForm(1L)); + new GT_MetaTileEntity_PotionBrewer(494, "basicmachine.brewery.tier.04", "Advanced Brewery III", 4) + .getStackForm(1L)); ItemList.Machine_IV_Brewery.set( - new GT_MetaTileEntity_PotionBrewer( - 495, - "basicmachine.brewery.tier.05", - "Advanced Brewery IV", - 5).getStackForm(1L)); - - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_LV_Brewery.get(1L), - bitsd, - new Object[] { "GPG", aTextWireHull, "CBC", 'M', ItemList.Hull_LV, 'P', ItemList.Electric_Pump_LV, 'B', - new ItemStack(Items.brewing_stand, 0), 'C', OrePrefixes.circuit.get(Materials.Basic), 'W', - OrePrefixes.cableGt01.get(Materials.Tin), 'G', new ItemStack(Blocks.glass, 1) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_MV_Brewery.get(1L), - bitsd, - new Object[] { "GPG", aTextWireHull, "CBC", 'M', ItemList.Hull_MV, 'P', ItemList.Electric_Pump_MV, 'B', - new ItemStack(Items.brewing_stand, 0), 'C', OrePrefixes.circuit.get(Materials.Good), 'W', - OrePrefixes.cableGt01.get(Materials.AnyCopper), 'G', new ItemStack(Blocks.glass, 1) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_HV_Brewery.get(1L), - bitsd, - new Object[] { "GPG", aTextWireHull, "CBC", 'M', ItemList.Hull_HV, 'P', ItemList.Electric_Pump_HV, 'B', - new ItemStack(Items.brewing_stand, 0), 'C', OrePrefixes.circuit.get(Materials.Advanced), 'W', - OrePrefixes.cableGt01.get(Materials.Gold), 'G', new ItemStack(Blocks.glass, 1) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_EV_Brewery.get(1L), - bitsd, - new Object[] { "GPG", aTextWireHull, "CBC", 'M', ItemList.Hull_EV, 'P', ItemList.Electric_Pump_EV, 'B', - new ItemStack(Items.brewing_stand, 0), 'C', OrePrefixes.circuit.get(Materials.Data), 'W', - OrePrefixes.cableGt01.get(Materials.Aluminium), 'G', new ItemStack(Blocks.glass, 1) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_IV_Brewery.get(1L), - bitsd, - new Object[] { "GPG", aTextWireHull, "CBC", 'M', ItemList.Hull_IV, 'P', ItemList.Electric_Pump_IV, 'B', - new ItemStack(Items.brewing_stand, 0), 'C', OrePrefixes.circuit.get(Materials.Elite), 'W', - OrePrefixes.cableGt01.get(Materials.Tungsten), 'G', new ItemStack(Blocks.glass, 1) }); + new GT_MetaTileEntity_PotionBrewer(495, "basicmachine.brewery.tier.05", "Advanced Brewery IV", 5) + .getStackForm(1L)); + + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_LV_Brewery.get(1L), + bitsd, + new Object[] { "GPG", aTextWireHull, "CBC", 'M', ItemList.Hull_LV, 'P', ItemList.Electric_Pump_LV, 'B', + new ItemStack(Items.brewing_stand, 0), 'C', OrePrefixes.circuit.get(Materials.Basic), 'W', + OrePrefixes.cableGt01.get(Materials.Tin), 'G', new ItemStack(Blocks.glass, 1) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_MV_Brewery.get(1L), + bitsd, + new Object[] { "GPG", aTextWireHull, "CBC", 'M', ItemList.Hull_MV, 'P', ItemList.Electric_Pump_MV, 'B', + new ItemStack(Items.brewing_stand, 0), 'C', OrePrefixes.circuit.get(Materials.Good), 'W', + OrePrefixes.cableGt01.get(Materials.AnyCopper), 'G', new ItemStack(Blocks.glass, 1) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_HV_Brewery.get(1L), + bitsd, + new Object[] { "GPG", aTextWireHull, "CBC", 'M', ItemList.Hull_HV, 'P', ItemList.Electric_Pump_HV, 'B', + new ItemStack(Items.brewing_stand, 0), 'C', OrePrefixes.circuit.get(Materials.Advanced), 'W', + OrePrefixes.cableGt01.get(Materials.Gold), 'G', new ItemStack(Blocks.glass, 1) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_EV_Brewery.get(1L), + bitsd, + new Object[] { "GPG", aTextWireHull, "CBC", 'M', ItemList.Hull_EV, 'P', ItemList.Electric_Pump_EV, 'B', + new ItemStack(Items.brewing_stand, 0), 'C', OrePrefixes.circuit.get(Materials.Data), 'W', + OrePrefixes.cableGt01.get(Materials.Aluminium), 'G', new ItemStack(Blocks.glass, 1) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_IV_Brewery.get(1L), + bitsd, + new Object[] { "GPG", aTextWireHull, "CBC", 'M', ItemList.Hull_IV, 'P', ItemList.Electric_Pump_IV, 'B', + new ItemStack(Items.brewing_stand, 0), 'C', OrePrefixes.circuit.get(Materials.Elite), 'W', + OrePrefixes.cableGt01.get(Materials.Tungsten), 'G', new ItemStack(Blocks.glass, 1) }); ItemList.Machine_LV_Fermenter.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 501, - "basicmachine.fermenter.tier.01", - "Basic Fermenter", - 1, - "Fermenting Fluids", - GT_Recipe.GT_Recipe_Map.sFermentingRecipes, - 1, - 1, - 1000, - 0, - 1, - "Fermenter.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "FERMENTER", - new Object[] { aTextWirePump, "GMG", aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 501, + "basicmachine.fermenter.tier.01", + "Basic Fermenter", + 1, + "Fermenting Fluids", + GT_Recipe.GT_Recipe_Map.sFermentingRecipes, + 1, + 1, + 1000, + 0, + 1, + "Fermenter.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "FERMENTER", + new Object[] { aTextWirePump, "GMG", aTextWireCoil, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_MV_Fermenter.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 502, - "basicmachine.fermenter.tier.02", - "Advanced Fermenter", - 2, - "Fermenting Fluids", - GT_Recipe.GT_Recipe_Map.sFermentingRecipes, - 1, - 1, - 1000, - 0, - 1, - "Fermenter.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "FERMENTER", - new Object[] { aTextWirePump, "GMG", aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 502, + "basicmachine.fermenter.tier.02", + "Advanced Fermenter", + 2, + "Fermenting Fluids", + GT_Recipe.GT_Recipe_Map.sFermentingRecipes, + 1, + 1, + 1000, + 0, + 1, + "Fermenter.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "FERMENTER", + new Object[] { aTextWirePump, "GMG", aTextWireCoil, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_HV_Fermenter.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 503, - "basicmachine.fermenter.tier.03", - "Advanced Fermenter II", - 3, - "Fermenting Fluids", - GT_Recipe.GT_Recipe_Map.sFermentingRecipes, - 1, - 1, - 1000, - 0, - 1, - "Fermenter.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "FERMENTER", - new Object[] { aTextWirePump, "GMG", aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 503, + "basicmachine.fermenter.tier.03", + "Advanced Fermenter II", + 3, + "Fermenting Fluids", + GT_Recipe.GT_Recipe_Map.sFermentingRecipes, + 1, + 1, + 1000, + 0, + 1, + "Fermenter.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "FERMENTER", + new Object[] { aTextWirePump, "GMG", aTextWireCoil, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_EV_Fermenter.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 504, - "basicmachine.fermenter.tier.04", - "Advanced Fermenter III", - 4, - "Fermenting Fluids", - GT_Recipe.GT_Recipe_Map.sFermentingRecipes, - 1, - 1, - 1000, - 0, - 1, - "Fermenter.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "FERMENTER", - new Object[] { aTextWirePump, "GMG", aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 504, + "basicmachine.fermenter.tier.04", + "Advanced Fermenter III", + 4, + "Fermenting Fluids", + GT_Recipe.GT_Recipe_Map.sFermentingRecipes, + 1, + 1, + 1000, + 0, + 1, + "Fermenter.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "FERMENTER", + new Object[] { aTextWirePump, "GMG", aTextWireCoil, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_IV_Fermenter.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 505, - "basicmachine.fermenter.tier.05", - "Advanced Fermenter IV", - 5, - "Fermenting Fluids", - GT_Recipe.GT_Recipe_Map.sFermentingRecipes, - 1, - 1, - 1000, - 0, - 1, - "Fermenter.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "FERMENTER", - new Object[] { aTextWirePump, "GMG", aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 505, + "basicmachine.fermenter.tier.05", + "Advanced Fermenter IV", + 5, + "Fermenting Fluids", + GT_Recipe.GT_Recipe_Map.sFermentingRecipes, + 1, + 1, + 1000, + 0, + 1, + "Fermenter.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "FERMENTER", + new Object[] { aTextWirePump, "GMG", aTextWireCoil, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_LV_FluidExtractor.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 511, - "basicmachine.fluidextractor.tier.01", - "Basic Fluid Extractor", - 1, - "Extracting Fluids from Items", - GT_Recipe.GT_Recipe_Map.sFluidExtractionRecipes, - 1, - 1, - 16000, - 0, - 1, - "FluidExtractor.png", - SoundResource.IC2_MACHINES_EXTRACTOR_OP, - false, - false, - SpecialEffects.NONE, - "FLUID_EXTRACTOR", - new Object[] { "GEG", "TPT", "CMC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'T', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 511, + "basicmachine.fluidextractor.tier.01", + "Basic Fluid Extractor", + 1, + "Extracting Fluids from Items", + GT_Recipe.GT_Recipe_Map.sFluidExtractionRecipes, + 1, + 1, + 16000, + 0, + 1, + "FluidExtractor.png", + SoundResource.IC2_MACHINES_EXTRACTOR_OP, + false, + false, + SpecialEffects.NONE, + "FLUID_EXTRACTOR", + new Object[] { "GEG", "TPT", "CMC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'T', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_MV_FluidExtractor.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 512, - "basicmachine.fluidextractor.tier.02", - "Advanced Fluid Extractor", - 2, - "Extracting Fluids from Items", - GT_Recipe.GT_Recipe_Map.sFluidExtractionRecipes, - 1, - 1, - 16000, - 0, - 1, - "FluidExtractor.png", - SoundResource.IC2_MACHINES_EXTRACTOR_OP, - false, - false, - SpecialEffects.NONE, - "FLUID_EXTRACTOR", - new Object[] { "GEG", "TPT", "CMC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'T', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 512, + "basicmachine.fluidextractor.tier.02", + "Advanced Fluid Extractor", + 2, + "Extracting Fluids from Items", + GT_Recipe.GT_Recipe_Map.sFluidExtractionRecipes, + 1, + 1, + 16000, + 0, + 1, + "FluidExtractor.png", + SoundResource.IC2_MACHINES_EXTRACTOR_OP, + false, + false, + SpecialEffects.NONE, + "FLUID_EXTRACTOR", + new Object[] { "GEG", "TPT", "CMC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'T', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_HV_FluidExtractor.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 513, - "basicmachine.fluidextractor.tier.03", - "Advanced Fluid Extractor II", - 3, - "Extracting Fluids from Items", - GT_Recipe.GT_Recipe_Map.sFluidExtractionRecipes, - 1, - 1, - 16000, - 0, - 1, - "FluidExtractor.png", - SoundResource.IC2_MACHINES_EXTRACTOR_OP, - false, - false, - SpecialEffects.NONE, - "FLUID_EXTRACTOR", - new Object[] { "GEG", "TPT", "CMC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'T', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 513, + "basicmachine.fluidextractor.tier.03", + "Advanced Fluid Extractor II", + 3, + "Extracting Fluids from Items", + GT_Recipe.GT_Recipe_Map.sFluidExtractionRecipes, + 1, + 1, + 16000, + 0, + 1, + "FluidExtractor.png", + SoundResource.IC2_MACHINES_EXTRACTOR_OP, + false, + false, + SpecialEffects.NONE, + "FLUID_EXTRACTOR", + new Object[] { "GEG", "TPT", "CMC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'T', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_EV_FluidExtractor.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 514, - "basicmachine.fluidextractor.tier.04", - "Advanced Fluid Extractor III", - 4, - "Extracting Fluids from Items", - GT_Recipe.GT_Recipe_Map.sFluidExtractionRecipes, - 1, - 1, - 16000, - 0, - 1, - "FluidExtractor.png", - SoundResource.IC2_MACHINES_EXTRACTOR_OP, - false, - false, - SpecialEffects.NONE, - "FLUID_EXTRACTOR", - new Object[] { "GEG", "TPT", "CMC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'T', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 514, + "basicmachine.fluidextractor.tier.04", + "Advanced Fluid Extractor III", + 4, + "Extracting Fluids from Items", + GT_Recipe.GT_Recipe_Map.sFluidExtractionRecipes, + 1, + 1, + 16000, + 0, + 1, + "FluidExtractor.png", + SoundResource.IC2_MACHINES_EXTRACTOR_OP, + false, + false, + SpecialEffects.NONE, + "FLUID_EXTRACTOR", + new Object[] { "GEG", "TPT", "CMC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'T', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_IV_FluidExtractor.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 515, - "basicmachine.fluidextractor.tier.05", - "Advanced Fluid Extractor IV", - 5, - "Extracting Fluids from Items", - GT_Recipe.GT_Recipe_Map.sFluidExtractionRecipes, - 1, - 1, - 16000, - 0, - 1, - "FluidExtractor.png", - SoundResource.IC2_MACHINES_EXTRACTOR_OP, - false, - false, - SpecialEffects.NONE, - "FLUID_EXTRACTOR", - new Object[] { "GEG", "TPT", "CMC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'T', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 515, + "basicmachine.fluidextractor.tier.05", + "Advanced Fluid Extractor IV", + 5, + "Extracting Fluids from Items", + GT_Recipe.GT_Recipe_Map.sFluidExtractionRecipes, + 1, + 1, + 16000, + 0, + 1, + "FluidExtractor.png", + SoundResource.IC2_MACHINES_EXTRACTOR_OP, + false, + false, + SpecialEffects.NONE, + "FLUID_EXTRACTOR", + new Object[] { "GEG", "TPT", "CMC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'T', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_LV_FluidSolidifier.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 521, - "basicmachine.fluidsolidifier.tier.01", - "Basic Fluid Solidifier", - 1, - "Cools Fluids down to form Solids", - GT_Recipe.GT_Recipe_Map.sFluidSolidficationRecipes, - 1, - 1, - 16000, - 0, - 1, - "FluidSolidifier.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "FLUID_SOLIDIFIER", - new Object[] { "PGP", aTextWireHull, "CBC", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS, 'B', OreDictNames.craftingChest }) - .getStackForm( - 1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 521, + "basicmachine.fluidsolidifier.tier.01", + "Basic Fluid Solidifier", + 1, + "Cools Fluids down to form Solids", + GT_Recipe.GT_Recipe_Map.sFluidSolidficationRecipes, + 1, + 1, + 16000, + 0, + 1, + "FluidSolidifier.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "FLUID_SOLIDIFIER", + new Object[] { "PGP", aTextWireHull, "CBC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS, 'B', OreDictNames.craftingChest }) + .getStackForm(1L)); ItemList.Machine_MV_FluidSolidifier.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 522, - "basicmachine.fluidsolidifier.tier.02", - "Advanced Fluid Solidifier", - 2, - "Cools Fluids down to form Solids", - GT_Recipe.GT_Recipe_Map.sFluidSolidficationRecipes, - 1, - 1, - 16000, - 0, - 1, - "FluidSolidifier.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "FLUID_SOLIDIFIER", - new Object[] { "PGP", aTextWireHull, "CBC", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS, 'B', OreDictNames.craftingChest }) - .getStackForm( - 1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 522, + "basicmachine.fluidsolidifier.tier.02", + "Advanced Fluid Solidifier", + 2, + "Cools Fluids down to form Solids", + GT_Recipe.GT_Recipe_Map.sFluidSolidficationRecipes, + 1, + 1, + 16000, + 0, + 1, + "FluidSolidifier.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "FLUID_SOLIDIFIER", + new Object[] { "PGP", aTextWireHull, "CBC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS, 'B', OreDictNames.craftingChest }) + .getStackForm(1L)); ItemList.Machine_HV_FluidSolidifier.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 523, - "basicmachine.fluidsolidifier.tier.03", - "Advanced Fluid Solidifier II", - 3, - "Cools Fluids down to form Solids", - GT_Recipe.GT_Recipe_Map.sFluidSolidficationRecipes, - 1, - 1, - 16000, - 0, - 1, - "FluidSolidifier.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "FLUID_SOLIDIFIER", - new Object[] { "PGP", aTextWireHull, "CBC", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS, 'B', OreDictNames.craftingChest }) - .getStackForm( - 1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 523, + "basicmachine.fluidsolidifier.tier.03", + "Advanced Fluid Solidifier II", + 3, + "Cools Fluids down to form Solids", + GT_Recipe.GT_Recipe_Map.sFluidSolidficationRecipes, + 1, + 1, + 16000, + 0, + 1, + "FluidSolidifier.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "FLUID_SOLIDIFIER", + new Object[] { "PGP", aTextWireHull, "CBC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS, 'B', OreDictNames.craftingChest }) + .getStackForm(1L)); ItemList.Machine_EV_FluidSolidifier.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 524, - "basicmachine.fluidsolidifier.tier.04", - "Advanced Fluid Solidifier III", - 4, - "Cools Fluids down to form Solids", - GT_Recipe.GT_Recipe_Map.sFluidSolidficationRecipes, - 1, - 1, - 16000, - 0, - 1, - "FluidSolidifier.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "FLUID_SOLIDIFIER", - new Object[] { "PGP", aTextWireHull, "CBC", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS, 'B', OreDictNames.craftingChest }) - .getStackForm( - 1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 524, + "basicmachine.fluidsolidifier.tier.04", + "Advanced Fluid Solidifier III", + 4, + "Cools Fluids down to form Solids", + GT_Recipe.GT_Recipe_Map.sFluidSolidficationRecipes, + 1, + 1, + 16000, + 0, + 1, + "FluidSolidifier.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "FLUID_SOLIDIFIER", + new Object[] { "PGP", aTextWireHull, "CBC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS, 'B', OreDictNames.craftingChest }) + .getStackForm(1L)); ItemList.Machine_IV_FluidSolidifier.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 525, - "basicmachine.fluidsolidifier.tier.05", - "Advanced Fluid Solidifier IV", - 5, - "Cools Fluids down to form Solids", - GT_Recipe.GT_Recipe_Map.sFluidSolidficationRecipes, - 1, - 1, - 16000, - 0, - 1, - "FluidSolidifier.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "FLUID_SOLIDIFIER", - new Object[] { "PGP", aTextWireHull, "CBC", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS, 'B', OreDictNames.craftingChest }) - .getStackForm( - 1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 525, + "basicmachine.fluidsolidifier.tier.05", + "Advanced Fluid Solidifier IV", + 5, + "Cools Fluids down to form Solids", + GT_Recipe.GT_Recipe_Map.sFluidSolidficationRecipes, + 1, + 1, + 16000, + 0, + 1, + "FluidSolidifier.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "FLUID_SOLIDIFIER", + new Object[] { "PGP", aTextWireHull, "CBC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS, 'B', OreDictNames.craftingChest }) + .getStackForm(1L)); ItemList.Machine_LV_Distillery.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 531, - "basicmachine.distillery.tier.01", - "Basic Distillery", - 1, - "Extracting the most relevant Parts of Fluids", - GT_Recipe.GT_Recipe_Map.sDistilleryRecipes, - 1, - 1, - 8000, - 0, - 1, - "Distillery.png", - SoundResource.GT_MACHINES_DISTILLERY_LOOP, - false, - false, - SpecialEffects.NONE, - "DISTILLERY", - new Object[] { "GBG", aTextCableHull, aTextWirePump, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'B', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PIPE, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 531, + "basicmachine.distillery.tier.01", + "Basic Distillery", + 1, + "Extracting the most relevant Parts of Fluids", + GT_Recipe.GT_Recipe_Map.sDistilleryRecipes, + 1, + 1, + 8000, + 0, + 1, + "Distillery.png", + SoundResource.GT_MACHINES_DISTILLERY_LOOP, + false, + false, + SpecialEffects.NONE, + "DISTILLERY", + new Object[] { "GBG", aTextCableHull, aTextWirePump, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'B', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PIPE, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_MV_Distillery.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 532, - "basicmachine.distillery.tier.02", - "Advanced Distillery", - 2, - "Extracting the most relevant Parts of Fluids", - GT_Recipe.GT_Recipe_Map.sDistilleryRecipes, - 1, - 1, - 16000, - 0, - 1, - "Distillery.png", - SoundResource.GT_MACHINES_DISTILLERY_LOOP, - false, - false, - SpecialEffects.NONE, - "DISTILLERY", - new Object[] { "GBG", aTextCableHull, aTextWirePump, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'B', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PIPE, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 532, + "basicmachine.distillery.tier.02", + "Advanced Distillery", + 2, + "Extracting the most relevant Parts of Fluids", + GT_Recipe.GT_Recipe_Map.sDistilleryRecipes, + 1, + 1, + 16000, + 0, + 1, + "Distillery.png", + SoundResource.GT_MACHINES_DISTILLERY_LOOP, + false, + false, + SpecialEffects.NONE, + "DISTILLERY", + new Object[] { "GBG", aTextCableHull, aTextWirePump, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'B', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PIPE, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_HV_Distillery.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 533, - "basicmachine.distillery.tier.03", - "Advanced Distillery II", - 3, - "Extracting the most relevant Parts of Fluids", - GT_Recipe.GT_Recipe_Map.sDistilleryRecipes, - 1, - 1, - 24000, - 0, - 1, - "Distillery.png", - SoundResource.GT_MACHINES_DISTILLERY_LOOP, - false, - false, - SpecialEffects.NONE, - "DISTILLERY", - new Object[] { "GBG", aTextCableHull, aTextWirePump, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'B', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PIPE, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 533, + "basicmachine.distillery.tier.03", + "Advanced Distillery II", + 3, + "Extracting the most relevant Parts of Fluids", + GT_Recipe.GT_Recipe_Map.sDistilleryRecipes, + 1, + 1, + 24000, + 0, + 1, + "Distillery.png", + SoundResource.GT_MACHINES_DISTILLERY_LOOP, + false, + false, + SpecialEffects.NONE, + "DISTILLERY", + new Object[] { "GBG", aTextCableHull, aTextWirePump, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'B', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PIPE, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_EV_Distillery.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 534, - "basicmachine.distillery.tier.04", - "Advanced Distillery III", - 4, - "Extracting the most relevant Parts of Fluids", - GT_Recipe.GT_Recipe_Map.sDistilleryRecipes, - 1, - 1, - 32000, - 0, - 1, - "Distillery.png", - SoundResource.GT_MACHINES_DISTILLERY_LOOP, - false, - false, - SpecialEffects.NONE, - "DISTILLERY", - new Object[] { "GBG", aTextCableHull, aTextWirePump, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'B', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PIPE, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 534, + "basicmachine.distillery.tier.04", + "Advanced Distillery III", + 4, + "Extracting the most relevant Parts of Fluids", + GT_Recipe.GT_Recipe_Map.sDistilleryRecipes, + 1, + 1, + 32000, + 0, + 1, + "Distillery.png", + SoundResource.GT_MACHINES_DISTILLERY_LOOP, + false, + false, + SpecialEffects.NONE, + "DISTILLERY", + new Object[] { "GBG", aTextCableHull, aTextWirePump, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'B', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PIPE, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_IV_Distillery.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 535, - "basicmachine.distillery.tier.05", - "Advanced Distillery IV", - 5, - "Extracting the most relevant Parts of Fluids", - GT_Recipe.GT_Recipe_Map.sDistilleryRecipes, - 1, - 1, - 40000, - 0, - 1, - "Distillery.png", - SoundResource.GT_MACHINES_DISTILLERY_LOOP, - false, - false, - SpecialEffects.NONE, - "DISTILLERY", - new Object[] { "GBG", aTextCableHull, aTextWirePump, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'B', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PIPE, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 535, + "basicmachine.distillery.tier.05", + "Advanced Distillery IV", + 5, + "Extracting the most relevant Parts of Fluids", + GT_Recipe.GT_Recipe_Map.sDistilleryRecipes, + 1, + 1, + 40000, + 0, + 1, + "Distillery.png", + SoundResource.GT_MACHINES_DISTILLERY_LOOP, + false, + false, + SpecialEffects.NONE, + "DISTILLERY", + new Object[] { "GBG", aTextCableHull, aTextWirePump, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'B', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PIPE, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_LV_ChemicalBath.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 541, - "basicmachine.chemicalbath.tier.01", - "Basic Chemical Bath", - 1, - "Bathing Ores in Chemicals to separate them", - GT_Recipe.GT_Recipe_Map.sChemicalBathRecipes, - 1, - 3, - 8000, - 0, - 1, - "ChemicalBath.png", - SoundResource.NONE, - false, - true, - SpecialEffects.NONE, - "CHEMICAL_BATH", - new Object[] { "VGW", "PGV", aTextCableHull, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'V', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 541, + "basicmachine.chemicalbath.tier.01", + "Basic Chemical Bath", + 1, + "Bathing Ores in Chemicals to separate them", + GT_Recipe.GT_Recipe_Map.sChemicalBathRecipes, + 1, + 3, + 8000, + 0, + 1, + "ChemicalBath.png", + SoundResource.NONE, + false, + true, + SpecialEffects.NONE, + "CHEMICAL_BATH", + new Object[] { "VGW", "PGV", aTextCableHull, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'V', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_MV_ChemicalBath.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 542, - "basicmachine.chemicalbath.tier.02", - "Advanced Chemical Bath", - 2, - "Bathing Ores in Chemicals to separate them", - GT_Recipe.GT_Recipe_Map.sChemicalBathRecipes, - 1, - 3, - 8000, - 0, - 1, - "ChemicalBath.png", - SoundResource.NONE, - false, - true, - SpecialEffects.NONE, - "CHEMICAL_BATH", - new Object[] { "VGW", "PGV", aTextCableHull, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'V', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 542, + "basicmachine.chemicalbath.tier.02", + "Advanced Chemical Bath", + 2, + "Bathing Ores in Chemicals to separate them", + GT_Recipe.GT_Recipe_Map.sChemicalBathRecipes, + 1, + 3, + 8000, + 0, + 1, + "ChemicalBath.png", + SoundResource.NONE, + false, + true, + SpecialEffects.NONE, + "CHEMICAL_BATH", + new Object[] { "VGW", "PGV", aTextCableHull, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'V', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_HV_ChemicalBath.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 543, - "basicmachine.chemicalbath.tier.03", - "Advanced Chemical Bath II", - 3, - "Bathing Ores in Chemicals to separate them", - GT_Recipe.GT_Recipe_Map.sChemicalBathRecipes, - 1, - 3, - 8000, - 0, - 1, - "ChemicalBath.png", - SoundResource.NONE, - false, - true, - SpecialEffects.NONE, - "CHEMICAL_BATH", - new Object[] { "VGW", "PGV", aTextCableHull, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'V', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 543, + "basicmachine.chemicalbath.tier.03", + "Advanced Chemical Bath II", + 3, + "Bathing Ores in Chemicals to separate them", + GT_Recipe.GT_Recipe_Map.sChemicalBathRecipes, + 1, + 3, + 8000, + 0, + 1, + "ChemicalBath.png", + SoundResource.NONE, + false, + true, + SpecialEffects.NONE, + "CHEMICAL_BATH", + new Object[] { "VGW", "PGV", aTextCableHull, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'V', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_EV_ChemicalBath.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 544, - "basicmachine.chemicalbath.tier.04", - "Advanced Chemical Bath III", - 4, - "Bathing Ores in Chemicals to separate them", - GT_Recipe.GT_Recipe_Map.sChemicalBathRecipes, - 1, - 3, - 8000, - 0, - 1, - "ChemicalBath.png", - SoundResource.NONE, - false, - true, - SpecialEffects.NONE, - "CHEMICAL_BATH", - new Object[] { "VGW", "PGV", aTextCableHull, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'V', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 544, + "basicmachine.chemicalbath.tier.04", + "Advanced Chemical Bath III", + 4, + "Bathing Ores in Chemicals to separate them", + GT_Recipe.GT_Recipe_Map.sChemicalBathRecipes, + 1, + 3, + 8000, + 0, + 1, + "ChemicalBath.png", + SoundResource.NONE, + false, + true, + SpecialEffects.NONE, + "CHEMICAL_BATH", + new Object[] { "VGW", "PGV", aTextCableHull, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'V', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_IV_ChemicalBath.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 545, - "basicmachine.chemicalbath.tier.05", - "Advanced Chemical Bath IV", - 5, - "Bathing Ores in Chemicals to separate them", - GT_Recipe.GT_Recipe_Map.sChemicalBathRecipes, - 1, - 3, - 8000, - 0, - 1, - "ChemicalBath.png", - SoundResource.NONE, - false, - true, - SpecialEffects.NONE, - "CHEMICAL_BATH", - new Object[] { "VGW", "PGV", aTextCableHull, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'V', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 545, + "basicmachine.chemicalbath.tier.05", + "Advanced Chemical Bath IV", + 5, + "Bathing Ores in Chemicals to separate them", + GT_Recipe.GT_Recipe_Map.sChemicalBathRecipes, + 1, + 3, + 8000, + 0, + 1, + "ChemicalBath.png", + SoundResource.NONE, + false, + true, + SpecialEffects.NONE, + "CHEMICAL_BATH", + new Object[] { "VGW", "PGV", aTextCableHull, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'V', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_LV_Polarizer.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 551, - "basicmachine.polarizer.tier.01", - "Basic Polarizer", - 1, - "Bipolarising your Magnets", - GT_Recipe.GT_Recipe_Map.sPolarizerRecipes, - 1, - 1, - 0, - 0, - 1, - "Polarizer.png", - SoundResource.IC2_MACHINES_MAGNETIZER_LOOP, - false, - false, - SpecialEffects.NONE, - "POLARIZER", - new Object[] { "ZSZ", aTextWireHull, "ZSZ", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'S', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.STICK_ELECTROMAGNETIC, 'Z', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_ELECTRIC, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 551, + "basicmachine.polarizer.tier.01", + "Basic Polarizer", + 1, + "Bipolarising your Magnets", + GT_Recipe.GT_Recipe_Map.sPolarizerRecipes, + 1, + 1, + 0, + 0, + 1, + "Polarizer.png", + SoundResource.IC2_MACHINES_MAGNETIZER_LOOP, + false, + false, + SpecialEffects.NONE, + "POLARIZER", + new Object[] { "ZSZ", aTextWireHull, "ZSZ", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'S', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.STICK_ELECTROMAGNETIC, 'Z', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_ELECTRIC, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_MV_Polarizer.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 552, - "basicmachine.polarizer.tier.02", - "Advanced Polarizer", - 2, - "Bipolarising your Magnets", - GT_Recipe.GT_Recipe_Map.sPolarizerRecipes, - 1, - 1, - 0, - 0, - 1, - "Polarizer.png", - SoundResource.IC2_MACHINES_MAGNETIZER_LOOP, - false, - false, - SpecialEffects.NONE, - "POLARIZER", - new Object[] { "ZSZ", aTextWireHull, "ZSZ", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'S', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.STICK_ELECTROMAGNETIC, 'Z', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_ELECTRIC, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 552, + "basicmachine.polarizer.tier.02", + "Advanced Polarizer", + 2, + "Bipolarising your Magnets", + GT_Recipe.GT_Recipe_Map.sPolarizerRecipes, + 1, + 1, + 0, + 0, + 1, + "Polarizer.png", + SoundResource.IC2_MACHINES_MAGNETIZER_LOOP, + false, + false, + SpecialEffects.NONE, + "POLARIZER", + new Object[] { "ZSZ", aTextWireHull, "ZSZ", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'S', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.STICK_ELECTROMAGNETIC, 'Z', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_ELECTRIC, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_HV_Polarizer.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 553, - "basicmachine.polarizer.tier.03", - "Advanced Polarizer II", - 3, - "Bipolarising your Magnets", - GT_Recipe.GT_Recipe_Map.sPolarizerRecipes, - 1, - 1, - 0, - 0, - 1, - "Polarizer.png", - SoundResource.IC2_MACHINES_MAGNETIZER_LOOP, - false, - false, - SpecialEffects.NONE, - "POLARIZER", - new Object[] { "ZSZ", aTextWireHull, "ZSZ", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'S', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.STICK_ELECTROMAGNETIC, 'Z', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_ELECTRIC, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 553, + "basicmachine.polarizer.tier.03", + "Advanced Polarizer II", + 3, + "Bipolarising your Magnets", + GT_Recipe.GT_Recipe_Map.sPolarizerRecipes, + 1, + 1, + 0, + 0, + 1, + "Polarizer.png", + SoundResource.IC2_MACHINES_MAGNETIZER_LOOP, + false, + false, + SpecialEffects.NONE, + "POLARIZER", + new Object[] { "ZSZ", aTextWireHull, "ZSZ", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'S', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.STICK_ELECTROMAGNETIC, 'Z', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_ELECTRIC, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_EV_Polarizer.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 554, - "basicmachine.polarizer.tier.04", - "Advanced Polarizer III", - 4, - "Bipolarising your Magnets", - GT_Recipe.GT_Recipe_Map.sPolarizerRecipes, - 1, - 1, - 0, - 0, - 1, - "Polarizer.png", - SoundResource.IC2_MACHINES_MAGNETIZER_LOOP, - false, - false, - SpecialEffects.NONE, - "POLARIZER", - new Object[] { "ZSZ", aTextWireHull, "ZSZ", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'S', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.STICK_ELECTROMAGNETIC, 'Z', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_ELECTRIC, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 554, + "basicmachine.polarizer.tier.04", + "Advanced Polarizer III", + 4, + "Bipolarising your Magnets", + GT_Recipe.GT_Recipe_Map.sPolarizerRecipes, + 1, + 1, + 0, + 0, + 1, + "Polarizer.png", + SoundResource.IC2_MACHINES_MAGNETIZER_LOOP, + false, + false, + SpecialEffects.NONE, + "POLARIZER", + new Object[] { "ZSZ", aTextWireHull, "ZSZ", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'S', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.STICK_ELECTROMAGNETIC, 'Z', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_ELECTRIC, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_IV_Polarizer.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 555, - "basicmachine.polarizer.tier.05", - "Advanced Polarizer IV", - 5, - "Bipolarising your Magnets", - GT_Recipe.GT_Recipe_Map.sPolarizerRecipes, - 1, - 1, - 0, - 0, - 1, - "Polarizer.png", - SoundResource.IC2_MACHINES_MAGNETIZER_LOOP, - false, - false, - SpecialEffects.NONE, - "POLARIZER", - new Object[] { "ZSZ", aTextWireHull, "ZSZ", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'S', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.STICK_ELECTROMAGNETIC, 'Z', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_ELECTRIC, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 555, + "basicmachine.polarizer.tier.05", + "Advanced Polarizer IV", + 5, + "Bipolarising your Magnets", + GT_Recipe.GT_Recipe_Map.sPolarizerRecipes, + 1, + 1, + 0, + 0, + 1, + "Polarizer.png", + SoundResource.IC2_MACHINES_MAGNETIZER_LOOP, + false, + false, + SpecialEffects.NONE, + "POLARIZER", + new Object[] { "ZSZ", aTextWireHull, "ZSZ", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'S', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.STICK_ELECTROMAGNETIC, 'Z', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_ELECTRIC, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_LV_ElectromagneticSeparator.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 561, - "basicmachine.electromagneticseparator.tier.01", - "Basic Electromagnetic Separator", - 1, - "Separating the magnetic Ores from the rest", - GT_Recipe.GT_Recipe_Map.sElectroMagneticSeparatorRecipes, - 1, - 3, - 0, - 0, - 1, - "ElectromagneticSeparator.png", - SoundResource.IC2_MACHINES_MAGNETIZER_LOOP, - false, - false, - SpecialEffects.NONE, - "ELECTROMAGNETIC_SEPARATOR", - new Object[] { "VWZ", "WMS", "CWZ", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'S', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.STICK_ELECTROMAGNETIC, 'Z', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_ELECTRIC, 'V', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 561, + "basicmachine.electromagneticseparator.tier.01", + "Basic Electromagnetic Separator", + 1, + "Separating the magnetic Ores from the rest", + GT_Recipe.GT_Recipe_Map.sElectroMagneticSeparatorRecipes, + 1, + 3, + 0, + 0, + 1, + "ElectromagneticSeparator.png", + SoundResource.IC2_MACHINES_MAGNETIZER_LOOP, + false, + false, + SpecialEffects.NONE, + "ELECTROMAGNETIC_SEPARATOR", + new Object[] { "VWZ", "WMS", "CWZ", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'S', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.STICK_ELECTROMAGNETIC, 'Z', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_ELECTRIC, 'V', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_MV_ElectromagneticSeparator.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 562, - "basicmachine.electromagneticseparator.tier.02", - "Advanced Electromagnetic Separator", - 2, - "Separating the magnetic Ores from the rest", - GT_Recipe.GT_Recipe_Map.sElectroMagneticSeparatorRecipes, - 1, - 3, - 0, - 0, - 1, - "ElectromagneticSeparator.png", - SoundResource.IC2_MACHINES_MAGNETIZER_LOOP, - false, - false, - SpecialEffects.NONE, - "ELECTROMAGNETIC_SEPARATOR", - new Object[] { "VWZ", "WMS", "CWZ", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'S', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.STICK_ELECTROMAGNETIC, 'Z', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_ELECTRIC, 'V', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 562, + "basicmachine.electromagneticseparator.tier.02", + "Advanced Electromagnetic Separator", + 2, + "Separating the magnetic Ores from the rest", + GT_Recipe.GT_Recipe_Map.sElectroMagneticSeparatorRecipes, + 1, + 3, + 0, + 0, + 1, + "ElectromagneticSeparator.png", + SoundResource.IC2_MACHINES_MAGNETIZER_LOOP, + false, + false, + SpecialEffects.NONE, + "ELECTROMAGNETIC_SEPARATOR", + new Object[] { "VWZ", "WMS", "CWZ", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'S', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.STICK_ELECTROMAGNETIC, 'Z', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_ELECTRIC, 'V', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_HV_ElectromagneticSeparator.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 563, - "basicmachine.electromagneticseparator.tier.03", - "Advanced Electromagnetic Separator II", - 3, - "Separating the magnetic Ores from the rest", - GT_Recipe.GT_Recipe_Map.sElectroMagneticSeparatorRecipes, - 1, - 3, - 0, - 0, - 1, - "ElectromagneticSeparator.png", - SoundResource.IC2_MACHINES_MAGNETIZER_LOOP, - false, - false, - SpecialEffects.NONE, - "ELECTROMAGNETIC_SEPARATOR", - new Object[] { "VWZ", "WMS", "CWZ", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'S', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.STICK_ELECTROMAGNETIC, 'Z', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_ELECTRIC, 'V', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 563, + "basicmachine.electromagneticseparator.tier.03", + "Advanced Electromagnetic Separator II", + 3, + "Separating the magnetic Ores from the rest", + GT_Recipe.GT_Recipe_Map.sElectroMagneticSeparatorRecipes, + 1, + 3, + 0, + 0, + 1, + "ElectromagneticSeparator.png", + SoundResource.IC2_MACHINES_MAGNETIZER_LOOP, + false, + false, + SpecialEffects.NONE, + "ELECTROMAGNETIC_SEPARATOR", + new Object[] { "VWZ", "WMS", "CWZ", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'S', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.STICK_ELECTROMAGNETIC, 'Z', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_ELECTRIC, 'V', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_EV_ElectromagneticSeparator.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 564, - "basicmachine.electromagneticseparator.tier.04", - "Advanced Electromagnetic Separator III", - 4, - "Separating the magnetic Ores from the rest", - GT_Recipe.GT_Recipe_Map.sElectroMagneticSeparatorRecipes, - 1, - 3, - 0, - 0, - 1, - "ElectromagneticSeparator.png", - SoundResource.IC2_MACHINES_MAGNETIZER_LOOP, - false, - false, - SpecialEffects.NONE, - "ELECTROMAGNETIC_SEPARATOR", - new Object[] { "VWZ", "WMS", "CWZ", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'S', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.STICK_ELECTROMAGNETIC, 'Z', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_ELECTRIC, 'V', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 564, + "basicmachine.electromagneticseparator.tier.04", + "Advanced Electromagnetic Separator III", + 4, + "Separating the magnetic Ores from the rest", + GT_Recipe.GT_Recipe_Map.sElectroMagneticSeparatorRecipes, + 1, + 3, + 0, + 0, + 1, + "ElectromagneticSeparator.png", + SoundResource.IC2_MACHINES_MAGNETIZER_LOOP, + false, + false, + SpecialEffects.NONE, + "ELECTROMAGNETIC_SEPARATOR", + new Object[] { "VWZ", "WMS", "CWZ", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'S', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.STICK_ELECTROMAGNETIC, 'Z', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_ELECTRIC, 'V', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_IV_ElectromagneticSeparator.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 565, - "basicmachine.electromagneticseparator.tier.05", - "Advanced Electromagnetic Separator IV", - 5, - "Separating the magnetic Ores from the rest", - GT_Recipe.GT_Recipe_Map.sElectroMagneticSeparatorRecipes, - 1, - 3, - 0, - 0, - 1, - "ElectromagneticSeparator.png", - SoundResource.IC2_MACHINES_MAGNETIZER_LOOP, - false, - false, - SpecialEffects.NONE, - "ELECTROMAGNETIC_SEPARATOR", - new Object[] { "VWZ", "WMS", "CWZ", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'S', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.STICK_ELECTROMAGNETIC, 'Z', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_ELECTRIC, 'V', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 565, + "basicmachine.electromagneticseparator.tier.05", + "Advanced Electromagnetic Separator IV", + 5, + "Separating the magnetic Ores from the rest", + GT_Recipe.GT_Recipe_Map.sElectroMagneticSeparatorRecipes, + 1, + 3, + 0, + 0, + 1, + "ElectromagneticSeparator.png", + SoundResource.IC2_MACHINES_MAGNETIZER_LOOP, + false, + false, + SpecialEffects.NONE, + "ELECTROMAGNETIC_SEPARATOR", + new Object[] { "VWZ", "WMS", "CWZ", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'S', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.STICK_ELECTROMAGNETIC, 'Z', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_ELECTRIC, 'V', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_LV_Autoclave.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 571, - "basicmachine.autoclave.tier.01", - "Basic Autoclave", - 1, - "Crystallizing your Dusts", - GT_Recipe.GT_Recipe_Map.sAutoclaveRecipes, - 2, - 2, - 10000, - 0, - 1, - "Autoclave2.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "AUTOCLAVE", - new Object[] { "IGI", "IMI", "CPC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'I', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PLATE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 571, + "basicmachine.autoclave.tier.01", + "Basic Autoclave", + 1, + "Crystallizing your Dusts", + GT_Recipe.GT_Recipe_Map.sAutoclaveRecipes, + 2, + 2, + 10000, + 0, + 1, + "Autoclave2.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "AUTOCLAVE", + new Object[] { "IGI", "IMI", "CPC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'I', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PLATE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_MV_Autoclave.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 572, - "basicmachine.autoclave.tier.02", - "Advanced Autoclave", - 2, - "Crystallizing your Dusts", - GT_Recipe.GT_Recipe_Map.sAutoclaveRecipes, - 2, - 2, - 20000, - 0, - 1, - "Autoclave2.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "AUTOCLAVE", - new Object[] { "IGI", "IMI", "CPC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'I', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PLATE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 572, + "basicmachine.autoclave.tier.02", + "Advanced Autoclave", + 2, + "Crystallizing your Dusts", + GT_Recipe.GT_Recipe_Map.sAutoclaveRecipes, + 2, + 2, + 20000, + 0, + 1, + "Autoclave2.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "AUTOCLAVE", + new Object[] { "IGI", "IMI", "CPC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'I', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PLATE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_HV_Autoclave.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 573, - "basicmachine.autoclave.tier.03", - "Advanced Autoclave II", - 3, - "Crystallizing your Dusts", - GT_Recipe.GT_Recipe_Map.sAutoclaveRecipes, - 2, - 3, - 30000, - 0, - 1, - "Autoclave3.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "AUTOCLAVE", - new Object[] { "IGI", "IMI", "CPC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'I', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PLATE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 573, + "basicmachine.autoclave.tier.03", + "Advanced Autoclave II", + 3, + "Crystallizing your Dusts", + GT_Recipe.GT_Recipe_Map.sAutoclaveRecipes, + 2, + 3, + 30000, + 0, + 1, + "Autoclave3.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "AUTOCLAVE", + new Object[] { "IGI", "IMI", "CPC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'I', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PLATE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_EV_Autoclave.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 574, - "basicmachine.autoclave.tier.04", - "Advanced Autoclave III", - 4, - "Crystallizing your Dusts", - GT_Recipe.GT_Recipe_Map.sAutoclaveRecipes, - 2, - 4, - 40000, - 0, - 1, - "Autoclave4.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "AUTOCLAVE", - new Object[] { "IGI", "IMI", "CPC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'I', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PLATE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 574, + "basicmachine.autoclave.tier.04", + "Advanced Autoclave III", + 4, + "Crystallizing your Dusts", + GT_Recipe.GT_Recipe_Map.sAutoclaveRecipes, + 2, + 4, + 40000, + 0, + 1, + "Autoclave4.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "AUTOCLAVE", + new Object[] { "IGI", "IMI", "CPC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'I', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PLATE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_IV_Autoclave.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 575, - "basicmachine.autoclave.tier.05", - "Advanced Autoclave IV", - 5, - "Crystallizing your Dusts", - GT_Recipe.GT_Recipe_Map.sAutoclaveRecipes, - 2, - 4, - 50000, - 0, - 1, - "Autoclave4.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "AUTOCLAVE", - new Object[] { "IGI", "IMI", "CPC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'I', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PLATE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 575, + "basicmachine.autoclave.tier.05", + "Advanced Autoclave IV", + 5, + "Crystallizing your Dusts", + GT_Recipe.GT_Recipe_Map.sAutoclaveRecipes, + 2, + 4, + 50000, + 0, + 1, + "Autoclave4.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "AUTOCLAVE", + new Object[] { "IGI", "IMI", "CPC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'I', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PLATE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_LV_Mixer.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 581, - "basicmachine.mixer.tier.01", - "Basic Mixer", - 1, - "Will it Blend?", - GT_Recipe.GT_Recipe_Map.sMixerRecipes, - 6, - 1, - 16000, - 0, - 1, - "Mixer.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "MIXER", - new Object[] { "GRG", "GEG", aTextCableHull, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'R', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROTOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 581, + "basicmachine.mixer.tier.01", + "Basic Mixer", + 1, + "Will it Blend?", + GT_Recipe.GT_Recipe_Map.sMixerRecipes, + 6, + 1, + 16000, + 0, + 1, + "Mixer.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "MIXER", + new Object[] { "GRG", "GEG", aTextCableHull, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'R', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROTOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_MV_Mixer.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 582, - "basicmachine.mixer.tier.02", - "Advanced Mixer", - 2, - "Will it Blend?", - GT_Recipe.GT_Recipe_Map.sMixerRecipes, - 6, - 1, - 32000, - 0, - 1, - "Mixer.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "MIXER", - new Object[] { "GRG", "GEG", aTextCableHull, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'R', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROTOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 582, + "basicmachine.mixer.tier.02", + "Advanced Mixer", + 2, + "Will it Blend?", + GT_Recipe.GT_Recipe_Map.sMixerRecipes, + 6, + 1, + 32000, + 0, + 1, + "Mixer.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "MIXER", + new Object[] { "GRG", "GEG", aTextCableHull, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'R', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROTOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_HV_Mixer.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 583, - "basicmachine.mixer.tier.03", - "Advanced Mixer II", - 3, - "Will it Blend?", - GT_Recipe.GT_Recipe_Map.sMixerRecipes, - 6, - 4, - 48000, - 0, - 1, - "Mixer4.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "MIXER", - new Object[] { "GRG", "GEG", aTextCableHull, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'R', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROTOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 583, + "basicmachine.mixer.tier.03", + "Advanced Mixer II", + 3, + "Will it Blend?", + GT_Recipe.GT_Recipe_Map.sMixerRecipes, + 6, + 4, + 48000, + 0, + 1, + "Mixer4.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "MIXER", + new Object[] { "GRG", "GEG", aTextCableHull, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'R', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROTOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_EV_Mixer.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 584, - "basicmachine.mixer.tier.04", - "Advanced Mixer III", - 4, - "Will it Blend?", - GT_Recipe.GT_Recipe_Map.sMixerRecipes, - 9, - 4, - 64000, - 0, - 1, - "Mixer6.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "MIXER", - new Object[] { "GRG", "GEG", aTextCableHull, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'R', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROTOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 584, + "basicmachine.mixer.tier.04", + "Advanced Mixer III", + 4, + "Will it Blend?", + GT_Recipe.GT_Recipe_Map.sMixerRecipes, + 9, + 4, + 64000, + 0, + 1, + "Mixer6.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "MIXER", + new Object[] { "GRG", "GEG", aTextCableHull, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'R', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROTOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_IV_Mixer.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 585, - "basicmachine.mixer.tier.05", - "Advanced Mixer IV", - 5, - "Will it Blend?", - GT_Recipe.GT_Recipe_Map.sMixerRecipes, - 9, - 4, - 128000, - 0, - 1, - "Mixer6.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "MIXER", - new Object[] { "GRG", "GEG", aTextCableHull, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'R', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROTOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 585, + "basicmachine.mixer.tier.05", + "Advanced Mixer IV", + 5, + "Will it Blend?", + GT_Recipe.GT_Recipe_Map.sMixerRecipes, + 9, + 4, + 128000, + 0, + 1, + "Mixer6.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "MIXER", + new Object[] { "GRG", "GEG", aTextCableHull, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.MOTOR, 'R', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROTOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_LV_LaserEngraver.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 591, - "basicmachine.laserengraver.tier.01", - "Basic Precision Laser Engraver", - 1, - "Don't look directly at the Laser", - GT_Recipe.GT_Recipe_Map.sLaserEngraverRecipes, - 2, - 1, - 8000, - 0, - 1, - "LaserEngraver.png", - SoundResource.IC2_MACHINES_MAGNETIZER_LOOP, - false, - false, - SpecialEffects.NONE, - "LASER_ENGRAVER", - new Object[] { "PEP", aTextCableHull, aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.EMITTER, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 591, + "basicmachine.laserengraver.tier.01", + "Basic Precision Laser Engraver", + 1, + "Don't look directly at the Laser", + GT_Recipe.GT_Recipe_Map.sLaserEngraverRecipes, + 2, + 1, + 8000, + 0, + 1, + "LaserEngraver.png", + SoundResource.IC2_MACHINES_MAGNETIZER_LOOP, + false, + false, + SpecialEffects.NONE, + "LASER_ENGRAVER", + new Object[] { "PEP", aTextCableHull, aTextWireCoil, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.EMITTER, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_MV_LaserEngraver.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 592, - "basicmachine.laserengraver.tier.02", - "Advanced Precision Laser Engraver", - 2, - "Don't look directly at the Laser", - GT_Recipe.GT_Recipe_Map.sLaserEngraverRecipes, - 2, - 1, - 16000, - 0, - 1, - "LaserEngraver.png", - SoundResource.IC2_MACHINES_MAGNETIZER_LOOP, - false, - false, - SpecialEffects.NONE, - "LASER_ENGRAVER", - new Object[] { "PEP", aTextCableHull, aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.EMITTER, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 592, + "basicmachine.laserengraver.tier.02", + "Advanced Precision Laser Engraver", + 2, + "Don't look directly at the Laser", + GT_Recipe.GT_Recipe_Map.sLaserEngraverRecipes, + 2, + 1, + 16000, + 0, + 1, + "LaserEngraver.png", + SoundResource.IC2_MACHINES_MAGNETIZER_LOOP, + false, + false, + SpecialEffects.NONE, + "LASER_ENGRAVER", + new Object[] { "PEP", aTextCableHull, aTextWireCoil, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.EMITTER, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_HV_LaserEngraver.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 593, - "basicmachine.laserengraver.tier.03", - "Advanced Precision Laser Engraver II", - 3, - "Don't look directly at the Laser", - GT_Recipe.GT_Recipe_Map.sLaserEngraverRecipes, - 2, - 1, - 24000, - 0, - 1, - "LaserEngraver.png", - SoundResource.IC2_MACHINES_MAGNETIZER_LOOP, - false, - false, - SpecialEffects.NONE, - "LASER_ENGRAVER", - new Object[] { "PEP", aTextCableHull, aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.EMITTER, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 593, + "basicmachine.laserengraver.tier.03", + "Advanced Precision Laser Engraver II", + 3, + "Don't look directly at the Laser", + GT_Recipe.GT_Recipe_Map.sLaserEngraverRecipes, + 2, + 1, + 24000, + 0, + 1, + "LaserEngraver.png", + SoundResource.IC2_MACHINES_MAGNETIZER_LOOP, + false, + false, + SpecialEffects.NONE, + "LASER_ENGRAVER", + new Object[] { "PEP", aTextCableHull, aTextWireCoil, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.EMITTER, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_EV_LaserEngraver.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 594, - "basicmachine.laserengraver.tier.04", - "Advanced Precision Laser Engraver III", - 4, - "Don't look directly at the Laser", - GT_Recipe.GT_Recipe_Map.sLaserEngraverRecipes, - 4, - 1, - 32000, - 0, - 1, - "LaserEngraver2.png", - SoundResource.IC2_MACHINES_MAGNETIZER_LOOP, - false, - false, - SpecialEffects.NONE, - "LASER_ENGRAVER", - new Object[] { "PEP", aTextCableHull, aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.EMITTER, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 594, + "basicmachine.laserengraver.tier.04", + "Advanced Precision Laser Engraver III", + 4, + "Don't look directly at the Laser", + GT_Recipe.GT_Recipe_Map.sLaserEngraverRecipes, + 4, + 1, + 32000, + 0, + 1, + "LaserEngraver2.png", + SoundResource.IC2_MACHINES_MAGNETIZER_LOOP, + false, + false, + SpecialEffects.NONE, + "LASER_ENGRAVER", + new Object[] { "PEP", aTextCableHull, aTextWireCoil, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.EMITTER, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_IV_LaserEngraver.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 595, - "basicmachine.laserengraver.tier.05", - "Advanced Precision Laser Engraver IV", - 5, - "Don't look directly at the Laser", - GT_Recipe.GT_Recipe_Map.sLaserEngraverRecipes, - 4, - 1, - 40000, - 0, - 1, - "LaserEngraver2.png", - SoundResource.IC2_MACHINES_MAGNETIZER_LOOP, - false, - false, - SpecialEffects.NONE, - "LASER_ENGRAVER", - new Object[] { "PEP", aTextCableHull, aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.EMITTER, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 595, + "basicmachine.laserengraver.tier.05", + "Advanced Precision Laser Engraver IV", + 5, + "Don't look directly at the Laser", + GT_Recipe.GT_Recipe_Map.sLaserEngraverRecipes, + 4, + 1, + 40000, + 0, + 1, + "LaserEngraver2.png", + SoundResource.IC2_MACHINES_MAGNETIZER_LOOP, + false, + false, + SpecialEffects.NONE, + "LASER_ENGRAVER", + new Object[] { "PEP", aTextCableHull, aTextWireCoil, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.EMITTER, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_LV_Press.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 601, - "basicmachine.press.tier.01", - "Basic Forming Press", - 1, - "Imprinting Images into things", - GT_Recipe.GT_Recipe_Map.sPressRecipes, - 2, - 1, - 0, - 0, - 1, - "Press.png", - SoundResource.IC2_MACHINES_COMPRESSOR_OP, - false, - false, - SpecialEffects.NONE, - "PRESS", - new Object[] { aTextWirePump, aTextCableHull, aTextWirePump, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 601, + "basicmachine.press.tier.01", + "Basic Forming Press", + 1, + "Imprinting Images into things", + GT_Recipe.GT_Recipe_Map.sPressRecipes, + 2, + 1, + 0, + 0, + 1, + "Press.png", + SoundResource.IC2_MACHINES_COMPRESSOR_OP, + false, + false, + SpecialEffects.NONE, + "PRESS", + new Object[] { aTextWirePump, aTextCableHull, aTextWirePump, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_MV_Press.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 602, - "basicmachine.press.tier.02", - "Advanced Forming Press", - 2, - "Imprinting Images into things", - GT_Recipe.GT_Recipe_Map.sPressRecipes, - 2, - 1, - 0, - 0, - 1, - "Press.png", - SoundResource.IC2_MACHINES_COMPRESSOR_OP, - false, - false, - SpecialEffects.NONE, - "PRESS", - new Object[] { aTextWirePump, aTextCableHull, aTextWirePump, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 602, + "basicmachine.press.tier.02", + "Advanced Forming Press", + 2, + "Imprinting Images into things", + GT_Recipe.GT_Recipe_Map.sPressRecipes, + 2, + 1, + 0, + 0, + 1, + "Press.png", + SoundResource.IC2_MACHINES_COMPRESSOR_OP, + false, + false, + SpecialEffects.NONE, + "PRESS", + new Object[] { aTextWirePump, aTextCableHull, aTextWirePump, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_HV_Press.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 603, - "basicmachine.press.tier.03", - "Advanced Forming Press II", - 3, - "Imprinting Images into things", - GT_Recipe.GT_Recipe_Map.sPressRecipes, - 4, - 1, - 0, - 0, - 1, - "Press2.png", - SoundResource.IC2_MACHINES_COMPRESSOR_OP, - false, - false, - SpecialEffects.NONE, - "PRESS", - new Object[] { aTextWirePump, aTextCableHull, aTextWirePump, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 603, + "basicmachine.press.tier.03", + "Advanced Forming Press II", + 3, + "Imprinting Images into things", + GT_Recipe.GT_Recipe_Map.sPressRecipes, + 4, + 1, + 0, + 0, + 1, + "Press2.png", + SoundResource.IC2_MACHINES_COMPRESSOR_OP, + false, + false, + SpecialEffects.NONE, + "PRESS", + new Object[] { aTextWirePump, aTextCableHull, aTextWirePump, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_EV_Press.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 604, - "basicmachine.press.tier.04", - "Advanced Forming Press III", - 4, - "Imprinting Images into things", - GT_Recipe.GT_Recipe_Map.sPressRecipes, - 4, - 1, - 0, - 0, - 1, - "Press2.png", - SoundResource.IC2_MACHINES_COMPRESSOR_OP, - false, - false, - SpecialEffects.NONE, - "PRESS", - new Object[] { aTextWirePump, aTextCableHull, aTextWirePump, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 604, + "basicmachine.press.tier.04", + "Advanced Forming Press III", + 4, + "Imprinting Images into things", + GT_Recipe.GT_Recipe_Map.sPressRecipes, + 4, + 1, + 0, + 0, + 1, + "Press2.png", + SoundResource.IC2_MACHINES_COMPRESSOR_OP, + false, + false, + SpecialEffects.NONE, + "PRESS", + new Object[] { aTextWirePump, aTextCableHull, aTextWirePump, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_IV_Press.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 605, - "basicmachine.press.tier.05", - "Advanced Forming Press IV", - 5, - "Imprinting Images into things", - GT_Recipe.GT_Recipe_Map.sPressRecipes, - 6, - 1, - 0, - 0, - 1, - "Press3.png", - SoundResource.IC2_MACHINES_COMPRESSOR_OP, - false, - false, - SpecialEffects.NONE, - "PRESS", - new Object[] { aTextWirePump, aTextCableHull, aTextWirePump, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 605, + "basicmachine.press.tier.05", + "Advanced Forming Press IV", + 5, + "Imprinting Images into things", + GT_Recipe.GT_Recipe_Map.sPressRecipes, + 6, + 1, + 0, + 0, + 1, + "Press3.png", + SoundResource.IC2_MACHINES_COMPRESSOR_OP, + false, + false, + SpecialEffects.NONE, + "PRESS", + new Object[] { aTextWirePump, aTextCableHull, aTextWirePump, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_LV_Hammer.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 611, - "basicmachine.hammer.tier.01", - "Basic Forge Hammer", - 1, - "Stop, Hammertime!", - GT_Recipe.GT_Recipe_Map.sHammerRecipes, - 1, - 1, - 8000, - 6, - 3, - "Hammer.png", - SoundResource.RANDOM_ANVIL_USE, - false, - false, - SpecialEffects.MAIN_RANDOM_SPARKS, - "HAMMER", - new Object[] { aTextWirePump, aTextCableHull, "WAW", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'O', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE, 'A', - OreDictNames.craftingAnvil }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 611, + "basicmachine.hammer.tier.01", + "Basic Forge Hammer", + 1, + "Stop, Hammertime!", + GT_Recipe.GT_Recipe_Map.sHammerRecipes, + 1, + 1, + 8000, + 6, + 3, + "Hammer.png", + SoundResource.RANDOM_ANVIL_USE, + false, + false, + SpecialEffects.MAIN_RANDOM_SPARKS, + "HAMMER", + new Object[] { aTextWirePump, aTextCableHull, "WAW", 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'O', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE, 'A', OreDictNames.craftingAnvil }) + .getStackForm(1L)); ItemList.Machine_MV_Hammer.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 612, - "basicmachine.hammer.tier.02", - "Advanced Forge Hammer", - 2, - "Stop, Hammertime!", - GT_Recipe.GT_Recipe_Map.sHammerRecipes, - 1, - 1, - 16000, - 6, - 3, - "Hammer.png", - SoundResource.RANDOM_ANVIL_USE, - false, - false, - SpecialEffects.MAIN_RANDOM_SPARKS, - "HAMMER", - new Object[] { aTextWirePump, aTextCableHull, "WAW", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'O', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE, 'A', - OreDictNames.craftingAnvil }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 612, + "basicmachine.hammer.tier.02", + "Advanced Forge Hammer", + 2, + "Stop, Hammertime!", + GT_Recipe.GT_Recipe_Map.sHammerRecipes, + 1, + 1, + 16000, + 6, + 3, + "Hammer.png", + SoundResource.RANDOM_ANVIL_USE, + false, + false, + SpecialEffects.MAIN_RANDOM_SPARKS, + "HAMMER", + new Object[] { aTextWirePump, aTextCableHull, "WAW", 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'O', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE, 'A', OreDictNames.craftingAnvil }) + .getStackForm(1L)); ItemList.Machine_HV_Hammer.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 613, - "basicmachine.hammer.tier.03", - "Advanced Forge Hammer II", - 3, - "Stop, Hammertime!", - GT_Recipe.GT_Recipe_Map.sHammerRecipes, - 1, - 1, - 32000, - 6, - 3, - "Hammer.png", - SoundResource.RANDOM_ANVIL_USE, - false, - false, - SpecialEffects.MAIN_RANDOM_SPARKS, - "HAMMER", - new Object[] { aTextWirePump, aTextCableHull, "WAW", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'O', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE, 'A', - OreDictNames.craftingAnvil }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 613, + "basicmachine.hammer.tier.03", + "Advanced Forge Hammer II", + 3, + "Stop, Hammertime!", + GT_Recipe.GT_Recipe_Map.sHammerRecipes, + 1, + 1, + 32000, + 6, + 3, + "Hammer.png", + SoundResource.RANDOM_ANVIL_USE, + false, + false, + SpecialEffects.MAIN_RANDOM_SPARKS, + "HAMMER", + new Object[] { aTextWirePump, aTextCableHull, "WAW", 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'O', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE, 'A', OreDictNames.craftingAnvil }) + .getStackForm(1L)); ItemList.Machine_EV_Hammer.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 614, - "basicmachine.hammer.tier.04", - "Advanced Forge Hammer III", - 4, - "Stop, Hammertime!", - GT_Recipe.GT_Recipe_Map.sHammerRecipes, - 1, - 1, - 64000, - 6, - 3, - "Hammer.png", - SoundResource.RANDOM_ANVIL_USE, - false, - false, - SpecialEffects.MAIN_RANDOM_SPARKS, - "HAMMER", - new Object[] { aTextWirePump, aTextCableHull, "WAW", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'O', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE, 'A', - OreDictNames.craftingAnvil }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 614, + "basicmachine.hammer.tier.04", + "Advanced Forge Hammer III", + 4, + "Stop, Hammertime!", + GT_Recipe.GT_Recipe_Map.sHammerRecipes, + 1, + 1, + 64000, + 6, + 3, + "Hammer.png", + SoundResource.RANDOM_ANVIL_USE, + false, + false, + SpecialEffects.MAIN_RANDOM_SPARKS, + "HAMMER", + new Object[] { aTextWirePump, aTextCableHull, "WAW", 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'O', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE, 'A', OreDictNames.craftingAnvil }) + .getStackForm(1L)); ItemList.Machine_IV_Hammer.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 615, - "basicmachine.hammer.tier.05", - "Advanced Forge Hammer IV", - 5, - "Stop, Hammertime!", - GT_Recipe.GT_Recipe_Map.sHammerRecipes, - 1, - 1, - 96000, - 6, - 3, - "Hammer.png", - SoundResource.RANDOM_ANVIL_USE, - false, - false, - SpecialEffects.MAIN_RANDOM_SPARKS, - "HAMMER", - new Object[] { aTextWirePump, aTextCableHull, "WAW", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'O', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE, 'A', - OreDictNames.craftingAnvil }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 615, + "basicmachine.hammer.tier.05", + "Advanced Forge Hammer IV", + 5, + "Stop, Hammertime!", + GT_Recipe.GT_Recipe_Map.sHammerRecipes, + 1, + 1, + 96000, + 6, + 3, + "Hammer.png", + SoundResource.RANDOM_ANVIL_USE, + false, + false, + SpecialEffects.MAIN_RANDOM_SPARKS, + "HAMMER", + new Object[] { aTextWirePump, aTextCableHull, "WAW", 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'O', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE, 'A', OreDictNames.craftingAnvil }) + .getStackForm(1L)); ItemList.Machine_LV_FluidHeater.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 621, - "basicmachine.fluidheater.tier.01", - "Basic Fluid Heater", - 1, - "Heating up your Fluids", - GT_Recipe.GT_Recipe_Map.sFluidHeaterRecipes, - 1, - 0, - 8000, - 0, - 1, - "FluidHeater.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "FLUID_HEATER", - new Object[] { "OGO", aTextPlateMotor, aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'O', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 621, + "basicmachine.fluidheater.tier.01", + "Basic Fluid Heater", + 1, + "Heating up your Fluids", + GT_Recipe.GT_Recipe_Map.sFluidHeaterRecipes, + 1, + 0, + 8000, + 0, + 1, + "FluidHeater.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "FLUID_HEATER", + new Object[] { "OGO", aTextPlateMotor, aTextWireCoil, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'O', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_MV_FluidHeater.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 622, - "basicmachine.fluidheater.tier.02", - "Advanced Fluid Heater", - 2, - "Heating up your Fluids", - GT_Recipe.GT_Recipe_Map.sFluidHeaterRecipes, - 1, - 0, - 8000, - 0, - 1, - "FluidHeater.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "FLUID_HEATER", - new Object[] { "OGO", aTextPlateMotor, aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'O', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 622, + "basicmachine.fluidheater.tier.02", + "Advanced Fluid Heater", + 2, + "Heating up your Fluids", + GT_Recipe.GT_Recipe_Map.sFluidHeaterRecipes, + 1, + 0, + 8000, + 0, + 1, + "FluidHeater.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "FLUID_HEATER", + new Object[] { "OGO", aTextPlateMotor, aTextWireCoil, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'O', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_HV_FluidHeater.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 623, - "basicmachine.fluidheater.tier.03", - "Advanced Fluid Heater II", - 3, - "Heating up your Fluids", - GT_Recipe.GT_Recipe_Map.sFluidHeaterRecipes, - 1, - 0, - 8000, - 0, - 1, - "FluidHeater.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "FLUID_HEATER", - new Object[] { "OGO", aTextPlateMotor, aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'O', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 623, + "basicmachine.fluidheater.tier.03", + "Advanced Fluid Heater II", + 3, + "Heating up your Fluids", + GT_Recipe.GT_Recipe_Map.sFluidHeaterRecipes, + 1, + 0, + 8000, + 0, + 1, + "FluidHeater.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "FLUID_HEATER", + new Object[] { "OGO", aTextPlateMotor, aTextWireCoil, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'O', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_EV_FluidHeater.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 624, - "basicmachine.fluidheater.tier.04", - "Advanced Fluid Heater III", - 4, - "Heating up your Fluids", - GT_Recipe.GT_Recipe_Map.sFluidHeaterRecipes, - 1, - 0, - 8000, - 0, - 1, - "FluidHeater.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "FLUID_HEATER", - new Object[] { "OGO", aTextPlateMotor, aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'O', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 624, + "basicmachine.fluidheater.tier.04", + "Advanced Fluid Heater III", + 4, + "Heating up your Fluids", + GT_Recipe.GT_Recipe_Map.sFluidHeaterRecipes, + 1, + 0, + 8000, + 0, + 1, + "FluidHeater.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "FLUID_HEATER", + new Object[] { "OGO", aTextPlateMotor, aTextWireCoil, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'O', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_IV_FluidHeater.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 625, - "basicmachine.fluidheater.tier.05", - "Advanced Fluid Heater IV", - 5, - "Heating up your Fluids", - GT_Recipe.GT_Recipe_Map.sFluidHeaterRecipes, - 1, - 0, - 8000, - 0, - 1, - "FluidHeater.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "FLUID_HEATER", - new Object[] { "OGO", aTextPlateMotor, aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'O', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 625, + "basicmachine.fluidheater.tier.05", + "Advanced Fluid Heater IV", + 5, + "Heating up your Fluids", + GT_Recipe.GT_Recipe_Map.sFluidHeaterRecipes, + 1, + 0, + 8000, + 0, + 1, + "FluidHeater.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "FLUID_HEATER", + new Object[] { "OGO", aTextPlateMotor, aTextWireCoil, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'O', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING_DOUBLE, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'G', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.GLASS }).getStackForm(1L)); ItemList.Machine_LV_Slicer.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 631, - "basicmachine.slicer.tier.01", - "Basic Slicing Machine", - 1, - "Slice of Life", - GT_Recipe.GT_Recipe_Map.sSlicerRecipes, - 2, - 1, - 0, - 0, - 1, - "Slicer.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "SLICER", - new Object[] { aTextWireCoil, "PMV", aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'V', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 631, + "basicmachine.slicer.tier.01", + "Basic Slicing Machine", + 1, + "Slice of Life", + GT_Recipe.GT_Recipe_Map.sSlicerRecipes, + 2, + 1, + 0, + 0, + 1, + "Slicer.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "SLICER", + new Object[] { aTextWireCoil, "PMV", aTextWireCoil, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'V', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_MV_Slicer.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 632, - "basicmachine.slicer.tier.02", - "Advanced Slicing Machine", - 2, - "Slice of Life", - GT_Recipe.GT_Recipe_Map.sSlicerRecipes, - 2, - 1, - 0, - 0, - 1, - "Slicer.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "SLICER", - new Object[] { aTextWireCoil, "PMV", aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'V', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 632, + "basicmachine.slicer.tier.02", + "Advanced Slicing Machine", + 2, + "Slice of Life", + GT_Recipe.GT_Recipe_Map.sSlicerRecipes, + 2, + 1, + 0, + 0, + 1, + "Slicer.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "SLICER", + new Object[] { aTextWireCoil, "PMV", aTextWireCoil, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'V', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_HV_Slicer.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 633, - "basicmachine.slicer.tier.03", - "Advanced Slicing Machine II", - 3, - "Slice of Life", - GT_Recipe.GT_Recipe_Map.sSlicerRecipes, - 2, - 1, - 0, - 0, - 1, - "Slicer.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "SLICER", - new Object[] { aTextWireCoil, "PMV", aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'V', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 633, + "basicmachine.slicer.tier.03", + "Advanced Slicing Machine II", + 3, + "Slice of Life", + GT_Recipe.GT_Recipe_Map.sSlicerRecipes, + 2, + 1, + 0, + 0, + 1, + "Slicer.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "SLICER", + new Object[] { aTextWireCoil, "PMV", aTextWireCoil, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'V', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_EV_Slicer.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 634, - "basicmachine.slicer.tier.04", - "Advanced Slicing Machine III", - 4, - "Slice of Life", - GT_Recipe.GT_Recipe_Map.sSlicerRecipes, - 2, - 1, - 0, - 0, - 1, - "Slicer.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "SLICER", - new Object[] { aTextWireCoil, "PMV", aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'V', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 634, + "basicmachine.slicer.tier.04", + "Advanced Slicing Machine III", + 4, + "Slice of Life", + GT_Recipe.GT_Recipe_Map.sSlicerRecipes, + 2, + 1, + 0, + 0, + 1, + "Slicer.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "SLICER", + new Object[] { aTextWireCoil, "PMV", aTextWireCoil, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'V', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_IV_Slicer.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 635, - "basicmachine.slicer.tier.05", - "Advanced Slicing Machine IV", - 5, - "Slice of Life", - GT_Recipe.GT_Recipe_Map.sSlicerRecipes, - 2, - 1, - 0, - 0, - 1, - "Slicer.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "SLICER", - new Object[] { aTextWireCoil, "PMV", aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'V', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 635, + "basicmachine.slicer.tier.05", + "Advanced Slicing Machine IV", + 5, + "Slice of Life", + GT_Recipe.GT_Recipe_Map.sSlicerRecipes, + 2, + 1, + 0, + 0, + 1, + "Slicer.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "SLICER", + new Object[] { aTextWireCoil, "PMV", aTextWireCoil, 'M', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'V', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_LV_Sifter.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 641, - "basicmachine.sifter.tier.01", - "Basic Sifting Machine", - 1, - "Stay calm and keep sifting", - GT_Recipe.GT_Recipe_Map.sSifterRecipes, - 1, - 9, - 1000, - 2, - 5, - "Sifter.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "SIFTER", - new Object[] { "WFW", aTextPlateMotor, "CFC", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'F', OreDictNames.craftingFilter, - 'C', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 641, + "basicmachine.sifter.tier.01", + "Basic Sifting Machine", + 1, + "Stay calm and keep sifting", + GT_Recipe.GT_Recipe_Map.sSifterRecipes, + 1, + 9, + 1000, + 2, + 5, + "Sifter.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "SIFTER", + new Object[] { "WFW", aTextPlateMotor, "CFC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'F', OreDictNames.craftingFilter, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_MV_Sifter.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 642, - "basicmachine.sifter.tier.02", - "Advanced Sifting Machine", - 2, - "Stay calm and keep sifting", - GT_Recipe.GT_Recipe_Map.sSifterRecipes, - 1, - 9, - 2000, - 2, - 5, - "Sifter.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "SIFTER", - new Object[] { "WFW", aTextPlateMotor, "CFC", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'F', OreDictNames.craftingFilter, - 'C', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 642, + "basicmachine.sifter.tier.02", + "Advanced Sifting Machine", + 2, + "Stay calm and keep sifting", + GT_Recipe.GT_Recipe_Map.sSifterRecipes, + 1, + 9, + 2000, + 2, + 5, + "Sifter.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "SIFTER", + new Object[] { "WFW", aTextPlateMotor, "CFC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'F', OreDictNames.craftingFilter, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_HV_Sifter.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 643, - "basicmachine.sifter.tier.03", - "Advanced Sifting Machine II", - 3, - "Stay calm and keep sifting", - GT_Recipe.GT_Recipe_Map.sSifterRecipes, - 1, - 9, - 4000, - 2, - 5, - "Sifter.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "SIFTER", - new Object[] { "WFW", aTextPlateMotor, "CFC", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'F', OreDictNames.craftingFilter, - 'C', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 643, + "basicmachine.sifter.tier.03", + "Advanced Sifting Machine II", + 3, + "Stay calm and keep sifting", + GT_Recipe.GT_Recipe_Map.sSifterRecipes, + 1, + 9, + 4000, + 2, + 5, + "Sifter.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "SIFTER", + new Object[] { "WFW", aTextPlateMotor, "CFC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'F', OreDictNames.craftingFilter, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_EV_Sifter.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 644, - "basicmachine.sifter.tier.04", - "Advanced Sifting Machine III", - 4, - "Stay calm and keep sifting", - GT_Recipe.GT_Recipe_Map.sSifterRecipes, - 1, - 9, - 8000, - 2, - 5, - "Sifter.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "SIFTER", - new Object[] { "WFW", aTextPlateMotor, "CFC", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'F', OreDictNames.craftingFilter, - 'C', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 644, + "basicmachine.sifter.tier.04", + "Advanced Sifting Machine III", + 4, + "Stay calm and keep sifting", + GT_Recipe.GT_Recipe_Map.sSifterRecipes, + 1, + 9, + 8000, + 2, + 5, + "Sifter.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "SIFTER", + new Object[] { "WFW", aTextPlateMotor, "CFC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'F', OreDictNames.craftingFilter, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_IV_Sifter.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 645, - "basicmachine.sifter.tier.05", - "Advanced Sifting Machine IV", - 5, - "Stay calm and keep sifting", - GT_Recipe.GT_Recipe_Map.sSifterRecipes, - 1, - 9, - 16000, - 2, - 5, - "Sifter.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "SIFTER", - new Object[] { "WFW", aTextPlateMotor, "CFC", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'F', OreDictNames.craftingFilter, - 'C', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 645, + "basicmachine.sifter.tier.05", + "Advanced Sifting Machine IV", + 5, + "Stay calm and keep sifting", + GT_Recipe.GT_Recipe_Map.sSifterRecipes, + 1, + 9, + 16000, + 2, + 5, + "Sifter.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "SIFTER", + new Object[] { "WFW", aTextPlateMotor, "CFC", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PISTON, 'F', OreDictNames.craftingFilter, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE }).getStackForm(1L)); ItemList.Machine_LV_ArcFurnace.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 651, - "basicmachine.arcfurnace.tier.01", - "Basic Arc Furnace", - 1, - "", - GT_Recipe.GT_Recipe_Map.sArcFurnaceRecipes, - 1, - 4, - 16000, - 0, - 1, - "ArcFurnace.png", - SoundResource.IC2_MACHINES_INDUCTION_LOOP, - false, - false, - SpecialEffects.NONE, - "ARC_FURNACE", - new Object[] { "WGW", aTextCableHull, aTextPlate, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PLATE, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE4, 'G', - OrePrefixes.cell.get(Materials.Graphite) }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 651, + "basicmachine.arcfurnace.tier.01", + "Basic Arc Furnace", + 1, + "", + GT_Recipe.GT_Recipe_Map.sArcFurnaceRecipes, + 1, + 4, + 16000, + 0, + 1, + "ArcFurnace.png", + SoundResource.IC2_MACHINES_INDUCTION_LOOP, + false, + false, + SpecialEffects.NONE, + "ARC_FURNACE", + new Object[] { "WGW", aTextCableHull, aTextPlate, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, + 'P', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PLATE, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE4, 'G', OrePrefixes.cell.get(Materials.Graphite) }) + .getStackForm(1L)); ItemList.Machine_MV_ArcFurnace.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 652, - "basicmachine.arcfurnace.tier.02", - "Advanced Arc Furnace", - 2, - "", - GT_Recipe.GT_Recipe_Map.sArcFurnaceRecipes, - 1, - 4, - 24000, - 0, - 1, - "ArcFurnace.png", - SoundResource.IC2_MACHINES_INDUCTION_LOOP, - false, - false, - SpecialEffects.NONE, - "ARC_FURNACE", - new Object[] { "WGW", aTextCableHull, aTextPlate, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PLATE, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE4, 'G', - OrePrefixes.cell.get(Materials.Graphite) }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 652, + "basicmachine.arcfurnace.tier.02", + "Advanced Arc Furnace", + 2, + "", + GT_Recipe.GT_Recipe_Map.sArcFurnaceRecipes, + 1, + 4, + 24000, + 0, + 1, + "ArcFurnace.png", + SoundResource.IC2_MACHINES_INDUCTION_LOOP, + false, + false, + SpecialEffects.NONE, + "ARC_FURNACE", + new Object[] { "WGW", aTextCableHull, aTextPlate, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, + 'P', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PLATE, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE4, 'G', OrePrefixes.cell.get(Materials.Graphite) }) + .getStackForm(1L)); ItemList.Machine_HV_ArcFurnace.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 653, - "basicmachine.arcfurnace.tier.03", - "Advanced Arc Furnace II", - 3, - "", - GT_Recipe.GT_Recipe_Map.sArcFurnaceRecipes, - 1, - 4, - 32000, - 0, - 1, - "ArcFurnace.png", - SoundResource.IC2_MACHINES_INDUCTION_LOOP, - false, - false, - SpecialEffects.NONE, - "ARC_FURNACE", - new Object[] { "WGW", aTextCableHull, aTextPlate, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PLATE, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE4, 'G', - OrePrefixes.cell.get(Materials.Graphite) }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 653, + "basicmachine.arcfurnace.tier.03", + "Advanced Arc Furnace II", + 3, + "", + GT_Recipe.GT_Recipe_Map.sArcFurnaceRecipes, + 1, + 4, + 32000, + 0, + 1, + "ArcFurnace.png", + SoundResource.IC2_MACHINES_INDUCTION_LOOP, + false, + false, + SpecialEffects.NONE, + "ARC_FURNACE", + new Object[] { "WGW", aTextCableHull, aTextPlate, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, + 'P', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PLATE, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE4, 'G', OrePrefixes.cell.get(Materials.Graphite) }) + .getStackForm(1L)); ItemList.Machine_EV_ArcFurnace.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 654, - "basicmachine.arcfurnace.tier.04", - "Advanced Arc Furnace III", - 4, - "", - GT_Recipe.GT_Recipe_Map.sArcFurnaceRecipes, - 1, - 9, - 48000, - 0, - 1, - "ArcFurnace.png", - SoundResource.IC2_MACHINES_INDUCTION_LOOP, - false, - false, - SpecialEffects.NONE, - "ARC_FURNACE", - new Object[] { "WGW", aTextCableHull, aTextPlate, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PLATE, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE4, 'G', - OrePrefixes.cell.get(Materials.Graphite) }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 654, + "basicmachine.arcfurnace.tier.04", + "Advanced Arc Furnace III", + 4, + "", + GT_Recipe.GT_Recipe_Map.sArcFurnaceRecipes, + 1, + 9, + 48000, + 0, + 1, + "ArcFurnace.png", + SoundResource.IC2_MACHINES_INDUCTION_LOOP, + false, + false, + SpecialEffects.NONE, + "ARC_FURNACE", + new Object[] { "WGW", aTextCableHull, aTextPlate, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, + 'P', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PLATE, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE4, 'G', OrePrefixes.cell.get(Materials.Graphite) }) + .getStackForm(1L)); ItemList.Machine_IV_ArcFurnace.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 655, - "basicmachine.arcfurnace.tier.05", - "Advanced Arc Furnace IV", - 5, - "", - GT_Recipe.GT_Recipe_Map.sArcFurnaceRecipes, - 1, - 9, - 64000, - 0, - 1, - "ArcFurnace.png", - SoundResource.IC2_MACHINES_INDUCTION_LOOP, - false, - false, - SpecialEffects.NONE, - "ARC_FURNACE", - new Object[] { "WGW", aTextCableHull, aTextPlate, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PLATE, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE4, 'G', - OrePrefixes.cell.get(Materials.Graphite) }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 655, + "basicmachine.arcfurnace.tier.05", + "Advanced Arc Furnace IV", + 5, + "", + GT_Recipe.GT_Recipe_Map.sArcFurnaceRecipes, + 1, + 9, + 64000, + 0, + 1, + "ArcFurnace.png", + SoundResource.IC2_MACHINES_INDUCTION_LOOP, + false, + false, + SpecialEffects.NONE, + "ARC_FURNACE", + new Object[] { "WGW", aTextCableHull, aTextPlate, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, + 'P', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PLATE, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE4, 'G', OrePrefixes.cell.get(Materials.Graphite) }) + .getStackForm(1L)); ItemList.Machine_LV_PlasmaArcFurnace.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 661, - "basicmachine.plasmaarcfurnace.tier.01", - "Basic Plasma Arc Furnace", - 1, - "", - GT_Recipe.GT_Recipe_Map.sPlasmaArcFurnaceRecipes, - 1, - 4, - 1000, - 0, - 1, - "PlasmaArcFurnace.png", - SoundResource.IC2_MACHINES_INDUCTION_LOOP, - false, - false, - SpecialEffects.NONE, - "PLASMA_ARC_FURNACE", - new Object[] { "WGW", aTextCableHull, "TPT", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PLATE, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.BETTER_CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE4, 'T', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'G', - OrePrefixes.cell.get(Materials.Graphite) }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 661, + "basicmachine.plasmaarcfurnace.tier.01", + "Basic Plasma Arc Furnace", + 1, + "", + GT_Recipe.GT_Recipe_Map.sPlasmaArcFurnaceRecipes, + 1, + 4, + 1000, + 0, + 1, + "PlasmaArcFurnace.png", + SoundResource.IC2_MACHINES_INDUCTION_LOOP, + false, + false, + SpecialEffects.NONE, + "PLASMA_ARC_FURNACE", + new Object[] { "WGW", aTextCableHull, "TPT", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PLATE, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.BETTER_CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE4, 'T', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'G', OrePrefixes.cell.get(Materials.Graphite) }) + .getStackForm(1L)); ItemList.Machine_MV_PlasmaArcFurnace.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 662, - "basicmachine.plasmaarcfurnace.tier.02", - "Advanced Plasma Arc Furnace", - 2, - "", - GT_Recipe.GT_Recipe_Map.sPlasmaArcFurnaceRecipes, - 1, - 4, - 2000, - 0, - 1, - "PlasmaArcFurnace.png", - SoundResource.IC2_MACHINES_INDUCTION_LOOP, - false, - false, - SpecialEffects.NONE, - "PLASMA_ARC_FURNACE", - new Object[] { "WGW", aTextCableHull, "TPT", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PLATE, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.BETTER_CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE4, 'T', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'G', - OrePrefixes.cell.get(Materials.Graphite) }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 662, + "basicmachine.plasmaarcfurnace.tier.02", + "Advanced Plasma Arc Furnace", + 2, + "", + GT_Recipe.GT_Recipe_Map.sPlasmaArcFurnaceRecipes, + 1, + 4, + 2000, + 0, + 1, + "PlasmaArcFurnace.png", + SoundResource.IC2_MACHINES_INDUCTION_LOOP, + false, + false, + SpecialEffects.NONE, + "PLASMA_ARC_FURNACE", + new Object[] { "WGW", aTextCableHull, "TPT", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PLATE, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.BETTER_CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE4, 'T', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'G', OrePrefixes.cell.get(Materials.Graphite) }) + .getStackForm(1L)); ItemList.Machine_HV_PlasmaArcFurnace.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 663, - "basicmachine.plasmaarcfurnace.tier.03", - "Advanced Plasma Arc Furnace II", - 3, - "", - GT_Recipe.GT_Recipe_Map.sPlasmaArcFurnaceRecipes, - 1, - 4, - 4000, - 0, - 1, - "PlasmaArcFurnace.png", - SoundResource.IC2_MACHINES_INDUCTION_LOOP, - false, - false, - SpecialEffects.NONE, - "PLASMA_ARC_FURNACE", - new Object[] { "WGW", aTextCableHull, "TPT", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PLATE, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.BETTER_CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE4, 'T', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'G', - OrePrefixes.cell.get(Materials.Graphite) }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 663, + "basicmachine.plasmaarcfurnace.tier.03", + "Advanced Plasma Arc Furnace II", + 3, + "", + GT_Recipe.GT_Recipe_Map.sPlasmaArcFurnaceRecipes, + 1, + 4, + 4000, + 0, + 1, + "PlasmaArcFurnace.png", + SoundResource.IC2_MACHINES_INDUCTION_LOOP, + false, + false, + SpecialEffects.NONE, + "PLASMA_ARC_FURNACE", + new Object[] { "WGW", aTextCableHull, "TPT", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PLATE, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.BETTER_CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE4, 'T', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'G', OrePrefixes.cell.get(Materials.Graphite) }) + .getStackForm(1L)); ItemList.Machine_EV_PlasmaArcFurnace.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 664, - "basicmachine.plasmaarcfurnace.tier.04", - "Advanced Plasma Arc Furnace III", - 4, - "", - GT_Recipe.GT_Recipe_Map.sPlasmaArcFurnaceRecipes, - 1, - 9, - 8000, - 0, - 1, - "PlasmaArcFurnace.png", - SoundResource.IC2_MACHINES_INDUCTION_LOOP, - false, - false, - SpecialEffects.NONE, - "PLASMA_ARC_FURNACE", - new Object[] { "WGW", aTextCableHull, "TPT", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PLATE, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.BETTER_CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE4, 'T', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'G', - OrePrefixes.cell.get(Materials.Graphite) }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 664, + "basicmachine.plasmaarcfurnace.tier.04", + "Advanced Plasma Arc Furnace III", + 4, + "", + GT_Recipe.GT_Recipe_Map.sPlasmaArcFurnaceRecipes, + 1, + 9, + 8000, + 0, + 1, + "PlasmaArcFurnace.png", + SoundResource.IC2_MACHINES_INDUCTION_LOOP, + false, + false, + SpecialEffects.NONE, + "PLASMA_ARC_FURNACE", + new Object[] { "WGW", aTextCableHull, "TPT", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PLATE, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.BETTER_CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE4, 'T', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'G', OrePrefixes.cell.get(Materials.Graphite) }) + .getStackForm(1L)); ItemList.Machine_IV_PlasmaArcFurnace.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 665, - "basicmachine.plasmaarcfurnace.tier.05", - "Advanced Plasma Arc Furnace IV", - 5, - "", - GT_Recipe.GT_Recipe_Map.sPlasmaArcFurnaceRecipes, - 1, - 9, - 16000, - 0, - 1, - "PlasmaArcFurnace.png", - SoundResource.IC2_MACHINES_INDUCTION_LOOP, - false, - false, - SpecialEffects.NONE, - "PLASMA_ARC_FURNACE", - new Object[] { "WGW", aTextCableHull, "TPT", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PLATE, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.BETTER_CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE4, 'T', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'G', - OrePrefixes.cell.get(Materials.Graphite) }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 665, + "basicmachine.plasmaarcfurnace.tier.05", + "Advanced Plasma Arc Furnace IV", + 5, + "", + GT_Recipe.GT_Recipe_Map.sPlasmaArcFurnaceRecipes, + 1, + 9, + 16000, + 0, + 1, + "PlasmaArcFurnace.png", + SoundResource.IC2_MACHINES_INDUCTION_LOOP, + false, + false, + SpecialEffects.NONE, + "PLASMA_ARC_FURNACE", + new Object[] { "WGW", aTextCableHull, "TPT", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'P', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PLATE, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.BETTER_CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE4, 'T', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.PUMP, 'G', OrePrefixes.cell.get(Materials.Graphite) }) + .getStackForm(1L)); ItemList.Machine_LV_Oven.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 671, - "basicmachine.e_oven.tier.01", - "Basic Electric Oven", - 1, - "Just a Furnace with a different Design", - GT_Recipe.GT_Recipe_Map.sFurnaceRecipes, - 1, - 1, - 0, - 0, - 1, - "E_Oven.png", - SoundResource.IC2_MACHINES_ELECTROFURNACE_LOOP, - false, - false, - SpecialEffects.NONE, - "ELECTRIC_OVEN", - new Object[] { "CEC", aTextCableHull, "WEW", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING }).setProgressBarTextureName( - "E_Oven") - .getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 671, + "basicmachine.e_oven.tier.01", + "Basic Electric Oven", + 1, + "Just a Furnace with a different Design", + GT_Recipe.GT_Recipe_Map.sFurnaceRecipes, + 1, + 1, + 0, + 0, + 1, + "E_Oven.png", + SoundResource.IC2_MACHINES_ELECTROFURNACE_LOOP, + false, + false, + SpecialEffects.NONE, + "ELECTRIC_OVEN", + new Object[] { "CEC", aTextCableHull, "WEW", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING }).setProgressBarTextureName("E_Oven") + .getStackForm(1L)); ItemList.Machine_MV_Oven.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 672, - "basicmachine.e_oven.tier.02", - "Advanced Electric Oven", - 2, - "Just a Furnace with a different Design", - GT_Recipe.GT_Recipe_Map.sFurnaceRecipes, - 1, - 1, - 0, - 0, - 1, - "E_Oven.png", - SoundResource.IC2_MACHINES_ELECTROFURNACE_LOOP, - false, - false, - SpecialEffects.NONE, - "ELECTRIC_OVEN", - new Object[] { "CEC", aTextCableHull, "WEW", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING }).setProgressBarTextureName( - "E_Oven") - .getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 672, + "basicmachine.e_oven.tier.02", + "Advanced Electric Oven", + 2, + "Just a Furnace with a different Design", + GT_Recipe.GT_Recipe_Map.sFurnaceRecipes, + 1, + 1, + 0, + 0, + 1, + "E_Oven.png", + SoundResource.IC2_MACHINES_ELECTROFURNACE_LOOP, + false, + false, + SpecialEffects.NONE, + "ELECTRIC_OVEN", + new Object[] { "CEC", aTextCableHull, "WEW", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING }).setProgressBarTextureName("E_Oven") + .getStackForm(1L)); ItemList.Machine_HV_Oven.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 673, - "basicmachine.e_oven.tier.03", - "Advanced Electric Oven II", - 3, - "Just a Furnace with a different Design", - GT_Recipe.GT_Recipe_Map.sFurnaceRecipes, - 1, - 1, - 0, - 0, - 1, - "E_Oven.png", - SoundResource.IC2_MACHINES_ELECTROFURNACE_LOOP, - false, - false, - SpecialEffects.NONE, - "ELECTRIC_OVEN", - new Object[] { "CEC", aTextCableHull, "WEW", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING }).setProgressBarTextureName( - "E_Oven") - .getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 673, + "basicmachine.e_oven.tier.03", + "Advanced Electric Oven II", + 3, + "Just a Furnace with a different Design", + GT_Recipe.GT_Recipe_Map.sFurnaceRecipes, + 1, + 1, + 0, + 0, + 1, + "E_Oven.png", + SoundResource.IC2_MACHINES_ELECTROFURNACE_LOOP, + false, + false, + SpecialEffects.NONE, + "ELECTRIC_OVEN", + new Object[] { "CEC", aTextCableHull, "WEW", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING }).setProgressBarTextureName("E_Oven") + .getStackForm(1L)); ItemList.Machine_EV_Oven.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 674, - "basicmachine.e_oven.tier.04", - "Advanced Electric Oven III", - 4, - "Just a Furnace with a different Design", - GT_Recipe.GT_Recipe_Map.sFurnaceRecipes, - 1, - 1, - 0, - 0, - 1, - "E_Oven.png", - SoundResource.IC2_MACHINES_ELECTROFURNACE_LOOP, - false, - false, - SpecialEffects.NONE, - "ELECTRIC_OVEN", - new Object[] { "CEC", aTextCableHull, "WEW", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING }).setProgressBarTextureName( - "E_Oven") - .getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 674, + "basicmachine.e_oven.tier.04", + "Advanced Electric Oven III", + 4, + "Just a Furnace with a different Design", + GT_Recipe.GT_Recipe_Map.sFurnaceRecipes, + 1, + 1, + 0, + 0, + 1, + "E_Oven.png", + SoundResource.IC2_MACHINES_ELECTROFURNACE_LOOP, + false, + false, + SpecialEffects.NONE, + "ELECTRIC_OVEN", + new Object[] { "CEC", aTextCableHull, "WEW", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING }).setProgressBarTextureName("E_Oven") + .getStackForm(1L)); ItemList.Machine_IV_Oven.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 675, - "basicmachine.e_oven.tier.05", - "Advanced Electric Oven IV", - 5, - "Just a Furnace with a different Design", - GT_Recipe.GT_Recipe_Map.sFurnaceRecipes, - 1, - 1, - 0, - 0, - 1, - "E_Oven.png", - SoundResource.IC2_MACHINES_ELECTROFURNACE_LOOP, - false, - false, - SpecialEffects.NONE, - "ELECTRIC_OVEN", - new Object[] { "CEC", aTextCableHull, "WEW", 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING }).setProgressBarTextureName( - "E_Oven") - .getStackForm(1L)); - - ItemList.Machine_LV_Miner.set( - new GT_MetaTileEntity_Miner(679, "basicmachine.miner.tier.01", "Basic Miner", 1).getStackForm(1L)); - ItemList.Machine_MV_Miner.set( - new GT_MetaTileEntity_Miner(680, "basicmachine.miner.tier.02", "Good Miner", 2).getStackForm(1L)); - ItemList.Machine_HV_Miner.set( - new GT_MetaTileEntity_Miner(681, "basicmachine.miner.tier.03", "Advanced Miner", 3).getStackForm(1L)); - - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_LV_Miner.get(1L), - bitsd, - new Object[] { "EEE", aTextWireHull, "CSC", 'M', ItemList.Hull_LV, 'E', ItemList.Electric_Motor_LV, 'C', - OrePrefixes.circuit.get(Materials.Basic), 'W', OrePrefixes.cableGt01.get(Materials.Tin), 'S', - ItemList.Sensor_LV }); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_MV_Miner.get(1L), - bitsd, - new Object[] { "PEP", aTextWireHull, "CSC", 'M', ItemList.Hull_MV, 'E', ItemList.Electric_Motor_MV, 'P', - ItemList.Electric_Piston_MV, 'C', OrePrefixes.circuit.get(Materials.Good), 'W', - OrePrefixes.cableGt02.get(Materials.Copper), 'S', ItemList.Sensor_MV }); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_HV_Miner.get(1L), - bitsd, - new Object[] { "RPR", aTextWireHull, "CSC", 'M', ItemList.Hull_HV, 'E', ItemList.Electric_Motor_HV, 'P', - ItemList.Electric_Piston_HV, 'R', ItemList.Robot_Arm_HV, 'C', - OrePrefixes.circuit.get(Materials.Advanced), 'W', OrePrefixes.cableGt04.get(Materials.Gold), - 'S', ItemList.Sensor_HV }); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 675, + "basicmachine.e_oven.tier.05", + "Advanced Electric Oven IV", + 5, + "Just a Furnace with a different Design", + GT_Recipe.GT_Recipe_Map.sFurnaceRecipes, + 1, + 1, + 0, + 0, + 1, + "E_Oven.png", + SoundResource.IC2_MACHINES_ELECTROFURNACE_LOOP, + false, + false, + SpecialEffects.NONE, + "ELECTRIC_OVEN", + new Object[] { "CEC", aTextCableHull, "WEW", 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.COIL_HEATING }).setProgressBarTextureName("E_Oven") + .getStackForm(1L)); + + ItemList.Machine_LV_Miner + .set(new GT_MetaTileEntity_Miner(679, "basicmachine.miner.tier.01", "Basic Miner", 1).getStackForm(1L)); + ItemList.Machine_MV_Miner + .set(new GT_MetaTileEntity_Miner(680, "basicmachine.miner.tier.02", "Good Miner", 2).getStackForm(1L)); + ItemList.Machine_HV_Miner + .set(new GT_MetaTileEntity_Miner(681, "basicmachine.miner.tier.03", "Advanced Miner", 3).getStackForm(1L)); + + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_LV_Miner.get(1L), + bitsd, + new Object[] { "EEE", aTextWireHull, "CSC", 'M', ItemList.Hull_LV, 'E', ItemList.Electric_Motor_LV, 'C', + OrePrefixes.circuit.get(Materials.Basic), 'W', OrePrefixes.cableGt01.get(Materials.Tin), 'S', + ItemList.Sensor_LV }); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_MV_Miner.get(1L), + bitsd, + new Object[] { "PEP", aTextWireHull, "CSC", 'M', ItemList.Hull_MV, 'E', ItemList.Electric_Motor_MV, 'P', + ItemList.Electric_Piston_MV, 'C', OrePrefixes.circuit.get(Materials.Good), 'W', + OrePrefixes.cableGt02.get(Materials.Copper), 'S', ItemList.Sensor_MV }); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_HV_Miner.get(1L), + bitsd, + new Object[] { "RPR", aTextWireHull, "CSC", 'M', ItemList.Hull_HV, 'E', ItemList.Electric_Motor_HV, 'P', + ItemList.Electric_Piston_HV, 'R', ItemList.Robot_Arm_HV, 'C', + OrePrefixes.circuit.get(Materials.Advanced), 'W', OrePrefixes.cableGt04.get(Materials.Gold), 'S', + ItemList.Sensor_HV }); } private static void run3() { ItemList.Machine_Multi_BlastFurnace.set( - new GT_MetaTileEntity_ElectricBlastFurnace( - 1000, - "multimachine.blastfurnace", - "Electric Blast Furnace").getStackForm(1L)); + new GT_MetaTileEntity_ElectricBlastFurnace(1000, "multimachine.blastfurnace", "Electric Blast Furnace") + .getStackForm(1L)); ItemList.Machine_Multi_ImplosionCompressor.set( - new GT_MetaTileEntity_ImplosionCompressor( - 1001, - "multimachine.implosioncompressor", - "Implosion Compressor").getStackForm(1L)); + new GT_MetaTileEntity_ImplosionCompressor(1001, "multimachine.implosioncompressor", "Implosion Compressor") + .getStackForm(1L)); ItemList.Machine_Multi_VacuumFreezer.set( - new GT_MetaTileEntity_VacuumFreezer(1002, "multimachine.vacuumfreezer", "Vacuum Freezer").getStackForm( - 1L)); + new GT_MetaTileEntity_VacuumFreezer(1002, "multimachine.vacuumfreezer", "Vacuum Freezer").getStackForm(1L)); ItemList.Machine_Multi_Furnace.set( - new GT_MetaTileEntity_MultiFurnace(1003, "multimachine.multifurnace", "Multi Smelter").getStackForm( - 1L)); + new GT_MetaTileEntity_MultiFurnace(1003, "multimachine.multifurnace", "Multi Smelter").getStackForm(1L)); ItemList.Machine_Multi_PlasmaForge.set( - new GT_MetaTileEntity_PlasmaForge( - 1004, - "multimachine.plasmaforge", - "Dimensionally Transcendent Plasma Forge").getStackForm(1L)); - - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_Multi_BlastFurnace.get(1L), - bitsd, - new Object[] { "FFF", aTextCableHull, aTextWireCoil, 'M', ItemList.Casing_HeatProof, 'F', - OreDictNames.craftingIronFurnace, 'C', OrePrefixes.circuit.get(Materials.Basic), 'W', - OrePrefixes.cableGt01.get(Materials.Tin) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_Multi_VacuumFreezer.get(1L), - bitsd, - new Object[] { aTextPlate, aTextCableHull, aTextWireCoil, 'M', ItemList.Casing_FrostProof, 'P', - ItemList.Electric_Pump_HV, 'C', OrePrefixes.circuit.get(Materials.Data), 'W', - OrePrefixes.cableGt01.get(Materials.Gold) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_Multi_ImplosionCompressor.get(1L), - bitsd, - new Object[] { "OOO", aTextCableHull, aTextWireCoil, 'M', ItemList.Casing_SolidSteel, 'O', - Ic2Items.reinforcedStone, 'C', OrePrefixes.circuit.get(Materials.Advanced), 'W', - OrePrefixes.cableGt01.get(Materials.Gold) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_Multi_Furnace.get(1L), - bitsd, - new Object[] { "FFF", aTextCableHull, aTextWireCoil, 'M', ItemList.Casing_HeatProof, 'F', - OreDictNames.craftingIronFurnace, 'C', OrePrefixes.circuit.get(Materials.Advanced), 'W', - OrePrefixes.cableGt01.get(Materials.AnnealedCopper) }); + new GT_MetaTileEntity_PlasmaForge( + 1004, + "multimachine.plasmaforge", + "Dimensionally Transcendent Plasma Forge").getStackForm(1L)); + + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_Multi_BlastFurnace.get(1L), + bitsd, + new Object[] { "FFF", aTextCableHull, aTextWireCoil, 'M', ItemList.Casing_HeatProof, 'F', + OreDictNames.craftingIronFurnace, 'C', OrePrefixes.circuit.get(Materials.Basic), 'W', + OrePrefixes.cableGt01.get(Materials.Tin) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_Multi_VacuumFreezer.get(1L), + bitsd, + new Object[] { aTextPlate, aTextCableHull, aTextWireCoil, 'M', ItemList.Casing_FrostProof, 'P', + ItemList.Electric_Pump_HV, 'C', OrePrefixes.circuit.get(Materials.Data), 'W', + OrePrefixes.cableGt01.get(Materials.Gold) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_Multi_ImplosionCompressor.get(1L), + bitsd, + new Object[] { "OOO", aTextCableHull, aTextWireCoil, 'M', ItemList.Casing_SolidSteel, 'O', + Ic2Items.reinforcedStone, 'C', OrePrefixes.circuit.get(Materials.Advanced), 'W', + OrePrefixes.cableGt01.get(Materials.Gold) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_Multi_Furnace.get(1L), + bitsd, + new Object[] { "FFF", aTextCableHull, aTextWireCoil, 'M', ItemList.Casing_HeatProof, 'F', + OreDictNames.craftingIronFurnace, 'C', OrePrefixes.circuit.get(Materials.Advanced), 'W', + OrePrefixes.cableGt01.get(Materials.AnnealedCopper) }); ItemList.Machine_Multi_LargeBoiler_Bronze.set( - new GT_MetaTileEntity_LargeBoiler_Bronze( - 1020, - "multimachine.boiler.bronze", - "Large Bronze Boiler").getStackForm(1L)); + new GT_MetaTileEntity_LargeBoiler_Bronze(1020, "multimachine.boiler.bronze", "Large Bronze Boiler") + .getStackForm(1L)); ItemList.Machine_Multi_LargeBoiler_Steel.set( - new GT_MetaTileEntity_LargeBoiler_Steel( - 1021, - "multimachine.boiler.steel", - "Large Steel Boiler").getStackForm(1L)); + new GT_MetaTileEntity_LargeBoiler_Steel(1021, "multimachine.boiler.steel", "Large Steel Boiler") + .getStackForm(1L)); ItemList.Machine_Multi_LargeBoiler_Titanium.set( - new GT_MetaTileEntity_LargeBoiler_Titanium( - 1022, - "multimachine.boiler.titanium", - "Large Titanium Boiler").getStackForm(1L)); + new GT_MetaTileEntity_LargeBoiler_Titanium(1022, "multimachine.boiler.titanium", "Large Titanium Boiler") + .getStackForm(1L)); ItemList.Machine_Multi_LargeBoiler_TungstenSteel.set( - new GT_MetaTileEntity_LargeBoiler_TungstenSteel( - 1023, - "multimachine.boiler.tungstensteel", - "Large Tungstensteel Boiler").getStackForm(1L)); + new GT_MetaTileEntity_LargeBoiler_TungstenSteel( + 1023, + "multimachine.boiler.tungstensteel", + "Large Tungstensteel Boiler").getStackForm(1L)); GT_ModHandler.addCraftingRecipe( - ItemList.Machine_Multi_LargeBoiler_Bronze.get(1L), - bitsd, - new Object[] { aTextWireCoil, aTextCableHull, aTextWireCoil, 'M', ItemList.Casing_Firebox_Bronze, 'C', - OrePrefixes.circuit.get(Materials.Good), 'W', OrePrefixes.cableGt01.get(Materials.Tin) }); + ItemList.Machine_Multi_LargeBoiler_Bronze.get(1L), + bitsd, + new Object[] { aTextWireCoil, aTextCableHull, aTextWireCoil, 'M', ItemList.Casing_Firebox_Bronze, 'C', + OrePrefixes.circuit.get(Materials.Good), 'W', OrePrefixes.cableGt01.get(Materials.Tin) }); GT_ModHandler.addCraftingRecipe( - ItemList.Machine_Multi_LargeBoiler_Steel.get(1L), - bitsd, - new Object[] { aTextWireCoil, aTextCableHull, aTextWireCoil, 'M', ItemList.Casing_Firebox_Steel, 'C', - OrePrefixes.circuit.get(Materials.Advanced), 'W', - OrePrefixes.cableGt01.get(Materials.AnyCopper) }); + ItemList.Machine_Multi_LargeBoiler_Steel.get(1L), + bitsd, + new Object[] { aTextWireCoil, aTextCableHull, aTextWireCoil, 'M', ItemList.Casing_Firebox_Steel, 'C', + OrePrefixes.circuit.get(Materials.Advanced), 'W', OrePrefixes.cableGt01.get(Materials.AnyCopper) }); GT_ModHandler.addCraftingRecipe( - ItemList.Machine_Multi_LargeBoiler_Titanium.get(1L), - bitsd, - new Object[] { aTextWireCoil, aTextCableHull, aTextWireCoil, 'M', ItemList.Casing_Firebox_Titanium, 'C', - OrePrefixes.circuit.get(Materials.Data), 'W', OrePrefixes.cableGt01.get(Materials.Gold) }); + ItemList.Machine_Multi_LargeBoiler_Titanium.get(1L), + bitsd, + new Object[] { aTextWireCoil, aTextCableHull, aTextWireCoil, 'M', ItemList.Casing_Firebox_Titanium, 'C', + OrePrefixes.circuit.get(Materials.Data), 'W', OrePrefixes.cableGt01.get(Materials.Gold) }); GT_ModHandler.addCraftingRecipe( - ItemList.Machine_Multi_LargeBoiler_TungstenSteel.get(1L), - bitsd, - new Object[] { aTextWireCoil, aTextCableHull, aTextWireCoil, 'M', ItemList.Casing_Firebox_TungstenSteel, - 'C', OrePrefixes.circuit.get(Materials.Elite), 'W', - OrePrefixes.cableGt01.get(Materials.Aluminium) }); + ItemList.Machine_Multi_LargeBoiler_TungstenSteel.get(1L), + bitsd, + new Object[] { aTextWireCoil, aTextCableHull, aTextWireCoil, 'M', ItemList.Casing_Firebox_TungstenSteel, + 'C', OrePrefixes.circuit.get(Materials.Elite), 'W', OrePrefixes.cableGt01.get(Materials.Aluminium) }); ItemList.Generator_Diesel_LV.set( - new GT_MetaTileEntity_DieselGenerator( - 1110, - "basicgenerator.diesel.tier.01", - "Basic Combustion Generator", - 1).getStackForm(1L)); + new GT_MetaTileEntity_DieselGenerator( + 1110, + "basicgenerator.diesel.tier.01", + "Basic Combustion Generator", + 1).getStackForm(1L)); ItemList.Generator_Diesel_MV.set( - new GT_MetaTileEntity_DieselGenerator( - 1111, - "basicgenerator.diesel.tier.02", - "Advanced Combustion Generator", - 2).getStackForm(1L)); + new GT_MetaTileEntity_DieselGenerator( + 1111, + "basicgenerator.diesel.tier.02", + "Advanced Combustion Generator", + 2).getStackForm(1L)); ItemList.Generator_Diesel_HV.set( - new GT_MetaTileEntity_DieselGenerator( - 1112, - "basicgenerator.diesel.tier.03", - "Turbo Combustion Generator", - 3).getStackForm(1L)); - - GT_ModHandler.addCraftingRecipe( - ItemList.Generator_Diesel_LV.get(1L), - bitsd, - new Object[] { "PCP", "EME", "GWG", 'M', ItemList.Hull_LV, 'P', ItemList.Electric_Piston_LV, 'E', - ItemList.Electric_Motor_LV, 'C', OrePrefixes.circuit.get(Materials.Basic), 'W', - OrePrefixes.cableGt01.get(Materials.Tin), 'G', OrePrefixes.gearGt.get(Materials.Steel) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Generator_Diesel_MV.get(1L), - bitsd, - new Object[] { "PCP", "EME", "GWG", 'M', ItemList.Hull_MV, 'P', ItemList.Electric_Piston_MV, 'E', - ItemList.Electric_Motor_MV, 'C', OrePrefixes.circuit.get(Materials.Good), 'W', - OrePrefixes.cableGt01.get(Materials.AnyCopper), 'G', - OrePrefixes.gearGt.get(Materials.Aluminium) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Generator_Diesel_HV.get(1L), - bitsd, - new Object[] { "PCP", "EME", "GWG", 'M', ItemList.Hull_HV, 'P', ItemList.Electric_Piston_HV, 'E', - ItemList.Electric_Motor_HV, 'C', OrePrefixes.circuit.get(Materials.Advanced), 'W', - OrePrefixes.cableGt01.get(Materials.Gold), 'G', - OrePrefixes.gearGt.get(Materials.StainlessSteel) }); + new GT_MetaTileEntity_DieselGenerator( + 1112, + "basicgenerator.diesel.tier.03", + "Turbo Combustion Generator", + 3).getStackForm(1L)); + + GT_ModHandler.addCraftingRecipe( + ItemList.Generator_Diesel_LV.get(1L), + bitsd, + new Object[] { "PCP", "EME", "GWG", 'M', ItemList.Hull_LV, 'P', ItemList.Electric_Piston_LV, 'E', + ItemList.Electric_Motor_LV, 'C', OrePrefixes.circuit.get(Materials.Basic), 'W', + OrePrefixes.cableGt01.get(Materials.Tin), 'G', OrePrefixes.gearGt.get(Materials.Steel) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Generator_Diesel_MV.get(1L), + bitsd, + new Object[] { "PCP", "EME", "GWG", 'M', ItemList.Hull_MV, 'P', ItemList.Electric_Piston_MV, 'E', + ItemList.Electric_Motor_MV, 'C', OrePrefixes.circuit.get(Materials.Good), 'W', + OrePrefixes.cableGt01.get(Materials.AnyCopper), 'G', OrePrefixes.gearGt.get(Materials.Aluminium) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Generator_Diesel_HV.get(1L), + bitsd, + new Object[] { "PCP", "EME", "GWG", 'M', ItemList.Hull_HV, 'P', ItemList.Electric_Piston_HV, 'E', + ItemList.Electric_Motor_HV, 'C', OrePrefixes.circuit.get(Materials.Advanced), 'W', + OrePrefixes.cableGt01.get(Materials.Gold), 'G', OrePrefixes.gearGt.get(Materials.StainlessSteel) }); ItemList.Generator_Gas_Turbine_LV.set( - new GT_MetaTileEntity_GasTurbine( - 1115, - "basicgenerator.gasturbine.tier.01", - "Basic Gas Turbine", - 1, - 95).getStackForm(1L)); + new GT_MetaTileEntity_GasTurbine(1115, "basicgenerator.gasturbine.tier.01", "Basic Gas Turbine", 1, 95) + .getStackForm(1L)); ItemList.Generator_Gas_Turbine_MV.set( - new GT_MetaTileEntity_GasTurbine( - 1116, - "basicgenerator.gasturbine.tier.02", - "Advanced Gas Turbine", - 2, - 90).getStackForm(1L)); + new GT_MetaTileEntity_GasTurbine(1116, "basicgenerator.gasturbine.tier.02", "Advanced Gas Turbine", 2, 90) + .getStackForm(1L)); ItemList.Generator_Gas_Turbine_HV.set( - new GT_MetaTileEntity_GasTurbine( - 1117, - "basicgenerator.gasturbine.tier.03", - "Turbo Gas Turbine", - 3, - 85).getStackForm(1L)); + new GT_MetaTileEntity_GasTurbine(1117, "basicgenerator.gasturbine.tier.03", "Turbo Gas Turbine", 3, 85) + .getStackForm(1L)); ItemList.Generator_Gas_Turbine_EV.set( - new GT_MetaTileEntity_GasTurbine( - 1118, - "basicgenerator.gasturbine.tier.04", - "Turbo Gas Turbine II", - 4, - 60).getStackForm(1L)); + new GT_MetaTileEntity_GasTurbine(1118, "basicgenerator.gasturbine.tier.04", "Turbo Gas Turbine II", 4, 60) + .getStackForm(1L)); ItemList.Generator_Gas_Turbine_IV.set( - new GT_MetaTileEntity_GasTurbine( - 1119, - "basicgenerator.gasturbine.tier.05", - "Turbo Gas Turbine III", - 5, - 50).getStackForm(1L)); - - GT_ModHandler.addCraftingRecipe( - ItemList.Generator_Gas_Turbine_LV.get(1L), - bitsd, - new Object[] { "CRC", "RMR", aTextMotorWire, 'M', ItemList.Hull_LV, 'E', ItemList.Electric_Motor_LV, - 'R', OrePrefixes.rotor.get(Materials.Tin), 'C', OrePrefixes.circuit.get(Materials.Basic), 'W', - OrePrefixes.cableGt01.get(Materials.Tin) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Generator_Gas_Turbine_MV.get(1L), - bitsd, - new Object[] { "CRC", "RMR", aTextMotorWire, 'M', ItemList.Hull_MV, 'E', ItemList.Electric_Motor_MV, - 'R', OrePrefixes.rotor.get(Materials.Bronze), 'C', OrePrefixes.circuit.get(Materials.Good), 'W', - OrePrefixes.cableGt01.get(Materials.AnyCopper) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Generator_Gas_Turbine_HV.get(1L), - bitsd, - new Object[] { "CRC", "RMR", aTextMotorWire, 'M', ItemList.Hull_HV, 'E', ItemList.Electric_Motor_HV, - 'R', OrePrefixes.rotor.get(Materials.Steel), 'C', OrePrefixes.circuit.get(Materials.Advanced), - 'W', OrePrefixes.cableGt01.get(Materials.Gold) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Generator_Gas_Turbine_EV.get(1L), - bitsd, - new Object[] { "CRC", "RMR", aTextMotorWire, 'M', ItemList.Hull_EV, 'E', ItemList.Electric_Motor_EV, - 'R', OrePrefixes.rotor.get(Materials.Titanium), 'C', OrePrefixes.circuit.get(Materials.Data), - 'W', OrePrefixes.cableGt01.get(Materials.Aluminium) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Generator_Gas_Turbine_IV.get(1L), - bitsd, - new Object[] { "CRC", "RMR", aTextMotorWire, 'M', ItemList.Hull_IV, 'E', ItemList.Electric_Motor_IV, - 'R', OrePrefixes.rotor.get(Materials.TungstenSteel), 'C', - OrePrefixes.circuit.get(Materials.Elite), 'W', OrePrefixes.cableGt01.get(Materials.Tungsten) }); + new GT_MetaTileEntity_GasTurbine(1119, "basicgenerator.gasturbine.tier.05", "Turbo Gas Turbine III", 5, 50) + .getStackForm(1L)); + + GT_ModHandler.addCraftingRecipe( + ItemList.Generator_Gas_Turbine_LV.get(1L), + bitsd, + new Object[] { "CRC", "RMR", aTextMotorWire, 'M', ItemList.Hull_LV, 'E', ItemList.Electric_Motor_LV, 'R', + OrePrefixes.rotor.get(Materials.Tin), 'C', OrePrefixes.circuit.get(Materials.Basic), 'W', + OrePrefixes.cableGt01.get(Materials.Tin) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Generator_Gas_Turbine_MV.get(1L), + bitsd, + new Object[] { "CRC", "RMR", aTextMotorWire, 'M', ItemList.Hull_MV, 'E', ItemList.Electric_Motor_MV, 'R', + OrePrefixes.rotor.get(Materials.Bronze), 'C', OrePrefixes.circuit.get(Materials.Good), 'W', + OrePrefixes.cableGt01.get(Materials.AnyCopper) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Generator_Gas_Turbine_HV.get(1L), + bitsd, + new Object[] { "CRC", "RMR", aTextMotorWire, 'M', ItemList.Hull_HV, 'E', ItemList.Electric_Motor_HV, 'R', + OrePrefixes.rotor.get(Materials.Steel), 'C', OrePrefixes.circuit.get(Materials.Advanced), 'W', + OrePrefixes.cableGt01.get(Materials.Gold) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Generator_Gas_Turbine_EV.get(1L), + bitsd, + new Object[] { "CRC", "RMR", aTextMotorWire, 'M', ItemList.Hull_EV, 'E', ItemList.Electric_Motor_EV, 'R', + OrePrefixes.rotor.get(Materials.Titanium), 'C', OrePrefixes.circuit.get(Materials.Data), 'W', + OrePrefixes.cableGt01.get(Materials.Aluminium) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Generator_Gas_Turbine_IV.get(1L), + bitsd, + new Object[] { "CRC", "RMR", aTextMotorWire, 'M', ItemList.Hull_IV, 'E', ItemList.Electric_Motor_IV, 'R', + OrePrefixes.rotor.get(Materials.TungstenSteel), 'C', OrePrefixes.circuit.get(Materials.Elite), 'W', + OrePrefixes.cableGt01.get(Materials.Tungsten) }); ItemList.Generator_Steam_Turbine_LV.set( - new GT_MetaTileEntity_SteamTurbine( - 1120, - "basicgenerator.steamturbine.tier.01", - "Basic Steam Turbine", - 1).getStackForm(1L)); + new GT_MetaTileEntity_SteamTurbine(1120, "basicgenerator.steamturbine.tier.01", "Basic Steam Turbine", 1) + .getStackForm(1L)); ItemList.Generator_Steam_Turbine_MV.set( - new GT_MetaTileEntity_SteamTurbine( - 1121, - "basicgenerator.steamturbine.tier.02", - "Advanced Steam Turbine", - 2).getStackForm(1L)); + new GT_MetaTileEntity_SteamTurbine(1121, "basicgenerator.steamturbine.tier.02", "Advanced Steam Turbine", 2) + .getStackForm(1L)); ItemList.Generator_Steam_Turbine_HV.set( - new GT_MetaTileEntity_SteamTurbine( - 1122, - "basicgenerator.steamturbine.tier.03", - "Turbo Steam Turbine", - 3).getStackForm(1L)); + new GT_MetaTileEntity_SteamTurbine(1122, "basicgenerator.steamturbine.tier.03", "Turbo Steam Turbine", 3) + .getStackForm(1L)); GT_ModHandler.addCraftingRecipe( - ItemList.Generator_Steam_Turbine_LV.get(1L), - bitsd, - new Object[] { "PCP", "RMR", aTextMotorWire, 'M', ItemList.Hull_LV, 'E', ItemList.Electric_Motor_LV, - 'R', OrePrefixes.rotor.get(Materials.Tin), 'C', OrePrefixes.circuit.get(Materials.Basic), 'W', - OrePrefixes.cableGt01.get(Materials.Tin), 'P', OrePrefixes.pipeMedium.get(Materials.Bronze) }); + ItemList.Generator_Steam_Turbine_LV.get(1L), + bitsd, + new Object[] { "PCP", "RMR", aTextMotorWire, 'M', ItemList.Hull_LV, 'E', ItemList.Electric_Motor_LV, 'R', + OrePrefixes.rotor.get(Materials.Tin), 'C', OrePrefixes.circuit.get(Materials.Basic), 'W', + OrePrefixes.cableGt01.get(Materials.Tin), 'P', OrePrefixes.pipeMedium.get(Materials.Bronze) }); GT_ModHandler.addCraftingRecipe( - ItemList.Generator_Steam_Turbine_MV.get(1L), - bitsd, - new Object[] { "PCP", "RMR", aTextMotorWire, 'M', ItemList.Hull_MV, 'E', ItemList.Electric_Motor_MV, - 'R', OrePrefixes.rotor.get(Materials.Bronze), 'C', OrePrefixes.circuit.get(Materials.Good), 'W', - OrePrefixes.cableGt01.get(Materials.AnyCopper), 'P', - OrePrefixes.pipeMedium.get(Materials.Steel) }); + ItemList.Generator_Steam_Turbine_MV.get(1L), + bitsd, + new Object[] { "PCP", "RMR", aTextMotorWire, 'M', ItemList.Hull_MV, 'E', ItemList.Electric_Motor_MV, 'R', + OrePrefixes.rotor.get(Materials.Bronze), 'C', OrePrefixes.circuit.get(Materials.Good), 'W', + OrePrefixes.cableGt01.get(Materials.AnyCopper), 'P', OrePrefixes.pipeMedium.get(Materials.Steel) }); GT_ModHandler.addCraftingRecipe( - ItemList.Generator_Steam_Turbine_HV.get(1L), - bitsd, - new Object[] { "PCP", "RMR", aTextMotorWire, 'M', ItemList.Hull_HV, 'E', ItemList.Electric_Motor_HV, - 'R', OrePrefixes.rotor.get(Materials.Steel), 'C', OrePrefixes.circuit.get(Materials.Advanced), - 'W', OrePrefixes.cableGt01.get(Materials.Gold), 'P', - OrePrefixes.pipeMedium.get(Materials.StainlessSteel) }); + ItemList.Generator_Steam_Turbine_HV.get(1L), + bitsd, + new Object[] { "PCP", "RMR", aTextMotorWire, 'M', ItemList.Hull_HV, 'E', ItemList.Electric_Motor_HV, 'R', + OrePrefixes.rotor.get(Materials.Steel), 'C', OrePrefixes.circuit.get(Materials.Advanced), 'W', + OrePrefixes.cableGt01.get(Materials.Gold), 'P', OrePrefixes.pipeMedium.get(Materials.StainlessSteel) }); ItemList.Generator_Naquadah_Mark_I.set( - new GT_MetaTileEntity_NaquadahReactor( - 1190, - "basicgenerator.naquadah.tier.04", - new String[] { "Requires Enriched Naquadah Bolts" }, - "Naquadah Reactor Mark I", - 4).getStackForm(1L)); + new GT_MetaTileEntity_NaquadahReactor( + 1190, + "basicgenerator.naquadah.tier.04", + new String[] { "Requires Enriched Naquadah Bolts" }, + "Naquadah Reactor Mark I", + 4).getStackForm(1L)); ItemList.Generator_Naquadah_Mark_II.set( - new GT_MetaTileEntity_NaquadahReactor( - 1191, - "basicgenerator.naquadah.tier.05", - new String[] { "Requires Enriched Naquadah Rods" }, - "Naquadah Reactor Mark II", - 5).getStackForm(1L)); + new GT_MetaTileEntity_NaquadahReactor( + 1191, + "basicgenerator.naquadah.tier.05", + new String[] { "Requires Enriched Naquadah Rods" }, + "Naquadah Reactor Mark II", + 5).getStackForm(1L)); ItemList.Generator_Naquadah_Mark_III.set( - new GT_MetaTileEntity_NaquadahReactor( - 1192, - "basicgenerator.naquadah.tier.06", - new String[] { "Requires Enriched Naquadah Long Rods" }, - "Naquadah Reactor Mark III", - 6).getStackForm(1L)); + new GT_MetaTileEntity_NaquadahReactor( + 1192, + "basicgenerator.naquadah.tier.06", + new String[] { "Requires Enriched Naquadah Long Rods" }, + "Naquadah Reactor Mark III", + 6).getStackForm(1L)); ItemList.Generator_Naquadah_Mark_IV.set( - new GT_MetaTileEntity_NaquadahReactor( - 1188, - "basicgenerator.naquadah.tier.07", - new String[] { "Requires Naquadria Bolts" }, - "Naquadah Reactor Mark IV", - 7).getStackForm(1L)); + new GT_MetaTileEntity_NaquadahReactor( + 1188, + "basicgenerator.naquadah.tier.07", + new String[] { "Requires Naquadria Bolts" }, + "Naquadah Reactor Mark IV", + 7).getStackForm(1L)); ItemList.Generator_Naquadah_Mark_V.set( - new GT_MetaTileEntity_NaquadahReactor( - 1189, - "basicgenerator.naquadah.tier.08", - new String[] { "Requires Naquadria Rods" }, - "Naquadah Reactor Mark V", - 8).getStackForm(1L)); + new GT_MetaTileEntity_NaquadahReactor( + 1189, + "basicgenerator.naquadah.tier.08", + new String[] { "Requires Naquadria Rods" }, + "Naquadah Reactor Mark V", + 8).getStackForm(1L)); ItemList.MagicEnergyConverter_LV.set( - new GT_MetaTileEntity_MagicEnergyConverter( - 1123, - "basicgenerator.magicenergyconverter.tier.01", - "Novice Magic Energy Converter", - 1).getStackForm(1L)); + new GT_MetaTileEntity_MagicEnergyConverter( + 1123, + "basicgenerator.magicenergyconverter.tier.01", + "Novice Magic Energy Converter", + 1).getStackForm(1L)); ItemList.MagicEnergyConverter_MV.set( - new GT_MetaTileEntity_MagicEnergyConverter( - 1124, - "basicgenerator.magicenergyconverter.tier.02", - "Adept Magic Energy Converter", - 2).getStackForm(1L)); + new GT_MetaTileEntity_MagicEnergyConverter( + 1124, + "basicgenerator.magicenergyconverter.tier.02", + "Adept Magic Energy Converter", + 2).getStackForm(1L)); ItemList.MagicEnergyConverter_HV.set( - new GT_MetaTileEntity_MagicEnergyConverter( - 1125, - "basicgenerator.magicenergyconverter.tier.03", - "Master Magic Energy Converter", - 3).getStackForm(1L)); + new GT_MetaTileEntity_MagicEnergyConverter( + 1125, + "basicgenerator.magicenergyconverter.tier.03", + "Master Magic Energy Converter", + 3).getStackForm(1L)); ItemList.MagicEnergyAbsorber_LV.set( - new GT_MetaTileEntity_MagicalEnergyAbsorber( - 1127, - "basicgenerator.magicenergyabsorber.tier.01", - "Novice Magic Energy Absorber", - 1).getStackForm(1L)); + new GT_MetaTileEntity_MagicalEnergyAbsorber( + 1127, + "basicgenerator.magicenergyabsorber.tier.01", + "Novice Magic Energy Absorber", + 1).getStackForm(1L)); ItemList.MagicEnergyAbsorber_MV.set( - new GT_MetaTileEntity_MagicalEnergyAbsorber( - 1128, - "basicgenerator.magicenergyabsorber.tier.02", - "Adept Magic Energy Absorber", - 2).getStackForm(1L)); + new GT_MetaTileEntity_MagicalEnergyAbsorber( + 1128, + "basicgenerator.magicenergyabsorber.tier.02", + "Adept Magic Energy Absorber", + 2).getStackForm(1L)); ItemList.MagicEnergyAbsorber_HV.set( - new GT_MetaTileEntity_MagicalEnergyAbsorber( - 1129, - "basicgenerator.magicenergyabsorber.tier.03", - "Master Magic Energy Absorber", - 3).getStackForm(1L)); + new GT_MetaTileEntity_MagicalEnergyAbsorber( + 1129, + "basicgenerator.magicenergyabsorber.tier.03", + "Master Magic Energy Absorber", + 3).getStackForm(1L)); ItemList.MagicEnergyAbsorber_EV.set( - new GT_MetaTileEntity_MagicalEnergyAbsorber( - 1130, - "basicgenerator.magicenergyabsorber.tier.04", - "Grandmaster Magic Energy Absorber", - 4).getStackForm(1L)); + new GT_MetaTileEntity_MagicalEnergyAbsorber( + 1130, + "basicgenerator.magicenergyabsorber.tier.04", + "Grandmaster Magic Energy Absorber", + 4).getStackForm(1L)); if (!Thaumcraft.isModLoaded()) { GT_ModHandler.addCraftingRecipe( - ItemList.MagicEnergyConverter_LV.get(1L), - bitsd, - new Object[] { "CTC", "FMF", "CBC", 'M', ItemList.Hull_LV, 'B', new ItemStack(Blocks.beacon), 'C', - OrePrefixes.circuit.get(Materials.Advanced), 'T', ItemList.Field_Generator_LV, 'F', - OrePrefixes.plate.get(Materials.Platinum) }); + ItemList.MagicEnergyConverter_LV.get(1L), + bitsd, + new Object[] { "CTC", "FMF", "CBC", 'M', ItemList.Hull_LV, 'B', new ItemStack(Blocks.beacon), 'C', + OrePrefixes.circuit.get(Materials.Advanced), 'T', ItemList.Field_Generator_LV, 'F', + OrePrefixes.plate.get(Materials.Platinum) }); GT_ModHandler.addCraftingRecipe( - ItemList.MagicEnergyConverter_MV.get(1L), - bitsd, - new Object[] { "CTC", "FMF", "CBC", 'M', ItemList.Hull_MV, 'B', new ItemStack(Blocks.beacon), 'C', - OrePrefixes.circuit.get(Materials.Data), 'T', ItemList.Field_Generator_MV, 'F', - OrePrefixes.plate.get(Materials.Iridium) }); + ItemList.MagicEnergyConverter_MV.get(1L), + bitsd, + new Object[] { "CTC", "FMF", "CBC", 'M', ItemList.Hull_MV, 'B', new ItemStack(Blocks.beacon), 'C', + OrePrefixes.circuit.get(Materials.Data), 'T', ItemList.Field_Generator_MV, 'F', + OrePrefixes.plate.get(Materials.Iridium) }); GT_ModHandler.addCraftingRecipe( - ItemList.MagicEnergyConverter_HV.get(1L), - bitsd, - new Object[] { "CTC", "FMF", "CBC", 'M', ItemList.Hull_HV, 'B', new ItemStack(Blocks.beacon), 'C', - OrePrefixes.circuit.get(Materials.Elite), 'T', ItemList.Field_Generator_HV, 'F', - OrePrefixes.plate.get(Materials.Neutronium) }); + ItemList.MagicEnergyConverter_HV.get(1L), + bitsd, + new Object[] { "CTC", "FMF", "CBC", 'M', ItemList.Hull_HV, 'B', new ItemStack(Blocks.beacon), 'C', + OrePrefixes.circuit.get(Materials.Elite), 'T', ItemList.Field_Generator_HV, 'F', + OrePrefixes.plate.get(Materials.Neutronium) }); GT_ModHandler.addCraftingRecipe( - ItemList.MagicEnergyAbsorber_LV.get(1L), - bitsd, - new Object[] { "CTC", "FMF", "CBC", 'M', ItemList.Hull_LV, 'B', - ItemList.MagicEnergyConverter_LV.get(1L), 'C', OrePrefixes.circuit.get(Materials.Advanced), - 'T', ItemList.Field_Generator_LV, 'F', OrePrefixes.plate.get(Materials.Platinum) }); + ItemList.MagicEnergyAbsorber_LV.get(1L), + bitsd, + new Object[] { "CTC", "FMF", "CBC", 'M', ItemList.Hull_LV, 'B', + ItemList.MagicEnergyConverter_LV.get(1L), 'C', OrePrefixes.circuit.get(Materials.Advanced), 'T', + ItemList.Field_Generator_LV, 'F', OrePrefixes.plate.get(Materials.Platinum) }); GT_ModHandler.addCraftingRecipe( - ItemList.MagicEnergyAbsorber_MV.get(1L), - bitsd, - new Object[] { "CTC", "FMF", "CBC", 'M', ItemList.Hull_MV, 'B', - ItemList.MagicEnergyConverter_MV.get(1L), 'C', OrePrefixes.circuit.get(Materials.Data), 'T', - ItemList.Field_Generator_MV, 'F', OrePrefixes.plate.get(Materials.Iridium) }); + ItemList.MagicEnergyAbsorber_MV.get(1L), + bitsd, + new Object[] { "CTC", "FMF", "CBC", 'M', ItemList.Hull_MV, 'B', + ItemList.MagicEnergyConverter_MV.get(1L), 'C', OrePrefixes.circuit.get(Materials.Data), 'T', + ItemList.Field_Generator_MV, 'F', OrePrefixes.plate.get(Materials.Iridium) }); GT_ModHandler.addCraftingRecipe( - ItemList.MagicEnergyAbsorber_HV.get(1L), - bitsd, - new Object[] { "CTC", "FMF", "CBC", 'M', ItemList.Hull_HV, 'B', - ItemList.MagicEnergyConverter_MV.get(1L), 'C', OrePrefixes.circuit.get(Materials.Elite), - 'T', ItemList.Field_Generator_HV, 'F', OrePrefixes.plate.get(Materials.Europium) }); + ItemList.MagicEnergyAbsorber_HV.get(1L), + bitsd, + new Object[] { "CTC", "FMF", "CBC", 'M', ItemList.Hull_HV, 'B', + ItemList.MagicEnergyConverter_MV.get(1L), 'C', OrePrefixes.circuit.get(Materials.Elite), 'T', + ItemList.Field_Generator_HV, 'F', OrePrefixes.plate.get(Materials.Europium) }); GT_ModHandler.addCraftingRecipe( - ItemList.MagicEnergyAbsorber_EV.get(1L), - bitsd, - new Object[] { "CTC", "FMF", "CBC", 'M', ItemList.Hull_HV, 'B', - ItemList.MagicEnergyConverter_HV.get(1L), 'C', OrePrefixes.circuit.get(Materials.Master), - 'T', ItemList.Field_Generator_EV, 'F', OrePrefixes.plate.get(Materials.Neutronium) }); + ItemList.MagicEnergyAbsorber_EV.get(1L), + bitsd, + new Object[] { "CTC", "FMF", "CBC", 'M', ItemList.Hull_HV, 'B', + ItemList.MagicEnergyConverter_HV.get(1L), 'C', OrePrefixes.circuit.get(Materials.Master), 'T', + ItemList.Field_Generator_EV, 'F', OrePrefixes.plate.get(Materials.Neutronium) }); } ItemList.FusionComputer_LuV.set( - new GT_MetaTileEntity_FusionComputer1( - 1193, - "fusioncomputer.tier.06", - "Fusion Control Computer Mark I").getStackForm(1L)); + new GT_MetaTileEntity_FusionComputer1(1193, "fusioncomputer.tier.06", "Fusion Control Computer Mark I") + .getStackForm(1L)); ItemList.FusionComputer_ZPMV.set( - new GT_MetaTileEntity_FusionComputer2( - 1194, - "fusioncomputer.tier.07", - "Fusion Control Computer Mark II").getStackForm(1L)); + new GT_MetaTileEntity_FusionComputer2(1194, "fusioncomputer.tier.07", "Fusion Control Computer Mark II") + .getStackForm(1L)); ItemList.FusionComputer_UV.set( - new GT_MetaTileEntity_FusionComputer3( - 1195, - "fusioncomputer.tier.08", - "Fusion Control Computer Mark III").getStackForm(1L)); + new GT_MetaTileEntity_FusionComputer3(1195, "fusioncomputer.tier.08", "Fusion Control Computer Mark III") + .getStackForm(1L)); GT_ModHandler.addCraftingRecipe( - ItemList.Casing_Fusion_Coil.get(1L), - bitsd, - new Object[] { "CTC", "FMF", "CTC", 'M', ItemList.Casing_Coil_Superconductor, 'C', - OrePrefixes.circuit.get(Materials.Master), 'F', ItemList.Field_Generator_MV, 'T', - ItemList.Neutron_Reflector }); + ItemList.Casing_Fusion_Coil.get(1L), + bitsd, + new Object[] { "CTC", "FMF", "CTC", 'M', ItemList.Casing_Coil_Superconductor, 'C', + OrePrefixes.circuit.get(Materials.Master), 'F', ItemList.Field_Generator_MV, 'T', + ItemList.Neutron_Reflector }); ItemList.Generator_Plasma_IV.set( - new GT_MetaTileEntity_PlasmaGenerator( - 1196, - "basicgenerator.plasmagenerator.tier.05", - "Plasma Generator Mark I", - 4).getStackForm(1L)); + new GT_MetaTileEntity_PlasmaGenerator( + 1196, + "basicgenerator.plasmagenerator.tier.05", + "Plasma Generator Mark I", + 4).getStackForm(1L)); ItemList.Generator_Plasma_LuV.set( - new GT_MetaTileEntity_PlasmaGenerator( - 1197, - "basicgenerator.plasmagenerator.tier.06", - "Plasma Generator Mark II", - 5).getStackForm(1L)); + new GT_MetaTileEntity_PlasmaGenerator( + 1197, + "basicgenerator.plasmagenerator.tier.06", + "Plasma Generator Mark II", + 5).getStackForm(1L)); ItemList.Generator_Plasma_ZPMV.set( - new GT_MetaTileEntity_PlasmaGenerator( - 1198, - "basicgenerator.plasmagenerator.tier.07", - "Plasma Generator Mark III", - 6).getStackForm(1L)); - - GT_ModHandler.addCraftingRecipe( - ItemList.Generator_Plasma_IV.get(1L), - bitsd, - new Object[] { "UCU", "FMF", aTextWireCoil, 'M', ItemList.Hull_LuV, 'F', ItemList.Field_Generator_HV, - 'C', OrePrefixes.circuit.get(Materials.Elite), 'W', - OrePrefixes.cableGt04.get(Materials.Tungsten), 'U', - OrePrefixes.stick.get(Materials.Plutonium241) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Generator_Plasma_LuV.get(1L), - bitsd, - new Object[] { "UCU", "FMF", aTextWireCoil, 'M', ItemList.Hull_ZPM, 'F', ItemList.Field_Generator_EV, - 'C', OrePrefixes.circuit.get(Materials.Master), 'W', - OrePrefixes.wireGt04.get(Materials.VanadiumGallium), 'U', - OrePrefixes.stick.get(Materials.Europium) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Generator_Plasma_ZPMV.get(1L), - bitsd, - new Object[] { "UCU", "FMF", aTextWireCoil, 'M', ItemList.Hull_UV, 'F', ItemList.Field_Generator_IV, - 'C', OrePrefixes.circuit.get(Materials.Ultimate), 'W', - OrePrefixes.wireGt04.get(Materials.Naquadah), 'U', - OrePrefixes.stick.get(Materials.Americium) }); + new GT_MetaTileEntity_PlasmaGenerator( + 1198, + "basicgenerator.plasmagenerator.tier.07", + "Plasma Generator Mark III", + 6).getStackForm(1L)); + + GT_ModHandler.addCraftingRecipe( + ItemList.Generator_Plasma_IV.get(1L), + bitsd, + new Object[] { "UCU", "FMF", aTextWireCoil, 'M', ItemList.Hull_LuV, 'F', ItemList.Field_Generator_HV, 'C', + OrePrefixes.circuit.get(Materials.Elite), 'W', OrePrefixes.cableGt04.get(Materials.Tungsten), 'U', + OrePrefixes.stick.get(Materials.Plutonium241) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Generator_Plasma_LuV.get(1L), + bitsd, + new Object[] { "UCU", "FMF", aTextWireCoil, 'M', ItemList.Hull_ZPM, 'F', ItemList.Field_Generator_EV, 'C', + OrePrefixes.circuit.get(Materials.Master), 'W', OrePrefixes.wireGt04.get(Materials.VanadiumGallium), + 'U', OrePrefixes.stick.get(Materials.Europium) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Generator_Plasma_ZPMV.get(1L), + bitsd, + new Object[] { "UCU", "FMF", aTextWireCoil, 'M', ItemList.Hull_UV, 'F', ItemList.Field_Generator_IV, 'C', + OrePrefixes.circuit.get(Materials.Ultimate), 'W', OrePrefixes.wireGt04.get(Materials.Naquadah), 'U', + OrePrefixes.stick.get(Materials.Americium) }); ItemList.Processing_Array.set( - new GT_MetaTileEntity_ProcessingArray( - 1199, - "multimachine.processingarray", - "Processing Array").getStackForm(1L)); + new GT_MetaTileEntity_ProcessingArray(1199, "multimachine.processingarray", "Processing Array") + .getStackForm(1L)); GT_ModHandler.addCraftingRecipe( - ItemList.Processing_Array.get(1L), - bitsd, - new Object[] { "CTC", "FMF", "CBC", 'M', ItemList.Hull_EV, 'B', - OrePrefixes.pipeLarge.get(Materials.StainlessSteel), 'C', - OrePrefixes.circuit.get(Materials.Elite), 'F', ItemList.Robot_Arm_EV, 'T', - ItemList.Energy_LapotronicOrb }); + ItemList.Processing_Array.get(1L), + bitsd, + new Object[] { "CTC", "FMF", "CBC", 'M', ItemList.Hull_EV, 'B', + OrePrefixes.pipeLarge.get(Materials.StainlessSteel), 'C', OrePrefixes.circuit.get(Materials.Elite), 'F', + ItemList.Robot_Arm_EV, 'T', ItemList.Energy_LapotronicOrb }); GT_ProcessingArrayRecipeLoader.registerDefaultGregtechMaps(); ItemList.Distillation_Tower.set( - new GT_MetaTileEntity_DistillationTower( - 1126, - "multimachine.distillationtower", - "Distillation Tower").getStackForm(1L)); + new GT_MetaTileEntity_DistillationTower(1126, "multimachine.distillationtower", "Distillation Tower") + .getStackForm(1L)); GT_ModHandler.addCraftingRecipe( - ItemList.Distillation_Tower.get(1L), - bitsd, - new Object[] { "CBC", "FMF", "CBC", 'M', ItemList.Hull_HV, 'B', - OrePrefixes.pipeLarge.get(Materials.StainlessSteel), 'C', - OrePrefixes.circuit.get(Materials.Data), 'F', ItemList.Electric_Pump_HV }); + ItemList.Distillation_Tower.get(1L), + bitsd, + new Object[] { "CBC", "FMF", "CBC", 'M', ItemList.Hull_HV, 'B', + OrePrefixes.pipeLarge.get(Materials.StainlessSteel), 'C', OrePrefixes.circuit.get(Materials.Data), 'F', + ItemList.Electric_Pump_HV }); ItemList.Ore_Processor.set( - new GT_MetaTileEntity_IntegratedOreFactory( - 1132, - "multimachine.oreprocessor", - "Integrated Ore Factory").getStackForm(1L)); + new GT_MetaTileEntity_IntegratedOreFactory(1132, "multimachine.oreprocessor", "Integrated Ore Factory") + .getStackForm(1L)); ItemList.LargeSteamTurbine.set( - new GT_MetaTileEntity_LargeTurbine_Steam( - 1131, - "multimachine.largeturbine", - "Large Steam Turbine").getStackForm(1L)); + new GT_MetaTileEntity_LargeTurbine_Steam(1131, "multimachine.largeturbine", "Large Steam Turbine") + .getStackForm(1L)); ItemList.LargeGasTurbine.set( - new GT_MetaTileEntity_LargeTurbine_Gas( - 1151, - "multimachine.largegasturbine", - "Large Gas Turbine").getStackForm(1L)); + new GT_MetaTileEntity_LargeTurbine_Gas(1151, "multimachine.largegasturbine", "Large Gas Turbine") + .getStackForm(1L)); ItemList.LargeHPSteamTurbine.set( - new GT_MetaTileEntity_LargeTurbine_HPSteam( - 1152, - "multimachine.largehpturbine", - "Large HP Steam Turbine").getStackForm(1L)); + new GT_MetaTileEntity_LargeTurbine_HPSteam(1152, "multimachine.largehpturbine", "Large HP Steam Turbine") + .getStackForm(1L)); ItemList.LargeAdvancedGasTurbine.set( - new GT_MetaTileEntity_LargeTurbine_GasAdvanced( - 1005, - "multimachine.largeadvancedgasturbine", - "Large Advanced Gas Turbine").getStackForm(1L)); + new GT_MetaTileEntity_LargeTurbine_GasAdvanced( + 1005, + "multimachine.largeadvancedgasturbine", + "Large Advanced Gas Turbine").getStackForm(1L)); ItemList.Machine_Multi_TranscendentPlasmaMixer.set( - new GT_MetaTileEntity_TranscendentPlasmaMixer( - 1006, - "multimachine.transcendentplasmamixer", - "Transcendent Plasma Mixer").getStackForm(1)); + new GT_MetaTileEntity_TranscendentPlasmaMixer( + 1006, + "multimachine.transcendentplasmamixer", + "Transcendent Plasma Mixer").getStackForm(1)); ItemList.LargePlasmaTurbine.set( - new GT_MetaTileEntity_LargeTurbine_Plasma( - 1153, - "multimachine.largeplasmaturbine", - "Large Plasma Generator").getStackForm(1L)); - - GT_ModHandler.addCraftingRecipe( - ItemList.LargeSteamTurbine.get(1L), - bitsd, - new Object[] { "CPC", aTextPlateMotor, "BPB", 'M', ItemList.Hull_HV, 'B', - OrePrefixes.pipeLarge.get(Materials.Steel), 'C', OrePrefixes.circuit.get(Materials.Advanced), - 'P', OrePrefixes.gearGt.get(Materials.Steel) }); - GT_ModHandler.addCraftingRecipe( - ItemList.LargeGasTurbine.get(1L), - bitsd, - new Object[] { "CPC", aTextPlateMotor, "BPB", 'M', ItemList.Hull_EV, 'B', - OrePrefixes.pipeLarge.get(Materials.StainlessSteel), 'C', - OrePrefixes.circuit.get(Materials.Data), 'P', - OrePrefixes.gearGt.get(Materials.StainlessSteel) }); - GT_ModHandler.addCraftingRecipe( - ItemList.LargeAdvancedGasTurbine.get(1L), - bitsd, - new Object[] { "CPC", aTextPlateMotor, "BPB", 'M', ItemList.Hull_IV, 'B', - OrePrefixes.pipeLarge.get(Materials.TungstenSteel), 'C', - OrePrefixes.circuit.get(Materials.Master), 'P', OrePrefixes.gearGt.get(Materials.HSSG) }); - - ItemList.Pump_LV.set( - new GT_MetaTileEntity_Pump(1140, "basicmachine.pump.tier.01", "Basic Pump", 1).getStackForm(1L)); - ItemList.Pump_MV.set( - new GT_MetaTileEntity_Pump(1141, "basicmachine.pump.tier.02", "Advanced Pump", 2).getStackForm(1L)); - ItemList.Pump_HV.set( - new GT_MetaTileEntity_Pump(1142, "basicmachine.pump.tier.03", "Advanced Pump II", 3).getStackForm(1L)); + new GT_MetaTileEntity_LargeTurbine_Plasma(1153, "multimachine.largeplasmaturbine", "Large Plasma Generator") + .getStackForm(1L)); + + GT_ModHandler.addCraftingRecipe( + ItemList.LargeSteamTurbine.get(1L), + bitsd, + new Object[] { "CPC", aTextPlateMotor, "BPB", 'M', ItemList.Hull_HV, 'B', + OrePrefixes.pipeLarge.get(Materials.Steel), 'C', OrePrefixes.circuit.get(Materials.Advanced), 'P', + OrePrefixes.gearGt.get(Materials.Steel) }); + GT_ModHandler.addCraftingRecipe( + ItemList.LargeGasTurbine.get(1L), + bitsd, + new Object[] { "CPC", aTextPlateMotor, "BPB", 'M', ItemList.Hull_EV, 'B', + OrePrefixes.pipeLarge.get(Materials.StainlessSteel), 'C', OrePrefixes.circuit.get(Materials.Data), 'P', + OrePrefixes.gearGt.get(Materials.StainlessSteel) }); + GT_ModHandler.addCraftingRecipe( + ItemList.LargeAdvancedGasTurbine.get(1L), + bitsd, + new Object[] { "CPC", aTextPlateMotor, "BPB", 'M', ItemList.Hull_IV, 'B', + OrePrefixes.pipeLarge.get(Materials.TungstenSteel), 'C', OrePrefixes.circuit.get(Materials.Master), 'P', + OrePrefixes.gearGt.get(Materials.HSSG) }); + + ItemList.Pump_LV + .set(new GT_MetaTileEntity_Pump(1140, "basicmachine.pump.tier.01", "Basic Pump", 1).getStackForm(1L)); + ItemList.Pump_MV + .set(new GT_MetaTileEntity_Pump(1141, "basicmachine.pump.tier.02", "Advanced Pump", 2).getStackForm(1L)); + ItemList.Pump_HV + .set(new GT_MetaTileEntity_Pump(1142, "basicmachine.pump.tier.03", "Advanced Pump II", 3).getStackForm(1L)); ItemList.Pump_EV.set( - new GT_MetaTileEntity_Pump(1143, "basicmachine.pump.tier.04", "Advanced Pump III", 4).getStackForm(1L)); - ItemList.Pump_IV.set( - new GT_MetaTileEntity_Pump(1144, "basicmachine.pump.tier.05", "Advanced Pump IV", 5).getStackForm(1L)); - - GT_ModHandler.addCraftingRecipe( - ItemList.Pump_LV.get(1L), - bitsd, - new Object[] { "CPC", aTextPlateMotor, "BPB", 'M', ItemList.Hull_LV, 'B', - OrePrefixes.pipeLarge.get(Materials.Bronze), 'C', OrePrefixes.circuit.get(Materials.Basic), 'P', - ItemList.Electric_Pump_LV }); - GT_ModHandler.addCraftingRecipe( - ItemList.Pump_MV.get(1L), - bitsd, - new Object[] { "CPC", aTextPlateMotor, "BPB", 'M', ItemList.Hull_MV, 'B', - OrePrefixes.pipeLarge.get(Materials.Steel), 'C', OrePrefixes.circuit.get(Materials.Good), 'P', - ItemList.Electric_Pump_MV }); - GT_ModHandler.addCraftingRecipe( - ItemList.Pump_HV.get(1L), - bitsd, - new Object[] { "CPC", aTextPlateMotor, "BPB", 'M', ItemList.Hull_HV, 'B', - OrePrefixes.pipeLarge.get(Materials.StainlessSteel), 'C', - OrePrefixes.circuit.get(Materials.Advanced), 'P', ItemList.Electric_Pump_HV }); - GT_ModHandler.addCraftingRecipe( - ItemList.Pump_EV.get(1L), - bitsd, - new Object[] { "CPC", aTextPlateMotor, "BPB", 'M', ItemList.Hull_EV, 'B', - OrePrefixes.pipeLarge.get(Materials.Titanium), 'C', OrePrefixes.circuit.get(Materials.Data), - 'P', ItemList.Electric_Pump_EV }); - GT_ModHandler.addCraftingRecipe( - ItemList.Pump_IV.get(1L), - bitsd, - new Object[] { "CPC", aTextPlateMotor, "BPB", 'M', ItemList.Hull_IV, 'B', - OrePrefixes.pipeLarge.get(Materials.TungstenSteel), 'C', - OrePrefixes.circuit.get(Materials.Elite), 'P', ItemList.Electric_Pump_IV }); - - ItemList.Teleporter.set( - new GT_MetaTileEntity_Teleporter(1145, "basicmachine.teleporter", "Teleporter", 9).getStackForm(1L)); + new GT_MetaTileEntity_Pump(1143, "basicmachine.pump.tier.04", "Advanced Pump III", 4).getStackForm(1L)); + ItemList.Pump_IV + .set(new GT_MetaTileEntity_Pump(1144, "basicmachine.pump.tier.05", "Advanced Pump IV", 5).getStackForm(1L)); + + GT_ModHandler.addCraftingRecipe( + ItemList.Pump_LV.get(1L), + bitsd, + new Object[] { "CPC", aTextPlateMotor, "BPB", 'M', ItemList.Hull_LV, 'B', + OrePrefixes.pipeLarge.get(Materials.Bronze), 'C', OrePrefixes.circuit.get(Materials.Basic), 'P', + ItemList.Electric_Pump_LV }); + GT_ModHandler.addCraftingRecipe( + ItemList.Pump_MV.get(1L), + bitsd, + new Object[] { "CPC", aTextPlateMotor, "BPB", 'M', ItemList.Hull_MV, 'B', + OrePrefixes.pipeLarge.get(Materials.Steel), 'C', OrePrefixes.circuit.get(Materials.Good), 'P', + ItemList.Electric_Pump_MV }); + GT_ModHandler.addCraftingRecipe( + ItemList.Pump_HV.get(1L), + bitsd, + new Object[] { "CPC", aTextPlateMotor, "BPB", 'M', ItemList.Hull_HV, 'B', + OrePrefixes.pipeLarge.get(Materials.StainlessSteel), 'C', OrePrefixes.circuit.get(Materials.Advanced), + 'P', ItemList.Electric_Pump_HV }); + GT_ModHandler.addCraftingRecipe( + ItemList.Pump_EV.get(1L), + bitsd, + new Object[] { "CPC", aTextPlateMotor, "BPB", 'M', ItemList.Hull_EV, 'B', + OrePrefixes.pipeLarge.get(Materials.Titanium), 'C', OrePrefixes.circuit.get(Materials.Data), 'P', + ItemList.Electric_Pump_EV }); + GT_ModHandler.addCraftingRecipe( + ItemList.Pump_IV.get(1L), + bitsd, + new Object[] { "CPC", aTextPlateMotor, "BPB", 'M', ItemList.Hull_IV, 'B', + OrePrefixes.pipeLarge.get(Materials.TungstenSteel), 'C', OrePrefixes.circuit.get(Materials.Elite), 'P', + ItemList.Electric_Pump_IV }); + + ItemList.Teleporter + .set(new GT_MetaTileEntity_Teleporter(1145, "basicmachine.teleporter", "Teleporter", 9).getStackForm(1L)); ItemList.MobRep_LV.set( - new GT_MetaTileEntity_MonsterRepellent( - 1146, - "basicmachine.mobrep.tier.01", - "Basic Monster Repellator", - 1).getStackForm(1L)); + new GT_MetaTileEntity_MonsterRepellent(1146, "basicmachine.mobrep.tier.01", "Basic Monster Repellator", 1) + .getStackForm(1L)); ItemList.MobRep_MV.set( - new GT_MetaTileEntity_MonsterRepellent( - 1147, - "basicmachine.mobrep.tier.02", - "Advanced Monster Repellator", - 2).getStackForm(1L)); + new GT_MetaTileEntity_MonsterRepellent( + 1147, + "basicmachine.mobrep.tier.02", + "Advanced Monster Repellator", + 2).getStackForm(1L)); ItemList.MobRep_HV.set( - new GT_MetaTileEntity_MonsterRepellent( - 1148, - "basicmachine.mobrep.tier.03", - "Advanced Monster Repellator II", - 3).getStackForm(1L)); + new GT_MetaTileEntity_MonsterRepellent( + 1148, + "basicmachine.mobrep.tier.03", + "Advanced Monster Repellator II", + 3).getStackForm(1L)); ItemList.MobRep_EV.set( - new GT_MetaTileEntity_MonsterRepellent( - 1149, - "basicmachine.mobrep.tier.04", - "Advanced Monster Repellator III", - 4).getStackForm(1L)); + new GT_MetaTileEntity_MonsterRepellent( + 1149, + "basicmachine.mobrep.tier.04", + "Advanced Monster Repellator III", + 4).getStackForm(1L)); ItemList.MobRep_IV.set( - new GT_MetaTileEntity_MonsterRepellent( - 1150, - "basicmachine.mobrep.tier.05", - "Advanced Monster Repellator IV", - 5).getStackForm(1L)); + new GT_MetaTileEntity_MonsterRepellent( + 1150, + "basicmachine.mobrep.tier.05", + "Advanced Monster Repellator IV", + 5).getStackForm(1L)); ItemList.MobRep_LuV.set( - new GT_MetaTileEntity_MonsterRepellent( - 1135, - "basicmachine.mobrep.tier.06", - "Advanced Monster Repellator V", - 6).getStackForm(1L)); + new GT_MetaTileEntity_MonsterRepellent( + 1135, + "basicmachine.mobrep.tier.06", + "Advanced Monster Repellator V", + 6).getStackForm(1L)); ItemList.MobRep_ZPM.set( - new GT_MetaTileEntity_MonsterRepellent( - 1136, - "basicmachine.mobrep.tier.07", - "Advanced Monster Repellator VI", - 7).getStackForm(1L)); + new GT_MetaTileEntity_MonsterRepellent( + 1136, + "basicmachine.mobrep.tier.07", + "Advanced Monster Repellator VI", + 7).getStackForm(1L)); ItemList.MobRep_UV.set( - new GT_MetaTileEntity_MonsterRepellent( - 1137, - "basicmachine.mobrep.tier.08", - "Advanced Monster Repellator VII", - 8).getStackForm(1L)); - - GT_ModHandler.addCraftingRecipe( - ItemList.MobRep_LV.get(1L), - bitsd, - new Object[] { "EEE", " M ", "CCC", 'M', ItemList.Hull_LV, 'E', ItemList.Emitter_LV.get(1L), 'C', - OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.MobRep_MV.get(1L), - bitsd, - new Object[] { "EEE", " M ", "CCC", 'M', ItemList.Hull_MV, 'E', ItemList.Emitter_MV.get(1L), 'C', - OrePrefixes.circuit.get(Materials.Good) }); - GT_ModHandler.addCraftingRecipe( - ItemList.MobRep_HV.get(1L), - bitsd, - new Object[] { "EEE", " M ", "CCC", 'M', ItemList.Hull_HV, 'E', ItemList.Emitter_HV.get(1L), 'C', - OrePrefixes.circuit.get(Materials.Advanced) }); - GT_ModHandler.addCraftingRecipe( - ItemList.MobRep_EV.get(1L), - bitsd, - new Object[] { "EEE", " M ", "CCC", 'M', ItemList.Hull_EV, 'E', ItemList.Emitter_EV.get(1L), 'C', - OrePrefixes.circuit.get(Materials.Data) }); - GT_ModHandler.addCraftingRecipe( - ItemList.MobRep_IV.get(1L), - bitsd, - new Object[] { "EEE", " M ", "CCC", 'M', ItemList.Hull_IV, 'E', ItemList.Emitter_IV.get(1L), 'C', - OrePrefixes.circuit.get(Materials.Elite) }); - GT_ModHandler.addCraftingRecipe( - ItemList.MobRep_LuV.get(1L), - bitsd, - new Object[] { "EEE", " M ", "CCC", 'M', ItemList.Hull_LuV, 'E', ItemList.Emitter_LuV.get(1L), 'C', - OrePrefixes.circuit.get(Materials.Master) }); - GT_ModHandler.addCraftingRecipe( - ItemList.MobRep_ZPM.get(1L), - bitsd, - new Object[] { "EEE", " M ", "CCC", 'M', ItemList.Hull_ZPM, 'E', ItemList.Emitter_ZPM.get(1L), 'C', - OrePrefixes.circuit.get(Materials.Ultimate) }); - GT_ModHandler.addCraftingRecipe( - ItemList.MobRep_UV.get(1L), - bitsd, - new Object[] { "EEE", " M ", "CCC", 'M', ItemList.Hull_UV, 'E', ItemList.Emitter_UV.get(1L), 'C', - OrePrefixes.circuit.get(Materials.SuperconductorUHV) }); + new GT_MetaTileEntity_MonsterRepellent( + 1137, + "basicmachine.mobrep.tier.08", + "Advanced Monster Repellator VII", + 8).getStackForm(1L)); + + GT_ModHandler.addCraftingRecipe( + ItemList.MobRep_LV.get(1L), + bitsd, + new Object[] { "EEE", " M ", "CCC", 'M', ItemList.Hull_LV, 'E', ItemList.Emitter_LV.get(1L), 'C', + OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.MobRep_MV.get(1L), + bitsd, + new Object[] { "EEE", " M ", "CCC", 'M', ItemList.Hull_MV, 'E', ItemList.Emitter_MV.get(1L), 'C', + OrePrefixes.circuit.get(Materials.Good) }); + GT_ModHandler.addCraftingRecipe( + ItemList.MobRep_HV.get(1L), + bitsd, + new Object[] { "EEE", " M ", "CCC", 'M', ItemList.Hull_HV, 'E', ItemList.Emitter_HV.get(1L), 'C', + OrePrefixes.circuit.get(Materials.Advanced) }); + GT_ModHandler.addCraftingRecipe( + ItemList.MobRep_EV.get(1L), + bitsd, + new Object[] { "EEE", " M ", "CCC", 'M', ItemList.Hull_EV, 'E', ItemList.Emitter_EV.get(1L), 'C', + OrePrefixes.circuit.get(Materials.Data) }); + GT_ModHandler.addCraftingRecipe( + ItemList.MobRep_IV.get(1L), + bitsd, + new Object[] { "EEE", " M ", "CCC", 'M', ItemList.Hull_IV, 'E', ItemList.Emitter_IV.get(1L), 'C', + OrePrefixes.circuit.get(Materials.Elite) }); + GT_ModHandler.addCraftingRecipe( + ItemList.MobRep_LuV.get(1L), + bitsd, + new Object[] { "EEE", " M ", "CCC", 'M', ItemList.Hull_LuV, 'E', ItemList.Emitter_LuV.get(1L), 'C', + OrePrefixes.circuit.get(Materials.Master) }); + GT_ModHandler.addCraftingRecipe( + ItemList.MobRep_ZPM.get(1L), + bitsd, + new Object[] { "EEE", " M ", "CCC", 'M', ItemList.Hull_ZPM, 'E', ItemList.Emitter_ZPM.get(1L), 'C', + OrePrefixes.circuit.get(Materials.Ultimate) }); + GT_ModHandler.addCraftingRecipe( + ItemList.MobRep_UV.get(1L), + bitsd, + new Object[] { "EEE", " M ", "CCC", 'M', ItemList.Hull_UV, 'E', ItemList.Emitter_UV.get(1L), 'C', + OrePrefixes.circuit.get(Materials.SuperconductorUHV) }); ItemList.Machine_Multi_HeatExchanger.set( - new GT_MetaTileEntity_HeatExchanger( - 1154, - "multimachine.heatexchanger", - "Large Heat Exchanger").getStackForm(1L)); + new GT_MetaTileEntity_HeatExchanger(1154, "multimachine.heatexchanger", "Large Heat Exchanger") + .getStackForm(1L)); GT_ModHandler.addCraftingRecipe( - ItemList.Machine_Multi_HeatExchanger.get(1L), - bitsd, - new Object[] { aTextWireCoil, aTextCableHull, aTextWireCoil, 'M', ItemList.Casing_Pipe_Titanium, 'C', - OrePrefixes.pipeMedium.get(Materials.Titanium), 'W', ItemList.Electric_Pump_EV }); + ItemList.Machine_Multi_HeatExchanger.get(1L), + bitsd, + new Object[] { aTextWireCoil, aTextCableHull, aTextWireCoil, 'M', ItemList.Casing_Pipe_Titanium, 'C', + OrePrefixes.pipeMedium.get(Materials.Titanium), 'W', ItemList.Electric_Pump_EV }); ItemList.Charcoal_Pile.set( - new GT_MetaTileEntity_Charcoal_Pit( - 1155, - "multimachine.charcoalpile", - "Charcoal Pile Igniter").getStackForm(1)); + new GT_MetaTileEntity_Charcoal_Pit(1155, "multimachine.charcoalpile", "Charcoal Pile Igniter") + .getStackForm(1)); GT_ModHandler.addCraftingRecipe( - ItemList.Charcoal_Pile.get(1L), - bitsd, - new Object[] { "EXE", "EME", "hCw", 'M', ItemList.Hull_HP_Bricks, 'E', - OrePrefixes.plate.get(Materials.AnyBronze), 'C', new ItemStack(Items.flint_and_steel, 1), 'X', - OrePrefixes.rotor.get(Materials.Steel), }); + ItemList.Charcoal_Pile.get(1L), + bitsd, + new Object[] { "EXE", "EME", "hCw", 'M', ItemList.Hull_HP_Bricks, 'E', + OrePrefixes.plate.get(Materials.AnyBronze), 'C', new ItemStack(Items.flint_and_steel, 1), 'X', + OrePrefixes.rotor.get(Materials.Steel), }); ItemList.Seismic_Prospector_LV.set( - new GT_MetaTileEntity_SeismicProspector( - 1156, - "basicmachine.seismicprospector.01", - "Seismic Prospector LV", - 1).getStackForm(1)); + new GT_MetaTileEntity_SeismicProspector( + 1156, + "basicmachine.seismicprospector.01", + "Seismic Prospector LV", + 1).getStackForm(1)); ItemList.Seismic_Prospector_MV.set( - new GT_MetaTileEntity_SeismicProspector( - 2100, - "basicmachine.seismicprospector.02", - "Seismic Prospector MV", - 2).getStackForm(1)); + new GT_MetaTileEntity_SeismicProspector( + 2100, + "basicmachine.seismicprospector.02", + "Seismic Prospector MV", + 2).getStackForm(1)); ItemList.Seismic_Prospector_HV.set( - new GT_MetaTileEntity_SeismicProspector( - 2101, - "basicmachine.seismicprospector.03", - "Seismic Prospector HV", - 3).getStackForm(1)); + new GT_MetaTileEntity_SeismicProspector( + 2101, + "basicmachine.seismicprospector.03", + "Seismic Prospector HV", + 3).getStackForm(1)); ItemList.Seismic_Prospector_Adv_LV.set( - new GT_MetaTileEntity_AdvSeismicProspector( - 2102, - "basicmachine.seismicprospector.07", - "Advanced Seismic Prospector LV", - 1, - 5 * 16 / 2, - 2).getStackForm(1)); + new GT_MetaTileEntity_AdvSeismicProspector( + 2102, + "basicmachine.seismicprospector.07", + "Advanced Seismic Prospector LV", + 1, + 5 * 16 / 2, + 2).getStackForm(1)); ItemList.Seismic_Prospector_Adv_MV.set( - new GT_MetaTileEntity_AdvSeismicProspector( - 2103, - "basicmachine.seismicprospector.06", - "Advanced Seismic Prospector MV", - 2, - 7 * 16 / 2, - 2).getStackForm(1)); + new GT_MetaTileEntity_AdvSeismicProspector( + 2103, + "basicmachine.seismicprospector.06", + "Advanced Seismic Prospector MV", + 2, + 7 * 16 / 2, + 2).getStackForm(1)); ItemList.Seismic_Prospector_Adv_HV.set( - new GT_MetaTileEntity_AdvSeismicProspector( - 2104, - "basicmachine.seismicprospector.05", - "Advanced Seismic Prospector HV", - 3, - 9 * 16 / 2, - 2).getStackForm(1)); + new GT_MetaTileEntity_AdvSeismicProspector( + 2104, + "basicmachine.seismicprospector.05", + "Advanced Seismic Prospector HV", + 3, + 9 * 16 / 2, + 2).getStackForm(1)); ItemList.Seismic_Prospector_Adv_EV.set( - new GT_MetaTileEntity_AdvSeismicProspector( - 1173, - "basicmachine.seismicprospector.04", - "Advanced Seismic Prospector EV", - 4, - 11 * 16 / 2, - 2).getStackForm(1)); + new GT_MetaTileEntity_AdvSeismicProspector( + 1173, + "basicmachine.seismicprospector.04", + "Advanced Seismic Prospector EV", + 4, + 11 * 16 / 2, + 2).getStackForm(1)); // Converter recipes in case you had old one lying around GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Seismic_Prospector_Adv_LV.get(1L), - bits, - new Object[] { ItemList.Seismic_Prospector_LV }); + ItemList.Seismic_Prospector_Adv_LV.get(1L), + bits, + new Object[] { ItemList.Seismic_Prospector_LV }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Seismic_Prospector_Adv_MV.get(1L), - bits, - new Object[] { ItemList.Seismic_Prospector_MV }); + ItemList.Seismic_Prospector_Adv_MV.get(1L), + bits, + new Object[] { ItemList.Seismic_Prospector_MV }); GT_ModHandler.addShapelessCraftingRecipe( - ItemList.Seismic_Prospector_Adv_HV.get(1L), - bits, - new Object[] { ItemList.Seismic_Prospector_HV }); - - GT_ModHandler.addCraftingRecipe( - ItemList.Seismic_Prospector_Adv_LV.get(1L), - bitsd, - new Object[] { "WWW", "EME", "CXC", 'M', ItemList.Hull_LV, 'W', - OrePrefixes.plateDouble.get(Materials.Steel), 'E', OrePrefixes.circuit.get(Materials.Basic), - 'C', ItemList.Sensor_LV, 'X', OrePrefixes.cableGt02.get(Materials.Tin) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Seismic_Prospector_Adv_MV.get(1L), - bitsd, - new Object[] { "WWW", "EME", "CXC", 'M', ItemList.Hull_MV, 'W', - OrePrefixes.plateDouble.get(Materials.BlackSteel), 'E', OrePrefixes.circuit.get(Materials.Good), - 'C', ItemList.Sensor_MV, 'X', OrePrefixes.cableGt02.get(Materials.Copper) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Seismic_Prospector_Adv_HV.get(1L), - bitsd, - new Object[] { "WWW", "EME", "CXC", 'M', ItemList.Hull_HV, 'W', - OrePrefixes.plateDouble.get(Materials.StainlessSteel), 'E', - OrePrefixes.circuit.get(Materials.Advanced), 'C', ItemList.Sensor_HV, 'X', - OrePrefixes.cableGt04.get(Materials.Gold) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Seismic_Prospector_Adv_EV.get(1L), - bitsd, - new Object[] { "WWW", "EME", "CXC", 'M', ItemList.Hull_EV, 'W', - OrePrefixes.plateDouble.get(Materials.VanadiumSteel), 'E', - OrePrefixes.circuit.get(Materials.Data), 'C', ItemList.Sensor_EV, 'X', - OrePrefixes.cableGt04.get(Materials.Aluminium) }); + ItemList.Seismic_Prospector_Adv_HV.get(1L), + bits, + new Object[] { ItemList.Seismic_Prospector_HV }); + + GT_ModHandler.addCraftingRecipe( + ItemList.Seismic_Prospector_Adv_LV.get(1L), + bitsd, + new Object[] { "WWW", "EME", "CXC", 'M', ItemList.Hull_LV, 'W', + OrePrefixes.plateDouble.get(Materials.Steel), 'E', OrePrefixes.circuit.get(Materials.Basic), 'C', + ItemList.Sensor_LV, 'X', OrePrefixes.cableGt02.get(Materials.Tin) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Seismic_Prospector_Adv_MV.get(1L), + bitsd, + new Object[] { "WWW", "EME", "CXC", 'M', ItemList.Hull_MV, 'W', + OrePrefixes.plateDouble.get(Materials.BlackSteel), 'E', OrePrefixes.circuit.get(Materials.Good), 'C', + ItemList.Sensor_MV, 'X', OrePrefixes.cableGt02.get(Materials.Copper) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Seismic_Prospector_Adv_HV.get(1L), + bitsd, + new Object[] { "WWW", "EME", "CXC", 'M', ItemList.Hull_HV, 'W', + OrePrefixes.plateDouble.get(Materials.StainlessSteel), 'E', OrePrefixes.circuit.get(Materials.Advanced), + 'C', ItemList.Sensor_HV, 'X', OrePrefixes.cableGt04.get(Materials.Gold) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Seismic_Prospector_Adv_EV.get(1L), + bitsd, + new Object[] { "WWW", "EME", "CXC", 'M', ItemList.Hull_EV, 'W', + OrePrefixes.plateDouble.get(Materials.VanadiumSteel), 'E', OrePrefixes.circuit.get(Materials.Data), 'C', + ItemList.Sensor_EV, 'X', OrePrefixes.cableGt04.get(Materials.Aluminium) }); ItemList.OilDrill1.set( - new GT_MetaTileEntity_OilDrill1( - 1157, - "multimachine.oildrill1", - "Oil/Gas/Fluid Drilling Rig").getStackForm(1)); + new GT_MetaTileEntity_OilDrill1(1157, "multimachine.oildrill1", "Oil/Gas/Fluid Drilling Rig") + .getStackForm(1)); ItemList.OilDrill2.set( - new GT_MetaTileEntity_OilDrill2( - 141, - "multimachine.oildrill2", - "Oil/Gas/Fluid Drilling Rig II").getStackForm(1)); + new GT_MetaTileEntity_OilDrill2(141, "multimachine.oildrill2", "Oil/Gas/Fluid Drilling Rig II") + .getStackForm(1)); ItemList.OilDrill3.set( - new GT_MetaTileEntity_OilDrill3( - 142, - "multimachine.oildrill3", - "Oil/Gas/Fluid Drilling Rig III").getStackForm(1)); + new GT_MetaTileEntity_OilDrill3(142, "multimachine.oildrill3", "Oil/Gas/Fluid Drilling Rig III") + .getStackForm(1)); ItemList.OilDrill4.set( - new GT_MetaTileEntity_OilDrill4( - 149, - "multimachine.oildrill4", - "Oil/Gas/Fluid Drilling Rig IV").getStackForm(1)); + new GT_MetaTileEntity_OilDrill4(149, "multimachine.oildrill4", "Oil/Gas/Fluid Drilling Rig IV") + .getStackForm(1)); ItemList.OilDrillInfinite.set( - new GT_MetaTileEntity_OilDrillInfinite( - 148, - "multimachine.oildrillinfinite", - "Infinite Oil/Gas/Fluid Drilling Rig").getStackForm(1)); + new GT_MetaTileEntity_OilDrillInfinite( + 148, + "multimachine.oildrillinfinite", + "Infinite Oil/Gas/Fluid Drilling Rig").getStackForm(1)); ItemList.ConcreteBackfiller1.set( - new GT_MetaTileEntity_ConcreteBackfiller1( - 143, - "multimachine.concretebackfiller1", - "Concrete Backfiller").getStackForm(1)); + new GT_MetaTileEntity_ConcreteBackfiller1(143, "multimachine.concretebackfiller1", "Concrete Backfiller") + .getStackForm(1)); ItemList.ConcreteBackfiller2.set( - new GT_MetaTileEntity_ConcreteBackfiller2( - 144, - "multimachine.concretebackfiller3", - "Advanced Concrete Backfiller").getStackForm(1)); - GT_ModHandler.addCraftingRecipe( - ItemList.ConcreteBackfiller1.get(1L), - bitsd, - new Object[] { "WPW", "EME", "CQC", 'M', ItemList.Hull_MV, 'W', - OrePrefixes.frameGt.get(Materials.Steel), 'E', OrePrefixes.circuit.get(Materials.Good), 'C', - ItemList.Electric_Motor_MV, 'P', OrePrefixes.pipeLarge.get(Materials.Steel), 'Q', - ItemList.Electric_Pump_MV }); - GT_ModHandler.addCraftingRecipe( - ItemList.ConcreteBackfiller2.get(1L), - bitsd, - new Object[] { "WPW", "EME", "CQC", 'M', ItemList.ConcreteBackfiller1, 'W', - OrePrefixes.frameGt.get(Materials.Titanium), 'E', OrePrefixes.circuit.get(Materials.Data), 'C', - ItemList.Electric_Motor_EV, 'P', OrePrefixes.pipeLarge.get(Materials.Steel), 'Q', - ItemList.Electric_Pump_EV }); + new GT_MetaTileEntity_ConcreteBackfiller2( + 144, + "multimachine.concretebackfiller3", + "Advanced Concrete Backfiller").getStackForm(1)); + GT_ModHandler.addCraftingRecipe( + ItemList.ConcreteBackfiller1.get(1L), + bitsd, + new Object[] { "WPW", "EME", "CQC", 'M', ItemList.Hull_MV, 'W', OrePrefixes.frameGt.get(Materials.Steel), + 'E', OrePrefixes.circuit.get(Materials.Good), 'C', ItemList.Electric_Motor_MV, 'P', + OrePrefixes.pipeLarge.get(Materials.Steel), 'Q', ItemList.Electric_Pump_MV }); + GT_ModHandler.addCraftingRecipe( + ItemList.ConcreteBackfiller2.get(1L), + bitsd, + new Object[] { "WPW", "EME", "CQC", 'M', ItemList.ConcreteBackfiller1, 'W', + OrePrefixes.frameGt.get(Materials.Titanium), 'E', OrePrefixes.circuit.get(Materials.Data), 'C', + ItemList.Electric_Motor_EV, 'P', OrePrefixes.pipeLarge.get(Materials.Steel), 'Q', + ItemList.Electric_Pump_EV }); ItemList.OreDrill1.set( - new GT_MetaTileEntity_OreDrillingPlant1( - 1158, - "multimachine.oredrill1", - "Ore Drilling Plant").getStackForm(1)); + new GT_MetaTileEntity_OreDrillingPlant1(1158, "multimachine.oredrill1", "Ore Drilling Plant") + .getStackForm(1)); ItemList.OreDrill2.set( - new GT_MetaTileEntity_OreDrillingPlant2( - 1177, - "multimachine.oredrill2", - "Ore Drilling Plant II").getStackForm(1)); + new GT_MetaTileEntity_OreDrillingPlant2(1177, "multimachine.oredrill2", "Ore Drilling Plant II") + .getStackForm(1)); ItemList.OreDrill3.set( - new GT_MetaTileEntity_OreDrillingPlant3( - 1178, - "multimachine.oredrill3", - "Ore Drilling Plant III").getStackForm(1)); + new GT_MetaTileEntity_OreDrillingPlant3(1178, "multimachine.oredrill3", "Ore Drilling Plant III") + .getStackForm(1)); ItemList.OreDrill4.set( - new GT_MetaTileEntity_OreDrillingPlant4( - 1179, - "multimachine.oredrill4", - "Ore Drilling Plant IV").getStackForm(1)); + new GT_MetaTileEntity_OreDrillingPlant4(1179, "multimachine.oredrill4", "Ore Drilling Plant IV") + .getStackForm(1)); - ItemList.PyrolyseOven.set( - new GT_MetaTileEntity_PyrolyseOven(1159, "multimachine.pyro", "Pyrolyse Oven").getStackForm(1)); + ItemList.PyrolyseOven + .set(new GT_MetaTileEntity_PyrolyseOven(1159, "multimachine.pyro", "Pyrolyse Oven").getStackForm(1)); GT_ModHandler.addCraftingRecipe( - ItemList.PyrolyseOven.get(1L), - bitsd, - new Object[] { "WEP", "EME", "WCP", 'M', ItemList.Hull_MV, 'W', ItemList.Electric_Piston_MV, 'P', - OrePrefixes.wireGt04.get(Materials.Cupronickel), 'E', OrePrefixes.circuit.get(Materials.Good), - 'C', ItemList.Electric_Pump_MV }); + ItemList.PyrolyseOven.get(1L), + bitsd, + new Object[] { "WEP", "EME", "WCP", 'M', ItemList.Hull_MV, 'W', ItemList.Electric_Piston_MV, 'P', + OrePrefixes.wireGt04.get(Materials.Cupronickel), 'E', OrePrefixes.circuit.get(Materials.Good), 'C', + ItemList.Electric_Pump_MV }); - ItemList.OilCracker.set( - new GT_MetaTileEntity_OilCracker(1160, "multimachine.cracker", "Oil Cracking Unit").getStackForm(1)); + ItemList.OilCracker + .set(new GT_MetaTileEntity_OilCracker(1160, "multimachine.cracker", "Oil Cracking Unit").getStackForm(1)); GT_ModHandler.addCraftingRecipe( - ItemList.OilCracker.get(1L), - bitsd, - new Object[] { aTextWireCoil, "EME", aTextWireCoil, 'M', ItemList.Hull_HV, 'W', - ItemList.Casing_Coil_Cupronickel, 'E', OrePrefixes.circuit.get(Materials.Advanced), 'C', - ItemList.Electric_Pump_HV }); + ItemList.OilCracker.get(1L), + bitsd, + new Object[] { aTextWireCoil, "EME", aTextWireCoil, 'M', ItemList.Hull_HV, 'W', + ItemList.Casing_Coil_Cupronickel, 'E', OrePrefixes.circuit.get(Materials.Advanced), 'C', + ItemList.Electric_Pump_HV }); ItemList.MicroTransmitter_HV.set( - new GT_MetaTileEntity_MicrowaveEnergyTransmitter( - 1161, - "basicmachine.microtransmitter.03", - "HV Microwave Energy Transmitter", - 3).getStackForm(1L)); + new GT_MetaTileEntity_MicrowaveEnergyTransmitter( + 1161, + "basicmachine.microtransmitter.03", + "HV Microwave Energy Transmitter", + 3).getStackForm(1L)); ItemList.MicroTransmitter_EV.set( - new GT_MetaTileEntity_MicrowaveEnergyTransmitter( - 1162, - "basicmachine.microtransmitter.04", - "EV Microwave Energy Transmitter", - 4).getStackForm(1L)); + new GT_MetaTileEntity_MicrowaveEnergyTransmitter( + 1162, + "basicmachine.microtransmitter.04", + "EV Microwave Energy Transmitter", + 4).getStackForm(1L)); ItemList.MicroTransmitter_IV.set( - new GT_MetaTileEntity_MicrowaveEnergyTransmitter( - 1163, - "basicmachine.microtransmitter.05", - "IV Microwave Energy Transmitter", - 5).getStackForm(1L)); + new GT_MetaTileEntity_MicrowaveEnergyTransmitter( + 1163, + "basicmachine.microtransmitter.05", + "IV Microwave Energy Transmitter", + 5).getStackForm(1L)); ItemList.MicroTransmitter_LUV.set( - new GT_MetaTileEntity_MicrowaveEnergyTransmitter( - 1164, - "basicmachine.microtransmitter.06", - "LuV Microwave Energy Transmitter", - 6).getStackForm(1L)); + new GT_MetaTileEntity_MicrowaveEnergyTransmitter( + 1164, + "basicmachine.microtransmitter.06", + "LuV Microwave Energy Transmitter", + 6).getStackForm(1L)); ItemList.MicroTransmitter_ZPM.set( - new GT_MetaTileEntity_MicrowaveEnergyTransmitter( - 1165, - "basicmachine.microtransmitter.07", - "ZPM Microwave Energy Transmitter", - 7).getStackForm(1L)); + new GT_MetaTileEntity_MicrowaveEnergyTransmitter( + 1165, + "basicmachine.microtransmitter.07", + "ZPM Microwave Energy Transmitter", + 7).getStackForm(1L)); ItemList.MicroTransmitter_UV.set( - new GT_MetaTileEntity_MicrowaveEnergyTransmitter( - 1166, - "basicmachine.microtransmitter.08", - "UV Microwave Energy Transmitter", - 8).getStackForm(1L)); - GT_ModHandler.addCraftingRecipe( - ItemList.MicroTransmitter_HV.get(1L), - bitsd, - new Object[] { "CPC", aTextCableHull, "GBG", 'M', ItemList.Hull_HV, 'B', ItemList.Battery_RE_HV_Lithium, - 'C', ItemList.Emitter_HV, 'G', OrePrefixes.circuit.get(Materials.Advanced), 'P', - ItemList.Field_Generator_HV }); - GT_ModHandler.addCraftingRecipe( - ItemList.MicroTransmitter_EV.get(1L), - bitsd, - new Object[] { "CPC", aTextCableHull, "GBG", 'M', ItemList.Hull_EV, 'B', - GT_ModHandler.getIC2Item("lapotronCrystal", 1L, GT_Values.W), 'C', ItemList.Emitter_EV, 'G', - OrePrefixes.circuit.get(Materials.Data), 'P', ItemList.Field_Generator_EV }); - GT_ModHandler.addCraftingRecipe( - ItemList.MicroTransmitter_IV.get(1L), - bitsd, - new Object[] { "CPC", aTextCableHull, "GBG", 'M', ItemList.Hull_IV, 'B', ItemList.Energy_LapotronicOrb, - 'C', ItemList.Emitter_IV, 'G', OrePrefixes.circuit.get(Materials.Elite), 'P', - ItemList.Field_Generator_IV }); - GT_ModHandler.addCraftingRecipe( - ItemList.MicroTransmitter_LUV.get(1L), - bitsd, - new Object[] { "CPC", aTextCableHull, "GBG", 'M', ItemList.Hull_LuV, 'B', - ItemList.Energy_LapotronicOrb2, 'C', ItemList.Emitter_LuV, 'G', - OrePrefixes.circuit.get(Materials.Master), 'P', ItemList.Field_Generator_LuV }); - GT_ModHandler.addCraftingRecipe( - ItemList.MicroTransmitter_ZPM.get(1L), - bitsd, - new Object[] { "CPC", aTextCableHull, "GBG", 'M', ItemList.Hull_ZPM, 'B', - GregTech_API.sOPStuff.get( - ConfigCategories.Recipes.gregtechrecipes, - "EnableZPMandUVBatteries", - false) ? ItemList.Energy_Module : ItemList.ZPM2, - 'C', ItemList.Emitter_ZPM, 'G', OrePrefixes.circuit.get(Materials.Ultimate), 'P', - ItemList.Field_Generator_ZPM }); - GT_ModHandler.addCraftingRecipe( - ItemList.MicroTransmitter_UV.get(1L), - bitsd, - new Object[] { "CPC", aTextCableHull, "GBG", 'M', ItemList.Hull_UV, 'B', - GregTech_API.sOPStuff.get( - ConfigCategories.Recipes.gregtechrecipes, - "EnableZPMandUVBatteries", - false) ? ItemList.Energy_Module : ItemList.ZPM3, - 'C', ItemList.Emitter_UV, 'G', OrePrefixes.circuit.get(Materials.SuperconductorUHV), 'P', - ItemList.Field_Generator_UV }); + new GT_MetaTileEntity_MicrowaveEnergyTransmitter( + 1166, + "basicmachine.microtransmitter.08", + "UV Microwave Energy Transmitter", + 8).getStackForm(1L)); + GT_ModHandler.addCraftingRecipe( + ItemList.MicroTransmitter_HV.get(1L), + bitsd, + new Object[] { "CPC", aTextCableHull, "GBG", 'M', ItemList.Hull_HV, 'B', ItemList.Battery_RE_HV_Lithium, + 'C', ItemList.Emitter_HV, 'G', OrePrefixes.circuit.get(Materials.Advanced), 'P', + ItemList.Field_Generator_HV }); + GT_ModHandler.addCraftingRecipe( + ItemList.MicroTransmitter_EV.get(1L), + bitsd, + new Object[] { "CPC", aTextCableHull, "GBG", 'M', ItemList.Hull_EV, 'B', + GT_ModHandler.getIC2Item("lapotronCrystal", 1L, GT_Values.W), 'C', ItemList.Emitter_EV, 'G', + OrePrefixes.circuit.get(Materials.Data), 'P', ItemList.Field_Generator_EV }); + GT_ModHandler.addCraftingRecipe( + ItemList.MicroTransmitter_IV.get(1L), + bitsd, + new Object[] { "CPC", aTextCableHull, "GBG", 'M', ItemList.Hull_IV, 'B', ItemList.Energy_LapotronicOrb, 'C', + ItemList.Emitter_IV, 'G', OrePrefixes.circuit.get(Materials.Elite), 'P', ItemList.Field_Generator_IV }); + GT_ModHandler.addCraftingRecipe( + ItemList.MicroTransmitter_LUV.get(1L), + bitsd, + new Object[] { "CPC", aTextCableHull, "GBG", 'M', ItemList.Hull_LuV, 'B', ItemList.Energy_LapotronicOrb2, + 'C', ItemList.Emitter_LuV, 'G', OrePrefixes.circuit.get(Materials.Master), 'P', + ItemList.Field_Generator_LuV }); + GT_ModHandler.addCraftingRecipe( + ItemList.MicroTransmitter_ZPM.get(1L), + bitsd, + new Object[] { "CPC", aTextCableHull, "GBG", 'M', ItemList.Hull_ZPM, 'B', + GregTech_API.sOPStuff.get(ConfigCategories.Recipes.gregtechrecipes, "EnableZPMandUVBatteries", false) + ? ItemList.Energy_Module + : ItemList.ZPM2, + 'C', ItemList.Emitter_ZPM, 'G', OrePrefixes.circuit.get(Materials.Ultimate), 'P', + ItemList.Field_Generator_ZPM }); + GT_ModHandler.addCraftingRecipe( + ItemList.MicroTransmitter_UV.get(1L), + bitsd, + new Object[] { "CPC", aTextCableHull, "GBG", 'M', ItemList.Hull_UV, 'B', + GregTech_API.sOPStuff.get(ConfigCategories.Recipes.gregtechrecipes, "EnableZPMandUVBatteries", false) + ? ItemList.Energy_Module + : ItemList.ZPM3, + 'C', ItemList.Emitter_UV, 'G', OrePrefixes.circuit.get(Materials.SuperconductorUHV), 'P', + ItemList.Field_Generator_UV }); ItemList.Machine_Multi_Assemblyline.set( - new GT_MetaTileEntity_AssemblyLine(1170, "multimachine.assemblyline", "Assembling Line").getStackForm( - 1L)); + new GT_MetaTileEntity_AssemblyLine(1170, "multimachine.assemblyline", "Assembling Line").getStackForm(1L)); GT_ModHandler.addCraftingRecipe( - ItemList.Machine_Multi_Assemblyline.get(1L), - bitsd, - new Object[] { aTextWireCoil, "EME", aTextWireCoil, 'M', ItemList.Hull_IV, 'W', - ItemList.Casing_Assembler, 'E', OrePrefixes.circuit.get(Materials.Elite), 'C', - ItemList.Robot_Arm_IV }); + ItemList.Machine_Multi_Assemblyline.get(1L), + bitsd, + new Object[] { aTextWireCoil, "EME", aTextWireCoil, 'M', ItemList.Hull_IV, 'W', ItemList.Casing_Assembler, + 'E', OrePrefixes.circuit.get(Materials.Elite), 'C', ItemList.Robot_Arm_IV }); ItemList.Machine_Multi_DieselEngine.set( - new GT_MetaTileEntity_DieselEngine(1171, "multimachine.dieselengine", "Combustion Engine").getStackForm( - 1L)); + new GT_MetaTileEntity_DieselEngine(1171, "multimachine.dieselengine", "Combustion Engine") + .getStackForm(1L)); GT_ModHandler.addCraftingRecipe( - ItemList.Machine_Multi_DieselEngine.get(1L), - bitsd, - new Object[] { "PCP", "EME", "GWG", 'M', ItemList.Hull_EV, 'P', ItemList.Electric_Piston_EV, 'E', - ItemList.Electric_Motor_EV, 'C', OrePrefixes.circuit.get(Materials.Elite), 'W', - OrePrefixes.cableGt01.get(Materials.TungstenSteel), 'G', - OrePrefixes.gearGt.get(Materials.Titanium) }); + ItemList.Machine_Multi_DieselEngine.get(1L), + bitsd, + new Object[] { "PCP", "EME", "GWG", 'M', ItemList.Hull_EV, 'P', ItemList.Electric_Piston_EV, 'E', + ItemList.Electric_Motor_EV, 'C', OrePrefixes.circuit.get(Materials.Elite), 'W', + OrePrefixes.cableGt01.get(Materials.TungstenSteel), 'G', OrePrefixes.gearGt.get(Materials.Titanium) }); GT_ModHandler.addCraftingRecipe( - ItemList.Casing_EngineIntake.get(4L), - bitsd, - new Object[] { "PhP", "RFR", aTextPlateWrench, 'R', OrePrefixes.pipeMedium.get(Materials.Titanium), 'F', - ItemList.Casing_StableTitanium, 'P', OrePrefixes.rotor.get(Materials.Titanium) }); + ItemList.Casing_EngineIntake.get(4L), + bitsd, + new Object[] { "PhP", "RFR", aTextPlateWrench, 'R', OrePrefixes.pipeMedium.get(Materials.Titanium), 'F', + ItemList.Casing_StableTitanium, 'P', OrePrefixes.rotor.get(Materials.Titanium) }); ItemList.Machine_Multi_ExtremeDieselEngine.set( - new GT_MetaTileEntity_ExtremeDieselEngine( - 2105, - "multimachine.extremedieselengine", - "Extreme Combustion Engine").getStackForm(1L)); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_Multi_ExtremeDieselEngine.get(1L), - bitsd, - new Object[] { "PCP", "EME", "GWG", 'M', ItemList.Hull_IV, 'P', ItemList.Electric_Piston_IV, 'E', - ItemList.Electric_Motor_IV, 'C', OrePrefixes.circuit.get(Materials.Master), 'W', - OrePrefixes.cableGt01.get(Materials.HSSG), 'G', - OrePrefixes.gearGt.get(Materials.TungstenSteel) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Casing_ExtremeEngineIntake.get(4L), - bitsd, - new Object[] { "PhP", "RFR", aTextPlateWrench, 'R', OrePrefixes.pipeMedium.get(Materials.TungstenSteel), - 'F', ItemList.Casing_RobustTungstenSteel, 'P', - OrePrefixes.rotor.get(Materials.TungstenSteel) }); + new GT_MetaTileEntity_ExtremeDieselEngine( + 2105, + "multimachine.extremedieselengine", + "Extreme Combustion Engine").getStackForm(1L)); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_Multi_ExtremeDieselEngine.get(1L), + bitsd, + new Object[] { "PCP", "EME", "GWG", 'M', ItemList.Hull_IV, 'P', ItemList.Electric_Piston_IV, 'E', + ItemList.Electric_Motor_IV, 'C', OrePrefixes.circuit.get(Materials.Master), 'W', + OrePrefixes.cableGt01.get(Materials.HSSG), 'G', OrePrefixes.gearGt.get(Materials.TungstenSteel) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Casing_ExtremeEngineIntake.get(4L), + bitsd, + new Object[] { "PhP", "RFR", aTextPlateWrench, 'R', OrePrefixes.pipeMedium.get(Materials.TungstenSteel), + 'F', ItemList.Casing_RobustTungstenSteel, 'P', OrePrefixes.rotor.get(Materials.TungstenSteel) }); ItemList.Machine_Multi_Cleanroom.set( - new GT_MetaTileEntity_Cleanroom(1172, "multimachine.cleanroom", "Cleanroom Controller").getStackForm( - 1)); + new GT_MetaTileEntity_Cleanroom(1172, "multimachine.cleanroom", "Cleanroom Controller").getStackForm(1)); // If Cleanroom is enabled, add a recipe, else hide from NEI. if (GT_Mod.gregtechproxy.mEnableCleanroom) { GT_ModHandler.addCraftingRecipe( - ItemList.Machine_Multi_Cleanroom.get(1L), - bitsd, - new Object[] { "FFF", "RHR", "MCM", 'H', ItemList.Hull_HV, 'F', ItemList.Component_Filter, 'R', - OrePrefixes.rotor.get(Materials.StainlessSteel), 'M', ItemList.Electric_Motor_HV, 'C', - OrePrefixes.circuit.get(Materials.Advanced) }); + ItemList.Machine_Multi_Cleanroom.get(1L), + bitsd, + new Object[] { "FFF", "RHR", "MCM", 'H', ItemList.Hull_HV, 'F', ItemList.Component_Filter, 'R', + OrePrefixes.rotor.get(Materials.StainlessSteel), 'M', ItemList.Electric_Motor_HV, 'C', + OrePrefixes.circuit.get(Materials.Advanced) }); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { ItemList.Hull_HV.get(1L), ItemList.Component_Filter.get(2L), - GT_OreDictUnificator.get(OrePrefixes.rotor, Materials.StainlessSteel, 1L), - ItemList.Electric_Motor_HV.get(1L), - GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Advanced, 1L), - GT_Utility.getIntegratedCircuit(1) }, - Materials.StainlessSteel.getMolten(864L), - ItemList.Machine_Multi_Cleanroom.get(1L), - 1200, - 120); + new ItemStack[] { ItemList.Hull_HV.get(1L), ItemList.Component_Filter.get(2L), + GT_OreDictUnificator.get(OrePrefixes.rotor, Materials.StainlessSteel, 1L), + ItemList.Electric_Motor_HV.get(1L), + GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Advanced, 1L), + GT_Utility.getIntegratedCircuit(1) }, + Materials.StainlessSteel.getMolten(864L), + ItemList.Machine_Multi_Cleanroom.get(1L), + 1200, + 120); } else { if (NotEnoughItems.isModLoaded()) { API.hideItem(ItemList.Machine_Multi_Cleanroom.get(1L)); @@ -9398,285 +8926,266 @@ public class GT_Loader_MetaTileEntities implements Runnable { // TODO CHECK CIRC } ItemList.Machine_LV_CircuitAssembler.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 1180, - "basicmachine.circuitassembler.tier.01", - "Basic Circuit Assembler", - 1, - "Pick-n-Place all over the place", - GT_Recipe.GT_Recipe_Map.sCircuitAssemblerRecipes, - 6, - 1, - 16000, - 0, - 1, - "CircuitAssembler.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "CIRCUITASSEMBLER", - new Object[] { "ACE", "VMV", aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'V', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'A', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROBOT_ARM, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.BETTER_CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.EMITTER }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 1180, + "basicmachine.circuitassembler.tier.01", + "Basic Circuit Assembler", + 1, + "Pick-n-Place all over the place", + GT_Recipe.GT_Recipe_Map.sCircuitAssemblerRecipes, + 6, + 1, + 16000, + 0, + 1, + "CircuitAssembler.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "CIRCUITASSEMBLER", + new Object[] { "ACE", "VMV", aTextWireCoil, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'V', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'A', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROBOT_ARM, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.BETTER_CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.EMITTER }).getStackForm(1L)); ItemList.Machine_MV_CircuitAssembler.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 1181, - "basicmachine.circuitassembler.tier.02", - "Advanced Circuit Assembler", - 2, - "Pick-n-Place all over the place", - GT_Recipe.GT_Recipe_Map.sCircuitAssemblerRecipes, - 6, - 1, - 16000, - 0, - 1, - "CircuitAssembler.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "CIRCUITASSEMBLER", - new Object[] { "ACE", "VMV", aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'V', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'A', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROBOT_ARM, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.BETTER_CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.EMITTER }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 1181, + "basicmachine.circuitassembler.tier.02", + "Advanced Circuit Assembler", + 2, + "Pick-n-Place all over the place", + GT_Recipe.GT_Recipe_Map.sCircuitAssemblerRecipes, + 6, + 1, + 16000, + 0, + 1, + "CircuitAssembler.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "CIRCUITASSEMBLER", + new Object[] { "ACE", "VMV", aTextWireCoil, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'V', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'A', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROBOT_ARM, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.BETTER_CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.EMITTER }).getStackForm(1L)); ItemList.Machine_HV_CircuitAssembler.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 1182, - "basicmachine.circuitassembler.tier.03", - "Advanced Circuit Assembler II", - 3, - "Pick-n-Place all over the place", - GT_Recipe.GT_Recipe_Map.sCircuitAssemblerRecipes, - 6, - 1, - 16000, - 0, - 1, - "CircuitAssembler.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "CIRCUITASSEMBLER", - new Object[] { "ACE", "VMV", aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'V', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'A', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROBOT_ARM, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.BETTER_CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.EMITTER }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 1182, + "basicmachine.circuitassembler.tier.03", + "Advanced Circuit Assembler II", + 3, + "Pick-n-Place all over the place", + GT_Recipe.GT_Recipe_Map.sCircuitAssemblerRecipes, + 6, + 1, + 16000, + 0, + 1, + "CircuitAssembler.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "CIRCUITASSEMBLER", + new Object[] { "ACE", "VMV", aTextWireCoil, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'V', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'A', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROBOT_ARM, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.BETTER_CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.EMITTER }).getStackForm(1L)); ItemList.Machine_EV_CircuitAssembler.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 1183, - "basicmachine.circuitassembler.tier.04", - "Advanced Circuit Assembler III", - 4, - "Pick-n-Place all over the place", - GT_Recipe.GT_Recipe_Map.sCircuitAssemblerRecipes, - 6, - 1, - 16000, - 0, - 1, - "CircuitAssembler.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "CIRCUITASSEMBLER", - new Object[] { "ACE", "VMV", aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'V', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'A', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROBOT_ARM, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.BETTER_CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.EMITTER }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 1183, + "basicmachine.circuitassembler.tier.04", + "Advanced Circuit Assembler III", + 4, + "Pick-n-Place all over the place", + GT_Recipe.GT_Recipe_Map.sCircuitAssemblerRecipes, + 6, + 1, + 16000, + 0, + 1, + "CircuitAssembler.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "CIRCUITASSEMBLER", + new Object[] { "ACE", "VMV", aTextWireCoil, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'V', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'A', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROBOT_ARM, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.BETTER_CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.EMITTER }).getStackForm(1L)); ItemList.Machine_IV_CircuitAssembler.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 1184, - "basicmachine.circuitassembler.tier.05", - "Advanced Circuit Assembler IV", - 5, - "Pick-n-Place all over the place", - GT_Recipe.GT_Recipe_Map.sCircuitAssemblerRecipes, - 6, - 1, - 16000, - 0, - 1, - "CircuitAssembler.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "CIRCUITASSEMBLER", - new Object[] { "ACE", "VMV", aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'V', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'A', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROBOT_ARM, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.BETTER_CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.EMITTER }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 1184, + "basicmachine.circuitassembler.tier.05", + "Advanced Circuit Assembler IV", + 5, + "Pick-n-Place all over the place", + GT_Recipe.GT_Recipe_Map.sCircuitAssemblerRecipes, + 6, + 1, + 16000, + 0, + 1, + "CircuitAssembler.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "CIRCUITASSEMBLER", + new Object[] { "ACE", "VMV", aTextWireCoil, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'V', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'A', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROBOT_ARM, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.BETTER_CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.EMITTER }).getStackForm(1L)); ItemList.Machine_LuV_CircuitAssembler.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 1185, - "basicmachine.circuitassembler.tier.06", - "Advanced Circuit Assembler V", - 6, - "Pick-n-Place all over the place", - GT_Recipe.GT_Recipe_Map.sCircuitAssemblerRecipes, - 6, - 1, - 16000, - 0, - 1, - "CircuitAssembler.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "CIRCUITASSEMBLER", - new Object[] { "ACE", "VMV", aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'V', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'A', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROBOT_ARM, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.BETTER_CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.EMITTER }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 1185, + "basicmachine.circuitassembler.tier.06", + "Advanced Circuit Assembler V", + 6, + "Pick-n-Place all over the place", + GT_Recipe.GT_Recipe_Map.sCircuitAssemblerRecipes, + 6, + 1, + 16000, + 0, + 1, + "CircuitAssembler.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "CIRCUITASSEMBLER", + new Object[] { "ACE", "VMV", aTextWireCoil, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'V', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'A', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROBOT_ARM, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.BETTER_CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.EMITTER }).getStackForm(1L)); ItemList.Machine_ZPM_CircuitAssembler.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 1186, - "basicmachine.circuitassembler.tier.07", - "Advanced Circuit Assembler VI", - 7, - "Pick-n-Place all over the place", - GT_Recipe.GT_Recipe_Map.sCircuitAssemblerRecipes, - 6, - 1, - 16000, - 0, - 1, - "CircuitAssembler.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "CIRCUITASSEMBLER", - new Object[] { "ACE", "VMV", aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'V', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'A', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROBOT_ARM, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.BETTER_CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.EMITTER }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 1186, + "basicmachine.circuitassembler.tier.07", + "Advanced Circuit Assembler VI", + 7, + "Pick-n-Place all over the place", + GT_Recipe.GT_Recipe_Map.sCircuitAssemblerRecipes, + 6, + 1, + 16000, + 0, + 1, + "CircuitAssembler.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "CIRCUITASSEMBLER", + new Object[] { "ACE", "VMV", aTextWireCoil, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'V', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'A', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROBOT_ARM, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.BETTER_CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.EMITTER }).getStackForm(1L)); ItemList.Machine_UV_CircuitAssembler.set( - new GT_MetaTileEntity_BasicMachine_GT_Recipe( - 1187, - "basicmachine.circuitassembler.tier.08", - "Advanced Circuit Assembler VII", - 8, - "Pick-n-Place all over the place", - GT_Recipe.GT_Recipe_Map.sCircuitAssemblerRecipes, - 6, - 1, - 16000, - 0, - 1, - "CircuitAssembler.png", - SoundResource.NONE, - false, - false, - SpecialEffects.NONE, - "CIRCUITASSEMBLER", - new Object[] { "ACE", "VMV", aTextWireCoil, 'M', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'V', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'A', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROBOT_ARM, 'C', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.BETTER_CIRCUIT, 'W', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'E', - GT_MetaTileEntity_BasicMachine_GT_Recipe.X.EMITTER }).getStackForm(1L)); + new GT_MetaTileEntity_BasicMachine_GT_Recipe( + 1187, + "basicmachine.circuitassembler.tier.08", + "Advanced Circuit Assembler VII", + 8, + "Pick-n-Place all over the place", + GT_Recipe.GT_Recipe_Map.sCircuitAssemblerRecipes, + 6, + 1, + 16000, + 0, + 1, + "CircuitAssembler.png", + SoundResource.NONE, + false, + false, + SpecialEffects.NONE, + "CIRCUITASSEMBLER", + new Object[] { "ACE", "VMV", aTextWireCoil, 'M', GT_MetaTileEntity_BasicMachine_GT_Recipe.X.HULL, 'V', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.CONVEYOR, 'A', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.ROBOT_ARM, 'C', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.BETTER_CIRCUIT, 'W', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.WIRE, 'E', + GT_MetaTileEntity_BasicMachine_GT_Recipe.X.EMITTER }).getStackForm(1L)); ItemList.Machine_HV_LightningRod.set( - new GT_MetaTileEntity_LightningRod( - 1174, - "basicgenerator.lightningrod.03", - "Lightning Rod", - 3).getStackForm(1)); + new GT_MetaTileEntity_LightningRod(1174, "basicgenerator.lightningrod.03", "Lightning Rod", 3) + .getStackForm(1)); GT_ModHandler.addCraftingRecipe( - ItemList.Machine_HV_LightningRod.get(1L), - bitsd, - new Object[] { "LTL", "TMT", "LTL", 'M', ItemList.Hull_LuV, 'L', ItemList.Energy_LapotronicOrb, 'T', - ItemList.Transformer_ZPM_LuV }); + ItemList.Machine_HV_LightningRod.get(1L), + bitsd, + new Object[] { "LTL", "TMT", "LTL", 'M', ItemList.Hull_LuV, 'L', ItemList.Energy_LapotronicOrb, 'T', + ItemList.Transformer_ZPM_LuV }); ItemList.Machine_EV_LightningRod.set( - new GT_MetaTileEntity_LightningRod( - 1175, - "basicgenerator.lightningrod.04", - "Lightning Rod II", - 4).getStackForm(1)); + new GT_MetaTileEntity_LightningRod(1175, "basicgenerator.lightningrod.04", "Lightning Rod II", 4) + .getStackForm(1)); GT_ModHandler.addCraftingRecipe( - ItemList.Machine_EV_LightningRod.get(1L), - bitsd, - new Object[] { "LTL", "TMT", "LTL", 'M', ItemList.Hull_ZPM, 'L', ItemList.Energy_LapotronicOrb2, 'T', - ItemList.Transformer_UV_ZPM }); + ItemList.Machine_EV_LightningRod.get(1L), + bitsd, + new Object[] { "LTL", "TMT", "LTL", 'M', ItemList.Hull_ZPM, 'L', ItemList.Energy_LapotronicOrb2, 'T', + ItemList.Transformer_UV_ZPM }); ItemList.Machine_IV_LightningRod.set( - new GT_MetaTileEntity_LightningRod( - 1176, - "basicgenerator.lightningrod.05", - "Lightning Rod III", - 5).getStackForm(1)); + new GT_MetaTileEntity_LightningRod(1176, "basicgenerator.lightningrod.05", "Lightning Rod III", 5) + .getStackForm(1)); GT_ModHandler.addCraftingRecipe( - ItemList.Machine_IV_LightningRod.get(1L), - bitsd, - new Object[] { "LTL", "TMT", "LTL", 'M', ItemList.Hull_UV, 'L', ItemList.ZPM2, 'T', - ItemList.Transformer_MAX_UV }); + ItemList.Machine_IV_LightningRod.get(1L), + bitsd, + new Object[] { "LTL", "TMT", "LTL", 'M', ItemList.Hull_UV, 'L', ItemList.ZPM2, 'T', + ItemList.Transformer_MAX_UV }); ItemList.Machine_Multi_LargeChemicalReactor.set( - new GT_MetaTileEntity_LargeChemicalReactor( - 1169, - "multimachine.chemicalreactor", - "Large Chemical Reactor").getStackForm(1)); - GT_ModHandler.addCraftingRecipe( - ItemList.Machine_Multi_LargeChemicalReactor.get(1L), - bitsd, - new Object[] { "CRC", "PMP", "CBC", 'C', OrePrefixes.circuit.get(Materials.Advanced), 'R', - OrePrefixes.rotor.get(Materials.StainlessSteel), 'P', - OrePrefixes.pipeLarge.get(Materials.Polytetrafluoroethylene), 'M', ItemList.Electric_Motor_HV, - 'B', ItemList.Hull_HV }); - - ItemList.PCBFactory.set( - new GT_MetaTileEntity_PCBFactory(356, "multimachine.pcbfactory", "PCB Factory").getStackForm(1)); + new GT_MetaTileEntity_LargeChemicalReactor(1169, "multimachine.chemicalreactor", "Large Chemical Reactor") + .getStackForm(1)); + GT_ModHandler.addCraftingRecipe( + ItemList.Machine_Multi_LargeChemicalReactor.get(1L), + bitsd, + new Object[] { "CRC", "PMP", "CBC", 'C', OrePrefixes.circuit.get(Materials.Advanced), 'R', + OrePrefixes.rotor.get(Materials.StainlessSteel), 'P', + OrePrefixes.pipeLarge.get(Materials.Polytetrafluoroethylene), 'M', ItemList.Electric_Motor_HV, 'B', + ItemList.Hull_HV }); + + ItemList.PCBFactory + .set(new GT_MetaTileEntity_PCBFactory(356, "multimachine.pcbfactory", "PCB Factory").getStackForm(1)); GT_PCBFactoryMaterialLoader.load(); - ItemList.NanoForge.set( - new GT_MetaTileEntity_NanoForge(357, "multimachine.nanoforge", "Nano Forge").getStackForm(1)); + ItemList.NanoForge + .set(new GT_MetaTileEntity_NanoForge(357, "multimachine.nanoforge", "Nano Forge").getStackForm(1)); } private static void run4() { long bits = GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE - | GT_ModHandler.RecipeBits.REVERSIBLE - | GT_ModHandler.RecipeBits.BUFFERED; + | GT_ModHandler.RecipeBits.REVERSIBLE + | GT_ModHandler.RecipeBits.BUFFERED; for (int i = 0; i < GregTech_API.sGeneratedMaterials.length; i++) { if (((GregTech_API.sGeneratedMaterials[i] != null) - && ((GregTech_API.sGeneratedMaterials[i].mTypes & 0x2) != 0)) - || (GregTech_API.sGeneratedMaterials[i] == Materials.Wood)) { + && ((GregTech_API.sGeneratedMaterials[i].mTypes & 0x2) != 0)) + || (GregTech_API.sGeneratedMaterials[i] == Materials.Wood)) { new GT_MetaPipeEntity_Frame( - 4096 + i, - "GT_Frame_" + GregTech_API.sGeneratedMaterials[i], - (GT_LanguageManager.i18nPlaceholder ? "%material" - : GregTech_API.sGeneratedMaterials[i] != null - ? GregTech_API.sGeneratedMaterials[i].mDefaultLocalName - : "") - + " Frame Box", - GregTech_API.sGeneratedMaterials[i]); + 4096 + i, + "GT_Frame_" + GregTech_API.sGeneratedMaterials[i], + (GT_LanguageManager.i18nPlaceholder ? "%material" + : GregTech_API.sGeneratedMaterials[i] != null + ? GregTech_API.sGeneratedMaterials[i].mDefaultLocalName + : "") + + " Frame Box", + GregTech_API.sGeneratedMaterials[i]); } } boolean bEC = !GT_Mod.gregtechproxy.mHardcoreCables; @@ -9691,339 +9200,339 @@ public class GT_Loader_MetaTileEntities implements Runnable { // TODO CHECK CIRC makeWires(Materials.SolderingAlloy, 1280, 1L, 2L, 1L, gregtech.api.enums.GT_Values.V[1], true, false); makeWires( - Materials.Iron, - 1300, - bEC ? 3L : 4L, - bEC ? 6L : 8L, - 2L, - gregtech.api.enums.GT_Values.V[2], - true, - false); + Materials.Iron, + 1300, + bEC ? 3L : 4L, + bEC ? 6L : 8L, + 2L, + gregtech.api.enums.GT_Values.V[2], + true, + false); makeWires( - Materials.Nickel, - 1320, - bEC ? 3L : 5L, - bEC ? 6L : 10L, - 3L, - gregtech.api.enums.GT_Values.V[2], - true, - false); + Materials.Nickel, + 1320, + bEC ? 3L : 5L, + bEC ? 6L : 10L, + 3L, + gregtech.api.enums.GT_Values.V[2], + true, + false); makeWires( - Materials.Cupronickel, - 1340, - bEC ? 3L : 4L, - bEC ? 6L : 8L, - 2L, - gregtech.api.enums.GT_Values.V[2], - true, - false); + Materials.Cupronickel, + 1340, + bEC ? 3L : 4L, + bEC ? 6L : 8L, + 2L, + gregtech.api.enums.GT_Values.V[2], + true, + false); makeWires( - Materials.Copper, - 1360, - bEC ? 2L : 3L, - bEC ? 4L : 6L, - 1L, - gregtech.api.enums.GT_Values.V[2], - true, - false); + Materials.Copper, + 1360, + bEC ? 2L : 3L, + bEC ? 4L : 6L, + 1L, + gregtech.api.enums.GT_Values.V[2], + true, + false); makeWires( - Materials.AnnealedCopper, - 1380, - bEC ? 1L : 2L, - bEC ? 2L : 4L, - 1L, - gregtech.api.enums.GT_Values.V[2], - true, - false); + Materials.AnnealedCopper, + 1380, + bEC ? 1L : 2L, + bEC ? 2L : 4L, + 1L, + gregtech.api.enums.GT_Values.V[2], + true, + false); makeWires( - Materials.Kanthal, - 1400, - bEC ? 3L : 8L, - bEC ? 6L : 16L, - 4L, - gregtech.api.enums.GT_Values.V[3], - true, - false); + Materials.Kanthal, + 1400, + bEC ? 3L : 8L, + bEC ? 6L : 16L, + 4L, + gregtech.api.enums.GT_Values.V[3], + true, + false); makeWires( - Materials.Gold, - 1420, - bEC ? 2L : 6L, - bEC ? 4L : 12L, - 3L, - gregtech.api.enums.GT_Values.V[3], - true, - false); + Materials.Gold, + 1420, + bEC ? 2L : 6L, + bEC ? 4L : 12L, + 3L, + gregtech.api.enums.GT_Values.V[3], + true, + false); makeWires( - Materials.Electrum, - 1440, - bEC ? 2L : 5L, - bEC ? 4L : 10L, - 2L, - gregtech.api.enums.GT_Values.V[3], - true, - false); + Materials.Electrum, + 1440, + bEC ? 2L : 5L, + bEC ? 4L : 10L, + 2L, + gregtech.api.enums.GT_Values.V[3], + true, + false); makeWires( - Materials.Silver, - 1460, - bEC ? 1L : 4L, - bEC ? 2L : 8L, - 1L, - gregtech.api.enums.GT_Values.V[3], - true, - false); + Materials.Silver, + 1460, + bEC ? 1L : 4L, + bEC ? 2L : 8L, + 1L, + gregtech.api.enums.GT_Values.V[3], + true, + false); makeWires( - Materials.BlueAlloy, - 1480, - bEC ? 1L : 4L, - bEC ? 2L : 8L, - 2L, - gregtech.api.enums.GT_Values.V[3], - true, - false); + Materials.BlueAlloy, + 1480, + bEC ? 1L : 4L, + bEC ? 2L : 8L, + 2L, + gregtech.api.enums.GT_Values.V[3], + true, + false); makeWires( - Materials.Nichrome, - 1500, - bEC ? 4L : 32L, - bEC ? 8L : 64L, - 3L, - gregtech.api.enums.GT_Values.V[4], - true, - false); + Materials.Nichrome, + 1500, + bEC ? 4L : 32L, + bEC ? 8L : 64L, + 3L, + gregtech.api.enums.GT_Values.V[4], + true, + false); makeWires( - Materials.Steel, - 1520, - bEC ? 2L : 16L, - bEC ? 4L : 32L, - 2L, - gregtech.api.enums.GT_Values.V[4], - true, - false); + Materials.Steel, + 1520, + bEC ? 2L : 16L, + bEC ? 4L : 32L, + 2L, + gregtech.api.enums.GT_Values.V[4], + true, + false); makeWires( - Materials.BlackSteel, - 1540, - bEC ? 2L : 14L, - bEC ? 4L : 28L, - 3L, - gregtech.api.enums.GT_Values.V[4], - true, - false); + Materials.BlackSteel, + 1540, + bEC ? 2L : 14L, + bEC ? 4L : 28L, + 3L, + gregtech.api.enums.GT_Values.V[4], + true, + false); makeWires( - Materials.Titanium, - 1560, - bEC ? 2L : 12L, - bEC ? 4L : 24L, - 4L, - gregtech.api.enums.GT_Values.V[4], - true, - false); + Materials.Titanium, + 1560, + bEC ? 2L : 12L, + bEC ? 4L : 24L, + 4L, + gregtech.api.enums.GT_Values.V[4], + true, + false); makeWires( - Materials.Aluminium, - 1580, - bEC ? 1L : 8L, - bEC ? 2L : 16L, - 1L, - gregtech.api.enums.GT_Values.V[4], - true, - false); + Materials.Aluminium, + 1580, + bEC ? 1L : 8L, + bEC ? 2L : 16L, + 1L, + gregtech.api.enums.GT_Values.V[4], + true, + false); makeWires( - Materials.Graphene, - 1600, - bEC ? 1L : 16L, - bEC ? 2L : 32L, - 1L, - gregtech.api.enums.GT_Values.V[5], - false, - true); + Materials.Graphene, + 1600, + bEC ? 1L : 16L, + bEC ? 2L : 32L, + 1L, + gregtech.api.enums.GT_Values.V[5], + false, + true); makeWires( - Materials.Osmium, - 1620, - bEC ? 2L : 32L, - bEC ? 4L : 64L, - 4L, - gregtech.api.enums.GT_Values.V[5], - true, - false); + Materials.Osmium, + 1620, + bEC ? 2L : 32L, + bEC ? 4L : 64L, + 4L, + gregtech.api.enums.GT_Values.V[5], + true, + false); makeWires( - Materials.Platinum, - 1640, - bEC ? 1L : 16L, - bEC ? 2L : 32L, - 2L, - gregtech.api.enums.GT_Values.V[5], - true, - false); + Materials.Platinum, + 1640, + bEC ? 1L : 16L, + bEC ? 2L : 32L, + 2L, + gregtech.api.enums.GT_Values.V[5], + true, + false); makeWires( - Materials.TungstenSteel, - 1660, - bEC ? 2L : 14L, - bEC ? 4L : 28L, - 3L, - gregtech.api.enums.GT_Values.V[5], - true, - false); + Materials.TungstenSteel, + 1660, + bEC ? 2L : 14L, + bEC ? 4L : 28L, + 3L, + gregtech.api.enums.GT_Values.V[5], + true, + false); makeWires( - Materials.Tungsten, - 1680, - bEC ? 2L : 12L, - bEC ? 4L : 24L, - 2L, - gregtech.api.enums.GT_Values.V[5], - true, - false); + Materials.Tungsten, + 1680, + bEC ? 2L : 12L, + bEC ? 4L : 24L, + 2L, + gregtech.api.enums.GT_Values.V[5], + true, + false); makeWires( - Materials.HSSG, - 1700, - bEC ? 2L : 128L, - bEC ? 4L : 256L, - 4L, - gregtech.api.enums.GT_Values.V[6], - true, - false); + Materials.HSSG, + 1700, + bEC ? 2L : 128L, + bEC ? 4L : 256L, + 4L, + gregtech.api.enums.GT_Values.V[6], + true, + false); makeWires( - Materials.NiobiumTitanium, - 1720, - bEC ? 2L : 128L, - bEC ? 4L : 256L, - 4L, - gregtech.api.enums.GT_Values.V[6], - true, - false); + Materials.NiobiumTitanium, + 1720, + bEC ? 2L : 128L, + bEC ? 4L : 256L, + 4L, + gregtech.api.enums.GT_Values.V[6], + true, + false); makeWires( - Materials.VanadiumGallium, - 1740, - bEC ? 2L : 128L, - bEC ? 4L : 256L, - 4L, - gregtech.api.enums.GT_Values.V[6], - true, - false); + Materials.VanadiumGallium, + 1740, + bEC ? 2L : 128L, + bEC ? 4L : 256L, + 4L, + gregtech.api.enums.GT_Values.V[6], + true, + false); makeWires( - Materials.YttriumBariumCuprate, - 1760, - bEC ? 4L : 256L, - bEC ? 8L : 512L, - 4L, - gregtech.api.enums.GT_Values.V[6], - true, - false); + Materials.YttriumBariumCuprate, + 1760, + bEC ? 4L : 256L, + bEC ? 8L : 512L, + 4L, + gregtech.api.enums.GT_Values.V[6], + true, + false); makeWires( - Materials.Naquadah, - 1780, - bEC ? 2L : 64L, - bEC ? 4L : 128L, - 2L, - gregtech.api.enums.GT_Values.V[7], - true, - false); + Materials.Naquadah, + 1780, + bEC ? 2L : 64L, + bEC ? 4L : 128L, + 2L, + gregtech.api.enums.GT_Values.V[7], + true, + false); makeWires( - Materials.NaquadahAlloy, - 1800, - bEC ? 4L : 64L, - bEC ? 8L : 128L, - 2L, - gregtech.api.enums.GT_Values.V[8], - true, - false); + Materials.NaquadahAlloy, + 1800, + bEC ? 4L : 64L, + bEC ? 8L : 128L, + 2L, + gregtech.api.enums.GT_Values.V[8], + true, + false); makeWires( - Materials.Duranium, - 1820, - bEC ? 8L : 64L, - bEC ? 16L : 128L, - 1L, - gregtech.api.enums.GT_Values.V[8], - true, - false); + Materials.Duranium, + 1820, + bEC ? 8L : 64L, + bEC ? 16L : 128L, + 1L, + gregtech.api.enums.GT_Values.V[8], + true, + false); makeWires( - Materials.TPV, - 1840, - bEC ? 1L : 14L, - bEC ? 2L : 28L, - 6L, - gregtech.api.enums.GT_Values.V[4], - true, - false); + Materials.TPV, + 1840, + bEC ? 1L : 14L, + bEC ? 2L : 28L, + 6L, + gregtech.api.enums.GT_Values.V[4], + true, + false); // Superconductor base. makeWires( - Materials.Pentacadmiummagnesiumhexaoxid, - 2200, - 1L, - 2L, - 1L, - gregtech.api.enums.GT_Values.V[2], - false, - false); + Materials.Pentacadmiummagnesiumhexaoxid, + 2200, + 1L, + 2L, + 1L, + gregtech.api.enums.GT_Values.V[2], + false, + false); makeWires( - Materials.Titaniumonabariumdecacoppereikosaoxid, - 2220, - 1L, - 8L, - 2L, - gregtech.api.enums.GT_Values.V[3], - false, - false); + Materials.Titaniumonabariumdecacoppereikosaoxid, + 2220, + 1L, + 8L, + 2L, + gregtech.api.enums.GT_Values.V[3], + false, + false); makeWires(Materials.Uraniumtriplatinid, 2240, 1L, 16L, 3L, gregtech.api.enums.GT_Values.V[4], false, false); makeWires(Materials.Vanadiumtriindinid, 2260, 1L, 64L, 4L, gregtech.api.enums.GT_Values.V[5], false, false); makeWires( - Materials.Tetraindiumditindibariumtitaniumheptacoppertetrakaidekaoxid, - 2280, - 2L, - 256L, - 6L, - gregtech.api.enums.GT_Values.V[6], - false, - false); + Materials.Tetraindiumditindibariumtitaniumheptacoppertetrakaidekaoxid, + 2280, + 2L, + 256L, + 6L, + gregtech.api.enums.GT_Values.V[6], + false, + false); makeWires( - Materials.Tetranaquadahdiindiumhexaplatiumosminid, - 2300, - 2L, - 1024L, - 8L, - gregtech.api.enums.GT_Values.V[7], - false, - false); + Materials.Tetranaquadahdiindiumhexaplatiumosminid, + 2300, + 2L, + 1024L, + 8L, + gregtech.api.enums.GT_Values.V[7], + false, + false); makeWires( - Materials.Longasssuperconductornameforuvwire, - 2500, - 2L, - 4096L, - 12L, - gregtech.api.enums.GT_Values.V[8], - false, - false); + Materials.Longasssuperconductornameforuvwire, + 2500, + 2L, + 4096L, + 12L, + gregtech.api.enums.GT_Values.V[8], + false, + false); makeWires( - Materials.Longasssuperconductornameforuhvwire, - 2520, - 2L, - 16384L, - 16L, - gregtech.api.enums.GT_Values.V[9], - false, - false); + Materials.Longasssuperconductornameforuhvwire, + 2520, + 2L, + 16384L, + 16L, + gregtech.api.enums.GT_Values.V[9], + false, + false); makeWires( - Materials.SuperconductorUEVBase, - 2032, - 2L, - 65536L, - 24L, - gregtech.api.enums.GT_Values.V[10], - false, - false); + Materials.SuperconductorUEVBase, + 2032, + 2L, + 65536L, + 24L, + gregtech.api.enums.GT_Values.V[10], + false, + false); makeWires( - Materials.SuperconductorUIVBase, - 2052, - 2L, - 262144L, - 32L, - gregtech.api.enums.GT_Values.V[11], - false, - false); + Materials.SuperconductorUIVBase, + 2052, + 2L, + 262144L, + 32L, + gregtech.api.enums.GT_Values.V[11], + false, + false); makeWires(Materials.SuperconductorUMVBase, 2072, 2L, 1048576L, 32L, GT_Values.V[12], false, false); // Actual superconductors. @@ -10044,56 +9553,49 @@ public class GT_Loader_MetaTileEntities implements Runnable { // TODO CHECK CIRC if (!GT_Mod.gregtechproxy.mDisableIC2Cables) { GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("copperCableItem", 2L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "xP", 'P', OrePrefixes.plate.get(Materials.AnyCopper) }); + GT_ModHandler.getIC2Item("copperCableItem", 2L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "xP", 'P', OrePrefixes.plate.get(Materials.AnyCopper) }); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("goldCableItem", 4L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "xP", 'P', OrePrefixes.plate.get(Materials.Gold) }); + GT_ModHandler.getIC2Item("goldCableItem", 4L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "xP", 'P', OrePrefixes.plate.get(Materials.Gold) }); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("ironCableItem", 3L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "xP", 'P', OrePrefixes.plate.get(Materials.AnyIron) }); + GT_ModHandler.getIC2Item("ironCableItem", 3L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "xP", 'P', OrePrefixes.plate.get(Materials.AnyIron) }); GT_ModHandler.addCraftingRecipe( - GT_ModHandler.getIC2Item("tinCableItem", 3L), - GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, - new Object[] { "xP", 'P', OrePrefixes.plate.get(Materials.Tin) }); + GT_ModHandler.getIC2Item("tinCableItem", 3L), + GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "xP", 'P', OrePrefixes.plate.get(Materials.Tin) }); } GT_OreDictUnificator.registerOre( - OrePrefixes.pipeSmall.get(Materials.Wood), - new GT_MetaPipeEntity_Fluid( - 5101, - "GT_Pipe_Wood_Small", - "Small Wooden Fluid Pipe", - 0.375F, - Materials.Wood, - 10, - 350, - false).getStackForm(1L)); + OrePrefixes.pipeSmall.get(Materials.Wood), + new GT_MetaPipeEntity_Fluid( + 5101, + "GT_Pipe_Wood_Small", + "Small Wooden Fluid Pipe", + 0.375F, + Materials.Wood, + 10, + 350, + false).getStackForm(1L)); GT_OreDictUnificator.registerOre( - OrePrefixes.pipeMedium.get(Materials.Wood), - new GT_MetaPipeEntity_Fluid( - 5102, - "GT_Pipe_Wood", - "Wooden Fluid Pipe", - 0.5F, - Materials.Wood, - 30, - 350, - false).getStackForm(1L)); + OrePrefixes.pipeMedium.get(Materials.Wood), + new GT_MetaPipeEntity_Fluid(5102, "GT_Pipe_Wood", "Wooden Fluid Pipe", 0.5F, Materials.Wood, 30, 350, false) + .getStackForm(1L)); GT_OreDictUnificator.registerOre( - OrePrefixes.pipeLarge.get(Materials.Wood), - new GT_MetaPipeEntity_Fluid( - 5103, - "GT_Pipe_Wood_Large", - "Large Wooden Fluid Pipe", - 0.75F, - Materials.Wood, - 60, - 350, - false).getStackForm(1L)); + OrePrefixes.pipeLarge.get(Materials.Wood), + new GT_MetaPipeEntity_Fluid( + 5103, + "GT_Pipe_Wood_Large", + "Large Wooden Fluid Pipe", + 0.75F, + Materials.Wood, + 60, + 350, + false).getStackForm(1L)); generateFluidPipes(Materials.Copper, Materials.Copper.mName, 5110, 20, 1000, true); generateFluidMultiPipes(Materials.Copper, Materials.Copper.mName, 5115, 20, 1000, true); @@ -10108,110 +9610,110 @@ public class GT_Loader_MetaTileEntities implements Runnable { // TODO CHECK CIRC generateFluidPipes(Materials.TungstenSteel, Materials.TungstenSteel.mName, 5160, 600, 7500, true); generateFluidMultiPipes(Materials.TungstenSteel, Materials.TungstenSteel.mName, 5270, 600, 7500, true); generateFluidPipes( - Materials.Polybenzimidazole, - Materials.Polybenzimidazole.mName, - "PBI", - 5280, - 600, - 1000, - true); + Materials.Polybenzimidazole, + Materials.Polybenzimidazole.mName, + "PBI", + 5280, + 600, + 1000, + true); generateFluidMultiPipes( - Materials.Polybenzimidazole, - Materials.Polybenzimidazole.mName, - "PBI", - 5290, - 600, - 1000, - true); + Materials.Polybenzimidazole, + Materials.Polybenzimidazole.mName, + "PBI", + 5290, + 600, + 1000, + true); GT_OreDictUnificator.registerOre( - OrePrefixes.pipeSmall.get(Materials.Ultimate), - new GT_MetaPipeEntity_Fluid( - 5165, - "GT_Pipe_HighPressure_Small", - "Small High Pressure Fluid Pipe", - 0.375F, - Materials.Redstone, - 4800, - 1500, - true).getStackForm(1L)); + OrePrefixes.pipeSmall.get(Materials.Ultimate), + new GT_MetaPipeEntity_Fluid( + 5165, + "GT_Pipe_HighPressure_Small", + "Small High Pressure Fluid Pipe", + 0.375F, + Materials.Redstone, + 4800, + 1500, + true).getStackForm(1L)); GT_OreDictUnificator.registerOre( - OrePrefixes.pipeMedium.get(Materials.Ultimate), - new GT_MetaPipeEntity_Fluid( - 5166, - "GT_Pipe_HighPressure", - "High Pressure Fluid Pipe", - 0.5F, - Materials.Redstone, - 7200, - 1500, - true).getStackForm(1L)); + OrePrefixes.pipeMedium.get(Materials.Ultimate), + new GT_MetaPipeEntity_Fluid( + 5166, + "GT_Pipe_HighPressure", + "High Pressure Fluid Pipe", + 0.5F, + Materials.Redstone, + 7200, + 1500, + true).getStackForm(1L)); GT_OreDictUnificator.registerOre( - OrePrefixes.pipeLarge.get(Materials.Ultimate), - new GT_MetaPipeEntity_Fluid( - 5167, - "GT_Pipe_HighPressure_Large", - "Large High Pressure Fluid Pipe", - 0.75F, - Materials.Redstone, - 9600, - 1500, - true).getStackForm(1L)); + OrePrefixes.pipeLarge.get(Materials.Ultimate), + new GT_MetaPipeEntity_Fluid( + 5167, + "GT_Pipe_HighPressure_Large", + "Large High Pressure Fluid Pipe", + 0.75F, + Materials.Redstone, + 9600, + 1500, + true).getStackForm(1L)); generateFluidPipes(Materials.Plastic, Materials.Plastic.mName, "Plastic", 5170, 360, 350, true); generateFluidMultiPipes(Materials.Plastic, Materials.Plastic.mName, "Plastic", 5175, 360, 350, true); generateFluidPipes( - Materials.Polytetrafluoroethylene, - Materials.Polytetrafluoroethylene.mName, - "PTFE", - 5680, - 480, - 600, - true); + Materials.Polytetrafluoroethylene, + Materials.Polytetrafluoroethylene.mName, + "PTFE", + 5680, + 480, + 600, + true); generateFluidMultiPipes( - Materials.Polytetrafluoroethylene, - Materials.Polytetrafluoroethylene.mName, - "PTFE", - 5685, - 480, - 600, - true); + Materials.Polytetrafluoroethylene, + Materials.Polytetrafluoroethylene.mName, + "PTFE", + 5685, + 480, + 600, + true); generateFluidPipes(Materials.SpaceTime, Materials.SpaceTime.mName, 5300, 250000, 2147483647, true); generateFluidMultiPipes(Materials.SpaceTime, Materials.SpaceTime.mName, 5305, 250000, 2147483647, true); generateFluidPipes( - Materials.TranscendentMetal, - Materials.TranscendentMetal.mName, - 5310, - 220000, - 2147483647, - true); + Materials.TranscendentMetal, + Materials.TranscendentMetal.mName, + 5310, + 220000, + 2147483647, + true); generateFluidMultiPipes( - Materials.TranscendentMetal, - Materials.TranscendentMetal.mName, - 5315, - 220000, - 2147483647, - true); + Materials.TranscendentMetal, + Materials.TranscendentMetal.mName, + 5315, + 220000, + 2147483647, + true); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.pipeSmall, Materials.TungstenSteel, 1L), - ItemList.Electric_Pump_EV.get(1L), GT_Utility.getIntegratedCircuit(5) }, - GT_Values.NF, - GT_OreDictUnificator.get(OrePrefixes.pipeSmall, Materials.Ultimate, 1L), - 300, - 1920); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.pipeSmall, Materials.TungstenSteel, 1L), + ItemList.Electric_Pump_EV.get(1L), GT_Utility.getIntegratedCircuit(5) }, + GT_Values.NF, + GT_OreDictUnificator.get(OrePrefixes.pipeSmall, Materials.Ultimate, 1L), + 300, + 1920); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.pipeMedium, Materials.TungstenSteel, 1L), - ItemList.Electric_Pump_IV.get(1L), GT_Utility.getIntegratedCircuit(5) }, - GT_Values.NF, - GT_OreDictUnificator.get(OrePrefixes.pipeMedium, Materials.Ultimate, 1L), - 400, - 4096); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.pipeMedium, Materials.TungstenSteel, 1L), + ItemList.Electric_Pump_IV.get(1L), GT_Utility.getIntegratedCircuit(5) }, + GT_Values.NF, + GT_OreDictUnificator.get(OrePrefixes.pipeMedium, Materials.Ultimate, 1L), + 400, + 4096); GT_Values.RA.addAssemblerRecipe( - new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.TungstenSteel, 1L), - ItemList.Electric_Pump_IV.get(2L), GT_Utility.getIntegratedCircuit(5) }, - GT_Values.NF, - GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.Ultimate, 1L), - 600, - 7680); + new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.TungstenSteel, 1L), + ItemList.Electric_Pump_IV.get(2L), GT_Utility.getIntegratedCircuit(5) }, + GT_Values.NF, + GT_OreDictUnificator.get(OrePrefixes.pipeLarge, Materials.Ultimate, 1L), + 600, + 7680); generateItemPipes(Materials.Brass, Materials.Brass.mName, 5602, 1); generateItemPipes(Materials.Electrum, Materials.Electrum.mName, 5612, 2); @@ -10223,1054 +9725,925 @@ public class GT_Loader_MetaTileEntities implements Runnable { // TODO CHECK CIRC generateItemPipes(Materials.Aluminium, Materials.Aluminium.mName, 5720, 2); ItemList.Automation_ChestBuffer_ULV.set( - new GT_MetaTileEntity_ChestBuffer( - 9230, - "automation.chestbuffer.tier.00", - "Ultra Low Voltage Chest Buffer", - 0).getStackForm(1L)); + new GT_MetaTileEntity_ChestBuffer( + 9230, + "automation.chestbuffer.tier.00", + "Ultra Low Voltage Chest Buffer", + 0).getStackForm(1L)); ItemList.Automation_ChestBuffer_LV.set( - new GT_MetaTileEntity_ChestBuffer( - 9231, - "automation.chestbuffer.tier.01", - "Low Voltage Chest Buffer", - 1).getStackForm(1L)); + new GT_MetaTileEntity_ChestBuffer(9231, "automation.chestbuffer.tier.01", "Low Voltage Chest Buffer", 1) + .getStackForm(1L)); ItemList.Automation_ChestBuffer_MV.set( - new GT_MetaTileEntity_ChestBuffer( - 9232, - "automation.chestbuffer.tier.02", - "Medium Voltage Chest Buffer", - 2).getStackForm(1L)); + new GT_MetaTileEntity_ChestBuffer(9232, "automation.chestbuffer.tier.02", "Medium Voltage Chest Buffer", 2) + .getStackForm(1L)); ItemList.Automation_ChestBuffer_HV.set( - new GT_MetaTileEntity_ChestBuffer( - 9233, - "automation.chestbuffer.tier.03", - "High Voltage Chest Buffer", - 3).getStackForm(1L)); + new GT_MetaTileEntity_ChestBuffer(9233, "automation.chestbuffer.tier.03", "High Voltage Chest Buffer", 3) + .getStackForm(1L)); ItemList.Automation_ChestBuffer_EV.set( - new GT_MetaTileEntity_ChestBuffer( - 9234, - "automation.chestbuffer.tier.04", - "Extreme Voltage Chest Buffer", - 4).getStackForm(1L)); + new GT_MetaTileEntity_ChestBuffer(9234, "automation.chestbuffer.tier.04", "Extreme Voltage Chest Buffer", 4) + .getStackForm(1L)); ItemList.Automation_ChestBuffer_IV.set( - new GT_MetaTileEntity_ChestBuffer( - 9235, - "automation.chestbuffer.tier.05", - "Insane Voltage Chest Buffer", - 5).getStackForm(1L)); + new GT_MetaTileEntity_ChestBuffer(9235, "automation.chestbuffer.tier.05", "Insane Voltage Chest Buffer", 5) + .getStackForm(1L)); ItemList.Automation_ChestBuffer_LuV.set( - new GT_MetaTileEntity_ChestBuffer( - 9236, - "automation.chestbuffer.tier.06", - "Ludicrous Voltage Chest Buffer", - 6).getStackForm(1L)); + new GT_MetaTileEntity_ChestBuffer( + 9236, + "automation.chestbuffer.tier.06", + "Ludicrous Voltage Chest Buffer", + 6).getStackForm(1L)); ItemList.Automation_ChestBuffer_ZPM.set( - new GT_MetaTileEntity_ChestBuffer( - 9237, - "automation.chestbuffer.tier.07", - "ZPM Voltage Chest Buffer", - 7).getStackForm(1L)); + new GT_MetaTileEntity_ChestBuffer(9237, "automation.chestbuffer.tier.07", "ZPM Voltage Chest Buffer", 7) + .getStackForm(1L)); ItemList.Automation_ChestBuffer_UV.set( - new GT_MetaTileEntity_ChestBuffer( - 9238, - "automation.chestbuffer.tier.08", - "Ultimate Voltage Chest Buffer", - 8).getStackForm(1L)); + new GT_MetaTileEntity_ChestBuffer( + 9238, + "automation.chestbuffer.tier.08", + "Ultimate Voltage Chest Buffer", + 8).getStackForm(1L)); ItemList.Automation_ChestBuffer_MAX.set( - new GT_MetaTileEntity_ChestBuffer( - 9239, - "automation.chestbuffer.tier.09", - "Highly Ultimate Voltage Chest Buffer", - 9).getStackForm(1L)); - - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_ChestBuffer_ULV.get(1L), - bits, - new Object[] { "CMV", " X ", 'M', ItemList.Hull_ULV, 'V', ItemList.Conveyor_Module_LV, 'C', - OreDictNames.craftingChest, 'X', OrePrefixes.circuit.get(Materials.Primitive) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_ChestBuffer_LV.get(1L), - bits, - new Object[] { "CMV", " X ", 'M', ItemList.Hull_LV, 'V', ItemList.Conveyor_Module_LV, 'C', - OreDictNames.craftingChest, 'X', OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_ChestBuffer_MV.get(1L), - bits, - new Object[] { "CMV", " X ", 'M', ItemList.Hull_MV, 'V', ItemList.Conveyor_Module_MV, 'C', - OreDictNames.craftingChest, 'X', OrePrefixes.circuit.get(Materials.Good) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_ChestBuffer_HV.get(1L), - bits, - new Object[] { "CMV", " X ", 'M', ItemList.Hull_HV, 'V', ItemList.Conveyor_Module_HV, 'C', - OreDictNames.craftingChest, 'X', OrePrefixes.circuit.get(Materials.Advanced) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_ChestBuffer_EV.get(1L), - bits, - new Object[] { "CMV", " X ", 'M', ItemList.Hull_EV, 'V', ItemList.Conveyor_Module_EV, 'C', - OreDictNames.craftingChest, 'X', OrePrefixes.circuit.get(Materials.Data) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_ChestBuffer_IV.get(1L), - bits, - new Object[] { "CMV", " X ", 'M', ItemList.Hull_IV, 'V', ItemList.Conveyor_Module_IV, 'C', - OreDictNames.craftingChest, 'X', OrePrefixes.circuit.get(Materials.Elite) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_ChestBuffer_LuV.get(1L), - bits, - new Object[] { "CMV", " X ", 'M', ItemList.Hull_LuV, 'V', ItemList.Conveyor_Module_LuV, 'C', - OreDictNames.craftingChest, 'X', OrePrefixes.circuit.get(Materials.Master) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_ChestBuffer_ZPM.get(1L), - bits, - new Object[] { "CMV", " X ", 'M', ItemList.Hull_ZPM, 'V', ItemList.Conveyor_Module_ZPM, 'C', - OreDictNames.craftingChest, 'X', OrePrefixes.circuit.get(Materials.Ultimate) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_ChestBuffer_UV.get(1L), - bits, - new Object[] { "CMV", " X ", 'M', ItemList.Hull_UV, 'V', ItemList.Conveyor_Module_UV, 'C', - OreDictNames.craftingChest, 'X', OrePrefixes.circuit.get(Materials.SuperconductorUHV) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_ChestBuffer_MAX.get(1L), - bits, - new Object[] { "CMV", " X ", 'M', ItemList.Hull_MAX, 'V', ItemList.Conveyor_Module_UHV, 'C', - OreDictNames.craftingChest, 'X', OrePrefixes.circuit.get(Materials.Infinite) }); + new GT_MetaTileEntity_ChestBuffer( + 9239, + "automation.chestbuffer.tier.09", + "Highly Ultimate Voltage Chest Buffer", + 9).getStackForm(1L)); + + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_ChestBuffer_ULV.get(1L), + bits, + new Object[] { "CMV", " X ", 'M', ItemList.Hull_ULV, 'V', ItemList.Conveyor_Module_LV, 'C', + OreDictNames.craftingChest, 'X', OrePrefixes.circuit.get(Materials.Primitive) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_ChestBuffer_LV.get(1L), + bits, + new Object[] { "CMV", " X ", 'M', ItemList.Hull_LV, 'V', ItemList.Conveyor_Module_LV, 'C', + OreDictNames.craftingChest, 'X', OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_ChestBuffer_MV.get(1L), + bits, + new Object[] { "CMV", " X ", 'M', ItemList.Hull_MV, 'V', ItemList.Conveyor_Module_MV, 'C', + OreDictNames.craftingChest, 'X', OrePrefixes.circuit.get(Materials.Good) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_ChestBuffer_HV.get(1L), + bits, + new Object[] { "CMV", " X ", 'M', ItemList.Hull_HV, 'V', ItemList.Conveyor_Module_HV, 'C', + OreDictNames.craftingChest, 'X', OrePrefixes.circuit.get(Materials.Advanced) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_ChestBuffer_EV.get(1L), + bits, + new Object[] { "CMV", " X ", 'M', ItemList.Hull_EV, 'V', ItemList.Conveyor_Module_EV, 'C', + OreDictNames.craftingChest, 'X', OrePrefixes.circuit.get(Materials.Data) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_ChestBuffer_IV.get(1L), + bits, + new Object[] { "CMV", " X ", 'M', ItemList.Hull_IV, 'V', ItemList.Conveyor_Module_IV, 'C', + OreDictNames.craftingChest, 'X', OrePrefixes.circuit.get(Materials.Elite) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_ChestBuffer_LuV.get(1L), + bits, + new Object[] { "CMV", " X ", 'M', ItemList.Hull_LuV, 'V', ItemList.Conveyor_Module_LuV, 'C', + OreDictNames.craftingChest, 'X', OrePrefixes.circuit.get(Materials.Master) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_ChestBuffer_ZPM.get(1L), + bits, + new Object[] { "CMV", " X ", 'M', ItemList.Hull_ZPM, 'V', ItemList.Conveyor_Module_ZPM, 'C', + OreDictNames.craftingChest, 'X', OrePrefixes.circuit.get(Materials.Ultimate) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_ChestBuffer_UV.get(1L), + bits, + new Object[] { "CMV", " X ", 'M', ItemList.Hull_UV, 'V', ItemList.Conveyor_Module_UV, 'C', + OreDictNames.craftingChest, 'X', OrePrefixes.circuit.get(Materials.SuperconductorUHV) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_ChestBuffer_MAX.get(1L), + bits, + new Object[] { "CMV", " X ", 'M', ItemList.Hull_MAX, 'V', ItemList.Conveyor_Module_UHV, 'C', + OreDictNames.craftingChest, 'X', OrePrefixes.circuit.get(Materials.Infinite) }); ItemList.Automation_Filter_ULV.set( - new GT_MetaTileEntity_Filter( - 9240, - "automation.filter.tier.00", - "Ultra Low Voltage Item Filter", - 0).getStackForm(1L)); + new GT_MetaTileEntity_Filter(9240, "automation.filter.tier.00", "Ultra Low Voltage Item Filter", 0) + .getStackForm(1L)); ItemList.Automation_Filter_LV.set( - new GT_MetaTileEntity_Filter( - 9241, - "automation.filter.tier.01", - "Low Voltage Item Filter", - 1).getStackForm(1L)); + new GT_MetaTileEntity_Filter(9241, "automation.filter.tier.01", "Low Voltage Item Filter", 1) + .getStackForm(1L)); ItemList.Automation_Filter_MV.set( - new GT_MetaTileEntity_Filter( - 9242, - "automation.filter.tier.02", - "Medium Voltage Item Filter", - 2).getStackForm(1L)); + new GT_MetaTileEntity_Filter(9242, "automation.filter.tier.02", "Medium Voltage Item Filter", 2) + .getStackForm(1L)); ItemList.Automation_Filter_HV.set( - new GT_MetaTileEntity_Filter( - 9243, - "automation.filter.tier.03", - "High Voltage Item Filter", - 3).getStackForm(1L)); + new GT_MetaTileEntity_Filter(9243, "automation.filter.tier.03", "High Voltage Item Filter", 3) + .getStackForm(1L)); ItemList.Automation_Filter_EV.set( - new GT_MetaTileEntity_Filter( - 9244, - "automation.filter.tier.04", - "Extreme Voltage Item Filter", - 4).getStackForm(1L)); + new GT_MetaTileEntity_Filter(9244, "automation.filter.tier.04", "Extreme Voltage Item Filter", 4) + .getStackForm(1L)); ItemList.Automation_Filter_IV.set( - new GT_MetaTileEntity_Filter( - 9245, - "automation.filter.tier.05", - "Insane Voltage Item Filter", - 5).getStackForm(1L)); + new GT_MetaTileEntity_Filter(9245, "automation.filter.tier.05", "Insane Voltage Item Filter", 5) + .getStackForm(1L)); ItemList.Automation_Filter_LuV.set( - new GT_MetaTileEntity_Filter( - 9246, - "automation.filter.tier.06", - "Ludicrous Voltage Item Filter", - 6).getStackForm(1L)); + new GT_MetaTileEntity_Filter(9246, "automation.filter.tier.06", "Ludicrous Voltage Item Filter", 6) + .getStackForm(1L)); ItemList.Automation_Filter_ZPM.set( - new GT_MetaTileEntity_Filter( - 9247, - "automation.filter.tier.07", - "ZPM Voltage Item Filter", - 7).getStackForm(1L)); + new GT_MetaTileEntity_Filter(9247, "automation.filter.tier.07", "ZPM Voltage Item Filter", 7) + .getStackForm(1L)); ItemList.Automation_Filter_UV.set( - new GT_MetaTileEntity_Filter( - 9248, - "automation.filter.tier.08", - "Ultimate Voltage Item Filter", - 8).getStackForm(1L)); + new GT_MetaTileEntity_Filter(9248, "automation.filter.tier.08", "Ultimate Voltage Item Filter", 8) + .getStackForm(1L)); ItemList.Automation_Filter_MAX.set( - new GT_MetaTileEntity_Filter( - 9249, - "automation.filter.tier.09", - "Highly Ultimate Voltage Item Filter", - 9).getStackForm(1L)); - - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_Filter_ULV.get(1L), - bits, - new Object[] { " F ", "CMV", " X ", 'M', ItemList.Hull_ULV, 'V', ItemList.Conveyor_Module_LV, 'C', - OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', - OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_Filter_LV.get(1L), - bits, - new Object[] { " F ", "CMV", " X ", 'M', ItemList.Hull_LV, 'V', ItemList.Conveyor_Module_LV, 'C', - OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', - OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_Filter_MV.get(1L), - bits, - new Object[] { " F ", "CMV", " X ", 'M', ItemList.Hull_MV, 'V', ItemList.Conveyor_Module_MV, 'C', - OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', - OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_Filter_HV.get(1L), - bits, - new Object[] { " F ", "CMV", " X ", 'M', ItemList.Hull_HV, 'V', ItemList.Conveyor_Module_HV, 'C', - OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', - OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_Filter_EV.get(1L), - bits, - new Object[] { " F ", "CMV", " X ", 'M', ItemList.Hull_EV, 'V', ItemList.Conveyor_Module_EV, 'C', - OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', - OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_Filter_IV.get(1L), - bits, - new Object[] { " F ", "CMV", " X ", 'M', ItemList.Hull_IV, 'V', ItemList.Conveyor_Module_IV, 'C', - OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', - OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_Filter_LuV.get(1L), - bits, - new Object[] { " F ", "CMV", " X ", 'M', ItemList.Hull_LuV, 'V', ItemList.Conveyor_Module_LuV, 'C', - OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', - OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_Filter_ZPM.get(1L), - bits, - new Object[] { " F ", "CMV", " X ", 'M', ItemList.Hull_ZPM, 'V', ItemList.Conveyor_Module_ZPM, 'C', - OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', - OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_Filter_UV.get(1L), - bits, - new Object[] { " F ", "CMV", " X ", 'M', ItemList.Hull_UV, 'V', ItemList.Conveyor_Module_UV, 'C', - OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', - OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_Filter_MAX.get(1L), - bits, - new Object[] { " F ", "CMV", " X ", 'M', ItemList.Hull_MAX, 'V', ItemList.Conveyor_Module_UHV, 'C', - OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', - OrePrefixes.circuit.get(Materials.Basic) }); + new GT_MetaTileEntity_Filter(9249, "automation.filter.tier.09", "Highly Ultimate Voltage Item Filter", 9) + .getStackForm(1L)); + + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_Filter_ULV.get(1L), + bits, + new Object[] { " F ", "CMV", " X ", 'M', ItemList.Hull_ULV, 'V', ItemList.Conveyor_Module_LV, 'C', + OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', + OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_Filter_LV.get(1L), + bits, + new Object[] { " F ", "CMV", " X ", 'M', ItemList.Hull_LV, 'V', ItemList.Conveyor_Module_LV, 'C', + OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', + OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_Filter_MV.get(1L), + bits, + new Object[] { " F ", "CMV", " X ", 'M', ItemList.Hull_MV, 'V', ItemList.Conveyor_Module_MV, 'C', + OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', + OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_Filter_HV.get(1L), + bits, + new Object[] { " F ", "CMV", " X ", 'M', ItemList.Hull_HV, 'V', ItemList.Conveyor_Module_HV, 'C', + OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', + OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_Filter_EV.get(1L), + bits, + new Object[] { " F ", "CMV", " X ", 'M', ItemList.Hull_EV, 'V', ItemList.Conveyor_Module_EV, 'C', + OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', + OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_Filter_IV.get(1L), + bits, + new Object[] { " F ", "CMV", " X ", 'M', ItemList.Hull_IV, 'V', ItemList.Conveyor_Module_IV, 'C', + OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', + OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_Filter_LuV.get(1L), + bits, + new Object[] { " F ", "CMV", " X ", 'M', ItemList.Hull_LuV, 'V', ItemList.Conveyor_Module_LuV, 'C', + OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', + OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_Filter_ZPM.get(1L), + bits, + new Object[] { " F ", "CMV", " X ", 'M', ItemList.Hull_ZPM, 'V', ItemList.Conveyor_Module_ZPM, 'C', + OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', + OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_Filter_UV.get(1L), + bits, + new Object[] { " F ", "CMV", " X ", 'M', ItemList.Hull_UV, 'V', ItemList.Conveyor_Module_UV, 'C', + OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', + OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_Filter_MAX.get(1L), + bits, + new Object[] { " F ", "CMV", " X ", 'M', ItemList.Hull_MAX, 'V', ItemList.Conveyor_Module_UHV, 'C', + OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', + OrePrefixes.circuit.get(Materials.Basic) }); ItemList.Automation_TypeFilter_ULV.set( - new GT_MetaTileEntity_TypeFilter( - 9250, - "automation.typefilter.tier.00", - "Ultra Low Voltage Type Filter", - 0).getStackForm(1L)); + new GT_MetaTileEntity_TypeFilter(9250, "automation.typefilter.tier.00", "Ultra Low Voltage Type Filter", 0) + .getStackForm(1L)); ItemList.Automation_TypeFilter_LV.set( - new GT_MetaTileEntity_TypeFilter( - 9251, - "automation.typefilter.tier.01", - "Low Voltage Type Filter", - 1).getStackForm(1L)); + new GT_MetaTileEntity_TypeFilter(9251, "automation.typefilter.tier.01", "Low Voltage Type Filter", 1) + .getStackForm(1L)); ItemList.Automation_TypeFilter_MV.set( - new GT_MetaTileEntity_TypeFilter( - 9252, - "automation.typefilter.tier.02", - "Medium Voltage Type Filter", - 2).getStackForm(1L)); + new GT_MetaTileEntity_TypeFilter(9252, "automation.typefilter.tier.02", "Medium Voltage Type Filter", 2) + .getStackForm(1L)); ItemList.Automation_TypeFilter_HV.set( - new GT_MetaTileEntity_TypeFilter( - 9253, - "automation.typefilter.tier.03", - "High Voltage Type Filter", - 3).getStackForm(1L)); + new GT_MetaTileEntity_TypeFilter(9253, "automation.typefilter.tier.03", "High Voltage Type Filter", 3) + .getStackForm(1L)); ItemList.Automation_TypeFilter_EV.set( - new GT_MetaTileEntity_TypeFilter( - 9254, - "automation.typefilter.tier.04", - "Extreme Voltage Type Filter", - 4).getStackForm(1L)); + new GT_MetaTileEntity_TypeFilter(9254, "automation.typefilter.tier.04", "Extreme Voltage Type Filter", 4) + .getStackForm(1L)); ItemList.Automation_TypeFilter_IV.set( - new GT_MetaTileEntity_TypeFilter( - 9255, - "automation.typefilter.tier.05", - "Insane Voltage Type Filter", - 5).getStackForm(1L)); + new GT_MetaTileEntity_TypeFilter(9255, "automation.typefilter.tier.05", "Insane Voltage Type Filter", 5) + .getStackForm(1L)); ItemList.Automation_TypeFilter_LuV.set( - new GT_MetaTileEntity_TypeFilter( - 9256, - "automation.typefilter.tier.06", - "Ludicrous Voltage Type Filter", - 6).getStackForm(1L)); + new GT_MetaTileEntity_TypeFilter(9256, "automation.typefilter.tier.06", "Ludicrous Voltage Type Filter", 6) + .getStackForm(1L)); ItemList.Automation_TypeFilter_ZPM.set( - new GT_MetaTileEntity_TypeFilter( - 9257, - "automation.typefilter.tier.07", - "ZPM Voltage Type Filter", - 7).getStackForm(1L)); + new GT_MetaTileEntity_TypeFilter(9257, "automation.typefilter.tier.07", "ZPM Voltage Type Filter", 7) + .getStackForm(1L)); ItemList.Automation_TypeFilter_UV.set( - new GT_MetaTileEntity_TypeFilter( - 9258, - "automation.typefilter.tier.08", - "Ultimate Voltage Type Filter", - 8).getStackForm(1L)); + new GT_MetaTileEntity_TypeFilter(9258, "automation.typefilter.tier.08", "Ultimate Voltage Type Filter", 8) + .getStackForm(1L)); ItemList.Automation_TypeFilter_MAX.set( - new GT_MetaTileEntity_TypeFilter( - 9259, - "automation.typefilter.tier.09", - "Highly Ultimate Voltage Type Filter", - 9).getStackForm(1L)); - - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_TypeFilter_ULV.get(1L), - bits, - new Object[] { " F ", "VMC", " X ", 'M', ItemList.Hull_ULV, 'V', ItemList.Conveyor_Module_LV, 'C', - OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', - OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_TypeFilter_LV.get(1L), - bits, - new Object[] { " F ", "VMC", " X ", 'M', ItemList.Hull_LV, 'V', ItemList.Conveyor_Module_LV, 'C', - OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', - OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_TypeFilter_MV.get(1L), - bits, - new Object[] { " F ", "VMC", " X ", 'M', ItemList.Hull_MV, 'V', ItemList.Conveyor_Module_MV, 'C', - OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', - OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_TypeFilter_HV.get(1L), - bits, - new Object[] { " F ", "VMC", " X ", 'M', ItemList.Hull_HV, 'V', ItemList.Conveyor_Module_HV, 'C', - OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', - OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_TypeFilter_EV.get(1L), - bits, - new Object[] { " F ", "VMC", " X ", 'M', ItemList.Hull_EV, 'V', ItemList.Conveyor_Module_EV, 'C', - OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', - OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_TypeFilter_IV.get(1L), - bits, - new Object[] { " F ", "VMC", " X ", 'M', ItemList.Hull_IV, 'V', ItemList.Conveyor_Module_IV, 'C', - OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', - OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_TypeFilter_LuV.get(1L), - bits, - new Object[] { " F ", "VMC", " X ", 'M', ItemList.Hull_LuV, 'V', ItemList.Conveyor_Module_LuV, 'C', - OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', - OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_TypeFilter_ZPM.get(1L), - bits, - new Object[] { " F ", "VMC", " X ", 'M', ItemList.Hull_ZPM, 'V', ItemList.Conveyor_Module_ZPM, 'C', - OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', - OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_TypeFilter_UV.get(1L), - bits, - new Object[] { " F ", "VMC", " X ", 'M', ItemList.Hull_UV, 'V', ItemList.Conveyor_Module_UV, 'C', - OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', - OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_TypeFilter_MAX.get(1L), - bits, - new Object[] { " F ", "VMC", " X ", 'M', ItemList.Hull_MAX, 'V', ItemList.Conveyor_Module_UHV, 'C', - OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', - OrePrefixes.circuit.get(Materials.Basic) }); + new GT_MetaTileEntity_TypeFilter( + 9259, + "automation.typefilter.tier.09", + "Highly Ultimate Voltage Type Filter", + 9).getStackForm(1L)); + + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_TypeFilter_ULV.get(1L), + bits, + new Object[] { " F ", "VMC", " X ", 'M', ItemList.Hull_ULV, 'V', ItemList.Conveyor_Module_LV, 'C', + OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', + OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_TypeFilter_LV.get(1L), + bits, + new Object[] { " F ", "VMC", " X ", 'M', ItemList.Hull_LV, 'V', ItemList.Conveyor_Module_LV, 'C', + OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', + OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_TypeFilter_MV.get(1L), + bits, + new Object[] { " F ", "VMC", " X ", 'M', ItemList.Hull_MV, 'V', ItemList.Conveyor_Module_MV, 'C', + OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', + OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_TypeFilter_HV.get(1L), + bits, + new Object[] { " F ", "VMC", " X ", 'M', ItemList.Hull_HV, 'V', ItemList.Conveyor_Module_HV, 'C', + OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', + OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_TypeFilter_EV.get(1L), + bits, + new Object[] { " F ", "VMC", " X ", 'M', ItemList.Hull_EV, 'V', ItemList.Conveyor_Module_EV, 'C', + OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', + OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_TypeFilter_IV.get(1L), + bits, + new Object[] { " F ", "VMC", " X ", 'M', ItemList.Hull_IV, 'V', ItemList.Conveyor_Module_IV, 'C', + OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', + OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_TypeFilter_LuV.get(1L), + bits, + new Object[] { " F ", "VMC", " X ", 'M', ItemList.Hull_LuV, 'V', ItemList.Conveyor_Module_LuV, 'C', + OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', + OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_TypeFilter_ZPM.get(1L), + bits, + new Object[] { " F ", "VMC", " X ", 'M', ItemList.Hull_ZPM, 'V', ItemList.Conveyor_Module_ZPM, 'C', + OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', + OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_TypeFilter_UV.get(1L), + bits, + new Object[] { " F ", "VMC", " X ", 'M', ItemList.Hull_UV, 'V', ItemList.Conveyor_Module_UV, 'C', + OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', + OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_TypeFilter_MAX.get(1L), + bits, + new Object[] { " F ", "VMC", " X ", 'M', ItemList.Hull_MAX, 'V', ItemList.Conveyor_Module_UHV, 'C', + OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', + OrePrefixes.circuit.get(Materials.Basic) }); ItemList.Automation_Regulator_ULV.set( - new GT_MetaTileEntity_Regulator( - 9270, - "automation.regulator.tier.00", - "Ultra Low Voltage Regulator", - 0).getStackForm(1L)); + new GT_MetaTileEntity_Regulator(9270, "automation.regulator.tier.00", "Ultra Low Voltage Regulator", 0) + .getStackForm(1L)); ItemList.Automation_Regulator_LV.set( - new GT_MetaTileEntity_Regulator( - 9271, - "automation.regulator.tier.01", - "Low Voltage Regulator", - 1).getStackForm(1L)); + new GT_MetaTileEntity_Regulator(9271, "automation.regulator.tier.01", "Low Voltage Regulator", 1) + .getStackForm(1L)); ItemList.Automation_Regulator_MV.set( - new GT_MetaTileEntity_Regulator( - 9272, - "automation.regulator.tier.02", - "Medium Voltage Regulator", - 2).getStackForm(1L)); + new GT_MetaTileEntity_Regulator(9272, "automation.regulator.tier.02", "Medium Voltage Regulator", 2) + .getStackForm(1L)); ItemList.Automation_Regulator_HV.set( - new GT_MetaTileEntity_Regulator( - 9273, - "automation.regulator.tier.03", - "High Voltage Regulator", - 3).getStackForm(1L)); + new GT_MetaTileEntity_Regulator(9273, "automation.regulator.tier.03", "High Voltage Regulator", 3) + .getStackForm(1L)); ItemList.Automation_Regulator_EV.set( - new GT_MetaTileEntity_Regulator( - 9274, - "automation.regulator.tier.04", - "Extreme Voltage Regulator", - 4).getStackForm(1L)); + new GT_MetaTileEntity_Regulator(9274, "automation.regulator.tier.04", "Extreme Voltage Regulator", 4) + .getStackForm(1L)); ItemList.Automation_Regulator_IV.set( - new GT_MetaTileEntity_Regulator( - 9275, - "automation.regulator.tier.05", - "Insane Voltage Regulator", - 5).getStackForm(1L)); + new GT_MetaTileEntity_Regulator(9275, "automation.regulator.tier.05", "Insane Voltage Regulator", 5) + .getStackForm(1L)); ItemList.Automation_Regulator_LuV.set( - new GT_MetaTileEntity_Regulator( - 9276, - "automation.regulator.tier.06", - "Ludicrous Voltage Regulator", - 6).getStackForm(1L)); + new GT_MetaTileEntity_Regulator(9276, "automation.regulator.tier.06", "Ludicrous Voltage Regulator", 6) + .getStackForm(1L)); ItemList.Automation_Regulator_ZPM.set( - new GT_MetaTileEntity_Regulator( - 9277, - "automation.regulator.tier.07", - "ZPM Voltage Regulator", - 7).getStackForm(1L)); + new GT_MetaTileEntity_Regulator(9277, "automation.regulator.tier.07", "ZPM Voltage Regulator", 7) + .getStackForm(1L)); ItemList.Automation_Regulator_UV.set( - new GT_MetaTileEntity_Regulator( - 9278, - "automation.regulator.tier.08", - "Ultimate Voltage Regulator", - 8).getStackForm(1L)); + new GT_MetaTileEntity_Regulator(9278, "automation.regulator.tier.08", "Ultimate Voltage Regulator", 8) + .getStackForm(1L)); ItemList.Automation_Regulator_MAX.set( - new GT_MetaTileEntity_Regulator( - 9279, - "automation.regulator.tier.09", - "Highly Ultimate Voltage Regulator", - 9).getStackForm(1L)); - - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_Regulator_ULV.get(1L), - bits, - new Object[] { "XFX", "VMV", "XCX", 'M', ItemList.Hull_ULV, 'V', ItemList.Robot_Arm_LV, 'C', - OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', - OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_Regulator_LV.get(1L), - bits, - new Object[] { "XFX", "VMV", "XCX", 'M', ItemList.Hull_LV, 'V', ItemList.Robot_Arm_LV, 'C', - OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', - OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_Regulator_MV.get(1L), - bits, - new Object[] { "XFX", "VMV", "XCX", 'M', ItemList.Hull_MV, 'V', ItemList.Robot_Arm_MV, 'C', - OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', - OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_Regulator_HV.get(1L), - bits, - new Object[] { "XFX", "VMV", "XCX", 'M', ItemList.Hull_HV, 'V', ItemList.Robot_Arm_HV, 'C', - OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', - OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_Regulator_EV.get(1L), - bits, - new Object[] { "XFX", "VMV", "XCX", 'M', ItemList.Hull_EV, 'V', ItemList.Robot_Arm_EV, 'C', - OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', - OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_Regulator_IV.get(1L), - bits, - new Object[] { "XFX", "VMV", "XCX", 'M', ItemList.Hull_IV, 'V', ItemList.Robot_Arm_IV, 'C', - OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', - OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_Regulator_LuV.get(1L), - bits, - new Object[] { "XFX", "VMV", "XCX", 'M', ItemList.Hull_LuV, 'V', ItemList.Robot_Arm_LuV, 'C', - OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', - OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_Regulator_ZPM.get(1L), - bits, - new Object[] { "XFX", "VMV", "XCX", 'M', ItemList.Hull_ZPM, 'V', ItemList.Robot_Arm_ZPM, 'C', - OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', - OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_Regulator_UV.get(1L), - bits, - new Object[] { "XFX", "VMV", "XCX", 'M', ItemList.Hull_UV, 'V', ItemList.Robot_Arm_UV, 'C', - OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', - OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_Regulator_MAX.get(1L), - bits, - new Object[] { "XFX", "VMV", "XCX", 'M', ItemList.Hull_MAX, 'V', ItemList.Robot_Arm_UHV, 'C', - OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', - OrePrefixes.circuit.get(Materials.Basic) }); + new GT_MetaTileEntity_Regulator( + 9279, + "automation.regulator.tier.09", + "Highly Ultimate Voltage Regulator", + 9).getStackForm(1L)); + + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_Regulator_ULV.get(1L), + bits, + new Object[] { "XFX", "VMV", "XCX", 'M', ItemList.Hull_ULV, 'V', ItemList.Robot_Arm_LV, 'C', + OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', + OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_Regulator_LV.get(1L), + bits, + new Object[] { "XFX", "VMV", "XCX", 'M', ItemList.Hull_LV, 'V', ItemList.Robot_Arm_LV, 'C', + OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', + OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_Regulator_MV.get(1L), + bits, + new Object[] { "XFX", "VMV", "XCX", 'M', ItemList.Hull_MV, 'V', ItemList.Robot_Arm_MV, 'C', + OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', + OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_Regulator_HV.get(1L), + bits, + new Object[] { "XFX", "VMV", "XCX", 'M', ItemList.Hull_HV, 'V', ItemList.Robot_Arm_HV, 'C', + OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', + OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_Regulator_EV.get(1L), + bits, + new Object[] { "XFX", "VMV", "XCX", 'M', ItemList.Hull_EV, 'V', ItemList.Robot_Arm_EV, 'C', + OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', + OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_Regulator_IV.get(1L), + bits, + new Object[] { "XFX", "VMV", "XCX", 'M', ItemList.Hull_IV, 'V', ItemList.Robot_Arm_IV, 'C', + OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', + OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_Regulator_LuV.get(1L), + bits, + new Object[] { "XFX", "VMV", "XCX", 'M', ItemList.Hull_LuV, 'V', ItemList.Robot_Arm_LuV, 'C', + OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', + OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_Regulator_ZPM.get(1L), + bits, + new Object[] { "XFX", "VMV", "XCX", 'M', ItemList.Hull_ZPM, 'V', ItemList.Robot_Arm_ZPM, 'C', + OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', + OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_Regulator_UV.get(1L), + bits, + new Object[] { "XFX", "VMV", "XCX", 'M', ItemList.Hull_UV, 'V', ItemList.Robot_Arm_UV, 'C', + OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', + OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_Regulator_MAX.get(1L), + bits, + new Object[] { "XFX", "VMV", "XCX", 'M', ItemList.Hull_MAX, 'V', ItemList.Robot_Arm_UHV, 'C', + OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', + OrePrefixes.circuit.get(Materials.Basic) }); ItemList.Automation_SuperBuffer_ULV.set( - new GT_MetaTileEntity_SuperBuffer( - 9300, - "automation.superbuffer.tier.00", - "Ultra Low Voltage Super Buffer", - 0).getStackForm(1L)); + new GT_MetaTileEntity_SuperBuffer( + 9300, + "automation.superbuffer.tier.00", + "Ultra Low Voltage Super Buffer", + 0).getStackForm(1L)); ItemList.Automation_SuperBuffer_LV.set( - new GT_MetaTileEntity_SuperBuffer( - 9301, - "automation.superbuffer.tier.01", - "Low Voltage Super Buffer", - 1).getStackForm(1L)); + new GT_MetaTileEntity_SuperBuffer(9301, "automation.superbuffer.tier.01", "Low Voltage Super Buffer", 1) + .getStackForm(1L)); ItemList.Automation_SuperBuffer_MV.set( - new GT_MetaTileEntity_SuperBuffer( - 9302, - "automation.superbuffer.tier.02", - "Medium Voltage Super Buffer", - 2).getStackForm(1L)); + new GT_MetaTileEntity_SuperBuffer(9302, "automation.superbuffer.tier.02", "Medium Voltage Super Buffer", 2) + .getStackForm(1L)); ItemList.Automation_SuperBuffer_HV.set( - new GT_MetaTileEntity_SuperBuffer( - 9303, - "automation.superbuffer.tier.03", - "High Voltage Super Buffer", - 3).getStackForm(1L)); + new GT_MetaTileEntity_SuperBuffer(9303, "automation.superbuffer.tier.03", "High Voltage Super Buffer", 3) + .getStackForm(1L)); ItemList.Automation_SuperBuffer_EV.set( - new GT_MetaTileEntity_SuperBuffer( - 9304, - "automation.superbuffer.tier.04", - "Extreme Voltage Super Buffer", - 4).getStackForm(1L)); + new GT_MetaTileEntity_SuperBuffer(9304, "automation.superbuffer.tier.04", "Extreme Voltage Super Buffer", 4) + .getStackForm(1L)); ItemList.Automation_SuperBuffer_IV.set( - new GT_MetaTileEntity_SuperBuffer( - 9305, - "automation.superbuffer.tier.05", - "Insane Voltage Super Buffer", - 5).getStackForm(1L)); + new GT_MetaTileEntity_SuperBuffer(9305, "automation.superbuffer.tier.05", "Insane Voltage Super Buffer", 5) + .getStackForm(1L)); ItemList.Automation_SuperBuffer_LuV.set( - new GT_MetaTileEntity_SuperBuffer( - 9306, - "automation.superbuffer.tier.06", - "Ludicrous Voltage Super Buffer", - 6).getStackForm(1L)); + new GT_MetaTileEntity_SuperBuffer( + 9306, + "automation.superbuffer.tier.06", + "Ludicrous Voltage Super Buffer", + 6).getStackForm(1L)); ItemList.Automation_SuperBuffer_ZPM.set( - new GT_MetaTileEntity_SuperBuffer( - 9307, - "automation.superbuffer.tier.07", - "ZPM Voltage Super Buffer", - 7).getStackForm(1L)); + new GT_MetaTileEntity_SuperBuffer(9307, "automation.superbuffer.tier.07", "ZPM Voltage Super Buffer", 7) + .getStackForm(1L)); ItemList.Automation_SuperBuffer_UV.set( - new GT_MetaTileEntity_SuperBuffer( - 9308, - "automation.superbuffer.tier.08", - "Ultimate Voltage Super Buffer", - 8).getStackForm(1L)); + new GT_MetaTileEntity_SuperBuffer( + 9308, + "automation.superbuffer.tier.08", + "Ultimate Voltage Super Buffer", + 8).getStackForm(1L)); ItemList.Automation_SuperBuffer_MAX.set( - new GT_MetaTileEntity_SuperBuffer( - 9309, - "automation.superbuffer.tier.09", - "Highly Ultimate Voltage Super Buffer", - 9).getStackForm(1L)); - - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_SuperBuffer_ULV.get(1L), - bits, - new Object[] { "DMV", 'M', ItemList.Automation_ChestBuffer_ULV, 'V', ItemList.Conveyor_Module_LV, 'D', - ItemList.Tool_DataOrb }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_SuperBuffer_LV.get(1L), - bits, - new Object[] { "DMV", 'M', ItemList.Automation_ChestBuffer_LV, 'V', ItemList.Conveyor_Module_LV, 'D', - ItemList.Tool_DataOrb }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_SuperBuffer_MV.get(1L), - bits, - new Object[] { "DMV", 'M', ItemList.Automation_ChestBuffer_MV, 'V', ItemList.Conveyor_Module_MV, 'D', - ItemList.Tool_DataOrb }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_SuperBuffer_HV.get(1L), - bits, - new Object[] { "DMV", 'M', ItemList.Automation_ChestBuffer_HV, 'V', ItemList.Conveyor_Module_HV, 'D', - ItemList.Tool_DataOrb }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_SuperBuffer_EV.get(1L), - bits, - new Object[] { "DMV", 'M', ItemList.Automation_ChestBuffer_EV, 'V', ItemList.Conveyor_Module_EV, 'D', - ItemList.Tool_DataOrb }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_SuperBuffer_IV.get(1L), - bits, - new Object[] { "DMV", 'M', ItemList.Automation_ChestBuffer_IV, 'V', ItemList.Conveyor_Module_IV, 'D', - ItemList.Tool_DataOrb }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_SuperBuffer_LuV.get(1L), - bits, - new Object[] { "DMV", 'M', ItemList.Automation_ChestBuffer_LuV, 'V', ItemList.Conveyor_Module_LuV, 'D', - ItemList.Tool_DataOrb }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_SuperBuffer_ZPM.get(1L), - bits, - new Object[] { "DMV", 'M', ItemList.Automation_ChestBuffer_ZPM, 'V', ItemList.Conveyor_Module_ZPM, 'D', - ItemList.Tool_DataOrb }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_SuperBuffer_UV.get(1L), - bits, - new Object[] { "DMV", 'M', ItemList.Automation_ChestBuffer_UV, 'V', ItemList.Conveyor_Module_UV, 'D', - ItemList.Tool_DataOrb }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_SuperBuffer_MAX.get(1L), - bits, - new Object[] { "DMV", 'M', ItemList.Automation_ChestBuffer_MAX, 'V', ItemList.Conveyor_Module_UHV, 'D', - ItemList.Tool_DataOrb }); - - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_SuperBuffer_ULV.get(1L), - bits, - new Object[] { "DMV", "DDD", 'M', ItemList.Hull_ULV, 'V', ItemList.Conveyor_Module_LV, 'D', - ItemList.Tool_DataStick }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_SuperBuffer_LV.get(1L), - bits, - new Object[] { "DMV", "DDD", 'M', ItemList.Hull_LV, 'V', ItemList.Conveyor_Module_LV, 'D', - ItemList.Tool_DataStick }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_SuperBuffer_MV.get(1L), - bits, - new Object[] { "DMV", "DDD", 'M', ItemList.Hull_MV, 'V', ItemList.Conveyor_Module_MV, 'D', - ItemList.Tool_DataStick }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_SuperBuffer_HV.get(1L), - bits, - new Object[] { "DMV", "DDD", 'M', ItemList.Hull_HV, 'V', ItemList.Conveyor_Module_HV, 'D', - ItemList.Tool_DataStick }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_SuperBuffer_EV.get(1L), - bits, - new Object[] { "DMV", "DDD", 'M', ItemList.Hull_EV, 'V', ItemList.Conveyor_Module_EV, 'D', - ItemList.Tool_DataStick }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_SuperBuffer_IV.get(1L), - bits, - new Object[] { "DMV", "DDD", 'M', ItemList.Hull_IV, 'V', ItemList.Conveyor_Module_IV, 'D', - ItemList.Tool_DataStick }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_SuperBuffer_LuV.get(1L), - bits, - new Object[] { "DMV", "DDD", 'M', ItemList.Hull_LuV, 'V', ItemList.Conveyor_Module_LuV, 'D', - ItemList.Tool_DataStick }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_SuperBuffer_ZPM.get(1L), - bits, - new Object[] { "DMV", "DDD", 'M', ItemList.Hull_ZPM, 'V', ItemList.Conveyor_Module_ZPM, 'D', - ItemList.Tool_DataStick }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_SuperBuffer_UV.get(1L), - bits, - new Object[] { "DMV", "DDD", 'M', ItemList.Hull_UV, 'V', ItemList.Conveyor_Module_UV, 'D', - ItemList.Tool_DataStick }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_SuperBuffer_MAX.get(1L), - bits, - new Object[] { "DMV", "DDD", 'M', ItemList.Hull_MAX, 'V', ItemList.Conveyor_Module_UHV, 'D', - ItemList.Tool_DataStick }); + new GT_MetaTileEntity_SuperBuffer( + 9309, + "automation.superbuffer.tier.09", + "Highly Ultimate Voltage Super Buffer", + 9).getStackForm(1L)); + + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_SuperBuffer_ULV.get(1L), + bits, + new Object[] { "DMV", 'M', ItemList.Automation_ChestBuffer_ULV, 'V', ItemList.Conveyor_Module_LV, 'D', + ItemList.Tool_DataOrb }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_SuperBuffer_LV.get(1L), + bits, + new Object[] { "DMV", 'M', ItemList.Automation_ChestBuffer_LV, 'V', ItemList.Conveyor_Module_LV, 'D', + ItemList.Tool_DataOrb }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_SuperBuffer_MV.get(1L), + bits, + new Object[] { "DMV", 'M', ItemList.Automation_ChestBuffer_MV, 'V', ItemList.Conveyor_Module_MV, 'D', + ItemList.Tool_DataOrb }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_SuperBuffer_HV.get(1L), + bits, + new Object[] { "DMV", 'M', ItemList.Automation_ChestBuffer_HV, 'V', ItemList.Conveyor_Module_HV, 'D', + ItemList.Tool_DataOrb }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_SuperBuffer_EV.get(1L), + bits, + new Object[] { "DMV", 'M', ItemList.Automation_ChestBuffer_EV, 'V', ItemList.Conveyor_Module_EV, 'D', + ItemList.Tool_DataOrb }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_SuperBuffer_IV.get(1L), + bits, + new Object[] { "DMV", 'M', ItemList.Automation_ChestBuffer_IV, 'V', ItemList.Conveyor_Module_IV, 'D', + ItemList.Tool_DataOrb }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_SuperBuffer_LuV.get(1L), + bits, + new Object[] { "DMV", 'M', ItemList.Automation_ChestBuffer_LuV, 'V', ItemList.Conveyor_Module_LuV, 'D', + ItemList.Tool_DataOrb }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_SuperBuffer_ZPM.get(1L), + bits, + new Object[] { "DMV", 'M', ItemList.Automation_ChestBuffer_ZPM, 'V', ItemList.Conveyor_Module_ZPM, 'D', + ItemList.Tool_DataOrb }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_SuperBuffer_UV.get(1L), + bits, + new Object[] { "DMV", 'M', ItemList.Automation_ChestBuffer_UV, 'V', ItemList.Conveyor_Module_UV, 'D', + ItemList.Tool_DataOrb }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_SuperBuffer_MAX.get(1L), + bits, + new Object[] { "DMV", 'M', ItemList.Automation_ChestBuffer_MAX, 'V', ItemList.Conveyor_Module_UHV, 'D', + ItemList.Tool_DataOrb }); + + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_SuperBuffer_ULV.get(1L), + bits, + new Object[] { "DMV", "DDD", 'M', ItemList.Hull_ULV, 'V', ItemList.Conveyor_Module_LV, 'D', + ItemList.Tool_DataStick }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_SuperBuffer_LV.get(1L), + bits, + new Object[] { "DMV", "DDD", 'M', ItemList.Hull_LV, 'V', ItemList.Conveyor_Module_LV, 'D', + ItemList.Tool_DataStick }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_SuperBuffer_MV.get(1L), + bits, + new Object[] { "DMV", "DDD", 'M', ItemList.Hull_MV, 'V', ItemList.Conveyor_Module_MV, 'D', + ItemList.Tool_DataStick }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_SuperBuffer_HV.get(1L), + bits, + new Object[] { "DMV", "DDD", 'M', ItemList.Hull_HV, 'V', ItemList.Conveyor_Module_HV, 'D', + ItemList.Tool_DataStick }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_SuperBuffer_EV.get(1L), + bits, + new Object[] { "DMV", "DDD", 'M', ItemList.Hull_EV, 'V', ItemList.Conveyor_Module_EV, 'D', + ItemList.Tool_DataStick }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_SuperBuffer_IV.get(1L), + bits, + new Object[] { "DMV", "DDD", 'M', ItemList.Hull_IV, 'V', ItemList.Conveyor_Module_IV, 'D', + ItemList.Tool_DataStick }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_SuperBuffer_LuV.get(1L), + bits, + new Object[] { "DMV", "DDD", 'M', ItemList.Hull_LuV, 'V', ItemList.Conveyor_Module_LuV, 'D', + ItemList.Tool_DataStick }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_SuperBuffer_ZPM.get(1L), + bits, + new Object[] { "DMV", "DDD", 'M', ItemList.Hull_ZPM, 'V', ItemList.Conveyor_Module_ZPM, 'D', + ItemList.Tool_DataStick }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_SuperBuffer_UV.get(1L), + bits, + new Object[] { "DMV", "DDD", 'M', ItemList.Hull_UV, 'V', ItemList.Conveyor_Module_UV, 'D', + ItemList.Tool_DataStick }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_SuperBuffer_MAX.get(1L), + bits, + new Object[] { "DMV", "DDD", 'M', ItemList.Hull_MAX, 'V', ItemList.Conveyor_Module_UHV, 'D', + ItemList.Tool_DataStick }); ItemList.Automation_ItemDistributor_ULV.set( - new GT_MetaTileEntity_ItemDistributor( - 9320, - "automation.itemdistributor.tier.00", - "Ultra Low Voltage Item Distributor", - 0).getStackForm(1L)); + new GT_MetaTileEntity_ItemDistributor( + 9320, + "automation.itemdistributor.tier.00", + "Ultra Low Voltage Item Distributor", + 0).getStackForm(1L)); ItemList.Automation_ItemDistributor_LV.set( - new GT_MetaTileEntity_ItemDistributor( - 9321, - "automation.itemdistributor.tier.01", - "Low Voltage Item Distributor", - 1).getStackForm(1L)); + new GT_MetaTileEntity_ItemDistributor( + 9321, + "automation.itemdistributor.tier.01", + "Low Voltage Item Distributor", + 1).getStackForm(1L)); ItemList.Automation_ItemDistributor_MV.set( - new GT_MetaTileEntity_ItemDistributor( - 9322, - "automation.itemdistributor.tier.02", - "Medium Voltage Item Distributor", - 2).getStackForm(1L)); + new GT_MetaTileEntity_ItemDistributor( + 9322, + "automation.itemdistributor.tier.02", + "Medium Voltage Item Distributor", + 2).getStackForm(1L)); ItemList.Automation_ItemDistributor_HV.set( - new GT_MetaTileEntity_ItemDistributor( - 9323, - "automation.itemdistributor.tier.03", - "High Voltage Item Distributor", - 3).getStackForm(1L)); + new GT_MetaTileEntity_ItemDistributor( + 9323, + "automation.itemdistributor.tier.03", + "High Voltage Item Distributor", + 3).getStackForm(1L)); ItemList.Automation_ItemDistributor_EV.set( - new GT_MetaTileEntity_ItemDistributor( - 9324, - "automation.itemdistributor.tier.04", - "Extreme Voltage Item Distributor", - 4).getStackForm(1L)); + new GT_MetaTileEntity_ItemDistributor( + 9324, + "automation.itemdistributor.tier.04", + "Extreme Voltage Item Distributor", + 4).getStackForm(1L)); ItemList.Automation_ItemDistributor_IV.set( - new GT_MetaTileEntity_ItemDistributor( - 9325, - "automation.itemdistributor.tier.05", - "Insane Voltage Item Distributor", - 5).getStackForm(1L)); + new GT_MetaTileEntity_ItemDistributor( + 9325, + "automation.itemdistributor.tier.05", + "Insane Voltage Item Distributor", + 5).getStackForm(1L)); ItemList.Automation_ItemDistributor_LuV.set( - new GT_MetaTileEntity_ItemDistributor( - 9326, - "automation.itemdistributor.tier.06", - "Ludicrous Voltage Item Distributor", - 6).getStackForm(1L)); + new GT_MetaTileEntity_ItemDistributor( + 9326, + "automation.itemdistributor.tier.06", + "Ludicrous Voltage Item Distributor", + 6).getStackForm(1L)); ItemList.Automation_ItemDistributor_ZPM.set( - new GT_MetaTileEntity_ItemDistributor( - 9327, - "automation.itemdistributor.tier.07", - "ZPM Voltage Item Distributor", - 7).getStackForm(1L)); + new GT_MetaTileEntity_ItemDistributor( + 9327, + "automation.itemdistributor.tier.07", + "ZPM Voltage Item Distributor", + 7).getStackForm(1L)); ItemList.Automation_ItemDistributor_UV.set( - new GT_MetaTileEntity_ItemDistributor( - 9328, - "automation.itemdistributor.tier.08", - "Ultimate Voltage Item Distributor", - 8).getStackForm(1L)); + new GT_MetaTileEntity_ItemDistributor( + 9328, + "automation.itemdistributor.tier.08", + "Ultimate Voltage Item Distributor", + 8).getStackForm(1L)); ItemList.Automation_ItemDistributor_MAX.set( - new GT_MetaTileEntity_ItemDistributor( - 9329, - "automation.itemdistributor.tier.09", - "MAX Voltage Item Distributor", - 9).getStackForm(1L)); - - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_ItemDistributor_ULV.get(1L), - bits, - new Object[] { "XCX", "VMV", " V ", 'M', ItemList.Hull_ULV, 'V', ItemList.Conveyor_Module_LV, 'C', - OreDictNames.craftingChest, 'X', OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_ItemDistributor_LV.get(1L), - bits, - new Object[] { "XCX", "VMV", " V ", 'M', ItemList.Hull_LV, 'V', ItemList.Conveyor_Module_LV, 'C', - OreDictNames.craftingChest, 'X', OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_ItemDistributor_MV.get(1L), - bits, - new Object[] { "XCX", "VMV", " V ", 'M', ItemList.Hull_MV, 'V', ItemList.Conveyor_Module_MV, 'C', - OreDictNames.craftingChest, 'X', OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_ItemDistributor_HV.get(1L), - bits, - new Object[] { "XCX", "VMV", " V ", 'M', ItemList.Hull_HV, 'V', ItemList.Conveyor_Module_HV, 'C', - OreDictNames.craftingChest, 'X', OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_ItemDistributor_EV.get(1L), - bits, - new Object[] { "XCX", "VMV", " V ", 'M', ItemList.Hull_EV, 'V', ItemList.Conveyor_Module_EV, 'C', - OreDictNames.craftingChest, 'X', OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_ItemDistributor_IV.get(1L), - bits, - new Object[] { "XCX", "VMV", " V ", 'M', ItemList.Hull_IV, 'V', ItemList.Conveyor_Module_IV, 'C', - OreDictNames.craftingChest, 'X', OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_ItemDistributor_LuV.get(1L), - bits, - new Object[] { "XCX", "VMV", " V ", 'M', ItemList.Hull_LuV, 'V', ItemList.Conveyor_Module_LuV, 'C', - OreDictNames.craftingChest, 'X', OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_ItemDistributor_ZPM.get(1L), - bits, - new Object[] { "XCX", "VMV", " V ", 'M', ItemList.Hull_ZPM, 'V', ItemList.Conveyor_Module_ZPM, 'C', - OreDictNames.craftingChest, 'X', OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_ItemDistributor_UV.get(1L), - bits, - new Object[] { "XCX", "VMV", " V ", 'M', ItemList.Hull_UV, 'V', ItemList.Conveyor_Module_UV, 'C', - OreDictNames.craftingChest, 'X', OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_ItemDistributor_MAX.get(1L), - bits, - new Object[] { "XCX", "VMV", " V ", 'M', ItemList.Hull_MAX, 'V', ItemList.Conveyor_Module_UHV, 'C', - OreDictNames.craftingChest, 'X', OrePrefixes.circuit.get(Materials.Basic) }); + new GT_MetaTileEntity_ItemDistributor( + 9329, + "automation.itemdistributor.tier.09", + "MAX Voltage Item Distributor", + 9).getStackForm(1L)); + + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_ItemDistributor_ULV.get(1L), + bits, + new Object[] { "XCX", "VMV", " V ", 'M', ItemList.Hull_ULV, 'V', ItemList.Conveyor_Module_LV, 'C', + OreDictNames.craftingChest, 'X', OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_ItemDistributor_LV.get(1L), + bits, + new Object[] { "XCX", "VMV", " V ", 'M', ItemList.Hull_LV, 'V', ItemList.Conveyor_Module_LV, 'C', + OreDictNames.craftingChest, 'X', OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_ItemDistributor_MV.get(1L), + bits, + new Object[] { "XCX", "VMV", " V ", 'M', ItemList.Hull_MV, 'V', ItemList.Conveyor_Module_MV, 'C', + OreDictNames.craftingChest, 'X', OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_ItemDistributor_HV.get(1L), + bits, + new Object[] { "XCX", "VMV", " V ", 'M', ItemList.Hull_HV, 'V', ItemList.Conveyor_Module_HV, 'C', + OreDictNames.craftingChest, 'X', OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_ItemDistributor_EV.get(1L), + bits, + new Object[] { "XCX", "VMV", " V ", 'M', ItemList.Hull_EV, 'V', ItemList.Conveyor_Module_EV, 'C', + OreDictNames.craftingChest, 'X', OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_ItemDistributor_IV.get(1L), + bits, + new Object[] { "XCX", "VMV", " V ", 'M', ItemList.Hull_IV, 'V', ItemList.Conveyor_Module_IV, 'C', + OreDictNames.craftingChest, 'X', OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_ItemDistributor_LuV.get(1L), + bits, + new Object[] { "XCX", "VMV", " V ", 'M', ItemList.Hull_LuV, 'V', ItemList.Conveyor_Module_LuV, 'C', + OreDictNames.craftingChest, 'X', OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_ItemDistributor_ZPM.get(1L), + bits, + new Object[] { "XCX", "VMV", " V ", 'M', ItemList.Hull_ZPM, 'V', ItemList.Conveyor_Module_ZPM, 'C', + OreDictNames.craftingChest, 'X', OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_ItemDistributor_UV.get(1L), + bits, + new Object[] { "XCX", "VMV", " V ", 'M', ItemList.Hull_UV, 'V', ItemList.Conveyor_Module_UV, 'C', + OreDictNames.craftingChest, 'X', OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_ItemDistributor_MAX.get(1L), + bits, + new Object[] { "XCX", "VMV", " V ", 'M', ItemList.Hull_MAX, 'V', ItemList.Conveyor_Module_UHV, 'C', + OreDictNames.craftingChest, 'X', OrePrefixes.circuit.get(Materials.Basic) }); ItemList.Automation_RecipeFilter_ULV.set( - new GT_MetaTileEntity_RecipeFilter( - 9330, - "automation.recipefilter.tier.00", - "Ultra Low Voltage Recipe Filter", - 0).getStackForm(1L)); + new GT_MetaTileEntity_RecipeFilter( + 9330, + "automation.recipefilter.tier.00", + "Ultra Low Voltage Recipe Filter", + 0).getStackForm(1L)); ItemList.Automation_RecipeFilter_LV.set( - new GT_MetaTileEntity_RecipeFilter( - 9331, - "automation.recipefilter.tier.01", - "Low Voltage Recipe Filter", - 1).getStackForm(1L)); + new GT_MetaTileEntity_RecipeFilter(9331, "automation.recipefilter.tier.01", "Low Voltage Recipe Filter", 1) + .getStackForm(1L)); ItemList.Automation_RecipeFilter_MV.set( - new GT_MetaTileEntity_RecipeFilter( - 9332, - "automation.recipefilter.tier.02", - "Medium Voltage Recipe Filter", - 2).getStackForm(1L)); + new GT_MetaTileEntity_RecipeFilter( + 9332, + "automation.recipefilter.tier.02", + "Medium Voltage Recipe Filter", + 2).getStackForm(1L)); ItemList.Automation_RecipeFilter_HV.set( - new GT_MetaTileEntity_RecipeFilter( - 9333, - "automation.recipefilter.tier.03", - "High Voltage Recipe Filter", - 3).getStackForm(1L)); + new GT_MetaTileEntity_RecipeFilter(9333, "automation.recipefilter.tier.03", "High Voltage Recipe Filter", 3) + .getStackForm(1L)); ItemList.Automation_RecipeFilter_EV.set( - new GT_MetaTileEntity_RecipeFilter( - 9334, - "automation.recipefilter.tier.04", - "Extreme Voltage Recipe Filter", - 4).getStackForm(1L)); + new GT_MetaTileEntity_RecipeFilter( + 9334, + "automation.recipefilter.tier.04", + "Extreme Voltage Recipe Filter", + 4).getStackForm(1L)); ItemList.Automation_RecipeFilter_IV.set( - new GT_MetaTileEntity_RecipeFilter( - 9335, - "automation.recipefilter.tier.05", - "Insane Voltage Recipe Filter", - 5).getStackForm(1L)); + new GT_MetaTileEntity_RecipeFilter( + 9335, + "automation.recipefilter.tier.05", + "Insane Voltage Recipe Filter", + 5).getStackForm(1L)); ItemList.Automation_RecipeFilter_LuV.set( - new GT_MetaTileEntity_RecipeFilter( - 9336, - "automation.recipefilter.tier.06", - "Ludicrous Voltage Recipe Filter", - 6).getStackForm(1L)); + new GT_MetaTileEntity_RecipeFilter( + 9336, + "automation.recipefilter.tier.06", + "Ludicrous Voltage Recipe Filter", + 6).getStackForm(1L)); ItemList.Automation_RecipeFilter_ZPM.set( - new GT_MetaTileEntity_RecipeFilter( - 9337, - "automation.recipefilter.tier.07", - "ZPM Voltage Recipe Filter", - 7).getStackForm(1L)); + new GT_MetaTileEntity_RecipeFilter(9337, "automation.recipefilter.tier.07", "ZPM Voltage Recipe Filter", 7) + .getStackForm(1L)); ItemList.Automation_RecipeFilter_UV.set( - new GT_MetaTileEntity_RecipeFilter( - 9338, - "automation.recipefilter.tier.08", - "Ultimate Voltage Recipe Filter", - 8).getStackForm(1L)); + new GT_MetaTileEntity_RecipeFilter( + 9338, + "automation.recipefilter.tier.08", + "Ultimate Voltage Recipe Filter", + 8).getStackForm(1L)); ItemList.Automation_RecipeFilter_MAX.set( - new GT_MetaTileEntity_RecipeFilter( - 9339, - "automation.recipefilter.tier.09", - "Highly Ultimate Voltage Recipe Filter", - 9).getStackForm(1L)); - - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_RecipeFilter_ULV.get(1L), - bits, - new Object[] { " F ", "VMC", " X ", 'M', ItemList.Hull_ULV, 'V', ItemList.Robot_Arm_LV, 'C', - OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', - OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_RecipeFilter_LV.get(1L), - bits, - new Object[] { " F ", "VMC", " X ", 'M', ItemList.Hull_LV, 'V', ItemList.Robot_Arm_LV, 'C', - OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', - OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_RecipeFilter_MV.get(1L), - bits, - new Object[] { " F ", "VMC", " X ", 'M', ItemList.Hull_MV, 'V', ItemList.Robot_Arm_MV, 'C', - OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', - OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_RecipeFilter_HV.get(1L), - bits, - new Object[] { " F ", "VMC", " X ", 'M', ItemList.Hull_HV, 'V', ItemList.Robot_Arm_HV, 'C', - OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', - OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_RecipeFilter_EV.get(1L), - bits, - new Object[] { " F ", "VMC", " X ", 'M', ItemList.Hull_EV, 'V', ItemList.Robot_Arm_EV, 'C', - OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', - OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_RecipeFilter_IV.get(1L), - bits, - new Object[] { " F ", "VMC", " X ", 'M', ItemList.Hull_IV, 'V', ItemList.Robot_Arm_IV, 'C', - OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', - OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_RecipeFilter_LuV.get(1L), - bits, - new Object[] { " F ", "VMC", " X ", 'M', ItemList.Hull_LuV, 'V', ItemList.Robot_Arm_LuV, 'C', - OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', - OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_RecipeFilter_ZPM.get(1L), - bits, - new Object[] { " F ", "VMC", " X ", 'M', ItemList.Hull_ZPM, 'V', ItemList.Robot_Arm_ZPM, 'C', - OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', - OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_RecipeFilter_UV.get(1L), - bits, - new Object[] { " F ", "VMC", " X ", 'M', ItemList.Hull_UV, 'V', ItemList.Robot_Arm_UV, 'C', - OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', - OrePrefixes.circuit.get(Materials.Basic) }); - GT_ModHandler.addCraftingRecipe( - ItemList.Automation_RecipeFilter_MAX.get(1L), - bits, - new Object[] { " F ", "VMC", " X ", 'M', ItemList.Hull_MAX, 'V', ItemList.Robot_Arm_UHV, 'C', - OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', - OrePrefixes.circuit.get(Materials.Basic) }); + new GT_MetaTileEntity_RecipeFilter( + 9339, + "automation.recipefilter.tier.09", + "Highly Ultimate Voltage Recipe Filter", + 9).getStackForm(1L)); + + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_RecipeFilter_ULV.get(1L), + bits, + new Object[] { " F ", "VMC", " X ", 'M', ItemList.Hull_ULV, 'V', ItemList.Robot_Arm_LV, 'C', + OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', + OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_RecipeFilter_LV.get(1L), + bits, + new Object[] { " F ", "VMC", " X ", 'M', ItemList.Hull_LV, 'V', ItemList.Robot_Arm_LV, 'C', + OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', + OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_RecipeFilter_MV.get(1L), + bits, + new Object[] { " F ", "VMC", " X ", 'M', ItemList.Hull_MV, 'V', ItemList.Robot_Arm_MV, 'C', + OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', + OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_RecipeFilter_HV.get(1L), + bits, + new Object[] { " F ", "VMC", " X ", 'M', ItemList.Hull_HV, 'V', ItemList.Robot_Arm_HV, 'C', + OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', + OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_RecipeFilter_EV.get(1L), + bits, + new Object[] { " F ", "VMC", " X ", 'M', ItemList.Hull_EV, 'V', ItemList.Robot_Arm_EV, 'C', + OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', + OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_RecipeFilter_IV.get(1L), + bits, + new Object[] { " F ", "VMC", " X ", 'M', ItemList.Hull_IV, 'V', ItemList.Robot_Arm_IV, 'C', + OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', + OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_RecipeFilter_LuV.get(1L), + bits, + new Object[] { " F ", "VMC", " X ", 'M', ItemList.Hull_LuV, 'V', ItemList.Robot_Arm_LuV, 'C', + OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', + OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_RecipeFilter_ZPM.get(1L), + bits, + new Object[] { " F ", "VMC", " X ", 'M', ItemList.Hull_ZPM, 'V', ItemList.Robot_Arm_ZPM, 'C', + OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', + OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_RecipeFilter_UV.get(1L), + bits, + new Object[] { " F ", "VMC", " X ", 'M', ItemList.Hull_UV, 'V', ItemList.Robot_Arm_UV, 'C', + OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', + OrePrefixes.circuit.get(Materials.Basic) }); + GT_ModHandler.addCraftingRecipe( + ItemList.Automation_RecipeFilter_MAX.get(1L), + bits, + new Object[] { " F ", "VMC", " X ", 'M', ItemList.Hull_MAX, 'V', ItemList.Robot_Arm_UHV, 'C', + OreDictNames.craftingChest, 'F', OreDictNames.craftingFilter, 'X', + OrePrefixes.circuit.get(Materials.Basic) }); } @SuppressWarnings("PointlessArithmeticExpression") private static void makeWires(Materials aMaterial, int aStartID, long aLossInsulated, long aLoss, long aAmperage, - long aVoltage, boolean aInsulatable, boolean aAutoInsulated) { + long aVoltage, boolean aInsulatable, boolean aAutoInsulated) { String name = GT_LanguageManager.i18nPlaceholder ? "%material" : aMaterial.mDefaultLocalName; GT_OreDictUnificator.registerOre( - OrePrefixes.wireGt01, + OrePrefixes.wireGt01, + aMaterial, + new GT_MetaPipeEntity_Cable( + aStartID + 0, + aTextWire1 + aMaterial.mName.toLowerCase() + ".01", + "1x " + name + aTextWire2, + 0.125F, aMaterial, - new GT_MetaPipeEntity_Cable( - aStartID + 0, - aTextWire1 + aMaterial.mName.toLowerCase() + ".01", - "1x " + name + aTextWire2, - 0.125F, - aMaterial, - aLoss, - 1L * aAmperage, - aVoltage, - false, - !aAutoInsulated).getStackForm(1L)); + aLoss, + 1L * aAmperage, + aVoltage, + false, + !aAutoInsulated).getStackForm(1L)); GT_OreDictUnificator.registerOre( - OrePrefixes.wireGt02, + OrePrefixes.wireGt02, + aMaterial, + new GT_MetaPipeEntity_Cable( + aStartID + 1, + aTextWire1 + aMaterial.mName.toLowerCase() + ".02", + "2x " + name + aTextWire2, + 0.25F, aMaterial, - new GT_MetaPipeEntity_Cable( - aStartID + 1, - aTextWire1 + aMaterial.mName.toLowerCase() + ".02", - "2x " + name + aTextWire2, - 0.25F, - aMaterial, - aLoss, - 2L * aAmperage, - aVoltage, - false, - !aAutoInsulated).getStackForm(1L)); + aLoss, + 2L * aAmperage, + aVoltage, + false, + !aAutoInsulated).getStackForm(1L)); GT_OreDictUnificator.registerOre( - OrePrefixes.wireGt04, + OrePrefixes.wireGt04, + aMaterial, + new GT_MetaPipeEntity_Cable( + aStartID + 2, + aTextWire1 + aMaterial.mName.toLowerCase() + ".04", + "4x " + name + aTextWire2, + 0.375F, aMaterial, - new GT_MetaPipeEntity_Cable( - aStartID + 2, - aTextWire1 + aMaterial.mName.toLowerCase() + ".04", - "4x " + name + aTextWire2, - 0.375F, - aMaterial, - aLoss, - 4L * aAmperage, - aVoltage, - false, - !aAutoInsulated).getStackForm(1L)); + aLoss, + 4L * aAmperage, + aVoltage, + false, + !aAutoInsulated).getStackForm(1L)); GT_OreDictUnificator.registerOre( - OrePrefixes.wireGt08, + OrePrefixes.wireGt08, + aMaterial, + new GT_MetaPipeEntity_Cable( + aStartID + 3, + aTextWire1 + aMaterial.mName.toLowerCase() + ".08", + "8x " + name + aTextWire2, + 0.5F, aMaterial, - new GT_MetaPipeEntity_Cable( - aStartID + 3, - aTextWire1 + aMaterial.mName.toLowerCase() + ".08", - "8x " + name + aTextWire2, - 0.5F, - aMaterial, - aLoss, - 8L * aAmperage, - aVoltage, - false, - !aAutoInsulated).getStackForm(1L)); + aLoss, + 8L * aAmperage, + aVoltage, + false, + !aAutoInsulated).getStackForm(1L)); GT_OreDictUnificator.registerOre( - OrePrefixes.wireGt12, + OrePrefixes.wireGt12, + aMaterial, + new GT_MetaPipeEntity_Cable( + aStartID + 4, + aTextWire1 + aMaterial.mName.toLowerCase() + ".12", + "12x " + name + aTextWire2, + 0.625F, aMaterial, - new GT_MetaPipeEntity_Cable( - aStartID + 4, - aTextWire1 + aMaterial.mName.toLowerCase() + ".12", - "12x " + name + aTextWire2, - 0.625F, - aMaterial, - aLoss, - 12L * aAmperage, - aVoltage, - false, - !aAutoInsulated).getStackForm(1L)); + aLoss, + 12L * aAmperage, + aVoltage, + false, + !aAutoInsulated).getStackForm(1L)); GT_OreDictUnificator.registerOre( - OrePrefixes.wireGt16, + OrePrefixes.wireGt16, + aMaterial, + new GT_MetaPipeEntity_Cable( + aStartID + 5, + aTextWire1 + aMaterial.mName.toLowerCase() + ".16", + "16x " + name + aTextWire2, + 0.75F, aMaterial, - new GT_MetaPipeEntity_Cable( - aStartID + 5, - aTextWire1 + aMaterial.mName.toLowerCase() + ".16", - "16x " + name + aTextWire2, - 0.75F, - aMaterial, - aLoss, - 16L * aAmperage, - aVoltage, - false, - !aAutoInsulated).getStackForm(1L)); + aLoss, + 16L * aAmperage, + aVoltage, + false, + !aAutoInsulated).getStackForm(1L)); if (aInsulatable) { GT_OreDictUnificator.registerOre( - OrePrefixes.cableGt01, + OrePrefixes.cableGt01, + aMaterial, + new GT_MetaPipeEntity_Cable( + aStartID + 6, + aTextCable1 + aMaterial.mName.toLowerCase() + ".01", + "1x " + name + aTextCable2, + 0.25F, aMaterial, - new GT_MetaPipeEntity_Cable( - aStartID + 6, - aTextCable1 + aMaterial.mName.toLowerCase() + ".01", - "1x " + name + aTextCable2, - 0.25F, - aMaterial, - aLossInsulated, - 1L * aAmperage, - aVoltage, - true, - false).getStackForm(1L)); + aLossInsulated, + 1L * aAmperage, + aVoltage, + true, + false).getStackForm(1L)); GT_OreDictUnificator.registerOre( - OrePrefixes.cableGt02, + OrePrefixes.cableGt02, + aMaterial, + new GT_MetaPipeEntity_Cable( + aStartID + 7, + aTextCable1 + aMaterial.mName.toLowerCase() + ".02", + "2x " + name + aTextCable2, + 0.375F, aMaterial, - new GT_MetaPipeEntity_Cable( - aStartID + 7, - aTextCable1 + aMaterial.mName.toLowerCase() + ".02", - "2x " + name + aTextCable2, - 0.375F, - aMaterial, - aLossInsulated, - 2L * aAmperage, - aVoltage, - true, - false).getStackForm(1L)); + aLossInsulated, + 2L * aAmperage, + aVoltage, + true, + false).getStackForm(1L)); GT_OreDictUnificator.registerOre( - OrePrefixes.cableGt04, + OrePrefixes.cableGt04, + aMaterial, + new GT_MetaPipeEntity_Cable( + aStartID + 8, + aTextCable1 + aMaterial.mName.toLowerCase() + ".04", + "4x " + name + aTextCable2, + 0.5F, aMaterial, - new GT_MetaPipeEntity_Cable( - aStartID + 8, - aTextCable1 + aMaterial.mName.toLowerCase() + ".04", - "4x " + name + aTextCable2, - 0.5F, - aMaterial, - aLossInsulated, - 4L * aAmperage, - aVoltage, - true, - false).getStackForm(1L)); + aLossInsulated, + 4L * aAmperage, + aVoltage, + true, + false).getStackForm(1L)); GT_OreDictUnificator.registerOre( - OrePrefixes.cableGt08, + OrePrefixes.cableGt08, + aMaterial, + new GT_MetaPipeEntity_Cable( + aStartID + 9, + aTextCable1 + aMaterial.mName.toLowerCase() + ".08", + "8x " + name + aTextCable2, + 0.625F, aMaterial, - new GT_MetaPipeEntity_Cable( - aStartID + 9, - aTextCable1 + aMaterial.mName.toLowerCase() + ".08", - "8x " + name + aTextCable2, - 0.625F, - aMaterial, - aLossInsulated, - 8L * aAmperage, - aVoltage, - true, - false).getStackForm(1L)); + aLossInsulated, + 8L * aAmperage, + aVoltage, + true, + false).getStackForm(1L)); GT_OreDictUnificator.registerOre( - OrePrefixes.cableGt12, + OrePrefixes.cableGt12, + aMaterial, + new GT_MetaPipeEntity_Cable( + aStartID + 10, + aTextCable1 + aMaterial.mName.toLowerCase() + ".12", + "12x " + name + aTextCable2, + 0.75F, aMaterial, - new GT_MetaPipeEntity_Cable( - aStartID + 10, - aTextCable1 + aMaterial.mName.toLowerCase() + ".12", - "12x " + name + aTextCable2, - 0.75F, - aMaterial, - aLossInsulated, - 12L * aAmperage, - aVoltage, - true, - false).getStackForm(1L)); + aLossInsulated, + 12L * aAmperage, + aVoltage, + true, + false).getStackForm(1L)); GT_OreDictUnificator.registerOre( - OrePrefixes.cableGt16, + OrePrefixes.cableGt16, + aMaterial, + new GT_MetaPipeEntity_Cable( + aStartID + 11, + aTextCable1 + aMaterial.mName.toLowerCase() + ".16", + "16x " + name + aTextCable2, + 0.875F, aMaterial, - new GT_MetaPipeEntity_Cable( - aStartID + 11, - aTextCable1 + aMaterial.mName.toLowerCase() + ".16", - "16x " + name + aTextCable2, - 0.875F, - aMaterial, - aLossInsulated, - 16L * aAmperage, - aVoltage, - true, - false).getStackForm(1L)); + aLossInsulated, + 16L * aAmperage, + aVoltage, + true, + false).getStackForm(1L)); } } @@ -11285,186 +10658,186 @@ public class GT_Loader_MetaTileEntities implements Runnable { // TODO CHECK CIRC private static void generateItemPipes(Materials aMaterial, String name, int startID, int baseInvSlots) { generateItemPipes( - aMaterial, - name, - GT_LanguageManager.i18nPlaceholder ? "%material" : aMaterial.mDefaultLocalName, - startID, - baseInvSlots); + aMaterial, + name, + GT_LanguageManager.i18nPlaceholder ? "%material" : aMaterial.mDefaultLocalName, + startID, + baseInvSlots); } private static void generateItemPipes(Materials aMaterial, String name, String displayName, int startID, - int baseInvSlots) { + int baseInvSlots) { GT_OreDictUnificator.registerOre( - OrePrefixes.pipeMedium.get(aMaterial), - new GT_MetaPipeEntity_Item( - startID, - "GT_Pipe_" + name, - displayName + " Item Pipe", - 0.50F, - aMaterial, - baseInvSlots, - 32768 / baseInvSlots, - false).getStackForm(1L)); + OrePrefixes.pipeMedium.get(aMaterial), + new GT_MetaPipeEntity_Item( + startID, + "GT_Pipe_" + name, + displayName + " Item Pipe", + 0.50F, + aMaterial, + baseInvSlots, + 32768 / baseInvSlots, + false).getStackForm(1L)); GT_OreDictUnificator.registerOre( - OrePrefixes.pipeLarge.get(aMaterial), - new GT_MetaPipeEntity_Item( - startID + 1, - "GT_Pipe_" + name + "_Large", - "Large " + displayName + " Item Pipe", - 0.75F, - aMaterial, - baseInvSlots * 2, - 16384 / baseInvSlots, - false).getStackForm(1L)); + OrePrefixes.pipeLarge.get(aMaterial), + new GT_MetaPipeEntity_Item( + startID + 1, + "GT_Pipe_" + name + "_Large", + "Large " + displayName + " Item Pipe", + 0.75F, + aMaterial, + baseInvSlots * 2, + 16384 / baseInvSlots, + false).getStackForm(1L)); GT_OreDictUnificator.registerOre( - OrePrefixes.pipeHuge.get(aMaterial), - new GT_MetaPipeEntity_Item( - startID + 2, - "GT_Pipe_" + name + "_Huge", - "Huge " + displayName + " Item Pipe", - 1.00F, - aMaterial, - baseInvSlots * 4, - 8192 / baseInvSlots, - false).getStackForm(1L)); + OrePrefixes.pipeHuge.get(aMaterial), + new GT_MetaPipeEntity_Item( + startID + 2, + "GT_Pipe_" + name + "_Huge", + "Huge " + displayName + " Item Pipe", + 1.00F, + aMaterial, + baseInvSlots * 4, + 8192 / baseInvSlots, + false).getStackForm(1L)); GT_OreDictUnificator.registerOre( - OrePrefixes.pipeRestrictiveMedium.get(aMaterial), - new GT_MetaPipeEntity_Item( - startID + 3, - "GT_Pipe_Restrictive_" + name, - "Restrictive " + displayName + " Item Pipe", - 0.50F, - aMaterial, - baseInvSlots, - 3276800 / baseInvSlots, - true).getStackForm(1L)); + OrePrefixes.pipeRestrictiveMedium.get(aMaterial), + new GT_MetaPipeEntity_Item( + startID + 3, + "GT_Pipe_Restrictive_" + name, + "Restrictive " + displayName + " Item Pipe", + 0.50F, + aMaterial, + baseInvSlots, + 3276800 / baseInvSlots, + true).getStackForm(1L)); GT_OreDictUnificator.registerOre( - OrePrefixes.pipeRestrictiveLarge.get(aMaterial), - new GT_MetaPipeEntity_Item( - startID + 4, - "GT_Pipe_Restrictive_" + name + "_Large", - "Large Restrictive " + displayName + " Item Pipe", - 0.75F, - aMaterial, - baseInvSlots * 2, - 1638400 / baseInvSlots, - true).getStackForm(1L)); + OrePrefixes.pipeRestrictiveLarge.get(aMaterial), + new GT_MetaPipeEntity_Item( + startID + 4, + "GT_Pipe_Restrictive_" + name + "_Large", + "Large Restrictive " + displayName + " Item Pipe", + 0.75F, + aMaterial, + baseInvSlots * 2, + 1638400 / baseInvSlots, + true).getStackForm(1L)); GT_OreDictUnificator.registerOre( - OrePrefixes.pipeRestrictiveHuge.get(aMaterial), - new GT_MetaPipeEntity_Item( - startID + 5, - "GT_Pipe_Restrictive_" + name + "_Huge", - "Huge Restrictive " + displayName + " Item Pipe", - 0.875F, - aMaterial, - baseInvSlots * 4, - 819200 / baseInvSlots, - true).getStackForm(1L)); + OrePrefixes.pipeRestrictiveHuge.get(aMaterial), + new GT_MetaPipeEntity_Item( + startID + 5, + "GT_Pipe_Restrictive_" + name + "_Huge", + "Huge Restrictive " + displayName + " Item Pipe", + 0.875F, + aMaterial, + baseInvSlots * 4, + 819200 / baseInvSlots, + true).getStackForm(1L)); } @SuppressWarnings("SameParameterValue") private static void generateFluidPipes(Materials aMaterial, String name, int startID, int baseCapacity, - int heatCapacity, boolean gasProof) { + int heatCapacity, boolean gasProof) { generateFluidPipes( - aMaterial, - name, - GT_LanguageManager.i18nPlaceholder ? "%material" : aMaterial.mDefaultLocalName, - startID, - baseCapacity, - heatCapacity, - gasProof); + aMaterial, + name, + GT_LanguageManager.i18nPlaceholder ? "%material" : aMaterial.mDefaultLocalName, + startID, + baseCapacity, + heatCapacity, + gasProof); } private static void generateFluidPipes(Materials aMaterial, String name, String displayName, int startID, - int baseCapacity, int heatCapacity, boolean gasProof) { + int baseCapacity, int heatCapacity, boolean gasProof) { GT_OreDictUnificator.registerOre( - OrePrefixes.pipeTiny.get(aMaterial), - new GT_MetaPipeEntity_Fluid( - startID, - "GT_Pipe_" + name + "_Tiny", - "Tiny " + displayName + " Fluid Pipe", - 0.25F, - aMaterial, - baseCapacity / 6, - heatCapacity, - gasProof).getStackForm(1L)); + OrePrefixes.pipeTiny.get(aMaterial), + new GT_MetaPipeEntity_Fluid( + startID, + "GT_Pipe_" + name + "_Tiny", + "Tiny " + displayName + " Fluid Pipe", + 0.25F, + aMaterial, + baseCapacity / 6, + heatCapacity, + gasProof).getStackForm(1L)); GT_OreDictUnificator.registerOre( - OrePrefixes.pipeSmall.get(aMaterial), - new GT_MetaPipeEntity_Fluid( - startID + 1, - "GT_Pipe_" + name + "_Small", - "Small " + displayName + " Fluid Pipe", - 0.375F, - aMaterial, - baseCapacity / 3, - heatCapacity, - gasProof).getStackForm(1L)); + OrePrefixes.pipeSmall.get(aMaterial), + new GT_MetaPipeEntity_Fluid( + startID + 1, + "GT_Pipe_" + name + "_Small", + "Small " + displayName + " Fluid Pipe", + 0.375F, + aMaterial, + baseCapacity / 3, + heatCapacity, + gasProof).getStackForm(1L)); GT_OreDictUnificator.registerOre( - OrePrefixes.pipeMedium.get(aMaterial), - new GT_MetaPipeEntity_Fluid( - startID + 2, - "GT_Pipe_" + name, - displayName + " Fluid Pipe", - 0.5F, - aMaterial, - baseCapacity, - heatCapacity, - gasProof).getStackForm(1L)); + OrePrefixes.pipeMedium.get(aMaterial), + new GT_MetaPipeEntity_Fluid( + startID + 2, + "GT_Pipe_" + name, + displayName + " Fluid Pipe", + 0.5F, + aMaterial, + baseCapacity, + heatCapacity, + gasProof).getStackForm(1L)); GT_OreDictUnificator.registerOre( - OrePrefixes.pipeLarge.get(aMaterial), - new GT_MetaPipeEntity_Fluid( - startID + 3, - "GT_Pipe_" + name + "_Large", - "Large " + displayName + " Fluid Pipe", - 0.75F, - aMaterial, - baseCapacity * 2, - heatCapacity, - gasProof).getStackForm(1L)); + OrePrefixes.pipeLarge.get(aMaterial), + new GT_MetaPipeEntity_Fluid( + startID + 3, + "GT_Pipe_" + name + "_Large", + "Large " + displayName + " Fluid Pipe", + 0.75F, + aMaterial, + baseCapacity * 2, + heatCapacity, + gasProof).getStackForm(1L)); GT_OreDictUnificator.registerOre( - OrePrefixes.pipeHuge.get(aMaterial), - new GT_MetaPipeEntity_Fluid( - startID + 4, - "GT_Pipe_" + name + "_Huge", - "Huge " + displayName + " Fluid Pipe", - 0.875F, - aMaterial, - baseCapacity * 4, - heatCapacity, - gasProof).getStackForm(1L)); + OrePrefixes.pipeHuge.get(aMaterial), + new GT_MetaPipeEntity_Fluid( + startID + 4, + "GT_Pipe_" + name + "_Huge", + "Huge " + displayName + " Fluid Pipe", + 0.875F, + aMaterial, + baseCapacity * 4, + heatCapacity, + gasProof).getStackForm(1L)); } @SuppressWarnings("SameParameterValue") private static void generateFluidMultiPipes(Materials aMaterial, String name, int startID, int baseCapacity, - int heatCapacity, boolean gasProof) { + int heatCapacity, boolean gasProof) { generateFluidMultiPipes(aMaterial, name, "%material", startID, baseCapacity, heatCapacity, gasProof); } private static void generateFluidMultiPipes(Materials aMaterial, String name, String displayName, int startID, - int baseCapacity, int heatCapacity, boolean gasProof) { + int baseCapacity, int heatCapacity, boolean gasProof) { GT_OreDictUnificator.registerOre( - OrePrefixes.pipeQuadruple.get(aMaterial), - new GT_MetaPipeEntity_Fluid( - startID, - "GT_Pipe_" + name + "_Quadruple", - "Quadruple " + displayName + " Fluid Pipe", - 1.0F, - aMaterial, - baseCapacity, - heatCapacity, - gasProof, - 4).getStackForm(1L)); + OrePrefixes.pipeQuadruple.get(aMaterial), + new GT_MetaPipeEntity_Fluid( + startID, + "GT_Pipe_" + name + "_Quadruple", + "Quadruple " + displayName + " Fluid Pipe", + 1.0F, + aMaterial, + baseCapacity, + heatCapacity, + gasProof, + 4).getStackForm(1L)); GT_OreDictUnificator.registerOre( - OrePrefixes.pipeNonuple.get(aMaterial), - new GT_MetaPipeEntity_Fluid( - startID + 1, - "GT_Pipe_" + name + "_Nonuple", - "Nonuple " + displayName + " Fluid Pipe", - 1.0F, - aMaterial, - baseCapacity / 3, - heatCapacity, - gasProof, - 9).getStackForm(1L)); + OrePrefixes.pipeNonuple.get(aMaterial), + new GT_MetaPipeEntity_Fluid( + startID + 1, + "GT_Pipe_" + name + "_Nonuple", + "Nonuple " + displayName + " Fluid Pipe", + 1.0F, + aMaterial, + baseCapacity / 3, + heatCapacity, + gasProof, + 9).getStackForm(1L)); } } diff --git a/src/main/java/gregtech/loaders/preload/GT_Loader_MultiTileEntities.java b/src/main/java/gregtech/loaders/preload/GT_Loader_MultiTileEntities.java index 9aedde81c4..a43cb8f89d 100644 --- a/src/main/java/gregtech/loaders/preload/GT_Loader_MultiTileEntities.java +++ b/src/main/java/gregtech/loaders/preload/GT_Loader_MultiTileEntities.java @@ -29,90 +29,72 @@ public class GT_Loader_MultiTileEntities implements Runnable { } private static void registerMachines() { - final MultiTileEntityBlock machine = MultiTileEntityBlock.getOrCreate( - "GregTech", - "machine", - Material.iron, - Block.soundTypeMetal, - "wrench", - 0, - 0, - 15, - true, - true); + final MultiTileEntityBlock machine = MultiTileEntityBlock + .getOrCreate("GregTech", "machine", Material.iron, Block.soundTypeMetal, "wrench", 0, 0, 15, true, true); final MultiTileEntityRegistry machineRegistry = new MultiTileEntityRegistry("gt.multitileentity.controllers"); // Disable for now machineRegistry.create(1000, MultiBlock_Macerator.class) - .name("Large Macerator") - .category("Multiblock Controller") - .setBlock(machine) - .material(Materials.Iron) - .texture("metalwall") - .tankCapacity(128000L) - .inputInventorySize(16) - .outputInventorySize(16) - .register(); + .name("Large Macerator") + .category("Multiblock Controller") + .setBlock(machine) + .material(Materials.Iron) + .texture("metalwall") + .tankCapacity(128000L) + .inputInventorySize(16) + .outputInventorySize(16) + .register(); machineRegistry.create(0, MultiBlock_CokeOven.class) - .name("Coke Oven") - .category("MultiblockController") - .setBlock(machine) - .texture("cokeOven") - .inputInventorySize(1) - .outputInventorySize(1) - .register(); + .name("Coke Oven") + .category("MultiblockController") + .setBlock(machine) + .texture("cokeOven") + .inputInventorySize(1) + .outputInventorySize(1) + .register(); } private static void registerCasings() { final MultiTileEntityRegistry casingRegistry = new MultiTileEntityRegistry("gt.multitileentity.casings"); - final MultiTileEntityBlock casing = MultiTileEntityBlock.getOrCreate( - "GregTech", - "casing", - Material.iron, - Block.soundTypeMetal, - "wrench", - 0, - 0, - 15, - true, - true); + final MultiTileEntityBlock casing = MultiTileEntityBlock + .getOrCreate("GregTech", "casing", Material.iron, Block.soundTypeMetal, "wrench", 0, 0, 15, true, true); casingRegistry.create(CokeOven.getId(), WallShareablePart.class) - .name("Coke Oven Bricks") - .category("MultiBlock Casing") - .setBlock(casing) - .texture("cokeOven") - .register(); + .name("Coke Oven Bricks") + .category("MultiBlock Casing") + .setBlock(casing) + .texture("cokeOven") + .register(); casingRegistry.create(18000, BasicCasing.class) - .name("Test Casing") - .category("Multiblock Casing") - .setBlock(casing) - .material(Materials.Cobalt) - .texture("metalwall") - .register(); + .name("Test Casing") + .category("Multiblock Casing") + .setBlock(casing) + .material(Materials.Cobalt) + .texture("metalwall") + .register(); casingRegistry.create(20001, InventoryUpgrade.class) - .name("Inventory Upgrade LV") - .category("MultiBlock Special Casing") - .setBlock(casing) - .material(Materials.SpaceTime) - .texture("metalwall") - .upgradeInventorySize(16) - .tier(1) - .register(); + .name("Inventory Upgrade LV") + .category("MultiBlock Special Casing") + .setBlock(casing) + .material(Materials.SpaceTime) + .texture("metalwall") + .upgradeInventorySize(16) + .tier(1) + .register(); casingRegistry.create(20002, InventoryUpgrade.class) - .name("Inventory Upgrade MV") - .category("MultiBlock Upgrade Casing") - .setBlock(casing) - .material(Materials.Neutronium) - .texture("metalwall") - .upgradeInventorySize(24) - .tier(2) - .register(); + .name("Inventory Upgrade MV") + .category("MultiBlock Upgrade Casing") + .setBlock(casing) + .material(Materials.Neutronium) + .texture("metalwall") + .upgradeInventorySize(24) + .tier(2) + .register(); casingRegistry.create(10000, MotorCasing.class) - .name("Motor Casing LV") - .tier(1) - .category("MultiBlock Functional Casing") - .setBlock(casing) - .material(Materials.Arsenic) - .texture("metalwall") - .register(); + .name("Motor Casing LV") + .tier(1) + .category("MultiBlock Functional Casing") + .setBlock(casing) + .material(Materials.Arsenic) + .texture("metalwall") + .register(); } } diff --git a/src/main/java/gregtech/loaders/preload/GT_Loader_OreDictionary.java b/src/main/java/gregtech/loaders/preload/GT_Loader_OreDictionary.java index cefc31eef6..109efff2bb 100644 --- a/src/main/java/gregtech/loaders/preload/GT_Loader_OreDictionary.java +++ b/src/main/java/gregtech/loaders/preload/GT_Loader_OreDictionary.java @@ -34,9 +34,9 @@ public class GT_Loader_OreDictionary implements Runnable { GT_OreDictUnificator.set(OrePrefixes.cell, Materials.Water, ItemList.Cell_Water.get(1L)); GT_OreDictUnificator.set(OrePrefixes.cell, Materials.Water, GT_ModHandler.getIC2Item("waterCell", 1L)); GT_OreDictUnificator.set( - OrePrefixes.cell, - Materials.Creosote, - GT_ModHandler.getModItem(Railcraft.ID, "fluid.creosote.cell", 1L)); + OrePrefixes.cell, + Materials.Creosote, + GT_ModHandler.getModItem(Railcraft.ID, "fluid.creosote.cell", 1L)); GT_OreDictUnificator.set(OrePrefixes.cell, Materials.UUMatter, GT_ModHandler.getIC2Item("uuMatterCell", 1L)); GT_OreDictUnificator.set(OrePrefixes.cell, Materials.ConstructionFoam, GT_ModHandler.getIC2Item("CFCell", 1L)); @@ -51,14 +51,10 @@ public class GT_Loader_OreDictionary implements Runnable { GT_OreDictUnificator.set(OrePrefixes.bottle, Materials.Empty, new ItemStack(Items.glass_bottle, 1, 0)); GT_OreDictUnificator.set(OrePrefixes.bottle, Materials.Water, new ItemStack(Items.potionitem, 1, 0)); - GT_OreDictUnificator.set( - OrePrefixes.plateAlloy, - Materials.Iridium, - GT_ModHandler.getIC2Item("iridiumPlate", 1L)); - GT_OreDictUnificator.set( - OrePrefixes.plateAlloy, - Materials.Advanced, - GT_ModHandler.getIC2Item("advancedAlloy", 1L)); + GT_OreDictUnificator + .set(OrePrefixes.plateAlloy, Materials.Iridium, GT_ModHandler.getIC2Item("iridiumPlate", 1L)); + GT_OreDictUnificator + .set(OrePrefixes.plateAlloy, Materials.Advanced, GT_ModHandler.getIC2Item("advancedAlloy", 1L)); GT_OreDictUnificator.set(OrePrefixes.plateAlloy, Materials.Carbon, GT_ModHandler.getIC2Item("carbonPlate", 1L)); GT_OreDictUnificator.set(OrePrefixes.ore, Materials.Coal, new ItemStack(Blocks.coal_ore, 1)); @@ -110,45 +106,35 @@ public class GT_Loader_OreDictionary implements Runnable { GT_OreDictUnificator.registerOre(OreDictNames.enderChest, new ItemStack(Blocks.ender_chest, 1)); } GT_OreDictUnificator.registerOre(OreDictNames.craftingAnvil, new ItemStack(Blocks.anvil, 1)); - GT_OreDictUnificator.registerOre( - OreDictNames.craftingAnvil, - GT_ModHandler.getModItem(Railcraft.ID, "anvil", 1L, 0)); - GT_OreDictUnificator.registerOre( - OreDictNames.craftingIndustrialDiamond, - ItemList.IC2_Industrial_Diamond.get(1L)); - GT_OreDictUnificator.registerOre( - OrePrefixes.dust, - Materials.Wood, - GT_ModHandler.getModItem(ThermalExpansion.ID, "sawdust", 1L)); - GT_OreDictUnificator.registerOre( - OrePrefixes.glass, - Materials.Reinforced, - GT_ModHandler.getIC2Item("reinforcedGlass", 1L)); - GT_OreDictUnificator.registerOre( - OrePrefixes.glass, - Materials.Reinforced, - GT_ModHandler.getModItem(ThermalExpansion.ID, "glassHardened", 1L)); - - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Basalt, - GT_ModHandler.getModItem(Railcraft.ID, "cube", 1L, 6)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Marble, - GT_ModHandler.getModItem(Railcraft.ID, "cube", 1L, 7)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Basalt, - GT_ModHandler.getModItem(Railcraft.ID, "brick.abyssal", 1L, 32767)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Marble, - GT_ModHandler.getModItem(Railcraft.ID, "brick.quarried", 1L, 32767)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Obsidian, - new ItemStack(Blocks.obsidian, 1, 32767)); + GT_OreDictUnificator + .registerOre(OreDictNames.craftingAnvil, GT_ModHandler.getModItem(Railcraft.ID, "anvil", 1L, 0)); + GT_OreDictUnificator + .registerOre(OreDictNames.craftingIndustrialDiamond, ItemList.IC2_Industrial_Diamond.get(1L)); + GT_OreDictUnificator.registerOre( + OrePrefixes.dust, + Materials.Wood, + GT_ModHandler.getModItem(ThermalExpansion.ID, "sawdust", 1L)); + GT_OreDictUnificator + .registerOre(OrePrefixes.glass, Materials.Reinforced, GT_ModHandler.getIC2Item("reinforcedGlass", 1L)); + GT_OreDictUnificator.registerOre( + OrePrefixes.glass, + Materials.Reinforced, + GT_ModHandler.getModItem(ThermalExpansion.ID, "glassHardened", 1L)); + + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Basalt, GT_ModHandler.getModItem(Railcraft.ID, "cube", 1L, 6)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Marble, GT_ModHandler.getModItem(Railcraft.ID, "cube", 1L, 7)); + GT_OreDictUnificator.registerOre( + OrePrefixes.stone, + Materials.Basalt, + GT_ModHandler.getModItem(Railcraft.ID, "brick.abyssal", 1L, 32767)); + GT_OreDictUnificator.registerOre( + OrePrefixes.stone, + Materials.Marble, + GT_ModHandler.getModItem(Railcraft.ID, "brick.quarried", 1L, 32767)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Obsidian, new ItemStack(Blocks.obsidian, 1, 32767)); GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Stone, new ItemStack(Blocks.stone, 1, 32767)); GT_OreDictUnificator.registerOre(OrePrefixes.stoneMossy, new ItemStack(Blocks.mossy_cobblestone, 1, 32767)); GT_OreDictUnificator.registerOre(OrePrefixes.stoneCobble, new ItemStack(Blocks.mossy_cobblestone, 1, 32767)); @@ -159,97 +145,70 @@ public class GT_Loader_OreDictionary implements Runnable { GT_OreDictUnificator.registerOre(OrePrefixes.stoneCracked, new ItemStack(Blocks.stonebrick, 1, 2)); GT_OreDictUnificator.registerOre(OrePrefixes.stoneChiseled, new ItemStack(Blocks.stonebrick, 1, 3)); GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Sand, new ItemStack(Blocks.sandstone, 1, 32767)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Netherrack, - new ItemStack(Blocks.netherrack, 1, 32767)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.NetherBrick, - new ItemStack(Blocks.nether_brick, 1, 32767)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Endstone, - new ItemStack(Blocks.end_stone, 1, 32767)); - GT_OreDictUnificator.registerOre( - OrePrefixes.stone, - Materials.Glowstone, - new ItemStack(Blocks.glowstone, 1, 32767)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Netherrack, new ItemStack(Blocks.netherrack, 1, 32767)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.NetherBrick, new ItemStack(Blocks.nether_brick, 1, 32767)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Endstone, new ItemStack(Blocks.end_stone, 1, 32767)); + GT_OreDictUnificator + .registerOre(OrePrefixes.stone, Materials.Glowstone, new ItemStack(Blocks.glowstone, 1, 32767)); + GT_OreDictUnificator + .registerOre("paperResearchFragment", GT_ModHandler.getModItem(Thaumcraft.ID, "ItemResource", 1L, 9)); GT_OreDictUnificator.registerOre( - "paperResearchFragment", - GT_ModHandler.getModItem(Thaumcraft.ID, "ItemResource", 1L, 9)); + "itemCertusQuartz", + GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 1)); GT_OreDictUnificator.registerOre( - "itemCertusQuartz", - GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 1)); + "itemCertusQuartz", + GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 10)); GT_OreDictUnificator.registerOre( - "itemCertusQuartz", - GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 10)); + "itemNetherQuartz", + GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 11)); GT_OreDictUnificator.registerOre( - "itemNetherQuartz", - GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 11)); + OreDictNames.craftingQuartz, + GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 1)); GT_OreDictUnificator.registerOre( - OreDictNames.craftingQuartz, - GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 1)); + OreDictNames.craftingQuartz, + GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 10)); GT_OreDictUnificator.registerOre( - OreDictNames.craftingQuartz, - GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 10)); - GT_OreDictUnificator.registerOre( - OreDictNames.craftingQuartz, - GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 11)); + OreDictNames.craftingQuartz, + GT_ModHandler.getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1L, 11)); GT_OreDictUnificator.registerOre("cropLemon", ItemList.FR_Lemon.get(1L)); GT_OreDictUnificator.registerOre("cropCoffee", ItemList.IC2_CoffeeBeans.get(1L)); GT_OreDictUnificator.registerOre("cropPotato", ItemList.Food_Raw_Potato.get(1L)); GT_OreDictUnificator.registerOre("calclavia:BATTERY", GT_ModHandler.getIC2Item("reBattery", 1L)); GT_OreDictUnificator.registerOre("calclavia:BATTERY", GT_ModHandler.getIC2Item("chargedReBattery", 1L, 32767)); - GT_OreDictUnificator.registerOre( - OrePrefixes.battery, - Materials.Basic, - GT_ModHandler.getIC2Item("reBattery", 1L)); - GT_OreDictUnificator.registerOre( - OrePrefixes.battery, - Materials.Basic, - GT_ModHandler.getIC2Item("chargedReBattery", 1L, 32767)); - GT_OreDictUnificator.registerOre( - OrePrefixes.battery, - Materials.Advanced, - GT_ModHandler.getIC2Item("advBattery", 1L, 32767)); - GT_OreDictUnificator.registerOre( - OrePrefixes.battery, - Materials.Elite, - GT_ModHandler.getIC2Item("energyCrystal", 1L, 32767)); - GT_OreDictUnificator.registerOre( - OrePrefixes.battery, - Materials.Master, - GT_ModHandler.getIC2Item("lapotronCrystal", 1L, 32767)); - - GT_OreDictUnificator.registerOre( - OreDictNames.craftingWireCopper, - GT_ModHandler.getIC2Item("insulatedCopperCableItem", 1L)); - GT_OreDictUnificator.registerOre( - OreDictNames.craftingWireGold, - GT_ModHandler.getIC2Item("insulatedGoldCableItem", 1L)); - GT_OreDictUnificator.registerOre( - OreDictNames.craftingWireIron, - GT_ModHandler.getIC2Item("insulatedIronCableItem", 1L)); - GT_OreDictUnificator.registerOre( - OreDictNames.craftingWireTin, - GT_ModHandler.getIC2Item( - "insulatedTinCableItem", - 1L, - GT_ModHandler.getIC2Item("insulatedCopperCableItem", 1L))); - - GT_OreDictUnificator.registerOre( - OreDictNames.craftingRedstoneTorch, - new ItemStack(Blocks.redstone_torch, 1, 32767)); - GT_OreDictUnificator.registerOre( - OreDictNames.craftingRedstoneTorch, - new ItemStack(Blocks.unlit_redstone_torch, 1, 32767)); + GT_OreDictUnificator + .registerOre(OrePrefixes.battery, Materials.Basic, GT_ModHandler.getIC2Item("reBattery", 1L)); + GT_OreDictUnificator + .registerOre(OrePrefixes.battery, Materials.Basic, GT_ModHandler.getIC2Item("chargedReBattery", 1L, 32767)); + GT_OreDictUnificator + .registerOre(OrePrefixes.battery, Materials.Advanced, GT_ModHandler.getIC2Item("advBattery", 1L, 32767)); + GT_OreDictUnificator + .registerOre(OrePrefixes.battery, Materials.Elite, GT_ModHandler.getIC2Item("energyCrystal", 1L, 32767)); + GT_OreDictUnificator + .registerOre(OrePrefixes.battery, Materials.Master, GT_ModHandler.getIC2Item("lapotronCrystal", 1L, 32767)); + + GT_OreDictUnificator + .registerOre(OreDictNames.craftingWireCopper, GT_ModHandler.getIC2Item("insulatedCopperCableItem", 1L)); + GT_OreDictUnificator + .registerOre(OreDictNames.craftingWireGold, GT_ModHandler.getIC2Item("insulatedGoldCableItem", 1L)); + GT_OreDictUnificator + .registerOre(OreDictNames.craftingWireIron, GT_ModHandler.getIC2Item("insulatedIronCableItem", 1L)); + GT_OreDictUnificator.registerOre( + OreDictNames.craftingWireTin, + GT_ModHandler + .getIC2Item("insulatedTinCableItem", 1L, GT_ModHandler.getIC2Item("insulatedCopperCableItem", 1L))); + + GT_OreDictUnificator + .registerOre(OreDictNames.craftingRedstoneTorch, new ItemStack(Blocks.redstone_torch, 1, 32767)); + GT_OreDictUnificator + .registerOre(OreDictNames.craftingRedstoneTorch, new ItemStack(Blocks.unlit_redstone_torch, 1, 32767)); GT_OreDictUnificator.registerOre(OreDictNames.craftingWorkBench, new ItemStack(Blocks.crafting_table, 1)); - GT_OreDictUnificator.registerOre( - OreDictNames.craftingWorkBench, - new ItemStack(GregTech_API.sBlockMachines, 1, 16)); + GT_OreDictUnificator + .registerOre(OreDictNames.craftingWorkBench, new ItemStack(GregTech_API.sBlockMachines, 1, 16)); GT_OreDictUnificator.registerOre(OreDictNames.craftingPiston, new ItemStack(Blocks.piston, 1, 32767)); GT_OreDictUnificator.registerOre(OreDictNames.craftingPiston, new ItemStack(Blocks.sticky_piston, 1, 32767)); @@ -264,58 +223,48 @@ public class GT_Loader_OreDictionary implements Runnable { GT_OreDictUnificator.registerOre(OreDictNames.craftingFurnace, new ItemStack(Blocks.lit_furnace, 1, 32767)); GT_OreDictUnificator.registerOre(OreDictNames.craftingPump, GT_ModHandler.getIC2Item("pump", 1L)); - GT_OreDictUnificator.registerOre( - OreDictNames.craftingElectromagnet, - GT_ModHandler.getIC2Item("magnetizer", 1L)); + GT_OreDictUnificator + .registerOre(OreDictNames.craftingElectromagnet, GT_ModHandler.getIC2Item("magnetizer", 1L)); GT_OreDictUnificator.registerOre(OreDictNames.craftingTeleporter, GT_ModHandler.getIC2Item("teleporter", 1L)); GT_OreDictUnificator.registerOre(OreDictNames.craftingMacerator, GT_ModHandler.getIC2Item("macerator", 1L)); - GT_OreDictUnificator.registerOre( - OreDictNames.craftingMacerator, - new ItemStack(GregTech_API.sBlockMachines, 1, 50)); + GT_OreDictUnificator + .registerOre(OreDictNames.craftingMacerator, new ItemStack(GregTech_API.sBlockMachines, 1, 50)); GT_OreDictUnificator.registerOre(OreDictNames.craftingExtractor, GT_ModHandler.getIC2Item("extractor", 1L)); - GT_OreDictUnificator.registerOre( - OreDictNames.craftingExtractor, - new ItemStack(GregTech_API.sBlockMachines, 1, 51)); + GT_OreDictUnificator + .registerOre(OreDictNames.craftingExtractor, new ItemStack(GregTech_API.sBlockMachines, 1, 51)); GT_OreDictUnificator.registerOre(OreDictNames.craftingCompressor, GT_ModHandler.getIC2Item("compressor", 1L)); - GT_OreDictUnificator.registerOre( - OreDictNames.craftingCompressor, - new ItemStack(GregTech_API.sBlockMachines, 1, 52)); + GT_OreDictUnificator + .registerOre(OreDictNames.craftingCompressor, new ItemStack(GregTech_API.sBlockMachines, 1, 52)); GT_OreDictUnificator.registerOre(OreDictNames.craftingRecycler, GT_ModHandler.getIC2Item("recycler", 1L)); - GT_OreDictUnificator.registerOre( - OreDictNames.craftingRecycler, - new ItemStack(GregTech_API.sBlockMachines, 1, 53)); + GT_OreDictUnificator + .registerOre(OreDictNames.craftingRecycler, new ItemStack(GregTech_API.sBlockMachines, 1, 53)); GT_OreDictUnificator.registerOre(OreDictNames.craftingIronFurnace, GT_ModHandler.getIC2Item("ironFurnace", 1L)); - GT_OreDictUnificator.registerOre( - OreDictNames.craftingCentrifuge, - new ItemStack(GregTech_API.sBlockMachines, 1, 62)); + GT_OreDictUnificator + .registerOre(OreDictNames.craftingCentrifuge, new ItemStack(GregTech_API.sBlockMachines, 1, 62)); - GT_OreDictUnificator.registerOre( - OreDictNames.craftingInductionFurnace, - GT_ModHandler.getIC2Item("inductionFurnace", 1L)); + GT_OreDictUnificator + .registerOre(OreDictNames.craftingInductionFurnace, GT_ModHandler.getIC2Item("inductionFurnace", 1L)); - GT_OreDictUnificator.registerOre( - OreDictNames.craftingElectricFurnace, - GT_ModHandler.getIC2Item("electroFurnace", 1L)); - GT_OreDictUnificator.registerOre( - OreDictNames.craftingElectricFurnace, - new ItemStack(GregTech_API.sBlockMachines, 1, 54)); + GT_OreDictUnificator + .registerOre(OreDictNames.craftingElectricFurnace, GT_ModHandler.getIC2Item("electroFurnace", 1L)); + GT_OreDictUnificator + .registerOre(OreDictNames.craftingElectricFurnace, new ItemStack(GregTech_API.sBlockMachines, 1, 54)); GT_OreDictUnificator.registerOre(OreDictNames.craftingGenerator, GT_ModHandler.getIC2Item("generator", 1L)); - GT_OreDictUnificator.registerOre( - OreDictNames.craftingGeothermalGenerator, - GT_ModHandler.getIC2Item("geothermalGenerator", 1L)); + GT_OreDictUnificator + .registerOre(OreDictNames.craftingGeothermalGenerator, GT_ModHandler.getIC2Item("geothermalGenerator", 1L)); GT_OreDictUnificator.registerOre(OreDictNames.craftingFeather, new ItemStack(Items.feather, 1, 32767)); GT_OreDictUnificator.registerOre( - OreDictNames.craftingFeather, - GT_ModHandler.getModItem(TwilightForest.ID, "item.tfFeather", 1L, 32767)); + OreDictNames.craftingFeather, + GT_ModHandler.getModItem(TwilightForest.ID, "item.tfFeather", 1L, 32767)); GT_OreDictUnificator.registerOre("itemWheat", new ItemStack(Items.wheat, 1, 32767)); GT_OreDictUnificator.registerOre("paperEmpty", new ItemStack(Items.paper, 1, 32767)); @@ -330,192 +279,188 @@ public class GT_Loader_OreDictionary implements Runnable { GT_OreDictUnificator.registerOre(OreDictNames.craftingBook, new ItemStack(Items.written_book, 1, 32767)); GT_OreDictUnificator.registerOre(OreDictNames.craftingBook, new ItemStack(Items.enchanted_book, 1, 32767)); - GT_OreDictUnificator.registerOre( - OrePrefixes.circuit, - Materials.Basic, - GT_ModHandler.getIC2Item("electronicCircuit", 1L)); - GT_OreDictUnificator.registerOre( - OrePrefixes.circuit, - Materials.Advanced, - GT_ModHandler.getIC2Item("advancedCircuit", 1L)); + GT_OreDictUnificator + .registerOre(OrePrefixes.circuit, Materials.Basic, GT_ModHandler.getIC2Item("electronicCircuit", 1L)); + GT_OreDictUnificator + .registerOre(OrePrefixes.circuit, Materials.Advanced, GT_ModHandler.getIC2Item("advancedCircuit", 1L)); GT_OreDictUnificator.registerOre( - OrePrefixes.itemCasing, - Materials.Copper, - GT_ModHandler.getModItem(IndustrialCraft2.ID, "itemCasing", 1L, 0)); + OrePrefixes.itemCasing, + Materials.Copper, + GT_ModHandler.getModItem(IndustrialCraft2.ID, "itemCasing", 1L, 0)); GT_OreDictUnificator.registerOre( - OrePrefixes.itemCasing, - Materials.Tin, - GT_ModHandler.getModItem(IndustrialCraft2.ID, "itemCasing", 1L, 1)); + OrePrefixes.itemCasing, + Materials.Tin, + GT_ModHandler.getModItem(IndustrialCraft2.ID, "itemCasing", 1L, 1)); GT_OreDictUnificator.registerOre( - OrePrefixes.itemCasing, - Materials.Bronze, - GT_ModHandler.getModItem(IndustrialCraft2.ID, "itemCasing", 1L, 2)); + OrePrefixes.itemCasing, + Materials.Bronze, + GT_ModHandler.getModItem(IndustrialCraft2.ID, "itemCasing", 1L, 2)); GT_OreDictUnificator.registerOre( - OrePrefixes.itemCasing, - Materials.Gold, - GT_ModHandler.getModItem(IndustrialCraft2.ID, "itemCasing", 1L, 3)); + OrePrefixes.itemCasing, + Materials.Gold, + GT_ModHandler.getModItem(IndustrialCraft2.ID, "itemCasing", 1L, 3)); GT_OreDictUnificator.registerOre( - OrePrefixes.itemCasing, - Materials.Iron, - GT_ModHandler.getModItem(IndustrialCraft2.ID, "itemCasing", 1L, 4)); + OrePrefixes.itemCasing, + Materials.Iron, + GT_ModHandler.getModItem(IndustrialCraft2.ID, "itemCasing", 1L, 4)); GT_OreDictUnificator.registerOre( - OrePrefixes.itemCasing, - Materials.Steel, - GT_ModHandler.getModItem(IndustrialCraft2.ID, "itemCasing", 1L, 5)); + OrePrefixes.itemCasing, + Materials.Steel, + GT_ModHandler.getModItem(IndustrialCraft2.ID, "itemCasing", 1L, 5)); GT_OreDictUnificator.registerOre( - OrePrefixes.itemCasing, - Materials.Lead, - GT_ModHandler.getModItem(IndustrialCraft2.ID, "itemCasing", 1L, 6)); + OrePrefixes.itemCasing, + Materials.Lead, + GT_ModHandler.getModItem(IndustrialCraft2.ID, "itemCasing", 1L, 6)); GT_OreDictUnificator.registerOre( - OrePrefixes.itemCasing, - Materials.Osmium, - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.OsmiumItemCasing", 1L, 0)); + OrePrefixes.itemCasing, + Materials.Osmium, + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.OsmiumItemCasing", 1L, 0)); GT_OreDictUnificator.registerOre( - OrePrefixes.itemCasing, - Materials.Aluminium, - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.AluminiumItemCasing", 1L, 0)); + OrePrefixes.itemCasing, + Materials.Aluminium, + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.AluminiumItemCasing", 1L, 0)); GT_OreDictUnificator.registerOre( - OrePrefixes.itemCasing, - Materials.StainlessSteel, - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.StainlessSteelItemCasing", 1L, 0)); + OrePrefixes.itemCasing, + Materials.StainlessSteel, + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.StainlessSteelItemCasing", 1L, 0)); GT_OreDictUnificator.registerOre( - OrePrefixes.itemCasing, - Materials.Tungsten, - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.TungstenItemCasing", 1L, 0)); + OrePrefixes.itemCasing, + Materials.Tungsten, + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.TungstenItemCasing", 1L, 0)); GT_OreDictUnificator.registerOre( - OrePrefixes.itemCasing, - Materials.Neutronium, - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.NeutroniumItemCasing", 1L, 0)); + OrePrefixes.itemCasing, + Materials.Neutronium, + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.NeutroniumItemCasing", 1L, 0)); GT_OreDictUnificator.registerOre( - OrePrefixes.itemCasing, - Materials.TungstenSteel, - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.TungstenSteelItemCasing", 1L, 0)); + OrePrefixes.itemCasing, + Materials.TungstenSteel, + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.TungstenSteelItemCasing", 1L, 0)); GT_OreDictUnificator.registerOre( - OrePrefixes.itemCasing, - Materials.Iridium, - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.IridiumItemCasing", 1L, 0)); + OrePrefixes.itemCasing, + Materials.Iridium, + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.IridiumItemCasing", 1L, 0)); GT_OreDictUnificator.registerOre( - OrePrefixes.itemCasing, - Materials.Titanium, - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.TitaniumItemCasing", 1L, 0)); + OrePrefixes.itemCasing, + Materials.Titanium, + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.TitaniumItemCasing", 1L, 0)); GT_OreDictUnificator.registerOre( - OrePrefixes.itemCasing, - Materials.Chrome, - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.ChromeItemCasing", 1L, 0)); + OrePrefixes.itemCasing, + Materials.Chrome, + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.ChromeItemCasing", 1L, 0)); // Fake Circuits GT_OreDictUnificator.registerOre( - OrePrefixes.circuit, - Materials.Primitive, - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CircuitULV", 1L)); + OrePrefixes.circuit, + Materials.Primitive, + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CircuitULV", 1L)); // GT_OreDictUnificator.registerOre(OrePrefixes.circuit, Materials.Basic, // GT_ModHandler.getModItem(NewHorizonsCoreMod.modID, // "item.CircuitLV", 1L)); GT_OreDictUnificator.registerOre( - OrePrefixes.circuit, - Materials.Good, - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CircuitMV", 1L)); + OrePrefixes.circuit, + Materials.Good, + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CircuitMV", 1L)); // GT_OreDictUnificator.registerOre(OrePrefixes.circuit, Materials.Advanced, // GT_ModHandler.getModItem(NewHorizonsCoreMod.modID, // "item.CircuitHV", 1L)); GT_OreDictUnificator.registerOre( - OrePrefixes.circuit, - Materials.Data, - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CircuitEV", 1L)); + OrePrefixes.circuit, + Materials.Data, + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CircuitEV", 1L)); GT_OreDictUnificator.registerOre( - OrePrefixes.circuit, - Materials.Elite, - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CircuitIV", 1L)); + OrePrefixes.circuit, + Materials.Elite, + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CircuitIV", 1L)); GT_OreDictUnificator.registerOre( - OrePrefixes.circuit, - Materials.Master, - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CircuitLuV", 1L)); + OrePrefixes.circuit, + Materials.Master, + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CircuitLuV", 1L)); GT_OreDictUnificator.registerOre( - OrePrefixes.circuit, - Materials.Ultimate, - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CircuitZPM", 1L)); + OrePrefixes.circuit, + Materials.Ultimate, + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CircuitZPM", 1L)); GT_OreDictUnificator.registerOre( - OrePrefixes.circuit, - Materials.Superconductor, - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CircuitUV", 1L)); + OrePrefixes.circuit, + Materials.Superconductor, + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CircuitUV", 1L)); GT_OreDictUnificator.registerOre( - OrePrefixes.circuit, - Materials.Infinite, - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CircuitUHV", 1L)); + OrePrefixes.circuit, + Materials.Infinite, + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CircuitUHV", 1L)); GT_OreDictUnificator.registerOre( - OrePrefixes.circuit, - Materials.Bio, - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CircuitUEV", 1L)); + OrePrefixes.circuit, + Materials.Bio, + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CircuitUEV", 1L)); GT_OreDictUnificator.registerOre( - OrePrefixes.circuit, - Materials.Optical, - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CircuitUIV", 1L)); + OrePrefixes.circuit, + Materials.Optical, + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CircuitUIV", 1L)); GT_OreDictUnificator.registerOre( - OrePrefixes.circuit, - Materials.Exotic, - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CircuitUMV", 1L)); + OrePrefixes.circuit, + Materials.Exotic, + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CircuitUMV", 1L)); GT_OreDictUnificator.registerOre( - OrePrefixes.circuit, - Materials.Cosmic, - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CircuitUXV", 1L)); + OrePrefixes.circuit, + Materials.Cosmic, + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CircuitUXV", 1L)); GT_OreDictUnificator.registerOre( - OrePrefixes.circuit, - Materials.Transcendent, - GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CircuitMAX", 1L)); + OrePrefixes.circuit, + Materials.Transcendent, + GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CircuitMAX", 1L)); GT_OreDictUnificator.registerOre( - OrePrefixes.block, - MaterialsBotania.Manasteel, - GT_ModHandler.getModItem(Botania.ID, "storage", 1L)); + OrePrefixes.block, + MaterialsBotania.Manasteel, + GT_ModHandler.getModItem(Botania.ID, "storage", 1L)); GT_OreDictUnificator.registerOre( - OrePrefixes.block, - MaterialsBotania.Terrasteel, - GT_ModHandler.getModItem(Botania.ID, "storage", 1L, 1)); + OrePrefixes.block, + MaterialsBotania.Terrasteel, + GT_ModHandler.getModItem(Botania.ID, "storage", 1L, 1)); GT_OreDictUnificator.registerOre( - OrePrefixes.ingot, - MaterialsBotania.ElvenElementium, - GT_ModHandler.getModItem(Botania.ID, "manaResource", 1L, 7)); + OrePrefixes.ingot, + MaterialsBotania.ElvenElementium, + GT_ModHandler.getModItem(Botania.ID, "manaResource", 1L, 7)); GT_OreDictUnificator.registerOre( - OrePrefixes.nugget, - MaterialsBotania.ElvenElementium, - GT_ModHandler.getModItem(Botania.ID, "manaResource", 1L, 19)); + OrePrefixes.nugget, + MaterialsBotania.ElvenElementium, + GT_ModHandler.getModItem(Botania.ID, "manaResource", 1L, 19)); GT_OreDictUnificator.registerOre( - OrePrefixes.block, - MaterialsBotania.ElvenElementium, - GT_ModHandler.getModItem(Botania.ID, "storage", 1L, 2)); + OrePrefixes.block, + MaterialsBotania.ElvenElementium, + GT_ModHandler.getModItem(Botania.ID, "storage", 1L, 2)); GT_OreDictUnificator.registerOre( - OrePrefixes.block, - MaterialsBotania.Livingrock, - GT_ModHandler.getModItem(Botania.ID, "livingrock", 1L)); + OrePrefixes.block, + MaterialsBotania.Livingrock, + GT_ModHandler.getModItem(Botania.ID, "livingrock", 1L)); GT_OreDictUnificator.registerOre( - OrePrefixes.ingot, - MaterialsBotania.GaiaSpirit, - GT_ModHandler.getModItem(Botania.ID, "manaResource", 1L, 14)); + OrePrefixes.ingot, + MaterialsBotania.GaiaSpirit, + GT_ModHandler.getModItem(Botania.ID, "manaResource", 1L, 14)); GT_OreDictUnificator.registerOre( - OrePrefixes.block, - MaterialsBotania.Livingwood, - GT_ModHandler.getModItem(Botania.ID, "livingwood", 1L)); + OrePrefixes.block, + MaterialsBotania.Livingwood, + GT_ModHandler.getModItem(Botania.ID, "livingwood", 1L)); GT_OreDictUnificator.registerOre( - OrePrefixes.block, - MaterialsBotania.Dreamwood, - GT_ModHandler.getModItem(Botania.ID, "dreamwood", 1L)); + OrePrefixes.block, + MaterialsBotania.Dreamwood, + GT_ModHandler.getModItem(Botania.ID, "dreamwood", 1L)); GT_OreDictUnificator.registerOre( - OrePrefixes.gem, - MaterialsBotania.ManaDiamond, - GT_ModHandler.getModItem(Botania.ID, "manaResource", 1L, 2)); + OrePrefixes.gem, + MaterialsBotania.ManaDiamond, + GT_ModHandler.getModItem(Botania.ID, "manaResource", 1L, 2)); GT_OreDictUnificator.registerOre( - OrePrefixes.block, - MaterialsBotania.ManaDiamond, - GT_ModHandler.getModItem(Botania.ID, "storage", 1L, 3)); + OrePrefixes.block, + MaterialsBotania.ManaDiamond, + GT_ModHandler.getModItem(Botania.ID, "storage", 1L, 3)); GT_OreDictUnificator.registerOre( - OrePrefixes.gem, - MaterialsBotania.BotaniaDragonstone, - GT_ModHandler.getModItem(Botania.ID, "manaResource", 1L, 9)); + OrePrefixes.gem, + MaterialsBotania.BotaniaDragonstone, + GT_ModHandler.getModItem(Botania.ID, "manaResource", 1L, 9)); GT_OreDictUnificator.registerOre( - OrePrefixes.block, - MaterialsBotania.BotaniaDragonstone, - GT_ModHandler.getModItem(Botania.ID, "storage", 1L, 4)); + OrePrefixes.block, + MaterialsBotania.BotaniaDragonstone, + GT_ModHandler.getModItem(Botania.ID, "storage", 1L, 4)); } } diff --git a/src/main/java/gregtech/loaders/preload/GT_PreLoad.java b/src/main/java/gregtech/loaders/preload/GT_PreLoad.java index 3fb0247162..9950564953 100644 --- a/src/main/java/gregtech/loaders/preload/GT_PreLoad.java +++ b/src/main/java/gregtech/loaders/preload/GT_PreLoad.java @@ -45,11 +45,8 @@ public class GT_PreLoad { if (GT_Mod.gregtechproxy.mSortToTheEnd) { try { GT_FML_LOGGER.info("GT_Mod: Sorting GregTech to the end of the Mod List for further processing."); - LoadController tLoadController = (LoadController) GT_Utility.getFieldContent( - Loader.instance(), - "modController", - true, - true); + LoadController tLoadController = (LoadController) GT_Utility + .getFieldContent(Loader.instance(), "modController", true, true); assert tLoadController != null; List tModList = tLoadController.getActiveModList(); List tNewModsList = new ArrayList<>(); @@ -58,7 +55,7 @@ public class GT_PreLoad { for (short i = 0; i < tModList_sS; i = (short) (i + 1)) { ModContainer tMod = tModList.get(i); if (tMod.getModId() - .equalsIgnoreCase(GregTech.ID)) { + .equalsIgnoreCase(GregTech.ID)) { tGregTech = tMod; } else { tNewModsList.add(tMod); @@ -68,7 +65,7 @@ public class GT_PreLoad { tNewModsList.add(tGregTech); } Objects.requireNonNull(GT_Utility.getField(tLoadController, "activeModList", true, true)) - .set(tLoadController, tNewModsList); + .set(tLoadController, tNewModsList); } catch (Throwable e) { GT_Mod.logStackTrace(e); } @@ -80,19 +77,18 @@ public class GT_PreLoad { GT_LanguageManager.sEnglishFile = new Configuration(new File(languageDir, "GregTech.lang")); GT_LanguageManager.sEnglishFile.load(); if (GT_LanguageManager.sEnglishFile.get("EnableLangFile", "UseThisFileAsLanguageFile", false) - .getBoolean(false)) { + .getBoolean(false)) { GT_LanguageManager.sLanguage = GT_LanguageManager.sEnglishFile.get("EnableLangFile", "Language", "en_US") - .getString(); + .getString(); } Materials.getMaterialsMap() - .values() - .parallelStream() - .filter(Objects::nonNull) - .forEach( - aMaterial -> aMaterial.mLocalizedName = GT_LanguageManager.addStringLocalization( - "Material." + aMaterial.mName.toLowerCase(), - aMaterial.mDefaultLocalName)); + .values() + .parallelStream() + .filter(Objects::nonNull) + .forEach( + aMaterial -> aMaterial.mLocalizedName = GT_LanguageManager + .addStringLocalization("Material." + aMaterial.mName.toLowerCase(), aMaterial.mDefaultLocalName)); } public static Configuration getConfiguration(File configDir) { @@ -104,24 +100,24 @@ public class GT_PreLoad { GT_Config.sConfigFileIDs.load(); GT_Config.sConfigFileIDs.save(); GregTech_API.sRecipeFile = new GT_Config( - new Configuration(new File(new File(configDir, "GregTech"), "Recipes.cfg"))); + new Configuration(new File(new File(configDir, "GregTech"), "Recipes.cfg"))); GregTech_API.sMachineFile = new GT_Config( - new Configuration(new File(new File(configDir, "GregTech"), "MachineStats.cfg"))); + new Configuration(new File(new File(configDir, "GregTech"), "MachineStats.cfg"))); GregTech_API.sWorldgenFile = new GT_Config( - new Configuration(new File(new File(configDir, "GregTech"), "WorldGeneration.cfg"))); + new Configuration(new File(new File(configDir, "GregTech"), "WorldGeneration.cfg"))); GregTech_API.sMaterialProperties = new GT_Config( - new Configuration(new File(new File(configDir, "GregTech"), "MaterialProperties.cfg"))); + new Configuration(new File(new File(configDir, "GregTech"), "MaterialProperties.cfg"))); GregTech_API.sMaterialComponents = new GT_Config( - new Configuration(new File(new File(configDir, "GregTech"), "MaterialComponents.cfg"))); + new Configuration(new File(new File(configDir, "GregTech"), "MaterialComponents.cfg"))); GregTech_API.sUnification = new GT_Config( - new Configuration(new File(new File(configDir, "GregTech"), "Unification.cfg"))); + new Configuration(new File(new File(configDir, "GregTech"), "Unification.cfg"))); GregTech_API.sSpecialFile = new GT_Config( - new Configuration(new File(new File(configDir, "GregTech"), "Other.cfg"))); + new Configuration(new File(new File(configDir, "GregTech"), "Other.cfg"))); GregTech_API.sOPStuff = new GT_Config( - new Configuration(new File(new File(configDir, "GregTech"), "OverpoweredStuff.cfg"))); + new Configuration(new File(new File(configDir, "GregTech"), "OverpoweredStuff.cfg"))); GregTech_API.sClientDataFile = new GT_Config( - new Configuration(new File(new File(configDir, "GregTech"), "Client.cfg"))); + new Configuration(new File(new File(configDir, "GregTech"), "Client.cfg"))); return tMainConfig; } @@ -148,7 +144,7 @@ public class GT_PreLoad { } catch (FileNotFoundException ignored) {} if (tMainConfig.get(GT_Mod.aTextGeneral, "LoggingOreDict", false) - .getBoolean(false)) { + .getBoolean(false)) { GT_Log.mOreDictLogFile = new File(parentFile, "logs/OreDict.log"); if (!GT_Log.mOreDictLogFile.exists()) { try { @@ -170,7 +166,7 @@ public class GT_PreLoad { } catch (Throwable ignored) {} } if (tMainConfig.get(GT_Mod.aTextGeneral, "LoggingExplosions", true) - .getBoolean(true)) { + .getBoolean(true)) { GT_Log.mExplosionLog = new File(parentFile, "logs/Explosion.log"); if (!GT_Log.mExplosionLog.exists()) { try { @@ -183,7 +179,7 @@ public class GT_PreLoad { } if (tMainConfig.get(GT_Mod.aTextGeneral, "LoggingPlayerActivity", true) - .getBoolean(true)) { + .getBoolean(true)) { GT_Log.mPlayerActivityLogFile = new File(parentFile, "logs/PlayerActivity.log"); if (!GT_Log.mPlayerActivityLogFile.exists()) { try { @@ -206,7 +202,7 @@ public class GT_PreLoad { final List scripts = new ArrayList<>(); for (File file : Objects.requireNonNull(globalDir.listFiles())) { if (file.getName() - .endsWith(".zs")) { + .endsWith(".zs")) { try (BufferedReader br = new BufferedReader(new FileReader(file))) { String line; while ((line = br.readLine()) != null) { @@ -245,21 +241,20 @@ public class GT_PreLoad { String tag = ""; String[] tags = new String[] {}; if (mIt == 1) tags = new String[] { "dustTiny", "dustSmall", "dust", "dustImpure", - "dustPure", "crushed", "crushedPurified", "crushedCentrifuged", "gem", "nugget", - null, "ingot", "ingotHot", "ingotDouble", "ingotTriple", "ingotQuadruple", - "ingotQuintuple", "plate", "plateDouble", "plateTriple", "plateQuadruple", - "plateQuintuple", "plateDense", "stick", "lens", "round", "bolt", "screw", - "ring", "foil", "cell", "cellPlasma", "cellMolten" }; + "dustPure", "crushed", "crushedPurified", "crushedCentrifuged", "gem", "nugget", + null, "ingot", "ingotHot", "ingotDouble", "ingotTriple", "ingotQuadruple", + "ingotQuintuple", "plate", "plateDouble", "plateTriple", "plateQuadruple", + "plateQuintuple", "plateDense", "stick", "lens", "round", "bolt", "screw", "ring", + "foil", "cell", "cellPlasma", "cellMolten" }; if (mIt == 2) tags = new String[] { "toolHeadSword", "toolHeadPickaxe", - "toolHeadShovel", "toolHeadAxe", "toolHeadHoe", "toolHeadHammer", - "toolHeadFile", "toolHeadSaw", "toolHeadDrill", "toolHeadChainsaw", - "toolHeadWrench", "toolHeadUniversalSpade", "toolHeadSense", "toolHeadPlow", - "toolHeadArrow", "toolHeadBuzzSaw", "turbineBlade", null, null, "wireFine", - "gearGtSmall", "rotor", "stickLong", "springSmall", "spring", "arrowGtWood", - "arrowGtPlastic", "gemChipped", "gemFlawed", "gemFlawless", "gemExquisite", - "gearGt" }; + "toolHeadShovel", "toolHeadAxe", "toolHeadHoe", "toolHeadHammer", "toolHeadFile", + "toolHeadSaw", "toolHeadDrill", "toolHeadChainsaw", "toolHeadWrench", + "toolHeadUniversalSpade", "toolHeadSense", "toolHeadPlow", "toolHeadArrow", + "toolHeadBuzzSaw", "turbineBlade", null, null, "wireFine", "gearGtSmall", "rotor", + "stickLong", "springSmall", "spring", "arrowGtWood", "arrowGtPlastic", "gemChipped", + "gemFlawed", "gemFlawless", "gemExquisite", "gearGt" }; if (mIt == 3) tags = new String[] { "crateGtDust", "crateGtIngot", "crateGtGem", - "crateGtPlate", "itemCasing", "nanite" }; + "crateGtPlate", "itemCasing", "nanite" }; if (tags.length > prefix) tag = tags[prefix]; if (GregTech_API.sGeneratedMaterials[material] != null) { tag += GregTech_API.sGeneratedMaterials[material].mName; @@ -275,23 +270,23 @@ public class GT_PreLoad { } final String[] preS = new String[] { "dustTiny", "dustSmall", "dust", "dustImpure", "dustPure", "crushed", - "crushedPurified", "crushedCentrifuged", "gem", "nugget", "ingot", "ingotHot", "ingotDouble", - "ingotTriple", "ingotQuadruple", "ingotQuintuple", "plate", "plateDouble", "plateTriple", - "plateQuadruple", "plateQuintuple", "plateDense", "stick", "lens", "round", "bolt", "screw", "ring", - "foil", "cell", "cellPlasma", "toolHeadSword", "toolHeadPickaxe", "toolHeadShovel", "toolHeadAxe", - "toolHeadHoe", "toolHeadHammer", "toolHeadFile", "toolHeadSaw", "toolHeadDrill", "toolHeadChainsaw", - "toolHeadWrench", "toolHeadUniversalSpade", "toolHeadSense", "toolHeadPlow", "toolHeadArrow", - "toolHeadBuzzSaw", "turbineBlade", "wireFine", "gearGtSmall", "rotor", "stickLong", "springSmall", - "spring", "arrowGtWood", "arrowGtPlastic", "gemChipped", "gemFlawed", "gemFlawless", "gemExquisite", - "gearGt", "crateGtDust", "crateGtIngot", "crateGtGem", "crateGtPlate", "nanite", "cellMolten" }; + "crushedPurified", "crushedCentrifuged", "gem", "nugget", "ingot", "ingotHot", "ingotDouble", "ingotTriple", + "ingotQuadruple", "ingotQuintuple", "plate", "plateDouble", "plateTriple", "plateQuadruple", + "plateQuintuple", "plateDense", "stick", "lens", "round", "bolt", "screw", "ring", "foil", "cell", + "cellPlasma", "toolHeadSword", "toolHeadPickaxe", "toolHeadShovel", "toolHeadAxe", "toolHeadHoe", + "toolHeadHammer", "toolHeadFile", "toolHeadSaw", "toolHeadDrill", "toolHeadChainsaw", "toolHeadWrench", + "toolHeadUniversalSpade", "toolHeadSense", "toolHeadPlow", "toolHeadArrow", "toolHeadBuzzSaw", + "turbineBlade", "wireFine", "gearGtSmall", "rotor", "stickLong", "springSmall", "spring", "arrowGtWood", + "arrowGtPlastic", "gemChipped", "gemFlawed", "gemFlawless", "gemExquisite", "gearGt", "crateGtDust", + "crateGtIngot", "crateGtGem", "crateGtPlate", "nanite", "cellMolten" }; List mMTTags = new ArrayList<>(); oreTags.stream() - .filter(test -> StringUtils.startsWithAny(test, preS)) - .forEach(test -> { - mMTTags.add(test); - if (GT_Values.D1) GT_FML_LOGGER.info("oretag: " + test); - }); + .filter(test -> StringUtils.startsWithAny(test, preS)) + .forEach(test -> { + mMTTags.add(test); + if (GT_Values.D1) GT_FML_LOGGER.info("oretag: " + test); + }); GT_FML_LOGGER.info("reenableMetaItems"); @@ -343,13 +338,13 @@ public class GT_PreLoad { GT_FML_LOGGER.info("GT_Mod: Removing all original Scrapbox Drops."); try { Objects.requireNonNull(GT_Utility.getField("ic2.core.item.ItemScrapbox$Drop", "topChance", true, true)) - .set(null, 0); + .set(null, 0); ((List) Objects.requireNonNull( - GT_Utility.getFieldContent( - GT_Utility.getFieldContent("ic2.api.recipe.Recipes", "scrapboxDrops", true, true), - "drops", - true, - true))).clear(); + 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); @@ -361,362 +356,303 @@ public class GT_PreLoad { public static void loadConfig(Configuration tMainConfig) { GT_Values.D1 = tMainConfig.get(GT_Mod.aTextGeneral, "Debug", false) - .getBoolean(false); + .getBoolean(false); GT_Values.D2 = tMainConfig.get(GT_Mod.aTextGeneral, "Debug2", false) - .getBoolean(false); + .getBoolean(false); GT_Values.updateFluidDisplayItems = tMainConfig.get(GT_Mod.aTextGeneral, "update fluid display items", true) - .getBoolean(true); + .getBoolean(true); GT_Values.allow_broken_recipemap = tMainConfig.get(GT_Mod.aTextGeneral, "debug allow broken recipemap", false) - .getBoolean(false); + .getBoolean(false); GT_Values.debugCleanroom = tMainConfig.get(GT_Mod.aTextGeneral, "debugCleanroom", false) - .getBoolean(false); + .getBoolean(false); GT_Values.debugDriller = tMainConfig.get(GT_Mod.aTextGeneral, "debugDriller", false) - .getBoolean(false); + .getBoolean(false); GT_Values.debugWorldGen = tMainConfig.get(GT_Mod.aTextGeneral, "debugWorldGen", false) - .getBoolean(false); + .getBoolean(false); GT_Values.debugOrevein = tMainConfig.get(GT_Mod.aTextGeneral, "debugOrevein", false) - .getBoolean(false); + .getBoolean(false); GT_Values.debugSmallOres = tMainConfig.get(GT_Mod.aTextGeneral, "debugSmallOres", false) - .getBoolean(false); + .getBoolean(false); GT_Values.debugStones = tMainConfig.get(GT_Mod.aTextGeneral, "debugStones", false) - .getBoolean(false); + .getBoolean(false); GT_Values.debugBlockMiner = tMainConfig.get(GT_Mod.aTextGeneral, "debugBlockMiner", false) - .getBoolean(false); + .getBoolean(false); GT_Values.debugBlockPump = tMainConfig.get(GT_Mod.aTextGeneral, "debugBlockPump", false) - .getBoolean(false); + .getBoolean(false); GT_Values.debugEntityCramming = tMainConfig.get(GT_Mod.aTextGeneral, "debugEntityCramming", false) - .getBoolean(false); + .getBoolean(false); GT_Values.debugWorldData = tMainConfig.get(GT_Mod.aTextGeneral, "debugWorldData", false) - .getBoolean(false); + .getBoolean(false); GT_Values.oreveinPercentage = tMainConfig.get(GT_Mod.aTextGeneral, "oreveinPercentage_100", 100) - .getInt(100); + .getInt(100); GT_Values.oreveinAttempts = tMainConfig.get(GT_Mod.aTextGeneral, "oreveinAttempts_64", 64) - .getInt(64); + .getInt(64); GT_Values.oreveinMaxPlacementAttempts = tMainConfig.get(GT_Mod.aTextGeneral, "oreveinMaxPlacementAttempts_8", 8) - .getInt(8); + .getInt(8); GT_Values.oreveinPlacerOres = tMainConfig.get(GT_Mod.aTextGeneral, "oreveinPlacerOres", true) - .getBoolean(true); + .getBoolean(true); GT_Values.oreveinPlacerOresMultiplier = tMainConfig.get(GT_Mod.aTextGeneral, "oreveinPlacerOresMultiplier", 2) - .getInt(2); + .getInt(2); // GT_Values.oreveinMaxSize = tMainConfig.get(aTextGeneral, "oreveinMaxSize_64",64).getInt(64); GT_Values.ticksBetweenSounds = tMainConfig.get("machines", "TicksBetweenSounds", 30) - .getInt(30); + .getInt(30); GT_Values.cleanroomGlass = (float) tMainConfig.get("machines", "ReinforcedGlassPercentageForCleanroom", 5D) - .getDouble(5D); + .getDouble(5D); GT_Values.enableChunkloaders = tMainConfig.get("machines", "enableChunkloaders", true) - .getBoolean(true); + .getBoolean(true); GT_Values.alwaysReloadChunkloaders = tMainConfig.get("machines", "alwaysReloadChunkloaders", false) - .getBoolean(false); + .getBoolean(false); GT_Values.debugChunkloaders = tMainConfig.get("machines", "debugChunkloaders", false) - .getBoolean(false); - GT_Values.disableDigitalChestsExternalAccess = tMainConfig.get( - "machines", - "disableDigitalChestsExternalAccess", - false) - .getBoolean(false); - GregTech_API.TICKS_FOR_LAG_AVERAGING = tMainConfig.get( - GT_Mod.aTextGeneral, - "TicksForLagAveragingWithScanner", - 25) - .getInt(25); - GregTech_API.MILLISECOND_THRESHOLD_UNTIL_LAG_WARNING = tMainConfig.get( - GT_Mod.aTextGeneral, - "MillisecondsPassedInGTTileEntityUntilLagWarning", - 100) - .getInt(100); + .getBoolean(false); + GT_Values.disableDigitalChestsExternalAccess = tMainConfig + .get("machines", "disableDigitalChestsExternalAccess", false) + .getBoolean(false); + GregTech_API.TICKS_FOR_LAG_AVERAGING = tMainConfig + .get(GT_Mod.aTextGeneral, "TicksForLagAveragingWithScanner", 25) + .getInt(25); + GregTech_API.MILLISECOND_THRESHOLD_UNTIL_LAG_WARNING = tMainConfig + .get(GT_Mod.aTextGeneral, "MillisecondsPassedInGTTileEntityUntilLagWarning", 100) + .getInt(100); if (tMainConfig.get(GT_Mod.aTextGeneral, "disable_STDOUT", false) - .getBoolean(false)) { + .getBoolean(false)) { GT_FML_LOGGER.info("Disableing Console Messages."); GT_FML_LOGGER.exit(); System.out.close(); System.err.close(); } GregTech_API.sMachineExplosions = tMainConfig.get("machines", "machines_explosion_damage", true) - .getBoolean(false); + .getBoolean(false); GregTech_API.sMachineFlammable = tMainConfig.get("machines", "machines_flammable", true) - .getBoolean(false); + .getBoolean(false); GregTech_API.sMachineNonWrenchExplosions = tMainConfig.get("machines", "explosions_on_nonwrenching", true) - .getBoolean(false); + .getBoolean(false); GregTech_API.sMachineWireFire = tMainConfig.get("machines", "wirefire_on_explosion", true) - .getBoolean(false); + .getBoolean(false); GregTech_API.sMachineFireExplosions = tMainConfig.get("machines", "fire_causes_explosions", true) - .getBoolean(false); + .getBoolean(false); GregTech_API.sMachineRainExplosions = tMainConfig.get("machines", "rain_causes_explosions", true) - .getBoolean(false); + .getBoolean(false); GregTech_API.sMachineThunderExplosions = tMainConfig.get("machines", "lightning_causes_explosions", true) - .getBoolean(false); + .getBoolean(false); GregTech_API.sConstantEnergy = tMainConfig.get("machines", "constant_need_of_energy", true) - .getBoolean(false); + .getBoolean(false); GregTech_API.sColoredGUI = tMainConfig.get("machines", "colored_guis_when_painted", true) - .getBoolean(false); + .getBoolean(false); GregTech_API.sMachineMetalGUI = tMainConfig.get("machines", "guis_in_consistent_machine_metal_color", false) - .getBoolean(false); + .getBoolean(false); // Implementation for this is actually handled in NewHorizonsCoreMod in MainRegistry.java! GregTech_API.sUseMachineMetal = tMainConfig.get("machines", "use_machine_metal_tint", true) - .getBoolean(true); + .getBoolean(true); GregTech_API.sTimber = tMainConfig.get(GT_Mod.aTextGeneral, "timber_axe", true) - .getBoolean(true); + .getBoolean(true); GregTech_API.sDrinksAlwaysDrinkable = tMainConfig.get(GT_Mod.aTextGeneral, "drinks_always_drinkable", false) - .getBoolean(false); - GregTech_API.sDoShowAllItemsInCreative = tMainConfig.get( - GT_Mod.aTextGeneral, - "show_all_metaitems_in_creative_and_NEI", - false) - .getBoolean(false); + .getBoolean(false); + GregTech_API.sDoShowAllItemsInCreative = tMainConfig + .get(GT_Mod.aTextGeneral, "show_all_metaitems_in_creative_and_NEI", false) + .getBoolean(false); GregTech_API.sMultiThreadedSounds = tMainConfig.get(GT_Mod.aTextGeneral, "sound_multi_threading", false) - .getBoolean(false); + .getBoolean(false); loadClientConfig(); - GT_Mod.gregtechproxy.mMaxEqualEntitiesAtOneSpot = tMainConfig.get( - GT_Mod.aTextGeneral, - "MaxEqualEntitiesAtOneSpot", - 3) - .getInt(3); - GT_Mod.gregtechproxy.mSkeletonsShootGTArrows = tMainConfig.get( - GT_Mod.aTextGeneral, - "SkeletonsShootGTArrows", - 16) - .getInt(16); + GT_Mod.gregtechproxy.mMaxEqualEntitiesAtOneSpot = tMainConfig + .get(GT_Mod.aTextGeneral, "MaxEqualEntitiesAtOneSpot", 3) + .getInt(3); + GT_Mod.gregtechproxy.mSkeletonsShootGTArrows = tMainConfig + .get(GT_Mod.aTextGeneral, "SkeletonsShootGTArrows", 16) + .getInt(16); GT_Mod.gregtechproxy.mFlintChance = tMainConfig.get(GT_Mod.aTextGeneral, "FlintAndSteelChance", 30) - .getInt(30); + .getInt(30); GT_Mod.gregtechproxy.mItemDespawnTime = tMainConfig.get(GT_Mod.aTextGeneral, "ItemDespawnTime", 6000) - .getInt(6000); - GT_Mod.gregtechproxy.mAllowSmallBoilerAutomation = tMainConfig.get( - GT_Mod.aTextGeneral, - "AllowSmallBoilerAutomation", - false) - .getBoolean(false); + .getInt(6000); + GT_Mod.gregtechproxy.mAllowSmallBoilerAutomation = tMainConfig + .get(GT_Mod.aTextGeneral, "AllowSmallBoilerAutomation", false) + .getBoolean(false); GT_Mod.gregtechproxy.mHardMachineCasings = tMainConfig.get(GT_Mod.aTextGeneral, "HardMachineCasings", true) - .getBoolean(true); + .getBoolean(true); GT_Mod.gregtechproxy.mDisableVanillaOres = tMainConfig.get(GT_Mod.aTextGeneral, "DisableVanillaOres", true) - .getBoolean(true); + .getBoolean(true); GT_Mod.gregtechproxy.mNerfDustCrafting = tMainConfig.get(GT_Mod.aTextGeneral, "NerfDustCrafting", true) - .getBoolean(true); + .getBoolean(true); GT_Mod.gregtechproxy.mIncreaseDungeonLoot = tMainConfig.get(GT_Mod.aTextGeneral, "IncreaseDungeonLoot", true) - .getBoolean(true); + .getBoolean(true); GT_Mod.gregtechproxy.mAxeWhenAdventure = tMainConfig.get(GT_Mod.aTextGeneral, "AdventureModeStartingAxe", true) - .getBoolean(true); + .getBoolean(true); GT_Mod.gregtechproxy.mHardcoreCables = tMainConfig.get(GT_Mod.aTextGeneral, "HardCoreCableLoss", false) - .getBoolean(false); + .getBoolean(false); GT_Mod.gregtechproxy.mSurvivalIntoAdventure = tMainConfig.get(GT_Mod.aTextGeneral, "forceAdventureMode", false) - .getBoolean(false); + .getBoolean(false); GT_Mod.gregtechproxy.mHungerEffect = tMainConfig.get(GT_Mod.aTextGeneral, "AFK_Hunger", false) - .getBoolean(false); + .getBoolean(false); GT_Mod.gregtechproxy.mHardRock = tMainConfig.get(GT_Mod.aTextGeneral, "harderstone", false) - .getBoolean(false); + .getBoolean(false); GT_Mod.gregtechproxy.mInventoryUnification = tMainConfig.get(GT_Mod.aTextGeneral, "InventoryUnification", true) - .getBoolean(true); + .getBoolean(true); GT_Mod.gregtechproxy.mGTBees = tMainConfig.get(GT_Mod.aTextGeneral, "GTBees", true) - .getBoolean(true); + .getBoolean(true); GT_Mod.gregtechproxy.mCraftingUnification = tMainConfig.get(GT_Mod.aTextGeneral, "CraftingUnification", true) - .getBoolean(true); + .getBoolean(true); GT_Mod.gregtechproxy.mNerfedWoodPlank = tMainConfig.get(GT_Mod.aTextGeneral, "WoodNeedsSawForCrafting", true) - .getBoolean(true); - GT_Mod.gregtechproxy.mNerfedVanillaTools = tMainConfig.get( - GT_Mod.aTextGeneral, - "smallerVanillaToolDurability", - true) - .getBoolean(true); + .getBoolean(true); + GT_Mod.gregtechproxy.mNerfedVanillaTools = tMainConfig + .get(GT_Mod.aTextGeneral, "smallerVanillaToolDurability", true) + .getBoolean(true); GT_Mod.gregtechproxy.mSortToTheEnd = tMainConfig.get(GT_Mod.aTextGeneral, "EnsureToBeLoadedLast", true) - .getBoolean(true); + .getBoolean(true); GT_Mod.gregtechproxy.mDisableIC2Cables = tMainConfig.get(GT_Mod.aTextGeneral, "DisableIC2Cables", true) - .getBoolean(true); + .getBoolean(true); GT_Mod.gregtechproxy.mAchievements = tMainConfig.get(GT_Mod.aTextGeneral, "EnableAchievements", true) - .getBoolean(true); - GT_Mod.gregtechproxy.mAE2Integration = GregTech_API.sSpecialFile.get( - ConfigCategories.general, - "EnableAE2Integration", - GregTech_API.mAE2); + .getBoolean(true); + GT_Mod.gregtechproxy.mAE2Integration = GregTech_API.sSpecialFile + .get(ConfigCategories.general, "EnableAE2Integration", GregTech_API.mAE2); GT_Mod.gregtechproxy.mNerfedCombs = tMainConfig.get(GT_Mod.aTextGeneral, "NerfCombs", true) - .getBoolean(true); + .getBoolean(true); GT_Mod.gregtechproxy.mNerfedCrops = tMainConfig.get(GT_Mod.aTextGeneral, "NerfCrops", true) - .getBoolean(true); + .getBoolean(true); GT_Mod.gregtechproxy.mHideUnusedOres = tMainConfig.get(GT_Mod.aTextGeneral, "HideUnusedOres", true) - .getBoolean(true); + .getBoolean(true); GT_Mod.gregtechproxy.mHideRecyclingRecipes = tMainConfig.get(GT_Mod.aTextGeneral, "HideRecyclingRecipes", true) - .getBoolean(true); - GT_Mod.gregtechproxy.mArcSmeltIntoAnnealed = tMainConfig.get( - GT_Mod.aTextGeneral, - "ArcSmeltIntoAnnealedWrought", - true) - .getBoolean(true); + .getBoolean(true); + GT_Mod.gregtechproxy.mArcSmeltIntoAnnealed = tMainConfig + .get(GT_Mod.aTextGeneral, "ArcSmeltIntoAnnealedWrought", true) + .getBoolean(true); GT_Mod.gregtechproxy.mEnableAllMaterials = tMainConfig.get("general", "EnableAllMaterials", false) - .getBoolean(false); + .getBoolean(false); GT_Mod.gregtechproxy.mEnableAllComponents = tMainConfig.get("general", "EnableAllComponents", false) - .getBoolean(false); + .getBoolean(false); // Pollution: edit GT_Proxy.java to change default values - GT_Mod.gregtechproxy.mPollution = tMainConfig.get( - "Pollution", - "EnablePollution", - GT_Mod.gregtechproxy.mPollution) - .getBoolean(GT_Mod.gregtechproxy.mPollution); - GT_Mod.gregtechproxy.mPollutionSmogLimit = tMainConfig.get( - "Pollution", - "SmogLimit", - GT_Mod.gregtechproxy.mPollutionSmogLimit) - .getInt(GT_Mod.gregtechproxy.mPollutionSmogLimit); - GT_Mod.gregtechproxy.mPollutionPoisonLimit = tMainConfig.get( - "Pollution", - "PoisonLimit", - GT_Mod.gregtechproxy.mPollutionPoisonLimit) - .getInt(GT_Mod.gregtechproxy.mPollutionPoisonLimit); - GT_Mod.gregtechproxy.mPollutionVegetationLimit = tMainConfig.get( - "Pollution", - "VegetationLimit", - GT_Mod.gregtechproxy.mPollutionVegetationLimit) - .getInt( - GT_Mod.gregtechproxy.mPollutionVegetationLimit); - GT_Mod.gregtechproxy.mPollutionSourRainLimit = tMainConfig.get( - "Pollution", - "SourRainLimit", - GT_Mod.gregtechproxy.mPollutionSourRainLimit) - .getInt(GT_Mod.gregtechproxy.mPollutionSourRainLimit); - GT_Mod.gregtechproxy.mPollutionOnExplosion = tMainConfig.get( - "Pollution", - "SourRainLimit", - GT_Mod.gregtechproxy.mPollutionOnExplosion) - .getInt(GT_Mod.gregtechproxy.mPollutionOnExplosion); - GT_Mod.gregtechproxy.mExplosionItemDrop = tMainConfig.get( - "general", - "ExplosionItemDrops", - GT_Mod.gregtechproxy.mExplosionItemDrop) - .getBoolean(GT_Mod.gregtechproxy.mExplosionItemDrop); - GT_Mod.gregtechproxy.mPollutionPrimitveBlastFurnacePerSecond = tMainConfig.get( + GT_Mod.gregtechproxy.mPollution = tMainConfig + .get("Pollution", "EnablePollution", GT_Mod.gregtechproxy.mPollution) + .getBoolean(GT_Mod.gregtechproxy.mPollution); + GT_Mod.gregtechproxy.mPollutionSmogLimit = tMainConfig + .get("Pollution", "SmogLimit", GT_Mod.gregtechproxy.mPollutionSmogLimit) + .getInt(GT_Mod.gregtechproxy.mPollutionSmogLimit); + GT_Mod.gregtechproxy.mPollutionPoisonLimit = tMainConfig + .get("Pollution", "PoisonLimit", GT_Mod.gregtechproxy.mPollutionPoisonLimit) + .getInt(GT_Mod.gregtechproxy.mPollutionPoisonLimit); + GT_Mod.gregtechproxy.mPollutionVegetationLimit = tMainConfig + .get("Pollution", "VegetationLimit", GT_Mod.gregtechproxy.mPollutionVegetationLimit) + .getInt(GT_Mod.gregtechproxy.mPollutionVegetationLimit); + GT_Mod.gregtechproxy.mPollutionSourRainLimit = tMainConfig + .get("Pollution", "SourRainLimit", GT_Mod.gregtechproxy.mPollutionSourRainLimit) + .getInt(GT_Mod.gregtechproxy.mPollutionSourRainLimit); + GT_Mod.gregtechproxy.mPollutionOnExplosion = tMainConfig + .get("Pollution", "SourRainLimit", GT_Mod.gregtechproxy.mPollutionOnExplosion) + .getInt(GT_Mod.gregtechproxy.mPollutionOnExplosion); + GT_Mod.gregtechproxy.mExplosionItemDrop = tMainConfig + .get("general", "ExplosionItemDrops", GT_Mod.gregtechproxy.mExplosionItemDrop) + .getBoolean(GT_Mod.gregtechproxy.mExplosionItemDrop); + GT_Mod.gregtechproxy.mPollutionPrimitveBlastFurnacePerSecond = tMainConfig + .get( "Pollution", "PollutionPrimitiveBlastFurnace", GT_Mod.gregtechproxy.mPollutionPrimitveBlastFurnacePerSecond) - .getInt( - GT_Mod.gregtechproxy.mPollutionPrimitveBlastFurnacePerSecond); - GT_Mod.gregtechproxy.mPollutionCharcoalPitPerSecond = tMainConfig.get( - "Pollution", - "PollutionCharcoalPit", - GT_Mod.gregtechproxy.mPollutionCharcoalPitPerSecond) - .getInt( - GT_Mod.gregtechproxy.mPollutionCharcoalPitPerSecond); - GT_Mod.gregtechproxy.mPollutionEBFPerSecond = tMainConfig.get( - "Pollution", - "PollutionEBF", - GT_Mod.gregtechproxy.mPollutionEBFPerSecond) - .getInt(GT_Mod.gregtechproxy.mPollutionEBFPerSecond); - GT_Mod.gregtechproxy.mPollutionLargeCombustionEnginePerSecond = tMainConfig.get( + .getInt(GT_Mod.gregtechproxy.mPollutionPrimitveBlastFurnacePerSecond); + GT_Mod.gregtechproxy.mPollutionCharcoalPitPerSecond = tMainConfig + .get("Pollution", "PollutionCharcoalPit", GT_Mod.gregtechproxy.mPollutionCharcoalPitPerSecond) + .getInt(GT_Mod.gregtechproxy.mPollutionCharcoalPitPerSecond); + GT_Mod.gregtechproxy.mPollutionEBFPerSecond = tMainConfig + .get("Pollution", "PollutionEBF", GT_Mod.gregtechproxy.mPollutionEBFPerSecond) + .getInt(GT_Mod.gregtechproxy.mPollutionEBFPerSecond); + GT_Mod.gregtechproxy.mPollutionLargeCombustionEnginePerSecond = tMainConfig + .get( "Pollution", "PollutionLargeCombustionEngine", GT_Mod.gregtechproxy.mPollutionLargeCombustionEnginePerSecond) - .getInt( - GT_Mod.gregtechproxy.mPollutionLargeCombustionEnginePerSecond); - GT_Mod.gregtechproxy.mPollutionExtremeCombustionEnginePerSecond = tMainConfig.get( + .getInt(GT_Mod.gregtechproxy.mPollutionLargeCombustionEnginePerSecond); + GT_Mod.gregtechproxy.mPollutionExtremeCombustionEnginePerSecond = tMainConfig + .get( "Pollution", "PollutionExtremeCombustionEngine", GT_Mod.gregtechproxy.mPollutionExtremeCombustionEnginePerSecond) - .getInt( - GT_Mod.gregtechproxy.mPollutionExtremeCombustionEnginePerSecond); - GT_Mod.gregtechproxy.mPollutionImplosionCompressorPerSecond = tMainConfig.get( + .getInt(GT_Mod.gregtechproxy.mPollutionExtremeCombustionEnginePerSecond); + GT_Mod.gregtechproxy.mPollutionImplosionCompressorPerSecond = tMainConfig + .get( "Pollution", "PollutionImplosionCompressor", GT_Mod.gregtechproxy.mPollutionImplosionCompressorPerSecond) - .getInt( - GT_Mod.gregtechproxy.mPollutionImplosionCompressorPerSecond); - GT_Mod.gregtechproxy.mPollutionLargeBronzeBoilerPerSecond = tMainConfig.get( - "Pollution", - "PollutionLargeBronzeBoiler", - GT_Mod.gregtechproxy.mPollutionLargeBronzeBoilerPerSecond) - .getInt( - GT_Mod.gregtechproxy.mPollutionLargeBronzeBoilerPerSecond); - GT_Mod.gregtechproxy.mPollutionLargeSteelBoilerPerSecond = tMainConfig.get( - "Pollution", - "PollutionLargeSteelBoiler", - GT_Mod.gregtechproxy.mPollutionLargeSteelBoilerPerSecond) - .getInt( - GT_Mod.gregtechproxy.mPollutionLargeSteelBoilerPerSecond); - GT_Mod.gregtechproxy.mPollutionLargeTitaniumBoilerPerSecond = tMainConfig.get( + .getInt(GT_Mod.gregtechproxy.mPollutionImplosionCompressorPerSecond); + GT_Mod.gregtechproxy.mPollutionLargeBronzeBoilerPerSecond = tMainConfig + .get("Pollution", "PollutionLargeBronzeBoiler", GT_Mod.gregtechproxy.mPollutionLargeBronzeBoilerPerSecond) + .getInt(GT_Mod.gregtechproxy.mPollutionLargeBronzeBoilerPerSecond); + GT_Mod.gregtechproxy.mPollutionLargeSteelBoilerPerSecond = tMainConfig + .get("Pollution", "PollutionLargeSteelBoiler", GT_Mod.gregtechproxy.mPollutionLargeSteelBoilerPerSecond) + .getInt(GT_Mod.gregtechproxy.mPollutionLargeSteelBoilerPerSecond); + GT_Mod.gregtechproxy.mPollutionLargeTitaniumBoilerPerSecond = tMainConfig + .get( "Pollution", "PollutionLargeTitaniumBoiler", GT_Mod.gregtechproxy.mPollutionLargeTitaniumBoilerPerSecond) - .getInt( - GT_Mod.gregtechproxy.mPollutionLargeTitaniumBoilerPerSecond); - GT_Mod.gregtechproxy.mPollutionLargeTungstenSteelBoilerPerSecond = tMainConfig.get( + .getInt(GT_Mod.gregtechproxy.mPollutionLargeTitaniumBoilerPerSecond); + GT_Mod.gregtechproxy.mPollutionLargeTungstenSteelBoilerPerSecond = tMainConfig + .get( "Pollution", "PollutionLargeTungstenSteelBoiler", GT_Mod.gregtechproxy.mPollutionLargeTungstenSteelBoilerPerSecond) - .getInt( - GT_Mod.gregtechproxy.mPollutionLargeTungstenSteelBoilerPerSecond); - GT_Mod.gregtechproxy.mPollutionReleasedByThrottle = tMainConfig.get( - "Pollution", - "PollutionReleasedByThrottle", - GT_Mod.gregtechproxy.mPollutionReleasedByThrottle) - .getDouble( - GT_Mod.gregtechproxy.mPollutionReleasedByThrottle); - GT_Mod.gregtechproxy.mPollutionLargeGasTurbinePerSecond = tMainConfig.get( - "Pollution", - "PollutionLargeGasTurbine", - GT_Mod.gregtechproxy.mPollutionLargeGasTurbinePerSecond) - .getInt( - GT_Mod.gregtechproxy.mPollutionLargeGasTurbinePerSecond); - GT_Mod.gregtechproxy.mPollutionMultiSmelterPerSecond = tMainConfig.get( - "Pollution", - "PollutionMultiSmelter", - GT_Mod.gregtechproxy.mPollutionMultiSmelterPerSecond) - .getInt( - GT_Mod.gregtechproxy.mPollutionMultiSmelterPerSecond); - GT_Mod.gregtechproxy.mPollutionPyrolyseOvenPerSecond = tMainConfig.get( - "Pollution", - "PollutionPyrolyseOven", - GT_Mod.gregtechproxy.mPollutionPyrolyseOvenPerSecond) - .getInt( - GT_Mod.gregtechproxy.mPollutionPyrolyseOvenPerSecond); - GT_Mod.gregtechproxy.mPollutionSmallCoalBoilerPerSecond = tMainConfig.get( - "Pollution", - "PollutionSmallCoalBoiler", - GT_Mod.gregtechproxy.mPollutionSmallCoalBoilerPerSecond) - .getInt( - GT_Mod.gregtechproxy.mPollutionSmallCoalBoilerPerSecond); - GT_Mod.gregtechproxy.mPollutionHighPressureLavaBoilerPerSecond = tMainConfig.get( + .getInt(GT_Mod.gregtechproxy.mPollutionLargeTungstenSteelBoilerPerSecond); + GT_Mod.gregtechproxy.mPollutionReleasedByThrottle = tMainConfig + .get("Pollution", "PollutionReleasedByThrottle", GT_Mod.gregtechproxy.mPollutionReleasedByThrottle) + .getDouble(GT_Mod.gregtechproxy.mPollutionReleasedByThrottle); + GT_Mod.gregtechproxy.mPollutionLargeGasTurbinePerSecond = tMainConfig + .get("Pollution", "PollutionLargeGasTurbine", GT_Mod.gregtechproxy.mPollutionLargeGasTurbinePerSecond) + .getInt(GT_Mod.gregtechproxy.mPollutionLargeGasTurbinePerSecond); + GT_Mod.gregtechproxy.mPollutionMultiSmelterPerSecond = tMainConfig + .get("Pollution", "PollutionMultiSmelter", GT_Mod.gregtechproxy.mPollutionMultiSmelterPerSecond) + .getInt(GT_Mod.gregtechproxy.mPollutionMultiSmelterPerSecond); + GT_Mod.gregtechproxy.mPollutionPyrolyseOvenPerSecond = tMainConfig + .get("Pollution", "PollutionPyrolyseOven", GT_Mod.gregtechproxy.mPollutionPyrolyseOvenPerSecond) + .getInt(GT_Mod.gregtechproxy.mPollutionPyrolyseOvenPerSecond); + GT_Mod.gregtechproxy.mPollutionSmallCoalBoilerPerSecond = tMainConfig + .get("Pollution", "PollutionSmallCoalBoiler", GT_Mod.gregtechproxy.mPollutionSmallCoalBoilerPerSecond) + .getInt(GT_Mod.gregtechproxy.mPollutionSmallCoalBoilerPerSecond); + GT_Mod.gregtechproxy.mPollutionHighPressureLavaBoilerPerSecond = tMainConfig + .get( "Pollution", "PollutionHighPressureLavaBoiler", GT_Mod.gregtechproxy.mPollutionHighPressureLavaBoilerPerSecond) - .getInt( - GT_Mod.gregtechproxy.mPollutionHighPressureLavaBoilerPerSecond); - GT_Mod.gregtechproxy.mPollutionHighPressureCoalBoilerPerSecond = tMainConfig.get( + .getInt(GT_Mod.gregtechproxy.mPollutionHighPressureLavaBoilerPerSecond); + GT_Mod.gregtechproxy.mPollutionHighPressureCoalBoilerPerSecond = tMainConfig + .get( "Pollution", "PollutionHighPressureCoalBoiler", GT_Mod.gregtechproxy.mPollutionHighPressureCoalBoilerPerSecond) - .getInt( - GT_Mod.gregtechproxy.mPollutionHighPressureCoalBoilerPerSecond); - GT_Mod.gregtechproxy.mPollutionBaseDieselGeneratorPerSecond = tMainConfig.get( + .getInt(GT_Mod.gregtechproxy.mPollutionHighPressureCoalBoilerPerSecond); + GT_Mod.gregtechproxy.mPollutionBaseDieselGeneratorPerSecond = tMainConfig + .get( "Pollution", "PollutionBaseDieselGenerator", GT_Mod.gregtechproxy.mPollutionBaseDieselGeneratorPerSecond) - .getInt( - GT_Mod.gregtechproxy.mPollutionBaseDieselGeneratorPerSecond); - double[] mPollutionDieselGeneratorReleasedByTier = tMainConfig.get( + .getInt(GT_Mod.gregtechproxy.mPollutionBaseDieselGeneratorPerSecond); + double[] mPollutionDieselGeneratorReleasedByTier = tMainConfig + .get( "Pollution", "PollutionReleasedByTierDieselGenerator", GT_Mod.gregtechproxy.mPollutionDieselGeneratorReleasedByTier) - .getDoubleList(); + .getDoubleList(); if (mPollutionDieselGeneratorReleasedByTier.length - == GT_Mod.gregtechproxy.mPollutionDieselGeneratorReleasedByTier.length) { + == GT_Mod.gregtechproxy.mPollutionDieselGeneratorReleasedByTier.length) { GT_Mod.gregtechproxy.mPollutionDieselGeneratorReleasedByTier = mPollutionDieselGeneratorReleasedByTier; } else { - GT_FML_LOGGER.error( - "The Length of the Diesel Turbine Pollution Array Config must be the same as the Default"); + GT_FML_LOGGER + .error("The Length of the Diesel Turbine Pollution Array Config must be the same as the Default"); } - GT_Mod.gregtechproxy.mPollutionBaseGasTurbinePerSecond = tMainConfig.get( + GT_Mod.gregtechproxy.mPollutionBaseGasTurbinePerSecond = tMainConfig + .get( "Pollution", "PollutionBaseGasTurbineGenerator", GT_Mod.gregtechproxy.mPollutionBaseGasTurbinePerSecond) - .getInt( - GT_Mod.gregtechproxy.mPollutionBaseGasTurbinePerSecond); - double[] mPollutionGasTurbineReleasedByTier = tMainConfig.get( + .getInt(GT_Mod.gregtechproxy.mPollutionBaseGasTurbinePerSecond); + double[] mPollutionGasTurbineReleasedByTier = tMainConfig + .get( "Pollution", "PollutionReleasedByTierGasTurbineGenerator", GT_Mod.gregtechproxy.mPollutionGasTurbineReleasedByTier) - .getDoubleList(); + .getDoubleList(); if (mPollutionGasTurbineReleasedByTier.length - == GT_Mod.gregtechproxy.mPollutionGasTurbineReleasedByTier.length) { + == GT_Mod.gregtechproxy.mPollutionGasTurbineReleasedByTier.length) { GT_Mod.gregtechproxy.mPollutionGasTurbineReleasedByTier = mPollutionGasTurbineReleasedByTier; } else { GT_FML_LOGGER.error("The Length of the Gas Turbine Pollution Array Config must be the same as the Default"); @@ -724,242 +660,193 @@ public class GT_PreLoad { GT_Mod.gregtechproxy.mUndergroundOil.getConfig(tMainConfig, "undergroundfluid"); GT_Mod.gregtechproxy.mEnableCleanroom = tMainConfig.get("general", "EnableCleanroom", true) - .getBoolean(true); + .getBoolean(true); if (GT_Mod.gregtechproxy.mEnableCleanroom) GT_MetaTileEntity_Cleanroom.loadConfig(tMainConfig); GT_Mod.gregtechproxy.mLowGravProcessing = GalacticraftCore.isModLoaded() - && tMainConfig.get("general", "LowGravProcessing", true) - .getBoolean(true); - GT_Mod.gregtechproxy.mUseGreatlyShrukenReplacementList = tMainConfig.get( - "general", - "GTNH Optimised Material Loading", - true) - .getBoolean(true); + && tMainConfig.get("general", "LowGravProcessing", true) + .getBoolean(true); + GT_Mod.gregtechproxy.mUseGreatlyShrukenReplacementList = tMainConfig + .get("general", "GTNH Optimised Material Loading", true) + .getBoolean(true); Calendar now = Calendar.getInstance(); GT_Mod.gregtechproxy.mAprilFool = GregTech_API.sSpecialFile.get( - ConfigCategories.general, - "AprilFool", - now.get(Calendar.MONTH) == Calendar.APRIL && now.get(Calendar.DAY_OF_MONTH) == 1); + ConfigCategories.general, + "AprilFool", + now.get(Calendar.MONTH) == Calendar.APRIL && now.get(Calendar.DAY_OF_MONTH) == 1); GT_Mod.gregtechproxy.mCropNeedBlock = tMainConfig.get("general", "CropNeedBlockBelow", true) - .getBoolean(true); + .getBoolean(true); GT_Mod.gregtechproxy.mDisableOldChemicalRecipes = tMainConfig.get("general", "DisableOldChemicalRecipes", false) - .getBoolean(false); + .getBoolean(false); GT_Mod.gregtechproxy.mAMHInteraction = tMainConfig.get("general", "AllowAutoMaintenanceHatchInteraction", false) - .getBoolean(false); + .getBoolean(false); 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 = EnderIO.isModLoaded(); - GT_Mod.gregtechproxy.mForceFreeFace = GregTech_API.sMachineFile.get( - ConfigCategories.machineconfig, - "forceFreeFace", - true); + GT_Mod.gregtechproxy.mForceFreeFace = GregTech_API.sMachineFile + .get(ConfigCategories.machineconfig, "forceFreeFace", true); GT_Mod.gregtechproxy.mBrickedBlastFurnace = tMainConfig.get("general", "BrickedBlastFurnace", true) - .getBoolean(true); + .getBoolean(true); GT_Mod.gregtechproxy.mEasierIVPlusCables = tMainConfig.get("general", "EasierEVPlusCables", false) - .getBoolean(false); - GT_Mod.gregtechproxy.mMixedOreOnlyYieldsTwoThirdsOfPureOre = tMainConfig.get( - "general", - "MixedOreOnlyYieldsTwoThirdsOfPureOre", - false) - .getBoolean(false); - GT_Mod.gregtechproxy.enableBlackGraniteOres = GregTech_API.sWorldgenFile.get( - "general", - "enableBlackGraniteOres", - GT_Mod.gregtechproxy.enableBlackGraniteOres); - GT_Mod.gregtechproxy.enableRedGraniteOres = GregTech_API.sWorldgenFile.get( - "general", - "enableRedGraniteOres", - GT_Mod.gregtechproxy.enableRedGraniteOres); - GT_Mod.gregtechproxy.enableMarbleOres = GregTech_API.sWorldgenFile.get( - "general", - "enableMarbleOres", - GT_Mod.gregtechproxy.enableMarbleOres); - GT_Mod.gregtechproxy.enableBasaltOres = GregTech_API.sWorldgenFile.get( - "general", - "enableBasaltOres", - GT_Mod.gregtechproxy.enableBasaltOres); + .getBoolean(false); + GT_Mod.gregtechproxy.mMixedOreOnlyYieldsTwoThirdsOfPureOre = tMainConfig + .get("general", "MixedOreOnlyYieldsTwoThirdsOfPureOre", false) + .getBoolean(false); + GT_Mod.gregtechproxy.enableBlackGraniteOres = GregTech_API.sWorldgenFile + .get("general", "enableBlackGraniteOres", GT_Mod.gregtechproxy.enableBlackGraniteOres); + GT_Mod.gregtechproxy.enableRedGraniteOres = GregTech_API.sWorldgenFile + .get("general", "enableRedGraniteOres", GT_Mod.gregtechproxy.enableRedGraniteOres); + GT_Mod.gregtechproxy.enableMarbleOres = GregTech_API.sWorldgenFile + .get("general", "enableMarbleOres", GT_Mod.gregtechproxy.enableMarbleOres); + GT_Mod.gregtechproxy.enableBasaltOres = GregTech_API.sWorldgenFile + .get("general", "enableBasaltOres", GT_Mod.gregtechproxy.enableBasaltOres); GT_Mod.gregtechproxy.gt6Pipe = tMainConfig.get("general", "GT6StyledPipesConnection", true) - .getBoolean(true); + .getBoolean(true); GT_Mod.gregtechproxy.gt6Cable = tMainConfig.get("general", "GT6StyledWiresConnection", true) - .getBoolean(true); + .getBoolean(true); GT_Mod.gregtechproxy.ic2EnergySourceCompat = tMainConfig.get("general", "Ic2EnergySourceCompat", true) - .getBoolean(true); - GT_Mod.gregtechproxy.costlyCableConnection = tMainConfig.get( - "general", - "CableConnectionRequiresSolderingMaterial", - false) - .getBoolean(false); - GT_LanguageManager.i18nPlaceholder = tMainConfig.get( - "general", - "EnablePlaceholderForMaterialNamesInLangFile", - true) - .getBoolean(true); - GT_MetaTileEntity_LongDistancePipelineBase.minimalDistancePoints = tMainConfig.get( - "general", - "LongDistancePipelineMinimalDistancePoints", - 64) - .getInt(64); + .getBoolean(true); + GT_Mod.gregtechproxy.costlyCableConnection = tMainConfig + .get("general", "CableConnectionRequiresSolderingMaterial", false) + .getBoolean(false); + GT_LanguageManager.i18nPlaceholder = tMainConfig + .get("general", "EnablePlaceholderForMaterialNamesInLangFile", true) + .getBoolean(true); + GT_MetaTileEntity_LongDistancePipelineBase.minimalDistancePoints = tMainConfig + .get("general", "LongDistancePipelineMinimalDistancePoints", 64) + .getInt(64); GregTech_API.mUseOnlyGoodSolderingMaterials = GregTech_API.sRecipeFile.get( - ConfigCategories.Recipes.harderrecipes, - "useonlygoodsolderingmaterials", - GregTech_API.mUseOnlyGoodSolderingMaterials); - GT_Mod.gregtechproxy.mChangeHarvestLevels = GregTech_API.sMaterialProperties.get( - "havestLevel", - "activateHarvestLevelChange", - false); // TODO CHECK + ConfigCategories.Recipes.harderrecipes, + "useonlygoodsolderingmaterials", + GregTech_API.mUseOnlyGoodSolderingMaterials); + GT_Mod.gregtechproxy.mChangeHarvestLevels = GregTech_API.sMaterialProperties + .get("havestLevel", "activateHarvestLevelChange", false); // TODO CHECK if (GT_Mod.gregtechproxy.mChangeHarvestLevels) { - GT_Mod.gregtechproxy.mGraniteHavestLevel = GregTech_API.sMaterialProperties.get( - "havestLevel", - "graniteHarvestLevel", - 3); - GT_Mod.gregtechproxy.mMaxHarvestLevel = Math.min( - 15, - GregTech_API.sMaterialProperties.get("havestLevel", "maxLevel", 7)); + GT_Mod.gregtechproxy.mGraniteHavestLevel = GregTech_API.sMaterialProperties + .get("havestLevel", "graniteHarvestLevel", 3); + GT_Mod.gregtechproxy.mMaxHarvestLevel = Math + .min(15, GregTech_API.sMaterialProperties.get("havestLevel", "maxLevel", 7)); Materials.getMaterialsMap() - .values() - .parallelStream() - .filter( - tMaterial -> tMaterial != null && tMaterial.mToolQuality > 0 - && tMaterial.mMetaItemSubID < GT_Mod.gregtechproxy.mHarvestLevel.length - && tMaterial.mMetaItemSubID >= 0) - .forEach( - tMaterial -> GT_Mod.gregtechproxy.mHarvestLevel[tMaterial.mMetaItemSubID] = GregTech_API.sMaterialProperties.get( - "materialHavestLevel", - tMaterial.mDefaultLocalName, - tMaterial.mToolQuality)); + .values() + .parallelStream() + .filter( + tMaterial -> tMaterial != null && tMaterial.mToolQuality > 0 + && tMaterial.mMetaItemSubID < GT_Mod.gregtechproxy.mHarvestLevel.length + && tMaterial.mMetaItemSubID >= 0) + .forEach( + tMaterial -> GT_Mod.gregtechproxy.mHarvestLevel[tMaterial.mMetaItemSubID] = GregTech_API.sMaterialProperties + .get("materialHavestLevel", tMaterial.mDefaultLocalName, tMaterial.mToolQuality)); } if (tMainConfig.get("general", "hardermobspawners", true) - .getBoolean(true)) { + .getBoolean(true)) { Blocks.mob_spawner.setHardness(500.0F) - .setResistance(6000000.0F); + .setResistance(6000000.0F); } GT_Mod.gregtechproxy.mOnline = tMainConfig.get(GT_Mod.aTextGeneral, "online", true) - .getBoolean(false); + .getBoolean(false); GT_Mod.gregtechproxy.mUpgradeCount = Math.min( - 64, - Math.max( - 1, - tMainConfig.get("features", "UpgradeStacksize", 4) - .getInt())); + 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()))); + 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", "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) { + 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()))); + 64, + Math.max( + 16, + tMainConfig.get("features", "MaxOtherBlockStackSize", 64) + .getInt()))); } } - GT_Values.mCTMEnabledBlock.addAll( - Arrays.asList( - tMainConfig.get( + GT_Values.mCTMEnabledBlock + .addAll( + Arrays + .asList( + tMainConfig + .get( "general", "ctm_block_whitelist", new String[] { "team.chisel.block.BlockCarvable", - "team.chisel.block.BlockCarvableGlass" }) - .getStringList())); + "team.chisel.block.BlockCarvableGlass" }) + .getStringList())); GT_Values.mCTMDisabledBlock.addAll( - Arrays.asList( - tMainConfig.get( - "general", - "ctm_block_blacklist", - new String[] { "team.chisel.block.BlockRoadLine" }) - .getStringList())); + Arrays.asList( + tMainConfig.get("general", "ctm_block_blacklist", new String[] { "team.chisel.block.BlockRoadLine" }) + .getStringList())); } public static void loadClientConfig() { final String sBDye0 = "ColorModulation."; Arrays.stream(Dyes.values()) - .filter(tDye -> (tDye != Dyes._NULL) && (tDye.mIndex < 0)) - .forEach(tDye -> { - String sBDye1 = sBDye0 + tDye; - tDye.mRGBa[0] = ((short) Math.min( - 255, - Math.max(0, GregTech_API.sClientDataFile.get(sBDye1, "R", tDye.mOriginalRGBa[0])))); - tDye.mRGBa[1] = ((short) Math.min( - 255, - Math.max(0, GregTech_API.sClientDataFile.get(sBDye1, "G", tDye.mOriginalRGBa[1])))); - tDye.mRGBa[2] = ((short) Math.min( - 255, - Math.max(0, GregTech_API.sClientDataFile.get(sBDye1, "B", tDye.mOriginalRGBa[2])))); - }); - GT_Mod.gregtechproxy.mRenderTileAmbientOcclusion = GregTech_API.sClientDataFile.get( - "render", - "TileAmbientOcclusion", - true); + .filter(tDye -> (tDye != Dyes._NULL) && (tDye.mIndex < 0)) + .forEach(tDye -> { + String sBDye1 = sBDye0 + tDye; + tDye.mRGBa[0] = ((short) Math + .min(255, Math.max(0, GregTech_API.sClientDataFile.get(sBDye1, "R", tDye.mOriginalRGBa[0])))); + tDye.mRGBa[1] = ((short) Math + .min(255, Math.max(0, GregTech_API.sClientDataFile.get(sBDye1, "G", tDye.mOriginalRGBa[1])))); + tDye.mRGBa[2] = ((short) Math + .min(255, Math.max(0, GregTech_API.sClientDataFile.get(sBDye1, "B", tDye.mOriginalRGBa[2])))); + }); + GT_Mod.gregtechproxy.mRenderTileAmbientOcclusion = GregTech_API.sClientDataFile + .get("render", "TileAmbientOcclusion", true); GT_Mod.gregtechproxy.mRenderGlowTextures = GregTech_API.sClientDataFile.get("render", "GlowTextures", true); - GT_Mod.gregtechproxy.mRenderFlippedMachinesFlipped = GregTech_API.sClientDataFile.get( - "render", - "RenderFlippedMachinesFlipped", - true); - GT_Mod.gregtechproxy.mRenderIndicatorsOnHatch = GregTech_API.sClientDataFile.get( - "render", - "RenderIndicatorsOnHatch", - true); - GT_Mod.gregtechproxy.mRenderDirtParticles = GregTech_API.sClientDataFile.get( - "render", - "RenderDirtParticles", - true); - GT_Mod.gregtechproxy.mRenderPollutionFog = GregTech_API.sClientDataFile.get( - "render", - "RenderPollutionFog", - true); - - GT_Mod.gregtechproxy.mCoverTabsVisible = GregTech_API.sClientDataFile.get( - "interface", - "DisplayCoverTabs", - true); + GT_Mod.gregtechproxy.mRenderFlippedMachinesFlipped = GregTech_API.sClientDataFile + .get("render", "RenderFlippedMachinesFlipped", true); + GT_Mod.gregtechproxy.mRenderIndicatorsOnHatch = GregTech_API.sClientDataFile + .get("render", "RenderIndicatorsOnHatch", true); + GT_Mod.gregtechproxy.mRenderDirtParticles = GregTech_API.sClientDataFile + .get("render", "RenderDirtParticles", true); + GT_Mod.gregtechproxy.mRenderPollutionFog = GregTech_API.sClientDataFile + .get("render", "RenderPollutionFog", true); + + GT_Mod.gregtechproxy.mCoverTabsVisible = GregTech_API.sClientDataFile + .get("interface", "DisplayCoverTabs", true); GT_Mod.gregtechproxy.mCoverTabsFlipped = GregTech_API.sClientDataFile.get("interface", "FlipCoverTabs", false); GT_Mod.gregtechproxy.mTooltipVerbosity = GregTech_API.sClientDataFile.get("interface", "TooltipVerbosity", 2); - GT_Mod.gregtechproxy.mTooltipShiftVerbosity = GregTech_API.sClientDataFile.get( - "interface", - "TooltipShiftVerbosity", - 3); + GT_Mod.gregtechproxy.mTooltipShiftVerbosity = GregTech_API.sClientDataFile + .get("interface", "TooltipShiftVerbosity", 3); GT_Mod.gregtechproxy.mTitleTabStyle = GregTech_API.sClientDataFile.get("interface", "TitleTabStyle", 0); GT_Mod.gregtechproxy.mNEIRecipeSecondMode = GregTech_API.sClientDataFile.get("nei", "RecipeSecondMode", true); GT_Mod.gregtechproxy.mNEIRecipeOwner = GregTech_API.sClientDataFile.get("nei", "RecipeOwner", false); - GT_Mod.gregtechproxy.mNEIRecipeOwnerStackTrace = GregTech_API.sClientDataFile.get( - "nei", - "RecipeOwnerStackTrace", - false); + GT_Mod.gregtechproxy.mNEIRecipeOwnerStackTrace = GregTech_API.sClientDataFile + .get("nei", "RecipeOwnerStackTrace", false); GT_Mod.gregtechproxy.mNEIOriginalVoltage = GregTech_API.sClientDataFile.get("nei", "OriginalVoltage", false); - GT_Mod.gregtechproxy.mWailaTransformerVoltageTier = GregTech_API.sClientDataFile.get( - "waila", - "WailaTransformerVoltageTier", - true); + GT_Mod.gregtechproxy.mWailaTransformerVoltageTier = GregTech_API.sClientDataFile + .get("waila", "WailaTransformerVoltageTier", true); final String[] Circuits = GregTech_API.sClientDataFile.get("interface", "CircuitsOrder"); GT_Mod.gregtechproxy.mCircuitsOrder.clear(); diff --git a/src/main/java/gregtech/nei/GT_NEI_DefaultHandler.java b/src/main/java/gregtech/nei/GT_NEI_DefaultHandler.java index 9949b895e6..4236920a75 100644 --- a/src/main/java/gregtech/nei/GT_NEI_DefaultHandler.java +++ b/src/main/java/gregtech/nei/GT_NEI_DefaultHandler.java @@ -112,13 +112,13 @@ public class GT_NEI_DefaultHandler extends RecipeMapHandler { if (mRecipeMap.useModularUI) { ModularWindow.Builder builder = mRecipeMap.createNEITemplate( - itemInputsInventory = new ItemStackHandler(mRecipeMap.mUsualInputCount), - itemOutputsInventory = new ItemStackHandler(mRecipeMap.mUsualOutputCount), - specialSlotInventory = new ItemStackHandler(1), - fluidInputsInventory = new ItemStackHandler(mRecipeMap.getUsualFluidInputCount()), - fluidOutputsInventory = new ItemStackHandler(mRecipeMap.getUsualFluidOutputCount()), - () -> ((float) getDrawTicks() % PROGRESSBAR_CYCLE_TICKS) / PROGRESSBAR_CYCLE_TICKS, - WINDOW_OFFSET); + itemInputsInventory = new ItemStackHandler(mRecipeMap.mUsualInputCount), + itemOutputsInventory = new ItemStackHandler(mRecipeMap.mUsualOutputCount), + specialSlotInventory = new ItemStackHandler(1), + fluidInputsInventory = new ItemStackHandler(mRecipeMap.getUsualFluidInputCount()), + fluidOutputsInventory = new ItemStackHandler(mRecipeMap.getUsualFluidOutputCount()), + () -> ((float) getDrawTicks() % PROGRESSBAR_CYCLE_TICKS) / PROGRESSBAR_CYCLE_TICKS, + WINDOW_OFFSET); modularWindow = builder.build(); UIInfos.initializeWindow(Minecraft.getMinecraft().thePlayer, modularWindow); } else { @@ -142,12 +142,12 @@ public class GT_NEI_DefaultHandler extends RecipeMapHandler { SortedRecipeListCache cacheHolder = getCacheHolder(); List cache; if (cacheHolder.getCachedRecipesVersion() != GT_Mod.gregtechproxy.getReloadCount() - || (cache = cacheHolder.getCachedRecipes()) == null) { + || (cache = cacheHolder.getCachedRecipes()) == null) { cache = mRecipeMap.mRecipeList.stream() // do not use parallel stream. This is already parallelized by NEI - .filter(r -> !r.mHidden) - .sorted() - .map(CachedDefaultRecipe::new) - .collect(Collectors.toList()); + .filter(r -> !r.mHidden) + .sorted() + .map(CachedDefaultRecipe::new) + .collect(Collectors.toList()); // while the NEI parallelize handlers, for each individual handler it still uses sequential execution model, // so we do not need any synchronization here // even if it does break, at worst case it's just recreating the cache multiple times, which should be fine @@ -188,13 +188,13 @@ public class GT_NEI_DefaultHandler extends RecipeMapHandler { tResults.add(aResult); tResults.add(GT_OreDictUnificator.get(true, aResult)); if ((tPrefixMaterial != null) && (!tPrefixMaterial.mBlackListed) - && (!tPrefixMaterial.mPrefix.mFamiliarPrefixes.isEmpty())) { + && (!tPrefixMaterial.mPrefix.mFamiliarPrefixes.isEmpty())) { for (OrePrefixes tPrefix : tPrefixMaterial.mPrefix.mFamiliarPrefixes) { tResults.add(GT_OreDictUnificator.get(tPrefix, tPrefixMaterial.mMaterial.mMaterial, 1L)); } } if (aResult.getUnlocalizedName() - .startsWith("gt.blockores")) { + .startsWith("gt.blockores")) { for (int i = 0; i < 8; i++) { tResults.add(new ItemStack(aResult.getItem(), 1, aResult.getItemDamage() % 1000 + i * 1000)); } @@ -202,8 +202,7 @@ public class GT_NEI_DefaultHandler extends RecipeMapHandler { addFluidStacks(aResult, tResults); for (CachedDefaultRecipe recipe : getCache()) { if (tResults.stream() - .anyMatch(stack -> recipe.contains(recipe.mOutputs, stack))) - arecipes.add(recipe); + .anyMatch(stack -> recipe.contains(recipe.mOutputs, stack))) arecipes.add(recipe); } } @@ -227,11 +226,10 @@ public class GT_NEI_DefaultHandler extends RecipeMapHandler { List recipes = getCache(); if (recipes.size() > 0) { recipes = recipes.stream() - .filter( - recipe -> power.compareTo( - GT_Utility.getTier(recipe.mRecipe.mEUt), - recipe.mRecipe.mSpecialValue) >= 0) - .collect(Collectors.toList()); + .filter( + recipe -> power.compareTo(GT_Utility.getTier(recipe.mRecipe.mEUt), recipe.mRecipe.mSpecialValue) + >= 0) + .collect(Collectors.toList()); } return recipes; } @@ -263,8 +261,7 @@ public class GT_NEI_DefaultHandler extends RecipeMapHandler { addFluidStacks(aInput, tInputs); for (CachedDefaultRecipe recipe : getCache()) { if (tInputs.stream() - .anyMatch(stack -> recipe.contains(recipe.mInputs, stack))) - arecipes.add(recipe); + .anyMatch(stack -> recipe.contains(recipe.mInputs, stack))) arecipes.add(recipe); } } @@ -395,7 +392,7 @@ public class GT_NEI_DefaultHandler extends RecipeMapHandler { @Override public List handleItemTooltip(GuiRecipe gui, ItemStack aStack, List currentTip, - int aRecipeIndex) { + int aRecipeIndex) { CachedRecipe tObject = this.arecipes.get(aRecipeIndex); if (tObject instanceof CachedDefaultRecipe) { currentTip = mRecipeMap.handleNEIItemTooltip(aStack, currentTip, (CachedDefaultRecipe) tObject); @@ -422,8 +419,8 @@ public class GT_NEI_DefaultHandler extends RecipeMapHandler { } mPower.computePowerUsageAndDuration(recipe.mEUt, recipe.mDuration, recipe.mSpecialValue); - mRecipeMap.drawNEIDescription( - new NEIRecipeInfo(recipe, mRecipeMap, cachedRecipe, mPower, getDescriptionYOffset())); + mRecipeMap + .drawNEIDescription(new NEIRecipeInfo(recipe, mRecipeMap, cachedRecipe, mPower, getDescriptionYOffset())); } @Deprecated @@ -444,9 +441,9 @@ public class GT_NEI_DefaultHandler extends RecipeMapHandler { for (IDrawable background : window.getBackground()) { GlStateManager.pushMatrix(); GlStateManager.translate( - WINDOW_OFFSET.x + mRecipeMap.neiBackgroundOffset.x, - WINDOW_OFFSET.y + mRecipeMap.neiBackgroundOffset.y, - 0); + WINDOW_OFFSET.x + mRecipeMap.neiBackgroundOffset.x, + WINDOW_OFFSET.y + mRecipeMap.neiBackgroundOffset.y, + 0); GlStateManager.color(1f, 1f, 1f, 1f); background.draw(Pos2d.ZERO, window.getSize(), 0); GlStateManager.popMatrix(); @@ -488,13 +485,13 @@ public class GT_NEI_DefaultHandler extends RecipeMapHandler { private Point getMousePos(GuiContainer gui, int mouseX, int mouseY) { return new Point( - mouseX - ((GT_GUIContainer) gui).getLeft() - getGuiOffset(gui)[0], - mouseY - ((GT_GUIContainer) gui).getTop() - getGuiOffset(gui)[1]); + mouseX - ((GT_GUIContainer) gui).getLeft() - getGuiOffset(gui)[0], + mouseY - ((GT_GUIContainer) gui).getTop() - getGuiOffset(gui)[1]); } private boolean hostRectContainsMouse(NEI_TransferRectHost host, Point mousePos) { return host.getNeiTransferRect() - .contains(mousePos); + .contains(mousePos); } private boolean handleTransferRectMouseClick(NEI_TransferRectHost gui, boolean usage) { @@ -510,7 +507,7 @@ public class GT_NEI_DefaultHandler extends RecipeMapHandler { public boolean canHandle(GuiContainer gui) { return gui instanceof NEI_TransferRectHost - && GT_Utility.isStringValid(((NEI_TransferRectHost) gui).getNeiTransferRectString()); + && GT_Utility.isStringValid(((NEI_TransferRectHost) gui).getNeiTransferRectString()); } @Override @@ -531,7 +528,7 @@ public class GT_NEI_DefaultHandler extends RecipeMapHandler { @Override public List handleItemTooltip(GuiContainer gui, ItemStack itemstack, int mouseX, int mouseY, - List currentTip) { + List currentTip) { return currentTip; } @@ -597,7 +594,7 @@ public class GT_NEI_DefaultHandler extends RecipeMapHandler { } public FixedPositionedStack(Object object, boolean renderRealStackSize, int x, int y, int aChance, - boolean aUnificate) { + boolean aUnificate) { super(aUnificate ? GT_OreDictUnificator.getNonUnifiedStacks(object) : object, x, y, true); this.mChance = aChance; realStackSize = item != null ? item.stackSize : 0; @@ -630,7 +627,7 @@ public class GT_NEI_DefaultHandler extends RecipeMapHandler { // Draws a grid of items for NEI rendering. private void drawNEIItemGrid(ItemStack[] ItemArray, int x_coord_origin, int y_coord_origin, int x_dir_max_items, - int y_max_dir_max_items, GT_Recipe Recipe, boolean is_input) { + int y_max_dir_max_items, GT_Recipe Recipe, boolean is_input) { if (ItemArray.length > x_dir_max_items * y_max_dir_max_items) { GT_Log.err.println("Recipe cannot be properly displayed in NEI due to too many items."); } @@ -648,21 +645,21 @@ public class GT_NEI_DefaultHandler extends RecipeMapHandler { if (item != GT_Values.NI) { if (is_input) { mInputs.add( - new FixedPositionedStack( - item, - GT_NEI_DefaultHandler.this.mRecipeMap.renderRealStackSizes, - x_coord, - y_coord, - true)); + new FixedPositionedStack( + item, + GT_NEI_DefaultHandler.this.mRecipeMap.renderRealStackSizes, + x_coord, + y_coord, + true)); } else { mOutputs.add( - new FixedPositionedStack( - item, - GT_NEI_DefaultHandler.this.mRecipeMap.renderRealStackSizes, - x_coord, - y_coord, - Recipe.getOutputChance(special_counter), - GT_NEI_DefaultHandler.this.mRecipeMap.mNEIUnificateOutput)); + new FixedPositionedStack( + item, + GT_NEI_DefaultHandler.this.mRecipeMap.renderRealStackSizes, + x_coord, + y_coord, + Recipe.getOutputChance(special_counter), + GT_NEI_DefaultHandler.this.mRecipeMap.mNEIUnificateOutput)); special_counter++; } x_coord += 18; @@ -730,84 +727,72 @@ public class GT_NEI_DefaultHandler extends RecipeMapHandler { for (Widget child : modularWindow.getChildren()) { if (child instanceof SlotWidget widget) { if (widget.getMcSlot() - .getItemHandler() - == itemInputsInventory) { + .getItemHandler() == itemInputsInventory) { int i = widget.getMcSlot() - .getSlotIndex(); + .getSlotIndex(); Object input = aRecipe instanceof GT_Recipe.GT_Recipe_WithAlt - ? ((GT_Recipe.GT_Recipe_WithAlt) aRecipe).getAltRepresentativeInput(i) - : aRecipe.getRepresentativeInput(i); + ? ((GT_Recipe.GT_Recipe_WithAlt) aRecipe).getAltRepresentativeInput(i) + : aRecipe.getRepresentativeInput(i); if (input != null) { mInputs.add( + new FixedPositionedStack( + input, + GT_NEI_DefaultHandler.this.mRecipeMap.renderRealStackSizes, + widget.getPos().x + 1, + widget.getPos().y + 1, + true)); + } + } else if (widget.getMcSlot() + .getItemHandler() == itemOutputsInventory) { + int i = widget.getMcSlot() + .getSlotIndex(); + if (aRecipe.mOutputs.length > i && aRecipe.mOutputs[i] != null) { + mOutputs.add( new FixedPositionedStack( - input, + aRecipe.mOutputs[i], + GT_NEI_DefaultHandler.this.mRecipeMap.renderRealStackSizes, + widget.getPos().x + 1, + widget.getPos().y + 1, + aRecipe.getOutputChance(i), + GT_NEI_DefaultHandler.this.mRecipeMap.mNEIUnificateOutput)); + } + } else if (widget.getMcSlot() + .getItemHandler() == specialSlotInventory) { + if (aRecipe.mSpecialItems != null) { + mInputs.add( + new FixedPositionedStack( + aRecipe.mSpecialItems, GT_NEI_DefaultHandler.this.mRecipeMap.renderRealStackSizes, widget.getPos().x + 1, - widget.getPos().y + 1, - true)); - } - } else if (widget.getMcSlot() - .getItemHandler() - == itemOutputsInventory) { - int i = widget.getMcSlot() - .getSlotIndex(); - if (aRecipe.mOutputs.length > i && aRecipe.mOutputs[i] != null) { - mOutputs.add( - new FixedPositionedStack( - aRecipe.mOutputs[i], - GT_NEI_DefaultHandler.this.mRecipeMap.renderRealStackSizes, - widget.getPos().x + 1, - widget.getPos().y + 1, - aRecipe.getOutputChance(i), - GT_NEI_DefaultHandler.this.mRecipeMap.mNEIUnificateOutput)); + widget.getPos().y + 1)); } - } else - if (widget.getMcSlot() - .getItemHandler() - == specialSlotInventory) { - if (aRecipe.mSpecialItems != null) { + } else if (widget.getMcSlot() + .getItemHandler() == fluidInputsInventory) { + int i = widget.getMcSlot() + .getSlotIndex(); + if (aRecipe.mFluidInputs.length > i && aRecipe.mFluidInputs[i] != null + && aRecipe.mFluidInputs[i].getFluid() != null) { mInputs.add( - new FixedPositionedStack( - aRecipe.mSpecialItems, - GT_NEI_DefaultHandler.this.mRecipeMap.renderRealStackSizes, - widget.getPos().x + 1, - widget.getPos().y + 1)); + new FixedPositionedStack( + GT_Utility.getFluidDisplayStack(aRecipe.mFluidInputs[i], true), + GT_NEI_DefaultHandler.this.mRecipeMap.renderRealStackSizes, + widget.getPos().x + 1, + widget.getPos().y + 1)); } - } else - if (widget.getMcSlot() - .getItemHandler() - == fluidInputsInventory) { + } else if (widget.getMcSlot() + .getItemHandler() == fluidOutputsInventory) { int i = widget.getMcSlot() - .getSlotIndex(); - if (aRecipe.mFluidInputs.length > i && aRecipe.mFluidInputs[i] != null - && aRecipe.mFluidInputs[i].getFluid() != null) { - mInputs.add( - new FixedPositionedStack( - GT_Utility.getFluidDisplayStack( - aRecipe.mFluidInputs[i], - true), - GT_NEI_DefaultHandler.this.mRecipeMap.renderRealStackSizes, - widget.getPos().x + 1, - widget.getPos().y + 1)); - } - } else - if (widget.getMcSlot() - .getItemHandler() - == fluidOutputsInventory) { - int i = widget.getMcSlot() - .getSlotIndex(); - if (aRecipe.mFluidOutputs.length > i && aRecipe.mFluidOutputs[i] != null - && aRecipe.mFluidOutputs[i].getFluid() != null) { - mOutputs.add( - new FixedPositionedStack( - GT_Utility.getFluidDisplayStack( - aRecipe.mFluidOutputs[i], - true), - GT_NEI_DefaultHandler.this.mRecipeMap.renderRealStackSizes, - widget.getPos().x + 1, - widget.getPos().y + 1)); - } + .getSlotIndex(); + if (aRecipe.mFluidOutputs.length > i && aRecipe.mFluidOutputs[i] != null + && aRecipe.mFluidOutputs[i].getFluid() != null) { + mOutputs.add( + new FixedPositionedStack( + GT_Utility.getFluidDisplayStack(aRecipe.mFluidOutputs[i], true), + GT_NEI_DefaultHandler.this.mRecipeMap.renderRealStackSizes, + widget.getPos().x + 1, + widget.getPos().y + 1)); } + } } } @@ -815,56 +800,56 @@ public class GT_NEI_DefaultHandler extends RecipeMapHandler { UIHelper.forEachSlots((i, backgrounds, pos) -> { if (i >= GT_NEI_DefaultHandler.this.mRecipeMap.mUsualInputCount && aRecipe.mInputs[i] != null) { mInputs.add( - new FixedPositionedStack( - aRecipe.mInputs[i], - GT_NEI_DefaultHandler.this.mRecipeMap.renderRealStackSizes, - pos.x + 1, - pos.y + 1, - true)); + new FixedPositionedStack( + aRecipe.mInputs[i], + GT_NEI_DefaultHandler.this.mRecipeMap.renderRealStackSizes, + pos.x + 1, + pos.y + 1, + true)); } }, (i, backgrounds, pos) -> { if (i >= GT_NEI_DefaultHandler.this.mRecipeMap.mUsualOutputCount && aRecipe.mOutputs[i] != null) { mOutputs.add( - new FixedPositionedStack( - aRecipe.mOutputs[i], - GT_NEI_DefaultHandler.this.mRecipeMap.renderRealStackSizes, - pos.x + 1, - pos.y + 1, - aRecipe.getOutputChance(i), - GT_NEI_DefaultHandler.this.mRecipeMap.mNEIUnificateOutput)); + new FixedPositionedStack( + aRecipe.mOutputs[i], + GT_NEI_DefaultHandler.this.mRecipeMap.renderRealStackSizes, + pos.x + 1, + pos.y + 1, + aRecipe.getOutputChance(i), + GT_NEI_DefaultHandler.this.mRecipeMap.mNEIUnificateOutput)); } }, (i, backgrounds, pos) -> {}, (i, backgrounds, pos) -> { if (i >= GT_NEI_DefaultHandler.this.mRecipeMap.getUsualFluidInputCount() - && aRecipe.mFluidInputs[i] != null - && aRecipe.mFluidInputs[i].getFluid() != null) { + && aRecipe.mFluidInputs[i] != null + && aRecipe.mFluidInputs[i].getFluid() != null) { mInputs.add( - new FixedPositionedStack( - GT_Utility.getFluidDisplayStack(aRecipe.mFluidInputs[i], true), - GT_NEI_DefaultHandler.this.mRecipeMap.renderRealStackSizes, - pos.x + 1, - pos.y + 1)); + new FixedPositionedStack( + GT_Utility.getFluidDisplayStack(aRecipe.mFluidInputs[i], true), + GT_NEI_DefaultHandler.this.mRecipeMap.renderRealStackSizes, + pos.x + 1, + pos.y + 1)); } }, (i, backgrounds, pos) -> { if (i >= GT_NEI_DefaultHandler.this.mRecipeMap.getUsualFluidOutputCount() - && aRecipe.mFluidOutputs[i] != null - && aRecipe.mFluidOutputs[i].getFluid() != null) { + && aRecipe.mFluidOutputs[i] != null + && aRecipe.mFluidOutputs[i].getFluid() != null) { mOutputs.add( - new FixedPositionedStack( - GT_Utility.getFluidDisplayStack(aRecipe.mFluidOutputs[i], true), - GT_NEI_DefaultHandler.this.mRecipeMap.renderRealStackSizes, - pos.x + 1, - pos.y + 1)); + new FixedPositionedStack( + GT_Utility.getFluidDisplayStack(aRecipe.mFluidOutputs[i], true), + GT_NEI_DefaultHandler.this.mRecipeMap.renderRealStackSizes, + pos.x + 1, + pos.y + 1)); } }, - null, - null, - GT_NEI_DefaultHandler.this.mRecipeMap, - aRecipe.mInputs.length, - aRecipe.mOutputs.length, - aRecipe.mFluidInputs.length, - aRecipe.mFluidOutputs.length, - SteamVariant.NONE, - WINDOW_OFFSET); + null, + null, + GT_NEI_DefaultHandler.this.mRecipeMap, + aRecipe.mInputs.length, + aRecipe.mOutputs.length, + aRecipe.mFluidInputs.length, + aRecipe.mFluidOutputs.length, + SteamVariant.NONE, + WINDOW_OFFSET); } else { // todo remove after all the migrations are done // Default GT NEI handler for drawing fluids/items on screen. @@ -917,85 +902,85 @@ public class GT_NEI_DefaultHandler extends RecipeMapHandler { // ??? No idea what this does. Leaving it alone. if (aRecipe.mSpecialItems != null) { this.mInputs.add( - new FixedPositionedStack( - aRecipe.mSpecialItems, - GT_NEI_DefaultHandler.this.mRecipeMap.renderRealStackSizes, - 120, - 52)); + new FixedPositionedStack( + aRecipe.mSpecialItems, + GT_NEI_DefaultHandler.this.mRecipeMap.renderRealStackSizes, + 120, + 52)); } if ((aRecipe.mFluidInputs.length > 0) && (aRecipe.mFluidInputs[0] != null) - && (aRecipe.mFluidInputs[0].getFluid() != null)) { + && (aRecipe.mFluidInputs[0].getFluid() != null)) { this.mInputs.add( - new FixedPositionedStack( - GT_Utility.getFluidDisplayStack(aRecipe.mFluidInputs[0], true), - GT_NEI_DefaultHandler.this.mRecipeMap.renderRealStackSizes, - 48, - 52)); + new FixedPositionedStack( + GT_Utility.getFluidDisplayStack(aRecipe.mFluidInputs[0], true), + GT_NEI_DefaultHandler.this.mRecipeMap.renderRealStackSizes, + 48, + 52)); if ((aRecipe.mFluidInputs.length > 1) && (aRecipe.mFluidInputs[1] != null) - && (aRecipe.mFluidInputs[1].getFluid() != null)) { + && (aRecipe.mFluidInputs[1].getFluid() != null)) { this.mInputs.add( - new FixedPositionedStack( - GT_Utility.getFluidDisplayStack(aRecipe.mFluidInputs[1], true), - GT_NEI_DefaultHandler.this.mRecipeMap.renderRealStackSizes, - 30, - 52)); + new FixedPositionedStack( + GT_Utility.getFluidDisplayStack(aRecipe.mFluidInputs[1], true), + GT_NEI_DefaultHandler.this.mRecipeMap.renderRealStackSizes, + 30, + 52)); } } if (aRecipe.mFluidOutputs.length > 1) { if (aRecipe.mFluidOutputs[0] != null && (aRecipe.mFluidOutputs[0].getFluid() != null)) { this.mOutputs.add( - new FixedPositionedStack( - GT_Utility.getFluidDisplayStack(aRecipe.mFluidOutputs[0], true), - GT_NEI_DefaultHandler.this.mRecipeMap.renderRealStackSizes, - 120, - 5)); + new FixedPositionedStack( + GT_Utility.getFluidDisplayStack(aRecipe.mFluidOutputs[0], true), + GT_NEI_DefaultHandler.this.mRecipeMap.renderRealStackSizes, + 120, + 5)); } if (aRecipe.mFluidOutputs[1] != null && (aRecipe.mFluidOutputs[1].getFluid() != null)) { this.mOutputs.add( - new FixedPositionedStack( - GT_Utility.getFluidDisplayStack(aRecipe.mFluidOutputs[1], true), - GT_NEI_DefaultHandler.this.mRecipeMap.renderRealStackSizes, - 138, - 5)); + new FixedPositionedStack( + GT_Utility.getFluidDisplayStack(aRecipe.mFluidOutputs[1], true), + GT_NEI_DefaultHandler.this.mRecipeMap.renderRealStackSizes, + 138, + 5)); } if (aRecipe.mFluidOutputs.length > 2 && aRecipe.mFluidOutputs[2] != null - && (aRecipe.mFluidOutputs[2].getFluid() != null)) { + && (aRecipe.mFluidOutputs[2].getFluid() != null)) { this.mOutputs.add( - new FixedPositionedStack( - GT_Utility.getFluidDisplayStack(aRecipe.mFluidOutputs[2], true), - GT_NEI_DefaultHandler.this.mRecipeMap.renderRealStackSizes, - 102, - 23)); + new FixedPositionedStack( + GT_Utility.getFluidDisplayStack(aRecipe.mFluidOutputs[2], true), + GT_NEI_DefaultHandler.this.mRecipeMap.renderRealStackSizes, + 102, + 23)); } if (aRecipe.mFluidOutputs.length > 3 && aRecipe.mFluidOutputs[3] != null - && (aRecipe.mFluidOutputs[3].getFluid() != null)) { + && (aRecipe.mFluidOutputs[3].getFluid() != null)) { this.mOutputs.add( - new FixedPositionedStack( - GT_Utility.getFluidDisplayStack(aRecipe.mFluidOutputs[3], true), - GT_NEI_DefaultHandler.this.mRecipeMap.renderRealStackSizes, - 120, - 23)); + new FixedPositionedStack( + GT_Utility.getFluidDisplayStack(aRecipe.mFluidOutputs[3], true), + GT_NEI_DefaultHandler.this.mRecipeMap.renderRealStackSizes, + 120, + 23)); } if (aRecipe.mFluidOutputs.length > 4 && aRecipe.mFluidOutputs[4] != null - && (aRecipe.mFluidOutputs[4].getFluid() != null)) { + && (aRecipe.mFluidOutputs[4].getFluid() != null)) { this.mOutputs.add( - new FixedPositionedStack( - GT_Utility.getFluidDisplayStack(aRecipe.mFluidOutputs[4], true), - GT_NEI_DefaultHandler.this.mRecipeMap.renderRealStackSizes, - 138, - 23)); + new FixedPositionedStack( + GT_Utility.getFluidDisplayStack(aRecipe.mFluidOutputs[4], true), + GT_NEI_DefaultHandler.this.mRecipeMap.renderRealStackSizes, + 138, + 23)); } } else if ((aRecipe.mFluidOutputs.length > 0) && (aRecipe.mFluidOutputs[0] != null) - && (aRecipe.mFluidOutputs[0].getFluid() != null)) { - this.mOutputs.add( - new FixedPositionedStack( - GT_Utility.getFluidDisplayStack(aRecipe.mFluidOutputs[0], true), - GT_NEI_DefaultHandler.this.mRecipeMap.renderRealStackSizes, - 102, - 52)); - } + && (aRecipe.mFluidOutputs[0].getFluid() != null)) { + this.mOutputs.add( + new FixedPositionedStack( + GT_Utility.getFluidDisplayStack(aRecipe.mFluidOutputs[0], true), + GT_NEI_DefaultHandler.this.mRecipeMap.renderRealStackSizes, + 102, + 52)); + } } } @@ -1059,7 +1044,7 @@ public class GT_NEI_DefaultHandler extends RecipeMapHandler { mTierIndexes = new HashMap<>(GT_Values.V.length + 1, 1f); assert mCachedRecipes != null; Iterator iterator = Objects.requireNonNull(mCachedRecipes.get()) - .iterator(); + .iterator(); int index = 0; int minIndex = 0; @@ -1068,8 +1053,8 @@ public class GT_NEI_DefaultHandler extends RecipeMapHandler { byte lowestTier = 0; while (iterator.hasNext()) { CachedDefaultRecipe recipe = iterator.next(); - byte recipeTier = GT_Utility.getTier( - recipe.mRecipe.mEUt / GT_NEI_DefaultHandler.this.mRecipeMap.mAmperage); + byte recipeTier = GT_Utility + .getTier(recipe.mRecipe.mEUt / GT_NEI_DefaultHandler.this.mRecipeMap.mAmperage); if (recipeTier != previousTier) { if (maxIndex != -1) { mTierIndexes.put(previousTier, Range.between(minIndex, maxIndex)); @@ -1094,7 +1079,7 @@ public class GT_NEI_DefaultHandler extends RecipeMapHandler { lowTier++; } return mTierIndexes.get(lowTier) - .getMinimum(); + .getMinimum(); } private int getHighIndexForTier(byte upperTier) { @@ -1103,7 +1088,7 @@ public class GT_NEI_DefaultHandler extends RecipeMapHandler { highTier--; } return mTierIndexes.get(highTier) - .getMaximum(); + .getMaximum(); } } } diff --git a/src/main/java/gregtech/nei/NEIRecipeInfo.java b/src/main/java/gregtech/nei/NEIRecipeInfo.java index ee8c38d3da..85db921ade 100644 --- a/src/main/java/gregtech/nei/NEIRecipeInfo.java +++ b/src/main/java/gregtech/nei/NEIRecipeInfo.java @@ -35,7 +35,7 @@ public class NEIRecipeInfo { public int yPos; public NEIRecipeInfo(GT_Recipe recipe, GT_Recipe.GT_Recipe_Map recipeMap, - GT_NEI_DefaultHandler.CachedDefaultRecipe neiCachedRecipe, Power power, int descriptionYOffset) { + GT_NEI_DefaultHandler.CachedDefaultRecipe neiCachedRecipe, Power power, int descriptionYOffset) { this.recipe = recipe; this.recipeMap = recipeMap; this.neiCachedRecipe = neiCachedRecipe; diff --git a/src/main/java/gregtech/nei/NEI_GT_Config.java b/src/main/java/gregtech/nei/NEI_GT_Config.java index 7927f065e7..4fd67020ab 100644 --- a/src/main/java/gregtech/nei/NEI_GT_Config.java +++ b/src/main/java/gregtech/nei/NEI_GT_Config.java @@ -34,25 +34,21 @@ public class NEI_GT_Config implements IConfigureNEI { * will be assigned a value of 0. Negative values are fine. */ private static final ImmutableMap RECIPE_MAP_ORDERING = ImmutableMap.builder() - .put( - GT_Recipe.GT_Recipe_Map.sAssemblylineVisualRecipes, - 1) - .put( - GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes, - 2) - .build(); + .put(GT_Recipe.GT_Recipe_Map.sAssemblylineVisualRecipes, 1) + .put(GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes, 2) + .build(); - private static final Comparator RECIPE_MAP_HANDLER_COMPARATOR = Comparator.comparingInt( - handler -> RECIPE_MAP_ORDERING.getOrDefault(handler.getRecipeMap(), 0)); + private static final Comparator RECIPE_MAP_HANDLER_COMPARATOR = Comparator + .comparingInt(handler -> RECIPE_MAP_ORDERING.getOrDefault(handler.getRecipeMap(), 0)); public static boolean sIsAdded = true; private static void addHandler(TemplateRecipeHandler handler) { FMLInterModComms.sendRuntimeMessage( - GT_Values.GT, - "NEIPlugins", - "register-crafting-handler", - "gregtech@" + handler.getRecipeName() + "@" + handler.getOverlayIdentifier()); + GT_Values.GT, + "NEIPlugins", + "register-crafting-handler", + "gregtech@" + handler.getRecipeName() + "@" + handler.getOverlayIdentifier()); GuiCraftingRecipe.craftinghandlers.add(handler); GuiUsageRecipe.usagehandlers.add(handler); } @@ -61,8 +57,8 @@ public class NEI_GT_Config implements IConfigureNEI { public void loadConfig() { sIsAdded = false; if (FMLCommonHandler.instance() - .getEffectiveSide() - .isClient()) { + .getEffectiveSide() + .isClient()) { List handlers = new ArrayList<>(); for (GT_Recipe.GT_Recipe_Map tMap : GT_Recipe.GT_Recipe_Map.sMappings) { diff --git a/src/main/java/gregtech/nei/RecipeMapHandler.java b/src/main/java/gregtech/nei/RecipeMapHandler.java index dbe1d74fd3..2e4ab5abe2 100644 --- a/src/main/java/gregtech/nei/RecipeMapHandler.java +++ b/src/main/java/gregtech/nei/RecipeMapHandler.java @@ -34,10 +34,7 @@ abstract class RecipeMapHandler extends TemplateRecipeHandler { } protected void drawText(int aX, int aY, String aString, int aColor) { - Minecraft.getMinecraft().fontRenderer.drawString( - aString, - aX, - aY, - overrideTextColor != -1 ? overrideTextColor : aColor); + Minecraft.getMinecraft().fontRenderer + .drawString(aString, aX, aY, overrideTextColor != -1 ? overrideTextColor : aColor); } } diff --git a/src/main/java/gregtech/nei/dumper/GregTechIDDumper.java b/src/main/java/gregtech/nei/dumper/GregTechIDDumper.java index 01728e143a..0c2f20ac22 100644 --- a/src/main/java/gregtech/nei/dumper/GregTechIDDumper.java +++ b/src/main/java/gregtech/nei/dumper/GregTechIDDumper.java @@ -40,8 +40,8 @@ public abstract class GregTechIDDumper extends DataDumper { protected void logWarn() { if (!NewHorizonsCoreMod.isModLoaded()) { NEIClientUtils.printChatMessage( - new ChatComponentTranslation("nei.options.tools.dump.gt5u.warn_env").setChatStyle( - new ChatStyle().setColor(EnumChatFormatting.DARK_RED))); + new ChatComponentTranslation("nei.options.tools.dump.gt5u.warn_env") + .setChatStyle(new ChatStyle().setColor(EnumChatFormatting.DARK_RED))); } } diff --git a/src/main/java/gregtech/nei/dumper/MaterialDumper.java b/src/main/java/gregtech/nei/dumper/MaterialDumper.java index cf8f38934e..3234779de8 100644 --- a/src/main/java/gregtech/nei/dumper/MaterialDumper.java +++ b/src/main/java/gregtech/nei/dumper/MaterialDumper.java @@ -25,8 +25,8 @@ public class MaterialDumper extends GregTechIDDumper { protected Iterable dump(Mode mode) { List dump = new ArrayList<>(); Map idMap = Arrays.stream(GregTech_API.sGeneratedMaterials) - .filter(Objects::nonNull) - .collect(Collectors.toMap(m -> m.mMetaItemSubID, m -> m)); + .filter(Objects::nonNull) + .collect(Collectors.toMap(m -> m.mMetaItemSubID, m -> m)); for (int i = 0; i < 1000; i++) { if (mode == Mode.FREE && !idMap.containsKey(i)) { dump.add(new String[] { String.valueOf(i), "", }); diff --git a/src/main/java/gregtech/nei/dumper/MetaItemDumper.java b/src/main/java/gregtech/nei/dumper/MetaItemDumper.java index 9e22f621c5..519af48e93 100644 --- a/src/main/java/gregtech/nei/dumper/MetaItemDumper.java +++ b/src/main/java/gregtech/nei/dumper/MetaItemDumper.java @@ -35,8 +35,8 @@ public class MetaItemDumper extends GregTechIDDumper { list.add(new String[] { String.valueOf(i), "", String.valueOf(metaID), }); } else if (mode == Mode.USED && generated) { list.add( - new String[] { String.valueOf(i), new ItemStack(item, 1, metaID).getDisplayName(), - String.valueOf(metaID), }); + new String[] { String.valueOf(i), new ItemStack(item, 1, metaID).getDisplayName(), + String.valueOf(metaID), }); } } return list; @@ -46,7 +46,7 @@ public class MetaItemDumper extends GregTechIDDumper { public void dumpFile() { super.super$dumpFile(); NEIClientUtils.printChatMessage( - new ChatComponentText(String.format("mOffset: %s, mItemAmount: %s", item.mOffset, item.mItemAmount))); + new ChatComponentText(String.format("mOffset: %s, mItemAmount: %s", item.mOffset, item.mItemAmount))); logWarn(); } diff --git a/src/main/java/gregtech/nei/dumper/MetaTileEntityDumper.java b/src/main/java/gregtech/nei/dumper/MetaTileEntityDumper.java index d23e8b9897..ee30cdfb8a 100644 --- a/src/main/java/gregtech/nei/dumper/MetaTileEntityDumper.java +++ b/src/main/java/gregtech/nei/dumper/MetaTileEntityDumper.java @@ -26,10 +26,10 @@ public class MetaTileEntityDumper extends GregTechIDDumper { list.add(new String[] { String.valueOf(i), "", "", }); } else if (mode == Mode.USED && mte != null) { list.add( - new String[] { String.valueOf(i), mte.getStackForm(1) - .getDisplayName(), - mte.getClass() - .getSimpleName() }); + new String[] { String.valueOf(i), mte.getStackForm(1) + .getDisplayName(), + mte.getClass() + .getSimpleName() }); } } return list; diff --git a/src/test/java/gregtech/overclock/GT_OverclockCalculator_UnitTest.java b/src/test/java/gregtech/overclock/GT_OverclockCalculator_UnitTest.java index 1dcb6003fb..38d05d32f2 100644 --- a/src/test/java/gregtech/overclock/GT_OverclockCalculator_UnitTest.java +++ b/src/test/java/gregtech/overclock/GT_OverclockCalculator_UnitTest.java @@ -18,13 +18,13 @@ class GT_OverclockCalculator_UnitTest { int heatDiscounts = (1800 * 4) / 900; long correctConsumption = (long) Math.ceil(VP[5] * Math.pow(0.95, heatDiscounts)); GT_OverclockCalculator calculator = new GT_OverclockCalculator().setRecipeEUt(VP[1]) - .setEUt(V[5]) - .setDuration(1024) - .enableHeatOC() - .enableHeatDiscount() - .setRecipeHeat(1800) - .setMultiHeat(1800 * 5) - .calculate(); + .setEUt(V[5]) + .setDuration(1024) + .enableHeatOC() + .enableHeatDiscount() + .setRecipeHeat(1800) + .setMultiHeat(1800 * 5) + .calculate(); assertEquals(1024 >> 8, calculator.getDuration(), messageDuration); assertEquals(correctConsumption, calculator.getConsumption(), messageEUt); } @@ -34,13 +34,13 @@ class GT_OverclockCalculator_UnitTest { int heatDiscounts = 1; long correctConsumption = (long) Math.ceil(VP[5] * Math.pow(0.95, heatDiscounts)); GT_OverclockCalculator calculator = new GT_OverclockCalculator().setRecipeEUt(VP[1]) - .setEUt(V[5]) - .setDuration(1024) - .enableHeatOC() - .enableHeatDiscount() - .setRecipeHeat(1800) - .setMultiHeat(2700) - .calculate(); + .setEUt(V[5]) + .setDuration(1024) + .enableHeatOC() + .enableHeatDiscount() + .setRecipeHeat(1800) + .setMultiHeat(2700) + .calculate(); assertEquals(1024 >> 4, calculator.getDuration(), messageDuration); assertEquals(correctConsumption, calculator.getConsumption(), messageEUt); } @@ -48,13 +48,13 @@ class GT_OverclockCalculator_UnitTest { @Test void imperfectOverclockEBFWithoutHeatDiscounts_Test() { GT_OverclockCalculator calculator = new GT_OverclockCalculator().setRecipeEUt(VP[1]) - .setEUt(V[5]) - .setDuration(1024) - .enableHeatOC() - .enableHeatDiscount() - .setRecipeHeat(1800) - .setMultiHeat(1800) - .calculate(); + .setEUt(V[5]) + .setDuration(1024) + .enableHeatOC() + .enableHeatDiscount() + .setRecipeHeat(1800) + .setMultiHeat(1800) + .calculate(); assertEquals(1024 >> 4, calculator.getDuration(), messageDuration); assertEquals(VP[5], calculator.getConsumption(), messageEUt); } @@ -64,13 +64,13 @@ class GT_OverclockCalculator_UnitTest { int heatDiscounts = 2; long correctConsumption = (long) Math.ceil(VP[5] * Math.pow(0.95, heatDiscounts)); GT_OverclockCalculator calculator = new GT_OverclockCalculator().setRecipeEUt(VP[1]) - .setEUt(V[5]) - .setDuration(1024) - .enableHeatOC() - .enableHeatDiscount() - .setRecipeHeat(1800) - .setMultiHeat(3600) - .calculate(); + .setEUt(V[5]) + .setDuration(1024) + .enableHeatOC() + .enableHeatDiscount() + .setRecipeHeat(1800) + .setMultiHeat(3600) + .calculate(); assertEquals(1024 >> 5, calculator.getDuration(), messageDuration); assertEquals(correctConsumption, calculator.getConsumption(), messageEUt); } @@ -78,9 +78,9 @@ class GT_OverclockCalculator_UnitTest { @Test void generalImperfectOverclock_Test() { GT_OverclockCalculator calculator = new GT_OverclockCalculator().setRecipeEUt(VP[1]) - .setEUt(V[6]) - .setDuration(1024) - .calculate(); + .setEUt(V[6]) + .setDuration(1024) + .calculate(); assertEquals(1024 >> 5, calculator.getDuration(), messageDuration); assertEquals(VP[6], calculator.getConsumption(), messageEUt); } @@ -88,10 +88,10 @@ class GT_OverclockCalculator_UnitTest { @Test void generalPerfectOverclock_Test() { GT_OverclockCalculator calculator = new GT_OverclockCalculator().setRecipeEUt(VP[1]) - .setEUt(V[6]) - .setDuration(2048) - .enablePerfectOC() - .calculate(); + .setEUt(V[6]) + .setDuration(2048) + .enablePerfectOC() + .calculate(); assertEquals(2048 >> 10, calculator.getDuration(), messageDuration); assertEquals(VP[6], calculator.getConsumption(), messageEUt); } @@ -101,13 +101,13 @@ class GT_OverclockCalculator_UnitTest { int heatDiscounts = 3; long correctConsumption = (long) Math.ceil(VP[6] * Math.pow(0.95, heatDiscounts)); GT_OverclockCalculator calculator = new GT_OverclockCalculator().setRecipeEUt(VP[1]) - .setEUt(V[6]) - .setDuration(2048) - .enableHeatOC() - .enableHeatDiscount() - .setRecipeHeat(486) - .setMultiHeat(3900) - .calculate(); + .setEUt(V[6]) + .setDuration(2048) + .enableHeatOC() + .enableHeatDiscount() + .setRecipeHeat(486) + .setMultiHeat(3900) + .calculate(); assertEquals(2048 >> 6, calculator.getDuration(), messageDuration); assertEquals(correctConsumption, calculator.getConsumption(), messageEUt); } @@ -115,10 +115,10 @@ class GT_OverclockCalculator_UnitTest { @Test void doubleEnergyHatchOC_Test() { GT_OverclockCalculator calculator = new GT_OverclockCalculator().setRecipeEUt(VP[1]) - .setEUt(V[6] + V[6]) - .setAmperage(2) - .setDuration(1024) - .calculate(); + .setEUt(V[6] + V[6]) + .setAmperage(2) + .setDuration(1024) + .calculate(); assertEquals(1024 >> 6, calculator.getDuration(), messageDuration); assertEquals(VP[7], calculator.getConsumption(), messageEUt); } @@ -126,10 +126,10 @@ class GT_OverclockCalculator_UnitTest { @Test void multiAmpHatchOC_Test() { GT_OverclockCalculator calculator = new GT_OverclockCalculator().setRecipeEUt(VP[1]) - .setEUt(V[6]) - .setAmperage(256) - .setDuration(1024) - .calculate(); + .setEUt(V[6]) + .setAmperage(256) + .setDuration(1024) + .calculate(); assertEquals(1024 >> 9, calculator.getDuration(), messageDuration); assertEquals(VP[10], calculator.getConsumption(), messageEUt); } @@ -137,10 +137,10 @@ class GT_OverclockCalculator_UnitTest { @Test void weirdAmpHatchOC_Test() { GT_OverclockCalculator calculator = new GT_OverclockCalculator().setRecipeEUt(VP[1]) - .setEUt(V[6]) - .setAmperage(320) - .setDuration(1024) - .calculate(); + .setEUt(V[6]) + .setAmperage(320) + .setDuration(1024) + .calculate(); assertEquals(1024 >> 9, calculator.getDuration(), messageDuration); assertEquals(VP[10], calculator.getConsumption(), messageEUt); } @@ -148,11 +148,11 @@ class GT_OverclockCalculator_UnitTest { @Test void parallelImperfectOC_Test() { GT_OverclockCalculator calculator = new GT_OverclockCalculator().setRecipeEUt(VP[1]) - .setEUt(V[8]) - .setAmperage(4) - .setDuration(1024) - .setParallel(16) - .calculate(); + .setEUt(V[8]) + .setAmperage(4) + .setDuration(1024) + .setParallel(16) + .calculate(); assertEquals(1024 >> 6, calculator.getDuration(), messageDuration); assertEquals(VP[9], calculator.getConsumption(), messageEUt); } @@ -160,12 +160,12 @@ class GT_OverclockCalculator_UnitTest { @Test void parallelPerfectOC_Test() { GT_OverclockCalculator calculator = new GT_OverclockCalculator().setRecipeEUt(VP[1]) - .setEUt(V[8]) - .setAmperage(4) - .setDuration(4096) - .setParallel(16) - .enablePerfectOC() - .calculate(); + .setEUt(V[8]) + .setAmperage(4) + .setDuration(4096) + .setParallel(16) + .enablePerfectOC() + .calculate(); assertEquals(4096 >> 12, calculator.getDuration(), messageDuration); assertEquals(VP[9], calculator.getConsumption(), messageEUt); } @@ -173,11 +173,11 @@ class GT_OverclockCalculator_UnitTest { @Test void parallelMultiAmpOC_Test() { GT_OverclockCalculator calculator = new GT_OverclockCalculator().setRecipeEUt(VP[1]) - .setEUt(V[6]) - .setAmperage(320) - .setDuration(1024) - .setParallel(16) - .calculate(); + .setEUt(V[6]) + .setAmperage(320) + .setDuration(1024) + .setParallel(16) + .calculate(); assertEquals(1024 >> 7, calculator.getDuration(), messageDuration); assertEquals(VP[10], calculator.getConsumption(), messageEUt); } @@ -185,10 +185,10 @@ class GT_OverclockCalculator_UnitTest { @Test void weirdParallelOC_Test() { GT_OverclockCalculator calculator = new GT_OverclockCalculator().setRecipeEUt(VP[1]) - .setEUt(V[8]) - .setDuration(1024) - .setParallel(8) - .calculate(); + .setEUt(V[8]) + .setDuration(1024) + .setParallel(8) + .calculate(); assertEquals(1024 >> 5, calculator.getDuration(), messageDuration); assertEquals(VP[6] * 8, calculator.getConsumption(), messageEUt); } @@ -196,11 +196,11 @@ class GT_OverclockCalculator_UnitTest { @Test void weirdParallelAndAmpsOC_Test() { GT_OverclockCalculator calculator = new GT_OverclockCalculator().setRecipeEUt(VP[1]) - .setEUt(V[8]) - .setAmperage(320) - .setDuration(1024) - .setParallel(8) - .calculate(); + .setEUt(V[8]) + .setAmperage(320) + .setDuration(1024) + .setParallel(8) + .calculate(); assertEquals(1024 >> 9, calculator.getDuration(), messageDuration); assertEquals(VP[6] * 8 * 256, calculator.getConsumption(), messageEUt); } @@ -208,9 +208,9 @@ class GT_OverclockCalculator_UnitTest { @Test void weirdTimeOC_Test() { GT_OverclockCalculator calculator = new GT_OverclockCalculator().setRecipeEUt(VP[1]) - .setEUt(V[6]) - .setDuration(77) - .calculate(); + .setEUt(V[6]) + .setDuration(77) + .calculate(); assertEquals(77 >> 5, calculator.getDuration(), messageDuration); assertEquals(VP[6], calculator.getConsumption(), messageEUt); } @@ -218,9 +218,9 @@ class GT_OverclockCalculator_UnitTest { @Test void stopsCorrectlyWhenOneTicking_Test() { GT_OverclockCalculator calculator = new GT_OverclockCalculator().setRecipeEUt(VP[1]) - .setEUt(V[6]) - .setDuration(1) - .calculate(); + .setEUt(V[6]) + .setDuration(1) + .calculate(); assertEquals(1, calculator.getDuration(), messageDuration); assertEquals(VP[1], calculator.getConsumption(), messageEUt); } @@ -229,10 +229,10 @@ class GT_OverclockCalculator_UnitTest { void imperfectOCWithEUtDiscount_Test() { long correctConsumption = (long) Math.ceil(VP[1] * 0.9f) << 10; GT_OverclockCalculator calculator = new GT_OverclockCalculator().setRecipeEUt(VP[1]) - .setEUt(V[6]) - .setEUtDiscount(0.9f) - .setDuration(1024) - .calculate(); + .setEUt(V[6]) + .setEUtDiscount(0.9f) + .setDuration(1024) + .calculate(); assertEquals(1024 >> 5, calculator.getDuration(), messageDuration); assertEquals(correctConsumption, calculator.getConsumption(), messageEUt); } @@ -241,11 +241,11 @@ class GT_OverclockCalculator_UnitTest { void perfectOCWithEUtDiscount_Test() { long correctConsumption = (long) Math.ceil(VP[1] * 0.9f) << 10; GT_OverclockCalculator calculator = new GT_OverclockCalculator().setRecipeEUt(VP[1]) - .setEUt(V[6]) - .setEUtDiscount(0.9f) - .setDuration(1024) - .enablePerfectOC() - .calculate(); + .setEUt(V[6]) + .setEUtDiscount(0.9f) + .setDuration(1024) + .enablePerfectOC() + .calculate(); assertEquals(1024 >> 10, calculator.getDuration(), messageDuration); assertEquals(correctConsumption, calculator.getConsumption(), messageEUt); } @@ -253,10 +253,10 @@ class GT_OverclockCalculator_UnitTest { @Test void imperfectOCWithSpeedBoost_Test() { GT_OverclockCalculator calculator = new GT_OverclockCalculator().setRecipeEUt(VP[1]) - .setEUt(V[6]) - .setSpeedBoost(0.9f) - .setDuration(1024) - .calculate(); + .setEUt(V[6]) + .setSpeedBoost(0.9f) + .setDuration(1024) + .calculate(); assertEquals((int) (1024 * 0.9f) >> 5, calculator.getDuration(), messageDuration); assertEquals(VP[6], calculator.getConsumption(), messageEUt); } @@ -264,11 +264,11 @@ class GT_OverclockCalculator_UnitTest { @Test void perfectOCWithSpeedBoost_Test() { GT_OverclockCalculator calculator = new GT_OverclockCalculator().setRecipeEUt(VP[1]) - .setEUt(V[6]) - .setSpeedBoost(0.9f) - .setDuration(2048) - .enablePerfectOC() - .calculate(); + .setEUt(V[6]) + .setSpeedBoost(0.9f) + .setDuration(2048) + .enablePerfectOC() + .calculate(); assertEquals((int) (2048 * 0.9f) >> 10, calculator.getDuration(), messageDuration); assertEquals(VP[6], calculator.getConsumption(), messageEUt); } @@ -276,10 +276,10 @@ class GT_OverclockCalculator_UnitTest { @Test void oneTickDiscountTurnsToOne_Test() { GT_OverclockCalculator calculator = new GT_OverclockCalculator().setRecipeEUt(VP[1]) - .setEUt(V[6]) - .setDuration(1) - .enableOneTickDiscount() - .calculate(); + .setEUt(V[6]) + .setDuration(1) + .enableOneTickDiscount() + .calculate(); assertEquals(1, calculator.getDuration(), messageDuration); assertEquals(1, calculator.getConsumption(), messageEUt); } @@ -287,11 +287,11 @@ class GT_OverclockCalculator_UnitTest { @Test void oneTickDiscountImperfectOC_Test() { GT_OverclockCalculator calculator = new GT_OverclockCalculator().setRecipeEUt(VP[1]) - .setEUt(V[6]) - .setSpeedBoost(1.1f) - .setDuration(4) - .enableOneTickDiscount() - .calculate(); + .setEUt(V[6]) + .setSpeedBoost(1.1f) + .setDuration(4) + .enableOneTickDiscount() + .calculate(); assertEquals(1, calculator.getDuration(), messageDuration); assertEquals(480 >> 3, calculator.getConsumption(), messageEUt); } @@ -299,12 +299,12 @@ class GT_OverclockCalculator_UnitTest { @Test void oneTickDiscountPerfectOC_Test() { GT_OverclockCalculator calculator = new GT_OverclockCalculator().setRecipeEUt(VP[1]) - .setEUt(V[6]) - .setSpeedBoost(1.1f) - .setDuration(16) - .enablePerfectOC() - .enableOneTickDiscount() - .calculate(); + .setEUt(V[6]) + .setSpeedBoost(1.1f) + .setDuration(16) + .enablePerfectOC() + .enableOneTickDiscount() + .calculate(); assertEquals(1, calculator.getDuration(), messageDuration); assertEquals(480 >> 6, calculator.getConsumption(), messageEUt); } @@ -313,10 +313,10 @@ class GT_OverclockCalculator_UnitTest { void ulvRecipeWithDiscount_Test() { long correctConsumption = (long) Math.ceil((VP[0] << 10) * 0.9f); GT_OverclockCalculator calculator = new GT_OverclockCalculator().setRecipeEUt(VP[0]) - .setEUt(V[6]) - .setEUtDiscount(0.9f) - .setDuration(1024) - .calculate(); + .setEUt(V[6]) + .setEUtDiscount(0.9f) + .setDuration(1024) + .calculate(); assertEquals(1024 >> 5, calculator.getDuration(), messageDuration); assertEquals(correctConsumption, calculator.getConsumption(), messageEUt); } @@ -325,11 +325,11 @@ class GT_OverclockCalculator_UnitTest { void ulvRecipeWithDiscountWithParallel_Test() { long correctConsumption = (long) Math.ceil((VP[0] << 6) * 14 * 0.9f); GT_OverclockCalculator calculator = new GT_OverclockCalculator().setRecipeEUt(VP[0]) - .setEUt(V[5]) - .setEUtDiscount(0.9f) - .setParallel(14) - .setDuration(1024) - .calculate(); + .setEUt(V[5]) + .setEUtDiscount(0.9f) + .setParallel(14) + .setDuration(1024) + .calculate(); assertEquals(1024 >> 3, calculator.getDuration(), messageDuration); assertEquals(correctConsumption, calculator.getConsumption(), messageEUt); } -- cgit